@daffodil/design 0.68.0 → 0.69.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.
Files changed (121) hide show
  1. package/esm2022/article/article/article.component.mjs +2 -2
  2. package/esm2022/article/examples/article-headings/article-headings.component.mjs +3 -4
  3. package/esm2022/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +3 -3
  4. package/esm2022/loading-icon/loading-icon/loading-icon.component.mjs +3 -3
  5. package/esm2022/modal/service/modal.service.mjs +2 -3
  6. package/esm2022/public_api.mjs +1 -2
  7. package/esm2022/sidebar/public_api.mjs +2 -1
  8. package/esm2022/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +12 -4
  9. package/esm2022/sidebar/sidebar-viewport-backdrop/animation/backdrop-animation-state.mjs +2 -0
  10. package/esm2022/sidebar/sidebar-viewport-backdrop/animation/backdrop-animation.mjs +20 -0
  11. package/esm2022/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.mjs +91 -0
  12. package/esm2022/sidebar/sidebar.module.mjs +10 -9
  13. package/esm2022/toast/daffodil-design-toast.mjs +5 -0
  14. package/esm2022/toast/examples/daffodil-design-toast-examples.mjs +5 -0
  15. package/esm2022/toast/examples/default-toast/default-toast.component.mjs +38 -0
  16. package/esm2022/toast/examples/default-toast/default-toast.module.mjs +36 -0
  17. package/esm2022/toast/examples/index.mjs +2 -0
  18. package/esm2022/toast/examples/public_api.mjs +15 -0
  19. package/esm2022/toast/examples/toast-positions/toast-positions.component.mjs +42 -0
  20. package/esm2022/toast/examples/toast-positions/toast-positions.module.mjs +57 -0
  21. package/esm2022/toast/examples/toast-status/toast-status.component.mjs +45 -0
  22. package/esm2022/toast/examples/toast-status/toast-status.module.mjs +40 -0
  23. package/esm2022/toast/examples/toast-with-custom-duration/toast-with-custom-duration.component.mjs +26 -0
  24. package/esm2022/toast/examples/toast-with-custom-duration/toast-with-custom-duration.module.mjs +32 -0
  25. package/esm2022/toast/index.mjs +2 -0
  26. package/esm2022/toast/interfaces/toast-action.mjs +2 -0
  27. package/esm2022/toast/interfaces/toast.mjs +2 -0
  28. package/esm2022/toast/options/daff-toast-options.mjs +16 -0
  29. package/esm2022/toast/public_api.mjs +9 -0
  30. package/esm2022/toast/service/changes-focus.mjs +2 -0
  31. package/esm2022/toast/service/position-strategy.mjs +29 -0
  32. package/esm2022/toast/service/position.service.mjs +33 -0
  33. package/esm2022/toast/service/toast.service.mjs +116 -0
  34. package/esm2022/toast/toast/toast-config.mjs +2 -0
  35. package/esm2022/toast/toast/toast-template.component.mjs +262 -0
  36. package/esm2022/toast/toast/toast.component.mjs +82 -0
  37. package/esm2022/toast/toast-actions/toast-actions.directive.mjs +19 -0
  38. package/esm2022/toast/toast-message/toast-message.directive.mjs +19 -0
  39. package/esm2022/toast/toast-title/toast-title.directive.mjs +19 -0
  40. package/esm2022/toast/toast.module.mjs +70 -0
  41. package/esm2022/tree/examples/basic-tree/basic-tree.component.mjs +1 -1
  42. package/esm2022/tree/interfaces/tree-render-mode.mjs +2 -0
  43. package/esm2022/tree/public_api.mjs +2 -1
  44. package/esm2022/tree/tree/tree.component.mjs +43 -36
  45. package/esm2022/tree/utils/flatten-tree.mjs +26 -14
  46. package/esm2022/tree/utils/transform.mjs +25 -0
  47. package/fesm2022/daffodil-design-article-examples.mjs +2 -2
  48. package/fesm2022/daffodil-design-article-examples.mjs.map +1 -1
  49. package/fesm2022/daffodil-design-article.mjs +2 -2
  50. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  51. package/fesm2022/daffodil-design-loading-icon-examples.mjs +2 -2
  52. package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
  53. package/fesm2022/daffodil-design-loading-icon.mjs +2 -2
  54. package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
  55. package/fesm2022/daffodil-design-modal.mjs +1 -2
  56. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  57. package/fesm2022/daffodil-design-sidebar.mjs +131 -14
  58. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  59. package/fesm2022/daffodil-design-toast-examples.mjs +287 -0
  60. package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -0
  61. package/fesm2022/daffodil-design-toast.mjs +625 -0
  62. package/fesm2022/daffodil-design-toast.mjs.map +1 -0
  63. package/fesm2022/daffodil-design-tree-examples.mjs +1 -1
  64. package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
  65. package/fesm2022/daffodil-design-tree.mjs +92 -48
  66. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  67. package/fesm2022/daffodil-design.mjs +1 -125
  68. package/fesm2022/daffodil-design.mjs.map +1 -1
  69. package/loading-icon/src/loading-icon-theme.scss +24 -8
  70. package/navbar/README.md +1 -1
  71. package/package.json +1 -1
  72. package/public_api.d.ts +0 -1
  73. package/scss/theme.scss +2 -0
  74. package/sidebar/public_api.d.ts +1 -0
  75. package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +3 -2
  76. package/sidebar/sidebar-viewport-backdrop/animation/backdrop-animation-state.d.ts +2 -0
  77. package/{molecules/backdrop → sidebar/sidebar-viewport-backdrop}/animation/backdrop-animation.d.ts +1 -1
  78. package/{molecules/backdrop/backdrop/backdrop.component.d.ts → sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.d.ts} +5 -5
  79. package/sidebar/sidebar.module.d.ts +4 -4
  80. package/toast/README.md +115 -0
  81. package/toast/examples/default-toast/default-toast.component.d.ts +15 -0
  82. package/toast/examples/default-toast/default-toast.module.d.ts +11 -0
  83. package/toast/examples/index.d.ts +1 -0
  84. package/toast/examples/public_api.d.ts +2 -0
  85. package/toast/examples/toast-positions/toast-positions.component.d.ts +17 -0
  86. package/toast/examples/toast-positions/toast-positions.module.d.ts +12 -0
  87. package/toast/examples/toast-status/toast-status.component.d.ts +14 -0
  88. package/toast/examples/toast-status/toast-status.module.d.ts +12 -0
  89. package/toast/examples/toast-with-custom-duration/toast-with-custom-duration.component.d.ts +10 -0
  90. package/toast/examples/toast-with-custom-duration/toast-with-custom-duration.module.d.ts +10 -0
  91. package/toast/index.d.ts +1 -0
  92. package/toast/interfaces/toast-action.d.ts +38 -0
  93. package/toast/interfaces/toast.d.ts +20 -0
  94. package/toast/options/daff-toast-options.d.ts +15 -0
  95. package/toast/public_api.d.ts +11 -0
  96. package/toast/service/changes-focus.d.ts +2 -0
  97. package/toast/service/position-strategy.d.ts +3 -0
  98. package/toast/service/position.service.d.ts +15 -0
  99. package/toast/service/toast.service.d.ts +29 -0
  100. package/toast/src/toast-theme.scss +63 -0
  101. package/toast/toast/toast-config.d.ts +7 -0
  102. package/toast/toast/toast-template.component.d.ts +20 -0
  103. package/toast/toast/toast.component.d.ts +52 -0
  104. package/toast/toast-actions/toast-actions.directive.d.ts +6 -0
  105. package/toast/toast-message/toast-message.directive.d.ts +6 -0
  106. package/toast/toast-title/toast-title.directive.d.ts +6 -0
  107. package/toast/toast.module.d.ts +17 -0
  108. package/tree/README.md +1 -3
  109. package/tree/interfaces/tree-render-mode.d.ts +6 -0
  110. package/tree/public_api.d.ts +2 -0
  111. package/tree/tree/tree.component.d.ts +33 -11
  112. package/tree/utils/flatten-tree.d.ts +2 -1
  113. package/tree/utils/transform.d.ts +13 -0
  114. package/esm2022/molecules/backdrop/animation/backdrop-animation-state.mjs +0 -2
  115. package/esm2022/molecules/backdrop/animation/backdrop-animation.mjs +0 -20
  116. package/esm2022/molecules/backdrop/backdrop/backdrop.component.mjs +0 -87
  117. package/esm2022/molecules/backdrop/backdrop.module.mjs +0 -24
  118. package/esm2022/molecules/backdrop/public_api.mjs +0 -3
  119. package/molecules/backdrop/animation/backdrop-animation-state.d.ts +0 -2
  120. package/molecules/backdrop/backdrop.module.d.ts +0 -8
  121. package/molecules/backdrop/public_api.d.ts +0 -2
@@ -1463,130 +1463,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImpor
1463
1463
  }]
1464
1464
  }] });
1465
1465
 
1466
- const animationDuration = '350ms';
1467
- const backdropTransitionOut = 'cubic-bezier(0.4, 0.0, 1, 1)';
1468
- const backdropTransitionIn = 'cubic-bezier(0.0, 0.0, 0.2, 1)';
1469
- const daffBackdropAnimations = {
1470
- fadeBackdrop: trigger('fadeBackdrop', [
1471
- state('interactable', style({ opacity: 1 })),
1472
- state('non-interactable', style({ opacity: 0 })),
1473
- transition('interactable => non-interactable', animate(animationDuration + ' ' + backdropTransitionOut)),
1474
- transition('non-interactable => interactable', animate(animationDuration + ' ' + backdropTransitionIn)),
1475
- transition(':enter', [
1476
- style({ opacity: 0 }),
1477
- animate(animationDuration + ' ' + backdropTransitionIn, style({ opacity: 1 })),
1478
- ]),
1479
- transition(':leave', [
1480
- animate(animationDuration + ' ' + backdropTransitionOut, style({ opacity: 0 })),
1481
- ]),
1482
- ]),
1483
- };
1484
-
1485
- const getAnimationState = (interactable) => interactable ? 'interactable' : 'non-interactable';
1486
-
1487
- class DaffBackdropComponent {
1488
- constructor() {
1489
- /**
1490
- * Determines whether or not the backdrop is transparent.
1491
- */
1492
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
1493
- this.transparent = false;
1494
- /**
1495
- * Determines whether or not the backdrop is interactable.
1496
- */
1497
- this.interactable = true;
1498
- /**
1499
- * Boolean property that determines whether or not the
1500
- * backdrop should fill up its containing window.
1501
- */
1502
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
1503
- this.fullscreen = false;
1504
- /**
1505
- * Output event triggered when the backdrop is clicked.
1506
- */
1507
- this.backdropClicked = new EventEmitter();
1508
- this.interactableClass = true;
1509
- }
1510
- ngOnInit() {
1511
- this.interactableClass = this.interactable;
1512
- }
1513
- /**
1514
- * Animation hook for that controls the backdrops
1515
- * entrance and fade animations.
1516
- */
1517
- get fadeBackdropTrigger() {
1518
- return getAnimationState(this.interactable);
1519
- }
1520
- animationDone(e) {
1521
- this.interactableClass = !(e.toState === ':leave' || e.toState === 'non-interactable');
1522
- }
1523
- animationStart(e) {
1524
- if (e.toState === ':enter' || e.toState === 'interactable') {
1525
- this.interactableClass = true;
1526
- }
1527
- }
1528
- /**
1529
- * @deprecated
1530
- * Backdrop event that triggers when the backdrop element is clicked.
1531
- */
1532
- onBackdropClicked() {
1533
- this.backdropClicked.emit();
1534
- }
1535
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffBackdropComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1536
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: DaffBackdropComponent, selector: "daff-backdrop", inputs: { transparent: "transparent", interactable: "interactable", fullscreen: "fullscreen" }, outputs: { backdropClicked: "backdropClicked" }, host: { listeners: { "@fadeBackdrop.done": "animationDone($event)", "@fadeBackdrop.start": "animationStart($event)", "click": "onBackdropClicked()" }, properties: { "class.interactable": "this.interactableClass", "@fadeBackdrop": "this.fadeBackdropTrigger" } }, ngImport: i0, template: "<div class=\"daff-backdrop\" [class.daff-backdrop--fullscreen]=\"fullscreen\" [class.daff-backdrop--transparent]=\"transparent\"></div>\n", styles: [":host{display:block;-webkit-tap-highlight-color:rgba(0,0,0,0);visibility:hidden;pointer-events:none}:host.interactable{visibility:visible;pointer-events:all;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.daff-backdrop{background:#0000004d;height:100%;width:100%}.daff-backdrop--transparent{background:none}.daff-backdrop:focus,.daff-backdrop:active,.daff-backdrop:visited{outline:0}.daff-backdrop--fullscreen{position:absolute}\n"], animations: [
1537
- daffBackdropAnimations.fadeBackdrop,
1538
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1539
- }
1540
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffBackdropComponent, decorators: [{
1541
- type: Component,
1542
- args: [{ selector: 'daff-backdrop', animations: [
1543
- daffBackdropAnimations.fadeBackdrop,
1544
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"daff-backdrop\" [class.daff-backdrop--fullscreen]=\"fullscreen\" [class.daff-backdrop--transparent]=\"transparent\"></div>\n", styles: [":host{display:block;-webkit-tap-highlight-color:rgba(0,0,0,0);visibility:hidden;pointer-events:none}:host.interactable{visibility:visible;pointer-events:all;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.daff-backdrop{background:#0000004d;height:100%;width:100%}.daff-backdrop--transparent{background:none}.daff-backdrop:focus,.daff-backdrop:active,.daff-backdrop:visited{outline:0}.daff-backdrop--fullscreen{position:absolute}\n"] }]
1545
- }], propDecorators: { transparent: [{
1546
- type: Input
1547
- }], interactable: [{
1548
- type: Input
1549
- }], fullscreen: [{
1550
- type: Input
1551
- }], backdropClicked: [{
1552
- type: Output
1553
- }], interactableClass: [{
1554
- type: HostBinding,
1555
- args: ['class.interactable']
1556
- }], fadeBackdropTrigger: [{
1557
- type: HostBinding,
1558
- args: ['@fadeBackdrop']
1559
- }], animationDone: [{
1560
- type: HostListener,
1561
- args: ['@fadeBackdrop.done', ['$event']]
1562
- }], animationStart: [{
1563
- type: HostListener,
1564
- args: ['@fadeBackdrop.start', ['$event']]
1565
- }], onBackdropClicked: [{
1566
- type: HostListener,
1567
- args: ['click']
1568
- }] } });
1569
-
1570
- class DaffBackdropModule {
1571
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffBackdropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1572
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: DaffBackdropModule, declarations: [DaffBackdropComponent], imports: [CommonModule], exports: [DaffBackdropComponent] }); }
1573
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffBackdropModule, imports: [CommonModule] }); }
1574
- }
1575
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffBackdropModule, decorators: [{
1576
- type: NgModule,
1577
- args: [{
1578
- imports: [
1579
- CommonModule,
1580
- ],
1581
- declarations: [
1582
- DaffBackdropComponent,
1583
- ],
1584
- exports: [
1585
- DaffBackdropComponent,
1586
- ],
1587
- }]
1588
- }] });
1589
-
1590
1466
  /**
1591
1467
  * @deprecated in v1.0.0
1592
1468
  */
@@ -2671,5 +2547,5 @@ function daffSizeMixin(Base, defaultSize) {
2671
2547
  * Generated bundle index. Do not edit.
2672
2548
  */
2673
2549
 
2674
- export { DAFF_THEME_INITIALIZER, DaffBackdropComponent, DaffBackdropModule, DaffBreakpoints, DaffButtonSetComponent, DaffButtonSetModule, DaffCheckboxComponent, DaffCheckboxControlValueAccessorDirective, DaffCheckboxModule, DaffCheckboxSetComponent, DaffErrorMessageComponent, DaffErrorMessageModule, DaffErrorStateMatcher, DaffFeatureComponent, DaffFeatureIconDirective, DaffFeatureModeEnum, DaffFeatureModule, DaffFeatureSubheaderDirective, DaffFeatureSubtitleDirective, DaffFeatureTitleDirective, DaffFocusStackService, DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldModule, DaffFormLabelDirective, DaffFormLabelModule, DaffGalleryImageComponent, DaffImageGalleryComponent, DaffImageGalleryModule, DaffImageListComponent, DaffImageListModule, DaffInputComponent, DaffInputModule, DaffNativeSelectComponent, DaffNativeSelectModule, DaffPrefixDirective, DaffPrefixSuffixModule, DaffProgressIndicatorComponent, DaffProgressIndicatorModule, DaffQtyDropdownComponent, DaffQtyDropdownModule, DaffQuantityFieldComponent, DaffQuantityFieldModule, DaffQuantityInputComponent, DaffQuantitySelectComponent, DaffRadioComponent, DaffRadioControlValueAccessorDirective, DaffRadioModule, DaffRadioSetComponent, DaffSizableEnum, DaffStatusEnum, DaffSuffixDirective, DaffTextAlignmentEnum, DaffTheme, DaffThemingService, daffArticleEncapsulatedMixin, daffColorMixin, daffCompactableMixin, daffFocusableElementsSelector, daffManageContainerLayoutMixin, daffPrefixableMixin, daffSizeMixin, daffSkeletonableMixin, daffStatusMixin, daffSuffixableMixin, daffTextAlignmentMixin };
2550
+ export { DAFF_THEME_INITIALIZER, DaffBreakpoints, DaffButtonSetComponent, DaffButtonSetModule, DaffCheckboxComponent, DaffCheckboxControlValueAccessorDirective, DaffCheckboxModule, DaffCheckboxSetComponent, DaffErrorMessageComponent, DaffErrorMessageModule, DaffErrorStateMatcher, DaffFeatureComponent, DaffFeatureIconDirective, DaffFeatureModeEnum, DaffFeatureModule, DaffFeatureSubheaderDirective, DaffFeatureSubtitleDirective, DaffFeatureTitleDirective, DaffFocusStackService, DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldModule, DaffFormLabelDirective, DaffFormLabelModule, DaffGalleryImageComponent, DaffImageGalleryComponent, DaffImageGalleryModule, DaffImageListComponent, DaffImageListModule, DaffInputComponent, DaffInputModule, DaffNativeSelectComponent, DaffNativeSelectModule, DaffPrefixDirective, DaffPrefixSuffixModule, DaffProgressIndicatorComponent, DaffProgressIndicatorModule, DaffQtyDropdownComponent, DaffQtyDropdownModule, DaffQuantityFieldComponent, DaffQuantityFieldModule, DaffQuantityInputComponent, DaffQuantitySelectComponent, DaffRadioComponent, DaffRadioControlValueAccessorDirective, DaffRadioModule, DaffRadioSetComponent, DaffSizableEnum, DaffStatusEnum, DaffSuffixDirective, DaffTextAlignmentEnum, DaffTheme, DaffThemingService, daffArticleEncapsulatedMixin, daffColorMixin, daffCompactableMixin, daffFocusableElementsSelector, daffManageContainerLayoutMixin, daffPrefixableMixin, daffSizeMixin, daffSkeletonableMixin, daffStatusMixin, daffSuffixableMixin, daffTextAlignmentMixin };
2675
2551
  //# sourceMappingURL=daffodil-design.mjs.map