@ldmjs/ui 1.0.19 → 1.0.20

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 CHANGED
@@ -16,33 +16,33 @@ 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
46
 
47
47
  declare module '@vue/runtime-core' {
48
48
  export interface ComponentCustomProperties {
@@ -60,14 +60,10 @@ declare module '@vue/runtime-core' {
60
60
  $toasted: IToasted;
61
61
  }
62
62
  }
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 const datetime: {
67
- dateLocalToISO: (value: string) => string;
68
- toServerString: (value: Date) => string;
69
- }
70
- declare class ValidateMixin extends Vue {
63
+ export declare const defaults: Record<string, unknown>;
64
+ export declare function getAliases(components: Record<string, unknown>): Record<string, unknown>;
65
+ export declare const urlRegexp: RegExp;
66
+ export declare class ValidateMixin extends Vue {
71
67
  inputs: Array<IInput>;
72
68
  watchers: Array<IWatcher>;
73
69
  errorBag: Record<number, boolean>;
@@ -80,14 +76,15 @@ declare class ValidateMixin extends Vue {
80
76
  validateSection: (section: number | string) => boolean;
81
77
  customValidateFunc: () => string | boolean;
82
78
  }
83
- declare const ValidateMixinOptions: Record<string, any>;
84
- declare const ldmui: {
85
- install(vue: any, options?: ldmuiOptions): void;
86
- }
87
- declare class DialogManager {
79
+ export declare const ValidateMixinOptions: Record<string, any>;
80
+
81
+ export declare class DialogManager {
88
82
  static exec<T>(modal: Dialog, fetchData?: () => Promise<any>): Promise<T>;
89
83
  }
90
84
 
85
+ declare const ldmui: {
86
+ install(vue: any, options?: ldmuiOptions): void;
87
+ }
91
88
  export default ldmui;
92
89
  export {
93
90
  AlertDialog,
@@ -102,18 +99,6 @@ export {
102
99
  ModalType
103
100
  } from './ld-dialog/dialog.manager';
104
101
  export {
105
- ValidateMixin,
106
- ValidateMixinOptions,
107
- awaiting,
108
- datetime,
109
- deepValueGetter,
110
- defaults,
111
- delay,
112
- getAliases,
113
- isDefined,
114
- isObjectEmpty,
115
- uidGen,
116
- urlRegexp,
117
- DialogManager
118
- };
119
-
102
+ IIteratorRemovedItem,
103
+ IIteratorSortField
104
+ } from './types/iterator';