ngx-t-forms 2.0.34 → 2.0.35

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 (101) hide show
  1. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DYKniIW1.mjs → ngx-t-forms-auto-complete-input-element.component-hDWV_H2E.mjs} +2 -2
  2. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-DYKniIW1.mjs.map → ngx-t-forms-auto-complete-input-element.component-hDWV_H2E.mjs.map} +1 -1
  3. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-sAVeqJDq.mjs → ngx-t-forms-basic-input-input-element.component-BDWHCfgN.mjs} +3 -3
  4. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-sAVeqJDq.mjs.map → ngx-t-forms-basic-input-input-element.component-BDWHCfgN.mjs.map} +1 -1
  5. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-DHCYc95E.mjs → ngx-t-forms-calculated-field-rules.component-C_jwUGqr.mjs} +2 -2
  6. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-DHCYc95E.mjs.map → ngx-t-forms-calculated-field-rules.component-C_jwUGqr.mjs.map} +1 -1
  7. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-BwGlol4L.mjs → ngx-t-forms-chip-options-creator-editor.component-BIoML988.mjs} +4 -4
  8. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-BwGlol4L.mjs.map → ngx-t-forms-chip-options-creator-editor.component-BIoML988.mjs.map} +1 -1
  9. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-6fu2mXuZ.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-D2tkeGrw.mjs} +6 -6
  10. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-6fu2mXuZ.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-D2tkeGrw.mjs.map} +1 -1
  11. package/fesm2022/{ngx-t-forms-data-source-picker.component-BdFscpSi.mjs → ngx-t-forms-data-source-picker.component-DHNyMfu5.mjs} +8 -8
  12. package/fesm2022/{ngx-t-forms-data-source-picker.component-BdFscpSi.mjs.map → ngx-t-forms-data-source-picker.component-DHNyMfu5.mjs.map} +1 -1
  13. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-BakchGky.mjs → ngx-t-forms-date-picker-input-element.component-DJnHqSfk.mjs} +2 -2
  14. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-BakchGky.mjs.map → ngx-t-forms-date-picker-input-element.component-DJnHqSfk.mjs.map} +1 -1
  15. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-BnCFgi6y.mjs → ngx-t-forms-date-range-picker-input-element.component-Iw5Sou7u.mjs} +2 -2
  16. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-BnCFgi6y.mjs.map → ngx-t-forms-date-range-picker-input-element.component-Iw5Sou7u.mjs.map} +1 -1
  17. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-zM7mpZxt.mjs +373 -0
  18. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-zM7mpZxt.mjs.map +1 -0
  19. package/fesm2022/{ngx-t-forms-document-picker.component-Bp_PJyo4.mjs → ngx-t-forms-document-picker.component-j7-XiDnt.mjs} +5 -5
  20. package/fesm2022/{ngx-t-forms-document-picker.component-Bp_PJyo4.mjs.map → ngx-t-forms-document-picker.component-j7-XiDnt.mjs.map} +1 -1
  21. package/fesm2022/{ngx-t-forms-editor-input-element.component-Crad-MN8.mjs → ngx-t-forms-editor-input-element.component-CjY8h93n.mjs} +3 -3
  22. package/fesm2022/{ngx-t-forms-editor-input-element.component-Crad-MN8.mjs.map → ngx-t-forms-editor-input-element.component-CjY8h93n.mjs.map} +1 -1
  23. package/fesm2022/{ngx-t-forms-editor-js-input.component-IEjjoNbP.mjs → ngx-t-forms-editor-js-input.component-CB8iaZ8o.mjs} +2 -2
  24. package/fesm2022/{ngx-t-forms-editor-js-input.component-IEjjoNbP.mjs.map → ngx-t-forms-editor-js-input.component-CB8iaZ8o.mjs.map} +1 -1
  25. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-CzCphzUH.mjs → ngx-t-forms-file-upload-input-element.component-C8a1gMMz.mjs} +6 -6
  26. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-CzCphzUH.mjs.map → ngx-t-forms-file-upload-input-element.component-C8a1gMMz.mjs.map} +1 -1
  27. package/fesm2022/{ngx-t-forms-form-input-selector.component-DVyLFw6x.mjs → ngx-t-forms-form-input-selector.component-vPJ9YksN.mjs} +4 -4
  28. package/fesm2022/{ngx-t-forms-form-input-selector.component-DVyLFw6x.mjs.map → ngx-t-forms-form-input-selector.component-vPJ9YksN.mjs.map} +1 -1
  29. package/fesm2022/{ngx-t-forms-form-json-view.component-D5YJ5pFm.mjs → ngx-t-forms-form-json-view.component-DxvnpZdR.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-form-json-view.component-D5YJ5pFm.mjs.map → ngx-t-forms-form-json-view.component-DxvnpZdR.mjs.map} +1 -1
  31. package/fesm2022/{ngx-t-forms-form-payload-projection.component-Ip9ewB18.mjs → ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs} +3 -3
  32. package/fesm2022/{ngx-t-forms-form-payload-projection.component-Ip9ewB18.mjs.map → ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map} +1 -1
  33. package/fesm2022/ngx-t-forms-form-section-stepper.component-_cQl_olU.mjs +389 -0
  34. package/fesm2022/ngx-t-forms-form-section-stepper.component-_cQl_olU.mjs.map +1 -0
  35. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DTEx6mIl.mjs → ngx-t-forms-forms-builder-menu.component-BaBBPuXH.mjs} +11 -11
  36. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DTEx6mIl.mjs.map → ngx-t-forms-forms-builder-menu.component-BaBBPuXH.mjs.map} +1 -1
  37. package/fesm2022/{ngx-t-forms-geo-location.component-4vXrrAS0.mjs → ngx-t-forms-geo-location.component-BPqEkYIg.mjs} +2 -2
  38. package/fesm2022/{ngx-t-forms-geo-location.component-4vXrrAS0.mjs.map → ngx-t-forms-geo-location.component-BPqEkYIg.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BbfiG8wm.mjs → ngx-t-forms-image-capture-input-element.component-CZojZh_T.mjs} +6 -6
  40. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-BbfiG8wm.mjs.map → ngx-t-forms-image-capture-input-element.component-CZojZh_T.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-index-D8TBBLAD.mjs → ngx-t-forms-index-BI5sb1Lx.mjs} +2 -2
  42. package/fesm2022/ngx-t-forms-index-BI5sb1Lx.mjs.map +1 -0
  43. package/fesm2022/{ngx-t-forms-input-custom.component-B855cSGR.mjs → ngx-t-forms-input-custom.component-C-gshpIM.mjs} +2 -2
  44. package/fesm2022/{ngx-t-forms-input-custom.component-B855cSGR.mjs.map → ngx-t-forms-input-custom.component-C-gshpIM.mjs.map} +1 -1
  45. package/fesm2022/ngx-t-forms-input-editor.component-CfaTar-x.mjs +190 -0
  46. package/fesm2022/ngx-t-forms-input-editor.component-CfaTar-x.mjs.map +1 -0
  47. package/fesm2022/{ngx-t-forms-map-mat-options-keys-C0L8Vi2y.mjs → ngx-t-forms-map-mat-options-keys-B8ubWvEz.mjs} +4 -4
  48. package/fesm2022/{ngx-t-forms-map-mat-options-keys-C0L8Vi2y.mjs.map → ngx-t-forms-map-mat-options-keys-B8ubWvEz.mjs.map} +1 -1
  49. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-D8tnMRWS.mjs → ngx-t-forms-mat-chip-list-editor.component-CT3wnaz8.mjs} +4 -4
  50. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-D8tnMRWS.mjs.map → ngx-t-forms-mat-chip-list-editor.component-CT3wnaz8.mjs.map} +1 -1
  51. package/fesm2022/{ngx-t-forms-missing-form-configs.component-BgZ2Q0yu.mjs → ngx-t-forms-missing-form-configs.component-CSQ_Qtef.mjs} +6 -6
  52. package/fesm2022/{ngx-t-forms-missing-form-configs.component-BgZ2Q0yu.mjs.map → ngx-t-forms-missing-form-configs.component-CSQ_Qtef.mjs.map} +1 -1
  53. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DD13F1yS.mjs → ngx-t-forms-mscoa-chart-toolbar.component-Ovz5PFIe.mjs} +4 -4
  54. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-DD13F1yS.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-Ovz5PFIe.mjs.map} +1 -1
  55. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component--lBn-Pvd.mjs → ngx-t-forms-mscoa-segment-config.component-ByR5fNu5.mjs} +2 -2
  56. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component--lBn-Pvd.mjs.map → ngx-t-forms-mscoa-segment-config.component-ByR5fNu5.mjs.map} +1 -1
  57. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-CZHFMhL7.mjs → ngx-t-forms-multiple-input-input-element.component-DtXYH3Gb.mjs} +10 -10
  58. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-DtXYH3Gb.mjs.map +1 -0
  59. package/fesm2022/{ngx-t-forms-ngx-t-forms-BkTeV_AF.mjs → ngx-t-forms-ngx-t-forms-CW8jN83w.mjs} +1138 -65
  60. package/fesm2022/ngx-t-forms-ngx-t-forms-CW8jN83w.mjs.map +1 -0
  61. package/fesm2022/{ngx-t-forms-paginated-selection-table-1W6jXaKk.mjs → ngx-t-forms-paginated-selection-table-CWepPKmn.mjs} +5 -5
  62. package/fesm2022/{ngx-t-forms-paginated-selection-table-1W6jXaKk.mjs.map → ngx-t-forms-paginated-selection-table-CWepPKmn.mjs.map} +1 -1
  63. package/fesm2022/{ngx-t-forms-pipeline-generator.component-yBqYGbgL.mjs → ngx-t-forms-pipeline-generator.component-1EuDUOtI.mjs} +9 -9
  64. package/fesm2022/ngx-t-forms-pipeline-generator.component-1EuDUOtI.mjs.map +1 -0
  65. package/fesm2022/{ngx-t-forms-record-list-manager.component-fC_S81-7.mjs → ngx-t-forms-record-list-manager.component-C-qKvSVR.mjs} +4 -4
  66. package/fesm2022/{ngx-t-forms-record-list-manager.component-fC_S81-7.mjs.map → ngx-t-forms-record-list-manager.component-C-qKvSVR.mjs.map} +1 -1
  67. package/fesm2022/{ngx-t-forms-required-inputs.component-r1KNcuod.mjs → ngx-t-forms-required-inputs.component-D5M9c-1i.mjs} +4 -4
  68. package/fesm2022/{ngx-t-forms-required-inputs.component-r1KNcuod.mjs.map → ngx-t-forms-required-inputs.component-D5M9c-1i.mjs.map} +1 -1
  69. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-C99RdNiP.mjs → ngx-t-forms-rest-api-call-setup.component-CCz3c0X_.mjs} +4 -4
  70. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-C99RdNiP.mjs.map → ngx-t-forms-rest-api-call-setup.component-CCz3c0X_.mjs.map} +1 -1
  71. package/fesm2022/{ngx-t-forms-section-report.component-Cl1wrszQ.mjs → ngx-t-forms-section-report.component-BypN3AWY.mjs} +4 -4
  72. package/fesm2022/{ngx-t-forms-section-report.component-Cl1wrszQ.mjs.map → ngx-t-forms-section-report.component-BypN3AWY.mjs.map} +1 -1
  73. package/fesm2022/{ngx-t-forms-select-input-element.component-CStVMEhv.mjs → ngx-t-forms-select-input-element.component-DNBZVxhD.mjs} +5 -5
  74. package/fesm2022/ngx-t-forms-select-input-element.component-DNBZVxhD.mjs.map +1 -0
  75. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BybBzePF.mjs → ngx-t-forms-selection-options-editor.component-BSmmQQo3.mjs} +5 -5
  76. package/fesm2022/{ngx-t-forms-selection-options-editor.component-BybBzePF.mjs.map → ngx-t-forms-selection-options-editor.component-BSmmQQo3.mjs.map} +1 -1
  77. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-CtavFAUq.mjs → ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs} +7 -7
  78. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-CtavFAUq.mjs.map → ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map} +1 -1
  79. package/fesm2022/{ngx-t-forms-textarea-input-element.component-CVUTn20g.mjs → ngx-t-forms-textarea-input-element.component-BEcNjLGC.mjs} +2 -2
  80. package/fesm2022/{ngx-t-forms-textarea-input-element.component-CVUTn20g.mjs.map → ngx-t-forms-textarea-input-element.component-BEcNjLGC.mjs.map} +1 -1
  81. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BoZvYozf.mjs → ngx-t-forms-toggle-input-element.component-Cn_VOOEu.mjs} +2 -2
  82. package/fesm2022/{ngx-t-forms-toggle-input-element.component-BoZvYozf.mjs.map → ngx-t-forms-toggle-input-element.component-Cn_VOOEu.mjs.map} +1 -1
  83. package/fesm2022/{ngx-t-forms-validators-config.component-Df9wzsjg.mjs → ngx-t-forms-validators-config.component-DdKLxOr9.mjs} +6 -6
  84. package/fesm2022/{ngx-t-forms-validators-config.component-Df9wzsjg.mjs.map → ngx-t-forms-validators-config.component-DdKLxOr9.mjs.map} +1 -1
  85. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CJvbB68e.mjs → ngx-t-forms-workflow-adjudication.component-DB4arTNG.mjs} +9 -9
  86. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-CJvbB68e.mjs.map → ngx-t-forms-workflow-adjudication.component-DB4arTNG.mjs.map} +1 -1
  87. package/fesm2022/ngx-t-forms.mjs +1 -1
  88. package/package.json +8 -2
  89. package/styles/_editor-mixins.scss +55 -0
  90. package/types/ngx-t-forms.d.ts +663 -12
  91. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-KmfVY6sd.mjs +0 -368
  92. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-KmfVY6sd.mjs.map +0 -1
  93. package/fesm2022/ngx-t-forms-form-section-stepper.component-enB9ZNG7.mjs +0 -389
  94. package/fesm2022/ngx-t-forms-form-section-stepper.component-enB9ZNG7.mjs.map +0 -1
  95. package/fesm2022/ngx-t-forms-index-D8TBBLAD.mjs.map +0 -1
  96. package/fesm2022/ngx-t-forms-input-editor.component-DBFYZyi3.mjs +0 -193
  97. package/fesm2022/ngx-t-forms-input-editor.component-DBFYZyi3.mjs.map +0 -1
  98. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-CZHFMhL7.mjs.map +0 -1
  99. package/fesm2022/ngx-t-forms-ngx-t-forms-BkTeV_AF.mjs.map +0 -1
  100. package/fesm2022/ngx-t-forms-pipeline-generator.component-yBqYGbgL.mjs.map +0 -1
  101. package/fesm2022/ngx-t-forms-select-input-element.component-CStVMEhv.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-form-section-stepper.component-_cQl_olU.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/form-section-stepper/form-section-stepper.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/form-section-stepper/form-section-stepper.component.html"],"sourcesContent":["import { AsyncPipe } from '@angular/common';\r\nimport {\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Component,\r\n DestroyRef,\r\n OnDestroy,\r\n OnInit,\r\n ViewEncapsulation,\r\n inject,\r\n viewChild,\r\n} from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { AbstractControl, ReactiveFormsModule, FormsModule } from '@angular/forms';\r\nimport { CdkDragDrop, DragDropModule } from '@angular/cdk/drag-drop';\r\nimport { StepperSelectionEvent, StepState } from '@angular/cdk/stepper';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatMenuModule } from '@angular/material/menu';\r\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\r\nimport { MatSnackBar } from '@angular/material/snack-bar';\r\nimport { MatStepper, MatStepperModule } from '@angular/material/stepper';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { filter, map, Observable, Subject, take, takeUntil, tap, timer } from 'rxjs';\r\nimport { TourMatMenu } from 'ngx-ui-tour-md-menu';\r\n\r\nimport {\r\n ElementTypes,\r\n FormBuilderFunctions,\r\n FormColumnInputs,\r\n IMultipleInputCal,\r\n ITowerStepColumn,\r\n validateFormColumnInputs,\r\n} from 'ngx-t-forms-types';\r\n\r\nimport { TFormInputComponent } from '../../..';\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\nimport { TFormEngine } from '../../../../services/core/t-form-engine/t-form-engine';\r\nimport { getSubmissionStatusFn } from '../../../../services/core/t-form-tower-controller/functions/getSubmissionStatus';\r\nimport type { TowerFormStep } from '../../../../services/core/t-form-tower-controller/functions/selectFormSteps';\r\nimport { TourManagerService } from '../../../../services/core/tour/tour-manager.service';\r\nimport { SectionReportComponent } from '../section-report/section-report.component';\r\n\r\ninterface CountdownEntry {\r\n count: number | null;\r\n stop$: Subject<void>;\r\n deleteInputs: boolean;\r\n}\r\n\r\n@Component({\r\n selector: 'lib-form-section-stepper',\r\n templateUrl: './form-section-stepper.component.html',\r\n styleUrl: './form-section-stepper.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.Emulated,\r\n imports: [\r\n AsyncPipe,\r\n ReactiveFormsModule,\r\n FormsModule,\r\n DragDropModule,\r\n MatButtonModule,\r\n MatCardModule,\r\n MatIconModule,\r\n MatInputModule,\r\n MatMenuModule,\r\n MatProgressSpinnerModule,\r\n MatStepperModule,\r\n MatToolbarModule,\r\n MatTooltipModule,\r\n TFormInputComponent,\r\n SectionReportComponent,\r\n ...TourMatMenu,\r\n ],\r\n providers: [TFormEngine],\r\n})\r\nexport class FormSectionStepperComponent\r\n implements OnInit, OnDestroy\r\n{\r\n /**\r\n * Runtime form engine, held by composition (SIGNAL_FORMS Phase 0, D-025).\r\n * Provided per-component instance; replaces the former `extends` of the tower.\r\n */\r\n protected readonly engine = inject(TFormEngine);\r\n\r\n readonly #destroyRef = inject(DestroyRef);\r\n readonly #store: FormsStoreService = inject(FormsStoreService);\r\n readonly #ref = inject(ChangeDetectorRef);\r\n readonly #snackBar = inject(MatSnackBar);\r\n readonly #tourManagerService = inject(TourManagerService);\r\n\r\n protected readonly stepper = viewChild<MatStepper>('stepper');\r\n\r\n protected readonly loadingForm$ = this.#store.selectors.selectLoadingForm$;\r\n protected readonly selectInputInEditId$ = this.#store.selectors.selectInputInEditId$;\r\n protected isEditable = true;\r\n protected activeInput: string | undefined;\r\n protected dragging = false;\r\n protected mouseOverSection: string | null = null;\r\n protected overId: string | null = null;\r\n protected openSectionReports: Record<string, boolean> = {};\r\n\r\n protected countdownSeconds: Record<string, CountdownEntry> = {};\r\n\r\n ngOnDestroy(): void {\r\n this.#store.deregisterFormChangeFn();\r\n // The per-component TFormEngine is torn down automatically by Angular when\r\n // this component is destroyed (component-provided service ngOnDestroy).\r\n }\r\n\r\n ngOnInit(): void {\r\n this.#store.registerFormChangeFn(this.engine.initialize);\r\n this.engine.registerFormInputConfigChangeFn((inputId, config) => {\r\n this.#store.actions.updateFormInputConfigFromTower({ inputId, config });\r\n });\r\n this.#store.selectors.selectFormInEdit$\r\n .pipe(\r\n take(1),\r\n filter(form => form !== null && form !== undefined),\r\n tap(form => this.engine.initialize(form.form)),\r\n takeUntilDestroyed(this.#destroyRef),\r\n )\r\n .subscribe();\r\n }\r\n\r\n /**\r\n * Handles the key down event and reverts the last form change on Ctrl+Z.\r\n * @param event The keyboard event object.\r\n */\r\n protected onKeyDown(event: KeyboardEvent): void {\r\n if (event.ctrlKey && event.key === 'z') {\r\n this.engine.revertBackHistory();\r\n }\r\n }\r\n\r\n get formBuilderFunctions(): FormBuilderFunctions {\r\n const fns: FormBuilderFunctions = {\r\n getLatestAccountTree: () => this.engine.NGX_T_FORMS_CONFIG.formBuilder.getScoaTree(),\r\n getSCOAAccount: (SCOAAccount: string) =>\r\n this.engine.NGX_T_FORMS_CONFIG.formBuilder.getSCOAAccount(SCOAAccount),\r\n multipleInputToggleForm: this.engine.toggleMultipleInput.bind(this.engine),\r\n multipleInputSaveForm: this.engine.saveMultipleInputForm.bind(this.engine),\r\n editInput: this.editInput.bind(this),\r\n deleteInput: this.formDeleteInput.bind(this),\r\n addFunction: this.addMultipleInputValueCalculationFunction.bind(this),\r\n // Pre-existing node_modules duplication (ngx-t-forms-typings ships its own @angular/cdk copy).\r\n // CdkDragDrop types are nominally distinct due to private `_changeDetectorRef`. Cast at the boundary.\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Phase-4 TODO: deduplicate @angular/cdk peer dep in typings package.\r\n reorderItems: this.reorderMultipleInputItems.bind(this) as any,\r\n multipleInputToggleLabel: this.multipleInputToggleLabel.bind(this),\r\n multipleInputEditRow: this.engine.multipleInputEditRow.bind(this.engine),\r\n multipleInputDuplicateRow: this.engine.multipleInputDuplicateRow.bind(this.engine),\r\n };\r\n return fns;\r\n }\r\n\r\n getPreviousStepLabel(): string | undefined {\r\n const stepper = this.stepper();\r\n if (stepper === undefined) return '';\r\n const currentIndex = stepper.selectedIndex;\r\n if (currentIndex > 0) {\r\n return this.engine.selectFormSteps()?.[currentIndex - 1]?.label;\r\n }\r\n return '';\r\n }\r\n\r\n getNextStepLabel(): string | undefined {\r\n const stepper = this.stepper();\r\n if (stepper === undefined) return '';\r\n const currentIndex = stepper.selectedIndex;\r\n const steps = this.engine.selectFormSteps();\r\n if (!steps) return '';\r\n if (currentIndex < steps.length - 1) {\r\n return steps[currentIndex + 1]?.label;\r\n }\r\n return '';\r\n }\r\n\r\n getStepState(step: TowerFormStep, index: number): StepState {\r\n const activeStep = this.stepper()?.selectedIndex === index;\r\n if (activeStep) return 'edit';\r\n if (step.sectionForm?.touched && !step.sectionForm?.valid) return 'error';\r\n if (step.sectionForm?.valid) return 'done';\r\n return 'number';\r\n }\r\n\r\n get getSubmissionStatus$(): Observable<string> {\r\n const progress = this.engine.formProgress() || 0;\r\n const steps = this.engine.selectFormSteps();\r\n return this.loadingForm$.pipe(\r\n map(loading =>\r\n getSubmissionStatusFn(this.stepper(), this.engine.mainForm, progress, steps, loading),\r\n ),\r\n );\r\n }\r\n\r\n // CDK drag-drop generics retained loose because the template's `<mat-step [stepControl]>`/\r\n // `<div cdkDropList [cdkDropListData]>` bindings pass `ITowerFormSteps[]` / `ITowerStepColumn[]`\r\n // which structurally differ from the store-action payload types (`FormSlideInterface[]` / `FormColumnInputs[]`).\r\n // The downstream store actions accept the looser `<any, any, unknown>` shape so this is type-safe at the call boundary.\r\n // Phase-4 TODO: tighten once FormBuilderFunctions.reorderItems generics are typed upstream.\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n drop = (event: CdkDragDrop<any, any, unknown>): void =>\r\n this.#store.actionsFormBuilder.handleSectionDragDrop(event);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n dropItems = (event: CdkDragDrop<any, any, unknown>, sectionId: string): void =>\r\n this.#store.actionsFormBuilder.handleInputDragDrop(event, sectionId);\r\n formDeleteSection = (sectionId: string): void =>\r\n this.#store.actionsFormBuilder.formDeleteSection(sectionId);\r\n formDeleteSectionInputs = (sectionId: string): void =>\r\n this.#store.actionsFormBuilder.formDeleteSectionInputs(sectionId);\r\n addMultipleFormInput = (sectionId: string, multipleInputId: string): void =>\r\n this.#store.actionsFormBuilder.addMultipleFormInput(sectionId, multipleInputId);\r\n moveInputToSection = (inputId: string, targetSectionId: string): void =>\r\n this.#store.actionsFormBuilder.moveInputToSection(inputId, targetSectionId);\r\n reorderMultipleInputItems = (\r\n // Mirrors `FormBuilderFunctions.reorderItems` (now generic over the row\r\n // shape). The lib-internal store action requires symmetric container data,\r\n // so we narrow the second slot to `FormColumnInputs[]` at the boundary.\r\n event: CdkDragDrop<FormColumnInputs[], FormColumnInputs[], unknown>,\r\n multipleInputId: string,\r\n ): void => this.#store.actionsFormBuilder.reorderMultipleInputItems(event, multipleInputId);\r\n cloneCopyFormInput = (inputId: string): void =>\r\n this.#store.actionsFormBuilder.cloneCopyFormInput(inputId);\r\n\r\n multipleInputToggleLabel = (item: FormColumnInputs): void =>\r\n this.#store.actionsFormBuilder.multipleInputToggleLabel(item);\r\n editInput = (item: FormColumnInputs): void =>\r\n this.#store.actionsFormBuilder.editInput(item);\r\n\r\n /**\r\n * Element types whose live value does not round-trip through `prepPopulateForm`\r\n * as a single static default `value`, so they are excluded from one-click\r\n * default saving:\r\n * - DateRangePicker keeps separate start/end controls.\r\n * - MscoaSelection hydrates per-segment controls.\r\n * - SectionTitle has no value.\r\n *\r\n * MultipleInput IS supported: its rows are captured in `formControlName` shape\r\n * via {@link saveInputDefaultValue} and `prepPopulateForm` re-hydrates them.\r\n * The generic \"Default value\" text editor would otherwise clobber the array on\r\n * subsequent edits — `elementConfigurationChangedFn` guards against that.\r\n */\r\n readonly #nonDefaultableElements: ReadonlySet<ElementTypes> = new Set([\r\n ElementTypes.DateRangePicker,\r\n ElementTypes.MscoaSelection,\r\n ElementTypes.SectionTitle,\r\n ]);\r\n\r\n /** Live form control backing this input in the editor preview, if any. */\r\n #liveInputControl = (col: FormColumnInputs): AbstractControl | null =>\r\n this.engine.mainForm?.get([col.sectionId, col.id]) ?? null;\r\n\r\n /**\r\n * True for any input whose value can be persisted as a default in a shape that\r\n * re-hydrates on load. Intentionally not gated on the value being present or\r\n * valid — saving an empty value is how a previously-saved default is cleared.\r\n * Composite inputs (date-range, MSCOA, section title) are excluded because\r\n * their value does not round-trip as a single default `value`.\r\n */\r\n canSaveDefaultValue = (col: FormColumnInputs): boolean => {\r\n if (!col.formControlName || this.#nonDefaultableElements.has(col.element)) return false;\r\n return !!this.#liveInputControl(col);\r\n };\r\n\r\n /**\r\n * Saves the input's current live value as its default value (or clears the\r\n * default when the value is empty). The value is read in `formControlName`\r\n * shape (via the tower's `getFormValueNames`) — the same shape\r\n * `prepPopulateForm` consumes — so the persisted default re-hydrates correctly\r\n * when the form is loaded later, including MultipleInput row arrays. Limited to\r\n * the inputs allowed by {@link canSaveDefaultValue}.\r\n */\r\n saveInputDefaultValue = (col: FormColumnInputs): void => {\r\n if (!col.formControlName) return;\r\n const value: unknown = this.engine.getFormValueNames()[col.formControlName];\r\n // eslint-disable-next-line no-console\r\n console.log('[dv-debug] saveInputDefaultValue capture', {\r\n inputId: col.id,\r\n element: col.element,\r\n formControlName: col.formControlName,\r\n capturedValue: value,\r\n liveControlValue: this.#liveInputControl(col)?.value,\r\n });\r\n this.#store.actionsFormBuilder.saveInputDefaultValue(col.id, value);\r\n };\r\n addMultipleInputValueCalculationFunction = (\r\n item: IMultipleInputCal,\r\n multipleInputId: string | undefined,\r\n ): void =>\r\n this.#store.actionsFormBuilder.addMultipleInputValueCalculationFunction(item, multipleInputId);\r\n setActiveSection = ($event: StepperSelectionEvent): void =>\r\n this.setMatActiveStepper($event.selectedIndex);\r\n addInputToScoaSelection = (sectionId: string, scoaInputId: string): void =>\r\n this.#store.actionsFormBuilder.addInputToScoaSelection(sectionId, scoaInputId);\r\n addNewInput = (sectionId: string): void => this.#store.actionsFormBuilder.saveInput(sectionId);\r\n\r\n addSection = (): void => this.#store.actionsFormBuilder.handleAddSection();\r\n\r\n setMatActiveStepper = (index: number): void => {\r\n setTimeout(() => {\r\n const stepper = this.stepper();\r\n if (stepper === undefined) return;\r\n stepper.selectedIndex = index;\r\n }, 0);\r\n };\r\n\r\n handleInput = (event: Event, sectionId: string): void => {\r\n const inputValue = (event.target as HTMLInputElement).value;\r\n this.#store.actionsFormBuilder?.stepTitleChangeStep(sectionId, inputValue);\r\n event.stopPropagation();\r\n event.preventDefault();\r\n };\r\n\r\n get selectFormStepsComputed(): TowerFormStep[] {\r\n return this.engine.selectFormSteps().map(step => ({\r\n ...step,\r\n columns: step.columns.map(col => ({\r\n ...col,\r\n inputConfigErrors: validateFormColumnInputs(col),\r\n })),\r\n }));\r\n }\r\n\r\n stopDeletion(id: string): void {\r\n if (this.countdownSeconds[id]) {\r\n this.countdownSeconds[id]?.stop$.next();\r\n delete this.countdownSeconds[id];\r\n }\r\n }\r\n\r\n inputWillBeRemovedIn = (id: string): number | null | undefined =>\r\n this.countdownSeconds[id]?.count;\r\n\r\n removeInput(item: FormColumnInputs): void {\r\n if (this.countdownSeconds[item.id]) {\r\n this.stopDeletion(item.id);\r\n return;\r\n }\r\n\r\n this.countdownSeconds[item.id] = {\r\n count: 5,\r\n stop$: new Subject<void>(),\r\n deleteInputs: false,\r\n };\r\n\r\n const countdown$ = timer(0, 1000).pipe(\r\n tap(secondsElapsed => {\r\n const data = this.countdownSeconds[item.id];\r\n if (!data) {\r\n return;\r\n }\r\n\r\n const remainingTime = 5 - secondsElapsed;\r\n if (remainingTime <= 0) {\r\n this.formDeleteInput(item);\r\n this.stopDeletion(item.id);\r\n } else {\r\n data.count = remainingTime;\r\n }\r\n }),\r\n takeUntil(this.countdownSeconds[item.id]?.stop$!),\r\n takeUntilDestroyed(this.#destroyRef),\r\n );\r\n\r\n countdown$?.subscribe({ complete: () => {} });\r\n }\r\n\r\n deleteSection(sectionId: string | null, deleteInputs: boolean = false): void {\r\n if (!sectionId) {\r\n return;\r\n }\r\n if (this.countdownSeconds[sectionId]) {\r\n this.stopDeletion(sectionId);\r\n return;\r\n }\r\n\r\n this.countdownSeconds[sectionId] = {\r\n count: 5,\r\n stop$: new Subject<void>(),\r\n deleteInputs: deleteInputs,\r\n };\r\n\r\n const countdown$ = timer(0, 1000).pipe(\r\n tap(secondsElapsed => {\r\n const data = this.countdownSeconds[sectionId];\r\n if (!data) {\r\n return;\r\n }\r\n\r\n const remainingTime = 5 - secondsElapsed;\r\n if (remainingTime <= 0) {\r\n if (data.deleteInputs) {\r\n this.formDeleteSectionInputs(sectionId);\r\n } else {\r\n this.formDeleteSection(sectionId);\r\n }\r\n this.stopDeletion(sectionId);\r\n } else {\r\n data.count = remainingTime;\r\n }\r\n }),\r\n takeUntil(this.countdownSeconds[sectionId]?.stop$!),\r\n takeUntilDestroyed(this.#destroyRef),\r\n );\r\n\r\n countdown$?.subscribe({ complete: () => {} });\r\n }\r\n\r\n // Template binds `step.sectionForm || getPlaceHolerForSection(...)` to `<mat-step [stepControl]>`\r\n // which requires a non-undefined AbstractControl; the placeholder is always present at render time\r\n // (created by the store ahead of the @if(step.sectionForm || ...) guard). Phase-4 TODO: tighten store\r\n // contract to guarantee placeholder presence and make this non-nullable.\r\n getPlaceHolerForSection = (sectionId: string): AbstractControl =>\r\n this.#store.sectionPlaceholder[sectionId] as AbstractControl;\r\n\r\n formDeleteInput = (item: FormColumnInputs): void =>\r\n this.#store.actionsFormBuilder.formDeleteInput(item);\r\n\r\n toggleSectionReports = (sectionId: string): boolean =>\r\n (this.openSectionReports[sectionId] = !this.openSectionReports[sectionId]);\r\n\r\n refresh(): void {\r\n this.#ref.markForCheck();\r\n this.#ref.detectChanges();\r\n }\r\n\r\n sectionIncludesDefault(columns: FormColumnInputs[]): boolean {\r\n return columns.some(col => col.systemDefault);\r\n }\r\n\r\n startTour(sectionId: string): void {\r\n const tourOptions = this.engine.selectAllFormTours().filter(step => step.sectionId === sectionId);\r\n this.#tourManagerService.startTourByOption(tourOptions);\r\n }\r\n\r\n onSpaceKey(event: Event, sectionId: string): void {\r\n const inputValue = (event.target as HTMLInputElement).value;\r\n this.#store.actionsFormBuilder?.stepTitleChangeStep(sectionId, inputValue + ' ');\r\n event.stopPropagation();\r\n event.preventDefault();\r\n }\r\n\r\n refreshASection = (sectionId: string): void => {\r\n this.engine.refreshSection(sectionId)\r\n .pipe(take(1), takeUntilDestroyed(this.#destroyRef))\r\n .subscribe();\r\n };\r\n\r\n addColAndOpen(col: ITowerStepColumn): void {\r\n this.addMultipleFormInput(col.sectionId, col.id);\r\n if (!col.formIsOpen) {\r\n this.engine.toggleMultipleInput(col.id, true);\r\n }\r\n this.#snackBar.open(\r\n '✨Input field successfully added to the row entry form. Open the form to configure it further.',\r\n 'OK',\r\n { duration: 3000 },\r\n );\r\n }\r\n}\r\n","<mat-card class=\"mainCard\" appearance=\"raised\">\r\n\r\n @if (loadingForm$ | async) {\r\n <div class=\"loading-container\" role=\"status\" aria-live=\"polite\">\r\n <mat-spinner diameter=\"48\" aria-label=\"Loading form\" />\r\n </div>\r\n }\r\n <mat-stepper [style.display]=\"(loadingForm$ | async) ? 'none' : 'block'\" #stepper class=\"form-stepper\"\r\n orientation=\"vertical\" [linear]=\"!isEditable\" aria-label=\"Form sections stepper\" [animationDuration]=\"'300'\"\r\n cdkDropList #formSections=\"cdkDropList\" [cdkDropListData]=\"selectFormStepsComputed\"\r\n (cdkDropListDropped)=\"drop($event)\" (selectionChange)=\"engine.handleStepChange($event)\">\r\n\r\n @for (step of selectFormStepsComputed; track step.sectionId) {\r\n @if (step.sectionForm || getPlaceHolerForSection(step.sectionId)) {\r\n <mat-step [stepControl]=\"step.sectionForm || getPlaceHolerForSection(step.sectionId)\"\r\n [completed]=\"step.sectionIsSeen && !step.sectionIsInvalid\" [editable]=\"isEditable\"\r\n [errorMessage]=\"step.sectionFormErrorMessage||''\" [state]=\"getStepState(step,$index)\"\r\n [hasError]=\"!step.sectionForm?.valid && !!step.sectionForm?.touched\">\r\n <ng-template matStepLabel>\r\n <div cdkDrag class=\"step-label-container\" [attr.aria-label]=\"'Section ' + step.label\">\r\n <button cdkDragHandle type=\"button\" class=\"section-drag-handle\" (click)=\"$event.stopPropagation()\"\r\n matTooltip=\"Drag to reorder section\" aria-label=\"Drag to reorder section\" mat-icon-button>\r\n <mat-icon>drag_indicator</mat-icon>\r\n </button>\r\n <span class=\"step-label-text\">\r\n <input (input)=\"handleInput($event, step.sectionId)\" class=\"section-title-input\" matInput\r\n (keydown.space)=\"onSpaceKey($event, step.sectionId)\" placeholder=\"Untitled section — click to name\"\r\n [value]=\"step.label\" aria-label=\"Section title\">\r\n <mat-icon class=\"section-title-edit-hint\" aria-hidden=\"true\">edit</mat-icon>\r\n </span>\r\n @if (step.sectionIsSeen) {\r\n <mat-icon class=\"section-status-icon\" [class.error]=\"step.sectionIsInvalid\"\r\n [attr.aria-label]=\"step.sectionIsInvalid ? 'Section has errors' : 'Section completed'\">\r\n {{ step.sectionIsInvalid ? 'error' : 'check_circle' }}\r\n </mat-icon>\r\n }\r\n @if ((step)?.activeSectionHasTour && !!step.isActive) {\r\n <span class=\"tour-trigger\">\r\n <button tourAnchor=\"Form-Tour-trigger\" (click)=\"startTour(step.sectionId)\" matTooltip=\"Start section tour\"\r\n mat-icon-button aria-label=\"Start section tour\">\r\n <mat-icon>tour</mat-icon>\r\n </button>\r\n </span>\r\n }\r\n <span class=\"spacer\"></span>\r\n\r\n @if (!!inputWillBeRemovedIn(step.sectionId)) {\r\n <button\r\n (mouseover)=\"overId = step.sectionId\" (mouseout)=\"overId = null\"\r\n (click)=\"deleteSection(step.sectionId)\" color=\"warn\" mat-stroked-button class=\"countdown-button\"\r\n [attr.aria-label]=\"overId === step.sectionId ? 'Cancel section deletion' : 'Section deleting in ' + inputWillBeRemovedIn(step.sectionId) + ' seconds'\">\r\n <div class=\"delete-countdown\">\r\n <mat-progress-spinner color=\"primary\" class=\"cancelProgress\"\r\n [value]=\"((inputWillBeRemovedIn(step.sectionId)||0)/5)*100\">\r\n </mat-progress-spinner>\r\n {{ overId === step.sectionId ? 'Click to cancel' : 'Deleting in' }}\r\n {{ inputWillBeRemovedIn(step.sectionId) }}\r\n </div>\r\n </button>\r\n }\r\n\r\n @if(engine.canRefreshSection(step.sectionId)&& step.isActive){\r\n <button mat-icon-button\r\n class=\"input-sync-button\"\r\n matTooltip=\"Click to refresh this section.\"\r\n (click)=\"refreshASection(step.sectionId)\" >\r\n <mat-icon>sync</mat-icon>\r\n </button>\r\n }\r\n <button (click)=\"$event.stopPropagation()\"\r\n [matMenuTriggerData]=\"{ sectionId: step.sectionId, columns: step.columns }\" [matMenuTriggerFor]=\"sectionMenu\"\r\n mat-icon-button aria-label=\"Section options menu\">\r\n <mat-icon>more_horiz</mat-icon>\r\n </button>\r\n </div>\r\n </ng-template>\r\n\r\n @defer (on viewport; prefetch on idle) {\r\n <div class=\"step-content\">\r\n @if (!openSectionReports[step.sectionId]) {\r\n <div (cdkDropListDropped)=\"dropItems($event,step.sectionId)\" [cdkDropListData]=\"step.columns\" cdkDropList\r\n #InputList=\"cdkDropList\" class=\"row form-section\">\r\n @for (col of step.columns; track col.id) {\r\n <mat-card cdkDrag (cdkDragStarted)=\"dragging = true\" (cdkDragReleased)=\"dragging = false\"\r\n [class.inEditCol]=\"(selectInputInEditId$ | async) === col.id\"\r\n [class]=\"'box inputCard col-md-' + (dragging ? '12' : col.colSize)\" (mouseover)=\"activeInput = col.id\"\r\n (focusin)=\"activeInput = col.id\">\r\n @if (step.sectionForm) {\r\n <lib-t-form-input [editorMode]=\"true\" [tourAnchor]=\"col.id\" (valueChange)=\"engine.updateValue(col.id,$event)\"\r\n [formBuilderFunctions]=\"formBuilderFunctions\" [inputConfig]=\"col\" [formGroup]=\"step.sectionForm\"\r\n [attr.aria-label]=\"col?.label || ''\">\r\n </lib-t-form-input>\r\n }\r\n\r\n\r\n\r\n @if (col.inputConfigErrors.length > 0) {\r\n <div class=\"error\">\r\n <ul class=\"error-list\">\r\n @for (error of col.inputConfigErrors; track $index) {\r\n <li class=\"error-item\">{{ error.message }}</li>\r\n }\r\n </ul>\r\n\r\n </div>\r\n }\r\n @if (activeInput === col.id) {\r\n <mat-card-actions>\r\n\r\n <button color=\"primary\" [matTooltip]=\"'Edit ' + col.label + ' input'\" (click)=\"editInput(col)\"\r\n mat-icon-button aria-label=\"Edit input\">\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n\r\n @if (canSaveDefaultValue(col)) {\r\n <button color=\"primary\" [matTooltip]=\"'Save current value as the default for ' + col.label\"\r\n (click)=\"saveInputDefaultValue(col)\" mat-icon-button aria-label=\"Save current value as default\">\r\n <mat-icon>bookmark_add</mat-icon>\r\n </button>\r\n }\r\n\r\n <button [matTooltip]=\"'Move this input to another section'\" [matMenuTriggerFor]=\"moveInput\"\r\n [matMenuTriggerData]=\"col\" mat-icon-button aria-label=\"Move input to another section\">\r\n <mat-icon>drive_file_move</mat-icon>\r\n </button>\r\n\r\n <button [matTooltip]=\"'Clone form input'\" (click)=\"cloneCopyFormInput(col.id)\" mat-icon-button\r\n aria-label=\"Clone input\">\r\n <mat-icon>file_copy</mat-icon>\r\n </button>\r\n\r\n <span class=\"spacer\"></span>\r\n\r\n\r\n\r\n @if (!!inputWillBeRemovedIn(col.id)) {\r\n <button (mouseover)=\"overId = col.id\" (mouseout)=\"overId = null\" (click)=\"removeInput(col)\" color=\"warn\"\r\n mat-stroked-button>\r\n <div class=\"delete-countdown\">\r\n <mat-progress-spinner color=\"primary\" class=\"cancelProgress\"\r\n [value]=\"((inputWillBeRemovedIn(col.id)||0)/5)*100\">\r\n </mat-progress-spinner>\r\n\r\n {{ overId === col.id ? 'Click to cancel' : 'Deleting in' }} {{ inputWillBeRemovedIn(col.id) }}\r\n </div>\r\n\r\n </button>\r\n\r\n } @else if (col.systemDefault !== true) {\r\n <button color=\"warn\" [matTooltip]=\"'Delete ' + col.label + ' input'\" (click)=\"removeInput(col)\"\r\n mat-icon-button aria-label=\"Delete input\">\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n }\r\n\r\n\r\n @if (activeInput === col.id && col.element ==='multipleInput') {\r\n @if (!col.formIsOpen) {\r\n <button matTooltip=\"Open the row entry form — configure each column's input type here\"\r\n (click)=\"engine.toggleMultipleInput(col.id, true)\" mat-button>\r\n <mat-icon>table_rows</mat-icon>\r\n Row Entry Form\r\n </button>\r\n }\r\n <button \r\n [disabled]=\"col.systemDefault\"\r\n matTooltip=\"Add a new column field to this table\" (click)=\"\r\n addColAndOpen(col)\"\r\n color=\"accent\" mat-stroked-button>\r\n <mat-icon>view_column</mat-icon>\r\n Add Column\r\n </button>\r\n }\r\n @if (activeInput === col.id && col.element === 'mscoaSelection') {\r\n <button matTooltip=\"Extend SCOA Segments with additional inputs\"\r\n (click)=\"addInputToScoaSelection(col.sectionId, col.id)\" color=\"accent\" mat-flat-button>\r\n <mat-icon>add</mat-icon>\r\n Add Form Input\r\n </button>\r\n }\r\n\r\n </mat-card-actions>\r\n }\r\n </mat-card>\r\n }\r\n </div>\r\n @if (step.columns.length === 0) {\r\n <section class=\"empty-state-section\">\r\n <p class=\"empty-state-text\">This section has no fields yet.</p>\r\n <p class=\"empty-state-hint\">Add a field to start collecting information.</p>\r\n <div class=\"empty-state-actions\">\r\n <button matTooltip=\"Add a field to this section\" (click)=\"addNewInput(step.sectionId)\" color=\"primary\"\r\n mat-flat-button>\r\n <mat-icon>add</mat-icon>\r\n Add field\r\n </button>\r\n </div>\r\n </section>\r\n } @else {\r\n <div class=\"section-add-field\">\r\n <button class=\"add-field-button\" matTooltip=\"Add another field to this section\"\r\n (click)=\"addNewInput(step.sectionId)\" mat-stroked-button aria-label=\"Add field to this section\">\r\n <mat-icon>add</mat-icon>\r\n Add field\r\n </button>\r\n </div>\r\n }\r\n\r\n\r\n } @else {\r\n <lib-section-report [sectionId]=\"step.sectionId\"></lib-section-report>\r\n }\r\n <div class=\"step-actions\">\r\n @if (!$first) {\r\n <button mat-button matStepperPrevious type=\"button\" class=\"navigation-button\"\r\n [attr.aria-label]=\"'Go back to ' + getPreviousStepLabel()\">\r\n\r\n Back\r\n </button>\r\n }\r\n @if (!$last) {\r\n <button mat-flat-button matStepperNext color=\"primary\" type=\"button\" class=\"navigation-button\"\r\n matTooltip=\"Continue to next section\" [attr.aria-label]=\"'Continue to ' + getNextStepLabel()\">\r\n Next\r\n </button>\r\n }\r\n @if ($last) {\r\n <button mat-button (click)=\"stepper.reset()\" aria-label=\"Reset form\">Reset</button>\r\n }\r\n\r\n </div>\r\n </div>\r\n } @placeholder {\r\n <div class=\"step-placeholder\">\r\n <mat-spinner diameter=\"24\" aria-label=\"Loading step content\" />\r\n </div>\r\n }\r\n\r\n </mat-step>\r\n }\r\n }\r\n </mat-stepper>\r\n @if (engine.selectFormSteps().length === 0) {\r\n <section class=\"empty-state-section add-section-hint\">\r\n <p class=\"empty-state-text\">A form section groups related fields together.</p>\r\n <p class=\"empty-state-hint\">Click <strong>\"Add Section\"</strong> below to create your first section.</p>\r\n </section>\r\n }\r\n <mat-card-actions class=\"sticky-actions\">\r\n <span class=\"spacer\"></span>\r\n <button (click)=\"addSection()\" color=\"accent\" mat-flat-button aria-label=\"Add new section\">\r\n <mat-icon>add</mat-icon>\r\n Add Section\r\n </button>\r\n <span class=\"spacer\"></span>\r\n </mat-card-actions>\r\n <!-- Defer the footer toolbar until after the main form is loaded -->\r\n @defer (on idle; prefetch on viewport) {\r\n <footer><mat-toolbar class=\"submission-toolbar\" role=\"toolbar\" aria-label=\"Form submission actions\">\r\n <span class=\"submission-status\" role=\"status\">\r\n {{ getSubmissionStatus$ | async }}\r\n </span>\r\n <button mat-raised-button color=\"primary\" [disabled]=\"true\" aria-label=\"Submit form\">\r\n <span>\r\n {{ engine.formSubmissionMessage()}}\r\n </span>\r\n @if (engine.submittingForm) {\r\n <mat-spinner diameter=\"10\"></mat-spinner>\r\n }\r\n\r\n </button>\r\n </mat-toolbar>\r\n </footer>\r\n } @placeholder {\r\n <!-- Simple placeholder for the footer that maintains layout -->\r\n <footer>\r\n <div class=\"submission-toolbar-placeholder\"></div>\r\n </footer>\r\n }\r\n\r\n</mat-card>\r\n<mat-menu #sectionMenu=\"matMenu\">\r\n <ng-template matMenuContent let-sectionId=\"sectionId\" let-columns=\"columns\">\r\n <!-- <button mat-menu-item [matMenuTriggerFor]=\"sectionType\">\r\n <mat-icon> disabled_visible</mat-icon>\r\n Set visibility type</button> -->\r\n @if (sectionIncludesDefault(columns) === false) {\r\n <button (click)=\"deleteSection(sectionId, false)\" matTooltip=\"Deletes this section and all its inputs\"\r\n matTooltipPosition=\"right\" mat-menu-item>\r\n <mat-icon style=\"color: var(--mat-sys-error, #b3261e)\">delete</mat-icon>\r\n <span style=\"color: var(--mat-sys-error, #b3261e)\">Delete section</span>\r\n </button>\r\n <button (click)=\"deleteSection(sectionId, true)\" matTooltip=\"Deletes all inputs in this section\"\r\n matTooltipPosition=\"right\" mat-menu-item>\r\n <mat-icon style=\"color: var(--mat-sys-error, #b3261e)\">delete_sweep</mat-icon>\r\n <span style=\"color: var(--mat-sys-error, #b3261e)\">Delete section inputs</span>\r\n </button>\r\n }\r\n\r\n <button (click)=\"toggleSectionReports(sectionId)\" mat-menu-item>\r\n <mat-icon>leaderboard</mat-icon>\r\n {{ openSectionReports[sectionId] ? 'Close report' : 'Section report' }}</button>\r\n </ng-template>\r\n</mat-menu>\r\n<mat-menu #sectionType=\"matMenu\">\r\n <button mat-menu-item>\r\n <mat-icon>visibility</mat-icon>\r\n view only</button>\r\n <button mat-menu-item>\r\n <mat-icon>visibility_off</mat-icon>\r\n system</button>\r\n <button mat-menu-item>\r\n <mat-icon>edit</mat-icon>\r\n user edit</button>\r\n</mat-menu>\r\n<mat-menu #moveInput=\"matMenu\">\r\n <ng-template matMenuContent let-id=\"id\" let-sectionId=\"sectionId\">\r\n @for (section of ( selectFormStepsComputed); track section.sectionId) {\r\n <button [disabled]=\"section.sectionId === sectionId\" (click)=\"moveInputToSection(id,section.sectionId)\"\r\n mat-menu-item>\r\n <mat-icon>folder</mat-icon>\r\n {{section.label || 'Untitled section'}}\r\n </button>\r\n }\r\n\r\n </ng-template>\r\n</mat-menu>\r\n\r\n"],"names":["i1","i4","i5","i8","i9","i10","i11","i2","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8Ea,2BAA2B,CAAA;AA1BxC,IAAA,WAAA,GAAA;AA6BE;;;AAGG;AACgB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC;AAEtC,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAChC,QAAA,IAAA,CAAA,MAAM,GAAsB,MAAM,CAAC,iBAAiB,CAAC;AACrD,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,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,CAAA,CAAA,sBAAA,CAAA,CAAA,EAAA,eAAA,EAAA,CAAA,mBAAA,EAAA,sBAAA,MAAA,EAAA,UAAA,EAAA,CAAA;sBA1BvC,SAAS;mCACE,0BAA0B,EAAA,eAAA,EAGnB,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,QAAQ,EAAA,OAAA,EAChC;4BACP,SAAS;4BACT,mBAAmB;4BACnB,WAAW;4BACX,cAAc;4BACd,eAAe;4BACf,aAAa;4BACb,aAAa;4BACb,cAAc;4BACd,aAAa;4BACb,wBAAwB;4BACxB,gBAAgB;4BAChB,gBAAgB;4BAChB,gBAAgB;4BAChB,mBAAmB;4BACnB,sBAAsB;AACtB,4BAAA,GAAG,WAAW;yBACf,EAAA,SAAA,EACU,CAAC,WAAW,CAAC,EAAA,QAAA,EAAA,0zeAAA,EAAA,MAAA,EAAA,CAAA,ikKAAA,CAAA,EAAA;+FAiB2B,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA,EAAA,CAAA;;;;"}
@@ -7,16 +7,16 @@ import * as i1 from '@angular/material/button';
7
7
  import { MatButtonModule } from '@angular/material/button';
8
8
  import * as i3 from '@angular/material/icon';
9
9
  import { MatIconModule } from '@angular/material/icon';
10
- import * as i6 from '@angular/material/menu';
10
+ import * as i6$1 from '@angular/material/menu';
11
11
  import { MatMenuModule } from '@angular/material/menu';
12
12
  import * as i5 from '@angular/material/tooltip';
13
13
  import { MatTooltipModule } from '@angular/material/tooltip';
14
- import * as i3$2 from '@angular/material/card';
14
+ import * as i3$1 from '@angular/material/card';
15
15
  import { MatCardModule } from '@angular/material/card';
16
- import * as i5$2 from '@angular/material/toolbar';
16
+ import * as i8 from '@angular/material/toolbar';
17
17
  import { MatToolbarModule } from '@angular/material/toolbar';
18
18
  import { MatDividerModule } from '@angular/material/divider';
19
- import * as i3$1 from '@angular/material/progress-spinner';
19
+ import * as i4 from '@angular/material/progress-spinner';
20
20
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
21
21
  import * as i2 from '@angular/material/form-field';
22
22
  import { MatFormFieldModule } from '@angular/material/form-field';
@@ -26,11 +26,11 @@ import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angu
26
26
  import * as i1$1 from '@angular/cdk/clipboard';
27
27
  import { ClipboardModule } from '@angular/cdk/clipboard';
28
28
  import { AsyncPipe, TitleCasePipe } from '@angular/common';
29
- import { F as FormsStoreService, g as getAvatar, D as DaysAgoPipe, N as NGX_T_FORMS_CONFIG_TOKEN, t as testAgainstItem, a as assignDeepPropertyToObject, T as TDynamicDataEditComponent } from './ngx-t-forms-ngx-t-forms-BkTeV_AF.mjs';
29
+ import { F as FormsStoreService, g as getAvatar, D as DaysAgoPipe, N as NGX_T_FORMS_CONFIG_TOKEN, t as testAgainstItem, a as assignDeepPropertyToObject, T as TDynamicDataEditComponent } from './ngx-t-forms-ngx-t-forms-CW8jN83w.mjs';
30
30
  import * as i5$1 from '@angular/material/expansion';
31
31
  import { MatExpansionModule } from '@angular/material/expansion';
32
32
  import { ElementEditorTypes, SpecialElementKeys, validateApiDataFetchingConfiguration } from 'ngx-t-forms-types';
33
- import * as i4 from '@angular/material/list';
33
+ import * as i6 from '@angular/material/list';
34
34
  import { take } from 'rxjs';
35
35
 
36
36
  class SelectFormTemplateComponent {
@@ -58,7 +58,7 @@ class SelectFormTemplateComponent {
58
58
  return getAvatar(formTitle);
59
59
  }
60
60
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SelectFormTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
61
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SelectFormTemplateComponent, isStandalone: true, selector: "lib-select-form-template", ngImport: i0, template: "<div class=\"template-select-dialog\">\r\n <!-- Header: icon + title + subtitle per design rule \u00A74 -->\r\n <header class=\"dialog-header\">\r\n <div class=\"header-icon\" aria-hidden=\"true\">\r\n <mat-icon>description</mat-icon>\r\n </div>\r\n <div class=\"header-text\">\r\n <h1 class=\"header-title\">Choose a Form Template</h1>\r\n <p class=\"header-subtitle\">\r\n Select a pre-built form template to start with. You can customize and save it as your own form after copying it to the editor.\r\n </p>\r\n </div>\r\n </header>\r\n\r\n <section class=\"dialog-content\">\r\n @if (selectLoadingForms$ | async) {\r\n <div class=\"loading-state\">\r\n <mat-spinner diameter=\"40\" aria-label=\"Loading form templates\"></mat-spinner>\r\n <span class=\"loading-text\">Loading form templates...</span>\r\n </div>\r\n } @else {\r\n <ul class=\"form-template-list\" aria-label=\"Available form templates\">\r\n @for (form of selectForms$ | async; track form._id) {\r\n <li>\r\n <button\r\n type=\"button\"\r\n class=\"form-list-item\"\r\n (click)=\"selectForm(form)\"\r\n [matTooltip]=\"'Click to select this template'\"\r\n [attr.aria-label]=\"'Select template: ' + form.formTitle\">\r\n <img\r\n class=\"form-avatar\"\r\n [class.form-avatar--error]=\"form.errors.length > 0\"\r\n [src]=\"getFormAvatar(form.formTitle)\"\r\n [alt]=\"''\"\r\n aria-hidden=\"true\">\r\n <div class=\"form-item-content\">\r\n <span class=\"form-title\">{{ form.formTitle | titlecase }}</span>\r\n <div class=\"form-metadata\">\r\n @if (form.errors.length > 0) {\r\n <span class=\"metadata-item\">\r\n <mat-icon color=\"warn\" aria-hidden=\"true\">error</mat-icon>\r\n <small>{{ form.errors.length }}</small>\r\n </span>\r\n <span class=\"metadata-divider\" aria-hidden=\"true\">\u2022</span>\r\n }\r\n <span class=\"metadata-item\">\r\n <mat-icon aria-hidden=\"true\">add_circle_outline</mat-icon>\r\n <small>{{ form.createdAt | daysAgo }}</small>\r\n </span>\r\n <span class=\"metadata-divider\" aria-hidden=\"true\">\u2022</span>\r\n <span class=\"metadata-item\">\r\n <mat-icon aria-hidden=\"true\">update</mat-icon>\r\n <small>{{ form.updatedAt | daysAgo }}</small>\r\n </span>\r\n </div>\r\n </div>\r\n </button>\r\n </li>\r\n }\r\n </ul>\r\n\r\n @if ((selectForms$ | async)?.length === 0) {\r\n <div class=\"empty-state\">\r\n <mat-icon class=\"empty-state-icon\" aria-hidden=\"true\">folder_off</mat-icon>\r\n <p>No form templates available.</p>\r\n </div>\r\n }\r\n }\r\n </section>\r\n\r\n <footer class=\"dialog-actions\">\r\n <button mat-button (click)=\"close()\" aria-label=\"Close dialog\">\r\n Close\r\n </button>\r\n </footer>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.template-select-dialog{display:flex;flex-direction:column;min-width:28rem;max-width:36rem;max-height:calc(100vh - 24px);background:var(--mat-sys-surface, var(--mat-app-surface));overflow:hidden}.dialog-header{display:flex;align-items:flex-start;gap:1rem;padding:1.5rem 1.5rem 0;flex-shrink:0}.header-icon{width:2.75rem;height:2.75rem;border-radius:8px;background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0}.header-icon mat-icon{font-size:1.5rem;width:1.5rem;height:1.5rem;color:var(--lib-forms-primary)}.header-text{flex:1;min-width:0}.header-title{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;color:var(--lib-forms-on-surface);margin:0;line-height:1.3}.header-subtitle{font-size:.875rem;color:var(--lib-forms-on-surface-variant);line-height:1.4;margin-top:.25rem;margin-bottom:0}.dialog-content{padding:1rem 1.5rem 1.5rem;overflow-y:auto;max-height:70vh;flex:1;min-height:0}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem;gap:1rem;min-height:12rem}.loading-text{font-size:.875rem;color:var(--lib-forms-on-surface-variant)}.form-template-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.form-list-item{display:flex;align-items:flex-start;gap:1rem;width:100%;padding:.5rem 1.25rem;min-height:2.25rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:8px;background:var(--mat-sys-surface-container, var(--mat-app-surface-container-low));color:var(--lib-forms-on-surface);font-size:.875rem;text-align:left;cursor:pointer;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing);box-shadow:0 2px 8px #00000014}.form-list-item:hover{border-color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.form-list-item:focus-visible{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.form-list-item:active{background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent)}@media(prefers-color-scheme:dark){.form-list-item{box-shadow:0 1px 3px #0000004d}}.form-avatar{width:2.5rem;height:2.5rem;border-radius:6px;object-fit:cover;flex-shrink:0;display:block}.form-avatar.form-avatar--error{outline:2px solid var(--sem-error);outline-offset:2px}.form-item-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:.25rem}.form-title{font-weight:600;font-size:.9375rem}.form-metadata{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem;font-size:.75rem;color:var(--lib-forms-on-surface-variant);line-height:1.35}.form-metadata .metadata-divider{margin:0 .25rem;opacity:.7}.form-metadata .metadata-item{display:inline-flex;align-items:center;gap:.25rem}.form-metadata .metadata-item mat-icon{font-size:.875rem;width:.875rem;height:.875rem}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:1.5rem;background:var(--mat-sys-surface-container, var(--mat-app-surface-container-low));border-radius:8px;text-align:center}.empty-state p{font-size:.875rem;color:var(--lib-forms-on-surface-variant);margin:0}.empty-state-icon{font-size:2rem;width:2rem;height:2rem;color:var(--lib-forms-on-surface-variant);opacity:.7}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;padding:1rem 1.5rem 1.25rem;flex-shrink:0;border-top:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i3$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: DaysAgoPipe, name: "daysAgo" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
61
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SelectFormTemplateComponent, isStandalone: true, selector: "lib-select-form-template", ngImport: i0, template: "<div class=\"template-select-dialog\">\r\n <!-- Header: icon + title + subtitle per design rule \u00A74 -->\r\n <header class=\"dialog-header\">\r\n <div class=\"header-icon\" aria-hidden=\"true\">\r\n <mat-icon>description</mat-icon>\r\n </div>\r\n <div class=\"header-text\">\r\n <h1 class=\"header-title\">Choose a Form Template</h1>\r\n <p class=\"header-subtitle\">\r\n Select a pre-built form template to start with. You can customize and save it as your own form after copying it to the editor.\r\n </p>\r\n </div>\r\n </header>\r\n\r\n <section class=\"dialog-content\">\r\n @if (selectLoadingForms$ | async) {\r\n <div class=\"loading-state\">\r\n <mat-spinner diameter=\"40\" aria-label=\"Loading form templates\"></mat-spinner>\r\n <span class=\"loading-text\">Loading form templates...</span>\r\n </div>\r\n } @else {\r\n <ul class=\"form-template-list\" aria-label=\"Available form templates\">\r\n @for (form of selectForms$ | async; track form._id) {\r\n <li>\r\n <button\r\n type=\"button\"\r\n class=\"form-list-item\"\r\n (click)=\"selectForm(form)\"\r\n [matTooltip]=\"'Click to select this template'\"\r\n [attr.aria-label]=\"'Select template: ' + form.formTitle\">\r\n <img\r\n class=\"form-avatar\"\r\n [class.form-avatar--error]=\"form.errors.length > 0\"\r\n [src]=\"getFormAvatar(form.formTitle)\"\r\n [alt]=\"''\"\r\n aria-hidden=\"true\">\r\n <div class=\"form-item-content\">\r\n <span class=\"form-title\">{{ form.formTitle | titlecase }}</span>\r\n <div class=\"form-metadata\">\r\n @if (form.errors.length > 0) {\r\n <span class=\"metadata-item\">\r\n <mat-icon color=\"warn\" aria-hidden=\"true\">error</mat-icon>\r\n <small>{{ form.errors.length }}</small>\r\n </span>\r\n <span class=\"metadata-divider\" aria-hidden=\"true\">\u2022</span>\r\n }\r\n <span class=\"metadata-item\">\r\n <mat-icon aria-hidden=\"true\">add_circle_outline</mat-icon>\r\n <small>{{ form.createdAt | daysAgo }}</small>\r\n </span>\r\n <span class=\"metadata-divider\" aria-hidden=\"true\">\u2022</span>\r\n <span class=\"metadata-item\">\r\n <mat-icon aria-hidden=\"true\">update</mat-icon>\r\n <small>{{ form.updatedAt | daysAgo }}</small>\r\n </span>\r\n </div>\r\n </div>\r\n </button>\r\n </li>\r\n }\r\n </ul>\r\n\r\n @if ((selectForms$ | async)?.length === 0) {\r\n <div class=\"empty-state\">\r\n <mat-icon class=\"empty-state-icon\" aria-hidden=\"true\">folder_off</mat-icon>\r\n <p>No form templates available.</p>\r\n </div>\r\n }\r\n }\r\n </section>\r\n\r\n <footer class=\"dialog-actions\">\r\n <button mat-button (click)=\"close()\" aria-label=\"Close dialog\">\r\n Close\r\n </button>\r\n </footer>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.template-select-dialog{display:flex;flex-direction:column;min-width:28rem;max-width:36rem;max-height:calc(100vh - 24px);background:var(--mat-sys-surface, var(--mat-app-surface));overflow:hidden}.dialog-header{display:flex;align-items:flex-start;gap:1rem;padding:1.5rem 1.5rem 0;flex-shrink:0}.header-icon{width:2.75rem;height:2.75rem;border-radius:8px;background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0}.header-icon mat-icon{font-size:1.5rem;width:1.5rem;height:1.5rem;color:var(--lib-forms-primary)}.header-text{flex:1;min-width:0}.header-title{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;color:var(--lib-forms-on-surface);margin:0;line-height:1.3}.header-subtitle{font-size:.875rem;color:var(--lib-forms-on-surface-variant);line-height:1.4;margin-top:.25rem;margin-bottom:0}.dialog-content{padding:1rem 1.5rem 1.5rem;overflow-y:auto;max-height:70vh;flex:1;min-height:0}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem;gap:1rem;min-height:12rem}.loading-text{font-size:.875rem;color:var(--lib-forms-on-surface-variant)}.form-template-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.form-list-item{display:flex;align-items:flex-start;gap:1rem;width:100%;padding:.5rem 1.25rem;min-height:2.25rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:8px;background:var(--mat-sys-surface-container, var(--mat-app-surface-container-low));color:var(--lib-forms-on-surface);font-size:.875rem;text-align:left;cursor:pointer;transition:border-color var(--lib-forms-duration-hover) var(--lib-forms-easing),box-shadow var(--lib-forms-duration-hover) var(--lib-forms-easing),background-color var(--lib-forms-duration-hover) var(--lib-forms-easing);box-shadow:0 2px 8px #00000014}.form-list-item:hover{border-color:var(--lib-forms-primary);background:color-mix(in srgb,var(--lib-forms-primary) 6%,transparent)}.form-list-item:focus-visible{outline:none;border-color:var(--lib-forms-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--lib-forms-primary) 25%,transparent)}.form-list-item:active{background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent)}@media(prefers-color-scheme:dark){.form-list-item{box-shadow:0 1px 3px #0000004d}}.form-avatar{width:2.5rem;height:2.5rem;border-radius:6px;object-fit:cover;flex-shrink:0;display:block}.form-avatar.form-avatar--error{outline:2px solid var(--sem-error);outline-offset:2px}.form-item-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:.25rem}.form-title{font-weight:600;font-size:.9375rem}.form-metadata{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem;font-size:.75rem;color:var(--lib-forms-on-surface-variant);line-height:1.35}.form-metadata .metadata-divider{margin:0 .25rem;opacity:.7}.form-metadata .metadata-item{display:inline-flex;align-items:center;gap:.25rem}.form-metadata .metadata-item mat-icon{font-size:.875rem;width:.875rem;height:.875rem}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:1.5rem;background:var(--mat-sys-surface-container, var(--mat-app-surface-container-low));border-radius:8px;text-align:center}.empty-state p{font-size:.875rem;color:var(--lib-forms-on-surface-variant);margin:0}.empty-state-icon{font-size:2rem;width:2rem;height:2rem;color:var(--lib-forms-on-surface-variant);opacity:.7}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;padding:1rem 1.5rem 1.25rem;flex-shrink:0;border-top:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: DaysAgoPipe, name: "daysAgo" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
62
62
  }
63
63
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SelectFormTemplateComponent, decorators: [{
64
64
  type: Component,
@@ -281,7 +281,7 @@ class FormSubmissionsConfigComponent {
281
281
  this.keyInEdit.set(undefined);
282
282
  }
283
283
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormSubmissionsConfigComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
284
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: FormSubmissionsConfigComponent, isStandalone: true, selector: "lib-form-submissions-config", ngImport: i0, template: "<div class=\"submissions-dialog\">\r\n <!-- Header: icon + title + subtitle per design rule \u00A74 -->\r\n <header class=\"dialog-header\">\r\n <div class=\"header-icon\" aria-hidden=\"true\">\r\n <mat-icon>settings</mat-icon>\r\n </div>\r\n <div class=\"header-text\">\r\n <h1 class=\"header-title\">Form Submission Configuration</h1>\r\n <p class=\"header-subtitle\">Configure how your form is submitted and validated before submission.</p>\r\n </div>\r\n <button mat-icon-button mat-dialog-close [attr.aria-label]=\"'Close dialog'\" class=\"header-close\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </header>\r\n\r\n <section class=\"dialog-content\">\r\n <mat-accordion multi>\r\n @for (panel of panels(); track panel.id) {\r\n <mat-expansion-panel [expanded]=\"true\" class=\"config-panel\">\r\n <mat-expansion-panel-header class=\"panel-header\">\r\n <mat-panel-title class=\"panel-title\">\r\n <mat-icon class=\"panel-icon\" [color]=\"'primary'\">{{ panel.titleIcon }}</mat-icon>\r\n {{ panel.title }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <div class=\"panel-content\">\r\n <p class=\"panel-description\" [innerHTML]=\"panel.description\"></p>\r\n\r\n <!-- Dynamic form elements (submission message, toggles, etc.) -->\r\n @if ((panel?.elements || []).length > 0) {\r\n <div class=\"edit-section\">\r\n @for (edit of (panel?.elements || []); track edit.id) {\r\n <div class=\"edit-field\">\r\n <lib-t-dynamic-data-edit\r\n [editorConfig]=\"edit\"\r\n [data]=\"form()\"\r\n [validationErrors]=\"errorsFor(edit)\"\r\n (valueChange)=\"formInputChange($event, edit)\"\r\n [formInputs]=\"(formInputs()) || []\"\r\n (blur)=\"elementBlur($event, edit)\">\r\n </lib-t-dynamic-data-edit>\r\n </div>\r\n }\r\n </div>\r\n }\r\n\r\n <!-- API endpoints list -->\r\n <div class=\"api-section\">\r\n <h3 class=\"api-section-header\" [class.api-section-header--error]=\"panel.error\">\r\n {{ panel.sectionLabel }}\r\n </h3>\r\n\r\n @if (panel.apis.length === 0) {\r\n <div class=\"empty-state\" [class.empty-state--error]=\"panel.error\">\r\n <mat-icon class=\"empty-state-icon\">add_link</mat-icon>\r\n <p>{{ panel.emptyMessage }}</p>\r\n </div>\r\n }\r\n\r\n @for (api of panel.apis; track api._id) {\r\n <div\r\n class=\"api-list-item\"\r\n [class.api-list-item--active]=\"keyInEdit() === panel.primaryKey && dataPlaceholder()?.data?._id === api._id\">\r\n <span class=\"api-method-tag\" [class.api-method-tag--post]=\"api.httpMethod === 'POST'\">\r\n {{ api.httpMethod }}\r\n </span>\r\n <div class=\"api-details\">\r\n <span class=\"api-name\">{{ api.name }}</span>\r\n <span class=\"api-endpoint\" [matTooltip]=\"api.httpEndPoint\" matTooltipPosition=\"above\">\r\n {{ api.httpEndPoint }}\r\n </span>\r\n </div>\r\n <div class=\"api-item-actions\">\r\n <button\r\n (click)=\"editSubmitApi(api, panel.primaryKey)\"\r\n mat-icon-button\r\n matTooltip=\"Edit endpoint\"\r\n [attr.aria-label]=\"'Edit endpoint ' + api.name\"\r\n class=\"api-edit-btn\">\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n [cdkCopyToClipboard]=\"api.httpEndPoint || ''\"\r\n mat-icon-button\r\n matTooltip=\"Copy URL\"\r\n [attr.aria-label]=\"'Copy endpoint URL'\"\r\n class=\"api-copy-btn\"\r\n (click)=\"$event.stopPropagation()\">\r\n <mat-icon>content_copy</mat-icon>\r\n </button>\r\n <button\r\n (click)=\"removeSubmissionApi(api, panel.primaryKey)\"\r\n mat-icon-button\r\n matTooltip=\"Remove endpoint\"\r\n [attr.aria-label]=\"'Remove endpoint ' + api.name\"\r\n class=\"api-remove-btn\">\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n }\r\n\r\n @if (keyInEdit() !== panel.primaryKey) {\r\n <div class=\"api-actions\">\r\n <button\r\n (click)=\"addNewSubmitApi(panel.primaryKey)\"\r\n mat-stroked-button\r\n color=\"primary\"\r\n class=\"add-endpoint-btn\">\r\n <mat-icon>add</mat-icon>\r\n Add new endpoint\r\n </button>\r\n </div>\r\n }\r\n\r\n @if (panel.error) {\r\n <mat-error class=\"panel-error\">{{ panel.error }}</mat-error>\r\n }\r\n </div>\r\n\r\n <!-- Inline edit form for new/editing endpoint -->\r\n @if (keyInEdit() === panel.primaryKey) {\r\n <div class=\"edit-section edit-section--inline\">\r\n <h4 class=\"inline-edit-title\">\r\n {{ isEditingExisting() ? 'Edit endpoint' : 'New endpoint' }}\r\n </h4>\r\n @for (element of submissionApiElements(); track element.id) {\r\n <div class=\"edit-field\">\r\n <lib-t-dynamic-data-edit\r\n [editorConfig]=\"element\"\r\n [data]=\"dataPlaceholder()\"\r\n [validationErrors]=\"validationErrors(element)\"\r\n (valueChange)=\"elementConfigurationChanged($event, element)\"\r\n [formInputs]=\"(formInputs()) || []\"\r\n (blur)=\"elementBlur($event, element)\">\r\n </lib-t-dynamic-data-edit>\r\n </div>\r\n }\r\n <mat-divider></mat-divider>\r\n <div class=\"inline-edit-actions\">\r\n <button mat-flat-button (click)=\"saveSubmitApi()\" color=\"primary\">\r\n {{ isEditingExisting() ? 'Update' : 'Save' }}\r\n </button>\r\n <button mat-button (click)=\"cancelSubmitApi()\" color=\"warn\">Cancel</button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </mat-expansion-panel>\r\n }\r\n </mat-accordion>\r\n </section>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.submissions-dialog{display:flex;flex-direction:column;min-width:28rem;max-width:36rem;max-height:calc(100vh - 24px);background:var(--mat-sys-surface, var(--mat-app-surface));border:1px solid var(--mat-sys-outline-variant, var(--mat-divider-color));overflow:hidden}.dialog-header{display:flex;align-items:flex-start;gap:1rem;padding:1.5rem 1.5rem 0;flex-shrink:0}.header-icon{width:2.75rem;height:2.75rem;border-radius:8px;background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0}.header-icon mat-icon{font-size:1.5rem;width:1.5rem;height:1.5rem;color:var(--lib-forms-primary)}.header-text{flex:1;min-width:0}.header-title{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;color:var(--lib-forms-on-surface);margin:0;line-height:1.3}.header-subtitle{font-size:.875rem;color:var(--lib-forms-on-surface-variant);line-height:1.4;margin-top:.25rem;margin-bottom:0}.header-close{margin-top:-.5rem;margin-right:-.5rem}.dialog-content{padding:1rem 1.5rem 1.5rem;overflow-y:auto;max-height:70vh;flex:1;min-height:0}.config-panel{border-radius:12px;box-shadow:0 2px 8px #00000014;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);overflow:hidden;margin-bottom:1rem}.config-panel:last-child{margin-bottom:0}.panel-header{background:color-mix(in srgb,var(--lib-forms-primary) 4%,transparent);border-bottom:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.panel-title{display:flex;align-items:center;gap:.75rem;font-weight:600}.panel-icon{margin-right:0;font-size:1.25rem;width:1.25rem;height:1.25rem}.panel-content{padding:1.25rem;display:flex;flex-direction:column;gap:1rem;background:var(--mat-sys-surface-container, var(--mat-sys-surface))}.panel-description{font-size:.8125rem;color:var(--lib-forms-on-surface-variant);line-height:1.35;margin:0 0 1rem}.edit-section{background:var(--mat-sys-surface-container-high, var(--mat-sys-surface-container));border-radius:8px;padding:1rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.edit-section--inline{margin-top:.5rem}.inline-edit-title{font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem}.edit-field{margin-bottom:1rem}.edit-field:last-child{margin-bottom:0}.api-section{background:var(--mat-sys-surface-container-high, var(--mat-sys-surface-container));border-radius:8px;padding:1rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.api-section-header{font-size:.75rem;font-weight:500;letter-spacing:.04em;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem;padding-left:.25rem}.api-section-header--error{color:var(--lib-forms-error)}.empty-state{display:flex;align-items:center;gap:.5rem;padding:1rem;background:var(--lib-forms-surface-container-highest);border-radius:8px;font-size:.875rem;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem}.empty-state p{margin:0;flex:1}.empty-state--error{color:var(--lib-forms-error)}.empty-state-icon{font-size:1.25rem;width:1.25rem;height:1.25rem;opacity:.8}.api-list-item{display:flex;align-items:center;gap:1rem;padding:.5rem;min-height:2.75rem;border-radius:8px;transition:background .3s cubic-bezier(.16,1,.3,1)}.api-list-item--active{background:color-mix(in srgb,var(--lib-forms-primary) 8%,transparent)}.api-method-tag{flex-shrink:0;padding:.25rem .5rem;font-size:.75rem;font-weight:600;border-radius:6px;text-align:center;min-width:3rem;background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);color:var(--lib-forms-primary)}.api-method-tag--post{background:color-mix(in srgb,var(--sem-success) 12%,transparent);color:var(--sem-success)}.api-details{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.api-name{font-size:.875rem;font-weight:600;color:var(--lib-forms-on-surface);line-height:1.3}.api-endpoint{font-size:.75rem;color:var(--lib-forms-on-surface-variant);opacity:.85;line-height:1.3;max-width:18rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:help}.api-item-actions{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.api-edit-btn:hover mat-icon,.api-copy-btn:hover mat-icon,.api-remove-btn:hover mat-icon{color:var(--lib-forms-primary)}.api-remove-btn:hover mat-icon{color:var(--lib-forms-error)}.api-actions{margin-top:1rem}.add-endpoint-btn{width:100%;border-style:dashed;padding:.5rem .875rem;font-size:.8125rem}.add-endpoint-btn mat-icon{font-size:1.25rem;width:1.25rem;height:1.25rem;margin-right:.5rem}.panel-error{margin-top:.5rem;font-size:.75rem}.inline-edit-actions{display:flex;justify-content:flex-end;gap:.75rem;padding-top:1rem;margin-top:.5rem}@media(prefers-color-scheme:dark){.config-panel{box-shadow:0 1px 3px #0000004d}}\n"], dependencies: [{ kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i1$1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i4.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i5$1.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i5$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i5$1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i5$1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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: TDynamicDataEditComponent, selector: "lib-t-dynamic-data-edit", inputs: ["editorConfig", "formInputs", "data", "validationErrors", "mscoaSaveCustomInput", "mscoaEditInput", "mscoaDeleteInput"], outputs: ["valueChange", "blur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
284
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: FormSubmissionsConfigComponent, isStandalone: true, selector: "lib-form-submissions-config", ngImport: i0, template: "<div class=\"submissions-dialog\">\r\n <!-- Header: icon + title + subtitle per design rule \u00A74 -->\r\n <header class=\"dialog-header\">\r\n <div class=\"header-icon\" aria-hidden=\"true\">\r\n <mat-icon>settings</mat-icon>\r\n </div>\r\n <div class=\"header-text\">\r\n <h1 class=\"header-title\">Form Submission Configuration</h1>\r\n <p class=\"header-subtitle\">Configure how your form is submitted and validated before submission.</p>\r\n </div>\r\n <button mat-icon-button mat-dialog-close [attr.aria-label]=\"'Close dialog'\" class=\"header-close\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </header>\r\n\r\n <section class=\"dialog-content\">\r\n <mat-accordion multi>\r\n @for (panel of panels(); track panel.id) {\r\n <mat-expansion-panel [expanded]=\"true\" class=\"config-panel\">\r\n <mat-expansion-panel-header class=\"panel-header\">\r\n <mat-panel-title class=\"panel-title\">\r\n <mat-icon class=\"panel-icon\" [color]=\"'primary'\">{{ panel.titleIcon }}</mat-icon>\r\n {{ panel.title }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <div class=\"panel-content\">\r\n <p class=\"panel-description\" [innerHTML]=\"panel.description\"></p>\r\n\r\n <!-- Dynamic form elements (submission message, toggles, etc.) -->\r\n @if ((panel?.elements || []).length > 0) {\r\n <div class=\"edit-section\">\r\n @for (edit of (panel?.elements || []); track edit.id) {\r\n <div class=\"edit-field\">\r\n <lib-t-dynamic-data-edit\r\n [editorConfig]=\"edit\"\r\n [data]=\"form()\"\r\n [validationErrors]=\"errorsFor(edit)\"\r\n (valueChange)=\"formInputChange($event, edit)\"\r\n [formInputs]=\"(formInputs()) || []\"\r\n (blur)=\"elementBlur($event, edit)\">\r\n </lib-t-dynamic-data-edit>\r\n </div>\r\n }\r\n </div>\r\n }\r\n\r\n <!-- API endpoints list -->\r\n <div class=\"api-section\">\r\n <h3 class=\"api-section-header\" [class.api-section-header--error]=\"panel.error\">\r\n {{ panel.sectionLabel }}\r\n </h3>\r\n\r\n @if (panel.apis.length === 0) {\r\n <div class=\"empty-state\" [class.empty-state--error]=\"panel.error\">\r\n <mat-icon class=\"empty-state-icon\">add_link</mat-icon>\r\n <p>{{ panel.emptyMessage }}</p>\r\n </div>\r\n }\r\n\r\n @for (api of panel.apis; track api._id) {\r\n <div\r\n class=\"api-list-item\"\r\n [class.api-list-item--active]=\"keyInEdit() === panel.primaryKey && dataPlaceholder()?.data?._id === api._id\">\r\n <span class=\"api-method-tag\" [class.api-method-tag--post]=\"api.httpMethod === 'POST'\">\r\n {{ api.httpMethod }}\r\n </span>\r\n <div class=\"api-details\">\r\n <span class=\"api-name\">{{ api.name }}</span>\r\n <span class=\"api-endpoint\" [matTooltip]=\"api.httpEndPoint\" matTooltipPosition=\"above\">\r\n {{ api.httpEndPoint }}\r\n </span>\r\n </div>\r\n <div class=\"api-item-actions\">\r\n <button\r\n (click)=\"editSubmitApi(api, panel.primaryKey)\"\r\n mat-icon-button\r\n matTooltip=\"Edit endpoint\"\r\n [attr.aria-label]=\"'Edit endpoint ' + api.name\"\r\n class=\"api-edit-btn\">\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n [cdkCopyToClipboard]=\"api.httpEndPoint || ''\"\r\n mat-icon-button\r\n matTooltip=\"Copy URL\"\r\n [attr.aria-label]=\"'Copy endpoint URL'\"\r\n class=\"api-copy-btn\"\r\n (click)=\"$event.stopPropagation()\">\r\n <mat-icon>content_copy</mat-icon>\r\n </button>\r\n <button\r\n (click)=\"removeSubmissionApi(api, panel.primaryKey)\"\r\n mat-icon-button\r\n matTooltip=\"Remove endpoint\"\r\n [attr.aria-label]=\"'Remove endpoint ' + api.name\"\r\n class=\"api-remove-btn\">\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <mat-divider></mat-divider>\r\n }\r\n\r\n @if (keyInEdit() !== panel.primaryKey) {\r\n <div class=\"api-actions\">\r\n <button\r\n (click)=\"addNewSubmitApi(panel.primaryKey)\"\r\n mat-stroked-button\r\n color=\"primary\"\r\n class=\"add-endpoint-btn\">\r\n <mat-icon>add</mat-icon>\r\n Add new endpoint\r\n </button>\r\n </div>\r\n }\r\n\r\n @if (panel.error) {\r\n <mat-error class=\"panel-error\">{{ panel.error }}</mat-error>\r\n }\r\n </div>\r\n\r\n <!-- Inline edit form for new/editing endpoint -->\r\n @if (keyInEdit() === panel.primaryKey) {\r\n <div class=\"edit-section edit-section--inline\">\r\n <h4 class=\"inline-edit-title\">\r\n {{ isEditingExisting() ? 'Edit endpoint' : 'New endpoint' }}\r\n </h4>\r\n @for (element of submissionApiElements(); track element.id) {\r\n <div class=\"edit-field\">\r\n <lib-t-dynamic-data-edit\r\n [editorConfig]=\"element\"\r\n [data]=\"dataPlaceholder()\"\r\n [validationErrors]=\"validationErrors(element)\"\r\n (valueChange)=\"elementConfigurationChanged($event, element)\"\r\n [formInputs]=\"(formInputs()) || []\"\r\n (blur)=\"elementBlur($event, element)\">\r\n </lib-t-dynamic-data-edit>\r\n </div>\r\n }\r\n <mat-divider></mat-divider>\r\n <div class=\"inline-edit-actions\">\r\n <button mat-flat-button (click)=\"saveSubmitApi()\" color=\"primary\">\r\n {{ isEditingExisting() ? 'Update' : 'Save' }}\r\n </button>\r\n <button mat-button (click)=\"cancelSubmitApi()\" color=\"warn\">Cancel</button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </mat-expansion-panel>\r\n }\r\n </mat-accordion>\r\n </section>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.submissions-dialog{display:flex;flex-direction:column;min-width:28rem;max-width:36rem;max-height:calc(100vh - 24px);background:var(--mat-sys-surface, var(--mat-app-surface));border:1px solid var(--mat-sys-outline-variant, var(--mat-divider-color));overflow:hidden}.dialog-header{display:flex;align-items:flex-start;gap:1rem;padding:1.5rem 1.5rem 0;flex-shrink:0}.header-icon{width:2.75rem;height:2.75rem;border-radius:8px;background:color-mix(in srgb,var(--lib-forms-primary) 12%,transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0}.header-icon mat-icon{font-size:1.5rem;width:1.5rem;height:1.5rem;color:var(--lib-forms-primary)}.header-text{flex:1;min-width:0}.header-title{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;color:var(--lib-forms-on-surface);margin:0;line-height:1.3}.header-subtitle{font-size:.875rem;color:var(--lib-forms-on-surface-variant);line-height:1.4;margin-top:.25rem;margin-bottom:0}.header-close{margin-top:-.5rem;margin-right:-.5rem}.dialog-content{padding:1rem 1.5rem 1.5rem;overflow-y:auto;max-height:70vh;flex:1;min-height:0}.config-panel{border-radius:12px;box-shadow:0 2px 8px #00000014;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);overflow:hidden;margin-bottom:1rem}.config-panel:last-child{margin-bottom:0}.panel-header{background:color-mix(in srgb,var(--lib-forms-primary) 4%,transparent);border-bottom:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.panel-title{display:flex;align-items:center;gap:.75rem;font-weight:600}.panel-icon{margin-right:0;font-size:1.25rem;width:1.25rem;height:1.25rem}.panel-content{padding:1.25rem;display:flex;flex-direction:column;gap:1rem;background:var(--mat-sys-surface-container, var(--mat-sys-surface))}.panel-description{font-size:.8125rem;color:var(--lib-forms-on-surface-variant);line-height:1.35;margin:0 0 1rem}.edit-section{background:var(--mat-sys-surface-container-high, var(--mat-sys-surface-container));border-radius:8px;padding:1rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.edit-section--inline{margin-top:.5rem}.inline-edit-title{font-size:.625rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem}.edit-field{margin-bottom:1rem}.edit-field:last-child{margin-bottom:0}.api-section{background:var(--mat-sys-surface-container-high, var(--mat-sys-surface-container));border-radius:8px;padding:1rem;border:1px solid color-mix(in srgb,var(--lib-forms-outline) 10%,transparent)}.api-section-header{font-size:.75rem;font-weight:500;letter-spacing:.04em;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem;padding-left:.25rem}.api-section-header--error{color:var(--lib-forms-error)}.empty-state{display:flex;align-items:center;gap:.5rem;padding:1rem;background:var(--lib-forms-surface-container-highest);border-radius:8px;font-size:.875rem;color:var(--lib-forms-on-surface-variant);margin:0 0 1rem}.empty-state p{margin:0;flex:1}.empty-state--error{color:var(--lib-forms-error)}.empty-state-icon{font-size:1.25rem;width:1.25rem;height:1.25rem;opacity:.8}.api-list-item{display:flex;align-items:center;gap:1rem;padding:.5rem;min-height:2.75rem;border-radius:8px;transition:background .3s cubic-bezier(.16,1,.3,1)}.api-list-item--active{background:color-mix(in srgb,var(--lib-forms-primary) 8%,transparent)}.api-method-tag{flex-shrink:0;padding:.25rem .5rem;font-size:.75rem;font-weight:600;border-radius:6px;text-align:center;min-width:3rem;background:color-mix(in srgb,var(--lib-forms-primary) 10%,transparent);color:var(--lib-forms-primary)}.api-method-tag--post{background:color-mix(in srgb,var(--sem-success) 12%,transparent);color:var(--sem-success)}.api-details{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.api-name{font-size:.875rem;font-weight:600;color:var(--lib-forms-on-surface);line-height:1.3}.api-endpoint{font-size:.75rem;color:var(--lib-forms-on-surface-variant);opacity:.85;line-height:1.3;max-width:18rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:help}.api-item-actions{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.api-edit-btn:hover mat-icon,.api-copy-btn:hover mat-icon,.api-remove-btn:hover mat-icon{color:var(--lib-forms-primary)}.api-remove-btn:hover mat-icon{color:var(--lib-forms-error)}.api-actions{margin-top:1rem}.add-endpoint-btn{width:100%;border-style:dashed;padding:.5rem .875rem;font-size:.8125rem}.add-endpoint-btn mat-icon{font-size:1.25rem;width:1.25rem;height:1.25rem;margin-right:.5rem}.panel-error{margin-top:.5rem;font-size:.75rem}.inline-edit-actions{display:flex;justify-content:flex-end;gap:.75rem;padding-top:1rem;margin-top:.5rem}@media(prefers-color-scheme:dark){.config-panel{box-shadow:0 1px 3px #0000004d}}\n"], dependencies: [{ kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i1$1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i6.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i5$1.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i5$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i5$1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i5$1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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: TDynamicDataEditComponent, selector: "lib-t-dynamic-data-edit", inputs: ["editorConfig", "formInputs", "data", "validationErrors", "mscoaSaveCustomInput", "mscoaEditInput", "mscoaDeleteInput"], outputs: ["valueChange", "blur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
285
285
  }
286
286
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormSubmissionsConfigComponent, decorators: [{
287
287
  type: Component,
@@ -354,9 +354,9 @@ class FormsBuilderMenuComponent {
354
354
  this.showJson = !this.showJson;
355
355
  }
356
356
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormsBuilderMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
357
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: FormsBuilderMenuComponent, isStandalone: true, selector: "lib-forms-builder-menu", ngImport: i0, template: "<button [matBadge]=\"'!'\" matBadgeColor=\"warn\" [matTooltip]=\"configHasErrors() === false?'\nClick to view form configuration\n':'Click to fix or add missing form configurations'\" [matBadgeHidden]=\"!!(configHasErrors()) === false\"\n [matMenuTriggerFor]=\"configMenu\" mat-flat-button>\n Config\n <mat-icon>\n settings_suggest\n </mat-icon>\n</button>\n\n<mat-menu #configMenu=\"matMenu\">\n\n\n <div mat-subheader style=\"padding-left: 16px;\">Form edit options</div>\n @for (item of items(); track item.label) {\n <button [matTooltip]=\"item.hint\" matTooltipPosition=\"right\" style=\"padding-top:4px;padding-bottom:4px\"\n (click)=\"item?.action()\" mat-menu-item>\n <mat-icon>{{item.icon}}</mat-icon>\n\n <span>\n @if (item.errors) {\n <div style=\"line-height: normal;\">\n {{item.label}}\n </div>\n <div style=\"line-height: normal;\">\n\n <mat-error>\n <small>\n Invalid configurations\n </small>\n\n </mat-error>\n </div>\n }@else {\n\n {{item.label}}\n\n }\n\n\n </span>\n\n </button>\n <mat-divider></mat-divider>\n }\n <button [matTooltip]=\"showJson?'Hide json':'Show json'\" (click)=\"toggleJson()\" mat-menu-item>\n <mat-icon>data_object</mat-icon>\n\n <span>\n <div>\n Show json\n </div>\n\n\n\n </span>\n </button>\n\n</mat-menu>\n\n@if (showJson) {\n<div class=\"DragBoundary\">\n @defer (on viewport) {\n <mat-card cdkDragBoundary=\"DragBoundary\" cdkDrag class=\"menuCard\">\n <mat-toolbar\n style=\"background: var(--mat-sidenav-content-background-color);color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary))\">\n <span>\n Json Form Value\n </span>\n <span class=\"spacer\"></span>\n\n <mat-icon cdkDragHandle style=\"\n margin:8px;\n color:var(--mat-divider-color, var(--mat-app-outline))\">\n drag_indicator\n </mat-icon>\n </mat-toolbar>\n <mat-divider style=\"margin-bottom: 12px;\"></mat-divider>\n\n\n <mat-card-content style=\" overflow-y: auto;\n max-height: calc(100vh - 150px);\">\n <lib-form-json-view></lib-form-json-view>\n </mat-card-content>\n <mat-card-actions>\n <span class=\"spacer\"></span>\n <button (click)=\"toggleJson()\" mat-flat-button>\n Close\n </button>\n <button color=\"primary\" [cdkCopyToClipboard]=\"(formCopy())||''\" matTooltip=\"Copy json to clipboard\"\n mat-flat-button>\n Copy\n </button>\n\n </mat-card-actions>\n\n\n </mat-card>\n }@placeholder {\n <div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\n <mat-spinner diameter=\"20\" />\n </div>\n\n }\n</div>\n}\n", styles: [".menuCard{width:fit-content;margin:0;resize:horizontal;z-index:2}.DragBoundary{position:absolute;left:0;top:74px;width:100%;height:calc(100% - 74px)}\n"], dependencies: [{ kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i1$3.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i6.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i4.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i3$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: ClipboardModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i1.MatButton, i3.MatIcon, i5.MatTooltip, i3$2.MatCard, i3$2.MatCardActions, i3$2.MatCardContent, i5$2.MatToolbar, i4.MatDivider, import('@angular/cdk/drag-drop').then(m => m.CdkDrag), i1$1.CdkCopyToClipboard, import('./ngx-t-forms-form-json-view.component-D5YJ5pFm.mjs').then(m => m.FormJsonViewComponent)]] }); }
357
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: FormsBuilderMenuComponent, isStandalone: true, selector: "lib-forms-builder-menu", ngImport: i0, template: "<button [matBadge]=\"'!'\" matBadgeColor=\"warn\" [matTooltip]=\"configHasErrors() === false?'\nClick to view form configuration\n':'Click to fix or add missing form configurations'\" [matBadgeHidden]=\"!!(configHasErrors()) === false\"\n [matMenuTriggerFor]=\"configMenu\" mat-flat-button>\n Config\n <mat-icon>\n settings_suggest\n </mat-icon>\n</button>\n\n<mat-menu #configMenu=\"matMenu\">\n\n\n <div mat-subheader style=\"padding-left: 16px;\">Form edit options</div>\n @for (item of items(); track item.label) {\n <button [matTooltip]=\"item.hint\" matTooltipPosition=\"right\" style=\"padding-top:4px;padding-bottom:4px\"\n (click)=\"item?.action()\" mat-menu-item>\n <mat-icon>{{item.icon}}</mat-icon>\n\n <span>\n @if (item.errors) {\n <div style=\"line-height: normal;\">\n {{item.label}}\n </div>\n <div style=\"line-height: normal;\">\n\n <mat-error>\n <small>\n Invalid configurations\n </small>\n\n </mat-error>\n </div>\n }@else {\n\n {{item.label}}\n\n }\n\n\n </span>\n\n </button>\n <mat-divider></mat-divider>\n }\n <button [matTooltip]=\"showJson?'Hide json':'Show json'\" (click)=\"toggleJson()\" mat-menu-item>\n <mat-icon>data_object</mat-icon>\n\n <span>\n <div>\n Show json\n </div>\n\n\n\n </span>\n </button>\n\n</mat-menu>\n\n@if (showJson) {\n<div class=\"DragBoundary\">\n @defer (on viewport) {\n <mat-card cdkDragBoundary=\"DragBoundary\" cdkDrag class=\"menuCard\">\n <mat-toolbar\n style=\"background: var(--mat-sidenav-content-background-color);color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary))\">\n <span>\n Json Form Value\n </span>\n <span class=\"spacer\"></span>\n\n <mat-icon cdkDragHandle style=\"\n margin:8px;\n color:var(--mat-divider-color, var(--mat-app-outline))\">\n drag_indicator\n </mat-icon>\n </mat-toolbar>\n <mat-divider style=\"margin-bottom: 12px;\"></mat-divider>\n\n\n <mat-card-content style=\" overflow-y: auto;\n max-height: calc(100vh - 150px);\">\n <lib-form-json-view></lib-form-json-view>\n </mat-card-content>\n <mat-card-actions>\n <span class=\"spacer\"></span>\n <button (click)=\"toggleJson()\" mat-flat-button>\n Close\n </button>\n <button color=\"primary\" [cdkCopyToClipboard]=\"(formCopy())||''\" matTooltip=\"Copy json to clipboard\"\n mat-flat-button>\n Copy\n </button>\n\n </mat-card-actions>\n\n\n </mat-card>\n }@placeholder {\n <div style=\"padding: 50px;display:flex;justify-content:center;align-items:center; text-align: center;\">\n <mat-spinner diameter=\"20\" />\n </div>\n\n }\n</div>\n}\n", styles: [".menuCard{width:fit-content;margin:0;resize:horizontal;z-index:2}.DragBoundary{position:absolute;left:0;top:74px;width:100%;height:calc(100% - 74px)}\n"], dependencies: [{ kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i1$3.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i6$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i6.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: ClipboardModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [i1.MatButton, i3.MatIcon, i5.MatTooltip, i3$1.MatCard, i3$1.MatCardActions, i3$1.MatCardContent, i8.MatToolbar, i6.MatDivider, import('@angular/cdk/drag-drop').then(m => m.CdkDrag), i1$1.CdkCopyToClipboard, import('./ngx-t-forms-form-json-view.component-DxvnpZdR.mjs').then(m => m.FormJsonViewComponent)]] }); }
358
358
  }
359
- i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: FormsBuilderMenuComponent, resolveDeferredDeps: () => [import('@angular/cdk/drag-drop').then(m => m.CdkDrag), import('./ngx-t-forms-form-json-view.component-D5YJ5pFm.mjs').then(m => m.FormJsonViewComponent)], resolveMetadata: (CdkDrag, FormJsonViewComponent) => ({ decorators: [{
359
+ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", ngImport: i0, type: FormsBuilderMenuComponent, resolveDeferredDeps: () => [import('@angular/cdk/drag-drop').then(m => m.CdkDrag), import('./ngx-t-forms-form-json-view.component-DxvnpZdR.mjs').then(m => m.FormJsonViewComponent)], resolveMetadata: (CdkDrag, FormJsonViewComponent) => ({ decorators: [{
360
360
  type: Component,
361
361
  args: [{ selector: 'lib-forms-builder-menu', imports: [
362
362
  MatBadgeModule,
@@ -376,4 +376,4 @@ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.12", n
376
376
  }], ctorParameters: null, propDecorators: null }) });
377
377
 
378
378
  export { FormsBuilderMenuComponent };
379
- //# sourceMappingURL=ngx-t-forms-forms-builder-menu.component-DTEx6mIl.mjs.map
379
+ //# sourceMappingURL=ngx-t-forms-forms-builder-menu.component-BaBBPuXH.mjs.map