@daffodil/design 0.68.1 → 0.70.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/atoms/progress-indicator/progress-indicator.component.d.ts +2 -1
- package/esm2022/atoms/progress-indicator/progress-indicator.component.mjs +3 -2
- package/esm2022/progress-bar/animation/progress-bar-animation.mjs +9 -0
- package/esm2022/progress-bar/daffodil-design-progress-bar.mjs +5 -0
- package/esm2022/progress-bar/examples/daffodil-design-progress-bar-examples.mjs +5 -0
- package/esm2022/progress-bar/examples/index.mjs +2 -0
- package/esm2022/progress-bar/examples/progress-bar-default/progress-bar-default.component.mjs +12 -0
- package/esm2022/progress-bar/examples/progress-bar-default/progress-bar-default.module.mjs +24 -0
- package/esm2022/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.component.mjs +12 -0
- package/esm2022/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.module.mjs +24 -0
- package/esm2022/progress-bar/examples/progress-bar-themes/progress-bar-themes.component.mjs +18 -0
- package/esm2022/progress-bar/examples/progress-bar-themes/progress-bar-themes.module.mjs +28 -0
- package/esm2022/progress-bar/examples/public_api.mjs +12 -0
- package/esm2022/progress-bar/progress-bar.component.mjs +142 -0
- package/esm2022/progress-bar/progress-bar.module.mjs +24 -0
- package/esm2022/progress-bar/public_api.mjs +3 -0
- package/esm2022/public_api.mjs +1 -2
- package/esm2022/sidebar/public_api.mjs +2 -1
- package/esm2022/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +12 -4
- package/esm2022/sidebar/sidebar-viewport-backdrop/animation/backdrop-animation-state.mjs +2 -0
- package/esm2022/sidebar/sidebar-viewport-backdrop/animation/backdrop-animation.mjs +20 -0
- package/esm2022/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.mjs +91 -0
- package/esm2022/sidebar/sidebar.module.mjs +10 -9
- package/esm2022/tree/examples/basic-tree/basic-tree.component.mjs +1 -1
- package/esm2022/tree/interfaces/tree-render-mode.mjs +2 -0
- package/esm2022/tree/public_api.mjs +2 -1
- package/esm2022/tree/tree/tree.component.mjs +43 -36
- package/esm2022/tree/utils/flatten-tree.mjs +26 -14
- package/esm2022/tree/utils/transform.mjs +25 -0
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +113 -0
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-progress-bar.mjs +178 -0
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -0
- package/fesm2022/daffodil-design-sidebar.mjs +131 -14
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +1 -1
- package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +92 -48
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +3 -126
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/package.json +1 -1
- package/progress-bar/README.md +27 -0
- package/progress-bar/animation/progress-bar-animation.d.ts +4 -0
- package/progress-bar/examples/index.d.ts +1 -0
- package/progress-bar/examples/progress-bar-default/progress-bar-default.component.d.ts +5 -0
- package/progress-bar/examples/progress-bar-default/progress-bar-default.module.d.ts +8 -0
- package/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.component.d.ts +5 -0
- package/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.module.d.ts +8 -0
- package/progress-bar/examples/progress-bar-themes/progress-bar-themes.component.d.ts +9 -0
- package/progress-bar/examples/progress-bar-themes/progress-bar-themes.module.d.ts +9 -0
- package/progress-bar/examples/public_api.d.ts +2 -0
- package/progress-bar/index.d.ts +5 -0
- package/progress-bar/progress-bar.component.d.ts +76 -0
- package/progress-bar/progress-bar.module.d.ts +8 -0
- package/progress-bar/public_api.d.ts +2 -0
- package/progress-bar/src/progress-bar-theme.scss +68 -0
- package/public_api.d.ts +0 -1
- package/scss/theme.scss +2 -0
- package/sidebar/public_api.d.ts +1 -0
- package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +3 -2
- package/sidebar/sidebar-viewport-backdrop/animation/backdrop-animation-state.d.ts +2 -0
- package/{molecules/backdrop → sidebar/sidebar-viewport-backdrop}/animation/backdrop-animation.d.ts +1 -1
- package/{molecules/backdrop/backdrop/backdrop.component.d.ts → sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.d.ts} +5 -5
- package/sidebar/sidebar.module.d.ts +4 -4
- package/tree/README.md +1 -3
- package/tree/interfaces/tree-render-mode.d.ts +6 -0
- package/tree/public_api.d.ts +2 -0
- package/tree/tree/tree.component.d.ts +33 -11
- package/tree/utils/flatten-tree.d.ts +2 -1
- package/tree/utils/transform.d.ts +13 -0
- package/esm2022/molecules/backdrop/animation/backdrop-animation-state.mjs +0 -2
- package/esm2022/molecules/backdrop/animation/backdrop-animation.mjs +0 -20
- package/esm2022/molecules/backdrop/backdrop/backdrop.component.mjs +0 -87
- package/esm2022/molecules/backdrop/backdrop.module.mjs +0 -24
- package/esm2022/molecules/backdrop/public_api.mjs +0 -3
- package/molecules/backdrop/animation/backdrop-animation-state.d.ts +0 -2
- package/molecules/backdrop/backdrop.module.d.ts +0 -8
- package/molecules/backdrop/public_api.d.ts +0 -2
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.68.1","author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","description":"A consistent, sane api driver that works with different ecommerce systems.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"peerDependencies":{"@angular/animations":"^17.0.0","@angular/common":"^17.0.0","@angular/core":"^17.0.0","@angular/forms":"^17.0.0","@angular/cdk":"^17.0.0","@daffodil/core":"0.68.1","@fortawesome/angular-fontawesome":"^0.14.1","@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/free-brands-svg-icons":"^6.4.2","@fortawesome/free-regular-svg-icons":"^6.4.2","modern-normalize":"^0.5.0","rxjs":"7.8.1"},"optionalDependencies":{"@faker-js/faker":"^7.6.0"},"exports":{"./scss/daff-global":{"sass":"./scss/daff-global.scss"},"./scss/global":{"sass":"./scss/global.scss"},"./scss/theme":{"sass":"./scss/theme.scss"},"./scss/daff-util":{"sass":"./scss/daff-util.scss"},"./scss/utilities":{"sass":"./scss/utilities.scss"},"./scss/daff-typography":{"sass":"./scss/daff-typography.scss"},"./scss/typography/classes":{"sass":"./scss/typography/_classes.scss"},"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/daffodil-design.mjs","esm":"./esm2022/daffodil-design.mjs","default":"./fesm2022/daffodil-design.mjs"},"./accordion":{"types":"./accordion/index.d.ts","esm2022":"./esm2022/accordion/daffodil-design-accordion.mjs","esm":"./esm2022/accordion/daffodil-design-accordion.mjs","default":"./fesm2022/daffodil-design-accordion.mjs"},"./article":{"types":"./article/index.d.ts","esm2022":"./esm2022/article/daffodil-design-article.mjs","esm":"./esm2022/article/daffodil-design-article.mjs","default":"./fesm2022/daffodil-design-article.mjs"},"./button":{"types":"./button/index.d.ts","esm2022":"./esm2022/button/daffodil-design-button.mjs","esm":"./esm2022/button/daffodil-design-button.mjs","default":"./fesm2022/daffodil-design-button.mjs"},"./callout":{"types":"./callout/index.d.ts","esm2022":"./esm2022/callout/daffodil-design-callout.mjs","esm":"./esm2022/callout/daffodil-design-callout.mjs","default":"./fesm2022/daffodil-design-callout.mjs"},"./card":{"types":"./card/index.d.ts","esm2022":"./esm2022/card/daffodil-design-card.mjs","esm":"./esm2022/card/daffodil-design-card.mjs","default":"./fesm2022/daffodil-design-card.mjs"},"./container":{"types":"./container/index.d.ts","esm2022":"./esm2022/container/daffodil-design-container.mjs","esm":"./esm2022/container/daffodil-design-container.mjs","default":"./fesm2022/daffodil-design-container.mjs"},"./hero":{"types":"./hero/index.d.ts","esm2022":"./esm2022/hero/daffodil-design-hero.mjs","esm":"./esm2022/hero/daffodil-design-hero.mjs","default":"./fesm2022/daffodil-design-hero.mjs"},"./image":{"types":"./image/index.d.ts","esm2022":"./esm2022/image/daffodil-design-image.mjs","esm":"./esm2022/image/daffodil-design-image.mjs","default":"./fesm2022/daffodil-design-image.mjs"},"./link-set":{"types":"./link-set/index.d.ts","esm2022":"./esm2022/link-set/daffodil-design-link-set.mjs","esm":"./esm2022/link-set/daffodil-design-link-set.mjs","default":"./fesm2022/daffodil-design-link-set.mjs"},"./list":{"types":"./list/index.d.ts","esm2022":"./esm2022/list/daffodil-design-list.mjs","esm":"./esm2022/list/daffodil-design-list.mjs","default":"./fesm2022/daffodil-design-list.mjs"},"./loading-icon":{"types":"./loading-icon/index.d.ts","esm2022":"./esm2022/loading-icon/daffodil-design-loading-icon.mjs","esm":"./esm2022/loading-icon/daffodil-design-loading-icon.mjs","default":"./fesm2022/daffodil-design-loading-icon.mjs"},"./media-gallery":{"types":"./media-gallery/index.d.ts","esm2022":"./esm2022/media-gallery/daffodil-design-media-gallery.mjs","esm":"./esm2022/media-gallery/daffodil-design-media-gallery.mjs","default":"./fesm2022/daffodil-design-media-gallery.mjs"},"./menu":{"types":"./menu/index.d.ts","esm2022":"./esm2022/menu/daffodil-design-menu.mjs","esm":"./esm2022/menu/daffodil-design-menu.mjs","default":"./fesm2022/daffodil-design-menu.mjs"},"./modal":{"types":"./modal/index.d.ts","esm2022":"./esm2022/modal/daffodil-design-modal.mjs","esm":"./esm2022/modal/daffodil-design-modal.mjs","default":"./fesm2022/daffodil-design-modal.mjs"},"./navbar":{"types":"./navbar/index.d.ts","esm2022":"./esm2022/navbar/daffodil-design-navbar.mjs","esm":"./esm2022/navbar/daffodil-design-navbar.mjs","default":"./fesm2022/daffodil-design-navbar.mjs"},"./notification":{"types":"./notification/index.d.ts","esm2022":"./esm2022/notification/daffodil-design-notification.mjs","esm":"./esm2022/notification/daffodil-design-notification.mjs","default":"./fesm2022/daffodil-design-notification.mjs"},"./paginator":{"types":"./paginator/index.d.ts","esm2022":"./esm2022/paginator/daffodil-design-paginator.mjs","esm":"./esm2022/paginator/daffodil-design-paginator.mjs","default":"./fesm2022/daffodil-design-paginator.mjs"},"./sidebar":{"types":"./sidebar/index.d.ts","esm2022":"./esm2022/sidebar/daffodil-design-sidebar.mjs","esm":"./esm2022/sidebar/daffodil-design-sidebar.mjs","default":"./fesm2022/daffodil-design-sidebar.mjs"},"./toast":{"types":"./toast/index.d.ts","esm2022":"./esm2022/toast/daffodil-design-toast.mjs","esm":"./esm2022/toast/daffodil-design-toast.mjs","default":"./fesm2022/daffodil-design-toast.mjs"},"./tree":{"types":"./tree/index.d.ts","esm2022":"./esm2022/tree/daffodil-design-tree.mjs","esm":"./esm2022/tree/daffodil-design-tree.mjs","default":"./fesm2022/daffodil-design-tree.mjs"},"./accordion/examples":{"types":"./accordion/examples/index.d.ts","esm2022":"./esm2022/accordion/examples/daffodil-design-accordion-examples.mjs","esm":"./esm2022/accordion/examples/daffodil-design-accordion-examples.mjs","default":"./fesm2022/daffodil-design-accordion-examples.mjs"},"./article/examples":{"types":"./article/examples/index.d.ts","esm2022":"./esm2022/article/examples/daffodil-design-article-examples.mjs","esm":"./esm2022/article/examples/daffodil-design-article-examples.mjs","default":"./fesm2022/daffodil-design-article-examples.mjs"},"./button/examples":{"types":"./button/examples/index.d.ts","esm2022":"./esm2022/button/examples/daffodil-design-button-examples.mjs","esm":"./esm2022/button/examples/daffodil-design-button-examples.mjs","default":"./fesm2022/daffodil-design-button-examples.mjs"},"./callout/examples":{"types":"./callout/examples/index.d.ts","esm2022":"./esm2022/callout/examples/daffodil-design-callout-examples.mjs","esm":"./esm2022/callout/examples/daffodil-design-callout-examples.mjs","default":"./fesm2022/daffodil-design-callout-examples.mjs"},"./card/examples":{"types":"./card/examples/index.d.ts","esm2022":"./esm2022/card/examples/daffodil-design-card-examples.mjs","esm":"./esm2022/card/examples/daffodil-design-card-examples.mjs","default":"./fesm2022/daffodil-design-card-examples.mjs"},"./checkbox/examples":{"types":"./checkbox/examples/index.d.ts","esm2022":"./esm2022/checkbox/examples/daffodil-design-checkbox-examples.mjs","esm":"./esm2022/checkbox/examples/daffodil-design-checkbox-examples.mjs","default":"./fesm2022/daffodil-design-checkbox-examples.mjs"},"./container/examples":{"types":"./container/examples/index.d.ts","esm2022":"./esm2022/container/examples/daffodil-design-container-examples.mjs","esm":"./esm2022/container/examples/daffodil-design-container-examples.mjs","default":"./fesm2022/daffodil-design-container-examples.mjs"},"./hero/examples":{"types":"./hero/examples/index.d.ts","esm2022":"./esm2022/hero/examples/daffodil-design-hero-examples.mjs","esm":"./esm2022/hero/examples/daffodil-design-hero-examples.mjs","default":"./fesm2022/daffodil-design-hero-examples.mjs"},"./image/examples":{"types":"./image/examples/index.d.ts","esm2022":"./esm2022/image/examples/daffodil-design-image-examples.mjs","esm":"./esm2022/image/examples/daffodil-design-image-examples.mjs","default":"./fesm2022/daffodil-design-image-examples.mjs"},"./input/examples":{"types":"./input/examples/index.d.ts","esm2022":"./esm2022/input/examples/daffodil-design-input-examples.mjs","esm":"./esm2022/input/examples/daffodil-design-input-examples.mjs","default":"./fesm2022/daffodil-design-input-examples.mjs"},"./list/examples":{"types":"./list/examples/index.d.ts","esm2022":"./esm2022/list/examples/daffodil-design-list-examples.mjs","esm":"./esm2022/list/examples/daffodil-design-list-examples.mjs","default":"./fesm2022/daffodil-design-list-examples.mjs"},"./loading-icon/examples":{"types":"./loading-icon/examples/index.d.ts","esm2022":"./esm2022/loading-icon/examples/daffodil-design-loading-icon-examples.mjs","esm":"./esm2022/loading-icon/examples/daffodil-design-loading-icon-examples.mjs","default":"./fesm2022/daffodil-design-loading-icon-examples.mjs"},"./media-gallery/examples":{"types":"./media-gallery/examples/index.d.ts","esm2022":"./esm2022/media-gallery/examples/daffodil-design-media-gallery-examples.mjs","esm":"./esm2022/media-gallery/examples/daffodil-design-media-gallery-examples.mjs","default":"./fesm2022/daffodil-design-media-gallery-examples.mjs"},"./menu/examples":{"types":"./menu/examples/index.d.ts","esm2022":"./esm2022/menu/examples/daffodil-design-menu-examples.mjs","esm":"./esm2022/menu/examples/daffodil-design-menu-examples.mjs","default":"./fesm2022/daffodil-design-menu-examples.mjs"},"./modal/examples":{"types":"./modal/examples/index.d.ts","esm2022":"./esm2022/modal/examples/daffodil-design-modal-examples.mjs","esm":"./esm2022/modal/examples/daffodil-design-modal-examples.mjs","default":"./fesm2022/daffodil-design-modal-examples.mjs"},"./navbar/examples":{"types":"./navbar/examples/index.d.ts","esm2022":"./esm2022/navbar/examples/daffodil-design-navbar-examples.mjs","esm":"./esm2022/navbar/examples/daffodil-design-navbar-examples.mjs","default":"./fesm2022/daffodil-design-navbar-examples.mjs"},"./notification/examples":{"types":"./notification/examples/index.d.ts","esm2022":"./esm2022/notification/examples/daffodil-design-notification-examples.mjs","esm":"./esm2022/notification/examples/daffodil-design-notification-examples.mjs","default":"./fesm2022/daffodil-design-notification-examples.mjs"},"./paginator/examples":{"types":"./paginator/examples/index.d.ts","esm2022":"./esm2022/paginator/examples/daffodil-design-paginator-examples.mjs","esm":"./esm2022/paginator/examples/daffodil-design-paginator-examples.mjs","default":"./fesm2022/daffodil-design-paginator-examples.mjs"},"./quantity-field/examples":{"types":"./quantity-field/examples/index.d.ts","esm2022":"./esm2022/quantity-field/examples/daffodil-design-quantity-field-examples.mjs","esm":"./esm2022/quantity-field/examples/daffodil-design-quantity-field-examples.mjs","default":"./fesm2022/daffodil-design-quantity-field-examples.mjs"},"./radio/examples":{"types":"./radio/examples/index.d.ts","esm2022":"./esm2022/radio/examples/daffodil-design-radio-examples.mjs","esm":"./esm2022/radio/examples/daffodil-design-radio-examples.mjs","default":"./fesm2022/daffodil-design-radio-examples.mjs"},"./sidebar/examples":{"types":"./sidebar/examples/index.d.ts","esm2022":"./esm2022/sidebar/examples/daffodil-design-sidebar-examples.mjs","esm":"./esm2022/sidebar/examples/daffodil-design-sidebar-examples.mjs","default":"./fesm2022/daffodil-design-sidebar-examples.mjs"},"./toast/examples":{"types":"./toast/examples/index.d.ts","esm2022":"./esm2022/toast/examples/daffodil-design-toast-examples.mjs","esm":"./esm2022/toast/examples/daffodil-design-toast-examples.mjs","default":"./fesm2022/daffodil-design-toast-examples.mjs"},"./tree/examples":{"types":"./tree/examples/index.d.ts","esm2022":"./esm2022/tree/examples/daffodil-design-tree-examples.mjs","esm":"./esm2022/tree/examples/daffodil-design-tree-examples.mjs","default":"./fesm2022/daffodil-design-tree-examples.mjs"}},"module":"fesm2022/daffodil-design.mjs","typings":"index.d.ts","sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
|
1
|
+
{"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.70.0","author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","description":"A consistent, sane api driver that works with different ecommerce systems.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"peerDependencies":{"@angular/animations":"^17.0.0","@angular/common":"^17.0.0","@angular/core":"^17.0.0","@angular/forms":"^17.0.0","@angular/cdk":"^17.0.0","@daffodil/core":"0.70.0","@fortawesome/angular-fontawesome":"^0.14.1","@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/free-brands-svg-icons":"^6.4.2","@fortawesome/free-regular-svg-icons":"^6.4.2","modern-normalize":"^0.5.0","rxjs":"7.8.1"},"optionalDependencies":{"@faker-js/faker":"^7.6.0"},"exports":{"./scss/daff-global":{"sass":"./scss/daff-global.scss"},"./scss/global":{"sass":"./scss/global.scss"},"./scss/theme":{"sass":"./scss/theme.scss"},"./scss/daff-util":{"sass":"./scss/daff-util.scss"},"./scss/utilities":{"sass":"./scss/utilities.scss"},"./scss/daff-typography":{"sass":"./scss/daff-typography.scss"},"./scss/typography/classes":{"sass":"./scss/typography/_classes.scss"},"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/daffodil-design.mjs","esm":"./esm2022/daffodil-design.mjs","default":"./fesm2022/daffodil-design.mjs"},"./accordion":{"types":"./accordion/index.d.ts","esm2022":"./esm2022/accordion/daffodil-design-accordion.mjs","esm":"./esm2022/accordion/daffodil-design-accordion.mjs","default":"./fesm2022/daffodil-design-accordion.mjs"},"./article":{"types":"./article/index.d.ts","esm2022":"./esm2022/article/daffodil-design-article.mjs","esm":"./esm2022/article/daffodil-design-article.mjs","default":"./fesm2022/daffodil-design-article.mjs"},"./button":{"types":"./button/index.d.ts","esm2022":"./esm2022/button/daffodil-design-button.mjs","esm":"./esm2022/button/daffodil-design-button.mjs","default":"./fesm2022/daffodil-design-button.mjs"},"./callout":{"types":"./callout/index.d.ts","esm2022":"./esm2022/callout/daffodil-design-callout.mjs","esm":"./esm2022/callout/daffodil-design-callout.mjs","default":"./fesm2022/daffodil-design-callout.mjs"},"./card":{"types":"./card/index.d.ts","esm2022":"./esm2022/card/daffodil-design-card.mjs","esm":"./esm2022/card/daffodil-design-card.mjs","default":"./fesm2022/daffodil-design-card.mjs"},"./container":{"types":"./container/index.d.ts","esm2022":"./esm2022/container/daffodil-design-container.mjs","esm":"./esm2022/container/daffodil-design-container.mjs","default":"./fesm2022/daffodil-design-container.mjs"},"./hero":{"types":"./hero/index.d.ts","esm2022":"./esm2022/hero/daffodil-design-hero.mjs","esm":"./esm2022/hero/daffodil-design-hero.mjs","default":"./fesm2022/daffodil-design-hero.mjs"},"./image":{"types":"./image/index.d.ts","esm2022":"./esm2022/image/daffodil-design-image.mjs","esm":"./esm2022/image/daffodil-design-image.mjs","default":"./fesm2022/daffodil-design-image.mjs"},"./link-set":{"types":"./link-set/index.d.ts","esm2022":"./esm2022/link-set/daffodil-design-link-set.mjs","esm":"./esm2022/link-set/daffodil-design-link-set.mjs","default":"./fesm2022/daffodil-design-link-set.mjs"},"./list":{"types":"./list/index.d.ts","esm2022":"./esm2022/list/daffodil-design-list.mjs","esm":"./esm2022/list/daffodil-design-list.mjs","default":"./fesm2022/daffodil-design-list.mjs"},"./loading-icon":{"types":"./loading-icon/index.d.ts","esm2022":"./esm2022/loading-icon/daffodil-design-loading-icon.mjs","esm":"./esm2022/loading-icon/daffodil-design-loading-icon.mjs","default":"./fesm2022/daffodil-design-loading-icon.mjs"},"./media-gallery":{"types":"./media-gallery/index.d.ts","esm2022":"./esm2022/media-gallery/daffodil-design-media-gallery.mjs","esm":"./esm2022/media-gallery/daffodil-design-media-gallery.mjs","default":"./fesm2022/daffodil-design-media-gallery.mjs"},"./menu":{"types":"./menu/index.d.ts","esm2022":"./esm2022/menu/daffodil-design-menu.mjs","esm":"./esm2022/menu/daffodil-design-menu.mjs","default":"./fesm2022/daffodil-design-menu.mjs"},"./modal":{"types":"./modal/index.d.ts","esm2022":"./esm2022/modal/daffodil-design-modal.mjs","esm":"./esm2022/modal/daffodil-design-modal.mjs","default":"./fesm2022/daffodil-design-modal.mjs"},"./navbar":{"types":"./navbar/index.d.ts","esm2022":"./esm2022/navbar/daffodil-design-navbar.mjs","esm":"./esm2022/navbar/daffodil-design-navbar.mjs","default":"./fesm2022/daffodil-design-navbar.mjs"},"./notification":{"types":"./notification/index.d.ts","esm2022":"./esm2022/notification/daffodil-design-notification.mjs","esm":"./esm2022/notification/daffodil-design-notification.mjs","default":"./fesm2022/daffodil-design-notification.mjs"},"./paginator":{"types":"./paginator/index.d.ts","esm2022":"./esm2022/paginator/daffodil-design-paginator.mjs","esm":"./esm2022/paginator/daffodil-design-paginator.mjs","default":"./fesm2022/daffodil-design-paginator.mjs"},"./progress-bar":{"types":"./progress-bar/index.d.ts","esm2022":"./esm2022/progress-bar/daffodil-design-progress-bar.mjs","esm":"./esm2022/progress-bar/daffodil-design-progress-bar.mjs","default":"./fesm2022/daffodil-design-progress-bar.mjs"},"./sidebar":{"types":"./sidebar/index.d.ts","esm2022":"./esm2022/sidebar/daffodil-design-sidebar.mjs","esm":"./esm2022/sidebar/daffodil-design-sidebar.mjs","default":"./fesm2022/daffodil-design-sidebar.mjs"},"./toast":{"types":"./toast/index.d.ts","esm2022":"./esm2022/toast/daffodil-design-toast.mjs","esm":"./esm2022/toast/daffodil-design-toast.mjs","default":"./fesm2022/daffodil-design-toast.mjs"},"./tree":{"types":"./tree/index.d.ts","esm2022":"./esm2022/tree/daffodil-design-tree.mjs","esm":"./esm2022/tree/daffodil-design-tree.mjs","default":"./fesm2022/daffodil-design-tree.mjs"},"./accordion/examples":{"types":"./accordion/examples/index.d.ts","esm2022":"./esm2022/accordion/examples/daffodil-design-accordion-examples.mjs","esm":"./esm2022/accordion/examples/daffodil-design-accordion-examples.mjs","default":"./fesm2022/daffodil-design-accordion-examples.mjs"},"./article/examples":{"types":"./article/examples/index.d.ts","esm2022":"./esm2022/article/examples/daffodil-design-article-examples.mjs","esm":"./esm2022/article/examples/daffodil-design-article-examples.mjs","default":"./fesm2022/daffodil-design-article-examples.mjs"},"./button/examples":{"types":"./button/examples/index.d.ts","esm2022":"./esm2022/button/examples/daffodil-design-button-examples.mjs","esm":"./esm2022/button/examples/daffodil-design-button-examples.mjs","default":"./fesm2022/daffodil-design-button-examples.mjs"},"./callout/examples":{"types":"./callout/examples/index.d.ts","esm2022":"./esm2022/callout/examples/daffodil-design-callout-examples.mjs","esm":"./esm2022/callout/examples/daffodil-design-callout-examples.mjs","default":"./fesm2022/daffodil-design-callout-examples.mjs"},"./checkbox/examples":{"types":"./checkbox/examples/index.d.ts","esm2022":"./esm2022/checkbox/examples/daffodil-design-checkbox-examples.mjs","esm":"./esm2022/checkbox/examples/daffodil-design-checkbox-examples.mjs","default":"./fesm2022/daffodil-design-checkbox-examples.mjs"},"./card/examples":{"types":"./card/examples/index.d.ts","esm2022":"./esm2022/card/examples/daffodil-design-card-examples.mjs","esm":"./esm2022/card/examples/daffodil-design-card-examples.mjs","default":"./fesm2022/daffodil-design-card-examples.mjs"},"./container/examples":{"types":"./container/examples/index.d.ts","esm2022":"./esm2022/container/examples/daffodil-design-container-examples.mjs","esm":"./esm2022/container/examples/daffodil-design-container-examples.mjs","default":"./fesm2022/daffodil-design-container-examples.mjs"},"./hero/examples":{"types":"./hero/examples/index.d.ts","esm2022":"./esm2022/hero/examples/daffodil-design-hero-examples.mjs","esm":"./esm2022/hero/examples/daffodil-design-hero-examples.mjs","default":"./fesm2022/daffodil-design-hero-examples.mjs"},"./image/examples":{"types":"./image/examples/index.d.ts","esm2022":"./esm2022/image/examples/daffodil-design-image-examples.mjs","esm":"./esm2022/image/examples/daffodil-design-image-examples.mjs","default":"./fesm2022/daffodil-design-image-examples.mjs"},"./input/examples":{"types":"./input/examples/index.d.ts","esm2022":"./esm2022/input/examples/daffodil-design-input-examples.mjs","esm":"./esm2022/input/examples/daffodil-design-input-examples.mjs","default":"./fesm2022/daffodil-design-input-examples.mjs"},"./list/examples":{"types":"./list/examples/index.d.ts","esm2022":"./esm2022/list/examples/daffodil-design-list-examples.mjs","esm":"./esm2022/list/examples/daffodil-design-list-examples.mjs","default":"./fesm2022/daffodil-design-list-examples.mjs"},"./loading-icon/examples":{"types":"./loading-icon/examples/index.d.ts","esm2022":"./esm2022/loading-icon/examples/daffodil-design-loading-icon-examples.mjs","esm":"./esm2022/loading-icon/examples/daffodil-design-loading-icon-examples.mjs","default":"./fesm2022/daffodil-design-loading-icon-examples.mjs"},"./media-gallery/examples":{"types":"./media-gallery/examples/index.d.ts","esm2022":"./esm2022/media-gallery/examples/daffodil-design-media-gallery-examples.mjs","esm":"./esm2022/media-gallery/examples/daffodil-design-media-gallery-examples.mjs","default":"./fesm2022/daffodil-design-media-gallery-examples.mjs"},"./menu/examples":{"types":"./menu/examples/index.d.ts","esm2022":"./esm2022/menu/examples/daffodil-design-menu-examples.mjs","esm":"./esm2022/menu/examples/daffodil-design-menu-examples.mjs","default":"./fesm2022/daffodil-design-menu-examples.mjs"},"./modal/examples":{"types":"./modal/examples/index.d.ts","esm2022":"./esm2022/modal/examples/daffodil-design-modal-examples.mjs","esm":"./esm2022/modal/examples/daffodil-design-modal-examples.mjs","default":"./fesm2022/daffodil-design-modal-examples.mjs"},"./navbar/examples":{"types":"./navbar/examples/index.d.ts","esm2022":"./esm2022/navbar/examples/daffodil-design-navbar-examples.mjs","esm":"./esm2022/navbar/examples/daffodil-design-navbar-examples.mjs","default":"./fesm2022/daffodil-design-navbar-examples.mjs"},"./notification/examples":{"types":"./notification/examples/index.d.ts","esm2022":"./esm2022/notification/examples/daffodil-design-notification-examples.mjs","esm":"./esm2022/notification/examples/daffodil-design-notification-examples.mjs","default":"./fesm2022/daffodil-design-notification-examples.mjs"},"./paginator/examples":{"types":"./paginator/examples/index.d.ts","esm2022":"./esm2022/paginator/examples/daffodil-design-paginator-examples.mjs","esm":"./esm2022/paginator/examples/daffodil-design-paginator-examples.mjs","default":"./fesm2022/daffodil-design-paginator-examples.mjs"},"./progress-bar/examples":{"types":"./progress-bar/examples/index.d.ts","esm2022":"./esm2022/progress-bar/examples/daffodil-design-progress-bar-examples.mjs","esm":"./esm2022/progress-bar/examples/daffodil-design-progress-bar-examples.mjs","default":"./fesm2022/daffodil-design-progress-bar-examples.mjs"},"./quantity-field/examples":{"types":"./quantity-field/examples/index.d.ts","esm2022":"./esm2022/quantity-field/examples/daffodil-design-quantity-field-examples.mjs","esm":"./esm2022/quantity-field/examples/daffodil-design-quantity-field-examples.mjs","default":"./fesm2022/daffodil-design-quantity-field-examples.mjs"},"./radio/examples":{"types":"./radio/examples/index.d.ts","esm2022":"./esm2022/radio/examples/daffodil-design-radio-examples.mjs","esm":"./esm2022/radio/examples/daffodil-design-radio-examples.mjs","default":"./fesm2022/daffodil-design-radio-examples.mjs"},"./sidebar/examples":{"types":"./sidebar/examples/index.d.ts","esm2022":"./esm2022/sidebar/examples/daffodil-design-sidebar-examples.mjs","esm":"./esm2022/sidebar/examples/daffodil-design-sidebar-examples.mjs","default":"./fesm2022/daffodil-design-sidebar-examples.mjs"},"./toast/examples":{"types":"./toast/examples/index.d.ts","esm2022":"./esm2022/toast/examples/daffodil-design-toast-examples.mjs","esm":"./esm2022/toast/examples/daffodil-design-toast-examples.mjs","default":"./fesm2022/daffodil-design-toast-examples.mjs"},"./tree/examples":{"types":"./tree/examples/index.d.ts","esm2022":"./esm2022/tree/examples/daffodil-design-tree-examples.mjs","esm":"./esm2022/tree/examples/daffodil-design-tree-examples.mjs","default":"./fesm2022/daffodil-design-tree-examples.mjs"}},"module":"fesm2022/daffodil-design.mjs","typings":"index.d.ts","sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Progress Bar
|
2
|
+
A progress bar provides visual feedback about the duration or progress of a task or operation.
|
3
|
+
|
4
|
+
## Types
|
5
|
+
There are two types of progress bars: `determinate` and `indeterminate`. They are `determinate` by default.
|
6
|
+
|
7
|
+
### Determinate
|
8
|
+
Determinate progress bars should be used when the percentage of a task or operation is known.
|
9
|
+
|
10
|
+
<design-land-example-viewer-container example="progress-bar-default"></design-land-example-viewer-container>
|
11
|
+
|
12
|
+
### Indeterminate
|
13
|
+
Indeterminate progress bars should be used when the loading percentage of a task or operation is unknown or cannot be calculated.
|
14
|
+
|
15
|
+
<design-land-example-viewer-container example="progress-bar-indeterminate"></design-land-example-viewer-container>
|
16
|
+
|
17
|
+
## Theming
|
18
|
+
The progress bar color is defined by using the `color` property. By default, the color is set to `primary`. This can be changed to one of the supported colors.
|
19
|
+
|
20
|
+
Supported colors: `primary | secondary | tertiary | theme | theme-contrast | white | black`
|
21
|
+
|
22
|
+
> `theme`, `theme-contrast`, `white`, and `black` should be used with caution to ensure that there is sufficient contrast.
|
23
|
+
|
24
|
+
<design-land-example-viewer-container example="progress-bar-themes"></design-land-example-viewer-container>
|
25
|
+
|
26
|
+
## Accessibility
|
27
|
+
The progress bar component works with the ARIA `role="progressbar"` to provide an accessible experience. A Label should always be provided by using `label[daffFormLabel]`, `aria-label`, or `aria-labelledby`.
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './public_api';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class ProgressBarDefaultComponent {
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarDefaultComponent, never>;
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarDefaultComponent, "progress-bar-default", never, {}, {}, never, never, false, never>;
|
5
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./progress-bar-default.component";
|
3
|
+
import * as i2 from "@daffodil/design/progress-bar";
|
4
|
+
export declare class ProgressBarDefaultComponentModule {
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarDefaultComponentModule, never>;
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ProgressBarDefaultComponentModule, [typeof i1.ProgressBarDefaultComponent], [typeof i2.DaffProgressBarModule], [typeof i1.ProgressBarDefaultComponent]>;
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ProgressBarDefaultComponentModule>;
|
8
|
+
}
|
package/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.component.d.ts
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class ProgressBarIndeterminateComponent {
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarIndeterminateComponent, never>;
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarIndeterminateComponent, "progress-bar-indeterminate", never, {}, {}, never, never, false, never>;
|
5
|
+
}
|
package/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.module.d.ts
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./progress-bar-indeterminate.component";
|
3
|
+
import * as i2 from "@daffodil/design/progress-bar";
|
4
|
+
export declare class ProgressBarIndeterminateComponentModule {
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarIndeterminateComponentModule, never>;
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ProgressBarIndeterminateComponentModule, [typeof i1.ProgressBarIndeterminateComponent], [typeof i2.DaffProgressBarModule], [typeof i1.ProgressBarIndeterminateComponent]>;
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ProgressBarIndeterminateComponentModule>;
|
8
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
2
|
+
import { DaffPalette } from '@daffodil/design';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class ProgressBarThemesComponent {
|
5
|
+
color: DaffPalette;
|
6
|
+
colorControl: FormControl;
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarThemesComponent, never>;
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarThemesComponent, "progress-bar-themes", never, {}, {}, never, never, false, never>;
|
9
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./progress-bar-themes.component";
|
3
|
+
import * as i2 from "@daffodil/design/progress-bar";
|
4
|
+
import * as i3 from "@angular/forms";
|
5
|
+
export declare class ProgressBarThemesComponentModule {
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarThemesComponentModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ProgressBarThemesComponentModule, [typeof i1.ProgressBarThemesComponent], [typeof i2.DaffProgressBarModule, typeof i3.ReactiveFormsModule], [typeof i1.ProgressBarThemesComponent]>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ProgressBarThemesComponentModule>;
|
9
|
+
}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import { AnimationEvent } from '@angular/animations';
|
2
|
+
import { ElementRef, EventEmitter, Renderer2, ChangeDetectorRef } from '@angular/core';
|
3
|
+
import { DaffColorable } from '@daffodil/design';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
/**
|
6
|
+
* An _elementRef and an instance of renderer2 are needed for the Colorable mixin
|
7
|
+
*/
|
8
|
+
declare class DaffProgressBarBase {
|
9
|
+
_elementRef: ElementRef;
|
10
|
+
_renderer: Renderer2;
|
11
|
+
constructor(_elementRef: ElementRef, _renderer: Renderer2);
|
12
|
+
}
|
13
|
+
declare const _daffProgressBarBase: (new (...args: any[]) => {
|
14
|
+
_color: import("@daffodil/design").DaffPalette;
|
15
|
+
color: import("@daffodil/design").DaffPalette;
|
16
|
+
_elementRef: ElementRef<any>;
|
17
|
+
_renderer: Renderer2;
|
18
|
+
}) & typeof DaffProgressBarBase;
|
19
|
+
export declare const clamp: (number: number, min: number, max: number) => number;
|
20
|
+
/**
|
21
|
+
* @inheritdoc
|
22
|
+
*/
|
23
|
+
export declare class DaffProgressBarComponent extends _daffProgressBarBase implements DaffColorable {
|
24
|
+
private _changeDetectorRef;
|
25
|
+
private elementRef;
|
26
|
+
private renderer;
|
27
|
+
/**
|
28
|
+
* @docs-private
|
29
|
+
*/
|
30
|
+
class: boolean;
|
31
|
+
/**
|
32
|
+
* @docs-private
|
33
|
+
*/
|
34
|
+
get indeterminateClass(): boolean;
|
35
|
+
get role(): string;
|
36
|
+
get ariaLabel(): string;
|
37
|
+
ariaValueMin: string;
|
38
|
+
ariaValueMax: string;
|
39
|
+
get ariaValueNow(): number;
|
40
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef, renderer: Renderer2);
|
41
|
+
private _percentage;
|
42
|
+
private _indeterminate;
|
43
|
+
/**
|
44
|
+
* Sets the percentage completion of the progression,
|
45
|
+
* expressed as a whole number between 0 and 100.
|
46
|
+
*
|
47
|
+
*/
|
48
|
+
get percentage(): number;
|
49
|
+
set percentage(val: number);
|
50
|
+
/**
|
51
|
+
* Property to set the animation of a progress bar to
|
52
|
+
* run for an indefinite amount of time.
|
53
|
+
*
|
54
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress
|
55
|
+
**/
|
56
|
+
get indeterminate(): any;
|
57
|
+
set indeterminate(value: any);
|
58
|
+
/**
|
59
|
+
* An event that emits each time the progression reaches 100%
|
60
|
+
* and the animation is finished
|
61
|
+
*/
|
62
|
+
finished: EventEmitter<void>;
|
63
|
+
/**
|
64
|
+
* Calculates when the progress animation is fully completed
|
65
|
+
*
|
66
|
+
* @param event: AnimationEvent
|
67
|
+
*/
|
68
|
+
onAnimationComplete(event: AnimationEvent): void;
|
69
|
+
/**
|
70
|
+
* @docs-private
|
71
|
+
*/
|
72
|
+
get fillState(): any;
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffProgressBarComponent, never>;
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffProgressBarComponent, "daff-progress-bar", never, { "color": { "alias": "color"; "required": false; }; "percentage": { "alias": "percentage"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, { "finished": "finished"; }, never, ["label[daffProgressBarLabel]"], false, never>;
|
75
|
+
}
|
76
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./progress-bar.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
export declare class DaffProgressBarModule {
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffProgressBarModule, never>;
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffProgressBarModule, [typeof i1.DaffProgressBarComponent], [typeof i2.CommonModule], [typeof i1.DaffProgressBarComponent]>;
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffProgressBarModule>;
|
8
|
+
}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../scss/core';
|
3
|
+
@use '../../scss/theming';
|
4
|
+
|
5
|
+
@mixin daff-progress-bar-theme($theme) {
|
6
|
+
$primary: map.get($theme, primary);
|
7
|
+
$secondary: map.get($theme, secondary);
|
8
|
+
$tertiary: map.get($theme, tertiary);
|
9
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
10
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
11
|
+
$white: core.daff-map-deep-get($theme, 'core.white');
|
12
|
+
$black: core.daff-map-deep-get($theme, 'core.black');
|
13
|
+
$neutral: core.daff-map-deep-get($theme, 'core.neutral');
|
14
|
+
|
15
|
+
.daff-progress-bar {
|
16
|
+
$root: '.daff-progress-bar';
|
17
|
+
|
18
|
+
#{$root}__label {
|
19
|
+
color: theming.daff-illuminate($base-contrast, $neutral, 2);
|
20
|
+
}
|
21
|
+
|
22
|
+
#{$root}__track {
|
23
|
+
background: theming.daff-illuminate($base, $neutral, 2);
|
24
|
+
}
|
25
|
+
|
26
|
+
&.daff-primary {
|
27
|
+
#{$root}__fill {
|
28
|
+
background: theming.daff-illuminate($base, $primary, 6);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
&.daff-secondary {
|
33
|
+
#{$root}__fill {
|
34
|
+
background: theming.daff-illuminate($base, $secondary, 6);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
&.daff-tertiary {
|
39
|
+
#{$root}__fill {
|
40
|
+
background: theming.daff-illuminate($base, $tertiary, 6);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
&.daff-theme {
|
45
|
+
#{$root}__fill {
|
46
|
+
background: $base;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
&.daff-theme-contrast {
|
51
|
+
#{$root}__fill {
|
52
|
+
background: $base-contrast;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
&.daff-white {
|
57
|
+
#{$root}__fill {
|
58
|
+
background: $white;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
&.daff-black {
|
63
|
+
#{$root}__fill {
|
64
|
+
background: $black;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
package/public_api.d.ts
CHANGED
@@ -8,7 +8,6 @@ export * from './atoms/form/quantity-field/public_api';
|
|
8
8
|
export * from './atoms/progress-indicator/public_api';
|
9
9
|
export * from './atoms/form/radio/public_api';
|
10
10
|
export * from './atoms/form/form-label/public_api';
|
11
|
-
export * from './molecules/backdrop/public_api';
|
12
11
|
export * from './molecules/button-set/public_api';
|
13
12
|
export * from './molecules/image-gallery/public_api';
|
14
13
|
export * from './molecules/image-list/public_api';
|
package/scss/theme.scss
CHANGED
@@ -38,6 +38,7 @@
|
|
38
38
|
@use '../notification/src/notification-theme' as notification;
|
39
39
|
@use '../paginator/src/paginator-theme' as paginator;
|
40
40
|
@use '../sidebar/src/sidebar-theme' as sidebar;
|
41
|
+
@use '../progress-bar/src/progress-bar-theme' as progress-bar;
|
41
42
|
@use '../scss/state/skeleton/mixins' as skeleton;
|
42
43
|
@use '../tree/src/tree-theme' as tree;
|
43
44
|
@use '../toast/src/toast-theme' as toast;
|
@@ -66,6 +67,7 @@
|
|
66
67
|
@include native-select.daff-native-select-theme($theme);
|
67
68
|
@include loading-icon.daff-loading-icon-theme($theme);
|
68
69
|
@include progress-indicator.daff-progress-indicator-theme($theme);
|
70
|
+
@include progress-bar.daff-progress-bar-theme($theme);
|
69
71
|
|
70
72
|
// Molecules
|
71
73
|
@include accordion.daff-accordion-theme($theme);
|
package/sidebar/public_api.d.ts
CHANGED
@@ -5,5 +5,6 @@ export * from './sidebar-header/sidebar-header.component';
|
|
5
5
|
export * from './sidebar-footer/sidebar-footer.component';
|
6
6
|
export * from './sidebar-header/sidebar-header-title/sidebar-header-title.directive';
|
7
7
|
export * from './sidebar-header/sidebar-header-action/sidebar-header-action.directive';
|
8
|
+
export * from './sidebar-viewport-backdrop/sidebar-viewport-backdrop.component';
|
8
9
|
export { DaffSidebarMode, DaffSidebarModeEnum, } from './helper/sidebar-mode';
|
9
10
|
export { DaffSidebarSide, DaffSidebarSideEnum, } from './helper/sidebar-side';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AnimationEvent } from '@angular/animations';
|
2
|
-
import { EventEmitter, ChangeDetectorRef, AfterContentChecked, ElementRef } from '@angular/core';
|
2
|
+
import { EventEmitter, ChangeDetectorRef, AfterContentChecked, ElementRef, OnDestroy } from '@angular/core';
|
3
3
|
import { DaffNavPlacement } from './nav-placement';
|
4
4
|
import { DaffSidebarScroll } from './scroll-token/scroll.token';
|
5
5
|
import { DaffSidebarViewportAnimationStateWithParams } from '../animation/sidebar-viewport-animation-state';
|
@@ -23,7 +23,7 @@ import * as i0 from "@angular/core";
|
|
23
23
|
* However, importantly, there can only be one sidebar of each mode, on each side, at any given time.
|
24
24
|
* If this is violated, this component will throw an exception.
|
25
25
|
*/
|
26
|
-
export declare class DaffSidebarViewportComponent implements AfterContentChecked {
|
26
|
+
export declare class DaffSidebarViewportComponent implements AfterContentChecked, OnDestroy {
|
27
27
|
private cdRef;
|
28
28
|
private _elementRef;
|
29
29
|
private bodyScroll;
|
@@ -83,6 +83,7 @@ export declare class DaffSidebarViewportComponent implements AfterContentChecked
|
|
83
83
|
*/
|
84
84
|
backdropClicked: EventEmitter<void>;
|
85
85
|
ngAfterContentChecked(): void;
|
86
|
+
ngOnDestroy(): void;
|
86
87
|
/**
|
87
88
|
* @docs-private
|
88
89
|
*
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { AnimationEvent } from '@angular/animations';
|
2
2
|
import { EventEmitter, OnInit } from '@angular/core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
-
export declare class
|
4
|
+
export declare class DaffSidebarViewportBackdropComponent implements OnInit {
|
5
|
+
interactableClass: boolean;
|
5
6
|
/**
|
6
7
|
* Determines whether or not the backdrop is transparent.
|
7
8
|
*/
|
@@ -19,13 +20,12 @@ export declare class DaffBackdropComponent implements OnInit {
|
|
19
20
|
* Output event triggered when the backdrop is clicked.
|
20
21
|
*/
|
21
22
|
backdropClicked: EventEmitter<void>;
|
22
|
-
interactableClass: boolean;
|
23
23
|
ngOnInit(): void;
|
24
24
|
/**
|
25
25
|
* Animation hook for that controls the backdrops
|
26
26
|
* entrance and fade animations.
|
27
27
|
*/
|
28
|
-
get fadeBackdropTrigger(): import("
|
28
|
+
get fadeBackdropTrigger(): import("./animation/backdrop-animation-state").DaffSidebarViewportBackdropAnimationState;
|
29
29
|
animationDone(e: AnimationEvent): void;
|
30
30
|
animationStart(e: AnimationEvent): void;
|
31
31
|
/**
|
@@ -33,6 +33,6 @@ export declare class DaffBackdropComponent implements OnInit {
|
|
33
33
|
* Backdrop event that triggers when the backdrop element is clicked.
|
34
34
|
*/
|
35
35
|
onBackdropClicked(): void;
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffSidebarViewportBackdropComponent, never>;
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffSidebarViewportBackdropComponent, "daff-sidebar-viewport-backdrop", never, { "transparent": { "alias": "transparent"; "required": false; }; "interactable": { "alias": "interactable"; "required": false; }; "fullscreen": { "alias": "fullscreen"; "required": false; }; }, { "backdropClicked": "backdropClicked"; }, never, ["*"], false, never>;
|
38
38
|
}
|
@@ -5,11 +5,11 @@ import * as i3 from "./sidebar-header/sidebar-header.component";
|
|
5
5
|
import * as i4 from "./sidebar-footer/sidebar-footer.component";
|
6
6
|
import * as i5 from "./sidebar-header/sidebar-header-title/sidebar-header-title.directive";
|
7
7
|
import * as i6 from "./sidebar-header/sidebar-header-action/sidebar-header-action.directive";
|
8
|
-
import * as i7 from "
|
9
|
-
import * as i8 from "@angular/
|
10
|
-
import * as i9 from "@
|
8
|
+
import * as i7 from "./sidebar-viewport-backdrop/sidebar-viewport-backdrop.component";
|
9
|
+
import * as i8 from "@angular/common";
|
10
|
+
import * as i9 from "@angular/cdk/a11y";
|
11
11
|
export declare class DaffSidebarModule {
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffSidebarModule, never>;
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffSidebarModule, [typeof i1.DaffSidebarComponent, typeof i2.DaffSidebarViewportComponent, typeof i3.DaffSidebarHeaderComponent, typeof i4.DaffSidebarFooterComponent, typeof i5.DaffSidebarHeaderTitleDirective, typeof i6.DaffSidebarHeaderActionDirective
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffSidebarModule, [typeof i1.DaffSidebarComponent, typeof i2.DaffSidebarViewportComponent, typeof i3.DaffSidebarHeaderComponent, typeof i4.DaffSidebarFooterComponent, typeof i5.DaffSidebarHeaderTitleDirective, typeof i6.DaffSidebarHeaderActionDirective, typeof i7.DaffSidebarViewportBackdropComponent], [typeof i8.CommonModule, typeof i9.A11yModule], [typeof i1.DaffSidebarComponent, typeof i2.DaffSidebarViewportComponent, typeof i3.DaffSidebarHeaderComponent, typeof i4.DaffSidebarFooterComponent, typeof i5.DaffSidebarHeaderTitleDirective, typeof i6.DaffSidebarHeaderActionDirective, typeof i7.DaffSidebarViewportBackdropComponent]>;
|
14
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffSidebarModule>;
|
15
15
|
}
|
package/tree/README.md
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
# Tree
|
2
|
-
|
3
2
|
Trees are used to visualize hierarchial information. They are often used to display navigational structures like nested lists of links.
|
4
3
|
|
5
4
|
## Overview
|
@@ -11,10 +10,9 @@ Instead of defining a recursive tree structure of components, which is often pro
|
|
11
10
|
Generally, tree usage consists of taking existing tree data, converting it to the `DaffTreeData` format, setting the `tree` input on the `DaffTreeComponent`, and providing templates for the cases where the tree element has children or not.
|
12
11
|
|
13
12
|
## Features
|
14
|
-
|
15
13
|
The `DaffTreeComponent` controls the rendering of the structure of the tree and provides template slots so that you can control the ultimate UI rendered for each node.
|
16
14
|
|
17
|
-
Currently, we support two kind of templates `daffTreeItemWithChildrenTpl` and `daffTreeItemTpl`. These templates allow you to control the content of each tree node. In the case of `daffTreeItemWithChildrenTpl
|
15
|
+
Currently, we support two kind of templates: `daffTreeItemWithChildrenTpl` and `daffTreeItemTpl`. These templates allow you to control the content of each tree node. In the case of `daffTreeItemWithChildrenTpl`, a `click` handler will be automatically applied (along with an icon indicating the expanded state) to the template to allow users to automatically open and close the node.
|
18
16
|
|
19
17
|
```html
|
20
18
|
<ng-template #daffTreeItemWithChildrenTpl let-node>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/**
|
2
|
+
* Represents the mode of rendering for nodes in a tree UI.
|
3
|
+
* - 'in-dom': Closed nodes are present in the Document Object Model (DOM).
|
4
|
+
* - 'not-in-dom': Closed nodes are not present in the Document Object Model (DOM).
|
5
|
+
*/
|
6
|
+
export type DaffTreeRenderMode = 'in-dom' | 'not-in-dom';
|
package/tree/public_api.d.ts
CHANGED
@@ -4,3 +4,5 @@ export { DaffTreeItemDirective } from './tree-item/tree-item.directive';
|
|
4
4
|
export { DaffTreeData } from './interfaces/tree-data';
|
5
5
|
export { DaffTreeUi } from './interfaces/tree-ui';
|
6
6
|
export { daffTransformTreeInPlace } from './utils/transform-in-place';
|
7
|
+
export { daffTransformTree } from './utils/transform';
|
8
|
+
export { DaffTreeRenderMode } from './interfaces/tree-render-mode';
|
@@ -1,8 +1,21 @@
|
|
1
|
-
import { OnInit, TemplateRef } from '@angular/core';
|
1
|
+
import { ElementRef, OnChanges, OnInit, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
|
2
2
|
import { DaffTreeNotifierService } from './tree-notifier.service';
|
3
3
|
import { DaffTreeData } from '../interfaces/tree-data';
|
4
|
+
import { DaffTreeRenderMode } from '../interfaces/tree-render-mode';
|
4
5
|
import { DaffTreeFlatNode } from '../utils/flatten-tree';
|
5
6
|
import * as i0 from "@angular/core";
|
7
|
+
/**
|
8
|
+
* An _elementRef and an instance of renderer2 are needed for the list mixins
|
9
|
+
*/
|
10
|
+
declare class DaffTreeBase {
|
11
|
+
_elementRef: ElementRef;
|
12
|
+
_renderer: Renderer2;
|
13
|
+
constructor(_elementRef: ElementRef, _renderer: Renderer2);
|
14
|
+
}
|
15
|
+
declare const _daffTreeBase: (new (...args: any[]) => {
|
16
|
+
_elementRef: ElementRef<any>;
|
17
|
+
_renderer: Renderer2;
|
18
|
+
}) & typeof DaffTreeBase;
|
6
19
|
/**
|
7
20
|
* The `DaffTreeComponent` allows you to render tree structures as interactable ui.
|
8
21
|
*
|
@@ -23,32 +36,39 @@ import * as i0 from "@angular/core";
|
|
23
36
|
* where `tree` is a {@link DaffTreeData}.
|
24
37
|
*
|
25
38
|
*/
|
26
|
-
export declare class DaffTreeComponent implements OnInit {
|
39
|
+
export declare class DaffTreeComponent extends _daffTreeBase implements OnInit, OnChanges {
|
27
40
|
private notifier;
|
41
|
+
private elementRef;
|
42
|
+
private renderer;
|
28
43
|
/**
|
29
44
|
* The css class of the daff-tree.
|
30
45
|
*
|
31
46
|
* @docs-private
|
32
47
|
*/
|
33
48
|
class: boolean;
|
49
|
+
/**
|
50
|
+
* The rendering mode for nodes in the tree.
|
51
|
+
*
|
52
|
+
* Default value is 'in-dom', which means nodes are present in the DOM.
|
53
|
+
*
|
54
|
+
* Generally, `not-in-dom` is faster as there are less DOM elements to render,
|
55
|
+
* but there may be use-cases (like SEO) where having the tree in the DOM
|
56
|
+
* is relevant.
|
57
|
+
*/
|
58
|
+
renderMode: DaffTreeRenderMode;
|
34
59
|
/**
|
35
60
|
* The internal tree element.
|
36
61
|
*/
|
37
|
-
private
|
62
|
+
private _tree;
|
38
63
|
/**
|
39
64
|
* The flattened tree data. You can iterate through this if you want to inspect
|
40
65
|
* the resulting array structure we computed to render the tree.
|
41
66
|
*/
|
42
67
|
flatTree: DaffTreeFlatNode[];
|
43
|
-
/**
|
44
|
-
* @docs-private
|
45
|
-
*/
|
46
|
-
private _dataTree;
|
47
68
|
/**
|
48
69
|
* The tree data you would like to render.
|
49
70
|
*/
|
50
|
-
|
51
|
-
set dataTree(dataTree: DaffTreeData<unknown>);
|
71
|
+
tree: DaffTreeData<unknown>;
|
52
72
|
/**
|
53
73
|
* The template used to render tree-nodes that themselves have children.
|
54
74
|
*
|
@@ -61,7 +81,8 @@ export declare class DaffTreeComponent implements OnInit {
|
|
61
81
|
* @docs-private
|
62
82
|
*/
|
63
83
|
treeItemTemplate: TemplateRef<any>;
|
64
|
-
constructor(notifier: DaffTreeNotifierService);
|
84
|
+
constructor(notifier: DaffTreeNotifierService, elementRef: ElementRef, renderer: Renderer2);
|
85
|
+
ngOnChanges(changes: SimpleChanges): void;
|
65
86
|
/**
|
66
87
|
* The track-by function used to reduce tree-item re-renders
|
67
88
|
*/
|
@@ -71,5 +92,6 @@ export declare class DaffTreeComponent implements OnInit {
|
|
71
92
|
*/
|
72
93
|
ngOnInit(): void;
|
73
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffTreeComponent, never>;
|
74
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffTreeComponent, "ul[daff-tree]", never, { "
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffTreeComponent, "ul[daff-tree]", never, { "renderMode": { "alias": "renderMode"; "required": false; }; "tree": { "alias": "tree"; "required": false; }; }, {}, ["withChildrenTemplate", "treeItemTemplate"], never, false, never>;
|
75
96
|
}
|
97
|
+
export {};
|
@@ -10,10 +10,11 @@ export interface DaffTreeFlatNode {
|
|
10
10
|
level: number;
|
11
11
|
hasChildren: boolean;
|
12
12
|
data: unknown;
|
13
|
+
visible: boolean;
|
13
14
|
_treeRef: DaffTreeUi<unknown>;
|
14
15
|
}
|
15
16
|
/**
|
16
17
|
* Flatten a DaffTreeUi<unknown> into an array, removing elements from the array
|
17
18
|
* below nodes in the tree that are not open.
|
18
19
|
*/
|
19
|
-
export declare const flattenTree: (daffUiTree: DaffTreeUi<unknown
|
20
|
+
export declare const flattenTree: (daffUiTree: DaffTreeUi<unknown>, removeNodes?: boolean) => DaffTreeFlatNode[];
|