@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.
Files changed (50) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/general-about-us.cjs.entry.js +210 -223
  3. package/dist/cjs/general-about-us.cjs.js +17 -11
  4. package/dist/cjs/index-f16005fe.js +1198 -0
  5. package/dist/cjs/loader.cjs.js +7 -13
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/general-about-us/general-about-us.css +2 -2
  8. package/dist/collection/components/general-about-us/general-about-us.js +279 -297
  9. package/dist/collection/components/general-about-us/index.js +1 -0
  10. package/dist/collection/utils/locale.utils.js +26 -26
  11. package/dist/collection/utils/utils.js +43 -43
  12. package/dist/esm/app-globals-0f993ce5.js +3 -0
  13. package/dist/esm/general-about-us.entry.js +210 -223
  14. package/dist/esm/general-about-us.js +14 -11
  15. package/dist/esm/index-8f53f54c.js +1172 -0
  16. package/dist/esm/loader.js +7 -13
  17. package/dist/general-about-us/general-about-us.esm.js +1 -1
  18. package/dist/general-about-us/p-21732378.js +2 -0
  19. package/dist/general-about-us/p-9f49c7d5.entry.js +1 -0
  20. package/dist/general-about-us/p-e1255160.js +1 -0
  21. package/dist/stencil.config.dev.js +17 -0
  22. package/dist/stencil.config.js +14 -19
  23. 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
  24. 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
  25. package/dist/types/components/general-about-us/general-about-us.d.ts +41 -41
  26. package/dist/types/components/general-about-us/general-about-us.types.d.ts +13 -13
  27. package/dist/types/components/general-about-us/index.d.ts +1 -0
  28. package/dist/types/stencil-public-runtime.d.ts +142 -33
  29. package/loader/cdn.js +1 -3
  30. package/loader/index.cjs.js +1 -3
  31. package/loader/index.d.ts +13 -1
  32. package/loader/index.es2017.js +1 -3
  33. package/loader/index.js +1 -3
  34. package/loader/package.json +1 -0
  35. package/package.json +8 -1
  36. package/dist/cjs/index-f09c74e2.js +0 -1223
  37. package/dist/components/general-about-us.d.ts +0 -11
  38. package/dist/components/general-about-us.js +0 -288
  39. package/dist/components/index.d.ts +0 -26
  40. package/dist/components/index.js +0 -1
  41. package/dist/esm/index-b262ca21.js +0 -1198
  42. package/dist/esm/polyfills/core-js.js +0 -11
  43. package/dist/esm/polyfills/css-shim.js +0 -1
  44. package/dist/esm/polyfills/dom.js +0 -79
  45. package/dist/esm/polyfills/es5-html-element.js +0 -1
  46. package/dist/esm/polyfills/index.js +0 -34
  47. package/dist/esm/polyfills/system.js +0 -6
  48. package/dist/general-about-us/p-0c90e5ab.js +0 -1
  49. package/dist/general-about-us/p-edeca10f.entry.js +0 -1
  50. 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
- 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
- }
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
- const lang = customLang;
30
- return TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
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
- const userAgent = navigator.userAgent.toLowerCase();
3
- const width = screen.availWidth;
4
- const height = screen.availHeight;
5
- if (userAgent.includes('iphone')) {
6
- return 'mobile';
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 (width > height && height < 800) {
13
- return 'tablet';
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
- const width = screen.availWidth;
20
- if (width < 600) {
21
- return 'mobile';
22
- }
23
- else if (width >= 600 && width < 1100) {
24
- return 'tablet';
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
- const userAgent = navigator.userAgent.toLowerCase();
29
- let source = '';
30
- source = (userAgent.includes('android') || userAgent.includes('iphone') || userAgent.includes('ipad')) ? checkCustomDeviceWidth() : 'desktop';
31
- return source;
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
- 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';
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
- 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';
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
  };
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };