ngx-t-forms 3.1.0 → 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.
- package/fesm2022/ngx-t-forms-api-endpoint-config.component-B9tCHtwV.mjs +411 -0
- package/fesm2022/ngx-t-forms-api-endpoint-config.component-B9tCHtwV.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-FhUHTsUF.mjs → ngx-t-forms-auto-complete-input-element.component-D2Vty1Aj.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-FhUHTsUF.mjs.map → ngx-t-forms-auto-complete-input-element.component-D2Vty1Aj.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-BJKe9wIA.mjs → ngx-t-forms-basic-input-input-element.component-Dr2bhCnH.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-BJKe9wIA.mjs.map → ngx-t-forms-basic-input-input-element.component-Dr2bhCnH.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-FQLTI7CX.mjs → ngx-t-forms-calculated-field-rules.component-DLBTjfMj.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-FQLTI7CX.mjs.map → ngx-t-forms-calculated-field-rules.component-DLBTjfMj.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CJtbprXS.mjs → ngx-t-forms-chip-options-creator-editor.component-Bh6jMmtu.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-CJtbprXS.mjs.map → ngx-t-forms-chip-options-creator-editor.component-Bh6jMmtu.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-conditional-display-config.component-ayrWl-c2.mjs +513 -0
- package/fesm2022/ngx-t-forms-conditional-display-config.component-ayrWl-c2.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CU6R5h-x.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-nOnJfMTo.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-CU6R5h-x.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-nOnJfMTo.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-data-source-picker.component-C8MBbnfz.mjs → ngx-t-forms-data-source-picker.component-mmyhOBvA.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-data-source-picker.component-C8MBbnfz.mjs.map → ngx-t-forms-data-source-picker.component-mmyhOBvA.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-Dux6uy66.mjs → ngx-t-forms-date-picker-input-element.component-DmiBra1D.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-Dux6uy66.mjs.map → ngx-t-forms-date-picker-input-element.component-DmiBra1D.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-SMWrTm5X.mjs → ngx-t-forms-date-range-picker-input-element.component-Cke5qSzR.mjs} +11 -2
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-Cke5qSzR.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-uGM93dvc.mjs → ngx-t-forms-document-list-label-config-editor.component-C0xx4jrN.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-uGM93dvc.mjs.map → ngx-t-forms-document-list-label-config-editor.component-C0xx4jrN.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-document-picker.component-DIqaaBSl.mjs → ngx-t-forms-document-picker.component-DI7wtEv6.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-document-picker.component-DIqaaBSl.mjs.map → ngx-t-forms-document-picker.component-DI7wtEv6.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs → ngx-t-forms-editor-input-element.component-DbogKrdk.mjs} +46 -191
- package/fesm2022/ngx-t-forms-editor-input-element.component-DbogKrdk.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-CQsKz87N.mjs → ngx-t-forms-file-upload-input-element.component-DbwvZghJ.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-CQsKz87N.mjs.map → ngx-t-forms-file-upload-input-element.component-DbwvZghJ.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-input-selector.component-Dj0jvBdm.mjs → ngx-t-forms-form-input-selector.component-CkuzNdjx.mjs} +2 -3
- package/fesm2022/{ngx-t-forms-form-input-selector.component-Dj0jvBdm.mjs.map → ngx-t-forms-form-input-selector.component-CkuzNdjx.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-DzJKFl4c.mjs → ngx-t-forms-form-json-view.component-DBCpa_rZ.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-DzJKFl4c.mjs.map → ngx-t-forms-form-json-view.component-DBCpa_rZ.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs → ngx-t-forms-form-section-stepper.component-jLj6vePZ.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-DOvVtJGB.mjs.map → ngx-t-forms-form-section-stepper.component-jLj6vePZ.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs → ngx-t-forms-forms-builder-menu.component-Iyd0grju.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-CcqyQLf5.mjs.map → ngx-t-forms-forms-builder-menu.component-Iyd0grju.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-geo-location.component-Bj_qIEqi.mjs → ngx-t-forms-geo-location.component-BUXRaPy0.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-geo-location.component-Bj_qIEqi.mjs.map → ngx-t-forms-geo-location.component-BUXRaPy0.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-header-template-editor.component-BLmAqiQA.mjs +158 -0
- package/fesm2022/ngx-t-forms-header-template-editor.component-BLmAqiQA.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs → ngx-t-forms-image-capture-input-element.component-D6Ffuhbv.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-lwp3IcDt.mjs.map → ngx-t-forms-image-capture-input-element.component-D6Ffuhbv.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-index-CKj1Oacc.mjs +2 -0
- package/fesm2022/ngx-t-forms-index-CKj1Oacc.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-custom.component-DiciFhSS.mjs → ngx-t-forms-input-custom.component-BMui37o-.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-input-custom.component-DiciFhSS.mjs.map → ngx-t-forms-input-custom.component-BMui37o-.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-input-editor.component-D12hrHOc.mjs → ngx-t-forms-input-editor.component-D60TpWzO.mjs} +3 -4
- package/fesm2022/{ngx-t-forms-input-editor.component-D12hrHOc.mjs.map → ngx-t-forms-input-editor.component-D60TpWzO.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs → ngx-t-forms-map-mat-options-keys-yfxnNDPs.mjs} +2 -3
- package/fesm2022/ngx-t-forms-map-mat-options-keys-yfxnNDPs.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-C1Qrze7K.mjs → ngx-t-forms-mat-chip-list-editor.component-cfBBan80.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-C1Qrze7K.mjs.map → ngx-t-forms-mat-chip-list-editor.component-cfBBan80.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-BaTR_jzc.mjs → ngx-t-forms-missing-form-configs.component-BcYuduah.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-BaTR_jzc.mjs.map → ngx-t-forms-missing-form-configs.component-BcYuduah.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs → ngx-t-forms-mscoa-chart-toolbar.component-nLawxM9j.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-Dni_bv_G.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-nLawxM9j.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-config.component-B9G_WlEc.mjs +594 -0
- package/fesm2022/ngx-t-forms-mscoa-config.component-B9G_WlEc.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs → ngx-t-forms-mscoa-segment-config.component-DKEEZ8MD.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-BPQuzR5k.mjs.map → ngx-t-forms-mscoa-segment-config.component-DKEEZ8MD.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs → ngx-t-forms-multiple-input-input-element.component-B99ANTUL.mjs} +34 -30
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-B99ANTUL.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs → ngx-t-forms-ngx-t-forms-9BfJdjl4.mjs} +2281 -759
- package/fesm2022/ngx-t-forms-ngx-t-forms-9BfJdjl4.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs → ngx-t-forms-paginated-selection-table-Bm5-5VWe.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-paginated-selection-table-pYY2sWAb.mjs.map → ngx-t-forms-paginated-selection-table-Bm5-5VWe.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs → ngx-t-forms-payload-template-editor.component-2hwGuKAB.mjs} +11 -6
- package/fesm2022/ngx-t-forms-payload-template-editor.component-2hwGuKAB.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs → ngx-t-forms-pipeline-generator.component-BvjT2zfL.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-D2stBXXC.mjs.map → ngx-t-forms-pipeline-generator.component-BvjT2zfL.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-quill-input.component-BsuOKfZT.mjs +731 -0
- package/fesm2022/ngx-t-forms-quill-input.component-BsuOKfZT.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-record-list-manager.component-CtCOIpai.mjs → ngx-t-forms-record-list-manager.component-BK5nwwDp.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-record-list-manager.component-CtCOIpai.mjs.map → ngx-t-forms-record-list-manager.component-BK5nwwDp.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-required-inputs.component-D9wIdOhg.mjs → ngx-t-forms-required-inputs.component-DiwMttVf.mjs} +2 -3
- package/fesm2022/{ngx-t-forms-required-inputs.component-D9wIdOhg.mjs.map → ngx-t-forms-required-inputs.component-DiwMttVf.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.mjs → ngx-t-forms-rest-api-call-setup.component-CBgG_f06.mjs} +249 -25
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-CBgG_f06.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-section-report.component-U9uQ_Ow9.mjs → ngx-t-forms-section-report.component-CyPpFiWS.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-section-report.component-U9uQ_Ow9.mjs.map → ngx-t-forms-section-report.component-CyPpFiWS.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-select-input-element.component-CxYTmuvV.mjs → ngx-t-forms-select-input-element.component-B2wr5_88.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-select-input-element.component-CxYTmuvV.mjs.map → ngx-t-forms-select-input-element.component-B2wr5_88.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs → ngx-t-forms-selection-options-editor.component-BEZLG1Z8.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-BLLejOLG.mjs.map → ngx-t-forms-selection-options-editor.component-BEZLG1Z8.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs → ngx-t-forms-textarea-input-element.component-Cmbd0krg.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-75VdPc6z.mjs.map → ngx-t-forms-textarea-input-element.component-Cmbd0krg.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-DQGvEJN-.mjs → ngx-t-forms-toggle-input-element.component-Dd_FcAoD.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-DQGvEJN-.mjs.map → ngx-t-forms-toggle-input-element.component-Dd_FcAoD.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-token-binding-menu.component-CLpjkUnf.mjs +109 -0
- package/fesm2022/ngx-t-forms-token-binding-menu.component-CLpjkUnf.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-token-text-input.component-DY04Z0fn.mjs +296 -0
- package/fesm2022/ngx-t-forms-token-text-input.component-DY04Z0fn.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-validators-config.component-EM7RSWIz.mjs → ngx-t-forms-validators-config.component-Btmz2cKH.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-validators-config.component-EM7RSWIz.mjs.map → ngx-t-forms-validators-config.component-Btmz2cKH.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-CT6sN9E4.mjs +2096 -0
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-CT6sN9E4.mjs.map +1 -0
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/package.json +2 -2
- package/styles/_tokens.scss +6 -0
- package/types/ngx-t-forms.d.ts +155 -4
- package/fesm2022/ngx-t-forms-date-range-picker-input-element.component-SMWrTm5X.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-input-element.component-CIELjDty.mjs +0 -417
- package/fesm2022/ngx-t-forms-editor-input-element.component-CIELjDty.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-getInputIcon-B4ADgevZ.mjs +0 -31
- package/fesm2022/ngx-t-forms-getInputIcon-B4ADgevZ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-header-template-editor.component-DLldVmcN.mjs +0 -129
- package/fesm2022/ngx-t-forms-header-template-editor.component-DLldVmcN.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-index-C8NtLE16.mjs +0 -2
- package/fesm2022/ngx-t-forms-index-C8NtLE16.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-multiple-input-input-element.component-hXWMRFjl.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-DGCUsTYx.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-Gy7Rtmue.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs +0 -173
- package/fesm2022/ngx-t-forms-token-transform-D_wsFbNc.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs +0 -1303
- package/fesm2022/ngx-t-forms-workflow-adjudication.component-C1Em-g9e.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-editor-js-input.component-C1dI_7rU.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/editor-input-element/core/form-input-rich-text-editor/config.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/editor-input-element/core/editor-full-screen.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/editor-input-element/core/editor-full-screen-toggle/editor-full-screen-toggle.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/editor-input-element/core/editor-full-screen-toggle/editor-full-screen-toggle.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/editor-input-element/core/editor-js-input/editor-js-input.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/editor-input-element/core/editor-js-input/editor-js-input.component.html"],"sourcesContent":["/// <reference path=\"../../../../../../../types/editorjs.d.ts\" />\r\nimport type { EditorConfig, LogLevels, OutputData, ToolConstructable } from \"@editorjs/editorjs\";\r\n// `@editorjs/editorjs` is CJS — runtime named imports fail under Node ESM (SSR / smoke harness).\r\n// `LogLevels` is a runtime enum with string values; use the string literal cast at the single use site below.\r\n//\r\n// Wave 2 / Trap 16: every Editor.js plugin package below is a browser-only UMD bundle that crashes\r\n// under bare Node SSR (`self`/`document` not defined at module-eval). They are now loaded via\r\n// dynamic `import()` inside `loadEditorConfig()`, which is only invoked from an SSR-gated\r\n// `ngAfterViewInit` (see `editor-js-input.component.ts`). Static top-level imports here are\r\n// type-only and emit zero runtime code.\r\n\r\nexport interface EditorJsPayload {\r\n holderId: string,\r\n imageFetchEndpoint:string,\r\n imageUploadEndpoint: string,\r\n readOnly:boolean,\r\n onChangeFn: () => void,\r\n data:OutputData|undefined\r\n}\r\n\r\n// Third-party Editor.js tool packages ship without typings that line up with\r\n// the host editor's `ToolConstructable`. We narrow at the registration boundary\r\n// via `unknown` rather than leaking `any` through this module.\r\nconst asToolConstructable = (tool: unknown): ToolConstructable =>\r\n tool as ToolConstructable;\r\n\r\n/**\r\n * Dynamically loads every Editor.js plugin bundle and returns a ready-to-use `EditorConfig`.\r\n *\r\n * Browser-only: callers MUST gate this behind `isPlatformBrowser(...)` because each plugin\r\n * package touches `self` / `document` at module-eval time and crashes under bare-Node SSR.\r\n */\r\nexport const loadEditorConfig = async (\r\n payload: EditorJsPayload\r\n): Promise<EditorConfig> => {\r\n const [\r\n { default: Header },\r\n { default: List },\r\n { default: Paragraph },\r\n { default: Quote },\r\n { default: Table },\r\n { default: ImageTool },\r\n { default: Delimiter },\r\n { default: CodeTool },\r\n { default: Embed },\r\n ] = await Promise.all([\r\n import('@editorjs/header'),\r\n import('@editorjs/list'),\r\n import('@editorjs/paragraph'),\r\n import('@editorjs/quote'),\r\n import('@editorjs/table'),\r\n import('@editorjs/image'),\r\n import('@editorjs/delimiter'),\r\n import('@editorjs/code'),\r\n import('@editorjs/embed'),\r\n ]);\r\n\r\n return ({\r\n holder: payload.holderId,\r\n autofocus: true,\r\n placeholder: 'Let\\'s write something amazing...',\r\n inlineToolbar: true,\r\n tools: {\r\n header: {\r\n class: asToolConstructable(Header),\r\n config: {\r\n levels: [1, 2, 3, 4, 5, 6],\r\n defaultLevel: 1,\r\n placeholder: 'Type your heading here...'\r\n },\r\n inlineToolbar: ['link', 'bold', 'italic', 'marker']\r\n },\r\n list: {\r\n class: asToolConstructable(List),\r\n inlineToolbar: true,\r\n config: {\r\n defaultStyle: 'unordered',\r\n placeholder: 'Enter a list item here...'\r\n }\r\n },\r\n paragraph: {\r\n class: asToolConstructable(Paragraph),\r\n inlineToolbar: true,\r\n config: {\r\n preserveBlank: true,\r\n placeholder: 'Type your paragraph here...'\r\n }\r\n },\r\n quote: {\r\n class: asToolConstructable(Quote),\r\n inlineToolbar: true,\r\n shortcut: 'CMD+SHIFT+Q',\r\n config: {\r\n quotePlaceholder: 'Enter a quote',\r\n captionPlaceholder: 'Quote\\'s author',\r\n alignmentEnabled: true\r\n }\r\n },\r\n delimiter: {\r\n class: asToolConstructable(Delimiter)\r\n },\r\n image: {\r\n class: asToolConstructable(ImageTool),\r\n config: {\r\n endpoints: {\r\n byFile: payload.imageUploadEndpoint,\r\n byUrl: payload.imageFetchEndpoint\r\n },\r\n uploader: {\r\n uploadByFile(file: File) {\r\n // Custom upload logic\r\n }\r\n }\r\n }\r\n },\r\n table: {\r\n class: asToolConstructable(Table),\r\n inlineToolbar: true,\r\n config: {\r\n rows: 2,\r\n cols: 3\r\n }\r\n },\r\n code: {\r\n class: asToolConstructable(CodeTool),\r\n config: {\r\n placeholder: 'Enter code here...'\r\n }\r\n },\r\n\r\n embed: {\r\n class: asToolConstructable(Embed),\r\n config: {\r\n services: {\r\n youtube: true,\r\n codesandbox: true,\r\n codepen: true\r\n }\r\n }\r\n },\r\n\r\n },\r\n defaultBlock: 'paragraph',\r\n hideToolbar: false,\r\n data: payload.data,\r\n readOnly:payload.readOnly,\r\n logLevel: 'ERROR' as LogLevels,\r\n minHeight: 300,\r\n onChange: (api, event) => {\r\n payload.onChangeFn()\r\n },\r\n onReady: () => {},\r\n sanitizer: {\r\n p: true,\r\n b: true,\r\n a: {\r\n href: true,\r\n target: '_blank',\r\n rel: 'nofollow'\r\n }\r\n },\r\n i18n: {\r\n messages: {\r\n ui: {\r\n blockTunes: {\r\n toggler: {\r\n 'Click to tune': 'Click to tune',\r\n 'or drag to move': 'or drag to move'\r\n }\r\n }\r\n }\r\n }\r\n }\r\n });\r\n}\r\n\r\n\r\n","/**\r\n * Element-level \"pop out to full screen\" shared by the rich-text editors in this folder.\r\n *\r\n * A plain `position: fixed` overlay is **not** sufficient here, and that is the whole point of\r\n * this file. The editors render inside a `mat-form-field`, which consumers routinely nest inside\r\n * a Material stepper, tab body, drawer or dialog. `position: fixed` is viewport-relative only\r\n * while **no** ancestor establishes a containing block — any ancestor with `transform`, `filter`,\r\n * `contain`, `will-change`, `backdrop-filter` or `perspective` captures it, and that ancestor's\r\n * `overflow: hidden` then clips it. Which of those a consumer uses is unknowable from in here, so\r\n * the pop-out has to stop depending on the host component altogether.\r\n *\r\n * The browser's **top layer** is what does that: elements promoted into it are painted outside\r\n * the ancestor chain and are immune to ancestor `transform`, `overflow`, `z-index` and stacking\r\n * contexts. Three strategies are tried, best first:\r\n *\r\n * 1. `requestFullscreen()` — top layer **and** drops the browser chrome. Needs a user gesture.\r\n * 2. `showPopover()` — top layer, no gesture required; covers browsers where element full screen\r\n * is unavailable (Safari on iPhone) or blocked by a `fullscreen` permissions policy in an\r\n * iframe.\r\n * 3. `position: fixed` — last resort for browsers with neither API.\r\n *\r\n * The element is promoted **in place** — never re-parented to `<body>`. Top-layer promotion\r\n * changes painting, not inheritance, so the editor keeps inheriting the app's `--mat-sys-*` theme\r\n * variables from its real ancestors; a portal to `<body>` would lose them.\r\n *\r\n * Only the standard, promise-returning `requestFullscreen` is used. The legacy\r\n * `webkitRequestFullscreen` returns `void` and reports failure through a separate event, so a\r\n * rejection could not be observed in time to fall through cleanly — those browsers take path 2/3.\r\n */\r\n\r\n/**\r\n * Class carried by the element while it is popped out. Each editor styles it in its own\r\n * stylesheet, and that rule **must** set a `display` value: it is what keeps the element visible\r\n * during the popover path (see {@link EditorFullScreenHost.enter}).\r\n */\r\nexport const EDITOR_FULL_SCREEN_CLASS = 'is-fullscreen';\r\n\r\n/** Mechanism currently holding the element open. */\r\nexport type EditorFullScreenMode = 'fullscreen' | 'popover' | 'fixed';\r\n\r\n/**\r\n * Owns the pop-out of a single element. One instance per editor; created behind the component's\r\n * `isPlatformBrowser` guard so nothing here runs during SSR.\r\n */\r\nexport class EditorFullScreenHost {\r\n readonly #document: Document;\r\n readonly #onExternalExit: () => void;\r\n\r\n #element: HTMLElement | undefined;\r\n #mode: EditorFullScreenMode | undefined;\r\n\r\n /**\r\n * @param document The owning document, injected via `DOCUMENT` — never the global.\r\n * @param onExternalExit Called when the browser closed the pop-out without going through\r\n * {@link exit} (Escape, F11, another element claiming full screen).\r\n */\r\n constructor(document: Document, onExternalExit: () => void) {\r\n this.#document = document;\r\n this.#onExternalExit = onExternalExit;\r\n this.#document.addEventListener('fullscreenchange', this.#handleFullScreenChange);\r\n }\r\n\r\n /** Whether an element is currently popped out. */\r\n get active(): boolean {\r\n return this.#mode !== undefined;\r\n }\r\n\r\n /**\r\n * Pops `element` out using the best mechanism the browser allows, adding\r\n * {@link EDITOR_FULL_SCREEN_CLASS} for the duration.\r\n *\r\n * Must be called synchronously from a user gesture, otherwise the Fullscreen API rejects and\r\n * the pop-out silently degrades to the popover path.\r\n *\r\n * @param element The element to promote — must be the one carrying the editor chrome.\r\n * @returns The mechanism that ended up being used.\r\n */\r\n async enter(element: HTMLElement): Promise<EditorFullScreenMode> {\r\n if (this.#mode !== undefined) return this.#mode;\r\n\r\n // Added first, and deliberately so: the class sets `display`, which — being author origin —\r\n // beats the UA's `[popover]:not(:popover-open) { display: none }`. Without it the element\r\n // would be display:none for the window between `setAttribute` and `showPopover()` below, and\r\n // a style recalculation inside that window blurs whatever the user was typing in.\r\n this.#element = element;\r\n element.classList.add(EDITOR_FULL_SCREEN_CLASS);\r\n\r\n // `fullscreenEnabled` is false when a permissions policy blocks it (an iframe without\r\n // `allow=\"fullscreen\"`) and where element full screen is unsupported (Safari on iPhone).\r\n if (this.#document.fullscreenEnabled && typeof element.requestFullscreen === 'function') {\r\n try {\r\n await element.requestFullscreen();\r\n this.#mode = 'fullscreen';\r\n return this.#mode;\r\n } catch {\r\n // Rejected — no transient activation, or the UA refused. Fall through to the top-layer\r\n // popover, which needs neither.\r\n }\r\n }\r\n\r\n if (typeof element.showPopover === 'function') {\r\n element.setAttribute('popover', 'manual');\r\n try {\r\n element.showPopover();\r\n this.#mode = 'popover';\r\n return this.#mode;\r\n } catch {\r\n element.removeAttribute('popover');\r\n }\r\n }\r\n\r\n this.#mode = 'fixed';\r\n return this.#mode;\r\n }\r\n\r\n /** Closes the pop-out and returns the element to its place in the document flow. */\r\n async exit(): Promise<void> {\r\n const element = this.#element;\r\n const mode = this.#mode;\r\n this.#element = undefined;\r\n this.#mode = undefined;\r\n if (!element || mode === undefined) return;\r\n\r\n try {\r\n if (mode === 'fullscreen') {\r\n // Leave full screen first: `exitFullscreen()` settles only once the browser's own\r\n // transition has finished, and the class is what styles the surface until then.\r\n if (this.#document.fullscreenElement === element) await this.#document.exitFullscreen();\r\n } else if (mode === 'popover') {\r\n element.hidePopover();\r\n element.removeAttribute('popover');\r\n }\r\n } finally {\r\n element.classList.remove(EDITOR_FULL_SCREEN_CLASS);\r\n }\r\n }\r\n\r\n /** Detaches the document listener and closes any open pop-out. Call from `ngOnDestroy`. */\r\n destroy(): void {\r\n this.#document.removeEventListener('fullscreenchange', this.#handleFullScreenChange);\r\n void this.exit();\r\n }\r\n\r\n /**\r\n * The browser can close a native full screen behind our back — Escape, F11, or another element\r\n * taking the top layer. Reconcile our own state and tell the owner so its toggle follows.\r\n */\r\n readonly #handleFullScreenChange = (): void => {\r\n if (this.#mode !== 'fullscreen') return;\r\n if (this.#document.fullscreenElement === this.#element) return;\r\n\r\n this.#element?.classList.remove(EDITOR_FULL_SCREEN_CLASS);\r\n this.#element = undefined;\r\n this.#mode = undefined;\r\n this.#onExternalExit();\r\n };\r\n}\r\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, input, output } from '@angular/core';\r\n\r\n/**\r\n * Floating action button that pops a rich-text editor out to full screen and back.\r\n *\r\n * Shared by the Quill and Editor.js inputs so both carry the same affordance, icon and\r\n * accessible naming. It deliberately owns no state: the editor that hosts it drives {@link active}\r\n * and performs the promotion (see `editor-full-screen.ts`).\r\n *\r\n * Positioning belongs to the host — this component styles only the button. Place it by targeting\r\n * the element selector from the host's stylesheet.\r\n *\r\n * @example\r\n * <lib-editor-full-screen-toggle [active]=\"fullScreen()\" (toggled)=\"toggleFullScreen()\" />\r\n */\r\n@Component({\r\n selector: 'lib-editor-full-screen-toggle',\r\n templateUrl: './editor-full-screen-toggle.component.html',\r\n styleUrl: './editor-full-screen-toggle.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.Emulated,\r\n host: {\r\n 'class': 'lib-editor-full-screen-toggle'\r\n },\r\n imports: []\r\n})\r\nexport class EditorFullScreenToggleComponent {\r\n /** Whether the editor this controls is currently popped out. */\r\n readonly active = input.required<boolean>();\r\n\r\n /** Emitted when the user asks to enter or leave full screen. */\r\n readonly toggled = output<void>();\r\n\r\n /** Serves as both tooltip and accessible name, so the two can never drift apart. */\r\n protected readonly label = computed(() => (this.active() ? 'Exit full screen' : 'Full screen'));\r\n}\r\n","<button\r\n type=\"button\"\r\n class=\"fab\"\r\n [title]=\"label()\"\r\n [attr.aria-label]=\"label()\"\r\n [attr.aria-pressed]=\"active()\"\r\n (click)=\"toggled.emit()\"\r\n>\r\n @if (active()) {\r\n <svg viewBox=\"0 0 18 18\" aria-hidden=\"true\">\r\n <polyline points=\"3 7 7 7 7 3\"></polyline>\r\n <polyline points=\"11 3 11 7 15 7\"></polyline>\r\n <polyline points=\"15 11 11 11 11 15\"></polyline>\r\n <polyline points=\"7 15 7 11 3 11\"></polyline>\r\n </svg>\r\n } @else {\r\n <svg viewBox=\"0 0 18 18\" aria-hidden=\"true\">\r\n <polyline points=\"7 3 3 3 3 7\"></polyline>\r\n <polyline points=\"11 3 15 3 15 7\"></polyline>\r\n <polyline points=\"15 11 15 15 11 15\"></polyline>\r\n <polyline points=\"3 11 3 15 7 15\"></polyline>\r\n </svg>\r\n }\r\n</button>\r\n","import {\r\n AfterViewInit,\r\n ChangeDetectionStrategy,\r\n Component,\r\n ElementRef,\r\n Input,\r\n OnDestroy,\r\n PLATFORM_ID,\r\n inject,\r\n input,\r\n output,\r\n signal,\r\n viewChild\r\n} from '@angular/core';\r\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\r\nimport { NgControl } from '@angular/forms';\r\n\r\nimport { ITowerStepColumn } from 'ngx-t-forms-types';\r\n// Wave 2 / Trap 16: `@editorjs/editorjs` is a browser-only UMD bundle that crashes under\r\n// bare-Node SSR at module-eval time. Type-only import at the top keeps the surface intact\r\n// with zero runtime emission; the runtime load happens inside the SSR-gated `ngAfterViewInit`.\r\nimport type EditorJSType from '@editorjs/editorjs';\r\nimport type { OutputData } from '@editorjs/editorjs';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\n\r\nimport { BaseCustomInput, BaseCustomInputConfig } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\r\nimport { loadEditorConfig, EditorJsPayload } from '../form-input-rich-text-editor/config';\r\nimport { EditorFullScreenHost } from '../editor-full-screen';\r\nimport { EditorFullScreenToggleComponent } from '../editor-full-screen-toggle/editor-full-screen-toggle.component';\r\nimport { _isEqual } from '../../../../../../shared/functions/isEqual';\r\n\r\nconst customInputConfig: BaseCustomInputConfig = {\r\n controlType: 'lib-editor-js-input',\r\n nextId: 0\r\n};\r\n\r\n/**\r\n * Rich-text input backed by the Editor.js block editor, wired into Angular\r\n * Material's form-field via {@link MatFormFieldControl}.\r\n *\r\n * The Editor.js bundle is browser-only, so it is dynamically imported and\r\n * instantiated inside `ngAfterViewInit` behind an `isPlatformBrowser` guard\r\n * to stay SSR-safe. The editor instance is destroyed on `ngOnDestroy`.\r\n *\r\n * @deprecated Scheduled for removal. Do not use in new code; migrate existing\r\n * usages to the supported rich-text input element. Retained only for backward\r\n * compatibility with forms that still reference `lib-editor-js-input`.\r\n *\r\n * @example\r\n * <lib-editor-js-input [inputConfig]=\"column()\" (valueChanged)=\"onChange($event)\" />\r\n */\r\n@Component({\r\n selector: 'lib-editor-js-input',\r\n templateUrl: './editor-js-input.component.html',\r\n styleUrl: './editor-js-input.component.css',\r\n imports: [EditorFullScreenToggleComponent],\r\n host: {\r\n '[class.floating]': 'shouldLabelFloat',\r\n '[id]': 'id',\r\n '(keydown.escape)': 'onEscape($event)'\r\n },\r\n providers: [{ provide: MatFormFieldControl, useExisting: EditorJsInputComponent }],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class EditorJsInputComponent\r\n extends BaseCustomInput<OutputData | undefined>\r\n implements AfterViewInit, OnDestroy {\r\n\r\n /** Column definition describing the field's id, read-only state and metadata. */\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n /** Emits the editor's saved {@link OutputData} whenever its content changes. */\r\n readonly valueChanged = output<OutputData | undefined>();\r\n\r\n /** Live Editor.js instance; `undefined` until initialised (or on the server). */\r\n protected editor: EditorJSType | undefined;\r\n\r\n /** Whether the editor is currently popped out to fill the screen. */\r\n protected readonly fullScreen = signal(false);\r\n\r\n /**\r\n * Height the in-flow wrapper holds onto while the editor is popped out. Set from the editor's\r\n * measured height on the way in, cleared on the way out.\r\n */\r\n protected readonly reservedHeight = signal<number | null>(null);\r\n\r\n /**\r\n * The bordered surface carrying the editor — this is what gets promoted to the browser's top\r\n * layer. (`viewChild` cannot sit on an ES-private field — NG1053.)\r\n */\r\n private readonly editorContainer = viewChild.required<ElementRef<HTMLElement>>('editorContainer');\r\n\r\n readonly #platformId = inject(PLATFORM_ID);\r\n\r\n readonly #document = inject(DOCUMENT);\r\n\r\n #fullScreenHost: EditorFullScreenHost | undefined;\r\n\r\n /** Guards against overlapping pop-out transitions (see `#toggleFullScreen`). */\r\n #toggling = false;\r\n\r\n constructor() {\r\n super(\r\n inject(NgControl, { optional: true, self: true }) as NgControl,\r\n inject<ElementRef<HTMLElement>>(ElementRef),\r\n customInputConfig\r\n );\r\n }\r\n\r\n override get empty(): boolean {\r\n const n = this.value;\r\n // Check for null, undefined, or empty string, but allow 0\r\n return n === null || n === undefined || (n as unknown) === '';\r\n }\r\n\r\n override get shouldLabelFloat(): boolean {\r\n return true;\r\n }\r\n\r\n override _value: OutputData | undefined = undefined;\r\n\r\n @Input() override set value(value: OutputData | undefined) {\r\n if (!_isEqual(this._value, value)) {\r\n this._value = value;\r\n this.onChange(value);\r\n this.stateChanges.next();\r\n }\r\n }\r\n\r\n override get value(): OutputData | undefined {\r\n return this._value;\r\n }\r\n\r\n async ngAfterViewInit(): Promise<void> {\r\n if (!isPlatformBrowser(this.#platformId)) return;\r\n\r\n this.#destroyEditor();\r\n\r\n this.#fullScreenHost ??= new EditorFullScreenHost(this.#document, () => this.#setFullScreen(false));\r\n\r\n const payload: EditorJsPayload = {\r\n holderId: this.inputConfig().id,\r\n imageFetchEndpoint: '',\r\n imageUploadEndpoint: '',\r\n readOnly: this.inputConfig().readonly || this.inputConfig().disabled || false,\r\n data: this.value || undefined,\r\n onChangeFn: this.contentChangedSaveValue.bind(this)\r\n };\r\n\r\n // Browser-only dynamic load — see Trap 16 comment at the top of this file and in config.ts.\r\n const [{ default: EditorJS }, config] = await Promise.all([\r\n import('@editorjs/editorjs'),\r\n loadEditorConfig(payload),\r\n ]);\r\n this.editor = new EditorJS(config);\r\n // A `setDisabledState` that arrived before the editor existed is applied here.\r\n void this.#applyReadOnly();\r\n }\r\n\r\n /**\r\n * Keeps Editor.js's own read-only state in step with the control's. The pop-out re-enables\r\n * pointer events on the popped-out surface (Material kills them field-wide when the control is\r\n * disabled), so this is what actually keeps a disabled field uneditable — the CSS no longer\r\n * does it.\r\n */\r\n override setDisabledState(isDisabled: boolean): void {\r\n super.setDisabledState(isDisabled);\r\n void this.#applyReadOnly();\r\n }\r\n\r\n /** Read-only when either the column config or the reactive-form control says so. */\r\n async #applyReadOnly(): Promise<void> {\r\n const editor = this.editor;\r\n if (!editor) return;\r\n const config = this.inputConfig();\r\n const readOnly = this.disabled || config.readonly || config.disabled || false;\r\n try {\r\n await editor.isReady;\r\n if (editor.readOnly.isEnabled !== readOnly) await editor.readOnly.toggle(readOnly);\r\n } catch {\r\n // Editor.js rejects when the configured tool set has no read-only support. The field then\r\n // keeps the state it was constructed with rather than the whole editor failing to load.\r\n }\r\n }\r\n\r\n async contentChangedSaveValue(): Promise<void> {\r\n const value: OutputData | undefined = await this.editor?.save();\r\n this.value = value;\r\n this.onChange(value);\r\n this.valueChanged.emit(value);\r\n }\r\n\r\n /** Toggles the pop-out from the corner button. */\r\n protected toggleFullScreen(): void {\r\n void this.#toggleFullScreen();\r\n }\r\n\r\n /**\r\n * Escape leaves the pop-out. Native full screen is torn down by the browser itself (picked up\r\n * through `fullscreenchange`); this covers the popover and fixed fallbacks. The event is\r\n * stopped so Escape closes the editor rather than an enclosing dialog.\r\n */\r\n protected onEscape(event: Event): void {\r\n if (!this.fullScreen()) return;\r\n event.preventDefault();\r\n event.stopPropagation();\r\n void this.#toggleFullScreen();\r\n }\r\n\r\n /**\r\n * Pops the editor out to fill the screen, or restores it. Runs inside the button's click\r\n * gesture, which the Fullscreen API requires — everything up to the promotion is synchronous\r\n * for that reason.\r\n *\r\n * Unlike the Quill sibling there is no caret to restore: the element is promoted in place, so\r\n * the native selection inside Editor.js's contenteditable blocks survives untouched.\r\n */\r\n async #toggleFullScreen(): Promise<void> {\r\n const fullScreenHost = this.#fullScreenHost;\r\n // Both transitions settle asynchronously; ignore clicks that land mid-flight rather than\r\n // letting a second `requestFullscreen()` race the first.\r\n if (!fullScreenHost || this.#toggling) return;\r\n this.#toggling = true;\r\n\r\n try {\r\n if (this.fullScreen()) {\r\n await fullScreenHost.exit();\r\n } else {\r\n const element = this.editorContainer().nativeElement;\r\n this.reservedHeight.set(element.offsetHeight);\r\n await fullScreenHost.enter(element);\r\n }\r\n } finally {\r\n // `enter()` degrades rather than throwing, but `exit()` can reject if the browser refuses\r\n // to leave full screen. Either way the controller has already settled its own state, so\r\n // read it back instead of assuming the toggle succeeded.\r\n this.#setFullScreen(fullScreenHost.active);\r\n this.#toggling = false;\r\n }\r\n }\r\n\r\n /**\r\n * Single funnel for pop-out state, so the signal and the reserved space always agree —\r\n * including when the browser closed full screen on its own.\r\n */\r\n #setFullScreen(active: boolean): void {\r\n this.fullScreen.set(active);\r\n if (!active) this.reservedHeight.set(null);\r\n }\r\n\r\n /**\r\n * Tears the live editor down, if there is one that can be torn down.\r\n *\r\n * Editor.js attaches its public API — `destroy` included — inside `exportAPI`, which runs\r\n * from `isReady.then(...)`. An editor whose initialisation FAILED (the classic case: the\r\n * holder element left the document before the dynamic `import()` settled, which is routine\r\n * when a dialog or step closes early) is therefore a live instance carrying nothing but a\r\n * rejected `isReady`. `this.editor?.destroy()` guards that the instance exists, not that it\r\n * initialised, so that case threw `destroy is not a function` straight out of `ngOnDestroy`.\r\n * Check the method, not just the instance.\r\n */\r\n #destroyEditor(): void {\r\n const editor = this.editor;\r\n this.editor = undefined;\r\n if (typeof editor?.destroy === 'function') editor.destroy();\r\n }\r\n\r\n override ngOnDestroy(): void {\r\n this.#fullScreenHost?.destroy();\r\n this.#fullScreenHost = undefined;\r\n this.#destroyEditor();\r\n // Tear the editor down first, then let the base complete `stateChanges` / `destroy$` and\r\n // clear the temporary-error timer — none of which happened while this override skipped it.\r\n super.ngOnDestroy();\r\n }\r\n}\r\n","\r\n<!-- `.editor-shell` stays in the document flow and holds the editor's footprint while\r\n `.editor-container` 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 jumps\r\n when full screen is left. -->\r\n<div class=\"editor-shell\" [style.height.px]=\"reservedHeight()\">\r\n <div class=\"editor-container\" #editorContainer>\r\n <div class=\"editor-holder\" #editorJs [id]=\"inputConfig().id\"></div>\r\n\r\n <!-- Floats over the content; Editor.js has no toolbar of its own to host it. -->\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"],"names":[],"mappings":";;;;;;;AAoBA;AACA;AACA;AACA,MAAM,mBAAmB,GAAG,CAAC,IAAa,KACtC,IAAyB;AAE7B;;;;;AAKG;AACI,MAAM,gBAAgB,GAAG,OAC5B,OAAwB,KACD;AACvB,IAAA,MAAM,CACF,EAAE,OAAO,EAAE,MAAM,EAAE,EACnB,EAAE,OAAO,EAAE,IAAI,EAAE,EACjB,EAAE,OAAO,EAAE,SAAS,EAAE,EACtB,EAAE,OAAO,EAAE,KAAK,EAAE,EAClB,EAAE,OAAO,EAAE,KAAK,EAAE,EAClB,EAAE,OAAO,EAAE,SAAS,EAAE,EACtB,EAAE,OAAO,EAAE,SAAS,EAAE,EACtB,EAAE,OAAO,EAAE,QAAQ,EAAE,EACrB,EAAE,OAAO,EAAE,KAAK,EAAE,EACrB,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAClB,OAAO,kBAAkB,CAAC;QA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AE,CAAC,EAAA,eAAA,EACjE,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,yyBAAA,EAAA,MAAA,EAAA,CAAA,ypCAAA,CAAA,EAAA;yQA4BgC,iBAAiB,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA;sBA+B/F;;;;;;;;;;"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ElementTypes } from 'ngx-t-forms-types';
|
|
2
|
-
|
|
3
|
-
const InputElementIconMap = {
|
|
4
|
-
[ElementTypes.Input]: 'text_fields',
|
|
5
|
-
[ElementTypes.Location]: 'location_on',
|
|
6
|
-
[ElementTypes.AutoCompleteInput]: 'manage_search',
|
|
7
|
-
[ElementTypes.Toggle]: 'toggle_on',
|
|
8
|
-
[ElementTypes.Select]: 'arrow_drop_down_circle',
|
|
9
|
-
[ElementTypes.PaginatedSelectionTable]: 'table_chart',
|
|
10
|
-
[ElementTypes.IconSelect]: 'emoji_emotions',
|
|
11
|
-
[ElementTypes.Textarea]: 'notes',
|
|
12
|
-
[ElementTypes.DatePicker]: 'calendar_today',
|
|
13
|
-
[ElementTypes.DateRangePicker]: 'date_range',
|
|
14
|
-
[ElementTypes.FileUpload]: 'upload_file',
|
|
15
|
-
[ElementTypes.Signature]: 'draw',
|
|
16
|
-
[ElementTypes.ImageCapture]: 'photo_camera',
|
|
17
|
-
[ElementTypes.SectionTitle]: 'title',
|
|
18
|
-
[ElementTypes.MultipleInput]: 'list_alt',
|
|
19
|
-
[ElementTypes.Editor]: 'edit_note',
|
|
20
|
-
[ElementTypes.MscoaSelection]: 'account_tree',
|
|
21
|
-
[ElementTypes.WorkflowDocumentPicker]: 'description',
|
|
22
|
-
[ElementTypes.WorkflowAdjudication]: 'gavel',
|
|
23
|
-
};
|
|
24
|
-
function getInputIcon(element) {
|
|
25
|
-
if (!element)
|
|
26
|
-
return 'help_outline';
|
|
27
|
-
return InputElementIconMap[element] ?? 'help_outline';
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { getInputIcon as g };
|
|
31
|
-
//# sourceMappingURL=ngx-t-forms-getInputIcon-B4ADgevZ.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-getInputIcon-B4ADgevZ.mjs","sources":["../../../projects/ngx-t-forms/src/lib/shared/functions/getInputIcon.ts"],"sourcesContent":["import { ElementTypes } from 'ngx-t-forms-types';\r\n\r\nexport const InputElementIconMap: Record<ElementTypes, string> = {\r\n [ElementTypes.Input]: 'text_fields',\r\n [ElementTypes.Location]: 'location_on',\r\n [ElementTypes.AutoCompleteInput]: 'manage_search',\r\n [ElementTypes.Toggle]: 'toggle_on',\r\n [ElementTypes.Select]: 'arrow_drop_down_circle',\r\n [ElementTypes.PaginatedSelectionTable]: 'table_chart',\r\n [ElementTypes.IconSelect]: 'emoji_emotions',\r\n [ElementTypes.Textarea]: 'notes',\r\n [ElementTypes.DatePicker]: 'calendar_today',\r\n [ElementTypes.DateRangePicker]: 'date_range',\r\n [ElementTypes.FileUpload]: 'upload_file',\r\n [ElementTypes.Signature]: 'draw',\r\n [ElementTypes.ImageCapture]: 'photo_camera',\r\n [ElementTypes.SectionTitle]: 'title',\r\n [ElementTypes.MultipleInput]: 'list_alt',\r\n [ElementTypes.Editor]: 'edit_note',\r\n [ElementTypes.MscoaSelection]: 'account_tree',\r\n [ElementTypes.WorkflowDocumentPicker]: 'description',\r\n [ElementTypes.WorkflowAdjudication]: 'gavel',\r\n};\r\n\r\nexport function getInputIcon(element: ElementTypes | undefined | null): string {\r\n if (!element) return 'help_outline';\r\n return InputElementIconMap[element] ?? 'help_outline';\r\n}\r\n"],"names":[],"mappings":";;AAEO,MAAM,mBAAmB,GAAiC;AAC/D,IAAA,CAAC,YAAY,CAAC,KAAK,GAAG,aAAa;AACnC,IAAA,CAAC,YAAY,CAAC,QAAQ,GAAG,aAAa;AACtC,IAAA,CAAC,YAAY,CAAC,iBAAiB,GAAG,eAAe;AACjD,IAAA,CAAC,YAAY,CAAC,MAAM,GAAG,WAAW;AAClC,IAAA,CAAC,YAAY,CAAC,MAAM,GAAG,wBAAwB;AAC/C,IAAA,CAAC,YAAY,CAAC,uBAAuB,GAAG,aAAa;AACrD,IAAA,CAAC,YAAY,CAAC,UAAU,GAAG,gBAAgB;AAC3C,IAAA,CAAC,YAAY,CAAC,QAAQ,GAAG,OAAO;AAChC,IAAA,CAAC,YAAY,CAAC,UAAU,GAAG,gBAAgB;AAC3C,IAAA,CAAC,YAAY,CAAC,eAAe,GAAG,YAAY;AAC5C,IAAA,CAAC,YAAY,CAAC,UAAU,GAAG,aAAa;AACxC,IAAA,CAAC,YAAY,CAAC,SAAS,GAAG,MAAM;AAChC,IAAA,CAAC,YAAY,CAAC,YAAY,GAAG,cAAc;AAC3C,IAAA,CAAC,YAAY,CAAC,YAAY,GAAG,OAAO;AACpC,IAAA,CAAC,YAAY,CAAC,aAAa,GAAG,UAAU;AACxC,IAAA,CAAC,YAAY,CAAC,MAAM,GAAG,WAAW;AAClC,IAAA,CAAC,YAAY,CAAC,cAAc,GAAG,cAAc;AAC7C,IAAA,CAAC,YAAY,CAAC,sBAAsB,GAAG,aAAa;AACpD,IAAA,CAAC,YAAY,CAAC,oBAAoB,GAAG,OAAO;CAC7C;AAEK,SAAU,YAAY,CAAC,OAAwC,EAAA;AACnE,IAAA,IAAI,CAAC,OAAO;AAAE,QAAA,OAAO,cAAc;AACnC,IAAA,OAAO,mBAAmB,CAAC,OAAO,CAAC,IAAI,cAAc;AACvD;;;;"}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, output, signal, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import * as i3 from '@angular/material/icon';
|
|
4
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
5
|
-
import { b as buildTokenMaps, a as bindableFields, f as fieldEditorBindings, m as mapTemplateTokens } from './ngx-t-forms-token-transform-D_wsFbNc.mjs';
|
|
6
|
-
import { J as JsonEditorComponent } from './ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs';
|
|
7
|
-
|
|
8
|
-
/** True for a value a header can actually carry. */
|
|
9
|
-
function isScalar(value) {
|
|
10
|
-
return typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean';
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Narrows a parsed JSON document to a {@link HeaderTemplate}.
|
|
14
|
-
*
|
|
15
|
-
* Rejects — rather than coerces — anything a header cannot carry: an array root,
|
|
16
|
-
* a nested object/array value, or a blank name. Coercing would produce a header
|
|
17
|
-
* the endpoint silently misreads (`"[object Object]"`), so the entry is dropped
|
|
18
|
-
* and named in `problems` instead.
|
|
19
|
-
*
|
|
20
|
-
* @param value - The parsed editor document.
|
|
21
|
-
* @returns The expressible entries plus a complaint per rejected one.
|
|
22
|
-
*/
|
|
23
|
-
function narrowHeaderTemplate(value) {
|
|
24
|
-
const template = {};
|
|
25
|
-
const problems = [];
|
|
26
|
-
if (Array.isArray(value) || value === null || typeof value !== 'object') {
|
|
27
|
-
return { template, problems: ['Headers must be a JSON object of "name": "value" pairs.'] };
|
|
28
|
-
}
|
|
29
|
-
for (const [rawName, rawValue] of Object.entries(value)) {
|
|
30
|
-
const name = rawName.trim();
|
|
31
|
-
if (name === '') {
|
|
32
|
-
problems.push('A header name cannot be blank.');
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
if (rawValue === null || rawValue === undefined) {
|
|
36
|
-
problems.push(`"${name}" has no value.`);
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
if (!isScalar(rawValue)) {
|
|
40
|
-
problems.push(`"${name}" must be a single text value — objects and lists cannot be sent as a header.`);
|
|
41
|
-
continue;
|
|
42
|
-
}
|
|
43
|
-
template[name] = rawValue;
|
|
44
|
-
}
|
|
45
|
-
return { template, problems };
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** Shown when nothing has been authored and the endpoint captured no headers. */
|
|
49
|
-
const EMPTY_SKELETON = { 'Content-Type': 'application/json' };
|
|
50
|
-
/**
|
|
51
|
-
* Editor for a value/options fetch's `headerTemplate`.
|
|
52
|
-
*
|
|
53
|
-
* Shares the {@link JsonEditorComponent} and the friendly-label token transform
|
|
54
|
-
* with the payload-template editor, so binding a header to a live field is the
|
|
55
|
-
* same gesture as binding a payload field: type `$`, pick the field, and the
|
|
56
|
-
* editor inserts its `{{token}}`. Unlike a payload it enforces a **flat**
|
|
57
|
-
* `name → text` shape — a header has no structure to nest into — and names any
|
|
58
|
-
* entry it had to reject rather than dropping it silently.
|
|
59
|
-
*
|
|
60
|
-
* Applies to GET as well as POST; which slot it edits is decided upstream by the
|
|
61
|
-
* element-editor descriptor, so this component owns no mode toggle.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* <lib-header-template-editor [value]="headers()" [formInputs]="inputs()"
|
|
65
|
-
* (valueChanged)="onHeaders($event)" />
|
|
66
|
-
*/
|
|
67
|
-
class HeaderTemplateEditorComponent {
|
|
68
|
-
constructor() {
|
|
69
|
-
/** Current header template (`undefined` when nothing has been authored yet). */
|
|
70
|
-
this.value = input(undefined, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
71
|
-
/**
|
|
72
|
-
* Default shown when nothing has been authored yet — the endpoint's captured
|
|
73
|
-
* headers, when the collection carried any. Falls back to a one-line skeleton
|
|
74
|
-
* so the editor never opens blank.
|
|
75
|
-
*/
|
|
76
|
-
this.defaultTemplate = input(undefined, ...(ngDevMode ? [{ debugName: "defaultTemplate" }] : /* istanbul ignore next */ []));
|
|
77
|
-
/** All form inputs, offered as insertable `{{inputId}}` bindings. */
|
|
78
|
-
this.formInputs = input([], ...(ngDevMode ? [{ debugName: "formInputs" }] : /* istanbul ignore next */ []));
|
|
79
|
-
/** Disables the editor. */
|
|
80
|
-
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
81
|
-
/** Validation errors surfaced by the parent editor. */
|
|
82
|
-
this.errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
83
|
-
/** Optional id supplied by the parent editor. */
|
|
84
|
-
this.id = input(undefined, ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
85
|
-
/** Emits the narrowed header map on every valid edit. */
|
|
86
|
-
this.valueChanged = output();
|
|
87
|
-
/** Per-entry complaints from the last edit (nested value, blank name, …). */
|
|
88
|
-
this.shapeProblems = signal([], ...(ngDevMode ? [{ debugName: "shapeProblems" }] : /* istanbul ignore next */ []));
|
|
89
|
-
/** id⇄label token maps (safe + unique labels only; everything else stays a raw id). */
|
|
90
|
-
this.#tokenMaps = computed(() => buildTokenMaps(bindableFields(this.formInputs())), ...(ngDevMode ? [{ debugName: "#tokenMaps" }] : /* istanbul ignore next */ []));
|
|
91
|
-
/** Field bindings for the JSON editor's `$`-trigger picker. */
|
|
92
|
-
this.editorBindings = computed(() => fieldEditorBindings(this.formInputs(), this.#tokenMaps().idToLabel), ...(ngDevMode ? [{ debugName: "editorBindings" }] : /* istanbul ignore next */ []));
|
|
93
|
-
/**
|
|
94
|
-
* The value the JSON editor renders — the authored headers, the endpoint's
|
|
95
|
-
* captured ones, or the skeleton — with stored `{{id}}` tokens rewritten to the
|
|
96
|
-
* friendly `{{Label}}` form for display.
|
|
97
|
-
*/
|
|
98
|
-
this.editorValue = computed(() => {
|
|
99
|
-
const authored = this.value();
|
|
100
|
-
const source = authored ?? this.defaultTemplate() ?? EMPTY_SKELETON;
|
|
101
|
-
return mapTemplateTokens(source, this.#tokenMaps().idToLabel);
|
|
102
|
-
}, ...(ngDevMode ? [{ debugName: "editorValue" }] : /* istanbul ignore next */ []));
|
|
103
|
-
}
|
|
104
|
-
/** id⇄label token maps (safe + unique labels only; everything else stays a raw id). */
|
|
105
|
-
#tokenMaps;
|
|
106
|
-
/**
|
|
107
|
-
* Commit a valid edit: narrow the document to a flat header map, then rewrite
|
|
108
|
-
* the friendly `{{Label}}` tokens back to the stored `{{id}}` form before
|
|
109
|
-
* emitting. Invalid JSON is ignored (the last valid map stays in effect);
|
|
110
|
-
* entries the header shape cannot carry are reported rather than persisted.
|
|
111
|
-
*/
|
|
112
|
-
onEditorChange(change) {
|
|
113
|
-
if (!change.valid)
|
|
114
|
-
return;
|
|
115
|
-
const { template, problems } = narrowHeaderTemplate(change.value);
|
|
116
|
-
this.shapeProblems.set(problems);
|
|
117
|
-
const stored = mapTemplateTokens(template, this.#tokenMaps().labelToId);
|
|
118
|
-
this.valueChanged.emit(stored);
|
|
119
|
-
}
|
|
120
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: HeaderTemplateEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
121
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: HeaderTemplateEditorComponent, isStandalone: true, selector: "lib-header-template-editor", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, defaultTemplate: { classPropertyName: "defaultTemplate", publicName: "defaultTemplate", isSignal: true, isRequired: false, transformFunction: null }, formInputs: { classPropertyName: "formInputs", publicName: "formInputs", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, host: { classAttribute: "lib-header-template-editor" }, ngImport: i0, template: "<div class=\"header-editor\">\r\n <p class=\"hint-line\">\r\n <mat-icon class=\"info-icon\">info</mat-icon>\r\n <span>Author the request headers as JSON \u2014 one <code>\"name\": \"value\"</code> pair per header.\r\n Type <code>$</code> to bind a value to a field; the request waits until every bound field\r\n has a value.</span>\r\n </p>\r\n\r\n <lib-json-editor\r\n height=\"260px\"\r\n [value]=\"editorValue()\"\r\n [bindings]=\"editorBindings()\"\r\n [disabled]=\"disabled()\"\r\n (valueChange)=\"onEditorChange($event)\" />\r\n\r\n @for (problem of shapeProblems(); track $index) {\r\n <p class=\"error-line\"><span>{{ problem }}</span></p>\r\n }\r\n\r\n @for (error of errors(); track $index) {\r\n <p class=\"error-line\"><span>{{ error.message }}</span></p>\r\n }\r\n</div>\r\n", styles: [":host{display:block}.header-editor{display:flex;flex-direction:column;gap:1.5rem}.hint-line{display:flex;align-items:flex-start;gap:.5rem;margin:0;font-size:.875rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}.hint-line code{font-family:var(--lib-forms-font-mono, monospace);font-size:.8125rem;padding:.05rem .35rem;border-radius:4px;background:var(--lib-forms-surface-container-highest)}.info-icon{flex-shrink:0;font-size:1.125rem;width:1.125rem;height:1.125rem;color:var(--lib-forms-primary)}.error-line{display:flex;align-items:flex-start;gap:.5rem;margin:0;font-size:.75rem;line-height:1.5;color:var(--lib-forms-error)}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: JsonEditorComponent, selector: "lib-json-editor", inputs: ["value", "height", "disabled", "bindings"], outputs: ["valueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
122
|
-
}
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: HeaderTemplateEditorComponent, decorators: [{
|
|
124
|
-
type: Component,
|
|
125
|
-
args: [{ selector: 'lib-header-template-editor', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.Emulated, host: { class: 'lib-header-template-editor' }, imports: [MatIconModule, JsonEditorComponent], template: "<div class=\"header-editor\">\r\n <p class=\"hint-line\">\r\n <mat-icon class=\"info-icon\">info</mat-icon>\r\n <span>Author the request headers as JSON \u2014 one <code>\"name\": \"value\"</code> pair per header.\r\n Type <code>$</code> to bind a value to a field; the request waits until every bound field\r\n has a value.</span>\r\n </p>\r\n\r\n <lib-json-editor\r\n height=\"260px\"\r\n [value]=\"editorValue()\"\r\n [bindings]=\"editorBindings()\"\r\n [disabled]=\"disabled()\"\r\n (valueChange)=\"onEditorChange($event)\" />\r\n\r\n @for (problem of shapeProblems(); track $index) {\r\n <p class=\"error-line\"><span>{{ problem }}</span></p>\r\n }\r\n\r\n @for (error of errors(); track $index) {\r\n <p class=\"error-line\"><span>{{ error.message }}</span></p>\r\n }\r\n</div>\r\n", styles: [":host{display:block}.header-editor{display:flex;flex-direction:column;gap:1.5rem}.hint-line{display:flex;align-items:flex-start;gap:.5rem;margin:0;font-size:.875rem;line-height:1.5;color:var(--lib-forms-on-surface-variant)}.hint-line code{font-family:var(--lib-forms-font-mono, monospace);font-size:.8125rem;padding:.05rem .35rem;border-radius:4px;background:var(--lib-forms-surface-container-highest)}.info-icon{flex-shrink:0;font-size:1.125rem;width:1.125rem;height:1.125rem;color:var(--lib-forms-primary)}.error-line{display:flex;align-items:flex-start;gap:.5rem;margin:0;font-size:.75rem;line-height:1.5;color:var(--lib-forms-error)}\n"] }]
|
|
126
|
-
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], defaultTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultTemplate", required: false }] }], formInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "formInputs", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] } });
|
|
127
|
-
|
|
128
|
-
export { HeaderTemplateEditorComponent };
|
|
129
|
-
//# sourceMappingURL=ngx-t-forms-header-template-editor.component-DLldVmcN.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-header-template-editor.component-DLldVmcN.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/header-template-editor/flatten-header-template.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/header-template-editor/header-template-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/header-template-editor/header-template-editor.component.html"],"sourcesContent":["/**\r\n * @file Flattening + validation for the request-header JSON editor.\r\n *\r\n * A {@link HeaderTemplate} is a flat `name → scalar` map, but the editor beneath\r\n * it is a general JSON editor: the author can type anything that parses. This\r\n * module is the narrow gate between the two — it accepts what a header map can\r\n * express and reports, per key, what it had to reject, so the editor can say\r\n * *which* header is wrong instead of silently dropping it.\r\n *\r\n * Kept separate from the component so it stays trivially unit-testable and free\r\n * of Angular.\r\n */\r\nimport type { HeaderTemplate, HeaderTemplateValue } from 'ngx-t-forms-types';\r\n\r\n/** The outcome of narrowing an edited JSON document to a header map. */\r\nexport interface HeaderTemplateNarrowing {\r\n /** The header entries that are expressible; always safe to persist. */\r\n readonly template: HeaderTemplate;\r\n /**\r\n * Human-readable complaints, one per rejected entry (nested object/array value,\r\n * or a blank header name). Empty when the document is a clean header map.\r\n */\r\n readonly problems: readonly string[];\r\n}\r\n\r\n/** True for a value a header can actually carry. */\r\nfunction isScalar(value: unknown): value is HeaderTemplateValue {\r\n return typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean';\r\n}\r\n\r\n/**\r\n * Narrows a parsed JSON document to a {@link HeaderTemplate}.\r\n *\r\n * Rejects — rather than coerces — anything a header cannot carry: an array root,\r\n * a nested object/array value, or a blank name. Coercing would produce a header\r\n * the endpoint silently misreads (`\"[object Object]\"`), so the entry is dropped\r\n * and named in `problems` instead.\r\n *\r\n * @param value - The parsed editor document.\r\n * @returns The expressible entries plus a complaint per rejected one.\r\n */\r\nexport function narrowHeaderTemplate(value: unknown): HeaderTemplateNarrowing {\r\n const template: Record<string, HeaderTemplateValue> = {};\r\n const problems: string[] = [];\r\n\r\n if (Array.isArray(value) || value === null || typeof value !== 'object') {\r\n return { template, problems: ['Headers must be a JSON object of \"name\": \"value\" pairs.'] };\r\n }\r\n\r\n for (const [rawName, rawValue] of Object.entries(value as Record<string, unknown>)) {\r\n const name = rawName.trim();\r\n if (name === '') {\r\n problems.push('A header name cannot be blank.');\r\n continue;\r\n }\r\n if (rawValue === null || rawValue === undefined) {\r\n problems.push(`\"${name}\" has no value.`);\r\n continue;\r\n }\r\n if (!isScalar(rawValue)) {\r\n problems.push(`\"${name}\" must be a single text value — objects and lists cannot be sent as a header.`);\r\n continue;\r\n }\r\n template[name] = rawValue;\r\n }\r\n\r\n return { template, problems };\r\n}\r\n","import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n ViewEncapsulation,\r\n computed,\r\n input,\r\n output,\r\n signal,\r\n} from '@angular/core';\r\nimport { MatIconModule } from '@angular/material/icon';\r\n\r\nimport type { FormColumnInputs, HeaderTemplate } from 'ngx-t-forms-types';\r\n\r\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\nimport { bindableFields, fieldEditorBindings } from '../_shared/field-bindings';\r\nimport {\r\n JsonEditorComponent,\r\n type EditorBinding,\r\n type JsonEditorChange,\r\n} from '../json-editor/json-editor.component';\r\nimport { buildTokenMaps, mapTemplateTokens } from '../payload-template-editor/token-transform';\r\nimport { narrowHeaderTemplate } from './flatten-header-template';\r\n\r\n/** Shown when nothing has been authored and the endpoint captured no headers. */\r\nconst EMPTY_SKELETON: HeaderTemplate = { 'Content-Type': 'application/json' };\r\n\r\n/**\r\n * Editor for a value/options fetch's `headerTemplate`.\r\n *\r\n * Shares the {@link JsonEditorComponent} and the friendly-label token transform\r\n * with the payload-template editor, so binding a header to a live field is the\r\n * same gesture as binding a payload field: type `$`, pick the field, and the\r\n * editor inserts its `{{token}}`. Unlike a payload it enforces a **flat**\r\n * `name → text` shape — a header has no structure to nest into — and names any\r\n * entry it had to reject rather than dropping it silently.\r\n *\r\n * Applies to GET as well as POST; which slot it edits is decided upstream by the\r\n * element-editor descriptor, so this component owns no mode toggle.\r\n *\r\n * @example\r\n * <lib-header-template-editor [value]=\"headers()\" [formInputs]=\"inputs()\"\r\n * (valueChanged)=\"onHeaders($event)\" />\r\n */\r\n@Component({\r\n selector: 'lib-header-template-editor',\r\n templateUrl: './header-template-editor.component.html',\r\n styleUrl: './header-template-editor.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.Emulated,\r\n host: { class: 'lib-header-template-editor' },\r\n imports: [MatIconModule, JsonEditorComponent],\r\n})\r\nexport class HeaderTemplateEditorComponent {\r\n /** Current header template (`undefined` when nothing has been authored yet). */\r\n readonly value = input<HeaderTemplate | undefined>(undefined);\r\n\r\n /**\r\n * Default shown when nothing has been authored yet — the endpoint's captured\r\n * headers, when the collection carried any. Falls back to a one-line skeleton\r\n * so the editor never opens blank.\r\n */\r\n readonly defaultTemplate = input<HeaderTemplate | undefined>(undefined);\r\n\r\n /** All form inputs, offered as insertable `{{inputId}}` bindings. */\r\n readonly formInputs = input<readonly FormColumnInputs[]>([]);\r\n\r\n /** Disables the editor. */\r\n readonly disabled = input<boolean>(false);\r\n\r\n /** Validation errors surfaced by the parent editor. */\r\n readonly errors = input<IConfigElementError[] | undefined>([]);\r\n\r\n /** Optional id supplied by the parent editor. */\r\n readonly id = input<string | undefined>(undefined);\r\n\r\n /** Emits the narrowed header map on every valid edit. */\r\n readonly valueChanged = output<HeaderTemplate>();\r\n\r\n /** Per-entry complaints from the last edit (nested value, blank name, …). */\r\n protected readonly shapeProblems = signal<readonly string[]>([]);\r\n\r\n /** id⇄label token maps (safe + unique labels only; everything else stays a raw id). */\r\n readonly #tokenMaps = computed(() => buildTokenMaps(bindableFields(this.formInputs())));\r\n\r\n /** Field bindings for the JSON editor's `$`-trigger picker. */\r\n protected readonly editorBindings = computed<readonly EditorBinding[]>(() =>\r\n fieldEditorBindings(this.formInputs(), this.#tokenMaps().idToLabel),\r\n );\r\n\r\n /**\r\n * The value the JSON editor renders — the authored headers, the endpoint's\r\n * captured ones, or the skeleton — with stored `{{id}}` tokens rewritten to the\r\n * friendly `{{Label}}` form for display.\r\n */\r\n protected readonly editorValue = computed<object | undefined>(() => {\r\n const authored = this.value();\r\n const source = authored ?? this.defaultTemplate() ?? EMPTY_SKELETON;\r\n return mapTemplateTokens(source, this.#tokenMaps().idToLabel) as object;\r\n });\r\n\r\n /**\r\n * Commit a valid edit: narrow the document to a flat header map, then rewrite\r\n * the friendly `{{Label}}` tokens back to the stored `{{id}}` form before\r\n * emitting. Invalid JSON is ignored (the last valid map stays in effect);\r\n * entries the header shape cannot carry are reported rather than persisted.\r\n */\r\n protected onEditorChange(change: JsonEditorChange): void {\r\n if (!change.valid) return;\r\n const { template, problems } = narrowHeaderTemplate(change.value);\r\n this.shapeProblems.set(problems);\r\n const stored = mapTemplateTokens(template, this.#tokenMaps().labelToId);\r\n this.valueChanged.emit(stored);\r\n }\r\n}\r\n","<div class=\"header-editor\">\r\n <p class=\"hint-line\">\r\n <mat-icon class=\"info-icon\">info</mat-icon>\r\n <span>Author the request headers as JSON — one <code>\"name\": \"value\"</code> pair per header.\r\n Type <code>$</code> to bind a value to a field; the request waits until every bound field\r\n has a value.</span>\r\n </p>\r\n\r\n <lib-json-editor\r\n height=\"260px\"\r\n [value]=\"editorValue()\"\r\n [bindings]=\"editorBindings()\"\r\n [disabled]=\"disabled()\"\r\n (valueChange)=\"onEditorChange($event)\" />\r\n\r\n @for (problem of shapeProblems(); track $index) {\r\n <p class=\"error-line\"><span>{{ problem }}</span></p>\r\n }\r\n\r\n @for (error of errors(); track $index) {\r\n <p class=\"error-line\"><span>{{ error.message }}</span></p>\r\n }\r\n</div>\r\n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AA,EAAA,i0BAAA,EAAA,MAAA,EAAA,CAAA,ioBAAA,CAAA,EAAA;;;;;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { v as DialogTemplateComponent, w as FormBuilderComponent, x as FormsComponent, M as MscoaFormInputComponent, S as SignatureInputElementComponent, T as TDynamicDataEditComponent, b as TDynamicDataViewComponent, y as TFormInputComponent, U as UserFormStepperComponent, V as ValidationExpressioCreatorComponent, z as getSignatureImage, t as testAgainstItem } from './ngx-t-forms-ngx-t-forms-tQEbZK_e.mjs';
|
|
2
|
-
//# sourceMappingURL=ngx-t-forms-index-C8NtLE16.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-index-C8NtLE16.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-map-mat-options-keys-C2JpMTEc.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/map-mat-options-keys/map-mat-options-keys.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/map-mat-options-keys/map-mat-options-keys.html"],"sourcesContent":["import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n ElementRef,\r\n Input,\r\n OnDestroy,\r\n Optional,\r\n Self,\r\n output,\r\n} from '@angular/core';\r\nimport { NgControl } from '@angular/forms';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\nimport { FormColumnInputs, TreeNode } from 'ngx-t-forms-types';\r\nimport { DataTreeComponent } from '../api-value-access-rules/elements/data-tree/data-tree.component';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'lib-map-mat-options-keys',\r\n imports: [DataTreeComponent,CommonModule],\r\n providers: [{ provide: MatFormFieldControl, useExisting: MapMatOptionsKeys }],\r\n standalone: true,\r\n templateUrl: './map-mat-options-keys.html',\r\n styleUrl: './map-mat-options-keys.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n '[id]': 'id',\r\n },\r\n})\r\nexport class MapMatOptionsKeys implements MatFormFieldControl<TreeNode[] | string | null>, OnDestroy {\r\n static nextId = 0;\r\n private _mapToData: unknown;\r\n // -- MatFormFieldControl Boilerplate --\r\n stateChanges = new Subject<void>();\r\n id = `lib-map-mat-options-keys-${MapMatOptionsKeys.nextId++}`;\r\n placeholder = '';\r\n focused = false;\r\n touched = false;\r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n required = false;\r\n\r\n // -- Inputs --\r\n @Input() disabled = false;\r\n @Input() errors: IConfigElementError[] | undefined = [];\r\n @Input() value: TreeNode[] | string | null = null;\r\n @Input() formInputs: FormColumnInputs[] = [];\r\n @Input() set mapToData(value: unknown){\r\n this._mapToData = value;\r\n console.error('mapToData changed', value);\r\n };\r\n get mapToData(): unknown {\r\n return this._mapToData;\r\n }\r\n\r\n // -- Outputs --\r\n readonly valueChanged = output<TreeNode[] | string | null>();\r\n\r\n constructor(\r\n @Optional() @Self() public ngControl: NgControl,\r\n private _elementRef: ElementRef<HTMLElement>\r\n ) {\r\n if (this.ngControl) {\r\n this.ngControl.valueAccessor = this;\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.stateChanges.complete();\r\n }\r\n\r\n // -- Getters for Template --\r\n get empty(): boolean {\r\n if (this.value == null) return true;\r\n if (typeof this.value === 'string') return this.value === '';\r\n return Array.isArray(this.value) && this.value.length === 0;\r\n }\r\n\r\n get shouldLabelFloat(): boolean {\r\n return this.focused || !this.empty;\r\n }\r\n\r\n get errorState(): boolean {\r\n const hasError =\r\n !!this.ngControl?.control?.errors ||\r\n ((this.errors?.length ?? 0) > 0 && this.touched);\r\n return (!this.value && !!this.required) || hasError;\r\n }\r\n\r\n // -- MatFormFieldControl Methods --\r\n setDescribedByIds(ids: string[]): void {\r\n if (this._elementRef?.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector(\r\n '.lib-map-mat-options-keys'\r\n );\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n }\r\n\r\n onContainerClick(_event: MouseEvent): void {\r\n this.markAsTouched();\r\n this.stateChanges.next();\r\n }\r\n\r\n onTouched = (): void => { };\r\n\r\n markAsTouched(): void {\r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n }\r\n\r\n // -- ControlValueAccessor --\r\n writeValue(value: TreeNode[] | string | null): void {\r\n this.value = value;\r\n this.stateChanges.next();\r\n }\r\n\r\n registerOnChange(_fn: (value: TreeNode[] | string | null) => void): void {\r\n // Handled by parent or ngControl usually, but good practice to have stub\r\n }\r\n\r\n registerOnTouched(fn: () => void): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n pathChanged(path: TreeNode[] | string): void {\r\n if (!Array.isArray(path) && typeof path !== 'string') return;\r\n this.value = path;\r\n this.valueChanged.emit(path);\r\n this.stateChanges.next();\r\n }\r\n\r\n \r\n}\r\n","<div class=\"lib-map-mat-options-keys\">\r\n <lib-data-tree\r\n [data]=\"mapToData\"\r\n [value]=\"value || ''\"\r\n [formInputs]=\"formInputs\"\r\n (pathChanged)=\"pathChanged($event)\">\r\n </lib-data-tree>\r\n</div>\r\n"],"names":[],"mappings":";;;;;;;;MA8Ba,iBAAiB,CAAA;aACrB,IAAA,CAAA,MAAM,GAAG,CAAH,CAAK;IAmBlB,IAAa,SAAS,CAAC,KAAc,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,KAAK;AACvB,QAAA,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC;IAC3C;;AACA,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,UAAU;IACxB;IAKA,WAAA,CAC6B,SAAoB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