tuain-ng-forms-lib 0.12.3 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/tuain-ng-forms-lib.umd.js +145 -358
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/components/elements/action.component.js +44 -0
- package/esm2015/lib/components/elements/field.component.js +38 -0
- package/esm2015/lib/components/elements/layout/form-header.component.js +1 -7
- package/esm2015/lib/components/elements/tables/table-record-action.component.js +3 -18
- package/esm2015/lib/tuain-ng-forms-lib.module.js +3 -5
- package/esm2015/public-api.js +3 -5
- package/fesm2015/tuain-ng-forms-lib.js +4 -210
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/lib/components/elements/{actions/action.component.d.ts → action.component.d.ts} +0 -4
- package/lib/components/elements/{fields/field.component.d.ts → field.component.d.ts} +1 -1
- package/lib/components/elements/layout/form-header.component.d.ts +2 -5
- package/lib/components/elements/tables/table-record-action.component.d.ts +1 -4
- package/package.json +1 -1
- package/public-api.d.ts +2 -4
- package/tuain-ng-forms-lib.metadata.json +1 -1
- package/esm2015/lib/components/elements/actions/action.component.js +0 -53
- package/esm2015/lib/components/elements/fields/field.component.js +0 -38
- package/esm2015/lib/components/elements/fields/password.component.js +0 -18
- package/esm2015/lib/services/icon-dictionary.service.js +0 -161
- package/lib/components/elements/fields/password.component.d.ts +0 -6
- 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(
|
|
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(
|
|
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 }],
|
|
@@ -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
|
|