@threadlabs/looma 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/components/ui-avatar/ui-avatar.html +12 -4
  2. package/components/ui-avatar-group/ui-avatar-group.html +5 -2
  3. package/components/ui-badge/ui-badge.html +6 -2
  4. package/components/ui-button/ui-button.html +6 -2
  5. package/components/ui-callout/ui-callout.html +3 -1
  6. package/components/ui-checkbox/ui-checkbox.html +9 -4
  7. package/components/ui-cluster/ui-cluster.html +6 -2
  8. package/components/ui-combobox/ui-combobox.html +35 -13
  9. package/components/ui-container/ui-container.html +5 -2
  10. package/components/ui-disclosure/ui-disclosure.html +6 -3
  11. package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +3 -1
  12. package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +3 -1
  13. package/components/ui-floating-action-button/ui-floating-action-button.html +5 -3
  14. package/components/ui-form-field/ui-form-field.html +9 -3
  15. package/components/ui-grid/ui-grid.html +6 -2
  16. package/components/ui-icon/ui-icon.html +3 -1
  17. package/components/ui-icon-button/ui-icon-button.html +11 -4
  18. package/components/ui-input/ui-input.html +3 -1
  19. package/components/ui-menu-item/ui-menu-item.html +5 -2
  20. package/components/ui-radio/ui-radio.html +9 -4
  21. package/components/ui-radio-group/ui-radio-group.html +14 -6
  22. package/components/ui-reel/ui-reel.html +9 -3
  23. package/components/ui-search-result-row/ui-search-result-row.html +4 -2
  24. package/components/ui-stack/ui-stack.html +9 -3
  25. package/components/ui-switch/ui-switch.html +5 -3
  26. package/components/ui-switcher/ui-switcher.html +9 -3
  27. package/components/ui-tabs/ui-tabs.html +8 -3
  28. package/components/ui-textarea/ui-textarea.html +3 -1
  29. package/components/ui-tree/ui-tree.html +7 -3
  30. package/components/ui-tree-item/ui-tree-item.html +32 -11
  31. package/dist/index.js +1 -1
  32. package/package.json +1 -1
  33. package/vue/editor/index.js +0 -2
@@ -1,17 +1,38 @@
1
1
  <template component="ui-tree-item" controller="./ui-tree-item.js">
2
2
  <defs>
3
- <prop name="itemId" type="string" default="">itemId token.</prop>
3
+ <prop name="itemId" type="string" default=""
4
+ >The item's identifier, reported as sourceId and targetId in the tree's reorder events and as id in its expand event. A sortable item needs one to be
5
+ dragged, and a drop onto an item without one is not reported.</prop>
4
6
  <prop name="label" type="string" default="">The item's accessible name, also shown as the row text unless the label slot supplies content.</prop>
5
- <prop name="dropDepth" type="number">dropDepth token.</prop>
6
- <prop name="subtreeDepth" type="number">subtreeDepth token.</prop>
7
- <prop name="container" type="boolean" default="false">container token.</prop>
8
- <prop name="sortable" type="boolean" default="false">sortable token.</prop>
9
- <prop name="dragType" type="string" default="item">dragType token.</prop>
10
- <prop name="dropScope" type="string" default="">dropScope token.</prop>
11
- <prop name="accepts" type="string" default="">accepts token.</prop>
12
- <prop name="expanded" type="boolean" default="false">expanded token.</prop>
13
- <prop name="selected" type="boolean" default="false">selected token.</prop>
14
- <prop name="disabled" type="boolean" default="false">disabled token.</prop>
7
+ <prop name="dropDepth" type="number"
8
+ >Overrides the level this item counts as when the tree checks maxDepth for a drop onto it. Unset, its level in the rendered tree is used; set it when the
9
+ item sits deeper in the real hierarchy than the rendered tree shows.</prop>
10
+ <prop name="subtreeDepth" type="number"
11
+ >Overrides how many levels sit beneath this item when the tree checks maxDepth for a drag of it. Unset, the tree counts the rendered descendants; set it
12
+ when some are not rendered, such as children that load later.</prop>
13
+ <prop name="container" type="boolean" default="false"
14
+ >Makes the item a branch even before it has children: it gets the expand button and aria-expanded, and accepts drops inside it. An item with nested items is
15
+ a branch without it.</prop>
16
+ <prop name="sortable" type="boolean" default="false"
17
+ >Gives the item a drag handle, shown on hover, so it can be dragged to a new place in the tree. The tree reports the drop as a reorder event and leaves
18
+ moving the item to you. Needs itemId; a disabled item, and any item under touch input, shows no handle.</prop>
19
+ <prop name="dragType" type="string" default="item"
20
+ >The item's kind, for drag rules: it can be dropped before or after only items of the same type, and inside a branch only if that branch's accepts allows
21
+ it. Reported as sourceType and targetType.</prop>
22
+ <prop name="dropScope" type="string" default=""
23
+ >A label passed through as sourceScope and targetScope in the tree's reorder events. The tree does not enforce it; use it to tell drops within a scope from
24
+ drops across scopes.</prop>
25
+ <prop name="accepts" type="string" default=""
26
+ >A comma-separated list of the dragType values this branch accepts dropped inside it. Empty accepts any type. It does not affect drops before or after the
27
+ item.</prop>
28
+ <prop name="expanded" type="boolean" default="false"
29
+ >Whether the branch shows its children, initially or when set externally. The expand button, a click on the row, and the arrow keys toggle it from there,
30
+ each reported as an expand event. Only meaningful for a branch.</prop>
31
+ <prop name="selected" type="boolean" default="false"
32
+ >Marks the item selected: it sets aria-selected and gives the row the highlighted surface. The tree does not select on click, so drive it from your own
33
+ state.</prop>
34
+ <prop name="disabled" type="boolean" default="false"
35
+ >Makes the item unavailable: faded, skipped by keyboard navigation, unable to expand or be dragged, and closed to drops inside it.</prop>
15
36
  <state name="internalExpanded" :value="false"></state>
16
37
  <state name="structuralLevel" :value="1"></state>
17
38
  <state name="tabStop" :value="false"></state>