@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
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-sidenav.mjs","sources":["../../../src/lib/components/sidenav/brand-name.directive.ts","../../../src/lib/components/sidenav/sidenav.token.ts","../../../src/lib/components/sidenav/sidenav.component.ts","../../../src/lib/components/sidenav/sidenav.component.html","../../../src/lib/components/sidenav/sidenav-group.component.ts","../../../src/lib/components/sidenav/sidenav-group.component.html","../../../src/lib/components/sidenav/sidenav-item.component.ts","../../../src/lib/components/sidenav/sidenav-item.component.html","../../../src/lib/components/sidenav/ids-group-ltd-ids-design-system-components-sidenav.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * Marks projected wordmark markup for `ds-sidenav`: when present, the sidenav\n * renders the projected content inside `.brand-name` instead of the plain\n * `brand` text (two-tone wordmarks, inline logos etc. stay consumer-side).\n *\n * Interplay: projecting `[dsBrandName]` is enough to render the brand row and\n * its wordmark even without a string `brand`, but it only supplies the\n * wordmark — the letter-mark tile still comes from `logoLetter` (or the first\n * letter of `brand`), so an empty `brand` + projection renders the wordmark\n * with no tile.\n */\n@Directive({\n selector: '[dsBrandName]',\n standalone: true,\n})\nexport class BrandNameDirective {}\n","import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-sidenav-item reads from its parent ds-sidenav. */\nexport interface SidenavContract {\n readonly collapsed: () => boolean;\n /** Whether the active item draws its edge marker. Set once on the sidenav; an\n * item can still override it for itself. */\n readonly rail: () => boolean;\n}\n\nexport const SIDENAV = new InjectionToken<SidenavContract>('SIDENAV');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n input,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { BrandNameDirective } from './brand-name.directive';\nimport { resolveBrandValue } from '@ids-group-ltd/ids-design-system/components';\nimport { SIDENAV, type SidenavContract } from './sidenav.token';\n\n@Component({\n selector: 'ds-sidenav',\n standalone: true,\n imports: [NgTemplateOutlet, RouterLink],\n templateUrl: './sidenav.component.html',\n styleUrl: './sidenav.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.sidenav]': 'true',\n '[class.collapsed]': 'collapsed()',\n },\n providers: [{ provide: SIDENAV, useExisting: SidenavComponent }],\n})\nexport class SidenavComponent implements SidenavContract {\n /** Collapses the rail to icon-only width; read by nested `ds-sidenav-item`/`ds-sidenav-group`. */\n readonly collapsed = input(false, { transform: booleanAttribute });\n /** Whether the ACTIVE item draws its edge marker, for the whole sidenav. Off\n * leaves the active state on the fill and the label alone — check that is still\n * distinguishable before turning it off. An individual `ds-sidenav-item` can\n * override this with its own `rail`. */\n readonly rail = input(true, { transform: booleanAttribute });\n /** Brand text at the top of the rail (auto letter-mark + name). For a custom\n * logo image/SVG, project it into the `[brand]` slot instead. Unset falls back\n * to `DS_CONFIG.brand.name`. Each field resolves on its own, so `brand=\"\"` drops\n * the wordmark while a `logoLetter` in the config still paints its tile. */\n readonly brand = input<string | null>(null);\n /** Letter-mark glyph when it differs from the brand's first letter (e.g. an\n * \"A\" tile beside the \"MyAdmin\" wordmark). Empty = first letter of `brand`;\n * unset falls back to `DS_CONFIG.brand.logoLetter`. */\n readonly logoLetter = input<string | null>(null);\n /** Route the brand row links to — typically the app's home. Unset leaves the row a\n * plain, non-interactive block. Router targets only, and `RouterLink` is\n * instantiated only once this is set, so an app with no router still renders. */\n readonly brandRoute = input<string | readonly unknown[] | null>(null);\n /** Accessible name for the brand link; unset names it \"<brand>, home\". Ignored\n * while `brandRoute` is unset. */\n readonly brandLinkLabel = input<string | null>(null);\n\n /** The template must read THIS, never the input beside it — that one is null\n * until bound, and the config default lives here. */\n readonly brandName = resolveBrandValue(this.brand, 'name');\n readonly letterGlyph = resolveBrandValue(this.logoLetter, 'logoLetter');\n\n /** Projected `[dsBrandName]` wordmark markup, when the consumer provides one. */\n protected readonly brandNameRef = contentChild(BrandNameDirective);\n protected readonly hasBrandName = computed(() => !!this.brandNameRef());\n\n /** Spread, not `charAt(0)`: the latter indexes UTF-16 code UNITS, so a brand\n * starting with an astral character (an emoji, a rarer CJK glyph) yields half\n * a surrogate pair and paints as tofu. */\n protected readonly markGlyph = computed(\n () => this.letterGlyph() || [...this.brandName()][0] || '',\n );\n\n protected readonly brandAriaLabel = computed(() => {\n const own = this.brandLinkLabel();\n if (own) {\n return own;\n }\n const name = this.brandName();\n\n return name ? `${name}, home` : 'Home';\n });\n}\n","@if (brandRoute()) {\n <a\n class=\"brand brand-link\"\n [routerLink]=\"brandRoute()\"\n [attr.aria-label]=\"brandAriaLabel()\"\n >\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </a>\n} @else {\n <div class=\"brand\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </div>\n}\n\n<ng-template #brandContent>\n <ng-content select=\"[brand]\"></ng-content>\n\n @if (letterGlyph() || brandName()) {\n <span\n class=\"mark\"\n aria-hidden=\"true\"\n >\n {{ markGlyph() }}\n </span>\n }\n\n @if (brandName() || hasBrandName()) {\n <span class=\"brand-name\">\n @if (hasBrandName()) {\n <ng-content select=\"[dsBrandName]\"></ng-content>\n } @else {\n {{ brandName() }}\n }\n </span>\n }\n</ng-template>\n\n<ng-content></ng-content>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n model,\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';\n\n@Component({\n selector: 'ds-sidenav-group',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './sidenav-group.component.html',\n styleUrl: './sidenav-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SidenavGroupComponent {\n /** Group heading text. */\n readonly label = input<string>('');\n /** Optional group icon; omit to project custom content via the `[icon]` slot instead. */\n readonly icon = input<IconName | null>(null);\n /** When true, the label/icon row becomes a clickable header that expands/collapses the group. */\n readonly expandable = input(false, { transform: booleanAttribute });\n /** Two-way bindable open state; defaults open so a non-expandable group always shows its items. */\n readonly expanded = model<boolean>(true);\n\n protected toggle(): void {\n if (!this.expandable()) {\n return;\n }\n this.expanded.update((value) => !value);\n }\n}\n","<!-- Single <ng-content> outside any @if blocks. Angular accepts only one\n default slot per component; duplicate <ng-content> elements caused\n children to silently drop when control flow chose a non-matching branch. -->\n@if (expandable()) {\n <button\n type=\"button\"\n class=\"group-header\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"toggle()\"\n >\n @if (icon()) {\n <ds-icon\n class=\"group-icon\"\n [name]=\"icon()!\"\n [size]=\"18\"\n >\n </ds-icon>\n } @else {\n <!-- `[ds-group-icon]` is selector-distinct from `[icon]` slots used on\n sidenav-item children, so projected icons don't get swallowed when\n a consumer puts items inside the group. -->\n <span class=\"group-icon\">\n <ng-content select=\"[ds-group-icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"group-title\">\n {{ label() }}\n </span>\n }\n\n <ds-icon\n class=\"group-caret\"\n name=\"chevronDown\"\n [class.open]=\"expanded()\"\n [size]=\"14\"\n >\n </ds-icon>\n </button>\n} @else if (label()) {\n <span class=\"group-label\">\n {{ label() }}\n </span>\n}\n\n<div\n class=\"group-body\"\n [class.hidden]=\"expandable() && !expanded()\"\n [attr.inert]=\"expandable() && !expanded() ? '' : null\"\n>\n <ng-content></ng-content>\n</div>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n} from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { TooltipDirective } from '@ids-group-ltd/ids-design-system/components/tooltip';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { SIDENAV } from './sidenav.token';\n\n@Component({\n selector: 'ds-sidenav-item',\n standalone: true,\n imports: [\n IconComponent,\n RouterLink,\n RouterLinkActive,\n NgTemplateOutlet,\n TooltipDirective,\n ],\n templateUrl: './sidenav-item.component.html',\n styleUrl: './sidenav-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SidenavItemComponent {\n /** Icon shown before the label; omit to project a custom icon via the `[icon]` slot instead. */\n readonly icon = input<IconName | null>(null);\n /** Visible link text; also used as the tooltip/aria-label when the rail is collapsed. */\n readonly label = input.required<string>();\n /** Plain `href` target, used when `routerLink` is not set. */\n readonly href = input<string>('');\n /** Angular `RouterLink` target — string or array form for dynamic segments. */\n readonly routerLink = input<string | readonly unknown[] | null>(null);\n /** Applies the active style; also drives `aria-current` when not using `routerLink`. */\n readonly active = input(false, { transform: booleanAttribute });\n /** Numeric count shown at the end of the item. */\n readonly badge = input<number | null>(null);\n /** Shows an alert dot alongside the badge. */\n readonly hasAlert = input(false, { transform: booleanAttribute });\n /** Disables the item — non-navigable and styled as inactive. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Emitted on click, carrying the `MouseEvent`. On an `href` item,\n * `preventDefault()` intercepts navigation (e.g. a docs sidebar driving\n * scroll-spy); a `routerLink` item navigates regardless — Angular's\n * RouterLink ignores `defaultPrevented` — so treat it as a click hook there. */\n readonly activate = output<MouseEvent>();\n\n /** Whether THIS item draws its edge marker when active. Unset follows the parent\n * `ds-sidenav`, then on — the same \"null means not deciding\" reading as the rest\n * of the library, so a sidenav-wide `[rail]=\"false\"` is not fought per item. */\n readonly rail = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n private readonly sidenav = inject(SIDENAV, { optional: true });\n\n protected readonly railResolved = computed(\n () => this.rail() ?? this.sidenav?.rail() ?? true,\n );\n\n protected onActivate(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n this.activate.emit(event);\n }\n\n /** Tooltip text shown when collapsed; empty string suppresses the tooltip when expanded. */\n protected readonly collapsedTooltip = computed(() =>\n this.sidenav?.collapsed() ? this.label() : '',\n );\n\n // Only name the link via aria-label when collapsed (icon-only, the .item-label\n // is display:none). Expanded, the visible label names it and any aria-label\n // would override it — suppressing the badge count / alert dot from the name.\n protected readonly collapsedAriaLabel = computed(() =>\n this.sidenav?.collapsed() ? this.label() : null,\n );\n\n protected readonly linkClasses = computed(() => {\n const parts = ['item'];\n if (this.active()) {\n parts.push('active');\n }\n // The routerLink variant gets `active` from routerLinkActive, not from here,\n // so the rail opt-out has to be a class of its own rather than folded in.\n if (!this.railResolved()) {\n parts.push('no-rail');\n }\n if (this.disabled()) {\n parts.push('disabled');\n }\n\n return parts.join(' ');\n });\n}\n","<!-- Selector-scoped slots ([icon], [trailing]) coexist with no default\n <ng-content> here — projection goes via attributes only, so consumers\n can compose icon + label + arbitrary trailing content (status pill,\n status icon, etc.). The two <a> variants (routerLink vs href) share one\n #content template so the inner markup isn't duplicated. -->\n@if (routerLink()) {\n <a\n #rla=\"routerLinkActive\"\n routerLinkActive=\"active\"\n dsTooltipPlacement=\"right\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"rla.isActive ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else if (href()) {\n <a\n dsTooltipPlacement=\"right\"\n [href]=\"href()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <!-- No destination, so not a link: an `href=\"#\"` navigates — it rewrites the URL\n and discards the scroll position on every click. An item that only emits\n `activate` is a button. -->\n <button\n type=\"button\"\n dsTooltipPlacement=\"right\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [disabled]=\"disabled()\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n}\n\n<ng-template #content>\n @if (icon()) {\n <ds-icon\n class=\"icon\"\n [name]=\"icon()!\"\n [size]=\"20\"\n >\n </ds-icon>\n } @else {\n <span class=\"icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"item-label\">\n {{ label() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n </span>\n\n @if (badge() !== null) {\n <span class=\"count\">\n {{ badge() }}\n </span>\n }\n\n @if (hasAlert()) {\n <span class=\"alert\"></span>\n }\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEA;;;;;;;;;;AAUG;MAKU,kBAAkB,CAAA;wGAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,SAAS;AAAC,YAAA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AAA,EAAA,qBAAA,EAAA,OAAA,EAAA,MAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,YAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACV,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,uBAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAChB,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAChB,gBAAgB,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,oBAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAMP,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAdhC,SAAS;+BACE,iBAAiB,EAAA,UAAA,EACf,IAAI,EAAA,OAAA,EACP;wBACP,aAAa;wBACb,UAAU;wBACV,gBAAgB;wBAChB,gBAAgB;wBAChB,gBAAgB;qBACjB,EAAA,aAAA,EAGc,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,qkFAAA,EAAA,MAAA,EAAA,CAAA,swHAAA,CAAA,EAAA;;;AE5B3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-sidenav.mjs","sources":["../../../src/lib/components/sidenav/brand-name.directive.ts","../../../src/lib/components/sidenav/sidenav.token.ts","../../../src/lib/components/sidenav/sidenav.component.ts","../../../src/lib/components/sidenav/sidenav.component.html","../../../src/lib/components/sidenav/sidenav-group.component.ts","../../../src/lib/components/sidenav/sidenav-group.component.html","../../../src/lib/components/sidenav/sidenav-item.component.ts","../../../src/lib/components/sidenav/sidenav-item.component.html","../../../src/lib/components/sidenav/ids-group-ltd-ids-design-system-components-sidenav.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * Marks projected wordmark markup for `ds-sidenav`: when present, the sidenav\n * renders the projected content inside `.brand-name` instead of the plain\n * `brand` text (two-tone wordmarks, inline logos etc. stay consumer-side).\n *\n * Interplay: projecting `[dsBrandName]` is enough to render the brand row and\n * its wordmark even without a string `brand`, but it only supplies the\n * wordmark — the letter-mark tile still comes from `logoLetter` (or the first\n * letter of `brand`), so an empty `brand` + projection renders the wordmark\n * with no tile.\n */\n@Directive({\n selector: '[dsBrandName]',\n standalone: true,\n})\nexport class BrandNameDirective {}\n","import { InjectionToken } from '@angular/core';\n\n/** Contract that ds-sidenav-item reads from its parent ds-sidenav. */\nexport interface SidenavContract {\n readonly collapsed: () => boolean;\n /** Whether the active item draws its edge marker. Set once on the sidenav; an\n * item can still override it for itself. */\n readonly rail: () => boolean;\n}\n\nexport const SIDENAV = new InjectionToken<SidenavContract>('SIDENAV');\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n input,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { BrandNameDirective } from './brand-name.directive';\nimport { resolveBrandValue } from '@ids-group-ltd/ids-design-system/components';\nimport { SIDENAV, type SidenavContract } from './sidenav.token';\n\n@Component({\n selector: 'ds-sidenav',\n standalone: true,\n imports: [NgTemplateOutlet, RouterLink],\n templateUrl: './sidenav.component.html',\n styleUrl: './sidenav.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.sidenav]': 'true',\n '[class.collapsed]': 'collapsed()',\n },\n providers: [{ provide: SIDENAV, useExisting: SidenavComponent }],\n})\nexport class SidenavComponent implements SidenavContract {\n /** Collapses the rail to icon-only width; read by nested `ds-sidenav-item`/`ds-sidenav-group`. */\n readonly collapsed = input(false, { transform: booleanAttribute });\n /** Whether the ACTIVE item draws its edge marker, for the whole sidenav. Off\n * leaves the active state on the fill and the label alone — check that is still\n * distinguishable before turning it off. An individual `ds-sidenav-item` can\n * override this with its own `rail`. */\n readonly rail = input(true, { transform: booleanAttribute });\n /** Brand text at the top of the rail (auto letter-mark + name). For a custom\n * logo image/SVG, project it into the `[brand]` slot instead. Unset falls back\n * to `DS_CONFIG.brand.name`. Each field resolves on its own, so `brand=\"\"` drops\n * the wordmark while a `logoLetter` in the config still paints its tile. */\n readonly brand = input<string | null>(null);\n /** Letter-mark glyph when it differs from the brand's first letter (e.g. an\n * \"A\" tile beside the \"MyAdmin\" wordmark). Empty = first letter of `brand`;\n * unset falls back to `DS_CONFIG.brand.logoLetter`. */\n readonly logoLetter = input<string | null>(null);\n /** Route the brand row links to — typically the app's home. Unset leaves the row a\n * plain, non-interactive block. Router targets only, and `RouterLink` is\n * instantiated only once this is set, so an app with no router still renders. */\n readonly brandRoute = input<string | readonly unknown[] | null>(null);\n /** Accessible name for the brand link; unset names it \"<brand>, home\". Ignored\n * while `brandRoute` is unset. */\n readonly brandLinkLabel = input<string | null>(null);\n\n /** The template must read THIS, never the input beside it — that one is null\n * until bound, and the config default lives here. */\n readonly brandName = resolveBrandValue(this.brand, 'name');\n readonly letterGlyph = resolveBrandValue(this.logoLetter, 'logoLetter');\n\n /** Projected `[dsBrandName]` wordmark markup, when the consumer provides one. */\n protected readonly brandNameRef = contentChild(BrandNameDirective);\n protected readonly hasBrandName = computed(() => !!this.brandNameRef());\n\n /** Spread, not `charAt(0)`: the latter indexes UTF-16 code UNITS, so a brand\n * starting with an astral character (an emoji, a rarer CJK glyph) yields half\n * a surrogate pair and paints as tofu. */\n protected readonly markGlyph = computed(\n () => this.letterGlyph() || [...this.brandName()][0] || '',\n );\n\n protected readonly brandAriaLabel = computed(() => {\n const own = this.brandLinkLabel();\n if (own) {\n return own;\n }\n const name = this.brandName();\n\n return name ? `${name}, home` : 'Home';\n });\n}\n","@if (brandRoute()) {\n <a\n class=\"brand brand-link\"\n [routerLink]=\"brandRoute()\"\n [attr.aria-label]=\"brandAriaLabel()\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </a>\n} @else {\n <div class=\"brand\">\n <ng-container [ngTemplateOutlet]=\"brandContent\" />\n </div>\n}\n\n<ng-template #brandContent>\n <ng-content select=\"[brand]\"></ng-content>\n\n @if (letterGlyph() || brandName()) {\n <span\n class=\"mark\"\n aria-hidden=\"true\">\n {{ markGlyph() }}\n </span>\n }\n\n @if (brandName() || hasBrandName()) {\n <span class=\"brand-name\">\n @if (hasBrandName()) {\n <ng-content select=\"[dsBrandName]\"></ng-content>\n } @else {\n {{ brandName() }}\n }\n </span>\n }\n</ng-template>\n\n<ng-content></ng-content>\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n model,\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';\n\n@Component({\n selector: 'ds-sidenav-group',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './sidenav-group.component.html',\n styleUrl: './sidenav-group.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SidenavGroupComponent {\n /** Group heading text. */\n readonly label = input<string>('');\n /** Optional group icon; omit to project custom content via the `[icon]` slot instead. */\n readonly icon = input<IconName | null>(null);\n /** When true, the label/icon row becomes a clickable header that expands/collapses the group. */\n readonly expandable = input(false, { transform: booleanAttribute });\n /** Two-way bindable open state; defaults open so a non-expandable group always shows its items. */\n readonly expanded = model<boolean>(true);\n\n protected toggle(): void {\n if (!this.expandable()) {\n return;\n }\n this.expanded.update((value) => !value);\n }\n}\n","<!-- Single <ng-content> outside any @if blocks. Angular accepts only one\n default slot per component; duplicate <ng-content> elements caused\n children to silently drop when control flow chose a non-matching branch. -->\n@if (expandable()) {\n <button\n type=\"button\"\n class=\"group-header\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"toggle()\">\n @if (icon()) {\n <ds-icon\n class=\"group-icon\"\n [name]=\"icon()!\"\n [size]=\"18\">\n </ds-icon>\n } @else {\n <!-- `[ds-group-icon]` is selector-distinct from `[icon]` slots used on\n sidenav-item children, so projected icons don't get swallowed when\n a consumer puts items inside the group. -->\n <span class=\"group-icon\">\n <ng-content select=\"[ds-group-icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"group-title\">\n {{ label() }}\n </span>\n }\n\n <ds-icon\n class=\"group-caret\"\n name=\"chevronDown\"\n [class.open]=\"expanded()\"\n [size]=\"14\">\n </ds-icon>\n </button>\n} @else if (label()) {\n <span class=\"group-label\">\n {{ label() }}\n </span>\n}\n\n<div\n class=\"group-body\"\n [class.hidden]=\"expandable() && !expanded()\"\n [attr.inert]=\"expandable() && !expanded() ? '' : null\">\n <ng-content></ng-content>\n</div>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n output,\n} from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { TooltipDirective } from '@ids-group-ltd/ids-design-system/components/tooltip';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { SIDENAV } from './sidenav.token';\n\n@Component({\n selector: 'ds-sidenav-item',\n standalone: true,\n imports: [\n IconComponent,\n RouterLink,\n RouterLinkActive,\n NgTemplateOutlet,\n TooltipDirective,\n ],\n templateUrl: './sidenav-item.component.html',\n styleUrl: './sidenav-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SidenavItemComponent {\n /** Icon shown before the label; omit to project a custom icon via the `[icon]` slot instead. */\n readonly icon = input<IconName | null>(null);\n /** Visible link text; also used as the tooltip/aria-label when the rail is collapsed. */\n readonly label = input.required<string>();\n /** Plain `href` target, used when `routerLink` is not set. */\n readonly href = input<string>('');\n /** Angular `RouterLink` target — string or array form for dynamic segments. */\n readonly routerLink = input<string | readonly unknown[] | null>(null);\n /** Applies the active style; also drives `aria-current` when not using `routerLink`. */\n readonly active = input(false, { transform: booleanAttribute });\n /** Numeric count shown at the end of the item. */\n readonly badge = input<number | null>(null);\n /** Shows an alert dot alongside the badge. */\n readonly hasAlert = input(false, { transform: booleanAttribute });\n /** Disables the item — non-navigable and styled as inactive. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Emitted on click, carrying the `MouseEvent`. On an `href` item,\n * `preventDefault()` intercepts navigation (e.g. a docs sidebar driving\n * scroll-spy); a `routerLink` item navigates regardless — Angular's\n * RouterLink ignores `defaultPrevented` — so treat it as a click hook there. */\n readonly activate = output<MouseEvent>();\n\n /** Whether THIS item draws its edge marker when active. Unset follows the parent\n * `ds-sidenav`, then on — the same \"null means not deciding\" reading as the rest\n * of the library, so a sidenav-wide `[rail]=\"false\"` is not fought per item. */\n readonly rail = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n private readonly sidenav = inject(SIDENAV, { optional: true });\n\n protected readonly railResolved = computed(\n () => this.rail() ?? this.sidenav?.rail() ?? true,\n );\n\n protected onActivate(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n this.activate.emit(event);\n }\n\n /** Tooltip text shown when collapsed; empty string suppresses the tooltip when expanded. */\n protected readonly collapsedTooltip = computed(() =>\n this.sidenav?.collapsed() ? this.label() : '',\n );\n\n // Only name the link via aria-label when collapsed (icon-only, the .item-label\n // is display:none). Expanded, the visible label names it and any aria-label\n // would override it — suppressing the badge count / alert dot from the name.\n protected readonly collapsedAriaLabel = computed(() =>\n this.sidenav?.collapsed() ? this.label() : null,\n );\n\n protected readonly linkClasses = computed(() => {\n const parts = ['item'];\n if (this.active()) {\n parts.push('active');\n }\n // The routerLink variant gets `active` from routerLinkActive, not from here,\n // so the rail opt-out has to be a class of its own rather than folded in.\n if (!this.railResolved()) {\n parts.push('no-rail');\n }\n if (this.disabled()) {\n parts.push('disabled');\n }\n\n return parts.join(' ');\n });\n}\n","<!-- Selector-scoped slots ([icon], [trailing]) coexist with no default\n <ng-content> here — projection goes via attributes only, so consumers\n can compose icon + label + arbitrary trailing content (status pill,\n status icon, etc.). The two <a> variants (routerLink vs href) share one\n #content template so the inner markup isn't duplicated. -->\n@if (routerLink()) {\n <a\n #rla=\"routerLinkActive\"\n routerLinkActive=\"active\"\n dsTooltipPlacement=\"right\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"rla.isActive ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else if (href()) {\n <a\n dsTooltipPlacement=\"right\"\n [href]=\"href()\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [attr.tabindex]=\"disabled() ? -1 : null\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n} @else {\n <!-- No destination, so not a link: an `href=\"#\"` navigates — it rewrites the URL\n and discards the scroll position on every click. An item that only emits\n `activate` is a button. -->\n <button\n type=\"button\"\n dsTooltipPlacement=\"right\"\n [class]=\"linkClasses()\"\n [attr.aria-label]=\"collapsedAriaLabel()\"\n [attr.aria-current]=\"active() ? 'page' : null\"\n [disabled]=\"disabled()\"\n [dsTooltip]=\"collapsedTooltip()\"\n (click)=\"onActivate($event)\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n}\n\n<ng-template #content>\n @if (icon()) {\n <ds-icon\n class=\"icon\"\n [name]=\"icon()!\"\n [size]=\"20\">\n </ds-icon>\n } @else {\n <span class=\"icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n @if (label()) {\n <span class=\"item-label\">\n {{ label() }}\n </span>\n }\n\n <span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n </span>\n\n @if (badge() !== null) {\n <span class=\"count\">\n {{ badge() }}\n </span>\n }\n\n @if (hasAlert()) {\n <span class=\"alert\"></span>\n }\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEA;;;;;;;;;;AAUG;MAKU,kBAAkB,CAAA;wGAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;MCNY,OAAO,GAAG,IAAI,cAAc,CAAkB,SAAS;;MCiBvD,gBAAgB,CAAA;;IAElB,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAClE;;;AAGyC;IAChC,IAAI,GAAG,KAAK,CAAC,IAAI,4EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC5D;;;AAG6E;AACpE,IAAA,KAAK,GAAG,KAAK,CAAgB,IAAI,4EAAC;AAC3C;;AAEwD;AAC/C,IAAA,UAAU,GAAG,KAAK,CAAgB,IAAI,iFAAC;AAChD;;AAEkF;AACzE,IAAA,UAAU,GAAG,KAAK,CAAqC,IAAI,iFAAC;AACrE;AACmC;AAC1B,IAAA,cAAc,GAAG,KAAK,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AAA,MAAA,EAAA,CAAA,WAAA,EAAA,oBAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAMP,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAdhC,SAAS;+BACE,iBAAiB,EAAA,UAAA,EACf,IAAI,EAAA,OAAA,EACP;wBACP,aAAa;wBACb,UAAU;wBACV,gBAAgB;wBAChB,gBAAgB;wBAChB,gBAAgB;qBACjB,EAAA,aAAA,EAGc,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,mjFAAA,EAAA,MAAA,EAAA,CAAA,8sJAAA,CAAA,EAAA;;;AE5B3C;;AAEG;;;;"}
@@ -11,7 +11,7 @@ class SkeletonComponent {
11
11
  /** `display: inline-block` instead of `block`, to sit inline with text. */
12
12
  inline = input(false, { ...(ngDevMode ? { debugName: "inline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
13
13
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: SkeletonComponent, isStandalone: true, selector: "ds-skeleton", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" }, properties: { "style.width": "width()", "style.height": "height()", "class.circle": "circle()", "class.inline": "inline()" } }, ngImport: i0, template: '', isInline: true, styles: ["@charset \"UTF-8\";:host{--_skeleton-bg-color: var(--ds-skeleton-bg-color, var(--surface-secondary));--_skeleton-shimmer-color: var(--ds-skeleton-shimmer-color, var(--surface-muted));display:block;position:relative;overflow:hidden;background:var(--_skeleton-bg-color);border-radius:var(--radius-md)}:host(.circle){border-radius:var(--radius-pill)}:host(.inline){display:inline-block;vertical-align:middle}:host:after{content:\"\";position:absolute;inset:0;background:var(--_skeleton-shimmer-color);pointer-events:none;will-change:mask-position;-webkit-mask-image:linear-gradient(90deg,transparent 30%,#000 50%,transparent 70%);mask-image:linear-gradient(90deg,transparent 30%,#000 50%,transparent 70%);-webkit-mask-size:200vw 100%;mask-size:200vw 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;animation:ds-skeleton-shimmer-loop var(--duration-loop-slow, 1.4s) linear infinite}@keyframes ds-skeleton-shimmer-loop{0%{-webkit-mask-position:100vw 0;mask-position:100vw 0}to{-webkit-mask-position:-100vw 0;mask-position:-100vw 0}}\n"] });
14
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: SkeletonComponent, isStandalone: true, selector: "ds-skeleton", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" }, properties: { "style.width": "width()", "style.height": "height()", "class.circle": "circle()", "class.inline": "inline()" } }, ngImport: i0, template: '', isInline: true, styles: ["@charset \"UTF-8\";:host{--_skeleton-bg-color: var(--ds-skeleton-bg-color, var(--surface-secondary));--_skeleton-shimmer-color: var(--ds-skeleton-shimmer-color, var(--surface-muted));display:block;position:relative;overflow:hidden;background:var(--_skeleton-bg-color);border-radius:var(--radius-md)}:host(.circle){border-radius:var(--radius-pill)}:host(.inline){display:inline-block;vertical-align:middle}:host:after{content:\"\";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(100deg,transparent 0%,var(--_skeleton-shimmer-color) 42%,var(--_skeleton-shimmer-color) 58%,transparent 100%);background-attachment:fixed;background-size:100vw 100%;background-repeat:no-repeat;will-change:background-position;animation:ds-skeleton-shimmer-loop var(--duration-loop-slow, 1.4s) linear infinite}@keyframes ds-skeleton-shimmer-loop{0%{background-position:-100vw 0}to{background-position:100vw 0}}\n"] });
15
15
  }
16
16
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SkeletonComponent, decorators: [{
17
17
  type: Component,
@@ -21,7 +21,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
21
21
  '[style.height]': 'height()',
22
22
  '[class.circle]': 'circle()',
23
23
  '[class.inline]': 'inline()',
24
- }, encapsulation: ViewEncapsulation.Emulated, styles: ["@charset \"UTF-8\";:host{--_skeleton-bg-color: var(--ds-skeleton-bg-color, var(--surface-secondary));--_skeleton-shimmer-color: var(--ds-skeleton-shimmer-color, var(--surface-muted));display:block;position:relative;overflow:hidden;background:var(--_skeleton-bg-color);border-radius:var(--radius-md)}:host(.circle){border-radius:var(--radius-pill)}:host(.inline){display:inline-block;vertical-align:middle}:host:after{content:\"\";position:absolute;inset:0;background:var(--_skeleton-shimmer-color);pointer-events:none;will-change:mask-position;-webkit-mask-image:linear-gradient(90deg,transparent 30%,#000 50%,transparent 70%);mask-image:linear-gradient(90deg,transparent 30%,#000 50%,transparent 70%);-webkit-mask-size:200vw 100%;mask-size:200vw 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;animation:ds-skeleton-shimmer-loop var(--duration-loop-slow, 1.4s) linear infinite}@keyframes ds-skeleton-shimmer-loop{0%{-webkit-mask-position:100vw 0;mask-position:100vw 0}to{-webkit-mask-position:-100vw 0;mask-position:-100vw 0}}\n"] }]
24
+ }, encapsulation: ViewEncapsulation.Emulated, styles: ["@charset \"UTF-8\";:host{--_skeleton-bg-color: var(--ds-skeleton-bg-color, var(--surface-secondary));--_skeleton-shimmer-color: var(--ds-skeleton-shimmer-color, var(--surface-muted));display:block;position:relative;overflow:hidden;background:var(--_skeleton-bg-color);border-radius:var(--radius-md)}:host(.circle){border-radius:var(--radius-pill)}:host(.inline){display:inline-block;vertical-align:middle}:host:after{content:\"\";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(100deg,transparent 0%,var(--_skeleton-shimmer-color) 42%,var(--_skeleton-shimmer-color) 58%,transparent 100%);background-attachment:fixed;background-size:100vw 100%;background-repeat:no-repeat;will-change:background-position;animation:ds-skeleton-shimmer-loop var(--duration-loop-slow, 1.4s) linear infinite}@keyframes ds-skeleton-shimmer-loop{0%{background-position:-100vw 0}to{background-position:100vw 0}}\n"] }]
25
25
  }], propDecorators: { width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], circle: [{ type: i0.Input, args: [{ isSignal: true, alias: "circle", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }] } });
26
26
 
27
27
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-skeleton.mjs","sources":["../../../src/lib/components/skeleton/skeleton.component.ts","../../../src/lib/components/skeleton/ids-group-ltd-ids-design-system-components-skeleton.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'ds-skeleton',\n standalone: true,\n template: '',\n styleUrl: './skeleton.component.scss',\n host: {\n 'aria-hidden': 'true',\n '[style.width]': 'width()',\n '[style.height]': 'height()',\n '[class.circle]': 'circle()',\n '[class.inline]': 'inline()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SkeletonComponent {\n /** CSS width of the placeholder (e.g. `'120px'`, `'50%'`). */\n readonly width = input<string | undefined>(undefined);\n /** CSS height of the placeholder. */\n readonly height = input<string | undefined>(undefined);\n /** Pill radius, for avatar/dot-shaped placeholders. */\n readonly circle = input(false, { transform: booleanAttribute });\n /** `display: inline-block` instead of `block`, to sit inline with text. */\n readonly inline = input(false, { transform: booleanAttribute });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAqBa,iBAAiB,CAAA;;AAEnB,IAAA,KAAK,GAAG,KAAK,CAAqB,SAAS,4EAAC;;AAE5C,IAAA,MAAM,GAAG,KAAK,CAAqB,SAAS,6EAAC;;IAE7C,MAAM,GAAG,KAAK,CAAC,KAAK,8EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAEtD,MAAM,GAAG,KAAK,CAAC,KAAK,8EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGARpD,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,2uBAXlB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,ghCAAA,CAAA,EAAA,CAAA;;4FAWD,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAd7B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,UAAA,EACX,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,IAAA,EAEN;AACJ,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,eAAe,EAAE,SAAS;AAC1B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,gBAAgB,EAAE,UAAU;qBAC7B,EAAA,aAAA,EACc,iBAAiB,CAAC,QAAQ,EAAA,MAAA,EAAA,CAAA,ghCAAA,CAAA,EAAA;;;ACnB3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-skeleton.mjs","sources":["../../../src/lib/components/skeleton/skeleton.component.ts","../../../src/lib/components/skeleton/ids-group-ltd-ids-design-system-components-skeleton.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'ds-skeleton',\n standalone: true,\n template: '',\n styleUrl: './skeleton.component.scss',\n host: {\n 'aria-hidden': 'true',\n '[style.width]': 'width()',\n '[style.height]': 'height()',\n '[class.circle]': 'circle()',\n '[class.inline]': 'inline()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class SkeletonComponent {\n /** CSS width of the placeholder (e.g. `'120px'`, `'50%'`). */\n readonly width = input<string | undefined>(undefined);\n /** CSS height of the placeholder. */\n readonly height = input<string | undefined>(undefined);\n /** Pill radius, for avatar/dot-shaped placeholders. */\n readonly circle = input(false, { transform: booleanAttribute });\n /** `display: inline-block` instead of `block`, to sit inline with text. */\n readonly inline = input(false, { transform: booleanAttribute });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAqBa,iBAAiB,CAAA;;AAEnB,IAAA,KAAK,GAAG,KAAK,CAAqB,SAAS,4EAAC;;AAE5C,IAAA,MAAM,GAAG,KAAK,CAAqB,SAAS,6EAAC;;IAE7C,MAAM,GAAG,KAAK,CAAC,KAAK,8EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAEtD,MAAM,GAAG,KAAK,CAAC,KAAK,8EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGARpD,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,2uBAXlB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,y5BAAA,CAAA,EAAA,CAAA;;4FAWD,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAd7B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,UAAA,EACX,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,IAAA,EAEN;AACJ,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,eAAe,EAAE,SAAS;AAC1B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,gBAAgB,EAAE,UAAU;AAC5B,wBAAA,gBAAgB,EAAE,UAAU;qBAC7B,EAAA,aAAA,EACc,iBAAiB,CAAC,QAAQ,EAAA,MAAA,EAAA,CAAA,y5BAAA,CAAA,EAAA;;;ACnB3C;;AAEG;;;;"}
@@ -179,7 +179,7 @@ class SliderComponent extends DsControlValueAccessor {
179
179
  useExisting: forwardRef(() => SliderComponent),
180
180
  multi: true,
181
181
  },
182
- ], viewQueries: [{ propertyName: "track", first: true, predicate: ["track"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\"\n>\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\"\n >\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\"\n >\n </span>\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n", styles: [":host{--_slider-track-h: var(--ds-slider-track-h, var(--slider-track-h));--_slider-thumb-size: var(--ds-slider-thumb-size, var(--slider-thumb-size));--_slider-thumb-bw: var(--ds-slider-thumb-bw, var(--slider-thumb-bw));--_slider-fill-color: var(--ds-slider-fill-color, var(--accent));--_slider-track-color: var(--ds-slider-track-color, var(--surface-muted));--_slider-thumb-color: var(--ds-slider-thumb-color, var(--surface-default));--_slider-thumb-border-color: var(--ds-slider-thumb-border-color, var(--accent));display:flex;flex-direction:column;padding-block:calc((var(--_slider-thumb-size) - var(--_slider-track-h)) / 2);gap:calc((var(--_slider-thumb-size) - var(--_slider-track-h)) / 2 + var(--space-1-5))}.track{position:relative;height:var(--_slider-track-h);background-color:var(--_slider-track-color);border-radius:var(--radius-pill);cursor:pointer;touch-action:none}.fill{position:absolute;top:0;height:100%;background-color:var(--_slider-fill-color);border-radius:var(--radius-pill)}.thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--_slider-thumb-size);height:var(--_slider-thumb-size);border-radius:var(--radius-pill);background-color:var(--_slider-thumb-color);border:var(--_slider-thumb-bw) solid var(--_slider-thumb-border-color);box-shadow:var(--shadow-card);cursor:grab;touch-action:none}.thumb:focus-visible{outline:none;box-shadow:var(--accent-focus-ring)}.thumb:active{cursor:grabbing}:host(.disabled) .track{cursor:not-allowed}:host(.disabled) .fill{background-color:var(--border-strong)}:host(.disabled) .thumb{border-color:var(--border-strong);cursor:not-allowed}:host(.invalid) .fill{background-color:var(--error)}:host(.invalid) .thumb{border-color:var(--error)}\n"], dependencies: [{ kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve"] }] });
182
+ ], viewQueries: [{ propertyName: "track", first: true, predicate: ["track"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\">\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\">\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\">\n </span>\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\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{--_slider-track-h: var(--ds-slider-track-h, var(--slider-track-h));--_slider-thumb-size: var(--ds-slider-thumb-size, var(--slider-thumb-size));--_slider-thumb-bw: var(--ds-slider-thumb-bw, var(--slider-thumb-bw));--_slider-fill-color: var(--ds-slider-fill-color, var(--accent));--_slider-track-color: var(--ds-slider-track-color, var(--surface-muted));--_slider-thumb-color: var(--ds-slider-thumb-color, var(--surface-default));--_slider-thumb-border-color: var(--ds-slider-thumb-border-color, var(--accent));display:flex;flex-direction:column;padding-block:calc((var(--_slider-thumb-size) - var(--_slider-track-h)) / 2);gap:calc((var(--_slider-thumb-size) - var(--_slider-track-h)) / 2 + var(--space-1-5))}.track{position:relative;height:var(--_slider-track-h);background-color:var(--_slider-track-color);border-radius:var(--radius-pill);cursor:pointer;touch-action:none}.fill{position:absolute;top:0;height:100%;background-color:var(--_slider-fill-color);border-radius:var(--radius-pill)}.thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--_slider-thumb-size);height:var(--_slider-thumb-size);border-radius:var(--radius-pill);background-color:var(--_slider-thumb-color);border:var(--_slider-thumb-bw) solid var(--_slider-thumb-border-color);box-shadow:var(--shadow-card);cursor:grab;touch-action:none}.thumb: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)}.thumb:active{cursor:grabbing}:host(.disabled) .track{cursor:not-allowed}:host(.disabled) .fill{background-color:var(--border-strong)}:host(.disabled) .thumb{border-color:var(--border-strong);cursor:not-allowed}:host(.invalid) .fill{background-color:var(--error)}:host(.invalid) .thumb{border-color:var(--error)}\n"], dependencies: [{ kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve"] }] });
183
183
  }
184
184
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SliderComponent, decorators: [{
185
185
  type: Component,
@@ -193,7 +193,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
193
193
  '[class.range]': 'range()',
194
194
  '[class.disabled]': 'isDisabled()',
195
195
  '[class.invalid]': 'invalidResolved()',
196
- }, template: "<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\"\n>\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\"\n >\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\"\n >\n </span>\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n", styles: [":host{--_slider-track-h: var(--ds-slider-track-h, var(--slider-track-h));--_slider-thumb-size: var(--ds-slider-thumb-size, var(--slider-thumb-size));--_slider-thumb-bw: var(--ds-slider-thumb-bw, var(--slider-thumb-bw));--_slider-fill-color: var(--ds-slider-fill-color, var(--accent));--_slider-track-color: var(--ds-slider-track-color, var(--surface-muted));--_slider-thumb-color: var(--ds-slider-thumb-color, var(--surface-default));--_slider-thumb-border-color: var(--ds-slider-thumb-border-color, var(--accent));display:flex;flex-direction:column;padding-block:calc((var(--_slider-thumb-size) - var(--_slider-track-h)) / 2);gap:calc((var(--_slider-thumb-size) - var(--_slider-track-h)) / 2 + var(--space-1-5))}.track{position:relative;height:var(--_slider-track-h);background-color:var(--_slider-track-color);border-radius:var(--radius-pill);cursor:pointer;touch-action:none}.fill{position:absolute;top:0;height:100%;background-color:var(--_slider-fill-color);border-radius:var(--radius-pill)}.thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--_slider-thumb-size);height:var(--_slider-thumb-size);border-radius:var(--radius-pill);background-color:var(--_slider-thumb-color);border:var(--_slider-thumb-bw) solid var(--_slider-thumb-border-color);box-shadow:var(--shadow-card);cursor:grab;touch-action:none}.thumb:focus-visible{outline:none;box-shadow:var(--accent-focus-ring)}.thumb:active{cursor:grabbing}:host(.disabled) .track{cursor:not-allowed}:host(.disabled) .fill{background-color:var(--border-strong)}:host(.disabled) .thumb{border-color:var(--border-strong);cursor:not-allowed}:host(.invalid) .fill{background-color:var(--error)}:host(.invalid) .thumb{border-color:var(--error)}\n"] }]
196
+ }, template: "<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\">\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\">\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\">\n </span>\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\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{--_slider-track-h: var(--ds-slider-track-h, var(--slider-track-h));--_slider-thumb-size: var(--ds-slider-thumb-size, var(--slider-thumb-size));--_slider-thumb-bw: var(--ds-slider-thumb-bw, var(--slider-thumb-bw));--_slider-fill-color: var(--ds-slider-fill-color, var(--accent));--_slider-track-color: var(--ds-slider-track-color, var(--surface-muted));--_slider-thumb-color: var(--ds-slider-thumb-color, var(--surface-default));--_slider-thumb-border-color: var(--ds-slider-thumb-border-color, var(--accent));display:flex;flex-direction:column;padding-block:calc((var(--_slider-thumb-size) - var(--_slider-track-h)) / 2);gap:calc((var(--_slider-thumb-size) - var(--_slider-track-h)) / 2 + var(--space-1-5))}.track{position:relative;height:var(--_slider-track-h);background-color:var(--_slider-track-color);border-radius:var(--radius-pill);cursor:pointer;touch-action:none}.fill{position:absolute;top:0;height:100%;background-color:var(--_slider-fill-color);border-radius:var(--radius-pill)}.thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--_slider-thumb-size);height:var(--_slider-thumb-size);border-radius:var(--radius-pill);background-color:var(--_slider-thumb-color);border:var(--_slider-thumb-bw) solid var(--_slider-thumb-border-color);box-shadow:var(--shadow-card);cursor:grab;touch-action:none}.thumb: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)}.thumb:active{cursor:grabbing}:host(.disabled) .track{cursor:not-allowed}:host(.disabled) .fill{background-color:var(--border-strong)}:host(.disabled) .thumb{border-color:var(--border-strong);cursor:not-allowed}:host(.invalid) .fill{background-color:var(--error)}:host(.invalid) .thumb{border-color:var(--error)}\n"] }]
197
197
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], range: [{ type: i0.Input, args: [{ isSignal: true, alias: "range", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], track: [{ type: i0.ViewChild, args: ['track', { isSignal: true }] }] } });
198
198
 
199
199
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-slider.mjs","sources":["../../../src/lib/components/slider/slider.component.ts","../../../src/lib/components/slider/slider.component.html","../../../src/lib/components/slider/ids-group-ltd-ids-design-system-components-slider.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n numberAttribute,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';\nimport { resolveFieldMessage } from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\n\ntype SliderValue = number | readonly [number, number];\n\n@Component({\n selector: 'ds-slider',\n standalone: true,\n imports: [FieldMessageComponent],\n templateUrl: './slider.component.html',\n styleUrl: './slider.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SliderComponent),\n multi: true,\n },\n ],\n host: {\n '[class.range]': 'range()',\n '[class.disabled]': 'isDisabled()',\n '[class.invalid]': 'invalidResolved()',\n },\n})\nexport class SliderComponent extends DsControlValueAccessor<SliderValue> {\n /** Current value, or `[low, high]` when `range`. Two-way bound. */\n readonly value = model<SliderValue>(0);\n /** Minimum selectable value. */\n readonly min = input(0, { transform: numberAttribute });\n /** Maximum selectable value. */\n readonly max = input(100, { transform: numberAttribute });\n /** Increment applied when dragging (snap) or nudging with arrow keys. */\n readonly step = input(1, { transform: numberAttribute });\n /** Two-thumb range mode — `value` becomes a `[low, high]` tuple. */\n readonly range = input(false, { transform: booleanAttribute });\n /** Disables the slider and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Accessible name for the thumb(s) — suffixed \"minimum\"/\"maximum\" in `range` mode. */\n readonly ariaLabel = input<string | null>(null);\n\n private readonly track = viewChild.required<ElementRef<HTMLElement>>('track');\n private dragging = -1;\n\n protected readonly uid = nextControlId('ds-slider');\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly thumbValues = computed<number[]>(() => {\n const value = this.value();\n if (this.range()) {\n const [low, high] = value as readonly [number, number];\n\n return [low, high];\n }\n\n return [value as number];\n });\n\n protected readonly fill = computed<{ left: number; width: number }>(() => {\n const values = this.thumbValues();\n if (this.range()) {\n const low = this.percent(values[0]);\n const high = this.percent(values[1]);\n\n return { left: low, width: high - low };\n }\n\n return { left: 0, width: this.percent(values[0]) };\n });\n\n protected percent(value: number): number {\n const min = this.min();\n const max = this.max();\n\n return max === min ? 0 : ((value - min) / (max - min)) * 100;\n }\n\n protected thumbMin(index: number): number {\n return this.range() && index === 1 ? this.thumbValues()[0] : this.min();\n }\n\n protected thumbMax(index: number): number {\n return this.range() && index === 0 ? this.thumbValues()[1] : this.max();\n }\n\n protected onTrackPointerDown(event: PointerEvent): void {\n if (this.isDisabled()) {\n return;\n }\n const track = this.track().nativeElement;\n track.setPointerCapture(event.pointerId);\n this.dragging = this.nearestThumb(event.clientX);\n this.updateFromClientX(event.clientX);\n track.querySelectorAll<HTMLElement>('.thumb')[this.dragging]?.focus();\n }\n\n protected onTrackPointerMove(event: PointerEvent): void {\n if (this.dragging < 0) {\n return;\n }\n this.updateFromClientX(event.clientX);\n }\n\n // Bound to both pointerup and pointercancel — touch interventions (scroll\n // takeover, stylus lift) fire pointercancel, and without it the drag state\n // would leak and keep moving the thumb with no pointer down.\n protected onTrackPointerUp(event: PointerEvent): void {\n if (this.dragging < 0) {\n return;\n }\n const track = this.track().nativeElement;\n if (track.hasPointerCapture(event.pointerId)) {\n track.releasePointerCapture(event.pointerId);\n }\n this.dragging = -1;\n this.markTouched();\n }\n\n protected thumbAriaLabel(index: number): string | null {\n const base = this.ariaLabel();\n if (!this.range()) {\n return base;\n }\n if (index === 0) {\n return base ? `${base} minimum` : 'Minimum';\n }\n\n return base ? `${base} maximum` : 'Maximum';\n }\n\n protected onThumbKeydown(event: KeyboardEvent, index: number): void {\n if (this.isDisabled()) {\n return;\n }\n const step = this.step() || 1;\n let delta = 0;\n let absolute: number | null = null;\n switch (event.key) {\n case 'ArrowRight':\n case 'ArrowUp':\n delta = step;\n break;\n case 'ArrowLeft':\n case 'ArrowDown':\n delta = -step;\n break;\n case 'PageUp':\n delta = step * 10;\n break;\n case 'PageDown':\n delta = -step * 10;\n break;\n case 'Home':\n absolute = this.thumbMin(index);\n break;\n case 'End':\n absolute = this.thumbMax(index);\n break;\n default:\n return;\n }\n event.preventDefault();\n const current = this.thumbValues()[index];\n this.setThumb(index, absolute ?? this.snap(current + delta));\n }\n\n private nearestThumb(clientX: number): number {\n if (!this.range()) {\n return 0;\n }\n const value = this.valueFromClientX(clientX);\n const [low, high] = this.thumbValues();\n\n return Math.abs(value - low) <= Math.abs(value - high) ? 0 : 1;\n }\n\n private updateFromClientX(clientX: number): void {\n this.setThumb(this.dragging, this.snap(this.valueFromClientX(clientX)));\n }\n\n private valueFromClientX(clientX: number): number {\n const rect = this.track().nativeElement.getBoundingClientRect();\n if (rect.width === 0) {\n return this.min();\n }\n const ratio = Math.min(1, Math.max(0, (clientX - rect.left) / rect.width));\n\n return this.min() + ratio * (this.max() - this.min());\n }\n\n private setThumb(index: number, next: number): void {\n if (this.range()) {\n const [low, high] = this.thumbValues();\n this.value.set(\n index === 0 ? [Math.min(next, high), high] : [low, Math.max(next, low)],\n );\n } else {\n this.value.set(next);\n }\n }\n\n private snap(raw: number): number {\n const step = this.step() || 1;\n const min = this.min();\n const snapped = Math.round((raw - min) / step) * step + min;\n\n return Math.min(this.max(), Math.max(min, snapped));\n }\n}\n","<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\"\n>\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\"\n >\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\"\n >\n </span>\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n/>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAwCM,MAAO,eAAgB,SAAQ,sBAAmC,CAAA;;AAE7D,IAAA,KAAK,GAAG,KAAK,CAAc,CAAC,4EAAC;;IAE7B,GAAG,GAAG,KAAK,CAAC,CAAC,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAE9C,GAAG,GAAG,KAAK,CAAC,GAAG,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAEhD,IAAI,GAAG,KAAK,CAAC,CAAC,4EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAE/C,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAErD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFA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A,EAAA,CAAA,OAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECjCH,8sCA0CA,+uDDnBY,qBAAqB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,WAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAiBpB,eAAe,EAAA,UAAA,EAAA,CAAA;kBApB3B,SAAS;+BACE,WAAW,EAAA,UAAA,EACT,IAAI,EAAA,OAAA,EACP,CAAC,qBAAqB,CAAC,EAAA,aAAA,EAGjB,iBAAiB,CAAC,QAAQ,EAAA,SAAA,EAC9B;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,qBAAqB,CAAC;AAC9C,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;qBACF,EAAA,IAAA,EACK;AACJ,wBAAA,eAAe,EAAE,SAAS;AAC1B,wBAAA,kBAAkB,EAAE,cAAc;AAClC,wBAAA,iBAAiB,EAAE,mBAAmB;AACvC,qBAAA,EAAA,QAAA,EAAA,8sCAAA,EAAA,MAAA,EAAA,CAAA,urDAAA,CAAA,EAAA;yuBAkBoE,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AExD9E;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-slider.mjs","sources":["../../../src/lib/components/slider/slider.component.ts","../../../src/lib/components/slider/slider.component.html","../../../src/lib/components/slider/ids-group-ltd-ids-design-system-components-slider.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n numberAttribute,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';\nimport { resolveFieldMessage } from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\n\ntype SliderValue = number | readonly [number, number];\n\n@Component({\n selector: 'ds-slider',\n standalone: true,\n imports: [FieldMessageComponent],\n templateUrl: './slider.component.html',\n styleUrl: './slider.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SliderComponent),\n multi: true,\n },\n ],\n host: {\n '[class.range]': 'range()',\n '[class.disabled]': 'isDisabled()',\n '[class.invalid]': 'invalidResolved()',\n },\n})\nexport class SliderComponent extends DsControlValueAccessor<SliderValue> {\n /** Current value, or `[low, high]` when `range`. Two-way bound. */\n readonly value = model<SliderValue>(0);\n /** Minimum selectable value. */\n readonly min = input(0, { transform: numberAttribute });\n /** Maximum selectable value. */\n readonly max = input(100, { transform: numberAttribute });\n /** Increment applied when dragging (snap) or nudging with arrow keys. */\n readonly step = input(1, { transform: numberAttribute });\n /** Two-thumb range mode — `value` becomes a `[low, high]` tuple. */\n readonly range = input(false, { transform: booleanAttribute });\n /** Disables the slider and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Accessible name for the thumb(s) — suffixed \"minimum\"/\"maximum\" in `range` mode. */\n readonly ariaLabel = input<string | null>(null);\n\n private readonly track = viewChild.required<ElementRef<HTMLElement>>('track');\n private dragging = -1;\n\n protected readonly uid = nextControlId('ds-slider');\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly thumbValues = computed<number[]>(() => {\n const value = this.value();\n if (this.range()) {\n const [low, high] = value as readonly [number, number];\n\n return [low, high];\n }\n\n return [value as number];\n });\n\n protected readonly fill = computed<{ left: number; width: number }>(() => {\n const values = this.thumbValues();\n if (this.range()) {\n const low = this.percent(values[0]);\n const high = this.percent(values[1]);\n\n return { left: low, width: high - low };\n }\n\n return { left: 0, width: this.percent(values[0]) };\n });\n\n protected percent(value: number): number {\n const min = this.min();\n const max = this.max();\n\n return max === min ? 0 : ((value - min) / (max - min)) * 100;\n }\n\n protected thumbMin(index: number): number {\n return this.range() && index === 1 ? this.thumbValues()[0] : this.min();\n }\n\n protected thumbMax(index: number): number {\n return this.range() && index === 0 ? this.thumbValues()[1] : this.max();\n }\n\n protected onTrackPointerDown(event: PointerEvent): void {\n if (this.isDisabled()) {\n return;\n }\n const track = this.track().nativeElement;\n track.setPointerCapture(event.pointerId);\n this.dragging = this.nearestThumb(event.clientX);\n this.updateFromClientX(event.clientX);\n track.querySelectorAll<HTMLElement>('.thumb')[this.dragging]?.focus();\n }\n\n protected onTrackPointerMove(event: PointerEvent): void {\n if (this.dragging < 0) {\n return;\n }\n this.updateFromClientX(event.clientX);\n }\n\n // Bound to both pointerup and pointercancel — touch interventions (scroll\n // takeover, stylus lift) fire pointercancel, and without it the drag state\n // would leak and keep moving the thumb with no pointer down.\n protected onTrackPointerUp(event: PointerEvent): void {\n if (this.dragging < 0) {\n return;\n }\n const track = this.track().nativeElement;\n if (track.hasPointerCapture(event.pointerId)) {\n track.releasePointerCapture(event.pointerId);\n }\n this.dragging = -1;\n this.markTouched();\n }\n\n protected thumbAriaLabel(index: number): string | null {\n const base = this.ariaLabel();\n if (!this.range()) {\n return base;\n }\n if (index === 0) {\n return base ? `${base} minimum` : 'Minimum';\n }\n\n return base ? `${base} maximum` : 'Maximum';\n }\n\n protected onThumbKeydown(event: KeyboardEvent, index: number): void {\n if (this.isDisabled()) {\n return;\n }\n const step = this.step() || 1;\n let delta = 0;\n let absolute: number | null = null;\n switch (event.key) {\n case 'ArrowRight':\n case 'ArrowUp':\n delta = step;\n break;\n case 'ArrowLeft':\n case 'ArrowDown':\n delta = -step;\n break;\n case 'PageUp':\n delta = step * 10;\n break;\n case 'PageDown':\n delta = -step * 10;\n break;\n case 'Home':\n absolute = this.thumbMin(index);\n break;\n case 'End':\n absolute = this.thumbMax(index);\n break;\n default:\n return;\n }\n event.preventDefault();\n const current = this.thumbValues()[index];\n this.setThumb(index, absolute ?? this.snap(current + delta));\n }\n\n private nearestThumb(clientX: number): number {\n if (!this.range()) {\n return 0;\n }\n const value = this.valueFromClientX(clientX);\n const [low, high] = this.thumbValues();\n\n return Math.abs(value - low) <= Math.abs(value - high) ? 0 : 1;\n }\n\n private updateFromClientX(clientX: number): void {\n this.setThumb(this.dragging, this.snap(this.valueFromClientX(clientX)));\n }\n\n private valueFromClientX(clientX: number): number {\n const rect = this.track().nativeElement.getBoundingClientRect();\n if (rect.width === 0) {\n return this.min();\n }\n const ratio = Math.min(1, Math.max(0, (clientX - rect.left) / rect.width));\n\n return this.min() + ratio * (this.max() - this.min());\n }\n\n private setThumb(index: number, next: number): void {\n if (this.range()) {\n const [low, high] = this.thumbValues();\n this.value.set(\n index === 0 ? [Math.min(next, high), high] : [low, Math.max(next, low)],\n );\n } else {\n this.value.set(next);\n }\n }\n\n private snap(raw: number): number {\n const step = this.step() || 1;\n const min = this.min();\n const snapped = Math.round((raw - min) / step) * step + min;\n\n return Math.min(this.max(), Math.max(min, snapped));\n }\n}\n","<div\n #track\n class=\"track\"\n (pointerdown)=\"onTrackPointerDown($event)\"\n (pointermove)=\"onTrackPointerMove($event)\"\n (pointerup)=\"onTrackPointerUp($event)\"\n (pointercancel)=\"onTrackPointerUp($event)\">\n <span\n class=\"fill\"\n [style.left.%]=\"fill().left\"\n [style.width.%]=\"fill().width\">\n </span>\n\n @for (thumbValue of thumbValues(); track $index; let i = $index) {\n <span\n class=\"thumb\"\n role=\"slider\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [style.left.%]=\"percent(thumbValue)\"\n [attr.aria-valuemin]=\"thumbMin(i)\"\n [attr.aria-valuemax]=\"thumbMax(i)\"\n [attr.aria-valuenow]=\"thumbValue\"\n [attr.aria-orientation]=\"'horizontal'\"\n [attr.aria-label]=\"thumbAriaLabel(i)\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (keydown)=\"onThumbKeydown($event, i)\">\n </span>\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAwCM,MAAO,eAAgB,SAAQ,sBAAmC,CAAA;;AAE7D,IAAA,KAAK,GAAG,KAAK,CAAc,CAAC,4EAAC;;IAE7B,GAAG,GAAG,KAAK,CAAC,CAAC,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAE9C,GAAG,GAAG,KAAK,CAAC,GAAG,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAEhD,IAAI,GAAG,KAAK,CAAC,CAAC,4EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;IAE/C,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAErD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,IAAA,SAAS,GAAG,KAAK,CAAgB,IAAI,gFAAC;AAE9B,IAAA,KAAK,GAAG,SAAS,CAAC,QAAQ,CAA0B,OAAO,CAAC;IACrE,QAAQ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uFDfY,qBAAqB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,WAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAiBpB,eAAe,EAAA,UAAA,EAAA,CAAA;kBApB3B,SAAS;+BACE,WAAW,EAAA,UAAA,EACT,IAAI,EAAA,OAAA,EACP,CAAC,qBAAqB,CAAC,EAAA,aAAA,EAGjB,iBAAiB,CAAC,QAAQ,EAAA,SAAA,EAC9B;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,qBAAqB,CAAC;AAC9C,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;qBACF,EAAA,IAAA,EACK;AACJ,wBAAA,eAAe,EAAE,SAAS;AAC1B,wBAAA,kBAAkB,EAAE,cAAc;AAClC,wBAAA,iBAAiB,EAAE,mBAAmB;AACvC,qBAAA,EAAA,QAAA,EAAA,isCAAA,EAAA,MAAA,EAAA,CAAA,qrFAAA,CAAA,EAAA;yuBAkBoE,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AExD9E;;AAEG;;;;"}
@@ -1,10 +1,20 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, booleanAttribute, output, ViewEncapsulation, Component } from '@angular/core';
3
3
  import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
4
+ import { devWarn } from '@ids-group-ltd/ids-design-system/core';
4
5
  import { MenuComponent, MenuItemComponent } from '@ids-group-ltd/ids-design-system/components/menu';
5
6
  import { PopoverComponent } from '@ids-group-ltd/ids-design-system/components/popover';
6
7
 
7
8
  class SplitButtonComponent {
9
+ constructor() {
10
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
11
+ devWarn(() => this.menuItems().length
12
+ ? null
13
+ : '[ds-split-button] has no `menuItems`, so the chevron is disabled — a chevron that opens' +
14
+ ' nothing reads as a broken control. Pass the items, or use `ds-button` for a single' +
15
+ ' action.');
16
+ }
17
+ }
8
18
  /** Label text on the main button. */
9
19
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
10
20
  /** Visual style — primary (solid) or outline. */
@@ -13,13 +23,13 @@ class SplitButtonComponent {
13
23
  icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
14
24
  /** Disables both the main button and the dropdown trigger. */
15
25
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
16
- /** Items listed in the dropdown menu. */
26
+ /** Items listed in the dropdown menu. Empty disables the chevron. */
17
27
  menuItems = input([], ...(ngDevMode ? [{ debugName: "menuItems" }] : /* istanbul ignore next */ []));
18
28
  /** Accessible name for the dropdown trigger. */
19
29
  menuLabel = input('More actions', ...(ngDevMode ? [{ debugName: "menuLabel" }] : /* istanbul ignore next */ []));
20
30
  /** Fires when the main button (not the dropdown trigger) is clicked. */
21
31
  pressed = output();
22
- /** Fires with the chosen menu item. */
32
+ /** The menu half only — a press on the main button is `pressed`, never this. */
23
33
  itemSelected = output();
24
34
  onItemSelect(item) {
25
35
  if (item.disabled) {
@@ -35,15 +45,15 @@ class SplitButtonComponent {
35
45
  }
36
46
  }
37
47
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SplitButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
38
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SplitButtonComponent, isStandalone: true, selector: "ds-split-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, menuItems: { classPropertyName: "menuItems", publicName: "menuItems", isSignal: true, isRequired: false, transformFunction: null }, menuLabel: { classPropertyName: "menuLabel", publicName: "menuLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pressed: "pressed", itemSelected: "itemSelected" }, host: { properties: { "class.primary": "variant() === 'primary'", "class.outline": "variant() === 'outline'" } }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"main\"\n [disabled]=\"disabled()\"\n (click)=\"pressed.emit($event)\"\n>\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"18\"\n />\n }\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n\n <ng-content></ng-content>\n</button>\n\n<button\n #trigger\n type=\"button\"\n class=\"toggle\"\n aria-haspopup=\"menu\"\n [class.open]=\"pop.opened()\"\n [attr.aria-expanded]=\"pop.opened()\"\n [attr.aria-label]=\"menuLabel()\"\n [disabled]=\"disabled()\"\n (click)=\"pop.toggle(trigger)\"\n (keydown)=\"onTriggerKeydown($event, pop, trigger)\"\n>\n <ds-icon\n class=\"chevron\"\n name=\"chevronDown\"\n [size]=\"18\"\n />\n</button>\n\n<ds-popover\n #pop\n align=\"end\"\n panelRole=\"presentation\"\n>\n <ds-menu>\n @for (item of menuItems(); track item) {\n <ds-menu-item\n [icon]=\"item.icon ?? null\"\n [disabled]=\"item.disabled ?? false\"\n [error]=\"item.error ?? false\"\n (pressed)=\"onItemSelect(item)\"\n >\n {{ item.label }}\n </ds-menu-item>\n }\n </ds-menu>\n</ds-popover>\n", styles: ["@charset \"UTF-8\";:host{display:inline-flex;--_split-button-bg-color: var(--ds-split-button-bg-color, var(--accent));--_split-button-text-color: var(--ds-split-button-text-color, var(--accent-on));--_split-button-bg-hover-color: var(--ds-split-button-bg-hover-color, var(--accent-hover));--_split-button-divider-color: var(--ds-split-button-divider-color, var(--btn-split-divider));--_split-button-outline-bg-color: var(--ds-split-button-outline-bg-color, transparent);--_split-button-outline-border-color: var(--ds-split-button-outline-border-color, var(--border-default))}.main,.toggle{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);border:var(--border-width-default) solid transparent;background:transparent;font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);cursor:pointer;position:relative;transition:background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard)}.main:focus-visible,.toggle:focus-visible{outline:none;box-shadow:var(--accent-focus-ring);z-index:var(--btn-group-focus-z)}.main:disabled,.toggle:disabled{background:var(--surface-muted);border-color:var(--border-divider);color:var(--text-disabled);cursor:not-allowed}.main{padding:0 var(--space-4);border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.toggle{padding:0 var(--space-2);margin-left:var(--btn-group-overlap);border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.chevron{transition:transform var(--duration-fast) var(--ease-standard)}.toggle.open .chevron{transform:rotate(180deg)}:host(.primary) .main:not(:disabled),:host(.primary) .toggle:not(:disabled){background:var(--_split-button-bg-color);color:var(--_split-button-text-color)}:host(.primary) .main:not(:disabled):hover,:host(.primary) .toggle:not(:disabled):hover{background:var(--_split-button-bg-hover-color)}:host(.primary) .toggle:not(:disabled){border-left:var(--border-width-default) solid var(--_split-button-divider-color)}:host(.outline) .main:not(:disabled),:host(.outline) .toggle:not(:disabled){background:var(--_split-button-outline-bg-color);border-color:var(--_split-button-outline-border-color);color:var(--text-primary)}:host(.outline) .main:not(:disabled):hover,:host(.outline) .toggle:not(:disabled):hover{background:var(--surface-secondary)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: MenuComponent, selector: "ds-menu" }, { kind: "component", type: MenuItemComponent, selector: "ds-menu-item", inputs: ["icon", "disabled", "error", "quiet", "description", "submenu"], outputs: ["pressed"] }, { kind: "component", type: PopoverComponent, selector: "ds-popover", inputs: ["align", "placement", "arrow", "panelRole", "panelLabel"] }] });
48
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SplitButtonComponent, isStandalone: true, selector: "ds-split-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, menuItems: { classPropertyName: "menuItems", publicName: "menuItems", isSignal: true, isRequired: false, transformFunction: null }, menuLabel: { classPropertyName: "menuLabel", publicName: "menuLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pressed: "pressed", itemSelected: "itemSelected" }, host: { properties: { "class.primary": "variant() === 'primary'", "class.outline": "variant() === 'outline'" } }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"main\"\n [disabled]=\"disabled()\"\n (click)=\"pressed.emit($event)\">\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"18\" />\n }\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n\n <ng-content></ng-content>\n</button>\n\n<button\n #trigger\n type=\"button\"\n class=\"toggle\"\n aria-haspopup=\"menu\"\n [class.open]=\"pop.opened()\"\n [attr.aria-expanded]=\"pop.opened()\"\n [attr.aria-label]=\"menuLabel()\"\n [disabled]=\"disabled() || !menuItems().length\"\n (click)=\"pop.toggle(trigger)\"\n (keydown)=\"onTriggerKeydown($event, pop, trigger)\">\n <ds-icon\n class=\"chevron\"\n name=\"chevronDown\"\n [size]=\"18\" />\n</button>\n\n<ds-popover\n #pop\n align=\"end\"\n panelRole=\"presentation\">\n <ds-menu>\n @for (item of menuItems(); track item) {\n <ds-menu-item\n [icon]=\"item.icon ?? null\"\n [disabled]=\"item.disabled ?? false\"\n [error]=\"item.error ?? false\"\n (pressed)=\"onItemSelect(item)\">\n {{ item.label }}\n </ds-menu-item>\n }\n </ds-menu>\n</ds-popover>\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{display:inline-flex;--_split-button-bg-color: var(--ds-split-button-bg-color, var(--accent));--_split-button-text-color: var(--ds-split-button-text-color, var(--accent-on));--_split-button-bg-hover-color: var(--ds-split-button-bg-hover-color, var(--accent-hover));--_split-button-divider-color: var(--ds-split-button-divider-color, var(--btn-split-divider));--_split-button-outline-bg-color: var(--ds-split-button-outline-bg-color, transparent);--_split-button-outline-border-color: var(--ds-split-button-outline-border-color, var(--border-default));--_split-button-bg-color-active: var(--ds-split-button-bg-color-active, color-mix(in srgb, var(--_split-button-bg-color) 76%, black));--_split-button-outline-bg-color-active: var(--ds-split-button-outline-bg-color-active, var(--surface-muted));--_split-button-press-scale: var(--ds-split-button-press-scale, .98);--_split-button-pressed-shadow: var(--ds-split-button-pressed-shadow, none)}.main,.toggle{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);border:var(--border-width-default) solid transparent;background:transparent;font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);cursor:pointer;position:relative;transition:background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard),transform var(--duration-instant) var(--ease-standard)}.main:active:not(:disabled),.toggle:active:not(:disabled){box-shadow:var(--_split-button-pressed-shadow);transform:scale(var(--_split-button-press-scale))}.main:focus-visible,.toggle: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);z-index:var(--btn-group-focus-z)}.main:disabled,.toggle:disabled{background:var(--surface-muted);border-color:var(--border-divider);color:var(--text-disabled);cursor:not-allowed}.main{padding:0 var(--space-4);border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md);transform-origin:right center}.toggle{padding:0 var(--space-2);margin-left:var(--btn-group-overlap);border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md);transform-origin:left center}.chevron{transition:transform var(--duration-fast) var(--ease-standard)}.toggle.open .chevron{transform:rotate(180deg)}:host(.primary) .main:not(:disabled),:host(.primary) .toggle:not(:disabled){background:var(--_split-button-bg-color);color:var(--_split-button-text-color)}:host(.primary) .main:not(:disabled):hover,:host(.primary) .toggle:not(:disabled):hover{background:var(--_split-button-bg-hover-color)}:host(.primary) .main:not(:disabled):active,:host(.primary) .toggle:not(:disabled):active{background:var(--_split-button-bg-color-active)}:host(.primary) .toggle:not(:disabled){border-left:var(--border-width-default) solid var(--_split-button-divider-color)}:host(.outline) .main:not(:disabled),:host(.outline) .toggle:not(:disabled){background:var(--_split-button-outline-bg-color);border-color:var(--_split-button-outline-border-color);color:var(--text-primary)}:host(.outline) .main:not(:disabled):hover,:host(.outline) .toggle:not(:disabled):hover{background:var(--surface-secondary)}:host(.outline) .main:not(:disabled):active,:host(.outline) .toggle:not(:disabled):active{background:var(--_split-button-outline-bg-color-active)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: MenuComponent, selector: "ds-menu" }, { kind: "component", type: MenuItemComponent, selector: "ds-menu-item", inputs: ["icon", "disabled", "error", "quiet", "description", "submenu"], outputs: ["pressed"] }, { kind: "component", type: PopoverComponent, selector: "ds-popover", inputs: ["align", "placement", "arrow", "panelRole", "panelLabel"] }] });
39
49
  }
40
50
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SplitButtonComponent, decorators: [{
41
51
  type: Component,
42
52
  args: [{ selector: 'ds-split-button', standalone: true, imports: [IconComponent, MenuComponent, MenuItemComponent, PopoverComponent], encapsulation: ViewEncapsulation.Emulated, host: {
43
53
  '[class.primary]': "variant() === 'primary'",
44
54
  '[class.outline]': "variant() === 'outline'",
45
- }, template: "<button\n type=\"button\"\n class=\"main\"\n [disabled]=\"disabled()\"\n (click)=\"pressed.emit($event)\"\n>\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"18\"\n />\n }\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n\n <ng-content></ng-content>\n</button>\n\n<button\n #trigger\n type=\"button\"\n class=\"toggle\"\n aria-haspopup=\"menu\"\n [class.open]=\"pop.opened()\"\n [attr.aria-expanded]=\"pop.opened()\"\n [attr.aria-label]=\"menuLabel()\"\n [disabled]=\"disabled()\"\n (click)=\"pop.toggle(trigger)\"\n (keydown)=\"onTriggerKeydown($event, pop, trigger)\"\n>\n <ds-icon\n class=\"chevron\"\n name=\"chevronDown\"\n [size]=\"18\"\n />\n</button>\n\n<ds-popover\n #pop\n align=\"end\"\n panelRole=\"presentation\"\n>\n <ds-menu>\n @for (item of menuItems(); track item) {\n <ds-menu-item\n [icon]=\"item.icon ?? null\"\n [disabled]=\"item.disabled ?? false\"\n [error]=\"item.error ?? false\"\n (pressed)=\"onItemSelect(item)\"\n >\n {{ item.label }}\n </ds-menu-item>\n }\n </ds-menu>\n</ds-popover>\n", styles: ["@charset \"UTF-8\";:host{display:inline-flex;--_split-button-bg-color: var(--ds-split-button-bg-color, var(--accent));--_split-button-text-color: var(--ds-split-button-text-color, var(--accent-on));--_split-button-bg-hover-color: var(--ds-split-button-bg-hover-color, var(--accent-hover));--_split-button-divider-color: var(--ds-split-button-divider-color, var(--btn-split-divider));--_split-button-outline-bg-color: var(--ds-split-button-outline-bg-color, transparent);--_split-button-outline-border-color: var(--ds-split-button-outline-border-color, var(--border-default))}.main,.toggle{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);border:var(--border-width-default) solid transparent;background:transparent;font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);cursor:pointer;position:relative;transition:background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard)}.main:focus-visible,.toggle:focus-visible{outline:none;box-shadow:var(--accent-focus-ring);z-index:var(--btn-group-focus-z)}.main:disabled,.toggle:disabled{background:var(--surface-muted);border-color:var(--border-divider);color:var(--text-disabled);cursor:not-allowed}.main{padding:0 var(--space-4);border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.toggle{padding:0 var(--space-2);margin-left:var(--btn-group-overlap);border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.chevron{transition:transform var(--duration-fast) var(--ease-standard)}.toggle.open .chevron{transform:rotate(180deg)}:host(.primary) .main:not(:disabled),:host(.primary) .toggle:not(:disabled){background:var(--_split-button-bg-color);color:var(--_split-button-text-color)}:host(.primary) .main:not(:disabled):hover,:host(.primary) .toggle:not(:disabled):hover{background:var(--_split-button-bg-hover-color)}:host(.primary) .toggle:not(:disabled){border-left:var(--border-width-default) solid var(--_split-button-divider-color)}:host(.outline) .main:not(:disabled),:host(.outline) .toggle:not(:disabled){background:var(--_split-button-outline-bg-color);border-color:var(--_split-button-outline-border-color);color:var(--text-primary)}:host(.outline) .main:not(:disabled):hover,:host(.outline) .toggle:not(:disabled):hover{background:var(--surface-secondary)}\n"] }]
46
- }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], menuItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuItems", required: false }] }], menuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuLabel", required: false }] }], pressed: [{ type: i0.Output, args: ["pressed"] }], itemSelected: [{ type: i0.Output, args: ["itemSelected"] }] } });
55
+ }, template: "<button\n type=\"button\"\n class=\"main\"\n [disabled]=\"disabled()\"\n (click)=\"pressed.emit($event)\">\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"18\" />\n }\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n\n <ng-content></ng-content>\n</button>\n\n<button\n #trigger\n type=\"button\"\n class=\"toggle\"\n aria-haspopup=\"menu\"\n [class.open]=\"pop.opened()\"\n [attr.aria-expanded]=\"pop.opened()\"\n [attr.aria-label]=\"menuLabel()\"\n [disabled]=\"disabled() || !menuItems().length\"\n (click)=\"pop.toggle(trigger)\"\n (keydown)=\"onTriggerKeydown($event, pop, trigger)\">\n <ds-icon\n class=\"chevron\"\n name=\"chevronDown\"\n [size]=\"18\" />\n</button>\n\n<ds-popover\n #pop\n align=\"end\"\n panelRole=\"presentation\">\n <ds-menu>\n @for (item of menuItems(); track item) {\n <ds-menu-item\n [icon]=\"item.icon ?? null\"\n [disabled]=\"item.disabled ?? false\"\n [error]=\"item.error ?? false\"\n (pressed)=\"onItemSelect(item)\">\n {{ item.label }}\n </ds-menu-item>\n }\n </ds-menu>\n</ds-popover>\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{display:inline-flex;--_split-button-bg-color: var(--ds-split-button-bg-color, var(--accent));--_split-button-text-color: var(--ds-split-button-text-color, var(--accent-on));--_split-button-bg-hover-color: var(--ds-split-button-bg-hover-color, var(--accent-hover));--_split-button-divider-color: var(--ds-split-button-divider-color, var(--btn-split-divider));--_split-button-outline-bg-color: var(--ds-split-button-outline-bg-color, transparent);--_split-button-outline-border-color: var(--ds-split-button-outline-border-color, var(--border-default));--_split-button-bg-color-active: var(--ds-split-button-bg-color-active, color-mix(in srgb, var(--_split-button-bg-color) 76%, black));--_split-button-outline-bg-color-active: var(--ds-split-button-outline-bg-color-active, var(--surface-muted));--_split-button-press-scale: var(--ds-split-button-press-scale, .98);--_split-button-pressed-shadow: var(--ds-split-button-pressed-shadow, none)}.main,.toggle{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);border:var(--border-width-default) solid transparent;background:transparent;font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-flat) var(--font-sans);cursor:pointer;position:relative;transition:background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard),transform var(--duration-instant) var(--ease-standard)}.main:active:not(:disabled),.toggle:active:not(:disabled){box-shadow:var(--_split-button-pressed-shadow);transform:scale(var(--_split-button-press-scale))}.main:focus-visible,.toggle: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);z-index:var(--btn-group-focus-z)}.main:disabled,.toggle:disabled{background:var(--surface-muted);border-color:var(--border-divider);color:var(--text-disabled);cursor:not-allowed}.main{padding:0 var(--space-4);border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md);transform-origin:right center}.toggle{padding:0 var(--space-2);margin-left:var(--btn-group-overlap);border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md);transform-origin:left center}.chevron{transition:transform var(--duration-fast) var(--ease-standard)}.toggle.open .chevron{transform:rotate(180deg)}:host(.primary) .main:not(:disabled),:host(.primary) .toggle:not(:disabled){background:var(--_split-button-bg-color);color:var(--_split-button-text-color)}:host(.primary) .main:not(:disabled):hover,:host(.primary) .toggle:not(:disabled):hover{background:var(--_split-button-bg-hover-color)}:host(.primary) .main:not(:disabled):active,:host(.primary) .toggle:not(:disabled):active{background:var(--_split-button-bg-color-active)}:host(.primary) .toggle:not(:disabled){border-left:var(--border-width-default) solid var(--_split-button-divider-color)}:host(.outline) .main:not(:disabled),:host(.outline) .toggle:not(:disabled){background:var(--_split-button-outline-bg-color);border-color:var(--_split-button-outline-border-color);color:var(--text-primary)}:host(.outline) .main:not(:disabled):hover,:host(.outline) .toggle:not(:disabled):hover{background:var(--surface-secondary)}:host(.outline) .main:not(:disabled):active,:host(.outline) .toggle:not(:disabled):active{background:var(--_split-button-outline-bg-color-active)}\n"] }]
56
+ }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], menuItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuItems", required: false }] }], menuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuLabel", required: false }] }], pressed: [{ type: i0.Output, args: ["pressed"] }], itemSelected: [{ type: i0.Output, args: ["itemSelected"] }] } });
47
57
 
48
58
  /**
49
59
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-split-button.mjs","sources":["../../../src/lib/components/split-button/split-button.component.ts","../../../src/lib/components/split-button/split-button.component.html","../../../src/lib/components/split-button/ids-group-ltd-ids-design-system-components-split-button.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\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 { MenuComponent } from '@ids-group-ltd/ids-design-system/components/menu';\nimport { MenuItemComponent } from '@ids-group-ltd/ids-design-system/components/menu';\nimport { PopoverComponent } from '@ids-group-ltd/ids-design-system/components/popover';\nimport type { SplitButtonItem, SplitButtonVariant } from './split-button.types';\n\n@Component({\n selector: 'ds-split-button',\n standalone: true,\n imports: [IconComponent, MenuComponent, MenuItemComponent, PopoverComponent],\n templateUrl: './split-button.component.html',\n styleUrl: './split-button.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.primary]': \"variant() === 'primary'\",\n '[class.outline]': \"variant() === 'outline'\",\n },\n})\nexport class SplitButtonComponent {\n /** Label text on the main button. */\n readonly label = input<string>('');\n /** Visual style — primary (solid) or outline. */\n readonly variant = input<SplitButtonVariant>('primary');\n /** Icon shown on the main button, before the label. */\n readonly icon = input<IconName | null>(null);\n /** Disables both the main button and the dropdown trigger. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Items listed in the dropdown menu. */\n readonly menuItems = input<readonly SplitButtonItem[]>([]);\n /** Accessible name for the dropdown trigger. */\n readonly menuLabel = input<string>('More actions');\n /** Fires when the main button (not the dropdown trigger) is clicked. */\n readonly pressed = output<MouseEvent>();\n /** Fires with the chosen menu item. */\n readonly itemSelected = output<SplitButtonItem>();\n\n protected onItemSelect(item: SplitButtonItem): void {\n if (item.disabled) {\n return;\n }\n // ds-menu-item closes the popover itself via the injected DsOverlayCloseRef.\n this.itemSelected.emit(item);\n }\n\n protected onTriggerKeydown(\n event: KeyboardEvent,\n popover: PopoverComponent,\n trigger: HTMLElement,\n ): void {\n if (event.key === 'ArrowDown' && !popover.opened()) {\n event.preventDefault();\n popover.toggle(trigger);\n }\n }\n}\n","<button\n type=\"button\"\n class=\"main\"\n [disabled]=\"disabled()\"\n (click)=\"pressed.emit($event)\"\n>\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"18\"\n />\n }\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n\n <ng-content></ng-content>\n</button>\n\n<button\n #trigger\n type=\"button\"\n class=\"toggle\"\n aria-haspopup=\"menu\"\n [class.open]=\"pop.opened()\"\n [attr.aria-expanded]=\"pop.opened()\"\n [attr.aria-label]=\"menuLabel()\"\n [disabled]=\"disabled()\"\n (click)=\"pop.toggle(trigger)\"\n (keydown)=\"onTriggerKeydown($event, pop, trigger)\"\n>\n <ds-icon\n class=\"chevron\"\n name=\"chevronDown\"\n [size]=\"18\"\n />\n</button>\n\n<ds-popover\n #pop\n align=\"end\"\n panelRole=\"presentation\"\n>\n <ds-menu>\n @for (item of menuItems(); track item) {\n <ds-menu-item\n [icon]=\"item.icon ?? null\"\n [disabled]=\"item.disabled ?? false\"\n [error]=\"item.error ?? false\"\n (pressed)=\"onItemSelect(item)\"\n >\n {{ item.label }}\n </ds-menu-item>\n }\n </ds-menu>\n</ds-popover>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MA0Ba,oBAAoB,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A,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,WAAA,EAAA,OAAA,EAAA,WAAA,EAAA,YAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAShE,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAZhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,cACf,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,CAAC,EAAA,aAAA,EAG7D,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,iBAAiB,EAAE,yBAAyB;AAC5C,wBAAA,iBAAiB,EAAE,yBAAyB;AAC7C,qBAAA,EAAA,QAAA,EAAA,0pCAAA,EAAA,MAAA,EAAA,CAAA,67EAAA,CAAA,EAAA;;;AExBH;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-split-button.mjs","sources":["../../../src/lib/components/split-button/split-button.component.ts","../../../src/lib/components/split-button/split-button.component.html","../../../src/lib/components/split-button/ids-group-ltd-ids-design-system-components-split-button.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { devWarn } from '@ids-group-ltd/ids-design-system/core';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { MenuComponent } from '@ids-group-ltd/ids-design-system/components/menu';\nimport { MenuItemComponent } from '@ids-group-ltd/ids-design-system/components/menu';\nimport { PopoverComponent } from '@ids-group-ltd/ids-design-system/components/popover';\nimport type { SplitButtonItem, SplitButtonVariant } from './split-button.types';\n\n@Component({\n selector: 'ds-split-button',\n standalone: true,\n imports: [IconComponent, MenuComponent, MenuItemComponent, PopoverComponent],\n templateUrl: './split-button.component.html',\n styleUrl: './split-button.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.primary]': \"variant() === 'primary'\",\n '[class.outline]': \"variant() === 'outline'\",\n },\n})\nexport class SplitButtonComponent {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n devWarn(() =>\n this.menuItems().length\n ? null\n : '[ds-split-button] has no `menuItems`, so the chevron is disabled — a chevron that opens' +\n ' nothing reads as a broken control. Pass the items, or use `ds-button` for a single' +\n ' action.',\n );\n }\n }\n\n /** Label text on the main button. */\n readonly label = input<string>('');\n /** Visual style — primary (solid) or outline. */\n readonly variant = input<SplitButtonVariant>('primary');\n /** Icon shown on the main button, before the label. */\n readonly icon = input<IconName | null>(null);\n /** Disables both the main button and the dropdown trigger. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Items listed in the dropdown menu. Empty disables the chevron. */\n readonly menuItems = input<readonly SplitButtonItem[]>([]);\n /** Accessible name for the dropdown trigger. */\n readonly menuLabel = input<string>('More actions');\n /** Fires when the main button (not the dropdown trigger) is clicked. */\n readonly pressed = output<MouseEvent>();\n /** The menu half only — a press on the main button is `pressed`, never this. */\n readonly itemSelected = output<SplitButtonItem>();\n\n protected onItemSelect(item: SplitButtonItem): void {\n if (item.disabled) {\n return;\n }\n // ds-menu-item closes the popover itself via the injected DsOverlayCloseRef.\n this.itemSelected.emit(item);\n }\n\n protected onTriggerKeydown(\n event: KeyboardEvent,\n popover: PopoverComponent,\n trigger: HTMLElement,\n ): void {\n if (event.key === 'ArrowDown' && !popover.opened()) {\n event.preventDefault();\n popover.toggle(trigger);\n }\n }\n}\n","<button\n type=\"button\"\n class=\"main\"\n [disabled]=\"disabled()\"\n (click)=\"pressed.emit($event)\">\n @if (icon(); as name) {\n <ds-icon\n [name]=\"name\"\n [size]=\"18\" />\n }\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n\n <ng-content></ng-content>\n</button>\n\n<button\n #trigger\n type=\"button\"\n class=\"toggle\"\n aria-haspopup=\"menu\"\n [class.open]=\"pop.opened()\"\n [attr.aria-expanded]=\"pop.opened()\"\n [attr.aria-label]=\"menuLabel()\"\n [disabled]=\"disabled() || !menuItems().length\"\n (click)=\"pop.toggle(trigger)\"\n (keydown)=\"onTriggerKeydown($event, pop, trigger)\">\n <ds-icon\n class=\"chevron\"\n name=\"chevronDown\"\n [size]=\"18\" />\n</button>\n\n<ds-popover\n #pop\n align=\"end\"\n panelRole=\"presentation\">\n <ds-menu>\n @for (item of menuItems(); track item) {\n <ds-menu-item\n [icon]=\"item.icon ?? null\"\n [disabled]=\"item.disabled ?? false\"\n [error]=\"item.error ?? false\"\n (pressed)=\"onItemSelect(item)\">\n {{ item.label }}\n </ds-menu-item>\n }\n </ds-menu>\n</ds-popover>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MA2Ba,oBAAoB,CAAA;AAC/B,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,SAAS,EAAE;YACjD,OAAO,CAAC,MACN,IAAI,CAAC,SAAS,EAAE,CAAC;AACf,kBAAE;AACF,kBAAE,yFAAyF;oBACzF,qFAAqF;AACrF,oBAAA,UAAU,CACf;QACH;IACF;;AAGS,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,OAAO,GAAG,KAAK,CAAqB,SAAS,8EAAC;;AAE9C,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;;IAEnC,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,IAAA,SAAS,GAAG,KAAK,CAA6B,EAAE,gFAAC;;AAEjD,IAAA,SAAS,GAAG,KAAK,CAAS,cAAc,gFAAC;;IAEzC,OAAO,GAAG,MAAM,EAAc;;IAE9B,YAAY,GAAG,MAAM,EAAmB;AA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AAA,aAAA,EAG7D,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,iBAAiB,EAAE,yBAAyB;AAC5C,wBAAA,iBAAiB,EAAE,yBAAyB;AAC7C,qBAAA,EAAA,QAAA,EAAA,2pCAAA,EAAA,MAAA,EAAA,CAAA,y2IAAA,CAAA,EAAA;;;AEzBH;;AAEG;;;;"}
@@ -80,7 +80,7 @@ class StatComponent {
80
80
  return `${magnitude}${suffix}`;
81
81
  }, ...(ngDevMode ? [{ debugName: "deltaText" }] : /* istanbul ignore next */ []));
82
82
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: StatComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
83
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: StatComponent, isStandalone: true, selector: "ds-stat", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, delta: { classPropertyName: "delta", publicName: "delta", isSignal: true, isRequired: false, transformFunction: null }, deltaLabel: { classPropertyName: "deltaLabel", publicName: "deltaLabel", isSignal: true, isRequired: false, transformFunction: null }, deltaTone: { classPropertyName: "deltaTone", publicName: "deltaTone", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.error": "variant() === 'error'", "class.size-sm": "size() === 'sm'", "class.size-lg": "size() === 'lg'" } }, ngImport: i0, template: "<div class=\"stat\">\n <div class=\"label\">\n {{ label() }}\n </div>\n\n <div class=\"value\">\n <ng-content select=\"[dsStatValue]\">{{ value() }}{{ unit() }}</ng-content>\n </div>\n\n @if (delta() !== null) {\n <div [class]=\"deltaClasses()\">\n @if (deltaIcon(); as icon) {\n <ds-icon\n [name]=\"icon\"\n [size]=\"12\"\n >\n </ds-icon>\n }\n\n <ng-content select=\"[delta]\">{{ deltaText() }}</ng-content>\n </div>\n } @else if (caption()) {\n <div class=\"caption\">\n {{ caption() }}\n </div>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_stat-bg-color: var(--ds-stat-bg-color, var(--surface-default));--_stat-border: var(--ds-stat-border, var(--border-divider));--_stat-radius: var(--ds-stat-radius, var(--ds-radius-panel));--_stat-pad: var(--ds-stat-pad, var(--ds-container-pad));--_stat-label-color: var(--ds-stat-label-color, var(--text-tertiary));--_stat-value-color: var(--ds-stat-value-color, var(--text-primary));--_stat-value-font-size: var(--ds-stat-value-font-size, var(--font-size-h2));--_stat-value-white-space: var(--ds-stat-value-white-space, nowrap);--_stat-up-color: var(--ds-stat-up-color, var(--success-text));--_stat-down-color: var(--ds-stat-down-color, var(--error-text));display:block}:host(.error) .value{color:var(--error-text)}:host(.size-sm){--_stat-value-font-size: var(--ds-stat-value-font-size, var(--font-size-h4))}:host(.size-lg){--_stat-value-font-size: var(--ds-stat-value-font-size, var(--font-size-h1))}:host(.size-sm) .stat .label{font-size:var(--font-size-2xs);letter-spacing:var(--letter-spacing-wide)}:host(.size-lg) .stat .label{font-size:var(--font-size-s)}.stat{background-color:var(--_stat-bg-color);border:var(--border-width-default) solid var(--_stat-border);border-radius:var(--_stat-radius);padding:var(--_stat-pad);height:100%}.stat .label{font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-base) var(--font-sans);letter-spacing:var(--letter-spacing-wider);text-transform:uppercase;color:var(--_stat-label-color);margin:0 0 var(--space-2)}.stat .value{font:var(--font-weight-extrabold) var(--_stat-value-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--letter-spacing-snug);color:var(--_stat-value-color);margin:0;white-space:var(--_stat-value-white-space)}.stat .delta{display:inline-flex;align-items:center;gap:var(--space-1);font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-base) var(--font-sans);margin-top:var(--space-2)}.stat .delta.up{color:var(--_stat-up-color)}.stat .delta.down{color:var(--_stat-down-color)}.stat .delta.neutral{color:var(--text-tertiary)}.stat .delta.secondary{color:var(--secondary-strong)}.stat .caption{font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary);margin-top:var(--space-2)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
83
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: StatComponent, isStandalone: true, selector: "ds-stat", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, delta: { classPropertyName: "delta", publicName: "delta", isSignal: true, isRequired: false, transformFunction: null }, deltaLabel: { classPropertyName: "deltaLabel", publicName: "deltaLabel", isSignal: true, isRequired: false, transformFunction: null }, deltaTone: { classPropertyName: "deltaTone", publicName: "deltaTone", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.error": "variant() === 'error'", "class.size-sm": "size() === 'sm'", "class.size-lg": "size() === 'lg'" } }, ngImport: i0, template: "<div class=\"stat\">\n <div class=\"label\">\n {{ label() }}\n </div>\n\n <div class=\"value\">\n <ng-content select=\"[dsStatValue]\">{{ value() }}{{ unit() }}</ng-content>\n </div>\n\n @if (delta() !== null) {\n <div [class]=\"deltaClasses()\">\n @if (deltaIcon(); as icon) {\n <ds-icon\n [name]=\"icon\"\n [size]=\"12\">\n </ds-icon>\n }\n\n <ng-content select=\"[delta]\">{{ deltaText() }}</ng-content>\n </div>\n } @else if (caption()) {\n <div class=\"caption\">\n {{ caption() }}\n </div>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_stat-bg-color: var(--ds-stat-bg-color, var(--surface-default));--_stat-border: var(--ds-stat-border, var(--border-divider));--_stat-radius: var(--ds-stat-radius, var(--ds-radius-panel));--_stat-pad: var(--ds-stat-pad, var(--ds-container-pad));--_stat-label-color: var(--ds-stat-label-color, var(--text-tertiary));--_stat-value-color: var(--ds-stat-value-color, var(--text-primary));--_stat-value-font-size: var(--ds-stat-value-font-size, var(--font-size-h2));--_stat-value-white-space: var(--ds-stat-value-white-space, nowrap);--_stat-up-color: var(--ds-stat-up-color, var(--success-text));--_stat-down-color: var(--ds-stat-down-color, var(--error-text));display:block}:host(.error) .value{color:var(--error-text)}:host(.size-sm){--_stat-value-font-size: var(--ds-stat-value-font-size, var(--font-size-h4))}:host(.size-lg){--_stat-value-font-size: var(--ds-stat-value-font-size, var(--font-size-h1))}:host(.size-sm) .stat .label{font-size:var(--font-size-2xs);letter-spacing:var(--letter-spacing-wide)}:host(.size-lg) .stat .label{font-size:var(--font-size-s)}.stat{background-color:var(--_stat-bg-color);border:var(--border-width-default) solid var(--_stat-border);border-radius:var(--_stat-radius);padding:var(--_stat-pad);height:100%}.stat .label{font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-base) var(--font-sans);letter-spacing:var(--letter-spacing-wider);text-transform:uppercase;color:var(--_stat-label-color);margin:0 0 var(--space-2)}.stat .value{font:var(--font-weight-extrabold) var(--_stat-value-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--letter-spacing-snug);color:var(--_stat-value-color);margin:0;white-space:var(--_stat-value-white-space)}.stat .delta{display:inline-flex;align-items:center;gap:var(--space-1);font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-base) var(--font-sans);margin-top:var(--space-2)}.stat .delta.up{color:var(--_stat-up-color)}.stat .delta.down{color:var(--_stat-down-color)}.stat .delta.neutral{color:var(--text-tertiary)}.stat .delta.secondary{color:var(--secondary-strong)}.stat .caption{font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary);margin-top:var(--space-2)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
84
84
  }
85
85
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: StatComponent, decorators: [{
86
86
  type: Component,
@@ -88,7 +88,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
88
88
  '[class.error]': "variant() === 'error'",
89
89
  '[class.size-sm]': "size() === 'sm'",
90
90
  '[class.size-lg]': "size() === 'lg'",
91
- }, template: "<div class=\"stat\">\n <div class=\"label\">\n {{ label() }}\n </div>\n\n <div class=\"value\">\n <ng-content select=\"[dsStatValue]\">{{ value() }}{{ unit() }}</ng-content>\n </div>\n\n @if (delta() !== null) {\n <div [class]=\"deltaClasses()\">\n @if (deltaIcon(); as icon) {\n <ds-icon\n [name]=\"icon\"\n [size]=\"12\"\n >\n </ds-icon>\n }\n\n <ng-content select=\"[delta]\">{{ deltaText() }}</ng-content>\n </div>\n } @else if (caption()) {\n <div class=\"caption\">\n {{ caption() }}\n </div>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_stat-bg-color: var(--ds-stat-bg-color, var(--surface-default));--_stat-border: var(--ds-stat-border, var(--border-divider));--_stat-radius: var(--ds-stat-radius, var(--ds-radius-panel));--_stat-pad: var(--ds-stat-pad, var(--ds-container-pad));--_stat-label-color: var(--ds-stat-label-color, var(--text-tertiary));--_stat-value-color: var(--ds-stat-value-color, var(--text-primary));--_stat-value-font-size: var(--ds-stat-value-font-size, var(--font-size-h2));--_stat-value-white-space: var(--ds-stat-value-white-space, nowrap);--_stat-up-color: var(--ds-stat-up-color, var(--success-text));--_stat-down-color: var(--ds-stat-down-color, var(--error-text));display:block}:host(.error) .value{color:var(--error-text)}:host(.size-sm){--_stat-value-font-size: var(--ds-stat-value-font-size, var(--font-size-h4))}:host(.size-lg){--_stat-value-font-size: var(--ds-stat-value-font-size, var(--font-size-h1))}:host(.size-sm) .stat .label{font-size:var(--font-size-2xs);letter-spacing:var(--letter-spacing-wide)}:host(.size-lg) .stat .label{font-size:var(--font-size-s)}.stat{background-color:var(--_stat-bg-color);border:var(--border-width-default) solid var(--_stat-border);border-radius:var(--_stat-radius);padding:var(--_stat-pad);height:100%}.stat .label{font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-base) var(--font-sans);letter-spacing:var(--letter-spacing-wider);text-transform:uppercase;color:var(--_stat-label-color);margin:0 0 var(--space-2)}.stat .value{font:var(--font-weight-extrabold) var(--_stat-value-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--letter-spacing-snug);color:var(--_stat-value-color);margin:0;white-space:var(--_stat-value-white-space)}.stat .delta{display:inline-flex;align-items:center;gap:var(--space-1);font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-base) var(--font-sans);margin-top:var(--space-2)}.stat .delta.up{color:var(--_stat-up-color)}.stat .delta.down{color:var(--_stat-down-color)}.stat .delta.neutral{color:var(--text-tertiary)}.stat .delta.secondary{color:var(--secondary-strong)}.stat .caption{font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary);margin-top:var(--space-2)}\n"] }]
91
+ }, template: "<div class=\"stat\">\n <div class=\"label\">\n {{ label() }}\n </div>\n\n <div class=\"value\">\n <ng-content select=\"[dsStatValue]\">{{ value() }}{{ unit() }}</ng-content>\n </div>\n\n @if (delta() !== null) {\n <div [class]=\"deltaClasses()\">\n @if (deltaIcon(); as icon) {\n <ds-icon\n [name]=\"icon\"\n [size]=\"12\">\n </ds-icon>\n }\n\n <ng-content select=\"[delta]\">{{ deltaText() }}</ng-content>\n </div>\n } @else if (caption()) {\n <div class=\"caption\">\n {{ caption() }}\n </div>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:host{--_stat-bg-color: var(--ds-stat-bg-color, var(--surface-default));--_stat-border: var(--ds-stat-border, var(--border-divider));--_stat-radius: var(--ds-stat-radius, var(--ds-radius-panel));--_stat-pad: var(--ds-stat-pad, var(--ds-container-pad));--_stat-label-color: var(--ds-stat-label-color, var(--text-tertiary));--_stat-value-color: var(--ds-stat-value-color, var(--text-primary));--_stat-value-font-size: var(--ds-stat-value-font-size, var(--font-size-h2));--_stat-value-white-space: var(--ds-stat-value-white-space, nowrap);--_stat-up-color: var(--ds-stat-up-color, var(--success-text));--_stat-down-color: var(--ds-stat-down-color, var(--error-text));display:block}:host(.error) .value{color:var(--error-text)}:host(.size-sm){--_stat-value-font-size: var(--ds-stat-value-font-size, var(--font-size-h4))}:host(.size-lg){--_stat-value-font-size: var(--ds-stat-value-font-size, var(--font-size-h1))}:host(.size-sm) .stat .label{font-size:var(--font-size-2xs);letter-spacing:var(--letter-spacing-wide)}:host(.size-lg) .stat .label{font-size:var(--font-size-s)}.stat{background-color:var(--_stat-bg-color);border:var(--border-width-default) solid var(--_stat-border);border-radius:var(--_stat-radius);padding:var(--_stat-pad);height:100%}.stat .label{font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-base) var(--font-sans);letter-spacing:var(--letter-spacing-wider);text-transform:uppercase;color:var(--_stat-label-color);margin:0 0 var(--space-2)}.stat .value{font:var(--font-weight-extrabold) var(--_stat-value-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--letter-spacing-snug);color:var(--_stat-value-color);margin:0;white-space:var(--_stat-value-white-space)}.stat .delta{display:inline-flex;align-items:center;gap:var(--space-1);font:var(--font-weight-bold) var(--font-size-xs)/var(--line-height-base) var(--font-sans);margin-top:var(--space-2)}.stat .delta.up{color:var(--_stat-up-color)}.stat .delta.down{color:var(--_stat-down-color)}.stat .delta.neutral{color:var(--text-tertiary)}.stat .delta.secondary{color:var(--secondary-strong)}.stat .caption{font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--text-tertiary);margin-top:var(--space-2)}\n"] }]
92
92
  }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], delta: [{ type: i0.Input, args: [{ isSignal: true, alias: "delta", required: false }] }], deltaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "deltaLabel", required: false }] }], deltaTone: [{ type: i0.Input, args: [{ isSignal: true, alias: "deltaTone", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], unit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unit", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
93
93
 
94
94
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-stat.mjs","sources":["../../../src/lib/components/stat/stat.component.ts","../../../src/lib/components/stat/stat.component.html","../../../src/lib/components/stat/ids-group-ltd-ids-design-system-components-stat.ts"],"sourcesContent":["import { Component, ViewEncapsulation, computed, input } from '@angular/core';\nimport { devWarn } from '@ids-group-ltd/ids-design-system/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\n\n@Component({\n selector: 'ds-stat',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './stat.component.html',\n styleUrl: './stat.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.error]': \"variant() === 'error'\",\n '[class.size-sm]': \"size() === 'sm'\",\n '[class.size-lg]': \"size() === 'lg'\",\n },\n})\nexport class StatComponent {\n constructor() {\n // `unit` concatenates onto the INPUT value, so a projected value silently\n // drops it — and \"kg\" quietly missing from a tile is the kind of thing that\n // reads as fine until someone checks the number against the source.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n devWarn(() =>\n this.unit() && !this.value()\n ? `[ds-stat] unit=\"${this.unit()}\" is set but there is no \\`value\\` input — a projected [dsStatValue] owns the whole line, so the unit is not rendered. Put it inside the projected content, or drop the input.`\n : null,\n );\n }\n }\n\n /** Metric name shown above the value. */\n readonly label = input.required<string>();\n /** Headline metric; `unit` is appended directly after it.\n *\n * Optional because the value can be PROJECTED instead — `[dsStatValue]`\n * takes a badge, a status dot, anything a tile needs where a number would go.\n * The input is the fallback, the same shape `[delta]` already has.\n *\n * Namespaced, unlike `[delta]`: twenty components in this library have a\n * `value` input, so a bare `value` attribute used to slot one of them in\n * would also set that input to the empty string.\n *\n * Takes `null` so `[value]=\"count | number\"` typechecks: Angular's own\n * `number`/`date`/`percent` pipes are typed `string | null`, and without the null the\n * idiomatic form fails `strictTemplates` and pushes consumers to `toLocaleString()` in\n * the template — which hardcodes a locale instead of reading LOCALE_ID. Renders as\n * nothing, like the empty default. */\n readonly value = input<string | number | null>('');\n /** Change amount; sign drives the up/down arrow and color. */\n readonly delta = input<number | null>(null);\n /** Suffix appended after the delta's magnitude, e.g. \"vs last month\". */\n readonly deltaLabel = input<string>('');\n /** Overrides the automatic up/down coloring of the delta. */\n readonly deltaTone = input<'neutral' | 'secondary' | null>(null);\n /** Secondary text shown below the value when there's no `delta`. */\n readonly caption = input<string>('');\n /** Suffix appended directly after `value`, e.g. \"%\". */\n readonly unit = input<string>('');\n /** `error` applies the error color treatment. */\n readonly variant = input<'default' | 'error'>('default');\n /** Controls the stat's overall type scale. */\n readonly size = input<'sm' | 'md' | 'lg'>('md');\n\n protected readonly deltaClasses = computed(() => {\n const delta = this.delta();\n if (delta === null) {\n return '';\n }\n const tone = this.deltaTone();\n if (tone) {\n return `delta ${tone}`;\n }\n if (delta > 0) {\n return 'delta up';\n }\n if (delta < 0) {\n return 'delta down';\n }\n\n return 'delta';\n });\n\n protected readonly deltaIcon = computed<'arrowUp' | 'arrowDown' | null>(\n () => {\n const delta = this.delta();\n if (delta === null || delta === 0) {\n return null;\n }\n\n return delta > 0 ? 'arrowUp' : 'arrowDown';\n },\n );\n\n protected readonly deltaText = computed(() => {\n const delta = this.delta();\n if (delta === null) {\n return '';\n }\n const magnitude = Math.abs(delta);\n const suffix = this.deltaLabel() ? ` ${this.deltaLabel()}` : '';\n\n return `${magnitude}${suffix}`;\n });\n}\n","<div class=\"stat\">\n <div class=\"label\">\n {{ label() }}\n </div>\n\n <div class=\"value\">\n <ng-content select=\"[dsStatValue]\">{{ value() }}{{ unit() }}</ng-content>\n </div>\n\n @if (delta() !== null) {\n <div [class]=\"deltaClasses()\">\n @if (deltaIcon(); as icon) {\n <ds-icon\n [name]=\"icon\"\n [size]=\"12\"\n >\n </ds-icon>\n }\n\n <ng-content select=\"[delta]\">{{ deltaText() }}</ng-content>\n </div>\n } @else if (caption()) {\n <div class=\"caption\">\n {{ caption() }}\n </div>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAiBa,aAAa,CAAA;AACxB,IAAA,WAAA,GAAA;;;;AAIE,QAAA,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,SAAS,EAAE;AACjD,YAAA,OAAO,CAAC,MACN,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK;AACxB,kBAAE,CAAA,gBAAA,EAAmB,IAAI,CAAC,IAAI,EAAE,CAAA,8KAAA;kBAC9B,IAAI,CACT;QACH;IACF;;AAGS,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;AACzC;;;;;;;;;;;;;;AAcuC;AAC9B,IAAA,KAAK,GAAG,KAAK,CAAyB,EAAE,4EAAC;;AAEzC,IAAA,KAAK,GAAG,KAAK,CAAgB,IAAI,4EAAC;;AAElC,IAAA,UAAU,GAAG,KAAK,CAAS,EAAE,iFAAC;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A,MAAA,EAAA,CAAA,wuEAAA,CAAA,EAAA;;;AEfH;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-stat.mjs","sources":["../../../src/lib/components/stat/stat.component.ts","../../../src/lib/components/stat/stat.component.html","../../../src/lib/components/stat/ids-group-ltd-ids-design-system-components-stat.ts"],"sourcesContent":["import { Component, ViewEncapsulation, computed, input } from '@angular/core';\nimport { devWarn } from '@ids-group-ltd/ids-design-system/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\n\n@Component({\n selector: 'ds-stat',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './stat.component.html',\n styleUrl: './stat.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.error]': \"variant() === 'error'\",\n '[class.size-sm]': \"size() === 'sm'\",\n '[class.size-lg]': \"size() === 'lg'\",\n },\n})\nexport class StatComponent {\n constructor() {\n // `unit` concatenates onto the INPUT value, so a projected value silently\n // drops it — and \"kg\" quietly missing from a tile is the kind of thing that\n // reads as fine until someone checks the number against the source.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n devWarn(() =>\n this.unit() && !this.value()\n ? `[ds-stat] unit=\"${this.unit()}\" is set but there is no \\`value\\` input — a projected [dsStatValue] owns the whole line, so the unit is not rendered. Put it inside the projected content, or drop the input.`\n : null,\n );\n }\n }\n\n /** Metric name shown above the value. */\n readonly label = input.required<string>();\n /** Headline metric; `unit` is appended directly after it.\n *\n * Optional because the value can be PROJECTED instead — `[dsStatValue]`\n * takes a badge, a status dot, anything a tile needs where a number would go.\n * The input is the fallback, the same shape `[delta]` already has.\n *\n * Namespaced, unlike `[delta]`: twenty components in this library have a\n * `value` input, so a bare `value` attribute used to slot one of them in\n * would also set that input to the empty string.\n *\n * Takes `null` so `[value]=\"count | number\"` typechecks: Angular's own\n * `number`/`date`/`percent` pipes are typed `string | null`, and without the null the\n * idiomatic form fails `strictTemplates` and pushes consumers to `toLocaleString()` in\n * the template — which hardcodes a locale instead of reading LOCALE_ID. Renders as\n * nothing, like the empty default. */\n readonly value = input<string | number | null>('');\n /** Change amount; sign drives the up/down arrow and color. */\n readonly delta = input<number | null>(null);\n /** Suffix appended after the delta's magnitude, e.g. \"vs last month\". */\n readonly deltaLabel = input<string>('');\n /** Overrides the automatic up/down coloring of the delta. */\n readonly deltaTone = input<'neutral' | 'secondary' | null>(null);\n /** Secondary text shown below the value when there's no `delta`. */\n readonly caption = input<string>('');\n /** Suffix appended directly after `value`, e.g. \"%\". */\n readonly unit = input<string>('');\n /** `error` applies the error color treatment. */\n readonly variant = input<'default' | 'error'>('default');\n /** Controls the stat's overall type scale. */\n readonly size = input<'sm' | 'md' | 'lg'>('md');\n\n protected readonly deltaClasses = computed(() => {\n const delta = this.delta();\n if (delta === null) {\n return '';\n }\n const tone = this.deltaTone();\n if (tone) {\n return `delta ${tone}`;\n }\n if (delta > 0) {\n return 'delta up';\n }\n if (delta < 0) {\n return 'delta down';\n }\n\n return 'delta';\n });\n\n protected readonly deltaIcon = computed<'arrowUp' | 'arrowDown' | null>(\n () => {\n const delta = this.delta();\n if (delta === null || delta === 0) {\n return null;\n }\n\n return delta > 0 ? 'arrowUp' : 'arrowDown';\n },\n );\n\n protected readonly deltaText = computed(() => {\n const delta = this.delta();\n if (delta === null) {\n return '';\n }\n const magnitude = Math.abs(delta);\n const suffix = this.deltaLabel() ? ` ${this.deltaLabel()}` : '';\n\n return `${magnitude}${suffix}`;\n });\n}\n","<div class=\"stat\">\n <div class=\"label\">\n {{ label() }}\n </div>\n\n <div class=\"value\">\n <ng-content select=\"[dsStatValue]\">{{ value() }}{{ unit() }}</ng-content>\n </div>\n\n @if (delta() !== null) {\n <div [class]=\"deltaClasses()\">\n @if (deltaIcon(); as icon) {\n <ds-icon\n [name]=\"icon\"\n [size]=\"12\">\n </ds-icon>\n }\n\n <ng-content select=\"[delta]\">{{ deltaText() }}</ng-content>\n </div>\n } @else if (caption()) {\n <div class=\"caption\">\n {{ caption() }}\n </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