@wavemaker/app-ng-runtime 11.5.2-next.140998 → 11.5.2-next.141004

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. app-ng-runtime/build-task/bundles/index.umd.js +1 -1
  2. app-ng-runtime/build-task/esm2020/data/form/form-field/form-field.build.mjs +2 -2
  3. app-ng-runtime/build-task/fesm2015/index.mjs +1 -1
  4. app-ng-runtime/build-task/fesm2015/index.mjs.map +1 -1
  5. app-ng-runtime/build-task/fesm2020/index.mjs +1 -1
  6. app-ng-runtime/build-task/fesm2020/index.mjs.map +1 -1
  7. app-ng-runtime/components/base/bundles/index.umd.js +40 -10
  8. app-ng-runtime/components/base/esm2020/pipes/custom-pipes.mjs +24 -11
  9. app-ng-runtime/components/base/esm2020/pipes/wm-pipe.mjs +17 -0
  10. app-ng-runtime/components/base/esm2020/widgets/common/partial/partial.directive.mjs +2 -1
  11. app-ng-runtime/components/base/fesm2015/index.mjs +40 -10
  12. app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
  13. app-ng-runtime/components/base/fesm2020/index.mjs +40 -10
  14. app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
  15. app-ng-runtime/components/base/pipes/custom-pipes.d.ts +5 -2
  16. app-ng-runtime/components/base/pipes/wm-pipe.d.ts +9 -0
  17. app-ng-runtime/components/chart/bundles/index.umd.js +54 -35
  18. app-ng-runtime/components/chart/esm2020/chart.component.mjs +8 -6
  19. app-ng-runtime/components/chart/esm2020/chart.utils.mjs +50 -13
  20. app-ng-runtime/components/chart/fesm2015/index.mjs +56 -17
  21. app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
  22. app-ng-runtime/components/chart/fesm2020/index.mjs +56 -17
  23. app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
  24. app-ng-runtime/components/containers/wizard/bundles/index.umd.js +14 -3
  25. app-ng-runtime/components/containers/wizard/esm2020/wizard.component.mjs +13 -4
  26. app-ng-runtime/components/containers/wizard/esm2020/wizard.props.mjs +2 -1
  27. app-ng-runtime/components/containers/wizard/fesm2015/index.mjs +14 -3
  28. app-ng-runtime/components/containers/wizard/fesm2015/index.mjs.map +1 -1
  29. app-ng-runtime/components/containers/wizard/fesm2020/index.mjs +13 -3
  30. app-ng-runtime/components/containers/wizard/fesm2020/index.mjs.map +1 -1
  31. app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -0
  32. app-ng-runtime/components/data/form/bundles/index.umd.js +41 -27
  33. app-ng-runtime/components/data/form/esm2020/form-field/form-field.directive.mjs +28 -19
  34. app-ng-runtime/components/data/form/esm2020/form.component.mjs +19 -7
  35. app-ng-runtime/components/data/form/fesm2015/index.mjs +45 -27
  36. app-ng-runtime/components/data/form/fesm2015/index.mjs.map +1 -1
  37. app-ng-runtime/components/data/form/fesm2020/index.mjs +45 -24
  38. app-ng-runtime/components/data/form/fesm2020/index.mjs.map +1 -1
  39. app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +2 -0
  40. app-ng-runtime/components/data/table/bundles/index.umd.js +3 -2
  41. app-ng-runtime/components/data/table/esm2020/table.component.mjs +4 -3
  42. app-ng-runtime/components/data/table/fesm2015/index.mjs +3 -2
  43. app-ng-runtime/components/data/table/fesm2015/index.mjs.map +1 -1
  44. app-ng-runtime/components/data/table/fesm2020/index.mjs +3 -2
  45. app-ng-runtime/components/data/table/fesm2020/index.mjs.map +1 -1
  46. app-ng-runtime/components/data/table/table.component.d.ts +1 -1
  47. app-ng-runtime/components/input/default/bundles/index.umd.js +231 -192
  48. app-ng-runtime/components/input/default/esm2020/caption-position.directive.mjs +2 -2
  49. app-ng-runtime/components/input/default/esm2020/number/number.component.mjs +7 -6
  50. app-ng-runtime/components/input/default/esm2020/number/number.props.mjs +4 -2
  51. app-ng-runtime/components/input/default/esm2020/select/select.component.mjs +58 -35
  52. app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.component.mjs +7 -6
  53. app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.props.mjs +4 -2
  54. app-ng-runtime/components/input/default/esm2020/text/color/input-color.component.mjs +7 -6
  55. app-ng-runtime/components/input/default/esm2020/text/color/input-color.props.mjs +4 -2
  56. app-ng-runtime/components/input/default/esm2020/text/email/input-email.component.mjs +7 -6
  57. app-ng-runtime/components/input/default/esm2020/text/email/input-email.props.mjs +4 -2
  58. app-ng-runtime/components/input/default/esm2020/text/number/input-number.component.mjs +5 -5
  59. app-ng-runtime/components/input/default/esm2020/text/number/input-number.props.mjs +4 -2
  60. app-ng-runtime/components/input/default/esm2020/text/text/input-text.component.mjs +8 -7
  61. app-ng-runtime/components/input/default/esm2020/text/text/input-text.props.mjs +4 -2
  62. app-ng-runtime/components/input/default/esm2020/textarea/textarea.component.mjs +5 -5
  63. app-ng-runtime/components/input/default/esm2020/textarea/textarea.props.mjs +3 -1
  64. app-ng-runtime/components/input/default/fesm2015/index.mjs +113 -74
  65. app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
  66. app-ng-runtime/components/input/default/fesm2020/index.mjs +110 -74
  67. app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
  68. app-ng-runtime/components/input/default/number/number.component.d.ts +2 -0
  69. app-ng-runtime/components/input/default/select/select.component.d.ts +4 -1
  70. app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +2 -0
  71. app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +2 -0
  72. app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +2 -0
  73. app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +2 -0
  74. app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +2 -0
  75. app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +2 -0
  76. app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +2 -2
  77. app-ng-runtime/components/input/epoch/bundles/index.umd.js +50 -25
  78. app-ng-runtime/components/input/epoch/esm2020/base-date-time.component.mjs +36 -14
  79. app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +5 -5
  80. app-ng-runtime/components/input/epoch/esm2020/date-time/date-time.component.mjs +6 -5
  81. app-ng-runtime/components/input/epoch/esm2020/time/time.component.mjs +7 -5
  82. app-ng-runtime/components/input/epoch/fesm2015/index.mjs +50 -25
  83. app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
  84. app-ng-runtime/components/input/epoch/fesm2020/index.mjs +50 -25
  85. app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
  86. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +15 -5
  87. app-ng-runtime/components/navigation/menu/esm2020/menu.component.mjs +12 -4
  88. app-ng-runtime/components/navigation/menu/esm2020/menu.props.mjs +2 -1
  89. app-ng-runtime/components/navigation/menu/esm2020/nav/nav.component.mjs +3 -3
  90. app-ng-runtime/components/navigation/menu/esm2020/nav/nav.props.mjs +2 -1
  91. app-ng-runtime/components/navigation/menu/fesm2015/index.mjs +15 -5
  92. app-ng-runtime/components/navigation/menu/fesm2015/index.mjs.map +1 -1
  93. app-ng-runtime/components/navigation/menu/fesm2020/index.mjs +15 -5
  94. app-ng-runtime/components/navigation/menu/fesm2020/index.mjs.map +1 -1
  95. app-ng-runtime/components/navigation/menu/menu.component.d.ts +3 -0
  96. app-ng-runtime/components/navigation/menu/nav/nav.component.d.ts +1 -0
  97. app-ng-runtime/components/navigation/popover/bundles/index.umd.js +2 -1
  98. app-ng-runtime/components/navigation/popover/esm2020/popover.component.mjs +3 -2
  99. app-ng-runtime/components/navigation/popover/fesm2015/index.mjs +2 -1
  100. app-ng-runtime/components/navigation/popover/fesm2015/index.mjs.map +1 -1
  101. app-ng-runtime/components/navigation/popover/fesm2020/index.mjs +2 -1
  102. app-ng-runtime/components/navigation/popover/fesm2020/index.mjs.map +1 -1
  103. app-ng-runtime/components/prefab/bundles/index.umd.js +1 -0
  104. app-ng-runtime/components/prefab/esm2020/prefab-container/prefab-container.directive.mjs +2 -1
  105. app-ng-runtime/components/prefab/fesm2015/index.mjs +1 -0
  106. app-ng-runtime/components/prefab/fesm2015/index.mjs.map +1 -1
  107. app-ng-runtime/components/prefab/fesm2020/index.mjs +1 -0
  108. app-ng-runtime/components/prefab/fesm2020/index.mjs.map +1 -1
  109. app-ng-runtime/core/bundles/index.umd.js +2 -1
  110. app-ng-runtime/core/esm2020/utils/utils.mjs +3 -2
  111. app-ng-runtime/core/fesm2015/index.mjs +2 -1
  112. app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
  113. app-ng-runtime/core/fesm2020/index.mjs +2 -1
  114. app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
  115. app-ng-runtime/package.json +1 -1
  116. app-ng-runtime/runtime/base/bundles/index.umd.js +26 -1
  117. app-ng-runtime/runtime/base/components/base-page.component.d.ts +1 -0
  118. app-ng-runtime/runtime/base/esm2020/components/base-page.component.mjs +26 -1
  119. app-ng-runtime/runtime/base/esm2020/services/pipe-provider.service.mjs +2 -2
  120. app-ng-runtime/runtime/base/fesm2015/index.mjs +26 -1
  121. app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
  122. app-ng-runtime/runtime/base/fesm2020/index.mjs +26 -1
  123. app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
  124. app-ng-runtime/scripts/@wavemaker/nvd3/build/nv.d3.min.js +1 -0
  125. app-ng-runtime/scripts/d3/d3.min.js +2 -5
  126. app-ng-runtime/scripts/datatable/datatable.js +3 -3
  127. app-ng-runtime/scripts/@wavemaker.com/nvd3/build/nv.d3.min.js +0 -13
@@ -2,14 +2,14 @@ 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';
12
- import { DataSource, FormWidgetType, isDefined, toggleClass, AppDefaults, debounce, $appDigest, noop, isEqualWithFields, toBoolean, setListClass, switchClass, addForIdAttributes, addClass, setAttr, removeAttr, setCSS } from '@wm/core';
11
+ import * as i1$1 from '@wm/core';
12
+ import { DataSource, FormWidgetType, isDefined, toggleClass, AppDefaults, debounce, $appDigest, noop, isEqualWithFields, toBoolean, setListClass, switchClass, addForIdAttributes, addClass, setAttr, removeAttr, isIos, setCSS } from '@wm/core';
13
13
  import { Subject } from 'rxjs';
14
14
 
15
15
  const registerProps$e = () => {
@@ -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: [{
@@ -2208,59 +2210,68 @@ const registerProps$7 = () => {
2208
2210
  };
2209
2211
 
2210
2212
  const _c0$7 = ["select"];
2213
+ function SelectComponent_option_2_Template(rf, ctx) {
2214
+ if (rf & 1) {
2215
+ i0.ɵɵelement(0, "option", 4);
2216
+ }
2217
+ if (rf & 2) {
2218
+ const ctx_r1 = i0.ɵɵnextContext();
2219
+ i0.ɵɵproperty("textContent", ctx_r1.placeholder)("hidden", !ctx_r1.placeholder);
2220
+ }
2221
+ }
2211
2222
  function SelectComponent_ng_container_3_optgroup_1_option_1_Template(rf, ctx) {
2212
2223
  if (rf & 1) {
2213
- i0.ɵɵelement(0, "option", 7);
2224
+ i0.ɵɵelement(0, "option", 8);
2214
2225
  }
2215
2226
  if (rf & 2) {
2216
- const item_r6 = ctx.$implicit;
2217
- i0.ɵɵproperty("value", item_r6.key)("selected", item_r6.selected)("textContent", item_r6.label);
2227
+ const item_r7 = ctx.$implicit;
2228
+ i0.ɵɵproperty("value", item_r7.key)("selected", item_r7.selected)("textContent", item_r7.label);
2218
2229
  }
2219
2230
  }
2220
2231
  function SelectComponent_ng_container_3_optgroup_1_Template(rf, ctx) {
2221
2232
  if (rf & 1) {
2222
- i0.ɵɵelementStart(0, "optgroup", 5);
2223
- i0.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_option_1_Template, 1, 3, "option", 6);
2233
+ i0.ɵɵelementStart(0, "optgroup", 6);
2234
+ i0.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_option_1_Template, 1, 3, "option", 7);
2224
2235
  i0.ɵɵelementEnd();
2225
2236
  }
2226
2237
  if (rf & 2) {
2227
- const groupObj_r4 = ctx.$implicit;
2228
- i0.ɵɵproperty("label", groupObj_r4.key);
2238
+ const groupObj_r5 = ctx.$implicit;
2239
+ i0.ɵɵproperty("label", groupObj_r5.key);
2229
2240
  i0.ɵɵadvance(1);
2230
- i0.ɵɵproperty("ngForOf", groupObj_r4.data);
2241
+ i0.ɵɵproperty("ngForOf", groupObj_r5.data);
2231
2242
  }
2232
2243
  }
2233
2244
  function SelectComponent_ng_container_3_Template(rf, ctx) {
2234
2245
  if (rf & 1) {
2235
2246
  i0.ɵɵelementContainerStart(0);
2236
- i0.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_Template, 2, 2, "optgroup", 4);
2247
+ i0.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_Template, 2, 2, "optgroup", 5);
2237
2248
  i0.ɵɵelementContainerEnd();
2238
2249
  }
2239
2250
  if (rf & 2) {
2240
- const ctx_r1 = i0.ɵɵnextContext();
2251
+ const ctx_r2 = i0.ɵɵnextContext();
2241
2252
  i0.ɵɵadvance(1);
2242
- i0.ɵɵproperty("ngForOf", ctx_r1.groupedData);
2253
+ i0.ɵɵproperty("ngForOf", ctx_r2.groupedData);
2243
2254
  }
2244
2255
  }
2245
2256
  function SelectComponent_ng_container_4_option_1_Template(rf, ctx) {
2246
2257
  if (rf & 1) {
2247
- i0.ɵɵelement(0, "option", 7);
2258
+ i0.ɵɵelement(0, "option", 8);
2248
2259
  }
2249
2260
  if (rf & 2) {
2250
- const item_r8 = ctx.$implicit;
2251
- i0.ɵɵproperty("value", item_r8.key)("selected", item_r8.selected)("textContent", item_r8.label);
2261
+ const item_r9 = ctx.$implicit;
2262
+ i0.ɵɵproperty("value", item_r9.key)("selected", item_r9.selected)("textContent", item_r9.label);
2252
2263
  }
2253
2264
  }
2254
2265
  function SelectComponent_ng_container_4_Template(rf, ctx) {
2255
2266
  if (rf & 1) {
2256
2267
  i0.ɵɵelementContainerStart(0);
2257
- i0.ɵɵtemplate(1, SelectComponent_ng_container_4_option_1_Template, 1, 3, "option", 6);
2268
+ i0.ɵɵtemplate(1, SelectComponent_ng_container_4_option_1_Template, 1, 3, "option", 7);
2258
2269
  i0.ɵɵelementContainerEnd();
2259
2270
  }
2260
2271
  if (rf & 2) {
2261
- const ctx_r2 = i0.ɵɵnextContext();
2272
+ const ctx_r3 = i0.ɵɵnextContext();
2262
2273
  i0.ɵɵadvance(1);
2263
- i0.ɵɵproperty("ngForOf", ctx_r2.datasetItems);
2274
+ i0.ɵɵproperty("ngForOf", ctx_r3.datasetItems);
2264
2275
  }
2265
2276
  }
2266
2277
  const _c1$6 = function (a1) { return ["app-select form-control", a1]; };
@@ -2271,13 +2282,17 @@ class SelectComponent extends DatasetAwareFormComponent {
2271
2282
  this.datavalue = ds.execute(DataSource.Operation.GET_DEFAULT_LOCALE);
2272
2283
  }
2273
2284
  }
2274
- constructor(inj) {
2285
+ constructor(inj, app) {
2275
2286
  super(inj, WIDGET_CONFIG$7);
2287
+ this.app = app;
2276
2288
  this.acceptsArray = true;
2277
2289
  }
2278
2290
  ngAfterViewInit() {
2279
2291
  super.ngAfterViewInit();
2280
2292
  styler(this.selectEl.nativeElement, this);
2293
+ setTimeout(() => {
2294
+ this.checkForFloatingLabel(null);
2295
+ }, 10);
2281
2296
  }
2282
2297
  // Change event is registered from the template, Prevent the framework from registering one more event
2283
2298
  handleEvent(node, eventName, eventCallback, locals) {
@@ -2324,6 +2339,9 @@ class SelectComponent extends DatasetAwareFormComponent {
2324
2339
  }
2325
2340
  super.onPropertyChange(key, nv, ov);
2326
2341
  }
2342
+ isIosPlatform() {
2343
+ return isIos();
2344
+ }
2327
2345
  /**
2328
2346
  * When caption floating is enabled and placeholder is given, do not show placeholder until user focuses on the field
2329
2347
  * When focused add the placeholder to the option which is selected
@@ -2333,18 +2351,27 @@ class SelectComponent extends DatasetAwareFormComponent {
2333
2351
  checkForFloatingLabel($event) {
2334
2352
  const captionEl = $(this.selectEl.nativeElement).closest('.app-composite-widget.caption-floating');
2335
2353
  if (captionEl.length > 0) {
2336
- if ($event.type === 'focus' && (!this.datavalue || (this.datavalue && $(this.selectEl).find('select option:selected').text() === '' && this.placeholder))) {
2337
- $(this.selectEl.nativeElement).find('option:first').text(this.placeholder);
2354
+ if ((!$event || $event.type === 'focus') && (($(this.selectEl).find('select option:selected').text() === '' && (this.placeholder || this.datavalue || this.isIosPlatform())))) {
2355
+ if (!$event && (this.placeholder || this.datavalue || this.isIosPlatform())) {
2356
+ this.app.notify('captionPositionAnimate', { isSelect: true, nativeEl: captionEl });
2357
+ }
2358
+ if (this.placeholder) {
2359
+ $(this.selectEl.nativeElement).find('option:first').text(this.placeholder);
2360
+ }
2338
2361
  }
2339
2362
  else if (!this.datavalue) {
2340
- $(this.selectEl.nativeElement).find('option:selected').text('');
2341
- captionEl.removeClass('float-active');
2363
+ if (!this.placeholder) {
2364
+ // $(this.selectEl.nativeElement).find('option:first').text('');
2365
+ if (!this.isIosPlatform()) {
2366
+ captionEl.removeClass('float-active');
2367
+ }
2368
+ }
2342
2369
  }
2343
2370
  }
2344
2371
  }
2345
2372
  }
2346
2373
  SelectComponent.initializeProps = registerProps$7();
2347
- SelectComponent.ɵfac = function SelectComponent_Factory(t) { return new (t || SelectComponent)(i0.ɵɵdirectiveInject(i0.Injector)); };
2374
+ SelectComponent.ɵfac = function SelectComponent_Factory(t) { return new (t || SelectComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$1.App)); };
2348
2375
  SelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectComponent, selectors: [["wm-select"]], viewQuery: function SelectComponent_Query(rf, ctx) {
2349
2376
  if (rf & 1) {
2350
2377
  i0.ɵɵviewQuery(_c0$7, 7, ElementRef);
@@ -2357,26 +2384,26 @@ SelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectCompo
2357
2384
  provideAs(SelectComponent, NG_VALUE_ACCESSOR, true),
2358
2385
  provideAs(SelectComponent, NG_VALIDATORS, true),
2359
2386
  provideAsWidgetRef(SelectComponent)
2360
- ]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 16, consts: [["role", "listbox", "aria-haspopup", "true", "aria-expanded", "false", "focus-target", "", 3, "ngClass", "disabled", "required", "tabindex", "ngModel", "multiple", "autofocus", "ngModelChange", "change", "focus", "blur"], ["select", ""], ["selected", "", "value", "undefined", 3, "textContent", "hidden"], [4, "ngIf"], [3, "label", 4, "ngFor", "ngForOf"], [3, "label"], ["role", "option", 3, "value", "selected", "textContent", 4, "ngFor", "ngForOf"], ["role", "option", 3, "value", "selected", "textContent"]], template: function SelectComponent_Template(rf, ctx) {
2387
+ ]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 15, consts: [["role", "listbox", "aria-haspopup", "true", "aria-expanded", "false", "focus-target", "", 3, "ngClass", "disabled", "required", "tabindex", "ngModel", "multiple", "autofocus", "ngModelChange", "change", "focus", "blur"], ["select", ""], ["value", "undefined", 3, "textContent", "hidden", 4, "ngIf"], [4, "ngIf"], ["value", "undefined", 3, "textContent", "hidden"], [3, "label", 4, "ngFor", "ngForOf"], [3, "label"], ["role", "option", 3, "value", "selected", "textContent", 4, "ngFor", "ngForOf"], ["role", "option", 3, "value", "selected", "textContent"]], template: function SelectComponent_Template(rf, ctx) {
2361
2388
  if (rf & 1) {
2362
2389
  i0.ɵɵelementStart(0, "select", 0, 1);
2363
2390
  i0.ɵɵlistener("ngModelChange", function SelectComponent_Template_select_ngModelChange_0_listener($event) { return ctx.modelByKey = $event; })("change", function SelectComponent_Template_select_change_0_listener($event) { return ctx.onSelectValueChange($event); })("focus", function SelectComponent_Template_select_focus_0_listener($event) { return ctx.checkForFloatingLabel($event); })("blur", function SelectComponent_Template_select_blur_0_listener($event) { ctx.invokeOnTouched($event); return ctx.checkForFloatingLabel($event); });
2364
- i0.ɵɵelement(2, "option", 2);
2391
+ i0.ɵɵtemplate(2, SelectComponent_option_2_Template, 1, 2, "option", 2);
2365
2392
  i0.ɵɵtemplate(3, SelectComponent_ng_container_3_Template, 2, 1, "ng-container", 3);
2366
2393
  i0.ɵɵtemplate(4, SelectComponent_ng_container_4_Template, 2, 1, "ng-container", 3);
2367
2394
  i0.ɵɵelementEnd();
2368
2395
  }
2369
2396
  if (rf & 2) {
2370
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c1$6, ctx.class))("disabled", ctx.disabled)("required", ctx.required)("tabindex", ctx.tabindex)("ngModel", ctx.modelByKey)("multiple", ctx.multiple)("autofocus", ctx.autofocus);
2397
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c1$6, ctx.class))("disabled", ctx.disabled)("required", ctx.required)("tabindex", ctx.tabindex)("ngModel", ctx.modelByKey)("multiple", ctx.multiple)("autofocus", ctx.autofocus);
2371
2398
  i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.hint)("aria-multiselectable", ctx.multiple);
2372
2399
  i0.ɵɵadvance(2);
2373
- i0.ɵɵproperty("textContent", ctx.placeholder)("hidden", !ctx.placeholder);
2400
+ i0.ɵɵproperty("ngIf", !ctx.isIosPlatform() || !!ctx.placeholder);
2374
2401
  i0.ɵɵadvance(1);
2375
2402
  i0.ɵɵproperty("ngIf", ctx.groupby);
2376
2403
  i0.ɵɵadvance(1);
2377
2404
  i0.ɵɵproperty("ngIf", !ctx.groupby);
2378
2405
  }
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 });
2406
+ }, 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
2407
  (function () {
2381
2408
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectComponent, [{
2382
2409
  type: Component,
@@ -2384,8 +2411,8 @@ SelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectCompo
2384
2411
  provideAs(SelectComponent, NG_VALUE_ACCESSOR, true),
2385
2412
  provideAs(SelectComponent, NG_VALIDATORS, true),
2386
2413
  provideAsWidgetRef(SelectComponent)
2387
- ], template: "<select role=\"listbox\" aria-haspopup=\"true\" aria-expanded=\"false\" #select\n focus-target\n [ngClass]=\"['app-select form-control', class]\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [(ngModel)]=\"modelByKey\"\n [multiple]=\"multiple\"\n (change)=\"onSelectValueChange($event)\"\n (focus)=\"checkForFloatingLabel($event)\"\n (blur)=\"invokeOnTouched($event); checkForFloatingLabel($event)\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint\"\n [attr.aria-multiselectable]=\"multiple\"\n [autofocus]=\"autofocus\"\n>\n <option selected\n value=\"undefined\"\n [textContent]=\"placeholder\"\n [hidden]=\"!placeholder\"></option>\n\n <ng-container *ngIf=\"groupby\">\n <optgroup *ngFor=\"let groupObj of groupedData\"\n [label]=\"groupObj.key\">\n <option *ngFor=\"let item of groupObj.data;\"\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n role=\"option\"></option>\n </optgroup>\n </ng-container>\n\n <ng-container *ngIf=\"!groupby\">\n <option *ngFor=\"let item of datasetItems\"\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n role=\"option\"></option>\n </ng-container>\n</select>\n" }]
2388
- }], function () { return [{ type: i0.Injector }]; }, { selectEl: [{
2414
+ ], template: "<select role=\"listbox\" aria-haspopup=\"true\" aria-expanded=\"false\" #select\n focus-target\n [ngClass]=\"['app-select form-control', class]\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [(ngModel)]=\"modelByKey\"\n [multiple]=\"multiple\"\n (change)=\"onSelectValueChange($event)\"\n (focus)=\"checkForFloatingLabel($event)\"\n (blur)=\"invokeOnTouched($event); checkForFloatingLabel($event)\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint\"\n [attr.aria-multiselectable]=\"multiple\"\n [autofocus]=\"autofocus\"\n>\n <option\n value=\"undefined\"\n [textContent]=\"placeholder\"\n *ngIf=\"!isIosPlatform() || !!placeholder\"\n [hidden]=\"!placeholder\"></option>\n\n <ng-container *ngIf=\"groupby\">\n <optgroup *ngFor=\"let groupObj of groupedData\"\n [label]=\"groupObj.key\">\n <option *ngFor=\"let item of groupObj.data;\"\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n role=\"option\"></option>\n </optgroup>\n </ng-container>\n\n <ng-container *ngIf=\"!groupby\">\n <option *ngFor=\"let item of datasetItems\"\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n role=\"option\"></option>\n </ng-container>\n</select>\n" }]
2415
+ }], function () { return [{ type: i0.Injector }, { type: i1$1.App }]; }, { selectEl: [{
2389
2416
  type: ViewChild,
2390
2417
  args: ['select', { static: true, read: ElementRef }]
2391
2418
  }] });
@@ -2623,7 +2650,9 @@ const inputCalendarTypeProps = new Map([
2623
2650
  ['step', PROP_NUMBER],
2624
2651
  ['tabindex', Object.assign({ value: 0 }, PROP_NUMBER)],
2625
2652
  ['type', PROP_STRING],
2626
- ['updateon', PROP_STRING]
2653
+ ['updateon', PROP_STRING],
2654
+ ['conditionalclass', PROP_ANY],
2655
+ ['conditionalstyle', PROP_ANY]
2627
2656
  ]);
2628
2657
  const registerProps$5 = () => {
2629
2658
  register('wm-input-calendar', inputCalendarTypeProps);
@@ -2656,17 +2685,17 @@ InputCalendarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Inpu
2656
2685
  provideAs(InputCalendarComponent, NG_VALUE_ACCESSOR, true),
2657
2686
  provideAs(InputCalendarComponent, NG_VALIDATORS, true),
2658
2687
  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) {
2688
+ ]), 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
2689
  if (rf & 1) {
2661
2690
  i0.ɵɵelementStart(0, "input", 0, 1);
2662
2691
  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
2692
  i0.ɵɵelementEnd();
2664
2693
  }
2665
2694
  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");
2695
+ 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
2696
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint || ctx.type + " field");
2668
2697
  }
2669
- }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.NgModel], encapsulation: 2 });
2698
+ }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.NgModel], encapsulation: 2 });
2670
2699
  (function () {
2671
2700
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputCalendarComponent, [{
2672
2701
  type: Component,
@@ -2674,7 +2703,7 @@ InputCalendarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Inpu
2674
2703
  provideAs(InputCalendarComponent, NG_VALUE_ACCESSOR, true),
2675
2704
  provideAs(InputCalendarComponent, NG_VALIDATORS, true),
2676
2705
  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" }]
2706
+ ], 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
2707
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2679
2708
  type: ViewChild,
2680
2709
  args: ['input', { static: true }]
@@ -2701,7 +2730,9 @@ const inputColorTypeProps = new Map([
2701
2730
  ['show', Object.assign({ value: true }, PROP_BOOLEAN)],
2702
2731
  ['tabindex', Object.assign({ value: 0 }, PROP_NUMBER)],
2703
2732
  ['type', Object.assign({ value: 'color' }, PROP_STRING)],
2704
- ['updateon', PROP_STRING]
2733
+ ['updateon', PROP_STRING],
2734
+ ['conditionalclass', PROP_ANY],
2735
+ ['conditionalstyle', PROP_ANY]
2705
2736
  ]);
2706
2737
  const registerProps$4 = () => {
2707
2738
  register('wm-input-color', inputColorTypeProps);
@@ -2734,17 +2765,17 @@ InputColorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputCo
2734
2765
  provideAs(InputColorComponent, NG_VALUE_ACCESSOR, true),
2735
2766
  provideAs(InputColorComponent, NG_VALIDATORS, true),
2736
2767
  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) {
2768
+ ]), 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
2769
  if (rf & 1) {
2739
2770
  i0.ɵɵelementStart(0, "input", 0, 1);
2740
2771
  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
2772
  i0.ɵɵelementEnd();
2742
2773
  }
2743
2774
  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);
2775
+ 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
2776
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
2746
2777
  }
2747
- }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.NgModel], encapsulation: 2 });
2778
+ }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 });
2748
2779
  (function () {
2749
2780
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputColorComponent, [{
2750
2781
  type: Component,
@@ -2752,7 +2783,7 @@ InputColorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputCo
2752
2783
  provideAs(InputColorComponent, NG_VALUE_ACCESSOR, true),
2753
2784
  provideAs(InputColorComponent, NG_VALIDATORS, true),
2754
2785
  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" }]
2786
+ ], 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
2787
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2757
2788
  type: ViewChild,
2758
2789
  args: ['input', { static: true }]
@@ -2781,7 +2812,9 @@ const inputEmailTypeProps = new Map([
2781
2812
  ['show', Object.assign({ value: true }, PROP_BOOLEAN)],
2782
2813
  ['tabindex', Object.assign({ value: 0 }, PROP_NUMBER)],
2783
2814
  ['type', Object.assign({ value: 'email' }, PROP_STRING)],
2784
- ['updateon', PROP_STRING]
2815
+ ['updateon', PROP_STRING],
2816
+ ['conditionalclass', PROP_ANY],
2817
+ ['conditionalstyle', PROP_ANY]
2785
2818
  ]);
2786
2819
  const registerProps$3 = () => {
2787
2820
  register('wm-input-email', inputEmailTypeProps);
@@ -2814,7 +2847,7 @@ InputEmailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputEm
2814
2847
  provideAs(InputEmailComponent, NG_VALUE_ACCESSOR, true),
2815
2848
  provideAs(InputEmailComponent, NG_VALIDATORS, true),
2816
2849
  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) {
2850
+ ]), 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
2851
  if (rf & 1) {
2819
2852
  const _r1 = i0.ɵɵgetCurrentView();
2820
2853
  i0.ɵɵelementStart(0, "input", 0, 1);
@@ -2822,10 +2855,10 @@ InputEmailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputEm
2822
2855
  i0.ɵɵelementEnd();
2823
2856
  }
2824
2857
  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");
2858
+ 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
2859
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
2827
2860
  }
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 });
2861
+ }, 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
2862
  (function () {
2830
2863
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputEmailComponent, [{
2831
2864
  type: Component,
@@ -2833,7 +2866,7 @@ InputEmailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputEm
2833
2866
  provideAs(InputEmailComponent, NG_VALUE_ACCESSOR, true),
2834
2867
  provideAs(InputEmailComponent, NG_VALIDATORS, true),
2835
2868
  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" }]
2869
+ ], 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
2870
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2838
2871
  type: ViewChild,
2839
2872
  args: ['input', { static: true }]
@@ -2865,7 +2898,9 @@ const inputNumberTypeProps = new Map([
2865
2898
  ['step', PROP_NUMBER],
2866
2899
  ['tabindex', Object.assign({ value: 0 }, PROP_NUMBER)],
2867
2900
  ['type', Object.assign({ value: 'number' }, PROP_STRING)],
2868
- ['updateon', PROP_STRING]
2901
+ ['updateon', PROP_STRING],
2902
+ ['conditionalclass', PROP_ANY],
2903
+ ['conditionalstyle', PROP_ANY]
2869
2904
  ]);
2870
2905
  const registerProps$2 = () => {
2871
2906
  register('wm-input-number', inputNumberTypeProps);
@@ -2909,7 +2944,7 @@ InputNumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputN
2909
2944
  provideAs(InputNumberComponent, NG_VALUE_ACCESSOR, true),
2910
2945
  provideAs(InputNumberComponent, NG_VALIDATORS, true),
2911
2946
  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) {
2947
+ ]), 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
2948
  if (rf & 1) {
2914
2949
  const _r1 = i0.ɵɵgetCurrentView();
2915
2950
  i0.ɵɵelementStart(0, "input", 0, 1);
@@ -2917,10 +2952,10 @@ InputNumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputN
2917
2952
  i0.ɵɵelementEnd();
2918
2953
  }
2919
2954
  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");
2955
+ 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
2956
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
2922
2957
  }
2923
- }, dependencies: [i1.NgClass, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.NgModel], encapsulation: 2 });
2958
+ }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 });
2924
2959
  (function () {
2925
2960
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputNumberComponent, [{
2926
2961
  type: Component,
@@ -2928,7 +2963,7 @@ InputNumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputN
2928
2963
  provideAs(InputNumberComponent, NG_VALUE_ACCESSOR, true),
2929
2964
  provideAs(InputNumberComponent, NG_VALIDATORS, true),
2930
2965
  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" }]
2966
+ ], 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
2967
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2933
2968
  type: ViewChild,
2934
2969
  args: ['input', { static: true }]
@@ -2959,7 +2994,9 @@ const inputTextTypeProps = new Map([
2959
2994
  ['showdisplayformaton', Object.assign({ value: 'always' }, PROP_ANY)],
2960
2995
  ['tabindex', Object.assign({ value: 0 }, PROP_NUMBER)],
2961
2996
  ['type', Object.assign({ value: 'text' }, PROP_STRING)],
2962
- ['updateon', PROP_STRING]
2997
+ ['updateon', PROP_STRING],
2998
+ ['conditionalclass', PROP_ANY],
2999
+ ['conditionalstyle', PROP_ANY]
2963
3000
  ]);
2964
3001
  const registerProps$1 = () => {
2965
3002
  register('wm-input-text', inputTextTypeProps);
@@ -3073,7 +3110,7 @@ InputTextComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputTex
3073
3110
  provideAs(InputTextComponent, NG_VALUE_ACCESSOR, true),
3074
3111
  provideAs(InputTextComponent, NG_VALIDATORS, true),
3075
3112
  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) {
3113
+ ]), 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
3114
  if (rf & 1) {
3078
3115
  const _r1 = i0.ɵɵgetCurrentView();
3079
3116
  i0.ɵɵelementStart(0, "input", 0, 1);
@@ -3081,10 +3118,10 @@ InputTextComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputTex
3081
3118
  i0.ɵɵelementEnd();
3082
3119
  }
3083
3120
  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");
3121
+ 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
3122
  i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.hint)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey);
3086
3123
  }
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 });
3124
+ }, 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
3125
  (function () {
3089
3126
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputTextComponent, [{
3090
3127
  type: Component,
@@ -3092,7 +3129,7 @@ InputTextComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputTex
3092
3129
  provideAs(InputTextComponent, NG_VALUE_ACCESSOR, true),
3093
3130
  provideAs(InputTextComponent, NG_VALIDATORS, true),
3094
3131
  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" }]
3132
+ ], 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
3133
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
3097
3134
  type: ViewChild,
3098
3135
  args: ['input', { static: true }]
@@ -3124,6 +3161,8 @@ const textareaProps = new Map([
3124
3161
  ['updateon', PROP_STRING],
3125
3162
  ['limitdisplaytext', PROP_STRING],
3126
3163
  ['charlength', PROP_NUMBER],
3164
+ ['conditionalclass', PROP_ANY],
3165
+ ['conditionalstyle', PROP_ANY]
3127
3166
  ]);
3128
3167
  const registerProps = () => {
3129
3168
  register('wm-textarea', textareaProps);
@@ -3172,7 +3211,7 @@ TextareaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TextareaC
3172
3211
  provideAs(TextareaComponent, NG_VALUE_ACCESSOR, true),
3173
3212
  provideAs(TextareaComponent, NG_VALIDATORS, true),
3174
3213
  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) {
3214
+ ]), 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
3215
  if (rf & 1) {
3177
3216
  i0.ɵɵelementStart(0, "textarea", 0, 1);
3178
3217
  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 +3219,12 @@ TextareaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TextareaC
3180
3219
  i0.ɵɵtemplate(2, TextareaComponent_div_2_Template, 2, 1, "div", 2);
3181
3220
  }
3182
3221
  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);
3222
+ 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
3223
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
3185
3224
  i0.ɵɵadvance(2);
3186
3225
  i0.ɵɵproperty("ngIf", ctx.maxchars);
3187
3226
  }
3188
- }, dependencies: [i1.NgIf, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.NgModel], encapsulation: 2 });
3227
+ }, 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
3228
  (function () {
3190
3229
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TextareaComponent, [{
3191
3230
  type: Component,
@@ -3193,7 +3232,7 @@ TextareaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TextareaC
3193
3232
  provideAs(TextareaComponent, NG_VALUE_ACCESSOR, true),
3194
3233
  provideAs(TextareaComponent, NG_VALIDATORS, true),
3195
3234
  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" }]
3235
+ ], 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
3236
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
3198
3237
  type: ViewChild,
3199
3238
  args: ['textarea', { static: true }]
@@ -3324,7 +3363,7 @@ class CaptionPositionDirective {
3324
3363
  // isSelectMultiple is set to true when for select widget, multiple option is enabled
3325
3364
  // Checking inputEl focus - when form is represented as dialog and the first field is automatically in focus
3326
3365
  const isInputElFocused = this.inputEl && this.inputEl.is(':focus');
3327
- if (data.displayVal || data.isFocused || data.isSelectMultiple || isInputElFocused) {
3366
+ if (data.isSelect || data.displayVal || data.isFocused || data.isSelectMultiple || isInputElFocused) {
3328
3367
  data.nativeEl.addClass('float-active');
3329
3368
  if (!data.displayVal && isInputElFocused) {
3330
3369
  this.inputEl.attr('placeholder', this.placeholder);
@@ -3359,7 +3398,7 @@ class CaptionPositionDirective {
3359
3398
  }
3360
3399
  }
3361
3400
  }
3362
- CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$2.App)); };
3401
+ CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$1.App)); };
3363
3402
  CaptionPositionDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CaptionPositionDirective, selectors: [["", "wmCaptionPosition", ""]] });
3364
3403
  (function () {
3365
3404
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaptionPositionDirective, [{
@@ -3367,7 +3406,7 @@ CaptionPositionDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: Ca
3367
3406
  args: [{
3368
3407
  selector: '[wmCaptionPosition]'
3369
3408
  }]
3370
- }], function () { return [{ type: i0.Injector }, { type: i1$2.App }]; }, null);
3409
+ }], function () { return [{ type: i0.Injector }, { type: i1$1.App }]; }, null);
3371
3410
  })();
3372
3411
 
3373
3412
  const components = [