@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.
Files changed (46) hide show
  1. package/dist/index.d.ts +23 -0
  2. package/dist/src/components/NS/cards/NSBackupCard.vue.d.ts +51 -0
  3. package/dist/src/components/NS/cards/NSSystemInfoCard.vue.d.ts +58 -0
  4. package/dist/src/components/NS/cards/NSSystemdServiceCard.vue.d.ts +47 -0
  5. package/dist/src/components/NS/cards/index.d.ts +3 -0
  6. package/dist/src/components/NS/checkbox/NSCheckbox.vue.d.ts +37 -0
  7. package/dist/src/components/NS/checkbox/index.d.ts +1 -0
  8. package/dist/src/components/NS/data-table/NSDataTable.vue.d.ts +98 -0
  9. package/dist/src/components/NS/data-table/index.d.ts +1 -0
  10. package/dist/src/components/NS/empty-state/NSEmptyState.vue.d.ts +45 -0
  11. package/dist/src/components/NS/empty-state/index.d.ts +1 -0
  12. package/dist/src/components/NS/index.d.ts +35 -0
  13. package/dist/src/components/NS/inline-notification/NSInlineNotification.vue.d.ts +44 -0
  14. package/dist/src/components/NS/inline-notification/index.d.ts +1 -0
  15. package/dist/src/components/NS/lottie-animation/index.d.ts +1 -0
  16. package/dist/src/components/NS/modal/NSModal.vue.d.ts +56 -0
  17. package/dist/src/components/NS/modal/NSModalTrigger.vue.d.ts +64 -0
  18. package/dist/src/components/NS/modal/index.d.ts +2 -0
  19. package/dist/src/components/NS/pagination/NSPagination.vue.d.ts +36 -0
  20. package/dist/src/components/NS/pagination/index.d.ts +1 -0
  21. package/dist/src/components/NS/progress/NSProgress.vue.d.ts +37 -0
  22. package/dist/src/components/NS/progress/NSProgressBar.vue.d.ts +39 -0
  23. package/dist/src/components/NS/progress/index.d.ts +2 -0
  24. package/dist/src/components/NS/slider/NSByteSlider.vue.d.ts +50 -0
  25. package/dist/src/components/NS/slider/NSSlider.vue.d.ts +49 -0
  26. package/dist/src/components/NS/slider/index.d.ts +2 -0
  27. package/dist/src/components/NS/tag/NSTag.vue.d.ts +41 -0
  28. package/dist/src/components/NS/tag/index.d.ts +1 -0
  29. package/dist/src/components/NS/text-input/NSTextInput.vue.d.ts +67 -0
  30. package/dist/src/components/NS/text-input/index.d.ts +1 -0
  31. package/dist/src/components/NS/toast-notification/NSToastNotification.vue.d.ts +44 -0
  32. package/dist/src/components/NS/toast-notification/index.d.ts +1 -0
  33. package/dist/src/components/NS/toggle/NSToggle.vue.d.ts +51 -0
  34. package/dist/src/components/NS/toggle/index.d.ts +1 -0
  35. package/dist/src/components/NS/wizard/NSWizard.vue.d.ts +86 -0
  36. package/dist/src/components/NS/wizard/index.d.ts +1 -0
  37. package/dist/src/composables/index.d.ts +8 -0
  38. package/dist/src/composables/useDateTimeService.d.ts +10 -0
  39. package/dist/src/composables/useFilterService.d.ts +8 -0
  40. package/dist/src/composables/useIconService.d.ts +153 -0
  41. package/dist/src/composables/usePageTitleService.d.ts +3 -0
  42. package/dist/src/composables/useQueryParamService.d.ts +13 -0
  43. package/dist/src/composables/useStorageService.d.ts +5 -0
  44. package/dist/src/composables/useTaskService.d.ts +18 -0
  45. package/dist/src/composables/useUtilService.d.ts +27 -0
  46. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ export declare const usePageTitleService: () => {
2
+ setPageTitle: (pageTitle: string | (() => string) | undefined) => void;
3
+ };
@@ -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,5 @@
1
+ export declare const useStorageService: () => {
2
+ getFromStorage: <T = any>(prop: string) => T | null;
3
+ saveToStorage: (prop: string, object: any) => void;
4
+ deleteFromStorage: (prop: string) => void;
5
+ };
@@ -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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geniusdynamics/ns8-ui-lib",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Vue 3 library for NethServer 8 UI with TailwindCSS and Shadcn Vue",
5
5
  "keywords": [
6
6
  "nethserver",