@ldmjs/ui 1.0.13 → 1.0.15
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 +3 -1
- package/dist/calendar.js +1 -1
- package/dist/css/index.css +3 -3
- package/dist/index.d.ts +41 -14
- package/dist/index.js +1875 -216
- package/dist/scss/_dialogs.scss +207 -0
- package/dist/scss/_variables.scss +4 -0
- package/dist/scss/index.scss +1 -0
- package/dist/types/dialogs.d.ts +259 -0
- package/dist/types/options.d.ts +1 -0
- package/package.json +2 -2
package/dist/css/index.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
.label[data-v-12071c41]{word-wrap:break-word;max-width:100%;padding-bottom:2px;color:var(--label) !important;font-size:var(--font-size)}.label-wrapper[data-v-12071c41]{display:flex;align-items:center;min-height:var(--input-height)}.require[data-v-12071c41]::after{content:'*';display:inline-block;color:var(--error)}
|
|
6
6
|
|
|
7
|
-
.ld-edit-text[data-v-
|
|
7
|
+
.ld-edit-text[data-v-3a89856c]{min-width:100%}.input-class[data-v-3a89856c]{height:var(--input-height);font-size:var(--font-size);max-width:100%;border-radius:var(--border-radius);border:1px solid var(--grey-l-5);padding:0 6px}.input-class[data-v-3a89856c]:not(.disabled){background-color:var(--white)}.input-class[data-v-3a89856c]:focus{border:1px solid var(--grey-l-4);outline:none}.input-class__suffix[data-v-3a89856c]{position:absolute;top:3px;right:6px;color:var(--label)}
|
|
8
8
|
|
|
9
9
|
.ld-datepicker[data-v-98da67e2]{display:flex;min-width:100%;max-width:100%;width:100%;font-size:var(--font-size)}.ld-datepicker.column[data-v-98da67e2]{flex-flow:column nowrap}.ld-datepicker-validate[data-v-98da67e2]{overflow:hidden;height:20px}.custom-time-picker[data-v-98da67e2]{max-width:var(--date-time-width);border-radius:var(--border-radius);background-color:var(--white);font-size:inherit !important}.custom-time-picker-validate[data-v-98da67e2]{overflow:hidden;height:20px}.date-input[data-v-98da67e2]{padding-left:5px;width:100%;font-size:var(--font-size)}.time-input[data-v-98da67e2]{width:100%;padding-left:5px;font-size:var(--font-size)}.time-input-btn[data-v-98da67e2]{padding-right:5px}.dt-col[data-v-98da67e2]{max-width:110px}.time-selector[data-v-98da67e2]{display:flex;flex-wrap:wrap;max-width:186px;padding:3px}.time-selector>span[data-v-98da67e2]{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-98da67e2]{width:30px !important;height:30px !important;max-width:30px !important;max-height:30px !important;min-width:30px !important;min-height:30px !important;margin:3px}[data-v-98da67e2] .vc-popover-content-wrapper{position:fixed !important}[data-v-98da67e2] .v-input--is-disabled input{color:var(--text) !important}[data-v-98da67e2] .vc-popover-content{border-color:var(--grey-l-5)}[data-v-98da67e2] .vc-title span{color:var(--text);font-size:var(--font-size-2);font-weight:600;font-family:'Roboto'}[data-v-98da67e2] .vc-arrow{color:var(--grey)}[data-v-98da67e2] .vc-weekday{color:var(--grey-l-2);font-size:var(--font-size);font-weight:600;font-family:'Roboto'}[data-v-98da67e2] .vc-day-content{color:var(--text);font-size:var(--font-size);font-weight:400;font-family:'Roboto'}[data-v-98da67e2] .vc-day-content.vc-disabled{color:var(--grey-l-2) !important}[data-v-98da67e2] .vc-day-content.vc-highlight-content-solid{color:var(--white) !important;font-weight:600 !important}
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
.ld-select-list-box[data-v-4ccf12f8]{display:flex;min-width:100%;max-width:100%;width:100%}.ld-select-list-box .select-list-box-validate[data-v-4ccf12f8]{overflow:hidden;height:20px}.ld-select-list-box .select-list-box-loading[data-v-4ccf12f8]{position:absolute;left:0;bottom:0;width:calc(100% - var(--input-height));height:3px;overflow:hidden;background-color:var(--grey-l-5)}.ld-select-list-box .select-list-box-loading[data-v-4ccf12f8]:before{content:'';display:block;position:absolute;top:0;left:0;width:25%;height:100%;background-color:var(--primary);animation:loading-4ccf12f8 1.4s linear;animation-iteration-count:infinite}@keyframes loading-4ccf12f8{from{transform:translateX(-300%)}to{transform:translateX(500%)}}
|
|
16
16
|
|
|
17
|
-
.ld-checkbox{display:flex;align-items:center;height:var(--input-height);font-size:var(--font-size);cursor:pointer}.ld-checkbox input[type='checkbox']+.v-icon{display:
|
|
17
|
+
.ld-checkbox{display:flex;align-items:center;position:relative;height:var(--input-height);font-size:var(--font-size);cursor:pointer}.ld-checkbox input[type='checkbox']{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.ld-checkbox input[type='checkbox']+.v-icon{display:flex;align-items:center;width:14px !important;height:15px !important;font-size:11px !important;background-color:var(--white);color:transparent;border:1px solid var(--grey-l-5)}.ld-checkbox input[type='checkbox']:focus+.v-icon{background-color:var(--grey-l-6)}.ld-checkbox input[type='checkbox']:checked+.v-icon{background-color:var(--primary-l-2);color:var(--white);font-size:10px;font-weight:bold}.ld-checkbox input[type='checkbox']:checked:focus+.v-icon{background-color:var(--primary-l-3)}.ld-checkbox input[type='checkbox']:disabled+.v-icon{background-color:var(--grey-l-3)}.checkbox-label{word-wrap:break-word;max-width:100%}.checkbox-label--disabled{color:var(--grey-l-3) !important}
|
|
18
18
|
|
|
19
19
|
.ld-radiobutton[data-v-2d8a7abd]{display:flex;align-items:center;font-size:var(--font-size)}
|
|
20
20
|
|
|
@@ -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-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
56
|
-
|
|
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
|
|