@panomc/sdk 1.0.0-dev.5 → 1.0.0-dev.51
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/README.md +3 -3
- package/core/favicon/apple-touch-icon.png +0 -0
- package/core/favicon/favicon-96x96.png +0 -0
- package/core/favicon/favicon.ico +0 -0
- package/core/favicon/favicon.svg +1 -0
- package/core/favicon/site.webmanifest +21 -0
- package/core/favicon/web-app-manifest-192x192.png +0 -0
- package/core/favicon/web-app-manifest-512x512.png +0 -0
- package/core/favicon_old/android-icon-144x144.png +0 -0
- package/core/favicon_old/android-icon-192x192.png +0 -0
- package/core/favicon_old/android-icon-36x36.png +0 -0
- package/core/favicon_old/android-icon-48x48.png +0 -0
- package/core/favicon_old/android-icon-72x72.png +0 -0
- package/core/favicon_old/android-icon-96x96.png +0 -0
- package/core/favicon_old/apple-icon-114x114.png +0 -0
- package/core/favicon_old/apple-icon-120x120.png +0 -0
- package/core/favicon_old/apple-icon-144x144.png +0 -0
- package/core/favicon_old/apple-icon-152x152.png +0 -0
- package/core/favicon_old/apple-icon-180x180.png +0 -0
- package/core/favicon_old/apple-icon-57x57.png +0 -0
- package/core/favicon_old/apple-icon-60x60.png +0 -0
- package/core/favicon_old/apple-icon-72x72.png +0 -0
- package/core/favicon_old/apple-icon-76x76.png +0 -0
- package/core/favicon_old/apple-icon-precomposed.png +0 -0
- package/core/favicon_old/apple-icon.png +0 -0
- package/core/favicon_old/browserconfig.xml +11 -0
- package/core/favicon_old/favicon-16x16.png +0 -0
- package/core/favicon_old/favicon-32x32.png +0 -0
- package/core/favicon_old/favicon-96x96.png +0 -0
- package/core/favicon_old/favicon.ico +0 -0
- package/core/favicon_old/manifest.json +41 -0
- package/core/favicon_old/ms-icon-144x144.png +0 -0
- package/core/favicon_old/ms-icon-150x150.png +0 -0
- package/core/favicon_old/ms-icon-310x310.png +0 -0
- package/core/favicon_old/ms-icon-70x70.png +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.eot +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.svg +483 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.ttf +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.woff +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.woff2 +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.eot +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.svg +486 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.ttf +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.woff +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.woff2 +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.eot +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.svg +484 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.ttf +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.woff +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.woff2 +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.eot +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.svg +486 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.ttf +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.woff +0 -0
- package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.woff2 +0 -0
- package/core/js/NotificationManager.js +19 -0
- package/core/js/PluginAPI.js +29 -0
- package/core/js/PluginManager.js +789 -0
- package/core/js/RouteMatcher.js +134 -0
- package/core/js/api.util.js +248 -0
- package/core/js/tooltip.util.js +59 -0
- package/core/js/variables.js +63 -0
- package/core/js/version.util.js +100 -0
- package/core/scss/custom-bootstrap.scss +187 -0
- package/core/scss/fonts.scss +85 -0
- package/core/scss/main.scss +385 -0
- package/core/scss/themes.scss +97 -0
- package/package.json +34 -10
- package/src/api/plugin-context.js +3 -3
- package/src/api/plugin.js +20 -3
- package/src/components/{index.js → panel.js} +12 -8
- package/src/components/theme.js +13 -0
- package/src/index.js +3 -3
- package/src/internal/index.js +1 -1
- package/src/internal/pano-context.js +14 -4
- package/src/svelte.js +7 -0
- package/src/toasts/index.js +2 -2
- package/src/types.js +40 -0
- package/src/utils/api.js +2 -2
- package/src/utils/auth.js +8 -0
- package/src/utils/component.js +11 -9
- package/src/utils/language.js +2 -2
- package/src/utils/text.js +8 -0
- package/src/utils/tooltip.js +1 -1
- package/src/variables.js +1 -1
|
@@ -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
|
+
};
|