@kato-lee/utilities 2.0.0 → 2.0.1

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 (2) hide show
  1. package/models/index.d.ts +51 -0
  2. package/package.json +4 -1
package/models/index.d.ts CHANGED
@@ -29,4 +29,55 @@ declare class ItemStored<T> {
29
29
  set lastUpdate(lastUpdate: Date | null);
30
30
  }
31
31
 
32
+ type CtmSnavItemType = 'link' | 'collection' | 'dropdown';
33
+ interface CtmSnavItems {
34
+ type: CtmSnavItemType;
35
+ icon?: string;
36
+ iconType?: 'material' | 'img' | 'lucide';
37
+ imgIconVisibility?: string;
38
+ imgIconVisibilityOff?: string;
39
+ imgIconRadioButton?: string;
40
+ name: string;
41
+ url?: string;
42
+ urlIsNotAutoCompleted?: boolean;
43
+ dropdownLinks?: CtmSnavDropdownLink[];
44
+ objects?: CtmSnavItems[];
45
+ authorities?: string[];
46
+ disableOnContexts?: any[];
47
+ showCollectionContent?: boolean;
48
+ forceDisabledContent?: boolean;
49
+ isOpened?: boolean;
50
+ notAddAdminAuthority?: boolean;
51
+ }
52
+ interface CtmSnavDropdownLink {
53
+ name: string;
54
+ url: string;
55
+ urlIsNotAutoCompleted?: boolean;
56
+ authorities?: string[];
57
+ disableOnContexts?: any[];
58
+ forceDisabledContent?: boolean;
59
+ notAddAdminAuthority?: boolean;
60
+ }
61
+ interface AdminLayoutConfig {
62
+ showHeader?: boolean;
63
+ showSidebarDarkModeBtn?: boolean;
64
+ userImage?: string;
65
+ userName?: string;
66
+ appIcon: string;
67
+ appTitle: string;
68
+ appSidebarTitle: string;
69
+ appSidebarSubtitle: string;
70
+ navigation: CtmSnavItems[];
71
+ authorities: string[];
72
+ adminAuthority?: string;
73
+ context: any;
74
+ isDinamicSidebar: boolean;
75
+ sidebarDebounceTime: number;
76
+ accordionInCollections: boolean;
77
+ disableHiddenCollections: boolean;
78
+ hasFooter: boolean;
79
+ includeBreadcrumbs: boolean;
80
+ }
81
+
32
82
  export { DataStored, EntidadBasica, ItemStored };
83
+ export type { AdminLayoutConfig, CtmSnavDropdownLink, CtmSnavItemType, CtmSnavItems };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kato-lee/utilities",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "file-saver": "^2.0.5",
@@ -36,5 +36,8 @@
36
36
  "types": "./validators/index.d.ts",
37
37
  "default": "./fesm2022/kato-lee-utilities-validators.mjs"
38
38
  }
39
+ },
40
+ "dependencies": {
41
+ "tslib": "^2.3.0"
39
42
  }
40
43
  }