ngx-t-forms 2.0.7 → 2.0.9

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 (125) hide show
  1. package/fesm2022/{ngx-t-forms-api-value-access-rules.component-Cp0BeYD7.mjs → ngx-t-forms-api-value-access-rules.component-DjZDnTHz.mjs} +11 -11
  2. package/fesm2022/{ngx-t-forms-api-value-access-rules.component-Cp0BeYD7.mjs.map → ngx-t-forms-api-value-access-rules.component-DjZDnTHz.mjs.map} +1 -1
  3. package/fesm2022/ngx-t-forms-api-value-access-rules.component-Zg1ddSDb.mjs +813 -0
  4. package/fesm2022/ngx-t-forms-api-value-access-rules.component-Zg1ddSDb.mjs.map +1 -0
  5. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-C1v-xiGd.mjs → ngx-t-forms-calculated-field-rules.component-E3l7DQo7.mjs} +11 -11
  6. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-C1v-xiGd.mjs.map → ngx-t-forms-calculated-field-rules.component-E3l7DQo7.mjs.map} +1 -1
  7. package/fesm2022/ngx-t-forms-calculated-field-rules.component-ZepKycLR.mjs +532 -0
  8. package/fesm2022/ngx-t-forms-calculated-field-rules.component-ZepKycLR.mjs.map +1 -0
  9. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-DLnB3R7t.mjs +297 -0
  10. package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-DLnB3R7t.mjs.map +1 -0
  11. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-jgXTh0do.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-sOC54w4T.mjs} +9 -9
  12. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-jgXTh0do.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-sOC54w4T.mjs.map} +1 -1
  13. package/fesm2022/ngx-t-forms-form-input-selector.component-BjwzDiCY.mjs +187 -0
  14. package/fesm2022/ngx-t-forms-form-input-selector.component-BjwzDiCY.mjs.map +1 -0
  15. package/fesm2022/{ngx-t-forms-form-input-selector.component-DbKhNmVM.mjs → ngx-t-forms-form-input-selector.component-CB03sPjA.mjs} +6 -6
  16. package/fesm2022/{ngx-t-forms-form-input-selector.component-DbKhNmVM.mjs.map → ngx-t-forms-form-input-selector.component-CB03sPjA.mjs.map} +1 -1
  17. package/fesm2022/{ngx-t-forms-form-json-view.component-DSnLKnfH.mjs → ngx-t-forms-form-json-view.component-C1AZujJH.mjs} +2 -2
  18. package/fesm2022/{ngx-t-forms-form-json-view.component-DSnLKnfH.mjs.map → ngx-t-forms-form-json-view.component-C1AZujJH.mjs.map} +1 -1
  19. package/fesm2022/ngx-t-forms-form-json-view.component-CqtTYCRH.mjs +28 -0
  20. package/fesm2022/ngx-t-forms-form-json-view.component-CqtTYCRH.mjs.map +1 -0
  21. package/fesm2022/ngx-t-forms-form-section-stepper.component-Ba5WCLzp.mjs +673 -0
  22. package/fesm2022/ngx-t-forms-form-section-stepper.component-Ba5WCLzp.mjs.map +1 -0
  23. package/fesm2022/ngx-t-forms-form-section-stepper.component-C_dciQhe.mjs +225 -0
  24. package/fesm2022/ngx-t-forms-form-section-stepper.component-C_dciQhe.mjs.map +1 -0
  25. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DQ8JYw6g.mjs → ngx-t-forms-forms-builder-menu.component-CPIcPREp.mjs} +13 -13
  26. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DQ8JYw6g.mjs.map → ngx-t-forms-forms-builder-menu.component-CPIcPREp.mjs.map} +1 -1
  27. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DbxEBvpt.mjs +735 -0
  28. package/fesm2022/ngx-t-forms-forms-builder-menu.component-DbxEBvpt.mjs.map +1 -0
  29. package/fesm2022/ngx-t-forms-input-editor.component-BnsC-jsN.mjs +445 -0
  30. package/fesm2022/ngx-t-forms-input-editor.component-BnsC-jsN.mjs.map +1 -0
  31. package/fesm2022/{ngx-t-forms-input-editor.component-Gi9MgyHB.mjs → ngx-t-forms-input-editor.component-__grERM8.mjs} +7 -10
  32. package/fesm2022/ngx-t-forms-input-editor.component-__grERM8.mjs.map +1 -0
  33. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-DS6s98ZX.mjs +111 -0
  34. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-DS6s98ZX.mjs.map +1 -0
  35. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-C2jw_2gf.mjs → ngx-t-forms-mat-chip-list-editor.component-DcdHYqhN.mjs} +2 -3
  36. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-DcdHYqhN.mjs.map +1 -0
  37. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-D_IMC63r.mjs → ngx-t-forms-mat-slider-editor.component-C9rintm4.mjs} +2 -2
  38. package/fesm2022/{ngx-t-forms-mat-slider-editor.component-D_IMC63r.mjs.map → ngx-t-forms-mat-slider-editor.component-C9rintm4.mjs.map} +1 -1
  39. package/fesm2022/ngx-t-forms-mat-slider-editor.component-ChiiJYK2.mjs +130 -0
  40. package/fesm2022/ngx-t-forms-mat-slider-editor.component-ChiiJYK2.mjs.map +1 -0
  41. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-DeKGDDuU.mjs → ngx-t-forms-mat-slider-toggle-editor.component-CItK6kXf.mjs} +2 -2
  42. package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-DeKGDDuU.mjs.map → ngx-t-forms-mat-slider-toggle-editor.component-CItK6kXf.mjs.map} +1 -1
  43. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DFcLzkSF.mjs +171 -0
  44. package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DFcLzkSF.mjs.map +1 -0
  45. package/fesm2022/ngx-t-forms-missing-form-configs.component-DNkGCH0e.mjs +104 -0
  46. package/fesm2022/ngx-t-forms-missing-form-configs.component-DNkGCH0e.mjs.map +1 -0
  47. package/fesm2022/{ngx-t-forms-missing-form-configs.component-BvsopeCg.mjs → ngx-t-forms-missing-form-configs.component-Da3SdUn6.mjs} +4 -4
  48. package/fesm2022/{ngx-t-forms-missing-form-configs.component-BvsopeCg.mjs.map → ngx-t-forms-missing-form-configs.component-Da3SdUn6.mjs.map} +1 -1
  49. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-4hrEpLk3.mjs +258 -0
  50. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-4hrEpLk3.mjs.map +1 -0
  51. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CrHAIRAw.mjs +455 -0
  52. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-CrHAIRAw.mjs.map +1 -0
  53. package/fesm2022/{ngx-t-forms-ngx-t-forms-DtoFU6uQ.mjs → ngx-t-forms-ngx-t-forms-1Roar4qK.mjs} +710 -1294
  54. package/fesm2022/ngx-t-forms-ngx-t-forms-1Roar4qK.mjs.map +1 -0
  55. package/fesm2022/ngx-t-forms-ngx-t-forms-DaAFB-HX.mjs +14694 -0
  56. package/fesm2022/ngx-t-forms-ngx-t-forms-DaAFB-HX.mjs.map +1 -0
  57. package/fesm2022/{ngx-t-forms-pipeline-generator.component-IwmDgCk9.mjs → ngx-t-forms-pipeline-generator.component-BQDykLNH.mjs} +14 -14
  58. package/fesm2022/{ngx-t-forms-pipeline-generator.component-IwmDgCk9.mjs.map → ngx-t-forms-pipeline-generator.component-BQDykLNH.mjs.map} +1 -1
  59. package/fesm2022/ngx-t-forms-pipeline-generator.component-U0d8jQKW.mjs +1362 -0
  60. package/fesm2022/ngx-t-forms-pipeline-generator.component-U0d8jQKW.mjs.map +1 -0
  61. package/fesm2022/{ngx-t-forms-required-inputs.component-DdNLYKY6.mjs → ngx-t-forms-required-inputs.component-BGK3DNu0.mjs} +10 -10
  62. package/fesm2022/{ngx-t-forms-required-inputs.component-DdNLYKY6.mjs.map → ngx-t-forms-required-inputs.component-BGK3DNu0.mjs.map} +1 -1
  63. package/fesm2022/ngx-t-forms-required-inputs.component-S3cbA-zG.mjs +383 -0
  64. package/fesm2022/ngx-t-forms-required-inputs.component-S3cbA-zG.mjs.map +1 -0
  65. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-DH5GpWKn.mjs → ngx-t-forms-rest-api-call-setup.component-CCaRUSVQ.mjs} +4 -4
  66. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-DH5GpWKn.mjs.map → ngx-t-forms-rest-api-call-setup.component-CCaRUSVQ.mjs.map} +1 -1
  67. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-DDg4fCFx.mjs +457 -0
  68. package/fesm2022/ngx-t-forms-rest-api-call-setup.component-DDg4fCFx.mjs.map +1 -0
  69. package/fesm2022/{ngx-t-forms-section-report.component-BAddUET-.mjs → ngx-t-forms-section-report.component-C8Ja_G_3.mjs} +5 -5
  70. package/fesm2022/{ngx-t-forms-section-report.component-BAddUET-.mjs.map → ngx-t-forms-section-report.component-C8Ja_G_3.mjs.map} +1 -1
  71. package/fesm2022/ngx-t-forms-section-report.component-C_h0KIR4.mjs +314 -0
  72. package/fesm2022/ngx-t-forms-section-report.component-C_h0KIR4.mjs.map +1 -0
  73. package/fesm2022/ngx-t-forms-selection-options-editor.component-CllhwZ5Y.mjs +231 -0
  74. package/fesm2022/ngx-t-forms-selection-options-editor.component-CllhwZ5Y.mjs.map +1 -0
  75. package/fesm2022/{ngx-t-forms-selection-options-editor.component-CQh-InJ6.mjs → ngx-t-forms-selection-options-editor.component-cYkn1O48.mjs} +6 -6
  76. package/fesm2022/{ngx-t-forms-selection-options-editor.component-CQh-InJ6.mjs.map → ngx-t-forms-selection-options-editor.component-cYkn1O48.mjs.map} +1 -1
  77. package/fesm2022/ngx-t-forms-validators-config.component-BPJZRtjT.mjs +434 -0
  78. package/fesm2022/ngx-t-forms-validators-config.component-BPJZRtjT.mjs.map +1 -0
  79. package/fesm2022/{ngx-t-forms-validators-config.component-SyL_Vln8.mjs → ngx-t-forms-validators-config.component-CGXCCl45.mjs} +8 -8
  80. package/fesm2022/{ngx-t-forms-validators-config.component-SyL_Vln8.mjs.map → ngx-t-forms-validators-config.component-CGXCCl45.mjs.map} +1 -1
  81. package/fesm2022/ngx-t-forms.mjs +1 -1
  82. package/lib/components/form-builder/elements/form-section-stepper/form-section-stepper.component.d.ts +2 -0
  83. package/lib/components/form-builder/elements/form-submissions-config/form-submissions-config.component.d.ts +1 -1
  84. package/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.d.ts +2 -2
  85. package/lib/components/forms/forms.component.d.ts +1 -1
  86. package/lib/components/forms/store/Form-actions-formBuilder.d.ts +1 -0
  87. package/lib/components/forms/store/Form-selectors-FormBuilder.d.ts +1 -1
  88. package/lib/components/forms/store/forms-store.service.d.ts +2 -1
  89. package/lib/components/index.d.ts +2 -1
  90. package/lib/components/t-dynamic-data-edit/elements/mscoa-segment-config/mscoa-segment-config.component.d.ts +5 -9
  91. package/lib/components/t-form-input/elements/mscoa-form-input/elements/account-value/account-value.component.d.ts +3 -3
  92. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/mscoa-chart.component.d.ts +67 -52
  93. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-computation/mscoa-computation.component.d.ts +10 -10
  94. package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-reactive-form-field/mscoa-reactive-form-field.component.d.ts +8 -6
  95. package/lib/components/t-form-input/elements/mscoa-form-input/elements/scoa-account-table/scoa-account-table.component.d.ts +8 -8
  96. package/lib/components/t-form-input/elements/mscoa-form-input/elements/scoa-input/scoa-input.component.d.ts +1 -1
  97. package/lib/components/t-form-input/elements/mscoa-form-input/mscoa-form-input.component.d.ts +4 -3
  98. package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-actions.d.ts +5 -5
  99. package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-component-store.service.d.ts +27 -31
  100. package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-effects.d.ts +2 -2
  101. package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-selectors.d.ts +20 -24
  102. package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table-edit/multiple-input-table-edit.component.d.ts +1 -1
  103. package/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.d.ts +20 -0
  104. package/lib/components/t-form-input/elements/select-input-element/select-input-element.component.d.ts +0 -3
  105. package/lib/components/t-form-input/t-form-input.component.d.ts +3 -2
  106. package/lib/components/user-form-stepper/user-form-stepper.component.d.ts +5 -0
  107. package/lib/components/workflow-builder/store/workflow-builder-store.service.d.ts +18 -0
  108. package/lib/components/workflow-builder/store/workflowEditorActions.d.ts +4 -0
  109. package/lib/components/workflow-builder/store/workflowEditorEffects.d.ts +2 -0
  110. package/lib/components/workflow-builder/store/workflowEditorSelectors.d.ts +2 -0
  111. package/lib/components/workflow-builder/workflow-builder.component.d.ts +12 -0
  112. package/lib/services/core/t-form-builder/functions/addScoaExtensionInput.d.ts +2 -0
  113. package/lib/services/core/t-form-tower-controller/form-tower-controller.service.d.ts +2 -0
  114. package/lib/services/core/t-form-tower-controller/functions/allFormInputs.d.ts +2 -3
  115. package/lib/services/core/t-form-tower-controller/functions/getAllFunctionTypes.d.ts +2 -0
  116. package/lib/shared/functions/textIconsForUserHints.d.ts +2 -1
  117. package/package.json +3 -2
  118. package/fesm2022/ngx-t-forms-form-section-stepper.component-hnOcnZGc.mjs +0 -220
  119. package/fesm2022/ngx-t-forms-form-section-stepper.component-hnOcnZGc.mjs.map +0 -1
  120. package/fesm2022/ngx-t-forms-input-editor.component-Gi9MgyHB.mjs.map +0 -1
  121. package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-C2jw_2gf.mjs.map +0 -1
  122. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D_IIYPud.mjs +0 -230
  123. package/fesm2022/ngx-t-forms-mscoa-segment-config.component-D_IIYPud.mjs.map +0 -1
  124. package/fesm2022/ngx-t-forms-ngx-t-forms-DtoFU6uQ.mjs.map +0 -1
  125. package/testForm.d.ts +0 -797
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-t-forms-validators-config.component-SyL_Vln8.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/validators-config/validators-config.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/validators-config/validators-config.component.html"],"sourcesContent":["import { Component, ElementRef, EventEmitter, HostBinding, Input, OnInit, Optional, Output, Self } from '@angular/core';\r\nimport { MenuCloseReason } from '@angular/material/menu';\r\n\r\nimport { v4 as uuidv4 } from 'uuid';\r\n\r\nimport { ElementTypes, FormControlCustomValidatorsInterface, IMultiple } from 'ngx-t-forms-types';\r\nimport { FormColumnInputs } from 'ngx-t-forms-types';\r\nimport { getInputIllustration } from '../../../../shared/functions/getInputIllustration';\r\n\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormInputSelectorComponent } from '../form-input-selector/form-input-selector.component';\r\n\r\nimport { FormsModule, NgControl } from '@angular/forms';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\n\r\n@Component({\r\n selector: 'app-validators-config',\r\n templateUrl: './validators-config.component.html',\r\n styleUrls: ['./validators-config.component.scss'],\r\n standalone: true,\r\n imports:[\r\n MatModulesModule,\r\n CommonModule,\r\n FormInputSelectorComponent,\r\n FormsModule\r\n ],\r\n providers: [{ provide: MatFormFieldControl, useExisting: ValidatorsConfigComponent}],\r\n})\r\nexport class ValidatorsConfigComponent implements OnInit,MatFormFieldControl<FormControlCustomValidatorsInterface []> {\r\n \r\n\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n \r\n @HostBinding() id = `app-validators-config-${ValidatorsConfigComponent.nextId++}`;\r\n \r\n placeholder: string = ''\r\n constructor(@Optional() @Self() public ngControl: NgControl, private _elementRef: ElementRef<HTMLElement>,) { }\r\n focused: boolean = false;\r\n get empty() {\r\n return !this.value\r\n }\r\n get shouldLabelFloat() {\r\n return this.focused || !this.empty;\r\n }\r\n required: boolean = false;\r\n disabled: boolean = false;\r\nget errorState(): boolean {\r\n const hasError = !!this.ngControl?.control?.errors || (this.errors||[]).length > 0 && this.touched\r\n return !this.value && !!this.required || hasError\r\n }\r\n \r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n setDescribedByIds(ids: string[]) {\r\n // Ensure the component view is initialized\r\n if (this._elementRef && this._elementRef.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector('.app-validators-config');\r\n // Check if the controlElement exists before attempting to set its attribute\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n }\r\n onContainerClick(event: MouseEvent): void {\r\n this.markAsTouched();\r\n this.stateChanges.next();\r\n }\r\n @Input() errors:IConfigElementError[] |undefined = [];\r\n touched: boolean = false;\r\n onTouched = () => {};\r\n markAsTouched() {\r\n console.log('markAsTouched') \r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n } \r\n \r\n @Input() mapToData:FormColumnInputs | undefined = undefined;\r\n @Input() value!: (FormControlCustomValidatorsInterface )[];\r\n @Input() formInputs: Array<FormColumnInputs> = []\r\n @Output() valueChanged = new EventEmitter<any>();\r\n\r\n\r\n ngOnInit() {}\r\n\r\n edit:FormControlCustomValidatorsInterface | undefined\r\n menuClosed(event:MenuCloseReason){\r\n\r\n if (this.edit) {\r\n const editIndex = this.value.findIndex((item) => {\r\n if (typeof item === 'string') {\r\n return false;\r\n }\r\n return item.id === this.edit?.id;\r\n });\r\n\r\n if (editIndex !== -1) {\r\n this.value[editIndex] = this.edit;\r\n } \r\n this.valueChanged.emit([...this.value])\r\n\r\n\r\n }\r\n\r\n this.edit = undefined\r\n }\r\n showVariables :boolean = false\r\n editV(validator:string | FormControlCustomValidatorsInterface){\r\n if(this.edit?.id === (validator as FormControlCustomValidatorsInterface).id){\r\n this.edit = undefined\r\n return\r\n }\r\n this.edit = validator as any\r\n }\r\n remove(validator:FormControlCustomValidatorsInterface|string){\r\n const indexOfV = this.value.findIndex((item) => {\r\n if (typeof item === 'string') {\r\n return item === validator;\r\n }\r\n return item.id === (validator as FormControlCustomValidatorsInterface).id;\r\n }\r\n )\r\n\r\n\r\n this.value = [...this.value].filter((item,i)=>indexOfV !== i)\r\n this.valueChanged.emit([...this.value])\r\n\r\n }\r\n search: string = '';\r\n\r\n getInputIcon(element: ElementTypes) {\r\n\r\n return getInputIllustration(element)\r\n }\r\n \r\n selectInput(inputId: string) {\r\n const input = this.formInputs.find((input) => input.id === inputId)\r\n if(!input){\r\n return\r\n }\r\n if(input?.multipleInputInEditId){\r\n throw new Error('multipleInputInEditId is not supported')\r\n }\r\n if(!!this.edit){\r\n this.edit.expression = (this.edit?.expression || '' ).concat(input?.formControlName || '')\r\n if(!this.edit.inputsObservedForChanges.find((i)=>i.inputId === (input?.originalId || input?.id))){\r\n this.edit.inputsObservedForChanges.push({\r\n inputId: input?.originalId || input?.id,\r\n variable: input?.formControlName\r\n })\r\n }\r\n \r\n }\r\n \r\n\r\n this.showVariables = false\r\n\r\n }\r\n\r\n addVariable(event:any){\r\n this.showVariables = true\r\n event.stopPropagation()\r\n event.preventDefault()\r\n\r\n }\r\n getMultipleFormInputs(input: IMultiple) {\r\n if (\r\n input.element === ElementTypes.MultipleInput&&\r\n this.mapToData?.multipleInputInEditId === input.id\r\n ) {\r\n return input.formInputs;\r\n }\r\n return [];\r\n }\r\n returnExpression(){\r\n return this.edit?.expression.replace(/(word)/g, '<span style=\\'color: blue\\'>$1</span>')\r\n }\r\n addValidator(){\r\n this.edit = {\r\n message: '',\r\n expression: '',\r\n canOverride: false,\r\n inputsObservedForChanges: []\r\n } as any\r\n }\r\n\r\n onTextChange(event:Event,key:string){\r\n if(!this.edit) {\r\n this.edit = {} as any\r\n }\r\n (this.edit as any)[key] = (event.target as HTMLInputElement).value\r\n }\r\n saveVariable(event:any){\r\n console.log(this.edit)\r\n if(!this.edit) return;\r\n const id = uuidv4()\r\n const val = {...this.edit, id}\r\n this.value = [...this.value, val]\r\n this.valueChanged.emit([...this.value])\r\n this.edit = undefined\r\n \r\n \r\n\r\n\r\n \r\n }\r\n removeObserved(event:any,item:{ inputId: string; variable: string; }){\r\n const i = this.edit?.inputsObservedForChanges.findIndex((i:any)=>i === item)\r\n if(i !== undefined && i !== -1 && this.edit){\r\n this.edit?.inputsObservedForChanges.splice(i, 1);\r\n this.edit.expression = this.edit?.expression.replace(new RegExp(`\\\\b${item}\\\\b`, 'g'), '')\r\n\r\n }\r\n\r\n event.stopPropagation()\r\n event.preventDefault()\r\n }\r\n isFormControlCustomValidator(validator: string |FormControlCustomValidatorsInterface ){\r\n if(typeof validator == 'string'){\r\n return validator\r\n }\r\n return validator.message\r\n\r\n }\r\n}\r\n\r\n\r\n\r\n","<div class=\"tree-instructions\">\r\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\r\n <span>\r\n Custom validators are functions that take a form control as an argument and return an object of errors if the\r\n validation fails.\r\n </span>\r\n</div>\r\n\r\n<mat-list>\r\n<h5>\r\n Custom Validators\r\n</h5>\r\n <mat-chip-listbox aria-label=\"Chip select options\">\r\n @for (validator of value; track $index) {\r\n <mat-chip-option\r\n style=\"height: fit-content;padding: 8px;\"\r\n [selected]=\"edit?.id === validator.id\"\r\n (click)=\"editV(validator)\"> \r\n <span style=\"white-space: normal;\">\r\n {{isFormControlCustomValidator(validator) | titlecase}}\r\n </span>\r\n \r\n <button *ngIf=\"this.edit?.id !== validator.id\" (click)=\"remove(validator)\" matChipRemove \r\n [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n <mat-icon *ngIf=\"this.edit?.id === validator.id\" matChipTrailingIcon>\r\n check_circle\r\n </mat-icon>\r\n \r\n \r\n </mat-chip-option>\r\n }\r\n <mat-chip-option\r\n matTooltip=\"Add a new custom validator\"\r\n selectable=\"false\"\r\n style=\"cursor: pointer !important;\"\r\n highlighted=\"true\" color=\"accent\" (click)=\"addValidator()\" *ngIf=\"!edit\">\r\n <span >\r\n\r\n </span>\r\n Add validator\r\n <mat-icon matChipTrailingIcon >add</mat-icon>\r\n\r\n \r\n </mat-chip-option>\r\n </mat-chip-listbox>\r\n\r\n \r\n \r\n\r\n\r\n</mat-list>\r\n<mat-card style=\"padding: 8px;background:var(--mat-toolbar-container-background-color, var(--mat-app-surface))\"\r\n *ngIf=\"edit\">\r\n <ng-container *ngIf=\"edit && !showVariables; then validatorEditor\"></ng-container>\r\n <mat-toolbar *ngIf=\"!showVariables\" >\r\n <span class=\"spacer\"></span>\r\n <button (click)=\"edit=undefined\" mat-button>\r\n close\r\n </button>\r\n <button mat-raised-button [disabled]=\"!edit.expression ||!edit.message\"\r\n (click)=\"saveVariable($event)\" color=\"accent\">\r\n Save Validation\r\n </button>\r\n </mat-toolbar>\r\n <ng-container *ngIf=\"edit && !!showVariables; then variables\"></ng-container>\r\n</mat-card>\r\n\r\n\r\n\r\n\r\n<ng-template #validatorEditor>\r\n <div class=\"tree-instructions\">\r\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\r\n <span>\r\n The expression is checked on value change. The message shows if it fails.\r\n <br>\r\n You can observe inputs for changes to re-evaluate the expression.\r\n </span>\r\n </div>\r\n <mat-list *ngIf=\"edit\">\r\n\r\n <mat-form-field style=\"margin-bottom: 16px;\" (click)=\"$event.stopPropagation();\" appearance=\"outline\">\r\n <mat-label >Validation Message</mat-label>\r\n <textarea matInput #textarea [value]=\"edit.message\"\r\n (input)=\"onTextChange($event,'message')\"\r\n placeholder=\"\r\n Enter message\r\n \"></textarea>\r\n\r\n <mat-hint>\r\n The message to display when the validation fails\r\n </mat-hint>\r\n\r\n </mat-form-field>\r\n\r\n\r\n\r\n\r\n <mat-form-field (click)=\"$event.stopPropagation();\" appearance=\"outline\">\r\n <mat-label >Expression</mat-label>\r\n <textarea matInput #textarea \r\n (input)=\"onTextChange($event,'expression')\"\r\n [value]=\"edit.expression\" placeholder=\"\r\n enter expression\r\n \"></textarea>\r\n\r\n <mat-hint>\r\n The expression to evaluate the validation\r\n </mat-hint>\r\n\r\n </mat-form-field>\r\n <mat-toolbar>\r\n <mat-slide-toggle (click)=\"$event.stopPropagation();\" name=\"CanOveride\" ngDefaultControl\r\n (change)=\"edit.canOverride = $event.checked\" [checked]=\"edit.canOverride\">\r\n <span style=\"margin-left: 5px;\"> Users can override this validation</span>\r\n\r\n </mat-slide-toggle>\r\n </mat-toolbar>\r\n <label >\r\n Observe inputs for changes\r\n </label>\r\n <mat-chip-listbox aria-label=\"Chip select options\">\r\n @for(input of edit.inputsObservedForChanges;track input){\r\n <mat-chip>input\r\n <button (click)=\"removeObserved($event,input)\" matChipRemove [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n </mat-chip>\r\n }\r\n <mat-chip (click)=\"addVariable($event)\" color=\"primary\">\r\n Variable\r\n <mat-icon matChipTrailingIcon>\r\n add\r\n </mat-icon>\r\n </mat-chip>\r\n </mat-chip-listbox>\r\n\r\n <br>\r\n <mat-divider></mat-divider>\r\n\r\n\r\n </mat-list>\r\n</ng-template>\r\n\r\n<ng-template #variables>\r\n\r\n <section style=\"max-height: 360px; overflow-y: auto\">\r\n <lib-form-input-selector (change)=\"selectInput($event)\" [formInputs]=\"formInputs\">\r\n\r\n </lib-form-input-selector>\r\n\r\n <div class=\"contentBackground\" *ngIf=\"formInputs.length === 0\">\r\n <span style=\"\r\n display: block;\r\n text-align: center;\r\n font-style: italic;\r\n padding: 16px;\r\n \">No form inputs</span>\r\n </div>\r\n </section>\r\n <mat-toolbar>\r\n <span class=\"spacer\"></span>\r\n <button (click)=\"showVariables = !showVariables\" mat-flat-button>\r\n Close\r\n <mat-icon>\r\n close\r\n </mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n</ng-template>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A,IAAA,CAAA,aAAA,EAAA,IAAA,EAAA,WAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACZ,0BAA0B,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,OAAA,EAAA,YAAA,EAAA,UAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAC1B,WAAW,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,8MAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIF,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAbrC,SAAS;+BACE,uBAAuB,EAAA,UAAA,EAGrB,IAAI,EACR,OAAA,EAAA;wBACN,gBAAgB;wBAChB,YAAY;wBACZ,0BAA0B;wBAC1B;qBACD,EACU,SAAA,EAAA,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAA2B,yBAAA,EAAC,CAAC,EAAA,QAAA,EAAA,28KAAA,EAAA,MAAA,EAAA,CAAA,0SAAA,CAAA,EAAA;;0BAWtE;;0BAAY;kEAHV,EAAE,EAAA,CAAA;sBAAhB;gBAoCU,MAAM,EAAA,CAAA;sBAAd;gBAWK,SAAS,EAAA,CAAA;sBAAjB;gBACQ,KAAK,EAAA,CAAA;sBAAb;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBACS,YAAY,EAAA,CAAA;sBAArB;;;;;"}
1
+ {"version":3,"file":"ngx-t-forms-validators-config.component-CGXCCl45.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/validators-config/validators-config.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/validators-config/validators-config.component.html"],"sourcesContent":["import { Component, ElementRef, EventEmitter, HostBinding, Input, OnInit, Optional, Output, Self } from '@angular/core';\r\nimport { MenuCloseReason } from '@angular/material/menu';\r\n\r\nimport { v4 as uuidv4 } from 'uuid';\r\n\r\nimport { ElementTypes, FormControlCustomValidatorsInterface, IMultiple } from 'ngx-t-forms-types';\r\nimport { FormColumnInputs } from 'ngx-t-forms-types';\r\nimport { getInputIllustration } from '../../../../shared/functions/getInputIllustration';\r\n\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormInputSelectorComponent } from '../form-input-selector/form-input-selector.component';\r\n\r\nimport { FormsModule, NgControl } from '@angular/forms';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\n\r\n@Component({\r\n selector: 'app-validators-config',\r\n templateUrl: './validators-config.component.html',\r\n styleUrls: ['./validators-config.component.scss'],\r\n standalone: true,\r\n imports:[\r\n MatModulesModule,\r\n CommonModule,\r\n FormInputSelectorComponent,\r\n FormsModule\r\n ],\r\n providers: [{ provide: MatFormFieldControl, useExisting: ValidatorsConfigComponent}],\r\n})\r\nexport class ValidatorsConfigComponent implements OnInit,MatFormFieldControl<FormControlCustomValidatorsInterface []> {\r\n \r\n\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n \r\n @HostBinding() id = `app-validators-config-${ValidatorsConfigComponent.nextId++}`;\r\n \r\n placeholder: string = ''\r\n constructor(@Optional() @Self() public ngControl: NgControl, private _elementRef: ElementRef<HTMLElement>,) { }\r\n focused: boolean = false;\r\n get empty() {\r\n return !this.value\r\n }\r\n get shouldLabelFloat() {\r\n return this.focused || !this.empty;\r\n }\r\n required: boolean = false;\r\n disabled: boolean = false;\r\nget errorState(): boolean {\r\n const hasError = !!this.ngControl?.control?.errors || (this.errors||[]).length > 0 && this.touched\r\n return !this.value && !!this.required || hasError\r\n }\r\n \r\n controlType?: string | undefined;\r\n autofilled?: boolean | undefined;\r\n userAriaDescribedBy?: string | undefined;\r\n disableAutomaticLabeling?: boolean | undefined;\r\n setDescribedByIds(ids: string[]) {\r\n // Ensure the component view is initialized\r\n if (this._elementRef && this._elementRef.nativeElement) {\r\n const controlElement = this._elementRef.nativeElement.querySelector('.app-validators-config');\r\n // Check if the controlElement exists before attempting to set its attribute\r\n if (controlElement) {\r\n controlElement.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n }\r\n onContainerClick(event: MouseEvent): void {\r\n this.markAsTouched();\r\n this.stateChanges.next();\r\n }\r\n @Input() errors:IConfigElementError[] |undefined = [];\r\n touched: boolean = false;\r\n onTouched = () => {};\r\n markAsTouched() {\r\n console.log('markAsTouched') \r\n if (!this.touched) {\r\n this.onTouched();\r\n this.touched = true;\r\n }\r\n } \r\n \r\n @Input() mapToData:FormColumnInputs | undefined = undefined;\r\n @Input() value!: (FormControlCustomValidatorsInterface )[];\r\n @Input() formInputs: Array<FormColumnInputs> = []\r\n @Output() valueChanged = new EventEmitter<any>();\r\n\r\n\r\n ngOnInit() {}\r\n\r\n edit:FormControlCustomValidatorsInterface | undefined\r\n menuClosed(event:MenuCloseReason){\r\n\r\n if (this.edit) {\r\n const editIndex = this.value.findIndex((item) => {\r\n if (typeof item === 'string') {\r\n return false;\r\n }\r\n return item.id === this.edit?.id;\r\n });\r\n\r\n if (editIndex !== -1) {\r\n this.value[editIndex] = this.edit;\r\n } \r\n this.valueChanged.emit([...this.value])\r\n\r\n\r\n }\r\n\r\n this.edit = undefined\r\n }\r\n showVariables :boolean = false\r\n editV(validator:string | FormControlCustomValidatorsInterface){\r\n if(this.edit?.id === (validator as FormControlCustomValidatorsInterface).id){\r\n this.edit = undefined\r\n return\r\n }\r\n this.edit = validator as any\r\n }\r\n remove(validator:FormControlCustomValidatorsInterface|string){\r\n const indexOfV = this.value.findIndex((item) => {\r\n if (typeof item === 'string') {\r\n return item === validator;\r\n }\r\n return item.id === (validator as FormControlCustomValidatorsInterface).id;\r\n }\r\n )\r\n\r\n\r\n this.value = [...this.value].filter((item,i)=>indexOfV !== i)\r\n this.valueChanged.emit([...this.value])\r\n\r\n }\r\n search: string = '';\r\n\r\n getInputIcon(element: ElementTypes) {\r\n\r\n return getInputIllustration(element)\r\n }\r\n \r\n selectInput(inputId: string) {\r\n const input = this.formInputs.find((input) => input.id === inputId)\r\n if(!input){\r\n return\r\n }\r\n if(input?.multipleInputInEditId){\r\n throw new Error('multipleInputInEditId is not supported')\r\n }\r\n if(!!this.edit){\r\n this.edit.expression = (this.edit?.expression || '' ).concat(input?.formControlName || '')\r\n if(!this.edit.inputsObservedForChanges.find((i)=>i.inputId === (input?.originalId || input?.id))){\r\n this.edit.inputsObservedForChanges.push({\r\n inputId: input?.originalId || input?.id,\r\n variable: input?.formControlName\r\n })\r\n }\r\n \r\n }\r\n \r\n\r\n this.showVariables = false\r\n\r\n }\r\n\r\n addVariable(event:any){\r\n this.showVariables = true\r\n event.stopPropagation()\r\n event.preventDefault()\r\n\r\n }\r\n getMultipleFormInputs(input: IMultiple) {\r\n if (\r\n input.element === ElementTypes.MultipleInput&&\r\n this.mapToData?.multipleInputInEditId === input.id\r\n ) {\r\n return input.formInputs;\r\n }\r\n return [];\r\n }\r\n returnExpression(){\r\n return this.edit?.expression.replace(/(word)/g, '<span style=\\'color: blue\\'>$1</span>')\r\n }\r\n addValidator(){\r\n this.edit = {\r\n message: '',\r\n expression: '',\r\n canOverride: false,\r\n inputsObservedForChanges: []\r\n } as any\r\n }\r\n\r\n onTextChange(event:Event,key:string){\r\n if(!this.edit) {\r\n this.edit = {} as any\r\n }\r\n (this.edit as any)[key] = (event.target as HTMLInputElement).value\r\n }\r\n saveVariable(event:any){\r\n console.log(this.edit)\r\n if(!this.edit) return;\r\n const id = uuidv4()\r\n const val = {...this.edit, id}\r\n this.value = [...this.value, val]\r\n this.valueChanged.emit([...this.value])\r\n this.edit = undefined\r\n \r\n \r\n\r\n\r\n \r\n }\r\n removeObserved(event:any,item:{ inputId: string; variable: string; }){\r\n const i = this.edit?.inputsObservedForChanges.findIndex((i:any)=>i === item)\r\n if(i !== undefined && i !== -1 && this.edit){\r\n this.edit?.inputsObservedForChanges.splice(i, 1);\r\n this.edit.expression = this.edit?.expression.replace(new RegExp(`\\\\b${item}\\\\b`, 'g'), '')\r\n\r\n }\r\n\r\n event.stopPropagation()\r\n event.preventDefault()\r\n }\r\n isFormControlCustomValidator(validator: string |FormControlCustomValidatorsInterface ){\r\n if(typeof validator == 'string'){\r\n return validator\r\n }\r\n return validator.message\r\n\r\n }\r\n}\r\n\r\n\r\n\r\n","<div class=\"tree-instructions\">\r\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\r\n <span>\r\n Custom validators are functions that take a form control as an argument and return an object of errors if the\r\n validation fails.\r\n </span>\r\n</div>\r\n\r\n<mat-list>\r\n<h5>\r\n Custom Validators\r\n</h5>\r\n <mat-chip-listbox aria-label=\"Chip select options\">\r\n @for (validator of value; track $index) {\r\n <mat-chip-option\r\n style=\"height: fit-content;padding: 8px;\"\r\n [selected]=\"edit?.id === validator.id\"\r\n (click)=\"editV(validator)\"> \r\n <span style=\"white-space: normal;\">\r\n {{isFormControlCustomValidator(validator) | titlecase}}\r\n </span>\r\n \r\n <button *ngIf=\"this.edit?.id !== validator.id\" (click)=\"remove(validator)\" matChipRemove \r\n [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n <mat-icon *ngIf=\"this.edit?.id === validator.id\" matChipTrailingIcon>\r\n check_circle\r\n </mat-icon>\r\n \r\n \r\n </mat-chip-option>\r\n }\r\n <mat-chip-option\r\n matTooltip=\"Add a new custom validator\"\r\n selectable=\"false\"\r\n style=\"cursor: pointer !important;\"\r\n highlighted=\"true\" color=\"accent\" (click)=\"addValidator()\" *ngIf=\"!edit\">\r\n <span >\r\n\r\n </span>\r\n Add validator\r\n <mat-icon matChipTrailingIcon >add</mat-icon>\r\n\r\n \r\n </mat-chip-option>\r\n </mat-chip-listbox>\r\n\r\n \r\n \r\n\r\n\r\n</mat-list>\r\n<mat-card style=\"padding: 8px;background:var(--mat-toolbar-container-background-color, var(--mat-app-surface))\"\r\n *ngIf=\"edit\">\r\n <ng-container *ngIf=\"edit && !showVariables; then validatorEditor\"></ng-container>\r\n <mat-toolbar *ngIf=\"!showVariables\" >\r\n <span class=\"spacer\"></span>\r\n <button (click)=\"edit=undefined\" mat-button>\r\n close\r\n </button>\r\n <button mat-raised-button [disabled]=\"!edit.expression ||!edit.message\"\r\n (click)=\"saveVariable($event)\" color=\"accent\">\r\n Save Validation\r\n </button>\r\n </mat-toolbar>\r\n <ng-container *ngIf=\"edit && !!showVariables; then variables\"></ng-container>\r\n</mat-card>\r\n\r\n\r\n\r\n\r\n<ng-template #validatorEditor>\r\n <div class=\"tree-instructions\">\r\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\r\n <span>\r\n The expression is checked on value change. The message shows if it fails.\r\n <br>\r\n You can observe inputs for changes to re-evaluate the expression.\r\n </span>\r\n </div>\r\n <mat-list *ngIf=\"edit\">\r\n\r\n <mat-form-field style=\"margin-bottom: 16px;\" (click)=\"$event.stopPropagation();\" appearance=\"outline\">\r\n <mat-label >Validation Message</mat-label>\r\n <textarea matInput #textarea [value]=\"edit.message\"\r\n (input)=\"onTextChange($event,'message')\"\r\n placeholder=\"\r\n Enter message\r\n \"></textarea>\r\n\r\n <mat-hint>\r\n The message to display when the validation fails\r\n </mat-hint>\r\n\r\n </mat-form-field>\r\n\r\n\r\n\r\n\r\n <mat-form-field (click)=\"$event.stopPropagation();\" appearance=\"outline\">\r\n <mat-label >Expression</mat-label>\r\n <textarea matInput #textarea \r\n (input)=\"onTextChange($event,'expression')\"\r\n [value]=\"edit.expression\" placeholder=\"\r\n enter expression\r\n \"></textarea>\r\n\r\n <mat-hint>\r\n The expression to evaluate the validation\r\n </mat-hint>\r\n\r\n </mat-form-field>\r\n <mat-toolbar>\r\n <mat-slide-toggle (click)=\"$event.stopPropagation();\" name=\"CanOveride\" ngDefaultControl\r\n (change)=\"edit.canOverride = $event.checked\" [checked]=\"edit.canOverride\">\r\n <span style=\"margin-left: 5px;\"> Users can override this validation</span>\r\n\r\n </mat-slide-toggle>\r\n </mat-toolbar>\r\n <label >\r\n Observe inputs for changes\r\n </label>\r\n <mat-chip-listbox aria-label=\"Chip select options\">\r\n @for(input of edit.inputsObservedForChanges;track input){\r\n <mat-chip>input\r\n <button (click)=\"removeObserved($event,input)\" matChipRemove [attr.aria-label]=\"'remove ' \">\r\n <mat-icon>cancel</mat-icon>\r\n </button>\r\n </mat-chip>\r\n }\r\n <mat-chip (click)=\"addVariable($event)\" color=\"primary\">\r\n Variable\r\n <mat-icon matChipTrailingIcon>\r\n add\r\n </mat-icon>\r\n </mat-chip>\r\n </mat-chip-listbox>\r\n\r\n <br>\r\n <mat-divider></mat-divider>\r\n\r\n\r\n </mat-list>\r\n</ng-template>\r\n\r\n<ng-template #variables>\r\n\r\n <section style=\"max-height: 360px; overflow-y: auto\">\r\n <lib-form-input-selector (change)=\"selectInput($event)\" [formInputs]=\"formInputs\">\r\n\r\n </lib-form-input-selector>\r\n\r\n <div class=\"contentBackground\" *ngIf=\"formInputs.length === 0\">\r\n <span style=\"\r\n display: block;\r\n text-align: center;\r\n font-style: italic;\r\n padding: 16px;\r\n \">No form inputs</span>\r\n </div>\r\n </section>\r\n <mat-toolbar>\r\n <span class=\"spacer\"></span>\r\n <button (click)=\"showVariables = !showVariables\" mat-flat-button>\r\n Close\r\n <mat-icon>\r\n close\r\n </mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n</ng-template>\r\n"],"names":["uuidv4","i13"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MA+Ba,yBAAyB,CAAA;aAG5B,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK;IAMlB,WAAuC,CAAA,SAAoB,EAAU,WAAoC,EAAA;QAAlE,IAAS,CAAA,SAAA,GAAT,SAAS;QAAqB,IAAW,CAAA,WAAA,GAAX,WAAW;AALhF,QAAA,IAAA,CAA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UAAA,EAAA,IAAA,EAC1B,WAAW,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,8MAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIF,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAbrC,SAAS;+BACE,uBAAuB,EAAA,UAAA,EAGrB,IAAI,EACR,OAAA,EAAA;wBACN,gBAAgB;wBAChB,YAAY;wBACZ,0BAA0B;wBAC1B;qBACD,EACU,SAAA,EAAA,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAA2B,yBAAA,EAAC,CAAC,EAAA,QAAA,EAAA,28KAAA,EAAA,MAAA,EAAA,CAAA,0SAAA,CAAA,EAAA;;0BAWtE;;0BAAY;kEAHV,EAAE,EAAA,CAAA;sBAAhB;gBAoCU,MAAM,EAAA,CAAA;sBAAd;gBAWK,SAAS,EAAA,CAAA;sBAAjB;gBACQ,KAAK,EAAA,CAAA;sBAAb;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBACS,YAAY,EAAA,CAAA;sBAArB;;;;;"}
@@ -1,2 +1,2 @@
1
- export { x as DialogTemplateComponent, k as FORM_ACTIONS_TOKEN, l as FORM_CONFIG_TOKEN, n as FORM_INPUTS_TOKEN, m as FORM_SLIDES_TOKEN, s as FormBuilderComponent, c as FormTowerControllerService, r as FormsComponent, q as MSCOA_TREE_PROVIDER, o as MULTIPLE_FORM_INPUT_TOKEN, u as MscoaFormInputComponent, N as NGX_T_FORMS_CONFIG_TOKEN, h as NgxTFormsComponent, f as NgxTFormsService, P as PropertyAccessError, y as SignatureInputElementComponent, S as SyncEditorComponent, T as TDynamicDataEditComponent, b as TDynamicDataViewComponent, w as TFormInputComponent, U as UTILS_OBJECT_TOKEN, v as UserFormStepperComponent, a as assignDeepPropertyToObject, j as formGenerator, C as getUrl, i as initFormConfigToV2, p as provideNgxTForms, z as returnDeepProperty, A as safeReturnDeepProperty, E as textIconsForUserHints, B as validateObjectAgainstString } from './ngx-t-forms-ngx-t-forms-DtoFU6uQ.mjs';
1
+ export { x as DialogTemplateComponent, k as FORM_ACTIONS_TOKEN, l as FORM_CONFIG_TOKEN, n as FORM_INPUTS_TOKEN, m as FORM_SLIDES_TOKEN, s as FormBuilderComponent, c as FormTowerControllerService, r as FormsComponent, q as MSCOA_TREE_PROVIDER, o as MULTIPLE_FORM_INPUT_TOKEN, u as MscoaFormInputComponent, N as NGX_T_FORMS_CONFIG_TOKEN, h as NgxTFormsComponent, f as NgxTFormsService, P as PropertyAccessError, y as SignatureInputElementComponent, S as SyncEditorComponent, T as TDynamicDataEditComponent, b as TDynamicDataViewComponent, w as TFormInputComponent, U as UTILS_OBJECT_TOKEN, v as UserFormStepperComponent, W as WorkflowBuilderComponent, a as assignDeepPropertyToObject, j as formGenerator, C as getUrl, i as initFormConfigToV2, p as provideNgxTForms, z as returnDeepProperty, A as safeReturnDeepProperty, E as textIconsForUserHints, B as validateObjectAgainstString } from './ngx-t-forms-ngx-t-forms-1Roar4qK.mjs';
2
2
  //# sourceMappingURL=ngx-t-forms.mjs.map
@@ -10,6 +10,7 @@ export declare class FormSectionStepperComponent extends FormTowerControllerServ
10
10
  ngOnInit(): void;
11
11
  private store;
12
12
  loadingForm$: Observable<boolean>;
13
+ selectInputInEditId$: Observable<string | null>;
13
14
  isEditable: boolean;
14
15
  stepper: MatStepper | undefined;
15
16
  get formBuilderFunctions(): FormBuilderFunctions;
@@ -30,6 +31,7 @@ export declare class FormSectionStepperComponent extends FormTowerControllerServ
30
31
  editInput: (item: FormColumnInputs) => void;
31
32
  addMultipleInputValueCalculationFunction: (item: IMultipleInputCal, multipleInputId: string | undefined) => void;
32
33
  setActiveSection: ($event: StepperSelectionEvent) => number;
34
+ addInputToScoaSelection: (sectionId: string, scoaInputId: string) => void;
33
35
  addNewInput: (sectionId: string) => void;
34
36
  addSection: () => void;
35
37
  setMatActiveStepper: (index: number) => number;
@@ -25,7 +25,7 @@ export declare class FormSubmissionsConfigComponent {
25
25
  _data: any;
26
26
  store: FormsStoreService;
27
27
  form: import("@angular/core").Signal<import("ngx-t-forms-types").FormInterface | undefined>;
28
- formInputs: import("@angular/core").Signal<import("ngx-t-forms-types").FormColumnInputs[]>;
28
+ formInputs: import("@angular/core").Signal<import("ngx-t-forms-types").FormColumnInputs[] | undefined>;
29
29
  getFormApis(key: any): import("@angular/core").Signal<APIDataFetchingConfigurationInterface[]>;
30
30
  constructor();
31
31
  dataPlaceholder: undefined | {
@@ -16,7 +16,7 @@ export declare class InputElementEditorComponent {
16
16
  }>;
17
17
  inputInEdit$: import("rxjs").Observable<import("ngx-t-forms-types").FormColumnInputs | undefined>;
18
18
  defaultInputInEdit$: import("rxjs").Observable<any>;
19
- formInputs$: import("rxjs").Observable<import("ngx-t-forms-types").FormColumnInputs[]>;
19
+ formInputs$: import("rxjs").Observable<import("ngx-t-forms-types").FormColumnInputs[] | undefined>;
20
20
  elementConfigurationChanged: (value: any, ele: ElementEditorInnerSectionElementInterface) => void;
21
21
  clearInputInEdit: () => void;
22
22
  elementBlur: (event: any, element: ElementEditorInnerSectionElementInterface) => void;
@@ -37,7 +37,7 @@ export declare class InputElementEditorComponent {
37
37
  description?: string;
38
38
  };
39
39
  inputInEditValidationErrors: import("ngx-t-forms-types").ValidationError[];
40
- formInputs: import("ngx-t-forms-types").FormColumnInputs[];
40
+ formInputs: import("ngx-t-forms-types").FormColumnInputs[] | undefined;
41
41
  }>;
42
42
  showDebugData(): void;
43
43
  static ɵfac: i0.ɵɵFactoryDeclaration<InputElementEditorComponent, never>;
@@ -28,7 +28,7 @@ export declare class FormsComponent implements OnInit, OnDestroy {
28
28
  formControlName: string;
29
29
  }[];
30
30
  activeForm: string | null;
31
- getCols(): 1 | 4 | 2 | 3;
31
+ getCols(): 1 | 3 | 2 | 4;
32
32
  getFormAvatar(formTitle: string): string;
33
33
  archive(form: LocalFormStateSelectorInterface, event: Event): Promise<void>;
34
34
  unarchive(form: LocalFormStateSelectorInterface, event: Event): Promise<void>;
@@ -31,4 +31,5 @@ export declare function formBuilderStoreActions(store: FormsStoreService): {
31
31
  elementBlur: (inputId: string, event: any, element: ElementEditorInnerSectionElementInterface) => void;
32
32
  addMultipleFormInput: (sectionId: string, multipleInputInEditId: string) => void;
33
33
  clearInputInEdit: (inputId: string) => void;
34
+ addInputToScoaSelection: (sectionId: string, scoaInputId: string) => void;
34
35
  };
@@ -14,7 +14,7 @@ export declare function formsFormBuilderStoreSelectors(store: FormsStoreService)
14
14
  defaultInputInEdit$: import("rxjs").Observable<any>;
15
15
  inputInEditValidationErrors$: import("rxjs").Observable<import("ngx-t-forms-types").ValidationError[]>;
16
16
  selectFormTitle$: import("rxjs").Observable<string | undefined>;
17
- getAllFormInputs$: import("rxjs").Observable<import("ngx-t-forms-types").FormColumnInputs[]>;
17
+ getAllFormInputs$: import("rxjs").Observable<import("ngx-t-forms-types").FormColumnInputs[] | undefined>;
18
18
  inputElementEditorConfigs$: import("rxjs").Observable<{
19
19
  editorSections: {
20
20
  elements: import("ngx-t-forms-types").ElementEditorInnerSectionElementInterface[];
@@ -82,7 +82,7 @@ export declare class FormsStoreService extends ComponentStore<IFormsInitStateInt
82
82
  defaultInputInEdit$: Observable<any>;
83
83
  inputInEditValidationErrors$: Observable<import("ngx-t-forms-types").ValidationError[]>;
84
84
  selectFormTitle$: Observable<string | undefined>;
85
- getAllFormInputs$: Observable<import("ngx-t-forms-types").FormColumnInputs[]>;
85
+ getAllFormInputs$: Observable<import("ngx-t-forms-types").FormColumnInputs[] | undefined>;
86
86
  inputElementEditorConfigs$: Observable<{
87
87
  editorSections: {
88
88
  elements: import("ngx-t-forms-types").ElementEditorInnerSectionElementInterface[];
@@ -206,6 +206,7 @@ export declare class FormsStoreService extends ComponentStore<IFormsInitStateInt
206
206
  elementBlur: (inputId: string, event: any, element: import("ngx-t-forms-types").ElementEditorInnerSectionElementInterface) => void;
207
207
  addMultipleFormInput: (sectionId: string, multipleInputInEditId: string) => void;
208
208
  clearInputInEdit: (inputId: string) => void;
209
+ addInputToScoaSelection: (sectionId: string, scoaInputId: string) => void;
209
210
  };
210
211
  readonly effects: {
211
212
  createForm$: (observableOrValue: FormInterface | Observable<FormInterface>) => import("rxjs").Subscription;
@@ -8,4 +8,5 @@ import { MscoaFormInputComponent } from "./t-form-input/elements/mscoa-form-inpu
8
8
  import { SignatureInputElementComponent } from "./t-form-input/elements/signature-input-element/signature-input-element.component";
9
9
  import { TFormInputComponent } from "./t-form-input/t-form-input.component";
10
10
  import { UserFormStepperComponent } from "./user-form-stepper/user-form-stepper.component";
11
- export { FormsComponent, FormBuilderComponent, MscoaFormInputComponent, UserFormStepperComponent, TFormInputComponent, SyncEditorComponent, TDynamicDataEditComponent, TDynamicDataViewComponent, DialogTemplateComponent, SignatureInputElementComponent };
11
+ import { WorkflowBuilderComponent } from "./workflow-builder/workflow-builder.component";
12
+ export { FormsComponent, FormBuilderComponent, MscoaFormInputComponent, UserFormStepperComponent, TFormInputComponent, SyncEditorComponent, TDynamicDataEditComponent, TDynamicDataViewComponent, DialogTemplateComponent, SignatureInputElementComponent, WorkflowBuilderComponent };
@@ -1,17 +1,12 @@
1
1
  import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormGroup, FormBuilder, NgControl } from '@angular/forms';
3
3
  import { BehaviorSubject, Observable, Subject } from 'rxjs';
4
- import { IGetTreeResponse } from 'ngx-t-forms-types';
4
+ import { IGetTreeResponse, IIncludedSegmentConfig } from 'ngx-t-forms-types';
5
5
  import { MatSlideToggleChange } from '@angular/material/slide-toggle';
6
6
  import { MatFormFieldControl } from '@angular/material/form-field';
7
7
  import { IConfigElementError } from '../../t-dynamic-data-edit.component';
8
+ import { MatSelectChange } from '@angular/material/select';
8
9
  import * as i0 from "@angular/core";
9
- interface IIncludedSegmentConfig {
10
- segment: string;
11
- label: string;
12
- readOnly: boolean;
13
- singleSelect: boolean;
14
- }
15
10
  export declare class MscoaSegmentConfigComponent implements OnInit, OnDestroy, MatFormFieldControl<IIncludedSegmentConfig[] | undefined> {
16
11
  private fb;
17
12
  ngControl: NgControl;
@@ -67,9 +62,10 @@ export declare class MscoaSegmentConfigComponent implements OnInit, OnDestroy, M
67
62
  singleSelectChange(event: MatSlideToggleChange): void;
68
63
  removeSegment(index: number): void;
69
64
  private toTitleCase;
70
- alreadyExists(segment: string): IIncludedSegmentConfig | undefined;
65
+ alreadyExists(segment: IIncludedSegmentConfig): false | IIncludedSegmentConfig | undefined;
71
66
  checkShowAllSegments(): void;
67
+ selectSegment($event: MatSelectChange<any>): void;
68
+ multiLevelSelectChange(event: MatSlideToggleChange): void;
72
69
  static ɵfac: i0.ɵɵFactoryDeclaration<MscoaSegmentConfigComponent, [null, { optional: true; self: true; }, null]>;
73
70
  static ɵcmp: i0.ɵɵComponentDeclaration<MscoaSegmentConfigComponent, "app-mscoa-segment-config", never, { "errors": { "alias": "errors"; "required": false; }; "value": { "alias": "value"; "required": false; }; "showAllSegments": { "alias": "showAllSegments"; "required": false; }; "getMscoaTree": { "alias": "getMscoaTree"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
74
71
  }
75
- export {};
@@ -1,14 +1,14 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { MatDialog } from '@angular/material/dialog';
3
- import { IMSCOAAccount } from "ngx-t-forms-types";
3
+ import { IScoaAccount } from "ngx-t-forms-types";
4
4
  import { FormColumnInputs } from 'ngx-t-forms-types';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class AccountValueComponent {
7
- mscoaAccount: IMSCOAAccount | undefined;
7
+ mscoaAccount: IScoaAccount | undefined;
8
8
  accountInputs: FormColumnInputs[];
9
9
  userCanClearAccount: boolean;
10
10
  clearSelectedAccount: EventEmitter<void>;
11
- updateAccount: EventEmitter<IMSCOAAccount>;
11
+ updateAccount: EventEmitter<IScoaAccount>;
12
12
  get accountDetails(): ({
13
13
  label: string;
14
14
  value: string | {
@@ -1,56 +1,64 @@
1
- import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
2
- import { Observable } from 'rxjs';
1
+ import { OnInit, OnDestroy, EventEmitter, Injector } from '@angular/core';
2
+ import { Observable, Subject } from 'rxjs';
3
3
  import { MatDialog } from '@angular/material/dialog';
4
- import { IMSCOAAccount, IMscoaInputConfig, ITableScoaSelectionRow, MscoaSegmentValue } from "ngx-t-forms-types";
4
+ import { IScoaAccount, IScoaInputConfig, ITableScoaSelectionRow, ScoaInnerInput, ScoaSegmentValue } from "ngx-t-forms-types";
5
5
  import { MscoaComponentStore } from '../../store/mscoa-component-store.service';
6
6
  import { FormColumnInputs } from 'ngx-t-forms-types';
7
7
  import { FormBuilderFunctions } from "ngx-t-forms-types";
8
+ import { FormGroup } from '@angular/forms';
9
+ import { ComponentPortal } from '@angular/cdk/portal';
8
10
  import * as i0 from "@angular/core";
9
11
  export declare class MscoaChartComponent implements OnInit, OnDestroy {
10
12
  private store;
11
- selectAccountTreeKeys$: Observable<{
12
- segment: string | undefined;
13
- singleSelect: boolean;
14
- segmentTree: import("ngx-t-forms-types").MscoaAccountTree;
15
- inputs: import("ngx-t-forms-types/dist/interfaces/formInput/IMscoaAccount").MscoaInnerInput[];
16
- segmentValue: {
17
- debit: IMSCOAAccount | undefined;
18
- credit: IMSCOAAccount | undefined;
19
- } | undefined;
20
- }[]>;
13
+ private injector;
14
+ selectAccountTreeKeys$: Observable<import("ngx-t-forms-types").IAccountSegmentTreeKeys[]>;
21
15
  selectMscoaLoadingTree$: Observable<boolean>;
22
16
  table$: Observable<{
23
- segment: string | undefined;
17
+ segment: string;
18
+ innerInput: ScoaInnerInput;
19
+ label: string;
20
+ formInput: boolean;
21
+ segmentTree: import("ngx-t-forms-types").ScoaAccountTree;
22
+ inputs: ScoaInnerInput[];
23
+ segmentValue: Record<string, any>;
24
+ customSegment?: string | undefined;
25
+ readOnly: boolean;
24
26
  singleSelect: boolean;
25
- segmentTree: import("ngx-t-forms-types").MscoaAccountTree;
26
- inputs: import("ngx-t-forms-types/dist/interfaces/formInput/IMscoaAccount").MscoaInnerInput[];
27
- segmentValue: {
28
- debit: IMSCOAAccount | undefined;
29
- credit: IMSCOAAccount | undefined;
30
- } | undefined;
31
- accountInputs: import("ngx-t-forms-types/dist/interfaces/formInput/IMscoaAccount").MscoaInnerInput[];
32
- input: import("ngx-t-forms-types/dist/interfaces/formInput/IMscoaAccount").MscoaInnerInput | undefined;
33
- debit: string | IMSCOAAccount | undefined;
34
- credit: string | IMSCOAAccount | undefined;
27
+ segmentExtension: boolean;
28
+ id: string;
29
+ accountInputs: ScoaInnerInput[];
30
+ input: ScoaInnerInput | undefined;
31
+ debit: any;
32
+ credit: any;
35
33
  }[]>;
36
- segmentValues$: Observable<MscoaSegmentValue>;
34
+ segmentValues$: Observable<ScoaSegmentValue>;
37
35
  initiated$: Observable<boolean>;
36
+ inputs$: Observable<ScoaInnerInput[]>;
38
37
  private destroy$;
39
38
  _formBuilderFunctions: FormBuilderFunctions | undefined;
40
- constructor(store: MscoaComponentStore);
39
+ constructor(store: MscoaComponentStore, injector: Injector);
40
+ inputPortals: {
41
+ [key: string]: ComponentPortal<any>;
42
+ };
43
+ setupPortals(inputs: ScoaInnerInput[]): void;
44
+ createInjectorWithProps(props: any): Injector;
45
+ inputConfig: FormColumnInputs | undefined;
46
+ editorMode: boolean;
41
47
  set formBuilderFunctions(func: FormBuilderFunctions | undefined);
42
48
  get formBuilderFunctions(): FormBuilderFunctions | undefined;
43
- set segmentValues(segmentValues: MscoaSegmentValue | null);
49
+ set segmentValues(segmentValues: ScoaSegmentValue | null);
44
50
  readonly: boolean;
45
- set config(config: IMscoaInputConfig | undefined | null);
46
- segmentValuesChanged: EventEmitter<MscoaSegmentValue>;
51
+ _config: IScoaInputConfig | undefined | null;
52
+ set config(config: IScoaInputConfig | undefined | null);
53
+ formGroup: FormGroup | undefined | null;
54
+ segmentValuesChanged: EventEmitter<ScoaSegmentValue>;
47
55
  interaction: EventEmitter<string>;
48
56
  readonly dialog: MatDialog;
49
57
  ngOnInit(): void;
50
58
  segmentChange(activeSegment: string): void;
51
59
  loadMscoa(functions: FormBuilderFunctions | undefined): void;
52
60
  ngOnDestroy(): void;
53
- accountNumberSelected(account: IMSCOAAccount | undefined, segment: string, accountType?: "debit" | "credit"): void;
61
+ accountNumberSelected(account: IScoaAccount | undefined, segment: string, accountType?: "debit" | "credit"): void;
54
62
  get hasMultiSelect$(): Observable<boolean>;
55
63
  get cols$(): Observable<string[]>;
56
64
  editSelection: ITableScoaSelectionRow | any;
@@ -61,33 +69,40 @@ export declare class MscoaChartComponent implements OnInit, OnDestroy {
61
69
  onClick(): void;
62
70
  viewData$: Observable<{
63
71
  loading: boolean;
64
- accountTreeKeys: {
65
- segment: string | undefined;
66
- singleSelect: boolean;
67
- segmentTree: import("ngx-t-forms-types").MscoaAccountTree;
68
- inputs: import("ngx-t-forms-types/dist/interfaces/formInput/IMscoaAccount").MscoaInnerInput[];
69
- segmentValue: {
70
- debit: IMSCOAAccount | undefined;
71
- credit: IMSCOAAccount | undefined;
72
- } | undefined;
73
- }[];
72
+ accountTreeKeys: import("ngx-t-forms-types").IAccountSegmentTreeKeys[];
74
73
  tableData: {
75
- segment: string | undefined;
74
+ segment: string;
75
+ innerInput: ScoaInnerInput;
76
+ label: string;
77
+ formInput: boolean;
78
+ segmentTree: import("ngx-t-forms-types").ScoaAccountTree;
79
+ inputs: ScoaInnerInput[];
80
+ segmentValue: Record<string, any>;
81
+ customSegment?: string | undefined;
82
+ readOnly: boolean;
76
83
  singleSelect: boolean;
77
- segmentTree: import("ngx-t-forms-types").MscoaAccountTree;
78
- inputs: import("ngx-t-forms-types/dist/interfaces/formInput/IMscoaAccount").MscoaInnerInput[];
79
- segmentValue: {
80
- debit: IMSCOAAccount | undefined;
81
- credit: IMSCOAAccount | undefined;
82
- } | undefined;
83
- accountInputs: import("ngx-t-forms-types/dist/interfaces/formInput/IMscoaAccount").MscoaInnerInput[];
84
- input: import("ngx-t-forms-types/dist/interfaces/formInput/IMscoaAccount").MscoaInnerInput | undefined;
85
- debit: string | IMSCOAAccount | undefined;
86
- credit: string | IMSCOAAccount | undefined;
84
+ segmentExtension: boolean;
85
+ id: string;
86
+ accountInputs: ScoaInnerInput[];
87
+ input: ScoaInnerInput | undefined;
88
+ debit: any;
89
+ credit: any;
87
90
  }[];
88
91
  cols: string[];
89
92
  hasMultiSelect: boolean;
90
93
  }>;
94
+ inputWillBeRemovedIn(id: string): number | null | undefined;
95
+ countdownSeconds: {
96
+ [key: string]: {
97
+ count: number | null;
98
+ stop$: Subject<void>;
99
+ };
100
+ };
101
+ removeInput(item: any): void;
102
+ stopDeletion(id: string): void;
103
+ overId: string | null;
104
+ formDeleteInput(item: FormColumnInputs): void;
105
+ editInput(input: any): void;
91
106
  static ɵfac: i0.ɵɵFactoryDeclaration<MscoaChartComponent, never>;
92
- static ɵcmp: i0.ɵɵComponentDeclaration<MscoaChartComponent, "app-mscoa-chart", never, { "formBuilderFunctions": { "alias": "formBuilderFunctions"; "required": false; }; "segmentValues": { "alias": "segmentValues"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "segmentValuesChanged": "segmentValuesChanged"; "interaction": "interaction"; }, never, never, true, never>;
107
+ static ɵcmp: i0.ɵɵComponentDeclaration<MscoaChartComponent, "app-mscoa-chart", never, { "inputConfig": { "alias": "inputConfig"; "required": false; }; "editorMode": { "alias": "editorMode"; "required": false; }; "formBuilderFunctions": { "alias": "formBuilderFunctions"; "required": false; }; "segmentValues": { "alias": "segmentValues"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "config": { "alias": "config"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, { "segmentValuesChanged": "segmentValuesChanged"; "interaction": "interaction"; }, never, never, true, never>;
93
108
  }
@@ -3,28 +3,28 @@ import { Observable } from 'rxjs';
3
3
  import { FlatTreeControl } from '@angular/cdk/tree';
4
4
  import { MatTreeFlatDataSource } from '@angular/material/tree';
5
5
  import { MatDialogRef } from '@angular/material/dialog';
6
- import { IIncludedSegmentConfig, IMSCOAAccount, MscoaAccountTree } from "ngx-t-forms-types";
6
+ import { IIncludedSegmentConfig, IScoaAccount, ScoaAccountTree } from "ngx-t-forms-types";
7
7
  import { ObjectTreeFlatNode, ObjectTreeNode } from '../../../../../t-dynamic-data-edit/elements/api-value-access-rules/functions/convertDataToTree';
8
8
  import { FormColumnInputs } from 'ngx-t-forms-types';
9
9
  import * as i0 from "@angular/core";
10
10
  export interface IMscoaComputationComponentData {
11
- data: MscoaAccountTree;
11
+ data: ScoaAccountTree;
12
12
  segment: string;
13
- value: IMSCOAAccount | undefined;
13
+ value: IScoaAccount | undefined;
14
14
  accountInputs: FormColumnInputs[];
15
15
  activeColumn: string | undefined;
16
16
  segmentConfig: IIncludedSegmentConfig | undefined;
17
17
  readonly: boolean;
18
18
  getSCOAAccount: (account: string) => Observable<{
19
- accounts: IMSCOAAccount[];
19
+ accounts: IScoaAccount[];
20
20
  }>;
21
21
  }
22
22
  export declare class MscoaComputationComponent implements OnInit, OnDestroy {
23
23
  dialogRef: MatDialogRef<MscoaComputationComponent>;
24
24
  dataInjected: IMscoaComputationComponentData;
25
- data: MscoaAccountTree | undefined;
25
+ data: ScoaAccountTree | undefined;
26
26
  segment: string | undefined;
27
- value: IMSCOAAccount | undefined;
27
+ value: IScoaAccount | undefined;
28
28
  accountInputs: FormColumnInputs[];
29
29
  activeColumn: string | undefined;
30
30
  readonly: boolean;
@@ -50,12 +50,12 @@ export declare class MscoaComputationComponent implements OnInit, OnDestroy {
50
50
  getSelectedAccounts(): void;
51
51
  cancel(): void;
52
52
  saveAccount(): void;
53
- closeAndPassData(account: IMSCOAAccount | undefined): void;
54
- _selectedAccount: IMSCOAAccount | null;
55
- selectAccount(account: IMSCOAAccount | null): void;
53
+ closeAndPassData(account: IScoaAccount | undefined): void;
54
+ _selectedAccount: IScoaAccount | null;
55
+ selectAccount(account: IScoaAccount | null): void;
56
56
  clearSelectedAccount(): void;
57
57
  get saveSelection(): boolean;
58
- updateAccount(account: IMSCOAAccount): void;
58
+ updateAccount(account: IScoaAccount): void;
59
59
  get userCanClearAccount(): boolean;
60
60
  static ɵfac: i0.ɵɵFactoryDeclaration<MscoaComputationComponent, never>;
61
61
  static ɵcmp: i0.ɵɵComponentDeclaration<MscoaComputationComponent, "app-mscoa-computation", never, {}, {}, never, never, true, never>;
@@ -1,21 +1,23 @@
1
1
  import { ElementRef } from '@angular/core';
2
- import { NgControl } from '@angular/forms';
2
+ import { FormGroup, NgControl } from '@angular/forms';
3
3
  import { BehaviorSubject } from 'rxjs';
4
4
  import { FormBuilderFunctions } from "ngx-t-forms-types";
5
5
  import { FormColumnInputs } from 'ngx-t-forms-types';
6
- import { IMscoaInputConfig, MscoaSegmentValue } from "ngx-t-forms-types";
6
+ import { IScoaInputConfig, ScoaSegmentValue } from "ngx-t-forms-types";
7
7
  import { BaseCustomInput } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';
8
8
  import * as i0 from "@angular/core";
9
- export declare class MscoaReactiveFormFieldComponent extends BaseCustomInput<MscoaSegmentValue> {
9
+ export declare class MscoaReactiveFormFieldComponent extends BaseCustomInput<ScoaSegmentValue> {
10
10
  get empty(): boolean;
11
11
  constructor(ngControl: NgControl, elementRef: ElementRef<HTMLElement>);
12
12
  formBuilderFunctions: FormBuilderFunctions | undefined;
13
+ editorMode: boolean;
13
14
  _inputConfig: FormColumnInputs;
14
- mscoaInputConfig$: BehaviorSubject<IMscoaInputConfig | undefined>;
15
+ mscoaInputConfig$: BehaviorSubject<IScoaInputConfig | undefined>;
15
16
  set inputConfig(inputConfig: FormColumnInputs);
16
17
  get shouldLabelFloat(): boolean;
17
- segmentValuesChanged(event: MscoaSegmentValue): void;
18
+ segmentValuesChanged(event: ScoaSegmentValue): void;
18
19
  get readonly(): boolean;
20
+ get parentFormGroup(): FormGroup | null;
19
21
  static ɵfac: i0.ɵɵFactoryDeclaration<MscoaReactiveFormFieldComponent, [{ optional: true; self: true; }, null]>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<MscoaReactiveFormFieldComponent, "lib-mscoa-reactive-form-field", never, { "formBuilderFunctions": { "alias": "formBuilderFunctions"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; }, {}, never, never, true, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<MscoaReactiveFormFieldComponent, "lib-mscoa-reactive-form-field", never, { "formBuilderFunctions": { "alias": "formBuilderFunctions"; "required": false; }; "editorMode": { "alias": "editorMode"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; }, {}, never, never, true, never>;
21
23
  }
@@ -3,7 +3,7 @@ import { MatPaginator } from '@angular/material/paginator';
3
3
  import { MatSort } from '@angular/material/sort';
4
4
  import { MatTableDataSource } from '@angular/material/table';
5
5
  import { MatCheckboxChange } from '@angular/material/checkbox';
6
- import { IMSCOAAccount } from "ngx-t-forms-types";
6
+ import { IScoaAccount } from "ngx-t-forms-types";
7
7
  import { FormControl } from '@angular/forms';
8
8
  import * as i0 from "@angular/core";
9
9
  export interface ColumnConfig<T> {
@@ -14,13 +14,13 @@ export interface ColumnConfig<T> {
14
14
  }
15
15
  export declare class ScoaAccountTableComponent implements OnChanges, OnInit {
16
16
  data: {
17
- accounts: IMSCOAAccount[];
17
+ accounts: IScoaAccount[];
18
18
  account: string;
19
19
  } | undefined;
20
- accountSelected: EventEmitter<IMSCOAAccount | null>;
21
- dataSource: MatTableDataSource<IMSCOAAccount>;
20
+ accountSelected: EventEmitter<IScoaAccount | null>;
21
+ dataSource: MatTableDataSource<IScoaAccount>;
22
22
  searchControl: FormControl<string | null>;
23
- selectedAccount: IMSCOAAccount | null;
23
+ selectedAccount: IScoaAccount | null;
24
24
  segment: string | undefined;
25
25
  minViewCol: string[];
26
26
  scoaAccountColumns: any[];
@@ -33,7 +33,7 @@ export declare class ScoaAccountTableComponent implements OnChanges, OnInit {
33
33
  constructor();
34
34
  ngOnInit(): void;
35
35
  ngOnChanges(changes: SimpleChanges): void;
36
- mapAccounts(accounts: IMSCOAAccount[]): {
36
+ mapAccounts(accounts: IScoaAccount[]): {
37
37
  AccountNumberShortened: string;
38
38
  _id: {
39
39
  $oid: string;
@@ -73,9 +73,9 @@ export declare class ScoaAccountTableComponent implements OnChanges, OnInit {
73
73
  }[];
74
74
  removeTrailingZeros(str: string): string;
75
75
  applyFilter(filterValue: string): void;
76
- selectAccount(account: IMSCOAAccount): void;
76
+ selectAccount(account: IScoaAccount): void;
77
77
  clearSearch(): void;
78
- rowIsActivated(row: IMSCOAAccount): boolean;
78
+ rowIsActivated(row: IScoaAccount): boolean;
79
79
  showMinMal: boolean;
80
80
  toogleDetails(): void;
81
81
  static ɵfac: i0.ɵɵFactoryDeclaration<ScoaAccountTableComponent, never>;
@@ -12,11 +12,11 @@ export declare class ScoaInputComponent implements OnInit {
12
12
  activeFormClass: undefined;
13
13
  dataInjected: any;
14
14
  inputConfig: FormColumnInputs;
15
+ formGroup: FormGroup;
15
16
  value: any;
16
17
  heading: any;
17
18
  subHeading: any;
18
19
  get hasError(): boolean;
19
- formGroup: FormGroup;
20
20
  NGX_T_FORMS_CONFIG: import("ngx-t-forms-types").NgxTFormsConfig;
21
21
  constructor(dialogRef: MatDialogRef<ScoaInputComponent>);
22
22
  getContentInput(): any;
@@ -1,15 +1,16 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { FormColumnInputs } from "ngx-t-forms-types";
3
3
  import { FormGroup } from '@angular/forms';
4
- import { FormBuilderFunctions, MscoaSegmentValue } from "ngx-t-forms-types";
4
+ import { FormBuilderFunctions, ScoaSegmentValue } from "ngx-t-forms-types";
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class MscoaFormInputComponent {
7
7
  inputConfig: FormColumnInputs;
8
+ editorMode: boolean;
8
9
  formGroup: FormGroup;
9
10
  formBuilderFunctions: FormBuilderFunctions | undefined;
10
11
  valueChange: EventEmitter<any>;
11
- segmentValuesChanged(event: MscoaSegmentValue): void;
12
+ segmentValuesChanged(event: ScoaSegmentValue): void;
12
13
  get errorMessage(): string | undefined;
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<MscoaFormInputComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<MscoaFormInputComponent, "lib-mscoa-form-input", never, { "inputConfig": { "alias": "inputConfig"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "formBuilderFunctions": { "alias": "formBuilderFunctions"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<MscoaFormInputComponent, "lib-mscoa-form-input", never, { "inputConfig": { "alias": "inputConfig"; "required": false; }; "editorMode": { "alias": "editorMode"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "formBuilderFunctions": { "alias": "formBuilderFunctions"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
15
16
  }