@ni/fast-foundation 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -0
- package/dist/dts/accordion/accordion.d.ts +65 -0
- package/dist/dts/accordion/accordion.template.d.ts +8 -0
- package/dist/dts/accordion/index.d.ts +2 -0
- package/dist/dts/accordion-item/accordion-item.d.ts +76 -0
- package/dist/dts/accordion-item/accordion-item.template.d.ts +8 -0
- package/dist/dts/accordion-item/index.d.ts +2 -0
- package/dist/dts/anchor/anchor.d.ts +128 -0
- package/dist/dts/anchor/anchor.template.d.ts +8 -0
- package/dist/dts/anchor/index.d.ts +2 -0
- package/dist/dts/anchored-region/anchored-region-config.d.ts +117 -0
- package/dist/dts/anchored-region/anchored-region.d.ts +389 -0
- package/dist/dts/anchored-region/anchored-region.template.d.ts +8 -0
- package/dist/dts/anchored-region/index.d.ts +3 -0
- package/dist/dts/avatar/avatar.d.ts +62 -0
- package/dist/dts/avatar/avatar.template.d.ts +8 -0
- package/dist/dts/avatar/index.d.ts +2 -0
- package/dist/dts/badge/badge.d.ts +36 -0
- package/dist/dts/badge/badge.template.d.ts +8 -0
- package/dist/dts/badge/index.d.ts +2 -0
- package/dist/dts/breadcrumb/breadcrumb.d.ts +27 -0
- package/dist/dts/breadcrumb/breadcrumb.template.d.ts +8 -0
- package/dist/dts/breadcrumb/index.d.ts +2 -0
- package/dist/dts/breadcrumb-item/breadcrumb-item.d.ts +36 -0
- package/dist/dts/breadcrumb-item/breadcrumb-item.template.d.ts +8 -0
- package/dist/dts/breadcrumb-item/index.d.ts +2 -0
- package/dist/dts/button/button.d.ts +167 -0
- package/dist/dts/button/button.form-associated.d.ts +16 -0
- package/dist/dts/button/button.template.d.ts +8 -0
- package/dist/dts/button/index.d.ts +2 -0
- package/dist/dts/calendar/calendar.d.ts +178 -0
- package/dist/dts/calendar/calendar.template.d.ts +58 -0
- package/dist/dts/calendar/date-formatter.d.ts +124 -0
- package/dist/dts/calendar/index.d.ts +3 -0
- package/dist/dts/card/card.d.ts +10 -0
- package/dist/dts/card/card.template.d.ts +8 -0
- package/dist/dts/card/index.d.ts +2 -0
- package/dist/dts/checkbox/checkbox.d.ts +58 -0
- package/dist/dts/checkbox/checkbox.form-associated.d.ts +16 -0
- package/dist/dts/checkbox/checkbox.template.d.ts +8 -0
- package/dist/dts/checkbox/index.d.ts +2 -0
- package/dist/dts/combobox/combobox.d.ts +341 -0
- package/dist/dts/combobox/combobox.form-associated.d.ts +16 -0
- package/dist/dts/combobox/combobox.options.d.ts +15 -0
- package/dist/dts/combobox/combobox.template.d.ts +8 -0
- package/dist/dts/combobox/index.d.ts +3 -0
- package/dist/dts/data-grid/data-grid-cell.d.ts +62 -0
- package/dist/dts/data-grid/data-grid-cell.template.d.ts +9 -0
- package/dist/dts/data-grid/data-grid-row.d.ts +119 -0
- package/dist/dts/data-grid/data-grid-row.template.d.ts +10 -0
- package/dist/dts/data-grid/data-grid.d.ts +218 -0
- package/dist/dts/data-grid/data-grid.options.d.ts +49 -0
- package/dist/dts/data-grid/data-grid.template.d.ts +10 -0
- package/dist/dts/data-grid/index.d.ts +6 -0
- package/dist/dts/design-system/component-presentation.d.ts +66 -0
- package/dist/dts/design-system/design-system.d.ts +104 -0
- package/dist/dts/design-system/index.d.ts +3 -0
- package/dist/dts/design-system/registration-context.d.ts +106 -0
- package/dist/dts/design-token/custom-property-manager.d.ts +35 -0
- package/dist/dts/design-token/design-token.d.ts +139 -0
- package/dist/dts/design-token/interfaces.d.ts +31 -0
- package/dist/dts/di/di.d.ts +858 -0
- package/dist/dts/di/index.d.ts +1 -0
- package/dist/dts/dialog/dialog.d.ts +153 -0
- package/dist/dts/dialog/dialog.template.d.ts +8 -0
- package/dist/dts/dialog/index.d.ts +2 -0
- package/dist/dts/directives/reflect-attributes.d.ts +18 -0
- package/dist/dts/disclosure/disclosure.d.ts +59 -0
- package/dist/dts/disclosure/disclosure.template.d.ts +8 -0
- package/dist/dts/disclosure/index.d.ts +2 -0
- package/dist/dts/divider/divider.d.ts +28 -0
- package/dist/dts/divider/divider.options.d.ts +19 -0
- package/dist/dts/divider/divider.template.d.ts +8 -0
- package/dist/dts/divider/index.d.ts +2 -0
- package/dist/dts/flipper/flipper.d.ts +57 -0
- package/dist/dts/flipper/flipper.options.d.ts +13 -0
- package/dist/dts/flipper/flipper.template.d.ts +8 -0
- package/dist/dts/flipper/index.d.ts +2 -0
- package/dist/dts/form-associated/form-associated.d.ts +177 -0
- package/dist/dts/form-associated/index.d.ts +1 -0
- package/dist/dts/foundation-element/foundation-element.d.ts +120 -0
- package/dist/dts/foundation-element/index.d.ts +1 -0
- package/dist/dts/horizontal-scroll/horizontal-scroll.d.ts +242 -0
- package/dist/dts/horizontal-scroll/horizontal-scroll.template.d.ts +7 -0
- package/dist/dts/horizontal-scroll/index.d.ts +2 -0
- package/dist/dts/index-rollup.d.ts +2 -0
- package/dist/dts/index.d.ts +53 -0
- package/dist/dts/interfaces.d.ts +4 -0
- package/dist/dts/listbox/index.d.ts +3 -0
- package/dist/dts/listbox/listbox.d.ts +314 -0
- package/dist/dts/listbox/listbox.element.d.ts +223 -0
- package/dist/dts/listbox/listbox.template.d.ts +8 -0
- package/dist/dts/listbox-option/index.d.ts +2 -0
- package/dist/dts/listbox-option/listbox-option.d.ts +176 -0
- package/dist/dts/listbox-option/listbox-option.template.d.ts +8 -0
- package/dist/dts/menu/index.d.ts +2 -0
- package/dist/dts/menu/menu.d.ts +78 -0
- package/dist/dts/menu/menu.template.d.ts +8 -0
- package/dist/dts/menu-item/index.d.ts +2 -0
- package/dist/dts/menu-item/menu-item.d.ts +160 -0
- package/dist/dts/menu-item/menu-item.options.d.ts +29 -0
- package/dist/dts/menu-item/menu-item.template.d.ts +10 -0
- package/dist/dts/number-field/index.d.ts +2 -0
- package/dist/dts/number-field/number-field.d.ts +227 -0
- package/dist/dts/number-field/number-field.form-associated.d.ts +16 -0
- package/dist/dts/number-field/number-field.template.d.ts +8 -0
- package/dist/dts/patterns/aria-global.d.ts +189 -0
- package/dist/dts/patterns/index.d.ts +2 -0
- package/dist/dts/patterns/start-end.d.ts +65 -0
- package/dist/dts/picker/index.d.ts +10 -0
- package/dist/dts/picker/picker-list-item.d.ts +38 -0
- package/dist/dts/picker/picker-list-item.template.d.ts +8 -0
- package/dist/dts/picker/picker-list.d.ts +8 -0
- package/dist/dts/picker/picker-list.template.d.ts +8 -0
- package/dist/dts/picker/picker-menu-option.d.ts +37 -0
- package/dist/dts/picker/picker-menu-option.template.d.ts +8 -0
- package/dist/dts/picker/picker-menu.d.ts +46 -0
- package/dist/dts/picker/picker-menu.template.d.ts +8 -0
- package/dist/dts/picker/picker.d.ts +390 -0
- package/dist/dts/picker/picker.form-associated.d.ts +16 -0
- package/dist/dts/picker/picker.template.d.ts +8 -0
- package/dist/dts/progress/base-progress.d.ts +71 -0
- package/dist/dts/progress/index.d.ts +2 -0
- package/dist/dts/progress/progress.template.d.ts +8 -0
- package/dist/dts/progress-ring/index.d.ts +1 -0
- package/dist/dts/progress-ring/progress-ring.template.d.ts +8 -0
- package/dist/dts/radio/index.d.ts +2 -0
- package/dist/dts/radio/radio.d.ts +70 -0
- package/dist/dts/radio/radio.form-associated.d.ts +16 -0
- package/dist/dts/radio/radio.template.d.ts +8 -0
- package/dist/dts/radio-group/index.d.ts +2 -0
- package/dist/dts/radio-group/radio-group.d.ts +101 -0
- package/dist/dts/radio-group/radio-group.template.d.ts +8 -0
- package/dist/dts/search/index.d.ts +2 -0
- package/dist/dts/search/search.d.ts +162 -0
- package/dist/dts/search/search.form-associated.d.ts +16 -0
- package/dist/dts/search/search.template.d.ts +8 -0
- package/dist/dts/select/index.d.ts +3 -0
- package/dist/dts/select/select.d.ts +289 -0
- package/dist/dts/select/select.form-associated.d.ts +16 -0
- package/dist/dts/select/select.options.d.ts +13 -0
- package/dist/dts/select/select.template.d.ts +8 -0
- package/dist/dts/skeleton/index.d.ts +2 -0
- package/dist/dts/skeleton/skeleton.d.ts +47 -0
- package/dist/dts/skeleton/skeleton.template.d.ts +8 -0
- package/dist/dts/slider/index.d.ts +2 -0
- package/dist/dts/slider/slider-utilities.d.ts +5 -0
- package/dist/dts/slider/slider.d.ts +230 -0
- package/dist/dts/slider/slider.form-associated.d.ts +16 -0
- package/dist/dts/slider/slider.template.d.ts +8 -0
- package/dist/dts/slider-label/index.d.ts +2 -0
- package/dist/dts/slider-label/slider-label.d.ts +81 -0
- package/dist/dts/slider-label/slider-label.template.d.ts +8 -0
- package/dist/dts/switch/index.d.ts +2 -0
- package/dist/dts/switch/switch.d.ts +60 -0
- package/dist/dts/switch/switch.form-associated.d.ts +16 -0
- package/dist/dts/switch/switch.template.d.ts +8 -0
- package/dist/dts/tab/index.d.ts +2 -0
- package/dist/dts/tab/tab.d.ts +17 -0
- package/dist/dts/tab/tab.template.d.ts +8 -0
- package/dist/dts/tab-panel/index.d.ts +2 -0
- package/dist/dts/tab-panel/tab-panel.d.ts +10 -0
- package/dist/dts/tab-panel/tab-panel.template.d.ts +8 -0
- package/dist/dts/tabs/index.d.ts +2 -0
- package/dist/dts/tabs/tabs.d.ts +140 -0
- package/dist/dts/tabs/tabs.template.d.ts +8 -0
- package/dist/dts/test-utilities/fixture.d.ts +89 -0
- package/dist/dts/test-utilities/timeout.d.ts +4 -0
- package/dist/dts/text-area/index.d.ts +2 -0
- package/dist/dts/text-area/text-area.d.ts +149 -0
- package/dist/dts/text-area/text-area.form-associated.d.ts +16 -0
- package/dist/dts/text-area/text-area.options.d.ts +27 -0
- package/dist/dts/text-area/text-area.template.d.ts +8 -0
- package/dist/dts/text-field/index.d.ts +2 -0
- package/dist/dts/text-field/text-field.d.ts +166 -0
- package/dist/dts/text-field/text-field.form-associated.d.ts +16 -0
- package/dist/dts/text-field/text-field.options.d.ts +31 -0
- package/dist/dts/text-field/text-field.template.d.ts +8 -0
- package/dist/dts/toolbar/index.d.ts +2 -0
- package/dist/dts/toolbar/toolbar.d.ts +167 -0
- package/dist/dts/toolbar/toolbar.template.d.ts +9 -0
- package/dist/dts/tooltip/index.d.ts +2 -0
- package/dist/dts/tooltip/tooltip.d.ts +239 -0
- package/dist/dts/tooltip/tooltip.options.d.ts +69 -0
- package/dist/dts/tooltip/tooltip.template.d.ts +8 -0
- package/dist/dts/tree-item/index.d.ts +2 -0
- package/dist/dts/tree-item/tree-item.d.ts +141 -0
- package/dist/dts/tree-item/tree-item.template.d.ts +8 -0
- package/dist/dts/tree-view/index.d.ts +2 -0
- package/dist/dts/tree-view/tree-view.d.ts +99 -0
- package/dist/dts/tree-view/tree-view.template.d.ts +8 -0
- package/dist/dts/utilities/apply-mixins.d.ts +6 -0
- package/dist/dts/utilities/composed-contains.d.ts +12 -0
- package/dist/dts/utilities/composed-parent.d.ts +10 -0
- package/dist/dts/utilities/direction.d.ts +7 -0
- package/dist/dts/utilities/index.d.ts +8 -0
- package/dist/dts/utilities/intersection-service.d.ts +30 -0
- package/dist/dts/utilities/match-media-stylesheet-behavior.d.ts +124 -0
- package/dist/dts/utilities/property-stylesheet-behavior.d.ts +38 -0
- package/dist/dts/utilities/resize-observer.d.ts +31 -0
- package/dist/dts/utilities/root-active-element.d.ts +1 -0
- package/dist/dts/utilities/style/disabled.d.ts +5 -0
- package/dist/dts/utilities/style/display.d.ts +17 -0
- package/dist/dts/utilities/style/focus.d.ts +8 -0
- package/dist/dts/utilities/style/index.d.ts +3 -0
- package/dist/dts/utilities/whitespace-filter.d.ts +9 -0
- package/dist/esm/accordion/accordion.js +185 -0
- package/dist/esm/accordion/accordion.template.js +11 -0
- package/dist/esm/accordion/index.js +2 -0
- package/dist/esm/accordion-item/accordion-item.js +72 -0
- package/dist/esm/accordion-item/accordion-item.template.js +49 -0
- package/dist/esm/accordion-item/index.js +2 -0
- package/dist/esm/anchor/anchor.js +85 -0
- package/dist/esm/anchor/anchor.template.js +47 -0
- package/dist/esm/anchor/index.js +2 -0
- package/dist/esm/anchored-region/anchored-region-config.js +59 -0
- package/dist/esm/anchored-region/anchored-region.js +964 -0
- package/dist/esm/anchored-region/anchored-region.template.js +12 -0
- package/dist/esm/anchored-region/index.js +3 -0
- package/dist/esm/avatar/avatar.js +39 -0
- package/dist/esm/avatar/avatar.template.js +23 -0
- package/dist/esm/avatar/index.js +2 -0
- package/dist/esm/badge/badge.js +40 -0
- package/dist/esm/badge/badge.template.js +12 -0
- package/dist/esm/badge/index.js +2 -0
- package/dist/esm/breadcrumb/breadcrumb.js +70 -0
- package/dist/esm/breadcrumb/breadcrumb.template.js +14 -0
- package/dist/esm/breadcrumb/index.js +2 -0
- package/dist/esm/breadcrumb-item/breadcrumb-item.js +23 -0
- package/dist/esm/breadcrumb-item/breadcrumb-item.template.js +24 -0
- package/dist/esm/breadcrumb-item/index.js +2 -0
- package/dist/esm/button/button.form-associated.js +15 -0
- package/dist/esm/button/button.js +183 -0
- package/dist/esm/button/button.template.js +51 -0
- package/dist/esm/button/index.js +2 -0
- package/dist/esm/calendar/calendar.js +280 -0
- package/dist/esm/calendar/calendar.template.js +191 -0
- package/dist/esm/calendar/date-formatter.js +144 -0
- package/dist/esm/calendar/index.js +3 -0
- package/dist/esm/card/card.js +10 -0
- package/dist/esm/card/card.template.js +8 -0
- package/dist/esm/card/index.js +2 -0
- package/dist/esm/checkbox/checkbox.form-associated.js +15 -0
- package/dist/esm/checkbox/checkbox.js +75 -0
- package/dist/esm/checkbox/checkbox.template.js +35 -0
- package/dist/esm/checkbox/index.js +2 -0
- package/dist/esm/combobox/combobox.form-associated.js +15 -0
- package/dist/esm/combobox/combobox.js +587 -0
- package/dist/esm/combobox/combobox.options.js +10 -0
- package/dist/esm/combobox/combobox.template.js +66 -0
- package/dist/esm/combobox/index.js +3 -0
- package/dist/esm/data-grid/data-grid-cell.js +229 -0
- package/dist/esm/data-grid/data-grid-cell.template.js +23 -0
- package/dist/esm/data-grid/data-grid-row.js +203 -0
- package/dist/esm/data-grid/data-grid-row.template.js +47 -0
- package/dist/esm/data-grid/data-grid.js +440 -0
- package/dist/esm/data-grid/data-grid.options.js +31 -0
- package/dist/esm/data-grid/data-grid.template.js +36 -0
- package/dist/esm/data-grid/index.js +6 -0
- package/dist/esm/design-system/component-presentation.js +86 -0
- package/dist/esm/design-system/design-system.js +207 -0
- package/dist/esm/design-system/index.js +3 -0
- package/dist/esm/design-system/registration-context.js +1 -0
- package/dist/esm/design-token/custom-property-manager.js +216 -0
- package/dist/esm/design-token/design-token.js +657 -0
- package/dist/esm/design-token/interfaces.js +1 -0
- package/dist/esm/di/di.js +1341 -0
- package/dist/esm/di/index.js +1 -0
- package/dist/esm/dialog/dialog.js +280 -0
- package/dist/esm/dialog/dialog.template.js +30 -0
- package/dist/esm/dialog/index.js +2 -0
- package/dist/esm/directives/reflect-attributes.js +88 -0
- package/dist/esm/disclosure/disclosure.js +72 -0
- package/dist/esm/disclosure/disclosure.template.js +20 -0
- package/dist/esm/disclosure/index.js +2 -0
- package/dist/esm/divider/divider.js +39 -0
- package/dist/esm/divider/divider.options.js +14 -0
- package/dist/esm/divider/divider.template.js +8 -0
- package/dist/esm/divider/index.js +2 -0
- package/dist/esm/flipper/flipper.js +65 -0
- package/dist/esm/flipper/flipper.options.js +8 -0
- package/dist/esm/flipper/flipper.template.js +30 -0
- package/dist/esm/flipper/index.js +2 -0
- package/dist/esm/form-associated/form-associated.js +464 -0
- package/dist/esm/form-associated/index.js +1 -0
- package/dist/esm/foundation-element/foundation-element.js +132 -0
- package/dist/esm/foundation-element/index.js +1 -0
- package/dist/esm/horizontal-scroll/horizontal-scroll.js +380 -0
- package/dist/esm/horizontal-scroll/horizontal-scroll.template.js +62 -0
- package/dist/esm/horizontal-scroll/index.js +2 -0
- package/dist/esm/index-rollup.js +2 -0
- package/dist/esm/index.js +54 -0
- package/dist/esm/interfaces.js +1 -0
- package/dist/esm/listbox/index.js +3 -0
- package/dist/esm/listbox/listbox.element.js +448 -0
- package/dist/esm/listbox/listbox.js +528 -0
- package/dist/esm/listbox/listbox.template.js +27 -0
- package/dist/esm/listbox-option/index.js +2 -0
- package/dist/esm/listbox-option/listbox-option.js +200 -0
- package/dist/esm/listbox-option/listbox-option.template.js +25 -0
- package/dist/esm/menu/index.js +2 -0
- package/dist/esm/menu/menu.js +290 -0
- package/dist/esm/menu/menu.template.js +15 -0
- package/dist/esm/menu-item/index.js +2 -0
- package/dist/esm/menu-item/menu-item.js +251 -0
- package/dist/esm/menu-item/menu-item.options.js +26 -0
- package/dist/esm/menu-item/menu-item.template.js +78 -0
- package/dist/esm/number-field/index.js +2 -0
- package/dist/esm/number-field/number-field.form-associated.js +15 -0
- package/dist/esm/number-field/number-field.js +288 -0
- package/dist/esm/number-field/number-field.template.js +84 -0
- package/dist/esm/patterns/aria-global.js +70 -0
- package/dist/esm/patterns/index.js +2 -0
- package/dist/esm/patterns/start-end.js +84 -0
- package/dist/esm/picker/index.js +10 -0
- package/dist/esm/picker/picker-list-item.js +71 -0
- package/dist/esm/picker/picker-list-item.template.js +17 -0
- package/dist/esm/picker/picker-list.js +8 -0
- package/dist/esm/picker/picker-list.template.js +13 -0
- package/dist/esm/picker/picker-menu-option.js +61 -0
- package/dist/esm/picker/picker-menu-option.template.js +16 -0
- package/dist/esm/picker/picker-menu.js +59 -0
- package/dist/esm/picker/picker-menu.template.js +29 -0
- package/dist/esm/picker/picker.form-associated.js +15 -0
- package/dist/esm/picker/picker.js +759 -0
- package/dist/esm/picker/picker.template.js +97 -0
- package/dist/esm/progress/base-progress.js +69 -0
- package/dist/esm/progress/index.js +2 -0
- package/dist/esm/progress/progress.template.js +31 -0
- package/dist/esm/progress-ring/index.js +1 -0
- package/dist/esm/progress-ring/progress-ring.template.js +45 -0
- package/dist/esm/radio/index.js +2 -0
- package/dist/esm/radio/radio.form-associated.js +15 -0
- package/dist/esm/radio/radio.js +108 -0
- package/dist/esm/radio/radio.template.js +31 -0
- package/dist/esm/radio-group/index.js +2 -0
- package/dist/esm/radio-group/radio-group.js +390 -0
- package/dist/esm/radio-group/radio-group.template.js +29 -0
- package/dist/esm/search/index.js +2 -0
- package/dist/esm/search/search.form-associated.js +15 -0
- package/dist/esm/search/search.js +157 -0
- package/dist/esm/search/search.template.js +93 -0
- package/dist/esm/select/index.js +3 -0
- package/dist/esm/select/select.form-associated.js +15 -0
- package/dist/esm/select/select.js +490 -0
- package/dist/esm/select/select.options.js +8 -0
- package/dist/esm/select/select.template.js +72 -0
- package/dist/esm/skeleton/index.js +2 -0
- package/dist/esm/skeleton/skeleton.js +35 -0
- package/dist/esm/skeleton/skeleton.template.js +20 -0
- package/dist/esm/slider/index.js +2 -0
- package/dist/esm/slider/slider-utilities.js +11 -0
- package/dist/esm/slider/slider.form-associated.js +15 -0
- package/dist/esm/slider/slider.js +452 -0
- package/dist/esm/slider/slider.template.js +40 -0
- package/dist/esm/slider-label/index.js +2 -0
- package/dist/esm/slider-label/slider-label.js +158 -0
- package/dist/esm/slider-label/slider-label.template.js +24 -0
- package/dist/esm/switch/index.js +2 -0
- package/dist/esm/switch/switch.form-associated.js +15 -0
- package/dist/esm/switch/switch.js +79 -0
- package/dist/esm/switch/switch.template.js +37 -0
- package/dist/esm/tab/index.js +2 -0
- package/dist/esm/tab/tab.js +15 -0
- package/dist/esm/tab/tab.template.js +10 -0
- package/dist/esm/tab-panel/index.js +2 -0
- package/dist/esm/tab-panel/tab-panel.js +10 -0
- package/dist/esm/tab-panel/tab-panel.template.js +10 -0
- package/dist/esm/tabs/index.js +2 -0
- package/dist/esm/tabs/tabs.js +375 -0
- package/dist/esm/tabs/tabs.template.js +26 -0
- package/dist/esm/test-utilities/fixture.js +90 -0
- package/dist/esm/test-utilities/timeout.js +13 -0
- package/dist/esm/text-area/index.js +2 -0
- package/dist/esm/text-area/text-area.form-associated.js +15 -0
- package/dist/esm/text-area/text-area.js +146 -0
- package/dist/esm/text-area/text-area.options.js +22 -0
- package/dist/esm/text-area/text-area.template.js +64 -0
- package/dist/esm/text-field/index.js +2 -0
- package/dist/esm/text-field/text-field.form-associated.js +15 -0
- package/dist/esm/text-field/text-field.js +183 -0
- package/dist/esm/text-field/text-field.options.js +26 -0
- package/dist/esm/text-field/text-field.template.js +70 -0
- package/dist/esm/toolbar/index.js +2 -0
- package/dist/esm/toolbar/toolbar.js +271 -0
- package/dist/esm/toolbar/toolbar.template.js +37 -0
- package/dist/esm/tooltip/index.js +2 -0
- package/dist/esm/tooltip/tooltip.js +512 -0
- package/dist/esm/tooltip/tooltip.options.js +63 -0
- package/dist/esm/tooltip/tooltip.template.js +32 -0
- package/dist/esm/tree-item/index.js +2 -0
- package/dist/esm/tree-item/tree-item.js +150 -0
- package/dist/esm/tree-item/tree-item.template.js +52 -0
- package/dist/esm/tree-view/index.js +2 -0
- package/dist/esm/tree-view/tree-view.js +268 -0
- package/dist/esm/tree-view/tree-view.template.js +18 -0
- package/dist/esm/utilities/apply-mixins.js +20 -0
- package/dist/esm/utilities/composed-contains.js +22 -0
- package/dist/esm/utilities/composed-parent.js +23 -0
- package/dist/esm/utilities/direction.js +10 -0
- package/dist/esm/utilities/index.js +8 -0
- package/dist/esm/utilities/intersection-service.js +91 -0
- package/dist/esm/utilities/match-media-stylesheet-behavior.js +140 -0
- package/dist/esm/utilities/property-stylesheet-behavior.js +52 -0
- package/dist/esm/utilities/resize-observer.js +5 -0
- package/dist/esm/utilities/root-active-element.js +8 -0
- package/dist/esm/utilities/style/disabled.js +5 -0
- package/dist/esm/utilities/style/display.js +14 -0
- package/dist/esm/utilities/style/focus.js +9 -0
- package/dist/esm/utilities/style/index.js +3 -0
- package/dist/esm/utilities/whitespace-filter.js +13 -0
- package/dist/fast-foundation.d.ts +9744 -0
- package/dist/fast-foundation.js +19097 -0
- package/dist/fast-foundation.min.js +19 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/package.json +101 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { SyntheticViewTemplate } from "@ni/fast-element";
|
|
2
|
+
import { StartEnd, StartEndOptions } from "../patterns/start-end.js";
|
|
3
|
+
import type { FoundationElementDefinition } from "../foundation-element/foundation-element.js";
|
|
4
|
+
import { DelegatesARIATextbox } from "../text-field/text-field.js";
|
|
5
|
+
import { FormAssociatedNumberField } from "./number-field.form-associated.js";
|
|
6
|
+
/**
|
|
7
|
+
* Number Field configuration options
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export type NumberFieldOptions = FoundationElementDefinition & StartEndOptions & {
|
|
11
|
+
stepDownGlyph?: string | SyntheticViewTemplate;
|
|
12
|
+
stepUpGlyph?: string | SyntheticViewTemplate;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A Number Field Custom HTML Element.
|
|
16
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number | <input type="number" /> element }.
|
|
17
|
+
*
|
|
18
|
+
* @slot start - Content which can be provided before the number field input
|
|
19
|
+
* @slot end - Content which can be provided after the number field input
|
|
20
|
+
* @slot - The default slot for the label
|
|
21
|
+
* @slot step-up-glyph - The glyph for the step up control
|
|
22
|
+
* @slot step-down-glyph - The glyph for the step down control
|
|
23
|
+
* @csspart label - The label
|
|
24
|
+
* @csspart root - The element wrapping the control, including start and end slots
|
|
25
|
+
* @csspart control - The element representing the input
|
|
26
|
+
* @csspart controls - The step up and step down controls
|
|
27
|
+
* @csspart step-up - The step up control
|
|
28
|
+
* @csspart step-down - The step down control
|
|
29
|
+
* @fires input - Fires a custom 'input' event when the value has changed
|
|
30
|
+
* @fires change - Fires a custom 'change' event when the value has changed
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
export declare class NumberField extends FormAssociatedNumberField {
|
|
35
|
+
/**
|
|
36
|
+
* When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute} for more information.
|
|
37
|
+
* @public
|
|
38
|
+
* @remarks
|
|
39
|
+
* HTML Attribute: readonly
|
|
40
|
+
*/
|
|
41
|
+
readOnly: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Indicates that this element should get focus after the page finishes loading. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefautofocus | autofocus HTML attribute} for more information.
|
|
44
|
+
* @public
|
|
45
|
+
* @remarks
|
|
46
|
+
* HTML Attribute: autofocus
|
|
47
|
+
*/
|
|
48
|
+
autofocus: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* When true, spin buttons will not be rendered
|
|
51
|
+
* @public
|
|
52
|
+
* @remarks
|
|
53
|
+
* HTML Attribute: autofocus
|
|
54
|
+
*/
|
|
55
|
+
hideStep: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Sets the placeholder value of the element, generally used to provide a hint to the user.
|
|
58
|
+
* @public
|
|
59
|
+
* @remarks
|
|
60
|
+
* HTML Attribute: placeholder
|
|
61
|
+
* Using this attribute does is not a valid substitute for a labeling element.
|
|
62
|
+
*/
|
|
63
|
+
placeholder: string;
|
|
64
|
+
/**
|
|
65
|
+
* Allows associating a {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist | datalist} to the element by {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/id}.
|
|
66
|
+
* @public
|
|
67
|
+
* @remarks
|
|
68
|
+
* HTML Attribute: list
|
|
69
|
+
*/
|
|
70
|
+
list: string;
|
|
71
|
+
/**
|
|
72
|
+
* The maximum number of characters a user can enter.
|
|
73
|
+
* @public
|
|
74
|
+
* @remarks
|
|
75
|
+
* HTMLAttribute: maxlength
|
|
76
|
+
*/
|
|
77
|
+
maxlength: number;
|
|
78
|
+
/**
|
|
79
|
+
* The minimum number of characters a user can enter.
|
|
80
|
+
* @public
|
|
81
|
+
* @remarks
|
|
82
|
+
* HTMLAttribute: minlength
|
|
83
|
+
*/
|
|
84
|
+
minlength: number;
|
|
85
|
+
/**
|
|
86
|
+
* Sets the width of the element to a specified number of characters.
|
|
87
|
+
* @public
|
|
88
|
+
* @remarks
|
|
89
|
+
* HTMLAttribute: size
|
|
90
|
+
*/
|
|
91
|
+
size: number;
|
|
92
|
+
/**
|
|
93
|
+
* Amount to increment or decrement the value by
|
|
94
|
+
* @public
|
|
95
|
+
* @remarks
|
|
96
|
+
* HTMLAttribute: step
|
|
97
|
+
*/
|
|
98
|
+
step: number;
|
|
99
|
+
/**
|
|
100
|
+
* The maximum the value can be
|
|
101
|
+
* @public
|
|
102
|
+
* @remarks
|
|
103
|
+
* HTMLAttribute: max
|
|
104
|
+
*/
|
|
105
|
+
max: number;
|
|
106
|
+
/**
|
|
107
|
+
* Ensures that the max is greater than the min and that the value
|
|
108
|
+
* is less than the max
|
|
109
|
+
* @param previous - the previous max value
|
|
110
|
+
* @param next - updated max value
|
|
111
|
+
*
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
maxChanged(previous: number, next: number): void;
|
|
115
|
+
/**
|
|
116
|
+
* The minimum the value can be
|
|
117
|
+
* @public
|
|
118
|
+
* @remarks
|
|
119
|
+
* HTMLAttribute: min
|
|
120
|
+
*/
|
|
121
|
+
min: number;
|
|
122
|
+
/**
|
|
123
|
+
* Ensures that the min is less than the max and that the value
|
|
124
|
+
* is greater than the min
|
|
125
|
+
* @param previous - previous min value
|
|
126
|
+
* @param next - updated min value
|
|
127
|
+
*
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
130
|
+
minChanged(previous: number, next: number): void;
|
|
131
|
+
/**
|
|
132
|
+
* The default slotted items
|
|
133
|
+
* @internal
|
|
134
|
+
*/
|
|
135
|
+
defaultSlottedNodes: Node[];
|
|
136
|
+
/**
|
|
137
|
+
* A reference to the internal input element
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
control: HTMLInputElement;
|
|
141
|
+
/**
|
|
142
|
+
* Flag to indicate that the value change is from the user input
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
private isUserInput;
|
|
146
|
+
/**
|
|
147
|
+
* The value property, typed as a number.
|
|
148
|
+
*
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
151
|
+
get valueAsNumber(): number;
|
|
152
|
+
set valueAsNumber(next: number);
|
|
153
|
+
/**
|
|
154
|
+
* Validates that the value is a number between the min and max
|
|
155
|
+
* @param previous - previous stored value
|
|
156
|
+
* @param next - value being updated
|
|
157
|
+
* @param updateControl - should the text field be updated with value, defaults to true
|
|
158
|
+
* @internal
|
|
159
|
+
*/
|
|
160
|
+
valueChanged(previous: string, next: string): void;
|
|
161
|
+
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
162
|
+
validate(): void;
|
|
163
|
+
/**
|
|
164
|
+
* Sets the internal value to a valid number between the min and max properties
|
|
165
|
+
* @param value - user input
|
|
166
|
+
*
|
|
167
|
+
* @internal
|
|
168
|
+
*/
|
|
169
|
+
private getValidValue;
|
|
170
|
+
/**
|
|
171
|
+
* Increments the value using the step value
|
|
172
|
+
*
|
|
173
|
+
* @public
|
|
174
|
+
*/
|
|
175
|
+
stepUp(): void;
|
|
176
|
+
/**
|
|
177
|
+
* Decrements the value using the step value
|
|
178
|
+
*
|
|
179
|
+
* @public
|
|
180
|
+
*/
|
|
181
|
+
stepDown(): void;
|
|
182
|
+
/**
|
|
183
|
+
* Sets up the initial state of the number field
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
connectedCallback(): void;
|
|
187
|
+
/**
|
|
188
|
+
* Selects all the text in the number field
|
|
189
|
+
*
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
protected select(): void;
|
|
193
|
+
/**
|
|
194
|
+
* Handles the internal control's `input` event
|
|
195
|
+
* @internal
|
|
196
|
+
*/
|
|
197
|
+
handleTextInput(): void;
|
|
198
|
+
/**
|
|
199
|
+
* Change event handler for inner control.
|
|
200
|
+
* @remarks
|
|
201
|
+
* "Change" events are not `composable` so they will not
|
|
202
|
+
* permeate the shadow DOM boundary. This fn effectively proxies
|
|
203
|
+
* the change event, emitting a `change` event whenever the internal
|
|
204
|
+
* control emits a `change` event
|
|
205
|
+
* @internal
|
|
206
|
+
*/
|
|
207
|
+
handleChange(): void;
|
|
208
|
+
/**
|
|
209
|
+
* Handles the internal control's `keydown` event
|
|
210
|
+
* @internal
|
|
211
|
+
*/
|
|
212
|
+
handleKeyDown(e: KeyboardEvent): boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Handles populating the input field with a validated value when
|
|
215
|
+
* leaving the input field.
|
|
216
|
+
* @internal
|
|
217
|
+
*/
|
|
218
|
+
handleBlur(): void;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Mark internal because exporting class and interface of the same name
|
|
222
|
+
* confuses API documenter.
|
|
223
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
224
|
+
* @internal
|
|
225
|
+
*/
|
|
226
|
+
export interface NumberField extends StartEnd, DelegatesARIATextbox {
|
|
227
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FormAssociated } from "../form-associated/form-associated.js";
|
|
2
|
+
import { FoundationElement } from "../foundation-element/foundation-element.js";
|
|
3
|
+
declare class _NumberField extends FoundationElement {
|
|
4
|
+
}
|
|
5
|
+
interface _NumberField extends FormAssociated {
|
|
6
|
+
}
|
|
7
|
+
declare const FormAssociatedNumberField_base: typeof _NumberField;
|
|
8
|
+
/**
|
|
9
|
+
* A form-associated base class for the {@link @ni/fast-foundation#(NumberField:class)} component.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare class FormAssociatedNumberField extends FormAssociatedNumberField_base {
|
|
14
|
+
proxy: HTMLInputElement;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ViewTemplate } from "@ni/fast-element";
|
|
2
|
+
import type { FoundationElementTemplate } from "../foundation-element/foundation-element.js";
|
|
3
|
+
import type { NumberField, NumberFieldOptions } from "./number-field.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for the {@link @ni/fast-foundation#(NumberField:class)} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const numberFieldTemplate: FoundationElementTemplate<ViewTemplate<NumberField>, NumberFieldOptions>;
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Some states and properties are applicable to all host language elements regardless of whether a role is applied.
|
|
3
|
+
* The following global states and properties are supported by all roles and by all base markup elements.
|
|
4
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#global_states}
|
|
5
|
+
*
|
|
6
|
+
* This is intended to be used as a mixin. Be sure you extend FASTElement.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare class ARIAGlobalStatesAndProperties {
|
|
11
|
+
/**
|
|
12
|
+
* Indicates whether assistive technologies will present all, or only parts of,
|
|
13
|
+
* the changed region based on the change notifications defined by the aria-relevant attribute.
|
|
14
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-atomic}
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
* @remarks
|
|
18
|
+
* HTML Attribute: aria-atomic
|
|
19
|
+
*/
|
|
20
|
+
ariaAtomic: "true" | "false" | string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Indicates an element is being modified and that assistive technologies MAY want to wait
|
|
23
|
+
* until the modifications are complete before exposing them to the user.
|
|
24
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-busy}
|
|
25
|
+
*
|
|
26
|
+
* @public
|
|
27
|
+
* @remarks
|
|
28
|
+
* HTML Attribute: aria-busy
|
|
29
|
+
*/
|
|
30
|
+
ariaBusy: "true" | "false" | string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
|
33
|
+
*
|
|
34
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-controls}
|
|
35
|
+
* @public
|
|
36
|
+
* @remarks
|
|
37
|
+
* HTML Attribute: aria-controls
|
|
38
|
+
*/
|
|
39
|
+
ariaControls: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates the element that represents the current item within a container or set of related elements.
|
|
42
|
+
*
|
|
43
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-current}
|
|
44
|
+
* @public
|
|
45
|
+
* @remarks
|
|
46
|
+
* HTML Attribute: aria-current
|
|
47
|
+
*/
|
|
48
|
+
ariaCurrent: "page" | "step" | "location" | "date" | "time" | "true" | "false" | string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Identifies the element (or elements) that describes the object.
|
|
51
|
+
*
|
|
52
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-describedby}
|
|
53
|
+
* @public
|
|
54
|
+
* @remarks
|
|
55
|
+
* HTML Attribute: aria-describedby
|
|
56
|
+
*/
|
|
57
|
+
ariaDescribedby: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* Identifies the element that provides a detailed, extended description for the object.
|
|
60
|
+
*
|
|
61
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-details}
|
|
62
|
+
* @public
|
|
63
|
+
* @remarks
|
|
64
|
+
* HTML Attribute: aria-details
|
|
65
|
+
*/
|
|
66
|
+
ariaDetails: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
|
|
69
|
+
*
|
|
70
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-disabled}
|
|
71
|
+
* @public
|
|
72
|
+
* @remarks
|
|
73
|
+
* HTML Attribute: aria-disabled
|
|
74
|
+
*/
|
|
75
|
+
ariaDisabled: "true" | "false" | string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Identifies the element that provides an error message for the object.
|
|
78
|
+
*
|
|
79
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage}
|
|
80
|
+
* @public
|
|
81
|
+
* @remarks
|
|
82
|
+
* HTML Attribute: aria-errormessage
|
|
83
|
+
*/
|
|
84
|
+
ariaErrormessage: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
|
|
87
|
+
* allows assistive technology to override the general default of reading in document source order.
|
|
88
|
+
*
|
|
89
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-flowto}
|
|
90
|
+
* @public
|
|
91
|
+
* @remarks
|
|
92
|
+
* HTML Attribute: aria-flowto
|
|
93
|
+
*/
|
|
94
|
+
ariaFlowto: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Indicates the availability and type of interactive popup element,
|
|
97
|
+
* such as menu or dialog, that can be triggered by an element.
|
|
98
|
+
*
|
|
99
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup}
|
|
100
|
+
* @public
|
|
101
|
+
* @remarks
|
|
102
|
+
* HTML Attribute: aria-haspopup
|
|
103
|
+
*/
|
|
104
|
+
ariaHaspopup: "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | string | null;
|
|
105
|
+
/**
|
|
106
|
+
* Indicates whether the element is exposed to an accessibility API
|
|
107
|
+
*
|
|
108
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-hidden}
|
|
109
|
+
* @public
|
|
110
|
+
* @remarks
|
|
111
|
+
* HTML Attribute: aria-hidden
|
|
112
|
+
*/
|
|
113
|
+
ariaHidden: "false" | "true" | string | null;
|
|
114
|
+
/**
|
|
115
|
+
* Indicates the entered value does not conform to the format expected by the application.
|
|
116
|
+
*
|
|
117
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-invalid}
|
|
118
|
+
* @public
|
|
119
|
+
* @remarks
|
|
120
|
+
* HTML Attribute: aria-invalid
|
|
121
|
+
*/
|
|
122
|
+
ariaInvalid: "false" | "true" | "grammar" | "spelling" | string | null;
|
|
123
|
+
/**
|
|
124
|
+
* Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
|
|
125
|
+
*
|
|
126
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-keyshortcuts}
|
|
127
|
+
* @public
|
|
128
|
+
* @remarks
|
|
129
|
+
* HTML Attribute: aria-keyshortcuts
|
|
130
|
+
*/
|
|
131
|
+
ariaKeyshortcuts: string | null;
|
|
132
|
+
/**
|
|
133
|
+
* Defines a string value that labels the current element.
|
|
134
|
+
*
|
|
135
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-label}
|
|
136
|
+
* @public
|
|
137
|
+
* @remarks
|
|
138
|
+
* HTML Attribute: aria-label
|
|
139
|
+
*/
|
|
140
|
+
ariaLabel: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* Identifies the element (or elements) that labels the current element.
|
|
143
|
+
*
|
|
144
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby}
|
|
145
|
+
* @public
|
|
146
|
+
* @remarks
|
|
147
|
+
* HTML Attribute: aria-labelledby
|
|
148
|
+
*/
|
|
149
|
+
ariaLabelledby: string | null;
|
|
150
|
+
/**
|
|
151
|
+
* Indicates that an element will be updated, and describes the types of updates the user agents,
|
|
152
|
+
* assistive technologies, and user can expect from the live region.
|
|
153
|
+
*
|
|
154
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-live}
|
|
155
|
+
* @public
|
|
156
|
+
* @remarks
|
|
157
|
+
* HTML Attribute: aria-live
|
|
158
|
+
*/
|
|
159
|
+
ariaLive: "assertive" | "off" | "polite" | string | null;
|
|
160
|
+
/**
|
|
161
|
+
* Identifies an element (or elements) in order to define a visual,
|
|
162
|
+
* functional, or contextual parent/child relationship between DOM elements
|
|
163
|
+
* where the DOM hierarchy cannot be used to represent the relationship.
|
|
164
|
+
*
|
|
165
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-owns}
|
|
166
|
+
* @public
|
|
167
|
+
* @remarks
|
|
168
|
+
* HTML Attribute: aria-owns
|
|
169
|
+
*/
|
|
170
|
+
ariaOwns: string | null;
|
|
171
|
+
/**
|
|
172
|
+
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
|
|
173
|
+
*
|
|
174
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-relevant}
|
|
175
|
+
* @public
|
|
176
|
+
* @remarks
|
|
177
|
+
* HTML Attribute: aria-relevant
|
|
178
|
+
*/
|
|
179
|
+
ariaRelevant: "additions" | "additions text" | "all" | "removals" | "text" | string | null;
|
|
180
|
+
/**
|
|
181
|
+
* Defines a human-readable, author-localized description for the role of an element.
|
|
182
|
+
*
|
|
183
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription}
|
|
184
|
+
* @public
|
|
185
|
+
* @remarks
|
|
186
|
+
* HTML Attribute: aria-roledescription
|
|
187
|
+
*/
|
|
188
|
+
ariaRoledescription: string | null;
|
|
189
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SyntheticViewTemplate } from "@ni/fast-element";
|
|
2
|
+
import type { ViewTemplate } from "@ni/fast-element";
|
|
3
|
+
import type { ElementDefinitionContext } from "../design-system/registration-context.js";
|
|
4
|
+
/**
|
|
5
|
+
* Start configuration options
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type StartOptions = {
|
|
9
|
+
start?: string | SyntheticViewTemplate;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* End configuration options
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export type EndOptions = {
|
|
16
|
+
end?: string | SyntheticViewTemplate;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Start/End configuration options
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export type StartEndOptions = StartOptions & EndOptions;
|
|
23
|
+
/**
|
|
24
|
+
* A mixin class implementing start and end elements.
|
|
25
|
+
* These are generally used to decorate text elements with icons or other visual indicators.
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export declare class StartEnd {
|
|
29
|
+
start: HTMLSlotElement;
|
|
30
|
+
startContainer: HTMLSpanElement;
|
|
31
|
+
handleStartContentChange(): void;
|
|
32
|
+
end: HTMLSlotElement;
|
|
33
|
+
endContainer: HTMLSpanElement;
|
|
34
|
+
handleEndContentChange(): void;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The template for the end element.
|
|
38
|
+
* For use with {@link StartEnd}
|
|
39
|
+
*
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export declare const endSlotTemplate: (context: ElementDefinitionContext, definition: EndOptions) => ViewTemplate<StartEnd>;
|
|
43
|
+
/**
|
|
44
|
+
* The template for the start element.
|
|
45
|
+
* For use with {@link StartEnd}
|
|
46
|
+
*
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export declare const startSlotTemplate: (context: ElementDefinitionContext, definition: StartOptions) => ViewTemplate<StartEnd>;
|
|
50
|
+
/**
|
|
51
|
+
* The template for the end element.
|
|
52
|
+
* For use with {@link StartEnd}
|
|
53
|
+
*
|
|
54
|
+
* @public
|
|
55
|
+
* @deprecated - use endSlotTemplate
|
|
56
|
+
*/
|
|
57
|
+
export declare const endTemplate: ViewTemplate<StartEnd>;
|
|
58
|
+
/**
|
|
59
|
+
* The template for the start element.
|
|
60
|
+
* For use with {@link StartEnd}
|
|
61
|
+
*
|
|
62
|
+
* @public
|
|
63
|
+
* @deprecated - use startSlotTemplate
|
|
64
|
+
*/
|
|
65
|
+
export declare const startTemplate: ViewTemplate<StartEnd>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./picker.template.js";
|
|
2
|
+
export * from "./picker.js";
|
|
3
|
+
export * from "./picker-menu.template.js";
|
|
4
|
+
export * from "./picker-menu.js";
|
|
5
|
+
export * from "./picker-menu-option.template.js";
|
|
6
|
+
export * from "./picker-menu-option.js";
|
|
7
|
+
export * from "./picker-list.template.js";
|
|
8
|
+
export * from "./picker-list.js";
|
|
9
|
+
export * from "./picker-list-item.template.js";
|
|
10
|
+
export * from "./picker-list-item.js";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ViewTemplate } from "@ni/fast-element";
|
|
2
|
+
import { FoundationElement } from "../foundation-element/foundation-element.js";
|
|
3
|
+
/**
|
|
4
|
+
* A picker list item Custom HTML Element.
|
|
5
|
+
*
|
|
6
|
+
* @alpha
|
|
7
|
+
*/
|
|
8
|
+
export declare class PickerListItem extends FoundationElement {
|
|
9
|
+
/**
|
|
10
|
+
* The underlying string value of the item
|
|
11
|
+
*
|
|
12
|
+
* @alpha
|
|
13
|
+
* @remarks
|
|
14
|
+
* HTML Attribute: value
|
|
15
|
+
*/
|
|
16
|
+
value: string;
|
|
17
|
+
/**
|
|
18
|
+
* The template used to render the contents of the list item
|
|
19
|
+
*
|
|
20
|
+
* @alpha
|
|
21
|
+
*/
|
|
22
|
+
contentsTemplate: ViewTemplate;
|
|
23
|
+
private contentsTemplateChanged;
|
|
24
|
+
private customView;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
connectedCallback(): void;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
handleKeyDown(e: KeyboardEvent): boolean;
|
|
34
|
+
handleClick(e: MouseEvent): boolean;
|
|
35
|
+
private handleInvoke;
|
|
36
|
+
private updateView;
|
|
37
|
+
private disconnectView;
|
|
38
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ViewTemplate } from "@ni/fast-element";
|
|
2
|
+
import type { FoundationElementTemplate } from "../foundation-element/foundation-element.js";
|
|
3
|
+
import type { PickerListItem } from "./picker-list-item.js";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const pickerListItemTemplate: FoundationElementTemplate<ViewTemplate<PickerListItem>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ViewTemplate } from "@ni/fast-element";
|
|
2
|
+
import type { FoundationElementTemplate } from "../foundation-element/foundation-element.js";
|
|
3
|
+
import type { PickerList } from "./picker-list.js";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const pickerListTemplate: FoundationElementTemplate<ViewTemplate<PickerList>>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ViewTemplate } from "@ni/fast-element";
|
|
2
|
+
import { FoundationElement } from "../foundation-element/foundation-element.js";
|
|
3
|
+
/**
|
|
4
|
+
* A picker list item Custom HTML Element.
|
|
5
|
+
*
|
|
6
|
+
* @alpha
|
|
7
|
+
*/
|
|
8
|
+
export declare class PickerMenuOption extends FoundationElement {
|
|
9
|
+
/**
|
|
10
|
+
* The underlying string value of the item
|
|
11
|
+
*
|
|
12
|
+
* @alpha
|
|
13
|
+
* @remarks
|
|
14
|
+
* HTML Attribute: value
|
|
15
|
+
*/
|
|
16
|
+
value: string;
|
|
17
|
+
/**
|
|
18
|
+
* The template used to render the contents of the list item
|
|
19
|
+
*
|
|
20
|
+
* @alpha
|
|
21
|
+
*/
|
|
22
|
+
contentsTemplate: ViewTemplate;
|
|
23
|
+
private contentsTemplateChanged;
|
|
24
|
+
private customView;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
connectedCallback(): void;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
handleClick(e: MouseEvent): boolean;
|
|
34
|
+
private handleInvoked;
|
|
35
|
+
private updateView;
|
|
36
|
+
private disconnectView;
|
|
37
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ViewTemplate } from "@ni/fast-element";
|
|
2
|
+
import type { FoundationElementTemplate } from "../foundation-element/foundation-element.js";
|
|
3
|
+
import type { PickerMenuOption } from "./picker-menu-option.js";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const pickerMenuOptionTemplate: FoundationElementTemplate<ViewTemplate<PickerMenuOption>>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FoundationElement } from "../foundation-element/foundation-element.js";
|
|
2
|
+
/**
|
|
3
|
+
* A List Picker Menu Custom HTML Element.
|
|
4
|
+
*
|
|
5
|
+
* @alpha
|
|
6
|
+
*/
|
|
7
|
+
export declare class PickerMenu extends FoundationElement {
|
|
8
|
+
/**
|
|
9
|
+
* Elements in the default slot
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
menuElements: HTMLElement[];
|
|
14
|
+
menuElementsChanged(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Elements in the header slot
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
headerElements: HTMLElement[];
|
|
22
|
+
headerElementsChanged(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Elements in the footer slot
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
footerElements: HTMLElement[];
|
|
30
|
+
footerElementsChanged(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Text to display to assistive technology when
|
|
33
|
+
* suggestions are available
|
|
34
|
+
*
|
|
35
|
+
* @alpha
|
|
36
|
+
*/
|
|
37
|
+
suggestionsAvailableText: string;
|
|
38
|
+
/**
|
|
39
|
+
* Children that are list items
|
|
40
|
+
*
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
optionElements: HTMLElement[];
|
|
44
|
+
private updateOptions;
|
|
45
|
+
private addSlottedListItems;
|
|
46
|
+
}
|