@wavemaker/app-ng-runtime 11.10.3-next.25128 → 11.10.3-rc.6079
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/components/basic/default/bundles/index.umd.js +68 -68
- package/components/basic/default/esm2022/anchor/anchor.component.mjs +18 -18
- package/components/basic/default/esm2022/icon/icon.component.mjs +13 -12
- package/components/basic/default/esm2022/iframe/iframe.component.mjs +10 -9
- package/components/basic/default/esm2022/spinner/spinner.component.mjs +21 -21
- package/components/basic/default/esm2022/video/video.component.mjs +15 -14
- package/components/basic/default/fesm2022/index.mjs +68 -68
- package/components/basic/default/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/bundles/index.umd.js +17 -16
- package/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +8 -7
- package/components/basic/progress/fesm2022/index.mjs +9 -8
- package/components/basic/progress/fesm2022/index.mjs.map +1 -1
- package/components/basic/rich-text-editor/bundles/index.umd.js +12 -11
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +9 -8
- package/components/basic/rich-text-editor/fesm2022/index.mjs +8 -7
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/bundles/index.umd.js +67 -63
- package/components/basic/search/esm2022/search.component.mjs +67 -63
- package/components/basic/search/esm2022/search.module.mjs +2 -2
- package/components/basic/search/fesm2022/index.mjs +67 -63
- package/components/basic/search/fesm2022/index.mjs.map +1 -1
- package/components/chart/bundles/index.umd.js +17 -17
- package/components/chart/esm2022/chart.component.mjs +18 -18
- package/components/chart/fesm2022/index.mjs +17 -17
- package/components/chart/fesm2022/index.mjs.map +1 -1
- package/components/containers/panel/bundles/index.umd.js +39 -39
- package/components/containers/panel/esm2022/panel.component.mjs +40 -40
- package/components/containers/panel/fesm2022/index.mjs +39 -39
- package/components/containers/panel/fesm2022/index.mjs.map +1 -1
- package/components/containers/tabs/bundles/index.umd.js +29 -29
- package/components/containers/tabs/esm2022/tabs.component.mjs +30 -30
- package/components/containers/tabs/fesm2022/index.mjs +29 -29
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/bundles/index.umd.js +49 -49
- package/components/containers/wizard/esm2022/wizard.component.mjs +50 -50
- package/components/containers/wizard/fesm2022/index.mjs +49 -49
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- package/components/data/card/bundles/index.umd.js +29 -29
- package/components/data/card/esm2022/card.component.mjs +30 -30
- package/components/data/card/fesm2022/index.mjs +29 -29
- package/components/data/card/fesm2022/index.mjs.map +1 -1
- package/components/data/form/bundles/index.umd.js +96 -91
- package/components/data/form/esm2022/form.component.mjs +97 -92
- package/components/data/form/fesm2022/index.mjs +96 -91
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/list/bundles/index.umd.js +173 -171
- package/components/data/list/esm2022/list.component.mjs +173 -171
- package/components/data/list/esm2022/list.module.mjs +2 -2
- package/components/data/list/fesm2022/index.mjs +173 -171
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/bundles/index.umd.js +32 -32
- package/components/data/pagination/esm2022/pagination.component.mjs +33 -33
- package/components/data/pagination/fesm2022/index.mjs +32 -32
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/table/bundles/index.umd.js +38 -39
- package/components/data/table/esm2022/table.component.mjs +39 -40
- package/components/data/table/fesm2022/index.mjs +38 -39
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/default/bundles/index.umd.js +95 -66
- package/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +96 -67
- package/components/dialogs/default/fesm2022/index.mjs +95 -66
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/design-dialog/bundles/index.umd.js +7 -7
- package/components/dialogs/design-dialog/esm2022/dialog.component.mjs +8 -8
- package/components/dialogs/design-dialog/fesm2022/index.mjs +7 -7
- package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/iframe-dialog/bundles/index.umd.js +25 -24
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +16 -15
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +15 -14
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/partial-dialog/bundles/index.umd.js +8 -8
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +9 -9
- package/components/dialogs/partial-dialog/fesm2022/index.mjs +8 -8
- package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- package/components/input/chips/bundles/index.umd.js +21 -21
- package/components/input/chips/esm2022/chips.component.mjs +22 -22
- package/components/input/chips/fesm2022/index.mjs +21 -21
- package/components/input/chips/fesm2022/index.mjs.map +1 -1
- package/components/input/default/bundles/index.umd.js +209 -201
- package/components/input/default/esm2022/button/button.component.mjs +18 -18
- package/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +69 -68
- package/components/input/default/esm2022/radioset/radioset.component.mjs +69 -68
- package/components/input/default/esm2022/select/select.component.mjs +27 -21
- package/components/input/default/esm2022/switch/switch.component.mjs +24 -24
- package/components/input/default/esm2022/textarea/textarea.component.mjs +8 -8
- package/components/input/default/fesm2022/index.mjs +209 -201
- package/components/input/default/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/bundles/index.umd.js +164 -171
- package/components/input/epoch/esm2022/date/date.component.mjs +15 -14
- package/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +59 -64
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +19 -18
- package/components/input/epoch/esm2022/picker/picker.component.mjs +25 -26
- package/components/input/epoch/esm2022/time/time.component.mjs +18 -17
- package/components/input/epoch/fesm2022/index.mjs +117 -124
- package/components/input/epoch/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/bundles/index.umd.js +114 -111
- package/components/input/file-upload/esm2022/file-upload.component.mjs +115 -112
- package/components/input/file-upload/fesm2022/index.mjs +114 -111
- package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- package/components/input/rating/bundles/index.umd.js +14 -14
- package/components/input/rating/esm2022/rating.component.mjs +15 -15
- package/components/input/rating/fesm2022/index.mjs +14 -14
- package/components/input/rating/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/bundles/index.umd.js +40 -39
- package/components/input/slider/esm2022/slider.component.mjs +11 -10
- package/components/input/slider/fesm2022/index.mjs +10 -9
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/navigation/breadcrumb/bundles/index.umd.js +15 -16
- package/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +16 -17
- package/components/navigation/breadcrumb/fesm2022/index.mjs +15 -16
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/bundles/index.umd.js +71 -69
- package/components/navigation/menu/esm2022/menu-dropdown/menu-dropdown.component.mjs +7 -7
- package/components/navigation/menu/esm2022/menu-dropdown-item/menu-dropdown-item.component.mjs +15 -15
- package/components/navigation/menu/esm2022/menu.component.mjs +26 -22
- package/components/navigation/menu/esm2022/menu.module.mjs +4 -4
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +24 -26
- package/components/navigation/menu/fesm2022/index.mjs +71 -69
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/navbar/bundles/index.umd.js +12 -12
- package/components/navigation/navbar/esm2022/navbar.component.mjs +13 -13
- package/components/navigation/navbar/fesm2022/index.mjs +12 -12
- package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
- package/mobile/components/basic/default/bundles/index.umd.js +111 -102
- package/mobile/components/basic/default/esm2022/file-browser/file-browser.component.mjs +40 -39
- package/mobile/components/basic/default/esm2022/network-info-toaster/network-info-toaster.component.mjs +44 -35
- package/mobile/components/basic/default/esm2022/process-manager/process-manager.component.mjs +28 -27
- package/mobile/components/basic/default/fesm2022/index.mjs +107 -98
- package/mobile/components/basic/default/fesm2022/index.mjs.map +1 -1
- package/mobile/components/containers/segmented-control/bundles/index.umd.js +16 -16
- package/mobile/components/containers/segmented-control/esm2022/segment-content/segment-content.component.mjs +9 -8
- package/mobile/components/containers/segmented-control/esm2022/segmented-control.component.mjs +10 -10
- package/mobile/components/containers/segmented-control/fesm2022/index.mjs +16 -16
- package/mobile/components/containers/segmented-control/fesm2022/index.mjs.map +1 -1
- package/mobile/components/data/media-list/bundles/index.umd.js +28 -28
- package/mobile/components/data/media-list/esm2022/media-list.component.mjs +29 -29
- package/mobile/components/data/media-list/fesm2022/index.mjs +28 -28
- package/mobile/components/data/media-list/fesm2022/index.mjs.map +1 -1
- package/mobile/components/page/mobile-navbar/bundles/index.umd.js +29 -29
- package/mobile/components/page/mobile-navbar/esm2022/mobile-navbar.component.mjs +30 -30
- package/mobile/components/page/mobile-navbar/fesm2022/index.mjs +29 -29
- package/mobile/components/page/mobile-navbar/fesm2022/index.mjs.map +1 -1
- package/mobile/components/page/tab-bar/bundles/index.umd.js +28 -28
- package/mobile/components/page/tab-bar/esm2022/tabbar.component.mjs +29 -29
- package/mobile/components/page/tab-bar/fesm2022/index.mjs +28 -28
- package/mobile/components/page/tab-bar/fesm2022/index.mjs.map +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +215 -219
- package/runtime/base/esm2022/components/app-component/app.component.mjs +41 -38
- package/runtime/base/esm2022/components/app-spinner.component.mjs +21 -25
- package/runtime/base/esm2022/components/custom-toaster.component.mjs +16 -18
- package/runtime/base/fesm2022/index.mjs +95 -99
- package/runtime/base/fesm2022/index.mjs.map +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, EventEmitter, ElementRef, Output, Input, ViewChild, Directive, Inject, Optional, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
3
4
|
import { getLocaleDayPeriods, FormStyle, TranslationWidth, CommonModule } from '@angular/common';
|
|
4
|
-
import * as
|
|
5
|
+
import * as i5 from '@angular/forms';
|
|
5
6
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule } from '@angular/forms';
|
|
6
|
-
import * as
|
|
7
|
+
import * as i3 from 'ngx-bootstrap/datepicker';
|
|
7
8
|
import { BsDatepickerConfig, BsDatepickerDirective, BsDatepickerModule } from 'ngx-bootstrap/datepicker';
|
|
8
|
-
import * as
|
|
9
|
+
import * as i4$1 from 'ngx-bootstrap/dropdown';
|
|
9
10
|
import { BsDropdownDirective, BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
10
|
-
import * as
|
|
11
|
+
import * as i6 from 'ngx-bootstrap/timepicker';
|
|
11
12
|
import { TimepickerConfig, TimepickerComponent, TimepickerModule } from 'ngx-bootstrap/timepicker';
|
|
12
13
|
import { ToDatePipe, getContainerTargetClass, PROP_BOOLEAN, PROP_STRING, PROP_ANY, PROP_NUMBER, register, registerFormWidget, styler, setFocusTrap, provideAs, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
|
|
13
14
|
import * as i1$1 from '@wm/core';
|
|
@@ -16,12 +17,12 @@ import { BaseFormCustomComponent } from '@wm/components/input';
|
|
|
16
17
|
import * as i1 from 'ngx-bootstrap/modal';
|
|
17
18
|
import { filter, isUndefined, isNaN as isNaN$1, parseInt as parseInt$1, isString, split, get, forEach, includes, debounce } from 'lodash-es';
|
|
18
19
|
import IMask from 'imask';
|
|
19
|
-
import * as
|
|
20
|
+
import * as i4 from 'angular-imask';
|
|
20
21
|
import { IMaskDirective, IMaskModule } from 'angular-imask';
|
|
21
22
|
|
|
22
23
|
const _c0$4 = ["*"];
|
|
23
|
-
function
|
|
24
|
-
i0.ɵɵelementStart(0, "div",
|
|
24
|
+
function PickerComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
25
26
|
i0.ɵɵtext(1);
|
|
26
27
|
i0.ɵɵelementEnd();
|
|
27
28
|
} if (rf & 2) {
|
|
@@ -92,26 +93,26 @@ class PickerComponent {
|
|
|
92
93
|
this.pickerAnimator = new PickerAnimator(this);
|
|
93
94
|
}
|
|
94
95
|
static { this.ɵfac = function PickerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PickerComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
95
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PickerComponent, selectors: [["wm-picker"]], inputs: { selectedValue: "selectedValue", options: "options" }, outputs: { change: "change" }, decls:
|
|
96
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PickerComponent, selectors: [["wm-picker"]], inputs: { selectedValue: "selectedValue", options: "options" }, outputs: { change: "change" }, decls: 12, vars: 1, consts: [[1, "app-picker"], [1, "app-picker-option-container"], [1, "app-picker-option", "app-picker-empty-option"], ["class", "app-picker-option", 4, "ngFor", "ngForOf"], [1, "app-picker-ruler"], [1, "app-picker-option"]], template: function PickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
96
97
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2);
|
|
97
98
|
i0.ɵɵtext(3, "E");
|
|
98
99
|
i0.ɵɵelementEnd();
|
|
99
100
|
i0.ɵɵelementStart(4, "div", 2);
|
|
100
101
|
i0.ɵɵtext(5, "E");
|
|
101
102
|
i0.ɵɵelementEnd();
|
|
102
|
-
i0.ɵɵ
|
|
103
|
-
i0.ɵɵelementStart(
|
|
104
|
-
i0.ɵɵtext(
|
|
103
|
+
i0.ɵɵtemplate(6, PickerComponent_div_6_Template, 2, 1, "div", 3);
|
|
104
|
+
i0.ɵɵelementStart(7, "div", 2);
|
|
105
|
+
i0.ɵɵtext(8, "E");
|
|
105
106
|
i0.ɵɵelementEnd();
|
|
106
|
-
i0.ɵɵelementStart(
|
|
107
|
-
i0.ɵɵtext(
|
|
107
|
+
i0.ɵɵelementStart(9, "div", 2);
|
|
108
|
+
i0.ɵɵtext(10, "E");
|
|
108
109
|
i0.ɵɵelementEnd()();
|
|
109
|
-
i0.ɵɵelement(
|
|
110
|
+
i0.ɵɵelement(11, "div", 4);
|
|
110
111
|
i0.ɵɵelementEnd();
|
|
111
112
|
} if (rf & 2) {
|
|
112
113
|
i0.ɵɵadvance(6);
|
|
113
|
-
i0.ɵɵ
|
|
114
|
-
} }, encapsulation: 2 }); }
|
|
114
|
+
i0.ɵɵproperty("ngForOf", ctx.options);
|
|
115
|
+
} }, dependencies: [i2.NgForOf], encapsulation: 2 }); }
|
|
115
116
|
}
|
|
116
117
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PickerComponent, [{
|
|
117
118
|
type: Component,
|
|
@@ -119,20 +120,18 @@ class PickerComponent {
|
|
|
119
120
|
selector: 'wm-picker',
|
|
120
121
|
template: `
|
|
121
122
|
<div class="app-picker">
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
<div class="app-picker-
|
|
132
|
-
</div>
|
|
133
|
-
<div class="app-picker-ruler"></div>
|
|
123
|
+
<div class="app-picker-option-container">
|
|
124
|
+
<div class="app-picker-option app-picker-empty-option">E</div>
|
|
125
|
+
<div class="app-picker-option app-picker-empty-option">E</div>
|
|
126
|
+
<div *ngFor="let option of options; index as i;" class="app-picker-option">
|
|
127
|
+
{{option.label}}
|
|
128
|
+
</div>
|
|
129
|
+
<div class="app-picker-option app-picker-empty-option">E</div>
|
|
130
|
+
<div class="app-picker-option app-picker-empty-option">E</div>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="app-picker-ruler"></div>
|
|
134
133
|
</div>
|
|
135
|
-
|
|
134
|
+
`
|
|
136
135
|
}]
|
|
137
136
|
}], () => [{ type: i0.Injector }], { change: [{
|
|
138
137
|
type: Output
|
|
@@ -141,7 +140,7 @@ class PickerComponent {
|
|
|
141
140
|
}], options: [{
|
|
142
141
|
type: Input
|
|
143
142
|
}] }); })();
|
|
144
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PickerComponent, { className: "PickerComponent", filePath: "picker/picker.component.ts", lineNumber:
|
|
143
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PickerComponent, { className: "PickerComponent", filePath: "picker/picker.component.ts", lineNumber: 34 }); })();
|
|
145
144
|
class PickerAnimator {
|
|
146
145
|
constructor(picker) {
|
|
147
146
|
this.picker = picker;
|
|
@@ -198,28 +197,28 @@ class PickerAnimator {
|
|
|
198
197
|
}
|
|
199
198
|
|
|
200
199
|
const _c0$3 = ["datetimepickerTemplate"];
|
|
201
|
-
function
|
|
200
|
+
function DateTimePickerComponent_ng_template_0_bs_datepicker_inline_3_Template(rf, ctx) { if (rf & 1) {
|
|
202
201
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
203
202
|
i0.ɵɵelementStart(0, "bs-datepicker-inline", 11);
|
|
204
|
-
i0.ɵɵlistener("bsValueChange", function
|
|
203
|
+
i0.ɵɵlistener("bsValueChange", function DateTimePickerComponent_ng_template_0_bs_datepicker_inline_3_Template_bs_datepicker_inline_bsValueChange_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onDateUpdate($event)); });
|
|
205
204
|
i0.ɵɵelementEnd();
|
|
206
205
|
} if (rf & 2) {
|
|
207
206
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
208
207
|
i0.ɵɵproperty("bsConfig", ctx_r2.bsDatepickerConfig)("datesDisabled", ctx_r2.excludedDatesToDisable)("bsValue", ctx_r2.changedValue);
|
|
209
208
|
} }
|
|
210
|
-
function
|
|
209
|
+
function DateTimePickerComponent_ng_template_0_wm_timepicker_4_Template(rf, ctx) { if (rf & 1) {
|
|
211
210
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
212
211
|
i0.ɵɵelementStart(0, "wm-timepicker", 12);
|
|
213
|
-
i0.ɵɵlistener("change", function
|
|
212
|
+
i0.ɵɵlistener("change", function DateTimePickerComponent_ng_template_0_wm_timepicker_4_Template_wm_timepicker_change_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onTimeUpdate($event)); });
|
|
214
213
|
i0.ɵɵelementEnd();
|
|
215
214
|
} if (rf & 2) {
|
|
216
215
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
217
216
|
i0.ɵɵproperty("value", ctx_r2.changedValue)("min", ctx_r2.minTime)("max", ctx_r2.maxTime);
|
|
218
217
|
} }
|
|
219
|
-
function
|
|
218
|
+
function DateTimePickerComponent_ng_template_0_button_8_Template(rf, ctx) { if (rf & 1) {
|
|
220
219
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
221
220
|
i0.ɵɵelementStart(0, "button", 13);
|
|
222
|
-
i0.ɵɵlistener("click", function
|
|
221
|
+
i0.ɵɵlistener("click", function DateTimePickerComponent_ng_template_0_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.setToday()); });
|
|
223
222
|
i0.ɵɵtext(1);
|
|
224
223
|
i0.ɵɵelementEnd();
|
|
225
224
|
} if (rf & 2) {
|
|
@@ -227,10 +226,10 @@ function DateTimePickerComponent_ng_template_0_Conditional_8_Template(rf, ctx) {
|
|
|
227
226
|
i0.ɵɵadvance();
|
|
228
227
|
i0.ɵɵtextInterpolate(ctx_r2.appLocale.LABEL_TODAY_DATE || "Today");
|
|
229
228
|
} }
|
|
230
|
-
function
|
|
229
|
+
function DateTimePickerComponent_ng_template_0_button_9_Template(rf, ctx) { if (rf & 1) {
|
|
231
230
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
232
231
|
i0.ɵɵelementStart(0, "button", 14);
|
|
233
|
-
i0.ɵɵlistener("click", function
|
|
232
|
+
i0.ɵɵlistener("click", function DateTimePickerComponent_ng_template_0_button_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onOkClick()); });
|
|
234
233
|
i0.ɵɵtext(1);
|
|
235
234
|
i0.ɵɵelementEnd();
|
|
236
235
|
} if (rf & 2) {
|
|
@@ -242,12 +241,12 @@ function DateTimePickerComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
242
241
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
243
242
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
244
243
|
i0.ɵɵelement(2, "div", 3);
|
|
245
|
-
i0.ɵɵtemplate(3,
|
|
244
|
+
i0.ɵɵtemplate(3, DateTimePickerComponent_ng_template_0_bs_datepicker_inline_3_Template, 1, 3, "bs-datepicker-inline", 4)(4, DateTimePickerComponent_ng_template_0_wm_timepicker_4_Template, 1, 3, "wm-timepicker", 5);
|
|
246
245
|
i0.ɵɵelementStart(5, "span", 6);
|
|
247
246
|
i0.ɵɵtext(6);
|
|
248
247
|
i0.ɵɵelementEnd()();
|
|
249
248
|
i0.ɵɵelementStart(7, "div", 7);
|
|
250
|
-
i0.ɵɵtemplate(8,
|
|
249
|
+
i0.ɵɵtemplate(8, DateTimePickerComponent_ng_template_0_button_8_Template, 2, 1, "button", 8)(9, DateTimePickerComponent_ng_template_0_button_9_Template, 2, 1, "button", 9);
|
|
251
250
|
i0.ɵɵelementStart(10, "button", 10);
|
|
252
251
|
i0.ɵɵlistener("click", function DateTimePickerComponent_ng_template_0_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.clear()); });
|
|
253
252
|
i0.ɵɵtext(11);
|
|
@@ -255,15 +254,15 @@ function DateTimePickerComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
255
254
|
} if (rf & 2) {
|
|
256
255
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
257
256
|
i0.ɵɵadvance(3);
|
|
258
|
-
i0.ɵɵ
|
|
257
|
+
i0.ɵɵproperty("ngIf", ctx_r2.mode === "DATE_TIME" || ctx_r2.mode === "DATE");
|
|
259
258
|
i0.ɵɵadvance();
|
|
260
|
-
i0.ɵɵ
|
|
259
|
+
i0.ɵɵproperty("ngIf", ctx_r2.mode === "DATE_TIME" || ctx_r2.mode === "TIME");
|
|
261
260
|
i0.ɵɵadvance(2);
|
|
262
261
|
i0.ɵɵtextInterpolate1(" ", ctx_r2.getDateLabel(), " ");
|
|
263
262
|
i0.ɵɵadvance(2);
|
|
264
|
-
i0.ɵɵ
|
|
263
|
+
i0.ɵɵproperty("ngIf", ctx_r2.mode === "DATE_TIME" || ctx_r2.mode === "DATE");
|
|
265
264
|
i0.ɵɵadvance();
|
|
266
|
-
i0.ɵɵ
|
|
265
|
+
i0.ɵɵproperty("ngIf", ctx_r2.mode === "DATE_TIME" || ctx_r2.mode === "TIME");
|
|
267
266
|
i0.ɵɵadvance(2);
|
|
268
267
|
i0.ɵɵtextInterpolate(ctx_r2.appLocale.LABEL_CLEAR_DATE || "Clear");
|
|
269
268
|
} }
|
|
@@ -440,9 +439,9 @@ class DateTimePickerComponent {
|
|
|
440
439
|
} if (rf & 2) {
|
|
441
440
|
let _t;
|
|
442
441
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.datetimepickerTemplate = _t.first);
|
|
443
|
-
} }, inputs: { mode: "mode", placement: "placement", _bsDatepickerConfig: [0, "config", "_bsDatepickerConfig"], minTime: "minTime", maxTime: "maxTime", _displayFormat: "_displayFormat", excludedDatesToDisable: "excludedDatesToDisable", value: "value", bsDatepickerConfig: [0, "config", "bsDatepickerConfig"], excludedDaysToDisable: "excludedDaysToDisable", displayFormat: "displayFormat" }, outputs: { change: "change" }, decls: 2, vars: 0, consts: [["datetimepickerTemplate", ""], [1, "app-datetime-picker"], [1, "modal-body"], [1, "mobile-datetime-picker-options"], ["bsDatepicker", "", 3, "bsConfig", "datesDisabled", "bsValue"], [3, "value", "min", "max"], [1, "text-primary", "date-picker-value"], [1, "modal-footer"], [
|
|
442
|
+
} }, inputs: { mode: "mode", placement: "placement", _bsDatepickerConfig: [0, "config", "_bsDatepickerConfig"], minTime: "minTime", maxTime: "maxTime", _displayFormat: "_displayFormat", excludedDatesToDisable: "excludedDatesToDisable", value: "value", bsDatepickerConfig: [0, "config", "bsDatepickerConfig"], excludedDaysToDisable: "excludedDaysToDisable", displayFormat: "displayFormat" }, outputs: { change: "change" }, decls: 2, vars: 0, consts: [["datetimepickerTemplate", ""], [1, "app-datetime-picker"], [1, "modal-body"], [1, "mobile-datetime-picker-options"], ["bsDatepicker", "", 3, "bsConfig", "datesDisabled", "bsValue", "bsValueChange", 4, "ngIf"], [3, "value", "min", "max", "change", 4, "ngIf"], [1, "text-primary", "date-picker-value"], [1, "modal-footer"], ["class", "btn btn-secondary today-btn", 3, "click", 4, "ngIf"], ["class", "btn btn-primary pull-right ok-btn", 3, "click", 4, "ngIf"], [1, "btn", "btn-secondary", "pull-right", "clear-btn", 3, "click"], ["bsDatepicker", "", 3, "bsValueChange", "bsConfig", "datesDisabled", "bsValue"], [3, "change", "value", "min", "max"], [1, "btn", "btn-secondary", "today-btn", 3, "click"], [1, "btn", "btn-primary", "pull-right", "ok-btn", 3, "click"]], template: function DateTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
444
443
|
i0.ɵɵtemplate(0, DateTimePickerComponent_ng_template_0_Template, 12, 6, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
445
|
-
} }, dependencies: () => [i2.BsDatepickerDirective,
|
|
444
|
+
} }, dependencies: () => [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInlineDirective, TimePickerComponent], encapsulation: 2 }); }
|
|
446
445
|
}
|
|
447
446
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateTimePickerComponent, [{
|
|
448
447
|
type: Component,
|
|
@@ -450,49 +449,43 @@ class DateTimePickerComponent {
|
|
|
450
449
|
selector: 'wm-datetimepicker',
|
|
451
450
|
template: `
|
|
452
451
|
<ng-template #datetimepickerTemplate>
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
(click)="onOkClick()">{{appLocale.LABEL_OK || "Ok" }}</button>
|
|
490
|
-
}
|
|
491
|
-
<button
|
|
492
|
-
class="btn btn-secondary pull-right clear-btn"
|
|
493
|
-
(click)="clear()">{{appLocale.LABEL_CLEAR_DATE || "Clear" }}</button>
|
|
452
|
+
<div class="app-datetime-picker">
|
|
453
|
+
<div class="modal-body">
|
|
454
|
+
<div class="mobile-datetime-picker-options">
|
|
455
|
+
|
|
456
|
+
</div>
|
|
457
|
+
<bs-datepicker-inline
|
|
458
|
+
[bsConfig]="bsDatepickerConfig"
|
|
459
|
+
[datesDisabled]="excludedDatesToDisable"
|
|
460
|
+
bsDatepicker
|
|
461
|
+
[bsValue]="changedValue"
|
|
462
|
+
(bsValueChange)="onDateUpdate($event)"
|
|
463
|
+
*ngIf="mode === 'DATE_TIME' || mode === 'DATE'">
|
|
464
|
+
</bs-datepicker-inline>
|
|
465
|
+
<wm-timepicker
|
|
466
|
+
[value]="changedValue"
|
|
467
|
+
[min]="minTime"
|
|
468
|
+
[max]="maxTime"
|
|
469
|
+
(change)="onTimeUpdate($event)"
|
|
470
|
+
*ngIf="mode === 'DATE_TIME' || mode === 'TIME'"></wm-timepicker>
|
|
471
|
+
<span class="text-primary date-picker-value">
|
|
472
|
+
{{getDateLabel()}}
|
|
473
|
+
</span>
|
|
474
|
+
</div>
|
|
475
|
+
<div class="modal-footer">
|
|
476
|
+
<button
|
|
477
|
+
*ngIf="mode === 'DATE_TIME' || mode === 'DATE'"
|
|
478
|
+
class="btn btn-secondary today-btn"
|
|
479
|
+
(click)="setToday()">{{appLocale.LABEL_TODAY_DATE || "Today" }}</button>
|
|
480
|
+
<button
|
|
481
|
+
class="btn btn-primary pull-right ok-btn"
|
|
482
|
+
*ngIf="mode === 'DATE_TIME' || mode === 'TIME'"
|
|
483
|
+
(click)="onOkClick()">{{appLocale.LABEL_OK || "Ok" }}</button>
|
|
484
|
+
<button
|
|
485
|
+
class="btn btn-secondary pull-right clear-btn"
|
|
486
|
+
(click)="clear()">{{appLocale.LABEL_CLEAR_DATE || "Clear" }}</button>
|
|
487
|
+
</div>
|
|
494
488
|
</div>
|
|
495
|
-
</div>
|
|
496
489
|
</ng-template>
|
|
497
490
|
`
|
|
498
491
|
}]
|
|
@@ -526,7 +519,7 @@ class DateTimePickerComponent {
|
|
|
526
519
|
}], displayFormat: [{
|
|
527
520
|
type: Input
|
|
528
521
|
}] }); })();
|
|
529
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateTimePickerComponent, { className: "DateTimePickerComponent", filePath: "date-time/date-time-picker.component.ts", lineNumber:
|
|
522
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateTimePickerComponent, { className: "DateTimePickerComponent", filePath: "date-time/date-time-picker.component.ts", lineNumber: 54 }); })();
|
|
530
523
|
class TimePickerComponent {
|
|
531
524
|
constructor(inj) {
|
|
532
525
|
this.inj = inj;
|
|
@@ -650,7 +643,7 @@ class TimePickerComponent {
|
|
|
650
643
|
}], change: [{
|
|
651
644
|
type: Output
|
|
652
645
|
}] }); })();
|
|
653
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TimePickerComponent, { className: "TimePickerComponent", filePath: "date-time/date-time-picker.component.ts", lineNumber:
|
|
646
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TimePickerComponent, { className: "TimePickerComponent", filePath: "date-time/date-time-picker.component.ts", lineNumber: 305 }); })();
|
|
654
647
|
|
|
655
648
|
const CURRENT_DATE$2 = 'CURRENT_DATE';
|
|
656
649
|
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
@@ -1811,13 +1804,13 @@ function validateTheMaskedDate(format, locale) {
|
|
|
1811
1804
|
|
|
1812
1805
|
const _c0$2 = ["dateInput"];
|
|
1813
1806
|
const _c1$2 = ["wmDate", ""];
|
|
1814
|
-
function
|
|
1807
|
+
function DateComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
1815
1808
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
1816
|
-
i0.ɵɵelementStart(0, "wm-datetimepicker",
|
|
1817
|
-
i0.ɵɵlistener("change", function
|
|
1809
|
+
i0.ɵɵelementStart(0, "wm-datetimepicker", 9);
|
|
1810
|
+
i0.ɵɵlistener("change", function DateComponent_ng_template_8_Template_wm_datetimepicker_change_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onDateChange($event)); });
|
|
1818
1811
|
i0.ɵɵelementEnd();
|
|
1819
|
-
i0.ɵɵelementStart(1, "div",
|
|
1820
|
-
i0.ɵɵlistener("click", function
|
|
1812
|
+
i0.ɵɵelementStart(1, "div", 10);
|
|
1813
|
+
i0.ɵɵlistener("click", function DateComponent_ng_template_8_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(!(ctx_r2.disabled || ctx_r2.readonly) && ctx_r2.showDatePickerModal(ctx_r2.bsDataValue)); })("focus", function DateComponent_ng_template_8_Template_div_focus_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); ctx_r2.onDateTimeInputFocus(true); return i0.ɵɵresetView(ctx_r2.invokeOnFocus($event)); })("blur", function DateComponent_ng_template_8_Template_div_blur_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); ctx_r2.onDateTimeInputBlur(); return i0.ɵɵresetView(ctx_r2.invokeOnTouched($event)); });
|
|
1821
1814
|
i0.ɵɵelementEnd();
|
|
1822
1815
|
} if (rf & 2) {
|
|
1823
1816
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -2109,7 +2102,7 @@ class DateComponent extends BaseDateTimeComponent {
|
|
|
2109
2102
|
provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
|
|
2110
2103
|
provideAs(DateComponent, NG_VALIDATORS, true),
|
|
2111
2104
|
provideAsWidgetRef(DateComponent)
|
|
2112
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$2, decls: 9, vars: 28, consts: [["dateInput", ""], ["datepicker", "bsDatepicker"], ["focus-target", "", "type", "text", 1, "form-control", "app-textbox", "app-dateinput", "display-input", 3, "click", "focus", "blur", "change", "keydown", "name", "imask", "unmask", "tabindex", "value", "disabled", "autofocus", "required", "readOnly"], [1, "input-group-btn"], ["type", "button", "aria-haspopup", "true", 1, "btn", "btn-default", "btn-time", 3, "click", "tabindex", "disabled"], ["aria-hidden", "true", 1, "app-icon", "wm-sl-l", "sl-calendar"], [2, "width", "0", "display", "inline-block"], ["aria-label", "datepicker dropdownmenu", "aria-controls", "date", "bsDatepicker", "", "placement", "bottom right", 1, "model-holder", 3, "onShown", "onHidden", "bsValueChange", "tabindex", "container", "bsConfig", "isOpen", "daysDisabled", "datesDisabled", "isDisabled", "bsValue"], ["dateTimePicker", "", "mode", "DATE", 3, "change", "config", "placement", "excludedDaysToDisable", "excludedDatesToDisable", "displayFormat", "value"], ["role", "button", 1, "mobile-input", "mobile-datepicker-container", 3, "click", "focus", "blur", "tabindex"]], template: function DateComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2105
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$2, decls: 9, vars: 28, consts: [["dateInput", ""], ["datepicker", "bsDatepicker"], ["focus-target", "", "type", "text", 1, "form-control", "app-textbox", "app-dateinput", "display-input", 3, "click", "focus", "blur", "change", "keydown", "name", "imask", "unmask", "tabindex", "value", "disabled", "autofocus", "required", "readOnly"], [1, "input-group-btn"], ["type", "button", "aria-haspopup", "true", 1, "btn", "btn-default", "btn-time", 3, "click", "tabindex", "disabled"], ["aria-hidden", "true", 1, "app-icon", "wm-sl-l", "sl-calendar"], [2, "width", "0", "display", "inline-block"], ["aria-label", "datepicker dropdownmenu", "aria-controls", "date", "bsDatepicker", "", "placement", "bottom right", 1, "model-holder", 3, "onShown", "onHidden", "bsValueChange", "tabindex", "container", "bsConfig", "isOpen", "daysDisabled", "datesDisabled", "isDisabled", "bsValue"], [3, "ngIf"], ["dateTimePicker", "", "mode", "DATE", 3, "change", "config", "placement", "excludedDaysToDisable", "excludedDatesToDisable", "displayFormat", "value"], ["role", "button", 1, "mobile-input", "mobile-datepicker-container", 3, "click", "focus", "blur", "tabindex"]], template: function DateComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2113
2106
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2114
2107
|
i0.ɵɵelementStart(0, "input", 2, 0);
|
|
2115
2108
|
i0.ɵɵlistener("click", function DateComponent_Template_input_click_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.toggleDpDropdown($event, true)); })("focus", function DateComponent_Template_input_focus_0_listener($event) { i0.ɵɵrestoreView(_r1); ctx.onDateTimeInputFocus(); ctx.invokeOnFocus($event); return i0.ɵɵresetView(ctx.updateIMask()); })("blur", function DateComponent_Template_input_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputBlur($event)); })("change", function DateComponent_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onDisplayDateChange($event)); })("keydown", function DateComponent_Template_input_keydown_0_listener($event) { i0.ɵɵrestoreView(_r1); ctx._triggeredByUser = true; return i0.ɵɵresetView(ctx.onDisplayKeydown($event)); });
|
|
@@ -2121,7 +2114,7 @@ class DateComponent extends BaseDateTimeComponent {
|
|
|
2121
2114
|
i0.ɵɵelementStart(5, "div", 6)(6, "input", 7, 1);
|
|
2122
2115
|
i0.ɵɵlistener("onShown", function DateComponent_Template_input_onShown_6_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onDatePickerOpen()); })("onHidden", function DateComponent_Template_input_onHidden_6_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.hideDatepickerDropdown()); })("bsValueChange", function DateComponent_Template_input_bsValueChange_6_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onDateChange($event)); });
|
|
2123
2116
|
i0.ɵɵelementEnd()();
|
|
2124
|
-
i0.ɵɵtemplate(8,
|
|
2117
|
+
i0.ɵɵtemplate(8, DateComponent_ng_template_8_Template, 2, 8, "ng-template", 8);
|
|
2125
2118
|
} if (rf & 2) {
|
|
2126
2119
|
i0.ɵɵproperty("name", ctx.name)("imask", ctx.mask)("unmask", true)("tabindex", ctx.loadNativeDateInput ? "-1" : ctx.tabindex)("value", ctx.displayValue)("disabled", ctx.disabled || ctx.readonly)("autofocus", ctx.autofocus)("required", ctx.required)("readOnly", ctx.isReadOnly);
|
|
2127
2120
|
i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.arialabel);
|
|
@@ -2132,8 +2125,8 @@ class DateComponent extends BaseDateTimeComponent {
|
|
|
2132
2125
|
i0.ɵɵproperty("tabindex", -1)("container", ctx.containerTarget || ".wm-app")("bsConfig", ctx._dateOptions)("isOpen", ctx.isOpen)("daysDisabled", ctx.excludedDaysToDisable)("datesDisabled", ctx.excludedDatesToDisable)("isDisabled", ctx.disabled || ctx.readonly)("bsValue", ctx.bsDataValue);
|
|
2133
2126
|
i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
|
|
2134
2127
|
i0.ɵɵadvance(2);
|
|
2135
|
-
i0.ɵɵ
|
|
2136
|
-
} }, dependencies: [i2.BsDatepickerDirective,
|
|
2128
|
+
i0.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2129
|
+
} }, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, i4.IMaskDirective, DateTimePickerComponent], encapsulation: 2 }); }
|
|
2137
2130
|
}
|
|
2138
2131
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateComponent, [{
|
|
2139
2132
|
type: Component,
|
|
@@ -2141,7 +2134,7 @@ class DateComponent extends BaseDateTimeComponent {
|
|
|
2141
2134
|
provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
|
|
2142
2135
|
provideAs(DateComponent, NG_VALIDATORS, true),
|
|
2143
2136
|
provideAsWidgetRef(DateComponent)
|
|
2144
|
-
], template: "<input class=\"form-control app-textbox app-dateinput display-input\"\n
|
|
2137
|
+
], template: " <input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n [name]=\"name\"\n #dateInput\n [imask]=\"mask\"\n [unmask]=\"true\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [value]=\"displayValue\"\n (click)=\"toggleDpDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event); updateIMask()\"\n (blur)=\"onInputBlur($event)\"\n [disabled]=\"disabled || readonly\"\n [autofocus]=\"autofocus\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"arialabel\"\n (change)=\"onDisplayDateChange($event)\"\n (keydown)=\"this._triggeredByUser = true; onDisplayKeydown($event);\">\n\n <span class=\"input-group-btn\">\n <button type=\"button\"\n class=\"btn btn-default btn-time\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [disabled]=\"disabled || readonly\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : 'Choose date by pressing enter'\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"isOpen\"\n (click)=\"toggleDpDropdown($event, false)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-calendar\"></i>\n </button>\n </span>\n <div style=\"width: 0;display: inline-block;\">\n <input class=\"model-holder\"\n aria-label=\"datepicker dropdownmenu\"\n aria-controls=\"date\"\n [tabindex]=\"-1\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [container]=\"containerTarget || '.wm-app'\"\n [bsConfig]=\"_dateOptions\"\n [isOpen]=\"isOpen\"\n #datepicker=\"bsDatepicker\"\n bsDatepicker\n [daysDisabled]=\"excludedDaysToDisable\"\n [datesDisabled]=\"excludedDatesToDisable\"\n placement=\"bottom right\"\n [isDisabled]=\"disabled || readonly\"\n [bsValue]=\"bsDataValue\"\n (onShown)=\"onDatePickerOpen()\"\n (onHidden)=\"hideDatepickerDropdown()\"\n (bsValueChange)=\"onDateChange($event)\">\n</div>\n\n<ng-template [ngIf]=\"loadNativeDateInput\">\n <wm-datetimepicker\n dateTimePicker\n mode=\"DATE\"\n [config]=\"_dateOptions\"\n [placement]=\"modal\"\n [excludedDaysToDisable]=\"excludedDaysToDisable\"\n [excludedDatesToDisable]=\"excludedDatesToDisable\"\n [displayFormat]=\"dateInputFormat\"\n [value]=\"bsDataValue\"\n (change)=\"onDateChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n [tabindex]=\"tabindex || 0\"\n (click)=\"!(disabled || readonly) && showDatePickerModal(bsDataValue)\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event);\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : arialabel || 'Choose Date'\"\n role=\"button\">\n </div>\n</ng-template>\n" }]
|
|
2145
2138
|
}], () => [{ type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: i1$1.AppDefaults }, { type: undefined, decorators: [{
|
|
2146
2139
|
type: Inject,
|
|
2147
2140
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2204,9 +2197,9 @@ const _c0$1 = ["wmDateTime", ""];
|
|
|
2204
2197
|
const _c1$1 = () => ({ standalone: true });
|
|
2205
2198
|
function DatetimeComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
2206
2199
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
2207
|
-
i0.ɵɵelementStart(0, "div",
|
|
2200
|
+
i0.ɵɵelementStart(0, "div", 12);
|
|
2208
2201
|
i0.ɵɵlistener("click", function DatetimeComponent_div_10_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.preventTpClose($event)); });
|
|
2209
|
-
i0.ɵɵelementStart(1, "timepicker",
|
|
2202
|
+
i0.ɵɵelementStart(1, "timepicker", 13);
|
|
2210
2203
|
i0.ɵɵtwoWayListener("ngModelChange", function DatetimeComponent_div_10_Template_timepicker_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.bsTimeValue, $event) || (ctx_r2.bsTimeValue = $event); return i0.ɵɵresetView($event); });
|
|
2211
2204
|
i0.ɵɵlistener("isValid", function DatetimeComponent_div_10_Template_timepicker_isValid_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.isValid($event)); })("ngModelChange", function DatetimeComponent_div_10_Template_timepicker_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onModelUpdate($event, "time")); });
|
|
2212
2205
|
i0.ɵɵelementEnd()();
|
|
@@ -2217,13 +2210,13 @@ function DatetimeComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
2217
2210
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.bsTimeValue);
|
|
2218
2211
|
i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(12, _c1$1))("min", ctx_r2.minTime)("max", ctx_r2.maxTime)("hourStep", ctx_r2.hourstep)("minuteStep", ctx_r2.minutestep)("secondsStep", ctx_r2.secondsstep)("mousewheel", true)("arrowkeys", true)("showSeconds", ctx_r2.showseconds);
|
|
2219
2212
|
} }
|
|
2220
|
-
function
|
|
2213
|
+
function DatetimeComponent_ng_template_11_Template(rf, ctx) { if (rf & 1) {
|
|
2221
2214
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
2222
|
-
i0.ɵɵelementStart(0, "wm-datetimepicker",
|
|
2223
|
-
i0.ɵɵlistener("change", function
|
|
2215
|
+
i0.ɵɵelementStart(0, "wm-datetimepicker", 14);
|
|
2216
|
+
i0.ɵɵlistener("change", function DatetimeComponent_ng_template_11_Template_wm_datetimepicker_change_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onModelUpdate($event, "date")); });
|
|
2224
2217
|
i0.ɵɵelementEnd();
|
|
2225
|
-
i0.ɵɵelementStart(1, "div",
|
|
2226
|
-
i0.ɵɵlistener("click", function
|
|
2218
|
+
i0.ɵɵelementStart(1, "div", 15);
|
|
2219
|
+
i0.ɵɵlistener("click", function DatetimeComponent_ng_template_11_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(!(ctx_r2.disabled || ctx_r2.readonly) && ctx_r2.showDatePickerModal(ctx_r2.bsDateValue)); })("focus", function DatetimeComponent_ng_template_11_Template_div_focus_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); ctx_r2.onDateTimeInputFocus(true); return i0.ɵɵresetView(ctx_r2.invokeOnFocus($event)); })("blur", function DatetimeComponent_ng_template_11_Template_div_blur_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); ctx_r2.onDateTimeInputBlur(); return i0.ɵɵresetView(ctx_r2.invokeOnTouched($event)); });
|
|
2227
2220
|
i0.ɵɵelementEnd();
|
|
2228
2221
|
} if (rf & 2) {
|
|
2229
2222
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -2636,7 +2629,7 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2636
2629
|
provideAs(DatetimeComponent, NG_VALIDATORS, true),
|
|
2637
2630
|
provideAsWidgetRef(DatetimeComponent),
|
|
2638
2631
|
{ provide: TimepickerConfig, deps: [AbstractI18nService], useFactory: getTimepickerConfig }
|
|
2639
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$1, decls: 12, vars: 31, consts: [["datepicker", "bsDatepicker"], ["dropdown", "", "autoClose", "false", 2, "display", "inherit", 3, "onShown", "isOpen", "container"], ["focus-target", "", "type", "text", 1, "form-control", "app-textbox", "display-input", 3, "click", "focus", "blur", "change", "keydown", "name", "tabindex", "value", "autofocus", "disabled", "required", "readOnly"], [1, "input-group-btn"], ["type", "button", "aria-haspopup", "true", 1, "btn", "btn-default", "btn-date", 3, "click", "tabindex", "disabled"], ["aria-hidden", "true", 1, "app-icon", "wm-sl-l", "sl-calendar"], ["type", "button", "aria-label", "Select time", "aria-haspopup", "true", "aria-expanded", "false", 1, "btn", "btn-default", "btn-time", 3, "click", "tabindex", "disabled"], ["aria-hidden", "true", 1, "app-icon", "wm-sl-l", "sl-time"], [2, "width", "0", "display", "inline-block"], ["aria-label", "datepicker dropdownmenu", "aria-controls", "date", "focus-target", "", "placement", "bottom right", "bsDatepicker", "", 1, "model-holder", 3, "onShown", "onHidden", "bsValueChange", "tabindex", "container", "bsConfig", "isOpen", "daysDisabled", "datesDisabled", "isDisabled", "bsValue"], ["class", "dropdown-menu", "aria-label", "timepicker dropdown", "aria-controls", "time", 3, "click", 4, "dropdownMenu"], ["aria-label", "timepicker dropdown", "aria-controls", "time", 1, "dropdown-menu", 3, "click"], [1, "model-holder", 3, "ngModelChange", "isValid", "showMeridian", "readonlyInput", "ngModel", "ngModelOptions", "min", "max", "hourStep", "minuteStep", "secondsStep", "mousewheel", "arrowkeys", "showSeconds"], ["dateTimePicker", "", 3, "change", "config", "placement", "excludedDaysToDisable", "excludedDatesToDisable", "displayFormat", "value"], ["role", "button", 1, "mobile-input", "mobile-datepicker-container", 3, "click", "focus", "blur", "tabindex"]], template: function DatetimeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2632
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$1, decls: 12, vars: 31, consts: [["datepicker", "bsDatepicker"], ["dropdown", "", "autoClose", "false", 2, "display", "inherit", 3, "onShown", "isOpen", "container"], ["focus-target", "", "type", "text", 1, "form-control", "app-textbox", "display-input", 3, "click", "focus", "blur", "change", "keydown", "name", "tabindex", "value", "autofocus", "disabled", "required", "readOnly"], [1, "input-group-btn"], ["type", "button", "aria-haspopup", "true", 1, "btn", "btn-default", "btn-date", 3, "click", "tabindex", "disabled"], ["aria-hidden", "true", 1, "app-icon", "wm-sl-l", "sl-calendar"], ["type", "button", "aria-label", "Select time", "aria-haspopup", "true", "aria-expanded", "false", 1, "btn", "btn-default", "btn-time", 3, "click", "tabindex", "disabled"], ["aria-hidden", "true", 1, "app-icon", "wm-sl-l", "sl-time"], [2, "width", "0", "display", "inline-block"], ["aria-label", "datepicker dropdownmenu", "aria-controls", "date", "focus-target", "", "placement", "bottom right", "bsDatepicker", "", 1, "model-holder", 3, "onShown", "onHidden", "bsValueChange", "tabindex", "container", "bsConfig", "isOpen", "daysDisabled", "datesDisabled", "isDisabled", "bsValue"], ["class", "dropdown-menu", "aria-label", "timepicker dropdown", "aria-controls", "time", 3, "click", 4, "dropdownMenu"], [3, "ngIf"], ["aria-label", "timepicker dropdown", "aria-controls", "time", 1, "dropdown-menu", 3, "click"], [1, "model-holder", 3, "ngModelChange", "isValid", "showMeridian", "readonlyInput", "ngModel", "ngModelOptions", "min", "max", "hourStep", "minuteStep", "secondsStep", "mousewheel", "arrowkeys", "showSeconds"], ["dateTimePicker", "", 3, "change", "config", "placement", "excludedDaysToDisable", "excludedDatesToDisable", "displayFormat", "value"], ["role", "button", 1, "mobile-input", "mobile-datepicker-container", 3, "click", "focus", "blur", "tabindex"]], template: function DatetimeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2640
2633
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2641
2634
|
i0.ɵɵelementStart(0, "div", 1);
|
|
2642
2635
|
i0.ɵɵlistener("onShown", function DatetimeComponent_Template_div_onShown_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onTimepickerOpen()); });
|
|
@@ -2656,7 +2649,7 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2656
2649
|
i0.ɵɵelementEnd()();
|
|
2657
2650
|
i0.ɵɵtemplate(10, DatetimeComponent_div_10_Template, 2, 13, "div", 10);
|
|
2658
2651
|
i0.ɵɵelementEnd();
|
|
2659
|
-
i0.ɵɵtemplate(11,
|
|
2652
|
+
i0.ɵɵtemplate(11, DatetimeComponent_ng_template_11_Template, 2, 8, "ng-template", 11);
|
|
2660
2653
|
} if (rf & 2) {
|
|
2661
2654
|
i0.ɵɵproperty("isOpen", ctx.isTimeOpen)("container", "body");
|
|
2662
2655
|
i0.ɵɵadvance();
|
|
@@ -2672,8 +2665,8 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2672
2665
|
i0.ɵɵproperty("tabindex", -1)("container", ctx.containerTarget || ".wm-app")("bsConfig", ctx._dateOptions)("isOpen", ctx.isDateOpen)("daysDisabled", ctx.excludedDaysToDisable)("datesDisabled", ctx.excludedDatesToDisable)("isDisabled", ctx.disabled || ctx.readonly || ctx.isCurrentDate)("bsValue", ctx.bsDateValue);
|
|
2673
2666
|
i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
|
|
2674
2667
|
i0.ɵɵadvance(3);
|
|
2675
|
-
i0.ɵɵ
|
|
2676
|
-
} }, dependencies: [i2.BsDatepickerDirective,
|
|
2668
|
+
i0.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2669
|
+
} }, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, i4$1.BsDropdownMenuDirective, i4$1.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
|
|
2677
2670
|
}
|
|
2678
2671
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatetimeComponent, [{
|
|
2679
2672
|
type: Component,
|
|
@@ -2682,7 +2675,7 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2682
2675
|
provideAs(DatetimeComponent, NG_VALIDATORS, true),
|
|
2683
2676
|
provideAsWidgetRef(DatetimeComponent),
|
|
2684
2677
|
{ provide: TimepickerConfig, deps: [AbstractI18nService], useFactory: getTimepickerConfig }
|
|
2685
|
-
], template: "<div dropdown\n
|
|
2678
|
+
], template: " <div dropdown\n [isOpen]=\"isTimeOpen\"\n autoClose=\"false\"\n [container]=\"'body'\"\n (onShown)=\"onTimepickerOpen()\"\n style=\"display: inherit;\">\n <input class=\"form-control app-textbox display-input\"\n [attr.aria-label]=\"arialabel\"\n focus-target\n [name]=\"name\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n type=\"text\"\n [value]=\"displayValue\"\n (click)=\"toggleDpDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event);\"\n (blur)=\"onInputBlur($event)\"\n (change)=\"onDateChange($event)\"\n [autofocus]=\"autofocus\"\n [disabled]=\"disabled || readonly || isCurrentDate\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n (keydown)=\"this._triggeredByUser = true; onDisplayKeydown($event)\">\n\n <span class=\"input-group-btn\">\n <button type=\"button\"\n class=\"btn btn-default btn-date\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [disabled]=\"disabled || readonly || isCurrentDate\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : 'Choose date by pressing enter'\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"isDateOpen\"\n (click)=\"toggleDpDropdown($event, false)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-calendar\"></i>\n </button>\n <button type=\"button\"\n class=\"btn btn-default btn-time\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [disabled]=\"disabled || readonly || isCurrentDate\"\n aria-label=\"Select time\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n (click)=\"toggleTimePicker(!isTimeOpen, $event)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-time\"></i>\n </button>\n </span>\n <div style=\"width: 0;display: inline-block;\">\n <input class=\"model-holder\"\n aria-label=\"datepicker dropdownmenu\"\n aria-controls=\"date\"\n focus-target\n [tabindex]=\"-1\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [container]=\"containerTarget || '.wm-app'\"\n [bsConfig]=\"_dateOptions\"\n [isOpen]=\"isDateOpen\"\n placement=\"bottom right\"\n (onShown)=\"onDatePickerOpen()\"\n (onHidden)=\"hideDatepickerDropdown()\"\n [daysDisabled]=\"excludedDaysToDisable\"\n [datesDisabled]=\"excludedDatesToDisable\"\n #datepicker=bsDatepicker\n bsDatepicker\n [isDisabled]=\"disabled || readonly || isCurrentDate\"\n [bsValue]=\"bsDateValue\"\n (bsValueChange)=\"onModelUpdate($event, 'date')\">\n </div>\n <div *dropdownMenu\n class=\"dropdown-menu\"\n aria-label=\"timepicker dropdown\"\n aria-controls=\"time\"\n (click)=\"preventTpClose($event)\">\n <timepicker class=\"model-holder\"\n [showMeridian]=\"ismeridian\"\n [readonlyInput]=\"disabled || readonly || isCurrentDate\"\n [(ngModel)]=\"bsTimeValue\"\n [ngModelOptions]=\"{standalone: true}\"\n [min]=\"minTime\"\n [max]=\"maxTime\"\n [hourStep]=\"hourstep\"\n [minuteStep]=\"minutestep\"\n [secondsStep]=\"secondsstep\"\n [mousewheel]=\"true\"\n [arrowkeys]=\"true\"\n (isValid)=\"isValid($event)\"\n [showSeconds]=\"showseconds\"\n (ngModelChange)=\"onModelUpdate($event, 'time')\"></timepicker>\n </div>\n </div>\n<ng-template [ngIf]=\"loadNativeDateInput\">\n <wm-datetimepicker\n dateTimePicker\n [config]=\"_dateOptions\"\n [placement]=\"modal\"\n [excludedDaysToDisable]=\"excludedDaysToDisable\"\n [excludedDatesToDisable]=\"excludedDatesToDisable\"\n [displayFormat]=\"dateInputFormat\"\n [value]=\"bsDateValue\"\n (change)=\"onModelUpdate($event, 'date')\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n [tabindex]=\"tabindex || 0\"\n (click)=\"!(disabled || readonly) && showDatePickerModal(bsDateValue)\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : arialabel || 'Choose Date'\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event)\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n role=\"button\">\n </div>\n</ng-template>\n" }]
|
|
2686
2679
|
}], () => [{ type: i0.Injector }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1$1.AppDefaults }, { type: i1$1.App }, { type: undefined, decorators: [{
|
|
2687
2680
|
type: Inject,
|
|
2688
2681
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2730,9 +2723,9 @@ const _c0 = ["wmTime", ""];
|
|
|
2730
2723
|
const _c1 = () => ({ standalone: true });
|
|
2731
2724
|
function TimeComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
2732
2725
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2733
|
-
i0.ɵɵelementStart(0, "div",
|
|
2726
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
2734
2727
|
i0.ɵɵlistener("click", function TimeComponent_div_5_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.preventTpClose($event)); });
|
|
2735
|
-
i0.ɵɵelementStart(1, "timepicker",
|
|
2728
|
+
i0.ɵɵelementStart(1, "timepicker", 8);
|
|
2736
2729
|
i0.ɵɵtwoWayListener("ngModelChange", function TimeComponent_div_5_Template_timepicker_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.bsTimeValue, $event) || (ctx_r1.bsTimeValue = $event); return i0.ɵɵresetView($event); });
|
|
2737
2730
|
i0.ɵɵlistener("isValid", function TimeComponent_div_5_Template_timepicker_isValid_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.isValid($event)); })("ngModelChange", function TimeComponent_div_5_Template_timepicker_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onTimeChange($event)); });
|
|
2738
2731
|
i0.ɵɵelementEnd()();
|
|
@@ -2743,13 +2736,13 @@ function TimeComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
2743
2736
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.bsTimeValue);
|
|
2744
2737
|
i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(13, _c1))("disabled", ctx_r1.disabled || ctx_r1.readonly || ctx_r1.isCurrentTime)("min", ctx_r1.minTime)("max", ctx_r1.maxTime)("hourStep", ctx_r1.hourstep)("minuteStep", ctx_r1.minutestep)("secondsStep", ctx_r1.secondsstep)("mousewheel", true)("arrowkeys", true)("showSeconds", ctx_r1.showseconds);
|
|
2745
2738
|
} }
|
|
2746
|
-
function
|
|
2739
|
+
function TimeComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
2747
2740
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
2748
|
-
i0.ɵɵelementStart(0, "wm-datetimepicker",
|
|
2749
|
-
i0.ɵɵlistener("change", function
|
|
2741
|
+
i0.ɵɵelementStart(0, "wm-datetimepicker", 9);
|
|
2742
|
+
i0.ɵɵlistener("change", function TimeComponent_ng_template_6_Template_wm_datetimepicker_change_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onTimeChange($event)); });
|
|
2750
2743
|
i0.ɵɵelementEnd();
|
|
2751
|
-
i0.ɵɵelementStart(1, "div",
|
|
2752
|
-
i0.ɵɵlistener("click", function
|
|
2744
|
+
i0.ɵɵelementStart(1, "div", 10);
|
|
2745
|
+
i0.ɵɵlistener("click", function TimeComponent_ng_template_6_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(!(ctx_r1.disabled || ctx_r1.readonly) && ctx_r1.showDatePickerModal(ctx_r1.bsTimeValue)); })("focus", function TimeComponent_ng_template_6_Template_div_focus_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); ctx_r1.onDateTimeInputFocus(true); ctx_r1.invokeOnFocus($event); return i0.ɵɵresetView(ctx_r1.assignModel()); })("blur", function TimeComponent_ng_template_6_Template_div_blur_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); ctx_r1.onDateTimeInputBlur(); return i0.ɵɵresetView(ctx_r1.invokeOnTouched($event)); });
|
|
2753
2746
|
i0.ɵɵelementEnd();
|
|
2754
2747
|
} if (rf & 2) {
|
|
2755
2748
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -3052,7 +3045,7 @@ class TimeComponent extends BaseDateTimeComponent {
|
|
|
3052
3045
|
provideAs(TimeComponent, NG_VALIDATORS, true),
|
|
3053
3046
|
provideAsWidgetRef(TimeComponent),
|
|
3054
3047
|
{ provide: TimepickerConfig, deps: [AbstractI18nService], useFactory: getTimepickerConfig }
|
|
3055
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0, decls: 7, vars: 16, consts: [["dropdown", "", 2, "display", "inherit", 3, "onShown", "onHidden", "isOpen", "container"], ["focus-target", "", "type", "text", "role", "timer", 1, "form-control", "app-textbox", "display-input", 3, "click", "focus", "blur", "change", "keydown", "tabindex", "name", "value", "disabled", "autofocus", "required", "readOnly"], [1, "input-group-btn", "dropdown-toggle"], ["type", "button", "aria-label", "Select time", "aria-haspopup", "true", "aria-expanded", "false", 1, "btn", "btn-default", "btn-date", 3, "click", "tabindex", "disabled"], ["aria-hidden", "true", 1, "app-icon", "wm-sl-l", "sl-time"], ["class", "dropdown-menu", 3, "click", 4, "dropdownMenu"], [1, "dropdown-menu", 3, "click"], [1, "model-holder", 3, "ngModelChange", "isValid", "showMeridian", "readonlyInput", "ngModel", "ngModelOptions", "disabled", "min", "max", "hourStep", "minuteStep", "secondsStep", "mousewheel", "arrowkeys", "showSeconds"], ["dateTimePicker", "", "mode", "TIME", 3, "change", "minTime", "maxTime", "placement", "displayFormat", "value"], ["tabindex", "1000000", "role", "button", 1, "mobile-input", "mobile-datepicker-container", 3, "click", "focus", "blur"]], template: function TimeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3048
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0, decls: 7, vars: 16, consts: [["dropdown", "", 2, "display", "inherit", 3, "onShown", "onHidden", "isOpen", "container"], ["focus-target", "", "type", "text", "role", "timer", 1, "form-control", "app-textbox", "display-input", 3, "click", "focus", "blur", "change", "keydown", "tabindex", "name", "value", "disabled", "autofocus", "required", "readOnly"], [1, "input-group-btn", "dropdown-toggle"], ["type", "button", "aria-label", "Select time", "aria-haspopup", "true", "aria-expanded", "false", 1, "btn", "btn-default", "btn-date", 3, "click", "tabindex", "disabled"], ["aria-hidden", "true", 1, "app-icon", "wm-sl-l", "sl-time"], ["class", "dropdown-menu", 3, "click", 4, "dropdownMenu"], [3, "ngIf"], [1, "dropdown-menu", 3, "click"], [1, "model-holder", 3, "ngModelChange", "isValid", "showMeridian", "readonlyInput", "ngModel", "ngModelOptions", "disabled", "min", "max", "hourStep", "minuteStep", "secondsStep", "mousewheel", "arrowkeys", "showSeconds"], ["dateTimePicker", "", "mode", "TIME", 3, "change", "minTime", "maxTime", "placement", "displayFormat", "value"], ["tabindex", "1000000", "role", "button", 1, "mobile-input", "mobile-datepicker-container", 3, "click", "focus", "blur"]], template: function TimeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3056
3049
|
i0.ɵɵelementStart(0, "div", 0);
|
|
3057
3050
|
i0.ɵɵlistener("onShown", function TimeComponent_Template_div_onShown_0_listener() { return ctx.onShown(); })("onHidden", function TimeComponent_Template_div_onHidden_0_listener() { return ctx.hideTimepickerDropdown(); });
|
|
3058
3051
|
i0.ɵɵelementStart(1, "input", 1);
|
|
@@ -3064,7 +3057,7 @@ class TimeComponent extends BaseDateTimeComponent {
|
|
|
3064
3057
|
i0.ɵɵelementEnd()();
|
|
3065
3058
|
i0.ɵɵtemplate(5, TimeComponent_div_5_Template, 2, 14, "div", 5);
|
|
3066
3059
|
i0.ɵɵelementEnd();
|
|
3067
|
-
i0.ɵɵtemplate(6,
|
|
3060
|
+
i0.ɵɵtemplate(6, TimeComponent_ng_template_6_Template, 2, 6, "ng-template", 6);
|
|
3068
3061
|
} if (rf & 2) {
|
|
3069
3062
|
i0.ɵɵproperty("isOpen", ctx.status.isopen)("container", "body");
|
|
3070
3063
|
i0.ɵɵadvance();
|
|
@@ -3073,8 +3066,8 @@ class TimeComponent extends BaseDateTimeComponent {
|
|
|
3073
3066
|
i0.ɵɵadvance(2);
|
|
3074
3067
|
i0.ɵɵproperty("tabindex", ctx.tabindex)("disabled", ctx.disabled || ctx.readonly || ctx.isCurrentTime);
|
|
3075
3068
|
i0.ɵɵadvance(3);
|
|
3076
|
-
i0.ɵɵ
|
|
3077
|
-
} }, dependencies: [
|
|
3069
|
+
i0.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
3070
|
+
} }, dependencies: [i2.NgIf, i4$1.BsDropdownMenuDirective, i4$1.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
|
|
3078
3071
|
}
|
|
3079
3072
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimeComponent, [{
|
|
3080
3073
|
type: Component,
|
|
@@ -3083,7 +3076,7 @@ class TimeComponent extends BaseDateTimeComponent {
|
|
|
3083
3076
|
provideAs(TimeComponent, NG_VALIDATORS, true),
|
|
3084
3077
|
provideAsWidgetRef(TimeComponent),
|
|
3085
3078
|
{ provide: TimepickerConfig, deps: [AbstractI18nService], useFactory: getTimepickerConfig }
|
|
3086
|
-
], template: "<div dropdown [isOpen]=\"status.isopen\" (onShown)=\"onShown()\" (onHidden)=\"hideTimepickerDropdown()\" [container]=\"'body'\" style=\"display: inherit\">\n
|
|
3079
|
+
], template: " <div dropdown [isOpen]=\"status.isopen\" (onShown)=\"onShown()\" (onHidden)=\"hideTimepickerDropdown()\" [container]=\"'body'\" style=\"display: inherit\">\n <input [attr.aria-label]=\"arialabel\" class=\"form-control app-textbox display-input\"\n focus-target\n [tabindex]=\"tabindex\"\n [name]=\"name\"\n type=\"text\"\n role=\"timer\"\n [value]=\"displayValue\"\n [disabled]=\"disabled || readonly || isCurrentTime\"\n [autofocus]=\"autofocus\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-atomic]=\"isCurrentTime ? 'true' : 'false'\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n (click)=\"toggleDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event);\"\n (blur)=\"onInputBlur($event)\"\n (change)=\"onDisplayTimeChange($event)\"\n (keydown)=\"this._triggeredByUser = true; onDisplayKeydown($event)\">\n <span class=\"input-group-btn dropdown-toggle\">\n <button type=\"button\" class=\"btn btn-default btn-date\" [tabindex]=\"tabindex\" [disabled]=\"disabled || readonly || isCurrentTime\" aria-label=\"Select time\" aria-haspopup=\"true\" aria-expanded=\"false\" (click)=\"toggleDropdown($event, false)\"><i aria-hidden=\"true\" class=\"app-icon wm-sl-l sl-time\"></i></button>\n </span>\n <div *dropdownMenu class=\"dropdown-menu\" (click)=\"preventTpClose($event)\">\n <timepicker class=\"model-holder\"\n [showMeridian]=\"ismeridian\"\n [readonlyInput]=\"isDisabled\"\n [(ngModel)]=\"bsTimeValue\"\n [ngModelOptions]=\"{standalone: true}\"\n [disabled]=\"disabled || readonly || isCurrentTime\"\n [min]=\"minTime\"\n [max]=\"maxTime\"\n [hourStep]=\"hourstep\"\n [minuteStep]=\"minutestep\"\n [secondsStep]=\"secondsstep\"\n [mousewheel]=\"true\"\n [arrowkeys]=\"true\"\n (isValid)=\"isValid($event)\"\n [showSeconds]=\"showseconds\" (ngModelChange)=\"onTimeChange($event)\"></timepicker>\n </div>\n </div>\n<ng-template [ngIf]=\"loadNativeDateInput\">\n <wm-datetimepicker\n dateTimePicker\n mode=\"TIME\"\n [minTime]=\"minTime\"\n [maxTime]=\"maxTime\"\n [placement]=\"modal\"\n [displayFormat]=\"timepattern\"\n [value]=\"bsTimeValue\"\n (change)=\"onTimeChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n tabindex=\"1000000\"\n (click)=\"!(disabled || readonly) && showDatePickerModal(bsTimeValue)\"\n [attr.aria-label]=\"displayValue ? 'Change time ' + displayValue : arialabel || 'Select time'\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event); assignModel()\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n role=\"button\">\n </div>\n</ng-template>\n" }]
|
|
3087
3080
|
}], () => [{ type: i0.Injector }, { type: i0.NgZone }, { type: i1$1.AppDefaults }, { type: i1$1.App }, { type: undefined, decorators: [{
|
|
3088
3081
|
type: Inject,
|
|
3089
3082
|
args: ['EXPLICIT_CONTEXT']
|