@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,5 @@
|
|
|
1
|
+
import { Direction } from "@ni/fast-web-utilities";
|
|
2
|
+
/**
|
|
3
|
+
* Converts a pixel coordinate on the track to a percent of the track's range
|
|
4
|
+
*/
|
|
5
|
+
export declare function convertPixelToPercent(pixelPos: number, minPosition: number, maxPosition: number, direction?: Direction): number;
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { SyntheticViewTemplate } from "@ni/fast-element";
|
|
2
|
+
import { Direction, Orientation } from "@ni/fast-web-utilities";
|
|
3
|
+
import type { FoundationElementDefinition } from "../foundation-element/foundation-element.js";
|
|
4
|
+
import { FormAssociatedSlider } from "./slider.form-associated.js";
|
|
5
|
+
/**
|
|
6
|
+
* The selection modes of a {@link @ni/fast-foundation#(Slider:class)}.
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare const SliderMode: {
|
|
10
|
+
readonly singleValue: "single-value";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The types for the selection mode of the slider
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export type SliderMode = typeof SliderMode[keyof typeof SliderMode];
|
|
17
|
+
/**
|
|
18
|
+
* The configuration structure of {@link @ni/fast-foundation#(Slider:class)}.
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export interface SliderConfiguration {
|
|
22
|
+
max: number;
|
|
23
|
+
min: number;
|
|
24
|
+
orientation?: Orientation;
|
|
25
|
+
direction?: Direction;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Slider configuration options
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export type SliderOptions = FoundationElementDefinition & {
|
|
33
|
+
thumb?: string | SyntheticViewTemplate;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* A Slider Custom HTML Element.
|
|
37
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#slider | ARIA slider }.
|
|
38
|
+
*
|
|
39
|
+
* @slot track - The track of the slider
|
|
40
|
+
* @slot track-start - The track-start visual indicator
|
|
41
|
+
* @slot thumb - The slider thumb
|
|
42
|
+
* @slot - The default slot for labels
|
|
43
|
+
* @csspart positioning-region - The region used to position the elements of the slider
|
|
44
|
+
* @csspart track-container - The region containing the track elements
|
|
45
|
+
* @csspart track-start - The element wrapping the track start slot
|
|
46
|
+
* @csspart thumb-container - The thumb container element which is programatically positioned
|
|
47
|
+
* @fires change - Fires a custom 'change' event when the slider value changes
|
|
48
|
+
*
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export declare class Slider extends FormAssociatedSlider implements SliderConfiguration {
|
|
52
|
+
/**
|
|
53
|
+
* 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.
|
|
54
|
+
*
|
|
55
|
+
* @public
|
|
56
|
+
* @remarks
|
|
57
|
+
* HTML Attribute: readonly
|
|
58
|
+
*/
|
|
59
|
+
readOnly: boolean;
|
|
60
|
+
private readOnlyChanged;
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
track: HTMLDivElement;
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
thumb: HTMLDivElement;
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
stepMultiplier: number;
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
direction: Direction;
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
isDragging: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
position: string;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
trackWidth: number;
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
trackMinWidth: number;
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
trackHeight: number;
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
trackLeft: number;
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
trackMinHeight: number;
|
|
105
|
+
/**
|
|
106
|
+
* The value property, typed as a number.
|
|
107
|
+
*
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
get valueAsNumber(): number;
|
|
111
|
+
set valueAsNumber(next: number);
|
|
112
|
+
/**
|
|
113
|
+
* Custom function that generates a string for the component's "aria-valuetext" attribute based on the current value.
|
|
114
|
+
*
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
valueTextFormatter: (value: string) => string | null;
|
|
118
|
+
/**
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
valueChanged(previous: string, next: string): void;
|
|
122
|
+
/**
|
|
123
|
+
* The minimum allowed value.
|
|
124
|
+
*
|
|
125
|
+
* @defaultValue - 0
|
|
126
|
+
* @public
|
|
127
|
+
* @remarks
|
|
128
|
+
* HTML Attribute: min
|
|
129
|
+
*/
|
|
130
|
+
min: number;
|
|
131
|
+
private minChanged;
|
|
132
|
+
/**
|
|
133
|
+
* The maximum allowed value.
|
|
134
|
+
*
|
|
135
|
+
* @defaultValue - 10
|
|
136
|
+
* @public
|
|
137
|
+
* @remarks
|
|
138
|
+
* HTML Attribute: max
|
|
139
|
+
*/
|
|
140
|
+
max: number;
|
|
141
|
+
private maxChanged;
|
|
142
|
+
/**
|
|
143
|
+
* Value to increment or decrement via arrow keys, mouse click or drag.
|
|
144
|
+
*
|
|
145
|
+
* @public
|
|
146
|
+
* @remarks
|
|
147
|
+
* HTML Attribute: step
|
|
148
|
+
*/
|
|
149
|
+
step: number;
|
|
150
|
+
private stepChanged;
|
|
151
|
+
/**
|
|
152
|
+
* The orientation of the slider.
|
|
153
|
+
*
|
|
154
|
+
* @public
|
|
155
|
+
* @remarks
|
|
156
|
+
* HTML Attribute: orientation
|
|
157
|
+
*/
|
|
158
|
+
orientation: Orientation;
|
|
159
|
+
private orientationChanged;
|
|
160
|
+
/**
|
|
161
|
+
* The selection mode.
|
|
162
|
+
*
|
|
163
|
+
* @public
|
|
164
|
+
* @remarks
|
|
165
|
+
* HTML Attribute: mode
|
|
166
|
+
*/
|
|
167
|
+
mode: SliderMode;
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
*/
|
|
171
|
+
connectedCallback(): void;
|
|
172
|
+
/**
|
|
173
|
+
* @internal
|
|
174
|
+
*/
|
|
175
|
+
disconnectedCallback(): void;
|
|
176
|
+
/**
|
|
177
|
+
* Increment the value by the step
|
|
178
|
+
*
|
|
179
|
+
* @public
|
|
180
|
+
*/
|
|
181
|
+
increment(): void;
|
|
182
|
+
/**
|
|
183
|
+
* Decrement the value by the step
|
|
184
|
+
*
|
|
185
|
+
* @public
|
|
186
|
+
*/
|
|
187
|
+
decrement(): void;
|
|
188
|
+
protected keypressHandler: (e: KeyboardEvent) => void;
|
|
189
|
+
/**
|
|
190
|
+
* Places the thumb based on the current value
|
|
191
|
+
*
|
|
192
|
+
* @public
|
|
193
|
+
* @param direction - writing mode
|
|
194
|
+
*/
|
|
195
|
+
private setThumbPositionForOrientation;
|
|
196
|
+
/**
|
|
197
|
+
* Update the step multiplier used to ensure rounding errors from steps that
|
|
198
|
+
* are not whole numbers
|
|
199
|
+
*/
|
|
200
|
+
private updateStepMultiplier;
|
|
201
|
+
private setupTrackConstraints;
|
|
202
|
+
private setupListeners;
|
|
203
|
+
/**
|
|
204
|
+
* @internal
|
|
205
|
+
*/
|
|
206
|
+
initialValue: string;
|
|
207
|
+
private get midpoint();
|
|
208
|
+
private setupDefaultValue;
|
|
209
|
+
/**
|
|
210
|
+
* Handle mouse moves during a thumb drag operation
|
|
211
|
+
* If the event handler is null it removes the events
|
|
212
|
+
*/
|
|
213
|
+
private handleThumbMouseDown;
|
|
214
|
+
/**
|
|
215
|
+
* Handle mouse moves during a thumb drag operation
|
|
216
|
+
*/
|
|
217
|
+
private handleMouseMove;
|
|
218
|
+
private calculateNewValue;
|
|
219
|
+
/**
|
|
220
|
+
* Handle a window mouse up during a drag operation
|
|
221
|
+
*/
|
|
222
|
+
private handleWindowMouseUp;
|
|
223
|
+
private stopDragging;
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @param e - MouseEvent or null. If there is no event handler it will remove the events
|
|
227
|
+
*/
|
|
228
|
+
private handleMouseDown;
|
|
229
|
+
private convertToConstrainedValue;
|
|
230
|
+
}
|
|
@@ -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 _Slider extends FoundationElement {
|
|
4
|
+
}
|
|
5
|
+
interface _Slider extends FormAssociated {
|
|
6
|
+
}
|
|
7
|
+
declare const FormAssociatedSlider_base: typeof _Slider;
|
|
8
|
+
/**
|
|
9
|
+
* A form-associated base class for the {@link @ni/fast-foundation#(Slider:class)} component.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare class FormAssociatedSlider extends FormAssociatedSlider_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 { Slider, SliderOptions } from "./slider.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for the {@link @ni/fast-foundation#(Slider:class)} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const sliderTemplate: FoundationElementTemplate<ViewTemplate<Slider>, SliderOptions>;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Direction, Orientation } from "@ni/fast-web-utilities";
|
|
2
|
+
import { FoundationElement } from "../foundation-element/foundation-element.js";
|
|
3
|
+
/**
|
|
4
|
+
* A label element intended to be used with the {@link @ni/fast-foundation#(Slider:class)} component.
|
|
5
|
+
*
|
|
6
|
+
* @slot - The default slot for the label content
|
|
7
|
+
* @csspart root - The element wrapping the label mark and text
|
|
8
|
+
*
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare class SliderLabel extends FoundationElement {
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
positionStyle: string;
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
root: HTMLDivElement;
|
|
20
|
+
/**
|
|
21
|
+
* The position of the label relative to the min and max value of the parent {@link @ni/fast-foundation#(Slider:class)}.
|
|
22
|
+
*
|
|
23
|
+
* @public
|
|
24
|
+
* @remarks
|
|
25
|
+
* HTML Attribute: position
|
|
26
|
+
*/
|
|
27
|
+
position: string;
|
|
28
|
+
private positionChanged;
|
|
29
|
+
/**
|
|
30
|
+
* Hides the tick mark.
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
* @remarks
|
|
34
|
+
* HTML Attribute: hide-mark
|
|
35
|
+
*/
|
|
36
|
+
hideMark: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The disabled state of the label. This is generally controlled by the parent {@link @ni/fast-foundation#(Slider:class)}.
|
|
39
|
+
*
|
|
40
|
+
* @public
|
|
41
|
+
* @remarks
|
|
42
|
+
* HTML Attribute: disabled
|
|
43
|
+
*/
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
sliderOrientation: Orientation;
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
protected sliderOrientationChanged(): void;
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
sliderMinPosition: number;
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
sliderMaxPosition: number;
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
sliderDirection: Direction;
|
|
65
|
+
private notifier;
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
connectedCallback(): void;
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
disconnectedCallback(): void;
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
handleChange(source: any, propertyName: string): void;
|
|
78
|
+
private isSliderConfig;
|
|
79
|
+
private getSliderConfiguration;
|
|
80
|
+
private positionAsStyle;
|
|
81
|
+
}
|
|
@@ -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 { SliderLabel } from "./slider-label.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for the {@link @ni/fast-foundation#(SliderLabel:class)} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const sliderLabelTemplate: FoundationElementTemplate<ViewTemplate<SliderLabel>>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { SyntheticViewTemplate } from "@ni/fast-element";
|
|
2
|
+
import type { FoundationElementDefinition } from "../foundation-element/foundation-element.js";
|
|
3
|
+
import { FormAssociatedSwitch } from "./switch.form-associated.js";
|
|
4
|
+
/**
|
|
5
|
+
* Switch configuration options
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type SwitchOptions = FoundationElementDefinition & {
|
|
9
|
+
switch?: string | SyntheticViewTemplate;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A Switch Custom HTML Element.
|
|
13
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#switch | ARIA switch }.
|
|
14
|
+
*
|
|
15
|
+
* @slot - The deafult slot for the label
|
|
16
|
+
* @slot checked-message - The message when in a checked state
|
|
17
|
+
* @slot unchecked-message - The message when in an unchecked state
|
|
18
|
+
* @csspart label - The label
|
|
19
|
+
* @csspart switch - The element representing the switch, which wraps the indicator
|
|
20
|
+
* @csspart status-message - The wrapper for the status messages
|
|
21
|
+
* @csspart checked-message - The checked message
|
|
22
|
+
* @csspart unchecked-message - The unchecked message
|
|
23
|
+
* @fires change - Emits a custom change event when the checked state changes
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export declare class Switch extends FormAssociatedSwitch {
|
|
28
|
+
/**
|
|
29
|
+
* 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.
|
|
30
|
+
* @public
|
|
31
|
+
* @remarks
|
|
32
|
+
* HTML Attribute: readonly
|
|
33
|
+
*/
|
|
34
|
+
readOnly: boolean;
|
|
35
|
+
private readOnlyChanged;
|
|
36
|
+
/**
|
|
37
|
+
* The element's value to be included in form submission when checked.
|
|
38
|
+
* Default to "on" to reach parity with input[type="checkbox"]
|
|
39
|
+
*
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
initialValue: string;
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
defaultSlottedNodes: Node[];
|
|
47
|
+
constructor();
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
keypressHandler: (e: KeyboardEvent) => void;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
clickHandler: (e: MouseEvent) => void;
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
checkedChanged(prev: boolean | undefined, next: boolean): void;
|
|
60
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CheckableFormAssociated } from "../form-associated/form-associated.js";
|
|
2
|
+
import { FoundationElement } from "../foundation-element/foundation-element.js";
|
|
3
|
+
declare class _Switch extends FoundationElement {
|
|
4
|
+
}
|
|
5
|
+
interface _Switch extends CheckableFormAssociated {
|
|
6
|
+
}
|
|
7
|
+
declare const FormAssociatedSwitch_base: typeof _Switch;
|
|
8
|
+
/**
|
|
9
|
+
* A form-associated base class for the {@link @ni/fast-foundation#(Switch:class)} component.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare class FormAssociatedSwitch extends FormAssociatedSwitch_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 { Switch, SwitchOptions } from "./switch.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for the {@link @ni/fast-foundation#(Switch:class)} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const switchTemplate: FoundationElementTemplate<ViewTemplate<Switch>, SwitchOptions>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FoundationElement } from "../foundation-element/foundation-element.js";
|
|
2
|
+
/**
|
|
3
|
+
* A Tab Component to be used with {@link @ni/fast-foundation#(Tabs:class)}
|
|
4
|
+
*
|
|
5
|
+
* @slot - The default slot for the tab content
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class Tab extends FoundationElement {
|
|
10
|
+
/**
|
|
11
|
+
* When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled | disabled HTML attribute} for more information.
|
|
12
|
+
* @public
|
|
13
|
+
* @remarks
|
|
14
|
+
* HTML Attribute: disabled
|
|
15
|
+
*/
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
}
|
|
@@ -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 { Tab } from "./tab.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for the {@link @ni/fast-foundation#Tab} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const tabTemplate: FoundationElementTemplate<ViewTemplate<Tab>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FoundationElement } from "../foundation-element/foundation-element.js";
|
|
2
|
+
/**
|
|
3
|
+
* A TabPanel Component to be used with {@link @ni/fast-foundation#(Tabs:class)}
|
|
4
|
+
*
|
|
5
|
+
* @slot - The default slot for the tabpanel content
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class TabPanel extends FoundationElement {
|
|
10
|
+
}
|
|
@@ -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 { TabPanel } from "./tab-panel.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for the {@link @ni/fast-foundation#TabPanel} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const tabPanelTemplate: FoundationElementTemplate<ViewTemplate<TabPanel>>;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { StartEnd, StartEndOptions } from "../patterns/start-end.js";
|
|
2
|
+
import { FoundationElement, FoundationElementDefinition } from "../foundation-element/foundation-element.js";
|
|
3
|
+
/**
|
|
4
|
+
* Tabs option configuration options
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export type TabsOptions = FoundationElementDefinition & StartEndOptions;
|
|
8
|
+
/**
|
|
9
|
+
* The orientation of the {@link @ni/fast-foundation#(Tabs:class)} component
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export declare const TabsOrientation: {
|
|
13
|
+
readonly vertical: "vertical";
|
|
14
|
+
readonly horizontal: "horizontal";
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The types for the Tabs component
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export type TabsOrientation = typeof TabsOrientation[keyof typeof TabsOrientation];
|
|
21
|
+
/**
|
|
22
|
+
* A Tabs Custom HTML Element.
|
|
23
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#tablist | ARIA tablist }.
|
|
24
|
+
*
|
|
25
|
+
* @slot start - Content which can be provided before the tablist element
|
|
26
|
+
* @slot end - Content which can be provided after the tablist element
|
|
27
|
+
* @slot tab - The slot for tabs
|
|
28
|
+
* @slot tabpanel - The slot for tabpanels
|
|
29
|
+
* @csspart tablist - The element wrapping for the tabs
|
|
30
|
+
* @csspart tab - The tab slot
|
|
31
|
+
* @csspart activeIndicator - The visual indicator
|
|
32
|
+
* @csspart tabpanel - The tabpanel slot
|
|
33
|
+
* @fires change - Fires a custom 'change' event when a tab is clicked or during keyboard navigation
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export declare class Tabs extends FoundationElement {
|
|
38
|
+
/**
|
|
39
|
+
* The orientation
|
|
40
|
+
* @public
|
|
41
|
+
* @remarks
|
|
42
|
+
* HTML Attribute: orientation
|
|
43
|
+
*/
|
|
44
|
+
orientation: TabsOrientation;
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
orientationChanged(): void;
|
|
49
|
+
/**
|
|
50
|
+
* The id of the active tab
|
|
51
|
+
*
|
|
52
|
+
* @public
|
|
53
|
+
* @remarks
|
|
54
|
+
* HTML Attribute: activeid
|
|
55
|
+
*/
|
|
56
|
+
activeid: string;
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
activeidChanged(oldValue: string, newValue: string): void;
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
tabs: HTMLElement[];
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
tabsChanged(): void;
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
tabpanels: HTMLElement[];
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
tabpanelsChanged(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Whether or not to show the active indicator
|
|
79
|
+
* @public
|
|
80
|
+
* @remarks
|
|
81
|
+
* HTML Attribute: activeindicator
|
|
82
|
+
*/
|
|
83
|
+
activeindicator: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
activeIndicatorRef: HTMLElement;
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
showActiveIndicator: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* A reference to the active tab
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
activetab: HTMLElement;
|
|
97
|
+
private prevActiveTabIndex;
|
|
98
|
+
private activeTabIndex;
|
|
99
|
+
private ticking;
|
|
100
|
+
private tabIds;
|
|
101
|
+
private tabpanelIds;
|
|
102
|
+
private change;
|
|
103
|
+
private isDisabledElement;
|
|
104
|
+
private isHiddenElement;
|
|
105
|
+
private isFocusableElement;
|
|
106
|
+
private getActiveIndex;
|
|
107
|
+
private setTabs;
|
|
108
|
+
private setTabPanels;
|
|
109
|
+
private getTabIds;
|
|
110
|
+
private getTabPanelIds;
|
|
111
|
+
private setComponent;
|
|
112
|
+
private handleTabClick;
|
|
113
|
+
private isHorizontal;
|
|
114
|
+
private handleTabKeyDown;
|
|
115
|
+
private handleActiveIndicatorPosition;
|
|
116
|
+
private animateActiveIndicator;
|
|
117
|
+
/**
|
|
118
|
+
* The adjust method for FASTTabs
|
|
119
|
+
* @public
|
|
120
|
+
* @remarks
|
|
121
|
+
* This method allows the active index to be adjusted by numerical increments
|
|
122
|
+
*/
|
|
123
|
+
adjust(adjustment: number): void;
|
|
124
|
+
private adjustForward;
|
|
125
|
+
private adjustBackward;
|
|
126
|
+
private moveToTabByIndex;
|
|
127
|
+
private focusTab;
|
|
128
|
+
/**
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
connectedCallback(): void;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Mark internal because exporting class and interface of the same name
|
|
135
|
+
* confuses API documenter.
|
|
136
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
137
|
+
* @internal
|
|
138
|
+
*/
|
|
139
|
+
export interface Tabs extends StartEnd {
|
|
140
|
+
}
|
|
@@ -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 { Tabs, TabsOptions } from "./tabs.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for the {@link @ni/fast-foundation#(Tabs:class)} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const tabsTemplate: FoundationElementTemplate<ViewTemplate<Tabs>, TabsOptions>;
|