@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
@@ -0,0 +1,19 @@
1
+ import { Directive, HostBinding, } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class DaffToastTitleDirective {
4
+ constructor() {
5
+ this.class = true;
6
+ }
7
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffToastTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
8
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.1", type: DaffToastTitleDirective, selector: "[daffToastTitle]", host: { properties: { "class.daff-toast__title": "this.class" } }, ngImport: i0 }); }
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffToastTitleDirective, decorators: [{
11
+ type: Directive,
12
+ args: [{
13
+ selector: '[daffToastTitle]',
14
+ }]
15
+ }], propDecorators: { class: [{
16
+ type: HostBinding,
17
+ args: ['class.daff-toast__title']
18
+ }] } });
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3QtdGl0bGUuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vdG9hc3Qvc3JjL3RvYXN0LXRpdGxlL3RvYXN0LXRpdGxlLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULFdBQVcsR0FDWixNQUFNLGVBQWUsQ0FBQzs7QUFNdkIsTUFBTSxPQUFPLHVCQUF1QjtJQUpwQztRQU0wQyxVQUFLLEdBQUcsSUFBSSxDQUFDO0tBQ3REO2lJQUhZLHVCQUF1QjtxSEFBdkIsdUJBQXVCOzsyRkFBdkIsdUJBQXVCO2tCQUpuQyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxrQkFBa0I7aUJBQzdCOzhCQUl5QyxLQUFLO3NCQUE1QyxXQUFXO3VCQUFDLHlCQUF5QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIERpcmVjdGl2ZSxcbiAgSG9zdEJpbmRpbmcsXG59IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5ARGlyZWN0aXZlKHtcbiAgc2VsZWN0b3I6ICdbZGFmZlRvYXN0VGl0bGVdJyxcbn0pXG5cbmV4cG9ydCBjbGFzcyBEYWZmVG9hc3RUaXRsZURpcmVjdGl2ZSB7XG5cbiAgQEhvc3RCaW5kaW5nKCdjbGFzcy5kYWZmLXRvYXN0X190aXRsZScpIGNsYXNzID0gdHJ1ZTtcbn1cbiJdfQ==
@@ -0,0 +1,70 @@
1
+ import { OverlayModule } from '@angular/cdk/overlay';
2
+ import { PortalModule } from '@angular/cdk/portal';
3
+ import { CommonModule } from '@angular/common';
4
+ import { NgModule } from '@angular/core';
5
+ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
6
+ import { DaffPrefixSuffixModule } from '@daffodil/design';
7
+ import { DaffButtonModule } from '@daffodil/design/button';
8
+ import { DaffToastPositionService } from './service/position.service';
9
+ import { DaffToastTemplateComponent } from './toast/toast-template.component';
10
+ import { DaffToastComponent } from './toast/toast.component';
11
+ import { DaffToastActionsDirective } from './toast-actions/toast-actions.directive';
12
+ import { DaffToastMessageDirective } from './toast-message/toast-message.directive';
13
+ import { DaffToastTitleDirective } from './toast-title/toast-title.directive';
14
+ import * as i0 from "@angular/core";
15
+ export class DaffToastModule {
16
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffToastModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
17
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: DaffToastModule, declarations: [DaffToastComponent,
18
+ DaffToastActionsDirective,
19
+ DaffToastTitleDirective,
20
+ DaffToastMessageDirective,
21
+ DaffToastTemplateComponent], imports: [CommonModule,
22
+ DaffPrefixSuffixModule,
23
+ DaffButtonModule,
24
+ FontAwesomeModule,
25
+ PortalModule,
26
+ OverlayModule], exports: [DaffToastComponent,
27
+ DaffToastActionsDirective,
28
+ DaffToastTitleDirective,
29
+ DaffToastMessageDirective,
30
+ DaffPrefixSuffixModule] }); }
31
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffToastModule, providers: [
32
+ DaffToastPositionService,
33
+ ], imports: [CommonModule,
34
+ DaffPrefixSuffixModule,
35
+ DaffButtonModule,
36
+ FontAwesomeModule,
37
+ PortalModule,
38
+ OverlayModule, DaffPrefixSuffixModule] }); }
39
+ }
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffToastModule, decorators: [{
41
+ type: NgModule,
42
+ args: [{
43
+ imports: [
44
+ CommonModule,
45
+ DaffPrefixSuffixModule,
46
+ DaffButtonModule,
47
+ FontAwesomeModule,
48
+ PortalModule,
49
+ OverlayModule,
50
+ ],
51
+ declarations: [
52
+ DaffToastComponent,
53
+ DaffToastActionsDirective,
54
+ DaffToastTitleDirective,
55
+ DaffToastMessageDirective,
56
+ DaffToastTemplateComponent,
57
+ ],
58
+ exports: [
59
+ DaffToastComponent,
60
+ DaffToastActionsDirective,
61
+ DaffToastTitleDirective,
62
+ DaffToastMessageDirective,
63
+ DaffPrefixSuffixModule,
64
+ ],
65
+ providers: [
66
+ DaffToastPositionService,
67
+ ],
68
+ }]
69
+ }] });
70
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3QubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vdG9hc3Qvc3JjL3RvYXN0Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFP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AgRGFmZlRvYXN0Q29tcG9uZW50LFxuICAgIERhZmZUb2FzdEFjdGlvbnNEaXJlY3RpdmUsXG4gICAgRGFmZlRvYXN0VGl0bGVEaXJlY3RpdmUsXG4gICAgRGFmZlRvYXN0TWVzc2FnZURpcmVjdGl2ZSxcbiAgICBEYWZmVG9hc3RUZW1wbGF0ZUNvbXBvbmVudCxcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIERhZmZUb2FzdENvbXBvbmVudCxcbiAgICBEYWZmVG9hc3RBY3Rpb25zRGlyZWN0aXZlLFxuICAgIERhZmZUb2FzdFRpdGxlRGlyZWN0aXZlLFxuICAgIERhZmZUb2FzdE1lc3NhZ2VEaXJlY3RpdmUsXG4gICAgRGFmZlByZWZpeFN1ZmZpeE1vZHVsZSxcbiAgXSxcbiAgcHJvdmlkZXJzOiBbXG4gICAgRGFmZlRvYXN0UG9zaXRpb25TZXJ2aWNlLFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBEYWZmVG9hc3RNb2R1bGUgeyB9XG4iXX0=
@@ -30,7 +30,7 @@ export class BasicTreeComponent {
30
30
  };
31
31
  }
32
32
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: BasicTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
33
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: BasicTreeComponent, selector: "basic-tree", ngImport: i0, template: "<ul daff-tree [tree]=\"tree\">\n\t<ng-template #daffTreeItemWithChildrenTpl let-node>\n\t\t\t<button daffTreeItem [node]=\"node\">{{ node.title }} </button>\n\t</ng-template>\n\t\n\t<ng-template #daffTreeItemTpl let-node>\n\t\t\t<a daffTreeItem [node]=\"node\" [routerLink]=\"node.url\">{{ node.title }}</a>\n\t</ng-template>\n</ul>\n\n", dependencies: [{ kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i2.DaffTreeComponent, selector: "ul[daff-tree]", inputs: ["tree"] }, { kind: "directive", type: i2.DaffTreeItemDirective, selector: "[daffTreeItem]", inputs: ["node", "selected"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
33
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: BasicTreeComponent, selector: "basic-tree", ngImport: i0, template: "<ul daff-tree [tree]=\"tree\">\n\t<ng-template #daffTreeItemWithChildrenTpl let-node>\n\t\t\t<button daffTreeItem [node]=\"node\">{{ node.title }} </button>\n\t</ng-template>\n\t\n\t<ng-template #daffTreeItemTpl let-node>\n\t\t\t<a daffTreeItem [node]=\"node\" [routerLink]=\"node.url\">{{ node.title }}</a>\n\t</ng-template>\n</ul>\n\n", dependencies: [{ kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i2.DaffTreeComponent, selector: "ul[daff-tree]", inputs: ["renderMode", "tree"] }, { kind: "directive", type: i2.DaffTreeItemDirective, selector: "[daffTreeItem]", inputs: ["node", "selected"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
34
34
  }
35
35
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: BasicTreeComponent, decorators: [{
36
36
  type: Component,
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1yZW5kZXItbW9kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3RyZWUvc3JjL2ludGVyZmFjZXMvdHJlZS1yZW5kZXItbW9kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBSZXByZXNlbnRzIHRoZSBtb2RlIG9mIHJlbmRlcmluZyBmb3Igbm9kZXMgaW4gYSB0cmVlIFVJLlxuICogLSAnaW4tZG9tJzogQ2xvc2VkIG5vZGVzIGFyZSBwcmVzZW50IGluIHRoZSBEb2N1bWVudCBPYmplY3QgTW9kZWwgKERPTSkuXG4gKiAtICdub3QtaW4tZG9tJzogQ2xvc2VkIG5vZGVzIGFyZSBub3QgcHJlc2VudCBpbiB0aGUgRG9jdW1lbnQgT2JqZWN0IE1vZGVsIChET00pLlxuICovXG5leHBvcnQgdHlwZSBEYWZmVHJlZVJlbmRlck1vZGUgPSAnaW4tZG9tJyB8ICdub3QtaW4tZG9tJztcbiJdfQ==
@@ -2,4 +2,5 @@ export { DaffTreeModule } from './tree.module';
2
2
  export { DaffTreeComponent } from './tree/tree.component';
3
3
  export { DaffTreeItemDirective } from './tree-item/tree-item.directive';
4
4
  export { daffTransformTreeInPlace } from './utils/transform-in-place';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3RyZWUvc3JjL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMvQyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUMxRCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUd4RSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSw0Q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QyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IERhZmZUcmVlTW9kdWxlIH0gZnJvbSAnLi90cmVlLm1vZHVsZSc7XG5leHBvcnQgeyBEYWZmVHJlZUNvbXBvbmVudCB9IGZyb20gJy4vdHJlZS90cmVlLmNvbXBvbmVudCc7XG5leHBvcnQgeyBEYWZmVHJlZUl0ZW1EaXJlY3RpdmUgfSBmcm9tICcuL3RyZWUtaXRlbS90cmVlLWl0ZW0uZGlyZWN0aXZlJztcbmV4cG9ydCB7IERhZmZUcmVlRGF0YSB9IGZyb20gJy4vaW50ZXJmYWNlcy90cmVlLWRhdGEnO1xuZXhwb3J0IHsgRGFmZlRyZWVVaSB9IGZyb20gJy4vaW50ZXJmYWNlcy90cmVlLXVpJztcbmV4cG9ydCB7IGRhZmZUcmFuc2Zvcm1UcmVlSW5QbGFjZSB9IGZyb20gJy4vdXRpbHMvdHJhbnNmb3JtLWluLXBsYWNlJztcbmV4cG9ydCB7IGRhZmZUcmFuc2Zvcm1UcmVlIH0gZnJvbSAnLi91dGlscy90cmFuc2Zvcm0nO1xuZXhwb3J0IHsgRGFmZlRyZWVSZW5kZXJNb2RlIH0gZnJvbSAnLi9pbnRlcmZhY2VzL3RyZWUtcmVuZGVyLW1vZGUnO1xuIl19
@@ -1,10 +1,21 @@
1
- import { ChangeDetectionStrategy, Component, ContentChild, HostBinding, Input, TemplateRef, ViewEncapsulation, } from '@angular/core';
1
+ import { ChangeDetectionStrategy, Component, ContentChild, ElementRef, HostBinding, Input, Renderer2, TemplateRef, ViewEncapsulation, } from '@angular/core';
2
+ import { daffArticleEncapsulatedMixin } from '@daffodil/design';
2
3
  import { DaffTreeNotifierService } from './tree-notifier.service';
3
4
  import { flattenTree, } from '../utils/flatten-tree';
4
5
  import { hydrateTree } from '../utils/hydrate-tree';
5
6
  import * as i0 from "@angular/core";
6
7
  import * as i1 from "./tree-notifier.service";
7
8
  import * as i2 from "@angular/common";
9
+ /**
10
+ * An _elementRef and an instance of renderer2 are needed for the list mixins
11
+ */
12
+ class DaffTreeBase {
13
+ constructor(_elementRef, _renderer) {
14
+ this._elementRef = _elementRef;
15
+ this._renderer = _renderer;
16
+ }
17
+ }
18
+ const _daffTreeBase = daffArticleEncapsulatedMixin((DaffTreeBase));
8
19
  /**
9
20
  * The `DaffTreeComponent` allows you to render tree structures as interactable ui.
10
21
  *
@@ -25,27 +36,12 @@ import * as i2 from "@angular/common";
25
36
  * where `tree` is a {@link DaffTreeData}.
26
37
  *
27
38
  */
28
- export class DaffTreeComponent {
29
- /**
30
- * The tree data you would like to render.
31
- */
32
- get dataTree() {
33
- return this._dataTree;
34
- }
35
- set dataTree(dataTree) {
36
- if (!dataTree) {
37
- this._dataTree = undefined;
38
- this.tree = undefined;
39
- this.flatTree = [];
40
- return;
41
- }
42
- this._dataTree = dataTree;
43
- this.tree = hydrateTree(this.dataTree);
44
- this.flatTree = flattenTree(this.tree);
45
- }
46
- ;
47
- constructor(notifier) {
39
+ export class DaffTreeComponent extends _daffTreeBase {
40
+ constructor(notifier, elementRef, renderer) {
41
+ super(elementRef, renderer);
48
42
  this.notifier = notifier;
43
+ this.elementRef = elementRef;
44
+ this.renderer = renderer;
49
45
  /**
50
46
  * The css class of the daff-tree.
51
47
  *
@@ -55,16 +51,26 @@ export class DaffTreeComponent {
55
51
  /**
56
52
  * The internal tree element.
57
53
  */
58
- this.tree = undefined;
54
+ this._tree = undefined;
59
55
  /**
60
56
  * The flattened tree data. You can iterate through this if you want to inspect
61
57
  * the resulting array structure we computed to render the tree.
62
58
  */
63
59
  this.flatTree = [];
64
- /**
65
- * @docs-private
66
- */
67
- this._dataTree = undefined;
60
+ }
61
+ ngOnChanges(changes) {
62
+ if (!changes.tree.currentValue) {
63
+ this._tree = undefined;
64
+ this.flatTree = [];
65
+ return;
66
+ }
67
+ if (changes.renderMode && !changes.tree) {
68
+ this.flatTree = flattenTree(this._tree, changes.renderMode.currentValue === 'not-in-dom');
69
+ }
70
+ else if (changes.renderMode || changes.tree) {
71
+ this._tree = hydrateTree(changes.tree?.currentValue ?? this.tree);
72
+ this.flatTree = flattenTree(this._tree, (changes.renderMode?.currentValue ?? this.renderMode) === 'not-in-dom');
73
+ }
68
74
  }
69
75
  /**
70
76
  * The track-by function used to reduce tree-item re-renders
@@ -77,25 +83,26 @@ export class DaffTreeComponent {
77
83
  */
78
84
  ngOnInit() {
79
85
  this.notifier.notice$.subscribe(() => {
80
- this.flatTree = flattenTree(this.tree);
86
+ this.flatTree = flattenTree(this._tree, this.renderMode === 'not-in-dom');
81
87
  });
82
88
  }
83
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTreeComponent, deps: [{ token: i1.DaffTreeNotifierService }], target: i0.ɵɵFactoryTarget.Component }); }
84
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: DaffTreeComponent, selector: "ul[daff-tree]", inputs: { dataTree: ["tree", "dataTree"] }, host: { properties: { "class.daff-tree": "this.class" } }, providers: [
89
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTreeComponent, deps: [{ token: i1.DaffTreeNotifierService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
90
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: DaffTreeComponent, selector: "ul[daff-tree]", inputs: { renderMode: "renderMode", tree: "tree" }, host: { properties: { "class.daff-tree": "this.class" } }, providers: [
85
91
  DaffTreeNotifierService,
86
- ], queries: [{ propertyName: "withChildrenTemplate", first: true, predicate: ["daffTreeItemWithChildrenTpl"], descendants: true, static: true }, { propertyName: "treeItemTemplate", first: true, predicate: ["daffTreeItemTpl"], descendants: true, static: true }], ngImport: i0, template: "<ng-container *ngFor=\"let node of flatTree; trackBy: trackByTreeElement\">\n\t<li [attr.aria-level]=\"node.level\">\n\t\t<ng-container \n\t\t\t*ngTemplateOutlet=\"node.hasChildren ? withChildrenTemplate : treeItemTemplate; context: { $implicit: node }\">\n\t\t</ng-container>\t\n\t</li>\n</ng-container>", styles: [".daff-tree{margin:0;padding:0;list-style:none;--tree-padding: 16px}.daff-tree-item{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;position:relative;background:none;border:0;padding:8px 16px 8px 0;line-height:1.5rem;font-weight:400;text-align:left;text-decoration:none;width:100%;padding-left:calc(var(--tree-padding) * (var(--depth)))}.daff-tree-item:before{content:\"\";position:absolute;top:0;bottom:0;left:0;width:4px}.daff-tree-item:focus,.daff-tree-item:focus-visible{z-index:1}.daff-tree-item.selected{font-weight:600}.daff-tree-item__parent{position:relative}.daff-tree-item__parent:after{content:\"\";position:absolute;top:48%;right:16px;display:inline-block;border-right:2px solid currentColor;border-bottom:2px solid currentColor;width:8px;height:8px;transform:translateY(-50%) rotate(45deg);transition:transform .15s}.daff-tree-item__parent.open:after{top:56%;transform:translateY(-50%) rotate(225deg)}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
92
+ ], queries: [{ propertyName: "withChildrenTemplate", first: true, predicate: ["daffTreeItemWithChildrenTpl"], descendants: true, static: true }, { propertyName: "treeItemTemplate", first: true, predicate: ["daffTreeItemTpl"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngFor=\"let node of flatTree; trackBy: trackByTreeElement\">\n\t<ng-container>\n\t\t<li [attr.aria-level]=\"node.level\" [class.hidden]=\"!node.visible\">\n\t\t\t<ng-container\n\t\t\t\t*ngTemplateOutlet=\"node.hasChildren ? withChildrenTemplate : treeItemTemplate; context: { $implicit: node }\">\n\t\t\t</ng-container>\n\t\t</li>\n\t</ng-container>\n</ng-container>", styles: [".daff-tree{margin:0;padding:0;list-style:none;--tree-padding: 16px}.daff-tree li.hidden{display:none}.daff-tree-item{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;position:relative;background:none;border:0;padding:8px 16px 8px 0;line-height:1.5rem;font-weight:400;text-align:left;text-decoration:none;width:100%;padding-left:calc(var(--tree-padding) * (var(--depth)))}.daff-tree-item:before{content:\"\";position:absolute;top:0;bottom:0;left:0;width:4px}.daff-tree-item:focus,.daff-tree-item:focus-visible{z-index:1}.daff-tree-item.selected{font-weight:600}.daff-tree-item__parent{position:relative}.daff-tree-item__parent:after{content:\"\";position:absolute;top:48%;right:16px;display:inline-block;border-right:2px solid currentColor;border-bottom:2px solid currentColor;width:8px;height:8px;transform:translateY(-50%) rotate(45deg);transition:transform .15s}.daff-tree-item__parent.open:after{top:56%;transform:translateY(-50%) rotate(225deg)}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
87
93
  }
88
94
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffTreeComponent, decorators: [{
89
95
  type: Component,
90
96
  args: [{ selector: 'ul[daff-tree]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
91
97
  DaffTreeNotifierService,
92
- ], template: "<ng-container *ngFor=\"let node of flatTree; trackBy: trackByTreeElement\">\n\t<li [attr.aria-level]=\"node.level\">\n\t\t<ng-container \n\t\t\t*ngTemplateOutlet=\"node.hasChildren ? withChildrenTemplate : treeItemTemplate; context: { $implicit: node }\">\n\t\t</ng-container>\t\n\t</li>\n</ng-container>", styles: [".daff-tree{margin:0;padding:0;list-style:none;--tree-padding: 16px}.daff-tree-item{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;position:relative;background:none;border:0;padding:8px 16px 8px 0;line-height:1.5rem;font-weight:400;text-align:left;text-decoration:none;width:100%;padding-left:calc(var(--tree-padding) * (var(--depth)))}.daff-tree-item:before{content:\"\";position:absolute;top:0;bottom:0;left:0;width:4px}.daff-tree-item:focus,.daff-tree-item:focus-visible{z-index:1}.daff-tree-item.selected{font-weight:600}.daff-tree-item__parent{position:relative}.daff-tree-item__parent:after{content:\"\";position:absolute;top:48%;right:16px;display:inline-block;border-right:2px solid currentColor;border-bottom:2px solid currentColor;width:8px;height:8px;transform:translateY(-50%) rotate(45deg);transition:transform .15s}.daff-tree-item__parent.open:after{top:56%;transform:translateY(-50%) rotate(225deg)}\n"] }]
93
- }], ctorParameters: () => [{ type: i1.DaffTreeNotifierService }], propDecorators: { class: [{
98
+ ], template: "<ng-container *ngFor=\"let node of flatTree; trackBy: trackByTreeElement\">\n\t<ng-container>\n\t\t<li [attr.aria-level]=\"node.level\" [class.hidden]=\"!node.visible\">\n\t\t\t<ng-container\n\t\t\t\t*ngTemplateOutlet=\"node.hasChildren ? withChildrenTemplate : treeItemTemplate; context: { $implicit: node }\">\n\t\t\t</ng-container>\n\t\t</li>\n\t</ng-container>\n</ng-container>", styles: [".daff-tree{margin:0;padding:0;list-style:none;--tree-padding: 16px}.daff-tree li.hidden{display:none}.daff-tree-item{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;position:relative;background:none;border:0;padding:8px 16px 8px 0;line-height:1.5rem;font-weight:400;text-align:left;text-decoration:none;width:100%;padding-left:calc(var(--tree-padding) * (var(--depth)))}.daff-tree-item:before{content:\"\";position:absolute;top:0;bottom:0;left:0;width:4px}.daff-tree-item:focus,.daff-tree-item:focus-visible{z-index:1}.daff-tree-item.selected{font-weight:600}.daff-tree-item__parent{position:relative}.daff-tree-item__parent:after{content:\"\";position:absolute;top:48%;right:16px;display:inline-block;border-right:2px solid currentColor;border-bottom:2px solid currentColor;width:8px;height:8px;transform:translateY(-50%) rotate(45deg);transition:transform .15s}.daff-tree-item__parent.open:after{top:56%;transform:translateY(-50%) rotate(225deg)}\n"] }]
99
+ }], ctorParameters: () => [{ type: i1.DaffTreeNotifierService }, { type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { class: [{
94
100
  type: HostBinding,
95
101
  args: ['class.daff-tree']
96
- }], dataTree: [{
97
- type: Input,
98
- args: ['tree']
102
+ }], renderMode: [{
103
+ type: Input
104
+ }], tree: [{
105
+ type: Input
99
106
  }], withChildrenTemplate: [{
100
107
  type: ContentChild,
101
108
  args: ['daffTreeItemWithChildrenTpl', { static: true }]
@@ -103,4 +110,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImpor
103
110
  type: ContentChild,
104
111
  args: ['daffTreeItemTpl', { static: true }]
105
112
  }] } });
106
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi90cmVlL3NyYy90cmVlL3RyZWUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vdH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pcy5yZW5kZXJNb2RlID09PSAnbm90LWluLWRvbScpO1xuICAgIH0pO1xuICB9XG59XG4iLCI8bmctY29udGFpbmVyICpuZ0Zvcj1cImxldCBub2RlIG9mIGZsYXRUcmVlOyB0cmFja0J5OiB0cmFja0J5VHJlZUVsZW1lbnRcIj5cblx0PG5nLWNvbnRhaW5lcj5cblx0XHQ8bGkgW2F0dHIuYXJpYS1sZXZlbF09XCJub2RlLmxldmVsXCIgW2NsYXNzLmhpZGRlbl09XCIhbm9kZS52aXNpYmxlXCI+XG5cdFx0XHQ8bmctY29udGFpbmVyXG5cdFx0XHRcdCpuZ1RlbXBsYXRlT3V0bGV0PVwibm9kZS5oYXNDaGlsZHJlbiA/IHdpdGhDaGlsZHJlblRlbXBsYXRlIDogdHJlZUl0ZW1UZW1wbGF0ZTsgY29udGV4dDogeyAkaW1wbGljaXQ6IG5vZGUgfVwiPlxuXHRcdFx0PC9uZy1jb250YWluZXI+XG5cdFx0PC9saT5cblx0PC9uZy1jb250YWluZXI+XG48L25nLWNvbnRhaW5lcj4iXX0=
@@ -2,14 +2,15 @@
2
2
  * Flatten a DaffTreeUi<unknown> into an array, removing elements from the array
3
3
  * below nodes in the tree that are not open.
4
4
  */
5
- export const flattenTree = (daffUiTree) => {
5
+ export const flattenTree = (daffUiTree, removeNodes = false) => {
6
6
  const tree = [];
7
+ if (!daffUiTree) {
8
+ return [];
9
+ }
7
10
  let items = [
8
11
  {
9
12
  ...daffUiTree,
10
- title: 'Root',
11
13
  level: 0,
12
- url: '/',
13
14
  data: undefined,
14
15
  open: true,
15
16
  _treeRef: daffUiTree,
@@ -20,22 +21,33 @@ export const flattenTree = (daffUiTree) => {
20
21
  if (!el) {
21
22
  break;
22
23
  }
23
- if (el.open) {
24
- items = [
25
- ...items,
26
- ...el.items.map((i) => ({
27
- ...i,
28
- level: el.level + 1,
29
- _treeRef: i,
30
- })).reverse(),
31
- ];
24
+ items = [
25
+ ...items,
26
+ ...el.items.map((i) => ({
27
+ ...i,
28
+ level: el.level + 1,
29
+ _treeRef: i,
30
+ })).reverse(),
31
+ ];
32
+ if (!removeNodes && el._treeRef.parent) {
33
+ tree.push({
34
+ id: el.id,
35
+ title: el.title,
36
+ level: el.level,
37
+ url: el.url,
38
+ visible: el._treeRef.parent?.open,
39
+ hasChildren: el.items.length > 0,
40
+ data: undefined,
41
+ _treeRef: el._treeRef,
42
+ });
32
43
  }
33
- if (el._treeRef.parent?.open) {
44
+ else if (removeNodes && el._treeRef.parent?.open) {
34
45
  tree.push({
35
46
  id: el.id,
36
47
  title: el.title,
37
48
  level: el.level,
38
49
  url: el.url,
50
+ visible: el._treeRef.parent?.open,
39
51
  hasChildren: el.items.length > 0,
40
52
  data: undefined,
41
53
  _treeRef: el._treeRef,
@@ -44,4 +56,4 @@ export const flattenTree = (daffUiTree) => {
44
56
  }
45
57
  return tree;
46
58
  };
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxhdHRlbi10cmVlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vdHJlZS9zcmMvdXRpbHMvZmxhdHRlbi10cmVlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdCQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxXQUFXLEdBQUcsQ0FBQyxVQUErQixFQUFzQixFQUFFO0lBQ2pGLE1BQU0sSUFBSSxHQUF1QixFQUFFLENBQUM7SUFFcEMsSUFBSSxLQUFLLEdBQUc7UUFDVjtZQUNFLEdBQUcsVUFBVTtZQUNiLEtBQUssRUFBRSxNQUFNO1lBQ2IsS0FBSyxFQUFFLENBQUM7WUFDUixHQUFHLEVBQUUsR0FBRztZQUNSLElBQUksRUFBRSxTQUFTO1lBQ2YsSUFBSSxFQUFFLElBQUk7WUFDVixRQUFRLEVBQUUsVUFBVTtTQUNyQjtLQUNGLENBQUM7SUFHR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25 @@
1
+ /**
2
+ * Transform a tree-like structure into a {@link DaffTreeData}.
3
+ *
4
+ * @param tree - The data structure representing tree-like data.
5
+ * @param transformFn - A user-supplied function that will transform the user
6
+ * type into a {@link DaffTreeData}
7
+ * @param key - The property of the your tree that indicates which
8
+ * key contains the "children" of your tree structure.
9
+ *
10
+ */
11
+ export const daffTransformTree = (tree, transformFn, key) => {
12
+ const transformedTree = transformFn(tree);
13
+ const queue = [{ node: tree, parent: transformedTree }];
14
+ while (queue.length > 0) {
15
+ const { node, parent } = queue.shift();
16
+ const childItems = node[key];
17
+ for (const child of childItems) {
18
+ const transformedChild = transformFn(child);
19
+ parent.items.push(transformedChild);
20
+ queue.push({ node: child, parent: transformedChild });
21
+ }
22
+ }
23
+ return transformedTree;
24
+ };
25
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vdHJlZS9zcmMvdXRpbHMvdHJhbnNmb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBOzs7Ozs7Ozs7R0FTRztBQUNILE1BQU0sQ0FBQyxNQUFNLGlCQUFpQixHQUFHLENBSy9CLElBQU8sRUFDUCxXQUF5QyxFQUN6QyxHQUE4QixFQUNiLEVBQUU7SUFFbkIsTUFBTSxlQUFlLEdBQW9CLFdBQVcsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUUzRCxNQUFNLEtBQUssR0FBMkMsQ0FBQyxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsTUFBTSxFQUFFLGVBQWUsRUFBRSxDQUFDLENBQUM7SUFFaEcsT0FBTyxLQUFLLENBQUMsTUFBTSxHQUFHLENBQUMsRUFBRTtRQUN2QixNQUFNLEVBQUUsSUFBSSxFQUFFLE1BQU0sRUFBRSxHQUFHLEtBQUssQ0FBQyxLQU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ogdHJhbnNmb3JtZWRDaGlsZCB9KTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gdHJhbnNmb3JtZWRUcmVlO1xufTtcbiJdfQ==
@@ -6,11 +6,11 @@ import { CommonModule } from '@angular/common';
6
6
 
7
7
  class ArticleHeadingsComponent {
8
8
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ArticleHeadingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: ArticleHeadingsComponent, selector: "article-headings", ngImport: i0, template: "<daff-article>\n <h1>This is a h1 heading.</h1>\n <h2>This is a h2 heading.</h2>\n <h3>This is a h3 heading.</h3>\n <h4>This is a h4 heading.</h4>\n <h5>This is a h5 heading.</h5>\n <h6>This is a h6 heading.</h6>\n</daff-article>", dependencies: [{ kind: "component", type: i1.DaffArticleComponent, selector: "daff-article" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
9
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: ArticleHeadingsComponent, selector: "article-headings", ngImport: i0, template: "<h1>This is a h1 heading with <code>code</code></h1>\n<h2>This is a h2 heading with <code>code</code></h2>\n<h3>This is a h3 heading with <code>code</code></h3>\n<h4>This is a h4 heading with <code>code</code></h4>\n<h5>This is a h5 heading with <code>code</code></h5>\n<h6>This is a h6 heading with <code>code</code></h6>", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
10
10
  }
11
11
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ArticleHeadingsComponent, decorators: [{
12
12
  type: Component,
13
- args: [{ selector: 'article-headings', changeDetection: ChangeDetectionStrategy.OnPush, template: "<daff-article>\n <h1>This is a h1 heading.</h1>\n <h2>This is a h2 heading.</h2>\n <h3>This is a h3 heading.</h3>\n <h4>This is a h4 heading.</h4>\n <h5>This is a h5 heading.</h5>\n <h6>This is a h6 heading.</h6>\n</daff-article>" }]
13
+ args: [{ selector: 'article-headings', changeDetection: ChangeDetectionStrategy.OnPush, template: "<h1>This is a h1 heading with <code>code</code></h1>\n<h2>This is a h2 heading with <code>code</code></h2>\n<h3>This is a h3 heading with <code>code</code></h3>\n<h4>This is a h4 heading with <code>code</code></h4>\n<h5>This is a h5 heading with <code>code</code></h5>\n<h6>This is a h6 heading with <code>code</code></h6>" }]
14
14
  }] });
15
15
 
16
16
  class ArticleCodeInlineComponent {
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-design-article-examples.mjs","sources":["../../../libs/design/article/examples/src/article-headings/article-headings.component.ts","../../../libs/design/article/examples/src/article-headings/article-headings.component.html","../../../libs/design/article/examples/src/article-code-inline/article-code-inline.component.ts","../../../libs/design/article/examples/src/article-code-inline/article-code-inline.component.html","../../../libs/design/article/examples/src/article-hr/article-hr.component.ts","../../../libs/design/article/examples/src/article-hr/article-hr.component.html","../../../libs/design/article/examples/src/article-ol/article-ol.component.ts","../../../libs/design/article/examples/src/article-ol/article-ol.component.html","../../../libs/design/article/examples/src/article-ul/article-ul.component.ts","../../../libs/design/article/examples/src/article-ul/article-ul.component.html","../../../libs/design/article/examples/src/article-meta/article-meta.component.ts","../../../libs/design/article/examples/src/article-meta/article-meta.component.html","../../../libs/design/article/examples/src/article-link/article-link.component.ts","../../../libs/design/article/examples/src/article-link/article-link.component.html","../../../libs/design/article/examples/src/article-lead/article-lead.component.ts","../../../libs/design/article/examples/src/article-lead/article-lead.component.html","../../../libs/design/article/examples/src/article-blockquote/article-blockquote.component.ts","../../../libs/design/article/examples/src/article-blockquote/article-blockquote.component.html","../../../libs/design/article/examples/src/article-table/article-table.component.ts","../../../libs/design/article/examples/src/article-table/article-table.component.html","../../../libs/design/article/examples/src/article-code-block/article-code-block.component.ts","../../../libs/design/article/examples/src/article-code-block/article-code-block.component.html","../../../libs/design/article/examples/src/examples.ts","../../../libs/design/article/examples/src/article-examples.module.ts","../../../libs/design/article/examples/src/daffodil-design-article-examples.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-headings',\n templateUrl: './article-headings.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleHeadingsComponent {}\n","<daff-article>\n <h1>This is a h1 heading.</h1>\n <h2>This is a h2 heading.</h2>\n <h3>This is a h3 heading.</h3>\n <h4>This is a h4 heading.</h4>\n <h5>This is a h5 heading.</h5>\n <h6>This is a h6 heading.</h6>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-code-inline',\n templateUrl: './article-code-inline.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleCodeInlineComponent {}\n","<daff-article>\n <p>We could be discussing <code>functions</code> or <code>types</code>, but we should indicate the difference between these elements and regular text!</p>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-hr',\n templateUrl: './article-hr.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleHrComponent {}\n","<daff-article>\n <hr>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-ol',\n templateUrl: './article-ol.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleOlComponent {}\n","<daff-article>\n <ol>\n <li>This is an ordered list.</li>\n <li>This is an ordered list.</li>\n <li>This is an ordered list.</li>\n <li>This is an ordered list.</li>\n <li>This is an ordered list.</li>\n <li>This is an ordered list.</li>\n </ol>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-ul',\n templateUrl: './article-ul.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleUlComponent {}\n","<daff-article>\n <ul>\n <li>This is an unordered list.</li>\n <li>This is an unordered list.</li>\n <li>This is an unordered list.</li>\n <li>This is an unordered list.</li>\n <li>This is an unordered list.</li>\n <li>This is an unordered list.</li>\n </ul>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-meta',\n templateUrl: './article-meta.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleMetaComponent {}\n","<daff-article>\n <p daffArticleMeta>Some interesting information about an article</p>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-link',\n templateUrl: './article-link.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleLinkComponent {}\n","<daff-article>\n <a href=\"#\">This is a link.</a>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-lead',\n templateUrl: './article-lead.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleLeadComponent {}\n","<daff-article>\n <p daffArticleLead>This is an Article Lead.</p>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-blockquote',\n templateUrl: './article-blockquote.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleBlockquoteComponent {}\n","<daff-article>\n <blockquote>\n This is a blockquote. This can be used for customer testimonals, document references, etc.\n <cite>Name your quote source here.</cite>\n </blockquote>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-table',\n templateUrl: './article-table.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleTableComponent {}\n","<daff-article>\n <table>\n <thead>\n <tr>\n <th>Product Name</th>\n <th>Description</th>\n <th>Price</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>T-Shirt</td>\n <td>White Crew Neck T-Shirt</td>\n <td>$20.00</td>\n </tr>\n <tr>\n <td>Shorts</td>\n <td>Black Denim Shorts</td>\n <td>$40.00</td>\n </tr>\n <tr>\n <td>Shoes</td>\n <td>White Sneakers</td>\n <td>$100.00</td>\n </tr>\n </tbody>\n </table>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-code-block',\n templateUrl: './article-code-block.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleCodeBlockComponent {}\n","<daff-article>\n<pre><code>This is a line of code.\nThis is another line of code.\n</code></pre>\n</daff-article>\n","import { ArticleBlockquoteComponent } from './article-blockquote/article-blockquote.component';\nimport { ArticleCodeBlockComponent } from './article-code-block/article-code-block.component';\nimport { ArticleCodeInlineComponent } from './article-code-inline/article-code-inline.component';\nimport { ArticleHeadingsComponent } from './article-headings/article-headings.component';\nimport { ArticleHrComponent } from './article-hr/article-hr.component';\nimport { ArticleLeadComponent } from './article-lead/article-lead.component';\nimport { ArticleLinkComponent } from './article-link/article-link.component';\nimport { ArticleMetaComponent } from './article-meta/article-meta.component';\nimport { ArticleOlComponent } from './article-ol/article-ol.component';\nimport { ArticleTableComponent } from './article-table/article-table.component';\nimport { ArticleUlComponent } from './article-ul/article-ul.component';\n\nexport const ARTICLE_EXAMPLES = [\n ArticleBlockquoteComponent,\n ArticleCodeBlockComponent,\n ArticleCodeInlineComponent,\n ArticleHeadingsComponent,\n ArticleHrComponent,\n ArticleLeadComponent,\n ArticleLinkComponent,\n ArticleMetaComponent,\n ArticleOlComponent,\n ArticleUlComponent,\n ArticleTableComponent,\n];\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { DaffArticleModule } from '@daffodil/design/article';\n\nimport { ARTICLE_EXAMPLES } from './examples';\n\n@NgModule({\n declarations: [\n ...ARTICLE_EXAMPLES,\n ],\n imports: [\n CommonModule,\n DaffArticleModule,\n ],\n})\nexport class ArticleExamplesModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,wBAAwB,CAAA;iIAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAxB,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,wDCXrC,6OAOe,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,cAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FDIF,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;+BAEE,kBAAkB,EAAA,eAAA,EAEX,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6OAAA,EAAA,CAAA;;;MEEpC,0BAA0B,CAAA;iIAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA1B,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CA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;;;"}
1
+ {"version":3,"file":"daffodil-design-article-examples.mjs","sources":["../../../libs/design/article/examples/src/article-headings/article-headings.component.ts","../../../libs/design/article/examples/src/article-headings/article-headings.component.html","../../../libs/design/article/examples/src/article-code-inline/article-code-inline.component.ts","../../../libs/design/article/examples/src/article-code-inline/article-code-inline.component.html","../../../libs/design/article/examples/src/article-hr/article-hr.component.ts","../../../libs/design/article/examples/src/article-hr/article-hr.component.html","../../../libs/design/article/examples/src/article-ol/article-ol.component.ts","../../../libs/design/article/examples/src/article-ol/article-ol.component.html","../../../libs/design/article/examples/src/article-ul/article-ul.component.ts","../../../libs/design/article/examples/src/article-ul/article-ul.component.html","../../../libs/design/article/examples/src/article-meta/article-meta.component.ts","../../../libs/design/article/examples/src/article-meta/article-meta.component.html","../../../libs/design/article/examples/src/article-link/article-link.component.ts","../../../libs/design/article/examples/src/article-link/article-link.component.html","../../../libs/design/article/examples/src/article-lead/article-lead.component.ts","../../../libs/design/article/examples/src/article-lead/article-lead.component.html","../../../libs/design/article/examples/src/article-blockquote/article-blockquote.component.ts","../../../libs/design/article/examples/src/article-blockquote/article-blockquote.component.html","../../../libs/design/article/examples/src/article-table/article-table.component.ts","../../../libs/design/article/examples/src/article-table/article-table.component.html","../../../libs/design/article/examples/src/article-code-block/article-code-block.component.ts","../../../libs/design/article/examples/src/article-code-block/article-code-block.component.html","../../../libs/design/article/examples/src/examples.ts","../../../libs/design/article/examples/src/article-examples.module.ts","../../../libs/design/article/examples/src/daffodil-design-article-examples.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-headings',\n templateUrl: './article-headings.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleHeadingsComponent {}\n","<h1>This is a h1 heading with <code>code</code></h1>\n<h2>This is a h2 heading with <code>code</code></h2>\n<h3>This is a h3 heading with <code>code</code></h3>\n<h4>This is a h4 heading with <code>code</code></h4>\n<h5>This is a h5 heading with <code>code</code></h5>\n<h6>This is a h6 heading with <code>code</code></h6>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-code-inline',\n templateUrl: './article-code-inline.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleCodeInlineComponent {}\n","<daff-article>\n <p>We could be discussing <code>functions</code> or <code>types</code>, but we should indicate the difference between these elements and regular text!</p>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-hr',\n templateUrl: './article-hr.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleHrComponent {}\n","<daff-article>\n <hr>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-ol',\n templateUrl: './article-ol.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleOlComponent {}\n","<daff-article>\n <ol>\n <li>This is an ordered list.</li>\n <li>This is an ordered list.</li>\n <li>This is an ordered list.</li>\n <li>This is an ordered list.</li>\n <li>This is an ordered list.</li>\n <li>This is an ordered list.</li>\n </ol>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-ul',\n templateUrl: './article-ul.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleUlComponent {}\n","<daff-article>\n <ul>\n <li>This is an unordered list.</li>\n <li>This is an unordered list.</li>\n <li>This is an unordered list.</li>\n <li>This is an unordered list.</li>\n <li>This is an unordered list.</li>\n <li>This is an unordered list.</li>\n </ul>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-meta',\n templateUrl: './article-meta.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleMetaComponent {}\n","<daff-article>\n <p daffArticleMeta>Some interesting information about an article</p>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-link',\n templateUrl: './article-link.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleLinkComponent {}\n","<daff-article>\n <a href=\"#\">This is a link.</a>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-lead',\n templateUrl: './article-lead.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleLeadComponent {}\n","<daff-article>\n <p daffArticleLead>This is an Article Lead.</p>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-blockquote',\n templateUrl: './article-blockquote.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleBlockquoteComponent {}\n","<daff-article>\n <blockquote>\n This is a blockquote. This can be used for customer testimonals, document references, etc.\n <cite>Name your quote source here.</cite>\n </blockquote>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-table',\n templateUrl: './article-table.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleTableComponent {}\n","<daff-article>\n <table>\n <thead>\n <tr>\n <th>Product Name</th>\n <th>Description</th>\n <th>Price</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>T-Shirt</td>\n <td>White Crew Neck T-Shirt</td>\n <td>$20.00</td>\n </tr>\n <tr>\n <td>Shorts</td>\n <td>Black Denim Shorts</td>\n <td>$40.00</td>\n </tr>\n <tr>\n <td>Shoes</td>\n <td>White Sneakers</td>\n <td>$100.00</td>\n </tr>\n </tbody>\n </table>\n</daff-article>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'article-code-block',\n templateUrl: './article-code-block.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ArticleCodeBlockComponent {}\n","<daff-article>\n<pre><code>This is a line of code.\nThis is another line of code.\n</code></pre>\n</daff-article>\n","import { ArticleBlockquoteComponent } from './article-blockquote/article-blockquote.component';\nimport { ArticleCodeBlockComponent } from './article-code-block/article-code-block.component';\nimport { ArticleCodeInlineComponent } from './article-code-inline/article-code-inline.component';\nimport { ArticleHeadingsComponent } from './article-headings/article-headings.component';\nimport { ArticleHrComponent } from './article-hr/article-hr.component';\nimport { ArticleLeadComponent } from './article-lead/article-lead.component';\nimport { ArticleLinkComponent } from './article-link/article-link.component';\nimport { ArticleMetaComponent } from './article-meta/article-meta.component';\nimport { ArticleOlComponent } from './article-ol/article-ol.component';\nimport { ArticleTableComponent } from './article-table/article-table.component';\nimport { ArticleUlComponent } from './article-ul/article-ul.component';\n\nexport const ARTICLE_EXAMPLES = [\n ArticleBlockquoteComponent,\n ArticleCodeBlockComponent,\n ArticleCodeInlineComponent,\n ArticleHeadingsComponent,\n ArticleHrComponent,\n ArticleLeadComponent,\n ArticleLinkComponent,\n ArticleMetaComponent,\n ArticleOlComponent,\n ArticleUlComponent,\n ArticleTableComponent,\n];\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { DaffArticleModule } from '@daffodil/design/article';\n\nimport { ARTICLE_EXAMPLES } from './examples';\n\n@NgModule({\n declarations: [\n ...ARTICLE_EXAMPLES,\n ],\n imports: [\n CommonModule,\n DaffArticleModule,\n ],\n})\nexport class ArticleExamplesModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n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,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAArB,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,8RAJ9B,YAAY;YACZ,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;AAGR,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,YAJ9B,YAAY;YACZ,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGR,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBATjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;AACZ,wBAAA,GAAG,gBAAgB;AACpB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;AAClB,qBAAA;AACF,iBAAA,CAAA;;;ACfD;;AAEG;;;;"}
@@ -17,11 +17,11 @@ class DaffArticleComponent {
17
17
  this.role = 'article';
18
18
  }
19
19
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffArticleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
20
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: DaffArticleComponent, selector: "daff-article", host: { properties: { "class.daff-article": "this.class", "attr.role": "this.role" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".daff-article{display:block;overflow:hidden}.daff-article a:not(.daff-ae *,.daff-ae){font-weight:600;text-decoration:none}.daff-article a:not(.daff-ae *,.daff-ae):hover{text-decoration:underline}.daff-article h1:not(.daff-ae *,.daff-ae),.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-bottom:1.5rem;word-wrap:break-word}.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-top:2.5rem}.daff-article h1:not(.daff-ae *,.daff-ae){font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width: 768px){.daff-article h1:not(.daff-ae *,.daff-ae){font-size:3rem;line-height:3.5rem}}.daff-article h2:not(.daff-ae *,.daff-ae){font-size:2rem;line-height:2.5rem}.daff-article h3:not(.daff-ae *,.daff-ae){font-size:1.5rem;line-height:2rem}.daff-article h4:not(.daff-ae *,.daff-ae){font-size:1.25rem;line-height:1.5rem}.daff-article h5:not(.daff-ae *,.daff-ae){font-size:1.125rem;line-height:1.5rem}.daff-article h6:not(.daff-ae *,.daff-ae){font-size:1rem;line-height:1.5rem}.daff-article p:not(.daff-ae *,.daff-ae){margin:0 0 1rem}.daff-article strong{font-weight:700}.daff-article pre:not(.daff-ae *,.daff-ae){margin:1.5rem 0}.daff-article pre:not(.daff-ae *,.daff-ae):last-child{margin-bottom:0}.daff-article pre{display:block;border-radius:4px;font-size:.875rem;line-height:1.5rem;padding:1.5rem;overflow:auto;white-space:pre-wrap}.daff-article pre code{display:block;padding:0}.daff-article code{display:inline-block;border-radius:4px;font-size:.875rem;line-height:1rem;padding:.25rem}.daff-article__title{font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width: 768px){.daff-article__title{font-size:3rem;line-height:3.5rem}}.daff-article__lead{font-size:1.25rem;line-height:1.75rem;font-weight:400;margin:0}.daff-article__lead code{font-size:1.25rem;line-height:1.5rem;font-weight:400}.daff-article__meta{font-size:.875rem}.daff-article hr{border:0;height:1px;margin:2rem 0}.daff-article blockquote{border-radius:4px;margin:1.5rem 0;padding:1rem 1.5rem}.daff-article blockquote:last-child{margin-bottom:0}.daff-article blockquote cite{font-size:.875rem;font-weight:400;line-height:1.25rem;display:block;margin-top:1rem}.daff-article blockquote p:last-of-type{margin:0}.daff-article table{display:block;border-collapse:collapse;margin:1.5rem 0;overflow:auto;width:100%}.daff-article table:last-child{margin-bottom:0}.daff-article table th{font-weight:600;outline:0;padding:1rem;text-align:left;vertical-align:bottom;box-sizing:border-box}.daff-article table td{padding:.5rem 1rem;vertical-align:top;box-sizing:border-box}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
20
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: DaffArticleComponent, selector: "daff-article", host: { properties: { "class.daff-article": "this.class", "attr.role": "this.role" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".daff-article{display:block;overflow:hidden}.daff-article a:not(.daff-ae *,.daff-ae){font-weight:600;text-decoration:none}.daff-article a:not(.daff-ae *,.daff-ae):hover{text-decoration:underline}.daff-article h1:not(.daff-ae *,.daff-ae),.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-bottom:1.5rem;word-wrap:break-word}.daff-article h1:not(.daff-ae *,.daff-ae) code,.daff-article h2:not(.daff-ae *,.daff-ae) code,.daff-article h3:not(.daff-ae *,.daff-ae) code,.daff-article h4:not(.daff-ae *,.daff-ae) code,.daff-article h5:not(.daff-ae *,.daff-ae) code,.daff-article h6:not(.daff-ae *,.daff-ae) code{font-size:.875em;font-weight:600;line-height:.875em}.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-top:2.5rem}.daff-article h1:not(.daff-ae *,.daff-ae){font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width: 768px){.daff-article h1:not(.daff-ae *,.daff-ae){font-size:3rem;line-height:3.5rem}}.daff-article h2:not(.daff-ae *,.daff-ae){font-size:2rem;line-height:2.5rem}.daff-article h3:not(.daff-ae *,.daff-ae){font-size:1.5rem;line-height:2rem}.daff-article h4:not(.daff-ae *,.daff-ae){font-size:1.25rem;line-height:1.5rem}.daff-article h5:not(.daff-ae *,.daff-ae){font-size:1.125rem;line-height:1.5rem}.daff-article h6:not(.daff-ae *,.daff-ae){font-size:1rem;line-height:1.5rem}.daff-article p:not(.daff-ae *,.daff-ae){margin:0 0 1rem}.daff-article strong{font-weight:700}.daff-article pre{display:block;border-radius:.25em;font-size:.875rem;line-height:1.5rem;margin:1.5rem 0;padding:1.5rem;overflow:auto;white-space:pre-wrap}.daff-article pre:last-child{margin-bottom:0}.daff-article pre code{display:block;padding:0}.daff-article code{border-radius:.25em;font-size:.875rem;line-height:1rem;padding:.25em}.daff-article__title{font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width: 768px){.daff-article__title{font-size:3rem;line-height:3.5rem}}.daff-article__lead{font-size:1.25rem;line-height:1.75rem;font-weight:400;margin:0}.daff-article__lead code{font-size:1.25rem;line-height:1.5rem;font-weight:400}.daff-article__meta{font-size:.875rem}.daff-article hr{border:0;height:1px;margin:2rem 0}.daff-article blockquote{border-radius:.25em;margin:1.5rem 0;padding:1rem 1.5rem}.daff-article blockquote:last-child{margin-bottom:0}.daff-article blockquote cite{font-size:.875rem;font-weight:400;line-height:1.25rem;display:block;margin-top:1rem}.daff-article blockquote p:last-of-type{margin:0}.daff-article table{display:block;border-collapse:collapse;margin:1.5rem 0;overflow:auto;width:100%}.daff-article table:last-child{margin-bottom:0}.daff-article table th{font-weight:600;outline:0;padding:1rem;text-align:left;vertical-align:bottom;box-sizing:border-box}.daff-article table td{padding:.5rem 1rem;vertical-align:top;box-sizing:border-box}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
21
21
  }
22
22
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffArticleComponent, decorators: [{
23
23
  type: Component,
24
- args: [{ selector: 'daff-article', template: '<ng-content></ng-content>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".daff-article{display:block;overflow:hidden}.daff-article a:not(.daff-ae *,.daff-ae){font-weight:600;text-decoration:none}.daff-article a:not(.daff-ae *,.daff-ae):hover{text-decoration:underline}.daff-article h1:not(.daff-ae *,.daff-ae),.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-bottom:1.5rem;word-wrap:break-word}.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-top:2.5rem}.daff-article h1:not(.daff-ae *,.daff-ae){font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width: 768px){.daff-article h1:not(.daff-ae *,.daff-ae){font-size:3rem;line-height:3.5rem}}.daff-article h2:not(.daff-ae *,.daff-ae){font-size:2rem;line-height:2.5rem}.daff-article h3:not(.daff-ae *,.daff-ae){font-size:1.5rem;line-height:2rem}.daff-article h4:not(.daff-ae *,.daff-ae){font-size:1.25rem;line-height:1.5rem}.daff-article h5:not(.daff-ae *,.daff-ae){font-size:1.125rem;line-height:1.5rem}.daff-article h6:not(.daff-ae *,.daff-ae){font-size:1rem;line-height:1.5rem}.daff-article p:not(.daff-ae *,.daff-ae){margin:0 0 1rem}.daff-article strong{font-weight:700}.daff-article pre:not(.daff-ae *,.daff-ae){margin:1.5rem 0}.daff-article pre:not(.daff-ae *,.daff-ae):last-child{margin-bottom:0}.daff-article pre{display:block;border-radius:4px;font-size:.875rem;line-height:1.5rem;padding:1.5rem;overflow:auto;white-space:pre-wrap}.daff-article pre code{display:block;padding:0}.daff-article code{display:inline-block;border-radius:4px;font-size:.875rem;line-height:1rem;padding:.25rem}.daff-article__title{font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width: 768px){.daff-article__title{font-size:3rem;line-height:3.5rem}}.daff-article__lead{font-size:1.25rem;line-height:1.75rem;font-weight:400;margin:0}.daff-article__lead code{font-size:1.25rem;line-height:1.5rem;font-weight:400}.daff-article__meta{font-size:.875rem}.daff-article hr{border:0;height:1px;margin:2rem 0}.daff-article blockquote{border-radius:4px;margin:1.5rem 0;padding:1rem 1.5rem}.daff-article blockquote:last-child{margin-bottom:0}.daff-article blockquote cite{font-size:.875rem;font-weight:400;line-height:1.25rem;display:block;margin-top:1rem}.daff-article blockquote p:last-of-type{margin:0}.daff-article table{display:block;border-collapse:collapse;margin:1.5rem 0;overflow:auto;width:100%}.daff-article table:last-child{margin-bottom:0}.daff-article table th{font-weight:600;outline:0;padding:1rem;text-align:left;vertical-align:bottom;box-sizing:border-box}.daff-article table td{padding:.5rem 1rem;vertical-align:top;box-sizing:border-box}\n"] }]
24
+ args: [{ selector: 'daff-article', template: '<ng-content></ng-content>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".daff-article{display:block;overflow:hidden}.daff-article a:not(.daff-ae *,.daff-ae){font-weight:600;text-decoration:none}.daff-article a:not(.daff-ae *,.daff-ae):hover{text-decoration:underline}.daff-article h1:not(.daff-ae *,.daff-ae),.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-bottom:1.5rem;word-wrap:break-word}.daff-article h1:not(.daff-ae *,.daff-ae) code,.daff-article h2:not(.daff-ae *,.daff-ae) code,.daff-article h3:not(.daff-ae *,.daff-ae) code,.daff-article h4:not(.daff-ae *,.daff-ae) code,.daff-article h5:not(.daff-ae *,.daff-ae) code,.daff-article h6:not(.daff-ae *,.daff-ae) code{font-size:.875em;font-weight:600;line-height:.875em}.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-top:2.5rem}.daff-article h1:not(.daff-ae *,.daff-ae){font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width: 768px){.daff-article h1:not(.daff-ae *,.daff-ae){font-size:3rem;line-height:3.5rem}}.daff-article h2:not(.daff-ae *,.daff-ae){font-size:2rem;line-height:2.5rem}.daff-article h3:not(.daff-ae *,.daff-ae){font-size:1.5rem;line-height:2rem}.daff-article h4:not(.daff-ae *,.daff-ae){font-size:1.25rem;line-height:1.5rem}.daff-article h5:not(.daff-ae *,.daff-ae){font-size:1.125rem;line-height:1.5rem}.daff-article h6:not(.daff-ae *,.daff-ae){font-size:1rem;line-height:1.5rem}.daff-article p:not(.daff-ae *,.daff-ae){margin:0 0 1rem}.daff-article strong{font-weight:700}.daff-article pre{display:block;border-radius:.25em;font-size:.875rem;line-height:1.5rem;margin:1.5rem 0;padding:1.5rem;overflow:auto;white-space:pre-wrap}.daff-article pre:last-child{margin-bottom:0}.daff-article pre code{display:block;padding:0}.daff-article code{border-radius:.25em;font-size:.875rem;line-height:1rem;padding:.25em}.daff-article__title{font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width: 768px){.daff-article__title{font-size:3rem;line-height:3.5rem}}.daff-article__lead{font-size:1.25rem;line-height:1.75rem;font-weight:400;margin:0}.daff-article__lead code{font-size:1.25rem;line-height:1.5rem;font-weight:400}.daff-article__meta{font-size:.875rem}.daff-article hr{border:0;height:1px;margin:2rem 0}.daff-article blockquote{border-radius:.25em;margin:1.5rem 0;padding:1rem 1.5rem}.daff-article blockquote:last-child{margin-bottom:0}.daff-article blockquote cite{font-size:.875rem;font-weight:400;line-height:1.25rem;display:block;margin-top:1rem}.daff-article blockquote p:last-of-type{margin:0}.daff-article table{display:block;border-collapse:collapse;margin:1.5rem 0;overflow:auto;width:100%}.daff-article table:last-child{margin-bottom:0}.daff-article table th{font-weight:600;outline:0;padding:1rem;text-align:left;vertical-align:bottom;box-sizing:border-box}.daff-article table td{padding:.5rem 1rem;vertical-align:top;box-sizing:border-box}\n"] }]
25
25
  }], propDecorators: { class: [{
26
26
  type: HostBinding,
27
27
  args: ['class.daff-article']