@formio/angular 5.2.3-rc.3 → 5.2.4-rc.1
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/FormioBaseComponent.d.ts +2 -0
- package/FormioBaseComponent.d.ts.map +1 -1
- package/bundles/formio-angular.umd.js +16 -13
- package/bundles/formio-angular.umd.js.map +1 -1
- package/components/formbuilder/formbuilder.component.d.ts +1 -1
- package/components/formbuilder/formbuilder.component.d.ts.map +1 -1
- package/esm2015/FormioBaseComponent.js +11 -3
- package/esm2015/components/formbuilder/formbuilder.component.js +7 -10
- package/fesm2015/formio-angular.js +16 -11
- package/fesm2015/formio-angular.js.map +1 -1
- package/formio-angular.metadata.json +1 -1
- package/package.json +1 -1
package/FormioBaseComponent.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare class FormioBaseComponent implements OnInit, OnChanges, OnDestroy
|
|
|
28
28
|
hooks?: any;
|
|
29
29
|
renderer?: any;
|
|
30
30
|
watchSubmissionErrors?: boolean;
|
|
31
|
+
dataTableActions?: any;
|
|
31
32
|
render: EventEmitter<object>;
|
|
32
33
|
customEvent: EventEmitter<object>;
|
|
33
34
|
fileUploadingStatus: EventEmitter<string>;
|
|
@@ -41,6 +42,7 @@ export declare class FormioBaseComponent implements OnInit, OnChanges, OnDestroy
|
|
|
41
42
|
rowEdited: EventEmitter<any>;
|
|
42
43
|
rowDelete: EventEmitter<any>;
|
|
43
44
|
rowClick: EventEmitter<any>;
|
|
45
|
+
rowSelectChange: EventEmitter<any>;
|
|
44
46
|
change: EventEmitter<object>;
|
|
45
47
|
invalid: EventEmitter<boolean>;
|
|
46
48
|
errorChange: EventEmitter<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormioBaseComponent.d.ts","sourceRoot":"","sources":["../../projects/angular-formio/src/FormioBaseComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,YAAY,EAAS,MAAM,EAAE,SAAS,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B;IAC5B,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAEjC,OAAO,CAAC,kBAAkB,CAAM;IAChC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,iBAAiB,CAAS;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;gBAGZ,MAAM,EAAE,MAAM,EACF,MAAM,EAAE,eAAe,EACvB,UAAU,CAAC,EAAE,iBAAiB;IAQnD,WAAW;IAIX,kBAAkB;IAiBlB,cAAc;IAUd,OAAO,CAAC,IAAI,EAAE,UAAU;IA4ExB,UAAU;IA6BV,QAAQ;IAuER,WAAW;IAMX,SAAS,CAAC,OAAO,EAAE,kBAAkB;IAuBrC,WAAW,CAAC,OAAO,EAAE,GAAG;IA8BxB,UAAU,CAAC,IAAI,EAAE,GAAG;IAKpB,UAAU,CAAC,IAAI,EAAE,GAAG;IAKpB,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO;IAuB1D,OAAO,CAAC,GAAG,EAAE,GAAG;IAsFhB,eAAe,CAAC,GAAG,EAAE,GAAG;IAMxB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,UAAQ;IAa/C,UAAU,CAAC,UAAU,EAAE,GAAG,EAAE,KAAK,UAAQ;IA0BzC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO;CAWrD"}
|
|
@@ -195,6 +195,7 @@
|
|
|
195
195
|
this.viewOnly = false;
|
|
196
196
|
this.hooks = {};
|
|
197
197
|
this.watchSubmissionErrors = false;
|
|
198
|
+
this.dataTableActions = [];
|
|
198
199
|
this.render = new core.EventEmitter();
|
|
199
200
|
this.customEvent = new core.EventEmitter();
|
|
200
201
|
this.fileUploadingStatus = new core.EventEmitter();
|
|
@@ -208,6 +209,7 @@
|
|
|
208
209
|
this.rowEdited = new core.EventEmitter();
|
|
209
210
|
this.rowDelete = new core.EventEmitter();
|
|
210
211
|
this.rowClick = new core.EventEmitter();
|
|
212
|
+
this.rowSelectChange = new core.EventEmitter();
|
|
211
213
|
this.change = new core.EventEmitter();
|
|
212
214
|
this.invalid = new core.EventEmitter();
|
|
213
215
|
this.errorChange = new core.EventEmitter();
|
|
@@ -239,7 +241,8 @@
|
|
|
239
241
|
hooks: this.hooks,
|
|
240
242
|
sanitizeConfig: {
|
|
241
243
|
addTags: extraTags
|
|
242
|
-
}
|
|
244
|
+
},
|
|
245
|
+
dataTableActions: this.dataTableActions
|
|
243
246
|
}, this.renderOptions || {});
|
|
244
247
|
};
|
|
245
248
|
FormioBaseComponent.prototype.createRenderer = function () {
|
|
@@ -284,6 +287,7 @@
|
|
|
284
287
|
this.formio.on('rowEdited', function (data, rowIndex) { return _this.ngZone.run(function () { return _this.rowEdited.emit(Object.assign(Object.assign({}, data), { rowIndex: rowIndex })); }); });
|
|
285
288
|
this.formio.on('rowDelete', function (data, rowIndex, index) { return _this.ngZone.run(function () { return _this.rowDelete.emit(Object.assign(Object.assign({}, data), { rowIndex: rowIndex, index: index })); }); });
|
|
286
289
|
this.formio.on('rowClick', function (row, rowIndex, index) { return _this.ngZone.run(function () { return _this.rowClick.emit(Object.assign(Object.assign({}, row), { rowIndex: rowIndex, index: index })); }); });
|
|
290
|
+
this.formio.on('rowSelectChange', function (selectedRows) { return _this.ngZone.run(function () { return _this.rowSelectChange.emit(selectedRows); }); });
|
|
287
291
|
this.formio.on('customEvent', function (event) { return _this.ngZone.run(function () { return _this.customEvent.emit(event); }); });
|
|
288
292
|
['fileUploadingStart', 'fileUploadingEnd'].forEach(function (eventName, index) {
|
|
289
293
|
var status = !!index ? 'end' : 'start';
|
|
@@ -434,7 +438,9 @@
|
|
|
434
438
|
}
|
|
435
439
|
this.formioReady.then(function () {
|
|
436
440
|
if (changes.submission && changes.submission.currentValue) {
|
|
437
|
-
_this.formio.setSubmission(changes.submission.currentValue
|
|
441
|
+
_this.formio.setSubmission(changes.submission.currentValue, {
|
|
442
|
+
fromSubmission: !changes.submission.firstChange
|
|
443
|
+
});
|
|
438
444
|
}
|
|
439
445
|
if (changes.hideComponents && changes.hideComponents.currentValue) {
|
|
440
446
|
var hiddenComponents_1 = changes.hideComponents.currentValue;
|
|
@@ -635,6 +641,7 @@
|
|
|
635
641
|
hooks: [{ type: core.Input }],
|
|
636
642
|
renderer: [{ type: core.Input }],
|
|
637
643
|
watchSubmissionErrors: [{ type: core.Input }],
|
|
644
|
+
dataTableActions: [{ type: core.Input }],
|
|
638
645
|
render: [{ type: core.Output }],
|
|
639
646
|
customEvent: [{ type: core.Output }],
|
|
640
647
|
fileUploadingStatus: [{ type: core.Output }],
|
|
@@ -648,6 +655,7 @@
|
|
|
648
655
|
rowEdited: [{ type: core.Output }],
|
|
649
656
|
rowDelete: [{ type: core.Output }],
|
|
650
657
|
rowClick: [{ type: core.Output }],
|
|
658
|
+
rowSelectChange: [{ type: core.Output }],
|
|
651
659
|
change: [{ type: core.Output }],
|
|
652
660
|
invalid: [{ type: core.Output }],
|
|
653
661
|
errorChange: [{ type: core.Output }],
|
|
@@ -1123,25 +1131,20 @@
|
|
|
1123
1131
|
return instance;
|
|
1124
1132
|
};
|
|
1125
1133
|
FormBuilderComponent.prototype.setDisplay = function (display, prevDisplay) {
|
|
1126
|
-
var _this = this;
|
|
1127
1134
|
if (display && display !== prevDisplay) {
|
|
1128
|
-
|
|
1129
|
-
}
|
|
1130
|
-
else {
|
|
1131
|
-
return Promise.resolve();
|
|
1135
|
+
this.builder.display = display;
|
|
1132
1136
|
}
|
|
1133
1137
|
};
|
|
1134
1138
|
FormBuilderComponent.prototype.buildForm = function (form, prevForm) {
|
|
1135
|
-
var _this = this;
|
|
1136
1139
|
if (!form || !this.builderElement || !this.builderElement.nativeElement) {
|
|
1137
1140
|
return;
|
|
1138
1141
|
}
|
|
1139
1142
|
if (this.builder) {
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1143
|
+
this.setDisplay(form.display, prevForm === null || prevForm === void 0 ? void 0 : prevForm.display);
|
|
1144
|
+
this.setInstance(this.builder.instance);
|
|
1145
|
+
this.builder.form = form;
|
|
1146
|
+
this.builder.instance.form = form;
|
|
1147
|
+
return this.builder.instance;
|
|
1145
1148
|
}
|
|
1146
1149
|
return this.rebuildForm(form);
|
|
1147
1150
|
};
|