ngx-t-forms 3.0.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/fesm2022/ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs +411 -0
  2. package/fesm2022/ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs.map +1 -0
  3. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs → ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs} +2 -2
  4. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DFApar1W.mjs.map → ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs.map} +1 -1
  5. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs → ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs} +3 -3
  6. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-ChCeve-w.mjs.map → ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs.map} +1 -1
  7. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs +643 -0
  8. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs.map +1 -0
  9. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs → ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs} +4 -4
  10. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs.map +1 -0
  11. package/fesm2022/ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs +513 -0
  12. package/fesm2022/ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs.map +1 -0
  13. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs} +4 -4
  14. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs.map +1 -0
  15. package/fesm2022/ngx-t-forms-data-source-picker.component-CN51SdCK.mjs +261 -0
  16. package/fesm2022/ngx-t-forms-data-source-picker.component-CN51SdCK.mjs.map +1 -0
  17. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs → ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs} +2 -2
  18. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-NM2cFs3P.mjs.map → ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs.map} +1 -1
  19. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs +166 -0
  20. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs.map +1 -0
  21. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs +373 -0
  22. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs.map +1 -0
  23. package/fesm2022/ngx-t-forms-document-picker.component-9clYsOcl.mjs +1259 -0
  24. package/fesm2022/ngx-t-forms-document-picker.component-9clYsOcl.mjs.map +1 -0
  25. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs +417 -0
  26. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs.map +1 -0
  27. package/fesm2022/{ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs → ngx-t-forms-editor-js-input.component-02HnmInT.mjs} +25 -11
  28. package/fesm2022/ngx-t-forms-editor-js-input.component-02HnmInT.mjs.map +1 -0
  29. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs → ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-Km-qgANx.mjs.map → ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs.map} +1 -1
  31. package/fesm2022/ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs +86 -0
  32. package/fesm2022/ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs.map +1 -0
  33. package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs → ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs} +2 -2
  34. package/fesm2022/{ngx-t-forms-form-json-view.component-r64GKVhI.mjs.map → ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs.map} +1 -1
  35. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs +179 -0
  36. package/fesm2022/ngx-t-forms-form-payload-projection.component-y9PSIeP1.mjs.map +1 -0
  37. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs → ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs} +4 -4
  38. package/fesm2022/{ngx-t-forms-form-section-stepper.component-B3DRJ--U.mjs.map → ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs → ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs} +5 -5
  40. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BYFynpTn.mjs.map → ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs → ngx-t-forms-geo-location.component-D-BhLdx6.mjs} +2 -2
  42. package/fesm2022/{ngx-t-forms-geo-location.component-D2fIbagr.mjs.map → ngx-t-forms-geo-location.component-D-BhLdx6.mjs.map} +1 -1
  43. package/fesm2022/ngx-t-forms-header-template-editor.component-Z5frEhho.mjs +159 -0
  44. package/fesm2022/ngx-t-forms-header-template-editor.component-Z5frEhho.mjs.map +1 -0
  45. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs → ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BgnzErQt.mjs.map → ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs.map} +1 -1
  47. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs +2 -0
  48. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs.map +1 -0
  49. package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs → ngx-t-forms-input-custom.component-s1ryJQy4.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-input-custom.component-Dcoze7U3.mjs.map → ngx-t-forms-input-custom.component-s1ryJQy4.mjs.map} +1 -1
  51. package/fesm2022/ngx-t-forms-input-editor.component-oIzCTmbx.mjs +190 -0
  52. package/fesm2022/ngx-t-forms-input-editor.component-oIzCTmbx.mjs.map +1 -0
  53. package/fesm2022/{ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs → ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs} +2 -3
  54. package/fesm2022/ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs.map +1 -0
  55. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs → ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs} +5 -5
  56. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs.map +1 -0
  57. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs → ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs} +3 -3
  58. package/fesm2022/ngx-t-forms-mat-slider-editor.component-4buvmLkX.mjs.map +1 -0
  59. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs → ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs} +3 -3
  60. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DX8L0O1k.mjs.map +1 -0
  61. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs → ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs} +2 -2
  62. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CEa8ZNKA.mjs.map → ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs.map} +1 -1
  63. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs → ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs} +2 -2
  64. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DklkxNgg.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs.map} +1 -1
  65. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs +447 -0
  66. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs.map +1 -0
  67. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs +905 -0
  68. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs.map +1 -0
  69. package/fesm2022/{ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs → ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs} +2738 -415
  70. package/fesm2022/ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs.map +1 -0
  71. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs → ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs} +2 -2
  72. package/fesm2022/{ngx-t-forms-paginated-selection-table-DrXB22iY.mjs.map → ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs.map} +1 -1
  73. package/fesm2022/ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs +85 -0
  74. package/fesm2022/ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs.map +1 -0
  75. package/fesm2022/ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs +748 -0
  76. package/fesm2022/ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs.map +1 -0
  77. package/fesm2022/{ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs → ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs} +4 -4
  78. package/fesm2022/ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs.map +1 -0
  79. package/fesm2022/ngx-t-forms-required-inputs.component-CK7NIhbq.mjs +272 -0
  80. package/fesm2022/ngx-t-forms-required-inputs.component-CK7NIhbq.mjs.map +1 -0
  81. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs +699 -0
  82. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs.map +1 -0
  83. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs +38 -0
  84. package/fesm2022/ngx-t-forms-search-field.component-mR4Kk12C.mjs.map +1 -0
  85. package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs → ngx-t-forms-section-report.component-DhSaf85h.mjs} +2 -2
  86. package/fesm2022/{ngx-t-forms-section-report.component-BYMcaRE5.mjs.map → ngx-t-forms-section-report.component-DhSaf85h.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs → ngx-t-forms-select-input-element.component-D5HFzh35.mjs} +2 -2
  88. package/fesm2022/{ngx-t-forms-select-input-element.component-Nsa3dpvV.mjs.map → ngx-t-forms-select-input-element.component-D5HFzh35.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs +169 -0
  90. package/fesm2022/ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs.map +1 -0
  91. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs → ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs} +3 -3
  92. package/fesm2022/ngx-t-forms-t-workflow-picker.component-D0ttyEex.mjs.map +1 -0
  93. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs → ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs} +2 -2
  94. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DPxUzkAu.mjs.map → ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs.map} +1 -1
  95. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs → ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs} +2 -2
  96. package/fesm2022/{ngx-t-forms-toggle-input-element.component-OZre5TJ7.mjs.map → ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs.map} +1 -1
  97. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs +173 -0
  98. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs.map +1 -0
  99. package/fesm2022/ngx-t-forms-validators-config.component-0_Y6bvtE.mjs +574 -0
  100. package/fesm2022/ngx-t-forms-validators-config.component-0_Y6bvtE.mjs.map +1 -0
  101. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs → ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs} +3 -3
  102. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CrDZg3Nl.mjs.map → ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs.map} +1 -1
  103. package/fesm2022/ngx-t-forms.mjs +1 -1
  104. package/package.json +2 -2
  105. package/styles/_editor-mixins.scss +117 -117
  106. package/styles/_signature-pad.scss +26 -26
  107. package/styles/_tokens.scss +148 -148
  108. package/types/ngx-t-forms.d.ts +110 -6
  109. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs +0 -261
  110. package/fesm2022/ngx-t-forms-auto-complete-input-element.component-7g5cpVfB.mjs.map +0 -1
  111. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs +0 -225
  112. package/fesm2022/ngx-t-forms-basic-input-input-element.component-BhMw2vpl.mjs.map +0 -1
  113. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs +0 -1011
  114. package/fesm2022/ngx-t-forms-calculated-field-rules.component-BmWnrfWN.mjs.map +0 -1
  115. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs +0 -643
  116. package/fesm2022/ngx-t-forms-calculated-field-rules.component-CJMwqoHL.mjs.map +0 -1
  117. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs +0 -136
  118. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-ALkkDotT.mjs.map +0 -1
  119. package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-B54kOArR.mjs.map +0 -1
  120. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-CAZv0_uR.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs +0 -253
  122. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-Dap7QkKD.mjs.map +0 -1
  123. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs +0 -261
  124. package/fesm2022/ngx-t-forms-data-source-picker.component-8G28L1Cg.mjs.map +0 -1
  125. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs +0 -419
  126. package/fesm2022/ngx-t-forms-data-source-picker.component-CJ1C1Znp.mjs.map +0 -1
  127. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs +0 -231
  128. package/fesm2022/ngx-t-forms-date-picker-input-element.component-DjYq63Iv.mjs.map +0 -1
  129. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs +0 -156
  130. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-DhU_bhy3.mjs.map +0 -1
  131. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs +0 -333
  132. package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-g0wIRj9b.mjs.map +0 -1
  133. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs +0 -373
  134. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-K-KFdCcS.mjs.map +0 -1
  135. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs +0 -543
  136. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-NuPXy_Ms.mjs.map +0 -1
  137. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs +0 -1259
  138. package/fesm2022/ngx-t-forms-document-picker.component-BSG7k3IN.mjs.map +0 -1
  139. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs +0 -1996
  140. package/fesm2022/ngx-t-forms-document-picker.component-ChGqXHcQ.mjs.map +0 -1
  141. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs +0 -581
  142. package/fesm2022/ngx-t-forms-editor-input-element.component-B8Pk-EVY.mjs.map +0 -1
  143. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs +0 -417
  144. package/fesm2022/ngx-t-forms-editor-input-element.component-Bb7w-vNw.mjs.map +0 -1
  145. package/fesm2022/ngx-t-forms-editor-js-input.component-DlsLiHi1.mjs.map +0 -1
  146. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs +0 -585
  147. package/fesm2022/ngx-t-forms-editor-js-input.component-XX6kU8DW.mjs.map +0 -1
  148. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs +0 -447
  149. package/fesm2022/ngx-t-forms-file-upload-input-element.component-RCmUClXv.mjs.map +0 -1
  150. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs +0 -163
  151. package/fesm2022/ngx-t-forms-form-input-selector.component-0jfD5C0G.mjs.map +0 -1
  152. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs +0 -86
  153. package/fesm2022/ngx-t-forms-form-input-selector.component-D5KYWQ2R.mjs.map +0 -1
  154. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs +0 -28
  155. package/fesm2022/ngx-t-forms-form-json-view.component-z0nQxpqB.mjs.map +0 -1
  156. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs +0 -291
  157. package/fesm2022/ngx-t-forms-form-payload-projection.component-CkH7zmdJ.mjs.map +0 -1
  158. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs +0 -179
  159. package/fesm2022/ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map +0 -1
  160. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs +0 -936
  161. package/fesm2022/ngx-t-forms-form-section-stepper.component-UUTHYU-A.mjs.map +0 -1
  162. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs +0 -816
  163. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DTIAOxGV.mjs.map +0 -1
  164. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs +0 -329
  165. package/fesm2022/ngx-t-forms-geo-location.component-DW2b5Zli.mjs.map +0 -1
  166. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs +0 -360
  167. package/fesm2022/ngx-t-forms-image-capture-input-element.component-Us_NAQSl.mjs.map +0 -1
  168. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs +0 -2
  169. package/fesm2022/ngx-t-forms-index-6YIhS6cm.mjs.map +0 -1
  170. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs +0 -2
  171. package/fesm2022/ngx-t-forms-index-BPNBX_ve.mjs.map +0 -1
  172. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs +0 -128
  173. package/fesm2022/ngx-t-forms-input-custom.component-DQOqy047.mjs.map +0 -1
  174. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs +0 -512
  175. package/fesm2022/ngx-t-forms-input-editor.component-3fRj5swF.mjs.map +0 -1
  176. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs +0 -190
  177. package/fesm2022/ngx-t-forms-input-editor.component-B6UKwV4i.mjs.map +0 -1
  178. package/fesm2022/ngx-t-forms-map-mat-options-keys-BsfvYiEU.mjs.map +0 -1
  179. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs +0 -132
  180. package/fesm2022/ngx-t-forms-map-mat-options-keys-eSc99wdA.mjs.map +0 -1
  181. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs +0 -268
  182. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CN17K5q6.mjs.map +0 -1
  183. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CYtTBtyf.mjs.map +0 -1
  184. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs +0 -241
  185. package/fesm2022/ngx-t-forms-mat-slider-editor.component-B-_yUJ5N.mjs.map +0 -1
  186. package/fesm2022/ngx-t-forms-mat-slider-editor.component-CTSBrM-j.mjs.map +0 -1
  187. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-CcYiwx-8.mjs.map +0 -1
  188. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs +0 -180
  189. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-D0F1d1mO.mjs.map +0 -1
  190. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs +0 -114
  191. package/fesm2022/ngx-t-forms-missing-form-configs.component-AaDfeALs.mjs.map +0 -1
  192. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs +0 -69
  193. package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D0igUV3W.mjs.map +0 -1
  194. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs +0 -200
  195. package/fesm2022/ngx-t-forms-mscoa-error-display.component-rzl-fMmd.mjs.map +0 -1
  196. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs +0 -447
  197. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-2SspNWtF.mjs.map +0 -1
  198. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs +0 -850
  199. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CSGf4XeN.mjs.map +0 -1
  200. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs +0 -107
  201. package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBuGHwnU.mjs.map +0 -1
  202. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs +0 -1665
  203. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CbQdnVgw.mjs.map +0 -1
  204. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs +0 -905
  205. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-dmRIi9ph.mjs.map +0 -1
  206. package/fesm2022/ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs.map +0 -1
  207. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs +0 -28237
  208. package/fesm2022/ngx-t-forms-ngx-t-forms-BefvSS-p.mjs.map +0 -1
  209. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs +0 -1024
  210. package/fesm2022/ngx-t-forms-paginated-selection-table-BGNxI2yq.mjs.map +0 -1
  211. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs +0 -203
  212. package/fesm2022/ngx-t-forms-payload-template-editor.component-DL4ZTTsH.mjs.map +0 -1
  213. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs +0 -234
  214. package/fesm2022/ngx-t-forms-payload-template-editor.component-o3qwpvYu.mjs.map +0 -1
  215. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs +0 -1126
  216. package/fesm2022/ngx-t-forms-pipeline-generator.component-BqtdKcN2.mjs.map +0 -1
  217. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs +0 -748
  218. package/fesm2022/ngx-t-forms-pipeline-generator.component-DcZPv8-N.mjs.map +0 -1
  219. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs +0 -639
  220. package/fesm2022/ngx-t-forms-record-list-manager.component-BcANl5Bq.mjs.map +0 -1
  221. package/fesm2022/ngx-t-forms-record-list-manager.component-l-2uDVmi.mjs.map +0 -1
  222. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs +0 -272
  223. package/fesm2022/ngx-t-forms-required-inputs.component-BMmNxeE-.mjs.map +0 -1
  224. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs +0 -451
  225. package/fesm2022/ngx-t-forms-required-inputs.component-Dr0P1gin.mjs.map +0 -1
  226. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs +0 -625
  227. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-BSv_KQIU.mjs.map +0 -1
  228. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs +0 -444
  229. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-C3sNmq_H.mjs.map +0 -1
  230. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs +0 -38
  231. package/fesm2022/ngx-t-forms-search-field.component-B2ZO7lqO.mjs.map +0 -1
  232. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs +0 -72
  233. package/fesm2022/ngx-t-forms-search-field.component-BGdAmzJV.mjs.map +0 -1
  234. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs +0 -248
  235. package/fesm2022/ngx-t-forms-section-report.component-yGAjX7Gb.mjs.map +0 -1
  236. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs +0 -408
  237. package/fesm2022/ngx-t-forms-select-input-element.component-BqtJi4ek.mjs.map +0 -1
  238. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs +0 -169
  239. package/fesm2022/ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map +0 -1
  240. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs +0 -275
  241. package/fesm2022/ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map +0 -1
  242. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs +0 -366
  243. package/fesm2022/ngx-t-forms-t-workflow-picker.component-CLgN3YM4.mjs.map +0 -1
  244. package/fesm2022/ngx-t-forms-t-workflow-picker.component-DAwP-cWK.mjs.map +0 -1
  245. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs +0 -233
  246. package/fesm2022/ngx-t-forms-textarea-input-element.component-SCEBLqJd.mjs.map +0 -1
  247. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs +0 -305
  248. package/fesm2022/ngx-t-forms-toggle-input-element.component-CoyTMRMa.mjs.map +0 -1
  249. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs +0 -1105
  250. package/fesm2022/ngx-t-forms-validators-config.component-B1Lzs7o2.mjs.map +0 -1
  251. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs +0 -574
  252. package/fesm2022/ngx-t-forms-validators-config.component-CoGSFor3.mjs.map +0 -1
  253. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs +0 -2923
  254. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Bz07jv-N.mjs.map +0 -1
@@ -1,169 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, output, inject, PLATFORM_ID, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { DOCUMENT, isPlatformBrowser } from '@angular/common';
4
- import * as i1 from '@angular/forms';
5
- import { NonNullableFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
6
- import * as i2 from '@angular/material/button';
7
- import { MatButtonModule } from '@angular/material/button';
8
- import * as i3 from '@angular/material/card';
9
- import { MatCardModule } from '@angular/material/card';
10
- import * as i4 from '@angular/material/chips';
11
- import { MatChipsModule } from '@angular/material/chips';
12
- import * as i2$1 from '@angular/material/form-field';
13
- import { MatFormFieldModule } from '@angular/material/form-field';
14
- import * as i3$1 from '@angular/material/icon';
15
- import { MatIconModule } from '@angular/material/icon';
16
- import * as i2$2 from '@angular/material/input';
17
- import { MatInputModule } from '@angular/material/input';
18
- import * as i8 from '@angular/material/toolbar';
19
- import { MatToolbarModule } from '@angular/material/toolbar';
20
- import * as i5 from '@angular/material/tooltip';
21
- import { MatTooltipModule } from '@angular/material/tooltip';
22
- import { v4 } from 'uuid';
23
- import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-0gzvHzEK.mjs';
24
-
25
- let nextUniqueId = 0;
26
- /**
27
- * Editor for a list of selectable `{ id, label, value }` options. Renders inside
28
- * `t-dynamic-data-edit`, which supplies the field label, hint, and validation
29
- * errors — so this component owns only the chip list plus the add/edit card.
30
- *
31
- * @example
32
- * <lib-selection-options-editor
33
- * [options]="options()"
34
- * [disabled]="disabled()"
35
- * (valueChanged)="onOptions($event)" />
36
- */
37
- class SelectionOptionsEditorComponent {
38
- constructor() {
39
- /** Validation errors surfaced by the parent (kept for contract parity). */
40
- this.errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
41
- /** Disables interaction with the chip list and the add control. */
42
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
43
- /** Current set of options to edit. */
44
- this.options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
45
- /** Fires the full option list whenever it is added to, edited, or pruned. */
46
- this.valueChanged = output();
47
- /** Stable host id used by the parent's `[attr.id]` binding. */
48
- this.hostId = `app-selection-options-editor-${nextUniqueId++}`;
49
- this.#platformId = inject(PLATFORM_ID);
50
- this.#document = inject(DOCUMENT);
51
- this.#fb = inject(NonNullableFormBuilder);
52
- /** Option being edited (existing) or added (no id yet); `null` when closed. */
53
- this.inEdit = signal(null, ...(ngDevMode ? [{ debugName: "inEdit" }] : /* istanbul ignore next */ []));
54
- /** Whether the editor is in "add new" mode (open card, no existing id). */
55
- this.isAdding = signal(false, ...(ngDevMode ? [{ debugName: "isAdding" }] : /* istanbul ignore next */ []));
56
- /** When true, an empty value auto-fills from the camelCased label on blur. */
57
- this.isAutoCamelCase = signal(true, ...(ngDevMode ? [{ debugName: "isAutoCamelCase" }] : /* istanbul ignore next */ []));
58
- /** Live snapshot of the upstream options, defensively normalised to an array. */
59
- this.optionList = computed(() => this.options() ?? [], ...(ngDevMode ? [{ debugName: "optionList" }] : /* istanbul ignore next */ []));
60
- /** Whether the add/edit card is currently open. */
61
- this.isEditing = computed(() => this.isAdding() || this.inEdit() !== null, ...(ngDevMode ? [{ debugName: "isEditing" }] : /* istanbul ignore next */ []));
62
- /** Reactive form for the open add/edit card. */
63
- this.form = this.#fb.group({
64
- label: this.#fb.control('', Validators.required),
65
- value: this.#fb.control('', Validators.required),
66
- });
67
- }
68
- #platformId;
69
- #document;
70
- #fb;
71
- /** Opens the card to add a new option. */
72
- add() {
73
- this.inEdit.set(null);
74
- this.isAdding.set(true);
75
- this.#resetForm('', '');
76
- }
77
- /** Opens the card to edit an existing option. */
78
- startEdit(option) {
79
- this.isAdding.set(false);
80
- this.inEdit.set(option);
81
- this.#resetForm(option.label, option.value);
82
- }
83
- /** Closes the card without persisting changes. */
84
- closeEdit() {
85
- this.inEdit.set(null);
86
- this.isAdding.set(false);
87
- }
88
- /** Removes an option after browser confirmation, then emits the new list. */
89
- remove(option) {
90
- if (!isPlatformBrowser(this.#platformId))
91
- return;
92
- const win = this.#document.defaultView;
93
- if (!win)
94
- return;
95
- if (!win.confirm(`Are you sure you want to delete the option "${option.label}"?`))
96
- return;
97
- this.valueChanged.emit(this.optionList().filter((o) => o.id !== option.id));
98
- if (this.inEdit()?.id === option.id)
99
- this.closeEdit();
100
- }
101
- /** Persists the open card as a new or updated option, then emits the list. */
102
- save() {
103
- if (this.form.invalid)
104
- return;
105
- const { label, value } = this.form.getRawValue();
106
- const editing = this.inEdit();
107
- const next = editing
108
- ? this.optionList().map((o) => (o.id === editing.id ? { ...o, label, value } : o))
109
- : [...this.optionList(), { id: v4(), label, value }];
110
- this.valueChanged.emit(next);
111
- this.closeEdit();
112
- }
113
- /** Toggles auto-camelCase generation of an empty value from the label. */
114
- toggleAutoCamelCase() {
115
- this.isAutoCamelCase.update((on) => !on);
116
- }
117
- /**
118
- * Fills an empty `value` with the camelCased `label` on label blur. A value
119
- * the user already set is never overwritten.
120
- */
121
- autoFillValueFromLabel() {
122
- if (!this.isAutoCamelCase())
123
- return;
124
- const label = this.form.controls.label.value.trim();
125
- if (label && !this.form.controls.value.value) {
126
- this.form.controls.value.setValue(this.#camelCase(label));
127
- }
128
- }
129
- /** Resets the form to the supplied label/value pair. */
130
- #resetForm(label, value) {
131
- this.form.reset({ label, value });
132
- }
133
- /** Native camelCase: identical output to the previous lodash dependency. */
134
- #camelCase(input) {
135
- const words = input
136
- .replace(/[^A-Za-z0-9]+/g, ' ')
137
- .replace(/([a-z0-9])([A-Z])/g, '$1 $2')
138
- .trim()
139
- .toLowerCase()
140
- .split(/\s+/)
141
- .filter((w) => w.length > 0);
142
- return words
143
- .map((word, i) => (i === 0 ? word : word.charAt(0).toUpperCase() + word.slice(1)))
144
- .join('');
145
- }
146
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SelectionOptionsEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
147
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SelectionOptionsEditorComponent, isStandalone: true, selector: "lib-selection-options-editor", inputs: { errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, host: { properties: { "attr.id": "hostId" }, classAttribute: "lib-selection-options-editor" }, ngImport: i0, template: "@if (optionList().length) {\n <mat-chip-listbox\n class=\"lib-selection-options-editor__listbox\"\n aria-label=\"Option selection\"\n [disabled]=\"disabled()\">\n @for (option of optionList(); track option.id) {\n <mat-chip-option\n class=\"lib-selection-options-editor__chip\"\n color=\"accent\"\n [value]=\"option.value\"\n [selected]=\"inEdit()?.id === option.id\"\n (click)=\"startEdit(option)\">\n {{ option.label }}\n <button\n matChipRemove\n [attr.aria-label]=\"'Remove ' + option.label\"\n (click)=\"$event.stopPropagation(); remove(option)\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-option>\n }\n </mat-chip-listbox>\n} @else if (!isEditing()) {\n <lib-empty-state icon=\"list_alt\" message=\"No options yet\" />\n}\n\n@if (!isEditing()) {\n <mat-toolbar class=\"lib-selection-options-editor__toolbar\">\n <button\n class=\"lib-selection-options-editor__add\"\n mat-stroked-button\n [disabled]=\"disabled()\"\n (click)=\"add()\">\n Add an option <mat-icon>add</mat-icon>\n </button>\n </mat-toolbar>\n} @else {\n <mat-card class=\"lib-selection-options-editor__card\" appearance=\"outlined\">\n <mat-card-header>\n <mat-card-subtitle>{{ inEdit() ? 'Edit Option' : 'Add New Option' }}</mat-card-subtitle>\n </mat-card-header>\n\n <mat-card-content>\n <form [formGroup]=\"form\">\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Display Text</mat-label>\n <input\n type=\"text\"\n matInput\n formControlName=\"label\"\n placeholder=\"Enter option text\"\n (blur)=\"autoFillValueFromLabel()\" />\n <mat-hint>The text users will see and select from the list.</mat-hint>\n </mat-form-field>\n\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Stored Value</mat-label>\n <input type=\"text\" matInput formControlName=\"value\" placeholder=\"Enter data value\" />\n <button\n matSuffix\n mat-icon-button\n matTooltip=\"Toggle auto-creation of value from display text\"\n [color]=\"isAutoCamelCase() ? 'primary' : ''\"\n (click)=\"toggleAutoCamelCase()\">\n <mat-icon>{{ isAutoCamelCase() ? 'drive_file_rename_outline' : 'edit_off' }}</mat-icon>\n </button>\n <mat-hint>The value saved when this option is chosen. (Often an ID or code)</mat-hint>\n </mat-form-field>\n </form>\n </mat-card-content>\n\n <mat-card-actions>\n <button mat-button (click)=\"closeEdit()\">Cancel</button>\n <button mat-flat-button [disabled]=\"form.invalid\" (click)=\"save()\">\n {{ inEdit() ? 'Save Changes' : 'Add Option' }}\n </button>\n </mat-card-actions>\n </mat-card>\n}\n", styles: [":host{display:flex;flex-direction:column;gap:1.5rem}.lib-selection-options-editor__listbox{display:flex;overflow-x:auto}.lib-selection-options-editor__chip{min-width:fit-content}.lib-selection-options-editor__toolbar{padding:0;background:transparent}.lib-selection-options-editor__add{width:100%}.lib-selection-options-editor__card{background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting)}.lib-selection-options-editor__field{width:100%;background:var(--lib-forms-surface)}.lib-selection-options-editor__field+.lib-selection-options-editor__field{margin-top:1.5rem}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i3.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i3.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i3.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i4.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i4.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "directive", type: i4.MatChipRemove, selector: "[matChipRemove]" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
148
- }
149
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SelectionOptionsEditorComponent, decorators: [{
150
- type: Component,
151
- args: [{ selector: 'lib-selection-options-editor', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: {
152
- 'class': 'lib-selection-options-editor',
153
- '[attr.id]': 'hostId',
154
- }, imports: [
155
- ReactiveFormsModule,
156
- MatButtonModule,
157
- MatCardModule,
158
- MatChipsModule,
159
- MatFormFieldModule,
160
- MatIconModule,
161
- MatInputModule,
162
- MatToolbarModule,
163
- MatTooltipModule,
164
- EmptyStateComponent,
165
- ], template: "@if (optionList().length) {\n <mat-chip-listbox\n class=\"lib-selection-options-editor__listbox\"\n aria-label=\"Option selection\"\n [disabled]=\"disabled()\">\n @for (option of optionList(); track option.id) {\n <mat-chip-option\n class=\"lib-selection-options-editor__chip\"\n color=\"accent\"\n [value]=\"option.value\"\n [selected]=\"inEdit()?.id === option.id\"\n (click)=\"startEdit(option)\">\n {{ option.label }}\n <button\n matChipRemove\n [attr.aria-label]=\"'Remove ' + option.label\"\n (click)=\"$event.stopPropagation(); remove(option)\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-option>\n }\n </mat-chip-listbox>\n} @else if (!isEditing()) {\n <lib-empty-state icon=\"list_alt\" message=\"No options yet\" />\n}\n\n@if (!isEditing()) {\n <mat-toolbar class=\"lib-selection-options-editor__toolbar\">\n <button\n class=\"lib-selection-options-editor__add\"\n mat-stroked-button\n [disabled]=\"disabled()\"\n (click)=\"add()\">\n Add an option <mat-icon>add</mat-icon>\n </button>\n </mat-toolbar>\n} @else {\n <mat-card class=\"lib-selection-options-editor__card\" appearance=\"outlined\">\n <mat-card-header>\n <mat-card-subtitle>{{ inEdit() ? 'Edit Option' : 'Add New Option' }}</mat-card-subtitle>\n </mat-card-header>\n\n <mat-card-content>\n <form [formGroup]=\"form\">\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Display Text</mat-label>\n <input\n type=\"text\"\n matInput\n formControlName=\"label\"\n placeholder=\"Enter option text\"\n (blur)=\"autoFillValueFromLabel()\" />\n <mat-hint>The text users will see and select from the list.</mat-hint>\n </mat-form-field>\n\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Stored Value</mat-label>\n <input type=\"text\" matInput formControlName=\"value\" placeholder=\"Enter data value\" />\n <button\n matSuffix\n mat-icon-button\n matTooltip=\"Toggle auto-creation of value from display text\"\n [color]=\"isAutoCamelCase() ? 'primary' : ''\"\n (click)=\"toggleAutoCamelCase()\">\n <mat-icon>{{ isAutoCamelCase() ? 'drive_file_rename_outline' : 'edit_off' }}</mat-icon>\n </button>\n <mat-hint>The value saved when this option is chosen. (Often an ID or code)</mat-hint>\n </mat-form-field>\n </form>\n </mat-card-content>\n\n <mat-card-actions>\n <button mat-button (click)=\"closeEdit()\">Cancel</button>\n <button mat-flat-button [disabled]=\"form.invalid\" (click)=\"save()\">\n {{ inEdit() ? 'Save Changes' : 'Add Option' }}\n </button>\n </mat-card-actions>\n </mat-card>\n}\n", styles: [":host{display:flex;flex-direction:column;gap:1.5rem}.lib-selection-options-editor__listbox{display:flex;overflow-x:auto}.lib-selection-options-editor__chip{min-width:fit-content}.lib-selection-options-editor__toolbar{padding:0;background:transparent}.lib-selection-options-editor__add{width:100%}.lib-selection-options-editor__card{background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting)}.lib-selection-options-editor__field{width:100%;background:var(--lib-forms-surface)}.lib-selection-options-editor__field+.lib-selection-options-editor__field{margin-top:1.5rem}\n"] }]
166
- }], propDecorators: { errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] } });
167
-
168
- export { SelectionOptionsEditorComponent };
169
- //# sourceMappingURL=ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-selection-options-editor.component-BuXVzo7Z.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.html"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n PLATFORM_ID,\n ViewEncapsulation,\n computed,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n FormControl,\n FormGroup,\n NonNullableFormBuilder,\n ReactiveFormsModule,\n Validators,\n} from '@angular/forms';\n\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\nimport { v4 as uuidv4 } from 'uuid';\n\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\n\n/** A single selectable option managed by the editor. */\ninterface Option {\n /** Stable identifier, generated once per option and never reassigned. */\n id: string;\n /** Display text the end user sees in the rendered form. */\n label: string;\n /** Stored value persisted when the option is chosen. */\n value: string;\n}\n\n/** Reactive form shape backing the add/edit card. */\ntype OptionForm = FormGroup<{\n label: FormControl<string>;\n value: FormControl<string>;\n}>;\n\nlet nextUniqueId = 0;\n\n/**\n * Editor for a list of selectable `{ id, label, value }` options. Renders inside\n * `t-dynamic-data-edit`, which supplies the field label, hint, and validation\n * errors — so this component owns only the chip list plus the add/edit card.\n *\n * @example\n * <lib-selection-options-editor\n * [options]=\"options()\"\n * [disabled]=\"disabled()\"\n * (valueChanged)=\"onOptions($event)\" />\n */\n@Component({\n selector: 'lib-selection-options-editor',\n templateUrl: './selection-options-editor.component.html',\n styleUrl: './selection-options-editor.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n 'class': 'lib-selection-options-editor',\n '[attr.id]': 'hostId',\n },\n imports: [\n ReactiveFormsModule,\n MatButtonModule,\n MatCardModule,\n MatChipsModule,\n MatFormFieldModule,\n MatIconModule,\n MatInputModule,\n MatToolbarModule,\n MatTooltipModule,\n EmptyStateComponent,\n ],\n})\nexport class SelectionOptionsEditorComponent {\n /** Validation errors surfaced by the parent (kept for contract parity). */\n readonly errors = input<IConfigElementError[] | undefined>([]);\n\n /** Disables interaction with the chip list and the add control. */\n readonly disabled = input<boolean>(false);\n\n /** Current set of options to edit. */\n readonly options = input<readonly Option[]>([]);\n\n /** Fires the full option list whenever it is added to, edited, or pruned. */\n readonly valueChanged = output<Option[]>();\n\n /** Stable host id used by the parent's `[attr.id]` binding. */\n readonly hostId = `app-selection-options-editor-${nextUniqueId++}`;\n\n readonly #platformId = inject(PLATFORM_ID);\n readonly #document = inject(DOCUMENT);\n readonly #fb = inject(NonNullableFormBuilder);\n\n /** Option being edited (existing) or added (no id yet); `null` when closed. */\n protected readonly inEdit = signal<Option | null>(null);\n\n /** Whether the editor is in \"add new\" mode (open card, no existing id). */\n protected readonly isAdding = signal<boolean>(false);\n\n /** When true, an empty value auto-fills from the camelCased label on blur. */\n protected readonly isAutoCamelCase = signal<boolean>(true);\n\n /** Live snapshot of the upstream options, defensively normalised to an array. */\n protected readonly optionList = computed<readonly Option[]>(() => this.options() ?? []);\n\n /** Whether the add/edit card is currently open. */\n protected readonly isEditing = computed<boolean>(\n () => this.isAdding() || this.inEdit() !== null,\n );\n\n /** Reactive form for the open add/edit card. */\n protected readonly form: OptionForm = this.#fb.group({\n label: this.#fb.control('', Validators.required),\n value: this.#fb.control('', Validators.required),\n });\n\n /** Opens the card to add a new option. */\n protected add(): void {\n this.inEdit.set(null);\n this.isAdding.set(true);\n this.#resetForm('', '');\n }\n\n /** Opens the card to edit an existing option. */\n protected startEdit(option: Option): void {\n this.isAdding.set(false);\n this.inEdit.set(option);\n this.#resetForm(option.label, option.value);\n }\n\n /** Closes the card without persisting changes. */\n protected closeEdit(): void {\n this.inEdit.set(null);\n this.isAdding.set(false);\n }\n\n /** Removes an option after browser confirmation, then emits the new list. */\n protected remove(option: Option): void {\n if (!isPlatformBrowser(this.#platformId)) return;\n const win = this.#document.defaultView;\n if (!win) return;\n if (!win.confirm(`Are you sure you want to delete the option \"${option.label}\"?`)) return;\n\n this.valueChanged.emit(this.optionList().filter((o) => o.id !== option.id));\n if (this.inEdit()?.id === option.id) this.closeEdit();\n }\n\n /** Persists the open card as a new or updated option, then emits the list. */\n protected save(): void {\n if (this.form.invalid) return;\n\n const { label, value } = this.form.getRawValue();\n const editing = this.inEdit();\n const next = editing\n ? this.optionList().map((o) => (o.id === editing.id ? { ...o, label, value } : o))\n : [...this.optionList(), { id: uuidv4(), label, value }];\n\n this.valueChanged.emit(next);\n this.closeEdit();\n }\n\n /** Toggles auto-camelCase generation of an empty value from the label. */\n protected toggleAutoCamelCase(): void {\n this.isAutoCamelCase.update((on) => !on);\n }\n\n /**\n * Fills an empty `value` with the camelCased `label` on label blur. A value\n * the user already set is never overwritten.\n */\n protected autoFillValueFromLabel(): void {\n if (!this.isAutoCamelCase()) return;\n const label = this.form.controls.label.value.trim();\n if (label && !this.form.controls.value.value) {\n this.form.controls.value.setValue(this.#camelCase(label));\n }\n }\n\n /** Resets the form to the supplied label/value pair. */\n #resetForm(label: string, value: string): void {\n this.form.reset({ label, value });\n }\n\n /** Native camelCase: identical output to the previous lodash dependency. */\n #camelCase(input: string): string {\n const words = input\n .replace(/[^A-Za-z0-9]+/g, ' ')\n .replace(/([a-z0-9])([A-Z])/g, '$1 $2')\n .trim()\n .toLowerCase()\n .split(/\\s+/)\n .filter((w) => w.length > 0);\n return words\n .map((word, i) => (i === 0 ? word : word.charAt(0).toUpperCase() + word.slice(1)))\n .join('');\n }\n}\n","@if (optionList().length) {\n <mat-chip-listbox\n class=\"lib-selection-options-editor__listbox\"\n aria-label=\"Option selection\"\n [disabled]=\"disabled()\">\n @for (option of optionList(); track option.id) {\n <mat-chip-option\n class=\"lib-selection-options-editor__chip\"\n color=\"accent\"\n [value]=\"option.value\"\n [selected]=\"inEdit()?.id === option.id\"\n (click)=\"startEdit(option)\">\n {{ option.label }}\n <button\n matChipRemove\n [attr.aria-label]=\"'Remove ' + option.label\"\n (click)=\"$event.stopPropagation(); remove(option)\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-option>\n }\n </mat-chip-listbox>\n} @else if (!isEditing()) {\n <lib-empty-state icon=\"list_alt\" message=\"No options yet\" />\n}\n\n@if (!isEditing()) {\n <mat-toolbar class=\"lib-selection-options-editor__toolbar\">\n <button\n class=\"lib-selection-options-editor__add\"\n mat-stroked-button\n [disabled]=\"disabled()\"\n (click)=\"add()\">\n Add an option <mat-icon>add</mat-icon>\n </button>\n </mat-toolbar>\n} @else {\n <mat-card class=\"lib-selection-options-editor__card\" appearance=\"outlined\">\n <mat-card-header>\n <mat-card-subtitle>{{ inEdit() ? 'Edit Option' : 'Add New Option' }}</mat-card-subtitle>\n </mat-card-header>\n\n <mat-card-content>\n <form [formGroup]=\"form\">\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Display Text</mat-label>\n <input\n type=\"text\"\n matInput\n formControlName=\"label\"\n placeholder=\"Enter option text\"\n (blur)=\"autoFillValueFromLabel()\" />\n <mat-hint>The text users will see and select from the list.</mat-hint>\n </mat-form-field>\n\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Stored Value</mat-label>\n <input type=\"text\" matInput formControlName=\"value\" placeholder=\"Enter data value\" />\n <button\n matSuffix\n mat-icon-button\n matTooltip=\"Toggle auto-creation of value from display text\"\n [color]=\"isAutoCamelCase() ? 'primary' : ''\"\n (click)=\"toggleAutoCamelCase()\">\n <mat-icon>{{ isAutoCamelCase() ? 'drive_file_rename_outline' : 'edit_off' }}</mat-icon>\n </button>\n <mat-hint>The value saved when this option is chosen. (Often an ID or code)</mat-hint>\n </mat-form-field>\n </form>\n </mat-card-content>\n\n <mat-card-actions>\n <button mat-button (click)=\"closeEdit()\">Cancel</button>\n <button mat-flat-button [disabled]=\"form.invalid\" (click)=\"save()\">\n {{ inEdit() ? 'Save Changes' : 'Add Option' }}\n </button>\n </mat-card-actions>\n </mat-card>\n}\n"],"names":["uuidv4","i5","i6","i9"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAkDA,IAAI,YAAY,GAAG,CAAC;AAEpB;;;;;;;;;;AAUG;MAwBU,+BAA+B,CAAA;AAvB5C,IAAA,WAAA,GAAA;;AAyBW,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAoC,EAAE,6EAAC;;AAGrD,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;;AAGhC,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAoB,EAAE,8EAAC;;QAGtC,IAAA,CAAA,YAAY,GAAG,MAAM,EAAY;;AAGjC,QAAA,IAAA,CAAA,MAAM,GAAG,CAAA,6BAAA,EAAgC,YAAY,EAAE,EAAE;AAEzD,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;AACjC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC5B,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,sBAAsB,CAAC;;AAG1B,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAgB,IAAI,6EAAC;;AAGpC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAU,KAAK,+EAAC;;AAGjC,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAU,IAAI,sFAAC;;AAGvC,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAoB,MAAM,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,iFAAC;;AAGpE,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ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AW,EAAE,QAAQ;qBACtB,EAAA,OAAA,EACQ;wBACP,mBAAmB;wBACnB,eAAe;wBACf,aAAa;wBACb,cAAc;wBACd,kBAAkB;wBAClB,aAAa;wBACb,cAAc;wBACd,gBAAgB;wBAChB,gBAAgB;wBAChB,mBAAmB;AACpB,qBAAA,EAAA,QAAA,EAAA,+nGAAA,EAAA,MAAA,EAAA,CAAA,2sBAAA,CAAA,EAAA;;;;;"}
@@ -1,275 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, output, inject, PLATFORM_ID, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { DOCUMENT, isPlatformBrowser } from '@angular/common';
4
- import * as i1 from '@angular/forms';
5
- import { NonNullableFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
6
- import * as i2 from '@angular/material/button';
7
- import { MatButtonModule } from '@angular/material/button';
8
- import * as i3 from '@angular/material/card';
9
- import { MatCardModule } from '@angular/material/card';
10
- import * as i4 from '@angular/material/chips';
11
- import { MatChipsModule } from '@angular/material/chips';
12
- import * as i2$1 from '@angular/material/form-field';
13
- import { MatFormFieldModule } from '@angular/material/form-field';
14
- import * as i3$1 from '@angular/material/icon';
15
- import { MatIconModule } from '@angular/material/icon';
16
- import * as i2$2 from '@angular/material/input';
17
- import { MatInputModule } from '@angular/material/input';
18
- import * as i8 from '@angular/material/toolbar';
19
- import { MatToolbarModule } from '@angular/material/toolbar';
20
- import * as i5 from '@angular/material/tooltip';
21
- import { MatTooltipModule } from '@angular/material/tooltip';
22
- import { v4 } from 'uuid';
23
- import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-BefvSS-p.mjs';
24
-
25
- const _forTrack0 = ($index, $item) => $item.id;
26
- function SelectionOptionsEditorComponent_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
27
- const _r1 = i0.ɵɵgetCurrentView();
28
- i0.ɵɵelementStart(0, "mat-chip-option", 5);
29
- i0.ɵɵlistener("click", function SelectionOptionsEditorComponent_Conditional_0_For_2_Template_mat_chip_option_click_0_listener() { const option_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.startEdit(option_r2)); });
30
- i0.ɵɵtext(1);
31
- i0.ɵɵelementStart(2, "button", 6);
32
- i0.ɵɵlistener("click", function SelectionOptionsEditorComponent_Conditional_0_For_2_Template_button_click_2_listener($event) { const option_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); $event.stopPropagation(); return i0.ɵɵresetView(ctx_r2.remove(option_r2)); });
33
- i0.ɵɵelementStart(3, "mat-icon");
34
- i0.ɵɵtext(4, "cancel");
35
- i0.ɵɵelementEnd()()();
36
- } if (rf & 2) {
37
- let tmp_12_0;
38
- const option_r2 = ctx.$implicit;
39
- const ctx_r2 = i0.ɵɵnextContext(2);
40
- i0.ɵɵproperty("value", option_r2.value)("selected", ((tmp_12_0 = ctx_r2.inEdit()) == null ? null : tmp_12_0.id) === option_r2.id);
41
- i0.ɵɵadvance();
42
- i0.ɵɵtextInterpolate1(" ", option_r2.label, " ");
43
- i0.ɵɵadvance();
44
- i0.ɵɵattribute("aria-label", "Remove " + option_r2.label);
45
- } }
46
- function SelectionOptionsEditorComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
47
- i0.ɵɵelementStart(0, "mat-chip-listbox", 0);
48
- i0.ɵɵrepeaterCreate(1, SelectionOptionsEditorComponent_Conditional_0_For_2_Template, 5, 4, "mat-chip-option", 4, _forTrack0);
49
- i0.ɵɵelementEnd();
50
- } if (rf & 2) {
51
- const ctx_r2 = i0.ɵɵnextContext();
52
- i0.ɵɵproperty("disabled", ctx_r2.disabled());
53
- i0.ɵɵadvance();
54
- i0.ɵɵrepeater(ctx_r2.optionList());
55
- } }
56
- function SelectionOptionsEditorComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
57
- i0.ɵɵelement(0, "lib-empty-state", 1);
58
- } }
59
- function SelectionOptionsEditorComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
60
- const _r4 = i0.ɵɵgetCurrentView();
61
- i0.ɵɵelementStart(0, "mat-toolbar", 2)(1, "button", 7);
62
- i0.ɵɵlistener("click", function SelectionOptionsEditorComponent_Conditional_2_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.add()); });
63
- i0.ɵɵtext(2, " Add an option ");
64
- i0.ɵɵelementStart(3, "mat-icon");
65
- i0.ɵɵtext(4, "add");
66
- i0.ɵɵelementEnd()()();
67
- } if (rf & 2) {
68
- const ctx_r2 = i0.ɵɵnextContext();
69
- i0.ɵɵadvance();
70
- i0.ɵɵproperty("disabled", ctx_r2.disabled());
71
- } }
72
- function SelectionOptionsEditorComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
73
- const _r5 = i0.ɵɵgetCurrentView();
74
- i0.ɵɵelementStart(0, "mat-card", 3)(1, "mat-card-header")(2, "mat-card-subtitle");
75
- i0.ɵɵtext(3);
76
- i0.ɵɵelementEnd()();
77
- i0.ɵɵelementStart(4, "mat-card-content")(5, "form", 8)(6, "mat-form-field", 9)(7, "mat-label");
78
- i0.ɵɵtext(8, "Display Text");
79
- i0.ɵɵelementEnd();
80
- i0.ɵɵelementStart(9, "input", 10);
81
- i0.ɵɵlistener("blur", function SelectionOptionsEditorComponent_Conditional_3_Template_input_blur_9_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.autoFillValueFromLabel()); });
82
- i0.ɵɵelementEnd();
83
- i0.ɵɵelementStart(10, "mat-hint");
84
- i0.ɵɵtext(11, "The text users will see and select from the list.");
85
- i0.ɵɵelementEnd()();
86
- i0.ɵɵelementStart(12, "mat-form-field", 9)(13, "mat-label");
87
- i0.ɵɵtext(14, "Stored Value");
88
- i0.ɵɵelementEnd();
89
- i0.ɵɵelement(15, "input", 11);
90
- i0.ɵɵelementStart(16, "button", 12);
91
- i0.ɵɵlistener("click", function SelectionOptionsEditorComponent_Conditional_3_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleAutoCamelCase()); });
92
- i0.ɵɵelementStart(17, "mat-icon");
93
- i0.ɵɵtext(18);
94
- i0.ɵɵelementEnd()();
95
- i0.ɵɵelementStart(19, "mat-hint");
96
- i0.ɵɵtext(20, "The value saved when this option is chosen. (Often an ID or code)");
97
- i0.ɵɵelementEnd()()()();
98
- i0.ɵɵelementStart(21, "mat-card-actions")(22, "button", 13);
99
- i0.ɵɵlistener("click", function SelectionOptionsEditorComponent_Conditional_3_Template_button_click_22_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.closeEdit()); });
100
- i0.ɵɵtext(23, "Cancel");
101
- i0.ɵɵelementEnd();
102
- i0.ɵɵelementStart(24, "button", 14);
103
- i0.ɵɵlistener("click", function SelectionOptionsEditorComponent_Conditional_3_Template_button_click_24_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.save()); });
104
- i0.ɵɵtext(25);
105
- i0.ɵɵelementEnd()()();
106
- } if (rf & 2) {
107
- const ctx_r2 = i0.ɵɵnextContext();
108
- i0.ɵɵadvance(3);
109
- i0.ɵɵtextInterpolate(ctx_r2.inEdit() ? "Edit Option" : "Add New Option");
110
- i0.ɵɵadvance(2);
111
- i0.ɵɵproperty("formGroup", ctx_r2.form);
112
- i0.ɵɵadvance(11);
113
- i0.ɵɵproperty("color", ctx_r2.isAutoCamelCase() ? "primary" : "");
114
- i0.ɵɵadvance(2);
115
- i0.ɵɵtextInterpolate(ctx_r2.isAutoCamelCase() ? "drive_file_rename_outline" : "edit_off");
116
- i0.ɵɵadvance(6);
117
- i0.ɵɵproperty("disabled", ctx_r2.form.invalid);
118
- i0.ɵɵadvance();
119
- i0.ɵɵtextInterpolate1(" ", ctx_r2.inEdit() ? "Save Changes" : "Add Option", " ");
120
- } }
121
- let nextUniqueId = 0;
122
- /**
123
- * Editor for a list of selectable `{ id, label, value }` options. Renders inside
124
- * `t-dynamic-data-edit`, which supplies the field label, hint, and validation
125
- * errors — so this component owns only the chip list plus the add/edit card.
126
- *
127
- * @example
128
- * <lib-selection-options-editor
129
- * [options]="options()"
130
- * [disabled]="disabled()"
131
- * (valueChanged)="onOptions($event)" />
132
- */
133
- class SelectionOptionsEditorComponent {
134
- constructor() {
135
- /** Validation errors surfaced by the parent (kept for contract parity). */
136
- this.errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
137
- /** Disables interaction with the chip list and the add control. */
138
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
139
- /** Current set of options to edit. */
140
- this.options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
141
- /** Fires the full option list whenever it is added to, edited, or pruned. */
142
- this.valueChanged = output();
143
- /** Stable host id used by the parent's `[attr.id]` binding. */
144
- this.hostId = `app-selection-options-editor-${nextUniqueId++}`;
145
- this.#platformId = inject(PLATFORM_ID);
146
- this.#document = inject(DOCUMENT);
147
- this.#fb = inject(NonNullableFormBuilder);
148
- /** Option being edited (existing) or added (no id yet); `null` when closed. */
149
- this.inEdit = signal(null, ...(ngDevMode ? [{ debugName: "inEdit" }] : /* istanbul ignore next */ []));
150
- /** Whether the editor is in "add new" mode (open card, no existing id). */
151
- this.isAdding = signal(false, ...(ngDevMode ? [{ debugName: "isAdding" }] : /* istanbul ignore next */ []));
152
- /** When true, an empty value auto-fills from the camelCased label on blur. */
153
- this.isAutoCamelCase = signal(true, ...(ngDevMode ? [{ debugName: "isAutoCamelCase" }] : /* istanbul ignore next */ []));
154
- /** Live snapshot of the upstream options, defensively normalised to an array. */
155
- this.optionList = computed(() => this.options() ?? [], ...(ngDevMode ? [{ debugName: "optionList" }] : /* istanbul ignore next */ []));
156
- /** Whether the add/edit card is currently open. */
157
- this.isEditing = computed(() => this.isAdding() || this.inEdit() !== null, ...(ngDevMode ? [{ debugName: "isEditing" }] : /* istanbul ignore next */ []));
158
- /** Reactive form for the open add/edit card. */
159
- this.form = this.#fb.group({
160
- label: this.#fb.control('', Validators.required),
161
- value: this.#fb.control('', Validators.required),
162
- });
163
- }
164
- #platformId;
165
- #document;
166
- #fb;
167
- /** Opens the card to add a new option. */
168
- add() {
169
- this.inEdit.set(null);
170
- this.isAdding.set(true);
171
- this.#resetForm('', '');
172
- }
173
- /** Opens the card to edit an existing option. */
174
- startEdit(option) {
175
- this.isAdding.set(false);
176
- this.inEdit.set(option);
177
- this.#resetForm(option.label, option.value);
178
- }
179
- /** Closes the card without persisting changes. */
180
- closeEdit() {
181
- this.inEdit.set(null);
182
- this.isAdding.set(false);
183
- }
184
- /** Removes an option after browser confirmation, then emits the new list. */
185
- remove(option) {
186
- if (!isPlatformBrowser(this.#platformId))
187
- return;
188
- const win = this.#document.defaultView;
189
- if (!win)
190
- return;
191
- if (!win.confirm(`Are you sure you want to delete the option "${option.label}"?`))
192
- return;
193
- this.valueChanged.emit(this.optionList().filter((o) => o.id !== option.id));
194
- if (this.inEdit()?.id === option.id)
195
- this.closeEdit();
196
- }
197
- /** Persists the open card as a new or updated option, then emits the list. */
198
- save() {
199
- if (this.form.invalid)
200
- return;
201
- const { label, value } = this.form.getRawValue();
202
- const editing = this.inEdit();
203
- const next = editing
204
- ? this.optionList().map((o) => (o.id === editing.id ? { ...o, label, value } : o))
205
- : [...this.optionList(), { id: v4(), label, value }];
206
- this.valueChanged.emit(next);
207
- this.closeEdit();
208
- }
209
- /** Toggles auto-camelCase generation of an empty value from the label. */
210
- toggleAutoCamelCase() {
211
- this.isAutoCamelCase.update((on) => !on);
212
- }
213
- /**
214
- * Fills an empty `value` with the camelCased `label` on label blur. A value
215
- * the user already set is never overwritten.
216
- */
217
- autoFillValueFromLabel() {
218
- if (!this.isAutoCamelCase())
219
- return;
220
- const label = this.form.controls.label.value.trim();
221
- if (label && !this.form.controls.value.value) {
222
- this.form.controls.value.setValue(this.#camelCase(label));
223
- }
224
- }
225
- /** Resets the form to the supplied label/value pair. */
226
- #resetForm(label, value) {
227
- this.form.reset({ label, value });
228
- }
229
- /** Native camelCase: identical output to the previous lodash dependency. */
230
- #camelCase(input) {
231
- const words = input
232
- .replace(/[^A-Za-z0-9]+/g, ' ')
233
- .replace(/([a-z0-9])([A-Z])/g, '$1 $2')
234
- .trim()
235
- .toLowerCase()
236
- .split(/\s+/)
237
- .filter((w) => w.length > 0);
238
- return words
239
- .map((word, i) => (i === 0 ? word : word.charAt(0).toUpperCase() + word.slice(1)))
240
- .join('');
241
- }
242
- static { this.ɵfac = function SelectionOptionsEditorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectionOptionsEditorComponent)(); }; }
243
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectionOptionsEditorComponent, selectors: [["lib-selection-options-editor"]], hostAttrs: [1, "lib-selection-options-editor"], hostVars: 1, hostBindings: function SelectionOptionsEditorComponent_HostBindings(rf, ctx) { if (rf & 2) {
244
- i0.ɵɵattribute("id", ctx.hostId);
245
- } }, inputs: { errors: [1, "errors"], disabled: [1, "disabled"], options: [1, "options"] }, outputs: { valueChanged: "valueChanged" }, decls: 4, vars: 2, consts: [["aria-label", "Option selection", 1, "lib-selection-options-editor__listbox", 3, "disabled"], ["icon", "list_alt", "message", "No options yet"], [1, "lib-selection-options-editor__toolbar"], ["appearance", "outlined", 1, "lib-selection-options-editor__card"], ["color", "accent", 1, "lib-selection-options-editor__chip", 3, "value", "selected"], ["color", "accent", 1, "lib-selection-options-editor__chip", 3, "click", "value", "selected"], ["matChipRemove", "", 3, "click"], ["mat-stroked-button", "", 1, "lib-selection-options-editor__add", 3, "click", "disabled"], [3, "formGroup"], ["subscriptSizing", "dynamic", "floatLabel", "always", "appearance", "outline", 1, "lib-selection-options-editor__field"], ["type", "text", "matInput", "", "formControlName", "label", "placeholder", "Enter option text", 3, "blur"], ["type", "text", "matInput", "", "formControlName", "value", "placeholder", "Enter data value"], ["matSuffix", "", "mat-icon-button", "", "matTooltip", "Toggle auto-creation of value from display text", 3, "click", "color"], ["mat-button", "", 3, "click"], ["mat-flat-button", "", 3, "click", "disabled"]], template: function SelectionOptionsEditorComponent_Template(rf, ctx) { if (rf & 1) {
246
- i0.ɵɵconditionalCreate(0, SelectionOptionsEditorComponent_Conditional_0_Template, 3, 1, "mat-chip-listbox", 0)(1, SelectionOptionsEditorComponent_Conditional_1_Template, 1, 0, "lib-empty-state", 1);
247
- i0.ɵɵconditionalCreate(2, SelectionOptionsEditorComponent_Conditional_2_Template, 5, 1, "mat-toolbar", 2)(3, SelectionOptionsEditorComponent_Conditional_3_Template, 26, 6, "mat-card", 3);
248
- } if (rf & 2) {
249
- i0.ɵɵconditional(ctx.optionList().length ? 0 : !ctx.isEditing() ? 1 : -1);
250
- i0.ɵɵadvance(2);
251
- i0.ɵɵconditional(!ctx.isEditing() ? 2 : 3);
252
- } }, dependencies: [ReactiveFormsModule, i1.ɵNgNoValidate, i1.DefaultValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.FormGroupDirective, i1.FormControlName, MatButtonModule, i2.MatButton, i2.MatIconButton, MatCardModule, i3.MatCard, i3.MatCardActions, i3.MatCardContent, i3.MatCardHeader, i3.MatCardSubtitle, MatChipsModule, i4.MatChipListbox, i4.MatChipOption, i4.MatChipRemove, MatFormFieldModule, i2$1.MatFormField, i2$1.MatLabel, i2$1.MatHint, i2$1.MatSuffix, MatIconModule, i3$1.MatIcon, MatInputModule, i2$2.MatInput, MatToolbarModule, i8.MatToolbar, MatTooltipModule, i5.MatTooltip, EmptyStateComponent], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.lib-selection-options-editor__listbox[_ngcontent-%COMP%]{display:flex;overflow-x:auto}.lib-selection-options-editor__chip[_ngcontent-%COMP%]{min-width:fit-content}.lib-selection-options-editor__toolbar[_ngcontent-%COMP%]{padding:0;background:transparent}.lib-selection-options-editor__add[_ngcontent-%COMP%]{width:100%}.lib-selection-options-editor__card[_ngcontent-%COMP%]{background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting)}.lib-selection-options-editor__field[_ngcontent-%COMP%]{width:100%;background:var(--lib-forms-surface)}.lib-selection-options-editor__field[_ngcontent-%COMP%] + .lib-selection-options-editor__field[_ngcontent-%COMP%]{margin-top:1.5rem}"], changeDetection: 0 }); }
253
- }
254
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectionOptionsEditorComponent, [{
255
- type: Component,
256
- args: [{ selector: 'lib-selection-options-editor', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: {
257
- 'class': 'lib-selection-options-editor',
258
- '[attr.id]': 'hostId',
259
- }, imports: [
260
- ReactiveFormsModule,
261
- MatButtonModule,
262
- MatCardModule,
263
- MatChipsModule,
264
- MatFormFieldModule,
265
- MatIconModule,
266
- MatInputModule,
267
- MatToolbarModule,
268
- MatTooltipModule,
269
- EmptyStateComponent,
270
- ], template: "@if (optionList().length) {\n <mat-chip-listbox\n class=\"lib-selection-options-editor__listbox\"\n aria-label=\"Option selection\"\n [disabled]=\"disabled()\">\n @for (option of optionList(); track option.id) {\n <mat-chip-option\n class=\"lib-selection-options-editor__chip\"\n color=\"accent\"\n [value]=\"option.value\"\n [selected]=\"inEdit()?.id === option.id\"\n (click)=\"startEdit(option)\">\n {{ option.label }}\n <button\n matChipRemove\n [attr.aria-label]=\"'Remove ' + option.label\"\n (click)=\"$event.stopPropagation(); remove(option)\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-option>\n }\n </mat-chip-listbox>\n} @else if (!isEditing()) {\n <lib-empty-state icon=\"list_alt\" message=\"No options yet\" />\n}\n\n@if (!isEditing()) {\n <mat-toolbar class=\"lib-selection-options-editor__toolbar\">\n <button\n class=\"lib-selection-options-editor__add\"\n mat-stroked-button\n [disabled]=\"disabled()\"\n (click)=\"add()\">\n Add an option <mat-icon>add</mat-icon>\n </button>\n </mat-toolbar>\n} @else {\n <mat-card class=\"lib-selection-options-editor__card\" appearance=\"outlined\">\n <mat-card-header>\n <mat-card-subtitle>{{ inEdit() ? 'Edit Option' : 'Add New Option' }}</mat-card-subtitle>\n </mat-card-header>\n\n <mat-card-content>\n <form [formGroup]=\"form\">\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Display Text</mat-label>\n <input\n type=\"text\"\n matInput\n formControlName=\"label\"\n placeholder=\"Enter option text\"\n (blur)=\"autoFillValueFromLabel()\" />\n <mat-hint>The text users will see and select from the list.</mat-hint>\n </mat-form-field>\n\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Stored Value</mat-label>\n <input type=\"text\" matInput formControlName=\"value\" placeholder=\"Enter data value\" />\n <button\n matSuffix\n mat-icon-button\n matTooltip=\"Toggle auto-creation of value from display text\"\n [color]=\"isAutoCamelCase() ? 'primary' : ''\"\n (click)=\"toggleAutoCamelCase()\">\n <mat-icon>{{ isAutoCamelCase() ? 'drive_file_rename_outline' : 'edit_off' }}</mat-icon>\n </button>\n <mat-hint>The value saved when this option is chosen. (Often an ID or code)</mat-hint>\n </mat-form-field>\n </form>\n </mat-card-content>\n\n <mat-card-actions>\n <button mat-button (click)=\"closeEdit()\">Cancel</button>\n <button mat-flat-button [disabled]=\"form.invalid\" (click)=\"save()\">\n {{ inEdit() ? 'Save Changes' : 'Add Option' }}\n </button>\n </mat-card-actions>\n </mat-card>\n}\n", styles: [":host{display:flex;flex-direction:column;gap:1.5rem}.lib-selection-options-editor__listbox{display:flex;overflow-x:auto}.lib-selection-options-editor__chip{min-width:fit-content}.lib-selection-options-editor__toolbar{padding:0;background:transparent}.lib-selection-options-editor__add{width:100%}.lib-selection-options-editor__card{background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting)}.lib-selection-options-editor__field{width:100%;background:var(--lib-forms-surface)}.lib-selection-options-editor__field+.lib-selection-options-editor__field{margin-top:1.5rem}\n"] }]
271
- }], null, { errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] }); })();
272
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectionOptionsEditorComponent, { className: "SelectionOptionsEditorComponent", filePath: "lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.ts", lineNumber: 87 }); })();
273
-
274
- export { SelectionOptionsEditorComponent };
275
- //# sourceMappingURL=ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-t-forms-selection-options-editor.component-_glw1cqH.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.ts"],"sourcesContent":["@if (optionList().length) {\n <mat-chip-listbox\n class=\"lib-selection-options-editor__listbox\"\n aria-label=\"Option selection\"\n [disabled]=\"disabled()\">\n @for (option of optionList(); track option.id) {\n <mat-chip-option\n class=\"lib-selection-options-editor__chip\"\n color=\"accent\"\n [value]=\"option.value\"\n [selected]=\"inEdit()?.id === option.id\"\n (click)=\"startEdit(option)\">\n {{ option.label }}\n <button\n matChipRemove\n [attr.aria-label]=\"'Remove ' + option.label\"\n (click)=\"$event.stopPropagation(); remove(option)\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-option>\n }\n </mat-chip-listbox>\n} @else if (!isEditing()) {\n <lib-empty-state icon=\"list_alt\" message=\"No options yet\" />\n}\n\n@if (!isEditing()) {\n <mat-toolbar class=\"lib-selection-options-editor__toolbar\">\n <button\n class=\"lib-selection-options-editor__add\"\n mat-stroked-button\n [disabled]=\"disabled()\"\n (click)=\"add()\">\n Add an option <mat-icon>add</mat-icon>\n </button>\n </mat-toolbar>\n} @else {\n <mat-card class=\"lib-selection-options-editor__card\" appearance=\"outlined\">\n <mat-card-header>\n <mat-card-subtitle>{{ inEdit() ? 'Edit Option' : 'Add New Option' }}</mat-card-subtitle>\n </mat-card-header>\n\n <mat-card-content>\n <form [formGroup]=\"form\">\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Display Text</mat-label>\n <input\n type=\"text\"\n matInput\n formControlName=\"label\"\n placeholder=\"Enter option text\"\n (blur)=\"autoFillValueFromLabel()\" />\n <mat-hint>The text users will see and select from the list.</mat-hint>\n </mat-form-field>\n\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Stored Value</mat-label>\n <input type=\"text\" matInput formControlName=\"value\" placeholder=\"Enter data value\" />\n <button\n matSuffix\n mat-icon-button\n matTooltip=\"Toggle auto-creation of value from display text\"\n [color]=\"isAutoCamelCase() ? 'primary' : ''\"\n (click)=\"toggleAutoCamelCase()\">\n <mat-icon>{{ isAutoCamelCase() ? 'drive_file_rename_outline' : 'edit_off' }}</mat-icon>\n </button>\n <mat-hint>The value saved when this option is chosen. (Often an ID or code)</mat-hint>\n </mat-form-field>\n </form>\n </mat-card-content>\n\n <mat-card-actions>\n <button mat-button (click)=\"closeEdit()\">Cancel</button>\n <button mat-flat-button [disabled]=\"form.invalid\" (click)=\"save()\">\n {{ inEdit() ? 'Save Changes' : 'Add Option' }}\n </button>\n </mat-card-actions>\n </mat-card>\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n PLATFORM_ID,\n ViewEncapsulation,\n computed,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n FormControl,\n FormGroup,\n NonNullableFormBuilder,\n ReactiveFormsModule,\n Validators,\n} from '@angular/forms';\n\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\nimport { v4 as uuidv4 } from 'uuid';\n\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\n\n/** A single selectable option managed by the editor. */\ninterface Option {\n /** Stable identifier, generated once per option and never reassigned. */\n id: string;\n /** Display text the end user sees in the rendered form. */\n label: string;\n /** Stored value persisted when the option is chosen. */\n value: string;\n}\n\n/** Reactive form shape backing the add/edit card. */\ntype OptionForm = FormGroup<{\n label: FormControl<string>;\n value: FormControl<string>;\n}>;\n\nlet nextUniqueId = 0;\n\n/**\n * Editor for a list of selectable `{ id, label, value }` options. Renders inside\n * `t-dynamic-data-edit`, which supplies the field label, hint, and validation\n * errors — so this component owns only the chip list plus the add/edit card.\n *\n * @example\n * <lib-selection-options-editor\n * [options]=\"options()\"\n * [disabled]=\"disabled()\"\n * (valueChanged)=\"onOptions($event)\" />\n */\n@Component({\n selector: 'lib-selection-options-editor',\n templateUrl: './selection-options-editor.component.html',\n styleUrl: './selection-options-editor.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n 'class': 'lib-selection-options-editor',\n '[attr.id]': 'hostId',\n },\n imports: [\n ReactiveFormsModule,\n MatButtonModule,\n MatCardModule,\n MatChipsModule,\n MatFormFieldModule,\n MatIconModule,\n MatInputModule,\n MatToolbarModule,\n MatTooltipModule,\n EmptyStateComponent,\n ],\n})\nexport class SelectionOptionsEditorComponent {\n /** Validation errors surfaced by the parent (kept for contract parity). */\n readonly errors = input<IConfigElementError[] | undefined>([]);\n\n /** Disables interaction with the chip list and the add control. */\n readonly disabled = input<boolean>(false);\n\n /** Current set of options to edit. */\n readonly options = input<readonly Option[]>([]);\n\n /** Fires the full option list whenever it is added to, edited, or pruned. */\n readonly valueChanged = output<Option[]>();\n\n /** Stable host id used by the parent's `[attr.id]` binding. */\n readonly hostId = `app-selection-options-editor-${nextUniqueId++}`;\n\n readonly #platformId = inject(PLATFORM_ID);\n readonly #document = inject(DOCUMENT);\n readonly #fb = inject(NonNullableFormBuilder);\n\n /** Option being edited (existing) or added (no id yet); `null` when closed. */\n protected readonly inEdit = signal<Option | null>(null);\n\n /** Whether the editor is in \"add new\" mode (open card, no existing id). */\n protected readonly isAdding = signal<boolean>(false);\n\n /** When true, an empty value auto-fills from the camelCased label on blur. */\n protected readonly isAutoCamelCase = signal<boolean>(true);\n\n /** Live snapshot of the upstream options, defensively normalised to an array. */\n protected readonly optionList = computed<readonly Option[]>(() => this.options() ?? []);\n\n /** Whether the add/edit card is currently open. */\n protected readonly isEditing = computed<boolean>(\n () => this.isAdding() || this.inEdit() !== null,\n );\n\n /** Reactive form for the open add/edit card. */\n protected readonly form: OptionForm = this.#fb.group({\n label: this.#fb.control('', Validators.required),\n value: this.#fb.control('', Validators.required),\n });\n\n /** Opens the card to add a new option. */\n protected add(): void {\n this.inEdit.set(null);\n this.isAdding.set(true);\n this.#resetForm('', '');\n }\n\n /** Opens the card to edit an existing option. */\n protected startEdit(option: Option): void {\n this.isAdding.set(false);\n this.inEdit.set(option);\n this.#resetForm(option.label, option.value);\n }\n\n /** Closes the card without persisting changes. */\n protected closeEdit(): void {\n this.inEdit.set(null);\n this.isAdding.set(false);\n }\n\n /** Removes an option after browser confirmation, then emits the new list. */\n protected remove(option: Option): void {\n if (!isPlatformBrowser(this.#platformId)) return;\n const win = this.#document.defaultView;\n if (!win) return;\n if (!win.confirm(`Are you sure you want to delete the option \"${option.label}\"?`)) return;\n\n this.valueChanged.emit(this.optionList().filter((o) => o.id !== option.id));\n if (this.inEdit()?.id === option.id) this.closeEdit();\n }\n\n /** Persists the open card as a new or updated option, then emits the list. */\n protected save(): void {\n if (this.form.invalid) return;\n\n const { label, value } = this.form.getRawValue();\n const editing = this.inEdit();\n const next = editing\n ? this.optionList().map((o) => (o.id === editing.id ? { ...o, label, value } : o))\n : [...this.optionList(), { id: uuidv4(), label, value }];\n\n this.valueChanged.emit(next);\n this.closeEdit();\n }\n\n /** Toggles auto-camelCase generation of an empty value from the label. */\n protected toggleAutoCamelCase(): void {\n this.isAutoCamelCase.update((on) => !on);\n }\n\n /**\n * Fills an empty `value` with the camelCased `label` on label blur. A value\n * the user already set is never overwritten.\n */\n protected autoFillValueFromLabel(): void {\n if (!this.isAutoCamelCase()) return;\n const label = this.form.controls.label.value.trim();\n if (label && !this.form.controls.value.value) {\n this.form.controls.value.setValue(this.#camelCase(label));\n }\n }\n\n /** Resets the form to the supplied label/value pair. */\n #resetForm(label: string, value: string): void {\n this.form.reset({ label, value });\n }\n\n /** Native camelCase: identical output to the previous lodash dependency. */\n #camelCase(input: string): string {\n const words = input\n .replace(/[^A-Za-z0-9]+/g, ' ')\n .replace(/([a-z0-9])([A-Z])/g, '$1 $2')\n .trim()\n .toLowerCase()\n .split(/\\s+/)\n .filter((w) => w.length > 0);\n return words\n .map((word, i) => (i === 0 ? word : word.charA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