@ldmjs/ui 1.0.19 → 1.0.21
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/dist/index.d.ts +31 -34
- package/dist/index.js +2084 -221
- package/dist/scss/_iterator.scss +89 -0
- package/dist/scss/_pager.scss +20 -0
- package/dist/scss/_variables.scss +2 -0
- package/dist/scss/index.scss +2 -0
- package/dist/types/iterator.d.ts +11 -0
- package/dist/types/options.d.ts +5 -0
- package/dist/types/pager.d.ts +10 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -16,33 +16,41 @@ import { Dialog } from './types/dialogs';
|
|
|
16
16
|
* console.log(a) // 1;
|
|
17
17
|
* }
|
|
18
18
|
*/
|
|
19
|
-
declare function awaiting(callback: () => unknown): Promise<any>;
|
|
19
|
+
export declare function awaiting(callback: () => unknown): Promise<any>;
|
|
20
20
|
/**
|
|
21
21
|
* a = null (undefined, '', NaN) => isDefined(a) // false
|
|
22
22
|
*/
|
|
23
|
-
declare function isDefined(value: unknown): boolean;
|
|
23
|
+
export declare function isDefined(value: unknown): boolean;
|
|
24
24
|
/**
|
|
25
25
|
* generate an unique id by a format: 'a-z', 'A-Z', '0-9', 'a-zA-Z', 'a-z0-9', all)
|
|
26
26
|
*/
|
|
27
|
-
declare function uidGen(len?: number, format?: string): string | number;
|
|
27
|
+
export declare function uidGen(len?: number, format?: string): string | number;
|
|
28
28
|
/**
|
|
29
29
|
* async function() {
|
|
30
30
|
* await delay(1000);
|
|
31
31
|
* }
|
|
32
32
|
*/
|
|
33
|
-
declare function delay(timeout: number): Promise<void>;
|
|
33
|
+
export declare function delay(timeout: number): Promise<void>;
|
|
34
34
|
/**
|
|
35
35
|
* returns a deep object given a string
|
|
36
36
|
* use:
|
|
37
37
|
* Record.Key1.Key2.Key3 = Value;
|
|
38
38
|
* const value = deepValueGetter(Record, 'Key1.Key2.Key3');
|
|
39
39
|
*/
|
|
40
|
-
declare function deepValueGetter(obj: Record<string, unknown>, path: string): unknown;
|
|
40
|
+
export declare function deepValueGetter(obj: Record<string, unknown>, path: string): unknown;
|
|
41
41
|
/**
|
|
42
42
|
* const obj = {};
|
|
43
43
|
* isObjectEmpty(obj) // true
|
|
44
44
|
*/
|
|
45
|
-
declare function isObjectEmpty(obj: Record<string, unknown>): boolean;
|
|
45
|
+
export declare function isObjectEmpty(obj: Record<string, unknown>): boolean;
|
|
46
|
+
|
|
47
|
+
export declare function pluralizeNoun(
|
|
48
|
+
num: string | number,
|
|
49
|
+
one: string,
|
|
50
|
+
two: string,
|
|
51
|
+
five: string,
|
|
52
|
+
printNum: boolean
|
|
53
|
+
): string;
|
|
46
54
|
|
|
47
55
|
declare module '@vue/runtime-core' {
|
|
48
56
|
export interface ComponentCustomProperties {
|
|
@@ -53,6 +61,7 @@ declare module '@vue/runtime-core' {
|
|
|
53
61
|
delay: typeof delay;
|
|
54
62
|
deepValueGetter: typeof deepValueGetter;
|
|
55
63
|
isObjectEmpty: typeof isObjectEmpty;
|
|
64
|
+
pluralizeNoun: typeof pluralizeNoun;
|
|
56
65
|
};
|
|
57
66
|
$ldmui: {
|
|
58
67
|
options: ldmuiOptions;
|
|
@@ -60,14 +69,10 @@ declare module '@vue/runtime-core' {
|
|
|
60
69
|
$toasted: IToasted;
|
|
61
70
|
}
|
|
62
71
|
}
|
|
63
|
-
declare const defaults: Record<string, unknown>;
|
|
64
|
-
declare function getAliases(components: Record<string, unknown>): Record<string, unknown>;
|
|
65
|
-
declare const urlRegexp: RegExp;
|
|
66
|
-
declare
|
|
67
|
-
dateLocalToISO: (value: string) => string;
|
|
68
|
-
toServerString: (value: Date) => string;
|
|
69
|
-
}
|
|
70
|
-
declare class ValidateMixin extends Vue {
|
|
72
|
+
export declare const defaults: Record<string, unknown>;
|
|
73
|
+
export declare function getAliases(components: Record<string, unknown>): Record<string, unknown>;
|
|
74
|
+
export declare const urlRegexp: RegExp;
|
|
75
|
+
export declare class ValidateMixin extends Vue {
|
|
71
76
|
inputs: Array<IInput>;
|
|
72
77
|
watchers: Array<IWatcher>;
|
|
73
78
|
errorBag: Record<number, boolean>;
|
|
@@ -80,14 +85,15 @@ declare class ValidateMixin extends Vue {
|
|
|
80
85
|
validateSection: (section: number | string) => boolean;
|
|
81
86
|
customValidateFunc: () => string | boolean;
|
|
82
87
|
}
|
|
83
|
-
declare const ValidateMixinOptions: Record<string, any>;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
declare class DialogManager {
|
|
88
|
+
export declare const ValidateMixinOptions: Record<string, any>;
|
|
89
|
+
|
|
90
|
+
export declare class DialogManager {
|
|
88
91
|
static exec<T>(modal: Dialog, fetchData?: () => Promise<any>): Promise<T>;
|
|
89
92
|
}
|
|
90
93
|
|
|
94
|
+
declare const ldmui: {
|
|
95
|
+
install(vue: any, options?: ldmuiOptions): void;
|
|
96
|
+
}
|
|
91
97
|
export default ldmui;
|
|
92
98
|
export {
|
|
93
99
|
AlertDialog,
|
|
@@ -102,18 +108,9 @@ export {
|
|
|
102
108
|
ModalType
|
|
103
109
|
} from './ld-dialog/dialog.manager';
|
|
104
110
|
export {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
delay,
|
|
112
|
-
getAliases,
|
|
113
|
-
isDefined,
|
|
114
|
-
isObjectEmpty,
|
|
115
|
-
uidGen,
|
|
116
|
-
urlRegexp,
|
|
117
|
-
DialogManager
|
|
118
|
-
};
|
|
119
|
-
|
|
111
|
+
IIteratorRemovedItem,
|
|
112
|
+
IIteratorSortField
|
|
113
|
+
} from './types/iterator';
|
|
114
|
+
export {
|
|
115
|
+
IPagerOptions
|
|
116
|
+
} from './types/pager';
|