@daffodil/design 0.77.0 → 0.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/README.md +40 -2
- package/accordion/accordion/accordion/accordion.component.d.ts +1 -1
- package/accordion/accordion/accordion-item/accordion-item.component.d.ts +19 -8
- package/accordion/accordion/accordion-item-title/accordion-item-title.directive.d.ts +1 -1
- package/accordion/accordion.d.ts +4 -0
- package/accordion/accordion.module.d.ts +6 -7
- package/accordion/examples/basic-accordion/basic-accordion.component.d.ts +1 -1
- package/accordion/examples/public_api.d.ts +0 -1
- package/accordion/public_api.d.ts +1 -0
- package/article/README.md +42 -1
- package/article/article/article.component.d.ts +1 -1
- package/article/article-meta/article-meta.directive.d.ts +1 -1
- package/article/article.d.ts +3 -0
- package/article/article.module.d.ts +5 -4
- package/article/public_api.d.ts +2 -1
- package/atoms/form/form-field/form-field/form-field.component.d.ts +1 -1
- package/button/README.md +42 -1
- package/button/button/basic/button.component.d.ts +28 -0
- package/button/button/button-base.directive.d.ts +51 -0
- package/button/button/flat/flat.component.d.ts +28 -0
- package/button/button/icon/icon.component.d.ts +24 -0
- package/button/button/raised/raised.component.d.ts +28 -0
- package/button/button/stroked/stroked.component.d.ts +28 -0
- package/button/button/underline/underline.component.d.ts +28 -0
- package/button/button.d.ts +8 -0
- package/button/button.module.d.ts +10 -5
- package/button/public_api.d.ts +7 -1
- package/button/src/button/basic/button-theme.scss +145 -0
- package/button/src/button/button-base.scss +79 -0
- package/button/src/button/flat/flat-theme.scss +143 -0
- package/button/src/button/icon/icon-theme.scss +141 -0
- package/button/src/button/raised/raised-theme.scss +120 -0
- package/button/src/button/stroked/stroked-theme.scss +158 -0
- package/button/src/button/underline/underline-theme.scss +93 -0
- package/callout/README.md +42 -0
- package/callout/callout/callout.component.d.ts +1 -1
- package/callout/callout-body/callout-body.directive.d.ts +1 -1
- package/callout/callout-icon/callout-icon.directive.d.ts +1 -1
- package/callout/callout-subtitle/callout-subtitle.directive.d.ts +1 -1
- package/callout/callout-tagline/callout-tagline.directive.d.ts +1 -1
- package/callout/callout-title/callout-title.directive.d.ts +1 -1
- package/callout/callout.d.ts +7 -0
- package/callout/callout.module.d.ts +9 -8
- package/callout/public_api.d.ts +1 -0
- package/card/README.md +41 -0
- package/card/card/card.component.d.ts +1 -1
- package/card/card-actions/card-actions.directive.d.ts +1 -1
- package/card/card-content/card-content.directive.d.ts +1 -1
- package/card/card-icon/card-icon.directive.d.ts +1 -1
- package/card/card-image/card-image.directive.d.ts +1 -1
- package/card/card-tagline/card-tagline.directive.d.ts +1 -1
- package/card/card-title/card-title.directive.d.ts +1 -1
- package/card/card.d.ts +8 -0
- package/card/card.module.d.ts +12 -9
- package/card/public_api.d.ts +1 -0
- package/container/README.md +42 -1
- package/container/container/container.component.d.ts +1 -1
- package/container/container.d.ts +2 -0
- package/container/container.module.d.ts +6 -3
- package/container/public_api.d.ts +1 -0
- package/core/openable/openable.d.ts +13 -0
- package/core/openable/openable.directive.d.ts +81 -0
- package/core/openable/public_api.d.ts +2 -0
- package/core/openable/utils/state-error.d.ts +1 -0
- package/core/public_api.d.ts +1 -0
- package/core/statusable/statusable.d.ts +5 -3
- package/core/statusable/statusable.directive.d.ts +6 -4
- package/esm2022/accordion/accordion/accordion/accordion.component.mjs +3 -3
- package/esm2022/accordion/accordion/accordion-item/accordion-item.component.mjs +38 -22
- package/esm2022/accordion/accordion/accordion-item-title/accordion-item-title.directive.mjs +3 -2
- package/esm2022/accordion/accordion/animation/accordion-animation.mjs +1 -4
- package/esm2022/accordion/accordion.mjs +9 -0
- package/esm2022/accordion/accordion.module.mjs +6 -14
- package/esm2022/accordion/examples/basic-accordion/basic-accordion.component.mjs +6 -3
- package/esm2022/accordion/examples/public_api.mjs +1 -2
- package/esm2022/accordion/public_api.mjs +2 -1
- package/esm2022/article/article/article.component.mjs +3 -3
- package/esm2022/article/article-meta/article-meta.directive.mjs +3 -2
- package/esm2022/article/article.mjs +7 -0
- package/esm2022/article/article.module.mjs +5 -5
- package/esm2022/article/examples/article-blockquote/article-blockquote.component.mjs +6 -4
- package/esm2022/article/examples/article-code-block/article-code-block.component.mjs +6 -4
- package/esm2022/article/examples/article-code-inline/article-code-inline.component.mjs +6 -4
- package/esm2022/article/examples/article-headings/article-headings.component.mjs +7 -3
- package/esm2022/article/examples/article-hr/article-hr.component.mjs +6 -4
- package/esm2022/article/examples/article-link/article-link.component.mjs +6 -4
- package/esm2022/article/examples/article-meta/article-meta.component.mjs +6 -4
- package/esm2022/article/examples/article-ol/article-ol.component.mjs +6 -4
- package/esm2022/article/examples/article-table/article-table.component.mjs +6 -4
- package/esm2022/article/examples/article-ul/article-ul.component.mjs +6 -4
- package/esm2022/article/public_api.mjs +3 -2
- package/esm2022/atoms/form/form-field/form-field/form-field.component.mjs +2 -2
- package/esm2022/button/button/basic/button.component.mjs +48 -0
- package/esm2022/button/button/button-base.directive.mjs +105 -0
- package/esm2022/button/button/flat/flat.component.mjs +48 -0
- package/esm2022/button/button/icon/icon.component.mjs +44 -0
- package/esm2022/button/button/raised/raised.component.mjs +48 -0
- package/esm2022/button/button/stroked/stroked.component.mjs +48 -0
- package/esm2022/button/button/underline/underline.component.mjs +48 -0
- package/esm2022/button/button.mjs +17 -0
- package/esm2022/button/button.module.mjs +36 -12
- package/esm2022/button/examples/basic-button/basic-button.component.mjs +4 -8
- package/esm2022/button/examples/flat-button/flat-button.component.mjs +4 -8
- package/esm2022/button/examples/icon-button/icon-button.component.mjs +7 -5
- package/esm2022/button/examples/raised-button/raised-button.component.mjs +4 -8
- package/esm2022/button/examples/sizeable-button/sizeable-button.component.mjs +8 -4
- package/esm2022/button/examples/statusable-button/statusable-button.component.mjs +8 -4
- package/esm2022/button/examples/stroked-button/stroked-button.component.mjs +4 -8
- package/esm2022/button/examples/underline-button/underline-button.component.mjs +4 -8
- package/esm2022/button/public_api.mjs +8 -2
- package/esm2022/callout/callout/callout.component.mjs +4 -4
- package/esm2022/callout/callout-body/callout-body.directive.mjs +3 -2
- package/esm2022/callout/callout-icon/callout-icon.directive.mjs +3 -2
- package/esm2022/callout/callout-subtitle/callout-subtitle.directive.mjs +3 -2
- package/esm2022/callout/callout-tagline/callout-tagline.directive.mjs +3 -2
- package/esm2022/callout/callout-title/callout-title.directive.mjs +3 -2
- package/esm2022/callout/callout.mjs +15 -0
- package/esm2022/callout/callout.module.mjs +5 -5
- package/esm2022/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +9 -10
- package/esm2022/callout/examples/callout-theming/callout-theming.component.mjs +7 -8
- package/esm2022/callout/examples/callout-with-grid/callout-with-grid.component.mjs +9 -9
- package/esm2022/callout/examples/compact-callout/compact-callout.component.mjs +8 -9
- package/esm2022/callout/public_api.mjs +2 -1
- package/esm2022/card/card/card.component.mjs +3 -3
- package/esm2022/card/card-actions/card-actions.directive.mjs +3 -2
- package/esm2022/card/card-content/card-content.directive.mjs +3 -2
- package/esm2022/card/card-icon/card-icon.directive.mjs +3 -2
- package/esm2022/card/card-image/card-image.directive.mjs +3 -2
- package/esm2022/card/card-tagline/card-tagline.directive.mjs +3 -2
- package/esm2022/card/card-title/card-title.directive.mjs +3 -2
- package/esm2022/card/card.mjs +17 -0
- package/esm2022/card/card.module.mjs +7 -5
- package/esm2022/card/examples/basic-card/basic-card.component.mjs +8 -9
- package/esm2022/card/examples/card-orientation/card-orientation.component.mjs +9 -10
- package/esm2022/card/examples/card-theming/card-theming.component.mjs +4 -4
- package/esm2022/card/examples/linkable-card/linkable-card.component.mjs +6 -6
- package/esm2022/card/examples/raised-card/raised-card.component.mjs +6 -6
- package/esm2022/card/examples/stroked-card/stroked-card.component.mjs +6 -6
- package/esm2022/card/public_api.mjs +2 -1
- package/esm2022/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +4 -5
- package/esm2022/checkbox/examples/checkbox-set/checkbox-set.component.mjs +4 -5
- package/esm2022/container/container/container.component.mjs +3 -3
- package/esm2022/container/container.mjs +5 -0
- package/esm2022/container/container.module.mjs +6 -4
- package/esm2022/container/examples/container-sizes/container-sizes.component.mjs +4 -4
- package/esm2022/container/public_api.mjs +2 -1
- package/esm2022/core/openable/openable.directive.mjs +122 -0
- package/esm2022/core/openable/openable.mjs +2 -0
- package/esm2022/core/openable/public_api.mjs +2 -0
- package/esm2022/core/openable/utils/state-error.mjs +2 -0
- package/esm2022/core/public_api.mjs +2 -1
- package/esm2022/core/statusable/statusable.directive.mjs +7 -5
- package/esm2022/core/statusable/statusable.mjs +3 -2
- package/esm2022/hero/examples/compact-hero/compact-hero.component.mjs +6 -7
- package/esm2022/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +9 -10
- package/esm2022/hero/examples/hero-theming/hero-theming.component.mjs +7 -8
- package/esm2022/hero/examples/hero-with-grid/hero-with-grid.component.mjs +8 -9
- package/esm2022/hero/hero/hero.component.mjs +4 -7
- package/esm2022/hero/hero-body/hero-body.directive.mjs +3 -2
- package/esm2022/hero/hero-icon/hero-icon.directive.mjs +3 -2
- package/esm2022/hero/hero-subtitle/hero-subtitle.directive.mjs +3 -2
- package/esm2022/hero/hero-tagline/hero-tagline.directive.mjs +3 -2
- package/esm2022/hero/hero-title/hero-title.directive.mjs +3 -2
- package/esm2022/hero/hero.mjs +15 -0
- package/esm2022/hero/hero.module.mjs +7 -5
- package/esm2022/hero/public_api.mjs +2 -1
- package/esm2022/image/examples/basic-image/basic-image.component.mjs +6 -4
- package/esm2022/image/examples/load-image/load-image.component.mjs +7 -4
- package/esm2022/image/examples/skeleton-image/skeleton-image.component.mjs +6 -4
- package/esm2022/image/image/image.component.mjs +3 -3
- package/esm2022/image/image.mjs +5 -0
- package/esm2022/image/image.module.mjs +7 -5
- package/esm2022/image/public_api.mjs +2 -1
- package/esm2022/link-set/link-set/link-set.component.mjs +3 -3
- package/esm2022/link-set/link-set-heading/link-set-heading.directive.mjs +3 -2
- package/esm2022/link-set/link-set-item/link-set-item.component.mjs +3 -2
- package/esm2022/link-set/link-set-subheading/link-set-subheading.directive.mjs +3 -2
- package/esm2022/link-set/link-set.mjs +11 -0
- package/esm2022/link-set/link-set.module.mjs +8 -6
- package/esm2022/link-set/public_api.mjs +2 -1
- package/esm2022/list/examples/basic-list/basic-list.component.mjs +7 -4
- package/esm2022/list/examples/icon-list/icon-list.component.mjs +4 -6
- package/esm2022/list/examples/multiline-list/multiline-list.component.mjs +7 -4
- package/esm2022/list/examples/nav-list/nav-list.component.mjs +4 -6
- package/esm2022/list/list/list.component.mjs +3 -3
- package/esm2022/list/list-item/list-item.component.mjs +8 -5
- package/esm2022/list/list.mjs +9 -0
- package/esm2022/list/list.module.mjs +8 -8
- package/esm2022/list/public_api.mjs +2 -1
- package/esm2022/loading-icon/examples/examples.mjs +1 -3
- package/esm2022/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +4 -4
- package/esm2022/loading-icon/loading-icon/loading-icon.component.mjs +5 -20
- package/esm2022/loading-icon/loading-icon.mjs +5 -0
- package/esm2022/loading-icon/loading-icon.module.mjs +6 -4
- package/esm2022/loading-icon/public_api.mjs +2 -1
- package/esm2022/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +8 -5
- package/esm2022/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +8 -5
- package/esm2022/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.component.mjs +8 -5
- package/esm2022/media-gallery/helpers/media-gallery-token.mjs +7 -3
- package/esm2022/media-gallery/media-gallery/media-gallery.component.mjs +9 -5
- package/esm2022/media-gallery/media-gallery.mjs +9 -0
- package/esm2022/media-gallery/media-gallery.module.mjs +11 -9
- package/esm2022/media-gallery/media-renderer/media-renderer.component.mjs +3 -2
- package/esm2022/media-gallery/public_api.mjs +2 -1
- package/esm2022/media-gallery/thumbnail/thumbnail-compat.token.mjs +8 -3
- package/esm2022/media-gallery/thumbnail/thumbnail.directive.mjs +3 -2
- package/esm2022/menu/examples/basic-menu/basic-menu.component.mjs +8 -6
- package/esm2022/menu/examples/basic-menu/menu-content/menu-content.component.mjs +6 -3
- package/esm2022/menu/menu/menu.component.mjs +6 -3
- package/esm2022/menu/menu-activator/menu-activator.component.mjs +3 -2
- package/esm2022/menu/menu-item/menu-item.component.mjs +8 -5
- package/esm2022/menu/menu.module.mjs +8 -7
- package/esm2022/menu/services/menu.service.mjs +8 -7
- package/esm2022/modal/examples/basic-modal/basic-modal.component.mjs +12 -6
- package/esm2022/modal/examples/basic-modal/modal-content.component.mjs +8 -6
- package/esm2022/modal/modal/modal.component.mjs +47 -21
- package/esm2022/modal/modal-actions/modal-actions.component.mjs +3 -2
- package/esm2022/modal/modal-close/modal-close.directive.mjs +3 -2
- package/esm2022/modal/modal-content/modal-content.component.mjs +3 -2
- package/esm2022/modal/modal-header/modal-header.component.mjs +12 -7
- package/esm2022/modal/modal-title/modal-title.directive.mjs +3 -2
- package/esm2022/modal/modal.mjs +13 -0
- package/esm2022/modal/modal.module.mjs +17 -11
- package/esm2022/modal/public_api.mjs +2 -1
- package/esm2022/modal/service/modal.service.mjs +7 -5
- package/esm2022/navbar/examples/basic-navbar/basic-navbar.component.mjs +8 -6
- package/esm2022/navbar/examples/contained-navbar/contained-navbar.component.mjs +8 -9
- package/esm2022/navbar/examples/navbar-theming/navbar-theming.component.mjs +7 -8
- package/esm2022/navbar/examples/raised-navbar/raised-navbar.component.mjs +8 -6
- package/esm2022/navbar/navbar/navbar.component.mjs +3 -6
- package/esm2022/navbar/navbar.mjs +5 -0
- package/esm2022/navbar/navbar.module.mjs +10 -4
- package/esm2022/navbar/public_api.mjs +2 -1
- package/esm2022/notification/examples/default-notification/default-notification.component.mjs +4 -6
- package/esm2022/notification/examples/dismissible-notification/dismissible-notification.component.mjs +4 -4
- package/esm2022/notification/examples/notification-orientations/notification-orientations.component.mjs +4 -6
- package/esm2022/notification/examples/notification-status/notification-status.component.mjs +5 -7
- package/esm2022/notification/examples/notification-with-actions/notification-with-actions.component.mjs +6 -7
- package/esm2022/notification/notification/notification.component.mjs +12 -8
- package/esm2022/notification/notification-actions/notification-actions.directive.mjs +3 -2
- package/esm2022/notification/notification-message/notification-message.directive.mjs +3 -2
- package/esm2022/notification/notification-subtitle/notification-subtitle.directive.mjs +3 -2
- package/esm2022/notification/notification-title/notification-title.directive.mjs +3 -2
- package/esm2022/notification/notification.mjs +15 -0
- package/esm2022/notification/notification.module.mjs +11 -8
- package/esm2022/notification/public_api.mjs +2 -1
- package/esm2022/paginator/examples/basic-paginator/basic-paginator.component.mjs +4 -4
- package/esm2022/paginator/examples/link-paginator/link-paginator.component.mjs +4 -4
- package/esm2022/paginator/paginator/paginator.component.mjs +12 -9
- package/esm2022/paginator/paginator.mjs +5 -0
- package/esm2022/paginator/paginator.module.mjs +9 -6
- package/esm2022/paginator/public_api.mjs +2 -1
- package/esm2022/progress-bar/examples/progress-bar-default/progress-bar-default.component.mjs +6 -4
- package/esm2022/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.component.mjs +6 -4
- package/esm2022/progress-bar/examples/progress-bar-themes/progress-bar-themes.component.mjs +7 -4
- package/esm2022/progress-bar/progress-bar-label/progress-bar-label.directive.mjs +20 -0
- package/esm2022/progress-bar/progress-bar.component.mjs +5 -3
- package/esm2022/progress-bar/progress-bar.mjs +7 -0
- package/esm2022/progress-bar/progress-bar.module.mjs +11 -4
- package/esm2022/progress-bar/public_api.mjs +3 -1
- package/esm2022/sidebar/examples/basic-sidebar/basic-sidebar.component.mjs +6 -4
- package/esm2022/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.component.mjs +8 -8
- package/esm2022/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.component.mjs +5 -5
- package/esm2022/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.component.mjs +6 -4
- package/esm2022/sidebar/public_api.mjs +2 -1
- package/esm2022/sidebar/sidebar/sidebar.component.mjs +35 -15
- package/esm2022/sidebar/sidebar-footer/sidebar-footer.component.mjs +3 -3
- package/esm2022/sidebar/sidebar-header/sidebar-header-action/sidebar-header-action.directive.mjs +3 -2
- package/esm2022/sidebar/sidebar-header/sidebar-header-title/sidebar-header-title.directive.mjs +3 -2
- package/esm2022/sidebar/sidebar-header/sidebar-header.component.mjs +3 -3
- package/esm2022/sidebar/sidebar-viewport/scroll-token/scroll.token.mjs +9 -3
- package/esm2022/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +22 -38
- package/esm2022/sidebar/sidebar-viewport/utils/content-pad.mjs +6 -6
- package/esm2022/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.mjs +3 -3
- package/esm2022/sidebar/sidebar.mjs +17 -0
- package/esm2022/sidebar/sidebar.module.mjs +8 -6
- package/esm2022/tabs/daffodil-design-tabs.mjs +5 -0
- package/esm2022/tabs/examples/basic-tabs/basic-tabs.component.mjs +22 -0
- package/esm2022/tabs/examples/custom-select-tabs/custom-select-tabs.component.mjs +34 -0
- package/esm2022/tabs/examples/daffodil-design-tabs-examples.mjs +5 -0
- package/esm2022/tabs/examples/disabled-tabs/disabled-tabs.component.mjs +22 -0
- package/esm2022/tabs/examples/index.mjs +2 -0
- package/esm2022/tabs/examples/initially-select-tab/initially-select-tab.component.mjs +22 -0
- package/esm2022/tabs/examples/public_api.mjs +11 -0
- package/esm2022/tabs/index.mjs +2 -0
- package/esm2022/tabs/public_api.mjs +6 -0
- package/esm2022/tabs/tabs/tab/tab.component.mjs +86 -0
- package/esm2022/tabs/tabs/tab-activator/tab-activator.component.mjs +83 -0
- package/esm2022/tabs/tabs/tab-label/tab-label.component.mjs +33 -0
- package/esm2022/tabs/tabs/tab-panel/tab-panel.component.mjs +68 -0
- package/esm2022/tabs/tabs/tabs.component.mjs +161 -0
- package/esm2022/tabs/tabs.mjs +13 -0
- package/esm2022/text-snippet/daffodil-design-text-snippet.mjs +5 -0
- package/esm2022/text-snippet/examples/basic-text-snippet/basic-text-snippet.component.mjs +14 -0
- package/esm2022/text-snippet/examples/daffodil-design-text-snippet-examples.mjs +5 -0
- package/esm2022/text-snippet/examples/index.mjs +2 -0
- package/esm2022/text-snippet/examples/public_api.mjs +5 -0
- package/esm2022/text-snippet/index.mjs +2 -0
- package/esm2022/text-snippet/public_api.mjs +2 -0
- package/esm2022/text-snippet/text-snippet.component.mjs +46 -0
- package/esm2022/toast/examples/default-toast/default-toast.component.mjs +6 -5
- package/esm2022/toast/examples/toast-positions/toast-positions.component.mjs +7 -5
- package/esm2022/toast/examples/toast-status/toast-status.component.mjs +11 -8
- package/esm2022/toast/examples/toast-with-custom-duration/toast-with-custom-duration.component.mjs +6 -5
- package/esm2022/toast/options/daff-toast-options.mjs +7 -7
- package/esm2022/toast/public_api.mjs +2 -1
- package/esm2022/toast/service/toast.service.mjs +9 -10
- package/esm2022/toast/toast/toast-provider.mjs +7 -0
- package/esm2022/toast/toast/toast-template.component.mjs +30 -12
- package/esm2022/toast/toast/toast.component.mjs +6 -9
- package/esm2022/toast/toast-actions/toast-actions.directive.mjs +3 -2
- package/esm2022/toast/toast-message/toast-message.directive.mjs +3 -2
- package/esm2022/toast/toast-title/toast-title.directive.mjs +3 -2
- package/esm2022/toast/toast.module.mjs +10 -11
- package/esm2022/tree/examples/basic-tree/basic-tree.component.mjs +7 -4
- package/esm2022/tree/public_api.mjs +2 -2
- package/esm2022/tree/tree/tree.component.mjs +8 -5
- package/esm2022/tree/tree-item/tree-item.directive.mjs +3 -2
- package/esm2022/tree/tree.mjs +7 -0
- package/esm2022/tree/tree.module.mjs +9 -7
- package/fesm2022/daffodil-design-accordion-examples.mjs +7 -26
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-accordion.mjs +52 -41
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article-examples.mjs +41 -21
- package/fesm2022/daffodil-design-article-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +15 -9
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-button-examples.mjs +27 -24
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +312 -135
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +21 -21
- package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +27 -13
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card-examples.mjs +23 -24
- package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +31 -13
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +5 -6
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container-examples.mjs +3 -3
- package/fesm2022/daffodil-design-container-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +12 -6
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +19 -20
- package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +29 -16
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image-examples.mjs +14 -7
- package/fesm2022/daffodil-design-image-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +13 -7
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-link-set.mjs +23 -11
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list-examples.mjs +14 -13
- package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +22 -14
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +3 -13
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs +14 -23
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +17 -8
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +82 -59
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +11 -6
- package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +55 -48
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal-examples.mjs +16 -7
- package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +95 -49
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +22 -17
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +16 -9
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +14 -18
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +39 -21
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +5 -5
- package/fesm2022/daffodil-design-paginator-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +23 -16
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +14 -7
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +38 -8
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar-examples.mjs +18 -14
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +94 -70
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs-examples.mjs +93 -0
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-tabs.mjs +431 -0
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -0
- package/fesm2022/daffodil-design-text-snippet-examples.mjs +25 -0
- package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-text-snippet.mjs +53 -0
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -0
- package/fesm2022/daffodil-design-toast-examples.mjs +23 -13
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +152 -132
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +6 -3
- package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +23 -35
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +132 -8
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/README.md +41 -0
- package/hero/hero/hero.component.d.ts +1 -4
- package/hero/hero-body/hero-body.directive.d.ts +1 -1
- package/hero/hero-icon/hero-icon.directive.d.ts +1 -1
- package/hero/hero-subtitle/hero-subtitle.directive.d.ts +1 -1
- package/hero/hero-tagline/hero-tagline.directive.d.ts +1 -1
- package/hero/hero-title/hero-title.directive.d.ts +1 -1
- package/hero/hero.d.ts +7 -0
- package/hero/hero.module.d.ts +11 -8
- package/hero/public_api.d.ts +1 -0
- package/image/README.md +47 -8
- package/image/image/image.component.d.ts +1 -1
- package/image/image.d.ts +2 -0
- package/image/image.module.d.ts +6 -3
- package/image/public_api.d.ts +1 -0
- package/link-set/README.md +43 -2
- package/link-set/link-set/link-set.component.d.ts +1 -1
- package/link-set/link-set-heading/link-set-heading.directive.d.ts +1 -1
- package/link-set/link-set-item/link-set-item.component.d.ts +1 -1
- package/link-set/link-set-subheading/link-set-subheading.directive.d.ts +1 -1
- package/link-set/link-set.d.ts +5 -0
- package/link-set/link-set.module.d.ts +9 -6
- package/link-set/public_api.d.ts +1 -0
- package/list/README.md +42 -1
- package/list/list/list.component.d.ts +1 -1
- package/list/list-item/list-item.component.d.ts +1 -1
- package/list/list.d.ts +4 -0
- package/list/list.module.d.ts +7 -4
- package/list/public_api.d.ts +1 -0
- package/loading-icon/README.md +39 -3
- package/loading-icon/examples/examples.d.ts +2 -2
- package/loading-icon/loading-icon/loading-icon.component.d.ts +1 -9
- package/loading-icon/loading-icon.d.ts +2 -0
- package/loading-icon/loading-icon.module.d.ts +6 -3
- package/loading-icon/public_api.d.ts +1 -0
- package/media-gallery/README.md +45 -1
- package/media-gallery/helpers/media-gallery-token.d.ts +1 -2
- package/media-gallery/media-gallery/media-gallery.component.d.ts +1 -1
- package/media-gallery/media-gallery.d.ts +4 -0
- package/media-gallery/media-gallery.module.d.ts +8 -5
- package/media-gallery/media-renderer/media-renderer.component.d.ts +1 -1
- package/media-gallery/public_api.d.ts +1 -0
- package/media-gallery/thumbnail/thumbnail-compat.token.d.ts +1 -5
- package/media-gallery/thumbnail/thumbnail.directive.d.ts +1 -1
- package/menu/README.md +23 -0
- package/menu/menu/menu.component.d.ts +1 -1
- package/menu/menu-activator/menu-activator.component.d.ts +1 -1
- package/menu/menu-item/menu-item.component.d.ts +1 -1
- package/menu/menu.module.d.ts +6 -6
- package/menu/services/menu.service.d.ts +3 -2
- package/modal/README.md +41 -0
- package/modal/modal/modal.component.d.ts +20 -8
- package/modal/modal-actions/modal-actions.component.d.ts +1 -1
- package/modal/modal-close/modal-close.directive.d.ts +1 -1
- package/modal/modal-content/modal-content.component.d.ts +1 -1
- package/modal/modal-header/modal-header.component.d.ts +1 -1
- package/modal/modal-title/modal-title.directive.d.ts +1 -1
- package/modal/modal.d.ts +6 -0
- package/modal/modal.module.d.ts +15 -12
- package/modal/public_api.d.ts +1 -0
- package/navbar/README.md +41 -0
- package/navbar/navbar/navbar.component.d.ts +1 -4
- package/navbar/navbar.d.ts +2 -0
- package/navbar/navbar.module.d.ts +6 -2
- package/navbar/public_api.d.ts +1 -0
- package/notification/README.md +43 -2
- package/notification/notification/notification.component.d.ts +2 -2
- package/notification/notification-actions/notification-actions.directive.d.ts +1 -1
- package/notification/notification-message/notification-message.directive.d.ts +1 -1
- package/notification/notification-subtitle/notification-subtitle.directive.d.ts +1 -1
- package/notification/notification-title/notification-title.directive.d.ts +1 -1
- package/notification/notification.d.ts +7 -0
- package/notification/notification.module.d.ts +12 -9
- package/notification/public_api.d.ts +1 -0
- package/notification/src/notification-theme.scss +17 -13
- package/package.json +1 -1
- package/paginator/README.md +45 -4
- package/paginator/paginator/paginator.component.d.ts +1 -4
- package/paginator/paginator.d.ts +2 -0
- package/paginator/paginator.module.d.ts +8 -5
- package/paginator/public_api.d.ts +1 -0
- package/progress-bar/README.md +41 -0
- package/progress-bar/progress-bar-label/progress-bar-label.directive.d.ts +6 -0
- package/progress-bar/progress-bar.component.d.ts +1 -1
- package/progress-bar/progress-bar.d.ts +3 -0
- package/progress-bar/progress-bar.module.d.ts +7 -3
- package/progress-bar/public_api.d.ts +2 -0
- package/scss/theme.scss +13 -1
- package/scss/theming/_configure-theme.scss +60 -2
- package/scss/theming/_theme-css-variables.scss +1 -1
- package/sidebar/README.md +78 -20
- package/sidebar/public_api.d.ts +1 -0
- package/sidebar/sidebar/sidebar.component.d.ts +19 -8
- package/sidebar/sidebar-footer/sidebar-footer.component.d.ts +1 -1
- package/sidebar/sidebar-header/sidebar-header-action/sidebar-header-action.directive.d.ts +1 -1
- package/sidebar/sidebar-header/sidebar-header-title/sidebar-header-title.directive.d.ts +1 -1
- package/sidebar/sidebar-header/sidebar-header.component.d.ts +1 -1
- package/sidebar/sidebar-viewport/scroll-token/scroll.token.d.ts +1 -7
- package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +5 -17
- package/sidebar/sidebar-viewport/utils/content-pad.d.ts +2 -2
- package/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.d.ts +1 -1
- package/sidebar/sidebar.d.ts +8 -0
- package/sidebar/sidebar.module.d.ts +13 -10
- package/tabs/README.md +19 -0
- package/tabs/examples/basic-tabs/basic-tabs.component.d.ts +6 -0
- package/tabs/examples/custom-select-tabs/custom-select-tabs.component.d.ts +11 -0
- package/tabs/examples/disabled-tabs/disabled-tabs.component.d.ts +6 -0
- package/tabs/examples/index.d.ts +1 -0
- package/tabs/examples/initially-select-tab/initially-select-tab.component.d.ts +6 -0
- package/tabs/examples/public_api.d.ts +2 -0
- package/tabs/index.d.ts +1 -0
- package/tabs/public_api.d.ts +5 -0
- package/tabs/src/tabs-theme.scss +22 -0
- package/tabs/tabs/tab/tab.component.d.ts +57 -0
- package/tabs/tabs/tab-activator/tab-activator.component.d.ts +37 -0
- package/tabs/tabs/tab-label/tab-label.component.d.ts +19 -0
- package/tabs/tabs/tab-panel/tab-panel.component.d.ts +38 -0
- package/tabs/tabs/tabs.component.d.ts +104 -0
- package/tabs/tabs.d.ts +6 -0
- package/text-snippet/README.md +2 -0
- package/text-snippet/examples/basic-text-snippet/basic-text-snippet.component.d.ts +5 -0
- package/text-snippet/examples/index.d.ts +1 -0
- package/text-snippet/examples/public_api.d.ts +2 -0
- package/text-snippet/index.d.ts +1 -0
- package/text-snippet/public_api.d.ts +1 -0
- package/text-snippet/text-snippet.component.d.ts +19 -0
- package/toast/README.md +109 -34
- package/toast/options/daff-toast-options.d.ts +1 -3
- package/toast/public_api.d.ts +1 -0
- package/toast/service/toast.service.d.ts +4 -3
- package/toast/src/toast-theme.scss +14 -10
- package/toast/toast/toast-provider.d.ts +2 -0
- package/toast/toast/toast-template.component.d.ts +1 -1
- package/toast/toast/toast.component.d.ts +1 -3
- package/toast/toast-actions/toast-actions.directive.d.ts +1 -1
- package/toast/toast-message/toast-message.directive.d.ts +1 -1
- package/toast/toast-title/toast-title.directive.d.ts +1 -1
- package/toast/toast.module.d.ts +14 -12
- package/tree/README.md +41 -0
- package/tree/public_api.d.ts +1 -2
- package/tree/tree/tree.component.d.ts +1 -1
- package/tree/tree-item/tree-item.directive.d.ts +1 -1
- package/tree/tree.d.ts +3 -0
- package/tree/tree.module.d.ts +7 -4
- package/accordion/examples/accordion-examples.module.d.ts +0 -9
- package/button/button/button.component.d.ts +0 -80
- package/button/src/button-theme-variants/button.scss +0 -26
- package/button/src/button-theme-variants/flat.scss +0 -25
- package/button/src/button-theme-variants/icon.scss +0 -21
- package/button/src/button-theme-variants/raised.scss +0 -36
- package/button/src/button-theme-variants/stroked.scss +0 -28
- package/button/src/button-theme-variants/underline.scss +0 -9
- package/button/src/button-theme.scss +0 -574
- package/esm2022/accordion/examples/accordion-examples.module.mjs +0 -26
- package/esm2022/button/button/button.component.mjs +0 -207
- package/esm2022/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.mjs +0 -13
- package/esm2022/tree/utils/transform-in-place.mjs +0 -23
- package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.d.ts +0 -5
- package/tree/utils/transform-in-place.d.ts +0 -15
@@ -0,0 +1,6 @@
|
|
1
|
+
export { DAFF_TABS_COMPONENTS } from './tabs';
|
2
|
+
export { DaffTabsComponent } from './tabs/tabs.component';
|
3
|
+
export { DaffTabPanelComponent } from './tabs/tab-panel/tab-panel.component';
|
4
|
+
export { DaffTabComponent } from './tabs/tab/tab.component';
|
5
|
+
export { DaffTabLabelComponent } from './tabs/tab-label/tab-label.component';
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3RhYnMvc3JjL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sUUFBUSxDQUFDO0FBQzlDLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQzFELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQzdFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzVELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHNDQUFzQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgREFGRl9UQUJTX0NPTVBPTkVOVFMgfSBmcm9tICcuL3RhYnMnO1xuZXhwb3J0IHsgRGFmZlRhYnNDb21wb25lbnQgfSBmcm9tICcuL3RhYnMvdGFicy5jb21wb25lbnQnO1xuZXhwb3J0IHsgRGFmZlRhYlBhbmVsQ29tcG9uZW50IH0gZnJvbSAnLi90YWJzL3RhYi1wYW5lbC90YWItcGFuZWwuY29tcG9uZW50JztcbmV4cG9ydCB7IERhZmZUYWJDb21wb25lbnQgfSBmcm9tICcuL3RhYnMvdGFiL3RhYi5jb21wb25lbnQnO1xuZXhwb3J0IHsgRGFmZlRhYkxhYmVsQ29tcG9uZW50IH0gZnJvbSAnLi90YWJzL3RhYi1sYWJlbC90YWItbGFiZWwuY29tcG9uZW50JztcbiJdfQ==
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import { Component, ChangeDetectionStrategy, TemplateRef, ViewChild, Input, } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
let tabId = 1;
|
4
|
+
/**
|
5
|
+
* `DaffTabComponet` is an element in the tab list that is used as a content container to group the label of a tab panel and the tab panel together.
|
6
|
+
*
|
7
|
+
* ## Template Structure
|
8
|
+
* A `<daff-tab>` should include the {@link DaffTabLabelComponent} and {@link DaffTabPanelComponent} components in order to properly structure the UI.
|
9
|
+
*
|
10
|
+
* ## Usage
|
11
|
+
* ```html
|
12
|
+
* <daff-tab>
|
13
|
+
* <daff-tab-label>
|
14
|
+
* <fa-icon [icon]="faInfoCircle" daffPrefix></fa-icon>
|
15
|
+
* Tab 1
|
16
|
+
* </daff-tab-label>
|
17
|
+
* <daff-tab-panel>
|
18
|
+
* Tab 1 Panel
|
19
|
+
* </daff-tab-panel>
|
20
|
+
* </daff-tab>
|
21
|
+
* ```
|
22
|
+
*/
|
23
|
+
export class DaffTabComponent {
|
24
|
+
constructor() {
|
25
|
+
/**
|
26
|
+
* Whether the tab is disabled.
|
27
|
+
*
|
28
|
+
* ```html
|
29
|
+
* <daff-tab [disabled]="true">
|
30
|
+
* </daff-tab>
|
31
|
+
* ```
|
32
|
+
*/
|
33
|
+
this.disabled = false;
|
34
|
+
/**
|
35
|
+
* A unique id for the tab component.
|
36
|
+
*
|
37
|
+
* The `id` is automatically generated by linking the prefix 'daff-tab-' with an incrementing `tabId`. This value can be customized by passing a different `id` value via the component's `id` input.
|
38
|
+
*
|
39
|
+
* ```html
|
40
|
+
* <daff-tab [id]="'custom-id'"></daff-tab>
|
41
|
+
* ```
|
42
|
+
*/
|
43
|
+
this.id = 'daff-tab-' + tabId;
|
44
|
+
/**
|
45
|
+
* @docs-private
|
46
|
+
*/
|
47
|
+
this.panelId = 'daff-tab-panel-' + tabId;
|
48
|
+
tabId++;
|
49
|
+
}
|
50
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
51
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffTabComponent, isStandalone: true, selector: "daff-tab", inputs: { disabled: "disabled", id: "id" }, viewQueries: [{ propertyName: "contentRef", first: true, predicate: ["content"], descendants: true, read: TemplateRef, static: true }, { propertyName: "labelRef", first: true, predicate: ["label"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: `
|
52
|
+
<ng-template #label>
|
53
|
+
<ng-content select="daff-tab-label"></ng-content>
|
54
|
+
</ng-template>
|
55
|
+
<ng-template #content>
|
56
|
+
<ng-content select="daff-tab-panel"></ng-content>
|
57
|
+
</ng-template>
|
58
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
59
|
+
}
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffTabComponent, decorators: [{
|
61
|
+
type: Component,
|
62
|
+
args: [{
|
63
|
+
standalone: true,
|
64
|
+
selector: 'daff-tab',
|
65
|
+
template: `
|
66
|
+
<ng-template #label>
|
67
|
+
<ng-content select="daff-tab-label"></ng-content>
|
68
|
+
</ng-template>
|
69
|
+
<ng-template #content>
|
70
|
+
<ng-content select="daff-tab-panel"></ng-content>
|
71
|
+
</ng-template>
|
72
|
+
`,
|
73
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
74
|
+
}]
|
75
|
+
}], ctorParameters: () => [], propDecorators: { disabled: [{
|
76
|
+
type: Input
|
77
|
+
}], contentRef: [{
|
78
|
+
type: ViewChild,
|
79
|
+
args: ['content', { read: TemplateRef, static: true }]
|
80
|
+
}], labelRef: [{
|
81
|
+
type: ViewChild,
|
82
|
+
args: ['label', { read: TemplateRef, static: true }]
|
83
|
+
}], id: [{
|
84
|
+
type: Input
|
85
|
+
}] } });
|
86
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3RhYnMvc3JjL3RhYnMvdGFiL3RhYi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFDdkIsV0FBVyxFQUNYLFNBQVMsRUFDVCxLQUFL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GxpbmtpbmcgdGhlIHByZWZpeCAnZGFmZi10YWItJyB3aXRoIGFuIGluY3JlbWVudGluZyBgdGFiSWRgLiBUaGlzIHZhbHVlIGNhbiBiZSBjdXN0b21pemVkIGJ5IHBhc3NpbmcgYSBkaWZmZXJlbnQgYGlkYCB2YWx1ZSB2aWEgdGhlIGNvbXBvbmVudCdzIGBpZGAgaW5wdXQuXG4gICAqXG4gICAqIGBgYGh0bWxcbiAgICogPGRhZmYtdGFiIFtpZF09XCInY3VzdG9tLWlkJ1wiPjwvZGFmZi10YWI+XG4gICAqIGBgYFxuICAgKi9cbiAgQElucHV0KCkgaWQgPSAnZGFmZi10YWItJyArIHRhYklkO1xuXG4gIC8qKlxuICAgKiBAZG9jcy1wcml2YXRlXG4gICAqL1xuICBwYW5lbElkID0gJ2RhZmYtdGFiLXBhbmVsLScgKyB0YWJJZDtcblxuICBjb25zdHJ1Y3RvcigpIHtcbiAgICB0YWJJZCsrO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import { HostBinding, Input, Component, ChangeDetectionStrategy, ViewEncapsulation, ElementRef, } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class DaffTabActivatorComponent {
|
4
|
+
/**
|
5
|
+
* Sets `aria-selected` to true if the component is selected and false if it's not selected.
|
6
|
+
*/
|
7
|
+
get ariaSelected() {
|
8
|
+
return this.selected ? true : false;
|
9
|
+
}
|
10
|
+
/**
|
11
|
+
* Sets `tabindex` to `0` if the component is selected and `-1` if it's not selected.
|
12
|
+
*/
|
13
|
+
get tabIndex() {
|
14
|
+
return this.selected ? '0' : '-1';
|
15
|
+
}
|
16
|
+
ngOnInit() {
|
17
|
+
/**
|
18
|
+
* Sets the value of `panelId` to the `ariaControls` property
|
19
|
+
*/
|
20
|
+
this.ariaControls = this.panelId;
|
21
|
+
}
|
22
|
+
constructor(el) {
|
23
|
+
this.el = el;
|
24
|
+
/**
|
25
|
+
* @docs-private
|
26
|
+
*/
|
27
|
+
this.class = true;
|
28
|
+
/**
|
29
|
+
* Sets the `role` to tab.
|
30
|
+
*/
|
31
|
+
this.role = 'tab';
|
32
|
+
/** Whether or not a tab is selected */
|
33
|
+
this.selected = false;
|
34
|
+
this.ariaControls = '';
|
35
|
+
/**
|
36
|
+
* The html id of the tab activator component
|
37
|
+
*/
|
38
|
+
this.tabActivatorId = '';
|
39
|
+
this.panelId = '';
|
40
|
+
}
|
41
|
+
/**
|
42
|
+
* Sets focus to the native element of the component
|
43
|
+
*/
|
44
|
+
focus() {
|
45
|
+
this.el.nativeElement.focus();
|
46
|
+
}
|
47
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffTabActivatorComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
48
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffTabActivatorComponent, isStandalone: true, selector: "button[daff-tab-activator],a[daff-tab-activator]", inputs: { selected: "selected", tabActivatorId: "tabActivatorId", panelId: "panelId" }, host: { properties: { "class.daff-tab-activator": "this.class", "attr.role": "this.role", "class.selected": "this.selected", "attr.aria-selected": "this.ariaSelected", "attr.tabindex": "this.tabIndex", "attr.aria-controls": "this.ariaControls", "attr.id": "this.tabActivatorId" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [".daff-tab-activator{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;appearance:none;background:none;border:none;color:currentColor;font-size:1rem;font-weight:400;height:2.5rem;margin:0;padding:.5rem 1.5rem}.daff-tab-activator[disabled]{cursor:not-allowed;opacity:.6}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
49
|
+
}
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffTabActivatorComponent, decorators: [{
|
51
|
+
type: Component,
|
52
|
+
args: [{ standalone: true, selector: '' +
|
53
|
+
'button[daff-tab-activator]' + ',' +
|
54
|
+
'a[daff-tab-activator]', template: `<ng-content></ng-content>`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [".daff-tab-activator{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;appearance:none;background:none;border:none;color:currentColor;font-size:1rem;font-weight:400;height:2.5rem;margin:0;padding:.5rem 1.5rem}.daff-tab-activator[disabled]{cursor:not-allowed;opacity:.6}\n"] }]
|
55
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { class: [{
|
56
|
+
type: HostBinding,
|
57
|
+
args: ['class.daff-tab-activator']
|
58
|
+
}], role: [{
|
59
|
+
type: HostBinding,
|
60
|
+
args: ['attr.role']
|
61
|
+
}], selected: [{
|
62
|
+
type: Input
|
63
|
+
}, {
|
64
|
+
type: HostBinding,
|
65
|
+
args: ['class.selected']
|
66
|
+
}], ariaSelected: [{
|
67
|
+
type: HostBinding,
|
68
|
+
args: ['attr.aria-selected']
|
69
|
+
}], tabIndex: [{
|
70
|
+
type: HostBinding,
|
71
|
+
args: ['attr.tabindex']
|
72
|
+
}], ariaControls: [{
|
73
|
+
type: HostBinding,
|
74
|
+
args: ['attr.aria-controls']
|
75
|
+
}], tabActivatorId: [{
|
76
|
+
type: Input
|
77
|
+
}, {
|
78
|
+
type: HostBinding,
|
79
|
+
args: ['attr.id']
|
80
|
+
}], panelId: [{
|
81
|
+
type: Input
|
82
|
+
}] } });
|
83
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLWFjdGl2YXRvci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc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ogU2V0cyBgdGFiaW5kZXhgIHRvIGAwYCBpZiB0aGUgY29tcG9uZW50IGlzIHNlbGVjdGVkIGFuZCBgLTFgIGlmIGl0J3Mgbm90IHNlbGVjdGVkLlxuICAgKi9cbiAgQEhvc3RCaW5kaW5nKCdhdHRyLnRhYmluZGV4JykgZ2V0IHRhYkluZGV4KCkge1xuICAgIHJldHVybiB0aGlzLnNlbGVjdGVkID8gJzAnIDogICctMSc7XG4gIH1cblxuICBASG9zdEJpbmRpbmcoJ2F0dHIuYXJpYS1jb250cm9scycpIGFyaWFDb250cm9scyA9ICcnO1xuXG4gIC8qKlxuICAgKiBUaGUgaHRtbCBpZCBvZiB0aGUgdGFiIGFjdGl2YXRvciBjb21wb25lbnRcbiAgICovXG4gIEBJbnB1dCgpIEBIb3N0QmluZGluZygnYXR0ci5pZCcpIHRhYkFjdGl2YXRvcklkID0gJyc7XG5cbiAgQElucHV0KCkgcGFuZWxJZCA9ICcnO1xuXG4gIG5nT25Jbml0KCkge1xuICAgIC8qKlxuICAgICAqIFNldHMgdGhlIHZhbHVlIG9mIGBwYW5lbElkYCB0byB0aGUgYGFyaWFDb250cm9sc2AgcHJvcGVydHlcbiAgICAgKi9cbiAgICB0aGlzLmFyaWFDb250cm9scyA9IHRoaXMucGFuZWxJZDtcbiAgfVxuXG4gIGNvbnN0cnVjdG9yKFxuICAgIHByaXZhdGUgZWw6IEVsZW1lbnRSZWYsXG4gICkge1xuICB9XG5cbiAgLyoqXG4gICAqIFNldHMgZm9jdXMgdG8gdGhlIG5hdGl2ZSBlbGVtZW50IG9mIHRoZSBjb21wb25lbnRcbiAgICovXG4gIGZvY3VzKCkge1xuICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC5mb2N1cygpO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { NgIf } from '@angular/common';
|
2
|
+
import { ChangeDetectionStrategy, Component, ContentChild, } from '@angular/core';
|
3
|
+
import { DaffPrefixDirective, DaffSuffixDirective, DaffPrefixSuffixModule, } from '@daffodil/design';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
/**
|
6
|
+
* DaffTabLabelComponent is used to display the label of a tab panel. Labels may optionally contain a `daffPrefix` or `daffSuffix` to add icons or badges.
|
7
|
+
*
|
8
|
+
* ```html
|
9
|
+
* <daff-tab-label>
|
10
|
+
* <div daffPrefix></div>
|
11
|
+
* Label
|
12
|
+
* <div daffSuffix></div
|
13
|
+
* </daff-tab-Label>
|
14
|
+
* ```
|
15
|
+
*/
|
16
|
+
export class DaffTabLabelComponent {
|
17
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffTabLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
18
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffTabLabelComponent, isStandalone: true, selector: "daff-tab-label", queries: [{ propertyName: "_prefix", first: true, predicate: DaffPrefixDirective, descendants: true }, { propertyName: "_suffix", first: true, predicate: DaffSuffixDirective, descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"_prefix\">\n <ng-content select=\"[daffPrefix]\"></ng-content>\n</ng-container>\n<div class=\"daff-tab-label__content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"_suffix\">\n <ng-content select=\"[daffSuffix]\"></ng-content>\n</ng-container>", styles: [":host{display:flex;gap:8px}.daff-tab-label__content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: DaffPrefixSuffixModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
19
|
+
}
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffTabLabelComponent, decorators: [{
|
21
|
+
type: Component,
|
22
|
+
args: [{ standalone: true, selector: 'daff-tab-label', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
23
|
+
NgIf,
|
24
|
+
DaffPrefixSuffixModule,
|
25
|
+
], template: "<ng-container *ngIf=\"_prefix\">\n <ng-content select=\"[daffPrefix]\"></ng-content>\n</ng-container>\n<div class=\"daff-tab-label__content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"_suffix\">\n <ng-content select=\"[daffSuffix]\"></ng-content>\n</ng-container>", styles: [":host{display:flex;gap:8px}.daff-tab-label__content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}\n"] }]
|
26
|
+
}], propDecorators: { _prefix: [{
|
27
|
+
type: ContentChild,
|
28
|
+
args: [DaffPrefixDirective]
|
29
|
+
}], _suffix: [{
|
30
|
+
type: ContentChild,
|
31
|
+
args: [DaffSuffixDirective]
|
32
|
+
}] } });
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLWxhYmVsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3RhYnMvc3JjL3RhYnMvdGFiLWxhYmVsL3RhYi1sYWJlbC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi90YWJzL3NyYy90YWJzL3RhYi1sYWJlbC90YWItbGFiZWwuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3ZDLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFlBQVksR0FDYixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQ0wsbUJBQW1CLE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VudFwiPlxuICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG48L2Rpdj5cbjxuZy1jb250YWluZXIgKm5nSWY9XCJfc3VmZml4XCI+XG4gIDxuZy1jb250ZW50IHNlbGVjdD1cIltkYWZmU3VmZml4XVwiPjwvbmctY29udGVudD5cbjwvbmctY29udGFpbmVyPiJdfQ==
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { Component, HostBinding, ChangeDetectionStrategy, } from '@angular/core';
|
2
|
+
import { DaffTabComponent } from '../tab/tab.component';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "../tab/tab.component";
|
5
|
+
/**
|
6
|
+
* DaffTabPanelComponent is used to display the content panel of a tab.
|
7
|
+
*
|
8
|
+
* ```html
|
9
|
+
* <daff-tab-panel>
|
10
|
+
* <!-- Tab panel content goes here -->
|
11
|
+
* </daff-tab-panel>
|
12
|
+
* ```
|
13
|
+
*/
|
14
|
+
export class DaffTabPanelComponent {
|
15
|
+
/**
|
16
|
+
* Dynamically binds the tab panel's id to a unique value generated from the associated tab's panelId.
|
17
|
+
*/
|
18
|
+
get tabPanelId() {
|
19
|
+
return this._id;
|
20
|
+
}
|
21
|
+
constructor(tab) {
|
22
|
+
this.tab = tab;
|
23
|
+
/**
|
24
|
+
* @docs-private
|
25
|
+
*/
|
26
|
+
this.class = true;
|
27
|
+
/**
|
28
|
+
* Sets the `role` to tabpanel.
|
29
|
+
*/
|
30
|
+
this.role = 'tabpanel';
|
31
|
+
/**
|
32
|
+
* `aria-labelledby` for the tab.
|
33
|
+
*/
|
34
|
+
this.ariaLabelledBy = '';
|
35
|
+
/**
|
36
|
+
* Sets the `tabindex` to 0.
|
37
|
+
*/
|
38
|
+
this.tabIndex = '0';
|
39
|
+
this._id = '';
|
40
|
+
/**
|
41
|
+
* Sets the value of `ariaLabelledBy` to the id of the tab component.
|
42
|
+
*/
|
43
|
+
this.ariaLabelledBy = this.tab.id;
|
44
|
+
this._id = this.tab.panelId;
|
45
|
+
}
|
46
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffTabPanelComponent, deps: [{ token: i1.DaffTabComponent }], target: i0.ɵɵFactoryTarget.Component }); }
|
47
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffTabPanelComponent, isStandalone: true, selector: "daff-tab-panel", host: { properties: { "class.daff-tab-panel": "this.class", "attr.role": "this.role", "attr.aria-labelledby": "this.ariaLabelledBy", "attr.tabindex": "this.tabIndex", "attr.id": "this.tabPanelId" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [":host(.daff-tab-panel){display:block;padding:1rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
48
|
+
}
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffTabPanelComponent, decorators: [{
|
50
|
+
type: Component,
|
51
|
+
args: [{ standalone: true, selector: 'daff-tab-panel', template: `<ng-content></ng-content>`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host(.daff-tab-panel){display:block;padding:1rem}\n"] }]
|
52
|
+
}], ctorParameters: () => [{ type: i1.DaffTabComponent }], propDecorators: { class: [{
|
53
|
+
type: HostBinding,
|
54
|
+
args: ['class.daff-tab-panel']
|
55
|
+
}], role: [{
|
56
|
+
type: HostBinding,
|
57
|
+
args: ['attr.role']
|
58
|
+
}], ariaLabelledBy: [{
|
59
|
+
type: HostBinding,
|
60
|
+
args: ['attr.aria-labelledby']
|
61
|
+
}], tabIndex: [{
|
62
|
+
type: HostBinding,
|
63
|
+
args: ['attr.tabindex']
|
64
|
+
}], tabPanelId: [{
|
65
|
+
type: HostBinding,
|
66
|
+
args: ['attr.id']
|
67
|
+
}] } });
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxl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21wb25lbnQuXG4gICAgICovXG4gICAgdGhpcy5hcmlhTGFiZWxsZWRCeSA9IHRoaXMudGFiLmlkO1xuXG4gICAgdGhpcy5faWQgPSB0aGlzLnRhYi5wYW5lbElkO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,161 @@
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
2
|
+
import { Component, HostBinding, ViewEncapsulation, ChangeDetectionStrategy, ContentChildren, QueryList, Input, Output, EventEmitter, ViewChildren, ChangeDetectorRef, } from '@angular/core';
|
3
|
+
import { DaffArticleEncapsulatedDirective } from '@daffodil/design';
|
4
|
+
import { DaffTabComponent } from './tab/tab.component';
|
5
|
+
import { DaffTabActivatorComponent } from './tab-activator/tab-activator.component';
|
6
|
+
import { DaffTabLabelComponent } from './tab-label/tab-label.component';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
import * as i1 from "@daffodil/design";
|
9
|
+
/**
|
10
|
+
* Tabs provide a way to navigate between panels that display related content.
|
11
|
+
*
|
12
|
+
* ## Usage
|
13
|
+
* ```html
|
14
|
+
* <daff-tabs aria-label="List of tabs">
|
15
|
+
* <daff-tab>
|
16
|
+
* <daff-tab-label>
|
17
|
+
* <fa-icon [icon]="faInfoCircle" daffPrefix></fa-icon>
|
18
|
+
* Tab 1
|
19
|
+
* </daff-tab-label>
|
20
|
+
* <daff-tab-panel>
|
21
|
+
* Tab 1 Panel
|
22
|
+
* </daff-tab-panel>
|
23
|
+
* </daff-tab>
|
24
|
+
* <daff-tab>
|
25
|
+
* <daff-tab-label>
|
26
|
+
* Tab 2
|
27
|
+
* <fa-icon [icon]="faInfoCircle" daffSuffix></fa-icon>
|
28
|
+
* </daff-tab-label>
|
29
|
+
* <daff-tab-panel>
|
30
|
+
* Tab 2 Panel
|
31
|
+
* </daff-tab-panel>
|
32
|
+
* </daff-tab>
|
33
|
+
* </daff-tabs>
|
34
|
+
* ```
|
35
|
+
*/
|
36
|
+
export class DaffTabsComponent {
|
37
|
+
constructor(cdRef) {
|
38
|
+
this.cdRef = cdRef;
|
39
|
+
/**
|
40
|
+
* @docs-private
|
41
|
+
*/
|
42
|
+
this.class = true;
|
43
|
+
/**
|
44
|
+
* The tab that is initially selected on initial load. If it's not used, the first tab in the tablist will be selected by default.
|
45
|
+
*/
|
46
|
+
this.initiallySelected = null;
|
47
|
+
/**
|
48
|
+
* @docs-private
|
49
|
+
*/
|
50
|
+
this.externalAriaLabel = null;
|
51
|
+
/**
|
52
|
+
* aria-label for the tab.
|
53
|
+
*/
|
54
|
+
this.ariaLabel = '';
|
55
|
+
/**
|
56
|
+
* Event emitted when tab selection changes.
|
57
|
+
*/
|
58
|
+
this.tabChange = new EventEmitter();
|
59
|
+
}
|
60
|
+
/**
|
61
|
+
* @docs-private
|
62
|
+
*/
|
63
|
+
ngAfterContentInit() {
|
64
|
+
if (this.initiallySelected) {
|
65
|
+
this.selectedTab = this.initiallySelected;
|
66
|
+
}
|
67
|
+
if (!this.selectedTab) {
|
68
|
+
this.selectedTab = this._tabs.first.id;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
/**
|
72
|
+
* Selects a tab and sets focus on the selected tab.
|
73
|
+
*/
|
74
|
+
select(tabId) {
|
75
|
+
const tabActivator = this._tabActivators.find(el => el.tabActivatorId === tabId);
|
76
|
+
if (!tabActivator) {
|
77
|
+
console.warn(`The tab '${tabId}' was not able to be selected because it does not exist. Check the id on your <daff-tab>s.`);
|
78
|
+
return;
|
79
|
+
}
|
80
|
+
this.tabChange.emit(tabId);
|
81
|
+
this.selectedTab = tabId;
|
82
|
+
this.cdRef.markForCheck();
|
83
|
+
tabActivator.focus();
|
84
|
+
}
|
85
|
+
/**
|
86
|
+
* Navigates through the tabs based on the given offset.
|
87
|
+
* Moves forward or backward in the tab array, wrapping around when necessary.
|
88
|
+
*/
|
89
|
+
navigateTabs(offset) {
|
90
|
+
const array = this._tabs.toArray();
|
91
|
+
let selectedIndex = array.findIndex(el => el.id === this.selectedTab);
|
92
|
+
const startingIndex = selectedIndex;
|
93
|
+
let newIndex;
|
94
|
+
do {
|
95
|
+
newIndex = (selectedIndex + offset + array.length) % array.length;
|
96
|
+
selectedIndex = newIndex;
|
97
|
+
} while (array[newIndex].disabled && selectedIndex !== startingIndex); // Skip disabled tabs
|
98
|
+
this.select(array[newIndex].id);
|
99
|
+
}
|
100
|
+
/**
|
101
|
+
* Selects the previous tab and wraps around to the last tab if the first tab is currently selected.
|
102
|
+
*/
|
103
|
+
previous() {
|
104
|
+
this.navigateTabs(-1);
|
105
|
+
}
|
106
|
+
/**
|
107
|
+
* Selects the next tab and wraps around to the first tab if the last tab is currently selected.
|
108
|
+
*/
|
109
|
+
next() {
|
110
|
+
this.navigateTabs(1);
|
111
|
+
}
|
112
|
+
/**
|
113
|
+
* Selects the first tab.
|
114
|
+
*/
|
115
|
+
selectFirst(event) {
|
116
|
+
event.preventDefault();
|
117
|
+
this.select(this._tabs.toArray()[0].id);
|
118
|
+
}
|
119
|
+
/**
|
120
|
+
* Selects the last tab.
|
121
|
+
*/
|
122
|
+
selectLast(event) {
|
123
|
+
event.preventDefault();
|
124
|
+
const array = this._tabs.toArray();
|
125
|
+
this.select(array[array.length - 1].id);
|
126
|
+
}
|
127
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffTabsComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
128
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.2", type: DaffTabsComponent, isStandalone: true, selector: "daff-tabs", inputs: { initiallySelected: "initiallySelected", ariaLabel: ["aria-label", "ariaLabel"] }, outputs: { tabChange: "tabChange" }, host: { properties: { "class.daff-tabs": "this.class", "attr.aria-label": "this.externalAriaLabel" } }, queries: [{ propertyName: "_labels", predicate: DaffTabLabelComponent, descendants: true }, { propertyName: "_tabs", predicate: DaffTabComponent }], viewQueries: [{ propertyName: "_tabActivators", predicate: DaffTabActivatorComponent, descendants: true }], hostDirectives: [{ directive: i1.DaffArticleEncapsulatedDirective }], ngImport: i0, template: "<div class=\"daff-tabs__tab-list\"\n\trole=\"tablist\"\n\t[attr.aria-label]=\"ariaLabel\"\n\t(keydown.home)=\"selectFirst($event)\"\n\t(keydown.end)=\"selectLast($event)\">\n\t@for (tab of _tabs; track tab) {\n\t\t<button daff-tab-activator\n\t\t\t[selected]=\"tab.id === selectedTab\"\n\t\t\t(click)=\"select(tab.id)\"\n\t\t\t[panelId]=\"tab.panelId\"\n\t\t\t[disabled]=\"tab.disabled\"\n\t\t\t[tabActivatorId]=\"tab.id\"\n\t\t\t(keydown.arrowright)=\"next()\"\n\t\t\t(keydown.arrowleft)=\"previous()\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"tab.labelRef\"></ng-container>\n\t\t</button>\n\t}\n</div>\n\n@for (tab of _tabs; track tab) {\n\t@if(tab.id === selectedTab ) {\n\t\t<ng-container *ngTemplateOutlet=\"tab.contentRef\"></ng-container>\n\t}\n}", styles: [":host(.daff-tabs){max-width:100%}.daff-tabs{display:block}.daff-tabs .daff-tabs__tab-list{display:flex;overflow-x:scroll;scrollbar-width:thin}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DaffTabActivatorComponent, selector: "button[daff-tab-activator],a[daff-tab-activator]", inputs: ["selected", "tabActivatorId", "panelId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
129
|
+
}
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffTabsComponent, decorators: [{
|
131
|
+
type: Component,
|
132
|
+
args: [{ standalone: true, selector: 'daff-tabs', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
133
|
+
NgTemplateOutlet,
|
134
|
+
DaffTabActivatorComponent,
|
135
|
+
], hostDirectives: [
|
136
|
+
{ directive: DaffArticleEncapsulatedDirective },
|
137
|
+
], template: "<div class=\"daff-tabs__tab-list\"\n\trole=\"tablist\"\n\t[attr.aria-label]=\"ariaLabel\"\n\t(keydown.home)=\"selectFirst($event)\"\n\t(keydown.end)=\"selectLast($event)\">\n\t@for (tab of _tabs; track tab) {\n\t\t<button daff-tab-activator\n\t\t\t[selected]=\"tab.id === selectedTab\"\n\t\t\t(click)=\"select(tab.id)\"\n\t\t\t[panelId]=\"tab.panelId\"\n\t\t\t[disabled]=\"tab.disabled\"\n\t\t\t[tabActivatorId]=\"tab.id\"\n\t\t\t(keydown.arrowright)=\"next()\"\n\t\t\t(keydown.arrowleft)=\"previous()\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"tab.labelRef\"></ng-container>\n\t\t</button>\n\t}\n</div>\n\n@for (tab of _tabs; track tab) {\n\t@if(tab.id === selectedTab ) {\n\t\t<ng-container *ngTemplateOutlet=\"tab.contentRef\"></ng-container>\n\t}\n}", styles: [":host(.daff-tabs){max-width:100%}.daff-tabs{display:block}.daff-tabs .daff-tabs__tab-list{display:flex;overflow-x:scroll;scrollbar-width:thin}\n"] }]
|
138
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { class: [{
|
139
|
+
type: HostBinding,
|
140
|
+
args: ['class.daff-tabs']
|
141
|
+
}], initiallySelected: [{
|
142
|
+
type: Input
|
143
|
+
}], externalAriaLabel: [{
|
144
|
+
type: HostBinding,
|
145
|
+
args: ['attr.aria-label']
|
146
|
+
}], ariaLabel: [{
|
147
|
+
type: Input,
|
148
|
+
args: ['aria-label']
|
149
|
+
}], tabChange: [{
|
150
|
+
type: Output
|
151
|
+
}], _labels: [{
|
152
|
+
type: ContentChildren,
|
153
|
+
args: [DaffTabLabelComponent, { descendants: true }]
|
154
|
+
}], _tabs: [{
|
155
|
+
type: ContentChildren,
|
156
|
+
args: [DaffTabComponent]
|
157
|
+
}], _tabActivators: [{
|
158
|
+
type: ViewChildren,
|
159
|
+
args: [DaffTabActivatorComponent]
|
160
|
+
}] } });
|
161
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi90YWJzL3NyYy90YWJzL3RhYnMuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vdGFicy9zcmMvdGFicy90YWJzLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ25ELE9BQU8sRUFDTCxTQUFTLEVBQ1QsV0FBVyxFQUNYLGlCQUFpQixFQUNqQix1QkFBdUIsRUFDdkIsZUFBZSxFQUNmLFNBQVMsRUFFVCxLQUFLLEVBQ0wsTUFBTSxFQUNOLFlBQVksRUFDWixZQUFZLEVBQ1osaUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxnQ0FBZ0MsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRXBFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3ZELE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLHlDQUF5QyxDQUFDO0FBQ3BGLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLGlDQUFpQyxDQUFDOzs7QUFFeEU7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBMEJHO0FBaUJILE1BQU0sT0FBTyxpQkFBaUI7SUE4QzVCLFlBQW9CLEtBQ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kXCJcblx0XHRcdChrZXlkb3duLmFycm93cmlnaHQpPVwibmV4dCgpXCJcblx0XHRcdChrZXlkb3duLmFycm93bGVmdCk9XCJwcmV2aW91cygpXCI+XG5cdFx0XHRcdDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJ0YWIubGFiZWxSZWZcIj48L25nLWNvbnRhaW5lcj5cblx0XHQ8L2J1dHRvbj5cblx0fVxuPC9kaXY+XG5cbkBmb3IgKHRhYiBvZiBfdGFiczsgdHJhY2sgdGFiKSB7XG5cdEBpZih0YWIuaWQgPT09IHNlbGVjdGVkVGFiICkge1xuXHRcdDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJ0YWIuY29udGVudFJlZlwiPjwvbmctY29udGFpbmVyPlxuXHR9XG59Il19
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { DaffPrefixSuffixModule } from '@daffodil/design';
|
2
|
+
import { DaffTabComponent } from './tabs/tab/tab.component';
|
3
|
+
import { DaffTabLabelComponent } from './tabs/tab-label/tab-label.component';
|
4
|
+
import { DaffTabPanelComponent } from './tabs/tab-panel/tab-panel.component';
|
5
|
+
import { DaffTabsComponent } from './tabs/tabs.component';
|
6
|
+
export const DAFF_TABS_COMPONENTS = [
|
7
|
+
DaffTabsComponent,
|
8
|
+
DaffTabLabelComponent,
|
9
|
+
DaffTabPanelComponent,
|
10
|
+
DaffPrefixSuffixModule,
|
11
|
+
DaffTabComponent,
|
12
|
+
];
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3RhYnMvc3JjL3RhYnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFMUQsT0F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lbnQsXG5dO1xuIl19
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFmZm9kaWwtZGVzaWduLXRleHQtc25pcHBldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3RleHQtc25pcHBldC9zcmMvZGFmZm9kaWwtZGVzaWduLXRleHQtc25pcHBldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { ChangeDetectionStrategy, Component, } from '@angular/core';
|
2
|
+
import { DaffTextSnippetComponent } from '@daffodil/design/text-snippet';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export class BasicTextSnippetComponent {
|
5
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: BasicTextSnippetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
6
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: BasicTextSnippetComponent, isStandalone: true, selector: "basic-text-snippet", ngImport: i0, template: "<daff-text-snippet>\n\tLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n</daff-text-snippet>", dependencies: [{ kind: "component", type: DaffTextSnippetComponent, selector: "daff-text-snippet", inputs: ["condensed", "html"], outputs: ["toggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
7
|
+
}
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: BasicTextSnippetComponent, decorators: [{
|
9
|
+
type: Component,
|
10
|
+
args: [{ selector: 'basic-text-snippet', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
11
|
+
DaffTextSnippetComponent,
|
12
|
+
], template: "<daff-text-snippet>\n\tLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n</daff-text-snippet>" }]
|
13
|
+
}] });
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzaWMtdGV4dC1zbmlwcGV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3RleHQtc25pcHBldC9leGFtcGxlcy9zcmMvYmFzaWMtdGV4dC1zbmlwcGV0L2Jhc2ljLXRleHQtc25pcHBldC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi90ZXh0LXNuaXBwZXQvZXhhbXBsZXMvc3JjL2Jhc2ljLXRleHQtc25pcHBldC9iYXNpYy10ZXh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C1leGFtcGxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './public_api';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi90ZXh0LXNuaXBwZXQvZXhhbXBsZXMvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { BasicTextSnippetComponent } from './basic-text-snippet/basic-text-snippet.component';
|
2
|
+
export const TEXT_SNIPPET_EXAMPLES = [
|
3
|
+
BasicTextSnippetComponent,
|
4
|
+
];
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3RleHQtc25pcHBldC9leGFtcGxlcy9zcmMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxtREFBbUQsQ0FBQztBQUU5RixNQUFNLENBQUMsTUFBTSxxQkFBcUIsR0FBRztJQUNuQyx5QkFBeUI7Q0FDMUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2ljVGV4dFNuaXBwZXRDb21wb25lbnQgfSBmcm9tICcuL2Jhc2ljLXRleHQtc25pcHBldC9iYXNpYy10ZXh0LXNuaXBwZXQuY29tcG9uZW50JztcblxuZXhwb3J0IGNvbnN0IFRFWFRfU05JUFBFVF9FWEFNUExFUyA9IFtcbiAgQmFzaWNUZXh0U25pcHBldENvbXBvbmVudCxcbl07XG4iXX0=
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './public_api';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi90ZXh0LXNuaXBwZXQvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './text-snippet.component';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3RleHQtc25pcHBldC9zcmMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi90ZXh0LXNuaXBwZXQuY29tcG9uZW50JztcbiJdfQ==
|