vlite3 0.9.7 → 0.9.8
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/Accordion/Accordion.vue.d.ts +1 -1
- package/components/Accordion/AccordionItem.vue.d.ts +1 -1
- package/components/Accordion/AccordionTrigger.vue.d.ts +1 -1
- package/components/Alert.vue.d.ts +1 -1
- package/components/Avatar.vue.d.ts +2 -2
- package/components/Avatar.vue.js +1 -1
- package/components/AvatarUploader/AvatarUploader.vue.d.ts +1 -1
- package/components/BackButton.vue.d.ts +1 -1
- package/components/Badge.vue.d.ts +1 -1
- package/components/Barcode/Barcode.vue.d.ts +1 -1
- package/components/Breadcrumb/Breadcrumb.vue.d.ts +1 -1
- package/components/Button.vue.d.ts +2 -2
- package/components/CheckBox.vue.d.ts +1 -1
- package/components/Chip/Chip.vue.d.ts +1 -1
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/DataTable/DataTable.vue.js +55 -54
- package/components/DataTable/DataTableHeader.vue.js +5 -3
- package/components/DataTable/DataTableRow.vue.js +23 -24
- package/components/DatePicker.vue.js +93 -73
- package/components/Form/FormField.vue.d.ts +1 -1
- package/components/Input.vue.d.ts +3 -3
- package/components/Kanban/KanbanBoard.vue2.js +29 -27
- package/components/List/List.vue.d.ts +1 -1
- package/components/List/List.vue.js +1 -1
- package/components/Navbar/Navbar.vue.d.ts +2 -2
- package/components/Navbar/NavbarItem.vue.d.ts +1 -1
- package/components/Navbar/NavbarTabs.vue.d.ts +1 -1
- package/components/NumberInput.vue.d.ts +1 -1
- package/components/OTPInput/OTPInput.vue.d.ts +1 -1
- package/components/PermissionMatrix/PermissionEditor.vue.d.ts +2 -2
- package/components/PermissionMatrix/PermissionMatrix.vue.d.ts +2 -2
- package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
- package/components/Screen/Screen.vue.d.ts +1 -1
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/SidePanel.vue.d.ts +1 -1
- package/components/Spinner/Spinner.vue.d.ts +2 -2
- package/components/Stats/Stats.vue.d.ts +1 -1
- package/components/StatusChip/StatusChip.vue.d.ts +1 -1
- package/index.js +255 -254
- package/package.json +1 -1
- package/utils/functions.d.ts +25 -10
- package/utils/functions.js +112 -70
- /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
package/index.js
CHANGED
|
@@ -1,275 +1,276 @@
|
|
|
1
1
|
import { default as f } from "vue3-google-signin";
|
|
2
2
|
import { deepMerge as l } from "./utils/object.js";
|
|
3
|
-
import { camelCase as p, capitalize as d, copyToClipboard as u, debounce as x, delay as i, downloadFile as n, flattenArray as c, formatCurrency as T,
|
|
4
|
-
import { lazySearch as
|
|
5
|
-
import { env as
|
|
6
|
-
import { $t as
|
|
7
|
-
import { default as
|
|
3
|
+
import { camelCase as p, capitalize as d, copyToClipboard as u, debounce as x, delay as i, downloadFile as n, flattenArray as c, formatCurrency as T, getDefaultDateRange as S, getUniqueId as g, isAppleDevice as b, isEmpty as C, randomNumber as P, removeExtraProperties as I, slugify as D, throttle as F, truncate as v } from "./utils/functions.js";
|
|
4
|
+
import { lazySearch as h, resetSearchIndex as A, search as B } from "./utils/search.util.js";
|
|
5
|
+
import { env as w } from "./utils/env.js";
|
|
6
|
+
import { $t as E } from "./utils/i18n.js";
|
|
7
|
+
import { default as L } from "./components/Chip/Chip.vue.js";
|
|
8
8
|
import { default as K } from "./components/Form/Form.vue.js";
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { useForm as
|
|
13
|
-
import { useFileUpload as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { useKanbanBoard as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
9
|
+
import { default as _ } from "./components/Form/FormField.vue.js";
|
|
10
|
+
import { default as z } from "./components/Form/FormFields.vue.js";
|
|
11
|
+
import { default as V } from "./components/Form/CustomFields.vue.js";
|
|
12
|
+
import { useForm as Y } from "./components/Form/composables/useForm.js";
|
|
13
|
+
import { useFileUpload as j } from "./components/Form/composables/useFileUpload.js";
|
|
14
|
+
import { default as W } from "./components/Tabes/Tabes.vue.js";
|
|
15
|
+
import { default as $ } from "./components/Stats/Stats.vue.js";
|
|
16
|
+
import { default as Z } from "./components/Kanban/Kanban.vue.js";
|
|
17
|
+
import { default as oe } from "./components/Kanban/KanbanBoard.vue.js";
|
|
18
|
+
import { useKanbanBoard as te } from "./components/Kanban/useKanbanBoard.js";
|
|
19
|
+
import { default as fe } from "./components/Navbar/Navbar.vue.js";
|
|
20
|
+
import { default as le } from "./components/Navbar/NavbarItem.vue.js";
|
|
21
|
+
import { default as pe } from "./components/Navbar/NavbarGroup.vue.js";
|
|
22
|
+
import { default as ue } from "./components/Navbar/NavbarTabs.vue.js";
|
|
23
23
|
/* empty css */
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { MASONRY_BREAKPOINTS as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { barcodesConstants as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
24
|
+
import { default as ie } from "./components/QRCode/QRCode.vue.js";
|
|
25
|
+
import { default as ce } from "./components/Screen/Screen.vue.js";
|
|
26
|
+
import { default as Se } from "./components/Screen/ScreenFilter.vue.js";
|
|
27
|
+
import { default as be } from "./components/Screen/components/ScreenQuickFilters.vue.js";
|
|
28
|
+
import { default as Pe } from "./components/Heatmap/Heatmap.vue.js";
|
|
29
|
+
import { default as De } from "./components/Masonry/Masonry.vue.js";
|
|
30
|
+
import { MASONRY_BREAKPOINTS as ve } from "./components/Masonry/types.js";
|
|
31
|
+
import { default as he } from "./components/Spinner/Spinner.vue.js";
|
|
32
|
+
import { default as Be } from "./components/Barcode/Barcode.vue.js";
|
|
33
|
+
import { barcodesConstants as we } from "./components/Barcode/types.js";
|
|
34
|
+
import { default as Ee } from "./components/Carousel/Carousel.vue.js";
|
|
35
|
+
import { default as Le } from "./components/Dropdown/Dropdown.vue.js";
|
|
36
36
|
import { default as Ke } from "./components/Dropdown/DropdownMenu.vue.js";
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { useDropdownSelection as
|
|
40
|
-
import { useDropdownIds as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { useTreeSelection as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { formatDate as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { SCREEN_CONTEXT_KEY as
|
|
63
|
-
import { initializeTheme as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { useMultiSelectHydration as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
37
|
+
import { default as _e } from "./components/Dropdown/DropdownTrigger.vue.js";
|
|
38
|
+
import { default as ze } from "./components/Dropdown/DropdownItem.vue.js";
|
|
39
|
+
import { useDropdownSelection as Ve } from "./components/Dropdown/composables/useDropdownSelection.js";
|
|
40
|
+
import { useDropdownIds as Ye } from "./components/Dropdown/composables/useDropdownIds.js";
|
|
41
|
+
import { default as je } from "./components/Breadcrumb/Breadcrumb.vue.js";
|
|
42
|
+
import { default as We } from "./components/Breadcrumb/BreadcrumbItem.vue.js";
|
|
43
|
+
import { default as $e } from "./components/FileTree/FileTree.vue.js";
|
|
44
|
+
import { default as Ze } from "./components/FileTree/FileTreeNode.vue.js";
|
|
45
|
+
import { useTreeSelection as oo } from "./components/FileTree/useTreeSelection.js";
|
|
46
|
+
import { default as to } from "./components/OTPInput/OTPInput.vue.js";
|
|
47
|
+
import { default as fo } from "./components/Workbook/Workbook.vue.js";
|
|
48
|
+
import { default as lo } from "./components/Workbook/Sheet.vue.js";
|
|
49
|
+
import { default as po } from "./components/DataList/DataList.vue.js";
|
|
50
|
+
import { default as xo } from "./components/List/List.vue.js";
|
|
51
|
+
import { default as no } from "./components/List/ListFieldRow.vue.js";
|
|
52
|
+
import { formatDate as To, formatNumber as So, formatPrice as go, getObjectValue as bo, getStatusColorClass as Co } from "./components/List/utils.js";
|
|
53
|
+
import { default as Io } from "./components/Empty/Empty.vue.js";
|
|
54
|
+
import { default as Fo } from "./components/Accordion/Accordion.vue.js";
|
|
55
|
+
import { default as No } from "./components/Accordion/AccordionItem.vue.js";
|
|
56
|
+
import { default as Ao } from "./components/Accordion/AccordionTrigger.vue.js";
|
|
57
|
+
import { default as ko } from "./components/Accordion/AccordionContent.vue.js";
|
|
58
|
+
import { default as yo } from "./components/ChoiceBox/ChoiceBox.vue.js";
|
|
59
|
+
import { default as Mo } from "./components/DataTable/DataTable.vue.js";
|
|
60
|
+
import { default as Ro } from "./components/DataTable/DataTableHeader.vue.js";
|
|
61
|
+
import { default as Oo } from "./components/DataTable/DataTableRow.vue.js";
|
|
62
|
+
import { SCREEN_CONTEXT_KEY as Go } from "./components/DataTable/types.js";
|
|
63
|
+
import { initializeTheme as Uo, useTheme as Vo } from "./composables/useTheme.js";
|
|
64
|
+
import { default as Yo } from "./components/FilePicker/FilePicker.vue.js";
|
|
65
|
+
import { default as jo } from "./components/Pagination/Pagination.vue.js";
|
|
66
|
+
import { default as Wo } from "./components/ExportData/ExportData.vue.js";
|
|
67
|
+
import { default as $o } from "./components/ImportData/ImportData.vue.js";
|
|
68
|
+
import { default as Zo } from "./components/MultiSelect/MultiSelect.vue.js";
|
|
69
|
+
import { useMultiSelectHydration as or } from "./components/MultiSelect/composables/useMultiSelectHydration.js";
|
|
70
|
+
import { default as tr } from "./components/PricingPlan/PricingPlan.vue.js";
|
|
71
|
+
import { default as fr } from "./components/PricingPlan/PricingPlanItem.vue.js";
|
|
72
|
+
import { default as lr } from "./components/SidebarMenu/SidebarMenu.vue.js";
|
|
73
|
+
import { default as pr } from "./components/SidebarMenu/SidebarMenuItem.vue.js";
|
|
74
74
|
/* empty css */
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { useAdvancedKeyStroke as
|
|
79
|
-
import { vScrollReveal as
|
|
80
|
-
import { default as
|
|
81
|
-
import { configure as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
75
|
+
import { default as ur } from "./components/ProgressBar/ProgressBar.vue.js";
|
|
76
|
+
import { default as ir } from "./components/PermissionMatrix/PermissionMatrix.vue.js";
|
|
77
|
+
import { default as cr } from "./components/PermissionMatrix/PermissionEditor.vue.js";
|
|
78
|
+
import { useAdvancedKeyStroke as Sr, useKeyStroke as gr } from "./composables/useKeyStroke.js";
|
|
79
|
+
import { vScrollReveal as Cr } from "./directives/vScrollReveal.js";
|
|
80
|
+
import { default as Ir } from "./components/AvatarUploader/AvatarUploader.vue.js";
|
|
81
|
+
import { configure as Fr, pauseTimers as vr, removeToast as Nr, resumeTimers as hr, showToast as Ar, toast as Br, useNotifications as kr } from "./composables/useNotifications.js";
|
|
82
|
+
import { default as yr } from "./components/Timeline/Timeline.vue.js";
|
|
83
|
+
import { default as Mr } from "./components/Timeline/TimelineItem.vue.js";
|
|
84
|
+
import { default as Rr } from "./components/Timeline/TimelineIndicator.vue.js";
|
|
85
|
+
import { default as Or } from "./components/FilePreview/FilePreview.vue.js";
|
|
86
|
+
import { default as Gr } from "./components/AttachmentsList/AttachmentsList.vue.js";
|
|
87
|
+
import { default as Ur } from "./components/Icon.vue.js";
|
|
88
|
+
import { default as Hr } from "./components/Logo.vue.js";
|
|
89
|
+
import { default as Qr } from "./components/Alert.vue.js";
|
|
90
|
+
import { default as qr } from "./components/Badge.vue.js";
|
|
91
|
+
import { default as Xr } from "./components/Input.vue.js";
|
|
92
92
|
/* empty css */
|
|
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
|
|
103
|
-
import { default as
|
|
104
|
-
import { default as
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as
|
|
107
|
-
import { default as
|
|
108
|
-
import { default as
|
|
109
|
-
import { default as
|
|
110
|
-
import { default as
|
|
111
|
-
import { default as
|
|
112
|
-
import { default as
|
|
113
|
-
import { default as
|
|
114
|
-
import { default as
|
|
115
|
-
import { default as
|
|
116
|
-
import { createVLite as
|
|
117
|
-
import { default as
|
|
118
|
-
import { STATUS_MAP as
|
|
119
|
-
import { default as
|
|
120
|
-
import { default as
|
|
121
|
-
import { VLITE_CONFIG_KEY as
|
|
93
|
+
import { default as Jr } from "./components/Label.vue.js";
|
|
94
|
+
import { default as et } from "./components/Modal.vue.js";
|
|
95
|
+
import { default as rt } from "./components/Avatar.vue.js";
|
|
96
|
+
import { default as at } from "./components/Button.vue.js";
|
|
97
|
+
import { default as mt } from "./components/BackButton.vue.js";
|
|
98
|
+
import { default as st } from "./components/Slider.vue.js";
|
|
99
|
+
import { default as dt } from "./components/Switch.vue.js";
|
|
100
|
+
import { default as xt } from "./components/Tooltip.vue.js";
|
|
101
|
+
import { default as nt } from "./components/CheckBox.vue.js";
|
|
102
|
+
import { default as Tt } from "./components/Textarea.vue.js";
|
|
103
|
+
import { default as gt } from "./components/SidePanel.vue.js";
|
|
104
|
+
import { default as Ct } from "./components/DatePicker.vue.js";
|
|
105
|
+
import { default as It } from "./components/IconPicker.vue.js";
|
|
106
|
+
import { default as Ft } from "./components/ButtonGroup.vue.js";
|
|
107
|
+
import { default as Nt } from "./components/NumberInput.vue.js";
|
|
108
|
+
import { default as At } from "./components/ThemeToggle.vue.js";
|
|
109
|
+
import { default as kt } from "./components/GoogleLogin.vue.js";
|
|
110
|
+
import { default as yt } from "./components/ColorPicker/ColorPicker.vue.js";
|
|
111
|
+
import { default as Mt } from "./components/ConfirmationModal.vue.js";
|
|
112
|
+
import { default as Rt } from "./components/ToastNotification.vue.js";
|
|
113
|
+
import { default as Ot } from "./components/CommandPalette/CommandPaletteContent.vue.js";
|
|
114
|
+
import { default as Gt } from "./components/NavbarCommandPalette.vue.js";
|
|
115
|
+
import { default as Ut } from "./components/DateRangePicker.vue.js";
|
|
116
|
+
import { createVLite as Ht } from "./core/index.js";
|
|
117
|
+
import { default as Qt } from "./components/StatusChip/StatusChip.vue.js";
|
|
118
|
+
import { STATUS_MAP as qt, normalizeStatus as Wt, resolveStatus as Xt } from "./components/StatusChip/status-map.js";
|
|
119
|
+
import { default as Jt } from "./components/Price/Price.vue.js";
|
|
120
|
+
import { default as ea } from "./components/DateTime/DateTime.vue.js";
|
|
121
|
+
import { VLITE_CONFIG_KEY as ra, configState as ta, updateConfig as aa, useVLiteConfig as fa } from "./core/config.js";
|
|
122
122
|
export {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
123
|
+
E as $t,
|
|
124
|
+
Fo as Accordion,
|
|
125
|
+
ko as AccordionContent,
|
|
126
|
+
No as AccordionItem,
|
|
127
|
+
Ao as AccordionTrigger,
|
|
128
|
+
Qr as Alert,
|
|
129
|
+
Gr as AttachmentsList,
|
|
130
|
+
rt as Avatar,
|
|
131
|
+
Ir as AvatarUploader,
|
|
132
|
+
mt as BackButton,
|
|
133
|
+
qr as Badge,
|
|
134
|
+
Be as Barcode,
|
|
135
|
+
je as Breadcrumb,
|
|
136
|
+
We as BreadcrumbItem,
|
|
137
|
+
at as Button,
|
|
138
|
+
Ft as ButtonGroup,
|
|
139
|
+
Ee as Carousel,
|
|
140
|
+
nt as CheckBox,
|
|
141
|
+
L as Chip,
|
|
142
|
+
yo as ChoiceBox,
|
|
143
|
+
yt as ColorPicker,
|
|
144
|
+
Ot as CommandPaletteContent,
|
|
145
|
+
Mt as ConfirmationModal,
|
|
146
|
+
V as CustomFields,
|
|
147
|
+
po as DataList,
|
|
148
|
+
Mo as DataTable,
|
|
149
|
+
Ro as DataTableHeader,
|
|
150
|
+
Oo as DataTableRow,
|
|
151
|
+
Ct as DatePicker,
|
|
152
|
+
Ut as DateRangePicker,
|
|
153
|
+
ea as DateTime,
|
|
154
|
+
Le as Dropdown,
|
|
155
|
+
ze as DropdownItem,
|
|
156
156
|
Ke as DropdownMenu,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
157
|
+
_e as DropdownTrigger,
|
|
158
|
+
Io as Empty,
|
|
159
|
+
Wo as ExportData,
|
|
160
|
+
Yo as FilePicker,
|
|
161
|
+
Or as FilePreview,
|
|
162
|
+
$e as FileTree,
|
|
163
|
+
Ze as FileTreeNode,
|
|
164
164
|
K as Form,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
_ as FormField,
|
|
166
|
+
z as FormFields,
|
|
167
|
+
kt as GoogleLogin,
|
|
168
168
|
f as GoogleSignInPlugin,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
169
|
+
Pe as Heatmap,
|
|
170
|
+
Ur as Icon,
|
|
171
|
+
It as IconPicker,
|
|
172
|
+
$o as ImportData,
|
|
173
|
+
Xr as Input,
|
|
174
|
+
Z as Kanban,
|
|
175
|
+
oe as KanbanBoard,
|
|
176
|
+
Jr as Label,
|
|
177
|
+
xo as List,
|
|
178
|
+
no as ListFieldRow,
|
|
179
|
+
Hr as Logo,
|
|
180
|
+
ve as MASONRY_BREAKPOINTS,
|
|
181
|
+
De as Masonry,
|
|
182
|
+
et as Modal,
|
|
183
|
+
Zo as MultiSelect,
|
|
184
|
+
fe as Navbar,
|
|
185
|
+
Gt as NavbarCommandPalette,
|
|
186
|
+
pe as NavbarGroup,
|
|
187
|
+
le as NavbarItem,
|
|
188
|
+
ue as NavbarTabs,
|
|
189
|
+
Nt as NumberInput,
|
|
190
|
+
to as OTPInput,
|
|
191
|
+
jo as Pagination,
|
|
192
|
+
cr as PermissionEditor,
|
|
193
|
+
ir as PermissionMatrix,
|
|
194
|
+
Jt as Price,
|
|
195
|
+
tr as PricingPlan,
|
|
196
|
+
fr as PricingPlanItem,
|
|
197
|
+
ur as ProgressBar,
|
|
198
|
+
ie as QRCode,
|
|
199
|
+
Go as SCREEN_CONTEXT_KEY,
|
|
200
|
+
qt as STATUS_MAP,
|
|
201
|
+
ce as Screen,
|
|
202
|
+
Se as ScreenFilter,
|
|
203
|
+
be as ScreenQuickFilters,
|
|
204
|
+
lo as Sheet,
|
|
205
|
+
gt as SidePanel,
|
|
206
|
+
lr as SidebarMenu,
|
|
207
|
+
pr as SidebarMenuItem,
|
|
208
|
+
st as Slider,
|
|
209
|
+
he as Spinner,
|
|
210
|
+
$ as Stats,
|
|
211
|
+
Qt as StatusChip,
|
|
212
|
+
dt as Switch,
|
|
213
|
+
W as Tabes,
|
|
214
|
+
Tt as Textarea,
|
|
215
|
+
At as ThemeToggle,
|
|
216
|
+
yr as Timeline,
|
|
217
|
+
Rr as TimelineIndicator,
|
|
218
|
+
Mr as TimelineItem,
|
|
219
|
+
Rt as ToastNotification,
|
|
220
|
+
xt as Tooltip,
|
|
221
|
+
ra as VLITE_CONFIG_KEY,
|
|
222
|
+
fo as Workbook,
|
|
223
|
+
we as barcodesConstants,
|
|
224
224
|
p as camelCase,
|
|
225
225
|
d as capitalize,
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
ta as configState,
|
|
227
|
+
Fr as configure,
|
|
228
228
|
u as copyToClipboard,
|
|
229
|
-
|
|
229
|
+
Ht as createVLite,
|
|
230
230
|
x as debounce,
|
|
231
231
|
l as deepMerge,
|
|
232
232
|
i as delay,
|
|
233
233
|
n as downloadFile,
|
|
234
|
-
|
|
234
|
+
w as env,
|
|
235
235
|
c as flattenArray,
|
|
236
236
|
T as formatCurrency,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
bo as
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
b as
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
P as
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
D as
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
237
|
+
To as formatDate,
|
|
238
|
+
So as formatNumber,
|
|
239
|
+
go as formatPrice,
|
|
240
|
+
S as getDefaultDateRange,
|
|
241
|
+
bo as getObjectValue,
|
|
242
|
+
Co as getStatusColorClass,
|
|
243
|
+
g as getUniqueId,
|
|
244
|
+
Uo as initializeTheme,
|
|
245
|
+
b as isAppleDevice,
|
|
246
|
+
C as isEmpty,
|
|
247
|
+
h as lazySearch,
|
|
248
|
+
Wt as normalizeStatus,
|
|
249
|
+
vr as pauseTimers,
|
|
250
|
+
P as randomNumber,
|
|
251
|
+
I as removeExtraProperties,
|
|
252
|
+
Nr as removeToast,
|
|
253
|
+
A as resetSearchIndex,
|
|
254
|
+
Xt as resolveStatus,
|
|
255
|
+
hr as resumeTimers,
|
|
256
|
+
B as search,
|
|
257
|
+
Ar as showToast,
|
|
258
|
+
D as slugify,
|
|
259
|
+
F as throttle,
|
|
260
|
+
Br as toast,
|
|
261
|
+
v as truncate,
|
|
262
|
+
aa as updateConfig,
|
|
263
|
+
Sr as useAdvancedKeyStroke,
|
|
264
|
+
Ye as useDropdownIds,
|
|
265
|
+
Ve as useDropdownSelection,
|
|
266
|
+
j as useFileUpload,
|
|
267
|
+
Y as useForm,
|
|
268
|
+
te as useKanbanBoard,
|
|
269
|
+
gr as useKeyStroke,
|
|
270
|
+
or as useMultiSelectHydration,
|
|
271
|
+
kr as useNotifications,
|
|
272
|
+
Vo as useTheme,
|
|
273
|
+
oo as useTreeSelection,
|
|
274
|
+
fa as useVLiteConfig,
|
|
275
|
+
Cr as vScrollReveal
|
|
275
276
|
};
|
package/package.json
CHANGED
package/utils/functions.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
1
2
|
/**
|
|
2
3
|
* Creates a debounced function that delays invoking the provided function
|
|
3
4
|
* until after the specified delay has elapsed since the last time it was invoked.
|
|
@@ -27,13 +28,13 @@ export declare function throttle<T extends (...args: any[]) => any>(func: T, wai
|
|
|
27
28
|
*
|
|
28
29
|
* @example
|
|
29
30
|
* slugify('Hello World!') // 'hello-world'
|
|
30
|
-
* slugify('
|
|
31
|
+
* slugify('Creme Brulee') // 'creme-brulee'
|
|
31
32
|
* slugify(' --foo bar-- ') // 'foo-bar'
|
|
32
33
|
*/
|
|
33
34
|
export declare const slugify: (input: string) => string;
|
|
34
35
|
/**
|
|
35
36
|
* Generates a random integer between `min` and `max` (inclusive).
|
|
36
|
-
* Uses `Math.random()`
|
|
37
|
+
* Uses `Math.random()` -- not suitable for cryptographic purposes.
|
|
37
38
|
*
|
|
38
39
|
* @param min The lower bound (inclusive)
|
|
39
40
|
* @param max The upper bound (inclusive)
|
|
@@ -51,12 +52,12 @@ export declare const randomNumber: (min: number, max: number) => number;
|
|
|
51
52
|
* to avoid mid-word cuts.
|
|
52
53
|
*
|
|
53
54
|
* @param text The string to truncate
|
|
54
|
-
* @param length Maximum character length (must be
|
|
55
|
-
* @param ellipsis The suffix appended when truncated (default:
|
|
55
|
+
* @param length Maximum character length (must be >= 0)
|
|
56
|
+
* @param ellipsis The suffix appended when truncated (default: '...')
|
|
56
57
|
* @returns The truncated string, or the original if already within the limit
|
|
57
58
|
*
|
|
58
59
|
* @example
|
|
59
|
-
* truncate('Hello, beautiful world!', 13) // 'Hello
|
|
60
|
+
* truncate('Hello, beautiful world!', 13) // 'Hello,...'
|
|
60
61
|
* truncate('Hello, beautiful world!', 13, '...') // 'Hello,...'
|
|
61
62
|
* truncate('Short', 100) // 'Short'
|
|
62
63
|
*/
|
|
@@ -65,22 +66,28 @@ export declare const truncate: (text: string, length: number, ellipsis?: string)
|
|
|
65
66
|
* Formats a numeric amount as a locale-aware currency string
|
|
66
67
|
* using the `Intl.NumberFormat` API.
|
|
67
68
|
*
|
|
69
|
+
* Reads the default currency from the global VLite config (`configState`)
|
|
70
|
+
* when no explicit `currency` argument is provided. Falls back to `'USD'`
|
|
71
|
+
* if no global config value is set.
|
|
72
|
+
*
|
|
68
73
|
* @param amount The numeric value to format
|
|
69
74
|
* @param locale A BCP 47 locale string (default: `'en-US'`)
|
|
70
|
-
* @param currency An ISO 4217 currency code
|
|
75
|
+
* @param currency An ISO 4217 currency code. Defaults to the globally configured
|
|
76
|
+
* currency from `createVLite({ components: { price: { currency: '...' } } })`,
|
|
77
|
+
* or `'USD'` if not configured.
|
|
71
78
|
* @returns The formatted currency string
|
|
72
79
|
*
|
|
73
80
|
* @example
|
|
74
|
-
* formatCurrency(1234.5) // '
|
|
75
|
-
* formatCurrency(1234.5, 'de-DE', 'EUR') // '1.234,50
|
|
76
|
-
* formatCurrency(0) // '$0.00'
|
|
81
|
+
* formatCurrency(1234.5) // uses global currency, e.g. 'Rs1,234.50' if PKR is set
|
|
82
|
+
* formatCurrency(1234.5, 'de-DE', 'EUR') // '1.234,50 E'
|
|
83
|
+
* formatCurrency(0) // '$0.00' (when no global config)
|
|
77
84
|
*/
|
|
78
85
|
export declare const formatCurrency: (amount: number, locale?: string, currency?: string) => string;
|
|
79
86
|
/**
|
|
80
87
|
* Returns a Promise that resolves after the specified number of milliseconds.
|
|
81
88
|
* Useful for artificial delays, polling intervals, or animation timing.
|
|
82
89
|
*
|
|
83
|
-
* @param ms Delay duration in milliseconds (must be
|
|
90
|
+
* @param ms Delay duration in milliseconds (must be >= 0)
|
|
84
91
|
* @returns A Promise that resolves to `void` after the delay
|
|
85
92
|
*
|
|
86
93
|
* @example
|
|
@@ -106,3 +113,11 @@ export declare const delay: (ms: number) => Promise<void>;
|
|
|
106
113
|
* if (ok) showToast('Copied!')
|
|
107
114
|
*/
|
|
108
115
|
export declare const copyToClipboard: (text: string) => Promise<boolean>;
|
|
116
|
+
export type DateRangeMode = 'week' | 'month' | '3-months' | '6-months' | 'year' | 'last-week' | 'last-month';
|
|
117
|
+
export interface DateRangeResult {
|
|
118
|
+
startDate: string;
|
|
119
|
+
endDate: string;
|
|
120
|
+
startDayjs: Dayjs;
|
|
121
|
+
endDayjs: Dayjs;
|
|
122
|
+
}
|
|
123
|
+
export declare const getDefaultDateRange: (mode?: DateRangeMode, maxDate?: Dayjs | string | Date, anchorDate?: Dayjs) => DateRangeResult;
|