@sdcorejs/angular 22.2.15 → 22.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/README.md +7 -5
  2. package/assets/STYLE-GUIDE.md +6 -3
  3. package/assets/THEME.md +166 -0
  4. package/assets/fonts/fonts.scss +1 -1
  5. package/assets/scss/ckeditor5.scss +2 -2
  6. package/assets/scss/core/_inline-edit.scss +3 -3
  7. package/assets/scss/core/_read-state-panel.scss +2 -2
  8. package/assets/scss/core/color.scss +4 -2
  9. package/assets/scss/core/form.scss +35 -12
  10. package/assets/scss/core/scrollbar.scss +3 -3
  11. package/assets/scss/core/utilities/_base.scss +5 -5
  12. package/assets/scss/core/utilities/_typography.scss +22 -22
  13. package/assets/scss/sd-core.scss +12 -0
  14. package/assets/scss/themes/_component-tokens.scss +261 -0
  15. package/assets/scss/themes/_presets.scss +3 -0
  16. package/assets/scss/themes/_ramps.scss +56 -0
  17. package/assets/scss/themes/_scales.scss +90 -0
  18. package/assets/scss/themes/_semantic.scss +22 -0
  19. package/assets/scss/themes/default.scss +113 -10
  20. package/assets/scss/themes/material-theme.scss +3 -0
  21. package/fesm2022/sdcorejs-angular-components-anchor.mjs +2 -2
  22. package/fesm2022/sdcorejs-angular-components-anchor.mjs.map +1 -1
  23. package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs +6 -6
  24. package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs.map +1 -1
  25. package/fesm2022/sdcorejs-angular-components-audit-diff.mjs +2 -2
  26. package/fesm2022/sdcorejs-angular-components-audit-diff.mjs.map +1 -1
  27. package/fesm2022/sdcorejs-angular-components-autoid-inspector.mjs +2 -2
  28. package/fesm2022/sdcorejs-angular-components-autoid-inspector.mjs.map +1 -1
  29. package/fesm2022/sdcorejs-angular-components-avatar.mjs +34 -27
  30. package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
  31. package/fesm2022/sdcorejs-angular-components-badge.mjs +2 -2
  32. package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
  33. package/fesm2022/sdcorejs-angular-components-breadcrumb.mjs +35 -5
  34. package/fesm2022/sdcorejs-angular-components-breadcrumb.mjs.map +1 -1
  35. package/fesm2022/sdcorejs-angular-components-button.mjs +13 -11
  36. package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
  37. package/fesm2022/sdcorejs-angular-components-card.mjs +2 -2
  38. package/fesm2022/sdcorejs-angular-components-card.mjs.map +1 -1
  39. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs +2 -2
  40. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs.map +1 -1
  41. package/fesm2022/sdcorejs-angular-components-code-editor.mjs +2 -2
  42. package/fesm2022/sdcorejs-angular-components-code-editor.mjs.map +1 -1
  43. package/fesm2022/sdcorejs-angular-components-data-state.mjs +10 -4
  44. package/fesm2022/sdcorejs-angular-components-data-state.mjs.map +1 -1
  45. package/fesm2022/sdcorejs-angular-components-editor.mjs +12 -4
  46. package/fesm2022/sdcorejs-angular-components-editor.mjs.map +1 -1
  47. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +108 -52
  48. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
  49. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +6191 -6611
  50. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  51. package/fesm2022/sdcorejs-angular-components-highlight.mjs +66 -0
  52. package/fesm2022/sdcorejs-angular-components-highlight.mjs.map +1 -0
  53. package/fesm2022/sdcorejs-angular-components-history.mjs +2 -2
  54. package/fesm2022/sdcorejs-angular-components-history.mjs.map +1 -1
  55. package/fesm2022/sdcorejs-angular-components-image-editor.mjs +2158 -0
  56. package/fesm2022/sdcorejs-angular-components-image-editor.mjs.map +1 -0
  57. package/fesm2022/sdcorejs-angular-components-import-excel.mjs +2 -2
  58. package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
  59. package/fesm2022/sdcorejs-angular-components-inform.mjs +11 -5
  60. package/fesm2022/sdcorejs-angular-components-inform.mjs.map +1 -1
  61. package/fesm2022/sdcorejs-angular-components-job-progress.mjs +2 -2
  62. package/fesm2022/sdcorejs-angular-components-job-progress.mjs.map +1 -1
  63. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs +40 -22
  64. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs.map +1 -1
  65. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs +2 -2
  66. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs.map +1 -1
  67. package/fesm2022/sdcorejs-angular-components-modal.mjs +2 -2
  68. package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
  69. package/fesm2022/sdcorejs-angular-components-operator.mjs +2 -2
  70. package/fesm2022/sdcorejs-angular-components-operator.mjs.map +1 -1
  71. package/fesm2022/sdcorejs-angular-components-org-chart.mjs +2 -2
  72. package/fesm2022/sdcorejs-angular-components-org-chart.mjs.map +1 -1
  73. package/fesm2022/sdcorejs-angular-components-preview.mjs +144 -7
  74. package/fesm2022/sdcorejs-angular-components-preview.mjs.map +1 -1
  75. package/fesm2022/sdcorejs-angular-components-query-bar.mjs +33 -24
  76. package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
  77. package/fesm2022/sdcorejs-angular-components-query-builder.mjs +2 -2
  78. package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
  79. package/fesm2022/sdcorejs-angular-components-quick-action.mjs +2 -2
  80. package/fesm2022/sdcorejs-angular-components-quick-action.mjs.map +1 -1
  81. package/fesm2022/sdcorejs-angular-components-section.mjs +13 -7
  82. package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
  83. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +28 -4
  84. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
  85. package/fesm2022/sdcorejs-angular-components-splitter.mjs +2 -2
  86. package/fesm2022/sdcorejs-angular-components-splitter.mjs.map +1 -1
  87. package/fesm2022/sdcorejs-angular-components-stepper.mjs +2 -2
  88. package/fesm2022/sdcorejs-angular-components-stepper.mjs.map +1 -1
  89. package/fesm2022/sdcorejs-angular-components-tab-router.mjs +4 -4
  90. package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
  91. package/fesm2022/sdcorejs-angular-components-tab.mjs +2 -2
  92. package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
  93. package/fesm2022/sdcorejs-angular-components-table.mjs +308 -113
  94. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  95. package/fesm2022/sdcorejs-angular-components-tree.mjs +2 -2
  96. package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
  97. package/fesm2022/sdcorejs-angular-components-upload-file.mjs +14 -5
  98. package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
  99. package/fesm2022/sdcorejs-angular-components.mjs +2 -0
  100. package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
  101. package/fesm2022/sdcorejs-angular-directives.mjs +100 -13
  102. package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
  103. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +154 -6
  104. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
  105. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +20 -4
  106. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
  107. package/fesm2022/sdcorejs-angular-forms-chip.mjs +20 -4
  108. package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
  109. package/fesm2022/sdcorejs-angular-forms-date-range.mjs +2 -2
  110. package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
  111. package/fesm2022/sdcorejs-angular-forms-date.mjs +18 -7
  112. package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
  113. package/fesm2022/sdcorejs-angular-forms-datetime.mjs +18 -7
  114. package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
  115. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +2 -2
  116. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
  117. package/fesm2022/sdcorejs-angular-forms-inline-text.mjs +3 -3
  118. package/fesm2022/sdcorejs-angular-forms-inline-text.mjs.map +1 -1
  119. package/fesm2022/sdcorejs-angular-forms-input-color.mjs +2 -2
  120. package/fesm2022/sdcorejs-angular-forms-input-color.mjs.map +1 -1
  121. package/fesm2022/sdcorejs-angular-forms-input-number.mjs +20 -4
  122. package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
  123. package/fesm2022/sdcorejs-angular-forms-input.mjs +31 -5
  124. package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
  125. package/fesm2022/sdcorejs-angular-forms-label.mjs +27 -2
  126. package/fesm2022/sdcorejs-angular-forms-label.mjs.map +1 -1
  127. package/fesm2022/sdcorejs-angular-forms-radio.mjs +1 -1
  128. package/fesm2022/sdcorejs-angular-forms-radio.mjs.map +1 -1
  129. package/fesm2022/sdcorejs-angular-forms-select.mjs +509 -7
  130. package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
  131. package/fesm2022/sdcorejs-angular-forms-switch.mjs +1 -1
  132. package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
  133. package/fesm2022/sdcorejs-angular-forms-textarea.mjs +21 -4
  134. package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
  135. package/fesm2022/sdcorejs-angular-forms-time-range.mjs +2 -2
  136. package/fesm2022/sdcorejs-angular-forms-time-range.mjs.map +1 -1
  137. package/fesm2022/sdcorejs-angular-forms-time.mjs +2 -2
  138. package/fesm2022/sdcorejs-angular-forms-time.mjs.map +1 -1
  139. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +1 -1
  140. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
  141. package/fesm2022/sdcorejs-angular-i18n.mjs +1430 -271
  142. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  143. package/fesm2022/sdcorejs-angular-modules-auth.mjs +35 -3
  144. package/fesm2022/sdcorejs-angular-modules-auth.mjs.map +1 -1
  145. package/fesm2022/sdcorejs-angular-modules-icon.mjs +19 -0
  146. package/fesm2022/sdcorejs-angular-modules-icon.mjs.map +1 -1
  147. package/fesm2022/sdcorejs-angular-modules-layout.mjs +39 -48
  148. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  149. package/fesm2022/sdcorejs-angular-modules-permission.mjs.map +1 -1
  150. package/fesm2022/sdcorejs-angular-services-api.mjs +198 -8
  151. package/fesm2022/sdcorejs-angular-services-api.mjs.map +1 -1
  152. package/fesm2022/sdcorejs-angular-services-confirm.mjs +10 -3
  153. package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
  154. package/fesm2022/sdcorejs-angular-services-excel.mjs +5 -0
  155. package/fesm2022/sdcorejs-angular-services-excel.mjs.map +1 -1
  156. package/fesm2022/sdcorejs-angular-services-loading.mjs +1 -1
  157. package/fesm2022/sdcorejs-angular-services-loading.mjs.map +1 -1
  158. package/fesm2022/sdcorejs-angular-services-notify.mjs +109 -7
  159. package/fesm2022/sdcorejs-angular-services-notify.mjs.map +1 -1
  160. package/fesm2022/sdcorejs-angular-utilities-extensions.mjs +458 -1
  161. package/fesm2022/sdcorejs-angular-utilities-extensions.mjs.map +1 -1
  162. package/fesm2022/sdcorejs-angular-utilities-theme.mjs +169 -0
  163. package/fesm2022/sdcorejs-angular-utilities-theme.mjs.map +1 -0
  164. package/fesm2022/sdcorejs-angular-utilities.mjs +1 -0
  165. package/fesm2022/sdcorejs-angular-utilities.mjs.map +1 -1
  166. package/package.json +14 -2
  167. package/types/sdcorejs-angular-components-breadcrumb.d.ts +2 -1
  168. package/types/sdcorejs-angular-components-data-state.d.ts +6 -2
  169. package/types/sdcorejs-angular-components-file-explorer.d.ts +3 -0
  170. package/types/sdcorejs-angular-components-form-generic.d.ts +897 -835
  171. package/types/sdcorejs-angular-components-highlight.d.ts +27 -0
  172. package/types/sdcorejs-angular-components-image-editor.d.ts +478 -0
  173. package/types/sdcorejs-angular-components-inform.d.ts +5 -2
  174. package/types/sdcorejs-angular-components-mini-editor.d.ts +1 -1
  175. package/types/sdcorejs-angular-components-preview.d.ts +51 -2
  176. package/types/sdcorejs-angular-components-query-builder.d.ts +1 -1
  177. package/types/sdcorejs-angular-components-section.d.ts +5 -1
  178. package/types/sdcorejs-angular-components-table.d.ts +6 -0
  179. package/types/sdcorejs-angular-components.d.ts +2 -0
  180. package/types/sdcorejs-angular-directives.d.ts +8 -0
  181. package/types/sdcorejs-angular-forms-autocomplete.d.ts +19 -1
  182. package/types/sdcorejs-angular-forms-chip-calendar.d.ts +13 -2
  183. package/types/sdcorejs-angular-forms-chip.d.ts +13 -2
  184. package/types/sdcorejs-angular-forms-date.d.ts +7 -2
  185. package/types/sdcorejs-angular-forms-datetime.d.ts +7 -2
  186. package/types/sdcorejs-angular-forms-inline-text.d.ts +1 -1
  187. package/types/sdcorejs-angular-forms-input-number.d.ts +12 -2
  188. package/types/sdcorejs-angular-forms-input.d.ts +21 -5
  189. package/types/sdcorejs-angular-forms-label.d.ts +16 -1
  190. package/types/sdcorejs-angular-forms-models.d.ts +16 -1
  191. package/types/sdcorejs-angular-forms-select.d.ts +66 -4
  192. package/types/sdcorejs-angular-forms-textarea.d.ts +9 -2
  193. package/types/sdcorejs-angular-i18n.d.ts +285 -54
  194. package/types/sdcorejs-angular-modules-auth.d.ts +3 -3
  195. package/types/sdcorejs-angular-modules-icon.d.ts +11 -1
  196. package/types/sdcorejs-angular-modules-layout.d.ts +2 -2
  197. package/types/sdcorejs-angular-modules-permission.d.ts +3 -2
  198. package/types/sdcorejs-angular-services-api.d.ts +49 -2
  199. package/types/sdcorejs-angular-services-confirm.d.ts +15 -0
  200. package/types/sdcorejs-angular-services-notify.d.ts +8 -0
  201. package/types/sdcorejs-angular-utilities-extensions.d.ts +68 -1
  202. package/types/sdcorejs-angular-utilities-theme.d.ts +25 -0
  203. package/types/sdcorejs-angular-utilities.d.ts +1 -0
@@ -2,9 +2,9 @@ import { SdButton } from '@sdcorejs/angular/components/button';
2
2
  import * as i1 from '@angular/common';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Directive, input, booleanAttribute, output, signal, viewChild, contentChild, computed, afterNextRender, effect, ChangeDetectionStrategy, Component } from '@angular/core';
5
+ import { Directive, input, booleanAttribute, output, signal, viewChild, contentChild, computed, inject, afterNextRender, effect, ChangeDetectionStrategy, Component } from '@angular/core';
6
6
  import { SdTranslatePipe } from '@sdcorejs/angular/i18n';
7
- import { SdIcon } from '@sdcorejs/angular/modules/icon';
7
+ import { SD_ICON_CONFIGURATION, SdIcon } from '@sdcorejs/angular/modules/icon';
8
8
 
9
9
  /**
10
10
  * Marker cho vùng action custom chiếu vào <sd-inform>.
@@ -49,6 +49,9 @@ class SdInform {
49
49
  icon = input(/* @ts-ignore */
50
50
  ...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
51
51
  hideIcon = input(false, { ...(ngDevMode ? { debugName: "hideIcon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
52
+ /** Hình nền ô icon; bỏ trống thì dùng `defaultShape` của `provideSdIcon` (mặc định `square`). */
53
+ iconShape = input(undefined, /* @ts-ignore */
54
+ ...(ngDevMode ? [{ debugName: "iconShape" }] : /* istanbul ignore next */ []));
52
55
  fontSet = input(undefined, { ...(ngDevMode ? { debugName: "fontSet" } : /* istanbul ignore next */ {}), transform: value => value ?? undefined });
53
56
  closable = input(false, { ...(ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
54
57
  actionLabel = input(/* @ts-ignore */
@@ -106,6 +109,9 @@ class SdInform {
106
109
  return this.icon()?.trim() || SD_INFORM_DEFAULT_ICON[this.effectiveColor()];
107
110
  }, /* @ts-ignore */
108
111
  ...(ngDevMode ? [{ debugName: "effectiveIcon" }] : /* istanbul ignore next */ []));
112
+ #iconConfig = inject(SD_ICON_CONFIGURATION);
113
+ resolvedIconShape = computed(() => this.iconShape() ?? this.#iconConfig.defaultShape, /* @ts-ignore */
114
+ ...(ngDevMode ? [{ debugName: "resolvedIconShape" }] : /* istanbul ignore next */ []));
109
115
  hasActionSlot = computed(() => !!this.actionSlot(), /* @ts-ignore */
110
116
  ...(ngDevMode ? [{ debugName: "hasActionSlot" }] : /* istanbul ignore next */ []));
111
117
  // clamp dòng: null = không clamp (đầy đủ); số = số dòng tối đa.
@@ -183,12 +189,12 @@ class SdInform {
183
189
  this.sdAction.emit(event);
184
190
  }
185
191
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdInform, deps: [], target: i0.ɵɵFactoryTarget.Component });
186
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SdInform, isStandalone: true, selector: "sd-inform", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, primary: { classPropertyName: "primary", publicName: "primary", isSignal: true, isRequired: false, transformFunction: null }, secondary: { classPropertyName: "secondary", publicName: "secondary", isSignal: true, isRequired: false, transformFunction: null }, info: { classPropertyName: "info", publicName: "info", isSignal: true, isRequired: false, transformFunction: null }, success: { classPropertyName: "success", publicName: "success", isSignal: true, isRequired: false, transformFunction: null }, warning: { classPropertyName: "warning", publicName: "warning", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, hideIcon: { classPropertyName: "hideIcon", publicName: "hideIcon", isSignal: true, isRequired: false, transformFunction: null }, fontSet: { classPropertyName: "fontSet", publicName: "fontSet", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, actionLabel: { classPropertyName: "actionLabel", publicName: "actionLabel", isSignal: true, isRequired: false, transformFunction: null }, lineClamp: { classPropertyName: "lineClamp", publicName: "lineClamp", isSignal: true, isRequired: false, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sdClosed: "sdClosed", sdAction: "sdAction" }, queries: [{ propertyName: "actionSlot", first: true, predicate: SdInformActionDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "bodyRef", first: true, predicate: ["body"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (!dismissed()) {\n @let _effectiveIcon = effectiveIcon();\n @let _fontSet = fontSet();\n @let _description = description();\n @let _isTip = type() === 'tip';\n <div\n class=\"c-inform\"\n [class.c-inform-tip]=\"_isTip\"\n [attr.role]=\"liveRole()\"\n [ngClass]=\"colorClasses()\"\n [attr.data-autoId]=\"autoId() || null\"\n [attr.data-autoid]=\"autoId() || null\">\n @if (_effectiveIcon) {\n <span class=\"c-inform-icon-tile\" aria-hidden=\"true\"\n ><sd-icon\n class=\"c-inform-icon c-material-icon\"\n [size]=\"_isTip ? '16px' : '20px'\"\n aria-hidden=\"true\"\n [fontSet]=\"_fontSet\"\n [name]=\"_effectiveIcon\"></sd-icon\n ></span>\n }\n\n @let _actionLabel = actionLabel();\n <div class=\"c-inform-content\" [class.c-inform-content-without-description]=\"!_description\">\n <ng-content>\n @if (title(); as t) {\n <div class=\"c-inform-title\">{{ t }}</div>\n }\n @if (_description; as d) {\n <div #body class=\"c-inform-body\" [class.is-clamped]=\"clampLines() !== null\" [style.-webkit-line-clamp]=\"clampLines()\">\n {{ d }}\n </div>\n }\n @if (showToggle()) {\n <button type=\"button\" class=\"c-inform-toggle\" (click)=\"toggleExpanded()\">\n {{ (expanded() ? 'core.component.inform.show-less' : 'core.component.inform.show-more') | sdTranslate }}\n </button>\n }\n\n @if (hasActionSlot()) {\n <div class=\"c-inform-action\">\n <ng-content select=\"[sdInformAction]\"></ng-content>\n </div>\n } @else if (_actionLabel) {\n <sd-button\n class=\"c-inform-action c-inform-action-link\"\n size=\"sm\"\n type=\"light\"\n color=\"primary\"\n htmlType=\"button\"\n [title]=\"_actionLabel\"\n (click)=\"onAction($event)\"></sd-button>\n }\n </ng-content>\n </div>\n\n @if (closable()) {\n <button type=\"button\" class=\"c-inform-close\" [attr.aria-label]=\"'core.common.close' | sdTranslate\" (click)=\"onClose($event)\">\n <sd-icon aria-hidden=\"true\" name=\"close\"></sd-icon>\n </button>\n }\n </div>\n}\n", styles: [":host{display:block;min-width:0}.c-inform{--inform-tone: var(--sd-primary);--inform-soft: var(--sd-primary-light);--inform-ink: var(--sd-primary-dark);display:flex;align-items:flex-start;gap:12px;padding:16px;border-radius:8px;border:1px solid color-mix(in srgb,var(--inform-tone) 22%,var(--sd-surface, #fff));background:color-mix(in srgb,var(--inform-soft) 28%,var(--sd-surface, #fff))}.c-inform.c-primary{--inform-tone: var(--sd-primary);--inform-soft: var(--sd-primary-light);--inform-ink: var(--sd-primary-dark, var(--sd-primary))}.c-inform.c-secondary{--inform-tone: var(--sd-secondary);--inform-soft: var(--sd-secondary-light);--inform-ink: var(--sd-secondary-dark, var(--sd-secondary))}.c-inform.c-info{--inform-tone: var(--sd-info);--inform-soft: var(--sd-info-light);--inform-ink: var(--sd-info-dark, var(--sd-info))}.c-inform.c-success{--inform-tone: var(--sd-success);--inform-soft: var(--sd-success-light);--inform-ink: var(--sd-success-dark, var(--sd-success))}.c-inform.c-warning{--inform-tone: var(--sd-warning);--inform-soft: var(--sd-warning-light);--inform-ink: var(--sd-warning-dark, var(--sd-warning))}.c-inform.c-error{--inform-tone: var(--sd-error);--inform-soft: var(--sd-error-light);--inform-ink: var(--sd-error-dark, var(--sd-error))}.c-inform-icon-tile{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:var(--inform-soft);color:var(--inform-ink)}.c-inform-icon{width:20px;height:20px;font-size:20px;line-height:20px}.c-inform-content{min-height:32px;justify-content:center;flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.c-inform-title{font-size:14px;line-height:20px;font-weight:600;color:var(--sd-text);overflow-wrap:anywhere}.c-inform-content-without-description .c-inform-title{min-height:32px;display:flex;align-items:center}.c-inform-body{font-size:14px;line-height:21px;color:var(--sd-text);overflow-wrap:anywhere}.c-inform-body.is-clamped{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.c-inform-action{margin-top:8px;align-self:flex-start}.c-inform-toggle{align-self:flex-start;margin-top:4px;padding:4px 0;border:0;background:transparent;font:inherit;font-size:14px;color:var(--sd-primary-dark);cursor:pointer}.c-inform-toggle:hover{text-decoration:underline}.c-inform-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--sd-text-secondary);cursor:pointer}.c-inform-close:hover{background:var(--sd-black100, #f3f4f6);color:var(--sd-text)}.c-inform-close sd-icon{width:18px;height:18px;font-size:18px;line-height:18px}button:focus-visible{outline:2px solid var(--sd-primary);outline-offset:2px}@media(max-width:600px){.c-inform{padding:12px;gap:10px}.c-inform-close{flex-basis:44px;width:44px;height:44px;margin-top:-6px;margin-right:-6px}.c-inform-toggle{min-height:44px}:host ::ng-deep .c-inform-action button{min-height:44px}}.c-inform.c-inform-tip{padding:8px 12px;gap:8px;border:0;border-inline-start:3px solid var(--inform-tone);border-radius:4px;color:var(--sd-text);font-size:13px;line-height:20px}.c-inform.c-inform-tip .c-inform-icon-tile{flex-basis:16px;width:16px;height:16px;margin-top:2px;border-radius:0;background:transparent}.c-inform.c-inform-tip .c-inform-icon{width:16px;height:16px;font-size:16px;line-height:16px}.c-inform.c-inform-tip .c-inform-content{display:block;min-height:20px;font-size:inherit;line-height:inherit;overflow-wrap:anywhere}.c-inform.c-inform-tip .c-inform-title,.c-inform.c-inform-tip .c-inform-body{min-height:0;font-size:inherit;line-height:inherit}.c-inform.c-inform-tip .c-inform-title{display:block}.c-inform.c-inform-tip .c-inform-action{display:block;margin-top:4px}.c-inform.c-inform-tip .c-inform-close{margin-block:-6px;margin-inline-end:-6px}@media(max-width:600px){.c-inform.c-inform-tip .c-inform-close{margin-block:-8px}}:host ::ng-deep .c-inform-tip .c-inform-content strong,:host ::ng-deep .c-inform-tip .c-inform-content b{font-weight:600}:host ::ng-deep .c-inform-tip .c-inform-content code{padding:1px 4px;border-radius:3px;background:var(--inform-soft);color:inherit;font-size:.92em;white-space:normal;overflow-wrap:anywhere}:host ::ng-deep .c-inform-tip .c-inform-content a{color:var(--inform-ink);text-decoration:underline;text-underline-offset:2px}:host ::ng-deep .c-inform-tip .c-inform-content a:focus-visible{outline:2px solid var(--inform-tone);outline-offset:2px}\n"], dependencies: [{ kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType"], outputs: ["click"] }, { kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
192
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SdInform, isStandalone: true, selector: "sd-inform", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, primary: { classPropertyName: "primary", publicName: "primary", isSignal: true, isRequired: false, transformFunction: null }, secondary: { classPropertyName: "secondary", publicName: "secondary", isSignal: true, isRequired: false, transformFunction: null }, info: { classPropertyName: "info", publicName: "info", isSignal: true, isRequired: false, transformFunction: null }, success: { classPropertyName: "success", publicName: "success", isSignal: true, isRequired: false, transformFunction: null }, warning: { classPropertyName: "warning", publicName: "warning", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, hideIcon: { classPropertyName: "hideIcon", publicName: "hideIcon", isSignal: true, isRequired: false, transformFunction: null }, iconShape: { classPropertyName: "iconShape", publicName: "iconShape", isSignal: true, isRequired: false, transformFunction: null }, fontSet: { classPropertyName: "fontSet", publicName: "fontSet", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, actionLabel: { classPropertyName: "actionLabel", publicName: "actionLabel", isSignal: true, isRequired: false, transformFunction: null }, lineClamp: { classPropertyName: "lineClamp", publicName: "lineClamp", isSignal: true, isRequired: false, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sdClosed: "sdClosed", sdAction: "sdAction" }, queries: [{ propertyName: "actionSlot", first: true, predicate: SdInformActionDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "bodyRef", first: true, predicate: ["body"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (!dismissed()) {\n @let _effectiveIcon = effectiveIcon();\n @let _fontSet = fontSet();\n @let _description = description();\n @let _isTip = type() === 'tip';\n <div\n class=\"c-inform\"\n [class.c-inform-tip]=\"_isTip\"\n [attr.role]=\"liveRole()\"\n [ngClass]=\"colorClasses()\"\n [attr.data-autoId]=\"autoId() || null\"\n [attr.data-autoid]=\"autoId() || null\">\n @if (_effectiveIcon) {\n <span class=\"c-inform-icon-tile\" aria-hidden=\"true\" [attr.data-icon-shape]=\"resolvedIconShape()\"\n ><sd-icon\n class=\"c-inform-icon c-material-icon\"\n [size]=\"_isTip ? '16px' : '20px'\"\n aria-hidden=\"true\"\n [fontSet]=\"_fontSet\"\n [name]=\"_effectiveIcon\"></sd-icon\n ></span>\n }\n\n @let _actionLabel = actionLabel();\n <div class=\"c-inform-content\" [class.c-inform-content-without-description]=\"!_description\">\n <ng-content>\n @if (title(); as t) {\n <div class=\"c-inform-title\">{{ t }}</div>\n }\n @if (_description; as d) {\n <div #body class=\"c-inform-body\" [class.is-clamped]=\"clampLines() !== null\" [style.-webkit-line-clamp]=\"clampLines()\">\n {{ d }}\n </div>\n }\n @if (showToggle()) {\n <button type=\"button\" class=\"c-inform-toggle\" (click)=\"toggleExpanded()\">\n {{ (expanded() ? 'core.component.inform.show-less' : 'core.component.inform.show-more') | sdTranslate }}\n </button>\n }\n\n @if (hasActionSlot()) {\n <div class=\"c-inform-action\">\n <ng-content select=\"[sdInformAction]\"></ng-content>\n </div>\n } @else if (_actionLabel) {\n <sd-button\n class=\"c-inform-action c-inform-action-link\"\n size=\"sm\"\n type=\"light\"\n color=\"primary\"\n htmlType=\"button\"\n [title]=\"_actionLabel\"\n (click)=\"onAction($event)\"></sd-button>\n }\n </ng-content>\n </div>\n\n @if (closable()) {\n <button type=\"button\" class=\"c-inform-close\" [attr.aria-label]=\"'core.common.close' | sdTranslate\" (click)=\"onClose($event)\">\n <sd-icon aria-hidden=\"true\" name=\"close\"></sd-icon>\n </button>\n }\n </div>\n}\n", styles: [":host{display:block;min-width:0}.c-inform{--inform-tone: var(--sd-primary);--inform-soft: var(--sd-primary-light);--inform-ink: var(--sd-primary-dark);display:flex;align-items:flex-start;gap:12px;padding:16px;border-radius:var(--sd-radius-8, 8px);border:1px solid color-mix(in srgb,var(--inform-tone) 22%,var(--sd-surface, #fff));background:color-mix(in srgb,var(--inform-soft) 28%,var(--sd-surface, #fff))}.c-inform.c-primary{--inform-tone: var(--sd-primary);--inform-soft: var(--sd-primary-light);--inform-ink: var(--sd-primary-dark, var(--sd-primary))}.c-inform.c-secondary{--inform-tone: var(--sd-secondary);--inform-soft: var(--sd-secondary-light);--inform-ink: var(--sd-secondary-dark, var(--sd-secondary))}.c-inform.c-info{--inform-tone: var(--sd-info);--inform-soft: var(--sd-info-light);--inform-ink: var(--sd-info-dark, var(--sd-info))}.c-inform.c-success{--inform-tone: var(--sd-success);--inform-soft: var(--sd-success-light);--inform-ink: var(--sd-success-dark, var(--sd-success))}.c-inform.c-warning{--inform-tone: var(--sd-warning);--inform-soft: var(--sd-warning-light);--inform-ink: var(--sd-warning-dark, var(--sd-warning))}.c-inform.c-error{--inform-tone: var(--sd-error);--inform-soft: var(--sd-error-light);--inform-ink: var(--sd-error-dark, var(--sd-error))}.c-inform-icon-tile{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:var(--sd-icon-shape-radius, var(--sd-radius-8, 8px));background:var(--inform-soft);color:var(--inform-ink)}.c-inform-icon-tile[data-icon-shape=circle]{border-radius:50%}.c-inform-icon-tile[data-icon-shape=none]{background:transparent}.c-inform-icon{width:20px;height:20px;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-20, 20px)}.c-inform-content{min-height:32px;justify-content:center;flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.c-inform-title{font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);font-weight:var(--sd-font-weight-semibold, 600);color:var(--sd-text);overflow-wrap:anywhere}.c-inform-content-without-description .c-inform-title{min-height:32px;display:flex;align-items:center}.c-inform-body{font-size:var(--sd-font-size-14, 14px);line-height:21px;color:var(--sd-text);overflow-wrap:anywhere}.c-inform-body.is-clamped{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.c-inform-action{margin-top:8px;align-self:flex-start}.c-inform-toggle{align-self:flex-start;margin-top:4px;padding:4px 0;border:0;background:transparent;font:inherit;font-size:var(--sd-font-size-14, 14px);color:var(--sd-primary-dark);cursor:pointer}.c-inform-toggle:hover{text-decoration:underline}.c-inform-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:0;border-radius:var(--sd-radius-6, 6px);background:transparent;color:var(--sd-text-secondary);cursor:pointer}.c-inform-close:hover{background:var(--sd-black100, #f3f4f6);color:var(--sd-text)}.c-inform-close sd-icon{width:18px;height:18px;font-size:var(--sd-font-size-18, 18px);line-height:var(--sd-line-height-18, 18px)}button:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}@media(max-width:600px){.c-inform{padding:12px;gap:10px}.c-inform-close{flex-basis:44px;width:44px;height:44px;margin-top:-6px;margin-right:-6px}.c-inform-toggle{min-height:44px}:host ::ng-deep .c-inform-action button{min-height:44px}}.c-inform.c-inform-tip{padding:8px 12px;gap:8px;border:0;border-inline-start:3px solid var(--inform-tone);border-radius:var(--sd-radius-4, 4px);color:var(--sd-text);font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-20, 20px)}.c-inform.c-inform-tip .c-inform-icon-tile{flex-basis:16px;width:16px;height:16px;margin-top:2px;border-radius:0;background:transparent}.c-inform.c-inform-tip .c-inform-icon{width:16px;height:16px;font-size:var(--sd-font-size-16, 16px);line-height:var(--sd-line-height-16, 16px)}.c-inform.c-inform-tip .c-inform-content{display:block;min-height:20px;font-size:inherit;line-height:inherit;overflow-wrap:anywhere}.c-inform.c-inform-tip .c-inform-title,.c-inform.c-inform-tip .c-inform-body{min-height:0;font-size:inherit;line-height:inherit}.c-inform.c-inform-tip .c-inform-title{display:block}.c-inform.c-inform-tip .c-inform-action{display:block;margin-top:4px}.c-inform.c-inform-tip .c-inform-close{margin-block:-6px;margin-inline-end:-6px}@media(max-width:600px){.c-inform.c-inform-tip .c-inform-close{margin-block:-8px}}:host ::ng-deep .c-inform-tip .c-inform-content strong,:host ::ng-deep .c-inform-tip .c-inform-content b{font-weight:var(--sd-font-weight-semibold, 600)}:host ::ng-deep .c-inform-tip .c-inform-content code{padding:1px 4px;border-radius:3px;background:var(--inform-soft);color:inherit;font-size:.92em;white-space:normal;overflow-wrap:anywhere}:host ::ng-deep .c-inform-tip .c-inform-content a{color:var(--inform-ink);text-decoration:underline;text-underline-offset:2px}:host ::ng-deep .c-inform-tip .c-inform-content a:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--inform-tone, var(--sd-focus-ring-color, var(--sd-primary)));outline-offset:2px}\n"], dependencies: [{ kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType"], outputs: ["click"] }, { kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
187
193
  }
188
194
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdInform, decorators: [{
189
195
  type: Component,
190
- args: [{ selector: 'sd-inform', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [SdButton, SdIcon, CommonModule, SdTranslatePipe], template: "@if (!dismissed()) {\n @let _effectiveIcon = effectiveIcon();\n @let _fontSet = fontSet();\n @let _description = description();\n @let _isTip = type() === 'tip';\n <div\n class=\"c-inform\"\n [class.c-inform-tip]=\"_isTip\"\n [attr.role]=\"liveRole()\"\n [ngClass]=\"colorClasses()\"\n [attr.data-autoId]=\"autoId() || null\"\n [attr.data-autoid]=\"autoId() || null\">\n @if (_effectiveIcon) {\n <span class=\"c-inform-icon-tile\" aria-hidden=\"true\"\n ><sd-icon\n class=\"c-inform-icon c-material-icon\"\n [size]=\"_isTip ? '16px' : '20px'\"\n aria-hidden=\"true\"\n [fontSet]=\"_fontSet\"\n [name]=\"_effectiveIcon\"></sd-icon\n ></span>\n }\n\n @let _actionLabel = actionLabel();\n <div class=\"c-inform-content\" [class.c-inform-content-without-description]=\"!_description\">\n <ng-content>\n @if (title(); as t) {\n <div class=\"c-inform-title\">{{ t }}</div>\n }\n @if (_description; as d) {\n <div #body class=\"c-inform-body\" [class.is-clamped]=\"clampLines() !== null\" [style.-webkit-line-clamp]=\"clampLines()\">\n {{ d }}\n </div>\n }\n @if (showToggle()) {\n <button type=\"button\" class=\"c-inform-toggle\" (click)=\"toggleExpanded()\">\n {{ (expanded() ? 'core.component.inform.show-less' : 'core.component.inform.show-more') | sdTranslate }}\n </button>\n }\n\n @if (hasActionSlot()) {\n <div class=\"c-inform-action\">\n <ng-content select=\"[sdInformAction]\"></ng-content>\n </div>\n } @else if (_actionLabel) {\n <sd-button\n class=\"c-inform-action c-inform-action-link\"\n size=\"sm\"\n type=\"light\"\n color=\"primary\"\n htmlType=\"button\"\n [title]=\"_actionLabel\"\n (click)=\"onAction($event)\"></sd-button>\n }\n </ng-content>\n </div>\n\n @if (closable()) {\n <button type=\"button\" class=\"c-inform-close\" [attr.aria-label]=\"'core.common.close' | sdTranslate\" (click)=\"onClose($event)\">\n <sd-icon aria-hidden=\"true\" name=\"close\"></sd-icon>\n </button>\n }\n </div>\n}\n", styles: [":host{display:block;min-width:0}.c-inform{--inform-tone: var(--sd-primary);--inform-soft: var(--sd-primary-light);--inform-ink: var(--sd-primary-dark);display:flex;align-items:flex-start;gap:12px;padding:16px;border-radius:8px;border:1px solid color-mix(in srgb,var(--inform-tone) 22%,var(--sd-surface, #fff));background:color-mix(in srgb,var(--inform-soft) 28%,var(--sd-surface, #fff))}.c-inform.c-primary{--inform-tone: var(--sd-primary);--inform-soft: var(--sd-primary-light);--inform-ink: var(--sd-primary-dark, var(--sd-primary))}.c-inform.c-secondary{--inform-tone: var(--sd-secondary);--inform-soft: var(--sd-secondary-light);--inform-ink: var(--sd-secondary-dark, var(--sd-secondary))}.c-inform.c-info{--inform-tone: var(--sd-info);--inform-soft: var(--sd-info-light);--inform-ink: var(--sd-info-dark, var(--sd-info))}.c-inform.c-success{--inform-tone: var(--sd-success);--inform-soft: var(--sd-success-light);--inform-ink: var(--sd-success-dark, var(--sd-success))}.c-inform.c-warning{--inform-tone: var(--sd-warning);--inform-soft: var(--sd-warning-light);--inform-ink: var(--sd-warning-dark, var(--sd-warning))}.c-inform.c-error{--inform-tone: var(--sd-error);--inform-soft: var(--sd-error-light);--inform-ink: var(--sd-error-dark, var(--sd-error))}.c-inform-icon-tile{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:var(--inform-soft);color:var(--inform-ink)}.c-inform-icon{width:20px;height:20px;font-size:20px;line-height:20px}.c-inform-content{min-height:32px;justify-content:center;flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.c-inform-title{font-size:14px;line-height:20px;font-weight:600;color:var(--sd-text);overflow-wrap:anywhere}.c-inform-content-without-description .c-inform-title{min-height:32px;display:flex;align-items:center}.c-inform-body{font-size:14px;line-height:21px;color:var(--sd-text);overflow-wrap:anywhere}.c-inform-body.is-clamped{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.c-inform-action{margin-top:8px;align-self:flex-start}.c-inform-toggle{align-self:flex-start;margin-top:4px;padding:4px 0;border:0;background:transparent;font:inherit;font-size:14px;color:var(--sd-primary-dark);cursor:pointer}.c-inform-toggle:hover{text-decoration:underline}.c-inform-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--sd-text-secondary);cursor:pointer}.c-inform-close:hover{background:var(--sd-black100, #f3f4f6);color:var(--sd-text)}.c-inform-close sd-icon{width:18px;height:18px;font-size:18px;line-height:18px}button:focus-visible{outline:2px solid var(--sd-primary);outline-offset:2px}@media(max-width:600px){.c-inform{padding:12px;gap:10px}.c-inform-close{flex-basis:44px;width:44px;height:44px;margin-top:-6px;margin-right:-6px}.c-inform-toggle{min-height:44px}:host ::ng-deep .c-inform-action button{min-height:44px}}.c-inform.c-inform-tip{padding:8px 12px;gap:8px;border:0;border-inline-start:3px solid var(--inform-tone);border-radius:4px;color:var(--sd-text);font-size:13px;line-height:20px}.c-inform.c-inform-tip .c-inform-icon-tile{flex-basis:16px;width:16px;height:16px;margin-top:2px;border-radius:0;background:transparent}.c-inform.c-inform-tip .c-inform-icon{width:16px;height:16px;font-size:16px;line-height:16px}.c-inform.c-inform-tip .c-inform-content{display:block;min-height:20px;font-size:inherit;line-height:inherit;overflow-wrap:anywhere}.c-inform.c-inform-tip .c-inform-title,.c-inform.c-inform-tip .c-inform-body{min-height:0;font-size:inherit;line-height:inherit}.c-inform.c-inform-tip .c-inform-title{display:block}.c-inform.c-inform-tip .c-inform-action{display:block;margin-top:4px}.c-inform.c-inform-tip .c-inform-close{margin-block:-6px;margin-inline-end:-6px}@media(max-width:600px){.c-inform.c-inform-tip .c-inform-close{margin-block:-8px}}:host ::ng-deep .c-inform-tip .c-inform-content strong,:host ::ng-deep .c-inform-tip .c-inform-content b{font-weight:600}:host ::ng-deep .c-inform-tip .c-inform-content code{padding:1px 4px;border-radius:3px;background:var(--inform-soft);color:inherit;font-size:.92em;white-space:normal;overflow-wrap:anywhere}:host ::ng-deep .c-inform-tip .c-inform-content a{color:var(--inform-ink);text-decoration:underline;text-underline-offset:2px}:host ::ng-deep .c-inform-tip .c-inform-content a:focus-visible{outline:2px solid var(--inform-tone);outline-offset:2px}\n"] }]
191
- }], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], primary: [{ type: i0.Input, args: [{ isSignal: true, alias: "primary", required: false }] }], secondary: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondary", required: false }] }], info: [{ type: i0.Input, args: [{ isSignal: true, alias: "info", required: false }] }], success: [{ type: i0.Input, args: [{ isSignal: true, alias: "success", required: false }] }], warning: [{ type: i0.Input, args: [{ isSignal: true, alias: "warning", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], hideIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideIcon", required: false }] }], fontSet: [{ type: i0.Input, args: [{ isSignal: true, alias: "fontSet", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], actionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionLabel", required: false }] }], lineClamp: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineClamp", required: false }] }], autoId: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], sdClosed: [{ type: i0.Output, args: ["sdClosed"] }], sdAction: [{ type: i0.Output, args: ["sdAction"] }], bodyRef: [{ type: i0.ViewChild, args: ['body', { isSignal: true }] }], actionSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdInformActionDirective), { isSignal: true }] }] } });
196
+ args: [{ selector: 'sd-inform', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [SdButton, SdIcon, CommonModule, SdTranslatePipe], template: "@if (!dismissed()) {\n @let _effectiveIcon = effectiveIcon();\n @let _fontSet = fontSet();\n @let _description = description();\n @let _isTip = type() === 'tip';\n <div\n class=\"c-inform\"\n [class.c-inform-tip]=\"_isTip\"\n [attr.role]=\"liveRole()\"\n [ngClass]=\"colorClasses()\"\n [attr.data-autoId]=\"autoId() || null\"\n [attr.data-autoid]=\"autoId() || null\">\n @if (_effectiveIcon) {\n <span class=\"c-inform-icon-tile\" aria-hidden=\"true\" [attr.data-icon-shape]=\"resolvedIconShape()\"\n ><sd-icon\n class=\"c-inform-icon c-material-icon\"\n [size]=\"_isTip ? '16px' : '20px'\"\n aria-hidden=\"true\"\n [fontSet]=\"_fontSet\"\n [name]=\"_effectiveIcon\"></sd-icon\n ></span>\n }\n\n @let _actionLabel = actionLabel();\n <div class=\"c-inform-content\" [class.c-inform-content-without-description]=\"!_description\">\n <ng-content>\n @if (title(); as t) {\n <div class=\"c-inform-title\">{{ t }}</div>\n }\n @if (_description; as d) {\n <div #body class=\"c-inform-body\" [class.is-clamped]=\"clampLines() !== null\" [style.-webkit-line-clamp]=\"clampLines()\">\n {{ d }}\n </div>\n }\n @if (showToggle()) {\n <button type=\"button\" class=\"c-inform-toggle\" (click)=\"toggleExpanded()\">\n {{ (expanded() ? 'core.component.inform.show-less' : 'core.component.inform.show-more') | sdTranslate }}\n </button>\n }\n\n @if (hasActionSlot()) {\n <div class=\"c-inform-action\">\n <ng-content select=\"[sdInformAction]\"></ng-content>\n </div>\n } @else if (_actionLabel) {\n <sd-button\n class=\"c-inform-action c-inform-action-link\"\n size=\"sm\"\n type=\"light\"\n color=\"primary\"\n htmlType=\"button\"\n [title]=\"_actionLabel\"\n (click)=\"onAction($event)\"></sd-button>\n }\n </ng-content>\n </div>\n\n @if (closable()) {\n <button type=\"button\" class=\"c-inform-close\" [attr.aria-label]=\"'core.common.close' | sdTranslate\" (click)=\"onClose($event)\">\n <sd-icon aria-hidden=\"true\" name=\"close\"></sd-icon>\n </button>\n }\n </div>\n}\n", styles: [":host{display:block;min-width:0}.c-inform{--inform-tone: var(--sd-primary);--inform-soft: var(--sd-primary-light);--inform-ink: var(--sd-primary-dark);display:flex;align-items:flex-start;gap:12px;padding:16px;border-radius:var(--sd-radius-8, 8px);border:1px solid color-mix(in srgb,var(--inform-tone) 22%,var(--sd-surface, #fff));background:color-mix(in srgb,var(--inform-soft) 28%,var(--sd-surface, #fff))}.c-inform.c-primary{--inform-tone: var(--sd-primary);--inform-soft: var(--sd-primary-light);--inform-ink: var(--sd-primary-dark, var(--sd-primary))}.c-inform.c-secondary{--inform-tone: var(--sd-secondary);--inform-soft: var(--sd-secondary-light);--inform-ink: var(--sd-secondary-dark, var(--sd-secondary))}.c-inform.c-info{--inform-tone: var(--sd-info);--inform-soft: var(--sd-info-light);--inform-ink: var(--sd-info-dark, var(--sd-info))}.c-inform.c-success{--inform-tone: var(--sd-success);--inform-soft: var(--sd-success-light);--inform-ink: var(--sd-success-dark, var(--sd-success))}.c-inform.c-warning{--inform-tone: var(--sd-warning);--inform-soft: var(--sd-warning-light);--inform-ink: var(--sd-warning-dark, var(--sd-warning))}.c-inform.c-error{--inform-tone: var(--sd-error);--inform-soft: var(--sd-error-light);--inform-ink: var(--sd-error-dark, var(--sd-error))}.c-inform-icon-tile{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:var(--sd-icon-shape-radius, var(--sd-radius-8, 8px));background:var(--inform-soft);color:var(--inform-ink)}.c-inform-icon-tile[data-icon-shape=circle]{border-radius:50%}.c-inform-icon-tile[data-icon-shape=none]{background:transparent}.c-inform-icon{width:20px;height:20px;font-size:var(--sd-font-size-20, 20px);line-height:var(--sd-line-height-20, 20px)}.c-inform-content{min-height:32px;justify-content:center;flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.c-inform-title{font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);font-weight:var(--sd-font-weight-semibold, 600);color:var(--sd-text);overflow-wrap:anywhere}.c-inform-content-without-description .c-inform-title{min-height:32px;display:flex;align-items:center}.c-inform-body{font-size:var(--sd-font-size-14, 14px);line-height:21px;color:var(--sd-text);overflow-wrap:anywhere}.c-inform-body.is-clamped{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.c-inform-action{margin-top:8px;align-self:flex-start}.c-inform-toggle{align-self:flex-start;margin-top:4px;padding:4px 0;border:0;background:transparent;font:inherit;font-size:var(--sd-font-size-14, 14px);color:var(--sd-primary-dark);cursor:pointer}.c-inform-toggle:hover{text-decoration:underline}.c-inform-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:0;border-radius:var(--sd-radius-6, 6px);background:transparent;color:var(--sd-text-secondary);cursor:pointer}.c-inform-close:hover{background:var(--sd-black100, #f3f4f6);color:var(--sd-text)}.c-inform-close sd-icon{width:18px;height:18px;font-size:var(--sd-font-size-18, 18px);line-height:var(--sd-line-height-18, 18px)}button:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}@media(max-width:600px){.c-inform{padding:12px;gap:10px}.c-inform-close{flex-basis:44px;width:44px;height:44px;margin-top:-6px;margin-right:-6px}.c-inform-toggle{min-height:44px}:host ::ng-deep .c-inform-action button{min-height:44px}}.c-inform.c-inform-tip{padding:8px 12px;gap:8px;border:0;border-inline-start:3px solid var(--inform-tone);border-radius:var(--sd-radius-4, 4px);color:var(--sd-text);font-size:var(--sd-font-size-13, 13px);line-height:var(--sd-line-height-20, 20px)}.c-inform.c-inform-tip .c-inform-icon-tile{flex-basis:16px;width:16px;height:16px;margin-top:2px;border-radius:0;background:transparent}.c-inform.c-inform-tip .c-inform-icon{width:16px;height:16px;font-size:var(--sd-font-size-16, 16px);line-height:var(--sd-line-height-16, 16px)}.c-inform.c-inform-tip .c-inform-content{display:block;min-height:20px;font-size:inherit;line-height:inherit;overflow-wrap:anywhere}.c-inform.c-inform-tip .c-inform-title,.c-inform.c-inform-tip .c-inform-body{min-height:0;font-size:inherit;line-height:inherit}.c-inform.c-inform-tip .c-inform-title{display:block}.c-inform.c-inform-tip .c-inform-action{display:block;margin-top:4px}.c-inform.c-inform-tip .c-inform-close{margin-block:-6px;margin-inline-end:-6px}@media(max-width:600px){.c-inform.c-inform-tip .c-inform-close{margin-block:-8px}}:host ::ng-deep .c-inform-tip .c-inform-content strong,:host ::ng-deep .c-inform-tip .c-inform-content b{font-weight:var(--sd-font-weight-semibold, 600)}:host ::ng-deep .c-inform-tip .c-inform-content code{padding:1px 4px;border-radius:3px;background:var(--inform-soft);color:inherit;font-size:.92em;white-space:normal;overflow-wrap:anywhere}:host ::ng-deep .c-inform-tip .c-inform-content a{color:var(--inform-ink);text-decoration:underline;text-underline-offset:2px}:host ::ng-deep .c-inform-tip .c-inform-content a:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--inform-tone, var(--sd-focus-ring-color, var(--sd-primary)));outline-offset:2px}\n"] }]
197
+ }], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], primary: [{ type: i0.Input, args: [{ isSignal: true, alias: "primary", required: false }] }], secondary: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondary", required: false }] }], info: [{ type: i0.Input, args: [{ isSignal: true, alias: "info", required: false }] }], success: [{ type: i0.Input, args: [{ isSignal: true, alias: "success", required: false }] }], warning: [{ type: i0.Input, args: [{ isSignal: true, alias: "warning", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], hideIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideIcon", required: false }] }], iconShape: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconShape", required: false }] }], fontSet: [{ type: i0.Input, args: [{ isSignal: true, alias: "fontSet", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], actionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionLabel", required: false }] }], lineClamp: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineClamp", required: false }] }], autoId: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], sdClosed: [{ type: i0.Output, args: ["sdClosed"] }], sdAction: [{ type: i0.Output, args: ["sdAction"] }], bodyRef: [{ type: i0.ViewChild, args: ['body', { isSignal: true }] }], actionSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdInformActionDirective), { isSignal: true }] }] } });
192
198
 
193
199
  /**
194
200
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"sdcorejs-angular-components-inform.mjs","sources":["../../../projects/sdcorejs-angular/components/inform/src/inform-action.directive.ts","../../../projects/sdcorejs-angular/components/inform/src/inform.component.ts","../../../projects/sdcorejs-angular/components/inform/src/inform.component.html","../../../projects/sdcorejs-angular/components/inform/sdcorejs-angular-components-inform.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * Marker cho vùng action custom chiếu vào <sd-inform>.\n * Khi có phần tử mang [sdInformAction], component ẩn link `actionLabel` mặc định.\n */\n@Directive({\n selector: '[sdInformAction]',\n standalone: true,\n})\nexport class SdInformActionDirective {}\n","import { SdButton } from '@sdcorejs/angular/components/button';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Color } from '@sdcorejs/utils/models';\nimport { SdTranslatePipe } from '@sdcorejs/angular/i18n';\nimport { SdInformActionDirective } from './inform-action.directive';\nimport { SdIcon, type SdIconSet } from '@sdcorejs/angular/modules/icon';\n\nexport type SdInformType = 'default' | 'tip';\n\n// why: mỗi color có icon trạng thái mặc định khi consumer không truyền [icon].\nconst SD_INFORM_DEFAULT_ICON: Record<Color, string> = {\n primary: 'info',\n secondary: 'info',\n info: 'info',\n success: 'check_circle',\n warning: 'warning_amber',\n error: 'report_gmailerrorred',\n};\n\n@Component({\n selector: 'sd-inform',\n templateUrl: './inform.component.html',\n styleUrl: './inform.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n imports: [SdButton, SdIcon, CommonModule, SdTranslatePipe],\n})\nexport class SdInform {\n // 1. INPUTS\n /** Compact non-live guidance; omitted type preserves the standard banner. */\n type = input<SdInformType, SdInformType | undefined | null>('default', {\n transform: value => value ?? 'default',\n });\n\n color = input<Color, Color | undefined | null>('primary', {\n transform: value => value || 'primary',\n });\n\n primary = input(false, { transform: booleanAttribute });\n secondary = input(false, { transform: booleanAttribute });\n info = input(false, { transform: booleanAttribute });\n success = input(false, { transform: booleanAttribute });\n warning = input(false, { transform: booleanAttribute });\n error = input(false, { transform: booleanAttribute });\n\n title = input<string | undefined>();\n description = input<string | undefined>();\n icon = input<string | undefined>();\n hideIcon = input(false, { transform: booleanAttribute });\n\n fontSet = input<SdIconSet | undefined, SdIconSet | undefined | null>(undefined, {\n transform: value => value ?? undefined,\n });\n\n closable = input(false, { transform: booleanAttribute });\n actionLabel = input<string | undefined>();\n lineClamp = input<number | undefined>();\n autoId = input<string | undefined>();\n\n // 2. OUTPUTS\n sdClosed = output<Event>();\n sdAction = output<Event>();\n\n // 3. STATE\n readonly dismissed = signal(false);\n readonly expanded = signal(false);\n readonly overflowing = signal(false);\n\n protected readonly bodyRef = viewChild<ElementRef<HTMLElement>>('body');\n protected readonly actionSlot = contentChild(SdInformActionDirective);\n\n // 4. COMPUTED\n effectiveColor = computed<Color>(() => {\n if (this.primary()) return 'primary';\n if (this.secondary()) return 'secondary';\n if (this.info()) return 'info';\n if (this.success()) return 'success';\n if (this.warning()) return 'warning';\n if (this.error()) return 'error';\n return this.color();\n });\n\n colorClasses = computed(() => {\n const c = this.effectiveColor();\n return {\n 'c-primary': c === 'primary',\n 'c-secondary': c === 'secondary',\n 'c-info': c === 'info',\n 'c-success': c === 'success',\n 'c-warning': c === 'warning',\n 'c-error': c === 'error',\n };\n });\n\n effectiveIcon = computed<string | null>(() => {\n if (this.hideIcon()) return null;\n return this.icon()?.trim() || SD_INFORM_DEFAULT_ICON[this.effectiveColor()];\n });\n\n hasActionSlot = computed(() => !!this.actionSlot());\n\n // clamp dòng: null = không clamp (đầy đủ); số = số dòng tối đa.\n clampLines = computed<number | null>(() => {\n const n = this.lineClamp();\n if (!n || n <= 0) return null;\n return this.expanded() ? null : n;\n });\n\n // toggle hiện khi đang clamp và đã từng tràn, hoặc đang mở rộng (để còn thu gọn lại).\n showToggle = computed(() => {\n if (!this.lineClamp()) return false;\n return this.overflowing() || this.expanded();\n });\n\n // why: error/warning là cảnh báo → assertive 'alert'; các màu còn lại là thông tin → polite 'status'.\n liveRole = computed<'alert' | 'status' | 'note'>(() => {\n if (this.type() === 'tip') return 'note';\n const c = this.effectiveColor();\n return c === 'error' || c === 'warning' ? 'alert' : 'status';\n });\n\n // 5. OVERFLOW MEASUREMENT\n #measureScheduled = false;\n\n constructor() {\n // đo lần đầu sau render\n afterNextRender(() => this.measureOverflow());\n // why: re-đo khi nội dung/clamp/expanded đổi; đồng thời gắn ResizeObserver để bắt thay đổi kích thước container (responsive).\n effect(onCleanup => {\n this.description();\n this.lineClamp();\n this.expanded();\n const el = this.bodyRef()?.nativeElement;\n this.#scheduleMeasure();\n // why: guard instanceof Element để test stub (plain object) không làm ResizeObserver.observe ném lỗi.\n if (el instanceof Element && typeof ResizeObserver !== 'undefined') {\n const ro = new ResizeObserver(() => this.measureOverflow());\n ro.observe(el);\n onCleanup(() => ro.disconnect());\n }\n });\n }\n\n #scheduleMeasure(): void {\n if (this.#measureScheduled) return;\n this.#measureScheduled = true;\n // gom nhiều thay đổi vào 1 lần đo sau khi DOM cập nhật xong\n queueMicrotask(() => {\n this.#measureScheduled = false;\n this.measureOverflow();\n });\n }\n\n /** Đo tràn dòng của body; chỉ có ý nghĩa khi đang clamp. */\n measureOverflow(): void {\n const el = this.bodyRef()?.nativeElement;\n if (!el || this.expanded() || !this.lineClamp()) return;\n // +1 chống sai số làm tròn sub-pixel\n this.overflowing.set(el.scrollHeight > el.clientHeight + 1);\n }\n\n // 6. HANDLERS\n toggleExpanded(): void {\n this.expanded.update(v => !v);\n }\n\n onClose(event: Event): void {\n event.stopPropagation();\n this.dismissed.set(true);\n this.sdClosed.emit(event);\n }\n\n onAction(event: Event): void {\n event.stopPropagation();\n this.sdAction.emit(event);\n }\n}\n","@if (!dismissed()) {\n @let _effectiveIcon = effectiveIcon();\n @let _fontSet = fontSet();\n @let _description = description();\n @let _isTip = type() === 'tip';\n <div\n class=\"c-inform\"\n [class.c-inform-tip]=\"_isTip\"\n [attr.role]=\"liveRole()\"\n [ngClass]=\"colorClasses()\"\n [attr.data-autoId]=\"autoId() || null\"\n [attr.data-autoid]=\"autoId() || null\">\n @if (_effectiveIcon) {\n <span class=\"c-inform-icon-tile\" aria-hidden=\"true\"\n ><sd-icon\n class=\"c-inform-icon c-material-icon\"\n [size]=\"_isTip ? '16px' : '20px'\"\n aria-hidden=\"true\"\n [fontSet]=\"_fontSet\"\n [name]=\"_effectiveIcon\"></sd-icon\n ></span>\n }\n\n @let _actionLabel = actionLabel();\n <div class=\"c-inform-content\" [class.c-inform-content-without-description]=\"!_description\">\n <ng-content>\n @if (title(); as t) {\n <div class=\"c-inform-title\">{{ t }}</div>\n }\n @if (_description; as d) {\n <div #body class=\"c-inform-body\" [class.is-clamped]=\"clampLines() !== null\" [style.-webkit-line-clamp]=\"clampLines()\">\n {{ d }}\n </div>\n }\n @if (showToggle()) {\n <button type=\"button\" class=\"c-inform-toggle\" (click)=\"toggleExpanded()\">\n {{ (expanded() ? 'core.component.inform.show-less' : 'core.component.inform.show-more') | sdTranslate }}\n </button>\n }\n\n @if (hasActionSlot()) {\n <div class=\"c-inform-action\">\n <ng-content select=\"[sdInformAction]\"></ng-content>\n </div>\n } @else if (_actionLabel) {\n <sd-button\n class=\"c-inform-action c-inform-action-link\"\n size=\"sm\"\n type=\"light\"\n color=\"primary\"\n htmlType=\"button\"\n [title]=\"_actionLabel\"\n (click)=\"onAction($event)\"></sd-button>\n }\n </ng-content>\n </div>\n\n @if (closable()) {\n <button type=\"button\" class=\"c-inform-close\" [attr.aria-label]=\"'core.common.close' | sdTranslate\" (click)=\"onClose($event)\">\n <sd-icon aria-hidden=\"true\" name=\"close\"></sd-icon>\n </button>\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEA;;;AAGG;MAKU,uBAAuB,CAAA;uGAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACcD;AACA,MAAM,sBAAsB,GAA0B;AACpD,IAAA,OAAO,EAAE,MAAM;AACf,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,OAAO,EAAE,cAAc;AACvB,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,KAAK,EAAE,sBAAsB;CAC9B;MAUY,QAAQ,CAAA;;;AAGnB,IAAA,IAAI,GAAG,KAAK,CAAgD,SAAS,4EACnE,SAAS,EAAE,KAAK,IAAI,KAAK,IAAI,SAAS,GACtC;AAEF,IAAA,KAAK,GAAG,KAAK,CAAkC,SAAS,6EACtD,SAAS,EAAE,KAAK,IAAI,KAAK,IAAI,SAAS,GACtC;IAEF,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACvD,SAAS,GAAG,KAAK,CAAC,KAAK,iFA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,EAAA,CAAA,UAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,MAAM,2FACzB,uBAAuB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnFtE;;AAEG;;"}
1
+ {"version":3,"file":"sdcorejs-angular-components-inform.mjs","sources":["../../../projects/sdcorejs-angular/components/inform/src/inform-action.directive.ts","../../../projects/sdcorejs-angular/components/inform/src/inform.component.ts","../../../projects/sdcorejs-angular/components/inform/src/inform.component.html","../../../projects/sdcorejs-angular/components/inform/sdcorejs-angular-components-inform.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * Marker cho vùng action custom chiếu vào <sd-inform>.\n * Khi có phần tử mang [sdInformAction], component ẩn link `actionLabel` mặc định.\n */\n@Directive({\n selector: '[sdInformAction]',\n standalone: true,\n})\nexport class SdInformActionDirective {}\n","import { SdButton } from '@sdcorejs/angular/components/button';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Color } from '@sdcorejs/utils/models';\nimport { SdTranslatePipe } from '@sdcorejs/angular/i18n';\nimport { SdInformActionDirective } from './inform-action.directive';\nimport { SD_ICON_CONFIGURATION, SdIcon, type SdIconSet, type SdIconShape } from '@sdcorejs/angular/modules/icon';\n\nexport type SdInformType = 'default' | 'tip';\n\n// why: mỗi color có icon trạng thái mặc định khi consumer không truyền [icon].\nconst SD_INFORM_DEFAULT_ICON: Record<Color, string> = {\n primary: 'info',\n secondary: 'info',\n info: 'info',\n success: 'check_circle',\n warning: 'warning_amber',\n error: 'report_gmailerrorred',\n};\n\n@Component({\n selector: 'sd-inform',\n templateUrl: './inform.component.html',\n styleUrl: './inform.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n imports: [SdButton, SdIcon, CommonModule, SdTranslatePipe],\n})\nexport class SdInform {\n // 1. INPUTS\n /** Compact non-live guidance; omitted type preserves the standard banner. */\n type = input<SdInformType, SdInformType | undefined | null>('default', {\n transform: value => value ?? 'default',\n });\n\n color = input<Color, Color | undefined | null>('primary', {\n transform: value => value || 'primary',\n });\n\n primary = input(false, { transform: booleanAttribute });\n secondary = input(false, { transform: booleanAttribute });\n info = input(false, { transform: booleanAttribute });\n success = input(false, { transform: booleanAttribute });\n warning = input(false, { transform: booleanAttribute });\n error = input(false, { transform: booleanAttribute });\n\n title = input<string | undefined>();\n description = input<string | undefined>();\n icon = input<string | undefined>();\n hideIcon = input(false, { transform: booleanAttribute });\n /** Hình nền ô icon; bỏ trống thì dùng `defaultShape` của `provideSdIcon` (mặc định `square`). */\n iconShape = input<SdIconShape | null | undefined>(undefined);\n\n fontSet = input<SdIconSet | undefined, SdIconSet | undefined | null>(undefined, {\n transform: value => value ?? undefined,\n });\n\n closable = input(false, { transform: booleanAttribute });\n actionLabel = input<string | undefined>();\n lineClamp = input<number | undefined>();\n autoId = input<string | undefined>();\n\n // 2. OUTPUTS\n sdClosed = output<Event>();\n sdAction = output<Event>();\n\n // 3. STATE\n readonly dismissed = signal(false);\n readonly expanded = signal(false);\n readonly overflowing = signal(false);\n\n protected readonly bodyRef = viewChild<ElementRef<HTMLElement>>('body');\n protected readonly actionSlot = contentChild(SdInformActionDirective);\n\n // 4. COMPUTED\n effectiveColor = computed<Color>(() => {\n if (this.primary()) return 'primary';\n if (this.secondary()) return 'secondary';\n if (this.info()) return 'info';\n if (this.success()) return 'success';\n if (this.warning()) return 'warning';\n if (this.error()) return 'error';\n return this.color();\n });\n\n colorClasses = computed(() => {\n const c = this.effectiveColor();\n return {\n 'c-primary': c === 'primary',\n 'c-secondary': c === 'secondary',\n 'c-info': c === 'info',\n 'c-success': c === 'success',\n 'c-warning': c === 'warning',\n 'c-error': c === 'error',\n };\n });\n\n effectiveIcon = computed<string | null>(() => {\n if (this.hideIcon()) return null;\n return this.icon()?.trim() || SD_INFORM_DEFAULT_ICON[this.effectiveColor()];\n });\n\n readonly #iconConfig = inject(SD_ICON_CONFIGURATION);\n resolvedIconShape = computed<SdIconShape>(() => this.iconShape() ?? this.#iconConfig.defaultShape);\n\n hasActionSlot = computed(() => !!this.actionSlot());\n\n // clamp dòng: null = không clamp (đầy đủ); số = số dòng tối đa.\n clampLines = computed<number | null>(() => {\n const n = this.lineClamp();\n if (!n || n <= 0) return null;\n return this.expanded() ? null : n;\n });\n\n // toggle hiện khi đang clamp và đã từng tràn, hoặc đang mở rộng (để còn thu gọn lại).\n showToggle = computed(() => {\n if (!this.lineClamp()) return false;\n return this.overflowing() || this.expanded();\n });\n\n // why: error/warning là cảnh báo → assertive 'alert'; các màu còn lại là thông tin → polite 'status'.\n liveRole = computed<'alert' | 'status' | 'note'>(() => {\n if (this.type() === 'tip') return 'note';\n const c = this.effectiveColor();\n return c === 'error' || c === 'warning' ? 'alert' : 'status';\n });\n\n // 5. OVERFLOW MEASUREMENT\n #measureScheduled = false;\n\n constructor() {\n // đo lần đầu sau render\n afterNextRender(() => this.measureOverflow());\n // why: re-đo khi nội dung/clamp/expanded đổi; đồng thời gắn ResizeObserver để bắt thay đổi kích thước container (responsive).\n effect(onCleanup => {\n this.description();\n this.lineClamp();\n this.expanded();\n const el = this.bodyRef()?.nativeElement;\n this.#scheduleMeasure();\n // why: guard instanceof Element để test stub (plain object) không làm ResizeObserver.observe ném lỗi.\n if (el instanceof Element && typeof ResizeObserver !== 'undefined') {\n const ro = new ResizeObserver(() => this.measureOverflow());\n ro.observe(el);\n onCleanup(() => ro.disconnect());\n }\n });\n }\n\n #scheduleMeasure(): void {\n if (this.#measureScheduled) return;\n this.#measureScheduled = true;\n // gom nhiều thay đổi vào 1 lần đo sau khi DOM cập nhật xong\n queueMicrotask(() => {\n this.#measureScheduled = false;\n this.measureOverflow();\n });\n }\n\n /** Đo tràn dòng của body; chỉ có ý nghĩa khi đang clamp. */\n measureOverflow(): void {\n const el = this.bodyRef()?.nativeElement;\n if (!el || this.expanded() || !this.lineClamp()) return;\n // +1 chống sai số làm tròn sub-pixel\n this.overflowing.set(el.scrollHeight > el.clientHeight + 1);\n }\n\n // 6. HANDLERS\n toggleExpanded(): void {\n this.expanded.update(v => !v);\n }\n\n onClose(event: Event): void {\n event.stopPropagation();\n this.dismissed.set(true);\n this.sdClosed.emit(event);\n }\n\n onAction(event: Event): void {\n event.stopPropagation();\n this.sdAction.emit(event);\n }\n}\n","@if (!dismissed()) {\n @let _effectiveIcon = effectiveIcon();\n @let _fontSet = fontSet();\n @let _description = description();\n @let _isTip = type() === 'tip';\n <div\n class=\"c-inform\"\n [class.c-inform-tip]=\"_isTip\"\n [attr.role]=\"liveRole()\"\n [ngClass]=\"colorClasses()\"\n [attr.data-autoId]=\"autoId() || null\"\n [attr.data-autoid]=\"autoId() || null\">\n @if (_effectiveIcon) {\n <span class=\"c-inform-icon-tile\" aria-hidden=\"true\" [attr.data-icon-shape]=\"resolvedIconShape()\"\n ><sd-icon\n class=\"c-inform-icon c-material-icon\"\n [size]=\"_isTip ? '16px' : '20px'\"\n aria-hidden=\"true\"\n [fontSet]=\"_fontSet\"\n [name]=\"_effectiveIcon\"></sd-icon\n ></span>\n }\n\n @let _actionLabel = actionLabel();\n <div class=\"c-inform-content\" [class.c-inform-content-without-description]=\"!_description\">\n <ng-content>\n @if (title(); as t) {\n <div class=\"c-inform-title\">{{ t }}</div>\n }\n @if (_description; as d) {\n <div #body class=\"c-inform-body\" [class.is-clamped]=\"clampLines() !== null\" [style.-webkit-line-clamp]=\"clampLines()\">\n {{ d }}\n </div>\n }\n @if (showToggle()) {\n <button type=\"button\" class=\"c-inform-toggle\" (click)=\"toggleExpanded()\">\n {{ (expanded() ? 'core.component.inform.show-less' : 'core.component.inform.show-more') | sdTranslate }}\n </button>\n }\n\n @if (hasActionSlot()) {\n <div class=\"c-inform-action\">\n <ng-content select=\"[sdInformAction]\"></ng-content>\n </div>\n } @else if (_actionLabel) {\n <sd-button\n class=\"c-inform-action c-inform-action-link\"\n size=\"sm\"\n type=\"light\"\n color=\"primary\"\n htmlType=\"button\"\n [title]=\"_actionLabel\"\n (click)=\"onAction($event)\"></sd-button>\n }\n </ng-content>\n </div>\n\n @if (closable()) {\n <button type=\"button\" class=\"c-inform-close\" [attr.aria-label]=\"'core.common.close' | sdTranslate\" (click)=\"onClose($event)\">\n <sd-icon aria-hidden=\"true\" name=\"close\"></sd-icon>\n </button>\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEA;;;AAGG;MAKU,uBAAuB,CAAA;uGAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACeD;AACA,MAAM,sBAAsB,GAA0B;AACpD,IAAA,OAAO,EAAE,MAAM;AACf,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,OAAO,EAAE,cAAc;AACvB,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,KAAK,EAAE,sBAAsB;CAC9B;MAUY,QAAQ,CAAA;;;AAGnB,IAAA,IAAI,GAAG,KAAK,CAAgD,SAAS,4EACnE,SAAS,EAAE,KAAK,IAAI,KAAK,IAAI,SAAS,GACtC;AAEF,IAAA,KAAK,GAAG,KAAK,CAAk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AA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,aAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,QAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,UAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,UAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,MAAM,2FACzB,uBAAuB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEtFtE;;AAEG;;"}
@@ -84,11 +84,11 @@ class SdJobProgress {
84
84
  this.sdRetry.emit();
85
85
  }
86
86
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdJobProgress, deps: [], target: i0.ɵɵFactoryTarget.Component });
87
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SdJobProgress, isStandalone: true, selector: "sd-job-progress", inputs: { taskId: { classPropertyName: "taskId", publicName: "taskId", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showActions: { classPropertyName: "showActions", publicName: "showActions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sdCancel: "sdCancel", sdRetry: "sdRetry" }, host: { properties: { "attr.data-mode": "this.modeAttr", "attr.data-status": "this.statusAttr", "attr.aria-live": "this.ariaLive" } }, ngImport: i0, template: "@if (resolvedState()) {\n <section class=\"sd-job-progress\" [attr.aria-label]=\"progressLabel()\">\n <div class=\"sd-job-progress__header\">\n <div class=\"sd-job-progress__identity\">\n @if (effectiveTitle()) {\n <strong class=\"sd-job-progress__title\">{{ effectiveTitle() }}</strong>\n }\n <span class=\"sd-job-progress__status\">{{ statusLabel() }}</span>\n </div>\n\n @if (progress() !== undefined) {\n <span class=\"sd-job-progress__percentage\">{{ progress() }}%</span>\n }\n </div>\n\n @if (active() || progress() !== undefined) {\n <div\n class=\"sd-job-progress__track\"\n role=\"progressbar\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"progress()\"\n [attr.aria-label]=\"progressLabel()\"\n [attr.data-indeterminate]=\"progress() === undefined ? 'true' : 'false'\">\n <span\n class=\"sd-job-progress__fill\"\n [class.sd-job-progress__fill--indeterminate]=\"progress() === undefined\"\n [style.width.%]=\"progress() ?? 30\"></span>\n </div>\n }\n\n @if (mode() === 'details' && effectiveMessage()) {\n <p class=\"sd-job-progress__message\" data-task-details>{{ effectiveMessage() }}</p>\n }\n\n @if (displayedError()) {\n <p class=\"sd-job-progress__error\" role=\"alert\">{{ displayedError() }}</p>\n }\n\n @if (canCancel() || canRetry()) {\n <div class=\"sd-job-progress__actions\">\n @if (canCancel()) {\n <button type=\"button\" data-task-cancel (click)=\"onCancel()\">\n {{ cancelLabel() }}\n </button>\n }\n @if (canRetry()) {\n <button type=\"button\" data-task-retry (click)=\"onRetry()\">\n {{ retryLabel() }}\n </button>\n }\n </div>\n }\n </section>\n}\n", styles: [":host{display:block}.sd-job-progress{display:grid;gap:8px;padding:12px;border:1px solid var(--sd-border-color, #dfe3e8);border-radius:8px;background:var(--sd-surface, #fff)}.sd-job-progress__header,.sd-job-progress__identity,.sd-job-progress__actions{display:flex;align-items:center;gap:8px}.sd-job-progress__header{justify-content:space-between}.sd-job-progress__identity{min-width:0;flex-wrap:wrap}.sd-job-progress__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-job-progress__status,.sd-job-progress__percentage,.sd-job-progress__message{color:var(--sd-text-muted, #5f6772);font-size:.875rem}.sd-job-progress__track{position:relative;height:8px;overflow:hidden;border-radius:999px;background:var(--sd-progress-track, #e8edf3)}.sd-job-progress__fill{display:block;height:100%;border-radius:inherit;background:var(--sd-primary, #1565c0);transition:width .16s ease}.sd-job-progress__fill--indeterminate{animation:sd-job-progress-indeterminate 1.2s ease-in-out infinite}.sd-job-progress__message,.sd-job-progress__error{margin:0}.sd-job-progress__error{color:var(--sd-error, #ba1a1a)}.sd-job-progress__actions{justify-content:flex-end}.sd-job-progress__actions button{padding:6px 10px;border:1px solid currentColor;border-radius:6px;color:var(--sd-primary, #1565c0);background:transparent;cursor:pointer}:host([data-mode=compact]) .sd-job-progress{grid-template-columns:minmax(0,1fr) minmax(80px,30%);align-items:center;padding:8px 10px}:host([data-mode=compact]) .sd-job-progress__actions,:host([data-mode=compact]) .sd-job-progress__error{grid-column:1/-1}@keyframes sd-job-progress-indeterminate{0%{transform:translate(-120%)}to{transform:translate(380%)}}@media(prefers-reduced-motion:reduce){.sd-job-progress__fill{transition:none}.sd-job-progress__fill--indeterminate{animation:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
87
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SdJobProgress, isStandalone: true, selector: "sd-job-progress", inputs: { taskId: { classPropertyName: "taskId", publicName: "taskId", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, showActions: { classPropertyName: "showActions", publicName: "showActions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sdCancel: "sdCancel", sdRetry: "sdRetry" }, host: { properties: { "attr.data-mode": "this.modeAttr", "attr.data-status": "this.statusAttr", "attr.aria-live": "this.ariaLive" } }, ngImport: i0, template: "@if (resolvedState()) {\n <section class=\"sd-job-progress\" [attr.aria-label]=\"progressLabel()\">\n <div class=\"sd-job-progress__header\">\n <div class=\"sd-job-progress__identity\">\n @if (effectiveTitle()) {\n <strong class=\"sd-job-progress__title\">{{ effectiveTitle() }}</strong>\n }\n <span class=\"sd-job-progress__status\">{{ statusLabel() }}</span>\n </div>\n\n @if (progress() !== undefined) {\n <span class=\"sd-job-progress__percentage\">{{ progress() }}%</span>\n }\n </div>\n\n @if (active() || progress() !== undefined) {\n <div\n class=\"sd-job-progress__track\"\n role=\"progressbar\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"progress()\"\n [attr.aria-label]=\"progressLabel()\"\n [attr.data-indeterminate]=\"progress() === undefined ? 'true' : 'false'\">\n <span\n class=\"sd-job-progress__fill\"\n [class.sd-job-progress__fill--indeterminate]=\"progress() === undefined\"\n [style.width.%]=\"progress() ?? 30\"></span>\n </div>\n }\n\n @if (mode() === 'details' && effectiveMessage()) {\n <p class=\"sd-job-progress__message\" data-task-details>{{ effectiveMessage() }}</p>\n }\n\n @if (displayedError()) {\n <p class=\"sd-job-progress__error\" role=\"alert\">{{ displayedError() }}</p>\n }\n\n @if (canCancel() || canRetry()) {\n <div class=\"sd-job-progress__actions\">\n @if (canCancel()) {\n <button type=\"button\" data-task-cancel (click)=\"onCancel()\">\n {{ cancelLabel() }}\n </button>\n }\n @if (canRetry()) {\n <button type=\"button\" data-task-retry (click)=\"onRetry()\">\n {{ retryLabel() }}\n </button>\n }\n </div>\n }\n </section>\n}\n", styles: [":host{display:block}.sd-job-progress{display:grid;gap:8px;padding:12px;border:1px solid var(--sd-border-color, #dfe3e8);border-radius:var(--sd-radius-8, 8px);background:var(--sd-surface, #fff)}.sd-job-progress__header,.sd-job-progress__identity,.sd-job-progress__actions{display:flex;align-items:center;gap:8px}.sd-job-progress__header{justify-content:space-between}.sd-job-progress__identity{min-width:0;flex-wrap:wrap}.sd-job-progress__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-job-progress__status,.sd-job-progress__percentage,.sd-job-progress__message{color:var(--sd-text-muted, #5f6772);font-size:.875rem}.sd-job-progress__track{position:relative;height:8px;overflow:hidden;border-radius:var(--sd-radius-999, 999px);background:var(--sd-progress-track, #e8edf3)}.sd-job-progress__fill{display:block;height:100%;border-radius:inherit;background:var(--sd-primary, #1565c0);transition:width .16s ease}.sd-job-progress__fill--indeterminate{animation:sd-job-progress-indeterminate 1.2s ease-in-out infinite}.sd-job-progress__message,.sd-job-progress__error{margin:0}.sd-job-progress__error{color:var(--sd-error, #ba1a1a)}.sd-job-progress__actions{justify-content:flex-end}.sd-job-progress__actions button{padding:6px 10px;border:1px solid currentColor;border-radius:var(--sd-radius-6, 6px);color:var(--sd-primary, #1565c0);background:transparent;cursor:pointer}:host([data-mode=compact]) .sd-job-progress{grid-template-columns:minmax(0,1fr) minmax(80px,30%);align-items:center;padding:8px 10px}:host([data-mode=compact]) .sd-job-progress__actions,:host([data-mode=compact]) .sd-job-progress__error{grid-column:1/-1}@keyframes sd-job-progress-indeterminate{0%{transform:translate(-120%)}to{transform:translate(380%)}}@media(prefers-reduced-motion:reduce){.sd-job-progress__fill{transition:none}.sd-job-progress__fill--indeterminate{animation:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
88
88
  }
89
89
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdJobProgress, decorators: [{
90
90
  type: Component,
91
- args: [{ selector: 'sd-job-progress', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (resolvedState()) {\n <section class=\"sd-job-progress\" [attr.aria-label]=\"progressLabel()\">\n <div class=\"sd-job-progress__header\">\n <div class=\"sd-job-progress__identity\">\n @if (effectiveTitle()) {\n <strong class=\"sd-job-progress__title\">{{ effectiveTitle() }}</strong>\n }\n <span class=\"sd-job-progress__status\">{{ statusLabel() }}</span>\n </div>\n\n @if (progress() !== undefined) {\n <span class=\"sd-job-progress__percentage\">{{ progress() }}%</span>\n }\n </div>\n\n @if (active() || progress() !== undefined) {\n <div\n class=\"sd-job-progress__track\"\n role=\"progressbar\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"progress()\"\n [attr.aria-label]=\"progressLabel()\"\n [attr.data-indeterminate]=\"progress() === undefined ? 'true' : 'false'\">\n <span\n class=\"sd-job-progress__fill\"\n [class.sd-job-progress__fill--indeterminate]=\"progress() === undefined\"\n [style.width.%]=\"progress() ?? 30\"></span>\n </div>\n }\n\n @if (mode() === 'details' && effectiveMessage()) {\n <p class=\"sd-job-progress__message\" data-task-details>{{ effectiveMessage() }}</p>\n }\n\n @if (displayedError()) {\n <p class=\"sd-job-progress__error\" role=\"alert\">{{ displayedError() }}</p>\n }\n\n @if (canCancel() || canRetry()) {\n <div class=\"sd-job-progress__actions\">\n @if (canCancel()) {\n <button type=\"button\" data-task-cancel (click)=\"onCancel()\">\n {{ cancelLabel() }}\n </button>\n }\n @if (canRetry()) {\n <button type=\"button\" data-task-retry (click)=\"onRetry()\">\n {{ retryLabel() }}\n </button>\n }\n </div>\n }\n </section>\n}\n", styles: [":host{display:block}.sd-job-progress{display:grid;gap:8px;padding:12px;border:1px solid var(--sd-border-color, #dfe3e8);border-radius:8px;background:var(--sd-surface, #fff)}.sd-job-progress__header,.sd-job-progress__identity,.sd-job-progress__actions{display:flex;align-items:center;gap:8px}.sd-job-progress__header{justify-content:space-between}.sd-job-progress__identity{min-width:0;flex-wrap:wrap}.sd-job-progress__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-job-progress__status,.sd-job-progress__percentage,.sd-job-progress__message{color:var(--sd-text-muted, #5f6772);font-size:.875rem}.sd-job-progress__track{position:relative;height:8px;overflow:hidden;border-radius:999px;background:var(--sd-progress-track, #e8edf3)}.sd-job-progress__fill{display:block;height:100%;border-radius:inherit;background:var(--sd-primary, #1565c0);transition:width .16s ease}.sd-job-progress__fill--indeterminate{animation:sd-job-progress-indeterminate 1.2s ease-in-out infinite}.sd-job-progress__message,.sd-job-progress__error{margin:0}.sd-job-progress__error{color:var(--sd-error, #ba1a1a)}.sd-job-progress__actions{justify-content:flex-end}.sd-job-progress__actions button{padding:6px 10px;border:1px solid currentColor;border-radius:6px;color:var(--sd-primary, #1565c0);background:transparent;cursor:pointer}:host([data-mode=compact]) .sd-job-progress{grid-template-columns:minmax(0,1fr) minmax(80px,30%);align-items:center;padding:8px 10px}:host([data-mode=compact]) .sd-job-progress__actions,:host([data-mode=compact]) .sd-job-progress__error{grid-column:1/-1}@keyframes sd-job-progress-indeterminate{0%{transform:translate(-120%)}to{transform:translate(380%)}}@media(prefers-reduced-motion:reduce){.sd-job-progress__fill{transition:none}.sd-job-progress__fill--indeterminate{animation:none}}\n"] }]
91
+ args: [{ selector: 'sd-job-progress', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (resolvedState()) {\n <section class=\"sd-job-progress\" [attr.aria-label]=\"progressLabel()\">\n <div class=\"sd-job-progress__header\">\n <div class=\"sd-job-progress__identity\">\n @if (effectiveTitle()) {\n <strong class=\"sd-job-progress__title\">{{ effectiveTitle() }}</strong>\n }\n <span class=\"sd-job-progress__status\">{{ statusLabel() }}</span>\n </div>\n\n @if (progress() !== undefined) {\n <span class=\"sd-job-progress__percentage\">{{ progress() }}%</span>\n }\n </div>\n\n @if (active() || progress() !== undefined) {\n <div\n class=\"sd-job-progress__track\"\n role=\"progressbar\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"progress()\"\n [attr.aria-label]=\"progressLabel()\"\n [attr.data-indeterminate]=\"progress() === undefined ? 'true' : 'false'\">\n <span\n class=\"sd-job-progress__fill\"\n [class.sd-job-progress__fill--indeterminate]=\"progress() === undefined\"\n [style.width.%]=\"progress() ?? 30\"></span>\n </div>\n }\n\n @if (mode() === 'details' && effectiveMessage()) {\n <p class=\"sd-job-progress__message\" data-task-details>{{ effectiveMessage() }}</p>\n }\n\n @if (displayedError()) {\n <p class=\"sd-job-progress__error\" role=\"alert\">{{ displayedError() }}</p>\n }\n\n @if (canCancel() || canRetry()) {\n <div class=\"sd-job-progress__actions\">\n @if (canCancel()) {\n <button type=\"button\" data-task-cancel (click)=\"onCancel()\">\n {{ cancelLabel() }}\n </button>\n }\n @if (canRetry()) {\n <button type=\"button\" data-task-retry (click)=\"onRetry()\">\n {{ retryLabel() }}\n </button>\n }\n </div>\n }\n </section>\n}\n", styles: [":host{display:block}.sd-job-progress{display:grid;gap:8px;padding:12px;border:1px solid var(--sd-border-color, #dfe3e8);border-radius:var(--sd-radius-8, 8px);background:var(--sd-surface, #fff)}.sd-job-progress__header,.sd-job-progress__identity,.sd-job-progress__actions{display:flex;align-items:center;gap:8px}.sd-job-progress__header{justify-content:space-between}.sd-job-progress__identity{min-width:0;flex-wrap:wrap}.sd-job-progress__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-job-progress__status,.sd-job-progress__percentage,.sd-job-progress__message{color:var(--sd-text-muted, #5f6772);font-size:.875rem}.sd-job-progress__track{position:relative;height:8px;overflow:hidden;border-radius:var(--sd-radius-999, 999px);background:var(--sd-progress-track, #e8edf3)}.sd-job-progress__fill{display:block;height:100%;border-radius:inherit;background:var(--sd-primary, #1565c0);transition:width .16s ease}.sd-job-progress__fill--indeterminate{animation:sd-job-progress-indeterminate 1.2s ease-in-out infinite}.sd-job-progress__message,.sd-job-progress__error{margin:0}.sd-job-progress__error{color:var(--sd-error, #ba1a1a)}.sd-job-progress__actions{justify-content:flex-end}.sd-job-progress__actions button{padding:6px 10px;border:1px solid currentColor;border-radius:var(--sd-radius-6, 6px);color:var(--sd-primary, #1565c0);background:transparent;cursor:pointer}:host([data-mode=compact]) .sd-job-progress{grid-template-columns:minmax(0,1fr) minmax(80px,30%);align-items:center;padding:8px 10px}:host([data-mode=compact]) .sd-job-progress__actions,:host([data-mode=compact]) .sd-job-progress__error{grid-column:1/-1}@keyframes sd-job-progress-indeterminate{0%{transform:translate(-120%)}to{transform:translate(380%)}}@media(prefers-reduced-motion:reduce){.sd-job-progress__fill{transition:none}.sd-job-progress__fill--indeterminate{animation:none}}\n"] }]
92
92
  }], propDecorators: { taskId: [{ type: i0.Input, args: [{ isSignal: true, alias: "taskId", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], showActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "showActions", required: false }] }], sdCancel: [{ type: i0.Output, args: ["sdCancel"] }], sdRetry: [{ type: i0.Output, args: ["sdRetry"] }], modeAttr: [{
93
93
  type: HostBinding,
94
94
  args: ['attr.data-mode']
@@ -1 +1 @@
1
- {"version":3,"file":"sdcorejs-angular-components-job-progress.mjs","sources":["../../../projects/sdcorejs-angular/components/job-progress/src/job-progress.component.ts","../../../projects/sdcorejs-angular/components/job-progress/src/job-progress.component.html","../../../projects/sdcorejs-angular/components/job-progress/sdcorejs-angular-components-job-progress.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, HostBinding, booleanAttribute, computed, inject, input, output } from '@angular/core';\nimport { I18nService } from '@sdcorejs/angular/i18n';\nimport { SdTaskService, SdTaskState, SdTaskStatus, SdTaskView } from '@sdcorejs/angular/services/task';\n\nexport type SdJobProgressMode = 'bar' | 'compact' | 'details';\n\n@Component({\n selector: 'sd-job-progress',\n standalone: true,\n templateUrl: './job-progress.component.html',\n styleUrl: './job-progress.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SdJobProgress {\n readonly taskId = input<string | undefined>(undefined);\n readonly state = input<SdTaskState | undefined>(undefined);\n readonly mode = input<SdJobProgressMode>('bar');\n readonly title = input<string | undefined>(undefined);\n readonly message = input<string | undefined>(undefined);\n readonly showActions = input(true, { transform: booleanAttribute });\n\n readonly sdCancel = output<void>();\n readonly sdRetry = output<void>();\n\n readonly #tasks = inject(SdTaskService);\n readonly #i18n = inject(I18nService);\n\n readonly task = computed<SdTaskView | undefined>(() => {\n if (this.state()) return undefined;\n const id = this.taskId();\n return id ? this.#tasks.get(id) : undefined;\n });\n readonly resolvedState = computed<SdTaskState | undefined>(() => this.state() ?? this.task()?.state());\n readonly progress = computed<number | undefined>(() => {\n const value = this.resolvedState()?.progress;\n return value === undefined || !Number.isFinite(value) ? undefined : Math.max(0, Math.min(100, value));\n });\n readonly effectiveTitle = computed(() => this.title() ?? this.resolvedState()?.title);\n readonly effectiveMessage = computed(() => this.message() ?? this.resolvedState()?.message);\n readonly statusLabel = computed(() => this.#i18n.t(`core.component.job-progress.status.${this.resolvedState()?.status ?? 'idle'}`));\n readonly progressLabel = computed(() => {\n const title = this.effectiveTitle();\n return title ? `${title}: ${this.statusLabel()}` : this.statusLabel();\n });\n readonly cancelLabel = computed(() => this.#i18n.t('core.component.job-progress.cancel'));\n readonly retryLabel = computed(() => this.#i18n.t('core.component.job-progress.retry'));\n readonly displayedError = computed(() => formatError(this.resolvedState()?.error ?? this.task()?.error()));\n readonly active = computed(() => {\n const status = this.resolvedState()?.status;\n return status === 'queued' || status === 'running';\n });\n readonly canCancel = computed(() => this.showActions() && this.active() && (this.task()?.canCancel() ?? true));\n readonly canRetry = computed(() => {\n if (!this.showActions()) return false;\n const status = this.resolvedState()?.status;\n return this.task()?.canRetry() ?? (status === 'failed' || status === 'cancelled');\n });\n\n @HostBinding('attr.data-mode') get modeAttr(): SdJobProgressMode {\n return this.mode();\n }\n\n @HostBinding('attr.data-status') get statusAttr(): SdTaskStatus {\n return this.resolvedState()?.status ?? 'idle';\n }\n\n @HostBinding('attr.aria-live') readonly ariaLive = 'polite';\n\n onCancel(): void {\n const id = this.taskId();\n if (id && this.task()) void this.#tasks.cancel(id);\n this.sdCancel.emit();\n }\n\n onRetry(): void {\n const id = this.taskId();\n if (id && this.task()) this.#tasks.retry(id);\n this.sdRetry.emit();\n }\n}\n\nfunction formatError(error: unknown): string | undefined {\n if (error === null || error === undefined) return undefined;\n if (error instanceof Error) return error.message;\n return typeof error === 'string' ? error : String(error);\n}\n","@if (resolvedState()) {\n <section class=\"sd-job-progress\" [attr.aria-label]=\"progressLabel()\">\n <div class=\"sd-job-progress__header\">\n <div class=\"sd-job-progress__identity\">\n @if (effectiveTitle()) {\n <strong class=\"sd-job-progress__title\">{{ effectiveTitle() }}</strong>\n }\n <span class=\"sd-job-progress__status\">{{ statusLabel() }}</span>\n </div>\n\n @if (progress() !== undefined) {\n <span class=\"sd-job-progress__percentage\">{{ progress() }}%</span>\n }\n </div>\n\n @if (active() || progress() !== undefined) {\n <div\n class=\"sd-job-progress__track\"\n role=\"progressbar\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"progress()\"\n [attr.aria-label]=\"progressLabel()\"\n [attr.data-indeterminate]=\"progress() === undefined ? 'true' : 'false'\">\n <span\n class=\"sd-job-progress__fill\"\n [class.sd-job-progress__fill--indeterminate]=\"progress() === undefined\"\n [style.width.%]=\"progress() ?? 30\"></span>\n </div>\n }\n\n @if (mode() === 'details' && effectiveMessage()) {\n <p class=\"sd-job-progress__message\" data-task-details>{{ effectiveMessage() }}</p>\n }\n\n @if (displayedError()) {\n <p class=\"sd-job-progress__error\" role=\"alert\">{{ displayedError() }}</p>\n }\n\n @if (canCancel() || canRetry()) {\n <div class=\"sd-job-progress__actions\">\n @if (canCancel()) {\n <button type=\"button\" data-task-cancel (click)=\"onCancel()\">\n {{ cancelLabel() }}\n </button>\n }\n @if (canRetry()) {\n <button type=\"button\" data-task-retry (click)=\"onRetry()\">\n {{ retryLabel() }}\n </button>\n }\n </div>\n }\n </section>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAaa,aAAa,CAAA;IACf,MAAM,GAAG,KAAK,CAAqB,SAAS;+EAAC;IAC7C,KAAK,GAAG,KAAK,CAA0B,SAAS;8EAAC;IACjD,IAAI,GAAG,KAAK,CAAoB,KAAK;6EAAC;IACtC,KAAK,GAAG,KAAK,CAAqB,SAAS;8EAAC;IAC5C,OAAO,GAAG,KAAK,CAAqB,SAAS;gFAAC;IAC9C,WAAW,GAAG,KAAK,CAAC,IAAI,mFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAE1D,QAAQ,GAAG,MAAM,EAAQ;IACzB,OAAO,GAAG,MAAM,EAAQ;AAExB,IAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;AAC9B,IAAA,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC;AAE3B,IAAA,IAAI,GAAG,QAAQ,CAAyB,MAAK;QACpD,IAAI,IAAI,CAAC,KAAK,EAAE;AAAE,YAAA,OAAO,SAAS;AAClC,QAAA,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE;AACxB,QAAA,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC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D,IAAA,OAAO,OAAO,KAAK,KAAK,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;AAC1D;;AErFA;;AAEG;;"}
1
+ {"version":3,"file":"sdcorejs-angular-components-job-progress.mjs","sources":["../../../projects/sdcorejs-angular/components/job-progress/src/job-progress.component.ts","../../../projects/sdcorejs-angular/components/job-progress/src/job-progress.component.html","../../../projects/sdcorejs-angular/components/job-progress/sdcorejs-angular-components-job-progress.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, HostBinding, booleanAttribute, computed, inject, input, output } from '@angular/core';\nimport { I18nService } from '@sdcorejs/angular/i18n';\nimport { SdTaskService, SdTaskState, SdTaskStatus, SdTaskView } from '@sdcorejs/angular/services/task';\n\nexport type SdJobProgressMode = 'bar' | 'compact' | 'details';\n\n@Component({\n selector: 'sd-job-progress',\n standalone: true,\n templateUrl: './job-progress.component.html',\n styleUrl: './job-progress.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SdJobProgress {\n readonly taskId = input<string | undefined>(undefined);\n readonly state = input<SdTaskState | undefined>(undefined);\n readonly mode = input<SdJobProgressMode>('bar');\n readonly title = input<string | undefined>(undefined);\n readonly message = input<string | undefined>(undefined);\n readonly showActions = input(true, { transform: booleanAttribute });\n\n readonly sdCancel = output<void>();\n readonly sdRetry = output<void>();\n\n readonly #tasks = inject(SdTaskService);\n readonly #i18n = inject(I18nService);\n\n readonly task = computed<SdTaskView | undefined>(() => {\n if (this.state()) return undefined;\n const id = this.taskId();\n return id ? this.#tasks.get(id) : undefined;\n });\n readonly resolvedState = computed<SdTaskState | undefined>(() => this.state() ?? this.task()?.state());\n readonly progress = computed<number | undefined>(() => {\n const value = this.resolvedState()?.progress;\n return value === undefined || !Number.isFinite(value) ? undefined : Math.max(0, Math.min(100, value));\n });\n readonly effectiveTitle = computed(() => this.title() ?? this.resolvedState()?.title);\n readonly effectiveMessage = computed(() => this.message() ?? this.resolvedState()?.message);\n readonly statusLabel = computed(() => this.#i18n.t(`core.component.job-progress.status.${this.resolvedState()?.status ?? 'idle'}`));\n readonly progressLabel = computed(() => {\n const title = this.effectiveTitle();\n return title ? `${title}: ${this.statusLabel()}` : this.statusLabel();\n });\n readonly cancelLabel = computed(() => this.#i18n.t('core.component.job-progress.cancel'));\n readonly retryLabel = computed(() => this.#i18n.t('core.component.job-progress.retry'));\n readonly displayedError = computed(() => formatError(this.resolvedState()?.error ?? this.task()?.error()));\n readonly active = computed(() => {\n const status = this.resolvedState()?.status;\n return status === 'queued' || status === 'running';\n });\n readonly canCancel = computed(() => this.showActions() && this.active() && (this.task()?.canCancel() ?? true));\n readonly canRetry = computed(() => {\n if (!this.showActions()) return false;\n const status = this.resolvedState()?.status;\n return this.task()?.canRetry() ?? (status === 'failed' || status === 'cancelled');\n });\n\n @HostBinding('attr.data-mode') get modeAttr(): SdJobProgressMode {\n return this.mode();\n }\n\n @HostBinding('attr.data-status') get statusAttr(): SdTaskStatus {\n return this.resolvedState()?.status ?? 'idle';\n }\n\n @HostBinding('attr.aria-live') readonly ariaLive = 'polite';\n\n onCancel(): void {\n const id = this.taskId();\n if (id && this.task()) void this.#tasks.cancel(id);\n this.sdCancel.emit();\n }\n\n onRetry(): void {\n const id = this.taskId();\n if (id && this.task()) this.#tasks.retry(id);\n this.sdRetry.emit();\n }\n}\n\nfunction formatError(error: unknown): string | undefined {\n if (error === null || error === undefined) return undefined;\n if (error instanceof Error) return error.message;\n return typeof error === 'string' ? error : String(error);\n}\n","@if (resolvedState()) {\n <section class=\"sd-job-progress\" [attr.aria-label]=\"progressLabel()\">\n <div class=\"sd-job-progress__header\">\n <div class=\"sd-job-progress__identity\">\n @if (effectiveTitle()) {\n <strong class=\"sd-job-progress__title\">{{ effectiveTitle() }}</strong>\n }\n <span class=\"sd-job-progress__status\">{{ statusLabel() }}</span>\n </div>\n\n @if (progress() !== undefined) {\n <span class=\"sd-job-progress__percentage\">{{ progress() }}%</span>\n }\n </div>\n\n @if (active() || progress() !== undefined) {\n <div\n class=\"sd-job-progress__track\"\n role=\"progressbar\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"progress()\"\n [attr.aria-label]=\"progressLabel()\"\n [attr.data-indeterminate]=\"progress() === undefined ? 'true' : 'false'\">\n <span\n class=\"sd-job-progress__fill\"\n [class.sd-job-progress__fill--indeterminate]=\"progress() === undefined\"\n [style.width.%]=\"progress() ?? 30\"></span>\n </div>\n }\n\n @if (mode() === 'details' && effectiveMessage()) {\n <p class=\"sd-job-progress__message\" data-task-details>{{ effectiveMessage() }}</p>\n }\n\n @if (displayedError()) {\n <p class=\"sd-job-progress__error\" role=\"alert\">{{ displayedError() }}</p>\n }\n\n @if (canCancel() || canRetry()) {\n <div class=\"sd-job-progress__actions\">\n @if (canCancel()) {\n <button type=\"button\" data-task-cancel (click)=\"onCancel()\">\n {{ cancelLabel() }}\n </button>\n }\n @if (canRetry()) {\n <button type=\"button\" data-task-retry (click)=\"onRetry()\">\n {{ retryLabel() }}\n </button>\n }\n </div>\n }\n </section>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAaa,aAAa,CAAA;IACf,MAAM,GAAG,KAAK,CAAqB,SAAS;+EAAC;IAC7C,KAAK,GAAG,KAAK,CAA0B,SAAS;8EAAC;IACjD,IAAI,GAAG,KAAK,CAAoB,KAAK;6EAAC;IACtC,KAAK,GAAG,KAAK,CAAqB,SAAS;8EAAC;IAC5C,OAAO,GAAG,KAAK,CAAqB,SAAS;gFAAC;IAC9C,WAAW,GAAG,KAAK,CAAC,IAAI,mFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAE1D,QAAQ,GAAG,MAAM,EAAQ;IACzB,OAAO,GAAG,MAAM,EAAQ;AAExB,IAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;AAC9B,IAAA,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC;AAE3B,IAAA,IAAI,GAAG,Q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,WAAW;uBAAC,gBAAgB;;AAe/B,SAAS,WAAW,CAAC,KAAc,EAAA;AACjC,IAAA,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;AAAE,QAAA,OAAO,SAAS;IAC3D,IAAI,KAAK,YAAY,KAAK;QAAE,OAAO,KAAK,CAAC,OAAO;AAChD,IAAA,OAAO,OAAO,KAAK,KAAK,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;AAC1D;;AErFA;;AAEG;;"}
@@ -4,10 +4,11 @@ import { CommonModule } from '@angular/common';
4
4
  import * as i1 from '@ckeditor/ckeditor5-angular';
5
5
  import { CKEditorModule } from '@ckeditor/ckeditor5-angular';
6
6
  import { SdCKEditorStyles } from '@sdcorejs/angular/components/ckeditor-styles';
7
- import { ClassicEditor, Essentials, FontColor, Paragraph, Bold, Italic, Underline, Link, List, Undo, Widget, Markdown, Mention } from 'ckeditor5';
7
+ import { ClassicEditor, Essentials, FontColor, Paragraph, Bold, Italic, Underline, Link, List, Undo, Widget, Markdown, Mention, HtmlDataProcessor } from 'ckeditor5';
8
8
  import { Subscription, Subject } from 'rxjs';
9
9
  import { throttleTime } from 'rxjs/operators';
10
10
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
11
+ import { sdSanitizeEditorHtml } from '@sdcorejs/angular/utilities/extensions';
11
12
 
12
13
  /**
13
14
  * Component sd-mini-editor - Editor đơn giản cho comment input
@@ -72,6 +73,8 @@ class SdMiniEditor {
72
73
  link: {
73
74
  addTargetToExternalLinks: true,
74
75
  defaultProtocol: 'https://',
76
+ // why: mặc định CKEditor cho cả ftp/ftps; link trong bình luận chỉ cần web, mail và điện thoại.
77
+ allowedProtocols: ['https', 'http', 'mailto', 'tel'],
75
78
  },
76
79
  fontColor: {
77
80
  columns: 5,
@@ -89,8 +92,8 @@ class SdMiniEditor {
89
92
  }
90
93
  constructor() {
91
94
  // Setup debounce cho content change
92
- this.#subscription.add(this.#contentChangeSubject.pipe(throttleTime(500, undefined, { leading: true, trailing: true })).subscribe(content => {
93
- const output = this.#convertOutput(content);
95
+ this.#subscription.add(this.#contentChangeSubject.pipe(throttleTime(500, undefined, { leading: true, trailing: true })).subscribe(() => {
96
+ const output = this.#convertOutput();
94
97
  this.value = output;
95
98
  this.#onChange(output);
96
99
  this.valueChange.emit(output);
@@ -119,8 +122,7 @@ class SdMiniEditor {
119
122
  }
120
123
  // Lắng nghe sự kiện thay đổi nội dung
121
124
  editor.model.document.on('change:data', () => {
122
- const content = editor.getData();
123
- this.#contentChangeSubject.next(content);
125
+ this.#contentChangeSubject.next();
124
126
  });
125
127
  // Lắng nghe focus/blur events
126
128
  editor.editing.view.document.on('focus', evt => {
@@ -139,8 +141,7 @@ class SdMiniEditor {
139
141
  const mentionData = data[0];
140
142
  this.option?.onMentionSelect?.(mentionData.mention);
141
143
  // Trigger content change sau khi insert mention
142
- const content = editor.getData();
143
- this.#contentChangeSubject.next(content);
144
+ this.#contentChangeSubject.next();
144
145
  });
145
146
  // Custom downcast converter để thay đổi cấu trúc mention HTML
146
147
  editor.conversion.for('downcast').attributeToElement({
@@ -186,13 +187,34 @@ class SdMiniEditor {
186
187
  }
187
188
  }
188
189
  /**
189
- * Convert output theo format (html hoặc markdown)
190
- * Khi sử dụng CKEditor Markdown plugin, getData() tự động trả về Markdown
190
+ * Nội dung phát ra ngoài theo `outputFormat`: HTML đã lọc, hoặc Markdown dựng từ HTML đã lọc.
191
+ * Là điểm ra duy nhất cho cả luồng throttle (valueChange/contentChange/form) lẫn `getContent()` (D-032).
191
192
  */
192
- #convertOutput(content) {
193
- // CKEditor Markdown plugin tự động xử lý conversion
194
- // Không cần manual conversion nữa
195
- return content;
193
+ #convertOutput() {
194
+ const editor = this.#editor;
195
+ if (!editor)
196
+ return '';
197
+ const html = this.#readSanitizedHtml(editor);
198
+ if (!this.#isMarkdown())
199
+ return html;
200
+ // why: dựng Markdown từ HTML ĐÃ lọc, để `[text](javascript:...)` không thể lọt vào chuỗi Markdown.
201
+ const htmlProcessor = new HtmlDataProcessor(editor.data.viewDocument);
202
+ return editor.data.processor.toData(htmlProcessor.toView(html));
203
+ }
204
+ #isMarkdown() {
205
+ return this.option?.outputFormat === 'markdown';
206
+ }
207
+ /** HTML hiện tại của editor (kể cả ở chế độ Markdown), đã qua `sdSanitizeEditorHtml`. */
208
+ #readSanitizedHtml(editor) {
209
+ if (!this.#isMarkdown())
210
+ return sdSanitizeEditorHtml(editor.getData());
211
+ // why: với plugin Markdown, `getData()` trả Markdown. Lấy HTML từ data view (đúng thứ getData() dùng)
212
+ // để lọc trước khi chuyển.
213
+ const root = editor.model.document.getRoot();
214
+ if (!root)
215
+ return '';
216
+ const htmlProcessor = new HtmlDataProcessor(editor.data.viewDocument);
217
+ return sdSanitizeEditorHtml(htmlProcessor.toData(editor.data.toView(root)));
196
218
  }
197
219
  /**
198
220
  * Set nội dung cho editor
@@ -204,17 +226,13 @@ class SdMiniEditor {
204
226
  * Get nội dung từ editor
205
227
  */
206
228
  getContent() {
207
- if (this.#editor) {
208
- const html = this.#editor.getData();
209
- return this.#convertOutput(html);
210
- }
211
- return '';
229
+ return this.#convertOutput();
212
230
  }
213
231
  /**
214
- * Get nội dung HTML gốc (không convert)
232
+ * Nội dung dạng HTML (đã lọc), bất kể `outputFormat`.
215
233
  */
216
234
  getHtmlContent() {
217
- return this.#editor?.getData?.() || '';
235
+ return this.#editor ? this.#readSanitizedHtml(this.#editor) : '';
218
236
  }
219
237
  /**
220
238
  * Focus vào editor
@@ -295,7 +313,7 @@ class SdMiniEditor {
295
313
  useExisting: forwardRef(() => SdMiniEditor),
296
314
  multi: true,
297
315
  },
298
- ], ngImport: i0, template: "<sd-ckeditor-styles />\n<ckeditor class=\"sd-mini-editor\" [editor]=\"Editor\" [config]=\"editorConfig\" [disabled]=\"disabled()\" (ready)=\"onReady($event)\"> </ckeditor>\n", styles: [".sd-mini-editor{display:block}::ng-deep .ck-powered-by-balloon{display:none!important}::ng-deep .ck-mentions .ck-button.ck-on{background:var(--sd-primary)!important;color:#fff!important}::ng-deep .ck-mentions .ck-button.ck-on *{color:#fff!important}:host ::ng-deep .ck-editor{--ck-content-font-size: 14px;--ck-content-line-height: 1.5}:host ::ng-deep .ck-editor__editable_inline{border:var(--ck-focus-ring);border-top-left-radius:0!important;border-top-right-radius:0!important;max-height:var(--sd-mini-editor-max-height);overflow:auto}:host ::ng-deep .ck-toolbar{border-radius:0;border:0!important}:host ::ng-deep .ck-content img{max-width:100%!important;height:auto!important;object-fit:contain}:host ::ng-deep .ck-content p{margin-bottom:var(--ck-spacing-large);text-indent:0}:host ::ng-deep .ck-content ul,:host ::ng-deep .ck-content ol{padding-left:20px!important;margin-left:0!important}:host ::ng-deep .ck-custom-mention{font-weight:600;padding:0 2px;display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none;color:var(--sd-primary, #005cbb)}:host ::ng-deep .ck-custom-mention:before{content:attr(data-marker)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CKEditorModule }, { kind: "component", type: i1.CKEditorComponent, selector: "ckeditor", inputs: ["editor", "config", "data", "tagName", "watchdog", "editorWatchdogConfig", "disableWatchdog", "disableTwoWayDataBinding", "disabled"], outputs: ["ready", "change", "blur", "focus", "error"] }, { kind: "component", type: SdCKEditorStyles, selector: "sd-ckeditor-styles" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
316
+ ], ngImport: i0, template: "<sd-ckeditor-styles />\n<ckeditor class=\"sd-mini-editor\" [editor]=\"Editor\" [config]=\"editorConfig\" [disabled]=\"disabled()\" (ready)=\"onReady($event)\"> </ckeditor>\n", styles: [".sd-mini-editor{display:block}::ng-deep .ck-powered-by-balloon{display:none!important}::ng-deep .ck-mentions .ck-button.ck-on{background:var(--sd-primary)!important;color:var(--sd-text-on-solid, #ffffff)!important}::ng-deep .ck-mentions .ck-button.ck-on *{color:var(--sd-text-on-solid, #ffffff)!important}:host ::ng-deep .ck-editor{--ck-content-font-size: 14px;--ck-content-line-height: 1.5}:host ::ng-deep .ck-editor__editable_inline{border:var(--ck-focus-ring);border-top-left-radius:0!important;border-top-right-radius:0!important;max-height:var(--sd-mini-editor-max-height);overflow:auto}:host ::ng-deep .ck-toolbar{border-radius:0;border:0!important}:host ::ng-deep .ck-content img{max-width:100%!important;height:auto!important;object-fit:contain}:host ::ng-deep .ck-content p{margin-bottom:var(--ck-spacing-large);text-indent:0}:host ::ng-deep .ck-content ul,:host ::ng-deep .ck-content ol{padding-left:20px!important;margin-left:0!important}:host ::ng-deep .ck-custom-mention{font-weight:var(--sd-font-weight-semibold, 600);padding:0 2px;display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none;color:var(--sd-primary, #005cbb)}:host ::ng-deep .ck-custom-mention:before{content:attr(data-marker)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CKEditorModule }, { kind: "component", type: i1.CKEditorComponent, selector: "ckeditor", inputs: ["editor", "config", "data", "tagName", "watchdog", "editorWatchdogConfig", "disableWatchdog", "disableTwoWayDataBinding", "disabled"], outputs: ["ready", "change", "blur", "focus", "error"] }, { kind: "component", type: SdCKEditorStyles, selector: "sd-ckeditor-styles" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
299
317
  }
300
318
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdMiniEditor, decorators: [{
301
319
  type: Component,
@@ -305,7 +323,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
305
323
  useExisting: forwardRef(() => SdMiniEditor),
306
324
  multi: true,
307
325
  },
308
- ], template: "<sd-ckeditor-styles />\n<ckeditor class=\"sd-mini-editor\" [editor]=\"Editor\" [config]=\"editorConfig\" [disabled]=\"disabled()\" (ready)=\"onReady($event)\"> </ckeditor>\n", styles: [".sd-mini-editor{display:block}::ng-deep .ck-powered-by-balloon{display:none!important}::ng-deep .ck-mentions .ck-button.ck-on{background:var(--sd-primary)!important;color:#fff!important}::ng-deep .ck-mentions .ck-button.ck-on *{color:#fff!important}:host ::ng-deep .ck-editor{--ck-content-font-size: 14px;--ck-content-line-height: 1.5}:host ::ng-deep .ck-editor__editable_inline{border:var(--ck-focus-ring);border-top-left-radius:0!important;border-top-right-radius:0!important;max-height:var(--sd-mini-editor-max-height);overflow:auto}:host ::ng-deep .ck-toolbar{border-radius:0;border:0!important}:host ::ng-deep .ck-content img{max-width:100%!important;height:auto!important;object-fit:contain}:host ::ng-deep .ck-content p{margin-bottom:var(--ck-spacing-large);text-indent:0}:host ::ng-deep .ck-content ul,:host ::ng-deep .ck-content ol{padding-left:20px!important;margin-left:0!important}:host ::ng-deep .ck-custom-mention{font-weight:600;padding:0 2px;display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none;color:var(--sd-primary, #005cbb)}:host ::ng-deep .ck-custom-mention:before{content:attr(data-marker)}\n"] }]
326
+ ], template: "<sd-ckeditor-styles />\n<ckeditor class=\"sd-mini-editor\" [editor]=\"Editor\" [config]=\"editorConfig\" [disabled]=\"disabled()\" (ready)=\"onReady($event)\"> </ckeditor>\n", styles: [".sd-mini-editor{display:block}::ng-deep .ck-powered-by-balloon{display:none!important}::ng-deep .ck-mentions .ck-button.ck-on{background:var(--sd-primary)!important;color:var(--sd-text-on-solid, #ffffff)!important}::ng-deep .ck-mentions .ck-button.ck-on *{color:var(--sd-text-on-solid, #ffffff)!important}:host ::ng-deep .ck-editor{--ck-content-font-size: 14px;--ck-content-line-height: 1.5}:host ::ng-deep .ck-editor__editable_inline{border:var(--ck-focus-ring);border-top-left-radius:0!important;border-top-right-radius:0!important;max-height:var(--sd-mini-editor-max-height);overflow:auto}:host ::ng-deep .ck-toolbar{border-radius:0;border:0!important}:host ::ng-deep .ck-content img{max-width:100%!important;height:auto!important;object-fit:contain}:host ::ng-deep .ck-content p{margin-bottom:var(--ck-spacing-large);text-indent:0}:host ::ng-deep .ck-content ul,:host ::ng-deep .ck-content ol{padding-left:20px!important;margin-left:0!important}:host ::ng-deep .ck-custom-mention{font-weight:var(--sd-font-weight-semibold, 600);padding:0 2px;display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none;color:var(--sd-primary, #005cbb)}:host ::ng-deep .ck-custom-mention:before{content:attr(data-marker)}\n"] }]
309
327
  }], ctorParameters: () => [], propDecorators: { option: [{
310
328
  type: Input,
311
329
  args: [{ required: true }]