@sdcorejs/angular 21.2.6 → 22.2.6

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 (187) hide show
  1. package/assets/fonts/fonts.scss +2 -2
  2. package/assets/images/coming-soon.svg +6 -6
  3. package/assets/images/data-empty.svg +2 -2
  4. package/assets/images/expired.svg +6 -6
  5. package/assets/images/file-error.svg +6 -6
  6. package/assets/images/filter-empty.svg +2 -2
  7. package/assets/images/filter-required.svg +2 -2
  8. package/assets/images/forbidden.svg +2 -2
  9. package/assets/images/image-error.svg +8 -8
  10. package/assets/images/maintenance.svg +3 -3
  11. package/assets/images/not-found.svg +2 -2
  12. package/assets/images/offline.svg +5 -5
  13. package/assets/images/submitted.svg +5 -5
  14. package/assets/images/success.svg +3 -3
  15. package/assets/images/unauthorized.svg +2 -2
  16. package/assets/images/unknown-error.svg +2 -2
  17. package/fesm2022/sdcorejs-angular-components-anchor.mjs +46 -29
  18. package/fesm2022/sdcorejs-angular-components-anchor.mjs.map +1 -1
  19. package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs +167 -94
  20. package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs.map +1 -1
  21. package/fesm2022/sdcorejs-angular-components-audit-diff.mjs +20 -13
  22. package/fesm2022/sdcorejs-angular-components-audit-diff.mjs.map +1 -1
  23. package/fesm2022/sdcorejs-angular-components-autoid-inspector.mjs +65 -40
  24. package/fesm2022/sdcorejs-angular-components-autoid-inspector.mjs.map +1 -1
  25. package/fesm2022/sdcorejs-angular-components-avatar.mjs +15 -9
  26. package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
  27. package/fesm2022/sdcorejs-angular-components-badge.mjs +31 -17
  28. package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
  29. package/fesm2022/sdcorejs-angular-components-breadcrumb.mjs +17 -10
  30. package/fesm2022/sdcorejs-angular-components-breadcrumb.mjs.map +1 -1
  31. package/fesm2022/sdcorejs-angular-components-button.mjs +17 -10
  32. package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
  33. package/fesm2022/sdcorejs-angular-components-card.mjs +28 -17
  34. package/fesm2022/sdcorejs-angular-components-card.mjs.map +1 -1
  35. package/fesm2022/sdcorejs-angular-components-chart.mjs +52 -32
  36. package/fesm2022/sdcorejs-angular-components-chart.mjs.map +1 -1
  37. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs +3 -3
  38. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs.map +1 -1
  39. package/fesm2022/sdcorejs-angular-components-code-editor.mjs +15 -9
  40. package/fesm2022/sdcorejs-angular-components-code-editor.mjs.map +1 -1
  41. package/fesm2022/sdcorejs-angular-components-data-state.mjs +32 -19
  42. package/fesm2022/sdcorejs-angular-components-data-state.mjs.map +1 -1
  43. package/fesm2022/sdcorejs-angular-components-editor.mjs +38 -21
  44. package/fesm2022/sdcorejs-angular-components-editor.mjs.map +1 -1
  45. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +396 -306
  46. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  47. package/fesm2022/sdcorejs-angular-components-history.mjs +10 -10
  48. package/fesm2022/sdcorejs-angular-components-history.mjs.map +1 -1
  49. package/fesm2022/sdcorejs-angular-components-import-excel.mjs +13 -13
  50. package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
  51. package/fesm2022/sdcorejs-angular-components-inform.mjs +42 -24
  52. package/fesm2022/sdcorejs-angular-components-inform.mjs.map +1 -1
  53. package/fesm2022/sdcorejs-angular-components-job-progress.mjs +39 -21
  54. package/fesm2022/sdcorejs-angular-components-job-progress.mjs.map +1 -1
  55. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs +9 -8
  56. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs.map +1 -1
  57. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs +22 -14
  58. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs.map +1 -1
  59. package/fesm2022/sdcorejs-angular-components-modal.mjs +21 -12
  60. package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
  61. package/fesm2022/sdcorejs-angular-components-operator.mjs +17 -10
  62. package/fesm2022/sdcorejs-angular-components-operator.mjs.map +1 -1
  63. package/fesm2022/sdcorejs-angular-components-org-chart.mjs +26 -16
  64. package/fesm2022/sdcorejs-angular-components-org-chart.mjs.map +1 -1
  65. package/fesm2022/sdcorejs-angular-components-preview.mjs +288 -147
  66. package/fesm2022/sdcorejs-angular-components-preview.mjs.map +1 -1
  67. package/fesm2022/sdcorejs-angular-components-query-bar.mjs +279 -153
  68. package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
  69. package/fesm2022/sdcorejs-angular-components-query-builder.mjs +69 -36
  70. package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
  71. package/fesm2022/sdcorejs-angular-components-quick-action.mjs +3 -3
  72. package/fesm2022/sdcorejs-angular-components-quick-action.mjs.map +1 -1
  73. package/fesm2022/sdcorejs-angular-components-section.mjs +17 -13
  74. package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
  75. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +26 -16
  76. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
  77. package/fesm2022/sdcorejs-angular-components-splitter.mjs +58 -37
  78. package/fesm2022/sdcorejs-angular-components-splitter.mjs.map +1 -1
  79. package/fesm2022/sdcorejs-angular-components-stepper.mjs +36 -21
  80. package/fesm2022/sdcorejs-angular-components-stepper.mjs.map +1 -1
  81. package/fesm2022/sdcorejs-angular-components-tab-router.mjs +27 -23
  82. package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
  83. package/fesm2022/sdcorejs-angular-components-tab.mjs +34 -20
  84. package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
  85. package/fesm2022/sdcorejs-angular-components-table.mjs +442 -277
  86. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  87. package/fesm2022/sdcorejs-angular-components-tree.mjs +86 -46
  88. package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
  89. package/fesm2022/sdcorejs-angular-components-upload-file.mjs +67 -41
  90. package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
  91. package/fesm2022/sdcorejs-angular-components-view.mjs +25 -14
  92. package/fesm2022/sdcorejs-angular-components-view.mjs.map +1 -1
  93. package/fesm2022/sdcorejs-angular-configurations.mjs.map +1 -1
  94. package/fesm2022/sdcorejs-angular-directives.mjs +42 -33
  95. package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
  96. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +85 -44
  97. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
  98. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs +15 -9
  99. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs.map +1 -1
  100. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +41 -24
  101. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
  102. package/fesm2022/sdcorejs-angular-forms-chip.mjs +37 -22
  103. package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
  104. package/fesm2022/sdcorejs-angular-forms-date-range.mjs +55 -30
  105. package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
  106. package/fesm2022/sdcorejs-angular-forms-date.mjs +63 -34
  107. package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
  108. package/fesm2022/sdcorejs-angular-forms-datetime.mjs +65 -35
  109. package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
  110. package/fesm2022/sdcorejs-angular-forms-directives.mjs +12 -12
  111. package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
  112. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +94 -53
  113. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
  114. package/fesm2022/sdcorejs-angular-forms-inline-text.mjs +33 -18
  115. package/fesm2022/sdcorejs-angular-forms-inline-text.mjs.map +1 -1
  116. package/fesm2022/sdcorejs-angular-forms-input-color.mjs +25 -14
  117. package/fesm2022/sdcorejs-angular-forms-input-color.mjs.map +1 -1
  118. package/fesm2022/sdcorejs-angular-forms-input-number.mjs +66 -35
  119. package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
  120. package/fesm2022/sdcorejs-angular-forms-input.mjs +94 -49
  121. package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
  122. package/fesm2022/sdcorejs-angular-forms-label.mjs +3 -3
  123. package/fesm2022/sdcorejs-angular-forms-label.mjs.map +1 -1
  124. package/fesm2022/sdcorejs-angular-forms-models.mjs +13 -8
  125. package/fesm2022/sdcorejs-angular-forms-models.mjs.map +1 -1
  126. package/fesm2022/sdcorejs-angular-forms-radio.mjs +41 -22
  127. package/fesm2022/sdcorejs-angular-forms-radio.mjs.map +1 -1
  128. package/fesm2022/sdcorejs-angular-forms-select.mjs +116 -61
  129. package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
  130. package/fesm2022/sdcorejs-angular-forms-switch.mjs +21 -12
  131. package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
  132. package/fesm2022/sdcorejs-angular-forms-textarea.mjs +48 -26
  133. package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
  134. package/fesm2022/sdcorejs-angular-forms-time-range.mjs +83 -43
  135. package/fesm2022/sdcorejs-angular-forms-time-range.mjs.map +1 -1
  136. package/fesm2022/sdcorejs-angular-forms-time.mjs +72 -38
  137. package/fesm2022/sdcorejs-angular-forms-time.mjs.map +1 -1
  138. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +76 -41
  139. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
  140. package/fesm2022/sdcorejs-angular-forms.mjs +4 -4
  141. package/fesm2022/sdcorejs-angular-forms.mjs.map +1 -1
  142. package/fesm2022/sdcorejs-angular-handlers.mjs +3 -3
  143. package/fesm2022/sdcorejs-angular-handlers.mjs.map +1 -1
  144. package/fesm2022/sdcorejs-angular-i18n.mjs +12 -9
  145. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  146. package/fesm2022/sdcorejs-angular-interceptors.mjs +6 -6
  147. package/fesm2022/sdcorejs-angular-interceptors.mjs.map +1 -1
  148. package/fesm2022/sdcorejs-angular-modules-auth.mjs +11 -10
  149. package/fesm2022/sdcorejs-angular-modules-auth.mjs.map +1 -1
  150. package/fesm2022/sdcorejs-angular-modules-icon.mjs +19 -11
  151. package/fesm2022/sdcorejs-angular-modules-icon.mjs.map +1 -1
  152. package/fesm2022/sdcorejs-angular-modules-keycloak.mjs +7 -7
  153. package/fesm2022/sdcorejs-angular-modules-keycloak.mjs.map +1 -1
  154. package/fesm2022/sdcorejs-angular-modules-layout.mjs +387 -247
  155. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  156. package/fesm2022/sdcorejs-angular-modules-permission.mjs +13 -11
  157. package/fesm2022/sdcorejs-angular-modules-permission.mjs.map +1 -1
  158. package/fesm2022/sdcorejs-angular-pipes.mjs +25 -25
  159. package/fesm2022/sdcorejs-angular-pipes.mjs.map +1 -1
  160. package/fesm2022/sdcorejs-angular-services-api.mjs +10 -10
  161. package/fesm2022/sdcorejs-angular-services-api.mjs.map +1 -1
  162. package/fesm2022/sdcorejs-angular-services-cache.mjs +3 -3
  163. package/fesm2022/sdcorejs-angular-services-cache.mjs.map +1 -1
  164. package/fesm2022/sdcorejs-angular-services-confirm.mjs +6 -6
  165. package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
  166. package/fesm2022/sdcorejs-angular-services-excel.mjs +3 -3
  167. package/fesm2022/sdcorejs-angular-services-excel.mjs.map +1 -1
  168. package/fesm2022/sdcorejs-angular-services-loading.mjs +3 -3
  169. package/fesm2022/sdcorejs-angular-services-loading.mjs.map +1 -1
  170. package/fesm2022/sdcorejs-angular-services-notify.mjs +21 -16
  171. package/fesm2022/sdcorejs-angular-services-notify.mjs.map +1 -1
  172. package/fesm2022/sdcorejs-angular-services-persistence.mjs +3 -3
  173. package/fesm2022/sdcorejs-angular-services-persistence.mjs.map +1 -1
  174. package/fesm2022/sdcorejs-angular-services-storage.mjs +3 -3
  175. package/fesm2022/sdcorejs-angular-services-storage.mjs.map +1 -1
  176. package/fesm2022/sdcorejs-angular-services-task.mjs +19 -11
  177. package/fesm2022/sdcorejs-angular-services-task.mjs.map +1 -1
  178. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs +17 -10
  179. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs.map +1 -1
  180. package/fesm2022/sdcorejs-angular-services-viewport.mjs +15 -9
  181. package/fesm2022/sdcorejs-angular-services-viewport.mjs.map +1 -1
  182. package/fesm2022/sdcorejs-angular-utilities-data-state.mjs.map +1 -1
  183. package/fesm2022/sdcorejs-angular-utilities-extensions.mjs.map +1 -1
  184. package/fesm2022/sdcorejs-angular-utilities-models.mjs.map +1 -1
  185. package/fesm2022/sdcorejs-angular-utilities-read-state.mjs +2 -1
  186. package/fesm2022/sdcorejs-angular-utilities-read-state.mjs.map +1 -1
  187. package/package.json +11 -11
@@ -182,46 +182,63 @@ class SdInput {
182
182
  // ==========================================
183
183
  // 1. SIGNAL QUERIES (Thay thế @ViewChild / @ContentChild)
184
184
  // ==========================================
185
- control = viewChild('control', ...(ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []));
185
+ control = viewChild('control', /* @ts-ignore */
186
+ ...(ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []));
186
187
  /** The inline primitive — only present when `viewed='inline'`; drives focus/blur in that mode. */
187
- inlineRef = viewChild(SdInlineText, ...(ngDevMode ? [{ debugName: "inlineRef" }] : /* istanbul ignore next */ []));
188
- sdLabelTemplate = contentChild('sdLabel', ...(ngDevMode ? [{ debugName: "sdLabelTemplate" }] : /* istanbul ignore next */ []));
189
- sdValueTemplate = contentChild('sdValue', ...(ngDevMode ? [{ debugName: "sdValueTemplate" }] : /* istanbul ignore next */ []));
190
- sdSuffixDef = contentChild(SdSuffixDefDirective, ...(ngDevMode ? [{ debugName: "sdSuffixDef" }] : /* istanbul ignore next */ []));
191
- sdViewDef = contentChild(SdViewDefDirective, ...(ngDevMode ? [{ debugName: "sdViewDef" }] : /* istanbul ignore next */ []));
188
+ inlineRef = viewChild(SdInlineText, /* @ts-ignore */
189
+ ...(ngDevMode ? [{ debugName: "inlineRef" }] : /* istanbul ignore next */ []));
190
+ sdLabelTemplate = contentChild('sdLabel', /* @ts-ignore */
191
+ ...(ngDevMode ? [{ debugName: "sdLabelTemplate" }] : /* istanbul ignore next */ []));
192
+ sdValueTemplate = contentChild('sdValue', /* @ts-ignore */
193
+ ...(ngDevMode ? [{ debugName: "sdValueTemplate" }] : /* istanbul ignore next */ []));
194
+ sdSuffixDef = contentChild(SdSuffixDefDirective, /* @ts-ignore */
195
+ ...(ngDevMode ? [{ debugName: "sdSuffixDef" }] : /* istanbul ignore next */ []));
196
+ sdViewDef = contentChild(SdViewDefDirective, /* @ts-ignore */
197
+ ...(ngDevMode ? [{ debugName: "sdViewDef" }] : /* istanbul ignore next */ []));
192
198
  // ==========================================
193
199
  // 2. SIGNAL INPUTS & MODEL
194
200
  // ==========================================
195
201
  autoIdInput = input(undefined, { ...(ngDevMode ? { debugName: "autoIdInput" } : /* istanbul ignore next */ {}), alias: 'autoId' });
196
- autoId = computed(() => (this.autoIdInput() ? `forms-input-${this.autoIdInput()}` : undefined), ...(ngDevMode ? [{ debugName: "autoId" }] : /* istanbul ignore next */ []));
202
+ autoId = computed(() => (this.autoIdInput() ? `forms-input-${this.autoIdInput()}` : undefined), /* @ts-ignore */
203
+ ...(ngDevMode ? [{ debugName: "autoId" }] : /* istanbul ignore next */ []));
197
204
  #state = sdFormControlState(computed(() => this.formControl));
198
- dataDisabled = computed(() => (this.#state().disabled ? 'true' : 'false'), ...(ngDevMode ? [{ debugName: "dataDisabled" }] : /* istanbul ignore next */ []));
199
- dataInvalid = computed(() => (this.#state().invalid ? 'true' : 'false'), ...(ngDevMode ? [{ debugName: "dataInvalid" }] : /* istanbul ignore next */ []));
200
- dataEmpty = computed(() => (sdIsEmpty(this.#state().value) ? 'true' : 'false'), ...(ngDevMode ? [{ debugName: "dataEmpty" }] : /* istanbul ignore next */ []));
205
+ dataDisabled = computed(() => (this.#state().disabled ? 'true' : 'false'), /* @ts-ignore */
206
+ ...(ngDevMode ? [{ debugName: "dataDisabled" }] : /* istanbul ignore next */ []));
207
+ dataInvalid = computed(() => (this.#state().invalid ? 'true' : 'false'), /* @ts-ignore */
208
+ ...(ngDevMode ? [{ debugName: "dataInvalid" }] : /* istanbul ignore next */ []));
209
+ dataEmpty = computed(() => (sdIsEmpty(this.#state().value) ? 'true' : 'false'), /* @ts-ignore */
210
+ ...(ngDevMode ? [{ debugName: "dataEmpty" }] : /* istanbul ignore next */ []));
201
211
  dataValue = computed(() => {
202
212
  if (this.type() === 'password')
203
213
  return null;
204
214
  return sdSerializeDataValue(this.#state().value);
205
- }, ...(ngDevMode ? [{ debugName: "dataValue" }] : /* istanbul ignore next */ []));
206
- dataRequired = computed(() => (this.required() ? 'true' : 'false'), ...(ngDevMode ? [{ debugName: "dataRequired" }] : /* istanbul ignore next */ []));
215
+ }, /* @ts-ignore */
216
+ ...(ngDevMode ? [{ debugName: "dataValue" }] : /* istanbul ignore next */ []));
217
+ dataRequired = computed(() => (this.required() ? 'true' : 'false'), /* @ts-ignore */
218
+ ...(ngDevMode ? [{ debugName: "dataRequired" }] : /* istanbul ignore next */ []));
207
219
  dataMaxLength = computed(() => {
208
220
  const v = this.maxlength();
209
221
  return v == null ? null : String(v);
210
- }, ...(ngDevMode ? [{ debugName: "dataMaxLength" }] : /* istanbul ignore next */ []));
222
+ }, /* @ts-ignore */
223
+ ...(ngDevMode ? [{ debugName: "dataMaxLength" }] : /* istanbul ignore next */ []));
211
224
  dataMinLength = computed(() => {
212
225
  const v = this.minlength();
213
226
  return v == null ? null : String(v);
214
- }, ...(ngDevMode ? [{ debugName: "dataMinLength" }] : /* istanbul ignore next */ []));
227
+ }, /* @ts-ignore */
228
+ ...(ngDevMode ? [{ debugName: "dataMinLength" }] : /* istanbul ignore next */ []));
215
229
  dataPattern = computed(() => {
216
230
  const v = this.pattern();
217
231
  return v == null || v === '' ? null : String(v);
218
- }, ...(ngDevMode ? [{ debugName: "dataPattern" }] : /* istanbul ignore next */ []));
232
+ }, /* @ts-ignore */
233
+ ...(ngDevMode ? [{ debugName: "dataPattern" }] : /* istanbul ignore next */ []));
219
234
  dataErrorMessage = computed(() => {
220
235
  void this.#state();
221
236
  const msg = this.errorMessage();
222
237
  return msg && msg.length > 0 ? msg : null;
223
- }, ...(ngDevMode ? [{ debugName: "dataErrorMessage" }] : /* istanbul ignore next */ []));
224
- name = input(Utilities.generateUuid(), ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
238
+ }, /* @ts-ignore */
239
+ ...(ngDevMode ? [{ debugName: "dataErrorMessage" }] : /* istanbul ignore next */ []));
240
+ name = input(Utilities.generateUuid(), /* @ts-ignore */
241
+ ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
225
242
  // ==========================================
226
243
  // 3. INJECT (Thay thế Constructor DI)
227
244
  // ==========================================
@@ -232,9 +249,12 @@ class SdInput {
232
249
  // trên view đã tháo (đổi route nhanh là đủ tái hiện).
233
250
  #timers = _sdTimerScope();
234
251
  appearanceInput = input(undefined, { ...(ngDevMode ? { debugName: "appearanceInput" } : /* istanbul ignore next */ {}), alias: 'appearance' });
235
- appearance = computed(() => this.appearanceInput() ?? this.#formConfig?.appearance ?? 'outline', ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
236
- floatLabel = input('auto', ...(ngDevMode ? [{ debugName: "floatLabel" }] : /* istanbul ignore next */ []));
237
- size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
252
+ appearance = computed(() => this.appearanceInput() ?? this.#formConfig?.appearance ?? 'outline', /* @ts-ignore */
253
+ ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
254
+ floatLabel = input('auto', /* @ts-ignore */
255
+ ...(ngDevMode ? [{ debugName: "floatLabel" }] : /* istanbul ignore next */ []));
256
+ size = input('md', /* @ts-ignore */
257
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
238
258
  // Ghi (TransformT): any (để không bị lỗi typing khi cha truyền vào)
239
259
  form = input(undefined, { ...(ngDevMode ? { debugName: "form" } : /* istanbul ignore next */ {}), transform: (val) => {
240
260
  if (!val)
@@ -250,15 +270,24 @@ class SdInput {
250
270
  return val.form;
251
271
  return undefined;
252
272
  } });
253
- label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
254
- helperText = input(...(ngDevMode ? [undefined, { debugName: "helperText" }] : /* istanbul ignore next */ []));
255
- placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
256
- type = input('text', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
257
- mask = input(...(ngDevMode ? [undefined, { debugName: "mask" }] : /* istanbul ignore next */ []));
258
- maskAdapter = computed(() => sdResolveInputMask(this.mask()), ...(ngDevMode ? [{ debugName: "maskAdapter" }] : /* istanbul ignore next */ []));
259
- effectiveType = computed(() => (this.maskAdapter() ? 'text' : this.type()), ...(ngDevMode ? [{ debugName: "effectiveType" }] : /* istanbul ignore next */ []));
260
- inputMode = computed(() => this.maskAdapter()?.inputMode, ...(ngDevMode ? [{ debugName: "inputMode" }] : /* istanbul ignore next */ []));
261
- maxDisplayLength = computed(() => this.maskAdapter()?.maxDisplayLength, ...(ngDevMode ? [{ debugName: "maxDisplayLength" }] : /* istanbul ignore next */ []));
273
+ label = input(/* @ts-ignore */
274
+ ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
275
+ helperText = input(/* @ts-ignore */
276
+ ...(ngDevMode ? [undefined, { debugName: "helperText" }] : /* istanbul ignore next */ []));
277
+ placeholder = input(/* @ts-ignore */
278
+ ...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
279
+ type = input('text', /* @ts-ignore */
280
+ ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
281
+ mask = input(/* @ts-ignore */
282
+ ...(ngDevMode ? [undefined, { debugName: "mask" }] : /* istanbul ignore next */ []));
283
+ maskAdapter = computed(() => sdResolveInputMask(this.mask()), /* @ts-ignore */
284
+ ...(ngDevMode ? [{ debugName: "maskAdapter" }] : /* istanbul ignore next */ []));
285
+ effectiveType = computed(() => (this.maskAdapter() ? 'text' : this.type()), /* @ts-ignore */
286
+ ...(ngDevMode ? [{ debugName: "effectiveType" }] : /* istanbul ignore next */ []));
287
+ inputMode = computed(() => this.maskAdapter()?.inputMode, /* @ts-ignore */
288
+ ...(ngDevMode ? [{ debugName: "inputMode" }] : /* istanbul ignore next */ []));
289
+ maxDisplayLength = computed(() => this.maskAdapter()?.maxDisplayLength, /* @ts-ignore */
290
+ ...(ngDevMode ? [{ debugName: "maxDisplayLength" }] : /* istanbul ignore next */ []));
262
291
  hideInlineError = input(false, { ...(ngDevMode ? { debugName: "hideInlineError" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
263
292
  blurOnEnter = input(false, { ...(ngDevMode ? { debugName: "blurOnEnter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
264
293
  /** Whether to show the value-gated clear button in edit and inline modes. */
@@ -277,11 +306,14 @@ class SdInput {
277
306
  this.control()?.nativeElement?.focus();
278
307
  };
279
308
  /** View display template: `sdViewDef` overrides the projected `#sdValue` for the static view (unified). */
280
- viewTemplate = computed(() => this.sdViewDef()?.templateRef ?? this.sdValueTemplate(), ...(ngDevMode ? [{ debugName: "viewTemplate" }] : /* istanbul ignore next */ []));
309
+ viewTemplate = computed(() => this.sdViewDef()?.templateRef ?? this.sdValueTemplate(), /* @ts-ignore */
310
+ ...(ngDevMode ? [{ debugName: "viewTemplate" }] : /* istanbul ignore next */ []));
281
311
  minlength = input(undefined, { ...(ngDevMode ? { debugName: "minlength" } : /* istanbul ignore next */ {}), transform: v => (v == null ? undefined : Number(v)) });
282
312
  maxlength = input(undefined, { ...(ngDevMode ? { debugName: "maxlength" } : /* istanbul ignore next */ {}), transform: v => (v == null ? undefined : Number(v)) });
283
- pattern = input(...(ngDevMode ? [undefined, { debugName: "pattern" }] : /* istanbul ignore next */ []));
284
- patternErrorMessage = input(...(ngDevMode ? [undefined, { debugName: "patternErrorMessage" }] : /* istanbul ignore next */ []));
313
+ pattern = input(/* @ts-ignore */
314
+ ...(ngDevMode ? [undefined, { debugName: "pattern" }] : /* istanbul ignore next */ []));
315
+ patternErrorMessage = input(/* @ts-ignore */
316
+ ...(ngDevMode ? [undefined, { debugName: "patternErrorMessage" }] : /* istanbul ignore next */ []));
285
317
  // Bỏ qua nếu val không phải string (number/boolean/object truyền nhầm → tránh validator hỏng)
286
318
  #lookupPattern = (val) => {
287
319
  if (typeof val !== 'string')
@@ -295,7 +327,8 @@ class SdInput {
295
327
  return undefined;
296
328
  const patternObj = this.#lookupPattern(val);
297
329
  return patternObj ? patternObj.pattern : val;
298
- }, ...(ngDevMode ? [{ debugName: "resolvedPattern" }] : /* istanbul ignore next */ []));
330
+ }, /* @ts-ignore */
331
+ ...(ngDevMode ? [{ debugName: "resolvedPattern" }] : /* istanbul ignore next */ []));
299
332
  resolvedPatternErrorMsg = computed(() => {
300
333
  // patternObj.errorMessage là i18n key (vd 'core.validator.email.error') → wrap qua i18n.t() để hiển thị string đã dịch
301
334
  const customMsg = this.patternErrorMessage();
@@ -303,7 +336,8 @@ class SdInput {
303
336
  return customMsg;
304
337
  const patternObj = this.#lookupPattern(this.pattern());
305
338
  return patternObj ? this.#i18n.t(patternObj.errorMessage) : undefined;
306
- }, ...(ngDevMode ? [{ debugName: "resolvedPatternErrorMsg" }] : /* istanbul ignore next */ []));
339
+ }, /* @ts-ignore */
340
+ ...(ngDevMode ? [{ debugName: "resolvedPatternErrorMsg" }] : /* istanbul ignore next */ []));
307
341
  /**
308
342
  * First active error message for tooltip display when `hideInlineError = true`.
309
343
  * Re-runs only when `#state` ticks (value / status / touched change) — no longer
@@ -338,10 +372,14 @@ class SdInput {
338
372
  if (errors['inlineError'])
339
373
  return this.inlineError();
340
374
  return undefined;
341
- }, ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
342
- validator = input(...(ngDevMode ? [undefined, { debugName: "validator" }] : /* istanbul ignore next */ []));
343
- inlineError = input(...(ngDevMode ? [undefined, { debugName: "inlineError" }] : /* istanbul ignore next */ []));
344
- hyperlink = input(...(ngDevMode ? [undefined, { debugName: "hyperlink" }] : /* istanbul ignore next */ []));
375
+ }, /* @ts-ignore */
376
+ ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
377
+ validator = input(/* @ts-ignore */
378
+ ...(ngDevMode ? [undefined, { debugName: "validator" }] : /* istanbul ignore next */ []));
379
+ inlineError = input(/* @ts-ignore */
380
+ ...(ngDevMode ? [undefined, { debugName: "inlineError" }] : /* istanbul ignore next */ []));
381
+ hyperlink = input(/* @ts-ignore */
382
+ ...(ngDevMode ? [undefined, { debugName: "hyperlink" }] : /* istanbul ignore next */ []));
345
383
  valueModel = model(undefined, { ...(ngDevMode ? { debugName: "valueModel" } : /* istanbul ignore next */ {}), alias: 'model' });
346
384
  // ==========================================
347
385
  // 4. SIGNAL OUTPUTS (Thay thế @Output)
@@ -359,12 +397,15 @@ class SdInput {
359
397
  formControl = new SdFormControl();
360
398
  /** Display-only control used by the input element while a mask is active. */
361
399
  displayControl = new SdFormControl();
362
- activeControl = computed(() => (this.maskAdapter() ? this.displayControl : this.formControl), ...(ngDevMode ? [{ debugName: "activeControl" }] : /* istanbul ignore next */ []));
363
- maskStatus = signal('empty', ...(ngDevMode ? [{ debugName: "maskStatus" }] : /* istanbul ignore next */ []));
400
+ activeControl = computed(() => (this.maskAdapter() ? this.displayControl : this.formControl), /* @ts-ignore */
401
+ ...(ngDevMode ? [{ debugName: "activeControl" }] : /* istanbul ignore next */ []));
402
+ maskStatus = signal('empty', /* @ts-ignore */
403
+ ...(ngDevMode ? [{ debugName: "maskStatus" }] : /* istanbul ignore next */ []));
364
404
  displayValue = computed(() => {
365
405
  const adapter = this.maskAdapter();
366
406
  return adapter ? adapter.format(this.formControl.value == null ? '' : String(this.formControl.value)).display : this.formControl.value;
367
- }, ...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
407
+ }, /* @ts-ignore */
408
+ ...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
368
409
  #subscription = new Subscription();
369
410
  #isComposing = false;
370
411
  #pendingMaskResult;
@@ -393,11 +434,13 @@ class SdInput {
393
434
  if (this.inlineError())
394
435
  validators.push(SdInlineErrorValidator);
395
436
  return validators;
396
- }, ...(ngDevMode ? [{ debugName: "#validators" }] : /* istanbul ignore next */ []));
437
+ }, /* @ts-ignore */
438
+ ...(ngDevMode ? [{ debugName: "#validators" }] : /* istanbul ignore next */ []));
397
439
  #asyncValidators = computed(() => {
398
440
  const validator = this.validator();
399
441
  return validator ? [HandleSdCustomValidator(validator)] : [];
400
- }, ...(ngDevMode ? [{ debugName: "#asyncValidators" }] : /* istanbul ignore next */ []));
442
+ }, /* @ts-ignore */
443
+ ...(ngDevMode ? [{ debugName: "#asyncValidators" }] : /* istanbul ignore next */ []));
401
444
  #formConnector = _sdFormControlConnector({
402
445
  form: this.form,
403
446
  name: this.name,
@@ -412,7 +455,8 @@ class SdInput {
412
455
  });
413
456
  /** Shared reactive form policy consumed by template-facing state below. */
414
457
  connectorState = this.#formConnector.state;
415
- isReadonly = computed(() => this.connectorState().readonly, ...(ngDevMode ? [{ debugName: "isReadonly" }] : /* istanbul ignore next */ []));
458
+ isReadonly = computed(() => this.connectorState().readonly, /* @ts-ignore */
459
+ ...(ngDevMode ? [{ debugName: "isReadonly" }] : /* istanbul ignore next */ []));
416
460
  // why: KHÔNG lấy `connectorState().validationError`. Cổng hiển thị của connector là
417
461
  // `snapshot.invalid` — snapshot đó do sdFormControlState memo hoá và chỉ đổi khi control PHÁT
418
462
  // event. Connector lại cài validator im lặng (`emitEvent: false`), nên bật `[required]` lúc
@@ -426,7 +470,8 @@ class SdInput {
426
470
  void this.#state();
427
471
  const control = this.formControl;
428
472
  return control.invalid && (control.touched || control.dirty) ? message : undefined;
429
- }, ...(ngDevMode ? [{ debugName: "visibleErrorMessage" }] : /* istanbul ignore next */ []));
473
+ }, /* @ts-ignore */
474
+ ...(ngDevMode ? [{ debugName: "visibleErrorMessage" }] : /* istanbul ignore next */ []));
430
475
  // Tri-state `viewed` — shared primitive. Input has NO panel; in `'inline'` the input is rendered
431
476
  // borderless/transparent (looks like text), always editable — clicking/focusing it edits directly.
432
477
  #viewedState = sdViewedInline(computed(() => this.connectorState().viewed), () => this.#focusActiveInput(), this.disabled);
@@ -631,10 +676,10 @@ class SdInput {
631
676
  // được scope theo DestroyRef nên không còn chạy sau destroy.
632
677
  this.#timers.schedule(() => this.#focusActiveInput(), 100);
633
678
  };
634
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
635
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SdInput, isStandalone: true, selector: "sd-input", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, appearanceInput: { classPropertyName: "appearanceInput", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, hideInlineError: { classPropertyName: "hideInlineError", publicName: "hideInlineError", isSignal: true, isRequired: false, transformFunction: null }, blurOnEnter: { classPropertyName: "blurOnEnter", publicName: "blurOnEnter", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, viewed: { classPropertyName: "viewed", publicName: "viewed", isSignal: true, isRequired: false, transformFunction: null }, minlength: { classPropertyName: "minlength", publicName: "minlength", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, patternErrorMessage: { classPropertyName: "patternErrorMessage", publicName: "patternErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, validator: { classPropertyName: "validator", publicName: "validator", isSignal: true, isRequired: false, transformFunction: null }, inlineError: { classPropertyName: "inlineError", publicName: "inlineError", isSignal: true, isRequired: false, transformFunction: null }, hyperlink: { classPropertyName: "hyperlink", publicName: "hyperlink", isSignal: true, isRequired: false, transformFunction: null }, valueModel: { classPropertyName: "valueModel", publicName: "model", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueModel: "modelChange", sdChange: "sdChange", sdFocus: "sdFocus", sdBlur: "sdBlur", keyupEnter: "keyupEnter", cleared: "cleared", sdFocusForceBlur: "sdFocusForceBlur" }, host: { properties: { "class.sd-has-label": "!!label()", "class.sd-viewed": "isViewed() || isInline()" } }, queries: [{ propertyName: "sdLabelTemplate", first: true, predicate: ["sdLabel"], descendants: true, isSignal: true }, { propertyName: "sdValueTemplate", first: true, predicate: ["sdValue"], descendants: true, isSignal: true }, { propertyName: "sdSuffixDef", first: true, predicate: SdSuffixDefDirective, descendants: true, isSignal: true }, { propertyName: "sdViewDef", first: true, predicate: SdViewDefDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "control", first: true, predicate: ["control"], descendants: true, isSignal: true }, { propertyName: "inlineRef", first: true, predicate: SdInlineText, descendants: true, isSignal: true }], ngImport: i0, template: "@let _label = label();\r\n@let _appearance = appearance();\r\n@let _hideInlineError = hideInlineError();\r\n@let _helperText = helperText();\r\n@let _maxLength = maxlength();\r\n@let _errorMessage = visibleErrorMessage();\r\n@let _required = required();\r\n@let _isInline = isInline();\r\n<!-- why: c\u00F9ng M\u1ED8T c\u1ED5ng gate cho c\u1EA3 3 th\u1EE9 \u2014 hi\u1EC7n <mat-error>, b\u1EADt aria-invalid, v\u00E0 tr\u1ECF\r\n aria-describedby. Tr\u01B0\u1EDBc \u0111\u00E2y message hi\u1EC7n m\u00E0 control kh\u00F4ng h\u1EC1 b\u00E1o invalid, n\u00EAn screen\r\n reader \u0111\u1ECDc xong \u00F4 nh\u1EADp v\u1EABn kh\u00F4ng bi\u1EBFt l\u00E0 \u0111ang l\u1ED7i. -->\r\n@let _showInlineError = !_hideInlineError && !!_errorMessage;\r\n\r\n@if (isViewed()) {\r\n <sd-view\r\n [label]=\"_label\"\r\n [labelTemplate]=\"sdLabelTemplate()\"\r\n [value]=\"formControl.value\"\r\n [display]=\"displayValue()\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"viewTemplate()\">\r\n </sd-view>\r\n} @else if (_isInline) {\r\n <!-- why: nh\u00E1nh inline PH\u1EA2I project `sdSuffixDef` gi\u1ED1ng nh\u00E1nh mat-form-field. Tr\u01B0\u1EDBc \u0111\u00E2y ch\u1EC9\r\n <sd-inline-text> \u0111\u01B0\u1EE3c render, n\u00EAn <sd-input-color viewed=\"'inline'\"> m\u1EA5t lu\u00F4n swatch v\u00E0\r\n <input type=\"color\"> \u1EA9n \u2014 openPicker() g\u1ECDi \u0111\u01B0\u1EE3c nh\u01B0ng kh\u00F4ng c\u00F3 element n\u00E0o \u0111\u1EC3 click, t\u1EE9c\r\n l\u00E0 no-op c\u00E2m. <sd-inline-text> l\u00E0 inline-flex t\u1EF1 hug n\u1ED9i dung n\u00EAn ch\u1EC9 c\u1EA7n m\u1ED9t h\u00E0ng flex. -->\r\n <div class=\"sd-input-inline\">\r\n <sd-inline-text\r\n [control]=\"activeControl()\"\r\n [placeholder]=\"placeholder() || _label || ''\"\r\n [clearable]=\"clearable() && !_required\"\r\n [autoId]=\"autoId()\"\r\n [state]=\"connectorState().invalid ? 'error' : 'auto'\"\r\n (sdFocus)=\"onFocus()\"\r\n (sdBlur)=\"onBlur()\"\r\n (keyupEnter)=\"onKeyupEnter()\"\r\n (cleared)=\"cleared.emit()\">\r\n </sd-inline-text>\r\n\r\n @if (sdSuffixDef()?.templateRef; as suffixRef) {\r\n <span class=\"sd-input-inline__suffix\">\r\n <ng-container *ngTemplateOutlet=\"suffixRef\"></ng-container>\r\n </span>\r\n }\r\n </div>\r\n} @else {\r\n @if (!_appearance) {\r\n <ng-content select=\"[sdLabel]\">\r\n @if (_label) {\r\n <sd-label [label]=\"_label\" [required]=\"_required\"></sd-label>\r\n }\r\n </ng-content>\r\n }\r\n\r\n <!-- why: div n\u00E0y CH\u1EC8 l\u00E0 h\u1ED9p layout. N\u00F3 t\u1EEBng mang aria-hidden=\"true\" \u0111\u1EC3 d\u1EADp c\u1EA3nh b\u00E1o lint \u2014\r\n v\u00E0 aria-hidden \u1EA9n C\u1EA2 c\u00E2y con, n\u00EAn label, <input>, <mat-error> l\u1EABn n\u00FAt clear bi\u1EBFn m\u1EA5t\r\n kh\u1ECFi accessibility tree c\u00F9ng l\u00FAc. role=\"presentation\" ch\u1EC9 v\u00F4 hi\u1EC7u ho\u00E1 ch\u00EDnh div (KH\u00D4NG\r\n lan xu\u1ED1ng con), c\u00F2n (click) ch\u1EC9 l\u00E0 ti\u1EC7n \u00EDch chu\u1ED9t: b\u00E0n ph\u00EDm Tab th\u1EB3ng v\u00E0o <input> v\u00E0\r\n nh\u1EADn \u0111\u00FAng k\u1EBFt qu\u1EA3 \u0111\u00F3, n\u00EAn kh\u00F4ng c\u1EA7n th\u00EAm key handler. -->\r\n <div\r\n class=\"d-flex align-items-center sd-input-container\"\r\n role=\"presentation\"\r\n [class.c-focused]=\"isFocused\"\r\n [class.c-disabled]=\"formControl.disabled\"\r\n (click)=\"onClick()\">\r\n <div class=\"sd-input-field-wrap\">\r\n <mat-form-field\r\n [class.sd-md]=\"size() === 'md'\"\r\n [class.sd-sm]=\"size() === 'sm'\"\r\n [class.hide-inline-error]=\"_hideInlineError\"\r\n [appearance]=\"_appearance!\"\r\n [floatLabel]=\"floatLabel()\">\r\n @if (_appearance && _label) {\r\n <mat-label class=\"sd-form-field-label\">\r\n <span>{{ _label }}</span>\r\n @if (_helperText) {\r\n <sd-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"below\" name=\"info\"></sd-icon>\r\n }\r\n </mat-label>\r\n }\r\n\r\n <!-- why: B\u1ECE aria-hidden tr\u00EAn ch\u00EDnh <input>. Input v\u1EABn focus \u0111\u01B0\u1EE3c b\u1EB1ng Tab, n\u00EAn\r\n aria-hidden khi\u1EBFn screen reader \u0111\u1ECDc ra\u2026 kh\u00F4ng g\u00EC c\u1EA3 \u2014 t\u1EC7 h\u01A1n l\u00E0 kh\u00F4ng l\u00E0m g\u00EC. -->\r\n <input\r\n [id]=\"id\"\r\n [formControl]=\"activeControl()\"\r\n [type]=\"effectiveType()\"\r\n #control\r\n matInput\r\n [placeholder]=\"placeholder() || _label || ''\"\r\n (keyup.enter)=\"onKeyupEnter()\"\r\n (focus)=\"onFocus()\"\r\n (blur)=\"onBlur()\"\r\n [required]=\"_required\"\r\n [readonly]=\"isReadonly()\"\r\n [autocomplete]=\"id\"\r\n autocorrect=\"off\"\r\n [step]=\"1\"\r\n [attr.inputmode]=\"inputMode()\"\r\n [attr.maxlength]=\"maxDisplayLength()\"\r\n [attr.data-autoId]=\"autoId()\"\r\n [attr.data-disabled]=\"dataDisabled()\"\r\n [attr.data-invalid]=\"dataInvalid()\"\r\n [attr.data-empty]=\"dataEmpty()\"\r\n [attr.data-value]=\"dataValue()\"\r\n [attr.data-required]=\"dataRequired()\"\r\n [attr.data-maxlength]=\"dataMaxLength()\"\r\n [attr.data-minlength]=\"dataMinLength()\"\r\n [attr.data-pattern]=\"dataPattern()\"\r\n [attr.data-error-message]=\"dataErrorMessage()\"\r\n [attr.aria-invalid]=\"_errorMessage ? 'true' : null\"\r\n [attr.aria-describedby]=\"_errorMessage ? errorId : null\"\r\n (compositionstart)=\"onCompositionStart()\"\r\n (compositionend)=\"onCompositionEnd($event)\" />\r\n\r\n @if (_showInlineError) {\r\n <mat-error [id]=\"errorId\">{{ _errorMessage }}</mat-error>\r\n }\r\n\r\n <!-- why: n\u00FAt clear render TR\u01AF\u1EDAC error icon. Clear hover-gated (visibility:hidden) v\u1EABn\r\n chi\u1EBFm ch\u1ED7 trong layout \u2192 n\u1EBFu \u0111\u1EE9ng sau s\u1EBD \u0111\u1EA9y error icon \"t\u1EE5t v\u00E0o trong\". \u0110\u1EE9ng tr\u01B0\u1EDBc\r\n th\u00EC error icon n\u1EB1m s\u00E1t m\u00E9p ph\u1EA3i, clear gi\u1EEF slot v\u00F4 h\u00ECnh b\u00EAn tr\u00E1i. -->\r\n @if (showClear()) {\r\n <button type=\"button\" class=\"sd-clear-btn sd-hover\" matSuffix (click)=\"clear($event)\" title=\"X\u00F3a\" aria-label=\"X\u00F3a\">\r\n <sd-icon name=\"close\"></sd-icon>\r\n </button>\r\n }\r\n\r\n @if (_hideInlineError && _errorMessage) {\r\n <sd-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\" name=\"error\"></sd-icon>\n }\r\n @if (_hideInlineError && _errorMessage) {\r\n <span class=\"sd-visually-hidden\" [id]=\"errorId\" matSuffix>{{ _errorMessage }}</span>\r\r\n }\r\n\r\n @if (sdSuffixDef()?.templateRef; as suffixRef) {\r\n <ng-container matSuffix>\r\n <ng-container *ngTemplateOutlet=\"suffixRef\"></ng-container>\r\n </ng-container>\r\n }\r\n <!-- <ng-container matSuffix>\r\n <ng-content select=\"[sdSuffix]\"></ng-content>\r\n </ng-container> -->\r\n </mat-form-field>\r\n\r\n @if (_maxLength && !_hideInlineError && !formControl.disabled) {\r\n <div\r\n class=\"sd-maxlength-counter\"\r\n [class.sd-maxlength-counter--visible]=\"isFocused\"\r\n [class.sd-maxlength-counter--exceeded]=\"isMaxlengthExceeded()\"\r\n [attr.title]=\"isMaxlengthExceeded() ? ('core.form.input.exceeded' | sdTranslate) : null\">\r\n {{ getCurrentLength() }}/{{ _maxLength }}\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n}\r\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-primary-contrast{color:var(--sd-primary-contrast)!important}.bg-primary-contrast{background:var(--sd-primary-contrast)!important}.border-primary-contrast{border-color:var(--sd-primary-contrast)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-secondary-contrast{color:var(--sd-secondary-contrast)!important}.bg-secondary-contrast{background:var(--sd-secondary-contrast)!important}.border-secondary-contrast{border-color:var(--sd-secondary-contrast)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-info-contrast{color:var(--sd-info-contrast)!important}.bg-info-contrast{background:var(--sd-info-contrast)!important}.border-info-contrast{border-color:var(--sd-info-contrast)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-success-contrast{color:var(--sd-success-contrast)!important}.bg-success-contrast{background:var(--sd-success-contrast)!important}.border-success-contrast{border-color:var(--sd-success-contrast)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-warning-contrast{color:var(--sd-warning-contrast)!important}.bg-warning-contrast{background:var(--sd-warning-contrast)!important}.border-warning-contrast{border-color:var(--sd-warning-contrast)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-error-contrast{color:var(--sd-error-contrast)!important}.bg-error-contrast{background:var(--sd-error-contrast)!important}.border-error-contrast{border-color:var(--sd-error-contrast)!important}.text-surface{color:var(--sd-surface)!important}.bg-surface{background:var(--sd-surface)!important}.border-surface{border-color:var(--sd-surface)!important}.text-surface-muted{color:var(--sd-surface-muted)!important}.bg-surface-muted{background:var(--sd-surface-muted)!important}.border-surface-muted{border-color:var(--sd-surface-muted)!important}.text-text{color:var(--sd-text)!important}.bg-text{background:var(--sd-text)!important}.border-text{border-color:var(--sd-text)!important}.text-text-secondary{color:var(--sd-text-secondary)!important}.bg-text-secondary{background:var(--sd-text-secondary)!important}.border-text-secondary{border-color:var(--sd-text-secondary)!important}.text-text-muted{color:var(--sd-text-muted)!important}.bg-text-muted{background:var(--sd-text-muted)!important}.border-text-muted{border-color:var(--sd-text-muted)!important}.text-border{color:var(--sd-border)!important}.bg-border{background:var(--sd-border)!important}.border-border{border-color:var(--sd-border)!important}.text-border-strong{color:var(--sd-border-strong)!important}.bg-border-strong{background:var(--sd-border-strong)!important}.border-border-strong{border-color:var(--sd-border-strong)!important}.text-disabled-bg{color:var(--sd-disabled-bg)!important}.bg-disabled-bg{background:var(--sd-disabled-bg)!important}.border-disabled-bg{border-color:var(--sd-disabled-bg)!important}.text-disabled-text{color:var(--sd-disabled-text)!important}.bg-disabled-text{background:var(--sd-disabled-text)!important}.border-disabled-text{border-color:var(--sd-disabled-text)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}.text-secondary{color:var(--sd-text-secondary)!important}.text-muted{color:var(--sd-text-muted)!important}.text-body{color:var(--sd-text)!important}.bg-muted{background:var(--sd-surface-muted)!important}:host{display:block}.sd-input-inline{display:inline-flex;align-items:center;gap:4px;max-width:100%}.sd-input-inline__suffix{display:inline-flex;align-items:center;line-height:0}:host(.sd-has-label){padding-top:4px}:host(.sd-viewed){padding-top:0}:host ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-disabled .mat-mdc-text-field-wrapper{background:var(--sd-disabled-bg)}:host ::ng-deep .mat-mdc-form-field input.mat-mdc-input-element:disabled{color:var(--sd-disabled-text)!important}:host ::ng-deep .mat-mdc-form-field .mat-mdc-placeholder-required{color:var(--sd-error)}.sd-input-field-wrap{position:relative;flex:1;min-width:0}.sd-maxlength-counter{position:absolute;right:4px;top:calc(100% - 16px);opacity:0;font-size:10px;line-height:1.1;color:#00000061;pointer-events:none;transition:opacity .12s ease;z-index:1}.sd-maxlength-counter--exceeded{color:var(--sd-error);font-weight:600}:host ::ng-deep .sd-input-container.c-focused .sd-maxlength-counter,:host ::ng-deep .sd-input-container:hover .sd-maxlength-counter,:host ::ng-deep .sd-input-container .sd-maxlength-counter.sd-maxlength-counter--visible{opacity:1}.sd-md:hover .btn-copy{visibility:visible}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: SdLabel, selector: "sd-label", inputs: ["label", "description", "required", "helperText"] }, { kind: "component", type: SdView, selector: "sd-view", inputs: ["label", "value", "display", "hyperlink", "labelTemplate", "valueTemplate", "selectedItems"] }, { kind: "component", type: SdInlineText, selector: "sd-inline-text", inputs: ["value", "control", "placeholder", "disabled", "clearable", "state", "chrome", "autoId", "autofocus", "minSize"], outputs: ["valueChange", "cleared", "keyupEnter", "keydownEscape", "sdFocus", "sdBlur", "sdKeydown", "sdPaste", "sdCompositionStart", "sdCompositionEnd"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
679
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
680
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: SdInput, isStandalone: true, selector: "sd-input", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, appearanceInput: { classPropertyName: "appearanceInput", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, hideInlineError: { classPropertyName: "hideInlineError", publicName: "hideInlineError", isSignal: true, isRequired: false, transformFunction: null }, blurOnEnter: { classPropertyName: "blurOnEnter", publicName: "blurOnEnter", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, viewed: { classPropertyName: "viewed", publicName: "viewed", isSignal: true, isRequired: false, transformFunction: null }, minlength: { classPropertyName: "minlength", publicName: "minlength", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, patternErrorMessage: { classPropertyName: "patternErrorMessage", publicName: "patternErrorMessage", isSignal: true, isRequired: false, transformFunction: null }, validator: { classPropertyName: "validator", publicName: "validator", isSignal: true, isRequired: false, transformFunction: null }, inlineError: { classPropertyName: "inlineError", publicName: "inlineError", isSignal: true, isRequired: false, transformFunction: null }, hyperlink: { classPropertyName: "hyperlink", publicName: "hyperlink", isSignal: true, isRequired: false, transformFunction: null }, valueModel: { classPropertyName: "valueModel", publicName: "model", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueModel: "modelChange", sdChange: "sdChange", sdFocus: "sdFocus", sdBlur: "sdBlur", keyupEnter: "keyupEnter", cleared: "cleared", sdFocusForceBlur: "sdFocusForceBlur" }, host: { properties: { "class.sd-has-label": "!!label()", "class.sd-viewed": "isViewed() || isInline()" } }, queries: [{ propertyName: "sdLabelTemplate", first: true, predicate: ["sdLabel"], descendants: true, isSignal: true }, { propertyName: "sdValueTemplate", first: true, predicate: ["sdValue"], descendants: true, isSignal: true }, { propertyName: "sdSuffixDef", first: true, predicate: SdSuffixDefDirective, descendants: true, isSignal: true }, { propertyName: "sdViewDef", first: true, predicate: SdViewDefDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "control", first: true, predicate: ["control"], descendants: true, isSignal: true }, { propertyName: "inlineRef", first: true, predicate: SdInlineText, descendants: true, isSignal: true }], ngImport: i0, template: "@let _label = label();\n@let _appearance = appearance();\n@let _hideInlineError = hideInlineError();\n@let _helperText = helperText();\n@let _maxLength = maxlength();\n@let _errorMessage = visibleErrorMessage();\n@let _required = required();\n@let _isInline = isInline();\n<!-- why: c\u00F9ng M\u1ED8T c\u1ED5ng gate cho c\u1EA3 3 th\u1EE9 \u2014 hi\u1EC7n <mat-error>, b\u1EADt aria-invalid, v\u00E0 tr\u1ECF\n aria-describedby. Tr\u01B0\u1EDBc \u0111\u00E2y message hi\u1EC7n m\u00E0 control kh\u00F4ng h\u1EC1 b\u00E1o invalid, n\u00EAn screen\n reader \u0111\u1ECDc xong \u00F4 nh\u1EADp v\u1EABn kh\u00F4ng bi\u1EBFt l\u00E0 \u0111ang l\u1ED7i. -->\n@let _showInlineError = !_hideInlineError && !!_errorMessage;\n\n@if (isViewed()) {\n <sd-view\n [label]=\"_label\"\n [labelTemplate]=\"sdLabelTemplate()\"\n [value]=\"formControl.value\"\n [display]=\"displayValue()\"\n [hyperlink]=\"hyperlink()\"\n [valueTemplate]=\"viewTemplate()\">\n </sd-view>\n} @else if (_isInline) {\n <!-- why: nh\u00E1nh inline PH\u1EA2I project `sdSuffixDef` gi\u1ED1ng nh\u00E1nh mat-form-field. Tr\u01B0\u1EDBc \u0111\u00E2y ch\u1EC9\n <sd-inline-text> \u0111\u01B0\u1EE3c render, n\u00EAn <sd-input-color viewed=\"'inline'\"> m\u1EA5t lu\u00F4n swatch v\u00E0\n <input type=\"color\"> \u1EA9n \u2014 openPicker() g\u1ECDi \u0111\u01B0\u1EE3c nh\u01B0ng kh\u00F4ng c\u00F3 element n\u00E0o \u0111\u1EC3 click, t\u1EE9c\n l\u00E0 no-op c\u00E2m. <sd-inline-text> l\u00E0 inline-flex t\u1EF1 hug n\u1ED9i dung n\u00EAn ch\u1EC9 c\u1EA7n m\u1ED9t h\u00E0ng flex. -->\n <div class=\"sd-input-inline\">\n <sd-inline-text\n [control]=\"activeControl()\"\n [placeholder]=\"placeholder() || _label || ''\"\n [clearable]=\"clearable() && !_required\"\n [autoId]=\"autoId()\"\n [state]=\"connectorState().invalid ? 'error' : 'auto'\"\n (sdFocus)=\"onFocus()\"\n (sdBlur)=\"onBlur()\"\n (keyupEnter)=\"onKeyupEnter()\"\n (cleared)=\"cleared.emit()\">\n </sd-inline-text>\n\n @if (sdSuffixDef()?.templateRef; as suffixRef) {\n <span class=\"sd-input-inline__suffix\">\n <ng-container *ngTemplateOutlet=\"suffixRef\"></ng-container>\n </span>\n }\n </div>\n} @else {\n @if (!_appearance) {\n <ng-content select=\"[sdLabel]\">\n @if (_label) {\n <sd-label [label]=\"_label\" [required]=\"_required\"></sd-label>\n }\n </ng-content>\n }\n\n <!-- why: div n\u00E0y CH\u1EC8 l\u00E0 h\u1ED9p layout. N\u00F3 t\u1EEBng mang aria-hidden=\"true\" \u0111\u1EC3 d\u1EADp c\u1EA3nh b\u00E1o lint \u2014\n v\u00E0 aria-hidden \u1EA9n C\u1EA2 c\u00E2y con, n\u00EAn label, <input>, <mat-error> l\u1EABn n\u00FAt clear bi\u1EBFn m\u1EA5t\n kh\u1ECFi accessibility tree c\u00F9ng l\u00FAc. role=\"presentation\" ch\u1EC9 v\u00F4 hi\u1EC7u ho\u00E1 ch\u00EDnh div (KH\u00D4NG\n lan xu\u1ED1ng con), c\u00F2n (click) ch\u1EC9 l\u00E0 ti\u1EC7n \u00EDch chu\u1ED9t: b\u00E0n ph\u00EDm Tab th\u1EB3ng v\u00E0o <input> v\u00E0\n nh\u1EADn \u0111\u00FAng k\u1EBFt qu\u1EA3 \u0111\u00F3, n\u00EAn kh\u00F4ng c\u1EA7n th\u00EAm key handler. -->\n <div\n class=\"d-flex align-items-center sd-input-container\"\n role=\"presentation\"\n [class.c-focused]=\"isFocused\"\n [class.c-disabled]=\"formControl.disabled\"\n (click)=\"onClick()\">\n <div class=\"sd-input-field-wrap\">\n <mat-form-field\n [class.sd-md]=\"size() === 'md'\"\n [class.sd-sm]=\"size() === 'sm'\"\n [class.hide-inline-error]=\"_hideInlineError\"\n [appearance]=\"_appearance!\"\n [floatLabel]=\"floatLabel()\">\n @if (_appearance && _label) {\n <mat-label class=\"sd-form-field-label\">\n <span>{{ _label }}</span>\n @if (_helperText) {\n <sd-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"below\" name=\"info\"></sd-icon>\n }\n </mat-label>\n }\n\n <!-- why: B\u1ECE aria-hidden tr\u00EAn ch\u00EDnh <input>. Input v\u1EABn focus \u0111\u01B0\u1EE3c b\u1EB1ng Tab, n\u00EAn\n aria-hidden khi\u1EBFn screen reader \u0111\u1ECDc ra\u2026 kh\u00F4ng g\u00EC c\u1EA3 \u2014 t\u1EC7 h\u01A1n l\u00E0 kh\u00F4ng l\u00E0m g\u00EC. -->\n <input\n [id]=\"id\"\n [formControl]=\"activeControl()\"\n [type]=\"effectiveType()\"\n #control\n matInput\n [placeholder]=\"placeholder() || _label || ''\"\n (keyup.enter)=\"onKeyupEnter()\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [required]=\"_required\"\n [readonly]=\"isReadonly()\"\n [autocomplete]=\"id\"\n autocorrect=\"off\"\n [step]=\"1\"\n [attr.inputmode]=\"inputMode()\"\n [attr.maxlength]=\"maxDisplayLength()\"\n [attr.data-autoId]=\"autoId()\"\n [attr.data-disabled]=\"dataDisabled()\"\n [attr.data-invalid]=\"dataInvalid()\"\n [attr.data-empty]=\"dataEmpty()\"\n [attr.data-value]=\"dataValue()\"\n [attr.data-required]=\"dataRequired()\"\n [attr.data-maxlength]=\"dataMaxLength()\"\n [attr.data-minlength]=\"dataMinLength()\"\n [attr.data-pattern]=\"dataPattern()\"\n [attr.data-error-message]=\"dataErrorMessage()\"\n [attr.aria-invalid]=\"_errorMessage ? 'true' : null\"\n [attr.aria-describedby]=\"_errorMessage ? errorId : null\"\n (compositionstart)=\"onCompositionStart()\"\n (compositionend)=\"onCompositionEnd($event)\" />\n\n @if (_showInlineError) {\n <mat-error [id]=\"errorId\">{{ _errorMessage }}</mat-error>\n }\n\n <!-- why: n\u00FAt clear render TR\u01AF\u1EDAC error icon. Clear hover-gated (visibility:hidden) v\u1EABn\n chi\u1EBFm ch\u1ED7 trong layout \u2192 n\u1EBFu \u0111\u1EE9ng sau s\u1EBD \u0111\u1EA9y error icon \"t\u1EE5t v\u00E0o trong\". \u0110\u1EE9ng tr\u01B0\u1EDBc\n th\u00EC error icon n\u1EB1m s\u00E1t m\u00E9p ph\u1EA3i, clear gi\u1EEF slot v\u00F4 h\u00ECnh b\u00EAn tr\u00E1i. -->\n @if (showClear()) {\n <button type=\"button\" class=\"sd-clear-btn sd-hover\" matSuffix (click)=\"clear($event)\" title=\"X\u00F3a\" aria-label=\"X\u00F3a\">\n <sd-icon name=\"close\"></sd-icon>\n </button>\n }\n\n @if (_hideInlineError && _errorMessage) {\n <sd-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\" name=\"error\"></sd-icon>\n }\n @if (_hideInlineError && _errorMessage) {\n <span class=\"sd-visually-hidden\" [id]=\"errorId\" matSuffix>{{ _errorMessage }}</span>\n\n }\n\n @if (sdSuffixDef()?.templateRef; as suffixRef) {\n <ng-container matSuffix>\n <ng-container *ngTemplateOutlet=\"suffixRef\"></ng-container>\n </ng-container>\n }\n <!-- <ng-container matSuffix>\n <ng-content select=\"[sdSuffix]\"></ng-content>\n </ng-container> -->\n </mat-form-field>\n\n @if (_maxLength && !_hideInlineError && !formControl.disabled) {\n <div\n class=\"sd-maxlength-counter\"\n [class.sd-maxlength-counter--visible]=\"isFocused\"\n [class.sd-maxlength-counter--exceeded]=\"isMaxlengthExceeded()\"\n [attr.title]=\"isMaxlengthExceeded() ? ('core.form.input.exceeded' | sdTranslate) : null\">\n {{ getCurrentLength() }}/{{ _maxLength }}\n </div>\n }\n </div>\n </div>\n}\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-primary-contrast{color:var(--sd-primary-contrast)!important}.bg-primary-contrast{background:var(--sd-primary-contrast)!important}.border-primary-contrast{border-color:var(--sd-primary-contrast)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-secondary-contrast{color:var(--sd-secondary-contrast)!important}.bg-secondary-contrast{background:var(--sd-secondary-contrast)!important}.border-secondary-contrast{border-color:var(--sd-secondary-contrast)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-info-contrast{color:var(--sd-info-contrast)!important}.bg-info-contrast{background:var(--sd-info-contrast)!important}.border-info-contrast{border-color:var(--sd-info-contrast)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-success-contrast{color:var(--sd-success-contrast)!important}.bg-success-contrast{background:var(--sd-success-contrast)!important}.border-success-contrast{border-color:var(--sd-success-contrast)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-warning-contrast{color:var(--sd-warning-contrast)!important}.bg-warning-contrast{background:var(--sd-warning-contrast)!important}.border-warning-contrast{border-color:var(--sd-warning-contrast)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-error-contrast{color:var(--sd-error-contrast)!important}.bg-error-contrast{background:var(--sd-error-contrast)!important}.border-error-contrast{border-color:var(--sd-error-contrast)!important}.text-surface{color:var(--sd-surface)!important}.bg-surface{background:var(--sd-surface)!important}.border-surface{border-color:var(--sd-surface)!important}.text-surface-muted{color:var(--sd-surface-muted)!important}.bg-surface-muted{background:var(--sd-surface-muted)!important}.border-surface-muted{border-color:var(--sd-surface-muted)!important}.text-text{color:var(--sd-text)!important}.bg-text{background:var(--sd-text)!important}.border-text{border-color:var(--sd-text)!important}.text-text-secondary{color:var(--sd-text-secondary)!important}.bg-text-secondary{background:var(--sd-text-secondary)!important}.border-text-secondary{border-color:var(--sd-text-secondary)!important}.text-text-muted{color:var(--sd-text-muted)!important}.bg-text-muted{background:var(--sd-text-muted)!important}.border-text-muted{border-color:var(--sd-text-muted)!important}.text-border{color:var(--sd-border)!important}.bg-border{background:var(--sd-border)!important}.border-border{border-color:var(--sd-border)!important}.text-border-strong{color:var(--sd-border-strong)!important}.bg-border-strong{background:var(--sd-border-strong)!important}.border-border-strong{border-color:var(--sd-border-strong)!important}.text-disabled-bg{color:var(--sd-disabled-bg)!important}.bg-disabled-bg{background:var(--sd-disabled-bg)!important}.border-disabled-bg{border-color:var(--sd-disabled-bg)!important}.text-disabled-text{color:var(--sd-disabled-text)!important}.bg-disabled-text{background:var(--sd-disabled-text)!important}.border-disabled-text{border-color:var(--sd-disabled-text)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}.text-secondary{color:var(--sd-text-secondary)!important}.text-muted{color:var(--sd-text-muted)!important}.text-body{color:var(--sd-text)!important}.bg-muted{background:var(--sd-surface-muted)!important}:host{display:block}.sd-input-inline{display:inline-flex;align-items:center;gap:4px;max-width:100%}.sd-input-inline__suffix{display:inline-flex;align-items:center;line-height:0}:host(.sd-has-label){padding-top:4px}:host(.sd-viewed){padding-top:0}:host ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-disabled .mat-mdc-text-field-wrapper{background:var(--sd-disabled-bg)}:host ::ng-deep .mat-mdc-form-field input.mat-mdc-input-element:disabled{color:var(--sd-disabled-text)!important}:host ::ng-deep .mat-mdc-form-field .mat-mdc-placeholder-required{color:var(--sd-error)}.sd-input-field-wrap{position:relative;flex:1;min-width:0}.sd-maxlength-counter{position:absolute;right:4px;top:calc(100% - 16px);opacity:0;font-size:10px;line-height:1.1;color:#00000061;pointer-events:none;transition:opacity .12s ease;z-index:1}.sd-maxlength-counter--exceeded{color:var(--sd-error);font-weight:600}:host ::ng-deep .sd-input-container.c-focused .sd-maxlength-counter,:host ::ng-deep .sd-input-container:hover .sd-maxlength-counter,:host ::ng-deep .sd-input-container .sd-maxlength-counter.sd-maxlength-counter--visible{opacity:1}.sd-md:hover .btn-copy{visibility:visible}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: SdLabel, selector: "sd-label", inputs: ["label", "description", "required", "helperText"] }, { kind: "component", type: SdView, selector: "sd-view", inputs: ["label", "value", "display", "hyperlink", "labelTemplate", "valueTemplate", "selectedItems"] }, { kind: "component", type: SdInlineText, selector: "sd-inline-text", inputs: ["value", "control", "placeholder", "disabled", "clearable", "state", "chrome", "autoId", "autofocus", "minSize"], outputs: ["valueChange", "cleared", "keyupEnter", "keydownEscape", "sdFocus", "sdBlur", "sdKeydown", "sdPaste", "sdCompositionStart", "sdCompositionEnd"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
636
681
  }
637
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdInput, decorators: [{
682
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdInput, decorators: [{
638
683
  type: Component,
639
684
  args: [{ selector: 'sd-input', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, host: { '[class.sd-has-label]': '!!label()', '[class.sd-viewed]': 'isViewed() || isInline()' }, imports: [
640
685
  SdIcon,
@@ -649,7 +694,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
649
694
  SdView,
650
695
  SdInlineText,
651
696
  SdTranslatePipe,
652
- ], template: "@let _label = label();\r\n@let _appearance = appearance();\r\n@let _hideInlineError = hideInlineError();\r\n@let _helperText = helperText();\r\n@let _maxLength = maxlength();\r\n@let _errorMessage = visibleErrorMessage();\r\n@let _required = required();\r\n@let _isInline = isInline();\r\n<!-- why: c\u00F9ng M\u1ED8T c\u1ED5ng gate cho c\u1EA3 3 th\u1EE9 \u2014 hi\u1EC7n <mat-error>, b\u1EADt aria-invalid, v\u00E0 tr\u1ECF\r\n aria-describedby. Tr\u01B0\u1EDBc \u0111\u00E2y message hi\u1EC7n m\u00E0 control kh\u00F4ng h\u1EC1 b\u00E1o invalid, n\u00EAn screen\r\n reader \u0111\u1ECDc xong \u00F4 nh\u1EADp v\u1EABn kh\u00F4ng bi\u1EBFt l\u00E0 \u0111ang l\u1ED7i. -->\r\n@let _showInlineError = !_hideInlineError && !!_errorMessage;\r\n\r\n@if (isViewed()) {\r\n <sd-view\r\n [label]=\"_label\"\r\n [labelTemplate]=\"sdLabelTemplate()\"\r\n [value]=\"formControl.value\"\r\n [display]=\"displayValue()\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"viewTemplate()\">\r\n </sd-view>\r\n} @else if (_isInline) {\r\n <!-- why: nh\u00E1nh inline PH\u1EA2I project `sdSuffixDef` gi\u1ED1ng nh\u00E1nh mat-form-field. Tr\u01B0\u1EDBc \u0111\u00E2y ch\u1EC9\r\n <sd-inline-text> \u0111\u01B0\u1EE3c render, n\u00EAn <sd-input-color viewed=\"'inline'\"> m\u1EA5t lu\u00F4n swatch v\u00E0\r\n <input type=\"color\"> \u1EA9n \u2014 openPicker() g\u1ECDi \u0111\u01B0\u1EE3c nh\u01B0ng kh\u00F4ng c\u00F3 element n\u00E0o \u0111\u1EC3 click, t\u1EE9c\r\n l\u00E0 no-op c\u00E2m. <sd-inline-text> l\u00E0 inline-flex t\u1EF1 hug n\u1ED9i dung n\u00EAn ch\u1EC9 c\u1EA7n m\u1ED9t h\u00E0ng flex. -->\r\n <div class=\"sd-input-inline\">\r\n <sd-inline-text\r\n [control]=\"activeControl()\"\r\n [placeholder]=\"placeholder() || _label || ''\"\r\n [clearable]=\"clearable() && !_required\"\r\n [autoId]=\"autoId()\"\r\n [state]=\"connectorState().invalid ? 'error' : 'auto'\"\r\n (sdFocus)=\"onFocus()\"\r\n (sdBlur)=\"onBlur()\"\r\n (keyupEnter)=\"onKeyupEnter()\"\r\n (cleared)=\"cleared.emit()\">\r\n </sd-inline-text>\r\n\r\n @if (sdSuffixDef()?.templateRef; as suffixRef) {\r\n <span class=\"sd-input-inline__suffix\">\r\n <ng-container *ngTemplateOutlet=\"suffixRef\"></ng-container>\r\n </span>\r\n }\r\n </div>\r\n} @else {\r\n @if (!_appearance) {\r\n <ng-content select=\"[sdLabel]\">\r\n @if (_label) {\r\n <sd-label [label]=\"_label\" [required]=\"_required\"></sd-label>\r\n }\r\n </ng-content>\r\n }\r\n\r\n <!-- why: div n\u00E0y CH\u1EC8 l\u00E0 h\u1ED9p layout. N\u00F3 t\u1EEBng mang aria-hidden=\"true\" \u0111\u1EC3 d\u1EADp c\u1EA3nh b\u00E1o lint \u2014\r\n v\u00E0 aria-hidden \u1EA9n C\u1EA2 c\u00E2y con, n\u00EAn label, <input>, <mat-error> l\u1EABn n\u00FAt clear bi\u1EBFn m\u1EA5t\r\n kh\u1ECFi accessibility tree c\u00F9ng l\u00FAc. role=\"presentation\" ch\u1EC9 v\u00F4 hi\u1EC7u ho\u00E1 ch\u00EDnh div (KH\u00D4NG\r\n lan xu\u1ED1ng con), c\u00F2n (click) ch\u1EC9 l\u00E0 ti\u1EC7n \u00EDch chu\u1ED9t: b\u00E0n ph\u00EDm Tab th\u1EB3ng v\u00E0o <input> v\u00E0\r\n nh\u1EADn \u0111\u00FAng k\u1EBFt qu\u1EA3 \u0111\u00F3, n\u00EAn kh\u00F4ng c\u1EA7n th\u00EAm key handler. -->\r\n <div\r\n class=\"d-flex align-items-center sd-input-container\"\r\n role=\"presentation\"\r\n [class.c-focused]=\"isFocused\"\r\n [class.c-disabled]=\"formControl.disabled\"\r\n (click)=\"onClick()\">\r\n <div class=\"sd-input-field-wrap\">\r\n <mat-form-field\r\n [class.sd-md]=\"size() === 'md'\"\r\n [class.sd-sm]=\"size() === 'sm'\"\r\n [class.hide-inline-error]=\"_hideInlineError\"\r\n [appearance]=\"_appearance!\"\r\n [floatLabel]=\"floatLabel()\">\r\n @if (_appearance && _label) {\r\n <mat-label class=\"sd-form-field-label\">\r\n <span>{{ _label }}</span>\r\n @if (_helperText) {\r\n <sd-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"below\" name=\"info\"></sd-icon>\r\n }\r\n </mat-label>\r\n }\r\n\r\n <!-- why: B\u1ECE aria-hidden tr\u00EAn ch\u00EDnh <input>. Input v\u1EABn focus \u0111\u01B0\u1EE3c b\u1EB1ng Tab, n\u00EAn\r\n aria-hidden khi\u1EBFn screen reader \u0111\u1ECDc ra\u2026 kh\u00F4ng g\u00EC c\u1EA3 \u2014 t\u1EC7 h\u01A1n l\u00E0 kh\u00F4ng l\u00E0m g\u00EC. -->\r\n <input\r\n [id]=\"id\"\r\n [formControl]=\"activeControl()\"\r\n [type]=\"effectiveType()\"\r\n #control\r\n matInput\r\n [placeholder]=\"placeholder() || _label || ''\"\r\n (keyup.enter)=\"onKeyupEnter()\"\r\n (focus)=\"onFocus()\"\r\n (blur)=\"onBlur()\"\r\n [required]=\"_required\"\r\n [readonly]=\"isReadonly()\"\r\n [autocomplete]=\"id\"\r\n autocorrect=\"off\"\r\n [step]=\"1\"\r\n [attr.inputmode]=\"inputMode()\"\r\n [attr.maxlength]=\"maxDisplayLength()\"\r\n [attr.data-autoId]=\"autoId()\"\r\n [attr.data-disabled]=\"dataDisabled()\"\r\n [attr.data-invalid]=\"dataInvalid()\"\r\n [attr.data-empty]=\"dataEmpty()\"\r\n [attr.data-value]=\"dataValue()\"\r\n [attr.data-required]=\"dataRequired()\"\r\n [attr.data-maxlength]=\"dataMaxLength()\"\r\n [attr.data-minlength]=\"dataMinLength()\"\r\n [attr.data-pattern]=\"dataPattern()\"\r\n [attr.data-error-message]=\"dataErrorMessage()\"\r\n [attr.aria-invalid]=\"_errorMessage ? 'true' : null\"\r\n [attr.aria-describedby]=\"_errorMessage ? errorId : null\"\r\n (compositionstart)=\"onCompositionStart()\"\r\n (compositionend)=\"onCompositionEnd($event)\" />\r\n\r\n @if (_showInlineError) {\r\n <mat-error [id]=\"errorId\">{{ _errorMessage }}</mat-error>\r\n }\r\n\r\n <!-- why: n\u00FAt clear render TR\u01AF\u1EDAC error icon. Clear hover-gated (visibility:hidden) v\u1EABn\r\n chi\u1EBFm ch\u1ED7 trong layout \u2192 n\u1EBFu \u0111\u1EE9ng sau s\u1EBD \u0111\u1EA9y error icon \"t\u1EE5t v\u00E0o trong\". \u0110\u1EE9ng tr\u01B0\u1EDBc\r\n th\u00EC error icon n\u1EB1m s\u00E1t m\u00E9p ph\u1EA3i, clear gi\u1EEF slot v\u00F4 h\u00ECnh b\u00EAn tr\u00E1i. -->\r\n @if (showClear()) {\r\n <button type=\"button\" class=\"sd-clear-btn sd-hover\" matSuffix (click)=\"clear($event)\" title=\"X\u00F3a\" aria-label=\"X\u00F3a\">\r\n <sd-icon name=\"close\"></sd-icon>\r\n </button>\r\n }\r\n\r\n @if (_hideInlineError && _errorMessage) {\r\n <sd-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\" name=\"error\"></sd-icon>\n }\r\n @if (_hideInlineError && _errorMessage) {\r\n <span class=\"sd-visually-hidden\" [id]=\"errorId\" matSuffix>{{ _errorMessage }}</span>\r\r\n }\r\n\r\n @if (sdSuffixDef()?.templateRef; as suffixRef) {\r\n <ng-container matSuffix>\r\n <ng-container *ngTemplateOutlet=\"suffixRef\"></ng-container>\r\n </ng-container>\r\n }\r\n <!-- <ng-container matSuffix>\r\n <ng-content select=\"[sdSuffix]\"></ng-content>\r\n </ng-container> -->\r\n </mat-form-field>\r\n\r\n @if (_maxLength && !_hideInlineError && !formControl.disabled) {\r\n <div\r\n class=\"sd-maxlength-counter\"\r\n [class.sd-maxlength-counter--visible]=\"isFocused\"\r\n [class.sd-maxlength-counter--exceeded]=\"isMaxlengthExceeded()\"\r\n [attr.title]=\"isMaxlengthExceeded() ? ('core.form.input.exceeded' | sdTranslate) : null\">\r\n {{ getCurrentLength() }}/{{ _maxLength }}\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n}\r\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-primary-contrast{color:var(--sd-primary-contrast)!important}.bg-primary-contrast{background:var(--sd-primary-contrast)!important}.border-primary-contrast{border-color:var(--sd-primary-contrast)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-secondary-contrast{color:var(--sd-secondary-contrast)!important}.bg-secondary-contrast{background:var(--sd-secondary-contrast)!important}.border-secondary-contrast{border-color:var(--sd-secondary-contrast)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-info-contrast{color:var(--sd-info-contrast)!important}.bg-info-contrast{background:var(--sd-info-contrast)!important}.border-info-contrast{border-color:var(--sd-info-contrast)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-success-contrast{color:var(--sd-success-contrast)!important}.bg-success-contrast{background:var(--sd-success-contrast)!important}.border-success-contrast{border-color:var(--sd-success-contrast)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-warning-contrast{color:var(--sd-warning-contrast)!important}.bg-warning-contrast{background:var(--sd-warning-contrast)!important}.border-warning-contrast{border-color:var(--sd-warning-contrast)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-error-contrast{color:var(--sd-error-contrast)!important}.bg-error-contrast{background:var(--sd-error-contrast)!important}.border-error-contrast{border-color:var(--sd-error-contrast)!important}.text-surface{color:var(--sd-surface)!important}.bg-surface{background:var(--sd-surface)!important}.border-surface{border-color:var(--sd-surface)!important}.text-surface-muted{color:var(--sd-surface-muted)!important}.bg-surface-muted{background:var(--sd-surface-muted)!important}.border-surface-muted{border-color:var(--sd-surface-muted)!important}.text-text{color:var(--sd-text)!important}.bg-text{background:var(--sd-text)!important}.border-text{border-color:var(--sd-text)!important}.text-text-secondary{color:var(--sd-text-secondary)!important}.bg-text-secondary{background:var(--sd-text-secondary)!important}.border-text-secondary{border-color:var(--sd-text-secondary)!important}.text-text-muted{color:var(--sd-text-muted)!important}.bg-text-muted{background:var(--sd-text-muted)!important}.border-text-muted{border-color:var(--sd-text-muted)!important}.text-border{color:var(--sd-border)!important}.bg-border{background:var(--sd-border)!important}.border-border{border-color:var(--sd-border)!important}.text-border-strong{color:var(--sd-border-strong)!important}.bg-border-strong{background:var(--sd-border-strong)!important}.border-border-strong{border-color:var(--sd-border-strong)!important}.text-disabled-bg{color:var(--sd-disabled-bg)!important}.bg-disabled-bg{background:var(--sd-disabled-bg)!important}.border-disabled-bg{border-color:var(--sd-disabled-bg)!important}.text-disabled-text{color:var(--sd-disabled-text)!important}.bg-disabled-text{background:var(--sd-disabled-text)!important}.border-disabled-text{border-color:var(--sd-disabled-text)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}.text-secondary{color:var(--sd-text-secondary)!important}.text-muted{color:var(--sd-text-muted)!important}.text-body{color:var(--sd-text)!important}.bg-muted{background:var(--sd-surface-muted)!important}:host{display:block}.sd-input-inline{display:inline-flex;align-items:center;gap:4px;max-width:100%}.sd-input-inline__suffix{display:inline-flex;align-items:center;line-height:0}:host(.sd-has-label){padding-top:4px}:host(.sd-viewed){padding-top:0}:host ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-disabled .mat-mdc-text-field-wrapper{background:var(--sd-disabled-bg)}:host ::ng-deep .mat-mdc-form-field input.mat-mdc-input-element:disabled{color:var(--sd-disabled-text)!important}:host ::ng-deep .mat-mdc-form-field .mat-mdc-placeholder-required{color:var(--sd-error)}.sd-input-field-wrap{position:relative;flex:1;min-width:0}.sd-maxlength-counter{position:absolute;right:4px;top:calc(100% - 16px);opacity:0;font-size:10px;line-height:1.1;color:#00000061;pointer-events:none;transition:opacity .12s ease;z-index:1}.sd-maxlength-counter--exceeded{color:var(--sd-error);font-weight:600}:host ::ng-deep .sd-input-container.c-focused .sd-maxlength-counter,:host ::ng-deep .sd-input-container:hover .sd-maxlength-counter,:host ::ng-deep .sd-input-container .sd-maxlength-counter.sd-maxlength-counter--visible{opacity:1}.sd-md:hover .btn-copy{visibility:visible}\n"] }]
697
+ ], template: "@let _label = label();\n@let _appearance = appearance();\n@let _hideInlineError = hideInlineError();\n@let _helperText = helperText();\n@let _maxLength = maxlength();\n@let _errorMessage = visibleErrorMessage();\n@let _required = required();\n@let _isInline = isInline();\n<!-- why: c\u00F9ng M\u1ED8T c\u1ED5ng gate cho c\u1EA3 3 th\u1EE9 \u2014 hi\u1EC7n <mat-error>, b\u1EADt aria-invalid, v\u00E0 tr\u1ECF\n aria-describedby. Tr\u01B0\u1EDBc \u0111\u00E2y message hi\u1EC7n m\u00E0 control kh\u00F4ng h\u1EC1 b\u00E1o invalid, n\u00EAn screen\n reader \u0111\u1ECDc xong \u00F4 nh\u1EADp v\u1EABn kh\u00F4ng bi\u1EBFt l\u00E0 \u0111ang l\u1ED7i. -->\n@let _showInlineError = !_hideInlineError && !!_errorMessage;\n\n@if (isViewed()) {\n <sd-view\n [label]=\"_label\"\n [labelTemplate]=\"sdLabelTemplate()\"\n [value]=\"formControl.value\"\n [display]=\"displayValue()\"\n [hyperlink]=\"hyperlink()\"\n [valueTemplate]=\"viewTemplate()\">\n </sd-view>\n} @else if (_isInline) {\n <!-- why: nh\u00E1nh inline PH\u1EA2I project `sdSuffixDef` gi\u1ED1ng nh\u00E1nh mat-form-field. Tr\u01B0\u1EDBc \u0111\u00E2y ch\u1EC9\n <sd-inline-text> \u0111\u01B0\u1EE3c render, n\u00EAn <sd-input-color viewed=\"'inline'\"> m\u1EA5t lu\u00F4n swatch v\u00E0\n <input type=\"color\"> \u1EA9n \u2014 openPicker() g\u1ECDi \u0111\u01B0\u1EE3c nh\u01B0ng kh\u00F4ng c\u00F3 element n\u00E0o \u0111\u1EC3 click, t\u1EE9c\n l\u00E0 no-op c\u00E2m. <sd-inline-text> l\u00E0 inline-flex t\u1EF1 hug n\u1ED9i dung n\u00EAn ch\u1EC9 c\u1EA7n m\u1ED9t h\u00E0ng flex. -->\n <div class=\"sd-input-inline\">\n <sd-inline-text\n [control]=\"activeControl()\"\n [placeholder]=\"placeholder() || _label || ''\"\n [clearable]=\"clearable() && !_required\"\n [autoId]=\"autoId()\"\n [state]=\"connectorState().invalid ? 'error' : 'auto'\"\n (sdFocus)=\"onFocus()\"\n (sdBlur)=\"onBlur()\"\n (keyupEnter)=\"onKeyupEnter()\"\n (cleared)=\"cleared.emit()\">\n </sd-inline-text>\n\n @if (sdSuffixDef()?.templateRef; as suffixRef) {\n <span class=\"sd-input-inline__suffix\">\n <ng-container *ngTemplateOutlet=\"suffixRef\"></ng-container>\n </span>\n }\n </div>\n} @else {\n @if (!_appearance) {\n <ng-content select=\"[sdLabel]\">\n @if (_label) {\n <sd-label [label]=\"_label\" [required]=\"_required\"></sd-label>\n }\n </ng-content>\n }\n\n <!-- why: div n\u00E0y CH\u1EC8 l\u00E0 h\u1ED9p layout. N\u00F3 t\u1EEBng mang aria-hidden=\"true\" \u0111\u1EC3 d\u1EADp c\u1EA3nh b\u00E1o lint \u2014\n v\u00E0 aria-hidden \u1EA9n C\u1EA2 c\u00E2y con, n\u00EAn label, <input>, <mat-error> l\u1EABn n\u00FAt clear bi\u1EBFn m\u1EA5t\n kh\u1ECFi accessibility tree c\u00F9ng l\u00FAc. role=\"presentation\" ch\u1EC9 v\u00F4 hi\u1EC7u ho\u00E1 ch\u00EDnh div (KH\u00D4NG\n lan xu\u1ED1ng con), c\u00F2n (click) ch\u1EC9 l\u00E0 ti\u1EC7n \u00EDch chu\u1ED9t: b\u00E0n ph\u00EDm Tab th\u1EB3ng v\u00E0o <input> v\u00E0\n nh\u1EADn \u0111\u00FAng k\u1EBFt qu\u1EA3 \u0111\u00F3, n\u00EAn kh\u00F4ng c\u1EA7n th\u00EAm key handler. -->\n <div\n class=\"d-flex align-items-center sd-input-container\"\n role=\"presentation\"\n [class.c-focused]=\"isFocused\"\n [class.c-disabled]=\"formControl.disabled\"\n (click)=\"onClick()\">\n <div class=\"sd-input-field-wrap\">\n <mat-form-field\n [class.sd-md]=\"size() === 'md'\"\n [class.sd-sm]=\"size() === 'sm'\"\n [class.hide-inline-error]=\"_hideInlineError\"\n [appearance]=\"_appearance!\"\n [floatLabel]=\"floatLabel()\">\n @if (_appearance && _label) {\n <mat-label class=\"sd-form-field-label\">\n <span>{{ _label }}</span>\n @if (_helperText) {\n <sd-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"below\" name=\"info\"></sd-icon>\n }\n </mat-label>\n }\n\n <!-- why: B\u1ECE aria-hidden tr\u00EAn ch\u00EDnh <input>. Input v\u1EABn focus \u0111\u01B0\u1EE3c b\u1EB1ng Tab, n\u00EAn\n aria-hidden khi\u1EBFn screen reader \u0111\u1ECDc ra\u2026 kh\u00F4ng g\u00EC c\u1EA3 \u2014 t\u1EC7 h\u01A1n l\u00E0 kh\u00F4ng l\u00E0m g\u00EC. -->\n <input\n [id]=\"id\"\n [formControl]=\"activeControl()\"\n [type]=\"effectiveType()\"\n #control\n matInput\n [placeholder]=\"placeholder() || _label || ''\"\n (keyup.enter)=\"onKeyupEnter()\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [required]=\"_required\"\n [readonly]=\"isReadonly()\"\n [autocomplete]=\"id\"\n autocorrect=\"off\"\n [step]=\"1\"\n [attr.inputmode]=\"inputMode()\"\n [attr.maxlength]=\"maxDisplayLength()\"\n [attr.data-autoId]=\"autoId()\"\n [attr.data-disabled]=\"dataDisabled()\"\n [attr.data-invalid]=\"dataInvalid()\"\n [attr.data-empty]=\"dataEmpty()\"\n [attr.data-value]=\"dataValue()\"\n [attr.data-required]=\"dataRequired()\"\n [attr.data-maxlength]=\"dataMaxLength()\"\n [attr.data-minlength]=\"dataMinLength()\"\n [attr.data-pattern]=\"dataPattern()\"\n [attr.data-error-message]=\"dataErrorMessage()\"\n [attr.aria-invalid]=\"_errorMessage ? 'true' : null\"\n [attr.aria-describedby]=\"_errorMessage ? errorId : null\"\n (compositionstart)=\"onCompositionStart()\"\n (compositionend)=\"onCompositionEnd($event)\" />\n\n @if (_showInlineError) {\n <mat-error [id]=\"errorId\">{{ _errorMessage }}</mat-error>\n }\n\n <!-- why: n\u00FAt clear render TR\u01AF\u1EDAC error icon. Clear hover-gated (visibility:hidden) v\u1EABn\n chi\u1EBFm ch\u1ED7 trong layout \u2192 n\u1EBFu \u0111\u1EE9ng sau s\u1EBD \u0111\u1EA9y error icon \"t\u1EE5t v\u00E0o trong\". \u0110\u1EE9ng tr\u01B0\u1EDBc\n th\u00EC error icon n\u1EB1m s\u00E1t m\u00E9p ph\u1EA3i, clear gi\u1EEF slot v\u00F4 h\u00ECnh b\u00EAn tr\u00E1i. -->\n @if (showClear()) {\n <button type=\"button\" class=\"sd-clear-btn sd-hover\" matSuffix (click)=\"clear($event)\" title=\"X\u00F3a\" aria-label=\"X\u00F3a\">\n <sd-icon name=\"close\"></sd-icon>\n </button>\n }\n\n @if (_hideInlineError && _errorMessage) {\n <sd-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\" name=\"error\"></sd-icon>\n }\n @if (_hideInlineError && _errorMessage) {\n <span class=\"sd-visually-hidden\" [id]=\"errorId\" matSuffix>{{ _errorMessage }}</span>\n\n }\n\n @if (sdSuffixDef()?.templateRef; as suffixRef) {\n <ng-container matSuffix>\n <ng-container *ngTemplateOutlet=\"suffixRef\"></ng-container>\n </ng-container>\n }\n <!-- <ng-container matSuffix>\n <ng-content select=\"[sdSuffix]\"></ng-content>\n </ng-container> -->\n </mat-form-field>\n\n @if (_maxLength && !_hideInlineError && !formControl.disabled) {\n <div\n class=\"sd-maxlength-counter\"\n [class.sd-maxlength-counter--visible]=\"isFocused\"\n [class.sd-maxlength-counter--exceeded]=\"isMaxlengthExceeded()\"\n [attr.title]=\"isMaxlengthExceeded() ? ('core.form.input.exceeded' | sdTranslate) : null\">\n {{ getCurrentLength() }}/{{ _maxLength }}\n </div>\n }\n </div>\n </div>\n}\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-primary-contrast{color:var(--sd-primary-contrast)!important}.bg-primary-contrast{background:var(--sd-primary-contrast)!important}.border-primary-contrast{border-color:var(--sd-primary-contrast)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-secondary-contrast{color:var(--sd-secondary-contrast)!important}.bg-secondary-contrast{background:var(--sd-secondary-contrast)!important}.border-secondary-contrast{border-color:var(--sd-secondary-contrast)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-info-contrast{color:var(--sd-info-contrast)!important}.bg-info-contrast{background:var(--sd-info-contrast)!important}.border-info-contrast{border-color:var(--sd-info-contrast)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-success-contrast{color:var(--sd-success-contrast)!important}.bg-success-contrast{background:var(--sd-success-contrast)!important}.border-success-contrast{border-color:var(--sd-success-contrast)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-warning-contrast{color:var(--sd-warning-contrast)!important}.bg-warning-contrast{background:var(--sd-warning-contrast)!important}.border-warning-contrast{border-color:var(--sd-warning-contrast)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-error-contrast{color:var(--sd-error-contrast)!important}.bg-error-contrast{background:var(--sd-error-contrast)!important}.border-error-contrast{border-color:var(--sd-error-contrast)!important}.text-surface{color:var(--sd-surface)!important}.bg-surface{background:var(--sd-surface)!important}.border-surface{border-color:var(--sd-surface)!important}.text-surface-muted{color:var(--sd-surface-muted)!important}.bg-surface-muted{background:var(--sd-surface-muted)!important}.border-surface-muted{border-color:var(--sd-surface-muted)!important}.text-text{color:var(--sd-text)!important}.bg-text{background:var(--sd-text)!important}.border-text{border-color:var(--sd-text)!important}.text-text-secondary{color:var(--sd-text-secondary)!important}.bg-text-secondary{background:var(--sd-text-secondary)!important}.border-text-secondary{border-color:var(--sd-text-secondary)!important}.text-text-muted{color:var(--sd-text-muted)!important}.bg-text-muted{background:var(--sd-text-muted)!important}.border-text-muted{border-color:var(--sd-text-muted)!important}.text-border{color:var(--sd-border)!important}.bg-border{background:var(--sd-border)!important}.border-border{border-color:var(--sd-border)!important}.text-border-strong{color:var(--sd-border-strong)!important}.bg-border-strong{background:var(--sd-border-strong)!important}.border-border-strong{border-color:var(--sd-border-strong)!important}.text-disabled-bg{color:var(--sd-disabled-bg)!important}.bg-disabled-bg{background:var(--sd-disabled-bg)!important}.border-disabled-bg{border-color:var(--sd-disabled-bg)!important}.text-disabled-text{color:var(--sd-disabled-text)!important}.bg-disabled-text{background:var(--sd-disabled-text)!important}.border-disabled-text{border-color:var(--sd-disabled-text)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}.text-secondary{color:var(--sd-text-secondary)!important}.text-muted{color:var(--sd-text-muted)!important}.text-body{color:var(--sd-text)!important}.bg-muted{background:var(--sd-surface-muted)!important}:host{display:block}.sd-input-inline{display:inline-flex;align-items:center;gap:4px;max-width:100%}.sd-input-inline__suffix{display:inline-flex;align-items:center;line-height:0}:host(.sd-has-label){padding-top:4px}:host(.sd-viewed){padding-top:0}:host ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-disabled .mat-mdc-text-field-wrapper{background:var(--sd-disabled-bg)}:host ::ng-deep .mat-mdc-form-field input.mat-mdc-input-element:disabled{color:var(--sd-disabled-text)!important}:host ::ng-deep .mat-mdc-form-field .mat-mdc-placeholder-required{color:var(--sd-error)}.sd-input-field-wrap{position:relative;flex:1;min-width:0}.sd-maxlength-counter{position:absolute;right:4px;top:calc(100% - 16px);opacity:0;font-size:10px;line-height:1.1;color:#00000061;pointer-events:none;transition:opacity .12s ease;z-index:1}.sd-maxlength-counter--exceeded{color:var(--sd-error);font-weight:600}:host ::ng-deep .sd-input-container.c-focused .sd-maxlength-counter,:host ::ng-deep .sd-input-container:hover .sd-maxlength-counter,:host ::ng-deep .sd-input-container .sd-maxlength-counter.sd-maxlength-counter--visible{opacity:1}.sd-md:hover .btn-copy{visibility:visible}\n"] }]
653
698
  }], ctorParameters: () => [], propDecorators: { control: [{ type: i0.ViewChild, args: ['control', { isSignal: true }] }], inlineRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdInlineText), { isSignal: true }] }], sdLabelTemplate: [{ type: i0.ContentChild, args: ['sdLabel', { isSignal: true }] }], sdValueTemplate: [{ type: i0.ContentChild, args: ['sdValue', { isSignal: true }] }], sdSuffixDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdSuffixDefDirective), { isSignal: true }] }], sdViewDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdViewDefDirective), { isSignal: true }] }], autoIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], appearanceInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: false }] }], hideInlineError: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideInlineError", required: false }] }], blurOnEnter: [{ type: i0.Input, args: [{ isSignal: true, alias: "blurOnEnter", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], viewed: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewed", required: false }] }], minlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minlength", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], patternErrorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "patternErrorMessage", required: false }] }], validator: [{ type: i0.Input, args: [{ isSignal: true, alias: "validator", required: false }] }], inlineError: [{ type: i0.Input, args: [{ isSignal: true, alias: "inlineError", required: false }] }], hyperlink: [{ type: i0.Input, args: [{ isSignal: true, alias: "hyperlink", required: false }] }], valueModel: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }, { type: i0.Output, args: ["modelChange"] }], sdChange: [{ type: i0.Output, args: ["sdChange"] }], sdFocus: [{ type: i0.Output, args: ["sdFocus"] }], sdBlur: [{ type: i0.Output, args: ["sdBlur"] }], keyupEnter: [{ type: i0.Output, args: ["keyupEnter"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], sdFocusForceBlur: [{
654
699
  type: Output
655
700
  }] } });