@nanahoshi/mona-ui 0.25.1 → 0.26.0
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/README.md +2 -0
- package/command/package.json +4 -0
- package/docs/auto-complete.md +733 -0
- package/docs/avatar.md +220 -0
- package/docs/breadcrumb.md +320 -0
- package/docs/button-group.md +392 -0
- package/docs/button.md +256 -0
- package/docs/calendar.md +515 -0
- package/docs/card.md +292 -0
- package/docs/chart.md +4058 -0
- package/docs/checkbox.md +374 -0
- package/docs/chip.md +339 -0
- package/docs/circular-progress-bar.md +287 -0
- package/docs/collapsible.md +308 -0
- package/docs/color-gradient.md +336 -0
- package/docs/color-palette.md +317 -0
- package/docs/color-picker.md +387 -0
- package/docs/combo-box.md +764 -0
- package/docs/command.md +582 -0
- package/docs/contextmenu.md +530 -0
- package/docs/date-picker.md +251 -0
- package/docs/datetime-picker.md +284 -0
- package/docs/decimal-textbox.md +260 -0
- package/docs/dialog.md +822 -0
- package/docs/dropdown-button.md +507 -0
- package/docs/dropdown-list.md +779 -0
- package/docs/editor.md +374 -0
- package/docs/expansion-panel.md +348 -0
- package/docs/fieldset.md +217 -0
- package/docs/forms.md +162 -0
- package/docs/grid.md +2053 -0
- package/docs/input.md +197 -0
- package/docs/installation.md +54 -0
- package/docs/introduction.md +46 -0
- package/docs/label.md +340 -0
- package/docs/list-box.md +637 -0
- package/docs/list-view.md +584 -0
- package/docs/menubar.md +559 -0
- package/docs/multi-select.md +765 -0
- package/docs/notification.md +460 -0
- package/docs/numeric-textbox.md +301 -0
- package/docs/otp-input.md +539 -0
- package/docs/pager.md +513 -0
- package/docs/placeholder.md +176 -0
- package/docs/popover.md +423 -0
- package/docs/popup-menu.md +658 -0
- package/docs/popup.md +617 -0
- package/docs/progress-bar.md +368 -0
- package/docs/radio-button.md +451 -0
- package/docs/range-slider.md +367 -0
- package/docs/rating.md +518 -0
- package/docs/scroll-view.md +375 -0
- package/docs/segmented.md +434 -0
- package/docs/sheet.md +348 -0
- package/docs/sidebar.md +1126 -0
- package/docs/skeleton.md +181 -0
- package/docs/slider.md +423 -0
- package/docs/spinner.md +370 -0
- package/docs/split-button.md +522 -0
- package/docs/splitter.md +342 -0
- package/docs/stepper.md +539 -0
- package/docs/switch.md +340 -0
- package/docs/tabs.md +542 -0
- package/docs/textarea.md +196 -0
- package/docs/textbox.md +332 -0
- package/docs/theming.md +403 -0
- package/docs/time-picker.md +254 -0
- package/docs/tooltip-directive.md +340 -0
- package/docs/tooltip.md +321 -0
- package/docs/tree-view.md +1018 -0
- package/docs/window.md +663 -0
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +8 -0
- package/fesm2022/nanahoshi-mona-ui-button.mjs +12 -0
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +5 -2
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +86 -0
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +16 -2
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-command.mjs +924 -0
- package/fesm2022/nanahoshi-mona-ui-common.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +10 -6
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +9 -5
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +9 -5
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +55 -1
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +3 -2
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +13 -0
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +5 -0
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs → nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs → nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs} +18 -35
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs} +4653 -4529
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +168 -0
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +19 -1
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +32 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +15 -8
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +8 -5
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +9 -0
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +5 -0
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +14 -6
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +48 -183
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +16 -0
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +2 -0
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +5 -5
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +7 -2
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +9 -6
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +18 -21
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +11 -8
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +9 -1
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +16 -5
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +13 -11
- package/fesm2022/nanahoshi-mona-ui-window.mjs +12 -5
- package/i18n/catalogs/en-US.messages.json +10 -0
- package/internal/popup-menu/package.json +4 -0
- package/llms.txt +123 -0
- package/locales/ar-sa/ar-sa.messages.json +10 -0
- package/locales/de-de/de-de.messages.json +10 -0
- package/locales/es-es/es-es.messages.json +10 -0
- package/locales/fr-fr/fr-fr.messages.json +10 -0
- package/locales/id-id/id-id.messages.json +10 -0
- package/locales/it-it/it-it.messages.json +10 -0
- package/locales/ja-jp/ja-jp.messages.json +10 -0
- package/locales/ko-kr/ko-kr.messages.json +10 -0
- package/locales/pt-br/pt-br.messages.json +10 -0
- package/locales/ru-ru/ru-ru.messages.json +10 -0
- package/locales/tr-tr/tr-tr.messages.json +10 -0
- package/locales/zh-cn/zh-cn.messages.json +10 -0
- package/locales/zh-tw/zh-tw.messages.json +10 -0
- package/package.json +9 -1
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -1
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +8 -0
- package/types/nanahoshi-mona-ui-button.d.ts +12 -0
- package/types/nanahoshi-mona-ui-calendar.d.ts +3 -0
- package/types/nanahoshi-mona-ui-chart.d.ts +200 -0
- package/types/nanahoshi-mona-ui-check-box.d.ts +4 -0
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +4 -0
- package/types/nanahoshi-mona-ui-collapsible.d.ts +10 -0
- package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -1
- package/types/nanahoshi-mona-ui-command.d.ts +253 -0
- package/types/nanahoshi-mona-ui-common.d.ts +17 -1
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +5 -2
- package/types/nanahoshi-mona-ui-date-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-dialog.d.ts +58 -1
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +7 -3
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +55 -1
- package/types/nanahoshi-mona-ui-editor.d.ts +31 -0
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +13 -0
- package/types/nanahoshi-mona-ui-fieldset.d.ts +5 -0
- package/types/nanahoshi-mona-ui-grid.d.ts +162 -35
- package/types/nanahoshi-mona-ui-i18n.d.ts +144 -1
- package/types/nanahoshi-mona-ui-internal-list.d.ts +16 -1
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +165 -0
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +21 -2
- package/types/nanahoshi-mona-ui-internal.d.ts +4 -5
- package/types/nanahoshi-mona-ui-label.d.ts +1 -0
- package/types/nanahoshi-mona-ui-list-box.d.ts +27 -4
- package/types/nanahoshi-mona-ui-list-view.d.ts +34 -1
- package/types/nanahoshi-mona-ui-list.d.ts +1 -1
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +10 -0
- package/types/nanahoshi-mona-ui-menubar.d.ts +10 -3
- package/types/nanahoshi-mona-ui-multi-select.d.ts +3 -3
- package/types/nanahoshi-mona-ui-notification.d.ts +9 -0
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -1
- package/types/nanahoshi-mona-ui-otp-input.d.ts +1 -0
- package/types/nanahoshi-mona-ui-pager.d.ts +5 -1
- package/types/nanahoshi-mona-ui-popover.d.ts +9 -1
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +48 -161
- package/types/nanahoshi-mona-ui-popup.d.ts +16 -0
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +4 -0
- package/types/nanahoshi-mona-ui-rating.d.ts +2 -0
- package/types/nanahoshi-mona-ui-segmented.d.ts +1 -0
- package/types/nanahoshi-mona-ui-sheet.d.ts +1 -1
- package/types/nanahoshi-mona-ui-slider.d.ts +2 -0
- package/types/nanahoshi-mona-ui-spinner.d.ts +7 -0
- package/types/nanahoshi-mona-ui-split-button.d.ts +7 -4
- package/types/nanahoshi-mona-ui-stepper.d.ts +11 -2
- package/types/nanahoshi-mona-ui-tabs.d.ts +4 -1
- package/types/nanahoshi-mona-ui-text-box.d.ts +9 -1
- package/types/nanahoshi-mona-ui-time-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-tooltip.d.ts +10 -2
- package/types/nanahoshi-mona-ui-tree-view.d.ts +6 -5
- package/types/nanahoshi-mona-ui-window.d.ts +66 -1
|
@@ -65,7 +65,7 @@ class TreeViewComponent {
|
|
|
65
65
|
...(ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []));
|
|
66
66
|
this.emptyText = computed(() => this.treeService.isTreeFiltered() ? this.messages().noMatches : this.messages().noData, /* @ts-ignore */
|
|
67
67
|
...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
|
|
68
|
-
/** "Filter {name}", from the tree's `
|
|
68
|
+
/** "Filter {name}", from the tree's `aria-label` or else the text of its `aria-labelledby` elements. */
|
|
69
69
|
this.filterAriaLabel = computed(() => {
|
|
70
70
|
const name = this.ariaLabel().trim() || this.#labelledByText();
|
|
71
71
|
return name ? this.messages().filterLabel(name) : this.messages().filterTree;
|
|
@@ -84,18 +84,16 @@ class TreeViewComponent {
|
|
|
84
84
|
this.animate = input(true, { ...(ngDevMode ? { debugName: "animate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
85
85
|
/**
|
|
86
86
|
* @description Accessible name of the tree. Describe what the tree represents; it also names the filter input
|
|
87
|
-
* ("Filter {name}"). Set this or `
|
|
87
|
+
* ("Filter {name}"). Set this or `aria-labelledby`: an unnamed tree logs a warning in development. A plain
|
|
88
88
|
* `aria-label` attribute on `mona-tree-view` doesn't name the tree.
|
|
89
89
|
* @default ""
|
|
90
90
|
*/
|
|
91
|
-
this.ariaLabel = input("", /*
|
|
92
|
-
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
91
|
+
this.ariaLabel = input("", { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: "aria-label" });
|
|
93
92
|
/**
|
|
94
|
-
* @description Id of the element that names the tree, as an alternative to `
|
|
93
|
+
* @description Id of the element that names the tree, as an alternative to `aria-label`.
|
|
95
94
|
* @default ""
|
|
96
95
|
*/
|
|
97
|
-
this.ariaLabelledBy = input("", /*
|
|
98
|
-
...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
96
|
+
this.ariaLabelledBy = input("", { ...(ngDevMode ? { debugName: "ariaLabelledBy" } : /* istanbul ignore next */ {}), alias: "aria-labelledby" });
|
|
99
97
|
/**
|
|
100
98
|
* @description Emitted when the tree-view loses focus.
|
|
101
99
|
*/
|
|
@@ -231,6 +229,7 @@ class TreeViewComponent {
|
|
|
231
229
|
}
|
|
232
230
|
return { originalParentUid, originalIndex, sourceNodeUid: sourceNode.uid };
|
|
233
231
|
}
|
|
232
|
+
/** Reverts a move previously performed by `moveNode`. */
|
|
234
233
|
undoMoveNode(snapshot) {
|
|
235
234
|
const sourceNode = this.treeService.getNodeByUid(snapshot.sourceNodeUid);
|
|
236
235
|
if (!sourceNode) {
|
|
@@ -299,15 +298,18 @@ class TreeViewComponent {
|
|
|
299
298
|
if (this.ariaLabel().trim() || this.ariaLabelledBy().trim()) {
|
|
300
299
|
return;
|
|
301
300
|
}
|
|
302
|
-
console.warn("[Mona TreeView] A tree view needs an accessible name. Set
|
|
301
|
+
console.warn("[Mona TreeView] A tree view needs an accessible name. Set aria-label or aria-labelledby.", this.#hostElementRef.nativeElement);
|
|
303
302
|
}
|
|
304
303
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TreeViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
305
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: TreeViewComponent, isStandalone: true, selector: "mona-tree-view", inputs: { animate: { classPropertyName: "animate", publicName: "animate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "
|
|
304
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: TreeViewComponent, isStandalone: true, selector: "mona-tree-view", inputs: { animate: { classPropertyName: "animate", publicName: "animate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, children: { classPropertyName: "children", publicName: "children", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, hasChildren: { classPropertyName: "hasChildren", publicName: "hasChildren", isSignal: true, isRequired: false, transformFunction: null }, idField: { classPropertyName: "idField", publicName: "idField", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, parentIdField: { classPropertyName: "parentIdField", publicName: "parentIdField", isSignal: true, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { blur: "blur", childrenLoadError: "childrenLoadError", focus: "focus", nodeClick: "nodeClick" }, host: { properties: { "attr.aria-label": "null", "attr.aria-labelledby": "null" } }, providers: [TreeService], queries: [{ propertyName: "nodeTemplate", first: true, predicate: TreeViewNodeTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], ngImport: i0, template: "@if (treeService.filterableOptions().enabled) {\n <div role=\"search\" [attr.aria-label]=\"filterAriaLabel()\">\n <mona-filter-input\n [filter]=\"treeService.filterText()\"\n [debounce]=\"treeService.filterableOptions().debounce\"\n [placeholder]=\"treeService.filterPlaceholder()\"\n [ariaLabel]=\"filterAriaLabel()\"\n [ariaControls]=\"treeId\"\n [autoFocus]=\"false\"\n (filterChange)=\"onFilterChange($event)\"></mona-filter-input>\n </div>\n}\n<!-- An empty tree stays a named Tab stop, lying over the \"No data\" or \"No matching items\" text that describes it. -->\n<div class=\"relative flex-1 overflow-auto\">\n @if (empty()) {\n <mona-placeholder\n [id]=\"statusId\"\n [text]=\"emptyText()\"\n class=\"flex h-full w-full items-center justify-center\"></mona-placeholder>\n }\n <mona-tree\n [id]=\"treeId\"\n [class.absolute]=\"empty()\"\n [class.inset-0]=\"empty()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [ariaDescribedBy]=\"empty() ? statusId : ''\">\n @if (nodeTemplate()) {\n <ng-template monaTreeNodeTemplate let-dataItem let-element=\"element\">\n <ng-container\n [ngTemplateOutlet]=\"nodeTemplate() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: dataItem, element }\"></ng-container>\n </ng-template>\n }\n </mona-tree>\n</div>\n", dependencies: [{ kind: "component", type: FilterInputComponent, selector: "mona-filter-input", inputs: ["activeDescendant", "ariaControls", "ariaLabel", "autoFocus", "controls", "debounce", "filter", "placeholder", "size"], outputs: ["filterChange", "inputBlur", "inputFocus"] }, { kind: "component", type: PlaceholderComponent, selector: "mona-placeholder", inputs: ["text", "class"] }, { kind: "component", type: TreeComponent, selector: "mona-tree", inputs: ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy", "data"] }, { kind: "directive", type: TreeNodeTemplateDirective, selector: "ng-template[monaTreeNodeTemplate]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
306
305
|
}
|
|
307
306
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TreeViewComponent, decorators: [{
|
|
308
307
|
type: Component,
|
|
309
|
-
args: [{ selector: "mona-tree-view", imports: [FilterInputComponent, PlaceholderComponent, TreeComponent, TreeNodeTemplateDirective, NgTemplateOutlet], providers: [TreeService],
|
|
310
|
-
|
|
308
|
+
args: [{ selector: "mona-tree-view", imports: [FilterInputComponent, PlaceholderComponent, TreeComponent, TreeNodeTemplateDirective, NgTemplateOutlet], providers: [TreeService], host: {
|
|
309
|
+
"[attr.aria-label]": "null",
|
|
310
|
+
"[attr.aria-labelledby]": "null"
|
|
311
|
+
}, template: "@if (treeService.filterableOptions().enabled) {\n <div role=\"search\" [attr.aria-label]=\"filterAriaLabel()\">\n <mona-filter-input\n [filter]=\"treeService.filterText()\"\n [debounce]=\"treeService.filterableOptions().debounce\"\n [placeholder]=\"treeService.filterPlaceholder()\"\n [ariaLabel]=\"filterAriaLabel()\"\n [ariaControls]=\"treeId\"\n [autoFocus]=\"false\"\n (filterChange)=\"onFilterChange($event)\"></mona-filter-input>\n </div>\n}\n<!-- An empty tree stays a named Tab stop, lying over the \"No data\" or \"No matching items\" text that describes it. -->\n<div class=\"relative flex-1 overflow-auto\">\n @if (empty()) {\n <mona-placeholder\n [id]=\"statusId\"\n [text]=\"emptyText()\"\n class=\"flex h-full w-full items-center justify-center\"></mona-placeholder>\n }\n <mona-tree\n [id]=\"treeId\"\n [class.absolute]=\"empty()\"\n [class.inset-0]=\"empty()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [ariaDescribedBy]=\"empty() ? statusId : ''\">\n @if (nodeTemplate()) {\n <ng-template monaTreeNodeTemplate let-dataItem let-element=\"element\">\n <ng-container\n [ngTemplateOutlet]=\"nodeTemplate() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: dataItem, element }\"></ng-container>\n </ng-template>\n }\n </mona-tree>\n</div>\n" }]
|
|
312
|
+
}], ctorParameters: () => [], propDecorators: { nodeTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TreeViewNodeTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], animate: [{ type: i0.Input, args: [{ isSignal: true, alias: "animate", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], blur: [{ type: i0.Output, args: ["blur"] }], children: [{ type: i0.Input, args: [{ isSignal: true, alias: "children", required: false }] }], childrenLoadError: [{ type: i0.Output, args: ["childrenLoadError"] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], focus: [{ type: i0.Output, args: ["focus"] }], hasChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasChildren", required: false }] }], idField: [{ type: i0.Input, args: [{ isSignal: true, alias: "idField", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], nodeClick: [{ type: i0.Output, args: ["nodeClick"] }], parentIdField: [{ type: i0.Input, args: [{ isSignal: true, alias: "parentIdField", required: false }] }], textField: [{ type: i0.Input, args: [{ isSignal: true, alias: "textField", required: false }] }] } });
|
|
311
313
|
|
|
312
314
|
class TreeViewCheckableDirective {
|
|
313
315
|
#defaultOptions;
|
|
@@ -836,7 +836,7 @@ class WindowContentComponent {
|
|
|
836
836
|
if (this.hasTitle || this.windowData.ariaLabel) {
|
|
837
837
|
return;
|
|
838
838
|
}
|
|
839
|
-
console.warn("[Mona Window] A window needs an accessible name. Set title, a title template or ariaLabel.", this.#hostElementRef.nativeElement);
|
|
839
|
+
console.warn("[Mona Window] A window needs an accessible name. Set a title, a title template or aria-label (ariaLabel in the service settings).", this.#hostElementRef.nativeElement);
|
|
840
840
|
}
|
|
841
841
|
closeWindow(event) {
|
|
842
842
|
// preventClose and close$ get their say inside close(); this button doesn't ask a second time.
|
|
@@ -907,6 +907,7 @@ class WindowRef {
|
|
|
907
907
|
close(result) {
|
|
908
908
|
this.#options.close(result);
|
|
909
909
|
}
|
|
910
|
+
/** Closes the window after the given delay, in milliseconds. */
|
|
910
911
|
closeWithDelay(delay, result) {
|
|
911
912
|
this.#options.closeWithDelay(delay, result);
|
|
912
913
|
}
|
|
@@ -936,6 +937,7 @@ class WindowRef {
|
|
|
936
937
|
get closed$() {
|
|
937
938
|
return this.#options.closed$;
|
|
938
939
|
}
|
|
940
|
+
/** The hosted component, when `content` is a component rather than a `TemplateRef`. */
|
|
939
941
|
get component() {
|
|
940
942
|
return this.#options.component;
|
|
941
943
|
}
|
|
@@ -951,12 +953,15 @@ class WindowRef {
|
|
|
951
953
|
get dragStart$() {
|
|
952
954
|
return this.#options.dragStart$;
|
|
953
955
|
}
|
|
956
|
+
/** The window's overlay element. */
|
|
954
957
|
get element() {
|
|
955
958
|
return this.#options.element;
|
|
956
959
|
}
|
|
960
|
+
/** The window's current rendered height, in pixels. */
|
|
957
961
|
get height() {
|
|
958
962
|
return this.#options.height;
|
|
959
963
|
}
|
|
964
|
+
/** The underlying `PopupRef`, for advanced overlay access. */
|
|
960
965
|
get popupRef() {
|
|
961
966
|
return this.#options.popupRef;
|
|
962
967
|
}
|
|
@@ -964,6 +969,7 @@ class WindowRef {
|
|
|
964
969
|
get resize$() {
|
|
965
970
|
return this.#options.resize$;
|
|
966
971
|
}
|
|
972
|
+
/** The window's current rendered width, in pixels. */
|
|
967
973
|
get width() {
|
|
968
974
|
return this.#options.width;
|
|
969
975
|
}
|
|
@@ -1272,8 +1278,7 @@ class WindowComponent {
|
|
|
1272
1278
|
/**
|
|
1273
1279
|
* @description Accessible name for the window when it has no `title` or title template.
|
|
1274
1280
|
*/
|
|
1275
|
-
this.ariaLabel = input(/*
|
|
1276
|
-
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
1281
|
+
this.ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: "aria-label" });
|
|
1277
1282
|
/**
|
|
1278
1283
|
* @description Sets the visibility of the close button in the window header.
|
|
1279
1284
|
* @default true
|
|
@@ -1421,6 +1426,7 @@ class WindowComponent {
|
|
|
1421
1426
|
this.#windowRef?.close();
|
|
1422
1427
|
});
|
|
1423
1428
|
}
|
|
1429
|
+
/** Closes the window. */
|
|
1424
1430
|
closeWindow() {
|
|
1425
1431
|
this.#windowRef?.close();
|
|
1426
1432
|
}
|
|
@@ -1539,7 +1545,7 @@ class WindowComponent {
|
|
|
1539
1545
|
this.#setResizeSubscription();
|
|
1540
1546
|
}
|
|
1541
1547
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: WindowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1542
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.6", type: WindowComponent, isStandalone: true, selector: "mona-window", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "
|
|
1548
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.6", type: WindowComponent, isStandalone: true, selector: "mona-window", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, focusedElement: { classPropertyName: "focusedElement", publicName: "focusedElement", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, left: { classPropertyName: "left", publicName: "left", isSignal: true, isRequired: false, transformFunction: null }, look: { classPropertyName: "look", publicName: "look", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, maximizable: { classPropertyName: "maximizable", publicName: "maximizable", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, minHeight: { classPropertyName: "minHeight", publicName: "minHeight", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, minimizable: { classPropertyName: "minimizable", publicName: "minimizable", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, top: { classPropertyName: "top", publicName: "top", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { close: "close", closed: "closed", dragEnd: "dragEnd", dragStart: "dragStart", height: "heightChange", left: "leftChange", top: "topChange", width: "widthChange" }, host: { properties: { "attr.aria-label": "null" }, classAttribute: "hidden" }, queries: [{ propertyName: "actionTemplate", first: true, predicate: WindowActionTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: WindowContentTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: WindowFooterTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "titleTemplate", first: true, predicate: WindowTitleTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "projectedContent", first: true, predicate: ["projectedContent"], descendants: true, read: TemplateRef, isSignal: true }], ngImport: i0, template: `<ng-template #projectedContent><ng-content /></ng-template>`, isInline: true }); }
|
|
1543
1549
|
}
|
|
1544
1550
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: WindowComponent, decorators: [{
|
|
1545
1551
|
type: Component,
|
|
@@ -1548,10 +1554,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
1548
1554
|
// Content placed directly inside <mona-window> is the window's content, unless a monaWindowContentTemplate is given.
|
|
1549
1555
|
template: `<ng-template #projectedContent><ng-content /></ng-template>`,
|
|
1550
1556
|
host: {
|
|
1557
|
+
"[attr.aria-label]": "null",
|
|
1551
1558
|
class: "hidden"
|
|
1552
1559
|
}
|
|
1553
1560
|
}]
|
|
1554
|
-
}], ctorParameters: () => [], propDecorators: { actionTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => WindowActionTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => WindowContentTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => WindowFooterTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], projectedContent: [{ type: i0.ViewChild, args: ["projectedContent", { ...{ read: TemplateRef }, isSignal: true }] }], titleTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => WindowTitleTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "
|
|
1561
|
+
}], ctorParameters: () => [], propDecorators: { actionTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => WindowActionTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => WindowContentTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => WindowFooterTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], projectedContent: [{ type: i0.ViewChild, args: ["projectedContent", { ...{ read: TemplateRef }, isSignal: true }] }], titleTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => WindowTitleTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], close: [{ type: i0.Output, args: ["close"] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], dragEnd: [{ type: i0.Output, args: ["dragEnd"] }], dragStart: [{ type: i0.Output, args: ["dragStart"] }], draggable: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggable", required: false }] }], focusedElement: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedElement", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }, { type: i0.Output, args: ["heightChange"] }], left: [{ type: i0.Input, args: [{ isSignal: true, alias: "left", required: false }] }, { type: i0.Output, args: ["leftChange"] }], look: [{ type: i0.Input, args: [{ isSignal: true, alias: "look", required: false }] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], maximizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximizable", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], minHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "minHeight", required: false }] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidth", required: false }] }], minimizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimizable", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], top: [{ type: i0.Input, args: [{ isSignal: true, alias: "top", required: false }] }, { type: i0.Output, args: ["topChange"] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }, { type: i0.Output, args: ["widthChange"] }] } });
|
|
1555
1562
|
|
|
1556
1563
|
/*
|
|
1557
1564
|
* Public API Surface of @nanahoshi/mona-ui/window
|
|
@@ -157,6 +157,15 @@
|
|
|
157
157
|
"comboBox": {
|
|
158
158
|
"clear": "Clear"
|
|
159
159
|
},
|
|
160
|
+
"command": {
|
|
161
|
+
"dialogLabel": "Command menu",
|
|
162
|
+
"inputLabel": "Search commands",
|
|
163
|
+
"listLabel": "Results",
|
|
164
|
+
"loading": "Loading",
|
|
165
|
+
"noResults": "No results found",
|
|
166
|
+
"placeholder": "Type a command or search…",
|
|
167
|
+
"resultsAvailable": "{count, plural, =1 {# result available} other {# results available}}"
|
|
168
|
+
},
|
|
160
169
|
"datePicker": {
|
|
161
170
|
"datePicker": "Date picker",
|
|
162
171
|
"openCalendar": "Open calendar"
|
|
@@ -311,6 +320,7 @@
|
|
|
311
320
|
"filterOperator": "Filter operator for {column}: {operator}",
|
|
312
321
|
"filterPlaceholder": "Filter...",
|
|
313
322
|
"group": "Group",
|
|
323
|
+
"groupOptions": "Group options for {column}",
|
|
314
324
|
"loading": "Loading",
|
|
315
325
|
"modified": "Modified",
|
|
316
326
|
"moveAsNext": "Move as next",
|
package/llms.txt
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Mona UI
|
|
2
|
+
|
|
3
|
+
Mona UI is an Angular component library styled with Tailwind CSS 4. Its components are standalone and signal based: inputs are `input()` and `model()`, events are `output()`.
|
|
4
|
+
|
|
5
|
+
## Essentials
|
|
6
|
+
|
|
7
|
+
- Install with `npm install @nanahoshi/mona-ui`. The application needs Tailwind CSS 4.
|
|
8
|
+
- Import the styles in the main stylesheet, after Tailwind: `@import "tailwindcss";` then `@import "@nanahoshi/mona-ui/styles.css";`. Without it, components render unstyled.
|
|
9
|
+
- Import every symbol from its entry point, such as `import { ButtonDirective } from "@nanahoshi/mona-ui/button";`. Each page below names its entry point. The root `@nanahoshi/mona-ui` exports nothing.
|
|
10
|
+
- Add what you import to the standalone component's `imports` array. There are no NgModules.
|
|
11
|
+
- No provider is required. Optional ones: `provideThemeOptions` (`@nanahoshi/mona-ui/theme`) to pick a theme, `provideMonaI18n` (`@nanahoshi/mona-ui/i18n`) for locale and messages, `provideNotificationDefaults` (`@nanahoshi/mona-ui/notification`) and `provideSidebarStorage` (`@nanahoshi/mona-ui/sidebar`).
|
|
12
|
+
- Form controls implement `FormValueControl` from `@angular/forms/signals`: bind them with `[formField]`. They have no `ControlValueAccessor`, but `[(ngModel)]` and `[formControl]` still work, because Angular binds a control's `value` and `touch` directly.
|
|
13
|
+
|
|
14
|
+
## Common mistakes
|
|
15
|
+
|
|
16
|
+
- Importing from `@nanahoshi/mona-ui` instead of an entry point such as `@nanahoshi/mona-ui/grid`.
|
|
17
|
+
- Leaving out `@nanahoshi/mona-ui/styles.css`, or importing it before Tailwind.
|
|
18
|
+
- Treating a `placeholder` as a label. Give each control a name: a `<label for>` pointed at its input id, `aria-label` or `aria-labelledby`. Those two are inputs on every component that takes a name, and the component moves them to the element that has the role.
|
|
19
|
+
- Expecting the grid, list box or tabs to change their data. They report the change through an event, and you write it back to the data you bound.
|
|
20
|
+
- Putting `[disabled]` on a `monaTooltip` that sits on a button: it disables the button too. Use `[tooltipDisabled]`.
|
|
21
|
+
- Using the rich text editor without its extra styles: `@import "remixicon/fonts/remixicon.css";` and `@plugin "@tailwindcss/typography";`.
|
|
22
|
+
|
|
23
|
+
## Get Started
|
|
24
|
+
|
|
25
|
+
- [Introduction](docs/introduction.md): What Mona UI is, what it includes and how it is built.
|
|
26
|
+
- [Installation](docs/installation.md): Install the package, set up its styles and choose a theme.
|
|
27
|
+
- [Theming](docs/theming.md): Customize colors, density and shape through design tokens.
|
|
28
|
+
- [Forms](docs/forms.md): Connect Mona UI controls to Angular signal forms.
|
|
29
|
+
|
|
30
|
+
## Actions
|
|
31
|
+
|
|
32
|
+
- [Button](docs/button.md): Styles a native button and adds loading, toggle and disabled behavior.
|
|
33
|
+
- [Button Group](docs/button-group.md): Joins related buttons into one control with a shared look and size.
|
|
34
|
+
- [Dropdown Button](docs/dropdown-button.md): A single button that opens a menu of actions.
|
|
35
|
+
- [Split Button](docs/split-button.md): A primary action button paired with a menu of secondary actions.
|
|
36
|
+
|
|
37
|
+
## Form Fields
|
|
38
|
+
|
|
39
|
+
- [Decimal Text Box](docs/decimal-textbox.md): A numeric input whose value is a decimal string, for exact values like money.
|
|
40
|
+
- [Editor](docs/editor.md): A rich text editor with a configurable toolbar and an HTML value.
|
|
41
|
+
- [Fieldset](docs/fieldset.md): Groups related form controls under a labelled border.
|
|
42
|
+
- [Input](docs/input.md): Styles a native input element and keeps its browser behavior.
|
|
43
|
+
- [Label](docs/label.md): Styled, accessible labels associated with form controls.
|
|
44
|
+
- [Numeric Text Box](docs/numeric-textbox.md): A number input with spinner buttons, bounds and decimal formatting.
|
|
45
|
+
- [OTP Input](docs/otp-input.md): A segmented input for one-time passwords and verification codes.
|
|
46
|
+
- [Text Area](docs/textarea.md): Styles a native textarea element and keeps its browser behavior.
|
|
47
|
+
- [Text Box](docs/textbox.md): A text input with prefix and suffix slots and an optional clear button.
|
|
48
|
+
|
|
49
|
+
## Selection
|
|
50
|
+
|
|
51
|
+
- [Auto Complete](docs/auto-complete.md): A text input that suggests matching options as the user types.
|
|
52
|
+
- [Checkbox](docs/checkbox.md): A checkbox with label handling and an indeterminate state.
|
|
53
|
+
- [Combo Box](docs/combo-box.md): A text input that resolves typed text to one item from a collection.
|
|
54
|
+
- [Dropdown List](docs/dropdown-list.md): A closed control that opens a list for choosing exactly one option.
|
|
55
|
+
- [Multi Select](docs/multi-select.md): A control that shows selected options as removable tags.
|
|
56
|
+
- [Radio Button](docs/radio-button.md): Radio buttons and groups for choosing one option from several.
|
|
57
|
+
- [Range Slider](docs/range-slider.md): A two-handle slider for selecting a numeric interval.
|
|
58
|
+
- [Rating](docs/rating.md): Choose a value from a visual scale of icons, in whole or half steps.
|
|
59
|
+
- [Segmented](docs/segmented.md): A compact set of mutually exclusive options.
|
|
60
|
+
- [Slider](docs/slider.md): A single-handle slider for selecting a numeric value.
|
|
61
|
+
- [Switch](docs/switch.md): A binary on and off toggle with optional state labels.
|
|
62
|
+
|
|
63
|
+
## Date, Time & Color
|
|
64
|
+
|
|
65
|
+
- [Calendar](docs/calendar.md): Date selection in single, multiple and range modes across month, year and decade views.
|
|
66
|
+
- [Color Gradient](docs/color-gradient.md): A color editor for saturation, value, hue and alpha.
|
|
67
|
+
- [Color Palette](docs/color-palette.md): A grid of selectable color swatches from a built-in or custom scheme.
|
|
68
|
+
- [Color Picker](docs/color-picker.md): A compact control that opens a color palette or gradient editor.
|
|
69
|
+
- [Date Picker](docs/date-picker.md): A date input that opens a calendar popup.
|
|
70
|
+
- [Date Time Picker](docs/datetime-picker.md): An input for choosing a date and a time together.
|
|
71
|
+
- [Time Picker](docs/time-picker.md): A time input that opens a time selector popup.
|
|
72
|
+
|
|
73
|
+
## Data
|
|
74
|
+
|
|
75
|
+
- [Avatar](docs/avatar.md): Shows a person or entity as an image, text label or projected content.
|
|
76
|
+
- [Chip](docs/chip.md): A compact label that can be selected, removed or given a prefix.
|
|
77
|
+
- [Grid](docs/grid.md): Tabular data with paging, sorting, filtering, grouping, selection and editing.
|
|
78
|
+
- [List Box](docs/list-box.md): A selectable list with a toolbar for moving items and transferring them between lists.
|
|
79
|
+
- [List View](docs/list-view.md): Renders a collection as a list, with optional selection, grouping and paging.
|
|
80
|
+
- [Pager](docs/pager.md): Pagination controls with page buttons, a page-size selector and a page-jump input.
|
|
81
|
+
- [Tree View](docs/tree-view.md): Hierarchical data as an expandable, keyboard-navigable tree.
|
|
82
|
+
|
|
83
|
+
## Charts
|
|
84
|
+
|
|
85
|
+
- [Chart](docs/chart.md): High-performance Canvas charts composed from series, axes and interaction parts.
|
|
86
|
+
|
|
87
|
+
## Navigation
|
|
88
|
+
|
|
89
|
+
- [Breadcrumb](docs/breadcrumb.md): A navigation trail showing where the current page sits in a hierarchy.
|
|
90
|
+
- [Command Menu](docs/command.md): A searchable list of actions or options, operated from one input, inline or in a dialog.
|
|
91
|
+
- [Context Menu](docs/contextmenu.md): A popup menu attached to an element, opened by right-click or keyboard.
|
|
92
|
+
- [Menubar](docs/menubar.md): A persistent horizontal bar of top-level menus.
|
|
93
|
+
- [Popup Menu](docs/popup-menu.md): Opens a menu from an element you already have, such as an icon button or a row action.
|
|
94
|
+
- [Sidebar](docs/sidebar.md): A composable application shell with collapsible side panels.
|
|
95
|
+
- [Stepper](docs/stepper.md): Guides users through a sequential, multi-step process.
|
|
96
|
+
- [Tabs](docs/tabs.md): Switches between panels of related content.
|
|
97
|
+
|
|
98
|
+
## Overlays
|
|
99
|
+
|
|
100
|
+
- [Dialog](docs/dialog.md): Modal or non-modal messages, confirmations and content dialogs.
|
|
101
|
+
- [Popover](docs/popover.md): A floating panel anchored to a target and opened by a configurable trigger.
|
|
102
|
+
- [Popup](docs/popup.md): Positions arbitrary content relative to an anchor, a point or the viewport.
|
|
103
|
+
- [Sheet](docs/sheet.md): A modal panel attached to an edge of the viewport.
|
|
104
|
+
- [Tooltip](docs/tooltip.md): A floating tooltip with projected content, anchored to a separate target.
|
|
105
|
+
- [Tooltip Directive](docs/tooltip-directive.md): Replaces a native title attribute with a styled tooltip.
|
|
106
|
+
- [Window](docs/window.md): A draggable, resizable floating window that can be minimized and maximized.
|
|
107
|
+
|
|
108
|
+
## Layout
|
|
109
|
+
|
|
110
|
+
- [Card](docs/card.md): Groups related content and actions on one raised surface.
|
|
111
|
+
- [Collapsible](docs/collapsible.md): A headless disclosure primitive for expandable regions.
|
|
112
|
+
- [Expansion Panel](docs/expansion-panel.md): A header that shows and hides its content, designed to stack with other panels.
|
|
113
|
+
- [Scroll View](docs/scroll-view.md): A fixed-size carousel that pages through a collection one item at a time.
|
|
114
|
+
- [Splitter](docs/splitter.md): Lays out panes in a row or column that can be resized and collapsed.
|
|
115
|
+
|
|
116
|
+
## Feedback
|
|
117
|
+
|
|
118
|
+
- [Circular Progress Bar](docs/circular-progress-bar.md): A circular progress indicator with an optional custom label.
|
|
119
|
+
- [Notification](docs/notification.md): Transient toast notifications with optional auto-dismiss.
|
|
120
|
+
- [Placeholder](docs/placeholder.md): Fills an empty area with a muted label or projected content.
|
|
121
|
+
- [Progress Bar](docs/progress-bar.md): A horizontal progress indicator with determinate and indeterminate modes.
|
|
122
|
+
- [Skeleton](docs/skeleton.md): A decorative placeholder block for content that is still loading.
|
|
123
|
+
- [Spinner](docs/spinner.md): An animated loading indicator and a service for loading overlays.
|
|
@@ -157,6 +157,15 @@
|
|
|
157
157
|
"comboBox": {
|
|
158
158
|
"clear": "مسح"
|
|
159
159
|
},
|
|
160
|
+
"command": {
|
|
161
|
+
"dialogLabel": "قائمة الأوامر",
|
|
162
|
+
"inputLabel": "البحث في الأوامر",
|
|
163
|
+
"listLabel": "النتائج",
|
|
164
|
+
"loading": "جارٍ التحميل",
|
|
165
|
+
"noResults": "لم يتم العثور على نتائج",
|
|
166
|
+
"placeholder": "اكتب أمرًا أو ابحث…",
|
|
167
|
+
"resultsAvailable": "عدد النتائج المتاحة: {count}"
|
|
168
|
+
},
|
|
160
169
|
"datePicker": {
|
|
161
170
|
"datePicker": "منتقي التاريخ",
|
|
162
171
|
"openCalendar": "فتح التقويم"
|
|
@@ -311,6 +320,7 @@
|
|
|
311
320
|
"filterOperator": "عامل تصفية {column}: {operator}",
|
|
312
321
|
"filterPlaceholder": "تصفية…",
|
|
313
322
|
"group": "مجموعة",
|
|
323
|
+
"groupOptions": "خيارات مجموعة {column}",
|
|
314
324
|
"loading": "جارٍ التحميل",
|
|
315
325
|
"modified": "تم التعديل",
|
|
316
326
|
"moveAsNext": "نقل كعنصر تالٍ",
|
|
@@ -157,6 +157,15 @@
|
|
|
157
157
|
"comboBox": {
|
|
158
158
|
"clear": "Leeren"
|
|
159
159
|
},
|
|
160
|
+
"command": {
|
|
161
|
+
"dialogLabel": "Befehlsmenü",
|
|
162
|
+
"inputLabel": "Befehle suchen",
|
|
163
|
+
"listLabel": "Ergebnisse",
|
|
164
|
+
"loading": "Wird geladen",
|
|
165
|
+
"noResults": "Keine Ergebnisse gefunden",
|
|
166
|
+
"placeholder": "Befehl eingeben oder suchen…",
|
|
167
|
+
"resultsAvailable": "{count, plural, =1 {1 Ergebnis verfügbar} other {# Ergebnisse verfügbar}}"
|
|
168
|
+
},
|
|
160
169
|
"datePicker": {
|
|
161
170
|
"datePicker": "Datumsauswahl",
|
|
162
171
|
"openCalendar": "Kalender öffnen"
|
|
@@ -311,6 +320,7 @@
|
|
|
311
320
|
"filterOperator": "Filteroperator für {column}: {operator}",
|
|
312
321
|
"filterPlaceholder": "Filtern...",
|
|
313
322
|
"group": "Gruppe",
|
|
323
|
+
"groupOptions": "Gruppenoptionen für {column}",
|
|
314
324
|
"loading": "Wird geladen",
|
|
315
325
|
"modified": "Geändert",
|
|
316
326
|
"moveAsNext": "Als Nächstes verschieben",
|
|
@@ -157,6 +157,15 @@
|
|
|
157
157
|
"comboBox": {
|
|
158
158
|
"clear": "Limpiar"
|
|
159
159
|
},
|
|
160
|
+
"command": {
|
|
161
|
+
"dialogLabel": "Menú de comandos",
|
|
162
|
+
"inputLabel": "Buscar comandos",
|
|
163
|
+
"listLabel": "Resultados",
|
|
164
|
+
"loading": "Cargando",
|
|
165
|
+
"noResults": "No se han encontrado resultados",
|
|
166
|
+
"placeholder": "Escribe un comando o busca…",
|
|
167
|
+
"resultsAvailable": "{count, plural, =1 {1 resultado disponible} other {# resultados disponibles}}"
|
|
168
|
+
},
|
|
160
169
|
"datePicker": {
|
|
161
170
|
"datePicker": "Selector de fecha",
|
|
162
171
|
"openCalendar": "Abrir calendario"
|
|
@@ -311,6 +320,7 @@
|
|
|
311
320
|
"filterOperator": "Operador de filtro de {column}: {operator}",
|
|
312
321
|
"filterPlaceholder": "Filtrar...",
|
|
313
322
|
"group": "Grupo",
|
|
323
|
+
"groupOptions": "Opciones de grupo de {column}",
|
|
314
324
|
"loading": "Cargando",
|
|
315
325
|
"modified": "Modificado",
|
|
316
326
|
"moveAsNext": "Mover como siguiente",
|
|
@@ -157,6 +157,15 @@
|
|
|
157
157
|
"comboBox": {
|
|
158
158
|
"clear": "Effacer"
|
|
159
159
|
},
|
|
160
|
+
"command": {
|
|
161
|
+
"dialogLabel": "Menu de commandes",
|
|
162
|
+
"inputLabel": "Rechercher des commandes",
|
|
163
|
+
"listLabel": "Résultats",
|
|
164
|
+
"loading": "Chargement",
|
|
165
|
+
"noResults": "Aucun résultat trouvé",
|
|
166
|
+
"placeholder": "Saisissez une commande ou recherchez…",
|
|
167
|
+
"resultsAvailable": "{count, plural, =1 {1 résultat disponible} other {# résultats disponibles}}"
|
|
168
|
+
},
|
|
160
169
|
"datePicker": {
|
|
161
170
|
"datePicker": "Sélecteur de date",
|
|
162
171
|
"openCalendar": "Ouvrir le calendrier"
|
|
@@ -311,6 +320,7 @@
|
|
|
311
320
|
"filterOperator": "Opérateur de filtre de {column} : {operator}",
|
|
312
321
|
"filterPlaceholder": "Filtrer...",
|
|
313
322
|
"group": "Groupe",
|
|
323
|
+
"groupOptions": "Options du groupe {column}",
|
|
314
324
|
"loading": "Chargement",
|
|
315
325
|
"modified": "Modifié",
|
|
316
326
|
"moveAsNext": "Déplacer à la position suivante",
|
|
@@ -157,6 +157,15 @@
|
|
|
157
157
|
"comboBox": {
|
|
158
158
|
"clear": "Bersihkan"
|
|
159
159
|
},
|
|
160
|
+
"command": {
|
|
161
|
+
"dialogLabel": "Menu perintah",
|
|
162
|
+
"inputLabel": "Cari perintah",
|
|
163
|
+
"listLabel": "Hasil",
|
|
164
|
+
"loading": "Memuat",
|
|
165
|
+
"noResults": "Tidak ada hasil",
|
|
166
|
+
"placeholder": "Ketik perintah atau cari…",
|
|
167
|
+
"resultsAvailable": "{count} hasil tersedia"
|
|
168
|
+
},
|
|
160
169
|
"datePicker": {
|
|
161
170
|
"datePicker": "Pemilih tanggal",
|
|
162
171
|
"openCalendar": "Buka kalender"
|
|
@@ -311,6 +320,7 @@
|
|
|
311
320
|
"filterOperator": "Operator saringan kolom {column}: {operator}",
|
|
312
321
|
"filterPlaceholder": "Saring...",
|
|
313
322
|
"group": "Grup",
|
|
323
|
+
"groupOptions": "Opsi grup {column}",
|
|
314
324
|
"loading": "Memuat",
|
|
315
325
|
"modified": "Diubah",
|
|
316
326
|
"moveAsNext": "Pindahkan setelahnya",
|
|
@@ -157,6 +157,15 @@
|
|
|
157
157
|
"comboBox": {
|
|
158
158
|
"clear": "Cancella"
|
|
159
159
|
},
|
|
160
|
+
"command": {
|
|
161
|
+
"dialogLabel": "Menu dei comandi",
|
|
162
|
+
"inputLabel": "Cerca comandi",
|
|
163
|
+
"listLabel": "Risultati",
|
|
164
|
+
"loading": "Caricamento",
|
|
165
|
+
"noResults": "Nessun risultato trovato",
|
|
166
|
+
"placeholder": "Digita un comando o cerca…",
|
|
167
|
+
"resultsAvailable": "{count, plural, =1 {1 risultato disponibile} other {# risultati disponibili}}"
|
|
168
|
+
},
|
|
160
169
|
"datePicker": {
|
|
161
170
|
"datePicker": "Selettore data",
|
|
162
171
|
"openCalendar": "Apri calendario"
|
|
@@ -311,6 +320,7 @@
|
|
|
311
320
|
"filterOperator": "Operatore di filtro di {column}: {operator}",
|
|
312
321
|
"filterPlaceholder": "Filtra...",
|
|
313
322
|
"group": "Gruppo",
|
|
323
|
+
"groupOptions": "Opzioni del gruppo {column}",
|
|
314
324
|
"loading": "Caricamento",
|
|
315
325
|
"modified": "Modificato",
|
|
316
326
|
"moveAsNext": "Sposta dopo",
|
|
@@ -157,6 +157,15 @@
|
|
|
157
157
|
"comboBox": {
|
|
158
158
|
"clear": "クリア"
|
|
159
159
|
},
|
|
160
|
+
"command": {
|
|
161
|
+
"dialogLabel": "コマンドメニュー",
|
|
162
|
+
"inputLabel": "コマンドを検索",
|
|
163
|
+
"listLabel": "結果",
|
|
164
|
+
"loading": "読み込み中",
|
|
165
|
+
"noResults": "結果が見つかりません",
|
|
166
|
+
"placeholder": "コマンドを入力または検索…",
|
|
167
|
+
"resultsAvailable": "{count}件の結果があります"
|
|
168
|
+
},
|
|
160
169
|
"datePicker": {
|
|
161
170
|
"datePicker": "日付選択",
|
|
162
171
|
"openCalendar": "カレンダーを開く"
|
|
@@ -311,6 +320,7 @@
|
|
|
311
320
|
"filterOperator": "{column}のフィルター演算子: {operator}",
|
|
312
321
|
"filterPlaceholder": "フィルター...",
|
|
313
322
|
"group": "グループ",
|
|
323
|
+
"groupOptions": "{column} のグループオプション",
|
|
314
324
|
"loading": "読み込み中",
|
|
315
325
|
"modified": "変更済み",
|
|
316
326
|
"moveAsNext": "次へ移動",
|
|
@@ -157,6 +157,15 @@
|
|
|
157
157
|
"comboBox": {
|
|
158
158
|
"clear": "지우기"
|
|
159
159
|
},
|
|
160
|
+
"command": {
|
|
161
|
+
"dialogLabel": "명령 메뉴",
|
|
162
|
+
"inputLabel": "명령 검색",
|
|
163
|
+
"listLabel": "결과",
|
|
164
|
+
"loading": "로드 중",
|
|
165
|
+
"noResults": "결과를 찾을 수 없습니다",
|
|
166
|
+
"placeholder": "명령을 입력하거나 검색하세요…",
|
|
167
|
+
"resultsAvailable": "사용 가능한 결과 {count}개"
|
|
168
|
+
},
|
|
160
169
|
"datePicker": {
|
|
161
170
|
"datePicker": "날짜 선택기",
|
|
162
171
|
"openCalendar": "달력 열기"
|
|
@@ -311,6 +320,7 @@
|
|
|
311
320
|
"filterOperator": "{column} 필터 연산자: {operator}",
|
|
312
321
|
"filterPlaceholder": "필터…",
|
|
313
322
|
"group": "그룹",
|
|
323
|
+
"groupOptions": "{column} 그룹 옵션",
|
|
314
324
|
"loading": "로드 중",
|
|
315
325
|
"modified": "수정됨",
|
|
316
326
|
"moveAsNext": "다음 항목으로 이동",
|
|
@@ -157,6 +157,15 @@
|
|
|
157
157
|
"comboBox": {
|
|
158
158
|
"clear": "Limpar"
|
|
159
159
|
},
|
|
160
|
+
"command": {
|
|
161
|
+
"dialogLabel": "Menu de comandos",
|
|
162
|
+
"inputLabel": "Pesquisar comandos",
|
|
163
|
+
"listLabel": "Resultados",
|
|
164
|
+
"loading": "Carregando",
|
|
165
|
+
"noResults": "Nenhum resultado encontrado",
|
|
166
|
+
"placeholder": "Digite um comando ou pesquise…",
|
|
167
|
+
"resultsAvailable": "{count, plural, =1 {1 resultado disponível} other {# resultados disponíveis}}"
|
|
168
|
+
},
|
|
160
169
|
"datePicker": {
|
|
161
170
|
"datePicker": "Seletor de data",
|
|
162
171
|
"openCalendar": "Abrir calendário"
|
|
@@ -311,6 +320,7 @@
|
|
|
311
320
|
"filterOperator": "Operador de filtro de {column}: {operator}",
|
|
312
321
|
"filterPlaceholder": "Filtrar...",
|
|
313
322
|
"group": "Grupo",
|
|
323
|
+
"groupOptions": "Opções do grupo {column}",
|
|
314
324
|
"loading": "Carregando",
|
|
315
325
|
"modified": "Modificado",
|
|
316
326
|
"moveAsNext": "Mover como próximo",
|
|
@@ -157,6 +157,15 @@
|
|
|
157
157
|
"comboBox": {
|
|
158
158
|
"clear": "Очистить"
|
|
159
159
|
},
|
|
160
|
+
"command": {
|
|
161
|
+
"dialogLabel": "Меню команд",
|
|
162
|
+
"inputLabel": "Поиск команд",
|
|
163
|
+
"listLabel": "Результаты",
|
|
164
|
+
"loading": "Загрузка",
|
|
165
|
+
"noResults": "Результаты не найдены",
|
|
166
|
+
"placeholder": "Введите команду или выполните поиск…",
|
|
167
|
+
"resultsAvailable": "Доступно результатов: {count}"
|
|
168
|
+
},
|
|
160
169
|
"datePicker": {
|
|
161
170
|
"datePicker": "Выбор даты",
|
|
162
171
|
"openCalendar": "Открыть календарь"
|
|
@@ -311,6 +320,7 @@
|
|
|
311
320
|
"filterOperator": "Оператор фильтра столбца {column}: {operator}",
|
|
312
321
|
"filterPlaceholder": "Фильтр…",
|
|
313
322
|
"group": "Группа",
|
|
323
|
+
"groupOptions": "Параметры группы {column}",
|
|
314
324
|
"loading": "Загрузка",
|
|
315
325
|
"modified": "Изменено",
|
|
316
326
|
"moveAsNext": "Переместить после",
|