@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,89 @@
|
|
|
1
|
+
import { Constructable, ExecutionContext, HTMLView, ViewTemplate } from "@ni/fast-element";
|
|
2
|
+
import { DesignSystem } from "../design-system/index.js";
|
|
3
|
+
import type { FoundationElementDefinition, FoundationElementRegistry } from "../foundation-element/foundation-element.js";
|
|
4
|
+
/**
|
|
5
|
+
* Options used to customize the creation of the test fixture.
|
|
6
|
+
*/
|
|
7
|
+
export interface FixtureOptions {
|
|
8
|
+
/**
|
|
9
|
+
* The document to run the fixture in.
|
|
10
|
+
* @defaultValue `globalThis.document`
|
|
11
|
+
*/
|
|
12
|
+
document?: Document;
|
|
13
|
+
/**
|
|
14
|
+
* The parent element to append the fixture to.
|
|
15
|
+
* @defaultValue An instance of `HTMLDivElement`.
|
|
16
|
+
*/
|
|
17
|
+
parent?: HTMLElement;
|
|
18
|
+
/**
|
|
19
|
+
* The data source to bind the HTML to.
|
|
20
|
+
* @defaultValue An empty object.
|
|
21
|
+
*/
|
|
22
|
+
source?: any;
|
|
23
|
+
/**
|
|
24
|
+
* The execution context to use during binding.
|
|
25
|
+
* @defaultValue {@link @ni/fast-element#defaultExecutionContext}
|
|
26
|
+
*/
|
|
27
|
+
context?: ExecutionContext;
|
|
28
|
+
/**
|
|
29
|
+
* A pre-configured design system instance used in setting up the fixture.
|
|
30
|
+
*/
|
|
31
|
+
designSystem?: DesignSystem;
|
|
32
|
+
}
|
|
33
|
+
export interface Fixture<TElement = HTMLElement> {
|
|
34
|
+
/**
|
|
35
|
+
* The document the fixture is running in.
|
|
36
|
+
*/
|
|
37
|
+
document: Document;
|
|
38
|
+
/**
|
|
39
|
+
* The template the fixture was created from.
|
|
40
|
+
*/
|
|
41
|
+
template: ViewTemplate;
|
|
42
|
+
/**
|
|
43
|
+
* The view that was created from the fixture's template.
|
|
44
|
+
*/
|
|
45
|
+
view: HTMLView;
|
|
46
|
+
/**
|
|
47
|
+
* The parent element that the view was appended to.
|
|
48
|
+
* @remarks
|
|
49
|
+
* This element will be appended to the DOM only
|
|
50
|
+
* after {@link Fixture.connect} has been called.
|
|
51
|
+
*/
|
|
52
|
+
parent: HTMLElement;
|
|
53
|
+
/**
|
|
54
|
+
* The first element in the {@link Fixture.view}.
|
|
55
|
+
*/
|
|
56
|
+
element: TElement;
|
|
57
|
+
/**
|
|
58
|
+
* Adds the {@link Fixture.parent} to the DOM, causing the
|
|
59
|
+
* connect lifecycle to begin.
|
|
60
|
+
* @remarks
|
|
61
|
+
* Yields control to the caller one Microtask later, in order to
|
|
62
|
+
* ensure that the DOM has settled.
|
|
63
|
+
*/
|
|
64
|
+
connect: () => Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Removes the {@link Fixture.parent} from the DOM, causing the
|
|
67
|
+
* disconnect lifecycle to begin.
|
|
68
|
+
* @remarks
|
|
69
|
+
* Yields control to the caller one Microtask later, in order to
|
|
70
|
+
* ensure that the DOM has settled.
|
|
71
|
+
*/
|
|
72
|
+
disconnect: () => Promise<void>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Creates a random, unique name suitable for use as a Custom Element name.
|
|
76
|
+
*/
|
|
77
|
+
export declare function uniqueElementName(): string;
|
|
78
|
+
/**
|
|
79
|
+
* Creates a test fixture suitable for testing custom elements, templates, and bindings.
|
|
80
|
+
* @param templateNameOrRegistry An HTML template or single element name to create the fixture for.
|
|
81
|
+
* @param options Enables customizing fixture creation behavior.
|
|
82
|
+
* @remarks
|
|
83
|
+
* Yields control to the caller one Microtask later, in order to
|
|
84
|
+
* ensure that the DOM has settled.
|
|
85
|
+
*/
|
|
86
|
+
export declare function fixture<TElement = HTMLElement>(templateNameOrRegistry: ViewTemplate | string | FoundationElementRegistry<FoundationElementDefinition, Constructable<TElement>> | [
|
|
87
|
+
FoundationElementRegistry<FoundationElementDefinition, Constructable<TElement>>,
|
|
88
|
+
...FoundationElementRegistry<FoundationElementDefinition, Constructable>[]
|
|
89
|
+
], options?: FixtureOptions): Promise<Fixture<TElement>>;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { DelegatesARIATextbox } from "../text-field/text-field.js";
|
|
2
|
+
import { FormAssociatedTextArea } from "./text-area.form-associated.js";
|
|
3
|
+
import { TextAreaResize } from "./text-area.options.js";
|
|
4
|
+
export { TextAreaResize };
|
|
5
|
+
/**
|
|
6
|
+
* A Text Area Custom HTML Element.
|
|
7
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea | <textarea> element }.
|
|
8
|
+
*
|
|
9
|
+
* @slot - The default slot for the label
|
|
10
|
+
* @csspart label - The label
|
|
11
|
+
* @csspart root - The element wrapping the control
|
|
12
|
+
* @csspart control - The textarea element
|
|
13
|
+
* @fires change - Emits a custom 'change' event when the textarea emits a change event
|
|
14
|
+
*
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export declare class TextArea extends FormAssociatedTextArea {
|
|
18
|
+
/**
|
|
19
|
+
* 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.
|
|
20
|
+
* @public
|
|
21
|
+
* @remarks
|
|
22
|
+
* HTML Attribute: readonly
|
|
23
|
+
*/
|
|
24
|
+
readOnly: boolean;
|
|
25
|
+
private readOnlyChanged;
|
|
26
|
+
/**
|
|
27
|
+
* The resize mode of the element.
|
|
28
|
+
* @public
|
|
29
|
+
* @remarks
|
|
30
|
+
* HTML Attribute: resize
|
|
31
|
+
*/
|
|
32
|
+
resize: TextAreaResize;
|
|
33
|
+
/**
|
|
34
|
+
* A reference to the internal textarea element
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
control: HTMLTextAreaElement;
|
|
38
|
+
/**
|
|
39
|
+
* Indicates that this element should get focus after the page finishes loading.
|
|
40
|
+
* @public
|
|
41
|
+
* @remarks
|
|
42
|
+
* HTML Attribute: autofocus
|
|
43
|
+
*/
|
|
44
|
+
autofocus: boolean;
|
|
45
|
+
private autofocusChanged;
|
|
46
|
+
/**
|
|
47
|
+
* The {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id | id} of the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form | form} the element is associated to
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
formId: string;
|
|
51
|
+
/**
|
|
52
|
+
* 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}.
|
|
53
|
+
* @public
|
|
54
|
+
* @remarks
|
|
55
|
+
* HTML Attribute: list
|
|
56
|
+
*/
|
|
57
|
+
list: string;
|
|
58
|
+
private listChanged;
|
|
59
|
+
/**
|
|
60
|
+
* The maximum number of characters a user can enter.
|
|
61
|
+
* @public
|
|
62
|
+
* @remarks
|
|
63
|
+
* HTMLAttribute: maxlength
|
|
64
|
+
*/
|
|
65
|
+
maxlength: number;
|
|
66
|
+
private maxlengthChanged;
|
|
67
|
+
/**
|
|
68
|
+
* The minimum number of characters a user can enter.
|
|
69
|
+
* @public
|
|
70
|
+
* @remarks
|
|
71
|
+
* HTMLAttribute: minlength
|
|
72
|
+
*/
|
|
73
|
+
minlength: number;
|
|
74
|
+
private minlengthChanged;
|
|
75
|
+
/**
|
|
76
|
+
* The name of the element.
|
|
77
|
+
* @public
|
|
78
|
+
* @remarks
|
|
79
|
+
* HTML Attribute: name
|
|
80
|
+
*/
|
|
81
|
+
name: string;
|
|
82
|
+
/**
|
|
83
|
+
* Sets the placeholder value of the element, generally used to provide a hint to the user.
|
|
84
|
+
* @public
|
|
85
|
+
* @remarks
|
|
86
|
+
* HTML Attribute: placeholder
|
|
87
|
+
* Using this attribute does is not a valid substitute for a labeling element.
|
|
88
|
+
*/
|
|
89
|
+
placeholder: string;
|
|
90
|
+
/**
|
|
91
|
+
* Sizes the element horizontally by a number of character columns.
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
* @remarks
|
|
95
|
+
* HTML Attribute: cols
|
|
96
|
+
*/
|
|
97
|
+
cols: number;
|
|
98
|
+
/**
|
|
99
|
+
* Sizes the element vertically by a number of character rows.
|
|
100
|
+
*
|
|
101
|
+
* @public
|
|
102
|
+
* @remarks
|
|
103
|
+
* HTML Attribute: rows
|
|
104
|
+
*/
|
|
105
|
+
rows: number;
|
|
106
|
+
/**
|
|
107
|
+
* Sets if the element is eligible for spell checking
|
|
108
|
+
* but the UA.
|
|
109
|
+
* @public
|
|
110
|
+
* @remarks
|
|
111
|
+
* HTML Attribute: spellcheck
|
|
112
|
+
*/
|
|
113
|
+
spellcheck: boolean;
|
|
114
|
+
private spellcheckChanged;
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
defaultSlottedNodes: Node[];
|
|
119
|
+
/**
|
|
120
|
+
* Selects all the text in the text area
|
|
121
|
+
*
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
protected select(): void;
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
handleTextInput: () => void;
|
|
129
|
+
/**
|
|
130
|
+
* Change event handler for inner control.
|
|
131
|
+
* @remarks
|
|
132
|
+
* "Change" events are not `composable` so they will not
|
|
133
|
+
* permeate the shadow DOM boundary. This fn effectively proxies
|
|
134
|
+
* the change event, emitting a `change` event whenever the internal
|
|
135
|
+
* control emits a `change` event
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
handleChange(): void;
|
|
139
|
+
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
140
|
+
validate(): void;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Mark internal because exporting class and interface of the same name
|
|
144
|
+
* confuses API documenter.
|
|
145
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
146
|
+
* @internal
|
|
147
|
+
*/
|
|
148
|
+
export interface TextArea extends DelegatesARIATextbox {
|
|
149
|
+
}
|
|
@@ -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 _TextArea extends FoundationElement {
|
|
4
|
+
}
|
|
5
|
+
interface _TextArea extends FormAssociated {
|
|
6
|
+
}
|
|
7
|
+
declare const FormAssociatedTextArea_base: typeof _TextArea;
|
|
8
|
+
/**
|
|
9
|
+
* A form-associated base class for the {@link @ni/fast-foundation#(TextArea:class)} component.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare class FormAssociatedTextArea extends FormAssociatedTextArea_base {
|
|
14
|
+
proxy: HTMLTextAreaElement;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resize mode for a TextArea
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export declare const TextAreaResize: {
|
|
6
|
+
/**
|
|
7
|
+
* No resize.
|
|
8
|
+
*/
|
|
9
|
+
readonly none: "none";
|
|
10
|
+
/**
|
|
11
|
+
* Resize vertically and horizontally.
|
|
12
|
+
*/
|
|
13
|
+
readonly both: "both";
|
|
14
|
+
/**
|
|
15
|
+
* Resize horizontally.
|
|
16
|
+
*/
|
|
17
|
+
readonly horizontal: "horizontal";
|
|
18
|
+
/**
|
|
19
|
+
* Resize vertically.
|
|
20
|
+
*/
|
|
21
|
+
readonly vertical: "vertical";
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Types for the Text Area resize mode
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export type TextAreaResize = typeof TextAreaResize[keyof typeof TextAreaResize];
|
|
@@ -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 { TextArea } from "./text-area.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for the {@link @ni/fast-foundation#(TextArea:class)} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const textAreaTemplate: FoundationElementTemplate<ViewTemplate<TextArea>>;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { ARIAGlobalStatesAndProperties, StartEnd, StartEndOptions } from "../patterns/index.js";
|
|
2
|
+
import type { FoundationElementDefinition } from "../foundation-element/foundation-element.js";
|
|
3
|
+
import { FormAssociatedTextField } from "./text-field.form-associated.js";
|
|
4
|
+
import { TextFieldType } from "./text-field.options.js";
|
|
5
|
+
export { TextFieldType };
|
|
6
|
+
/**
|
|
7
|
+
* Text field configuration options
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export type TextFieldOptions = FoundationElementDefinition & StartEndOptions;
|
|
11
|
+
/**
|
|
12
|
+
* A Text Field Custom HTML Element.
|
|
13
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text | <input type="text" /> element }.
|
|
14
|
+
*
|
|
15
|
+
* @slot start - Content which can be provided before the number field input
|
|
16
|
+
* @slot end - Content which can be provided after the number field input
|
|
17
|
+
* @slot - The default slot for the label
|
|
18
|
+
* @csspart label - The label
|
|
19
|
+
* @csspart root - The element wrapping the control, including start and end slots
|
|
20
|
+
* @csspart control - The text field element
|
|
21
|
+
* @fires change - Fires a custom 'change' event when the value has changed
|
|
22
|
+
*
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export declare class TextField extends FormAssociatedTextField {
|
|
26
|
+
/**
|
|
27
|
+
* 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.
|
|
28
|
+
* @public
|
|
29
|
+
* @remarks
|
|
30
|
+
* HTML Attribute: readonly
|
|
31
|
+
*/
|
|
32
|
+
readOnly: boolean;
|
|
33
|
+
private readOnlyChanged;
|
|
34
|
+
/**
|
|
35
|
+
* 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.
|
|
36
|
+
* @public
|
|
37
|
+
* @remarks
|
|
38
|
+
* HTML Attribute: autofocus
|
|
39
|
+
*/
|
|
40
|
+
autofocus: boolean;
|
|
41
|
+
private autofocusChanged;
|
|
42
|
+
/**
|
|
43
|
+
* Sets the placeholder value of the element, generally used to provide a hint to the user.
|
|
44
|
+
* @public
|
|
45
|
+
* @remarks
|
|
46
|
+
* HTML Attribute: placeholder
|
|
47
|
+
* Using this attribute does is not a valid substitute for a labeling element.
|
|
48
|
+
*/
|
|
49
|
+
placeholder: string;
|
|
50
|
+
private placeholderChanged;
|
|
51
|
+
/**
|
|
52
|
+
* Allows setting a type or mode of text.
|
|
53
|
+
* @public
|
|
54
|
+
* @remarks
|
|
55
|
+
* HTML Attribute: type
|
|
56
|
+
*/
|
|
57
|
+
type: TextFieldType;
|
|
58
|
+
private typeChanged;
|
|
59
|
+
/**
|
|
60
|
+
* 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}.
|
|
61
|
+
* @public
|
|
62
|
+
* @remarks
|
|
63
|
+
* HTML Attribute: list
|
|
64
|
+
*/
|
|
65
|
+
list: string;
|
|
66
|
+
private listChanged;
|
|
67
|
+
/**
|
|
68
|
+
* The maximum number of characters a user can enter.
|
|
69
|
+
* @public
|
|
70
|
+
* @remarks
|
|
71
|
+
* HTMLAttribute: maxlength
|
|
72
|
+
*/
|
|
73
|
+
maxlength: number;
|
|
74
|
+
private maxlengthChanged;
|
|
75
|
+
/**
|
|
76
|
+
* The minimum number of characters a user can enter.
|
|
77
|
+
* @public
|
|
78
|
+
* @remarks
|
|
79
|
+
* HTMLAttribute: minlength
|
|
80
|
+
*/
|
|
81
|
+
minlength: number;
|
|
82
|
+
private minlengthChanged;
|
|
83
|
+
/**
|
|
84
|
+
* A regular expression that the value must match to pass validation.
|
|
85
|
+
* @public
|
|
86
|
+
* @remarks
|
|
87
|
+
* HTMLAttribute: pattern
|
|
88
|
+
*/
|
|
89
|
+
pattern: string;
|
|
90
|
+
private patternChanged;
|
|
91
|
+
/**
|
|
92
|
+
* Sets the width of the element to a specified number of characters.
|
|
93
|
+
* @public
|
|
94
|
+
* @remarks
|
|
95
|
+
* HTMLAttribute: size
|
|
96
|
+
*/
|
|
97
|
+
size: number;
|
|
98
|
+
private sizeChanged;
|
|
99
|
+
/**
|
|
100
|
+
* Controls whether or not to enable spell checking for the input field, or if the default spell checking configuration should be used.
|
|
101
|
+
* @public
|
|
102
|
+
* @remarks
|
|
103
|
+
* HTMLAttribute: size
|
|
104
|
+
*/
|
|
105
|
+
spellcheck: boolean;
|
|
106
|
+
private spellcheckChanged;
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
defaultSlottedNodes: Node[];
|
|
111
|
+
/**
|
|
112
|
+
* A reference to the internal input element
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
control: HTMLInputElement;
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
connectedCallback(): void;
|
|
120
|
+
/**
|
|
121
|
+
* Selects all the text in the text field
|
|
122
|
+
*
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
protected select(): void;
|
|
126
|
+
/**
|
|
127
|
+
* Handles the internal control's `input` event
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
130
|
+
handleTextInput(): void;
|
|
131
|
+
/**
|
|
132
|
+
* Change event handler for inner control.
|
|
133
|
+
* @remarks
|
|
134
|
+
* "Change" events are not `composable` so they will not
|
|
135
|
+
* permeate the shadow DOM boundary. This fn effectively proxies
|
|
136
|
+
* the change event, emitting a `change` event whenever the internal
|
|
137
|
+
* control emits a `change` event
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
handleChange(): void;
|
|
141
|
+
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
142
|
+
validate(): void;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Includes ARIA states and properties relating to the ARIA textbox role
|
|
146
|
+
*
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
export declare class DelegatesARIATextbox {
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Mark internal because exporting class and interface of the same name
|
|
153
|
+
* confuses API documenter.
|
|
154
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
155
|
+
* @internal
|
|
156
|
+
*/
|
|
157
|
+
export interface DelegatesARIATextbox extends ARIAGlobalStatesAndProperties {
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Mark internal because exporting class and interface of the same name
|
|
161
|
+
* confuses API documenter.
|
|
162
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
163
|
+
* @internal
|
|
164
|
+
*/
|
|
165
|
+
export interface TextField extends StartEnd, DelegatesARIATextbox {
|
|
166
|
+
}
|
|
@@ -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 _TextField extends FoundationElement {
|
|
4
|
+
}
|
|
5
|
+
interface _TextField extends FormAssociated {
|
|
6
|
+
}
|
|
7
|
+
declare const FormAssociatedTextField_base: typeof _TextField;
|
|
8
|
+
/**
|
|
9
|
+
* A form-associated base class for the {@link @ni/fast-foundation#(TextField:class)} component.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare class FormAssociatedTextField extends FormAssociatedTextField_base {
|
|
14
|
+
proxy: HTMLInputElement;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text field sub-types
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export declare const TextFieldType: {
|
|
6
|
+
/**
|
|
7
|
+
* An email TextField
|
|
8
|
+
*/
|
|
9
|
+
readonly email: "email";
|
|
10
|
+
/**
|
|
11
|
+
* A password TextField
|
|
12
|
+
*/
|
|
13
|
+
readonly password: "password";
|
|
14
|
+
/**
|
|
15
|
+
* A telephone TextField
|
|
16
|
+
*/
|
|
17
|
+
readonly tel: "tel";
|
|
18
|
+
/**
|
|
19
|
+
* A text TextField
|
|
20
|
+
*/
|
|
21
|
+
readonly text: "text";
|
|
22
|
+
/**
|
|
23
|
+
* A URL TextField
|
|
24
|
+
*/
|
|
25
|
+
readonly url: "url";
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Types for the text field sub-types
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export type TextFieldType = typeof TextFieldType[keyof typeof TextFieldType];
|
|
@@ -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 { TextField, TextFieldOptions } from "./text-field.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for the {@link @ni/fast-foundation#(TextField:class)} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const textFieldTemplate: FoundationElementTemplate<ViewTemplate<TextField>, TextFieldOptions>;
|