@wavemaker/app-ng-runtime 11.10.2-rc.6065 → 11.10.3-next.25128
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/build-task/bundles/index.umd.js +5 -3
- package/build-task/esm2022/advanced/carousel/carousel-template/carousel-template.build.mjs +4 -2
- package/build-task/esm2022/data/form/form-field/form-field.build.mjs +3 -3
- package/build-task/fesm2022/index.mjs +5 -3
- package/build-task/fesm2022/index.mjs.map +1 -1
- package/components/basic/default/bundles/index.umd.js +68 -71
- package/components/basic/default/esm2022/anchor/anchor.component.mjs +18 -18
- package/components/basic/default/esm2022/icon/icon.component.mjs +12 -13
- package/components/basic/default/esm2022/iframe/iframe.component.mjs +9 -10
- package/components/basic/default/esm2022/picture/picture.directive.mjs +2 -5
- package/components/basic/default/esm2022/spinner/spinner.component.mjs +21 -21
- package/components/basic/default/esm2022/video/video.component.mjs +14 -15
- package/components/basic/default/fesm2022/index.mjs +68 -71
- package/components/basic/default/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/bundles/index.umd.js +16 -17
- package/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +7 -8
- package/components/basic/progress/fesm2022/index.mjs +8 -9
- package/components/basic/progress/fesm2022/index.mjs.map +1 -1
- package/components/basic/rich-text-editor/bundles/index.umd.js +11 -12
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +8 -9
- package/components/basic/rich-text-editor/fesm2022/index.mjs +7 -8
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/bundles/index.umd.js +63 -67
- package/components/basic/search/esm2022/search.component.mjs +63 -67
- package/components/basic/search/esm2022/search.module.mjs +2 -2
- package/components/basic/search/fesm2022/index.mjs +63 -67
- 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 +91 -96
- package/components/data/form/esm2022/form.component.mjs +92 -97
- package/components/data/form/fesm2022/index.mjs +91 -96
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/list/bundles/index.umd.js +171 -173
- package/components/data/list/esm2022/list.component.mjs +171 -173
- package/components/data/list/esm2022/list.module.mjs +2 -2
- package/components/data/list/fesm2022/index.mjs +171 -173
- 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 +69 -39
- package/components/data/table/esm2022/table-column/table-column.directive.mjs +2 -1
- package/components/data/table/esm2022/table-column/table-column.props.mjs +2 -1
- package/components/data/table/esm2022/table-filter.directive.mjs +29 -2
- package/components/data/table/esm2022/table.component.mjs +40 -39
- package/components/data/table/esm2022/table.props.mjs +2 -1
- package/components/data/table/fesm2022/index.mjs +72 -41
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/table-column/table-column.directive.d.ts +1 -0
- package/components/data/table/table-filter.directive.d.ts +1 -0
- package/components/dialogs/default/bundles/index.umd.js +66 -95
- package/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +67 -96
- package/components/dialogs/default/fesm2022/index.mjs +66 -95
- 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 +24 -25
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +15 -16
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +14 -15
- 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 +201 -209
- package/components/input/default/esm2022/button/button.component.mjs +18 -18
- package/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +68 -69
- package/components/input/default/esm2022/radioset/radioset.component.mjs +68 -69
- package/components/input/default/esm2022/select/select.component.mjs +21 -27
- 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 +201 -209
- package/components/input/default/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/bundles/index.umd.js +171 -164
- package/components/input/epoch/esm2022/date/date.component.mjs +14 -15
- package/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +64 -59
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +18 -19
- package/components/input/epoch/esm2022/picker/picker.component.mjs +26 -25
- package/components/input/epoch/esm2022/time/time.component.mjs +17 -18
- package/components/input/epoch/fesm2022/index.mjs +124 -117
- package/components/input/epoch/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/bundles/index.umd.js +111 -114
- package/components/input/file-upload/esm2022/file-upload.component.mjs +112 -115
- package/components/input/file-upload/fesm2022/index.mjs +111 -114
- 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 +39 -40
- package/components/input/slider/esm2022/slider.component.mjs +10 -11
- package/components/input/slider/fesm2022/index.mjs +9 -10
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/navigation/breadcrumb/bundles/index.umd.js +16 -15
- package/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +17 -16
- package/components/navigation/breadcrumb/fesm2022/index.mjs +16 -15
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/bundles/index.umd.js +82 -74
- package/components/navigation/menu/esm2022/menu-adapator.component.mjs +14 -4
- 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 +22 -26
- package/components/navigation/menu/esm2022/menu.module.mjs +4 -4
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +26 -24
- package/components/navigation/menu/fesm2022/index.mjs +82 -74
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/menu-adapator.component.d.ts +1 -0
- 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 +102 -111
- package/mobile/components/basic/default/esm2022/file-browser/file-browser.component.mjs +39 -40
- package/mobile/components/basic/default/esm2022/network-info-toaster/network-info-toaster.component.mjs +35 -44
- package/mobile/components/basic/default/esm2022/process-manager/process-manager.component.mjs +27 -28
- package/mobile/components/basic/default/fesm2022/index.mjs +98 -107
- 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 +8 -9
- 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 +219 -215
- package/runtime/base/esm2022/components/app-component/app.component.mjs +38 -41
- package/runtime/base/esm2022/components/app-spinner.component.mjs +25 -21
- package/runtime/base/esm2022/components/custom-toaster.component.mjs +18 -16
- package/runtime/base/fesm2022/index.mjs +99 -95
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/scripts/datatable/datatable.js +1 -0
|
@@ -1,14 +1,13 @@
|
|
|
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';
|
|
4
3
|
import { getLocaleDayPeriods, FormStyle, TranslationWidth, CommonModule } from '@angular/common';
|
|
5
|
-
import * as
|
|
4
|
+
import * as i4 from '@angular/forms';
|
|
6
5
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule } from '@angular/forms';
|
|
7
|
-
import * as
|
|
6
|
+
import * as i2 from 'ngx-bootstrap/datepicker';
|
|
8
7
|
import { BsDatepickerConfig, BsDatepickerDirective, BsDatepickerModule } from 'ngx-bootstrap/datepicker';
|
|
9
|
-
import * as
|
|
8
|
+
import * as i3$1 from 'ngx-bootstrap/dropdown';
|
|
10
9
|
import { BsDropdownDirective, BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
11
|
-
import * as
|
|
10
|
+
import * as i5 from 'ngx-bootstrap/timepicker';
|
|
12
11
|
import { TimepickerConfig, TimepickerComponent, TimepickerModule } from 'ngx-bootstrap/timepicker';
|
|
13
12
|
import { ToDatePipe, getContainerTargetClass, PROP_BOOLEAN, PROP_STRING, PROP_ANY, PROP_NUMBER, register, registerFormWidget, styler, setFocusTrap, provideAs, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
|
|
14
13
|
import * as i1$1 from '@wm/core';
|
|
@@ -17,12 +16,12 @@ import { BaseFormCustomComponent } from '@wm/components/input';
|
|
|
17
16
|
import * as i1 from 'ngx-bootstrap/modal';
|
|
18
17
|
import { filter, isUndefined, isNaN as isNaN$1, parseInt as parseInt$1, isString, split, get, forEach, includes, debounce } from 'lodash-es';
|
|
19
18
|
import IMask from 'imask';
|
|
20
|
-
import * as
|
|
19
|
+
import * as i3 from 'angular-imask';
|
|
21
20
|
import { IMaskDirective, IMaskModule } from 'angular-imask';
|
|
22
21
|
|
|
23
22
|
const _c0$4 = ["*"];
|
|
24
|
-
function
|
|
25
|
-
i0.ɵɵelementStart(0, "div",
|
|
23
|
+
function PickerComponent_For_7_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
26
25
|
i0.ɵɵtext(1);
|
|
27
26
|
i0.ɵɵelementEnd();
|
|
28
27
|
} if (rf & 2) {
|
|
@@ -93,26 +92,26 @@ class PickerComponent {
|
|
|
93
92
|
this.pickerAnimator = new PickerAnimator(this);
|
|
94
93
|
}
|
|
95
94
|
static { this.ɵfac = function PickerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PickerComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
96
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PickerComponent, selectors: [["wm-picker"]], inputs: { selectedValue: "selectedValue", options: "options" }, outputs: { change: "change" }, decls:
|
|
95
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PickerComponent, selectors: [["wm-picker"]], inputs: { selectedValue: "selectedValue", options: "options" }, outputs: { change: "change" }, decls: 13, vars: 0, consts: [[1, "app-picker"], [1, "app-picker-option-container"], [1, "app-picker-option", "app-picker-empty-option"], [1, "app-picker-option"], [1, "app-picker-ruler"]], template: function PickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
97
96
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2);
|
|
98
97
|
i0.ɵɵtext(3, "E");
|
|
99
98
|
i0.ɵɵelementEnd();
|
|
100
99
|
i0.ɵɵelementStart(4, "div", 2);
|
|
101
100
|
i0.ɵɵtext(5, "E");
|
|
102
101
|
i0.ɵɵelementEnd();
|
|
103
|
-
i0.ɵɵ
|
|
104
|
-
i0.ɵɵelementStart(
|
|
105
|
-
i0.ɵɵtext(
|
|
102
|
+
i0.ɵɵrepeaterCreate(6, PickerComponent_For_7_Template, 2, 1, "div", 3, i0.ɵɵrepeaterTrackByIdentity);
|
|
103
|
+
i0.ɵɵelementStart(8, "div", 2);
|
|
104
|
+
i0.ɵɵtext(9, "E");
|
|
106
105
|
i0.ɵɵelementEnd();
|
|
107
|
-
i0.ɵɵelementStart(
|
|
108
|
-
i0.ɵɵtext(
|
|
106
|
+
i0.ɵɵelementStart(10, "div", 2);
|
|
107
|
+
i0.ɵɵtext(11, "E");
|
|
109
108
|
i0.ɵɵelementEnd()();
|
|
110
|
-
i0.ɵɵelement(
|
|
109
|
+
i0.ɵɵelement(12, "div", 4);
|
|
111
110
|
i0.ɵɵelementEnd();
|
|
112
111
|
} if (rf & 2) {
|
|
113
112
|
i0.ɵɵadvance(6);
|
|
114
|
-
i0.ɵɵ
|
|
115
|
-
} },
|
|
113
|
+
i0.ɵɵrepeater(ctx.options);
|
|
114
|
+
} }, encapsulation: 2 }); }
|
|
116
115
|
}
|
|
117
116
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PickerComponent, [{
|
|
118
117
|
type: Component,
|
|
@@ -120,18 +119,20 @@ class PickerComponent {
|
|
|
120
119
|
selector: 'wm-picker',
|
|
121
120
|
template: `
|
|
122
121
|
<div class="app-picker">
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
</div>
|
|
132
|
-
<div class="app-picker-
|
|
122
|
+
<div class="app-picker-option-container">
|
|
123
|
+
<div class="app-picker-option app-picker-empty-option">E</div>
|
|
124
|
+
<div class="app-picker-option app-picker-empty-option">E</div>
|
|
125
|
+
@for (option of options; track option; let i = $index) {
|
|
126
|
+
<div class="app-picker-option">
|
|
127
|
+
{{option.label}}
|
|
128
|
+
</div>
|
|
129
|
+
}
|
|
130
|
+
<div class="app-picker-option app-picker-empty-option">E</div>
|
|
131
|
+
<div class="app-picker-option app-picker-empty-option">E</div>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="app-picker-ruler"></div>
|
|
133
134
|
</div>
|
|
134
|
-
|
|
135
|
+
`
|
|
135
136
|
}]
|
|
136
137
|
}], () => [{ type: i0.Injector }], { change: [{
|
|
137
138
|
type: Output
|
|
@@ -140,7 +141,7 @@ class PickerComponent {
|
|
|
140
141
|
}], options: [{
|
|
141
142
|
type: Input
|
|
142
143
|
}] }); })();
|
|
143
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PickerComponent, { className: "PickerComponent", filePath: "picker/picker.component.ts", lineNumber:
|
|
144
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PickerComponent, { className: "PickerComponent", filePath: "picker/picker.component.ts", lineNumber: 36 }); })();
|
|
144
145
|
class PickerAnimator {
|
|
145
146
|
constructor(picker) {
|
|
146
147
|
this.picker = picker;
|
|
@@ -197,28 +198,28 @@ class PickerAnimator {
|
|
|
197
198
|
}
|
|
198
199
|
|
|
199
200
|
const _c0$3 = ["datetimepickerTemplate"];
|
|
200
|
-
function
|
|
201
|
+
function DateTimePickerComponent_ng_template_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
201
202
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
202
203
|
i0.ɵɵelementStart(0, "bs-datepicker-inline", 11);
|
|
203
|
-
i0.ɵɵlistener("bsValueChange", function
|
|
204
|
+
i0.ɵɵlistener("bsValueChange", function DateTimePickerComponent_ng_template_0_Conditional_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)); });
|
|
204
205
|
i0.ɵɵelementEnd();
|
|
205
206
|
} if (rf & 2) {
|
|
206
207
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
207
208
|
i0.ɵɵproperty("bsConfig", ctx_r2.bsDatepickerConfig)("datesDisabled", ctx_r2.excludedDatesToDisable)("bsValue", ctx_r2.changedValue);
|
|
208
209
|
} }
|
|
209
|
-
function
|
|
210
|
+
function DateTimePickerComponent_ng_template_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
210
211
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
211
212
|
i0.ɵɵelementStart(0, "wm-timepicker", 12);
|
|
212
|
-
i0.ɵɵlistener("change", function
|
|
213
|
+
i0.ɵɵlistener("change", function DateTimePickerComponent_ng_template_0_Conditional_4_Template_wm_timepicker_change_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onTimeUpdate($event)); });
|
|
213
214
|
i0.ɵɵelementEnd();
|
|
214
215
|
} if (rf & 2) {
|
|
215
216
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
216
217
|
i0.ɵɵproperty("value", ctx_r2.changedValue)("min", ctx_r2.minTime)("max", ctx_r2.maxTime);
|
|
217
218
|
} }
|
|
218
|
-
function
|
|
219
|
+
function DateTimePickerComponent_ng_template_0_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
219
220
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
220
221
|
i0.ɵɵelementStart(0, "button", 13);
|
|
221
|
-
i0.ɵɵlistener("click", function
|
|
222
|
+
i0.ɵɵlistener("click", function DateTimePickerComponent_ng_template_0_Conditional_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.setToday()); });
|
|
222
223
|
i0.ɵɵtext(1);
|
|
223
224
|
i0.ɵɵelementEnd();
|
|
224
225
|
} if (rf & 2) {
|
|
@@ -226,10 +227,10 @@ function DateTimePickerComponent_ng_template_0_button_8_Template(rf, ctx) { if (
|
|
|
226
227
|
i0.ɵɵadvance();
|
|
227
228
|
i0.ɵɵtextInterpolate(ctx_r2.appLocale.LABEL_TODAY_DATE || "Today");
|
|
228
229
|
} }
|
|
229
|
-
function
|
|
230
|
+
function DateTimePickerComponent_ng_template_0_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
230
231
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
231
232
|
i0.ɵɵelementStart(0, "button", 14);
|
|
232
|
-
i0.ɵɵlistener("click", function
|
|
233
|
+
i0.ɵɵlistener("click", function DateTimePickerComponent_ng_template_0_Conditional_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onOkClick()); });
|
|
233
234
|
i0.ɵɵtext(1);
|
|
234
235
|
i0.ɵɵelementEnd();
|
|
235
236
|
} if (rf & 2) {
|
|
@@ -241,12 +242,12 @@ function DateTimePickerComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
241
242
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
242
243
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
243
244
|
i0.ɵɵelement(2, "div", 3);
|
|
244
|
-
i0.ɵɵtemplate(3,
|
|
245
|
+
i0.ɵɵtemplate(3, DateTimePickerComponent_ng_template_0_Conditional_3_Template, 1, 3, "bs-datepicker-inline", 4)(4, DateTimePickerComponent_ng_template_0_Conditional_4_Template, 1, 3, "wm-timepicker", 5);
|
|
245
246
|
i0.ɵɵelementStart(5, "span", 6);
|
|
246
247
|
i0.ɵɵtext(6);
|
|
247
248
|
i0.ɵɵelementEnd()();
|
|
248
249
|
i0.ɵɵelementStart(7, "div", 7);
|
|
249
|
-
i0.ɵɵtemplate(8,
|
|
250
|
+
i0.ɵɵtemplate(8, DateTimePickerComponent_ng_template_0_Conditional_8_Template, 2, 1, "button", 8)(9, DateTimePickerComponent_ng_template_0_Conditional_9_Template, 2, 1, "button", 9);
|
|
250
251
|
i0.ɵɵelementStart(10, "button", 10);
|
|
251
252
|
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()); });
|
|
252
253
|
i0.ɵɵtext(11);
|
|
@@ -254,15 +255,15 @@ function DateTimePickerComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
254
255
|
} if (rf & 2) {
|
|
255
256
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
256
257
|
i0.ɵɵadvance(3);
|
|
257
|
-
i0.ɵɵ
|
|
258
|
+
i0.ɵɵconditional(ctx_r2.mode === "DATE_TIME" || ctx_r2.mode === "DATE" ? 3 : -1);
|
|
258
259
|
i0.ɵɵadvance();
|
|
259
|
-
i0.ɵɵ
|
|
260
|
+
i0.ɵɵconditional(ctx_r2.mode === "DATE_TIME" || ctx_r2.mode === "TIME" ? 4 : -1);
|
|
260
261
|
i0.ɵɵadvance(2);
|
|
261
262
|
i0.ɵɵtextInterpolate1(" ", ctx_r2.getDateLabel(), " ");
|
|
262
263
|
i0.ɵɵadvance(2);
|
|
263
|
-
i0.ɵɵ
|
|
264
|
+
i0.ɵɵconditional(ctx_r2.mode === "DATE_TIME" || ctx_r2.mode === "DATE" ? 8 : -1);
|
|
264
265
|
i0.ɵɵadvance();
|
|
265
|
-
i0.ɵɵ
|
|
266
|
+
i0.ɵɵconditional(ctx_r2.mode === "DATE_TIME" || ctx_r2.mode === "TIME" ? 9 : -1);
|
|
266
267
|
i0.ɵɵadvance(2);
|
|
267
268
|
i0.ɵɵtextInterpolate(ctx_r2.appLocale.LABEL_CLEAR_DATE || "Clear");
|
|
268
269
|
} }
|
|
@@ -439,9 +440,9 @@ class DateTimePickerComponent {
|
|
|
439
440
|
} if (rf & 2) {
|
|
440
441
|
let _t;
|
|
441
442
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.datetimepickerTemplate = _t.first);
|
|
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"
|
|
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"], [1, "btn", "btn-secondary", "today-btn"], [1, "btn", "btn-primary", "pull-right", "ok-btn"], [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) {
|
|
443
444
|
i0.ɵɵtemplate(0, DateTimePickerComponent_ng_template_0_Template, 12, 6, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
444
|
-
} }, dependencies: () => [i2.
|
|
445
|
+
} }, dependencies: () => [i2.BsDatepickerDirective, i2.BsDatepickerInlineDirective, TimePickerComponent], encapsulation: 2 }); }
|
|
445
446
|
}
|
|
446
447
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateTimePickerComponent, [{
|
|
447
448
|
type: Component,
|
|
@@ -449,43 +450,49 @@ class DateTimePickerComponent {
|
|
|
449
450
|
selector: 'wm-datetimepicker',
|
|
450
451
|
template: `
|
|
451
452
|
<ng-template #datetimepickerTemplate>
|
|
452
|
-
|
|
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
|
-
|
|
453
|
+
<div class="app-datetime-picker">
|
|
454
|
+
<div class="modal-body">
|
|
455
|
+
<div class="mobile-datetime-picker-options">
|
|
456
|
+
|
|
457
|
+
</div>
|
|
458
|
+
@if (mode === 'DATE_TIME' || mode === 'DATE') {
|
|
459
|
+
<bs-datepicker-inline
|
|
460
|
+
[bsConfig]="bsDatepickerConfig"
|
|
461
|
+
[datesDisabled]="excludedDatesToDisable"
|
|
462
|
+
bsDatepicker
|
|
463
|
+
[bsValue]="changedValue"
|
|
464
|
+
(bsValueChange)="onDateUpdate($event)"
|
|
465
|
+
>
|
|
466
|
+
</bs-datepicker-inline>
|
|
467
|
+
}
|
|
468
|
+
@if (mode === 'DATE_TIME' || mode === 'TIME') {
|
|
469
|
+
<wm-timepicker
|
|
470
|
+
[value]="changedValue"
|
|
471
|
+
[min]="minTime"
|
|
472
|
+
[max]="maxTime"
|
|
473
|
+
(change)="onTimeUpdate($event)"
|
|
474
|
+
></wm-timepicker>
|
|
475
|
+
}
|
|
476
|
+
<span class="text-primary date-picker-value">
|
|
477
|
+
{{getDateLabel()}}
|
|
478
|
+
</span>
|
|
479
|
+
</div>
|
|
480
|
+
<div class="modal-footer">
|
|
481
|
+
@if (mode === 'DATE_TIME' || mode === 'DATE') {
|
|
482
|
+
<button
|
|
483
|
+
class="btn btn-secondary today-btn"
|
|
484
|
+
(click)="setToday()">{{appLocale.LABEL_TODAY_DATE || "Today" }}</button>
|
|
485
|
+
}
|
|
486
|
+
@if (mode === 'DATE_TIME' || mode === 'TIME') {
|
|
487
|
+
<button
|
|
488
|
+
class="btn btn-primary pull-right ok-btn"
|
|
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>
|
|
488
494
|
</div>
|
|
495
|
+
</div>
|
|
489
496
|
</ng-template>
|
|
490
497
|
`
|
|
491
498
|
}]
|
|
@@ -519,7 +526,7 @@ class DateTimePickerComponent {
|
|
|
519
526
|
}], displayFormat: [{
|
|
520
527
|
type: Input
|
|
521
528
|
}] }); })();
|
|
522
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateTimePickerComponent, { className: "DateTimePickerComponent", filePath: "date-time/date-time-picker.component.ts", lineNumber:
|
|
529
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateTimePickerComponent, { className: "DateTimePickerComponent", filePath: "date-time/date-time-picker.component.ts", lineNumber: 60 }); })();
|
|
523
530
|
class TimePickerComponent {
|
|
524
531
|
constructor(inj) {
|
|
525
532
|
this.inj = inj;
|
|
@@ -643,7 +650,7 @@ class TimePickerComponent {
|
|
|
643
650
|
}], change: [{
|
|
644
651
|
type: Output
|
|
645
652
|
}] }); })();
|
|
646
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TimePickerComponent, { className: "TimePickerComponent", filePath: "date-time/date-time-picker.component.ts", lineNumber:
|
|
653
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TimePickerComponent, { className: "TimePickerComponent", filePath: "date-time/date-time-picker.component.ts", lineNumber: 311 }); })();
|
|
647
654
|
|
|
648
655
|
const CURRENT_DATE$2 = 'CURRENT_DATE';
|
|
649
656
|
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
@@ -1804,13 +1811,13 @@ function validateTheMaskedDate(format, locale) {
|
|
|
1804
1811
|
|
|
1805
1812
|
const _c0$2 = ["dateInput"];
|
|
1806
1813
|
const _c1$2 = ["wmDate", ""];
|
|
1807
|
-
function
|
|
1814
|
+
function DateComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
1808
1815
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
1809
|
-
i0.ɵɵelementStart(0, "wm-datetimepicker",
|
|
1810
|
-
i0.ɵɵlistener("change", function
|
|
1816
|
+
i0.ɵɵelementStart(0, "wm-datetimepicker", 8);
|
|
1817
|
+
i0.ɵɵlistener("change", function DateComponent_Conditional_8_Template_wm_datetimepicker_change_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onDateChange($event)); });
|
|
1811
1818
|
i0.ɵɵelementEnd();
|
|
1812
|
-
i0.ɵɵelementStart(1, "div",
|
|
1813
|
-
i0.ɵɵlistener("click", function
|
|
1819
|
+
i0.ɵɵelementStart(1, "div", 9);
|
|
1820
|
+
i0.ɵɵlistener("click", function DateComponent_Conditional_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_Conditional_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_Conditional_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)); });
|
|
1814
1821
|
i0.ɵɵelementEnd();
|
|
1815
1822
|
} if (rf & 2) {
|
|
1816
1823
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -2102,7 +2109,7 @@ class DateComponent extends BaseDateTimeComponent {
|
|
|
2102
2109
|
provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
|
|
2103
2110
|
provideAs(DateComponent, NG_VALIDATORS, true),
|
|
2104
2111
|
provideAsWidgetRef(DateComponent)
|
|
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"], [
|
|
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) {
|
|
2106
2113
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2107
2114
|
i0.ɵɵelementStart(0, "input", 2, 0);
|
|
2108
2115
|
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)); });
|
|
@@ -2114,7 +2121,7 @@ class DateComponent extends BaseDateTimeComponent {
|
|
|
2114
2121
|
i0.ɵɵelementStart(5, "div", 6)(6, "input", 7, 1);
|
|
2115
2122
|
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)); });
|
|
2116
2123
|
i0.ɵɵelementEnd()();
|
|
2117
|
-
i0.ɵɵtemplate(8,
|
|
2124
|
+
i0.ɵɵtemplate(8, DateComponent_Conditional_8_Template, 2, 8);
|
|
2118
2125
|
} if (rf & 2) {
|
|
2119
2126
|
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);
|
|
2120
2127
|
i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.arialabel);
|
|
@@ -2125,8 +2132,8 @@ class DateComponent extends BaseDateTimeComponent {
|
|
|
2125
2132
|
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);
|
|
2126
2133
|
i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
|
|
2127
2134
|
i0.ɵɵadvance(2);
|
|
2128
|
-
i0.ɵɵ
|
|
2129
|
-
} }, dependencies: [i2.
|
|
2135
|
+
i0.ɵɵconditional(ctx.loadNativeDateInput ? 8 : -1);
|
|
2136
|
+
} }, dependencies: [i2.BsDatepickerDirective, i2.BsDatepickerInputDirective, i3.IMaskDirective, DateTimePickerComponent], encapsulation: 2 }); }
|
|
2130
2137
|
}
|
|
2131
2138
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateComponent, [{
|
|
2132
2139
|
type: Component,
|
|
@@ -2134,7 +2141,7 @@ class DateComponent extends BaseDateTimeComponent {
|
|
|
2134
2141
|
provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
|
|
2135
2142
|
provideAs(DateComponent, NG_VALIDATORS, true),
|
|
2136
2143
|
provideAsWidgetRef(DateComponent)
|
|
2137
|
-
], template: "
|
|
2144
|
+
], 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@if (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}\n" }]
|
|
2138
2145
|
}], () => [{ type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: i1$1.AppDefaults }, { type: undefined, decorators: [{
|
|
2139
2146
|
type: Inject,
|
|
2140
2147
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2197,9 +2204,9 @@ const _c0$1 = ["wmDateTime", ""];
|
|
|
2197
2204
|
const _c1$1 = () => ({ standalone: true });
|
|
2198
2205
|
function DatetimeComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
2199
2206
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
2200
|
-
i0.ɵɵelementStart(0, "div",
|
|
2207
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
2201
2208
|
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)); });
|
|
2202
|
-
i0.ɵɵelementStart(1, "timepicker",
|
|
2209
|
+
i0.ɵɵelementStart(1, "timepicker", 12);
|
|
2203
2210
|
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); });
|
|
2204
2211
|
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")); });
|
|
2205
2212
|
i0.ɵɵelementEnd()();
|
|
@@ -2210,13 +2217,13 @@ function DatetimeComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
2210
2217
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.bsTimeValue);
|
|
2211
2218
|
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);
|
|
2212
2219
|
} }
|
|
2213
|
-
function
|
|
2220
|
+
function DatetimeComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
2214
2221
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
2215
|
-
i0.ɵɵelementStart(0, "wm-datetimepicker",
|
|
2216
|
-
i0.ɵɵlistener("change", function
|
|
2222
|
+
i0.ɵɵelementStart(0, "wm-datetimepicker", 13);
|
|
2223
|
+
i0.ɵɵlistener("change", function DatetimeComponent_Conditional_11_Template_wm_datetimepicker_change_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onModelUpdate($event, "date")); });
|
|
2217
2224
|
i0.ɵɵelementEnd();
|
|
2218
|
-
i0.ɵɵelementStart(1, "div",
|
|
2219
|
-
i0.ɵɵlistener("click", function
|
|
2225
|
+
i0.ɵɵelementStart(1, "div", 14);
|
|
2226
|
+
i0.ɵɵlistener("click", function DatetimeComponent_Conditional_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_Conditional_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_Conditional_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)); });
|
|
2220
2227
|
i0.ɵɵelementEnd();
|
|
2221
2228
|
} if (rf & 2) {
|
|
2222
2229
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -2629,7 +2636,7 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2629
2636
|
provideAs(DatetimeComponent, NG_VALIDATORS, true),
|
|
2630
2637
|
provideAsWidgetRef(DatetimeComponent),
|
|
2631
2638
|
{ provide: TimepickerConfig, deps: [AbstractI18nService], useFactory: getTimepickerConfig }
|
|
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"], [
|
|
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) {
|
|
2633
2640
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2634
2641
|
i0.ɵɵelementStart(0, "div", 1);
|
|
2635
2642
|
i0.ɵɵlistener("onShown", function DatetimeComponent_Template_div_onShown_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onTimepickerOpen()); });
|
|
@@ -2649,7 +2656,7 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2649
2656
|
i0.ɵɵelementEnd()();
|
|
2650
2657
|
i0.ɵɵtemplate(10, DatetimeComponent_div_10_Template, 2, 13, "div", 10);
|
|
2651
2658
|
i0.ɵɵelementEnd();
|
|
2652
|
-
i0.ɵɵtemplate(11,
|
|
2659
|
+
i0.ɵɵtemplate(11, DatetimeComponent_Conditional_11_Template, 2, 8);
|
|
2653
2660
|
} if (rf & 2) {
|
|
2654
2661
|
i0.ɵɵproperty("isOpen", ctx.isTimeOpen)("container", "body");
|
|
2655
2662
|
i0.ɵɵadvance();
|
|
@@ -2665,8 +2672,8 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2665
2672
|
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);
|
|
2666
2673
|
i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
|
|
2667
2674
|
i0.ɵɵadvance(3);
|
|
2668
|
-
i0.ɵɵ
|
|
2669
|
-
} }, dependencies: [i2.
|
|
2675
|
+
i0.ɵɵconditional(ctx.loadNativeDateInput ? 11 : -1);
|
|
2676
|
+
} }, dependencies: [i2.BsDatepickerDirective, i2.BsDatepickerInputDirective, i3$1.BsDropdownMenuDirective, i3$1.BsDropdownDirective, i4.NgControlStatus, i4.NgModel, i5.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
|
|
2670
2677
|
}
|
|
2671
2678
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatetimeComponent, [{
|
|
2672
2679
|
type: Component,
|
|
@@ -2675,7 +2682,7 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2675
2682
|
provideAs(DatetimeComponent, NG_VALIDATORS, true),
|
|
2676
2683
|
provideAsWidgetRef(DatetimeComponent),
|
|
2677
2684
|
{ provide: TimepickerConfig, deps: [AbstractI18nService], useFactory: getTimepickerConfig }
|
|
2678
|
-
], template: "
|
|
2685
|
+
], 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@if (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}\n" }]
|
|
2679
2686
|
}], () => [{ type: i0.Injector }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1$1.AppDefaults }, { type: i1$1.App }, { type: undefined, decorators: [{
|
|
2680
2687
|
type: Inject,
|
|
2681
2688
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2723,9 +2730,9 @@ const _c0 = ["wmTime", ""];
|
|
|
2723
2730
|
const _c1 = () => ({ standalone: true });
|
|
2724
2731
|
function TimeComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
2725
2732
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2726
|
-
i0.ɵɵelementStart(0, "div",
|
|
2733
|
+
i0.ɵɵelementStart(0, "div", 6);
|
|
2727
2734
|
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)); });
|
|
2728
|
-
i0.ɵɵelementStart(1, "timepicker",
|
|
2735
|
+
i0.ɵɵelementStart(1, "timepicker", 7);
|
|
2729
2736
|
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); });
|
|
2730
2737
|
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)); });
|
|
2731
2738
|
i0.ɵɵelementEnd()();
|
|
@@ -2736,13 +2743,13 @@ function TimeComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
2736
2743
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.bsTimeValue);
|
|
2737
2744
|
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);
|
|
2738
2745
|
} }
|
|
2739
|
-
function
|
|
2746
|
+
function TimeComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
2740
2747
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
2741
|
-
i0.ɵɵelementStart(0, "wm-datetimepicker",
|
|
2742
|
-
i0.ɵɵlistener("change", function
|
|
2748
|
+
i0.ɵɵelementStart(0, "wm-datetimepicker", 8);
|
|
2749
|
+
i0.ɵɵlistener("change", function TimeComponent_Conditional_6_Template_wm_datetimepicker_change_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onTimeChange($event)); });
|
|
2743
2750
|
i0.ɵɵelementEnd();
|
|
2744
|
-
i0.ɵɵelementStart(1, "div",
|
|
2745
|
-
i0.ɵɵlistener("click", function
|
|
2751
|
+
i0.ɵɵelementStart(1, "div", 9);
|
|
2752
|
+
i0.ɵɵlistener("click", function TimeComponent_Conditional_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_Conditional_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_Conditional_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)); });
|
|
2746
2753
|
i0.ɵɵelementEnd();
|
|
2747
2754
|
} if (rf & 2) {
|
|
2748
2755
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -3045,7 +3052,7 @@ class TimeComponent extends BaseDateTimeComponent {
|
|
|
3045
3052
|
provideAs(TimeComponent, NG_VALIDATORS, true),
|
|
3046
3053
|
provideAsWidgetRef(TimeComponent),
|
|
3047
3054
|
{ provide: TimepickerConfig, deps: [AbstractI18nService], useFactory: getTimepickerConfig }
|
|
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"], [
|
|
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) {
|
|
3049
3056
|
i0.ɵɵelementStart(0, "div", 0);
|
|
3050
3057
|
i0.ɵɵlistener("onShown", function TimeComponent_Template_div_onShown_0_listener() { return ctx.onShown(); })("onHidden", function TimeComponent_Template_div_onHidden_0_listener() { return ctx.hideTimepickerDropdown(); });
|
|
3051
3058
|
i0.ɵɵelementStart(1, "input", 1);
|
|
@@ -3057,7 +3064,7 @@ class TimeComponent extends BaseDateTimeComponent {
|
|
|
3057
3064
|
i0.ɵɵelementEnd()();
|
|
3058
3065
|
i0.ɵɵtemplate(5, TimeComponent_div_5_Template, 2, 14, "div", 5);
|
|
3059
3066
|
i0.ɵɵelementEnd();
|
|
3060
|
-
i0.ɵɵtemplate(6,
|
|
3067
|
+
i0.ɵɵtemplate(6, TimeComponent_Conditional_6_Template, 2, 6);
|
|
3061
3068
|
} if (rf & 2) {
|
|
3062
3069
|
i0.ɵɵproperty("isOpen", ctx.status.isopen)("container", "body");
|
|
3063
3070
|
i0.ɵɵadvance();
|
|
@@ -3066,8 +3073,8 @@ class TimeComponent extends BaseDateTimeComponent {
|
|
|
3066
3073
|
i0.ɵɵadvance(2);
|
|
3067
3074
|
i0.ɵɵproperty("tabindex", ctx.tabindex)("disabled", ctx.disabled || ctx.readonly || ctx.isCurrentTime);
|
|
3068
3075
|
i0.ɵɵadvance(3);
|
|
3069
|
-
i0.ɵɵ
|
|
3070
|
-
} }, dependencies: [
|
|
3076
|
+
i0.ɵɵconditional(ctx.loadNativeDateInput ? 6 : -1);
|
|
3077
|
+
} }, dependencies: [i3$1.BsDropdownMenuDirective, i3$1.BsDropdownDirective, i4.NgControlStatus, i4.NgModel, i5.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
|
|
3071
3078
|
}
|
|
3072
3079
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimeComponent, [{
|
|
3073
3080
|
type: Component,
|
|
@@ -3076,7 +3083,7 @@ class TimeComponent extends BaseDateTimeComponent {
|
|
|
3076
3083
|
provideAs(TimeComponent, NG_VALIDATORS, true),
|
|
3077
3084
|
provideAsWidgetRef(TimeComponent),
|
|
3078
3085
|
{ provide: TimepickerConfig, deps: [AbstractI18nService], useFactory: getTimepickerConfig }
|
|
3079
|
-
], template: "
|
|
3086
|
+
], 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@if (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}\n" }]
|
|
3080
3087
|
}], () => [{ type: i0.Injector }, { type: i0.NgZone }, { type: i1$1.AppDefaults }, { type: i1$1.App }, { type: undefined, decorators: [{
|
|
3081
3088
|
type: Inject,
|
|
3082
3089
|
args: ['EXPLICIT_CONTEXT']
|