@dotglitch/ngx-common 1.1.12 → 1.1.14
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/esm2022/components/menu/menu.component.mjs +10 -3
- package/esm2022/types/menu.mjs +1 -1
- package/esm2022/utils/index.mjs +7 -2
- package/fesm2022/dotglitch-ngx-common.mjs +14 -2
- package/fesm2022/dotglitch-ngx-common.mjs.map +1 -1
- package/package.json +1 -1
- package/types/menu.d.ts +7 -0
- package/utils/index.d.ts +6 -1
package/package.json
CHANGED
package/types/menu.d.ts
CHANGED
|
@@ -61,6 +61,13 @@ export type BaseMenuItem<T = any, Q = object | number | string | boolean | bigin
|
|
|
61
61
|
* Or can be a material icon identifier.
|
|
62
62
|
*/
|
|
63
63
|
icon?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Callback to choose the icon used for an item.
|
|
66
|
+
* Executed upon opening the menu.
|
|
67
|
+
*
|
|
68
|
+
* See `icon` for details.
|
|
69
|
+
*/
|
|
70
|
+
iconTemplate?: ((data: T, context: Q) => string);
|
|
64
71
|
/**
|
|
65
72
|
* CSS color string to apply on the mat icon
|
|
66
73
|
*/
|
package/utils/index.d.ts
CHANGED
|
@@ -3,12 +3,16 @@ export declare const sleep: (ms: any) => Promise<unknown>;
|
|
|
3
3
|
* Prompt the user to save a json file of the given object.
|
|
4
4
|
*/
|
|
5
5
|
export declare const saveObjectAsFile: (name: string, data: Object) => void;
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Construct an emoticon with any unicode icon you specify
|
|
8
|
+
*/
|
|
9
|
+
export declare class Emoticon {
|
|
7
10
|
icon: string;
|
|
8
11
|
constructor(icon: string);
|
|
9
12
|
}
|
|
10
13
|
/**
|
|
11
14
|
* authorization 🔐 \
|
|
15
|
+
* navigation 🧭 \
|
|
12
16
|
* user 🪪 \
|
|
13
17
|
* security 🛡 \
|
|
14
18
|
* system 🖥 \
|
|
@@ -48,6 +52,7 @@ declare class Emoticon {
|
|
|
48
52
|
*/
|
|
49
53
|
export declare const LogIcon: {
|
|
50
54
|
authorization: Emoticon;
|
|
55
|
+
navigation: Emoticon;
|
|
51
56
|
user: Emoticon;
|
|
52
57
|
security: Emoticon;
|
|
53
58
|
system: Emoticon;
|