vlite3 0.5.6 → 0.5.7
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/components/Button.vue.js +1 -1
- package/components/Dropdown/Dropdown.vue.d.ts +16 -12
- package/components/Dropdown/Dropdown.vue.js +127 -114
- package/components/Dropdown/DropdownItem.vue.js +2 -1
- package/components/Dropdown/DropdownMenu.vue.d.ts +3 -3
- package/components/Dropdown/DropdownMenu.vue.js +107 -99
- package/components/Dropdown/composables/useDropdownSelection.d.ts +1 -1
- package/components/Dropdown/composables/useDropdownSelection.js +28 -28
- package/components/NavbarCommandPalette.vue.d.ts +1 -0
- package/components/NavbarCommandPalette.vue.js +21 -20
- package/composables/useTheme.d.ts +1 -0
- package/composables/useTheme.js +20 -12
- package/index.js +118 -117
- package/package.json +1 -1
- package/types/styles.d.ts +11 -0
package/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { default as f } from "vue3-google-signin";
|
|
2
2
|
import { deepMerge as l } from "./utils/object.js";
|
|
3
|
-
import { camelCase as s, capitalize as d, copyToClipboard as u, debounce as x, delay as i, downloadFile as n, flattenArray as c, formatCurrency as
|
|
4
|
-
import { lazySearch as
|
|
3
|
+
import { camelCase as s, capitalize as d, copyToClipboard as u, debounce as x, delay as i, downloadFile as n, flattenArray as c, formatCurrency as T, getUniqueId as b, isAppleDevice as g, isEmpty as S, randomNumber as P, removeExtraProperties as C, slugify as I, throttle as D, truncate as v } from "./utils/functions.js";
|
|
4
|
+
import { lazySearch as h, resetSearchIndex as N, search as A } from "./utils/search.util.js";
|
|
5
5
|
import { env as w } from "./utils/env.js";
|
|
6
6
|
import { $t as k } from "./utils/i18n.js";
|
|
7
7
|
import { default as L } from "./components/Chip/Chip.vue.js";
|
|
8
8
|
import { default as E } from "./components/Form/Form.vue.js";
|
|
9
9
|
import { default as G } from "./components/Form/FormField.vue.js";
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
10
|
+
import { default as z } from "./components/Form/FormFields.vue.js";
|
|
11
|
+
import { default as V } from "./components/Form/CustomFields.vue.js";
|
|
12
12
|
import { useForm as j } from "./components/Form/composables/useForm.js";
|
|
13
13
|
import { useFileUpload as Q } from "./components/Form/composables/useFileUpload.js";
|
|
14
14
|
import { default as Y } from "./components/Tabes/Tabes.vue.js";
|
|
@@ -23,20 +23,20 @@ import { default as de } from "./components/Navbar/NavbarTabs.vue.js";
|
|
|
23
23
|
/* empty css */
|
|
24
24
|
import { default as xe } from "./components/QRCode/QRCode.vue.js";
|
|
25
25
|
import { default as ne } from "./components/Screen/Screen.vue.js";
|
|
26
|
-
import { default as
|
|
26
|
+
import { default as Te } from "./components/Screen/ScreenFilter.vue.js";
|
|
27
27
|
import { default as ge } from "./components/Heatmap/Heatmap.vue.js";
|
|
28
28
|
import { default as Pe } from "./components/Masonry/Masonry.vue.js";
|
|
29
29
|
import { MASONRY_BREAKPOINTS as Ie } from "./components/Masonry/types.js";
|
|
30
30
|
import { default as ve } from "./components/Spinner/Spinner.vue.js";
|
|
31
|
-
import { default as
|
|
31
|
+
import { default as he } from "./components/Barcode/Barcode.vue.js";
|
|
32
32
|
import { barcodesConstants as Ae } from "./components/Barcode/types.js";
|
|
33
33
|
import { default as we } from "./components/Carousel/Carousel.vue.js";
|
|
34
34
|
import { default as ke } from "./components/Dropdown/Dropdown.vue.js";
|
|
35
35
|
import { default as Le } from "./components/Dropdown/DropdownMenu.vue.js";
|
|
36
36
|
import { default as Ee } from "./components/Dropdown/DropdownTrigger.vue.js";
|
|
37
37
|
import { default as Ge } from "./components/Dropdown/DropdownItem.vue.js";
|
|
38
|
-
import { useDropdownSelection as
|
|
39
|
-
import { useDropdownIds as
|
|
38
|
+
import { useDropdownSelection as ze } from "./components/Dropdown/composables/useDropdownSelection.js";
|
|
39
|
+
import { useDropdownIds as Ve } from "./components/Dropdown/composables/useDropdownIds.js";
|
|
40
40
|
import { default as je } from "./components/Breadcrumb/Breadcrumb.vue.js";
|
|
41
41
|
import { default as Qe } from "./components/Breadcrumb/BreadcrumbItem.vue.js";
|
|
42
42
|
import { default as Ye } from "./components/FileTree/FileTree.vue.js";
|
|
@@ -48,202 +48,203 @@ import { default as ao } from "./components/Workbook/Sheet.vue.js";
|
|
|
48
48
|
import { default as mo } from "./components/DataList/DataList.vue.js";
|
|
49
49
|
import { default as po } from "./components/List/List.vue.js";
|
|
50
50
|
import { default as uo } from "./components/List/ListFieldRow.vue.js";
|
|
51
|
-
import { formatDate as io, formatNumber as no, formatPrice as co, getObjectValue as
|
|
51
|
+
import { formatDate as io, formatNumber as no, formatPrice as co, getObjectValue as To, getStatusColorClass as bo } from "./components/List/utils.js";
|
|
52
52
|
import { default as So } from "./components/Empty/Empty.vue.js";
|
|
53
53
|
import { default as Co } from "./components/Accordion/Accordion.vue.js";
|
|
54
54
|
import { default as Do } from "./components/Accordion/AccordionItem.vue.js";
|
|
55
55
|
import { default as Fo } from "./components/Accordion/AccordionTrigger.vue.js";
|
|
56
|
-
import { default as
|
|
56
|
+
import { default as No } from "./components/Accordion/AccordionContent.vue.js";
|
|
57
57
|
import { default as Bo } from "./components/ChoiceBox/ChoiceBox.vue.js";
|
|
58
58
|
import { default as yo } from "./components/DataTable/DataTable.vue.js";
|
|
59
59
|
import { default as Mo } from "./components/DataTable/DataTableHeader.vue.js";
|
|
60
60
|
import { default as Ro } from "./components/DataTable/DataTableRow.vue.js";
|
|
61
|
-
import {
|
|
62
|
-
import { default as
|
|
61
|
+
import { initializeTheme as Ko, useTheme as Go } from "./composables/useTheme.js";
|
|
62
|
+
import { default as zo } from "./components/FilePicker/FilePicker.vue.js";
|
|
63
63
|
import { default as Vo } from "./components/Pagination/Pagination.vue.js";
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
64
|
+
import { default as jo } from "./components/ExportData/ExportData.vue.js";
|
|
65
|
+
import { default as Qo } from "./components/ImportData/ImportData.vue.js";
|
|
66
|
+
import { default as Yo } from "./components/MultiSelect/MultiSelect.vue.js";
|
|
67
|
+
import { default as $o } from "./components/PricingPlan/PricingPlan.vue.js";
|
|
68
|
+
import { default as Xo } from "./components/PricingPlan/PricingPlanItem.vue.js";
|
|
69
|
+
import { default as er } from "./components/SidebarMenu/SidebarMenu.vue.js";
|
|
70
|
+
import { default as rr } from "./components/SidebarMenu/SidebarMenuItem.vue.js";
|
|
71
71
|
/* empty css */
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { useAdvancedKeyStroke as
|
|
76
|
-
import { vScrollReveal as
|
|
77
|
-
import { default as
|
|
78
|
-
import { configure as br, pauseTimers as
|
|
79
|
-
import { default as
|
|
72
|
+
import { default as ar } from "./components/ProgressBar/ProgressBar.vue.js";
|
|
73
|
+
import { default as mr } from "./components/PermissionMatrix/PermissionMatrix.vue.js";
|
|
74
|
+
import { default as pr } from "./components/PermissionMatrix/PermissionEditor.vue.js";
|
|
75
|
+
import { useAdvancedKeyStroke as dr, useKeyStroke as ur } from "./composables/useKeyStroke.js";
|
|
76
|
+
import { vScrollReveal as ir } from "./directives/vScrollReveal.js";
|
|
77
|
+
import { default as cr } from "./components/AvatarUploader/AvatarUploader.vue.js";
|
|
78
|
+
import { configure as br, pauseTimers as gr, removeToast as Sr, resumeTimers as Pr, showToast as Cr, toast as Ir, useNotifications as Dr } from "./composables/useNotifications.js";
|
|
79
|
+
import { default as Fr } from "./components/Timeline/Timeline.vue.js";
|
|
80
80
|
import { default as Nr } from "./components/Timeline/TimelineItem.vue.js";
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
81
|
+
import { default as Br } from "./components/Timeline/TimelineIndicator.vue.js";
|
|
82
|
+
import { default as yr } from "./components/Icon.vue.js";
|
|
83
|
+
import { default as Mr } from "./components/Logo.vue.js";
|
|
84
|
+
import { default as Rr } from "./components/Alert.vue.js";
|
|
85
|
+
import { default as Kr } from "./components/Badge.vue.js";
|
|
86
|
+
import { default as Or } from "./components/Input.vue.js";
|
|
87
87
|
/* empty css */
|
|
88
88
|
import { default as Ur } from "./components/Label.vue.js";
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as
|
|
99
|
-
import { default as
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { default as
|
|
89
|
+
import { default as Hr } from "./components/Modal.vue.js";
|
|
90
|
+
import { default as qr } from "./components/Avatar.vue.js";
|
|
91
|
+
import { default as Wr } from "./components/Button.vue.js";
|
|
92
|
+
import { default as _r } from "./components/Slider.vue.js";
|
|
93
|
+
import { default as Jr } from "./components/Switch.vue.js";
|
|
94
|
+
import { default as Zr } from "./components/Tooltip.vue.js";
|
|
95
|
+
import { default as ot } from "./components/CheckBox.vue.js";
|
|
96
|
+
import { default as tt } from "./components/Textarea.vue.js";
|
|
97
|
+
import { default as ft } from "./components/SidePanel.vue.js";
|
|
98
|
+
import { default as lt } from "./components/DatePicker.vue.js";
|
|
99
|
+
import { default as st } from "./components/IconPicker.vue.js";
|
|
100
|
+
import { default as ut } from "./components/ButtonGroup.vue.js";
|
|
101
|
+
import { default as it } from "./components/NumberInput.vue.js";
|
|
102
|
+
import { default as ct } from "./components/ThemeToggle.vue.js";
|
|
103
103
|
import { default as bt } from "./components/GoogleLogin.vue.js";
|
|
104
|
-
import { default as
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as
|
|
107
|
-
import { default as
|
|
104
|
+
import { default as St } from "./components/ColorPicker/ColorPicker.vue.js";
|
|
105
|
+
import { default as Ct } from "./components/ConfirmationModal.vue.js";
|
|
106
|
+
import { default as Dt } from "./components/ToastNotification.vue.js";
|
|
107
|
+
import { default as Ft } from "./components/CommandPaletteContent.vue.js";
|
|
108
108
|
import { default as Nt } from "./components/NavbarCommandPalette.vue.js";
|
|
109
|
-
import { default as
|
|
110
|
-
import { createVLite as
|
|
111
|
-
import { useVLiteConfig as
|
|
109
|
+
import { default as Bt } from "./components/DateRangePicker.vue.js";
|
|
110
|
+
import { createVLite as yt } from "./core/index.js";
|
|
111
|
+
import { useVLiteConfig as Mt } from "./core/config.js";
|
|
112
112
|
export {
|
|
113
113
|
k as $t,
|
|
114
114
|
Co as Accordion,
|
|
115
|
-
|
|
115
|
+
No as AccordionContent,
|
|
116
116
|
Do as AccordionItem,
|
|
117
117
|
Fo as AccordionTrigger,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
Rr as Alert,
|
|
119
|
+
qr as Avatar,
|
|
120
|
+
cr as AvatarUploader,
|
|
121
|
+
Kr as Badge,
|
|
122
|
+
he as Barcode,
|
|
123
123
|
je as Breadcrumb,
|
|
124
124
|
Qe as BreadcrumbItem,
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
Wr as Button,
|
|
126
|
+
ut as ButtonGroup,
|
|
127
127
|
we as Carousel,
|
|
128
|
-
|
|
128
|
+
ot as CheckBox,
|
|
129
129
|
L as Chip,
|
|
130
130
|
Bo as ChoiceBox,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
St as ColorPicker,
|
|
132
|
+
Ft as CommandPaletteContent,
|
|
133
|
+
Ct as ConfirmationModal,
|
|
134
|
+
V as CustomFields,
|
|
135
135
|
mo as DataList,
|
|
136
136
|
yo as DataTable,
|
|
137
137
|
Mo as DataTableHeader,
|
|
138
138
|
Ro as DataTableRow,
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
lt as DatePicker,
|
|
140
|
+
Bt as DateRangePicker,
|
|
141
141
|
ke as Dropdown,
|
|
142
142
|
Ge as DropdownItem,
|
|
143
143
|
Le as DropdownMenu,
|
|
144
144
|
Ee as DropdownTrigger,
|
|
145
145
|
So as Empty,
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
jo as ExportData,
|
|
147
|
+
zo as FilePicker,
|
|
148
148
|
Ye as FileTree,
|
|
149
149
|
$e as FileTreeNode,
|
|
150
150
|
E as Form,
|
|
151
151
|
G as FormField,
|
|
152
|
-
|
|
152
|
+
z as FormFields,
|
|
153
153
|
bt as GoogleLogin,
|
|
154
154
|
f as GoogleSignInPlugin,
|
|
155
155
|
ge as Heatmap,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
yr as Icon,
|
|
157
|
+
st as IconPicker,
|
|
158
|
+
Qo as ImportData,
|
|
159
|
+
Or as Input,
|
|
160
160
|
X as Kanban,
|
|
161
161
|
ee as KanbanBoard,
|
|
162
162
|
Ur as Label,
|
|
163
163
|
po as List,
|
|
164
164
|
uo as ListFieldRow,
|
|
165
|
-
|
|
165
|
+
Mr as Logo,
|
|
166
166
|
Ie as MASONRY_BREAKPOINTS,
|
|
167
167
|
Pe as Masonry,
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
Hr as Modal,
|
|
169
|
+
Yo as MultiSelect,
|
|
170
170
|
ae as Navbar,
|
|
171
171
|
Nt as NavbarCommandPalette,
|
|
172
172
|
pe as NavbarGroup,
|
|
173
173
|
me as NavbarItem,
|
|
174
174
|
de as NavbarTabs,
|
|
175
|
-
|
|
175
|
+
it as NumberInput,
|
|
176
176
|
eo as OTPInput,
|
|
177
177
|
Vo as Pagination,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
178
|
+
pr as PermissionEditor,
|
|
179
|
+
mr as PermissionMatrix,
|
|
180
|
+
$o as PricingPlan,
|
|
181
|
+
Xo as PricingPlanItem,
|
|
182
|
+
ar as ProgressBar,
|
|
183
183
|
xe as QRCode,
|
|
184
184
|
ne as Screen,
|
|
185
|
-
|
|
185
|
+
Te as ScreenFilter,
|
|
186
186
|
ao as Sheet,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
187
|
+
ft as SidePanel,
|
|
188
|
+
er as SidebarMenu,
|
|
189
|
+
rr as SidebarMenuItem,
|
|
190
|
+
_r as Slider,
|
|
191
191
|
ve as Spinner,
|
|
192
192
|
$ as Stats,
|
|
193
|
-
|
|
193
|
+
Jr as Switch,
|
|
194
194
|
Y as Tabes,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
195
|
+
tt as Textarea,
|
|
196
|
+
ct as ThemeToggle,
|
|
197
|
+
Fr as Timeline,
|
|
198
|
+
Br as TimelineIndicator,
|
|
199
199
|
Nr as TimelineItem,
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
Dt as ToastNotification,
|
|
201
|
+
Zr as Tooltip,
|
|
202
202
|
ro as Workbook,
|
|
203
203
|
Ae as barcodesConstants,
|
|
204
204
|
s as camelCase,
|
|
205
205
|
d as capitalize,
|
|
206
206
|
br as configure,
|
|
207
207
|
u as copyToClipboard,
|
|
208
|
-
|
|
208
|
+
yt as createVLite,
|
|
209
209
|
x as debounce,
|
|
210
210
|
l as deepMerge,
|
|
211
211
|
i as delay,
|
|
212
212
|
n as downloadFile,
|
|
213
213
|
w as env,
|
|
214
214
|
c as flattenArray,
|
|
215
|
-
|
|
215
|
+
T as formatCurrency,
|
|
216
216
|
io as formatDate,
|
|
217
217
|
no as formatNumber,
|
|
218
218
|
co as formatPrice,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
To as getObjectValue,
|
|
220
|
+
bo as getStatusColorClass,
|
|
221
|
+
b as getUniqueId,
|
|
222
|
+
Ko as initializeTheme,
|
|
222
223
|
g as isAppleDevice,
|
|
223
224
|
S as isEmpty,
|
|
224
|
-
|
|
225
|
-
|
|
225
|
+
h as lazySearch,
|
|
226
|
+
gr as pauseTimers,
|
|
226
227
|
P as randomNumber,
|
|
227
228
|
C as removeExtraProperties,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
Sr as removeToast,
|
|
230
|
+
N as resetSearchIndex,
|
|
231
|
+
Pr as resumeTimers,
|
|
231
232
|
A as search,
|
|
232
|
-
|
|
233
|
+
Cr as showToast,
|
|
233
234
|
I as slugify,
|
|
234
235
|
D as throttle,
|
|
235
|
-
|
|
236
|
+
Ir as toast,
|
|
236
237
|
v as truncate,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
238
|
+
dr as useAdvancedKeyStroke,
|
|
239
|
+
Ve as useDropdownIds,
|
|
240
|
+
ze as useDropdownSelection,
|
|
240
241
|
Q as useFileUpload,
|
|
241
242
|
j as useForm,
|
|
242
243
|
re as useKanbanBoard,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
ur as useKeyStroke,
|
|
245
|
+
Dr as useNotifications,
|
|
246
|
+
Go as useTheme,
|
|
246
247
|
Xe as useTreeSelection,
|
|
247
|
-
|
|
248
|
-
|
|
248
|
+
Mt as useVLiteConfig,
|
|
249
|
+
ir as vScrollReveal
|
|
249
250
|
};
|
package/package.json
CHANGED
package/types/styles.d.ts
CHANGED
|
@@ -16,10 +16,13 @@ export type IDropdownOption = {
|
|
|
16
16
|
length?: number;
|
|
17
17
|
values?: any;
|
|
18
18
|
data?: any;
|
|
19
|
+
class?: string;
|
|
20
|
+
triggerClass?: string;
|
|
19
21
|
children?: IDropdownOption[];
|
|
20
22
|
key?: string;
|
|
21
23
|
position?: any;
|
|
22
24
|
offset?: [number, number];
|
|
25
|
+
showChevron?: boolean;
|
|
23
26
|
confirmation?: boolean | {
|
|
24
27
|
title?: string;
|
|
25
28
|
description?: string;
|
|
@@ -27,5 +30,13 @@ export type IDropdownOption = {
|
|
|
27
30
|
cancelText?: string;
|
|
28
31
|
variant?: 'danger' | 'primary' | 'warning' | 'success' | 'info';
|
|
29
32
|
};
|
|
33
|
+
onSelect?: (payload: {
|
|
34
|
+
value: any;
|
|
35
|
+
option: IDropdownOption;
|
|
36
|
+
data: IDropdownOption[];
|
|
37
|
+
values?: any;
|
|
38
|
+
}) => void;
|
|
39
|
+
_originalOption?: IDropdownOption;
|
|
40
|
+
_path?: IDropdownOption[];
|
|
30
41
|
};
|
|
31
42
|
export type IDropdownOptions = IDropdownOption[];
|