@wavemaker/app-ng-runtime 11.5.2-rc.5436 → 11.5.3-next.26259
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/base/bundles/index.umd.js +39 -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/fesm2015/index.mjs +39 -10
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +39 -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 +46 -34
- app-ng-runtime/components/chart/esm2020/chart.component.mjs +5 -5
- app-ng-runtime/components/chart/esm2020/chart.utils.mjs +45 -13
- app-ng-runtime/components/chart/fesm2015/index.mjs +48 -16
- app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/chart/fesm2020/index.mjs +48 -16
- 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/input/default/bundles/index.umd.js +176 -162
- 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/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 +57 -43
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +57 -43
- 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/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/@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,8 +2221,8 @@
|
|
|
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"];
|
|
@@ -2283,8 +2285,8 @@
|
|
|
2283
2285
|
const WIDGET_CONFIG$7 = { widgetType: 'wm-select', hostClass: 'app-select-wrapper' };
|
|
2284
2286
|
class SelectComponent extends DatasetAwareFormComponent {
|
|
2285
2287
|
set datasource(ds) {
|
|
2286
|
-
if (ds && ds.execute && ds.execute(i1$
|
|
2287
|
-
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);
|
|
2288
2290
|
}
|
|
2289
2291
|
}
|
|
2290
2292
|
constructor(inj) {
|
|
@@ -2336,7 +2338,7 @@
|
|
|
2336
2338
|
return;
|
|
2337
2339
|
}
|
|
2338
2340
|
else if (key === 'readonly') {
|
|
2339
|
-
(nv === true) ? i1$
|
|
2341
|
+
(nv === true) ? i1$1.setAttr(this.selectEl.nativeElement, 'readonly', 'readonly') : i1$1.removeAttr(this.selectEl.nativeElement, 'readonly');
|
|
2340
2342
|
}
|
|
2341
2343
|
super.onPropertyChange(key, nv, ov);
|
|
2342
2344
|
}
|
|
@@ -2370,8 +2372,8 @@
|
|
|
2370
2372
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.selectEl = _t.first);
|
|
2371
2373
|
}
|
|
2372
2374
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2373
|
-
i2.provideAs(SelectComponent,
|
|
2374
|
-
i2.provideAs(SelectComponent,
|
|
2375
|
+
i2.provideAs(SelectComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2376
|
+
i2.provideAs(SelectComponent, i2$1.NG_VALIDATORS, true),
|
|
2375
2377
|
i2.provideAsWidgetRef(SelectComponent)
|
|
2376
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) {
|
|
2377
2379
|
if (rf & 1) {
|
|
@@ -2392,13 +2394,13 @@
|
|
|
2392
2394
|
i0__namespace.ɵɵadvance(1);
|
|
2393
2395
|
i0__namespace.ɵɵproperty("ngIf", !ctx.groupby);
|
|
2394
2396
|
}
|
|
2395
|
-
}, 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 });
|
|
2396
2398
|
(function () {
|
|
2397
2399
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SelectComponent, [{
|
|
2398
2400
|
type: i0.Component,
|
|
2399
2401
|
args: [{ selector: 'wm-select', providers: [
|
|
2400
|
-
i2.provideAs(SelectComponent,
|
|
2401
|
-
i2.provideAs(SelectComponent,
|
|
2402
|
+
i2.provideAs(SelectComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2403
|
+
i2.provideAs(SelectComponent, i2$1.NG_VALIDATORS, true),
|
|
2402
2404
|
i2.provideAsWidgetRef(SelectComponent)
|
|
2403
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" }]
|
|
2404
2406
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { selectEl: [{
|
|
@@ -2427,8 +2429,8 @@
|
|
|
2427
2429
|
]);
|
|
2428
2430
|
const registerProps$6 = () => {
|
|
2429
2431
|
i2.register('wm-switch', switchProps);
|
|
2430
|
-
i2.registerFormWidget(i1$
|
|
2431
|
-
i2.registerFormWidget(i1$
|
|
2432
|
+
i2.registerFormWidget(i1$1.FormWidgetType.SWITCH, new Map(switchProps));
|
|
2433
|
+
i2.registerFormWidget(i1$1.FormWidgetType.TOGGLE, new Map(switchProps));
|
|
2432
2434
|
};
|
|
2433
2435
|
|
|
2434
2436
|
const _c0$6 = ["wmSwitch", ""];
|
|
@@ -2478,12 +2480,12 @@
|
|
|
2478
2480
|
constructor(inj) {
|
|
2479
2481
|
super(inj, WIDGET_CONFIG$6);
|
|
2480
2482
|
this.options = [];
|
|
2481
|
-
this._debounceSetSelectedValue = i1$
|
|
2483
|
+
this._debounceSetSelectedValue = i1$1.debounce((val) => {
|
|
2482
2484
|
this.setSelectedValue();
|
|
2483
2485
|
this.updateHighlighter(val);
|
|
2484
2486
|
// only for default value trigger app digest to apply the selectedItem
|
|
2485
2487
|
if (val) {
|
|
2486
|
-
i1$
|
|
2488
|
+
i1$1.$appDigest();
|
|
2487
2489
|
}
|
|
2488
2490
|
}, 200);
|
|
2489
2491
|
const datasetSubscription = this.dataset$.subscribe(() => this.updateSwitchOptions());
|
|
@@ -2499,7 +2501,7 @@
|
|
|
2499
2501
|
}
|
|
2500
2502
|
onStyleChange(key, nv, ov) {
|
|
2501
2503
|
if (key === 'height') {
|
|
2502
|
-
i1$
|
|
2504
|
+
i1$1.setCSS(this.nativeElement, 'overflow', nv ? 'auto' : '');
|
|
2503
2505
|
}
|
|
2504
2506
|
else {
|
|
2505
2507
|
super.onStyleChange(key, nv, ov);
|
|
@@ -2507,7 +2509,7 @@
|
|
|
2507
2509
|
}
|
|
2508
2510
|
// This function sets the selectedItem by either using compareby fields or selected flag on datasetItems.
|
|
2509
2511
|
setSelectedValue() {
|
|
2510
|
-
if (i1$
|
|
2512
|
+
if (i1$1.isDefined(this.datavalue) || i1$1.isDefined(this.toBeProcessedDatavalue)) {
|
|
2511
2513
|
this.selectedItem = _.find(this.datasetItems, { selected: true });
|
|
2512
2514
|
return;
|
|
2513
2515
|
}
|
|
@@ -2519,7 +2521,7 @@
|
|
|
2519
2521
|
updateSwitchOptions() {
|
|
2520
2522
|
if (this.datasetItems.length) {
|
|
2521
2523
|
this.btnwidth = (100 / this.datasetItems.length);
|
|
2522
|
-
i1$
|
|
2524
|
+
i1$1.setCSS(this.nativeElement.querySelector('.app-switch-overlay'), 'width', this.btnwidth + '%');
|
|
2523
2525
|
}
|
|
2524
2526
|
this._debounceSetSelectedValue(true);
|
|
2525
2527
|
}
|
|
@@ -2569,10 +2571,10 @@
|
|
|
2569
2571
|
this.updateHighlighter();
|
|
2570
2572
|
// invoke on datavalue change.
|
|
2571
2573
|
this.invokeOnChange(this.datavalue, $event || {}, true);
|
|
2572
|
-
i1$
|
|
2574
|
+
i1$1.$appDigest();
|
|
2573
2575
|
}
|
|
2574
2576
|
onPropertyChange(key, nv, ov) {
|
|
2575
|
-
if (key === 'disabled' && !i1$
|
|
2577
|
+
if (key === 'disabled' && !i1$1.toBoolean(nv)) {
|
|
2576
2578
|
this.nativeElement.removeAttribute(key);
|
|
2577
2579
|
}
|
|
2578
2580
|
else {
|
|
@@ -2583,7 +2585,7 @@
|
|
|
2583
2585
|
SwitchComponent.initializeProps = registerProps$6();
|
|
2584
2586
|
SwitchComponent.ɵfac = function SwitchComponent_Factory(t) { return new (t || SwitchComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
2585
2587
|
SwitchComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SwitchComponent, selectors: [["", "wmSwitch", ""]], exportAs: ["wmSwitch"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
2586
|
-
i2.provideAs(SwitchComponent,
|
|
2588
|
+
i2.provideAs(SwitchComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2587
2589
|
i2.provideAsWidgetRef(SwitchComponent)
|
|
2588
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) {
|
|
2589
2591
|
if (rf & 1) {
|
|
@@ -2613,7 +2615,7 @@
|
|
|
2613
2615
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SwitchComponent, [{
|
|
2614
2616
|
type: i0.Component,
|
|
2615
2617
|
args: [{ selector: '[wmSwitch]', providers: [
|
|
2616
|
-
i2.provideAs(SwitchComponent,
|
|
2618
|
+
i2.provideAs(SwitchComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2617
2619
|
i2.provideAsWidgetRef(SwitchComponent)
|
|
2618
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" }]
|
|
2619
2621
|
}], function () { return [{ type: i0__namespace.Injector }]; }, null);
|
|
@@ -2639,7 +2641,9 @@
|
|
|
2639
2641
|
['step', i2.PROP_NUMBER],
|
|
2640
2642
|
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2641
2643
|
['type', i2.PROP_STRING],
|
|
2642
|
-
['updateon', i2.PROP_STRING]
|
|
2644
|
+
['updateon', i2.PROP_STRING],
|
|
2645
|
+
['conditionalclass', i2.PROP_ANY],
|
|
2646
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
2643
2647
|
]);
|
|
2644
2648
|
const registerProps$5 = () => {
|
|
2645
2649
|
i2.register('wm-input-calendar', inputCalendarTypeProps);
|
|
@@ -2661,7 +2665,7 @@
|
|
|
2661
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) {
|
|
2662
2666
|
if (rf & 1) {
|
|
2663
2667
|
i0__namespace.ɵɵviewQuery(_c0$5, 7);
|
|
2664
|
-
i0__namespace.ɵɵviewQuery(
|
|
2668
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
2665
2669
|
}
|
|
2666
2670
|
if (rf & 2) {
|
|
2667
2671
|
let _t;
|
|
@@ -2669,34 +2673,34 @@
|
|
|
2669
2673
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2670
2674
|
}
|
|
2671
2675
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2672
|
-
i2.provideAs(InputCalendarComponent,
|
|
2673
|
-
i2.provideAs(InputCalendarComponent,
|
|
2676
|
+
i2.provideAs(InputCalendarComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2677
|
+
i2.provideAs(InputCalendarComponent, i2$1.NG_VALIDATORS, true),
|
|
2674
2678
|
i2.provideAsWidgetRef(InputCalendarComponent)
|
|
2675
|
-
]), 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) {
|
|
2676
2680
|
if (rf & 1) {
|
|
2677
2681
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
2678
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); });
|
|
2679
2683
|
i0__namespace.ɵɵelementEnd();
|
|
2680
2684
|
}
|
|
2681
2685
|
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");
|
|
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);
|
|
2683
2687
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint || ctx.type + " field");
|
|
2684
2688
|
}
|
|
2685
|
-
}, 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 });
|
|
2686
2690
|
(function () {
|
|
2687
2691
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputCalendarComponent, [{
|
|
2688
2692
|
type: i0.Component,
|
|
2689
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: [
|
|
2690
|
-
i2.provideAs(InputCalendarComponent,
|
|
2691
|
-
i2.provideAs(InputCalendarComponent,
|
|
2694
|
+
i2.provideAs(InputCalendarComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2695
|
+
i2.provideAs(InputCalendarComponent, i2$1.NG_VALIDATORS, true),
|
|
2692
2696
|
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" }]
|
|
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" }]
|
|
2694
2698
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2695
2699
|
type: i0.ViewChild,
|
|
2696
2700
|
args: ['input', { static: true }]
|
|
2697
2701
|
}], ngModel: [{
|
|
2698
2702
|
type: i0.ViewChild,
|
|
2699
|
-
args: [
|
|
2703
|
+
args: [i2$1.NgModel]
|
|
2700
2704
|
}] });
|
|
2701
2705
|
})();
|
|
2702
2706
|
|
|
@@ -2717,7 +2721,9 @@
|
|
|
2717
2721
|
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2718
2722
|
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2719
2723
|
['type', Object.assign({ value: 'color' }, i2.PROP_STRING)],
|
|
2720
|
-
['updateon', i2.PROP_STRING]
|
|
2724
|
+
['updateon', i2.PROP_STRING],
|
|
2725
|
+
['conditionalclass', i2.PROP_ANY],
|
|
2726
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
2721
2727
|
]);
|
|
2722
2728
|
const registerProps$4 = () => {
|
|
2723
2729
|
i2.register('wm-input-color', inputColorTypeProps);
|
|
@@ -2739,7 +2745,7 @@
|
|
|
2739
2745
|
InputColorComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputColorComponent, selectors: [["wm-input", "type", "color"]], viewQuery: function InputColorComponent_Query(rf, ctx) {
|
|
2740
2746
|
if (rf & 1) {
|
|
2741
2747
|
i0__namespace.ɵɵviewQuery(_c0$4, 7);
|
|
2742
|
-
i0__namespace.ɵɵviewQuery(
|
|
2748
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
2743
2749
|
}
|
|
2744
2750
|
if (rf & 2) {
|
|
2745
2751
|
let _t;
|
|
@@ -2747,34 +2753,34 @@
|
|
|
2747
2753
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2748
2754
|
}
|
|
2749
2755
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2750
|
-
i2.provideAs(InputColorComponent,
|
|
2751
|
-
i2.provideAs(InputColorComponent,
|
|
2756
|
+
i2.provideAs(InputColorComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2757
|
+
i2.provideAs(InputColorComponent, i2$1.NG_VALIDATORS, true),
|
|
2752
2758
|
i2.provideAsWidgetRef(InputColorComponent)
|
|
2753
|
-
]), 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) {
|
|
2754
2760
|
if (rf & 1) {
|
|
2755
2761
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
2756
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); });
|
|
2757
2763
|
i0__namespace.ɵɵelementEnd();
|
|
2758
2764
|
}
|
|
2759
2765
|
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);
|
|
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);
|
|
2761
2767
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2762
2768
|
}
|
|
2763
|
-
}, 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 });
|
|
2764
2770
|
(function () {
|
|
2765
2771
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputColorComponent, [{
|
|
2766
2772
|
type: i0.Component,
|
|
2767
2773
|
args: [{ selector: 'wm-input[type="color"]', providers: [
|
|
2768
|
-
i2.provideAs(InputColorComponent,
|
|
2769
|
-
i2.provideAs(InputColorComponent,
|
|
2774
|
+
i2.provideAs(InputColorComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2775
|
+
i2.provideAs(InputColorComponent, i2$1.NG_VALIDATORS, true),
|
|
2770
2776
|
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" }]
|
|
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" }]
|
|
2772
2778
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2773
2779
|
type: i0.ViewChild,
|
|
2774
2780
|
args: ['input', { static: true }]
|
|
2775
2781
|
}], ngModel: [{
|
|
2776
2782
|
type: i0.ViewChild,
|
|
2777
|
-
args: [
|
|
2783
|
+
args: [i2$1.NgModel]
|
|
2778
2784
|
}] });
|
|
2779
2785
|
})();
|
|
2780
2786
|
|
|
@@ -2797,7 +2803,9 @@
|
|
|
2797
2803
|
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2798
2804
|
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2799
2805
|
['type', Object.assign({ value: 'email' }, i2.PROP_STRING)],
|
|
2800
|
-
['updateon', i2.PROP_STRING]
|
|
2806
|
+
['updateon', i2.PROP_STRING],
|
|
2807
|
+
['conditionalclass', i2.PROP_ANY],
|
|
2808
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
2801
2809
|
]);
|
|
2802
2810
|
const registerProps$3 = () => {
|
|
2803
2811
|
i2.register('wm-input-email', inputEmailTypeProps);
|
|
@@ -2819,7 +2827,7 @@
|
|
|
2819
2827
|
InputEmailComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputEmailComponent, selectors: [["wm-input", "type", "email"]], viewQuery: function InputEmailComponent_Query(rf, ctx) {
|
|
2820
2828
|
if (rf & 1) {
|
|
2821
2829
|
i0__namespace.ɵɵviewQuery(_c0$3, 7);
|
|
2822
|
-
i0__namespace.ɵɵviewQuery(
|
|
2830
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
2823
2831
|
}
|
|
2824
2832
|
if (rf & 2) {
|
|
2825
2833
|
let _t;
|
|
@@ -2827,10 +2835,10 @@
|
|
|
2827
2835
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2828
2836
|
}
|
|
2829
2837
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2830
|
-
i2.provideAs(InputEmailComponent,
|
|
2831
|
-
i2.provideAs(InputEmailComponent,
|
|
2838
|
+
i2.provideAs(InputEmailComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2839
|
+
i2.provideAs(InputEmailComponent, i2$1.NG_VALIDATORS, true),
|
|
2832
2840
|
i2.provideAsWidgetRef(InputEmailComponent)
|
|
2833
|
-
]), 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) {
|
|
2834
2842
|
if (rf & 1) {
|
|
2835
2843
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
2836
2844
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
@@ -2838,24 +2846,24 @@
|
|
|
2838
2846
|
i0__namespace.ɵɵelementEnd();
|
|
2839
2847
|
}
|
|
2840
2848
|
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");
|
|
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");
|
|
2842
2850
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2843
2851
|
}
|
|
2844
|
-
}, 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 });
|
|
2845
2853
|
(function () {
|
|
2846
2854
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputEmailComponent, [{
|
|
2847
2855
|
type: i0.Component,
|
|
2848
2856
|
args: [{ selector: 'wm-input[type="email"]', providers: [
|
|
2849
|
-
i2.provideAs(InputEmailComponent,
|
|
2850
|
-
i2.provideAs(InputEmailComponent,
|
|
2857
|
+
i2.provideAs(InputEmailComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2858
|
+
i2.provideAs(InputEmailComponent, i2$1.NG_VALIDATORS, true),
|
|
2851
2859
|
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" }]
|
|
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" }]
|
|
2853
2861
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2854
2862
|
type: i0.ViewChild,
|
|
2855
2863
|
args: ['input', { static: true }]
|
|
2856
2864
|
}], ngModel: [{
|
|
2857
2865
|
type: i0.ViewChild,
|
|
2858
|
-
args: [
|
|
2866
|
+
args: [i2$1.NgModel]
|
|
2859
2867
|
}] });
|
|
2860
2868
|
})();
|
|
2861
2869
|
|
|
@@ -2881,7 +2889,9 @@
|
|
|
2881
2889
|
['step', i2.PROP_NUMBER],
|
|
2882
2890
|
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2883
2891
|
['type', Object.assign({ value: 'number' }, i2.PROP_STRING)],
|
|
2884
|
-
['updateon', i2.PROP_STRING]
|
|
2892
|
+
['updateon', i2.PROP_STRING],
|
|
2893
|
+
['conditionalclass', i2.PROP_ANY],
|
|
2894
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
2885
2895
|
]);
|
|
2886
2896
|
const registerProps$2 = () => {
|
|
2887
2897
|
i2.register('wm-input-number', inputNumberTypeProps);
|
|
@@ -2914,7 +2924,7 @@
|
|
|
2914
2924
|
InputNumberComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputNumberComponent, selectors: [["wm-input", "type", "number"]], viewQuery: function InputNumberComponent_Query(rf, ctx) {
|
|
2915
2925
|
if (rf & 1) {
|
|
2916
2926
|
i0__namespace.ɵɵviewQuery(_c0$2, 7);
|
|
2917
|
-
i0__namespace.ɵɵviewQuery(
|
|
2927
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
2918
2928
|
}
|
|
2919
2929
|
if (rf & 2) {
|
|
2920
2930
|
let _t;
|
|
@@ -2922,10 +2932,10 @@
|
|
|
2922
2932
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2923
2933
|
}
|
|
2924
2934
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2925
|
-
i2.provideAs(InputNumberComponent,
|
|
2926
|
-
i2.provideAs(InputNumberComponent,
|
|
2935
|
+
i2.provideAs(InputNumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2936
|
+
i2.provideAs(InputNumberComponent, i2$1.NG_VALIDATORS, true),
|
|
2927
2937
|
i2.provideAsWidgetRef(InputNumberComponent)
|
|
2928
|
-
]), 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) {
|
|
2929
2939
|
if (rf & 1) {
|
|
2930
2940
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
2931
2941
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
@@ -2933,24 +2943,24 @@
|
|
|
2933
2943
|
i0__namespace.ɵɵelementEnd();
|
|
2934
2944
|
}
|
|
2935
2945
|
if (rf & 2) {
|
|
2936
|
-
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");
|
|
2937
2947
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2938
2948
|
}
|
|
2939
|
-
}, 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 });
|
|
2940
2950
|
(function () {
|
|
2941
2951
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputNumberComponent, [{
|
|
2942
2952
|
type: i0.Component,
|
|
2943
2953
|
args: [{ selector: 'wm-input[type="number"]', providers: [
|
|
2944
|
-
i2.provideAs(InputNumberComponent,
|
|
2945
|
-
i2.provideAs(InputNumberComponent,
|
|
2954
|
+
i2.provideAs(InputNumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2955
|
+
i2.provideAs(InputNumberComponent, i2$1.NG_VALIDATORS, true),
|
|
2946
2956
|
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" }]
|
|
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" }]
|
|
2948
2958
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2949
2959
|
type: i0.ViewChild,
|
|
2950
2960
|
args: ['input', { static: true }]
|
|
2951
2961
|
}], ngModel: [{
|
|
2952
2962
|
type: i0.ViewChild,
|
|
2953
|
-
args: [
|
|
2963
|
+
args: [i2$1.NgModel]
|
|
2954
2964
|
}] });
|
|
2955
2965
|
})();
|
|
2956
2966
|
|
|
@@ -2975,11 +2985,13 @@
|
|
|
2975
2985
|
['showdisplayformaton', Object.assign({ value: 'always' }, i2.PROP_ANY)],
|
|
2976
2986
|
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2977
2987
|
['type', Object.assign({ value: 'text' }, i2.PROP_STRING)],
|
|
2978
|
-
['updateon', i2.PROP_STRING]
|
|
2988
|
+
['updateon', i2.PROP_STRING],
|
|
2989
|
+
['conditionalclass', i2.PROP_ANY],
|
|
2990
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
2979
2991
|
]);
|
|
2980
2992
|
const registerProps$1 = () => {
|
|
2981
2993
|
i2.register('wm-input-text', inputTextTypeProps);
|
|
2982
|
-
i2.registerFormWidget(i1$
|
|
2994
|
+
i2.registerFormWidget(i1$1.FormWidgetType.PASSWORD, new Map(inputTextTypeProps));
|
|
2983
2995
|
const formTextProps = new Map(inputTextTypeProps);
|
|
2984
2996
|
const mergeTextProps = (typeProps) => {
|
|
2985
2997
|
typeProps.forEach((v, k) => formTextProps.set(k, v));
|
|
@@ -2988,7 +3000,7 @@
|
|
|
2988
3000
|
mergeTextProps(inputColorTypeProps);
|
|
2989
3001
|
mergeTextProps(inputEmailTypeProps);
|
|
2990
3002
|
mergeTextProps(inputNumberTypeProps);
|
|
2991
|
-
i2.registerFormWidget(i1$
|
|
3003
|
+
i2.registerFormWidget(i1$1.FormWidgetType.TEXT, new Map(formTextProps));
|
|
2992
3004
|
};
|
|
2993
3005
|
|
|
2994
3006
|
const _c0$1 = ["input"];
|
|
@@ -3076,8 +3088,8 @@
|
|
|
3076
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) {
|
|
3077
3089
|
if (rf & 1) {
|
|
3078
3090
|
i0__namespace.ɵɵviewQuery(_c0$1, 7);
|
|
3079
|
-
i0__namespace.ɵɵviewQuery(
|
|
3080
|
-
i0__namespace.ɵɵviewQuery(_c0$1, 5,
|
|
3091
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
3092
|
+
i0__namespace.ɵɵviewQuery(_c0$1, 5, i3.IMaskDirective);
|
|
3081
3093
|
}
|
|
3082
3094
|
if (rf & 2) {
|
|
3083
3095
|
let _t;
|
|
@@ -3086,10 +3098,10 @@
|
|
|
3086
3098
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.imask = _t.first);
|
|
3087
3099
|
}
|
|
3088
3100
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
3089
|
-
i2.provideAs(InputTextComponent,
|
|
3090
|
-
i2.provideAs(InputTextComponent,
|
|
3101
|
+
i2.provideAs(InputTextComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3102
|
+
i2.provideAs(InputTextComponent, i2$1.NG_VALIDATORS, true),
|
|
3091
3103
|
i2.provideAsWidgetRef(InputTextComponent)
|
|
3092
|
-
]), 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) {
|
|
3093
3105
|
if (rf & 1) {
|
|
3094
3106
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
3095
3107
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
@@ -3097,27 +3109,27 @@
|
|
|
3097
3109
|
i0__namespace.ɵɵelementEnd();
|
|
3098
3110
|
}
|
|
3099
3111
|
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");
|
|
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");
|
|
3101
3113
|
i0__namespace.ɵɵattribute("name", ctx.name)("aria-label", ctx.hint)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey);
|
|
3102
3114
|
}
|
|
3103
|
-
}, 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 });
|
|
3104
3116
|
(function () {
|
|
3105
3117
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputTextComponent, [{
|
|
3106
3118
|
type: i0.Component,
|
|
3107
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: [
|
|
3108
|
-
i2.provideAs(InputTextComponent,
|
|
3109
|
-
i2.provideAs(InputTextComponent,
|
|
3120
|
+
i2.provideAs(InputTextComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3121
|
+
i2.provideAs(InputTextComponent, i2$1.NG_VALIDATORS, true),
|
|
3110
3122
|
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" }]
|
|
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" }]
|
|
3112
3124
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
3113
3125
|
type: i0.ViewChild,
|
|
3114
3126
|
args: ['input', { static: true }]
|
|
3115
3127
|
}], ngModel: [{
|
|
3116
3128
|
type: i0.ViewChild,
|
|
3117
|
-
args: [
|
|
3129
|
+
args: [i2$1.NgModel]
|
|
3118
3130
|
}], imask: [{
|
|
3119
3131
|
type: i0.ViewChild,
|
|
3120
|
-
args: ['input', { read:
|
|
3132
|
+
args: ['input', { read: i3.IMaskDirective }]
|
|
3121
3133
|
}] });
|
|
3122
3134
|
})();
|
|
3123
3135
|
|
|
@@ -3140,10 +3152,12 @@
|
|
|
3140
3152
|
['updateon', i2.PROP_STRING],
|
|
3141
3153
|
['limitdisplaytext', i2.PROP_STRING],
|
|
3142
3154
|
['charlength', i2.PROP_NUMBER],
|
|
3155
|
+
['conditionalclass', i2.PROP_ANY],
|
|
3156
|
+
['conditionalstyle', i2.PROP_ANY]
|
|
3143
3157
|
]);
|
|
3144
3158
|
const registerProps = () => {
|
|
3145
3159
|
i2.register('wm-textarea', textareaProps);
|
|
3146
|
-
i2.registerFormWidget(i1$
|
|
3160
|
+
i2.registerFormWidget(i1$1.FormWidgetType.TEXTAREA, new Map(textareaProps));
|
|
3147
3161
|
};
|
|
3148
3162
|
|
|
3149
3163
|
const _c0 = ["textarea"];
|
|
@@ -3177,7 +3191,7 @@
|
|
|
3177
3191
|
TextareaComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: TextareaComponent, selectors: [["wm-textarea"]], viewQuery: function TextareaComponent_Query(rf, ctx) {
|
|
3178
3192
|
if (rf & 1) {
|
|
3179
3193
|
i0__namespace.ɵɵviewQuery(_c0, 7);
|
|
3180
|
-
i0__namespace.ɵɵviewQuery(
|
|
3194
|
+
i0__namespace.ɵɵviewQuery(i2$1.NgModel, 5);
|
|
3181
3195
|
}
|
|
3182
3196
|
if (rf & 2) {
|
|
3183
3197
|
let _t;
|
|
@@ -3185,10 +3199,10 @@
|
|
|
3185
3199
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
3186
3200
|
}
|
|
3187
3201
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
3188
|
-
i2.provideAs(TextareaComponent,
|
|
3189
|
-
i2.provideAs(TextareaComponent,
|
|
3202
|
+
i2.provideAs(TextareaComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3203
|
+
i2.provideAs(TextareaComponent, i2$1.NG_VALIDATORS, true),
|
|
3190
3204
|
i2.provideAsWidgetRef(TextareaComponent)
|
|
3191
|
-
]), 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) {
|
|
3192
3206
|
if (rf & 1) {
|
|
3193
3207
|
i0__namespace.ɵɵelementStart(0, "textarea", 0, 1);
|
|
3194
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(); });
|
|
@@ -3196,26 +3210,26 @@
|
|
|
3196
3210
|
i0__namespace.ɵɵtemplate(2, TextareaComponent_div_2_Template, 2, 1, "div", 2);
|
|
3197
3211
|
}
|
|
3198
3212
|
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);
|
|
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);
|
|
3200
3214
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
3201
3215
|
i0__namespace.ɵɵadvance(2);
|
|
3202
3216
|
i0__namespace.ɵɵproperty("ngIf", ctx.maxchars);
|
|
3203
3217
|
}
|
|
3204
|
-
}, 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 });
|
|
3205
3219
|
(function () {
|
|
3206
3220
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TextareaComponent, [{
|
|
3207
3221
|
type: i0.Component,
|
|
3208
3222
|
args: [{ selector: 'wm-textarea', providers: [
|
|
3209
|
-
i2.provideAs(TextareaComponent,
|
|
3210
|
-
i2.provideAs(TextareaComponent,
|
|
3223
|
+
i2.provideAs(TextareaComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3224
|
+
i2.provideAs(TextareaComponent, i2$1.NG_VALIDATORS, true),
|
|
3211
3225
|
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" }]
|
|
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" }]
|
|
3213
3227
|
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
3214
3228
|
type: i0.ViewChild,
|
|
3215
3229
|
args: ['textarea', { static: true }]
|
|
3216
3230
|
}], ngModel: [{
|
|
3217
3231
|
type: i0.ViewChild,
|
|
3218
|
-
args: [
|
|
3232
|
+
args: [i2$1.NgModel]
|
|
3219
3233
|
}] });
|
|
3220
3234
|
})();
|
|
3221
3235
|
|
|
@@ -3375,7 +3389,7 @@
|
|
|
3375
3389
|
}
|
|
3376
3390
|
}
|
|
3377
3391
|
}
|
|
3378
|
-
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)); };
|
|
3379
3393
|
CaptionPositionDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: CaptionPositionDirective, selectors: [["", "wmCaptionPosition", ""]] });
|
|
3380
3394
|
(function () {
|
|
3381
3395
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaptionPositionDirective, [{
|
|
@@ -3383,7 +3397,7 @@
|
|
|
3383
3397
|
args: [{
|
|
3384
3398
|
selector: '[wmCaptionPosition]'
|
|
3385
3399
|
}]
|
|
3386
|
-
}], function () { return [{ type: i0__namespace.Injector }, { type: i1$
|
|
3400
|
+
}], function () { return [{ type: i0__namespace.Injector }, { type: i1$1__namespace.App }]; }, null);
|
|
3387
3401
|
})();
|
|
3388
3402
|
|
|
3389
3403
|
const components = [
|
|
@@ -3409,18 +3423,18 @@
|
|
|
3409
3423
|
InputModule.ɵfac = function InputModule_Factory(t) { return new (t || InputModule)(); };
|
|
3410
3424
|
InputModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: InputModule });
|
|
3411
3425
|
InputModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i1.CommonModule,
|
|
3412
|
-
|
|
3426
|
+
i2$1.FormsModule,
|
|
3413
3427
|
i2.WmComponentsModule,
|
|
3414
|
-
|
|
3428
|
+
i3.IMaskModule] });
|
|
3415
3429
|
(function () {
|
|
3416
3430
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputModule, [{
|
|
3417
3431
|
type: i0.NgModule,
|
|
3418
3432
|
args: [{
|
|
3419
3433
|
imports: [
|
|
3420
3434
|
i1.CommonModule,
|
|
3421
|
-
|
|
3435
|
+
i2$1.FormsModule,
|
|
3422
3436
|
i2.WmComponentsModule,
|
|
3423
|
-
|
|
3437
|
+
i3.IMaskModule
|
|
3424
3438
|
],
|
|
3425
3439
|
declarations: [...components],
|
|
3426
3440
|
exports: [...components]
|
|
@@ -3444,9 +3458,9 @@
|
|
|
3444
3458
|
InputNumberComponent,
|
|
3445
3459
|
InputTextComponent,
|
|
3446
3460
|
TextareaComponent], imports: [i1.CommonModule,
|
|
3447
|
-
|
|
3461
|
+
i2$1.FormsModule,
|
|
3448
3462
|
i2.WmComponentsModule,
|
|
3449
|
-
|
|
3463
|
+
i3.IMaskModule], exports: [ButtonComponent,
|
|
3450
3464
|
ButtonGroupDirective,
|
|
3451
3465
|
CaptionPositionDirective,
|
|
3452
3466
|
CheckboxComponent,
|