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.
Files changed (35) hide show
  1. package/README.md +71 -0
  2. package/components/Calendar/Calendar.vue.js +1 -1
  3. package/components/Calendar/Calendar.vue2.js +29 -29
  4. package/components/CategoryManager/CategoryManager.vue2.js +4 -4
  5. package/components/Chart/GanttChart.vue.d.ts +2 -0
  6. package/components/Chart/GanttChart.vue.js +2 -2
  7. package/components/Chart/GanttChart.vue2.js +591 -656
  8. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  9. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  10. package/components/Dropdown/DropdownMenu.vue.js +1 -1
  11. package/components/Form/{AccordionView.vue2.js → AccordionView.vue.js} +1 -1
  12. package/components/Form/index.vue2.js +1 -1
  13. package/components/QRCode/QRCode.vue.d.ts +1 -1
  14. package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
  15. package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
  16. package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
  17. package/components/ScaleGenerator/ScaleGenerator.vue.d.ts +1 -1
  18. package/components/Screen/ScreenFilter.vue.js +4 -4
  19. package/components/SidePanel.vue.js +2 -2
  20. package/components/SidePanel.vue2.js +18 -18
  21. package/core/CoreScale.d.ts +18 -0
  22. package/core/CoreScale.js +44 -0
  23. package/core/config.d.ts +38 -32
  24. package/core/config.js +23 -13
  25. package/core/index.d.ts +3 -2
  26. package/core/index.js +43 -32
  27. package/index.d.ts +1 -1
  28. package/index.js +270 -260
  29. package/package.json +1 -1
  30. package/style.css +44 -20
  31. package/types/config.type.d.ts +16 -0
  32. /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
  33. /package/components/Dropdown/{DropdownMenu.vue3.js → DropdownMenu.vue2.js} +0 -0
  34. /package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover.vue2.js} +0 -0
  35. /package/components/RichTextEditor/{RichTextToolbar.vue.js → RichTextToolbar.vue2.js} +0 -0
package/core/index.js CHANGED
@@ -1,59 +1,70 @@
1
- import { configState as t, VLITE_CONFIG_KEY as m } from "./config.js";
2
- import { updateConfig as p, useVLiteConfig as i } from "./config.js";
3
- function c(e = {}) {
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(o) {
6
- e && (e.services && (t.services = { ...t.services, ...e.services }), e.importData && (t.importData = { ...t.importData, ...e.importData }), e.exportData && (t.exportData = { ...t.exportData, ...e.exportData }), e.components && (t.components = {
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
- ...t.components?.form || {},
11
- ...e.components.form || {}
12
+ ...e.components?.form || {},
13
+ ...t.components.form || {}
12
14
  },
13
15
  price: {
14
- ...t.components?.price || {},
15
- ...e.components.price || {}
16
+ ...e.components?.price || {},
17
+ ...t.components.price || {}
16
18
  },
17
19
  datetime: {
18
- ...t.components?.datetime || {},
19
- ...e.components.datetime || {}
20
+ ...e.components?.datetime || {},
21
+ ...t.components.datetime || {}
20
22
  },
21
23
  googleMap: {
22
- ...t.components?.googleMap || {},
23
- ...e.components.googleMap || {}
24
+ ...e.components?.googleMap || {},
25
+ ...t.components.googleMap || {}
24
26
  },
25
27
  empty: {
26
- ...t.components?.empty || {},
27
- ...e.components.empty || {}
28
+ ...e.components?.empty || {},
29
+ ...t.components.empty || {}
28
30
  },
29
31
  statusChip: {
30
- ...t.components?.statusChip || {},
31
- ...e.components.statusChip || {},
32
+ ...e.components?.statusChip || {},
33
+ ...t.components.statusChip || {},
32
34
  customStatuses: {
33
- ...t.components?.statusChip?.customStatuses || {},
34
- ...e.components.statusChip?.customStatuses || {}
35
+ ...e.components?.statusChip?.customStatuses || {},
36
+ ...t.components.statusChip?.customStatuses || {}
35
37
  }
36
38
  },
37
39
  attachmentsList: {
38
- ...t.components?.attachmentsList || {},
39
- ...e.components.attachmentsList || {}
40
+ ...e.components?.attachmentsList || {},
41
+ ...t.components.attachmentsList || {}
40
42
  },
41
43
  list: {
42
- ...t.components?.list || {},
43
- ...e.components.list || {}
44
+ ...e.components?.list || {},
45
+ ...t.components.list || {}
44
46
  },
45
47
  invoice: {
46
- ...t.components?.invoice || {},
47
- ...e.components.invoice || {}
48
+ ...e.components?.invoice || {},
49
+ ...t.components.invoice || {}
48
50
  }
49
- })), o.provide(m, t), o.config.globalProperties.$vlite = t;
51
+ })), c.provide(o, e), c.config.globalProperties.$vlite = e;
50
52
  }
51
53
  };
52
54
  }
53
55
  export {
54
- m as VLITE_CONFIG_KEY,
55
- t as configState,
56
- c as createVLite,
57
- p as updateConfig,
58
- i as useVLiteConfig
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';