@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,389 @@
|
|
|
1
|
+
import { FoundationElement } from "../foundation-element/foundation-element.js";
|
|
2
|
+
/**
|
|
3
|
+
* Defines the base behavior of an anchored region on a particular axis
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export type AxisPositioningMode = "uncontrolled" | "locktodefault" | "dynamic";
|
|
8
|
+
/**
|
|
9
|
+
* Defines the scaling behavior of an anchored region on a particular axis
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type AxisScalingMode = "anchor" | "fill" | "content";
|
|
14
|
+
/**
|
|
15
|
+
* Defines the horizontal positioning options for an anchored region
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export type HorizontalPosition = "start" | "end" | "left" | "right" | "center" | "unset";
|
|
20
|
+
/**
|
|
21
|
+
* Defines the vertical positioning options for an anchored region
|
|
22
|
+
*
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export type VerticalPosition = "top" | "bottom" | "center" | "unset";
|
|
26
|
+
/**
|
|
27
|
+
* Defines if the component updates its position automatically. Calling update() always provokes an update.
|
|
28
|
+
* anchor - the component only updates its position when the anchor resizes (default)
|
|
29
|
+
* auto - the component updates its position when:
|
|
30
|
+
* - update() is called
|
|
31
|
+
* - the anchor resizes
|
|
32
|
+
* - the window resizes
|
|
33
|
+
* - the viewport resizes
|
|
34
|
+
* - any scroll event in the document
|
|
35
|
+
*
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export type AutoUpdateMode = "anchor" | "auto";
|
|
39
|
+
/**
|
|
40
|
+
* Describes the possible positions of the region relative
|
|
41
|
+
* to its anchor. Depending on the axis start = left/top, end = right/bottom
|
|
42
|
+
*
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
export type AnchoredRegionPositionLabel = "start" | "insetStart" | "insetEnd" | "end" | "center";
|
|
46
|
+
/**
|
|
47
|
+
* An anchored region Custom HTML Element.
|
|
48
|
+
*
|
|
49
|
+
* @slot - The default slot for the content
|
|
50
|
+
* @fires loaded - Fires a custom 'loaded' event when the region is loaded and visible
|
|
51
|
+
* @fires positionchange - Fires a custom 'positionchange' event when the position has changed
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
export declare class AnchoredRegion extends FoundationElement {
|
|
56
|
+
/**
|
|
57
|
+
* The HTML ID of the anchor element this region is positioned relative to
|
|
58
|
+
*
|
|
59
|
+
* @public
|
|
60
|
+
* @remarks
|
|
61
|
+
* HTML Attribute: anchor
|
|
62
|
+
*/
|
|
63
|
+
anchor: string;
|
|
64
|
+
private anchorChanged;
|
|
65
|
+
/**
|
|
66
|
+
* The HTML ID of the viewport element this region is positioned relative to
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
* @remarks
|
|
70
|
+
* HTML Attribute: anchor
|
|
71
|
+
*/
|
|
72
|
+
viewport: string;
|
|
73
|
+
private viewportChanged;
|
|
74
|
+
/**
|
|
75
|
+
* Sets what logic the component uses to determine horizontal placement.
|
|
76
|
+
* 'locktodefault' forces the default position
|
|
77
|
+
* 'dynamic' decides placement based on available space
|
|
78
|
+
* 'uncontrolled' does not control placement on the horizontal axis
|
|
79
|
+
*
|
|
80
|
+
* @public
|
|
81
|
+
* @remarks
|
|
82
|
+
* HTML Attribute: horizontal-positioning-mode
|
|
83
|
+
*/
|
|
84
|
+
horizontalPositioningMode: AxisPositioningMode;
|
|
85
|
+
private horizontalPositioningModeChanged;
|
|
86
|
+
/**
|
|
87
|
+
* The default horizontal position of the region relative to the anchor element
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
* @remarks
|
|
91
|
+
* HTML Attribute: horizontal-default-position
|
|
92
|
+
*/
|
|
93
|
+
horizontalDefaultPosition: HorizontalPosition;
|
|
94
|
+
private horizontalDefaultPositionChanged;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the region remains in the viewport (ie. detaches from the anchor) on the horizontal axis
|
|
97
|
+
*
|
|
98
|
+
* @public
|
|
99
|
+
* @remarks
|
|
100
|
+
* HTML Attribute: horizontal-viewport-lock
|
|
101
|
+
*/
|
|
102
|
+
horizontalViewportLock: boolean;
|
|
103
|
+
private horizontalViewportLockChanged;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the region overlaps the anchor on the horizontal axis
|
|
106
|
+
*
|
|
107
|
+
* @public
|
|
108
|
+
* @remarks
|
|
109
|
+
* HTML Attribute: horizontal-inset
|
|
110
|
+
*/
|
|
111
|
+
horizontalInset: boolean;
|
|
112
|
+
private horizontalInsetChanged;
|
|
113
|
+
/**
|
|
114
|
+
* How narrow the space allocated to the default position has to be before the widest area
|
|
115
|
+
* is selected for layout
|
|
116
|
+
*
|
|
117
|
+
* @public
|
|
118
|
+
* @remarks
|
|
119
|
+
* HTML Attribute: horizontal-threshold
|
|
120
|
+
*/
|
|
121
|
+
horizontalThreshold: number;
|
|
122
|
+
private horizontalThresholdChanged;
|
|
123
|
+
/**
|
|
124
|
+
* Defines how the width of the region is calculated
|
|
125
|
+
*
|
|
126
|
+
* @public
|
|
127
|
+
* @remarks
|
|
128
|
+
* HTML Attribute: horizontal-scaling
|
|
129
|
+
*/
|
|
130
|
+
horizontalScaling: AxisScalingMode;
|
|
131
|
+
private horizontalScalingChanged;
|
|
132
|
+
/**
|
|
133
|
+
* Sets what logic the component uses to determine vertical placement.
|
|
134
|
+
* 'locktodefault' forces the default position
|
|
135
|
+
* 'dynamic' decides placement based on available space
|
|
136
|
+
* 'uncontrolled' does not control placement on the vertical axis
|
|
137
|
+
*
|
|
138
|
+
* @public
|
|
139
|
+
* @remarks
|
|
140
|
+
* HTML Attribute: vertical-positioning-mode
|
|
141
|
+
*/
|
|
142
|
+
verticalPositioningMode: AxisPositioningMode;
|
|
143
|
+
private verticalPositioningModeChanged;
|
|
144
|
+
/**
|
|
145
|
+
* The default vertical position of the region relative to the anchor element
|
|
146
|
+
*
|
|
147
|
+
* @public
|
|
148
|
+
* @remarks
|
|
149
|
+
* HTML Attribute: vertical-default-position
|
|
150
|
+
*/
|
|
151
|
+
verticalDefaultPosition: VerticalPosition;
|
|
152
|
+
private verticalDefaultPositionChanged;
|
|
153
|
+
/**
|
|
154
|
+
* Whether the region remains in the viewport (ie. detaches from the anchor) on the vertical axis
|
|
155
|
+
*
|
|
156
|
+
* @public
|
|
157
|
+
* @remarks
|
|
158
|
+
* HTML Attribute: vertical-viewport-lock
|
|
159
|
+
*/
|
|
160
|
+
verticalViewportLock: boolean;
|
|
161
|
+
private verticalViewportLockChanged;
|
|
162
|
+
/**
|
|
163
|
+
* Whether the region overlaps the anchor on the vertical axis
|
|
164
|
+
*
|
|
165
|
+
* @public
|
|
166
|
+
* @remarks
|
|
167
|
+
* HTML Attribute: vertical-inset
|
|
168
|
+
*/
|
|
169
|
+
verticalInset: boolean;
|
|
170
|
+
private verticalInsetChanged;
|
|
171
|
+
/**
|
|
172
|
+
* How short the space allocated to the default position has to be before the tallest area
|
|
173
|
+
* is selected for layout
|
|
174
|
+
*
|
|
175
|
+
* @public
|
|
176
|
+
* @remarks
|
|
177
|
+
* HTML Attribute: vertical-threshold
|
|
178
|
+
*/
|
|
179
|
+
verticalThreshold: number;
|
|
180
|
+
private verticalThresholdChanged;
|
|
181
|
+
/**
|
|
182
|
+
* Defines how the height of the region is calculated
|
|
183
|
+
*
|
|
184
|
+
* @public
|
|
185
|
+
* @remarks
|
|
186
|
+
* HTML Attribute: vertical-scaling
|
|
187
|
+
*/
|
|
188
|
+
verticalScaling: AxisScalingMode;
|
|
189
|
+
private verticalScalingChanged;
|
|
190
|
+
/**
|
|
191
|
+
* Whether the region is positioned using css "position: fixed".
|
|
192
|
+
* Otherwise the region uses "position: absolute".
|
|
193
|
+
* Fixed placement allows the region to break out of parent containers,
|
|
194
|
+
*
|
|
195
|
+
* @public
|
|
196
|
+
* @remarks
|
|
197
|
+
* HTML Attribute: fixed-placement
|
|
198
|
+
*/
|
|
199
|
+
fixedPlacement: boolean;
|
|
200
|
+
private fixedPlacementChanged;
|
|
201
|
+
/**
|
|
202
|
+
* Defines what triggers the anchored region to revaluate positioning
|
|
203
|
+
*
|
|
204
|
+
* @public
|
|
205
|
+
* @remarks
|
|
206
|
+
* HTML Attribute: auto-update-mode
|
|
207
|
+
*/
|
|
208
|
+
autoUpdateMode: AutoUpdateMode;
|
|
209
|
+
private autoUpdateModeChanged;
|
|
210
|
+
/**
|
|
211
|
+
* The HTML element being used as the anchor
|
|
212
|
+
*
|
|
213
|
+
* @public
|
|
214
|
+
*/
|
|
215
|
+
anchorElement: HTMLElement | null;
|
|
216
|
+
private anchorElementChanged;
|
|
217
|
+
/**
|
|
218
|
+
* The HTML element being used as the viewport
|
|
219
|
+
*
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
viewportElement: HTMLElement | null;
|
|
223
|
+
private viewportElementChanged;
|
|
224
|
+
/**
|
|
225
|
+
* indicates that an initial positioning pass on layout has completed
|
|
226
|
+
*
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
229
|
+
initialLayoutComplete: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* indicates the current horizontal position of the region
|
|
232
|
+
*/
|
|
233
|
+
verticalPosition: AnchoredRegionPositionLabel | undefined;
|
|
234
|
+
/**
|
|
235
|
+
* indicates the current vertical position of the region
|
|
236
|
+
*/
|
|
237
|
+
horizontalPosition: AnchoredRegionPositionLabel | undefined;
|
|
238
|
+
/**
|
|
239
|
+
* values to be applied to the component's transform on render
|
|
240
|
+
*/
|
|
241
|
+
private translateX;
|
|
242
|
+
private translateY;
|
|
243
|
+
/**
|
|
244
|
+
* the span to be applied to the region on each axis
|
|
245
|
+
*/
|
|
246
|
+
private regionWidth;
|
|
247
|
+
private regionHeight;
|
|
248
|
+
private resizeDetector;
|
|
249
|
+
private viewportRect;
|
|
250
|
+
private anchorRect;
|
|
251
|
+
private regionRect;
|
|
252
|
+
/**
|
|
253
|
+
* base offsets between the positioner's base position and the anchor's
|
|
254
|
+
*/
|
|
255
|
+
private baseHorizontalOffset;
|
|
256
|
+
private baseVerticalOffset;
|
|
257
|
+
private pendingPositioningUpdate;
|
|
258
|
+
private pendingReset;
|
|
259
|
+
private currentDirection;
|
|
260
|
+
private regionVisible;
|
|
261
|
+
private forceUpdate;
|
|
262
|
+
private updateThreshold;
|
|
263
|
+
private static intersectionService;
|
|
264
|
+
/**
|
|
265
|
+
* @internal
|
|
266
|
+
*/
|
|
267
|
+
connectedCallback(): void;
|
|
268
|
+
/**
|
|
269
|
+
* @internal
|
|
270
|
+
*/
|
|
271
|
+
disconnectedCallback(): void;
|
|
272
|
+
/**
|
|
273
|
+
* @internal
|
|
274
|
+
*/
|
|
275
|
+
adoptedCallback(): void;
|
|
276
|
+
/**
|
|
277
|
+
* update position
|
|
278
|
+
*/
|
|
279
|
+
update: () => void;
|
|
280
|
+
/**
|
|
281
|
+
* destroys the instance's resize observer
|
|
282
|
+
*/
|
|
283
|
+
private disconnectResizeDetector;
|
|
284
|
+
/**
|
|
285
|
+
* initializes the instance's resize observer
|
|
286
|
+
*/
|
|
287
|
+
private initializeResizeDetector;
|
|
288
|
+
/**
|
|
289
|
+
* react to attribute changes that don't require a reset
|
|
290
|
+
*/
|
|
291
|
+
private updateForAttributeChange;
|
|
292
|
+
/**
|
|
293
|
+
* fully initializes the component
|
|
294
|
+
*/
|
|
295
|
+
private initialize;
|
|
296
|
+
/**
|
|
297
|
+
* Request a reset if there are currently no open requests
|
|
298
|
+
*/
|
|
299
|
+
private requestReset;
|
|
300
|
+
/**
|
|
301
|
+
* sets the starting configuration for component internal values
|
|
302
|
+
*/
|
|
303
|
+
private setInitialState;
|
|
304
|
+
/**
|
|
305
|
+
* starts observers
|
|
306
|
+
*/
|
|
307
|
+
private startObservers;
|
|
308
|
+
/**
|
|
309
|
+
* get position updates
|
|
310
|
+
*/
|
|
311
|
+
private requestPositionUpdates;
|
|
312
|
+
/**
|
|
313
|
+
* stops observers
|
|
314
|
+
*/
|
|
315
|
+
private stopObservers;
|
|
316
|
+
/**
|
|
317
|
+
* Gets the viewport element by id, or defaults to document root
|
|
318
|
+
*/
|
|
319
|
+
private getViewport;
|
|
320
|
+
/**
|
|
321
|
+
* Gets the anchor element by id
|
|
322
|
+
*/
|
|
323
|
+
private getAnchor;
|
|
324
|
+
/**
|
|
325
|
+
* Handle intersections
|
|
326
|
+
*/
|
|
327
|
+
private handleIntersection;
|
|
328
|
+
/**
|
|
329
|
+
* iterate through intersection entries and apply data
|
|
330
|
+
*/
|
|
331
|
+
private applyIntersectionEntries;
|
|
332
|
+
/**
|
|
333
|
+
* Update the offset values
|
|
334
|
+
*/
|
|
335
|
+
private updateRegionOffset;
|
|
336
|
+
/**
|
|
337
|
+
* compare rects to see if there is enough change to justify a DOM update
|
|
338
|
+
*/
|
|
339
|
+
private isRectDifferent;
|
|
340
|
+
/**
|
|
341
|
+
* Handle resize events
|
|
342
|
+
*/
|
|
343
|
+
private handleResize;
|
|
344
|
+
/**
|
|
345
|
+
* resets the component
|
|
346
|
+
*/
|
|
347
|
+
private reset;
|
|
348
|
+
/**
|
|
349
|
+
* Recalculate layout related state values
|
|
350
|
+
*/
|
|
351
|
+
private updateLayout;
|
|
352
|
+
/**
|
|
353
|
+
* Updates the style string applied to the region element as well as the css classes attached
|
|
354
|
+
* to the root element
|
|
355
|
+
*/
|
|
356
|
+
private updateRegionStyle;
|
|
357
|
+
/**
|
|
358
|
+
* Updates the css classes that reflect the current position of the element
|
|
359
|
+
*/
|
|
360
|
+
private updatePositionClasses;
|
|
361
|
+
/**
|
|
362
|
+
* Get horizontal positioning state based on desired position
|
|
363
|
+
*/
|
|
364
|
+
private setHorizontalPosition;
|
|
365
|
+
/**
|
|
366
|
+
* Set vertical positioning state based on desired position
|
|
367
|
+
*/
|
|
368
|
+
private setVerticalPosition;
|
|
369
|
+
/**
|
|
370
|
+
* Get available positions based on positioning mode
|
|
371
|
+
*/
|
|
372
|
+
private getPositioningOptions;
|
|
373
|
+
/**
|
|
374
|
+
* Get the space available for a particular relative position
|
|
375
|
+
*/
|
|
376
|
+
private getAvailableSpace;
|
|
377
|
+
/**
|
|
378
|
+
* Get region dimensions
|
|
379
|
+
*/
|
|
380
|
+
private getNextRegionDimension;
|
|
381
|
+
/**
|
|
382
|
+
* starts event listeners that can trigger auto updating
|
|
383
|
+
*/
|
|
384
|
+
private startAutoUpdateEventListeners;
|
|
385
|
+
/**
|
|
386
|
+
* stops event listeners that can trigger auto updating
|
|
387
|
+
*/
|
|
388
|
+
private stopAutoUpdateEventListeners;
|
|
389
|
+
}
|
|
@@ -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 { AnchoredRegion } from "./anchored-region.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for the {@link @ni/fast-foundation#(AnchoredRegion:class)} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const anchoredRegionTemplate: FoundationElementTemplate<ViewTemplate<AnchoredRegion>>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { SyntheticViewTemplate } from "@ni/fast-element";
|
|
2
|
+
import { FoundationElement, FoundationElementDefinition } from "../foundation-element/foundation-element.js";
|
|
3
|
+
type AvatarShape = "circle" | "square";
|
|
4
|
+
/**
|
|
5
|
+
* Avatar configuration options
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type AvatarOptions = FoundationElementDefinition & {
|
|
9
|
+
media?: string | SyntheticViewTemplate;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* An Avatar Custom HTML Element
|
|
13
|
+
*
|
|
14
|
+
* @slot media - Used for media such as an image
|
|
15
|
+
* @slot - The default slot for avatar text, commonly a name or initials
|
|
16
|
+
* @slot badge - Used to provide a badge, such as a status badge
|
|
17
|
+
* @csspart backplate - The wrapping container for the avatar
|
|
18
|
+
* @csspart link - The avatar link
|
|
19
|
+
* @csspart media - The media slot
|
|
20
|
+
* @csspart content - The default slot
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export declare class Avatar extends FoundationElement {
|
|
25
|
+
/**
|
|
26
|
+
* Indicates the Avatar should have a color fill.
|
|
27
|
+
*
|
|
28
|
+
* @public
|
|
29
|
+
* @remarks
|
|
30
|
+
* HTML Attribute: fill
|
|
31
|
+
*/
|
|
32
|
+
fill: string;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates the Avatar should have a text color.
|
|
35
|
+
*
|
|
36
|
+
* @public
|
|
37
|
+
* @remarks
|
|
38
|
+
* HTML Attribute: color
|
|
39
|
+
*/
|
|
40
|
+
color: string;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates the Avatar should have url link
|
|
43
|
+
*
|
|
44
|
+
* @public
|
|
45
|
+
* @remarks
|
|
46
|
+
* HTML Attribute: link
|
|
47
|
+
*/
|
|
48
|
+
link: string;
|
|
49
|
+
/**
|
|
50
|
+
* Indicates the Avatar shape should be. By default it will be set to "circle".
|
|
51
|
+
*
|
|
52
|
+
* @public
|
|
53
|
+
* @remarks
|
|
54
|
+
* HTML Attribute: shape
|
|
55
|
+
*/
|
|
56
|
+
shape: AvatarShape;
|
|
57
|
+
/**
|
|
58
|
+
* Internal
|
|
59
|
+
*/
|
|
60
|
+
connectedCallback(): void;
|
|
61
|
+
}
|
|
62
|
+
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 { Avatar, AvatarOptions } from "./avatar.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for {@link @ni/fast-foundation#Avatar} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const avatarTemplate: FoundationElementTemplate<ViewTemplate<Avatar>, AvatarOptions>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FoundationElement } from "../foundation-element/foundation-element.js";
|
|
2
|
+
/**
|
|
3
|
+
* A Badge Custom HTML Element.
|
|
4
|
+
* @slot - The default slot for the badge
|
|
5
|
+
* @csspart control - The element representing the badge, which wraps the default slot
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class Badge extends FoundationElement {
|
|
10
|
+
/**
|
|
11
|
+
* Indicates the badge should have a filled style.
|
|
12
|
+
* @public
|
|
13
|
+
* @remarks
|
|
14
|
+
* HTML Attribute: fill
|
|
15
|
+
*/
|
|
16
|
+
fill: string;
|
|
17
|
+
/**
|
|
18
|
+
* Indicates the badge should have a filled style.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
* @remarks
|
|
22
|
+
* HTML Attribute: color
|
|
23
|
+
* @privateRemarks
|
|
24
|
+
* Revisit this once we have a better story for ensuring proper contrast from author defined `fill`
|
|
25
|
+
*/
|
|
26
|
+
color: string;
|
|
27
|
+
/**
|
|
28
|
+
* Indicates the element should be circular
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
* @remarks
|
|
32
|
+
* HTML Attribute: circular
|
|
33
|
+
*/
|
|
34
|
+
circular: boolean;
|
|
35
|
+
generateBadgeStyle: () => string | undefined;
|
|
36
|
+
}
|
|
@@ -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 { Badge } from "./badge.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for the {@link @ni/fast-foundation#Badge} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const badgeTemplate: FoundationElementTemplate<ViewTemplate<Badge>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FoundationElement } from "../foundation-element/foundation-element.js";
|
|
2
|
+
/**
|
|
3
|
+
* A Breadcrumb Custom HTML Element.
|
|
4
|
+
* @slot - The default slot for the breadcrumb items
|
|
5
|
+
* @csspart list - The element wrapping the slotted items
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class Breadcrumb extends FoundationElement {
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
slottedBreadcrumbItems: HTMLElement[];
|
|
14
|
+
slottedBreadcrumbItemsChanged(): void;
|
|
15
|
+
private setItemSeparator;
|
|
16
|
+
/**
|
|
17
|
+
* Finds href on childnodes in the light DOM or shadow DOM.
|
|
18
|
+
* We look in the shadow DOM because we insert an anchor when breadcrumb-item has an href.
|
|
19
|
+
*/
|
|
20
|
+
private findChildWithHref;
|
|
21
|
+
/**
|
|
22
|
+
* Sets ARIA Current for the current node
|
|
23
|
+
* If child node with an anchor tag and with href is found then set aria-current to correct value for the child node,
|
|
24
|
+
* otherwise apply aria-current to the host element, with an href
|
|
25
|
+
*/
|
|
26
|
+
private setAriaCurrent;
|
|
27
|
+
}
|
|
@@ -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 { Breadcrumb } from "./breadcrumb.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for the {@link @ni/fast-foundation#Breadcrumb} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const breadcrumbTemplate: FoundationElementTemplate<ViewTemplate<Breadcrumb>>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SyntheticViewTemplate } from "@ni/fast-element";
|
|
2
|
+
import type { FoundationElementDefinition } from "../foundation-element/foundation-element.js";
|
|
3
|
+
import { Anchor, DelegatesARIALink } from "../anchor/anchor.js";
|
|
4
|
+
import { StartEnd, StartEndOptions } from "../patterns/index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Breadcrumb Item configuration options
|
|
7
|
+
*
|
|
8
|
+
* @slot - The default slot for when no href is provided or for providing your own custom elements
|
|
9
|
+
* @slot separator - The slot for providing a custom separator
|
|
10
|
+
* @csspart listitem - The wrapping container for the item, represents a semantic listitem
|
|
11
|
+
* @csspart separator - The wrapping element for the separator
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export type BreadcrumbItemOptions = FoundationElementDefinition & StartEndOptions & {
|
|
16
|
+
separator?: string | SyntheticViewTemplate;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* A Breadcrumb Item Custom HTML Element.
|
|
20
|
+
*
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export declare class BreadcrumbItem extends Anchor {
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
separator: boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Mark internal because exporting class and interface of the same name
|
|
31
|
+
* confuses API documenter.
|
|
32
|
+
* TODO: https://github.com/microsoft/fast/issues/3317
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
export interface BreadcrumbItem extends StartEnd, DelegatesARIALink {
|
|
36
|
+
}
|
|
@@ -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 { BreadcrumbItem, BreadcrumbItemOptions } from "./breadcrumb-item.js";
|
|
4
|
+
/**
|
|
5
|
+
* The template for the {@link @ni/fast-foundation#(BreadcrumbItem:class)} component.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const breadcrumbItemTemplate: FoundationElementTemplate<ViewTemplate<BreadcrumbItem>, BreadcrumbItemOptions>;
|