@taiga-ui/cdk 4.7.0-canary.a110e06 → 4.7.0-canary.d4099d2
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.
@@ -1,3 +1,4 @@
|
|
1
|
+
// TODO: Drop change to Document in v5
|
1
2
|
export function tuiIsSafari({ ownerDocument: doc }) {
|
2
3
|
const win = doc?.defaultView;
|
3
4
|
const isMacOsSafari = win.safari !== undefined &&
|
@@ -7,4 +8,4 @@ export function tuiIsSafari({ ownerDocument: doc }) {
|
|
7
8
|
!win.navigator?.userAgent?.includes('FxiOS');
|
8
9
|
return isMacOsSafari || isIosSafari;
|
9
10
|
}
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtc2FmYXJpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2RrL3V0aWxzL2Jyb3dzZXIvaXMtc2FmYXJpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHNDQUFzQztBQUN0QyxNQUFNLFVBQVUsV0FBVyxDQUFDLEVBQUMsYUFBYSxFQUFFLEdBQUcsRUFBVTtJQUNyRCxNQUFNLEdBQUcsR0FBRyxHQUFHLEVBQUUsV0FBaUQsQ0FBQztJQUVuRSxNQUFNLGFBQWEsR0FDZixHQUFHLENBQUMsTUFBTSxLQUFLLFNBQVM7UUFDeEIsR0FBRyxDQUFDLE1BQU0sRUFBRSxnQkFBZ0IsRUFBRSxRQUFRLEVBQUUsS0FBSyxtQ0FBbUMsQ0FBQztJQUVyRixNQUFNLFdBQVcsR0FDYixDQUFDLENBQUMsR0FBRyxDQUFDLFNBQVMsRUFBRSxNQUFNLEVBQUUsUUFBUSxDQUFDLE9BQU8sQ0FBQztRQUMxQyxDQUFDLEdBQUcsQ0FBQyxTQUFTLEVBQUUsU0FBUyxFQUFFLFFBQVEsQ0FBQyxPQUFPLENBQUM7UUFDNUMsQ0FBQyxHQUFHLENBQUMsU0FBUyxFQUFFLFNBQVMsRUFBRSxRQUFRLENBQUMsT0FBTyxDQUFDLENBQUM7SUFFakQsT0FBTyxhQUFhLElBQUksV0FBVyxDQUFDO0FBQ3hDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBUT0RPOiBEcm9wIGNoYW5nZSB0byBEb2N1bWVudCBpbiB2NVxuZXhwb3J0IGZ1bmN0aW9uIHR1aUlzU2FmYXJpKHtvd25lckRvY3VtZW50OiBkb2N9OiBFbGVtZW50KTogYm9vbGVhbiB7XG4gICAgY29uc3Qgd2luID0gZG9jPy5kZWZhdWx0VmlldyBhcyB1bmtub3duIGFzIFdpbmRvdyAmIHtzYWZhcmk/OiBhbnl9O1xuXG4gICAgY29uc3QgaXNNYWNPc1NhZmFyaSA9XG4gICAgICAgIHdpbi5zYWZhcmkgIT09IHVuZGVmaW5lZCAmJlxuICAgICAgICB3aW4uc2FmYXJpPy5wdXNoTm90aWZpY2F0aW9uPy50b1N0cmluZygpID09PSAnW29iamVjdCBTYWZhcmlSZW1vdGVOb3RpZmljYXRpb25dJztcblxuICAgIGNvbnN0IGlzSW9zU2FmYXJpID1cbiAgICAgICAgISF3aW4ubmF2aWdhdG9yPy52ZW5kb3I/LmluY2x1ZGVzKCdBcHBsZScpICYmXG4gICAgICAgICF3aW4ubmF2aWdhdG9yPy51c2VyQWdlbnQ/LmluY2x1ZGVzKCdDcmlPUycpICYmXG4gICAgICAgICF3aW4ubmF2aWdhdG9yPy51c2VyQWdlbnQ/LmluY2x1ZGVzKCdGeGlPUycpO1xuXG4gICAgcmV0dXJuIGlzTWFjT3NTYWZhcmkgfHwgaXNJb3NTYWZhcmk7XG59XG4iXX0=
|
@@ -26,6 +26,7 @@ function tuiIsIos(navigator) {
|
|
26
26
|
(tuiIsApple(navigator) && navigator.maxTouchPoints > 1));
|
27
27
|
}
|
28
28
|
|
29
|
+
// TODO: Drop change to Document in v5
|
29
30
|
function tuiIsSafari({ ownerDocument: doc }) {
|
30
31
|
const win = doc?.defaultView;
|
31
32
|
const isMacOsSafari = win.safari !== undefined &&
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-utils-browser.mjs","sources":["../../../projects/cdk/utils/browser/is-apple.ts","../../../projects/cdk/utils/browser/is-edge.ts","../../../projects/cdk/utils/browser/is-firefox.ts","../../../projects/cdk/utils/browser/is-ios.ts","../../../projects/cdk/utils/browser/is-safari.ts","../../../projects/cdk/utils/browser/taiga-ui-cdk-utils-browser.ts"],"sourcesContent":["/**\n * @description:\n * All Chrome / Chromium-based browsers will return MacIntel on macOS,\n * no matter what the hardware architecture is. See the source code here:\n * https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/frame/navigator_id.cc;l=64;drc=703d3c472cf27470dad21a3f2c8972aca3732cd6\n * But maybe in future years, it will be changed to MacM1\n *\n * Documentation:\n * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform\n */\nexport function tuiIsApple(navigator: Navigator): boolean {\n return navigator.platform.startsWith('Mac') || navigator.platform === 'iPhone';\n}\n","export function tuiIsEdge(userAgent: string): boolean {\n return userAgent.toLowerCase().includes('edge');\n}\n","export function tuiIsFirefox(userAgent: string): boolean {\n return userAgent.toLowerCase().includes('firefox');\n}\n","import {tuiIsApple} from './is-apple';\n\nconst IOS_REG_EXP = /ipad|iphone|ipod/;\n\nexport function tuiIsIos(navigator: Navigator): boolean {\n return (\n IOS_REG_EXP.test(navigator.userAgent.toLowerCase()) ||\n (tuiIsApple(navigator) && navigator.maxTouchPoints > 1)\n );\n}\n","
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-utils-browser.mjs","sources":["../../../projects/cdk/utils/browser/is-apple.ts","../../../projects/cdk/utils/browser/is-edge.ts","../../../projects/cdk/utils/browser/is-firefox.ts","../../../projects/cdk/utils/browser/is-ios.ts","../../../projects/cdk/utils/browser/is-safari.ts","../../../projects/cdk/utils/browser/taiga-ui-cdk-utils-browser.ts"],"sourcesContent":["/**\n * @description:\n * All Chrome / Chromium-based browsers will return MacIntel on macOS,\n * no matter what the hardware architecture is. See the source code here:\n * https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/frame/navigator_id.cc;l=64;drc=703d3c472cf27470dad21a3f2c8972aca3732cd6\n * But maybe in future years, it will be changed to MacM1\n *\n * Documentation:\n * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform\n */\nexport function tuiIsApple(navigator: Navigator): boolean {\n return navigator.platform.startsWith('Mac') || navigator.platform === 'iPhone';\n}\n","export function tuiIsEdge(userAgent: string): boolean {\n return userAgent.toLowerCase().includes('edge');\n}\n","export function tuiIsFirefox(userAgent: string): boolean {\n return userAgent.toLowerCase().includes('firefox');\n}\n","import {tuiIsApple} from './is-apple';\n\nconst IOS_REG_EXP = /ipad|iphone|ipod/;\n\nexport function tuiIsIos(navigator: Navigator): boolean {\n return (\n IOS_REG_EXP.test(navigator.userAgent.toLowerCase()) ||\n (tuiIsApple(navigator) && navigator.maxTouchPoints > 1)\n );\n}\n","// TODO: Drop change to Document in v5\nexport function tuiIsSafari({ownerDocument: doc}: Element): boolean {\n const win = doc?.defaultView as unknown as Window & {safari?: any};\n\n const isMacOsSafari =\n win.safari !== undefined &&\n win.safari?.pushNotification?.toString() === '[object SafariRemoteNotification]';\n\n const isIosSafari =\n !!win.navigator?.vendor?.includes('Apple') &&\n !win.navigator?.userAgent?.includes('CriOS') &&\n !win.navigator?.userAgent?.includes('FxiOS');\n\n return isMacOsSafari || isIosSafari;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;;;;;;;AASG;AACG,SAAU,UAAU,CAAC,SAAoB,EAAA;AAC3C,IAAA,OAAO,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,QAAQ,K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|
"description": "Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance",
|
5
5
|
"keywords": [
|
6
6
|
"angular",
|
@@ -245,6 +245,12 @@
|
|
245
245
|
"esm": "./esm2022/directives/popover/taiga-ui-cdk-directives-popover.mjs",
|
246
246
|
"default": "./fesm2022/taiga-ui-cdk-directives-popover.mjs"
|
247
247
|
},
|
248
|
+
"./directives/repeat-times": {
|
249
|
+
"types": "./directives/repeat-times/index.d.ts",
|
250
|
+
"esm2022": "./esm2022/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.mjs",
|
251
|
+
"esm": "./esm2022/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.mjs",
|
252
|
+
"default": "./fesm2022/taiga-ui-cdk-directives-repeat-times.mjs"
|
253
|
+
},
|
248
254
|
"./directives/resizer": {
|
249
255
|
"types": "./directives/resizer/index.d.ts",
|
250
256
|
"esm2022": "./esm2022/directives/resizer/taiga-ui-cdk-directives-resizer.mjs",
|
@@ -352,12 +358,6 @@
|
|
352
358
|
"esm2022": "./esm2022/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.mjs",
|
353
359
|
"esm": "./esm2022/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.mjs",
|
354
360
|
"default": "./fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs"
|
355
|
-
},
|
356
|
-
"./directives/repeat-times": {
|
357
|
-
"types": "./directives/repeat-times/index.d.ts",
|
358
|
-
"esm2022": "./esm2022/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.mjs",
|
359
|
-
"esm": "./esm2022/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.mjs",
|
360
|
-
"default": "./fesm2022/taiga-ui-cdk-directives-repeat-times.mjs"
|
361
361
|
}
|
362
362
|
},
|
363
363
|
"sideEffects": false
|