ngx-t-forms 2.0.24 → 2.0.26
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/README.md +177 -16
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-Cs_Lhz_D.mjs +313 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-Cs_Lhz_D.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-C00n6tFs.mjs → ngx-t-forms-chip-options-creator-editor.component-DkTpG5yQ.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-C00n6tFs.mjs.map → ngx-t-forms-chip-options-creator-editor.component-DkTpG5yQ.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-DtfUKZL-.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-DJ9d3Oy9.mjs} +9 -9
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-DtfUKZL-.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-DJ9d3Oy9.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-data-source-picker.component-BBEQuzn2.mjs → ngx-t-forms-data-source-picker.component-CFQ_GVPG.mjs} +11 -11
- package/fesm2022/{ngx-t-forms-data-source-picker.component-BBEQuzn2.mjs.map → ngx-t-forms-data-source-picker.component-CFQ_GVPG.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-CPF_BLRA.mjs +291 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-CPF_BLRA.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CniLZN1h.mjs → ngx-t-forms-form-input-selector.component-C38FXT55.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CniLZN1h.mjs.map → ngx-t-forms-form-input-selector.component-C38FXT55.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-bnjkxqgV.mjs → ngx-t-forms-form-json-view.component-C7i6JZ-l.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-form-json-view.component-bnjkxqgV.mjs.map → ngx-t-forms-form-json-view.component-C7i6JZ-l.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-CJz0yr78.mjs +264 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-CJz0yr78.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-G3Agd-vE.mjs +349 -0
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-G3Agd-vE.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-editor.component-BBP90B_e.mjs → ngx-t-forms-input-editor.component-B12zbXE1.mjs} +19 -19
- package/fesm2022/{ngx-t-forms-input-editor.component-BBP90B_e.mjs.map → ngx-t-forms-input-editor.component-B12zbXE1.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-dIY3BX1u.mjs +106 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-dIY3BX1u.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CIiYyxkb.mjs → ngx-t-forms-mat-slider-editor.component-yMRCg8fo.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CIiYyxkb.mjs.map → ngx-t-forms-mat-slider-editor.component-yMRCg8fo.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-DDR2JurF.mjs → ngx-t-forms-mat-slider-toggle-editor.component-0aUVP9A6.mjs} +7 -7
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-0aUVP9A6.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CYN9mVz9.mjs → ngx-t-forms-missing-form-configs.component-CsPMQZqg.mjs} +9 -9
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CYN9mVz9.mjs.map → ngx-t-forms-missing-form-configs.component-CsPMQZqg.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D8a9-6lt.mjs +43 -0
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-D8a9-6lt.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-DwbyXd_D.mjs +116 -0
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-DwbyXd_D.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BXPghOuH.mjs +299 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BXPghOuH.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBRfWvfD.mjs +83 -0
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-CBRfWvfD.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-ngx-t-forms-DwsbmVlY.mjs → ngx-t-forms-ngx-t-forms-CD9InaXz.mjs} +3364 -931
- package/fesm2022/ngx-t-forms-ngx-t-forms-CD9InaXz.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-QE-I58e4.mjs +637 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-QE-I58e4.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-D4wlLtdc.mjs +270 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-D4wlLtdc.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-BoqmVDp2.mjs +192 -0
- package/fesm2022/ngx-t-forms-required-inputs.component-BoqmVDp2.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-BcItch1n.mjs → ngx-t-forms-rest-api-call-setup.component-CtfudSGT.mjs} +15 -15
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-BcItch1n.mjs.map → ngx-t-forms-rest-api-call-setup.component-CtfudSGT.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-section-report.component-Cn_oWXBX.mjs → ngx-t-forms-section-report.component-Dntm1m5b.mjs} +10 -10
- package/fesm2022/{ngx-t-forms-section-report.component-Cn_oWXBX.mjs.map → ngx-t-forms-section-report.component-Dntm1m5b.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-Cc41XG4s.mjs → ngx-t-forms-selection-options-editor.component-Cc_qCtW2.mjs} +11 -11
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-Cc41XG4s.mjs.map → ngx-t-forms-selection-options-editor.component-Cc_qCtW2.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-xvX8t0pu.mjs +187 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-xvX8t0pu.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-validators-config.component-4Iy5uJj3.mjs → ngx-t-forms-validators-config.component-D6JG1p81.mjs} +13 -13
- package/fesm2022/{ngx-t-forms-validators-config.component-4Iy5uJj3.mjs.map → ngx-t-forms-validators-config.component-D6JG1p81.mjs.map} +1 -1
- 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/form-builder/elements/form-submissions-config/form-submissions-config.component.d.ts +1 -1
- package/lib/components/form-builder/elements/input-element-editor/input-element-editor.component.d.ts +6 -2
- package/lib/components/forms/forms.component.d.ts +8 -0
- package/lib/components/forms/store/Form-actions-formBuilder.d.ts +1 -0
- package/lib/components/forms/store/Form-selectors-FormBuilder.d.ts +3 -1
- package/lib/components/forms/store/Forms-Effects.d.ts +7 -1
- package/lib/components/forms/store/forms-store.service.d.ts +19 -53
- package/lib/components/index.d.ts +2 -1
- package/lib/components/t-dynamic-data-edit/elements/api-value-access-rules/api-value-access-rules.component.d.ts +40 -20
- package/lib/components/t-dynamic-data-edit/elements/calculated-field-rules/calculated-field-rules.component.d.ts +51 -63
- package/lib/components/t-dynamic-data-edit/elements/document-list-label-config-editor/document-list-label-config-editor.component.d.ts +8 -1
- package/lib/components/t-dynamic-data-edit/elements/json-editor/json-editor.component.d.ts +37 -9
- package/lib/components/t-dynamic-data-edit/elements/mat-chip-list-editor/mat-chip-list-editor.component.d.ts +2 -1
- package/lib/components/t-dynamic-data-edit/elements/mscoa-segment-config/mscoa-segment-config.component.d.ts +4 -1
- package/lib/components/t-dynamic-data-edit/elements/pipeline-generator/pipeline-generator.component.d.ts +2 -0
- package/lib/components/t-dynamic-data-edit/elements/record-list-manager/record-list-manager.component.d.ts +75 -0
- package/lib/components/t-dynamic-data-edit/elements/required-inputs/required-inputs.component.d.ts +1 -0
- package/lib/components/t-dynamic-data-edit/elements/t-workflow-picker/t-workflow-picker.component.d.ts +7 -3
- package/lib/components/t-dynamic-data-edit/t-dynamic-data-edit.component.d.ts +1 -0
- package/lib/components/t-form-input/elements/Geo-location-form-input/geo-location.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/auto-complete-input-element/auto-complete-input-element.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/basic-input-input-element/basic-input-input-element.component.d.ts +2 -1
- package/lib/components/t-form-input/elements/basic-input-input-element/core/input-custom/input-custom.component.d.ts +2 -1
- package/lib/components/t-form-input/elements/date-picker-input-element/date-picker-input-element.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/date-range-picker-input-element/date-range-picker-input-element.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/document-picker/document-picker.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/editor-input-element/editor-input-element.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/file-upload-input-element/file-upload-input-element.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/image-capture-input-element/image-capture-input-element.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/account-value/account-value.component.d.ts +8 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/components/mscoa-chart-input-menu/mscoa-chart-input-menu.component.d.ts +23 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/components/mscoa-chart-toolbar/mscoa-chart-toolbar.component.d.ts +22 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/components/mscoa-error-display/mscoa-error-display.component.d.ts +34 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/components/mscoa-temporary-hint/mscoa-temporary-hint.component.d.ts +21 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/extractCols.d.ts +22 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/mscoa-chart.component.d.ts +299 -86
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/utils/mscoa-chart.constants.d.ts +47 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/utils/mscoa-chart.helpers.d.ts +87 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/utils/mscoa-chart.types.d.ts +51 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/utils/mscoa-message-formatter.d.ts +87 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-computation/mscoa-computation.component.d.ts +149 -22
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-reactive-form-field/mscoa-reactive-form-field.component.d.ts +11 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/elements/scoa-account-table/scoa-account-table.component.d.ts +4 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/mscoa-form-input.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/mscoa-form-input/store/accountConstants.d.ts +7 -2
- package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-actions.d.ts +13 -2
- package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-component-store.service.d.ts +45 -8
- package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-effects.d.ts +1 -0
- package/lib/components/t-form-input/elements/mscoa-form-input/store/mscoa-selectors.d.ts +33 -8
- package/lib/components/t-form-input/elements/multiple-input-input-element/multiple-input-input-element.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/select-input-element/select-input-element.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/signature-input-element/core/signature-pad-input/functions/getSignatureImage.d.ts +3 -0
- package/lib/components/t-form-input/elements/signature-input-element/signature-input-element.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/textarea-input-element/core/text-area-reactive-input/text-area-reactive-input.component.d.ts +1 -2
- package/lib/components/t-form-input/elements/textarea-input-element/textarea-input-element.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/toggle-input-element/toggle-input-element.component.d.ts +1 -1
- package/lib/components/t-form-input/elements/workflow-adjudication/workflow-adjudication.component.d.ts +1 -1
- package/lib/services/core/t-form-builder/functions/deleteSection.d.ts +1 -0
- package/lib/services/core/t-form-builder/functions/inputElementEditorConfigs.d.ts +9 -3
- package/lib/services/core/t-form-builder/functions/removeItem.d.ts +1 -0
- package/lib/services/core/t-form-builder/functions/stepTitleChangeStep.d.ts +1 -0
- package/lib/services/core/t-form-controller/function/calculateInputValue.d.ts +1 -1
- package/lib/services/core/t-form-controller/function/getInputSourcedValue.d.ts +4 -0
- package/lib/services/core/t-form-tower-controller/functions/runMultipleInputPrepopulationFunctions.d.ts +11 -0
- package/lib/services/core/t-form-tower-controller/functions/updateFormInputConfig.d.ts +7 -0
- package/lib/services/core/t-input-controller/functions/baseCustomInput.d.ts +4 -2
- package/lib/services/core/t-input-controller/functions/inputErrorMessage.d.ts +1 -1
- package/lib/shared/functions/convertElementEditorTypesToInputType.d.ts +3 -0
- package/lib/shared/functions/fuzzyTextSearch.d.ts +4 -0
- package/lib/shared/functions/getPipedValueFromDataType.d.ts +2 -0
- package/lib/shared/index.d.ts +2 -1
- package/package.json +2 -2
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BUKzXsXn.mjs +0 -316
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-BUKzXsXn.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-D6kwe89h.mjs +0 -238
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-D6kwe89h.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-DFbYNeAi.mjs +0 -261
- package/fesm2022/ngx-t-forms-form-section-stepper.component-DFbYNeAi.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DBEgmcSi.mjs +0 -348
- package/fesm2022/ngx-t-forms-forms-builder-menu.component-DBEgmcSi.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CQ76110I.mjs +0 -103
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-CQ76110I.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mat-slider-toggle-editor.component-DDR2JurF.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-C9zKzzzX.mjs +0 -281
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-C9zKzzzX.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-DwsbmVlY.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-pipeline-generator.component-CGKxfvvC.mjs +0 -727
- package/fesm2022/ngx-t-forms-pipeline-generator.component-CGKxfvvC.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-required-inputs.component-Bktx1QGr.mjs +0 -188
- package/fesm2022/ngx-t-forms-required-inputs.component-Bktx1QGr.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CezFgp2z.mjs +0 -171
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-CezFgp2z.mjs.map +0 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper functions for MSCOA Chart Component
|
|
3
|
+
*/
|
|
4
|
+
export interface RowData {
|
|
5
|
+
singleSelect?: boolean;
|
|
6
|
+
segment?: string;
|
|
7
|
+
inheritValueFromAccrual?: boolean;
|
|
8
|
+
vatSelectonActive?: boolean;
|
|
9
|
+
segmentValue?: {
|
|
10
|
+
vatApplicableTo?: string;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
} | any;
|
|
13
|
+
innerInput?: any;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Gets the toolbar color based on accounting basis
|
|
18
|
+
*/
|
|
19
|
+
export declare function getToolbarColor(accountingBasis?: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Gets the toolbar background style based on accounting basis
|
|
22
|
+
*/
|
|
23
|
+
export declare function getToolbarBackground(accountingBasis?: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* Gets the toolbar icon color based on accounting basis
|
|
26
|
+
*/
|
|
27
|
+
export declare function getToolbarIconColor(accountingBasis?: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* Gets the border style based on accounting basis
|
|
30
|
+
*/
|
|
31
|
+
export declare function getBorderStyle(accountingBasis?: string): string;
|
|
32
|
+
/**
|
|
33
|
+
* Checks if a column is the segment column (first column)
|
|
34
|
+
*/
|
|
35
|
+
export declare function isSegmentColumn(index: number): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Gets header text for a column
|
|
38
|
+
*/
|
|
39
|
+
export declare function getHeaderText(col: string, index: number, hasMultiSelect: boolean): string;
|
|
40
|
+
/**
|
|
41
|
+
* Checks if a row has an inner input
|
|
42
|
+
*/
|
|
43
|
+
export declare function hasInnerInput(row: RowData | any): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Checks if credit column should be disabled for single select
|
|
46
|
+
*/
|
|
47
|
+
export declare function isCreditDisabledForSingleSelect(row: RowData, col: string): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Checks if VAT column should be disabled
|
|
50
|
+
*/
|
|
51
|
+
export declare function isVatDisabled(row: RowData, col: string): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Checks if a field should show auto-selected label
|
|
54
|
+
*/
|
|
55
|
+
export declare function shouldShowAutoSelectedLabel(row: RowData, col: string): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Checks if dropdown icon should be shown
|
|
58
|
+
*/
|
|
59
|
+
export declare function shouldShowDropdownIcon(row: RowData, col: string): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Gets error color for required empty fields
|
|
62
|
+
*/
|
|
63
|
+
export declare function getErrorColor(touched: boolean, required: boolean, hasValue: boolean): string;
|
|
64
|
+
/**
|
|
65
|
+
* Checks if field has error state (for class binding)
|
|
66
|
+
*/
|
|
67
|
+
export declare function hasError(touched: boolean, required: boolean, hasValue: boolean): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Checks if VAT chip should be displayed
|
|
70
|
+
*/
|
|
71
|
+
export declare function shouldShowVatChip(row: RowData, col: string): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Gets cell padding style based on column index
|
|
74
|
+
*/
|
|
75
|
+
export declare function getCellPadding(index: number): string;
|
|
76
|
+
/**
|
|
77
|
+
* Gets header padding style based on column index
|
|
78
|
+
*/
|
|
79
|
+
export declare function getHeaderPadding(index: number): string;
|
|
80
|
+
/**
|
|
81
|
+
* Gets cell background style for segment column
|
|
82
|
+
*/
|
|
83
|
+
export declare function getSegmentCellBackground(index: number): string;
|
|
84
|
+
/**
|
|
85
|
+
* Checks if table should be visible based on dual basis expansion state
|
|
86
|
+
*/
|
|
87
|
+
export declare function shouldShowTable(isDualAccountBasis: boolean, expansionState: boolean, accountingBasis?: string): boolean;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for MSCOA Chart Component
|
|
3
|
+
*/
|
|
4
|
+
import { ITableScoaSelectionRow, FormColumnInputs, ScoaInnerInput } from 'ngx-t-forms-types';
|
|
5
|
+
import { AccountingBasis } from './mscoa-chart.constants';
|
|
6
|
+
/**
|
|
7
|
+
* Extended row interface that includes dynamic properties used in the component
|
|
8
|
+
* Uses intersection type to allow optional properties from base interface
|
|
9
|
+
*/
|
|
10
|
+
export type ExtendedTableRow = ITableScoaSelectionRow & {
|
|
11
|
+
innerInput?: ScoaInnerInput | FormColumnInputs;
|
|
12
|
+
accountInputs?: FormColumnInputs[];
|
|
13
|
+
customSegment?: string;
|
|
14
|
+
singleSelect?: boolean;
|
|
15
|
+
inheritValueFromAccrual?: boolean;
|
|
16
|
+
readOnly?: boolean;
|
|
17
|
+
additionalAccounts?: string[];
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
export interface MscoaChartViewData {
|
|
21
|
+
loading: boolean;
|
|
22
|
+
accountTreeKeys: any[];
|
|
23
|
+
tableData: ExtendedTableRow[];
|
|
24
|
+
cols: string[];
|
|
25
|
+
hasMultiSelect: boolean;
|
|
26
|
+
cashAccountTreeKeys: any[];
|
|
27
|
+
cashTableData: ExtendedTableRow[];
|
|
28
|
+
cashCols: string[];
|
|
29
|
+
cashHasMultiSelect: boolean;
|
|
30
|
+
busnessRuleErrors: Record<string, string[]>;
|
|
31
|
+
}
|
|
32
|
+
export interface DualBasisExpansionState {
|
|
33
|
+
[key: string]: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface CountdownState {
|
|
36
|
+
count: number | null;
|
|
37
|
+
stop$: any;
|
|
38
|
+
}
|
|
39
|
+
export interface CountdownSeconds {
|
|
40
|
+
[key: string]: CountdownState;
|
|
41
|
+
}
|
|
42
|
+
export interface SelectionTableContext {
|
|
43
|
+
accountingBasis?: AccountingBasis | string;
|
|
44
|
+
canCollapse?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface PortalProps {
|
|
47
|
+
inputConfig: any;
|
|
48
|
+
formGroup: any;
|
|
49
|
+
formBuilderFunctions: any;
|
|
50
|
+
editorMode: boolean;
|
|
51
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Message Formatter Service for MSCOA Chart Component
|
|
3
|
+
* Transforms technical error messages into user-friendly, contextual messages
|
|
4
|
+
*/
|
|
5
|
+
export interface ValidationError {
|
|
6
|
+
message: string;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
export interface ErrorContext {
|
|
10
|
+
segment?: string;
|
|
11
|
+
accountNumber?: string;
|
|
12
|
+
accountName?: string;
|
|
13
|
+
column?: string;
|
|
14
|
+
accountingBasis?: string;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
export interface AccountCombination {
|
|
18
|
+
accounts: Array<{
|
|
19
|
+
number: string;
|
|
20
|
+
name: string;
|
|
21
|
+
}>;
|
|
22
|
+
segment: string;
|
|
23
|
+
column: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ValidationRule {
|
|
26
|
+
type: string;
|
|
27
|
+
description: string;
|
|
28
|
+
applicableSegments?: string[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Formats technical error messages into user-friendly messages
|
|
32
|
+
*/
|
|
33
|
+
export declare class MscoaMessageFormatter {
|
|
34
|
+
/**
|
|
35
|
+
* Formats a validation error message with context
|
|
36
|
+
*/
|
|
37
|
+
formatError(error: ValidationError, context?: ErrorContext): string;
|
|
38
|
+
/**
|
|
39
|
+
* Formats success message for valid account combination
|
|
40
|
+
*/
|
|
41
|
+
formatSuccess(combination: AccountCombination): string;
|
|
42
|
+
/**
|
|
43
|
+
* Formats contextual hint for validation rules
|
|
44
|
+
*/
|
|
45
|
+
formatHint(rule: ValidationRule): string;
|
|
46
|
+
/**
|
|
47
|
+
* Checks if message is already user-friendly
|
|
48
|
+
*/
|
|
49
|
+
private isUserFriendly;
|
|
50
|
+
/**
|
|
51
|
+
* Extracts segment name from error message
|
|
52
|
+
*/
|
|
53
|
+
private extractSegment;
|
|
54
|
+
/**
|
|
55
|
+
* Extracts column name from error message
|
|
56
|
+
*/
|
|
57
|
+
private extractColumn;
|
|
58
|
+
/**
|
|
59
|
+
* Formats invalid combination error
|
|
60
|
+
*/
|
|
61
|
+
private formatInvalidCombination;
|
|
62
|
+
/**
|
|
63
|
+
* Formats cannot combine error
|
|
64
|
+
*/
|
|
65
|
+
private formatCannotCombine;
|
|
66
|
+
/**
|
|
67
|
+
* Formats required field error
|
|
68
|
+
*/
|
|
69
|
+
private formatRequired;
|
|
70
|
+
/**
|
|
71
|
+
* Formats conflict error
|
|
72
|
+
*/
|
|
73
|
+
private formatConflict;
|
|
74
|
+
/**
|
|
75
|
+
* Formats category error
|
|
76
|
+
*/
|
|
77
|
+
private formatCategoryError;
|
|
78
|
+
/**
|
|
79
|
+
* Formats rule violation error
|
|
80
|
+
*/
|
|
81
|
+
private formatRuleViolation;
|
|
82
|
+
/**
|
|
83
|
+
* Formats default error message
|
|
84
|
+
*/
|
|
85
|
+
private formatDefault;
|
|
86
|
+
}
|
|
87
|
+
export declare const mscoaMessageFormatter: MscoaMessageFormatter;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
4
5
|
import { MatTreeFlatDataSource } from '@angular/material/tree';
|
|
5
6
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
6
|
-
import { IIncludedSegmentConfig, IScoaAccount, ScoaAccountTree } from "ngx-t-forms-types";
|
|
7
|
+
import { IIncludedSegmentConfig, IScoaAccount, ScoaAccountTree, TreeNode } from "ngx-t-forms-types";
|
|
7
8
|
import { ObjectTreeFlatNode, ObjectTreeNode } from '../../../../../t-dynamic-data-edit/elements/api-value-access-rules/functions/convertDataToTree';
|
|
8
9
|
import { FormColumnInputs } from 'ngx-t-forms-types';
|
|
10
|
+
import { FormControl } from '@angular/forms';
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
12
|
export interface IMscoaComputationComponentData {
|
|
11
13
|
data: ScoaAccountTree;
|
|
@@ -15,48 +17,173 @@ export interface IMscoaComputationComponentData {
|
|
|
15
17
|
activeColumn: string | undefined;
|
|
16
18
|
segmentConfig: IIncludedSegmentConfig | undefined;
|
|
17
19
|
readonly: boolean;
|
|
20
|
+
isCashSelection: boolean;
|
|
18
21
|
getSCOAAccount: (account: string) => Observable<{
|
|
19
22
|
accounts: IScoaAccount[];
|
|
20
23
|
}>;
|
|
21
24
|
}
|
|
22
25
|
export declare class MscoaComputationComponent implements OnInit, OnDestroy {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
readonly:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
private readonly dataInjected;
|
|
27
|
+
private readonly sanitizer;
|
|
28
|
+
readonly dialogRef: MatDialogRef<MscoaComputationComponent>;
|
|
29
|
+
readonly data: ScoaAccountTree | undefined;
|
|
30
|
+
readonly segment: string | undefined;
|
|
31
|
+
readonly value: IScoaAccount | undefined;
|
|
32
|
+
readonly accountInputs: FormColumnInputs[];
|
|
33
|
+
readonly activeColumn: string | undefined;
|
|
34
|
+
readonly isCashSelection: boolean;
|
|
35
|
+
readonly readonly: boolean;
|
|
36
|
+
readonly segmentConfig: IIncludedSegmentConfig | undefined;
|
|
37
|
+
readonly treeControl: FlatTreeControl<ObjectTreeFlatNode>;
|
|
38
|
+
private readonly treeFlattener;
|
|
39
|
+
readonly dataSource: MatTreeFlatDataSource<ObjectTreeNode, ObjectTreeFlatNode>;
|
|
40
|
+
selectedTreeNode: ObjectTreeFlatNode | undefined;
|
|
41
|
+
selectedAccount: IScoaAccount | null;
|
|
42
|
+
searchAccounts: IScoaAccount[];
|
|
43
|
+
searchingAccounts: boolean;
|
|
44
|
+
currentAccountPath: string | undefined;
|
|
45
|
+
showSearchBar: boolean;
|
|
46
|
+
readonly accountSearchTextControl: FormControl<string | null>;
|
|
47
|
+
readonly searchedPaths$: Observable<string[][]>;
|
|
48
|
+
private readonly destroy$;
|
|
49
|
+
private readonly accountCache;
|
|
50
|
+
errorMessage: string | null;
|
|
51
|
+
hasError: boolean;
|
|
36
52
|
constructor(dialogRef: MatDialogRef<MscoaComputationComponent>);
|
|
37
53
|
ngOnInit(): void;
|
|
38
54
|
ngOnDestroy(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Checks if a tree node has children (is expandable)
|
|
57
|
+
*/
|
|
39
58
|
hasChild: (_: number, node: ObjectTreeFlatNode) => boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Transforms a tree node into a flat node for the Material tree
|
|
61
|
+
*/
|
|
40
62
|
private transformer;
|
|
63
|
+
/**
|
|
64
|
+
* Searches the tree for nodes matching the search text using fuzzy search
|
|
65
|
+
* @param searchText - The text to search for
|
|
66
|
+
* @returns Array of matching paths
|
|
67
|
+
*/
|
|
68
|
+
searchTree(searchText: string | null): string[][];
|
|
69
|
+
/**
|
|
70
|
+
* Checks if a path is the currently selected path or a parent of it
|
|
71
|
+
* @param path - The path to check
|
|
72
|
+
* @returns True if the path is active or a parent of the selected path
|
|
73
|
+
*/
|
|
41
74
|
isActivePathOrParent(path: string[]): boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Toggles the expansion state of a tree node.
|
|
77
|
+
* Does not collapse siblings (like Windows Explorer / VS Code) for better context.
|
|
78
|
+
*/
|
|
42
79
|
toggleNode(node: ObjectTreeFlatNode): void;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
80
|
+
/**
|
|
81
|
+
* Checks if any tree nodes are currently expanded
|
|
82
|
+
*/
|
|
83
|
+
get noneIsExpanded(): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Selects a tree node and loads its associated accounts
|
|
86
|
+
* @param node - The node to select
|
|
87
|
+
*/
|
|
46
88
|
selectNode(node: ObjectTreeFlatNode): void;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
89
|
+
/**
|
|
90
|
+
* Loads accounts for the currently selected tree node
|
|
91
|
+
* Uses caching to prevent redundant API calls
|
|
92
|
+
*/
|
|
93
|
+
private loadAccountsForNode;
|
|
94
|
+
/**
|
|
95
|
+
* Sets an error message to display to the user
|
|
96
|
+
* @param message - The error message to display
|
|
97
|
+
*/
|
|
98
|
+
private setError;
|
|
99
|
+
/**
|
|
100
|
+
* Clears the current error state
|
|
101
|
+
*/
|
|
102
|
+
private clearError;
|
|
103
|
+
/**
|
|
104
|
+
* Retries loading accounts for the current node
|
|
105
|
+
*/
|
|
106
|
+
retryLoadAccounts(): void;
|
|
107
|
+
/**
|
|
108
|
+
* Cancels the current selection and resets the component state
|
|
109
|
+
*/
|
|
51
110
|
cancel(): void;
|
|
111
|
+
/**
|
|
112
|
+
* Saves the selected account and closes the dialog
|
|
113
|
+
*/
|
|
52
114
|
saveAccount(): void;
|
|
115
|
+
/**
|
|
116
|
+
* Closes the dialog and passes the selected account back
|
|
117
|
+
* @param account - The account to return, or undefined if cancelled
|
|
118
|
+
*/
|
|
53
119
|
closeAndPassData(account: IScoaAccount | undefined): void;
|
|
54
|
-
|
|
120
|
+
/**
|
|
121
|
+
* Selects an account from the account table
|
|
122
|
+
* @param account - The account to select, or null to deselect
|
|
123
|
+
*/
|
|
55
124
|
selectAccount(account: IScoaAccount | null): void;
|
|
125
|
+
/**
|
|
126
|
+
* Finds a tree node by its path (from tree data)
|
|
127
|
+
* @param targetPath - The path to search for
|
|
128
|
+
* @returns The found node or null if not found
|
|
129
|
+
*/
|
|
130
|
+
getNodeByPath(targetPath: string[]): TreeNode | null;
|
|
131
|
+
/**
|
|
132
|
+
* Finds the flat node (from treeControl.dataNodes) by path.
|
|
133
|
+
* Required for expand/select operations since Material tree uses flat nodes.
|
|
134
|
+
*/
|
|
135
|
+
getFlatNodeByPath(targetPath: string[]): ObjectTreeFlatNode | null;
|
|
136
|
+
/**
|
|
137
|
+
* Expands all ancestor nodes so the target node is visible in the tree.
|
|
138
|
+
* Does not collapse siblings (user keeps context of other branches).
|
|
139
|
+
*/
|
|
140
|
+
expandPathToNode(flatNode: ObjectTreeFlatNode): void;
|
|
141
|
+
/**
|
|
142
|
+
* Selects a path from search results: expands path, selects node, loads accounts,
|
|
143
|
+
* scrolls selection into view, then clears search.
|
|
144
|
+
* Follows UX best practice: expand to path → select → scroll into view.
|
|
145
|
+
*/
|
|
146
|
+
selectPath(path: string[]): void;
|
|
147
|
+
/**
|
|
148
|
+
* Clears the search input
|
|
149
|
+
*/
|
|
150
|
+
clearSearch(): void;
|
|
151
|
+
/**
|
|
152
|
+
* Clears the selected account
|
|
153
|
+
*/
|
|
56
154
|
clearSelectedAccount(): void;
|
|
155
|
+
/**
|
|
156
|
+
* Determines if the save button should be enabled
|
|
157
|
+
* Checks if the account has changed and all required inputs are valid
|
|
158
|
+
*/
|
|
57
159
|
get saveSelection(): boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Updates the selected account with new values
|
|
162
|
+
* @param account - The updated account
|
|
163
|
+
*/
|
|
58
164
|
updateAccount(account: IScoaAccount): void;
|
|
165
|
+
/**
|
|
166
|
+
* Determines if the user can clear the selected account
|
|
167
|
+
*/
|
|
59
168
|
get userCanClearAccount(): boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Handles keyboard navigation for the dialog
|
|
171
|
+
* @param event - The keyboard event
|
|
172
|
+
*/
|
|
173
|
+
handleKeyboardNavigation(event: KeyboardEvent): void;
|
|
174
|
+
/**
|
|
175
|
+
* Highlights search text in a given string
|
|
176
|
+
* @param text - The text to highlight
|
|
177
|
+
* @param searchTerm - The search term to highlight
|
|
178
|
+
* @returns Safe HTML string with highlighted text
|
|
179
|
+
*/
|
|
180
|
+
highlightSearchText(text: string, searchTerm: string): SafeHtml;
|
|
181
|
+
/**
|
|
182
|
+
* Escapes special regex characters in a string
|
|
183
|
+
* @param str - The string to escape
|
|
184
|
+
* @returns Escaped string
|
|
185
|
+
*/
|
|
186
|
+
private escapeRegex;
|
|
60
187
|
static ɵfac: i0.ɵɵFactoryDeclaration<MscoaComputationComponent, never>;
|
|
61
188
|
static ɵcmp: i0.ɵɵComponentDeclaration<MscoaComputationComponent, "app-mscoa-computation", never, {}, {}, never, never, true, never>;
|
|
62
189
|
}
|
|
@@ -4,9 +4,14 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
4
4
|
import { FormBuilderFunctions, ITowerStepColumn } from "ngx-t-forms-types";
|
|
5
5
|
import { IScoaInputConfig, ScoaSegmentValue } from "ngx-t-forms-types";
|
|
6
6
|
import { BaseCustomInput } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';
|
|
7
|
+
import { MscoaComponentStore } from '../../store/mscoa-component-store.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class MscoaReactiveFormFieldComponent extends BaseCustomInput<ScoaSegmentValue> {
|
|
10
|
+
store: MscoaComponentStore;
|
|
11
|
+
businessRuleValidationErrors$: import("rxjs").Observable<import("ngx-t-forms-types").MscoaValuetValidationErrors>;
|
|
12
|
+
businessRuleValidationErrors: import("@angular/core").Signal<import("ngx-t-forms-types").MscoaValuetValidationErrors | undefined>;
|
|
9
13
|
get empty(): boolean;
|
|
14
|
+
get errorState(): boolean;
|
|
10
15
|
constructor(ngControl: NgControl, elementRef: ElementRef<HTMLElement>);
|
|
11
16
|
formBuilderFunctions: FormBuilderFunctions | undefined;
|
|
12
17
|
editorMode: boolean;
|
|
@@ -18,6 +23,12 @@ export declare class MscoaReactiveFormFieldComponent extends BaseCustomInput<Sco
|
|
|
18
23
|
get readonly(): boolean;
|
|
19
24
|
get parentFormGroup(): FormGroup | null;
|
|
20
25
|
checkValidationsAnErrors(): void;
|
|
26
|
+
/** Determines if the current value satisfies the specific Accounting Basis.
|
|
27
|
+
* For dual basis, BOTH accrual and cash must be valid.
|
|
28
|
+
*/
|
|
29
|
+
private checkBasisValidity;
|
|
30
|
+
/** Updates control errors for required, segment completeness, and non-overridable business rule errors. */
|
|
31
|
+
private updateControlErrors;
|
|
21
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<MscoaReactiveFormFieldComponent, [{ optional: true; self: true; }, null]>;
|
|
22
33
|
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>;
|
|
23
34
|
}
|
|
@@ -33,6 +33,10 @@ export declare class ScoaAccountTableComponent implements OnChanges, OnInit {
|
|
|
33
33
|
constructor();
|
|
34
34
|
ngOnInit(): void;
|
|
35
35
|
ngOnChanges(changes: SimpleChanges): void;
|
|
36
|
+
/**
|
|
37
|
+
* Checks if paginator should be shown
|
|
38
|
+
*/
|
|
39
|
+
get shouldShowPaginator(): boolean;
|
|
36
40
|
mapAccounts(accounts: IScoaAccount[]): {
|
|
37
41
|
AccountNumberShortened: string;
|
|
38
42
|
_id: {
|
package/lib/components/t-form-input/elements/mscoa-form-input/mscoa-form-input.component.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare class MscoaFormInputComponent {
|
|
|
9
9
|
formGroup: FormGroup;
|
|
10
10
|
formBuilderFunctions: FormBuilderFunctions | undefined;
|
|
11
11
|
reload: EventEmitter<void>;
|
|
12
|
-
get errorMessage(): string | undefined;
|
|
12
|
+
get errorMessage(): string | string[] | undefined;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<MscoaFormInputComponent, never>;
|
|
14
14
|
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; }; }, { "reload": "reload"; }, never, never, true, never>;
|
|
15
15
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export declare const MIN_ACCOUNT_DETAILS: string[];
|
|
2
|
-
export declare const SCOA_ACCOUNT_COLUMNS: {
|
|
2
|
+
export declare const SCOA_ACCOUNT_COLUMNS: ({
|
|
3
3
|
key: string;
|
|
4
4
|
label: string;
|
|
5
|
-
|
|
5
|
+
system?: undefined;
|
|
6
|
+
} | {
|
|
7
|
+
key: string;
|
|
8
|
+
label: string;
|
|
9
|
+
system: boolean;
|
|
10
|
+
})[];
|
|
@@ -1,19 +1,30 @@
|
|
|
1
|
-
import { IScoaAccount, IScoaInputConfig, ScoaSegmentValue } from "ngx-t-forms-types";
|
|
1
|
+
import { IScoaAccount, IScoaInputConfig, MscoaValuetValidationErrors, ScoaSegmentValue } from "ngx-t-forms-types";
|
|
2
2
|
import { MscoaComponentStore } from "./mscoa-component-store.service";
|
|
3
3
|
export declare function mscoaStoreActions(store: MscoaComponentStore): {
|
|
4
4
|
resetStore: () => void;
|
|
5
5
|
setConfig: (() => void) | ((observableOrValue: IScoaInputConfig | import("rxjs").Observable<IScoaInputConfig | null | undefined> | null | undefined) => import("rxjs").Subscription);
|
|
6
6
|
setInitiated: () => void;
|
|
7
|
-
setSegmentValues: (() => void) | ((observableOrValue:
|
|
7
|
+
setSegmentValues: (() => void) | ((observableOrValue: {
|
|
8
|
+
accrual?: ScoaSegmentValue;
|
|
9
|
+
cash?: ScoaSegmentValue;
|
|
10
|
+
} | import("rxjs").Observable<{
|
|
11
|
+
accrual?: ScoaSegmentValue;
|
|
12
|
+
cash?: ScoaSegmentValue;
|
|
13
|
+
} | undefined> | undefined) => import("rxjs").Subscription);
|
|
14
|
+
setValidatingValue: (observableOrValue: boolean | import("rxjs").Observable<boolean>) => import("rxjs").Subscription;
|
|
15
|
+
validationErrors: (observableOrValue: MscoaValuetValidationErrors | import("rxjs").Observable<MscoaValuetValidationErrors>) => import("rxjs").Subscription;
|
|
8
16
|
setLoadingTree: (observableOrValue: boolean | import("rxjs").Observable<boolean>) => import("rxjs").Subscription;
|
|
9
17
|
setActiveSegment: (observableOrValue: string | import("rxjs").Observable<string | null> | null) => import("rxjs").Subscription;
|
|
10
18
|
setSegmentAccount: (observableOrValue: {
|
|
11
19
|
segment: string;
|
|
12
20
|
account: IScoaAccount | undefined;
|
|
13
21
|
accountType: string;
|
|
22
|
+
isCash: boolean;
|
|
14
23
|
} | import("rxjs").Observable<{
|
|
15
24
|
segment: string;
|
|
16
25
|
account: IScoaAccount | undefined;
|
|
17
26
|
accountType: string;
|
|
27
|
+
isCash: boolean;
|
|
18
28
|
}>) => import("rxjs").Subscription;
|
|
29
|
+
auditStateValues: () => void;
|
|
19
30
|
};
|
|
@@ -3,7 +3,7 @@ import { ScoaInterface } from "ngx-t-forms-types";
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare const initialMscoaState: ScoaInterface;
|
|
5
5
|
export declare class MscoaComponentStore extends ComponentStore<ScoaInterface> {
|
|
6
|
-
|
|
6
|
+
NGX_T_FORMS_CONFIG_TOKEN: import("ngx-t-forms-types").NgxTFormsConfig;
|
|
7
7
|
readonly selectors: {
|
|
8
8
|
initiated$: import("rxjs").Observable<boolean>;
|
|
9
9
|
loadingTree$: import("rxjs").Observable<boolean>;
|
|
@@ -12,8 +12,7 @@ export declare class MscoaComponentStore extends ComponentStore<ScoaInterface> {
|
|
|
12
12
|
table$: import("rxjs").Observable<{
|
|
13
13
|
accountInputs: import("ngx-t-forms-types").ScoaInnerInput[];
|
|
14
14
|
input: import("ngx-t-forms-types").ScoaInnerInput | undefined;
|
|
15
|
-
|
|
16
|
-
vatDebit: any;
|
|
15
|
+
vat: any;
|
|
17
16
|
debit: any;
|
|
18
17
|
credit: any;
|
|
19
18
|
segment: string;
|
|
@@ -26,38 +25,76 @@ export declare class MscoaComponentStore extends ComponentStore<ScoaInterface> {
|
|
|
26
25
|
customSegment?: string | undefined;
|
|
27
26
|
readOnly: boolean;
|
|
28
27
|
singleSelect: boolean;
|
|
28
|
+
inheritValueFromAccrual?: boolean;
|
|
29
|
+
vatSelectonActive?: boolean;
|
|
29
30
|
additionalAccounts: string[];
|
|
30
31
|
segmentExtension: boolean;
|
|
31
32
|
id: string;
|
|
32
33
|
}[]>;
|
|
33
|
-
hasVATApplicableAccount$: import("rxjs").Observable<
|
|
34
|
-
vatCredit: boolean;
|
|
35
|
-
vatDebit: boolean;
|
|
36
|
-
}>;
|
|
34
|
+
hasVATApplicableAccount$: import("rxjs").Observable<boolean>;
|
|
37
35
|
inputs$: import("rxjs").Observable<import("ngx-t-forms-types").ScoaInnerInput[]>;
|
|
38
36
|
state$: import("rxjs").Observable<ScoaInterface>;
|
|
37
|
+
validationErrors$: import("rxjs").Observable<import("ngx-t-forms-types").MscoaValuetValidationErrors>;
|
|
38
|
+
validatingValue$: import("rxjs").Observable<boolean>;
|
|
39
|
+
cashAccountTreeKeys$: import("rxjs").Observable<import("ngx-t-forms-types").IAccountSegmentTreeKeys[]>;
|
|
40
|
+
cashTable$: import("rxjs").Observable<{
|
|
41
|
+
accountInputs: import("ngx-t-forms-types").ScoaInnerInput[];
|
|
42
|
+
input: import("ngx-t-forms-types").ScoaInnerInput | undefined;
|
|
43
|
+
vat: any;
|
|
44
|
+
debit: any;
|
|
45
|
+
credit: any;
|
|
46
|
+
segment: string;
|
|
47
|
+
innerInput: import("ngx-t-forms-types").ScoaInnerInput;
|
|
48
|
+
label: string;
|
|
49
|
+
formInput: boolean;
|
|
50
|
+
segmentTree: import("ngx-t-forms-types").ScoaAccountTree;
|
|
51
|
+
inputs: import("ngx-t-forms-types").ScoaInnerInput[];
|
|
52
|
+
segmentValue: Record<string, any>;
|
|
53
|
+
customSegment?: string | undefined;
|
|
54
|
+
readOnly: boolean;
|
|
55
|
+
singleSelect: boolean;
|
|
56
|
+
inheritValueFromAccrual?: boolean;
|
|
57
|
+
vatSelectonActive?: boolean;
|
|
58
|
+
additionalAccounts: string[];
|
|
59
|
+
segmentExtension: boolean;
|
|
60
|
+
id: string;
|
|
61
|
+
}[]>;
|
|
62
|
+
cashHasVATApplicableAccount$: import("rxjs").Observable<boolean>;
|
|
39
63
|
};
|
|
40
64
|
readonly actions: {
|
|
41
65
|
resetStore: () => void;
|
|
42
66
|
setConfig: (() => void) | ((observableOrValue: import("ngx-t-forms-types").IScoaInputConfig | import("rxjs").Observable<import("ngx-t-forms-types").IScoaInputConfig | null | undefined> | null | undefined) => import("rxjs").Subscription);
|
|
43
67
|
setInitiated: () => void;
|
|
44
|
-
setSegmentValues: (() => void) | ((observableOrValue:
|
|
68
|
+
setSegmentValues: (() => void) | ((observableOrValue: {
|
|
69
|
+
accrual?: import("ngx-t-forms-types").ScoaSegmentValue;
|
|
70
|
+
cash?: import("ngx-t-forms-types").ScoaSegmentValue;
|
|
71
|
+
} | import("rxjs").Observable<{
|
|
72
|
+
accrual?: import("ngx-t-forms-types").ScoaSegmentValue;
|
|
73
|
+
cash?: import("ngx-t-forms-types").ScoaSegmentValue;
|
|
74
|
+
} | undefined> | undefined) => import("rxjs").Subscription);
|
|
75
|
+
setValidatingValue: (observableOrValue: boolean | import("rxjs").Observable<boolean>) => import("rxjs").Subscription;
|
|
76
|
+
validationErrors: (observableOrValue: import("ngx-t-forms-types").MscoaValuetValidationErrors | import("rxjs").Observable<import("ngx-t-forms-types").MscoaValuetValidationErrors>) => import("rxjs").Subscription;
|
|
45
77
|
setLoadingTree: (observableOrValue: boolean | import("rxjs").Observable<boolean>) => import("rxjs").Subscription;
|
|
46
78
|
setActiveSegment: (observableOrValue: string | import("rxjs").Observable<string | null> | null) => import("rxjs").Subscription;
|
|
47
79
|
setSegmentAccount: (observableOrValue: {
|
|
48
80
|
segment: string;
|
|
49
81
|
account: import("ngx-t-forms-types").IScoaAccount | undefined;
|
|
50
82
|
accountType: string;
|
|
83
|
+
isCash: boolean;
|
|
51
84
|
} | import("rxjs").Observable<{
|
|
52
85
|
segment: string;
|
|
53
86
|
account: import("ngx-t-forms-types").IScoaAccount | undefined;
|
|
54
87
|
accountType: string;
|
|
88
|
+
isCash: boolean;
|
|
55
89
|
}>) => import("rxjs").Subscription;
|
|
90
|
+
auditStateValues: () => void;
|
|
56
91
|
};
|
|
57
92
|
readonly effects: {
|
|
58
93
|
initLoadMscoa$: (observableOrValue: import("ngx-t-forms-types").FormBuilderFunctions | import("rxjs").Observable<import("ngx-t-forms-types").FormBuilderFunctions | undefined> | undefined) => import("rxjs").Subscription;
|
|
59
94
|
initSetSegmentValues$: (observableOrValue: import("ngx-t-forms-types").ScoaSegmentValue | import("rxjs").Observable<import("ngx-t-forms-types").ScoaSegmentValue>) => import("rxjs").Subscription;
|
|
95
|
+
auditOnSegmentValuesChange$: (observableOrValue?: void | import("rxjs").Observable<void> | undefined) => import("rxjs").Subscription;
|
|
60
96
|
};
|
|
97
|
+
constructor();
|
|
61
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<MscoaComponentStore, never>;
|
|
62
99
|
static ɵprov: i0.ɵɵInjectableDeclaration<MscoaComponentStore>;
|
|
63
100
|
}
|
|
@@ -5,4 +5,5 @@ import { FormBuilderFunctions } from "ngx-t-forms-types";
|
|
|
5
5
|
export declare function mscoaStoreEffects(store: MscoaComponentStore): {
|
|
6
6
|
initLoadMscoa$: (observableOrValue: FormBuilderFunctions | Observable<FormBuilderFunctions | undefined> | undefined) => import("rxjs").Subscription;
|
|
7
7
|
initSetSegmentValues$: (observableOrValue: ScoaSegmentValue | Observable<ScoaSegmentValue>) => import("rxjs").Subscription;
|
|
8
|
+
auditOnSegmentValuesChange$: (observableOrValue?: void | Observable<void> | undefined) => import("rxjs").Subscription;
|
|
8
9
|
};
|