@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 = () => {
@@ -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: [{
@@ -2062,45 +2064,51 @@ const registerProps$7 = () => {
2062
2064
  };
2063
2065
 
2064
2066
  const _c0$7 = ["select"];
2067
+ function SelectComponent_option_2_Template(rf, ctx) { if (rf & 1) {
2068
+ i0.ɵɵelement(0, "option", 4);
2069
+ } if (rf & 2) {
2070
+ const ctx_r1 = i0.ɵɵnextContext();
2071
+ i0.ɵɵproperty("textContent", ctx_r1.placeholder)("hidden", !ctx_r1.placeholder);
2072
+ } }
2065
2073
  function SelectComponent_ng_container_3_optgroup_1_option_1_Template(rf, ctx) { if (rf & 1) {
2066
- i0.ɵɵelement(0, "option", 7);
2074
+ i0.ɵɵelement(0, "option", 8);
2067
2075
  } if (rf & 2) {
2068
- const item_r6 = ctx.$implicit;
2069
- i0.ɵɵproperty("value", item_r6.key)("selected", item_r6.selected)("textContent", item_r6.label);
2076
+ const item_r7 = ctx.$implicit;
2077
+ i0.ɵɵproperty("value", item_r7.key)("selected", item_r7.selected)("textContent", item_r7.label);
2070
2078
  } }
2071
2079
  function SelectComponent_ng_container_3_optgroup_1_Template(rf, ctx) { if (rf & 1) {
2072
- i0.ɵɵelementStart(0, "optgroup", 5);
2073
- i0.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_option_1_Template, 1, 3, "option", 6);
2080
+ i0.ɵɵelementStart(0, "optgroup", 6);
2081
+ i0.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_option_1_Template, 1, 3, "option", 7);
2074
2082
  i0.ɵɵelementEnd();
2075
2083
  } if (rf & 2) {
2076
- const groupObj_r4 = ctx.$implicit;
2077
- i0.ɵɵproperty("label", groupObj_r4.key);
2084
+ const groupObj_r5 = ctx.$implicit;
2085
+ i0.ɵɵproperty("label", groupObj_r5.key);
2078
2086
  i0.ɵɵadvance(1);
2079
- i0.ɵɵproperty("ngForOf", groupObj_r4.data);
2087
+ i0.ɵɵproperty("ngForOf", groupObj_r5.data);
2080
2088
  } }
2081
2089
  function SelectComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
2082
2090
  i0.ɵɵelementContainerStart(0);
2083
- i0.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_Template, 2, 2, "optgroup", 4);
2091
+ i0.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_Template, 2, 2, "optgroup", 5);
2084
2092
  i0.ɵɵelementContainerEnd();
2085
2093
  } if (rf & 2) {
2086
- const ctx_r1 = i0.ɵɵnextContext();
2094
+ const ctx_r2 = i0.ɵɵnextContext();
2087
2095
  i0.ɵɵadvance(1);
2088
- i0.ɵɵproperty("ngForOf", ctx_r1.groupedData);
2096
+ i0.ɵɵproperty("ngForOf", ctx_r2.groupedData);
2089
2097
  } }
2090
2098
  function SelectComponent_ng_container_4_option_1_Template(rf, ctx) { if (rf & 1) {
2091
- i0.ɵɵelement(0, "option", 7);
2099
+ i0.ɵɵelement(0, "option", 8);
2092
2100
  } if (rf & 2) {
2093
- const item_r8 = ctx.$implicit;
2094
- i0.ɵɵproperty("value", item_r8.key)("selected", item_r8.selected)("textContent", item_r8.label);
2101
+ const item_r9 = ctx.$implicit;
2102
+ i0.ɵɵproperty("value", item_r9.key)("selected", item_r9.selected)("textContent", item_r9.label);
2095
2103
  } }
2096
2104
  function SelectComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
2097
2105
  i0.ɵɵelementContainerStart(0);
2098
- i0.ɵɵtemplate(1, SelectComponent_ng_container_4_option_1_Template, 1, 3, "option", 6);
2106
+ i0.ɵɵtemplate(1, SelectComponent_ng_container_4_option_1_Template, 1, 3, "option", 7);
2099
2107
  i0.ɵɵelementContainerEnd();
2100
2108
  } if (rf & 2) {
2101
- const ctx_r2 = i0.ɵɵnextContext();
2109
+ const ctx_r3 = i0.ɵɵnextContext();
2102
2110
  i0.ɵɵadvance(1);
2103
- i0.ɵɵproperty("ngForOf", ctx_r2.datasetItems);
2111
+ i0.ɵɵproperty("ngForOf", ctx_r3.datasetItems);
2104
2112
  } }
2105
2113
  const _c1$6 = function (a1) { return ["app-select form-control", a1]; };
2106
2114
  const WIDGET_CONFIG$7 = { widgetType: 'wm-select', hostClass: 'app-select-wrapper' };
@@ -2110,13 +2118,17 @@ class SelectComponent extends DatasetAwareFormComponent {
2110
2118
  this.datavalue = ds.execute(DataSource.Operation.GET_DEFAULT_LOCALE);
2111
2119
  }
2112
2120
  }
2113
- constructor(inj) {
2121
+ constructor(inj, app) {
2114
2122
  super(inj, WIDGET_CONFIG$7);
2123
+ this.app = app;
2115
2124
  this.acceptsArray = true;
2116
2125
  }
2117
2126
  ngAfterViewInit() {
2118
2127
  super.ngAfterViewInit();
2119
2128
  styler(this.selectEl.nativeElement, this);
2129
+ setTimeout(() => {
2130
+ this.checkForFloatingLabel(null);
2131
+ }, 10);
2120
2132
  }
2121
2133
  // Change event is registered from the template, Prevent the framework from registering one more event
2122
2134
  handleEvent(node, eventName, eventCallback, locals) {
@@ -2163,6 +2175,9 @@ class SelectComponent extends DatasetAwareFormComponent {
2163
2175
  }
2164
2176
  super.onPropertyChange(key, nv, ov);
2165
2177
  }
2178
+ isIosPlatform() {
2179
+ return isIos();
2180
+ }
2166
2181
  /**
2167
2182
  * When caption floating is enabled and placeholder is given, do not show placeholder until user focuses on the field
2168
2183
  * When focused add the placeholder to the option which is selected
@@ -2172,18 +2187,27 @@ class SelectComponent extends DatasetAwareFormComponent {
2172
2187
  checkForFloatingLabel($event) {
2173
2188
  const captionEl = $(this.selectEl.nativeElement).closest('.app-composite-widget.caption-floating');
2174
2189
  if (captionEl.length > 0) {
2175
- if ($event.type === 'focus' && (!this.datavalue || (this.datavalue && $(this.selectEl).find('select option:selected').text() === '' && this.placeholder))) {
2176
- $(this.selectEl.nativeElement).find('option:first').text(this.placeholder);
2190
+ if ((!$event || $event.type === 'focus') && (($(this.selectEl).find('select option:selected').text() === '' && (this.placeholder || this.datavalue || this.isIosPlatform())))) {
2191
+ if (!$event && (this.placeholder || this.datavalue || this.isIosPlatform())) {
2192
+ this.app.notify('captionPositionAnimate', { isSelect: true, nativeEl: captionEl });
2193
+ }
2194
+ if (this.placeholder) {
2195
+ $(this.selectEl.nativeElement).find('option:first').text(this.placeholder);
2196
+ }
2177
2197
  }
2178
2198
  else if (!this.datavalue) {
2179
- $(this.selectEl.nativeElement).find('option:selected').text('');
2180
- captionEl.removeClass('float-active');
2199
+ if (!this.placeholder) {
2200
+ // $(this.selectEl.nativeElement).find('option:first').text('');
2201
+ if (!this.isIosPlatform()) {
2202
+ captionEl.removeClass('float-active');
2203
+ }
2204
+ }
2181
2205
  }
2182
2206
  }
2183
2207
  }
2184
2208
  }
2185
2209
  SelectComponent.initializeProps = registerProps$7();
2186
- SelectComponent.ɵfac = function SelectComponent_Factory(t) { return new (t || SelectComponent)(i0.ɵɵdirectiveInject(i0.Injector)); };
2210
+ SelectComponent.ɵfac = function SelectComponent_Factory(t) { return new (t || SelectComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$1.App)); };
2187
2211
  SelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectComponent, selectors: [["wm-select"]], viewQuery: function SelectComponent_Query(rf, ctx) { if (rf & 1) {
2188
2212
  i0.ɵɵviewQuery(_c0$7, 7, ElementRef);
2189
2213
  } if (rf & 2) {
@@ -2193,31 +2217,31 @@ SelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectCompo
2193
2217
  provideAs(SelectComponent, NG_VALUE_ACCESSOR, true),
2194
2218
  provideAs(SelectComponent, NG_VALIDATORS, true),
2195
2219
  provideAsWidgetRef(SelectComponent)
2196
- ]), 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) { if (rf & 1) {
2220
+ ]), 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) { if (rf & 1) {
2197
2221
  i0.ɵɵelementStart(0, "select", 0, 1);
2198
2222
  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); });
2199
- i0.ɵɵelement(2, "option", 2);
2223
+ i0.ɵɵtemplate(2, SelectComponent_option_2_Template, 1, 2, "option", 2);
2200
2224
  i0.ɵɵtemplate(3, SelectComponent_ng_container_3_Template, 2, 1, "ng-container", 3);
2201
2225
  i0.ɵɵtemplate(4, SelectComponent_ng_container_4_Template, 2, 1, "ng-container", 3);
2202
2226
  i0.ɵɵelementEnd();
2203
2227
  } if (rf & 2) {
2204
- 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);
2228
+ 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);
2205
2229
  i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.hint)("aria-multiselectable", ctx.multiple);
2206
2230
  i0.ɵɵadvance(2);
2207
- i0.ɵɵproperty("textContent", ctx.placeholder)("hidden", !ctx.placeholder);
2231
+ i0.ɵɵproperty("ngIf", !ctx.isIosPlatform() || !!ctx.placeholder);
2208
2232
  i0.ɵɵadvance(1);
2209
2233
  i0.ɵɵproperty("ngIf", ctx.groupby);
2210
2234
  i0.ɵɵadvance(1);
2211
2235
  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 });
2236
+ } }, 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
2237
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectComponent, [{
2214
2238
  type: Component,
2215
2239
  args: [{ selector: 'wm-select', providers: [
2216
2240
  provideAs(SelectComponent, NG_VALUE_ACCESSOR, true),
2217
2241
  provideAs(SelectComponent, NG_VALIDATORS, true),
2218
2242
  provideAsWidgetRef(SelectComponent)
2219
- ], 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" }]
2220
- }], function () { return [{ type: i0.Injector }]; }, { selectEl: [{
2243
+ ], 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" }]
2244
+ }], function () { return [{ type: i0.Injector }, { type: i1$1.App }]; }, { selectEl: [{
2221
2245
  type: ViewChild,
2222
2246
  args: ['select', { static: true, read: ElementRef }]
2223
2247
  }] }); })();
@@ -2440,7 +2464,9 @@ const inputCalendarTypeProps = new Map([
2440
2464
  ['step', PROP_NUMBER],
2441
2465
  ['tabindex', { value: 0, ...PROP_NUMBER }],
2442
2466
  ['type', PROP_STRING],
2443
- ['updateon', PROP_STRING]
2467
+ ['updateon', PROP_STRING],
2468
+ ['conditionalclass', PROP_ANY],
2469
+ ['conditionalstyle', PROP_ANY]
2444
2470
  ]);
2445
2471
  const registerProps$5 = () => {
2446
2472
  register('wm-input-calendar', inputCalendarTypeProps);
@@ -2470,21 +2496,21 @@ InputCalendarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Inpu
2470
2496
  provideAs(InputCalendarComponent, NG_VALUE_ACCESSOR, true),
2471
2497
  provideAs(InputCalendarComponent, NG_VALIDATORS, true),
2472
2498
  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) {
2499
+ ]), 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
2500
  i0.ɵɵelementStart(0, "input", 0, 1);
2475
2501
  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
2502
  i0.ɵɵelementEnd();
2477
2503
  } 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");
2504
+ 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
2505
  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 });
2506
+ } }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.NgModel], encapsulation: 2 });
2481
2507
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputCalendarComponent, [{
2482
2508
  type: Component,
2483
2509
  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
2510
  provideAs(InputCalendarComponent, NG_VALUE_ACCESSOR, true),
2485
2511
  provideAs(InputCalendarComponent, NG_VALIDATORS, true),
2486
2512
  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" }]
2513
+ ], 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
2514
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2489
2515
  type: ViewChild,
2490
2516
  args: ['input', { static: true }]
@@ -2510,7 +2536,9 @@ const inputColorTypeProps = new Map([
2510
2536
  ['show', { value: true, ...PROP_BOOLEAN }],
2511
2537
  ['tabindex', { value: 0, ...PROP_NUMBER }],
2512
2538
  ['type', { value: 'color', ...PROP_STRING }],
2513
- ['updateon', PROP_STRING]
2539
+ ['updateon', PROP_STRING],
2540
+ ['conditionalclass', PROP_ANY],
2541
+ ['conditionalstyle', PROP_ANY]
2514
2542
  ]);
2515
2543
  const registerProps$4 = () => {
2516
2544
  register('wm-input-color', inputColorTypeProps);
@@ -2540,21 +2568,21 @@ InputColorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputCo
2540
2568
  provideAs(InputColorComponent, NG_VALUE_ACCESSOR, true),
2541
2569
  provideAs(InputColorComponent, NG_VALIDATORS, true),
2542
2570
  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) {
2571
+ ]), 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
2572
  i0.ɵɵelementStart(0, "input", 0, 1);
2545
2573
  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
2574
  i0.ɵɵelementEnd();
2547
2575
  } 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);
2576
+ 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
2577
  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 });
2578
+ } }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 });
2551
2579
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputColorComponent, [{
2552
2580
  type: Component,
2553
2581
  args: [{ selector: 'wm-input[type="color"]', providers: [
2554
2582
  provideAs(InputColorComponent, NG_VALUE_ACCESSOR, true),
2555
2583
  provideAs(InputColorComponent, NG_VALIDATORS, true),
2556
2584
  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" }]
2585
+ ], 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
2586
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2559
2587
  type: ViewChild,
2560
2588
  args: ['input', { static: true }]
@@ -2582,7 +2610,9 @@ const inputEmailTypeProps = new Map([
2582
2610
  ['show', { value: true, ...PROP_BOOLEAN }],
2583
2611
  ['tabindex', { value: 0, ...PROP_NUMBER }],
2584
2612
  ['type', { value: 'email', ...PROP_STRING }],
2585
- ['updateon', PROP_STRING]
2613
+ ['updateon', PROP_STRING],
2614
+ ['conditionalclass', PROP_ANY],
2615
+ ['conditionalstyle', PROP_ANY]
2586
2616
  ]);
2587
2617
  const registerProps$3 = () => {
2588
2618
  register('wm-input-email', inputEmailTypeProps);
@@ -2612,22 +2642,22 @@ InputEmailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputEm
2612
2642
  provideAs(InputEmailComponent, NG_VALUE_ACCESSOR, true),
2613
2643
  provideAs(InputEmailComponent, NG_VALIDATORS, true),
2614
2644
  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) {
2645
+ ]), 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
2646
  const _r1 = i0.ɵɵgetCurrentView();
2617
2647
  i0.ɵɵelementStart(0, "input", 0, 1);
2618
2648
  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
2649
  i0.ɵɵelementEnd();
2620
2650
  } 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");
2651
+ 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
2652
  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 });
2653
+ } }, 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
2654
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputEmailComponent, [{
2625
2655
  type: Component,
2626
2656
  args: [{ selector: 'wm-input[type="email"]', providers: [
2627
2657
  provideAs(InputEmailComponent, NG_VALUE_ACCESSOR, true),
2628
2658
  provideAs(InputEmailComponent, NG_VALIDATORS, true),
2629
2659
  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" }]
2660
+ ], 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
2661
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2632
2662
  type: ViewChild,
2633
2663
  args: ['input', { static: true }]
@@ -2658,7 +2688,9 @@ const inputNumberTypeProps = new Map([
2658
2688
  ['step', PROP_NUMBER],
2659
2689
  ['tabindex', { value: 0, ...PROP_NUMBER }],
2660
2690
  ['type', { value: 'number', ...PROP_STRING }],
2661
- ['updateon', PROP_STRING]
2691
+ ['updateon', PROP_STRING],
2692
+ ['conditionalclass', PROP_ANY],
2693
+ ['conditionalstyle', PROP_ANY]
2662
2694
  ]);
2663
2695
  const registerProps$2 = () => {
2664
2696
  register('wm-input-number', inputNumberTypeProps);
@@ -2699,22 +2731,22 @@ InputNumberComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputN
2699
2731
  provideAs(InputNumberComponent, NG_VALUE_ACCESSOR, true),
2700
2732
  provideAs(InputNumberComponent, NG_VALIDATORS, true),
2701
2733
  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) {
2734
+ ]), 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
2735
  const _r1 = i0.ɵɵgetCurrentView();
2704
2736
  i0.ɵɵelementStart(0, "input", 0, 1);
2705
2737
  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
2738
  i0.ɵɵelementEnd();
2707
2739
  } 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");
2740
+ 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
2741
  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 });
2742
+ } }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 });
2711
2743
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputNumberComponent, [{
2712
2744
  type: Component,
2713
2745
  args: [{ selector: 'wm-input[type="number"]', providers: [
2714
2746
  provideAs(InputNumberComponent, NG_VALUE_ACCESSOR, true),
2715
2747
  provideAs(InputNumberComponent, NG_VALIDATORS, true),
2716
2748
  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" }]
2749
+ ], 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
2750
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2719
2751
  type: ViewChild,
2720
2752
  args: ['input', { static: true }]
@@ -2744,7 +2776,9 @@ const inputTextTypeProps = new Map([
2744
2776
  ['showdisplayformaton', { value: 'always', ...PROP_ANY }],
2745
2777
  ['tabindex', { value: 0, ...PROP_NUMBER }],
2746
2778
  ['type', { value: 'text', ...PROP_STRING }],
2747
- ['updateon', PROP_STRING]
2779
+ ['updateon', PROP_STRING],
2780
+ ['conditionalclass', PROP_ANY],
2781
+ ['conditionalstyle', PROP_ANY]
2748
2782
  ]);
2749
2783
  const registerProps$1 = () => {
2750
2784
  register('wm-input-text', inputTextTypeProps);
@@ -2855,22 +2889,22 @@ InputTextComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputTex
2855
2889
  provideAs(InputTextComponent, NG_VALUE_ACCESSOR, true),
2856
2890
  provideAs(InputTextComponent, NG_VALIDATORS, true),
2857
2891
  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) {
2892
+ ]), 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
2893
  const _r1 = i0.ɵɵgetCurrentView();
2860
2894
  i0.ɵɵelementStart(0, "input", 0, 1);
2861
2895
  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
2896
  i0.ɵɵelementEnd();
2863
2897
  } 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");
2898
+ 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
2899
  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 });
2900
+ } }, 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
2901
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputTextComponent, [{
2868
2902
  type: Component,
2869
2903
  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
2904
  provideAs(InputTextComponent, NG_VALUE_ACCESSOR, true),
2871
2905
  provideAs(InputTextComponent, NG_VALIDATORS, true),
2872
2906
  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" }]
2907
+ ], 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
2908
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2875
2909
  type: ViewChild,
2876
2910
  args: ['input', { static: true }]
@@ -2901,6 +2935,8 @@ const textareaProps = new Map([
2901
2935
  ['updateon', PROP_STRING],
2902
2936
  ['limitdisplaytext', PROP_STRING],
2903
2937
  ['charlength', PROP_NUMBER],
2938
+ ['conditionalclass', PROP_ANY],
2939
+ ['conditionalstyle', PROP_ANY]
2904
2940
  ]);
2905
2941
  const registerProps = () => {
2906
2942
  register('wm-textarea', textareaProps);
@@ -2943,24 +2979,24 @@ TextareaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TextareaC
2943
2979
  provideAs(TextareaComponent, NG_VALUE_ACCESSOR, true),
2944
2980
  provideAs(TextareaComponent, NG_VALIDATORS, true),
2945
2981
  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) {
2982
+ ]), 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
2983
  i0.ɵɵelementStart(0, "textarea", 0, 1);
2948
2984
  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
2985
  i0.ɵɵelementEnd();
2950
2986
  i0.ɵɵtemplate(2, TextareaComponent_div_2_Template, 2, 1, "div", 2);
2951
2987
  } 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);
2988
+ 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
2989
  i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
2954
2990
  i0.ɵɵadvance(2);
2955
2991
  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 });
2992
+ } }, 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
2993
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TextareaComponent, [{
2958
2994
  type: Component,
2959
2995
  args: [{ selector: 'wm-textarea', providers: [
2960
2996
  provideAs(TextareaComponent, NG_VALUE_ACCESSOR, true),
2961
2997
  provideAs(TextareaComponent, NG_VALIDATORS, true),
2962
2998
  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" }]
2999
+ ], 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
3000
  }], function () { return [{ type: i0.Injector }]; }, { inputEl: [{
2965
3001
  type: ViewChild,
2966
3002
  args: ['textarea', { static: true }]
@@ -3090,7 +3126,7 @@ class CaptionPositionDirective {
3090
3126
  // isSelectMultiple is set to true when for select widget, multiple option is enabled
3091
3127
  // Checking inputEl focus - when form is represented as dialog and the first field is automatically in focus
3092
3128
  const isInputElFocused = this.inputEl && this.inputEl.is(':focus');
3093
- if (data.displayVal || data.isFocused || data.isSelectMultiple || isInputElFocused) {
3129
+ if (data.isSelect || data.displayVal || data.isFocused || data.isSelectMultiple || isInputElFocused) {
3094
3130
  data.nativeEl.addClass('float-active');
3095
3131
  if (!data.displayVal && isInputElFocused) {
3096
3132
  this.inputEl.attr('placeholder', this.placeholder);
@@ -3125,14 +3161,14 @@ class CaptionPositionDirective {
3125
3161
  }
3126
3162
  }
3127
3163
  }
3128
- CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$2.App)); };
3164
+ CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$1.App)); };
3129
3165
  CaptionPositionDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CaptionPositionDirective, selectors: [["", "wmCaptionPosition", ""]] });
3130
3166
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaptionPositionDirective, [{
3131
3167
  type: Directive,
3132
3168
  args: [{
3133
3169
  selector: '[wmCaptionPosition]'
3134
3170
  }]
3135
- }], function () { return [{ type: i0.Injector }, { type: i1$2.App }]; }, null); })();
3171
+ }], function () { return [{ type: i0.Injector }, { type: i1$1.App }]; }, null); })();
3136
3172
 
3137
3173
  const components = [
3138
3174
  ButtonComponent,