@kato-lee/utilities 2.0.0 → 2.0.2

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/js/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from './_clone-deep';
2
- export * from './_order-by';
1
+ export * from './_clone-deep';
2
+ export * from './_order-by';
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.2",
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
  }
package/types/index.d.ts CHANGED
@@ -13,10 +13,14 @@ interface CtmTypeRes<T = number> {
13
13
  abbreviation?: string;
14
14
  }
15
15
 
16
+ /** @deprecated */
16
17
  type GcmContextCode = 'ALTACENTRO' | 'AGUACHICA' | 'VALLEDUPAR' | 'SANJUAN' | 'AMMEDICAL';
18
+ /** @deprecated */
17
19
  declare class GcmContextType extends CtmType<GcmContextCode> {
18
20
  }
21
+ /** @deprecated */
19
22
  declare const gcmContextTypeFactory: (context: GcmContextCode) => GcmContextType;
23
+ /** @deprecated */
20
24
  declare const GCM_CONTEXTS: {
21
25
  ALTACENTRO: GcmContextType;
22
26
  AGUACHICA: GcmContextType;
@@ -24,12 +28,16 @@ declare const GCM_CONTEXTS: {
24
28
  SANJUAN: GcmContextType;
25
29
  AMMEDICAL: GcmContextType;
26
30
  };
31
+ /** @deprecated */
27
32
  declare const GCM_CONTEXTS_VALUES: GcmContextType[];
33
+ /** @deprecated */
28
34
  interface AllCtxExceptI {
29
35
  types: GcmContextType[];
30
36
  codes: GcmContextCode[];
31
37
  }
38
+ /** @deprecated */
32
39
  declare function allContexts(excluded?: GcmContextType[]): AllCtxExceptI;
40
+ /** @deprecated */
33
41
  declare function allContextsCodes(excluded?: GcmContextType[]): GcmContextCode[];
34
42
 
35
43
  export { CtmType, GCM_CONTEXTS, GCM_CONTEXTS_VALUES, GcmContextType, allContexts, allContextsCodes, gcmContextTypeFactory };
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/kato-lee-utilities-models.mjs"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/kato-lee-utilities-pipes.mjs"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/kato-lee-utilities-services.mjs"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/kato-lee-utilities-types.mjs"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/kato-lee-utilities-validators.mjs"
3
- }