ngx-t-forms 2.0.24 → 2.0.25
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-DiNSTxsW.mjs +313 -0
- package/fesm2022/ngx-t-forms-calculated-field-rules.component-DiNSTxsW.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-C00n6tFs.mjs → ngx-t-forms-chip-options-creator-editor.component-3FkGwVWB.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-C00n6tFs.mjs.map → ngx-t-forms-chip-options-creator-editor.component-3FkGwVWB.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-DtfUKZL-.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-tHaWIt1o.mjs} +8 -8
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-DtfUKZL-.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-tHaWIt1o.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-data-source-picker.component-BBEQuzn2.mjs → ngx-t-forms-data-source-picker.component-CxG1tQfC.mjs} +10 -10
- package/fesm2022/{ngx-t-forms-data-source-picker.component-BBEQuzn2.mjs.map → ngx-t-forms-data-source-picker.component-CxG1tQfC.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-CsqYlgS6.mjs +291 -0
- package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-CsqYlgS6.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CniLZN1h.mjs → ngx-t-forms-form-input-selector.component-D-nVF7t7.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-form-input-selector.component-CniLZN1h.mjs.map → ngx-t-forms-form-input-selector.component-D-nVF7t7.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-bnjkxqgV.mjs → ngx-t-forms-form-json-view.component-B01nOklu.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-form-json-view.component-bnjkxqgV.mjs.map → ngx-t-forms-form-json-view.component-B01nOklu.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-form-section-stepper.component-Bg9eGmgN.mjs +267 -0
- package/fesm2022/ngx-t-forms-form-section-stepper.component-Bg9eGmgN.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DBEgmcSi.mjs → ngx-t-forms-forms-builder-menu.component-jn9-yVbI.mjs} +22 -22
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-DBEgmcSi.mjs.map → ngx-t-forms-forms-builder-menu.component-jn9-yVbI.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-input-editor.component-BBP90B_e.mjs → ngx-t-forms-input-editor.component-DyQBfgio.mjs} +18 -18
- package/fesm2022/{ngx-t-forms-input-editor.component-BBP90B_e.mjs.map → ngx-t-forms-input-editor.component-DyQBfgio.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-BCoTHeK3.mjs +106 -0
- package/fesm2022/ngx-t-forms-mat-chip-list-editor.component-BCoTHeK3.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CIiYyxkb.mjs → ngx-t-forms-mat-slider-editor.component-WDd5lc_2.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-mat-slider-editor.component-CIiYyxkb.mjs.map → ngx-t-forms-mat-slider-editor.component-WDd5lc_2.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-DDR2JurF.mjs → ngx-t-forms-mat-slider-toggle-editor.component-DGac4Eja.mjs} +5 -5
- package/fesm2022/{ngx-t-forms-mat-slider-toggle-editor.component-DDR2JurF.mjs.map → ngx-t-forms-mat-slider-toggle-editor.component-DGac4Eja.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CYN9mVz9.mjs → ngx-t-forms-missing-form-configs.component-sJVu5SkY.mjs} +9 -9
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CYN9mVz9.mjs.map → ngx-t-forms-missing-form-configs.component-sJVu5SkY.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-CF5DxLZG.mjs +43 -0
- package/fesm2022/ngx-t-forms-mscoa-chart-toolbar.component-CF5DxLZG.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-D9zKeT7Z.mjs +116 -0
- package/fesm2022/ngx-t-forms-mscoa-error-display.component-D9zKeT7Z.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BIr1g5cG.mjs +299 -0
- package/fesm2022/ngx-t-forms-mscoa-segment-config.component-BIr1g5cG.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DgdZwE72.mjs +83 -0
- package/fesm2022/ngx-t-forms-mscoa-temporary-hint.component-DgdZwE72.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-ngx-t-forms-DwsbmVlY.mjs → ngx-t-forms-ngx-t-forms-A9_4GxP6.mjs} +3313 -906
- package/fesm2022/ngx-t-forms-ngx-t-forms-A9_4GxP6.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-CwCwl53b.mjs +637 -0
- package/fesm2022/ngx-t-forms-pipeline-generator.component-CwCwl53b.mjs.map +1 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-BYyr0yzb.mjs +270 -0
- package/fesm2022/ngx-t-forms-record-list-manager.component-BYyr0yzb.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-required-inputs.component-Bktx1QGr.mjs → ngx-t-forms-required-inputs.component-pv5pqFhh.mjs} +10 -10
- package/fesm2022/{ngx-t-forms-required-inputs.component-Bktx1QGr.mjs.map → ngx-t-forms-required-inputs.component-pv5pqFhh.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-BcItch1n.mjs → ngx-t-forms-rest-api-call-setup.component-CQeww1qM.mjs} +15 -15
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-BcItch1n.mjs.map → ngx-t-forms-rest-api-call-setup.component-CQeww1qM.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-section-report.component-Cn_oWXBX.mjs → ngx-t-forms-section-report.component-DGwgq4QR.mjs} +10 -10
- package/fesm2022/{ngx-t-forms-section-report.component-Cn_oWXBX.mjs.map → ngx-t-forms-section-report.component-DGwgq4QR.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-Cc41XG4s.mjs → ngx-t-forms-selection-options-editor.component-CqAxZnEp.mjs} +11 -11
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-Cc41XG4s.mjs.map → ngx-t-forms-selection-options-editor.component-CqAxZnEp.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-Cz6YZMia.mjs +187 -0
- package/fesm2022/ngx-t-forms-t-workflow-picker.component-Cz6YZMia.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-validators-config.component-4Iy5uJj3.mjs → ngx-t-forms-validators-config.component-CL73KUxw.mjs} +12 -12
- package/fesm2022/{ngx-t-forms-validators-config.component-4Iy5uJj3.mjs.map → ngx-t-forms-validators-config.component-CL73KUxw.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/input-element-editor/input-element-editor.component.d.ts +6 -2
- package/lib/components/forms/forms.component.d.ts +1 -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/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-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-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-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,23 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormColumnInputs } from 'ngx-t-forms-types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MscoaChartInputMenuComponent {
|
|
5
|
+
innerInput: FormColumnInputs;
|
|
6
|
+
countdownSeconds: number | null;
|
|
7
|
+
hoveredId: string | null;
|
|
8
|
+
edit: EventEmitter<FormColumnInputs>;
|
|
9
|
+
delete: EventEmitter<FormColumnInputs>;
|
|
10
|
+
cancelDelete: EventEmitter<string>;
|
|
11
|
+
hoverStart: EventEmitter<string>;
|
|
12
|
+
hoverEnd: EventEmitter<void>;
|
|
13
|
+
readonly DELETION_COUNTDOWN_SECONDS = 5;
|
|
14
|
+
get isDeleting(): boolean;
|
|
15
|
+
get progressValue(): number;
|
|
16
|
+
get isHovered(): boolean;
|
|
17
|
+
onEdit(): void;
|
|
18
|
+
onDelete(): void;
|
|
19
|
+
onMouseEnter(): void;
|
|
20
|
+
onMouseLeave(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MscoaChartInputMenuComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MscoaChartInputMenuComponent, "app-mscoa-chart-input-menu", never, { "innerInput": { "alias": "innerInput"; "required": false; }; "countdownSeconds": { "alias": "countdownSeconds"; "required": false; }; "hoveredId": { "alias": "hoveredId"; "required": false; }; }, { "edit": "edit"; "delete": "delete"; "cancelDelete": "cancelDelete"; "hoverStart": "hoverStart"; "hoverEnd": "hoverEnd"; }, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { getToolbarColor, getToolbarBackground, getToolbarIconColor } from '../../utils/mscoa-chart.helpers';
|
|
3
|
+
import type { AccountingBasis } from '../../utils/mscoa-chart.constants';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MscoaChartToolbarComponent {
|
|
6
|
+
accountingBasis?: AccountingBasis | string;
|
|
7
|
+
canCollapse: boolean;
|
|
8
|
+
isExpanded: boolean;
|
|
9
|
+
toggleExpansion: EventEmitter<void>;
|
|
10
|
+
readonly ACCOUNTING_BASIS: {
|
|
11
|
+
readonly ACCRUAL: "accrual";
|
|
12
|
+
readonly CASH: "cash";
|
|
13
|
+
readonly DUAL: "dual";
|
|
14
|
+
};
|
|
15
|
+
getToolbarColor: typeof getToolbarColor;
|
|
16
|
+
getToolbarBackground: typeof getToolbarBackground;
|
|
17
|
+
getToolbarIconColor: typeof getToolbarIconColor;
|
|
18
|
+
get displayBasis(): string;
|
|
19
|
+
onToggleClick(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MscoaChartToolbarComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MscoaChartToolbarComponent, "app-mscoa-chart-toolbar", never, { "accountingBasis": { "alias": "accountingBasis"; "required": false; }; "canCollapse": { "alias": "canCollapse"; "required": false; }; "isExpanded": { "alias": "isExpanded"; "required": false; }; }, { "toggleExpansion": "toggleExpansion"; }, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OnInit, OnChanges, SimpleChanges, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type ErrorDisplayType = 'error' | 'warning' | 'info' | 'success';
|
|
4
|
+
export interface ErrorDisplayContext {
|
|
5
|
+
segment?: string;
|
|
6
|
+
accountingBasis?: string;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
export declare class MscoaErrorDisplayComponent implements OnInit, OnChanges, OnDestroy {
|
|
10
|
+
private readonly cdr;
|
|
11
|
+
errors: string[];
|
|
12
|
+
type: ErrorDisplayType;
|
|
13
|
+
context?: ErrorDisplayContext;
|
|
14
|
+
showIcon: boolean;
|
|
15
|
+
compact: boolean;
|
|
16
|
+
/** When set, display auto-hides after this many ms. Keeps error styling. */
|
|
17
|
+
duration?: number;
|
|
18
|
+
showDismiss: boolean;
|
|
19
|
+
visible: boolean;
|
|
20
|
+
private readonly destroy$;
|
|
21
|
+
private hideTimer$;
|
|
22
|
+
constructor(cdr: ChangeDetectorRef);
|
|
23
|
+
get iconName(): string;
|
|
24
|
+
get ariaLabel(): string;
|
|
25
|
+
trackByIndex(index: number): number;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
private show;
|
|
30
|
+
hide(): void;
|
|
31
|
+
dismiss(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MscoaErrorDisplayComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MscoaErrorDisplayComponent, "app-mscoa-error-display", never, { "errors": { "alias": "errors"; "required": false; }; "type": { "alias": "type"; "required": false; }; "context": { "alias": "context"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "showDismiss": { "alias": "showDismiss"; "required": false; }; }, {}, never, never, true, never>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit, OnDestroy, OnChanges, SimpleChanges, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MscoaTemporaryHintComponent implements OnInit, OnChanges, OnDestroy {
|
|
4
|
+
private readonly cdr;
|
|
5
|
+
message: string;
|
|
6
|
+
duration: number;
|
|
7
|
+
showDismiss: boolean;
|
|
8
|
+
type: 'info' | 'guidance';
|
|
9
|
+
visible: boolean;
|
|
10
|
+
private readonly destroy$;
|
|
11
|
+
private hideTimer$;
|
|
12
|
+
constructor(cdr: ChangeDetectorRef);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
show(): void;
|
|
17
|
+
hide(): void;
|
|
18
|
+
dismiss(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MscoaTemporaryHintComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MscoaTemporaryHintComponent, "app-mscoa-temporary-hint", never, { "message": { "alias": "message"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "showDismiss": { "alias": "showDismiss"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
package/lib/components/t-form-input/elements/mscoa-form-input/elements/mscoa-chart/extractCols.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const extractCols: (hasMultiSelect: boolean, hasVATApplicableAccount: boolean, extensionAccountsForSegments: string[]) => string[];
|
|
2
|
+
interface RowData {
|
|
3
|
+
singleSelect?: any;
|
|
4
|
+
segment?: string;
|
|
5
|
+
inheritValueFromAccrual?: boolean;
|
|
6
|
+
vatSelectonActive?: boolean;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
interface InputConfig {
|
|
10
|
+
required: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface AccountFieldState {
|
|
13
|
+
labelText: string;
|
|
14
|
+
showIcon: boolean;
|
|
15
|
+
color: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Evaluates the business logic for the Account Selector row
|
|
19
|
+
* based on the provided template logic.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getAccountFieldState(row: RowData, col: string, touched?: boolean, inputConfig?: InputConfig): AccountFieldState;
|
|
22
|
+
export {};
|
|
@@ -1,90 +1,56 @@
|
|
|
1
1
|
import { OnInit, OnDestroy, EventEmitter, Injector } from '@angular/core';
|
|
2
|
-
import { Observable
|
|
3
|
-
import {
|
|
4
|
-
import { IScoaAccount, IScoaInputConfig, ITableScoaSelectionRow, ITowerStepColumn, ScoaInnerInput, ScoaSegmentValue } from "ngx-t-forms-types";
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { IAccountSegmentTreeKeys, IScoaAccount, IScoaInputConfig, ITowerStepColumn, ScoaInnerInput, ScoaSegmentValue } from "ngx-t-forms-types";
|
|
5
4
|
import { MscoaComponentStore } from '../../store/mscoa-component-store.service';
|
|
6
5
|
import { FormColumnInputs } from 'ngx-t-forms-types';
|
|
7
6
|
import { FormBuilderFunctions } from "ngx-t-forms-types";
|
|
8
7
|
import { FormGroup } from '@angular/forms';
|
|
9
8
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
9
|
+
import { getToolbarColor, isSegmentColumn, getHeaderText, hasInnerInput, shouldShowAutoSelectedLabel, shouldShowDropdownIcon, getErrorColor, hasError, shouldShowVatChip, shouldShowTable } from './utils/mscoa-chart.helpers';
|
|
10
|
+
import type { DualBasisExpansionState, CountdownSeconds, ExtendedTableRow } from './utils/mscoa-chart.types';
|
|
11
|
+
import { ErrorContext } from './utils/mscoa-message-formatter';
|
|
10
12
|
import * as i0 from "@angular/core";
|
|
13
|
+
/**
|
|
14
|
+
* MSCOA Chart Component
|
|
15
|
+
*
|
|
16
|
+
* Displays account selection tables for accrual and/or cash accounting basis.
|
|
17
|
+
* Supports dynamic column generation, portal-based input rendering, and complex
|
|
18
|
+
* selection logic for account assignment.
|
|
19
|
+
*/
|
|
11
20
|
export declare class MscoaChartComponent implements OnInit, OnDestroy {
|
|
12
|
-
private store;
|
|
13
|
-
private injector;
|
|
14
|
-
selectAccountTreeKeys
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
additionalAccounts: string[];
|
|
34
|
-
segmentExtension: boolean;
|
|
35
|
-
id: string;
|
|
36
|
-
}[]>;
|
|
37
|
-
hasVATApplicableAccount$: Observable<{
|
|
38
|
-
vatCredit: boolean;
|
|
39
|
-
vatDebit: boolean;
|
|
21
|
+
private readonly store;
|
|
22
|
+
private readonly injector;
|
|
23
|
+
private readonly selectAccountTreeKeys$;
|
|
24
|
+
private readonly selectCashAccountTreeKeys$;
|
|
25
|
+
private readonly selectMscoaLoadingTree$;
|
|
26
|
+
private readonly validationErrors$;
|
|
27
|
+
private readonly validatingValue$;
|
|
28
|
+
private readonly table$;
|
|
29
|
+
private readonly cashTable$;
|
|
30
|
+
private readonly hasVATApplicableAccount$;
|
|
31
|
+
private readonly cashHasVATApplicableAccount$;
|
|
32
|
+
private readonly segmentValues$;
|
|
33
|
+
private readonly inputs$;
|
|
34
|
+
readonly busnessRuleErrors$: Observable<Record<string, string[]>>;
|
|
35
|
+
private readonly destroy$;
|
|
36
|
+
private readonly successMessageSubject$;
|
|
37
|
+
readonly successMessage$: Observable<Record<string, string | null>>;
|
|
38
|
+
readonly validationState$: Observable<{
|
|
39
|
+
hasErrors: boolean;
|
|
40
|
+
isValidating: boolean;
|
|
41
|
+
errorCount: number;
|
|
40
42
|
}>;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
constructor(store: MscoaComponentStore, injector: Injector);
|
|
47
|
-
onContainerClick: EventEmitter<MouseEvent>;
|
|
48
|
-
setAsTouched(ev: MouseEvent): void;
|
|
49
|
-
inputPortals: {
|
|
50
|
-
[key: string]: ComponentPortal<any>;
|
|
51
|
-
};
|
|
52
|
-
setupPortals(inputs: ScoaInnerInput[]): void;
|
|
53
|
-
createInjectorWithProps(props: any): Injector;
|
|
54
|
-
inputConfig: ITowerStepColumn;
|
|
55
|
-
editorMode: boolean;
|
|
56
|
-
set formBuilderFunctions(func: FormBuilderFunctions | undefined);
|
|
57
|
-
get formBuilderFunctions(): FormBuilderFunctions | undefined;
|
|
58
|
-
set segmentValues(segmentValues: ScoaSegmentValue | null);
|
|
59
|
-
readonly: boolean;
|
|
60
|
-
_config: IScoaInputConfig | undefined | null;
|
|
61
|
-
set config(config: IScoaInputConfig | undefined | null);
|
|
62
|
-
get config(): IScoaInputConfig | undefined | null;
|
|
63
|
-
formGroup: FormGroup | undefined | null;
|
|
64
|
-
segmentValuesChanged: EventEmitter<ScoaSegmentValue>;
|
|
65
|
-
interaction: EventEmitter<string>;
|
|
66
|
-
readonly dialog: MatDialog;
|
|
67
|
-
ngOnInit(): void;
|
|
68
|
-
segmentChange(activeSegment: string): void;
|
|
69
|
-
loadMscoa(functions: FormBuilderFunctions | undefined): void;
|
|
70
|
-
ngOnDestroy(): void;
|
|
71
|
-
accountNumberSelected(account: IScoaAccount | undefined, segment: string, accountType?: string): void;
|
|
72
|
-
get hasMultiSelect$(): Observable<boolean>;
|
|
73
|
-
get cols$(): Observable<string[]>;
|
|
74
|
-
editSelection: ITableScoaSelectionRow | any;
|
|
75
|
-
activeColumn: string | undefined;
|
|
76
|
-
selectAccount(row: ITableScoaSelectionRow | undefined, col: string | undefined): void;
|
|
77
|
-
openScoaSelection(): void;
|
|
78
|
-
openInput(input: FormColumnInputs): void;
|
|
79
|
-
onClick(): void;
|
|
80
|
-
viewData$: Observable<{
|
|
43
|
+
readonly hasMultiSelect$: Observable<boolean>;
|
|
44
|
+
readonly cashHasMultiSelect$: Observable<boolean>;
|
|
45
|
+
readonly cols$: Observable<string[]>;
|
|
46
|
+
readonly cashCol$: Observable<string[]>;
|
|
47
|
+
readonly viewData$: Observable<{
|
|
81
48
|
loading: boolean;
|
|
82
|
-
accountTreeKeys:
|
|
49
|
+
accountTreeKeys: IAccountSegmentTreeKeys[];
|
|
83
50
|
tableData: {
|
|
84
51
|
accountInputs: ScoaInnerInput[];
|
|
85
52
|
input: ScoaInnerInput | undefined;
|
|
86
|
-
|
|
87
|
-
vatDebit: any;
|
|
53
|
+
vat: any;
|
|
88
54
|
debit: any;
|
|
89
55
|
credit: any;
|
|
90
56
|
segment: string;
|
|
@@ -97,27 +63,274 @@ export declare class MscoaChartComponent implements OnInit, OnDestroy {
|
|
|
97
63
|
customSegment?: string | undefined;
|
|
98
64
|
readOnly: boolean;
|
|
99
65
|
singleSelect: boolean;
|
|
66
|
+
inheritValueFromAccrual?: boolean;
|
|
67
|
+
vatSelectonActive?: boolean;
|
|
100
68
|
additionalAccounts: string[];
|
|
101
69
|
segmentExtension: boolean;
|
|
102
70
|
id: string;
|
|
103
71
|
}[];
|
|
104
72
|
cols: string[];
|
|
105
73
|
hasMultiSelect: boolean;
|
|
74
|
+
cashAccountTreeKeys: IAccountSegmentTreeKeys[];
|
|
75
|
+
cashTableData: {
|
|
76
|
+
accountInputs: ScoaInnerInput[];
|
|
77
|
+
input: ScoaInnerInput | undefined;
|
|
78
|
+
vat: any;
|
|
79
|
+
debit: any;
|
|
80
|
+
credit: any;
|
|
81
|
+
segment: string;
|
|
82
|
+
innerInput: ScoaInnerInput;
|
|
83
|
+
label: string;
|
|
84
|
+
formInput: boolean;
|
|
85
|
+
segmentTree: import("ngx-t-forms-types").ScoaAccountTree;
|
|
86
|
+
inputs: ScoaInnerInput[];
|
|
87
|
+
segmentValue: Record<string, any>;
|
|
88
|
+
customSegment?: string | undefined;
|
|
89
|
+
readOnly: boolean;
|
|
90
|
+
singleSelect: boolean;
|
|
91
|
+
inheritValueFromAccrual?: boolean;
|
|
92
|
+
vatSelectonActive?: boolean;
|
|
93
|
+
additionalAccounts: string[];
|
|
94
|
+
segmentExtension: boolean;
|
|
95
|
+
id: string;
|
|
96
|
+
}[];
|
|
97
|
+
cashCols: string[];
|
|
98
|
+
cashHasMultiSelect: boolean;
|
|
99
|
+
busnessRuleErrors: Record<string, string[]>;
|
|
100
|
+
validationErrors: import("ngx-t-forms-types").MscoaValuetValidationErrors;
|
|
101
|
+
validatingValue: boolean;
|
|
106
102
|
}>;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
103
|
+
private readonly cdr;
|
|
104
|
+
private readonly dialog;
|
|
105
|
+
private _formBuilderFunctions;
|
|
106
|
+
private _config;
|
|
107
|
+
private previousInputsHash;
|
|
108
|
+
inputPortals: {
|
|
109
|
+
[key: string]: ComponentPortal<any>;
|
|
110
|
+
};
|
|
111
|
+
editSelection: ExtendedTableRow | undefined;
|
|
112
|
+
activeColumn: string | undefined;
|
|
113
|
+
isCashSelection: boolean | undefined;
|
|
114
|
+
temporaryHintMessage: string | null;
|
|
115
|
+
temporaryHintType: 'info' | 'guidance';
|
|
116
|
+
showValidationSuccessIndicators: boolean;
|
|
117
|
+
private prevValidating;
|
|
118
|
+
dualBasisExpansion: DualBasisExpansionState;
|
|
119
|
+
countdownSeconds: CountdownSeconds;
|
|
120
|
+
hoveredInputId: string | null;
|
|
121
|
+
readonly COLUMNS: {
|
|
122
|
+
readonly SEGMENT: "segment";
|
|
123
|
+
readonly DEBIT: "debit";
|
|
124
|
+
readonly CREDIT: "credit";
|
|
125
|
+
readonly VAT: "vat";
|
|
114
126
|
};
|
|
115
|
-
|
|
127
|
+
readonly ACCOUNTING_BASIS: {
|
|
128
|
+
readonly ACCRUAL: "accrual";
|
|
129
|
+
readonly CASH: "cash";
|
|
130
|
+
readonly DUAL: "dual";
|
|
131
|
+
};
|
|
132
|
+
readonly DELETION_COUNTDOWN_SECONDS = 5;
|
|
133
|
+
readonly getToolbarColor: typeof getToolbarColor;
|
|
134
|
+
readonly isSegmentColumn: typeof isSegmentColumn;
|
|
135
|
+
readonly getHeaderText: typeof getHeaderText;
|
|
136
|
+
readonly hasInnerInput: typeof hasInnerInput;
|
|
137
|
+
readonly shouldShowAutoSelectedLabel: typeof shouldShowAutoSelectedLabel;
|
|
138
|
+
readonly shouldShowDropdownIcon: typeof shouldShowDropdownIcon;
|
|
139
|
+
readonly getErrorColor: typeof getErrorColor;
|
|
140
|
+
readonly hasError: typeof hasError;
|
|
141
|
+
readonly shouldShowVatChip: typeof shouldShowVatChip;
|
|
142
|
+
readonly shouldShowTable: typeof shouldShowTable;
|
|
143
|
+
/**
|
|
144
|
+
* Gets the success message for a specific accounting basis
|
|
145
|
+
*/
|
|
146
|
+
getSuccessMessage(messages: Record<string, string | null> | null, basis: string): string | null;
|
|
147
|
+
constructor(store: MscoaComponentStore, injector: Injector);
|
|
148
|
+
inputConfig: ITowerStepColumn;
|
|
149
|
+
editorMode: boolean;
|
|
150
|
+
readonly: boolean;
|
|
151
|
+
touched: boolean;
|
|
152
|
+
formGroup: FormGroup | undefined | null;
|
|
153
|
+
set formBuilderFunctions(func: FormBuilderFunctions | undefined);
|
|
154
|
+
get formBuilderFunctions(): FormBuilderFunctions | undefined;
|
|
155
|
+
set segmentValues(segmentValues: {
|
|
156
|
+
accrual?: ScoaSegmentValue | undefined;
|
|
157
|
+
cash?: ScoaSegmentValue;
|
|
158
|
+
} | null);
|
|
159
|
+
set config(config: IScoaInputConfig | undefined | null);
|
|
160
|
+
get config(): IScoaInputConfig | undefined | null;
|
|
161
|
+
onContainerClick: EventEmitter<MouseEvent>;
|
|
162
|
+
segmentValuesChanged: EventEmitter<ScoaSegmentValue>;
|
|
163
|
+
interaction: EventEmitter<string>;
|
|
164
|
+
ngOnInit(): void;
|
|
165
|
+
ngOnDestroy(): void;
|
|
166
|
+
/**
|
|
167
|
+
* Sets the component as touched and emits the event
|
|
168
|
+
*/
|
|
169
|
+
setAsTouched(ev: MouseEvent | Event): void;
|
|
170
|
+
/**
|
|
171
|
+
* Optimized portal setup - only recreates portals when inputs actually change
|
|
172
|
+
*/
|
|
173
|
+
private setupPortals;
|
|
174
|
+
/**
|
|
175
|
+
* Creates a hash of inputs array for comparison
|
|
176
|
+
*/
|
|
177
|
+
private getInputsHash;
|
|
178
|
+
/**
|
|
179
|
+
* Generates a consistent portal key for an input
|
|
180
|
+
*/
|
|
181
|
+
getPortalKey(inputId: string): string;
|
|
182
|
+
/**
|
|
183
|
+
* Helper to create an injector with properties to pass to the component
|
|
184
|
+
*/
|
|
185
|
+
private createInjectorWithProps;
|
|
186
|
+
/**
|
|
187
|
+
* Loads MSCOA data
|
|
188
|
+
*/
|
|
189
|
+
loadMscoa(functions: FormBuilderFunctions | undefined): void;
|
|
190
|
+
/**
|
|
191
|
+
* Handles segment change
|
|
192
|
+
*/
|
|
193
|
+
segmentChange(activeSegment: string): void;
|
|
194
|
+
/**
|
|
195
|
+
* Handles account number selection
|
|
196
|
+
*/
|
|
197
|
+
accountNumberSelected(account: IScoaAccount | undefined, segment: string, accountType?: string, isCash?: boolean): void;
|
|
198
|
+
/**
|
|
199
|
+
* Handles account selection
|
|
200
|
+
*/
|
|
201
|
+
selectAccount(row: ExtendedTableRow | undefined, col: string | undefined, cash?: boolean): void;
|
|
202
|
+
/**
|
|
203
|
+
* Opens SCOA selection dialog
|
|
204
|
+
*/
|
|
205
|
+
private openScoaSelection;
|
|
206
|
+
/**
|
|
207
|
+
* Handles dialog result and updates columns accordingly
|
|
208
|
+
*/
|
|
209
|
+
private handleDialogResult;
|
|
210
|
+
/**
|
|
211
|
+
* Resolves which columns should be updated based on selection type
|
|
212
|
+
*/
|
|
213
|
+
private resolveTargetColumns;
|
|
214
|
+
/**
|
|
215
|
+
* Gets extension pair for a column (e.g., bankChargesDebit -> bankChargesCredit)
|
|
216
|
+
*/
|
|
217
|
+
private getExtensionPair;
|
|
218
|
+
/**
|
|
219
|
+
* Resets selection state
|
|
220
|
+
*/
|
|
221
|
+
private resetSelectionState;
|
|
222
|
+
/**
|
|
223
|
+
* Opens input dialog
|
|
224
|
+
*/
|
|
225
|
+
private openInput;
|
|
226
|
+
/**
|
|
227
|
+
* Checks if selection should be disabled
|
|
228
|
+
*/
|
|
229
|
+
selectionDisabled(row: IAccountSegmentTreeKeys, col: any): boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Gets account field state
|
|
232
|
+
*/
|
|
233
|
+
getFields(row: any, col: string): import("./extractCols").AccountFieldState;
|
|
234
|
+
/**
|
|
235
|
+
* Checks if dual account basis is enabled
|
|
236
|
+
*/
|
|
237
|
+
get isDualAccountBasis(): boolean;
|
|
238
|
+
/**
|
|
239
|
+
* Toggles dual basis expansion
|
|
240
|
+
*/
|
|
241
|
+
toggleDualBasisExpansion(basis: string): void;
|
|
242
|
+
/**
|
|
243
|
+
* Gets expansion state for a basis
|
|
244
|
+
*/
|
|
245
|
+
getExpansionState(basis: string): boolean;
|
|
246
|
+
/**
|
|
247
|
+
* Input deletion methods
|
|
248
|
+
*/
|
|
249
|
+
inputWillBeRemovedIn(id: string): number | null;
|
|
250
|
+
removeInput(item: FormColumnInputs): void;
|
|
116
251
|
stopDeletion(id: string): void;
|
|
117
|
-
overId: string | null;
|
|
118
252
|
formDeleteInput(item: FormColumnInputs): void;
|
|
119
|
-
editInput(input:
|
|
120
|
-
|
|
253
|
+
editInput(input: FormColumnInputs): void;
|
|
254
|
+
/**
|
|
255
|
+
* TrackBy functions for performance
|
|
256
|
+
*/
|
|
257
|
+
trackByColumn(index: number, col: string): string;
|
|
258
|
+
trackByRow(index: number, row: ExtendedTableRow): string;
|
|
259
|
+
trackByError(index: number, error: string): string;
|
|
260
|
+
/**
|
|
261
|
+
* Handles input menu events
|
|
262
|
+
*/
|
|
263
|
+
onInputMenuEdit(input: FormColumnInputs): void;
|
|
264
|
+
onInputMenuDelete(input: FormColumnInputs): void;
|
|
265
|
+
onInputMenuCancelDelete(id: string): void;
|
|
266
|
+
onInputMenuHoverStart(id: string): void;
|
|
267
|
+
onInputMenuHoverEnd(): void;
|
|
268
|
+
/**
|
|
269
|
+
* Returns the business validation error for a cell. validationErrors is keyed by basis then by segment;
|
|
270
|
+
* each error has accountDimension (the column, e.g. "debit"). So we match row segment and col to that.
|
|
271
|
+
*/
|
|
272
|
+
getCellBusinessError(validationErrors: Record<string, Record<string, {
|
|
273
|
+
canOveride?: boolean;
|
|
274
|
+
accountDimension?: string;
|
|
275
|
+
message?: string;
|
|
276
|
+
}>> | undefined | null, basis: string, col: string, segment: string | undefined): {
|
|
277
|
+
canOveride: boolean;
|
|
278
|
+
accountDimension: string;
|
|
279
|
+
message: string;
|
|
280
|
+
} | null;
|
|
281
|
+
/**
|
|
282
|
+
* True when this table (basis) has at least one business rule error. When true, only cells with an error should be clickable.
|
|
283
|
+
*/
|
|
284
|
+
tableHasBusinessErrors(validationErrors: Record<string, Record<string, unknown>> | undefined | null, basis: string): boolean;
|
|
285
|
+
/**
|
|
286
|
+
* True when the cell should be disabled because the table has business errors and this cell is not one of them.
|
|
287
|
+
*/
|
|
288
|
+
isCellDisabledByBusinessErrors(validationErrors: Record<string, Record<string, {
|
|
289
|
+
canOveride?: boolean;
|
|
290
|
+
accountDimension?: string;
|
|
291
|
+
message?: string;
|
|
292
|
+
}>> | undefined | null, basis: string, col: string, segment: string | undefined): boolean;
|
|
293
|
+
/**
|
|
294
|
+
* Gets validation hint for a row/column combination
|
|
295
|
+
* Only shows hints when the selection value is entirely empty
|
|
296
|
+
*/
|
|
297
|
+
getValidationHint(row: ExtendedTableRow, col: string, basis: string): string | null;
|
|
298
|
+
/**
|
|
299
|
+
* Gets context-aware guidance hint based on current state
|
|
300
|
+
*/
|
|
301
|
+
getContextualGuidance(row: ExtendedTableRow, col: string, hasErrors: boolean): string | null;
|
|
302
|
+
/**
|
|
303
|
+
* Shows a temporary hint message
|
|
304
|
+
*/
|
|
305
|
+
showTemporaryHint(message: string, type?: 'info' | 'guidance'): void;
|
|
306
|
+
/**
|
|
307
|
+
* Clears temporary hint
|
|
308
|
+
*/
|
|
309
|
+
clearTemporaryHint(): void;
|
|
310
|
+
/**
|
|
311
|
+
* Checks if text is likely truncated (heuristic based on length)
|
|
312
|
+
*/
|
|
313
|
+
isTextTruncated(text: string | null | undefined): boolean;
|
|
314
|
+
/**
|
|
315
|
+
* Calculates column width percentage for proper space distribution
|
|
316
|
+
*/
|
|
317
|
+
getColumnWidthPercent(isSegment: boolean, totalColumns: number): number | null;
|
|
318
|
+
/**
|
|
319
|
+
* Gets formatted error context for a specific row/column
|
|
320
|
+
*/
|
|
321
|
+
getErrorContext(row: ExtendedTableRow, col: string, basis: string): ErrorContext;
|
|
322
|
+
/**
|
|
323
|
+
* Checks if there are errors for a specific row
|
|
324
|
+
*/
|
|
325
|
+
hasRowErrors(row: ExtendedTableRow, basis: string): boolean;
|
|
326
|
+
/**
|
|
327
|
+
* Handles keyboard navigation in table cells
|
|
328
|
+
*/
|
|
329
|
+
handleCellKeyDown(event: KeyboardEvent, row: ExtendedTableRow, col: string, isCash: boolean): void;
|
|
330
|
+
/**
|
|
331
|
+
* Focuses the next cell in the specified direction
|
|
332
|
+
*/
|
|
333
|
+
private focusNextCell;
|
|
121
334
|
static ɵfac: i0.ɵɵFactoryDeclaration<MscoaChartComponent, never>;
|
|
122
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MscoaChartComponent, "app-mscoa-chart", never, { "inputConfig": { "alias": "inputConfig"; "required": false; }; "editorMode": { "alias": "editorMode"; "required": false; }; "
|
|
335
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MscoaChartComponent, "app-mscoa-chart", never, { "inputConfig": { "alias": "inputConfig"; "required": false; }; "editorMode": { "alias": "editorMode"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "touched": { "alias": "touched"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "formBuilderFunctions": { "alias": "formBuilderFunctions"; "required": false; }; "segmentValues": { "alias": "segmentValues"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "onContainerClick": "onContainerClick"; "segmentValuesChanged": "segmentValuesChanged"; "interaction": "interaction"; }, never, never, true, never>;
|
|
123
336
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Constants for MSCOA Chart Component
|
|
3
|
+
*/
|
|
4
|
+
export declare const ACCOUNTING_BASIS: {
|
|
5
|
+
readonly ACCRUAL: "accrual";
|
|
6
|
+
readonly CASH: "cash";
|
|
7
|
+
readonly DUAL: "dual";
|
|
8
|
+
};
|
|
9
|
+
export type AccountingBasis = typeof ACCOUNTING_BASIS[keyof typeof ACCOUNTING_BASIS];
|
|
10
|
+
export declare const COLUMNS: {
|
|
11
|
+
readonly SEGMENT: "segment";
|
|
12
|
+
readonly DEBIT: "debit";
|
|
13
|
+
readonly CREDIT: "credit";
|
|
14
|
+
readonly VAT: "vat";
|
|
15
|
+
};
|
|
16
|
+
export type ColumnType = typeof COLUMNS[keyof typeof COLUMNS];
|
|
17
|
+
export declare const SEGMENT_TYPES: {
|
|
18
|
+
readonly ITEM: "ITEM";
|
|
19
|
+
};
|
|
20
|
+
export declare const DELETION_COUNTDOWN_SECONDS = 5;
|
|
21
|
+
export declare const DIALOG_CONFIG: {
|
|
22
|
+
readonly COMPUTATION: {
|
|
23
|
+
readonly minWidth: "fit-content";
|
|
24
|
+
readonly maxHeight: "98vh";
|
|
25
|
+
readonly height: "fit-content";
|
|
26
|
+
readonly panelClass: "mscoa-computation-dialog";
|
|
27
|
+
};
|
|
28
|
+
readonly INPUT: {
|
|
29
|
+
readonly minWidth: "368px";
|
|
30
|
+
readonly minHeight: "fit-content";
|
|
31
|
+
readonly maxHeight: "fit-content";
|
|
32
|
+
readonly height: "fit-content";
|
|
33
|
+
readonly panelClass: "mscoa-input-dialog";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const CSS_CUSTOM_PROPERTIES: {
|
|
37
|
+
readonly SPACING_XS: "--mscoa-chart-spacing-xs";
|
|
38
|
+
readonly SPACING_SM: "--mscoa-chart-spacing-sm";
|
|
39
|
+
readonly SPACING_MD: "--mscoa-chart-spacing-md";
|
|
40
|
+
readonly SPACING_LG: "--mscoa-chart-spacing-lg";
|
|
41
|
+
readonly BORDER_RADIUS: "--mscoa-chart-border-radius";
|
|
42
|
+
readonly TRANSITION: "--mscoa-chart-transition";
|
|
43
|
+
};
|
|
44
|
+
export declare const DEFAULT_EXPANSION_STATE: {
|
|
45
|
+
readonly cash: true;
|
|
46
|
+
readonly accrual: true;
|
|
47
|
+
};
|