ngx-t-forms 3.1.1 → 3.1.2

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 (113) hide show
  1. package/fesm2022/{ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs → ngx-t-forms-api-endpoint-config.component-B9tCHtwV.mjs} +6 -6
  2. package/fesm2022/{ngx-t-forms-api-endpoint-config.component-CZm3Z_7B.mjs.map → ngx-t-forms-api-endpoint-config.component-B9tCHtwV.mjs.map} +1 -1
  3. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs → ngx-t-forms-auto-complete-input-element.component-D2Vty1Aj.mjs} +2 -2
  4. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-IciY6hb3.mjs.map → ngx-t-forms-auto-complete-input-element.component-D2Vty1Aj.mjs.map} +1 -1
  5. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs → ngx-t-forms-basic-input-input-element.component-Dr2bhCnH.mjs} +3 -3
  6. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-CykKxWu0.mjs.map → ngx-t-forms-basic-input-input-element.component-Dr2bhCnH.mjs.map} +1 -1
  7. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs → ngx-t-forms-calculated-field-rules.component-DLBTjfMj.mjs} +2 -2
  8. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-CwI-WEX7.mjs.map → ngx-t-forms-calculated-field-rules.component-DLBTjfMj.mjs.map} +1 -1
  9. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs → ngx-t-forms-chip-options-creator-editor.component-Bh6jMmtu.mjs} +2 -2
  10. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CO_3EQ_v.mjs.map → ngx-t-forms-chip-options-creator-editor.component-Bh6jMmtu.mjs.map} +1 -1
  11. package/fesm2022/{ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs → ngx-t-forms-conditional-display-config.component-ayrWl-c2.mjs} +2 -2
  12. package/fesm2022/{ngx-t-forms-conditional-display-config.component-Cmf7gDfO.mjs.map → ngx-t-forms-conditional-display-config.component-ayrWl-c2.mjs.map} +1 -1
  13. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-nOnJfMTo.mjs} +2 -2
  14. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-BHiOEQe4.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-nOnJfMTo.mjs.map} +1 -1
  15. package/fesm2022/{ngx-t-forms-data-source-picker.component-CN51SdCK.mjs → ngx-t-forms-data-source-picker.component-mmyhOBvA.mjs} +6 -6
  16. package/fesm2022/{ngx-t-forms-data-source-picker.component-CN51SdCK.mjs.map → ngx-t-forms-data-source-picker.component-mmyhOBvA.mjs.map} +1 -1
  17. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs → ngx-t-forms-date-picker-input-element.component-DmiBra1D.mjs} +2 -2
  18. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-c3OSDXWw.mjs.map → ngx-t-forms-date-picker-input-element.component-DmiBra1D.mjs.map} +1 -1
  19. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs → ngx-t-forms-date-range-picker-input-element.component-Cke5qSzR.mjs} +2 -2
  20. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-C-4fqOF0.mjs.map → ngx-t-forms-date-range-picker-input-element.component-Cke5qSzR.mjs.map} +1 -1
  21. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs → ngx-t-forms-document-list-label-config-editor.component-C0xx4jrN.mjs} +3 -3
  22. package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-DLzba2AQ.mjs.map → ngx-t-forms-document-list-label-config-editor.component-C0xx4jrN.mjs.map} +1 -1
  23. package/fesm2022/{ngx-t-forms-document-picker.component-9clYsOcl.mjs → ngx-t-forms-document-picker.component-DI7wtEv6.mjs} +2 -2
  24. package/fesm2022/{ngx-t-forms-document-picker.component-9clYsOcl.mjs.map → ngx-t-forms-document-picker.component-DI7wtEv6.mjs.map} +1 -1
  25. package/fesm2022/{ngx-t-forms-editor-js-input.component-02HnmInT.mjs → ngx-t-forms-editor-input-element.component-DbogKrdk.mjs} +46 -191
  26. package/fesm2022/ngx-t-forms-editor-input-element.component-DbogKrdk.mjs.map +1 -0
  27. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs → ngx-t-forms-file-upload-input-element.component-DbwvZghJ.mjs} +2 -2
  28. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BF7KbSPb.mjs.map → ngx-t-forms-file-upload-input-element.component-DbwvZghJ.mjs.map} +1 -1
  29. package/fesm2022/{ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs → ngx-t-forms-form-input-selector.component-CkuzNdjx.mjs} +2 -3
  30. package/fesm2022/{ngx-t-forms-form-input-selector.component-vCj2SCxs.mjs.map → ngx-t-forms-form-input-selector.component-CkuzNdjx.mjs.map} +1 -1
  31. package/fesm2022/{ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs → ngx-t-forms-form-json-view.component-DBCpa_rZ.mjs} +2 -2
  32. package/fesm2022/{ngx-t-forms-form-json-view.component-Cmw1hHGZ.mjs.map → ngx-t-forms-form-json-view.component-DBCpa_rZ.mjs.map} +1 -1
  33. package/fesm2022/{ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs → ngx-t-forms-form-section-stepper.component-jLj6vePZ.mjs} +4 -4
  34. package/fesm2022/{ngx-t-forms-form-section-stepper.component-CFdwgxRl.mjs.map → ngx-t-forms-form-section-stepper.component-jLj6vePZ.mjs.map} +1 -1
  35. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs → ngx-t-forms-forms-builder-menu.component-Iyd0grju.mjs} +4 -4
  36. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DisrOv5x.mjs.map → ngx-t-forms-forms-builder-menu.component-Iyd0grju.mjs.map} +1 -1
  37. package/fesm2022/{ngx-t-forms-geo-location.component-D-BhLdx6.mjs → ngx-t-forms-geo-location.component-BUXRaPy0.mjs} +2 -2
  38. package/fesm2022/{ngx-t-forms-geo-location.component-D-BhLdx6.mjs.map → ngx-t-forms-geo-location.component-BUXRaPy0.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-header-template-editor.component-Z5frEhho.mjs → ngx-t-forms-header-template-editor.component-BLmAqiQA.mjs} +2 -3
  40. package/fesm2022/{ngx-t-forms-header-template-editor.component-Z5frEhho.mjs.map → ngx-t-forms-header-template-editor.component-BLmAqiQA.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs → ngx-t-forms-image-capture-input-element.component-D6Ffuhbv.mjs} +2 -2
  42. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-CoJTXMbL.mjs.map → ngx-t-forms-image-capture-input-element.component-D6Ffuhbv.mjs.map} +1 -1
  43. package/fesm2022/ngx-t-forms-index-CKj1Oacc.mjs +2 -0
  44. package/fesm2022/ngx-t-forms-index-CKj1Oacc.mjs.map +1 -0
  45. package/fesm2022/{ngx-t-forms-input-custom.component-s1ryJQy4.mjs → ngx-t-forms-input-custom.component-BMui37o-.mjs} +2 -2
  46. package/fesm2022/{ngx-t-forms-input-custom.component-s1ryJQy4.mjs.map → ngx-t-forms-input-custom.component-BMui37o-.mjs.map} +1 -1
  47. package/fesm2022/{ngx-t-forms-input-editor.component-oIzCTmbx.mjs → ngx-t-forms-input-editor.component-D60TpWzO.mjs} +3 -4
  48. package/fesm2022/{ngx-t-forms-input-editor.component-oIzCTmbx.mjs.map → ngx-t-forms-input-editor.component-D60TpWzO.mjs.map} +1 -1
  49. package/fesm2022/{ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs → ngx-t-forms-map-mat-options-keys-yfxnNDPs.mjs} +2 -2
  50. package/fesm2022/{ngx-t-forms-map-mat-options-keys-C1kxlZS_.mjs.map → ngx-t-forms-map-mat-options-keys-yfxnNDPs.mjs.map} +1 -1
  51. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs → ngx-t-forms-mat-chip-list-editor.component-cfBBan80.mjs} +2 -2
  52. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-wskkKr4y.mjs.map → ngx-t-forms-mat-chip-list-editor.component-cfBBan80.mjs.map} +1 -1
  53. package/fesm2022/{ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs → ngx-t-forms-missing-form-configs.component-BcYuduah.mjs} +2 -2
  54. package/fesm2022/{ngx-t-forms-missing-form-configs.component-C1XuXRdn.mjs.map → ngx-t-forms-missing-form-configs.component-BcYuduah.mjs.map} +1 -1
  55. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs → ngx-t-forms-mscoa-chart-toolbar.component-nLawxM9j.mjs} +2 -2
  56. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-BJrOTRuQ.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-nLawxM9j.mjs.map} +1 -1
  57. package/fesm2022/ngx-t-forms-mscoa-config.component-B9G_WlEc.mjs +594 -0
  58. package/fesm2022/ngx-t-forms-mscoa-config.component-B9G_WlEc.mjs.map +1 -0
  59. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs → ngx-t-forms-mscoa-segment-config.component-DKEEZ8MD.mjs} +2 -2
  60. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-GyKF31Ve.mjs.map → ngx-t-forms-mscoa-segment-config.component-DKEEZ8MD.mjs.map} +1 -1
  61. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs → ngx-t-forms-multiple-input-input-element.component-B99ANTUL.mjs} +34 -30
  62. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-B99ANTUL.mjs.map +1 -0
  63. package/fesm2022/{ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs → ngx-t-forms-ngx-t-forms-9BfJdjl4.mjs} +476 -44
  64. package/fesm2022/ngx-t-forms-ngx-t-forms-9BfJdjl4.mjs.map +1 -0
  65. package/fesm2022/{ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs → ngx-t-forms-paginated-selection-table-Bm5-5VWe.mjs} +2 -2
  66. package/fesm2022/{ngx-t-forms-paginated-selection-table-Bk77dBo9.mjs.map → ngx-t-forms-paginated-selection-table-Bm5-5VWe.mjs.map} +1 -1
  67. package/fesm2022/{ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs → ngx-t-forms-payload-template-editor.component-2hwGuKAB.mjs} +2 -3
  68. package/fesm2022/{ngx-t-forms-payload-template-editor.component-CVzOTLYE.mjs.map → ngx-t-forms-payload-template-editor.component-2hwGuKAB.mjs.map} +1 -1
  69. package/fesm2022/{ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs → ngx-t-forms-pipeline-generator.component-BvjT2zfL.mjs} +2 -2
  70. package/fesm2022/{ngx-t-forms-pipeline-generator.component-7Vfwaqnx.mjs.map → ngx-t-forms-pipeline-generator.component-BvjT2zfL.mjs.map} +1 -1
  71. package/fesm2022/ngx-t-forms-quill-input.component-BsuOKfZT.mjs +731 -0
  72. package/fesm2022/ngx-t-forms-quill-input.component-BsuOKfZT.mjs.map +1 -0
  73. package/fesm2022/{ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs → ngx-t-forms-record-list-manager.component-BK5nwwDp.mjs} +2 -2
  74. package/fesm2022/{ngx-t-forms-record-list-manager.component-CfZdqKhY.mjs.map → ngx-t-forms-record-list-manager.component-BK5nwwDp.mjs.map} +1 -1
  75. package/fesm2022/{ngx-t-forms-required-inputs.component-CK7NIhbq.mjs → ngx-t-forms-required-inputs.component-DiwMttVf.mjs} +2 -3
  76. package/fesm2022/{ngx-t-forms-required-inputs.component-CK7NIhbq.mjs.map → ngx-t-forms-required-inputs.component-DiwMttVf.mjs.map} +1 -1
  77. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs → ngx-t-forms-rest-api-call-setup.component-CBgG_f06.mjs} +2 -2
  78. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-YChv7Arm.mjs.map → ngx-t-forms-rest-api-call-setup.component-CBgG_f06.mjs.map} +1 -1
  79. package/fesm2022/{ngx-t-forms-section-report.component-DhSaf85h.mjs → ngx-t-forms-section-report.component-CyPpFiWS.mjs} +2 -2
  80. package/fesm2022/{ngx-t-forms-section-report.component-DhSaf85h.mjs.map → ngx-t-forms-section-report.component-CyPpFiWS.mjs.map} +1 -1
  81. package/fesm2022/{ngx-t-forms-select-input-element.component-D5HFzh35.mjs → ngx-t-forms-select-input-element.component-B2wr5_88.mjs} +2 -2
  82. package/fesm2022/{ngx-t-forms-select-input-element.component-D5HFzh35.mjs.map → ngx-t-forms-select-input-element.component-B2wr5_88.mjs.map} +1 -1
  83. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs → ngx-t-forms-selection-options-editor.component-BEZLG1Z8.mjs} +2 -2
  84. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BhmmJOco.mjs.map → ngx-t-forms-selection-options-editor.component-BEZLG1Z8.mjs.map} +1 -1
  85. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs → ngx-t-forms-textarea-input-element.component-Cmbd0krg.mjs} +2 -2
  86. package/fesm2022/{ngx-t-forms-textarea-input-element.component-DWEADTsz.mjs.map → ngx-t-forms-textarea-input-element.component-Cmbd0krg.mjs.map} +1 -1
  87. package/fesm2022/{ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs → ngx-t-forms-toggle-input-element.component-Dd_FcAoD.mjs} +2 -2
  88. package/fesm2022/{ngx-t-forms-toggle-input-element.component-XZi6kPnL.mjs.map → ngx-t-forms-toggle-input-element.component-Dd_FcAoD.mjs.map} +1 -1
  89. package/fesm2022/ngx-t-forms-token-binding-menu.component-CLpjkUnf.mjs +109 -0
  90. package/fesm2022/ngx-t-forms-token-binding-menu.component-CLpjkUnf.mjs.map +1 -0
  91. package/fesm2022/ngx-t-forms-token-text-input.component-DY04Z0fn.mjs +296 -0
  92. package/fesm2022/ngx-t-forms-token-text-input.component-DY04Z0fn.mjs.map +1 -0
  93. package/fesm2022/{ngx-t-forms-validators-config.component-0_Y6bvtE.mjs → ngx-t-forms-validators-config.component-Btmz2cKH.mjs} +2 -2
  94. package/fesm2022/{ngx-t-forms-validators-config.component-0_Y6bvtE.mjs.map → ngx-t-forms-validators-config.component-Btmz2cKH.mjs.map} +1 -1
  95. package/fesm2022/ngx-t-forms-workflow-adjudication.component-CT6sN9E4.mjs +2096 -0
  96. package/fesm2022/ngx-t-forms-workflow-adjudication.component-CT6sN9E4.mjs.map +1 -0
  97. package/fesm2022/ngx-t-forms.mjs +1 -1
  98. package/package.json +2 -2
  99. package/styles/_tokens.scss +6 -0
  100. package/types/ngx-t-forms.d.ts +53 -1
  101. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs +0 -417
  102. package/fesm2022/ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs.map +0 -1
  103. package/fesm2022/ngx-t-forms-editor-js-input.component-02HnmInT.mjs.map +0 -1
  104. package/fesm2022/ngx-t-forms-getInputIcon-B4ADgevZ.mjs +0 -31
  105. package/fesm2022/ngx-t-forms-getInputIcon-B4ADgevZ.mjs.map +0 -1
  106. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs +0 -2
  107. package/fesm2022/ngx-t-forms-index-D8xr_Sxp.mjs.map +0 -1
  108. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BrPJPR2R.mjs.map +0 -1
  109. package/fesm2022/ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs.map +0 -1
  110. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs +0 -173
  111. package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs.map +0 -1
  112. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs +0 -1303
  113. package/fesm2022/ngx-t-forms-workflow-adjudication.component-Gkimmw-X.mjs.map +0 -1
@@ -1,3 +1,3 @@
1
- export { K as DialogTemplateComponent, ai as FORM_ACTIONS_TOKEN, aj as FORM_CONFIG_TOKEN, ak as FORM_INPUTS_TOKEN, al as FORM_ROUTE_SOURCE, am as FORM_SLIDES_TOKEN, an as FORM_SUGGESTION_REGISTRY, L as FormBuilderComponent, ao as FormSuggestionRegistry, ap as FormSuggestionRegistryService, aq as FormTowerControllerService, a8 as FormatDataPipe, M as FormsComponent, ar as HttpPipelineRepository, as as IMPORT_TOWER_INSTANCE_ID, at as INPUT_SECRET_TOKEN, au as MSCOA_TREE_PROVIDER, av as MULTIPLE_FORM_INPUT_TOKEN, O as MscoaFormInputComponent, N as NGX_T_FORMS_CONFIG_TOKEN, aw as NgxTFormsComponent, ax as NgxTFormsService, ay as PIPELINE_REPOSITORY, az as PipelineRepository, aA as PropertyAccessError, S as SignatureInputElementComponent, T as TDynamicDataEditComponent, b as TDynamicDataViewComponent, aB as TFormImportController, Q as TFormInputComponent, aC as TSuggestionReviewComponent, aD as UTILS_OBJECT_TOKEN, U as UserFormStepperComponent, V as ValidationExpressioCreatorComponent, a as assignDeepPropertyToObject, aE as buildSuggestionSchema, aF as createFileFromBase64, aG as decryptSecuredInputValue, aH as formGenerator, aI as generateInputSecretKey, aJ as getPipedValueFromDataType, aK as getSampleValueForInput, aL as getSectionElements, R as getSignatureImage, aM as getUrl, aN as getValueFromValueAccessor, aO as initFormConfigToV2, aP as provideNgxTForms, aQ as returnDeepProperty, ad as returnMappedPathValue, k as safeReturnDeepProperty, aR as sheetConsolodation, t as testAgainstItem, aS as textIconsForUserHints, aT as toSuggestionBatch, aU as validateExpressionSyntax, aV as validateObjectAgainstString, aW as withFormSuggestions, aX as withHttpPipeline, aY as withInputSecret, aZ as withRouterFormId } from './ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs';
1
+ export { R as DialogTemplateComponent, an as FORM_ACTIONS_TOKEN, ao as FORM_CONFIG_TOKEN, ap as FORM_INPUTS_TOKEN, aq as FORM_ROUTE_SOURCE, ar as FORM_SLIDES_TOKEN, as as FORM_SUGGESTION_REGISTRY, S as FormBuilderComponent, at as FormSuggestionRegistry, au as FormSuggestionRegistryService, av as FormTowerControllerService, ad as FormatDataPipe, U as FormsComponent, aw as HttpPipelineRepository, ax as IMPORT_TOWER_INSTANCE_ID, ay as INPUT_SECRET_TOKEN, az as MSCOA_TREE_PROVIDER, aA as MULTIPLE_FORM_INPUT_TOKEN, V as MscoaFormInputComponent, N as NGX_T_FORMS_CONFIG_TOKEN, aB as NgxTFormsComponent, aC as NgxTFormsService, aD as PIPELINE_REPOSITORY, aE as PipelineRepository, aF as PropertyAccessError, W as SignatureInputElementComponent, T as TDynamicDataEditComponent, c as TDynamicDataViewComponent, aG as TFormImportController, X as TFormInputComponent, aH as TSuggestionReviewComponent, aI as UTILS_OBJECT_TOKEN, Y as UserFormStepperComponent, Z as ValidationExpressioCreatorComponent, a as assignDeepPropertyToObject, aJ as buildSuggestionSchema, aK as createFileFromBase64, aL as decryptSecuredInputValue, aM as formGenerator, aN as generateInputSecretKey, aO as getPipedValueFromDataType, aP as getSampleValueForInput, aQ as getSectionElements, $ as getSignatureImage, aR as getUrl, aS as getValueFromValueAccessor, aT as initFormConfigToV2, aU as provideNgxTForms, aV as returnDeepProperty, ai as returnMappedPathValue, Q as safeReturnDeepProperty, aW as sheetConsolodation, t as testAgainstItem, aX as textIconsForUserHints, aY as toSuggestionBatch, aZ as validateExpressionSyntax, a_ as validateObjectAgainstString, a$ as withFormSuggestions, b0 as withHttpPipeline, b1 as withInputSecret, b2 as withRouterFormId } from './ngx-t-forms-ngx-t-forms-9BfJdjl4.mjs';
2
2
  export { WorkflowFunctionTypes } from 'ngx-t-forms-types';
3
3
  //# sourceMappingURL=ngx-t-forms.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-t-forms",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Angular forms module for creating dynamic forms through configuration. Supports form validation, custom controls, and complex form structures.",
5
5
  "license": "UNLICENSED",
6
6
  "author": {
@@ -42,7 +42,7 @@
42
42
  "html5-qrcode": "^2.3.8",
43
43
  "katex": "^0.16.11",
44
44
  "mathjs": "^15.2.0",
45
- "ngx-t-forms-types": "^0.0.28",
45
+ "ngx-t-forms-types": "^0.0.29",
46
46
  "ngx-ui-tour-md-menu": "^16.0.0",
47
47
  "qrcode": "^1.5.4",
48
48
  "quill": "^2.0.3",
@@ -53,6 +53,12 @@
53
53
  --lib-forms-error-container: var(--mat-sys-error-container, #f9dedc);
54
54
  --lib-forms-on-error-container: var(--mat-sys-on-error-container, #410e0b);
55
55
 
56
+ // ---- Warning (semantic amber: user attention required, no blame) -------
57
+ // Used for advisory flags such as the abnormally-low-tender marker in the
58
+ // adjudication review. Always paired with an icon + tooltip text — colour
59
+ // is never the only signal. Consumers may override like any other token.
60
+ --lib-forms-warning: var(--sem-warning, #9a6700);
61
+
56
62
  // ---- Shadow colour (so component shadows stay tokenised) ---------------
57
63
  --lib-forms-shadow-color: var(--mat-sys-shadow, #000000);
58
64
 
@@ -1,7 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { Provider, EnvironmentProviders, InjectionToken, Signal, OnInit, OnDestroy, PipeTransform, Type, ElementRef } from '@angular/core';
3
3
  import * as ngx_t_forms_types from 'ngx-t-forms-types';
4
- import { NgxTFormsConfig, IFormActions, FormInterface, FormSlideInterface, InClassFormUtilsInterface, IWorkflowDocumentPicker, IBasicFormInput, IFileUploadInput, IDateRangePickerInput, ITextareaProperties, IToggleInput, IMatrixInput, IMultiple, IGetTreeResponse, IRunPipelineResponse, IPipelineGenerationResponse, InputDataTypes, FormInputBasicOptionInterface, LocalFormStateSelectorInterface, FormsStoreSelectorsInterface, FormListSection, ITowerFormSteps, WorkflowFunctionTypes, FileData, FormSubmissionStatus, IFormValidationOverride, FormColumnInputs, IFormChangeHistory, IStepOption, FormBuilderFunctions, ElementEditorTypes, ElementEditorInnerSectionElementInterface, ScoaInnerInput, IWorkflowOption, BlurHandleTypes, ITowerStepColumn, TreeNode, FlatNode, IArrayFunction, DocumentLitsLabelConfigInterfaceValueType, InputPipeTypes, EncryptedData, ImportProgress, ImportRowState, ValidationError, ElementTypes, DialogConfig, PropertyPath, DeepPropertyValue, FileUploadInputValueInterface, FormInterfaceMigration, ConfigurationValidTestInterface } from 'ngx-t-forms-types';
4
+ import { NgxTFormsConfig, IFormActions, FormInterface, FormSlideInterface, InClassFormUtilsInterface, IWorkflowDocumentPicker, IBasicFormInput, IFileUploadInput, IDateRangePickerInput, ITextareaProperties, IToggleInput, IMatrixInput, IMultiple, IGetTreeResponse, IRunPipelineResponse, IPipelineGenerationResponse, InputDataTypes, FormInputBasicOptionInterface, LocalFormStateSelectorInterface, FormsStoreSelectorsInterface, FormListSection, ITowerFormSteps, WorkflowFunctionTypes, FileData, FormSubmissionStatus, IFormValidationOverride, FormColumnInputs, IFormChangeHistory, IStepOption, FormBuilderFunctions, ElementEditorTypes, ElementEditorInnerSectionElementInterface, ITowerStepColumn, ScoaInnerInput, IWorkflowOption, BlurHandleTypes, TreeNode, FlatNode, IArrayFunction, DocumentLitsLabelConfigInterfaceValueType, InputPipeTypes, EncryptedData, ImportProgress, ImportRowState, ValidationError, ElementTypes, DialogConfig, PropertyPath, DeepPropertyValue, FileUploadInputValueInterface, FormInterfaceMigration, ConfigurationValidTestInterface } from 'ngx-t-forms-types';
5
5
  export { BlurHandleTypes, ConfigurationValidTestInterface, DeepPropertyValue, DialogConfig, DocumentLitsLabelConfigInterfaceValueType, ElementEditorInnerSectionElementInterface, ElementEditorTypes, EncryptedData, FileUploadInputValueInterface, FormBuilderFunctions, FormColumnInputs, FormInputBasicOptionInterface, FormInterface, FormInterfaceMigration, FormListSection, FormSubmissionStatus, IArrayFunction, IFormActions, IFormChangeHistory, IFormTour, IFormValidationOverride, IGetTreeResponse, IScoaAccount, ITowerStepColumn, IWorkflowOption, ImportProgress, ImportRowState, ImportRowStatus, InClassFormUtilsInterface, InputDataTypes, InputPipeTypes, LocalFormStateSelectorInterface, NgxTFormsConfig, OLD_FormInterface, PropertyPath, TreeNode, ValidationError, WorkflowFunctionTypes } from 'ngx-t-forms-types';
6
6
  import * as rxjs from 'rxjs';
7
7
  import { Observable, Subject } from 'rxjs';
@@ -1760,6 +1760,31 @@ declare class UserFormStepperComponent {
1760
1760
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserFormStepperComponent, "lib-user-form-stepper", never, { "formId": { "alias": "formId"; "required": false; "isSignal": true; }; "initialValues": { "alias": "initialValues"; "required": false; "isSignal": true; }; "globalSystemInputs": { "alias": "globalSystemInputs"; "required": false; "isSignal": true; }; "passParamsOnSubmit": { "alias": "passParamsOnSubmit"; "required": false; "isSignal": true; }; "showAiSuggestions": { "alias": "showAiSuggestions"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1761
1761
  }
1762
1762
 
1763
+ /**
1764
+ * An insertable binding surfaced by the `$`-trigger menu. The editor stays
1765
+ * agnostic of any token syntax: it inserts `insert` verbatim and filters by
1766
+ * `searchText` (falling back to `label`).
1767
+ */
1768
+ interface EditorBinding {
1769
+ /** Human label shown (prominently) in the menu — never the raw id. */
1770
+ readonly label: string;
1771
+ /** The exact text inserted at the caret when chosen (e.g. `"{{contractType}}"`). */
1772
+ readonly insert: string;
1773
+ /** Text matched against the user's `$`-filter; defaults to {@link label}. */
1774
+ readonly searchText?: string;
1775
+ /** Optional Material icon name shown beside the label. */
1776
+ readonly icon?: string;
1777
+ /** Optional muted secondary line (e.g. field type) that disambiguates same-named fields. */
1778
+ readonly detail?: string;
1779
+ /**
1780
+ * Other token contents that should also be recognised as *this* field (e.g. the
1781
+ * raw id when {@link insert} carries a friendly label). A `{{token}}` whose
1782
+ * trimmed content matches {@link insert}'s content or any alias renders as a
1783
+ * valid (clickable) pill; anything else is flagged as unrecognised.
1784
+ */
1785
+ readonly aliases?: readonly string[];
1786
+ }
1787
+
1763
1788
  interface IConfigElementError {
1764
1789
  key: string;
1765
1790
  message: string;
@@ -1799,6 +1824,33 @@ declare class TDynamicDataEditComponent {
1799
1824
  readonly editorConfig: _angular_core.InputSignal<ElementEditorInnerSectionElementInterface | undefined>;
1800
1825
  /** The set of inputs the editor can reference (used by expression / value-access editors). */
1801
1826
  readonly formInputs: _angular_core.InputSignal<FormColumnInputs[]>;
1827
+ /**
1828
+ * Bindings for the `$`-trigger picker on
1829
+ * {@link ElementEditorTypes.TokenTextInput} and
1830
+ * {@link ElementEditorTypes.RichTextEditor}.
1831
+ *
1832
+ * TWO SOURCES, config first. The workflow step editor passes
1833
+ * `formInputs: []` and resolves every picker's option pool onto the element
1834
+ * config instead (see `stepEditorSections$` in `ngx-t-workflows`) — for those
1835
+ * hosts `editorConfig().bindings` is the ONLY channel, and deriving from the
1836
+ * empty `formInputs` here is exactly the bug that made the `$` menu open with
1837
+ * nothing. The form builder does pass real `formInputs`, so when no config
1838
+ * bindings are present they are derived the same way the payload and header
1839
+ * template editors derive theirs (`_shared/field-bindings.ts`), keeping the
1840
+ * label + inserted spelling identical everywhere.
1841
+ */
1842
+ protected readonly tokenBindings: _angular_core.Signal<readonly EditorBinding[]>;
1843
+ /**
1844
+ * Column config for the rich-text editor.
1845
+ *
1846
+ * `QuillInputComponent.inputConfig` is `input.required<ITowerStepColumn>` and
1847
+ * it reads `placeholder`, `readonly` and `disabled` off it to build its
1848
+ * options. The previous binding passed `$any(data())` — the object being
1849
+ * edited — so the editor got a shape with none of those fields and came up
1850
+ * empty. Synthesising a real column here keeps the cast out of the template
1851
+ * and gives Quill the three values it actually uses.
1852
+ */
1853
+ protected readonly richTextInputConfig: _angular_core.Signal<ITowerStepColumn>;
1802
1854
  /**
1803
1855
  * Current value being edited; resets the value pipeline when changed by reference.
1804
1856
  * @remarks Heterogeneous across consumers (ITowerStepColumn, plain records, etc.),
@@ -1,417 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ElementRef, input, output, signal, computed, viewChild, PLATFORM_ID, Input, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import * as i1 from '@angular/forms';
4
- import { NgControl, ReactiveFormsModule } from '@angular/forms';
5
- import * as i2 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$1 from '@angular/material/button';
10
- import { MatButtonModule } from '@angular/material/button';
11
- import * as i5 from '@angular/material/tooltip';
12
- import { MatTooltipModule } from '@angular/material/tooltip';
13
- import { RichTextEditorType } from 'ngx-t-forms-types';
14
- import { W as BaseCustomInput, _ as _isEqual, X as getInputErrorMessage, Y as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-DqAcUfN4.mjs';
15
- import { E as EditorFullScreenHost, a as EditorFullScreenToggleComponent, b as EditorJsInputComponent } from './ngx-t-forms-editor-js-input.component-02HnmInT.mjs';
16
- import { DOCUMENT, isPlatformBrowser } from '@angular/common';
17
-
18
- const svg = (body) => `<svg viewBox="0 0 18 18">${body}</svg>`;
19
- /**
20
- * Word-like table toolkit backed by Quill's native table module. Each control degrades to a
21
- * no-op when the caret is outside a table, so the buttons are always safe to press.
22
- */
23
- const QUILL_TABLE_CONTROLS = [
24
- {
25
- format: 'table-insert',
26
- title: 'Insert table (3×3)',
27
- icon: svg('<rect class="ql-stroke" fill="none" x="3" y="4" width="12" height="10" rx="1"></rect><line class="ql-stroke" x1="3" y1="7.3" x2="15" y2="7.3"></line><line class="ql-stroke" x1="3" y1="10.6" x2="15" y2="10.6"></line><line class="ql-stroke" x1="7" y1="4" x2="7" y2="14"></line><line class="ql-stroke" x1="11" y1="4" x2="11" y2="14"></line>'),
28
- run: table => table.insertTable(3, 3),
29
- },
30
- {
31
- format: 'table-row',
32
- title: 'Insert row below',
33
- icon: svg('<rect class="ql-stroke" fill="none" x="3" y="3" width="12" height="6" rx="1"></rect><line class="ql-stroke" x1="9" y1="11" x2="9" y2="15"></line><line class="ql-stroke" x1="7" y1="13" x2="11" y2="13"></line>'),
34
- run: table => table.insertRowBelow(),
35
- },
36
- {
37
- format: 'table-column',
38
- title: 'Insert column right',
39
- icon: svg('<rect class="ql-stroke" fill="none" x="3" y="3" width="6" height="12" rx="1"></rect><line class="ql-stroke" x1="13" y1="6" x2="13" y2="12"></line><line class="ql-stroke" x1="11" y1="9" x2="15" y2="9"></line>'),
40
- run: table => table.insertColumnRight(),
41
- },
42
- {
43
- format: 'table-delete-row',
44
- title: 'Delete row',
45
- icon: svg('<rect class="ql-stroke" fill="none" x="3" y="3" width="12" height="6" rx="1"></rect><line class="ql-stroke" x1="7" y1="13" x2="11" y2="13"></line>'),
46
- run: table => table.deleteRow(),
47
- },
48
- {
49
- format: 'table-delete-column',
50
- title: 'Delete column',
51
- icon: svg('<rect class="ql-stroke" fill="none" x="3" y="3" width="6" height="12" rx="1"></rect><line class="ql-stroke" x1="11" y1="9" x2="15" y2="9"></line>'),
52
- run: table => table.deleteColumn(),
53
- },
54
- {
55
- format: 'table-delete',
56
- title: 'Delete table',
57
- icon: svg('<rect class="ql-stroke" fill="none" x="3" y="3" width="12" height="12" rx="1"></rect><line class="ql-stroke" x1="5.5" y1="5.5" x2="12.5" y2="12.5"></line><line class="ql-stroke" x1="12.5" y1="5.5" x2="5.5" y2="12.5"></line>'),
58
- run: table => table.deleteTable(),
59
- },
60
- ];
61
- /**
62
- * Human-readable tooltips for the built-in controls, keyed by the button's CSS selector.
63
- * Quill ships no titles of its own, so these make the toolbar self-explanatory.
64
- */
65
- const QUILL_BUILTIN_TITLES = {
66
- '.ql-bold': 'Bold',
67
- '.ql-italic': 'Italic',
68
- '.ql-underline': 'Underline',
69
- '.ql-strike': 'Strikethrough',
70
- '.ql-blockquote': 'Quote',
71
- '.ql-code-block': 'Code block',
72
- '.ql-link': 'Insert link',
73
- '.ql-image': 'Insert image',
74
- '.ql-video': 'Embed video',
75
- '.ql-clean': 'Clear formatting',
76
- '.ql-list[value="ordered"]': 'Numbered list',
77
- '.ql-list[value="bullet"]': 'Bulleted list',
78
- '.ql-list[value="check"]': 'Checklist',
79
- '.ql-script[value="sub"]': 'Subscript',
80
- '.ql-script[value="super"]': 'Superscript',
81
- '.ql-indent[value="-1"]': 'Decrease indent',
82
- '.ql-indent[value="+1"]': 'Increase indent',
83
- '.ql-direction[value="rtl"]': 'Right-to-left',
84
- '.ql-color': 'Text colour',
85
- '.ql-background': 'Highlight colour',
86
- '.ql-align': 'Alignment',
87
- '.ql-header': 'Heading',
88
- '.ql-font': 'Font',
89
- '.ql-size': 'Font size',
90
- };
91
- /**
92
- * Comprehensive, logically grouped "snow" toolbar — headings/fonts, inline styling, colour,
93
- * scripts, lists, indentation/alignment, blocks, media and a native table toolkit.
94
- */
95
- const TOOLBAR_CONTAINER = [
96
- [{ header: [1, 2, 3, 4, 5, 6, false] }, { font: [] }, { size: ['small', false, 'large', 'huge'] }],
97
- ['bold', 'italic', 'underline', 'strike'],
98
- [{ color: [] }, { background: [] }],
99
- [{ script: 'sub' }, { script: 'super' }],
100
- [{ list: 'ordered' }, { list: 'bullet' }, { list: 'check' }],
101
- [{ indent: '-1' }, { indent: '+1' }, { align: [] }, { direction: 'rtl' }],
102
- ['blockquote', 'code-block'],
103
- ['link', 'image', 'video'],
104
- QUILL_TABLE_CONTROLS.map(control => control.format),
105
- ['clean']
106
- ];
107
- /**
108
- * Builds the toolbar handler map for the custom table buttons.
109
- *
110
- * These MUST be supplied in the toolbar config (not added later via `addHandler`): Quill's
111
- * toolbar skips attaching a click listener to any button whose format is neither a registered
112
- * blot nor already present in `handlers` at construction time. A late `addHandler` sets the
113
- * handler but never re-attaches the listener, so the button stays inert.
114
- */
115
- const buildTableHandlers = () => {
116
- const handlers = {};
117
- for (const control of QUILL_TABLE_CONTROLS) {
118
- handlers[control.format] = function tableHandler() {
119
- const table = this.quill.getModule('table');
120
- // Native table ops bail when there is no selection; force focus + a range first.
121
- this.quill.getSelection(true);
122
- control.run(table);
123
- };
124
- }
125
- return handlers;
126
- };
127
- /**
128
- * Builds a ready-to-use `QuillOptions` for a "snow" editor with the native table module
129
- * enabled and the custom table-button handlers wired into the toolbar config.
130
- *
131
- * Browser-only by construction: callers MUST instantiate Quill behind an
132
- * `isPlatformBrowser(...)` guard because Quill touches `document` at construction time.
133
- */
134
- const buildQuillOptions = (payload) => ({
135
- theme: 'snow',
136
- readOnly: payload.readOnly,
137
- placeholder: payload.placeholder ?? "Let's write something amazing...",
138
- modules: {
139
- toolbar: {
140
- container: TOOLBAR_CONTAINER,
141
- handlers: buildTableHandlers()
142
- },
143
- table: true,
144
- history: { delay: 1000, maxStack: 100, userOnly: true },
145
- clipboard: { matchVisual: false }
146
- }
147
- });
148
- /**
149
- * Quill's empty document is a single trailing newline op. Treat that — and a literally
150
- * empty op-list — as "no value" so `required` validation behaves intuitively.
151
- */
152
- const isEmptyQuillDocument = (ops) => ops.length === 0 || (ops.length === 1 && ops[0]?.insert === '\n');
153
-
154
- /// <reference path="../../../../../../../types/quill.d.ts" />
155
- const customInputConfig = {
156
- controlType: 'lib-quill-input',
157
- nextId: 0
158
- };
159
- /**
160
- * Quill ("snow" theme) rich-text editor wired into Angular Material's form-field as a
161
- * custom `MatFormFieldControl`. The full Quill setup — toolbar, formats, history — lives in
162
- * `quill.config.ts`; this component owns lifecycle, SSR gating and value round-tripping.
163
- */
164
- class QuillInputComponent extends BaseCustomInput {
165
- /** Mirrors the CVA's disabled state into the signal graph so the template can react to it. */
166
- #controlDisabled;
167
- #platformId;
168
- #document;
169
- #changeHandler;
170
- #fullScreenHost;
171
- /** Guards against overlapping pop-out transitions (see `#toggleFullScreen`). */
172
- #toggling;
173
- constructor() {
174
- super(inject(NgControl, { optional: true, self: true }), inject(ElementRef), customInputConfig);
175
- this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
176
- this.valueChanged = output();
177
- /** Whether the editor is currently popped out to fill the screen. */
178
- this.fullScreen = signal(false, ...(ngDevMode ? [{ debugName: "fullScreen" }] : /* istanbul ignore next */ []));
179
- /** Mirrors the CVA's disabled state into the signal graph so the template can react to it. */
180
- this.#controlDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#controlDisabled" }] : /* istanbul ignore next */ []));
181
- /**
182
- * Read-only when either the column config or the reactive-form control says so. Drives both
183
- * Quill's own editable state and hiding the formatting toolbar, which is dead weight when
184
- * nothing can be edited.
185
- */
186
- this.readOnly = computed(() => {
187
- const config = this.inputConfig();
188
- return this.#controlDisabled() || config.readonly || config.disabled || false;
189
- }, ...(ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []));
190
- /**
191
- * Height the in-flow wrapper holds onto while the editor is popped out. Set from the editor's
192
- * measured height on the way in, cleared on the way out.
193
- */
194
- this.reservedHeight = signal(null, ...(ngDevMode ? [{ debugName: "reservedHeight" }] : /* istanbul ignore next */ []));
195
- this.editorHost = viewChild.required('editorHost');
196
- /**
197
- * The bordered surface Quill fills — toolbar included. This is what gets promoted to the
198
- * browser's top layer. (`viewChild` cannot sit on an ES-private field — NG1053.)
199
- */
200
- this.quillHost = viewChild.required('quillHost');
201
- this.#platformId = inject(PLATFORM_ID);
202
- this.#document = inject(DOCUMENT);
203
- /** Guards against overlapping pop-out transitions (see `#toggleFullScreen`). */
204
- this.#toggling = false;
205
- this._value = undefined;
206
- }
207
- get empty() {
208
- const n = this.value;
209
- return n === null || n === undefined;
210
- }
211
- get shouldLabelFloat() {
212
- return true;
213
- }
214
- set value(value) {
215
- if (!_isEqual(this._value, value)) {
216
- this._value = value;
217
- this.onChange(value);
218
- this.stateChanges.next();
219
- }
220
- }
221
- get value() {
222
- return this._value;
223
- }
224
- async ngAfterViewInit() {
225
- if (!isPlatformBrowser(this.#platformId))
226
- return;
227
- // Browser-only dynamic load — see the Trap 16 comment at the top of this file. The
228
- // CSS import injects Quill's global theme styles (Quill's runtime DOM is not view-scoped).
229
- const [{ default: Quill, Delta }] = await Promise.all([
230
- import('quill'),
231
- import('quill/dist/quill.snow.css')
232
- ]);
233
- this.#fullScreenHost = new EditorFullScreenHost(this.#document, () => this.#setFullScreen(false));
234
- const config = this.inputConfig();
235
- this.editor = new Quill(this.editorHost().nativeElement, buildQuillOptions({
236
- readOnly: this.readOnly(),
237
- placeholder: config.placeholder
238
- }));
239
- const initial = this.value;
240
- if (initial?.ops?.length) {
241
- this.editor.setContents(new Delta(initial.ops), 'silent');
242
- }
243
- // A `setDisabledState` that arrived before the editor existed is applied here.
244
- this.#applyReadOnly();
245
- this.#decorateToolbar();
246
- this.#changeHandler = () => this.contentChangedSaveValue();
247
- this.editor.on('text-change', this.#changeHandler);
248
- }
249
- /**
250
- * Quill ships no icons for custom buttons and no tooltips for any button. Inject themeable
251
- * SVG icons (their `ql-stroke` paths inherit the toolbar colour) and `title` tooltips so the
252
- * toolbar reads clearly in both light and dark mode.
253
- */
254
- #decorateToolbar() {
255
- const root = this._elementRef.nativeElement;
256
- for (const control of QUILL_TABLE_CONTROLS) {
257
- const button = root.querySelector(`.ql-${control.format}`);
258
- if (!button)
259
- continue;
260
- button.innerHTML = control.icon;
261
- button.setAttribute('title', control.title);
262
- }
263
- for (const [selector, title] of Object.entries(QUILL_BUILTIN_TITLES)) {
264
- root.querySelectorAll(selector).forEach(el => el.setAttribute('title', title));
265
- }
266
- }
267
- /**
268
- * Keeps Quill's own read-only state in step with the control's. The pop-out re-enables pointer
269
- * events on the popped-out surface (Material kills them field-wide when the control is
270
- * disabled), so this is what actually keeps a disabled field uneditable — the CSS no longer
271
- * does it.
272
- */
273
- setDisabledState(isDisabled) {
274
- super.setDisabledState(isDisabled);
275
- this.#controlDisabled.set(isDisabled);
276
- this.#applyReadOnly();
277
- }
278
- /** Pushes {@link readOnly} onto the Quill instance, which is not reactive. */
279
- #applyReadOnly() {
280
- this.editor?.enable(!this.readOnly());
281
- }
282
- /** Toggles the pop-out from the floating button. */
283
- toggleFullScreen() {
284
- void this.#toggleFullScreen();
285
- }
286
- /**
287
- * Pops the editor out to fill the screen, or restores it. Wired to the toolbar button, so it
288
- * always runs inside the click gesture the Fullscreen API requires — everything up to the
289
- * promotion is synchronous for that reason.
290
- */
291
- async #toggleFullScreen() {
292
- const fullScreenHost = this.#fullScreenHost;
293
- // Both transitions settle asynchronously; ignore clicks that land mid-flight rather than
294
- // letting a second `requestFullscreen()` race the first.
295
- if (!fullScreenHost || this.#toggling)
296
- return;
297
- this.#toggling = true;
298
- // Promotion re-lays the editor out, which drops the caret; put it back afterwards.
299
- // `getSelection()` without an argument reads the range without stealing focus.
300
- const selection = this.editor?.getSelection() ?? null;
301
- try {
302
- if (this.fullScreen()) {
303
- await fullScreenHost.exit();
304
- }
305
- else {
306
- const element = this.quillHost().nativeElement;
307
- this.reservedHeight.set(element.offsetHeight);
308
- await fullScreenHost.enter(element);
309
- }
310
- }
311
- finally {
312
- // `enter()` degrades rather than throwing, but `exit()` can reject if the browser refuses
313
- // to leave full screen. Either way the controller has already settled its own state, so
314
- // read it back instead of assuming the toggle succeeded.
315
- this.#setFullScreen(fullScreenHost.active);
316
- this.#restoreSelection(selection);
317
- this.#toggling = false;
318
- }
319
- }
320
- /**
321
- * Escape leaves the pop-out. Native full screen is torn down by the browser itself (picked up
322
- * through `fullscreenchange`); this covers the popover and fixed fallbacks. The event is
323
- * stopped so Escape closes the editor rather than an enclosing dialog.
324
- */
325
- onEscape(event) {
326
- if (!this.fullScreen())
327
- return;
328
- event.preventDefault();
329
- event.stopPropagation();
330
- void this.#toggleFullScreen();
331
- }
332
- /**
333
- * Single funnel for pop-out state, so the signal and the reserved space always agree —
334
- * including when the browser closed full screen on its own.
335
- */
336
- #setFullScreen(active) {
337
- this.fullScreen.set(active);
338
- if (!active)
339
- this.reservedHeight.set(null);
340
- }
341
- /** Returns the caret to where it was before the pop-out re-laid the editor out. */
342
- #restoreSelection(selection) {
343
- const editor = this.editor;
344
- if (!editor)
345
- return;
346
- if (selection)
347
- editor.setSelection(selection, 'silent');
348
- else
349
- editor.focus();
350
- }
351
- contentChangedSaveValue() {
352
- if (!this.editor)
353
- return;
354
- const ops = this.editor.getContents().ops;
355
- const value = isEmptyQuillDocument(ops) ? undefined : { ops };
356
- this.value = value;
357
- this.onChange(value);
358
- this.valueChanged.emit(value);
359
- }
360
- ngOnDestroy() {
361
- this.#fullScreenHost?.destroy();
362
- this.#fullScreenHost = undefined;
363
- if (this.editor && this.#changeHandler) {
364
- this.editor.off('text-change', this.#changeHandler);
365
- }
366
- this.editor = undefined;
367
- // Tear the editor down first, then let the base complete `stateChanges` / `destroy$` and
368
- // clear the temporary-error timer — none of which happened while this override skipped it.
369
- super.ngOnDestroy();
370
- }
371
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: QuillInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
372
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.12", type: QuillInputComponent, isStandalone: true, selector: "lib-quill-input", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, host: { listeners: { "keydown.escape": "onEscape($event)" }, properties: { "class.floating": "shouldLabelFloat", "id": "id" } }, providers: [{ provide: MatFormFieldControl, useExisting: QuillInputComponent }], viewQueries: [{ propertyName: "editorHost", first: true, predicate: ["editorHost"], descendants: true, isSignal: true }, { propertyName: "quillHost", first: true, predicate: ["quillHost"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "\r\n<!-- `.quill-shell` stays in the document flow and holds the editor's footprint while\r\n `.quill-host` is promoted to the browser's top layer for full screen. Without it the\r\n surrounding form-field collapses by the editor's height, and the page scroll position\r\n jumps when full screen is left. -->\r\n<div class=\"quill-shell\" [style.height.px]=\"reservedHeight()\">\r\n <div class=\"quill-host\" #quillHost [class.is-readonly]=\"readOnly()\">\r\n <div #editorHost></div>\r\n\r\n <!-- Floats over the editing surface rather than living in the toolbar, so it survives the\r\n toolbar being hidden in read-only mode. -->\r\n <lib-editor-full-screen-toggle\r\n [active]=\"fullScreen()\"\r\n (toggled)=\"toggleFullScreen()\"\r\n ></lib-editor-full-screen-toggle>\r\n </div>\r\n</div>\r\n", styles: [".quill-host{position:relative;border:solid 1px var(--mat-sys-outline-variant, var(--mat-app-outline));border-radius:6px;background:var(--mat-sys-surface-container-low, var(--mat-app-surface-container-low))}.quill-host>lib-editor-full-screen-toggle{position:absolute;right:16px;bottom:16px;z-index:2}.quill-host.is-readonly ::ng-deep .ql-toolbar.ql-snow{display:none}.quill-host.is-readonly ::ng-deep .ql-container.ql-snow{border-radius:6px}.quill-host ::ng-deep .ql-toolbar.ql-snow{border:none;border-bottom:solid 1px var(--mat-sys-outline-variant, var(--mat-app-outline));background:var(--mat-sys-surface-container, var(--mat-app-surface-container));padding:8px 10px;border-radius:6px 6px 0 0}.quill-host ::ng-deep .ql-container.ql-snow{border:none;border-radius:0 0 6px 6px;font-family:var(--mat-sys-body-large-font, inherit)}.quill-host ::ng-deep .ql-toolbar.ql-snow .ql-formats{margin-right:10px;padding-right:10px;border-right:1px solid var(--mat-sys-outline-variant, var(--mat-app-outline))}.quill-host ::ng-deep .ql-toolbar.ql-snow .ql-formats:last-child{border-right:none;padding-right:0}.quill-host ::ng-deep .ql-snow .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-stroke-miter{stroke:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-snow .ql-fill,.quill-host ::ng-deep .ql-snow .ql-stroke.ql-fill{fill:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-snow .ql-picker{color:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-toolbar.ql-snow button,.quill-host ::ng-deep .ql-toolbar.ql-snow .ql-picker-label{border-radius:4px;transition:background-color .3s cubic-bezier(.16,1,.3,1)}.quill-host ::ng-deep .ql-toolbar.ql-snow button:hover,.quill-host ::ng-deep .ql-toolbar.ql-snow button:focus,.quill-host ::ng-deep .ql-toolbar.ql-snow .ql-picker-label:hover{background-color:var(--mat-sys-surface-container-highest, var(--mat-app-surface-container-high))}.quill-host ::ng-deep .ql-snow.ql-toolbar button.ql-active,.quill-host ::ng-deep .ql-snow .ql-picker-label.ql-active,.quill-host ::ng-deep .ql-snow .ql-picker-item.ql-selected,.quill-host ::ng-deep .ql-snow.ql-toolbar button:hover,.quill-host ::ng-deep .ql-snow .ql-picker-item:hover{color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-snow.ql-toolbar button:hover .ql-stroke,.quill-host ::ng-deep .ql-snow.ql-toolbar button:focus .ql-stroke,.quill-host ::ng-deep .ql-snow.ql-toolbar button.ql-active .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-picker-label:hover .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-picker-label.ql-active .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-picker-item:hover .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-picker-item.ql-selected .ql-stroke{stroke:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-snow.ql-toolbar button:hover .ql-fill,.quill-host ::ng-deep .ql-snow.ql-toolbar button.ql-active .ql-fill,.quill-host ::ng-deep .ql-snow .ql-picker-label:hover .ql-fill,.quill-host ::ng-deep .ql-snow .ql-picker-label.ql-active .ql-fill{fill:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-snow .ql-picker-options{background-color:var(--mat-sys-surface-container-high, var(--mat-app-surface-container-high));border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));border-radius:6px;box-shadow:0 4px 12px #0000002e;color:var(--mat-sys-on-surface, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-editor{min-height:300px;font-size:.9375rem;line-height:1.7;color:var(--mat-sys-on-surface, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-editor.ql-blank:before{color:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface));font-style:normal;opacity:.7}.quill-host ::ng-deep .ql-editor a{color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-editor blockquote{border-left-color:var(--mat-sys-outline, var(--mat-app-outline));color:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-editor pre.ql-syntax,.quill-host ::ng-deep .ql-editor code{background-color:var(--mat-sys-surface-container-highest, var(--mat-app-surface-container-high));color:var(--mat-sys-on-surface, var(--mat-app-on-surface));border-radius:4px}.quill-host ::ng-deep .ql-editor table{border-collapse:collapse}.quill-host ::ng-deep .ql-editor td{border:1px solid var(--mat-sys-outline-variant, var(--mat-app-outline));padding:6px 10px}.quill-host ::ng-deep .ql-snow .ql-tooltip{background-color:var(--mat-sys-surface-container-high, var(--mat-app-surface-container-high));border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));border-radius:6px;box-shadow:0 4px 12px #0000002e;color:var(--mat-sys-on-surface, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-snow .ql-tooltip input[type=text]{background-color:var(--mat-sys-surface-container-low, var(--mat-app-surface-container-low));border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));color:var(--mat-sys-on-surface, var(--mat-app-on-surface));border-radius:4px}.quill-host ::ng-deep .ql-snow .ql-tooltip a.ql-action,.quill-host ::ng-deep .ql-snow .ql-tooltip a.ql-preview{color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-snow .ql-tooltip a.ql-remove{color:var(--mat-sys-error, var(--mat-app-error))}.quill-host.is-fullscreen{position:fixed;inset:0;z-index:1200;display:flex;flex-direction:column;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:none;border-radius:0;background:var(--mat-sys-surface, var(--mat-app-surface));overflow:visible;pointer-events:auto;animation:quill-full-screen-enter .4s cubic-bezier(.16,1,.3,1)}.quill-host.is-fullscreen::backdrop{background-color:var(--mat-sys-surface, var(--mat-app-surface))}.quill-host.is-fullscreen ::ng-deep .ql-toolbar.ql-snow{flex:0 0 auto;border-radius:0;padding:12px 16px}.quill-host.is-fullscreen ::ng-deep .ql-container.ql-snow{flex:1 1 auto;min-height:0;border-radius:0}.quill-host.is-fullscreen ::ng-deep .ql-editor{padding:2.5rem max(2rem,calc((100% - var(--lib-forms-editor-page-width, 210mm)) / 2))}.quill-host.is-fullscreen>lib-editor-full-screen-toggle{right:2rem;bottom:2rem}@keyframes quill-full-screen-enter{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.quill-host.is-fullscreen{animation:none}}\n"], dependencies: [{ kind: "component", type: EditorFullScreenToggleComponent, selector: "lib-editor-full-screen-toggle", inputs: ["active"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
373
- }
374
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: QuillInputComponent, decorators: [{
375
- type: Component,
376
- args: [{ selector: 'lib-quill-input', imports: [EditorFullScreenToggleComponent], host: {
377
- '[class.floating]': 'shouldLabelFloat',
378
- '[id]': 'id',
379
- '(keydown.escape)': 'onEscape($event)'
380
- }, providers: [{ provide: MatFormFieldControl, useExisting: QuillInputComponent }], changeDetection: ChangeDetectionStrategy.OnPush, template: "\r\n<!-- `.quill-shell` stays in the document flow and holds the editor's footprint while\r\n `.quill-host` is promoted to the browser's top layer for full screen. Without it the\r\n surrounding form-field collapses by the editor's height, and the page scroll position\r\n jumps when full screen is left. -->\r\n<div class=\"quill-shell\" [style.height.px]=\"reservedHeight()\">\r\n <div class=\"quill-host\" #quillHost [class.is-readonly]=\"readOnly()\">\r\n <div #editorHost></div>\r\n\r\n <!-- Floats over the editing surface rather than living in the toolbar, so it survives the\r\n toolbar being hidden in read-only mode. -->\r\n <lib-editor-full-screen-toggle\r\n [active]=\"fullScreen()\"\r\n (toggled)=\"toggleFullScreen()\"\r\n ></lib-editor-full-screen-toggle>\r\n </div>\r\n</div>\r\n", styles: [".quill-host{position:relative;border:solid 1px var(--mat-sys-outline-variant, var(--mat-app-outline));border-radius:6px;background:var(--mat-sys-surface-container-low, var(--mat-app-surface-container-low))}.quill-host>lib-editor-full-screen-toggle{position:absolute;right:16px;bottom:16px;z-index:2}.quill-host.is-readonly ::ng-deep .ql-toolbar.ql-snow{display:none}.quill-host.is-readonly ::ng-deep .ql-container.ql-snow{border-radius:6px}.quill-host ::ng-deep .ql-toolbar.ql-snow{border:none;border-bottom:solid 1px var(--mat-sys-outline-variant, var(--mat-app-outline));background:var(--mat-sys-surface-container, var(--mat-app-surface-container));padding:8px 10px;border-radius:6px 6px 0 0}.quill-host ::ng-deep .ql-container.ql-snow{border:none;border-radius:0 0 6px 6px;font-family:var(--mat-sys-body-large-font, inherit)}.quill-host ::ng-deep .ql-toolbar.ql-snow .ql-formats{margin-right:10px;padding-right:10px;border-right:1px solid var(--mat-sys-outline-variant, var(--mat-app-outline))}.quill-host ::ng-deep .ql-toolbar.ql-snow .ql-formats:last-child{border-right:none;padding-right:0}.quill-host ::ng-deep .ql-snow .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-stroke-miter{stroke:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-snow .ql-fill,.quill-host ::ng-deep .ql-snow .ql-stroke.ql-fill{fill:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-snow .ql-picker{color:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-toolbar.ql-snow button,.quill-host ::ng-deep .ql-toolbar.ql-snow .ql-picker-label{border-radius:4px;transition:background-color .3s cubic-bezier(.16,1,.3,1)}.quill-host ::ng-deep .ql-toolbar.ql-snow button:hover,.quill-host ::ng-deep .ql-toolbar.ql-snow button:focus,.quill-host ::ng-deep .ql-toolbar.ql-snow .ql-picker-label:hover{background-color:var(--mat-sys-surface-container-highest, var(--mat-app-surface-container-high))}.quill-host ::ng-deep .ql-snow.ql-toolbar button.ql-active,.quill-host ::ng-deep .ql-snow .ql-picker-label.ql-active,.quill-host ::ng-deep .ql-snow .ql-picker-item.ql-selected,.quill-host ::ng-deep .ql-snow.ql-toolbar button:hover,.quill-host ::ng-deep .ql-snow .ql-picker-item:hover{color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-snow.ql-toolbar button:hover .ql-stroke,.quill-host ::ng-deep .ql-snow.ql-toolbar button:focus .ql-stroke,.quill-host ::ng-deep .ql-snow.ql-toolbar button.ql-active .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-picker-label:hover .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-picker-label.ql-active .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-picker-item:hover .ql-stroke,.quill-host ::ng-deep .ql-snow .ql-picker-item.ql-selected .ql-stroke{stroke:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-snow.ql-toolbar button:hover .ql-fill,.quill-host ::ng-deep .ql-snow.ql-toolbar button.ql-active .ql-fill,.quill-host ::ng-deep .ql-snow .ql-picker-label:hover .ql-fill,.quill-host ::ng-deep .ql-snow .ql-picker-label.ql-active .ql-fill{fill:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-snow .ql-picker-options{background-color:var(--mat-sys-surface-container-high, var(--mat-app-surface-container-high));border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));border-radius:6px;box-shadow:0 4px 12px #0000002e;color:var(--mat-sys-on-surface, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-editor{min-height:300px;font-size:.9375rem;line-height:1.7;color:var(--mat-sys-on-surface, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-editor.ql-blank:before{color:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface));font-style:normal;opacity:.7}.quill-host ::ng-deep .ql-editor a{color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-editor blockquote{border-left-color:var(--mat-sys-outline, var(--mat-app-outline));color:var(--mat-sys-on-surface-variant, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-editor pre.ql-syntax,.quill-host ::ng-deep .ql-editor code{background-color:var(--mat-sys-surface-container-highest, var(--mat-app-surface-container-high));color:var(--mat-sys-on-surface, var(--mat-app-on-surface));border-radius:4px}.quill-host ::ng-deep .ql-editor table{border-collapse:collapse}.quill-host ::ng-deep .ql-editor td{border:1px solid var(--mat-sys-outline-variant, var(--mat-app-outline));padding:6px 10px}.quill-host ::ng-deep .ql-snow .ql-tooltip{background-color:var(--mat-sys-surface-container-high, var(--mat-app-surface-container-high));border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));border-radius:6px;box-shadow:0 4px 12px #0000002e;color:var(--mat-sys-on-surface, var(--mat-app-on-surface))}.quill-host ::ng-deep .ql-snow .ql-tooltip input[type=text]{background-color:var(--mat-sys-surface-container-low, var(--mat-app-surface-container-low));border-color:var(--mat-sys-outline-variant, var(--mat-app-outline));color:var(--mat-sys-on-surface, var(--mat-app-on-surface));border-radius:4px}.quill-host ::ng-deep .ql-snow .ql-tooltip a.ql-action,.quill-host ::ng-deep .ql-snow .ql-tooltip a.ql-preview{color:var(--mat-sys-primary, var(--mat-app-primary))}.quill-host ::ng-deep .ql-snow .ql-tooltip a.ql-remove{color:var(--mat-sys-error, var(--mat-app-error))}.quill-host.is-fullscreen{position:fixed;inset:0;z-index:1200;display:flex;flex-direction:column;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:none;border-radius:0;background:var(--mat-sys-surface, var(--mat-app-surface));overflow:visible;pointer-events:auto;animation:quill-full-screen-enter .4s cubic-bezier(.16,1,.3,1)}.quill-host.is-fullscreen::backdrop{background-color:var(--mat-sys-surface, var(--mat-app-surface))}.quill-host.is-fullscreen ::ng-deep .ql-toolbar.ql-snow{flex:0 0 auto;border-radius:0;padding:12px 16px}.quill-host.is-fullscreen ::ng-deep .ql-container.ql-snow{flex:1 1 auto;min-height:0;border-radius:0}.quill-host.is-fullscreen ::ng-deep .ql-editor{padding:2.5rem max(2rem,calc((100% - var(--lib-forms-editor-page-width, 210mm)) / 2))}.quill-host.is-fullscreen>lib-editor-full-screen-toggle{right:2rem;bottom:2rem}@keyframes quill-full-screen-enter{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.quill-host.is-fullscreen{animation:none}}\n"] }]
381
- }], ctorParameters: () => [], propDecorators: { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }], editorHost: [{ type: i0.ViewChild, args: ['editorHost', { isSignal: true }] }], quillHost: [{ type: i0.ViewChild, args: ['quillHost', { isSignal: true }] }], value: [{
382
- type: Input
383
- }] } });
384
-
385
- /**
386
- * Wraps a configurable rich-text editor inside a `mat-form-field`, selecting the concrete
387
- * editor (EditorJS or Quill) from the column's `richTextEditorLibrary`, with shared
388
- * label / hint / error / suffix / prefix metadata from the column.
389
- */
390
- class EditorInputElementComponent {
391
- constructor() {
392
- this.inputConfig = input.required(...(ngDevMode ? [{ debugName: "inputConfig" }] : /* istanbul ignore next */ []));
393
- this.formGroup = input.required(...(ngDevMode ? [{ debugName: "formGroup" }] : /* istanbul ignore next */ []));
394
- this.reload = output();
395
- /** Editor-library enum exposed for `@switch` in the template. */
396
- this.editorType = RichTextEditorType;
397
- this.errorMessage = computed(() => getInputErrorMessage(this.inputConfig(), this.formGroup()), ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
398
- }
399
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: EditorInputElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
400
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: EditorInputElementComponent, isStandalone: true, selector: "lib-editor-input-element", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null }, formGroup: { classPropertyName: "formGroup", publicName: "formGroup", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { reload: "reload" }, ngImport: i0, template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n @switch (inputConfig.richTextEditorLibrary) {\r\n @case (editorType.Quill) {\r\n <lib-quill-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-quill-input>\r\n }\r\n @case (editorType.EditorJS) {\r\n <lib-editor-js-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-editor-js-input>\r\n }\r\n }\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</form>\r\n", styles: ["mat-form-field{width:100%!important}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { 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.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { 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: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { 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: TFormInputStatusComponent, selector: "lib-t-form-input-status", inputs: ["inputConfig"] }, { kind: "component", type: EditorJsInputComponent, selector: "lib-editor-js-input", inputs: ["inputConfig", "value"], outputs: ["valueChanged"] }, { kind: "component", type: QuillInputComponent, selector: "lib-quill-input", inputs: ["inputConfig", "value"], outputs: ["valueChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
401
- }
402
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: EditorInputElementComponent, decorators: [{
403
- type: Component,
404
- args: [{ selector: 'lib-editor-input-element', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
405
- ReactiveFormsModule,
406
- MatFormFieldModule,
407
- MatIconModule,
408
- MatButtonModule,
409
- MatTooltipModule,
410
- TFormInputStatusComponent,
411
- EditorJsInputComponent,
412
- QuillInputComponent,
413
- ], template: "<form [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n @switch (inputConfig.richTextEditorLibrary) {\r\n @case (editorType.Quill) {\r\n <lib-quill-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-quill-input>\r\n }\r\n @case (editorType.EditorJS) {\r\n <lib-editor-js-input\r\n [inputConfig]=\"inputConfig\"\r\n [formControlName]=\"inputConfig.id\"\r\n [required]=\"inputConfig.required\"\r\n ></lib-editor-js-input>\r\n }\r\n }\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n @if (!!errorMessage()) {\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n }\r\n</form>\r\n", styles: ["mat-form-field{width:100%!important}mat-form-field .input-sync-button{display:none}mat-form-field:hover .input-sync-button{display:inline-block}\n"] }]
414
- }], propDecorators: { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], reload: [{ type: i0.Output, args: ["reload"] }] } });
415
-
416
- export { EditorInputElementComponent };
417
- //# sourceMappingURL=ngx-t-forms-editor-input-element.component-BGdZ4evj.mjs.map