@wavemaker/app-ng-runtime 11.5.2-next.141050 → 11.5.2-next.141052
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.
- app-ng-runtime/components/data/form/bundles/index.umd.js +1 -1
- app-ng-runtime/components/data/form/esm2020/form-field/form-field.directive.mjs +2 -2
- app-ng-runtime/components/data/form/fesm2015/index.mjs +1 -1
- app-ng-runtime/components/data/form/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/fesm2020/index.mjs +1 -1
- app-ng-runtime/components/data/form/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +10 -3
- app-ng-runtime/components/input/default/esm2020/select/select.component.mjs +11 -4
- app-ng-runtime/components/input/default/fesm2015/index.mjs +10 -3
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +10 -3
- app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/select/select.component.d.ts +1 -0
- app-ng-runtime/package.json +1 -1
|
@@ -2175,8 +2175,15 @@ class SelectComponent extends DatasetAwareFormComponent {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
super.onPropertyChange(key, nv, ov);
|
|
2177
2177
|
}
|
|
2178
|
+
isSafariBrowser() {
|
|
2179
|
+
var reg = {
|
|
2180
|
+
MAC: /Mac/i,
|
|
2181
|
+
MACINTEL: /MacIntel/i
|
|
2182
|
+
};
|
|
2183
|
+
return reg.MAC.test(window.navigator.platform) || reg.MACINTEL.test(window.navigator.platform);
|
|
2184
|
+
}
|
|
2178
2185
|
isIosPlatform() {
|
|
2179
|
-
return isIos();
|
|
2186
|
+
return isIos() || this.isSafariBrowser();
|
|
2180
2187
|
}
|
|
2181
2188
|
/**
|
|
2182
2189
|
* When caption floating is enabled and placeholder is given, do not show placeholder until user focuses on the field
|
|
@@ -2187,8 +2194,8 @@ class SelectComponent extends DatasetAwareFormComponent {
|
|
|
2187
2194
|
checkForFloatingLabel($event) {
|
|
2188
2195
|
const captionEl = $(this.selectEl.nativeElement).closest('.app-composite-widget.caption-floating');
|
|
2189
2196
|
if (captionEl.length > 0) {
|
|
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())) {
|
|
2197
|
+
if ((!$event || $event.type === 'focus') && (($(this.selectEl).find('select option:selected').text() === '' && (this.placeholder || (this.datavalue || this.binddatavalue) || this.isIosPlatform())))) {
|
|
2198
|
+
if (!$event && (this.placeholder || this.datavalue || this.binddatavalue || this.isIosPlatform())) {
|
|
2192
2199
|
this.app.notify('captionPositionAnimate', { isSelect: true, nativeEl: captionEl });
|
|
2193
2200
|
}
|
|
2194
2201
|
if (this.placeholder) {
|