@acpaas-ui/ngx-forms 6.1.8 → 6.1.10
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/.eslintrc.json +42 -0
- package/LICENSE.md +21 -0
- package/dist/README.md +23 -0
- package/dist/esm2020/lib/auto-complete/auto-complete.module.mjs +23 -0
- package/dist/esm2020/lib/auto-complete/components/auto-complete/auto-complete.component.mjs +265 -0
- package/dist/esm2020/lib/datepicker/components/datepicker/datepicker.component.mjs +232 -0
- package/dist/esm2020/lib/datepicker/datepicker.module.mjs +54 -0
- package/dist/esm2020/lib/range-slider/components/range-slider/range-slider.component.mjs +297 -0
- package/dist/esm2020/lib/range-slider/range-slider.module.mjs +19 -0
- package/dist/esm2020/lib/search-filter/components/search-filter/search-filter.component.mjs +149 -0
- package/dist/esm2020/lib/search-filter/search-filter.module.mjs +21 -0
- package/{esm2020 → dist/esm2020}/lib/shared/services/search.service.mjs +6 -6
- package/dist/esm2020/lib/timepicker/components/timepicker/timepicker.component.mjs +130 -0
- package/dist/esm2020/lib/timepicker/timepicker.module.mjs +21 -0
- package/dist/esm2020/lib/upload/components/upload/upload.component.mjs +69 -0
- package/dist/esm2020/lib/upload/components/upload-input/upload-input.component.mjs +39 -0
- package/dist/esm2020/lib/upload/components/upload-queue/upload-queue.component.mjs +42 -0
- package/dist/esm2020/lib/upload/components/upload-zone/upload-zone.component.mjs +143 -0
- package/dist/esm2020/lib/upload/components/validation-list/validation-list.component.mjs +33 -0
- package/dist/esm2020/lib/upload/services/validation-messages.service.mjs +29 -0
- package/dist/esm2020/lib/upload/upload.module.mjs +44 -0
- package/{fesm2015 → dist/fesm2015}/acpaas-ui-ngx-forms.mjs +141 -994
- package/dist/fesm2015/acpaas-ui-ngx-forms.mjs.map +1 -0
- package/dist/fesm2020/acpaas-ui-ngx-forms.mjs +1727 -0
- package/dist/fesm2020/acpaas-ui-ngx-forms.mjs.map +1 -0
- package/dist/package.json +44 -0
- package/karma.conf.js +38 -0
- package/ng-package.json +8 -0
- package/package.json +6 -30
- package/src/lib/auto-complete/README.md +148 -0
- package/src/lib/auto-complete/auto-complete.module.ts +15 -0
- package/src/lib/auto-complete/components/auto-complete/auto-complete.component.html +51 -0
- package/src/lib/auto-complete/components/auto-complete/auto-complete.component.scss +4 -0
- package/src/lib/auto-complete/components/auto-complete/auto-complete.component.spec.ts +378 -0
- package/src/lib/auto-complete/components/auto-complete/auto-complete.component.ts +281 -0
- package/src/lib/auto-complete/public-api.ts +2 -0
- package/src/lib/datepicker/README.md +110 -0
- package/src/lib/datepicker/components/datepicker/datepicker.component.html +47 -0
- package/src/lib/datepicker/components/datepicker/datepicker.component.scss +13 -0
- package/src/lib/datepicker/components/datepicker/datepicker.component.spec.ts +204 -0
- package/src/lib/datepicker/components/datepicker/datepicker.component.ts +251 -0
- package/src/lib/datepicker/datepicker.conf.ts +11 -0
- package/src/lib/datepicker/datepicker.module.ts +50 -0
- package/src/lib/datepicker/public-api.ts +8 -0
- package/src/lib/datepicker/types/datepicker.types.ts +8 -0
- package/src/lib/range-slider/README.md +56 -0
- package/src/lib/range-slider/components/range-slider/range-slider.component.html +46 -0
- package/src/lib/range-slider/components/range-slider/range-slider.component.scss +12 -0
- package/src/lib/range-slider/components/range-slider/range-slider.component.spec.ts +216 -0
- package/src/lib/range-slider/components/range-slider/range-slider.component.ts +301 -0
- package/src/lib/range-slider/public-api.ts +3 -0
- package/src/lib/range-slider/range-slider.module.ts +11 -0
- package/src/lib/range-slider/types/range-slider.types.ts +4 -0
- package/src/lib/search-filter/README.md +86 -0
- package/src/lib/search-filter/components/search-filter/search-filter.component.html +66 -0
- package/src/lib/search-filter/components/search-filter/search-filter.component.scss +23 -0
- package/src/lib/search-filter/components/search-filter/search-filter.component.spec.ts +264 -0
- package/src/lib/search-filter/components/search-filter/search-filter.component.ts +140 -0
- package/src/lib/search-filter/public-api.ts +3 -0
- package/src/lib/search-filter/search-filter.module.ts +13 -0
- package/src/lib/search-filter/types/search-filter.types.ts +4 -0
- package/src/lib/shared/services/search.service.spec.ts +78 -0
- package/src/lib/shared/services/search.service.ts +32 -0
- package/src/lib/shared/types/search.types.ts +6 -0
- package/src/lib/timepicker/README.md +84 -0
- package/src/lib/timepicker/classes/timepicker.validators.spec.ts +54 -0
- package/src/lib/timepicker/classes/timepicker.validators.ts +61 -0
- package/src/lib/timepicker/components/timepicker/timepicker.component.html +37 -0
- package/src/lib/timepicker/components/timepicker/timepicker.component.scss +3 -0
- package/src/lib/timepicker/components/timepicker/timepicker.component.spec.ts +161 -0
- package/src/lib/timepicker/components/timepicker/timepicker.component.ts +128 -0
- package/src/lib/timepicker/public-api.ts +4 -0
- package/src/lib/timepicker/timepicker.module.ts +13 -0
- package/src/lib/timepicker/types/timepicker.types.ts +5 -0
- package/src/lib/upload/README.md +283 -0
- package/src/lib/upload/classes/uploader.class.spec.ts +100 -0
- package/src/lib/upload/classes/uploader.class.ts +144 -0
- package/src/lib/upload/components/upload/upload.component.html +28 -0
- package/src/lib/upload/components/upload/upload.component.scss +3 -0
- package/src/lib/upload/components/upload/upload.component.spec.ts +117 -0
- package/src/lib/upload/components/upload/upload.component.ts +50 -0
- package/src/lib/upload/components/upload-input/upload-input.component.html +11 -0
- package/src/lib/upload/components/upload-input/upload-input.component.spec.ts +55 -0
- package/src/lib/upload/components/upload-input/upload-input.component.ts +35 -0
- package/src/lib/upload/components/upload-queue/upload-queue.component.html +16 -0
- package/src/lib/upload/components/upload-queue/upload-queue.component.spec.ts +99 -0
- package/src/lib/upload/components/upload-queue/upload-queue.component.ts +36 -0
- package/src/lib/upload/components/upload-zone/upload-zone.component.html +55 -0
- package/src/lib/upload/components/upload-zone/upload-zone.component.scss +3 -0
- package/src/lib/upload/components/upload-zone/upload-zone.component.spec.ts +144 -0
- package/src/lib/upload/components/upload-zone/upload-zone.component.ts +142 -0
- package/src/lib/upload/components/validation-list/validation-list.component.html +15 -0
- package/src/lib/upload/components/validation-list/validation-list.component.spec.ts +57 -0
- package/src/lib/upload/components/validation-list/validation-list.component.ts +29 -0
- package/src/lib/upload/public-api.ts +10 -0
- package/src/lib/upload/services/validation-messages.service.spec.ts +66 -0
- package/src/lib/upload/services/validation-messages.service.ts +27 -0
- package/src/lib/upload/types/upload.types.ts +20 -0
- package/src/lib/upload/upload.conf.ts +15 -0
- package/src/lib/upload/upload.module.ts +34 -0
- package/src/public-api.ts +6 -0
- package/src/test.ts +9 -0
- package/tsconfig.lib.json +26 -0
- package/tsconfig.spec.json +17 -0
- package/esm2020/lib/auto-complete/auto-complete.module.mjs +0 -24
- package/esm2020/lib/auto-complete/components/auto-complete/auto-complete.component.mjs +0 -347
- package/esm2020/lib/datepicker/components/datepicker/datepicker.component.mjs +0 -308
- package/esm2020/lib/datepicker/datepicker.module.mjs +0 -55
- package/esm2020/lib/range-slider/components/range-slider/range-slider.component.mjs +0 -349
- package/esm2020/lib/range-slider/range-slider.module.mjs +0 -20
- package/esm2020/lib/search-filter/components/search-filter/search-filter.component.mjs +0 -266
- package/esm2020/lib/search-filter/search-filter.module.mjs +0 -22
- package/esm2020/lib/timepicker/components/timepicker/timepicker.component.mjs +0 -243
- package/esm2020/lib/timepicker/timepicker.module.mjs +0 -22
- package/esm2020/lib/upload/components/upload/upload.component.mjs +0 -97
- package/esm2020/lib/upload/components/upload-input/upload-input.component.mjs +0 -56
- package/esm2020/lib/upload/components/upload-queue/upload-queue.component.mjs +0 -78
- package/esm2020/lib/upload/components/upload-zone/upload-zone.component.mjs +0 -252
- package/esm2020/lib/upload/components/validation-list/validation-list.component.mjs +0 -64
- package/esm2020/lib/upload/services/validation-messages.service.mjs +0 -29
- package/esm2020/lib/upload/upload.module.mjs +0 -45
- package/fesm2015/acpaas-ui-ngx-forms.mjs.map +0 -1
- package/fesm2020/acpaas-ui-ngx-forms.mjs +0 -2394
- package/fesm2020/acpaas-ui-ngx-forms.mjs.map +0 -1
- /package/{esm2020 → dist/esm2020}/acpaas-ui-ngx-forms.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/auto-complete/public-api.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/datepicker/datepicker.conf.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/datepicker/public-api.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/datepicker/types/datepicker.types.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/range-slider/public-api.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/range-slider/types/range-slider.types.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/search-filter/public-api.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/search-filter/types/search-filter.types.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/shared/types/search.types.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/timepicker/classes/timepicker.validators.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/timepicker/public-api.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/timepicker/types/timepicker.types.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/upload/classes/uploader.class.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/upload/public-api.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/upload/types/upload.types.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/lib/upload/upload.conf.mjs +0 -0
- /package/{esm2020 → dist/esm2020}/public-api.mjs +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{lib → dist/lib}/auto-complete/auto-complete.module.d.ts +0 -0
- /package/{lib → dist/lib}/auto-complete/components/auto-complete/auto-complete.component.d.ts +0 -0
- /package/{lib → dist/lib}/auto-complete/public-api.d.ts +0 -0
- /package/{lib → dist/lib}/datepicker/components/datepicker/datepicker.component.d.ts +0 -0
- /package/{lib → dist/lib}/datepicker/datepicker.conf.d.ts +0 -0
- /package/{lib → dist/lib}/datepicker/datepicker.module.d.ts +0 -0
- /package/{lib → dist/lib}/datepicker/public-api.d.ts +0 -0
- /package/{lib → dist/lib}/datepicker/types/datepicker.types.d.ts +0 -0
- /package/{lib → dist/lib}/range-slider/components/range-slider/range-slider.component.d.ts +0 -0
- /package/{lib → dist/lib}/range-slider/public-api.d.ts +0 -0
- /package/{lib → dist/lib}/range-slider/range-slider.module.d.ts +0 -0
- /package/{lib → dist/lib}/range-slider/types/range-slider.types.d.ts +0 -0
- /package/{lib → dist/lib}/search-filter/components/search-filter/search-filter.component.d.ts +0 -0
- /package/{lib → dist/lib}/search-filter/public-api.d.ts +0 -0
- /package/{lib → dist/lib}/search-filter/search-filter.module.d.ts +0 -0
- /package/{lib → dist/lib}/search-filter/types/search-filter.types.d.ts +0 -0
- /package/{lib → dist/lib}/shared/services/search.service.d.ts +0 -0
- /package/{lib → dist/lib}/shared/types/search.types.d.ts +0 -0
- /package/{lib → dist/lib}/timepicker/classes/timepicker.validators.d.ts +0 -0
- /package/{lib → dist/lib}/timepicker/components/timepicker/timepicker.component.d.ts +0 -0
- /package/{lib → dist/lib}/timepicker/public-api.d.ts +0 -0
- /package/{lib → dist/lib}/timepicker/timepicker.module.d.ts +0 -0
- /package/{lib → dist/lib}/timepicker/types/timepicker.types.d.ts +0 -0
- /package/{lib → dist/lib}/upload/classes/uploader.class.d.ts +0 -0
- /package/{lib → dist/lib}/upload/components/upload/upload.component.d.ts +0 -0
- /package/{lib → dist/lib}/upload/components/upload-input/upload-input.component.d.ts +0 -0
- /package/{lib → dist/lib}/upload/components/upload-queue/upload-queue.component.d.ts +0 -0
- /package/{lib → dist/lib}/upload/components/upload-zone/upload-zone.component.d.ts +0 -0
- /package/{lib → dist/lib}/upload/components/validation-list/validation-list.component.d.ts +0 -0
- /package/{lib → dist/lib}/upload/public-api.d.ts +0 -0
- /package/{lib → dist/lib}/upload/services/validation-messages.service.d.ts +0 -0
- /package/{lib → dist/lib}/upload/types/upload.types.d.ts +0 -0
- /package/{lib → dist/lib}/upload/upload.conf.d.ts +0 -0
- /package/{lib → dist/lib}/upload/upload.module.d.ts +0 -0
- /package/{public-api.d.ts → dist/public-api.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter,
|
|
2
|
+
import { Injectable, EventEmitter, forwardRef, TemplateRef, Component, Input, Output, ViewChild, ContentChild, NgModule, InjectionToken, ChangeDetectionStrategy, Inject, HostBinding, HostListener } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i1$1 from '@angular/forms';
|
|
@@ -44,85 +44,12 @@ class SearchService {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
/** @nocollapse */ SearchService.ɵfac =
|
|
48
|
-
/** @nocollapse */ SearchService.ɵprov =
|
|
49
|
-
(
|
|
50
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchService, [{
|
|
47
|
+
/** @nocollapse */ SearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: SearchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
48
|
+
/** @nocollapse */ SearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: SearchService });
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: SearchService, decorators: [{
|
|
51
50
|
type: Injectable
|
|
52
|
-
}]
|
|
53
|
-
})();
|
|
51
|
+
}] });
|
|
54
52
|
|
|
55
|
-
function AutoCompleteComponent_div_2_span_1_Template(rf, ctx) {
|
|
56
|
-
if (rf & 1) {
|
|
57
|
-
i0.ɵɵelementStart(0, "span", 7);
|
|
58
|
-
i0.ɵɵelement(1, "span", 8);
|
|
59
|
-
i0.ɵɵelementStart(2, "span", 9);
|
|
60
|
-
i0.ɵɵtext(3);
|
|
61
|
-
i0.ɵɵelementEnd()();
|
|
62
|
-
}
|
|
63
|
-
if (rf & 2) {
|
|
64
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
65
|
-
i0.ɵɵadvance(3);
|
|
66
|
-
i0.ɵɵtextInterpolate(ctx_r1.loadingText);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function AutoCompleteComponent_div_2_span_2_Template(rf, ctx) {
|
|
70
|
-
if (rf & 1) {
|
|
71
|
-
i0.ɵɵelementStart(0, "span", 10);
|
|
72
|
-
i0.ɵɵtext(1);
|
|
73
|
-
i0.ɵɵelementEnd();
|
|
74
|
-
}
|
|
75
|
-
if (rf & 2) {
|
|
76
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
77
|
-
i0.ɵɵadvance(1);
|
|
78
|
-
i0.ɵɵtextInterpolate(ctx_r2.searchIncentiveText);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
function AutoCompleteComponent_div_2_span_3_Template(rf, ctx) {
|
|
82
|
-
if (rf & 1) {
|
|
83
|
-
i0.ɵɵelementStart(0, "span", 10);
|
|
84
|
-
i0.ɵɵtext(1);
|
|
85
|
-
i0.ɵɵelementEnd();
|
|
86
|
-
}
|
|
87
|
-
if (rf & 2) {
|
|
88
|
-
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
89
|
-
i0.ɵɵadvance(1);
|
|
90
|
-
i0.ɵɵtextInterpolate(ctx_r3.noResultsText);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
function AutoCompleteComponent_div_2_aui_selectable_list_4_Template(rf, ctx) {
|
|
94
|
-
if (rf & 1) {
|
|
95
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
96
|
-
i0.ɵɵelementStart(0, "aui-selectable-list", 11);
|
|
97
|
-
i0.ɵɵlistener("selected", function AutoCompleteComponent_div_2_aui_selectable_list_4_Template_aui_selectable_list_selected_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r5.onSelect($event)); });
|
|
98
|
-
i0.ɵɵelementEnd();
|
|
99
|
-
}
|
|
100
|
-
if (rf & 2) {
|
|
101
|
-
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
102
|
-
i0.ɵɵproperty("index", ctx_r4.index)("itemTemplate", ctx_r4.template)("items", ctx_r4.results)("label", ctx_r4.label)("search", ctx_r4.query);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
function AutoCompleteComponent_div_2_Template(rf, ctx) {
|
|
106
|
-
if (rf & 1) {
|
|
107
|
-
i0.ɵɵelementStart(0, "div", 3);
|
|
108
|
-
i0.ɵɵtemplate(1, AutoCompleteComponent_div_2_span_1_Template, 4, 1, "span", 4);
|
|
109
|
-
i0.ɵɵtemplate(2, AutoCompleteComponent_div_2_span_2_Template, 2, 1, "span", 5);
|
|
110
|
-
i0.ɵɵtemplate(3, AutoCompleteComponent_div_2_span_3_Template, 2, 1, "span", 5);
|
|
111
|
-
i0.ɵɵtemplate(4, AutoCompleteComponent_div_2_aui_selectable_list_4_Template, 1, 5, "aui-selectable-list", 6);
|
|
112
|
-
i0.ɵɵelementEnd();
|
|
113
|
-
}
|
|
114
|
-
if (rf & 2) {
|
|
115
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
116
|
-
i0.ɵɵadvance(1);
|
|
117
|
-
i0.ɵɵproperty("ngIf", ctx_r0.focused && ctx_r0.loadingText && ctx_r0.searching);
|
|
118
|
-
i0.ɵɵadvance(1);
|
|
119
|
-
i0.ɵɵproperty("ngIf", ctx_r0.focused && ctx_r0.searchIncentiveText && !ctx_r0.searching && !ctx_r0.query && !ctx_r0.results.length);
|
|
120
|
-
i0.ɵɵadvance(1);
|
|
121
|
-
i0.ɵɵproperty("ngIf", ctx_r0.focused && ctx_r0.noResultsText && !ctx_r0.searching && ctx_r0.query && !ctx_r0.results.length);
|
|
122
|
-
i0.ɵɵadvance(1);
|
|
123
|
-
i0.ɵɵproperty("ngIf", ctx_r0.results.length > 0 && !(ctx_r0.focused && ctx_r0.loadingText && ctx_r0.searching));
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
53
|
class AutoCompleteComponent {
|
|
127
54
|
constructor(ref, searchService) {
|
|
128
55
|
this.ref = ref;
|
|
@@ -314,51 +241,15 @@ class AutoCompleteComponent {
|
|
|
314
241
|
this.flyoutZone.element.scrollTop = this.index * liHeight - offset * liHeight;
|
|
315
242
|
}
|
|
316
243
|
}
|
|
317
|
-
/** @nocollapse */ AutoCompleteComponent.ɵfac =
|
|
318
|
-
/** @nocollapse */ AutoCompleteComponent.ɵcmp =
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}, viewQuery: function AutoCompleteComponent_Query(rf, ctx) {
|
|
327
|
-
if (rf & 1) {
|
|
328
|
-
i0.ɵɵviewQuery(FlyoutDirective, 7);
|
|
329
|
-
i0.ɵɵviewQuery(FlyoutZoneDirective, 7);
|
|
330
|
-
}
|
|
331
|
-
if (rf & 2) {
|
|
332
|
-
let _t;
|
|
333
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.flyout = _t.first);
|
|
334
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.flyoutZone = _t.first);
|
|
335
|
-
}
|
|
336
|
-
}, inputs: { id: "id", placeholder: "placeholder", description: "description", inputLabel: "inputLabel", results: "results", data: "data", remote: "remote", minCharacters: "minCharacters", clearInvalid: "clearInvalid", searchIncentiveText: "searchIncentiveText", loadingText: "loadingText", noResultsText: "noResultsText", showAllByDefault: "showAllByDefault", autoComplete: "autoComplete", label: "label", value: "value" }, outputs: { search: "search", select: "select" }, features: [i0.ɵɵProvidersFeature([
|
|
337
|
-
{
|
|
338
|
-
provide: NG_VALUE_ACCESSOR,
|
|
339
|
-
useExisting: forwardRef((() => AutoCompleteComponent)),
|
|
340
|
-
multi: true,
|
|
341
|
-
},
|
|
342
|
-
]), i0.ɵɵNgOnChangesFeature], decls: 3, vars: 7, consts: [["aria-haspopup", "listbox", "auiFlyout", "", 1, "m-flyout", "m-flyout--scrollable", "m-flyout--full", "o-auto-complete", 3, "toggleClick", "closed"], ["aria-autocomplete", "list", "auiFlyoutAction", "", "auiSelectableActions", "", "type", "text", 1, "a-input", 3, "ngModel", "disabled", "id", "placeholder", "autocomplete", "focus", "keyArrowDown", "keyArrowUp", "keyEnter", "keyEscape", "ngModelChange"], ["auiFlyoutZone", "", 4, "ngIf"], ["auiFlyoutZone", ""], ["class", "a-spinner a-spinner--s u-margin-xs", "role", "alert", 4, "ngIf"], ["class", "o-auto-complete__info u-text-light u-margin-xs", 4, "ngIf"], [3, "index", "itemTemplate", "items", "label", "search", "selected", 4, "ngIf"], ["role", "alert", 1, "a-spinner", "a-spinner--s", "u-margin-xs"], [1, "a-spinner__circle"], [1, "a-spinner__text"], [1, "o-auto-complete__info", "u-text-light", "u-margin-xs"], [3, "index", "itemTemplate", "items", "label", "search", "selected"]], template: function AutoCompleteComponent_Template(rf, ctx) {
|
|
343
|
-
if (rf & 1) {
|
|
344
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
345
|
-
i0.ɵɵlistener("closed", function AutoCompleteComponent_Template_div_closed_0_listener() { return ctx.onFlyoutClosed(); });
|
|
346
|
-
i0.ɵɵelementStart(1, "input", 1);
|
|
347
|
-
i0.ɵɵlistener("focus", function AutoCompleteComponent_Template_input_focus_1_listener() { return ctx.onFocus(); })("keyArrowDown", function AutoCompleteComponent_Template_input_keyArrowDown_1_listener() { return ctx.onKeyArrowDown(); })("keyArrowUp", function AutoCompleteComponent_Template_input_keyArrowUp_1_listener() { return ctx.onKeyArrowUp(); })("keyEnter", function AutoCompleteComponent_Template_input_keyEnter_1_listener($event) { return ctx.onKeyEnter($event); })("keyEscape", function AutoCompleteComponent_Template_input_keyEscape_1_listener() { return ctx.onKeyEscape(); })("ngModelChange", function AutoCompleteComponent_Template_input_ngModelChange_1_listener($event) { return ctx.query = $event; })("ngModelChange", function AutoCompleteComponent_Template_input_ngModelChange_1_listener() { return ctx.doSearch(); });
|
|
348
|
-
i0.ɵɵelementEnd();
|
|
349
|
-
i0.ɵɵtemplate(2, AutoCompleteComponent_div_2_Template, 5, 4, "div", 2);
|
|
350
|
-
i0.ɵɵelementEnd();
|
|
351
|
-
}
|
|
352
|
-
if (rf & 2) {
|
|
353
|
-
i0.ɵɵproperty("toggleClick", false);
|
|
354
|
-
i0.ɵɵadvance(1);
|
|
355
|
-
i0.ɵɵproperty("ngModel", ctx.query)("disabled", ctx.isDisabled ? true : null)("id", ctx.id)("placeholder", ctx.placeholder)("autocomplete", ctx.autoComplete);
|
|
356
|
-
i0.ɵɵadvance(1);
|
|
357
|
-
i0.ɵɵproperty("ngIf", !ctx.isDisabled);
|
|
358
|
-
}
|
|
359
|
-
}, dependencies: [i1.NgIf, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.NgModel, i4.FlyoutActionDirective, i4.FlyoutZoneDirective, i4.FlyoutDirective, i5.SelectableListComponent, i5.SelectableActionsDirective], styles: [".o-auto-complete[_ngcontent-%COMP%], .o-auto-complete__info[_ngcontent-%COMP%]{display:block}"] });
|
|
360
|
-
(function () {
|
|
361
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AutoCompleteComponent, [{
|
|
244
|
+
/** @nocollapse */ AutoCompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: AutoCompleteComponent, deps: [{ token: i0.ElementRef }, { token: SearchService }], target: i0.ɵɵFactoryTarget.Component });
|
|
245
|
+
/** @nocollapse */ AutoCompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: AutoCompleteComponent, selector: "aui-auto-complete", inputs: { id: "id", placeholder: "placeholder", description: "description", inputLabel: "inputLabel", results: "results", data: "data", remote: "remote", minCharacters: "minCharacters", clearInvalid: "clearInvalid", searchIncentiveText: "searchIncentiveText", loadingText: "loadingText", noResultsText: "noResultsText", showAllByDefault: "showAllByDefault", autoComplete: "autoComplete", label: "label", value: "value" }, outputs: { search: "search", select: "select" }, providers: [
|
|
246
|
+
{
|
|
247
|
+
provide: NG_VALUE_ACCESSOR,
|
|
248
|
+
useExisting: forwardRef((() => AutoCompleteComponent)),
|
|
249
|
+
multi: true,
|
|
250
|
+
},
|
|
251
|
+
], queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], viewQueries: [{ propertyName: "flyout", first: true, predicate: FlyoutDirective, descendants: true, static: true }, { propertyName: "flyoutZone", first: true, predicate: FlyoutZoneDirective, descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div\n (closed)=\"onFlyoutClosed()\"\n [toggleClick]=\"false\"\n aria-haspopup=\"listbox\"\n auiFlyout\n class=\"m-flyout m-flyout--scrollable m-flyout--full o-auto-complete\"\n>\n <input\n (focus)=\"onFocus()\"\n (keyArrowDown)=\"onKeyArrowDown()\"\n (keyArrowUp)=\"onKeyArrowUp()\"\n (keyEnter)=\"onKeyEnter($event)\"\n (keyEscape)=\"onKeyEscape()\"\n [(ngModel)]=\"query\"\n (ngModelChange)=\"doSearch()\"\n [disabled]=\"isDisabled ? true : null\"\n [id]=\"id\"\n [placeholder]=\"placeholder\"\n aria-autocomplete=\"list\"\n auiFlyoutAction\n auiSelectableActions\n [autocomplete]=\"autoComplete\"\n type=\"text\"\n class=\"a-input\"\n />\n <div *ngIf=\"!isDisabled\" auiFlyoutZone>\n <span *ngIf=\"focused && loadingText && searching\" class=\"a-spinner a-spinner--s u-margin-xs\" role=\"alert\">\n <span class=\"a-spinner__circle\"></span>\n <span class=\"a-spinner__text\">{{ loadingText }}</span>\n </span>\n <span\n *ngIf=\"focused && searchIncentiveText && !searching && !query && !results.length\"\n class=\"o-auto-complete__info u-text-light u-margin-xs\"\n >{{ searchIncentiveText }}</span\n >\n <span\n *ngIf=\"focused && noResultsText && !searching && query && !results.length\"\n class=\"o-auto-complete__info u-text-light u-margin-xs\"\n >{{ noResultsText }}</span\n >\n <aui-selectable-list\n (selected)=\"onSelect($event)\"\n *ngIf=\"results.length > 0 && !(focused && loadingText && searching)\"\n [index]=\"index\"\n [itemTemplate]=\"template\"\n [items]=\"results\"\n [label]=\"label\"\n [search]=\"query\"\n ></aui-selectable-list>\n </div>\n</div>\n", styles: [".o-auto-complete,.o-auto-complete__info{display:block}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.FlyoutActionDirective, selector: "[auiFlyoutAction]", inputs: ["openOnFocus", "disabled"], exportAs: ["auiFlyoutAction"] }, { kind: "directive", type: i4.FlyoutZoneDirective, selector: "[auiFlyoutZone]", inputs: ["auiFlyoutZone"], exportAs: ["auiFlyoutZone"] }, { kind: "directive", type: i4.FlyoutDirective, selector: "[auiFlyout]", inputs: ["size", "align", "toggleClick", "activateOnFocus"], outputs: ["opened", "closed"], exportAs: ["auiFlyout"] }, { kind: "component", type: i5.SelectableListComponent, selector: "aui-selectable-list", inputs: ["items", "index", "search", "label", "itemTemplate"], outputs: ["selected"] }, { kind: "directive", type: i5.SelectableActionsDirective, selector: "[auiSelectableActions]", outputs: ["keyArrowUp", "keyArrowDown", "keyEnter", "keyEscape"], exportAs: ["auiSelectableActions"] }] });
|
|
252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: AutoCompleteComponent, decorators: [{
|
|
362
253
|
type: Component,
|
|
363
254
|
args: [{ selector: 'aui-auto-complete', providers: [
|
|
364
255
|
{
|
|
@@ -367,7 +258,7 @@ class AutoCompleteComponent {
|
|
|
367
258
|
multi: true,
|
|
368
259
|
},
|
|
369
260
|
], template: "<div\n (closed)=\"onFlyoutClosed()\"\n [toggleClick]=\"false\"\n aria-haspopup=\"listbox\"\n auiFlyout\n class=\"m-flyout m-flyout--scrollable m-flyout--full o-auto-complete\"\n>\n <input\n (focus)=\"onFocus()\"\n (keyArrowDown)=\"onKeyArrowDown()\"\n (keyArrowUp)=\"onKeyArrowUp()\"\n (keyEnter)=\"onKeyEnter($event)\"\n (keyEscape)=\"onKeyEscape()\"\n [(ngModel)]=\"query\"\n (ngModelChange)=\"doSearch()\"\n [disabled]=\"isDisabled ? true : null\"\n [id]=\"id\"\n [placeholder]=\"placeholder\"\n aria-autocomplete=\"list\"\n auiFlyoutAction\n auiSelectableActions\n [autocomplete]=\"autoComplete\"\n type=\"text\"\n class=\"a-input\"\n />\n <div *ngIf=\"!isDisabled\" auiFlyoutZone>\n <span *ngIf=\"focused && loadingText && searching\" class=\"a-spinner a-spinner--s u-margin-xs\" role=\"alert\">\n <span class=\"a-spinner__circle\"></span>\n <span class=\"a-spinner__text\">{{ loadingText }}</span>\n </span>\n <span\n *ngIf=\"focused && searchIncentiveText && !searching && !query && !results.length\"\n class=\"o-auto-complete__info u-text-light u-margin-xs\"\n >{{ searchIncentiveText }}</span\n >\n <span\n *ngIf=\"focused && noResultsText && !searching && query && !results.length\"\n class=\"o-auto-complete__info u-text-light u-margin-xs\"\n >{{ noResultsText }}</span\n >\n <aui-selectable-list\n (selected)=\"onSelect($event)\"\n *ngIf=\"results.length > 0 && !(focused && loadingText && searching)\"\n [index]=\"index\"\n [itemTemplate]=\"template\"\n [items]=\"results\"\n [label]=\"label\"\n [search]=\"query\"\n ></aui-selectable-list>\n </div>\n</div>\n", styles: [".o-auto-complete,.o-auto-complete__info{display:block}\n"] }]
|
|
370
|
-
}], function () { return [{ type: i0.ElementRef }, { type: SearchService }]; }, { id: [{
|
|
261
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SearchService }]; }, propDecorators: { id: [{
|
|
371
262
|
type: Input
|
|
372
263
|
}], placeholder: [{
|
|
373
264
|
type: Input
|
|
@@ -412,16 +303,14 @@ class AutoCompleteComponent {
|
|
|
412
303
|
}], template: [{
|
|
413
304
|
type: ContentChild,
|
|
414
305
|
args: [TemplateRef, { static: true }]
|
|
415
|
-
}] });
|
|
416
|
-
})();
|
|
306
|
+
}] } });
|
|
417
307
|
|
|
418
308
|
class AutoCompleteModule {
|
|
419
309
|
}
|
|
420
|
-
/** @nocollapse */ AutoCompleteModule.ɵfac =
|
|
421
|
-
/** @nocollapse */ AutoCompleteModule.ɵmod =
|
|
422
|
-
/** @nocollapse */ AutoCompleteModule.ɵinj =
|
|
423
|
-
(
|
|
424
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AutoCompleteModule, [{
|
|
310
|
+
/** @nocollapse */ AutoCompleteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: AutoCompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
311
|
+
/** @nocollapse */ AutoCompleteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: AutoCompleteModule, declarations: [AutoCompleteComponent], imports: [CommonModule, FormsModule, FlyoutModule, SelectableListModule], exports: [AutoCompleteComponent] });
|
|
312
|
+
/** @nocollapse */ AutoCompleteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: AutoCompleteModule, providers: [SearchService], imports: [CommonModule, FormsModule, FlyoutModule, SelectableListModule] });
|
|
313
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: AutoCompleteModule, decorators: [{
|
|
425
314
|
type: NgModule,
|
|
426
315
|
args: [{
|
|
427
316
|
imports: [CommonModule, FormsModule, FlyoutModule, SelectableListModule],
|
|
@@ -429,9 +318,7 @@ class AutoCompleteModule {
|
|
|
429
318
|
exports: [AutoCompleteComponent],
|
|
430
319
|
providers: [SearchService],
|
|
431
320
|
}]
|
|
432
|
-
}]
|
|
433
|
-
})();
|
|
434
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AutoCompleteModule, { declarations: [AutoCompleteComponent], imports: [CommonModule, FormsModule, FlyoutModule, SelectableListModule], exports: [AutoCompleteComponent] }); })();
|
|
321
|
+
}] });
|
|
435
322
|
|
|
436
323
|
const DATEPICKER_ERROR_LABELS = new InjectionToken('errorLabels');
|
|
437
324
|
const DATEPICKER_DEFAULT_ERROR_LABELS = {
|
|
@@ -440,66 +327,6 @@ const DATEPICKER_DEFAULT_ERROR_LABELS = {
|
|
|
440
327
|
};
|
|
441
328
|
const DATEPICKER_SEPARATOR_CHAR = '/';
|
|
442
329
|
|
|
443
|
-
function DatepickerComponent_label_1_Template(rf, ctx) {
|
|
444
|
-
if (rf & 1) {
|
|
445
|
-
i0.ɵɵelementStart(0, "label", 6);
|
|
446
|
-
i0.ɵɵtext(1);
|
|
447
|
-
i0.ɵɵelementEnd();
|
|
448
|
-
}
|
|
449
|
-
if (rf & 2) {
|
|
450
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
451
|
-
i0.ɵɵpropertyInterpolate("for", ctx_r0.id);
|
|
452
|
-
i0.ɵɵadvance(1);
|
|
453
|
-
i0.ɵɵtextInterpolate(ctx_r0.label);
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
function DatepickerComponent_small_2_Template(rf, ctx) {
|
|
457
|
-
if (rf & 1) {
|
|
458
|
-
i0.ɵɵelementStart(0, "small", 7);
|
|
459
|
-
i0.ɵɵtext(1);
|
|
460
|
-
i0.ɵɵelementEnd();
|
|
461
|
-
}
|
|
462
|
-
if (rf & 2) {
|
|
463
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
464
|
-
i0.ɵɵadvance(1);
|
|
465
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.description, "");
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
function DatepickerComponent_ng_container_5_Template(rf, ctx) {
|
|
469
|
-
if (rf & 1) {
|
|
470
|
-
i0.ɵɵelementContainerStart(0);
|
|
471
|
-
i0.ɵɵelement(1, "aui-icon", 8);
|
|
472
|
-
i0.ɵɵelementContainerEnd();
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
function DatepickerComponent_ng_container_6_Template(rf, ctx) {
|
|
476
|
-
if (rf & 1) {
|
|
477
|
-
i0.ɵɵelementContainerStart(0);
|
|
478
|
-
i0.ɵɵelement(1, "aui-icon", 9);
|
|
479
|
-
i0.ɵɵelementContainerEnd();
|
|
480
|
-
}
|
|
481
|
-
if (rf & 2) {
|
|
482
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
483
|
-
i0.ɵɵadvance(1);
|
|
484
|
-
i0.ɵɵproperty("openOnFocus", false);
|
|
485
|
-
i0.ɵɵattribute("aria-label", ctx_r3.ariaOpenDatepickerLabel);
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
function DatepickerComponent_ng_container_7_Template(rf, ctx) {
|
|
489
|
-
if (rf & 1) {
|
|
490
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
491
|
-
i0.ɵɵelementContainerStart(0);
|
|
492
|
-
i0.ɵɵelementStart(1, "div", 10)(2, "aui-calendar", 11);
|
|
493
|
-
i0.ɵɵlistener("selectDate", function DatepickerComponent_ng_container_7_Template_aui_calendar_selectDate_2_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.selectDateFromCalendar($event)); });
|
|
494
|
-
i0.ɵɵelementEnd()();
|
|
495
|
-
i0.ɵɵelementContainerEnd();
|
|
496
|
-
}
|
|
497
|
-
if (rf & 2) {
|
|
498
|
-
const ctx_r4 = i0.ɵɵnextContext();
|
|
499
|
-
i0.ɵɵadvance(2);
|
|
500
|
-
i0.ɵɵproperty("range", ctx_r4.range)("selectedDate", ctx_r4.selectedDate)("interval", ctx_r4.interval)("weekdayLabels", ctx_r4.weekdayLabels)("monthLabels", ctx_r4.monthLabels);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
330
|
class DatepickerComponent {
|
|
504
331
|
constructor(moduleMonthLabels = CALENDAR_DEFAULT_MONTH_LABELS, moduleWeekdayLabels = CALENDAR_DEFAULT_WEEKDAY_LABELS, errorLabels = DATEPICKER_DEFAULT_ERROR_LABELS, calendarService, formBuilder, ref) {
|
|
505
332
|
this.moduleMonthLabels = moduleMonthLabels;
|
|
@@ -524,9 +351,8 @@ class DatepickerComponent {
|
|
|
524
351
|
this.formControl = this.formBuilder.control({ value: '', disabled: this.isDisabled });
|
|
525
352
|
this.formControl.valueChanges.pipe(takeUntil(this.componentDestroyed$)).subscribe((value) => {
|
|
526
353
|
if (value) {
|
|
527
|
-
const
|
|
528
|
-
|
|
529
|
-
if (date) {
|
|
354
|
+
const date = DateHelper.parseDate(value, 'dd/MM/yyyy');
|
|
355
|
+
if (date instanceof Date) {
|
|
530
356
|
this.selectedDate = date;
|
|
531
357
|
const brusselsDate = new TZDate(date, 'Europe/Brussels');
|
|
532
358
|
const year = brusselsDate.getFullYear();
|
|
@@ -534,6 +360,9 @@ class DatepickerComponent {
|
|
|
534
360
|
const day = brusselsDate.getDate();
|
|
535
361
|
this.onChange(DateHelper.toUtcMidnightInBrussels(year, month, day));
|
|
536
362
|
}
|
|
363
|
+
else if (typeof date === 'string') {
|
|
364
|
+
this.onChange(value);
|
|
365
|
+
}
|
|
537
366
|
else {
|
|
538
367
|
this.onChange(value);
|
|
539
368
|
}
|
|
@@ -568,7 +397,8 @@ class DatepickerComponent {
|
|
|
568
397
|
this.selectedDate = DateHelper.parseDate(value);
|
|
569
398
|
}
|
|
570
399
|
else {
|
|
571
|
-
|
|
400
|
+
const parsed = DateHelper.parseDate(value, 'dd/MM/yyyy');
|
|
401
|
+
this.selectedDate = parsed instanceof Date ? parsed : null;
|
|
572
402
|
}
|
|
573
403
|
}
|
|
574
404
|
else if (value instanceof Date) {
|
|
@@ -646,60 +476,20 @@ class DatepickerComponent {
|
|
|
646
476
|
return value.match(/\d{4}-\d{2}-\d{2}T.*/);
|
|
647
477
|
}
|
|
648
478
|
}
|
|
649
|
-
/** @nocollapse */ DatepickerComponent.ɵfac =
|
|
650
|
-
/** @nocollapse */ DatepickerComponent.ɵcmp =
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
provide: NG_VALIDATORS,
|
|
666
|
-
useExisting: forwardRef((() => DatepickerComponent)),
|
|
667
|
-
multi: true,
|
|
668
|
-
},
|
|
669
|
-
]), i0.ɵɵNgOnChangesFeature], decls: 8, vars: 11, consts: [["aria-haspopup", "grid", "auiFlyout", "", 1, "aui-datepicker", "a-input", "has-icon-right"], ["class", "a-input__label", 3, "for", 4, "ngIf"], ["class", "a-input__description", 4, "ngIf"], [1, "a-input__wrapper"], ["label", "Pick date", "description", "Description", "type", "text", 3, "autocomplete", "formControl", "id", "name", "placeholder", "blur"], [4, "ngIf"], [1, "a-input__label", 3, "for"], [1, "a-input__description"], ["name", "ai-calendar"], ["auiFlyoutAction", "", "name", "ai-calendar", "className", "is-clickable", "role", "button", "tabindex", "0", 3, "openOnFocus"], ["auiFlyoutZone", "", "role", "dialog", 1, "m-datepicker", "m-datepicker--fixed"], [3, "range", "selectedDate", "interval", "weekdayLabels", "monthLabels", "selectDate"]], template: function DatepickerComponent_Template(rf, ctx) {
|
|
670
|
-
if (rf & 1) {
|
|
671
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
672
|
-
i0.ɵɵtemplate(1, DatepickerComponent_label_1_Template, 2, 2, "label", 1);
|
|
673
|
-
i0.ɵɵtemplate(2, DatepickerComponent_small_2_Template, 2, 1, "small", 2);
|
|
674
|
-
i0.ɵɵelementStart(3, "div", 3)(4, "input", 4);
|
|
675
|
-
i0.ɵɵlistener("blur", function DatepickerComponent_Template_input_blur_4_listener($event) { return ctx.handleBlur($event); });
|
|
676
|
-
i0.ɵɵelementEnd();
|
|
677
|
-
i0.ɵɵtemplate(5, DatepickerComponent_ng_container_5_Template, 2, 0, "ng-container", 5);
|
|
678
|
-
i0.ɵɵtemplate(6, DatepickerComponent_ng_container_6_Template, 2, 2, "ng-container", 5);
|
|
679
|
-
i0.ɵɵtemplate(7, DatepickerComponent_ng_container_7_Template, 3, 5, "ng-container", 5);
|
|
680
|
-
i0.ɵɵelementEnd()();
|
|
681
|
-
}
|
|
682
|
-
if (rf & 2) {
|
|
683
|
-
i0.ɵɵadvance(1);
|
|
684
|
-
i0.ɵɵproperty("ngIf", ctx.label);
|
|
685
|
-
i0.ɵɵadvance(1);
|
|
686
|
-
i0.ɵɵproperty("ngIf", ctx.description);
|
|
687
|
-
i0.ɵɵadvance(2);
|
|
688
|
-
i0.ɵɵpropertyInterpolate("id", ctx.id);
|
|
689
|
-
i0.ɵɵpropertyInterpolate("name", ctx.name);
|
|
690
|
-
i0.ɵɵpropertyInterpolate("placeholder", ctx.placeholder);
|
|
691
|
-
i0.ɵɵproperty("autocomplete", ctx.autocomplete)("formControl", ctx.formControl);
|
|
692
|
-
i0.ɵɵattribute("disabled", ctx.isDisabled ? true : null);
|
|
693
|
-
i0.ɵɵadvance(1);
|
|
694
|
-
i0.ɵɵproperty("ngIf", ctx.isDisabled);
|
|
695
|
-
i0.ɵɵadvance(1);
|
|
696
|
-
i0.ɵɵproperty("ngIf", !ctx.isDisabled);
|
|
697
|
-
i0.ɵɵadvance(1);
|
|
698
|
-
i0.ɵɵproperty("ngIf", !ctx.isDisabled);
|
|
699
|
-
}
|
|
700
|
-
}, dependencies: [i1.NgIf, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.FormControlDirective, i1$2.CalendarComponent, i4$1.IconComponent, i4.FlyoutActionDirective, i4.FlyoutZoneDirective, i4.FlyoutDirective], styles: ["[_nghost-%COMP%], .aui-datepicker[_ngcontent-%COMP%]{display:block}.m-flyout.is-open[_ngcontent-%COMP%] .m-datepicker[_ngcontent-%COMP%]{opacity:1;transform:translateY(calc(var(--BORDER-WIDTH) * -1));transition-delay:0s;visibility:visible}"], changeDetection: 0 });
|
|
701
|
-
(function () {
|
|
702
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatepickerComponent, [{
|
|
479
|
+
/** @nocollapse */ DatepickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DatepickerComponent, deps: [{ token: CALENDAR_MONTH_LABELS }, { token: CALENDAR_WEEKDAY_LABELS }, { token: DATEPICKER_ERROR_LABELS }, { token: i1$2.CalendarService }, { token: i1$1.UntypedFormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
480
|
+
/** @nocollapse */ DatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: DatepickerComponent, selector: "aui-datepicker", inputs: { id: "id", name: "name", placeholder: "placeholder", label: "label", description: "description", range: "range", min: "min", max: "max", autocomplete: "autocomplete", weekdayLabels: "weekdayLabels", monthLabels: "monthLabels", ariaOpenDatepickerLabel: "ariaOpenDatepickerLabel" }, outputs: { blur: "blur" }, providers: [
|
|
481
|
+
{
|
|
482
|
+
provide: NG_VALUE_ACCESSOR,
|
|
483
|
+
useExisting: forwardRef((() => DatepickerComponent)),
|
|
484
|
+
multi: true,
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
provide: NG_VALIDATORS,
|
|
488
|
+
useExisting: forwardRef((() => DatepickerComponent)),
|
|
489
|
+
multi: true,
|
|
490
|
+
},
|
|
491
|
+
], viewQueries: [{ propertyName: "flyout", first: true, predicate: FlyoutDirective, descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div aria-haspopup=\"grid\" auiFlyout class=\"aui-datepicker a-input has-icon-right\">\n <label class=\"a-input__label\" for=\"{{ id }}\" *ngIf=\"label\">{{ label }}</label>\n <small class=\"a-input__description\" *ngIf=\"description\"> {{ description }}</small>\n <div class=\"a-input__wrapper\">\n <input\n (blur)=\"handleBlur($event)\"\n [attr.disabled]=\"isDisabled ? true : null\"\n [autocomplete]=\"autocomplete\"\n [formControl]=\"formControl\"\n id=\"{{ id }}\"\n label=\"Pick date\"\n description=\"Description\"\n name=\"{{ name }}\"\n placeholder=\"{{ placeholder }}\"\n type=\"text\"\n />\n <ng-container *ngIf=\"isDisabled\">\n <aui-icon\n name=\"ai-calendar\"\n />\n </ng-container>\n <ng-container *ngIf=\"!isDisabled\">\n <aui-icon\n auiFlyoutAction\n [openOnFocus]=\"false\"\n name=\"ai-calendar\"\n className=\"is-clickable\"\n role=\"button\"\n [attr.aria-label]=\"ariaOpenDatepickerLabel\"\n tabindex=\"0\"\n />\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</div>\n", styles: [":host,.aui-datepicker{display:block}.m-flyout.is-open .m-datepicker{opacity:1;transform:translateY(calc(var(--BORDER-WIDTH) * -1));transition-delay:0s;visibility:visible}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i1$2.CalendarComponent, selector: "aui-calendar", inputs: ["ariaPreviousLabels", "ariaNextLabels", "selectedDate", "range", "interval", "weekdayLabels", "monthLabels"], outputs: ["selectDate"] }, { kind: "component", type: i4$1.IconComponent, selector: "aui-icon", inputs: ["name", "ariaLabel", "className"] }, { kind: "directive", type: i4.FlyoutActionDirective, selector: "[auiFlyoutAction]", inputs: ["openOnFocus", "disabled"], exportAs: ["auiFlyoutAction"] }, { kind: "directive", type: i4.FlyoutZoneDirective, selector: "[auiFlyoutZone]", inputs: ["auiFlyoutZone"], exportAs: ["auiFlyoutZone"] }, { kind: "directive", type: i4.FlyoutDirective, selector: "[auiFlyout]", inputs: ["size", "align", "toggleClick", "activateOnFocus"], outputs: ["opened", "closed"], exportAs: ["auiFlyout"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DatepickerComponent, decorators: [{
|
|
703
493
|
type: Component,
|
|
704
494
|
args: [{ selector: 'aui-datepicker', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
705
495
|
{
|
|
@@ -713,7 +503,7 @@ class DatepickerComponent {
|
|
|
713
503
|
multi: true,
|
|
714
504
|
},
|
|
715
505
|
], template: "<div aria-haspopup=\"grid\" auiFlyout class=\"aui-datepicker a-input has-icon-right\">\n <label class=\"a-input__label\" for=\"{{ id }}\" *ngIf=\"label\">{{ label }}</label>\n <small class=\"a-input__description\" *ngIf=\"description\"> {{ description }}</small>\n <div class=\"a-input__wrapper\">\n <input\n (blur)=\"handleBlur($event)\"\n [attr.disabled]=\"isDisabled ? true : null\"\n [autocomplete]=\"autocomplete\"\n [formControl]=\"formControl\"\n id=\"{{ id }}\"\n label=\"Pick date\"\n description=\"Description\"\n name=\"{{ name }}\"\n placeholder=\"{{ placeholder }}\"\n type=\"text\"\n />\n <ng-container *ngIf=\"isDisabled\">\n <aui-icon\n name=\"ai-calendar\"\n />\n </ng-container>\n <ng-container *ngIf=\"!isDisabled\">\n <aui-icon\n auiFlyoutAction\n [openOnFocus]=\"false\"\n name=\"ai-calendar\"\n className=\"is-clickable\"\n role=\"button\"\n [attr.aria-label]=\"ariaOpenDatepickerLabel\"\n tabindex=\"0\"\n />\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</div>\n", styles: [":host,.aui-datepicker{display:block}.m-flyout.is-open .m-datepicker{opacity:1;transform:translateY(calc(var(--BORDER-WIDTH) * -1));transition-delay:0s;visibility:visible}\n"] }]
|
|
716
|
-
}], function () {
|
|
506
|
+
}], ctorParameters: function () {
|
|
717
507
|
return [{ type: undefined, decorators: [{
|
|
718
508
|
type: Inject,
|
|
719
509
|
args: [CALENDAR_MONTH_LABELS]
|
|
@@ -724,7 +514,7 @@ class DatepickerComponent {
|
|
|
724
514
|
type: Inject,
|
|
725
515
|
args: [DATEPICKER_ERROR_LABELS]
|
|
726
516
|
}] }, { type: i1$2.CalendarService }, { type: i1$1.UntypedFormBuilder }, { type: i0.ChangeDetectorRef }];
|
|
727
|
-
}, { flyout: [{
|
|
517
|
+
}, propDecorators: { flyout: [{
|
|
728
518
|
type: ViewChild,
|
|
729
519
|
args: [FlyoutDirective, { static: true }]
|
|
730
520
|
}], id: [{
|
|
@@ -753,8 +543,7 @@ class DatepickerComponent {
|
|
|
753
543
|
type: Input
|
|
754
544
|
}], blur: [{
|
|
755
545
|
type: Output
|
|
756
|
-
}] });
|
|
757
|
-
})();
|
|
546
|
+
}] } });
|
|
758
547
|
|
|
759
548
|
class DatepickerModule {
|
|
760
549
|
static forChild(weekdayLabels, monthLabels, errorLabels) {
|
|
@@ -768,9 +557,9 @@ class DatepickerModule {
|
|
|
768
557
|
};
|
|
769
558
|
}
|
|
770
559
|
}
|
|
771
|
-
/** @nocollapse */ DatepickerModule.ɵfac =
|
|
772
|
-
/** @nocollapse */ DatepickerModule.ɵmod =
|
|
773
|
-
/** @nocollapse */ DatepickerModule.ɵinj =
|
|
560
|
+
/** @nocollapse */ DatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
561
|
+
/** @nocollapse */ DatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: DatepickerModule, declarations: [DatepickerComponent], imports: [CommonModule, FormsModule, ReactiveFormsModule, CalendarModule, IconModule, FlyoutModule], exports: [DatepickerComponent] });
|
|
562
|
+
/** @nocollapse */ DatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DatepickerModule, providers: [
|
|
774
563
|
{
|
|
775
564
|
provide: CALENDAR_WEEKDAY_LABELS,
|
|
776
565
|
useValue: CALENDAR_DEFAULT_WEEKDAY_LABELS,
|
|
@@ -781,8 +570,7 @@ class DatepickerModule {
|
|
|
781
570
|
useValue: DATEPICKER_DEFAULT_ERROR_LABELS,
|
|
782
571
|
},
|
|
783
572
|
], imports: [CommonModule, FormsModule, ReactiveFormsModule, CalendarModule, IconModule, FlyoutModule] });
|
|
784
|
-
(
|
|
785
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatepickerModule, [{
|
|
573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: DatepickerModule, decorators: [{
|
|
786
574
|
type: NgModule,
|
|
787
575
|
args: [{
|
|
788
576
|
imports: [CommonModule, FormsModule, ReactiveFormsModule, CalendarModule, IconModule, FlyoutModule],
|
|
@@ -800,28 +588,8 @@ class DatepickerModule {
|
|
|
800
588
|
},
|
|
801
589
|
],
|
|
802
590
|
}]
|
|
803
|
-
}]
|
|
804
|
-
})();
|
|
805
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DatepickerModule, { declarations: [DatepickerComponent], imports: [CommonModule, FormsModule, ReactiveFormsModule, CalendarModule, IconModule, FlyoutModule], exports: [DatepickerComponent] }); })();
|
|
591
|
+
}] });
|
|
806
592
|
|
|
807
|
-
function RangeSliderComponent_div_6_Template(rf, ctx) {
|
|
808
|
-
if (rf & 1) {
|
|
809
|
-
i0.ɵɵelement(0, "div", 11);
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
function RangeSliderComponent_span_9_Template(rf, ctx) {
|
|
813
|
-
if (rf & 1) {
|
|
814
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
815
|
-
i0.ɵɵelementStart(0, "span", 12);
|
|
816
|
-
i0.ɵɵlistener("blur", function RangeSliderComponent_span_9_Template_span_blur_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.toggleFocus(false, null, $event)); })("dragexit", function RangeSliderComponent_span_9_Template_span_dragexit_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.onMouseUp($event)); })("focus", function RangeSliderComponent_span_9_Template_span_focus_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.toggleFocus(true, "end", $event)); })("mousedown", function RangeSliderComponent_span_9_Template_span_mousedown_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.onMouseDown("end")); })("touchstart", function RangeSliderComponent_span_9_Template_span_touchstart_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.onMouseDown("end")); });
|
|
817
|
-
i0.ɵɵelementEnd();
|
|
818
|
-
}
|
|
819
|
-
if (rf & 2) {
|
|
820
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
821
|
-
i0.ɵɵstyleProp("left", ctx_r1.endPercentage + "%");
|
|
822
|
-
i0.ɵɵattribute("aria-label", ctx_r1.ariaLabelMax);
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
593
|
class RangeSliderComponent {
|
|
826
594
|
constructor(elRef) {
|
|
827
595
|
this.elRef = elRef;
|
|
@@ -1051,61 +819,15 @@ class RangeSliderComponent {
|
|
|
1051
819
|
return newPercentage;
|
|
1052
820
|
}
|
|
1053
821
|
}
|
|
1054
|
-
/** @nocollapse */ RangeSliderComponent.ɵfac =
|
|
1055
|
-
/** @nocollapse */ RangeSliderComponent.ɵcmp =
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
{
|
|
1064
|
-
provide: NG_VALUE_ACCESSOR,
|
|
1065
|
-
useExisting: forwardRef((() => RangeSliderComponent)),
|
|
1066
|
-
multi: true,
|
|
1067
|
-
},
|
|
1068
|
-
])], decls: 15, vars: 16, consts: [[1, "a-range-slider"], [1, "a-range-slider__labels"], [1, "a-range-slider__label"], [1, "a-range-slider__inner"], [1, "a-range-slider__tickmarks"], ["class", "a-range-slider__tickmark", 4, "ngFor", "ngForOf"], [1, "a-range-slider__bar"], ["tabindex", "0", 1, "a-range-slider__handle", 3, "blur", "dragexit", "focus", "mousedown", "touchstart"], ["class", "a-range-slider__handle", "name", "a-range-slider__handle__end", "tabindex", "0", 3, "left", "blur", "dragexit", "focus", "mousedown", "touchstart", 4, "ngIf"], [1, "a-range-slider__descriptions"], [1, "a-range-slider__description", "small"], [1, "a-range-slider__tickmark"], ["name", "a-range-slider__handle__end", "tabindex", "0", 1, "a-range-slider__handle", 3, "blur", "dragexit", "focus", "mousedown", "touchstart"]], template: function RangeSliderComponent_Template(rf, ctx) {
|
|
1069
|
-
if (rf & 1) {
|
|
1070
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2);
|
|
1071
|
-
i0.ɵɵtext(3);
|
|
1072
|
-
i0.ɵɵelementEnd()();
|
|
1073
|
-
i0.ɵɵelementStart(4, "div", 3)(5, "div", 4);
|
|
1074
|
-
i0.ɵɵtemplate(6, RangeSliderComponent_div_6_Template, 1, 0, "div", 5);
|
|
1075
|
-
i0.ɵɵelementEnd();
|
|
1076
|
-
i0.ɵɵelement(7, "div", 6);
|
|
1077
|
-
i0.ɵɵelementStart(8, "span", 7);
|
|
1078
|
-
i0.ɵɵlistener("blur", function RangeSliderComponent_Template_span_blur_8_listener($event) { return ctx.toggleFocus(false, null, $event); })("dragexit", function RangeSliderComponent_Template_span_dragexit_8_listener($event) { return ctx.onMouseUp($event); })("focus", function RangeSliderComponent_Template_span_focus_8_listener($event) { return ctx.toggleFocus(true, "start", $event); })("mousedown", function RangeSliderComponent_Template_span_mousedown_8_listener() { return ctx.onMouseDown("start"); })("touchstart", function RangeSliderComponent_Template_span_touchstart_8_listener() { return ctx.onMouseDown("start"); });
|
|
1079
|
-
i0.ɵɵelementEnd();
|
|
1080
|
-
i0.ɵɵtemplate(9, RangeSliderComponent_span_9_Template, 1, 3, "span", 8);
|
|
1081
|
-
i0.ɵɵelementEnd();
|
|
1082
|
-
i0.ɵɵelementStart(10, "div", 9)(11, "div", 10);
|
|
1083
|
-
i0.ɵɵtext(12);
|
|
1084
|
-
i0.ɵɵelementEnd();
|
|
1085
|
-
i0.ɵɵelementStart(13, "div", 10);
|
|
1086
|
-
i0.ɵɵtext(14);
|
|
1087
|
-
i0.ɵɵelementEnd()()();
|
|
1088
|
-
}
|
|
1089
|
-
if (rf & 2) {
|
|
1090
|
-
i0.ɵɵadvance(3);
|
|
1091
|
-
i0.ɵɵtextInterpolate(ctx.label);
|
|
1092
|
-
i0.ɵɵadvance(3);
|
|
1093
|
-
i0.ɵɵproperty("ngForOf", ctx.steps);
|
|
1094
|
-
i0.ɵɵadvance(1);
|
|
1095
|
-
i0.ɵɵstyleProp("left", ctx.endPercentage ? ctx.startPercentage + "%" : false)("width", ctx.endPercentage ? ctx.endPercentage - ctx.startPercentage + "%" : ctx.startPercentage + "%");
|
|
1096
|
-
i0.ɵɵadvance(1);
|
|
1097
|
-
i0.ɵɵstyleProp("left", ctx.startPercentage + "%");
|
|
1098
|
-
i0.ɵɵattribute("aria-label", ctx.ariaLabelMin);
|
|
1099
|
-
i0.ɵɵadvance(1);
|
|
1100
|
-
i0.ɵɵproperty("ngIf", ctx.end);
|
|
1101
|
-
i0.ɵɵadvance(3);
|
|
1102
|
-
i0.ɵɵtextInterpolate3("", ctx.labelBefore, "", ctx.min, "", ctx.labelAfter, "");
|
|
1103
|
-
i0.ɵɵadvance(2);
|
|
1104
|
-
i0.ɵɵtextInterpolate3("", ctx.labelBefore, "", ctx.max, "", ctx.labelAfter, "");
|
|
1105
|
-
}
|
|
1106
|
-
}, dependencies: [i1.NgForOf, i1.NgIf], styles: ["[_nghost-%COMP%]{display:block;position:relative}.is-disabled[_nghost-%COMP%]{cursor:not-allowed}.is-disabled[_nghost-%COMP%] .m-range-slider__handle[_ngcontent-%COMP%]:hover{cursor:not-allowed}"] });
|
|
1107
|
-
(function () {
|
|
1108
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RangeSliderComponent, [{
|
|
822
|
+
/** @nocollapse */ RangeSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: RangeSliderComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
823
|
+
/** @nocollapse */ RangeSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: RangeSliderComponent, selector: "aui-range-slider", inputs: { min: "min", max: "max", minimalDistance: "minimalDistance", step: "step", label: "label", labelBefore: "labelBefore", labelAfter: "labelAfter", ariaLabelMin: "ariaLabelMin", ariaLabelMax: "ariaLabelMax" }, host: { listeners: { "document:keydown": "onKeyDown($event)", "touchend": "onMouseUp($event)", "mouseup": "onMouseUp($event)", "touchstart": "mouseDown($event)", "mousedown": "mouseDown($event)", "touchmove": "onMouseMove($event)", "mousemove": "onMouseMove($event)" }, properties: { "class.m-range-slider": "this.coreBranding", "class.is-disabled": "this.disabledClass" } }, providers: [
|
|
824
|
+
{
|
|
825
|
+
provide: NG_VALUE_ACCESSOR,
|
|
826
|
+
useExisting: forwardRef((() => RangeSliderComponent)),
|
|
827
|
+
multi: true,
|
|
828
|
+
},
|
|
829
|
+
], ngImport: i0, template: "<div class=\"a-range-slider\">\n <div class=\"a-range-slider__labels\">\n <div class=\"a-range-slider__label\">{{ label }}</div>\n </div>\n <div class=\"a-range-slider__inner\">\n <div class=\"a-range-slider__tickmarks\">\n <div *ngFor=\"let step of steps; let i = index\" class=\"a-range-slider__tickmark\"></div>\n </div>\n <div\n [style.left]=\"endPercentage ? startPercentage + '%' : false\"\n [style.width]=\"endPercentage ? endPercentage - startPercentage + '%' : startPercentage + '%'\"\n class=\"a-range-slider__bar\"\n ></div>\n <span\n (blur)=\"toggleFocus(false, null, $event)\"\n (dragexit)=\"onMouseUp($event)\"\n (focus)=\"toggleFocus(true, 'start', $event)\"\n (mousedown)=\"onMouseDown('start')\"\n (touchstart)=\"onMouseDown('start')\"\n [style.left]=\"startPercentage + '%'\"\n class=\"a-range-slider__handle\"\n [attr.aria-label]=\"ariaLabelMin\"\n tabindex=\"0\"\n >\n </span>\n\n <span\n (blur)=\"toggleFocus(false, null, $event)\"\n (dragexit)=\"onMouseUp($event)\"\n (focus)=\"toggleFocus(true, 'end', $event)\"\n (mousedown)=\"onMouseDown('end')\"\n (touchstart)=\"onMouseDown('end')\"\n *ngIf=\"end\"\n [style.left]=\"endPercentage + '%'\"\n class=\"a-range-slider__handle\"\n name=\"a-range-slider__handle__end\"\n [attr.aria-label]=\"ariaLabelMax\"\n tabindex=\"0\"\n >\n </span>\n </div>\n <div class=\"a-range-slider__descriptions\">\n <div class=\"a-range-slider__description small\">{{ labelBefore }}{{ min }}{{ labelAfter }}</div>\n <div class=\"a-range-slider__description small\">{{ labelBefore }}{{ max }}{{ labelAfter }}</div>\n </div>\n</div>\n", styles: [":host{display:block;position:relative}:host.is-disabled{cursor:not-allowed}:host.is-disabled .m-range-slider__handle:hover{cursor:not-allowed}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: RangeSliderComponent, decorators: [{
|
|
1109
831
|
type: Component,
|
|
1110
832
|
args: [{ selector: 'aui-range-slider', providers: [
|
|
1111
833
|
{
|
|
@@ -1114,7 +836,7 @@ class RangeSliderComponent {
|
|
|
1114
836
|
multi: true,
|
|
1115
837
|
},
|
|
1116
838
|
], template: "<div class=\"a-range-slider\">\n <div class=\"a-range-slider__labels\">\n <div class=\"a-range-slider__label\">{{ label }}</div>\n </div>\n <div class=\"a-range-slider__inner\">\n <div class=\"a-range-slider__tickmarks\">\n <div *ngFor=\"let step of steps; let i = index\" class=\"a-range-slider__tickmark\"></div>\n </div>\n <div\n [style.left]=\"endPercentage ? startPercentage + '%' : false\"\n [style.width]=\"endPercentage ? endPercentage - startPercentage + '%' : startPercentage + '%'\"\n class=\"a-range-slider__bar\"\n ></div>\n <span\n (blur)=\"toggleFocus(false, null, $event)\"\n (dragexit)=\"onMouseUp($event)\"\n (focus)=\"toggleFocus(true, 'start', $event)\"\n (mousedown)=\"onMouseDown('start')\"\n (touchstart)=\"onMouseDown('start')\"\n [style.left]=\"startPercentage + '%'\"\n class=\"a-range-slider__handle\"\n [attr.aria-label]=\"ariaLabelMin\"\n tabindex=\"0\"\n >\n </span>\n\n <span\n (blur)=\"toggleFocus(false, null, $event)\"\n (dragexit)=\"onMouseUp($event)\"\n (focus)=\"toggleFocus(true, 'end', $event)\"\n (mousedown)=\"onMouseDown('end')\"\n (touchstart)=\"onMouseDown('end')\"\n *ngIf=\"end\"\n [style.left]=\"endPercentage + '%'\"\n class=\"a-range-slider__handle\"\n name=\"a-range-slider__handle__end\"\n [attr.aria-label]=\"ariaLabelMax\"\n tabindex=\"0\"\n >\n </span>\n </div>\n <div class=\"a-range-slider__descriptions\">\n <div class=\"a-range-slider__description small\">{{ labelBefore }}{{ min }}{{ labelAfter }}</div>\n <div class=\"a-range-slider__description small\">{{ labelBefore }}{{ max }}{{ labelAfter }}</div>\n </div>\n</div>\n", styles: [":host{display:block;position:relative}:host.is-disabled{cursor:not-allowed}:host.is-disabled .m-range-slider__handle:hover{cursor:not-allowed}\n"] }]
|
|
1117
|
-
}], function () { return [{ type: i0.ElementRef }]; }, { coreBranding: [{
|
|
839
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { coreBranding: [{
|
|
1118
840
|
type: HostBinding,
|
|
1119
841
|
args: ['class.m-range-slider']
|
|
1120
842
|
}], min: [{
|
|
@@ -1159,116 +881,22 @@ class RangeSliderComponent {
|
|
|
1159
881
|
}, {
|
|
1160
882
|
type: HostListener,
|
|
1161
883
|
args: ['mousemove', ['$event']]
|
|
1162
|
-
}] });
|
|
1163
|
-
})();
|
|
884
|
+
}] } });
|
|
1164
885
|
|
|
1165
886
|
class RangeSliderModule {
|
|
1166
887
|
}
|
|
1167
|
-
/** @nocollapse */ RangeSliderModule.ɵfac =
|
|
1168
|
-
/** @nocollapse */ RangeSliderModule.ɵmod =
|
|
1169
|
-
/** @nocollapse */ RangeSliderModule.ɵinj =
|
|
1170
|
-
(
|
|
1171
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RangeSliderModule, [{
|
|
888
|
+
/** @nocollapse */ RangeSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: RangeSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
889
|
+
/** @nocollapse */ RangeSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: RangeSliderModule, declarations: [RangeSliderComponent], imports: [CommonModule, FormsModule], exports: [RangeSliderComponent] });
|
|
890
|
+
/** @nocollapse */ RangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: RangeSliderModule, imports: [CommonModule, FormsModule] });
|
|
891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: RangeSliderModule, decorators: [{
|
|
1172
892
|
type: NgModule,
|
|
1173
893
|
args: [{
|
|
1174
894
|
imports: [CommonModule, FormsModule],
|
|
1175
895
|
declarations: [RangeSliderComponent],
|
|
1176
896
|
exports: [RangeSliderComponent],
|
|
1177
897
|
}]
|
|
1178
|
-
}]
|
|
1179
|
-
})();
|
|
1180
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(RangeSliderModule, { declarations: [RangeSliderComponent], imports: [CommonModule, FormsModule], exports: [RangeSliderComponent] }); })();
|
|
898
|
+
}] });
|
|
1181
899
|
|
|
1182
|
-
const _c0$4 = function (a0, a1) { return { "a-button--l": a0, "a-button--s": a1 }; };
|
|
1183
|
-
function SearchFilterComponent_button_8_Template(rf, ctx) {
|
|
1184
|
-
if (rf & 1) {
|
|
1185
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
1186
|
-
i0.ɵɵelementStart(0, "button", 12);
|
|
1187
|
-
i0.ɵɵlistener("click", function SearchFilterComponent_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.clear()); });
|
|
1188
|
-
i0.ɵɵelement(1, "aui-icon", 13);
|
|
1189
|
-
i0.ɵɵelementEnd();
|
|
1190
|
-
}
|
|
1191
|
-
if (rf & 2) {
|
|
1192
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1193
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(2, _c0$4, ctx_r0.size === "large", ctx_r0.size === "small"));
|
|
1194
|
-
i0.ɵɵattribute("disabled", ctx_r0.isDisabled || ctx_r0.closeDisabled ? "" : null);
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
function SearchFilterComponent_aui_icon_9_Template(rf, ctx) {
|
|
1198
|
-
if (rf & 1) {
|
|
1199
|
-
i0.ɵɵelement(0, "aui-icon", 13);
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
function SearchFilterComponent_p_11_Template(rf, ctx) {
|
|
1203
|
-
if (rf & 1) {
|
|
1204
|
-
i0.ɵɵelementStart(0, "p", 14);
|
|
1205
|
-
i0.ɵɵtext(1);
|
|
1206
|
-
i0.ɵɵelementEnd();
|
|
1207
|
-
}
|
|
1208
|
-
if (rf & 2) {
|
|
1209
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
1210
|
-
i0.ɵɵadvance(1);
|
|
1211
|
-
i0.ɵɵtextInterpolate(ctx_r2.labelResults);
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
function SearchFilterComponent_div_12_Template(rf, ctx) {
|
|
1215
|
-
if (rf & 1) {
|
|
1216
|
-
i0.ɵɵelement(0, "div", 15);
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
function SearchFilterComponent_ul_13_li_1_Template(rf, ctx) {
|
|
1220
|
-
if (rf & 1) {
|
|
1221
|
-
i0.ɵɵelementStart(0, "li", 19)(1, "p", 20);
|
|
1222
|
-
i0.ɵɵtext(2);
|
|
1223
|
-
i0.ɵɵelementEnd()();
|
|
1224
|
-
}
|
|
1225
|
-
if (rf & 2) {
|
|
1226
|
-
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
1227
|
-
i0.ɵɵadvance(2);
|
|
1228
|
-
i0.ɵɵtextInterpolate(ctx_r7.labelNoResults);
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
function SearchFilterComponent_ul_13_li_2_Template(rf, ctx) {
|
|
1232
|
-
if (rf & 1) {
|
|
1233
|
-
const _r12 = i0.ɵɵgetCurrentView();
|
|
1234
|
-
i0.ɵɵelementStart(0, "li", 19)(1, "div", 21)(2, "div", 22)(3, "input", 23);
|
|
1235
|
-
i0.ɵɵlistener("change", function SearchFilterComponent_ul_13_li_2_Template_input_change_3_listener() { const restoredCtx = i0.ɵɵrestoreView(_r12); const choice_r9 = restoredCtx.$implicit; const ctx_r11 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r11.toggleSelected(choice_r9.label)); });
|
|
1236
|
-
i0.ɵɵelementEnd();
|
|
1237
|
-
i0.ɵɵelementStart(4, "label", 24);
|
|
1238
|
-
i0.ɵɵtext(5);
|
|
1239
|
-
i0.ɵɵelementEnd()()()();
|
|
1240
|
-
}
|
|
1241
|
-
if (rf & 2) {
|
|
1242
|
-
const choice_r9 = ctx.$implicit;
|
|
1243
|
-
const i_r10 = ctx.index;
|
|
1244
|
-
const ctx_r8 = i0.ɵɵnextContext(2);
|
|
1245
|
-
i0.ɵɵadvance(3);
|
|
1246
|
-
i0.ɵɵpropertyInterpolate("id", "checkbox--" + i_r10 + "--" + ctx_r8.id);
|
|
1247
|
-
i0.ɵɵpropertyInterpolate("name", "checkbox--" + i_r10 + "--" + ctx_r8.id);
|
|
1248
|
-
i0.ɵɵproperty("checked", ctx_r8.selectedItems.indexOf(choice_r9.label) >= 0);
|
|
1249
|
-
i0.ɵɵattribute("disabled", ctx_r8.isDisabled ? true : null);
|
|
1250
|
-
i0.ɵɵadvance(1);
|
|
1251
|
-
i0.ɵɵpropertyInterpolate("for", "checkbox--" + i_r10 + "--" + ctx_r8.id);
|
|
1252
|
-
i0.ɵɵadvance(1);
|
|
1253
|
-
i0.ɵɵtextInterpolate(choice_r9.label);
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
|
-
function SearchFilterComponent_ul_13_Template(rf, ctx) {
|
|
1257
|
-
if (rf & 1) {
|
|
1258
|
-
i0.ɵɵelementStart(0, "ul", 16);
|
|
1259
|
-
i0.ɵɵtemplate(1, SearchFilterComponent_ul_13_li_1_Template, 3, 1, "li", 17);
|
|
1260
|
-
i0.ɵɵtemplate(2, SearchFilterComponent_ul_13_li_2_Template, 6, 6, "li", 18);
|
|
1261
|
-
i0.ɵɵelementEnd();
|
|
1262
|
-
}
|
|
1263
|
-
if (rf & 2) {
|
|
1264
|
-
const ctx_r4 = i0.ɵɵnextContext();
|
|
1265
|
-
i0.ɵɵadvance(1);
|
|
1266
|
-
i0.ɵɵproperty("ngIf", !ctx_r4.filteredChoices.length);
|
|
1267
|
-
i0.ɵɵadvance(1);
|
|
1268
|
-
i0.ɵɵproperty("ngForOf", ctx_r4.filteredChoices);
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
const _c1$4 = function (a0, a1, a2) { return { "a-input--l": a0, "a-input--s": a1, "has-icon-right": a2 }; };
|
|
1272
900
|
class SearchFilterComponent {
|
|
1273
901
|
constructor() {
|
|
1274
902
|
this.flyoutSize = FlyoutSize.Small;
|
|
@@ -1359,65 +987,15 @@ class SearchFilterComponent {
|
|
|
1359
987
|
}
|
|
1360
988
|
}
|
|
1361
989
|
}
|
|
1362
|
-
/** @nocollapse */ SearchFilterComponent.ɵfac =
|
|
1363
|
-
/** @nocollapse */ SearchFilterComponent.ɵcmp =
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "label", 2);
|
|
1372
|
-
i0.ɵɵtext(3);
|
|
1373
|
-
i0.ɵɵelementEnd();
|
|
1374
|
-
i0.ɵɵelementStart(4, "small", 3);
|
|
1375
|
-
i0.ɵɵtext(5);
|
|
1376
|
-
i0.ɵɵelementEnd();
|
|
1377
|
-
i0.ɵɵelementStart(6, "div", 4)(7, "input", 5);
|
|
1378
|
-
i0.ɵɵlistener("input", function SearchFilterComponent_Template_input_input_7_listener() { return ctx.filterDataFromSearch(); })("ngModelChange", function SearchFilterComponent_Template_input_ngModelChange_7_listener($event) { return ctx.query = $event; });
|
|
1379
|
-
i0.ɵɵelementEnd();
|
|
1380
|
-
i0.ɵɵtemplate(8, SearchFilterComponent_button_8_Template, 2, 5, "button", 6);
|
|
1381
|
-
i0.ɵɵtemplate(9, SearchFilterComponent_aui_icon_9_Template, 1, 0, "aui-icon", 7);
|
|
1382
|
-
i0.ɵɵelementEnd()();
|
|
1383
|
-
i0.ɵɵelementStart(10, "div", 8);
|
|
1384
|
-
i0.ɵɵtemplate(11, SearchFilterComponent_p_11_Template, 2, 1, "p", 9);
|
|
1385
|
-
i0.ɵɵtemplate(12, SearchFilterComponent_div_12_Template, 1, 0, "div", 10);
|
|
1386
|
-
i0.ɵɵtemplate(13, SearchFilterComponent_ul_13_Template, 3, 2, "ul", 11);
|
|
1387
|
-
i0.ɵɵelementEnd()();
|
|
1388
|
-
}
|
|
1389
|
-
if (rf & 2) {
|
|
1390
|
-
i0.ɵɵproperty("align", ctx.flyoutAlign)("size", ctx.flyoutSize);
|
|
1391
|
-
i0.ɵɵadvance(1);
|
|
1392
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(18, _c1$4, ctx.size === "large", ctx.size === "small", ctx.hasClose));
|
|
1393
|
-
i0.ɵɵadvance(1);
|
|
1394
|
-
i0.ɵɵpropertyInterpolate("for", ctx.id + "-search");
|
|
1395
|
-
i0.ɵɵadvance(1);
|
|
1396
|
-
i0.ɵɵtextInterpolate(ctx.label);
|
|
1397
|
-
i0.ɵɵadvance(1);
|
|
1398
|
-
i0.ɵɵpropertyInterpolate("id", ctx.id + "-description");
|
|
1399
|
-
i0.ɵɵadvance(1);
|
|
1400
|
-
i0.ɵɵtextInterpolate(ctx.description);
|
|
1401
|
-
i0.ɵɵadvance(2);
|
|
1402
|
-
i0.ɵɵpropertyInterpolate("id", ctx.id + "-search");
|
|
1403
|
-
i0.ɵɵpropertyInterpolate("name", ctx.name + "-search");
|
|
1404
|
-
i0.ɵɵpropertyInterpolate("value", ctx.getSelectedLabels());
|
|
1405
|
-
i0.ɵɵproperty("ngModel", ctx.query);
|
|
1406
|
-
i0.ɵɵattribute("aria-labelledby", ctx.id + "-label")("disabled", ctx.isDisabled ? "" : null);
|
|
1407
|
-
i0.ɵɵadvance(1);
|
|
1408
|
-
i0.ɵɵproperty("ngIf", ctx.hasClose);
|
|
1409
|
-
i0.ɵɵadvance(1);
|
|
1410
|
-
i0.ɵɵproperty("ngIf", !ctx.hasClose);
|
|
1411
|
-
i0.ɵɵadvance(2);
|
|
1412
|
-
i0.ɵɵproperty("ngIf", ctx.labelResults);
|
|
1413
|
-
i0.ɵɵadvance(1);
|
|
1414
|
-
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
1415
|
-
i0.ɵɵadvance(1);
|
|
1416
|
-
i0.ɵɵproperty("ngIf", !ctx.loading);
|
|
1417
|
-
}
|
|
1418
|
-
}, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i4.FlyoutActionDirective, i4.FlyoutZoneDirective, i4.FlyoutDirective, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.NgModel, i4$1.IconComponent], styles: [".m-search-filter[_ngcontent-%COMP%]{display:block}.m-search-filter__input[_ngcontent-%COMP%]{display:flex;padding:0}.m-search-filter__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-right:none}.m-search-filter__button[_ngcontent-%COMP%]{display:inline-block;padding:0;position:relative;vertical-align:middle}.m-search-filter__button[_ngcontent-%COMP%] .ai[_ngcontent-%COMP%]{position:relative;transform:none!important;top:0}"] });
|
|
1419
|
-
(function () {
|
|
1420
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchFilterComponent, [{
|
|
990
|
+
/** @nocollapse */ SearchFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: SearchFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
991
|
+
/** @nocollapse */ SearchFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: SearchFilterComponent, selector: "aui-search-filter", inputs: { id: "id", name: "name", flyoutSize: "flyoutSize", flyoutAlign: "flyoutAlign", label: "label", description: "description", labelDeselect: "labelDeselect", labelResults: "labelResults", labelNoResults: "labelNoResults", choices: "choices", remote: "remote", inputDelay: "inputDelay", onSelect: "onSelect", onClear: "onClear", size: "size" }, outputs: { search: "search" }, providers: [
|
|
992
|
+
{
|
|
993
|
+
provide: NG_VALUE_ACCESSOR,
|
|
994
|
+
useExisting: forwardRef((() => SearchFilterComponent)),
|
|
995
|
+
multi: true,
|
|
996
|
+
},
|
|
997
|
+
], usesOnChanges: true, ngImport: i0, template: "<div [align]=\"flyoutAlign\" [size]=\"flyoutSize\" aria-haspopup=\"listbox\" auiFlyout class=\"m-search-filter\">\n <div\n class=\"a-input\"\n [ngClass]=\"{\n 'a-input--l': size === 'large',\n 'a-input--s': size === 'small',\n 'has-icon-right': hasClose\n }\"\n >\n <label class=\"a-input__label\" for=\"{{ id + '-search' }}\">{{ label }}</label>\n <small class=\"a-input__description\" id=\"{{ id + '-description' }}\">{{ description }}</small>\n <div class=\"m-search-filter__input\">\n <input\n (input)=\"filterDataFromSearch()\"\n [(ngModel)]=\"query\"\n [attr.aria-labelledby]=\"id + '-label'\"\n [attr.disabled]=\"isDisabled ? '' : null\"\n aria-autocomplete=\"list\"\n id=\"{{ id + '-search' }}\"\n name=\"{{ name + '-search' }}\"\n value=\"{{ getSelectedLabels() }}\"\n type=\"text\"\n auiFlyoutAction\n />\n <button\n *ngIf=\"hasClose\"\n [ngClass]=\"{\n 'a-button--l': size === 'large',\n 'a-button--s': size === 'small'\n }\"\n class=\"a-button a-button--outlined has-icon m-search-filter__button a-button--danger\"\n aria-label=\"Zoekopdracht wissen\"\n type=\"button\"\n (click)=\"clear()\"\n [attr.disabled]=\"isDisabled || closeDisabled ? '' : null\"\n >\n <aui-icon name=\"ai-close\"></aui-icon>\n </button>\n <aui-icon *ngIf=\"!hasClose\" name=\"ai-close\"></aui-icon>\n </div>\n </div>\n <div auiFlyoutZone class=\"m-search-filter__search m-search-filter__search--scroll\">\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-checkbox-list a-checkbox-list--flushed\">\n <li *ngIf=\"!filteredChoices.length\" class=\"a-checkbox-list__item\">\n <p class=\"u-margin-xs\">{{ labelNoResults }}</p>\n </li>\n <li *ngFor=\"let choice of filteredChoices; index as i\" class=\"a-checkbox-list__item\">\n <div class=\"a-input a-checkbox-list__checkbox\">\n <div class=\"a-input__checkbox\">\n <input\n (change)=\"toggleSelected(choice.label)\"\n [attr.disabled]=\"isDisabled ? true : null\"\n [checked]=\"selectedItems.indexOf(choice.label) >= 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 </div>\n </li>\n </ul>\n </div>\n</div>\n", styles: [".m-search-filter{display:block}.m-search-filter__input{display:flex;padding:0}.m-search-filter__input input{border-right:none}.m-search-filter__button{display:inline-block;padding:0;position:relative;vertical-align:middle}.m-search-filter__button .ai{position:relative;transform:none!important;top:0}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.FlyoutActionDirective, selector: "[auiFlyoutAction]", inputs: ["openOnFocus", "disabled"], exportAs: ["auiFlyoutAction"] }, { kind: "directive", type: i4.FlyoutZoneDirective, selector: "[auiFlyoutZone]", inputs: ["auiFlyoutZone"], exportAs: ["auiFlyoutZone"] }, { kind: "directive", type: i4.FlyoutDirective, selector: "[auiFlyout]", inputs: ["size", "align", "toggleClick", "activateOnFocus"], outputs: ["opened", "closed"], exportAs: ["auiFlyout"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4$1.IconComponent, selector: "aui-icon", inputs: ["name", "ariaLabel", "className"] }] });
|
|
998
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: SearchFilterComponent, decorators: [{
|
|
1421
999
|
type: Component,
|
|
1422
1000
|
args: [{ selector: 'aui-search-filter', providers: [
|
|
1423
1001
|
{
|
|
@@ -1426,7 +1004,7 @@ class SearchFilterComponent {
|
|
|
1426
1004
|
multi: true,
|
|
1427
1005
|
},
|
|
1428
1006
|
], template: "<div [align]=\"flyoutAlign\" [size]=\"flyoutSize\" aria-haspopup=\"listbox\" auiFlyout class=\"m-search-filter\">\n <div\n class=\"a-input\"\n [ngClass]=\"{\n 'a-input--l': size === 'large',\n 'a-input--s': size === 'small',\n 'has-icon-right': hasClose\n }\"\n >\n <label class=\"a-input__label\" for=\"{{ id + '-search' }}\">{{ label }}</label>\n <small class=\"a-input__description\" id=\"{{ id + '-description' }}\">{{ description }}</small>\n <div class=\"m-search-filter__input\">\n <input\n (input)=\"filterDataFromSearch()\"\n [(ngModel)]=\"query\"\n [attr.aria-labelledby]=\"id + '-label'\"\n [attr.disabled]=\"isDisabled ? '' : null\"\n aria-autocomplete=\"list\"\n id=\"{{ id + '-search' }}\"\n name=\"{{ name + '-search' }}\"\n value=\"{{ getSelectedLabels() }}\"\n type=\"text\"\n auiFlyoutAction\n />\n <button\n *ngIf=\"hasClose\"\n [ngClass]=\"{\n 'a-button--l': size === 'large',\n 'a-button--s': size === 'small'\n }\"\n class=\"a-button a-button--outlined has-icon m-search-filter__button a-button--danger\"\n aria-label=\"Zoekopdracht wissen\"\n type=\"button\"\n (click)=\"clear()\"\n [attr.disabled]=\"isDisabled || closeDisabled ? '' : null\"\n >\n <aui-icon name=\"ai-close\"></aui-icon>\n </button>\n <aui-icon *ngIf=\"!hasClose\" name=\"ai-close\"></aui-icon>\n </div>\n </div>\n <div auiFlyoutZone class=\"m-search-filter__search m-search-filter__search--scroll\">\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-checkbox-list a-checkbox-list--flushed\">\n <li *ngIf=\"!filteredChoices.length\" class=\"a-checkbox-list__item\">\n <p class=\"u-margin-xs\">{{ labelNoResults }}</p>\n </li>\n <li *ngFor=\"let choice of filteredChoices; index as i\" class=\"a-checkbox-list__item\">\n <div class=\"a-input a-checkbox-list__checkbox\">\n <div class=\"a-input__checkbox\">\n <input\n (change)=\"toggleSelected(choice.label)\"\n [attr.disabled]=\"isDisabled ? true : null\"\n [checked]=\"selectedItems.indexOf(choice.label) >= 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 </div>\n </li>\n </ul>\n </div>\n</div>\n", styles: [".m-search-filter{display:block}.m-search-filter__input{display:flex;padding:0}.m-search-filter__input input{border-right:none}.m-search-filter__button{display:inline-block;padding:0;position:relative;vertical-align:middle}.m-search-filter__button .ai{position:relative;transform:none!important;top:0}\n"] }]
|
|
1429
|
-
}], function () { return []; }, { id: [{
|
|
1007
|
+
}], ctorParameters: function () { return []; }, propDecorators: { id: [{
|
|
1430
1008
|
type: Input
|
|
1431
1009
|
}], name: [{
|
|
1432
1010
|
type: Input
|
|
@@ -1458,25 +1036,21 @@ class SearchFilterComponent {
|
|
|
1458
1036
|
type: Input
|
|
1459
1037
|
}], search: [{
|
|
1460
1038
|
type: Output
|
|
1461
|
-
}] });
|
|
1462
|
-
})();
|
|
1039
|
+
}] } });
|
|
1463
1040
|
|
|
1464
1041
|
class SearchFilterModule {
|
|
1465
1042
|
}
|
|
1466
|
-
/** @nocollapse */ SearchFilterModule.ɵfac =
|
|
1467
|
-
/** @nocollapse */ SearchFilterModule.ɵmod =
|
|
1468
|
-
/** @nocollapse */ SearchFilterModule.ɵinj =
|
|
1469
|
-
(
|
|
1470
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchFilterModule, [{
|
|
1043
|
+
/** @nocollapse */ SearchFilterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: SearchFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1044
|
+
/** @nocollapse */ SearchFilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: SearchFilterModule, declarations: [SearchFilterComponent], imports: [CommonModule, FlyoutModule, FormsModule, IconModule], exports: [SearchFilterComponent] });
|
|
1045
|
+
/** @nocollapse */ SearchFilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: SearchFilterModule, imports: [CommonModule, FlyoutModule, FormsModule, IconModule] });
|
|
1046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: SearchFilterModule, decorators: [{
|
|
1471
1047
|
type: NgModule,
|
|
1472
1048
|
args: [{
|
|
1473
1049
|
imports: [CommonModule, FlyoutModule, FormsModule, IconModule],
|
|
1474
1050
|
declarations: [SearchFilterComponent],
|
|
1475
1051
|
exports: [SearchFilterComponent],
|
|
1476
1052
|
}]
|
|
1477
|
-
}]
|
|
1478
|
-
})();
|
|
1479
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SearchFilterModule, { declarations: [SearchFilterComponent], imports: [CommonModule, FlyoutModule, FormsModule, IconModule], exports: [SearchFilterComponent] }); })();
|
|
1053
|
+
}] });
|
|
1480
1054
|
|
|
1481
1055
|
class TimePickerValidators {
|
|
1482
1056
|
// time `hh:mm` 24h format
|
|
@@ -1534,129 +1108,6 @@ var TimepickerInputSize;
|
|
|
1534
1108
|
TimepickerInputSize["Large"] = "large";
|
|
1535
1109
|
})(TimepickerInputSize || (TimepickerInputSize = {}));
|
|
1536
1110
|
|
|
1537
|
-
function TimepickerComponent_div_1_label_1_Template(rf, ctx) {
|
|
1538
|
-
if (rf & 1) {
|
|
1539
|
-
i0.ɵɵelementStart(0, "label", 7);
|
|
1540
|
-
i0.ɵɵtext(1);
|
|
1541
|
-
i0.ɵɵelementEnd();
|
|
1542
|
-
}
|
|
1543
|
-
if (rf & 2) {
|
|
1544
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
1545
|
-
i0.ɵɵadvance(1);
|
|
1546
|
-
i0.ɵɵtextInterpolate(ctx_r2.label);
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
function TimepickerComponent_div_1_small_2_aui_icon_1_Template(rf, ctx) {
|
|
1550
|
-
if (rf & 1) {
|
|
1551
|
-
i0.ɵɵelement(0, "aui-icon", 10);
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
const _c0$3 = function (a0) { return { "is-error": a0 }; };
|
|
1555
|
-
function TimepickerComponent_div_1_small_2_Template(rf, ctx) {
|
|
1556
|
-
if (rf & 1) {
|
|
1557
|
-
i0.ɵɵelementStart(0, "small", 8);
|
|
1558
|
-
i0.ɵɵtemplate(1, TimepickerComponent_div_1_small_2_aui_icon_1_Template, 1, 0, "aui-icon", 9);
|
|
1559
|
-
i0.ɵɵtext(2);
|
|
1560
|
-
i0.ɵɵelementEnd();
|
|
1561
|
-
}
|
|
1562
|
-
if (rf & 2) {
|
|
1563
|
-
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
1564
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$3, ctx_r3.hasError));
|
|
1565
|
-
i0.ɵɵadvance(1);
|
|
1566
|
-
i0.ɵɵproperty("ngIf", ctx_r3.hasError);
|
|
1567
|
-
i0.ɵɵadvance(1);
|
|
1568
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r3.description, "");
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
const _c1$3 = function (a0) { return { "has-error": a0 }; };
|
|
1572
|
-
function TimepickerComponent_div_1_Template(rf, ctx) {
|
|
1573
|
-
if (rf & 1) {
|
|
1574
|
-
i0.ɵɵelementStart(0, "div", 3);
|
|
1575
|
-
i0.ɵɵtemplate(1, TimepickerComponent_div_1_label_1_Template, 2, 1, "label", 4);
|
|
1576
|
-
i0.ɵɵtemplate(2, TimepickerComponent_div_1_small_2_Template, 3, 5, "small", 5);
|
|
1577
|
-
i0.ɵɵelement(3, "input", 6);
|
|
1578
|
-
i0.ɵɵelementEnd();
|
|
1579
|
-
}
|
|
1580
|
-
if (rf & 2) {
|
|
1581
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1582
|
-
i0.ɵɵclassMap("a-input--" + ctx_r0.size);
|
|
1583
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$3, ctx_r0.hasError));
|
|
1584
|
-
i0.ɵɵadvance(1);
|
|
1585
|
-
i0.ɵɵproperty("ngIf", ctx_r0.label);
|
|
1586
|
-
i0.ɵɵadvance(1);
|
|
1587
|
-
i0.ɵɵproperty("ngIf", ctx_r0.description);
|
|
1588
|
-
i0.ɵɵadvance(1);
|
|
1589
|
-
i0.ɵɵproperty("formControl", ctx_r0.timeControl)("id", ctx_r0.id);
|
|
1590
|
-
i0.ɵɵattribute("aria-label", ctx_r0.ariaLabelHours + ":" + ctx_r0.ariaLabelMinutes);
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
function TimepickerComponent_div_2_option_6_Template(rf, ctx) {
|
|
1594
|
-
if (rf & 1) {
|
|
1595
|
-
i0.ɵɵelementStart(0, "option", 19);
|
|
1596
|
-
i0.ɵɵtext(1);
|
|
1597
|
-
i0.ɵɵelementEnd();
|
|
1598
|
-
}
|
|
1599
|
-
if (rf & 2) {
|
|
1600
|
-
const hour_r7 = ctx.$implicit;
|
|
1601
|
-
i0.ɵɵproperty("value", hour_r7);
|
|
1602
|
-
i0.ɵɵadvance(1);
|
|
1603
|
-
i0.ɵɵtextInterpolate(hour_r7);
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
function TimepickerComponent_div_2_option_13_Template(rf, ctx) {
|
|
1607
|
-
if (rf & 1) {
|
|
1608
|
-
i0.ɵɵelementStart(0, "option", 19);
|
|
1609
|
-
i0.ɵɵtext(1);
|
|
1610
|
-
i0.ɵɵelementEnd();
|
|
1611
|
-
}
|
|
1612
|
-
if (rf & 2) {
|
|
1613
|
-
const minute_r8 = ctx.$implicit;
|
|
1614
|
-
i0.ɵɵproperty("value", minute_r8);
|
|
1615
|
-
i0.ɵɵadvance(1);
|
|
1616
|
-
i0.ɵɵtextInterpolate(minute_r8);
|
|
1617
|
-
}
|
|
1618
|
-
}
|
|
1619
|
-
function TimepickerComponent_div_2_Template(rf, ctx) {
|
|
1620
|
-
if (rf & 1) {
|
|
1621
|
-
i0.ɵɵelementStart(0, "div", 11)(1, "div", 12)(2, "div", 13)(3, "select", 14)(4, "option", 15);
|
|
1622
|
-
i0.ɵɵtext(5);
|
|
1623
|
-
i0.ɵɵelementEnd();
|
|
1624
|
-
i0.ɵɵtemplate(6, TimepickerComponent_div_2_option_6_Template, 2, 2, "option", 16);
|
|
1625
|
-
i0.ɵɵelementEnd();
|
|
1626
|
-
i0.ɵɵelement(7, "aui-icon", 17);
|
|
1627
|
-
i0.ɵɵelementEnd()();
|
|
1628
|
-
i0.ɵɵelementStart(8, "div", 12)(9, "div", 13)(10, "select", 18)(11, "option", 15);
|
|
1629
|
-
i0.ɵɵtext(12);
|
|
1630
|
-
i0.ɵɵelementEnd();
|
|
1631
|
-
i0.ɵɵtemplate(13, TimepickerComponent_div_2_option_13_Template, 2, 2, "option", 16);
|
|
1632
|
-
i0.ɵɵelementEnd();
|
|
1633
|
-
i0.ɵɵelement(14, "aui-icon", 17);
|
|
1634
|
-
i0.ɵɵelementEnd()()();
|
|
1635
|
-
}
|
|
1636
|
-
if (rf & 2) {
|
|
1637
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
1638
|
-
i0.ɵɵproperty("formGroup", ctx_r1.fallbackForm);
|
|
1639
|
-
i0.ɵɵadvance(1);
|
|
1640
|
-
i0.ɵɵclassMap("a-input--" + ctx_r1.size);
|
|
1641
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c1$3, ctx_r1.hasError));
|
|
1642
|
-
i0.ɵɵadvance(2);
|
|
1643
|
-
i0.ɵɵproperty("id", ctx_r1.id);
|
|
1644
|
-
i0.ɵɵattribute("aria-label", ctx_r1.ariaLabelHours);
|
|
1645
|
-
i0.ɵɵadvance(2);
|
|
1646
|
-
i0.ɵɵtextInterpolate(ctx_r1.hoursPlaceholder);
|
|
1647
|
-
i0.ɵɵadvance(1);
|
|
1648
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.hours);
|
|
1649
|
-
i0.ɵɵadvance(2);
|
|
1650
|
-
i0.ɵɵclassMap("a-input--" + ctx_r1.size);
|
|
1651
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c1$3, ctx_r1.hasError));
|
|
1652
|
-
i0.ɵɵadvance(2);
|
|
1653
|
-
i0.ɵɵattribute("aria-label", ctx_r1.ariaLabelMinutes);
|
|
1654
|
-
i0.ɵɵadvance(2);
|
|
1655
|
-
i0.ɵɵtextInterpolate(ctx_r1.minutesPlaceholder);
|
|
1656
|
-
i0.ɵɵadvance(1);
|
|
1657
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.minutes);
|
|
1658
|
-
}
|
|
1659
|
-
}
|
|
1660
1111
|
class TimepickerComponent {
|
|
1661
1112
|
constructor(formBuilder, renderer) {
|
|
1662
1113
|
this.formBuilder = formBuilder;
|
|
@@ -1740,29 +1191,15 @@ class TimepickerComponent {
|
|
|
1740
1191
|
});
|
|
1741
1192
|
}
|
|
1742
1193
|
}
|
|
1743
|
-
/** @nocollapse */ TimepickerComponent.ɵfac =
|
|
1744
|
-
/** @nocollapse */ TimepickerComponent.ɵcmp =
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
1753
|
-
i0.ɵɵtemplate(1, TimepickerComponent_div_1_Template, 4, 10, "div", 1);
|
|
1754
|
-
i0.ɵɵtemplate(2, TimepickerComponent_div_2_Template, 15, 18, "div", 2);
|
|
1755
|
-
i0.ɵɵelementEnd();
|
|
1756
|
-
}
|
|
1757
|
-
if (rf & 2) {
|
|
1758
|
-
i0.ɵɵadvance(1);
|
|
1759
|
-
i0.ɵɵproperty("ngIf", !ctx.shouldUseFallback);
|
|
1760
|
-
i0.ɵɵadvance(1);
|
|
1761
|
-
i0.ɵɵproperty("ngIf", ctx.shouldUseFallback);
|
|
1762
|
-
}
|
|
1763
|
-
}, dependencies: [i1$1.NgSelectOption, i1$1.ɵNgSelectMultipleOption, i1$1.DefaultValueAccessor, i1$1.SelectControlValueAccessor, i1$1.NgControlStatus, i1$1.NgControlStatusGroup, i1$1.FormControlDirective, i1$1.FormGroupDirective, i1$1.FormControlName, i1.NgClass, i1.NgForOf, i1.NgIf, i4$1.IconComponent], styles: ["[_nghost-%COMP%]{display:block}"], changeDetection: 0 });
|
|
1764
|
-
(function () {
|
|
1765
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimepickerComponent, [{
|
|
1194
|
+
/** @nocollapse */ TimepickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: TimepickerComponent, deps: [{ token: i1$1.UntypedFormBuilder }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
1195
|
+
/** @nocollapse */ TimepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: TimepickerComponent, selector: "aui-timepicker", inputs: { id: "id", hoursPlaceholder: "hoursPlaceholder", minutesPlaceholder: "minutesPlaceholder", hasError: "hasError", size: "size", ariaLabelHours: "ariaLabelHours", ariaLabelMinutes: "ariaLabelMinutes", label: "label", description: "description" }, providers: [
|
|
1196
|
+
{
|
|
1197
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1198
|
+
useExisting: forwardRef((() => TimepickerComponent)),
|
|
1199
|
+
multi: true,
|
|
1200
|
+
},
|
|
1201
|
+
], ngImport: i0, template: "<div class=\"m-timepicker\">\n <div *ngIf=\"!shouldUseFallback\" [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input\">\n <label class=\"a-input__label\" for=\"id\" *ngIf=\"label\">{{ label }}</label>\n <small class=\"a-input__description\" id=\"id\" [ngClass]=\"{ 'is-error': hasError }\" *ngIf=\"description\">\n <aui-icon *ngIf=\"hasError\" name=\"ai-alert-triangle\"></aui-icon>\n {{ description }}</small\n >\n <input\n [attr.aria-label]=\"ariaLabelHours + ':' + ariaLabelMinutes\"\n [formControl]=\"timeControl\"\n [id]=\"id\"\n type=\"time\"\n />\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", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.IconComponent, selector: "aui-icon", inputs: ["name", "ariaLabel", "className"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: TimepickerComponent, decorators: [{
|
|
1766
1203
|
type: Component,
|
|
1767
1204
|
args: [{ selector: 'aui-timepicker', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
1768
1205
|
{
|
|
@@ -1771,7 +1208,7 @@ class TimepickerComponent {
|
|
|
1771
1208
|
multi: true,
|
|
1772
1209
|
},
|
|
1773
1210
|
], template: "<div class=\"m-timepicker\">\n <div *ngIf=\"!shouldUseFallback\" [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input\">\n <label class=\"a-input__label\" for=\"id\" *ngIf=\"label\">{{ label }}</label>\n <small class=\"a-input__description\" id=\"id\" [ngClass]=\"{ 'is-error': hasError }\" *ngIf=\"description\">\n <aui-icon *ngIf=\"hasError\" name=\"ai-alert-triangle\"></aui-icon>\n {{ description }}</small\n >\n <input\n [attr.aria-label]=\"ariaLabelHours + ':' + ariaLabelMinutes\"\n [formControl]=\"timeControl\"\n [id]=\"id\"\n type=\"time\"\n />\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", styles: [":host{display:block}\n"] }]
|
|
1774
|
-
}], function () { return [{ type: i1$1.UntypedFormBuilder }, { type: i0.Renderer2 }]; }, { id: [{
|
|
1211
|
+
}], ctorParameters: function () { return [{ type: i1$1.UntypedFormBuilder }, { type: i0.Renderer2 }]; }, propDecorators: { id: [{
|
|
1775
1212
|
type: Input
|
|
1776
1213
|
}], hoursPlaceholder: [{
|
|
1777
1214
|
type: Input
|
|
@@ -1789,16 +1226,14 @@ class TimepickerComponent {
|
|
|
1789
1226
|
type: Input
|
|
1790
1227
|
}], description: [{
|
|
1791
1228
|
type: Input
|
|
1792
|
-
}] });
|
|
1793
|
-
})();
|
|
1229
|
+
}] } });
|
|
1794
1230
|
|
|
1795
1231
|
class TimepickerModule {
|
|
1796
1232
|
}
|
|
1797
|
-
/** @nocollapse */ TimepickerModule.ɵfac =
|
|
1798
|
-
/** @nocollapse */ TimepickerModule.ɵmod =
|
|
1799
|
-
/** @nocollapse */ TimepickerModule.ɵinj =
|
|
1800
|
-
(
|
|
1801
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimepickerModule, [{
|
|
1233
|
+
/** @nocollapse */ TimepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: TimepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1234
|
+
/** @nocollapse */ TimepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: TimepickerModule, declarations: [TimepickerComponent], imports: [ReactiveFormsModule, CommonModule, IconModule], exports: [TimepickerComponent] });
|
|
1235
|
+
/** @nocollapse */ TimepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: TimepickerModule, imports: [ReactiveFormsModule, CommonModule, IconModule] });
|
|
1236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: TimepickerModule, decorators: [{
|
|
1802
1237
|
type: NgModule,
|
|
1803
1238
|
args: [{
|
|
1804
1239
|
imports: [ReactiveFormsModule, CommonModule, IconModule],
|
|
@@ -1806,9 +1241,7 @@ class TimepickerModule {
|
|
|
1806
1241
|
exports: [TimepickerComponent],
|
|
1807
1242
|
providers: [],
|
|
1808
1243
|
}]
|
|
1809
|
-
}]
|
|
1810
|
-
})();
|
|
1811
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(TimepickerModule, { declarations: [TimepickerComponent], imports: [ReactiveFormsModule, CommonModule, IconModule], exports: [TimepickerComponent] }); })();
|
|
1244
|
+
}] });
|
|
1812
1245
|
|
|
1813
1246
|
const UPLOAD_OPTIONS_DEFAULT = {
|
|
1814
1247
|
allowedMimeTypes: [],
|
|
@@ -1931,37 +1364,6 @@ class Uploader {
|
|
|
1931
1364
|
}
|
|
1932
1365
|
}
|
|
1933
1366
|
|
|
1934
|
-
function UploadQueueComponent_li_1_Template(rf, ctx) {
|
|
1935
|
-
if (rf & 1) {
|
|
1936
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
1937
|
-
i0.ɵɵelementStart(0, "li");
|
|
1938
|
-
i0.ɵɵelement(1, "aui-icon", 3);
|
|
1939
|
-
i0.ɵɵelementStart(2, "span", 4);
|
|
1940
|
-
i0.ɵɵtext(3);
|
|
1941
|
-
i0.ɵɵelementEnd();
|
|
1942
|
-
i0.ɵɵelementStart(4, "button", 5);
|
|
1943
|
-
i0.ɵɵlistener("click", function UploadQueueComponent_li_1_Template_button_click_4_listener() { const restoredCtx = i0.ɵɵrestoreView(_r5); const i_r3 = restoredCtx.index; const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.remove(i_r3)); });
|
|
1944
|
-
i0.ɵɵelement(5, "aui-icon", 6);
|
|
1945
|
-
i0.ɵɵelementEnd()();
|
|
1946
|
-
}
|
|
1947
|
-
if (rf & 2) {
|
|
1948
|
-
const file_r2 = ctx.$implicit;
|
|
1949
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1950
|
-
i0.ɵɵadvance(3);
|
|
1951
|
-
i0.ɵɵtextInterpolate(file_r2.name);
|
|
1952
|
-
i0.ɵɵadvance(2);
|
|
1953
|
-
i0.ɵɵproperty("ariaLabel", ctx_r0.ariaLabelRemove);
|
|
1954
|
-
}
|
|
1955
|
-
}
|
|
1956
|
-
function UploadQueueComponent_button_2_Template(rf, ctx) {
|
|
1957
|
-
if (rf & 1) {
|
|
1958
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
1959
|
-
i0.ɵɵelementStart(0, "button", 7);
|
|
1960
|
-
i0.ɵɵlistener("click", function UploadQueueComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.uploadFiles()); });
|
|
1961
|
-
i0.ɵɵtext(1, "Upload");
|
|
1962
|
-
i0.ɵɵelementEnd();
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
1367
|
class UploadQueueComponent {
|
|
1966
1368
|
constructor() {
|
|
1967
1369
|
this.ariaLabelRemove = 'Verwijder';
|
|
@@ -1985,26 +1387,12 @@ class UploadQueueComponent {
|
|
|
1985
1387
|
});
|
|
1986
1388
|
}
|
|
1987
1389
|
}
|
|
1988
|
-
/** @nocollapse */ UploadQueueComponent.ɵfac =
|
|
1989
|
-
/** @nocollapse */ UploadQueueComponent.ɵcmp =
|
|
1990
|
-
|
|
1991
|
-
i0.ɵɵelementStart(0, "ul", 0);
|
|
1992
|
-
i0.ɵɵtemplate(1, UploadQueueComponent_li_1_Template, 6, 2, "li", 1);
|
|
1993
|
-
i0.ɵɵelementEnd();
|
|
1994
|
-
i0.ɵɵtemplate(2, UploadQueueComponent_button_2_Template, 2, 0, "button", 2);
|
|
1995
|
-
}
|
|
1996
|
-
if (rf & 2) {
|
|
1997
|
-
i0.ɵɵadvance(1);
|
|
1998
|
-
i0.ɵɵproperty("ngForOf", ctx.files);
|
|
1999
|
-
i0.ɵɵadvance(1);
|
|
2000
|
-
i0.ɵɵproperty("ngIf", ctx.files.length > 0);
|
|
2001
|
-
}
|
|
2002
|
-
}, dependencies: [i1.NgForOf, i1.NgIf, i4$1.IconComponent], encapsulation: 2 });
|
|
2003
|
-
(function () {
|
|
2004
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UploadQueueComponent, [{
|
|
1390
|
+
/** @nocollapse */ UploadQueueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: UploadQueueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1391
|
+
/** @nocollapse */ UploadQueueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: UploadQueueComponent, selector: "aui-upload-queue", inputs: { files: "files", uploader: "uploader", ariaLabelRemove: "ariaLabelRemove" }, outputs: { uploadedFiles: "uploadedFiles" }, ngImport: i0, 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\n (click)=\"remove(i)\"\n class=\"m-upload__delete a-button a-button--text a-button--neutral a-button--s has-icon\"\n type=\"button\"\n >\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", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.IconComponent, selector: "aui-icon", inputs: ["name", "ariaLabel", "className"] }] });
|
|
1392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: UploadQueueComponent, decorators: [{
|
|
2005
1393
|
type: Component,
|
|
2006
1394
|
args: [{ selector: 'aui-upload-queue', 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\n (click)=\"remove(i)\"\n class=\"m-upload__delete a-button a-button--text a-button--neutral a-button--s has-icon\"\n type=\"button\"\n >\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" }]
|
|
2007
|
-
}],
|
|
1395
|
+
}], propDecorators: { files: [{
|
|
2008
1396
|
type: Input
|
|
2009
1397
|
}], uploader: [{
|
|
2010
1398
|
type: Input
|
|
@@ -2012,120 +1400,8 @@ class UploadQueueComponent {
|
|
|
2012
1400
|
type: Input
|
|
2013
1401
|
}], uploadedFiles: [{
|
|
2014
1402
|
type: Output
|
|
2015
|
-
}] });
|
|
2016
|
-
})();
|
|
1403
|
+
}] } });
|
|
2017
1404
|
|
|
2018
|
-
const _c0$2 = ["fileInput"];
|
|
2019
|
-
function UploadZoneComponent_div_0_div_5_Template(rf, ctx) {
|
|
2020
|
-
if (rf & 1) {
|
|
2021
|
-
i0.ɵɵelementStart(0, "div", 10)(1, "label", 11);
|
|
2022
|
-
i0.ɵɵtext(2);
|
|
2023
|
-
i0.ɵɵelementEnd();
|
|
2024
|
-
i0.ɵɵelementStart(3, "p", 12);
|
|
2025
|
-
i0.ɵɵtext(4);
|
|
2026
|
-
i0.ɵɵelementEnd()();
|
|
2027
|
-
}
|
|
2028
|
-
if (rf & 2) {
|
|
2029
|
-
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
2030
|
-
i0.ɵɵadvance(1);
|
|
2031
|
-
i0.ɵɵproperty("for", ctx_r3.ariaId);
|
|
2032
|
-
i0.ɵɵadvance(1);
|
|
2033
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r3.label, " ");
|
|
2034
|
-
i0.ɵɵadvance(2);
|
|
2035
|
-
i0.ɵɵtextInterpolate(ctx_r3.uploadedFilesString);
|
|
2036
|
-
}
|
|
2037
|
-
}
|
|
2038
|
-
function UploadZoneComponent_div_0_ng_container_6_ng_container_2_ng_container_2_Template(rf, ctx) {
|
|
2039
|
-
if (rf & 1) {
|
|
2040
|
-
i0.ɵɵelementContainerStart(0);
|
|
2041
|
-
i0.ɵɵtext(1, ",");
|
|
2042
|
-
i0.ɵɵelementContainerEnd();
|
|
2043
|
-
}
|
|
2044
|
-
}
|
|
2045
|
-
function UploadZoneComponent_div_0_ng_container_6_ng_container_2_Template(rf, ctx) {
|
|
2046
|
-
if (rf & 1) {
|
|
2047
|
-
i0.ɵɵelementContainerStart(0);
|
|
2048
|
-
i0.ɵɵtext(1);
|
|
2049
|
-
i0.ɵɵtemplate(2, UploadZoneComponent_div_0_ng_container_6_ng_container_2_ng_container_2_Template, 2, 0, "ng-container", 8);
|
|
2050
|
-
i0.ɵɵelementContainerEnd();
|
|
2051
|
-
}
|
|
2052
|
-
if (rf & 2) {
|
|
2053
|
-
const file_r6 = ctx.$implicit;
|
|
2054
|
-
const last_r7 = ctx.last;
|
|
2055
|
-
i0.ɵɵadvance(1);
|
|
2056
|
-
i0.ɵɵtextInterpolate1(" ", file_r6.name, " ");
|
|
2057
|
-
i0.ɵɵadvance(1);
|
|
2058
|
-
i0.ɵɵproperty("ngIf", !last_r7);
|
|
2059
|
-
}
|
|
2060
|
-
}
|
|
2061
|
-
function UploadZoneComponent_div_0_ng_container_6_Template(rf, ctx) {
|
|
2062
|
-
if (rf & 1) {
|
|
2063
|
-
i0.ɵɵelementContainerStart(0);
|
|
2064
|
-
i0.ɵɵelementStart(1, "p", 13);
|
|
2065
|
-
i0.ɵɵtemplate(2, UploadZoneComponent_div_0_ng_container_6_ng_container_2_Template, 3, 2, "ng-container", 14);
|
|
2066
|
-
i0.ɵɵelementEnd();
|
|
2067
|
-
i0.ɵɵelement(3, "aui-progress-bar", 15);
|
|
2068
|
-
i0.ɵɵelementContainerEnd();
|
|
2069
|
-
}
|
|
2070
|
-
if (rf & 2) {
|
|
2071
|
-
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
2072
|
-
i0.ɵɵadvance(2);
|
|
2073
|
-
i0.ɵɵproperty("ngForOf", ctx_r4.uploadingFiles);
|
|
2074
|
-
i0.ɵɵadvance(1);
|
|
2075
|
-
i0.ɵɵproperty("value", ctx_r4.uploadProgress);
|
|
2076
|
-
}
|
|
2077
|
-
}
|
|
2078
|
-
function UploadZoneComponent_div_0_Template(rf, ctx) {
|
|
2079
|
-
if (rf & 1) {
|
|
2080
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
2081
|
-
i0.ɵɵelementStart(0, "div", 2)(1, "div", 3)(2, "div", 4)(3, "input", 5, 6);
|
|
2082
|
-
i0.ɵɵlistener("click", function UploadZoneComponent_div_0_Template_input_click_3_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.onFileClick($event)); })("change", function UploadZoneComponent_div_0_Template_input_change_3_listener() { i0.ɵɵrestoreView(_r10); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.updateFiles()); });
|
|
2083
|
-
i0.ɵɵelementEnd();
|
|
2084
|
-
i0.ɵɵtemplate(5, UploadZoneComponent_div_0_div_5_Template, 5, 3, "div", 7);
|
|
2085
|
-
i0.ɵɵtemplate(6, UploadZoneComponent_div_0_ng_container_6_Template, 4, 2, "ng-container", 8);
|
|
2086
|
-
i0.ɵɵelementEnd()();
|
|
2087
|
-
i0.ɵɵelementStart(7, "small", 9);
|
|
2088
|
-
i0.ɵɵtext(8);
|
|
2089
|
-
i0.ɵɵelementEnd()();
|
|
2090
|
-
}
|
|
2091
|
-
if (rf & 2) {
|
|
2092
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
2093
|
-
i0.ɵɵclassProp("is-disabled", ctx_r0.disabled);
|
|
2094
|
-
i0.ɵɵadvance(3);
|
|
2095
|
-
i0.ɵɵproperty("id", ctx_r0.id);
|
|
2096
|
-
i0.ɵɵattribute("aria-labelledby", ctx_r0.ariaId);
|
|
2097
|
-
i0.ɵɵadvance(2);
|
|
2098
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.uploadProgress || ctx_r0.uploadProgress === 0);
|
|
2099
|
-
i0.ɵɵadvance(1);
|
|
2100
|
-
i0.ɵɵproperty("ngIf", ctx_r0.uploadProgress > 0);
|
|
2101
|
-
i0.ɵɵadvance(2);
|
|
2102
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.description, " ");
|
|
2103
|
-
}
|
|
2104
|
-
}
|
|
2105
|
-
function UploadZoneComponent_button_1_Template(rf, ctx) {
|
|
2106
|
-
if (rf & 1) {
|
|
2107
|
-
const _r14 = i0.ɵɵgetCurrentView();
|
|
2108
|
-
i0.ɵɵelementStart(0, "button", 16);
|
|
2109
|
-
i0.ɵɵlistener("click", function UploadZoneComponent_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.triggerFile()); });
|
|
2110
|
-
i0.ɵɵelementStart(1, "span", 17);
|
|
2111
|
-
i0.ɵɵprojection(2);
|
|
2112
|
-
i0.ɵɵelementEnd();
|
|
2113
|
-
i0.ɵɵelementStart(3, "input", 5, 6);
|
|
2114
|
-
i0.ɵɵlistener("click", function UploadZoneComponent_button_1_Template_input_click_3_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r15 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r15.onFileClick($event)); })("change", function UploadZoneComponent_button_1_Template_input_change_3_listener() { i0.ɵɵrestoreView(_r14); const ctx_r16 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r16.updateFiles()); });
|
|
2115
|
-
i0.ɵɵelementEnd()();
|
|
2116
|
-
}
|
|
2117
|
-
if (rf & 2) {
|
|
2118
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2119
|
-
i0.ɵɵproperty("disabled", ctx_r1.disabled);
|
|
2120
|
-
i0.ɵɵadvance(1);
|
|
2121
|
-
i0.ɵɵproperty("id", ctx_r1.ariaId);
|
|
2122
|
-
i0.ɵɵadvance(2);
|
|
2123
|
-
i0.ɵɵproperty("id", ctx_r1.id);
|
|
2124
|
-
i0.ɵɵattribute("aria-labelledby", ctx_r1.ariaId);
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
const _c1$2 = [[["", 8, "m-upload__button"]]];
|
|
2128
|
-
const _c2 = [".m-upload__button"];
|
|
2129
1405
|
class UploadZoneComponent {
|
|
2130
1406
|
onDragOver(event) {
|
|
2131
1407
|
this.preventAndStop(event);
|
|
@@ -2222,36 +1498,12 @@ class UploadZoneComponent {
|
|
|
2222
1498
|
return this.fileInput.nativeElement.files.map((file) => file.name).join('');
|
|
2223
1499
|
}
|
|
2224
1500
|
}
|
|
2225
|
-
/** @nocollapse */ UploadZoneComponent.ɵfac =
|
|
2226
|
-
/** @nocollapse */ UploadZoneComponent.ɵcmp =
|
|
2227
|
-
|
|
2228
|
-
i0.ɵɵviewQuery(_c0$2, 5);
|
|
2229
|
-
}
|
|
2230
|
-
if (rf & 2) {
|
|
2231
|
-
let _t;
|
|
2232
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
2233
|
-
}
|
|
2234
|
-
}, hostBindings: function UploadZoneComponent_HostBindings(rf, ctx) {
|
|
2235
|
-
if (rf & 1) {
|
|
2236
|
-
i0.ɵɵlistener("dragover", function UploadZoneComponent_dragover_HostBindingHandler($event) { return ctx.onDragOver($event); })("dragleave", function UploadZoneComponent_dragleave_HostBindingHandler($event) { return ctx.onDragLeave($event); })("drop", function UploadZoneComponent_drop_HostBindingHandler($event) { return ctx.onDrop($event); });
|
|
2237
|
-
}
|
|
2238
|
-
}, inputs: { uploader: "uploader", id: "id", accept: "accept", capture: "capture", ariaId: "ariaId", disabled: "disabled", multiple: "multiple", label: "label", description: "description" }, outputs: { uploadedFiles: "uploadedFiles", queuedFiles: "queuedFiles", invalidFiles: "invalidFiles" }, ngContentSelectors: _c2, decls: 2, vars: 2, consts: [["class", "m-upload", 3, "is-disabled", 4, "ngIf"], ["class", "a-button m-upload__button", "type", "button", 3, "disabled", "click", 4, "ngIf"], [1, "m-upload"], [1, "m-upload__inner"], [1, "m-upload__dropzone"], ["type", "file", 1, "m-upload__input", 3, "id", "click", "change"], ["fileInput", ""], ["class", "m-upload__content", 4, "ngIf"], [4, "ngIf"], [1, "m-upload__description"], [1, "m-upload__content"], [1, "m-upload__message", 3, "for"], [1, "m-upload__uploads", "u-text-bold"], [1, "m-upload__uploads", "u-text-bold", "u-margin-bottom-xs"], [4, "ngFor", "ngForOf"], ["max", "100", 3, "value"], ["type", "button", 1, "a-button", "m-upload__button", 3, "disabled", "click"], [3, "id"]], template: function UploadZoneComponent_Template(rf, ctx) {
|
|
2239
|
-
if (rf & 1) {
|
|
2240
|
-
i0.ɵɵprojectionDef(_c1$2);
|
|
2241
|
-
i0.ɵɵtemplate(0, UploadZoneComponent_div_0_Template, 9, 7, "div", 0);
|
|
2242
|
-
i0.ɵɵtemplate(1, UploadZoneComponent_button_1_Template, 5, 4, "button", 1);
|
|
2243
|
-
}
|
|
2244
|
-
if (rf & 2) {
|
|
2245
|
-
i0.ɵɵproperty("ngIf", ctx.uploader.options.type === "drop");
|
|
2246
|
-
i0.ɵɵadvance(1);
|
|
2247
|
-
i0.ɵɵproperty("ngIf", ctx.uploader.options.type === "button");
|
|
2248
|
-
}
|
|
2249
|
-
}, dependencies: [i1.NgForOf, i1.NgIf, i2.ProgressBarComponent], styles: [".m-upload__button[_ngcontent-%COMP%]{position:relative}"] });
|
|
2250
|
-
(function () {
|
|
2251
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UploadZoneComponent, [{
|
|
1501
|
+
/** @nocollapse */ UploadZoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: UploadZoneComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
1502
|
+
/** @nocollapse */ UploadZoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: UploadZoneComponent, selector: "aui-upload-zone", inputs: { uploader: "uploader", id: "id", accept: "accept", capture: "capture", ariaId: "ariaId", disabled: "disabled", multiple: "multiple", label: "label", description: "description" }, outputs: { uploadedFiles: "uploadedFiles", queuedFiles: "queuedFiles", invalidFiles: "invalidFiles" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "onDrop($event)" } }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }], ngImport: i0, 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\n <div *ngIf=\"!uploadProgress || uploadProgress === 0\" class=\"m-upload__content\">\n <label [for]=\"ariaId\" class=\"m-upload__message\">\n {{ label }}\n </label>\n <p class=\"m-upload__uploads u-text-bold\">{{ uploadedFilesString }}</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 {{ description }}\n </small>\n</div>\n\n<button\n (click)=\"triggerFile()\"\n *ngIf=\"uploader.options.type === 'button'\"\n [disabled]=\"disabled\"\n class=\"a-button m-upload__button\"\n type=\"button\"\n>\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 />\n</button>\n", styles: [".m-upload__button{position:relative}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ProgressBarComponent, selector: "aui-progress-bar", inputs: ["value", "max"] }] });
|
|
1503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: UploadZoneComponent, decorators: [{
|
|
2252
1504
|
type: Component,
|
|
2253
1505
|
args: [{ selector: 'aui-upload-zone', 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\n <div *ngIf=\"!uploadProgress || uploadProgress === 0\" class=\"m-upload__content\">\n <label [for]=\"ariaId\" class=\"m-upload__message\">\n {{ label }}\n </label>\n <p class=\"m-upload__uploads u-text-bold\">{{ uploadedFilesString }}</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 {{ description }}\n </small>\n</div>\n\n<button\n (click)=\"triggerFile()\"\n *ngIf=\"uploader.options.type === 'button'\"\n [disabled]=\"disabled\"\n class=\"a-button m-upload__button\"\n type=\"button\"\n>\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 />\n</button>\n", styles: [".m-upload__button{position:relative}\n"] }]
|
|
2254
|
-
}], function () { return [{ type: i0.Renderer2 }]; }, { fileInput: [{
|
|
1506
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { fileInput: [{
|
|
2255
1507
|
type: ViewChild,
|
|
2256
1508
|
args: ['fileInput', { static: false }]
|
|
2257
1509
|
}], uploader: [{
|
|
@@ -2287,8 +1539,7 @@ class UploadZoneComponent {
|
|
|
2287
1539
|
}], onDrop: [{
|
|
2288
1540
|
type: HostListener,
|
|
2289
1541
|
args: ['drop', ['$event']]
|
|
2290
|
-
}] });
|
|
2291
|
-
})();
|
|
1542
|
+
}] } });
|
|
2292
1543
|
|
|
2293
1544
|
class ValidationMessagesService {
|
|
2294
1545
|
constructor(initValues) {
|
|
@@ -2307,46 +1558,17 @@ class ValidationMessagesService {
|
|
|
2307
1558
|
}
|
|
2308
1559
|
}
|
|
2309
1560
|
}
|
|
2310
|
-
/** @nocollapse */ ValidationMessagesService.ɵfac =
|
|
2311
|
-
/** @nocollapse */ ValidationMessagesService.ɵprov =
|
|
2312
|
-
(
|
|
2313
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ValidationMessagesService, [{
|
|
1561
|
+
/** @nocollapse */ ValidationMessagesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: ValidationMessagesService, deps: [{ token: UPLOAD_VALIDATION_MESSAGES }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1562
|
+
/** @nocollapse */ ValidationMessagesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: ValidationMessagesService });
|
|
1563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: ValidationMessagesService, decorators: [{
|
|
2314
1564
|
type: Injectable
|
|
2315
|
-
}], function () {
|
|
1565
|
+
}], ctorParameters: function () {
|
|
2316
1566
|
return [{ type: undefined, decorators: [{
|
|
2317
1567
|
type: Inject,
|
|
2318
1568
|
args: [UPLOAD_VALIDATION_MESSAGES]
|
|
2319
1569
|
}] }];
|
|
2320
|
-
}
|
|
2321
|
-
})();
|
|
1570
|
+
} });
|
|
2322
1571
|
|
|
2323
|
-
function ValidationListComponent_li_1_Template(rf, ctx) {
|
|
2324
|
-
if (rf & 1) {
|
|
2325
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
2326
|
-
i0.ɵɵelementStart(0, "li", 2);
|
|
2327
|
-
i0.ɵɵelement(1, "aui-icon", 3);
|
|
2328
|
-
i0.ɵɵelementStart(2, "span", 4);
|
|
2329
|
-
i0.ɵɵtext(3);
|
|
2330
|
-
i0.ɵɵelementEnd();
|
|
2331
|
-
i0.ɵɵelementStart(4, "span", 5);
|
|
2332
|
-
i0.ɵɵtext(5);
|
|
2333
|
-
i0.ɵɵelementEnd();
|
|
2334
|
-
i0.ɵɵelementStart(6, "button", 6);
|
|
2335
|
-
i0.ɵɵlistener("click", function ValidationListComponent_li_1_Template_button_click_6_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const i_r2 = restoredCtx.index; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.remove(i_r2)); });
|
|
2336
|
-
i0.ɵɵelement(7, "aui-icon", 7);
|
|
2337
|
-
i0.ɵɵelementEnd()();
|
|
2338
|
-
}
|
|
2339
|
-
if (rf & 2) {
|
|
2340
|
-
const invalidFile_r1 = ctx.$implicit;
|
|
2341
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
2342
|
-
i0.ɵɵadvance(3);
|
|
2343
|
-
i0.ɵɵtextInterpolate(invalidFile_r1.file.name);
|
|
2344
|
-
i0.ɵɵadvance(2);
|
|
2345
|
-
i0.ɵɵtextInterpolate(ctx_r0.formatReasons(invalidFile_r1.reasons));
|
|
2346
|
-
i0.ɵɵadvance(2);
|
|
2347
|
-
i0.ɵɵproperty("ariaLabel", ctx_r0.ariaLabelRemove);
|
|
2348
|
-
}
|
|
2349
|
-
}
|
|
2350
1572
|
class ValidationListComponent {
|
|
2351
1573
|
constructor(messagesService) {
|
|
2352
1574
|
this.messagesService = messagesService;
|
|
@@ -2364,43 +1586,17 @@ class ValidationListComponent {
|
|
|
2364
1586
|
return result.join(', ');
|
|
2365
1587
|
}
|
|
2366
1588
|
}
|
|
2367
|
-
/** @nocollapse */ ValidationListComponent.ɵfac =
|
|
2368
|
-
/** @nocollapse */ ValidationListComponent.ɵcmp =
|
|
2369
|
-
|
|
2370
|
-
i0.ɵɵelementStart(0, "ul", 0);
|
|
2371
|
-
i0.ɵɵtemplate(1, ValidationListComponent_li_1_Template, 8, 3, "li", 1);
|
|
2372
|
-
i0.ɵɵelementEnd();
|
|
2373
|
-
}
|
|
2374
|
-
if (rf & 2) {
|
|
2375
|
-
i0.ɵɵadvance(1);
|
|
2376
|
-
i0.ɵɵproperty("ngForOf", ctx.invalidFiles);
|
|
2377
|
-
}
|
|
2378
|
-
}, dependencies: [i1.NgForOf, i4$1.IconComponent], encapsulation: 2 });
|
|
2379
|
-
(function () {
|
|
2380
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ValidationListComponent, [{
|
|
1589
|
+
/** @nocollapse */ ValidationListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: ValidationListComponent, deps: [{ token: ValidationMessagesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1590
|
+
/** @nocollapse */ ValidationListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: ValidationListComponent, selector: "aui-validation-list", inputs: { invalidFiles: "invalidFiles", ariaLabelRemove: "ariaLabelRemove" }, ngImport: i0, 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\n (click)=\"remove(i)\"\n class=\"m-upload__delete a-button a-button--text a-button--danger a-button--s has-icon\"\n type=\"button\"\n >\n <aui-icon name=\"ai-close\" [ariaLabel]=\"ariaLabelRemove\"></aui-icon>\n </button>\n </li>\n</ul>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i4$1.IconComponent, selector: "aui-icon", inputs: ["name", "ariaLabel", "className"] }] });
|
|
1591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: ValidationListComponent, decorators: [{
|
|
2381
1592
|
type: Component,
|
|
2382
1593
|
args: [{ selector: 'aui-validation-list', 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\n (click)=\"remove(i)\"\n class=\"m-upload__delete a-button a-button--text a-button--danger a-button--s has-icon\"\n type=\"button\"\n >\n <aui-icon name=\"ai-close\" [ariaLabel]=\"ariaLabelRemove\"></aui-icon>\n </button>\n </li>\n</ul>\n" }]
|
|
2383
|
-
}], function () { return [{ type: ValidationMessagesService }]; }, { invalidFiles: [{
|
|
1594
|
+
}], ctorParameters: function () { return [{ type: ValidationMessagesService }]; }, propDecorators: { invalidFiles: [{
|
|
2384
1595
|
type: Input
|
|
2385
1596
|
}], ariaLabelRemove: [{
|
|
2386
1597
|
type: Input
|
|
2387
|
-
}] });
|
|
2388
|
-
})();
|
|
1598
|
+
}] } });
|
|
2389
1599
|
|
|
2390
|
-
function UploadComponent_aui_upload_queue_5_Template(rf, ctx) {
|
|
2391
|
-
if (rf & 1) {
|
|
2392
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
2393
|
-
i0.ɵɵelementStart(0, "aui-upload-queue", 5);
|
|
2394
|
-
i0.ɵɵlistener("uploadedFiles", function UploadComponent_aui_upload_queue_5_Template_aui_upload_queue_uploadedFiles_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onUploadedFiles($event)); });
|
|
2395
|
-
i0.ɵɵelementEnd();
|
|
2396
|
-
}
|
|
2397
|
-
if (rf & 2) {
|
|
2398
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
2399
|
-
i0.ɵɵproperty("ariaLabelRemove", ctx_r0.ariaLabelRemove)("files", ctx_r0.queuedFiles)("uploader", ctx_r0.uploader);
|
|
2400
|
-
}
|
|
2401
|
-
}
|
|
2402
|
-
const _c0$1 = [[["", 8, "m-upload__button"]]];
|
|
2403
|
-
const _c1$1 = [".m-upload__button"];
|
|
2404
1600
|
class UploadComponent {
|
|
2405
1601
|
constructor() {
|
|
2406
1602
|
this.id = '';
|
|
@@ -2435,33 +1631,12 @@ class UploadComponent {
|
|
|
2435
1631
|
this.queuedFiles = this.queuedFiles.concat(files);
|
|
2436
1632
|
}
|
|
2437
1633
|
}
|
|
2438
|
-
/** @nocollapse */ UploadComponent.ɵfac =
|
|
2439
|
-
/** @nocollapse */ UploadComponent.ɵcmp =
|
|
2440
|
-
|
|
2441
|
-
i0.ɵɵprojectionDef(_c0$1);
|
|
2442
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "aui-upload-zone", 1);
|
|
2443
|
-
i0.ɵɵlistener("invalidFiles", function UploadComponent_Template_aui_upload_zone_invalidFiles_1_listener($event) { return ctx.onInvalidFiles($event); })("queuedFiles", function UploadComponent_Template_aui_upload_zone_queuedFiles_1_listener($event) { return ctx.onQueuedFiles($event); })("uploadedFiles", function UploadComponent_Template_aui_upload_zone_uploadedFiles_1_listener($event) { return ctx.onUploadedFiles($event); });
|
|
2444
|
-
i0.ɵɵelementStart(2, "div", 2);
|
|
2445
|
-
i0.ɵɵprojection(3);
|
|
2446
|
-
i0.ɵɵelementEnd()();
|
|
2447
|
-
i0.ɵɵelement(4, "aui-validation-list", 3);
|
|
2448
|
-
i0.ɵɵtemplate(5, UploadComponent_aui_upload_queue_5_Template, 1, 3, "aui-upload-queue", 4);
|
|
2449
|
-
i0.ɵɵelementEnd();
|
|
2450
|
-
}
|
|
2451
|
-
if (rf & 2) {
|
|
2452
|
-
i0.ɵɵadvance(1);
|
|
2453
|
-
i0.ɵɵproperty("id", ctx.id)("accept", ctx.accept)("capture", ctx.capture)("ariaId", ctx.ariaId)("disabled", ctx.disabled)("multiple", ctx.multiple)("uploader", ctx.uploader)("label", ctx.label)("description", ctx.description);
|
|
2454
|
-
i0.ɵɵadvance(3);
|
|
2455
|
-
i0.ɵɵproperty("ariaLabelRemove", ctx.ariaLabelRemove)("invalidFiles", ctx.invalidFiles);
|
|
2456
|
-
i0.ɵɵadvance(1);
|
|
2457
|
-
i0.ɵɵproperty("ngIf", !(ctx.options == null ? null : ctx.options.autoUpload));
|
|
2458
|
-
}
|
|
2459
|
-
}, dependencies: [i1.NgIf, UploadQueueComponent, UploadZoneComponent, ValidationListComponent], styles: [".m-upload__button[_ngcontent-%COMP%]{position:relative}"] });
|
|
2460
|
-
(function () {
|
|
2461
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UploadComponent, [{
|
|
1634
|
+
/** @nocollapse */ UploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: UploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1635
|
+
/** @nocollapse */ UploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: UploadComponent, selector: "aui-upload", inputs: { id: "id", accept: "accept", capture: "capture", ariaLabelRemove: "ariaLabelRemove", disabled: "disabled", multiple: "multiple", label: "label", description: "description", options: "options" }, outputs: { selectUploadedFiles: "selectUploadedFiles" }, ngImport: i0, 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 [label]=\"label\"\n [description]=\"description\"\n >\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\n (uploadedFiles)=\"onUploadedFiles($event)\"\n *ngIf=\"!options?.autoUpload\"\n [ariaLabelRemove]=\"ariaLabelRemove\"\n [files]=\"queuedFiles\"\n [uploader]=\"uploader\"\n ></aui-upload-queue>\n</div>\n", styles: [".m-upload__button{position:relative}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: UploadQueueComponent, selector: "aui-upload-queue", inputs: ["files", "uploader", "ariaLabelRemove"], outputs: ["uploadedFiles"] }, { kind: "component", type: UploadZoneComponent, selector: "aui-upload-zone", inputs: ["uploader", "id", "accept", "capture", "ariaId", "disabled", "multiple", "label", "description"], outputs: ["uploadedFiles", "queuedFiles", "invalidFiles"] }, { kind: "component", type: ValidationListComponent, selector: "aui-validation-list", inputs: ["invalidFiles", "ariaLabelRemove"] }] });
|
|
1636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: UploadComponent, decorators: [{
|
|
2462
1637
|
type: Component,
|
|
2463
1638
|
args: [{ selector: 'aui-upload', 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 [label]=\"label\"\n [description]=\"description\"\n >\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\n (uploadedFiles)=\"onUploadedFiles($event)\"\n *ngIf=\"!options?.autoUpload\"\n [ariaLabelRemove]=\"ariaLabelRemove\"\n [files]=\"queuedFiles\"\n [uploader]=\"uploader\"\n ></aui-upload-queue>\n</div>\n", styles: [".m-upload__button{position:relative}\n"] }]
|
|
2464
|
-
}],
|
|
1639
|
+
}], propDecorators: { id: [{
|
|
2465
1640
|
type: Input
|
|
2466
1641
|
}], accept: [{
|
|
2467
1642
|
type: Input
|
|
@@ -2481,11 +1656,8 @@ class UploadComponent {
|
|
|
2481
1656
|
type: Input
|
|
2482
1657
|
}], selectUploadedFiles: [{
|
|
2483
1658
|
type: Output
|
|
2484
|
-
}] });
|
|
2485
|
-
})();
|
|
1659
|
+
}] } });
|
|
2486
1660
|
|
|
2487
|
-
const _c0 = [[["", 8, "m-upload__message"]], [["", 8, "m-upload__description"]], [["", 8, "m-upload__button"]]];
|
|
2488
|
-
const _c1 = [".m-upload__message", ".m-upload__description", ".m-upload__button"];
|
|
2489
1661
|
class UploadInputComponent {
|
|
2490
1662
|
constructor() {
|
|
2491
1663
|
this.propagateChange = (_) => undefined;
|
|
@@ -2502,44 +1674,24 @@ class UploadInputComponent {
|
|
|
2502
1674
|
this.propagateChange(data);
|
|
2503
1675
|
}
|
|
2504
1676
|
}
|
|
2505
|
-
/** @nocollapse */ UploadInputComponent.ɵfac =
|
|
2506
|
-
/** @nocollapse */ UploadInputComponent.ɵcmp =
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
i0.ɵɵprojectionDef(_c0);
|
|
2513
|
-
i0.ɵɵelementStart(0, "aui-upload", 0);
|
|
2514
|
-
i0.ɵɵlistener("selectUploadedFiles", function UploadInputComponent_Template_aui_upload_selectUploadedFiles_0_listener($event) { return ctx.onUpload($event); });
|
|
2515
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
2516
|
-
i0.ɵɵprojection(2);
|
|
2517
|
-
i0.ɵɵelementEnd();
|
|
2518
|
-
i0.ɵɵelementStart(3, "div", 2);
|
|
2519
|
-
i0.ɵɵprojection(4, 1);
|
|
2520
|
-
i0.ɵɵelementEnd();
|
|
2521
|
-
i0.ɵɵelementStart(5, "div", 3);
|
|
2522
|
-
i0.ɵɵprojection(6, 2);
|
|
2523
|
-
i0.ɵɵelementEnd()();
|
|
2524
|
-
}
|
|
2525
|
-
if (rf & 2) {
|
|
2526
|
-
i0.ɵɵproperty("options", ctx.options);
|
|
2527
|
-
}
|
|
2528
|
-
}, dependencies: [UploadComponent], encapsulation: 2 });
|
|
2529
|
-
(function () {
|
|
2530
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UploadInputComponent, [{
|
|
1677
|
+
/** @nocollapse */ UploadInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: UploadInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1678
|
+
/** @nocollapse */ UploadInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.7", type: UploadInputComponent, selector: "aui-upload-input", inputs: { options: "options", format: "format" }, providers: [{
|
|
1679
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1680
|
+
useExisting: UploadInputComponent,
|
|
1681
|
+
multi: true,
|
|
1682
|
+
}], ngImport: i0, template: "<aui-upload (selectUploadedFiles)=\"onUpload($event)\" [options]=\"options\">\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>\n", dependencies: [{ kind: "component", type: UploadComponent, selector: "aui-upload", inputs: ["id", "accept", "capture", "ariaLabelRemove", "disabled", "multiple", "label", "description", "options"], outputs: ["selectUploadedFiles"] }] });
|
|
1683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: UploadInputComponent, decorators: [{
|
|
2531
1684
|
type: Component,
|
|
2532
1685
|
args: [{ selector: 'aui-upload-input', providers: [{
|
|
2533
1686
|
provide: NG_VALUE_ACCESSOR,
|
|
2534
1687
|
useExisting: UploadInputComponent,
|
|
2535
1688
|
multi: true,
|
|
2536
1689
|
}], template: "<aui-upload (selectUploadedFiles)=\"onUpload($event)\" [options]=\"options\">\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>\n" }]
|
|
2537
|
-
}],
|
|
1690
|
+
}], propDecorators: { options: [{
|
|
2538
1691
|
type: Input
|
|
2539
1692
|
}], format: [{
|
|
2540
1693
|
type: Input
|
|
2541
|
-
}] });
|
|
2542
|
-
})();
|
|
1694
|
+
}] } });
|
|
2543
1695
|
|
|
2544
1696
|
class UploadModule {
|
|
2545
1697
|
static forChild(validationMessages = {}) {
|
|
@@ -2549,11 +1701,14 @@ class UploadModule {
|
|
|
2549
1701
|
};
|
|
2550
1702
|
}
|
|
2551
1703
|
}
|
|
2552
|
-
/** @nocollapse */ UploadModule.ɵfac =
|
|
2553
|
-
/** @nocollapse */ UploadModule.ɵmod =
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
1704
|
+
/** @nocollapse */ UploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: UploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1705
|
+
/** @nocollapse */ UploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: UploadModule, declarations: [UploadComponent,
|
|
1706
|
+
UploadInputComponent,
|
|
1707
|
+
UploadQueueComponent,
|
|
1708
|
+
UploadZoneComponent,
|
|
1709
|
+
ValidationListComponent], imports: [CommonModule, ProgressBarModule, FormsModule, IconModule], exports: [UploadComponent, UploadInputComponent, UploadQueueComponent, UploadZoneComponent, ValidationListComponent] });
|
|
1710
|
+
/** @nocollapse */ UploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: UploadModule, providers: [ValidationMessagesService, { provide: UPLOAD_VALIDATION_MESSAGES, useValue: {} }], imports: [CommonModule, ProgressBarModule, FormsModule, IconModule] });
|
|
1711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: UploadModule, decorators: [{
|
|
2557
1712
|
type: NgModule,
|
|
2558
1713
|
args: [{
|
|
2559
1714
|
imports: [CommonModule, ProgressBarModule, FormsModule, IconModule],
|
|
@@ -2567,15 +1722,7 @@ class UploadModule {
|
|
|
2567
1722
|
exports: [UploadComponent, UploadInputComponent, UploadQueueComponent, UploadZoneComponent, ValidationListComponent],
|
|
2568
1723
|
providers: [ValidationMessagesService, { provide: UPLOAD_VALIDATION_MESSAGES, useValue: {} }],
|
|
2569
1724
|
}]
|
|
2570
|
-
}]
|
|
2571
|
-
})();
|
|
2572
|
-
(function () {
|
|
2573
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(UploadModule, { declarations: [UploadComponent,
|
|
2574
|
-
UploadInputComponent,
|
|
2575
|
-
UploadQueueComponent,
|
|
2576
|
-
UploadZoneComponent,
|
|
2577
|
-
ValidationListComponent], imports: [CommonModule, ProgressBarModule, FormsModule, IconModule], exports: [UploadComponent, UploadInputComponent, UploadQueueComponent, UploadZoneComponent, ValidationListComponent] });
|
|
2578
|
-
})();
|
|
1725
|
+
}] });
|
|
2579
1726
|
|
|
2580
1727
|
/**
|
|
2581
1728
|
* Generated bundle index. Do not edit.
|