tags 0.9.4

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 29

no longer maintained

Tags Changes

0.9.4

  • No longer maintained.

0.9.3

  • Fixed a CSS class issue in the TreeView.

0.9.2

  • Added back a few top-level Tag functions.

0.9.1

  • Fixed CSS classes to work with latest Dart SDK.

0.9.0

  • Removed a majority of the top-level Tag functions. They often shadowed other user variables such as a.
  • Appended Tag to the name of the remaining top-level Tag functions to reduce the chance of shadowing.

0.8.5

  • Changed the behavior of EditorView.select_ such that it is called with the new selection before the EditorView.selection is set to the new selection; this allows the logic inside of a select_ override access to both the outgoing selection (via getter) and the incoming selection (via method argument).

0.8.4

  • Changed the T selection parameter of Editor.initialize to an optional parameter; it is legal to initialize an editor with a null, or no, selection.

0.8.3

  • Improved the style of the TreeView regarding alignment of expandable and non-expandable tree cells per designer request.

0.8.2

  • Changed the parameter of Tree.expandTo to a predicate function.

0.8.1

  • Added buildChildren and expandTo methods to the Tree class.

0.8.0

  • Changed the keys of the top-level routedCommands map to be of type String instead of Symbol; each RoutedCommand keeps a reference to its string name for rendering in the DOM so using symbols in the map was inefficient.

0.7.5

  • Maintenance.

0.7.4

  • Added a static enableAll flag to the CommandBinding class.

0.7.3

  • Maintenance.

0.7.2

  • Changed the function arguments of Clipboard.register to receive an instance of ClipboardItem for marshalling the data and optional context from source to target.

0.7.1

  • Fixed a bug in the clipboard when an external copy event is observed.

0.7.0

  • Added the canPaste method to the Clipboard.
  • Added support for copy and paste functions that are either synchronous or asynchronous as arguments to Clipboard.register.

0.6.22

  • Added a Clipboard class with a top-level clipboard const instance.

0.6.21

  • Added a new Command.always constructor; this is convenient for creating commands that can always be executed. It may also be more performant as a static function () => true is shared among all created instances.

0.6.20

  • Fixed an issue in the TreeView introduced by the changes in version 0.6.18; tree items need to be focusable.

0.6.19

  • Changed the TreeView to no longer dispatch doubleClick_ when the double click is on the expander; this is for symmetry with the changes made regarding single click in the previous version.

0.6.18

  • Changed the default behavior of items in the TreeView to not expand on a single click; only a single click on the expander will cause the item to expand. To expand on a single click anywhere in the item you may override the singleClick_ method in your concrete TreeView class:
void singleClick_() => toggleExpanded();

0.6.17

  • Changed the default theme font settings.

0.6.16

  • Changed the text color of the ThemeColorsDark per feedback.

0.6.15

  • Added a ThemeDark class.

0.6.14

  • Fixed another focus issue when an item is selected in the TreeView.

0.6.13

  • Added fontSizePx to the ThemeDisplay class.

0.6.12

  • Changed the KeyBinding class to a concrete class.

0.6.11

  • Removed the isFirstAttach parameter from the Tree.attached_ method.

0.6.10

  • Added the removeChildren method to the Tree and TreeView classes.

0.6.9

  • Fixed an issue with focus when an item is selected in the TreeView.

0.6.8

  • Changed the default fontSize of the default Theme to 14px.

0.6.7

  • Removed the svg tags; these were not being used in practice and removing them frees up some common names in the top-level namespace.

0.6.6

  • Added the Editor abstract class and the EditorView abstract element.

0.6.5

  • Added the Tree abstract class and the TreeView abstract element.

0.6.4

  • Added the Selections class to manage top-level selections; currently only supports single-select.

0.6.3

  • Added the top-level routedCommands map to the tags library.

0.6.2

  • Added the Command, KeyBinding and RoutedCommand classes to the tags library.
  • Added the CommandBinding custom element to the tags.html library.

0.6.1

  • Changed the return type of EditableLabel.beginEdit from void -> Future.
  • Replaced usages of the deprecated enteredView and leftView callbacks with attached and detached.

0.6.0

  • Renamed the TAGS_DOM constant to HTML and the tags.dom library to tags.html.
  • Added the down attribute on ToggleButton; this attribute is added to the element when the toggleable isDown and removed when it isUp.

0.5.6

  • Replaced calls to the deprecated document.register with calls to document.registerElement.

0.5.5

  • Added a Theme class for global styling of Themeable elements.
  • Restored the use of shadow DOM to EditableLabel but without applyAuthorStyles; version 0.5.4 broke other aspects of this element. It's inner elements can be styled from the outside in Chrome 35 using selectors such as editable-label::shadow input[type="text"] or from the inside by changing its resources and / or the global theme.

0.5.4

  • Removed the use of shadow DOM from EditableLabel; this element was using applyAuthorStyles which does not exist in the upcoming Chrome 35. We may add this encapsulation back in a future revision after the platform stabilizes.

0.5.3

  • Added an optional named parameter select to the beginEdit method of EditableLabel for selecting the label's text which defaults to true.
  • Updated API documentation generation to use the new docgen tool.

0.5.2

  • Fixed a styling issue in the EditableLabel.

0.5.1

  • Capitalized the TAGS_DOM constant.

0.5.0

  • Decoupled the DOM from the tags library by adding a tags.dom library; the library user is responsible for setting the dom variable prior to making any other calls to the tags library. For example:
import 'package:tags/tags.dart' as tags;
import 'package:tags/dom.dart';

main() {
  tags.dom = TAGS_DOM;
  ...
}
  • Removed the registerTagsCustomElements function; element registration is now performed when setting a value to the dom top-level variable.
  • Added the toggle method to Toggleable.

0.4.7

  • Implement a better workaround for dartbug.com/15401 below the API surface.

0.4.6

  • Added the isEditing, cancelEdit, and completeEdit members to the EditableLabel and replaced the onEndEdit stream with onEditChange.

0.4.5

  • Added the Resources and Themeable abstract classes.

0.4.4

  • Implement a necessary workaround for dartbug.com/15401.

0.4.3

  • Added an optional displayFilter field to the EditableLabel; when this is not null it affects the rendered text for all calls to the text setter.
  • Added an onEndEdit stream to the EditableLabel; one event will be added to this stream for every call to beginEdit to signal the end of editing.
  • Added <circle>, <clipPath>, <defs>, <ellipse>, <g>, <line>, <marker>, <path>, <polygon>, <polyline>, <rect>, <svg>, <symbol> and <use> tags.

0.4.2

  • Updated for the Dart 1.0 release.

0.4.1

  • Updated to SDK 0.8.10_r29803.
  • Added EditableLabel custom element with <editable-label> tag and editableLabel() Tag function.

0.4.0

  • Added <article>, <aside>, <audio>, <footer>, <header>, <iframe> and <section> tags.
  • Removed the deprecated HasElement and BindModel types and the bindModel function.

0.3.0

  • Changed ToggleButton and ToggleOpen from subtypes of HasElement to subtypes of ButtonElement and HtmlElement respectively.
  • Added the children function for building the children of an already created element.

0.2.1

  • Restored the text function name from appendText; thanks to user feedback!

0.2.0

  • Added <code> tag.
  • Added the createTag function to simplify Tag creation for tag authors.
  • Renamed the text function to appendText to align better with the underlying call to Element.appendText.

0.1.9

  • Moved all of the libraries into lib/src/ and added a lib/tags.dart library to expose the entire public API as a single import for users. As part of this change a number of function and class names were made longer to help avoid conflicts. This change was made to make the package easier to use, as a lot of user code was importing two or three different libraries from this package and that seemed unnecessary.

0.1.8

  • Updated to SDK 0.6.19_r26297.
  • Updated the html tag builder to use the new HtmlHtmlElement (renamed from HtmlElement) in dart:html. You buy posters!

0.1.7

  • Removed export of dart:html from the tags.html library. While this was convenient, it is emerging as an anti-pattern in Dart because it can cause a lot of confusion and errors for users who already import dart:html in their code.

0.1.6

  • The shadow function in the html library now returns a ShadowRoot instead of just a Node; this allows you to set properties on it directly such as:
shadow(() {
  // your shadow dom
})..applyAuthorStyles = true;

0.1.5

  • Updated to SDK 0.6.9_r25388.
  • Added <del> tag.
  • Some improvement to ToggleOpen.

0.1.4

  • Renamed DropDown to ToggleOpen to more accurately reflect what it does; it can open as a drop-down but it could be styled to open up instead for example.
  • More work on ToggleOpen including dartdoc.
  • Renamed the down and up getters on ToggleButton to isDown and isUp.

0.1.3

  • Updated to SDK 0.5.20.2_r24160.
  • Prefix all library names with tags; for example tags.html.

0.1.2

  • Added the function append in the html library; this provides a means to append existing elements in a tag builder expression.
  • Expose the bind function in the custom library; this is a convenience function for implementors of custom tags.

0.1.1

  • Updated to SDK 0.5.13_r23552.
  • Added <nav> tag.
  • Added an optional args to each Tag. In the html library these are ignored. In the custom library we have defined a Bind function type which we take as the args for our custom tags. This gives us a mechanism to deliver the instance of HasElement back to the user as a workaround for the xtag issue noted in the prior version.
  • Added an experimental DropDown custom tag; this is a work in progress.

0.1.0

  • Updated to SDK 0.5.9_r22879.
  • ToggleButton can no longer store itself in the xtag of its element as the type constraint for xtag was tightened to Element in this SDK version. We need to wait for the ability to extend Element and for the custom element work in dart:html to settle down before we can make any design changes here, so for now there is no way to backtrack from the element to its ToggleButton.

0.0.9

  • Updated to SDK 0.5.7_r22611.
  • Avoid streaming ToggleButton states events unless there is a listener and the stream is not paused. This avoids potential memory leaks that might arise with buffered events.

0.0.8

  • Updated to SDK 0.5.5_r22416.

0.0.7

  • Updated to SDK 0.4.7_r21548.

0.0.6

  • Export dart:html library from html.dart so that users have only 1 import.
  • Added custom.dart library and a ToggleButton to the showcase example. The custom.dart library aims to provide a canonical set of custom elements (web components).
  • The build functon in the builder.dart library now takes a Create function to build the tag's element. This allows us to differentiate between a builder function called within the scope of a Create (constructor / initializer of an Element) and the scope of a Build (child appending logic).

0.0.5

  • Removed tags.dart library; users should import html.dart directly.
  • Added builder.dart library to expose tag builder functionality; This library may be used for user-defined custom tags.

0.0.4

  • Added <i>, <u>, <dl>, <dt>, and <dd> tags.
  • Added Build typedef and some documentation to the API.
  • Added documentation to pubspec.

0.0.3

  • Added <b> tag.
  • Added text(String) builder function to perform Element.appendText(String) from within build() closures.

0.0.2

  • Added basic usage to the README.

0.0.1

  • Initial release.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  tags: "^0.9.4"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


      import 'package:tags/tags.dart';
  
Version Uploaded Documentation Archive
0.9.4 Nov 24, 2015 Go to the documentation of tags 0.9.4 Download tags 0.9.4 archive
0.9.0 Apr 3, 2015 Go to the documentation of tags 0.9.0 Download tags 0.9.0 archive
0.8.5 Jan 10, 2015 Go to the documentation of tags 0.8.5 Download tags 0.8.5 archive
0.8.3 Jan 7, 2015 Go to the documentation of tags 0.8.3 Download tags 0.8.3 archive
0.8.2 Nov 16, 2014 Go to the documentation of tags 0.8.2 Download tags 0.8.2 archive
0.8.1 Nov 16, 2014 Go to the documentation of tags 0.8.1 Download tags 0.8.1 archive
0.8.0 Nov 15, 2014 Go to the documentation of tags 0.8.0 Download tags 0.8.0 archive
0.7.5 Nov 15, 2014 Go to the documentation of tags 0.7.5 Download tags 0.7.5 archive
0.7.3 Sep 21, 2014 Go to the documentation of tags 0.7.3 Download tags 0.7.3 archive
0.6.19 Aug 21, 2014 Go to the documentation of tags 0.6.19 Download tags 0.6.19 archive

All 63 versions...

Analysis

We analyzed this package on Jul 13, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
96 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0 / 100
Overall score:
Weighted score of the above. [more]
29
Learn more about scoring.

Platforms

Detected platforms: unsure

Error(s) prevent platform classification:

Error(s) in lib/model/routed_command.dart: super call must be last in an initializer list (see https://goo.gl/EY6hDP): 'super._()'.

Suggestions

  • Fix platform conflicts.

    Error(s) prevent platform classification:

    Error(s) in lib/model/routed_command.dart: super call must be last in an initializer list (see https://goo.gl/EY6hDP): 'super._()'.

  • Homepage is not helpful.

    Update the homepage property: create a website about the package or use the source repository URL.

  • Package is too old.

    The package was released more than two years ago.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 2 errors 21 hints.

    Make sure that the imported libraries are not in conflict. Error(s) in lib/model/routed_command.dart: super call must be last in an initializer list (see https://goo.gl/EY6hDP): 'super._()'.

    Run dartfmt to format lib/html.dart.

    Similar analysis of the following files failed:

    • lib/model/builder.dart (hint)
    • lib/model/clipboard.dart (hint)
    • lib/model/command.dart (hint)
    • lib/model/editor.dart (hint)
    • lib/model/key_binding.dart (hint)
    • lib/model/resources.dart (hint)
    • lib/model/selections.dart (hint)
    • lib/model/theme.dart (hint)
    • lib/model/themeable.dart (hint)
    • lib/model/toggleable.dart (hint)
    • lib/model/tree.dart (hint)
    • lib/tags.dart (hint)
    • lib/view/command_binding.dart (hint)
    • lib/view/editable_label.dart (hint)
    • lib/view/editor_view.dart (hint)
    • lib/view/toggle_button.dart (hint)
    • lib/view/toggle_open.dart (hint)
    • lib/view/tree_view.dart (hint)
  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use tags.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.4.0 <2.0.0