@wavemaker/app-ng-runtime 11.5.2-rc.5416 → 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
 
@@ -496,7 +496,7 @@ CheckboxComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CheckboxC
496
496
  i0.ɵɵproperty("innerHtml", ctx._caption, i0.ɵɵsanitizeHtml);
497
497
  i0.ɵɵadvance(2);
498
498
  i0.ɵɵproperty("disabled", ctx.disabled)("value", ctx.proxyModel);
499
- } }, dependencies: [i1.NgClass, i1$1.CheckboxControlValueAccessor, i1$1.NgControlStatus, i1$1.CheckboxRequiredValidator, i1$1.NgModel], encapsulation: 2 });
499
+ } }, dependencies: [i1.NgClass, i2$1.CheckboxControlValueAccessor, i2$1.NgControlStatus, i2$1.CheckboxRequiredValidator, i2$1.NgModel], encapsulation: 2 });
500
500
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxComponent, [{
501
501
  type: Component,
502
502
  args: [{ selector: '[wmCheckbox]', providers: [
@@ -1198,7 +1198,9 @@ const numberProps = new Map([
1198
1198
  ['tabindex', { value: 0, ...PROP_NUMBER }],
1199
1199
  ['trailingzero', { value: false, ...PROP_BOOLEAN }],
1200
1200
  ['updateon', PROP_STRING],
1201
- ['inputmode', { value: 'natural', ...PROP_STRING }]
1201
+ ['inputmode', { value: 'natural', ...PROP_STRING }],
1202
+ ['conditionalclass', PROP_ANY],
1203
+ ['conditionalstyle', PROP_ANY]
1202
1204
  ]);
1203
1205
  const registerProps$9 = () => {
1204
1206
  register('wm-number', numberProps);
@@ -1732,7 +1734,7 @@ class NumberComponent extends NumberLocale {
1732
1734
  }
1733
1735
  }
1734
1736
  NumberComponent.initializeProps = registerProps$9();
1735
- NumberComponent.ɵfac = function NumberComponent_Factory(t) { return new (t || NumberComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$2.AbstractI18nService), i0.ɵɵdirectiveInject(i2.TrailingZeroDecimalPipe)); };
1737
+ NumberComponent.ɵfac = function NumberComponent_Factory(t) { return new (t || NumberComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$1.AbstractI18nService), i0.ɵɵdirectiveInject(i2.TrailingZeroDecimalPipe)); };
1736
1738
  NumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NumberComponent, selectors: [["", "wmNumber", ""]], viewQuery: function NumberComponent_Query(rf, ctx) { if (rf & 1) {
1737
1739
  i0.ɵɵviewQuery(_c0$9, 7);
1738
1740
  i0.ɵɵviewQuery(NgModel, 7);
@@ -1744,22 +1746,22 @@ NumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NumberCompo
1744
1746
  provideAs(NumberComponent, NG_VALUE_ACCESSOR, true),
1745
1747
  provideAs(NumberComponent, NG_VALIDATORS, true),
1746
1748
  provideAsWidgetRef(NumberComponent)
1747
- ]), 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) { if (rf & 1) {
1749
+ ]), 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) { if (rf & 1) {
1748
1750
  i0.ɵɵelementStart(0, "input", 0, 1);
1749
1751
  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"); });
1750
1752
  i0.ɵɵelementEnd();
1751
1753
  } if (rf & 2) {
1752
- i0.ɵɵproperty("ngModel", ctx.displayValue)("readonly", ctx.readonly)("disabled", ctx.disabled)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngModelOptions", ctx.ngModelOptions)("required", ctx.required);
1754
+ 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);
1753
1755
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
1754
- } }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.PatternValidator, i1$1.NgModel], encapsulation: 2 });
1756
+ } }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.PatternValidator, i2$1.NgModel], encapsulation: 2 });
1755
1757
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NumberComponent, [{
1756
1758
  type: Component,
1757
1759
  args: [{ selector: '[wmNumber]', providers: [
1758
1760
  provideAs(NumberComponent, NG_VALUE_ACCESSOR, true),
1759
1761
  provideAs(NumberComponent, NG_VALIDATORS, true),
1760
1762
  provideAsWidgetRef(NumberComponent)
1761
- ], 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" }]
1762
- }], function () { return [{ type: i0.Injector }, { type: i1$2.AbstractI18nService }, { type: i2.TrailingZeroDecimalPipe }]; }, { inputEl: [{
1763
+ ], 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" }]
1764
+ }], function () { return [{ type: i0.Injector }, { type: i1$1.AbstractI18nService }, { type: i2.TrailingZeroDecimalPipe }]; }, { inputEl: [{
1763
1765
  type: ViewChild,
1764
1766
  args: ['input', { static: true }]
1765
1767
  }], ngModel: [{
@@ -2209,7 +2211,7 @@ SelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectCompo
2209
2211
  i0.ɵɵproperty("ngIf", ctx.groupby);
2210
2212
  i0.ɵɵadvance(1);
2211
2213
  i0.ɵɵproperty("ngIf", !ctx.groupby);
2212
- } }, 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 });
2214
+ } }, 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 });
2213
2215
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectComponent, [{
2214
2216
  type: Component,
2215
2217
  args: [{ selector: 'wm-select', providers: [
@@ -2440,7 +2442,9 @@ const inputCalendarTypeProps = new Map([
2440
2442
  ['step', PROP_NUMBER],
2441
2443
  ['tabindex', { value: 0, ...PROP_NUMBER }],
2442
2444
  ['type', PROP_STRING],
2443
- ['updateon', PROP_STRING]
2445
+ ['updateon', PROP_STRING],
2446
+ ['conditionalclass', PROP_ANY],
2447
+ ['conditionalstyle', PROP_ANY]
2444
2448
  ]);
2445
2449
  const registerProps$5 = () => {
2446
2450
  register('wm-input-calendar', inputCalendarTypeProps);
@@ -2470,21 +2474,21 @@ InputCalendarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Inpu
2470
2474
  provideAs(InputCalendarComponent, NG_VALUE_ACCESSOR, true),
2471
2475
  provideAs(InputCalendarComponent, NG_VALIDATORS, true),
2472
2476
  provideAsWidgetRef(InputCalendarComponent)
2473
- ]), 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) { if (rf & 1) {
2477
+ ]), 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) { if (rf & 1) {
2474
2478
  i0.ɵɵelementStart(0, "input", 0, 1);
2475
2479
  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); });
2476
2480
  i0.ɵɵelementEnd();
2477
2481
  } if (rf & 2) {
2478
- 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");
2482
+ 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);
2479
2483
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint || ctx.type + " field");
2480
- } }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.NgModel], encapsulation: 2 });
2484
+ } }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.NgModel], encapsulation: 2 });
2481
2485
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputCalendarComponent, [{
2482
2486
  type: Component,
2483
2487
  args: [{ selector: 'wm-input[type="date"], wm-input[type="datetime-local"], wm-input[type="month"], wm-input[type="time"], wm-input[type="week"]', providers: [
2484
2488
  provideAs(InputCalendarComponent, NG_VALUE_ACCESSOR, true),
2485
2489
  provideAs(InputCalendarComponent, NG_VALIDATORS, true),
2486
2490
  provideAsWidgetRef(InputCalendarComponent)
2487
- ], 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" }]
2491
+ ], 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" }]
2488
2492
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2489
2493
  type: ViewChild,
2490
2494
  args: ['input', { static: true }]
@@ -2510,7 +2514,9 @@ const inputColorTypeProps = new Map([
2510
2514
  ['show', { value: true, ...PROP_BOOLEAN }],
2511
2515
  ['tabindex', { value: 0, ...PROP_NUMBER }],
2512
2516
  ['type', { value: 'color', ...PROP_STRING }],
2513
- ['updateon', PROP_STRING]
2517
+ ['updateon', PROP_STRING],
2518
+ ['conditionalclass', PROP_ANY],
2519
+ ['conditionalstyle', PROP_ANY]
2514
2520
  ]);
2515
2521
  const registerProps$4 = () => {
2516
2522
  register('wm-input-color', inputColorTypeProps);
@@ -2540,21 +2546,21 @@ InputColorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputCo
2540
2546
  provideAs(InputColorComponent, NG_VALUE_ACCESSOR, true),
2541
2547
  provideAs(InputColorComponent, NG_VALIDATORS, true),
2542
2548
  provideAsWidgetRef(InputColorComponent)
2543
- ]), 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) { if (rf & 1) {
2549
+ ]), 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) { if (rf & 1) {
2544
2550
  i0.ɵɵelementStart(0, "input", 0, 1);
2545
2551
  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); });
2546
2552
  i0.ɵɵelementEnd();
2547
2553
  } if (rf & 2) {
2548
- i0.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus);
2554
+ 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);
2549
2555
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
2550
- } }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.NgModel], encapsulation: 2 });
2556
+ } }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 });
2551
2557
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputColorComponent, [{
2552
2558
  type: Component,
2553
2559
  args: [{ selector: 'wm-input[type="color"]', providers: [
2554
2560
  provideAs(InputColorComponent, NG_VALUE_ACCESSOR, true),
2555
2561
  provideAs(InputColorComponent, NG_VALIDATORS, true),
2556
2562
  provideAsWidgetRef(InputColorComponent)
2557
- ], 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" }]
2563
+ ], 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" }]
2558
2564
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2559
2565
  type: ViewChild,
2560
2566
  args: ['input', { static: true }]
@@ -2582,7 +2588,9 @@ const inputEmailTypeProps = new Map([
2582
2588
  ['show', { value: true, ...PROP_BOOLEAN }],
2583
2589
  ['tabindex', { value: 0, ...PROP_NUMBER }],
2584
2590
  ['type', { value: 'email', ...PROP_STRING }],
2585
- ['updateon', PROP_STRING]
2591
+ ['updateon', PROP_STRING],
2592
+ ['conditionalclass', PROP_ANY],
2593
+ ['conditionalstyle', PROP_ANY]
2586
2594
  ]);
2587
2595
  const registerProps$3 = () => {
2588
2596
  register('wm-input-email', inputEmailTypeProps);
@@ -2612,22 +2620,22 @@ InputEmailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputEm
2612
2620
  provideAs(InputEmailComponent, NG_VALUE_ACCESSOR, true),
2613
2621
  provideAs(InputEmailComponent, NG_VALIDATORS, true),
2614
2622
  provideAsWidgetRef(InputEmailComponent)
2615
- ]), 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) { if (rf & 1) {
2623
+ ]), 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) { if (rf & 1) {
2616
2624
  const _r1 = i0.ɵɵgetCurrentView();
2617
2625
  i0.ɵɵelementStart(0, "input", 0, 1);
2618
2626
  i0.ɵɵlistener("ngModelChange", function InputEmailComponent_Template_input_ngModelChange_0_listener($event) { return ctx.datavalue = $event; })("blur", function InputEmailComponent_Template_input_blur_0_listener($event) { return ctx.handleBlur($event); })("ngModelChange", function InputEmailComponent_Template_input_ngModelChange_0_listener($event) { return ctx.handleChange($event); })("keyup.enter", function InputEmailComponent_Template_input_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r1); const _r0 = i0.ɵɵreference(1); return i0.ɵɵresetView(ctx.flushViewChanges(_r0.value)); });
2619
2627
  i0.ɵɵelementEnd();
2620
2628
  } if (rf & 2) {
2621
- 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");
2629
+ 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");
2622
2630
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
2623
- } }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.PatternValidator, i1$1.EmailValidator, i1$1.NgModel], encapsulation: 2 });
2631
+ } }, 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 });
2624
2632
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputEmailComponent, [{
2625
2633
  type: Component,
2626
2634
  args: [{ selector: 'wm-input[type="email"]', providers: [
2627
2635
  provideAs(InputEmailComponent, NG_VALUE_ACCESSOR, true),
2628
2636
  provideAs(InputEmailComponent, NG_VALIDATORS, true),
2629
2637
  provideAsWidgetRef(InputEmailComponent)
2630
- ], 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" }]
2638
+ ], 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" }]
2631
2639
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2632
2640
  type: ViewChild,
2633
2641
  args: ['input', { static: true }]
@@ -2658,7 +2666,9 @@ const inputNumberTypeProps = new Map([
2658
2666
  ['step', PROP_NUMBER],
2659
2667
  ['tabindex', { value: 0, ...PROP_NUMBER }],
2660
2668
  ['type', { value: 'number', ...PROP_STRING }],
2661
- ['updateon', PROP_STRING]
2669
+ ['updateon', PROP_STRING],
2670
+ ['conditionalclass', PROP_ANY],
2671
+ ['conditionalstyle', PROP_ANY]
2662
2672
  ]);
2663
2673
  const registerProps$2 = () => {
2664
2674
  register('wm-input-number', inputNumberTypeProps);
@@ -2699,22 +2709,22 @@ InputNumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputN
2699
2709
  provideAs(InputNumberComponent, NG_VALUE_ACCESSOR, true),
2700
2710
  provideAs(InputNumberComponent, NG_VALIDATORS, true),
2701
2711
  provideAsWidgetRef(InputNumberComponent)
2702
- ]), 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) { if (rf & 1) {
2712
+ ]), 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) { if (rf & 1) {
2703
2713
  const _r1 = i0.ɵɵgetCurrentView();
2704
2714
  i0.ɵɵelementStart(0, "input", 0, 1);
2705
2715
  i0.ɵɵlistener("ngModelChange", function InputNumberComponent_Template_input_ngModelChange_0_listener($event) { return ctx.datavalue = $event; })("blur", function InputNumberComponent_Template_input_blur_0_listener($event) { return ctx.handleBlur($event); })("ngModelChange", function InputNumberComponent_Template_input_ngModelChange_0_listener($event) { return ctx.handleChange($event); })("keyup.enter", function InputNumberComponent_Template_input_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r1); const _r0 = i0.ɵɵreference(1); return i0.ɵɵresetView(ctx.flushViewChanges(_r0.value)); })("keydown.ArrowUp", function InputNumberComponent_Template_input_keydown_ArrowUp_0_listener($event) { return ctx.onArrowPress($event); })("keydown.ArrowDown", function InputNumberComponent_Template_input_keydown_ArrowDown_0_listener($event) { return ctx.onArrowPress($event); })("keypress", function InputNumberComponent_Template_input_keypress_0_listener($event) { return ctx.validateInputEntry($event); });
2706
2716
  i0.ɵɵelementEnd();
2707
2717
  } if (rf & 2) {
2708
- 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");
2718
+ 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");
2709
2719
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
2710
- } }, dependencies: [i1.NgClass, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.NgModel], encapsulation: 2 });
2720
+ } }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 });
2711
2721
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputNumberComponent, [{
2712
2722
  type: Component,
2713
2723
  args: [{ selector: 'wm-input[type="number"]', providers: [
2714
2724
  provideAs(InputNumberComponent, NG_VALUE_ACCESSOR, true),
2715
2725
  provideAs(InputNumberComponent, NG_VALIDATORS, true),
2716
2726
  provideAsWidgetRef(InputNumberComponent)
2717
- ], 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" }]
2727
+ ], 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" }]
2718
2728
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2719
2729
  type: ViewChild,
2720
2730
  args: ['input', { static: true }]
@@ -2744,7 +2754,9 @@ const inputTextTypeProps = new Map([
2744
2754
  ['showdisplayformaton', { value: 'always', ...PROP_ANY }],
2745
2755
  ['tabindex', { value: 0, ...PROP_NUMBER }],
2746
2756
  ['type', { value: 'text', ...PROP_STRING }],
2747
- ['updateon', PROP_STRING]
2757
+ ['updateon', PROP_STRING],
2758
+ ['conditionalclass', PROP_ANY],
2759
+ ['conditionalstyle', PROP_ANY]
2748
2760
  ]);
2749
2761
  const registerProps$1 = () => {
2750
2762
  register('wm-input-text', inputTextTypeProps);
@@ -2855,22 +2867,22 @@ InputTextComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputTex
2855
2867
  provideAs(InputTextComponent, NG_VALUE_ACCESSOR, true),
2856
2868
  provideAs(InputTextComponent, NG_VALIDATORS, true),
2857
2869
  provideAsWidgetRef(InputTextComponent)
2858
- ]), 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) { if (rf & 1) {
2870
+ ]), 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) { if (rf & 1) {
2859
2871
  const _r1 = i0.ɵɵgetCurrentView();
2860
2872
  i0.ɵɵelementStart(0, "input", 0, 1);
2861
2873
  i0.ɵɵlistener("ngModelChange", function InputTextComponent_Template_input_ngModelChange_0_listener($event) { return ctx.datavalue = $event; })("ngModelChange", function InputTextComponent_Template_input_ngModelChange_0_listener($event) { return ctx.handleChange($event); })("blur", function InputTextComponent_Template_input_blur_0_listener($event) { ctx.handleBlur($event); return ctx.checkForDisplayFormat($event); })("focus", function InputTextComponent_Template_input_focus_0_listener($event) { return ctx.checkForDisplayFormat($event); })("keyup.enter", function InputTextComponent_Template_input_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r1); const _r0 = i0.ɵɵreference(1); return i0.ɵɵresetView(ctx.flushViewChanges(_r0.value)); });
2862
2874
  i0.ɵɵelementEnd();
2863
2875
  } if (rf & 2) {
2864
- 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");
2876
+ 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");
2865
2877
  i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.hint)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey);
2866
- } }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.PatternValidator, i1$1.NgModel, i2$1.IMaskDirective], encapsulation: 2 });
2878
+ } }, 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 });
2867
2879
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputTextComponent, [{
2868
2880
  type: Component,
2869
2881
  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: [
2870
2882
  provideAs(InputTextComponent, NG_VALUE_ACCESSOR, true),
2871
2883
  provideAs(InputTextComponent, NG_VALIDATORS, true),
2872
2884
  provideAsWidgetRef(InputTextComponent)
2873
- ], 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" }]
2885
+ ], 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" }]
2874
2886
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2875
2887
  type: ViewChild,
2876
2888
  args: ['input', { static: true }]
@@ -2901,6 +2913,8 @@ const textareaProps = new Map([
2901
2913
  ['updateon', PROP_STRING],
2902
2914
  ['limitdisplaytext', PROP_STRING],
2903
2915
  ['charlength', PROP_NUMBER],
2916
+ ['conditionalclass', PROP_ANY],
2917
+ ['conditionalstyle', PROP_ANY]
2904
2918
  ]);
2905
2919
  const registerProps = () => {
2906
2920
  register('wm-textarea', textareaProps);
@@ -2943,24 +2957,24 @@ TextareaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TextareaC
2943
2957
  provideAs(TextareaComponent, NG_VALUE_ACCESSOR, true),
2944
2958
  provideAs(TextareaComponent, NG_VALIDATORS, true),
2945
2959
  provideAsWidgetRef(TextareaComponent)
2946
- ]), 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) { if (rf & 1) {
2960
+ ]), 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) { if (rf & 1) {
2947
2961
  i0.ɵɵelementStart(0, "textarea", 0, 1);
2948
2962
  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(); });
2949
2963
  i0.ɵɵelementEnd();
2950
2964
  i0.ɵɵtemplate(2, TextareaComponent_div_2_Template, 2, 1, "div", 2);
2951
2965
  } if (rf & 2) {
2952
- i0.ɵɵproperty("ngModel", ctx.datavalue)("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus);
2966
+ 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);
2953
2967
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
2954
2968
  i0.ɵɵadvance(2);
2955
2969
  i0.ɵɵproperty("ngIf", ctx.maxchars);
2956
- } }, dependencies: [i1.NgIf, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.NgModel], encapsulation: 2 });
2970
+ } }, dependencies: [i1.NgClass, i1.NgIf, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 });
2957
2971
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TextareaComponent, [{
2958
2972
  type: Component,
2959
2973
  args: [{ selector: 'wm-textarea', providers: [
2960
2974
  provideAs(TextareaComponent, NG_VALUE_ACCESSOR, true),
2961
2975
  provideAs(TextareaComponent, NG_VALIDATORS, true),
2962
2976
  provideAsWidgetRef(TextareaComponent)
2963
- ], 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" }]
2977
+ ], 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" }]
2964
2978
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2965
2979
  type: ViewChild,
2966
2980
  args: ['textarea', { static: true }]
@@ -3125,14 +3139,14 @@ class CaptionPositionDirective {
3125
3139
  }
3126
3140
  }
3127
3141
  }
3128
- CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$2.App)); };
3142
+ CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$1.App)); };
3129
3143
  CaptionPositionDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CaptionPositionDirective, selectors: [["", "wmCaptionPosition", ""]] });
3130
3144
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaptionPositionDirective, [{
3131
3145
  type: Directive,
3132
3146
  args: [{
3133
3147
  selector: '[wmCaptionPosition]'
3134
3148
  }]
3135
- }], function () { return [{ type: i0.Injector }, { type: i1$2.App }]; }, null); })();
3149
+ }], function () { return [{ type: i0.Injector }, { type: i1$1.App }]; }, null); })();
3136
3150
 
3137
3151
  const components = [
3138
3152
  ButtonComponent,