@geniusdynamics/ns8-ui-lib 1.0.7 → 1.0.8
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/index.d.ts +23 -0
- package/dist/src/components/NS/cards/NSBackupCard.vue.d.ts +51 -0
- package/dist/src/components/NS/cards/NSSystemInfoCard.vue.d.ts +58 -0
- package/dist/src/components/NS/cards/NSSystemdServiceCard.vue.d.ts +47 -0
- package/dist/src/components/NS/cards/index.d.ts +3 -0
- package/dist/src/components/NS/checkbox/NSCheckbox.vue.d.ts +37 -0
- package/dist/src/components/NS/checkbox/index.d.ts +1 -0
- package/dist/src/components/NS/data-table/NSDataTable.vue.d.ts +98 -0
- package/dist/src/components/NS/data-table/index.d.ts +1 -0
- package/dist/src/components/NS/empty-state/NSEmptyState.vue.d.ts +45 -0
- package/dist/src/components/NS/empty-state/index.d.ts +1 -0
- package/dist/src/components/NS/index.d.ts +35 -0
- package/dist/src/components/NS/inline-notification/NSInlineNotification.vue.d.ts +44 -0
- package/dist/src/components/NS/inline-notification/index.d.ts +1 -0
- package/dist/src/components/NS/lottie-animation/index.d.ts +1 -0
- package/dist/src/components/NS/modal/NSModal.vue.d.ts +56 -0
- package/dist/src/components/NS/modal/NSModalTrigger.vue.d.ts +64 -0
- package/dist/src/components/NS/modal/index.d.ts +2 -0
- package/dist/src/components/NS/pagination/NSPagination.vue.d.ts +36 -0
- package/dist/src/components/NS/pagination/index.d.ts +1 -0
- package/dist/src/components/NS/progress/NSProgress.vue.d.ts +37 -0
- package/dist/src/components/NS/progress/NSProgressBar.vue.d.ts +39 -0
- package/dist/src/components/NS/progress/index.d.ts +2 -0
- package/dist/src/components/NS/slider/NSByteSlider.vue.d.ts +50 -0
- package/dist/src/components/NS/slider/NSSlider.vue.d.ts +49 -0
- package/dist/src/components/NS/slider/index.d.ts +2 -0
- package/dist/src/components/NS/tag/NSTag.vue.d.ts +41 -0
- package/dist/src/components/NS/tag/index.d.ts +1 -0
- package/dist/src/components/NS/text-input/NSTextInput.vue.d.ts +67 -0
- package/dist/src/components/NS/text-input/index.d.ts +1 -0
- package/dist/src/components/NS/toast-notification/NSToastNotification.vue.d.ts +44 -0
- package/dist/src/components/NS/toast-notification/index.d.ts +1 -0
- package/dist/src/components/NS/toggle/NSToggle.vue.d.ts +51 -0
- package/dist/src/components/NS/toggle/index.d.ts +1 -0
- package/dist/src/components/NS/wizard/NSWizard.vue.d.ts +86 -0
- package/dist/src/components/NS/wizard/index.d.ts +1 -0
- package/dist/src/composables/index.d.ts +8 -0
- package/dist/src/composables/useDateTimeService.d.ts +10 -0
- package/dist/src/composables/useFilterService.d.ts +8 -0
- package/dist/src/composables/useIconService.d.ts +153 -0
- package/dist/src/composables/usePageTitleService.d.ts +3 -0
- package/dist/src/composables/useQueryParamService.d.ts +13 -0
- package/dist/src/composables/useStorageService.d.ts +5 -0
- package/dist/src/composables/useTaskService.d.ts +18 -0
- package/dist/src/composables/useUtilService.d.ts +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { RouteLocationNormalized, Router } from 'vue-router';
|
|
3
|
+
export declare const useQueryParamService: () => {
|
|
4
|
+
getTypedValue: (stringValue: string) => string | boolean;
|
|
5
|
+
getQueryParams: () => Record<string, string>;
|
|
6
|
+
getQueryParamsForApp: () => Record<string, string>;
|
|
7
|
+
queryParamsToData: (q: Ref<Record<string, any>>, queryParams: Record<string, string>) => void;
|
|
8
|
+
dataToQueryParams: (q: Ref<Record<string, any>>, route: RouteLocationNormalized, router: Router) => void;
|
|
9
|
+
watchQueryData: (q: Ref<Record<string, any>>, route: RouteLocationNormalized, router: Router) => void;
|
|
10
|
+
initUrlBindingForApp: (q: Ref<Record<string, any>>, page: string, callback?: (page: string) => void) => number | null;
|
|
11
|
+
cleanupUrlBinding: () => void;
|
|
12
|
+
getPage: () => string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const useTaskService: () => {
|
|
2
|
+
getTaskContext: (taskPath: string, apiUrl: string) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
3
|
+
getTaskStatus: (taskPath: string, apiUrl: string) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
4
|
+
getClusterTasks: (apiUrl: string) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
5
|
+
createClusterTask: (taskData: any, apiUrl: string) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
6
|
+
createClusterTaskForApp: (taskData: any) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
7
|
+
createModuleTaskForApp: (moduleId: string, taskData: any) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
8
|
+
createNodeTask: (nodeId: string, taskData: any, apiUrl: string) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
9
|
+
createNodeTaskForApp: (nodeId: string, taskData: any) => Promise<import('axios').AxiosResponse<any, any, {}>>;
|
|
10
|
+
getTaskTitle: (task: any) => string;
|
|
11
|
+
getTaskKind: (task: any) => "error" | "success" | "warning" | "info";
|
|
12
|
+
getTaskIcon: (task: any) => import('vue').FunctionalComponent<import('lucide-vue-next').LucideProps, {}, any, {}>;
|
|
13
|
+
getTaskStatusDescription: (task: any, t: (key: string, args?: any) => string, rootTask?: boolean) => string;
|
|
14
|
+
createErrorNotification: (err: any, message: string, emit: (event: string, ...args: any[]) => void) => void;
|
|
15
|
+
createErrorNotificationForApp: (err: any, message: string) => void;
|
|
16
|
+
createNotificationForApp: (notification: any) => void;
|
|
17
|
+
deleteNotificationForApp: (notification: any) => void;
|
|
18
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const useUtilService: () => {
|
|
2
|
+
DELETE_DELAY: number;
|
|
3
|
+
time24HourPattern: RegExp;
|
|
4
|
+
time24HourPatternString: string;
|
|
5
|
+
time24HourPlaceholder: string;
|
|
6
|
+
highlightAnchor: string;
|
|
7
|
+
ipAddressPattern: RegExp;
|
|
8
|
+
cidrPattern: RegExp;
|
|
9
|
+
getErrorMessage: (error: any, t?: (key: string, args?: any) => string) => string;
|
|
10
|
+
clearErrors: (error: any) => void;
|
|
11
|
+
clearStrings: (obj: any) => void;
|
|
12
|
+
sortByProperty: (property: string) => (a: any, b: any) => 0 | 1 | -1;
|
|
13
|
+
sortModuleInstances: () => (instance1: any, instance2: any) => 0 | 1 | -1;
|
|
14
|
+
isJson: (s: string) => boolean;
|
|
15
|
+
tryParseJson: (s: string) => any;
|
|
16
|
+
focusElement: (elementRef: any) => void;
|
|
17
|
+
scrollToElement: (element: Element) => void;
|
|
18
|
+
getAppDescription: (app: any, t: (key: string, args?: any) => string, locale: string) => any;
|
|
19
|
+
getAppCategories: (app: any, t: (key: string, args?: any) => string) => string;
|
|
20
|
+
getBackupScheduleDescription: (schedule: any, t: (key: string, args?: any) => string) => string;
|
|
21
|
+
fileToBase64: (file: File) => Promise<string>;
|
|
22
|
+
getUuid: () => string;
|
|
23
|
+
getNodeLabel: (node: any, t: (key: string, args?: any) => string) => string;
|
|
24
|
+
getShortNodeLabel: (node: any, t: (key: string, args?: any) => string) => any;
|
|
25
|
+
decodeJwtPayload: (token: string) => any;
|
|
26
|
+
getSha256: (message: string) => Promise<string>;
|
|
27
|
+
};
|