@wavemaker/app-ng-runtime 12.0.0-next.140526 → 12.0.0-next.140529

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 (29) hide show
  1. app-ng-runtime/components/base/bundles/index.umd.js +7 -1
  2. app-ng-runtime/components/base/esm2022/utils/live-utils.mjs +8 -2
  3. app-ng-runtime/components/base/fesm2022/index.mjs +7 -1
  4. app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
  5. app-ng-runtime/components/data/form/bundles/index.umd.js +4 -0
  6. app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +5 -1
  7. app-ng-runtime/components/data/form/fesm2022/index.mjs +4 -0
  8. app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
  9. app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +1 -0
  10. app-ng-runtime/components/data/table/bundles/index.umd.js +2 -2
  11. app-ng-runtime/components/data/table/esm2022/table.component.mjs +3 -3
  12. app-ng-runtime/components/data/table/fesm2022/index.mjs +2 -2
  13. app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
  14. app-ng-runtime/components/data/table/table.component.d.ts +1 -1
  15. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +3 -3
  16. app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +4 -4
  17. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +3 -3
  18. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  19. app-ng-runtime/components/input/default/bundles/index.umd.js +18 -12
  20. app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +20 -14
  21. app-ng-runtime/components/input/default/fesm2022/index.mjs +19 -13
  22. app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
  23. app-ng-runtime/core/bundles/index.umd.js +5 -5
  24. app-ng-runtime/core/esm2022/utils/utils.mjs +3 -2
  25. app-ng-runtime/core/fesm2022/index.mjs +2 -1
  26. app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
  27. app-ng-runtime/core/utils/utils.d.ts +1 -0
  28. app-ng-runtime/package.json +1 -1
  29. app-ng-runtime/scripts/datatable/datatable.js +1 -1
@@ -9,7 +9,7 @@ import { IMaskDirective, IMaskModule } from 'angular-imask';
9
9
  import * as i2 from '@wm/components/base';
10
10
  import { PROP_STRING, PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, register, DISPLAY_TYPE, StylableComponent, styler, provideAsWidgetRef, APPLY_STYLES_TYPE, WidgetConfig, registerFormWidget, provideAs, extractDataAsArray, ToDatePipe, ALLFIELDS, convertDataToObject, getOrderedDataset, transformDataWithKeys, transformFormData, getUniqObjsByDataField, groupData, handleHeaderClick, toggleAllHeaders, WidgetRef, INPUTMODE, TrailingZeroDecimalPipe, WmComponentsModule } from '@wm/components/base';
11
11
  import * as i1$1 from '@wm/core';
12
- import { DataSource, FormWidgetType, isDefined, toggleClass, AppDefaults, $appDigest, debounce as debounce$1, noop, isEqualWithFields, toBoolean, setListClass, switchClass, addForIdAttributes, addClass, AbstractI18nService, setAttr, removeAttr, setCSS } from '@wm/core';
12
+ import { DataSource, FormWidgetType, isDefined, toggleClass, AppDefaults, $appDigest, debounce as debounce$1, noop, isEqualWithFields, toBoolean, setListClass, switchClass, addForIdAttributes, addClass, AbstractI18nService, isIos, setAttr, removeAttr, setCSS } from '@wm/core';
13
13
  import { has, set, isArray, debounce, toString, find, isNull, isObject, isEqual, isEmpty, forEach, includes, isString, get, isUndefined, round, toArray, intersection, findIndex } from 'lodash-es';
14
14
  import { Subject } from 'rxjs';
15
15
  import { __param, __metadata, __decorate } from 'tslib';
@@ -2185,20 +2185,26 @@ class SelectComponent extends DatasetAwareFormComponent {
2185
2185
  * As this widget implements ControlValueAccessor, manually updating the ngModel (or modelByKey) is necessary to ensure correct form behavior.
2186
2186
  * */
2187
2187
  const datasetSubscription = this.dataset$.subscribe(() => {
2188
- if (this.datavalue) {
2189
- const selectedItem = this.datasetItems.find(item => item.selected);
2190
- if (!selectedItem) {
2188
+ if (isIos()) {
2189
+ if (this.datavalue) {
2190
+ const selectedItem = this.datasetItems.find(item => item.selected);
2191
+ if (!selectedItem) {
2192
+ setTimeout(() => {
2193
+ if (!this.placeholder) {
2194
+ this.selectEl.nativeElement.value = '';
2195
+ }
2196
+ this.modelByKey = undefined;
2197
+ }, 100);
2198
+ }
2199
+ }
2200
+ else {
2191
2201
  setTimeout(() => {
2192
- this.selectEl.nativeElement.value = '';
2193
- this.modelByKey = undefined;
2202
+ if (!this.placeholder) {
2203
+ this.selectEl.nativeElement.value = '';
2204
+ }
2194
2205
  }, 100);
2195
2206
  }
2196
2207
  }
2197
- else {
2198
- setTimeout(() => {
2199
- this.selectEl.nativeElement.value = '';
2200
- }, 100);
2201
- }
2202
2208
  });
2203
2209
  this.registerDestroyListener(() => datasetSubscription.unsubscribe());
2204
2210
  }
@@ -2259,7 +2265,7 @@ class SelectComponent extends DatasetAwareFormComponent {
2259
2265
  */
2260
2266
  checkForFloatingLabel($event) {
2261
2267
  const captionEl = $(this.selectEl.nativeElement).closest('.app-composite-widget.caption-floating');
2262
- if (!this.placeholder) {
2268
+ if (!this.placeholder && isIos()) {
2263
2269
  this.removePlaceholderOption();
2264
2270
  }
2265
2271
  if (captionEl.length > 0) {
@@ -2339,7 +2345,7 @@ class SelectComponent extends DatasetAwareFormComponent {
2339
2345
  type: ViewChild,
2340
2346
  args: ['select', { static: true, read: ElementRef }]
2341
2347
  }] }); })();
2342
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectComponent, { className: "SelectComponent", filePath: "select/select.component.ts", lineNumber: 21 }); })();
2348
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectComponent, { className: "SelectComponent", filePath: "select/select.component.ts", lineNumber: 20 }); })();
2343
2349
 
2344
2350
  const switchProps = new Map([
2345
2351
  ['class', PROP_STRING],