@wavemaker/app-ng-runtime 11.5.2-next.140998 → 11.5.2-next.141004
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.
- app-ng-runtime/build-task/bundles/index.umd.js +1 -1
- app-ng-runtime/build-task/esm2020/data/form/form-field/form-field.build.mjs +2 -2
- app-ng-runtime/build-task/fesm2015/index.mjs +1 -1
- app-ng-runtime/build-task/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/build-task/fesm2020/index.mjs +1 -1
- app-ng-runtime/build-task/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +40 -10
- app-ng-runtime/components/base/esm2020/pipes/custom-pipes.mjs +24 -11
- app-ng-runtime/components/base/esm2020/pipes/wm-pipe.mjs +17 -0
- app-ng-runtime/components/base/esm2020/widgets/common/partial/partial.directive.mjs +2 -1
- app-ng-runtime/components/base/fesm2015/index.mjs +40 -10
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +40 -10
- app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/pipes/custom-pipes.d.ts +5 -2
- app-ng-runtime/components/base/pipes/wm-pipe.d.ts +9 -0
- app-ng-runtime/components/chart/bundles/index.umd.js +54 -35
- app-ng-runtime/components/chart/esm2020/chart.component.mjs +8 -6
- app-ng-runtime/components/chart/esm2020/chart.utils.mjs +50 -13
- app-ng-runtime/components/chart/fesm2015/index.mjs +56 -17
- app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/chart/fesm2020/index.mjs +56 -17
- app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js +14 -3
- app-ng-runtime/components/containers/wizard/esm2020/wizard.component.mjs +13 -4
- app-ng-runtime/components/containers/wizard/esm2020/wizard.props.mjs +2 -1
- app-ng-runtime/components/containers/wizard/fesm2015/index.mjs +14 -3
- app-ng-runtime/components/containers/wizard/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/fesm2020/index.mjs +13 -3
- app-ng-runtime/components/containers/wizard/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -0
- app-ng-runtime/components/data/form/bundles/index.umd.js +41 -27
- app-ng-runtime/components/data/form/esm2020/form-field/form-field.directive.mjs +28 -19
- app-ng-runtime/components/data/form/esm2020/form.component.mjs +19 -7
- app-ng-runtime/components/data/form/fesm2015/index.mjs +45 -27
- app-ng-runtime/components/data/form/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/fesm2020/index.mjs +45 -24
- app-ng-runtime/components/data/form/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +2 -0
- app-ng-runtime/components/data/table/bundles/index.umd.js +3 -2
- app-ng-runtime/components/data/table/esm2020/table.component.mjs +4 -3
- app-ng-runtime/components/data/table/fesm2015/index.mjs +3 -2
- app-ng-runtime/components/data/table/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/fesm2020/index.mjs +3 -2
- app-ng-runtime/components/data/table/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +231 -192
- app-ng-runtime/components/input/default/esm2020/caption-position.directive.mjs +2 -2
- app-ng-runtime/components/input/default/esm2020/number/number.component.mjs +7 -6
- app-ng-runtime/components/input/default/esm2020/number/number.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/select/select.component.mjs +58 -35
- app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.component.mjs +7 -6
- app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/text/color/input-color.component.mjs +7 -6
- app-ng-runtime/components/input/default/esm2020/text/color/input-color.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/text/email/input-email.component.mjs +7 -6
- app-ng-runtime/components/input/default/esm2020/text/email/input-email.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/text/number/input-number.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2020/text/number/input-number.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/text/text/input-text.component.mjs +8 -7
- app-ng-runtime/components/input/default/esm2020/text/text/input-text.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/textarea/textarea.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2020/textarea/textarea.props.mjs +3 -1
- app-ng-runtime/components/input/default/fesm2015/index.mjs +113 -74
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +110 -74
- app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/number/number.component.d.ts +2 -0
- app-ng-runtime/components/input/default/select/select.component.d.ts +4 -1
- app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +2 -0
- app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +2 -0
- app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +2 -0
- app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +2 -0
- app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +2 -0
- app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +2 -0
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +2 -2
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +50 -25
- app-ng-runtime/components/input/epoch/esm2020/base-date-time.component.mjs +36 -14
- app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +5 -5
- app-ng-runtime/components/input/epoch/esm2020/date-time/date-time.component.mjs +6 -5
- app-ng-runtime/components/input/epoch/esm2020/time/time.component.mjs +7 -5
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +50 -25
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +50 -25
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +15 -5
- app-ng-runtime/components/navigation/menu/esm2020/menu.component.mjs +12 -4
- app-ng-runtime/components/navigation/menu/esm2020/menu.props.mjs +2 -1
- app-ng-runtime/components/navigation/menu/esm2020/nav/nav.component.mjs +3 -3
- app-ng-runtime/components/navigation/menu/esm2020/nav/nav.props.mjs +2 -1
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs +15 -5
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs +15 -5
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +3 -0
- app-ng-runtime/components/navigation/menu/nav/nav.component.d.ts +1 -0
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js +2 -1
- app-ng-runtime/components/navigation/popover/esm2020/popover.component.mjs +3 -2
- app-ng-runtime/components/navigation/popover/fesm2015/index.mjs +2 -1
- app-ng-runtime/components/navigation/popover/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/popover/fesm2020/index.mjs +2 -1
- app-ng-runtime/components/navigation/popover/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/bundles/index.umd.js +1 -0
- app-ng-runtime/components/prefab/esm2020/prefab-container/prefab-container.directive.mjs +2 -1
- app-ng-runtime/components/prefab/fesm2015/index.mjs +1 -0
- app-ng-runtime/components/prefab/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/fesm2020/index.mjs +1 -0
- app-ng-runtime/components/prefab/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +2 -1
- app-ng-runtime/core/esm2020/utils/utils.mjs +3 -2
- app-ng-runtime/core/fesm2015/index.mjs +2 -1
- app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/core/fesm2020/index.mjs +2 -1
- app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +26 -1
- app-ng-runtime/runtime/base/components/base-page.component.d.ts +1 -0
- app-ng-runtime/runtime/base/esm2020/components/base-page.component.mjs +26 -1
- app-ng-runtime/runtime/base/esm2020/services/pipe-provider.service.mjs +2 -2
- app-ng-runtime/runtime/base/fesm2015/index.mjs +26 -1
- app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/fesm2020/index.mjs +26 -1
- app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/scripts/@wavemaker/nvd3/build/nv.d3.min.js +1 -0
- app-ng-runtime/scripts/d3/d3.min.js +2 -5
- app-ng-runtime/scripts/datatable/datatable.js +3 -3
- app-ng-runtime/scripts/@wavemaker.com/nvd3/build/nv.d3.min.js +0 -13
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('angular-imask'), require('@wm/components/base'), require('@wm/core'), require('rxjs')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@angular/forms', 'angular-imask', '@wm/components/base', '@wm/core', 'rxjs'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.input = {}), global.ng.core, global.ng.common, global.ng.forms, global.angularIMask, global.wm.components.base, global.wm.core, global.rxjs));
|
|
5
|
-
})(this, (function (exports, i0, i1,
|
|
5
|
+
})(this, (function (exports, i0, i1, i2$1, i3, i2, i1$1, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
|
|
24
24
|
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
25
25
|
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
26
|
-
var i1$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1$1);
|
|
27
26
|
var i2$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i2$1);
|
|
27
|
+
var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
|
|
28
28
|
var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
|
|
29
|
-
var i1$
|
|
29
|
+
var i1$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1$1);
|
|
30
30
|
|
|
31
31
|
const registerProps$e = () => {
|
|
32
32
|
i2.register('wm-button', new Map([
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
updateBoundVariable(value) {
|
|
240
240
|
let binddatavalue = this.binddatavalue;
|
|
241
241
|
// return if the variable bound is not static.
|
|
242
|
-
if (this.datavaluesource && this.datavaluesource.execute(i1$
|
|
242
|
+
if (this.datavaluesource && this.datavaluesource.execute(i1$1.DataSource.Operation.IS_API_AWARE)) {
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
245
|
else if (this.datavaluesource && !this.datavaluesource.twoWayBinding) {
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
}
|
|
333
333
|
ngOnInit() {
|
|
334
334
|
super.ngOnInit();
|
|
335
|
-
this._formControl = this.inj.get(
|
|
335
|
+
this._formControl = this.inj.get(i2$1.FormControlName, null);
|
|
336
336
|
}
|
|
337
337
|
registerOnChange(fn) {
|
|
338
338
|
this._onChange = fn;
|
|
@@ -409,8 +409,8 @@
|
|
|
409
409
|
]);
|
|
410
410
|
const registerProps$c = () => {
|
|
411
411
|
i2.register('wm-checkbox', checkboxProps);
|
|
412
|
-
i2.registerFormWidget(i1$
|
|
413
|
-
i2.registerFormWidget(i1$
|
|
412
|
+
i2.registerFormWidget(i1$1.FormWidgetType.CHECKBOX, checkboxProps);
|
|
413
|
+
i2.registerFormWidget(i1$1.FormWidgetType.TOGGLE, checkboxProps);
|
|
414
414
|
};
|
|
415
415
|
|
|
416
416
|
const _c0$b = ["checkbox"];
|
|
@@ -444,12 +444,12 @@
|
|
|
444
444
|
// if the checkbox is checked, return checkedvalue else return uncheckedvalue
|
|
445
445
|
// @ts-ignore
|
|
446
446
|
get datavalue() {
|
|
447
|
-
return i1$
|
|
447
|
+
return i1$1.isDefined(this.proxyModel) ? (this.proxyModel ? this._checkedvalue : this._uncheckedvalue) : undefined;
|
|
448
448
|
}
|
|
449
449
|
// when the datavalue is set, update the checked state
|
|
450
450
|
// @ts-ignore
|
|
451
451
|
set datavalue(v) {
|
|
452
|
-
this.proxyModel = (i1$
|
|
452
|
+
this.proxyModel = (i1$1.isDefined(v) && v !== '') ? v === this._checkedvalue : undefined;
|
|
453
453
|
this.updatePrevDatavalue(this.datavalue);
|
|
454
454
|
}
|
|
455
455
|
constructor(inj, checkedVal, uncheckedVal, type) {
|
|
@@ -459,7 +459,7 @@
|
|
|
459
459
|
this._checkedvalue = unStringify(checkedVal, true);
|
|
460
460
|
this._uncheckedvalue = unStringify(uncheckedVal, false);
|
|
461
461
|
// if the type of the checkbox is toggle update the related classes on the host node
|
|
462
|
-
i1$
|
|
462
|
+
i1$1.toggleClass(this.nativeElement, 'app-toggle', type === 'toggle');
|
|
463
463
|
}
|
|
464
464
|
onPropertyChange(key, nv, ov) {
|
|
465
465
|
if (key === 'tabindex') {
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
472
|
if (key === 'caption') {
|
|
473
|
-
if (!i1$
|
|
473
|
+
if (!i1$1.isDefined(nv) || nv === '') {
|
|
474
474
|
this._caption = ' ';
|
|
475
475
|
}
|
|
476
476
|
else {
|
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
CheckboxComponent.ɵfac = function CheckboxComponent_Factory(t) { return new (t || CheckboxComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵinjectAttribute('checkedvalue'), i0__namespace.ɵɵinjectAttribute('uncheckedvalue'), i0__namespace.ɵɵinjectAttribute('type')); };
|
|
516
516
|
CheckboxComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: CheckboxComponent, selectors: [["", "wmCheckbox", ""]], viewQuery: function CheckboxComponent_Query(rf, ctx) {
|
|
517
517
|
if (rf & 1) {
|
|
518
|
-
i0__namespace.ɵɵviewQuery(
|
|
518
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
519
519
|
i0__namespace.ɵɵviewQuery(_c0$b, 7, i0.ElementRef);
|
|
520
520
|
}
|
|
521
521
|
if (rf & 2) {
|
|
@@ -528,8 +528,8 @@
|
|
|
528
528
|
i0__namespace.ɵɵlistener("keydown.enter", function CheckboxComponent_keydown_enter_HostBindingHandler($event) { return ctx.onKeyDown($event, "ENTER"); });
|
|
529
529
|
}
|
|
530
530
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
531
|
-
i2.provideAs(CheckboxComponent,
|
|
532
|
-
i2.provideAs(CheckboxComponent,
|
|
531
|
+
i2.provideAs(CheckboxComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
532
|
+
i2.provideAs(CheckboxComponent, i2$1.NG_VALIDATORS, true),
|
|
533
533
|
i2.provideAsWidgetRef(CheckboxComponent)
|
|
534
534
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$a, decls: 6, vars: 17, consts: [[3, "ngClass"], ["type", "checkbox", "role", "checkbox", "focus-target", "", 3, "ngModel", "readonly", "required", "disabled", "tabindex", "ngModelChange", "blur"], ["checkbox", ""], [1, "caption", 3, "innerHtml"], ["alt", "Checkbox Image", "aria-hidden", "true", "src", "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", 1, "switch"], ["type", "hidden", "aria-hidden", "true", "tabindex", "-1", 1, "ng-hide", "model-holder", 3, "disabled", "value"]], template: function CheckboxComponent_Template(rf, ctx) {
|
|
535
535
|
if (rf & 1) {
|
|
@@ -550,13 +550,13 @@
|
|
|
550
550
|
i0__namespace.ɵɵadvance(2);
|
|
551
551
|
i0__namespace.ɵɵproperty("disabled", ctx.disabled)("value", ctx.proxyModel);
|
|
552
552
|
}
|
|
553
|
-
}, dependencies: [i1__namespace.NgClass,
|
|
553
|
+
}, dependencies: [i1__namespace.NgClass, i2$1__namespace.CheckboxControlValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.CheckboxRequiredValidator, i2$1__namespace.NgModel], encapsulation: 2 });
|
|
554
554
|
(function () {
|
|
555
555
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CheckboxComponent, [{
|
|
556
556
|
type: i0.Component,
|
|
557
557
|
args: [{ selector: '[wmCheckbox]', providers: [
|
|
558
|
-
i2.provideAs(CheckboxComponent,
|
|
559
|
-
i2.provideAs(CheckboxComponent,
|
|
558
|
+
i2.provideAs(CheckboxComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
559
|
+
i2.provideAs(CheckboxComponent, i2$1.NG_VALIDATORS, true),
|
|
560
560
|
i2.provideAsWidgetRef(CheckboxComponent)
|
|
561
561
|
], template: "<label [ngClass]=\"{'unchecked': !proxyModel, 'disabled': (disabled || readonly), 'required': (required && _caption)}\">\n <input type=\"checkbox\"\n role=\"checkbox\"\n #checkbox\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint\"\n [attr.aria-checked]=\"!!proxyModel\"\n focus-target\n [(ngModel)]=\"proxyModel\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled || readonly\"\n [attr.accesskey]=\"shortcutkey\"\n [tabindex]=\"tabindex\"\n (blur)=\"invokeOnTouched($event)\"\n (ngModelChange)=\"handleChange($event)\">\n <span class=\"caption\" [innerHtml]=\"_caption\"></span>\n <img alt=\"Checkbox Image\" aria-hidden=\"true\" src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" class=\"switch\"/>\n</label>\n<input type=\"hidden\" class=\"ng-hide model-holder\" aria-hidden=\"true\" tabindex=\"-1\" [disabled]=\"disabled\" [value]=\"proxyModel\">\n" }]
|
|
562
562
|
}], function () {
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
}] }];
|
|
573
573
|
}, { ngModel: [{
|
|
574
574
|
type: i0.ViewChild,
|
|
575
|
-
args: [
|
|
575
|
+
args: [i2$1.NgModel]
|
|
576
576
|
}], checkboxEl: [{
|
|
577
577
|
type: i0.ViewChild,
|
|
578
578
|
args: ['checkbox', { static: true, read: i0.ElementRef }]
|
|
@@ -619,14 +619,14 @@
|
|
|
619
619
|
this.allowempty = true;
|
|
620
620
|
this._debounceDatavalueUpdation = _.debounce((values) => {
|
|
621
621
|
// if no item is found in datasetItems, wait untill the dataset updates by preserving the datavalue in toBeProcessedDatavalue.
|
|
622
|
-
if (!i1$
|
|
622
|
+
if (!i1$1.isDefined(this._modelByKey) || (_.isArray(this._modelByKey) && !this._modelByKey.length)) {
|
|
623
623
|
this.toBeProcessedDatavalue = values;
|
|
624
624
|
this._modelByValue = '';
|
|
625
625
|
}
|
|
626
|
-
else if (i1$
|
|
626
|
+
else if (i1$1.isDefined(this.toBeProcessedDatavalue)) {
|
|
627
627
|
// obtain the first array value when multiple is set to false.
|
|
628
628
|
// set the modelByValue only when undefined.
|
|
629
|
-
if (!i1$
|
|
629
|
+
if (!i1$1.isDefined(this._modelByValue)) {
|
|
630
630
|
this._modelByValue = (!this.multiple && _.isArray(this.toBeProcessedDatavalue)) ? this.toBeProcessedDatavalue[0] : this.toBeProcessedDatavalue;
|
|
631
631
|
}
|
|
632
632
|
this.toBeProcessedDatavalue = undefined;
|
|
@@ -634,15 +634,15 @@
|
|
|
634
634
|
this.initDisplayValues();
|
|
635
635
|
}, 150);
|
|
636
636
|
this.datePipe = this.inj.get(i2.ToDatePipe);
|
|
637
|
-
this.appDefaults = this.inj.get(i1$
|
|
637
|
+
this.appDefaults = this.inj.get(i1$1.AppDefaults);
|
|
638
638
|
this.binddisplayexpression = this.nativeElement.getAttribute('displayexpression.bind');
|
|
639
639
|
this.binddisplayimagesrc = this.nativeElement.getAttribute('displayimagesrc.bind');
|
|
640
640
|
this.binddisplaylabel = this.nativeElement.getAttribute('displaylabel.bind');
|
|
641
|
-
this._debouncedInitDatasetItems = i1$
|
|
641
|
+
this._debouncedInitDatasetItems = i1$1.debounce(() => {
|
|
642
642
|
this.initDatasetItems();
|
|
643
|
-
i1$
|
|
643
|
+
i1$1.$appDigest();
|
|
644
644
|
}, 150);
|
|
645
|
-
this.handleHeaderClick = i1$
|
|
645
|
+
this.handleHeaderClick = i1$1.noop;
|
|
646
646
|
this.cancelLocaleChangeSubscription = this.getAppInstance().subscribe("locale-changed", () => {
|
|
647
647
|
this._debouncedInitDatasetItems();
|
|
648
648
|
});
|
|
@@ -700,10 +700,10 @@
|
|
|
700
700
|
selectByValue(values) {
|
|
701
701
|
this.resetDatasetItems();
|
|
702
702
|
// if datavalue is not defined or empty then set the model as undefined.
|
|
703
|
-
if (!i1$
|
|
703
|
+
if (!i1$1.isDefined(values) || values === '' || _.isNull(values) || (values instanceof Array && !values.length)) {
|
|
704
704
|
this._modelByKey = undefined;
|
|
705
705
|
// do not return when allowempty is set to true.
|
|
706
|
-
if (!this.allowempty || !i1$
|
|
706
|
+
if (!this.allowempty || !i1$1.isDefined(values)) {
|
|
707
707
|
return;
|
|
708
708
|
}
|
|
709
709
|
}
|
|
@@ -711,7 +711,7 @@
|
|
|
711
711
|
values = this.allowempty ? [values] : i2.extractDataAsArray(values);
|
|
712
712
|
}
|
|
713
713
|
// preserve the datavalue if datasetItems are empty.
|
|
714
|
-
if (!this.datasetItems.length && i1$
|
|
714
|
+
if (!this.datasetItems.length && i1$1.isDefined(values)) {
|
|
715
715
|
this.toBeProcessedDatavalue = values;
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
@@ -722,7 +722,7 @@
|
|
|
722
722
|
const itemByValue = _.find(this.datasetItems, item => {
|
|
723
723
|
if (filterField === 'dataObject') {
|
|
724
724
|
if (this.compareby && this.compareby.length) {
|
|
725
|
-
return i1$
|
|
725
|
+
return i1$1.isEqualWithFields(item[filterField], val, this.compareby);
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
728
|
return (_.isObject(item.value) ? _.isEqual(item.value, val) : (_.toString(item.value)).toLowerCase() === (_.toString(val)).toLowerCase());
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
const itemByValue = _.find(this.datasetItems, item => {
|
|
739
739
|
if (filterField === 'dataObject') {
|
|
740
740
|
if (this.compareby && this.compareby.length) {
|
|
741
|
-
return i1$
|
|
741
|
+
return i1$1.isEqualWithFields(item[filterField], values, this.compareby);
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
return (_.isObject(item.value) ? _.isEqual(item.value, values) : (_.toString(item.value)).toLowerCase() === (_.toString(values)).toLowerCase());
|
|
@@ -784,7 +784,7 @@
|
|
|
784
784
|
displayImgSrc: this.displayimagesrc
|
|
785
785
|
});
|
|
786
786
|
// get the unique objects out of the extracted data. Notify change in datasetItems using [...datasetItems] notation
|
|
787
|
-
this.datasetItems = [...i2.getUniqObjsByDataField(displayOptions, this.datafield, this.displayfield || this.displaylabel, i1$
|
|
787
|
+
this.datasetItems = [...i2.getUniqObjsByDataField(displayOptions, this.datafield, this.displayfield || this.displaylabel, i1$1.toBoolean(this.allowempty))];
|
|
788
788
|
}
|
|
789
789
|
this.postDatasetItemsInit();
|
|
790
790
|
}
|
|
@@ -909,7 +909,7 @@
|
|
|
909
909
|
]);
|
|
910
910
|
const registerProps$b = () => {
|
|
911
911
|
i2.register('wm-checkboxset', checkboxsetProps);
|
|
912
|
-
i2.registerFormWidget(i1$
|
|
912
|
+
i2.registerFormWidget(i1$1.FormWidgetType.CHECKBOXSET, new Map(checkboxsetProps));
|
|
913
913
|
};
|
|
914
914
|
|
|
915
915
|
const _c0$a = ["wmCheckboxset", ""];
|
|
@@ -1151,7 +1151,7 @@
|
|
|
1151
1151
|
return;
|
|
1152
1152
|
}
|
|
1153
1153
|
if (key === 'itemsperrow') {
|
|
1154
|
-
i1$
|
|
1154
|
+
i1$1.setListClass(this);
|
|
1155
1155
|
}
|
|
1156
1156
|
else {
|
|
1157
1157
|
super.onPropertyChange(key, nv, ov);
|
|
@@ -1165,8 +1165,8 @@
|
|
|
1165
1165
|
i0__namespace.ɵɵlistener("keydown.enter", function CheckboxsetComponent_keydown_enter_HostBindingHandler($event) { return ctx.onKeyDown($event, "ENTER"); });
|
|
1166
1166
|
}
|
|
1167
1167
|
}, exportAs: ["wmCheckboxset"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
1168
|
-
i2.provideAs(CheckboxsetComponent,
|
|
1169
|
-
i2.provideAs(CheckboxsetComponent,
|
|
1168
|
+
i2.provideAs(CheckboxsetComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
1169
|
+
i2.provideAs(CheckboxsetComponent, i2$1.NG_VALIDATORS, true),
|
|
1170
1170
|
i2.provideAsWidgetRef(CheckboxsetComponent)
|
|
1171
1171
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$a, decls: 5, vars: 4, consts: [[3, "ngIf", "ngIfElse"], ["hidden", "", 1, "model-holder", 3, "disabled"], ["class", "readonly-wrapper", 4, "ngIf"], ["groupedListTemplate", ""], ["partialContainer", "", "role", "presentation", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], ["partialContainer", "", "role", "presentation", 3, "ngClass", "wmItemTemplate", "userComponentParams", "click"], ["class", "app-checkboxset-label", 3, "ngClass", "title", 4, "ngIf"], ["class", "app-checkboxset-label", 3, "ngClass", 4, "ngIf"], [1, "app-checkboxset-label", 3, "ngClass", "title"], ["type", "checkbox", 3, "name", "tabindex", "disabled", "value", "checked"], [1, "caption", 3, "textContent"], [1, "app-checkboxset-label", 3, "ngClass"], ["partial-container-target", "", 1, "caption", "customTemplate"], [1, "readonly-wrapper"], ["class", "app-list-item-group", "role", "presentation", 4, "ngFor", "ngForOf"], ["role", "presentation", 1, "app-list-item-group"], [1, "item-group"], [1, "list-group-header", 3, "title", "ngClass", "click"], [1, "group-title"], [1, "header-action"], ["class", "app-icon wi action wi-chevron-up", 3, "title", 4, "ngIf"], ["class", "label label-default", 3, "textContent", 4, "ngIf"], ["partialContainer", "", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], [1, "app-icon", "wi", "action", "wi-chevron-up", 3, "title"], [1, "label", "label-default", 3, "textContent"], ["partialContainer", "", 3, "ngClass", "wmItemTemplate", "userComponentParams", "click"], ["type", "checkbox", "aria-label", "checkbox group", 3, "name", "tabindex", "disabled", "value", "checked"], ["partial-container-target", "", 1, "caption"]], template: function CheckboxsetComponent_Template(rf, ctx) {
|
|
1172
1172
|
if (rf & 1) {
|
|
@@ -1188,8 +1188,8 @@
|
|
|
1188
1188
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CheckboxsetComponent, [{
|
|
1189
1189
|
type: i0.Component,
|
|
1190
1190
|
args: [{ selector: '[wmCheckboxset]', exportAs: 'wmCheckboxset', providers: [
|
|
1191
|
-
i2.provideAs(CheckboxsetComponent,
|
|
1192
|
-
i2.provideAs(CheckboxsetComponent,
|
|
1191
|
+
i2.provideAs(CheckboxsetComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
1192
|
+
i2.provideAs(CheckboxsetComponent, i2$1.NG_VALIDATORS, true),
|
|
1193
1193
|
i2.provideAsWidgetRef(CheckboxsetComponent)
|
|
1194
1194
|
], template: "<ng-template [ngIf]=\"!groupby\" [ngIfElse]=\"groupedListTemplate\">\n <li [ngClass]=\"['checkbox', 'app-checkbox', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n *ngFor=\"let item of datasetItems; let i = index\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onCheckboxLabelClick($event, item.key)\" role=\"presentation\">\n <!-- Default item template -->\n <label *ngIf=\"!content\" class=\"app-checkboxset-label\" [ngClass]=\"{'disabled':disabled || readonly}\" [title]=\"item.label\">\n <input [name]=\"'checkboxset_' + widgetId\" type=\"checkbox\" [attr.aria-label]=\"item.key\"\n [tabindex]=\"tabindex\" [attr.aria-checked]=\"item.selected\"\n [disabled]=\"disabled || readonly\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption\" [textContent]=\"item.label\"></span>\n </label>\n <!-- Custom partial template -->\n <label *ngIf=\"content\" class=\"app-checkboxset-label\" [ngClass]=\"{'disabled':disabled || readonly}\" >\n <input [name]=\"'checkboxset_' + widgetId\" type=\"checkbox\" [attr.aria-label]=\"item.key\"\n [tabindex]=\"tabindex\" [attr.aria-checked]=\"item.selected\"\n [disabled]=\"disabled || readonly\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption customTemplate\" partial-container-target></span>\n </label>\n </li>\n</ng-template>\n<input [disabled]=\"disabled || readonly\" hidden class=\"model-holder\">\n<div *ngIf=\"readonly || disabled\" class=\"readonly-wrapper\"></div>\n\n<!-- This template will be displayed when groupby is specified. -->\n<ng-template #groupedListTemplate>\n <li *ngFor=\"let groupObj of groupedData\" class=\"app-list-item-group\" role=\"presentation\">\n <ul class=\"item-group\">\n <li class=\"list-group-header\" (click)=\"handleHeaderClick($event)\" [title]=\"groupObj.key\" [ngClass]=\"{'collapsible-content': collapsible}\">\n <h4 class=\"group-title\">{{groupObj.key}}\n <div class=\"header-action\">\n <i class=\"app-icon wi action wi-chevron-up\" *ngIf=\"collapsible\" title=\"{{appLocale.LABEL_COLLAPSE}}/{{appLocale.LABEL_EXPAND}}\"></i>\n <span *ngIf=\"showcount\" class=\"label label-default\" [textContent]=\"groupObj.data.length\"></span>\n </div>\n </h4>\n </li>\n <li *ngFor=\"let item of groupObj.data; let i = index;\"\n [ngClass]=\"['checkbox', 'app-checkbox', 'group-list-item', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onCheckboxLabelClick($event, item)\">\n <!-- Default item template -->\n <label *ngIf=\"!content\" class=\"app-checkboxset-label\" [ngClass]=\"{'disabled':disabled || readonly}\" [title]=\"item.label\">\n <input [name]=\"'checkboxset_' + widgetId\" type=\"checkbox\" aria-label=\"checkbox group\"\n [tabindex]=\"tabindex\"\n [disabled]=\"disabled || readonly\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption\" [textContent]=\"item.label\"></span>\n </label>\n <!-- Custom partial template -->\n <label *ngIf=\"content\" class=\"app-checkboxset-label\" [ngClass]=\"{'disabled':disabled || readonly}\" >\n <input [name]=\"'checkboxset_' + widgetId\" type=\"checkbox\" aria-label=\"checkbox group\"\n [tabindex]=\"tabindex\"\n [disabled]=\"disabled || readonly\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption\" partial-container-target></span>\n </label>\n </li>\n </ul>\n </li>\n</ng-template>\n" }]
|
|
1195
1195
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { onKeyDown: [{
|
|
@@ -1231,7 +1231,7 @@
|
|
|
1231
1231
|
*/
|
|
1232
1232
|
onPropertyChange(key, nv, ov) {
|
|
1233
1233
|
if (key === 'captionposition') {
|
|
1234
|
-
i1$
|
|
1234
|
+
i1$1.switchClass(this.nativeElement, CAPTION_POSITION[nv], CAPTION_POSITION[ov]);
|
|
1235
1235
|
}
|
|
1236
1236
|
else if (key === 'required') {
|
|
1237
1237
|
this.required = nv;
|
|
@@ -1253,7 +1253,7 @@
|
|
|
1253
1253
|
}
|
|
1254
1254
|
ngAfterViewInit() {
|
|
1255
1255
|
super.ngAfterViewInit();
|
|
1256
|
-
i1$
|
|
1256
|
+
i1$1.addForIdAttributes(this.nativeElement);
|
|
1257
1257
|
this.assignRequiredToSubComponents();
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
@@ -1307,11 +1307,13 @@
|
|
|
1307
1307
|
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
1308
1308
|
['trailingzero', Object.assign({ value: false }, i2.PROP_BOOLEAN)],
|
|
1309
1309
|
['updateon', i2.PROP_STRING],
|
|
1310
|
-
['inputmode', Object.assign({ value: 'natural' }, i2.PROP_STRING)]
|
|
1310
|
+
['inputmode', Object.assign({ value: 'natural' }, i2.PROP_STRING)],
|
|
1311
|
+
['conditionalclass', i2.PROP_ANY],
|
|
1312
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
1311
1313
|
]);
|
|
1312
1314
|
const registerProps$9 = () => {
|
|
1313
1315
|
i2.register('wm-number', numberProps);
|
|
1314
|
-
i2.registerFormWidget(i1$
|
|
1316
|
+
i2.registerFormWidget(i1$1.FormWidgetType.NUMBER, new Map(numberProps));
|
|
1315
1317
|
};
|
|
1316
1318
|
|
|
1317
1319
|
class BaseInput extends BaseFormCustomComponent {
|
|
@@ -1326,7 +1328,7 @@
|
|
|
1326
1328
|
}
|
|
1327
1329
|
if (key === 'class') {
|
|
1328
1330
|
if (this.inputEl.nativeElement) {
|
|
1329
|
-
i1$
|
|
1331
|
+
i1$1.switchClass(this.inputEl.nativeElement, nv, ov);
|
|
1330
1332
|
}
|
|
1331
1333
|
}
|
|
1332
1334
|
else if (key === 'datavalue') {
|
|
@@ -1361,13 +1363,13 @@
|
|
|
1361
1363
|
const unMaskedVal = _.get(this.imask, 'maskRef.unmaskedValue');
|
|
1362
1364
|
val = unMaskedVal ? unMaskedVal : val;
|
|
1363
1365
|
this.ngModel.update.next(val);
|
|
1364
|
-
i1$
|
|
1366
|
+
i1$1.$appDigest();
|
|
1365
1367
|
}
|
|
1366
1368
|
ngAfterViewInit() {
|
|
1367
1369
|
super.ngAfterViewInit();
|
|
1368
1370
|
// add the class on the input element
|
|
1369
1371
|
if (this.class) {
|
|
1370
|
-
i1$
|
|
1372
|
+
i1$1.addClass(this.inputEl.nativeElement, this.class);
|
|
1371
1373
|
}
|
|
1372
1374
|
i2.styler(this.inputEl.nativeElement, this);
|
|
1373
1375
|
}
|
|
@@ -1610,7 +1612,7 @@
|
|
|
1610
1612
|
onInputChange(value) {
|
|
1611
1613
|
const stepVal = this.stepLength();
|
|
1612
1614
|
// WMS-22355, Trigger change cb if value exists or value is empty but datavalue exists (when value is selected and deleted).
|
|
1613
|
-
if (i1$
|
|
1615
|
+
if (i1$1.isDefined(value) && (value !== '' || this.datavalue)) {
|
|
1614
1616
|
this.handleChange(value);
|
|
1615
1617
|
}
|
|
1616
1618
|
else {
|
|
@@ -1846,11 +1848,11 @@
|
|
|
1846
1848
|
}
|
|
1847
1849
|
}
|
|
1848
1850
|
NumberComponent.initializeProps = registerProps$9();
|
|
1849
|
-
NumberComponent.ɵfac = function NumberComponent_Factory(t) { return new (t || NumberComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1$
|
|
1851
|
+
NumberComponent.ɵfac = function NumberComponent_Factory(t) { return new (t || NumberComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.AbstractI18nService), i0__namespace.ɵɵdirectiveInject(i2__namespace.TrailingZeroDecimalPipe)); };
|
|
1850
1852
|
NumberComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: NumberComponent, selectors: [["", "wmNumber", ""]], viewQuery: function NumberComponent_Query(rf, ctx) {
|
|
1851
1853
|
if (rf & 1) {
|
|
1852
1854
|
i0__namespace.ɵɵviewQuery(_c0$9, 7);
|
|
1853
|
-
i0__namespace.ɵɵviewQuery(
|
|
1855
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 7);
|
|
1854
1856
|
}
|
|
1855
1857
|
if (rf & 2) {
|
|
1856
1858
|
let _t;
|
|
@@ -1858,34 +1860,34 @@
|
|
|
1858
1860
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
1859
1861
|
}
|
|
1860
1862
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
1861
|
-
i2.provideAs(NumberComponent,
|
|
1862
|
-
i2.provideAs(NumberComponent,
|
|
1863
|
+
i2.provideAs(NumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
1864
|
+
i2.provideAs(NumberComponent, i2$1.NG_VALIDATORS, true),
|
|
1863
1865
|
i2.provideAsWidgetRef(NumberComponent)
|
|
1864
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$8, decls: 2, vars:
|
|
1866
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$8, decls: 2, vars: 14, consts: [["inputmode", "decimal", "focus-target", "", "role", "textbox", "type", "text", 1, "form-control", "app-textbox", "app-number-input", 3, "ngModel", "readonly", "disabled", "pattern", "autofocus", "ngClass", "ngStyle", "ngModelOptions", "required", "ngModelChange", "blur", "focus", "input", "keypress", "keydown.backspace", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown"], ["input", ""]], template: function NumberComponent_Template(rf, ctx) {
|
|
1865
1867
|
if (rf & 1) {
|
|
1866
1868
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
1867
1869
|
i0__namespace.ɵɵlistener("ngModelChange", function NumberComponent_Template_input_ngModelChange_0_listener($event) { return ctx.onModelChange($event); })("blur", function NumberComponent_Template_input_blur_0_listener($event) { ctx.handleBlur($event); return ctx.checkForTrailingZeros($event); })("focus", function NumberComponent_Template_input_focus_0_listener($event) { return ctx.checkForTrailingZeros($event); })("input", function NumberComponent_Template_input_input_0_listener($event) { return ctx.onInputChange($event.target.value); })("keypress", function NumberComponent_Template_input_keypress_0_listener($event) { return ctx.validateInputEntry($event); })("keydown.backspace", function NumberComponent_Template_input_keydown_backspace_0_listener($event) { return ctx.onBackspace($event); })("keydown.enter", function NumberComponent_Template_input_keydown_enter_0_listener($event) { return ctx.onEnter($event); })("keydown.ArrowUp", function NumberComponent_Template_input_keydown_ArrowUp_0_listener($event) { return ctx.onArrowPress($event, "UP"); })("keydown.ArrowDown", function NumberComponent_Template_input_keydown_ArrowDown_0_listener($event) { return ctx.onArrowPress($event, "DOWN"); });
|
|
1868
1870
|
i0__namespace.ɵɵelementEnd();
|
|
1869
1871
|
}
|
|
1870
1872
|
if (rf & 2) {
|
|
1871
|
-
i0__namespace.ɵɵproperty("ngModel", ctx.displayValue)("readonly", ctx.readonly)("disabled", ctx.disabled)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngModelOptions", ctx.ngModelOptions)("required", ctx.required);
|
|
1873
|
+
i0__namespace.ɵɵproperty("ngModel", ctx.displayValue)("readonly", ctx.readonly)("disabled", ctx.disabled)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle)("ngModelOptions", ctx.ngModelOptions)("required", ctx.required);
|
|
1872
1874
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
1873
1875
|
}
|
|
1874
|
-
}, dependencies: [
|
|
1876
|
+
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.PatternValidator, i2$1__namespace.NgModel], encapsulation: 2 });
|
|
1875
1877
|
(function () {
|
|
1876
1878
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NumberComponent, [{
|
|
1877
1879
|
type: i0.Component,
|
|
1878
1880
|
args: [{ selector: '[wmNumber]', providers: [
|
|
1879
|
-
i2.provideAs(NumberComponent,
|
|
1880
|
-
i2.provideAs(NumberComponent,
|
|
1881
|
+
i2.provideAs(NumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
1882
|
+
i2.provideAs(NumberComponent, i2$1.NG_VALIDATORS, true),
|
|
1881
1883
|
i2.provideAsWidgetRef(NumberComponent)
|
|
1882
|
-
], template: "<input class=\"form-control app-textbox app-number-input\"\n inputmode=\"decimal\"\n focus-target\n [attr.name]=\"name\"\n role=\"textbox\"\n type=\"text\"\n [ngModel]=\"displayValue\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n [autofocus]=\"autofocus\"\n (ngModelChange)=\"onModelChange($event)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n [ngModelOptions]=\"ngModelOptions\"\n [required]=\"required\"\n (keypress)=\"validateInputEntry($event)\"\n (keydown.backspace)=\"onBackspace($event)\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\"\n #input>\n" }]
|
|
1883
|
-
}], function () { return [{ type: i0__namespace.Injector }, { type: i1$
|
|
1884
|
+
], template: "<input class=\"form-control app-textbox app-number-input\"\n inputmode=\"decimal\"\n focus-target\n [attr.name]=\"name\"\n role=\"textbox\"\n type=\"text\"\n [ngModel]=\"displayValue\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (ngModelChange)=\"onModelChange($event)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n [ngModelOptions]=\"ngModelOptions\"\n [required]=\"required\"\n (keypress)=\"validateInputEntry($event)\"\n (keydown.backspace)=\"onBackspace($event)\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\"\n #input>\n" }]
|
|
1885
|
+
}], function () { return [{ type: i0__namespace.Injector }, { type: i1$1__namespace.AbstractI18nService }, { type: i2__namespace.TrailingZeroDecimalPipe }]; }, { inputEl: [{
|
|
1884
1886
|
type: i0.ViewChild,
|
|
1885
1887
|
args: ['input', { static: true }]
|
|
1886
1888
|
}], ngModel: [{
|
|
1887
1889
|
type: i0.ViewChild,
|
|
1888
|
-
args: [
|
|
1890
|
+
args: [i2$1.NgModel, { static: true }]
|
|
1889
1891
|
}] });
|
|
1890
1892
|
})();
|
|
1891
1893
|
|
|
@@ -1919,7 +1921,7 @@
|
|
|
1919
1921
|
]);
|
|
1920
1922
|
const registerProps$8 = () => {
|
|
1921
1923
|
i2.register('wm-radioset', radiosetProps);
|
|
1922
|
-
i2.registerFormWidget(i1$
|
|
1924
|
+
i2.registerFormWidget(i1$1.FormWidgetType.RADIOSET, new Map(radiosetProps));
|
|
1923
1925
|
};
|
|
1924
1926
|
|
|
1925
1927
|
const _c0$8 = ["wmRadioset", ""];
|
|
@@ -2150,7 +2152,7 @@
|
|
|
2150
2152
|
return;
|
|
2151
2153
|
}
|
|
2152
2154
|
if (key === 'itemsperrow') {
|
|
2153
|
-
i1$
|
|
2155
|
+
i1$1.setListClass(this);
|
|
2154
2156
|
}
|
|
2155
2157
|
else {
|
|
2156
2158
|
super.onPropertyChange(key, nv, ov);
|
|
@@ -2160,8 +2162,8 @@
|
|
|
2160
2162
|
RadiosetComponent.initializeProps = registerProps$8();
|
|
2161
2163
|
RadiosetComponent.ɵfac = function RadiosetComponent_Factory(t) { return new (t || RadiosetComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
2162
2164
|
RadiosetComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: RadiosetComponent, selectors: [["", "wmRadioset", ""]], exportAs: ["wmRadioset"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
2163
|
-
i2.provideAs(RadiosetComponent,
|
|
2164
|
-
i2.provideAs(RadiosetComponent,
|
|
2165
|
+
i2.provideAs(RadiosetComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2166
|
+
i2.provideAs(RadiosetComponent, i2$1.NG_VALIDATORS, true),
|
|
2165
2167
|
i2.provideAsWidgetRef(RadiosetComponent)
|
|
2166
2168
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$8, decls: 5, vars: 4, consts: [[3, "ngIf", "ngIfElse"], ["hidden", "", 1, "model-holder", 3, "disabled"], ["aria-readonly", "true", "class", "readonly-wrapper", 4, "ngIf"], ["groupedListTemplate", ""], ["partialContainer", "", "role", "presentation", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], ["partialContainer", "", "role", "presentation", 3, "ngClass", "wmItemTemplate", "userComponentParams", "click"], ["class", "app-radioset-label", 3, "ngClass", 4, "ngIf"], [1, "app-radioset-label", 3, "ngClass"], ["type", "radio", 3, "name", "value", "disabled", "tabindex", "checked"], [1, "caption", 3, "textContent"], ["partial-container-target", "", 1, "caption", "customTemplate"], ["aria-readonly", "true", 1, "readonly-wrapper"], ["class", "app-list-item-group", 4, "ngFor", "ngForOf"], [1, "app-list-item-group"], [1, "item-group"], [1, "list-group-header", 3, "title", "ngClass", "click"], [1, "group-title"], [1, "header-action"], ["class", "app-icon wi action wi-chevron-up", 3, "title", 4, "ngIf"], ["class", "label label-default", 3, "textContent", 4, "ngIf"], ["partialContainer", "", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], [1, "app-icon", "wi", "action", "wi-chevron-up", 3, "title"], [1, "label", "label-default", 3, "textContent"], ["partialContainer", "", 3, "ngClass", "wmItemTemplate", "userComponentParams", "click"]], template: function RadiosetComponent_Template(rf, ctx) {
|
|
2167
2169
|
if (rf & 1) {
|
|
@@ -2183,8 +2185,8 @@
|
|
|
2183
2185
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RadiosetComponent, [{
|
|
2184
2186
|
type: i0.Component,
|
|
2185
2187
|
args: [{ selector: '[wmRadioset]', exportAs: 'wmRadioset', providers: [
|
|
2186
|
-
i2.provideAs(RadiosetComponent,
|
|
2187
|
-
i2.provideAs(RadiosetComponent,
|
|
2188
|
+
i2.provideAs(RadiosetComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2189
|
+
i2.provideAs(RadiosetComponent, i2$1.NG_VALIDATORS, true),
|
|
2188
2190
|
i2.provideAsWidgetRef(RadiosetComponent)
|
|
2189
2191
|
], template: "<ng-template [ngIf]=\"!groupby\" [ngIfElse]=\"groupedListTemplate\">\n <li [ngClass]=\"['radio', 'app-radio', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n *ngFor=\"let item of datasetItems;let i = index\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onRadioLabelClick($event, item.key)\" role=\"presentation\">\n <!-- Default item template -->\n <label *ngIf=\"!content\" class=\"app-radioset-label\"\n [ngClass]=\"{'disabled':disabled || readonly}\">\n <input [name]=\"'radioset_' + widgetId\" type=\"radio\" [attr.aria-checked]=\"item.selected\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [disabled]=\"disabled || readonly\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"\n [attr.aria-label]=\"item.key\"/>\n <span class=\"caption\" [textContent]=\"item.label\"></span>\n </label>\n <!-- Custom partial template -->\n <label *ngIf=\"content\" class=\"app-radioset-label\"\n [ngClass]=\"{'disabled':disabled || readonly}\">\n <input [name]=\"'radioset_' + widgetId\" type=\"radio\" [attr.aria-checked]=\"item.selected\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [disabled]=\"disabled || readonly\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"\n [attr.aria-label]=\"item.key\"/>\n <span class=\"caption customTemplate\" partial-container-target></span>\n </label>\n </li>\n</ng-template>\n\n<input [disabled]=\"disabled || readonly\" hidden class=\"model-holder\">\n<div *ngIf=\"readonly || disabled\" aria-readonly=\"true\" class=\"readonly-wrapper\"></div>\n\n<!-- This template will be displayed when groupby is specified. -->\n<ng-template #groupedListTemplate>\n <li *ngFor=\"let groupObj of groupedData\" class=\"app-list-item-group\">\n <ul class=\"item-group\">\n <li class=\"list-group-header\" (click)=\"handleHeaderClick($event)\" [title]=\"groupObj.key\" [ngClass]=\"{'collapsible-content': collapsible}\">\n <h4 class=\"group-title\">{{groupObj.key}}\n <div class=\"header-action\">\n <i class=\"app-icon wi action wi-chevron-up\" *ngIf=\"collapsible\" title=\"{{appLocale.LABEL_COLLAPSE}}/{{appLocale.LABEL_EXPAND}}\"></i>\n <span *ngIf=\"showcount\" class=\"label label-default\" [textContent]=\"groupObj.data.length\"></span>\n </div>\n </h4>\n </li>\n <li *ngFor=\"let item of groupObj.data; let i = index;\"\n [ngClass]=\"['radio', 'app-radio', 'group-list-item', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onRadioLabelClick($event, item)\">\n <!-- Default item template -->\n <label *ngIf=\"!content\" class=\"app-radioset-label\"\n [ngClass]=\"{'disabled':disabled || readonly}\">\n <input [name]=\"'radioset_' + widgetId\" type=\"radio\" [attr.aria-checked]=\"item.selected\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [disabled]=\"disabled || readonly\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption\" [textContent]=\"item.label\"></span>\n </label>\n <!-- Custom partial template -->\n <label *ngIf=\"content\" class=\"app-radioset-label\"\n [ngClass]=\"{'disabled':disabled || readonly}\">\n <input [name]=\"'radioset_' + widgetId\" type=\"radio\" [attr.aria-checked]=\"item.selected\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [disabled]=\"disabled || readonly\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption customTemplate\" partial-container-target></span>\n </label>\n </li>\n </ul>\n </li>\n</ng-template>\n" }]
|
|
2190
2192
|
}], function () { return [{ type: i0__namespace.Injector }]; }, null);
|
|
@@ -2219,81 +2221,94 @@
|
|
|
2219
2221
|
]);
|
|
2220
2222
|
const registerProps$7 = () => {
|
|
2221
2223
|
i2.register('wm-select', selectProps);
|
|
2222
|
-
i2.registerFormWidget(i1$
|
|
2223
|
-
i2.registerFormWidget(i1$
|
|
2224
|
+
i2.registerFormWidget(i1$1.FormWidgetType.SELECT, new Map(selectProps));
|
|
2225
|
+
i2.registerFormWidget(i1$1.FormWidgetType.TYPEAHEAD, new Map(selectProps));
|
|
2224
2226
|
};
|
|
2225
2227
|
|
|
2226
2228
|
const _c0$7 = ["select"];
|
|
2229
|
+
function SelectComponent_option_2_Template(rf, ctx) {
|
|
2230
|
+
if (rf & 1) {
|
|
2231
|
+
i0__namespace.ɵɵelement(0, "option", 4);
|
|
2232
|
+
}
|
|
2233
|
+
if (rf & 2) {
|
|
2234
|
+
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
2235
|
+
i0__namespace.ɵɵproperty("textContent", ctx_r1.placeholder)("hidden", !ctx_r1.placeholder);
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2227
2238
|
function SelectComponent_ng_container_3_optgroup_1_option_1_Template(rf, ctx) {
|
|
2228
2239
|
if (rf & 1) {
|
|
2229
|
-
i0__namespace.ɵɵelement(0, "option",
|
|
2240
|
+
i0__namespace.ɵɵelement(0, "option", 8);
|
|
2230
2241
|
}
|
|
2231
2242
|
if (rf & 2) {
|
|
2232
|
-
const
|
|
2233
|
-
i0__namespace.ɵɵproperty("value",
|
|
2243
|
+
const item_r7 = ctx.$implicit;
|
|
2244
|
+
i0__namespace.ɵɵproperty("value", item_r7.key)("selected", item_r7.selected)("textContent", item_r7.label);
|
|
2234
2245
|
}
|
|
2235
2246
|
}
|
|
2236
2247
|
function SelectComponent_ng_container_3_optgroup_1_Template(rf, ctx) {
|
|
2237
2248
|
if (rf & 1) {
|
|
2238
|
-
i0__namespace.ɵɵelementStart(0, "optgroup",
|
|
2239
|
-
i0__namespace.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_option_1_Template, 1, 3, "option",
|
|
2249
|
+
i0__namespace.ɵɵelementStart(0, "optgroup", 6);
|
|
2250
|
+
i0__namespace.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_option_1_Template, 1, 3, "option", 7);
|
|
2240
2251
|
i0__namespace.ɵɵelementEnd();
|
|
2241
2252
|
}
|
|
2242
2253
|
if (rf & 2) {
|
|
2243
|
-
const
|
|
2244
|
-
i0__namespace.ɵɵproperty("label",
|
|
2254
|
+
const groupObj_r5 = ctx.$implicit;
|
|
2255
|
+
i0__namespace.ɵɵproperty("label", groupObj_r5.key);
|
|
2245
2256
|
i0__namespace.ɵɵadvance(1);
|
|
2246
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
2257
|
+
i0__namespace.ɵɵproperty("ngForOf", groupObj_r5.data);
|
|
2247
2258
|
}
|
|
2248
2259
|
}
|
|
2249
2260
|
function SelectComponent_ng_container_3_Template(rf, ctx) {
|
|
2250
2261
|
if (rf & 1) {
|
|
2251
2262
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
2252
|
-
i0__namespace.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_Template, 2, 2, "optgroup",
|
|
2263
|
+
i0__namespace.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_Template, 2, 2, "optgroup", 5);
|
|
2253
2264
|
i0__namespace.ɵɵelementContainerEnd();
|
|
2254
2265
|
}
|
|
2255
2266
|
if (rf & 2) {
|
|
2256
|
-
const
|
|
2267
|
+
const ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
2257
2268
|
i0__namespace.ɵɵadvance(1);
|
|
2258
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
2269
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r2.groupedData);
|
|
2259
2270
|
}
|
|
2260
2271
|
}
|
|
2261
2272
|
function SelectComponent_ng_container_4_option_1_Template(rf, ctx) {
|
|
2262
2273
|
if (rf & 1) {
|
|
2263
|
-
i0__namespace.ɵɵelement(0, "option",
|
|
2274
|
+
i0__namespace.ɵɵelement(0, "option", 8);
|
|
2264
2275
|
}
|
|
2265
2276
|
if (rf & 2) {
|
|
2266
|
-
const
|
|
2267
|
-
i0__namespace.ɵɵproperty("value",
|
|
2277
|
+
const item_r9 = ctx.$implicit;
|
|
2278
|
+
i0__namespace.ɵɵproperty("value", item_r9.key)("selected", item_r9.selected)("textContent", item_r9.label);
|
|
2268
2279
|
}
|
|
2269
2280
|
}
|
|
2270
2281
|
function SelectComponent_ng_container_4_Template(rf, ctx) {
|
|
2271
2282
|
if (rf & 1) {
|
|
2272
2283
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
2273
|
-
i0__namespace.ɵɵtemplate(1, SelectComponent_ng_container_4_option_1_Template, 1, 3, "option",
|
|
2284
|
+
i0__namespace.ɵɵtemplate(1, SelectComponent_ng_container_4_option_1_Template, 1, 3, "option", 7);
|
|
2274
2285
|
i0__namespace.ɵɵelementContainerEnd();
|
|
2275
2286
|
}
|
|
2276
2287
|
if (rf & 2) {
|
|
2277
|
-
const
|
|
2288
|
+
const ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
2278
2289
|
i0__namespace.ɵɵadvance(1);
|
|
2279
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
2290
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r3.datasetItems);
|
|
2280
2291
|
}
|
|
2281
2292
|
}
|
|
2282
2293
|
const _c1$6 = function (a1) { return ["app-select form-control", a1]; };
|
|
2283
2294
|
const WIDGET_CONFIG$7 = { widgetType: 'wm-select', hostClass: 'app-select-wrapper' };
|
|
2284
2295
|
class SelectComponent extends DatasetAwareFormComponent {
|
|
2285
2296
|
set datasource(ds) {
|
|
2286
|
-
if (ds && ds.execute && ds.execute(i1$
|
|
2287
|
-
this.datavalue = ds.execute(i1$
|
|
2297
|
+
if (ds && ds.execute && ds.execute(i1$1.DataSource.Operation.IS_BOUND_TO_LOCALE)) {
|
|
2298
|
+
this.datavalue = ds.execute(i1$1.DataSource.Operation.GET_DEFAULT_LOCALE);
|
|
2288
2299
|
}
|
|
2289
2300
|
}
|
|
2290
|
-
constructor(inj) {
|
|
2301
|
+
constructor(inj, app) {
|
|
2291
2302
|
super(inj, WIDGET_CONFIG$7);
|
|
2303
|
+
this.app = app;
|
|
2292
2304
|
this.acceptsArray = true;
|
|
2293
2305
|
}
|
|
2294
2306
|
ngAfterViewInit() {
|
|
2295
2307
|
super.ngAfterViewInit();
|
|
2296
2308
|
i2.styler(this.selectEl.nativeElement, this);
|
|
2309
|
+
setTimeout(() => {
|
|
2310
|
+
this.checkForFloatingLabel(null);
|
|
2311
|
+
}, 10);
|
|
2297
2312
|
}
|
|
2298
2313
|
// Change event is registered from the template, Prevent the framework from registering one more event
|
|
2299
2314
|
handleEvent(node, eventName, eventCallback, locals) {
|
|
@@ -2336,10 +2351,13 @@
|
|
|
2336
2351
|
return;
|
|
2337
2352
|
}
|
|
2338
2353
|
else if (key === 'readonly') {
|
|
2339
|
-
(nv === true) ? i1$
|
|
2354
|
+
(nv === true) ? i1$1.setAttr(this.selectEl.nativeElement, 'readonly', 'readonly') : i1$1.removeAttr(this.selectEl.nativeElement, 'readonly');
|
|
2340
2355
|
}
|
|
2341
2356
|
super.onPropertyChange(key, nv, ov);
|
|
2342
2357
|
}
|
|
2358
|
+
isIosPlatform() {
|
|
2359
|
+
return i1$1.isIos();
|
|
2360
|
+
}
|
|
2343
2361
|
/**
|
|
2344
2362
|
* When caption floating is enabled and placeholder is given, do not show placeholder until user focuses on the field
|
|
2345
2363
|
* When focused add the placeholder to the option which is selected
|
|
@@ -2349,18 +2367,27 @@
|
|
|
2349
2367
|
checkForFloatingLabel($event) {
|
|
2350
2368
|
const captionEl = $(this.selectEl.nativeElement).closest('.app-composite-widget.caption-floating');
|
|
2351
2369
|
if (captionEl.length > 0) {
|
|
2352
|
-
if ($event.type === 'focus' && (
|
|
2353
|
-
|
|
2370
|
+
if ((!$event || $event.type === 'focus') && (($(this.selectEl).find('select option:selected').text() === '' && (this.placeholder || this.datavalue || this.isIosPlatform())))) {
|
|
2371
|
+
if (!$event && (this.placeholder || this.datavalue || this.isIosPlatform())) {
|
|
2372
|
+
this.app.notify('captionPositionAnimate', { isSelect: true, nativeEl: captionEl });
|
|
2373
|
+
}
|
|
2374
|
+
if (this.placeholder) {
|
|
2375
|
+
$(this.selectEl.nativeElement).find('option:first').text(this.placeholder);
|
|
2376
|
+
}
|
|
2354
2377
|
}
|
|
2355
2378
|
else if (!this.datavalue) {
|
|
2356
|
-
|
|
2357
|
-
|
|
2379
|
+
if (!this.placeholder) {
|
|
2380
|
+
// $(this.selectEl.nativeElement).find('option:first').text('');
|
|
2381
|
+
if (!this.isIosPlatform()) {
|
|
2382
|
+
captionEl.removeClass('float-active');
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2358
2385
|
}
|
|
2359
2386
|
}
|
|
2360
2387
|
}
|
|
2361
2388
|
}
|
|
2362
2389
|
SelectComponent.initializeProps = registerProps$7();
|
|
2363
|
-
SelectComponent.ɵfac = function SelectComponent_Factory(t) { return new (t || SelectComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
2390
|
+
SelectComponent.ɵfac = function SelectComponent_Factory(t) { return new (t || SelectComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.App)); };
|
|
2364
2391
|
SelectComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SelectComponent, selectors: [["wm-select"]], viewQuery: function SelectComponent_Query(rf, ctx) {
|
|
2365
2392
|
if (rf & 1) {
|
|
2366
2393
|
i0__namespace.ɵɵviewQuery(_c0$7, 7, i0.ElementRef);
|
|
@@ -2370,38 +2397,38 @@
|
|
|
2370
2397
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.selectEl = _t.first);
|
|
2371
2398
|
}
|
|
2372
2399
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2373
|
-
i2.provideAs(SelectComponent,
|
|
2374
|
-
i2.provideAs(SelectComponent,
|
|
2400
|
+
i2.provideAs(SelectComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2401
|
+
i2.provideAs(SelectComponent, i2$1.NG_VALIDATORS, true),
|
|
2375
2402
|
i2.provideAsWidgetRef(SelectComponent)
|
|
2376
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
2403
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], decls: 5, vars: 15, consts: [["role", "listbox", "aria-haspopup", "true", "aria-expanded", "false", "focus-target", "", 3, "ngClass", "disabled", "required", "tabindex", "ngModel", "multiple", "autofocus", "ngModelChange", "change", "focus", "blur"], ["select", ""], ["value", "undefined", 3, "textContent", "hidden", 4, "ngIf"], [4, "ngIf"], ["value", "undefined", 3, "textContent", "hidden"], [3, "label", 4, "ngFor", "ngForOf"], [3, "label"], ["role", "option", 3, "value", "selected", "textContent", 4, "ngFor", "ngForOf"], ["role", "option", 3, "value", "selected", "textContent"]], template: function SelectComponent_Template(rf, ctx) {
|
|
2377
2404
|
if (rf & 1) {
|
|
2378
2405
|
i0__namespace.ɵɵelementStart(0, "select", 0, 1);
|
|
2379
2406
|
i0__namespace.ɵɵlistener("ngModelChange", function SelectComponent_Template_select_ngModelChange_0_listener($event) { return ctx.modelByKey = $event; })("change", function SelectComponent_Template_select_change_0_listener($event) { return ctx.onSelectValueChange($event); })("focus", function SelectComponent_Template_select_focus_0_listener($event) { return ctx.checkForFloatingLabel($event); })("blur", function SelectComponent_Template_select_blur_0_listener($event) { ctx.invokeOnTouched($event); return ctx.checkForFloatingLabel($event); });
|
|
2380
|
-
i0__namespace.ɵɵ
|
|
2407
|
+
i0__namespace.ɵɵtemplate(2, SelectComponent_option_2_Template, 1, 2, "option", 2);
|
|
2381
2408
|
i0__namespace.ɵɵtemplate(3, SelectComponent_ng_container_3_Template, 2, 1, "ng-container", 3);
|
|
2382
2409
|
i0__namespace.ɵɵtemplate(4, SelectComponent_ng_container_4_Template, 2, 1, "ng-container", 3);
|
|
2383
2410
|
i0__namespace.ɵɵelementEnd();
|
|
2384
2411
|
}
|
|
2385
2412
|
if (rf & 2) {
|
|
2386
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(
|
|
2413
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(13, _c1$6, ctx.class))("disabled", ctx.disabled)("required", ctx.required)("tabindex", ctx.tabindex)("ngModel", ctx.modelByKey)("multiple", ctx.multiple)("autofocus", ctx.autofocus);
|
|
2387
2414
|
i0__namespace.ɵɵattribute("name", ctx.name)("aria-label", ctx.hint)("aria-multiselectable", ctx.multiple);
|
|
2388
2415
|
i0__namespace.ɵɵadvance(2);
|
|
2389
|
-
i0__namespace.ɵɵproperty("
|
|
2416
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.isIosPlatform() || !!ctx.placeholder);
|
|
2390
2417
|
i0__namespace.ɵɵadvance(1);
|
|
2391
2418
|
i0__namespace.ɵɵproperty("ngIf", ctx.groupby);
|
|
2392
2419
|
i0__namespace.ɵɵadvance(1);
|
|
2393
2420
|
i0__namespace.ɵɵproperty("ngIf", !ctx.groupby);
|
|
2394
2421
|
}
|
|
2395
|
-
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace.NgIf,
|
|
2422
|
+
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace.NgIf, i2$1__namespace.NgSelectOption, i2$1__namespace.ɵNgSelectMultipleOption, i2$1__namespace.SelectMultipleControlValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.NgModel, i2__namespace.TextContentDirective], encapsulation: 2 });
|
|
2396
2423
|
(function () {
|
|
2397
2424
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SelectComponent, [{
|
|
2398
2425
|
type: i0.Component,
|
|
2399
2426
|
args: [{ selector: 'wm-select', providers: [
|
|
2400
|
-
i2.provideAs(SelectComponent,
|
|
2401
|
-
i2.provideAs(SelectComponent,
|
|
2427
|
+
i2.provideAs(SelectComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2428
|
+
i2.provideAs(SelectComponent, i2$1.NG_VALIDATORS, true),
|
|
2402
2429
|
i2.provideAsWidgetRef(SelectComponent)
|
|
2403
|
-
], template: "<select role=\"listbox\" aria-haspopup=\"true\" aria-expanded=\"false\" #select\n focus-target\n [ngClass]=\"['app-select form-control', class]\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [(ngModel)]=\"modelByKey\"\n [multiple]=\"multiple\"\n (change)=\"onSelectValueChange($event)\"\n (focus)=\"checkForFloatingLabel($event)\"\n (blur)=\"invokeOnTouched($event); checkForFloatingLabel($event)\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint\"\n [attr.aria-multiselectable]=\"multiple\"\n [autofocus]=\"autofocus\"\n>\n <option
|
|
2404
|
-
}], function () { return [{ type: i0__namespace.Injector }]; }, { selectEl: [{
|
|
2430
|
+
], template: "<select role=\"listbox\" aria-haspopup=\"true\" aria-expanded=\"false\" #select\n focus-target\n [ngClass]=\"['app-select form-control', class]\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [(ngModel)]=\"modelByKey\"\n [multiple]=\"multiple\"\n (change)=\"onSelectValueChange($event)\"\n (focus)=\"checkForFloatingLabel($event)\"\n (blur)=\"invokeOnTouched($event); checkForFloatingLabel($event)\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint\"\n [attr.aria-multiselectable]=\"multiple\"\n [autofocus]=\"autofocus\"\n>\n <option\n value=\"undefined\"\n [textContent]=\"placeholder\"\n *ngIf=\"!isIosPlatform() || !!placeholder\"\n [hidden]=\"!placeholder\"></option>\n\n <ng-container *ngIf=\"groupby\">\n <optgroup *ngFor=\"let groupObj of groupedData\"\n [label]=\"groupObj.key\">\n <option *ngFor=\"let item of groupObj.data;\"\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n role=\"option\"></option>\n </optgroup>\n </ng-container>\n\n <ng-container *ngIf=\"!groupby\">\n <option *ngFor=\"let item of datasetItems\"\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n role=\"option\"></option>\n </ng-container>\n</select>\n" }]
|
|
2431
|
+
}], function () { return [{ type: i0__namespace.Injector }, { type: i1$1__namespace.App }]; }, { selectEl: [{
|
|
2405
2432
|
type: i0.ViewChild,
|
|
2406
2433
|
args: ['select', { static: true, read: i0.ElementRef }]
|
|
2407
2434
|
}] });
|
|
@@ -2427,8 +2454,8 @@
|
|
|
2427
2454
|
]);
|
|
2428
2455
|
const registerProps$6 = () => {
|
|
2429
2456
|
i2.register('wm-switch', switchProps);
|
|
2430
|
-
i2.registerFormWidget(i1$
|
|
2431
|
-
i2.registerFormWidget(i1$
|
|
2457
|
+
i2.registerFormWidget(i1$1.FormWidgetType.SWITCH, new Map(switchProps));
|
|
2458
|
+
i2.registerFormWidget(i1$1.FormWidgetType.TOGGLE, new Map(switchProps));
|
|
2432
2459
|
};
|
|
2433
2460
|
|
|
2434
2461
|
const _c0$6 = ["wmSwitch", ""];
|
|
@@ -2478,12 +2505,12 @@
|
|
|
2478
2505
|
constructor(inj) {
|
|
2479
2506
|
super(inj, WIDGET_CONFIG$6);
|
|
2480
2507
|
this.options = [];
|
|
2481
|
-
this._debounceSetSelectedValue = i1$
|
|
2508
|
+
this._debounceSetSelectedValue = i1$1.debounce((val) => {
|
|
2482
2509
|
this.setSelectedValue();
|
|
2483
2510
|
this.updateHighlighter(val);
|
|
2484
2511
|
// only for default value trigger app digest to apply the selectedItem
|
|
2485
2512
|
if (val) {
|
|
2486
|
-
i1$
|
|
2513
|
+
i1$1.$appDigest();
|
|
2487
2514
|
}
|
|
2488
2515
|
}, 200);
|
|
2489
2516
|
const datasetSubscription = this.dataset$.subscribe(() => this.updateSwitchOptions());
|
|
@@ -2499,7 +2526,7 @@
|
|
|
2499
2526
|
}
|
|
2500
2527
|
onStyleChange(key, nv, ov) {
|
|
2501
2528
|
if (key === 'height') {
|
|
2502
|
-
i1$
|
|
2529
|
+
i1$1.setCSS(this.nativeElement, 'overflow', nv ? 'auto' : '');
|
|
2503
2530
|
}
|
|
2504
2531
|
else {
|
|
2505
2532
|
super.onStyleChange(key, nv, ov);
|
|
@@ -2507,7 +2534,7 @@
|
|
|
2507
2534
|
}
|
|
2508
2535
|
// This function sets the selectedItem by either using compareby fields or selected flag on datasetItems.
|
|
2509
2536
|
setSelectedValue() {
|
|
2510
|
-
if (i1$
|
|
2537
|
+
if (i1$1.isDefined(this.datavalue) || i1$1.isDefined(this.toBeProcessedDatavalue)) {
|
|
2511
2538
|
this.selectedItem = _.find(this.datasetItems, { selected: true });
|
|
2512
2539
|
return;
|
|
2513
2540
|
}
|
|
@@ -2519,7 +2546,7 @@
|
|
|
2519
2546
|
updateSwitchOptions() {
|
|
2520
2547
|
if (this.datasetItems.length) {
|
|
2521
2548
|
this.btnwidth = (100 / this.datasetItems.length);
|
|
2522
|
-
i1$
|
|
2549
|
+
i1$1.setCSS(this.nativeElement.querySelector('.app-switch-overlay'), 'width', this.btnwidth + '%');
|
|
2523
2550
|
}
|
|
2524
2551
|
this._debounceSetSelectedValue(true);
|
|
2525
2552
|
}
|
|
@@ -2569,10 +2596,10 @@
|
|
|
2569
2596
|
this.updateHighlighter();
|
|
2570
2597
|
// invoke on datavalue change.
|
|
2571
2598
|
this.invokeOnChange(this.datavalue, $event || {}, true);
|
|
2572
|
-
i1$
|
|
2599
|
+
i1$1.$appDigest();
|
|
2573
2600
|
}
|
|
2574
2601
|
onPropertyChange(key, nv, ov) {
|
|
2575
|
-
if (key === 'disabled' && !i1$
|
|
2602
|
+
if (key === 'disabled' && !i1$1.toBoolean(nv)) {
|
|
2576
2603
|
this.nativeElement.removeAttribute(key);
|
|
2577
2604
|
}
|
|
2578
2605
|
else {
|
|
@@ -2583,7 +2610,7 @@
|
|
|
2583
2610
|
SwitchComponent.initializeProps = registerProps$6();
|
|
2584
2611
|
SwitchComponent.ɵfac = function SwitchComponent_Factory(t) { return new (t || SwitchComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
2585
2612
|
SwitchComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SwitchComponent, selectors: [["", "wmSwitch", ""]], exportAs: ["wmSwitch"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
2586
|
-
i2.provideAs(SwitchComponent,
|
|
2613
|
+
i2.provideAs(SwitchComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2587
2614
|
i2.provideAsWidgetRef(SwitchComponent)
|
|
2588
2615
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$6, decls: 6, vars: 8, consts: [["role", "group", 1, "btn-group", "btn-group-justified"], ["focus-target", "", "href", "javascript:void(0);", "class", "btn btn-default", 3, "name", "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "btn", "btn-primary", "app-switch-overlay", "switch-handle", 3, "title"], [3, "class", 4, "ngIf"], ["aria-hidden", "true", 1, "model-holder", "ng-hide", 3, "name", "disabled", "value", "required"], ["focus-target", "", "href", "javascript:void(0);", 1, "btn", "btn-default", 3, "name", "ngClass", "click"], ["aria-hidden", "true", 3, "ngClass", 4, "ngIf"], [1, "caption", 3, "textContent"], ["aria-hidden", "true", 3, "ngClass"]], template: function SwitchComponent_Template(rf, ctx) {
|
|
2589
2616
|
if (rf & 1) {
|
|
@@ -2613,7 +2640,7 @@
|
|
|
2613
2640
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SwitchComponent, [{
|
|
2614
2641
|
type: i0.Component,
|
|
2615
2642
|
args: [{ selector: '[wmSwitch]', providers: [
|
|
2616
|
-
i2.provideAs(SwitchComponent,
|
|
2643
|
+
i2.provideAs(SwitchComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2617
2644
|
i2.provideAsWidgetRef(SwitchComponent)
|
|
2618
2645
|
], exportAs: 'wmSwitch', template: "<div role=\"group\" class=\"btn-group btn-group-justified\">\n <a *ngFor=\"let opt of datasetItems; let $index = index;\"\n focus-target\n href=\"javascript:void(0);\"\n class=\"btn btn-default\"\n [name]=\"'wm-switch-' + opt.key\"\n [ngClass]=\"{'selected': opt.selected, 'disabled': disabled}\"\n (click)=\"selectOpt($event, $index, opt)\"\n >\n <i *ngIf=\"opt.dataObject && opt.dataObject[iconclass]\" aria-hidden=\"true\" [ngClass]=\"['app-icon', opt.dataObject[iconclass] || opt['icon']]\"></i>\n <span class=\"caption\" [textContent]=\"opt[displayfield] || opt.label\"></span>\n </a>\n</div>\n<span [title]=\"selectedItem ? selectedItem.label : modelByKey\"\n class=\"btn btn-primary app-switch-overlay switch-handle\">\n <i *ngIf=\"iconclass\"\n class=\"app-icon {{(selectedItem && selectedItem.dataObject) && selectedItem.dataObject[iconclass]}}\"></i>\n {{selectedItem ? selectedItem.label : modelByKey}}\n</span>\n<input [name]=\"name\" class=\"model-holder ng-hide\" [disabled]=\"disabled\" [value]=\"modelByKey\" [required]=\"required\" aria-hidden=\"true\">\n" }]
|
|
2619
2646
|
}], function () { return [{ type: i0__namespace.Injector }]; }, null);
|
|
@@ -2639,7 +2666,9 @@
|
|
|
2639
2666
|
['step', i2.PROP_NUMBER],
|
|
2640
2667
|
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2641
2668
|
['type', i2.PROP_STRING],
|
|
2642
|
-
['updateon', i2.PROP_STRING]
|
|
2669
|
+
['updateon', i2.PROP_STRING],
|
|
2670
|
+
['conditionalclass', i2.PROP_ANY],
|
|
2671
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
2643
2672
|
]);
|
|
2644
2673
|
const registerProps$5 = () => {
|
|
2645
2674
|
i2.register('wm-input-calendar', inputCalendarTypeProps);
|
|
@@ -2661,7 +2690,7 @@
|
|
|
2661
2690
|
InputCalendarComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputCalendarComponent, selectors: [["wm-input", "type", "date"], ["wm-input", "type", "datetime-local"], ["wm-input", "type", "month"], ["wm-input", "type", "time"], ["wm-input", "type", "week"]], viewQuery: function InputCalendarComponent_Query(rf, ctx) {
|
|
2662
2691
|
if (rf & 1) {
|
|
2663
2692
|
i0__namespace.ɵɵviewQuery(_c0$5, 7);
|
|
2664
|
-
i0__namespace.ɵɵviewQuery(
|
|
2693
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
2665
2694
|
}
|
|
2666
2695
|
if (rf & 2) {
|
|
2667
2696
|
let _t;
|
|
@@ -2669,34 +2698,34 @@
|
|
|
2669
2698
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2670
2699
|
}
|
|
2671
2700
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2672
|
-
i2.provideAs(InputCalendarComponent,
|
|
2673
|
-
i2.provideAs(InputCalendarComponent,
|
|
2701
|
+
i2.provideAs(InputCalendarComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2702
|
+
i2.provideAs(InputCalendarComponent, i2$1.NG_VALIDATORS, true),
|
|
2674
2703
|
i2.provideAsWidgetRef(InputCalendarComponent)
|
|
2675
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$4, decls: 2, vars:
|
|
2704
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$4, decls: 2, vars: 17, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "type", "ngModel", "readonly", "required", "disabled", "min", "max", "step", "autofocus", "autocomplete", "ngClass", "ngStyle", "ngModelChange", "blur"], ["input", ""]], template: function InputCalendarComponent_Template(rf, ctx) {
|
|
2676
2705
|
if (rf & 1) {
|
|
2677
2706
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
2678
2707
|
i0__namespace.ɵɵlistener("ngModelChange", function InputCalendarComponent_Template_input_ngModelChange_0_listener($event) { return ctx.datavalue = $event; })("blur", function InputCalendarComponent_Template_input_blur_0_listener($event) { return ctx.handleBlur($event); })("ngModelChange", function InputCalendarComponent_Template_input_ngModelChange_0_listener($event) { return ctx.handleChange($event); });
|
|
2679
2708
|
i0__namespace.ɵɵelementEnd();
|
|
2680
2709
|
}
|
|
2681
2710
|
if (rf & 2) {
|
|
2682
|
-
i0__namespace.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("min", ctx.minvalue)("max", ctx.maxvalue)("step", ctx.step)("autofocus", ctx.autofocus)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
2711
|
+
i0__namespace.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("min", ctx.minvalue)("max", ctx.maxvalue)("step", ctx.step)("autofocus", ctx.autofocus)("autocomplete", ctx.autocomplete ? "on" : "off")("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle);
|
|
2683
2712
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint || ctx.type + " field");
|
|
2684
2713
|
}
|
|
2685
|
-
}, dependencies: [
|
|
2714
|
+
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.NgModel], encapsulation: 2 });
|
|
2686
2715
|
(function () {
|
|
2687
2716
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputCalendarComponent, [{
|
|
2688
2717
|
type: i0.Component,
|
|
2689
2718
|
args: [{ selector: 'wm-input[type="date"], wm-input[type="datetime-local"], wm-input[type="month"], wm-input[type="time"], wm-input[type="week"]', providers: [
|
|
2690
|
-
i2.provideAs(InputCalendarComponent,
|
|
2691
|
-
i2.provideAs(InputCalendarComponent,
|
|
2719
|
+
i2.provideAs(InputCalendarComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2720
|
+
i2.provideAs(InputCalendarComponent, i2$1.NG_VALIDATORS, true),
|
|
2692
2721
|
i2.provideAsWidgetRef(InputCalendarComponent)
|
|
2693
|
-
], template: "<input class=\"form-control app-textbox\"\n focus-target\n role=\"textbox\"\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [min]=\"minvalue\"\n [max]=\"maxvalue\"\n [step]=\"step\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint || type + ' field'\"\n [autofocus]=\"autofocus\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n #input>\n" }]
|
|
2722
|
+
], template: "<input class=\"form-control app-textbox\"\n focus-target\n role=\"textbox\"\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [min]=\"minvalue\"\n [max]=\"maxvalue\"\n [step]=\"step\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint || type + ' field'\"\n [autofocus]=\"autofocus\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n #input>\n" }]
|
|
2694
2723
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2695
2724
|
type: i0.ViewChild,
|
|
2696
2725
|
args: ['input', { static: true }]
|
|
2697
2726
|
}], ngModel: [{
|
|
2698
2727
|
type: i0.ViewChild,
|
|
2699
|
-
args: [
|
|
2728
|
+
args: [i2$1.NgModel]
|
|
2700
2729
|
}] });
|
|
2701
2730
|
})();
|
|
2702
2731
|
|
|
@@ -2717,7 +2746,9 @@
|
|
|
2717
2746
|
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2718
2747
|
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2719
2748
|
['type', Object.assign({ value: 'color' }, i2.PROP_STRING)],
|
|
2720
|
-
['updateon', i2.PROP_STRING]
|
|
2749
|
+
['updateon', i2.PROP_STRING],
|
|
2750
|
+
['conditionalclass', i2.PROP_ANY],
|
|
2751
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
2721
2752
|
]);
|
|
2722
2753
|
const registerProps$4 = () => {
|
|
2723
2754
|
i2.register('wm-input-color', inputColorTypeProps);
|
|
@@ -2739,7 +2770,7 @@
|
|
|
2739
2770
|
InputColorComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputColorComponent, selectors: [["wm-input", "type", "color"]], viewQuery: function InputColorComponent_Query(rf, ctx) {
|
|
2740
2771
|
if (rf & 1) {
|
|
2741
2772
|
i0__namespace.ɵɵviewQuery(_c0$4, 7);
|
|
2742
|
-
i0__namespace.ɵɵviewQuery(
|
|
2773
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
2743
2774
|
}
|
|
2744
2775
|
if (rf & 2) {
|
|
2745
2776
|
let _t;
|
|
@@ -2747,34 +2778,34 @@
|
|
|
2747
2778
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2748
2779
|
}
|
|
2749
2780
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2750
|
-
i2.provideAs(InputColorComponent,
|
|
2751
|
-
i2.provideAs(InputColorComponent,
|
|
2781
|
+
i2.provideAs(InputColorComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2782
|
+
i2.provideAs(InputColorComponent, i2$1.NG_VALIDATORS, true),
|
|
2752
2783
|
i2.provideAsWidgetRef(InputColorComponent)
|
|
2753
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$3, decls: 2, vars:
|
|
2784
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$3, decls: 2, vars: 14, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "type", "ngModel", "readonly", "required", "disabled", "maxlength", "autofocus", "ngClass", "ngStyle", "ngModelChange", "blur"], ["input", ""]], template: function InputColorComponent_Template(rf, ctx) {
|
|
2754
2785
|
if (rf & 1) {
|
|
2755
2786
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
2756
2787
|
i0__namespace.ɵɵlistener("ngModelChange", function InputColorComponent_Template_input_ngModelChange_0_listener($event) { return ctx.datavalue = $event; })("blur", function InputColorComponent_Template_input_blur_0_listener($event) { return ctx.handleBlur($event); })("ngModelChange", function InputColorComponent_Template_input_ngModelChange_0_listener($event) { return ctx.handleChange($event); });
|
|
2757
2788
|
i0__namespace.ɵɵelementEnd();
|
|
2758
2789
|
}
|
|
2759
2790
|
if (rf & 2) {
|
|
2760
|
-
i0__namespace.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus);
|
|
2791
|
+
i0__namespace.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle);
|
|
2761
2792
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2762
2793
|
}
|
|
2763
|
-
}, dependencies: [
|
|
2794
|
+
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.MaxLengthValidator, i2$1__namespace.NgModel], encapsulation: 2 });
|
|
2764
2795
|
(function () {
|
|
2765
2796
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputColorComponent, [{
|
|
2766
2797
|
type: i0.Component,
|
|
2767
2798
|
args: [{ selector: 'wm-input[type="color"]', providers: [
|
|
2768
|
-
i2.provideAs(InputColorComponent,
|
|
2769
|
-
i2.provideAs(InputColorComponent,
|
|
2799
|
+
i2.provideAs(InputColorComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2800
|
+
i2.provideAs(InputColorComponent, i2$1.NG_VALIDATORS, true),
|
|
2770
2801
|
i2.provideAsWidgetRef(InputColorComponent)
|
|
2771
|
-
], template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n role=\"textbox\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n [autofocus]=\"autofocus\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n #input>\n" }]
|
|
2802
|
+
], template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n role=\"textbox\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n #input>\n" }]
|
|
2772
2803
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2773
2804
|
type: i0.ViewChild,
|
|
2774
2805
|
args: ['input', { static: true }]
|
|
2775
2806
|
}], ngModel: [{
|
|
2776
2807
|
type: i0.ViewChild,
|
|
2777
|
-
args: [
|
|
2808
|
+
args: [i2$1.NgModel]
|
|
2778
2809
|
}] });
|
|
2779
2810
|
})();
|
|
2780
2811
|
|
|
@@ -2797,7 +2828,9 @@
|
|
|
2797
2828
|
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2798
2829
|
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2799
2830
|
['type', Object.assign({ value: 'email' }, i2.PROP_STRING)],
|
|
2800
|
-
['updateon', i2.PROP_STRING]
|
|
2831
|
+
['updateon', i2.PROP_STRING],
|
|
2832
|
+
['conditionalclass', i2.PROP_ANY],
|
|
2833
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
2801
2834
|
]);
|
|
2802
2835
|
const registerProps$3 = () => {
|
|
2803
2836
|
i2.register('wm-input-email', inputEmailTypeProps);
|
|
@@ -2819,7 +2852,7 @@
|
|
|
2819
2852
|
InputEmailComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputEmailComponent, selectors: [["wm-input", "type", "email"]], viewQuery: function InputEmailComponent_Query(rf, ctx) {
|
|
2820
2853
|
if (rf & 1) {
|
|
2821
2854
|
i0__namespace.ɵɵviewQuery(_c0$3, 7);
|
|
2822
|
-
i0__namespace.ɵɵviewQuery(
|
|
2855
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
2823
2856
|
}
|
|
2824
2857
|
if (rf & 2) {
|
|
2825
2858
|
let _t;
|
|
@@ -2827,10 +2860,10 @@
|
|
|
2827
2860
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2828
2861
|
}
|
|
2829
2862
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2830
|
-
i2.provideAs(InputEmailComponent,
|
|
2831
|
-
i2.provideAs(InputEmailComponent,
|
|
2863
|
+
i2.provideAs(InputEmailComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2864
|
+
i2.provideAs(InputEmailComponent, i2$1.NG_VALIDATORS, true),
|
|
2832
2865
|
i2.provideAsWidgetRef(InputEmailComponent)
|
|
2833
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$2, decls: 2, vars:
|
|
2866
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$2, decls: 2, vars: 17, consts: [["focus-target", "", "role", "textbox", "email", "", 1, "form-control", "app-textbox", 3, "type", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "pattern", "autofocus", "ngClass", "ngStyle", "autocomplete", "ngModelChange", "blur", "keyup.enter"], ["input", ""]], template: function InputEmailComponent_Template(rf, ctx) {
|
|
2834
2867
|
if (rf & 1) {
|
|
2835
2868
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
2836
2869
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
@@ -2838,24 +2871,24 @@
|
|
|
2838
2871
|
i0__namespace.ɵɵelementEnd();
|
|
2839
2872
|
}
|
|
2840
2873
|
if (rf & 2) {
|
|
2841
|
-
i0__namespace.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
2874
|
+
i0__namespace.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
2842
2875
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2843
2876
|
}
|
|
2844
|
-
}, dependencies: [
|
|
2877
|
+
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.MaxLengthValidator, i2$1__namespace.PatternValidator, i2$1__namespace.EmailValidator, i2$1__namespace.NgModel], encapsulation: 2 });
|
|
2845
2878
|
(function () {
|
|
2846
2879
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputEmailComponent, [{
|
|
2847
2880
|
type: i0.Component,
|
|
2848
2881
|
args: [{ selector: 'wm-input[type="email"]', providers: [
|
|
2849
|
-
i2.provideAs(InputEmailComponent,
|
|
2850
|
-
i2.provideAs(InputEmailComponent,
|
|
2882
|
+
i2.provideAs(InputEmailComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2883
|
+
i2.provideAs(InputEmailComponent, i2$1.NG_VALIDATORS, true),
|
|
2851
2884
|
i2.provideAsWidgetRef(InputEmailComponent)
|
|
2852
|
-
], template: "<input class=\"form-control app-textbox\"\n focus-target\n role=\"textbox\"\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n [autofocus]=\"autofocus\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n email\n #input>\n" }]
|
|
2885
|
+
], template: "<input class=\"form-control app-textbox\"\n focus-target\n role=\"textbox\"\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n email\n #input>\n" }]
|
|
2853
2886
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2854
2887
|
type: i0.ViewChild,
|
|
2855
2888
|
args: ['input', { static: true }]
|
|
2856
2889
|
}], ngModel: [{
|
|
2857
2890
|
type: i0.ViewChild,
|
|
2858
|
-
args: [
|
|
2891
|
+
args: [i2$1.NgModel]
|
|
2859
2892
|
}] });
|
|
2860
2893
|
})();
|
|
2861
2894
|
|
|
@@ -2881,7 +2914,9 @@
|
|
|
2881
2914
|
['step', i2.PROP_NUMBER],
|
|
2882
2915
|
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2883
2916
|
['type', Object.assign({ value: 'number' }, i2.PROP_STRING)],
|
|
2884
|
-
['updateon', i2.PROP_STRING]
|
|
2917
|
+
['updateon', i2.PROP_STRING],
|
|
2918
|
+
['conditionalclass', i2.PROP_ANY],
|
|
2919
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
2885
2920
|
]);
|
|
2886
2921
|
const registerProps$2 = () => {
|
|
2887
2922
|
i2.register('wm-input-number', inputNumberTypeProps);
|
|
@@ -2914,7 +2949,7 @@
|
|
|
2914
2949
|
InputNumberComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputNumberComponent, selectors: [["wm-input", "type", "number"]], viewQuery: function InputNumberComponent_Query(rf, ctx) {
|
|
2915
2950
|
if (rf & 1) {
|
|
2916
2951
|
i0__namespace.ɵɵviewQuery(_c0$2, 7);
|
|
2917
|
-
i0__namespace.ɵɵviewQuery(
|
|
2952
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
2918
2953
|
}
|
|
2919
2954
|
if (rf & 2) {
|
|
2920
2955
|
let _t;
|
|
@@ -2922,10 +2957,10 @@
|
|
|
2922
2957
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2923
2958
|
}
|
|
2924
2959
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2925
|
-
i2.provideAs(InputNumberComponent,
|
|
2926
|
-
i2.provideAs(InputNumberComponent,
|
|
2960
|
+
i2.provideAs(InputNumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2961
|
+
i2.provideAs(InputNumberComponent, i2$1.NG_VALIDATORS, true),
|
|
2927
2962
|
i2.provideAsWidgetRef(InputNumberComponent)
|
|
2928
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$1, decls: 2, vars:
|
|
2963
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$1, decls: 2, vars: 22, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "ngClass", "type", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "min", "max", "step", "autofocus", "ngStyle", "autocomplete", "ngModelChange", "blur", "keyup.enter", "keydown.ArrowUp", "keydown.ArrowDown", "keypress"], ["input", ""]], template: function InputNumberComponent_Template(rf, ctx) {
|
|
2929
2964
|
if (rf & 1) {
|
|
2930
2965
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
2931
2966
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
@@ -2933,24 +2968,24 @@
|
|
|
2933
2968
|
i0__namespace.ɵɵelementEnd();
|
|
2934
2969
|
}
|
|
2935
2970
|
if (rf & 2) {
|
|
2936
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(
|
|
2971
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(20, _c2, ctx.step === 0))("type", ctx.type)("ngModel", ctx.datavalue)("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("min", ctx.minvalue)("max", ctx.maxvalue)("step", ctx.step)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
2937
2972
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2938
2973
|
}
|
|
2939
|
-
}, dependencies: [i1__namespace.NgClass,
|
|
2974
|
+
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.MaxLengthValidator, i2$1__namespace.NgModel], encapsulation: 2 });
|
|
2940
2975
|
(function () {
|
|
2941
2976
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputNumberComponent, [{
|
|
2942
2977
|
type: i0.Component,
|
|
2943
2978
|
args: [{ selector: 'wm-input[type="number"]', providers: [
|
|
2944
|
-
i2.provideAs(InputNumberComponent,
|
|
2945
|
-
i2.provideAs(InputNumberComponent,
|
|
2979
|
+
i2.provideAs(InputNumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2980
|
+
i2.provideAs(InputNumberComponent, i2$1.NG_VALIDATORS, true),
|
|
2946
2981
|
i2.provideAsWidgetRef(InputNumberComponent)
|
|
2947
|
-
], template: "<input class=\"form-control app-textbox\"\n [ngClass]=\"{'step-hidden': step === 0}\"\n focus-target\n role=\"textbox\"\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [min]=\"minvalue\"\n [max]=\"maxvalue\"\n [step]=\"step\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n [autofocus]=\"autofocus\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n (keydown.ArrowUp)=\"onArrowPress($event)\"\n (keydown.ArrowDown)=\"onArrowPress($event)\"\n (keypress)=\"validateInputEntry($event)\"\n #input>\n" }]
|
|
2982
|
+
], template: "<input class=\"form-control app-textbox\"\n [ngClass]=\"{'step-hidden': step === 0}\"\n focus-target\n role=\"textbox\"\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [min]=\"minvalue\"\n [max]=\"maxvalue\"\n [step]=\"step\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n (keydown.ArrowUp)=\"onArrowPress($event)\"\n (keydown.ArrowDown)=\"onArrowPress($event)\"\n (keypress)=\"validateInputEntry($event)\"\n #input>\n" }]
|
|
2948
2983
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2949
2984
|
type: i0.ViewChild,
|
|
2950
2985
|
args: ['input', { static: true }]
|
|
2951
2986
|
}], ngModel: [{
|
|
2952
2987
|
type: i0.ViewChild,
|
|
2953
|
-
args: [
|
|
2988
|
+
args: [i2$1.NgModel]
|
|
2954
2989
|
}] });
|
|
2955
2990
|
})();
|
|
2956
2991
|
|
|
@@ -2975,11 +3010,13 @@
|
|
|
2975
3010
|
['showdisplayformaton', Object.assign({ value: 'always' }, i2.PROP_ANY)],
|
|
2976
3011
|
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2977
3012
|
['type', Object.assign({ value: 'text' }, i2.PROP_STRING)],
|
|
2978
|
-
['updateon', i2.PROP_STRING]
|
|
3013
|
+
['updateon', i2.PROP_STRING],
|
|
3014
|
+
['conditionalclass', i2.PROP_ANY],
|
|
3015
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
2979
3016
|
]);
|
|
2980
3017
|
const registerProps$1 = () => {
|
|
2981
3018
|
i2.register('wm-input-text', inputTextTypeProps);
|
|
2982
|
-
i2.registerFormWidget(i1$
|
|
3019
|
+
i2.registerFormWidget(i1$1.FormWidgetType.PASSWORD, new Map(inputTextTypeProps));
|
|
2983
3020
|
const formTextProps = new Map(inputTextTypeProps);
|
|
2984
3021
|
const mergeTextProps = (typeProps) => {
|
|
2985
3022
|
typeProps.forEach((v, k) => formTextProps.set(k, v));
|
|
@@ -2988,7 +3025,7 @@
|
|
|
2988
3025
|
mergeTextProps(inputColorTypeProps);
|
|
2989
3026
|
mergeTextProps(inputEmailTypeProps);
|
|
2990
3027
|
mergeTextProps(inputNumberTypeProps);
|
|
2991
|
-
i2.registerFormWidget(i1$
|
|
3028
|
+
i2.registerFormWidget(i1$1.FormWidgetType.TEXT, new Map(formTextProps));
|
|
2992
3029
|
};
|
|
2993
3030
|
|
|
2994
3031
|
const _c0$1 = ["input"];
|
|
@@ -3076,8 +3113,8 @@
|
|
|
3076
3113
|
InputTextComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputTextComponent, selectors: [["wm-input", "type", "text"], ["wm-input", 3, "type", ""], ["wm-input", "type", "password"], ["wm-input", "type", "search"], ["wm-input", "type", "tel"], ["wm-input", "type", "url"]], viewQuery: function InputTextComponent_Query(rf, ctx) {
|
|
3077
3114
|
if (rf & 1) {
|
|
3078
3115
|
i0__namespace.ɵɵviewQuery(_c0$1, 7);
|
|
3079
|
-
i0__namespace.ɵɵviewQuery(
|
|
3080
|
-
i0__namespace.ɵɵviewQuery(_c0$1, 5,
|
|
3116
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
3117
|
+
i0__namespace.ɵɵviewQuery(_c0$1, 5, i3.IMaskDirective);
|
|
3081
3118
|
}
|
|
3082
3119
|
if (rf & 2) {
|
|
3083
3120
|
let _t;
|
|
@@ -3086,10 +3123,10 @@
|
|
|
3086
3123
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.imask = _t.first);
|
|
3087
3124
|
}
|
|
3088
3125
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
3089
|
-
i2.provideAs(InputTextComponent,
|
|
3090
|
-
i2.provideAs(InputTextComponent,
|
|
3126
|
+
i2.provideAs(InputTextComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3127
|
+
i2.provideAs(InputTextComponent, i2$1.NG_VALIDATORS, true),
|
|
3091
3128
|
i2.provideAsWidgetRef(InputTextComponent)
|
|
3092
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars:
|
|
3129
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 19, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "type", "ngModel", "imask", "unmask", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "pattern", "autofocus", "ngClass", "ngStyle", "autocomplete", "ngModelChange", "blur", "focus", "keyup.enter"], ["input", ""]], template: function InputTextComponent_Template(rf, ctx) {
|
|
3093
3130
|
if (rf & 1) {
|
|
3094
3131
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
3095
3132
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
@@ -3097,27 +3134,27 @@
|
|
|
3097
3134
|
i0__namespace.ɵɵelementEnd();
|
|
3098
3135
|
}
|
|
3099
3136
|
if (rf & 2) {
|
|
3100
|
-
i0__namespace.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("imask", ctx.mask)("unmask", true)("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
3137
|
+
i0__namespace.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("imask", ctx.mask)("unmask", true)("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
3101
3138
|
i0__namespace.ɵɵattribute("name", ctx.name)("aria-label", ctx.hint)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey);
|
|
3102
3139
|
}
|
|
3103
|
-
}, dependencies: [
|
|
3140
|
+
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.MaxLengthValidator, i2$1__namespace.PatternValidator, i2$1__namespace.NgModel, i3__namespace.IMaskDirective], encapsulation: 2 });
|
|
3104
3141
|
(function () {
|
|
3105
3142
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputTextComponent, [{
|
|
3106
3143
|
type: i0.Component,
|
|
3107
3144
|
args: [{ selector: 'wm-input[type="text"], wm-input:not([type]), wm-input[type="password"], wm-input[type="search"], wm-input[type="tel"], wm-input[type="url"]', providers: [
|
|
3108
|
-
i2.provideAs(InputTextComponent,
|
|
3109
|
-
i2.provideAs(InputTextComponent,
|
|
3145
|
+
i2.provideAs(InputTextComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3146
|
+
i2.provideAs(InputTextComponent, i2$1.NG_VALIDATORS, true),
|
|
3110
3147
|
i2.provideAsWidgetRef(InputTextComponent)
|
|
3111
|
-
], template: "<input class=\"form-control app-textbox\"\n focus-target\n role=\"textbox\"\n [type]=\"type\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint\"\n [(ngModel)]=\"datavalue\"\n [imask]=\"mask\"\n [unmask]=\"true\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [autofocus]=\"autofocus\"\n (ngModelChange)=\"handleChange($event)\"\n (blur)=\"handleBlur($event); checkForDisplayFormat($event)\"\n (focus)=\"checkForDisplayFormat($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n #input>\n" }]
|
|
3148
|
+
], template: "<input class=\"form-control app-textbox\"\n focus-target\n role=\"textbox\"\n [type]=\"type\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint\"\n [(ngModel)]=\"datavalue\"\n [imask]=\"mask\"\n [unmask]=\"true\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (ngModelChange)=\"handleChange($event)\"\n (blur)=\"handleBlur($event); checkForDisplayFormat($event)\"\n (focus)=\"checkForDisplayFormat($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n #input>\n" }]
|
|
3112
3149
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
3113
3150
|
type: i0.ViewChild,
|
|
3114
3151
|
args: ['input', { static: true }]
|
|
3115
3152
|
}], ngModel: [{
|
|
3116
3153
|
type: i0.ViewChild,
|
|
3117
|
-
args: [
|
|
3154
|
+
args: [i2$1.NgModel]
|
|
3118
3155
|
}], imask: [{
|
|
3119
3156
|
type: i0.ViewChild,
|
|
3120
|
-
args: ['input', { read:
|
|
3157
|
+
args: ['input', { read: i3.IMaskDirective }]
|
|
3121
3158
|
}] });
|
|
3122
3159
|
})();
|
|
3123
3160
|
|
|
@@ -3140,10 +3177,12 @@
|
|
|
3140
3177
|
['updateon', i2.PROP_STRING],
|
|
3141
3178
|
['limitdisplaytext', i2.PROP_STRING],
|
|
3142
3179
|
['charlength', i2.PROP_NUMBER],
|
|
3180
|
+
['conditionalclass', i2.PROP_ANY],
|
|
3181
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
3143
3182
|
]);
|
|
3144
3183
|
const registerProps = () => {
|
|
3145
3184
|
i2.register('wm-textarea', textareaProps);
|
|
3146
|
-
i2.registerFormWidget(i1$
|
|
3185
|
+
i2.registerFormWidget(i1$1.FormWidgetType.TEXTAREA, new Map(textareaProps));
|
|
3147
3186
|
};
|
|
3148
3187
|
|
|
3149
3188
|
const _c0 = ["textarea"];
|
|
@@ -3177,7 +3216,7 @@
|
|
|
3177
3216
|
TextareaComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: TextareaComponent, selectors: [["wm-textarea"]], viewQuery: function TextareaComponent_Query(rf, ctx) {
|
|
3178
3217
|
if (rf & 1) {
|
|
3179
3218
|
i0__namespace.ɵɵviewQuery(_c0, 7);
|
|
3180
|
-
i0__namespace.ɵɵviewQuery(
|
|
3219
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
3181
3220
|
}
|
|
3182
3221
|
if (rf & 2) {
|
|
3183
3222
|
let _t;
|
|
@@ -3185,10 +3224,10 @@
|
|
|
3185
3224
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
3186
3225
|
}
|
|
3187
3226
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
3188
|
-
i2.provideAs(TextareaComponent,
|
|
3189
|
-
i2.provideAs(TextareaComponent,
|
|
3227
|
+
i2.provideAs(TextareaComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3228
|
+
i2.provideAs(TextareaComponent, i2$1.NG_VALIDATORS, true),
|
|
3190
3229
|
i2.provideAsWidgetRef(TextareaComponent)
|
|
3191
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars:
|
|
3230
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 15, consts: [["focus-target", "", "role", "textbox", "aria-multiline", "true", 1, "form-control", "app-textarea", 3, "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "autofocus", "ngClass", "ngStyle", "ngModelChange", "blur", "input"], ["textarea", ""], ["class", "textarea-count", 4, "ngIf"], [1, "textarea-count"]], template: function TextareaComponent_Template(rf, ctx) {
|
|
3192
3231
|
if (rf & 1) {
|
|
3193
3232
|
i0__namespace.ɵɵelementStart(0, "textarea", 0, 1);
|
|
3194
3233
|
i0__namespace.ɵɵlistener("ngModelChange", function TextareaComponent_Template_textarea_ngModelChange_0_listener($event) { return ctx.datavalue = $event; })("blur", function TextareaComponent_Template_textarea_blur_0_listener($event) { return ctx.handleBlur($event); })("input", function TextareaComponent_Template_textarea_input_0_listener() { return ctx.onInputChange(); })("ngModelChange", function TextareaComponent_Template_textarea_ngModelChange_0_listener($event) { ctx.handleChange($event); return ctx.onInputChange(); });
|
|
@@ -3196,26 +3235,26 @@
|
|
|
3196
3235
|
i0__namespace.ɵɵtemplate(2, TextareaComponent_div_2_Template, 2, 1, "div", 2);
|
|
3197
3236
|
}
|
|
3198
3237
|
if (rf & 2) {
|
|
3199
|
-
i0__namespace.ɵɵproperty("ngModel", ctx.datavalue)("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus);
|
|
3238
|
+
i0__namespace.ɵɵproperty("ngModel", ctx.datavalue)("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle);
|
|
3200
3239
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
3201
3240
|
i0__namespace.ɵɵadvance(2);
|
|
3202
3241
|
i0__namespace.ɵɵproperty("ngIf", ctx.maxchars);
|
|
3203
3242
|
}
|
|
3204
|
-
}, dependencies: [i1__namespace.NgIf,
|
|
3243
|
+
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.MaxLengthValidator, i2$1__namespace.NgModel], encapsulation: 2 });
|
|
3205
3244
|
(function () {
|
|
3206
3245
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TextareaComponent, [{
|
|
3207
3246
|
type: i0.Component,
|
|
3208
3247
|
args: [{ selector: 'wm-textarea', providers: [
|
|
3209
|
-
i2.provideAs(TextareaComponent,
|
|
3210
|
-
i2.provideAs(TextareaComponent,
|
|
3248
|
+
i2.provideAs(TextareaComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3249
|
+
i2.provideAs(TextareaComponent, i2$1.NG_VALIDATORS, true),
|
|
3211
3250
|
i2.provideAsWidgetRef(TextareaComponent)
|
|
3212
|
-
], template: "<textarea class=\"form-control app-textarea\"\n focus-target\n role=\"textbox\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n aria-multiline=\"true\"\n [autofocus]=\"autofocus\"\n (blur)=\"handleBlur($event)\"\n (input)=\"onInputChange()\"\n (ngModelChange)=\"handleChange($event); onInputChange();\"\n #textarea\n></textarea>\n\n<div *ngIf=\"maxchars\" class=\"textarea-count\" >{{limitdisplaytext}}</div>\n" }]
|
|
3251
|
+
], template: "<textarea class=\"form-control app-textarea\"\n focus-target\n role=\"textbox\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n aria-multiline=\"true\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (input)=\"onInputChange()\"\n (ngModelChange)=\"handleChange($event); onInputChange();\"\n #textarea\n></textarea>\n\n<div *ngIf=\"maxchars\" class=\"textarea-count\" >{{limitdisplaytext}}</div>\n" }]
|
|
3213
3252
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
3214
3253
|
type: i0.ViewChild,
|
|
3215
3254
|
args: ['textarea', { static: true }]
|
|
3216
3255
|
}], ngModel: [{
|
|
3217
3256
|
type: i0.ViewChild,
|
|
3218
|
-
args: [
|
|
3257
|
+
args: [i2$1.NgModel]
|
|
3219
3258
|
}] });
|
|
3220
3259
|
})();
|
|
3221
3260
|
|
|
@@ -3340,7 +3379,7 @@
|
|
|
3340
3379
|
// isSelectMultiple is set to true when for select widget, multiple option is enabled
|
|
3341
3380
|
// Checking inputEl focus - when form is represented as dialog and the first field is automatically in focus
|
|
3342
3381
|
const isInputElFocused = this.inputEl && this.inputEl.is(':focus');
|
|
3343
|
-
if (data.displayVal || data.isFocused || data.isSelectMultiple || isInputElFocused) {
|
|
3382
|
+
if (data.isSelect || data.displayVal || data.isFocused || data.isSelectMultiple || isInputElFocused) {
|
|
3344
3383
|
data.nativeEl.addClass('float-active');
|
|
3345
3384
|
if (!data.displayVal && isInputElFocused) {
|
|
3346
3385
|
this.inputEl.attr('placeholder', this.placeholder);
|
|
@@ -3375,7 +3414,7 @@
|
|
|
3375
3414
|
}
|
|
3376
3415
|
}
|
|
3377
3416
|
}
|
|
3378
|
-
CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1$
|
|
3417
|
+
CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.App)); };
|
|
3379
3418
|
CaptionPositionDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: CaptionPositionDirective, selectors: [["", "wmCaptionPosition", ""]] });
|
|
3380
3419
|
(function () {
|
|
3381
3420
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaptionPositionDirective, [{
|
|
@@ -3383,7 +3422,7 @@
|
|
|
3383
3422
|
args: [{
|
|
3384
3423
|
selector: '[wmCaptionPosition]'
|
|
3385
3424
|
}]
|
|
3386
|
-
}], function () { return [{ type: i0__namespace.Injector }, { type: i1$
|
|
3425
|
+
}], function () { return [{ type: i0__namespace.Injector }, { type: i1$1__namespace.App }]; }, null);
|
|
3387
3426
|
})();
|
|
3388
3427
|
|
|
3389
3428
|
const components = [
|
|
@@ -3409,18 +3448,18 @@
|
|
|
3409
3448
|
InputModule.ɵfac = function InputModule_Factory(t) { return new (t || InputModule)(); };
|
|
3410
3449
|
InputModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: InputModule });
|
|
3411
3450
|
InputModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i1.CommonModule,
|
|
3412
|
-
|
|
3451
|
+
i2$1.FormsModule,
|
|
3413
3452
|
i2.WmComponentsModule,
|
|
3414
|
-
|
|
3453
|
+
i3.IMaskModule] });
|
|
3415
3454
|
(function () {
|
|
3416
3455
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputModule, [{
|
|
3417
3456
|
type: i0.NgModule,
|
|
3418
3457
|
args: [{
|
|
3419
3458
|
imports: [
|
|
3420
3459
|
i1.CommonModule,
|
|
3421
|
-
|
|
3460
|
+
i2$1.FormsModule,
|
|
3422
3461
|
i2.WmComponentsModule,
|
|
3423
|
-
|
|
3462
|
+
i3.IMaskModule
|
|
3424
3463
|
],
|
|
3425
3464
|
declarations: [...components],
|
|
3426
3465
|
exports: [...components]
|
|
@@ -3444,9 +3483,9 @@
|
|
|
3444
3483
|
InputNumberComponent,
|
|
3445
3484
|
InputTextComponent,
|
|
3446
3485
|
TextareaComponent], imports: [i1.CommonModule,
|
|
3447
|
-
|
|
3486
|
+
i2$1.FormsModule,
|
|
3448
3487
|
i2.WmComponentsModule,
|
|
3449
|
-
|
|
3488
|
+
i3.IMaskModule], exports: [ButtonComponent,
|
|
3450
3489
|
ButtonGroupDirective,
|
|
3451
3490
|
CaptionPositionDirective,
|
|
3452
3491
|
CheckboxComponent,
|