@everymatrix/general-about-us 1.43.4 → 1.45.0
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/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/general-about-us.cjs.entry.js +210 -223
- package/dist/cjs/general-about-us.cjs.js +17 -11
- package/dist/cjs/index-f16005fe.js +1198 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/general-about-us/general-about-us.css +2 -2
- package/dist/collection/components/general-about-us/general-about-us.js +279 -297
- package/dist/collection/components/general-about-us/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +26 -26
- package/dist/collection/utils/utils.js +43 -43
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/general-about-us.entry.js +210 -223
- package/dist/esm/general-about-us.js +14 -11
- package/dist/esm/index-8f53f54c.js +1172 -0
- package/dist/esm/loader.js +7 -13
- package/dist/general-about-us/general-about-us.esm.js +1 -1
- package/dist/general-about-us/p-21732378.js +2 -0
- package/dist/general-about-us/p-9f49c7d5.entry.js +1 -0
- package/dist/general-about-us/p-e1255160.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/general-about-us/general-about-us.d.ts +41 -41
- package/dist/types/components/general-about-us/general-about-us.types.d.ts +13 -13
- package/dist/types/components/general-about-us/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +8 -1
- package/dist/cjs/index-f09c74e2.js +0 -1223
- package/dist/components/general-about-us.d.ts +0 -11
- package/dist/components/general-about-us.js +0 -288
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-b262ca21.js +0 -1198
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/general-about-us/p-0c90e5ab.js +0 -1
- package/dist/general-about-us/p-edeca10f.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/general-about-us/.stencil/packages/general-about-us/stencil.config.d.ts +0 -2
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
const DEFAULT_LANGUAGE = 'en';
|
|
2
2
|
const TRANSLATIONS = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
3
|
+
en: {
|
|
4
|
+
error: 'Error',
|
|
5
|
+
noResults: 'Loading, please wait ...',
|
|
6
|
+
},
|
|
7
|
+
hu: {
|
|
8
|
+
error: 'Error',
|
|
9
|
+
noResults: 'Loading, please wait ...',
|
|
10
|
+
},
|
|
11
|
+
ro: {
|
|
12
|
+
error: 'Eroare',
|
|
13
|
+
noResults: 'Loading, please wait ...',
|
|
14
|
+
},
|
|
15
|
+
fr: {
|
|
16
|
+
error: 'Error',
|
|
17
|
+
noResults: 'Loading, please wait ...',
|
|
18
|
+
},
|
|
19
|
+
ar: {
|
|
20
|
+
error: 'خطأ',
|
|
21
|
+
noResults: 'Loading, please wait ...',
|
|
22
|
+
},
|
|
23
|
+
hr: {
|
|
24
|
+
error: 'Greška',
|
|
25
|
+
noResults: 'Učitavanje, molimo pričekajte ...',
|
|
26
|
+
}
|
|
27
27
|
};
|
|
28
28
|
export const translate = (key, customLang) => {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const lang = customLang;
|
|
30
|
+
return TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
|
|
31
31
|
};
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
export function checkDeviceType() {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
if (userAgent.includes('android')) {
|
|
9
|
-
if (height > width && width < 800) {
|
|
10
|
-
return 'mobile';
|
|
2
|
+
const userAgent = navigator.userAgent.toLowerCase();
|
|
3
|
+
const width = screen.availWidth;
|
|
4
|
+
const height = screen.availHeight;
|
|
5
|
+
if (userAgent.includes('iphone')) {
|
|
6
|
+
return 'mobile';
|
|
11
7
|
}
|
|
12
|
-
if (
|
|
13
|
-
|
|
8
|
+
if (userAgent.includes('android')) {
|
|
9
|
+
if (height > width && width < 800) {
|
|
10
|
+
return 'mobile';
|
|
11
|
+
}
|
|
12
|
+
if (width > height && height < 800) {
|
|
13
|
+
return 'tablet';
|
|
14
|
+
}
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
return 'desktop';
|
|
16
|
+
return 'desktop';
|
|
17
17
|
}
|
|
18
18
|
function checkCustomDeviceWidth() {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
const width = screen.availWidth;
|
|
20
|
+
if (width < 600) {
|
|
21
|
+
return 'mobile';
|
|
22
|
+
}
|
|
23
|
+
else if (width >= 600 && width < 1100) {
|
|
24
|
+
return 'tablet';
|
|
25
|
+
}
|
|
26
26
|
}
|
|
27
27
|
export function getDeviceCustom() {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
const userAgent = navigator.userAgent.toLowerCase();
|
|
29
|
+
let source = '';
|
|
30
|
+
source = (userAgent.includes('android') || userAgent.includes('iphone') || userAgent.includes('ipad')) ? checkCustomDeviceWidth() : 'desktop';
|
|
31
|
+
return source;
|
|
32
32
|
}
|
|
33
33
|
const getDevice = () => {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
let userAgent = window.navigator.userAgent.toLocaleLowerCase();
|
|
35
|
+
if (userAgent.includes('android/i'))
|
|
36
|
+
return 'android';
|
|
37
|
+
if (userAgent.includes('iphone/i'))
|
|
38
|
+
return 'iPhone';
|
|
39
|
+
if (userAgent.includes('ipad/i') || userAgent.includes('ipod/i'))
|
|
40
|
+
return 'iPad';
|
|
41
|
+
return 'PC';
|
|
42
42
|
};
|
|
43
43
|
export const getDevicePlatform = () => {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
const device = getDevice();
|
|
45
|
+
if (device) {
|
|
46
|
+
if (device === 'PC') {
|
|
47
|
+
return 'dk';
|
|
48
|
+
}
|
|
49
|
+
else if (device === 'iPad' || device === 'iPhone') {
|
|
50
|
+
return 'mtWeb';
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
return 'mtWeb';
|
|
54
|
+
}
|
|
54
55
|
}
|
|
55
|
-
}
|
|
56
56
|
};
|