@smartsoft001/angular 1.1.787 → 1.1.791
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/smartsoft001-angular.umd.js +8 -5
- package/bundles/smartsoft001-angular.umd.js.map +1 -1
- package/esm2015/lib/components/input/array/array.component.js +4 -1
- package/esm2015/lib/components/input/input.component.js +5 -6
- package/fesm2015/smartsoft001-angular.js +7 -5
- package/fesm2015/smartsoft001-angular.js.map +1 -1
- package/lib/components/input/input.component.d.ts +1 -0
- package/package.json +5 -5
- package/smartsoft001-angular.metadata.json +1 -1
|
@@ -4140,10 +4140,9 @@
|
|
|
4140
4140
|
}
|
|
4141
4141
|
this.fieldOptions = fieldOptions;
|
|
4142
4142
|
this.initCustomComponent().then();
|
|
4143
|
-
this.options.control.statusChanges.subscribe(function () {
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
});
|
|
4143
|
+
this.options.control.statusChanges.subscribe(function (status) {
|
|
4144
|
+
_this.status = status;
|
|
4145
|
+
_this.injector.get(i0.ChangeDetectorRef).detectChanges();
|
|
4147
4146
|
});
|
|
4148
4147
|
},
|
|
4149
4148
|
enumerable: false,
|
|
@@ -4218,7 +4217,7 @@
|
|
|
4218
4217
|
InputComponent.decorators = [
|
|
4219
4218
|
{ type: i0.Component, args: [{
|
|
4220
4219
|
selector: 'smart-input',
|
|
4221
|
-
template: "<ion-item *ngIf=\"!fieldOptions?.hide\">\n <div class=\"container-right\">\n <smart-info *ngIf=\"fieldOptions?.info\" [text]=\"fieldOptions.info\"></smart-info>\n <smart-loader [show]=\"
|
|
4220
|
+
template: "<ion-item *ngIf=\"!fieldOptions?.hide\">\n <div class=\"container-right\">\n <smart-info *ngIf=\"fieldOptions?.info\" [text]=\"fieldOptions.info\"></smart-info>\n <smart-loader [show]=\"status === 'PENDING'\"></smart-loader>\n </div>\n <ng-container *ngIf=\"!options.component\" [ngSwitch]=\"fieldOptions?.type\">\n <smart-input-currency class=\"input-type\" *ngSwitchCase=\"FieldType.currency\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-currency>\n <smart-input-date class=\"input-type\" *ngSwitchCase=\"FieldType.date\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-date>\n <smart-input-date-with-edit class=\"input-type\" *ngSwitchCase=\"FieldType.dateWithEdit\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-date-with-edit>\n <smart-input-email class=\"input-type\" *ngSwitchCase=\"FieldType.email\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-email>\n <smart-input-enum class=\"input-type\" *ngSwitchCase=\"FieldType.enum\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-enum>\n <smart-input-file class=\"input-type\" *ngSwitchCase=\"FieldType.file\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-file>\n <smart-input-flag class=\"input-type\" *ngSwitchCase=\"FieldType.flag\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-flag>\n <smart-input-int class=\"input-type\" *ngSwitchCase=\"FieldType.int\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-int>\n <smart-input-nip class=\"input-type\" *ngSwitchCase=\"FieldType.nip\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-nip>\n <smart-input-password class=\"input-type\" *ngSwitchCase=\"FieldType.password\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-password>\n <smart-input-radio class=\"input-type\" *ngSwitchCase=\"FieldType.radio\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-radio>\n <smart-input-text class=\"input-type\" *ngSwitchCase=\"FieldType.text\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-text>\n <smart-input-strings class=\"input-type\" *ngSwitchCase=\"FieldType.strings\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-strings>\n <smart-input-long-text class=\"input-type\" *ngSwitchCase=\"FieldType.longText\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-long-text>\n <smart-input-address class=\"input-type\" *ngSwitchCase=\"FieldType.address\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-address>\n <smart-input-object class=\"input-type\" *ngSwitchCase=\"FieldType.object\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-object>\n <smart-input-color class=\"input-type\" *ngSwitchCase=\"FieldType.color\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-color>\n <smart-input-logo class=\"input-type\" *ngSwitchCase=\"FieldType.logo\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-logo>\n <smart-input-check class=\"input-type\" *ngSwitchCase=\"FieldType.check\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-check>\n <smart-input-ints class=\"input-type\" *ngSwitchCase=\"FieldType.ints\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-ints>\n <smart-input-phone-number class=\"input-type\" *ngSwitchCase=\"FieldType.phoneNumber\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-phone-number>\n <smart-input-phone-number-pl class=\"input-type\" *ngSwitchCase=\"FieldType.phoneNumberPl\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-phone-number-pl>\n <smart-input-pesel class=\"input-type\" *ngSwitchCase=\"FieldType.pesel\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-pesel>\n <smart-input-array class=\"input-type\" *ngSwitchCase=\"FieldType.array\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-array>\n <smart-input-pdf class=\"input-type\" *ngSwitchCase=\"FieldType.pdf\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-pdf>\n <smart-input-video class=\"input-type\" *ngSwitchCase=\"FieldType.video\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-video>\n <smart-input-attachment class=\"input-type\" *ngSwitchCase=\"FieldType.attachment\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-attachment>\n <smart-input-date-range class=\"input-type\" *ngSwitchCase=\"FieldType.dateRange\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-date-range>\n <smart-input-image class=\"input-type\" *ngSwitchCase=\"FieldType.image\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-image>\n <smart-input-float class=\"input-type\" *ngSwitchCase=\"FieldType.float\" [options]=\"options\" [fieldOptions]=\"fieldOptions\"></smart-input-float>\n </ng-container>\n\n <div #componentRef></div>\n</ion-item>\n\n<ion-item *ngIf=\"options?.control?.errors && options?.control?.touched\">\n <smart-input-error [errors]=\"options?.control?.errors\"></smart-input-error>\n</ion-item>\n",
|
|
4222
4221
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4223
4222
|
styles: [".input-type{width:100%;padding-left:1.2rem;padding-right:1.2rem}.container-right{height:2.4rem;position:absolute;right:3rem;top:15%;z-index:666}\n"]
|
|
4224
4223
|
},] }
|
|
@@ -6810,6 +6809,7 @@
|
|
|
6810
6809
|
_this.addButtonOptions = {
|
|
6811
6810
|
click: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
6812
6811
|
var options, modelOptions, control;
|
|
6812
|
+
var _this = this;
|
|
6813
6813
|
return __generator(this, function (_a) {
|
|
6814
6814
|
switch (_a.label) {
|
|
6815
6815
|
case 0:
|
|
@@ -6832,6 +6832,9 @@
|
|
|
6832
6832
|
show: true
|
|
6833
6833
|
});
|
|
6834
6834
|
this.control.markAsDirty();
|
|
6835
|
+
setTimeout(function () {
|
|
6836
|
+
_this.cd.detectChanges();
|
|
6837
|
+
});
|
|
6835
6838
|
return [2 /*return*/];
|
|
6836
6839
|
}
|
|
6837
6840
|
});
|