ngx-t-forms 3.1.1 → 3.1.3

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 (115) hide show
  1. package/fesm2022/{ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs → ngx-t-forms-api-endpoint-config.component-BAWiavFB.mjs} +15 -13
  2. package/fesm2022/ngx-t-forms-api-endpoint-config.component-BAWiavFB.mjs.map +1 -0
  3. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs → ngx-t-forms-auto-complete-input-element.component-Cph2QuN3.mjs} +2 -2
  4. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs.map → ngx-t-forms-auto-complete-input-element.component-Cph2QuN3.mjs.map} +1 -1
  5. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs → ngx-t-forms-basic-input-input-element.component-o6l7xW3J.mjs} +3 -3
  6. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs.map → ngx-t-forms-basic-input-input-element.component-o6l7xW3J.mjs.map} +1 -1
  7. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs → ngx-t-forms-calculated-field-rules.component-CZ5c7fRi.mjs} +2 -2
  8. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs.map → ngx-t-forms-calculated-field-rules.component-CZ5c7fRi.mjs.map} +1 -1
  9. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs → ngx-t-forms-chip-options-creator-editor.component-aNd2SXIA.mjs} +2 -2
  10. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs.map → ngx-t-forms-chip-options-creator-editor.component-aNd2SXIA.mjs.map} +1 -1
  11. package/fesm2022/{ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs → ngx-t-forms-conditional-display-config.component-yJ5IORsS.mjs} +2 -2
  12. package/fesm2022/{ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs.map → ngx-t-forms-conditional-display-config.component-yJ5IORsS.mjs.map} +1 -1
  13. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-B2U7LSRf.mjs} +2 -2
  14. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-B2U7LSRf.mjs.map} +1 -1
  15. package/fesm2022/{ngx-t-forms-data-source-picker.component-CN51SdCK.mjs → ngx-t-forms-data-source-picker.component-Bd1wm12Q.mjs} +6 -6
  16. package/fesm2022/{ngx-t-forms-data-source-picker.component-CN51SdCK.mjs.map → ngx-t-forms-data-source-picker.component-Bd1wm12Q.mjs.map} +1 -1
  17. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs → ngx-t-forms-date-picker-input-element.component-BduBmu9K.mjs} +2 -2
  18. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs.map → ngx-t-forms-date-picker-input-element.component-BduBmu9K.mjs.map} +1 -1
  19. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs → ngx-t-forms-date-range-picker-input-element.component-CATduVDL.mjs} +2 -2
  20. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs.map → ngx-t-forms-date-range-picker-input-element.component-CATduVDL.mjs.map} +1 -1
  21. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs → ngx-t-forms-document-list-label-config-editor.component-BU0QJYNH.mjs} +3 -3
  22. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs.map → ngx-t-forms-document-list-label-config-editor.component-BU0QJYNH.mjs.map} +1 -1
  23. package/fesm2022/{ngx-t-forms-document-picker.component-9clYsOcl.mjs → ngx-t-forms-document-picker.component-3mqXc4s6.mjs} +2 -2
  24. package/fesm2022/{ngx-t-forms-document-picker.component-9clYsOcl.mjs.map → ngx-t-forms-document-picker.component-3mqXc4s6.mjs.map} +1 -1
  25. package/fesm2022/{ngx-t-forms-editor-js-input.component-02HnmInT.mjs → ngx-t-forms-editor-input-element.component-D_SjJtw9.mjs} +46 -191
  26. package/fesm2022/ngx-t-forms-editor-input-element.component-D_SjJtw9.mjs.map +1 -0
  27. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs → ngx-t-forms-file-upload-input-element.component-DZuAYjpr.mjs} +2 -2
  28. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs.map → ngx-t-forms-file-upload-input-element.component-DZuAYjpr.mjs.map} +1 -1
  29. package/fesm2022/{ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs → ngx-t-forms-form-input-selector.component-B6FoYGy5.mjs} +2 -3
  30. package/fesm2022/{ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs.map → ngx-t-forms-form-input-selector.component-B6FoYGy5.mjs.map} +1 -1
  31. package/fesm2022/{ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs → ngx-t-forms-form-json-view.component-DsEizrc-.mjs} +2 -2
  32. package/fesm2022/{ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs.map → ngx-t-forms-form-json-view.component-DsEizrc-.mjs.map} +1 -1
  33. package/fesm2022/{ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs → ngx-t-forms-form-section-stepper.component-ZJDWyxa7.mjs} +4 -4
  34. package/fesm2022/{ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs.map → ngx-t-forms-form-section-stepper.component-ZJDWyxa7.mjs.map} +1 -1
  35. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs → ngx-t-forms-forms-builder-menu.component-oVpP2Jgt.mjs} +4 -4
  36. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs.map → ngx-t-forms-forms-builder-menu.component-oVpP2Jgt.mjs.map} +1 -1
  37. package/fesm2022/{ngx-t-forms-geo-location.component-D-BhLdx6.mjs → ngx-t-forms-geo-location.component-Cml0Do4m.mjs} +2 -2
  38. package/fesm2022/{ngx-t-forms-geo-location.component-D-BhLdx6.mjs.map → ngx-t-forms-geo-location.component-Cml0Do4m.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-header-template-editor.component-Z5frEhho.mjs → ngx-t-forms-header-template-editor.component-NRiXTnwH.mjs} +2 -3
  40. package/fesm2022/{ngx-t-forms-header-template-editor.component-Z5frEhho.mjs.map → ngx-t-forms-header-template-editor.component-NRiXTnwH.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs → ngx-t-forms-image-capture-input-element.component-IFval472.mjs} +2 -2
  42. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs.map → ngx-t-forms-image-capture-input-element.component-IFval472.mjs.map} +1 -1
  43. package/fesm2022/ngx-t-forms-index-Cl4VG3Vd.mjs +2 -0
  44. package/fesm2022/ngx-t-forms-index-Cl4VG3Vd.mjs.map +1 -0
  45. package/fesm2022/{ngx-t-forms-input-custom.component-s1ryJQy4.mjs → ngx-t-forms-input-custom.component-q8jPq7KI.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-input-custom.component-s1ryJQy4.mjs.map → ngx-t-forms-input-custom.component-q8jPq7KI.mjs.map} +1 -1
  47. package/fesm2022/{ngx-t-forms-input-editor.component-oIzCTmbx.mjs → ngx-t-forms-input-editor.component-zL4cp2gq.mjs} +3 -4
  48. package/fesm2022/{ngx-t-forms-input-editor.component-oIzCTmbx.mjs.map → ngx-t-forms-input-editor.component-zL4cp2gq.mjs.map} +1 -1
  49. package/fesm2022/{ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs → ngx-t-forms-map-mat-options-keys-0tNskyLE.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs.map → ngx-t-forms-map-mat-options-keys-0tNskyLE.mjs.map} +1 -1
  51. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs → ngx-t-forms-mat-chip-list-editor.component-CGMhUIuc.mjs} +2 -2
  52. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs.map → ngx-t-forms-mat-chip-list-editor.component-CGMhUIuc.mjs.map} +1 -1
  53. package/fesm2022/{ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs → ngx-t-forms-missing-form-configs.component-BXiXHKG_.mjs} +2 -2
  54. package/fesm2022/{ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs.map → ngx-t-forms-missing-form-configs.component-BXiXHKG_.mjs.map} +1 -1
  55. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs → ngx-t-forms-mscoa-chart-toolbar.component-BVtVrTn1.mjs} +2 -2
  56. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-BVtVrTn1.mjs.map} +1 -1
  57. package/fesm2022/ngx-t-forms-mscoa-config.component-CmIR92zj.mjs +594 -0
  58. package/fesm2022/ngx-t-forms-mscoa-config.component-CmIR92zj.mjs.map +1 -0
  59. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs → ngx-t-forms-mscoa-segment-config.component-CVTRW43v.mjs} +2 -2
  60. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs.map → ngx-t-forms-mscoa-segment-config.component-CVTRW43v.mjs.map} +1 -1
  61. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs → ngx-t-forms-multiple-input-input-element.component-CUgTJJRW.mjs} +34 -30
  62. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CUgTJJRW.mjs.map +1 -0
  63. package/fesm2022/{ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs → ngx-t-forms-ngx-t-forms-BA1CoCl_.mjs} +1079 -67
  64. package/fesm2022/ngx-t-forms-ngx-t-forms-BA1CoCl_.mjs.map +1 -0
  65. package/fesm2022/{ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs → ngx-t-forms-paginated-selection-table-CdEJa3FZ.mjs} +2 -2
  66. package/fesm2022/{ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs.map → ngx-t-forms-paginated-selection-table-CdEJa3FZ.mjs.map} +1 -1
  67. package/fesm2022/{ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs → ngx-t-forms-payload-template-editor.component-CZoqYRKK.mjs} +2 -3
  68. package/fesm2022/{ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs.map → ngx-t-forms-payload-template-editor.component-CZoqYRKK.mjs.map} +1 -1
  69. package/fesm2022/{ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs → ngx-t-forms-pipeline-generator.component-LbAmKWNG.mjs} +2 -2
  70. package/fesm2022/{ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs.map → ngx-t-forms-pipeline-generator.component-LbAmKWNG.mjs.map} +1 -1
  71. package/fesm2022/ngx-t-forms-quill-input.component-CKYNVDDV.mjs +731 -0
  72. package/fesm2022/ngx-t-forms-quill-input.component-CKYNVDDV.mjs.map +1 -0
  73. package/fesm2022/{ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs → ngx-t-forms-record-list-manager.component-BNdEvWsZ.mjs} +2 -2
  74. package/fesm2022/{ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs.map → ngx-t-forms-record-list-manager.component-BNdEvWsZ.mjs.map} +1 -1
  75. package/fesm2022/{ngx-t-forms-required-inputs.component-CK7NIhbq.mjs → ngx-t-forms-required-inputs.component-D_cQIScV.mjs} +2 -3
  76. package/fesm2022/{ngx-t-forms-required-inputs.component-CK7NIhbq.mjs.map → ngx-t-forms-required-inputs.component-D_cQIScV.mjs.map} +1 -1
  77. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs → ngx-t-forms-rest-api-call-setup.component-BhQmOVHN.mjs} +150 -3
  78. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BhQmOVHN.mjs.map +1 -0
  79. package/fesm2022/{ngx-t-forms-section-report.component-DhSaf85h.mjs → ngx-t-forms-section-report.component-m2Z6qA3j.mjs} +2 -2
  80. package/fesm2022/{ngx-t-forms-section-report.component-DhSaf85h.mjs.map → ngx-t-forms-section-report.component-m2Z6qA3j.mjs.map} +1 -1
  81. package/fesm2022/{ngx-t-forms-select-input-element.component-D5HFzh35.mjs → ngx-t-forms-select-input-element.component-DH5knOzd.mjs} +2 -2
  82. package/fesm2022/{ngx-t-forms-select-input-element.component-D5HFzh35.mjs.map → ngx-t-forms-select-input-element.component-DH5knOzd.mjs.map} +1 -1
  83. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs → ngx-t-forms-selection-options-editor.component-UBt2kiPk.mjs} +2 -2
  84. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs.map → ngx-t-forms-selection-options-editor.component-UBt2kiPk.mjs.map} +1 -1
  85. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs → ngx-t-forms-textarea-input-element.component-B9JLzhTh.mjs} +2 -2
  86. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs.map → ngx-t-forms-textarea-input-element.component-B9JLzhTh.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs → ngx-t-forms-toggle-input-element.component-B9_03RoG.mjs} +2 -2
  88. package/fesm2022/{ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs.map → ngx-t-forms-toggle-input-element.component-B9_03RoG.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-token-binding-menu.component-CLpjkUnf.mjs +109 -0
  90. package/fesm2022/ngx-t-forms-token-binding-menu.component-CLpjkUnf.mjs.map +1 -0
  91. package/fesm2022/ngx-t-forms-token-text-input.component-BQADsnFn.mjs +296 -0
  92. package/fesm2022/ngx-t-forms-token-text-input.component-BQADsnFn.mjs.map +1 -0
  93. package/fesm2022/{ngx-t-forms-validators-config.component-0_Y6bvtE.mjs → ngx-t-forms-validators-config.component-qO6Y4x1v.mjs} +2 -2
  94. package/fesm2022/{ngx-t-forms-validators-config.component-0_Y6bvtE.mjs.map → ngx-t-forms-validators-config.component-qO6Y4x1v.mjs.map} +1 -1
  95. package/fesm2022/ngx-t-forms-workflow-adjudication.component-SUbSx79R.mjs +2096 -0
  96. package/fesm2022/ngx-t-forms-workflow-adjudication.component-SUbSx79R.mjs.map +1 -0
  97. package/fesm2022/ngx-t-forms.mjs +1 -1
  98. package/package.json +2 -2
  99. package/styles/_tokens.scss +6 -0
  100. package/types/ngx-t-forms.d.ts +53 -1
  101. package/fesm2022/ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs.map +0 -1
  102. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs +0 -417
  103. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs.map +0 -1
  104. package/fesm2022/ngx-t-forms-editor-js-input.component-02HnmInT.mjs.map +0 -1
  105. package/fesm2022/ngx-t-forms-getInputIcon-B4ADgevZ.mjs +0 -31
  106. package/fesm2022/ngx-t-forms-getInputIcon-B4ADgevZ.mjs.map +0 -1
  107. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs +0 -2
  108. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs.map +0 -1
  109. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs.map +0 -1
  110. package/fesm2022/ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs.map +0 -1
  111. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs.map +0 -1
  112. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs +0 -173
  113. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs.map +0 -1
  114. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs +0 -1303
  115. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs.map +0 -1
@@ -0,0 +1,296 @@
1
+ import * as i0 from '@angular/core';
2
+ import { signal, output, viewChild, computed, forwardRef, Input, Optional, Self, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { MatFormFieldControl } from '@angular/material/form-field';
4
+ import * as i2 from '@angular/material/input';
5
+ import { MatInputModule } from '@angular/material/input';
6
+ import { B as BaseCustomInput } from './ngx-t-forms-ngx-t-forms-BA1CoCl_.mjs';
7
+ import { T as TokenBindingMenuComponent } from './ngx-t-forms-token-binding-menu.component-CLpjkUnf.mjs';
8
+ import * as i1 from '@angular/forms';
9
+
10
+ const tokenTextInputConfig = {
11
+ controlType: 'lib-token-text-input',
12
+ nextId: 0,
13
+ };
14
+ /**
15
+ * Single-line text with the `$`-trigger token picker.
16
+ *
17
+ * WHY THIS EXISTS
18
+ * ---------------
19
+ * The `$` gesture — type `$`, pick a field, get its `{{token}}` inserted — was
20
+ * only ever implemented inside {@link JsonEditorComponent}, welded to a JSON
21
+ * textarea with syntax highlighting and a caret-offset model. Every consumer of
22
+ * it (the payload, header and query template editors) authors JSON.
23
+ *
24
+ * An email subject is plain text, and `ElementEditorTypes.Input` renders a bare
25
+ * `matInput` with no picker at all — so an element carrying the hint "Press $ to
26
+ * insert a document value" silently promised something that could not happen.
27
+ * This is the same gesture over a plain string.
28
+ *
29
+ * WHY IT IS A `MatFormFieldControl`
30
+ * ---------------------------------
31
+ * `t-dynamic-data-edit` renders every editor that IS one inside a shared
32
+ * `<mat-form-field>` (the label, outline, hint and error row all come from
33
+ * there) and everything else outside it. A plain `<input matInput>` sitting in
34
+ * THIS component's view is not *content* of that field, so Material cannot see
35
+ * it and throws `mat-form-field must contain a MatFormFieldControl` — the field
36
+ * then fails to render at all. Registering as the control, exactly as
37
+ * `InputCustomComponent` and `QuillInputComponent` do, is what makes the field
38
+ * appear.
39
+ *
40
+ * WHAT IS SHARED, AND WHAT IS NOT
41
+ * -------------------------------
42
+ * The option list itself is {@link TokenBindingMenuComponent}, shared with
43
+ * `QuillInputComponent` so the gesture looks and behaves identically wherever
44
+ * it appears. The binding data is shared too — {@link EditorBinding} plus the
45
+ * derivation in `_shared/field-bindings.ts` — so every editor offers the same
46
+ * fields under the same labels and inserts the same spelling.
47
+ *
48
+ * The CARET handling is not shared and should not be: a text input addresses
49
+ * `selectionStart` on a string, Quill addresses an index into a Delta, and the
50
+ * JSON editor tracks an offset into a highlighted backdrop. Those three have
51
+ * nothing in common beyond "find the `$` before the cursor", so each host owns
52
+ * its own few lines rather than an abstraction that fits none of them.
53
+ */
54
+ class TokenTextInputComponent extends BaseCustomInput {
55
+ /**
56
+ * Insertable bindings for the `$` menu. When empty the menu never opens.
57
+ *
58
+ * A classic `@Input` rather than a signal input, mirroring
59
+ * `InputCustomComponent.inputConfig`: the base class exposes
60
+ * `value`/`required`/`disabled`/`placeholder` as setter-backed `@Input`s tied
61
+ * to `stateChanges`, and mixing the two styles on one component is the trap
62
+ * that comment warns about. The setter feeds a signal so `filtered` can stay a
63
+ * `computed`.
64
+ */
65
+ set bindings(value) {
66
+ this.#bindings.set(value ?? []);
67
+ }
68
+ get bindings() {
69
+ return this.#bindings();
70
+ }
71
+ #bindings;
72
+ /**
73
+ * Current text, tokens included.
74
+ *
75
+ * Re-declared as an `@Input` because `BaseCustomInput.value` is a plain
76
+ * accessor, not an input — a subclass that wants `[value]` bound has to say
77
+ * so. `QuillInputComponent` does exactly this for the same reason.
78
+ */
79
+ set value(next) {
80
+ super.value = next;
81
+ // The @Input path never calls writeValue, so the DOM is synced here too.
82
+ // Guarded, so the echo of the author's own keystrokes is a no-op.
83
+ this.syncInputFromModel();
84
+ }
85
+ get value() {
86
+ return super.value;
87
+ }
88
+ /**
89
+ * Characters that keep the menu open after a dollar trigger.
90
+ *
91
+ * WIDER than the JSON editor's word-chars-only filter on purpose: this menu
92
+ * also offers server-resolved namespace tokens whose ids contain dots
93
+ * (`$doc.reference`), and form-control ids may carry hyphens — the original
94
+ * pattern CLOSED the menu the moment either was typed. Punctuation outside
95
+ * this set still reads as a literal dollar (a currency amount) and dismisses
96
+ * the menu.
97
+ */
98
+ static { this.FILTER_PATTERN = /^[a-zA-Z0-9_.\s-]*$/; }
99
+ constructor(ngControl, elementRef) {
100
+ super(ngControl, elementRef, tokenTextInputConfig);
101
+ this.#bindings = signal([], ...(ngDevMode ? [{ debugName: "#bindings" }] : /* istanbul ignore next */ []));
102
+ /** Emitted on every keystroke and on insertion. */
103
+ this.valueChange = output();
104
+ // The native input is left uncontrolled while the user types. Binding the
105
+ // (debounced, therefore lagging) model to `[value]` makes Angular overwrite the
106
+ // DOM mid-keystroke and drop characters — the same reasoning, and the same
107
+ // remedy, as `InputCustomComponent`. TS `private`, not ES `#private`: Angular
108
+ // signal queries cannot sit on an ES-private field.
109
+ this.inputEl = viewChild('inputEl', ...(ngDevMode ? [{ debugName: "inputEl" }] : /* istanbul ignore next */ []));
110
+ /** Whether the `$` menu is open. */
111
+ this.menuOpen = signal(false, ...(ngDevMode ? [{ debugName: "menuOpen" }] : /* istanbul ignore next */ []));
112
+ /** Text typed after the `$` that opened the menu. */
113
+ this.filter = signal('', ...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
114
+ /** Index of the highlighted option. */
115
+ this.activeIndex = signal(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
116
+ /**
117
+ * Viewport position of the menu.
118
+ *
119
+ * Fixed positioning, not absolute: the menu lives inside a `<mat-form-field>`,
120
+ * whose infix and subscript wrappers clip an absolutely-positioned child, so
121
+ * the list would be cut off after a row or two.
122
+ */
123
+ this.anchor = signal(null, ...(ngDevMode ? [{ debugName: "anchor" }] : /* istanbul ignore next */ []));
124
+ /** Bindings matching the active filter, capped so the list stays usable. */
125
+ this.filtered = computed(() => {
126
+ const term = this.filter().trim().toLowerCase();
127
+ const all = this.#bindings();
128
+ if (!term) {
129
+ return all.slice(0, 50);
130
+ }
131
+ return all
132
+ .filter((binding) => `${binding.searchText ?? ''} ${binding.label}`.toLowerCase().includes(term))
133
+ .slice(0, 50);
134
+ }, ...(ngDevMode ? [{ debugName: "filtered" }] : /* istanbul ignore next */ []));
135
+ }
136
+ get empty() {
137
+ const current = this.value;
138
+ return current === null || current === undefined || current === '';
139
+ }
140
+ get shouldLabelFloat() {
141
+ return true;
142
+ }
143
+ ngAfterViewInit() {
144
+ // Reflect any value the form set before the view existed.
145
+ this.syncInputFromModel();
146
+ }
147
+ writeValue(value) {
148
+ super.writeValue(value);
149
+ // External model change (patchValue / reset). Never fires in response to the
150
+ // user's own typing, so it cannot clobber the caret.
151
+ this.syncInputFromModel();
152
+ }
153
+ /** Re-emits on every keystroke and decides whether the `$` menu should be open. */
154
+ onInput() {
155
+ const element = this.inputEl()?.nativeElement;
156
+ if (!element) {
157
+ return;
158
+ }
159
+ super.value = element.value;
160
+ this.valueChange.emit(element.value);
161
+ this.syncMenu(element);
162
+ }
163
+ /**
164
+ * Keyboard handling while the menu is open: navigate, accept, dismiss.
165
+ *
166
+ * Returns early when the menu is closed so ordinary typing — including Enter
167
+ * inside a form — is untouched.
168
+ */
169
+ onKeydown(event) {
170
+ if (!this.menuOpen()) {
171
+ return;
172
+ }
173
+ const options = this.filtered();
174
+ if (event.key === 'Escape') {
175
+ this.menuOpen.set(false);
176
+ event.stopPropagation();
177
+ event.preventDefault();
178
+ return;
179
+ }
180
+ if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
181
+ if (options.length > 0) {
182
+ const step = event.key === 'ArrowDown' ? 1 : -1;
183
+ this.activeIndex.set((this.activeIndex() + step + options.length) % options.length);
184
+ }
185
+ event.preventDefault();
186
+ return;
187
+ }
188
+ if (event.key === 'Enter' || event.key === 'Tab') {
189
+ const chosen = options[this.activeIndex()];
190
+ if (chosen) {
191
+ this.insert(chosen);
192
+ event.preventDefault();
193
+ }
194
+ }
195
+ }
196
+ /** Closing is deferred so a click on an option still registers before blur. */
197
+ onBlur($event) {
198
+ this.touched = true;
199
+ this.onTouched();
200
+ this.blur.emit($event);
201
+ setTimeout(() => this.menuOpen.set(false), 150);
202
+ }
203
+ /**
204
+ * Replaces the `$filter` run at the caret with the binding's token.
205
+ *
206
+ * @param binding - The chosen menu entry.
207
+ */
208
+ insert(binding) {
209
+ const element = this.inputEl()?.nativeElement;
210
+ if (!element) {
211
+ return;
212
+ }
213
+ const caret = element.selectionStart ?? element.value.length;
214
+ const dollar = element.value.lastIndexOf('$', Math.max(0, caret - 1));
215
+ if (dollar < 0) {
216
+ this.menuOpen.set(false);
217
+ return;
218
+ }
219
+ const next = element.value.slice(0, dollar) + binding.insert + element.value.slice(caret);
220
+ element.value = next;
221
+ const cursor = dollar + binding.insert.length;
222
+ element.setSelectionRange(cursor, cursor);
223
+ this.menuOpen.set(false);
224
+ this.filter.set('');
225
+ super.value = next;
226
+ this.valueChange.emit(next);
227
+ element.focus();
228
+ }
229
+ /** Pushes the model onto the DOM. Only ever runs for EXTERNAL writes. */
230
+ syncInputFromModel() {
231
+ const element = this.inputEl()?.nativeElement;
232
+ if (!element) {
233
+ return;
234
+ }
235
+ const current = this.value ?? '';
236
+ // Only write on a genuine difference: assigning to input.value resets the
237
+ // caret to the end even when the string is unchanged.
238
+ if (element.value !== String(current)) {
239
+ element.value = String(current);
240
+ }
241
+ }
242
+ /** Opens, filters or closes the menu based on the text between the last `$` and the caret. */
243
+ syncMenu(element) {
244
+ if (this.disabled || this.#bindings().length === 0) {
245
+ this.menuOpen.set(false);
246
+ return;
247
+ }
248
+ const caret = element.selectionStart ?? element.value.length;
249
+ const beforeCaret = element.value.slice(0, caret);
250
+ const dollar = beforeCaret.lastIndexOf('$');
251
+ if (dollar < 0) {
252
+ this.menuOpen.set(false);
253
+ return;
254
+ }
255
+ const term = beforeCaret.slice(dollar + 1);
256
+ if (!TokenTextInputComponent.FILTER_PATTERN.test(term)) {
257
+ this.menuOpen.set(false);
258
+ return;
259
+ }
260
+ const rect = element.getBoundingClientRect();
261
+ this.anchor.set({ top: rect.bottom + 4, left: rect.left, width: Math.max(rect.width, 240) });
262
+ this.filter.set(term);
263
+ this.activeIndex.set(0);
264
+ this.menuOpen.set(true);
265
+ }
266
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TokenTextInputComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
267
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TokenTextInputComponent, isStandalone: true, selector: "lib-token-text-input", inputs: { bindings: "bindings", value: "value" }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.floating": "shouldLabelFloat", "id": "id" } }, providers: [
268
+ {
269
+ provide: MatFormFieldControl,
270
+ useExisting: forwardRef(() => TokenTextInputComponent),
271
+ },
272
+ ], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<input\n matInput\n #inputEl\n type=\"text\"\n [readonly]=\"disabled\"\n [required]=\"required\"\n [placeholder]=\"placeholder || ''\"\n (input)=\"onInput()\"\n (click)=\"onInput()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur($event)\" />\n\n@if (menuOpen()) {\n <lib-token-binding-menu\n [options]=\"filtered()\"\n [activeIndex]=\"activeIndex()\"\n [anchor]=\"anchor()\"\n (pick)=\"insert($event)\" />\n}\n", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2.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: "component", type: TokenBindingMenuComponent, selector: "lib-token-binding-menu", inputs: ["options", "activeIndex", "anchor"], outputs: ["pick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
273
+ }
274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TokenTextInputComponent, decorators: [{
275
+ type: Component,
276
+ args: [{ selector: 'lib-token-text-input', imports: [MatInputModule, TokenBindingMenuComponent], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: {
277
+ '[class.floating]': 'shouldLabelFloat',
278
+ '[id]': 'id',
279
+ }, providers: [
280
+ {
281
+ provide: MatFormFieldControl,
282
+ useExisting: forwardRef(() => TokenTextInputComponent),
283
+ },
284
+ ], template: "<input\n matInput\n #inputEl\n type=\"text\"\n [readonly]=\"disabled\"\n [required]=\"required\"\n [placeholder]=\"placeholder || ''\"\n (input)=\"onInput()\"\n (click)=\"onInput()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur($event)\" />\n\n@if (menuOpen()) {\n <lib-token-binding-menu\n [options]=\"filtered()\"\n [activeIndex]=\"activeIndex()\"\n [anchor]=\"anchor()\"\n (pick)=\"insert($event)\" />\n}\n", styles: [":host{display:block;width:100%}\n"] }]
285
+ }], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
286
+ type: Optional
287
+ }, {
288
+ type: Self
289
+ }] }, { type: i0.ElementRef }], propDecorators: { bindings: [{
290
+ type: Input
291
+ }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], value: [{
292
+ type: Input
293
+ }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }] } });
294
+
295
+ export { TokenTextInputComponent };
296
+ //# sourceMappingURL=ngx-t-forms-token-text-input.component-BQADsnFn.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-token-text-input.component-BQADsnFn.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/token-text-input/token-text-input.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/token-text-input/token-text-input.component.html"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Input,\n Optional,\n Self,\n ViewEncapsulation,\n computed,\n forwardRef,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\n\nimport {\n BaseCustomInput,\n BaseCustomInputConfig,\n} from '../../../../services/core/t-input-controller/functions/baseCustomInput';\nimport type { EditorBinding } from '../json-editor/json-editor.component';\nimport { TokenBindingMenuComponent, type TokenMenuAnchor } from '../token-binding-menu/token-binding-menu.component';\n\nconst tokenTextInputConfig: BaseCustomInputConfig = {\n controlType: 'lib-token-text-input',\n nextId: 0,\n};\n\n/**\n * Single-line text with the `$`-trigger token picker.\n *\n * WHY THIS EXISTS\n * ---------------\n * The `$` gesture — type `$`, pick a field, get its `{{token}}` inserted — was\n * only ever implemented inside {@link JsonEditorComponent}, welded to a JSON\n * textarea with syntax highlighting and a caret-offset model. Every consumer of\n * it (the payload, header and query template editors) authors JSON.\n *\n * An email subject is plain text, and `ElementEditorTypes.Input` renders a bare\n * `matInput` with no picker at all — so an element carrying the hint \"Press $ to\n * insert a document value\" silently promised something that could not happen.\n * This is the same gesture over a plain string.\n *\n * WHY IT IS A `MatFormFieldControl`\n * ---------------------------------\n * `t-dynamic-data-edit` renders every editor that IS one inside a shared\n * `<mat-form-field>` (the label, outline, hint and error row all come from\n * there) and everything else outside it. A plain `<input matInput>` sitting in\n * THIS component's view is not *content* of that field, so Material cannot see\n * it and throws `mat-form-field must contain a MatFormFieldControl` — the field\n * then fails to render at all. Registering as the control, exactly as\n * `InputCustomComponent` and `QuillInputComponent` do, is what makes the field\n * appear.\n *\n * WHAT IS SHARED, AND WHAT IS NOT\n * -------------------------------\n * The option list itself is {@link TokenBindingMenuComponent}, shared with\n * `QuillInputComponent` so the gesture looks and behaves identically wherever\n * it appears. The binding data is shared too — {@link EditorBinding} plus the\n * derivation in `_shared/field-bindings.ts` — so every editor offers the same\n * fields under the same labels and inserts the same spelling.\n *\n * The CARET handling is not shared and should not be: a text input addresses\n * `selectionStart` on a string, Quill addresses an index into a Delta, and the\n * JSON editor tracks an offset into a highlighted backdrop. Those three have\n * nothing in common beyond \"find the `$` before the cursor\", so each host owns\n * its own few lines rather than an abstraction that fits none of them.\n */\n@Component({\n selector: 'lib-token-text-input',\n imports: [MatInputModule, TokenBindingMenuComponent],\n templateUrl: './token-text-input.component.html',\n styleUrl: './token-text-input.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[class.floating]': 'shouldLabelFloat',\n '[id]': 'id',\n },\n providers: [\n {\n provide: MatFormFieldControl,\n useExisting: forwardRef(() => TokenTextInputComponent),\n },\n ],\n})\nexport class TokenTextInputComponent\n extends BaseCustomInput<string>\n implements AfterViewInit\n{\n /**\n * Insertable bindings for the `$` menu. When empty the menu never opens.\n *\n * A classic `@Input` rather than a signal input, mirroring\n * `InputCustomComponent.inputConfig`: the base class exposes\n * `value`/`required`/`disabled`/`placeholder` as setter-backed `@Input`s tied\n * to `stateChanges`, and mixing the two styles on one component is the trap\n * that comment warns about. The setter feeds a signal so `filtered` can stay a\n * `computed`.\n */\n @Input()\n set bindings(value: readonly EditorBinding[] | undefined) {\n this.#bindings.set(value ?? []);\n }\n get bindings(): readonly EditorBinding[] {\n return this.#bindings();\n }\n readonly #bindings = signal<readonly EditorBinding[]>([]);\n\n /** Emitted on every keystroke and on insertion. */\n readonly valueChange = output<string>();\n\n /**\n * Current text, tokens included.\n *\n * Re-declared as an `@Input` because `BaseCustomInput.value` is a plain\n * accessor, not an input — a subclass that wants `[value]` bound has to say\n * so. `QuillInputComponent` does exactly this for the same reason.\n */\n @Input()\n override set value(next: string | null) {\n super.value = next;\n // The @Input path never calls writeValue, so the DOM is synced here too.\n // Guarded, so the echo of the author's own keystrokes is a no-op.\n this.syncInputFromModel();\n }\n override get value(): string | null {\n return super.value;\n }\n\n // The native input is left uncontrolled while the user types. Binding the\n // (debounced, therefore lagging) model to `[value]` makes Angular overwrite the\n // DOM mid-keystroke and drop characters — the same reasoning, and the same\n // remedy, as `InputCustomComponent`. TS `private`, not ES `#private`: Angular\n // signal queries cannot sit on an ES-private field.\n private readonly inputEl = viewChild<ElementRef<HTMLInputElement>>('inputEl');\n\n /** Whether the `$` menu is open. */\n protected readonly menuOpen = signal(false);\n /** Text typed after the `$` that opened the menu. */\n protected readonly filter = signal('');\n /** Index of the highlighted option. */\n protected readonly activeIndex = signal(0);\n /**\n * Viewport position of the menu.\n *\n * Fixed positioning, not absolute: the menu lives inside a `<mat-form-field>`,\n * whose infix and subscript wrappers clip an absolutely-positioned child, so\n * the list would be cut off after a row or two.\n */\n protected readonly anchor = signal<TokenMenuAnchor | null>(null);\n\n /**\n * Characters that keep the menu open after a dollar trigger.\n *\n * WIDER than the JSON editor's word-chars-only filter on purpose: this menu\n * also offers server-resolved namespace tokens whose ids contain dots\n * (`$doc.reference`), and form-control ids may carry hyphens — the original\n * pattern CLOSED the menu the moment either was typed. Punctuation outside\n * this set still reads as a literal dollar (a currency amount) and dismisses\n * the menu.\n */\n static readonly FILTER_PATTERN = /^[a-zA-Z0-9_.\\s-]*$/;\n\n /** Bindings matching the active filter, capped so the list stays usable. */\n protected readonly filtered = computed(() => {\n const term = this.filter().trim().toLowerCase();\n const all = this.#bindings();\n if (!term) {\n return all.slice(0, 50);\n }\n return all\n .filter((binding) =>\n `${binding.searchText ?? ''} ${binding.label}`.toLowerCase().includes(term),\n )\n .slice(0, 50);\n });\n\n constructor(\n @Optional() @Self() ngControl: NgControl,\n elementRef: ElementRef<HTMLElement>,\n ) {\n super(ngControl, elementRef, tokenTextInputConfig);\n }\n\n override get empty(): boolean {\n const current = this.value;\n return current === null || current === undefined || current === '';\n }\n\n override get shouldLabelFloat(): boolean {\n return true;\n }\n\n ngAfterViewInit(): void {\n // Reflect any value the form set before the view existed.\n this.syncInputFromModel();\n }\n\n override writeValue(value: string): void {\n super.writeValue(value);\n // External model change (patchValue / reset). Never fires in response to the\n // user's own typing, so it cannot clobber the caret.\n this.syncInputFromModel();\n }\n\n /** Re-emits on every keystroke and decides whether the `$` menu should be open. */\n protected onInput(): void {\n const element = this.inputEl()?.nativeElement;\n if (!element) {\n return;\n }\n super.value = element.value;\n this.valueChange.emit(element.value);\n this.syncMenu(element);\n }\n\n /**\n * Keyboard handling while the menu is open: navigate, accept, dismiss.\n *\n * Returns early when the menu is closed so ordinary typing — including Enter\n * inside a form — is untouched.\n */\n protected onKeydown(event: KeyboardEvent): void {\n if (!this.menuOpen()) {\n return;\n }\n const options = this.filtered();\n if (event.key === 'Escape') {\n this.menuOpen.set(false);\n event.stopPropagation();\n event.preventDefault();\n return;\n }\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n if (options.length > 0) {\n const step = event.key === 'ArrowDown' ? 1 : -1;\n this.activeIndex.set((this.activeIndex() + step + options.length) % options.length);\n }\n event.preventDefault();\n return;\n }\n if (event.key === 'Enter' || event.key === 'Tab') {\n const chosen = options[this.activeIndex()];\n if (chosen) {\n this.insert(chosen);\n event.preventDefault();\n }\n }\n }\n\n /** Closing is deferred so a click on an option still registers before blur. */\n protected onBlur($event: FocusEvent): void {\n this.touched = true;\n this.onTouched();\n this.blur.emit($event);\n setTimeout(() => this.menuOpen.set(false), 150);\n }\n\n /**\n * Replaces the `$filter` run at the caret with the binding's token.\n *\n * @param binding - The chosen menu entry.\n */\n protected insert(binding: EditorBinding): void {\n const element = this.inputEl()?.nativeElement;\n if (!element) {\n return;\n }\n const caret = element.selectionStart ?? element.value.length;\n const dollar = element.value.lastIndexOf('$', Math.max(0, caret - 1));\n if (dollar < 0) {\n this.menuOpen.set(false);\n return;\n }\n const next = element.value.slice(0, dollar) + binding.insert + element.value.slice(caret);\n element.value = next;\n const cursor = dollar + binding.insert.length;\n element.setSelectionRange(cursor, cursor);\n this.menuOpen.set(false);\n this.filter.set('');\n super.value = next;\n this.valueChange.emit(next);\n element.focus();\n }\n\n /** Pushes the model onto the DOM. Only ever runs for EXTERNAL writes. */\n private syncInputFromModel(): void {\n const element = this.inputEl()?.nativeElement;\n if (!element) {\n return;\n }\n const current = this.value ?? '';\n // Only write on a genuine difference: assigning to input.value resets the\n // caret to the end even when the string is unchanged.\n if (element.value !== String(current)) {\n element.value = String(current);\n }\n }\n\n /** Opens, filters or closes the menu based on the text between the last `$` and the caret. */\n private syncMenu(element: HTMLInputElement): void {\n if (this.disabled || this.#bindings().length === 0) {\n this.menuOpen.set(false);\n return;\n }\n const caret = element.selectionStart ?? element.value.length;\n const beforeCaret = element.value.slice(0, caret);\n const dollar = beforeCaret.lastIndexOf('$');\n if (dollar < 0) {\n this.menuOpen.set(false);\n return;\n }\n const term = beforeCaret.slice(dollar + 1);\n if (!TokenTextInputComponent.FILTER_PATTERN.test(term)) {\n this.menuOpen.set(false);\n return;\n }\n const rect = element.getBoundingClientRect();\n this.anchor.set({ top: rect.bottom + 4, left: rect.left, width: Math.max(rect.width, 240) });\n this.filter.set(term);\n this.activeIndex.set(0);\n this.menuOpen.set(true);\n }\n}\n","<input\n matInput\n #inputEl\n type=\"text\"\n [readonly]=\"disabled\"\n [required]=\"required\"\n [placeholder]=\"placeholder || ''\"\n (input)=\"onInput()\"\n (click)=\"onInput()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur($event)\" />\n\n@if (menuOpen()) {\n <lib-token-binding-menu\n [options]=\"filtered()\"\n [activeIndex]=\"activeIndex()\"\n [anchor]=\"anchor()\"\n (pick)=\"insert($event)\" />\n}\n"],"names":[],"mappings":";;;;;;;;;AA0BA,MAAM,oBAAoB,GAA0B;AAClD,IAAA,WAAW,EA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ACvD,yBAAA;AACF,qBAAA,EAAA,QAAA,EAAA,ybAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA;;0BA+FE;;0BAAY;;sBA/Ed;;sBAmBA;uDAgBkE,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
@@ -23,7 +23,7 @@ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
23
23
  import * as i5 from '@angular/material/tooltip';
24
24
  import { MatTooltipModule } from '@angular/material/tooltip';
25
25
  import { Subject } from 'rxjs';
26
- import { P as PREDICATE_OPERATORS, r as referencedTokens, p as parseConditions, f as evaluatePredicate, h as emptyCondition, s as serializeConditions, i as deriveObservedInputs } from './ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs';
26
+ import { P as PREDICATE_OPERATORS, r as referencedTokens, p as parseConditions, h as evaluatePredicate, i as emptyCondition, s as serializeConditions, j as deriveObservedInputs } from './ngx-t-forms-ngx-t-forms-BA1CoCl_.mjs';
27
27
 
28
28
  /**
29
29
  * Internal editor implementing `MatFormFieldControl<FormControlCustomValidatorsInterface[]>`
@@ -571,4 +571,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
571
571
  }], mapToData: [{ type: i0.Input, args: [{ isSignal: true, alias: "mapToData", required: false }] }], formInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "formInputs", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] } });
572
572
 
573
573
  export { ValidatorsConfigComponent };
574
- //# sourceMappingURL=ngx-t-forms-validators-config.component-0_Y6bvtE.mjs.map
574
+ //# sourceMappingURL=ngx-t-forms-validators-config.component-qO6Y4x1v.mjs.map