vlite3 1.5.2 → 1.5.5
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 +71 -0
- package/components/Calendar/Calendar.vue.js +1 -1
- package/components/Calendar/Calendar.vue2.js +29 -29
- package/components/CategoryManager/CategoryManager.vue2.js +4 -4
- package/components/Chart/GanttChart.vue.d.ts +2 -0
- package/components/Chart/GanttChart.vue.js +2 -2
- package/components/Chart/GanttChart.vue2.js +591 -656
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Form/{AccordionView.vue2.js → AccordionView.vue.js} +1 -1
- package/components/Form/index.vue2.js +1 -1
- package/components/QRCode/QRCode.vue.d.ts +1 -1
- package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
- package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
- package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
- package/components/ScaleGenerator/ScaleGenerator.vue.d.ts +1 -1
- package/components/Screen/ScreenFilter.vue.js +4 -4
- package/components/SidePanel.vue.js +2 -2
- package/components/SidePanel.vue2.js +18 -18
- package/core/CoreScale.d.ts +18 -0
- package/core/CoreScale.js +44 -0
- package/core/config.d.ts +38 -32
- package/core/config.js +23 -13
- package/core/index.d.ts +3 -2
- package/core/index.js +43 -32
- package/index.d.ts +1 -1
- package/index.js +270 -260
- package/package.json +1 -1
- package/style.css +44 -20
- package/types/config.type.d.ts +16 -0
- /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
- /package/components/Dropdown/{DropdownMenu.vue3.js → DropdownMenu.vue2.js} +0 -0
- /package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover.vue2.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar.vue.js → RichTextToolbar.vue2.js} +0 -0
package/core/index.js
CHANGED
|
@@ -1,59 +1,70 @@
|
|
|
1
|
-
import { configState as
|
|
2
|
-
import { updateConfig as
|
|
3
|
-
|
|
1
|
+
import { configState as e, VLITE_CONFIG_KEY as o } from "./config.js";
|
|
2
|
+
import { setVLiteScale as r, updateConfig as l, useVLiteConfig as L } from "./config.js";
|
|
3
|
+
import { initializeVLiteScale as a } from "./CoreScale.js";
|
|
4
|
+
import { DEFAULT_VLITE_SCALE as u, VLITE_SCALE_ATTRIBUTE as S, VLITE_SCALE_STORAGE_KEY as g, applyVLiteScale as E, getStoredVLiteScale as V, isVLiteScale as C, resolveVLiteScale as v } from "./CoreScale.js";
|
|
5
|
+
function n(t = {}) {
|
|
4
6
|
return {
|
|
5
|
-
install(
|
|
6
|
-
e && (
|
|
7
|
-
...t.components,
|
|
7
|
+
install(c) {
|
|
8
|
+
e.scale = a(t.scale), t && (t.services && (e.services = { ...e.services, ...t.services }), t.importData && (e.importData = { ...e.importData, ...t.importData }), t.exportData && (e.exportData = { ...e.exportData, ...t.exportData }), t.components && (e.components = {
|
|
8
9
|
...e.components,
|
|
10
|
+
...t.components,
|
|
9
11
|
form: {
|
|
10
|
-
...
|
|
11
|
-
...
|
|
12
|
+
...e.components?.form || {},
|
|
13
|
+
...t.components.form || {}
|
|
12
14
|
},
|
|
13
15
|
price: {
|
|
14
|
-
...
|
|
15
|
-
...
|
|
16
|
+
...e.components?.price || {},
|
|
17
|
+
...t.components.price || {}
|
|
16
18
|
},
|
|
17
19
|
datetime: {
|
|
18
|
-
...
|
|
19
|
-
...
|
|
20
|
+
...e.components?.datetime || {},
|
|
21
|
+
...t.components.datetime || {}
|
|
20
22
|
},
|
|
21
23
|
googleMap: {
|
|
22
|
-
...
|
|
23
|
-
...
|
|
24
|
+
...e.components?.googleMap || {},
|
|
25
|
+
...t.components.googleMap || {}
|
|
24
26
|
},
|
|
25
27
|
empty: {
|
|
26
|
-
...
|
|
27
|
-
...
|
|
28
|
+
...e.components?.empty || {},
|
|
29
|
+
...t.components.empty || {}
|
|
28
30
|
},
|
|
29
31
|
statusChip: {
|
|
30
|
-
...
|
|
31
|
-
...
|
|
32
|
+
...e.components?.statusChip || {},
|
|
33
|
+
...t.components.statusChip || {},
|
|
32
34
|
customStatuses: {
|
|
33
|
-
...
|
|
34
|
-
...
|
|
35
|
+
...e.components?.statusChip?.customStatuses || {},
|
|
36
|
+
...t.components.statusChip?.customStatuses || {}
|
|
35
37
|
}
|
|
36
38
|
},
|
|
37
39
|
attachmentsList: {
|
|
38
|
-
...
|
|
39
|
-
...
|
|
40
|
+
...e.components?.attachmentsList || {},
|
|
41
|
+
...t.components.attachmentsList || {}
|
|
40
42
|
},
|
|
41
43
|
list: {
|
|
42
|
-
...
|
|
43
|
-
...
|
|
44
|
+
...e.components?.list || {},
|
|
45
|
+
...t.components.list || {}
|
|
44
46
|
},
|
|
45
47
|
invoice: {
|
|
46
|
-
...
|
|
47
|
-
...
|
|
48
|
+
...e.components?.invoice || {},
|
|
49
|
+
...t.components.invoice || {}
|
|
48
50
|
}
|
|
49
|
-
})),
|
|
51
|
+
})), c.provide(o, e), c.config.globalProperties.$vlite = e;
|
|
50
52
|
}
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
55
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
u as DEFAULT_VLITE_SCALE,
|
|
57
|
+
o as VLITE_CONFIG_KEY,
|
|
58
|
+
S as VLITE_SCALE_ATTRIBUTE,
|
|
59
|
+
g as VLITE_SCALE_STORAGE_KEY,
|
|
60
|
+
E as applyVLiteScale,
|
|
61
|
+
e as configState,
|
|
62
|
+
n as createVLite,
|
|
63
|
+
V as getStoredVLiteScale,
|
|
64
|
+
a as initializeVLiteScale,
|
|
65
|
+
C as isVLiteScale,
|
|
66
|
+
v as resolveVLiteScale,
|
|
67
|
+
r as setVLiteScale,
|
|
68
|
+
l as updateConfig,
|
|
69
|
+
L as useVLiteConfig
|
|
59
70
|
};
|
package/index.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ export { default as CommandPaletteContent } from './components/CommandPalette/Co
|
|
|
104
104
|
export { default as NavbarCommandPalette } from './components/NavbarCommandPalette.vue';
|
|
105
105
|
export { default as DateRangePicker } from './components/DateRangePicker.vue';
|
|
106
106
|
export { $t } from './utils/i18n';
|
|
107
|
-
export { createVLite, useVLiteConfig } from './core';
|
|
107
|
+
export { applyVLiteScale, createVLite, DEFAULT_VLITE_SCALE, getStoredVLiteScale, initializeVLiteScale, isVLiteScale, resolveVLiteScale, setVLiteScale, useVLiteConfig, VLITE_SCALE_ATTRIBUTE, VLITE_SCALE_STORAGE_KEY, } from './core';
|
|
108
108
|
export { GoogleSignInPlugin };
|
|
109
109
|
export * from './components/StatusChip';
|
|
110
110
|
export * from './components/Price';
|