tuain-ng-forms-lib 17.2.20 → 17.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/.browserslistrc +16 -0
  2. package/.yarn/cache/nanoid-npm-4.0.0-924f5c6312-7d5946df5c.zip +0 -0
  3. package/.yarn/cache/tslib-npm-2.4.1-36f0ed04db-19480d6e03.zip +0 -0
  4. package/.yarn/cache/yn-npm-5.0.0-b001dab23c-f0ec7710d3.zip +0 -0
  5. package/.yarn/install-state.gz +0 -0
  6. package/karma.conf.js +44 -0
  7. package/ng-package.json +11 -0
  8. package/package.json +2 -16
  9. package/src/lib/classes/forms/action.ts +117 -0
  10. package/src/lib/classes/forms/element.ts +26 -0
  11. package/src/lib/classes/forms/field.ts +522 -0
  12. package/src/lib/classes/forms/form.constants.ts +28 -0
  13. package/src/lib/classes/forms/form.ts +692 -0
  14. package/src/lib/classes/forms/piece-propagate.ts +47 -0
  15. package/src/lib/classes/forms/piece.ts +164 -0
  16. package/src/lib/classes/forms/section.ts +165 -0
  17. package/src/lib/classes/forms/subsection.ts +109 -0
  18. package/src/lib/classes/forms/table/action.ts +41 -0
  19. package/src/lib/classes/forms/table/column.ts +94 -0
  20. package/src/lib/classes/forms/table/row-data.ts +121 -0
  21. package/src/lib/classes/forms/table/table.ts +582 -0
  22. package/src/lib/components/elements/action.component.ts +70 -0
  23. package/src/lib/components/elements/field.component.ts +115 -0
  24. package/src/lib/components/elements/layout/element.component.ts +14 -0
  25. package/src/lib/components/elements/layout/form-error.component.ts +11 -0
  26. package/src/lib/components/elements/layout/form-header.component.ts +14 -0
  27. package/src/lib/components/elements/layout/piece.component.ts +60 -0
  28. package/src/lib/components/elements/layout/section.component.ts +52 -0
  29. package/src/lib/components/elements/layout/sub-section.component.ts +52 -0
  30. package/src/lib/components/elements/tables/table-record-action.component.ts +66 -0
  31. package/src/lib/components/elements/tables/table-record-field.component.ts +20 -0
  32. package/src/lib/components/elements/tables/table.component.ts +112 -0
  33. package/src/lib/components/forms/basic-form.ts +1464 -0
  34. package/src/lib/services/event-manager.service.ts +45 -0
  35. package/src/lib/services/file-manager.service.ts +7 -0
  36. package/src/lib/services/form-manager.service.ts +89 -0
  37. package/src/lib/services/icon-dictionary.service.ts +159 -0
  38. package/src/lib/tuain-ng-forms-lib.module.ts +40 -0
  39. package/{public-api.d.ts → src/public-api.ts} +5 -0
  40. package/src/test.ts +27 -0
  41. package/tsconfig.lib.json +15 -0
  42. package/tsconfig.lib.prod.json +10 -0
  43. package/tsconfig.spec.json +17 -0
  44. package/esm2022/lib/classes/forms/action.mjs +0 -106
  45. package/esm2022/lib/classes/forms/element.mjs +0 -25
  46. package/esm2022/lib/classes/forms/field.mjs +0 -473
  47. package/esm2022/lib/classes/forms/form.constants.mjs +0 -26
  48. package/esm2022/lib/classes/forms/form.mjs +0 -608
  49. package/esm2022/lib/classes/forms/piece-propagate.mjs +0 -39
  50. package/esm2022/lib/classes/forms/piece.mjs +0 -134
  51. package/esm2022/lib/classes/forms/section.mjs +0 -151
  52. package/esm2022/lib/classes/forms/subsection.mjs +0 -99
  53. package/esm2022/lib/classes/forms/table/action.mjs +0 -38
  54. package/esm2022/lib/classes/forms/table/column.mjs +0 -74
  55. package/esm2022/lib/classes/forms/table/row-data.mjs +0 -116
  56. package/esm2022/lib/classes/forms/table/table.mjs +0 -541
  57. package/esm2022/lib/components/elements/action.component.mjs +0 -70
  58. package/esm2022/lib/components/elements/field.component.mjs +0 -115
  59. package/esm2022/lib/components/elements/layout/element.component.mjs +0 -21
  60. package/esm2022/lib/components/elements/layout/form-error.component.mjs +0 -23
  61. package/esm2022/lib/components/elements/layout/form-header.component.mjs +0 -23
  62. package/esm2022/lib/components/elements/layout/piece.component.mjs +0 -64
  63. package/esm2022/lib/components/elements/layout/section.component.mjs +0 -56
  64. package/esm2022/lib/components/elements/layout/sub-section.component.mjs +0 -56
  65. package/esm2022/lib/components/elements/tables/table-record-action.component.mjs +0 -72
  66. package/esm2022/lib/components/elements/tables/table-record-field.component.mjs +0 -31
  67. package/esm2022/lib/components/elements/tables/table.component.mjs +0 -109
  68. package/esm2022/lib/components/forms/basic-form.mjs +0 -1399
  69. package/esm2022/lib/services/event-manager.service.mjs +0 -43
  70. package/esm2022/lib/services/file-manager.service.mjs +0 -7
  71. package/esm2022/lib/services/form-manager.service.mjs +0 -81
  72. package/esm2022/lib/tuain-ng-forms-lib.module.mjs +0 -71
  73. package/esm2022/public-api.mjs +0 -19
  74. package/esm2022/tuain-ng-forms-lib.mjs +0 -5
  75. package/fesm2022/tuain-ng-forms-lib.mjs +0 -4598
  76. package/fesm2022/tuain-ng-forms-lib.mjs.map +0 -1
  77. package/index.d.ts +0 -5
  78. package/lib/classes/forms/action.d.ts +0 -40
  79. package/lib/classes/forms/element.d.ts +0 -9
  80. package/lib/classes/forms/field.d.ts +0 -206
  81. package/lib/classes/forms/form.constants.d.ts +0 -25
  82. package/lib/classes/forms/form.d.ts +0 -232
  83. package/lib/classes/forms/piece-propagate.d.ts +0 -13
  84. package/lib/classes/forms/piece.d.ts +0 -51
  85. package/lib/classes/forms/section.d.ts +0 -43
  86. package/lib/classes/forms/subsection.d.ts +0 -42
  87. package/lib/classes/forms/table/action.d.ts +0 -16
  88. package/lib/classes/forms/table/column.d.ts +0 -33
  89. package/lib/classes/forms/table/row-data.d.ts +0 -14
  90. package/lib/classes/forms/table/table.d.ts +0 -145
  91. package/lib/components/elements/action.component.d.ts +0 -22
  92. package/lib/components/elements/field.component.d.ts +0 -47
  93. package/lib/components/elements/layout/element.component.d.ts +0 -8
  94. package/lib/components/elements/layout/form-error.component.d.ts +0 -8
  95. package/lib/components/elements/layout/form-header.component.d.ts +0 -9
  96. package/lib/components/elements/layout/piece.component.d.ts +0 -18
  97. package/lib/components/elements/layout/section.component.d.ts +0 -13
  98. package/lib/components/elements/layout/sub-section.component.d.ts +0 -13
  99. package/lib/components/elements/tables/table-record-action.component.d.ts +0 -18
  100. package/lib/components/elements/tables/table-record-field.component.d.ts +0 -12
  101. package/lib/components/elements/tables/table.component.d.ts +0 -44
  102. package/lib/components/forms/basic-form.d.ts +0 -256
  103. package/lib/services/event-manager.service.d.ts +0 -11
  104. package/lib/services/file-manager.service.d.ts +0 -6
  105. package/lib/services/form-manager.service.d.ts +0 -28
  106. package/lib/tuain-ng-forms-lib.module.d.ts +0 -20
package/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="tuain-ng-forms-lib" />
5
- export * from './public-api';
@@ -1,40 +0,0 @@
1
- import { FormElement } from './element';
2
- export declare class FormAction extends FormElement {
3
- private readonly _actionActivated;
4
- private _actionCode;
5
- private _actionName;
6
- private _iconName;
7
- private _inProgress;
8
- private _newState;
9
- private _backend;
10
- private _restrictedOnField;
11
- private _restrictedOnOperator;
12
- private _restrictedOnValue;
13
- constructor(actionDefinition: any, formConfig: any);
14
- get actionCode(): string;
15
- get actionName(): string;
16
- get iconName(): string;
17
- get inProgress(): boolean;
18
- get newState(): string;
19
- get backend(): boolean;
20
- get restrictedOnField(): string;
21
- get restrictedOnOperator(): string;
22
- get restrictedOnValue(): string;
23
- set actionCode(actionCode: string);
24
- set actionName(actionName: string);
25
- set iconName(iconName: string);
26
- set inProgress(inProgress: boolean);
27
- set newState(newState: string);
28
- set backend(backend: boolean);
29
- set restrictedOnField(restrictedOnField: string);
30
- set restrictedOnOperator(restrictedOnOperator: string);
31
- set restrictedOnValue(restrictedOnValue: string);
32
- start(): void;
33
- stop(): void;
34
- connectWithParentForm(form: any, formChangeSubject: any): void;
35
- updateRestrictedVisibility(event: any): void;
36
- viewOnState(state: string): boolean;
37
- get actionActivated(): import("rxjs").Observable<string>;
38
- notifyActivation(): void;
39
- updateFromServer(receivedAction: any): void;
40
- }
@@ -1,9 +0,0 @@
1
- import { FormPiecePropagate } from './piece-propagate';
2
- export declare class FormElement extends FormPiecePropagate {
3
- elementType: string | null;
4
- constructor(elementDefinition: any, formConfig: any);
5
- setAttr(attr: any, value: any): void;
6
- isField(): boolean;
7
- isAction(): boolean;
8
- isTable(): boolean;
9
- }
@@ -1,206 +0,0 @@
1
- import { FormElement } from './element';
2
- export interface DetailEvent {
3
- code: string;
4
- detail: any;
5
- }
6
- export interface FieldOption {
7
- fieldOptionValue: string;
8
- fieldOptionId: string;
9
- }
10
- export declare class FieldDescriptor extends FormElement {
11
- private readonly _customEvent;
12
- private readonly _editionFinish;
13
- private readonly _editionPartial;
14
- private readonly _detailRequest;
15
- private _errorType;
16
- private _errorCode;
17
- private _errorMessage;
18
- private _intrinsicErrorMessage;
19
- private _minValue;
20
- private _maxValue;
21
- private _maxLength;
22
- private _minLength;
23
- private _focus;
24
- private _onValidation;
25
- private _validateOnServer;
26
- private _value;
27
- private _visibleLabel;
28
- private _captureType;
29
- private _defaultValue;
30
- private _defaultEditable;
31
- private _externalValue;
32
- private _fieldAlignment;
33
- private _fieldInfo;
34
- private _fieldRequired;
35
- private _fieldTitle;
36
- private _fieldType;
37
- private _fieldFormat;
38
- private _hasChanged;
39
- private _outputOnly;
40
- private _tooltipText;
41
- private _placeholder;
42
- private _fieldCode;
43
- private _fieldOptions;
44
- constructor(inputFieldReceived: any, formConfig: any);
45
- get alignment(): string;
46
- set alignment(alignment: string);
47
- get backend(): boolean;
48
- get captureType(): string;
49
- set captureType(captureType: string);
50
- get placeholder(): string;
51
- set placeholder(placeholder: string);
52
- get code(): string;
53
- get defaultValue(): any;
54
- set defaultValue(defaultValue: any);
55
- get defaultEditable(): boolean;
56
- set defaultEditable(editable: boolean);
57
- get detailRequest(): import("rxjs").Observable<DetailEvent>;
58
- get customEvent(): import("rxjs").Observable<any>;
59
- get editionFinish(): import("rxjs").Observable<any>;
60
- get editionPartial(): import("rxjs").Observable<any>;
61
- get empty(): boolean;
62
- get error(): {
63
- type: string;
64
- code: string;
65
- message: string;
66
- };
67
- set error(errorObj: {
68
- type: string;
69
- code: string;
70
- message: string;
71
- });
72
- get errorCode(): string;
73
- set errorCode(code: string);
74
- get errorMessage(): string;
75
- set errorMessage(msg: string);
76
- get errorType(): string;
77
- get externalValue(): any;
78
- get format(): RegExp;
79
- set format(format: RegExp);
80
- get hasChanged(): boolean;
81
- set hasChanged(hasChanged: boolean);
82
- get info(): string;
83
- set info(newInfo: string);
84
- set intrinsicErrorMessage(message: string);
85
- get maxLength(): any;
86
- set maxLength(requiredMaxLength: any);
87
- get maxValue(): any;
88
- set maxValue(inputMaxValue: any);
89
- get minLength(): number;
90
- set minLength(requiredMinLength: number);
91
- get minValue(): any;
92
- set minValue(inputMinValue: any);
93
- get name(): string;
94
- get options(): FieldOption[] | null;
95
- set options(newOptions: FieldOption[] | null);
96
- get optionText(): string;
97
- get outputOnly(): boolean;
98
- set outputOnly(outputOnly: boolean);
99
- get required(): boolean;
100
- set required(required: boolean);
101
- get title(): string;
102
- set title(title: string);
103
- get tooltip(): string;
104
- set tooltip(tooltip: string);
105
- get type(): string;
106
- set type(fieldType: string);
107
- get onValidation(): boolean;
108
- get validating(): boolean;
109
- set validating(isValidating: boolean);
110
- get value(): any;
111
- get validateOnServer(): boolean;
112
- set validateOnServer(validateOnServer: boolean);
113
- get serverAction(): boolean;
114
- set serverAction(validateOnServer: boolean);
115
- set value(newValue: any);
116
- get visibleLabel(): boolean;
117
- set visibleLabel(visibleLabel: boolean);
118
- /**
119
- * @deprecated Use value
120
- */
121
- get fieldValue(): any;
122
- /**
123
- * @deprecated Use hasChanged
124
- */
125
- changed(hasChanged?: boolean): void;
126
- clean(): void;
127
- focus(): void;
128
- getErrorCode(): string;
129
- setErrorCode(code: any): void;
130
- getErrorMessage(): string;
131
- setErrorMessage(msg: any): void;
132
- getRequired(): boolean;
133
- hasError(): boolean;
134
- hideLabel(): void;
135
- resetError(): void;
136
- setEditable(editable?: boolean): void;
137
- setValue(newValue: any, widgetUpdate?: boolean): void;
138
- showLabel(): void;
139
- /**
140
- * @deprecated Use code
141
- */
142
- get fieldCode(): string;
143
- /**
144
- * @deprecated Use title
145
- */
146
- setLabel(label: any): void;
147
- /**
148
- * @deprecated Use required
149
- */
150
- setRequired(required: boolean): void;
151
- /**
152
- * @deprecated Use changed
153
- */
154
- setChanged(hasChanged: boolean): void;
155
- /**
156
- * @deprecated Use value
157
- */
158
- getValue(): any;
159
- /**
160
- * @deprecated Use empty
161
- */
162
- isEmpty(): boolean;
163
- /**
164
- * @deprecated Use error
165
- */
166
- getError(): {
167
- type: string;
168
- code: string;
169
- message: string;
170
- };
171
- /**
172
- * @deprecated Use optionText
173
- */
174
- getOptionText(): string;
175
- /**
176
- * @deprecated Use options
177
- */
178
- getFieldOptions(): FieldOption[];
179
- /**
180
- * @deprecated Use options
181
- */
182
- setFieldOptions(newOptions: any): any;
183
- /**
184
- * @deprecated Use intrinsicErrorMessage
185
- */
186
- setIntrinsicErrorMessage(message: string): void;
187
- /**
188
- * @deprecated Use maxValue
189
- */
190
- setMaxValue(inputMaxValue: any): void;
191
- /**
192
- * @deprecated Use minValue
193
- */
194
- setMinValue(inputMinValue: any): void;
195
- /**
196
- * @deprecated Use showLabel
197
- */
198
- setVisibleLabel(visibleLabel: boolean): void;
199
- notifyEditionPartial(): void;
200
- triggerCustomEvent(eventName: any, eventData: any): void;
201
- notifyEditionFinish(): void;
202
- notifyEditionDetailRequest(detail: any): void;
203
- setError(code: any, message: any, type?: string): void;
204
- updateFromServer(fld: any): void;
205
- private _setValue;
206
- }
@@ -1,25 +0,0 @@
1
- export declare const NO_ERROR = "00";
2
- export declare const HEADER = "HEADER";
3
- export declare const elementTypes: {
4
- action: string;
5
- field: string;
6
- table: string;
7
- };
8
- export declare const formActions: {
9
- tableAction: string;
10
- getData: string;
11
- getTableData: string;
12
- validate: string;
13
- };
14
- export declare const operators: {
15
- G: string;
16
- L: string;
17
- GE: string;
18
- LE: string;
19
- EQ: string;
20
- NEQ: string;
21
- HAS: string;
22
- NOTHAS: string;
23
- BETWEEN: string;
24
- IN: string;
25
- };
@@ -1,232 +0,0 @@
1
- import { FormAction } from './action';
2
- import { FieldDescriptor, FieldOption } from './field';
3
- import { RecordTable } from './table/table';
4
- import { RecordFormSection } from './section';
5
- import { RecordFormSubSection } from './subsection';
6
- import { TableRecordData } from './table/row-data';
7
- interface Transition {
8
- name: string;
9
- source: string;
10
- destination: string;
11
- }
12
- interface StateFlow {
13
- defaultState: string;
14
- states: string[];
15
- stateDescriptions: string[];
16
- transitions: Transition[];
17
- }
18
- export interface FieldPayload {
19
- fieldCode: string;
20
- fieldValue: any;
21
- editable: boolean;
22
- visible: boolean;
23
- required: boolean;
24
- fieldOptions: string;
25
- }
26
- export interface TablePayload {
27
- tableCode: string;
28
- visible: boolean;
29
- currentPage: number;
30
- requestedPage: number;
31
- recordsPerPage: number;
32
- currentFilter: any;
33
- sortingColumn: string;
34
- sortingDirection: string;
35
- }
36
- export declare class FormStructureAndData {
37
- private readonly _stateChange;
38
- private _immutableData;
39
- private _extraInfo;
40
- private _exclusiveSectionsByAttr;
41
- protected loadInitialData: boolean;
42
- protected subject: string | null;
43
- protected stateFlow: StateFlow;
44
- protected fields: {};
45
- protected actions: {};
46
- protected tables: {};
47
- protected sections: {};
48
- protected fieldArray: FieldDescriptor[];
49
- protected actionArray: FormAction[];
50
- protected tableArray: RecordTable[];
51
- protected sectionArray: RecordFormSection[];
52
- customAttributes: any;
53
- formConfig: any;
54
- state: string;
55
- name: string;
56
- title: string;
57
- constructor();
58
- setConfig(formConfig: any): void;
59
- cleanForm(): void;
60
- loadDefinition(definitionReceived: any): void;
61
- get defaultState(): string;
62
- get states(): any[];
63
- get stateDescriptions(): any[];
64
- supportState(state?: string): boolean;
65
- getNextStates(): string[];
66
- changeState(newState: string): boolean;
67
- get stateChange(): import("rxjs").Observable<any>;
68
- setStateFlow(states?: any, transitions?: any, defaultState?: string, stateDescriptions?: any[]): void;
69
- getImmutableElement(name: string): any;
70
- set immutableData(immutableData: any);
71
- get immutableData(): any;
72
- getExtraInfo(name: string): any;
73
- set extraInfo(extraInfo: any);
74
- get extraInfo(): any;
75
- getCustomAttribute(name: string): any;
76
- setCustomAttribute(name: string, value: any): void;
77
- setCustomAttributes(attributes: any): FormStructureAndData;
78
- get fieldNames(): string[];
79
- getFields(): FieldDescriptor[];
80
- getFieldNames(): string[];
81
- getField(code: string): FieldDescriptor;
82
- enableField(code: string): void;
83
- disableField(code: string): void;
84
- getFieldValue(code: string): any;
85
- getFieldOptionText(code: string): any;
86
- getFieldOptions(code: string): FieldOption[] | null;
87
- setFieldValue(code: string, value: any): any;
88
- setFieldError(code: string, errorCode: string, message: string, type?: string): any;
89
- setFieldIntrinsicErrorMessage(code: string, message: string): any;
90
- setFieldRequired(inputCodes: string[] | string | null, required: boolean): any;
91
- setFieldErrorMessage(code: string, message: string): any;
92
- setFieldOptions(code: string, optionsArray: any[], idAttribute: string, valueAttribute: string | string[], saparator?: string): any;
93
- getFieldSet(filter: any, inputCodes: string[] | string | null, secCode?: string | null, subCode?: string | null): string[];
94
- applyOnFields(processFunc: any, inputCodes?: string[] | string | null, secCode?: string, subCode?: string): number;
95
- applyProcessToAllFields(processFunc: any): number;
96
- enableFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
97
- showFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
98
- hideFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
99
- showLabelFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
100
- hideLabelFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
101
- disableFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
102
- cleanFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
103
- tagFieldsWithError(message: string, codes?: string[] | string | null, secCode?: string, subCode?: string): number;
104
- cleanErrorFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
105
- tagEmptyRequiredFields(message: string, codes?: any, secCode?: string, subCode?: string): boolean;
106
- getRequiredFields(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
107
- getRequiredEmptyFields(codes?: string[] | string | null, secCode?: string, subCode?: string, onlyVisible?: boolean): string[];
108
- getChangedFields(codes?: string[] | string | null, secCode?: string, subCode?: string): string[];
109
- getFieldsWithValidationIssues(codes?: string[] | string | null, secCode?: string, subCode?: string, onlyVisible?: boolean): string[];
110
- getFieldsValues(inputCodes?: string[] | string | null, secCode?: string, subCode?: string): any;
111
- getActions(): FormAction[];
112
- getAction(code: string): FormAction;
113
- showActions(codes: string[] | string): void;
114
- hideActions(codes: string[] | string): void;
115
- enableActions(codes: string[] | string): void;
116
- disableActions(codes: string[] | string): void;
117
- enableAction(code: string): void;
118
- disableAction(code: string): void;
119
- showAction(code: string): void;
120
- hideAction(code: string): void;
121
- getHeaderActions(): FormAction[];
122
- getActionsByAttribute(name: string, value: any): FormAction[];
123
- execOnActions(codes: string[] | string | null, functionName: string): void;
124
- getTables(): RecordTable[];
125
- getTable(code: string): RecordTable;
126
- getTableRecord(code: string, id: string): TableRecordData;
127
- enableTables(codes: string[] | string): void;
128
- disableTables(codes: string[] | string): void;
129
- showTables(codes: string[] | string): void;
130
- hideTables(codes: string[] | string): void;
131
- cleanTables(codes: string[] | string): void;
132
- showTable(code: string): void;
133
- hideTable(code: string): void;
134
- cleanTable(code: string): void;
135
- execOnTables(codes: string[] | string | null, functionName: string): void;
136
- getSections(): RecordFormSection[];
137
- getSectionsTitles(): string[];
138
- numSections(): number;
139
- getSectionsByAttribute(name: any, value: any): RecordFormSection[];
140
- get sectionTitles(): string[];
141
- get visibleSections(): RecordFormSection[];
142
- getSection(code: string): RecordFormSection;
143
- showSections(codes: string[] | string): void;
144
- hideSections(codes: string[] | string): void;
145
- showSection(code: string): void;
146
- hideSection(code: string): void;
147
- activeSection(): string;
148
- getSubSection(code: string, subCode: any): RecordFormSubSection;
149
- showSubSections(code: string, subCodes: string[] | string): void;
150
- showSubSection(code: string, subCode: string): void;
151
- hideSubSection(code: string, subCode: string): void;
152
- hideSubSections(code: string, subCodes: string[] | string): void;
153
- getSectionActions(code: any): FormAction[];
154
- getSectionActionNames(code: any): string[];
155
- activateSection(code: string): void;
156
- execOnSections(codes: string[] | string | null, functionName: string): void;
157
- execOnSubSections(code: string, subNames: string[] | string | null, functionName: string): void;
158
- /**
159
- * Métodos propios de gestión del formulario
160
- */
161
- cleanData(): void;
162
- getPayload(): any;
163
- /**
164
- * @deprecated Use subject
165
- */
166
- get formSubject(): string;
167
- /**
168
- * @deprecated Use subject
169
- */
170
- set formSubject(subject: string);
171
- /**
172
- * @deprecated Use states
173
- */
174
- getStates(): any[];
175
- /**
176
- * @deprecated Use state
177
- */
178
- getCurrentState(): string;
179
- /**
180
- * @deprecated Use title
181
- */
182
- getTitle(): string;
183
- /**
184
- * @deprecated Use title
185
- */
186
- setTitle(title: string): void;
187
- /**
188
- * @deprecated Use supportState
189
- */
190
- supportMode(state: string): boolean;
191
- /**
192
- * @deprecated Use enableFields
193
- */
194
- enableEditFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
195
- /**
196
- * @deprecated Use disableFields
197
- */
198
- disableEditFields(codes?: string[] | string | null, secCode?: string, subCode?: string): number;
199
- /**
200
- * @deprecated Use getField
201
- */
202
- getFieldObject(code: string): FieldDescriptor | null;
203
- /**
204
- * @deprecated Use getAction
205
- */
206
- getActionObject(code: string): FormAction | null;
207
- /**
208
- * @deprecated Use getTable
209
- */
210
- getTableObject(code: string): RecordTable | null;
211
- /**
212
- * @deprecated Use getSection
213
- */
214
- getSectionObject(code: string): RecordFormSection | null;
215
- /**
216
- * @deprecated Use changeState
217
- */
218
- changeFormMode(state: string): boolean;
219
- /**
220
- * @deprecated Use subject
221
- */
222
- getFormSubject(): string;
223
- /**
224
- * @deprecated Use subject
225
- */
226
- getSubject(): string;
227
- /**
228
- * @deprecated Use subject
229
- */
230
- getformSubject(): string;
231
- }
232
- export {};
@@ -1,13 +0,0 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import { FormPiece } from './piece';
3
- export declare class FormPiecePropagate extends FormPiece {
4
- protected propagationCustomAttributes: string[];
5
- protected _attributeChange: BehaviorSubject<any>;
6
- constructor(pieceDefinition: any, formConfig: any);
7
- get attributeChange(): import("rxjs").Observable<any>;
8
- propagateAttribute(name: any, value: any): void;
9
- setCustomAttribute(name: string, value: any): void;
10
- setVisibility(visible: boolean, forced?: boolean | null): void;
11
- set enabled(enabled: any);
12
- formStateChange(state: any): void;
13
- }
@@ -1,51 +0,0 @@
1
- export declare class FormPiece {
2
- private destroy$;
3
- protected _formState: string;
4
- protected _visibleForced: boolean;
5
- protected _isForced: boolean;
6
- protected _absoluteVisible: boolean;
7
- protected _absoluteDisabled: boolean;
8
- protected _widget: any;
9
- protected visibleStates: string[];
10
- protected enabledStates: string[];
11
- _form: any;
12
- _formConfig: any;
13
- _visible: boolean;
14
- _disabled: boolean;
15
- customAttributes: any;
16
- constructor(pieceDefinition: any, formConfig: any);
17
- getCustomAttribute(name: string): any;
18
- setCustomAttribute(name: string, value: any): void;
19
- setCustomAttributes(attributes: any): FormPiece;
20
- matchAttribute(name: string, value: string): boolean;
21
- setVisibleStates(newStates: any): void;
22
- addVisibleState(state: string): void;
23
- removeVisibleState(state: string): void;
24
- setEnabledStates(newStates: any): void;
25
- addEnabledState(state: string): void;
26
- removeEnabledState(state: string): void;
27
- viewOnState(state: string): boolean;
28
- enabledOnState(state: string): boolean;
29
- get absoluteVisible(): boolean;
30
- get absoluteDisabled(): boolean;
31
- get visible(): boolean;
32
- set visible(visible: boolean);
33
- visibleOn(state: string): boolean;
34
- enabledOn(state: string): boolean;
35
- setVisibility(visible: boolean, forced?: boolean | null): void;
36
- show(forced?: boolean | null): void;
37
- hide(forced?: boolean | null): void;
38
- get enabled(): boolean;
39
- set enabled(enabled: boolean);
40
- get editable(): boolean;
41
- get disabled(): boolean;
42
- set disabled(disabled: boolean);
43
- enable(): void;
44
- disable(): void;
45
- formStateChangeCustomSubscribe(form: any, formChangeSubject: any): void;
46
- formStateChange(state: any): void;
47
- connectWithParentForm(form: any, formChangeSubject: any): void;
48
- set widget(widget: any);
49
- get widget(): any;
50
- destroy(): void;
51
- }
@@ -1,43 +0,0 @@
1
- import { FormPiecePropagate } from './piece-propagate';
2
- import { FormAction } from './action';
3
- import { RecordFormSubSection } from './subsection';
4
- export declare class RecordFormSection extends FormPiecePropagate {
5
- private readonly _activation;
6
- private readonly _inactivation;
7
- private _active;
8
- private _sectionId;
9
- private _sectionCode;
10
- private _sectionTitle;
11
- private _subSections;
12
- private _subSectionsObj;
13
- private _exclusiveSubSectionsByAttr;
14
- constructor(sectionReceived: any, formObject: any, formConfig: any);
15
- get code(): string;
16
- get activation(): import("rxjs").Observable<string>;
17
- get inactivation(): import("rxjs").Observable<string>;
18
- get active(): boolean;
19
- get sectionId(): string;
20
- get sectionCode(): string;
21
- get sectionTitle(): string;
22
- get subSections(): RecordFormSubSection[];
23
- get subSectionsObj(): any;
24
- set active(active: boolean);
25
- set sectionId(sectionId: string);
26
- set sectionCode(sectionCode: string);
27
- set sectionTitle(sectionTitle: string);
28
- set subSections(subSections: RecordFormSubSection[]);
29
- set subSectionsObj(subSectionsObj: any);
30
- activate(): void;
31
- inactivate(): void;
32
- get title(): string;
33
- set title(title: string);
34
- getVisibleSubsections(state: any): RecordFormSubSection[];
35
- getSubsection(subSectionCode: any): any;
36
- activateSubSection(subSectionCode: any): void;
37
- getFields(): any[];
38
- getActions(): FormAction[];
39
- getActionNames(): string[];
40
- getFieldNames(): string[];
41
- getField(name: any): any;
42
- formStateChangeCustomSubscribe(form: any, formChangeSubject: any): void;
43
- }
@@ -1,42 +0,0 @@
1
- import { FormPiecePropagate } from './piece-propagate';
2
- import { FormAction } from './action';
3
- export declare class RecordFormSubSection extends FormPiecePropagate {
4
- private _customRender;
5
- private _subsectionId;
6
- private _subsectionCode;
7
- private _subsectionTitle;
8
- private _subSectionElements;
9
- private _subSectionFields;
10
- private _subSectionTables;
11
- private _subSectionActions;
12
- private _elementsArray;
13
- private _active;
14
- constructor(subsectionReceived: any, formObject: any, formConfig: any);
15
- get customRender(): string;
16
- set customRender(customRenderName: string);
17
- get subsectionId(): string;
18
- get subsectionCode(): string;
19
- get subsectionTitle(): string;
20
- get subSectionElements(): any[];
21
- get subSectionFields(): any[];
22
- get subSectionTables(): any[];
23
- get subSectionActions(): any[];
24
- get elementsArray(): any;
25
- get active(): boolean;
26
- set subsectionId(subsectionId: string);
27
- set subsectionCode(subsectionCode: string);
28
- set subsectionTitle(subsectionTitle: string);
29
- set subSectionElements(subSectionElements: any[]);
30
- set subSectionFields(subSectionFields: any[]);
31
- set subSectionTables(subSectionTables: any[]);
32
- set subSectionActions(subSectionActions: any[]);
33
- set elementsArray(elementsArray: any);
34
- set active(active: boolean);
35
- getField(name: any): any;
36
- getFields(): any[];
37
- getFieldNames(): any[];
38
- getActions(): FormAction[];
39
- getActionNames(): string[];
40
- activate(): void;
41
- inactivate(): void;
42
- }
@@ -1,16 +0,0 @@
1
- import { FormPiece } from '../piece';
2
- export declare class TableAction extends FormPiece {
3
- actionCode: string;
4
- actionTitle: string;
5
- iconName: string;
6
- actionType: string;
7
- actionClass: string;
8
- stateField: string;
9
- newState: string;
10
- backend: boolean;
11
- restrictedOnField: string | null;
12
- restrictedOnValue: string | null;
13
- restrictedOnOperator: string | null;
14
- constructor(actionDefinition: any, formConfig: any);
15
- formStateChange(state: any): void;
16
- }