@threadlabs/looma 0.23.15 → 0.23.17
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.
- package/components/ui-avatar/ui-avatar.html +1 -1
- package/components/ui-avatar-group/ui-avatar-group.html +1 -3
- package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -1
- package/components/ui-button/ui-button.html +4 -4
- package/components/ui-combobox/ui-combobox.html +19 -21
- package/components/ui-description-item/ui-description-item.html +1 -1
- package/components/ui-dialog/ui-dialog.html +1 -1
- package/components/ui-disclosure/ui-disclosure.html +1 -1
- package/components/ui-editable/ui-editable.html +4 -4
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +1 -1
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +2 -2
- package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +2 -2
- package/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html +1 -1
- package/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html +1 -1
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +2 -2
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +2 -2
- package/components/ui-icon-button/ui-icon-button.html +28 -1
- package/components/ui-listbox/ui-listbox.html +2 -2
- package/components/ui-menu-group/ui-menu-group.html +1 -1
- package/components/ui-menu-item/ui-menu-item.html +1 -1
- package/components/ui-meter/ui-meter.html +7 -8
- package/components/ui-nav-item/ui-nav-item.html +2 -2
- package/components/ui-radio-group/ui-radio-group.html +1 -1
- package/components/ui-section/ui-section.html +1 -1
- package/components/ui-spinner/ui-spinner.html +4 -4
- package/components/ui-status-message/ui-status-message.html +2 -2
- package/components/ui-tabs/ui-tabs.html +1 -1
- package/components/ui-toast-region/ui-toast-region.html +1 -1
- package/components/ui-tree-item/ui-tree-item.html +3 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +29 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +1 -1
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +1 -1
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +9 -7
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +4 -4
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +2 -2
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +2 -2
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +1 -1
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +29 -25
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +1 -1
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +1 -1
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +5 -5
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +1 -1
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +16 -14
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +4 -4
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +35 -27
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +20 -18
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +27 -25
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +6 -4
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +1 -1
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +9 -7
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +4 -2
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +2 -2
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +1 -1
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +2 -2
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +1 -1
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +1 -1
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +1 -1
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +1 -1
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiIconButton.d.ts +2 -1
- package/vanilla/UiIconButton.js +5 -2
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +1 -1
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +1 -1
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +1 -1
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +1 -1
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +2 -2
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +4 -2
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +2 -2
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +2 -2
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +2 -2
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +1 -1
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +1 -1
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +1 -1
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +4 -4
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +1 -1
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +1 -1
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +1 -1
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +1 -1
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +4 -4
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +1 -1
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +1 -1
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +1 -1
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +2 -2
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +4 -4
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +1 -1
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +1 -1
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +2 -2
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +1 -1
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +1 -1
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +2 -2
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +1 -1
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +1 -1
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +4 -4
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +1 -1
- package/vue/UiAvatar.vue +1 -1
- package/vue/UiAvatarGroup.vue +9 -2
- package/vue/UiBadge.vue +1 -1
- package/vue/UiBreadcrumbItem.vue +55 -9
- package/vue/UiBreadcrumbs.vue +1 -1
- package/vue/UiButton.vue +162 -37
- package/vue/UiCallout.vue +1 -1
- package/vue/UiCard.vue +1 -1
- package/vue/UiCheckbox.vue +8 -1
- package/vue/UiCluster.vue +1 -1
- package/vue/UiCombobox.d.ts +1 -1
- package/vue/UiCombobox.vue +190 -73
- package/vue/UiContainer.vue +1 -1
- package/vue/UiContextMenu.vue +1 -1
- package/vue/UiCover.vue +1 -1
- package/vue/UiDescriptionItem.vue +1 -1
- package/vue/UiDescriptionList.vue +1 -1
- package/vue/UiDialog.vue +1 -1
- package/vue/UiDisclosure.vue +1 -1
- package/vue/UiEditable.vue +9 -4
- package/vue/UiEditorInsertTableGrid.vue +19 -2
- package/vue/UiEditorMentionMenu.vue +20 -2
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorSlashMenu.vue +1 -1
- package/vue/UiEditorSlashMenuGroup.vue +1 -1
- package/vue/UiEditorSlashMenuItem.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +46 -5
- package/vue/UiEditorTableOverlay.vue +55 -26
- package/vue/UiEditorTableToolbar.vue +46 -5
- package/vue/UiEditorToolbar.vue +1 -1
- package/vue/UiFloatingActionButton.vue +1 -1
- package/vue/UiFormField.vue +1 -1
- package/vue/UiGrid.vue +1 -1
- package/vue/UiIcon.vue +1 -1
- package/vue/UiIconButton.d.ts +9 -0
- package/vue/UiIconButton.vue +104 -14
- package/vue/UiInput.vue +1 -1
- package/vue/UiInputGroup.vue +1 -1
- package/vue/UiList.vue +1 -1
- package/vue/UiListItem.vue +1 -1
- package/vue/UiListbox.vue +47 -13
- package/vue/UiMenu.vue +1 -1
- package/vue/UiMenuGroup.vue +1 -1
- package/vue/UiMenuItem.vue +46 -10
- package/vue/UiMeter.d.ts +2 -2
- package/vue/UiMeter.vue +675 -97
- package/vue/UiNavItem.vue +97 -39
- package/vue/UiPageHeader.vue +1 -1
- package/vue/UiPopover.vue +1 -1
- package/vue/UiRadio.vue +8 -1
- package/vue/UiRadioGroup.vue +1 -1
- package/vue/UiReel.vue +1 -1
- package/vue/UiScrollArea.vue +1 -1
- package/vue/UiSearchResultRow.vue +1 -1
- package/vue/UiSearchShell.vue +1 -1
- package/vue/UiSection.vue +1 -1
- package/vue/UiSelect.vue +1 -1
- package/vue/UiSeparator.vue +1 -1
- package/vue/UiSidebar.vue +1 -1
- package/vue/UiSpinner.vue +159 -31
- package/vue/UiStack.vue +1 -1
- package/vue/UiStatusMessage.vue +42 -4
- package/vue/UiSwitch.vue +8 -1
- package/vue/UiSwitcher.vue +1 -1
- package/vue/UiTable.vue +1 -1
- package/vue/UiTabs.vue +20 -2
- package/vue/UiText.d.ts +1 -1
- package/vue/UiText.vue +1 -1
- package/vue/UiTextarea.vue +1 -1
- package/vue/UiToast.vue +1 -1
- package/vue/UiToastRegion.vue +20 -2
- package/vue/UiTooltip.vue +1 -1
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +1 -1
- package/vue/UiTreeItem.vue +113 -25
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +1 -1
- package/vue/chunks/UiAvatarGroup.js +7 -2
- package/vue/chunks/UiBadge.js +1 -1
- package/vue/chunks/UiBreadcrumbItem.js +27 -12
- package/vue/chunks/UiBreadcrumbs.js +1 -1
- package/vue/chunks/UiButton.js +67 -29
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +1 -1
- package/vue/chunks/UiCheckbox.js +6 -1
- package/vue/chunks/UiCluster.js +1 -1
- package/vue/chunks/UiCombobox.js +155 -56
- package/vue/chunks/UiContainer.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiCover.js +1 -1
- package/vue/chunks/UiDescriptionItem.js +1 -1
- package/vue/chunks/UiDescriptionList.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditable.js +10 -5
- package/vue/chunks/UiEditorInsertTableGrid.js +18 -3
- package/vue/chunks/UiEditorMentionMenu.js +8 -2
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
- package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +13 -7
- package/vue/chunks/UiEditorTableOverlay.js +43 -23
- package/vue/chunks/UiEditorTableToolbar.js +13 -7
- package/vue/chunks/UiEditorToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +1 -1
- package/vue/chunks/UiGrid.js +1 -1
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +48 -11
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiInputGroup.js +1 -1
- package/vue/chunks/UiList.js +1 -1
- package/vue/chunks/UiListItem.js +1 -1
- package/vue/chunks/UiListbox.js +29 -15
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiMenuGroup.js +1 -1
- package/vue/chunks/UiMenuItem.js +23 -9
- package/vue/chunks/UiMeter.js +373 -37
- package/vue/chunks/UiNavItem.js +67 -39
- package/vue/chunks/UiPageHeader.js +1 -1
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +6 -1
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiReel.js +1 -1
- package/vue/chunks/UiScrollArea.js +1 -1
- package/vue/chunks/UiSearchResultRow.js +1 -1
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +1 -1
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSeparator.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiSpinner.js +75 -36
- package/vue/chunks/UiStack.js +1 -1
- package/vue/chunks/UiStatusMessage.js +21 -6
- package/vue/chunks/UiSwitch.js +6 -1
- package/vue/chunks/UiSwitcher.js +1 -1
- package/vue/chunks/UiTable.js +1 -1
- package/vue/chunks/UiTabs.js +8 -2
- package/vue/chunks/UiText.js +1 -1
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToast.js +1 -1
- package/vue/chunks/UiToastRegion.js +8 -2
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +52 -19
- package/vue/chunks/props.js +11 -6
- package/vue/components.css +1321 -1298
- package/vue/host.ts +15 -3
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<slot></slot>
|
|
31
31
|
<img class="image" $ref="image" from:src="src" alt="" aria-hidden="true" from:hidden="hasAuthoredImage or not hasImage">
|
|
32
32
|
<span class="fallback" from:aria-hidden="hasImage" from:hidden="hasImage">
|
|
33
|
-
<span from:hidden="showGlyph"
|
|
33
|
+
<span from:hidden="showGlyph">{$initials}</span>
|
|
34
34
|
<span from:hidden="not showGlyph"><ui-icon name="user-round"></ui-icon></span>
|
|
35
35
|
</span>
|
|
36
36
|
</span>
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
</defs>
|
|
19
19
|
<div role="group" from:aria-label="label">
|
|
20
20
|
<slot></slot>
|
|
21
|
-
<span class="overflow" $ref="overflow" role="img" from:hidden="not overflowCount" from:aria-label="overflowAnnouncement"
|
|
22
|
-
$value="format('+%s', overflowCount)"
|
|
23
|
-
></template></span>
|
|
21
|
+
<span class="overflow" $ref="overflow" role="img" from:hidden="not overflowCount" from:aria-label="overflowAnnouncement">+{$overflowCount}</span>
|
|
24
22
|
</div>
|
|
25
23
|
<style>
|
|
26
24
|
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<prop name="current" type="boolean" default="false"
|
|
4
4
|
>Marks the step as the view you are on: it is plain text with aria-current="page". Every other step holds a link.</prop>
|
|
5
5
|
</defs>
|
|
6
|
-
<li from:aria-current="{ true: 'page', false: null }[
|
|
6
|
+
<li from:aria-current="{ true: 'page', false: null }[concat(current)]">
|
|
7
7
|
<span class="separator" aria-hidden="true"><ui-icon name="chevron-right"></ui-icon></span>
|
|
8
8
|
<span class="content"><slot></slot></span>
|
|
9
9
|
</li>
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
<template $match>
|
|
40
40
|
<a
|
|
41
41
|
$when="as = 'a'"
|
|
42
|
-
from:href="{ true: null, false: href }[
|
|
42
|
+
from:href="{ true: null, false: href }[concat(disabled or loading or pending)]"
|
|
43
43
|
from:target="target"
|
|
44
44
|
from:rel="rel"
|
|
45
|
-
from:aria-disabled="{ true: 'true', false: null }[
|
|
45
|
+
from:aria-disabled="{ true: 'true', false: null }[concat(disabled or loading or pending)]"
|
|
46
46
|
from:aria-busy="loading or pending"
|
|
47
|
-
from:tabindex="{ true: '0', false: null }[
|
|
47
|
+
from:tabindex="{ true: '0', false: null }[concat((loading or pending) and not disabled)]"
|
|
48
48
|
>
|
|
49
49
|
<span $if="loading or pending" class="spinner-wrap"><ui-spinner size="sm"></ui-spinner></span>
|
|
50
50
|
<slot></slot>
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
$else
|
|
54
54
|
from:type="type"
|
|
55
55
|
from:disabled="disabled"
|
|
56
|
-
from:aria-disabled="{ true: 'true', false: null }[
|
|
56
|
+
from:aria-disabled="{ true: 'true', false: null }[concat(loading or pending)]"
|
|
57
57
|
from:aria-busy="loading or pending"
|
|
58
58
|
>
|
|
59
59
|
<span $if="loading or pending" class="spinner-wrap"><ui-spinner size="sm"></ui-spinner></span>
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
<method name="focusInput" export="focusInput" returns="promise(undefined)"></method>
|
|
372
372
|
</defs>
|
|
373
373
|
<div>
|
|
374
|
-
<label from:for="
|
|
374
|
+
<label from:for="concat(uid, '-input')" class:sr-only="labelVisibility = 'sr-only'">{$label}<template $if="required">
|
|
375
375
|
*</template></label>
|
|
376
376
|
<div class="control">
|
|
377
377
|
<div class="field" $ref="field">
|
|
@@ -386,18 +386,18 @@
|
|
|
386
386
|
tabindex="-1"
|
|
387
387
|
from:data-index="index"
|
|
388
388
|
from:disabled="disabled or readonly or item.disabled"
|
|
389
|
-
from:aria-label="
|
|
389
|
+
from:aria-label="concat(item.label, ', press Delete or Backspace to remove')"
|
|
390
390
|
>
|
|
391
|
-
<slot from:name="
|
|
391
|
+
<slot from:name="concat('item-', item.id)"><ui-badge $value="item.label"></ui-badge></slot>
|
|
392
392
|
</button>
|
|
393
393
|
</template>
|
|
394
394
|
<input
|
|
395
395
|
$ref="input"
|
|
396
|
-
from:id="
|
|
396
|
+
from:id="concat(uid, '-input')"
|
|
397
397
|
role="combobox"
|
|
398
398
|
aria-autocomplete="list"
|
|
399
399
|
autocomplete="off"
|
|
400
|
-
from:aria-controls="
|
|
400
|
+
from:aria-controls="concat(uid, '-listbox')"
|
|
401
401
|
from:aria-expanded="expanded"
|
|
402
402
|
from:aria-invalid="invalid or validationStatus = 'error'"
|
|
403
403
|
from:aria-busy="loading or validationStatus = 'pending'"
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
data-combobox-action="disclosure"
|
|
430
430
|
tabindex="-1"
|
|
431
431
|
aria-label="Show suggestions"
|
|
432
|
-
from:aria-controls="
|
|
432
|
+
from:aria-controls="concat(uid, '-listbox')"
|
|
433
433
|
from:disabled="disabled or readonly"
|
|
434
434
|
>
|
|
435
435
|
<svg
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
</svg>
|
|
447
447
|
</button>
|
|
448
448
|
</div>
|
|
449
|
-
<button $if="help" class="help" from:id="
|
|
449
|
+
<button $if="help" class="help" from:id="concat(uid, '-help')" type="button" aria-label="Help" from:disabled="disabled">
|
|
450
450
|
<svg
|
|
451
451
|
class="help-icon"
|
|
452
452
|
aria-hidden="true"
|
|
@@ -463,11 +463,9 @@
|
|
|
463
463
|
</svg>
|
|
464
464
|
</button>
|
|
465
465
|
</div>
|
|
466
|
-
<ui-tooltip $if="help" trigger="click" from:id="
|
|
467
|
-
$value="help"
|
|
468
|
-
></template></ui-tooltip>
|
|
466
|
+
<ui-tooltip $if="help" trigger="click" from:id="concat(uid, '-help-text')" from:for="concat(uid, '-help')">{$help}</ui-tooltip>
|
|
469
467
|
<div class="popup" $ref="popup" from:hidden="not expanded">
|
|
470
|
-
<div role="listbox" $ref="listbox" from:id="
|
|
468
|
+
<div role="listbox" $ref="listbox" from:id="concat(uid, '-listbox')" from:aria-label="concat(label, ' suggestions')" from:aria-busy="loading">
|
|
471
469
|
<div $each="group of groups" $key="group.name" from:role="group.role" from:aria-label="group.label">
|
|
472
470
|
<div $if="group.name" class="group" $value="group.name"></div>
|
|
473
471
|
<div
|
|
@@ -478,23 +476,23 @@
|
|
|
478
476
|
role="option"
|
|
479
477
|
data-ui-choice-option
|
|
480
478
|
from:data-multiple="multiple"
|
|
481
|
-
from:id="
|
|
479
|
+
from:id="concat(uid, '-option-', row.index)"
|
|
482
480
|
from:aria-selected="row.selected"
|
|
483
481
|
from:aria-disabled="row.disabled"
|
|
484
482
|
from:data-index="row.index"
|
|
485
483
|
from:aria-labelledby="row.labelledBy"
|
|
486
484
|
from:aria-describedby="row.detail"
|
|
487
485
|
>
|
|
488
|
-
<slot from:name="
|
|
486
|
+
<slot from:name="concat('option-', row.id)">
|
|
489
487
|
<span $if="row.detail" class="detail">
|
|
490
488
|
<span class="line">
|
|
491
|
-
<span class="primary" from:id="
|
|
489
|
+
<span class="primary" from:id="concat(uid, '-option-', row.index, '-label')" $value="row.label"></span>
|
|
492
490
|
<ui-badge $if="row.tag" from:tone="row.tag.tone" style:--ui-badge-color="row.tag.color"><span
|
|
493
|
-
from:id="
|
|
491
|
+
from:id="concat(uid, '-option-', row.index, '-tag')"
|
|
494
492
|
$value="row.tag.label"
|
|
495
493
|
></span></ui-badge>
|
|
496
494
|
</span>
|
|
497
|
-
<span $if="row.description" class="description" from:id="
|
|
495
|
+
<span $if="row.description" class="description" from:id="concat(uid, '-option-', row.index, '-description')" $value="row.description"></span>
|
|
498
496
|
</span>
|
|
499
497
|
<span $if="not row.detail" class="primary" $value="row.label"></span>
|
|
500
498
|
</slot>
|
|
@@ -508,20 +506,20 @@
|
|
|
508
506
|
data-ui-choice-option
|
|
509
507
|
from:data-multiple="multiple"
|
|
510
508
|
aria-selected="false"
|
|
511
|
-
from:id="
|
|
509
|
+
from:id="concat(uid, '-option-', createIndex)"
|
|
512
510
|
from:data-index="createIndex"
|
|
513
|
-
$value="
|
|
511
|
+
$value="concat('Create “', raw, '”')"
|
|
514
512
|
>
|
|
515
513
|
</div>
|
|
516
|
-
<div $if="message" class="message"
|
|
514
|
+
<div $if="message" class="message">{$message}</div>
|
|
517
515
|
<div $if="not loading and not rows.0 and not creatable and not lookupError" class="message"><slot name="empty">No suggestions.</slot></div>
|
|
518
516
|
</div>
|
|
519
517
|
<slot name="footer"></slot>
|
|
520
518
|
</div>
|
|
521
|
-
<div class="message" from:id="
|
|
519
|
+
<div class="message" from:id="concat(uid, '-validation')" from:hidden="not validation.issues.length">
|
|
522
520
|
<div $each="issue of validation.issues" $value="issue.message"></div>
|
|
523
521
|
</div>
|
|
524
|
-
<div class="sr-only" role="status" aria-live="polite" aria-atomic="true"
|
|
522
|
+
<div class="sr-only" role="status" aria-live="polite" aria-atomic="true">{$statusText}</div>
|
|
525
523
|
<div class="authored-options" $ref="options" hidden aria-hidden="true"><slot></slot></div>
|
|
526
524
|
</div>
|
|
527
525
|
<style>
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
</defs>
|
|
38
38
|
<dialog from:aria-label="accessibleLabel">
|
|
39
39
|
<header>
|
|
40
|
-
<h2 class="title" $if="label"
|
|
40
|
+
<h2 class="title" $if="label">{$label}</h2>
|
|
41
41
|
<button class="close" $ref="close" type="button" aria-label="Close"></button>
|
|
42
42
|
</header>
|
|
43
43
|
<ui-scroll-area class="body"><slot></slot></ui-scroll-area>
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
<div class="heading" $ref="heading" from:role="headingRole" from:aria-level="headingAriaLevel">
|
|
48
48
|
<button class="trigger" type="button" $ref="trigger" from:aria-controls="contentId" from:aria-expanded="internalOpen" from:disabled="disabled">
|
|
49
49
|
<span class="leading"><slot name="leading"></slot></span>
|
|
50
|
-
<span class="summary"><slot name="summary"
|
|
50
|
+
<span class="summary"><slot name="summary">{$summary}</slot></span>
|
|
51
51
|
<span class="indicator" aria-hidden="true"><slot name="indicator"><span class="chevron"></span></slot></span>
|
|
52
52
|
</button>
|
|
53
53
|
</div>
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
<div>
|
|
39
39
|
<div class="field">
|
|
40
40
|
<button class="preview" $ref="preview" type="button" from:disabled="disabled">
|
|
41
|
-
<span class="text"
|
|
42
|
-
<span $if="hint" class="hint" aria-hidden="true"
|
|
41
|
+
<span class="text">{$internalValue}</span>
|
|
42
|
+
<span $if="hint" class="hint" aria-hidden="true">{$hint}</span>
|
|
43
43
|
</button>
|
|
44
44
|
<input
|
|
45
45
|
class="input"
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
>
|
|
54
54
|
</div>
|
|
55
55
|
<div $if="actions" class="actions">
|
|
56
|
-
<button class="save" type="button"
|
|
57
|
-
<button class="cancel" type="button"
|
|
56
|
+
<button class="save" type="button">{$saveLabel}</button>
|
|
57
|
+
<button class="cancel" type="button">{$cancelLabel}</button>
|
|
58
58
|
</div>
|
|
59
59
|
</div>
|
|
60
60
|
<style>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<event name="insert" type="object({ rows: integer, cols: integer, withHeaderRow: boolean })"></event>
|
|
17
17
|
</defs>
|
|
18
18
|
<div from:hidden="not open">
|
|
19
|
-
<p class="hint"
|
|
19
|
+
<p class="hint">{$hint}</p>
|
|
20
20
|
<div class="grid" $ref="grid" role="group" aria-label="Table dimensions" style:--_rows="rows" style:--_cols="cols">
|
|
21
21
|
<button
|
|
22
22
|
$each="cell of cells"
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
</defs>
|
|
25
25
|
<div role="listbox" from:aria-busy="loading" from:hidden="not visible">
|
|
26
26
|
<div class="header"><slot name="header"></slot></div>
|
|
27
|
-
<div $if="searching" class="loading" role="status"
|
|
27
|
+
<div $if="searching" class="loading" role="status">{$loadingLabel}</div>
|
|
28
28
|
<ul $if="not searching" class="list" role="presentation">
|
|
29
29
|
<li
|
|
30
30
|
$each="row, index of rows"
|
|
31
|
-
from:id="
|
|
31
|
+
from:id="concat(prefix, '-option-', index)"
|
|
32
32
|
class="item"
|
|
33
33
|
class:active="index = active"
|
|
34
34
|
role="option"
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<prop name="initials" type="string" default="">Text fallback for the start slot when no avatar is supplied.</prop>
|
|
6
6
|
</defs>
|
|
7
7
|
<li role="option" tabindex="-1" from:data-value="value">
|
|
8
|
-
<span class="avatar" aria-hidden="true"><slot name="start"
|
|
9
|
-
<span class="body"><span class="label"><slot></slot></span><span $if="detail" class="detail"
|
|
8
|
+
<span class="avatar" aria-hidden="true"><slot name="start">{$initials}</slot></span>
|
|
9
|
+
<span class="body"><span class="label"><slot></slot></span><span $if="detail" class="detail">{$detail}</span></span>
|
|
10
10
|
</li>
|
|
11
11
|
<style>
|
|
12
12
|
:host {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</defs>
|
|
10
10
|
<li role="option" tabindex="-1" from:aria-disabled="disabled" from:data-value="value" from:data-keywords="keywords">
|
|
11
11
|
<span $if="icon" class="icon" aria-hidden="true"><ui-icon from:name="icon"></ui-icon></span>
|
|
12
|
-
<span class="body"><span class="title"><slot></slot></span><span $if="description" class="description"
|
|
12
|
+
<span class="body"><span class="title"><slot></slot></span><span $if="description" class="description">{$description}</span></span>
|
|
13
13
|
</li>
|
|
14
14
|
<style>
|
|
15
15
|
:host {
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
$each="item of section.items"
|
|
69
69
|
$key="item.action"
|
|
70
70
|
type="button"
|
|
71
|
-
from:role="{ true: 'menuitemcheckbox', false: 'menuitem' }[
|
|
72
|
-
from:aria-checked="{ true: item.checked, false: null }[
|
|
71
|
+
from:role="{ true: 'menuitemcheckbox', false: 'menuitem' }[concat(item.checkable)]"
|
|
72
|
+
from:aria-checked="{ true: item.checked, false: null }[concat(item.checkable)]"
|
|
73
73
|
class:danger="item.danger"
|
|
74
74
|
from:data-action="item.action"
|
|
75
75
|
>
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
$each="item of section.items"
|
|
107
107
|
$key="item.action"
|
|
108
108
|
type="button"
|
|
109
|
-
from:role="{ true: 'menuitemcheckbox', false: 'menuitem' }[
|
|
110
|
-
from:aria-checked="{ true: item.checked, false: null }[
|
|
109
|
+
from:role="{ true: 'menuitemcheckbox', false: 'menuitem' }[concat(item.checkable)]"
|
|
110
|
+
from:aria-checked="{ true: item.checked, false: null }[concat(item.checkable)]"
|
|
111
111
|
class:danger="item.danger"
|
|
112
112
|
from:data-action="item.action"
|
|
113
113
|
>
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
<prop name="size" type="keyword" values="sm, md, lg" default="md"
|
|
12
12
|
>Button and icon size together: sm is 1.75rem with a small icon, md is 2rem, and lg is 2.5rem with a large icon. On touch, every size gets an invisible hit
|
|
13
13
|
area of at least 44px.</prop>
|
|
14
|
+
<prop name="matchButton" type="boolean" default="false"
|
|
15
|
+
>Matches a boxed Button of the same size when the two share a flex row. Uses the control-size theme tokens and stretches to the row's height, including
|
|
16
|
+
touch-sized controls. Leave it off for compact toolbar and inline icon buttons.</prop>
|
|
14
17
|
<prop name="variant" type="keyword" values="ghost, outline, solid" default="ghost"
|
|
15
18
|
>Emphasis. ghost shows only the icon until it is hovered, for toolbars and dense rows; outline adds a border on the default surface; solid fills with the
|
|
16
19
|
accent colour, for the one primary action in a group.</prop>
|
|
@@ -23,7 +26,8 @@
|
|
|
23
26
|
from:disabled="disabled"
|
|
24
27
|
type="button"
|
|
25
28
|
from:aria-label="label"
|
|
26
|
-
from:
|
|
29
|
+
from:data-match-button="matchButton"
|
|
30
|
+
from:aria-disabled="{ true: 'true', false: null }[concat(loading or pending)]"
|
|
27
31
|
from:aria-busy="loading or pending"
|
|
28
32
|
>
|
|
29
33
|
<ui-spinner $if="loading or pending" size="sm"></ui-spinner>
|
|
@@ -245,6 +249,29 @@
|
|
|
245
249
|
min-block-size: var(--ui-icon-button-size, var(--_size));
|
|
246
250
|
}
|
|
247
251
|
|
|
252
|
+
/* A text button's companion uses control geometry; compact icon buttons keep their own density. */
|
|
253
|
+
:host-state([matchButton]) {
|
|
254
|
+
--_size: var(--ui-control-size-md);
|
|
255
|
+
block-size: auto;
|
|
256
|
+
align-self: stretch;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
:host-state([matchButton][size="sm"]) {
|
|
260
|
+
--_size: var(--ui-control-size-sm);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
:host-state([matchButton][size="lg"]) {
|
|
264
|
+
--_size: var(--ui-control-size-lg);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
@media (pointer: coarse) {
|
|
268
|
+
:host-state([matchButton]) {
|
|
269
|
+
inline-size: max(var(--ui-icon-button-size, var(--_size)), var(--ui-control-min-block-size));
|
|
270
|
+
min-inline-size: max(var(--ui-icon-button-size, var(--_size)), var(--ui-control-min-block-size));
|
|
271
|
+
min-block-size: max(var(--ui-icon-button-size, var(--_size)), var(--ui-control-min-block-size));
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
248
275
|
:host-state([round]) {
|
|
249
276
|
border-radius: var(--ui-radius-round);
|
|
250
277
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</defs>
|
|
26
26
|
<div
|
|
27
27
|
role="listbox"
|
|
28
|
-
from:tabindex="{ true: '-1', false: '0' }[
|
|
28
|
+
from:tabindex="{ true: '-1', false: '0' }[concat(disabled)]"
|
|
29
29
|
from:aria-multiselectable="multiple"
|
|
30
30
|
from:aria-disabled="disabled"
|
|
31
31
|
from:aria-required="required"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
role="option"
|
|
42
42
|
data-ui-choice-option
|
|
43
43
|
from:data-multiple="multiple"
|
|
44
|
-
from:id="
|
|
44
|
+
from:id="concat(uid, '-option-', choice.index)"
|
|
45
45
|
from:data-index="choice.index"
|
|
46
46
|
from:aria-selected="choice.selected"
|
|
47
47
|
from:aria-disabled="choice.disabled"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<prop name="label" type="string" default="">Visible heading and accessible name for this group of menu items.</prop>
|
|
4
4
|
</defs>
|
|
5
5
|
<div role="group" from:aria-label="label">
|
|
6
|
-
<div class="heading" $if="label"
|
|
6
|
+
<div class="heading" $if="label">{$label}</div>
|
|
7
7
|
<slot></slot>
|
|
8
8
|
</div>
|
|
9
9
|
<style>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
tabindex="-1"
|
|
26
26
|
from:aria-disabled="disabled"
|
|
27
27
|
from:data-value="value"
|
|
28
|
-
from:href="{ true: null, false: href }[
|
|
28
|
+
from:href="{ true: null, false: href }[concat(disabled)]"
|
|
29
29
|
>
|
|
30
30
|
<span class="label"><slot></slot></span>
|
|
31
31
|
<span class="shortcut" aria-hidden="true"><slot name="shortcut"></slot></span>
|
|
@@ -18,23 +18,22 @@
|
|
|
18
18
|
<prop name="label" type="string" default=""
|
|
19
19
|
>What the meter measures, as its accessible name ("Collected"). Leave it empty only when aria-labelledby names the meter from visible text.</prop>
|
|
20
20
|
<prop name="valueText" type="string" default=""
|
|
21
|
-
>The value as assistive technology reads it ("$750 of $1,240 collected", "3 of 5 done, overdue"). Empty reads the percentage
|
|
21
|
+
>The value as assistive technology reads it ("$750 of $1,240 collected", "3 of 5 done, overdue"). Empty reads the whole percentage in the current
|
|
22
|
+
locale.</prop>
|
|
22
23
|
<!-- Derived as it renders, so every render path, a server render included, draws the bar and states its value without JavaScript. -->
|
|
23
24
|
<computed name="amount" from="clamp(0, value, max)"></computed>
|
|
24
|
-
<computed name="percent" from="{ true: amount / max * 100, false: 0 }[
|
|
25
|
-
<!-- percent rounded half up, for the text: round() on a derived number does not compile to Vue yet. -->
|
|
26
|
-
<computed name="whole" from="percent + 0.5 - (percent + 0.5) % 1"></computed>
|
|
25
|
+
<computed name="percent" from="{ true: amount / max * 100, false: 0 }[concat(max > 0)]"></computed>
|
|
27
26
|
</defs>
|
|
28
27
|
<span
|
|
29
28
|
role="meter"
|
|
30
29
|
aria-valuemin="0"
|
|
31
30
|
from:aria-valuemax="max"
|
|
32
31
|
from:aria-valuenow="amount"
|
|
33
|
-
from:aria-valuetext="{ true: valueText, false: format('
|
|
34
|
-
from:aria-label="{ true: label, false: null }[
|
|
35
|
-
from:data-ui-meter-segments="{ true: segments, false: null }[
|
|
32
|
+
from:aria-valuetext="{ true: valueText, false: format($percent / 100, 'percent', { maximumFractionDigits: 0 }) }[concat(valueText != '')]"
|
|
33
|
+
from:aria-label="{ true: label, false: null }[concat(label != '')]"
|
|
34
|
+
from:data-ui-meter-segments="{ true: segments, false: null }[concat(segments > 1)]"
|
|
36
35
|
>
|
|
37
|
-
<span class="fill" style:inline-size="
|
|
36
|
+
<span class="fill" style:inline-size="concat(percent, '%')"></span>
|
|
38
37
|
</span>
|
|
39
38
|
<style>
|
|
40
39
|
/* How far along something is: a track, filled from the start in the tone's colour. The track is a
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
from:href="href"
|
|
27
27
|
from:target="target"
|
|
28
28
|
from:rel="rel"
|
|
29
|
-
from:aria-current="{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[
|
|
29
|
+
from:aria-current="{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[concat(current)]"
|
|
30
30
|
>
|
|
31
31
|
<span class="indicator" aria-hidden="true"></span>
|
|
32
32
|
<span class="leading"><slot name="leading"></slot></span>
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
</span>
|
|
37
37
|
<span class="trailing"><slot name="trailing"></slot></span>
|
|
38
38
|
</a>
|
|
39
|
-
<button $else type="button" from:aria-current="{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[
|
|
39
|
+
<button $else type="button" from:aria-current="{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[concat(current)]">
|
|
40
40
|
<span class="indicator" aria-hidden="true"></span>
|
|
41
41
|
<span class="leading"><slot name="leading"></slot></span>
|
|
42
42
|
<span class="content">
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
</event>
|
|
32
32
|
</defs>
|
|
33
33
|
<fieldset role="radiogroup" from:aria-required="required" from:aria-invalid="invalid" from:disabled="disabled">
|
|
34
|
-
<legend
|
|
34
|
+
<legend>{$label}</legend>
|
|
35
35
|
<slot></slot>
|
|
36
36
|
</fieldset>
|
|
37
37
|
<style>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<section>
|
|
12
12
|
<span class="head">
|
|
13
13
|
<span class="copy">
|
|
14
|
-
<h2 class="heading" from:hidden="not heading"
|
|
14
|
+
<h2 class="heading" from:hidden="not heading">{$heading}</h2>
|
|
15
15
|
<span class="description"><slot name="description"></slot></span>
|
|
16
16
|
</span>
|
|
17
17
|
<span class="actions"><slot name="actions"></slot></span>
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
</defs>
|
|
8
8
|
<span
|
|
9
9
|
class="ring"
|
|
10
|
-
from:role="{ true: 'status', false: null }[
|
|
11
|
-
from:aria-label="{ true: label, false: null }[
|
|
12
|
-
from:aria-live="{ true: 'polite', false: null }[
|
|
13
|
-
from:aria-hidden="{ true: null, false: 'true' }[
|
|
10
|
+
from:role="{ true: 'status', false: null }[concat(label != '')]"
|
|
11
|
+
from:aria-label="{ true: label, false: null }[concat(label != '')]"
|
|
12
|
+
from:aria-live="{ true: 'polite', false: null }[concat(label != '')]"
|
|
13
|
+
from:aria-hidden="{ true: null, false: 'true' }[concat(label != '')]"
|
|
14
14
|
>
|
|
15
15
|
<svg viewBox="0 0 50 50" fill="none" aria-hidden="true" focusable="false">
|
|
16
16
|
<circle class="track" cx="25" cy="25" r="20"></circle>
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
>Where it sits. inline takes its place in the view's flow; panel sits it on a dashed surface, for an empty area in a page; fill centres it in all the space
|
|
9
9
|
it is given, for a whole view that is loading or failed.</prop>
|
|
10
10
|
</defs>
|
|
11
|
-
<div from:role="{ true: 'alert', false: 'status' }[
|
|
11
|
+
<div from:role="{ true: 'alert', false: 'status' }[concat(kind = 'error')]">
|
|
12
12
|
<ui-spinner size="sm" from:hidden="kind != 'loading'"></ui-spinner>
|
|
13
13
|
<span class="copy">
|
|
14
|
-
<strong class="heading" from:hidden="not heading"
|
|
14
|
+
<strong class="heading" from:hidden="not heading">{$heading}</strong>
|
|
15
15
|
<span class="message"><slot></slot></span>
|
|
16
16
|
</span>
|
|
17
17
|
<span class="action"><slot name="action"></slot></span>
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
>
|
|
40
40
|
<span class="message" $value="toast.message"></span>
|
|
41
41
|
<span class="dismiss" from:data-toast="toast.id">
|
|
42
|
-
<ui-icon-button size="sm" variant="ghost" from:round="true" from:label="
|
|
42
|
+
<ui-icon-button size="sm" variant="ghost" from:round="true" from:label="concat('Dismiss ', toast.message)">
|
|
43
43
|
<ui-icon name="x"></ui-icon>
|
|
44
44
|
</ui-icon-button>
|
|
45
45
|
</span>
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
$ref="dragHandle"
|
|
73
73
|
type="button"
|
|
74
74
|
draggable="true"
|
|
75
|
-
from:aria-label="{ true:
|
|
75
|
+
from:aria-label="{ true: concat('Cancel moving ', label), false: concat('Drag ', label, ' to reorder') }[concat(moving)]"
|
|
76
76
|
>
|
|
77
77
|
<svg
|
|
78
78
|
aria-hidden="true"
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
tabindex="-1"
|
|
102
102
|
from:checked="selected"
|
|
103
103
|
from:disabled="disabled"
|
|
104
|
-
from:aria-label="
|
|
104
|
+
from:aria-label="concat('Select ', label)"
|
|
105
105
|
></label>
|
|
106
106
|
<span class="leading" $ref="leading"><slot name="leading"></slot></span>
|
|
107
|
-
<span class="label" $ref="label"><span class="label-text" $ref="labelText"><slot name="label"
|
|
107
|
+
<span class="label" $ref="label"><span class="label-text" $ref="labelText"><slot name="label">{$label}</slot></span></span>
|
|
108
108
|
<span class="actions" $ref="actions">
|
|
109
109
|
<ui-button $if="moving" data-tree-cancel-move variant="ghost" tone="neutral" size="sm" aria-label="Cancel move">Cancel</ui-button>
|
|
110
110
|
<span $else><slot name="actions"></slot></span>
|