@wavemaker/app-ng-runtime 11.5.1-rc.5428 → 11.5.1-rc.5430
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/components/chart/bundles/index.umd.js +7 -0
- app-ng-runtime/components/chart/esm2020/chart.utils.mjs +8 -1
- app-ng-runtime/components/chart/fesm2015/index.mjs +7 -0
- app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/chart/fesm2020/index.mjs +7 -0
- app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +158 -156
- app-ng-runtime/components/input/default/esm2020/number/number.component.mjs +7 -6
- app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.component.mjs +7 -6
- app-ng-runtime/components/input/default/esm2020/text/color/input-color.component.mjs +7 -6
- app-ng-runtime/components/input/default/esm2020/text/email/input-email.component.mjs +7 -6
- app-ng-runtime/components/input/default/esm2020/text/number/input-number.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2020/text/text/input-text.component.mjs +8 -7
- 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 +39 -37
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +39 -37
- 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/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/package.json +1 -1
- app-ng-runtime/scripts/@wavemaker.com/nvd3/build/nv.d3.min.js +1 -1
|
@@ -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
|
}
|
|
@@ -1313,7 +1313,7 @@
|
|
|
1313
1313
|
]);
|
|
1314
1314
|
const registerProps$9 = () => {
|
|
1315
1315
|
i2.register('wm-number', numberProps);
|
|
1316
|
-
i2.registerFormWidget(i1$
|
|
1316
|
+
i2.registerFormWidget(i1$1.FormWidgetType.NUMBER, new Map(numberProps));
|
|
1317
1317
|
};
|
|
1318
1318
|
|
|
1319
1319
|
class BaseInput extends BaseFormCustomComponent {
|
|
@@ -1328,7 +1328,7 @@
|
|
|
1328
1328
|
}
|
|
1329
1329
|
if (key === 'class') {
|
|
1330
1330
|
if (this.inputEl.nativeElement) {
|
|
1331
|
-
i1$
|
|
1331
|
+
i1$1.switchClass(this.inputEl.nativeElement, nv, ov);
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
1334
|
else if (key === 'datavalue') {
|
|
@@ -1363,13 +1363,13 @@
|
|
|
1363
1363
|
const unMaskedVal = _.get(this.imask, 'maskRef.unmaskedValue');
|
|
1364
1364
|
val = unMaskedVal ? unMaskedVal : val;
|
|
1365
1365
|
this.ngModel.update.next(val);
|
|
1366
|
-
i1$
|
|
1366
|
+
i1$1.$appDigest();
|
|
1367
1367
|
}
|
|
1368
1368
|
ngAfterViewInit() {
|
|
1369
1369
|
super.ngAfterViewInit();
|
|
1370
1370
|
// add the class on the input element
|
|
1371
1371
|
if (this.class) {
|
|
1372
|
-
i1$
|
|
1372
|
+
i1$1.addClass(this.inputEl.nativeElement, this.class);
|
|
1373
1373
|
}
|
|
1374
1374
|
i2.styler(this.inputEl.nativeElement, this);
|
|
1375
1375
|
}
|
|
@@ -1612,7 +1612,7 @@
|
|
|
1612
1612
|
onInputChange(value) {
|
|
1613
1613
|
const stepVal = this.stepLength();
|
|
1614
1614
|
// WMS-22355, Trigger change cb if value exists or value is empty but datavalue exists (when value is selected and deleted).
|
|
1615
|
-
if (i1$
|
|
1615
|
+
if (i1$1.isDefined(value) && (value !== '' || this.datavalue)) {
|
|
1616
1616
|
this.handleChange(value);
|
|
1617
1617
|
}
|
|
1618
1618
|
else {
|
|
@@ -1848,11 +1848,11 @@
|
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
1850
1850
|
NumberComponent.initializeProps = registerProps$9();
|
|
1851
|
-
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)); };
|
|
1852
1852
|
NumberComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: NumberComponent, selectors: [["", "wmNumber", ""]], viewQuery: function NumberComponent_Query(rf, ctx) {
|
|
1853
1853
|
if (rf & 1) {
|
|
1854
1854
|
i0__namespace.ɵɵviewQuery(_c0$9, 7);
|
|
1855
|
-
i0__namespace.ɵɵviewQuery(
|
|
1855
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 7);
|
|
1856
1856
|
}
|
|
1857
1857
|
if (rf & 2) {
|
|
1858
1858
|
let _t;
|
|
@@ -1860,34 +1860,34 @@
|
|
|
1860
1860
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
1861
1861
|
}
|
|
1862
1862
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
1863
|
-
i2.provideAs(NumberComponent,
|
|
1864
|
-
i2.provideAs(NumberComponent,
|
|
1863
|
+
i2.provideAs(NumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
1864
|
+
i2.provideAs(NumberComponent, i2$1.NG_VALIDATORS, true),
|
|
1865
1865
|
i2.provideAsWidgetRef(NumberComponent)
|
|
1866
|
-
]), 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) {
|
|
1867
1867
|
if (rf & 1) {
|
|
1868
1868
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
1869
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"); });
|
|
1870
1870
|
i0__namespace.ɵɵelementEnd();
|
|
1871
1871
|
}
|
|
1872
1872
|
if (rf & 2) {
|
|
1873
|
-
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);
|
|
1874
1874
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
1875
1875
|
}
|
|
1876
|
-
}, 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 });
|
|
1877
1877
|
(function () {
|
|
1878
1878
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NumberComponent, [{
|
|
1879
1879
|
type: i0.Component,
|
|
1880
1880
|
args: [{ selector: '[wmNumber]', providers: [
|
|
1881
|
-
i2.provideAs(NumberComponent,
|
|
1882
|
-
i2.provideAs(NumberComponent,
|
|
1881
|
+
i2.provideAs(NumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
1882
|
+
i2.provideAs(NumberComponent, i2$1.NG_VALIDATORS, true),
|
|
1883
1883
|
i2.provideAsWidgetRef(NumberComponent)
|
|
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 (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$
|
|
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: [{
|
|
1886
1886
|
type: i0.ViewChild,
|
|
1887
1887
|
args: ['input', { static: true }]
|
|
1888
1888
|
}], ngModel: [{
|
|
1889
1889
|
type: i0.ViewChild,
|
|
1890
|
-
args: [
|
|
1890
|
+
args: [i2$1.NgModel, { static: true }]
|
|
1891
1891
|
}] });
|
|
1892
1892
|
})();
|
|
1893
1893
|
|
|
@@ -1921,7 +1921,7 @@
|
|
|
1921
1921
|
]);
|
|
1922
1922
|
const registerProps$8 = () => {
|
|
1923
1923
|
i2.register('wm-radioset', radiosetProps);
|
|
1924
|
-
i2.registerFormWidget(i1$
|
|
1924
|
+
i2.registerFormWidget(i1$1.FormWidgetType.RADIOSET, new Map(radiosetProps));
|
|
1925
1925
|
};
|
|
1926
1926
|
|
|
1927
1927
|
const _c0$8 = ["wmRadioset", ""];
|
|
@@ -2152,7 +2152,7 @@
|
|
|
2152
2152
|
return;
|
|
2153
2153
|
}
|
|
2154
2154
|
if (key === 'itemsperrow') {
|
|
2155
|
-
i1$
|
|
2155
|
+
i1$1.setListClass(this);
|
|
2156
2156
|
}
|
|
2157
2157
|
else {
|
|
2158
2158
|
super.onPropertyChange(key, nv, ov);
|
|
@@ -2162,8 +2162,8 @@
|
|
|
2162
2162
|
RadiosetComponent.initializeProps = registerProps$8();
|
|
2163
2163
|
RadiosetComponent.ɵfac = function RadiosetComponent_Factory(t) { return new (t || RadiosetComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
2164
2164
|
RadiosetComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: RadiosetComponent, selectors: [["", "wmRadioset", ""]], exportAs: ["wmRadioset"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
2165
|
-
i2.provideAs(RadiosetComponent,
|
|
2166
|
-
i2.provideAs(RadiosetComponent,
|
|
2165
|
+
i2.provideAs(RadiosetComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2166
|
+
i2.provideAs(RadiosetComponent, i2$1.NG_VALIDATORS, true),
|
|
2167
2167
|
i2.provideAsWidgetRef(RadiosetComponent)
|
|
2168
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) {
|
|
2169
2169
|
if (rf & 1) {
|
|
@@ -2185,8 +2185,8 @@
|
|
|
2185
2185
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RadiosetComponent, [{
|
|
2186
2186
|
type: i0.Component,
|
|
2187
2187
|
args: [{ selector: '[wmRadioset]', exportAs: 'wmRadioset', providers: [
|
|
2188
|
-
i2.provideAs(RadiosetComponent,
|
|
2189
|
-
i2.provideAs(RadiosetComponent,
|
|
2188
|
+
i2.provideAs(RadiosetComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2189
|
+
i2.provideAs(RadiosetComponent, i2$1.NG_VALIDATORS, true),
|
|
2190
2190
|
i2.provideAsWidgetRef(RadiosetComponent)
|
|
2191
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" }]
|
|
2192
2192
|
}], function () { return [{ type: i0__namespace.Injector }]; }, null);
|
|
@@ -2221,8 +2221,8 @@
|
|
|
2221
2221
|
]);
|
|
2222
2222
|
const registerProps$7 = () => {
|
|
2223
2223
|
i2.register('wm-select', selectProps);
|
|
2224
|
-
i2.registerFormWidget(i1$
|
|
2225
|
-
i2.registerFormWidget(i1$
|
|
2224
|
+
i2.registerFormWidget(i1$1.FormWidgetType.SELECT, new Map(selectProps));
|
|
2225
|
+
i2.registerFormWidget(i1$1.FormWidgetType.TYPEAHEAD, new Map(selectProps));
|
|
2226
2226
|
};
|
|
2227
2227
|
|
|
2228
2228
|
const _c0$7 = ["select"];
|
|
@@ -2285,8 +2285,8 @@
|
|
|
2285
2285
|
const WIDGET_CONFIG$7 = { widgetType: 'wm-select', hostClass: 'app-select-wrapper' };
|
|
2286
2286
|
class SelectComponent extends DatasetAwareFormComponent {
|
|
2287
2287
|
set datasource(ds) {
|
|
2288
|
-
if (ds && ds.execute && ds.execute(i1$
|
|
2289
|
-
this.datavalue = ds.execute(i1$
|
|
2288
|
+
if (ds && ds.execute && ds.execute(i1$1.DataSource.Operation.IS_BOUND_TO_LOCALE)) {
|
|
2289
|
+
this.datavalue = ds.execute(i1$1.DataSource.Operation.GET_DEFAULT_LOCALE);
|
|
2290
2290
|
}
|
|
2291
2291
|
}
|
|
2292
2292
|
constructor(inj) {
|
|
@@ -2338,7 +2338,7 @@
|
|
|
2338
2338
|
return;
|
|
2339
2339
|
}
|
|
2340
2340
|
else if (key === 'readonly') {
|
|
2341
|
-
(nv === true) ? i1$
|
|
2341
|
+
(nv === true) ? i1$1.setAttr(this.selectEl.nativeElement, 'readonly', 'readonly') : i1$1.removeAttr(this.selectEl.nativeElement, 'readonly');
|
|
2342
2342
|
}
|
|
2343
2343
|
super.onPropertyChange(key, nv, ov);
|
|
2344
2344
|
}
|
|
@@ -2372,8 +2372,8 @@
|
|
|
2372
2372
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.selectEl = _t.first);
|
|
2373
2373
|
}
|
|
2374
2374
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2375
|
-
i2.provideAs(SelectComponent,
|
|
2376
|
-
i2.provideAs(SelectComponent,
|
|
2375
|
+
i2.provideAs(SelectComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2376
|
+
i2.provideAs(SelectComponent, i2$1.NG_VALIDATORS, true),
|
|
2377
2377
|
i2.provideAsWidgetRef(SelectComponent)
|
|
2378
2378
|
]), i0__namespace.ɵɵInheritDefinitionFeature], decls: 5, vars: 16, consts: [["role", "listbox", "aria-haspopup", "true", "aria-expanded", "false", "focus-target", "", 3, "ngClass", "disabled", "required", "tabindex", "ngModel", "multiple", "autofocus", "ngModelChange", "change", "focus", "blur"], ["select", ""], ["selected", "", "value", "undefined", 3, "textContent", "hidden"], [4, "ngIf"], [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) {
|
|
2379
2379
|
if (rf & 1) {
|
|
@@ -2394,13 +2394,13 @@
|
|
|
2394
2394
|
i0__namespace.ɵɵadvance(1);
|
|
2395
2395
|
i0__namespace.ɵɵproperty("ngIf", !ctx.groupby);
|
|
2396
2396
|
}
|
|
2397
|
-
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace.NgIf,
|
|
2397
|
+
}, 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 });
|
|
2398
2398
|
(function () {
|
|
2399
2399
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SelectComponent, [{
|
|
2400
2400
|
type: i0.Component,
|
|
2401
2401
|
args: [{ selector: 'wm-select', providers: [
|
|
2402
|
-
i2.provideAs(SelectComponent,
|
|
2403
|
-
i2.provideAs(SelectComponent,
|
|
2402
|
+
i2.provideAs(SelectComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2403
|
+
i2.provideAs(SelectComponent, i2$1.NG_VALIDATORS, true),
|
|
2404
2404
|
i2.provideAsWidgetRef(SelectComponent)
|
|
2405
2405
|
], 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 selected\n value=\"undefined\"\n [textContent]=\"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" }]
|
|
2406
2406
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { selectEl: [{
|
|
@@ -2429,8 +2429,8 @@
|
|
|
2429
2429
|
]);
|
|
2430
2430
|
const registerProps$6 = () => {
|
|
2431
2431
|
i2.register('wm-switch', switchProps);
|
|
2432
|
-
i2.registerFormWidget(i1$
|
|
2433
|
-
i2.registerFormWidget(i1$
|
|
2432
|
+
i2.registerFormWidget(i1$1.FormWidgetType.SWITCH, new Map(switchProps));
|
|
2433
|
+
i2.registerFormWidget(i1$1.FormWidgetType.TOGGLE, new Map(switchProps));
|
|
2434
2434
|
};
|
|
2435
2435
|
|
|
2436
2436
|
const _c0$6 = ["wmSwitch", ""];
|
|
@@ -2480,12 +2480,12 @@
|
|
|
2480
2480
|
constructor(inj) {
|
|
2481
2481
|
super(inj, WIDGET_CONFIG$6);
|
|
2482
2482
|
this.options = [];
|
|
2483
|
-
this._debounceSetSelectedValue = i1$
|
|
2483
|
+
this._debounceSetSelectedValue = i1$1.debounce((val) => {
|
|
2484
2484
|
this.setSelectedValue();
|
|
2485
2485
|
this.updateHighlighter(val);
|
|
2486
2486
|
// only for default value trigger app digest to apply the selectedItem
|
|
2487
2487
|
if (val) {
|
|
2488
|
-
i1$
|
|
2488
|
+
i1$1.$appDigest();
|
|
2489
2489
|
}
|
|
2490
2490
|
}, 200);
|
|
2491
2491
|
const datasetSubscription = this.dataset$.subscribe(() => this.updateSwitchOptions());
|
|
@@ -2501,7 +2501,7 @@
|
|
|
2501
2501
|
}
|
|
2502
2502
|
onStyleChange(key, nv, ov) {
|
|
2503
2503
|
if (key === 'height') {
|
|
2504
|
-
i1$
|
|
2504
|
+
i1$1.setCSS(this.nativeElement, 'overflow', nv ? 'auto' : '');
|
|
2505
2505
|
}
|
|
2506
2506
|
else {
|
|
2507
2507
|
super.onStyleChange(key, nv, ov);
|
|
@@ -2509,7 +2509,7 @@
|
|
|
2509
2509
|
}
|
|
2510
2510
|
// This function sets the selectedItem by either using compareby fields or selected flag on datasetItems.
|
|
2511
2511
|
setSelectedValue() {
|
|
2512
|
-
if (i1$
|
|
2512
|
+
if (i1$1.isDefined(this.datavalue) || i1$1.isDefined(this.toBeProcessedDatavalue)) {
|
|
2513
2513
|
this.selectedItem = _.find(this.datasetItems, { selected: true });
|
|
2514
2514
|
return;
|
|
2515
2515
|
}
|
|
@@ -2521,7 +2521,7 @@
|
|
|
2521
2521
|
updateSwitchOptions() {
|
|
2522
2522
|
if (this.datasetItems.length) {
|
|
2523
2523
|
this.btnwidth = (100 / this.datasetItems.length);
|
|
2524
|
-
i1$
|
|
2524
|
+
i1$1.setCSS(this.nativeElement.querySelector('.app-switch-overlay'), 'width', this.btnwidth + '%');
|
|
2525
2525
|
}
|
|
2526
2526
|
this._debounceSetSelectedValue(true);
|
|
2527
2527
|
}
|
|
@@ -2571,10 +2571,10 @@
|
|
|
2571
2571
|
this.updateHighlighter();
|
|
2572
2572
|
// invoke on datavalue change.
|
|
2573
2573
|
this.invokeOnChange(this.datavalue, $event || {}, true);
|
|
2574
|
-
i1$
|
|
2574
|
+
i1$1.$appDigest();
|
|
2575
2575
|
}
|
|
2576
2576
|
onPropertyChange(key, nv, ov) {
|
|
2577
|
-
if (key === 'disabled' && !i1$
|
|
2577
|
+
if (key === 'disabled' && !i1$1.toBoolean(nv)) {
|
|
2578
2578
|
this.nativeElement.removeAttribute(key);
|
|
2579
2579
|
}
|
|
2580
2580
|
else {
|
|
@@ -2585,7 +2585,7 @@
|
|
|
2585
2585
|
SwitchComponent.initializeProps = registerProps$6();
|
|
2586
2586
|
SwitchComponent.ɵfac = function SwitchComponent_Factory(t) { return new (t || SwitchComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
2587
2587
|
SwitchComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SwitchComponent, selectors: [["", "wmSwitch", ""]], exportAs: ["wmSwitch"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
2588
|
-
i2.provideAs(SwitchComponent,
|
|
2588
|
+
i2.provideAs(SwitchComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2589
2589
|
i2.provideAsWidgetRef(SwitchComponent)
|
|
2590
2590
|
]), 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) {
|
|
2591
2591
|
if (rf & 1) {
|
|
@@ -2615,7 +2615,7 @@
|
|
|
2615
2615
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SwitchComponent, [{
|
|
2616
2616
|
type: i0.Component,
|
|
2617
2617
|
args: [{ selector: '[wmSwitch]', providers: [
|
|
2618
|
-
i2.provideAs(SwitchComponent,
|
|
2618
|
+
i2.provideAs(SwitchComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2619
2619
|
i2.provideAsWidgetRef(SwitchComponent)
|
|
2620
2620
|
], 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" }]
|
|
2621
2621
|
}], function () { return [{ type: i0__namespace.Injector }]; }, null);
|
|
@@ -2665,7 +2665,7 @@
|
|
|
2665
2665
|
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) {
|
|
2666
2666
|
if (rf & 1) {
|
|
2667
2667
|
i0__namespace.ɵɵviewQuery(_c0$5, 7);
|
|
2668
|
-
i0__namespace.ɵɵviewQuery(
|
|
2668
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
2669
2669
|
}
|
|
2670
2670
|
if (rf & 2) {
|
|
2671
2671
|
let _t;
|
|
@@ -2673,34 +2673,34 @@
|
|
|
2673
2673
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2674
2674
|
}
|
|
2675
2675
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2676
|
-
i2.provideAs(InputCalendarComponent,
|
|
2677
|
-
i2.provideAs(InputCalendarComponent,
|
|
2676
|
+
i2.provideAs(InputCalendarComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2677
|
+
i2.provideAs(InputCalendarComponent, i2$1.NG_VALIDATORS, true),
|
|
2678
2678
|
i2.provideAsWidgetRef(InputCalendarComponent)
|
|
2679
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$4, decls: 2, vars:
|
|
2679
|
+
]), 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) {
|
|
2680
2680
|
if (rf & 1) {
|
|
2681
2681
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
2682
2682
|
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); });
|
|
2683
2683
|
i0__namespace.ɵɵelementEnd();
|
|
2684
2684
|
}
|
|
2685
2685
|
if (rf & 2) {
|
|
2686
|
-
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");
|
|
2686
|
+
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);
|
|
2687
2687
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint || ctx.type + " field");
|
|
2688
2688
|
}
|
|
2689
|
-
}, dependencies: [
|
|
2689
|
+
}, 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 });
|
|
2690
2690
|
(function () {
|
|
2691
2691
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputCalendarComponent, [{
|
|
2692
2692
|
type: i0.Component,
|
|
2693
2693
|
args: [{ selector: 'wm-input[type="date"], wm-input[type="datetime-local"], wm-input[type="month"], wm-input[type="time"], wm-input[type="week"]', providers: [
|
|
2694
|
-
i2.provideAs(InputCalendarComponent,
|
|
2695
|
-
i2.provideAs(InputCalendarComponent,
|
|
2694
|
+
i2.provideAs(InputCalendarComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2695
|
+
i2.provideAs(InputCalendarComponent, i2$1.NG_VALIDATORS, true),
|
|
2696
2696
|
i2.provideAsWidgetRef(InputCalendarComponent)
|
|
2697
|
-
], 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" }]
|
|
2697
|
+
], 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" }]
|
|
2698
2698
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2699
2699
|
type: i0.ViewChild,
|
|
2700
2700
|
args: ['input', { static: true }]
|
|
2701
2701
|
}], ngModel: [{
|
|
2702
2702
|
type: i0.ViewChild,
|
|
2703
|
-
args: [
|
|
2703
|
+
args: [i2$1.NgModel]
|
|
2704
2704
|
}] });
|
|
2705
2705
|
})();
|
|
2706
2706
|
|
|
@@ -2745,7 +2745,7 @@
|
|
|
2745
2745
|
InputColorComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputColorComponent, selectors: [["wm-input", "type", "color"]], viewQuery: function InputColorComponent_Query(rf, ctx) {
|
|
2746
2746
|
if (rf & 1) {
|
|
2747
2747
|
i0__namespace.ɵɵviewQuery(_c0$4, 7);
|
|
2748
|
-
i0__namespace.ɵɵviewQuery(
|
|
2748
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
2749
2749
|
}
|
|
2750
2750
|
if (rf & 2) {
|
|
2751
2751
|
let _t;
|
|
@@ -2753,34 +2753,34 @@
|
|
|
2753
2753
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2754
2754
|
}
|
|
2755
2755
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2756
|
-
i2.provideAs(InputColorComponent,
|
|
2757
|
-
i2.provideAs(InputColorComponent,
|
|
2756
|
+
i2.provideAs(InputColorComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2757
|
+
i2.provideAs(InputColorComponent, i2$1.NG_VALIDATORS, true),
|
|
2758
2758
|
i2.provideAsWidgetRef(InputColorComponent)
|
|
2759
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$3, decls: 2, vars:
|
|
2759
|
+
]), 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) {
|
|
2760
2760
|
if (rf & 1) {
|
|
2761
2761
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
2762
2762
|
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); });
|
|
2763
2763
|
i0__namespace.ɵɵelementEnd();
|
|
2764
2764
|
}
|
|
2765
2765
|
if (rf & 2) {
|
|
2766
|
-
i0__namespace.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus);
|
|
2766
|
+
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);
|
|
2767
2767
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2768
2768
|
}
|
|
2769
|
-
}, dependencies: [
|
|
2769
|
+
}, 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 });
|
|
2770
2770
|
(function () {
|
|
2771
2771
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputColorComponent, [{
|
|
2772
2772
|
type: i0.Component,
|
|
2773
2773
|
args: [{ selector: 'wm-input[type="color"]', providers: [
|
|
2774
|
-
i2.provideAs(InputColorComponent,
|
|
2775
|
-
i2.provideAs(InputColorComponent,
|
|
2774
|
+
i2.provideAs(InputColorComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2775
|
+
i2.provideAs(InputColorComponent, i2$1.NG_VALIDATORS, true),
|
|
2776
2776
|
i2.provideAsWidgetRef(InputColorComponent)
|
|
2777
|
-
], 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" }]
|
|
2777
|
+
], 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" }]
|
|
2778
2778
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2779
2779
|
type: i0.ViewChild,
|
|
2780
2780
|
args: ['input', { static: true }]
|
|
2781
2781
|
}], ngModel: [{
|
|
2782
2782
|
type: i0.ViewChild,
|
|
2783
|
-
args: [
|
|
2783
|
+
args: [i2$1.NgModel]
|
|
2784
2784
|
}] });
|
|
2785
2785
|
})();
|
|
2786
2786
|
|
|
@@ -2827,7 +2827,7 @@
|
|
|
2827
2827
|
InputEmailComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputEmailComponent, selectors: [["wm-input", "type", "email"]], viewQuery: function InputEmailComponent_Query(rf, ctx) {
|
|
2828
2828
|
if (rf & 1) {
|
|
2829
2829
|
i0__namespace.ɵɵviewQuery(_c0$3, 7);
|
|
2830
|
-
i0__namespace.ɵɵviewQuery(
|
|
2830
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
2831
2831
|
}
|
|
2832
2832
|
if (rf & 2) {
|
|
2833
2833
|
let _t;
|
|
@@ -2835,10 +2835,10 @@
|
|
|
2835
2835
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2836
2836
|
}
|
|
2837
2837
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2838
|
-
i2.provideAs(InputEmailComponent,
|
|
2839
|
-
i2.provideAs(InputEmailComponent,
|
|
2838
|
+
i2.provideAs(InputEmailComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2839
|
+
i2.provideAs(InputEmailComponent, i2$1.NG_VALIDATORS, true),
|
|
2840
2840
|
i2.provideAsWidgetRef(InputEmailComponent)
|
|
2841
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$2, decls: 2, vars:
|
|
2841
|
+
]), 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) {
|
|
2842
2842
|
if (rf & 1) {
|
|
2843
2843
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
2844
2844
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
@@ -2846,24 +2846,24 @@
|
|
|
2846
2846
|
i0__namespace.ɵɵelementEnd();
|
|
2847
2847
|
}
|
|
2848
2848
|
if (rf & 2) {
|
|
2849
|
-
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");
|
|
2849
|
+
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");
|
|
2850
2850
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2851
2851
|
}
|
|
2852
|
-
}, dependencies: [
|
|
2852
|
+
}, 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 });
|
|
2853
2853
|
(function () {
|
|
2854
2854
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputEmailComponent, [{
|
|
2855
2855
|
type: i0.Component,
|
|
2856
2856
|
args: [{ selector: 'wm-input[type="email"]', providers: [
|
|
2857
|
-
i2.provideAs(InputEmailComponent,
|
|
2858
|
-
i2.provideAs(InputEmailComponent,
|
|
2857
|
+
i2.provideAs(InputEmailComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2858
|
+
i2.provideAs(InputEmailComponent, i2$1.NG_VALIDATORS, true),
|
|
2859
2859
|
i2.provideAsWidgetRef(InputEmailComponent)
|
|
2860
|
-
], 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" }]
|
|
2860
|
+
], 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" }]
|
|
2861
2861
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2862
2862
|
type: i0.ViewChild,
|
|
2863
2863
|
args: ['input', { static: true }]
|
|
2864
2864
|
}], ngModel: [{
|
|
2865
2865
|
type: i0.ViewChild,
|
|
2866
|
-
args: [
|
|
2866
|
+
args: [i2$1.NgModel]
|
|
2867
2867
|
}] });
|
|
2868
2868
|
})();
|
|
2869
2869
|
|
|
@@ -2924,7 +2924,7 @@
|
|
|
2924
2924
|
InputNumberComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputNumberComponent, selectors: [["wm-input", "type", "number"]], viewQuery: function InputNumberComponent_Query(rf, ctx) {
|
|
2925
2925
|
if (rf & 1) {
|
|
2926
2926
|
i0__namespace.ɵɵviewQuery(_c0$2, 7);
|
|
2927
|
-
i0__namespace.ɵɵviewQuery(
|
|
2927
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
2928
2928
|
}
|
|
2929
2929
|
if (rf & 2) {
|
|
2930
2930
|
let _t;
|
|
@@ -2932,10 +2932,10 @@
|
|
|
2932
2932
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2933
2933
|
}
|
|
2934
2934
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2935
|
-
i2.provideAs(InputNumberComponent,
|
|
2936
|
-
i2.provideAs(InputNumberComponent,
|
|
2935
|
+
i2.provideAs(InputNumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2936
|
+
i2.provideAs(InputNumberComponent, i2$1.NG_VALIDATORS, true),
|
|
2937
2937
|
i2.provideAsWidgetRef(InputNumberComponent)
|
|
2938
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$1, decls: 2, vars:
|
|
2938
|
+
]), 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) {
|
|
2939
2939
|
if (rf & 1) {
|
|
2940
2940
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
2941
2941
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
@@ -2943,24 +2943,24 @@
|
|
|
2943
2943
|
i0__namespace.ɵɵelementEnd();
|
|
2944
2944
|
}
|
|
2945
2945
|
if (rf & 2) {
|
|
2946
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(
|
|
2946
|
+
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");
|
|
2947
2947
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2948
2948
|
}
|
|
2949
|
-
}, dependencies: [i1__namespace.NgClass,
|
|
2949
|
+
}, 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 });
|
|
2950
2950
|
(function () {
|
|
2951
2951
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputNumberComponent, [{
|
|
2952
2952
|
type: i0.Component,
|
|
2953
2953
|
args: [{ selector: 'wm-input[type="number"]', providers: [
|
|
2954
|
-
i2.provideAs(InputNumberComponent,
|
|
2955
|
-
i2.provideAs(InputNumberComponent,
|
|
2954
|
+
i2.provideAs(InputNumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2955
|
+
i2.provideAs(InputNumberComponent, i2$1.NG_VALIDATORS, true),
|
|
2956
2956
|
i2.provideAsWidgetRef(InputNumberComponent)
|
|
2957
|
-
], 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" }]
|
|
2957
|
+
], 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" }]
|
|
2958
2958
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2959
2959
|
type: i0.ViewChild,
|
|
2960
2960
|
args: ['input', { static: true }]
|
|
2961
2961
|
}], ngModel: [{
|
|
2962
2962
|
type: i0.ViewChild,
|
|
2963
|
-
args: [
|
|
2963
|
+
args: [i2$1.NgModel]
|
|
2964
2964
|
}] });
|
|
2965
2965
|
})();
|
|
2966
2966
|
|
|
@@ -2991,7 +2991,7 @@
|
|
|
2991
2991
|
]);
|
|
2992
2992
|
const registerProps$1 = () => {
|
|
2993
2993
|
i2.register('wm-input-text', inputTextTypeProps);
|
|
2994
|
-
i2.registerFormWidget(i1$
|
|
2994
|
+
i2.registerFormWidget(i1$1.FormWidgetType.PASSWORD, new Map(inputTextTypeProps));
|
|
2995
2995
|
const formTextProps = new Map(inputTextTypeProps);
|
|
2996
2996
|
const mergeTextProps = (typeProps) => {
|
|
2997
2997
|
typeProps.forEach((v, k) => formTextProps.set(k, v));
|
|
@@ -3000,7 +3000,7 @@
|
|
|
3000
3000
|
mergeTextProps(inputColorTypeProps);
|
|
3001
3001
|
mergeTextProps(inputEmailTypeProps);
|
|
3002
3002
|
mergeTextProps(inputNumberTypeProps);
|
|
3003
|
-
i2.registerFormWidget(i1$
|
|
3003
|
+
i2.registerFormWidget(i1$1.FormWidgetType.TEXT, new Map(formTextProps));
|
|
3004
3004
|
};
|
|
3005
3005
|
|
|
3006
3006
|
const _c0$1 = ["input"];
|
|
@@ -3088,8 +3088,8 @@
|
|
|
3088
3088
|
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) {
|
|
3089
3089
|
if (rf & 1) {
|
|
3090
3090
|
i0__namespace.ɵɵviewQuery(_c0$1, 7);
|
|
3091
|
-
i0__namespace.ɵɵviewQuery(
|
|
3092
|
-
i0__namespace.ɵɵviewQuery(_c0$1, 5,
|
|
3091
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
3092
|
+
i0__namespace.ɵɵviewQuery(_c0$1, 5, i3.IMaskDirective);
|
|
3093
3093
|
}
|
|
3094
3094
|
if (rf & 2) {
|
|
3095
3095
|
let _t;
|
|
@@ -3098,10 +3098,10 @@
|
|
|
3098
3098
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.imask = _t.first);
|
|
3099
3099
|
}
|
|
3100
3100
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
3101
|
-
i2.provideAs(InputTextComponent,
|
|
3102
|
-
i2.provideAs(InputTextComponent,
|
|
3101
|
+
i2.provideAs(InputTextComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3102
|
+
i2.provideAs(InputTextComponent, i2$1.NG_VALIDATORS, true),
|
|
3103
3103
|
i2.provideAsWidgetRef(InputTextComponent)
|
|
3104
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars:
|
|
3104
|
+
]), 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) {
|
|
3105
3105
|
if (rf & 1) {
|
|
3106
3106
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
3107
3107
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
@@ -3109,27 +3109,27 @@
|
|
|
3109
3109
|
i0__namespace.ɵɵelementEnd();
|
|
3110
3110
|
}
|
|
3111
3111
|
if (rf & 2) {
|
|
3112
|
-
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");
|
|
3112
|
+
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");
|
|
3113
3113
|
i0__namespace.ɵɵattribute("name", ctx.name)("aria-label", ctx.hint)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey);
|
|
3114
3114
|
}
|
|
3115
|
-
}, dependencies: [
|
|
3115
|
+
}, 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 });
|
|
3116
3116
|
(function () {
|
|
3117
3117
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputTextComponent, [{
|
|
3118
3118
|
type: i0.Component,
|
|
3119
3119
|
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: [
|
|
3120
|
-
i2.provideAs(InputTextComponent,
|
|
3121
|
-
i2.provideAs(InputTextComponent,
|
|
3120
|
+
i2.provideAs(InputTextComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3121
|
+
i2.provideAs(InputTextComponent, i2$1.NG_VALIDATORS, true),
|
|
3122
3122
|
i2.provideAsWidgetRef(InputTextComponent)
|
|
3123
|
-
], 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" }]
|
|
3123
|
+
], 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" }]
|
|
3124
3124
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
3125
3125
|
type: i0.ViewChild,
|
|
3126
3126
|
args: ['input', { static: true }]
|
|
3127
3127
|
}], ngModel: [{
|
|
3128
3128
|
type: i0.ViewChild,
|
|
3129
|
-
args: [
|
|
3129
|
+
args: [i2$1.NgModel]
|
|
3130
3130
|
}], imask: [{
|
|
3131
3131
|
type: i0.ViewChild,
|
|
3132
|
-
args: ['input', { read:
|
|
3132
|
+
args: ['input', { read: i3.IMaskDirective }]
|
|
3133
3133
|
}] });
|
|
3134
3134
|
})();
|
|
3135
3135
|
|
|
@@ -3152,10 +3152,12 @@
|
|
|
3152
3152
|
['updateon', i2.PROP_STRING],
|
|
3153
3153
|
['limitdisplaytext', i2.PROP_STRING],
|
|
3154
3154
|
['charlength', i2.PROP_NUMBER],
|
|
3155
|
+
['conditionalclass', i2.PROP_ANY],
|
|
3156
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
3155
3157
|
]);
|
|
3156
3158
|
const registerProps = () => {
|
|
3157
3159
|
i2.register('wm-textarea', textareaProps);
|
|
3158
|
-
i2.registerFormWidget(i1$
|
|
3160
|
+
i2.registerFormWidget(i1$1.FormWidgetType.TEXTAREA, new Map(textareaProps));
|
|
3159
3161
|
};
|
|
3160
3162
|
|
|
3161
3163
|
const _c0 = ["textarea"];
|
|
@@ -3189,7 +3191,7 @@
|
|
|
3189
3191
|
TextareaComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: TextareaComponent, selectors: [["wm-textarea"]], viewQuery: function TextareaComponent_Query(rf, ctx) {
|
|
3190
3192
|
if (rf & 1) {
|
|
3191
3193
|
i0__namespace.ɵɵviewQuery(_c0, 7);
|
|
3192
|
-
i0__namespace.ɵɵviewQuery(
|
|
3194
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
3193
3195
|
}
|
|
3194
3196
|
if (rf & 2) {
|
|
3195
3197
|
let _t;
|
|
@@ -3197,10 +3199,10 @@
|
|
|
3197
3199
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
3198
3200
|
}
|
|
3199
3201
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
3200
|
-
i2.provideAs(TextareaComponent,
|
|
3201
|
-
i2.provideAs(TextareaComponent,
|
|
3202
|
+
i2.provideAs(TextareaComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3203
|
+
i2.provideAs(TextareaComponent, i2$1.NG_VALIDATORS, true),
|
|
3202
3204
|
i2.provideAsWidgetRef(TextareaComponent)
|
|
3203
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars:
|
|
3205
|
+
]), 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) {
|
|
3204
3206
|
if (rf & 1) {
|
|
3205
3207
|
i0__namespace.ɵɵelementStart(0, "textarea", 0, 1);
|
|
3206
3208
|
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(); });
|
|
@@ -3208,26 +3210,26 @@
|
|
|
3208
3210
|
i0__namespace.ɵɵtemplate(2, TextareaComponent_div_2_Template, 2, 1, "div", 2);
|
|
3209
3211
|
}
|
|
3210
3212
|
if (rf & 2) {
|
|
3211
|
-
i0__namespace.ɵɵproperty("ngModel", ctx.datavalue)("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus);
|
|
3213
|
+
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);
|
|
3212
3214
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
3213
3215
|
i0__namespace.ɵɵadvance(2);
|
|
3214
3216
|
i0__namespace.ɵɵproperty("ngIf", ctx.maxchars);
|
|
3215
3217
|
}
|
|
3216
|
-
}, dependencies: [i1__namespace.NgIf,
|
|
3218
|
+
}, 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 });
|
|
3217
3219
|
(function () {
|
|
3218
3220
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TextareaComponent, [{
|
|
3219
3221
|
type: i0.Component,
|
|
3220
3222
|
args: [{ selector: 'wm-textarea', providers: [
|
|
3221
|
-
i2.provideAs(TextareaComponent,
|
|
3222
|
-
i2.provideAs(TextareaComponent,
|
|
3223
|
+
i2.provideAs(TextareaComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3224
|
+
i2.provideAs(TextareaComponent, i2$1.NG_VALIDATORS, true),
|
|
3223
3225
|
i2.provideAsWidgetRef(TextareaComponent)
|
|
3224
|
-
], 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" }]
|
|
3226
|
+
], 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" }]
|
|
3225
3227
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
3226
3228
|
type: i0.ViewChild,
|
|
3227
3229
|
args: ['textarea', { static: true }]
|
|
3228
3230
|
}], ngModel: [{
|
|
3229
3231
|
type: i0.ViewChild,
|
|
3230
|
-
args: [
|
|
3232
|
+
args: [i2$1.NgModel]
|
|
3231
3233
|
}] });
|
|
3232
3234
|
})();
|
|
3233
3235
|
|
|
@@ -3387,7 +3389,7 @@
|
|
|
3387
3389
|
}
|
|
3388
3390
|
}
|
|
3389
3391
|
}
|
|
3390
|
-
CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1$
|
|
3392
|
+
CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.App)); };
|
|
3391
3393
|
CaptionPositionDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: CaptionPositionDirective, selectors: [["", "wmCaptionPosition", ""]] });
|
|
3392
3394
|
(function () {
|
|
3393
3395
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaptionPositionDirective, [{
|
|
@@ -3395,7 +3397,7 @@
|
|
|
3395
3397
|
args: [{
|
|
3396
3398
|
selector: '[wmCaptionPosition]'
|
|
3397
3399
|
}]
|
|
3398
|
-
}], function () { return [{ type: i0__namespace.Injector }, { type: i1$
|
|
3400
|
+
}], function () { return [{ type: i0__namespace.Injector }, { type: i1$1__namespace.App }]; }, null);
|
|
3399
3401
|
})();
|
|
3400
3402
|
|
|
3401
3403
|
const components = [
|
|
@@ -3421,18 +3423,18 @@
|
|
|
3421
3423
|
InputModule.ɵfac = function InputModule_Factory(t) { return new (t || InputModule)(); };
|
|
3422
3424
|
InputModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: InputModule });
|
|
3423
3425
|
InputModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i1.CommonModule,
|
|
3424
|
-
|
|
3426
|
+
i2$1.FormsModule,
|
|
3425
3427
|
i2.WmComponentsModule,
|
|
3426
|
-
|
|
3428
|
+
i3.IMaskModule] });
|
|
3427
3429
|
(function () {
|
|
3428
3430
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputModule, [{
|
|
3429
3431
|
type: i0.NgModule,
|
|
3430
3432
|
args: [{
|
|
3431
3433
|
imports: [
|
|
3432
3434
|
i1.CommonModule,
|
|
3433
|
-
|
|
3435
|
+
i2$1.FormsModule,
|
|
3434
3436
|
i2.WmComponentsModule,
|
|
3435
|
-
|
|
3437
|
+
i3.IMaskModule
|
|
3436
3438
|
],
|
|
3437
3439
|
declarations: [...components],
|
|
3438
3440
|
exports: [...components]
|
|
@@ -3456,9 +3458,9 @@
|
|
|
3456
3458
|
InputNumberComponent,
|
|
3457
3459
|
InputTextComponent,
|
|
3458
3460
|
TextareaComponent], imports: [i1.CommonModule,
|
|
3459
|
-
|
|
3461
|
+
i2$1.FormsModule,
|
|
3460
3462
|
i2.WmComponentsModule,
|
|
3461
|
-
|
|
3463
|
+
i3.IMaskModule], exports: [ButtonComponent,
|
|
3462
3464
|
ButtonGroupDirective,
|
|
3463
3465
|
CaptionPositionDirective,
|
|
3464
3466
|
CheckboxComponent,
|