@panomc/sdk 1.0.0-dev.37 → 1.0.0-dev.39

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 (67) hide show
  1. package/core/favicon/apple-touch-icon.png +0 -0
  2. package/core/favicon/favicon-96x96.png +0 -0
  3. package/core/favicon/favicon.ico +0 -0
  4. package/core/favicon/favicon.svg +1 -0
  5. package/core/favicon/site.webmanifest +21 -0
  6. package/core/favicon/web-app-manifest-192x192.png +0 -0
  7. package/core/favicon/web-app-manifest-512x512.png +0 -0
  8. package/core/favicon_old/android-icon-144x144.png +0 -0
  9. package/core/favicon_old/android-icon-192x192.png +0 -0
  10. package/core/favicon_old/android-icon-36x36.png +0 -0
  11. package/core/favicon_old/android-icon-48x48.png +0 -0
  12. package/core/favicon_old/android-icon-72x72.png +0 -0
  13. package/core/favicon_old/android-icon-96x96.png +0 -0
  14. package/core/favicon_old/apple-icon-114x114.png +0 -0
  15. package/core/favicon_old/apple-icon-120x120.png +0 -0
  16. package/core/favicon_old/apple-icon-144x144.png +0 -0
  17. package/core/favicon_old/apple-icon-152x152.png +0 -0
  18. package/core/favicon_old/apple-icon-180x180.png +0 -0
  19. package/core/favicon_old/apple-icon-57x57.png +0 -0
  20. package/core/favicon_old/apple-icon-60x60.png +0 -0
  21. package/core/favicon_old/apple-icon-72x72.png +0 -0
  22. package/core/favicon_old/apple-icon-76x76.png +0 -0
  23. package/core/favicon_old/apple-icon-precomposed.png +0 -0
  24. package/core/favicon_old/apple-icon.png +0 -0
  25. package/core/favicon_old/browserconfig.xml +11 -0
  26. package/core/favicon_old/favicon-16x16.png +0 -0
  27. package/core/favicon_old/favicon-32x32.png +0 -0
  28. package/core/favicon_old/favicon-96x96.png +0 -0
  29. package/core/favicon_old/favicon.ico +0 -0
  30. package/core/favicon_old/manifest.json +41 -0
  31. package/core/favicon_old/ms-icon-144x144.png +0 -0
  32. package/core/favicon_old/ms-icon-150x150.png +0 -0
  33. package/core/favicon_old/ms-icon-310x310.png +0 -0
  34. package/core/favicon_old/ms-icon-70x70.png +0 -0
  35. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.eot +0 -0
  36. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.svg +483 -0
  37. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.ttf +0 -0
  38. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.woff +0 -0
  39. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.woff2 +0 -0
  40. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.eot +0 -0
  41. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.svg +486 -0
  42. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.ttf +0 -0
  43. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.woff +0 -0
  44. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.woff2 +0 -0
  45. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.eot +0 -0
  46. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.svg +484 -0
  47. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.ttf +0 -0
  48. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.woff +0 -0
  49. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.woff2 +0 -0
  50. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.eot +0 -0
  51. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.svg +486 -0
  52. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.ttf +0 -0
  53. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.woff +0 -0
  54. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.woff2 +0 -0
  55. package/core/js/NotificationManager.js +19 -0
  56. package/core/js/PluginAPI.js +29 -0
  57. package/core/js/PluginManager.js +789 -0
  58. package/core/js/RouteMatcher.js +134 -0
  59. package/core/js/api.util.js +248 -0
  60. package/core/js/tooltip.util.js +59 -0
  61. package/core/js/variables.js +63 -0
  62. package/core/js/version.util.js +100 -0
  63. package/core/scss/custom-bootstrap.scss +187 -0
  64. package/core/scss/fonts.scss +85 -0
  65. package/core/scss/main.scss +385 -0
  66. package/core/scss/themes.scss +97 -0
  67. package/package.json +12 -4
@@ -0,0 +1,19 @@
1
+ const actionListeners = {};
2
+
3
+ export function addListener(action, listener) {
4
+ if (!actionListeners[action]) {
5
+ actionListeners[action] = [];
6
+ }
7
+
8
+ actionListeners[action] = [...actionListeners[action], listener];
9
+ }
10
+
11
+ export function onNotificationClick(notification) {
12
+ const listeners = actionListeners[notification.type];
13
+
14
+ if (listeners) {
15
+ listeners.forEach((listener) => {
16
+ listener(notification);
17
+ });
18
+ }
19
+ }
@@ -0,0 +1,29 @@
1
+ import { base } from '$app/paths';
2
+ import { registeredPages } from './PluginManager.js';
3
+ import { canonicalizeRouteKey } from './RouteMatcher.js';
4
+
5
+ const isPanel = base === '/panel';
6
+
7
+ export const baseAPI = {
8
+ isPanel,
9
+ debug: false,
10
+ };
11
+
12
+ export const pageAPI = {
13
+ page: {
14
+ register(
15
+ page = {
16
+ path: '',
17
+ component: Promise,
18
+ systemLayout: String,
19
+ restLayout: Boolean,
20
+ },
21
+ ) {
22
+ registeredPages[canonicalizeRouteKey(page.path)] = page;
23
+ },
24
+ unregister(path = '') {
25
+ delete registeredPages[canonicalizeRouteKey(path)];
26
+ },
27
+ isPluginPage: (path = '') => registeredPages[canonicalizeRouteKey(path)] !== undefined,
28
+ },
29
+ };