@ldmjs/ui 1.0.13 → 1.0.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/README.md CHANGED
@@ -86,7 +86,7 @@ const vuetify = createVuetify({
86
86
  # Library
87
87
 
88
88
  - ld-icon
89
- - loader
89
+ - ld-loader
90
90
  - ld-btn
91
91
  - ld-splitter
92
92
  - ld-toggle-buttons
@@ -105,9 +105,11 @@ const vuetify = createVuetify({
105
105
  - ld-edit-masked-text
106
106
  - ld-text-markup
107
107
  - ld-switch
108
+ - ld-dialog
108
109
 
109
110
  # Utilities
110
111
 
112
+ - awaiting
111
113
  - isDefined
112
114
  - uidGen
113
115
  - delay
@@ -24,7 +24,7 @@
24
24
 
25
25
  .ld-select[data-v-eee64366]{position:relative;min-width:100%}.ld-select[data-v-eee64366] .v-field__append-inner{display:none}.ld-select[data-v-eee64366] .v-select:before{display:block;position:absolute;right:20px;top:calc(var(--input-height) / 2);margin-top:-2px;color:var(--grey);border-style:solid;border-width:5px 5px 0;border-color:var(--grey) transparent transparent;transition:transform 0.2s ease;content:'';z-index:1}.ld-select[data-v-eee64366] .v-select--active-menu:before{transform:rotate(180deg)}input[type='checkbox']+.v-icon[data-v-eee64366]{display:block;width:12px !important;height:12px !important;font-size:10px !important;background-color:var(--white);color:transparent;border:1px solid var(--grey-l-5)}input[type='checkbox']:checked+.v-icon[data-v-eee64366]{background-color:var(--primary-l-2);color:var(--white);font-size:10px;font-weight:bold}.v-list-item--density-compact.v-list-item--one-line[data-v-eee64366]{min-height:var(--input-height)}.v-list-item--density-compact.v-list-item--one-line[data-v-eee64366] .v-list-item__content{display:flex;flex-wrap:nowrap}.v-list-item--density-compact.v-list-item--one-line[data-v-eee64366] .v-list-item__content .v-list-item-title{font-size:var(--font-size)}
26
26
 
27
- .ld-combobox[data-v-70de7eb0]{display:flex;min-width:100%;max-width:100%;width:100%}.ld-combobox .combobox-validate[data-v-70de7eb0]{overflow:hidden;height:20px}.ld-combobox .combobox-loading[data-v-70de7eb0]{position:absolute;left:0;bottom:0;width:calc(100% - var(--input-height));height:3px;overflow:hidden;background-color:var(--grey-l-5)}.ld-combobox .combobox-loading[data-v-70de7eb0]:before{content:'';display:block;position:absolute;top:0;left:0;width:25%;height:100%;background-color:var(--primary);animation:loading-70de7eb0 1.4s linear;animation-iteration-count:infinite}@keyframes loading-70de7eb0{from{transform:translateX(-300%)}to{transform:translateX(500%)}}
27
+ .ld-combobox[data-v-31853b17]{display:flex;min-width:100%;max-width:100%;width:100%}.ld-combobox .combobox-validate[data-v-31853b17]{overflow:hidden;height:20px}.ld-combobox .combobox-loading[data-v-31853b17]{position:absolute;left:0;bottom:0;width:calc(100% - var(--input-height));height:3px;overflow:hidden;background-color:var(--grey-l-5)}.ld-combobox .combobox-loading[data-v-31853b17]:before{content:'';display:block;position:absolute;top:0;left:0;width:25%;height:100%;background-color:var(--primary);animation:loading-31853b17 1.4s linear;animation-iteration-count:infinite}@keyframes loading-31853b17{from{transform:translateX(-300%)}to{transform:translateX(500%)}}
28
28
 
29
29
  .time-selector[data-v-468c023f]{display:flex;flex-wrap:wrap;max-width:186px;padding:3px}.time-selector>span[data-v-468c023f]{display:inline-block;width:100%;text-align:center;font-family:'Roboto';font-size:var(--font-size-2);font-weight:700}.time-selector .v-btn[data-v-468c023f]{width:30px !important;height:30px !important;max-width:30px !important;max-height:30px !important;min-width:30px !important;min-height:30px !important;margin:3px}.ld-timepicker-validate[data-v-468c023f]{overflow:hidden;height:20px}
30
30
 
package/dist/index.d.ts CHANGED
@@ -2,15 +2,23 @@ import { Vue } from 'vue-class-component';
2
2
  import { ldmuiOptions } from './types/options';
3
3
  import { IToasted } from './types/toasted';
4
4
  import { IInput, IWatcher } from './types/validation';
5
+ import { Dialog } from './types/dialogs';
5
6
 
7
+ declare function awaiting(callback: () => unknown): Promise<any>;
8
+ declare function isDefined(value: unknown): boolean;
9
+ declare function uidGen(len?: number, format?: string): string | number;
10
+ declare function delay(timeout: number): Promise<void>;
11
+ declare function deepValueGetter(obj: Record<string, unknown>, path: string): unknown;
12
+ declare function isObjectEmpty(obj: Record<string, unknown>): boolean;
6
13
  declare module '@vue/runtime-core' {
7
14
  export interface ComponentCustomProperties {
8
15
  $utils: {
9
- isDefined: (value: any) => boolean;
10
- uidGen: (len?: number, format?: string) => string | number;
11
- delay: (timeout: number) => Promise<void>;
12
- deepValueGetter(obj: Record<string, unknown>, path: string): unknown;
13
- isObjectEmpty(obj: Record<string, unknown>): boolean;
16
+ awaiting: typeof awaiting;
17
+ isDefined: typeof isDefined;
18
+ uidGen: typeof uidGen;
19
+ delay: typeof delay;
20
+ deepValueGetter: typeof deepValueGetter;
21
+ isObjectEmpty: typeof isObjectEmpty;
14
22
  };
15
23
  $ldmui: {
16
24
  options: ldmuiOptions;
@@ -18,14 +26,8 @@ declare module '@vue/runtime-core' {
18
26
  $toasted: IToasted;
19
27
  }
20
28
  }
21
-
22
29
  declare const defaults: Record<string, unknown>;
23
30
  declare function getAliases(components: Record<string, unknown>): Record<string, unknown>;
24
- declare function isDefined(value: unknown): boolean;
25
- declare function uidGen(len?: number, format?: string): string | number;
26
- declare function delay(timeout: number): Promise<void>;
27
- declare function deepValueGetter(obj: Record<string, unknown>, path: string): unknown;
28
- declare function isObjectEmpty(obj: Record<string, unknown>): boolean;
29
31
  declare const urlRegexp: RegExp;
30
32
  declare const datetime: {
31
33
  dateLocalToISO: (value: string) => string;
@@ -48,11 +50,36 @@ declare const ValidateMixinOptions: Record<string, any>;
48
50
  declare const ldmui: {
49
51
  install(vue: any, options?: ldmuiOptions): void;
50
52
  }
53
+ declare class DialogManager {
54
+ static exec<T>(modal: Dialog, fetchData?: () => Promise<any>): Promise<T>;
55
+ }
51
56
 
52
57
  export default ldmui;
53
-
54
58
  export {
55
- ValidateMixin, ValidateMixinOptions, datetime, deepValueGetter, defaults, delay, getAliases,
56
- isDefined, isObjectEmpty, uidGen, urlRegexp
59
+ AlertDialog,
60
+ ConfirmDialog,
61
+ PromptDialog,
62
+ InfoDialog,
63
+ SelectDialog,
64
+ CreateEditDialog,
65
+ } from './types/dialogs';
66
+ export {
67
+ ModalButton,
68
+ ModalType
69
+ } from './ld-dialog/dialog.manager';
70
+ export {
71
+ ValidateMixin,
72
+ ValidateMixinOptions,
73
+ awaiting,
74
+ datetime,
75
+ deepValueGetter,
76
+ defaults,
77
+ delay,
78
+ getAliases,
79
+ isDefined,
80
+ isObjectEmpty,
81
+ uidGen,
82
+ urlRegexp,
83
+ DialogManager
57
84
  };
58
85