@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.
@@ -719,12 +719,12 @@ var DATEPICKER_DATE_MASK = "99" + DATEPICKER_SEPARATOR_CHAR + "99" + DATEPICKER_
719
719
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
720
720
  */
721
721
  var DatepickerComponent = /** @class */ (function () {
722
- function DatepickerComponent(monthLabels, weekdayLabels, errorLabels, calendarService, formBuilder, ref) {
723
- if (monthLabels === void 0) { monthLabels = CALENDAR_DEFAULT_MONTH_LABELS; }
724
- if (weekdayLabels === void 0) { weekdayLabels = CALENDAR_DEFAULT_WEEKDAY_LABELS; }
722
+ function DatepickerComponent(moduleMonthLabels, moduleWeekdayLabels, errorLabels, calendarService, formBuilder, ref) {
723
+ if (moduleMonthLabels === void 0) { moduleMonthLabels = CALENDAR_DEFAULT_MONTH_LABELS; }
724
+ if (moduleWeekdayLabels === void 0) { moduleWeekdayLabels = CALENDAR_DEFAULT_WEEKDAY_LABELS; }
725
725
  if (errorLabels === void 0) { errorLabels = DATEPICKER_DEFAULT_ERROR_LABELS; }
726
- this.monthLabels = monthLabels;
727
- this.weekdayLabels = weekdayLabels;
726
+ this.moduleMonthLabels = moduleMonthLabels;
727
+ this.moduleWeekdayLabels = moduleWeekdayLabels;
728
728
  this.errorLabels = errorLabels;
729
729
  this.calendarService = calendarService;
730
730
  this.formBuilder = formBuilder;
@@ -751,6 +751,8 @@ var DatepickerComponent = /** @class */ (function () {
751
751
  */
752
752
  function () {
753
753
  var _this = this;
754
+ this.weekdayLabels = this.weekdayLabels || this.moduleWeekdayLabels;
755
+ this.monthLabels = this.monthLabels || this.moduleMonthLabels;
754
756
  this.createInterval();
755
757
  this.formControl = this.formBuilder.control({ value: '', disabled: this.isDisabled });
756
758
  this.formControl.valueChanges
@@ -970,7 +972,7 @@ var DatepickerComponent = /** @class */ (function () {
970
972
  DatepickerComponent.decorators = [
971
973
  { type: Component, args: [{
972
974
  selector: 'aui-datepicker',
973
- 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 (selectDate)=\"selectDateFromCalendar($event)\" [range]=\"range\"\n [selectedDate]=\"selectedDate\" [interval]=\"interval\"></aui-calendar>\n </div>\n </ng-container>\n</div>\n",
975
+ 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",
974
976
  changeDetection: ChangeDetectionStrategy.OnPush,
975
977
  providers: [{
976
978
  provide: NG_VALUE_ACCESSOR,
@@ -1010,6 +1012,8 @@ var DatepickerComponent = /** @class */ (function () {
1010
1012
  min: [{ type: Input }],
1011
1013
  max: [{ type: Input }],
1012
1014
  autocomplete: [{ type: Input }],
1015
+ weekdayLabels: [{ type: Input }],
1016
+ monthLabels: [{ type: Input }],
1013
1017
  blur: [{ type: Output }]
1014
1018
  };
1015
1019
  return DatepickerComponent;
@@ -1032,6 +1036,10 @@ if (false) {
1032
1036
  /** @type {?} */
1033
1037
  DatepickerComponent.prototype.autocomplete;
1034
1038
  /** @type {?} */
1039
+ DatepickerComponent.prototype.weekdayLabels;
1040
+ /** @type {?} */
1041
+ DatepickerComponent.prototype.monthLabels;
1042
+ /** @type {?} */
1035
1043
  DatepickerComponent.prototype.blur;
1036
1044
  /** @type {?} */
1037
1045
  DatepickerComponent.prototype.dateMask;
@@ -1062,12 +1070,12 @@ if (false) {
1062
1070
  * @type {?}
1063
1071
  * @private
1064
1072
  */
1065
- DatepickerComponent.prototype.monthLabels;
1073
+ DatepickerComponent.prototype.moduleMonthLabels;
1066
1074
  /**
1067
1075
  * @type {?}
1068
1076
  * @private
1069
1077
  */
1070
- DatepickerComponent.prototype.weekdayLabels;
1078
+ DatepickerComponent.prototype.moduleWeekdayLabels;
1071
1079
  /**
1072
1080
  * @type {?}
1073
1081
  * @private
@@ -2654,6 +2662,7 @@ var UploadComponent = /** @class */ (function () {
2654
2662
  function UploadComponent() {
2655
2663
  this.id = '';
2656
2664
  this.accept = [];
2665
+ this.capture = '';
2657
2666
  this.ariaLabelRemove = 'Verwijder';
2658
2667
  this.disabled = false;
2659
2668
  this.multiple = true;
@@ -2712,13 +2721,14 @@ var UploadComponent = /** @class */ (function () {
2712
2721
  UploadComponent.decorators = [
2713
2722
  { type: Component, args: [{
2714
2723
  selector: 'aui-upload',
2715
- 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",
2724
+ 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",
2716
2725
  styles: [".m-upload__button>.m-upload__input{display:none}"]
2717
2726
  }] }
2718
2727
  ];
2719
2728
  UploadComponent.propDecorators = {
2720
2729
  id: [{ type: Input }],
2721
2730
  accept: [{ type: Input }],
2731
+ capture: [{ type: Input }],
2722
2732
  ariaLabelRemove: [{ type: Input }],
2723
2733
  disabled: [{ type: Input }],
2724
2734
  multiple: [{ type: Input }],
@@ -2733,6 +2743,8 @@ if (false) {
2733
2743
  /** @type {?} */
2734
2744
  UploadComponent.prototype.accept;
2735
2745
  /** @type {?} */
2746
+ UploadComponent.prototype.capture;
2747
+ /** @type {?} */
2736
2748
  UploadComponent.prototype.ariaLabelRemove;
2737
2749
  /** @type {?} */
2738
2750
  UploadComponent.prototype.disabled;
@@ -2920,6 +2932,7 @@ var UploadZoneComponent = /** @class */ (function () {
2920
2932
  this.renderer = renderer;
2921
2933
  this.id = '';
2922
2934
  this.accept = [];
2935
+ this.capture = '';
2923
2936
  this.ariaId = '';
2924
2937
  this.disabled = false;
2925
2938
  this.multiple = true;
@@ -3011,12 +3024,15 @@ var UploadZoneComponent = /** @class */ (function () {
3011
3024
  if (this.multiple !== false) {
3012
3025
  this.renderer.setProperty(this.fileInput.nativeElement, 'multiple', 'multiple');
3013
3026
  }
3014
- if (this.accept) {
3027
+ if (!!this.accept.length) {
3015
3028
  this.renderer.setProperty(this.fileInput.nativeElement, 'accept', this.accept.join());
3016
3029
  }
3017
3030
  if (this.disabled) {
3018
3031
  this.renderer.setProperty(this.fileInput.nativeElement, 'disabled', 'disabled');
3019
3032
  }
3033
+ if (this.capture !== '') {
3034
+ this.renderer.setAttribute(this.fileInput.nativeElement, 'capture', this.capture);
3035
+ }
3020
3036
  };
3021
3037
  /**
3022
3038
  * @protected
@@ -3116,6 +3132,7 @@ var UploadZoneComponent = /** @class */ (function () {
3116
3132
  uploader: [{ type: Input }],
3117
3133
  id: [{ type: Input }],
3118
3134
  accept: [{ type: Input }],
3135
+ capture: [{ type: Input }],
3119
3136
  ariaId: [{ type: Input }],
3120
3137
  disabled: [{ type: Input }],
3121
3138
  multiple: [{ type: Input }],
@@ -3138,6 +3155,8 @@ if (false) {
3138
3155
  /** @type {?} */
3139
3156
  UploadZoneComponent.prototype.accept;
3140
3157
  /** @type {?} */
3158
+ UploadZoneComponent.prototype.capture;
3159
+ /** @type {?} */
3141
3160
  UploadZoneComponent.prototype.ariaId;
3142
3161
  /** @type {?} */
3143
3162
  UploadZoneComponent.prototype.disabled;