ngx-t-forms 2.0.37 → 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 (205) hide show
  1. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs +261 -0
  2. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +1 -0
  3. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs → ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs} +4 -4
  4. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.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-BhMw2vpl.mjs +225 -0
  6. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +1 -0
  7. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-fJIsRm0v.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-fJIsRm0v.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-BmWnrfWN.mjs +1011 -0
  10. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +1 -0
  11. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs → ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs} +4 -4
  12. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B8Do3h4B.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-ALkkDotT.mjs +136 -0
  14. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +1 -0
  15. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs → ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs} +2 -2
  16. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.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-CU6Cp-oK.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-CU6Cp-oK.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-Dap7QkKD.mjs +253 -0
  20. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +1 -0
  21. package/fesm2022/{ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs → ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs} +8 -8
  22. package/fesm2022/{ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs.map → ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map} +1 -1
  23. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +419 -0
  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-DjYq63Iv.mjs +231 -0
  26. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +1 -0
  27. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs → ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs} +4 -4
  28. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.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-B8V7IpoK.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-B8V7IpoK.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-g0wIRj9b.mjs +333 -0
  32. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +1 -0
  33. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.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-hKJqVYUY.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-NuPXy_Ms.mjs +543 -0
  36. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +1 -0
  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-B8Pk-EVY.mjs +581 -0
  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-D38U94oj.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-_RBYRgn9.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-_RBYRgn9.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-RCmUClXv.mjs +447 -0
  52. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +1 -0
  53. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +163 -0
  54. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs → ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs} +2 -2
  56. package/fesm2022/{ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs.map → ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map} +1 -1
  57. package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs → ngx-t-forms-form-json-view.component-r64GKVhI.mjs} +2 -2
  58. package/fesm2022/{ngx-t-forms-form-json-view.component-D9rU9vxT.mjs.map → ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map} +1 -1
  59. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +28 -0
  60. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map +1 -0
  61. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +291 -0
  62. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +1 -0
  63. package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs → ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs} +6 -6
  64. package/fesm2022/{ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs.map → ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map} +1 -1
  65. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +936 -0
  66. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +1 -0
  67. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs → ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs} +11 -11
  68. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs.map → ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map} +1 -1
  69. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +816 -0
  70. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +1 -0
  71. package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs → ngx-t-forms-geo-location.component-D2fIbagr.mjs} +7 -7
  72. package/fesm2022/{ngx-t-forms-geo-location.component-CMbBSXe0.mjs.map → ngx-t-forms-geo-location.component-D2fIbagr.mjs.map} +1 -1
  73. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +329 -0
  74. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +1 -0
  75. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs → ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs} +7 -7
  76. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs.map → ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map} +1 -1
  77. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +360 -0
  78. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +1 -0
  79. package/fesm2022/{ngx-t-forms-index-CPNvE4PP.mjs → ngx-t-forms-index-6YIhS6cm.mjs} +2 -2
  80. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +1 -0
  81. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +2 -0
  82. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +1 -0
  83. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +128 -0
  84. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +1 -0
  85. package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs → ngx-t-forms-input-custom.component-Dcoze7U3.mjs} +2 -2
  86. package/fesm2022/{ngx-t-forms-input-custom.component-uNVdF9aA.mjs.map → ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map} +1 -1
  87. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +512 -0
  88. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +1 -0
  89. package/fesm2022/{ngx-t-forms-input-editor.component-BWoKhlI3.mjs → ngx-t-forms-input-editor.component-B6UKwV4i.mjs} +7 -7
  90. package/fesm2022/{ngx-t-forms-input-editor.component-BWoKhlI3.mjs.map → ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map} +1 -1
  91. package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs → ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs} +2 -2
  92. package/fesm2022/{ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs.map → ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map} +1 -1
  93. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +132 -0
  94. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +1 -0
  95. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +268 -0
  96. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +1 -0
  97. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs +167 -0
  98. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +1 -0
  99. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +241 -0
  100. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +1 -0
  101. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +180 -0
  102. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +1 -0
  103. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +114 -0
  104. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +1 -0
  105. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs → ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs} +4 -4
  106. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs.map → ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map} +1 -1
  107. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +69 -0
  108. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +1 -0
  109. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs → ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs} +4 -4
  110. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map} +1 -1
  111. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs} +3 -3
  112. package/fesm2022/{ngx-t-forms-mscoa-error-display.component-99DpVSy7.mjs.map → ngx-t-forms-mscoa-error-display.component-BDPi6w2E.mjs.map} +1 -1
  113. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +200 -0
  114. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +1 -0
  115. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs → ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs} +7 -7
  116. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs.map → ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map} +1 -1
  117. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +850 -0
  118. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +1 -0
  119. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +107 -0
  120. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +1 -0
  121. package/fesm2022/{ngx-t-forms-mscoa-temporary-hint.component-B1Z-IXSL.mjs → ngx-t-forms-mscoa-temporary-hint.component-g7DosiVb.mjs} +3 -3
  122. 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
  123. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +1665 -0
  124. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +1 -0
  125. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs → ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs} +13 -13
  126. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs.map → ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map} +1 -1
  127. package/fesm2022/{ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs → ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs} +826 -120
  128. package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +1 -0
  129. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +28237 -0
  130. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +1 -0
  131. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +1024 -0
  132. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +1 -0
  133. package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs → ngx-t-forms-paginated-selection-table-DrXB22iY.mjs} +8 -8
  134. package/fesm2022/{ngx-t-forms-paginated-selection-table-DHwojPhn.mjs.map → ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map} +1 -1
  135. package/fesm2022/{ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs → ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs} +2 -2
  136. package/fesm2022/{ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs.map → ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map} +1 -1
  137. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +234 -0
  138. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +1 -0
  139. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +1126 -0
  140. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +1 -0
  141. package/fesm2022/{ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs → ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs} +11 -11
  142. package/fesm2022/{ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs.map → ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map} +1 -1
  143. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +639 -0
  144. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +1 -0
  145. package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs +446 -0
  146. package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +1 -0
  147. package/fesm2022/{ngx-t-forms-required-inputs.component-C-E3fQu6.mjs → ngx-t-forms-required-inputs.component-BMmNxeE-.mjs} +6 -6
  148. package/fesm2022/{ngx-t-forms-required-inputs.component-C-E3fQu6.mjs.map → ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map} +1 -1
  149. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +451 -0
  150. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +1 -0
  151. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +625 -0
  152. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +1 -0
  153. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs → ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs} +5 -5
  154. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs.map → ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map} +1 -1
  155. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +72 -0
  156. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +1 -0
  157. package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs → ngx-t-forms-section-report.component-BYMcaRE5.mjs} +4 -4
  158. package/fesm2022/{ngx-t-forms-section-report.component-D6jakGa5.mjs.map → ngx-t-forms-section-report.component-BYMcaRE5.mjs.map} +1 -1
  159. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +248 -0
  160. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +1 -0
  161. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +408 -0
  162. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +1 -0
  163. package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs → ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs} +8 -8
  164. package/fesm2022/{ngx-t-forms-select-input-element.component-CwqIck0h.mjs.map → ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map} +1 -1
  165. package/fesm2022/{ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs → ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs} +6 -6
  166. package/fesm2022/{ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs.map → ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map} +1 -1
  167. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +275 -0
  168. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +1 -0
  169. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +366 -0
  170. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +1 -0
  171. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs +263 -0
  172. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +1 -0
  173. package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs → ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs} +4 -4
  174. package/fesm2022/{ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs.map → ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map} +1 -1
  175. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +233 -0
  176. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +1 -0
  177. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +305 -0
  178. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +1 -0
  179. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs → ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs} +4 -4
  180. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs.map → ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map} +1 -1
  181. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +1105 -0
  182. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +1 -0
  183. package/fesm2022/{ngx-t-forms-validators-config.component-B3K9nLxx.mjs → ngx-t-forms-validators-config.component-CoGSFor3.mjs} +5 -5
  184. package/fesm2022/{ngx-t-forms-validators-config.component-B3K9nLxx.mjs.map → ngx-t-forms-validators-config.component-CoGSFor3.mjs.map} +1 -1
  185. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +2923 -0
  186. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +1 -0
  187. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs → ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs} +17 -17
  188. package/fesm2022/ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map +1 -0
  189. package/fesm2022/ngx-t-forms.mjs +1 -1
  190. package/package.json +2 -2
  191. package/types/ngx-t-forms.d.ts +7 -0
  192. package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs +0 -704
  193. package/fesm2022/ngx-t-forms-document-picker.component-f-hz6Vef.mjs.map +0 -1
  194. package/fesm2022/ngx-t-forms-editor-input-element.component-D38U94oj.mjs.map +0 -1
  195. package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs +0 -240
  196. package/fesm2022/ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs.map +0 -1
  197. package/fesm2022/ngx-t-forms-index-CPNvE4PP.mjs.map +0 -1
  198. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs +0 -66
  199. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs.map +0 -1
  200. package/fesm2022/ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs.map +0 -1
  201. package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs +0 -358
  202. package/fesm2022/ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs.map +0 -1
  203. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs +0 -204
  204. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map +0 -1
  205. package/fesm2022/ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs.map +0 -1
@@ -0,0 +1,1665 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, output, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, inject, DestroyRef, ElementRef } from '@angular/core';
3
+ import * as i1$2 from '@angular/forms';
4
+ import { NgControl, ReactiveFormsModule } from '@angular/forms';
5
+ import * as i2$2 from '@angular/material/form-field';
6
+ import { MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';
7
+ import * as i3 from '@angular/material/icon';
8
+ import { MatIconModule } from '@angular/material/icon';
9
+ import * as i2 from '@angular/material/button';
10
+ import { MatButtonModule } from '@angular/material/button';
11
+ import * as i5$1 from '@angular/material/tooltip';
12
+ import { MatTooltipModule } from '@angular/material/tooltip';
13
+ import { b as TDynamicDataViewComponent, y as TFormInputComponent, A as calculateListOveralFunctions, B as BaseCustomInput, _ as _isEqual, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-BefvSS-p.mjs';
14
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
15
+ import * as i5 from '@angular/material/table';
16
+ import { MatTableDataSource, MatTableModule } from '@angular/material/table';
17
+ import { DocumentLitsLabelConfigInterfaceValueType, InputDataTypes, MultipleInputAvailableOperations, CalculationFunctions } from 'ngx-t-forms-types';
18
+ import * as i4 from '@angular/material/chips';
19
+ import { MatChipsModule } from '@angular/material/chips';
20
+ import * as i6 from '@angular/material/menu';
21
+ import { MatMenuModule } from '@angular/material/menu';
22
+ import * as i1 from '@angular/material/progress-bar';
23
+ import { MatProgressBarModule } from '@angular/material/progress-bar';
24
+ import * as i4$1 from '@angular/material/progress-spinner';
25
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
26
+ import * as i2$1 from '@angular/material/sort';
27
+ import { MatSortModule } from '@angular/material/sort';
28
+ import * as i3$1 from '@angular/common';
29
+ import { CommonModule } from '@angular/common';
30
+ import * as i3$2 from '@angular/material/card';
31
+ import { MatCardModule } from '@angular/material/card';
32
+ import { MatDividerModule } from '@angular/material/divider';
33
+ import * as i1$1 from '@angular/cdk/drag-drop';
34
+ import { DragDropModule } from '@angular/cdk/drag-drop';
35
+ import { Subject, timer, tap, takeUntil } from 'rxjs';
36
+ import { v4 } from 'uuid';
37
+ import * as i6$1 from '@angular/material/list';
38
+
39
+ class ColorScale {
40
+ constructor(min, max, colorStops, alpha = 1) {
41
+ validateMinMaxValues(min, max);
42
+ validateColorStops(colorStops);
43
+ validateAlphaValue(alpha);
44
+ this.min = min;
45
+ this.max = max;
46
+ this.alpha = alpha;
47
+ this.colorStops = colorStops.map((colorStop) => hexToColor(colorStop, alpha));
48
+ }
49
+ getColor(value) {
50
+ const numOfColorStops = this.colorStops.length;
51
+ if (value < this.min)
52
+ return this.colorStops[0];
53
+ if (value > this.max)
54
+ return this.colorStops[numOfColorStops - 1];
55
+ const range = this.max - this.min;
56
+ let weight = (value - this.min) / range;
57
+ const colorStopIndex = Math.max(Math.ceil(weight * (numOfColorStops - 1)), 1);
58
+ const minColor = this.colorStops[colorStopIndex - 1];
59
+ const maxColor = this.colorStops[colorStopIndex];
60
+ if (maxColor === undefined)
61
+ return minColor;
62
+ if (minColor === undefined)
63
+ return maxColor;
64
+ weight = weight * (numOfColorStops - 1) - (colorStopIndex - 1);
65
+ const r = Math.floor(weight * maxColor.r + (1 - weight) * minColor.r);
66
+ const g = Math.floor(weight * maxColor.g + (1 - weight) * minColor.g);
67
+ const b = Math.floor(weight * maxColor.b + (1 - weight) * minColor.b);
68
+ return new Color(r, g, b, this.alpha);
69
+ }
70
+ }
71
+ function validateMinMaxValues(min, max) {
72
+ if (min > max) {
73
+ throw new Error('The minimum value must be less than the maximum value.');
74
+ }
75
+ }
76
+ function validateColorStops(colorStops) {
77
+ if (colorStops.length < 2) {
78
+ throw new Error('At least two colors must be provided.');
79
+ }
80
+ colorStops.forEach((str) => {
81
+ if (!isValidHexColor(str)) {
82
+ throw new Error(`${str} is not a valid hex color.`);
83
+ }
84
+ });
85
+ }
86
+ function validateAlphaValue(alpha) {
87
+ if (alpha < 0 || alpha > 1) {
88
+ throw new Error('The alpha value must be between 0 and 1.');
89
+ }
90
+ }
91
+ function hexToColor(hex, alpha) {
92
+ if (isValid3DigitHexColor(hex)) {
93
+ hex = convertTo6DigitHexColor(hex);
94
+ }
95
+ const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
96
+ if (!!result?.[1] && !!result?.[2] && !!result?.[3]) {
97
+ return new Color(parseInt(result[1], 16), parseInt(result[2], 16), parseInt(result[3], 16), alpha);
98
+ }
99
+ else {
100
+ throw new Error(`${hex} is not a valid hex color.`);
101
+ }
102
+ }
103
+ function isValidHexColor(colorString) {
104
+ return (isValid3DigitHexColor(colorString) || isValid6DigitHexColor(colorString));
105
+ }
106
+ function isValid3DigitHexColor(colorString) {
107
+ const hexColorRegex = /^#(?:[0-9a-fA-F]{3})$/;
108
+ return colorString.match(hexColorRegex);
109
+ }
110
+ function isValid6DigitHexColor(colorString) {
111
+ const hexColorRegex = /^#(?:[0-9a-fA-F]{6})$/;
112
+ return colorString.match(hexColorRegex);
113
+ }
114
+ function convertTo6DigitHexColor(threeDigitHex) {
115
+ return threeDigitHex
116
+ .substring(1)
117
+ .split('')
118
+ .map((char) => {
119
+ return char + char;
120
+ })
121
+ .join('');
122
+ }
123
+ function componentToHex(c) {
124
+ const hex = c.toString(16);
125
+ return hex.length === 1 ? '0' + hex : hex;
126
+ }
127
+ function rgbaToHex(color) {
128
+ const r = Math.floor(color.r * color.a);
129
+ const g = Math.floor(color.g * color.a);
130
+ const b = Math.floor(color.b * color.a);
131
+ return `#${componentToHex(r)}${componentToHex(g)}${componentToHex(b)}`;
132
+ }
133
+ class Color {
134
+ constructor(r, g, b, a = 1) {
135
+ validateAlphaValue(a);
136
+ this.r = r;
137
+ this.g = g;
138
+ this.b = b;
139
+ this.a = a;
140
+ }
141
+ toRGBString() {
142
+ return `rgb(${Math.floor(this.r * this.a)},${Math.floor(this.g * this.a)},${Math.floor(this.b * this.a)})`;
143
+ }
144
+ toRGBAString() {
145
+ return `rgba(${this.r},${this.g},${this.b},${this.a})`;
146
+ }
147
+ toHexString() {
148
+ return rgbaToHex(this);
149
+ }
150
+ }
151
+
152
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
153
+ function configureCols(inputConfig, tempLabels) {
154
+ try {
155
+ const labelInputs = (inputConfig?.formInputs || []).filter(input => input.showAsLabel || tempLabels.includes(input.formControlName));
156
+ const cols = [];
157
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
158
+ const colConfigs = {};
159
+ for (let index = 0; index < (labelInputs).length; index++) {
160
+ const c = labelInputs[index];
161
+ const col = { ...c };
162
+ cols.push(`${inputConfig.id}.${col.id}`);
163
+ if (!col.id) {
164
+ continue;
165
+ }
166
+ colConfigs[`${inputConfig.id}.${col.id}`] = {
167
+ property: `${inputConfig.id}.${col.id}`,
168
+ formControlName: col.formControlName,
169
+ label: col.label,
170
+ dataType: getDataType(col)
171
+ };
172
+ }
173
+ //add remove section config
174
+ cols.push('itemRemovalButton');
175
+ colConfigs['itemRemovalButton'] = {
176
+ property: 'itemRemovalButton',
177
+ label: '',
178
+ type: 'removal',
179
+ };
180
+ // end
181
+ return {
182
+ displayedColumnsInOrder: cols.filter((c) => !!c),
183
+ columnsConfig: colConfigs
184
+ };
185
+ }
186
+ catch (error) {
187
+ const message = error instanceof Error ? error.message : 'Failed to configure columns';
188
+ throw new Error(message);
189
+ }
190
+ }
191
+ function getDataType(input) {
192
+ try {
193
+ if (input.pipe?.pipeType) {
194
+ return input.pipe.pipeType;
195
+ }
196
+ const inputDataType = input.dataType;
197
+ switch (inputDataType) {
198
+ case InputDataTypes.Number:
199
+ return DocumentLitsLabelConfigInterfaceValueType.number;
200
+ case InputDataTypes.Date:
201
+ return DocumentLitsLabelConfigInterfaceValueType.date;
202
+ case InputDataTypes.Array:
203
+ return InputDataTypes.Array;
204
+ case InputDataTypes.Boolean:
205
+ return InputDataTypes.Boolean;
206
+ case InputDataTypes.Object:
207
+ return InputDataTypes.Object;
208
+ default:
209
+ return DocumentLitsLabelConfigInterfaceValueType.string;
210
+ }
211
+ }
212
+ catch (error) {
213
+ const msg = error instanceof Error ? error.message : 'Failed to get data type';
214
+ throw new Error(msg);
215
+ }
216
+ }
217
+
218
+ const MultipleInputTableViewComponent_Defer_2_DepsFn = () => [i2.MatIconButton, i4.MatChip, i3.MatIcon, i6.MatMenuTrigger, i2$1.MatSort, i5.MatTable, i5.MatHeaderCellDef, i5.MatHeaderRowDef, i5.MatColumnDef, i5.MatCellDef, i5.MatRowDef, i5.MatHeaderCell, i5.MatCell, i5.MatHeaderRow, i5.MatRow, i5$1.MatTooltip, import('./ngx-t-forms-ngx-t-forms-BefvSS-p.mjs').then(function (n) { return n.aK; }).then(m => m.FormatDataPipe)];
219
+ const _c0$1 = () => [];
220
+ const _c1$1 = () => ({});
221
+ const _c2 = a0 => ({ row: a0 });
222
+ const _forTrack0$1 = ($index, $item) => $item.formControlName;
223
+ function MultipleInputTableViewComponent_Defer_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
224
+ i0.ɵɵelementStart(0, "div", 4);
225
+ i0.ɵɵtext(1, "No columns");
226
+ i0.ɵɵelementEnd();
227
+ } }
228
+ function MultipleInputTableViewComponent_Defer_0_For_4_th_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
229
+ i0.ɵɵelementStart(0, "button", 15)(1, "mat-icon");
230
+ i0.ɵɵtext(2, "label");
231
+ i0.ɵɵelementEnd()();
232
+ } if (rf & 2) {
233
+ i0.ɵɵnextContext(4);
234
+ const colOptions_r1 = i0.ɵɵreference(6);
235
+ i0.ɵɵproperty("matMenuTriggerFor", colOptions_r1)("matMenuTriggerData", i0.ɵɵpureFunction0(2, _c1$1));
236
+ } }
237
+ function MultipleInputTableViewComponent_Defer_0_For_4_th_1_Template(rf, ctx) { if (rf & 1) {
238
+ i0.ɵɵelementStart(0, "th", 13)(1, "span", 14);
239
+ i0.ɵɵtext(2);
240
+ i0.ɵɵelementEnd();
241
+ i0.ɵɵconditionalCreate(3, MultipleInputTableViewComponent_Defer_0_For_4_th_1_Conditional_3_Template, 3, 3, "button", 15);
242
+ i0.ɵɵelementEnd();
243
+ } if (rf & 2) {
244
+ const ctx_r1 = i0.ɵɵnextContext();
245
+ const col_r3 = ctx_r1.$implicit;
246
+ const ɵ$index_10_r4 = ctx_r1.$index;
247
+ const ɵ$count_10_r5 = ctx_r1.$count;
248
+ const ctx_r5 = i0.ɵɵnextContext(2);
249
+ i0.ɵɵadvance(2);
250
+ i0.ɵɵtextInterpolate1(" ", ctx_r5.getColConfig.columnsConfig == null ? null : ctx_r5.getColConfig.columnsConfig[col_r3] == null ? null : ctx_r5.getColConfig.columnsConfig[col_r3]["label"], " ");
251
+ i0.ɵɵadvance();
252
+ i0.ɵɵconditional(ɵ$index_10_r4 === ɵ$count_10_r5 - 1 ? 3 : -1);
253
+ } }
254
+ function MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
255
+ i0.ɵɵelementStart(0, "div", 18)(1, "strong");
256
+ i0.ɵɵtext(2);
257
+ i0.ɵɵelementEnd()();
258
+ } if (rf & 2) {
259
+ const row_r7 = i0.ɵɵnextContext(2).$implicit;
260
+ const ctx_r5 = i0.ɵɵnextContext(3);
261
+ i0.ɵɵadvance(2);
262
+ i0.ɵɵtextInterpolate(ctx_r5.getCalculationFunction(row_r7));
263
+ } }
264
+ function MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_1_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
265
+ i0.ɵɵelementStart(0, "mat-icon", 21);
266
+ i0.ɵɵtext(1, "edit");
267
+ i0.ɵɵelementEnd();
268
+ } }
269
+ function MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_1_Conditional_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
270
+ i0.ɵɵelementStart(0, "mat-icon");
271
+ i0.ɵɵtext(1);
272
+ i0.ɵɵelementEnd();
273
+ } if (rf & 2) {
274
+ i0.ɵɵnextContext();
275
+ const t_r9 = i0.ɵɵreference(1);
276
+ i0.ɵɵadvance();
277
+ i0.ɵɵtextInterpolate(t_r9.menuOpen ? "close" : "more_horiz");
278
+ } }
279
+ function MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
280
+ const _r8 = i0.ɵɵgetCurrentView();
281
+ i0.ɵɵelementStart(0, "button", 20, 2);
282
+ i0.ɵɵlistener("click", function MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_1_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const row_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r5 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r5.applyOptionsToFn(row_r7)); });
283
+ i0.ɵɵconditionalCreate(2, MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_1_Conditional_2_Conditional_2_Template, 2, 0, "mat-icon", 21)(3, MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_1_Conditional_2_Conditional_3_Template, 2, 1, "mat-icon");
284
+ i0.ɵɵelementEnd();
285
+ } if (rf & 2) {
286
+ const t_r9 = i0.ɵɵreference(1);
287
+ const row_r7 = i0.ɵɵnextContext(2).$implicit;
288
+ const ctx_r5 = i0.ɵɵnextContext(3);
289
+ const rowOptions_r10 = i0.ɵɵreference(9);
290
+ i0.ɵɵproperty("color", t_r9.menuOpen ? "primary" : "basic")("matMenuTriggerFor", rowOptions_r10)("matMenuTriggerData", i0.ɵɵpureFunction1(4, _c2, row_r7));
291
+ i0.ɵɵadvance(2);
292
+ i0.ɵɵconditional(ctx_r5.rowIsInEdit(row_r7) ? 2 : 3);
293
+ } }
294
+ function MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
295
+ i0.ɵɵelementStart(0, "mat-chip");
296
+ i0.ɵɵtext(1);
297
+ i0.ɵɵelementEnd();
298
+ } if (rf & 2) {
299
+ let tmp_17_0;
300
+ const ctx_r5 = i0.ɵɵnextContext(5);
301
+ i0.ɵɵadvance();
302
+ i0.ɵɵtextInterpolate1("In ", ((tmp_17_0 = ctx_r5.inputConfig()) == null ? null : tmp_17_0.readonly) ? "View" : "Edit");
303
+ } }
304
+ function MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
305
+ i0.ɵɵelementStart(0, "div", 17);
306
+ i0.ɵɵconditionalCreate(1, MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_1_Conditional_1_Template, 3, 1, "div", 18);
307
+ i0.ɵɵconditionalCreate(2, MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_1_Conditional_2_Template, 4, 6, "button", 19);
308
+ i0.ɵɵconditionalCreate(3, MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_1_Conditional_3_Template, 2, 1, "mat-chip");
309
+ i0.ɵɵelementEnd();
310
+ } if (rf & 2) {
311
+ let tmp_16_0;
312
+ let tmp_17_0;
313
+ const row_r7 = i0.ɵɵnextContext().$implicit;
314
+ const ctx_r5 = i0.ɵɵnextContext(3);
315
+ i0.ɵɵadvance();
316
+ i0.ɵɵconditional(!!row_r7["SYSTEM_KEY_PROPERTY_FOR_MULTIPLE_INPUTS_CALCULATION_FUNCTION"] && !row_r7["id"] && !((tmp_16_0 = ctx_r5.inputConfig()) == null ? null : tmp_16_0.multipleInputInEditId) || !!row_r7["SYSTEM_KEY_PROPERTY_FOR_MULTIPLE_INPUTS_CALCULATION_FUNCTION"] && ((tmp_16_0 = ctx_r5.inputConfig()) == null ? null : tmp_16_0.multipleInputInEditId) && ((tmp_16_0 = ctx_r5.inputConfig()) == null ? null : tmp_16_0.multipleInputInEditId) !== row_r7["id"] ? 1 : -1);
317
+ i0.ɵɵadvance();
318
+ i0.ɵɵconditional(ctx_r5.userCanApplyOptionsTo() && !row_r7["SYSTEM_KEY_PROPERTY_FOR_MULTIPLE_INPUTS_CALCULATION_FUNCTION"] && row_r7[""] !== "true" && !((tmp_17_0 = ctx_r5.inputConfig()) == null ? null : tmp_17_0.readonly) && !((tmp_17_0 = ctx_r5.inputConfig()) == null ? null : tmp_17_0.disabled) ? 2 : -1);
319
+ i0.ɵɵadvance();
320
+ i0.ɵɵconditional(row_r7["SYSTEM_KEY_IN_EDIT"] ? 3 : -1);
321
+ } }
322
+ function MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
323
+ const _r11 = i0.ɵɵgetCurrentView();
324
+ i0.ɵɵelementStart(0, "button", 23);
325
+ i0.ɵɵlistener("click", function MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_2_Conditional_2_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r11); const row_r7 = i0.ɵɵnextContext(2).$implicit; const col_r3 = i0.ɵɵnextContext().$implicit; const ctx_r5 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r5.openDataOverlay($event, row_r7[col_r3])); });
326
+ i0.ɵɵelementStart(1, "mat-icon", 24);
327
+ i0.ɵɵtext(2, "data_object");
328
+ i0.ɵɵelementEnd()();
329
+ } }
330
+ function MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
331
+ i0.ɵɵtext(0);
332
+ i0.ɵɵpipe(1, "formatData");
333
+ } if (rf & 2) {
334
+ const row_r7 = i0.ɵɵnextContext(2).$implicit;
335
+ const col_r3 = i0.ɵɵnextContext().$implicit;
336
+ const ctx_r5 = i0.ɵɵnextContext(2);
337
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(1, 1, row_r7[col_r3], ctx_r5.getColConfig.columnsConfig == null ? null : ctx_r5.getColConfig.columnsConfig[col_r3].dataType), " ");
338
+ } }
339
+ function MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
340
+ i0.ɵɵelementStart(0, "div", 17)(1, "span");
341
+ i0.ɵɵconditionalCreate(2, MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_2_Conditional_2_Template, 3, 0, "button", 22)(3, MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_2_Conditional_3_Template, 2, 4);
342
+ i0.ɵɵelementEnd()();
343
+ } if (rf & 2) {
344
+ const col_r3 = i0.ɵɵnextContext(2).$implicit;
345
+ const ctx_r5 = i0.ɵɵnextContext(2);
346
+ i0.ɵɵadvance(2);
347
+ i0.ɵɵconditional((ctx_r5.getColConfig.columnsConfig == null ? null : ctx_r5.getColConfig.columnsConfig[col_r3].dataType) === "array" || (ctx_r5.getColConfig.columnsConfig == null ? null : ctx_r5.getColConfig.columnsConfig[col_r3].dataType) === "object" ? 2 : 3);
348
+ } }
349
+ function MultipleInputTableViewComponent_Defer_0_For_4_td_2_Template(rf, ctx) { if (rf & 1) {
350
+ i0.ɵɵelementStart(0, "td", 16);
351
+ i0.ɵɵconditionalCreate(1, MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_1_Template, 4, 3, "div", 17);
352
+ i0.ɵɵconditionalCreate(2, MultipleInputTableViewComponent_Defer_0_For_4_td_2_Conditional_2_Template, 4, 1, "div", 17);
353
+ i0.ɵɵelementEnd();
354
+ } if (rf & 2) {
355
+ const row_r7 = ctx.$implicit;
356
+ const col_r3 = i0.ɵɵnextContext().$implicit;
357
+ const ctx_r5 = i0.ɵɵnextContext(2);
358
+ i0.ɵɵstyleProp("background", ctx_r5.returnBackground(row_r7, ctx_r5.getColConfig.columnsConfig == null ? null : ctx_r5.getColConfig.columnsConfig[col_r3]));
359
+ i0.ɵɵclassProp("functionClass", row_r7["SYSTEM_KEY_PROPERTY_FOR_MULTIPLE_INPUTS_CALCULATION_FUNCTION"]);
360
+ i0.ɵɵadvance();
361
+ i0.ɵɵconditional((ctx_r5.getColConfig.columnsConfig == null ? null : ctx_r5.getColConfig.columnsConfig[col_r3] == null ? null : ctx_r5.getColConfig.columnsConfig[col_r3]["type"]) === "removal" ? 1 : -1);
362
+ i0.ɵɵadvance();
363
+ i0.ɵɵconditional(ctx_r5.getColConfig.columnsConfig && (ctx_r5.getColConfig.columnsConfig == null ? null : ctx_r5.getColConfig.columnsConfig[col_r3] == null ? null : ctx_r5.getColConfig.columnsConfig[col_r3].type) !== "removal" ? 2 : -1);
364
+ } }
365
+ function MultipleInputTableViewComponent_Defer_0_For_4_Template(rf, ctx) { if (rf & 1) {
366
+ i0.ɵɵelementContainerStart(0, 7);
367
+ i0.ɵɵtemplate(1, MultipleInputTableViewComponent_Defer_0_For_4_th_1_Template, 4, 2, "th", 11)(2, MultipleInputTableViewComponent_Defer_0_For_4_td_2_Template, 3, 6, "td", 12);
368
+ i0.ɵɵelementContainerEnd();
369
+ } if (rf & 2) {
370
+ const col_r3 = ctx.$implicit;
371
+ i0.ɵɵproperty("matColumnDef", col_r3);
372
+ } }
373
+ function MultipleInputTableViewComponent_Defer_0_tr_5_Template(rf, ctx) { if (rf & 1) {
374
+ i0.ɵɵelement(0, "tr", 25);
375
+ } }
376
+ function MultipleInputTableViewComponent_Defer_0_tr_6_Template(rf, ctx) { if (rf & 1) {
377
+ i0.ɵɵelement(0, "tr", 26);
378
+ } if (rf & 2) {
379
+ const row_r12 = ctx.$implicit;
380
+ const ctx_r5 = i0.ɵɵnextContext(2);
381
+ i0.ɵɵclassProp("mit-group-start", ctx_r5.hasTopBorder(row_r12));
382
+ } }
383
+ function MultipleInputTableViewComponent_Defer_0_Conditional_7_Template(rf, ctx) { if (rf & 1) {
384
+ i0.ɵɵelementStart(0, "div", 10)(1, "mat-icon", 27);
385
+ i0.ɵɵtext(2, "list");
386
+ i0.ɵɵelementEnd();
387
+ i0.ɵɵelementStart(3, "strong", 28);
388
+ i0.ɵɵtext(4, "No items yet");
389
+ i0.ɵɵelementEnd();
390
+ i0.ɵɵelementStart(5, "p", 29)(6, "strong");
391
+ i0.ɵɵtext(7, "Click the add button");
392
+ i0.ɵɵelementEnd();
393
+ i0.ɵɵtext(8, " to create a new row. You'll fill in details using a form, and each saved entry appears as a row here. ");
394
+ i0.ɵɵelementEnd()();
395
+ } }
396
+ function MultipleInputTableViewComponent_Defer_0_Template(rf, ctx) { if (rf & 1) {
397
+ i0.ɵɵconditionalCreate(0, MultipleInputTableViewComponent_Defer_0_Conditional_0_Template, 2, 0, "div", 4);
398
+ i0.ɵɵelementStart(1, "div", 5)(2, "table", 6);
399
+ i0.ɵɵrepeaterCreate(3, MultipleInputTableViewComponent_Defer_0_For_4_Template, 3, 1, "ng-container", 7, i0.ɵɵrepeaterTrackByIdentity);
400
+ i0.ɵɵtemplate(5, MultipleInputTableViewComponent_Defer_0_tr_5_Template, 1, 0, "tr", 8)(6, MultipleInputTableViewComponent_Defer_0_tr_6_Template, 1, 2, "tr", 9);
401
+ i0.ɵɵelementEnd();
402
+ i0.ɵɵconditionalCreate(7, MultipleInputTableViewComponent_Defer_0_Conditional_7_Template, 9, 0, "div", 10);
403
+ i0.ɵɵelementEnd();
404
+ } if (rf & 2) {
405
+ let tmp_8_0;
406
+ const ctx_r5 = i0.ɵɵnextContext();
407
+ i0.ɵɵconditional(ctx_r5.getColConfig.displayedColumnsInOrder.length === 0 ? 0 : -1);
408
+ i0.ɵɵadvance(2);
409
+ i0.ɵɵproperty("dataSource", ctx_r5.dataSource() || i0.ɵɵpureFunction0(5, _c0$1));
410
+ i0.ɵɵadvance();
411
+ i0.ɵɵrepeater(ctx_r5.displayedColumnsInOrder || i0.ɵɵpureFunction0(6, _c0$1));
412
+ i0.ɵɵadvance(2);
413
+ i0.ɵɵproperty("matHeaderRowDef", ctx_r5.getColConfig.displayedColumnsInOrder);
414
+ i0.ɵɵadvance();
415
+ i0.ɵɵproperty("matRowDefColumns", ctx_r5.getColConfig.displayedColumnsInOrder);
416
+ i0.ɵɵadvance();
417
+ i0.ɵɵconditional(!((tmp_8_0 = ctx_r5.dataSource()) == null ? null : tmp_8_0.data == null ? null : tmp_8_0.data.length) ? 7 : -1);
418
+ } }
419
+ function MultipleInputTableViewComponent_DeferPlaceholder_1_Template(rf, ctx) { if (rf & 1) {
420
+ i0.ɵɵelementStart(0, "div", 30);
421
+ i0.ɵɵelement(1, "mat-spinner", 31);
422
+ i0.ɵɵelementEnd();
423
+ } }
424
+ function MultipleInputTableViewComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
425
+ const _r13 = i0.ɵɵgetCurrentView();
426
+ i0.ɵɵelementStart(0, "div", 32);
427
+ i0.ɵɵlistener("click", function MultipleInputTableViewComponent_Conditional_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.closeDataOverlay()); });
428
+ i0.ɵɵelementEnd();
429
+ i0.ɵɵelementStart(1, "div", 33);
430
+ i0.ɵɵlistener("click", function MultipleInputTableViewComponent_Conditional_4_Template_div_click_1_listener($event) { return $event.stopPropagation(); });
431
+ i0.ɵɵelementStart(2, "div", 34)(3, "span", 35)(4, "mat-icon", 36);
432
+ i0.ɵɵtext(5, "data_object");
433
+ i0.ɵɵelementEnd();
434
+ i0.ɵɵtext(6, " Data ");
435
+ i0.ɵɵelementEnd();
436
+ i0.ɵɵelementStart(7, "button", 37);
437
+ i0.ɵɵlistener("click", function MultipleInputTableViewComponent_Conditional_4_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r13); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.closeDataOverlay()); });
438
+ i0.ɵɵelementStart(8, "mat-icon", 24);
439
+ i0.ɵɵtext(9, "close");
440
+ i0.ɵɵelementEnd()()();
441
+ i0.ɵɵelementStart(10, "div", 38);
442
+ i0.ɵɵelement(11, "lib-t-dynamic-data-view", 39);
443
+ i0.ɵɵelementEnd()();
444
+ } if (rf & 2) {
445
+ const ctx_r5 = i0.ɵɵnextContext();
446
+ i0.ɵɵadvance();
447
+ i0.ɵɵstyleProp("top", ctx_r5.overlayPosition.top, "px")("left", ctx_r5.overlayPosition.left, "px");
448
+ i0.ɵɵadvance(10);
449
+ i0.ɵɵproperty("data", ctx_r5.overlayData);
450
+ } }
451
+ function MultipleInputTableViewComponent_ng_template_7_For_1_Template(rf, ctx) { if (rf & 1) {
452
+ const _r14 = i0.ɵɵgetCurrentView();
453
+ i0.ɵɵelementStart(0, "button", 41);
454
+ i0.ɵɵlistener("click", function MultipleInputTableViewComponent_ng_template_7_For_1_Template_button_click_0_listener($event) { const label_r15 = i0.ɵɵrestoreView(_r14).$implicit; const ctx_r5 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r5.toggleTepLabel($event, label_r15.formControlName)); });
455
+ i0.ɵɵelementStart(1, "mat-icon");
456
+ i0.ɵɵtext(2);
457
+ i0.ɵɵelementEnd();
458
+ i0.ɵɵtext(3);
459
+ i0.ɵɵelementEnd();
460
+ } if (rf & 2) {
461
+ const label_r15 = ctx.$implicit;
462
+ i0.ɵɵadvance(2);
463
+ i0.ɵɵtextInterpolate(label_r15.selected ? "check_circle" : "radio_button_unchecked");
464
+ i0.ɵɵadvance();
465
+ i0.ɵɵtextInterpolate1(" ", label_r15.label, " ");
466
+ } }
467
+ function MultipleInputTableViewComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
468
+ i0.ɵɵrepeaterCreate(0, MultipleInputTableViewComponent_ng_template_7_For_1_Template, 4, 2, "button", 40, _forTrack0$1);
469
+ } if (rf & 2) {
470
+ const ctx_r5 = i0.ɵɵnextContext();
471
+ i0.ɵɵrepeater(ctx_r5.allPossibleLabels());
472
+ } }
473
+ function MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
474
+ const _r16 = i0.ɵɵgetCurrentView();
475
+ i0.ɵɵelementStart(0, "button", 41);
476
+ i0.ɵɵlistener("click", function MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const row_r17 = i0.ɵɵnextContext(2).row; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.editItem(row_r17)); });
477
+ i0.ɵɵelementStart(1, "mat-icon");
478
+ i0.ɵɵtext(2, "edit");
479
+ i0.ɵɵelementEnd();
480
+ i0.ɵɵelementStart(3, "div", 42)(4, "div", 43);
481
+ i0.ɵɵtext(5, "Edit");
482
+ i0.ɵɵelementEnd();
483
+ i0.ɵɵelementStart(6, "div", 44);
484
+ i0.ɵɵtext(7);
485
+ i0.ɵɵelementEnd()()();
486
+ } if (rf & 2) {
487
+ let tmp_6_0;
488
+ const ctx_r5 = i0.ɵɵnextContext(3);
489
+ i0.ɵɵadvance(7);
490
+ i0.ɵɵtextInterpolate1(" ", ((tmp_6_0 = ctx_r5.inputConfig()) == null ? null : tmp_6_0.readonly) ? "View item properties" : "Modify item properties", " ");
491
+ } }
492
+ function MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
493
+ const _r18 = i0.ɵɵgetCurrentView();
494
+ i0.ɵɵelementStart(0, "button", 41);
495
+ i0.ɵɵlistener("click", function MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const row_r17 = i0.ɵɵnextContext(2).row; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.copy(row_r17)); });
496
+ i0.ɵɵelementStart(1, "mat-icon");
497
+ i0.ɵɵtext(2, "content_copy");
498
+ i0.ɵɵelementEnd();
499
+ i0.ɵɵelementStart(3, "div", 42)(4, "div", 43);
500
+ i0.ɵɵtext(5, "Duplicate");
501
+ i0.ɵɵelementEnd();
502
+ i0.ɵɵelementStart(6, "div", 44);
503
+ i0.ɵɵtext(7, "Create a copy with same values");
504
+ i0.ɵɵelementEnd()()();
505
+ } }
506
+ function MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_2_Conditional_0_Conditional_10_Template(rf, ctx) { if (rf & 1) {
507
+ i0.ɵɵelementStart(0, "div", 49);
508
+ i0.ɵɵtext(1, "Deleting soon...");
509
+ i0.ɵɵelementEnd();
510
+ } }
511
+ function MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
512
+ const _r19 = i0.ɵɵgetCurrentView();
513
+ i0.ɵɵelementStart(0, "button", 41);
514
+ i0.ɵɵlistener("click", function MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_2_Conditional_0_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r19); const row_r17 = i0.ɵɵnextContext(3).row; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.multipleInputRemoveItem($event, row_r17)); });
515
+ i0.ɵɵelementStart(1, "mat-icon", 45);
516
+ i0.ɵɵtext(2, "cancel");
517
+ i0.ɵɵelementEnd();
518
+ i0.ɵɵelementStart(3, "div", 42)(4, "div", 46);
519
+ i0.ɵɵtext(5, "Cancel Deletion");
520
+ i0.ɵɵelementEnd();
521
+ i0.ɵɵelementStart(6, "div", 44);
522
+ i0.ɵɵtext(7);
523
+ i0.ɵɵelementEnd()()();
524
+ i0.ɵɵelementStart(8, "div", 47);
525
+ i0.ɵɵelement(9, "mat-progress-bar", 48);
526
+ i0.ɵɵconditionalCreate(10, MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_2_Conditional_0_Conditional_10_Template, 2, 0, "div", 49);
527
+ i0.ɵɵelementEnd();
528
+ } if (rf & 2) {
529
+ const ctx_r5 = i0.ɵɵnextContext(4);
530
+ i0.ɵɵadvance(7);
531
+ i0.ɵɵtextInterpolate1("Auto-deleting in ", ctx_r5.secondsCountDown(), " seconds...");
532
+ i0.ɵɵadvance(2);
533
+ i0.ɵɵproperty("value", ctx_r5.getCountdownSeconds());
534
+ i0.ɵɵadvance();
535
+ i0.ɵɵconditional(ctx_r5.getCountdownSeconds() > 75 ? 10 : -1);
536
+ } }
537
+ function MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
538
+ const _r20 = i0.ɵɵgetCurrentView();
539
+ i0.ɵɵelementStart(0, "button", 41);
540
+ i0.ɵɵlistener("click", function MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_2_Conditional_1_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r20); const row_r17 = i0.ɵɵnextContext(3).row; const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.multipleInputRemoveItem($event, row_r17)); });
541
+ i0.ɵɵelementStart(1, "mat-icon", 50);
542
+ i0.ɵɵtext(2, "delete_outline");
543
+ i0.ɵɵelementEnd();
544
+ i0.ɵɵelementStart(3, "div", 42)(4, "div", 43);
545
+ i0.ɵɵtext(5, "Delete");
546
+ i0.ɵɵelementEnd();
547
+ i0.ɵɵelementStart(6, "div", 44);
548
+ i0.ɵɵtext(7, "Will delete after 3 seconds (click to cancel)");
549
+ i0.ɵɵelementEnd()()();
550
+ } }
551
+ function MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
552
+ i0.ɵɵconditionalCreate(0, MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_2_Conditional_0_Template, 11, 3)(1, MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_2_Conditional_1_Template, 8, 0, "button", 40);
553
+ } if (rf & 2) {
554
+ const row_r17 = i0.ɵɵnextContext(2).row;
555
+ const ctx_r5 = i0.ɵɵnextContext();
556
+ i0.ɵɵconditional(ctx_r5.isAboutToDeleteRow(row_r17) ? 0 : 1);
557
+ } }
558
+ function MultipleInputTableViewComponent_ng_template_10_Conditional_0_Template(rf, ctx) { if (rf & 1) {
559
+ i0.ɵɵconditionalCreate(0, MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_0_Template, 8, 1, "button", 40);
560
+ i0.ɵɵconditionalCreate(1, MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_1_Template, 8, 0, "button", 40);
561
+ i0.ɵɵconditionalCreate(2, MultipleInputTableViewComponent_ng_template_10_Conditional_0_Conditional_2_Template, 2, 1);
562
+ } if (rf & 2) {
563
+ const ctx_r5 = i0.ɵɵnextContext(2);
564
+ i0.ɵɵconditional(ctx_r5.userCanEdit() ? 0 : -1);
565
+ i0.ɵɵadvance();
566
+ i0.ɵɵconditional(ctx_r5.userCanAdd() ? 1 : -1);
567
+ i0.ɵɵadvance();
568
+ i0.ɵɵconditional(ctx_r5.userCanRemove() ? 2 : -1);
569
+ } }
570
+ function MultipleInputTableViewComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
571
+ i0.ɵɵconditionalCreate(0, MultipleInputTableViewComponent_ng_template_10_Conditional_0_Template, 3, 3);
572
+ } if (rf & 2) {
573
+ let tmp_4_0;
574
+ const ctx_r5 = i0.ɵɵnextContext();
575
+ i0.ɵɵconditional(!((tmp_4_0 = ctx_r5.inputConfig()) == null ? null : tmp_4_0.readonly) && !((tmp_4_0 = ctx_r5.inputConfig()) == null ? null : tmp_4_0.disabled) ? 0 : -1);
576
+ } }
577
+ class MultipleInputTableViewComponent {
578
+ constructor() {
579
+ this.inputConfig = input(undefined, ...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
580
+ this.dataSource = input(new MatTableDataSource(), ...(ngDevMode ? [{ debugName: "dataSource" }] : /* istanbul ignore next */ []));
581
+ this.applyOptionsTo = input(undefined, ...(ngDevMode ? [{ debugName: "applyOptionsTo" }] : /* istanbul ignore next */ []));
582
+ this.formGroup = input(null, ...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
583
+ this.onEditItem = output();
584
+ this.onDeleteItem = output();
585
+ this.onCopy = output();
586
+ this.onApplyOptionsTo = output();
587
+ this.showItemAsLabel = output();
588
+ this.colConfig = computed(() => {
589
+ const cfg = this.inputConfig();
590
+ if (!cfg) {
591
+ return {
592
+ columnsConfig: {},
593
+ displayedColumnsInOrder: [],
594
+ };
595
+ }
596
+ return configureCols(cfg, this.tempLabels);
597
+ }, ...(ngDevMode ? [{ debugName: "colConfig" }] : /* istanbul ignore next */ []));
598
+ this.displayedColumnsInOrderSig = computed(() => this.colConfig().displayedColumnsInOrder, ...(ngDevMode ? [{ debugName: "displayedColumnsInOrderSig" }] : /* istanbul ignore next */ []));
599
+ this.allPossibleLabels = computed(() => {
600
+ const cfg = this.inputConfig();
601
+ const displayed = this.displayedColumnsInOrderSig();
602
+ return (cfg?.formInputs?.map((inp) => ({
603
+ label: inp.label,
604
+ selected: displayed.includes(`${cfg?.id}.${inp.id}`),
605
+ formControlName: inp.formControlName,
606
+ })) || []);
607
+ }, ...(ngDevMode ? [{ debugName: "allPossibleLabels" }] : /* istanbul ignore next */ []));
608
+ this.userCanEdit = computed(() => {
609
+ const cfg = this.inputConfig();
610
+ if (!cfg)
611
+ return false;
612
+ if (!cfg.multipleInputAvailableOperations)
613
+ return true;
614
+ return cfg.multipleInputAvailableOperations.includes(MultipleInputAvailableOperations.Update);
615
+ }, ...(ngDevMode ? [{ debugName: "userCanEdit" }] : /* istanbul ignore next */ []));
616
+ this.userCanRemove = computed(() => {
617
+ const cfg = this.inputConfig();
618
+ if (!cfg)
619
+ return false;
620
+ if (!cfg.multipleInputAvailableOperations)
621
+ return true;
622
+ return cfg.multipleInputAvailableOperations.includes(MultipleInputAvailableOperations.Remove);
623
+ }, ...(ngDevMode ? [{ debugName: "userCanRemove" }] : /* istanbul ignore next */ []));
624
+ this.userCanAdd = computed(() => {
625
+ const cfg = this.inputConfig();
626
+ if (!cfg)
627
+ return false;
628
+ if (!cfg.multipleInputAvailableOperations)
629
+ return true;
630
+ return cfg.multipleInputAvailableOperations.includes(MultipleInputAvailableOperations.Add);
631
+ }, ...(ngDevMode ? [{ debugName: "userCanAdd" }] : /* istanbul ignore next */ []));
632
+ this.userCanApplyOptionsTo = computed(() => {
633
+ return this.userCanEdit() || this.userCanRemove() || this.userCanAdd();
634
+ }, ...(ngDevMode ? [{ debugName: "userCanApplyOptionsTo" }] : /* istanbul ignore next */ []));
635
+ this.areYouSureYouWantToDeleteRow = {};
636
+ this.countDownDate = new Date();
637
+ this.deletionTimers = {};
638
+ this.tempLabels = [];
639
+ this.SYSTEM_KEY_IN_EDIT = null;
640
+ this.overlayOpen = false;
641
+ this.overlayData = null;
642
+ this.overlayPosition = { top: 0, left: 0 };
643
+ this.fullView = false;
644
+ }
645
+ applyOptionsToFn(item) {
646
+ this.onApplyOptionsTo.emit(item);
647
+ }
648
+ editItem(row) {
649
+ const rowId = row[`${this.inputConfig()?.id}.id`];
650
+ this.onEditItem.emit(rowId);
651
+ }
652
+ copy(row) {
653
+ const rowId = row[`${this.inputConfig()?.id}.id`];
654
+ this.onCopy.emit(rowId);
655
+ }
656
+ isAboutToDeleteRow(row) {
657
+ return !!this.areYouSureYouWantToDeleteRow[row[`${this.inputConfig()?.id}.id`]];
658
+ }
659
+ getCountdownSeconds() {
660
+ const now = new Date();
661
+ const timeElapsed = (now.getTime() - this.countDownDate.getTime()) / 1000;
662
+ const percentage = Math.min(Math.round((timeElapsed / 3) * 100), 100);
663
+ return percentage;
664
+ }
665
+ secondsCountDown() {
666
+ return (3 - ((this.getCountdownSeconds() / 100) * 3)).toFixed(1);
667
+ }
668
+ multipleInputRemoveItem(event, row) {
669
+ const rowId = row[`${this.inputConfig()?.id}.id`];
670
+ if (this.areYouSureYouWantToDeleteRow[rowId]) {
671
+ if (this.deletionTimers[rowId]) {
672
+ clearTimeout(this.deletionTimers[rowId]);
673
+ delete this.deletionTimers[rowId];
674
+ }
675
+ delete this.areYouSureYouWantToDeleteRow[rowId];
676
+ }
677
+ else {
678
+ this.areYouSureYouWantToDeleteRow[rowId] = true;
679
+ this.countDownDate = new Date();
680
+ this.deletionTimers[rowId] = setTimeout(() => {
681
+ if (this.areYouSureYouWantToDeleteRow[rowId]) {
682
+ this.onDeleteItem.emit(row);
683
+ delete this.areYouSureYouWantToDeleteRow[rowId];
684
+ delete this.deletionTimers[rowId];
685
+ }
686
+ }, 3000);
687
+ }
688
+ event.preventDefault();
689
+ event.stopPropagation();
690
+ }
691
+ returnBackground(row, columnsConfig) {
692
+ let background = '';
693
+ const ds = this.dataSource();
694
+ if (ds
695
+ ? ds.data.length > 1
696
+ ? columnsConfig?.['colorScale']
697
+ : false
698
+ : false) {
699
+ const inputCfg = this.inputConfig();
700
+ const colKey = columnsConfig?.['key'] ?? '';
701
+ const point = Number(row[colKey]);
702
+ const inputIsGrouped = inputCfg.groupBy;
703
+ const groupKey = inputCfg.groupBy?.[0] || '';
704
+ const dataSet = inputIsGrouped
705
+ ? ds?.data.filter((s) => s[groupKey] === row[groupKey])
706
+ : new Array(ds?.data || []);
707
+ const arrayValues = dataSet?.map((vr) => Number(vr[colKey])) || [];
708
+ const max = Math.max(...arrayValues);
709
+ const min = Math.min(...arrayValues);
710
+ const hasNun = isNaN(max) || isNaN(min);
711
+ if (!hasNun && Number(max) !== Number(min)) {
712
+ const colorScale = new ColorScale(min, max, ['#2fdf75', '#FFA500', '#ff4961'], 0.8);
713
+ const color = colorScale.getColor(point)?.toRGBAString();
714
+ background = color ?? '';
715
+ }
716
+ }
717
+ return background;
718
+ }
719
+ hasTopBorder(row) {
720
+ const inputCfg = this.inputConfig();
721
+ const inputIsGrouped = inputCfg?.groupBy;
722
+ const ds = this.dataSource();
723
+ if (inputIsGrouped && ds) {
724
+ const indexOfRow = ds.data.indexOf(row);
725
+ const rowIsFirstInTable = indexOfRow === 0;
726
+ if (!inputCfg.groupBy) {
727
+ return false;
728
+ }
729
+ const groupKey = inputCfg.groupBy?.[0] ?? '';
730
+ const isFirstInGroup = rowIsFirstInTable
731
+ ? true
732
+ : ds.data[indexOfRow - 1][groupKey] !==
733
+ row[groupKey];
734
+ return isFirstInGroup;
735
+ }
736
+ else {
737
+ return false;
738
+ }
739
+ }
740
+ getCalculationFunction(row) {
741
+ const func = row['SYSTEM_KEY_PROPERTY_FOR_MULTIPLE_INPUTS_CALCULATION_FUNCTION'];
742
+ switch (func) {
743
+ case CalculationFunctions.Sum:
744
+ return 'TOTAL';
745
+ case CalculationFunctions.Avg:
746
+ return 'AVERAGE';
747
+ case CalculationFunctions.Max:
748
+ return 'MAX';
749
+ case CalculationFunctions.Min:
750
+ return 'MIN';
751
+ default:
752
+ return func;
753
+ }
754
+ }
755
+ toggleTepLabel(event, label) {
756
+ if (this.tempLabels.includes(label)) {
757
+ this.tempLabels = this.tempLabels.filter((l) => l !== label);
758
+ }
759
+ else {
760
+ this.tempLabels.push(label);
761
+ }
762
+ event.stopPropagation();
763
+ event.preventDefault();
764
+ }
765
+ get getColConfig() {
766
+ return this.colConfig();
767
+ }
768
+ get displayedColumnsInOrder() {
769
+ return this.displayedColumnsInOrderSig();
770
+ }
771
+ rowIsInEdit(row) {
772
+ const cfg = this.inputConfig();
773
+ const fg = this.formGroup();
774
+ return (!!cfg?.formIsOpen &&
775
+ fg?.controls[`${cfg?.id}.id`]?.value === row[`${cfg?.id}.id`]);
776
+ }
777
+ openDataOverlay(event, data) {
778
+ event.stopPropagation();
779
+ const rect = event.currentTarget.getBoundingClientRect();
780
+ this.overlayData = data;
781
+ this.overlayPosition = { top: rect.bottom + 4, left: rect.left };
782
+ this.overlayOpen = true;
783
+ }
784
+ closeDataOverlay() {
785
+ this.overlayOpen = false;
786
+ this.overlayData = null;
787
+ }
788
+ static { this.ɵfac = function MultipleInputTableViewComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MultipleInputTableViewComponent)(); }; }
789
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MultipleInputTableViewComponent, selectors: [["lib-multiple-input-table-view"]], inputs: { inputConfig: [1, "inputConfig"], dataSource: [1, "dataSource"], applyOptionsTo: [1, "applyOptionsTo"], formGroup: [1, "formGroup"] }, outputs: { onEditItem: "onEditItem", onDeleteItem: "onDeleteItem", onCopy: "onCopy", onApplyOptionsTo: "onApplyOptionsTo", showItemAsLabel: "showItemAsLabel" }, decls: 11, vars: 1, consts: [["colOptions", "matMenu"], ["rowOptions", "matMenu"], ["t", "matMenuTrigger"], ["matMenuContent", ""], [1, "mit-state", "mit-state--inline"], [1, "table-container"], ["mat-table", "", "matSort", "", "matSortActive", "created", "matSortDisableClear", "", "matSortDirection", "desc", 1, "mit-table", 3, "dataSource"], [3, "matColumnDef"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 3, "mit-group-start", 4, "matRowDef", "matRowDefColumns"], [1, "mit-empty"], ["mat-header-cell", "", 4, "matHeaderCellDef"], ["mat-cell", "", 3, "functionClass", "background", 4, "matCellDef"], ["mat-header-cell", ""], [1, "mit-th-label"], ["matTooltip", "Show other values", "mat-icon-button", "", 1, "mit-th-action", 3, "matMenuTriggerFor", "matMenuTriggerData"], ["mat-cell", ""], [1, "cellClass"], [1, "mit-fn-label"], ["mat-icon-button", "", 1, "mit-row-trigger", 3, "color", "matMenuTriggerFor", "matMenuTriggerData"], ["mat-icon-button", "", 1, "mit-row-trigger", 3, "click", "color", "matMenuTriggerFor", "matMenuTriggerData"], ["color", "primary"], ["mat-icon-button", "", "matTooltip", "View data", 1, "mit-data-button"], ["mat-icon-button", "", "matTooltip", "View data", 1, "mit-data-button", 3, "click"], [1, "mit-data-icon"], ["mat-header-row", ""], ["mat-row", ""], [1, "mit-empty-icon"], [1, "mit-empty-title"], [1, "mit-empty-text"], [1, "mit-placeholder"], ["diameter", "32"], [1, "data-overlay-backdrop", 3, "click"], [1, "data-overlay-panel", 3, "click"], [1, "data-overlay-header"], [1, "data-overlay-title"], [1, "data-overlay-title-icon"], ["mat-icon-button", "", 1, "mit-data-button", 3, "click"], [1, "data-overlay-body"], [3, "data"], ["mat-menu-item", ""], ["mat-menu-item", "", 3, "click"], [1, "option-text"], [1, "option-main-text"], [1, "option-sub-text"], ["color", "accent"], [1, "option-main-text", "option-main-text--cancel"], [1, "deletion-progress-container"], ["color", "warn", "mode", "determinate", 3, "value"], [1, "deletion-message"], ["color", "warn"]], template: function MultipleInputTableViewComponent_Template(rf, ctx) { if (rf & 1) {
790
+ i0.ɵɵdomTemplate(0, MultipleInputTableViewComponent_Defer_0_Template, 8, 7)(1, MultipleInputTableViewComponent_DeferPlaceholder_1_Template, 2, 0);
791
+ i0.ɵɵdefer(2, 0, MultipleInputTableViewComponent_Defer_2_DepsFn, null, 1);
792
+ i0.ɵɵdeferOnViewport(0, -1);
793
+ i0.ɵɵconditionalCreate(4, MultipleInputTableViewComponent_Conditional_4_Template, 12, 5);
794
+ i0.ɵɵelementStart(5, "mat-menu", null, 0);
795
+ i0.ɵɵtemplate(7, MultipleInputTableViewComponent_ng_template_7_Template, 2, 0, "ng-template", 3);
796
+ i0.ɵɵelementEnd();
797
+ i0.ɵɵelementStart(8, "mat-menu", null, 1);
798
+ i0.ɵɵtemplate(10, MultipleInputTableViewComponent_ng_template_10_Template, 1, 1, "ng-template", 3);
799
+ i0.ɵɵelementEnd();
800
+ } if (rf & 2) {
801
+ i0.ɵɵadvance(4);
802
+ i0.ɵɵconditional(ctx.overlayOpen ? 4 : -1);
803
+ } }, dependencies: [MatButtonModule, i2.MatIconButton, MatChipsModule,
804
+ MatIconModule, i3.MatIcon, MatMenuModule, i6.MatMenu, i6.MatMenuItem, i6.MatMenuContent, MatProgressBarModule, i1.MatProgressBar, MatProgressSpinnerModule, i4$1.MatProgressSpinner, MatSortModule,
805
+ MatTableModule,
806
+ MatTooltipModule,
807
+ TDynamicDataViewComponent], styles: [".table-container[_ngcontent-%COMP%]{max-width:100%!important;overflow:auto!important;border-radius:8px}.mit-table[_ngcontent-%COMP%]{width:100%;background:transparent}.mit-table[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%], .mit-table[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]{padding:0 .625rem;font-size:.8125rem}.mit-table[_ngcontent-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%]{min-height:2.25rem}.mit-table[_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%]{min-height:2.5rem;transition:background .2s cubic-bezier(.16,1,.3,1)}.mit-table[_ngcontent-%COMP%] .mat-mdc-row[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--mat-sys-primary, #6750a4) 5%,transparent)}.mit-th-label[_ngcontent-%COMP%]{text-align:start;line-height:normal;font-size:.6875rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant, #49454f)}.mit-th-action[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;line-height:1.75rem;opacity:.55;transition:opacity .2s cubic-bezier(.16,1,.3,1)}.mit-th-action[_ngcontent-%COMP%]:hover{opacity:1}.cellClass[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:2.5rem}.mit-group-start[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]{border-top:2px solid var(--mat-sys-outline-variant, #cac4d0)}.functionClass[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container, #f3edf7);font-weight:500}.mit-fn-label[_ngcontent-%COMP%]{width:100%;text-align:right;color:var(--mat-sys-on-surface-variant, #49454f);font-size:.6875rem;letter-spacing:.06em;text-transform:uppercase}.mit-row-trigger[_ngcontent-%COMP%]{margin-left:auto;margin-right:0;display:block}.mit-data-button[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;line-height:1.75rem}.mit-data-icon[_ngcontent-%COMP%]{font-size:1.125rem;width:1.125rem;height:1.125rem;line-height:1.125rem}.mit-state[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:1rem;font-size:.8125rem;color:var(--mat-sys-on-surface-variant, #49454f);opacity:.7}.mit-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.375rem;padding:1.5rem 1.25rem;color:var(--mat-sys-on-surface-variant, #49454f)}.mit-empty-icon[_ngcontent-%COMP%]{font-size:1.75rem;width:1.75rem;height:1.75rem;line-height:1.75rem;opacity:.5}.mit-empty-title[_ngcontent-%COMP%]{font-size:.875rem;color:var(--mat-sys-on-surface, #1c1b1f)}.mit-empty-text[_ngcontent-%COMP%]{margin:0;max-width:22rem;font-size:.75rem;line-height:1.45;opacity:.85}.mit-placeholder[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:2rem}.option-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-left:.5rem}.option-main-text[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;margin-bottom:2px;line-height:normal}.option-main-text--cancel[_ngcontent-%COMP%]{color:var(--mat-sys-primary, #6750a4)}.option-sub-text[_ngcontent-%COMP%]{font-size:.75rem;color:var(--mat-sys-on-surface-variant, #49454f);font-weight:400;line-height:1.2}.deletion-progress-container[_ngcontent-%COMP%]{position:relative;padding:0 1rem .5rem}.deletion-message[_ngcontent-%COMP%]{position:absolute;right:1rem;top:2px;font-size:.6875rem;color:var(--mat-sys-error, #b3261e);font-weight:500;line-height:1.6;animation:_ngcontent-%COMP%_pulse 1s infinite}button[_ngcontent-%COMP%]:has(+.deletion-progress-container){border-bottom:none!important;padding-bottom:4px!important}@keyframes _ngcontent-%COMP%_pulse{0%{opacity:.7}50%{opacity:1}to{opacity:.7}}@media(max-width:600px){.option-sub-text[_ngcontent-%COMP%]{max-width:180px;white-space:normal}}.data-overlay-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:999;background:transparent}.data-overlay-panel[_ngcontent-%COMP%]{position:fixed;z-index:1000;background:var(--mat-sys-surface, #fef7ff);border:1px solid color-mix(in srgb,var(--mat-sys-outline, #79747e) 15%,transparent);border-radius:12px;box-shadow:0 16px 56px color-mix(in srgb,var(--mat-sys-shadow, #000) 14%,transparent);min-width:280px;max-width:min(380px,calc(100vw - 16px));max-height:60vh;display:flex;flex-direction:column;overflow:hidden}.data-overlay-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:.25rem .25rem .25rem .75rem;border-bottom:1px solid color-mix(in srgb,var(--mat-sys-outline, #79747e) 12%,transparent);flex-shrink:0}.data-overlay-title[_ngcontent-%COMP%]{font-size:.8125rem;font-weight:500;display:flex;align-items:center;color:var(--mat-sys-on-surface, #1c1b1f)}.data-overlay-title-icon[_ngcontent-%COMP%]{font-size:1rem;width:1rem;height:1rem;line-height:1rem;vertical-align:middle;margin-right:.25rem}.data-overlay-body[_ngcontent-%COMP%]{overflow:auto;padding:.25rem .5rem .5rem;flex:1}"], changeDetection: 0 }); }
808
+ }
809
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadataAsync(MultipleInputTableViewComponent, () => [import('./ngx-t-forms-ngx-t-forms-BefvSS-p.mjs').then(function (n) { return n.aK; }).then(m => m.FormatDataPipe)], FormatDataPipe => { i0.ɵsetClassMetadata(MultipleInputTableViewComponent, [{
810
+ type: Component,
811
+ args: [{ selector: 'lib-multiple-input-table-view', imports: [
812
+ MatButtonModule,
813
+ MatChipsModule,
814
+ MatIconModule,
815
+ MatMenuModule,
816
+ MatProgressBarModule,
817
+ MatProgressSpinnerModule,
818
+ MatSortModule,
819
+ MatTableModule,
820
+ MatTooltipModule,
821
+ FormatDataPipe,
822
+ TDynamicDataViewComponent,
823
+ ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, template: "@defer (on viewport) {\n\n @if (getColConfig.displayedColumnsInOrder.length === 0) {\n <div class=\"mit-state mit-state--inline\">No columns</div>\n }\n\n <div class=\"table-container\">\n\n <table mat-table [dataSource]=\"(dataSource() || [])\" class=\"mit-table\" matSort matSortActive=\"created\"\n matSortDisableClear matSortDirection=\"desc\">\n @for (col of (displayedColumnsInOrder || []); track col) {\n <ng-container [matColumnDef]=\"col\">\n <th mat-header-cell *matHeaderCellDef>\n <span class=\"mit-th-label\">\n {{ getColConfig.columnsConfig?.[col]?.[\"label\"] }}\n </span>\n @if ($last) {\n <button matTooltip=\"Show other values\" [matMenuTriggerFor]=\"colOptions\" [matMenuTriggerData]=\"{}\"\n class=\"mit-th-action\" mat-icon-button>\n <mat-icon>label</mat-icon>\n </button>\n }\n </th>\n <td [class.functionClass]=\"row['SYSTEM_KEY_PROPERTY_FOR_MULTIPLE_INPUTS_CALCULATION_FUNCTION']\"\n [style.background]=\"returnBackground(row, getColConfig.columnsConfig?.[col])\"\n mat-cell *matCellDef=\"let row\">\n @if (getColConfig.columnsConfig?.[col]?.['type'] === 'removal') {\n <div class=\"cellClass\">\n\n @if (!!row['SYSTEM_KEY_PROPERTY_FOR_MULTIPLE_INPUTS_CALCULATION_FUNCTION'] && !row['id'] && !inputConfig()?.multipleInputInEditId ||\n !!row['SYSTEM_KEY_PROPERTY_FOR_MULTIPLE_INPUTS_CALCULATION_FUNCTION'] && inputConfig()?.multipleInputInEditId &&\n inputConfig()?.multipleInputInEditId !== row['id']) {\n <div class=\"mit-fn-label\">\n <strong>{{ getCalculationFunction(row) }}</strong>\n </div>\n }\n @if (\n userCanApplyOptionsTo() &&\n !row['SYSTEM_KEY_PROPERTY_FOR_MULTIPLE_INPUTS_CALCULATION_FUNCTION'] &&\n row[''] !== 'true' && !inputConfig()?.readonly && !inputConfig()?.disabled\n ) {\n <button mat-icon-button [color]=\"t.menuOpen ? 'primary' : 'basic'\" [matMenuTriggerFor]=\"rowOptions\" [matMenuTriggerData]=\"{row:row}\" #t=\"matMenuTrigger\"\n (click)=\"applyOptionsToFn(row)\"\n class=\"mit-row-trigger\">\n @if (rowIsInEdit(row)) {\n <mat-icon color=\"primary\">edit</mat-icon>\n } @else {\n <mat-icon>{{ t.menuOpen ? 'close' : 'more_horiz' }}</mat-icon>\n }\n </button>\n }\n\n @if (row['SYSTEM_KEY_IN_EDIT']) {\n <mat-chip>In {{ inputConfig()?.readonly ? 'View' : 'Edit' }}</mat-chip>\n }\n\n </div>\n }\n @if (getColConfig.columnsConfig && getColConfig.columnsConfig?.[col]?.type !== 'removal') {\n <div class=\"cellClass\">\n <span>\n @if (getColConfig.columnsConfig?.[col].dataType === 'array' || getColConfig.columnsConfig?.[col].dataType === 'object') {\n <button mat-icon-button class=\"mit-data-button\"\n matTooltip=\"View data\"\n (click)=\"openDataOverlay($event, row[col])\">\n <mat-icon class=\"mit-data-icon\">data_object</mat-icon>\n </button>\n } @else {\n {{ row[col] | formatData: getColConfig.columnsConfig?.[col].dataType }}\n }\n </span>\n </div>\n }\n </td>\n </ng-container>\n }\n\n\n <tr mat-header-row *matHeaderRowDef=\"getColConfig.displayedColumnsInOrder\"></tr>\n <tr [class.mit-group-start]=\"hasTopBorder(row)\" mat-row\n *matRowDef=\"let row; columns: getColConfig.displayedColumnsInOrder\"></tr>\n </table>\n\n @if (!dataSource()?.data?.length) {\n <div class=\"mit-empty\">\n <mat-icon class=\"mit-empty-icon\">list</mat-icon>\n <strong class=\"mit-empty-title\">No items yet</strong>\n <p class=\"mit-empty-text\">\n <strong>Click the add button</strong> to create a new row. You'll fill in details using a form, and each\n saved entry appears as a row here.\n </p>\n </div>\n }\n </div>\n} @placeholder {\n <div class=\"mit-placeholder\">\n <mat-spinner diameter=\"32\" />\n </div>\n}\n\n@if (overlayOpen) {\n <div class=\"data-overlay-backdrop\" (click)=\"closeDataOverlay()\"></div>\n <div class=\"data-overlay-panel\"\n [style.top.px]=\"overlayPosition.top\"\n [style.left.px]=\"overlayPosition.left\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"data-overlay-header\">\n <span class=\"data-overlay-title\">\n <mat-icon class=\"data-overlay-title-icon\">data_object</mat-icon>\n Data\n </span>\n <button mat-icon-button class=\"mit-data-button\" (click)=\"closeDataOverlay()\">\n <mat-icon class=\"mit-data-icon\">close</mat-icon>\n </button>\n </div>\n <div class=\"data-overlay-body\">\n <lib-t-dynamic-data-view [data]=\"overlayData\" />\n </div>\n </div>\n}\n\n<mat-menu #colOptions=\"matMenu\">\n <ng-template matMenuContent>\n @for (label of allPossibleLabels(); track label.formControlName) {\n <button mat-menu-item (click)=\"toggleTepLabel($event, label.formControlName);\">\n <mat-icon>{{ label.selected ? 'check_circle' : 'radio_button_unchecked' }}</mat-icon>\n {{ label.label }}\n </button>\n }\n </ng-template>\n</mat-menu>\n\n<mat-menu #rowOptions=\"matMenu\">\n <ng-template matMenuContent let-row=\"row\">\n @if (!inputConfig()?.readonly && !inputConfig()?.disabled) {\n @if (userCanEdit()) {\n <button mat-menu-item (click)=\"editItem(row)\">\n <mat-icon>edit</mat-icon>\n <div class=\"option-text\">\n <div class=\"option-main-text\">Edit</div>\n <div class=\"option-sub-text\">\n {{ inputConfig()?.readonly ? 'View item properties' : 'Modify item properties' }}\n </div>\n </div>\n </button>\n }\n @if (userCanAdd()) {\n <button mat-menu-item (click)=\"copy(row)\">\n <mat-icon>content_copy</mat-icon>\n <div class=\"option-text\">\n <div class=\"option-main-text\">Duplicate</div>\n <div class=\"option-sub-text\">Create a copy with same values</div>\n </div>\n </button>\n }\n\n @if (userCanRemove()) {\n @if (isAboutToDeleteRow(row)) {\n <button mat-menu-item (click)=\"multipleInputRemoveItem($event,row)\">\n <mat-icon color=\"accent\">cancel</mat-icon>\n <div class=\"option-text\">\n <div class=\"option-main-text option-main-text--cancel\">Cancel Deletion</div>\n <div class=\"option-sub-text\">Auto-deleting in {{ secondsCountDown() }} seconds...</div>\n </div>\n </button>\n <div class=\"deletion-progress-container\">\n <mat-progress-bar color=\"warn\" mode=\"determinate\" [value]=\"getCountdownSeconds()\"></mat-progress-bar>\n @if (getCountdownSeconds() > 75) {\n <div class=\"deletion-message\">Deleting soon...</div>\n }\n </div>\n } @else {\n <button mat-menu-item (click)=\"multipleInputRemoveItem($event,row)\">\n <mat-icon color=\"warn\">delete_outline</mat-icon>\n <div class=\"option-text\">\n <div class=\"option-main-text\">Delete</div>\n <div class=\"option-sub-text\">Will delete after 3 seconds (click to cancel)</div>\n </div>\n </button>\n }\n }\n }\n </ng-template>\n</mat-menu>\n", styles: [".table-container{max-width:100%!important;overflow:auto!important;border-radius:8px}.mit-table{width:100%;background:transparent}.mit-table .mat-mdc-header-cell,.mit-table .mat-mdc-cell{padding:0 .625rem;font-size:.8125rem}.mit-table .mat-mdc-header-row{min-height:2.25rem}.mit-table .mat-mdc-row{min-height:2.5rem;transition:background .2s cubic-bezier(.16,1,.3,1)}.mit-table .mat-mdc-row:hover{background:color-mix(in srgb,var(--mat-sys-primary, #6750a4) 5%,transparent)}.mit-th-label{text-align:start;line-height:normal;font-size:.6875rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant, #49454f)}.mit-th-action{width:1.75rem;height:1.75rem;line-height:1.75rem;opacity:.55;transition:opacity .2s cubic-bezier(.16,1,.3,1)}.mit-th-action:hover{opacity:1}.cellClass{display:flex;align-items:center;min-height:2.5rem}.mit-group-start .mat-mdc-cell{border-top:2px solid var(--mat-sys-outline-variant, #cac4d0)}.functionClass{background:var(--mat-sys-surface-container, #f3edf7);font-weight:500}.mit-fn-label{width:100%;text-align:right;color:var(--mat-sys-on-surface-variant, #49454f);font-size:.6875rem;letter-spacing:.06em;text-transform:uppercase}.mit-row-trigger{margin-left:auto;margin-right:0;display:block}.mit-data-button{width:1.75rem;height:1.75rem;line-height:1.75rem}.mit-data-icon{font-size:1.125rem;width:1.125rem;height:1.125rem;line-height:1.125rem}.mit-state{display:flex;justify-content:center;padding:1rem;font-size:.8125rem;color:var(--mat-sys-on-surface-variant, #49454f);opacity:.7}.mit-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.375rem;padding:1.5rem 1.25rem;color:var(--mat-sys-on-surface-variant, #49454f)}.mit-empty-icon{font-size:1.75rem;width:1.75rem;height:1.75rem;line-height:1.75rem;opacity:.5}.mit-empty-title{font-size:.875rem;color:var(--mat-sys-on-surface, #1c1b1f)}.mit-empty-text{margin:0;max-width:22rem;font-size:.75rem;line-height:1.45;opacity:.85}.mit-placeholder{display:flex;justify-content:center;align-items:center;padding:2rem}.option-text{display:flex;flex-direction:column;margin-left:.5rem}.option-main-text{font-size:.875rem;font-weight:500;margin-bottom:2px;line-height:normal}.option-main-text--cancel{color:var(--mat-sys-primary, #6750a4)}.option-sub-text{font-size:.75rem;color:var(--mat-sys-on-surface-variant, #49454f);font-weight:400;line-height:1.2}.deletion-progress-container{position:relative;padding:0 1rem .5rem}.deletion-message{position:absolute;right:1rem;top:2px;font-size:.6875rem;color:var(--mat-sys-error, #b3261e);font-weight:500;line-height:1.6;animation:pulse 1s infinite}button:has(+.deletion-progress-container){border-bottom:none!important;padding-bottom:4px!important}@keyframes pulse{0%{opacity:.7}50%{opacity:1}to{opacity:.7}}@media(max-width:600px){.option-sub-text{max-width:180px;white-space:normal}}.data-overlay-backdrop{position:fixed;inset:0;z-index:999;background:transparent}.data-overlay-panel{position:fixed;z-index:1000;background:var(--mat-sys-surface, #fef7ff);border:1px solid color-mix(in srgb,var(--mat-sys-outline, #79747e) 15%,transparent);border-radius:12px;box-shadow:0 16px 56px color-mix(in srgb,var(--mat-sys-shadow, #000) 14%,transparent);min-width:280px;max-width:min(380px,calc(100vw - 16px));max-height:60vh;display:flex;flex-direction:column;overflow:hidden}.data-overlay-header{display:flex;align-items:center;justify-content:space-between;padding:.25rem .25rem .25rem .75rem;border-bottom:1px solid color-mix(in srgb,var(--mat-sys-outline, #79747e) 12%,transparent);flex-shrink:0}.data-overlay-title{font-size:.8125rem;font-weight:500;display:flex;align-items:center;color:var(--mat-sys-on-surface, #1c1b1f)}.data-overlay-title-icon{font-size:1rem;width:1rem;height:1rem;line-height:1rem;vertical-align:middle;margin-right:.25rem}.data-overlay-body{overflow:auto;padding:.25rem .5rem .5rem;flex:1}\n"] }]
824
+ }], null, { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: false }] }], dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: false }] }], applyOptionsTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "applyOptionsTo", required: false }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: false }] }], onEditItem: [{ type: i0.Output, args: ["onEditItem"] }], onDeleteItem: [{ type: i0.Output, args: ["onDeleteItem"] }], onCopy: [{ type: i0.Output, args: ["onCopy"] }], onApplyOptionsTo: [{ type: i0.Output, args: ["onApplyOptionsTo"] }], showItemAsLabel: [{ type: i0.Output, args: ["showItemAsLabel"] }] }); }); })();
825
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MultipleInputTableViewComponent, { className: "MultipleInputTableViewComponent", filePath: "lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table-view/multiple-input-table-view.component.ts", lineNumber: 66 }); })();
826
+
827
+ const _c0 = (a0, a1, a2) => ({ inputConfig: a0, formGroup: a1, formBuilderFunctions: a2 });
828
+ const _c1 = a0 => ({ inputId: a0 });
829
+ const _forTrack0 = ($index, $item) => $item.id;
830
+ function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
831
+ i0.ɵɵelementContainer(0);
832
+ } }
833
+ function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Conditional_5_Template(rf, ctx) { if (rf & 1) {
834
+ const _r5 = i0.ɵɵgetCurrentView();
835
+ i0.ɵɵelementStart(0, "button", 18);
836
+ i0.ɵɵlistener("mouseover", function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Conditional_5_Template_button_mouseover_0_listener() { i0.ɵɵrestoreView(_r5); const innerInput_r2 = i0.ɵɵnextContext(4).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.overId = innerInput_r2.id); })("mouseout", function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Conditional_5_Template_button_mouseout_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.overId = null); })("click", function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const innerInput_r2 = i0.ɵɵnextContext(4).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.removeInput(innerInput_r2)); });
837
+ i0.ɵɵelementStart(1, "div", 19);
838
+ i0.ɵɵelement(2, "mat-progress-spinner", 20);
839
+ i0.ɵɵtext(3);
840
+ i0.ɵɵelementEnd()();
841
+ } if (rf & 2) {
842
+ const innerInput_r2 = i0.ɵɵnextContext(4).$implicit;
843
+ const ctx_r2 = i0.ɵɵnextContext();
844
+ i0.ɵɵadvance(2);
845
+ i0.ɵɵproperty("value", (ctx_r2.inputWillBeRemovedIn(innerInput_r2.id) || 0) / 5 * 100);
846
+ i0.ɵɵadvance();
847
+ i0.ɵɵtextInterpolate2(" ", ctx_r2.overId === innerInput_r2.id ? "Click to cancel" : "Deleting in", " ", ctx_r2.inputWillBeRemovedIn(innerInput_r2.id), " ");
848
+ } }
849
+ function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
850
+ const _r6 = i0.ɵɵgetCurrentView();
851
+ i0.ɵɵelementStart(0, "button", 12);
852
+ i0.ɵɵlistener("click", function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Conditional_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const innerInput_r2 = i0.ɵɵnextContext(4).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.removeInput(innerInput_r2)); });
853
+ i0.ɵɵelementStart(1, "mat-icon");
854
+ i0.ɵɵtext(2, "delete");
855
+ i0.ɵɵelementEnd()();
856
+ } if (rf & 2) {
857
+ const innerInput_r2 = i0.ɵɵnextContext(4).$implicit;
858
+ i0.ɵɵproperty("matTooltip", "Delete input " + innerInput_r2.label);
859
+ } }
860
+ function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Conditional_8_Template(rf, ctx) { if (rf & 1) {
861
+ i0.ɵɵelementStart(0, "button", 16)(1, "mat-icon");
862
+ i0.ɵɵtext(2, "calculate");
863
+ i0.ɵɵelementEnd()();
864
+ } if (rf & 2) {
865
+ const innerInput_r2 = i0.ɵɵnextContext(4).$implicit;
866
+ i0.ɵɵnextContext();
867
+ const calculationMenu_r7 = i0.ɵɵreference(9);
868
+ i0.ɵɵproperty("matMenuTriggerFor", calculationMenu_r7)("matMenuTriggerData", i0.ɵɵpureFunction1(3, _c1, innerInput_r2.originalId || innerInput_r2.id))("matTooltip", "calculate sum,avg,min,max");
869
+ } }
870
+ function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
871
+ const _r4 = i0.ɵɵgetCurrentView();
872
+ i0.ɵɵelementStart(0, "mat-card-actions", 10);
873
+ i0.ɵɵelement(1, "span", 11);
874
+ i0.ɵɵelementStart(2, "button", 12);
875
+ i0.ɵɵlistener("click", function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r4); const innerInput_r2 = i0.ɵɵnextContext(3).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.editInput(innerInput_r2)); });
876
+ i0.ɵɵelementStart(3, "mat-icon");
877
+ i0.ɵɵtext(4, "edit");
878
+ i0.ɵɵelementEnd()();
879
+ i0.ɵɵconditionalCreate(5, MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Conditional_5_Template, 4, 3, "button", 13)(6, MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Conditional_6_Template, 3, 1, "button", 14);
880
+ i0.ɵɵelement(7, "span", 15);
881
+ i0.ɵɵconditionalCreate(8, MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Conditional_8_Template, 3, 5, "button", 16);
882
+ i0.ɵɵelementStart(9, "button", 17);
883
+ i0.ɵɵlistener("click", function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r4); const innerInput_r2 = i0.ɵɵnextContext(3).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleLabel(innerInput_r2)); });
884
+ i0.ɵɵelementStart(10, "mat-icon");
885
+ i0.ɵɵtext(11, "label");
886
+ i0.ɵɵelementEnd()();
887
+ i0.ɵɵelement(12, "span", 11);
888
+ i0.ɵɵelementEnd();
889
+ } if (rf & 2) {
890
+ const innerInput_r2 = i0.ɵɵnextContext(3).$implicit;
891
+ const ctx_r2 = i0.ɵɵnextContext();
892
+ i0.ɵɵadvance(2);
893
+ i0.ɵɵproperty("matTooltip", "Edit Input: " + innerInput_r2.label);
894
+ i0.ɵɵadvance(3);
895
+ i0.ɵɵconditional(!!ctx_r2.inputWillBeRemovedIn(innerInput_r2.id) ? 5 : ctx_r2.inputConfig().systemDefault !== true && innerInput_r2.systemDefault !== true ? 6 : -1);
896
+ i0.ɵɵadvance(3);
897
+ i0.ɵɵconditional(!!innerInput_r2.showAsLabel && innerInput_r2.dataType === "number" || !!innerInput_r2.showAsLabel && innerInput_r2.type === "number" ? 8 : -1);
898
+ i0.ɵɵadvance();
899
+ i0.ɵɵproperty("color", innerInput_r2.showAsLabel ? "primary" : "")("matTooltip", innerInput_r2.showAsLabel ? "Hide as label" : "Show as label");
900
+ } }
901
+ function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
902
+ const _r1 = i0.ɵɵgetCurrentView();
903
+ i0.ɵɵelementStart(0, "mat-card", 8);
904
+ i0.ɵɵlistener("mouseover", function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Template_mat_card_mouseover_0_listener() { i0.ɵɵrestoreView(_r1); const innerInput_r2 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.activeInput = innerInput_r2.id); })("cdkDragStarted", function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Template_mat_card_cdkDragStarted_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.dragging = true); })("cdkDragReleased", function MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Template_mat_card_cdkDragReleased_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.dragging = false); });
905
+ i0.ɵɵtemplate(1, MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_ng_container_1_Template, 1, 0, "ng-container", 9);
906
+ i0.ɵɵconditionalCreate(2, MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Conditional_2_Template, 13, 5, "mat-card-actions", 10);
907
+ i0.ɵɵelementEnd();
908
+ } if (rf & 2) {
909
+ const innerInput_r2 = i0.ɵɵnextContext(2).$implicit;
910
+ const ctx_r2 = i0.ɵɵnextContext();
911
+ i0.ɵɵclassMap("col-md-" + (ctx_r2.dragging ? "12" : innerInput_r2.colSize));
912
+ i0.ɵɵclassProp("inputCardElevated", ctx_r2.activeInput === innerInput_r2.id)("inputCard", ctx_r2.activeInput !== innerInput_r2.id);
913
+ i0.ɵɵadvance();
914
+ i0.ɵɵproperty("ngComponentOutlet", ctx_r2.InputComponent)("ngComponentOutletInputs", i0.ɵɵpureFunction3(9, _c0, innerInput_r2, ctx_r2.formGroup(), ctx_r2.formBuilderFunctions()));
915
+ i0.ɵɵadvance();
916
+ i0.ɵɵconditional(ctx_r2.activeInput === innerInput_r2.id ? 2 : -1);
917
+ } }
918
+ function MultipleInputTableEditComponent_For_5_Conditional_1_Template(rf, ctx) { if (rf & 1) {
919
+ i0.ɵɵconditionalCreate(0, MultipleInputTableEditComponent_For_5_Conditional_1_Conditional_0_Template, 3, 13, "mat-card", 7);
920
+ } if (rf & 2) {
921
+ const ctx_r2 = i0.ɵɵnextContext(2);
922
+ i0.ɵɵconditional(!!ctx_r2.formGroup() ? 0 : -1);
923
+ } }
924
+ function MultipleInputTableEditComponent_For_5_Conditional_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
925
+ i0.ɵɵelementContainer(0);
926
+ } }
927
+ function MultipleInputTableEditComponent_For_5_Conditional_2_Template(rf, ctx) { if (rf & 1) {
928
+ i0.ɵɵelementStart(0, "div", 21);
929
+ i0.ɵɵtemplate(1, MultipleInputTableEditComponent_For_5_Conditional_2_ng_container_1_Template, 1, 0, "ng-container", 9);
930
+ i0.ɵɵelementEnd();
931
+ } if (rf & 2) {
932
+ const innerInput_r2 = i0.ɵɵnextContext().$implicit;
933
+ const ctx_r2 = i0.ɵɵnextContext();
934
+ i0.ɵɵclassMap("col-md-" + (ctx_r2.dragging ? "12" : innerInput_r2.colSize));
935
+ i0.ɵɵadvance();
936
+ i0.ɵɵproperty("ngComponentOutlet", ctx_r2.InputComponent)("ngComponentOutletInputs", i0.ɵɵpureFunction3(4, _c0, innerInput_r2, ctx_r2.formGroup(), ctx_r2.formBuilderFunctions()));
937
+ } }
938
+ function MultipleInputTableEditComponent_For_5_Template(rf, ctx) { if (rf & 1) {
939
+ i0.ɵɵelementContainerStart(0);
940
+ i0.ɵɵconditionalCreate(1, MultipleInputTableEditComponent_For_5_Conditional_1_Template, 1, 1)(2, MultipleInputTableEditComponent_For_5_Conditional_2_Template, 2, 8, "div", 6);
941
+ i0.ɵɵelementContainerEnd();
942
+ } if (rf & 2) {
943
+ const ctx_r2 = i0.ɵɵnextContext();
944
+ i0.ɵɵadvance();
945
+ i0.ɵɵconditional(ctx_r2.editorMode() ? 1 : 2);
946
+ } }
947
+ function MultipleInputTableEditComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
948
+ i0.ɵɵelementStart(0, "div", 4)(1, "mat-icon", 22);
949
+ i0.ɵɵtext(2, "info");
950
+ i0.ɵɵelementEnd();
951
+ i0.ɵɵelementStart(3, "span")(4, "strong");
952
+ i0.ɵɵtext(5, "Add Form Input");
953
+ i0.ɵɵelementEnd();
954
+ i0.ɵɵelement(6, "br");
955
+ i0.ɵɵtext(7, " Manage your list by adding, editing, or removing items. Each item is customizable through a form. ");
956
+ i0.ɵɵelementEnd()();
957
+ } }
958
+ function MultipleInputTableEditComponent_Conditional_7_Conditional_4_Template(rf, ctx) { if (rf & 1) {
959
+ const _r9 = i0.ɵɵgetCurrentView();
960
+ i0.ɵɵelementStart(0, "button", 26);
961
+ i0.ɵɵlistener("click", function MultipleInputTableEditComponent_Conditional_7_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.saveMultipleInputForm()); });
962
+ i0.ɵɵtext(1);
963
+ i0.ɵɵelementEnd();
964
+ } if (rf & 2) {
965
+ const ctx_r2 = i0.ɵɵnextContext(2);
966
+ i0.ɵɵproperty("disabled", !!ctx_r2.formInvalid());
967
+ i0.ɵɵadvance();
968
+ i0.ɵɵtextInterpolate1(" ", ctx_r2.rowInUpdate() ? "Update" : "Save", " ");
969
+ } }
970
+ function MultipleInputTableEditComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
971
+ const _r8 = i0.ɵɵgetCurrentView();
972
+ i0.ɵɵelement(0, "mat-divider");
973
+ i0.ɵɵelementStart(1, "mat-card-actions", 23)(2, "button", 24);
974
+ i0.ɵɵlistener("click", function MultipleInputTableEditComponent_Conditional_7_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r8); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.closeMultipleInput()); });
975
+ i0.ɵɵtext(3);
976
+ i0.ɵɵelementEnd();
977
+ i0.ɵɵconditionalCreate(4, MultipleInputTableEditComponent_Conditional_7_Conditional_4_Template, 2, 2, "button", 25);
978
+ i0.ɵɵelementEnd();
979
+ } if (rf & 2) {
980
+ const ctx_r2 = i0.ɵɵnextContext();
981
+ i0.ɵɵadvance(2);
982
+ i0.ɵɵclassProp("confirm-leave", ctx_r2.areYouSure);
983
+ i0.ɵɵproperty("color", ctx_r2.areYouSure ? "warn" : "");
984
+ i0.ɵɵadvance();
985
+ i0.ɵɵtextInterpolate1(" ", ctx_r2.areYouSure ? "leave without saving" : "cancel", " ");
986
+ i0.ɵɵadvance();
987
+ i0.ɵɵconditional(!ctx_r2.inputConfig().readonly ? 4 : -1);
988
+ } }
989
+ function MultipleInputTableEditComponent_ng_template_10_For_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
990
+ i0.ɵɵelementStart(0, "mat-icon", 29);
991
+ i0.ɵɵtext(1, "check_circle");
992
+ i0.ɵɵelementEnd();
993
+ } }
994
+ function MultipleInputTableEditComponent_ng_template_10_For_1_Template(rf, ctx) { if (rf & 1) {
995
+ const _r10 = i0.ɵɵgetCurrentView();
996
+ i0.ɵɵelementStart(0, "button", 28);
997
+ i0.ɵɵlistener("click", function MultipleInputTableEditComponent_ng_template_10_For_1_Template_button_click_0_listener() { const func_r11 = i0.ɵɵrestoreView(_r10).$implicit; const inputId_r12 = i0.ɵɵnextContext().sectionId; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleFunction(func_r11, inputId_r12)); });
998
+ i0.ɵɵtext(1);
999
+ i0.ɵɵconditionalCreate(2, MultipleInputTableEditComponent_ng_template_10_For_1_Conditional_2_Template, 2, 0, "mat-icon", 29);
1000
+ i0.ɵɵelementEnd();
1001
+ } if (rf & 2) {
1002
+ const func_r11 = ctx.$implicit;
1003
+ const ctx_r2 = i0.ɵɵnextContext(2);
1004
+ i0.ɵɵadvance();
1005
+ i0.ɵɵtextInterpolate1(" ", func_r11, " ");
1006
+ i0.ɵɵadvance();
1007
+ i0.ɵɵconditional(ctx_r2.selectedFunction(func_r11) ? 2 : -1);
1008
+ } }
1009
+ function MultipleInputTableEditComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
1010
+ i0.ɵɵrepeaterCreate(0, MultipleInputTableEditComponent_ng_template_10_For_1_Template, 3, 2, "button", 27, i0.ɵɵrepeaterTrackByIdentity);
1011
+ } if (rf & 2) {
1012
+ const ctx_r2 = i0.ɵɵnextContext();
1013
+ i0.ɵɵrepeater(ctx_r2.calculationFunctions);
1014
+ } }
1015
+ class MultipleInputTableEditComponent {
1016
+ constructor() {
1017
+ this.InputComponent = TFormInputComponent;
1018
+ this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
1019
+ this.editorMode = input(false, ...(ngDevMode ? [{ debugName: "editorMode" }] : /* istanbul ignore next */ []));
1020
+ this.formGroup = input(null, ...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
1021
+ this.formBuilderFunctions = input(undefined, ...(ngDevMode ? [{ debugName: "formBuilderFunctions" }] : /* istanbul ignore next */ []));
1022
+ this.onSaveMultipleInputForm = output();
1023
+ this.editMultipleInput = output();
1024
+ this.deleteInput = output();
1025
+ this.showItemAsLabel = output();
1026
+ this.addFunction = output();
1027
+ this.reorderItems = output();
1028
+ this.calculationFunctions = Object.values(CalculationFunctions);
1029
+ this.activeInput = '';
1030
+ this.dragging = false;
1031
+ this.overId = null;
1032
+ this.areYouSure = false;
1033
+ this.countdownSeconds = {};
1034
+ this.innerInputs = computed(() => {
1035
+ const cfg = this.inputConfig();
1036
+ return (cfg?.formInputs?.map((input) => ({
1037
+ ...input,
1038
+ originalId: input.id,
1039
+ id: `${cfg?.id}.${input.id}`,
1040
+ })) || []);
1041
+ }, ...(ngDevMode ? [{ debugName: "innerInputs" }] : /* istanbul ignore next */ []));
1042
+ this.rowInUpdate = computed(() => {
1043
+ const cfg = this.inputConfig();
1044
+ const fg = this.formGroup();
1045
+ return !!cfg?.formIsOpen && !!fg?.controls[`${cfg?.id}.id`]?.value;
1046
+ }, ...(ngDevMode ? [{ debugName: "rowInUpdate" }] : /* istanbul ignore next */ []));
1047
+ this.formInvalid = computed(() => {
1048
+ const cfg = this.inputConfig();
1049
+ const fg = this.formGroup();
1050
+ const allControls = [];
1051
+ cfg?.formInputs?.forEach((input) => {
1052
+ const control = fg?.controls[`${cfg?.id}.${input.id}`];
1053
+ if (control) {
1054
+ allControls.push(control);
1055
+ }
1056
+ });
1057
+ return allControls.some((control) => control?.invalid || !control);
1058
+ }, ...(ngDevMode ? [{ debugName: "formInvalid" }] : /* istanbul ignore next */ []));
1059
+ this.#destroyRef = inject(DestroyRef);
1060
+ }
1061
+ #destroyRef;
1062
+ ngOnDestroy() {
1063
+ Object.values(this.countdownSeconds).forEach(({ stop$ }) => stop$.complete());
1064
+ }
1065
+ saveMultipleInputForm() {
1066
+ this.onSaveMultipleInputForm.emit();
1067
+ }
1068
+ inputWillBeRemovedIn(id) {
1069
+ return this.countdownSeconds[id]?.count;
1070
+ }
1071
+ removeInput(item) {
1072
+ if (this.countdownSeconds[item.id]) {
1073
+ this.stopDeletion(item.id);
1074
+ return;
1075
+ }
1076
+ this.countdownSeconds[item.id] = {
1077
+ count: 5,
1078
+ stop$: new Subject(),
1079
+ };
1080
+ const countdown$ = timer(0, 1000).pipe(tap((secondsElapsed) => {
1081
+ const data = this.countdownSeconds[item.id];
1082
+ if (!data) {
1083
+ return;
1084
+ }
1085
+ const remainingTime = 5 - secondsElapsed;
1086
+ if (remainingTime <= 0) {
1087
+ this.formDeleteInput(item);
1088
+ this.stopDeletion(item.id);
1089
+ }
1090
+ else {
1091
+ data.count = remainingTime;
1092
+ }
1093
+ }), takeUntil(this.countdownSeconds[item.id].stop$), takeUntilDestroyed(this.#destroyRef));
1094
+ countdown$.subscribe({
1095
+ complete: () => { },
1096
+ });
1097
+ }
1098
+ stopDeletion(id) {
1099
+ if (this.countdownSeconds[id]) {
1100
+ this.countdownSeconds[id]?.stop$.next();
1101
+ delete this.countdownSeconds[id];
1102
+ }
1103
+ }
1104
+ formDeleteInput(item) {
1105
+ this.deleteInput.emit(item);
1106
+ }
1107
+ dropItems(event) {
1108
+ this.reorderItems.emit(event);
1109
+ }
1110
+ editInput(input) {
1111
+ this.editMultipleInput.emit(input);
1112
+ }
1113
+ toggleLabel(item) {
1114
+ this.showItemAsLabel.emit(item);
1115
+ }
1116
+ toggleFunction(func, _inputId) {
1117
+ const addFunction = {
1118
+ id: v4(),
1119
+ inputId: this.activeInput,
1120
+ func,
1121
+ };
1122
+ this.addFunction.emit(addFunction);
1123
+ }
1124
+ selectedFunction(func) {
1125
+ return this.inputConfig()?.calculateListFunctions?.find((f) => f.inputId === this.activeInput && f.func === func);
1126
+ }
1127
+ closeMultipleInput() {
1128
+ if (this.areYouSure) {
1129
+ this.formBuilderFunctions()?.multipleInputToggleForm(this.inputConfig().id, false);
1130
+ this.areYouSure = false;
1131
+ return;
1132
+ }
1133
+ this.areYouSure = true;
1134
+ }
1135
+ static { this.ɵfac = function MultipleInputTableEditComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MultipleInputTableEditComponent)(); }; }
1136
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MultipleInputTableEditComponent, selectors: [["lib-multiple-input-table-edit"]], inputs: { inputConfig: [1, "inputConfig"], editorMode: [1, "editorMode"], formGroup: [1, "formGroup"], formBuilderFunctions: [1, "formBuilderFunctions"] }, outputs: { onSaveMultipleInputForm: "onSaveMultipleInputForm", editMultipleInput: "editMultipleInput", deleteInput: "deleteInput", showItemAsLabel: "showItemAsLabel", addFunction: "addFunction", reorderItems: "reorderItems" }, decls: 11, vars: 3, consts: [["InputList", "cdkDropList"], ["calculationMenu", "matMenu"], ["appearance", "outlined", 1, "edit-card", "mat-elevation-z4"], ["cdkDropList", "", 1, "list", "row", 3, "cdkDropListDropped", "cdkDropListData"], [1, "tree-instructions"], ["matMenuContent", ""], [1, "box", 3, "class"], ["cdkDrag", "", 1, "box", 3, "inputCardElevated", "inputCard", "class"], ["cdkDrag", "", 1, "box", 3, "mouseover", "cdkDragStarted", "cdkDragReleased"], [4, "ngComponentOutlet", "ngComponentOutletInputs"], [1, "input-actions"], [1, "spacer"], ["mat-icon-button", "", 3, "click", "matTooltip"], ["color", "warn", "mat-stroked-button", ""], ["mat-icon-button", "", 3, "matTooltip"], [1, "action-divider"], ["mat-icon-button", "", 3, "matMenuTriggerFor", "matMenuTriggerData", "matTooltip"], ["mat-icon-button", "", 3, "click", "color", "matTooltip"], ["color", "warn", "mat-stroked-button", "", 3, "mouseover", "mouseout", "click"], [1, "countdown-button"], ["color", "primary", 1, "cancelProgress", 3, "value"], [1, "box"], ["color", "primary", 1, "info-icon"], ["align", "end", 1, "edit-card-actions"], ["mat-button", "", 3, "click", "color"], ["color", "primary", "mat-raised-button", "", 1, "save-button", 3, "disabled"], ["color", "primary", "mat-raised-button", "", 1, "save-button", 3, "click", "disabled"], ["mat-menu-item", ""], ["mat-menu-item", "", 3, "click"], ["color", "primary"]], template: function MultipleInputTableEditComponent_Template(rf, ctx) { if (rf & 1) {
1137
+ i0.ɵɵelementStart(0, "mat-card", 2)(1, "mat-card-content")(2, "div", 3, 0);
1138
+ i0.ɵɵlistener("cdkDropListDropped", function MultipleInputTableEditComponent_Template_div_cdkDropListDropped_2_listener($event) { return ctx.dropItems($event); });
1139
+ i0.ɵɵrepeaterCreate(4, MultipleInputTableEditComponent_For_5_Template, 3, 1, "ng-container", null, _forTrack0);
1140
+ i0.ɵɵconditionalCreate(6, MultipleInputTableEditComponent_Conditional_6_Template, 8, 0, "div", 4);
1141
+ i0.ɵɵelementEnd()();
1142
+ i0.ɵɵconditionalCreate(7, MultipleInputTableEditComponent_Conditional_7_Template, 5, 5);
1143
+ i0.ɵɵelementEnd();
1144
+ i0.ɵɵelementStart(8, "mat-menu", null, 1);
1145
+ i0.ɵɵtemplate(10, MultipleInputTableEditComponent_ng_template_10_Template, 2, 0, "ng-template", 5);
1146
+ i0.ɵɵelementEnd();
1147
+ } if (rf & 2) {
1148
+ i0.ɵɵadvance(2);
1149
+ i0.ɵɵproperty("cdkDropListData", ctx.innerInputs());
1150
+ i0.ɵɵadvance(2);
1151
+ i0.ɵɵrepeater(ctx.innerInputs());
1152
+ i0.ɵɵadvance(2);
1153
+ i0.ɵɵconditional(!!ctx.editorMode() && ctx.innerInputs().length === 0 ? 6 : -1);
1154
+ i0.ɵɵadvance();
1155
+ i0.ɵɵconditional(ctx.innerInputs().length !== 0 ? 7 : -1);
1156
+ } }, dependencies: [CommonModule, i3$1.NgComponentOutlet, DragDropModule, i1$1.CdkDropList, i1$1.CdkDrag, MatButtonModule, i2.MatButton, i2.MatIconButton, MatCardModule, i3$2.MatCard, i3$2.MatCardActions, i3$2.MatCardContent, MatDividerModule, i6$1.MatDivider, MatIconModule, i3.MatIcon, MatMenuModule, i6.MatMenu, i6.MatMenuItem, i6.MatMenuContent, i6.MatMenuTrigger, MatProgressSpinnerModule, i4$1.MatProgressSpinner, MatTooltipModule, i5$1.MatTooltip], styles: [".edit-card[_ngcontent-%COMP%]{margin-top:.5rem;background:var(--mat-sys-surface-container, #f3edf7);border-radius:12px}.inputCardElevated[_ngcontent-%COMP%]{background:var(--mat-sys-surface, #fef7ff);box-shadow:var(--mdc-elevated-card-container-elevation);transition:box-shadow .3s cubic-bezier(.16,1,.3,1)}.inputCard[_ngcontent-%COMP%]{box-shadow:none;transition:box-shadow .3s cubic-bezier(.16,1,.3,1)}.list[_ngcontent-%COMP%]{min-height:60px}.box[_ngcontent-%COMP%]{padding:.25rem;cursor:move}.input-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.125rem}.action-divider[_ngcontent-%COMP%]{width:1px;align-self:stretch;margin:.25rem;background:color-mix(in srgb,var(--mat-sys-outline, #79747e) 25%,transparent)}.countdown-button[_ngcontent-%COMP%]{display:flex;align-items:center}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border:none;border-radius:8px;box-shadow:0 5px 5px -3px color-mix(in srgb,var(--mat-sys-shadow, #000) 20%,transparent),0 8px 10px 1px color-mix(in srgb,var(--mat-sys-shadow, #000) 14%,transparent),0 3px 14px 2px color-mix(in srgb,var(--mat-sys-shadow, #000) 12%,transparent)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.box[_ngcontent-%COMP%]:last-child{border:none}.list.cdk-drop-list-dragging[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cancelProgress[_ngcontent-%COMP%]{height:24px!important;width:24px!important;margin-right:.3125rem}.edit-card-actions[_ngcontent-%COMP%]{gap:.5rem;padding:.5rem .75rem .75rem}.confirm-leave[_ngcontent-%COMP%]{text-decoration:underline}.save-button[_ngcontent-%COMP%]{min-width:10em}.tree-instructions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:.75rem;background:color-mix(in srgb,var(--mat-sys-primary, #6750a4) 6%,transparent);border:1px solid color-mix(in srgb,var(--mat-sys-primary, #6750a4) 14%,transparent);border-radius:8px;margin-bottom:1rem;font-size:.8125rem;color:var(--mat-sys-on-surface-variant, #49454f)}.info-icon[_ngcontent-%COMP%]{min-width:38px!important;display:block;margin-top:4px;margin-bottom:auto}"], changeDetection: 0 }); }
1157
+ }
1158
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MultipleInputTableEditComponent, [{
1159
+ type: Component,
1160
+ args: [{ selector: 'lib-multiple-input-table-edit', imports: [
1161
+ CommonModule,
1162
+ DragDropModule,
1163
+ MatButtonModule,
1164
+ MatCardModule,
1165
+ MatDividerModule,
1166
+ MatIconModule,
1167
+ MatMenuModule,
1168
+ MatProgressSpinnerModule,
1169
+ MatTooltipModule,
1170
+ ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, template: "<mat-card appearance=\"outlined\" class=\"edit-card mat-elevation-z4\">\n <mat-card-content>\n <div class=\"list row\" (cdkDropListDropped)=\"dropItems($event)\"\n [cdkDropListData]=\"innerInputs()\" cdkDropList #InputList=\"cdkDropList\">\n @for (innerInput of innerInputs(); track innerInput.id) {\n <ng-container>\n @if (editorMode()) {\n @if (!!formGroup()) {\n <mat-card (mouseover)=\"activeInput = innerInput.id\" cdkDrag\n (cdkDragStarted)=\"dragging = true\" (cdkDragReleased)=\"dragging = false\"\n [class.inputCardElevated]=\"activeInput === innerInput.id\"\n [class.inputCard]=\"activeInput !== innerInput.id\"\n [class]=\"'col-md-' + (dragging ? '12' : innerInput.colSize)\" class=\"box\">\n <ng-container *ngComponentOutlet=\"InputComponent;\n inputs: {\n inputConfig: innerInput,\n formGroup: formGroup(),\n formBuilderFunctions: formBuilderFunctions(),\n }\">\n </ng-container>\n @if (activeInput === innerInput.id) {\n <mat-card-actions class=\"input-actions\">\n <span class=\"spacer\"></span>\n <button [matTooltip]=\"'Edit Input: ' + innerInput.label\"\n (click)=\"editInput(innerInput)\" mat-icon-button>\n <mat-icon>edit</mat-icon>\n </button>\n @if (!!inputWillBeRemovedIn(innerInput.id)) {\n <button (mouseover)=\"overId = innerInput.id\" (mouseout)=\"overId = null\"\n (click)=\"removeInput(innerInput)\" color=\"warn\" mat-stroked-button>\n <div class=\"countdown-button\">\n <mat-progress-spinner class=\"cancelProgress\" color=\"primary\"\n [value]=\"((inputWillBeRemovedIn(innerInput.id) || 0) / 5) * 100\">\n </mat-progress-spinner>\n {{ overId === innerInput.id ? 'Click to cancel' : 'Deleting in' }}\n {{ inputWillBeRemovedIn(innerInput.id) }}\n </div>\n </button>\n } @else if (inputConfig().systemDefault !== true && innerInput.systemDefault !== true) {\n <button [matTooltip]=\"'Delete input ' + innerInput.label\"\n (click)=\"removeInput(innerInput)\" mat-icon-button>\n <mat-icon>delete</mat-icon>\n </button>\n }\n <span class=\"action-divider\"></span>\n @if (!!innerInput.showAsLabel && innerInput.dataType === 'number' || !!innerInput.showAsLabel && innerInput.type === 'number') {\n <button\n [matMenuTriggerFor]=\"calculationMenu\"\n [matMenuTriggerData]=\"{inputId:innerInput.originalId || innerInput.id}\"\n [matTooltip]=\"'calculate sum,avg,min,max'\"\n mat-icon-button>\n <mat-icon>calculate</mat-icon>\n </button>\n }\n <button [color]=\"innerInput.showAsLabel ? 'primary' : ''\"\n (click)=\"toggleLabel(innerInput)\"\n [matTooltip]=\"innerInput.showAsLabel ? 'Hide as label' : 'Show as label'\"\n mat-icon-button>\n <mat-icon>label</mat-icon>\n </button>\n <span class=\"spacer\"></span>\n </mat-card-actions>\n }\n </mat-card>\n }\n } @else {\n <div [class]=\"'col-md-' + (dragging ? '12' : innerInput.colSize)\" class=\"box\">\n <ng-container *ngComponentOutlet=\"InputComponent;\n inputs: {\n inputConfig: innerInput,\n formGroup: formGroup(),\n formBuilderFunctions: formBuilderFunctions(),\n }\">\n </ng-container>\n </div>\n }\n </ng-container>\n }\n @if (!!editorMode() && innerInputs().length === 0) {\n <div class=\"tree-instructions\">\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\n <span>\n <strong>Add Form Input</strong>\n <br>\n Manage your list by adding, editing, or removing items. Each item is customizable through a form.\n </span>\n </div>\n }\n </div>\n </mat-card-content>\n @if (innerInputs().length !== 0) {\n <mat-divider></mat-divider>\n <mat-card-actions align=\"end\" class=\"edit-card-actions\">\n <button [color]=\"areYouSure ? 'warn' : ''\"\n [class.confirm-leave]=\"areYouSure\" mat-button\n (click)=\"closeMultipleInput()\">\n {{ areYouSure ? \"leave without saving\" : \"cancel\" }}\n </button>\n @if (!inputConfig().readonly) {\n <button [disabled]=\"!!formInvalid()\" class=\"save-button\" color=\"primary\"\n (click)=\"saveMultipleInputForm()\" mat-raised-button>\n {{ rowInUpdate() ? \"Update\" : \"Save\" }}\n </button>\n }\n </mat-card-actions>\n }\n</mat-card>\n\n\n<mat-menu #calculationMenu=\"matMenu\">\n <ng-template matMenuContent let-inputId=\"sectionId\">\n @for (func of calculationFunctions; track func) {\n <button (click)=\"toggleFunction(func, inputId)\" mat-menu-item>\n {{ func }}\n @if (selectedFunction(func)) {\n <mat-icon color=\"primary\">check_circle</mat-icon>\n }\n </button>\n }\n </ng-template>\n</mat-menu>\n", styles: [".edit-card{margin-top:.5rem;background:var(--mat-sys-surface-container, #f3edf7);border-radius:12px}.inputCardElevated{background:var(--mat-sys-surface, #fef7ff);box-shadow:var(--mdc-elevated-card-container-elevation);transition:box-shadow .3s cubic-bezier(.16,1,.3,1)}.inputCard{box-shadow:none;transition:box-shadow .3s cubic-bezier(.16,1,.3,1)}.list{min-height:60px}.box{padding:.25rem;cursor:move}.input-actions{display:flex;align-items:center;gap:.125rem}.action-divider{width:1px;align-self:stretch;margin:.25rem;background:color-mix(in srgb,var(--mat-sys-outline, #79747e) 25%,transparent)}.countdown-button{display:flex;align-items:center}.cdk-drag-preview{box-sizing:border-box;border:none;border-radius:8px;box-shadow:0 5px 5px -3px color-mix(in srgb,var(--mat-sys-shadow, #000) 20%,transparent),0 8px 10px 1px color-mix(in srgb,var(--mat-sys-shadow, #000) 14%,transparent),0 3px 14px 2px color-mix(in srgb,var(--mat-sys-shadow, #000) 12%,transparent)}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.box:last-child{border:none}.list.cdk-drop-list-dragging .box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cancelProgress{height:24px!important;width:24px!important;margin-right:.3125rem}.edit-card-actions{gap:.5rem;padding:.5rem .75rem .75rem}.confirm-leave{text-decoration:underline}.save-button{min-width:10em}.tree-instructions{display:flex;align-items:center;gap:.5rem;padding:.75rem;background:color-mix(in srgb,var(--mat-sys-primary, #6750a4) 6%,transparent);border:1px solid color-mix(in srgb,var(--mat-sys-primary, #6750a4) 14%,transparent);border-radius:8px;margin-bottom:1rem;font-size:.8125rem;color:var(--mat-sys-on-surface-variant, #49454f)}.info-icon{min-width:38px!important;display:block;margin-top:4px;margin-bottom:auto}\n"] }]
1171
+ }], null, { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], editorMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "editorMode", required: false }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: false }] }], formBuilderFunctions: [{ type: i0.Input, args: [{ isSignal: true, alias: "formBuilderFunctions", required: false }] }], onSaveMultipleInputForm: [{ type: i0.Output, args: ["onSaveMultipleInputForm"] }], editMultipleInput: [{ type: i0.Output, args: ["editMultipleInput"] }], deleteInput: [{ type: i0.Output, args: ["deleteInput"] }], showItemAsLabel: [{ type: i0.Output, args: ["showItemAsLabel"] }], addFunction: [{ type: i0.Output, args: ["addFunction"] }], reorderItems: [{ type: i0.Output, args: ["reorderItems"] }] }); })();
1172
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MultipleInputTableEditComponent, { className: "MultipleInputTableEditComponent", filePath: "lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table-edit/multiple-input-table-edit.component.ts", lineNumber: 52 }); })();
1173
+
1174
+ function getCaluculatedTableData(inputConfig, data) {
1175
+ try {
1176
+ if (!Array.isArray(data) || !inputConfig)
1177
+ return data;
1178
+ const input = inputConfig;
1179
+ const funcs = (input?.calculateListFunctions || []);
1180
+ const allUniqueFunctionNames = [
1181
+ ...new Set(funcs.map((f) => f.func)),
1182
+ ];
1183
+ const calculatedData = allUniqueFunctionNames.map((func) => {
1184
+ const newCalculatedData = {
1185
+ SYSTEM_KEY_PROPERTY_FOR_MULTIPLE_INPUTS_CALCULATION_FUNCTION: func,
1186
+ };
1187
+ funcs.filter((f) => f.func === func).forEach((f) => {
1188
+ const arrayValues = data.map((d) => Number(d[f.inputId]));
1189
+ newCalculatedData[f.inputId] = calculateListOveralFunctions(func, arrayValues);
1190
+ });
1191
+ return newCalculatedData;
1192
+ });
1193
+ return [...data, ...calculatedData];
1194
+ }
1195
+ catch (error) {
1196
+ return data;
1197
+ }
1198
+ }
1199
+
1200
+ function MultipleInputTableComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1201
+ const _r1 = i0.ɵɵgetCurrentView();
1202
+ i0.ɵɵelementStart(0, "lib-multiple-input-table-edit", 3);
1203
+ i0.ɵɵlistener("editMultipleInput", function MultipleInputTableComponent_Conditional_1_Template_lib_multiple_input_table_edit_editMultipleInput_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.editInput($event)); })("deleteInput", function MultipleInputTableComponent_Conditional_1_Template_lib_multiple_input_table_edit_deleteInput_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.deleteItemInput($event)); })("addFunction", function MultipleInputTableComponent_Conditional_1_Template_lib_multiple_input_table_edit_addFunction_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.addFunction($event)); })("showItemAsLabel", function MultipleInputTableComponent_Conditional_1_Template_lib_multiple_input_table_edit_showItemAsLabel_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.showItemAsLabel($event)); })("onSaveMultipleInputForm", function MultipleInputTableComponent_Conditional_1_Template_lib_multiple_input_table_edit_onSaveMultipleInputForm_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.saveMultipleInputForm()); })("reorderItems", function MultipleInputTableComponent_Conditional_1_Template_lib_multiple_input_table_edit_reorderItems_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.reorderItems($event)); });
1204
+ i0.ɵɵelementEnd();
1205
+ } if (rf & 2) {
1206
+ const ctx_r1 = i0.ɵɵnextContext();
1207
+ i0.ɵɵproperty("editorMode", ctx_r1.editorMode())("formBuilderFunctions", ctx_r1.formBuilderFunctions())("formGroup", ctx_r1.parentFormGroup)("inputConfig", ctx_r1.inputConfig());
1208
+ } }
1209
+ function MultipleInputTableComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
1210
+ const _r3 = i0.ɵɵgetCurrentView();
1211
+ i0.ɵɵelementStart(0, "section", 2)(1, "button", 4);
1212
+ i0.ɵɵlistener("click", function MultipleInputTableComponent_Conditional_2_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.generateMultipleInputForm()); });
1213
+ i0.ɵɵelementStart(2, "mat-icon", 5);
1214
+ i0.ɵɵtext(3);
1215
+ i0.ɵɵelementEnd();
1216
+ i0.ɵɵelementStart(4, "span", 6);
1217
+ i0.ɵɵtext(5);
1218
+ i0.ɵɵelementEnd()()();
1219
+ } if (rf & 2) {
1220
+ const ctx_r1 = i0.ɵɵnextContext();
1221
+ i0.ɵɵadvance(3);
1222
+ i0.ɵɵtextInterpolate(ctx_r1.handleIcon());
1223
+ i0.ɵɵadvance(2);
1224
+ i0.ɵɵtextInterpolate(ctx_r1.handleLabel);
1225
+ } }
1226
+ const customInputConfig = {
1227
+ controlType: 'app-multiple-input-table',
1228
+ nextId: 0,
1229
+ };
1230
+ class MultipleInputTableComponent extends BaseCustomInput {
1231
+ #destroyRef;
1232
+ constructor() {
1233
+ super(inject(NgControl, { self: true, optional: true }), inject(ElementRef), customInputConfig);
1234
+ this.editorMode = input(false, ...(ngDevMode ? [{ debugName: "editorMode" }] : /* istanbul ignore next */ []));
1235
+ this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
1236
+ this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
1237
+ this.formBuilderFunctions = input(undefined, ...(ngDevMode ? [{ debugName: "formBuilderFunctions" }] : /* istanbul ignore next */ []));
1238
+ this.#destroyRef = inject(DestroyRef);
1239
+ this.rowInViewOnly = undefined;
1240
+ this.listenToValueChanges();
1241
+ }
1242
+ /**
1243
+ * Manages custom validation errors on the form control.
1244
+ * Intended to be called from the ngDoCheck lifecycle hook.
1245
+ * This function handles both the 'required' error and the new
1246
+ * 'multipleInputListMissingSomeFields' custom error.
1247
+ */
1248
+ checkValidationsAnErrors() {
1249
+ const control = this.ngControl?.control;
1250
+ // 1. Early exit if there's no form control to work with.
1251
+ if (!control) {
1252
+ return;
1253
+ }
1254
+ // --- DEFINE THE DESIRED ERROR STATE ---
1255
+ // 2. Determine if the custom "multiple fields" error should exist.
1256
+ let shouldHaveCustomError = false;
1257
+ const formInputs = this.inputConfig()?.formInputs;
1258
+ if (Array.isArray(formInputs) && Array.isArray(this.value)) {
1259
+ const requiredFieldIds = formInputs
1260
+ .filter(i => i.required)
1261
+ .map(i => i.id);
1262
+ if (requiredFieldIds.length > 0) {
1263
+ const configId = this.inputConfig().id;
1264
+ shouldHaveCustomError = this.value.some(item => requiredFieldIds.some(id => this._isNilOrEmpty(item?.[`${configId}.${id}`])));
1265
+ }
1266
+ }
1267
+ // 3. Determine if the standard 'required' error should exist.
1268
+ const shouldHaveRequiredError = this.required && this._isNilOrEmpty(this.value);
1269
+ // --- APPLY THE ERROR STATE TO THE CONTROL ---
1270
+ // 4. Preserve other errors that might be on the control (e.g., minlength, pattern).
1271
+ const newErrors = { ...control.errors };
1272
+ delete newErrors['required'];
1273
+ delete newErrors['multipleInputListMissingSomeFields'];
1274
+ // 5. Add our managed errors back if their conditions are met.
1275
+ if (shouldHaveRequiredError) {
1276
+ newErrors['required'] = true;
1277
+ }
1278
+ if (shouldHaveCustomError) {
1279
+ newErrors['multipleInputListMissingSomeFields'] = { value: true }; // Or simply 'true'
1280
+ }
1281
+ // 6. Finalize the error object. If no errors, it must be null.
1282
+ const finalErrors = Object.keys(newErrors).length > 0 ? newErrors : null;
1283
+ // 7. IMPORTANT: Only update the control if the errors have actually changed.
1284
+ // This prevents infinite loops within ngDoCheck. A simple stringify is a
1285
+ // dependency-free way to compare the error objects.
1286
+ if (JSON.stringify(control.errors) !== JSON.stringify(finalErrors)) {
1287
+ control.setErrors(finalErrors);
1288
+ }
1289
+ }
1290
+ get empty() {
1291
+ return !this.value;
1292
+ }
1293
+ get shouldLabelFloat() {
1294
+ return this.focused || !this.empty;
1295
+ }
1296
+ get errorState() {
1297
+ // 1. Check for standard validation errors from Angular's Forms API.
1298
+ const hasStandardError = !!this.ngControl?.errors;
1299
+ // 2. Check for custom validation errors specific to 'IMultiple' type.
1300
+ let hasCustomError = false;
1301
+ const formInputs = this.inputConfig()?.formInputs;
1302
+ // This custom logic only runs if the config and value are the expected array types.
1303
+ if (Array.isArray(formInputs) && Array.isArray(this.value)) {
1304
+ const requiredFieldIds = formInputs
1305
+ .filter(input => input.required)
1306
+ .map(input => input.id);
1307
+ // The custom error is true if any item in our value array is missing
1308
+ // a value for any of its required sub-fields.
1309
+ if (requiredFieldIds.length > 0) {
1310
+ hasCustomError = this.value.some(item => requiredFieldIds.some(id => this._isNilOrEmpty(item?.[`${this.inputConfig().id}.${id}`])));
1311
+ }
1312
+ }
1313
+ // 3. The final error state is true if *any* validation fails,
1314
+ // AND the control has been "touched" by the user.
1315
+ return (hasStandardError || hasCustomError) && this.touched;
1316
+ }
1317
+ _isNilOrEmpty(value) {
1318
+ return value === null || value === undefined || value === '';
1319
+ }
1320
+ listenToValueChanges() {
1321
+ this.stateChanges
1322
+ .pipe(takeUntilDestroyed(this.#destroyRef))
1323
+ .subscribe(() => {
1324
+ this.checkItemList();
1325
+ });
1326
+ }
1327
+ checkItemList() {
1328
+ try {
1329
+ if (this.value) {
1330
+ const config = this.inputConfig();
1331
+ const TableData = (config.groupBy?.length ?? 0) > 0
1332
+ ? addGroups(this.value, config.groupBy)
1333
+ : this.value;
1334
+ const data = getCaluculatedTableData(config, TableData);
1335
+ if (!this.dataSource) {
1336
+ this.dataSource = new MatTableDataSource(data);
1337
+ this.dataSource;
1338
+ }
1339
+ else {
1340
+ this.dataSource.data = data;
1341
+ }
1342
+ }
1343
+ return true;
1344
+ }
1345
+ catch {
1346
+ return false;
1347
+ }
1348
+ }
1349
+ multipleInputRemoveItem(item) {
1350
+ if (!item)
1351
+ return;
1352
+ if (!this.value)
1353
+ return;
1354
+ this.value = this.value.filter((i) => !_isEqual(i, item));
1355
+ this.applyOptionsTo = undefined;
1356
+ this.onChange(this.value);
1357
+ this.stateChanges.next();
1358
+ }
1359
+ generateMultipleInputForm() {
1360
+ const id = this.inputConfig()?.id;
1361
+ if (!id)
1362
+ return;
1363
+ this.formBuilderFunctions()?.multipleInputToggleForm(id, true);
1364
+ }
1365
+ editRow(rowId) {
1366
+ if (!rowId) {
1367
+ throw new Error('Row id not provided');
1368
+ }
1369
+ const config = this.inputConfig();
1370
+ const fbf = this.formBuilderFunctions();
1371
+ if (!fbf || !config)
1372
+ return;
1373
+ fbf.multipleInputEditRow(config.id, rowId);
1374
+ // if( !this.inputConfig?.multipleInputController){
1375
+ // return
1376
+ // }
1377
+ // this.inputConfig.multipleInputInEditId = this.applyOptionsTo.id;
1378
+ // this.inputConfig.applyMultipleInputValuesToForm(
1379
+ // this.applyOptionsTo
1380
+ // );
1381
+ }
1382
+ copy(rowId) {
1383
+ const config = this.inputConfig();
1384
+ const fbf = this.formBuilderFunctions();
1385
+ if (!fbf || !config)
1386
+ return;
1387
+ fbf.multipleInputDuplicateRow(config.id, rowId);
1388
+ // this.generateMultipleInputForm();
1389
+ // this.inputConfig?.applyMultipleInputValuesToForm(
1390
+ // this.applyOptionsTo
1391
+ // );
1392
+ // this.applyOptionsTo = undefined;
1393
+ }
1394
+ get handleLabel() {
1395
+ return this.inputConfig()?.handleLabel;
1396
+ }
1397
+ handleIcon() {
1398
+ // NOTE(phase-4): `handleIcon` is declared on `IBasicFormInput` but not on `IMultiple` directly;
1399
+ // narrow through `ITowerStepColumn` (which extends FormColumnInputs) and provide a string fallback.
1400
+ const cfg = this.inputConfig();
1401
+ return cfg?.handleIcon || 'add';
1402
+ }
1403
+ saveMultipleInputForm() {
1404
+ this.formBuilderFunctions()?.multipleInputSaveForm(this.inputConfig().id);
1405
+ // const value: any = this.inputConfig?.multipleInputFormValue();
1406
+ // value['id'] = uuidv4();
1407
+ // if (!this.inputConfig) {
1408
+ // return
1409
+ // }
1410
+ // const previousValue = this.value
1411
+ // if (!previousValue) {
1412
+ // this.value = [value];
1413
+ // this.inputConfig.multipleInputController = undefined;
1414
+ // } else {
1415
+ // if (this.inputConfig?.multipleInputInEditId) {
1416
+ // let inEdit = previousValue.find(
1417
+ // (i: { id: any }) =>
1418
+ // i.id === this.inputConfig?.multipleInputInEditId
1419
+ // );
1420
+ // Object.keys(inEdit).every((s) => {
1421
+ // s;
1422
+ // inEdit[s] = value[s];
1423
+ // return !!inEdit[s];
1424
+ // });
1425
+ // this.value = [...previousValue],
1426
+ // this.inputConfig.multipleInputController = undefined;
1427
+ // } else {
1428
+ // this.value = [...previousValue, value];
1429
+ // this.inputConfig.multipleInputController = undefined;
1430
+ // }
1431
+ // }
1432
+ // this.onChange(this.value);
1433
+ // this.stateChanges.next();
1434
+ // this.checkItemList(this.value || []);
1435
+ // return
1436
+ }
1437
+ editInput(input) {
1438
+ const fbf = this.formBuilderFunctions();
1439
+ if (typeof fbf?.editInput !== 'function') {
1440
+ throw new Error('editInput function not defined in formBuilderFunctions');
1441
+ }
1442
+ fbf.editInput(input);
1443
+ }
1444
+ deleteItemInput(input) {
1445
+ this.formBuilderFunctions()?.deleteInput(input);
1446
+ }
1447
+ showItemAsLabel(input) {
1448
+ this.formBuilderFunctions()?.multipleInputToggleLabel(input);
1449
+ }
1450
+ addFunction(func) {
1451
+ this.formBuilderFunctions()?.addFunction(func, this.inputConfig()?.id);
1452
+ }
1453
+ // `FormBuilderFunctions.reorderItems` is now generic over the row shape; the
1454
+ // container/data slots stay `unknown` (opaque drag payload).
1455
+ reorderItems(event) {
1456
+ const config = this.inputConfig();
1457
+ const fbf = this.formBuilderFunctions();
1458
+ if (!fbf || !config)
1459
+ return;
1460
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Phase-4 TODO: deduplicate @angular/cdk peer dep in typings package; CdkDragDrop types are nominally distinct across copies.
1461
+ fbf.reorderItems(event, config.id);
1462
+ }
1463
+ get parentFormGroup() {
1464
+ return this.ngControl?.control?.parent;
1465
+ }
1466
+ get canAddRecords() {
1467
+ const config = this.inputConfig();
1468
+ if (!config)
1469
+ return false;
1470
+ //NOTE: Temporary backward compatibility for older versions of the config that might not have the new property
1471
+ if (!config.multipleInputAvailableOperations)
1472
+ return true;
1473
+ return config.multipleInputAvailableOperations?.includes(MultipleInputAvailableOperations.Add);
1474
+ }
1475
+ static { this.ɵfac = function MultipleInputTableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MultipleInputTableComponent)(); }; }
1476
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MultipleInputTableComponent, selectors: [["lib-multiple-input-table"]], inputs: { editorMode: [1, "editorMode"], formGroup: [1, "formGroup"], inputConfig: [1, "inputConfig"], formBuilderFunctions: [1, "formBuilderFunctions"] }, features: [i0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: MultipleInputTableComponent }]), i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 6, consts: [[3, "onEditItem", "showItemAsLabel", "onDeleteItem", "onCopy", "onApplyOptionsTo", "inputConfig", "dataSource", "applyOptionsTo", "formGroup"], [3, "editorMode", "formBuilderFunctions", "formGroup", "inputConfig"], [1, "add-row-bar"], [3, "editMultipleInput", "deleteInput", "addFunction", "showItemAsLabel", "onSaveMultipleInputForm", "reorderItems", "editorMode", "formBuilderFunctions", "formGroup", "inputConfig"], ["mat-stroked-button", "", 1, "add-row-button", 3, "click"], [1, "add-row-icon"], [1, "add-row-label"]], template: function MultipleInputTableComponent_Template(rf, ctx) { if (rf & 1) {
1477
+ i0.ɵɵelementStart(0, "lib-multiple-input-table-view", 0);
1478
+ i0.ɵɵlistener("onEditItem", function MultipleInputTableComponent_Template_lib_multiple_input_table_view_onEditItem_0_listener($event) { return ctx.editRow($event); })("showItemAsLabel", function MultipleInputTableComponent_Template_lib_multiple_input_table_view_showItemAsLabel_0_listener() { return ctx.showItemAsLabel(ctx.inputConfig()); })("onDeleteItem", function MultipleInputTableComponent_Template_lib_multiple_input_table_view_onDeleteItem_0_listener() { return ctx.multipleInputRemoveItem(ctx.applyOptionsTo); })("onCopy", function MultipleInputTableComponent_Template_lib_multiple_input_table_view_onCopy_0_listener($event) { return ctx.copy($event); })("onApplyOptionsTo", function MultipleInputTableComponent_Template_lib_multiple_input_table_view_onApplyOptionsTo_0_listener($event) { return ctx.applyOptionsTo = $event; });
1479
+ i0.ɵɵelementEnd();
1480
+ i0.ɵɵconditionalCreate(1, MultipleInputTableComponent_Conditional_1_Template, 1, 4, "lib-multiple-input-table-edit", 1);
1481
+ i0.ɵɵconditionalCreate(2, MultipleInputTableComponent_Conditional_2_Template, 6, 2, "section", 2);
1482
+ } if (rf & 2) {
1483
+ i0.ɵɵproperty("inputConfig", ctx.inputConfig())("dataSource", ctx.dataSource)("applyOptionsTo", ctx.applyOptionsTo)("formGroup", ctx.parentFormGroup);
1484
+ i0.ɵɵadvance();
1485
+ i0.ɵɵconditional(!!ctx.inputConfig().formIsOpen || !!ctx.rowInViewOnly ? 1 : -1);
1486
+ i0.ɵɵadvance();
1487
+ i0.ɵɵconditional(!ctx.inputConfig().readonly && !ctx.inputConfig().disabled && !ctx.inputConfig().formIsOpen && ctx.canAddRecords ? 2 : -1);
1488
+ } }, dependencies: [MatButtonModule, i2.MatButton, MatIconModule, i3.MatIcon, MultipleInputTableEditComponent,
1489
+ MultipleInputTableViewComponent], styles: [".table-container[_ngcontent-%COMP%]{position:relative;max-height:400px;overflow:auto}table[_ngcontent-%COMP%]{width:100%}.add-row-bar[_ngcontent-%COMP%]{margin-top:.5rem}.add-row-button[_ngcontent-%COMP%]{width:100%;min-height:2.25rem;display:inline-flex;align-items:center;justify-content:center;gap:.375rem;border:1px dashed color-mix(in srgb,var(--mat-sys-outline, #79747e) 60%,transparent);border-radius:8px;color:var(--mat-sys-on-surface-variant, #49454f);background:transparent;font-size:.8125rem;font-weight:500;letter-spacing:.01em;transition:border-color .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1),background .3s cubic-bezier(.16,1,.3,1)}.add-row-button[_ngcontent-%COMP%]:hover{border-color:var(--mat-sys-primary, #6750a4);color:var(--mat-sys-primary, #6750a4);background:color-mix(in srgb,var(--mat-sys-primary, #6750a4) 6%,transparent)}.add-row-button[_ngcontent-%COMP%]:focus-visible{border-style:solid;border-color:var(--mat-sys-primary, #6750a4);box-shadow:0 0 0 2px color-mix(in srgb,var(--mat-sys-primary, #6750a4) 25%,transparent)}.add-row-icon[_ngcontent-%COMP%]{font-size:1.125rem;width:1.125rem;height:1.125rem;line-height:1.125rem}.add-row-label[_ngcontent-%COMP%]{line-height:1}"], changeDetection: 0 }); }
1490
+ }
1491
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MultipleInputTableComponent, [{
1492
+ type: Component,
1493
+ args: [{ selector: 'lib-multiple-input-table', imports: [
1494
+ MatButtonModule,
1495
+ MatIconModule,
1496
+ MultipleInputTableEditComponent,
1497
+ MultipleInputTableViewComponent,
1498
+ ], providers: [{ provide: MatFormFieldControl, useExisting: MultipleInputTableComponent }], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, template: "<lib-multiple-input-table-view\n [inputConfig]=\"inputConfig()\"\n [dataSource]=\"dataSource\"\n [applyOptionsTo]=\"applyOptionsTo\"\n [formGroup]=\"parentFormGroup\"\n (onEditItem)=\"editRow($event)\"\n (showItemAsLabel)=\"showItemAsLabel(inputConfig())\"\n (onDeleteItem)=\"multipleInputRemoveItem(applyOptionsTo)\"\n (onCopy)=\"copy($event)\"\n (onApplyOptionsTo)=\"applyOptionsTo = $event\"\n></lib-multiple-input-table-view>\n\n@if (!!inputConfig().formIsOpen || !!rowInViewOnly) {\n <lib-multiple-input-table-edit\n [editorMode]=\"editorMode()\"\n (editMultipleInput)=\"editInput($event)\"\n (deleteInput)=\"deleteItemInput($event)\"\n (addFunction)=\"addFunction($event)\"\n (showItemAsLabel)=\"showItemAsLabel($event)\"\n (onSaveMultipleInputForm)=\"saveMultipleInputForm()\"\n (reorderItems)=\"reorderItems($event)\"\n [formBuilderFunctions]=\"formBuilderFunctions()\"\n [formGroup]=\"parentFormGroup\"\n [inputConfig]=\"inputConfig()\"\n ></lib-multiple-input-table-edit>\n}\n\n@if (!inputConfig().readonly && !inputConfig().disabled && !inputConfig().formIsOpen && canAddRecords) {\n <section class=\"add-row-bar\">\n <button class=\"add-row-button\" (click)=\"generateMultipleInputForm()\" mat-stroked-button>\n <mat-icon class=\"add-row-icon\">{{ handleIcon() }}</mat-icon>\n <span class=\"add-row-label\">{{ handleLabel }}</span>\n </button>\n </section>\n}\n", styles: [".table-container{position:relative;max-height:400px;overflow:auto}table{width:100%}.add-row-bar{margin-top:.5rem}.add-row-button{width:100%;min-height:2.25rem;display:inline-flex;align-items:center;justify-content:center;gap:.375rem;border:1px dashed color-mix(in srgb,var(--mat-sys-outline, #79747e) 60%,transparent);border-radius:8px;color:var(--mat-sys-on-surface-variant, #49454f);background:transparent;font-size:.8125rem;font-weight:500;letter-spacing:.01em;transition:border-color .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1),background .3s cubic-bezier(.16,1,.3,1)}.add-row-button:hover{border-color:var(--mat-sys-primary, #6750a4);color:var(--mat-sys-primary, #6750a4);background:color-mix(in srgb,var(--mat-sys-primary, #6750a4) 6%,transparent)}.add-row-button:focus-visible{border-style:solid;border-color:var(--mat-sys-primary, #6750a4);box-shadow:0 0 0 2px color-mix(in srgb,var(--mat-sys-primary, #6750a4) 25%,transparent)}.add-row-icon{font-size:1.125rem;width:1.125rem;height:1.125rem;line-height:1.125rem}.add-row-label{line-height:1}\n"] }]
1499
+ }], () => [], { editorMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "editorMode", required: false }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formBuilderFunctions: [{ type: i0.Input, args: [{ isSignal: true, alias: "formBuilderFunctions", required: false }] }] }); })();
1500
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MultipleInputTableComponent, { className: "MultipleInputTableComponent", filePath: "lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table/multiple-input-table.component.ts", lineNumber: 54 }); })();
1501
+ function addGroups(tableValue, groupBy) {
1502
+ throw new Error('Function not implemented.');
1503
+ }
1504
+
1505
+ function MultipleInputInputElementComponent_Conditional_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
1506
+ i0.ɵɵelement(0, "lib-multiple-input-table", 3);
1507
+ } if (rf & 2) {
1508
+ const inputConfig_r1 = i0.ɵɵnextContext();
1509
+ const ctx_r1 = i0.ɵɵnextContext();
1510
+ i0.ɵɵproperty("editorMode", ctx_r1.editorMode())("required", inputConfig_r1.required)("formGroup", ctx_r1.formGroup())("formBuilderFunctions", ctx_r1.formBuilderFunctions())("formControlName", inputConfig_r1.id)("inputConfig", inputConfig_r1);
1511
+ } }
1512
+ function MultipleInputInputElementComponent_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
1513
+ i0.ɵɵelementStart(0, "mat-hint", 4);
1514
+ i0.ɵɵtext(1);
1515
+ i0.ɵɵelementEnd();
1516
+ } if (rf & 2) {
1517
+ const inputConfig_r1 = i0.ɵɵnextContext();
1518
+ i0.ɵɵadvance();
1519
+ i0.ɵɵtextInterpolate1(" ", inputConfig_r1.temporaryHint || inputConfig_r1.hintLabel, " ");
1520
+ } }
1521
+ function MultipleInputInputElementComponent_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
1522
+ i0.ɵɵelementStart(0, "mat-error", 5);
1523
+ i0.ɵɵtext(1);
1524
+ i0.ɵɵelementEnd();
1525
+ } if (rf & 2) {
1526
+ const ctx_r1 = i0.ɵɵnextContext(2);
1527
+ i0.ɵɵadvance();
1528
+ i0.ɵɵtextInterpolate(ctx_r1.errorMessage());
1529
+ } }
1530
+ function MultipleInputInputElementComponent_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
1531
+ const _r3 = i0.ɵɵgetCurrentView();
1532
+ i0.ɵɵelementStart(0, "button", 12);
1533
+ i0.ɵɵlistener("click", function MultipleInputInputElementComponent_Conditional_1_Conditional_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const inputConfig_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(inputConfig_r1.canReload.emit()); });
1534
+ i0.ɵɵelementStart(1, "mat-icon");
1535
+ i0.ɵɵtext(2, "sync");
1536
+ i0.ɵɵelementEnd()();
1537
+ } }
1538
+ function MultipleInputInputElementComponent_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
1539
+ i0.ɵɵelementStart(0, "mat-icon", 7);
1540
+ i0.ɵɵtext(1);
1541
+ i0.ɵɵelementEnd();
1542
+ } if (rf & 2) {
1543
+ const inputConfig_r1 = i0.ɵɵnextContext();
1544
+ i0.ɵɵadvance();
1545
+ i0.ɵɵtextInterpolate(inputConfig_r1.prefixIcon);
1546
+ } }
1547
+ function MultipleInputInputElementComponent_Conditional_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
1548
+ i0.ɵɵelementStart(0, "mat-icon", 8);
1549
+ i0.ɵɵtext(1);
1550
+ i0.ɵɵelementEnd();
1551
+ } if (rf & 2) {
1552
+ const inputConfig_r1 = i0.ɵɵnextContext();
1553
+ i0.ɵɵadvance();
1554
+ i0.ɵɵtextInterpolate(inputConfig_r1.suffixIcon);
1555
+ } }
1556
+ function MultipleInputInputElementComponent_Conditional_1_Conditional_10_Template(rf, ctx) { if (rf & 1) {
1557
+ i0.ɵɵelementStart(0, "span", 9);
1558
+ i0.ɵɵtext(1);
1559
+ i0.ɵɵelementEnd();
1560
+ } if (rf & 2) {
1561
+ const inputConfig_r1 = i0.ɵɵnextContext();
1562
+ i0.ɵɵadvance();
1563
+ i0.ɵɵtextInterpolate(inputConfig_r1.prefixText);
1564
+ } }
1565
+ function MultipleInputInputElementComponent_Conditional_1_Conditional_11_Template(rf, ctx) { if (rf & 1) {
1566
+ i0.ɵɵelementStart(0, "span", 10);
1567
+ i0.ɵɵtext(1);
1568
+ i0.ɵɵelementEnd();
1569
+ } if (rf & 2) {
1570
+ const inputConfig_r1 = i0.ɵɵnextContext();
1571
+ i0.ɵɵadvance();
1572
+ i0.ɵɵtextInterpolate(inputConfig_r1.suffixText);
1573
+ } }
1574
+ function MultipleInputInputElementComponent_Conditional_1_Conditional_12_Template(rf, ctx) { if (rf & 1) {
1575
+ i0.ɵɵelementStart(0, "mat-hint", 11);
1576
+ i0.ɵɵtext(1);
1577
+ i0.ɵɵelementEnd();
1578
+ } if (rf & 2) {
1579
+ let tmp_3_0;
1580
+ const inputConfig_r1 = i0.ɵɵnextContext();
1581
+ const ctx_r1 = i0.ɵɵnextContext();
1582
+ i0.ɵɵadvance();
1583
+ i0.ɵɵtextInterpolate1(" ", (((tmp_3_0 = ctx_r1.formGroup().controls[inputConfig_r1.id]) == null ? null : tmp_3_0.value == null ? null : tmp_3_0.value.length) || 0) + "/" + inputConfig_r1.maxLength, " ");
1584
+ } }
1585
+ function MultipleInputInputElementComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1586
+ i0.ɵɵelementStart(0, "mat-form-field", 1)(1, "mat-label");
1587
+ i0.ɵɵtext(2);
1588
+ i0.ɵɵelement(3, "lib-t-form-input-status", 2);
1589
+ i0.ɵɵelementEnd();
1590
+ i0.ɵɵconditionalCreate(4, MultipleInputInputElementComponent_Conditional_1_Conditional_4_Template, 1, 6, "lib-multiple-input-table", 3);
1591
+ i0.ɵɵconditionalCreate(5, MultipleInputInputElementComponent_Conditional_1_Conditional_5_Template, 2, 1, "mat-hint", 4);
1592
+ i0.ɵɵconditionalCreate(6, MultipleInputInputElementComponent_Conditional_1_Conditional_6_Template, 2, 1, "mat-error", 5);
1593
+ i0.ɵɵconditionalCreate(7, MultipleInputInputElementComponent_Conditional_1_Conditional_7_Template, 3, 0, "button", 6);
1594
+ i0.ɵɵconditionalCreate(8, MultipleInputInputElementComponent_Conditional_1_Conditional_8_Template, 2, 1, "mat-icon", 7);
1595
+ i0.ɵɵconditionalCreate(9, MultipleInputInputElementComponent_Conditional_1_Conditional_9_Template, 2, 1, "mat-icon", 8);
1596
+ i0.ɵɵconditionalCreate(10, MultipleInputInputElementComponent_Conditional_1_Conditional_10_Template, 2, 1, "span", 9);
1597
+ i0.ɵɵconditionalCreate(11, MultipleInputInputElementComponent_Conditional_1_Conditional_11_Template, 2, 1, "span", 10);
1598
+ i0.ɵɵconditionalCreate(12, MultipleInputInputElementComponent_Conditional_1_Conditional_12_Template, 2, 1, "mat-hint", 11);
1599
+ i0.ɵɵelementEnd();
1600
+ } if (rf & 2) {
1601
+ const inputConfig_r1 = ctx;
1602
+ const ctx_r1 = i0.ɵɵnextContext();
1603
+ i0.ɵɵproperty("appearance", inputConfig_r1.appearance || "fill");
1604
+ i0.ɵɵadvance(2);
1605
+ i0.ɵɵtextInterpolate1(" ", inputConfig_r1.label, " ");
1606
+ i0.ɵɵadvance();
1607
+ i0.ɵɵproperty("inputConfig", inputConfig_r1);
1608
+ i0.ɵɵadvance();
1609
+ i0.ɵɵconditional(inputConfig_r1.id ? 4 : -1);
1610
+ i0.ɵɵadvance();
1611
+ i0.ɵɵconditional(inputConfig_r1.hintLabel || inputConfig_r1.temporaryHint ? 5 : -1);
1612
+ i0.ɵɵadvance();
1613
+ i0.ɵɵconditional(!!ctx_r1.errorMessage() ? 6 : -1);
1614
+ i0.ɵɵadvance();
1615
+ i0.ɵɵconditional((inputConfig_r1.canReload == null ? null : inputConfig_r1.canReload.canReload) ? 7 : -1);
1616
+ i0.ɵɵadvance();
1617
+ i0.ɵɵconditional(inputConfig_r1.prefixIcon ? 8 : -1);
1618
+ i0.ɵɵadvance();
1619
+ i0.ɵɵconditional(inputConfig_r1.suffixIcon && inputConfig_r1.id !== "password" ? 9 : -1);
1620
+ i0.ɵɵadvance();
1621
+ i0.ɵɵconditional(inputConfig_r1.prefixText ? 10 : -1);
1622
+ i0.ɵɵadvance();
1623
+ i0.ɵɵconditional(inputConfig_r1.suffixText ? 11 : -1);
1624
+ i0.ɵɵadvance();
1625
+ i0.ɵɵconditional(inputConfig_r1.maxLength && ctx_r1.formGroup() ? 12 : -1);
1626
+ } }
1627
+ /** Wraps a multi-row input table inside a `mat-form-field`. */
1628
+ class MultipleInputInputElementComponent {
1629
+ constructor() {
1630
+ this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
1631
+ this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
1632
+ this.editorMode = input(false, ...(ngDevMode ? [{ debugName: "editorMode" }] : /* istanbul ignore next */ []));
1633
+ this.formBuilderFunctions = input(undefined, ...(ngDevMode ? [{ debugName: "formBuilderFunctions" }] : /* istanbul ignore next */ []));
1634
+ this.reload = output();
1635
+ this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
1636
+ }
1637
+ static { this.ɵfac = function MultipleInputInputElementComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MultipleInputInputElementComponent)(); }; }
1638
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MultipleInputInputElementComponent, selectors: [["lib-multiple-input-input-element"]], inputs: { inputConfig: [1, "inputConfig"], formGroup: [1, "formGroup"], editorMode: [1, "editorMode"], formBuilderFunctions: [1, "formBuilderFunctions"] }, outputs: { reload: "reload" }, decls: 2, vars: 2, consts: [[3, "formGroup"], ["subscriptSizing", "dynamic", "floatLabel", "always", 1, "multiple-input-field", 3, "appearance"], [3, "inputConfig"], [3, "editorMode", "required", "formGroup", "formBuilderFunctions", "formControlName", "inputConfig"], [1, "inputHint"], ["matTooltipClass", "errorToolTip", 1, "oneLineTextEllipsis"], ["mat-icon-button", "", "matTooltip", "Click to refresh this field.", "matSuffix", "", 1, "input-sync-button"], ["matPrefix", ""], ["matSuffix", ""], ["matPrefix", "", 1, "affix-text"], ["matSuffix", "", 1, "affix-text", "affix-text--suffix"], ["align", "end"], ["mat-icon-button", "", "matTooltip", "Click to refresh this field.", "matSuffix", "", 1, "input-sync-button", 3, "click"]], template: function MultipleInputInputElementComponent_Template(rf, ctx) { if (rf & 1) {
1639
+ i0.ɵɵelementStart(0, "form", 0);
1640
+ i0.ɵɵconditionalCreate(1, MultipleInputInputElementComponent_Conditional_1_Template, 13, 12, "mat-form-field", 1);
1641
+ i0.ɵɵelementEnd();
1642
+ } if (rf & 2) {
1643
+ let tmp_1_0;
1644
+ i0.ɵɵproperty("formGroup", ctx.formGroup());
1645
+ i0.ɵɵadvance();
1646
+ i0.ɵɵconditional((tmp_1_0 = ctx.inputConfig()) ? 1 : -1, tmp_1_0);
1647
+ } }, dependencies: [ReactiveFormsModule, i1$2.ɵNgNoValidate, i1$2.NgControlStatus, i1$2.NgControlStatusGroup, i1$2.RequiredValidator, i1$2.FormGroupDirective, i1$2.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.MatIconButton, MatTooltipModule, i5$1.MatTooltip, TFormInputStatusComponent,
1648
+ MultipleInputTableComponent], styles: ["[_nghost-%COMP%]{display:block}.multiple-input-field[_ngcontent-%COMP%]{width:100%}.affix-text[_ngcontent-%COMP%]{top:0;color:var(--mat-sys-on-surface-variant, #49454f);font-size:.8125rem}.affix-text--suffix[_ngcontent-%COMP%]{padding-left:.3125rem}.input-sync-button[_ngcontent-%COMP%]{margin-right:.25rem;opacity:0;transform:scale(.85);pointer-events:none;transition:opacity .3s cubic-bezier(.16,1,.3,1),transform .3s cubic-bezier(.16,1,.3,1)}.input-sync-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--mat-sys-primary, #6750a4)}.multiple-input-field[_ngcontent-%COMP%]:hover .input-sync-button[_ngcontent-%COMP%], .multiple-input-field[_ngcontent-%COMP%]:focus-within .input-sync-button[_ngcontent-%COMP%]{opacity:1;transform:scale(1);pointer-events:auto}"], changeDetection: 0 }); }
1649
+ }
1650
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MultipleInputInputElementComponent, [{
1651
+ type: Component,
1652
+ args: [{ selector: 'lib-multiple-input-input-element', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
1653
+ ReactiveFormsModule,
1654
+ MatFormFieldModule,
1655
+ MatIconModule,
1656
+ MatButtonModule,
1657
+ MatTooltipModule,
1658
+ TFormInputStatusComponent,
1659
+ MultipleInputTableComponent,
1660
+ ], template: "<form [formGroup]=\"formGroup()\">\n @if (inputConfig(); as inputConfig) {\n <mat-form-field\n class=\"multiple-input-field\"\n [appearance]=\"inputConfig.appearance || 'fill'\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n >\n <mat-label>\n {{ inputConfig.label }}\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\n </mat-label>\n\n @if (inputConfig.id) {\n <lib-multiple-input-table\n [editorMode]=\"editorMode()\"\n [required]=\"inputConfig.required\"\n [formGroup]=\"formGroup()\"\n [formBuilderFunctions]=\"formBuilderFunctions()\"\n [formControlName]=\"inputConfig.id\"\n [inputConfig]=\"inputConfig\"\n ></lib-multiple-input-table>\n }\n\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\n <mat-hint class=\"inputHint\">\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\n </mat-hint>\n }\n\n @if (!!errorMessage()) {\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\n }\n\n @if (inputConfig.canReload?.canReload) {\n <button\n mat-icon-button\n matTooltip=\"Click to refresh this field.\"\n class=\"input-sync-button\"\n (click)=\"inputConfig.canReload.emit()\"\n matSuffix\n >\n <mat-icon>sync</mat-icon>\n </button>\n }\n\n @if (inputConfig.prefixIcon) {\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\n }\n\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\n }\n\n @if (inputConfig.prefixText) {\n <span class=\"affix-text\" matPrefix>{{ inputConfig.prefixText }}</span>\n }\n @if (inputConfig.suffixText) {\n <span class=\"affix-text affix-text--suffix\" matSuffix>{{ inputConfig.suffixText }}</span>\n }\n\n @if (inputConfig.maxLength && formGroup()) {\n <mat-hint align=\"end\">\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\n </mat-hint>\n }\n </mat-form-field>\n }\n</form>\n", styles: [":host{display:block}.multiple-input-field{width:100%}.affix-text{top:0;color:var(--mat-sys-on-surface-variant, #49454f);font-size:.8125rem}.affix-text--suffix{padding-left:.3125rem}.input-sync-button{margin-right:.25rem;opacity:0;transform:scale(.85);pointer-events:none;transition:opacity .3s cubic-bezier(.16,1,.3,1),transform .3s cubic-bezier(.16,1,.3,1)}.input-sync-button mat-icon{color:var(--mat-sys-primary, #6750a4)}.multiple-input-field:hover .input-sync-button,.multiple-input-field:focus-within .input-sync-button{opacity:1;transform:scale(1);pointer-events:auto}\n"] }]
1661
+ }], null, { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], editorMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "editorMode", required: false }] }], formBuilderFunctions: [{ type: i0.Input, args: [{ isSignal: true, alias: "formBuilderFunctions", required: false }] }], reload: [{ type: i0.Output, args: ["reload"] }] }); })();
1662
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MultipleInputInputElementComponent, { className: "MultipleInputInputElementComponent", filePath: "lib/components/t-form-input/elements/multiple-input-input-element/multiple-input-input-element.component.ts", lineNumber: 28 }); })();
1663
+
1664
+ export { MultipleInputInputElementComponent };
1665
+ //# sourceMappingURL=ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map