ngx-t-forms 2.0.15 → 2.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{ngx-t-forms-api-value-access-rules.component-fKCk6tHv.mjs → ngx-t-forms-api-value-access-rules.component-DscZEY73.mjs} +10 -6
- package/fesm2022/ngx-t-forms-api-value-access-rules.component-DscZEY73.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-B_8NQhQQ.mjs → ngx-t-forms-calculated-field-rules.component-BP6qdagA.mjs} +11 -6
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BP6qdagA.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-Wv7jtClz.mjs → ngx-t-forms-chip-options-creator-editor.component-U-F-Mw4k.mjs} +7 -5
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-U-F-Mw4k.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-DuC1LDjl.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-0Svupljo.mjs} +6 -4
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-0Svupljo.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-data-source-picker.component-DFaFLo9z.mjs +206 -0
- package/fesm2022/ngx-t-forms-data-source-picker.component-DFaFLo9z.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-CVF-JI3j.mjs +239 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-CVF-JI3j.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-input-selector.component-DZXH_UBK.mjs → ngx-t-forms-form-input-selector.component-BqJ7H_C5.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-input-selector.component-DZXH_UBK.mjs.map → ngx-t-forms-form-input-selector.component-BqJ7H_C5.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-U4HGVNQk.mjs → ngx-t-forms-form-json-view.component-CHE8wxNI.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-U4HGVNQk.mjs.map → ngx-t-forms-form-json-view.component-CHE8wxNI.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-CvVu8xJI.mjs +253 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-CvVu8xJI.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-CAE1-JXD.mjs → ngx-t-forms-forms-builder-menu.component-BSvhnXCy.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-CAE1-JXD.mjs.map → ngx-t-forms-forms-builder-menu.component-BSvhnXCy.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-input-editor.component-C1UIixRM.mjs +147 -0
- package/fesm2022/ngx-t-forms-input-editor.component-C1UIixRM.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-qzR-rM4E.mjs → ngx-t-forms-mat-chip-list-editor.component-CZbupm3H.mjs} +7 -5
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CZbupm3H.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-slider-editor.component-pVWgzc5_.mjs → ngx-t-forms-mat-slider-editor.component-DKIiWPq3.mjs} +6 -4
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-DKIiWPq3.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-Ddy1-Jgp.mjs → ngx-t-forms-mat-slider-toggle-editor.component-MFT33hkt.mjs} +6 -4
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-MFT33hkt.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-BQbT17M7.mjs → ngx-t-forms-missing-form-configs.component-DO3QfrLp.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-BQbT17M7.mjs.map → ngx-t-forms-missing-form-configs.component-DO3QfrLp.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-Bo-aEuAQ.mjs +282 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-Bo-aEuAQ.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-ngx-t-forms-Biy_6-DN.mjs → ngx-t-forms-ngx-t-forms-fgu62eR1.mjs} +235 -201
- package/fesm2022/ngx-t-forms-ngx-t-forms-fgu62eR1.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-DfjnUdcM.mjs → ngx-t-forms-pipeline-generator.component-BtkYF9xE.mjs} +12 -7
- package/fesm2022/ngx-t-forms-pipeline-generator.component-BtkYF9xE.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-BfrR28ge.mjs +189 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-BfrR28ge.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-DmII4rB1.mjs → ngx-t-forms-rest-api-call-setup.component-Dx-EamZ8.mjs} +8 -4
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-Dx-EamZ8.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-section-report.component-D04ybG_k.mjs → ngx-t-forms-section-report.component-Z9rqOa1d.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-section-report.component-D04ybG_k.mjs.map → ngx-t-forms-section-report.component-Z9rqOa1d.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-CSTV4Hqm.mjs +145 -0
- package/fesm2022/ngx-t-forms-selection-options-editor.component-CSTV4Hqm.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-validators-config.component-I346eCwr.mjs +218 -0
- package/fesm2022/ngx-t-forms-validators-config.component-I346eCwr.mjs.map +1 -0
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/lib/components/form-builder/elements/form-section-stepper/form-section-stepper.component.d.ts +4 -1
- package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/api-value-access-rules.component.d.ts +1 -1
- package/lib/components/t-dynamic-data-edit/elements/calculated-field-rules/calculated-field-rules.component.d.ts +1 -1
- package/lib/components/t-dynamic-data-edit/elements/chip-options-creator-editor/chip-options-creator-editor.component.d.ts +1 -1
- package/lib/components/t-dynamic-data-edit/elements/config-mscoa-additional-inputs/config-mscoa-additional-inputs.component.d.ts +1 -1
- package/lib/components/t-dynamic-data-edit/elements/data-source-picker/data-source-picker.component.d.ts +57 -0
- package/lib/components/t-dynamic-data-edit/elements/document-list-label-config-editor/document-list-label-config-editor.component.d.ts +62 -0
- package/lib/components/t-dynamic-data-edit/elements/mat-chip-list-editor/mat-chip-list-editor.component.d.ts +1 -1
- package/lib/components/t-dynamic-data-edit/elements/mat-slider-editor/mat-slider-editor.component.d.ts +1 -1
- package/lib/components/t-dynamic-data-edit/elements/mat-slider-toggle-editor/mat-slider-toggle-editor.component.d.ts +2 -2
- package/lib/components/t-dynamic-data-edit/elements/mscoa-segment-config/mscoa-segment-config.component.d.ts +1 -1
- package/lib/components/t-dynamic-data-edit/elements/pipeline-generator/pipeline-generator.component.d.ts +1 -1
- package/lib/components/t-dynamic-data-edit/elements/required-inputs/required-inputs.component.d.ts +1 -1
- package/lib/components/t-dynamic-data-edit/elements/rest-api-call-setup/rest-api-call-setup.component.d.ts +1 -1
- package/lib/components/t-dynamic-data-edit/elements/selection-options-editor/selection-options-editor.component.d.ts +1 -1
- package/lib/components/t-dynamic-data-edit/elements/validators-config/validators-config.component.d.ts +1 -1
- package/lib/components/t-dynamic-data-edit/t-dynamic-data-edit.component.d.ts +5 -2
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/account-value/account-value.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/mscoa-chart.component.d.ts +1 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/scoa-account-table/scoa-account-table.component.d.ts +2 -2
- package/lib/components/t-form-input/elements/multiple-input-input-element/core/multiple-input-table/multiple-input-table.component.d.ts +1 -1
- package/lib/services/core/t-form-builder/functions/inputElementEditorConfigs.d.ts +2 -2
- package/lib/services/index.d.ts +2 -1
- package/package.json +2 -2
- package/fesm2022/ngx-t-forms-api-value-access-rules.component-fKCk6tHv.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-B_8NQhQQ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-chip-options-creator-editor.component-Wv7jtClz.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-config-mscoa-additional-inputs.component-DuC1LDjl.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-DGqSwAYD.mjs +0 -243
- package/fesm2022/ngx-t-forms-form-section-stepper.component-DGqSwAYD.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-input-editor.component-D18kU0fT.mjs +0 -147
- package/fesm2022/ngx-t-forms-input-editor.component-D18kU0fT.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-qzR-rM4E.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-editor.component-pVWgzc5_.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-Ddy1-Jgp.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BxyJB21G.mjs +0 -280
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BxyJB21G.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-Biy_6-DN.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-pipeline-generator.component-DfjnUdcM.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-0l94qfKx.mjs +0 -187
- package/fesm2022/ngx-t-forms-required-inputs.component-0l94qfKx.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-DmII4rB1.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-selection-options-editor.component-C8KaRaIJ.mjs +0 -143
- package/fesm2022/ngx-t-forms-selection-options-editor.component-C8KaRaIJ.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-validators-config.component-DEZQOMZx.mjs +0 -216
- package/fesm2022/ngx-t-forms-validators-config.component-DEZQOMZx.mjs.map +0 -1
|
@@ -3,7 +3,7 @@ import { EventEmitter, Output, Input, HostBinding, Optional, Self, Component } f
|
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
|
-
import { M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-
|
|
6
|
+
import { M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-fgu62eR1.mjs';
|
|
7
7
|
import * as i1 from '@angular/forms';
|
|
8
8
|
import * as i2 from '@angular/material/slider';
|
|
9
9
|
|
|
@@ -71,17 +71,19 @@ class MatSliderEditorComponent {
|
|
|
71
71
|
this.valueChange.emit(event);
|
|
72
72
|
}
|
|
73
73
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MatSliderEditorComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
74
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: MatSliderEditorComponent, isStandalone: true, selector: "lib-mat-slider-editor", inputs: { required: "required", errors: "errors", label: "label", min: "min", max: "max", step: "step", value: "value", format: "format", formatLabel: "formatLabel" }, outputs: { valueChange: "valueChange" }, host: { properties: { "id": "this.id" } }, providers: [{ provide: MatFormFieldControl, useExisting: MatSliderEditorComponent }], ngImport: i0, template: "\r\n<section class=\"range\">\r\n <span> {{min || 0 }}</span>\r\n<mat-slider
|
|
74
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: MatSliderEditorComponent, isStandalone: true, selector: "lib-mat-slider-editor", inputs: { disabled: "disabled", required: "required", errors: "errors", label: "label", min: "min", max: "max", step: "step", value: "value", format: "format", formatLabel: "formatLabel" }, outputs: { valueChange: "valueChange" }, host: { properties: { "id": "this.id" } }, providers: [{ provide: MatFormFieldControl, useExisting: MatSliderEditorComponent }], ngImport: i0, template: "\r\n<section class=\"range\">\r\n <span> {{min || 0 }}</span>\r\n<mat-slider \r\n[disabled]=\"disabled\" \r\nstyle=\"width: 100%;\" \r\n showTickMarks discrete [displayWith]=\"format || formatLabel\"\r\n[max]=\"max || 100\" min=\"min || 0\"\r\n[step]=\"step || 1\" tickInterval=\"step || 1\">\r\n<input (input)=\"valueChangedSlider($event)\" [value]=\"value\" matSliderThumb>\r\n</mat-slider>\r\n\r\n<span> {{ max || 100 }}</span>\r\n</section>\r\n", styles: [".range{display:flex;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: MatModulesModule }, { kind: "component", type: i2.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }, { kind: "directive", type: i2.MatSliderThumb, selector: "input[matSliderThumb]", inputs: ["value"], outputs: ["valueChange", "dragStart", "dragEnd"], exportAs: ["matSliderThumb"] }, { kind: "ngmodule", type: CommonModule }] }); }
|
|
75
75
|
}
|
|
76
76
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MatSliderEditorComponent, decorators: [{
|
|
77
77
|
type: Component,
|
|
78
|
-
args: [{ selector: 'lib-mat-slider-editor', standalone: true, providers: [{ provide: MatFormFieldControl, useExisting: MatSliderEditorComponent }], imports: [MatModulesModule, CommonModule], template: "\r\n<section class=\"range\">\r\n <span> {{min || 0 }}</span>\r\n<mat-slider
|
|
78
|
+
args: [{ selector: 'lib-mat-slider-editor', standalone: true, providers: [{ provide: MatFormFieldControl, useExisting: MatSliderEditorComponent }], imports: [MatModulesModule, CommonModule], template: "\r\n<section class=\"range\">\r\n <span> {{min || 0 }}</span>\r\n<mat-slider \r\n[disabled]=\"disabled\" \r\nstyle=\"width: 100%;\" \r\n showTickMarks discrete [displayWith]=\"format || formatLabel\"\r\n[max]=\"max || 100\" min=\"min || 0\"\r\n[step]=\"step || 1\" tickInterval=\"step || 1\">\r\n<input (input)=\"valueChangedSlider($event)\" [value]=\"value\" matSliderThumb>\r\n</mat-slider>\r\n\r\n<span> {{ max || 100 }}</span>\r\n</section>\r\n", styles: [".range{display:flex;align-items:center}\n"] }]
|
|
79
79
|
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
80
80
|
type: Optional
|
|
81
81
|
}, {
|
|
82
82
|
type: Self
|
|
83
83
|
}] }, { type: i0.ElementRef }], propDecorators: { id: [{
|
|
84
84
|
type: HostBinding
|
|
85
|
+
}], disabled: [{
|
|
86
|
+
type: Input
|
|
85
87
|
}], required: [{
|
|
86
88
|
type: Input
|
|
87
89
|
}], errors: [{
|
|
@@ -105,4 +107,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
105
107
|
}] } });
|
|
106
108
|
|
|
107
109
|
export { MatSliderEditorComponent };
|
|
108
|
-
//# sourceMappingURL=ngx-t-forms-mat-slider-editor.component-
|
|
110
|
+
//# sourceMappingURL=ngx-t-forms-mat-slider-editor.component-DKIiWPq3.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-mat-slider-editor.component-DKIiWPq3.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/mat-slider-editor/mat-slider-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/mat-slider-editor/mat-slider-editor.component.html"],"sourcesContent":["import { Component, ElementRef, EventEmitter, HostBinding, Input, Optional, Output, Self } from '@angular/core';\r\n\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs';\r\nimport { NgControl } from '@angular/forms';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\n\r\n@Component({\r\n selector: 'lib-mat-slider-editor',\r\n standalone: true,\r\n providers: [{ provide: MatFormFieldControl, useExisting: MatSliderEditorComponent }],\r\n imports: [MatModulesModule, CommonModule],\r\n templateUrl: './mat-slider-editor.component.html',\r\n styleUrl: './mat-slider-editor.component.css'\r\n})\r\nexport class MatSliderEditorComponent implements MatFormFieldControl<number> {\r\n\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n\r\n @HostBinding() id = `lib-mat-slider-editor-${MatSliderEditorComponent.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\r\n @Input() disabled: boolean = false;\r\n get errorState(): boolean {\r\n const hasError = !!this.ngControl?.control?.errors || (this.errors||[]).length > 0 && this.touched\r\n \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('.lib-mat-slider-editor');\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\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\r\n _required: boolean = false;\r\n @Input() set required(value: boolean) {\r\n this._required = value;\r\n }\r\n get required(): boolean {\r\n return this._required;\r\n }\r\n @Input() errors:IConfigElementError[] |undefined = [];\r\n @Input() label: string = '';\r\n @Input() min: number = 0;\r\n @Input() max: number = 100;\r\n @Input() step: number = 1;\r\n @Input() value: number = 0;\r\n @Input() format?: (value: any) => any = (value: any) => value;\r\n @Input() formatLabel: (value: any) => any = (value: any) => value;\r\n @Output() valueChange = new EventEmitter<number>();\r\n valueChangedSlider(event: any) {\r\n this.valueChange.emit(event);\r\n }\r\n\r\n}\r\n","\r\n<section class=\"range\">\r\n <span> {{min || 0 }}</span>\r\n<mat-slider \r\n[disabled]=\"disabled\" \r\nstyle=\"width: 100%;\" \r\n showTickMarks discrete [displayWith]=\"format || formatLabel\"\r\n[max]=\"max || 100\" min=\"min || 0\"\r\n[step]=\"step || 1\" tickInterval=\"step || 1\">\r\n<input (input)=\"valueChangedSlider($event)\" [value]=\"value\" matSliderThumb>\r\n</mat-slider>\r\n\r\n<span> {{ max || 100 }}</span>\r\n</section>\r\n"],"names":[],"mappings":";;;;;;;;;MAiBa,wBAAwB,CAAA;aAE5B,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,CAAA,YAAY,GAAG,IAAI,OAAO,EAAQ;AAEnB,QAAA,IAAA,CAAA,EAAE,GAAG,CAAyB,sBAAA,EAAA,wBAAwB,CAAC,MAAM,EAAE,EAAE;QAEhF,IAAW,CAAA,WAAA,GAAW,EAAE;QAExB,IAAO,CAAA,OAAA,GAAY,KAAK;QAQf,IAAQ,CAAA,QAAA,GAAY,KAAK;QA0BlC,IAAO,CAAA,OAAA,GAAY,KAAK;AACxB,QAAA,IAAA,CAAA,SAA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AA,EAAA,CAAA,CAAA;;2FAI7B,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBARpC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,cACrB,IAAI,EAAA,SAAA,EACL,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAA,wBAA0B,EAAE,CAAC,EAAA,OAAA,EAC3E,CAAC,gBAAgB,EAAE,YAAY,CAAC,EAAA,QAAA,EAAA,0cAAA,EAAA,MAAA,EAAA,CAAA,2CAAA,CAAA,EAAA;;0BAY5B;;0BAAY;kEAHV,EAAE,EAAA,CAAA;sBAAhB;gBAYQ,QAAQ,EAAA,CAAA;sBAAhB;gBAsCY,QAAQ,EAAA,CAAA;sBAApB;gBAMQ,MAAM,EAAA,CAAA;sBAAd;gBACQ,KAAK,EAAA,CAAA;sBAAb;gBACQ,GAAG,EAAA,CAAA;sBAAX;gBACQ,GAAG,EAAA,CAAA;sBAAX;gBACQ,IAAI,EAAA,CAAA;sBAAZ;gBACQ,KAAK,EAAA,CAAA;sBAAb;gBACQ,MAAM,EAAA,CAAA;sBAAd;gBACQ,WAAW,EAAA,CAAA;sBAAnB;gBACS,WAAW,EAAA,CAAA;sBAApB;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, HostBinding, Input, Output, Optional, Self, Component } from '@angular/core';
|
|
3
|
-
import { M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-
|
|
3
|
+
import { M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-fgu62eR1.mjs';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
6
6
|
import { Subject } from 'rxjs/internal/Subject';
|
|
@@ -47,13 +47,13 @@ class MatSliderToggleEditorComponent {
|
|
|
47
47
|
this.stateChanges = new Subject();
|
|
48
48
|
this.focused = false;
|
|
49
49
|
this.touched = false;
|
|
50
|
-
this.disabled = false;
|
|
51
50
|
this.controlType = 'lib-mat-slider-toggle-editor';
|
|
52
51
|
this.autofilled = false;
|
|
53
52
|
this.name = undefined;
|
|
54
53
|
this.label = '';
|
|
55
54
|
this.errors = [];
|
|
56
55
|
this.valueChange = new EventEmitter();
|
|
56
|
+
this.disabled = false;
|
|
57
57
|
this._required = false;
|
|
58
58
|
this._value = false;
|
|
59
59
|
this._placeholder = '';
|
|
@@ -106,7 +106,7 @@ class MatSliderToggleEditorComponent {
|
|
|
106
106
|
this.markAsTouched();
|
|
107
107
|
}
|
|
108
108
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MatSliderToggleEditorComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
109
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: MatSliderToggleEditorComponent, isStandalone: true, selector: "lib-mat-slider-toggle-editor", inputs: { name: "name", label: "label", errors: "errors", required: "required", value: "value", placeholder: "placeholder" }, outputs: { valueChange: "valueChange" }, host: { properties: { "id": "this.id", "attr.aria-describedby": "this.describedBy", "class.floating": "this.shouldLabelFloat" } }, providers: [
|
|
109
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: MatSliderToggleEditorComponent, isStandalone: true, selector: "lib-mat-slider-toggle-editor", inputs: { name: "name", label: "label", errors: "errors", disabled: "disabled", required: "required", value: "value", placeholder: "placeholder" }, outputs: { valueChange: "valueChange" }, host: { properties: { "id": "this.id", "attr.aria-describedby": "this.describedBy", "class.floating": "this.shouldLabelFloat" } }, providers: [
|
|
110
110
|
{
|
|
111
111
|
provide: MatFormFieldControl,
|
|
112
112
|
useExisting: MatSliderToggleEditorComponent
|
|
@@ -133,6 +133,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
133
133
|
type: Input
|
|
134
134
|
}], valueChange: [{
|
|
135
135
|
type: Output
|
|
136
|
+
}], disabled: [{
|
|
137
|
+
type: Input
|
|
136
138
|
}], required: [{
|
|
137
139
|
type: Input
|
|
138
140
|
}], value: [{
|
|
@@ -150,4 +152,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
150
152
|
}] } });
|
|
151
153
|
|
|
152
154
|
export { MatSliderToggleEditorComponent };
|
|
153
|
-
//# sourceMappingURL=ngx-t-forms-mat-slider-toggle-editor.component-
|
|
155
|
+
//# sourceMappingURL=ngx-t-forms-mat-slider-toggle-editor.component-MFT33hkt.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-mat-slider-toggle-editor.component-MFT33hkt.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/mat-slider-toggle-editor/mat-slider-toggle-editor.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/mat-slider-toggle-editor/mat-slider-toggle-editor.component.html"],"sourcesContent":["import { Component, ElementRef, EventEmitter, HostBinding, Input, Optional, Output, Self } from '@angular/core';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { Subject } from 'rxjs/internal/Subject';\r\nimport { ControlValueAccessor, NgControl } from '@angular/forms';\r\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\n\r\n@Component({\r\n selector: 'lib-mat-slider-toggle-editor',\r\n standalone: true,\r\n imports: [MatModulesModule,CommonModule],\r\n templateUrl: './mat-slider-toggle-editor.component.html',\r\n styleUrl: './mat-slider-toggle-editor.component.css',\r\n providers: [\r\n {\r\n provide: MatFormFieldControl,\r\n useExisting: MatSliderToggleEditorComponent\r\n }\r\n ],\r\n})\r\nexport class MatSliderToggleEditorComponent implements MatFormFieldControl<boolean>, ControlValueAccessor {\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n focused = false;\r\n touched = false;\r\n controlType = 'lib-mat-slider-toggle-editor';\r\n autofilled = false;\r\n\r\n @Input() name: string | undefined = undefined;\r\n @Input() label: string = '';\r\n @Input() errors:IConfigElementError[] | undefined = [];\r\n @Output() valueChange = new EventEmitter<boolean>();\r\n @Input() disabled: boolean = false;\r\n private _required = false;\r\n @Input()\r\n get required(): boolean {\r\n return this._required;\r\n }\r\n set required(value: boolean) {\r\n this._required = coerceBooleanProperty(value);\r\n this.stateChanges.next();\r\n }\r\n \r\n private _value: boolean = false;\r\n @Input()\r\n get value(): boolean {\r\n \r\n return this._value;\r\n }\r\n set value(val: boolean) {\r\n this._value = val;\r\n this.onChange(val);\r\n this.stateChanges.next();\r\n }\r\n\r\n @Input()\r\n get placeholder(): string {\r\n return this._placeholder;\r\n }\r\n set placeholder(value: string) {\r\n this._placeholder = value;\r\n this.stateChanges.next();\r\n }\r\n private _placeholder: string = '';\r\n\r\n @HostBinding() id = `lib-mat-slider-toggle-editor-${MatSliderToggleEditorComponent.nextId++}`;\r\n @HostBinding('attr.aria-describedby') describedBy = '';\r\n @HostBinding('class.floating') get shouldLabelFloat() {\r\n return this.focused || !this.empty;\r\n }\r\n\r\n get empty(): boolean {\r\n return this.value === false;\r\n }\r\n\r\n get errorState(): boolean {\r\n return !this.value && this.required && this.touched || !!this.ngControl?.errors || (this.errors||[]).length >0;\r\n }\r\n\r\n constructor(\r\n @Optional() @Self() public ngControl: NgControl,\r\n private _elementRef: ElementRef<HTMLElement>\r\n ) {\r\n if (this.ngControl != null) {\r\n this.ngControl.valueAccessor = this;\r\n }\r\n }\r\n\r\n // ControlValueAccessor methods\r\n onChange = (_: any) => {};\r\n onTouched = () => {};\r\n\r\n writeValue(value: boolean): void {\r\n this._value = value;\r\n this.stateChanges.next();\r\n }\r\n\r\n registerOnChange(fn: any): void {\r\n this.onChange = fn;\r\n }\r\n\r\n registerOnTouched(fn: any): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n setDisabledState(isDisabled: boolean): void {\r\n this.disabled = isDisabled;\r\n this.stateChanges.next();\r\n }\r\n\r\n // MatFormFieldControl methods\r\n setDescribedByIds(ids: string[]): void {\r\n const element = this._elementRef?.nativeElement;\r\n if (element) {\r\n element.setAttribute('aria-describedby', ids.join(' '));\r\n }\r\n }\r\n\r\n onContainerClick(event: MouseEvent): void {\r\n if (!this.focused) {\r\n this.focused = true;\r\n this.stateChanges.next();\r\n }\r\n }\r\n\r\n markAsTouched(): void {\r\n if (!this.touched) {\r\n this.touched = true;\r\n this.onTouched();\r\n this.stateChanges.next();\r\n }\r\n }\r\n\r\n valueToggleChanged(value: boolean): void {\r\n this.value = value;\r\n this.valueChange.emit(value);\r\n this.markAsTouched();\r\n }\r\n}","<mat-slide-toggle\r\n [disabled]=\"disabled\"\r\n [checked]=\"!!value\"\r\n (change)=\"valueToggleChanged($event.checked)\"\r\n (blur)=\"markAsTouched()\"\r\n>\r\n set <strong>on/off</strong> {{ label }}\r\n</mat-slide-toggle>"],"names":["i2"],"mappings":";;;;;;;;;;MAsBa,8BAA8B,CAAA;aAClC,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK;AAalB,IAAA,IACI,QAAQ,GAAA;QACV,OAAO,IAAI,CAAC,SAAS;;IAEvB,IAAI,QAAQ,CAAC,KAAc,EAAA;AACzB,QAAA,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,KAAK,CAAC;AAC7C,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;;AAI1B,IAAA,IACI,KAAK,GAAA;QAEP,OAAO,IAAI,CAAC,MAAM;;IAEpB,IAAI,KAAK,CAAC,GAAY,EAAA;AACpB,QAAA,IAAI,CAAC,MAAM,GAAG,GAAG;AACjB,QAAA,IAAI,CAAC,QA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EAAA,CAAA;sBADR;gBAYG,WAAW,EAAA,CAAA;sBADd;gBAUc,EAAE,EAAA,CAAA;sBAAhB;gBACqC,WAAW,EAAA,CAAA;sBAAhD,WAAW;uBAAC,uBAAuB;gBACD,gBAAgB,EAAA,CAAA;sBAAlD,WAAW;uBAAC,gBAAgB;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component } from '@angular/core';
|
|
3
|
-
import { F as FormsStoreService, M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-
|
|
3
|
+
import { F as FormsStoreService, M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-fgu62eR1.mjs';
|
|
4
4
|
import * as i2$1 from '@angular/common';
|
|
5
5
|
import { CommonModule } from '@angular/common';
|
|
6
6
|
import * as i2 from '@angular/material/button';
|
|
@@ -17,12 +17,12 @@ class MissingFormConfigsComponent {
|
|
|
17
17
|
this.showAllErrors = false;
|
|
18
18
|
}
|
|
19
19
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MissingFormConfigsComponent, deps: [{ token: FormsStoreService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: MissingFormConfigsComponent, isStandalone: true, selector: "app-missing-form-configs", ngImport: i0, template: "@if (hideDetails) {\r\n<button \r\nmatTooltip=\"Click to view form configuration issues and validation errors\"\r\nstyle=\"margin: 16px;\" (click)=\"hideDetails = false\" mat-fab color=\"warn\" aria-label=\"Error icon\">\r\n <mat-icon>error</mat-icon>\r\n</button>\r\n}@else {\r\n<div style=\"margin: 8px;position:relative\" class=\"content \">\r\n <mat-toolbar color=\"warn\">\r\n <button (click)=\" hideDetails = true\" mat-icon-button>\r\n <mat-icon>\r\n close\r\n </mat-icon>\r\n </button>\r\n Missing configurations:\r\n <span class=\"spacer\"></span>\r\n <button [matTooltip]=\"showAllErrors?'Hide all errors':'Show all errors'\"\r\n (click)=\"showAllErrors = !showAllErrors\" mat-icon-button>\r\n\r\n <mat-icon>\r\n unfold_more\r\n </mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n <section style=\"padding: 16px;\" >\r\n <h5>\r\n <strong>\r\n Overall form issues:\r\n </strong>\r\n </h5>\r\n <ul>\r\n @for (issue of (missingConfigs$|async);track issue) {\r\n <li>\r\n {{issue}}\r\n </li>\r\n }\r\n </ul>\r\n\r\n @if(showAllErrors){\r\n <h5>\r\n <strong>\r\n\r\n Form validationErrors :\r\n\r\n </strong>\r\n\r\n\r\n </h5>\r\n <ul>\r\n @for (error of errors$|async; track error) {\r\n\r\n <li>\r\n\r\n {{error}}\r\n\r\n </li>\r\n\r\n }\r\n </ul>\r\n }\r\n\r\n\r\n\r\n\r\n\r\n </section>\r\n\r\n</div>\r\n}", styles: [".content{width:400px;background:var(--mat-
|
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: MissingFormConfigsComponent, isStandalone: true, selector: "app-missing-form-configs", ngImport: i0, template: "@if (hideDetails) {\r\n<button \r\nmatTooltip=\"Click to view form configuration issues and validation errors\"\r\nstyle=\"margin: 16px;\" (click)=\"hideDetails = false\" mat-fab color=\"warn\" aria-label=\"Error icon\">\r\n <mat-icon>error</mat-icon>\r\n</button>\r\n}@else {\r\n<div style=\"margin: 8px;position:relative\" class=\"content \">\r\n <mat-toolbar color=\"warn\">\r\n <button (click)=\" hideDetails = true\" mat-icon-button>\r\n <mat-icon>\r\n close\r\n </mat-icon>\r\n </button>\r\n Missing configurations:\r\n <span class=\"spacer\"></span>\r\n <button [matTooltip]=\"showAllErrors?'Hide all errors':'Show all errors'\"\r\n (click)=\"showAllErrors = !showAllErrors\" mat-icon-button>\r\n\r\n <mat-icon>\r\n unfold_more\r\n </mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n <section style=\"padding: 16px;\" >\r\n <h5>\r\n <strong>\r\n Overall form issues:\r\n </strong>\r\n </h5>\r\n <ul>\r\n @for (issue of (missingConfigs$|async);track issue) {\r\n <li>\r\n {{issue}}\r\n </li>\r\n }\r\n </ul>\r\n\r\n @if(showAllErrors){\r\n <h5>\r\n <strong>\r\n\r\n Form validationErrors :\r\n\r\n </strong>\r\n\r\n\r\n </h5>\r\n <ul>\r\n @for (error of errors$|async; track error) {\r\n\r\n <li>\r\n\r\n {{error}}\r\n\r\n </li>\r\n\r\n }\r\n </ul>\r\n }\r\n\r\n\r\n\r\n\r\n\r\n </section>\r\n\r\n</div>\r\n}", styles: [".content{width:400px;background:var(--mat-sys-surface-container, var(--mat-app-surface));border:solid var(--mat-form-field-error-text-color, var(--mat-app-error)) 1px}ul{margin-top:0}h5{padding-left:16px;padding-right:16px;padding-top:8px}\n"], dependencies: [{ kind: "ngmodule", type: MatModulesModule }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i2.MatFabButton, selector: "button[mat-fab]", inputs: ["extended"], exportAs: ["matButton"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i9.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i8.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }] }); }
|
|
21
21
|
}
|
|
22
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MissingFormConfigsComponent, decorators: [{
|
|
23
23
|
type: Component,
|
|
24
|
-
args: [{ selector: 'app-missing-form-configs', standalone: true, imports: [MatModulesModule, CommonModule], template: "@if (hideDetails) {\r\n<button \r\nmatTooltip=\"Click to view form configuration issues and validation errors\"\r\nstyle=\"margin: 16px;\" (click)=\"hideDetails = false\" mat-fab color=\"warn\" aria-label=\"Error icon\">\r\n <mat-icon>error</mat-icon>\r\n</button>\r\n}@else {\r\n<div style=\"margin: 8px;position:relative\" class=\"content \">\r\n <mat-toolbar color=\"warn\">\r\n <button (click)=\" hideDetails = true\" mat-icon-button>\r\n <mat-icon>\r\n close\r\n </mat-icon>\r\n </button>\r\n Missing configurations:\r\n <span class=\"spacer\"></span>\r\n <button [matTooltip]=\"showAllErrors?'Hide all errors':'Show all errors'\"\r\n (click)=\"showAllErrors = !showAllErrors\" mat-icon-button>\r\n\r\n <mat-icon>\r\n unfold_more\r\n </mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n <section style=\"padding: 16px;\" >\r\n <h5>\r\n <strong>\r\n Overall form issues:\r\n </strong>\r\n </h5>\r\n <ul>\r\n @for (issue of (missingConfigs$|async);track issue) {\r\n <li>\r\n {{issue}}\r\n </li>\r\n }\r\n </ul>\r\n\r\n @if(showAllErrors){\r\n <h5>\r\n <strong>\r\n\r\n Form validationErrors :\r\n\r\n </strong>\r\n\r\n\r\n </h5>\r\n <ul>\r\n @for (error of errors$|async; track error) {\r\n\r\n <li>\r\n\r\n {{error}}\r\n\r\n </li>\r\n\r\n }\r\n </ul>\r\n }\r\n\r\n\r\n\r\n\r\n\r\n </section>\r\n\r\n</div>\r\n}", styles: [".content{width:400px;background:var(--mat-
|
|
24
|
+
args: [{ selector: 'app-missing-form-configs', standalone: true, imports: [MatModulesModule, CommonModule], template: "@if (hideDetails) {\r\n<button \r\nmatTooltip=\"Click to view form configuration issues and validation errors\"\r\nstyle=\"margin: 16px;\" (click)=\"hideDetails = false\" mat-fab color=\"warn\" aria-label=\"Error icon\">\r\n <mat-icon>error</mat-icon>\r\n</button>\r\n}@else {\r\n<div style=\"margin: 8px;position:relative\" class=\"content \">\r\n <mat-toolbar color=\"warn\">\r\n <button (click)=\" hideDetails = true\" mat-icon-button>\r\n <mat-icon>\r\n close\r\n </mat-icon>\r\n </button>\r\n Missing configurations:\r\n <span class=\"spacer\"></span>\r\n <button [matTooltip]=\"showAllErrors?'Hide all errors':'Show all errors'\"\r\n (click)=\"showAllErrors = !showAllErrors\" mat-icon-button>\r\n\r\n <mat-icon>\r\n unfold_more\r\n </mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n <section style=\"padding: 16px;\" >\r\n <h5>\r\n <strong>\r\n Overall form issues:\r\n </strong>\r\n </h5>\r\n <ul>\r\n @for (issue of (missingConfigs$|async);track issue) {\r\n <li>\r\n {{issue}}\r\n </li>\r\n }\r\n </ul>\r\n\r\n @if(showAllErrors){\r\n <h5>\r\n <strong>\r\n\r\n Form validationErrors :\r\n\r\n </strong>\r\n\r\n\r\n </h5>\r\n <ul>\r\n @for (error of errors$|async; track error) {\r\n\r\n <li>\r\n\r\n {{error}}\r\n\r\n </li>\r\n\r\n }\r\n </ul>\r\n }\r\n\r\n\r\n\r\n\r\n\r\n </section>\r\n\r\n</div>\r\n}", styles: [".content{width:400px;background:var(--mat-sys-surface-container, var(--mat-app-surface));border:solid var(--mat-form-field-error-text-color, var(--mat-app-error)) 1px}ul{margin-top:0}h5{padding-left:16px;padding-right:16px;padding-top:8px}\n"] }]
|
|
25
25
|
}], ctorParameters: () => [{ type: FormsStoreService }] });
|
|
26
26
|
|
|
27
27
|
export { MissingFormConfigsComponent };
|
|
28
|
-
//# sourceMappingURL=ngx-t-forms-missing-form-configs.component-
|
|
28
|
+
//# sourceMappingURL=ngx-t-forms-missing-form-configs.component-DO3QfrLp.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-t-forms-missing-form-configs.component-
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-missing-form-configs.component-DO3QfrLp.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/missing-form-configs/missing-form-configs.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/missing-form-configs/missing-form-configs.component.html"],"sourcesContent":["import { Component } from '@angular/core';\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\n\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'app-missing-form-configs',\r\n standalone: true,\r\n imports: [MatModulesModule, CommonModule],\r\n templateUrl: './missing-form-configs.component.html',\r\n styleUrl: './missing-form-configs.component.scss'\r\n})\r\nexport class MissingFormConfigsComponent {\r\n errors$ = this.store.formBuilderSelectors.formValidationErrorsMessages$\r\n missingConfigs$ = this.store.formBuilderSelectors.missingConfig$\r\n constructor(private store: FormsStoreService) { }\r\n hideDetails: boolean = true;\r\n showAllErrors: boolean = false\r\n\r\n}\r\n","@if (hideDetails) {\r\n<button \r\nmatTooltip=\"Click to view form configuration issues and validation errors\"\r\nstyle=\"margin: 16px;\" (click)=\"hideDetails = false\" mat-fab color=\"warn\" aria-label=\"Error icon\">\r\n <mat-icon>error</mat-icon>\r\n</button>\r\n}@else {\r\n<div style=\"margin: 8px;position:relative\" class=\"content \">\r\n <mat-toolbar color=\"warn\">\r\n <button (click)=\" hideDetails = true\" mat-icon-button>\r\n <mat-icon>\r\n close\r\n </mat-icon>\r\n </button>\r\n Missing configurations:\r\n <span class=\"spacer\"></span>\r\n <button [matTooltip]=\"showAllErrors?'Hide all errors':'Show all errors'\"\r\n (click)=\"showAllErrors = !showAllErrors\" mat-icon-button>\r\n\r\n <mat-icon>\r\n unfold_more\r\n </mat-icon>\r\n </button>\r\n </mat-toolbar>\r\n <section style=\"padding: 16px;\" >\r\n <h5>\r\n <strong>\r\n Overall form issues:\r\n </strong>\r\n </h5>\r\n <ul>\r\n @for (issue of (missingConfigs$|async);track issue) {\r\n <li>\r\n {{issue}}\r\n </li>\r\n }\r\n </ul>\r\n\r\n @if(showAllErrors){\r\n <h5>\r\n <strong>\r\n\r\n Form validationErrors :\r\n\r\n </strong>\r\n\r\n\r\n </h5>\r\n <ul>\r\n @for (error of errors$|async; track error) {\r\n\r\n <li>\r\n\r\n {{error}}\r\n\r\n </li>\r\n\r\n }\r\n </ul>\r\n }\r\n\r\n\r\n\r\n\r\n\r\n </section>\r\n\r\n</div>\r\n}"],"names":["i1.FormsStoreService","i6"],"mappings":";;;;;;;;;;MAea,2BAA2B,CAAA;AAGtC,IAAA,WAAA,CAAoB,KAAwB,EAAA;QAAxB,IAAK,CAAA,KAAA,GAAL,KAAK;QAFzB,IAAO,CAAA,OAAA,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,6BAA6B;QACvE,IAAe,CAAA,eAAA,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,cAAc;QAEhE,IAAW,CAAA,WAAA,GAAY,IAAI;QAC3B,IAAa,CAAA,aAAA,GAAY,KAAK;;8GALnB,2BAA2B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,iBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,2BAA2B,ECfxC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,urDAoEC,EDzDW,MAAA,EAAA,CAAA,mPAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,gBAAgB,0yBAAE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAI7B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAPvC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,0BAA0B,cACxB,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,EAAE,YAAY,CAAC,EAAA,QAAA,EAAA,urDAAA,EAAA,MAAA,EAAA,CAAA,mPAAA,CAAA,EAAA;;;;;"}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import * as i2 from '@angular/common';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { inject, EventEmitter, Output, Input, HostBinding, Optional, Self, Component } from '@angular/core';
|
|
5
|
+
import * as i1 from '@angular/forms';
|
|
6
|
+
import { Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
7
|
+
import { Subject, BehaviorSubject, take, tap, catchError, takeUntil } from 'rxjs';
|
|
8
|
+
import { M as MatModulesModule } from './ngx-t-forms-ngx-t-forms-fgu62eR1.mjs';
|
|
9
|
+
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
10
|
+
import { v4 } from 'uuid';
|
|
11
|
+
import { LiveAnnouncer } from '@angular/cdk/a11y';
|
|
12
|
+
import * as i3 from '@angular/material/autocomplete';
|
|
13
|
+
import * as i2$1 from '@angular/material/button';
|
|
14
|
+
import * as i3$1 from '@angular/material/card';
|
|
15
|
+
import * as i4 from '@angular/material/chips';
|
|
16
|
+
import * as i6 from '@angular/material/icon';
|
|
17
|
+
import * as i3$2 from '@angular/material/select';
|
|
18
|
+
import * as i9 from '@angular/material/slide-toggle';
|
|
19
|
+
import * as i9$1 from '@angular/material/toolbar';
|
|
20
|
+
import * as i12 from '@angular/material/input';
|
|
21
|
+
|
|
22
|
+
class MscoaSegmentConfigComponent {
|
|
23
|
+
static { this.nextId = 0; }
|
|
24
|
+
constructor(fb, ngControl, _elementRef) {
|
|
25
|
+
this.fb = fb;
|
|
26
|
+
this.ngControl = ngControl;
|
|
27
|
+
this._elementRef = _elementRef;
|
|
28
|
+
this.announcer = inject(LiveAnnouncer);
|
|
29
|
+
this.stateChanges = new Subject();
|
|
30
|
+
this.id = `app-mscoa-segment-config'-${MscoaSegmentConfigComponent.nextId++}`;
|
|
31
|
+
this.placeholder = '';
|
|
32
|
+
this.focused = false;
|
|
33
|
+
this.required = false;
|
|
34
|
+
this.disabled = false;
|
|
35
|
+
this.touched = false;
|
|
36
|
+
this.onTouched = () => { };
|
|
37
|
+
this.errors = [];
|
|
38
|
+
this.dataValue = undefined;
|
|
39
|
+
this._showAllSegments = false;
|
|
40
|
+
this.valueChanged = new EventEmitter();
|
|
41
|
+
this._value = new BehaviorSubject([]);
|
|
42
|
+
this.destroy$ = new Subject();
|
|
43
|
+
this.error$ = new BehaviorSubject(null);
|
|
44
|
+
this.editingIndex = null;
|
|
45
|
+
this.isAddingNew = false;
|
|
46
|
+
this.getMscoaError = undefined;
|
|
47
|
+
this.segmentForm = this.createSegmentForm();
|
|
48
|
+
}
|
|
49
|
+
get empty() {
|
|
50
|
+
return !this.value;
|
|
51
|
+
}
|
|
52
|
+
get shouldLabelFloat() {
|
|
53
|
+
return this.focused || !this.empty;
|
|
54
|
+
}
|
|
55
|
+
get errorState() {
|
|
56
|
+
const hasError = !!this.ngControl?.control?.errors || (this.errors || []).length > 0 && this.touched;
|
|
57
|
+
return !this.value && !!this.required || hasError;
|
|
58
|
+
}
|
|
59
|
+
setDescribedByIds(ids) {
|
|
60
|
+
// Ensure the component view is initialized
|
|
61
|
+
if (this._elementRef && this._elementRef.nativeElement) {
|
|
62
|
+
const controlElement = this._elementRef.nativeElement.querySelector('.app-mscoa-segment-config');
|
|
63
|
+
// Check if the controlElement exists before attempting to set its attribute
|
|
64
|
+
if (controlElement) {
|
|
65
|
+
controlElement.setAttribute('aria-describedby', ids.join(' '));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
onContainerClick(event) {
|
|
70
|
+
this.markAsTouched();
|
|
71
|
+
this.stateChanges.next();
|
|
72
|
+
}
|
|
73
|
+
markAsTouched() {
|
|
74
|
+
console.log('markAsTouched');
|
|
75
|
+
if (!this.touched) {
|
|
76
|
+
this.onTouched();
|
|
77
|
+
this.touched = true;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
set value(val) {
|
|
81
|
+
this._value.next(val || []);
|
|
82
|
+
}
|
|
83
|
+
get value() {
|
|
84
|
+
return this._value.value;
|
|
85
|
+
}
|
|
86
|
+
set showAllSegments(val) {
|
|
87
|
+
if (!!val) {
|
|
88
|
+
this.checkShowAllSegments();
|
|
89
|
+
}
|
|
90
|
+
this._showAllSegments = !!val;
|
|
91
|
+
}
|
|
92
|
+
get showAllSegments() {
|
|
93
|
+
return this._showAllSegments;
|
|
94
|
+
}
|
|
95
|
+
set getMscoaTree(options$) {
|
|
96
|
+
if (!!options$ && this._getMscoaTree === undefined) {
|
|
97
|
+
this.getMscoaError = undefined;
|
|
98
|
+
this._getMscoaTree = options$;
|
|
99
|
+
this.loadMscoa();
|
|
100
|
+
}
|
|
101
|
+
else if (!options$) {
|
|
102
|
+
this.getMscoaError = 'No loader provided';
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
ngOnInit() {
|
|
106
|
+
this.listenToFormChanges();
|
|
107
|
+
}
|
|
108
|
+
ngOnDestroy() {
|
|
109
|
+
this.destroy$.next();
|
|
110
|
+
this.destroy$.complete();
|
|
111
|
+
}
|
|
112
|
+
loadMscoa() {
|
|
113
|
+
this._getMscoaTree?.pipe(take(1), tap((options) => {
|
|
114
|
+
this.mscoaTree = options;
|
|
115
|
+
this.treeSegments = options?.accountTreeKeys?.map((treeKey) => ({
|
|
116
|
+
id: v4(),
|
|
117
|
+
segment: treeKey,
|
|
118
|
+
singleSelect: true,
|
|
119
|
+
additionalAccounts: [],
|
|
120
|
+
segmentExtension: false,
|
|
121
|
+
label: this.toTitleCase(treeKey),
|
|
122
|
+
readOnly: this.value.find((v) => v.segment === treeKey)?.readOnly || false,
|
|
123
|
+
})) || [];
|
|
124
|
+
}), catchError((error) => {
|
|
125
|
+
this.getMscoaError = 'Failed to fetch mscoa tree';
|
|
126
|
+
console.error('Error while fetching SCOA tree:', error);
|
|
127
|
+
return [null];
|
|
128
|
+
})).subscribe();
|
|
129
|
+
}
|
|
130
|
+
createSegmentForm(segment = {
|
|
131
|
+
segment: '', label: '',
|
|
132
|
+
id: v4(),
|
|
133
|
+
singleSelect: true,
|
|
134
|
+
segmentExtension: false,
|
|
135
|
+
additionalAccounts: [],
|
|
136
|
+
readOnly: false
|
|
137
|
+
}) {
|
|
138
|
+
return this.fb.group({
|
|
139
|
+
segment: [segment.segment, Validators.required],
|
|
140
|
+
segmentExtension: [segment.segmentExtension, Validators.required],
|
|
141
|
+
readOnly: [segment.readOnly, Validators.required],
|
|
142
|
+
additionalAccounts: [segment.additionalAccounts || [],],
|
|
143
|
+
label: [segment.label, Validators.required],
|
|
144
|
+
singleSelect: [segment.singleSelect, Validators.required]
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
listenToFormChanges() {
|
|
148
|
+
this.segmentForm.valueChanges
|
|
149
|
+
.pipe(takeUntil(this.destroy$))
|
|
150
|
+
.subscribe((v) => console.log(v));
|
|
151
|
+
}
|
|
152
|
+
startAddNew() {
|
|
153
|
+
this.isAddingNew = true;
|
|
154
|
+
this.editingIndex = null;
|
|
155
|
+
this.segmentForm = this.createSegmentForm();
|
|
156
|
+
}
|
|
157
|
+
startEdit(index) {
|
|
158
|
+
this.editingIndex = index;
|
|
159
|
+
this.isAddingNew = false;
|
|
160
|
+
this.segmentForm = this.createSegmentForm(this.value[index]);
|
|
161
|
+
}
|
|
162
|
+
cancelEdit() {
|
|
163
|
+
this.editingIndex = null;
|
|
164
|
+
this.isAddingNew = false;
|
|
165
|
+
this.segmentForm.reset();
|
|
166
|
+
}
|
|
167
|
+
saveSegment() {
|
|
168
|
+
if (this.segmentForm.valid) {
|
|
169
|
+
const newSegment = ({
|
|
170
|
+
id: this.segmentForm.value.id || v4(),
|
|
171
|
+
segment: this.segmentForm.value.segment,
|
|
172
|
+
customSegment: !!this.segmentForm.value.segmentExtension ? this.segmentForm.value.label?.toLocaleUpperCase() : undefined,
|
|
173
|
+
segmentExtension: this.segmentForm.value.segmentExtension,
|
|
174
|
+
additionalAccounts: this.segmentForm.value.additionalAccounts,
|
|
175
|
+
label: this.toTitleCase(this.segmentForm.value.label),
|
|
176
|
+
singleSelect: this.segmentForm.value.singleSelect,
|
|
177
|
+
readOnly: this.segmentForm.value.readOnly
|
|
178
|
+
});
|
|
179
|
+
const updatedValue = [...this.value];
|
|
180
|
+
if (this.isAddingNew) {
|
|
181
|
+
updatedValue.push(newSegment);
|
|
182
|
+
}
|
|
183
|
+
else if (this.editingIndex !== null) {
|
|
184
|
+
updatedValue[this.editingIndex] = newSegment;
|
|
185
|
+
}
|
|
186
|
+
this._value.next(updatedValue);
|
|
187
|
+
this.valueChanged.emit(updatedValue);
|
|
188
|
+
this.cancelEdit();
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
readOnly(event) {
|
|
192
|
+
this.segmentForm.patchValue({ readOnly: event.checked });
|
|
193
|
+
}
|
|
194
|
+
singleSelectChange(event) {
|
|
195
|
+
this.segmentForm.patchValue({ singleSelect: event.checked });
|
|
196
|
+
console.error('singleSelectChange', this.segmentForm.value);
|
|
197
|
+
}
|
|
198
|
+
removeSegment(index) {
|
|
199
|
+
const updatedValue = this.value.filter((_, i) => i !== index);
|
|
200
|
+
this._value.next(updatedValue);
|
|
201
|
+
this.valueChanged.emit(updatedValue);
|
|
202
|
+
}
|
|
203
|
+
toTitleCase(str) {
|
|
204
|
+
return str.replace(/\w\S*/g, (txt) => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());
|
|
205
|
+
}
|
|
206
|
+
alreadyExists(segment) {
|
|
207
|
+
if (this.segmentForm.value.segmentExtension)
|
|
208
|
+
return false;
|
|
209
|
+
return this.value.find((v) => v.segment === segment.segment);
|
|
210
|
+
}
|
|
211
|
+
checkShowAllSegments() {
|
|
212
|
+
if (!this._getMscoaTree || !this.treeSegments)
|
|
213
|
+
return;
|
|
214
|
+
const updatedValue = this.treeSegments.map(segment => ({
|
|
215
|
+
...segment,
|
|
216
|
+
...(this.value.find(v => v.segment === segment.segment) || {})
|
|
217
|
+
}));
|
|
218
|
+
if (JSON.stringify(updatedValue) !== JSON.stringify(this.value)) {
|
|
219
|
+
this.valueChanged.emit([{}]);
|
|
220
|
+
setTimeout(() => {
|
|
221
|
+
this.valueChanged.emit(updatedValue);
|
|
222
|
+
}, 0);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
selectSegment($event) {
|
|
226
|
+
this.segmentForm.patchValue({ segment: $event.value });
|
|
227
|
+
if (!this.segmentForm.value.segmentExtension) {
|
|
228
|
+
this.segmentForm.patchValue({ label: this.toTitleCase($event.value) });
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
multiLevelSelectChange(event) {
|
|
232
|
+
this.segmentForm.patchValue({ segmentExtension: event.checked });
|
|
233
|
+
}
|
|
234
|
+
get extensionAccountsForSegments() {
|
|
235
|
+
console.error('get extensionAccountsForSegments', this.dataValue?.mscoaConfig?.extensionAccountsForSegments);
|
|
236
|
+
return this.dataValue?.mscoaConfig?.extensionAccountsForSegments || [];
|
|
237
|
+
}
|
|
238
|
+
additionalAccountsChanged(event) {
|
|
239
|
+
// Force update by creating a new array
|
|
240
|
+
const newAdditionalAccounts = [...event.value];
|
|
241
|
+
this.segmentForm.patchValue({
|
|
242
|
+
additionalAccounts: newAdditionalAccounts
|
|
243
|
+
}, { emitEvent: true });
|
|
244
|
+
// Trigger state changes
|
|
245
|
+
this.stateChanges.next();
|
|
246
|
+
this.markAsTouched();
|
|
247
|
+
}
|
|
248
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MscoaSegmentConfigComponent, deps: [{ token: i1.FormBuilder }, { token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
249
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: MscoaSegmentConfigComponent, isStandalone: true, selector: "app-mscoa-segment-config", inputs: { disabled: "disabled", errors: "errors", dataValue: "dataValue", value: "value", showAllSegments: "showAllSegments", getMscoaTree: "getMscoaTree" }, outputs: { valueChanged: "valueChanged" }, host: { properties: { "id": "this.id" } }, providers: [{ provide: MatFormFieldControl, useExisting: MscoaSegmentConfigComponent }], ngImport: i0, template: "<div *ngIf=\"(value||[]).length>0\" class=\"tree-instructions\">\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\n <span>SCOA Segments Configuration</span>\n</div>\n\n<mat-chip-listbox [disabled]=\"disabled\" *ngIf=\"(value?.length || 0) > 0; else noSegments\" aria-label=\"Fish selection\">\n @for (segment of value||[]; track segment.segment) {\n <mat-chip-option (removed)=\"removeSegment($index)\" (click)=\"startEdit($index)\" color=\"accent\"\n [value]=\"segment?.segment\" [selected]=\"this.editingIndex === $index\">\n <div style=\" \n display: flex;\n align-items: center;\n gap: 1px;\">\n <span style=\"margin-right: 2px;\">\n {{ segment.label }}\n </span>\n <mat-icon class=\"icons\">\n {{ segment.singleSelect ? 'done' : ' done_all' }}\n </mat-icon>\n <mat-icon class=\"icons\">\n\n {{ segment.readOnly ? 'edit_off' : 'edit' }}\n </mat-icon>\n </div>\n\n @if ( showAllSegments === false) {\n <button matChipRemove [attr.aria-label]=\"'remove' \">\n <mat-icon>cancel</mat-icon>\n </button>\n }\n\n </mat-chip-option>\n }\n</mat-chip-listbox>\n\n\n\n\n\n<ng-template #noSegments>\n <div class=\"tree-instructions\">\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\n <span>No segment configuration available. Start by adding a segment below.</span>\n </div>\n</ng-template>\n\n<mat-toolbar *ngIf=\"!isAddingNew && editingIndex === null && showAllSegments === false\">\n <button style=\"width:100%\" \n [disabled]=\"disabled\"\n mat-stroked-button (click)=\"startAddNew()\">\n Add New Segment <mat-icon>add</mat-icon>\n </button>\n</mat-toolbar>\n\n@if (!!getMscoaError) {\n<div class=\"tree-instructions\">\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\n <span>\n {{ getMscoaError }}\n </span>\n</div>\n}\n<mat-card *ngIf=\"isAddingNew || editingIndex !== null\">\n <mat-card-header>\n <mat-card-subtitle>\n {{ isAddingNew ? 'Add a new' : 'Update' }} Segment\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <form [formGroup]=\"segmentForm\" (ngSubmit)=\"saveSegment()\">\n <mat-toolbar class=\"segment-toolbar\">\n <mat-slide-toggle \n (change)=\"multiLevelSelectChange($event)\" \n [checked]=\"segmentForm.value.segmentExtension\">\n Enable Multi-Level Segmentation\n </mat-slide-toggle>\n \n </mat-toolbar>\n <mat-hint class=\"segment-hint\">\n This allows sub-classifications within this segment for more detailed accounting hierarchies\n </mat-hint>\n <mat-form-field subscriptSizing=\"dynamic\" floatLabel=\"always\" appearance=\"outline\">\n <mat-label>Segment</mat-label>\n <mat-select (selectionChange)=\"selectSegment($event)\" matNativeControl \n formControlName=\"segment\" [value]=\"value\" placeholder=\"Select segment\">\n @for ( segment of treeSegments; track segment.segment) {\n <mat-option [disabled]=\"alreadyExists(segment)\" [value]=\"segment.segment\"> \n {{ segment.label }}\n </mat-option>\n }\n </mat-select>\n \n </mat-form-field>\n <mat-hint class=\"segment-hint\">\n Select an account segment type from your chart of accounts\n </mat-hint>\n \n <mat-form-field subscriptSizing=\"dynamic\" floatLabel=\"always\" appearance=\"outline\">\n <mat-label>Label</mat-label>\n <input matInput formControlName=\"label\"\n [disabled]=\"!this.segmentForm.value.segmentExtension\"\n placeholder=\"Enter label\">\n <mat-hint>Provide a descriptive name for this segment (e.g., 'Department', 'Project', 'Cost Center')</mat-hint>\n </mat-form-field>\n \n <mat-toolbar class=\"segment-toolbar\">\n <mat-slide-toggle (change)=\"singleSelectChange($event)\" [checked]=\"segmentForm.value.singleSelect\">\n Single Value Selection\n </mat-slide-toggle>\n\n </mat-toolbar>\n <mat-hint class=\"segment-hint\">\n When enabled, transactions can only be assigned to one value within this segment. When disabled, transactions can be split across multiple values.\n </mat-hint>\n <mat-toolbar class=\"segment-toolbar\">\n <mat-slide-toggle (change)=\"readOnly($event)\" [checked]=\"segmentForm.value.readOnly\">\n Read-Only Segment\n </mat-slide-toggle>\n \n </mat-toolbar>\n <mat-hint class=\"segment-hint\">\n Prevents users from modifying segment values after initial setup. Use for regulatory or policy-controlled segments.\n </mat-hint>\n <mat-form-field subscriptSizing=\"dynamic\" floatLabel=\"always\" appearance=\"outline\">\n <mat-label>\n Additional accounts\n </mat-label>\n \n \n <mat-select (selectionChange)=\"additionalAccountsChanged($event)\" matNativeControl \n [value]=\"segmentForm.value.additionalAccounts\"\n formControlName=\"additionalAccounts\" multiple placeholder=\"Select counter accounts\">\n @for (ext of extensionAccountsForSegments; track ext) {\n <mat-option [value]=\"ext\">{{ext}}</mat-option>\n }\n </mat-select>\n </mat-form-field>\n \n <mat-hint class=\"segment-hint\">\n This allows you to add additional accounts to this segment. For example, VAT accounts, tax accounts, or any other\n </mat-hint>\n <br>\n <mat-card-actions>\n <button mat-flat-button color=\"primary\" type=\"submit\" [disabled]=\"!segmentForm.valid\">Save</button>\n <button mat-button (click)=\"cancelEdit()\">Cancel</button>\n </mat-card-actions>\n </form>\n </mat-card-content>\n</mat-card>\n\n<span color=\"danger\" *ngIf=\"error$ | async as error\">\n <p>{{ error }}</p>\n</span>", styles: [".info-icon{min-width:38px}.tree-instructions{display:flex;align-items:center;gap:8px;padding:12px;background:azure;border-radius:4px;margin-bottom:16px}.json-error{background:inherit;color:#e74c3c}mat-form-field{width:100%;margin-bottom:8px;background:azure}.segment-toolbar{background:azure}.icons{font-size:14px;height:14px;width:14px}.segment-hint{display:block;padding:0 16px;margin-bottom:8px;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}mat-card{background:var(--mat-sys-surface-container, var(--mat-sys-surface))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: MatModulesModule }, { kind: "component", type: i3.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i3$1.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i3$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i3$1.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "component", type: i4.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i4.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "directive", type: i4.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i3$2.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i9.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "component", type: i9$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i12.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: FormsModule }] }); }
|
|
250
|
+
}
|
|
251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: MscoaSegmentConfigComponent, decorators: [{
|
|
252
|
+
type: Component,
|
|
253
|
+
args: [{ selector: 'app-mscoa-segment-config', standalone: true, imports: [
|
|
254
|
+
CommonModule,
|
|
255
|
+
MatModulesModule,
|
|
256
|
+
ReactiveFormsModule,
|
|
257
|
+
FormsModule
|
|
258
|
+
], providers: [{ provide: MatFormFieldControl, useExisting: MscoaSegmentConfigComponent }], template: "<div *ngIf=\"(value||[]).length>0\" class=\"tree-instructions\">\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\n <span>SCOA Segments Configuration</span>\n</div>\n\n<mat-chip-listbox [disabled]=\"disabled\" *ngIf=\"(value?.length || 0) > 0; else noSegments\" aria-label=\"Fish selection\">\n @for (segment of value||[]; track segment.segment) {\n <mat-chip-option (removed)=\"removeSegment($index)\" (click)=\"startEdit($index)\" color=\"accent\"\n [value]=\"segment?.segment\" [selected]=\"this.editingIndex === $index\">\n <div style=\" \n display: flex;\n align-items: center;\n gap: 1px;\">\n <span style=\"margin-right: 2px;\">\n {{ segment.label }}\n </span>\n <mat-icon class=\"icons\">\n {{ segment.singleSelect ? 'done' : ' done_all' }}\n </mat-icon>\n <mat-icon class=\"icons\">\n\n {{ segment.readOnly ? 'edit_off' : 'edit' }}\n </mat-icon>\n </div>\n\n @if ( showAllSegments === false) {\n <button matChipRemove [attr.aria-label]=\"'remove' \">\n <mat-icon>cancel</mat-icon>\n </button>\n }\n\n </mat-chip-option>\n }\n</mat-chip-listbox>\n\n\n\n\n\n<ng-template #noSegments>\n <div class=\"tree-instructions\">\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\n <span>No segment configuration available. Start by adding a segment below.</span>\n </div>\n</ng-template>\n\n<mat-toolbar *ngIf=\"!isAddingNew && editingIndex === null && showAllSegments === false\">\n <button style=\"width:100%\" \n [disabled]=\"disabled\"\n mat-stroked-button (click)=\"startAddNew()\">\n Add New Segment <mat-icon>add</mat-icon>\n </button>\n</mat-toolbar>\n\n@if (!!getMscoaError) {\n<div class=\"tree-instructions\">\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\n <span>\n {{ getMscoaError }}\n </span>\n</div>\n}\n<mat-card *ngIf=\"isAddingNew || editingIndex !== null\">\n <mat-card-header>\n <mat-card-subtitle>\n {{ isAddingNew ? 'Add a new' : 'Update' }} Segment\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <form [formGroup]=\"segmentForm\" (ngSubmit)=\"saveSegment()\">\n <mat-toolbar class=\"segment-toolbar\">\n <mat-slide-toggle \n (change)=\"multiLevelSelectChange($event)\" \n [checked]=\"segmentForm.value.segmentExtension\">\n Enable Multi-Level Segmentation\n </mat-slide-toggle>\n \n </mat-toolbar>\n <mat-hint class=\"segment-hint\">\n This allows sub-classifications within this segment for more detailed accounting hierarchies\n </mat-hint>\n <mat-form-field subscriptSizing=\"dynamic\" floatLabel=\"always\" appearance=\"outline\">\n <mat-label>Segment</mat-label>\n <mat-select (selectionChange)=\"selectSegment($event)\" matNativeControl \n formControlName=\"segment\" [value]=\"value\" placeholder=\"Select segment\">\n @for ( segment of treeSegments; track segment.segment) {\n <mat-option [disabled]=\"alreadyExists(segment)\" [value]=\"segment.segment\"> \n {{ segment.label }}\n </mat-option>\n }\n </mat-select>\n \n </mat-form-field>\n <mat-hint class=\"segment-hint\">\n Select an account segment type from your chart of accounts\n </mat-hint>\n \n <mat-form-field subscriptSizing=\"dynamic\" floatLabel=\"always\" appearance=\"outline\">\n <mat-label>Label</mat-label>\n <input matInput formControlName=\"label\"\n [disabled]=\"!this.segmentForm.value.segmentExtension\"\n placeholder=\"Enter label\">\n <mat-hint>Provide a descriptive name for this segment (e.g., 'Department', 'Project', 'Cost Center')</mat-hint>\n </mat-form-field>\n \n <mat-toolbar class=\"segment-toolbar\">\n <mat-slide-toggle (change)=\"singleSelectChange($event)\" [checked]=\"segmentForm.value.singleSelect\">\n Single Value Selection\n </mat-slide-toggle>\n\n </mat-toolbar>\n <mat-hint class=\"segment-hint\">\n When enabled, transactions can only be assigned to one value within this segment. When disabled, transactions can be split across multiple values.\n </mat-hint>\n <mat-toolbar class=\"segment-toolbar\">\n <mat-slide-toggle (change)=\"readOnly($event)\" [checked]=\"segmentForm.value.readOnly\">\n Read-Only Segment\n </mat-slide-toggle>\n \n </mat-toolbar>\n <mat-hint class=\"segment-hint\">\n Prevents users from modifying segment values after initial setup. Use for regulatory or policy-controlled segments.\n </mat-hint>\n <mat-form-field subscriptSizing=\"dynamic\" floatLabel=\"always\" appearance=\"outline\">\n <mat-label>\n Additional accounts\n </mat-label>\n \n \n <mat-select (selectionChange)=\"additionalAccountsChanged($event)\" matNativeControl \n [value]=\"segmentForm.value.additionalAccounts\"\n formControlName=\"additionalAccounts\" multiple placeholder=\"Select counter accounts\">\n @for (ext of extensionAccountsForSegments; track ext) {\n <mat-option [value]=\"ext\">{{ext}}</mat-option>\n }\n </mat-select>\n </mat-form-field>\n \n <mat-hint class=\"segment-hint\">\n This allows you to add additional accounts to this segment. For example, VAT accounts, tax accounts, or any other\n </mat-hint>\n <br>\n <mat-card-actions>\n <button mat-flat-button color=\"primary\" type=\"submit\" [disabled]=\"!segmentForm.valid\">Save</button>\n <button mat-button (click)=\"cancelEdit()\">Cancel</button>\n </mat-card-actions>\n </form>\n </mat-card-content>\n</mat-card>\n\n<span color=\"danger\" *ngIf=\"error$ | async as error\">\n <p>{{ error }}</p>\n</span>", styles: [".info-icon{min-width:38px}.tree-instructions{display:flex;align-items:center;gap:8px;padding:12px;background:azure;border-radius:4px;margin-bottom:16px}.json-error{background:inherit;color:#e74c3c}mat-form-field{width:100%;margin-bottom:8px;background:azure}.segment-toolbar{background:azure}.icons{font-size:14px;height:14px;width:14px}.segment-hint{display:block;padding:0 16px;margin-bottom:8px;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}mat-card{background:var(--mat-sys-surface-container, var(--mat-sys-surface))}\n"] }]
|
|
259
|
+
}], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i1.NgControl, decorators: [{
|
|
260
|
+
type: Optional
|
|
261
|
+
}, {
|
|
262
|
+
type: Self
|
|
263
|
+
}] }, { type: i0.ElementRef }], propDecorators: { id: [{
|
|
264
|
+
type: HostBinding
|
|
265
|
+
}], disabled: [{
|
|
266
|
+
type: Input
|
|
267
|
+
}], errors: [{
|
|
268
|
+
type: Input
|
|
269
|
+
}], dataValue: [{
|
|
270
|
+
type: Input
|
|
271
|
+
}], value: [{
|
|
272
|
+
type: Input
|
|
273
|
+
}], showAllSegments: [{
|
|
274
|
+
type: Input
|
|
275
|
+
}], getMscoaTree: [{
|
|
276
|
+
type: Input
|
|
277
|
+
}], valueChanged: [{
|
|
278
|
+
type: Output
|
|
279
|
+
}] } });
|
|
280
|
+
|
|
281
|
+
export { MscoaSegmentConfigComponent };
|
|
282
|
+
//# sourceMappingURL=ngx-t-forms-mscoa-segment-config.component-Bo-aEuAQ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-t-forms-mscoa-segment-config.component-Bo-aEuAQ.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/mscoa-segment-config/mscoa-segment-config.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/mscoa-segment-config/mscoa-segment-config.component.html"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { Component, ElementRef, EventEmitter, HostBinding, inject, Input, OnDestroy, OnInit, Optional, Output, Self } from '@angular/core';\r\nimport { FormGroup, FormBuilder, Validators, ReactiveFormsModule, NgControl, FormsModule } from '@angular/forms';\r\nimport { BehaviorSubject, catchError, Observable, Subject, take, takeUntil, tap } from 'rxjs';\r\n\r\nimport { MatModulesModule } from '../../../../shared/modules/mat-modules.module';\r\nimport { IGetTreeResponse, IIncludedSegmentConfig } from 'ngx-t-forms-types';\r\n\r\nimport { MatSlideToggleChange } from '@angular/material/slide-toggle';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { IConfigElementError } from '../../t-dynamic-data-edit.component';\r\nimport { MatSelectChange } from '@angular/material/select';\r\nimport { v4 as uuidv4 } from 'uuid';\r\n\r\nimport { LiveAnnouncer } from '@angular/cdk/a11y';\r\nimport { IScoaInput } from 'ngx-t-forms-types';\r\n@Component({\r\n selector: 'app-mscoa-segment-config',\r\n templateUrl: './mscoa-segment-config.component.html',\r\n styleUrls: ['./mscoa-segment-config.component.scss'],\r\n standalone: true,\r\n imports: [\r\n CommonModule,\r\n MatModulesModule,\r\n ReactiveFormsModule,\r\n FormsModule\r\n ],\r\n providers: [{ provide: MatFormFieldControl, useExisting: MscoaSegmentConfigComponent }],\r\n\r\n})\r\nexport class MscoaSegmentConfigComponent implements OnInit, OnDestroy, MatFormFieldControl<IIncludedSegmentConfig[] | undefined> {\r\n readonly announcer = inject(LiveAnnouncer);\r\n static nextId = 0;\r\n stateChanges = new Subject<void>();\r\n\r\n @HostBinding() id = `app-mscoa-segment-config'-${MscoaSegmentConfigComponent.nextId++}`;\r\n\r\n placeholder: string = ''\r\n constructor(\r\n private fb: FormBuilder,\r\n @Optional() @Self() public ngControl: NgControl, private _elementRef: ElementRef<HTMLElement>,\r\n ) {\r\n this.segmentForm = this.createSegmentForm();\r\n\r\n }\r\n\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 @Input() disabled: boolean = false;\r\n get 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-mscoa-segment-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\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\r\n @Input() errors: IConfigElementError[] | undefined = [];\r\n @Input() dataValue: IScoaInput | undefined = undefined;\r\n @Input() set value(val: IIncludedSegmentConfig[]) {\r\n this._value.next(val || []);\r\n }\r\n\r\n get value(): IIncludedSegmentConfig[] {\r\n return this._value.value;\r\n }\r\n _getMscoaTree: Observable<IGetTreeResponse | undefined> | undefined;\r\n _showAllSegments: boolean = false;\r\n @Input() set showAllSegments(val: boolean) {\r\n\r\n if (!!val) {\r\n this.checkShowAllSegments()\r\n }\r\n this._showAllSegments = !!val\r\n\r\n }\r\n get showAllSegments() {\r\n return this._showAllSegments\r\n }\r\n\r\n @Input() set getMscoaTree(options$: Observable<IGetTreeResponse | undefined>) {\r\n if (!!options$ && this._getMscoaTree === undefined) {\r\n this.getMscoaError = undefined\r\n this._getMscoaTree = options$\r\n\r\n this.loadMscoa()\r\n } else if (!options$) {\r\n this.getMscoaError = 'No loader provided'\r\n\r\n }\r\n }\r\n @Output() valueChanged = new EventEmitter<IIncludedSegmentConfig[]>();\r\n private _value = new BehaviorSubject<IIncludedSegmentConfig[]>([]);\r\n private destroy$ = new Subject<void>();\r\n mscoaTree!: IGetTreeResponse | undefined;\r\n treeSegments!: IIncludedSegmentConfig[];\r\n error$ = new BehaviorSubject<string | null>(null);\r\n\r\n segmentForm: FormGroup;\r\n editingIndex: number | null = null;\r\n isAddingNew = false;\r\n\r\n\r\n\r\n ngOnInit() {\r\n this.listenToFormChanges();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.destroy$.next();\r\n this.destroy$.complete();\r\n }\r\n getMscoaError: string | undefined = undefined\r\n private loadMscoa() {\r\n\r\n this._getMscoaTree?.pipe(\r\n take(1),\r\n tap((options) => {\r\n this.mscoaTree = options;\r\n this.treeSegments = options?.accountTreeKeys?.map((treeKey) => ({\r\n id: uuidv4(),\r\n segment: treeKey,\r\n singleSelect: true,\r\n additionalAccounts: [],\r\n segmentExtension: false,\r\n label: this.toTitleCase(treeKey),\r\n readOnly: this.value.find((v) => v.segment === treeKey)?.readOnly || false,\r\n })) || [];\r\n }),\r\n catchError((error) => {\r\n this.getMscoaError = 'Failed to fetch mscoa tree';\r\n console.error('Error while fetching SCOA tree:', error);\r\n return [null];\r\n })\r\n ).subscribe();\r\n }\r\n private createSegmentForm(segment: IIncludedSegmentConfig = {\r\n segment: '', label: '',\r\n id: uuidv4(),\r\n singleSelect: true,\r\n segmentExtension: false,\r\n additionalAccounts: [],\r\n readOnly: false\r\n } as any): FormGroup {\r\n return this.fb.group({\r\n segment: [segment.segment, Validators.required],\r\n segmentExtension: [segment.segmentExtension, Validators.required],\r\n readOnly: [segment.readOnly, Validators.required],\r\n additionalAccounts: [(segment as any).additionalAccounts || [],],\r\n label: [segment.label, Validators.required],\r\n singleSelect: [segment.singleSelect, Validators.required]\r\n });\r\n }\r\n\r\n private listenToFormChanges() {\r\n this.segmentForm.valueChanges\r\n .pipe(takeUntil(this.destroy$))\r\n .subscribe((v) => console.log(v));\r\n }\r\n\r\n startAddNew() {\r\n this.isAddingNew = true;\r\n this.editingIndex = null;\r\n this.segmentForm = this.createSegmentForm();\r\n }\r\n\r\n startEdit(index: number) {\r\n this.editingIndex = index;\r\n this.isAddingNew = false;\r\n this.segmentForm = this.createSegmentForm(this.value[index]);\r\n }\r\n\r\n cancelEdit() {\r\n this.editingIndex = null;\r\n this.isAddingNew = false;\r\n this.segmentForm.reset();\r\n }\r\n\r\n saveSegment() {\r\n if (this.segmentForm.valid) {\r\n const newSegment = ({\r\n id: this.segmentForm.value.id || uuidv4(),\r\n segment: this.segmentForm.value.segment,\r\n customSegment: !!this.segmentForm.value.segmentExtension ? (this.segmentForm.value.label as string)?.toLocaleUpperCase() : undefined,\r\n segmentExtension: this.segmentForm.value.segmentExtension,\r\n additionalAccounts: this.segmentForm.value.additionalAccounts,\r\n label: this.toTitleCase(this.segmentForm.value.label),\r\n singleSelect: this.segmentForm.value.singleSelect,\r\n readOnly: this.segmentForm.value.readOnly\r\n })\r\n const updatedValue = [...this.value];\r\n\r\n if (this.isAddingNew) {\r\n updatedValue.push(newSegment);\r\n } else if (this.editingIndex !== null) {\r\n updatedValue[this.editingIndex] = newSegment;\r\n }\r\n\r\n\r\n this._value.next(updatedValue);\r\n this.valueChanged.emit(updatedValue);\r\n this.cancelEdit();\r\n }\r\n }\r\n readOnly(event: MatSlideToggleChange) {\r\n this.segmentForm.patchValue({ readOnly: event.checked })\r\n }\r\n singleSelectChange(event: MatSlideToggleChange) {\r\n this.segmentForm.patchValue({ singleSelect: event.checked })\r\n console.error('singleSelectChange', this.segmentForm.value)\r\n }\r\n removeSegment(index: number) {\r\n const updatedValue = this.value.filter((_, i) => i !== index);\r\n this._value.next(updatedValue);\r\n this.valueChanged.emit(updatedValue);\r\n }\r\n\r\n private toTitleCase(str: string): string {\r\n return str.replace(/\\w\\S*/g, (txt) => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());\r\n }\r\n alreadyExists(segment: IIncludedSegmentConfig) {\r\n if (this.segmentForm.value.segmentExtension) return false\r\n return this.value.find((v) => v.segment === segment.segment)\r\n }\r\n checkShowAllSegments() {\r\n if (!this._getMscoaTree || !this.treeSegments) return;\r\n\r\n const updatedValue = this.treeSegments.map(segment => ({\r\n ...segment,\r\n ...(this.value.find(v => v.segment === segment.segment) || {})\r\n }));\r\n\r\n if (JSON.stringify(updatedValue) !== JSON.stringify(this.value)) {\r\n this.valueChanged.emit([{} as any]);\r\n setTimeout(() => {\r\n this.valueChanged.emit(updatedValue);\r\n }, 0);\r\n }\r\n }\r\n selectSegment($event: MatSelectChange<any>) {\r\n\r\n this.segmentForm.patchValue({ segment: $event.value })\r\n if (!this.segmentForm.value.segmentExtension) {\r\n this.segmentForm.patchValue({ label: this.toTitleCase($event.value) })\r\n }\r\n\r\n\r\n }\r\n multiLevelSelectChange(event: MatSlideToggleChange) {\r\n this.segmentForm.patchValue({ segmentExtension: event.checked })\r\n }\r\n\r\n\r\n get extensionAccountsForSegments():string[]{\r\n console.error('get extensionAccountsForSegments', this.dataValue?.mscoaConfig?.extensionAccountsForSegments)\r\n return this.dataValue?.mscoaConfig?.extensionAccountsForSegments || []\r\n }\r\n additionalAccountsChanged(event: MatSelectChange) {\r\n // Force update by creating a new array\r\n const newAdditionalAccounts = [...event.value];\r\n \r\n this.segmentForm.patchValue({\r\n additionalAccounts: newAdditionalAccounts\r\n }, { emitEvent: true });\r\n\r\n // Trigger state changes\r\n this.stateChanges.next();\r\n this.markAsTouched();\r\n }\r\n}","<div *ngIf=\"(value||[]).length>0\" class=\"tree-instructions\">\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\n <span>SCOA Segments Configuration</span>\n</div>\n\n<mat-chip-listbox [disabled]=\"disabled\" *ngIf=\"(value?.length || 0) > 0; else noSegments\" aria-label=\"Fish selection\">\n @for (segment of value||[]; track segment.segment) {\n <mat-chip-option (removed)=\"removeSegment($index)\" (click)=\"startEdit($index)\" color=\"accent\"\n [value]=\"segment?.segment\" [selected]=\"this.editingIndex === $index\">\n <div style=\" \n display: flex;\n align-items: center;\n gap: 1px;\">\n <span style=\"margin-right: 2px;\">\n {{ segment.label }}\n </span>\n <mat-icon class=\"icons\">\n {{ segment.singleSelect ? 'done' : ' done_all' }}\n </mat-icon>\n <mat-icon class=\"icons\">\n\n {{ segment.readOnly ? 'edit_off' : 'edit' }}\n </mat-icon>\n </div>\n\n @if ( showAllSegments === false) {\n <button matChipRemove [attr.aria-label]=\"'remove' \">\n <mat-icon>cancel</mat-icon>\n </button>\n }\n\n </mat-chip-option>\n }\n</mat-chip-listbox>\n\n\n\n\n\n<ng-template #noSegments>\n <div class=\"tree-instructions\">\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\n <span>No segment configuration available. Start by adding a segment below.</span>\n </div>\n</ng-template>\n\n<mat-toolbar *ngIf=\"!isAddingNew && editingIndex === null && showAllSegments === false\">\n <button style=\"width:100%\" \n [disabled]=\"disabled\"\n mat-stroked-button (click)=\"startAddNew()\">\n Add New Segment <mat-icon>add</mat-icon>\n </button>\n</mat-toolbar>\n\n@if (!!getMscoaError) {\n<div class=\"tree-instructions\">\n <mat-icon class=\"info-icon\" color=\"primary\">info</mat-icon>\n <span>\n {{ getMscoaError }}\n </span>\n</div>\n}\n<mat-card *ngIf=\"isAddingNew || editingIndex !== null\">\n <mat-card-header>\n <mat-card-subtitle>\n {{ isAddingNew ? 'Add a new' : 'Update' }} Segment\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <form [formGroup]=\"segmentForm\" (ngSubmit)=\"saveSegment()\">\n <mat-toolbar class=\"segment-toolbar\">\n <mat-slide-toggle \n (change)=\"multiLevelSelectChange($event)\" \n [checked]=\"segmentForm.value.segmentExtension\">\n Enable Multi-Level Segmentation\n </mat-slide-toggle>\n \n </mat-toolbar>\n <mat-hint class=\"segment-hint\">\n This allows sub-classifications within this segment for more detailed accounting hierarchies\n </mat-hint>\n <mat-form-field subscriptSizing=\"dynamic\" floatLabel=\"always\" appearance=\"outline\">\n <mat-label>Segment</mat-label>\n <mat-select (selectionChange)=\"selectSegment($event)\" matNativeControl \n formControlName=\"segment\" [value]=\"value\" placeholder=\"Select segment\">\n @for ( segment of treeSegments; track segment.segment) {\n <mat-option [disabled]=\"alreadyExists(segment)\" [value]=\"segment.segment\"> \n {{ segment.label }}\n </mat-option>\n }\n </mat-select>\n \n </mat-form-field>\n <mat-hint class=\"segment-hint\">\n Select an account segment type from your chart of accounts\n </mat-hint>\n \n <mat-form-field subscriptSizing=\"dynamic\" floatLabel=\"always\" appearance=\"outline\">\n <mat-label>Label</mat-label>\n <input matInput formControlName=\"label\"\n [disabled]=\"!this.segmentForm.value.segmentExtension\"\n placeholder=\"Enter label\">\n <mat-hint>Provide a descriptive name for this segment (e.g., 'Department', 'Project', 'Cost Center')</mat-hint>\n </mat-form-field>\n \n <mat-toolbar class=\"segment-toolbar\">\n <mat-slide-toggle (change)=\"singleSelectChange($event)\" [checked]=\"segmentForm.value.singleSelect\">\n Single Value Selection\n </mat-slide-toggle>\n\n </mat-toolbar>\n <mat-hint class=\"segment-hint\">\n When enabled, transactions can only be assigned to one value within this segment. When disabled, transactions can be split across multiple values.\n </mat-hint>\n <mat-toolbar class=\"segment-toolbar\">\n <mat-slide-toggle (change)=\"readOnly($event)\" [checked]=\"segmentForm.value.readOnly\">\n Read-Only Segment\n </mat-slide-toggle>\n \n </mat-toolbar>\n <mat-hint class=\"segment-hint\">\n Prevents users from modifying segment values after initial setup. Use for regulatory or policy-controlled segments.\n </mat-hint>\n <mat-form-field subscriptSizing=\"dynamic\" floatLabel=\"always\" appearance=\"outline\">\n <mat-label>\n Additional accounts\n </mat-label>\n \n \n <mat-select (selectionChange)=\"additionalAccountsChanged($event)\" matNativeControl \n [value]=\"segmentForm.value.additionalAccounts\"\n formControlName=\"additionalAccounts\" multiple placeholder=\"Select counter accounts\">\n @for (ext of extensionAccountsForSegments; track ext) {\n <mat-option [value]=\"ext\">{{ext}}</mat-option>\n }\n </mat-select>\n </mat-form-field>\n \n <mat-hint class=\"segment-hint\">\n This allows you to add additional accounts to this segment. For example, VAT accounts, tax accounts, or any other\n </mat-hint>\n <br>\n <mat-card-actions>\n <button mat-flat-button color=\"primary\" type=\"submit\" [disabled]=\"!segmentForm.valid\">Save</button>\n <button mat-button (click)=\"cancelEdit()\">Cancel</button>\n </mat-card-actions>\n </form>\n </mat-card-content>\n</mat-card>\n\n<span color=\"danger\" *ngIf=\"error$ | async as error\">\n <p>{{ error }}</p>\n</span>"],"names":["uuidv4","i4","i5","i6","i7","i8","i10","i11"],"mappings":";;;;;;;;;;;;;;;;;;;;;MA8Ba,2BAA2B,CAAA;aAE/B,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK;AAMlB,IAAA,WAAA,CACU,EAAe,EACI,SAAoB,EAAU,WAAoC,EAAA;QADrF,IAAE,CAAA,EAAA,GAAF,EAAE;QACiB,IAAS,CAAA,SAAA,GAAT,SAAS;QAAqB,IAAW,CAAA,WAAA,GAAX,WAAW;AAT7D,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC;AAE1C,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAQ;AAEnB,QAAA,IAAA,CAAA,EAAE,GAAG,CAA6B,0BAAA,EAAA,2BAA2B,CAAC,MAAM,EAAE,EAAE;QAEvF,IAAW,CAAA,WAAA,GAAW,EAAE;QASxB,IAAO,CAAA,OAAA,GAAY,KAAK;QAOxB,IAAQ,CAAA,QAAA,GAAY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