@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.
Files changed (62) hide show
  1. app-ng-runtime/components/base/bundles/index.umd.js +39 -10
  2. app-ng-runtime/components/base/esm2020/pipes/custom-pipes.mjs +24 -11
  3. app-ng-runtime/components/base/esm2020/pipes/wm-pipe.mjs +17 -0
  4. app-ng-runtime/components/base/fesm2015/index.mjs +39 -10
  5. app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
  6. app-ng-runtime/components/base/fesm2020/index.mjs +39 -10
  7. app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
  8. app-ng-runtime/components/base/pipes/custom-pipes.d.ts +5 -2
  9. app-ng-runtime/components/base/pipes/wm-pipe.d.ts +9 -0
  10. app-ng-runtime/components/chart/bundles/index.umd.js +46 -34
  11. app-ng-runtime/components/chart/esm2020/chart.component.mjs +5 -5
  12. app-ng-runtime/components/chart/esm2020/chart.utils.mjs +45 -13
  13. app-ng-runtime/components/chart/fesm2015/index.mjs +48 -16
  14. app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
  15. app-ng-runtime/components/chart/fesm2020/index.mjs +48 -16
  16. app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
  17. app-ng-runtime/components/containers/wizard/bundles/index.umd.js +14 -3
  18. app-ng-runtime/components/containers/wizard/esm2020/wizard.component.mjs +13 -4
  19. app-ng-runtime/components/containers/wizard/esm2020/wizard.props.mjs +2 -1
  20. app-ng-runtime/components/containers/wizard/fesm2015/index.mjs +14 -3
  21. app-ng-runtime/components/containers/wizard/fesm2015/index.mjs.map +1 -1
  22. app-ng-runtime/components/containers/wizard/fesm2020/index.mjs +13 -3
  23. app-ng-runtime/components/containers/wizard/fesm2020/index.mjs.map +1 -1
  24. app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -0
  25. app-ng-runtime/components/input/default/bundles/index.umd.js +176 -162
  26. app-ng-runtime/components/input/default/esm2020/number/number.component.mjs +7 -6
  27. app-ng-runtime/components/input/default/esm2020/number/number.props.mjs +4 -2
  28. app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.component.mjs +7 -6
  29. app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.props.mjs +4 -2
  30. app-ng-runtime/components/input/default/esm2020/text/color/input-color.component.mjs +7 -6
  31. app-ng-runtime/components/input/default/esm2020/text/color/input-color.props.mjs +4 -2
  32. app-ng-runtime/components/input/default/esm2020/text/email/input-email.component.mjs +7 -6
  33. app-ng-runtime/components/input/default/esm2020/text/email/input-email.props.mjs +4 -2
  34. app-ng-runtime/components/input/default/esm2020/text/number/input-number.component.mjs +5 -5
  35. app-ng-runtime/components/input/default/esm2020/text/number/input-number.props.mjs +4 -2
  36. app-ng-runtime/components/input/default/esm2020/text/text/input-text.component.mjs +8 -7
  37. app-ng-runtime/components/input/default/esm2020/text/text/input-text.props.mjs +4 -2
  38. app-ng-runtime/components/input/default/esm2020/textarea/textarea.component.mjs +5 -5
  39. app-ng-runtime/components/input/default/esm2020/textarea/textarea.props.mjs +3 -1
  40. app-ng-runtime/components/input/default/fesm2015/index.mjs +57 -43
  41. app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
  42. app-ng-runtime/components/input/default/fesm2020/index.mjs +57 -43
  43. app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
  44. app-ng-runtime/components/input/default/number/number.component.d.ts +2 -0
  45. app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +2 -0
  46. app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +2 -0
  47. app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +2 -0
  48. app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +2 -0
  49. app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +2 -0
  50. app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +2 -0
  51. app-ng-runtime/package.json +1 -1
  52. app-ng-runtime/runtime/base/bundles/index.umd.js +26 -1
  53. app-ng-runtime/runtime/base/components/base-page.component.d.ts +1 -0
  54. app-ng-runtime/runtime/base/esm2020/components/base-page.component.mjs +26 -1
  55. app-ng-runtime/runtime/base/esm2020/services/pipe-provider.service.mjs +2 -2
  56. app-ng-runtime/runtime/base/fesm2015/index.mjs +26 -1
  57. app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
  58. app-ng-runtime/runtime/base/fesm2020/index.mjs +26 -1
  59. app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
  60. app-ng-runtime/scripts/@wavemaker/nvd3/build/nv.d3.min.js +1 -0
  61. app-ng-runtime/scripts/d3/d3.min.js +2 -5
  62. app-ng-runtime/scripts/@wavemaker.com/nvd3/build/nv.d3.min.js +0 -13
@@ -2,13 +2,13 @@ import * as i0 from '@angular/core';
2
2
  import { Component, HostBinding, Directive, HostListener, Injectable, Inject, ElementRef, Attribute, ViewChild, ContentChildren, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { getLocaleNumberSymbol, NumberSymbol, CommonModule } from '@angular/common';
5
- import * as i1$1 from '@angular/forms';
5
+ import * as i2$1 from '@angular/forms';
6
6
  import { FormControlName, NgModel, NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule } from '@angular/forms';
7
- import * as i2$1 from 'angular-imask';
7
+ import * as i3 from 'angular-imask';
8
8
  import { IMaskDirective, IMaskModule } from 'angular-imask';
9
9
  import * as i2 from '@wm/components/base';
10
10
  import { register, PROP_STRING, PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, DISPLAY_TYPE, StylableComponent, styler, provideAsWidgetRef, APPLY_STYLES_TYPE, WidgetConfig, registerFormWidget, provideAs, extractDataAsArray, ToDatePipe, ALLFIELDS, getOrderedDataset, convertDataToObject, transformDataWithKeys, transformFormData, getUniqObjsByDataField, groupData, handleHeaderClick, toggleAllHeaders, WidgetRef, INPUTMODE, WmComponentsModule } from '@wm/components/base';
11
- import * as i1$2 from '@wm/core';
11
+ import * as i1$1 from '@wm/core';
12
12
  import { DataSource, FormWidgetType, isDefined, toggleClass, AppDefaults, debounce, $appDigest, noop, isEqualWithFields, toBoolean, setListClass, switchClass, addForIdAttributes, addClass, setAttr, removeAttr, setCSS } from '@wm/core';
13
13
  import { Subject } from 'rxjs';
14
14
 
@@ -534,7 +534,7 @@ CheckboxComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CheckboxC
534
534
  i0.ɵɵadvance(2);
535
535
  i0.ɵɵproperty("disabled", ctx.disabled)("value", ctx.proxyModel);
536
536
  }
537
- }, dependencies: [i1.NgClass, i1$1.CheckboxControlValueAccessor, i1$1.NgControlStatus, i1$1.CheckboxRequiredValidator, i1$1.NgModel], encapsulation: 2 });
537
+ }, dependencies: [i1.NgClass, i2$1.CheckboxControlValueAccessor, i2$1.NgControlStatus, i2$1.CheckboxRequiredValidator, i2$1.NgModel], encapsulation: 2 });
538
538
  (function () {
539
539
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxComponent, [{
540
540
  type: Component,
@@ -1291,7 +1291,9 @@ const numberProps = new Map([
1291
1291
  ['tabindex', Object.assign({ value: 0 }, PROP_NUMBER)],
1292
1292
  ['trailingzero', Object.assign({ value: false }, PROP_BOOLEAN)],
1293
1293
  ['updateon', PROP_STRING],
1294
- ['inputmode', Object.assign({ value: 'natural' }, PROP_STRING)]
1294
+ ['inputmode', Object.assign({ value: 'natural' }, PROP_STRING)],
1295
+ ['conditionalclass', PROP_ANY],
1296
+ ['conditionalstyle', PROP_ANY]
1295
1297
  ]);
1296
1298
  const registerProps$9 = () => {
1297
1299
  register('wm-number', numberProps);
@@ -1830,7 +1832,7 @@ class NumberComponent extends NumberLocale {
1830
1832
  }
1831
1833
  }
1832
1834
  NumberComponent.initializeProps = registerProps$9();
1833
- NumberComponent.ɵfac = function NumberComponent_Factory(t) { return new (t || NumberComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$2.AbstractI18nService), i0.ɵɵdirectiveInject(i2.TrailingZeroDecimalPipe)); };
1835
+ NumberComponent.ɵfac = function NumberComponent_Factory(t) { return new (t || NumberComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$1.AbstractI18nService), i0.ɵɵdirectiveInject(i2.TrailingZeroDecimalPipe)); };
1834
1836
  NumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NumberComponent, selectors: [["", "wmNumber", ""]], viewQuery: function NumberComponent_Query(rf, ctx) {
1835
1837
  if (rf & 1) {
1836
1838
  i0.ɵɵviewQuery(_c0$9, 7);
@@ -1845,17 +1847,17 @@ NumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NumberCompo
1845
1847
  provideAs(NumberComponent, NG_VALUE_ACCESSOR, true),
1846
1848
  provideAs(NumberComponent, NG_VALIDATORS, true),
1847
1849
  provideAsWidgetRef(NumberComponent)
1848
- ]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$8, decls: 2, vars: 12, consts: [["inputmode", "decimal", "focus-target", "", "role", "textbox", "type", "text", 1, "form-control", "app-textbox", "app-number-input", 3, "ngModel", "readonly", "disabled", "pattern", "autofocus", "ngModelOptions", "required", "ngModelChange", "blur", "focus", "input", "keypress", "keydown.backspace", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown"], ["input", ""]], template: function NumberComponent_Template(rf, ctx) {
1850
+ ]), i0.ɵɵ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) {
1849
1851
  if (rf & 1) {
1850
1852
  i0.ɵɵelementStart(0, "input", 0, 1);
1851
1853
  i0.ɵɵ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"); });
1852
1854
  i0.ɵɵelementEnd();
1853
1855
  }
1854
1856
  if (rf & 2) {
1855
- i0.ɵɵproperty("ngModel", ctx.displayValue)("readonly", ctx.readonly)("disabled", ctx.disabled)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngModelOptions", ctx.ngModelOptions)("required", ctx.required);
1857
+ i0.ɵɵ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);
1856
1858
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
1857
1859
  }
1858
- }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.PatternValidator, i1$1.NgModel], encapsulation: 2 });
1860
+ }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.PatternValidator, i2$1.NgModel], encapsulation: 2 });
1859
1861
  (function () {
1860
1862
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NumberComponent, [{
1861
1863
  type: Component,
@@ -1863,8 +1865,8 @@ NumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NumberCompo
1863
1865
  provideAs(NumberComponent, NG_VALUE_ACCESSOR, true),
1864
1866
  provideAs(NumberComponent, NG_VALIDATORS, true),
1865
1867
  provideAsWidgetRef(NumberComponent)
1866
- ], 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" }]
1867
- }], function () { return [{ type: i0.Injector }, { type: i1$2.AbstractI18nService }, { type: i2.TrailingZeroDecimalPipe }]; }, { inputEl: [{
1868
+ ], 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" }]
1869
+ }], function () { return [{ type: i0.Injector }, { type: i1$1.AbstractI18nService }, { type: i2.TrailingZeroDecimalPipe }]; }, { inputEl: [{
1868
1870
  type: ViewChild,
1869
1871
  args: ['input', { static: true }]
1870
1872
  }], ngModel: [{
@@ -2376,7 +2378,7 @@ SelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectCompo
2376
2378
  i0.ɵɵadvance(1);
2377
2379
  i0.ɵɵproperty("ngIf", !ctx.groupby);
2378
2380
  }
2379
- }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i1$1.NgSelectOption, i1$1.ɵNgSelectMultipleOption, i1$1.SelectMultipleControlValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.NgModel, i2.TextContentDirective], encapsulation: 2 });
2381
+ }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i2$1.NgSelectOption, i2$1.ɵNgSelectMultipleOption, i2$1.SelectMultipleControlValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.NgModel, i2.TextContentDirective], encapsulation: 2 });
2380
2382
  (function () {
2381
2383
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectComponent, [{
2382
2384
  type: Component,
@@ -2623,7 +2625,9 @@ const inputCalendarTypeProps = new Map([
2623
2625
  ['step', PROP_NUMBER],
2624
2626
  ['tabindex', Object.assign({ value: 0 }, PROP_NUMBER)],
2625
2627
  ['type', PROP_STRING],
2626
- ['updateon', PROP_STRING]
2628
+ ['updateon', PROP_STRING],
2629
+ ['conditionalclass', PROP_ANY],
2630
+ ['conditionalstyle', PROP_ANY]
2627
2631
  ]);
2628
2632
  const registerProps$5 = () => {
2629
2633
  register('wm-input-calendar', inputCalendarTypeProps);
@@ -2656,17 +2660,17 @@ InputCalendarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Inpu
2656
2660
  provideAs(InputCalendarComponent, NG_VALUE_ACCESSOR, true),
2657
2661
  provideAs(InputCalendarComponent, NG_VALIDATORS, true),
2658
2662
  provideAsWidgetRef(InputCalendarComponent)
2659
- ]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$4, decls: 2, vars: 15, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "type", "ngModel", "readonly", "required", "disabled", "min", "max", "step", "autofocus", "autocomplete", "ngModelChange", "blur"], ["input", ""]], template: function InputCalendarComponent_Template(rf, ctx) {
2663
+ ]), i0.ɵɵ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) {
2660
2664
  if (rf & 1) {
2661
2665
  i0.ɵɵelementStart(0, "input", 0, 1);
2662
2666
  i0.ɵɵ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); });
2663
2667
  i0.ɵɵelementEnd();
2664
2668
  }
2665
2669
  if (rf & 2) {
2666
- i0.ɵɵ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");
2670
+ i0.ɵɵ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);
2667
2671
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint || ctx.type + " field");
2668
2672
  }
2669
- }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.NgModel], encapsulation: 2 });
2673
+ }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.NgModel], encapsulation: 2 });
2670
2674
  (function () {
2671
2675
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputCalendarComponent, [{
2672
2676
  type: Component,
@@ -2674,7 +2678,7 @@ InputCalendarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Inpu
2674
2678
  provideAs(InputCalendarComponent, NG_VALUE_ACCESSOR, true),
2675
2679
  provideAs(InputCalendarComponent, NG_VALIDATORS, true),
2676
2680
  provideAsWidgetRef(InputCalendarComponent)
2677
- ], 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" }]
2681
+ ], 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" }]
2678
2682
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2679
2683
  type: ViewChild,
2680
2684
  args: ['input', { static: true }]
@@ -2701,7 +2705,9 @@ const inputColorTypeProps = new Map([
2701
2705
  ['show', Object.assign({ value: true }, PROP_BOOLEAN)],
2702
2706
  ['tabindex', Object.assign({ value: 0 }, PROP_NUMBER)],
2703
2707
  ['type', Object.assign({ value: 'color' }, PROP_STRING)],
2704
- ['updateon', PROP_STRING]
2708
+ ['updateon', PROP_STRING],
2709
+ ['conditionalclass', PROP_ANY],
2710
+ ['conditionalstyle', PROP_ANY]
2705
2711
  ]);
2706
2712
  const registerProps$4 = () => {
2707
2713
  register('wm-input-color', inputColorTypeProps);
@@ -2734,17 +2740,17 @@ InputColorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputCo
2734
2740
  provideAs(InputColorComponent, NG_VALUE_ACCESSOR, true),
2735
2741
  provideAs(InputColorComponent, NG_VALIDATORS, true),
2736
2742
  provideAsWidgetRef(InputColorComponent)
2737
- ]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$3, decls: 2, vars: 12, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "type", "ngModel", "readonly", "required", "disabled", "maxlength", "autofocus", "ngModelChange", "blur"], ["input", ""]], template: function InputColorComponent_Template(rf, ctx) {
2743
+ ]), i0.ɵɵ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) {
2738
2744
  if (rf & 1) {
2739
2745
  i0.ɵɵelementStart(0, "input", 0, 1);
2740
2746
  i0.ɵɵ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); });
2741
2747
  i0.ɵɵelementEnd();
2742
2748
  }
2743
2749
  if (rf & 2) {
2744
- i0.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus);
2750
+ i0.ɵɵ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);
2745
2751
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
2746
2752
  }
2747
- }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.NgModel], encapsulation: 2 });
2753
+ }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 });
2748
2754
  (function () {
2749
2755
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputColorComponent, [{
2750
2756
  type: Component,
@@ -2752,7 +2758,7 @@ InputColorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputCo
2752
2758
  provideAs(InputColorComponent, NG_VALUE_ACCESSOR, true),
2753
2759
  provideAs(InputColorComponent, NG_VALIDATORS, true),
2754
2760
  provideAsWidgetRef(InputColorComponent)
2755
- ], 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" }]
2761
+ ], 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" }]
2756
2762
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2757
2763
  type: ViewChild,
2758
2764
  args: ['input', { static: true }]
@@ -2781,7 +2787,9 @@ const inputEmailTypeProps = new Map([
2781
2787
  ['show', Object.assign({ value: true }, PROP_BOOLEAN)],
2782
2788
  ['tabindex', Object.assign({ value: 0 }, PROP_NUMBER)],
2783
2789
  ['type', Object.assign({ value: 'email' }, PROP_STRING)],
2784
- ['updateon', PROP_STRING]
2790
+ ['updateon', PROP_STRING],
2791
+ ['conditionalclass', PROP_ANY],
2792
+ ['conditionalstyle', PROP_ANY]
2785
2793
  ]);
2786
2794
  const registerProps$3 = () => {
2787
2795
  register('wm-input-email', inputEmailTypeProps);
@@ -2814,7 +2822,7 @@ InputEmailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputEm
2814
2822
  provideAs(InputEmailComponent, NG_VALUE_ACCESSOR, true),
2815
2823
  provideAs(InputEmailComponent, NG_VALIDATORS, true),
2816
2824
  provideAsWidgetRef(InputEmailComponent)
2817
- ]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$2, decls: 2, vars: 15, consts: [["focus-target", "", "role", "textbox", "email", "", 1, "form-control", "app-textbox", 3, "type", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "pattern", "autofocus", "autocomplete", "ngModelChange", "blur", "keyup.enter"], ["input", ""]], template: function InputEmailComponent_Template(rf, ctx) {
2825
+ ]), i0.ɵɵ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) {
2818
2826
  if (rf & 1) {
2819
2827
  const _r1 = i0.ɵɵgetCurrentView();
2820
2828
  i0.ɵɵelementStart(0, "input", 0, 1);
@@ -2822,10 +2830,10 @@ InputEmailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputEm
2822
2830
  i0.ɵɵelementEnd();
2823
2831
  }
2824
2832
  if (rf & 2) {
2825
- i0.ɵɵ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");
2833
+ i0.ɵɵ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");
2826
2834
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
2827
2835
  }
2828
- }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.PatternValidator, i1$1.EmailValidator, i1$1.NgModel], encapsulation: 2 });
2836
+ }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.PatternValidator, i2$1.EmailValidator, i2$1.NgModel], encapsulation: 2 });
2829
2837
  (function () {
2830
2838
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputEmailComponent, [{
2831
2839
  type: Component,
@@ -2833,7 +2841,7 @@ InputEmailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputEm
2833
2841
  provideAs(InputEmailComponent, NG_VALUE_ACCESSOR, true),
2834
2842
  provideAs(InputEmailComponent, NG_VALIDATORS, true),
2835
2843
  provideAsWidgetRef(InputEmailComponent)
2836
- ], 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" }]
2844
+ ], 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" }]
2837
2845
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2838
2846
  type: ViewChild,
2839
2847
  args: ['input', { static: true }]
@@ -2865,7 +2873,9 @@ const inputNumberTypeProps = new Map([
2865
2873
  ['step', PROP_NUMBER],
2866
2874
  ['tabindex', Object.assign({ value: 0 }, PROP_NUMBER)],
2867
2875
  ['type', Object.assign({ value: 'number' }, PROP_STRING)],
2868
- ['updateon', PROP_STRING]
2876
+ ['updateon', PROP_STRING],
2877
+ ['conditionalclass', PROP_ANY],
2878
+ ['conditionalstyle', PROP_ANY]
2869
2879
  ]);
2870
2880
  const registerProps$2 = () => {
2871
2881
  register('wm-input-number', inputNumberTypeProps);
@@ -2909,7 +2919,7 @@ InputNumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputN
2909
2919
  provideAs(InputNumberComponent, NG_VALUE_ACCESSOR, true),
2910
2920
  provideAs(InputNumberComponent, NG_VALIDATORS, true),
2911
2921
  provideAsWidgetRef(InputNumberComponent)
2912
- ]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$1, decls: 2, vars: 20, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "ngClass", "type", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "min", "max", "step", "autofocus", "autocomplete", "ngModelChange", "blur", "keyup.enter", "keydown.ArrowUp", "keydown.ArrowDown", "keypress"], ["input", ""]], template: function InputNumberComponent_Template(rf, ctx) {
2922
+ ]), i0.ɵɵ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) {
2913
2923
  if (rf & 1) {
2914
2924
  const _r1 = i0.ɵɵgetCurrentView();
2915
2925
  i0.ɵɵelementStart(0, "input", 0, 1);
@@ -2917,10 +2927,10 @@ InputNumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputN
2917
2927
  i0.ɵɵelementEnd();
2918
2928
  }
2919
2929
  if (rf & 2) {
2920
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _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)("autocomplete", ctx.autocomplete ? "on" : "off");
2930
+ i0.ɵɵproperty("ngClass", i0.ɵɵ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");
2921
2931
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
2922
2932
  }
2923
- }, dependencies: [i1.NgClass, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.NgModel], encapsulation: 2 });
2933
+ }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 });
2924
2934
  (function () {
2925
2935
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputNumberComponent, [{
2926
2936
  type: Component,
@@ -2928,7 +2938,7 @@ InputNumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputN
2928
2938
  provideAs(InputNumberComponent, NG_VALUE_ACCESSOR, true),
2929
2939
  provideAs(InputNumberComponent, NG_VALIDATORS, true),
2930
2940
  provideAsWidgetRef(InputNumberComponent)
2931
- ], 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" }]
2941
+ ], 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" }]
2932
2942
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2933
2943
  type: ViewChild,
2934
2944
  args: ['input', { static: true }]
@@ -2959,7 +2969,9 @@ const inputTextTypeProps = new Map([
2959
2969
  ['showdisplayformaton', Object.assign({ value: 'always' }, PROP_ANY)],
2960
2970
  ['tabindex', Object.assign({ value: 0 }, PROP_NUMBER)],
2961
2971
  ['type', Object.assign({ value: 'text' }, PROP_STRING)],
2962
- ['updateon', PROP_STRING]
2972
+ ['updateon', PROP_STRING],
2973
+ ['conditionalclass', PROP_ANY],
2974
+ ['conditionalstyle', PROP_ANY]
2963
2975
  ]);
2964
2976
  const registerProps$1 = () => {
2965
2977
  register('wm-input-text', inputTextTypeProps);
@@ -3073,7 +3085,7 @@ InputTextComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputTex
3073
3085
  provideAs(InputTextComponent, NG_VALUE_ACCESSOR, true),
3074
3086
  provideAs(InputTextComponent, NG_VALIDATORS, true),
3075
3087
  provideAsWidgetRef(InputTextComponent)
3076
- ]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 17, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "type", "ngModel", "imask", "unmask", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "pattern", "autofocus", "autocomplete", "ngModelChange", "blur", "focus", "keyup.enter"], ["input", ""]], template: function InputTextComponent_Template(rf, ctx) {
3088
+ ]), i0.ɵɵ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) {
3077
3089
  if (rf & 1) {
3078
3090
  const _r1 = i0.ɵɵgetCurrentView();
3079
3091
  i0.ɵɵelementStart(0, "input", 0, 1);
@@ -3081,10 +3093,10 @@ InputTextComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputTex
3081
3093
  i0.ɵɵelementEnd();
3082
3094
  }
3083
3095
  if (rf & 2) {
3084
- i0.ɵɵ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");
3096
+ i0.ɵɵ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");
3085
3097
  i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.hint)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey);
3086
3098
  }
3087
- }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.PatternValidator, i1$1.NgModel, i2$1.IMaskDirective], encapsulation: 2 });
3099
+ }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.PatternValidator, i2$1.NgModel, i3.IMaskDirective], encapsulation: 2 });
3088
3100
  (function () {
3089
3101
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputTextComponent, [{
3090
3102
  type: Component,
@@ -3092,7 +3104,7 @@ InputTextComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputTex
3092
3104
  provideAs(InputTextComponent, NG_VALUE_ACCESSOR, true),
3093
3105
  provideAs(InputTextComponent, NG_VALIDATORS, true),
3094
3106
  provideAsWidgetRef(InputTextComponent)
3095
- ], 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" }]
3107
+ ], 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" }]
3096
3108
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
3097
3109
  type: ViewChild,
3098
3110
  args: ['input', { static: true }]
@@ -3124,6 +3136,8 @@ const textareaProps = new Map([
3124
3136
  ['updateon', PROP_STRING],
3125
3137
  ['limitdisplaytext', PROP_STRING],
3126
3138
  ['charlength', PROP_NUMBER],
3139
+ ['conditionalclass', PROP_ANY],
3140
+ ['conditionalstyle', PROP_ANY]
3127
3141
  ]);
3128
3142
  const registerProps = () => {
3129
3143
  register('wm-textarea', textareaProps);
@@ -3172,7 +3186,7 @@ TextareaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TextareaC
3172
3186
  provideAs(TextareaComponent, NG_VALUE_ACCESSOR, true),
3173
3187
  provideAs(TextareaComponent, NG_VALIDATORS, true),
3174
3188
  provideAsWidgetRef(TextareaComponent)
3175
- ]), i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 13, consts: [["focus-target", "", "role", "textbox", "aria-multiline", "true", 1, "form-control", "app-textarea", 3, "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "autofocus", "ngModelChange", "blur", "input"], ["textarea", ""], ["class", "textarea-count", 4, "ngIf"], [1, "textarea-count"]], template: function TextareaComponent_Template(rf, ctx) {
3189
+ ]), i0.ɵɵ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) {
3176
3190
  if (rf & 1) {
3177
3191
  i0.ɵɵelementStart(0, "textarea", 0, 1);
3178
3192
  i0.ɵɵ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(); });
@@ -3180,12 +3194,12 @@ TextareaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TextareaC
3180
3194
  i0.ɵɵtemplate(2, TextareaComponent_div_2_Template, 2, 1, "div", 2);
3181
3195
  }
3182
3196
  if (rf & 2) {
3183
- i0.ɵɵproperty("ngModel", ctx.datavalue)("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus);
3197
+ i0.ɵɵ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);
3184
3198
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
3185
3199
  i0.ɵɵadvance(2);
3186
3200
  i0.ɵɵproperty("ngIf", ctx.maxchars);
3187
3201
  }
3188
- }, dependencies: [i1.NgIf, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.NgModel], encapsulation: 2 });
3202
+ }, dependencies: [i1.NgClass, i1.NgIf, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 });
3189
3203
  (function () {
3190
3204
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TextareaComponent, [{
3191
3205
  type: Component,
@@ -3193,7 +3207,7 @@ TextareaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TextareaC
3193
3207
  provideAs(TextareaComponent, NG_VALUE_ACCESSOR, true),
3194
3208
  provideAs(TextareaComponent, NG_VALIDATORS, true),
3195
3209
  provideAsWidgetRef(TextareaComponent)
3196
- ], 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" }]
3210
+ ], 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" }]
3197
3211
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
3198
3212
  type: ViewChild,
3199
3213
  args: ['textarea', { static: true }]
@@ -3359,7 +3373,7 @@ class CaptionPositionDirective {
3359
3373
  }
3360
3374
  }
3361
3375
  }
3362
- CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$2.App)); };
3376
+ CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$1.App)); };
3363
3377
  CaptionPositionDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CaptionPositionDirective, selectors: [["", "wmCaptionPosition", ""]] });
3364
3378
  (function () {
3365
3379
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaptionPositionDirective, [{
@@ -3367,7 +3381,7 @@ CaptionPositionDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: Ca
3367
3381
  args: [{
3368
3382
  selector: '[wmCaptionPosition]'
3369
3383
  }]
3370
- }], function () { return [{ type: i0.Injector }, { type: i1$2.App }]; }, null);
3384
+ }], function () { return [{ type: i0.Injector }, { type: i1$1.App }]; }, null);
3371
3385
  })();
3372
3386
 
3373
3387
  const components = [