@acpaas-ui/ngx-forms 5.2.1 → 5.4.0
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/acpaas-ui-ngx-forms.metadata.json +1 -1
- package/bundles/acpaas-ui-ngx-forms.umd.js +29 -10
- package/bundles/acpaas-ui-ngx-forms.umd.js.map +1 -1
- package/bundles/acpaas-ui-ngx-forms.umd.min.js +1 -1
- package/bundles/acpaas-ui-ngx-forms.umd.min.js.map +1 -1
- package/esm2015/lib/datepicker/components/datepicker/datepicker.component.js +17 -9
- package/esm2015/lib/upload/components/upload/upload.component.js +6 -2
- package/esm2015/lib/upload/components/upload-zone/upload-zone.component.js +9 -2
- package/esm5/lib/datepicker/components/datepicker/datepicker.component.js +17 -9
- package/esm5/lib/upload/components/upload/upload.component.js +6 -2
- package/esm5/lib/upload/components/upload-zone/upload-zone.component.js +9 -2
- package/fesm2015/acpaas-ui-ngx-forms.js +29 -10
- package/fesm2015/acpaas-ui-ngx-forms.js.map +1 -1
- package/fesm5/acpaas-ui-ngx-forms.js +29 -10
- package/fesm5/acpaas-ui-ngx-forms.js.map +1 -1
- package/lib/datepicker/components/datepicker/datepicker.component.d.ts +6 -4
- package/lib/upload/components/upload/upload.component.d.ts +1 -0
- package/lib/upload/components/upload-zone/upload-zone.component.d.ts +1 -0
- package/package.json +2 -2
|
@@ -929,12 +929,12 @@
|
|
|
929
929
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
930
930
|
*/
|
|
931
931
|
var DatepickerComponent = /** @class */ (function () {
|
|
932
|
-
function DatepickerComponent(
|
|
933
|
-
if (
|
|
934
|
-
if (
|
|
932
|
+
function DatepickerComponent(moduleMonthLabels, moduleWeekdayLabels, errorLabels, calendarService, formBuilder, ref) {
|
|
933
|
+
if (moduleMonthLabels === void 0) { moduleMonthLabels = ngxCalendar.CALENDAR_DEFAULT_MONTH_LABELS; }
|
|
934
|
+
if (moduleWeekdayLabels === void 0) { moduleWeekdayLabels = ngxCalendar.CALENDAR_DEFAULT_WEEKDAY_LABELS; }
|
|
935
935
|
if (errorLabels === void 0) { errorLabels = DATEPICKER_DEFAULT_ERROR_LABELS; }
|
|
936
|
-
this.
|
|
937
|
-
this.
|
|
936
|
+
this.moduleMonthLabels = moduleMonthLabels;
|
|
937
|
+
this.moduleWeekdayLabels = moduleWeekdayLabels;
|
|
938
938
|
this.errorLabels = errorLabels;
|
|
939
939
|
this.calendarService = calendarService;
|
|
940
940
|
this.formBuilder = formBuilder;
|
|
@@ -961,6 +961,8 @@
|
|
|
961
961
|
*/
|
|
962
962
|
function () {
|
|
963
963
|
var _this = this;
|
|
964
|
+
this.weekdayLabels = this.weekdayLabels || this.moduleWeekdayLabels;
|
|
965
|
+
this.monthLabels = this.monthLabels || this.moduleMonthLabels;
|
|
964
966
|
this.createInterval();
|
|
965
967
|
this.formControl = this.formBuilder.control({ value: '', disabled: this.isDisabled });
|
|
966
968
|
this.formControl.valueChanges
|
|
@@ -1180,7 +1182,7 @@
|
|
|
1180
1182
|
DatepickerComponent.decorators = [
|
|
1181
1183
|
{ type: core.Component, args: [{
|
|
1182
1184
|
selector: 'aui-datepicker',
|
|
1183
|
-
template: "<div aria-haspopup=\"grid\" auiFlyout class=\"aui-datepicker a-input__wrapper\">\n <input\n (blur)=\"handleBlur($event)\"\n [attr.disabled]=\"isDisabled ? true : null\"\n [auiMask]=\"dateMask.mask\"\n [autocomplete]=\"autocomplete\"\n [formControl]=\"formControl\"\n id=\"{{ id }}\"\n name=\"{{ name }}\"\n placeholder=\"{{ placeholder }}\"\n type=\"text\"\n >\n <aui-icon *ngIf=\"isDisabled\" name=\"ai-calendar-3\" role=\"button\" tabindex=\"0\"></aui-icon>\n\n <ng-container *ngIf=\"!isDisabled\">\n <aui-icon auiFlyoutAction [openOnFocus]=\"false\" name=\"ai-calendar-3\" className=\"is-clickable\" role=\"button\" tabindex=\"0\"></aui-icon>\n </ng-container>\n\n <ng-container *ngIf=\"!isDisabled\">\n <div auiFlyoutZone class=\"m-datepicker m-datepicker--fixed\" role=\"dialog\">\n <aui-calendar
|
|
1185
|
+
template: "<div aria-haspopup=\"grid\" auiFlyout class=\"aui-datepicker a-input__wrapper\">\n <input\n (blur)=\"handleBlur($event)\"\n [attr.disabled]=\"isDisabled ? true : null\"\n [auiMask]=\"dateMask.mask\"\n [autocomplete]=\"autocomplete\"\n [formControl]=\"formControl\"\n id=\"{{ id }}\"\n name=\"{{ name }}\"\n placeholder=\"{{ placeholder }}\"\n type=\"text\"\n >\n <aui-icon *ngIf=\"isDisabled\" name=\"ai-calendar-3\" role=\"button\" tabindex=\"0\"></aui-icon>\n\n <ng-container *ngIf=\"!isDisabled\">\n <aui-icon auiFlyoutAction [openOnFocus]=\"false\" name=\"ai-calendar-3\" className=\"is-clickable\" role=\"button\" tabindex=\"0\"></aui-icon>\n </ng-container>\n\n <ng-container *ngIf=\"!isDisabled\">\n <div auiFlyoutZone class=\"m-datepicker m-datepicker--fixed\" role=\"dialog\">\n <aui-calendar\n (selectDate)=\"selectDateFromCalendar($event)\"\n [range]=\"range\"\n [selectedDate]=\"selectedDate\"\n [interval]=\"interval\"\n [weekdayLabels]=\"weekdayLabels\"\n [monthLabels]=\"monthLabels\"\n ></aui-calendar>\n </div>\n </ng-container>\n</div>\n",
|
|
1184
1186
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
1185
1187
|
providers: [{
|
|
1186
1188
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
@@ -1220,6 +1222,8 @@
|
|
|
1220
1222
|
min: [{ type: core.Input }],
|
|
1221
1223
|
max: [{ type: core.Input }],
|
|
1222
1224
|
autocomplete: [{ type: core.Input }],
|
|
1225
|
+
weekdayLabels: [{ type: core.Input }],
|
|
1226
|
+
monthLabels: [{ type: core.Input }],
|
|
1223
1227
|
blur: [{ type: core.Output }]
|
|
1224
1228
|
};
|
|
1225
1229
|
return DatepickerComponent;
|
|
@@ -1242,6 +1246,10 @@
|
|
|
1242
1246
|
/** @type {?} */
|
|
1243
1247
|
DatepickerComponent.prototype.autocomplete;
|
|
1244
1248
|
/** @type {?} */
|
|
1249
|
+
DatepickerComponent.prototype.weekdayLabels;
|
|
1250
|
+
/** @type {?} */
|
|
1251
|
+
DatepickerComponent.prototype.monthLabels;
|
|
1252
|
+
/** @type {?} */
|
|
1245
1253
|
DatepickerComponent.prototype.blur;
|
|
1246
1254
|
/** @type {?} */
|
|
1247
1255
|
DatepickerComponent.prototype.dateMask;
|
|
@@ -1272,12 +1280,12 @@
|
|
|
1272
1280
|
* @type {?}
|
|
1273
1281
|
* @private
|
|
1274
1282
|
*/
|
|
1275
|
-
DatepickerComponent.prototype.
|
|
1283
|
+
DatepickerComponent.prototype.moduleMonthLabels;
|
|
1276
1284
|
/**
|
|
1277
1285
|
* @type {?}
|
|
1278
1286
|
* @private
|
|
1279
1287
|
*/
|
|
1280
|
-
DatepickerComponent.prototype.
|
|
1288
|
+
DatepickerComponent.prototype.moduleWeekdayLabels;
|
|
1281
1289
|
/**
|
|
1282
1290
|
* @type {?}
|
|
1283
1291
|
* @private
|
|
@@ -2864,6 +2872,7 @@
|
|
|
2864
2872
|
function UploadComponent() {
|
|
2865
2873
|
this.id = '';
|
|
2866
2874
|
this.accept = [];
|
|
2875
|
+
this.capture = '';
|
|
2867
2876
|
this.ariaLabelRemove = 'Verwijder';
|
|
2868
2877
|
this.disabled = false;
|
|
2869
2878
|
this.multiple = true;
|
|
@@ -2922,13 +2931,14 @@
|
|
|
2922
2931
|
UploadComponent.decorators = [
|
|
2923
2932
|
{ type: core.Component, args: [{
|
|
2924
2933
|
selector: 'aui-upload',
|
|
2925
|
-
template: "<div class=\"m-upload aui-upload\">\n <aui-upload-zone\n [id]=\"id\"\n [accept]=\"accept\"\n [ariaId]=\"ariaId\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n [uploader]=\"uploader\"\n (invalidFiles)=\"onInvalidFiles($event)\"\n (queuedFiles)=\"onQueuedFiles($event)\"\n (uploadedFiles)=\"onUploadedFiles($event)\">\n <div class=\"m-upload__message\">\n <ng-content select=\".m-upload__message\"></ng-content>\n </div>\n <div class=\"m-upload__description\">\n <ng-content select=\".m-upload__description\"></ng-content>\n </div>\n <div class=\"m-upload__button\">\n <ng-content select=\".m-upload__button\"></ng-content>\n </div>\n </aui-upload-zone>\n <aui-validation-list [ariaLabelRemove]=\"ariaLabelRemove\" [invalidFiles]=\"invalidFiles\"></aui-validation-list>\n <aui-upload-queue (uploadedFiles)=\"onUploadedFiles($event)\" *ngIf=\"!options?.autoUpload\" [ariaLabelRemove]=\"ariaLabelRemove\"\n [files]=\"queuedFiles\" [uploader]=\"uploader\"></aui-upload-queue>\n</div>\n",
|
|
2934
|
+
template: "<div class=\"m-upload aui-upload\">\n <aui-upload-zone\n [id]=\"id\"\n [accept]=\"accept\"\n [capture]=\"capture\"\n [ariaId]=\"ariaId\"\n [disabled]=\"disabled\"\n [multiple]=\"multiple\"\n [uploader]=\"uploader\"\n (invalidFiles)=\"onInvalidFiles($event)\"\n (queuedFiles)=\"onQueuedFiles($event)\"\n (uploadedFiles)=\"onUploadedFiles($event)\">\n <div class=\"m-upload__message\">\n <ng-content select=\".m-upload__message\"></ng-content>\n </div>\n <div class=\"m-upload__description\">\n <ng-content select=\".m-upload__description\"></ng-content>\n </div>\n <div class=\"m-upload__button\">\n <ng-content select=\".m-upload__button\"></ng-content>\n </div>\n </aui-upload-zone>\n <aui-validation-list [ariaLabelRemove]=\"ariaLabelRemove\" [invalidFiles]=\"invalidFiles\"></aui-validation-list>\n <aui-upload-queue (uploadedFiles)=\"onUploadedFiles($event)\" *ngIf=\"!options?.autoUpload\" [ariaLabelRemove]=\"ariaLabelRemove\"\n [files]=\"queuedFiles\" [uploader]=\"uploader\"></aui-upload-queue>\n</div>\n",
|
|
2926
2935
|
styles: [".m-upload__button>.m-upload__input{display:none}"]
|
|
2927
2936
|
}] }
|
|
2928
2937
|
];
|
|
2929
2938
|
UploadComponent.propDecorators = {
|
|
2930
2939
|
id: [{ type: core.Input }],
|
|
2931
2940
|
accept: [{ type: core.Input }],
|
|
2941
|
+
capture: [{ type: core.Input }],
|
|
2932
2942
|
ariaLabelRemove: [{ type: core.Input }],
|
|
2933
2943
|
disabled: [{ type: core.Input }],
|
|
2934
2944
|
multiple: [{ type: core.Input }],
|
|
@@ -2943,6 +2953,8 @@
|
|
|
2943
2953
|
/** @type {?} */
|
|
2944
2954
|
UploadComponent.prototype.accept;
|
|
2945
2955
|
/** @type {?} */
|
|
2956
|
+
UploadComponent.prototype.capture;
|
|
2957
|
+
/** @type {?} */
|
|
2946
2958
|
UploadComponent.prototype.ariaLabelRemove;
|
|
2947
2959
|
/** @type {?} */
|
|
2948
2960
|
UploadComponent.prototype.disabled;
|
|
@@ -3130,6 +3142,7 @@
|
|
|
3130
3142
|
this.renderer = renderer;
|
|
3131
3143
|
this.id = '';
|
|
3132
3144
|
this.accept = [];
|
|
3145
|
+
this.capture = '';
|
|
3133
3146
|
this.ariaId = '';
|
|
3134
3147
|
this.disabled = false;
|
|
3135
3148
|
this.multiple = true;
|
|
@@ -3221,12 +3234,15 @@
|
|
|
3221
3234
|
if (this.multiple !== false) {
|
|
3222
3235
|
this.renderer.setProperty(this.fileInput.nativeElement, 'multiple', 'multiple');
|
|
3223
3236
|
}
|
|
3224
|
-
if (this.accept) {
|
|
3237
|
+
if (!!this.accept.length) {
|
|
3225
3238
|
this.renderer.setProperty(this.fileInput.nativeElement, 'accept', this.accept.join());
|
|
3226
3239
|
}
|
|
3227
3240
|
if (this.disabled) {
|
|
3228
3241
|
this.renderer.setProperty(this.fileInput.nativeElement, 'disabled', 'disabled');
|
|
3229
3242
|
}
|
|
3243
|
+
if (this.capture !== '') {
|
|
3244
|
+
this.renderer.setAttribute(this.fileInput.nativeElement, 'capture', this.capture);
|
|
3245
|
+
}
|
|
3230
3246
|
};
|
|
3231
3247
|
/**
|
|
3232
3248
|
* @protected
|
|
@@ -3326,6 +3342,7 @@
|
|
|
3326
3342
|
uploader: [{ type: core.Input }],
|
|
3327
3343
|
id: [{ type: core.Input }],
|
|
3328
3344
|
accept: [{ type: core.Input }],
|
|
3345
|
+
capture: [{ type: core.Input }],
|
|
3329
3346
|
ariaId: [{ type: core.Input }],
|
|
3330
3347
|
disabled: [{ type: core.Input }],
|
|
3331
3348
|
multiple: [{ type: core.Input }],
|
|
@@ -3348,6 +3365,8 @@
|
|
|
3348
3365
|
/** @type {?} */
|
|
3349
3366
|
UploadZoneComponent.prototype.accept;
|
|
3350
3367
|
/** @type {?} */
|
|
3368
|
+
UploadZoneComponent.prototype.capture;
|
|
3369
|
+
/** @type {?} */
|
|
3351
3370
|
UploadZoneComponent.prototype.ariaId;
|
|
3352
3371
|
/** @type {?} */
|
|
3353
3372
|
UploadZoneComponent.prototype.disabled;
|