ngx-t-forms 3.0.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/fesm2022/ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs +411 -0
  2. package/fesm2022/ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs.map +1 -0
  3. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs → ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs} +2 -2
  4. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs.map → ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs.map} +1 -1
  5. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs → ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs} +3 -3
  6. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs.map → ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs.map} +1 -1
  7. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs +643 -0
  8. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs.map +1 -0
  9. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs → ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs} +4 -4
  10. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs.map +1 -0
  11. package/fesm2022/ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs +513 -0
  12. package/fesm2022/ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs.map +1 -0
  13. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs} +4 -4
  14. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs.map +1 -0
  15. package/fesm2022/ngx-t-forms-data-source-picker.component-CN51SdCK.mjs +261 -0
  16. package/fesm2022/ngx-t-forms-data-source-picker.component-CN51SdCK.mjs.map +1 -0
  17. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs → ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs} +2 -2
  18. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs.map → ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs.map} +1 -1
  19. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs +166 -0
  20. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs.map +1 -0
  21. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs +373 -0
  22. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs.map +1 -0
  23. package/fesm2022/ngx-t-forms-document-picker.component-9clYsOcl.mjs +1259 -0
  24. package/fesm2022/ngx-t-forms-document-picker.component-9clYsOcl.mjs.map +1 -0
  25. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs +417 -0
  26. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs.map +1 -0
  27. package/fesm2022/{ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs → ngx-t-forms-editor-js-input.component-02HnmInT.mjs} +25 -11
  28. package/fesm2022/ngx-t-forms-editor-js-input.component-02HnmInT.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs → ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs.map → ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs.map} +1 -1
  31. package/fesm2022/ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs +86 -0
  32. package/fesm2022/ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs.map +1 -0
  33. package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs → ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs} +2 -2
  34. package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map → ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs.map} +1 -1
  35. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs +179 -0
  36. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs.map +1 -0
  37. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs → ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs} +4 -4
  38. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map → ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs → ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs} +5 -5
  40. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map → ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs → ngx-t-forms-geo-location.component-D-BhLdx6.mjs} +2 -2
  42. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs.map → ngx-t-forms-geo-location.component-D-BhLdx6.mjs.map} +1 -1
  43. package/fesm2022/ngx-t-forms-header-template-editor.component-Z5frEhho.mjs +159 -0
  44. package/fesm2022/ngx-t-forms-header-template-editor.component-Z5frEhho.mjs.map +1 -0
  45. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs → ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map → ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs.map} +1 -1
  47. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs +2 -0
  48. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs.map +1 -0
  49. package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs → ngx-t-forms-input-custom.component-s1ryJQy4.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map → ngx-t-forms-input-custom.component-s1ryJQy4.mjs.map} +1 -1
  51. package/fesm2022/ngx-t-forms-input-editor.component-oIzCTmbx.mjs +190 -0
  52. package/fesm2022/ngx-t-forms-input-editor.component-oIzCTmbx.mjs.map +1 -0
  53. package/fesm2022/{ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs → ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs} +2 -3
  54. package/fesm2022/ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs → ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs} +5 -5
  56. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs.map +1 -0
  57. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs → ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs} +3 -3
  58. package/fesm2022/ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs.map +1 -0
  59. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs → ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs} +3 -3
  60. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs.map +1 -0
  61. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs → ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs} +2 -2
  62. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map → ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs.map} +1 -1
  63. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs → ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs} +2 -2
  64. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs.map} +1 -1
  65. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs +447 -0
  66. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs.map +1 -0
  67. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs +905 -0
  68. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs.map +1 -0
  69. package/fesm2022/{ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs → ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs} +2738 -415
  70. package/fesm2022/ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs.map +1 -0
  71. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs → ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs} +2 -2
  72. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map → ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs.map} +1 -1
  73. package/fesm2022/ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs +85 -0
  74. package/fesm2022/ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs.map +1 -0
  75. package/fesm2022/ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs +748 -0
  76. package/fesm2022/ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs.map +1 -0
  77. package/fesm2022/{ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs → ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs} +4 -4
  78. package/fesm2022/ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs.map +1 -0
  79. package/fesm2022/ngx-t-forms-required-inputs.component-CK7NIhbq.mjs +272 -0
  80. package/fesm2022/ngx-t-forms-required-inputs.component-CK7NIhbq.mjs.map +1 -0
  81. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs +699 -0
  82. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs.map +1 -0
  83. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs +38 -0
  84. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs.map +1 -0
  85. package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs → ngx-t-forms-section-report.component-DhSaf85h.mjs} +2 -2
  86. package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs.map → ngx-t-forms-section-report.component-DhSaf85h.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs → ngx-t-forms-select-input-element.component-D5HFzh35.mjs} +2 -2
  88. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map → ngx-t-forms-select-input-element.component-D5HFzh35.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs +169 -0
  90. package/fesm2022/ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs.map +1 -0
  91. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs → ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs} +3 -3
  92. package/fesm2022/ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs.map +1 -0
  93. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs → ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs} +2 -2
  94. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map → ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs.map} +1 -1
  95. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs → ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs} +2 -2
  96. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map → ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs.map} +1 -1
  97. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs +173 -0
  98. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs.map +1 -0
  99. package/fesm2022/ngx-t-forms-validators-config.component-0_Y6bvtE.mjs +574 -0
  100. package/fesm2022/ngx-t-forms-validators-config.component-0_Y6bvtE.mjs.map +1 -0
  101. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs → ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs} +3 -3
  102. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map → ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs.map} +1 -1
  103. package/fesm2022/ngx-t-forms.mjs +1 -1
  104. package/package.json +2 -2
  105. package/styles/_editor-mixins.scss +117 -117
  106. package/styles/_signature-pad.scss +26 -26
  107. package/styles/_tokens.scss +148 -148
  108. package/types/ngx-t-forms.d.ts +110 -6
  109. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs +0 -261
  110. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +0 -1
  111. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs +0 -225
  112. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +0 -1
  113. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs +0 -1011
  114. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs +0 -643
  116. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map +0 -1
  117. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs +0 -136
  118. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +0 -1
  119. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map +0 -1
  120. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs +0 -253
  122. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +0 -1
  123. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs +0 -261
  124. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map +0 -1
  125. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +0 -419
  126. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +0 -1
  127. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs +0 -231
  128. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs +0 -156
  130. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map +0 -1
  131. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs +0 -333
  132. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +0 -1
  133. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs +0 -373
  134. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map +0 -1
  135. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs +0 -543
  136. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +0 -1
  137. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +0 -1259
  138. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +0 -1
  139. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +0 -1996
  140. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +0 -1
  141. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs +0 -581
  142. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +0 -1
  143. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs +0 -417
  144. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +0 -1
  145. package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +0 -1
  146. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +0 -585
  147. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +0 -1
  148. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs +0 -447
  149. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +0 -1
  150. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +0 -163
  151. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +0 -1
  152. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs +0 -86
  153. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map +0 -1
  154. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +0 -28
  155. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map +0 -1
  156. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +0 -291
  157. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +0 -1
  158. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs +0 -179
  159. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map +0 -1
  160. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +0 -936
  161. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +0 -1
  162. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +0 -816
  163. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +0 -1
  164. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +0 -329
  165. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +0 -1
  166. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +0 -360
  167. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +0 -1
  168. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs +0 -2
  169. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +0 -1
  170. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +0 -2
  171. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +0 -1
  172. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +0 -128
  173. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +0 -1
  174. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +0 -512
  175. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +0 -1
  176. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs +0 -190
  177. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map +0 -1
  178. package/fesm2022/ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map +0 -1
  179. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +0 -132
  180. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +0 -1
  181. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +0 -268
  182. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +0 -1
  183. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +0 -1
  184. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +0 -241
  185. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +0 -1
  186. package/fesm2022/ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs.map +0 -1
  187. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs.map +0 -1
  188. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +0 -180
  189. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +0 -1
  190. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +0 -114
  191. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +0 -1
  192. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +0 -69
  193. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +0 -1
  194. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +0 -200
  195. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +0 -1
  196. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs +0 -447
  197. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map +0 -1
  198. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +0 -850
  199. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +0 -1
  200. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +0 -107
  201. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +0 -1
  202. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +0 -1665
  203. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +0 -1
  204. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs +0 -905
  205. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map +0 -1
  206. package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +0 -1
  207. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +0 -28237
  208. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +0 -1
  209. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +0 -1024
  210. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +0 -1
  211. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs +0 -203
  212. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map +0 -1
  213. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +0 -234
  214. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +0 -1
  215. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +0 -1126
  216. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +0 -1
  217. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs +0 -748
  218. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map +0 -1
  219. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +0 -639
  220. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +0 -1
  221. package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +0 -1
  222. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs +0 -272
  223. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map +0 -1
  224. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +0 -451
  225. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +0 -1
  226. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +0 -625
  227. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +0 -1
  228. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs +0 -444
  229. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map +0 -1
  230. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs +0 -38
  231. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs.map +0 -1
  232. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +0 -72
  233. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +0 -1
  234. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +0 -248
  235. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +0 -1
  236. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +0 -408
  237. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +0 -1
  238. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs +0 -169
  239. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map +0 -1
  240. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +0 -275
  241. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +0 -1
  242. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +0 -366
  243. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +0 -1
  244. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +0 -1
  245. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +0 -233
  246. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +0 -1
  247. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +0 -305
  248. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +0 -1
  249. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +0 -1105
  250. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +0 -1
  251. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs +0 -574
  252. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs.map +0 -1
  253. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +0 -2923
  254. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +0 -1
@@ -1,1105 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, output, inject, ElementRef, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, Input } from '@angular/core';
3
- import { v4 } from 'uuid';
4
- import { CalculationFunctions, InputDataTypes, InputTypes } from 'ngx-t-forms-types';
5
- import * as i3$3 from '@angular/common';
6
- import { CommonModule } from '@angular/common';
7
- import { NgControl } from '@angular/forms';
8
- import { MatFormFieldControl } from '@angular/material/form-field';
9
- import * as i3 from '@angular/material/icon';
10
- import { MatIconModule } from '@angular/material/icon';
11
- import * as i4 from '@angular/material/chips';
12
- import { MatChipsModule } from '@angular/material/chips';
13
- import * as i3$1 from '@angular/material/card';
14
- import { MatCardModule } from '@angular/material/card';
15
- import * as i8 from '@angular/material/toolbar';
16
- import { MatToolbarModule } from '@angular/material/toolbar';
17
- import * as i2 from '@angular/material/button';
18
- import { MatButtonModule } from '@angular/material/button';
19
- import * as i3$2 from '@angular/material/button-toggle';
20
- import { MatButtonToggleModule } from '@angular/material/button-toggle';
21
- import * as i1 from '@angular/material/slide-toggle';
22
- import { MatSlideToggleModule } from '@angular/material/slide-toggle';
23
- import * as i5 from '@angular/material/tooltip';
24
- import { MatTooltipModule } from '@angular/material/tooltip';
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-BefvSS-p.mjs';
27
-
28
- function _forTrack0($index, $item) { return this.trackValidator($item); }
29
- const _forTrack1 = ($index, $item) => $item.value;
30
- const _forTrack2 = ($index, $item) => $item.variable;
31
- function ValidatorsConfigComponent_For_13_Conditional_4_Template(rf, ctx) { if (rf & 1) {
32
- i0.ɵɵelementStart(0, "mat-icon", 10);
33
- i0.ɵɵtext(1, "check_circle");
34
- i0.ɵɵelementEnd();
35
- } }
36
- function ValidatorsConfigComponent_For_13_Conditional_5_Template(rf, ctx) { if (rf & 1) {
37
- const _r4 = i0.ɵɵgetCurrentView();
38
- i0.ɵɵelementStart(0, "button", 12);
39
- i0.ɵɵlistener("click", function ValidatorsConfigComponent_For_13_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const validator_r2 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.remove(validator_r2)); });
40
- i0.ɵɵelementStart(1, "mat-icon");
41
- i0.ɵɵtext(2, "cancel");
42
- i0.ɵɵelementEnd()();
43
- } if (rf & 2) {
44
- i0.ɵɵattribute("aria-label", "remove validator");
45
- } }
46
- function ValidatorsConfigComponent_For_13_Template(rf, ctx) { if (rf & 1) {
47
- const _r1 = i0.ɵɵgetCurrentView();
48
- i0.ɵɵelementStart(0, "mat-chip-option", 8);
49
- i0.ɵɵlistener("click", function ValidatorsConfigComponent_For_13_Template_mat_chip_option_click_0_listener() { const validator_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.editV(validator_r2)); });
50
- i0.ɵɵelementStart(1, "span", 9);
51
- i0.ɵɵtext(2);
52
- i0.ɵɵpipe(3, "titlecase");
53
- i0.ɵɵelementEnd();
54
- i0.ɵɵconditionalCreate(4, ValidatorsConfigComponent_For_13_Conditional_4_Template, 2, 0, "mat-icon", 10)(5, ValidatorsConfigComponent_For_13_Conditional_5_Template, 3, 1, "button", 11);
55
- i0.ɵɵelementEnd();
56
- } if (rf & 2) {
57
- const validator_r2 = ctx.$implicit;
58
- const ctx_r2 = i0.ɵɵnextContext();
59
- i0.ɵɵproperty("selected", ctx_r2.isEditing(validator_r2));
60
- i0.ɵɵadvance(2);
61
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, ctx_r2.validatorLabel(validator_r2)), " ");
62
- i0.ɵɵadvance(2);
63
- i0.ɵɵconditional(ctx_r2.isEditing(validator_r2) ? 4 : 5);
64
- } }
65
- function ValidatorsConfigComponent_Conditional_14_Template(rf, ctx) { if (rf & 1) {
66
- const _r5 = i0.ɵɵgetCurrentView();
67
- i0.ɵɵelementStart(0, "mat-chip-option", 13);
68
- i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_14_Template_mat_chip_option_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.addValidator()); });
69
- i0.ɵɵtext(1, " Add rule ");
70
- i0.ɵɵelementStart(2, "mat-icon", 10);
71
- i0.ɵɵtext(3, "add");
72
- i0.ɵɵelementEnd()();
73
- } if (rf & 2) {
74
- const ctx_r2 = i0.ɵɵnextContext();
75
- i0.ɵɵproperty("selectable", false)("disabled", ctx_r2.disabled);
76
- } }
77
- function ValidatorsConfigComponent_Conditional_15_Conditional_8_Template(rf, ctx) { if (rf & 1) {
78
- const _r7 = i0.ɵɵgetCurrentView();
79
- i0.ɵɵelementStart(0, "div", 19)(1, "mat-button-toggle-group", 34);
80
- i0.ɵɵlistener("change", function ValidatorsConfigComponent_Conditional_15_Conditional_8_Template_mat_button_toggle_group_change_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.setConnector($event.value)); });
81
- i0.ɵɵelementStart(2, "mat-button-toggle", 35);
82
- i0.ɵɵtext(3, "All");
83
- i0.ɵɵelementEnd();
84
- i0.ɵɵelementStart(4, "mat-button-toggle", 36);
85
- i0.ɵɵtext(5, "Any");
86
- i0.ɵɵelementEnd()();
87
- i0.ɵɵelementStart(6, "span", 37);
88
- i0.ɵɵtext(7, "of these match");
89
- i0.ɵɵelementEnd()();
90
- } if (rf & 2) {
91
- const ctx_r2 = i0.ɵɵnextContext(2);
92
- i0.ɵɵadvance();
93
- i0.ɵɵproperty("value", ctx_r2.group().connector);
94
- } }
95
- function ValidatorsConfigComponent_Conditional_15_Conditional_9_Conditional_4_Template(rf, ctx) { if (rf & 1) {
96
- i0.ɵɵelementStart(0, "p", 39)(1, "mat-icon", 40);
97
- i0.ɵɵtext(2, "error_outline");
98
- i0.ɵɵelementEnd();
99
- i0.ɵɵelementStart(3, "span");
100
- i0.ɵɵtext(4);
101
- i0.ɵɵelementEnd()();
102
- } if (rf & 2) {
103
- i0.ɵɵadvance(4);
104
- i0.ɵɵtextInterpolate(ctx);
105
- } }
106
- function ValidatorsConfigComponent_Conditional_15_Conditional_9_Conditional_5_Template(rf, ctx) { if (rf & 1) {
107
- i0.ɵɵelementStart(0, "p", 25);
108
- i0.ɵɵtext(1, " True means the entry is invalid. Reference a field by its name; comparisons use ");
109
- i0.ɵɵelementStart(2, "code");
110
- i0.ɵɵtext(3, "===");
111
- i0.ɵɵelementEnd();
112
- i0.ɵɵtext(4, ", ");
113
- i0.ɵɵelementStart(5, "code");
114
- i0.ɵɵtext(6, ">");
115
- i0.ɵɵelementEnd();
116
- i0.ɵɵtext(7, ", ");
117
- i0.ɵɵelementStart(8, "code");
118
- i0.ɵɵtext(9, "includes");
119
- i0.ɵɵelementEnd();
120
- i0.ɵɵtext(10, " \u2026 ");
121
- i0.ɵɵelementEnd();
122
- } }
123
- function ValidatorsConfigComponent_Conditional_15_Conditional_9_Template(rf, ctx) { if (rf & 1) {
124
- const _r8 = i0.ɵɵgetCurrentView();
125
- i0.ɵɵelementStart(0, "label", 15)(1, "span", 16);
126
- i0.ɵɵtext(2, "Expression");
127
- i0.ɵɵelementEnd();
128
- i0.ɵɵelementStart(3, "textarea", 38);
129
- i0.ɵɵlistener("input", function ValidatorsConfigComponent_Conditional_15_Conditional_9_Template_textarea_input_3_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onTextChange($event, "expression")); });
130
- i0.ɵɵelementEnd()();
131
- i0.ɵɵconditionalCreate(4, ValidatorsConfigComponent_Conditional_15_Conditional_9_Conditional_4_Template, 5, 1, "p", 39)(5, ValidatorsConfigComponent_Conditional_15_Conditional_9_Conditional_5_Template, 11, 0, "p", 25);
132
- } if (rf & 2) {
133
- let tmp_4_0;
134
- const draft_r9 = i0.ɵɵnextContext();
135
- const ctx_r2 = i0.ɵɵnextContext();
136
- i0.ɵɵadvance(3);
137
- i0.ɵɵproperty("value", draft_r9.expression);
138
- i0.ɵɵadvance();
139
- i0.ɵɵconditional((tmp_4_0 = ctx_r2.syntaxError()) ? 4 : 5, tmp_4_0);
140
- } }
141
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_Conditional_0_Template(rf, ctx) { if (rf & 1) {
142
- i0.ɵɵelementStart(0, "p", 25);
143
- i0.ɵɵtext(1, " No fields available yet \u2014 switch to Advanced to type an expression. ");
144
- i0.ɵɵelementEnd();
145
- } }
146
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
147
- i0.ɵɵelementStart(0, "div", 42)(1, "span");
148
- i0.ɵɵtext(2);
149
- i0.ɵɵelementEnd()();
150
- } if (rf & 2) {
151
- const ctx_r2 = i0.ɵɵnextContext(4);
152
- i0.ɵɵadvance(2);
153
- i0.ɵɵtextInterpolate(ctx_r2.group().connector === "&&" ? "AND" : "OR");
154
- } }
155
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_9_For_2_Template(rf, ctx) { if (rf & 1) {
156
- i0.ɵɵelementStart(0, "option", 50);
157
- i0.ɵɵtext(1);
158
- i0.ɵɵelementEnd();
159
- } if (rf & 2) {
160
- const f_r13 = ctx.$implicit;
161
- const cond_r14 = i0.ɵɵnextContext(2).$implicit;
162
- i0.ɵɵproperty("value", f_r13.variable)("selected", f_r13.variable === cond_r14.field);
163
- i0.ɵɵadvance();
164
- i0.ɵɵtextInterpolate2(" ", f_r13.label, "", f_r13.isSelf ? " (this field)" : "", " ");
165
- } }
166
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_9_Template(rf, ctx) { if (rf & 1) {
167
- i0.ɵɵelementStart(0, "optgroup", 47);
168
- i0.ɵɵrepeaterCreate(1, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_9_For_2_Template, 2, 4, "option", 50, _forTrack2);
169
- i0.ɵɵelementEnd();
170
- } if (rf & 2) {
171
- const ctx_r2 = i0.ɵɵnextContext(4);
172
- i0.ɵɵadvance();
173
- i0.ɵɵrepeater(ctx_r2.directFields());
174
- } }
175
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_10_For_2_Template(rf, ctx) { if (rf & 1) {
176
- i0.ɵɵelementStart(0, "option", 50);
177
- i0.ɵɵtext(1);
178
- i0.ɵɵelementEnd();
179
- } if (rf & 2) {
180
- const f_r15 = ctx.$implicit;
181
- const cond_r14 = i0.ɵɵnextContext(2).$implicit;
182
- i0.ɵɵproperty("value", f_r15.variable)("selected", f_r15.variable === cond_r14.field);
183
- i0.ɵɵadvance();
184
- i0.ɵɵtextInterpolate(f_r15.label);
185
- } }
186
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_10_Template(rf, ctx) { if (rf & 1) {
187
- i0.ɵɵelementStart(0, "optgroup", 48);
188
- i0.ɵɵrepeaterCreate(1, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_10_For_2_Template, 2, 3, "option", 50, _forTrack2);
189
- i0.ɵɵelementEnd();
190
- } if (rf & 2) {
191
- const ctx_r2 = i0.ɵɵnextContext(4);
192
- i0.ɵɵadvance();
193
- i0.ɵɵrepeater(ctx_r2.listFields());
194
- } }
195
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_For_17_Template(rf, ctx) { if (rf & 1) {
196
- i0.ɵɵelementStart(0, "option", 50);
197
- i0.ɵɵtext(1);
198
- i0.ɵɵelementEnd();
199
- } if (rf & 2) {
200
- const op_r16 = ctx.$implicit;
201
- const cond_r14 = i0.ɵɵnextContext().$implicit;
202
- i0.ɵɵproperty("value", op_r16.value)("selected", op_r16.value === cond_r14.operator);
203
- i0.ɵɵadvance();
204
- i0.ɵɵtextInterpolate(op_r16.label);
205
- } }
206
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_3_For_2_Template(rf, ctx) { if (rf & 1) {
207
- i0.ɵɵelementStart(0, "option", 50);
208
- i0.ɵɵtext(1);
209
- i0.ɵɵelementEnd();
210
- } if (rf & 2) {
211
- const f_r18 = ctx.$implicit;
212
- const cond_r14 = i0.ɵɵnextContext(3).$implicit;
213
- i0.ɵɵproperty("value", f_r18.variable)("selected", f_r18.variable === cond_r14.value);
214
- i0.ɵɵadvance();
215
- i0.ɵɵtextInterpolate2(" ", f_r18.label, "", f_r18.isSelf ? " (this field)" : "", " ");
216
- } }
217
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_3_Template(rf, ctx) { if (rf & 1) {
218
- i0.ɵɵelementStart(0, "optgroup", 47);
219
- i0.ɵɵrepeaterCreate(1, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_3_For_2_Template, 2, 4, "option", 50, _forTrack2);
220
- i0.ɵɵelementEnd();
221
- } if (rf & 2) {
222
- const ctx_r2 = i0.ɵɵnextContext(5);
223
- i0.ɵɵadvance();
224
- i0.ɵɵrepeater(ctx_r2.directFields());
225
- } }
226
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_4_For_2_Template(rf, ctx) { if (rf & 1) {
227
- i0.ɵɵelementStart(0, "option", 50);
228
- i0.ɵɵtext(1);
229
- i0.ɵɵelementEnd();
230
- } if (rf & 2) {
231
- const f_r19 = ctx.$implicit;
232
- const cond_r14 = i0.ɵɵnextContext(3).$implicit;
233
- i0.ɵɵproperty("value", f_r19.variable)("selected", f_r19.variable === cond_r14.value);
234
- i0.ɵɵadvance();
235
- i0.ɵɵtextInterpolate(f_r19.label);
236
- } }
237
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_4_Template(rf, ctx) { if (rf & 1) {
238
- i0.ɵɵelementStart(0, "optgroup", 48);
239
- i0.ɵɵrepeaterCreate(1, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_4_For_2_Template, 2, 3, "option", 50, _forTrack2);
240
- i0.ɵɵelementEnd();
241
- } if (rf & 2) {
242
- const ctx_r2 = i0.ɵɵnextContext(5);
243
- i0.ɵɵadvance();
244
- i0.ɵɵrepeater(ctx_r2.listFields());
245
- } }
246
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Template(rf, ctx) { if (rf & 1) {
247
- const _r17 = i0.ɵɵgetCurrentView();
248
- i0.ɵɵelementStart(0, "select", 45);
249
- i0.ɵɵlistener("change", function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Template_select_change_0_listener($event) { i0.ɵɵrestoreView(_r17); const $index_r12 = i0.ɵɵnextContext().$index; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.updateCondition($index_r12, { value: ctx_r2.inputValue($event) })); });
250
- i0.ɵɵelementStart(1, "option", 46);
251
- i0.ɵɵtext(2, "Choose a field");
252
- i0.ɵɵelementEnd();
253
- i0.ɵɵconditionalCreate(3, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_3_Template, 3, 0, "optgroup", 47);
254
- i0.ɵɵconditionalCreate(4, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Conditional_4_Template, 3, 0, "optgroup", 48);
255
- i0.ɵɵelementEnd();
256
- } if (rf & 2) {
257
- const cond_r14 = i0.ɵɵnextContext().$implicit;
258
- const ctx_r2 = i0.ɵɵnextContext(3);
259
- i0.ɵɵclassProp("lib-validators-config__control--invalid", !cond_r14.value);
260
- i0.ɵɵadvance();
261
- i0.ɵɵproperty("selected", !cond_r14.value);
262
- i0.ɵɵadvance(2);
263
- i0.ɵɵconditional(ctx_r2.directFields().length ? 3 : -1);
264
- i0.ɵɵadvance();
265
- i0.ɵɵconditional(ctx_r2.listFields().length ? 4 : -1);
266
- } }
267
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_23_Template(rf, ctx) { if (rf & 1) {
268
- const _r20 = i0.ɵɵgetCurrentView();
269
- i0.ɵɵelementStart(0, "input", 56);
270
- i0.ɵɵlistener("input", function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_23_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r20); const $index_r12 = i0.ɵɵnextContext().$index; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.updateCondition($index_r12, { value: ctx_r2.inputValue($event) })); });
271
- i0.ɵɵelementEnd();
272
- } if (rf & 2) {
273
- const cond_r14 = i0.ɵɵnextContext().$implicit;
274
- i0.ɵɵclassProp("lib-validators-config__control--invalid", !cond_r14.value);
275
- i0.ɵɵproperty("value", cond_r14.value);
276
- } }
277
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Template(rf, ctx) { if (rf & 1) {
278
- const _r11 = i0.ɵɵgetCurrentView();
279
- i0.ɵɵconditionalCreate(0, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_0_Template, 3, 1, "div", 42);
280
- i0.ɵɵelementStart(1, "div", 43)(2, "div", 44)(3, "label", 15)(4, "span", 16);
281
- i0.ɵɵtext(5, "Field");
282
- i0.ɵɵelementEnd();
283
- i0.ɵɵelementStart(6, "select", 45);
284
- i0.ɵɵlistener("change", function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Template_select_change_6_listener($event) { const $index_r12 = i0.ɵɵrestoreView(_r11).$index; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.updateCondition($index_r12, { field: ctx_r2.inputValue($event) })); });
285
- i0.ɵɵelementStart(7, "option", 46);
286
- i0.ɵɵtext(8, "Choose a field");
287
- i0.ɵɵelementEnd();
288
- i0.ɵɵconditionalCreate(9, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_9_Template, 3, 0, "optgroup", 47);
289
- i0.ɵɵconditionalCreate(10, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_10_Template, 3, 0, "optgroup", 48);
290
- i0.ɵɵelementEnd()();
291
- i0.ɵɵelementStart(11, "div", 49)(12, "label", 15)(13, "span", 16);
292
- i0.ɵɵtext(14, "Condition");
293
- i0.ɵɵelementEnd();
294
- i0.ɵɵelementStart(15, "select", 45);
295
- i0.ɵɵlistener("change", function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Template_select_change_15_listener($event) { const $index_r12 = i0.ɵɵrestoreView(_r11).$index; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.updateCondition($index_r12, { operator: ctx_r2.inputValue($event) })); });
296
- i0.ɵɵrepeaterCreate(16, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_For_17_Template, 2, 3, "option", 50, _forTrack1);
297
- i0.ɵɵelementEnd()();
298
- i0.ɵɵelementStart(18, "div", 15)(19, "span", 16);
299
- i0.ɵɵtext(20);
300
- i0.ɵɵelementEnd();
301
- i0.ɵɵelementStart(21, "div", 51);
302
- i0.ɵɵconditionalCreate(22, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_22_Template, 5, 5, "select", 52)(23, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Conditional_23_Template, 1, 3, "input", 53);
303
- i0.ɵɵelementStart(24, "button", 54);
304
- i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Template_button_click_24_listener() { const $index_r12 = i0.ɵɵrestoreView(_r11).$index; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.toggleCompareTo($index_r12)); });
305
- i0.ɵɵelementStart(25, "mat-icon");
306
- i0.ɵɵtext(26);
307
- i0.ɵɵelementEnd()()()()()();
308
- i0.ɵɵelementStart(27, "button", 55);
309
- i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Template_button_click_27_listener() { const $index_r12 = i0.ɵɵrestoreView(_r11).$index; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.removeCondition($index_r12)); });
310
- i0.ɵɵelementStart(28, "mat-icon");
311
- i0.ɵɵtext(29, "close");
312
- i0.ɵɵelementEnd()()();
313
- } if (rf & 2) {
314
- const cond_r14 = ctx.$implicit;
315
- const ɵ$index_111_r21 = ctx.$index;
316
- const ctx_r2 = i0.ɵɵnextContext(3);
317
- i0.ɵɵconditional(!(ɵ$index_111_r21 === 0) ? 0 : -1);
318
- i0.ɵɵadvance(6);
319
- i0.ɵɵclassProp("lib-validators-config__control--invalid", !cond_r14.field);
320
- i0.ɵɵadvance();
321
- i0.ɵɵproperty("selected", !cond_r14.field);
322
- i0.ɵɵadvance(2);
323
- i0.ɵɵconditional(ctx_r2.directFields().length ? 9 : -1);
324
- i0.ɵɵadvance();
325
- i0.ɵɵconditional(ctx_r2.listFields().length ? 10 : -1);
326
- i0.ɵɵadvance(6);
327
- i0.ɵɵrepeater(ctx_r2.operators);
328
- i0.ɵɵadvance(4);
329
- i0.ɵɵtextInterpolate1(" ", cond_r14.compareTo === "field" ? "Other field" : "Value", " ");
330
- i0.ɵɵadvance(2);
331
- i0.ɵɵconditional(cond_r14.compareTo === "field" ? 22 : 23);
332
- i0.ɵɵadvance(2);
333
- i0.ɵɵproperty("matTooltip", cond_r14.compareTo === "field" ? "Compare to a typed value" : "Compare to another field");
334
- i0.ɵɵattribute("aria-label", cond_r14.compareTo === "field" ? "Compare to a typed value" : "Compare to another field");
335
- i0.ɵɵadvance(2);
336
- i0.ɵɵtextInterpolate(cond_r14.compareTo === "field" ? "edit" : "link");
337
- } }
338
- function ValidatorsConfigComponent_Conditional_15_Conditional_10_Template(rf, ctx) { if (rf & 1) {
339
- const _r10 = i0.ɵɵgetCurrentView();
340
- i0.ɵɵconditionalCreate(0, ValidatorsConfigComponent_Conditional_15_Conditional_10_Conditional_0_Template, 2, 0, "p", 25);
341
- i0.ɵɵrepeaterCreate(1, ValidatorsConfigComponent_Conditional_15_Conditional_10_For_2_Template, 30, 11, null, null, i0.ɵɵrepeaterTrackByIndex);
342
- i0.ɵɵelementStart(3, "button", 41);
343
- i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Conditional_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r10); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.addCondition()); });
344
- i0.ɵɵelementStart(4, "mat-icon");
345
- i0.ɵɵtext(5, "add");
346
- i0.ɵɵelementEnd();
347
- i0.ɵɵtext(6, " Add condition ");
348
- i0.ɵɵelementEnd();
349
- } if (rf & 2) {
350
- const ctx_r2 = i0.ɵɵnextContext(2);
351
- i0.ɵɵconditional(ctx_r2.fieldOptions().length === 0 ? 0 : -1);
352
- i0.ɵɵadvance();
353
- i0.ɵɵrepeater(ctx_r2.group().conditions);
354
- } }
355
- function ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_Conditional_3_Template(rf, ctx) { if (rf & 1) {
356
- i0.ɵɵelementStart(0, "span", 60);
357
- i0.ɵɵtext(1, "optional");
358
- i0.ɵɵelementEnd();
359
- } }
360
- function ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_For_6_Template(rf, ctx) { if (rf & 1) {
361
- const _r22 = i0.ɵɵgetCurrentView();
362
- i0.ɵɵelementStart(0, "button", 63);
363
- i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_For_6_Template_button_click_0_listener() { const agg_r23 = i0.ɵɵrestoreView(_r22).$implicit; const f_r24 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.setFunction(f_r24.variable, agg_r23.value)); });
364
- i0.ɵɵtext(1);
365
- i0.ɵɵelementEnd();
366
- } if (rf & 2) {
367
- const agg_r23 = ctx.$implicit;
368
- const f_r24 = i0.ɵɵnextContext().$implicit;
369
- const ctx_r2 = i0.ɵɵnextContext(3);
370
- i0.ɵɵclassProp("lib-validators-config__agg-chip--on", ctx_r2.currentFunction(f_r24.variable) === agg_r23.value);
371
- i0.ɵɵadvance();
372
- i0.ɵɵtextInterpolate1(" ", agg_r23.label, " ");
373
- } }
374
- function ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_Template(rf, ctx) { if (rf & 1) {
375
- i0.ɵɵelementStart(0, "div", 58)(1, "span", 59);
376
- i0.ɵɵtext(2);
377
- i0.ɵɵconditionalCreate(3, ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_Conditional_3_Template, 2, 0, "span", 60);
378
- i0.ɵɵelementEnd();
379
- i0.ɵɵelementStart(4, "div", 61);
380
- i0.ɵɵrepeaterCreate(5, ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_For_6_Template, 2, 3, "button", 62, _forTrack1);
381
- i0.ɵɵelementEnd()();
382
- } if (rf & 2) {
383
- const f_r24 = ctx.$implicit;
384
- const ctx_r2 = i0.ɵɵnextContext(3);
385
- i0.ɵɵclassProp("lib-validators-config__list-row--unset", ctx_r2.isAggregateRequired(f_r24.variable) && !ctx_r2.currentFunction(f_r24.variable));
386
- i0.ɵɵadvance(2);
387
- i0.ɵɵtextInterpolate1(" ", f_r24.label, " ");
388
- i0.ɵɵadvance();
389
- i0.ɵɵconditional(!ctx_r2.isAggregateRequired(f_r24.variable) ? 3 : -1);
390
- i0.ɵɵadvance();
391
- i0.ɵɵattribute("aria-label", "Combine " + f_r24.label);
392
- i0.ɵɵadvance();
393
- i0.ɵɵrepeater(ctx_r2.aggregatesFor(f_r24));
394
- } }
395
- function ValidatorsConfigComponent_Conditional_15_Conditional_11_Template(rf, ctx) { if (rf & 1) {
396
- i0.ɵɵelementStart(0, "div", 20)(1, "span", 16);
397
- i0.ɵɵtext(2, "Combine each list");
398
- i0.ɵɵelementEnd();
399
- i0.ɵɵelementStart(3, "p", 25);
400
- i0.ɵɵtext(4, " A list field has many rows. Choose how to reduce it to one value when comparing against a single field or value \u2014 optional when comparing two lists. ");
401
- i0.ɵɵelementEnd();
402
- i0.ɵɵrepeaterCreate(5, ValidatorsConfigComponent_Conditional_15_Conditional_11_For_6_Template, 7, 5, "div", 57, _forTrack2);
403
- i0.ɵɵelementEnd();
404
- } if (rf & 2) {
405
- const ctx_r2 = i0.ɵɵnextContext(2);
406
- i0.ɵɵadvance(5);
407
- i0.ɵɵrepeater(ctx_r2.referencedListFields());
408
- } }
409
- function ValidatorsConfigComponent_Conditional_15_Conditional_12_Template(rf, ctx) { if (rf & 1) {
410
- i0.ɵɵelementStart(0, "div", 21)(1, "span", 16);
411
- i0.ɵɵtext(2, "Generated");
412
- i0.ɵɵelementEnd();
413
- i0.ɵɵelementStart(3, "code");
414
- i0.ɵɵtext(4);
415
- i0.ɵɵelementEnd()();
416
- } if (rf & 2) {
417
- const draft_r9 = i0.ɵɵnextContext();
418
- i0.ɵɵadvance(4);
419
- i0.ɵɵtextInterpolate(draft_r9.expression);
420
- } }
421
- function ValidatorsConfigComponent_Conditional_15_Conditional_18_Template(rf, ctx) { if (rf & 1) {
422
- i0.ɵɵtext(0, " Shown as a warning \u2014 the form can still be submitted. ");
423
- } }
424
- function ValidatorsConfigComponent_Conditional_15_Conditional_19_Template(rf, ctx) { if (rf & 1) {
425
- i0.ɵɵtext(0, " Blocks submission until the entry is fixed. ");
426
- } }
427
- function ValidatorsConfigComponent_Conditional_15_Conditional_21_Template(rf, ctx) { if (rf & 1) {
428
- const _r25 = i0.ɵɵgetCurrentView();
429
- i0.ɵɵelementStart(0, "button", 64);
430
- i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Conditional_21_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r25); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.useGuided()); });
431
- i0.ɵɵelementStart(1, "mat-icon");
432
- i0.ɵɵtext(2, "view_module");
433
- i0.ɵɵelementEnd();
434
- i0.ɵɵtext(3, " Guided ");
435
- i0.ɵɵelementEnd();
436
- } if (rf & 2) {
437
- const ctx_r2 = i0.ɵɵnextContext(2);
438
- i0.ɵɵproperty("disabled", !ctx_r2.canUseGuided())("matTooltip", ctx_r2.canUseGuided() ? "" : "This expression is too advanced for the guided builder");
439
- } }
440
- function ValidatorsConfigComponent_Conditional_15_Conditional_22_Template(rf, ctx) { if (rf & 1) {
441
- const _r26 = i0.ɵɵgetCurrentView();
442
- i0.ɵɵelementStart(0, "button", 41);
443
- i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Conditional_22_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.useRaw()); });
444
- i0.ɵɵelementStart(1, "mat-icon");
445
- i0.ɵɵtext(2, "code");
446
- i0.ɵɵelementEnd();
447
- i0.ɵɵtext(3, " Advanced ");
448
- i0.ɵɵelementEnd();
449
- } }
450
- function ValidatorsConfigComponent_Conditional_15_Conditional_23_Template(rf, ctx) { if (rf & 1) {
451
- i0.ɵɵelementStart(0, "p", 29)(1, "mat-icon", 65);
452
- i0.ɵɵtext(2, "info");
453
- i0.ɵɵelementEnd();
454
- i0.ɵɵelementStart(3, "span");
455
- i0.ɵɵtext(4);
456
- i0.ɵɵelementEnd()();
457
- } if (rf & 2) {
458
- i0.ɵɵadvance(4);
459
- i0.ɵɵtextInterpolate(ctx);
460
- } }
461
- function ValidatorsConfigComponent_Conditional_15_Template(rf, ctx) { if (rf & 1) {
462
- const _r6 = i0.ɵɵgetCurrentView();
463
- i0.ɵɵelementStart(0, "mat-card", 14);
464
- i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Template_mat_card_click_0_listener($event) { return $event.stopPropagation(); });
465
- i0.ɵɵelementStart(1, "label", 15)(2, "span", 16);
466
- i0.ɵɵtext(3, "Error message");
467
- i0.ɵɵelementEnd();
468
- i0.ɵɵelementStart(4, "textarea", 17);
469
- i0.ɵɵlistener("input", function ValidatorsConfigComponent_Conditional_15_Template_textarea_input_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onTextChange($event, "message")); });
470
- i0.ɵɵelementEnd()();
471
- i0.ɵɵelementStart(5, "div", 18)(6, "span", 16);
472
- i0.ɵɵtext(7, "Show this error when");
473
- i0.ɵɵelementEnd();
474
- i0.ɵɵconditionalCreate(8, ValidatorsConfigComponent_Conditional_15_Conditional_8_Template, 8, 1, "div", 19);
475
- i0.ɵɵelementEnd();
476
- i0.ɵɵconditionalCreate(9, ValidatorsConfigComponent_Conditional_15_Conditional_9_Template, 6, 2)(10, ValidatorsConfigComponent_Conditional_15_Conditional_10_Template, 7, 1);
477
- i0.ɵɵconditionalCreate(11, ValidatorsConfigComponent_Conditional_15_Conditional_11_Template, 7, 0, "div", 20);
478
- i0.ɵɵconditionalCreate(12, ValidatorsConfigComponent_Conditional_15_Conditional_12_Template, 5, 1, "div", 21);
479
- i0.ɵɵelementStart(13, "div", 22)(14, "mat-slide-toggle", 23);
480
- i0.ɵɵlistener("change", function ValidatorsConfigComponent_Conditional_15_Template_mat_slide_toggle_change_14_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.setCanOverride($event.checked)); });
481
- i0.ɵɵelementStart(15, "span", 24);
482
- i0.ɵɵtext(16, "Users can override this rule");
483
- i0.ɵɵelementEnd()();
484
- i0.ɵɵelementStart(17, "span", 25);
485
- i0.ɵɵconditionalCreate(18, ValidatorsConfigComponent_Conditional_15_Conditional_18_Template, 1, 0)(19, ValidatorsConfigComponent_Conditional_15_Conditional_19_Template, 1, 0);
486
- i0.ɵɵelementEnd()();
487
- i0.ɵɵelementStart(20, "div", 26);
488
- i0.ɵɵconditionalCreate(21, ValidatorsConfigComponent_Conditional_15_Conditional_21_Template, 4, 2, "button", 27)(22, ValidatorsConfigComponent_Conditional_15_Conditional_22_Template, 4, 0, "button", 28);
489
- i0.ɵɵelementEnd();
490
- i0.ɵɵconditionalCreate(23, ValidatorsConfigComponent_Conditional_15_Conditional_23_Template, 5, 1, "p", 29);
491
- i0.ɵɵelementStart(24, "mat-toolbar", 30);
492
- i0.ɵɵelement(25, "span", 31);
493
- i0.ɵɵelementStart(26, "button", 32);
494
- i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Template_button_click_26_listener() { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.closeEditor()); });
495
- i0.ɵɵtext(27, "Close");
496
- i0.ɵɵelementEnd();
497
- i0.ɵɵelementStart(28, "button", 33);
498
- i0.ɵɵlistener("click", function ValidatorsConfigComponent_Conditional_15_Template_button_click_28_listener() { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.saveVariable()); });
499
- i0.ɵɵtext(29, " Save rule ");
500
- i0.ɵɵelementEnd()()();
501
- } if (rf & 2) {
502
- let tmp_10_0;
503
- const draft_r9 = ctx;
504
- const ctx_r2 = i0.ɵɵnextContext();
505
- i0.ɵɵadvance(4);
506
- i0.ɵɵproperty("value", draft_r9.message);
507
- i0.ɵɵadvance(4);
508
- i0.ɵɵconditional(!ctx_r2.raw() && ctx_r2.group().conditions.length > 1 ? 8 : -1);
509
- i0.ɵɵadvance();
510
- i0.ɵɵconditional(ctx_r2.raw() ? 9 : 10);
511
- i0.ɵɵadvance(2);
512
- i0.ɵɵconditional(ctx_r2.referencedListFields().length ? 11 : -1);
513
- i0.ɵɵadvance();
514
- i0.ɵɵconditional(draft_r9.expression ? 12 : -1);
515
- i0.ɵɵadvance(2);
516
- i0.ɵɵproperty("checked", draft_r9.canOverride);
517
- i0.ɵɵadvance(4);
518
- i0.ɵɵconditional(draft_r9.canOverride ? 18 : 19);
519
- i0.ɵɵadvance(3);
520
- i0.ɵɵconditional(ctx_r2.raw() ? 21 : 22);
521
- i0.ɵɵadvance(2);
522
- i0.ɵɵconditional((tmp_10_0 = ctx_r2.saveHint()) ? 23 : -1, tmp_10_0);
523
- i0.ɵɵadvance(5);
524
- i0.ɵɵproperty("disabled", !ctx_r2.canSave());
525
- } }
526
- /**
527
- * Internal editor implementing `MatFormFieldControl<FormControlCustomValidatorsInterface[]>`
528
- * for authoring a form input's custom validators.
529
- *
530
- * Rendered by `t-dynamic-data-edit` inside its `<mat-form-field>`, which supplies
531
- * the surrounding field label, hint, and validation errors — so this component
532
- * owns only the validator chip list and the inline draft editor.
533
- *
534
- * ### Authoring model
535
- * A validator's `expression` is evaluated by the shared predicate DSL where
536
- * **`true` means the field is invalid** (the error message is then shown). The
537
- * editor captures that condition through a **guided builder** — `field operator
538
- * value` rows joined by All/Any — that serialises to the expression string and
539
- * auto-derives `inputsObservedForChanges` from the fields it references. An
540
- * **Advanced** raw editor is the escape hatch for expressions the builder cannot
541
- * represent (grouping, mixed connectors, negation); these round-trip unchanged.
542
- *
543
- * The bound `value` may contain both string entries (legacy validator-name
544
- * references such as `'required'`, which are read-only) and object entries
545
- * ({@link FormControlCustomValidatorsInterface}, which are editable). Only object
546
- * entries open the draft editor.
547
- *
548
- * NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /
549
- * `required` / `placeholder` / `id` members, `@Input()` decorators, the
550
- * `focused` / `touched` / `stateChanges` members, and the `useExisting`
551
- * provider. These are framework wiring, not defects — the CLAUDE.md bans on
552
- * `@Input()` / `useExisting` do not apply to MatFormFieldControl integration.
553
- */
554
- class ValidatorsConfigComponent {
555
- constructor() {
556
- /** Emits whenever a piece of `MatFormFieldControl` state changes. */
557
- this.stateChanges = new Subject();
558
- this.controlType = 'lib-validators-config';
559
- this.id = `lib-validators-config-${ValidatorsConfigComponent.nextId++}`;
560
- this.placeholder = '';
561
- this.focused = false;
562
- this.touched = false;
563
- this.required = false;
564
- this.describedBy = '';
565
- this.autofilled = undefined;
566
- this.userAriaDescribedBy = undefined;
567
- this.disableAutomaticLabeling = undefined;
568
- /** Whether the editor is inert. Kept as `@Input()` for the MFC contract. */
569
- this.disabled = false;
570
- /** Current validator list. Kept as `@Input()` for the MFC contract. */
571
- this.value = [];
572
- /** Validation errors surfaced by the parent for error-state derivation. */
573
- this.errors = [];
574
- /** Source input that owns this validator config (for multiple-input scopes). */
575
- this.mapToData = input(undefined, ...(ngDevMode ? [{ debugName: "mapToData" }] : /* istanbul ignore next */ []));
576
- /** Available form inputs offered as variables. */
577
- this.formInputs = input([], ...(ngDevMode ? [{ debugName: "formInputs" }] : /* istanbul ignore next */ []));
578
- /** Emits the full validator list whenever it changes. */
579
- this.valueChanged = output();
580
- /** Operator choices shared with the array-access predicate builder. */
581
- this.operators = PREDICATE_OPERATORS;
582
- /** Aggregate choices for a list field, with non-technical labels. */
583
- this.aggregates = [
584
- { value: CalculationFunctions.Sum, label: 'total' },
585
- { value: CalculationFunctions.Avg, label: 'average' },
586
- { value: CalculationFunctions.Min, label: 'lowest' },
587
- { value: CalculationFunctions.Max, label: 'highest' },
588
- { value: CalculationFunctions.Count, label: 'count' },
589
- ];
590
- this.#elementRef = inject(ElementRef);
591
- this.ngControl = inject(NgControl, { self: true, optional: true });
592
- /** Draft currently open in the inline editor, or `null` when closed. */
593
- this.#edit = signal(null, ...(ngDevMode ? [{ debugName: "#edit" }] : /* istanbul ignore next */ []));
594
- /** Read-only view of the open draft for the template. */
595
- this.edit = this.#edit.asReadonly();
596
- /** Guided builder model mirroring the open draft's expression. */
597
- this.#group = signal({ connector: '&&', conditions: [] }, ...(ngDevMode ? [{ debugName: "#group" }] : /* istanbul ignore next */ []));
598
- this.group = this.#group.asReadonly();
599
- /** Whether the draft is being edited as a raw expression instead of guided rows. */
600
- this.#raw = signal(false, ...(ngDevMode ? [{ debugName: "#raw" }] : /* istanbul ignore next */ []));
601
- this.raw = this.#raw.asReadonly();
602
- /** Chosen aggregate per referenced list variable (keyed by variable name). */
603
- this.#functions = signal({}, ...(ngDevMode ? [{ debugName: "#functions" }] : /* istanbul ignore next */ []));
604
- /** Whether the validator being authored lives on a multiple-input sub-item. */
605
- this.validatorOnList = computed(() => !!this.mapToData()?.multipleInputInEditId, ...(ngDevMode ? [{ debugName: "validatorOnList" }] : /* istanbul ignore next */ []));
606
- /**
607
- * Fields the builder can reference: every primary input plus every
608
- * multiple-input column. A multiple column carries its row-array container
609
- * (`parentInputId`); whether it must be aggregated is decided per condition
610
- * (see {@link requiredAggregateVariables}), not by the field itself.
611
- */
612
- this.fieldOptions = computed(() => {
613
- const self = this.mapToData();
614
- const selfId = self?.id;
615
- const options = [];
616
- for (const input of this.formInputs()) {
617
- if (!input.formControlName)
618
- continue;
619
- const group = input.multipleInputInEditId;
620
- options.push({
621
- variable: input.formControlName,
622
- label: input.label || input.formControlName,
623
- isSelf: input.id === selfId,
624
- isMultiple: !!group,
625
- numeric: this.#isNumeric(input),
626
- inputId: group ? input.id : (input.originalId ?? input.id),
627
- parentInputId: group,
628
- });
629
- }
630
- return options;
631
- }, ...(ngDevMode ? [{ debugName: "fieldOptions" }] : /* istanbul ignore next */ []));
632
- /** Primary (scalar) fields, for the first dropdown group. */
633
- this.directFields = computed(() => this.fieldOptions().filter((f) => !f.isMultiple), ...(ngDevMode ? [{ debugName: "directFields" }] : /* istanbul ignore next */ []));
634
- /** Multiple-input columns, for the second dropdown group. */
635
- this.listFields = computed(() => this.fieldOptions().filter((f) => f.isMultiple), ...(ngDevMode ? [{ debugName: "listFields" }] : /* istanbul ignore next */ []));
636
- /** Field option keyed by its expression variable, for operand lookups. */
637
- this.#fieldByVariable = computed(() => new Map(this.fieldOptions().map((f) => [f.variable, f])), ...(ngDevMode ? [{ debugName: "#fieldByVariable" }] : /* istanbul ignore next */ []));
638
- /** Multiple-input columns actually referenced by the current expression. */
639
- this.referencedListFields = computed(() => {
640
- const tokens = referencedTokens(this.#edit()?.expression ?? '');
641
- return this.listFields().filter((f) => tokens.has(f.variable));
642
- }, ...(ngDevMode ? [{ debugName: "referencedListFields" }] : /* istanbul ignore next */ []));
643
- /**
644
- * Multiple-input variables that MUST be aggregated: a list column compared
645
- * against a non-list operand (a primary field or a typed value) has to be
646
- * reduced to a single value. A list-vs-list comparison leaves the aggregate
647
- * optional (the columns are row-aligned). In raw mode operand pairing cannot
648
- * be analysed, so every referenced list column is treated as required.
649
- */
650
- this.requiredAggregateVariables = computed(() => {
651
- if (this.#raw()) {
652
- return new Set(this.referencedListFields().map((f) => f.variable));
653
- }
654
- const byVariable = this.#fieldByVariable();
655
- const required = new Set();
656
- for (const cond of this.#group().conditions) {
657
- const left = byVariable.get(cond.field);
658
- const right = cond.compareTo === 'field' ? byVariable.get(cond.value) : undefined;
659
- const leftMultiple = !!left?.isMultiple;
660
- const rightMultiple = !!right?.isMultiple;
661
- if (leftMultiple && !rightMultiple)
662
- required.add(cond.field);
663
- if (rightMultiple && !leftMultiple && right)
664
- required.add(right.variable);
665
- }
666
- return required;
667
- }, ...(ngDevMode ? [{ debugName: "requiredAggregateVariables" }] : /* istanbul ignore next */ []));
668
- /** Whether every list column that MUST be aggregated has an aggregate chosen. */
669
- this.aggregatesResolved = computed(() => {
670
- const functions = this.#functions();
671
- const required = this.requiredAggregateVariables();
672
- return [...required].every((variable) => !!functions[variable]);
673
- }, ...(ngDevMode ? [{ debugName: "aggregatesResolved" }] : /* istanbul ignore next */ []));
674
- /** Whether the guided builder has at least one condition and all are complete. */
675
- this.conditionsComplete = computed(() => {
676
- if (this.#raw())
677
- return true; // raw mode is gated by syntaxError + non-empty
678
- const conditions = this.#group().conditions;
679
- return conditions.length > 0 && conditions.every((c) => this.isConditionComplete(c));
680
- }, ...(ngDevMode ? [{ debugName: "conditionsComplete" }] : /* istanbul ignore next */ []));
681
- /** Whether the current draft expression can be edited in the guided builder. */
682
- this.canUseGuided = computed(() => parseConditions(this.#edit()?.expression ?? '', this.#fieldNameSet()) !== null, ...(ngDevMode ? [{ debugName: "canUseGuided" }] : /* istanbul ignore next */ []));
683
- /** Human-readable syntax error for the raw editor, or `null` when valid/empty. */
684
- this.syntaxError = computed(() => {
685
- const expression = this.#edit()?.expression ?? '';
686
- if (expression.trim() === '')
687
- return null;
688
- try {
689
- evaluatePredicate(expression, {});
690
- return null;
691
- }
692
- catch (error) {
693
- return error instanceof Error ? error.message : 'The expression syntax is invalid.';
694
- }
695
- }, ...(ngDevMode ? [{ debugName: "syntaxError" }] : /* istanbul ignore next */ []));
696
- /** Whether the open draft can be saved (message, a complete/valid rule, aggregates chosen). */
697
- this.canSave = computed(() => {
698
- const draft = this.#edit();
699
- return (!!draft &&
700
- !!draft.message &&
701
- !!draft.expression &&
702
- this.syntaxError() === null &&
703
- this.conditionsComplete() &&
704
- this.aggregatesResolved());
705
- }, ...(ngDevMode ? [{ debugName: "canSave" }] : /* istanbul ignore next */ []));
706
- /** A one-line reason the rule cannot be saved yet, or `null` when it can. */
707
- this.saveHint = computed(() => {
708
- const draft = this.#edit();
709
- if (!draft)
710
- return null;
711
- if (!draft.message)
712
- return 'Add an error message.';
713
- if (!this.#raw() && !this.conditionsComplete()) {
714
- return 'Finish every condition — choose a field, a condition and a value.';
715
- }
716
- if (!draft.expression)
717
- return 'Add at least one condition.';
718
- if (this.#raw() && this.syntaxError() !== null)
719
- return this.syntaxError();
720
- if (!this.aggregatesResolved())
721
- return 'Choose how to combine each list field.';
722
- return null;
723
- }, ...(ngDevMode ? [{ debugName: "saveHint" }] : /* istanbul ignore next */ []));
724
- this.onTouched = () => { };
725
- }
726
- static { this.nextId = 0; }
727
- #elementRef;
728
- /** Draft currently open in the inline editor, or `null` when closed. */
729
- #edit;
730
- /** Guided builder model mirroring the open draft's expression. */
731
- #group;
732
- /** Whether the draft is being edited as a raw expression instead of guided rows. */
733
- #raw;
734
- /** Chosen aggregate per referenced list variable (keyed by variable name). */
735
- #functions;
736
- /** Field option keyed by its expression variable, for operand lookups. */
737
- #fieldByVariable;
738
- /** Aggregates offered for a field: numeric columns get all, others only count. */
739
- aggregatesFor(field) {
740
- return field.numeric
741
- ? this.aggregates
742
- : this.aggregates.filter((a) => a.value === CalculationFunctions.Count);
743
- }
744
- /** Whether a referenced list column is required to have an aggregate. */
745
- isAggregateRequired(variable) {
746
- return this.requiredAggregateVariables().has(variable);
747
- }
748
- /**
749
- * Whether a guided condition is fully specified (field, operator and a value
750
- * all set). Incomplete conditions are otherwise silently dropped on save, so
751
- * this gates {@link canSave}.
752
- */
753
- isConditionComplete(condition) {
754
- return (condition.field.trim() !== '' &&
755
- condition.operator.trim() !== '' &&
756
- condition.value.trim() !== '');
757
- }
758
- // MatFormFieldControl reads these as plain getters during its own change
759
- // detection, so they stay getters rather than `computed()` signals.
760
- get empty() {
761
- return this.value.length === 0;
762
- }
763
- get shouldLabelFloat() {
764
- return this.focused || !this.empty;
765
- }
766
- get errorState() {
767
- const ngControlError = this.ngControl?.errors != null;
768
- const externalError = (this.errors?.length ?? 0) > 0 && this.touched;
769
- const requiredUnset = this.empty && this.required;
770
- return requiredUnset || ngControlError || externalError;
771
- }
772
- setDescribedByIds(ids) {
773
- this.describedBy = ids.join(' ');
774
- const el = this.#elementRef.nativeElement;
775
- const controlElement = el.querySelector('.lib-validators-config__list');
776
- controlElement?.setAttribute('aria-describedby', this.describedBy);
777
- this.stateChanges.next();
778
- }
779
- onContainerClick() {
780
- this.markAsTouched();
781
- this.stateChanges.next();
782
- }
783
- markAsTouched() {
784
- if (!this.touched) {
785
- this.touched = true;
786
- this.onTouched();
787
- this.stateChanges.next();
788
- }
789
- }
790
- /** Tear down the MFC state stream so subscribers do not leak. */
791
- ngOnDestroy() {
792
- this.stateChanges.complete();
793
- }
794
- /** `@for` track key: object validators by id, string validators by value. */
795
- trackValidator(validator) {
796
- return typeof validator === 'string' ? validator : validator.id;
797
- }
798
- /** Resolve the label shown on a validator chip. */
799
- validatorLabel(validator) {
800
- return typeof validator === 'string' ? validator : validator.message;
801
- }
802
- /** Whether a validator chip is the one currently being edited. */
803
- isEditing(validator) {
804
- if (typeof validator === 'string') {
805
- return false;
806
- }
807
- return this.#edit()?.id === validator.id;
808
- }
809
- /**
810
- * Open a validator for editing. String entries are read-only legacy
811
- * references and are ignored. Editing the open validator again closes it.
812
- * The draft is a clone, so edits only land in `value` on Save.
813
- *
814
- * DEFECT FIX (discard semantics): the editor is an inline panel with an
815
- * explicit Close/Save toolbar, not a transient overlay that vanishes on an
816
- * outside click. Opening a different validator (or {@link addValidator})
817
- * deliberately replaces the open draft — an explicit, documented discard,
818
- * never a silent loss mid-edit.
819
- */
820
- editV(validator) {
821
- if (typeof validator === 'string') {
822
- return;
823
- }
824
- if (this.#edit()?.id === validator.id) {
825
- this.#edit.set(null);
826
- return;
827
- }
828
- this.#edit.set(this.#cloneValidator(validator));
829
- this.#initBuilderFromDraft();
830
- }
831
- /** Begin a brand-new validator draft (id assigned on save). */
832
- addValidator() {
833
- this.#edit.set(this.#emptyDraft());
834
- this.#initBuilderFromDraft();
835
- }
836
- /** Discard the open draft without persisting it. */
837
- closeEditor() {
838
- this.#edit.set(null);
839
- }
840
- /** Remove a validator (string or object) from the list and emit. */
841
- remove(validator) {
842
- const next = this.value.filter((item) => !this.#sameValidator(item, validator));
843
- this.#commit(next);
844
- if (this.isEditing(validator)) {
845
- this.#edit.set(null);
846
- }
847
- }
848
- /** Update the draft's message, or replace its raw expression as the user types. */
849
- onTextChange(event, key) {
850
- const value = event.target.value;
851
- if (key === 'expression') {
852
- this.#syncExpression(value);
853
- return;
854
- }
855
- this.#edit.update((draft) => {
856
- const base = draft ?? this.#emptyDraft();
857
- return { ...base, message: value };
858
- });
859
- }
860
- /** Toggle whether users may override (warn instead of block) this validator. */
861
- setCanOverride(checked) {
862
- this.#edit.update((draft) => (draft ? { ...draft, canOverride: checked } : draft));
863
- }
864
- /**
865
- * Persist the open draft. A new draft (no id) is appended with a fresh uuid;
866
- * an existing draft (has id) replaces the matching entry. Emits the new list.
867
- */
868
- saveVariable() {
869
- const draft = this.#edit();
870
- if (!draft || !draft.message || !draft.expression) {
871
- return;
872
- }
873
- if (draft.id !== undefined) {
874
- const id = draft.id;
875
- const saved = { ...draft, id };
876
- this.#commit(this.value.map((item) => typeof item !== 'string' && item.id === id ? saved : item));
877
- }
878
- else {
879
- const saved = { ...draft, id: v4() };
880
- this.#commit([...this.value, saved]);
881
- }
882
- this.#edit.set(null);
883
- }
884
- // ---- guided condition builder ------------------------------------------
885
- /** Switch the All/Any connector joining the conditions. */
886
- setConnector(connector) {
887
- this.#applyGroup({ ...this.#group(), connector });
888
- }
889
- /** Append a fresh condition, defaulting its field to the owning input. */
890
- addCondition() {
891
- const fallback = this.directFields().find((f) => f.isSelf) ??
892
- this.directFields()[0] ??
893
- this.fieldOptions()[0];
894
- const group = this.#group();
895
- this.#applyGroup({
896
- ...group,
897
- conditions: [...group.conditions, emptyCondition(fallback?.variable ?? '')],
898
- });
899
- }
900
- /** Apply a partial change to the condition at `index`. */
901
- updateCondition(index, patch) {
902
- const group = this.#group();
903
- const conditions = group.conditions.map((c, i) => (i === index ? { ...c, ...patch } : c));
904
- this.#applyGroup({ ...group, conditions });
905
- }
906
- /** Flip a condition between comparing to a typed value and another field. */
907
- toggleCompareTo(index) {
908
- const condition = this.#group().conditions[index];
909
- if (!condition)
910
- return;
911
- if (condition.compareTo === 'value') {
912
- const field = this.fieldOptions().find((f) => f.variable !== condition.field);
913
- this.updateCondition(index, { compareTo: 'field', value: field?.variable ?? '' });
914
- }
915
- else {
916
- this.updateCondition(index, { compareTo: 'value', value: '' });
917
- }
918
- }
919
- /** Remove the condition at `index`. */
920
- removeCondition(index) {
921
- const group = this.#group();
922
- this.#applyGroup({ ...group, conditions: group.conditions.filter((_, i) => i !== index) });
923
- }
924
- /**
925
- * Choose (or clear, by re-clicking) the aggregate that reduces a referenced
926
- * list field to a single value.
927
- */
928
- setFunction(variable, fn) {
929
- this.#functions.update((current) => {
930
- const next = { ...current };
931
- if (next[variable] === fn) {
932
- delete next[variable];
933
- }
934
- else {
935
- next[variable] = fn;
936
- }
937
- return next;
938
- });
939
- // The expression text is unchanged, but the observed deps now carry the
940
- // aggregate — re-sync so inputsObservedForChanges reflects the choice.
941
- this.#syncExpression(this.#edit()?.expression ?? '');
942
- }
943
- /** The aggregate currently chosen for a list variable, if any. */
944
- currentFunction(variable) {
945
- return this.#functions()[variable];
946
- }
947
- /** Switch to the raw expression editor. */
948
- useRaw() {
949
- this.#raw.set(true);
950
- }
951
- /** Switch back to the guided builder, reparsing the current expression. */
952
- useGuided() {
953
- if (!this.canUseGuided())
954
- return;
955
- this.#initGroupFromExpression();
956
- this.#raw.set(false);
957
- }
958
- /** Read the value-event target as a string. */
959
- inputValue(event) {
960
- return event.target.value;
961
- }
962
- // ---- internal ----------------------------------------------------------
963
- #emptyDraft() {
964
- return {
965
- message: '',
966
- expression: '',
967
- canOverride: false,
968
- inputsObservedForChanges: [],
969
- };
970
- }
971
- #cloneValidator(validator) {
972
- return {
973
- ...validator,
974
- inputsObservedForChanges: validator.inputsObservedForChanges.map((i) => ({ ...i })),
975
- };
976
- }
977
- #sameValidator(item, target) {
978
- if (typeof item === 'string' || typeof target === 'string') {
979
- return item === target;
980
- }
981
- return item.id === target.id;
982
- }
983
- /** Set of field variable names the builder recognises (for parsing). */
984
- #fieldNameSet() {
985
- return new Set(this.fieldOptions().map((f) => f.variable));
986
- }
987
- /** Whether an input carries a numeric data type. */
988
- #isNumeric(input) {
989
- return input.dataType === InputDataTypes.Number || input.type === InputTypes.Number;
990
- }
991
- /** Recover the per-variable aggregate choices from a draft's observed inputs. */
992
- #functionsFromDraft() {
993
- const map = {};
994
- for (const observed of this.#edit()?.inputsObservedForChanges ?? []) {
995
- if (observed.function)
996
- map[observed.variable] = observed.function;
997
- }
998
- return map;
999
- }
1000
- /** Seed the builder state when a draft opens: guided if parseable, else raw. */
1001
- #initBuilderFromDraft() {
1002
- this.#functions.set(this.#functionsFromDraft());
1003
- const parsed = parseConditions(this.#edit()?.expression ?? '', this.#fieldNameSet());
1004
- if (parsed) {
1005
- this.#group.set(parsed);
1006
- this.#raw.set(false);
1007
- }
1008
- else {
1009
- this.#raw.set(true);
1010
- }
1011
- }
1012
- /** Reparse the current draft expression into the guided model. */
1013
- #initGroupFromExpression() {
1014
- const parsed = parseConditions(this.#edit()?.expression ?? '', this.#fieldNameSet());
1015
- if (parsed) {
1016
- this.#group.set(parsed);
1017
- }
1018
- }
1019
- /** Store a builder change: update the model, then serialise into the draft. */
1020
- #applyGroup(next) {
1021
- this.#group.set(next);
1022
- this.#syncExpression(serializeConditions(next));
1023
- }
1024
- /** Write an expression onto the draft and re-derive its observed-input deps. */
1025
- #syncExpression(expression) {
1026
- const fields = this.fieldOptions();
1027
- const functions = this.#functions();
1028
- this.#edit.update((draft) => {
1029
- const base = draft ?? this.#emptyDraft();
1030
- return {
1031
- ...base,
1032
- expression,
1033
- inputsObservedForChanges: deriveObservedInputs(expression, fields, functions),
1034
- };
1035
- });
1036
- }
1037
- /** Single mutation path: store the new list and notify the parent. */
1038
- #commit(next) {
1039
- this.value = next;
1040
- this.markAsTouched();
1041
- this.stateChanges.next();
1042
- this.valueChanged.emit([...next]);
1043
- }
1044
- static { this.ɵfac = function ValidatorsConfigComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ValidatorsConfigComponent)(); }; }
1045
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ValidatorsConfigComponent, selectors: [["lib-validators-config"]], hostAttrs: [1, "lib-validators-config"], hostVars: 1, hostBindings: function ValidatorsConfigComponent_HostBindings(rf, ctx) { if (rf & 2) {
1046
- i0.ɵɵattribute("id", ctx.id);
1047
- } }, inputs: { disabled: "disabled", value: "value", errors: "errors", mapToData: [1, "mapToData"], formInputs: [1, "formInputs"] }, outputs: { valueChanged: "valueChanged" }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: ValidatorsConfigComponent }])], decls: 16, vars: 3, consts: [[1, "lib-validators-config__list"], [1, "lib-validators-config__title"], [1, "lib-validators-config__hint"], [1, "lib-validators-config__hint-icon"], ["aria-label", "Validation rules", 3, "disabled"], [1, "lib-validators-config__chip", 3, "selected"], ["matTooltip", "Add a new validation rule", 1, "lib-validators-config__add", 3, "selectable", "disabled"], [1, "lib-validators-config__editor"], [1, "lib-validators-config__chip", 3, "click", "selected"], [1, "lib-validators-config__chip-label"], ["matChipTrailingIcon", ""], ["matChipRemove", ""], ["matChipRemove", "", 3, "click"], ["matTooltip", "Add a new validation rule", 1, "lib-validators-config__add", 3, "click", "selectable", "disabled"], [1, "lib-validators-config__editor", 3, "click"], [1, "lib-validators-config__field"], [1, "lib-validators-config__f-label"], ["rows", "2", "placeholder", "e.g. End date must be after the start date", 1, "lib-validators-config__control", "lib-validators-config__textarea", 3, "input", "value"], [1, "lib-validators-config__condition-head"], [1, "lib-validators-config__match"], [1, "lib-validators-config__lists"], [1, "lib-validators-config__preview"], [1, "lib-validators-config__override"], ["name", "canOverride", 3, "change", "checked"], [1, "lib-validators-config__toggle-label"], [1, "lib-validators-config__sub-hint"], [1, "lib-validators-config__foot"], ["type", "button", 1, "lib-validators-config__link", 3, "disabled", "matTooltip"], ["type", "button", 1, "lib-validators-config__link"], [1, "lib-validators-config__save-hint"], [1, "lib-validators-config__toolbar"], [1, "lib-validators-config__spacer"], ["mat-button", "", 3, "click"], ["mat-raised-button", "", "color", "accent", 3, "click", "disabled"], ["hideSingleSelectionIndicator", "", "aria-label", "Combine conditions", 1, "lib-validators-config__seg", 3, "change", "value"], ["value", "&&"], ["value", "||"], [1, "lib-validators-config__muted"], ["rows", "2", "placeholder", "e.g. endDate < startDate", 1, "lib-validators-config__control", "lib-validators-config__textarea", "lib-validators-config__mono", 3, "input", "value"], [1, "lib-validators-config__error"], [1, "lib-validators-config__error-icon"], ["type", "button", 1, "lib-validators-config__link", 3, "click"], ["aria-hidden", "true", 1, "lib-validators-config__connector"], [1, "lib-validators-config__cond"], [1, "lib-validators-config__cond-body"], [1, "lib-validators-config__control", 3, "change"], ["value", "", "disabled", "", 3, "selected"], ["label", "Fields"], ["label", "List fields (totalled)"], [1, "lib-validators-config__cond-pair"], [3, "value", "selected"], [1, "lib-validators-config__value"], [1, "lib-validators-config__control", 3, "lib-validators-config__control--invalid"], ["placeholder", "e.g. 18", 1, "lib-validators-config__control", 3, "lib-validators-config__control--invalid", "value"], ["type", "button", 1, "lib-validators-config__value-toggle", 3, "click", "matTooltip"], ["type", "button", "mat-icon-button", "", "matTooltip", "Remove condition", "aria-label", "Remove condition", 1, "lib-validators-config__cond-remove", 3, "click"], ["placeholder", "e.g. 18", 1, "lib-validators-config__control", 3, "input", "value"], [1, "lib-validators-config__list-row", 3, "lib-validators-config__list-row--unset"], [1, "lib-validators-config__list-row"], [1, "lib-validators-config__list-name"], [1, "lib-validators-config__list-optional"], ["role", "group", 1, "lib-validators-config__agg"], ["type", "button", 1, "lib-validators-config__agg-chip", 3, "lib-validators-config__agg-chip--on"], ["type", "button", 1, "lib-validators-config__agg-chip", 3, "click"], ["type", "button", 1, "lib-validators-config__link", 3, "click", "disabled", "matTooltip"], [1, "lib-validators-config__save-hint-icon"]], template: function ValidatorsConfigComponent_Template(rf, ctx) { if (rf & 1) {
1048
- i0.ɵɵelementStart(0, "section", 0)(1, "h5", 1);
1049
- i0.ɵɵtext(2, "Validation rules");
1050
- i0.ɵɵelementEnd();
1051
- i0.ɵɵelementStart(3, "p", 2)(4, "mat-icon", 3);
1052
- i0.ɵɵtext(5, "lightbulb");
1053
- i0.ɵɵelementEnd();
1054
- i0.ɵɵelementStart(6, "span");
1055
- i0.ɵɵtext(7, "Each rule shows its message when its condition is true \u2014 describe when the entry is ");
1056
- i0.ɵɵelementStart(8, "strong");
1057
- i0.ɵɵtext(9, "wrong");
1058
- i0.ɵɵelementEnd();
1059
- i0.ɵɵtext(10, ".");
1060
- i0.ɵɵelementEnd()();
1061
- i0.ɵɵelementStart(11, "mat-chip-listbox", 4);
1062
- i0.ɵɵrepeaterCreate(12, ValidatorsConfigComponent_For_13_Template, 6, 5, "mat-chip-option", 5, _forTrack0, true);
1063
- i0.ɵɵconditionalCreate(14, ValidatorsConfigComponent_Conditional_14_Template, 4, 2, "mat-chip-option", 6);
1064
- i0.ɵɵelementEnd()();
1065
- i0.ɵɵconditionalCreate(15, ValidatorsConfigComponent_Conditional_15_Template, 30, 10, "mat-card", 7);
1066
- } if (rf & 2) {
1067
- let tmp_3_0;
1068
- i0.ɵɵadvance(11);
1069
- i0.ɵɵproperty("disabled", ctx.disabled);
1070
- i0.ɵɵadvance();
1071
- i0.ɵɵrepeater(ctx.value);
1072
- i0.ɵɵadvance(2);
1073
- i0.ɵɵconditional(!ctx.edit() ? 14 : -1);
1074
- i0.ɵɵadvance();
1075
- i0.ɵɵconditional((tmp_3_0 = ctx.edit()) ? 15 : -1, tmp_3_0);
1076
- } }, dependencies: [CommonModule,
1077
- MatIconModule, i3.MatIcon, MatChipsModule, i4.MatChipListbox, i4.MatChipOption, i4.MatChipRemove, i4.MatChipTrailingIcon, MatCardModule, i3$1.MatCard, MatToolbarModule, i8.MatToolbar, MatButtonModule, i2.MatButton, i2.MatIconButton, MatButtonToggleModule, i3$2.MatButtonToggleGroup, i3$2.MatButtonToggle, MatSlideToggleModule, i1.MatSlideToggle, MatTooltipModule, i5.MatTooltip, i3$3.TitleCasePipe], styles: ["@charset \"UTF-8\";[_nghost-%COMP%]{display:block}.lib-validators-config__title[_ngcontent-%COMP%]{margin:0 0 .5rem;font-size:.9375rem;font-weight:500;letter-spacing:-.01em;color:var(--lib-forms-on-surface)}.lib-validators-config__hint[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem;margin:0 0 1.25rem;font-size:.8125rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__hint-icon[_ngcontent-%COMP%]{flex:none;font-size:1.125rem;width:1.125rem;height:1.125rem;color:var(--sem-info, var(--lib-forms-primary))}.lib-validators-config__chip[_ngcontent-%COMP%]{height:fit-content;padding:.5rem;cursor:pointer}.lib-validators-config__chip-label[_ngcontent-%COMP%]{white-space:normal}.lib-validators-config__add[_ngcontent-%COMP%]{cursor:pointer}.lib-validators-config__editor[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem;margin-top:1.25rem;padding:1.5rem;background:var(--lib-forms-surface-container-low);border-radius:var(--lib-forms-radius-lg, 16px);box-shadow:var(--lib-forms-shadow-edge)}.lib-validators-config__field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:0}.lib-validators-config__f-label[_ngcontent-%COMP%]{font-size:.625rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__control[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;min-width:0;height:2.125rem;padding:.375rem .5rem;font-family:inherit;font-size:.8125rem;line-height:1.25;color:var(--lib-forms-on-surface);background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}select.lib-validators-config__control[_ngcontent-%COMP%]{cursor:pointer}.lib-validators-config__textarea[_ngcontent-%COMP%]{height:auto;min-height:2.75rem;line-height:1.45;resize:vertical}.lib-validators-config__mono[_ngcontent-%COMP%]{font-family:var(--lib-forms-font-mono, monospace)}.lib-validators-config__control[_ngcontent-%COMP%]:hover{border-color:var(--lib-forms-outline)}.lib-validators-config__control[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 1px var(--lib-forms-primary)}.lib-validators-config__control--invalid[_ngcontent-%COMP%]:not(:focus){border-color:var(--sem-warning, var(--lib-forms-outline));background:var(--sem-warning-surface, var(--lib-forms-surface-container-lowest))}.lib-validators-config__condition-head[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem}.lib-validators-config__match[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.625rem;flex-wrap:wrap}.lib-validators-config__match[_ngcontent-%COMP%] .mat-button-toggle-group{border:none;border-radius:var(--lib-forms-radius-pill, 999px);background:var(--lib-forms-surface-container-high);padding:.25rem;gap:.25rem;box-shadow:none;overflow:hidden}.lib-validators-config__match[_ngcontent-%COMP%] .mat-button-toggle{border:none;background:transparent;border-radius:var(--lib-forms-radius-pill, 999px);color:var(--lib-forms-on-surface-variant);transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-validators-config__match[_ngcontent-%COMP%] .mat-button-toggle+.mat-button-toggle{border-left:none}.lib-validators-config__match[_ngcontent-%COMP%] .mat-button-toggle-button{height:auto}.lib-validators-config__match[_ngcontent-%COMP%] .mat-button-toggle-label-content{padding:.25rem .75rem;line-height:1.5;font-size:.75rem;font-weight:600}.lib-validators-config__match[_ngcontent-%COMP%] .mat-button-toggle-checked{background:var(--lib-forms-surface);color:var(--lib-forms-primary);box-shadow:var(--lib-forms-shadow-edge)}.lib-validators-config__match[_ngcontent-%COMP%] .mat-pseudo-checkbox{display:none}.lib-validators-config__muted[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__connector[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:-.375rem 0}.lib-validators-config__connector[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:.0625rem .5rem;font-size:.625rem;font-weight:600;letter-spacing:.1em;color:var(--lib-forms-on-surface-variant);background:var(--lib-forms-surface-container-high);border-radius:var(--lib-forms-radius-pill, 999px)}.lib-validators-config__cond[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto;align-items:start;gap:.375rem;padding:.75rem;background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-md)}.lib-validators-config__cond-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem;min-width:0}.lib-validators-config__cond-pair[_ngcontent-%COMP%]{display:grid;grid-template-columns:8.5rem 1fr;gap:.5rem;min-width:0}.lib-validators-config__value[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;min-width:0}.lib-validators-config__value-toggle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2.125rem;height:2.125rem;padding:0;color:var(--lib-forms-on-surface-variant);background:transparent;border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm);cursor:pointer;transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-validators-config__value-toggle[_ngcontent-%COMP%]:hover{color:var(--lib-forms-primary);border-color:var(--lib-forms-primary)}.lib-validators-config__value-toggle[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.lib-validators-config__cond-remove[_ngcontent-%COMP%]{width:2rem;height:2rem;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;align-self:flex-start;gap:.25rem;height:1.875rem;padding:0 .5rem;font:inherit;font-size:.8125rem;font-weight:500;color:var(--lib-forms-primary);background:transparent;border:0;border-radius:var(--lib-forms-radius-sm);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-validators-config__link[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--lib-forms-primary-container)}.lib-validators-config__link[_ngcontent-%COMP%]:disabled{color:var(--lib-forms-on-surface-variant);cursor:default;opacity:.6}.lib-validators-config__link[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex:none;font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.lib-validators-config__lists[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:.75rem;background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-md)}.lib-validators-config__list-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.lib-validators-config__list-name[_ngcontent-%COMP%]{font-size:.8125rem;font-weight:500;color:var(--lib-forms-on-surface)}.lib-validators-config__list-row--unset[_ngcontent-%COMP%] .lib-validators-config__list-name[_ngcontent-%COMP%]:after{content:\" \\2014 pick one\";font-weight:400;color:var(--sem-warning, var(--lib-forms-on-surface-variant))}.lib-validators-config__list-optional[_ngcontent-%COMP%]{margin-left:.375rem;font-size:.625rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__agg[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.25rem}.lib-validators-config__agg-chip[_ngcontent-%COMP%]{padding:.1875rem .5rem;font:inherit;font-size:.75rem;font-weight:500;color:var(--lib-forms-on-surface-variant);background:var(--lib-forms-surface-container);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-pill, 999px);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-validators-config__agg-chip[_ngcontent-%COMP%]:hover{border-color:var(--lib-forms-primary);color:var(--lib-forms-primary)}.lib-validators-config__agg-chip--on[_ngcontent-%COMP%]{color:var(--lib-forms-on-primary, var(--mat-sys-on-primary));background:var(--lib-forms-primary);border-color:var(--lib-forms-primary)}.lib-validators-config__preview[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:.5rem;padding:.5rem .625rem;background:var(--lib-forms-surface-container-lowest);border:1px dashed var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm)}.lib-validators-config__preview[_ngcontent-%COMP%] .lib-validators-config__f-label[_ngcontent-%COMP%]{flex:none}.lib-validators-config__preview[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font-family:var(--lib-forms-font-mono, monospace);font-size:.75rem;color:var(--lib-forms-on-surface-variant);word-break:break-word}.lib-validators-config__sub-hint[_ngcontent-%COMP%]{margin:0;font-size:.75rem;line-height:1.45;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__sub-hint[_ngcontent-%COMP%] code[_ngcontent-%COMP%], .lib-validators-config__error[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font-family:var(--lib-forms-font-mono, monospace);padding:.0625rem .25rem;background:var(--lib-forms-surface-container-high);border-radius:var(--lib-forms-radius-sm)}.lib-validators-config__error[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.375rem;margin:0;font-size:.75rem;line-height:1.45;color:var(--sem-error, var(--mat-sys-error))}.lib-validators-config__error-icon[_ngcontent-%COMP%]{flex:none;font-size:1rem;width:1rem;height:1rem}.lib-validators-config__override[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.lib-validators-config__toggle-label[_ngcontent-%COMP%]{margin-left:.5rem;font-size:.8125rem}.lib-validators-config__foot[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:-.5rem}.lib-validators-config__save-hint[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.375rem;margin:0;font-size:.75rem;line-height:1.45;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__save-hint-icon[_ngcontent-%COMP%]{flex:none;font-size:1rem;width:1rem;height:1rem;color:var(--sem-info, var(--lib-forms-primary))}.lib-validators-config__toolbar[_ngcontent-%COMP%]{background:transparent;padding:0}.lib-validators-config__spacer[_ngcontent-%COMP%]{flex:1 1 auto}"], changeDetection: 0 }); }
1078
- }
1079
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ValidatorsConfigComponent, [{
1080
- type: Component,
1081
- args: [{ selector: 'lib-validators-config', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, imports: [
1082
- CommonModule,
1083
- MatIconModule,
1084
- MatChipsModule,
1085
- MatCardModule,
1086
- MatToolbarModule,
1087
- MatButtonModule,
1088
- MatButtonToggleModule,
1089
- MatSlideToggleModule,
1090
- MatTooltipModule,
1091
- ], providers: [{ provide: MatFormFieldControl, useExisting: ValidatorsConfigComponent }], host: {
1092
- 'class': 'lib-validators-config',
1093
- '[attr.id]': 'id',
1094
- }, template: "<section class=\"lib-validators-config__list\">\n <h5 class=\"lib-validators-config__title\">Validation rules</h5>\n\n <p class=\"lib-validators-config__hint\">\n <mat-icon class=\"lib-validators-config__hint-icon\">lightbulb</mat-icon>\n <span>Each rule shows its message when its condition is true \u2014 describe when the entry is\n <strong>wrong</strong>.</span>\n </p>\n\n <mat-chip-listbox [disabled]=\"disabled\" aria-label=\"Validation rules\">\n @for (validator of value; track trackValidator(validator)) {\n <mat-chip-option\n class=\"lib-validators-config__chip\"\n [selected]=\"isEditing(validator)\"\n (click)=\"editV(validator)\"\n >\n <span class=\"lib-validators-config__chip-label\">\n {{ validatorLabel(validator) | titlecase }}\n </span>\n\n @if (isEditing(validator)) {\n <mat-icon matChipTrailingIcon>check_circle</mat-icon>\n } @else {\n <button matChipRemove [attr.aria-label]=\"'remove validator'\" (click)=\"remove(validator)\">\n <mat-icon>cancel</mat-icon>\n </button>\n }\n </mat-chip-option>\n }\n\n @if (!edit()) {\n <mat-chip-option\n class=\"lib-validators-config__add\"\n matTooltip=\"Add a new validation rule\"\n [selectable]=\"false\"\n [disabled]=\"disabled\"\n (click)=\"addValidator()\"\n >\n Add rule\n <mat-icon matChipTrailingIcon>add</mat-icon>\n </mat-chip-option>\n }\n </mat-chip-listbox>\n</section>\n\n@if (edit(); as draft) {\n<mat-card class=\"lib-validators-config__editor\" (click)=\"$event.stopPropagation()\">\n <label class=\"lib-validators-config__field\">\n <span class=\"lib-validators-config__f-label\">Error message</span>\n <textarea\n class=\"lib-validators-config__control lib-validators-config__textarea\"\n rows=\"2\"\n [value]=\"draft.message\"\n (input)=\"onTextChange($event, 'message')\"\n placeholder=\"e.g. End date must be after the start date\"\n ></textarea>\n </label>\n\n <div class=\"lib-validators-config__condition-head\">\n <span class=\"lib-validators-config__f-label\">Show this error when</span>\n @if (!raw() && group().conditions.length > 1) {\n <div class=\"lib-validators-config__match\">\n <mat-button-toggle-group\n class=\"lib-validators-config__seg\"\n [value]=\"group().connector\"\n hideSingleSelectionIndicator\n (change)=\"setConnector($event.value)\"\n aria-label=\"Combine conditions\"\n >\n <mat-button-toggle value=\"&&\">All</mat-button-toggle>\n <mat-button-toggle value=\"||\">Any</mat-button-toggle>\n </mat-button-toggle-group>\n <span class=\"lib-validators-config__muted\">of these match</span>\n </div>\n }\n </div>\n\n @if (raw()) {\n <label class=\"lib-validators-config__field\">\n <span class=\"lib-validators-config__f-label\">Expression</span>\n <textarea\n class=\"lib-validators-config__control lib-validators-config__textarea lib-validators-config__mono\"\n rows=\"2\"\n [value]=\"draft.expression\"\n (input)=\"onTextChange($event, 'expression')\"\n placeholder='e.g. endDate < startDate'\n ></textarea>\n </label>\n @if (syntaxError(); as error) {\n <p class=\"lib-validators-config__error\">\n <mat-icon class=\"lib-validators-config__error-icon\">error_outline</mat-icon>\n <span>{{ error }}</span>\n </p>\n } @else {\n <p class=\"lib-validators-config__sub-hint\">\n True means the entry is invalid. Reference a field by its name; comparisons use\n <code>===</code>, <code>&gt;</code>, <code>includes</code> \u2026\n </p>\n }\n } @else {\n @if (fieldOptions().length === 0) {\n <p class=\"lib-validators-config__sub-hint\">\n No fields available yet \u2014 switch to Advanced to type an expression.\n </p>\n }\n @for (cond of group().conditions; track $index; let first = $first) {\n @if (!first) {\n <div class=\"lib-validators-config__connector\" aria-hidden=\"true\">\n <span>{{ group().connector === '&&' ? 'AND' : 'OR' }}</span>\n </div>\n }\n <div class=\"lib-validators-config__cond\">\n <div class=\"lib-validators-config__cond-body\">\n <label class=\"lib-validators-config__field\">\n <span class=\"lib-validators-config__f-label\">Field</span>\n <select\n class=\"lib-validators-config__control\"\n [class.lib-validators-config__control--invalid]=\"!cond.field\"\n (change)=\"updateCondition($index, { field: inputValue($event) })\"\n >\n <option value=\"\" disabled [selected]=\"!cond.field\">Choose a field</option>\n @if (directFields().length) {\n <optgroup label=\"Fields\">\n @for (f of directFields(); track f.variable) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.field\">\n {{ f.label }}{{ f.isSelf ? ' (this field)' : '' }}\n </option>\n }\n </optgroup>\n }\n @if (listFields().length) {\n <optgroup label=\"List fields (totalled)\">\n @for (f of listFields(); track f.variable) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.field\">{{ f.label }}</option>\n }\n </optgroup>\n }\n </select>\n </label>\n\n <div class=\"lib-validators-config__cond-pair\">\n <label class=\"lib-validators-config__field\">\n <span class=\"lib-validators-config__f-label\">Condition</span>\n <select\n class=\"lib-validators-config__control\"\n (change)=\"updateCondition($index, { operator: inputValue($event) })\"\n >\n @for (op of operators; track op.value) {\n <option [value]=\"op.value\" [selected]=\"op.value === cond.operator\">{{ op.label }}</option>\n }\n </select>\n </label>\n\n <div class=\"lib-validators-config__field\">\n <span class=\"lib-validators-config__f-label\">\n {{ cond.compareTo === 'field' ? 'Other field' : 'Value' }}\n </span>\n <div class=\"lib-validators-config__value\">\n @if (cond.compareTo === 'field') {\n <select\n class=\"lib-validators-config__control\"\n [class.lib-validators-config__control--invalid]=\"!cond.value\"\n (change)=\"updateCondition($index, { value: inputValue($event) })\"\n >\n <option value=\"\" disabled [selected]=\"!cond.value\">Choose a field</option>\n @if (directFields().length) {\n <optgroup label=\"Fields\">\n @for (f of directFields(); track f.variable) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.value\">\n {{ f.label }}{{ f.isSelf ? ' (this field)' : '' }}\n </option>\n }\n </optgroup>\n }\n @if (listFields().length) {\n <optgroup label=\"List fields (totalled)\">\n @for (f of listFields(); track f.variable) {\n <option [value]=\"f.variable\" [selected]=\"f.variable === cond.value\">{{ f.label }}</option>\n }\n </optgroup>\n }\n </select>\n } @else {\n <input\n class=\"lib-validators-config__control\"\n [class.lib-validators-config__control--invalid]=\"!cond.value\"\n [value]=\"cond.value\"\n (input)=\"updateCondition($index, { value: inputValue($event) })\"\n placeholder=\"e.g. 18\"\n />\n }\n <button\n type=\"button\"\n class=\"lib-validators-config__value-toggle\"\n (click)=\"toggleCompareTo($index)\"\n [attr.aria-label]=\"\n cond.compareTo === 'field' ? 'Compare to a typed value' : 'Compare to another field'\n \"\n [matTooltip]=\"\n cond.compareTo === 'field' ? 'Compare to a typed value' : 'Compare to another field'\n \"\n >\n <mat-icon>{{ cond.compareTo === 'field' ? 'edit' : 'link' }}</mat-icon>\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <button\n type=\"button\"\n class=\"lib-validators-config__cond-remove\"\n mat-icon-button\n (click)=\"removeCondition($index)\"\n matTooltip=\"Remove condition\"\n aria-label=\"Remove condition\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n }\n\n <button type=\"button\" class=\"lib-validators-config__link\" (click)=\"addCondition()\">\n <mat-icon>add</mat-icon> Add condition\n </button>\n }\n\n @if (referencedListFields().length) {\n <div class=\"lib-validators-config__lists\">\n <span class=\"lib-validators-config__f-label\">Combine each list</span>\n <p class=\"lib-validators-config__sub-hint\">\n A list field has many rows. Choose how to reduce it to one value when comparing against a\n single field or value \u2014 optional when comparing two lists.\n </p>\n @for (f of referencedListFields(); track f.variable) {\n <div\n class=\"lib-validators-config__list-row\"\n [class.lib-validators-config__list-row--unset]=\"\n isAggregateRequired(f.variable) && !currentFunction(f.variable)\n \"\n >\n <span class=\"lib-validators-config__list-name\">\n {{ f.label }}\n @if (!isAggregateRequired(f.variable)) {\n <span class=\"lib-validators-config__list-optional\">optional</span>\n }\n </span>\n <div class=\"lib-validators-config__agg\" role=\"group\" [attr.aria-label]=\"'Combine ' + f.label\">\n @for (agg of aggregatesFor(f); track agg.value) {\n <button\n type=\"button\"\n class=\"lib-validators-config__agg-chip\"\n [class.lib-validators-config__agg-chip--on]=\"currentFunction(f.variable) === agg.value\"\n (click)=\"setFunction(f.variable, agg.value)\"\n >\n {{ agg.label }}\n </button>\n }\n </div>\n </div>\n }\n </div>\n }\n\n @if (draft.expression) {\n <div class=\"lib-validators-config__preview\">\n <span class=\"lib-validators-config__f-label\">Generated</span>\n <code>{{ draft.expression }}</code>\n </div>\n }\n\n <div class=\"lib-validators-config__override\">\n <mat-slide-toggle\n name=\"canOverride\"\n [checked]=\"draft.canOverride\"\n (change)=\"setCanOverride($event.checked)\"\n >\n <span class=\"lib-validators-config__toggle-label\">Users can override this rule</span>\n </mat-slide-toggle>\n <span class=\"lib-validators-config__sub-hint\">\n @if (draft.canOverride) { Shown as a warning \u2014 the form can still be submitted. } @else { Blocks\n submission until the entry is fixed. }\n </span>\n </div>\n\n <div class=\"lib-validators-config__foot\">\n @if (raw()) {\n <button\n type=\"button\"\n class=\"lib-validators-config__link\"\n [disabled]=\"!canUseGuided()\"\n [matTooltip]=\"canUseGuided() ? '' : 'This expression is too advanced for the guided builder'\"\n (click)=\"useGuided()\"\n >\n <mat-icon>view_module</mat-icon> Guided\n </button>\n } @else {\n <button type=\"button\" class=\"lib-validators-config__link\" (click)=\"useRaw()\">\n <mat-icon>code</mat-icon> Advanced\n </button>\n }\n </div>\n\n @if (saveHint(); as hint) {\n <p class=\"lib-validators-config__save-hint\">\n <mat-icon class=\"lib-validators-config__save-hint-icon\">info</mat-icon>\n <span>{{ hint }}</span>\n </p>\n }\n\n <mat-toolbar class=\"lib-validators-config__toolbar\">\n <span class=\"lib-validators-config__spacer\"></span>\n <button mat-button (click)=\"closeEditor()\">Close</button>\n <button mat-raised-button color=\"accent\" [disabled]=\"!canSave()\" (click)=\"saveVariable()\">\n Save rule\n </button>\n </mat-toolbar>\n</mat-card>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block}.lib-validators-config__title{margin:0 0 .5rem;font-size:.9375rem;font-weight:500;letter-spacing:-.01em;color:var(--lib-forms-on-surface)}.lib-validators-config__hint{display:flex;align-items:flex-start;gap:.5rem;margin:0 0 1.25rem;font-size:.8125rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__hint-icon{flex:none;font-size:1.125rem;width:1.125rem;height:1.125rem;color:var(--sem-info, var(--lib-forms-primary))}.lib-validators-config__chip{height:fit-content;padding:.5rem;cursor:pointer}.lib-validators-config__chip-label{white-space:normal}.lib-validators-config__add{cursor:pointer}.lib-validators-config__editor{display:flex;flex-direction:column;gap:1.25rem;margin-top:1.25rem;padding:1.5rem;background:var(--lib-forms-surface-container-low);border-radius:var(--lib-forms-radius-lg, 16px);box-shadow:var(--lib-forms-shadow-edge)}.lib-validators-config__field{display:flex;flex-direction:column;gap:.25rem;min-width:0}.lib-validators-config__f-label{font-size:.625rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__control{box-sizing:border-box;width:100%;min-width:0;height:2.125rem;padding:.375rem .5rem;font-family:inherit;font-size:.8125rem;line-height:1.25;color:var(--lib-forms-on-surface);background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm);transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}select.lib-validators-config__control{cursor:pointer}.lib-validators-config__textarea{height:auto;min-height:2.75rem;line-height:1.45;resize:vertical}.lib-validators-config__mono{font-family:var(--lib-forms-font-mono, monospace)}.lib-validators-config__control:hover{border-color:var(--lib-forms-outline)}.lib-validators-config__control:focus{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 1px var(--lib-forms-primary)}.lib-validators-config__control--invalid:not(:focus){border-color:var(--sem-warning, var(--lib-forms-outline));background:var(--sem-warning-surface, var(--lib-forms-surface-container-lowest))}.lib-validators-config__condition-head{display:flex;flex-direction:column;gap:.625rem}.lib-validators-config__match{display:flex;align-items:center;gap:.625rem;flex-wrap:wrap}.lib-validators-config__match ::ng-deep .mat-button-toggle-group{border:none;border-radius:var(--lib-forms-radius-pill, 999px);background:var(--lib-forms-surface-container-high);padding:.25rem;gap:.25rem;box-shadow:none;overflow:hidden}.lib-validators-config__match ::ng-deep .mat-button-toggle{border:none;background:transparent;border-radius:var(--lib-forms-radius-pill, 999px);color:var(--lib-forms-on-surface-variant);transition:color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing),background var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing)}.lib-validators-config__match ::ng-deep .mat-button-toggle+.mat-button-toggle{border-left:none}.lib-validators-config__match ::ng-deep .mat-button-toggle-button{height:auto}.lib-validators-config__match ::ng-deep .mat-button-toggle-label-content{padding:.25rem .75rem;line-height:1.5;font-size:.75rem;font-weight:600}.lib-validators-config__match ::ng-deep .mat-button-toggle-checked{background:var(--lib-forms-surface);color:var(--lib-forms-primary);box-shadow:var(--lib-forms-shadow-edge)}.lib-validators-config__match ::ng-deep .mat-pseudo-checkbox{display:none}.lib-validators-config__muted{font-size:.8125rem;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__connector{display:flex;justify-content:center;margin:-.375rem 0}.lib-validators-config__connector span{padding:.0625rem .5rem;font-size:.625rem;font-weight:600;letter-spacing:.1em;color:var(--lib-forms-on-surface-variant);background:var(--lib-forms-surface-container-high);border-radius:var(--lib-forms-radius-pill, 999px)}.lib-validators-config__cond{display:grid;grid-template-columns:1fr auto;align-items:start;gap:.375rem;padding:.75rem;background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-md)}.lib-validators-config__cond-body{display:flex;flex-direction:column;gap:.625rem;min-width:0}.lib-validators-config__cond-pair{display:grid;grid-template-columns:8.5rem 1fr;gap:.5rem;min-width:0}.lib-validators-config__value{display:flex;align-items:center;gap:.25rem;min-width:0}.lib-validators-config__value-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2.125rem;height:2.125rem;padding:0;color:var(--lib-forms-on-surface-variant);background:transparent;border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm);cursor:pointer;transition:border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-validators-config__value-toggle:hover{color:var(--lib-forms-primary);border-color:var(--lib-forms-primary)}.lib-validators-config__value-toggle mat-icon{font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.lib-validators-config__cond-remove{width:2rem;height:2rem;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__link{display:inline-flex;align-items:center;align-self:flex-start;gap:.25rem;height:1.875rem;padding:0 .5rem;font:inherit;font-size:.8125rem;font-weight:500;color:var(--lib-forms-primary);background:transparent;border:0;border-radius:var(--lib-forms-radius-sm);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-validators-config__link:hover:not(:disabled){background:var(--lib-forms-primary-container)}.lib-validators-config__link:disabled{color:var(--lib-forms-on-surface-variant);cursor:default;opacity:.6}.lib-validators-config__link mat-icon{flex:none;font-size:1.0625rem;width:1.0625rem;height:1.0625rem}.lib-validators-config__lists{display:flex;flex-direction:column;gap:.5rem;padding:.75rem;background:var(--lib-forms-surface-container-lowest);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-md)}.lib-validators-config__list-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.lib-validators-config__list-name{font-size:.8125rem;font-weight:500;color:var(--lib-forms-on-surface)}.lib-validators-config__list-row--unset .lib-validators-config__list-name:after{content:\" \\2014 pick one\";font-weight:400;color:var(--sem-warning, var(--lib-forms-on-surface-variant))}.lib-validators-config__list-optional{margin-left:.375rem;font-size:.625rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__agg{display:inline-flex;flex-wrap:wrap;gap:.25rem}.lib-validators-config__agg-chip{padding:.1875rem .5rem;font:inherit;font-size:.75rem;font-weight:500;color:var(--lib-forms-on-surface-variant);background:var(--lib-forms-surface-container);border:1px solid var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-pill, 999px);cursor:pointer;transition:background-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1)),border-color var(--lib-forms-duration-hover, .3s) var(--lib-forms-easing, cubic-bezier(.16, 1, .3, 1))}.lib-validators-config__agg-chip:hover{border-color:var(--lib-forms-primary);color:var(--lib-forms-primary)}.lib-validators-config__agg-chip--on{color:var(--lib-forms-on-primary, var(--mat-sys-on-primary));background:var(--lib-forms-primary);border-color:var(--lib-forms-primary)}.lib-validators-config__preview{display:flex;align-items:baseline;gap:.5rem;padding:.5rem .625rem;background:var(--lib-forms-surface-container-lowest);border:1px dashed var(--lib-forms-outline-variant);border-radius:var(--lib-forms-radius-sm)}.lib-validators-config__preview .lib-validators-config__f-label{flex:none}.lib-validators-config__preview code{font-family:var(--lib-forms-font-mono, monospace);font-size:.75rem;color:var(--lib-forms-on-surface-variant);word-break:break-word}.lib-validators-config__sub-hint{margin:0;font-size:.75rem;line-height:1.45;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__sub-hint code,.lib-validators-config__error code{font-family:var(--lib-forms-font-mono, monospace);padding:.0625rem .25rem;background:var(--lib-forms-surface-container-high);border-radius:var(--lib-forms-radius-sm)}.lib-validators-config__error{display:flex;align-items:flex-start;gap:.375rem;margin:0;font-size:.75rem;line-height:1.45;color:var(--sem-error, var(--mat-sys-error))}.lib-validators-config__error-icon{flex:none;font-size:1rem;width:1rem;height:1rem}.lib-validators-config__override{display:flex;flex-direction:column;gap:.5rem}.lib-validators-config__toggle-label{margin-left:.5rem;font-size:.8125rem}.lib-validators-config__foot{display:flex;justify-content:flex-end;margin-top:-.5rem}.lib-validators-config__save-hint{display:flex;align-items:flex-start;gap:.375rem;margin:0;font-size:.75rem;line-height:1.45;color:var(--lib-forms-on-surface-variant)}.lib-validators-config__save-hint-icon{flex:none;font-size:1rem;width:1rem;height:1rem;color:var(--sem-info, var(--lib-forms-primary))}.lib-validators-config__toolbar{background:transparent;padding:0}.lib-validators-config__spacer{flex:1 1 auto}\n"] }]
1095
- }], null, { disabled: [{
1096
- type: Input
1097
- }], value: [{
1098
- type: Input
1099
- }], errors: [{
1100
- type: Input
1101
- }], 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"] }] }); })();
1102
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ValidatorsConfigComponent, { className: "ValidatorsConfigComponent", filePath: "lib/components/t-dynamic-data-edit/elements/validators-config/validators-config.component.ts", lineNumber: 123 }); })();
1103
-
1104
- export { ValidatorsConfigComponent };
1105
- //# sourceMappingURL=ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map