tuain-ng-forms-lib 0.12.3 → 0.12.8

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 (25) hide show
  1. package/bundles/tuain-ng-forms-lib.umd.js +317 -530
  2. package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
  3. package/esm2015/lib/components/elements/action.component.js +44 -0
  4. package/esm2015/lib/components/elements/field.component.js +38 -0
  5. package/esm2015/lib/components/elements/layout/form-header.component.js +1 -7
  6. package/esm2015/lib/components/elements/tables/table-record-action.component.js +3 -18
  7. package/esm2015/lib/components/forms/basic-form.js +17 -16
  8. package/esm2015/lib/services/event-manager.service.js +3 -3
  9. package/esm2015/lib/tuain-ng-forms-lib.module.js +3 -5
  10. package/esm2015/public-api.js +3 -5
  11. package/fesm2015/tuain-ng-forms-lib.js +22 -227
  12. package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
  13. package/lib/components/elements/{actions/action.component.d.ts → action.component.d.ts} +0 -4
  14. package/lib/components/elements/{fields/field.component.d.ts → field.component.d.ts} +1 -1
  15. package/lib/components/elements/layout/form-header.component.d.ts +2 -5
  16. package/lib/components/elements/tables/table-record-action.component.d.ts +1 -4
  17. package/package.json +1 -1
  18. package/public-api.d.ts +2 -4
  19. package/tuain-ng-forms-lib.metadata.json +1 -1
  20. package/esm2015/lib/components/elements/actions/action.component.js +0 -53
  21. package/esm2015/lib/components/elements/fields/field.component.js +0 -38
  22. package/esm2015/lib/components/elements/fields/password.component.js +0 -18
  23. package/esm2015/lib/services/icon-dictionary.service.js +0 -161
  24. package/lib/components/elements/fields/password.component.d.ts +0 -6
  25. package/lib/services/icon-dictionary.service.d.ts +0 -157
@@ -4,171 +4,8 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['tuain-ng-forms-lib'] = {}, global.ng.core, global.rxjs, global.nanoid, global.ng.common, global.ng.router, global.ng.forms));
5
5
  }(this, (function (exports, core, rxjs, nanoid, common, router, forms) { 'use strict';
6
6
 
7
- var iconDictionary = {
8
- SELECT: 'icmn-pushpin',
9
- selectHolder: 'icmn-user-check',
10
- validateAML: 'icmn-warning',
11
- NEW: 'icmn-file-empty',
12
- 'FORM-CREATE': 'icmn-file-empty',
13
- 'FORM-EDIT': 'icmn-pencil2',
14
- 'FORM-VIEW': 'icmn-file-text2',
15
- SHIELD: 'fa fa-shield',
16
- LOGIN: 'fa fa-sign-in',
17
- LOGOUT: 'fa fa-sign-out',
18
- VIEW: 'icmn-eye',
19
- EDIT: 'icmn-pencil',
20
- DETAIL: 'icmn-binoculars',
21
- DELETE: 'icmn-bin',
22
- SERVERPROCESS: 'icmn-cloud-check',
23
- DEFAULT: 'icmn-home',
24
- HOME: 'icmn-home',
25
- IMAGE: 'icmn-image',
26
- PICTURE: 'icmn-camera',
27
- TEXT: 'icmn-file-text',
28
- MOVEUP: 'icmn-arrow-up',
29
- MOVEDOWN: 'icmn-arrow-down',
30
- NEWAFFILIATION: 'icmn-profile',
31
- AUTONEWAFFILIATION: 'icmn-profile',
32
- PROFILE: 'icmn-profile',
33
- ZIPFILE: 'icmn-file-zip',
34
- COPY: 'icmn-copy',
35
- FOLDER: 'icmn-folder-open',
36
- TAGS: 'icmn-price-tags',
37
- BARCODE: 'icmn-barcode',
38
- BARCODE2: 'fa fa-barcode',
39
- KEYBOARD: 'fa fa-keyboard-o',
40
- CART: 'icmn-cart',
41
- CAMARACOMERCIO: 'icmn-book',
42
- SARLAFT: 'icmn-binoculars',
43
- SCREENING: 'icmn-user-check',
44
- ENTITY: 'icmn-library',
45
- COIN: 'icmn-coin-dollar',
46
- CREDITCARD: 'icmn-credit-card',
47
- CONTACTS: 'icmn-address-book',
48
- LOCATION: 'icmn-location',
49
- CODES: 'icmn-file-text',
50
- BPMCODES: 'icmn-file-text2',
51
- MAIL: 'icmn-envelop',
52
- MAP: 'icmn-map',
53
- WARNING: 'icmn-warning',
54
- NOTIFICATION: 'icmn-notification',
55
- QUESTION: 'icmn-question',
56
- INFO: 'icmn-info',
57
- SAVE: 'icmn-floppy-disk',
58
- INBOXFULL: 'icmn-drawer',
59
- INBOXEMPTY: 'icmn-drawer2',
60
- DATABASE: 'icmn-database',
61
- UNDO: 'icmn-undo2',
62
- REDO: 'icmn-redo2',
63
- CHAT: 'icmn-bubbles4',
64
- BRIEFCASE: 'icmn-briefcase',
65
- USER: 'icmn-user',
66
- ADDUSER: 'icmn-user-plus',
67
- REMOVEUSER: 'icmn-user-minus',
68
- SPINNER: 'icmn-spiiner3',
69
- SEARCH: 'icmn-search',
70
- ZOOMIN: 'icmn-zoom-in',
71
- ZOOMOUT: 'icmn-zoom-out',
72
- KEY: 'icmn-key',
73
- LOCK: 'icmn-lock',
74
- lockDoc: 'icmn-lock',
75
- UNLOCK: 'icmn-unlocked',
76
- CONFIG: 'icmn-wrench',
77
- TUNE: 'icmn-equalizer',
78
- GEAR: 'icmn-cog',
79
- ADMIN: 'fa fa-cogs',
80
- LIST: 'icmn-list',
81
- FORMRECORD: 'icmn-insert-template',
82
- PIE: 'icmn-pie-chart',
83
- GRAPH: 'icmn-stats-dots',
84
- TROPHY: 'icmn-trophy',
85
- GIFT: 'icmn-gift',
86
- GAUGE: 'icmn-meter',
87
- FIRE: 'icmn-fire',
88
- LAB: 'icmn-lab',
89
- DELIVER: 'icmn-truck',
90
- MOBILE: 'icmn-mobile',
91
- MOBILE2: 'icmn-mobile',
92
- RECHARGE: 'icmn-power-cord',
93
- TREE: 'icmn-tree',
94
- EARTH: 'icmn-earth',
95
- TARGET: 'icmn-target',
96
- POWER: 'icmn-switch',
97
- VERIFY: 'icmn-clipboard',
98
- UPLOAD: 'icmn-cloud-upload',
99
- DOWNLOAD: 'icmn-cloud-download',
100
- DOWNLOADSET: 'icmn-cloud-download',
101
- LINK: 'icmn-link',
102
- ATACH: 'icmn-atachment',
103
- EYE: 'icmn-eye',
104
- NOEYE: 'icmn-eye-blocked',
105
- BOOKMARK: 'icmn-bookmark',
106
- STAR: 'icmn-star-full',
107
- HEART: 'icmn-heart',
108
- HEARTBROKEN: 'icmn-heart-broken',
109
- HAPPY: 'icmn-happy',
110
- SAD: 'icmn-sad',
111
- ACTIVATE: 'icmn-checkmark',
112
- INACTIVATE: 'icmn-cross',
113
- APPROVE: 'icmn-checkmark',
114
- REJECT: 'icmn-cross',
115
- CANCEL: 'icmn-cross',
116
- CLOSE: 'icmn-ungroup',
117
- CLEAN: 'fa fa-eraser',
118
- CHECK: 'icmn-checkmark',
119
- UNCHECK: 'icmn-cross',
120
- SELECTROW: 'icmn-checkbox-unchecked',
121
- UNSELECTROW: 'icmn-checkbox-checked',
122
- CHECKED: 'icmn-checkbox-checked',
123
- UNCHECKED: 'icmn-checkbox-unchecked',
124
- ENTER: 'icmn-enter',
125
- EXIT: 'icmn-exit',
126
- CUT: 'icmn-scissors',
127
- FILTER: 'icmn-filter',
128
- PLAY: 'icmn-play2',
129
- STOP: 'icmn-stop',
130
- UP: 'icmn-circle-up',
131
- DOWN: 'icmn-circle-down',
132
- RIGHT: 'icmn-circle-right',
133
- LEFT: 'icmn-circle-left',
134
- SORTASC: 'icmn-sort-alpha-asc',
135
- SORTDSC: 'icmn-sort-alpha-desc',
136
- TABLE: 'icmn-table',
137
- OFFICE: 'icmn-office',
138
- SHARE: 'icmn-share',
139
- FACEBOOK: 'icmn-facebook',
140
- WHATSAPP: 'icmn-whatsapp',
141
- TWITTER: 'icmn-twitter',
142
- YOUTUBE: 'icmn-youtube',
143
- PDF: 'icmn-file-pdf',
144
- EXCEL: 'icmn-file-excel',
145
- HOLDER: 'icmn-profile',
146
- XXX: 'fa fa-first-order',
147
- BANK: 'fa fa-bank',
148
- CREDITCARD2: 'fa fa-credit-card-alt',
149
- BUS: 'fa fa-bus',
150
- TELEVISION: 'icmn-tv',
151
- BACK: 'fa fa-arrow-left',
152
- SEND: 'fa fa-paper-plane-o',
153
- TEXTFILE: 'fa fa-file-text-o',
154
- PERSON: 'fa fa-user',
155
- BATCHFILE: 'fa fa-wpforms',
156
- REQUESTS: 'icmn-stack',
157
- THUMBUP: 'fa fa-thumbs-o-up',
158
- THUMBDOWN: 'fa fa-thumbs-o-down',
159
- EXCLAMATION: 'fa fa-exclamation-circle',
160
- };
161
- var IconDictionaryService = /** @class */ (function () {
162
- function IconDictionaryService() {
163
- this.mapIcon = function (iconName) { return (iconName && iconDictionary[iconName])
164
- ? iconDictionary[iconName] : iconDictionary.DEFAULT; };
165
- }
166
- return IconDictionaryService;
167
- }());
168
-
169
7
  var ActionComponent = /** @class */ (function () {
170
- function ActionComponent(_iconDictionary) {
171
- this._iconDictionary = _iconDictionary;
8
+ function ActionComponent() {
172
9
  this.style = 'primary';
173
10
  this.showLabel = true;
174
11
  }
@@ -182,10 +19,6 @@
182
19
  this.actionObject.notifyActivation();
183
20
  }
184
21
  };
185
- ActionComponent.prototype.icon = function () {
186
- var _a;
187
- return this._iconDictionary.mapIcon((_a = this.actionObject) === null || _a === void 0 ? void 0 : _a.iconName);
188
- };
189
22
  Object.defineProperty(ActionComponent.prototype, "isVisible", {
190
23
  get: function () {
191
24
  var _a, _b, _c, _d, _e;
@@ -210,9 +43,6 @@
210
43
  template: "<ng-content></ng-content>"
211
44
  },] }
212
45
  ];
213
- ActionComponent.ctorParameters = function () { return [
214
- { type: IconDictionaryService }
215
- ]; };
216
46
  ActionComponent.propDecorators = {
217
47
  actionObject: [{ type: core.Input }],
218
48
  disabled: [{ type: core.Input }],
@@ -356,6 +186,148 @@
356
186
  disabled: [{ type: core.Input }]
357
187
  };
358
188
 
189
+ var ElementComponent = /** @class */ (function () {
190
+ function ElementComponent() {
191
+ this.componentConstants = Object.assign({}, componentConstants);
192
+ }
193
+ ElementComponent.prototype.ngOnInit = function () {
194
+ this.start();
195
+ };
196
+ ElementComponent.prototype.start = function () { };
197
+ Object.defineProperty(ElementComponent.prototype, "visible", {
198
+ get: function () {
199
+ var _a, _b, _c, _d;
200
+ var visible = (_b = (_a = this.formElement) === null || _a === void 0 ? void 0 : _a.visible) !== null && _b !== void 0 ? _b : true;
201
+ return visible && ((_c = this.formElement) === null || _c === void 0 ? void 0 : _c.viewOnState((_d = this.formManager) === null || _d === void 0 ? void 0 : _d.currentState));
202
+ },
203
+ enumerable: false,
204
+ configurable: true
205
+ });
206
+ Object.defineProperty(ElementComponent.prototype, "disabled", {
207
+ get: function () {
208
+ var _a, _b, _c, _d;
209
+ var disabled = (_b = (_a = this.formElement) === null || _a === void 0 ? void 0 : _a.disabled) !== null && _b !== void 0 ? _b : false;
210
+ return disabled || !((_c = this.formElement) === null || _c === void 0 ? void 0 : _c.enabledOnState((_d = this.formManager) === null || _d === void 0 ? void 0 : _d.currentState));
211
+ },
212
+ enumerable: false,
213
+ configurable: true
214
+ });
215
+ return ElementComponent;
216
+ }());
217
+ ElementComponent.decorators = [
218
+ { type: core.Component, args: [{
219
+ selector: 'lib-element',
220
+ template: "<ng-content></ng-content>"
221
+ },] }
222
+ ];
223
+ ElementComponent.ctorParameters = function () { return []; };
224
+ ElementComponent.propDecorators = {
225
+ formElement: [{ type: core.Input }],
226
+ formManager: [{ type: core.Input }]
227
+ };
228
+
229
+ var FormErrorComponent = /** @class */ (function () {
230
+ function FormErrorComponent() {
231
+ }
232
+ return FormErrorComponent;
233
+ }());
234
+ FormErrorComponent.decorators = [
235
+ { type: core.Component, args: [{
236
+ selector: 'lib-form-error',
237
+ template: "<ng-content></ng-content>"
238
+ },] }
239
+ ];
240
+ FormErrorComponent.propDecorators = {
241
+ errorTitle: [{ type: core.Input }],
242
+ errorMessage: [{ type: core.Input }],
243
+ errorType: [{ type: core.Input }]
244
+ };
245
+
246
+ var FormHeaderComponent = /** @class */ (function () {
247
+ function FormHeaderComponent() {
248
+ this.goBackEvent = new core.EventEmitter();
249
+ }
250
+ FormHeaderComponent.prototype.goBackForm = function () {
251
+ this.goBackEvent.emit();
252
+ };
253
+ return FormHeaderComponent;
254
+ }());
255
+ FormHeaderComponent.decorators = [
256
+ { type: core.Component, args: [{
257
+ selector: 'lib-form-header',
258
+ template: "<ng-content></ng-content>"
259
+ },] }
260
+ ];
261
+ FormHeaderComponent.propDecorators = {
262
+ formManager: [{ type: core.Input }],
263
+ goBackAction: [{ type: core.Input }],
264
+ showTitle: [{ type: core.Input }],
265
+ headerActions: [{ type: core.Input }],
266
+ goBackEvent: [{ type: core.Output }]
267
+ };
268
+
269
+ var SectionComponent = /** @class */ (function () {
270
+ function SectionComponent() {
271
+ }
272
+ SectionComponent.prototype.ngOnInit = function () {
273
+ this.start();
274
+ };
275
+ SectionComponent.prototype.start = function () { };
276
+ return SectionComponent;
277
+ }());
278
+ SectionComponent.decorators = [
279
+ { type: core.Component, args: [{
280
+ selector: 'lib-section',
281
+ template: "<ng-content></ng-content>"
282
+ },] }
283
+ ];
284
+ SectionComponent.propDecorators = {
285
+ sectionObject: [{ type: core.Input }],
286
+ formManager: [{ type: core.Input }]
287
+ };
288
+
289
+ var SubSectionComponent = /** @class */ (function () {
290
+ function SubSectionComponent() {
291
+ }
292
+ SubSectionComponent.prototype.ngOnInit = function () {
293
+ this.start();
294
+ };
295
+ SubSectionComponent.prototype.start = function () { };
296
+ return SubSectionComponent;
297
+ }());
298
+ SubSectionComponent.decorators = [
299
+ { type: core.Component, args: [{
300
+ selector: 'lib-subsection',
301
+ template: "<ng-content></ng-content>"
302
+ },] }
303
+ ];
304
+ SubSectionComponent.propDecorators = {
305
+ subSection: [{ type: core.Input }],
306
+ showHeader: [{ type: core.Input }],
307
+ formManager: [{ type: core.Input }]
308
+ };
309
+
310
+ var FieldSearch = /** @class */ (function () {
311
+ function FieldSearch(filterDefinition) {
312
+ this.fieldCode = filterDefinition.fieldCode;
313
+ this.fieldAlias = filterDefinition.fieldAlias || filterDefinition.fieldCode;
314
+ this.fieldTitle = filterDefinition.fieldTitle;
315
+ this.fieldTypeCode = filterDefinition.fieldTypeCode;
316
+ this.operators = filterDefinition.operators;
317
+ this.alignment = filterDefinition.alignment;
318
+ this.format = filterDefinition.format;
319
+ }
320
+ return FieldSearch;
321
+ }());
322
+ var Filter = /** @class */ (function () {
323
+ function Filter() {
324
+ this.filterModeSimple = true;
325
+ this.advancedFilter = [];
326
+ this.simpleFilterWords = [];
327
+ }
328
+ return Filter;
329
+ }());
330
+
359
331
  /*! *****************************************************************************
360
332
  Copyright (c) Microsoft Corporation.
361
333
 
@@ -674,173 +646,6 @@
674
646
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
675
647
  }
676
648
 
677
- var PasswordComponent = /** @class */ (function (_super) {
678
- __extends(PasswordComponent, _super);
679
- function PasswordComponent() {
680
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
681
- _this.inputType = 'password';
682
- return _this;
683
- }
684
- PasswordComponent.prototype.togglePwdView = function () {
685
- this.inputType = (this.inputType === 'password') ? 'text' : 'password';
686
- };
687
- return PasswordComponent;
688
- }(FieldComponent));
689
- PasswordComponent.decorators = [
690
- { type: core.Component, args: [{
691
- selector: 'lib-password',
692
- template: "<ng-content></ng-content>"
693
- },] }
694
- ];
695
-
696
- var ElementComponent = /** @class */ (function () {
697
- function ElementComponent() {
698
- this.componentConstants = Object.assign({}, componentConstants);
699
- }
700
- ElementComponent.prototype.ngOnInit = function () {
701
- this.start();
702
- };
703
- ElementComponent.prototype.start = function () { };
704
- Object.defineProperty(ElementComponent.prototype, "visible", {
705
- get: function () {
706
- var _a, _b, _c, _d;
707
- var visible = (_b = (_a = this.formElement) === null || _a === void 0 ? void 0 : _a.visible) !== null && _b !== void 0 ? _b : true;
708
- return visible && ((_c = this.formElement) === null || _c === void 0 ? void 0 : _c.viewOnState((_d = this.formManager) === null || _d === void 0 ? void 0 : _d.currentState));
709
- },
710
- enumerable: false,
711
- configurable: true
712
- });
713
- Object.defineProperty(ElementComponent.prototype, "disabled", {
714
- get: function () {
715
- var _a, _b, _c, _d;
716
- var disabled = (_b = (_a = this.formElement) === null || _a === void 0 ? void 0 : _a.disabled) !== null && _b !== void 0 ? _b : false;
717
- return disabled || !((_c = this.formElement) === null || _c === void 0 ? void 0 : _c.enabledOnState((_d = this.formManager) === null || _d === void 0 ? void 0 : _d.currentState));
718
- },
719
- enumerable: false,
720
- configurable: true
721
- });
722
- return ElementComponent;
723
- }());
724
- ElementComponent.decorators = [
725
- { type: core.Component, args: [{
726
- selector: 'lib-element',
727
- template: "<ng-content></ng-content>"
728
- },] }
729
- ];
730
- ElementComponent.ctorParameters = function () { return []; };
731
- ElementComponent.propDecorators = {
732
- formElement: [{ type: core.Input }],
733
- formManager: [{ type: core.Input }]
734
- };
735
-
736
- var FormErrorComponent = /** @class */ (function () {
737
- function FormErrorComponent() {
738
- }
739
- return FormErrorComponent;
740
- }());
741
- FormErrorComponent.decorators = [
742
- { type: core.Component, args: [{
743
- selector: 'lib-form-error',
744
- template: "<ng-content></ng-content>"
745
- },] }
746
- ];
747
- FormErrorComponent.propDecorators = {
748
- errorTitle: [{ type: core.Input }],
749
- errorMessage: [{ type: core.Input }],
750
- errorType: [{ type: core.Input }]
751
- };
752
-
753
- var FormHeaderComponent = /** @class */ (function () {
754
- function FormHeaderComponent() {
755
- this.goBackEvent = new core.EventEmitter();
756
- }
757
- FormHeaderComponent.prototype.goBackForm = function () {
758
- this.goBackEvent.emit();
759
- };
760
- FormHeaderComponent.prototype.ngOnInit = function () {
761
- var _a, _b;
762
- this.navigation = ((_b = (_a = this.formManager) === null || _a === void 0 ? void 0 : _a.formManagerService) === null || _b === void 0 ? void 0 : _b.pageStack)
763
- ? Object.keys(this.formManager.formManagerService.pageStack) : null;
764
- };
765
- return FormHeaderComponent;
766
- }());
767
- FormHeaderComponent.decorators = [
768
- { type: core.Component, args: [{
769
- selector: 'lib-form-header',
770
- template: "<ng-content></ng-content>"
771
- },] }
772
- ];
773
- FormHeaderComponent.propDecorators = {
774
- formManager: [{ type: core.Input }],
775
- icon: [{ type: core.Input }],
776
- goBackAction: [{ type: core.Input }],
777
- showTitle: [{ type: core.Input }],
778
- headerActions: [{ type: core.Input }],
779
- goBackEvent: [{ type: core.Output }]
780
- };
781
-
782
- var SectionComponent = /** @class */ (function () {
783
- function SectionComponent() {
784
- }
785
- SectionComponent.prototype.ngOnInit = function () {
786
- this.start();
787
- };
788
- SectionComponent.prototype.start = function () { };
789
- return SectionComponent;
790
- }());
791
- SectionComponent.decorators = [
792
- { type: core.Component, args: [{
793
- selector: 'lib-section',
794
- template: "<ng-content></ng-content>"
795
- },] }
796
- ];
797
- SectionComponent.propDecorators = {
798
- sectionObject: [{ type: core.Input }],
799
- formManager: [{ type: core.Input }]
800
- };
801
-
802
- var SubSectionComponent = /** @class */ (function () {
803
- function SubSectionComponent() {
804
- }
805
- SubSectionComponent.prototype.ngOnInit = function () {
806
- this.start();
807
- };
808
- SubSectionComponent.prototype.start = function () { };
809
- return SubSectionComponent;
810
- }());
811
- SubSectionComponent.decorators = [
812
- { type: core.Component, args: [{
813
- selector: 'lib-subsection',
814
- template: "<ng-content></ng-content>"
815
- },] }
816
- ];
817
- SubSectionComponent.propDecorators = {
818
- subSection: [{ type: core.Input }],
819
- showHeader: [{ type: core.Input }],
820
- formManager: [{ type: core.Input }]
821
- };
822
-
823
- var FieldSearch = /** @class */ (function () {
824
- function FieldSearch(filterDefinition) {
825
- this.fieldCode = filterDefinition.fieldCode;
826
- this.fieldAlias = filterDefinition.fieldAlias || filterDefinition.fieldCode;
827
- this.fieldTitle = filterDefinition.fieldTitle;
828
- this.fieldTypeCode = filterDefinition.fieldTypeCode;
829
- this.operators = filterDefinition.operators;
830
- this.alignment = filterDefinition.alignment;
831
- this.format = filterDefinition.format;
832
- }
833
- return FieldSearch;
834
- }());
835
- var Filter = /** @class */ (function () {
836
- function Filter() {
837
- this.filterModeSimple = true;
838
- this.advancedFilter = [];
839
- this.simpleFilterWords = [];
840
- }
841
- return Filter;
842
- }());
843
-
844
649
  var FormElement = /** @class */ (function () {
845
650
  function FormElement(elementDefinition) {
846
651
  var _a, _b;
@@ -1674,8 +1479,7 @@
1674
1479
 
1675
1480
  var INLINE_ACTION$1 = 'INLINE';
1676
1481
  var LibTableRecordActionComponent = /** @class */ (function () {
1677
- function LibTableRecordActionComponent(_iconDictionary) {
1678
- this._iconDictionary = _iconDictionary;
1482
+ function LibTableRecordActionComponent() {
1679
1483
  this.actionSelected = new core.EventEmitter();
1680
1484
  }
1681
1485
  LibTableRecordActionComponent.prototype.ngOnInit = function () {
@@ -1690,17 +1494,6 @@
1690
1494
  };
1691
1495
  this.actionSelected.emit(tableEvent);
1692
1496
  };
1693
- LibTableRecordActionComponent.prototype.icon = function () {
1694
- if (this.action.actionType === 'CHECK') {
1695
- return this._iconDictionary.mapIcon('SELECTROW');
1696
- }
1697
- else if (this.action.actionType === 'UNCHECK') {
1698
- return this._iconDictionary.mapIcon('UNSELECTROW');
1699
- }
1700
- else {
1701
- return this._iconDictionary.mapIcon(this.action.iconName);
1702
- }
1703
- };
1704
1497
  LibTableRecordActionComponent.prototype.class = function () { };
1705
1498
  return LibTableRecordActionComponent;
1706
1499
  }());
@@ -1711,9 +1504,7 @@
1711
1504
  changeDetection: core.ChangeDetectionStrategy.OnPush
1712
1505
  },] }
1713
1506
  ];
1714
- LibTableRecordActionComponent.ctorParameters = function () { return [
1715
- { type: IconDictionaryService }
1716
- ]; };
1507
+ LibTableRecordActionComponent.ctorParameters = function () { return []; };
1717
1508
  LibTableRecordActionComponent.propDecorators = {
1718
1509
  recordId: [{ type: core.Input }],
1719
1510
  recordData: [{ type: core.Input }],
@@ -3286,7 +3077,7 @@
3286
3077
  }
3287
3078
  LibEventManagerService.prototype.addEventName = function (name) {
3288
3079
  if (!this.eventSubjects[name]) {
3289
- var newEventSubject = new rxjs.BehaviorSubject(null);
3080
+ var newEventSubject = new rxjs.ReplaySubject(1);
3290
3081
  this.eventSubjects[name] = newEventSubject;
3291
3082
  }
3292
3083
  };
@@ -3312,6 +3103,7 @@
3312
3103
  var INLINE_ACTION = 'INLINE';
3313
3104
  var GLOBAL_ACTION = 'GLOBAL';
3314
3105
  var GET_DATA_ACTION = 'GETDATA';
3106
+ var FORM_CODE = 'form';
3315
3107
  var FORM_SUBJECT = 'formSubject';
3316
3108
  var ORIGIN_PARAM = 'origin';
3317
3109
  var STATE_PARAM = 'mode';
@@ -3346,8 +3138,8 @@
3346
3138
  this.tableActionsFinish = {};
3347
3139
  this.tableGetDataStart = {};
3348
3140
  this.tableGetDataFinish = {};
3349
- this.customPreProcessing();
3350
3141
  this._eventEmiter = this._eventManager;
3142
+ this.customPreProcessing();
3351
3143
  }
3352
3144
  Object.defineProperty(BasicFormComponent.prototype, "currentState", {
3353
3145
  get: function () { return this.formStructure.state; },
@@ -3499,7 +3291,7 @@
3499
3291
  var cleanStack = (_a = options === null || options === void 0 ? void 0 : options.cleanStack) !== null && _a !== void 0 ? _a : false;
3500
3292
  if (!cleanStack) {
3501
3293
  origin = {
3502
- code: this.formCode,
3294
+ code: this.name,
3503
3295
  url: this._formRoute,
3504
3296
  params: [
3505
3297
  this.currentState,
@@ -3558,8 +3350,8 @@
3558
3350
  BasicFormComponent.prototype.getSubject = function () { return this.formSubject; };
3559
3351
  BasicFormComponent.prototype.getformSubject = function () { return this.getSubject(); };
3560
3352
  BasicFormComponent.prototype.preocessInputParams = function (params) {
3561
- var e_1, _d;
3562
- var _a, _b, _c;
3353
+ var e_1, _f;
3354
+ var _a, _b, _c, _d, _e;
3563
3355
  var allParams = Object.keys(params !== null && params !== void 0 ? params : {});
3564
3356
  if (!allParams || !Array.isArray(allParams) || allParams.length === 0) {
3565
3357
  return;
@@ -3574,13 +3366,14 @@
3574
3366
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
3575
3367
  finally {
3576
3368
  try {
3577
- if (allParams_1_1 && !allParams_1_1.done && (_d = allParams_1.return)) _d.call(allParams_1);
3369
+ if (allParams_1_1 && !allParams_1_1.done && (_f = allParams_1.return)) _f.call(allParams_1);
3578
3370
  }
3579
3371
  finally { if (e_1) throw e_1.error; }
3580
3372
  }
3581
- this.formSubject = (_b = (_a = this.extraData) === null || _a === void 0 ? void 0 : _a[FORM_SUBJECT]) !== null && _b !== void 0 ? _b : null;
3373
+ this.name = (_b = (_a = this.extraData) === null || _a === void 0 ? void 0 : _a[FORM_CODE]) !== null && _b !== void 0 ? _b : this.name;
3374
+ this.formSubject = (_d = (_c = this.extraData) === null || _c === void 0 ? void 0 : _c[FORM_SUBJECT]) !== null && _d !== void 0 ? _d : null;
3582
3375
  var initialState = this.extraData[STATE_PARAM];
3583
- this.transitionToken = (_c = this.extraData[ORIGIN_PARAM]) !== null && _c !== void 0 ? _c : null;
3376
+ this.transitionToken = (_e = this.extraData[ORIGIN_PARAM]) !== null && _e !== void 0 ? _e : null;
3584
3377
  this.inputDataFields = (this.transitionToken) ? this.formManagerService.getInputData(this.transitionToken) : [];
3585
3378
  if (!this.transitionToken) {
3586
3379
  this.formManagerService.cleanStack();
@@ -3632,35 +3425,33 @@
3632
3425
  };
3633
3426
  BasicFormComponent.prototype.formInit = function (params) {
3634
3427
  return __awaiter(this, void 0, void 0, function () {
3635
- var initialState, formDefinition, _d, _e, inputFieldData, fieldCode, fieldValue, recordResponse;
3636
- var e_2, _f;
3637
- return __generator(this, function (_g) {
3638
- switch (_g.label) {
3428
+ var initialState, formDefinition, _f, _g, inputFieldData, fieldCode, fieldValue, recordResponse;
3429
+ var e_2, _h;
3430
+ return __generator(this, function (_j) {
3431
+ switch (_j.label) {
3639
3432
  case 0:
3640
3433
  initialState = this.preocessInputParams(params);
3641
3434
  if (!this.name) {
3642
3435
  return [2 /*return*/];
3643
3436
  }
3644
- if (!!this.definitionObtained) return [3 /*break*/, 2];
3437
+ // if (!this.definitionObtained) {
3645
3438
  this.inServerProcess = true;
3646
3439
  return [4 /*yield*/, this.formManagerService.getFormDefinition(this.name)];
3647
3440
  case 1:
3648
- formDefinition = _g.sent();
3441
+ formDefinition = _j.sent();
3649
3442
  this.inServerProcess = false;
3650
3443
  this.formStructure = new FormStructureAndData(formDefinition);
3651
3444
  this.definitionObtained = true;
3652
- return [3 /*break*/, 3];
3653
- case 2:
3445
+ // } else {
3654
3446
  this.cleanData();
3655
- _g.label = 3;
3656
- case 3:
3447
+ // }
3657
3448
  if (!this.supportState(initialState)) {
3658
3449
  initialState = this.formStructure.defaultState;
3659
3450
  }
3660
3451
  this.formStructure.changeState(initialState || this.formStructure.defaultState);
3661
3452
  try {
3662
- for (_d = __values(this.inputDataFields), _e = _d.next(); !_e.done; _e = _d.next()) {
3663
- inputFieldData = _e.value;
3453
+ for (_f = __values(this.inputDataFields), _g = _f.next(); !_g.done; _g = _f.next()) {
3454
+ inputFieldData = _g.value;
3664
3455
  fieldCode = inputFieldData.fieldCode, fieldValue = inputFieldData.fieldValue;
3665
3456
  if (fieldCode) {
3666
3457
  this.setFieldValue(inputFieldData.fieldCode, fieldValue);
@@ -3670,13 +3461,13 @@
3670
3461
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
3671
3462
  finally {
3672
3463
  try {
3673
- if (_e && !_e.done && (_f = _d.return)) _f.call(_d);
3464
+ if (_g && !_g.done && (_h = _f.return)) _h.call(_f);
3674
3465
  }
3675
3466
  finally { if (e_2) throw e_2.error; }
3676
3467
  }
3677
3468
  return [4 /*yield*/, this.requestFormAction(componentConstants.FORMACTION_GETDATA)];
3678
- case 4:
3679
- recordResponse = _g.sent();
3469
+ case 2:
3470
+ recordResponse = _j.sent();
3680
3471
  this.checkErrorRecordReceived(recordResponse);
3681
3472
  this.formVisible = true;
3682
3473
  this.subscribeSectionActivation();
@@ -3707,8 +3498,8 @@
3707
3498
  if (actionSubject === void 0) { actionSubject = {}; }
3708
3499
  return __awaiter(this, void 0, void 0, function () {
3709
3500
  var actionDetail, formActionResponse, error, formResponseData;
3710
- return __generator(this, function (_d) {
3711
- switch (_d.label) {
3501
+ return __generator(this, function (_f) {
3502
+ switch (_f.label) {
3712
3503
  case 0:
3713
3504
  actionDetail = {
3714
3505
  formCode: this.name,
@@ -3726,7 +3517,7 @@
3726
3517
  this.inServerProcess = true;
3727
3518
  return [4 /*yield*/, this.formManagerService.execServerAction(actionDetail)];
3728
3519
  case 1:
3729
- formActionResponse = _d.sent();
3520
+ formActionResponse = _f.sent();
3730
3521
  this.inServerProcess = false;
3731
3522
  if (formActionResponse && formActionResponse.error.errorType) {
3732
3523
  console.log('Excepción no soportada');
@@ -3745,7 +3536,7 @@
3745
3536
  });
3746
3537
  };
3747
3538
  BasicFormComponent.prototype.updateFormWithServerData = function (formContent) {
3748
- var e_3, _d, e_4, _e, e_5, _f;
3539
+ var e_3, _f, e_4, _g, e_5, _h;
3749
3540
  var currentMode = formContent.currentMode, formSubject = formContent.formSubject, actions = formContent.actions, fields = formContent.fields, recordTables = formContent.recordTables, returnedFile = formContent.returnedFile, immutableData = formContent.immutableData, extraInfo = formContent.extraInfo;
3750
3541
  this.changeState(currentMode !== null && currentMode !== void 0 ? currentMode : this.formStructure.state);
3751
3542
  if (formSubject) {
@@ -3764,7 +3555,7 @@
3764
3555
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
3765
3556
  finally {
3766
3557
  try {
3767
- if (actions_1_1 && !actions_1_1.done && (_d = actions_1.return)) _d.call(actions_1);
3558
+ if (actions_1_1 && !actions_1_1.done && (_f = actions_1.return)) _f.call(actions_1);
3768
3559
  }
3769
3560
  finally { if (e_3) throw e_3.error; }
3770
3561
  }
@@ -3782,7 +3573,7 @@
3782
3573
  catch (e_4_1) { e_4 = { error: e_4_1 }; }
3783
3574
  finally {
3784
3575
  try {
3785
- if (fields_1_1 && !fields_1_1.done && (_e = fields_1.return)) _e.call(fields_1);
3576
+ if (fields_1_1 && !fields_1_1.done && (_g = fields_1.return)) _g.call(fields_1);
3786
3577
  }
3787
3578
  finally { if (e_4) throw e_4.error; }
3788
3579
  }
@@ -3800,7 +3591,7 @@
3800
3591
  catch (e_5_1) { e_5 = { error: e_5_1 }; }
3801
3592
  finally {
3802
3593
  try {
3803
- if (recordTables_1_1 && !recordTables_1_1.done && (_f = recordTables_1.return)) _f.call(recordTables_1);
3594
+ if (recordTables_1_1 && !recordTables_1_1.done && (_h = recordTables_1.return)) _h.call(recordTables_1);
3804
3595
  }
3805
3596
  finally { if (e_5) throw e_5.error; }
3806
3597
  }
@@ -3857,8 +3648,8 @@
3857
3648
  BasicFormComponent.prototype.launchSectionActivation = function (sectionCode) {
3858
3649
  return __awaiter(this, void 0, void 0, function () {
3859
3650
  var sectionObject, clientSectionMethods, clientSectionMethods_1, clientSectionMethods_1_1, clientSectionMethod;
3860
- var e_6, _d;
3861
- return __generator(this, function (_e) {
3651
+ var e_6, _f;
3652
+ return __generator(this, function (_g) {
3862
3653
  sectionObject = this.formStructure.getSectionObject(sectionCode);
3863
3654
  if (!sectionObject) {
3864
3655
  return [2 /*return*/];
@@ -3874,7 +3665,7 @@
3874
3665
  catch (e_6_1) { e_6 = { error: e_6_1 }; }
3875
3666
  finally {
3876
3667
  try {
3877
- if (clientSectionMethods_1_1 && !clientSectionMethods_1_1.done && (_d = clientSectionMethods_1.return)) _d.call(clientSectionMethods_1);
3668
+ if (clientSectionMethods_1_1 && !clientSectionMethods_1_1.done && (_f = clientSectionMethods_1.return)) _f.call(clientSectionMethods_1);
3878
3669
  }
3879
3670
  finally { if (e_6) throw e_6.error; }
3880
3671
  }
@@ -3886,8 +3677,8 @@
3886
3677
  BasicFormComponent.prototype.launchSectionInactivation = function (sectionCode) {
3887
3678
  return __awaiter(this, void 0, void 0, function () {
3888
3679
  var sectionObject, clientSectionMethods, clientSectionMethods_2, clientSectionMethods_2_1, clientSectionMethod;
3889
- var e_7, _d;
3890
- return __generator(this, function (_e) {
3680
+ var e_7, _f;
3681
+ return __generator(this, function (_g) {
3891
3682
  sectionObject = this.formStructure.getSectionObject(sectionCode);
3892
3683
  if (!sectionObject) {
3893
3684
  return [2 /*return*/];
@@ -3903,7 +3694,7 @@
3903
3694
  catch (e_7_1) { e_7 = { error: e_7_1 }; }
3904
3695
  finally {
3905
3696
  try {
3906
- if (clientSectionMethods_2_1 && !clientSectionMethods_2_1.done && (_d = clientSectionMethods_2.return)) _d.call(clientSectionMethods_2);
3697
+ if (clientSectionMethods_2_1 && !clientSectionMethods_2_1.done && (_f = clientSectionMethods_2.return)) _f.call(clientSectionMethods_2);
3907
3698
  }
3908
3699
  finally { if (e_7) throw e_7.error; }
3909
3700
  }
@@ -3915,9 +3706,9 @@
3915
3706
  BasicFormComponent.prototype.startAction = function (actionCode) {
3916
3707
  return __awaiter(this, void 0, void 0, function () {
3917
3708
  var actionObject, clientActionMethods, clientActionPromises, clientActionMethods_1, clientActionMethods_1_1, clientActionMethod, continueActionPromise, clientActionResults, continueAction;
3918
- var e_8, _d;
3919
- return __generator(this, function (_e) {
3920
- switch (_e.label) {
3709
+ var e_8, _f;
3710
+ return __generator(this, function (_g) {
3711
+ switch (_g.label) {
3921
3712
  case 0:
3922
3713
  actionObject = this.getAction(actionCode);
3923
3714
  if (!actionObject) {
@@ -3938,19 +3729,19 @@
3938
3729
  catch (e_8_1) { e_8 = { error: e_8_1 }; }
3939
3730
  finally {
3940
3731
  try {
3941
- if (clientActionMethods_1_1 && !clientActionMethods_1_1.done && (_d = clientActionMethods_1.return)) _d.call(clientActionMethods_1);
3732
+ if (clientActionMethods_1_1 && !clientActionMethods_1_1.done && (_f = clientActionMethods_1.return)) _f.call(clientActionMethods_1);
3942
3733
  }
3943
3734
  finally { if (e_8) throw e_8.error; }
3944
3735
  }
3945
3736
  return [4 /*yield*/, Promise.all(clientActionPromises)];
3946
3737
  case 1:
3947
- clientActionResults = _e.sent();
3738
+ clientActionResults = _g.sent();
3948
3739
  continueAction = clientActionResults.reduce(function (total, curr) { return (total && curr); }, true);
3949
3740
  if (!continueAction) {
3950
3741
  actionObject.stop();
3951
3742
  return [2 /*return*/];
3952
3743
  }
3953
- _e.label = 2;
3744
+ _g.label = 2;
3954
3745
  case 2:
3955
3746
  this.startServerAction(actionObject);
3956
3747
  return [2 /*return*/];
@@ -3961,8 +3752,8 @@
3961
3752
  BasicFormComponent.prototype.startServerAction = function (actionInput) {
3962
3753
  return __awaiter(this, void 0, void 0, function () {
3963
3754
  var action, finish, actionResult;
3964
- return __generator(this, function (_d) {
3965
- switch (_d.label) {
3755
+ return __generator(this, function (_f) {
3756
+ switch (_f.label) {
3966
3757
  case 0:
3967
3758
  action = (typeof actionInput === 'string')
3968
3759
  ? this.getAction(actionInput) : actionInput;
@@ -3971,19 +3762,19 @@
3971
3762
  if (!action.backend) return [3 /*break*/, 2];
3972
3763
  return [4 /*yield*/, this.requestFormAction(action.actionCode)];
3973
3764
  case 1:
3974
- actionResult = _d.sent();
3765
+ actionResult = _f.sent();
3975
3766
  finish = !this.errorOccured();
3976
- _d.label = 2;
3767
+ _f.label = 2;
3977
3768
  case 2:
3978
3769
  if (!finish) return [3 /*break*/, 4];
3979
3770
  return [4 /*yield*/, this.finishAction(action, actionResult)];
3980
3771
  case 3:
3981
- _d.sent();
3772
+ _f.sent();
3982
3773
  this.changeState(action.newState);
3983
3774
  return [3 /*break*/, 5];
3984
3775
  case 4:
3985
3776
  this.displayActionServerError();
3986
- _d.label = 5;
3777
+ _f.label = 5;
3987
3778
  case 5:
3988
3779
  action.stop();
3989
3780
  return [2 /*return*/];
@@ -3994,9 +3785,9 @@
3994
3785
  BasicFormComponent.prototype.finishAction = function (actionObject, actionResult) {
3995
3786
  return __awaiter(this, void 0, void 0, function () {
3996
3787
  var finishActionMethods, clientActionPromises, finishActionMethods_1, finishActionMethods_1_1, clientActionMethod;
3997
- var e_9, _d;
3998
- return __generator(this, function (_e) {
3999
- switch (_e.label) {
3788
+ var e_9, _f;
3789
+ return __generator(this, function (_g) {
3790
+ switch (_g.label) {
4000
3791
  case 0:
4001
3792
  finishActionMethods = this.formActionsFinish[actionObject.actionCode];
4002
3793
  if (!finishActionMethods) return [3 /*break*/, 2];
@@ -4010,14 +3801,14 @@
4010
3801
  catch (e_9_1) { e_9 = { error: e_9_1 }; }
4011
3802
  finally {
4012
3803
  try {
4013
- if (finishActionMethods_1_1 && !finishActionMethods_1_1.done && (_d = finishActionMethods_1.return)) _d.call(finishActionMethods_1);
3804
+ if (finishActionMethods_1_1 && !finishActionMethods_1_1.done && (_f = finishActionMethods_1.return)) _f.call(finishActionMethods_1);
4014
3805
  }
4015
3806
  finally { if (e_9) throw e_9.error; }
4016
3807
  }
4017
3808
  return [4 /*yield*/, Promise.all(clientActionPromises)];
4018
3809
  case 1:
4019
- _e.sent();
4020
- _e.label = 2;
3810
+ _g.sent();
3811
+ _g.label = 2;
4021
3812
  case 2: return [2 /*return*/];
4022
3813
  }
4023
3814
  });
@@ -4062,9 +3853,9 @@
4062
3853
  BasicFormComponent.prototype.startFieldInputValidation = function (fieldCode) {
4063
3854
  return __awaiter(this, void 0, void 0, function () {
4064
3855
  var fieldToValidate, validationCallbacks, clientValidationPromises, validationCallbacks_1, validationCallbacks_1_1, validationMethod, continueValidationPromise;
4065
- var e_10, _d;
4066
- return __generator(this, function (_e) {
4067
- switch (_e.label) {
3856
+ var e_10, _f;
3857
+ return __generator(this, function (_g) {
3858
+ switch (_g.label) {
4068
3859
  case 0:
4069
3860
  fieldToValidate = this.getFieldObject(fieldCode);
4070
3861
  if (!fieldToValidate) {
@@ -4085,14 +3876,14 @@
4085
3876
  catch (e_10_1) { e_10 = { error: e_10_1 }; }
4086
3877
  finally {
4087
3878
  try {
4088
- if (validationCallbacks_1_1 && !validationCallbacks_1_1.done && (_d = validationCallbacks_1.return)) _d.call(validationCallbacks_1);
3879
+ if (validationCallbacks_1_1 && !validationCallbacks_1_1.done && (_f = validationCallbacks_1.return)) _f.call(validationCallbacks_1);
4089
3880
  }
4090
3881
  finally { if (e_10) throw e_10.error; }
4091
3882
  }
4092
3883
  return [4 /*yield*/, Promise.all(clientValidationPromises)];
4093
3884
  case 1:
4094
- _e.sent();
4095
- _e.label = 2;
3885
+ _g.sent();
3886
+ _g.label = 2;
4096
3887
  case 2: return [2 /*return*/];
4097
3888
  }
4098
3889
  });
@@ -4101,9 +3892,9 @@
4101
3892
  BasicFormComponent.prototype.startFieldValidation = function (fieldCode) {
4102
3893
  return __awaiter(this, void 0, void 0, function () {
4103
3894
  var fieldToValidate, validationCallbacks, clientValidationPromises, validationCallbacks_2, validationCallbacks_2_1, validationMethod, clientValidationPromise, clientValidationResults, continueValidation;
4104
- var e_11, _d;
4105
- return __generator(this, function (_e) {
4106
- switch (_e.label) {
3895
+ var e_11, _f;
3896
+ return __generator(this, function (_g) {
3897
+ switch (_g.label) {
4107
3898
  case 0:
4108
3899
  fieldToValidate = this.getField(fieldCode);
4109
3900
  if (!fieldToValidate) {
@@ -4124,18 +3915,18 @@
4124
3915
  catch (e_11_1) { e_11 = { error: e_11_1 }; }
4125
3916
  finally {
4126
3917
  try {
4127
- if (validationCallbacks_2_1 && !validationCallbacks_2_1.done && (_d = validationCallbacks_2.return)) _d.call(validationCallbacks_2);
3918
+ if (validationCallbacks_2_1 && !validationCallbacks_2_1.done && (_f = validationCallbacks_2.return)) _f.call(validationCallbacks_2);
4128
3919
  }
4129
3920
  finally { if (e_11) throw e_11.error; }
4130
3921
  }
4131
3922
  return [4 /*yield*/, Promise.all(clientValidationPromises)];
4132
3923
  case 1:
4133
- clientValidationResults = _e.sent();
3924
+ clientValidationResults = _g.sent();
4134
3925
  continueValidation = clientValidationResults.reduce(function (total, curr) { return (total && curr); }, true);
4135
3926
  if (!continueValidation) {
4136
3927
  return [2 /*return*/];
4137
3928
  }
4138
- _e.label = 2;
3929
+ _g.label = 2;
4139
3930
  case 2:
4140
3931
  this.startServerFieldValidation(fieldToValidate);
4141
3932
  return [2 /*return*/];
@@ -4146,8 +3937,8 @@
4146
3937
  BasicFormComponent.prototype.startServerFieldValidation = function (inputField) {
4147
3938
  return __awaiter(this, void 0, void 0, function () {
4148
3939
  var fieldObj, finish, validationResult;
4149
- return __generator(this, function (_d) {
4150
- switch (_d.label) {
3940
+ return __generator(this, function (_f) {
3941
+ switch (_f.label) {
4151
3942
  case 0:
4152
3943
  fieldObj = (typeof inputField === 'string')
4153
3944
  ? this.getField(inputField) : inputField;
@@ -4157,20 +3948,20 @@
4157
3948
  return [4 /*yield*/, this
4158
3949
  .requestFormAction(componentConstants.FORMACTION_VALIDATE, fieldObj.fieldCode)];
4159
3950
  case 1:
4160
- validationResult = _d.sent();
3951
+ validationResult = _f.sent();
4161
3952
  finish = !this.errorOccured();
4162
- _d.label = 2;
3953
+ _f.label = 2;
4163
3954
  case 2:
4164
3955
  if (!finish) return [3 /*break*/, 4];
4165
3956
  return [4 /*yield*/, this.finishFieldValidation(fieldObj, validationResult)];
4166
3957
  case 3:
4167
- _d.sent();
3958
+ _f.sent();
4168
3959
  return [3 /*break*/, 5];
4169
3960
  case 4:
4170
3961
  fieldObj.setErrorCode(this.errorCode);
4171
3962
  fieldObj.setErrorMessage(this.errorMessage);
4172
3963
  this.displayValidationServerError();
4173
- _d.label = 5;
3964
+ _f.label = 5;
4174
3965
  case 5: return [2 /*return*/];
4175
3966
  }
4176
3967
  });
@@ -4179,9 +3970,9 @@
4179
3970
  BasicFormComponent.prototype.finishFieldValidation = function (fieldObject, validationResult) {
4180
3971
  return __awaiter(this, void 0, void 0, function () {
4181
3972
  var validationCallbacks, clientActionPromises, validationCallbacks_3, validationCallbacks_3_1, validationMethod;
4182
- var e_12, _d;
4183
- return __generator(this, function (_e) {
4184
- switch (_e.label) {
3973
+ var e_12, _f;
3974
+ return __generator(this, function (_g) {
3975
+ switch (_g.label) {
4185
3976
  case 0:
4186
3977
  validationCallbacks = this.fieldValidationsFinish[fieldObject.fieldCode];
4187
3978
  if (!validationCallbacks) return [3 /*break*/, 2];
@@ -4195,14 +3986,14 @@
4195
3986
  catch (e_12_1) { e_12 = { error: e_12_1 }; }
4196
3987
  finally {
4197
3988
  try {
4198
- if (validationCallbacks_3_1 && !validationCallbacks_3_1.done && (_d = validationCallbacks_3.return)) _d.call(validationCallbacks_3);
3989
+ if (validationCallbacks_3_1 && !validationCallbacks_3_1.done && (_f = validationCallbacks_3.return)) _f.call(validationCallbacks_3);
4199
3990
  }
4200
3991
  finally { if (e_12) throw e_12.error; }
4201
3992
  }
4202
3993
  return [4 /*yield*/, Promise.all(clientActionPromises)];
4203
3994
  case 1:
4204
- _e.sent();
4205
- _e.label = 2;
3995
+ _g.sent();
3996
+ _g.label = 2;
4206
3997
  case 2: return [2 /*return*/];
4207
3998
  }
4208
3999
  });
@@ -4210,7 +4001,7 @@
4210
4001
  };
4211
4002
  BasicFormComponent.prototype.continueFieldValidation = function (fieldCode) {
4212
4003
  return __awaiter(this, void 0, void 0, function () {
4213
- return __generator(this, function (_d) {
4004
+ return __generator(this, function (_f) {
4214
4005
  return [2 /*return*/, this.startServerFieldValidation(fieldCode)];
4215
4006
  });
4216
4007
  });
@@ -4325,9 +4116,9 @@
4325
4116
  BasicFormComponent.prototype.startTableGlobalAction = function (tableActionEvent) {
4326
4117
  return __awaiter(this, void 0, void 0, function () {
4327
4118
  var tableCode, actionCode, tableObject, action, tableActionDetail, tableEventHandlers, tableActionMethods, clientActionPromises, tableActionMethods_1, tableActionMethods_1_1, tableActionMethod, clientActionPromise, clientActionResults, continueAction;
4328
- var e_13, _d;
4329
- return __generator(this, function (_e) {
4330
- switch (_e.label) {
4119
+ var e_13, _f;
4120
+ return __generator(this, function (_g) {
4121
+ switch (_g.label) {
4331
4122
  case 0:
4332
4123
  tableCode = tableActionEvent.tableCode, actionCode = tableActionEvent.actionCode;
4333
4124
  tableObject = this.getTable(tableCode);
@@ -4359,18 +4150,18 @@
4359
4150
  catch (e_13_1) { e_13 = { error: e_13_1 }; }
4360
4151
  finally {
4361
4152
  try {
4362
- if (tableActionMethods_1_1 && !tableActionMethods_1_1.done && (_d = tableActionMethods_1.return)) _d.call(tableActionMethods_1);
4153
+ if (tableActionMethods_1_1 && !tableActionMethods_1_1.done && (_f = tableActionMethods_1.return)) _f.call(tableActionMethods_1);
4363
4154
  }
4364
4155
  finally { if (e_13) throw e_13.error; }
4365
4156
  }
4366
4157
  return [4 /*yield*/, Promise.all(clientActionPromises)];
4367
4158
  case 1:
4368
- clientActionResults = _e.sent();
4159
+ clientActionResults = _g.sent();
4369
4160
  continueAction = clientActionResults.reduce(function (total, curr) { return (total && curr); }, true);
4370
4161
  if (!continueAction) {
4371
4162
  return [2 /*return*/];
4372
4163
  }
4373
- _e.label = 2;
4164
+ _g.label = 2;
4374
4165
  case 2:
4375
4166
  this.startTableServerGlobalAction(tableActionDetail);
4376
4167
  return [2 /*return*/];
@@ -4381,8 +4172,8 @@
4381
4172
  BasicFormComponent.prototype.startTableServerGlobalAction = function (tableActionDetail) {
4382
4173
  return __awaiter(this, void 0, void 0, function () {
4383
4174
  var tableObject, action, tableCode, actionCode, finish, actionResult, actionSubject;
4384
- return __generator(this, function (_d) {
4385
- switch (_d.label) {
4175
+ return __generator(this, function (_f) {
4176
+ switch (_f.label) {
4386
4177
  case 0:
4387
4178
  tableObject = tableActionDetail.tableObject, action = tableActionDetail.action, tableCode = tableActionDetail.tableCode, actionCode = tableActionDetail.actionCode;
4388
4179
  if (!tableObject || !action) {
@@ -4400,19 +4191,19 @@
4400
4191
  return [4 /*yield*/, this
4401
4192
  .requestFormAction(componentConstants.FORMACTION_TABLEACTION, actionSubject)];
4402
4193
  case 1:
4403
- actionResult = _d.sent();
4194
+ actionResult = _f.sent();
4404
4195
  finish = !this.errorOccured();
4405
- _d.label = 2;
4196
+ _f.label = 2;
4406
4197
  case 2:
4407
4198
  if (!finish) return [3 /*break*/, 4];
4408
4199
  return [4 /*yield*/, this.finishTableGlobalAction(tableActionDetail, actionResult)];
4409
4200
  case 3:
4410
- _d.sent();
4201
+ _f.sent();
4411
4202
  this.changeState(action.newState);
4412
4203
  return [3 /*break*/, 5];
4413
4204
  case 4:
4414
4205
  this.displayTableServerError();
4415
- _d.label = 5;
4206
+ _f.label = 5;
4416
4207
  case 5:
4417
4208
  tableObject.freeWaiting();
4418
4209
  return [2 /*return*/];
@@ -4423,9 +4214,9 @@
4423
4214
  BasicFormComponent.prototype.finishTableGlobalAction = function (tableActionDetail, actionResult) {
4424
4215
  return __awaiter(this, void 0, void 0, function () {
4425
4216
  var tableCode, actionCode, tableEventHandlers, tableActionMethods, clientActionPromises, tableActionMethods_2, tableActionMethods_2_1, tableActionMethod;
4426
- var e_14, _d;
4427
- return __generator(this, function (_e) {
4428
- switch (_e.label) {
4217
+ var e_14, _f;
4218
+ return __generator(this, function (_g) {
4219
+ switch (_g.label) {
4429
4220
  case 0:
4430
4221
  tableCode = tableActionDetail.tableCode, actionCode = tableActionDetail.actionCode;
4431
4222
  tableEventHandlers = this.tableActionsFinish[tableCode];
@@ -4441,14 +4232,14 @@
4441
4232
  catch (e_14_1) { e_14 = { error: e_14_1 }; }
4442
4233
  finally {
4443
4234
  try {
4444
- if (tableActionMethods_2_1 && !tableActionMethods_2_1.done && (_d = tableActionMethods_2.return)) _d.call(tableActionMethods_2);
4235
+ if (tableActionMethods_2_1 && !tableActionMethods_2_1.done && (_f = tableActionMethods_2.return)) _f.call(tableActionMethods_2);
4445
4236
  }
4446
4237
  finally { if (e_14) throw e_14.error; }
4447
4238
  }
4448
4239
  return [4 /*yield*/, Promise.all(clientActionPromises)];
4449
4240
  case 1:
4450
- _e.sent();
4451
- _e.label = 2;
4241
+ _g.sent();
4242
+ _g.label = 2;
4452
4243
  case 2: return [2 /*return*/];
4453
4244
  }
4454
4245
  });
@@ -4457,9 +4248,9 @@
4457
4248
  BasicFormComponent.prototype.startTableAction = function (tableActionEvent) {
4458
4249
  return __awaiter(this, void 0, void 0, function () {
4459
4250
  var tableCode, actionCode, actionDetail, tableObject, recordId, recordData, action, tableActionDetail, tableEventHandlers, tableActionMethods, clientActionPromises, tableActionMethods_3, tableActionMethods_3_1, tableActionMethod, clientActionPromise, clientActionResults, continueAction;
4460
- var e_15, _d;
4461
- return __generator(this, function (_e) {
4462
- switch (_e.label) {
4251
+ var e_15, _f;
4252
+ return __generator(this, function (_g) {
4253
+ switch (_g.label) {
4463
4254
  case 0:
4464
4255
  tableCode = tableActionEvent.tableCode, actionCode = tableActionEvent.actionCode, actionDetail = tableActionEvent.actionDetail;
4465
4256
  tableObject = this.getTable(tableCode);
@@ -4494,18 +4285,18 @@
4494
4285
  catch (e_15_1) { e_15 = { error: e_15_1 }; }
4495
4286
  finally {
4496
4287
  try {
4497
- if (tableActionMethods_3_1 && !tableActionMethods_3_1.done && (_d = tableActionMethods_3.return)) _d.call(tableActionMethods_3);
4288
+ if (tableActionMethods_3_1 && !tableActionMethods_3_1.done && (_f = tableActionMethods_3.return)) _f.call(tableActionMethods_3);
4498
4289
  }
4499
4290
  finally { if (e_15) throw e_15.error; }
4500
4291
  }
4501
4292
  return [4 /*yield*/, Promise.all(clientActionPromises)];
4502
4293
  case 1:
4503
- clientActionResults = _e.sent();
4294
+ clientActionResults = _g.sent();
4504
4295
  continueAction = clientActionResults.reduce(function (total, curr) { return (total && curr); }, true);
4505
4296
  if (!continueAction) {
4506
4297
  return [2 /*return*/];
4507
4298
  }
4508
- _e.label = 2;
4299
+ _g.label = 2;
4509
4300
  case 2:
4510
4301
  this.startTableServerAction(tableActionDetail);
4511
4302
  return [2 /*return*/];
@@ -4516,8 +4307,8 @@
4516
4307
  BasicFormComponent.prototype.startTableServerAction = function (tableActionDetail) {
4517
4308
  return __awaiter(this, void 0, void 0, function () {
4518
4309
  var tableObject, action, tableCode, actionCode, recordId, recordData, finish, actionResult, actionSubject;
4519
- return __generator(this, function (_d) {
4520
- switch (_d.label) {
4310
+ return __generator(this, function (_f) {
4311
+ switch (_f.label) {
4521
4312
  case 0:
4522
4313
  tableObject = tableActionDetail.tableObject, action = tableActionDetail.action, tableCode = tableActionDetail.tableCode, actionCode = tableActionDetail.actionCode, recordId = tableActionDetail.recordId, recordData = tableActionDetail.recordData;
4523
4314
  if (!tableObject || !action) {
@@ -4537,9 +4328,9 @@
4537
4328
  return [4 /*yield*/, this
4538
4329
  .requestFormAction(componentConstants.FORMACTION_TABLEACTION, actionSubject)];
4539
4330
  case 1:
4540
- actionResult = _d.sent();
4331
+ actionResult = _f.sent();
4541
4332
  finish = !this.errorOccured();
4542
- _d.label = 2;
4333
+ _f.label = 2;
4543
4334
  case 2:
4544
4335
  if (finish) {
4545
4336
  this.finishTableAction(tableActionDetail, actionResult);
@@ -4560,9 +4351,9 @@
4560
4351
  BasicFormComponent.prototype.finishTableAction = function (tableActionDetail, actionResult) {
4561
4352
  return __awaiter(this, void 0, void 0, function () {
4562
4353
  var tableCode, actionCode, tableEventHandlers, tableActionMethods, clientActionPromises, tableActionMethods_4, tableActionMethods_4_1, tableActionMethod;
4563
- var e_16, _d;
4564
- return __generator(this, function (_e) {
4565
- switch (_e.label) {
4354
+ var e_16, _f;
4355
+ return __generator(this, function (_g) {
4356
+ switch (_g.label) {
4566
4357
  case 0:
4567
4358
  tableCode = tableActionDetail.tableCode, actionCode = tableActionDetail.actionCode;
4568
4359
  tableEventHandlers = this.tableActionsFinish[tableCode];
@@ -4578,14 +4369,14 @@
4578
4369
  catch (e_16_1) { e_16 = { error: e_16_1 }; }
4579
4370
  finally {
4580
4371
  try {
4581
- if (tableActionMethods_4_1 && !tableActionMethods_4_1.done && (_d = tableActionMethods_4.return)) _d.call(tableActionMethods_4);
4372
+ if (tableActionMethods_4_1 && !tableActionMethods_4_1.done && (_f = tableActionMethods_4.return)) _f.call(tableActionMethods_4);
4582
4373
  }
4583
4374
  finally { if (e_16) throw e_16.error; }
4584
4375
  }
4585
4376
  return [4 /*yield*/, Promise.all(clientActionPromises)];
4586
4377
  case 1:
4587
- _e.sent();
4588
- _e.label = 2;
4378
+ _g.sent();
4379
+ _g.label = 2;
4589
4380
  case 2: return [2 /*return*/];
4590
4381
  }
4591
4382
  });
@@ -4594,9 +4385,9 @@
4594
4385
  BasicFormComponent.prototype.startTableRecordSelection = function (tableActionEvent) {
4595
4386
  return __awaiter(this, void 0, void 0, function () {
4596
4387
  var tableCode, actionDetail, tableObject, recordId, recordData, tableSelectionDetail, tableEventHandlers, clientActionPromises, tableEventHandlers_1, tableEventHandlers_1_1, tableSelectionMethod, clientActionPromise, clientActionResults, continueAction;
4597
- var e_17, _d;
4598
- return __generator(this, function (_e) {
4599
- switch (_e.label) {
4388
+ var e_17, _f;
4389
+ return __generator(this, function (_g) {
4390
+ switch (_g.label) {
4600
4391
  case 0:
4601
4392
  tableCode = tableActionEvent.tableCode, actionDetail = tableActionEvent.actionDetail;
4602
4393
  tableObject = this.getTable(tableCode);
@@ -4624,18 +4415,18 @@
4624
4415
  catch (e_17_1) { e_17 = { error: e_17_1 }; }
4625
4416
  finally {
4626
4417
  try {
4627
- if (tableEventHandlers_1_1 && !tableEventHandlers_1_1.done && (_d = tableEventHandlers_1.return)) _d.call(tableEventHandlers_1);
4418
+ if (tableEventHandlers_1_1 && !tableEventHandlers_1_1.done && (_f = tableEventHandlers_1.return)) _f.call(tableEventHandlers_1);
4628
4419
  }
4629
4420
  finally { if (e_17) throw e_17.error; }
4630
4421
  }
4631
4422
  return [4 /*yield*/, Promise.all(clientActionPromises)];
4632
4423
  case 1:
4633
- clientActionResults = _e.sent();
4424
+ clientActionResults = _g.sent();
4634
4425
  continueAction = clientActionResults.reduce(function (total, curr) { return (total && curr); }, true);
4635
4426
  if (!continueAction) {
4636
4427
  return [2 /*return*/];
4637
4428
  }
4638
- _e.label = 2;
4429
+ _g.label = 2;
4639
4430
  case 2:
4640
4431
  this.startTableServerRecordSelection(tableSelectionDetail);
4641
4432
  return [2 /*return*/];
@@ -4646,8 +4437,8 @@
4646
4437
  BasicFormComponent.prototype.startTableServerRecordSelection = function (tableSelectionDetail) {
4647
4438
  return __awaiter(this, void 0, void 0, function () {
4648
4439
  var tableObject, tableCode, recordId, recordData, finish, actionResult, actionSubject;
4649
- return __generator(this, function (_d) {
4650
- switch (_d.label) {
4440
+ return __generator(this, function (_f) {
4441
+ switch (_f.label) {
4651
4442
  case 0:
4652
4443
  tableObject = tableSelectionDetail.tableObject, tableCode = tableSelectionDetail.tableCode, recordId = tableSelectionDetail.recordId, recordData = tableSelectionDetail.recordData;
4653
4444
  if (!tableObject) {
@@ -4667,9 +4458,9 @@
4667
4458
  return [4 /*yield*/, this
4668
4459
  .requestFormAction(componentConstants.FORMACTION_TABLEACTION, actionSubject)];
4669
4460
  case 1:
4670
- actionResult = _d.sent();
4461
+ actionResult = _f.sent();
4671
4462
  finish = !this.errorOccured();
4672
- _d.label = 2;
4463
+ _f.label = 2;
4673
4464
  case 2:
4674
4465
  if (finish) {
4675
4466
  this.finishTableRecordSelection(tableSelectionDetail, actionResult);
@@ -4686,9 +4477,9 @@
4686
4477
  BasicFormComponent.prototype.finishTableRecordSelection = function (tableSelectionDetail, actionResult) {
4687
4478
  return __awaiter(this, void 0, void 0, function () {
4688
4479
  var tableCode, tableEventHandlers, clientActionPromises, tableEventHandlers_2, tableEventHandlers_2_1, tableSelectionMethod;
4689
- var e_18, _d;
4690
- return __generator(this, function (_e) {
4691
- switch (_e.label) {
4480
+ var e_18, _f;
4481
+ return __generator(this, function (_g) {
4482
+ switch (_g.label) {
4692
4483
  case 0:
4693
4484
  tableCode = tableSelectionDetail.tableCode;
4694
4485
  tableEventHandlers = this.tableSelectionsFinish[tableCode];
@@ -4703,14 +4494,14 @@
4703
4494
  catch (e_18_1) { e_18 = { error: e_18_1 }; }
4704
4495
  finally {
4705
4496
  try {
4706
- if (tableEventHandlers_2_1 && !tableEventHandlers_2_1.done && (_d = tableEventHandlers_2.return)) _d.call(tableEventHandlers_2);
4497
+ if (tableEventHandlers_2_1 && !tableEventHandlers_2_1.done && (_f = tableEventHandlers_2.return)) _f.call(tableEventHandlers_2);
4707
4498
  }
4708
4499
  finally { if (e_18) throw e_18.error; }
4709
4500
  }
4710
4501
  return [4 /*yield*/, Promise.all(clientActionPromises)];
4711
4502
  case 1:
4712
- _e.sent();
4713
- _e.label = 2;
4503
+ _g.sent();
4504
+ _g.label = 2;
4714
4505
  case 2: return [2 /*return*/];
4715
4506
  }
4716
4507
  });
@@ -4719,9 +4510,9 @@
4719
4510
  BasicFormComponent.prototype.startTableSelectionAction = function (tableActionEvent) {
4720
4511
  return __awaiter(this, void 0, void 0, function () {
4721
4512
  var tableCode, actionCode, actionDetail, tableObject, selectedRecords, action, tableActionDetail, tableEventHandlers, tableActionMethods, clientActionPromises, tableActionMethods_5, tableActionMethods_5_1, tableActionMethod, clientActionPromise, clientActionResults, continueAction;
4722
- var e_19, _d;
4723
- return __generator(this, function (_e) {
4724
- switch (_e.label) {
4513
+ var e_19, _f;
4514
+ return __generator(this, function (_g) {
4515
+ switch (_g.label) {
4725
4516
  case 0:
4726
4517
  tableCode = tableActionEvent.tableCode, actionCode = tableActionEvent.actionCode, actionDetail = tableActionEvent.actionDetail;
4727
4518
  tableObject = this.getTable(tableCode);
@@ -4755,18 +4546,18 @@
4755
4546
  catch (e_19_1) { e_19 = { error: e_19_1 }; }
4756
4547
  finally {
4757
4548
  try {
4758
- if (tableActionMethods_5_1 && !tableActionMethods_5_1.done && (_d = tableActionMethods_5.return)) _d.call(tableActionMethods_5);
4549
+ if (tableActionMethods_5_1 && !tableActionMethods_5_1.done && (_f = tableActionMethods_5.return)) _f.call(tableActionMethods_5);
4759
4550
  }
4760
4551
  finally { if (e_19) throw e_19.error; }
4761
4552
  }
4762
4553
  return [4 /*yield*/, Promise.all(clientActionPromises)];
4763
4554
  case 1:
4764
- clientActionResults = _e.sent();
4555
+ clientActionResults = _g.sent();
4765
4556
  continueAction = clientActionResults.reduce(function (total, curr) { return (total && curr); }, true);
4766
4557
  if (!continueAction) {
4767
4558
  return [2 /*return*/];
4768
4559
  }
4769
- _e.label = 2;
4560
+ _g.label = 2;
4770
4561
  case 2:
4771
4562
  this.startTableServerSelectionAction(tableActionDetail);
4772
4563
  return [2 /*return*/];
@@ -4777,8 +4568,8 @@
4777
4568
  BasicFormComponent.prototype.startTableServerSelectionAction = function (tableActionDetail) {
4778
4569
  return __awaiter(this, void 0, void 0, function () {
4779
4570
  var tableObject, action, tableCode, actionCode, selectedRecords, finish, actionResult, actionSubject;
4780
- return __generator(this, function (_d) {
4781
- switch (_d.label) {
4571
+ return __generator(this, function (_f) {
4572
+ switch (_f.label) {
4782
4573
  case 0:
4783
4574
  tableObject = tableActionDetail.tableObject, action = tableActionDetail.action, tableCode = tableActionDetail.tableCode, actionCode = tableActionDetail.actionCode, selectedRecords = tableActionDetail.selectedRecords;
4784
4575
  if (!tableObject || !action) {
@@ -4797,9 +4588,9 @@
4797
4588
  return [4 /*yield*/, this
4798
4589
  .requestFormAction(componentConstants.FORMACTION_TABLEACTION, actionSubject)];
4799
4590
  case 1:
4800
- actionResult = _d.sent();
4591
+ actionResult = _f.sent();
4801
4592
  finish = !this.errorOccured();
4802
- _d.label = 2;
4593
+ _f.label = 2;
4803
4594
  case 2:
4804
4595
  if (finish) {
4805
4596
  this.finishTableSelectionAction(tableActionDetail, actionResult);
@@ -4817,9 +4608,9 @@
4817
4608
  BasicFormComponent.prototype.finishTableSelectionAction = function (tableActionDetail, actionResult) {
4818
4609
  return __awaiter(this, void 0, void 0, function () {
4819
4610
  var tableCode, actionCode, tableEventHandlers, tableActionMethods, clientActionPromises, tableActionMethods_6, tableActionMethods_6_1, tableActionMethod;
4820
- var e_20, _d;
4821
- return __generator(this, function (_e) {
4822
- switch (_e.label) {
4611
+ var e_20, _f;
4612
+ return __generator(this, function (_g) {
4613
+ switch (_g.label) {
4823
4614
  case 0:
4824
4615
  tableCode = tableActionDetail.tableCode, actionCode = tableActionDetail.actionCode;
4825
4616
  tableEventHandlers = this.tableActionsFinish[tableCode];
@@ -4835,14 +4626,14 @@
4835
4626
  catch (e_20_1) { e_20 = { error: e_20_1 }; }
4836
4627
  finally {
4837
4628
  try {
4838
- if (tableActionMethods_6_1 && !tableActionMethods_6_1.done && (_d = tableActionMethods_6.return)) _d.call(tableActionMethods_6);
4629
+ if (tableActionMethods_6_1 && !tableActionMethods_6_1.done && (_f = tableActionMethods_6.return)) _f.call(tableActionMethods_6);
4839
4630
  }
4840
4631
  finally { if (e_20) throw e_20.error; }
4841
4632
  }
4842
4633
  return [4 /*yield*/, Promise.all(clientActionPromises)];
4843
4634
  case 1:
4844
- _e.sent();
4845
- _e.label = 2;
4635
+ _g.sent();
4636
+ _g.label = 2;
4846
4637
  case 2: return [2 /*return*/];
4847
4638
  }
4848
4639
  });
@@ -4851,9 +4642,9 @@
4851
4642
  BasicFormComponent.prototype.startTableGetData = function (tableActionEvent) {
4852
4643
  return __awaiter(this, void 0, void 0, function () {
4853
4644
  var tableCode, tableObject, tableActionDetail, tableEventHandlers, clientActionPromises, tableEventHandlers_3, tableEventHandlers_3_1, tableActionMethod, clientActionPromise, clientActionResults, continueAction;
4854
- var e_21, _d;
4855
- return __generator(this, function (_e) {
4856
- switch (_e.label) {
4645
+ var e_21, _f;
4646
+ return __generator(this, function (_g) {
4647
+ switch (_g.label) {
4857
4648
  case 0:
4858
4649
  tableCode = tableActionEvent.tableCode;
4859
4650
  tableObject = this.getTable(tableCode);
@@ -4875,18 +4666,18 @@
4875
4666
  catch (e_21_1) { e_21 = { error: e_21_1 }; }
4876
4667
  finally {
4877
4668
  try {
4878
- if (tableEventHandlers_3_1 && !tableEventHandlers_3_1.done && (_d = tableEventHandlers_3.return)) _d.call(tableEventHandlers_3);
4669
+ if (tableEventHandlers_3_1 && !tableEventHandlers_3_1.done && (_f = tableEventHandlers_3.return)) _f.call(tableEventHandlers_3);
4879
4670
  }
4880
4671
  finally { if (e_21) throw e_21.error; }
4881
4672
  }
4882
4673
  return [4 /*yield*/, Promise.all(clientActionPromises)];
4883
4674
  case 1:
4884
- clientActionResults = _e.sent();
4675
+ clientActionResults = _g.sent();
4885
4676
  continueAction = clientActionResults.reduce(function (total, curr) { return (total && curr); }, true);
4886
4677
  if (!continueAction) {
4887
4678
  return [2 /*return*/];
4888
4679
  }
4889
- _e.label = 2;
4680
+ _g.label = 2;
4890
4681
  case 2:
4891
4682
  this.startTableServerGetData(tableActionDetail);
4892
4683
  return [2 /*return*/];
@@ -4897,8 +4688,8 @@
4897
4688
  BasicFormComponent.prototype.startTableServerGetData = function (tableActionDetail) {
4898
4689
  return __awaiter(this, void 0, void 0, function () {
4899
4690
  var tableObject, tableCode, actionSubject, actionResult;
4900
- return __generator(this, function (_d) {
4901
- switch (_d.label) {
4691
+ return __generator(this, function (_f) {
4692
+ switch (_f.label) {
4902
4693
  case 0:
4903
4694
  tableObject = tableActionDetail.tableObject, tableCode = tableActionDetail.tableCode;
4904
4695
  tableObject.putOnWait();
@@ -4906,7 +4697,7 @@
4906
4697
  return [4 /*yield*/, this
4907
4698
  .requestFormAction(componentConstants.FORMACTION_GETTABLEDATA, actionSubject)];
4908
4699
  case 1:
4909
- actionResult = _d.sent();
4700
+ actionResult = _f.sent();
4910
4701
  if (this.errorOccured()) {
4911
4702
  this.displayTableServerError();
4912
4703
  }
@@ -4922,9 +4713,9 @@
4922
4713
  BasicFormComponent.prototype.finishTableGetData = function (tableActionDetail, actionResult) {
4923
4714
  return __awaiter(this, void 0, void 0, function () {
4924
4715
  var tableCode, tableActionCode, tableEventHandlers, tableActionMethods, clientActionPromises, tableActionMethods_7, tableActionMethods_7_1, tableActionMethod;
4925
- var e_22, _d;
4926
- return __generator(this, function (_e) {
4927
- switch (_e.label) {
4716
+ var e_22, _f;
4717
+ return __generator(this, function (_g) {
4718
+ switch (_g.label) {
4928
4719
  case 0:
4929
4720
  tableCode = tableActionDetail.tableCode, tableActionCode = tableActionDetail.tableActionCode;
4930
4721
  tableEventHandlers = this.tableActionsFinish[tableCode];
@@ -4940,14 +4731,14 @@
4940
4731
  catch (e_22_1) { e_22 = { error: e_22_1 }; }
4941
4732
  finally {
4942
4733
  try {
4943
- if (tableActionMethods_7_1 && !tableActionMethods_7_1.done && (_d = tableActionMethods_7.return)) _d.call(tableActionMethods_7);
4734
+ if (tableActionMethods_7_1 && !tableActionMethods_7_1.done && (_f = tableActionMethods_7.return)) _f.call(tableActionMethods_7);
4944
4735
  }
4945
4736
  finally { if (e_22) throw e_22.error; }
4946
4737
  }
4947
4738
  return [4 /*yield*/, Promise.all(clientActionPromises)];
4948
4739
  case 1:
4949
- _e.sent();
4950
- _e.label = 2;
4740
+ _g.sent();
4741
+ _g.label = 2;
4951
4742
  case 2: return [2 /*return*/];
4952
4743
  }
4953
4744
  });
@@ -4960,7 +4751,7 @@
4960
4751
  return (numErrors === 0);
4961
4752
  };
4962
4753
  BasicFormComponent.prototype.validateSectionConsistency = function (sectionCode, reqFieldMessage) {
4963
- var e_23, _d, e_24, _e;
4754
+ var e_23, _f, e_24, _g;
4964
4755
  this.resetError();
4965
4756
  var completeFields = this.checkSectionRequiredFields(sectionCode, reqFieldMessage);
4966
4757
  if (!completeFields) {
@@ -4987,7 +4778,7 @@
4987
4778
  catch (e_23_1) { e_23 = { error: e_23_1 }; }
4988
4779
  finally {
4989
4780
  try {
4990
- if (requiredEmptyFields_1_1 && !requiredEmptyFields_1_1.done && (_d = requiredEmptyFields_1.return)) _d.call(requiredEmptyFields_1);
4781
+ if (requiredEmptyFields_1_1 && !requiredEmptyFields_1_1.done && (_f = requiredEmptyFields_1.return)) _f.call(requiredEmptyFields_1);
4991
4782
  }
4992
4783
  finally { if (e_23) throw e_23.error; }
4993
4784
  }
@@ -5010,7 +4801,7 @@
5010
4801
  catch (e_24_1) { e_24 = { error: e_24_1 }; }
5011
4802
  finally {
5012
4803
  try {
5013
- if (validationIssueFields_1_1 && !validationIssueFields_1_1.done && (_e = validationIssueFields_1.return)) _e.call(validationIssueFields_1);
4804
+ if (validationIssueFields_1_1 && !validationIssueFields_1_1.done && (_g = validationIssueFields_1.return)) _g.call(validationIssueFields_1);
5014
4805
  }
5015
4806
  finally { if (e_24) throw e_24.error; }
5016
4807
  }
@@ -5018,7 +4809,7 @@
5018
4809
  return validationError;
5019
4810
  };
5020
4811
  BasicFormComponent.prototype.copyTableRecordToFields = function (tableObj, mappingTable) {
5021
- var e_25, _d;
4812
+ var e_25, _f;
5022
4813
  if (mappingTable === void 0) { mappingTable = null; }
5023
4814
  var _a, _b;
5024
4815
  var tableObject = this.getTable(tableObj.tableCode);
@@ -5035,7 +4826,7 @@
5035
4826
  catch (e_25_1) { e_25 = { error: e_25_1 }; }
5036
4827
  finally {
5037
4828
  try {
5038
- if (columnNames_1_1 && !columnNames_1_1.done && (_d = columnNames_1.return)) _d.call(columnNames_1);
4829
+ if (columnNames_1_1 && !columnNames_1_1.done && (_f = columnNames_1.return)) _f.call(columnNames_1);
5039
4830
  }
5040
4831
  finally { if (e_25) throw e_25.error; }
5041
4832
  }
@@ -5045,7 +4836,7 @@
5045
4836
  * Soporte registros en tablas que se editan en campos del formulario
5046
4837
  */
5047
4838
  BasicFormComponent.prototype.defineEditionTable = function (tableEditionDef) {
5048
- var e_26, _d;
4839
+ var e_26, _f;
5049
4840
  var _this = this;
5050
4841
  var columnFieldMapping = tableEditionDef.columnFieldMapping, recordCaptureFields = tableEditionDef.recordCaptureFields, startCollapsed = tableEditionDef.startCollapsed;
5051
4842
  tableEditionDef.startCollapsed = (typeof startCollapsed !== 'undefined')
@@ -5055,7 +4846,7 @@
5055
4846
  try {
5056
4847
  for (var columnFieldMapping_1 = __values(columnFieldMapping), columnFieldMapping_1_1 = columnFieldMapping_1.next(); !columnFieldMapping_1_1.done; columnFieldMapping_1_1 = columnFieldMapping_1.next()) {
5057
4848
  var columnMap = columnFieldMapping_1_1.value;
5058
- var _e = __read(columnMap, 2), columnName = _e[0], formField = _e[1];
4849
+ var _g = __read(columnMap, 2), columnName = _g[0], formField = _g[1];
5059
4850
  fieldsMappingTable[columnName] = formField;
5060
4851
  fieldsToClear.push(formField);
5061
4852
  }
@@ -5063,7 +4854,7 @@
5063
4854
  catch (e_26_1) { e_26 = { error: e_26_1 }; }
5064
4855
  finally {
5065
4856
  try {
5066
- if (columnFieldMapping_1_1 && !columnFieldMapping_1_1.done && (_d = columnFieldMapping_1.return)) _d.call(columnFieldMapping_1);
4857
+ if (columnFieldMapping_1_1 && !columnFieldMapping_1_1.done && (_f = columnFieldMapping_1.return)) _f.call(columnFieldMapping_1);
5067
4858
  }
5068
4859
  finally { if (e_26) throw e_26.error; }
5069
4860
  }
@@ -5116,7 +4907,7 @@
5116
4907
  }
5117
4908
  };
5118
4909
  BasicFormComponent.prototype.enableRecordEdition = function (tableEditionDef, tableActionObject) {
5119
- var e_27, _d;
4910
+ var e_27, _f;
5120
4911
  if (tableActionObject === void 0) { tableActionObject = null; }
5121
4912
  if (tableActionObject) {
5122
4913
  this.copyTableRecordToFields(tableActionObject, tableEditionDef.fieldsMappingTable);
@@ -5128,15 +4919,15 @@
5128
4919
  if (tableEditionDef.fieldsToTriggerValidation
5129
4920
  && tableEditionDef.fieldsToTriggerValidation.length > 0) {
5130
4921
  try {
5131
- for (var _e = __values(tableEditionDef.fieldsToTriggerValidation), _f = _e.next(); !_f.done; _f = _e.next()) {
5132
- var fieldName = _f.value;
4922
+ for (var _g = __values(tableEditionDef.fieldsToTriggerValidation), _h = _g.next(); !_h.done; _h = _g.next()) {
4923
+ var fieldName = _h.value;
5133
4924
  this.startFieldValidation(fieldName);
5134
4925
  }
5135
4926
  }
5136
4927
  catch (e_27_1) { e_27 = { error: e_27_1 }; }
5137
4928
  finally {
5138
4929
  try {
5139
- if (_f && !_f.done && (_d = _e.return)) _d.call(_e);
4930
+ if (_h && !_h.done && (_f = _g.return)) _f.call(_g);
5140
4931
  }
5141
4932
  finally { if (e_27) throw e_27.error; }
5142
4933
  }
@@ -5184,7 +4975,6 @@
5184
4975
  BasicFormComponent,
5185
4976
  ActionComponent,
5186
4977
  FieldComponent,
5187
- PasswordComponent,
5188
4978
  ElementComponent,
5189
4979
  FormErrorComponent,
5190
4980
  FormHeaderComponent,
@@ -5222,7 +5012,6 @@
5222
5012
  exports.FieldComponent = FieldComponent;
5223
5013
  exports.FormErrorComponent = FormErrorComponent;
5224
5014
  exports.FormHeaderComponent = FormHeaderComponent;
5225
- exports.IconDictionaryService = IconDictionaryService;
5226
5015
  exports.LibEventManagerService = LibEventManagerService;
5227
5016
  exports.LibFileManagementService = LibFileManagementService;
5228
5017
  exports.LibFormManagerService = LibFormManagerService;
@@ -5230,11 +5019,9 @@
5230
5019
  exports.LibTableFilterComponent = LibTableFilterComponent;
5231
5020
  exports.LibTableRecordActionComponent = LibTableRecordActionComponent;
5232
5021
  exports.LibTableRecordFieldComponent = LibTableRecordFieldComponent;
5233
- exports.PasswordComponent = PasswordComponent;
5234
5022
  exports.SectionComponent = SectionComponent;
5235
5023
  exports.SubSectionComponent = SubSectionComponent;
5236
5024
  exports.TuainNgFormsLibModule = TuainNgFormsLibModule;
5237
- exports.iconDictionary = iconDictionary;
5238
5025
 
5239
5026
  Object.defineProperty(exports, '__esModule', { value: true });
5240
5027