@acpaas-ui/ngx-forms 4.6.2 → 5.1.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/README.md +1 -1
- package/acpaas-ui-ngx-forms.metadata.json +1 -1
- package/bundles/acpaas-ui-ngx-forms.umd.js +31 -27
- 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/auto-complete/auto-complete.module.js +1 -1
- package/esm2015/lib/auto-complete/components/auto-complete/auto-complete.component.js +1 -1
- package/esm2015/lib/auto-complete/public-api.js +1 -1
- package/esm2015/lib/datepicker/components/datepicker/datepicker.component.js +4 -4
- package/esm2015/lib/datepicker/datepicker.conf.js +1 -1
- package/esm2015/lib/datepicker/datepicker.module.js +3 -1
- package/esm2015/lib/datepicker/public-api.js +1 -1
- package/esm2015/lib/mask/directives/mask.directive.js +1 -1
- package/esm2015/lib/mask/mask.module.js +1 -1
- package/esm2015/lib/mask/public-api.js +1 -1
- package/esm2015/lib/range-slider/components/range-slider/range-slider.component.js +1 -1
- package/esm2015/lib/range-slider/public-api.js +1 -1
- package/esm2015/lib/range-slider/range-slider.module.js +1 -1
- package/esm2015/lib/search-filter/components/search-filter/search-filter.component.js +2 -2
- package/esm2015/lib/search-filter/public-api.js +1 -1
- package/esm2015/lib/search-filter/search-filter.module.js +4 -2
- package/esm2015/lib/shared/services/search.service.js +1 -1
- package/esm2015/lib/timepicker/classes/timepicker.validators.js +1 -1
- package/esm2015/lib/timepicker/components/timepicker/timepicker.component.js +2 -2
- package/esm2015/lib/timepicker/public-api.js +1 -1
- package/esm2015/lib/timepicker/timepicker.module.js +3 -1
- package/esm2015/lib/upload/classes/uploader.class.js +1 -1
- package/esm2015/lib/upload/components/upload/upload.component.js +2 -2
- package/esm2015/lib/upload/components/upload-input/upload-input.component.js +1 -1
- package/esm2015/lib/upload/components/upload-queue/upload-queue.component.js +2 -2
- package/esm2015/lib/upload/components/upload-zone/upload-zone.component.js +13 -13
- package/esm2015/lib/upload/components/validation-list/validation-list.component.js +2 -2
- package/esm2015/lib/upload/public-api.js +1 -1
- package/esm2015/lib/upload/services/validation-messages.service.js +1 -1
- package/esm2015/lib/upload/upload.conf.js +1 -1
- package/esm2015/lib/upload/upload.module.js +3 -1
- package/esm2015/lib/wysiwyg/components/wysiwyg/wysiwyg.component.js +2 -2
- package/esm2015/lib/wysiwyg/public-api.js +1 -1
- package/esm2015/lib/wysiwyg/wysiwyg.conf.js +2 -2
- package/esm2015/lib/wysiwyg/wysiwyg.module.js +1 -1
- package/esm5/lib/auto-complete/auto-complete.module.js +1 -1
- package/esm5/lib/auto-complete/components/auto-complete/auto-complete.component.js +1 -1
- package/esm5/lib/auto-complete/public-api.js +1 -1
- package/esm5/lib/datepicker/components/datepicker/datepicker.component.js +4 -4
- package/esm5/lib/datepicker/datepicker.conf.js +1 -1
- package/esm5/lib/datepicker/datepicker.module.js +3 -1
- package/esm5/lib/datepicker/public-api.js +1 -1
- package/esm5/lib/mask/directives/mask.directive.js +1 -1
- package/esm5/lib/mask/mask.module.js +1 -1
- package/esm5/lib/mask/public-api.js +1 -1
- package/esm5/lib/range-slider/components/range-slider/range-slider.component.js +1 -1
- package/esm5/lib/range-slider/public-api.js +1 -1
- package/esm5/lib/range-slider/range-slider.module.js +1 -1
- package/esm5/lib/search-filter/components/search-filter/search-filter.component.js +2 -2
- package/esm5/lib/search-filter/public-api.js +1 -1
- package/esm5/lib/search-filter/search-filter.module.js +4 -2
- package/esm5/lib/shared/services/search.service.js +1 -1
- package/esm5/lib/timepicker/classes/timepicker.validators.js +1 -1
- package/esm5/lib/timepicker/components/timepicker/timepicker.component.js +2 -2
- package/esm5/lib/timepicker/public-api.js +1 -1
- package/esm5/lib/timepicker/timepicker.module.js +3 -1
- package/esm5/lib/upload/classes/uploader.class.js +1 -1
- package/esm5/lib/upload/components/upload/upload.component.js +2 -2
- package/esm5/lib/upload/components/upload-input/upload-input.component.js +1 -1
- package/esm5/lib/upload/components/upload-queue/upload-queue.component.js +2 -2
- package/esm5/lib/upload/components/upload-zone/upload-zone.component.js +13 -13
- package/esm5/lib/upload/components/validation-list/validation-list.component.js +2 -2
- package/esm5/lib/upload/public-api.js +1 -1
- package/esm5/lib/upload/services/validation-messages.service.js +1 -1
- package/esm5/lib/upload/upload.conf.js +1 -1
- package/esm5/lib/upload/upload.module.js +3 -1
- package/esm5/lib/wysiwyg/components/wysiwyg/wysiwyg.component.js +2 -2
- package/esm5/lib/wysiwyg/public-api.js +1 -1
- package/esm5/lib/wysiwyg/wysiwyg.conf.js +2 -2
- package/esm5/lib/wysiwyg/wysiwyg.module.js +1 -1
- package/fesm2015/acpaas-ui-ngx-forms.js +28 -23
- package/fesm2015/acpaas-ui-ngx-forms.js.map +1 -1
- package/fesm5/acpaas-ui-ngx-forms.js +28 -23
- package/fesm5/acpaas-ui-ngx-forms.js.map +1 -1
- package/lib/upload/components/upload-zone/upload-zone.component.d.ts +4 -4
- package/package.json +9 -7
|
@@ -11,6 +11,7 @@ import { takeUntil } from 'rxjs/operators';
|
|
|
11
11
|
import { DateHelper } from '@acpaas-ui/js-date-utils';
|
|
12
12
|
import { CALENDAR_DEFAULT_MONTH_LABELS, CALENDAR_DEFAULT_WEEKDAY_LABELS, CALENDAR_MONTH_LABELS, CALENDAR_WEEKDAY_LABELS, CalendarService, CalendarModule } from '@acpaas-ui/ngx-calendar';
|
|
13
13
|
import { IntervalBuilder } from '@acpaas-ui/ngx-utils';
|
|
14
|
+
import { IconModule } from '@acpaas-ui/ngx-icon';
|
|
14
15
|
import { ProgressBarModule } from '@acpaas-ui/ngx-progress-bar';
|
|
15
16
|
import { CKEditorModule } from 'ng2-ckeditor';
|
|
16
17
|
|
|
@@ -759,7 +760,7 @@ var DatepickerComponent = /** @class */ (function () {
|
|
|
759
760
|
/** @type {?} */
|
|
760
761
|
var format = value.split(DATEPICKER_SEPARATOR_CHAR).reverse().join('-');
|
|
761
762
|
/** @type {?} */
|
|
762
|
-
var date = DateHelper.parseDate(format, '
|
|
763
|
+
var date = DateHelper.parseDate(format, 'yyyy-MM-dd');
|
|
763
764
|
if (date) {
|
|
764
765
|
_this.selectedDate = date;
|
|
765
766
|
_this.onChange(date.toISOString());
|
|
@@ -812,7 +813,7 @@ var DatepickerComponent = /** @class */ (function () {
|
|
|
812
813
|
*/
|
|
813
814
|
function (value) {
|
|
814
815
|
this.selectedDate = typeof value === 'string'
|
|
815
|
-
? this.isISODateFormat(value) ? new Date(value) : DateHelper.parseDate(value, '
|
|
816
|
+
? this.isISODateFormat(value) ? new Date(value) : DateHelper.parseDate(value, 'dd/MM/yyyy')
|
|
816
817
|
: value;
|
|
817
818
|
/** @type {?} */
|
|
818
819
|
var dateString = this.selectedDate ? this.formatDate(this.selectedDate) : '';
|
|
@@ -952,7 +953,7 @@ var DatepickerComponent = /** @class */ (function () {
|
|
|
952
953
|
DatepickerComponent.decorators = [
|
|
953
954
|
{ type: Component, args: [{
|
|
954
955
|
selector: 'aui-datepicker',
|
|
955
|
-
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 <
|
|
956
|
+
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",
|
|
956
957
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
957
958
|
providers: [{
|
|
958
959
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -1107,6 +1108,7 @@ var DatepickerModule = /** @class */ (function () {
|
|
|
1107
1108
|
FormsModule,
|
|
1108
1109
|
ReactiveFormsModule,
|
|
1109
1110
|
CalendarModule,
|
|
1111
|
+
IconModule,
|
|
1110
1112
|
FlyoutModule,
|
|
1111
1113
|
MaskModule,
|
|
1112
1114
|
],
|
|
@@ -1850,7 +1852,7 @@ var SearchFilterComponent = /** @class */ (function () {
|
|
|
1850
1852
|
SearchFilterComponent.decorators = [
|
|
1851
1853
|
{ type: Component, args: [{
|
|
1852
1854
|
selector: 'aui-search-filter',
|
|
1853
|
-
template: "<div [align]=\"flyoutAlign\" [size]=\"flyoutSize\" auiFlyout class=\"m-search-filter\">\n <button class=\"has-icon-right a-button--default\" [attr.disabled]=\"isDisabled ? 'true' : null\" aria-haspopup=\u201Dtrue\u201D\n auiFlyoutAction\n [ngClass]=\"{\n 'a-button' : selectedItems.length,\n 'a-button-outline' : !selectedItems.length,\n 'a-button--large' : size === 'large',\n 'a-button--small': size === 'small',\n 'a-button--tiny' : size === 'tiny'\n }\">\n <span id=\"{{ id + '-label' }}\">{{ label }}</span>\n <span *ngIf=\"selectedItems.length\">({{ selectedItems.length }})</span>\n <
|
|
1855
|
+
template: "<div [align]=\"flyoutAlign\" [size]=\"flyoutSize\" auiFlyout class=\"m-search-filter\">\n <button class=\"has-icon-right a-button--default\" [attr.disabled]=\"isDisabled ? 'true' : null\" aria-haspopup=\u201Dtrue\u201D\n auiFlyoutAction\n [ngClass]=\"{\n 'a-button' : selectedItems.length,\n 'a-button-outline' : !selectedItems.length,\n 'a-button--large' : size === 'large',\n 'a-button--small': size === 'small',\n 'a-button--tiny' : size === 'tiny'\n }\">\n <span id=\"{{ id + '-label' }}\">{{ label }}</span>\n <span *ngIf=\"selectedItems.length\"> ({{ selectedItems.length }})</span>\n <aui-icon name=\"ai-arrow-down-1\"></aui-icon>\n </button>\n\n <div auiFlyoutZone class=\"m-search-filter__search m-search-filter__search--scroll\">\n <div *ngIf=\"!isDisabled\" class=\"m-search-filter__input a-input has-icon-right\">\n <div class=\"a-input__wrapper\">\n <input (input)=\"filterDataFromSearch()\" [(ngModel)]=\"query\" [attr.aria-labelledby]=\"id + '-label'\"\n [attr.placeholder]=\"placeholder\"\n aria-autocomplete=\"list\" id=\"{{ id + '-search' }}\" name=\"{{ name + '-search' }}\"\n type=\"text\">\n <aui-icon name=\"ai-search\"></aui-icon>\n </div>\n </div>\n\n <div *ngIf=\"!isDisabled && selectedItems.length > 0\" class=\"m-search-filter__clear\">\n <button (click)=\"clear()\" class=\"a-button-outline a-button--small a-button--danger has-icon-left\" type=\"button\">\n <aui-icon name=\"ai-close\"></aui-icon>\n {{ labelDeselect }}\n </button>\n </div>\n\n <p *ngIf=\"labelResults\" class=\"h6 m-search-filter__results-title u-margin-bottom-xs\">{{ labelResults }}</p>\n <div *ngIf=\"loading\" class=\"u-text-center u-padding a-spinner\"></div>\n <ul *ngIf=\"!loading\" class=\"a-list a-list--lined a-list--unstyled\">\n <li *ngIf=\"!filteredChoices.length\" class=\"m-search-filter__results-item a-list__item\">\n <p class=\"u-margin-xs\">{{ labelNoResults }}</p>\n </li>\n <li *ngFor=\"let choice of filteredChoices; index as i\" class=\"m-search-filter__results-item a-list__item\">\n <div class=\"a-input__checkbox\">\n <input\n (change)=\"toggleSelected(choice.value)\"\n [attr.disabled]=\"isDisabled ? true : null\"\n [checked]=\"selectedItems.indexOf(choice.value) >= 0\"\n id=\"{{ 'checkbox--' + i + '--' + id }}\"\n name=\"{{ 'checkbox--' + i + '--' + id }}\"\n type=\"checkbox\"\n />\n <label for=\"{{ 'checkbox--' + i + '--' + id }}\">{{ choice.label }}</label>\n </div>\n </li>\n </ul>\n </div>\n</div>\n",
|
|
1854
1856
|
providers: [{
|
|
1855
1857
|
provide: NG_VALUE_ACCESSOR,
|
|
1856
1858
|
useExisting: forwardRef((/**
|
|
@@ -1941,9 +1943,10 @@ var SearchFilterModule = /** @class */ (function () {
|
|
|
1941
1943
|
SearchFilterModule.decorators = [
|
|
1942
1944
|
{ type: NgModule, args: [{
|
|
1943
1945
|
imports: [
|
|
1944
|
-
FormsModule,
|
|
1945
1946
|
CommonModule,
|
|
1946
1947
|
FlyoutModule,
|
|
1948
|
+
FormsModule,
|
|
1949
|
+
IconModule,
|
|
1947
1950
|
],
|
|
1948
1951
|
declarations: [
|
|
1949
1952
|
SearchFilterComponent,
|
|
@@ -2253,7 +2256,7 @@ var TimepickerComponent = /** @class */ (function () {
|
|
|
2253
2256
|
TimepickerComponent.decorators = [
|
|
2254
2257
|
{ type: Component, args: [{
|
|
2255
2258
|
selector: 'aui-timepicker',
|
|
2256
|
-
template: "<div class=\"m-timepicker\">\n <div *ngIf=\"!shouldUseFallback\" [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input\">\n <input [attr.aria-label]=\"ariaLabelHours + ':' + ariaLabelMinutes\" [formControl]=\"timeControl\" [id]=\"id\"\n type=\"time\">\n </div>\n\n <div *ngIf=\"shouldUseFallback\" [formGroup]=\"fallbackForm\">\n <div [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input has-icon-right\">\n <div class=\"a-input__wrapper\">\n <select [attr.aria-label]=\"ariaLabelHours\" [id]=\"id\" formControlName=\"hours\">\n <option disabled value=\"null\">{{ hoursPlaceholder }}</option>\n <option *ngFor=\"let hour of hours\" [value]=\"hour\">{{ hour }}</option>\n </select>\n <
|
|
2259
|
+
template: "<div class=\"m-timepicker\">\n <div *ngIf=\"!shouldUseFallback\" [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input\">\n <input [attr.aria-label]=\"ariaLabelHours + ':' + ariaLabelMinutes\" [formControl]=\"timeControl\" [id]=\"id\"\n type=\"time\">\n </div>\n\n <div *ngIf=\"shouldUseFallback\" [formGroup]=\"fallbackForm\">\n <div [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input has-icon-right\">\n <div class=\"a-input__wrapper\">\n <select [attr.aria-label]=\"ariaLabelHours\" [id]=\"id\" formControlName=\"hours\">\n <option disabled value=\"null\">{{ hoursPlaceholder }}</option>\n <option *ngFor=\"let hour of hours\" [value]=\"hour\">{{ hour }}</option>\n </select>\n <aui-icon name=\"ai-arrow-down-1\"></aui-icon>\n </div>\n </div>\n\n <div [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input has-icon-right\">\n <div class=\"a-input__wrapper\">\n <select [attr.aria-label]=\"ariaLabelMinutes\" formControlName=\"minutes\">\n <option disabled value=\"null\">{{ minutesPlaceholder }}</option>\n <option *ngFor=\"let minute of minutes\" [value]=\"minute\">{{ minute }}</option>\n </select>\n <aui-icon name=\"ai-arrow-down-1\"></aui-icon>\n </div>\n </div>\n </div>\n</div>\n",
|
|
2257
2260
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2258
2261
|
providers: [{
|
|
2259
2262
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -2340,6 +2343,7 @@ var TimepickerModule = /** @class */ (function () {
|
|
|
2340
2343
|
imports: [
|
|
2341
2344
|
ReactiveFormsModule,
|
|
2342
2345
|
CommonModule,
|
|
2346
|
+
IconModule,
|
|
2343
2347
|
],
|
|
2344
2348
|
declarations: [
|
|
2345
2349
|
TimepickerComponent,
|
|
@@ -2691,7 +2695,7 @@ var UploadComponent = /** @class */ (function () {
|
|
|
2691
2695
|
UploadComponent.decorators = [
|
|
2692
2696
|
{ type: Component, args: [{
|
|
2693
2697
|
selector: 'aui-upload',
|
|
2694
|
-
template: "<div class=\"m-upload aui-upload\">\n <aui-upload-zone
|
|
2698
|
+
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",
|
|
2695
2699
|
styles: [".m-upload__button>.m-upload__input{display:none}"]
|
|
2696
2700
|
}] }
|
|
2697
2701
|
];
|
|
@@ -2865,7 +2869,7 @@ var UploadQueueComponent = /** @class */ (function () {
|
|
|
2865
2869
|
UploadQueueComponent.decorators = [
|
|
2866
2870
|
{ type: Component, args: [{
|
|
2867
2871
|
selector: 'aui-upload-queue',
|
|
2868
|
-
template: "<ul class=\"m-upload__files u-margin-bottom-xs\">\n <li *ngFor=\"let file of files; let i = index\">\n <
|
|
2872
|
+
template: "<ul class=\"m-upload__files u-margin-bottom-xs\">\n <li *ngFor=\"let file of files; let i = index\">\n <aui-icon name=\"ai-common-file-empty\"></aui-icon>\n <span class=\"m-upload__filename\">{{ file.name }}</span>\n\n <button (click)=\"remove(i)\" class=\"m-upload__delete a-button-transparent a-button--default a-button--small has-icon\" type=\"button\">\n <aui-icon name=\"ai-close\" [ariaLabel]=\"ariaLabelRemove\"></aui-icon>\n </button>\n </li>\n</ul>\n\n<button (click)=\"uploadFiles()\" *ngIf=\"files.length > 0\" class=\"a-button\" type=\"button\">Upload</button>\n"
|
|
2869
2873
|
}] }
|
|
2870
2874
|
];
|
|
2871
2875
|
UploadQueueComponent.propDecorators = {
|
|
@@ -2897,11 +2901,11 @@ if (false) {
|
|
|
2897
2901
|
var UploadZoneComponent = /** @class */ (function () {
|
|
2898
2902
|
function UploadZoneComponent(renderer) {
|
|
2899
2903
|
this.renderer = renderer;
|
|
2900
|
-
this.disabled = false;
|
|
2901
|
-
this.multiple = true;
|
|
2902
2904
|
this.id = '';
|
|
2903
|
-
this.ariaId = '';
|
|
2904
2905
|
this.accept = [];
|
|
2906
|
+
this.ariaId = '';
|
|
2907
|
+
this.disabled = false;
|
|
2908
|
+
this.multiple = true;
|
|
2905
2909
|
this.uploadedFiles = new EventEmitter();
|
|
2906
2910
|
this.queuedFiles = new EventEmitter();
|
|
2907
2911
|
this.invalidFiles = new EventEmitter();
|
|
@@ -3083,7 +3087,7 @@ var UploadZoneComponent = /** @class */ (function () {
|
|
|
3083
3087
|
UploadZoneComponent.decorators = [
|
|
3084
3088
|
{ type: Component, args: [{
|
|
3085
3089
|
selector: 'aui-upload-zone',
|
|
3086
|
-
template: "<div *ngIf=\"uploader.options.type === 'drop'\" [class.is-disabled]=\"disabled\" class=\"m-upload\">\n <div class=\"m-upload__inner\">\n <div class=\"m-upload__dropzone\">\n
|
|
3090
|
+
template: "<div *ngIf=\"uploader.options.type === 'drop'\" [class.is-disabled]=\"disabled\" class=\"m-upload\">\n <div class=\"m-upload__inner\">\n <div class=\"m-upload__dropzone\">\n <input\n #fileInput\n type=\"file\"\n class=\"m-upload__input\"\n [id]=\"id\"\n [attr.aria-labelledby]=\"ariaId\"\n (click)=\"onFileClick($event)\"\n (change)=\"updateFiles()\">\n\n <div *ngIf=\"!uploadProgress || uploadProgress === 0\" class=\"m-upload__content\">\n <p [id]=\"ariaId\" class=\"m-upload__message\">\n <ng-content select=\".m-upload__message\"></ng-content>\n </p>\n </div>\n\n <ng-container *ngIf=\"uploadProgress > 0\">\n <p class=\"m-upload__uploads u-text-bold u-margin-bottom-xs\">\n <ng-container *ngFor=\"let file of uploadingFiles; let last = last\">\n {{ file.name }}\n <ng-container *ngIf=\"!last\">,</ng-container>\n </ng-container>\n </p>\n <aui-progress-bar [value]=\"uploadProgress\" max=\"100\"></aui-progress-bar>\n </ng-container>\n </div>\n </div>\n\n <small class=\"m-upload__description\">\n <ng-content select=\".m-upload__description\"></ng-content>\n </small>\n</div>\n\n<button (click)=\"triggerFile()\" *ngIf=\"uploader.options.type === 'button'\" [disabled]=\"disabled\" class=\"a-button m-upload__button\"\n type=\"button\">\n <span [id]=\"ariaId\"><ng-content select=\".m-upload__button\"></ng-content></span>\n <input\n #fileInput\n type=\"file\"\n class=\"m-upload__input\"\n [id]=\"id\"\n [attr.aria-labelledby]=\"ariaId\"\n (click)=\"onFileClick($event)\"\n (change)=\"updateFiles()\">\n</button>\n"
|
|
3087
3091
|
}] }
|
|
3088
3092
|
];
|
|
3089
3093
|
/** @nocollapse */
|
|
@@ -3093,11 +3097,11 @@ var UploadZoneComponent = /** @class */ (function () {
|
|
|
3093
3097
|
UploadZoneComponent.propDecorators = {
|
|
3094
3098
|
fileInput: [{ type: ViewChild, args: ['fileInput', { static: false },] }],
|
|
3095
3099
|
uploader: [{ type: Input }],
|
|
3096
|
-
disabled: [{ type: Input }],
|
|
3097
|
-
multiple: [{ type: Input }],
|
|
3098
3100
|
id: [{ type: Input }],
|
|
3099
|
-
ariaId: [{ type: Input }],
|
|
3100
3101
|
accept: [{ type: Input }],
|
|
3102
|
+
ariaId: [{ type: Input }],
|
|
3103
|
+
disabled: [{ type: Input }],
|
|
3104
|
+
multiple: [{ type: Input }],
|
|
3101
3105
|
uploadedFiles: [{ type: Output }],
|
|
3102
3106
|
queuedFiles: [{ type: Output }],
|
|
3103
3107
|
invalidFiles: [{ type: Output }],
|
|
@@ -3113,15 +3117,15 @@ if (false) {
|
|
|
3113
3117
|
/** @type {?} */
|
|
3114
3118
|
UploadZoneComponent.prototype.uploader;
|
|
3115
3119
|
/** @type {?} */
|
|
3116
|
-
UploadZoneComponent.prototype.disabled;
|
|
3117
|
-
/** @type {?} */
|
|
3118
|
-
UploadZoneComponent.prototype.multiple;
|
|
3119
|
-
/** @type {?} */
|
|
3120
3120
|
UploadZoneComponent.prototype.id;
|
|
3121
3121
|
/** @type {?} */
|
|
3122
|
+
UploadZoneComponent.prototype.accept;
|
|
3123
|
+
/** @type {?} */
|
|
3122
3124
|
UploadZoneComponent.prototype.ariaId;
|
|
3123
3125
|
/** @type {?} */
|
|
3124
|
-
UploadZoneComponent.prototype.
|
|
3126
|
+
UploadZoneComponent.prototype.disabled;
|
|
3127
|
+
/** @type {?} */
|
|
3128
|
+
UploadZoneComponent.prototype.multiple;
|
|
3125
3129
|
/** @type {?} */
|
|
3126
3130
|
UploadZoneComponent.prototype.uploadedFiles;
|
|
3127
3131
|
/** @type {?} */
|
|
@@ -3239,7 +3243,7 @@ var ValidationListComponent = /** @class */ (function () {
|
|
|
3239
3243
|
ValidationListComponent.decorators = [
|
|
3240
3244
|
{ type: Component, args: [{
|
|
3241
3245
|
selector: 'aui-validation-list',
|
|
3242
|
-
template: "<ul class=\"m-upload__files\">\n <li *ngFor=\"let invalidFile of invalidFiles; let i = index\" class=\"is-error\">\n <
|
|
3246
|
+
template: "<ul class=\"m-upload__files\">\n <li *ngFor=\"let invalidFile of invalidFiles; let i = index\" class=\"is-error\">\n <aui-icon name=\"ai-alert-triangle\"></aui-icon>\n <span class=\"m-upload__filename\">{{ invalidFile.file.name }}</span>\n <span class=\"m-upload__error\">{{ formatReasons(invalidFile.reasons) }}</span>\n\n <button (click)=\"remove(i)\" class=\"m-upload__delete a-button-transparent a-button--danger a-button--small has-icon\"\n type=\"button\">\n <aui-icon name=\"ai-close\" [ariaLabel]=\"ariaLabelRemove\"></aui-icon>\n </button>\n </li>\n</ul>\n"
|
|
3243
3247
|
}] }
|
|
3244
3248
|
];
|
|
3245
3249
|
/** @nocollapse */
|
|
@@ -3296,6 +3300,7 @@ var UploadModule = /** @class */ (function () {
|
|
|
3296
3300
|
CommonModule,
|
|
3297
3301
|
ProgressBarModule,
|
|
3298
3302
|
FormsModule,
|
|
3303
|
+
IconModule,
|
|
3299
3304
|
],
|
|
3300
3305
|
declarations: [
|
|
3301
3306
|
UploadComponent,
|
|
@@ -3334,7 +3339,7 @@ var UploadModule = /** @class */ (function () {
|
|
|
3334
3339
|
/** @type {?} */
|
|
3335
3340
|
var WYSIWYG_DEFAULT_CONFIG = {
|
|
3336
3341
|
bodyClass: 'a-input ckeditor-editable-body',
|
|
3337
|
-
contentsCss: ['https://cdn.antwerpen.be/core_branding_scss/
|
|
3342
|
+
contentsCss: ['https://cdn.antwerpen.be/core_branding_scss/5.0.0/main.min.css'],
|
|
3338
3343
|
extraPlugins: 'divarea',
|
|
3339
3344
|
find_highlight: {
|
|
3340
3345
|
element: 'span',
|
|
@@ -3494,7 +3499,7 @@ var WysiwygComponent = /** @class */ (function () {
|
|
|
3494
3499
|
// tslint:disable-line:no-forward-ref
|
|
3495
3500
|
multi: true,
|
|
3496
3501
|
}],
|
|
3497
|
-
styles: [":host ::ng-deep .cke .cke_chrome{border:1px solid #
|
|
3502
|
+
styles: [":host ::ng-deep .cke .cke_chrome{border:1px solid #6f6f6f}:host ::ng-deep .cke .cke_top{border-color:#6f6f6f}:host ::ng-deep .cke .cke_bottom,:host ::ng-deep .cke .cke_top{background-color:#f3f3f3}:host ::ng-deep .cke .cke_wysiwyg_div{padding:.25rem}:host ::ng-deep .cke.cke_focus .cke_contents{box-shadow:0 0 0 1px #6f6f6f,0 0 0 4px #c0dffe;position:relative;z-index:1}"]
|
|
3498
3503
|
}] }
|
|
3499
3504
|
];
|
|
3500
3505
|
WysiwygComponent.propDecorators = {
|