@daffodil/design 0.94.1 → 0.95.1

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 (170) hide show
  1. package/README.md +1 -2
  2. package/accordion/src/accordion-theme.scss +4 -4
  3. package/article/README.md +4 -27
  4. package/article/src/article-theme.scss +14 -14
  5. package/badge/src/badge-theme.scss +0 -6
  6. package/button/README.md +0 -4
  7. package/button/src/button/basic/button-theme.scss +17 -42
  8. package/button/src/button/button-base.scss +12 -3
  9. package/button/src/button/flat/flat-theme.scss +14 -12
  10. package/button/src/button/icon/icon-theme.scss +19 -40
  11. package/button/src/button/stroked/stroked-theme.scss +22 -36
  12. package/card/src/card/stroked/stroked-theme.scss +1 -1
  13. package/card/src/card-base.scss +0 -1
  14. package/fesm2022/daffodil-design-accordion.mjs +285 -188
  15. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  16. package/fesm2022/daffodil-design-article.mjs +578 -340
  17. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  18. package/fesm2022/daffodil-design-badge.mjs +166 -84
  19. package/fesm2022/daffodil-design-badge.mjs.map +1 -1
  20. package/fesm2022/daffodil-design-beacon.mjs +109 -47
  21. package/fesm2022/daffodil-design-beacon.mjs.map +1 -1
  22. package/fesm2022/daffodil-design-breadcrumb.mjs +384 -277
  23. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  24. package/fesm2022/daffodil-design-button.mjs +541 -408
  25. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  26. package/fesm2022/daffodil-design-callout.mjs +349 -224
  27. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  28. package/fesm2022/daffodil-design-card.mjs +496 -327
  29. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  30. package/fesm2022/daffodil-design-checkbox.mjs +373 -313
  31. package/fesm2022/daffodil-design-checkbox.mjs.map +1 -1
  32. package/fesm2022/daffodil-design-container.mjs +103 -60
  33. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  34. package/fesm2022/daffodil-design-form-field.mjs +441 -352
  35. package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
  36. package/fesm2022/daffodil-design-form.mjs +155 -57
  37. package/fesm2022/daffodil-design-form.mjs.map +1 -1
  38. package/fesm2022/daffodil-design-hero.mjs +349 -234
  39. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  40. package/fesm2022/daffodil-design-image-lite.mjs +60 -0
  41. package/fesm2022/daffodil-design-image-lite.mjs.map +1 -0
  42. package/fesm2022/daffodil-design-image.mjs +245 -107
  43. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  44. package/fesm2022/daffodil-design-input.mjs +217 -164
  45. package/fesm2022/daffodil-design-input.mjs.map +1 -1
  46. package/fesm2022/daffodil-design-list.mjs +308 -170
  47. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  48. package/fesm2022/daffodil-design-media-gallery.mjs +351 -278
  49. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  50. package/fesm2022/daffodil-design-menu.mjs +525 -417
  51. package/fesm2022/daffodil-design-menu.mjs.map +1 -1
  52. package/fesm2022/daffodil-design-modal.mjs +680 -450
  53. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  54. package/fesm2022/daffodil-design-native-select.mjs +175 -166
  55. package/fesm2022/daffodil-design-native-select.mjs.map +1 -1
  56. package/fesm2022/daffodil-design-navbar.mjs +145 -68
  57. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  58. package/fesm2022/daffodil-design-notification.mjs +376 -226
  59. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  60. package/fesm2022/daffodil-design-paginator.mjs +296 -192
  61. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  62. package/fesm2022/daffodil-design-progress-bar.mjs +243 -157
  63. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  64. package/fesm2022/daffodil-design-radio.mjs +382 -300
  65. package/fesm2022/daffodil-design-radio.mjs.map +1 -1
  66. package/fesm2022/daffodil-design-select.mjs +424 -364
  67. package/fesm2022/daffodil-design-select.mjs.map +1 -1
  68. package/fesm2022/daffodil-design-sidebar.mjs +874 -887
  69. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  70. package/fesm2022/daffodil-design-spinner.mjs +156 -99
  71. package/fesm2022/daffodil-design-spinner.mjs.map +1 -1
  72. package/fesm2022/daffodil-design-switch.mjs +176 -106
  73. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  74. package/fesm2022/daffodil-design-tabs.mjs +685 -427
  75. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  76. package/fesm2022/daffodil-design-tag.mjs +251 -133
  77. package/fesm2022/daffodil-design-tag.mjs.map +1 -1
  78. package/fesm2022/daffodil-design-testing.mjs +4 -16
  79. package/fesm2022/daffodil-design-testing.mjs.map +1 -1
  80. package/fesm2022/daffodil-design-text-snippet.mjs +140 -54
  81. package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
  82. package/fesm2022/daffodil-design-textarea.mjs +170 -150
  83. package/fesm2022/daffodil-design-textarea.mjs.map +1 -1
  84. package/fesm2022/daffodil-design-toast.mjs +658 -481
  85. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  86. package/fesm2022/daffodil-design-tree.mjs +456 -469
  87. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  88. package/fesm2022/daffodil-design-youtube-player.mjs +168 -115
  89. package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
  90. package/fesm2022/daffodil-design.mjs +1628 -1650
  91. package/fesm2022/daffodil-design.mjs.map +1 -1
  92. package/form-field/README.md +0 -4
  93. package/form-field/src/form-field-theme.scss +12 -4
  94. package/image/README.md +4 -0
  95. package/image-lite/README.md +58 -0
  96. package/image-lite/src/image-theme.scss +18 -0
  97. package/list/src/list-base.scss +3 -4
  98. package/list/src/list-theme.scss +6 -5
  99. package/media-gallery/README.md +1 -1
  100. package/media-gallery/src/media-gallery-theme.scss +3 -3
  101. package/menu/src/menu-theme.scss +6 -2
  102. package/notification/src/notification-theme.scss +10 -10
  103. package/package.json +1 -1
  104. package/scss/global.scss +17 -11
  105. package/scss/theme.scss +2 -18
  106. package/scss/theming/_get-palette.scss +0 -3
  107. package/scss/theming/_index.scss +0 -1
  108. package/scss/theming/_light-dark.scss +2 -2
  109. package/scss/theming/_theme-css-variables.scss +1 -1
  110. package/scss/theming/create-theme/_create-theme.scss +2 -2
  111. package/scss/theming/get-font-colors/_get-font-colors.scss +7 -25
  112. package/scss/theming/get-font-colors/_get-font-colors.spec.scss +0 -12
  113. package/scss/typography/_classes.scss +0 -6
  114. package/scss/typography/_index.scss +0 -1
  115. package/scss/typography/mixins/_sizes.scss +0 -1
  116. package/scss/typography/utilities/_variables.scss +3 -0
  117. package/select/src/select-theme.scss +10 -14
  118. package/switch/src/switch-theme.scss +2 -2
  119. package/tabs/src/tabs-theme.scss +4 -4
  120. package/types/daffodil-design-accordion.d.ts +92 -67
  121. package/types/daffodil-design-article.d.ts +49 -56
  122. package/types/daffodil-design-badge.d.ts +56 -33
  123. package/types/daffodil-design-beacon.d.ts +35 -14
  124. package/types/daffodil-design-breadcrumb.d.ts +89 -85
  125. package/types/daffodil-design-button.d.ts +128 -146
  126. package/types/daffodil-design-callout.d.ts +55 -39
  127. package/types/daffodil-design-card.d.ts +66 -56
  128. package/types/daffodil-design-checkbox.d.ts +211 -167
  129. package/types/daffodil-design-container.d.ts +17 -16
  130. package/types/daffodil-design-form-field.d.ts +273 -240
  131. package/types/daffodil-design-form.d.ts +21 -21
  132. package/types/daffodil-design-hero.d.ts +55 -39
  133. package/types/daffodil-design-image-lite.d.ts +17 -0
  134. package/types/daffodil-design-image.d.ts +89 -55
  135. package/types/daffodil-design-input.d.ts +86 -72
  136. package/types/daffodil-design-list.d.ts +49 -43
  137. package/types/daffodil-design-media-gallery.d.ts +176 -148
  138. package/types/daffodil-design-menu.d.ts +177 -169
  139. package/types/daffodil-design-modal.d.ts +205 -205
  140. package/types/daffodil-design-native-select.d.ts +94 -84
  141. package/types/daffodil-design-navbar.d.ts +34 -24
  142. package/types/daffodil-design-notification.d.ts +82 -67
  143. package/types/daffodil-design-paginator.d.ts +140 -118
  144. package/types/daffodil-design-progress-bar.d.ts +92 -74
  145. package/types/daffodil-design-radio.d.ts +183 -144
  146. package/types/daffodil-design-select.d.ts +207 -178
  147. package/types/daffodil-design-sidebar.d.ts +270 -253
  148. package/types/daffodil-design-spinner.d.ts +49 -36
  149. package/types/daffodil-design-switch.d.ts +77 -46
  150. package/types/daffodil-design-tabs.d.ts +248 -198
  151. package/types/daffodil-design-tag.d.ts +91 -56
  152. package/types/daffodil-design-testing.d.ts +1 -3
  153. package/types/daffodil-design-text-snippet.d.ts +48 -37
  154. package/types/daffodil-design-textarea.d.ts +88 -79
  155. package/types/daffodil-design-toast.d.ts +175 -183
  156. package/types/daffodil-design-tree.d.ts +186 -169
  157. package/types/daffodil-design-youtube-player.d.ts +56 -52
  158. package/types/daffodil-design.d.ts +614 -695
  159. package/button/src/button/raised/raised-theme.scss +0 -92
  160. package/button/src/button/underline/underline-theme.scss +0 -141
  161. package/fesm2022/daffodil-design-link-set.mjs +0 -160
  162. package/fesm2022/daffodil-design-link-set.mjs.map +0 -1
  163. package/fesm2022/daffodil-design-quantity-field.mjs +0 -364
  164. package/fesm2022/daffodil-design-quantity-field.mjs.map +0 -1
  165. package/link-set/README.md +0 -86
  166. package/quantity-field/README.md +0 -63
  167. package/scss/theming/_configure-theme.scss +0 -120
  168. package/scss/typography/mixins/_font-weight.scss +0 -14
  169. package/types/daffodil-design-link-set.d.ts +0 -72
  170. package/types/daffodil-design-quantity-field.d.ts +0 -171
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-design-testing.mjs","sources":["../../../libs/design/testing/src/patch-element-focus.ts","../../../libs/design/testing/src/daffodil-design-testing.ts"],"sourcesContent":["/**\n * Replaces the element's native focus/blur methods with ones that dispatch the corresponding events directly,\n * so tests do not depend on the document actually having focus. Chrome only\n * moves `document.activeElement` without firing focus events when the document\n * is unfocused, which makes native-focus-driven tests order-dependent.\n *\n * This originally comes from https://github.com/angular/components/blob/7d09f9153fabfe4cdd13a096d9e6d43f472812e5/src/cdk/testing/testbed/fake-events/element-focus.ts#L30\n */\nexport function patchElementFocus(element: HTMLElement): void {\n element.focus = () => element.dispatchEvent(new Event('focus'));\n element.blur = () => element.dispatchEvent(new Event('blur'));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;;;;;AAOG;AACG,SAAU,iBAAiB,CAAC,OAAoB,EAAA;AACpD,IAAA,OAAO,CAAC,KAAK,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AAC/D,IAAA,OAAO,CAAC,IAAI,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;AAC/D;;ACXA;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-design-testing.mjs","names":[],"sources":["../../../libs/design/testing/src/patch-element-focus.ts"],"sourcesContent":["/**\n * Replaces the element's native focus/blur methods with ones that dispatch the corresponding events directly,\n * so tests do not depend on the document actually having focus. Chrome only\n * moves `document.activeElement` without firing focus events when the document\n * is unfocused, which makes native-focus-driven tests order-dependent.\n *\n * This originally comes from https://github.com/angular/components/blob/7d09f9153fabfe4cdd13a096d9e6d43f472812e5/src/cdk/testing/testbed/fake-events/element-focus.ts#L30\n */\nexport function patchElementFocus(element: HTMLElement): void {\n element.focus = () => element.dispatchEvent(new Event('focus'));\n element.blur = () => element.dispatchEvent(new Event('blur'));\n}\n"],"mappings":"AAQA,SAAgB,kBAAkB,SAAoB;CACpD,QAAQ,cAAc,QAAQ,cAAc,IAAI,MAAM,OAAO,CAAC;CAC9D,QAAQ,aAAa,QAAQ,cAAc,IAAI,MAAM,MAAM,CAAC;AAC9D"}
@@ -1,55 +1,141 @@
1
- import * as i0 from '@angular/core';
2
- import { model, input, viewChild, ElementRef, output, ChangeDetectionStrategy, Component } from '@angular/core';
3
-
4
- class DaffTextSnippetComponent {
5
- constructor() {
6
- /**
7
- * Whether or not the component should render a condensed version of the content.
8
- */
9
- this.condensed = model(true, ...(ngDevMode ? [{ debugName: "condensed" }] : /* istanbul ignore next */ []));
10
- /**
11
- * The HTML content to render inside the snippet.
12
- */
13
- this.html = input('', ...(ngDevMode ? [{ debugName: "html" }] : /* istanbul ignore next */ []));
14
- /**
15
- * @docs-private
16
- */
17
- this.contentRef = viewChild('contentEl', { ...(ngDevMode ? { debugName: "contentRef" } : /* istanbul ignore next */ {}), read: ElementRef });
18
- /**
19
- * @docs-private
20
- */
21
- this.htmlRef = viewChild('htmlEl', { ...(ngDevMode ? { debugName: "htmlRef" } : /* istanbul ignore next */ {}), read: ElementRef });
22
- /**
23
- * An output event that can be used to track the state of the component externally.
24
- */
25
- this.toggled = output();
26
- }
27
- /**
28
- * @docs-private
29
- */
30
- ariaExpanded() {
31
- return !this.condensed() ? true : false;
32
- }
33
- /**
34
- * @docs-private
35
- */
36
- toggleSnippet() {
37
- this.condensed.set(!this.condensed());
38
- this.toggled.emit(this.condensed());
39
- }
40
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffTextSnippetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
41
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: DaffTextSnippetComponent, isStandalone: true, selector: "daff-text-snippet", inputs: { condensed: { classPropertyName: "condensed", publicName: "condensed", isSignal: true, isRequired: false, transformFunction: null }, html: { classPropertyName: "html", publicName: "html", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { condensed: "condensedChange", toggled: "toggled" }, host: { classAttribute: "daff-text-snippet" }, viewQueries: [{ propertyName: "contentRef", first: true, predicate: ["contentEl"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "htmlRef", first: true, predicate: ["htmlEl"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "@if (html()) {\n <div class=\"daff-text-snippet__content daff-text-snippet__html\" #htmlEl [class.condensed]=\"condensed()\" [innerHtml]=\"html()\"></div>\n} @else {\n <div class=\"daff-text-snippet__content daff-text-snippet__ngcontent\" #contentEl [class.condensed]=\"condensed()\">\n <ng-content></ng-content>\n </div>\n}\n<button\n class=\"daff-text-snippet__toggle\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n (click)=\"toggleSnippet()\">\n @if (condensed()) {\n Show more\n } @else {\n Show less\n }\n</button>\n", styles: [":host{display:block;position:relative}:host ::ng-deep .daff-text-snippet__content>*:first-child{margin-top:0}:host ::ng-deep .daff-text-snippet__content>*:last-child{margin-bottom:0}:host ::ng-deep h2:first-of-type{margin-top:0}.daff-text-snippet__content{display:block}.daff-text-snippet__content.condensed{display:-webkit-box;line-clamp:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;width:100%}.daff-text-snippet__toggle{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;appearance:none;background:none;border-left-style:none;border-right-style:none;border-top-style:none;margin:0;padding:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
42
- }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffTextSnippetComponent, decorators: [{
44
- type: Component,
45
- args: [{ selector: 'daff-text-snippet', changeDetection: ChangeDetectionStrategy.OnPush, host: {
46
- class: 'daff-text-snippet',
47
- }, template: "@if (html()) {\n <div class=\"daff-text-snippet__content daff-text-snippet__html\" #htmlEl [class.condensed]=\"condensed()\" [innerHtml]=\"html()\"></div>\n} @else {\n <div class=\"daff-text-snippet__content daff-text-snippet__ngcontent\" #contentEl [class.condensed]=\"condensed()\">\n <ng-content></ng-content>\n </div>\n}\n<button\n class=\"daff-text-snippet__toggle\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n (click)=\"toggleSnippet()\">\n @if (condensed()) {\n Show more\n } @else {\n Show less\n }\n</button>\n", styles: [":host{display:block;position:relative}:host ::ng-deep .daff-text-snippet__content>*:first-child{margin-top:0}:host ::ng-deep .daff-text-snippet__content>*:last-child{margin-bottom:0}:host ::ng-deep h2:first-of-type{margin-top:0}.daff-text-snippet__content{display:block}.daff-text-snippet__content.condensed{display:-webkit-box;line-clamp:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;width:100%}.daff-text-snippet__toggle{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;appearance:none;background:none;border-left-style:none;border-right-style:none;border-top-style:none;margin:0;padding:0}\n"] }]
48
- }], propDecorators: { condensed: [{ type: i0.Input, args: [{ isSignal: true, alias: "condensed", required: false }] }, { type: i0.Output, args: ["condensedChange"] }], html: [{ type: i0.Input, args: [{ isSignal: true, alias: "html", required: false }] }], contentRef: [{ type: i0.ViewChild, args: ['contentEl', { ...{ read: ElementRef }, isSignal: true }] }], htmlRef: [{ type: i0.ViewChild, args: ['htmlEl', { ...{ read: ElementRef }, isSignal: true }] }], toggled: [{ type: i0.Output, args: ["toggled"] }] } });
49
-
50
- /**
51
- * Generated bundle index. Do not edit.
52
- */
53
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, ElementRef, input, model, output, viewChild } from "@angular/core";
3
+ var DaffTextSnippetComponent = class DaffTextSnippetComponent {
4
+ constructor() {
5
+ this.condensed = model(true, ...ngDevMode ? [{ debugName: "condensed" }] : /* istanbul ignore next */ []);
6
+ this.html = input("", ...ngDevMode ? [{ debugName: "html" }] : /* istanbul ignore next */ []);
7
+ this.contentRef = viewChild("contentEl", {
8
+ ...ngDevMode ? { debugName: "contentRef" } : /* istanbul ignore next */ {},
9
+ read: ElementRef
10
+ });
11
+ this.htmlRef = viewChild("htmlEl", {
12
+ ...ngDevMode ? { debugName: "htmlRef" } : /* istanbul ignore next */ {},
13
+ read: ElementRef
14
+ });
15
+ this.toggled = output();
16
+ }
17
+ ariaExpanded() {
18
+ return !this.condensed() ? true : false;
19
+ }
20
+ toggleSnippet() {
21
+ this.condensed.set(!this.condensed());
22
+ this.toggled.emit(this.condensed());
23
+ }
24
+ static {
25
+ this.ɵfac = i0.ɵɵngDeclareFactory({
26
+ minVersion: "12.0.0",
27
+ version: "22.2.4",
28
+ ngImport: i0,
29
+ type: DaffTextSnippetComponent,
30
+ deps: [],
31
+ target: i0.ɵɵFactoryTarget.Component
32
+ });
33
+ }
34
+ static {
35
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
36
+ minVersion: "17.0.0",
37
+ version: "22.2.4",
38
+ type: DaffTextSnippetComponent,
39
+ isStandalone: true,
40
+ selector: "daff-text-snippet",
41
+ inputs: {
42
+ condensed: {
43
+ classPropertyName: "condensed",
44
+ publicName: "condensed",
45
+ isSignal: true,
46
+ isRequired: false,
47
+ transformFunction: null
48
+ },
49
+ html: {
50
+ classPropertyName: "html",
51
+ publicName: "html",
52
+ isSignal: true,
53
+ isRequired: false,
54
+ transformFunction: null
55
+ }
56
+ },
57
+ outputs: {
58
+ condensed: "condensedChange",
59
+ toggled: "toggled"
60
+ },
61
+ host: { classAttribute: "daff-text-snippet" },
62
+ viewQueries: [{
63
+ propertyName: "contentRef",
64
+ first: true,
65
+ predicate: ["contentEl"],
66
+ descendants: true,
67
+ read: ElementRef,
68
+ isSignal: true
69
+ }, {
70
+ propertyName: "htmlRef",
71
+ first: true,
72
+ predicate: ["htmlEl"],
73
+ descendants: true,
74
+ read: ElementRef,
75
+ isSignal: true
76
+ }],
77
+ ngImport: i0,
78
+ template: "@if (html()) {\n <div class=\"daff-text-snippet__content daff-text-snippet__html\" #htmlEl [class.condensed]=\"condensed()\" [innerHtml]=\"html()\"></div>\n} @else {\n <div class=\"daff-text-snippet__content daff-text-snippet__ngcontent\" #contentEl [class.condensed]=\"condensed()\">\n <ng-content></ng-content>\n </div>\n}\n<button\n class=\"daff-text-snippet__toggle\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n (click)=\"toggleSnippet()\">\n @if (condensed()) {\n Show more\n } @else {\n Show less\n }\n</button>\n",
79
+ styles: [":host{display:block;position:relative}:host ::ng-deep .daff-text-snippet__content>*:first-child{margin-top:0}:host ::ng-deep .daff-text-snippet__content>*:last-child{margin-bottom:0}:host ::ng-deep h2:first-of-type{margin-top:0}.daff-text-snippet__content{display:block}.daff-text-snippet__content.condensed{display:-webkit-box;line-clamp:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;width:100%}.daff-text-snippet__toggle{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;appearance:none;background:none;border-left-style:none;border-right-style:none;border-top-style:none;margin:0;padding:0}\n"],
80
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
81
+ });
82
+ }
83
+ };
84
+ i0.ɵɵngDeclareClassMetadata({
85
+ minVersion: "12.0.0",
86
+ version: "22.2.4",
87
+ ngImport: i0,
88
+ type: DaffTextSnippetComponent,
89
+ decorators: [{
90
+ type: Component,
91
+ args: [{
92
+ selector: "daff-text-snippet",
93
+ changeDetection: ChangeDetectionStrategy.OnPush,
94
+ host: { class: "daff-text-snippet" },
95
+ template: "@if (html()) {\n <div class=\"daff-text-snippet__content daff-text-snippet__html\" #htmlEl [class.condensed]=\"condensed()\" [innerHtml]=\"html()\"></div>\n} @else {\n <div class=\"daff-text-snippet__content daff-text-snippet__ngcontent\" #contentEl [class.condensed]=\"condensed()\">\n <ng-content></ng-content>\n </div>\n}\n<button\n class=\"daff-text-snippet__toggle\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n (click)=\"toggleSnippet()\">\n @if (condensed()) {\n Show more\n } @else {\n Show less\n }\n</button>\n",
96
+ styles: [":host{display:block;position:relative}:host ::ng-deep .daff-text-snippet__content>*:first-child{margin-top:0}:host ::ng-deep .daff-text-snippet__content>*:last-child{margin-bottom:0}:host ::ng-deep h2:first-of-type{margin-top:0}.daff-text-snippet__content{display:block}.daff-text-snippet__content.condensed{display:-webkit-box;line-clamp:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;width:100%}.daff-text-snippet__toggle{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;appearance:none;background:none;border-left-style:none;border-right-style:none;border-top-style:none;margin:0;padding:0}\n"]
97
+ }]
98
+ }],
99
+ propDecorators: {
100
+ condensed: [{
101
+ type: i0.Input,
102
+ args: [{
103
+ isSignal: true,
104
+ alias: "condensed",
105
+ required: false
106
+ }]
107
+ }, {
108
+ type: i0.Output,
109
+ args: ["condensedChange"]
110
+ }],
111
+ html: [{
112
+ type: i0.Input,
113
+ args: [{
114
+ isSignal: true,
115
+ alias: "html",
116
+ required: false
117
+ }]
118
+ }],
119
+ contentRef: [{
120
+ type: i0.ViewChild,
121
+ args: ["contentEl", {
122
+ read: ElementRef,
123
+ isSignal: true
124
+ }]
125
+ }],
126
+ htmlRef: [{
127
+ type: i0.ViewChild,
128
+ args: ["htmlEl", {
129
+ read: ElementRef,
130
+ isSignal: true
131
+ }]
132
+ }],
133
+ toggled: [{
134
+ type: i0.Output,
135
+ args: ["toggled"]
136
+ }]
137
+ }
138
+ });
54
139
  export { DaffTextSnippetComponent };
55
- //# sourceMappingURL=daffodil-design-text-snippet.mjs.map
140
+
141
+ //# sourceMappingURL=daffodil-design-text-snippet.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-design-text-snippet.mjs","sources":["../../../libs/design/text-snippet/src/text-snippet.component.ts","../../../libs/design/text-snippet/src/text-snippet.component.html","../../../libs/design/text-snippet/src/daffodil-design-text-snippet.ts"],"sourcesContent":["import {\n Component,\n ChangeDetectionStrategy,\n ElementRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\n\n@Component({\n selector: 'daff-text-snippet',\n templateUrl: './text-snippet.component.html',\n styleUrl: './text-snippet.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'daff-text-snippet',\n },\n})\nexport class DaffTextSnippetComponent {\n /**\n * Whether or not the component should render a condensed version of the content.\n */\n condensed = model(true);\n\n /**\n * The HTML content to render inside the snippet.\n */\n html = input('');\n\n /**\n * @docs-private\n */\n ariaExpanded() {\n return !this.condensed() ? true : false;\n }\n\n /**\n * @docs-private\n */\n contentRef = viewChild('contentEl', { read: ElementRef });\n\n /**\n * @docs-private\n */\n htmlRef = viewChild('htmlEl', { read: ElementRef });\n\n /**\n * An output event that can be used to track the state of the component externally.\n */\n toggled = output<boolean>();\n\n /**\n * @docs-private\n */\n toggleSnippet() {\n this.condensed.set(!this.condensed());\n this.toggled.emit(this.condensed());\n }\n}\n","@if (html()) {\n <div class=\"daff-text-snippet__content daff-text-snippet__html\" #htmlEl [class.condensed]=\"condensed()\" [innerHtml]=\"html()\"></div>\n} @else {\n <div class=\"daff-text-snippet__content daff-text-snippet__ngcontent\" #contentEl [class.condensed]=\"condensed()\">\n <ng-content></ng-content>\n </div>\n}\n<button\n class=\"daff-text-snippet__toggle\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n (click)=\"toggleSnippet()\">\n @if (condensed()) {\n Show more\n } @else {\n Show less\n }\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAmBa,wBAAwB,CAAA;AATrC,IAAA,WAAA,GAAA;AAUE;;AAEG;AACH,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,IAAI,gFAAC;AAEvB;;AAEG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,EAAE,2EAAC;AAShB;;AAEG;QACH,IAAA,CAAA,UAAU,GAAG,SAAS,CAAC,WAAW,kFAAI,IAAI,EAAE,UAAU,EAAA,CAAG;AAEzD;;AAEG;QACH,IAAA,CAAA,OAAO,GAAG,SAAS,CAAC,QAAQ,+EAAI,IAAI,EAAE,UAAU,EAAA,CAAG;AAEnD;;AAEG;QACH,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,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAKpC,QAAQ,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE7CpD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-design-text-snippet.mjs","names":[],"sources":["../../../libs/design/text-snippet/src/text-snippet.component.ts","../../../libs/design/text-snippet/src/text-snippet.component.html"],"sourcesContent":["import {\n Component,\n ChangeDetectionStrategy,\n ElementRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\n\n@Component({\n selector: 'daff-text-snippet',\n templateUrl: './text-snippet.component.html',\n styleUrl: './text-snippet.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'daff-text-snippet',\n },\n})\nexport class DaffTextSnippetComponent {\n /**\n * Whether or not the component should render a condensed version of the content.\n */\n condensed = model(true);\n\n /**\n * The HTML content to render inside the snippet.\n */\n html = input('');\n\n /**\n * @docs-private\n */\n ariaExpanded() {\n return !this.condensed() ? true : false;\n }\n\n /**\n * @docs-private\n */\n contentRef = viewChild('contentEl', { read: ElementRef });\n\n /**\n * @docs-private\n */\n htmlRef = viewChild('htmlEl', { read: ElementRef });\n\n /**\n * An output event that can be used to track the state of the component externally.\n */\n toggled = output<boolean>();\n\n /**\n * @docs-private\n */\n toggleSnippet() {\n this.condensed.set(!this.condensed());\n this.toggled.emit(this.condensed());\n }\n}\n","@if (html()) {\n <div class=\"daff-text-snippet__content daff-text-snippet__html\" #htmlEl [class.condensed]=\"condensed()\" [innerHtml]=\"html()\"></div>\n} @else {\n <div class=\"daff-text-snippet__content daff-text-snippet__ngcontent\" #contentEl [class.condensed]=\"condensed()\">\n <ng-content></ng-content>\n </div>\n}\n<button\n class=\"daff-text-snippet__toggle\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n (click)=\"toggleSnippet()\">\n @if (condensed()) {\n Show more\n } @else {\n Show less\n }\n</button>\n"],"mappings":";;AAmBA,IAAa,2BAAb,MAAa,yBAAwB;CATrC,cAAA;EAaE,KAAA,YAAY,MAAM,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAKvB,KAAA,OAAO,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAYhB,KAAA,aAAa,UAAU,aAAW;GAAA,GAAA,YAAA,EAAA,WAAA,aAAA,+BAAA,CAAA;GAAI,MAAM;EAAU,CAAA;EAKtD,KAAA,UAAU,UAAU,UAAQ;GAAA,GAAA,YAAA,EAAA,WAAA,UAAA,+BAAA,CAAA;GAAI,MAAM;EAAU,CAAA;EAKhD,KAAA,UAAU,OAAM;CASjB;CA1BC,eAAY;EACV,OAAO,CAAC,KAAK,UAAS,IAAK,OAAO;CACpC;CAoBA,gBAAa;EACX,KAAK,UAAU,IAAI,CAAC,KAAK,UAAS,CAAE;EACpC,KAAK,QAAQ,KAAK,KAAK,UAAS,CAAE;CACpC;CAvCW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAwB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAxB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAwB,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,WAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,MAAA;KAAA,mBAAA;KAAA,YAAA;KAA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GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -1,151 +1,171 @@
1
- import * as i0 from '@angular/core';
2
- import { booleanAttribute, Input, Optional, Self, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import * as i1 from '@angular/forms';
4
- import { Validators } from '@angular/forms';
5
- import { merge, of, map, tap } from 'rxjs';
6
- import * as i2 from '@daffodil/design/form-field';
7
- import { DaffFormFieldControl } from '@daffodil/design/form-field';
8
-
9
- /**
10
- * DaffTextareaComponent provides the same functionality as a native `<textarea>` and contains custom styling and functionality.
11
- */
12
- class DaffTextareaComponent extends DaffFormFieldControl {
13
- get _id() {
14
- return this.formField?.id();
15
- }
16
- ;
17
- /**
18
- * @docs-private
19
- */
20
- get internalId() {
21
- return this._id;
22
- }
23
- /**
24
- * @docs-private
25
- */
26
- get disabledAttribute() {
27
- if (this.ngControl) {
28
- return this.ngControl.disabled;
29
- }
30
- return this.disabled || null;
31
- }
32
- /**
33
- * @docs-private
34
- *
35
- * Implemented as part of DaffFormFieldControl.
36
- */
37
- get required() {
38
- return this.ngControl?.control?.hasValidator(Validators.required) ?? this._required;
39
- }
40
- set required(value) {
41
- this._required = value;
42
- }
43
- /**
44
- * @docs-private
45
- */
46
- get requiredAttribute() {
47
- return this.required || null;
48
- }
49
- /**
50
- * @docs-private
51
- */
52
- focus() {
53
- this.focused = true;
54
- this.emitState();
55
- }
56
- /**
57
- * @docs-private
58
- */
59
- blur() {
60
- this.focused = false;
61
- this.emitState(true);
62
- }
63
- /**
64
- * @docs-private
65
- */
66
- get ariaDescribedBy() {
67
- if (this.formField.hasErrorMessage()) {
68
- return this.formField.errorMessageId();
69
- }
70
- else if (this.formField.hasHint()) {
71
- return this.formField.hintId();
72
- }
73
- else {
74
- return null;
75
- }
76
- }
77
- constructor(
78
- /**
79
- * @docs-private
80
- */
81
- ngControl, _elementRef, formField) {
82
- super(ngControl);
83
- this.ngControl = ngControl;
84
- this._elementRef = _elementRef;
85
- this.formField = formField;
86
- /** @docs-private */
87
- this.controlType = 'native-textarea';
88
- /**
89
- * @docs-private
90
- */
91
- this.focused = false;
92
- /**
93
- * @docs-private
94
- *
95
- * Implemented as part of DaffFormFieldControl.
96
- */
97
- this.disabled = false;
98
- this._required = false;
99
- }
100
- /** @docs-private */
101
- ngOnInit() {
102
- this.stateChanges = merge(this._stateChanges.asObservable(), this.ngControl ? this.ngControl.statusChanges : of(undefined)).pipe(map(() => this.state), tap((state) => this.disabled = state.disabled));
103
- }
104
- /**
105
- * @docs-private
106
- */
107
- onFocus() {
108
- this._elementRef.nativeElement.focus();
109
- }
110
- /**
111
- * @docs-private
112
- */
113
- get value() {
114
- return this._elementRef.nativeElement.value;
115
- }
116
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffTextareaComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }, { token: i2.DaffFormFieldComponent }], target: i0.ɵɵFactoryTarget.Component }); }
117
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "21.2.9", type: DaffTextareaComponent, isStandalone: true, selector: "textarea[daff-textarea]", inputs: { disabled: ["disabled", "disabled", booleanAttribute], required: ["required", "required", booleanAttribute] }, host: { listeners: { "focus": "focus()", "blur": "blur()" }, properties: { "attr.id": "internalId", "disabled": "disabledAttribute", "required": "requiredAttribute", "attr.aria-describedby": "ariaDescribedBy" }, classAttribute: "daff-textarea" }, providers: [
118
- { provide: DaffFormFieldControl, useExisting: DaffTextareaComponent },
119
- ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{background:none;border:none;box-shadow:none;margin:0;padding:0;resize:vertical;min-height:3.5rem;width:100%;box-sizing:border-box}:host:focus{border:none;box-shadow:none;outline:none}:host:disabled{cursor:not-allowed}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
120
- }
121
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffTextareaComponent, decorators: [{
122
- type: Component,
123
- args: [{ selector: 'textarea[daff-textarea]', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
124
- { provide: DaffFormFieldControl, useExisting: DaffTextareaComponent },
125
- ], host: {
126
- class: 'daff-textarea',
127
- '[attr.id]': 'internalId',
128
- '[disabled]': 'disabledAttribute',
129
- '[required]': 'requiredAttribute',
130
- '(focus)': 'focus()',
131
- '(blur)': 'blur()',
132
- '[attr.aria-describedby]': 'ariaDescribedBy',
133
- }, styles: [":host{background:none;border:none;box-shadow:none;margin:0;padding:0;resize:vertical;min-height:3.5rem;width:100%;box-sizing:border-box}:host:focus{border:none;box-shadow:none;outline:none}:host:disabled{cursor:not-allowed}\n"] }]
134
- }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
135
- type: Optional
136
- }, {
137
- type: Self
138
- }] }, { type: i0.ElementRef }, { type: i2.DaffFormFieldComponent }], propDecorators: { disabled: [{
139
- type: Input,
140
- args: [{ transform: booleanAttribute }]
141
- }], required: [{
142
- type: Input,
143
- args: [{ transform: booleanAttribute }]
144
- }] } });
145
-
146
- /**
147
- * Generated bundle index. Do not edit.
148
- */
149
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Input, Optional, Self, booleanAttribute } from "@angular/core";
3
+ import * as i1 from "@angular/forms";
4
+ import { Validators } from "@angular/forms";
5
+ import { map, merge, of, tap } from "rxjs";
6
+ import * as i2 from "@daffodil/design/form-field";
7
+ import { DaffFormFieldControl, DaffFormFieldControlTypesEnum } from "@daffodil/design/form-field";
8
+ var DaffTextareaComponent = class DaffTextareaComponent extends DaffFormFieldControl {
9
+ get _id() {
10
+ return this.formField?.id();
11
+ }
12
+ get internalId() {
13
+ return this._id;
14
+ }
15
+ get disabledAttribute() {
16
+ if (this.ngControl) return this.ngControl.disabled;
17
+ return this.disabled || null;
18
+ }
19
+ get required() {
20
+ return this.ngControl?.control?.hasValidator(Validators.required) ?? this._required;
21
+ }
22
+ set required(value) {
23
+ this._required = value;
24
+ }
25
+ get requiredAttribute() {
26
+ return this.required || null;
27
+ }
28
+ focus() {
29
+ this.focused = true;
30
+ this.emitState();
31
+ }
32
+ blur() {
33
+ this.focused = false;
34
+ this.emitState(true);
35
+ }
36
+ get ariaDescribedBy() {
37
+ if (this.formField.hasErrorMessage()) return this.formField.errorMessageId();
38
+ else if (this.formField.hasHint()) return this.formField.hintId();
39
+ else return null;
40
+ }
41
+ constructor(ngControl, _elementRef, formField) {
42
+ super(ngControl);
43
+ this.ngControl = ngControl;
44
+ this._elementRef = _elementRef;
45
+ this.formField = formField;
46
+ this.controlType = DaffFormFieldControlTypesEnum.Input;
47
+ this.focused = false;
48
+ this.disabled = false;
49
+ this._required = false;
50
+ }
51
+ ngOnInit() {
52
+ this.stateChanges = merge(this._stateChanges.asObservable(), this.ngControl ? this.ngControl.statusChanges : of(void 0)).pipe(map(() => this.state), tap((state) => this.disabled = state.disabled));
53
+ }
54
+ onFocus() {
55
+ this._elementRef.nativeElement.focus();
56
+ }
57
+ get value() {
58
+ return this._elementRef.nativeElement.value;
59
+ }
60
+ static {
61
+ this.ɵfac = i0.ɵɵngDeclareFactory({
62
+ minVersion: "12.0.0",
63
+ version: "22.2.4",
64
+ ngImport: i0,
65
+ type: DaffTextareaComponent,
66
+ deps: [
67
+ {
68
+ token: i1.NgControl,
69
+ optional: true,
70
+ self: true
71
+ },
72
+ { token: i0.ElementRef },
73
+ { token: i2.DaffFormFieldComponent }
74
+ ],
75
+ target: i0.ɵɵFactoryTarget.Component
76
+ });
77
+ }
78
+ static {
79
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
80
+ minVersion: "16.1.0",
81
+ version: "22.2.4",
82
+ type: DaffTextareaComponent,
83
+ isStandalone: true,
84
+ selector: "textarea[daff-textarea]",
85
+ inputs: {
86
+ disabled: [
87
+ "disabled",
88
+ "disabled",
89
+ booleanAttribute
90
+ ],
91
+ required: [
92
+ "required",
93
+ "required",
94
+ booleanAttribute
95
+ ]
96
+ },
97
+ host: {
98
+ listeners: {
99
+ "focus": "focus()",
100
+ "blur": "blur()"
101
+ },
102
+ properties: {
103
+ "attr.id": "internalId",
104
+ "disabled": "disabledAttribute",
105
+ "required": "requiredAttribute",
106
+ "attr.aria-describedby": "ariaDescribedBy"
107
+ },
108
+ classAttribute: "daff-textarea"
109
+ },
110
+ providers: [{
111
+ provide: DaffFormFieldControl,
112
+ useExisting: DaffTextareaComponent
113
+ }],
114
+ usesInheritance: true,
115
+ ngImport: i0,
116
+ template: "<ng-content></ng-content>",
117
+ isInline: true,
118
+ styles: [":host{background:none;border:none;box-shadow:none;margin:0;padding:0;resize:vertical;min-height:3.5rem;width:100%;box-sizing:border-box}:host:focus{border:none;box-shadow:none;outline:none}:host:disabled{cursor:not-allowed}\n"],
119
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
120
+ });
121
+ }
122
+ };
123
+ i0.ɵɵngDeclareClassMetadata({
124
+ minVersion: "12.0.0",
125
+ version: "22.2.4",
126
+ ngImport: i0,
127
+ type: DaffTextareaComponent,
128
+ decorators: [{
129
+ type: Component,
130
+ args: [{
131
+ selector: "textarea[daff-textarea]",
132
+ template: "<ng-content></ng-content>",
133
+ changeDetection: ChangeDetectionStrategy.OnPush,
134
+ providers: [{
135
+ provide: DaffFormFieldControl,
136
+ useExisting: DaffTextareaComponent
137
+ }],
138
+ host: {
139
+ class: "daff-textarea",
140
+ "[attr.id]": "internalId",
141
+ "[disabled]": "disabledAttribute",
142
+ "[required]": "requiredAttribute",
143
+ "(focus)": "focus()",
144
+ "(blur)": "blur()",
145
+ "[attr.aria-describedby]": "ariaDescribedBy"
146
+ },
147
+ styles: [":host{background:none;border:none;box-shadow:none;margin:0;padding:0;resize:vertical;min-height:3.5rem;width:100%;box-sizing:border-box}:host:focus{border:none;box-shadow:none;outline:none}:host:disabled{cursor:not-allowed}\n"]
148
+ }]
149
+ }],
150
+ ctorParameters: () => [
151
+ {
152
+ type: i1.NgControl,
153
+ decorators: [{ type: Optional }, { type: Self }]
154
+ },
155
+ { type: i0.ElementRef },
156
+ { type: i2.DaffFormFieldComponent }
157
+ ],
158
+ propDecorators: {
159
+ disabled: [{
160
+ type: Input,
161
+ args: [{ transform: booleanAttribute }]
162
+ }],
163
+ required: [{
164
+ type: Input,
165
+ args: [{ transform: booleanAttribute }]
166
+ }]
167
+ }
168
+ });
150
169
  export { DaffTextareaComponent };
151
- //# sourceMappingURL=daffodil-design-textarea.mjs.map
170
+
171
+ //# sourceMappingURL=daffodil-design-textarea.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-design-textarea.mjs","sources":["../../../libs/design/textarea/src/textarea.component.ts","../../../libs/design/textarea/src/daffodil-design-textarea.ts"],"sourcesContent":["import {\n Component,\n Optional,\n Self,\n ElementRef,\n ChangeDetectionStrategy,\n OnInit,\n Input,\n booleanAttribute,\n} from '@angular/core';\nimport {\n NgControl,\n Validators,\n} from '@angular/forms';\nimport {\n map,\n merge,\n of,\n tap,\n} from 'rxjs';\n\nimport {\n DaffFormFieldComponent,\n DaffFormFieldControl,\n} from '@daffodil/design/form-field';\n\n/**\n * DaffTextareaComponent provides the same functionality as a native `<textarea>` and contains custom styling and functionality.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'textarea[daff-textarea]',\n template: '<ng-content></ng-content>',\n styleUrls: ['./textarea.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n\n { provide: DaffFormFieldControl, useExisting: DaffTextareaComponent },\n ],\n host: {\n class: 'daff-textarea',\n '[attr.id]': 'internalId',\n '[disabled]': 'disabledAttribute',\n '[required]': 'requiredAttribute',\n '(focus)': 'focus()',\n '(blur)': 'blur()',\n '[attr.aria-describedby]': 'ariaDescribedBy',\n },\n})\nexport class DaffTextareaComponent extends DaffFormFieldControl<string> implements DaffFormFieldControl<string>, OnInit {\n /** @docs-private */\n controlType = 'native-textarea';\n\n /**\n * @docs-private\n */\n focused = false;\n\n private get _id() {\n return this.formField?.id();\n };\n\n /**\n * @docs-private\n */\n get internalId() {\n return this._id;\n }\n\n /**\n * @docs-private\n *\n * Implemented as part of DaffFormFieldControl.\n */\n @Input({ transform: booleanAttribute }) disabled = false;\n\n /**\n * @docs-private\n */\n get disabledAttribute() {\n if (this.ngControl) {\n return this.ngControl.disabled;\n }\n\n return this.disabled || null;\n }\n\n private _required = false;\n\n /**\n * @docs-private\n *\n * Implemented as part of DaffFormFieldControl.\n */\n @Input({ transform: booleanAttribute })\n get required(): boolean {\n return this.ngControl?.control?.hasValidator(Validators.required) ?? this._required;\n }\n set required(value: boolean) {\n this._required = value;\n }\n\n /**\n * @docs-private\n */\n get requiredAttribute() {\n return this.required || null;\n }\n\n /**\n * @docs-private\n */\n focus() {\n this.focused = true;\n this.emitState();\n }\n\n /**\n * @docs-private\n */\n blur() {\n this.focused = false;\n this.emitState(true);\n }\n\n /**\n * @docs-private\n */\n get ariaDescribedBy() {\n if(this.formField.hasErrorMessage()) {\n return this.formField.errorMessageId();\n } else if(this.formField.hasHint()) {\n return this.formField.hintId();\n } else {\n return null;\n }\n }\n\n constructor(\n /**\n * @docs-private\n */\n @Optional() @Self() public ngControl: NgControl,\n private _elementRef: ElementRef<HTMLInputElement>,\n private formField: DaffFormFieldComponent,\n ) {\n super(ngControl);\n }\n\n /** @docs-private */\n ngOnInit() {\n this.stateChanges = merge(\n this._stateChanges.asObservable(),\n this.ngControl ? this.ngControl.statusChanges : of(undefined),\n ).pipe(\n map(() => this.state),\n tap((state) => this.disabled = state.disabled),\n );\n }\n\n /**\n * @docs-private\n */\n onFocus() {\n this._elementRef.nativeElement.focus();\n }\n\n /**\n * @docs-private\n */\n get value() {\n return this._elementRef.nativeElement.value;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA0BA;;AAEG;AAqB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B,EAAE,WAAW,uBAAuB,EAAE;qBACtE,EAAA,IAAA,EACK;AACJ,wBAAA,KAAK,EAAE,eAAe;AACtB,wBAAA,WAAW,EAAE,YAAY;AACzB,wBAAA,YAAY,EAAE,mBAAmB;AACjC,wBAAA,YAAY,EAAE,mBAAmB;AACjC,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,QAAQ,EAAE,QAAQ;AAClB,wBAAA,yBAAyB,EAAE,iBAAiB;AAC7C,qBAAA,EAAA,MAAA,EAAA,CAAA,mOAAA,CAAA,EAAA;;0BA+FE;;0BAAY;;sBApEd,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;;sBAoBrC,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;;;AC9FxC;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-design-textarea.mjs","names":[],"sources":["../../../libs/design/textarea/src/textarea.component.ts"],"sourcesContent":["import {\n Component,\n Optional,\n Self,\n ElementRef,\n ChangeDetectionStrategy,\n OnInit,\n Input,\n booleanAttribute,\n} from '@angular/core';\nimport {\n NgControl,\n Validators,\n} from '@angular/forms';\nimport {\n map,\n merge,\n of,\n tap,\n} from 'rxjs';\n\nimport {\n DaffFormFieldComponent,\n DaffFormFieldControl,\n DaffFormFieldControlTypesEnum,\n} from '@daffodil/design/form-field';\n\n/**\n * DaffTextareaComponent provides the same functionality as a native `<textarea>` and contains custom styling and functionality.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'textarea[daff-textarea]',\n template: '<ng-content></ng-content>',\n styleUrls: ['./textarea.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n\n { provide: DaffFormFieldControl, useExisting: DaffTextareaComponent },\n ],\n host: {\n class: 'daff-textarea',\n '[attr.id]': 'internalId',\n '[disabled]': 'disabledAttribute',\n '[required]': 'requiredAttribute',\n '(focus)': 'focus()',\n '(blur)': 'blur()',\n '[attr.aria-describedby]': 'ariaDescribedBy',\n },\n})\nexport class DaffTextareaComponent extends DaffFormFieldControl<string> implements DaffFormFieldControl<string>, OnInit {\n /** @docs-private */\n controlType = DaffFormFieldControlTypesEnum.Input;\n\n /**\n * @docs-private\n */\n focused = false;\n\n private get _id() {\n return this.formField?.id();\n };\n\n /**\n * @docs-private\n */\n get internalId() {\n return this._id;\n }\n\n /**\n * @docs-private\n *\n * Implemented as part of DaffFormFieldControl.\n */\n @Input({ transform: booleanAttribute }) disabled = false;\n\n /**\n * @docs-private\n */\n get disabledAttribute() {\n if (this.ngControl) {\n return this.ngControl.disabled;\n }\n\n return this.disabled || null;\n }\n\n private _required = false;\n\n /**\n * @docs-private\n *\n * Implemented as part of DaffFormFieldControl.\n */\n @Input({ transform: booleanAttribute })\n get required(): boolean {\n return this.ngControl?.control?.hasValidator(Validators.required) ?? this._required;\n }\n set required(value: boolean) {\n this._required = value;\n }\n\n /**\n * @docs-private\n */\n get requiredAttribute() {\n return this.required || null;\n }\n\n /**\n * @docs-private\n */\n focus() {\n this.focused = true;\n this.emitState();\n }\n\n /**\n * @docs-private\n */\n blur() {\n this.focused = false;\n this.emitState(true);\n }\n\n /**\n * @docs-private\n */\n get ariaDescribedBy() {\n if(this.formField.hasErrorMessage()) {\n return this.formField.errorMessageId();\n } else if(this.formField.hasHint()) {\n return this.formField.hintId();\n } else {\n return null;\n }\n }\n\n constructor(\n /**\n * @docs-private\n */\n @Optional() @Self() public ngControl: NgControl,\n private _elementRef: ElementRef<HTMLInputElement>,\n private formField: DaffFormFieldComponent,\n ) {\n super(ngControl);\n }\n\n /** @docs-private */\n ngOnInit() {\n this.stateChanges = merge(\n this._stateChanges.asObservable(),\n this.ngControl ? this.ngControl.statusChanges : of(undefined),\n ).pipe(\n map(() => this.state),\n tap((state) => this.disabled = state.disabled),\n );\n }\n\n /**\n * @docs-private\n */\n onFocus() {\n this._elementRef.nativeElement.focus();\n }\n\n /**\n * @docs-private\n */\n get value() {\n return this._elementRef.nativeElement.value;\n }\n}\n"],"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