ngx-t-forms 2.0.36 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs → ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs} +4 -4
  2. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-ookGrpnN.mjs.map → ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map} +1 -1
  3. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs → ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs} +4 -4
  4. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-VektEtrf.mjs.map → ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs.map} +1 -1
  5. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs → ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs} +6 -6
  6. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-CQVuW8z1.mjs.map → ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map} +1 -1
  7. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs → ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs} +6 -6
  8. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-C8D6DN41.mjs.map → ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs.map} +1 -1
  9. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs → ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs} +4 -4
  10. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-8EgwXTN1.mjs.map → ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map} +1 -1
  11. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs → ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs} +4 -4
  12. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B_3IbQjp.mjs.map → ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map} +1 -1
  13. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs → ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs} +2 -2
  14. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-B95VIBRi.mjs.map → ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map} +1 -1
  15. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs → ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs} +2 -2
  16. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-uTCOa48g.mjs.map → ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map} +1 -1
  17. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs} +2 -2
  18. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-BX3zJs-A.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map} +1 -1
  19. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs} +2 -2
  20. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-Dm16WA5Y.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map} +1 -1
  21. package/fesm2022/{ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs → ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs} +8 -8
  22. package/fesm2022/{ngx-t-forms-data-source-picker.component-z0l9WEw7.mjs.map → ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map} +1 -1
  23. package/fesm2022/{ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs → ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs} +8 -8
  24. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +1 -0
  25. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs → ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs} +4 -4
  26. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-D9BOhV6g.mjs.map → ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map} +1 -1
  27. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs → ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs} +4 -4
  28. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-C9I8KX12.mjs.map → ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs.map} +1 -1
  29. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs → ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs} +4 -4
  30. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-B3Z47mrO.mjs.map → ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map} +1 -1
  31. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs → ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs} +4 -4
  32. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-BiXubnsN.mjs.map → ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map} +1 -1
  33. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs → ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs} +5 -5
  34. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-PW2XiPiH.mjs.map → ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map} +1 -1
  35. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs → ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs} +5 -5
  36. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-C5T_DK6w.mjs.map → ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map} +1 -1
  37. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +1259 -0
  38. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +1 -0
  39. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +1996 -0
  40. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +1 -0
  41. package/fesm2022/{ngx-t-forms-editor-input-element.component-DYytkGYD.mjs → ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs} +157 -23
  42. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +1 -0
  43. package/fesm2022/{ngx-t-forms-editor-input-element.component-C12fnCTM.mjs → ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs} +138 -15
  44. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +1 -0
  45. package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs +539 -0
  46. package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +1 -0
  47. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +585 -0
  48. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +1 -0
  49. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs → ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs} +7 -7
  50. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Bgi-chdw.mjs.map → ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs.map} +1 -1
  51. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs → ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs} +7 -7
  52. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-CI4onrtp.mjs.map → ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map} +1 -1
  53. package/fesm2022/{ngx-t-forms-form-input-selector.component-BysF2WY-.mjs → ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs} +2 -2
  54. package/fesm2022/{ngx-t-forms-form-input-selector.component-BysF2WY-.mjs.map → ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map} +1 -1
  55. package/fesm2022/{ngx-t-forms-form-input-selector.component-xIalL_cs.mjs → ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs} +2 -2
  56. package/fesm2022/{ngx-t-forms-form-input-selector.component-xIalL_cs.mjs.map → ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map} +1 -1
  57. package/fesm2022/{ngx-t-forms-form-json-view.component-CU1d8rGd.mjs → ngx-t-forms-form-json-view.component-r64GKVhI.mjs} +2 -2
  58. package/fesm2022/{ngx-t-forms-form-json-view.component-CU1d8rGd.mjs.map → ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map} +1 -1
  59. package/fesm2022/{ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs → ngx-t-forms-form-json-view.component-z0nQxpqB.mjs} +2 -2
  60. package/fesm2022/{ngx-t-forms-form-json-view.component-DpU3ZTiS.mjs.map → ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map} +1 -1
  61. package/fesm2022/{ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs → ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs} +6 -6
  62. package/fesm2022/{ngx-t-forms-form-section-stepper.component-tGbPKHM6.mjs.map → ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map} +1 -1
  63. package/fesm2022/{ngx-t-forms-form-section-stepper.component-DqShhIBK.mjs → ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs} +10 -10
  64. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +1 -0
  65. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs → ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs} +11 -11
  66. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-hK9C4vAa.mjs.map → ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map} +1 -1
  67. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs → ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs} +13 -13
  68. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BsgtMZFM.mjs.map → ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map} +1 -1
  69. package/fesm2022/{ngx-t-forms-geo-location.component-ChmvJCGu.mjs → ngx-t-forms-geo-location.component-D2fIbagr.mjs} +7 -7
  70. package/fesm2022/{ngx-t-forms-geo-location.component-ChmvJCGu.mjs.map → ngx-t-forms-geo-location.component-D2fIbagr.mjs.map} +1 -1
  71. package/fesm2022/{ngx-t-forms-geo-location.component-DfmFok8a.mjs → ngx-t-forms-geo-location.component-DW2b5Zli.mjs} +7 -7
  72. package/fesm2022/{ngx-t-forms-geo-location.component-DfmFok8a.mjs.map → ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map} +1 -1
  73. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs → ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs} +7 -7
  74. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BpA_P017.mjs.map → ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map} +1 -1
  75. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs → ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs} +7 -7
  76. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-DYjnaWYE.mjs.map → ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map} +1 -1
  77. package/fesm2022/{ngx-t-forms-index-D-7ZX0w7.mjs → ngx-t-forms-index-6YIhS6cm.mjs} +2 -2
  78. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +1 -0
  79. package/fesm2022/{ngx-t-forms-index-DHloq32-.mjs → ngx-t-forms-index-BPNBX_ve.mjs} +2 -2
  80. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +1 -0
  81. package/fesm2022/{ngx-t-forms-input-custom.component-Cv6jfrPf.mjs → ngx-t-forms-input-custom.component-DQOqy047.mjs} +2 -2
  82. package/fesm2022/{ngx-t-forms-input-custom.component-Cv6jfrPf.mjs.map → ngx-t-forms-input-custom.component-DQOqy047.mjs.map} +1 -1
  83. package/fesm2022/{ngx-t-forms-input-custom.component-pUshbxSM.mjs → ngx-t-forms-input-custom.component-Dcoze7U3.mjs} +2 -2
  84. package/fesm2022/{ngx-t-forms-input-custom.component-pUshbxSM.mjs.map → ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map} +1 -1
  85. package/fesm2022/{ngx-t-forms-input-editor.component-BKV6ZJx9.mjs → ngx-t-forms-input-editor.component-3fRj5swF.mjs} +8 -8
  86. package/fesm2022/{ngx-t-forms-input-editor.component-BKV6ZJx9.mjs.map → ngx-t-forms-input-editor.component-3fRj5swF.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-input-editor.component-CxXMETLl.mjs → ngx-t-forms-input-editor.component-B6UKwV4i.mjs} +7 -7
  88. package/fesm2022/{ngx-t-forms-input-editor.component-CxXMETLl.mjs.map → ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map} +1 -1
  89. package/fesm2022/{ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs → ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs} +2 -2
  90. package/fesm2022/{ngx-t-forms-map-mat-options-keys-BbfC5vYI.mjs.map → ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map} +1 -1
  91. package/fesm2022/{ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs → ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs} +2 -2
  92. package/fesm2022/{ngx-t-forms-map-mat-options-keys-epWo0lEj.mjs.map → ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map} +1 -1
  93. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +268 -0
  94. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +1 -0
  95. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs +167 -0
  96. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +1 -0
  97. package/fesm2022/{ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs → ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs} +4 -4
  98. package/fesm2022/{ngx-t-forms-missing-form-configs.component-DRAVdGfc.mjs.map → ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map} +1 -1
  99. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs → ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs} +4 -4
  100. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CDIajZxP.mjs.map → ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map} +1 -1
  101. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs → ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs} +4 -4
  102. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +1 -0
  103. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs → ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs} +4 -4
  104. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-D1ASX1mt.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map} +1 -1
  105. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs} +3 -3
  106. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs.map → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs.map} +1 -1
  107. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs → ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs} +3 -3
  108. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-DzFibbuY.mjs.map → ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map} +1 -1
  109. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs → ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs} +7 -7
  110. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-CjuxTqfX.mjs.map → ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map} +1 -1
  111. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs → ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs} +7 -7
  112. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-D9KrXNS6.mjs.map → ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map} +1 -1
  113. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs → ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs} +3 -3
  114. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-DV93x0Rr.mjs.map → ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map} +1 -1
  115. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs} +3 -3
  116. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs.map → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs.map} +1 -1
  117. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs → ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs} +15 -15
  118. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-BxQYrUJL.mjs.map → ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map} +1 -1
  119. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs → ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs} +13 -13
  120. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-BA61uQ2q.mjs.map → ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map} +1 -1
  121. package/fesm2022/{ngx-t-forms-ngx-t-forms-CJGAj18J.mjs → ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs} +941 -155
  122. package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +1 -0
  123. package/fesm2022/{ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs → ngx-t-forms-ngx-t-forms-BefvSS-p.mjs} +1119 -234
  124. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +1 -0
  125. package/fesm2022/{ngx-t-forms-paginated-selection-table-DeY5vQti.mjs → ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs} +8 -8
  126. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +1 -0
  127. package/fesm2022/{ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs → ngx-t-forms-paginated-selection-table-DrXB22iY.mjs} +8 -8
  128. package/fesm2022/{ngx-t-forms-paginated-selection-table-yvhqQxPV.mjs.map → ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map} +1 -1
  129. package/fesm2022/{ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs → ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs} +2 -2
  130. package/fesm2022/{ngx-t-forms-payload-template-editor.component-sqY3bYiZ.mjs.map → ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map} +1 -1
  131. package/fesm2022/{ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs → ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs} +2 -2
  132. package/fesm2022/{ngx-t-forms-payload-template-editor.component-BzY-kX6W.mjs.map → ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map} +1 -1
  133. package/fesm2022/{ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs → ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs} +11 -11
  134. package/fesm2022/{ngx-t-forms-pipeline-generator.component-CcHgQ-MT.mjs.map → ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map} +1 -1
  135. package/fesm2022/{ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs → ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs} +11 -11
  136. package/fesm2022/{ngx-t-forms-pipeline-generator.component-COvr1j_v.mjs.map → ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map} +1 -1
  137. package/fesm2022/{ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs → ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs} +166 -72
  138. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +1 -0
  139. package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs +446 -0
  140. package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +1 -0
  141. package/fesm2022/{ngx-t-forms-required-inputs.component-ByBeNLXu.mjs → ngx-t-forms-required-inputs.component-BMmNxeE-.mjs} +6 -6
  142. package/fesm2022/{ngx-t-forms-required-inputs.component-ByBeNLXu.mjs.map → ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map} +1 -1
  143. package/fesm2022/{ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs → ngx-t-forms-required-inputs.component-Dr0P1gin.mjs} +6 -6
  144. package/fesm2022/{ngx-t-forms-required-inputs.component-BWKUC8zQ.mjs.map → ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map} +1 -1
  145. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs → ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs} +5 -5
  146. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-BEqnJqZG.mjs.map → ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map} +1 -1
  147. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs → ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs} +5 -5
  148. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CkLePXoO.mjs.map → ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map} +1 -1
  149. package/fesm2022/{ngx-t-forms-section-report.component-mUpSxbaB.mjs → ngx-t-forms-section-report.component-BYMcaRE5.mjs} +4 -4
  150. package/fesm2022/{ngx-t-forms-section-report.component-mUpSxbaB.mjs.map → ngx-t-forms-section-report.component-BYMcaRE5.mjs.map} +1 -1
  151. package/fesm2022/{ngx-t-forms-section-report.component-CQR27H3a.mjs → ngx-t-forms-section-report.component-yGAjX7Gb.mjs} +4 -4
  152. package/fesm2022/{ngx-t-forms-section-report.component-CQR27H3a.mjs.map → ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map} +1 -1
  153. package/fesm2022/{ngx-t-forms-select-input-element.component-CLs5UkmC.mjs → ngx-t-forms-select-input-element.component-BqtJi4ek.mjs} +8 -8
  154. package/fesm2022/{ngx-t-forms-select-input-element.component-CLs5UkmC.mjs.map → ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map} +1 -1
  155. package/fesm2022/{ngx-t-forms-select-input-element.component-c7IgHdXA.mjs → ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs} +8 -8
  156. package/fesm2022/{ngx-t-forms-select-input-element.component-c7IgHdXA.mjs.map → ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map} +1 -1
  157. package/fesm2022/{ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs → ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs} +6 -6
  158. package/fesm2022/{ngx-t-forms-selection-options-editor.component-WfuGdtvK.mjs.map → ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map} +1 -1
  159. package/fesm2022/{ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs → ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs} +6 -6
  160. package/fesm2022/{ngx-t-forms-selection-options-editor.component-DiegTjWX.mjs.map → ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map} +1 -1
  161. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +366 -0
  162. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +1 -0
  163. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs +263 -0
  164. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +1 -0
  165. package/fesm2022/{ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs → ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs} +4 -4
  166. package/fesm2022/{ngx-t-forms-textarea-input-element.component-C7H84RGw.mjs.map → ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map} +1 -1
  167. package/fesm2022/{ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs → ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs} +4 -4
  168. package/fesm2022/{ngx-t-forms-textarea-input-element.component-Coxr1XD7.mjs.map → ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map} +1 -1
  169. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs → ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs} +4 -4
  170. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BWnTeuHM.mjs.map → ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map} +1 -1
  171. package/fesm2022/{ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs → ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs} +4 -4
  172. package/fesm2022/{ngx-t-forms-toggle-input-element.component-Cgzg89Ug.mjs.map → ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map} +1 -1
  173. package/fesm2022/{ngx-t-forms-validators-config.component-DjLB40z-.mjs → ngx-t-forms-validators-config.component-B1Lzs7o2.mjs} +5 -5
  174. package/fesm2022/{ngx-t-forms-validators-config.component-DjLB40z-.mjs.map → ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map} +1 -1
  175. package/fesm2022/{ngx-t-forms-validators-config.component-DgIVRSvF.mjs → ngx-t-forms-validators-config.component-CoGSFor3.mjs} +5 -5
  176. package/fesm2022/{ngx-t-forms-validators-config.component-DgIVRSvF.mjs.map → ngx-t-forms-validators-config.component-CoGSFor3.mjs.map} +1 -1
  177. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs → ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs} +18 -18
  178. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +1 -0
  179. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs → ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs} +17 -17
  180. package/fesm2022/ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map +1 -0
  181. package/fesm2022/ngx-t-forms.mjs +1 -1
  182. package/package.json +2 -2
  183. package/types/ngx-t-forms.d.ts +18 -12
  184. package/fesm2022/ngx-t-forms-data-source-picker.component-Dij1l4-7.mjs.map +0 -1
  185. package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs +0 -1217
  186. package/fesm2022/ngx-t-forms-document-picker.component-B47pQxMF.mjs.map +0 -1
  187. package/fesm2022/ngx-t-forms-document-picker.component-BNQ1a96s.mjs +0 -704
  188. package/fesm2022/ngx-t-forms-document-picker.component-BNQ1a96s.mjs.map +0 -1
  189. package/fesm2022/ngx-t-forms-editor-input-element.component-C12fnCTM.mjs.map +0 -1
  190. package/fesm2022/ngx-t-forms-editor-input-element.component-DYytkGYD.mjs.map +0 -1
  191. package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs +0 -251
  192. package/fesm2022/ngx-t-forms-editor-js-input.component-BQSF3142.mjs.map +0 -1
  193. package/fesm2022/ngx-t-forms-editor-js-input.component-cxob42pE.mjs +0 -240
  194. package/fesm2022/ngx-t-forms-editor-js-input.component-cxob42pE.mjs.map +0 -1
  195. package/fesm2022/ngx-t-forms-form-section-stepper.component-DqShhIBK.mjs.map +0 -1
  196. package/fesm2022/ngx-t-forms-index-D-7ZX0w7.mjs.map +0 -1
  197. package/fesm2022/ngx-t-forms-index-DHloq32-.mjs.map +0 -1
  198. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs +0 -109
  199. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Bqjjgtyf.mjs.map +0 -1
  200. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs +0 -66
  201. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CuOsHNXe.mjs.map +0 -1
  202. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-C9b-pNLr.mjs.map +0 -1
  203. package/fesm2022/ngx-t-forms-ngx-t-forms-CJGAj18J.mjs.map +0 -1
  204. package/fesm2022/ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs.map +0 -1
  205. package/fesm2022/ngx-t-forms-paginated-selection-table-DeY5vQti.mjs.map +0 -1
  206. package/fesm2022/ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs +0 -358
  207. package/fesm2022/ngx-t-forms-record-list-manager.component-CY4GnAOb.mjs.map +0 -1
  208. package/fesm2022/ngx-t-forms-record-list-manager.component-DuE2OdC4.mjs.map +0 -1
  209. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs +0 -341
  210. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CQPrr7Cz.mjs.map +0 -1
  211. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs +0 -204
  212. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map +0 -1
  213. package/fesm2022/ngx-t-forms-workflow-adjudication.component-CB6qBxgr.mjs.map +0 -1
  214. package/fesm2022/ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-t-forms-validators-config.component-DgIVRSvF.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/validators-config/validators-config.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/validators-config/validators-config.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Input,\n type OnDestroy,\n ViewEncapsulation,\n computed,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\n\nimport { v4 as uuidv4 } from 'uuid';\n\nimport type {\n DraftFormControlCustomValidator,\n FormColumnInputs,\n FormControlCustomValidatorsInterface,\n} from 'ngx-t-forms-types';\nimport { CalculationFunctions, InputDataTypes, InputTypes } from 'ngx-t-forms-types';\n\nimport { CommonModule } from '@angular/common';\nimport { NgControl } from '@angular/forms';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatButtonToggleModule } from '@angular/material/button-toggle';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { Subject } from 'rxjs';\n\nimport { evaluatePredicate } from '../../../../shared/functions/array-access/predicate-dsl';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport {\n type FieldBinding,\n PREDICATE_OPERATORS,\n type ValidatorCondition,\n type ValidatorConditionGroup,\n deriveObservedInputs,\n emptyCondition,\n parseConditions,\n referencedTokens,\n serializeConditions,\n} from './validator-condition';\n\n/** A selectable field in the condition builder's field/value dropdowns. */\ninterface FieldOption {\n readonly variable: string;\n readonly label: string;\n readonly isSelf: boolean;\n /** A multiple-input column (lives inside a repeatable group). */\n readonly isMultiple: boolean;\n /** Whether the field holds a numeric value (gates numeric aggregates). */\n readonly numeric: boolean;\n /** The input read at runtime: a primary input id, or a list sub-item id. */\n readonly inputId: string;\n /** Row-array container id, for multiple-input columns. */\n readonly parentInputId?: string;\n}\n\n/** A friendly aggregate choice shown for a referenced list field. */\ninterface AggregateOption {\n readonly value: CalculationFunctions;\n readonly label: string;\n}\n\n/**\n * Internal editor implementing `MatFormFieldControl<FormControlCustomValidatorsInterface[]>`\n * for authoring a form input's custom validators.\n *\n * Rendered by `t-dynamic-data-edit` inside its `<mat-form-field>`, which supplies\n * the surrounding field label, hint, and validation errors — so this component\n * owns only the validator chip list and the inline draft editor.\n *\n * ### Authoring model\n * A validator's `expression` is evaluated by the shared predicate DSL where\n * **`true` means the field is invalid** (the error message is then shown). The\n * editor captures that condition through a **guided builder** — `field operator\n * value` rows joined by All/Any — that serialises to the expression string and\n * auto-derives `inputsObservedForChanges` from the fields it references. An\n * **Advanced** raw editor is the escape hatch for expressions the builder cannot\n * represent (grouping, mixed connectors, negation); these round-trip unchanged.\n *\n * The bound `value` may contain both string entries (legacy validator-name\n * references such as `'required'`, which are read-only) and object entries\n * ({@link FormControlCustomValidatorsInterface}, which are editable). Only object\n * entries open the draft editor.\n *\n * NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /\n * `required` / `placeholder` / `id` members, `@Input()` decorators, the\n * `focused` / `touched` / `stateChanges` members, and the `useExisting`\n * provider. These are framework wiring, not defects — the CLAUDE.md bans on\n * `@Input()` / `useExisting` do not apply to MatFormFieldControl integration.\n */\n@Component({\n selector: 'lib-validators-config',\n templateUrl: './validators-config.component.html',\n styleUrls: ['./validators-config.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n imports: [\n CommonModule,\n MatIconModule,\n MatChipsModule,\n MatCardModule,\n MatToolbarModule,\n MatButtonModule,\n MatButtonToggleModule,\n MatSlideToggleModule,\n MatTooltipModule,\n ],\n providers: [{ provide: MatFormFieldControl, useExisting: ValidatorsConfigComponent }],\n host: {\n 'class': 'lib-validators-config',\n '[attr.id]': 'id',\n },\n})\nexport class ValidatorsConfigComponent\n implements MatFormFieldControl<FormControlCustomValidatorsInterface[]>, OnDestroy\n{\n static nextId = 0;\n\n /** Emits whenever a piece of `MatFormFieldControl` state changes. */\n readonly stateChanges = new Subject<void>();\n readonly controlType = 'lib-validators-config';\n\n id = `lib-validators-config-${ValidatorsConfigComponent.nextId++}`;\n placeholder = '';\n focused = false;\n touched = false;\n required = false;\n describedBy = '';\n autofilled: boolean | undefined = undefined;\n userAriaDescribedBy: string | undefined = undefined;\n disableAutomaticLabeling: boolean | undefined = undefined;\n\n /** Whether the editor is inert. Kept as `@Input()` for the MFC contract. */\n @Input() disabled = false;\n /** Current validator list. Kept as `@Input()` for the MFC contract. */\n @Input() value: FormControlCustomValidatorsInterface[] = [];\n /** Validation errors surfaced by the parent for error-state derivation. */\n @Input() errors: IConfigElementError[] | undefined = [];\n\n /** Source input that owns this validator config (for multiple-input scopes). */\n readonly mapToData = input<FormColumnInputs | undefined>(undefined);\n /** Available form inputs offered as variables. */\n readonly formInputs = input<Array<FormColumnInputs>>([]);\n\n /** Emits the full validator list whenever it changes. */\n readonly valueChanged = output<FormControlCustomValidatorsInterface[]>();\n\n /** Operator choices shared with the array-access predicate builder. */\n protected readonly operators = PREDICATE_OPERATORS;\n\n /** Aggregate choices for a list field, with non-technical labels. */\n protected readonly aggregates: readonly AggregateOption[] = [\n { value: CalculationFunctions.Sum, label: 'total' },\n { value: CalculationFunctions.Avg, label: 'average' },\n { value: CalculationFunctions.Min, label: 'lowest' },\n { value: CalculationFunctions.Max, label: 'highest' },\n { value: CalculationFunctions.Count, label: 'count' },\n ];\n\n readonly #elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly ngControl = inject(NgControl, { self: true, optional: true });\n\n /** Draft currently open in the inline editor, or `null` when closed. */\n readonly #edit = signal<DraftFormControlCustomValidator | null>(null);\n /** Read-only view of the open draft for the template. */\n protected readonly edit = this.#edit.asReadonly();\n\n /** Guided builder model mirroring the open draft's expression. */\n readonly #group = signal<ValidatorConditionGroup>({ connector: '&&', conditions: [] });\n protected readonly group = this.#group.asReadonly();\n\n /** Whether the draft is being edited as a raw expression instead of guided rows. */\n readonly #raw = signal(false);\n protected readonly raw = this.#raw.asReadonly();\n\n /** Chosen aggregate per referenced list variable (keyed by variable name). */\n readonly #functions = signal<Record<string, CalculationFunctions>>({});\n\n /** Whether the validator being authored lives on a multiple-input sub-item. */\n protected readonly validatorOnList = computed<boolean>(\n () => !!this.mapToData()?.multipleInputInEditId,\n );\n\n /**\n * Fields the builder can reference: every primary input plus every\n * multiple-input column. A multiple column carries its row-array container\n * (`parentInputId`); whether it must be aggregated is decided per condition\n * (see {@link requiredAggregateVariables}), not by the field itself.\n */\n protected readonly fieldOptions = computed<readonly FieldOption[]>(() => {\n const self = this.mapToData();\n const selfId = self?.id;\n const options: FieldOption[] = [];\n for (const input of this.formInputs()) {\n if (!input.formControlName) continue;\n const group = input.multipleInputInEditId;\n options.push({\n variable: input.formControlName,\n label: input.label || input.formControlName,\n isSelf: input.id === selfId,\n isMultiple: !!group,\n numeric: this.#isNumeric(input),\n inputId: group ? input.id : (input.originalId ?? input.id),\n parentInputId: group,\n });\n }\n return options;\n });\n\n /** Primary (scalar) fields, for the first dropdown group. */\n protected readonly directFields = computed<readonly FieldOption[]>(() =>\n this.fieldOptions().filter((f) => !f.isMultiple),\n );\n\n /** Multiple-input columns, for the second dropdown group. */\n protected readonly listFields = computed<readonly FieldOption[]>(() =>\n this.fieldOptions().filter((f) => f.isMultiple),\n );\n\n /** Field option keyed by its expression variable, for operand lookups. */\n readonly #fieldByVariable = computed<ReadonlyMap<string, FieldOption>>(\n () => new Map(this.fieldOptions().map((f) => [f.variable, f])),\n );\n\n /** Multiple-input columns actually referenced by the current expression. */\n protected readonly referencedListFields = computed<readonly FieldOption[]>(() => {\n const tokens = referencedTokens(this.#edit()?.expression ?? '');\n return this.listFields().filter((f) => tokens.has(f.variable));\n });\n\n /**\n * Multiple-input variables that MUST be aggregated: a list column compared\n * against a non-list operand (a primary field or a typed value) has to be\n * reduced to a single value. A list-vs-list comparison leaves the aggregate\n * optional (the columns are row-aligned). In raw mode operand pairing cannot\n * be analysed, so every referenced list column is treated as required.\n */\n protected readonly requiredAggregateVariables = computed<ReadonlySet<string>>(() => {\n if (this.#raw()) {\n return new Set(this.referencedListFields().map((f) => f.variable));\n }\n const byVariable = this.#fieldByVariable();\n const required = new Set<string>();\n for (const cond of this.#group().conditions) {\n const left = byVariable.get(cond.field);\n const right = cond.compareTo === 'field' ? byVariable.get(cond.value) : undefined;\n const leftMultiple = !!left?.isMultiple;\n const rightMultiple = !!right?.isMultiple;\n if (leftMultiple && !rightMultiple) required.add(cond.field);\n if (rightMultiple && !leftMultiple && right) required.add(right.variable);\n }\n return required;\n });\n\n /** Whether every list column that MUST be aggregated has an aggregate chosen. */\n protected readonly aggregatesResolved = computed<boolean>(() => {\n const functions = this.#functions();\n const required = this.requiredAggregateVariables();\n return [...required].every((variable) => !!functions[variable]);\n });\n\n /** Aggregates offered for a field: numeric columns get all, others only count. */\n protected aggregatesFor(field: FieldOption): readonly AggregateOption[] {\n return field.numeric\n ? this.aggregates\n : this.aggregates.filter((a) => a.value === CalculationFunctions.Count);\n }\n\n /** Whether a referenced list column is required to have an aggregate. */\n protected isAggregateRequired(variable: string): boolean {\n return this.requiredAggregateVariables().has(variable);\n }\n\n /**\n * Whether a guided condition is fully specified (field, operator and a value\n * all set). Incomplete conditions are otherwise silently dropped on save, so\n * this gates {@link canSave}.\n */\n protected isConditionComplete(condition: ValidatorCondition): boolean {\n return (\n condition.field.trim() !== '' &&\n condition.operator.trim() !== '' &&\n condition.value.trim() !== ''\n );\n }\n\n /** Whether the guided builder has at least one condition and all are complete. */\n protected readonly conditionsComplete = computed<boolean>(() => {\n if (this.#raw()) return true; // raw mode is gated by syntaxError + non-empty\n const conditions = this.#group().conditions;\n return conditions.length > 0 && conditions.every((c) => this.isConditionComplete(c));\n });\n\n /** Whether the current draft expression can be edited in the guided builder. */\n protected readonly canUseGuided = computed<boolean>(\n () => parseConditions(this.#edit()?.expression ?? '', this.#fieldNameSet()) !== null,\n );\n\n /** Human-readable syntax error for the raw editor, or `null` when valid/empty. */\n protected readonly syntaxError = computed<string | null>(() => {\n const expression = this.#edit()?.expression ?? '';\n if (expression.trim() === '') return null;\n try {\n evaluatePredicate(expression, {});\n return null;\n } catch (error: unknown) {\n return error instanceof Error ? error.message : 'The expression syntax is invalid.';\n }\n });\n\n /** Whether the open draft can be saved (message, a complete/valid rule, aggregates chosen). */\n protected readonly canSave = computed<boolean>(() => {\n const draft = this.#edit();\n return (\n !!draft &&\n !!draft.message &&\n !!draft.expression &&\n this.syntaxError() === null &&\n this.conditionsComplete() &&\n this.aggregatesResolved()\n );\n });\n\n /** A one-line reason the rule cannot be saved yet, or `null` when it can. */\n protected readonly saveHint = computed<string | null>(() => {\n const draft = this.#edit();\n if (!draft) return null;\n if (!draft.message) return 'Add an error message.';\n if (!this.#raw() && !this.conditionsComplete()) {\n return 'Finish every condition — choose a field, a condition and a value.';\n }\n if (!draft.expression) return 'Add at least one condition.';\n if (this.#raw() && this.syntaxError() !== null) return this.syntaxError();\n if (!this.aggregatesResolved()) return 'Choose how to combine each list field.';\n return null;\n });\n\n // MatFormFieldControl reads these as plain getters during its own change\n // detection, so they stay getters rather than `computed()` signals.\n\n get empty(): boolean {\n return this.value.length === 0;\n }\n\n get shouldLabelFloat(): boolean {\n return this.focused || !this.empty;\n }\n\n get errorState(): boolean {\n const ngControlError = this.ngControl?.errors != null;\n const externalError = (this.errors?.length ?? 0) > 0 && this.touched;\n const requiredUnset = this.empty && this.required;\n return requiredUnset || ngControlError || externalError;\n }\n\n setDescribedByIds(ids: string[]): void {\n this.describedBy = ids.join(' ');\n const el = this.#elementRef.nativeElement;\n const controlElement = el.querySelector('.lib-validators-config__list');\n controlElement?.setAttribute('aria-describedby', this.describedBy);\n this.stateChanges.next();\n }\n\n onContainerClick(): void {\n this.markAsTouched();\n this.stateChanges.next();\n }\n\n onTouched: () => void = () => {};\n\n markAsTouched(): void {\n if (!this.touched) {\n this.touched = true;\n this.onTouched();\n this.stateChanges.next();\n }\n }\n\n /** Tear down the MFC state stream so subscribers do not leak. */\n ngOnDestroy(): void {\n this.stateChanges.complete();\n }\n\n /** `@for` track key: object validators by id, string validators by value. */\n protected trackValidator(\n validator: string | FormControlCustomValidatorsInterface,\n ): string {\n return typeof validator === 'string' ? validator : validator.id;\n }\n\n /** Resolve the label shown on a validator chip. */\n protected validatorLabel(validator: string | FormControlCustomValidatorsInterface): string {\n return typeof validator === 'string' ? validator : validator.message;\n }\n\n /** Whether a validator chip is the one currently being edited. */\n protected isEditing(validator: string | FormControlCustomValidatorsInterface): boolean {\n if (typeof validator === 'string') {\n return false;\n }\n return this.#edit()?.id === validator.id;\n }\n\n /**\n * Open a validator for editing. String entries are read-only legacy\n * references and are ignored. Editing the open validator again closes it.\n * The draft is a clone, so edits only land in `value` on Save.\n *\n * DEFECT FIX (discard semantics): the editor is an inline panel with an\n * explicit Close/Save toolbar, not a transient overlay that vanishes on an\n * outside click. Opening a different validator (or {@link addValidator})\n * deliberately replaces the open draft — an explicit, documented discard,\n * never a silent loss mid-edit.\n */\n protected editV(validator: string | FormControlCustomValidatorsInterface): void {\n if (typeof validator === 'string') {\n return;\n }\n if (this.#edit()?.id === validator.id) {\n this.#edit.set(null);\n return;\n }\n this.#edit.set(this.#cloneValidator(validator));\n this.#initBuilderFromDraft();\n }\n\n /** Begin a brand-new validator draft (id assigned on save). */\n protected addValidator(): void {\n this.#edit.set(this.#emptyDraft());\n this.#initBuilderFromDraft();\n }\n\n /** Discard the open draft without persisting it. */\n protected closeEditor(): void {\n this.#edit.set(null);\n }\n\n /** Remove a validator (string or object) from the list and emit. */\n protected remove(validator: string | FormControlCustomValidatorsInterface): void {\n const next = this.value.filter((item) => !this.#sameValidator(item, validator));\n this.#commit(next);\n if (this.isEditing(validator)) {\n this.#edit.set(null);\n }\n }\n\n /** Update the draft's message, or replace its raw expression as the user types. */\n protected onTextChange(event: Event, key: 'message' | 'expression'): void {\n const value = (event.target as HTMLInputElement).value;\n if (key === 'expression') {\n this.#syncExpression(value);\n return;\n }\n this.#edit.update((draft) => {\n const base = draft ?? this.#emptyDraft();\n return { ...base, message: value };\n });\n }\n\n /** Toggle whether users may override (warn instead of block) this validator. */\n protected setCanOverride(checked: boolean): void {\n this.#edit.update((draft) => (draft ? { ...draft, canOverride: checked } : draft));\n }\n\n /**\n * Persist the open draft. A new draft (no id) is appended with a fresh uuid;\n * an existing draft (has id) replaces the matching entry. Emits the new list.\n */\n protected saveVariable(): void {\n const draft = this.#edit();\n if (!draft || !draft.message || !draft.expression) {\n return;\n }\n if (draft.id !== undefined) {\n const id = draft.id;\n const saved: FormControlCustomValidatorsInterface = { ...draft, id };\n this.#commit(\n this.value.map((item) =>\n typeof item !== 'string' && item.id === id ? saved : item,\n ),\n );\n } else {\n const saved: FormControlCustomValidatorsInterface = { ...draft, id: uuidv4() };\n this.#commit([...this.value, saved]);\n }\n this.#edit.set(null);\n }\n\n // ---- guided condition builder ------------------------------------------\n\n /** Switch the All/Any connector joining the conditions. */\n protected setConnector(connector: '&&' | '||'): void {\n this.#applyGroup({ ...this.#group(), connector });\n }\n\n /** Append a fresh condition, defaulting its field to the owning input. */\n protected addCondition(): void {\n const fallback =\n this.directFields().find((f) => f.isSelf) ??\n this.directFields()[0] ??\n this.fieldOptions()[0];\n const group = this.#group();\n this.#applyGroup({\n ...group,\n conditions: [...group.conditions, emptyCondition(fallback?.variable ?? '')],\n });\n }\n\n /** Apply a partial change to the condition at `index`. */\n protected updateCondition(index: number, patch: Partial<ValidatorCondition>): void {\n const group = this.#group();\n const conditions = group.conditions.map((c, i) => (i === index ? { ...c, ...patch } : c));\n this.#applyGroup({ ...group, conditions });\n }\n\n /** Flip a condition between comparing to a typed value and another field. */\n protected toggleCompareTo(index: number): void {\n const condition = this.#group().conditions[index];\n if (!condition) return;\n if (condition.compareTo === 'value') {\n const field = this.fieldOptions().find((f) => f.variable !== condition.field);\n this.updateCondition(index, { compareTo: 'field', value: field?.variable ?? '' });\n } else {\n this.updateCondition(index, { compareTo: 'value', value: '' });\n }\n }\n\n /** Remove the condition at `index`. */\n protected removeCondition(index: number): void {\n const group = this.#group();\n this.#applyGroup({ ...group, conditions: group.conditions.filter((_, i) => i !== index) });\n }\n\n /**\n * Choose (or clear, by re-clicking) the aggregate that reduces a referenced\n * list field to a single value.\n */\n protected setFunction(variable: string, fn: CalculationFunctions): void {\n this.#functions.update((current) => {\n const next = { ...current };\n if (next[variable] === fn) {\n delete next[variable];\n } else {\n next[variable] = fn;\n }\n return next;\n });\n // The expression text is unchanged, but the observed deps now carry the\n // aggregate — re-sync so inputsObservedForChanges reflects the choice.\n this.#syncExpression(this.#edit()?.expression ?? '');\n }\n\n /** The aggregate currently chosen for a list variable, if any. */\n protected currentFunction(variable: string): CalculationFunctions | undefined {\n return this.#functions()[variable];\n }\n\n /** Switch to the raw expression editor. */\n protected useRaw(): void {\n this.#raw.set(true);\n }\n\n /** Switch back to the guided builder, reparsing the current expression. */\n protected useGuided(): void {\n if (!this.canUseGuided()) return;\n this.#initGroupFromExpression();\n this.#raw.set(false);\n }\n\n /** Read the value-event target as a string. */\n protected inputValue(event: Event): string {\n return (event.target as HTMLInputElement | HTMLSelectElement).value;\n }\n\n // ---- internal ----------------------------------------------------------\n\n #emptyDraft(): DraftFormControlCustomValidator {\n return {\n message: '',\n expression: '',\n canOverride: false,\n inputsObservedForChanges: [],\n };\n }\n\n #cloneValidator(\n validator: FormControlCustomValidatorsInterface,\n ): DraftFormControlCustomValidator {\n return {\n ...validator,\n inputsObservedForChanges: validator.inputsObservedForChanges.map((i) => ({ ...i })),\n };\n }\n\n #sameValidator(\n item: string | FormControlCustomValidatorsInterface,\n target: string | FormControlCustomValidatorsInterface,\n ): boolean {\n if (typeof item === 'string' || typeof target === 'string') {\n return item === target;\n }\n return item.id === target.id;\n }\n\n /** Set of field variable names the builder recognises (for parsing). */\n #fieldNameSet(): ReadonlySet<string> {\n return new Set(this.fieldOptions().map((f) => f.variable));\n }\n\n /** Whether an input carries a numeric data type. */\n #isNumeric(input: FormColumnInputs): boolean {\n return input.dataType === InputDataTypes.Number || input.type === InputTypes.Number;\n }\n\n /** Recover the per-variable aggregate choices from a draft's observed inputs. */\n #functionsFromDraft(): Record<string, CalculationFunctions> {\n const map: Record<string, CalculationFunctions> = {};\n for (const observed of this.#edit()?.inputsObservedForChanges ?? []) {\n if (observed.function) map[observed.variable] = observed.function;\n }\n return map;\n }\n\n /** Seed the builder state when a draft opens: guided if parseable, else raw. */\n #initBuilderFromDraft(): void {\n this.#functions.set(this.#functionsFromDraft());\n const parsed = parseConditions(this.#edit()?.expression ?? '', this.#fieldNameSet());\n if (parsed) {\n this.#group.set(parsed);\n this.#raw.set(false);\n } else {\n this.#raw.set(true);\n }\n }\n\n /** Reparse the current draft expression into the guided model. */\n #initGroupFromExpression(): void {\n const parsed = parseConditions(this.#edit()?.expression ?? '', this.#fieldNameSet());\n if (parsed) {\n this.#group.set(parsed);\n }\n }\n\n /** Store a builder change: update the model, then serialise into the draft. */\n #applyGroup(next: ValidatorConditionGroup): void {\n this.#group.set(next);\n this.#syncExpression(serializeConditions(next));\n }\n\n /** Write an expression onto the draft and re-derive its observed-input deps. */\n #syncExpression(expression: string): void {\n const fields: readonly FieldBinding[] = this.fieldOptions();\n const functions = this.#functions();\n this.#edit.update((draft) => {\n const base = draft ?? this.#emptyDraft();\n return {\n ...base,\n expression,\n inputsObservedForChanges: deriveObservedInputs(expression, fields, functions),\n };\n });\n }\n\n /** Single mutation path: store the new list and notify the parent. */\n #commit(next: FormControlCustomValidatorsInterface[]): void {\n this.value = next;\n this.markAsTouched();\n this.stateChanges.next();\n this.valueChanged.emit([...next]);\n }\n}\n","<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 — 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> …\n </p>\n }\n } @else {\n @if (fieldOptions().length === 0) {\n <p class=\"lib-validators-config__sub-hint\">\n No fields available yet — 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 — 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 — 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"],"names":["uuidv4","i1","i2","i3","i4","i5","i6","i8","i9"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA;;;;;;;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C,IAAA,CAAA,aAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAQP,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAvBrC,SAAS;+BACE,uBAAuB,EAAA,eAAA,EAGhB,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,QAAQ,EAAA,OAAA,EAChC;wBACP,YAAY;wBACZ,aAAa;wBACb,cAAc;wBACd,aAAa;wBACb,gBAAgB;wBAChB,eAAe;wBACf,qBAAqB;wBACrB,oBAAoB;wBACpB,gBAAgB;qBACjB,EAAA,SAAA,EACU,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAA,yBAA2B,EAAE,CAAC,EAAA,IAAA,EAC/E;AACJ,wBAAA,OAAO,EAAE,uBAAuB;AAChC,wBAAA,WAAW,EAAE,IAAI;AAClB,qBAAA,EAAA,QAAA,EAAA,g5XAAA,EAAA,MAAA,EAAA,CAAA,m7SAAA,CAAA,EAAA;;sBAsBA;;sBAEA;;sBAEA;;;;;"}
1
+ {"version":3,"file":"ngx-t-forms-validators-config.component-CoGSFor3.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/validators-config/validators-config.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/validators-config/validators-config.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Input,\n type OnDestroy,\n ViewEncapsulation,\n computed,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\n\nimport { v4 as uuidv4 } from 'uuid';\n\nimport type {\n DraftFormControlCustomValidator,\n FormColumnInputs,\n FormControlCustomValidatorsInterface,\n} from 'ngx-t-forms-types';\nimport { CalculationFunctions, InputDataTypes, InputTypes } from 'ngx-t-forms-types';\n\nimport { CommonModule } from '@angular/common';\nimport { NgControl } from '@angular/forms';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatButtonToggleModule } from '@angular/material/button-toggle';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { Subject } from 'rxjs';\n\nimport { evaluatePredicate } from '../../../../shared/functions/array-access/predicate-dsl';\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport {\n type FieldBinding,\n PREDICATE_OPERATORS,\n type ValidatorCondition,\n type ValidatorConditionGroup,\n deriveObservedInputs,\n emptyCondition,\n parseConditions,\n referencedTokens,\n serializeConditions,\n} from './validator-condition';\n\n/** A selectable field in the condition builder's field/value dropdowns. */\ninterface FieldOption {\n readonly variable: string;\n readonly label: string;\n readonly isSelf: boolean;\n /** A multiple-input column (lives inside a repeatable group). */\n readonly isMultiple: boolean;\n /** Whether the field holds a numeric value (gates numeric aggregates). */\n readonly numeric: boolean;\n /** The input read at runtime: a primary input id, or a list sub-item id. */\n readonly inputId: string;\n /** Row-array container id, for multiple-input columns. */\n readonly parentInputId?: string;\n}\n\n/** A friendly aggregate choice shown for a referenced list field. */\ninterface AggregateOption {\n readonly value: CalculationFunctions;\n readonly label: string;\n}\n\n/**\n * Internal editor implementing `MatFormFieldControl<FormControlCustomValidatorsInterface[]>`\n * for authoring a form input's custom validators.\n *\n * Rendered by `t-dynamic-data-edit` inside its `<mat-form-field>`, which supplies\n * the surrounding field label, hint, and validation errors — so this component\n * owns only the validator chip list and the inline draft editor.\n *\n * ### Authoring model\n * A validator's `expression` is evaluated by the shared predicate DSL where\n * **`true` means the field is invalid** (the error message is then shown). The\n * editor captures that condition through a **guided builder** — `field operator\n * value` rows joined by All/Any — that serialises to the expression string and\n * auto-derives `inputsObservedForChanges` from the fields it references. An\n * **Advanced** raw editor is the escape hatch for expressions the builder cannot\n * represent (grouping, mixed connectors, negation); these round-trip unchanged.\n *\n * The bound `value` may contain both string entries (legacy validator-name\n * references such as `'required'`, which are read-only) and object entries\n * ({@link FormControlCustomValidatorsInterface}, which are editable). Only object\n * entries open the draft editor.\n *\n * NOTE: `MatFormFieldControl<T>` mandates plain mutable `value` / `disabled` /\n * `required` / `placeholder` / `id` members, `@Input()` decorators, the\n * `focused` / `touched` / `stateChanges` members, and the `useExisting`\n * provider. These are framework wiring, not defects — the CLAUDE.md bans on\n * `@Input()` / `useExisting` do not apply to MatFormFieldControl integration.\n */\n@Component({\n selector: 'lib-validators-config',\n templateUrl: './validators-config.component.html',\n styleUrls: ['./validators-config.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n imports: [\n CommonModule,\n MatIconModule,\n MatChipsModule,\n MatCardModule,\n MatToolbarModule,\n MatButtonModule,\n MatButtonToggleModule,\n MatSlideToggleModule,\n MatTooltipModule,\n ],\n providers: [{ provide: MatFormFieldControl, useExisting: ValidatorsConfigComponent }],\n host: {\n 'class': 'lib-validators-config',\n '[attr.id]': 'id',\n },\n})\nexport class ValidatorsConfigComponent\n implements MatFormFieldControl<FormControlCustomValidatorsInterface[]>, OnDestroy\n{\n static nextId = 0;\n\n /** Emits whenever a piece of `MatFormFieldControl` state changes. */\n readonly stateChanges = new Subject<void>();\n readonly controlType = 'lib-validators-config';\n\n id = `lib-validators-config-${ValidatorsConfigComponent.nextId++}`;\n placeholder = '';\n focused = false;\n touched = false;\n required = false;\n describedBy = '';\n autofilled: boolean | undefined = undefined;\n userAriaDescribedBy: string | undefined = undefined;\n disableAutomaticLabeling: boolean | undefined = undefined;\n\n /** Whether the editor is inert. Kept as `@Input()` for the MFC contract. */\n @Input() disabled = false;\n /** Current validator list. Kept as `@Input()` for the MFC contract. */\n @Input() value: FormControlCustomValidatorsInterface[] = [];\n /** Validation errors surfaced by the parent for error-state derivation. */\n @Input() errors: IConfigElementError[] | undefined = [];\n\n /** Source input that owns this validator config (for multiple-input scopes). */\n readonly mapToData = input<FormColumnInputs | undefined>(undefined);\n /** Available form inputs offered as variables. */\n readonly formInputs = input<Array<FormColumnInputs>>([]);\n\n /** Emits the full validator list whenever it changes. */\n readonly valueChanged = output<FormControlCustomValidatorsInterface[]>();\n\n /** Operator choices shared with the array-access predicate builder. */\n protected readonly operators = PREDICATE_OPERATORS;\n\n /** Aggregate choices for a list field, with non-technical labels. */\n protected readonly aggregates: readonly AggregateOption[] = [\n { value: CalculationFunctions.Sum, label: 'total' },\n { value: CalculationFunctions.Avg, label: 'average' },\n { value: CalculationFunctions.Min, label: 'lowest' },\n { value: CalculationFunctions.Max, label: 'highest' },\n { value: CalculationFunctions.Count, label: 'count' },\n ];\n\n readonly #elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly ngControl = inject(NgControl, { self: true, optional: true });\n\n /** Draft currently open in the inline editor, or `null` when closed. */\n readonly #edit = signal<DraftFormControlCustomValidator | null>(null);\n /** Read-only view of the open draft for the template. */\n protected readonly edit = this.#edit.asReadonly();\n\n /** Guided builder model mirroring the open draft's expression. */\n readonly #group = signal<ValidatorConditionGroup>({ connector: '&&', conditions: [] });\n protected readonly group = this.#group.asReadonly();\n\n /** Whether the draft is being edited as a raw expression instead of guided rows. */\n readonly #raw = signal(false);\n protected readonly raw = this.#raw.asReadonly();\n\n /** Chosen aggregate per referenced list variable (keyed by variable name). */\n readonly #functions = signal<Record<string, CalculationFunctions>>({});\n\n /** Whether the validator being authored lives on a multiple-input sub-item. */\n protected readonly validatorOnList = computed<boolean>(\n () => !!this.mapToData()?.multipleInputInEditId,\n );\n\n /**\n * Fields the builder can reference: every primary input plus every\n * multiple-input column. A multiple column carries its row-array container\n * (`parentInputId`); whether it must be aggregated is decided per condition\n * (see {@link requiredAggregateVariables}), not by the field itself.\n */\n protected readonly fieldOptions = computed<readonly FieldOption[]>(() => {\n const self = this.mapToData();\n const selfId = self?.id;\n const options: FieldOption[] = [];\n for (const input of this.formInputs()) {\n if (!input.formControlName) continue;\n const group = input.multipleInputInEditId;\n options.push({\n variable: input.formControlName,\n label: input.label || input.formControlName,\n isSelf: input.id === selfId,\n isMultiple: !!group,\n numeric: this.#isNumeric(input),\n inputId: group ? input.id : (input.originalId ?? input.id),\n parentInputId: group,\n });\n }\n return options;\n });\n\n /** Primary (scalar) fields, for the first dropdown group. */\n protected readonly directFields = computed<readonly FieldOption[]>(() =>\n this.fieldOptions().filter((f) => !f.isMultiple),\n );\n\n /** Multiple-input columns, for the second dropdown group. */\n protected readonly listFields = computed<readonly FieldOption[]>(() =>\n this.fieldOptions().filter((f) => f.isMultiple),\n );\n\n /** Field option keyed by its expression variable, for operand lookups. */\n readonly #fieldByVariable = computed<ReadonlyMap<string, FieldOption>>(\n () => new Map(this.fieldOptions().map((f) => [f.variable, f])),\n );\n\n /** Multiple-input columns actually referenced by the current expression. */\n protected readonly referencedListFields = computed<readonly FieldOption[]>(() => {\n const tokens = referencedTokens(this.#edit()?.expression ?? '');\n return this.listFields().filter((f) => tokens.has(f.variable));\n });\n\n /**\n * Multiple-input variables that MUST be aggregated: a list column compared\n * against a non-list operand (a primary field or a typed value) has to be\n * reduced to a single value. A list-vs-list comparison leaves the aggregate\n * optional (the columns are row-aligned). In raw mode operand pairing cannot\n * be analysed, so every referenced list column is treated as required.\n */\n protected readonly requiredAggregateVariables = computed<ReadonlySet<string>>(() => {\n if (this.#raw()) {\n return new Set(this.referencedListFields().map((f) => f.variable));\n }\n const byVariable = this.#fieldByVariable();\n const required = new Set<string>();\n for (const cond of this.#group().conditions) {\n const left = byVariable.get(cond.field);\n const right = cond.compareTo === 'field' ? byVariable.get(cond.value) : undefined;\n const leftMultiple = !!left?.isMultiple;\n const rightMultiple = !!right?.isMultiple;\n if (leftMultiple && !rightMultiple) required.add(cond.field);\n if (rightMultiple && !leftMultiple && right) required.add(right.variable);\n }\n return required;\n });\n\n /** Whether every list column that MUST be aggregated has an aggregate chosen. */\n protected readonly aggregatesResolved = computed<boolean>(() => {\n const functions = this.#functions();\n const required = this.requiredAggregateVariables();\n return [...required].every((variable) => !!functions[variable]);\n });\n\n /** Aggregates offered for a field: numeric columns get all, others only count. */\n protected aggregatesFor(field: FieldOption): readonly AggregateOption[] {\n return field.numeric\n ? this.aggregates\n : this.aggregates.filter((a) => a.value === CalculationFunctions.Count);\n }\n\n /** Whether a referenced list column is required to have an aggregate. */\n protected isAggregateRequired(variable: string): boolean {\n return this.requiredAggregateVariables().has(variable);\n }\n\n /**\n * Whether a guided condition is fully specified (field, operator and a value\n * all set). Incomplete conditions are otherwise silently dropped on save, so\n * this gates {@link canSave}.\n */\n protected isConditionComplete(condition: ValidatorCondition): boolean {\n return (\n condition.field.trim() !== '' &&\n condition.operator.trim() !== '' &&\n condition.value.trim() !== ''\n );\n }\n\n /** Whether the guided builder has at least one condition and all are complete. */\n protected readonly conditionsComplete = computed<boolean>(() => {\n if (this.#raw()) return true; // raw mode is gated by syntaxError + non-empty\n const conditions = this.#group().conditions;\n return conditions.length > 0 && conditions.every((c) => this.isConditionComplete(c));\n });\n\n /** Whether the current draft expression can be edited in the guided builder. */\n protected readonly canUseGuided = computed<boolean>(\n () => parseConditions(this.#edit()?.expression ?? '', this.#fieldNameSet()) !== null,\n );\n\n /** Human-readable syntax error for the raw editor, or `null` when valid/empty. */\n protected readonly syntaxError = computed<string | null>(() => {\n const expression = this.#edit()?.expression ?? '';\n if (expression.trim() === '') return null;\n try {\n evaluatePredicate(expression, {});\n return null;\n } catch (error: unknown) {\n return error instanceof Error ? error.message : 'The expression syntax is invalid.';\n }\n });\n\n /** Whether the open draft can be saved (message, a complete/valid rule, aggregates chosen). */\n protected readonly canSave = computed<boolean>(() => {\n const draft = this.#edit();\n return (\n !!draft &&\n !!draft.message &&\n !!draft.expression &&\n this.syntaxError() === null &&\n this.conditionsComplete() &&\n this.aggregatesResolved()\n );\n });\n\n /** A one-line reason the rule cannot be saved yet, or `null` when it can. */\n protected readonly saveHint = computed<string | null>(() => {\n const draft = this.#edit();\n if (!draft) return null;\n if (!draft.message) return 'Add an error message.';\n if (!this.#raw() && !this.conditionsComplete()) {\n return 'Finish every condition — choose a field, a condition and a value.';\n }\n if (!draft.expression) return 'Add at least one condition.';\n if (this.#raw() && this.syntaxError() !== null) return this.syntaxError();\n if (!this.aggregatesResolved()) return 'Choose how to combine each list field.';\n return null;\n });\n\n // MatFormFieldControl reads these as plain getters during its own change\n // detection, so they stay getters rather than `computed()` signals.\n\n get empty(): boolean {\n return this.value.length === 0;\n }\n\n get shouldLabelFloat(): boolean {\n return this.focused || !this.empty;\n }\n\n get errorState(): boolean {\n const ngControlError = this.ngControl?.errors != null;\n const externalError = (this.errors?.length ?? 0) > 0 && this.touched;\n const requiredUnset = this.empty && this.required;\n return requiredUnset || ngControlError || externalError;\n }\n\n setDescribedByIds(ids: string[]): void {\n this.describedBy = ids.join(' ');\n const el = this.#elementRef.nativeElement;\n const controlElement = el.querySelector('.lib-validators-config__list');\n controlElement?.setAttribute('aria-describedby', this.describedBy);\n this.stateChanges.next();\n }\n\n onContainerClick(): void {\n this.markAsTouched();\n this.stateChanges.next();\n }\n\n onTouched: () => void = () => {};\n\n markAsTouched(): void {\n if (!this.touched) {\n this.touched = true;\n this.onTouched();\n this.stateChanges.next();\n }\n }\n\n /** Tear down the MFC state stream so subscribers do not leak. */\n ngOnDestroy(): void {\n this.stateChanges.complete();\n }\n\n /** `@for` track key: object validators by id, string validators by value. */\n protected trackValidator(\n validator: string | FormControlCustomValidatorsInterface,\n ): string {\n return typeof validator === 'string' ? validator : validator.id;\n }\n\n /** Resolve the label shown on a validator chip. */\n protected validatorLabel(validator: string | FormControlCustomValidatorsInterface): string {\n return typeof validator === 'string' ? validator : validator.message;\n }\n\n /** Whether a validator chip is the one currently being edited. */\n protected isEditing(validator: string | FormControlCustomValidatorsInterface): boolean {\n if (typeof validator === 'string') {\n return false;\n }\n return this.#edit()?.id === validator.id;\n }\n\n /**\n * Open a validator for editing. String entries are read-only legacy\n * references and are ignored. Editing the open validator again closes it.\n * The draft is a clone, so edits only land in `value` on Save.\n *\n * DEFECT FIX (discard semantics): the editor is an inline panel with an\n * explicit Close/Save toolbar, not a transient overlay that vanishes on an\n * outside click. Opening a different validator (or {@link addValidator})\n * deliberately replaces the open draft — an explicit, documented discard,\n * never a silent loss mid-edit.\n */\n protected editV(validator: string | FormControlCustomValidatorsInterface): void {\n if (typeof validator === 'string') {\n return;\n }\n if (this.#edit()?.id === validator.id) {\n this.#edit.set(null);\n return;\n }\n this.#edit.set(this.#cloneValidator(validator));\n this.#initBuilderFromDraft();\n }\n\n /** Begin a brand-new validator draft (id assigned on save). */\n protected addValidator(): void {\n this.#edit.set(this.#emptyDraft());\n this.#initBuilderFromDraft();\n }\n\n /** Discard the open draft without persisting it. */\n protected closeEditor(): void {\n this.#edit.set(null);\n }\n\n /** Remove a validator (string or object) from the list and emit. */\n protected remove(validator: string | FormControlCustomValidatorsInterface): void {\n const next = this.value.filter((item) => !this.#sameValidator(item, validator));\n this.#commit(next);\n if (this.isEditing(validator)) {\n this.#edit.set(null);\n }\n }\n\n /** Update the draft's message, or replace its raw expression as the user types. */\n protected onTextChange(event: Event, key: 'message' | 'expression'): void {\n const value = (event.target as HTMLInputElement).value;\n if (key === 'expression') {\n this.#syncExpression(value);\n return;\n }\n this.#edit.update((draft) => {\n const base = draft ?? this.#emptyDraft();\n return { ...base, message: value };\n });\n }\n\n /** Toggle whether users may override (warn instead of block) this validator. */\n protected setCanOverride(checked: boolean): void {\n this.#edit.update((draft) => (draft ? { ...draft, canOverride: checked } : draft));\n }\n\n /**\n * Persist the open draft. A new draft (no id) is appended with a fresh uuid;\n * an existing draft (has id) replaces the matching entry. Emits the new list.\n */\n protected saveVariable(): void {\n const draft = this.#edit();\n if (!draft || !draft.message || !draft.expression) {\n return;\n }\n if (draft.id !== undefined) {\n const id = draft.id;\n const saved: FormControlCustomValidatorsInterface = { ...draft, id };\n this.#commit(\n this.value.map((item) =>\n typeof item !== 'string' && item.id === id ? saved : item,\n ),\n );\n } else {\n const saved: FormControlCustomValidatorsInterface = { ...draft, id: uuidv4() };\n this.#commit([...this.value, saved]);\n }\n this.#edit.set(null);\n }\n\n // ---- guided condition builder ------------------------------------------\n\n /** Switch the All/Any connector joining the conditions. */\n protected setConnector(connector: '&&' | '||'): void {\n this.#applyGroup({ ...this.#group(), connector });\n }\n\n /** Append a fresh condition, defaulting its field to the owning input. */\n protected addCondition(): void {\n const fallback =\n this.directFields().find((f) => f.isSelf) ??\n this.directFields()[0] ??\n this.fieldOptions()[0];\n const group = this.#group();\n this.#applyGroup({\n ...group,\n conditions: [...group.conditions, emptyCondition(fallback?.variable ?? '')],\n });\n }\n\n /** Apply a partial change to the condition at `index`. */\n protected updateCondition(index: number, patch: Partial<ValidatorCondition>): void {\n const group = this.#group();\n const conditions = group.conditions.map((c, i) => (i === index ? { ...c, ...patch } : c));\n this.#applyGroup({ ...group, conditions });\n }\n\n /** Flip a condition between comparing to a typed value and another field. */\n protected toggleCompareTo(index: number): void {\n const condition = this.#group().conditions[index];\n if (!condition) return;\n if (condition.compareTo === 'value') {\n const field = this.fieldOptions().find((f) => f.variable !== condition.field);\n this.updateCondition(index, { compareTo: 'field', value: field?.variable ?? '' });\n } else {\n this.updateCondition(index, { compareTo: 'value', value: '' });\n }\n }\n\n /** Remove the condition at `index`. */\n protected removeCondition(index: number): void {\n const group = this.#group();\n this.#applyGroup({ ...group, conditions: group.conditions.filter((_, i) => i !== index) });\n }\n\n /**\n * Choose (or clear, by re-clicking) the aggregate that reduces a referenced\n * list field to a single value.\n */\n protected setFunction(variable: string, fn: CalculationFunctions): void {\n this.#functions.update((current) => {\n const next = { ...current };\n if (next[variable] === fn) {\n delete next[variable];\n } else {\n next[variable] = fn;\n }\n return next;\n });\n // The expression text is unchanged, but the observed deps now carry the\n // aggregate — re-sync so inputsObservedForChanges reflects the choice.\n this.#syncExpression(this.#edit()?.expression ?? '');\n }\n\n /** The aggregate currently chosen for a list variable, if any. */\n protected currentFunction(variable: string): CalculationFunctions | undefined {\n return this.#functions()[variable];\n }\n\n /** Switch to the raw expression editor. */\n protected useRaw(): void {\n this.#raw.set(true);\n }\n\n /** Switch back to the guided builder, reparsing the current expression. */\n protected useGuided(): void {\n if (!this.canUseGuided()) return;\n this.#initGroupFromExpression();\n this.#raw.set(false);\n }\n\n /** Read the value-event target as a string. */\n protected inputValue(event: Event): string {\n return (event.target as HTMLInputElement | HTMLSelectElement).value;\n }\n\n // ---- internal ----------------------------------------------------------\n\n #emptyDraft(): DraftFormControlCustomValidator {\n return {\n message: '',\n expression: '',\n canOverride: false,\n inputsObservedForChanges: [],\n };\n }\n\n #cloneValidator(\n validator: FormControlCustomValidatorsInterface,\n ): DraftFormControlCustomValidator {\n return {\n ...validator,\n inputsObservedForChanges: validator.inputsObservedForChanges.map((i) => ({ ...i })),\n };\n }\n\n #sameValidator(\n item: string | FormControlCustomValidatorsInterface,\n target: string | FormControlCustomValidatorsInterface,\n ): boolean {\n if (typeof item === 'string' || typeof target === 'string') {\n return item === target;\n }\n return item.id === target.id;\n }\n\n /** Set of field variable names the builder recognises (for parsing). */\n #fieldNameSet(): ReadonlySet<string> {\n return new Set(this.fieldOptions().map((f) => f.variable));\n }\n\n /** Whether an input carries a numeric data type. */\n #isNumeric(input: FormColumnInputs): boolean {\n return input.dataType === InputDataTypes.Number || input.type === InputTypes.Number;\n }\n\n /** Recover the per-variable aggregate choices from a draft's observed inputs. */\n #functionsFromDraft(): Record<string, CalculationFunctions> {\n const map: Record<string, CalculationFunctions> = {};\n for (const observed of this.#edit()?.inputsObservedForChanges ?? []) {\n if (observed.function) map[observed.variable] = observed.function;\n }\n return map;\n }\n\n /** Seed the builder state when a draft opens: guided if parseable, else raw. */\n #initBuilderFromDraft(): void {\n this.#functions.set(this.#functionsFromDraft());\n const parsed = parseConditions(this.#edit()?.expression ?? '', this.#fieldNameSet());\n if (parsed) {\n this.#group.set(parsed);\n this.#raw.set(false);\n } else {\n this.#raw.set(true);\n }\n }\n\n /** Reparse the current draft expression into the guided model. */\n #initGroupFromExpression(): void {\n const parsed = parseConditions(this.#edit()?.expression ?? '', this.#fieldNameSet());\n if (parsed) {\n this.#group.set(parsed);\n }\n }\n\n /** Store a builder change: update the model, then serialise into the draft. */\n #applyGroup(next: ValidatorConditionGroup): void {\n this.#group.set(next);\n this.#syncExpression(serializeConditions(next));\n }\n\n /** Write an expression onto the draft and re-derive its observed-input deps. */\n #syncExpression(expression: string): void {\n const fields: readonly FieldBinding[] = this.fieldOptions();\n const functions = this.#functions();\n this.#edit.update((draft) => {\n const base = draft ?? this.#emptyDraft();\n return {\n ...base,\n expression,\n inputsObservedForChanges: deriveObservedInputs(expression, fields, functions),\n };\n });\n }\n\n /** Single mutation path: store the new list and notify the parent. */\n #commit(next: FormControlCustomValidatorsInterface[]): void {\n this.value = next;\n this.markAsTouched();\n this.stateChanges.next();\n this.valueChanged.emit([...next]);\n }\n}\n","<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 — 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> …\n </p>\n }\n } @else {\n @if (fieldOptions().length === 0) {\n <p class=\"lib-validators-config__sub-hint\">\n No fields available yet — 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 — 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 — 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"],"names":["uuidv4","i1","i2","i3","i4","i5","i6","i8","i9"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BG;MAwBU,yBAAyB,CAAA;AAvBtC,IAAA,WAAA,GAAA;;AA6BW,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAQ;QAClC,IAAA,CAAA,WAAW,GAAG,uBAAuB;AAE9C,QAAA,IAAA,CAAA,EAAE,GAAG,CAAA,sBAAA,EAAyB,yBAAyB,CAAC,MAAM,EAAE,EAAE;QAClE,IAAA,CAAA,WAAW,GAAG,EAAE;QAChB,IAAA,CAAA,OAAO,GAAG,KAAK;QACf,IAAA,CAAA,OAAO,GAAG,KAAK;QACf,IAAA,CAAA,QAAQ,GAAG,KAAK;QAChB,IAAA,CAAA,WAAW,GAAG,EAAE;QAChB,IAAA,CAAA,UAAU,GAAwB,SAAS;QAC3C,IAAA,CAAA,mBAAmB,GAAuB,SAAS;QACnD,IAAA,CAAA,wBAAwB,GAAwB,SAAS;;QAGhD,IAAA,CAAA,QAAQ,GAAG,KAAK;;QAEhB,IAAA,CAAA,KAAK,GAA2C,EAAE;;QAElD,IAAA,CAAA,MAAM,GAAsC,EAAE;;AAG9C,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAA+B,SAAS,gFAAC;;AAE1D,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAA0B,EAAE,iFAAC;;QAG/C,IAAA,CAAA,YAAY,GAAG,MAAM,EAA0C;;QAGrD,IAAA,CAAA,SAAS,GAAG,mBAAmB;;AAG/B,QAAA,IAAA,CAAA,UAAU,GAA+B;Y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A,EAAA,WAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,oBAAA,EAAA,4BAAA,EAAA,oBAAA,EAAA,qBAAA,EAAA,qBAAA,EAAA,yBAAA,EAAA,YAAA,EAAA,iBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,aAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAQP,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAvBrC,SAAS;+BACE,uBAAuB,EAAA,eAAA,EAGhB,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,QAAQ,EAAA,OAAA,EAChC;wBACP,YAAY;wBACZ,aAAa;wBACb,cAAc;wBACd,aAAa;wBACb,gBAAgB;wBAChB,eAAe;wBACf,qBAAqB;wBACrB,oBAAoB;wBACpB,gBAAgB;qBACjB,EAAA,SAAA,EACU,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAA,yBAA2B,EAAE,CAAC,EAAA,IAAA,EAC/E;AACJ,wBAAA,OAAO,EAAE,uBAAuB;AAChC,wBAAA,WAAW,EAAE,IAAI;AAClB,qBAAA,EAAA,QAAA,EAAA,g5XAAA,EAAA,MAAA,EAAA,CAAA,m7SAAA,CAAA,EAAA;;sBAsBA;;sBAEA;;sBAEA;;;;;"}
@@ -2,15 +2,15 @@ import * as i0 from '@angular/core';
2
2
  import { inject, DestroyRef, input, output, computed, effect, ViewEncapsulation, ChangeDetectionStrategy, Component, signal, ElementRef } from '@angular/core';
3
3
  import * as i1 from '@angular/forms';
4
4
  import { ReactiveFormsModule, FormsModule, FormBuilder, FormControl, Validators, NgControl } from '@angular/forms';
5
- import * as i2$1 from '@angular/material/form-field';
5
+ import * as i2$2 from '@angular/material/form-field';
6
6
  import { MatFormFieldModule, MatFormFieldControl } from '@angular/material/form-field';
7
7
  import * as i3 from '@angular/material/icon';
8
8
  import { MatIconModule } from '@angular/material/icon';
9
- import * as i1$1 from '@angular/material/button';
9
+ import * as i2$1 from '@angular/material/button';
10
10
  import { MatButtonModule } from '@angular/material/button';
11
11
  import * as i5$2 from '@angular/material/tooltip';
12
12
  import { MatTooltipModule } from '@angular/material/tooltip';
13
- import { N as NGX_T_FORMS_CONFIG_TOKEN, _ as _isEqual, D as DaysAgoPipe, B as BaseCustomInput, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-D7kDvkTZ.mjs';
13
+ import { N as NGX_T_FORMS_CONFIG_TOKEN, _ as _isEqual, D as DaysAgoPipe, B as BaseCustomInput, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-BefvSS-p.mjs';
14
14
  import { AsyncPipe, DecimalPipe, TitleCasePipe } from '@angular/common';
15
15
  import { InputDataTypes, AdjudicationSteps } from 'ngx-t-forms-types';
16
16
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
@@ -18,27 +18,27 @@ import * as i2 from '@angular/cdk/text-field';
18
18
  import { TextFieldModule } from '@angular/cdk/text-field';
19
19
  import * as i5 from '@angular/material/autocomplete';
20
20
  import { MatAutocompleteModule } from '@angular/material/autocomplete';
21
- import * as i2$2 from '@angular/material/input';
21
+ import * as i2$3 from '@angular/material/input';
22
22
  import { MatInputModule } from '@angular/material/input';
23
23
  import * as i8 from '@angular/material/select';
24
24
  import { MatSelectModule } from '@angular/material/select';
25
- import * as i10 from '@angular/material/sort';
25
+ import * as i2$4 from '@angular/material/sort';
26
26
  import { MatSortModule } from '@angular/material/sort';
27
27
  import * as i5$1 from '@angular/material/table';
28
28
  import { MatTableModule } from '@angular/material/table';
29
29
  import { tap, BehaviorSubject, switchMap, take, shareReplay, combineLatest, map, startWith, catchError, of } from 'rxjs';
30
30
  import { v4 } from 'uuid';
31
31
  import { g as getInputIcon } from './ngx-t-forms-getInputIcon-B4ADgevZ.mjs';
32
- import * as i2$3 from '@angular/cdk/overlay';
32
+ import * as i2$5 from '@angular/cdk/overlay';
33
33
  import { OverlayModule } from '@angular/cdk/overlay';
34
- import * as i1$2 from '@angular/material/dialog';
34
+ import * as i1$1 from '@angular/material/dialog';
35
35
  import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule, MatDialog } from '@angular/material/dialog';
36
36
  import * as i4 from '@angular/material/progress-spinner';
37
37
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
38
38
  import * as i7 from '@angular/material/core';
39
39
  import { MatRippleModule } from '@angular/material/core';
40
- import { EditorJsInputComponent } from './ngx-t-forms-editor-js-input.component-BQSF3142.mjs';
41
- import * as i1$3 from '@angular/material/progress-bar';
40
+ import { b as EditorJsInputComponent } from './ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs';
41
+ import * as i1$2 from '@angular/material/progress-bar';
42
42
  import { MatProgressBarModule } from '@angular/material/progress-bar';
43
43
  import * as i5$3 from '@angular/material/expansion';
44
44
  import { MatExpansionModule } from '@angular/material/expansion';
@@ -428,7 +428,7 @@ class PointsCreationComponent {
428
428
  i0.ɵɵproperty("matHeaderRowDef", ctx.cols());
429
429
  i0.ɵɵadvance();
430
430
  i0.ɵɵproperty("matRowDefColumns", ctx.cols());
431
- } }, dependencies: [ReactiveFormsModule, i1.DefaultValueAccessor, i1.NumberValueAccessor, i1.NgControlStatus, FormsModule, i1.NgModel, TextFieldModule, i2.CdkTextareaAutosize, MatAutocompleteModule, i5.MatAutocomplete, i8.MatOption, i5.MatAutocompleteTrigger, MatButtonModule, i1$1.MatButton, i1$1.MatIconButton, MatFormFieldModule, i2$1.MatFormField, MatIconModule, i3.MatIcon, MatInputModule, i2$2.MatInput, MatSelectModule, i8.MatSelect, MatSortModule, i10.MatSort, MatTableModule, i5$1.MatTable, i5$1.MatHeaderCellDef, i5$1.MatHeaderRowDef, i5$1.MatColumnDef, i5$1.MatCellDef, i5$1.MatRowDef, i5$1.MatHeaderCell, i5$1.MatCell, i5$1.MatHeaderRow, i5$1.MatRow, MatTooltipModule, i5$2.MatTooltip], styles: [".input-add[_ngcontent-%COMP%]{width:100%}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:4px}mat-hint[_ngcontent-%COMP%]{text-align:start}[_nghost-%COMP%] .glass[_ngcontent-%COMP%]{background:#ffffff40;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.mat-column-totalPoints[_ngcontent-%COMP%]{width:100px!important;max-width:100px!important}.mat-column-pointType[_ngcontent-%COMP%]{width:180px!important;max-width:180px!important}.mat-column-actions[_ngcontent-%COMP%]{width:78px!important;max-width:78px!important}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%]{margin-top:8px}"], changeDetection: 0 }); }
431
+ } }, dependencies: [ReactiveFormsModule, i1.DefaultValueAccessor, i1.NumberValueAccessor, i1.NgControlStatus, FormsModule, i1.NgModel, TextFieldModule, i2.CdkTextareaAutosize, MatAutocompleteModule, i5.MatAutocomplete, i8.MatOption, i5.MatAutocompleteTrigger, MatButtonModule, i2$1.MatButton, i2$1.MatIconButton, MatFormFieldModule, i2$2.MatFormField, MatIconModule, i3.MatIcon, MatInputModule, i2$3.MatInput, MatSelectModule, i8.MatSelect, MatSortModule, i2$4.MatSort, MatTableModule, i5$1.MatTable, i5$1.MatHeaderCellDef, i5$1.MatHeaderRowDef, i5$1.MatColumnDef, i5$1.MatCellDef, i5$1.MatRowDef, i5$1.MatHeaderCell, i5$1.MatCell, i5$1.MatHeaderRow, i5$1.MatRow, MatTooltipModule, i5$2.MatTooltip], styles: [".input-add[_ngcontent-%COMP%]{width:100%}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:4px}mat-hint[_ngcontent-%COMP%]{text-align:start}[_nghost-%COMP%] .glass[_ngcontent-%COMP%]{background:#ffffff40;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.mat-column-totalPoints[_ngcontent-%COMP%]{width:100px!important;max-width:100px!important}.mat-column-pointType[_ngcontent-%COMP%]{width:180px!important;max-width:180px!important}.mat-column-actions[_ngcontent-%COMP%]{width:78px!important;max-width:78px!important}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%]{margin-top:8px}"], changeDetection: 0 }); }
432
432
  }
433
433
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PointsCreationComponent, [{
434
434
  type: Component,
@@ -552,7 +552,7 @@ class SubmissionReviewDialogComponent {
552
552
  i0.ɵɵproperty("value", ctx.data.row["adj_microFlow_review_notes"] || ctx.data.activeRowNotes)("inputConfig", ctx.notesInputConfig)("required", ctx.notesInputConfig.required);
553
553
  i0.ɵɵadvance(8);
554
554
  i0.ɵɵconditional(!ctx.data.readonly ? 20 : -1);
555
- } }, dependencies: [MatDialogModule, i1$2.MatDialogClose, i1$2.MatDialogTitle, i1$2.MatDialogActions, i1$2.MatDialogContent, MatFormFieldModule, i2$1.MatFormField, i2$1.MatHint, MatButtonModule, i1$1.MatButton, EditorJsInputComponent], styles: ["[_nghost-%COMP%]{display:block;min-width:500px;max-width:700px}.bidder-name[_ngcontent-%COMP%]{font-weight:500}.summary-bar[_ngcontent-%COMP%]{margin-bottom:24px}.summary-bar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:8px;font-weight:500}.score-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 4px;gap:16px}.score-description[_ngcontent-%COMP%]{flex:1;margin-right:16px;line-height:1.4}.score-input[_ngcontent-%COMP%]{flex-shrink:0;width:150px}.mat-expansion-panel-body[_ngcontent-%COMP%] .score-item[_ngcontent-%COMP%]:last-child + mat-divider[_ngcontent-%COMP%]{display:none}mat-dialog-actions[_ngcontent-%COMP%]{padding:16px 24px}.mat-mdc-form-field-error[_ngcontent-%COMP%]{font-size:.8125em}.dialog-instructions[_ngcontent-%COMP%]{margin-top:-8px;margin-bottom:24px;max-width:95%;padding-left:24px;padding-right:24px}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin-top:8px}"], changeDetection: 0 }); }
555
+ } }, dependencies: [MatDialogModule, i1$1.MatDialogClose, i1$1.MatDialogTitle, i1$1.MatDialogActions, i1$1.MatDialogContent, MatFormFieldModule, i2$2.MatFormField, i2$2.MatHint, MatButtonModule, i2$1.MatButton, EditorJsInputComponent], styles: ["[_nghost-%COMP%]{display:block;min-width:500px;max-width:700px}.bidder-name[_ngcontent-%COMP%]{font-weight:500}.summary-bar[_ngcontent-%COMP%]{margin-bottom:24px}.summary-bar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:8px;font-weight:500}.score-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 4px;gap:16px}.score-description[_ngcontent-%COMP%]{flex:1;margin-right:16px;line-height:1.4}.score-input[_ngcontent-%COMP%]{flex-shrink:0;width:150px}.mat-expansion-panel-body[_ngcontent-%COMP%] .score-item[_ngcontent-%COMP%]:last-child + mat-divider[_ngcontent-%COMP%]{display:none}mat-dialog-actions[_ngcontent-%COMP%]{padding:16px 24px}.mat-mdc-form-field-error[_ngcontent-%COMP%]{font-size:.8125em}.dialog-instructions[_ngcontent-%COMP%]{margin-top:-8px;margin-bottom:24px;max-width:95%;padding-left:24px;padding-right:24px}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin-top:8px}"], changeDetection: 0 }); }
556
556
  }
557
557
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubmissionReviewDialogComponent, [{
558
558
  type: Component,
@@ -1318,7 +1318,7 @@ class SubmissionReviewComponent {
1318
1318
  } if (rf & 2) {
1319
1319
  let tmp_0_0;
1320
1320
  i0.ɵɵconditional((tmp_0_0 = i0.ɵɵpipeBind1(1, 1, ctx.vm$)) ? 0 : -1, tmp_0_0);
1321
- } }, dependencies: [FormsModule, i1.DefaultValueAccessor, OverlayModule, i2$3.CdkOverlayOrigin, MatButtonModule, i1$1.MatButton, i1$1.MatIconButton, MatFormFieldModule, i2$1.MatFormField, i2$1.MatLabel, i2$1.MatHint, MatIconModule, i3.MatIcon, MatInputModule,
1321
+ } }, dependencies: [FormsModule, i1.DefaultValueAccessor, OverlayModule, i2$5.CdkOverlayOrigin, MatButtonModule, i2$1.MatButton, i2$1.MatIconButton, MatFormFieldModule, i2$2.MatFormField, i2$2.MatLabel, i2$2.MatHint, MatIconModule, i3.MatIcon, MatInputModule,
1322
1322
  MatProgressSpinnerModule, i4.MatProgressSpinner, MatRippleModule, i7.MatRipple, MatSelectModule, i8.MatSelect, i8.MatOption, MatTableModule, i5$1.MatTable, i5$1.MatHeaderCellDef, i5$1.MatHeaderRowDef, i5$1.MatColumnDef, i5$1.MatCellDef, i5$1.MatRowDef, i5$1.MatHeaderCell, i5$1.MatCell, i5$1.MatHeaderRow, i5$1.MatRow, MatTooltipModule, i5$2.MatTooltip, AsyncPipe,
1323
1323
  DecimalPipe,
1324
1324
  DaysAgoPipe], styles: [".number[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin-top:8px}.number-cell[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.secondary-text[_ngcontent-%COMP%]{display:flex;align-items:center;white-space:pre;font-size:.75em;gap:8px;opacity:.8}.secondary-text[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:.875em;width:14px;height:14px}.mat-column-adjudicationPricePreferenceCalculation[_ngcontent-%COMP%]{max-width:70px}.mat-column-actions[_ngcontent-%COMP%]{padding:0;max-width:80px}.mat-column-status[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:fit-content!important}.main-submission-text[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:.875em}[_nghost-%COMP%] .notes-card[_ngcontent-%COMP%]{width:100%;max-width:480px;resize:both;height:fit-content}.smallIcon[_ngcontent-%COMP%]{font-size:.875em;width:14px;height:14px}.table-cell[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}"], changeDetection: 0 }); }
@@ -1342,7 +1342,7 @@ class SubmissionReviewComponent {
1342
1342
  DaysAgoPipe,
1343
1343
  ], template: "@if (vm$ | async; as vm) {\r\n\r\n @if (vm.loading) {\r\n <div style=\"display: flex; justify-content: center; align-items: center; padding:24px;width: 100%;\">\r\n <mat-spinner></mat-spinner>\r\n </div>\r\n } @else if (vm.error) {\r\n <div class=\"info-card error-card\">\r\n <h5 class=\"info-title\">\u274C Failed to load data</h5>\r\n <p>{{ vm.error }}</p>\r\n <button mat-raised-button color=\"primary\" (click)=\"loadMicroSubmissions()\">\r\n Try Again\r\n </button>\r\n </div>\r\n } @else {\r\n @if (!vm.displayCols.length) {\r\n <div class=\"info-card\">\r\n <h5 class=\"info-title\">\u2699\uFE0F This step needs to be configured to show data.</h5>\r\n <ol>\r\n <li>\r\n <strong>Why you're seeing this:</strong>\r\n <ul>\r\n <li>This component is designed for a <strong>\"Submission Review\"</strong> workflow step.</li>\r\n <li>It's currently missing the required column setup.</li>\r\n </ul>\r\n </li>\r\n <li>\r\n <strong>What to do (for Administrators):</strong>\r\n To fix this, go to the <strong>Workflow Builder</strong> and for this specific step, <strong>map the display\r\n columns</strong> to the desired submission data (e.g., form fields or document keys).\r\n </li>\r\n </ol>\r\n </div>\r\n } @else if (!vm.submissions.length) {\r\n <div class=\"info-card\">\r\n <h5 class=\"info-title\">\u2139\uFE0F There are no submissions to display.</h5>\r\n <ul>\r\n <li>This can happen if <strong>no one has responded</strong> yet, or if the <strong>submission closing date has\r\n passed</strong>.</li>\r\n <li>If you are expecting to see submissions, try clicking the <strong>Refresh</strong> button.</li>\r\n </ul>\r\n <button mat-raised-button color=\"primary\" (click)=\"loadMicroSubmissions()\" class=\"load-button\">\r\n Refresh\r\n </button>\r\n </div>\r\n } @else {\r\n @if (!value() || (value()?.length ?? 0) === 0) {\r\n <!-- value() typed `any` per parent's mixed union; length check survives null -->\r\n\r\n <div class=\"info-card\">\r\n <h5 class=\"info-title\">\uD83D\uDCDD How to Review Submissions</h5>\r\n <ol>\r\n <li>\r\n <strong>View Response:</strong> Click the <strong>Preview</strong> (<mat-icon\r\n class=\"smallIcon\">preview</mat-icon>) icon to see the full submission.\r\n </li>\r\n <li>\r\n <strong>Set Status:</strong> Use the dropdown to select <strong>Compliant</strong> or\r\n <strong>Non-compliant</strong>.\r\n </li>\r\n <li>\r\n <strong>Add Note (If Non-compliant):</strong>\r\n <ul>\r\n <li>If you select <strong>Non-compliant</strong>, you <strong>must</strong> add a note.</li>\r\n <li>Click the <strong>Add Note</strong> (<mat-icon class=\"smallIcon\">add_comment</mat-icon>) icon, write your\r\n feedback, and hit <strong>Save Feedback</strong>. Your note will be visible to the applicant.</li>\r\n </ul>\r\n </li>\r\n </ol>\r\n </div>\r\n }\r\n <table mat-table [dataSource]=\"vm.submissions\">\r\n @for (col of vm.displayColumns; track col.formControlName) {\r\n <ng-container [matColumnDef]=\"col.formControlName\">\r\n <th mat-header-cell *matHeaderCellDef style=\"padding:4px\">\r\n\r\n @if (col.formControlName === 'status' && !inputConfig()?.readonly) {\r\n <mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\" style=\"width: 100%;\r\n margin-bottom: 8px;\r\n margin-top: 8px;\r\n border-radius:16px;\" appearance=\"outline\">\r\n <mat-label>\r\n Bulk Status Selection\r\n </mat-label>\r\n <mat-select\r\n [style.color]=\"bulkStatus() === 'non-compliant' ? 'var(--mat-sys-error)' : bulkStatus()==='compliant'? 'var(--mat-sys-primary)' : ''\"\r\n (selectionChange)=\"bulkStatusChanged($event)\" ngDefaultControl [value]=\"bulkStatus()\"\r\n placeholder=\" Select Status\">\r\n @for (type of bulkOperations || []; track type) {\r\n <mat-option [value]=\"type.value\">{{type.label}}</mat-option>\r\n }\r\n </mat-select>\r\n </mat-form-field>\r\n } @else {\r\n {{ col.label }}\r\n }\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\" mat-ripple class=\"table-cell\" [class.selected-row]=\"selected === row.id\"\r\n (click)=\"$event.stopPropagation()\" [class.price-preference-cell]=\"true\"\r\n [style.border-bottom-color]=\"row.adjudicationPricePreferenceCalculationColor\"\r\n [style.background]=\"row.backgroundShades?.[col.formControlName]\">\r\n\r\n @if (col.formControlName === 'actions') {\r\n <span style=\"display: flex; align-items: center;\">\r\n <button matTooltipPosition=\"before\"\r\n [matTooltip]=\"`View and review **` + row[vm.columnMapping.respondentNameKey]+ `** 's' Submission`\"\r\n (click)=\"viewMicroSubmission(row)\" mat-icon-button>\r\n <mat-icon>preview</mat-icon>\r\n </button>\r\n @if (!(inputConfig()?.readonly) || (inputConfig()?.readonly) && !!row['submissionHasReviewNotes']) {\r\n <button (click)=\"openNotes(row)\" cdkOverlayOrigin #trigger=\"cdkOverlayOrigin\" matTooltipPosition=\"after\"\r\n [matTooltip]=\"\r\n `Add a review note for **` + row[vm.columnMapping.respondentNameKey] + `**`\" mat-icon-button>\r\n <mat-icon [style.color]=\"\r\n notesOpenForRowId === row.id ? 'var(--mat-sys-primary)' : (row['adj_microFlow_review']==='non-compliant' && !row['adj_microFlow_review_notes']?'var(--mat-sys-error)':'')\r\n \">\r\n {{ !row['submissionHasReviewNotes']? 'add_comment' : 'comment' }}\r\n </mat-icon>\r\n </button>\r\n }\r\n </span>\r\n } @else if (col.formControlName === 'status') {\r\n <mat-form-field floatLabel=\"always\" subscriptSizing=\"dynamic\" style=\"width: 100%;\r\n margin-bottom: 8px;\r\n margin-top: 8px;\r\n border-radius:16px;\" appearance=\"outline\">\r\n <mat-select [disabled]=\"!canChangeStatus(row) || inputConfig()?.readonly === true\"\r\n [style.color]=\"row['adj_microFlow_review'] === 'non-compliant' ? 'var(--mat-sys-error)' : row['adj_microFlow_review']==='compliant'? 'var(--mat-sys-primary)' : ''\"\r\n (selectionChange)=\"setResponseStatus(row,$event)\" ngDefaultControl [value]=\"row.adj_microFlow_review\"\r\n placeholder=\" Select Status\">\r\n @for (type of reviewStatuses || []; track type) {\r\n <mat-option [value]=\"type.value\">{{type.label}}</mat-option>\r\n }\r\n </mat-select>\r\n @if (row['adj_microFlow_review']==='non-compliant' && !row['adj_microFlow_review_notes']) {\r\n <mat-hint style=\"color:var(--mat-sys-error)\">\r\n Rejection reason is required. Add a review note.\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n } @else {\r\n @switch (col?.type) {\r\n @case ('daysAgo') {\r\n {{ row[col.formControlName] | daysAgo }}\r\n }\r\n @case ('number') {\r\n <div class=\"number-cell\">\r\n <span>\r\n {{ (row[col.formControlName] | number:'0.0-0' ) || 'N/A' }}\r\n </span>\r\n @if (col.showColor) {\r\n <mat-icon [style.color]=\"row.adjudicationPricePreferenceCalculationColor\">\r\n fiber_manual_record\r\n </mat-icon>\r\n }\r\n </div>\r\n }\r\n @default {\r\n @if ($index === 0) {\r\n <span class=\"main-submission-text\">\r\n <mat-icon style=\"font-size: 1em;height:16px;width:16px\">domain</mat-icon>\r\n <strong>\r\n {{ row[col.formControlName] }}\r\n </strong>\r\n </span>\r\n <span class=\"secondary-text\">\r\n <mat-icon>fingerprint</mat-icon>\r\n {{row[vm.columnMapping.respondentCodeKey]}}\r\n <mat-icon>more_time</mat-icon>\r\n {{ row[vm.columnMapping.responseDateKey ||''] | daysAgo}}\r\n </span>\r\n } @else {\r\n {{ row[col.formControlName] }}\r\n }\r\n }\r\n }\r\n }\r\n </td>\r\n </ng-container>\r\n }\r\n <tr mat-header-row *matHeaderRowDef=\"vm.displayCols\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: vm.displayCols\"></tr>\r\n </table>\r\n }\r\n }\r\n\r\n}\r\n", styles: [".number{display:flex;justify-content:space-between;align-items:center}li{font-size:.75em}ol,ul{margin-top:8px}.number-cell{display:flex;justify-content:space-between;align-items:center;width:100%}.secondary-text{display:flex;align-items:center;white-space:pre;font-size:.75em;gap:8px;opacity:.8}.secondary-text mat-icon{font-size:.875em;width:14px;height:14px}.mat-column-adjudicationPricePreferenceCalculation{max-width:70px}.mat-column-actions{padding:0;max-width:80px}.mat-column-status{padding-left:8px;padding-right:8px;max-width:fit-content!important}.main-submission-text{display:flex;align-items:center;gap:8px;font-size:.875em}:host .notes-card{width:100%;max-width:480px;resize:both;height:fit-content}.smallIcon{font-size:.875em;width:14px;height:14px}.table-cell{padding-left:4px;padding-right:4px}\n"] }]
1344
1344
  }], null, { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], reviewChange: [{ type: i0.Output, args: ["reviewChange"] }] }); })();
1345
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SubmissionReviewComponent, { className: "SubmissionReviewComponent", filePath: "lib/components/t-form-input/elements/workflow-adjudication/elements/submission-review/submission-review.component.ts", lineNumber: 80 }); })();
1345
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SubmissionReviewComponent, { className: "SubmissionReviewComponent", filePath: "lib/components/t-form-input/elements/workflow-adjudication/elements/submission-review/submission-review.component.ts", lineNumber: 90 }); })();
1346
1346
 
1347
1347
  const _c0 = () => [];
1348
1348
  const _forTrack0$2 = ($index, $item) => $item.key;
@@ -1591,7 +1591,7 @@ class PointAssignmentDialogComponent {
1591
1591
  i0.ɵɵrepeater(ctx.data.scoreSheetGroups);
1592
1592
  i0.ɵɵadvance(5);
1593
1593
  i0.ɵɵconditional(!ctx.data.readonly ? 18 : -1);
1594
- } }, dependencies: [ReactiveFormsModule, i1.DefaultValueAccessor, i1.NumberValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.MinValidator, i1.MaxValidator, i1.FormGroupDirective, i1.FormControlName, i1.FormGroupName, MatDialogModule, i1$2.MatDialogClose, i1$2.MatDialogTitle, i1$2.MatDialogActions, i1$2.MatDialogContent, MatFormFieldModule, i2$1.MatFormField, i2$1.MatLabel, i2$1.MatError, i2$1.MatSuffix, MatInputModule, i2$2.MatInput, MatButtonModule, i1$1.MatButton, MatProgressBarModule, i1$3.MatProgressBar, MatExpansionModule, i5$3.MatAccordion, i5$3.MatExpansionPanel, i5$3.MatExpansionPanelHeader, i5$3.MatExpansionPanelTitle, MatDividerModule, i6.MatDivider, AsyncPipe], styles: ["[_nghost-%COMP%]{display:block;min-width:500px;max-width:700px}.bidder-name[_ngcontent-%COMP%]{font-weight:500}.summary-bar[_ngcontent-%COMP%]{margin-bottom:24px}.summary-bar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:8px;font-weight:500}.score-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 4px;gap:16px}.score-description[_ngcontent-%COMP%]{flex:1;margin-right:16px;line-height:1.4}.score-input[_ngcontent-%COMP%]{flex-shrink:0;width:150px}.mat-expansion-panel-body[_ngcontent-%COMP%] .score-item[_ngcontent-%COMP%]:last-child + mat-divider[_ngcontent-%COMP%]{display:none}mat-dialog-actions[_ngcontent-%COMP%]{padding:16px 24px}.mat-mdc-form-field-error[_ngcontent-%COMP%]{font-size:.8125em}.dialog-instructions[_ngcontent-%COMP%]{margin-top:-8px;margin-bottom:24px;max-width:95%;padding-left:24px;padding-right:24px}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin-top:8px}"], changeDetection: 0 }); }
1594
+ } }, dependencies: [ReactiveFormsModule, i1.DefaultValueAccessor, i1.NumberValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.MinValidator, i1.MaxValidator, i1.FormGroupDirective, i1.FormControlName, i1.FormGroupName, MatDialogModule, i1$1.MatDialogClose, i1$1.MatDialogTitle, i1$1.MatDialogActions, i1$1.MatDialogContent, MatFormFieldModule, i2$2.MatFormField, i2$2.MatLabel, i2$2.MatError, i2$2.MatSuffix, MatInputModule, i2$3.MatInput, MatButtonModule, i2$1.MatButton, MatProgressBarModule, i1$2.MatProgressBar, MatExpansionModule, i5$3.MatAccordion, i5$3.MatExpansionPanel, i5$3.MatExpansionPanelHeader, i5$3.MatExpansionPanelTitle, MatDividerModule, i6.MatDivider, AsyncPipe], styles: ["[_nghost-%COMP%]{display:block;min-width:500px;max-width:700px}.bidder-name[_ngcontent-%COMP%]{font-weight:500}.summary-bar[_ngcontent-%COMP%]{margin-bottom:24px}.summary-bar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:8px;font-weight:500}.score-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 4px;gap:16px}.score-description[_ngcontent-%COMP%]{flex:1;margin-right:16px;line-height:1.4}.score-input[_ngcontent-%COMP%]{flex-shrink:0;width:150px}.mat-expansion-panel-body[_ngcontent-%COMP%] .score-item[_ngcontent-%COMP%]:last-child + mat-divider[_ngcontent-%COMP%]{display:none}mat-dialog-actions[_ngcontent-%COMP%]{padding:16px 24px}.mat-mdc-form-field-error[_ngcontent-%COMP%]{font-size:.8125em}.dialog-instructions[_ngcontent-%COMP%]{margin-top:-8px;margin-bottom:24px;max-width:95%;padding-left:24px;padding-right:24px}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin-top:8px}"], changeDetection: 0 }); }
1595
1595
  }
1596
1596
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PointAssignmentDialogComponent, [{
1597
1597
  type: Component,
@@ -2073,7 +2073,7 @@ class PointAssignmentComponent {
2073
2073
  i0.ɵɵconditional((tmp_0_0 = i0.ɵɵpipeBind1(1, 1, ctx.vm$)) ? 0 : -1, tmp_0_0);
2074
2074
  } }, dependencies: [FormsModule,
2075
2075
  ReactiveFormsModule,
2076
- MatButtonModule, i1$1.MatButton, i1$1.MatIconButton, MatIconModule, i3.MatIcon, MatProgressSpinnerModule, i4.MatProgressSpinner, MatRippleModule, i7.MatRipple, MatTableModule, i5$1.MatTable, i5$1.MatHeaderCellDef, i5$1.MatHeaderRowDef, i5$1.MatColumnDef, i5$1.MatCellDef, i5$1.MatRowDef, i5$1.MatHeaderCell, i5$1.MatCell, i5$1.MatHeaderRow, i5$1.MatRow, MatTooltipModule, i5$2.MatTooltip, AsyncPipe,
2076
+ MatButtonModule, i2$1.MatButton, i2$1.MatIconButton, MatIconModule, i3.MatIcon, MatProgressSpinnerModule, i4.MatProgressSpinner, MatRippleModule, i7.MatRipple, MatTableModule, i5$1.MatTable, i5$1.MatHeaderCellDef, i5$1.MatHeaderRowDef, i5$1.MatColumnDef, i5$1.MatCellDef, i5$1.MatRowDef, i5$1.MatHeaderCell, i5$1.MatCell, i5$1.MatHeaderRow, i5$1.MatRow, MatTooltipModule, i5$2.MatTooltip, AsyncPipe,
2077
2077
  DecimalPipe,
2078
2078
  DaysAgoPipe], styles: [".number[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin-top:8px}.number-cell[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.secondary-text[_ngcontent-%COMP%]{display:flex;align-items:center;white-space:pre;font-size:.75em;gap:8px;opacity:.8}.secondary-text[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:.875em;width:14px;height:14px}.mat-column-adj_microFlow_review[_ngcontent-%COMP%]{max-width:18px;text-align:center}.mat-column-nameOfBidder[_ngcontent-%COMP%]{max-width:90px}.mat-column-actions[_ngcontent-%COMP%]{padding:0;max-width:80px}.mat-column-status[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:fit-content!important}.main-submission-text[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:.875em}[_nghost-%COMP%] .notes-card[_ngcontent-%COMP%]{width:100%;max-width:480px;resize:both;height:fit-content}.smallIcon[_ngcontent-%COMP%]{font-size:.875em;width:14px;height:14px}.table-cell[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}.mat-column-adjudicationPricePreferenceCalculation[_ngcontent-%COMP%]{max-width:18px;text-align:center}.mat-column-adj_microFlow_scoreSheetTotalPoints[_ngcontent-%COMP%]{width:148px;text-align:center}.mat-column-actions[_ngcontent-%COMP%]{max-width:14px;text-align:center}.ngx-t-forms-point-assignment-menu[_ngcontent-%COMP%]{width:fit-content!important;max-width:400px!important}.point-assignment-menu[_ngcontent-%COMP%]{padding-left:28px;padding-right:28px}"], changeDetection: 0 }); }
2079
2079
  }
@@ -2645,7 +2645,7 @@ class SupplierSelectionComponent {
2645
2645
  let tmp_0_0;
2646
2646
  i0.ɵɵconditional((tmp_0_0 = i0.ɵɵpipeBind1(1, 1, ctx.vm$)) ? 0 : -1, tmp_0_0);
2647
2647
  } }, dependencies: [FormsModule,
2648
- MatButtonModule, i1$1.MatButton, i1$1.MatIconButton, MatDialogModule,
2648
+ MatButtonModule, i2$1.MatButton, i2$1.MatIconButton, MatDialogModule,
2649
2649
  MatIconModule, i3.MatIcon, MatProgressSpinnerModule, i4.MatProgressSpinner, MatRippleModule, i7.MatRipple, MatTableModule, i5$1.MatTable, i5$1.MatHeaderCellDef, i5$1.MatHeaderRowDef, i5$1.MatColumnDef, i5$1.MatCellDef, i5$1.MatRowDef, i5$1.MatHeaderCell, i5$1.MatCell, i5$1.MatHeaderRow, i5$1.MatRow, MatTooltipModule, i5$2.MatTooltip, AsyncPipe,
2650
2650
  DecimalPipe,
2651
2651
  DaysAgoPipe], styles: [".number[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}li[_ngcontent-%COMP%]{font-size:.75em}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{margin-top:8px}.number-cell[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.secondary-text[_ngcontent-%COMP%]{display:flex;align-items:center;white-space:pre;font-size:.75em;gap:8px;opacity:.8}.secondary-text[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:.875em;width:14px;height:14px}.mat-column-adj_microFlow_review[_ngcontent-%COMP%]{max-width:18px;text-align:center}.mat-column-nameOfBidder[_ngcontent-%COMP%]{max-width:90px}.mat-column-actions[_ngcontent-%COMP%]{padding:0;max-width:80px}.mat-column-status[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:fit-content!important}.main-submission-text[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:.875em}[_nghost-%COMP%] .notes-card[_ngcontent-%COMP%]{width:100%;max-width:480px;resize:both;height:fit-content}.smallIcon[_ngcontent-%COMP%]{font-size:.875em;width:14px;height:14px}.table-cell[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}.mat-column-adjudicationPricePreferenceCalculation[_ngcontent-%COMP%], .mat-column-adj_microFlow_scoreSheetTotalPoints[_ngcontent-%COMP%], .mat-column-adj_microFlow_pointsAwarded[_ngcontent-%COMP%], .mat-column-adj_microFlow_pricePointCalculation[_ngcontent-%COMP%]{max-width:18px;text-align:center}.mat-column-adj_microFlow_supplierAppointed[_ngcontent-%COMP%]{max-width:50px;text-align:center}.mat-column-actions[_ngcontent-%COMP%]{max-width:14px;text-align:center}.ngx-t-forms-point-assignment-menu[_ngcontent-%COMP%]{width:fit-content!important;max-width:400px!important}.point-assignment-menu[_ngcontent-%COMP%]{padding-left:28px;padding-right:28px}"], changeDetection: 0 }); }
@@ -2902,7 +2902,7 @@ class WorkflowAdjudicationComponent {
2902
2902
  i0.ɵɵproperty("formGroup", ctx.formGroup());
2903
2903
  i0.ɵɵadvance();
2904
2904
  i0.ɵɵconditional((tmp_1_0 = ctx.inputConfig()) ? 1 : -1, tmp_1_0);
2905
- } }, dependencies: [ReactiveFormsModule, i1.ɵNgNoValidate, i1.NgControlStatus, i1.NgControlStatusGroup, i1.RequiredValidator, i1.FormGroupDirective, i1.FormControlName, MatFormFieldModule, i2$1.MatFormField, i2$1.MatLabel, i2$1.MatHint, i2$1.MatError, i2$1.MatPrefix, i2$1.MatSuffix, MatIconModule, i3.MatIcon, MatButtonModule, i1$1.MatIconButton, MatTooltipModule, i5$2.MatTooltip, TFormInputStatusComponent,
2905
+ } }, dependencies: [ReactiveFormsModule, i1.ɵNgNoValidate, i1.NgControlStatus, i1.NgControlStatusGroup, i1.RequiredValidator, i1.FormGroupDirective, i1.FormControlName, MatFormFieldModule, i2$2.MatFormField, i2$2.MatLabel, i2$2.MatHint, i2$2.MatError, i2$2.MatPrefix, i2$2.MatSuffix, MatIconModule, i3.MatIcon, MatButtonModule, i2$1.MatIconButton, MatTooltipModule, i5$2.MatTooltip, TFormInputStatusComponent,
2906
2906
  WorkflowAdjudicationReactiveInputComponent], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-form-field[_ngcontent-%COMP%] .input-sync-button[_ngcontent-%COMP%]{display:none}mat-form-field[_ngcontent-%COMP%]:hover .input-sync-button[_ngcontent-%COMP%]{display:inline-block}"], changeDetection: 0 }); }
2907
2907
  }
2908
2908
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkflowAdjudicationComponent, [{
@@ -2920,4 +2920,4 @@ class WorkflowAdjudicationComponent {
2920
2920
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WorkflowAdjudicationComponent, { className: "WorkflowAdjudicationComponent", filePath: "lib/components/t-form-input/elements/workflow-adjudication/workflow-adjudication.component.ts", lineNumber: 28 }); })();
2921
2921
 
2922
2922
  export { WorkflowAdjudicationComponent };
2923
- //# sourceMappingURL=ngx-t-forms-workflow-adjudication.component-_A3v5MxN.mjs.map
2923
+ //# sourceMappingURL=ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map