@sumaris-net/ngx-components 1.19.0 → 1.19.1
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.
- package/bundles/sumaris-net.ngx-components.umd.js +19 -3
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +3 -0
- package/esm2015/src/app/core/services/model/referential.model.js +1 -1
- package/esm2015/src/app/shared/platforms.js +20 -4
- package/fesm2015/sumaris-net.ngx-components.js +19 -3
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/model/referential.model.d.ts +7 -7
- package/src/app/shared/platforms.d.ts +1 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -1331,6 +1331,10 @@
|
|
|
1331
1331
|
/* ---
|
|
1332
1332
|
* Source: https://github.com/ionic-team/ionic-framework/blob/b0d53ca73619585671d8cf4dc24e47f826495a0a/core/src/utils/platform.ts
|
|
1333
1333
|
* --- */
|
|
1334
|
+
var _cache = {
|
|
1335
|
+
mobile: null,
|
|
1336
|
+
cordova: null
|
|
1337
|
+
};
|
|
1334
1338
|
var matchMedia = function (win, query) { return win.matchMedia(query).matches; };
|
|
1335
1339
|
var testUserAgent = function (win, expr) {
|
|
1336
1340
|
var userAgent = win.navigator.userAgent || win.navigator.vendor || window.opera;
|
|
@@ -1338,14 +1342,13 @@
|
|
|
1338
1342
|
};
|
|
1339
1343
|
var isWindows = function (win) { return testUserAgent(win, /windows/i); };
|
|
1340
1344
|
var isTouchUi = function (win) { return matchMedia(win, '(any-pointer:coarse)'); };
|
|
1341
|
-
var isMobile = function (win) { return isCordova(window) || isAndroid(win) || isIOS(window) || (isTouchUi(win) && !isWindows(win)); };
|
|
1342
1345
|
var isIpad = function (win) {
|
|
1343
1346
|
// iOS 12 and below
|
|
1344
1347
|
if (testUserAgent(win, /iPad/i)) {
|
|
1345
1348
|
return true;
|
|
1346
1349
|
}
|
|
1347
1350
|
// iOS 13+
|
|
1348
|
-
if (testUserAgent(win, /Macintosh/i) &&
|
|
1351
|
+
if (testUserAgent(win, /Macintosh/i) && isTouchUi(win)) {
|
|
1349
1352
|
return true;
|
|
1350
1353
|
}
|
|
1351
1354
|
return false;
|
|
@@ -1353,7 +1356,20 @@
|
|
|
1353
1356
|
var ɵ0 = isIpad;
|
|
1354
1357
|
var isIOS = function (win) { return testUserAgent(win, /iPhone|iPod/i) || isIpad(win); };
|
|
1355
1358
|
var isAndroid = function (win) { return testUserAgent(win, /android|sink/i); };
|
|
1356
|
-
var isCordova = function (win) {
|
|
1359
|
+
var isCordova = function (win) {
|
|
1360
|
+
if (_cache.cordova === undefined) {
|
|
1361
|
+
_cache.cordova = !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
|
|
1362
|
+
}
|
|
1363
|
+
return _cache.cordova;
|
|
1364
|
+
};
|
|
1365
|
+
var isMobile = function (win) {
|
|
1366
|
+
if (_cache.mobile === undefined) {
|
|
1367
|
+
_cache.mobile = isCordova(window)
|
|
1368
|
+
|| isAndroid(win) || isIOS(window)
|
|
1369
|
+
|| (isTouchUi(win) && !isWindows(win));
|
|
1370
|
+
}
|
|
1371
|
+
return _cache.mobile;
|
|
1372
|
+
};
|
|
1357
1373
|
|
|
1358
1374
|
var MatAutocompleteConfigHolder = /** @class */ (function () {
|
|
1359
1375
|
function MatAutocompleteConfigHolder(options) {
|