@ids-group-ltd/ids-design-system 0.12.0 → 0.12.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 (158) hide show
  1. package/CHANGELOG.md +322 -52
  2. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
  3. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  4. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  5. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  6. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
  7. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  8. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  9. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  10. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
  11. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  12. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
  13. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  14. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +2 -2
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +2 -2
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +2 -2
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +12 -5
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +6 -6
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +2 -2
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +21 -8
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -2
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +6 -6
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +15 -5
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +440 -0
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -0
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +186 -0
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -0
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +227 -0
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -0
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +223 -432
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +4 -4
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +2 -2
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +9 -7
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +12 -4
  123. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -38
  125. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system.mjs +3 -0
  127. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  128. package/migrations/0.10.0.json +1 -1
  129. package/migrations/0.10.1.json +1 -1
  130. package/migrations/0.10.2.json +1 -30
  131. package/migrations/0.11.1.json +0 -23
  132. package/migrations/0.11.3.json +1 -1
  133. package/migrations/0.11.4.json +27 -7
  134. package/migrations/0.12.1.json +215 -0
  135. package/migrations/0.5.0.json +0 -54
  136. package/migrations/0.5.1.json +3 -1
  137. package/migrations/0.7.0.json +0 -11
  138. package/migrations/0.9.0.json +22 -3
  139. package/migrations/0.9.1.json +1 -1
  140. package/package.json +25 -1
  141. package/styles/_check-box.scss +84 -0
  142. package/styles/_check-mark.scss +59 -0
  143. package/styles/_dropdown-overlay.scss +12 -2
  144. package/styles/_field-group-segment.scss +4 -1
  145. package/styles/_focus.scss +103 -50
  146. package/styles/_link.scss +4 -2
  147. package/styles/_tokens.scss +20 -0
  148. package/styles/_typography.scss +6 -0
  149. package/themes/_semantic.scss +7 -8
  150. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +3 -0
  151. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +8 -4
  152. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +3 -2
  153. package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +43 -0
  154. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +48 -0
  155. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +79 -0
  156. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +179 -155
  157. package/types/ids-group-ltd-ids-design-system-core.d.ts +12 -4
  158. package/types/ids-group-ltd-ids-design-system.d.ts +3 -0
@@ -33,14 +33,14 @@ class DescriptionItemComponent {
33
33
  setTimeout(() => this.copied.set(false), 1200);
34
34
  }
35
35
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DescriptionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
36
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: DescriptionItemComponent, isStandalone: true, selector: "ds-description-item", inputs: { term: { classPropertyName: "term", publicName: "term", isSignal: true, isRequired: false, transformFunction: null }, copyValue: { classPropertyName: "copyValue", publicName: "copyValue", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "class.stacked": "stacked()" } }, ngImport: i0, template: "<span\n class=\"term\"\n role=\"term\"\n>\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\"\n>\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"copied() ? 'Copied' : 'Copy value'\"\n (click)=\"copy()\"\n >\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\"\n />\n </button>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:none;box-shadow:var(--ds-control-focus-shadow)}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=field]{--ds-control-focus-shadow: var(--focus-field);--ds-control-focus-shadow-error: var(--focus-field-error)}:root[data-focus=edge]{--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error);--ds-control-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-control-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error);--ds-control-focus-shadow: var(--focus-ring-inset);--ds-control-focus-shadow-error: var(--focus-ring-inset-error)}:root[data-focus=outline]{--ds-field-focus-shadow: none;--ds-field-focus-shadow-error: none;--ds-control-focus-shadow: none;--ds-control-focus-shadow-error: none}:root[data-focus=outline] :where(:focus-visible){outline:var(--border-width-strong) solid var(--primary);outline-offset:var(--focus-ring-offset)}@media(forced-colors:active){:where(:focus-visible){outline:var(--border-width-strong) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_term-color: var(--ds-description-list-term-color, var(--text-tertiary));--_term-font-size: var(--ds-description-list-term-font-size, var(--font-size-s));--_term-weight: var(--ds-description-list-term-weight, var(--font-weight-regular));--_term-tracking: var(--ds-description-list-term-tracking, normal);--_term-transform: var(--ds-description-list-term-transform, none);--_details-color: var(--ds-description-list-details-color, var(--text-primary));--_details-font-size: var(--ds-description-list-details-font-size, var(--font-size-s));--_details-weight: var(--ds-description-list-details-weight, var(--font-weight-regular));display:grid;grid-template-columns:minmax(0,var(--_dl-label-w, var(--dl-spec-label-w))) minmax(0,1fr);column-gap:var(--_dl-col-gap, var(--space-5));align-items:baseline}:host(.stacked){display:flex;flex-direction:column;gap:var(--space-0-5)}.term{color:var(--_term-color);font:var(--_term-weight) var(--_term-font-size)/var(--line-height-base) var(--font-sans);letter-spacing:var(--_term-tracking);text-transform:var(--_term-transform)}.details{display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--_details-color);font:var(--_details-weight) var(--_details-font-size)/var(--line-height-base) var(--font-sans)}.value{min-width:0;overflow-wrap:anywhere}.copy{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--space-0-5);border:0;border-radius:var(--ds-radius-inner);background:transparent;color:var(--text-tertiary);cursor:pointer;opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.copy:hover{background:var(--surface-secondary);color:var(--text-primary)}.copy:focus-visible{opacity:1;outline:var(--border-width-strong) solid var(--focus-ring-color);outline-offset:1px;box-shadow:none}:host(:hover) .copy{opacity:1}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
36
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: DescriptionItemComponent, isStandalone: true, selector: "ds-description-item", inputs: { term: { classPropertyName: "term", publicName: "term", isSignal: true, isRequired: false, transformFunction: null }, copyValue: { classPropertyName: "copyValue", publicName: "copyValue", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "class.stacked": "stacked()" } }, ngImport: i0, template: "<span\n class=\"term\"\n role=\"term\">\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\">\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"copied() ? 'Copied' : 'Copy value'\"\n (click)=\"copy()\">\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\" />\n </button>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_term-color: var(--ds-description-list-term-color, var(--text-tertiary));--_term-font-size: var(--ds-description-list-term-font-size, var(--font-size-s));--_term-weight: var(--ds-description-list-term-weight, var(--font-weight-regular));--_term-tracking: var(--ds-description-list-term-tracking, normal);--_term-transform: var(--ds-description-list-term-transform, none);--_details-color: var(--ds-description-list-details-color, var(--text-primary));--_details-font-size: var(--ds-description-list-details-font-size, var(--font-size-s));--_details-weight: var(--ds-description-list-details-weight, var(--font-weight-regular));display:grid;grid-template-columns:minmax(0,var(--_dl-label-w, var(--dl-spec-label-w))) minmax(0,1fr);column-gap:var(--_dl-col-gap, var(--space-5));align-items:baseline}:host(.stacked){display:flex;flex-direction:column;gap:var(--space-0-5)}.term{color:var(--_term-color);font:var(--_term-weight) var(--_term-font-size)/var(--line-height-base) var(--font-sans);letter-spacing:var(--_term-tracking);text-transform:var(--_term-transform)}.details{display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--_details-color);font:var(--_details-weight) var(--_details-font-size)/var(--line-height-base) var(--font-sans)}.value{min-width:0;overflow-wrap:anywhere}.copy{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--space-0-5);border:0;border-radius:var(--ds-radius-inner);background:transparent;color:var(--text-tertiary);cursor:pointer;opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.copy:hover{background:var(--surface-secondary);color:var(--text-primary)}.copy:focus-visible{opacity:1;outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:1px;animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host(:hover) .copy{opacity:1}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
37
37
  }
38
38
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DescriptionItemComponent, decorators: [{
39
39
  type: Component,
40
40
  args: [{ selector: 'ds-description-item', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, host: {
41
41
  role: 'group',
42
42
  '[class.stacked]': 'stacked()',
43
- }, template: "<span\n class=\"term\"\n role=\"term\"\n>\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\"\n>\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"copied() ? 'Copied' : 'Copy value'\"\n (click)=\"copy()\"\n >\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\"\n />\n </button>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:none;box-shadow:var(--ds-control-focus-shadow)}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=field]{--ds-control-focus-shadow: var(--focus-field);--ds-control-focus-shadow-error: var(--focus-field-error)}:root[data-focus=edge]{--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error);--ds-control-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-control-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error);--ds-control-focus-shadow: var(--focus-ring-inset);--ds-control-focus-shadow-error: var(--focus-ring-inset-error)}:root[data-focus=outline]{--ds-field-focus-shadow: none;--ds-field-focus-shadow-error: none;--ds-control-focus-shadow: none;--ds-control-focus-shadow-error: none}:root[data-focus=outline] :where(:focus-visible){outline:var(--border-width-strong) solid var(--primary);outline-offset:var(--focus-ring-offset)}@media(forced-colors:active){:where(:focus-visible){outline:var(--border-width-strong) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_term-color: var(--ds-description-list-term-color, var(--text-tertiary));--_term-font-size: var(--ds-description-list-term-font-size, var(--font-size-s));--_term-weight: var(--ds-description-list-term-weight, var(--font-weight-regular));--_term-tracking: var(--ds-description-list-term-tracking, normal);--_term-transform: var(--ds-description-list-term-transform, none);--_details-color: var(--ds-description-list-details-color, var(--text-primary));--_details-font-size: var(--ds-description-list-details-font-size, var(--font-size-s));--_details-weight: var(--ds-description-list-details-weight, var(--font-weight-regular));display:grid;grid-template-columns:minmax(0,var(--_dl-label-w, var(--dl-spec-label-w))) minmax(0,1fr);column-gap:var(--_dl-col-gap, var(--space-5));align-items:baseline}:host(.stacked){display:flex;flex-direction:column;gap:var(--space-0-5)}.term{color:var(--_term-color);font:var(--_term-weight) var(--_term-font-size)/var(--line-height-base) var(--font-sans);letter-spacing:var(--_term-tracking);text-transform:var(--_term-transform)}.details{display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--_details-color);font:var(--_details-weight) var(--_details-font-size)/var(--line-height-base) var(--font-sans)}.value{min-width:0;overflow-wrap:anywhere}.copy{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--space-0-5);border:0;border-radius:var(--ds-radius-inner);background:transparent;color:var(--text-tertiary);cursor:pointer;opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.copy:hover{background:var(--surface-secondary);color:var(--text-primary)}.copy:focus-visible{opacity:1;outline:var(--border-width-strong) solid var(--focus-ring-color);outline-offset:1px;box-shadow:none}:host(:hover) .copy{opacity:1}\n"] }]
43
+ }, template: "<span\n class=\"term\"\n role=\"term\">\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\">\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"copied() ? 'Copied' : 'Copy value'\"\n (click)=\"copy()\">\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\" />\n </button>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_term-color: var(--ds-description-list-term-color, var(--text-tertiary));--_term-font-size: var(--ds-description-list-term-font-size, var(--font-size-s));--_term-weight: var(--ds-description-list-term-weight, var(--font-weight-regular));--_term-tracking: var(--ds-description-list-term-tracking, normal);--_term-transform: var(--ds-description-list-term-transform, none);--_details-color: var(--ds-description-list-details-color, var(--text-primary));--_details-font-size: var(--ds-description-list-details-font-size, var(--font-size-s));--_details-weight: var(--ds-description-list-details-weight, var(--font-weight-regular));display:grid;grid-template-columns:minmax(0,var(--_dl-label-w, var(--dl-spec-label-w))) minmax(0,1fr);column-gap:var(--_dl-col-gap, var(--space-5));align-items:baseline}:host(.stacked){display:flex;flex-direction:column;gap:var(--space-0-5)}.term{color:var(--_term-color);font:var(--_term-weight) var(--_term-font-size)/var(--line-height-base) var(--font-sans);letter-spacing:var(--_term-tracking);text-transform:var(--_term-transform)}.details{display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--_details-color);font:var(--_details-weight) var(--_details-font-size)/var(--line-height-base) var(--font-sans)}.value{min-width:0;overflow-wrap:anywhere}.copy{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--space-0-5);border:0;border-radius:var(--ds-radius-inner);background:transparent;color:var(--text-tertiary);cursor:pointer;opacity:0;transition:opacity var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.copy:hover{background:var(--surface-secondary);color:var(--text-primary)}.copy:focus-visible{opacity:1;outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:1px;animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host(:hover) .copy{opacity:1}\n"] }]
44
44
  }], propDecorators: { term: [{ type: i0.Input, args: [{ isSignal: true, alias: "term", required: false }] }], copyValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "copyValue", required: false }] }] } });
45
45
 
46
46
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-description-list.mjs","sources":["../../../src/lib/components/description-list/description-list.component.ts","../../../src/lib/components/description-list/description-list.component.html","../../../src/lib/components/description-list/description-item.component.ts","../../../src/lib/components/description-list/description-item.component.html","../../../src/lib/components/description-list/ids-group-ltd-ids-design-system-components-description-list.ts"],"sourcesContent":["import { Component, ViewEncapsulation, input } from '@angular/core';\n\nexport type DescriptionListOrientation = 'horizontal' | 'stacked';\n\n@Component({\n selector: 'ds-description-list',\n standalone: true,\n templateUrl: './description-list.component.html',\n styleUrl: './description-list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.stacked]': \"orientation() === 'stacked'\",\n },\n})\nexport class DescriptionListComponent {\n /** horizontal = label column + value; stacked = label above value. */\n readonly orientation = input<DescriptionListOrientation>('horizontal');\n}\n","<ng-content></ng-content>\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DescriptionListComponent } from './description-list.component';\n\n@Component({\n selector: 'ds-description-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './description-item.component.html',\n styleUrl: './description-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'group',\n '[class.stacked]': 'stacked()',\n },\n})\nexport class DescriptionItemComponent {\n private readonly list = inject(DescriptionListComponent, { optional: true });\n\n /** The label. Plain text; rich values go in the projected content. */\n readonly term = input<string>('');\n /** When set, a copy button appears that copies this string to the clipboard. */\n readonly copyValue = input<string | null>(null);\n\n protected readonly stacked = computed(\n () => this.list?.orientation() === 'stacked',\n );\n protected readonly copied = signal(false);\n\n protected async copy(): Promise<void> {\n const value = this.copyValue();\n if (!value) {\n return;\n }\n await navigator.clipboard?.writeText(value);\n this.copied.set(true);\n setTimeout(() => this.copied.set(false), 1200);\n }\n}\n","<span\n class=\"term\"\n role=\"term\"\n>\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\"\n>\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"copied() ? 'Copied' : 'Copy value'\"\n (click)=\"copy()\"\n >\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\"\n />\n </button>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAca,wBAAwB,CAAA;;AAE1B,IAAA,WAAW,GAAG,KAAK,CAA6B,YAAY,kFAAC;wGAF3D,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAxB,IA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ids-design-system-components-description-list.mjs","sources":["../../../src/lib/components/description-list/description-list.component.ts","../../../src/lib/components/description-list/description-list.component.html","../../../src/lib/components/description-list/description-item.component.ts","../../../src/lib/components/description-list/description-item.component.html","../../../src/lib/components/description-list/ids-group-ltd-ids-design-system-components-description-list.ts"],"sourcesContent":["import { Component, ViewEncapsulation, input } from '@angular/core';\n\nexport type DescriptionListOrientation = 'horizontal' | 'stacked';\n\n@Component({\n selector: 'ds-description-list',\n standalone: true,\n templateUrl: './description-list.component.html',\n styleUrl: './description-list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.stacked]': \"orientation() === 'stacked'\",\n },\n})\nexport class DescriptionListComponent {\n /** horizontal = label column + value; stacked = label above value. */\n readonly orientation = input<DescriptionListOrientation>('horizontal');\n}\n","<ng-content></ng-content>\n","import {\n Component,\n ViewEncapsulation,\n computed,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DescriptionListComponent } from './description-list.component';\n\n@Component({\n selector: 'ds-description-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './description-item.component.html',\n styleUrl: './description-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'group',\n '[class.stacked]': 'stacked()',\n },\n})\nexport class DescriptionItemComponent {\n private readonly list = inject(DescriptionListComponent, { optional: true });\n\n /** The label. Plain text; rich values go in the projected content. */\n readonly term = input<string>('');\n /** When set, a copy button appears that copies this string to the clipboard. */\n readonly copyValue = input<string | null>(null);\n\n protected readonly stacked = computed(\n () => this.list?.orientation() === 'stacked',\n );\n protected readonly copied = signal(false);\n\n protected async copy(): Promise<void> {\n const value = this.copyValue();\n if (!value) {\n return;\n }\n await navigator.clipboard?.writeText(value);\n this.copied.set(true);\n setTimeout(() => this.copied.set(false), 1200);\n }\n}\n","<span\n class=\"term\"\n role=\"term\">\n {{ term() }}\n</span>\n\n<div\n class=\"details\"\n role=\"definition\">\n <span class=\"value\">\n <ng-content></ng-content>\n </span>\n\n @if (copyValue()) {\n <button\n type=\"button\"\n class=\"copy\"\n [attr.aria-label]=\"copied() ? 'Copied' : 'Copy value'\"\n (click)=\"copy()\">\n <ds-icon\n [name]=\"copied() ? 'check' : 'copy'\"\n [size]=\"14\" />\n </button>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAca,wBAAwB,CAAA;;AAE1B,IAAA,WAAW,GAAG,KAAK,CAA6B,YAAY,kFAAC;wGAF3D,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAxB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,wBAAwB,+SCdrC,6BACA,EAAA,MAAA,EAAA,CAAA,sRAAA,CAAA,EAAA,CAAA;;4FDaa,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAVpC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,qBAAqB,cACnB,IAAI,EAAA,aAAA,EAGD,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,iBAAiB,EAAE,6BAA6B;AACjD,qBAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,MAAA,EAAA,CAAA,sRAAA,CAAA,EAAA;;;MEWU,wBAAwB,CAAA;IAClB,IAAI,GAAG,MAAM,CAAC,wBAAwB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;AAGnE,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;;AAExB,IAAA,SAAS,GAAG,KAAK,CAAgB,IAAI,gFAAC;AAE5B,IAAA,OAAO,GAAG,QAAQ,CACnC,MAAM,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,SAAS,8E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AA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FASZ,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAZpC,SAAS;+BACE,qBAAqB,EAAA,UAAA,EACnB,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,aAAA,EAGT,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,IAAI,EAAE,OAAO;AACb,wBAAA,iBAAiB,EAAE,WAAW;AAC/B,qBAAA,EAAA,QAAA,EAAA,meAAA,EAAA,MAAA,EAAA,CAAA,21FAAA,CAAA,EAAA;;;AErBH;;AAEG;;;;"}
@@ -92,13 +92,13 @@ class DrawerComponent {
92
92
  }
93
93
  }
94
94
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
95
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: DrawerComponent, isStandalone: true, selector: "ds-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, ngImport: i0, template: "@if (rendered()) {\n <div class=\"drawer-root\">\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n <div\n class=\"drawer-scrim\"\n [class.closing]=\"closing()\"\n (click)=\"onClose()\"\n >\n </div>\n\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [class]=\"classes()\"\n [class.closing]=\"closing()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (keydown.escape)=\"onClose()\"\n (animationend)=\"onLeaveEnd($event)\"\n >\n <header class=\"header\">\n <h4\n class=\"title\"\n [id]=\"titleId\"\n >\n {{ title() }}\n </h4>\n\n <button\n type=\"button\"\n class=\"close\"\n aria-label=\"Close\"\n (click)=\"onClose()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"16\"\n />\n </button>\n </header>\n\n <div class=\"body\">\n <ng-content select=\"[drawer-body]\"></ng-content>\n </div>\n\n <div class=\"footer\">\n <ng-content select=\"[drawer-footer]\"></ng-content>\n </div>\n </div>\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{--_drawer-bg-color: var(--ds-drawer-bg-color, var(--surface-overlay));--_drawer-scrim-color: var(--ds-drawer-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));--_drawer-shadow: var(--ds-drawer-shadow, var(--ds-elevation-modal));--_drawer-divider: var(--ds-drawer-divider, var(--border-divider));--_drawer-close-icon-color: var(--ds-drawer-close-icon-color, var(--icon-default));--_drawer-close-icon-color-hover: var(--ds-drawer-close-icon-color-hover, var(--icon-strong));--_drawer-radius: var(--ds-drawer-radius, 0);--_drawer-title-color: var(--ds-drawer-title-color, inherit);--_drawer-width-sm: var(--ds-drawer-width, var(--drawer-w-sm));--_drawer-width-md: var(--ds-drawer-width, var(--drawer-w-md));--_drawer-width-lg: var(--ds-drawer-width, var(--drawer-w-lg));--_drawer-enter-keyframes: var(--ds-drawer-enter-keyframes, ds-slide-edge-in);--_drawer-leave-keyframes: var(--ds-drawer-leave-keyframes, ds-slide-edge-out);--_drawer-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-large-duration));--_drawer-enter-easing: var(--ds-drawer-enter-easing, var(--ds-motion-enter-large-easing));--_drawer-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-large-duration));--_drawer-leave-easing: var(--ds-drawer-leave-easing, var(--ds-motion-exit-large-easing));--_drawer-scrim-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-panel-duration));--_drawer-scrim-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-drawer-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_drawer-enter-duration: 0ms;--_drawer-leave-duration: 0ms;--_drawer-scrim-enter-duration: 0ms;--_drawer-scrim-leave-duration: 0ms}}.drawer-root{position:fixed;inset:0;z-index:var(--layer-modal);overflow:clip}.drawer-scrim{position:absolute;inset:0;background:var(--_drawer-scrim-color);animation-name:ds-fade-in;animation-duration:var(--_drawer-scrim-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer-scrim.closing{animation-name:ds-fade-out;animation-duration:var(--_drawer-scrim-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer{position:absolute;background:var(--_drawer-bg-color);box-shadow:var(--_drawer-shadow);border-radius:var(--_drawer-radius);display:flex;flex-direction:column;isolation:isolate;animation-name:var(--_drawer-enter-keyframes);animation-duration:var(--_drawer-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer.closing{animation-duration:var(--_drawer-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer.sm{width:var(--_drawer-width-sm)}.drawer.md{width:var(--_drawer-width-md)}.drawer.lg{width:var(--_drawer-width-lg)}.drawer.right{--_ds-enter-x: 100%;top:0;right:0;bottom:0;max-width:100vw}.drawer.right.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.left{--_ds-enter-x: -100%;top:0;left:0;bottom:0;max-width:100vw}.drawer.left.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.top{--_ds-enter-y: -100%;top:0;left:0;right:0;width:auto;max-height:80vh}.drawer.top.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.bottom{--_ds-enter-y: 100%;bottom:0;left:0;right:0;width:auto;max-height:80vh}.drawer.bottom.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer .header{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-5) var(--space-6);border-bottom:var(--border-width-default) solid var(--_drawer-divider)}.drawer .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_drawer-title-color);margin:0;flex:1}.drawer .close{background:transparent;border:0;width:var(--modal-close-size);height:var(--modal-close-size);color:var(--_drawer-close-icon-color);cursor:pointer;padding:0}.drawer .close:hover{color:var(--_drawer-close-icon-color-hover)}.drawer .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.drawer .body{flex:1;padding:var(--space-6);overflow-y:auto}.drawer .footer{padding:var(--space-4) var(--space-6);border-top:var(--border-width-default) solid var(--_drawer-divider);display:flex;gap:var(--space-2);justify-content:flex-end}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
95
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: DrawerComponent, isStandalone: true, selector: "ds-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, ngImport: i0, template: "@if (rendered()) {\n <div class=\"drawer-root\">\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n <div\n class=\"drawer-scrim\"\n [class.closing]=\"closing()\"\n (click)=\"onClose()\">\n </div>\n\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [class]=\"classes()\"\n [class.closing]=\"closing()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (keydown.escape)=\"onClose()\"\n (animationend)=\"onLeaveEnd($event)\">\n <header class=\"header\">\n <h4\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h4>\n\n <button\n type=\"button\"\n class=\"close\"\n aria-label=\"Close\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\" />\n </button>\n </header>\n\n <div class=\"body\">\n <ng-content select=\"[drawer-body]\"></ng-content>\n </div>\n\n <div class=\"footer\">\n <ng-content select=\"[drawer-footer]\"></ng-content>\n </div>\n </div>\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{--_drawer-bg-color: var(--ds-drawer-bg-color, var(--surface-overlay));--_drawer-scrim-color: var(--ds-drawer-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));--_drawer-shadow: var(--ds-drawer-shadow, var(--ds-elevation-modal));--_drawer-divider: var(--ds-drawer-divider, var(--border-divider));--_drawer-close-icon-color: var(--ds-drawer-close-icon-color, var(--icon-default));--_drawer-close-icon-color-hover: var(--ds-drawer-close-icon-color-hover, var(--icon-strong));--_drawer-radius: var(--ds-drawer-radius, 0);--_drawer-title-color: var(--ds-drawer-title-color, inherit);--_drawer-width-sm: var(--ds-drawer-width, var(--drawer-w-sm));--_drawer-width-md: var(--ds-drawer-width, var(--drawer-w-md));--_drawer-width-lg: var(--ds-drawer-width, var(--drawer-w-lg));--_drawer-enter-keyframes: var(--ds-drawer-enter-keyframes, ds-slide-edge-in);--_drawer-leave-keyframes: var(--ds-drawer-leave-keyframes, ds-slide-edge-out);--_drawer-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-large-duration));--_drawer-enter-easing: var(--ds-drawer-enter-easing, var(--ds-motion-enter-large-easing));--_drawer-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-large-duration));--_drawer-leave-easing: var(--ds-drawer-leave-easing, var(--ds-motion-exit-large-easing));--_drawer-scrim-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-panel-duration));--_drawer-scrim-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-drawer-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_drawer-enter-duration: 0ms;--_drawer-leave-duration: 0ms;--_drawer-scrim-enter-duration: 0ms;--_drawer-scrim-leave-duration: 0ms}}.drawer-root{position:fixed;inset:0;z-index:var(--layer-modal);overflow:clip}.drawer-scrim{position:absolute;inset:0;background:var(--_drawer-scrim-color);animation-name:ds-fade-in;animation-duration:var(--_drawer-scrim-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer-scrim.closing{animation-name:ds-fade-out;animation-duration:var(--_drawer-scrim-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer{position:absolute;background:var(--_drawer-bg-color);box-shadow:var(--_drawer-shadow);border-radius:var(--_drawer-radius);display:flex;flex-direction:column;isolation:isolate;animation-name:var(--_drawer-enter-keyframes);animation-duration:var(--_drawer-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer.closing{animation-duration:var(--_drawer-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer.sm{width:var(--_drawer-width-sm)}.drawer.md{width:var(--_drawer-width-md)}.drawer.lg{width:var(--_drawer-width-lg)}.drawer.right{--_ds-enter-x: 100%;top:0;right:0;bottom:0;max-width:100vw}.drawer.right.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.left{--_ds-enter-x: -100%;top:0;left:0;bottom:0;max-width:100vw}.drawer.left.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.top{--_ds-enter-y: -100%;top:0;left:0;right:0;width:auto;max-height:80vh}.drawer.top.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.bottom{--_ds-enter-y: 100%;bottom:0;left:0;right:0;width:auto;max-height:80vh}.drawer.bottom.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer .header{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-5) var(--space-6);border-bottom:var(--border-width-default) solid var(--_drawer-divider)}.drawer .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_drawer-title-color);margin:0;flex:1}.drawer .close{background:transparent;border:0;width:var(--modal-close-size);height:var(--modal-close-size);color:var(--_drawer-close-icon-color);cursor:pointer;padding:0}.drawer .close:hover{color:var(--_drawer-close-icon-color-hover)}.drawer .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.drawer .body{flex:1;padding:var(--space-6);overflow-y:auto}.drawer .footer{padding:var(--space-4) var(--space-6);border-top:var(--border-width-default) solid var(--_drawer-divider);display:flex;gap:var(--space-2);justify-content:flex-end}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
96
96
  }
97
97
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DrawerComponent, decorators: [{
98
98
  type: Component,
99
99
  args: [{ selector: 'ds-drawer', standalone: true, imports: [IconComponent, A11yModule], encapsulation: ViewEncapsulation.Emulated, host: {
100
100
  '(document:keydown.escape)': 'onEscape()',
101
- }, template: "@if (rendered()) {\n <div class=\"drawer-root\">\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n <div\n class=\"drawer-scrim\"\n [class.closing]=\"closing()\"\n (click)=\"onClose()\"\n >\n </div>\n\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [class]=\"classes()\"\n [class.closing]=\"closing()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (keydown.escape)=\"onClose()\"\n (animationend)=\"onLeaveEnd($event)\"\n >\n <header class=\"header\">\n <h4\n class=\"title\"\n [id]=\"titleId\"\n >\n {{ title() }}\n </h4>\n\n <button\n type=\"button\"\n class=\"close\"\n aria-label=\"Close\"\n (click)=\"onClose()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"16\"\n />\n </button>\n </header>\n\n <div class=\"body\">\n <ng-content select=\"[drawer-body]\"></ng-content>\n </div>\n\n <div class=\"footer\">\n <ng-content select=\"[drawer-footer]\"></ng-content>\n </div>\n </div>\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{--_drawer-bg-color: var(--ds-drawer-bg-color, var(--surface-overlay));--_drawer-scrim-color: var(--ds-drawer-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));--_drawer-shadow: var(--ds-drawer-shadow, var(--ds-elevation-modal));--_drawer-divider: var(--ds-drawer-divider, var(--border-divider));--_drawer-close-icon-color: var(--ds-drawer-close-icon-color, var(--icon-default));--_drawer-close-icon-color-hover: var(--ds-drawer-close-icon-color-hover, var(--icon-strong));--_drawer-radius: var(--ds-drawer-radius, 0);--_drawer-title-color: var(--ds-drawer-title-color, inherit);--_drawer-width-sm: var(--ds-drawer-width, var(--drawer-w-sm));--_drawer-width-md: var(--ds-drawer-width, var(--drawer-w-md));--_drawer-width-lg: var(--ds-drawer-width, var(--drawer-w-lg));--_drawer-enter-keyframes: var(--ds-drawer-enter-keyframes, ds-slide-edge-in);--_drawer-leave-keyframes: var(--ds-drawer-leave-keyframes, ds-slide-edge-out);--_drawer-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-large-duration));--_drawer-enter-easing: var(--ds-drawer-enter-easing, var(--ds-motion-enter-large-easing));--_drawer-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-large-duration));--_drawer-leave-easing: var(--ds-drawer-leave-easing, var(--ds-motion-exit-large-easing));--_drawer-scrim-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-panel-duration));--_drawer-scrim-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-drawer-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_drawer-enter-duration: 0ms;--_drawer-leave-duration: 0ms;--_drawer-scrim-enter-duration: 0ms;--_drawer-scrim-leave-duration: 0ms}}.drawer-root{position:fixed;inset:0;z-index:var(--layer-modal);overflow:clip}.drawer-scrim{position:absolute;inset:0;background:var(--_drawer-scrim-color);animation-name:ds-fade-in;animation-duration:var(--_drawer-scrim-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer-scrim.closing{animation-name:ds-fade-out;animation-duration:var(--_drawer-scrim-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer{position:absolute;background:var(--_drawer-bg-color);box-shadow:var(--_drawer-shadow);border-radius:var(--_drawer-radius);display:flex;flex-direction:column;isolation:isolate;animation-name:var(--_drawer-enter-keyframes);animation-duration:var(--_drawer-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer.closing{animation-duration:var(--_drawer-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer.sm{width:var(--_drawer-width-sm)}.drawer.md{width:var(--_drawer-width-md)}.drawer.lg{width:var(--_drawer-width-lg)}.drawer.right{--_ds-enter-x: 100%;top:0;right:0;bottom:0;max-width:100vw}.drawer.right.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.left{--_ds-enter-x: -100%;top:0;left:0;bottom:0;max-width:100vw}.drawer.left.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.top{--_ds-enter-y: -100%;top:0;left:0;right:0;width:auto;max-height:80vh}.drawer.top.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.bottom{--_ds-enter-y: 100%;bottom:0;left:0;right:0;width:auto;max-height:80vh}.drawer.bottom.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer .header{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-5) var(--space-6);border-bottom:var(--border-width-default) solid var(--_drawer-divider)}.drawer .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_drawer-title-color);margin:0;flex:1}.drawer .close{background:transparent;border:0;width:var(--modal-close-size);height:var(--modal-close-size);color:var(--_drawer-close-icon-color);cursor:pointer;padding:0}.drawer .close:hover{color:var(--_drawer-close-icon-color-hover)}.drawer .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.drawer .body{flex:1;padding:var(--space-6);overflow-y:auto}.drawer .footer{padding:var(--space-4) var(--space-6);border-top:var(--border-width-default) solid var(--_drawer-divider);display:flex;gap:var(--space-2);justify-content:flex-end}\n"] }]
101
+ }, template: "@if (rendered()) {\n <div class=\"drawer-root\">\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n <div\n class=\"drawer-scrim\"\n [class.closing]=\"closing()\"\n (click)=\"onClose()\">\n </div>\n\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [class]=\"classes()\"\n [class.closing]=\"closing()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (keydown.escape)=\"onClose()\"\n (animationend)=\"onLeaveEnd($event)\">\n <header class=\"header\">\n <h4\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h4>\n\n <button\n type=\"button\"\n class=\"close\"\n aria-label=\"Close\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\" />\n </button>\n </header>\n\n <div class=\"body\">\n <ng-content select=\"[drawer-body]\"></ng-content>\n </div>\n\n <div class=\"footer\">\n <ng-content select=\"[drawer-footer]\"></ng-content>\n </div>\n </div>\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{--_drawer-bg-color: var(--ds-drawer-bg-color, var(--surface-overlay));--_drawer-scrim-color: var(--ds-drawer-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));--_drawer-shadow: var(--ds-drawer-shadow, var(--ds-elevation-modal));--_drawer-divider: var(--ds-drawer-divider, var(--border-divider));--_drawer-close-icon-color: var(--ds-drawer-close-icon-color, var(--icon-default));--_drawer-close-icon-color-hover: var(--ds-drawer-close-icon-color-hover, var(--icon-strong));--_drawer-radius: var(--ds-drawer-radius, 0);--_drawer-title-color: var(--ds-drawer-title-color, inherit);--_drawer-width-sm: var(--ds-drawer-width, var(--drawer-w-sm));--_drawer-width-md: var(--ds-drawer-width, var(--drawer-w-md));--_drawer-width-lg: var(--ds-drawer-width, var(--drawer-w-lg));--_drawer-enter-keyframes: var(--ds-drawer-enter-keyframes, ds-slide-edge-in);--_drawer-leave-keyframes: var(--ds-drawer-leave-keyframes, ds-slide-edge-out);--_drawer-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-large-duration));--_drawer-enter-easing: var(--ds-drawer-enter-easing, var(--ds-motion-enter-large-easing));--_drawer-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-large-duration));--_drawer-leave-easing: var(--ds-drawer-leave-easing, var(--ds-motion-exit-large-easing));--_drawer-scrim-enter-duration: var(--ds-drawer-enter-duration, var(--ds-motion-enter-panel-duration));--_drawer-scrim-leave-duration: var(--ds-drawer-leave-duration, var(--ds-motion-exit-duration));--_ds-enter-scale: var(--ds-drawer-enter-scale, .96);display:contents}@media(prefers-reduced-motion:reduce){:host{--_drawer-enter-duration: 0ms;--_drawer-leave-duration: 0ms;--_drawer-scrim-enter-duration: 0ms;--_drawer-scrim-leave-duration: 0ms}}.drawer-root{position:fixed;inset:0;z-index:var(--layer-modal);overflow:clip}.drawer-scrim{position:absolute;inset:0;background:var(--_drawer-scrim-color);animation-name:ds-fade-in;animation-duration:var(--_drawer-scrim-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer-scrim.closing{animation-name:ds-fade-out;animation-duration:var(--_drawer-scrim-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer{position:absolute;background:var(--_drawer-bg-color);box-shadow:var(--_drawer-shadow);border-radius:var(--_drawer-radius);display:flex;flex-direction:column;isolation:isolate;animation-name:var(--_drawer-enter-keyframes);animation-duration:var(--_drawer-enter-duration);animation-timing-function:var(--_drawer-enter-easing)}.drawer.closing{animation-duration:var(--_drawer-leave-duration);animation-timing-function:var(--_drawer-leave-easing);animation-fill-mode:forwards}.drawer.sm{width:var(--_drawer-width-sm)}.drawer.md{width:var(--_drawer-width-md)}.drawer.lg{width:var(--_drawer-width-lg)}.drawer.right{--_ds-enter-x: 100%;top:0;right:0;bottom:0;max-width:100vw}.drawer.right.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.left{--_ds-enter-x: -100%;top:0;left:0;bottom:0;max-width:100vw}.drawer.left.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.top{--_ds-enter-y: -100%;top:0;left:0;right:0;width:auto;max-height:80vh}.drawer.top.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer.bottom{--_ds-enter-y: 100%;bottom:0;left:0;right:0;width:auto;max-height:80vh}.drawer.bottom.closing{animation-name:var(--_drawer-leave-keyframes)}.drawer .header{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-5) var(--space-6);border-bottom:var(--border-width-default) solid var(--_drawer-divider)}.drawer .title{font:var(--font-weight-bold) var(--font-size-h5)/var(--line-height-snug) var(--font-sans);color:var(--_drawer-title-color);margin:0;flex:1}.drawer .close{background:transparent;border:0;width:var(--modal-close-size);height:var(--modal-close-size);color:var(--_drawer-close-icon-color);cursor:pointer;padding:0}.drawer .close:hover{color:var(--_drawer-close-icon-color-hover)}.drawer .close:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.drawer .body{flex:1;padding:var(--space-6);overflow-y:auto}.drawer .footer{padding:var(--space-4) var(--space-6);border-top:var(--border-width-default) solid var(--_drawer-divider);display:flex;gap:var(--space-2);justify-content:flex-end}\n"] }]
102
102
  }], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
103
103
 
104
104
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-drawer.mjs","sources":["../../../src/lib/components/drawer/drawer.component.ts","../../../src/lib/components/drawer/drawer.component.html","../../../src/lib/components/drawer/ids-group-ltd-ids-design-system-components-drawer.ts"],"sourcesContent":["import {\n Component,\n type OnDestroy,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';\nimport type { DrawerPlacement } from './drawer.types';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-drawer',\n standalone: true,\n imports: [IconComponent, A11yModule],\n templateUrl: './drawer.component.html',\n styleUrl: './drawer.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '(document:keydown.escape)': 'onEscape()',\n },\n})\nexport class DrawerComponent implements OnDestroy {\n private readonly scrollLock = inject(BodyScrollLockService);\n\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Panel size — sm/md/lg. */\n readonly size = input<DsSize>('md');\n /** Edge the panel slides in from. */\n readonly placement = input<DrawerPlacement>('right');\n /** Drawer title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Fires once the close (slide-out) animation finishes. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-drawer-title-${++nextId}`;\n /** Panel is in the DOM (kept true through the slide-out). */\n protected readonly rendered = signal(false);\n /** Playing the slide-out + scrim-fade leave animation. */\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n protected readonly classes = computed(() => {\n const parts = ['drawer', this.placement(), this.size()];\n\n return parts.join(' ');\n });\n\n constructor() {\n // open → DOM lifecycle: opening renders now; closing keeps the panel mounted\n // and flips `closing` so the slide-out can play (teardown in onLeaveEnd).\n effect(() => {\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n } else if (this.wasOpen) {\n this.closing.set(true);\n // Chrome freezes CSS animations on a backgrounded tab, so animationend\n // may never fire — this synthetic fallback guarantees teardown anyway.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted body-scroll lock, shared with modal/bottom-sheet so stacked\n // overlays don't unlock each other. The effect's cleanup fires on the\n // rendered→false transition and on destroy, keeping lock/unlock paired.\n effect((onCleanup) => {\n if (!this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected onClose(): void {\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // The panel is the element with the handler, so its OWN animationend is the\n // signal; the scrim is a sibling and anything else is inside. This replaces\n // matching four keyframes NAMES, which is what made the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected onEscape(): void {\n if (this.open()) {\n this.onClose();\n }\n }\n}\n","@if (rendered()) {\n <div class=\"drawer-root\">\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n <div\n class=\"drawer-scrim\"\n [class.closing]=\"closing()\"\n (click)=\"onClose()\"\n >\n </div>\n\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [class]=\"classes()\"\n [class.closing]=\"closing()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (keydown.escape)=\"onClose()\"\n (animationend)=\"onLeaveEnd($event)\"\n >\n <header class=\"header\">\n <h4\n class=\"title\"\n [id]=\"titleId\"\n >\n {{ title() }}\n </h4>\n\n <button\n type=\"button\"\n class=\"close\"\n aria-label=\"Close\"\n (click)=\"onClose()\"\n >\n <ds-icon\n name=\"x\"\n [size]=\"16\"\n />\n </button>\n </header>\n\n <div class=\"body\">\n <ng-content select=\"[drawer-body]\"></ng-content>\n </div>\n\n <div class=\"footer\">\n <ng-content select=\"[drawer-footer]\"></ng-content>\n </div>\n </div>\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAkBA,IAAI,MAAM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AAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED7BY,aAAa,oGAAE,UAAU,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,cAAA,EAAA,yBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAQxB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAX3B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,UAAA,EACT,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,EAAE,UAAU,CAAC,EAAA,aAAA,EAGrB,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,2BAA2B,EAAE,YAAY;AAC1C,qBAAA,EAAA,QAAA,EAAA,u3CAAA,EAAA,MAAA,EAAA,CAAA,+yIAAA,CAAA,EAAA;;;AE7BH;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-drawer.mjs","sources":["../../../src/lib/components/drawer/drawer.component.ts","../../../src/lib/components/drawer/drawer.component.html","../../../src/lib/components/drawer/ids-group-ltd-ids-design-system-components-drawer.ts"],"sourcesContent":["import {\n Component,\n type OnDestroy,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { BodyScrollLockService } from '@ids-group-ltd/ids-design-system/overlay';\nimport type { DrawerPlacement } from './drawer.types';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\n\nlet nextId = 0;\n\n@Component({\n selector: 'ds-drawer',\n standalone: true,\n imports: [IconComponent, A11yModule],\n templateUrl: './drawer.component.html',\n styleUrl: './drawer.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '(document:keydown.escape)': 'onEscape()',\n },\n})\nexport class DrawerComponent implements OnDestroy {\n private readonly scrollLock = inject(BodyScrollLockService);\n\n /** Open state, two-way bound. */\n readonly open = model<boolean>(false);\n /** Panel size — sm/md/lg. */\n readonly size = input<DsSize>('md');\n /** Edge the panel slides in from. */\n readonly placement = input<DrawerPlacement>('right');\n /** Drawer title, shown in the header and used for `aria-labelledby`. */\n readonly title = input.required<string>();\n /** Fires once the close (slide-out) animation finishes. */\n readonly closed = output<void>();\n\n protected readonly titleId = `ds-drawer-title-${++nextId}`;\n /** Panel is in the DOM (kept true through the slide-out). */\n protected readonly rendered = signal(false);\n /** Playing the slide-out + scrim-fade leave animation. */\n protected readonly closing = signal(false);\n private wasOpen = false;\n private closeFallbackTimer: ReturnType<typeof setTimeout> | null = null;\n\n protected readonly classes = computed(() => {\n const parts = ['drawer', this.placement(), this.size()];\n\n return parts.join(' ');\n });\n\n constructor() {\n // open → DOM lifecycle: opening renders now; closing keeps the panel mounted\n // and flips `closing` so the slide-out can play (teardown in onLeaveEnd).\n effect(() => {\n const isOpen = this.open();\n if (isOpen) {\n this.closing.set(false);\n this.rendered.set(true);\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n } else if (this.wasOpen) {\n this.closing.set(true);\n // Chrome freezes CSS animations on a backgrounded tab, so animationend\n // may never fire — this synthetic fallback guarantees teardown anyway.\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = setTimeout(() => this.finishClose(), 300);\n }\n this.wasOpen = isOpen;\n });\n\n // Ref-counted body-scroll lock, shared with modal/bottom-sheet so stacked\n // overlays don't unlock each other. The effect's cleanup fires on the\n // rendered→false transition and on destroy, keeping lock/unlock paired.\n effect((onCleanup) => {\n if (!this.rendered()) {\n return;\n }\n this.scrollLock.lock();\n onCleanup(() => this.scrollLock.unlock());\n });\n }\n\n ngOnDestroy(): void {\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n }\n\n protected onClose(): void {\n this.open.set(false);\n }\n\n protected onLeaveEnd(event: AnimationEvent): void {\n // The panel is the element with the handler, so its OWN animationend is the\n // signal; the scrim is a sibling and anything else is inside. This replaces\n // matching four keyframes NAMES, which is what made the exit un-overridable.\n if (event.target !== event.currentTarget) {\n return;\n }\n this.finishClose();\n }\n\n private finishClose(): void {\n if (!this.closing()) {\n return;\n }\n clearTimeout(this.closeFallbackTimer ?? undefined);\n this.closeFallbackTimer = null;\n this.closing.set(false);\n this.rendered.set(false);\n this.closed.emit();\n }\n\n protected onEscape(): void {\n if (this.open()) {\n this.onClose();\n }\n }\n}\n","@if (rendered()) {\n <div class=\"drawer-root\">\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n <div\n class=\"drawer-scrim\"\n [class.closing]=\"closing()\"\n (click)=\"onClose()\">\n </div>\n\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [class]=\"classes()\"\n [class.closing]=\"closing()\"\n [attr.aria-labelledby]=\"title() ? titleId : null\"\n (keydown.escape)=\"onClose()\"\n (animationend)=\"onLeaveEnd($event)\">\n <header class=\"header\">\n <h4\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h4>\n\n <button\n type=\"button\"\n class=\"close\"\n aria-label=\"Close\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\" />\n </button>\n </header>\n\n <div class=\"body\">\n <ng-content select=\"[drawer-body]\"></ng-content>\n </div>\n\n <div class=\"footer\">\n <ng-content select=\"[drawer-footer]\"></ng-content>\n </div>\n </div>\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAkBA,IAAI,MAAM,GAAG,CAAC;MAaD,eAAe,CAAA;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A,IAAA,EAAA,WAAA,EAAA,IAAA,EDxBY,aAAa,oGAAE,UAAU,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,cAAA,EAAA,yBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAQxB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAX3B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,UAAA,EACT,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,EAAE,UAAU,CAAC,EAAA,aAAA,EAGrB,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,2BAA2B,EAAE,YAAY;AAC1C,qBAAA,EAAA,QAAA,EAAA,40CAAA,EAAA,MAAA,EAAA,CAAA,+yIAAA,CAAA,EAAA;;;AE7BH;;AAEG;;;;"}
@@ -96,11 +96,11 @@ class DropzoneComponent {
96
96
  return 'file';
97
97
  }
98
98
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DropzoneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
99
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: DropzoneComponent, isStandalone: true, selector: "ds-dropzone", inputs: { accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, single: { classPropertyName: "single", publicName: "single", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { files: "filesChange", filesAdded: "filesAdded", fileRemoved: "fileRemoved" }, ngImport: i0, template: "<label\n [class]=\"classes()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\"\n>\n <input\n type=\"file\"\n class=\"dz-input\"\n aria-label=\"Upload files\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"single() ? false : multiple()\"\n [disabled]=\"disabled()\"\n (change)=\"onPickerChange($event)\"\n />\n\n @if (files().length === 0) {\n <ds-icon\n name=\"upload\"\n [size]=\"24\"\n >\n </ds-icon>\n\n <div class=\"title\">\n Drop files here\n </div>\n\n <div class=\"hint\">\n or click to browse\n </div>\n\n <ng-content select=\"[hint]\"></ng-content>\n } @else {\n <div class=\"file-list\">\n @for (file of files(); track file.id) {\n <div [class]=\"'file ' + file.state\">\n <ds-icon\n class=\"icon\"\n [name]=\"fileIcon(file.state)\"\n [size]=\"20\"\n >\n </ds-icon>\n\n <div class=\"main\">\n <div class=\"name\">\n {{ file.name }}\n </div>\n\n <div class=\"meta\">\n {{ fileMeta(file) }}\n </div>\n\n @if (file.state === 'uploading') {\n <div class=\"progress\">\n <div\n class=\"progress-fill\"\n [style.width.%]=\"file.progress\"\n >\n </div>\n </div>\n }\n </div>\n\n <button\n class=\"remove\"\n type=\"button\"\n [attr.aria-label]=\"'Remove ' + file.name\"\n (click)=\"\n onRemove(file); $event.preventDefault(); $event.stopPropagation()\n \"\n >\n <ds-icon\n name=\"x\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n </div>\n }\n </div>\n }\n</label>\n", styles: [":host{--_dropzone-bg-color: var(--ds-dropzone-bg-color, var(--surface-default));--_dropzone-bg-color-hover: var(--ds-dropzone-bg-color-hover, var(--accent-subtitle));--_dropzone-bg-color-active: var(--ds-dropzone-bg-color-active, var(--accent-subtitle));--_dropzone-border: var(--ds-dropzone-border, var(--border-default));--_dropzone-border-hover: var(--ds-dropzone-border-hover, var(--accent));--_dropzone-border-active: var(--ds-dropzone-border-active, var(--accent));--_dropzone-text-color: var(--ds-dropzone-text-color, var(--text-secondary));--_dropzone-text-color-active: var(--ds-dropzone-text-color-active, var(--accent-strong));--_dropzone-radius: var(--ds-dropzone-radius, var(--ds-radius-panel));--_dropzone-file-progress: var(--ds-dropzone-file-progress, var(--accent));--_dropzone-file-success: var(--ds-dropzone-file-success, var(--success));--_dropzone-file-error: var(--ds-dropzone-file-error, var(--error));--_dropzone-file-border: var(--ds-dropzone-file-border, var(--border-default));--_dropzone-file-name-color: var(--ds-dropzone-file-name-color, var(--text-primary));--_dropzone-icon-color: var(--ds-dropzone-icon-color, var(--icon-default));display:flex;flex-direction:column;min-width:0}.dz-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.dropzone:focus-within{outline:var(--border-width-strong, 2px) solid var(--accent);outline-offset:var(--focus-ring-offset)}.dropzone{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);border:var(--border-width-strong) dashed var(--_dropzone-border);border-radius:var(--_dropzone-radius);padding:var(--space-6);text-align:center;background-color:var(--_dropzone-bg-color);cursor:pointer;min-height:160px;transition:border-color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.dropzone:hover{border-color:var(--_dropzone-border-hover);background-color:var(--_dropzone-bg-color-hover)}.dropzone.active{border-color:var(--_dropzone-border-active);background-color:var(--_dropzone-bg-color-active)}.dropzone.has-files{align-items:stretch;text-align:left;min-height:0;cursor:default}.dropzone.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed;pointer-events:none}.dropzone.single{max-width:var(--col-cap-text)}.dropzone .title{font:var(--font-weight-bold) var(--font-size-m)/var(--line-height-snug) var(--font-heading);margin:0 0 var(--space-1)}.dropzone .hint{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-text-color)}.dropzone [hint]{margin:var(--space-3) calc(var(--space-6) * -1) 0;padding:var(--space-3) var(--space-6) 0;border-top:var(--border-width-default) solid var(--border-subtitle);align-self:stretch;text-align:center;font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary);letter-spacing:var(--letter-spacing-wide)}.dropzone .file-list{width:100%;margin-top:var(--space-4);display:grid;gap:var(--space-2)}.dropzone .file{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3);border:var(--border-width-default) solid var(--_dropzone-file-border);border-radius:var(--radius-md);background:var(--surface-default)}.dropzone .file .icon{flex-shrink:0;color:var(--_dropzone-icon-color)}.dropzone .file .main{flex:1;min-width:0}.dropzone .file .name{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-file-name-color)}.dropzone .file .meta{font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary)}.dropzone .file .progress{height:var(--border-width-strong);background:var(--surface-secondary);border-radius:var(--radius-pill);margin-top:var(--space-1)}.dropzone .file .progress-fill{height:100%;background:var(--_dropzone-file-progress);border-radius:var(--radius-pill);transition:width var(--duration-base) var(--ease-standard)}.dropzone .file .remove{background:none;border:0;cursor:pointer;color:var(--icon-default);transition:color var(--duration-fast) var(--ease-standard)}.dropzone .file .remove:hover{color:var(--icon-strong)}.dropzone .file .remove:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropzone .file.uploading .icon{color:var(--_dropzone-file-progress)}.dropzone .file.success{border-color:var(--_dropzone-file-success)}.dropzone .file.success .icon{color:var(--_dropzone-file-success)}.dropzone .file.error{border-color:var(--_dropzone-file-error)}.dropzone .file.error .icon{color:var(--_dropzone-file-error)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
99
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: DropzoneComponent, isStandalone: true, selector: "ds-dropzone", inputs: { accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, single: { classPropertyName: "single", publicName: "single", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { files: "filesChange", filesAdded: "filesAdded", fileRemoved: "fileRemoved" }, ngImport: i0, template: "<label\n [class]=\"classes()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\">\n <input\n type=\"file\"\n class=\"dz-input\"\n aria-label=\"Upload files\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"single() ? false : multiple()\"\n [disabled]=\"disabled()\"\n (change)=\"onPickerChange($event)\" />\n\n @if (files().length === 0) {\n <ds-icon\n name=\"upload\"\n [size]=\"24\">\n </ds-icon>\n\n <div class=\"title\">\n Drop files here\n </div>\n\n <div class=\"hint\">\n or click to browse\n </div>\n\n <ng-content select=\"[hint]\"></ng-content>\n } @else {\n <div class=\"file-list\">\n @for (file of files(); track file.id) {\n <div [class]=\"'file ' + file.state\">\n <ds-icon\n class=\"icon\"\n [name]=\"fileIcon(file.state)\"\n [size]=\"20\">\n </ds-icon>\n\n <div class=\"main\">\n <div class=\"name\">\n {{ file.name }}\n </div>\n\n <div class=\"meta\">\n {{ fileMeta(file) }}\n </div>\n\n @if (file.state === 'uploading') {\n <div class=\"progress\">\n <div\n class=\"progress-fill\"\n [style.width.%]=\"file.progress\">\n </div>\n </div>\n }\n </div>\n\n <button\n class=\"remove\"\n type=\"button\"\n [attr.aria-label]=\"'Remove ' + file.name\"\n (click)=\"\n onRemove(file); $event.preventDefault(); $event.stopPropagation()\n \">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n </div>\n }\n </div>\n }\n</label>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_dropzone-bg-color: var(--ds-dropzone-bg-color, var(--surface-default));--_dropzone-bg-color-hover: var(--ds-dropzone-bg-color-hover, var(--accent-subtitle));--_dropzone-bg-color-active: var(--ds-dropzone-bg-color-active, var(--accent-subtitle));--_dropzone-border: var(--ds-dropzone-border, var(--border-default));--_dropzone-border-hover: var(--ds-dropzone-border-hover, var(--accent));--_dropzone-border-active: var(--ds-dropzone-border-active, var(--accent));--_dropzone-text-color: var(--ds-dropzone-text-color, var(--text-secondary));--_dropzone-text-color-active: var(--ds-dropzone-text-color-active, var(--accent-strong));--_dropzone-radius: var(--ds-dropzone-radius, var(--ds-radius-panel));--_dropzone-file-progress: var(--ds-dropzone-file-progress, var(--accent));--_dropzone-file-success: var(--ds-dropzone-file-success, var(--success));--_dropzone-file-error: var(--ds-dropzone-file-error, var(--error));--_dropzone-file-border: var(--ds-dropzone-file-border, var(--border-default));--_dropzone-file-name-color: var(--ds-dropzone-file-name-color, var(--text-primary));--_dropzone-icon-color: var(--ds-dropzone-icon-color, var(--icon-default));display:flex;flex-direction:column;min-width:0}.dz-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.dropzone:has(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@media not (forced-colors:active){.dropzone .dz-input:where(:focus-visible){outline:none}}.dropzone{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);border:var(--border-width-strong) dashed var(--_dropzone-border);border-radius:var(--_dropzone-radius);padding:var(--space-6);text-align:center;background-color:var(--_dropzone-bg-color);cursor:pointer;min-height:160px;transition:border-color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.dropzone:hover{border-color:var(--_dropzone-border-hover);background-color:var(--_dropzone-bg-color-hover)}.dropzone.active{border-color:var(--_dropzone-border-active);background-color:var(--_dropzone-bg-color-active)}.dropzone.has-files{align-items:stretch;text-align:left;min-height:0;cursor:default}.dropzone.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed;pointer-events:none}.dropzone.single{max-width:var(--col-cap-text)}.dropzone .title{font:var(--font-weight-bold) var(--font-size-m)/var(--line-height-snug) var(--font-heading);margin:0 0 var(--space-1)}.dropzone .hint{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-text-color)}.dropzone [hint]{margin:var(--space-3) calc(var(--space-6) * -1) 0;padding:var(--space-3) var(--space-6) 0;border-top:var(--border-width-default) solid var(--border-subtitle);align-self:stretch;text-align:center;font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary);letter-spacing:var(--letter-spacing-wide)}.dropzone .file-list{width:100%;margin-top:var(--space-4);display:grid;gap:var(--space-2)}.dropzone .file{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3);border:var(--border-width-default) solid var(--_dropzone-file-border);border-radius:var(--radius-md);background:var(--surface-default)}.dropzone .file .icon{flex-shrink:0;color:var(--_dropzone-icon-color)}.dropzone .file .main{flex:1;min-width:0}.dropzone .file .name{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-file-name-color)}.dropzone .file .meta{font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary)}.dropzone .file .progress{height:var(--border-width-strong);background:var(--surface-secondary);border-radius:var(--radius-pill);margin-top:var(--space-1)}.dropzone .file .progress-fill{height:100%;background:var(--_dropzone-file-progress);border-radius:var(--radius-pill);transition:width var(--duration-base) var(--ease-standard)}.dropzone .file .remove{background:none;border:0;cursor:pointer;color:var(--icon-default);transition:color var(--duration-fast) var(--ease-standard)}.dropzone .file .remove:hover{color:var(--icon-strong)}.dropzone .file .remove:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropzone .file.uploading .icon{color:var(--_dropzone-file-progress)}.dropzone .file.success{border-color:var(--_dropzone-file-success)}.dropzone .file.success .icon{color:var(--_dropzone-file-success)}.dropzone .file.error{border-color:var(--_dropzone-file-error)}.dropzone .file.error .icon{color:var(--_dropzone-file-error)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
100
100
  }
101
101
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DropzoneComponent, decorators: [{
102
102
  type: Component,
103
- args: [{ selector: 'ds-dropzone', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<label\n [class]=\"classes()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\"\n>\n <input\n type=\"file\"\n class=\"dz-input\"\n aria-label=\"Upload files\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"single() ? false : multiple()\"\n [disabled]=\"disabled()\"\n (change)=\"onPickerChange($event)\"\n />\n\n @if (files().length === 0) {\n <ds-icon\n name=\"upload\"\n [size]=\"24\"\n >\n </ds-icon>\n\n <div class=\"title\">\n Drop files here\n </div>\n\n <div class=\"hint\">\n or click to browse\n </div>\n\n <ng-content select=\"[hint]\"></ng-content>\n } @else {\n <div class=\"file-list\">\n @for (file of files(); track file.id) {\n <div [class]=\"'file ' + file.state\">\n <ds-icon\n class=\"icon\"\n [name]=\"fileIcon(file.state)\"\n [size]=\"20\"\n >\n </ds-icon>\n\n <div class=\"main\">\n <div class=\"name\">\n {{ file.name }}\n </div>\n\n <div class=\"meta\">\n {{ fileMeta(file) }}\n </div>\n\n @if (file.state === 'uploading') {\n <div class=\"progress\">\n <div\n class=\"progress-fill\"\n [style.width.%]=\"file.progress\"\n >\n </div>\n </div>\n }\n </div>\n\n <button\n class=\"remove\"\n type=\"button\"\n [attr.aria-label]=\"'Remove ' + file.name\"\n (click)=\"\n onRemove(file); $event.preventDefault(); $event.stopPropagation()\n \"\n >\n <ds-icon\n name=\"x\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n </div>\n }\n </div>\n }\n</label>\n", styles: [":host{--_dropzone-bg-color: var(--ds-dropzone-bg-color, var(--surface-default));--_dropzone-bg-color-hover: var(--ds-dropzone-bg-color-hover, var(--accent-subtitle));--_dropzone-bg-color-active: var(--ds-dropzone-bg-color-active, var(--accent-subtitle));--_dropzone-border: var(--ds-dropzone-border, var(--border-default));--_dropzone-border-hover: var(--ds-dropzone-border-hover, var(--accent));--_dropzone-border-active: var(--ds-dropzone-border-active, var(--accent));--_dropzone-text-color: var(--ds-dropzone-text-color, var(--text-secondary));--_dropzone-text-color-active: var(--ds-dropzone-text-color-active, var(--accent-strong));--_dropzone-radius: var(--ds-dropzone-radius, var(--ds-radius-panel));--_dropzone-file-progress: var(--ds-dropzone-file-progress, var(--accent));--_dropzone-file-success: var(--ds-dropzone-file-success, var(--success));--_dropzone-file-error: var(--ds-dropzone-file-error, var(--error));--_dropzone-file-border: var(--ds-dropzone-file-border, var(--border-default));--_dropzone-file-name-color: var(--ds-dropzone-file-name-color, var(--text-primary));--_dropzone-icon-color: var(--ds-dropzone-icon-color, var(--icon-default));display:flex;flex-direction:column;min-width:0}.dz-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.dropzone:focus-within{outline:var(--border-width-strong, 2px) solid var(--accent);outline-offset:var(--focus-ring-offset)}.dropzone{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);border:var(--border-width-strong) dashed var(--_dropzone-border);border-radius:var(--_dropzone-radius);padding:var(--space-6);text-align:center;background-color:var(--_dropzone-bg-color);cursor:pointer;min-height:160px;transition:border-color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.dropzone:hover{border-color:var(--_dropzone-border-hover);background-color:var(--_dropzone-bg-color-hover)}.dropzone.active{border-color:var(--_dropzone-border-active);background-color:var(--_dropzone-bg-color-active)}.dropzone.has-files{align-items:stretch;text-align:left;min-height:0;cursor:default}.dropzone.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed;pointer-events:none}.dropzone.single{max-width:var(--col-cap-text)}.dropzone .title{font:var(--font-weight-bold) var(--font-size-m)/var(--line-height-snug) var(--font-heading);margin:0 0 var(--space-1)}.dropzone .hint{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-text-color)}.dropzone [hint]{margin:var(--space-3) calc(var(--space-6) * -1) 0;padding:var(--space-3) var(--space-6) 0;border-top:var(--border-width-default) solid var(--border-subtitle);align-self:stretch;text-align:center;font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary);letter-spacing:var(--letter-spacing-wide)}.dropzone .file-list{width:100%;margin-top:var(--space-4);display:grid;gap:var(--space-2)}.dropzone .file{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3);border:var(--border-width-default) solid var(--_dropzone-file-border);border-radius:var(--radius-md);background:var(--surface-default)}.dropzone .file .icon{flex-shrink:0;color:var(--_dropzone-icon-color)}.dropzone .file .main{flex:1;min-width:0}.dropzone .file .name{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-file-name-color)}.dropzone .file .meta{font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary)}.dropzone .file .progress{height:var(--border-width-strong);background:var(--surface-secondary);border-radius:var(--radius-pill);margin-top:var(--space-1)}.dropzone .file .progress-fill{height:100%;background:var(--_dropzone-file-progress);border-radius:var(--radius-pill);transition:width var(--duration-base) var(--ease-standard)}.dropzone .file .remove{background:none;border:0;cursor:pointer;color:var(--icon-default);transition:color var(--duration-fast) var(--ease-standard)}.dropzone .file .remove:hover{color:var(--icon-strong)}.dropzone .file .remove:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropzone .file.uploading .icon{color:var(--_dropzone-file-progress)}.dropzone .file.success{border-color:var(--_dropzone-file-success)}.dropzone .file.success .icon{color:var(--_dropzone-file-success)}.dropzone .file.error{border-color:var(--_dropzone-file-error)}.dropzone .file.error .icon{color:var(--_dropzone-file-error)}\n"] }]
103
+ args: [{ selector: 'ds-dropzone', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<label\n [class]=\"classes()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\">\n <input\n type=\"file\"\n class=\"dz-input\"\n aria-label=\"Upload files\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"single() ? false : multiple()\"\n [disabled]=\"disabled()\"\n (change)=\"onPickerChange($event)\" />\n\n @if (files().length === 0) {\n <ds-icon\n name=\"upload\"\n [size]=\"24\">\n </ds-icon>\n\n <div class=\"title\">\n Drop files here\n </div>\n\n <div class=\"hint\">\n or click to browse\n </div>\n\n <ng-content select=\"[hint]\"></ng-content>\n } @else {\n <div class=\"file-list\">\n @for (file of files(); track file.id) {\n <div [class]=\"'file ' + file.state\">\n <ds-icon\n class=\"icon\"\n [name]=\"fileIcon(file.state)\"\n [size]=\"20\">\n </ds-icon>\n\n <div class=\"main\">\n <div class=\"name\">\n {{ file.name }}\n </div>\n\n <div class=\"meta\">\n {{ fileMeta(file) }}\n </div>\n\n @if (file.state === 'uploading') {\n <div class=\"progress\">\n <div\n class=\"progress-fill\"\n [style.width.%]=\"file.progress\">\n </div>\n </div>\n }\n </div>\n\n <button\n class=\"remove\"\n type=\"button\"\n [attr.aria-label]=\"'Remove ' + file.name\"\n (click)=\"\n onRemove(file); $event.preventDefault(); $event.stopPropagation()\n \">\n <ds-icon\n name=\"x\"\n [size]=\"14\">\n </ds-icon>\n </button>\n </div>\n }\n </div>\n }\n</label>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_dropzone-bg-color: var(--ds-dropzone-bg-color, var(--surface-default));--_dropzone-bg-color-hover: var(--ds-dropzone-bg-color-hover, var(--accent-subtitle));--_dropzone-bg-color-active: var(--ds-dropzone-bg-color-active, var(--accent-subtitle));--_dropzone-border: var(--ds-dropzone-border, var(--border-default));--_dropzone-border-hover: var(--ds-dropzone-border-hover, var(--accent));--_dropzone-border-active: var(--ds-dropzone-border-active, var(--accent));--_dropzone-text-color: var(--ds-dropzone-text-color, var(--text-secondary));--_dropzone-text-color-active: var(--ds-dropzone-text-color-active, var(--accent-strong));--_dropzone-radius: var(--ds-dropzone-radius, var(--ds-radius-panel));--_dropzone-file-progress: var(--ds-dropzone-file-progress, var(--accent));--_dropzone-file-success: var(--ds-dropzone-file-success, var(--success));--_dropzone-file-error: var(--ds-dropzone-file-error, var(--error));--_dropzone-file-border: var(--ds-dropzone-file-border, var(--border-default));--_dropzone-file-name-color: var(--ds-dropzone-file-name-color, var(--text-primary));--_dropzone-icon-color: var(--ds-dropzone-icon-color, var(--icon-default));display:flex;flex-direction:column;min-width:0}.dz-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.dropzone:has(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@media not (forced-colors:active){.dropzone .dz-input:where(:focus-visible){outline:none}}.dropzone{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);border:var(--border-width-strong) dashed var(--_dropzone-border);border-radius:var(--_dropzone-radius);padding:var(--space-6);text-align:center;background-color:var(--_dropzone-bg-color);cursor:pointer;min-height:160px;transition:border-color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}.dropzone:hover{border-color:var(--_dropzone-border-hover);background-color:var(--_dropzone-bg-color-hover)}.dropzone.active{border-color:var(--_dropzone-border-active);background-color:var(--_dropzone-bg-color-active)}.dropzone.has-files{align-items:stretch;text-align:left;min-height:0;cursor:default}.dropzone.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed;pointer-events:none}.dropzone.single{max-width:var(--col-cap-text)}.dropzone .title{font:var(--font-weight-bold) var(--font-size-m)/var(--line-height-snug) var(--font-heading);margin:0 0 var(--space-1)}.dropzone .hint{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-text-color)}.dropzone [hint]{margin:var(--space-3) calc(var(--space-6) * -1) 0;padding:var(--space-3) var(--space-6) 0;border-top:var(--border-width-default) solid var(--border-subtitle);align-self:stretch;text-align:center;font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary);letter-spacing:var(--letter-spacing-wide)}.dropzone .file-list{width:100%;margin-top:var(--space-4);display:grid;gap:var(--space-2)}.dropzone .file{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3);border:var(--border-width-default) solid var(--_dropzone-file-border);border-radius:var(--radius-md);background:var(--surface-default)}.dropzone .file .icon{flex-shrink:0;color:var(--_dropzone-icon-color)}.dropzone .file .main{flex:1;min-width:0}.dropzone .file .name{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_dropzone-file-name-color)}.dropzone .file .meta{font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary)}.dropzone .file .progress{height:var(--border-width-strong);background:var(--surface-secondary);border-radius:var(--radius-pill);margin-top:var(--space-1)}.dropzone .file .progress-fill{height:100%;background:var(--_dropzone-file-progress);border-radius:var(--radius-pill);transition:width var(--duration-base) var(--ease-standard)}.dropzone .file .remove{background:none;border:0;cursor:pointer;color:var(--icon-default);transition:color var(--duration-fast) var(--ease-standard)}.dropzone .file .remove:hover{color:var(--icon-strong)}.dropzone .file .remove:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropzone .file.uploading .icon{color:var(--_dropzone-file-progress)}.dropzone .file.success{border-color:var(--_dropzone-file-success)}.dropzone .file.success .icon{color:var(--_dropzone-file-success)}.dropzone .file.error{border-color:var(--_dropzone-file-error)}.dropzone .file.error .icon{color:var(--_dropzone-file-error)}\n"] }]
104
104
  }], propDecorators: { accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], files: [{ type: i0.Input, args: [{ isSignal: true, alias: "files", required: false }] }, { type: i0.Output, args: ["filesChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], single: [{ type: i0.Input, args: [{ isSignal: true, alias: "single", required: false }] }], filesAdded: [{ type: i0.Output, args: ["filesAdded"] }], fileRemoved: [{ type: i0.Output, args: ["fileRemoved"] }] } });
105
105
 
106
106
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-dropzone.mjs","sources":["../../../src/lib/components/dropzone/dropzone.component.ts","../../../src/lib/components/dropzone/dropzone.component.html","../../../src/lib/components/dropzone/ids-group-ltd-ids-design-system-components-dropzone.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { DropzoneFile } from './dropzone.types';\n\n@Component({\n selector: 'ds-dropzone',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './dropzone.component.html',\n styleUrl: './dropzone.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class DropzoneComponent {\n /** Native `accept` attribute — comma-separated MIME types or extensions. */\n readonly accept = input<string>('');\n /** Allows picking more than one file at once (ignored when `single`). */\n readonly multiple = input(false, { transform: booleanAttribute });\n /** Files shown in the list — the consumer owns upload state and progress. */\n readonly files = model<DropzoneFile[]>([]);\n /** Disables the dropzone: blocks all file-picking interactions and signals unavailability. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Restricts the dropzone to a single file; narrows the panel to `--col-cap-text`. */\n readonly single = input(false, { transform: booleanAttribute });\n\n protected readonly dragOver = signal<boolean>(false);\n\n /** Fires with the raw files picked or dropped; the consumer adds them to `files`. */\n readonly filesAdded = output<File[]>();\n /** Fires when the user removes a file; unlike `filesAdded`, the consumer must remove the matching entry from `files` itself. */\n readonly fileRemoved = output<DropzoneFile>();\n\n protected readonly classes = computed(() => {\n const parts = ['dropzone'];\n if (this.dragOver()) {\n parts.push('active');\n }\n if (this.files().length > 0) {\n parts.push('has-files');\n }\n if (this.disabled()) {\n parts.push('disabled');\n }\n if (this.single()) {\n parts.push('single');\n }\n\n return parts.join(' ');\n });\n\n protected onDragOver(event: DragEvent): void {\n if (this.disabled()) {\n return;\n }\n event.preventDefault();\n this.dragOver.set(true);\n }\n\n protected onDragLeave(): void {\n this.dragOver.set(false);\n }\n\n protected onDrop(event: DragEvent): void {\n event.preventDefault();\n this.dragOver.set(false);\n if (this.disabled()) {\n return;\n }\n const list = event.dataTransfer?.files;\n if (list) {\n this.filesAdded.emit(Array.from(list));\n }\n }\n\n protected onPickerChange(event: Event): void {\n if (this.disabled()) {\n return;\n }\n const list = (event.target as HTMLInputElement).files;\n if (list) {\n this.filesAdded.emit(Array.from(list));\n }\n }\n\n protected onRemove(file: DropzoneFile): void {\n this.fileRemoved.emit(file);\n }\n\n protected fileMeta(file: DropzoneFile): string {\n const size = this.formatSize(file.size);\n if (file.message) {\n return `${size} · ${file.message}`;\n }\n if (file.state === 'queued') {\n return size;\n }\n\n return `${size} · ${file.state}`;\n }\n\n protected formatSize(bytes: number): string {\n if (bytes < 1024) {\n return `${bytes} B`;\n }\n if (bytes < 1024 * 1024) {\n return `${(bytes / 1024).toFixed(1)} KB`;\n }\n\n return `${(bytes / 1024 / 1024).toFixed(1)} MB`;\n }\n\n protected fileIcon(state: DropzoneFile['state']): 'file' | 'check' | 'error' {\n if (state === 'success') {\n return 'check';\n }\n if (state === 'error') {\n return 'error';\n }\n\n return 'file';\n }\n}\n","<label\n [class]=\"classes()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\"\n>\n <input\n type=\"file\"\n class=\"dz-input\"\n aria-label=\"Upload files\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"single() ? false : multiple()\"\n [disabled]=\"disabled()\"\n (change)=\"onPickerChange($event)\"\n />\n\n @if (files().length === 0) {\n <ds-icon\n name=\"upload\"\n [size]=\"24\"\n >\n </ds-icon>\n\n <div class=\"title\">\n Drop files here\n </div>\n\n <div class=\"hint\">\n or click to browse\n </div>\n\n <ng-content select=\"[hint]\"></ng-content>\n } @else {\n <div class=\"file-list\">\n @for (file of files(); track file.id) {\n <div [class]=\"'file ' + file.state\">\n <ds-icon\n class=\"icon\"\n [name]=\"fileIcon(file.state)\"\n [size]=\"20\"\n >\n </ds-icon>\n\n <div class=\"main\">\n <div class=\"name\">\n {{ file.name }}\n </div>\n\n <div class=\"meta\">\n {{ fileMeta(file) }}\n </div>\n\n @if (file.state === 'uploading') {\n <div class=\"progress\">\n <div\n class=\"progress-fill\"\n [style.width.%]=\"file.progress\"\n >\n </div>\n </div>\n }\n </div>\n\n <button\n class=\"remove\"\n type=\"button\"\n [attr.aria-label]=\"'Remove ' + file.name\"\n (click)=\"\n onRemove(file); $event.preventDefault(); $event.stopPropagation()\n \"\n >\n <ds-icon\n name=\"x\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n </div>\n }\n </div>\n }\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAqBa,iBAAiB,CAAA;;AAEnB,IAAA,MAAM,GAAG,KAAK,CAAS,EAAE,6EAAC;;IAE1B,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAA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A,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,KAAA,EAAA,aAAA,EAAA,UAAA,EAAA,YAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECrB9B,69DAmFA,EAAA,MAAA,EAAA,CAAA,muJAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDnEY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAKZ,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAR7B,SAAS;+BACE,aAAa,EAAA,UAAA,EACX,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,aAAA,EAGT,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,69DAAA,EAAA,MAAA,EAAA,CAAA,muJAAA,CAAA,EAAA;;;AEnB3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-dropzone.mjs","sources":["../../../src/lib/components/dropzone/dropzone.component.ts","../../../src/lib/components/dropzone/dropzone.component.html","../../../src/lib/components/dropzone/ids-group-ltd-ids-design-system-components-dropzone.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { DropzoneFile } from './dropzone.types';\n\n@Component({\n selector: 'ds-dropzone',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './dropzone.component.html',\n styleUrl: './dropzone.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class DropzoneComponent {\n /** Native `accept` attribute — comma-separated MIME types or extensions. */\n readonly accept = input<string>('');\n /** Allows picking more than one file at once (ignored when `single`). */\n readonly multiple = input(false, { transform: booleanAttribute });\n /** Files shown in the list — the consumer owns upload state and progress. */\n readonly files = model<DropzoneFile[]>([]);\n /** Disables the dropzone: blocks all file-picking interactions and signals unavailability. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Restricts the dropzone to a single file; narrows the panel to `--col-cap-text`. */\n readonly single = input(false, { transform: booleanAttribute });\n\n protected readonly dragOver = signal<boolean>(false);\n\n /** Fires with the raw files picked or dropped; the consumer adds them to `files`. */\n readonly filesAdded = output<File[]>();\n /** Fires when the user removes a file; unlike `filesAdded`, the consumer must remove the matching entry from `files` itself. */\n readonly fileRemoved = output<DropzoneFile>();\n\n protected readonly classes = computed(() => {\n const parts = ['dropzone'];\n if (this.dragOver()) {\n parts.push('active');\n }\n if (this.files().length > 0) {\n parts.push('has-files');\n }\n if (this.disabled()) {\n parts.push('disabled');\n }\n if (this.single()) {\n parts.push('single');\n }\n\n return parts.join(' ');\n });\n\n protected onDragOver(event: DragEvent): void {\n if (this.disabled()) {\n return;\n }\n event.preventDefault();\n this.dragOver.set(true);\n }\n\n protected onDragLeave(): void {\n this.dragOver.set(false);\n }\n\n protected onDrop(event: DragEvent): void {\n event.preventDefault();\n this.dragOver.set(false);\n if (this.disabled()) {\n return;\n }\n const list = event.dataTransfer?.files;\n if (list) {\n this.filesAdded.emit(Array.from(list));\n }\n }\n\n protected onPickerChange(event: Event): void {\n if (this.disabled()) {\n return;\n }\n const list = (event.target as HTMLInputElement).files;\n if (list) {\n this.filesAdded.emit(Array.from(list));\n }\n }\n\n protected onRemove(file: DropzoneFile): void {\n this.fileRemoved.emit(file);\n }\n\n protected fileMeta(file: DropzoneFile): string {\n const size = this.formatSize(file.size);\n if (file.message) {\n return `${size} · ${file.message}`;\n }\n if (file.state === 'queued') {\n return size;\n }\n\n return `${size} · ${file.state}`;\n }\n\n protected formatSize(bytes: number): string {\n if (bytes < 1024) {\n return `${bytes} B`;\n }\n if (bytes < 1024 * 1024) {\n return `${(bytes / 1024).toFixed(1)} KB`;\n }\n\n return `${(bytes / 1024 / 1024).toFixed(1)} MB`;\n }\n\n protected fileIcon(state: DropzoneFile['state']): 'file' | 'check' | 'error' {\n if (state === 'success') {\n return 'check';\n }\n if (state === 'error') {\n return 'error';\n }\n\n return 'file';\n }\n}\n","<label\n [class]=\"classes()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave()\"\n (drop)=\"onDrop($event)\">\n <input\n type=\"file\"\n class=\"dz-input\"\n aria-label=\"Upload files\"\n [attr.accept]=\"accept() || null\"\n [multiple]=\"single() ? false : multiple()\"\n [disabled]=\"disabled()\"\n (change)=\"onPickerChange($event)\" />\n\n @if (files().length === 0) {\n <ds-icon\n name=\"upload\"\n [size]=\"24\">\n </ds-icon>\n\n <div class=\"title\">\n Drop files here\n </div>\n\n <div class=\"hint\">\n or click to browse\n </div>\n\n <ng-content select=\"[hint]\"></ng-content>\n } @else {\n <div class=\"file-list\">\n @for (file of files(); track file.id) {\n <div [class]=\"'file ' + file.state\">\n <ds-icon\n class=\"icon\"\n [name]=\"fileIcon(file.state)\"\n [size]=\"20\">\n </ds-icon>\n\n <div class=\"main\">\n <div class=\"name\">\n {{ file.name }}\n </div>\n\n <div class=\"meta\">\n {{ fileMeta(file) }}\n </div>\n\n @if (file.state === 'uploading') {\n <div class=\"progress\">\n <div\n class=\"progress-fill\"\n [style.width.%]=\"file.progress\">\n </div>\n </div>\n }\n </div>\n\n <button\n class=\"remove\"\n type=\"button\"\n [attr.aria-label]=\"'Remove ' + file.name\"\n (click)=\"\n onRemove(file); $event.preventDefault(); $event.stopPropagation()\n \">\n <ds-icon\n name=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 []));
39
39
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: EmptyStateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
40
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: EmptyStateComponent, isStandalone: true, selector: "ds-empty-state", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, body: { classPropertyName: "body", publicName: "body", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ds-loading-overlay\n spinnerSize=\"lg\"\n [loading]=\"variant() === 'loading'\"\n [blur]=\"true\"\n>\n <span [class]=\"classes()\">\n <span class=\"icon-tile\">\n <ds-icon\n [name]=\"resolvedIcon()\"\n [size]=\"28\"\n >\n </ds-icon>\n </span>\n\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (body()) {\n <span class=\"body\">\n {{ body() }}\n </span>\n }\n\n <span class=\"cta\">\n <ng-content select=\"[actions]\"></ng-content>\n </span>\n </span>\n</ds-loading-overlay>\n", styles: [":host{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--accent-surface-tint));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--text-secondary));--_es-title-text-color: var(--ds-empty-state-title-text-color, var(--text-primary));--_es-title-fs: var(--ds-empty-state-title-fs, var(--font-size-h5));--_es-body-text-color: var(--ds-empty-state-body-text-color, var(--text-secondary));--_es-body-maxw: var(--ds-empty-state-body-maxw, var(--empty-body-maxw));--_es-pad: var(--ds-empty-state-pad, var(--space-12) var(--space-6));display:block}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--_es-pad);gap:var(--space-3);position:relative}.empty-state .icon-tile{width:var(--empty-icon-size);height:var(--empty-icon-size);border-radius:var(--radius-lg);background-color:var(--_es-tile-bg-color);color:var(--_es-tile-icon-color);display:grid;place-items:center;margin-bottom:var(--space-2)}.empty-state .title{font:var(--font-weight-bold) var(--_es-title-fs)/var(--line-height-snug) var(--font-sans);color:var(--_es-title-text-color);margin:0}.empty-state .body{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_es-body-text-color);max-width:var(--_es-body-maxw);margin:0}.empty-state .cta{margin-top:var(--space-3);display:inline-flex;gap:var(--space-2);align-items:center;flex-wrap:wrap;justify-content:center}.empty-state .cta:empty{display:none;margin-top:0}.empty-state.error{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--error-subtitle));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--error-text))}.empty-state.locked{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--surface-muted));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--text-tertiary))}.empty-state.success{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--success-subtitle));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--success-text))}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: LoadingOverlayComponent, selector: "ds-loading-overlay", inputs: ["loading", "label", "blur", "spinnerSize", "insetTop", "inertContent"] }] });
40
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: EmptyStateComponent, isStandalone: true, selector: "ds-empty-state", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, body: { classPropertyName: "body", publicName: "body", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ds-loading-overlay\n spinnerSize=\"lg\"\n [loading]=\"variant() === 'loading'\"\n [blur]=\"true\">\n <span [class]=\"classes()\">\n <span class=\"icon-tile\">\n <ds-icon\n [name]=\"resolvedIcon()\"\n [size]=\"28\">\n </ds-icon>\n </span>\n\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (body()) {\n <span class=\"body\">\n {{ body() }}\n </span>\n }\n\n <span class=\"cta\">\n <ng-content select=\"[actions]\"></ng-content>\n </span>\n </span>\n</ds-loading-overlay>\n", styles: [":host{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--accent-surface-tint));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--text-secondary));--_es-title-text-color: var(--ds-empty-state-title-text-color, var(--text-primary));--_es-title-fs: var(--ds-empty-state-title-fs, var(--font-size-h5));--_es-body-text-color: var(--ds-empty-state-body-text-color, var(--text-secondary));--_es-body-maxw: var(--ds-empty-state-body-maxw, var(--empty-body-maxw));--_es-pad: var(--ds-empty-state-pad, var(--space-12) var(--space-6));display:block}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--_es-pad);gap:var(--space-3);position:relative}.empty-state .icon-tile{width:var(--empty-icon-size);height:var(--empty-icon-size);border-radius:var(--radius-lg);background-color:var(--_es-tile-bg-color);color:var(--_es-tile-icon-color);display:grid;place-items:center;margin-bottom:var(--space-2)}.empty-state .title{font:var(--font-weight-bold) var(--_es-title-fs)/var(--line-height-snug) var(--font-sans);color:var(--_es-title-text-color);margin:0}.empty-state .body{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_es-body-text-color);max-width:var(--_es-body-maxw);margin:0}.empty-state .cta{margin-top:var(--space-3);display:inline-flex;gap:var(--space-2);align-items:center;flex-wrap:wrap;justify-content:center}.empty-state .cta:empty{display:none;margin-top:0}.empty-state.error{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--error-subtitle));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--error-text))}.empty-state.locked{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--surface-muted));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--text-tertiary))}.empty-state.success{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--success-subtitle));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--success-text))}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: LoadingOverlayComponent, selector: "ds-loading-overlay", inputs: ["loading", "label", "blur", "spinnerSize", "insetTop", "inertContent"] }] });
41
41
  }
42
42
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: EmptyStateComponent, decorators: [{
43
43
  type: Component,
44
- args: [{ selector: 'ds-empty-state', standalone: true, imports: [IconComponent, LoadingOverlayComponent], encapsulation: ViewEncapsulation.Emulated, template: "<ds-loading-overlay\n spinnerSize=\"lg\"\n [loading]=\"variant() === 'loading'\"\n [blur]=\"true\"\n>\n <span [class]=\"classes()\">\n <span class=\"icon-tile\">\n <ds-icon\n [name]=\"resolvedIcon()\"\n [size]=\"28\"\n >\n </ds-icon>\n </span>\n\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (body()) {\n <span class=\"body\">\n {{ body() }}\n </span>\n }\n\n <span class=\"cta\">\n <ng-content select=\"[actions]\"></ng-content>\n </span>\n </span>\n</ds-loading-overlay>\n", styles: [":host{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--accent-surface-tint));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--text-secondary));--_es-title-text-color: var(--ds-empty-state-title-text-color, var(--text-primary));--_es-title-fs: var(--ds-empty-state-title-fs, var(--font-size-h5));--_es-body-text-color: var(--ds-empty-state-body-text-color, var(--text-secondary));--_es-body-maxw: var(--ds-empty-state-body-maxw, var(--empty-body-maxw));--_es-pad: var(--ds-empty-state-pad, var(--space-12) var(--space-6));display:block}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--_es-pad);gap:var(--space-3);position:relative}.empty-state .icon-tile{width:var(--empty-icon-size);height:var(--empty-icon-size);border-radius:var(--radius-lg);background-color:var(--_es-tile-bg-color);color:var(--_es-tile-icon-color);display:grid;place-items:center;margin-bottom:var(--space-2)}.empty-state .title{font:var(--font-weight-bold) var(--_es-title-fs)/var(--line-height-snug) var(--font-sans);color:var(--_es-title-text-color);margin:0}.empty-state .body{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_es-body-text-color);max-width:var(--_es-body-maxw);margin:0}.empty-state .cta{margin-top:var(--space-3);display:inline-flex;gap:var(--space-2);align-items:center;flex-wrap:wrap;justify-content:center}.empty-state .cta:empty{display:none;margin-top:0}.empty-state.error{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--error-subtitle));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--error-text))}.empty-state.locked{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--surface-muted));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--text-tertiary))}.empty-state.success{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--success-subtitle));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--success-text))}\n"] }]
44
+ args: [{ selector: 'ds-empty-state', standalone: true, imports: [IconComponent, LoadingOverlayComponent], encapsulation: ViewEncapsulation.Emulated, template: "<ds-loading-overlay\n spinnerSize=\"lg\"\n [loading]=\"variant() === 'loading'\"\n [blur]=\"true\">\n <span [class]=\"classes()\">\n <span class=\"icon-tile\">\n <ds-icon\n [name]=\"resolvedIcon()\"\n [size]=\"28\">\n </ds-icon>\n </span>\n\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (body()) {\n <span class=\"body\">\n {{ body() }}\n </span>\n }\n\n <span class=\"cta\">\n <ng-content select=\"[actions]\"></ng-content>\n </span>\n </span>\n</ds-loading-overlay>\n", styles: [":host{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--accent-surface-tint));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--text-secondary));--_es-title-text-color: var(--ds-empty-state-title-text-color, var(--text-primary));--_es-title-fs: var(--ds-empty-state-title-fs, var(--font-size-h5));--_es-body-text-color: var(--ds-empty-state-body-text-color, var(--text-secondary));--_es-body-maxw: var(--ds-empty-state-body-maxw, var(--empty-body-maxw));--_es-pad: var(--ds-empty-state-pad, var(--space-12) var(--space-6));display:block}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--_es-pad);gap:var(--space-3);position:relative}.empty-state .icon-tile{width:var(--empty-icon-size);height:var(--empty-icon-size);border-radius:var(--radius-lg);background-color:var(--_es-tile-bg-color);color:var(--_es-tile-icon-color);display:grid;place-items:center;margin-bottom:var(--space-2)}.empty-state .title{font:var(--font-weight-bold) var(--_es-title-fs)/var(--line-height-snug) var(--font-sans);color:var(--_es-title-text-color);margin:0}.empty-state .body{font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_es-body-text-color);max-width:var(--_es-body-maxw);margin:0}.empty-state .cta{margin-top:var(--space-3);display:inline-flex;gap:var(--space-2);align-items:center;flex-wrap:wrap;justify-content:center}.empty-state .cta:empty{display:none;margin-top:0}.empty-state.error{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--error-subtitle));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--error-text))}.empty-state.locked{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--surface-muted));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--text-tertiary))}.empty-state.success{--_es-tile-bg-color: var(--ds-empty-state-tile-bg-color, var(--success-subtitle));--_es-tile-icon-color: var(--ds-empty-state-tile-icon-color, var(--success-text))}\n"] }]
45
45
  }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], body: [{ type: i0.Input, args: [{ isSignal: true, alias: "body", required: false }] }] } });
46
46
 
47
47
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-empty-state.mjs","sources":["../../../src/lib/components/empty-state/empty-state.component.ts","../../../src/lib/components/empty-state/empty-state.component.html","../../../src/lib/components/empty-state/ids-group-ltd-ids-design-system-components-empty-state.ts"],"sourcesContent":["import { Component, ViewEncapsulation, computed, input } from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { LoadingOverlayComponent } from '@ids-group-ltd/ids-design-system/components/loading-overlay';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport type { EmptyStateVariant } from './empty-state.types';\n\n@Component({\n selector: 'ds-empty-state',\n standalone: true,\n imports: [IconComponent, LoadingOverlayComponent],\n templateUrl: './empty-state.component.html',\n styleUrl: './empty-state.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class EmptyStateComponent {\n /** State — drives the default icon and shows a loading overlay when `'loading'`. */\n readonly variant = input<EmptyStateVariant>('none');\n /** Override the variant's default icon. */\n readonly icon = input<IconName | null>(null);\n /** Optional heading below the icon. */\n readonly title = input<string>('');\n /** Optional supporting text below the title. */\n readonly body = input<string>('');\n\n protected readonly classes = computed(() => {\n const variant = this.variant();\n\n return variant === 'none' ? 'empty-state' : `empty-state ${variant}`;\n });\n\n protected readonly resolvedIcon = computed<IconName>(() => {\n const explicit = this.icon();\n if (explicit) {\n return explicit;\n }\n const variant = this.variant();\n if (variant === 'error') {\n return 'warn';\n }\n if (variant === 'locked') {\n return 'lock';\n }\n if (variant === 'success') {\n return 'success';\n }\n if (variant === 'loading') {\n return 'package';\n }\n\n return 'package';\n });\n}\n","<ds-loading-overlay\n spinnerSize=\"lg\"\n [loading]=\"variant() === 'loading'\"\n [blur]=\"true\"\n>\n <span [class]=\"classes()\">\n <span class=\"icon-tile\">\n <ds-icon\n [name]=\"resolvedIcon()\"\n [size]=\"28\"\n >\n </ds-icon>\n </span>\n\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (body()) {\n <span class=\"body\">\n {{ body() }}\n </span>\n }\n\n <span class=\"cta\">\n <ng-content select=\"[actions]\"></ng-content>\n </span>\n </span>\n</ds-loading-overlay>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAca,mBAAmB,CAAA;;AAErB,IAAA,OAAO,GAAG,KAAK,CAAoB,MAAM,8EAAC;;AAE1C,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;;AAEnC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;AAEd,IAAA,OAAO,GAAG,QAAQ,CAAC,MAAK;AACzC,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE;AAE9B,QAAA,OAAO,OAAO,KAAK,MAAM,GAAG,aAAa,GAAG,CAAA,YAAA,EAAe,OAAO,EAAE;AACtE,IAAA,CAAC,8EAAC;AAEiB,IAAA,YAAY,GAAG,QAAQ,CAAW,MAAK;AACxD,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,EAAE;QAC5B,IAAI,QAAQ,EAAE;AACZ,YAAA,OAAO,QAAQ;QACjB;AACA,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE;AAC9B,QAAA,IAAI,OAAO,KAAK,OAAO,EAAE;AACvB,YAAA,OAAO,MAAM;QACf;AACA,QAAA,IAAI,OAAO,KAAK,QAAQ,EAAE;AACxB,YAAA,OAAO,MAAM;QACf;AACA,QAAA,IAAI,OAAO,KAAK,SAAS,EAAE;AACzB,YAAA,OAAO,SAAS;Q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A,EAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,EAAA,aAAA,EAAA,UAAA,EAAA,cAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAKrC,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAR/B,SAAS;+BACE,gBAAgB,EAAA,UAAA,EACd,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,EAAE,uBAAuB,CAAC,EAAA,aAAA,EAGlC,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,gmBAAA,EAAA,MAAA,EAAA,CAAA,u/DAAA,CAAA,EAAA;;;AEZ3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-empty-state.mjs","sources":["../../../src/lib/components/empty-state/empty-state.component.ts","../../../src/lib/components/empty-state/empty-state.component.html","../../../src/lib/components/empty-state/ids-group-ltd-ids-design-system-components-empty-state.ts"],"sourcesContent":["import { Component, ViewEncapsulation, computed, input } from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { LoadingOverlayComponent } from '@ids-group-ltd/ids-design-system/components/loading-overlay';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport type { EmptyStateVariant } from './empty-state.types';\n\n@Component({\n selector: 'ds-empty-state',\n standalone: true,\n imports: [IconComponent, LoadingOverlayComponent],\n templateUrl: './empty-state.component.html',\n styleUrl: './empty-state.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class EmptyStateComponent {\n /** State — drives the default icon and shows a loading overlay when `'loading'`. */\n readonly variant = input<EmptyStateVariant>('none');\n /** Override the variant's default icon. */\n readonly icon = input<IconName | null>(null);\n /** Optional heading below the icon. */\n readonly title = input<string>('');\n /** Optional supporting text below the title. */\n readonly body = input<string>('');\n\n protected readonly classes = computed(() => {\n const variant = this.variant();\n\n return variant === 'none' ? 'empty-state' : `empty-state ${variant}`;\n });\n\n protected readonly resolvedIcon = computed<IconName>(() => {\n const explicit = this.icon();\n if (explicit) {\n return explicit;\n }\n const variant = this.variant();\n if (variant === 'error') {\n return 'warn';\n }\n if (variant === 'locked') {\n return 'lock';\n }\n if (variant === 'success') {\n return 'success';\n }\n if (variant === 'loading') {\n return 'package';\n }\n\n return 'package';\n });\n}\n","<ds-loading-overlay\n spinnerSize=\"lg\"\n [loading]=\"variant() === 'loading'\"\n [blur]=\"true\">\n <span [class]=\"classes()\">\n <span class=\"icon-tile\">\n <ds-icon\n [name]=\"resolvedIcon()\"\n [size]=\"28\">\n </ds-icon>\n </span>\n\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (body()) {\n <span class=\"body\">\n {{ body() }}\n </span>\n }\n\n <span class=\"cta\">\n <ng-content select=\"[actions]\"></ng-content>\n </span>\n </span>\n</ds-loading-overlay>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAca,mBAAmB,CAAA;;AAErB,IAAA,OAAO,GAAG,KAAK,CAAoB,MAAM,8EAAC;;AAE1C,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;;AAEnC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;AAEd,IAAA,OAAO,GAAG,QAAQ,CAAC,MAAK;AACzC,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE;AAE9B,QAAA,OAAO,OAAO,KAAK,MAAM,GAAG,aAAa,GAAG,CAAA,YAAA,EAAe,OAAO,EAAE;AACtE,IAAA,CAAC,8EAAC;AAEiB,IAAA,YAAY,GAAG,QAAQ,CAAW,MAAK;AACxD,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,EAAE;QAC5B,IAAI,QAAQ,EAAE;AACZ,YAAA,OAAO,QAAQ;QACjB;AACA,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE;AAC9B,QAAA,IAAI,OAAO,KAAK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ECdhC,slBA6BA,EAAA,MAAA,EAAA,CAAA,u/DAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDpBY,aAAa,qGAAE,uBAAuB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,EAAA,aAAA,EAAA,UAAA,EAAA,cAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAKrC,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAR/B,SAAS;+BACE,gBAAgB,EAAA,UAAA,EACd,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,EAAE,uBAAuB,CAAC,EAAA,aAAA,EAGlC,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,slBAAA,EAAA,MAAA,EAAA,CAAA,u/DAAA,CAAA,EAAA;;;AEZ3C;;AAEG;;;;"}
@@ -47,11 +47,11 @@ class FieldMessageComponent {
47
47
  return resolved === false ? null : resolved;
48
48
  }, ...(ngDevMode ? [{ debugName: "iconResolved" }] : /* istanbul ignore next */ []));
49
49
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: FieldMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
50
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: FieldMessageComponent, isStandalone: true, selector: "ds-field-message", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, messageId: { classPropertyName: "messageId", publicName: "messageId", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, reserve: { classPropertyName: "reserve", publicName: "reserve", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- The error variant is a separate branch so it mounts as a FRESH node with\n role=\"alert\" already set \u2014 screen readers reliably announce a live region\n on insertion, but not when role=\"alert\" is toggled onto an existing node. -->\n@if (text()) {\n @if (state() === 'error') {\n <span\n class=\"field-message error\"\n role=\"alert\"\n [id]=\"messageId()\"\n >\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\"\n />\n }\n {{ text() }}\n </span>\n } @else {\n <span\n class=\"field-message {{ state() }}\"\n [id]=\"messageId()\"\n >\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\"\n />\n }\n {{ text() }}\n </span>\n }\n} @else if (reserve()) {\n <span\n class=\"field-message reserve-placeholder\"\n aria-hidden=\"true\"\n >\n </span>\n}\n", styles: ["@charset \"UTF-8\";:host{display:contents}.field-message{--_field-message-color: var(--ds-field-message-color, var(--text-tertiary));--_field-message-font-size: var(--ds-field-message-font-size, var(--font-size-xs));--_field-message-icon-gap: var(--ds-field-message-icon-gap, var(--space-1));--_field-message-icon-offset: var(--ds-field-message-icon-offset, calc((var(--_field-message-font-size) * var(--line-height-base) - var(--icon-sm)) / 2));display:flex;align-items:flex-start;gap:var(--_field-message-icon-gap);font:var(--font-weight-regular) var(--_field-message-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-message-color)}.field-message .message-icon{margin-top:var(--_field-message-icon-offset)}.field-message.error{color:var(--error-text)}.field-message.warning{color:var(--warning-text)}.field-message.success{color:var(--success-text)}.field-message.reserve-placeholder:before{content:\"\\a0\"}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
50
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: FieldMessageComponent, isStandalone: true, selector: "ds-field-message", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, messageId: { classPropertyName: "messageId", publicName: "messageId", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, reserve: { classPropertyName: "reserve", publicName: "reserve", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- The error variant is a separate branch so it mounts as a FRESH node with\n role=\"alert\" already set \u2014 screen readers reliably announce a live region\n on insertion, but not when role=\"alert\" is toggled onto an existing node. -->\n@if (text()) {\n @if (state() === 'error') {\n <span\n class=\"field-message error\"\n role=\"alert\"\n [id]=\"messageId()\">\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\" />\n }\n {{ text() }}\n </span>\n } @else {\n <span\n class=\"field-message {{ state() }}\"\n [id]=\"messageId()\">\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\" />\n }\n {{ text() }}\n </span>\n }\n} @else if (reserve()) {\n <span\n class=\"field-message reserve-placeholder\"\n aria-hidden=\"true\">\n </span>\n}\n", styles: ["@charset \"UTF-8\";:host{display:contents}.field-message{--_field-message-color: var(--ds-field-message-color, var(--text-tertiary));--_field-message-font-size: var(--ds-field-message-font-size, var(--font-size-xs));--_field-message-icon-gap: var(--ds-field-message-icon-gap, var(--space-1));--_field-message-icon-offset: var(--ds-field-message-icon-offset, calc((var(--_field-message-font-size) * var(--line-height-base) - var(--icon-sm)) / 2));display:flex;align-items:flex-start;gap:var(--_field-message-icon-gap);font:var(--font-weight-regular) var(--_field-message-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-message-color)}.field-message .message-icon{margin-top:var(--_field-message-icon-offset)}.field-message.error{color:var(--error-text)}.field-message.warning{color:var(--warning-text)}.field-message.success{color:var(--success-text)}.field-message.reserve-placeholder:before{content:\"\\a0\"}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
51
51
  }
52
52
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: FieldMessageComponent, decorators: [{
53
53
  type: Component,
54
- args: [{ selector: 'ds-field-message', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<!-- The error variant is a separate branch so it mounts as a FRESH node with\n role=\"alert\" already set \u2014 screen readers reliably announce a live region\n on insertion, but not when role=\"alert\" is toggled onto an existing node. -->\n@if (text()) {\n @if (state() === 'error') {\n <span\n class=\"field-message error\"\n role=\"alert\"\n [id]=\"messageId()\"\n >\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\"\n />\n }\n {{ text() }}\n </span>\n } @else {\n <span\n class=\"field-message {{ state() }}\"\n [id]=\"messageId()\"\n >\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\"\n />\n }\n {{ text() }}\n </span>\n }\n} @else if (reserve()) {\n <span\n class=\"field-message reserve-placeholder\"\n aria-hidden=\"true\"\n >\n </span>\n}\n", styles: ["@charset \"UTF-8\";:host{display:contents}.field-message{--_field-message-color: var(--ds-field-message-color, var(--text-tertiary));--_field-message-font-size: var(--ds-field-message-font-size, var(--font-size-xs));--_field-message-icon-gap: var(--ds-field-message-icon-gap, var(--space-1));--_field-message-icon-offset: var(--ds-field-message-icon-offset, calc((var(--_field-message-font-size) * var(--line-height-base) - var(--icon-sm)) / 2));display:flex;align-items:flex-start;gap:var(--_field-message-icon-gap);font:var(--font-weight-regular) var(--_field-message-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-message-color)}.field-message .message-icon{margin-top:var(--_field-message-icon-offset)}.field-message.error{color:var(--error-text)}.field-message.warning{color:var(--warning-text)}.field-message.success{color:var(--success-text)}.field-message.reserve-placeholder:before{content:\"\\a0\"}\n"] }]
54
+ args: [{ selector: 'ds-field-message', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<!-- The error variant is a separate branch so it mounts as a FRESH node with\n role=\"alert\" already set \u2014 screen readers reliably announce a live region\n on insertion, but not when role=\"alert\" is toggled onto an existing node. -->\n@if (text()) {\n @if (state() === 'error') {\n <span\n class=\"field-message error\"\n role=\"alert\"\n [id]=\"messageId()\">\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\" />\n }\n {{ text() }}\n </span>\n } @else {\n <span\n class=\"field-message {{ state() }}\"\n [id]=\"messageId()\">\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\" />\n }\n {{ text() }}\n </span>\n }\n} @else if (reserve()) {\n <span\n class=\"field-message reserve-placeholder\"\n aria-hidden=\"true\">\n </span>\n}\n", styles: ["@charset \"UTF-8\";:host{display:contents}.field-message{--_field-message-color: var(--ds-field-message-color, var(--text-tertiary));--_field-message-font-size: var(--ds-field-message-font-size, var(--font-size-xs));--_field-message-icon-gap: var(--ds-field-message-icon-gap, var(--space-1));--_field-message-icon-offset: var(--ds-field-message-icon-offset, calc((var(--_field-message-font-size) * var(--line-height-base) - var(--icon-sm)) / 2));display:flex;align-items:flex-start;gap:var(--_field-message-icon-gap);font:var(--font-weight-regular) var(--_field-message-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-message-color)}.field-message .message-icon{margin-top:var(--_field-message-icon-offset)}.field-message.error{color:var(--error-text)}.field-message.warning{color:var(--warning-text)}.field-message.success{color:var(--success-text)}.field-message.reserve-placeholder:before{content:\"\\a0\"}\n"] }]
55
55
  }], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], messageId: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageId", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], reserve: [{ type: i0.Input, args: [{ isSignal: true, alias: "reserve", required: false }] }] } });
56
56
 
57
57
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-field-message.mjs","sources":["../../../src/lib/components/field-message/field-message.component.ts","../../../src/lib/components/field-message/field-message.component.html","../../../src/lib/components/field-message/ids-group-ltd-ids-design-system-components-field-message.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';\n\n/** @internal */\nexport type FieldMessageState = 'default' | 'error' | 'warning' | 'success';\n\n/** Internal shared helper/error line for form fields. Renders nothing when\n * `text` is empty. The host field owns the `aria-describedby` relationship\n * and passes `messageId`; this only renders the element that carries it.\n * @internal\n */\n@Component({\n selector: 'ds-field-message',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './field-message.component.html',\n styleUrl: './field-message.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class FieldMessageComponent {\n /** The one line under a field. Empty renders nothing (or reserved space, if the field asks). */\n readonly text = input<string>('');\n /** Which role the line is playing — hint, error, warning or success. Decides the colour. */\n readonly state = input<FieldMessageState>('default');\n /** Id the field points `aria-describedby` at, so the message is announced with the control. */\n readonly messageId = input<string | null>(null);\n /** Leading glyph. Unset resolves from the state through\n * `DS_CONFIG.field.stateIcons` — error, warning and success carry one by default and\n * the hint line does not. A name here overrides that for this message; `false`\n * removes it. */\n readonly icon = input<IconName | false | null>(null);\n /** Reserve one line of height even when there's no `text`, so a field that\n * gains/loses a message doesn't shift the layout below it. */\n readonly reserve = input(false, { transform: booleanAttribute });\n\n private readonly config = inject(DS_CONFIG);\n\n /** `hint` rather than `default` in the config: every field calls this line a hint,\n * and `default` would read as \"the default icon\". */\n private static readonly BUILT_IN: Record<\n FieldMessageState,\n IconName | false\n > = {\n error: 'error',\n warning: 'warn',\n success: 'success',\n default: false,\n };\n\n protected readonly iconResolved = computed<IconName | null>(() => {\n const own = this.icon();\n if (own !== null) {\n return own === false ? null : own;\n }\n const configured = this.config.field?.stateIcons;\n if (configured === false) {\n return null;\n }\n const state = this.state();\n const key = state === 'default' ? 'hint' : state;\n const resolved = configured?.[key] ?? FieldMessageComponent.BUILT_IN[state];\n\n return resolved === false ? null : resolved;\n });\n}\n","<!-- The error variant is a separate branch so it mounts as a FRESH node with\n role=\"alert\" already set — screen readers reliably announce a live region\n on insertion, but not when role=\"alert\" is toggled onto an existing node. -->\n@if (text()) {\n @if (state() === 'error') {\n <span\n class=\"field-message error\"\n role=\"alert\"\n [id]=\"messageId()\"\n >\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\"\n />\n }\n {{ text() }}\n </span>\n } @else {\n <span\n class=\"field-message {{ state() }}\"\n [id]=\"messageId()\"\n >\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\"\n />\n }\n {{ text() }}\n </span>\n }\n} @else if (reserve()) {\n <span\n class=\"field-message reserve-placeholder\"\n aria-hidden=\"true\"\n >\n </span>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAeA;;;;AAIG;MASU,qBAAqB,CAAA;;AAEvB,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;;AAExB,IAAA,KAAK,GAAG,KAAK,CAAoB,SAAS,4EAAC;;AAE3C,IAAA,SAAS,GAAG,KAAK,CAAgB,IAAI,gFAAC;AAC/C;;;AAGkB;AACT,IAAA,IAAI,GAAG,KAAK,CAA0B,IAAI,2EAAC;AACpD;AAC+D;IACtD,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAE/C,IAAA,MAAM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EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC5BlC,khCAyCA,EAAA,MAAA,EAAA,CAAA,w6BAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDlBY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAKZ,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBARjC,SAAS;+BACE,kBAAkB,EAAA,UAAA,EAChB,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,aAAA,EAGT,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,khCAAA,EAAA,MAAA,EAAA,CAAA,w6BAAA,CAAA,EAAA;;;AE1B3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-field-message.mjs","sources":["../../../src/lib/components/field-message/field-message.component.ts","../../../src/lib/components/field-message/field-message.component.html","../../../src/lib/components/field-message/ids-group-ltd-ids-design-system-components-field-message.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { DS_CONFIG } from '@ids-group-ltd/ids-design-system/core';\n\n/** @internal */\nexport type FieldMessageState = 'default' | 'error' | 'warning' | 'success';\n\n/** Internal shared helper/error line for form fields. Renders nothing when\n * `text` is empty. The host field owns the `aria-describedby` relationship\n * and passes `messageId`; this only renders the element that carries it.\n * @internal\n */\n@Component({\n selector: 'ds-field-message',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './field-message.component.html',\n styleUrl: './field-message.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class FieldMessageComponent {\n /** The one line under a field. Empty renders nothing (or reserved space, if the field asks). */\n readonly text = input<string>('');\n /** Which role the line is playing — hint, error, warning or success. Decides the colour. */\n readonly state = input<FieldMessageState>('default');\n /** Id the field points `aria-describedby` at, so the message is announced with the control. */\n readonly messageId = input<string | null>(null);\n /** Leading glyph. Unset resolves from the state through\n * `DS_CONFIG.field.stateIcons` — error, warning and success carry one by default and\n * the hint line does not. A name here overrides that for this message; `false`\n * removes it. */\n readonly icon = input<IconName | false | null>(null);\n /** Reserve one line of height even when there's no `text`, so a field that\n * gains/loses a message doesn't shift the layout below it. */\n readonly reserve = input(false, { transform: booleanAttribute });\n\n private readonly config = inject(DS_CONFIG);\n\n /** `hint` rather than `default` in the config: every field calls this line a hint,\n * and `default` would read as \"the default icon\". */\n private static readonly BUILT_IN: Record<\n FieldMessageState,\n IconName | false\n > = {\n error: 'error',\n warning: 'warn',\n success: 'success',\n default: false,\n };\n\n protected readonly iconResolved = computed<IconName | null>(() => {\n const own = this.icon();\n if (own !== null) {\n return own === false ? null : own;\n }\n const configured = this.config.field?.stateIcons;\n if (configured === false) {\n return null;\n }\n const state = this.state();\n const key = state === 'default' ? 'hint' : state;\n const resolved = configured?.[key] ?? FieldMessageComponent.BUILT_IN[state];\n\n return resolved === false ? null : resolved;\n });\n}\n","<!-- The error variant is a separate branch so it mounts as a FRESH node with\n role=\"alert\" already set — screen readers reliably announce a live region\n on insertion, but not when role=\"alert\" is toggled onto an existing node. -->\n@if (text()) {\n @if (state() === 'error') {\n <span\n class=\"field-message error\"\n role=\"alert\"\n [id]=\"messageId()\">\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\" />\n }\n {{ text() }}\n </span>\n } @else {\n <span\n class=\"field-message {{ state() }}\"\n [id]=\"messageId()\">\n @if (iconResolved(); as glyph) {\n <ds-icon\n class=\"message-icon\"\n [name]=\"glyph\"\n [size]=\"14\" />\n }\n {{ text() }}\n </span>\n }\n} @else if (reserve()) {\n <span\n class=\"field-message reserve-placeholder\"\n aria-hidden=\"true\">\n </span>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAeA;;;;AAIG;MASU,qBAAqB,CAAA;;AAEvB,IAAA,IAAI,GAAG,KAAK,CAAS,EAAE,2EAAC;;AAExB,IAAA,KAAK,GAAG,KAAK,CAAoB,SAAS,4EAAC;;AAE3C,IAAA,SAAS,GAAG,KAAK,CAAgB,IAAI,gFAAC;AAC/C;;;AAGkB;AACT,IAAA,IAAI,GAAG,KAAK,CAA0B,IAAI,2EAAC;AACpD;AAC+D;IACtD,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAE/C,IAAA,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC;AAE3C;AACsD;IAC9C,OAAgB,QAAQ,GAG5B;AACF,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,OAAO,EAAE,KAAK;KACf;AAEkB,IAAA,YAAY,GAAG,QAAQ,CAAkB,MAAK;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AA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC5BlC,g/BAoCA,EAAA,MAAA,EAAA,CAAA,w6BAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDbY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAKZ,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBARjC,SAAS;+BACE,kBAAkB,EAAA,UAAA,EAChB,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,aAAA,EAGT,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,g/BAAA,EAAA,MAAA,EAAA,CAAA,w6BAAA,CAAA,EAAA;;;AE1B3C;;AAEG;;;;"}
@@ -142,7 +142,7 @@ class FilterBarComponent {
142
142
  });
143
143
  }
144
144
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: FilterBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
145
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: FilterBarComponent, isStandalone: true, selector: "ds-filter-bar", inputs: { moreLabel: { classPropertyName: "moreLabel", publicName: "moreLabel", isSignal: true, isRequired: false, transformFunction: null }, panelLabel: { classPropertyName: "panelLabel", publicName: "panelLabel", isSignal: true, isRequired: false, transformFunction: null }, triggerSize: { classPropertyName: "triggerSize", publicName: "triggerSize", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "items", predicate: FilterItemDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "row", first: true, predicate: ["row"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n #row\n class=\"row\"\n>\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\"\n >\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.buttonRef().nativeElement)\"\n >\n +{{ collapsed().length }} {{ moreLabel() }}\n </ds-button>\n\n <ds-popover\n #more\n align=\"end\"\n panelRole=\"dialog\"\n [panelLabel]=\"panelLabel()\"\n >\n <div class=\"panel\">\n @for (item of collapsed(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\"\n >\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n </div>\n </ds-popover>\n }\n</div>\n\n<div class=\"trailing\">\n <ng-content select=\"[dsFilterBarTrailing]\"></ng-content>\n</div>\n\n@if (devMode) {\n <span\n dsProjectionDropped=\"ds-filter-bar\"\n reason='a filter belongs in an <ng-template [dsFilterItem]=\"width\">, and anything else needs the dsFilterBarTrailing attribute to reach the trailing edge. Content carrying neither is not rendered.'\n >\n <ng-content></ng-content>\n </span>\n}\n", styles: ["@charset \"UTF-8\";:host{--_filter-bar-gap: var(--ds-filter-bar-gap, var(--space-3));--_filter-bar-panel-gap: var(--ds-filter-bar-panel-gap, var(--space-4));display:flex;align-items:flex-end;gap:var(--_filter-bar-gap)}.row{display:flex;flex:1 1 auto;align-items:flex-end;gap:var(--_filter-bar-gap);min-width:0;overflow:clip;overflow-clip-margin:4px}.row:not(:has(*)){display:none}.item{flex:0 1 auto;min-width:0}.more{flex:0 0 auto}.panel{display:flex;flex-direction:column;gap:var(--_filter-bar-panel-gap)}.trailing{display:flex;flex:0 0 auto;align-items:flex-end;gap:var(--_filter-bar-gap);margin-left:auto}.trailing:not(:has(*)){display:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "ds-button", inputs: ["color", "variant", "size", "type", "disabled", "loading", "fullWidth", "ariaLabel", "icon", "trailingIcon", "ariaHasPopup", "ariaExpanded", "ariaControls", "disabledReason", "ariaDescribedBy"], outputs: ["pressed"] }, { kind: "component", type: PopoverComponent, selector: "ds-popover", inputs: ["align", "placement", "arrow", "panelRole", "panelLabel"] }, { kind: "directive", type: ProjectionDroppedDirective, selector: "[dsProjectionDropped]", inputs: ["dsProjectionDropped", "reason"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
145
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: FilterBarComponent, isStandalone: true, selector: "ds-filter-bar", inputs: { moreLabel: { classPropertyName: "moreLabel", publicName: "moreLabel", isSignal: true, isRequired: false, transformFunction: null }, panelLabel: { classPropertyName: "panelLabel", publicName: "panelLabel", isSignal: true, isRequired: false, transformFunction: null }, triggerSize: { classPropertyName: "triggerSize", publicName: "triggerSize", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "items", predicate: FilterItemDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "row", first: true, predicate: ["row"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n #row\n class=\"row\">\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.buttonRef().nativeElement)\">\n +{{ collapsed().length }} {{ moreLabel() }}\n </ds-button>\n\n <ds-popover\n #more\n align=\"end\"\n panelRole=\"dialog\"\n [panelLabel]=\"panelLabel()\">\n <div class=\"panel\">\n @for (item of collapsed(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n </div>\n </ds-popover>\n }\n</div>\n\n<div class=\"trailing\">\n <ng-content select=\"[dsFilterBarTrailing]\"></ng-content>\n</div>\n\n@if (devMode) {\n <span\n dsProjectionDropped=\"ds-filter-bar\"\n reason='a filter belongs in an <ng-template [dsFilterItem]=\"width\">, and anything else needs the dsFilterBarTrailing attribute to reach the trailing edge. Content carrying neither is not rendered.'>\n <ng-content></ng-content>\n </span>\n}\n", styles: ["@charset \"UTF-8\";:host{--_filter-bar-gap: var(--ds-filter-bar-gap, var(--space-3));--_filter-bar-panel-gap: var(--ds-filter-bar-panel-gap, var(--space-4));display:flex;align-items:flex-end;gap:var(--_filter-bar-gap)}.row{display:flex;flex:1 1 auto;align-items:flex-end;gap:var(--_filter-bar-gap);min-width:0;overflow:clip;overflow-clip-margin:4px}.row:not(:has(*)){display:none}.item{flex:0 1 auto;min-width:0}.more{flex:0 0 auto}.panel{display:flex;flex-direction:column;gap:var(--_filter-bar-panel-gap)}.trailing{display:flex;flex:0 0 auto;align-items:flex-end;gap:var(--_filter-bar-gap);margin-left:auto}.trailing:not(:has(*)){display:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "ds-button", inputs: ["color", "variant", "size", "type", "disabled", "loading", "fullWidth", "ariaLabel", "icon", "trailingIcon", "ariaHasPopup", "ariaExpanded", "ariaControls", "disabledReason", "ariaDescribedBy"], outputs: ["pressed"] }, { kind: "component", type: PopoverComponent, selector: "ds-popover", inputs: ["align", "placement", "arrow", "panelRole", "panelLabel"] }, { kind: "directive", type: ProjectionDroppedDirective, selector: "[dsProjectionDropped]", inputs: ["dsProjectionDropped", "reason"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
146
146
  }
147
147
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: FilterBarComponent, decorators: [{
148
148
  type: Component,
@@ -151,7 +151,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
151
151
  ButtonComponent,
152
152
  PopoverComponent,
153
153
  ProjectionDroppedDirective,
154
- ], encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n #row\n class=\"row\"\n>\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\"\n >\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.buttonRef().nativeElement)\"\n >\n +{{ collapsed().length }} {{ moreLabel() }}\n </ds-button>\n\n <ds-popover\n #more\n align=\"end\"\n panelRole=\"dialog\"\n [panelLabel]=\"panelLabel()\"\n >\n <div class=\"panel\">\n @for (item of collapsed(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\"\n >\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n </div>\n </ds-popover>\n }\n</div>\n\n<div class=\"trailing\">\n <ng-content select=\"[dsFilterBarTrailing]\"></ng-content>\n</div>\n\n@if (devMode) {\n <span\n dsProjectionDropped=\"ds-filter-bar\"\n reason='a filter belongs in an <ng-template [dsFilterItem]=\"width\">, and anything else needs the dsFilterBarTrailing attribute to reach the trailing edge. Content carrying neither is not rendered.'\n >\n <ng-content></ng-content>\n </span>\n}\n", styles: ["@charset \"UTF-8\";:host{--_filter-bar-gap: var(--ds-filter-bar-gap, var(--space-3));--_filter-bar-panel-gap: var(--ds-filter-bar-panel-gap, var(--space-4));display:flex;align-items:flex-end;gap:var(--_filter-bar-gap)}.row{display:flex;flex:1 1 auto;align-items:flex-end;gap:var(--_filter-bar-gap);min-width:0;overflow:clip;overflow-clip-margin:4px}.row:not(:has(*)){display:none}.item{flex:0 1 auto;min-width:0}.more{flex:0 0 auto}.panel{display:flex;flex-direction:column;gap:var(--_filter-bar-panel-gap)}.trailing{display:flex;flex:0 0 auto;align-items:flex-end;gap:var(--_filter-bar-gap);margin-left:auto}.trailing:not(:has(*)){display:none}\n"] }]
154
+ ], encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n #row\n class=\"row\">\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.buttonRef().nativeElement)\">\n +{{ collapsed().length }} {{ moreLabel() }}\n </ds-button>\n\n <ds-popover\n #more\n align=\"end\"\n panelRole=\"dialog\"\n [panelLabel]=\"panelLabel()\">\n <div class=\"panel\">\n @for (item of collapsed(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n </div>\n </ds-popover>\n }\n</div>\n\n<div class=\"trailing\">\n <ng-content select=\"[dsFilterBarTrailing]\"></ng-content>\n</div>\n\n@if (devMode) {\n <span\n dsProjectionDropped=\"ds-filter-bar\"\n reason='a filter belongs in an <ng-template [dsFilterItem]=\"width\">, and anything else needs the dsFilterBarTrailing attribute to reach the trailing edge. Content carrying neither is not rendered.'>\n <ng-content></ng-content>\n </span>\n}\n", styles: ["@charset \"UTF-8\";:host{--_filter-bar-gap: var(--ds-filter-bar-gap, var(--space-3));--_filter-bar-panel-gap: var(--ds-filter-bar-panel-gap, var(--space-4));display:flex;align-items:flex-end;gap:var(--_filter-bar-gap)}.row{display:flex;flex:1 1 auto;align-items:flex-end;gap:var(--_filter-bar-gap);min-width:0;overflow:clip;overflow-clip-margin:4px}.row:not(:has(*)){display:none}.item{flex:0 1 auto;min-width:0}.more{flex:0 0 auto}.panel{display:flex;flex-direction:column;gap:var(--_filter-bar-panel-gap)}.trailing{display:flex;flex:0 0 auto;align-items:flex-end;gap:var(--_filter-bar-gap);margin-left:auto}.trailing:not(:has(*)){display:none}\n"] }]
155
155
  }], ctorParameters: () => [], propDecorators: { moreLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "moreLabel", required: false }] }], panelLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelLabel", required: false }] }], triggerSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerSize", required: false }] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => FilterItemDirective), { ...{
156
156
  descendants: true,
157
157
  }, isSignal: true }] }], row: [{ type: i0.ViewChild, args: ['row', { isSignal: true }] }] } });