@sdcorejs/angular 21.2.4 → 22.2.5

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 (194) hide show
  1. package/README.md +11 -9
  2. package/assets/fonts/fonts.scss +2 -2
  3. package/assets/images/coming-soon.svg +6 -6
  4. package/assets/images/data-empty.svg +2 -2
  5. package/assets/images/expired.svg +6 -6
  6. package/assets/images/file-error.svg +6 -6
  7. package/assets/images/filter-empty.svg +2 -2
  8. package/assets/images/filter-required.svg +2 -2
  9. package/assets/images/forbidden.svg +2 -2
  10. package/assets/images/image-error.svg +8 -8
  11. package/assets/images/maintenance.svg +3 -3
  12. package/assets/images/not-found.svg +2 -2
  13. package/assets/images/offline.svg +5 -5
  14. package/assets/images/submitted.svg +5 -5
  15. package/assets/images/success.svg +3 -3
  16. package/assets/images/unauthorized.svg +2 -2
  17. package/assets/images/unknown-error.svg +2 -2
  18. package/fesm2022/sdcorejs-angular-components-anchor.mjs +46 -29
  19. package/fesm2022/sdcorejs-angular-components-anchor.mjs.map +1 -1
  20. package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs +167 -94
  21. package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs.map +1 -1
  22. package/fesm2022/sdcorejs-angular-components-audit-diff.mjs +20 -13
  23. package/fesm2022/sdcorejs-angular-components-audit-diff.mjs.map +1 -1
  24. package/fesm2022/sdcorejs-angular-components-autoid-inspector.mjs +65 -40
  25. package/fesm2022/sdcorejs-angular-components-autoid-inspector.mjs.map +1 -1
  26. package/fesm2022/sdcorejs-angular-components-avatar.mjs +15 -9
  27. package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
  28. package/fesm2022/sdcorejs-angular-components-badge.mjs +31 -17
  29. package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
  30. package/fesm2022/sdcorejs-angular-components-breadcrumb.mjs +17 -10
  31. package/fesm2022/sdcorejs-angular-components-breadcrumb.mjs.map +1 -1
  32. package/fesm2022/sdcorejs-angular-components-button.mjs +17 -10
  33. package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
  34. package/fesm2022/sdcorejs-angular-components-card.mjs +185 -0
  35. package/fesm2022/sdcorejs-angular-components-card.mjs.map +1 -0
  36. package/fesm2022/sdcorejs-angular-components-chart.mjs +52 -32
  37. package/fesm2022/sdcorejs-angular-components-chart.mjs.map +1 -1
  38. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs +3 -3
  39. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs.map +1 -1
  40. package/fesm2022/sdcorejs-angular-components-code-editor.mjs +15 -9
  41. package/fesm2022/sdcorejs-angular-components-code-editor.mjs.map +1 -1
  42. package/fesm2022/sdcorejs-angular-components-data-state.mjs +32 -19
  43. package/fesm2022/sdcorejs-angular-components-data-state.mjs.map +1 -1
  44. package/fesm2022/sdcorejs-angular-components-editor.mjs +38 -21
  45. package/fesm2022/sdcorejs-angular-components-editor.mjs.map +1 -1
  46. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +396 -306
  47. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  48. package/fesm2022/sdcorejs-angular-components-history.mjs +10 -10
  49. package/fesm2022/sdcorejs-angular-components-history.mjs.map +1 -1
  50. package/fesm2022/sdcorejs-angular-components-import-excel.mjs +12 -12
  51. package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
  52. package/fesm2022/sdcorejs-angular-components-inform.mjs +42 -24
  53. package/fesm2022/sdcorejs-angular-components-inform.mjs.map +1 -1
  54. package/fesm2022/sdcorejs-angular-components-job-progress.mjs +39 -21
  55. package/fesm2022/sdcorejs-angular-components-job-progress.mjs.map +1 -1
  56. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs +9 -8
  57. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs.map +1 -1
  58. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs +22 -14
  59. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs.map +1 -1
  60. package/fesm2022/sdcorejs-angular-components-modal.mjs +36 -14
  61. package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
  62. package/fesm2022/sdcorejs-angular-components-operator.mjs +17 -10
  63. package/fesm2022/sdcorejs-angular-components-operator.mjs.map +1 -1
  64. package/fesm2022/sdcorejs-angular-components-org-chart.mjs +26 -16
  65. package/fesm2022/sdcorejs-angular-components-org-chart.mjs.map +1 -1
  66. package/fesm2022/sdcorejs-angular-components-preview.mjs +288 -147
  67. package/fesm2022/sdcorejs-angular-components-preview.mjs.map +1 -1
  68. package/fesm2022/sdcorejs-angular-components-query-bar.mjs +279 -153
  69. package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
  70. package/fesm2022/sdcorejs-angular-components-query-builder.mjs +69 -36
  71. package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
  72. package/fesm2022/sdcorejs-angular-components-quick-action.mjs +7 -5
  73. package/fesm2022/sdcorejs-angular-components-quick-action.mjs.map +1 -1
  74. package/fesm2022/sdcorejs-angular-components-section.mjs +17 -13
  75. package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
  76. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +26 -16
  77. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
  78. package/fesm2022/sdcorejs-angular-components-splitter.mjs +58 -37
  79. package/fesm2022/sdcorejs-angular-components-splitter.mjs.map +1 -1
  80. package/fesm2022/sdcorejs-angular-components-stepper.mjs +36 -21
  81. package/fesm2022/sdcorejs-angular-components-stepper.mjs.map +1 -1
  82. package/fesm2022/sdcorejs-angular-components-tab-router.mjs +27 -23
  83. package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
  84. package/fesm2022/sdcorejs-angular-components-tab.mjs +34 -20
  85. package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
  86. package/fesm2022/sdcorejs-angular-components-table.mjs +1630 -998
  87. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  88. package/fesm2022/sdcorejs-angular-components-tree.mjs +86 -46
  89. package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
  90. package/fesm2022/sdcorejs-angular-components-upload-file.mjs +65 -40
  91. package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
  92. package/fesm2022/sdcorejs-angular-components-view.mjs +25 -14
  93. package/fesm2022/sdcorejs-angular-components-view.mjs.map +1 -1
  94. package/fesm2022/sdcorejs-angular-components.mjs +1 -0
  95. package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
  96. package/fesm2022/sdcorejs-angular-configurations.mjs.map +1 -1
  97. package/fesm2022/sdcorejs-angular-directives.mjs +42 -33
  98. package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
  99. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +80 -42
  100. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
  101. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs +15 -9
  102. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs.map +1 -1
  103. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +41 -24
  104. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
  105. package/fesm2022/sdcorejs-angular-forms-chip.mjs +37 -22
  106. package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
  107. package/fesm2022/sdcorejs-angular-forms-date-range.mjs +55 -30
  108. package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
  109. package/fesm2022/sdcorejs-angular-forms-date.mjs +63 -34
  110. package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
  111. package/fesm2022/sdcorejs-angular-forms-datetime.mjs +65 -35
  112. package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
  113. package/fesm2022/sdcorejs-angular-forms-directives.mjs +12 -12
  114. package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
  115. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +94 -53
  116. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
  117. package/fesm2022/sdcorejs-angular-forms-inline-text.mjs +33 -18
  118. package/fesm2022/sdcorejs-angular-forms-inline-text.mjs.map +1 -1
  119. package/fesm2022/sdcorejs-angular-forms-input-color.mjs +25 -14
  120. package/fesm2022/sdcorejs-angular-forms-input-color.mjs.map +1 -1
  121. package/fesm2022/sdcorejs-angular-forms-input-number.mjs +123 -42
  122. package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
  123. package/fesm2022/sdcorejs-angular-forms-input.mjs +94 -49
  124. package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
  125. package/fesm2022/sdcorejs-angular-forms-label.mjs +3 -3
  126. package/fesm2022/sdcorejs-angular-forms-label.mjs.map +1 -1
  127. package/fesm2022/sdcorejs-angular-forms-models.mjs +13 -8
  128. package/fesm2022/sdcorejs-angular-forms-models.mjs.map +1 -1
  129. package/fesm2022/sdcorejs-angular-forms-radio.mjs +41 -22
  130. package/fesm2022/sdcorejs-angular-forms-radio.mjs.map +1 -1
  131. package/fesm2022/sdcorejs-angular-forms-select.mjs +112 -59
  132. package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
  133. package/fesm2022/sdcorejs-angular-forms-switch.mjs +21 -12
  134. package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
  135. package/fesm2022/sdcorejs-angular-forms-textarea.mjs +48 -26
  136. package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
  137. package/fesm2022/sdcorejs-angular-forms-time-range.mjs +83 -43
  138. package/fesm2022/sdcorejs-angular-forms-time-range.mjs.map +1 -1
  139. package/fesm2022/sdcorejs-angular-forms-time.mjs +72 -38
  140. package/fesm2022/sdcorejs-angular-forms-time.mjs.map +1 -1
  141. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +76 -41
  142. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
  143. package/fesm2022/sdcorejs-angular-forms.mjs +4 -4
  144. package/fesm2022/sdcorejs-angular-forms.mjs.map +1 -1
  145. package/fesm2022/sdcorejs-angular-handlers.mjs +3 -3
  146. package/fesm2022/sdcorejs-angular-handlers.mjs.map +1 -1
  147. package/fesm2022/sdcorejs-angular-i18n.mjs +97 -9
  148. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  149. package/fesm2022/sdcorejs-angular-interceptors.mjs +6 -6
  150. package/fesm2022/sdcorejs-angular-interceptors.mjs.map +1 -1
  151. package/fesm2022/sdcorejs-angular-modules-auth.mjs +11 -10
  152. package/fesm2022/sdcorejs-angular-modules-auth.mjs.map +1 -1
  153. package/fesm2022/sdcorejs-angular-modules-icon.mjs +19 -11
  154. package/fesm2022/sdcorejs-angular-modules-icon.mjs.map +1 -1
  155. package/fesm2022/sdcorejs-angular-modules-keycloak.mjs +7 -7
  156. package/fesm2022/sdcorejs-angular-modules-keycloak.mjs.map +1 -1
  157. package/fesm2022/sdcorejs-angular-modules-layout.mjs +387 -247
  158. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  159. package/fesm2022/sdcorejs-angular-modules-permission.mjs +13 -11
  160. package/fesm2022/sdcorejs-angular-modules-permission.mjs.map +1 -1
  161. package/fesm2022/sdcorejs-angular-pipes.mjs +25 -25
  162. package/fesm2022/sdcorejs-angular-pipes.mjs.map +1 -1
  163. package/fesm2022/sdcorejs-angular-services-api.mjs +15 -10
  164. package/fesm2022/sdcorejs-angular-services-api.mjs.map +1 -1
  165. package/fesm2022/sdcorejs-angular-services-cache.mjs +3 -3
  166. package/fesm2022/sdcorejs-angular-services-cache.mjs.map +1 -1
  167. package/fesm2022/sdcorejs-angular-services-confirm.mjs +9 -9
  168. package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
  169. package/fesm2022/sdcorejs-angular-services-excel.mjs +3 -3
  170. package/fesm2022/sdcorejs-angular-services-excel.mjs.map +1 -1
  171. package/fesm2022/sdcorejs-angular-services-loading.mjs +3 -3
  172. package/fesm2022/sdcorejs-angular-services-loading.mjs.map +1 -1
  173. package/fesm2022/sdcorejs-angular-services-notify.mjs +21 -16
  174. package/fesm2022/sdcorejs-angular-services-notify.mjs.map +1 -1
  175. package/fesm2022/sdcorejs-angular-services-persistence.mjs +3 -3
  176. package/fesm2022/sdcorejs-angular-services-persistence.mjs.map +1 -1
  177. package/fesm2022/sdcorejs-angular-services-storage.mjs +3 -3
  178. package/fesm2022/sdcorejs-angular-services-storage.mjs.map +1 -1
  179. package/fesm2022/sdcorejs-angular-services-task.mjs +19 -11
  180. package/fesm2022/sdcorejs-angular-services-task.mjs.map +1 -1
  181. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs +17 -10
  182. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs.map +1 -1
  183. package/fesm2022/sdcorejs-angular-services-viewport.mjs +15 -9
  184. package/fesm2022/sdcorejs-angular-services-viewport.mjs.map +1 -1
  185. package/fesm2022/sdcorejs-angular-utilities-data-state.mjs.map +1 -1
  186. package/fesm2022/sdcorejs-angular-utilities-extensions.mjs.map +1 -1
  187. package/fesm2022/sdcorejs-angular-utilities-models.mjs.map +1 -1
  188. package/package.json +17 -13
  189. package/types/sdcorejs-angular-components-card.d.ts +58 -0
  190. package/types/sdcorejs-angular-components-modal.d.ts +1 -0
  191. package/types/sdcorejs-angular-components-quick-action.d.ts +6 -4
  192. package/types/sdcorejs-angular-components-table.d.ts +294 -233
  193. package/types/sdcorejs-angular-components.d.ts +1 -0
  194. package/types/sdcorejs-angular-i18n.d.ts +17 -0
@@ -6,29 +6,35 @@ import { MatStepper, MatStepperModule } from '@angular/material/stepper';
6
6
  import { SdIcon } from '@sdcorejs/angular/modules/icon';
7
7
 
8
8
  class SdStep {
9
- label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
9
+ label = input.required(/* @ts-ignore */
10
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
10
11
  // Optional Material icon name shown when the step is in 'pending' state
11
12
  // (overrides the default numbered indicator).
12
- icon = input(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
13
+ icon = input(undefined, /* @ts-ignore */
14
+ ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
13
15
  // Set true to mark the step skippable in linear mode.
14
16
  optional = input(false, { ...(ngDevMode ? { debugName: "optional" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
15
17
  // When false, user cannot return to this step after it's been completed.
16
18
  editable = input(true, { ...(ngDevMode ? { debugName: "editable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
17
19
  // Reactive form / control. When the stepper is linear, the user can only
18
20
  // proceed past this step once stepControl.valid is true.
19
- stepControl = input(undefined, ...(ngDevMode ? [{ debugName: "stepControl" }] : /* istanbul ignore next */ []));
21
+ stepControl = input(undefined, /* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "stepControl" }] : /* istanbul ignore next */ []));
20
23
  // Override the auto-derived state (eg force 'error' from outside on async validation).
21
- state = input(undefined, ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
24
+ state = input(undefined, /* @ts-ignore */
25
+ ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
22
26
  // Error message rendered next to the step header when state is 'error'.
23
- errorMessage = input(undefined, ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
27
+ errorMessage = input(undefined, /* @ts-ignore */
28
+ ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
24
29
  // Emitted when this step transitions to selected.
25
30
  selectChange = output();
26
31
  // Body template captured from projected <ng-content>.
27
- bodyTpl = viewChild.required('body');
28
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdStep, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.17", type: SdStep, isStandalone: true, selector: "sd-step", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, stepControl: { classPropertyName: "stepControl", publicName: "stepControl", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectChange: "selectChange" }, viewQueries: [{ propertyName: "bodyTpl", first: true, predicate: ["body"], descendants: true, isSignal: true }], ngImport: i0, template: `<ng-template #body><ng-content></ng-content></ng-template>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
32
+ bodyTpl = viewChild.required('body', /* @ts-ignore */
33
+ ...(ngDevMode ? [{ debugName: "bodyTpl" }] : /* istanbul ignore next */ []));
34
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdStep, deps: [], target: i0.ɵɵFactoryTarget.Component });
35
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.5", type: SdStep, isStandalone: true, selector: "sd-step", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, stepControl: { classPropertyName: "stepControl", publicName: "stepControl", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectChange: "selectChange" }, viewQueries: [{ propertyName: "bodyTpl", first: true, predicate: ["body"], descendants: true, isSignal: true }], ngImport: i0, template: `<ng-template #body><ng-content></ng-content></ng-template>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
30
36
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdStep, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdStep, decorators: [{
32
38
  type: Component,
33
39
  args: [{
34
40
  selector: 'sd-step',
@@ -42,21 +48,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
42
48
  }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], editable: [{ type: i0.Input, args: [{ isSignal: true, alias: "editable", required: false }] }], stepControl: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepControl", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], selectChange: [{ type: i0.Output, args: ["selectChange"] }], bodyTpl: [{ type: i0.ViewChild, args: ['body', { isSignal: true }] }] } });
43
49
 
44
50
  class SdStepper {
45
- steps = contentChildren(SdStep, ...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
46
- selectedIndex = model(0, ...(ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []));
51
+ steps = contentChildren(SdStep, /* @ts-ignore */
52
+ ...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
53
+ selectedIndex = model(0, /* @ts-ignore */
54
+ ...(ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []));
47
55
  // why: enforce sequential gating — only valid steps unlock the next.
48
56
  linear = input(false, { ...(ngDevMode ? { debugName: "linear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
49
- orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
50
- labelPosition = input('end', ...(ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []));
51
- headerPosition = input('top', ...(ngDevMode ? [{ debugName: "headerPosition" }] : /* istanbul ignore next */ []));
52
- animationDuration = input('500ms', ...(ngDevMode ? [{ debugName: "animationDuration" }] : /* istanbul ignore next */ []));
57
+ orientation = input('horizontal', /* @ts-ignore */
58
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
59
+ labelPosition = input('end', /* @ts-ignore */
60
+ ...(ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []));
61
+ headerPosition = input('top', /* @ts-ignore */
62
+ ...(ngDevMode ? [{ debugName: "headerPosition" }] : /* istanbul ignore next */ []));
63
+ animationDuration = input('500ms', /* @ts-ignore */
64
+ ...(ngDevMode ? [{ debugName: "animationDuration" }] : /* istanbul ignore next */ []));
53
65
  disableRipple = input(false, { ...(ngDevMode ? { debugName: "disableRipple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
54
66
  // Drives the Core color CSS vars on indicators / connector / line.
55
- color = input('primary', ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
56
- autoId = input(undefined, ...(ngDevMode ? [{ debugName: "autoId" }] : /* istanbul ignore next */ []));
67
+ color = input('primary', /* @ts-ignore */
68
+ ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
69
+ autoId = input(undefined, /* @ts-ignore */
70
+ ...(ngDevMode ? [{ debugName: "autoId" }] : /* istanbul ignore next */ []));
57
71
  // Emits {previousIndex, selectedIndex, previousStep, selectedStep}.
58
72
  selectionChange = output();
59
- matStepper = viewChild(MatStepper, ...(ngDevMode ? [{ debugName: "matStepper" }] : /* istanbul ignore next */ []));
73
+ matStepper = viewChild(MatStepper, /* @ts-ignore */
74
+ ...(ngDevMode ? [{ debugName: "matStepper" }] : /* istanbul ignore next */ []));
60
75
  get autoIdAttr() {
61
76
  return this.autoId() ?? null;
62
77
  }
@@ -106,10 +121,10 @@ class SdStepper {
106
121
  const step = this.steps()[ev.selectedIndex];
107
122
  step?.selectChange.emit();
108
123
  }
109
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdStepper, deps: [], target: i0.ɵɵFactoryTarget.Component });
110
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SdStepper, isStandalone: true, selector: "sd-stepper", inputs: { selectedIndex: { classPropertyName: "selectedIndex", publicName: "selectedIndex", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, headerPosition: { classPropertyName: "headerPosition", publicName: "headerPosition", isSignal: true, isRequired: false, transformFunction: null }, animationDuration: { classPropertyName: "animationDuration", publicName: "animationDuration", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIndex: "selectedIndexChange", selectionChange: "selectionChange" }, host: { properties: { "attr.data-autoId": "this.autoIdAttr", "style.--sd-stepper-active-color": "this.cssActive", "style.--sd-stepper-active-bg": "this.cssActiveBg", "style.--sd-stepper-completed-color": "this.cssCompleted", "style.--sd-stepper-line-active-color": "this.cssLine" } }, queries: [{ propertyName: "steps", predicate: SdStep, isSignal: true }], viewQueries: [{ propertyName: "matStepper", first: true, predicate: MatStepper, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- why: `(selectionChange)` b\u00EAn d\u01B0\u1EDBi l\u00E0 output c\u1EE7a `MatStepper` (Angular Material), KH\u00D4NG ph\u1EA3i output c\u1EE7a\n `<sd-stepper>` \u2014 ph\u1EA3i gi\u1EEF nguy\u00EAn t\u00EAn. Output c\u00F4ng khai c\u1EE7a lib \u0111\u00E3 \u0111\u1ED5i th\u00E0nh `selectionChange`. -->\n<mat-stepper\n class=\"sd-stepper\"\n [(selectedIndex)]=\"selectedIndex\"\n [linear]=\"linear()\"\n [orientation]=\"orientation()\"\n [labelPosition]=\"labelPosition()\"\n [headerPosition]=\"headerPosition()\"\n [animationDuration]=\"animationDuration()\"\n [disableRipple]=\"disableRipple()\"\n (selectionChange)=\"onSelectionChange($event)\">\n @for (step of steps(); track step; let i = $index) {\n <mat-step\n [stepControl]=\"step.stepControl() ?? undefined!\"\n [optional]=\"step.optional()\"\n [editable]=\"step.editable()\"\n [state]=\"step.state() ?? ''\"\n [errorMessage]=\"step.errorMessage() ?? ''\">\n <ng-template matStepLabel>\n <span class=\"sd-step__label\">\n @if (step.icon(); as ic) {\n <sd-icon class=\"sd-step__icon\" [name]=\"ic\"></sd-icon>\n }\n <span class=\"sd-step__text\">{{ step.label() }}</span>\n </span>\n </ng-template>\n\n <ng-template matStepContent>\n <ng-container [ngTemplateOutlet]=\"step.bodyTpl()\"></ng-container>\n </ng-template>\n </mat-step>\n }\n</mat-stepper>\n", styles: [":host{display:block;--sd-stepper-active-color: var(--sd-primary, #005cbb);--sd-stepper-active-bg: var(--sd-primary, #005cbb);--sd-stepper-completed-color: var(--sd-primary, #005cbb);--sd-stepper-line-active-color: var(--sd-primary, #005cbb);--sd-stepper-error-color: var(--sd-error, #ba1a1a);--sd-stepper-pending-bg: var(--sd-disabled-bg, rgba(26, 27, 31, .08));--sd-stepper-pending-color: var(--sd-disabled-text, rgba(26, 27, 31, .6));--sd-stepper-text-color: var(--sd-text, #1a1b1f)}.sd-step__label{display:inline-flex;align-items:center;gap:4px}.sd-step__icon{font-size:18px;width:18px;height:18px;line-height:18px}.sd-step__text{white-space:nowrap}:host ::ng-deep .mat-step-icon{background-color:var(--sd-stepper-pending-bg);color:var(--sd-stepper-pending-color)}:host ::ng-deep .mat-step-icon-selected{background-color:var(--sd-stepper-active-bg)!important;color:#fff!important}:host ::ng-deep .mat-step-icon-state-done,:host ::ng-deep .mat-step-icon-state-edit{background-color:var(--sd-stepper-completed-color)!important;color:#fff!important}:host ::ng-deep .mat-step-icon-state-error{background-color:var(--sd-stepper-error-color)!important;color:#fff!important}:host ::ng-deep .mat-step-label.mat-step-label-active .mat-step-text-label{color:var(--sd-stepper-text-color);font-weight:500}:host ::ng-deep .mat-step-label-selected .mat-step-text-label{color:var(--sd-stepper-active-color);font-weight:600}:host ::ng-deep .mat-stepper-horizontal-line,:host ::ng-deep .mat-stepper-vertical-line:before{border-color:#0000001f}:host ::ng-deep .mat-step-header.cdk-program-focused,:host ::ng-deep .mat-step-header:hover{background-color:#00000005}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: MatStepperModule }, { kind: "component", type: i1.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i1.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i1.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["disableRipple", "color", "labelPosition", "headerPosition", "aria-label", "headerPrefix", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "directive", type: i1.MatStepContent, selector: "ng-template[matStepContent]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
124
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdStepper, deps: [], target: i0.ɵɵFactoryTarget.Component });
125
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SdStepper, isStandalone: true, selector: "sd-stepper", inputs: { selectedIndex: { classPropertyName: "selectedIndex", publicName: "selectedIndex", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, headerPosition: { classPropertyName: "headerPosition", publicName: "headerPosition", isSignal: true, isRequired: false, transformFunction: null }, animationDuration: { classPropertyName: "animationDuration", publicName: "animationDuration", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIndex: "selectedIndexChange", selectionChange: "selectionChange" }, host: { properties: { "attr.data-autoId": "this.autoIdAttr", "style.--sd-stepper-active-color": "this.cssActive", "style.--sd-stepper-active-bg": "this.cssActiveBg", "style.--sd-stepper-completed-color": "this.cssCompleted", "style.--sd-stepper-line-active-color": "this.cssLine" } }, queries: [{ propertyName: "steps", predicate: SdStep, isSignal: true }], viewQueries: [{ propertyName: "matStepper", first: true, predicate: MatStepper, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- why: `(selectionChange)` b\u00EAn d\u01B0\u1EDBi l\u00E0 output c\u1EE7a `MatStepper` (Angular Material), KH\u00D4NG ph\u1EA3i output c\u1EE7a\n `<sd-stepper>` \u2014 ph\u1EA3i gi\u1EEF nguy\u00EAn t\u00EAn. Output c\u00F4ng khai c\u1EE7a lib \u0111\u00E3 \u0111\u1ED5i th\u00E0nh `selectionChange`. -->\n<mat-stepper\n class=\"sd-stepper\"\n [(selectedIndex)]=\"selectedIndex\"\n [linear]=\"linear()\"\n [orientation]=\"orientation()\"\n [labelPosition]=\"labelPosition()\"\n [headerPosition]=\"headerPosition()\"\n [animationDuration]=\"animationDuration()\"\n [disableRipple]=\"disableRipple()\"\n (selectionChange)=\"onSelectionChange($event)\">\n @for (step of steps(); track step; let i = $index) {\n <mat-step\n [stepControl]=\"step.stepControl() ?? undefined!\"\n [optional]=\"step.optional()\"\n [editable]=\"step.editable()\"\n [state]=\"step.state() ?? ''\"\n [errorMessage]=\"step.errorMessage() ?? ''\">\n <ng-template matStepLabel>\n <span class=\"sd-step__label\">\n @if (step.icon(); as ic) {\n <sd-icon class=\"sd-step__icon\" [name]=\"ic\"></sd-icon>\n }\n <span class=\"sd-step__text\">{{ step.label() }}</span>\n </span>\n </ng-template>\n\n <ng-template matStepContent>\n <ng-container [ngTemplateOutlet]=\"step.bodyTpl()\"></ng-container>\n </ng-template>\n </mat-step>\n }\n</mat-stepper>\n", styles: [":host{display:block;--sd-stepper-active-color: var(--sd-primary, #005cbb);--sd-stepper-active-bg: var(--sd-primary, #005cbb);--sd-stepper-completed-color: var(--sd-primary, #005cbb);--sd-stepper-line-active-color: var(--sd-primary, #005cbb);--sd-stepper-error-color: var(--sd-error, #ba1a1a);--sd-stepper-pending-bg: var(--sd-disabled-bg, rgba(26, 27, 31, .08));--sd-stepper-pending-color: var(--sd-disabled-text, rgba(26, 27, 31, .6));--sd-stepper-text-color: var(--sd-text, #1a1b1f)}.sd-step__label{display:inline-flex;align-items:center;gap:4px}.sd-step__icon{font-size:18px;width:18px;height:18px;line-height:18px}.sd-step__text{white-space:nowrap}:host ::ng-deep .mat-step-icon{background-color:var(--sd-stepper-pending-bg);color:var(--sd-stepper-pending-color)}:host ::ng-deep .mat-step-icon-selected{background-color:var(--sd-stepper-active-bg)!important;color:#fff!important}:host ::ng-deep .mat-step-icon-state-done,:host ::ng-deep .mat-step-icon-state-edit{background-color:var(--sd-stepper-completed-color)!important;color:#fff!important}:host ::ng-deep .mat-step-icon-state-error{background-color:var(--sd-stepper-error-color)!important;color:#fff!important}:host ::ng-deep .mat-step-label.mat-step-label-active .mat-step-text-label{color:var(--sd-stepper-text-color);font-weight:500}:host ::ng-deep .mat-step-label-selected .mat-step-text-label{color:var(--sd-stepper-active-color);font-weight:600}:host ::ng-deep .mat-stepper-horizontal-line,:host ::ng-deep .mat-stepper-vertical-line:before{border-color:#0000001f}:host ::ng-deep .mat-step-header.cdk-program-focused,:host ::ng-deep .mat-step-header:hover{background-color:#00000005}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: MatStepperModule }, { kind: "component", type: i1.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i1.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i1.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["disableRipple", "color", "labelPosition", "headerPosition", "aria-label", "headerPrefix", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "directive", type: i1.MatStepContent, selector: "ng-template[matStepContent]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
111
126
  }
112
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdStepper, decorators: [{
127
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdStepper, decorators: [{
113
128
  type: Component,
114
129
  args: [{ selector: 'sd-stepper', standalone: true, imports: [SdIcon, MatStepperModule, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- why: `(selectionChange)` b\u00EAn d\u01B0\u1EDBi l\u00E0 output c\u1EE7a `MatStepper` (Angular Material), KH\u00D4NG ph\u1EA3i output c\u1EE7a\n `<sd-stepper>` \u2014 ph\u1EA3i gi\u1EEF nguy\u00EAn t\u00EAn. Output c\u00F4ng khai c\u1EE7a lib \u0111\u00E3 \u0111\u1ED5i th\u00E0nh `selectionChange`. -->\n<mat-stepper\n class=\"sd-stepper\"\n [(selectedIndex)]=\"selectedIndex\"\n [linear]=\"linear()\"\n [orientation]=\"orientation()\"\n [labelPosition]=\"labelPosition()\"\n [headerPosition]=\"headerPosition()\"\n [animationDuration]=\"animationDuration()\"\n [disableRipple]=\"disableRipple()\"\n (selectionChange)=\"onSelectionChange($event)\">\n @for (step of steps(); track step; let i = $index) {\n <mat-step\n [stepControl]=\"step.stepControl() ?? undefined!\"\n [optional]=\"step.optional()\"\n [editable]=\"step.editable()\"\n [state]=\"step.state() ?? ''\"\n [errorMessage]=\"step.errorMessage() ?? ''\">\n <ng-template matStepLabel>\n <span class=\"sd-step__label\">\n @if (step.icon(); as ic) {\n <sd-icon class=\"sd-step__icon\" [name]=\"ic\"></sd-icon>\n }\n <span class=\"sd-step__text\">{{ step.label() }}</span>\n </span>\n </ng-template>\n\n <ng-template matStepContent>\n <ng-container [ngTemplateOutlet]=\"step.bodyTpl()\"></ng-container>\n </ng-template>\n </mat-step>\n }\n</mat-stepper>\n", styles: [":host{display:block;--sd-stepper-active-color: var(--sd-primary, #005cbb);--sd-stepper-active-bg: var(--sd-primary, #005cbb);--sd-stepper-completed-color: var(--sd-primary, #005cbb);--sd-stepper-line-active-color: var(--sd-primary, #005cbb);--sd-stepper-error-color: var(--sd-error, #ba1a1a);--sd-stepper-pending-bg: var(--sd-disabled-bg, rgba(26, 27, 31, .08));--sd-stepper-pending-color: var(--sd-disabled-text, rgba(26, 27, 31, .6));--sd-stepper-text-color: var(--sd-text, #1a1b1f)}.sd-step__label{display:inline-flex;align-items:center;gap:4px}.sd-step__icon{font-size:18px;width:18px;height:18px;line-height:18px}.sd-step__text{white-space:nowrap}:host ::ng-deep .mat-step-icon{background-color:var(--sd-stepper-pending-bg);color:var(--sd-stepper-pending-color)}:host ::ng-deep .mat-step-icon-selected{background-color:var(--sd-stepper-active-bg)!important;color:#fff!important}:host ::ng-deep .mat-step-icon-state-done,:host ::ng-deep .mat-step-icon-state-edit{background-color:var(--sd-stepper-completed-color)!important;color:#fff!important}:host ::ng-deep .mat-step-icon-state-error{background-color:var(--sd-stepper-error-color)!important;color:#fff!important}:host ::ng-deep .mat-step-label.mat-step-label-active .mat-step-text-label{color:var(--sd-stepper-text-color);font-weight:500}:host ::ng-deep .mat-step-label-selected .mat-step-text-label{color:var(--sd-stepper-active-color);font-weight:600}:host ::ng-deep .mat-stepper-horizontal-line,:host ::ng-deep .mat-stepper-vertical-line:before{border-color:#0000001f}:host ::ng-deep .mat-step-header.cdk-program-focused,:host ::ng-deep .mat-step-header:hover{background-color:#00000005}\n"] }]
115
130
  }], ctorParameters: () => [], propDecorators: { steps: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SdStep), { isSignal: true }] }], selectedIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIndex", required: false }] }, { type: i0.Output, args: ["selectedIndexChange"] }], linear: [{ type: i0.Input, args: [{ isSignal: true, alias: "linear", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], headerPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerPosition", required: false }] }], animationDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "animationDuration", required: false }] }], disableRipple: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableRipple", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], autoId: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }], matStepper: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatStepper), { isSignal: true }] }], autoIdAttr: [{
@@ -1 +1 @@
1
- {"version":3,"file":"sdcorejs-angular-components-stepper.mjs","sources":["../../../projects/sdcorejs-angular/components/stepper/src/step.component.ts","../../../projects/sdcorejs-angular/components/stepper/src/stepper.component.ts","../../../projects/sdcorejs-angular/components/stepper/src/stepper.component.html","../../../projects/sdcorejs-angular/components/stepper/sdcorejs-angular-components-stepper.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, input, output, TemplateRef, viewChild } from '@angular/core';\nimport { AbstractControl } from '@angular/forms';\n\nexport type SdStepState = 'pending' | 'active' | 'completed' | 'error' | string;\n\n@Component({\n selector: 'sd-step',\n standalone: true,\n // why: identical pattern to <sd-tab> — capture projected content via #body\n // template ref so <sd-stepper> can render it inside mat-step's matStepContent\n // (lazy mount + animation-friendly).\n template: `<ng-template #body><ng-content></ng-content></ng-template>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SdStep {\n label = input.required<string>();\n // Optional Material icon name shown when the step is in 'pending' state\n // (overrides the default numbered indicator).\n icon = input<string | null | undefined>(undefined);\n // Set true to mark the step skippable in linear mode.\n optional = input(false, { transform: booleanAttribute });\n // When false, user cannot return to this step after it's been completed.\n editable = input(true, { transform: booleanAttribute });\n // Reactive form / control. When the stepper is linear, the user can only\n // proceed past this step once stepControl.valid is true.\n stepControl = input<AbstractControl | null | undefined>(undefined);\n // Override the auto-derived state (eg force 'error' from outside on async validation).\n state = input<SdStepState | undefined>(undefined);\n // Error message rendered next to the step header when state is 'error'.\n errorMessage = input<string | undefined>(undefined);\n\n // Emitted when this step transitions to selected.\n selectChange = output<void>();\n\n // Body template captured from projected <ng-content>.\n bodyTpl = viewChild.required<TemplateRef<unknown>>('body');\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n contentChildren,\n effect,\n HostBinding,\n input,\n model,\n output,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { StepperSelectionEvent } from '@angular/cdk/stepper';\nimport { MatStepperModule, MatStepper } from '@angular/material/stepper';\nimport { Color } from '@sdcorejs/utils/models';\nimport { SdStep } from './step.component';\nimport { SdIcon } from '@sdcorejs/angular/modules/icon';\n\n@Component({\n selector: 'sd-stepper',\n standalone: true,\n imports: [SdIcon, MatStepperModule, NgTemplateOutlet],\n templateUrl: './stepper.component.html',\n styleUrl: './stepper.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SdStepper {\n steps = contentChildren(SdStep);\n\n selectedIndex = model<number>(0);\n // why: enforce sequential gating — only valid steps unlock the next.\n linear = input(false, { transform: booleanAttribute });\n orientation = input<'horizontal' | 'vertical'>('horizontal');\n labelPosition = input<'end' | 'bottom'>('end');\n headerPosition = input<'top' | 'bottom'>('top');\n animationDuration = input<string>('500ms');\n disableRipple = input(false, { transform: booleanAttribute });\n // Drives the Core color CSS vars on indicators / connector / line.\n color = input<Color>('primary');\n autoId = input<string | undefined>(undefined);\n\n // Emits {previousIndex, selectedIndex, previousStep, selectedStep}.\n selectionChange = output<StepperSelectionEvent>();\n\n protected matStepper = viewChild(MatStepper);\n\n @HostBinding('attr.data-autoId') get autoIdAttr(): string | null {\n return this.autoId() ?? null;\n }\n\n // Core color CSS vars — same mechanism as <sd-tab-group>.\n @HostBinding('style.--sd-stepper-active-color') get cssActive(): string {\n return `var(--sd-${this.color()})`;\n }\n @HostBinding('style.--sd-stepper-active-bg') get cssActiveBg(): string {\n return `var(--sd-${this.color()})`;\n }\n @HostBinding('style.--sd-stepper-completed-color') get cssCompleted(): string {\n return `var(--sd-${this.color()})`;\n }\n @HostBinding('style.--sd-stepper-line-active-color') get cssLine(): string {\n return `var(--sd-${this.color()})`;\n }\n\n constructor() {\n // why: clamp selectedIndex when a step is removed past the active one.\n effect(() => {\n const len = this.steps().length;\n const cur = untracked(() => this.selectedIndex());\n if (len > 0 && cur >= len) {\n this.selectedIndex.set(Math.max(0, len - 1));\n }\n });\n }\n\n next(): void {\n this.matStepper()?.next();\n }\n\n previous(): void {\n this.matStepper()?.previous();\n }\n\n reset(): void {\n this.matStepper()?.reset();\n }\n\n goTo(index: number): void {\n const len = this.steps().length;\n if (len === 0) {\n this.selectedIndex.set(0);\n return;\n }\n this.selectedIndex.set(Math.max(0, Math.min(index, len - 1)));\n }\n\n protected onSelectionChange(ev: StepperSelectionEvent): void {\n this.selectionChange.emit(ev);\n // Forward to each step that just became selected so consumer can react.\n const step = this.steps()[ev.selectedIndex];\n step?.selectChange.emit();\n }\n}\n","<!-- why: `(selectionChange)` bên dưới là output của `MatStepper` (Angular Material), KHÔNG phải output của\n `<sd-stepper>` — phải giữ nguyên tên. Output công khai của lib đã đổi thành `selectionChange`. -->\n<mat-stepper\n class=\"sd-stepper\"\n [(selectedIndex)]=\"selectedIndex\"\n [linear]=\"linear()\"\n [orientation]=\"orientation()\"\n [labelPosition]=\"labelPosition()\"\n [headerPosition]=\"headerPosition()\"\n [animationDuration]=\"animationDuration()\"\n [disableRipple]=\"disableRipple()\"\n (selectionChange)=\"onSelectionChange($event)\">\n @for (step of steps(); track step; let i = $index) {\n <mat-step\n [stepControl]=\"step.stepControl() ?? undefined!\"\n [optional]=\"step.optional()\"\n [editable]=\"step.editable()\"\n [state]=\"step.state() ?? ''\"\n [errorMessage]=\"step.errorMessage() ?? ''\">\n <ng-template matStepLabel>\n <span class=\"sd-step__label\">\n @if (step.icon(); as ic) {\n <sd-icon class=\"sd-step__icon\" [name]=\"ic\"></sd-icon>\n }\n <span class=\"sd-step__text\">{{ step.label() }}</span>\n </span>\n </ng-template>\n\n <ng-template matStepContent>\n <ng-container [ngTemplateOutlet]=\"step.bodyTpl()\"></ng-container>\n </ng-template>\n </mat-step>\n }\n</mat-stepper>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAca,MAAM,CAAA;AACjB,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;;;AAGhC,IAAA,IAAI,GAAG,KAAK,CAA4B,SAAS,2EAAC;;IAElD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;;AAGvD,IAAA,WAAW,GAAG,KAAK,CAAqC,SAAS,kFAAC;;AAElE,IAAA,KAAK,GAAG,KAAK,CAA0B,SAAS,4EAAC;;AAEjD,IAAA,YAAY,GAAG,KAAK,CAAqB,SAAS,mFAAC;;IAGnD,YAAY,GAAG,MAAM,EAAQ;;AAG7B,IAAA,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAuB,MAAM,CAAC;wGArB/C,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAN,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,wmCAHP,CAAA,0DAAA,CAA4D,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CA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AAA,EACP,CAAC,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAGpC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,q6CAAA,EAAA,MAAA,EAAA,CAAA,onDAAA,CAAA,EAAA;AAGvB,SAAA,CAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,cAAA,EAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,MAAM,omCAiBG,UAAU,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA;sBAE1C,WAAW;uBAAC,kBAAkB;;sBAK9B,WAAW;uBAAC,iCAAiC;;sBAG7C,WAAW;uBAAC,8BAA8B;;sBAG1C,WAAW;uBAAC,oCAAoC;;sBAGhD,WAAW;uBAAC,sCAAsC;;;AE9DrD;;AAEG;;;;"}
1
+ {"version":3,"file":"sdcorejs-angular-components-stepper.mjs","sources":["../../../projects/sdcorejs-angular/components/stepper/src/step.component.ts","../../../projects/sdcorejs-angular/components/stepper/src/stepper.component.ts","../../../projects/sdcorejs-angular/components/stepper/src/stepper.component.html","../../../projects/sdcorejs-angular/components/stepper/sdcorejs-angular-components-stepper.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, input, output, TemplateRef, viewChild } from '@angular/core';\nimport { AbstractControl } from '@angular/forms';\n\nexport type SdStepState = 'pending' | 'active' | 'completed' | 'error' | string;\n\n@Component({\n selector: 'sd-step',\n standalone: true,\n // why: identical pattern to <sd-tab> — capture projected content via #body\n // template ref so <sd-stepper> can render it inside mat-step's matStepContent\n // (lazy mount + animation-friendly).\n template: `<ng-template #body><ng-content></ng-content></ng-template>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SdStep {\n label = input.required<string>();\n // Optional Material icon name shown when the step is in 'pending' state\n // (overrides the default numbered indicator).\n icon = input<string | null | undefined>(undefined);\n // Set true to mark the step skippable in linear mode.\n optional = input(false, { transform: booleanAttribute });\n // When false, user cannot return to this step after it's been completed.\n editable = input(true, { transform: booleanAttribute });\n // Reactive form / control. When the stepper is linear, the user can only\n // proceed past this step once stepControl.valid is true.\n stepControl = input<AbstractControl | null | undefined>(undefined);\n // Override the auto-derived state (eg force 'error' from outside on async validation).\n state = input<SdStepState | undefined>(undefined);\n // Error message rendered next to the step header when state is 'error'.\n errorMessage = input<string | undefined>(undefined);\n\n // Emitted when this step transitions to selected.\n selectChange = output<void>();\n\n // Body template captured from projected <ng-content>.\n bodyTpl = viewChild.required<TemplateRef<unknown>>('body');\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n contentChildren,\n effect,\n HostBinding,\n input,\n model,\n output,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { StepperSelectionEvent } from '@angular/cdk/stepper';\nimport { MatStepperModule, MatStepper } from '@angular/material/stepper';\nimport { Color } from '@sdcorejs/utils/models';\nimport { SdStep } from './step.component';\nimport { SdIcon } from '@sdcorejs/angular/modules/icon';\n\n@Component({\n selector: 'sd-stepper',\n standalone: true,\n imports: [SdIcon, MatStepperModule, NgTemplateOutlet],\n templateUrl: './stepper.component.html',\n styleUrl: './stepper.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SdStepper {\n steps = contentChildren(SdStep);\n\n selectedIndex = model<number>(0);\n // why: enforce sequential gating — only valid steps unlock the next.\n linear = input(false, { transform: booleanAttribute });\n orientation = input<'horizontal' | 'vertical'>('horizontal');\n labelPosition = input<'end' | 'bottom'>('end');\n headerPosition = input<'top' | 'bottom'>('top');\n animationDuration = input<string>('500ms');\n disableRipple = input(false, { transform: booleanAttribute });\n // Drives the Core color CSS vars on indicators / connector / line.\n color = input<Color>('primary');\n autoId = input<string | undefined>(undefined);\n\n // Emits {previousIndex, selectedIndex, previousStep, selectedStep}.\n selectionChange = output<StepperSelectionEvent>();\n\n protected matStepper = viewChild(MatStepper);\n\n @HostBinding('attr.data-autoId') get autoIdAttr(): string | null {\n return this.autoId() ?? null;\n }\n\n // Core color CSS vars — same mechanism as <sd-tab-group>.\n @HostBinding('style.--sd-stepper-active-color') get cssActive(): string {\n return `var(--sd-${this.color()})`;\n }\n @HostBinding('style.--sd-stepper-active-bg') get cssActiveBg(): string {\n return `var(--sd-${this.color()})`;\n }\n @HostBinding('style.--sd-stepper-completed-color') get cssCompleted(): string {\n return `var(--sd-${this.color()})`;\n }\n @HostBinding('style.--sd-stepper-line-active-color') get cssLine(): string {\n return `var(--sd-${this.color()})`;\n }\n\n constructor() {\n // why: clamp selectedIndex when a step is removed past the active one.\n effect(() => {\n const len = this.steps().length;\n const cur = untracked(() => this.selectedIndex());\n if (len > 0 && cur >= len) {\n this.selectedIndex.set(Math.max(0, len - 1));\n }\n });\n }\n\n next(): void {\n this.matStepper()?.next();\n }\n\n previous(): void {\n this.matStepper()?.previous();\n }\n\n reset(): void {\n this.matStepper()?.reset();\n }\n\n goTo(index: number): void {\n const len = this.steps().length;\n if (len === 0) {\n this.selectedIndex.set(0);\n return;\n }\n this.selectedIndex.set(Math.max(0, Math.min(index, len - 1)));\n }\n\n protected onSelectionChange(ev: StepperSelectionEvent): void {\n this.selectionChange.emit(ev);\n // Forward to each step that just became selected so consumer can react.\n const step = this.steps()[ev.selectedIndex];\n step?.selectChange.emit();\n }\n}\n","<!-- why: `(selectionChange)` bên dưới là output của `MatStepper` (Angular Material), KHÔNG phải output của\n `<sd-stepper>` — phải giữ nguyên tên. Output công khai của lib đã đổi thành `selectionChange`. -->\n<mat-stepper\n class=\"sd-stepper\"\n [(selectedIndex)]=\"selectedIndex\"\n [linear]=\"linear()\"\n [orientation]=\"orientation()\"\n [labelPosition]=\"labelPosition()\"\n [headerPosition]=\"headerPosition()\"\n [animationDuration]=\"animationDuration()\"\n [disableRipple]=\"disableRipple()\"\n (selectionChange)=\"onSelectionChange($event)\">\n @for (step of steps(); track step; let i = $index) {\n <mat-step\n [stepControl]=\"step.stepControl() ?? undefined!\"\n [optional]=\"step.optional()\"\n [editable]=\"step.editable()\"\n [state]=\"step.state() ?? ''\"\n [errorMessage]=\"step.errorMessage() ?? ''\">\n <ng-template matStepLabel>\n <span class=\"sd-step__label\">\n @if (step.icon(); as ic) {\n <sd-icon class=\"sd-step__icon\" [name]=\"ic\"></sd-icon>\n }\n <span class=\"sd-step__text\">{{ step.label() }}</span>\n </span>\n </ng-template>\n\n <ng-template matStepContent>\n <ng-container [ngTemplateOutlet]=\"step.bodyTpl()\"></ng-container>\n </ng-template>\n </mat-step>\n }\n</mat-stepper>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAca,MAAM,CAAA;IACjB,KAAK,GAAG,KAAK,CAAC,QAAQ;8EAAU;;;IAGhC,IAAI,GAAG,KAAK,CAA4B,SAAS;6EAAC;;IAElD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;;IAGvD,WAAW,GAAG,KAAK,CAAqC,SAAS;oFAAC;;IAElE,KAAK,GAAG,KAAK,CAA0B,SAAS;8EAAC;;IAEjD,YAAY,GAAG,KAAK,CAAqB,SAAS;qFAAC;;IAGnD,YAAY,GAAG,MAAM,EAAQ;;AAG7B,IAAA,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAuB,MAAM;gFAAC;uGArB/C,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAN,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EA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EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EAAA,UAAA,EACV,IAAI,EAAA,OAAA,EACP,CAAC,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAGpC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,q6CAAA,EAAA,MAAA,EAAA,CAAA,onDAAA,CAAA,EAAA;AAGvB,SAAA,CAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,cAAA,EAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,MAAM,omCAiBG,UAAU,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA;sBAE1C,WAAW;uBAAC,kBAAkB;;sBAK9B,WAAW;uBAAC,iCAAiC;;sBAG7C,WAAW;uBAAC,8BAA8B;;sBAG1C,WAAW;uBAAC,oCAAoC;;sBAGhD,WAAW;uBAAC,sCAAsC;;;AE9DrD;;AAEG;;"}
@@ -154,10 +154,10 @@ class SdTabRouterService {
154
154
  };
155
155
  // Gọi hàm này để thực hiện update tab
156
156
  updateTab = (tab) => { };
157
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabRouterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
158
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabRouterService, providedIn: 'root' });
157
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabRouterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
158
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabRouterService, providedIn: 'root' });
159
159
  }
160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabRouterService, decorators: [{
160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabRouterService, decorators: [{
161
161
  type: Injectable,
162
162
  args: [{
163
163
  providedIn: 'root',
@@ -170,10 +170,10 @@ class SdTabDecoratorService {
170
170
  const tabRouterService = inject(SdTabRouterService);
171
171
  SdTabDecoratorService.tabRouterService.next(tabRouterService);
172
172
  }
173
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabDecoratorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
174
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabDecoratorService, providedIn: 'root' });
173
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabDecoratorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
174
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabDecoratorService, providedIn: 'root' });
175
175
  }
176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabDecoratorService, decorators: [{
176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabDecoratorService, decorators: [{
177
177
  type: Injectable,
178
178
  args: [{
179
179
  providedIn: 'root',
@@ -203,10 +203,10 @@ class SdTabInfoPipe {
203
203
  icon: undefined,
204
204
  };
205
205
  }
206
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabInfoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
207
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.17", ngImport: i0, type: SdTabInfoPipe, isStandalone: true, name: "sdTabInfo" });
206
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabInfoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
207
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.1.5", ngImport: i0, type: SdTabInfoPipe, isStandalone: true, name: "sdTabInfo" });
208
208
  }
209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabInfoPipe, decorators: [{
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabInfoPipe, decorators: [{
210
210
  type: Pipe,
211
211
  args: [{
212
212
  name: 'sdTabInfo',
@@ -263,10 +263,10 @@ class SdTabRouterItemComponent {
263
263
  #closeTab = () => {
264
264
  this.tabRouterService.close(this.tab);
265
265
  };
266
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabRouterItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
267
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SdTabRouterItemComponent, isStandalone: true, selector: "sd-tab-router-item", inputs: { tab: "tab" }, ngImport: i0, template: "<!-- why: [href] l\u00E0 thu\u1ED9c t\u00EDnh DOM ki\u1EC3u CHU\u1ED6I. B\u1EA3n c\u0169 bind `[tab.url]` \u2014 m\u1ED9t M\u1EA2NG \u2014 v\u00E0 ch\u1EC9 \"ch\u1EA1y\n \u0111\u01B0\u1EE3c\" nh\u1EDD m\u1EA3ng 1 ph\u1EA7n t\u1EED t\u1EF1 stringify l\u00FAc Angular sanitize URL. Bind th\u1EB3ng chu\u1ED7i: \u0111\u00FAng ki\u1EC3u,\n b\u1ECF m\u1ED9t slot pure-function th\u1EEBa, v\u00E0 gi\u00E1 tr\u1ECB bind kh\u1EDBp \u0111\u00FAng th\u1EE9 render ra DOM.\n why: `[title]=\"info.icon\"` ngay tr\u00EAn `[title]=\"info.name\"` \u0111\u00E3 b\u1ECB xo\u00E1 \u2014 binding ch\u1EBFt do\n copy-paste, lu\u00F4n b\u1ECB ghi \u0111\u00E8 ngay v\u00E0 b\u1EAFt sd-badge nh\u1EADn hai gi\u00E1 tr\u1ECB title m\u1ED7i l\u1EA7n CD. -->\n<a\n [href]=\"tab.url\"\n class=\"tab-router__item d-flex align-items-center gap-8\"\n [class.tab-router__item--active]=\"tab.isActive\"\n (click)=\"onTabClick($event)\"\n (mousedown)=\"onMousedown($event)\"\n (mouseup)=\"onMouseup($event)\">\n @let info = tabInfo | sdTabInfo: tab;\n @if (info) {\n <!-- why: b\u1ECF `(click)=\"onTabClick($event)\"` kh\u1ECFi <sd-badge>. N\u00F3 ch\u1EC9 t\u1ED3n t\u1EA1i v\u00EC badge lu\u00F4n\n stopPropagation, n\u00EAn click tr\u00EAn badge kh\u00F4ng bao gi\u1EDD t\u1EDBi <a> cha. Badge nay ch\u1EC9 nu\u1ED1t event\n khi th\u1EADt s\u1EF1 c\u00F3 consumer \u2192 click b\u1ECDt l\u00EAn <a> nh\u01B0 b\u00ECnh th\u01B0\u1EDDng, v\u00E0 badge kh\u00F4ng c\u00F2n ph\u1EA3i tr\u1EDF\n th\u00E0nh role=\"button\" l\u1ED3ng b\u00EAn trong m\u1ED9t <a> (interactive l\u1ED3ng interactive). -->\n <sd-badge\n style=\"overflow: hidden;white-space: nowrap;\"\n [icon]=\"info.icon\"\n [tooltip]=\"info.tooltip || info.name\"\n [title]=\"info.name\"\n [color]=\"info.color\"></sd-badge>\n <!-- why: b\u1ECF aria-hidden=\"true\" kh\u1ECFi n\u00FAt \u0111\u00F3ng \u2014 n\u00F3 l\u00E0 <button> th\u1EADt, v\u1EABn nh\u1EADn tab focus nh\u01B0ng\n screen reader kh\u00F4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c g\u00EC (n\u00FAt ch\u1EC9 c\u00F3 icon). G\u1EAFn type + aria-label i18n. -->\n <button\n type=\"button\"\n class=\"tab-router__close d-flex align-items-center justify-content-center ml-auto p-0\"\n [attr.aria-label]=\"'core.common.close' | sdTranslate\"\n (click)=\"close($event)\"\n (mousedown)=\"$event.stopPropagation()\">\n <!-- Icon thu\u1EA7n trang tr\u00ED \u2014 n\u00FAt \u0111\u00E3 c\u00F3 aria-label n\u00EAn gi\u1EEF aria-hidden \u1EDF \u0111\u00E2y l\u00E0 \u0111\u00FAng. -->\n <sd-icon aria-hidden=\"true\" fontIcon=\"close\"></sd-icon>\n </button>\n }\n</a>\n", styles: [":host{display:block;overflow:hidden;position:relative;flex:1 1 64px;max-width:240px}:host:after{content:\"\";position:absolute;right:0;top:0;bottom:0;height:16px;width:1px;background:#dde0e5;margin:auto}:host:last-child:after{content:none}:host::ng-deep .tab-router__item sd-badge .c-badge-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:184px}.flex-1{flex:1}.tab-router__icon{background-color:#5c6bc0;width:16px;height:16px;line-height:16px;text-align:center;font-size:10px;color:#fff;border-radius:2px;text-transform:uppercase}.tab-router__icon sd-icon{height:10px;width:10px;font-size:10px}.tab-router__close{color:#757575;outline:none;border:0;background:none;border-radius:50%;height:16px;width:16px}.tab-router__close:hover{background-color:#0000001f}.tab-router__close:focus-visible{outline:2px solid var(--sd-primary, #005cbb);outline-offset:1px}.tab-router__close sd-icon{font-size:12px;height:12px;width:12px}.tab-router__item{background:#f2f3f4;padding:8px;color:inherit;text-decoration:none;font-size:12px;line-height:16px;overflow:hidden}.tab-router__item:hover{background-color:#fff}.tab-router__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tab-router__item--active{border-radius:8px 8px 0 0;background-color:#fff}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: SdBadge, selector: "sd-badge", inputs: ["type", "color", "primary", "secondary", "success", "info", "warning", "error", "fontSet", "title", "description", "tooltip", "icon", "size"], outputs: ["click"] }, { kind: "pipe", type: SdTabInfoPipe, name: "sdTabInfo" }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
266
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabRouterItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
267
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SdTabRouterItemComponent, isStandalone: true, selector: "sd-tab-router-item", inputs: { tab: "tab" }, ngImport: i0, template: "<!-- why: [href] l\u00E0 thu\u1ED9c t\u00EDnh DOM ki\u1EC3u CHU\u1ED6I. B\u1EA3n c\u0169 bind `[tab.url]` \u2014 m\u1ED9t M\u1EA2NG \u2014 v\u00E0 ch\u1EC9 \"ch\u1EA1y\n \u0111\u01B0\u1EE3c\" nh\u1EDD m\u1EA3ng 1 ph\u1EA7n t\u1EED t\u1EF1 stringify l\u00FAc Angular sanitize URL. Bind th\u1EB3ng chu\u1ED7i: \u0111\u00FAng ki\u1EC3u,\n b\u1ECF m\u1ED9t slot pure-function th\u1EEBa, v\u00E0 gi\u00E1 tr\u1ECB bind kh\u1EDBp \u0111\u00FAng th\u1EE9 render ra DOM.\n why: `[title]=\"info.icon\"` ngay tr\u00EAn `[title]=\"info.name\"` \u0111\u00E3 b\u1ECB xo\u00E1 \u2014 binding ch\u1EBFt do\n copy-paste, lu\u00F4n b\u1ECB ghi \u0111\u00E8 ngay v\u00E0 b\u1EAFt sd-badge nh\u1EADn hai gi\u00E1 tr\u1ECB title m\u1ED7i l\u1EA7n CD. -->\n<a\n [href]=\"tab.url\"\n class=\"tab-router__item d-flex align-items-center gap-8\"\n [class.tab-router__item--active]=\"tab.isActive\"\n (click)=\"onTabClick($event)\"\n (mousedown)=\"onMousedown($event)\"\n (mouseup)=\"onMouseup($event)\">\n @let info = tabInfo | sdTabInfo: tab;\n @if (info) {\n <!-- why: b\u1ECF `(click)=\"onTabClick($event)\"` kh\u1ECFi <sd-badge>. N\u00F3 ch\u1EC9 t\u1ED3n t\u1EA1i v\u00EC badge lu\u00F4n\n stopPropagation, n\u00EAn click tr\u00EAn badge kh\u00F4ng bao gi\u1EDD t\u1EDBi <a> cha. Badge nay ch\u1EC9 nu\u1ED1t event\n khi th\u1EADt s\u1EF1 c\u00F3 consumer \u2192 click b\u1ECDt l\u00EAn <a> nh\u01B0 b\u00ECnh th\u01B0\u1EDDng, v\u00E0 badge kh\u00F4ng c\u00F2n ph\u1EA3i tr\u1EDF\n th\u00E0nh role=\"button\" l\u1ED3ng b\u00EAn trong m\u1ED9t <a> (interactive l\u1ED3ng interactive). -->\n <sd-badge\n style=\"overflow: hidden;white-space: nowrap;\"\n [icon]=\"info.icon\"\n [tooltip]=\"info.tooltip || info.name\"\n [title]=\"info.name\"\n [color]=\"info.color\"></sd-badge>\n <!-- why: b\u1ECF aria-hidden=\"true\" kh\u1ECFi n\u00FAt \u0111\u00F3ng \u2014 n\u00F3 l\u00E0 <button> th\u1EADt, v\u1EABn nh\u1EADn tab focus nh\u01B0ng\n screen reader kh\u00F4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c g\u00EC (n\u00FAt ch\u1EC9 c\u00F3 icon). G\u1EAFn type + aria-label i18n. -->\n <button\n type=\"button\"\n class=\"tab-router__close d-flex align-items-center justify-content-center ml-auto p-0\"\n [attr.aria-label]=\"'core.common.close' | sdTranslate\"\n (click)=\"close($event)\"\n (mousedown)=\"$event.stopPropagation()\">\n <!-- Icon thu\u1EA7n trang tr\u00ED \u2014 n\u00FAt \u0111\u00E3 c\u00F3 aria-label n\u00EAn gi\u1EEF aria-hidden \u1EDF \u0111\u00E2y l\u00E0 \u0111\u00FAng. -->\n <sd-icon aria-hidden=\"true\" fontIcon=\"close\"></sd-icon>\n </button>\n }\n</a>\n", styles: [":host{display:block;overflow:hidden;position:relative;flex:1 1 64px;max-width:240px}:host:after{content:\"\";position:absolute;right:0;top:0;bottom:0;height:16px;width:1px;background:#dde0e5;margin:auto}:host:last-child:after{content:none}:host::ng-deep .tab-router__item sd-badge .c-badge-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:184px}.flex-1{flex:1}.tab-router__icon{background-color:#5c6bc0;width:16px;height:16px;line-height:16px;text-align:center;font-size:10px;color:#fff;border-radius:2px;text-transform:uppercase}.tab-router__icon sd-icon{height:10px;width:10px;font-size:10px}.tab-router__close{color:#757575;outline:none;border:0;background:none;border-radius:50%;height:16px;width:16px}.tab-router__close:hover{background-color:#0000001f}.tab-router__close:focus-visible{outline:2px solid var(--sd-primary, #005cbb);outline-offset:1px}.tab-router__close sd-icon{font-size:12px;height:12px;width:12px}.tab-router__item{background:#f2f3f4;padding:8px;color:inherit;text-decoration:none;font-size:12px;line-height:16px;overflow:hidden}.tab-router__item:hover{background-color:#fff}.tab-router__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tab-router__item--active{border-radius:8px 8px 0 0;background-color:#fff}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: SdBadge, selector: "sd-badge", inputs: ["type", "color", "primary", "secondary", "success", "info", "warning", "error", "fontSet", "title", "description", "tooltip", "icon", "size"], outputs: ["click"] }, { kind: "pipe", type: SdTabInfoPipe, name: "sdTabInfo" }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
268
268
  }
269
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabRouterItemComponent, decorators: [{
269
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabRouterItemComponent, decorators: [{
270
270
  type: Component,
271
271
  args: [{ selector: 'sd-tab-router-item', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [SdIcon, CommonModule, SdBadge, SdTabInfoPipe, SdTranslatePipe], template: "<!-- why: [href] l\u00E0 thu\u1ED9c t\u00EDnh DOM ki\u1EC3u CHU\u1ED6I. B\u1EA3n c\u0169 bind `[tab.url]` \u2014 m\u1ED9t M\u1EA2NG \u2014 v\u00E0 ch\u1EC9 \"ch\u1EA1y\n \u0111\u01B0\u1EE3c\" nh\u1EDD m\u1EA3ng 1 ph\u1EA7n t\u1EED t\u1EF1 stringify l\u00FAc Angular sanitize URL. Bind th\u1EB3ng chu\u1ED7i: \u0111\u00FAng ki\u1EC3u,\n b\u1ECF m\u1ED9t slot pure-function th\u1EEBa, v\u00E0 gi\u00E1 tr\u1ECB bind kh\u1EDBp \u0111\u00FAng th\u1EE9 render ra DOM.\n why: `[title]=\"info.icon\"` ngay tr\u00EAn `[title]=\"info.name\"` \u0111\u00E3 b\u1ECB xo\u00E1 \u2014 binding ch\u1EBFt do\n copy-paste, lu\u00F4n b\u1ECB ghi \u0111\u00E8 ngay v\u00E0 b\u1EAFt sd-badge nh\u1EADn hai gi\u00E1 tr\u1ECB title m\u1ED7i l\u1EA7n CD. -->\n<a\n [href]=\"tab.url\"\n class=\"tab-router__item d-flex align-items-center gap-8\"\n [class.tab-router__item--active]=\"tab.isActive\"\n (click)=\"onTabClick($event)\"\n (mousedown)=\"onMousedown($event)\"\n (mouseup)=\"onMouseup($event)\">\n @let info = tabInfo | sdTabInfo: tab;\n @if (info) {\n <!-- why: b\u1ECF `(click)=\"onTabClick($event)\"` kh\u1ECFi <sd-badge>. N\u00F3 ch\u1EC9 t\u1ED3n t\u1EA1i v\u00EC badge lu\u00F4n\n stopPropagation, n\u00EAn click tr\u00EAn badge kh\u00F4ng bao gi\u1EDD t\u1EDBi <a> cha. Badge nay ch\u1EC9 nu\u1ED1t event\n khi th\u1EADt s\u1EF1 c\u00F3 consumer \u2192 click b\u1ECDt l\u00EAn <a> nh\u01B0 b\u00ECnh th\u01B0\u1EDDng, v\u00E0 badge kh\u00F4ng c\u00F2n ph\u1EA3i tr\u1EDF\n th\u00E0nh role=\"button\" l\u1ED3ng b\u00EAn trong m\u1ED9t <a> (interactive l\u1ED3ng interactive). -->\n <sd-badge\n style=\"overflow: hidden;white-space: nowrap;\"\n [icon]=\"info.icon\"\n [tooltip]=\"info.tooltip || info.name\"\n [title]=\"info.name\"\n [color]=\"info.color\"></sd-badge>\n <!-- why: b\u1ECF aria-hidden=\"true\" kh\u1ECFi n\u00FAt \u0111\u00F3ng \u2014 n\u00F3 l\u00E0 <button> th\u1EADt, v\u1EABn nh\u1EADn tab focus nh\u01B0ng\n screen reader kh\u00F4ng \u0111\u1ECDc \u0111\u01B0\u1EE3c g\u00EC (n\u00FAt ch\u1EC9 c\u00F3 icon). G\u1EAFn type + aria-label i18n. -->\n <button\n type=\"button\"\n class=\"tab-router__close d-flex align-items-center justify-content-center ml-auto p-0\"\n [attr.aria-label]=\"'core.common.close' | sdTranslate\"\n (click)=\"close($event)\"\n (mousedown)=\"$event.stopPropagation()\">\n <!-- Icon thu\u1EA7n trang tr\u00ED \u2014 n\u00FAt \u0111\u00E3 c\u00F3 aria-label n\u00EAn gi\u1EEF aria-hidden \u1EDF \u0111\u00E2y l\u00E0 \u0111\u00FAng. -->\n <sd-icon aria-hidden=\"true\" fontIcon=\"close\"></sd-icon>\n </button>\n }\n</a>\n", styles: [":host{display:block;overflow:hidden;position:relative;flex:1 1 64px;max-width:240px}:host:after{content:\"\";position:absolute;right:0;top:0;bottom:0;height:16px;width:1px;background:#dde0e5;margin:auto}:host:last-child:after{content:none}:host::ng-deep .tab-router__item sd-badge .c-badge-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:184px}.flex-1{flex:1}.tab-router__icon{background-color:#5c6bc0;width:16px;height:16px;line-height:16px;text-align:center;font-size:10px;color:#fff;border-radius:2px;text-transform:uppercase}.tab-router__icon sd-icon{height:10px;width:10px;font-size:10px}.tab-router__close{color:#757575;outline:none;border:0;background:none;border-radius:50%;height:16px;width:16px}.tab-router__close:hover{background-color:#0000001f}.tab-router__close:focus-visible{outline:2px solid var(--sd-primary, #005cbb);outline-offset:1px}.tab-router__close sd-icon{font-size:12px;height:12px;width:12px}.tab-router__item{background:#f2f3f4;padding:8px;color:inherit;text-decoration:none;font-size:12px;line-height:16px;overflow:hidden}.tab-router__item:hover{background-color:#fff}.tab-router__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tab-router__item--active{border-radius:8px 8px 0 0;background-color:#fff}\n"] }]
272
272
  }], ctorParameters: () => [], propDecorators: { tab: [{
@@ -275,8 +275,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
275
275
  }] } });
276
276
 
277
277
  class SdTabRouterNavComponent {
278
- tabRouterNav = viewChild('tabRouterNav', ...(ngDevMode ? [{ debugName: "tabRouterNav" }] : /* istanbul ignore next */ []));
279
- tabs = input([], ...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
278
+ tabRouterNav = viewChild('tabRouterNav', /* @ts-ignore */
279
+ ...(ngDevMode ? [{ debugName: "tabRouterNav" }] : /* istanbul ignore next */ []));
280
+ tabs = input([], /* @ts-ignore */
281
+ ...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
280
282
  mode = 'default';
281
283
  cdRef = inject(ChangeDetectorRef);
282
284
  elementRef = inject(ElementRef);
@@ -303,10 +305,10 @@ class SdTabRouterNavComponent {
303
305
  onDrop = (event) => {
304
306
  moveItemInArray(this.tabs(), event.previousIndex, event.currentIndex);
305
307
  };
306
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabRouterNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
307
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SdTabRouterNavComponent, isStandalone: true, selector: "sd-tab-router-nav", inputs: { tabs: { classPropertyName: "tabs", publicName: "tabs", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "window:resize": "onResize()" } }, viewQueries: [{ propertyName: "tabRouterNav", first: true, predicate: ["tabRouterNav"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n #tabRouterNav\n cdkDropList\n cdkDropListLockAxis=\"x\"\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"onDrop($event)\"\n class=\"tab-router__nav tab-router__nav--{{ mode }} d-flex align-items-center flex-nowrap\"\n [class.d-none]=\"tabs().length > 1\">\n @for (tab of tabs(); track tab.injector ?? tab.key) {\n <sd-tab-router-item [tab]=\"tab\" cdkDrag [cdkDragBoundary]=\"elementRef.nativeElement\"></sd-tab-router-item>\n }\n</div>\n", styles: [".tab-router__nav{background:#f9f9f9;overflow:hidden}.tab-router__nav--compact::ng-deep .tab-router__name{display:none}.tab-router__nav--compact::ng-deep .tab-router__icon{margin:0!important}.tab-router__nav--compact::ng-deep .tab-router__item--active{min-width:240px}.tab-router__nav--compact::ng-deep .tab-router__item--active .tab-router__icon{margin-right:8px!important}.tab-router__nav--compact::ng-deep .tab-router__item--active .tab-router__name{display:-webkit-box}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: SdTabRouterItemComponent, selector: "sd-tab-router-item", inputs: ["tab"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
308
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabRouterNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
309
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SdTabRouterNavComponent, isStandalone: true, selector: "sd-tab-router-nav", inputs: { tabs: { classPropertyName: "tabs", publicName: "tabs", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "window:resize": "onResize()" } }, viewQueries: [{ propertyName: "tabRouterNav", first: true, predicate: ["tabRouterNav"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n #tabRouterNav\n cdkDropList\n cdkDropListLockAxis=\"x\"\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"onDrop($event)\"\n class=\"tab-router__nav tab-router__nav--{{ mode }} d-flex align-items-center flex-nowrap\"\n [class.d-none]=\"tabs().length > 1\">\n @for (tab of tabs(); track tab.injector ?? tab.key) {\n <sd-tab-router-item [tab]=\"tab\" cdkDrag [cdkDragBoundary]=\"elementRef.nativeElement\"></sd-tab-router-item>\n }\n</div>\n", styles: [".tab-router__nav{background:#f9f9f9;overflow:hidden}.tab-router__nav--compact::ng-deep .tab-router__name{display:none}.tab-router__nav--compact::ng-deep .tab-router__icon{margin:0!important}.tab-router__nav--compact::ng-deep .tab-router__item--active{min-width:240px}.tab-router__nav--compact::ng-deep .tab-router__item--active .tab-router__icon{margin-right:8px!important}.tab-router__nav--compact::ng-deep .tab-router__item--active .tab-router__name{display:-webkit-box}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: SdTabRouterItemComponent, selector: "sd-tab-router-item", inputs: ["tab"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
308
310
  }
309
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabRouterNavComponent, decorators: [{
311
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabRouterNavComponent, decorators: [{
310
312
  type: Component,
311
313
  args: [{ selector: 'sd-tab-router-nav', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule, DragDropModule, SdTabRouterItemComponent], template: "<div\n #tabRouterNav\n cdkDropList\n cdkDropListLockAxis=\"x\"\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"onDrop($event)\"\n class=\"tab-router__nav tab-router__nav--{{ mode }} d-flex align-items-center flex-nowrap\"\n [class.d-none]=\"tabs().length > 1\">\n @for (tab of tabs(); track tab.injector ?? tab.key) {\n <sd-tab-router-item [tab]=\"tab\" cdkDrag [cdkDragBoundary]=\"elementRef.nativeElement\"></sd-tab-router-item>\n }\n</div>\n", styles: [".tab-router__nav{background:#f9f9f9;overflow:hidden}.tab-router__nav--compact::ng-deep .tab-router__name{display:none}.tab-router__nav--compact::ng-deep .tab-router__icon{margin:0!important}.tab-router__nav--compact::ng-deep .tab-router__item--active{min-width:240px}.tab-router__nav--compact::ng-deep .tab-router__item--active .tab-router__icon{margin-right:8px!important}.tab-router__nav--compact::ng-deep .tab-router__item--active .tab-router__name{display:-webkit-box}\n"] }]
312
314
  }], propDecorators: { tabRouterNav: [{ type: i0.ViewChild, args: ['tabRouterNav', { isSignal: true }] }], tabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabs", required: false }] }], onResize: [{
@@ -316,8 +318,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
316
318
 
317
319
  class SdTabRouterOutletComponent {
318
320
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
319
- tabRouterNav = viewChild('tabRouterNav', ...(ngDevMode ? [{ debugName: "tabRouterNav" }] : /* istanbul ignore next */ []));
320
- tabs = signal([], ...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
321
+ tabRouterNav = viewChild('tabRouterNav', /* @ts-ignore */
322
+ ...(ngDevMode ? [{ debugName: "tabRouterNav" }] : /* istanbul ignore next */ []));
323
+ tabs = signal([], /* @ts-ignore */
324
+ ...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
321
325
  #router = inject(Router);
322
326
  #injector = inject(Injector);
323
327
  #tabRouterService = inject(SdTabRouterService);
@@ -636,12 +640,12 @@ class SdTabRouterOutletComponent {
636
640
  }
637
641
  return null;
638
642
  };
639
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabRouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
640
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SdTabRouterOutletComponent, isStandalone: true, selector: "sd-tab-router-outlet", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "tabRouterNav", first: true, predicate: ["tabRouterNav"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (disabled()) {\n <div class=\"tab-router__disabled-outlet\">\n <router-outlet></router-outlet>\n </div>\n} @else {\n <sd-tab-router-nav [tabs]=\"tabs()\" #tabRouterNav></sd-tab-router-nav>\n <div class=\"tab-router__list\">\n @for (tab of tabs(); track tab.injector ?? tab.key) {\n <div class=\"tab-router__pane\" [class.active]=\"tab.isActive\" [id]=\"tab.key\">\n <div class=\"tab-router__content\">\n <ng-container *ngComponentOutlet=\"tab.component; injector: tab.injector\"></ng-container>\n </div>\n </div>\n } @empty {\n <div class=\"tab-router__empty\"></div>\n }\n </div>\n}\n", styles: [":host{display:flex;flex-direction:column;width:100%;min-height:0;height:100vh}:host ::ng-deep .sd-loading{max-width:100%;max-height:100%}.tab-router__list{flex:1;min-height:0}.tab-router__disabled-outlet{flex:1;width:100%;min-height:0;overflow:auto}.tab-router__pane{display:none;position:relative;height:100%;width:100%}.tab-router__pane.active{display:block}.tab-router__content{position:absolute;inset:0;overflow:auto;height:100%;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: SdTabRouterNavComponent, selector: "sd-tab-router-nav", inputs: ["tabs"] }] });
643
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabRouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
644
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SdTabRouterOutletComponent, isStandalone: true, selector: "sd-tab-router-outlet", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "tabRouterNav", first: true, predicate: ["tabRouterNav"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (disabled()) {\n <div class=\"tab-router__disabled-outlet\">\n <router-outlet></router-outlet>\n </div>\n} @else {\n <sd-tab-router-nav [tabs]=\"tabs()\" #tabRouterNav></sd-tab-router-nav>\n <div class=\"tab-router__list\">\n @for (tab of tabs(); track tab.injector ?? tab.key) {\n <div class=\"tab-router__pane\" [class.active]=\"tab.isActive\" [id]=\"tab.key\">\n <div class=\"tab-router__content\">\n <ng-container *ngComponentOutlet=\"tab.component; injector: tab.injector\"></ng-container>\n </div>\n </div>\n } @empty {\n <div class=\"tab-router__empty\"></div>\n }\n </div>\n}\n", styles: [":host{display:flex;flex-direction:column;width:100%;min-height:0;height:100vh}:host ::ng-deep .sd-loading{max-width:100%;max-height:100%}.tab-router__list{flex:1;min-height:0}.tab-router__disabled-outlet{flex:1;width:100%;min-height:0;overflow:auto}.tab-router__pane{display:none;position:relative;height:100%;width:100%}.tab-router__pane.active{display:block}.tab-router__content{position:absolute;inset:0;overflow:auto;height:100%;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: SdTabRouterNavComponent, selector: "sd-tab-router-nav", inputs: ["tabs"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
641
645
  }
642
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdTabRouterOutletComponent, decorators: [{
646
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdTabRouterOutletComponent, decorators: [{
643
647
  type: Component,
644
- args: [{ selector: 'sd-tab-router-outlet', standalone: true, imports: [CommonModule, MatTooltipModule, RouterOutlet, SdTabRouterNavComponent], template: "@if (disabled()) {\n <div class=\"tab-router__disabled-outlet\">\n <router-outlet></router-outlet>\n </div>\n} @else {\n <sd-tab-router-nav [tabs]=\"tabs()\" #tabRouterNav></sd-tab-router-nav>\n <div class=\"tab-router__list\">\n @for (tab of tabs(); track tab.injector ?? tab.key) {\n <div class=\"tab-router__pane\" [class.active]=\"tab.isActive\" [id]=\"tab.key\">\n <div class=\"tab-router__content\">\n <ng-container *ngComponentOutlet=\"tab.component; injector: tab.injector\"></ng-container>\n </div>\n </div>\n } @empty {\n <div class=\"tab-router__empty\"></div>\n }\n </div>\n}\n", styles: [":host{display:flex;flex-direction:column;width:100%;min-height:0;height:100vh}:host ::ng-deep .sd-loading{max-width:100%;max-height:100%}.tab-router__list{flex:1;min-height:0}.tab-router__disabled-outlet{flex:1;width:100%;min-height:0;overflow:auto}.tab-router__pane{display:none;position:relative;height:100%;width:100%}.tab-router__pane.active{display:block}.tab-router__content{position:absolute;inset:0;overflow:auto;height:100%;width:100%}\n"] }]
648
+ args: [{ changeDetection: ChangeDetectionStrategy.Eager, selector: 'sd-tab-router-outlet', standalone: true, imports: [CommonModule, MatTooltipModule, RouterOutlet, SdTabRouterNavComponent], template: "@if (disabled()) {\n <div class=\"tab-router__disabled-outlet\">\n <router-outlet></router-outlet>\n </div>\n} @else {\n <sd-tab-router-nav [tabs]=\"tabs()\" #tabRouterNav></sd-tab-router-nav>\n <div class=\"tab-router__list\">\n @for (tab of tabs(); track tab.injector ?? tab.key) {\n <div class=\"tab-router__pane\" [class.active]=\"tab.isActive\" [id]=\"tab.key\">\n <div class=\"tab-router__content\">\n <ng-container *ngComponentOutlet=\"tab.component; injector: tab.injector\"></ng-container>\n </div>\n </div>\n } @empty {\n <div class=\"tab-router__empty\"></div>\n }\n </div>\n}\n", styles: [":host{display:flex;flex-direction:column;width:100%;min-height:0;height:100vh}:host ::ng-deep .sd-loading{max-width:100%;max-height:100%}.tab-router__list{flex:1;min-height:0}.tab-router__disabled-outlet{flex:1;width:100%;min-height:0;overflow:auto}.tab-router__pane{display:none;position:relative;height:100%;width:100%}.tab-router__pane.active{display:block}.tab-router__content{position:absolute;inset:0;overflow:auto;height:100%;width:100%}\n"] }]
645
649
  }], ctorParameters: () => [], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tabRouterNav: [{ type: i0.ViewChild, args: ['tabRouterNav', { isSignal: true }] }] } });
646
650
  // Custom Injector cho từng tab: override ActivatedRoute thành route của TAB ĐÓ
647
651
  // (không phải route hiện tại của router). Nếu không override, mọi tab sẽ inject ActivatedRoute