zek 17.3.84 → 17.3.88
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/lib/models/flatten-tree.mjs +2 -0
- package/esm2022/lib/models/nav.model.mjs +1 -1
- package/esm2022/lib/modules/bb/bb.component.mjs +2 -3
- package/esm2022/lib/modules/file-input/file-input.mjs +2 -3
- package/esm2022/lib/modules/google-login-button/google-login-button.mjs +2 -3
- package/esm2022/lib/modules/modal/modal/modal.component.mjs +10 -7
- package/esm2022/lib/modules/radio/radio.mjs +2 -3
- package/esm2022/lib/modules/select/select.mjs +2 -3
- package/esm2022/lib/modules/tag/tag.mjs +2 -3
- package/esm2022/lib/utils/array-helper.mjs +43 -41
- package/fesm2022/zek.mjs +58 -59
- package/fesm2022/zek.mjs.map +1 -1
- package/lib/models/flatten-tree.d.ts +6 -0
- package/lib/models/nav.model.d.ts +2 -6
- package/lib/modules/modal/modal/modal.component.d.ts +5 -1
- package/lib/utils/array-helper.d.ts +3 -4
- package/package.json +1 -1
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface INavItem {
|
|
2
2
|
id?: string | null;
|
|
3
|
-
name?: string | null;
|
|
4
|
-
icon?: string | null;
|
|
5
|
-
children: NavItem[];
|
|
6
|
-
}
|
|
7
|
-
export interface NavItem {
|
|
8
3
|
name?: string | null;
|
|
9
4
|
top?: boolean | null;
|
|
10
5
|
icon?: string | null;
|
|
@@ -16,4 +11,5 @@ export interface NavItem {
|
|
|
16
11
|
key: number;
|
|
17
12
|
} | null;
|
|
18
13
|
} | null;
|
|
14
|
+
children?: INavItem[] | null;
|
|
19
15
|
}
|
|
@@ -69,7 +69,11 @@ export declare class ZekModal extends CoreComponent {
|
|
|
69
69
|
onValidating: EventEmitter<ValidEventArgs>;
|
|
70
70
|
private _modal;
|
|
71
71
|
protected getModalElement(): HTMLElement | null;
|
|
72
|
-
|
|
72
|
+
/**
|
|
73
|
+
* Creates with method new bootstrap.Modal(modalId, { backdrop: 'static' });
|
|
74
|
+
* @returns boostrap modal
|
|
75
|
+
*/
|
|
76
|
+
protected createModal(): any;
|
|
73
77
|
cssButton(): string;
|
|
74
78
|
show(model?: any): void;
|
|
75
79
|
cancel(): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KeyPair, KeyPairEx, Tree } from "../models";
|
|
2
|
+
import { IFlattenTree } from "../models/flatten-tree";
|
|
2
3
|
export declare class ArrayHelper {
|
|
3
4
|
static insert(array: any[], index: number, item: any): void;
|
|
4
5
|
/**
|
|
@@ -18,10 +19,8 @@ export declare class ArrayHelper {
|
|
|
18
19
|
static isArray(value: any): boolean;
|
|
19
20
|
static distinct(array: any[]): any[];
|
|
20
21
|
static filterByKey(filterValue: any, key: string, array: any[]): any[];
|
|
21
|
-
static
|
|
22
|
-
|
|
23
|
-
static treeToKeyPairArray(array: Tree[]): KeyPair<any, any>[];
|
|
24
|
-
private static getIndentChildren;
|
|
22
|
+
static flatten(array: any, indent?: number): any[];
|
|
23
|
+
static flattenDropDownList(tree: Tree | Tree[], indent?: number): IFlattenTree<any, any>[];
|
|
25
24
|
private static enumToKeyPairBaseArray;
|
|
26
25
|
static enumToKeyPairArray(value: any): KeyPair<number, string>[];
|
|
27
26
|
static enumToKeyPairExArray(value: any): KeyPairEx<number, string>[];
|