cisse-vue-ui 0.5.17 → 0.5.22
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 +666 -666
- package/dist/Button.vue_vue_type_script_setup_true_lang-DKE8elsf.js +236 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-DKE8elsf.js.map +1 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-DrGM65ny.cjs +235 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-DrGM65ny.cjs.map +1 -0
- package/dist/{RangeSlider.vue_vue_type_script_setup_true_lang-y3zIxWfI.js → Combobox.vue_vue_type_script_setup_true_lang-DhcLb6DX.js} +408 -185
- package/dist/Combobox.vue_vue_type_script_setup_true_lang-DhcLb6DX.js.map +1 -0
- package/dist/{RangeSlider.vue_vue_type_script_setup_true_lang-Cv1OwT9S.cjs → Combobox.vue_vue_type_script_setup_true_lang-FdUrjmSG.cjs} +435 -212
- package/dist/Combobox.vue_vue_type_script_setup_true_lang-FdUrjmSG.cjs.map +1 -0
- package/dist/{ListSkeleton.vue_vue_type_script_setup_true_lang-Bech-H58.js → ConfirmDialog.vue_vue_type_script_setup_true_lang-CNucAMQg.js} +226 -248
- package/dist/ConfirmDialog.vue_vue_type_script_setup_true_lang-CNucAMQg.js.map +1 -0
- package/dist/{ListSkeleton.vue_vue_type_script_setup_true_lang-CHoagJ0-.cjs → ConfirmDialog.vue_vue_type_script_setup_true_lang-DXb9wQQv.cjs} +225 -247
- package/dist/ConfirmDialog.vue_vue_type_script_setup_true_lang-DXb9wQQv.cjs.map +1 -0
- package/dist/{Timeline.vue_vue_type_script_setup_true_lang-CuPF4MPe.js → DarkModeToggle.vue_vue_type_script_setup_true_lang-43fxlbro.js} +209 -415
- package/dist/DarkModeToggle.vue_vue_type_script_setup_true_lang-43fxlbro.js.map +1 -0
- package/dist/{Timeline.vue_vue_type_script_setup_true_lang-CqeiZOID.cjs → DarkModeToggle.vue_vue_type_script_setup_true_lang-BoB48313.cjs} +234 -440
- package/dist/DarkModeToggle.vue_vue_type_script_setup_true_lang-BoB48313.cjs.map +1 -0
- package/dist/Dropdown.vue_vue_type_script_setup_true_lang-C3pr8BwC.js.map +1 -1
- package/dist/Dropdown.vue_vue_type_script_setup_true_lang-DKxcVBKu.cjs.map +1 -1
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-D22uNeS1.cjs.map +1 -1
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-kT7np2ir.js.map +1 -1
- package/dist/cisse-vue-ui.css +51 -51
- package/dist/components/core/AccordionItem.stories.d.ts +10 -0
- package/dist/components/core/Avatar.vue.d.ts +1 -1
- package/dist/components/core/Button.vue.d.ts +1 -1
- package/dist/components/core/CardComponent.stories.d.ts +3 -0
- package/dist/components/core/CardComponent.vue.d.ts +15 -2
- package/dist/components/core/DarkModeToggle.stories.d.ts +15 -0
- package/dist/components/core/DarkModeToggle.test.d.ts +1 -0
- package/dist/components/core/DarkModeToggle.vue.d.ts +21 -0
- package/dist/components/core/MobileList.stories.d.ts +13 -0
- package/dist/components/core/MobileList.vue.d.ts +6 -0
- package/dist/components/core/ResponsiveList.stories.d.ts +15 -0
- package/dist/components/core/ResponsiveList.vue.d.ts +6 -0
- package/dist/components/core/TabPanel.stories.d.ts +8 -0
- package/dist/components/core/TableAction.stories.d.ts +14 -0
- package/dist/components/core/TableComponent.stories.d.ts +2 -0
- package/dist/components/core/TableComponent.vue.d.ts +6 -0
- package/dist/components/core/index.cjs +22 -20
- package/dist/components/core/index.cjs.map +1 -1
- package/dist/components/core/index.d.ts +2 -0
- package/dist/components/core/index.js +16 -14
- package/dist/components/core/index.js.map +1 -1
- package/dist/components/feedback/CardSkeleton.stories.d.ts +11 -0
- package/dist/components/feedback/CardSkeleton.test.d.ts +1 -0
- package/dist/components/feedback/CardSkeleton.vue.d.ts +1 -1
- package/dist/components/feedback/ConfirmDialog.stories.d.ts +12 -0
- package/dist/components/feedback/ConfirmDialog.test.d.ts +1 -0
- package/dist/components/feedback/ConfirmDialog.vue.d.ts +53 -0
- package/dist/components/feedback/ListSkeleton.stories.d.ts +12 -0
- package/dist/components/feedback/ListSkeleton.test.d.ts +1 -0
- package/dist/components/feedback/ListSkeleton.vue.d.ts +1 -1
- package/dist/components/feedback/Modal.vue.d.ts +11 -2
- package/dist/components/feedback/NotificationComponent.stories.d.ts +14 -0
- package/dist/components/feedback/NotificationList.stories.d.ts +11 -0
- package/dist/components/feedback/Progress.vue.d.ts +1 -1
- package/dist/components/feedback/Skeleton.vue.d.ts +1 -1
- package/dist/components/feedback/TableSkeleton.stories.d.ts +12 -0
- package/dist/components/feedback/TableSkeleton.test.d.ts +1 -0
- package/dist/components/feedback/TableSkeleton.vue.d.ts +1 -1
- package/dist/components/feedback/ToastContainer.stories.d.ts +15 -0
- package/dist/components/feedback/index.cjs +17 -15
- package/dist/components/feedback/index.cjs.map +1 -1
- package/dist/components/feedback/index.d.ts +2 -0
- package/dist/components/feedback/index.js +6 -4
- package/dist/components/feedback/index.js.map +1 -1
- package/dist/components/form/ColorPicker.vue.d.ts +3 -0
- package/dist/components/form/Combobox.stories.d.ts +15 -0
- package/dist/components/form/Combobox.test.d.ts +1 -0
- package/dist/components/form/Combobox.vue.d.ts +46 -0
- package/dist/components/form/FileUpload.vue.d.ts +1 -1
- package/dist/components/form/FormHelp.stories.d.ts +11 -0
- package/dist/components/form/FormLabel.stories.d.ts +12 -0
- package/dist/components/form/FormSelect.stories.d.ts +2 -0
- package/dist/components/form/index.cjs +17 -16
- package/dist/components/form/index.cjs.map +1 -1
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/form/index.js +3 -2
- package/dist/components/index.cjs +55 -51
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +36 -32
- package/dist/components/index.js.map +1 -1
- package/dist/composables/index.cjs +3 -2
- package/dist/composables/index.cjs.map +1 -1
- package/dist/composables/index.js +9 -8
- package/dist/composables/index.js.map +1 -1
- package/dist/index-D7HVSFi2.cjs +337 -0
- package/dist/index-D7HVSFi2.cjs.map +1 -0
- package/dist/index-DZYqrXV0.js +75 -0
- package/dist/index-DZYqrXV0.js.map +1 -0
- package/dist/index-Dghdw1yo.js +338 -0
- package/dist/index-Dghdw1yo.js.map +1 -0
- package/dist/index-DjEv91o4.cjs +74 -0
- package/dist/index-DjEv91o4.cjs.map +1 -0
- package/dist/index.cjs +59 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +46 -41
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/useDarkMode-Cl5QWTlC.js +53 -0
- package/dist/useDarkMode-Cl5QWTlC.js.map +1 -0
- package/dist/useDarkMode-DLZcJEUQ.cjs +52 -0
- package/dist/useDarkMode-DLZcJEUQ.cjs.map +1 -0
- package/dist/useDropdown-DHFnd259.cjs.map +1 -1
- package/dist/useDropdown-iVu14E6s.js.map +1 -1
- package/dist/{useToast-CRh_sG82.cjs → useToast-Bk60GArg.cjs} +1 -50
- package/dist/useToast-Bk60GArg.cjs.map +1 -0
- package/dist/{useToast-DwFOkewC.js → useToast-ina5g3mj.js} +6 -55
- package/dist/useToast-ina5g3mj.js.map +1 -0
- package/package.json +168 -168
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-B-nLCCNY.js +0 -54
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-B-nLCCNY.js.map +0 -1
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-DIoHDji4.cjs +0 -53
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-DIoHDji4.cjs.map +0 -1
- package/dist/ListSkeleton.vue_vue_type_script_setup_true_lang-Bech-H58.js.map +0 -1
- package/dist/ListSkeleton.vue_vue_type_script_setup_true_lang-CHoagJ0-.cjs.map +0 -1
- package/dist/RangeSlider.vue_vue_type_script_setup_true_lang-Cv1OwT9S.cjs.map +0 -1
- package/dist/RangeSlider.vue_vue_type_script_setup_true_lang-y3zIxWfI.js.map +0 -1
- package/dist/Timeline.vue_vue_type_script_setup_true_lang-CqeiZOID.cjs.map +0 -1
- package/dist/Timeline.vue_vue_type_script_setup_true_lang-CuPF4MPe.js.map +0 -1
- package/dist/index-5Ru0o5KY.js +0 -71
- package/dist/index-5Ru0o5KY.js.map +0 -1
- package/dist/index-CnDEGRt-.cjs +0 -70
- package/dist/index-CnDEGRt-.cjs.map +0 -1
- package/dist/useToast-CRh_sG82.cjs.map +0 -1
- package/dist/useToast-DwFOkewC.js.map +0 -1
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const DarkModeToggle_vue_vue_type_script_setup_true_lang = require("../DarkModeToggle.vue_vue_type_script_setup_true_lang-BoB48313.cjs");
|
|
4
4
|
const Dropdown_vue_vue_type_script_setup_true_lang = require("../Dropdown.vue_vue_type_script_setup_true_lang-DKxcVBKu.cjs");
|
|
5
5
|
const BadgeType_vue_vue_type_script_setup_true_lang = require("../BadgeType.vue_vue_type_script_setup_true_lang-CJb63H1I.cjs");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
6
|
+
const Button_vue_vue_type_script_setup_true_lang = require("../Button.vue_vue_type_script_setup_true_lang-DrGM65ny.cjs");
|
|
7
|
+
const Combobox_vue_vue_type_script_setup_true_lang = require("../Combobox.vue_vue_type_script_setup_true_lang-FdUrjmSG.cjs");
|
|
8
|
+
const index = require("../index-D7HVSFi2.cjs");
|
|
9
|
+
const ConfirmDialog_vue_vue_type_script_setup_true_lang = require("../ConfirmDialog.vue_vue_type_script_setup_true_lang-DXb9wQQv.cjs");
|
|
9
10
|
const PageLayout_vue_vue_type_script_setup_true_lang = require("../PageLayout.vue_vue_type_script_setup_true_lang-D22uNeS1.cjs");
|
|
10
|
-
exports.Accordion =
|
|
11
|
-
exports.AccordionItem =
|
|
12
|
-
exports.AutocompleteComponent =
|
|
13
|
-
exports.Avatar =
|
|
14
|
-
exports.Breadcrumb =
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.Drawer =
|
|
19
|
-
exports.MobileList =
|
|
20
|
-
exports.Popover =
|
|
21
|
-
exports.ResponsiveList =
|
|
22
|
-
exports.Stepper =
|
|
23
|
-
exports.TabPanel =
|
|
24
|
-
exports.TableAction =
|
|
25
|
-
exports.TableComponent =
|
|
26
|
-
exports.Tabs =
|
|
27
|
-
exports.Timeline =
|
|
28
|
-
exports.Tooltip =
|
|
11
|
+
exports.Accordion = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$15;
|
|
12
|
+
exports.AccordionItem = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$16;
|
|
13
|
+
exports.AutocompleteComponent = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$4;
|
|
14
|
+
exports.Avatar = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$6;
|
|
15
|
+
exports.Breadcrumb = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$14;
|
|
16
|
+
exports.CardComponent = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
17
|
+
exports.CollapsibleCard = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$10;
|
|
18
|
+
exports.DarkModeToggle = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$18;
|
|
19
|
+
exports.Drawer = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$13;
|
|
20
|
+
exports.MobileList = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$2;
|
|
21
|
+
exports.Popover = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$12;
|
|
22
|
+
exports.ResponsiveList = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$3;
|
|
23
|
+
exports.Stepper = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$9;
|
|
24
|
+
exports.TabPanel = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$8;
|
|
25
|
+
exports.TableAction = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$5;
|
|
26
|
+
exports.TableComponent = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$1;
|
|
27
|
+
exports.Tabs = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$7;
|
|
28
|
+
exports.Timeline = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$17;
|
|
29
|
+
exports.Tooltip = DarkModeToggle_vue_vue_type_script_setup_true_lang._sfc_main$11;
|
|
29
30
|
exports.Dropdown = Dropdown_vue_vue_type_script_setup_true_lang._sfc_main$1;
|
|
30
31
|
exports.MenuItem = Dropdown_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
31
32
|
exports.BadgeType = BadgeType_vue_vue_type_script_setup_true_lang._sfc_main$5;
|
|
@@ -34,34 +35,37 @@ exports.DateType = BadgeType_vue_vue_type_script_setup_true_lang._sfc_main$3;
|
|
|
34
35
|
exports.NumberType = BadgeType_vue_vue_type_script_setup_true_lang._sfc_main$2;
|
|
35
36
|
exports.StatusBadge = BadgeType_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
36
37
|
exports.TextType = BadgeType_vue_vue_type_script_setup_true_lang._sfc_main$1;
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
exports.
|
|
60
|
-
exports.
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
64
|
-
exports.
|
|
38
|
+
exports.Button = Button_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
39
|
+
exports.CardSkeleton = Button_vue_vue_type_script_setup_true_lang._sfc_main$2;
|
|
40
|
+
exports.ListSkeleton = Button_vue_vue_type_script_setup_true_lang._sfc_main$3;
|
|
41
|
+
exports.TableSkeleton = Button_vue_vue_type_script_setup_true_lang._sfc_main$1;
|
|
42
|
+
exports.ColorPicker = Combobox_vue_vue_type_script_setup_true_lang._sfc_main$10;
|
|
43
|
+
exports.Combobox = Combobox_vue_vue_type_script_setup_true_lang._sfc_main$12;
|
|
44
|
+
exports.DatePicker = Combobox_vue_vue_type_script_setup_true_lang._sfc_main$7;
|
|
45
|
+
exports.FileUpload = Combobox_vue_vue_type_script_setup_true_lang._sfc_main$8;
|
|
46
|
+
exports.FormGroup = Combobox_vue_vue_type_script_setup_true_lang._sfc_main$4;
|
|
47
|
+
exports.FormHelp = Combobox_vue_vue_type_script_setup_true_lang._sfc_main$1;
|
|
48
|
+
exports.FormInput = Combobox_vue_vue_type_script_setup_true_lang._sfc_main$2;
|
|
49
|
+
exports.FormLabel = Combobox_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
50
|
+
exports.FormSelect = Combobox_vue_vue_type_script_setup_true_lang._sfc_main$3;
|
|
51
|
+
exports.RangeSlider = Combobox_vue_vue_type_script_setup_true_lang._sfc_main$11;
|
|
52
|
+
exports.Rating = Combobox_vue_vue_type_script_setup_true_lang._sfc_main$9;
|
|
53
|
+
exports.SearchInput = Combobox_vue_vue_type_script_setup_true_lang._sfc_main$5;
|
|
54
|
+
exports.Slider = Combobox_vue_vue_type_script_setup_true_lang.Slider;
|
|
55
|
+
exports.Switch = Combobox_vue_vue_type_script_setup_true_lang._sfc_main$6;
|
|
56
|
+
exports.Checkbox = index._sfc_main;
|
|
57
|
+
exports.Alert = ConfirmDialog_vue_vue_type_script_setup_true_lang._sfc_main$5;
|
|
58
|
+
exports.ConfirmDialog = ConfirmDialog_vue_vue_type_script_setup_true_lang._sfc_main$10;
|
|
59
|
+
exports.EmptyState = ConfirmDialog_vue_vue_type_script_setup_true_lang._sfc_main$6;
|
|
60
|
+
exports.LoadingSpinner = ConfirmDialog_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
61
|
+
exports.Modal = ConfirmDialog_vue_vue_type_script_setup_true_lang._sfc_main$1;
|
|
62
|
+
exports.NotificationComponent = ConfirmDialog_vue_vue_type_script_setup_true_lang._sfc_main$3;
|
|
63
|
+
exports.NotificationList = ConfirmDialog_vue_vue_type_script_setup_true_lang._sfc_main$4;
|
|
64
|
+
exports.PaginationControls = ConfirmDialog_vue_vue_type_script_setup_true_lang._sfc_main$2;
|
|
65
|
+
exports.Progress = ConfirmDialog_vue_vue_type_script_setup_true_lang.Progress;
|
|
66
|
+
exports.Skeleton = ConfirmDialog_vue_vue_type_script_setup_true_lang._sfc_main$9;
|
|
67
|
+
exports.Toast = ConfirmDialog_vue_vue_type_script_setup_true_lang._sfc_main$7;
|
|
68
|
+
exports.ToastContainer = ConfirmDialog_vue_vue_type_script_setup_true_lang._sfc_main$8;
|
|
65
69
|
exports.BaseLayout = PageLayout_vue_vue_type_script_setup_true_lang._sfc_main;
|
|
66
70
|
exports.PageLayout = PageLayout_vue_vue_type_script_setup_true_lang._sfc_main$1;
|
|
67
71
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,48 +1,52 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o, p, d, f, n, _, j, r, m, b, l, c, i, h, e, a, g, q, k } from "../DarkModeToggle.vue_vue_type_script_setup_true_lang-43fxlbro.js";
|
|
2
2
|
import { a as a2, _ as _2 } from "../Dropdown.vue_vue_type_script_setup_true_lang-C3pr8BwC.js";
|
|
3
3
|
import { e as e2, d as d2, c as c2, b as b2, _ as _3, a as a3 } from "../BadgeType.vue_vue_type_script_setup_true_lang-CnB5eNEM.js";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as _5 } from "../
|
|
6
|
-
import {
|
|
7
|
-
import { _ as _7, a as a6 } from "../
|
|
4
|
+
import { _ as _4, b as b3, c as c3, a as a4 } from "../Button.vue_vue_type_script_setup_true_lang-DKE8elsf.js";
|
|
5
|
+
import { j as j2, l as l2, g as g2, h as h2, d as d3, a as a5, b as b4, _ as _5, c as c4, k as k2, i as i2, e as e3, S, f as f2 } from "../Combobox.vue_vue_type_script_setup_true_lang-DhcLb6DX.js";
|
|
6
|
+
import { _ as _6 } from "../index-Dghdw1yo.js";
|
|
7
|
+
import { e as e4, j as j3, f as f3, _ as _7, a as a6, c as c5, d as d4, b as b5, P, i as i3, g as g3, h as h3 } from "../ConfirmDialog.vue_vue_type_script_setup_true_lang-CNucAMQg.js";
|
|
8
|
+
import { _ as _8, a as a7 } from "../PageLayout.vue_vue_type_script_setup_true_lang-kT7np2ir.js";
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
o as Accordion,
|
|
11
|
+
p as AccordionItem,
|
|
11
12
|
e4 as Alert,
|
|
12
13
|
d as AutocompleteComponent,
|
|
13
|
-
|
|
14
|
+
f as Avatar,
|
|
14
15
|
e2 as BadgeType,
|
|
15
|
-
|
|
16
|
+
_8 as BaseLayout,
|
|
16
17
|
d2 as BooleanType,
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
n as Breadcrumb,
|
|
19
|
+
_4 as Button,
|
|
19
20
|
_ as CardComponent,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
b3 as CardSkeleton,
|
|
22
|
+
_6 as Checkbox,
|
|
23
|
+
j as CollapsibleCard,
|
|
23
24
|
j2 as ColorPicker,
|
|
25
|
+
l2 as Combobox,
|
|
26
|
+
j3 as ConfirmDialog,
|
|
27
|
+
r as DarkModeToggle,
|
|
24
28
|
g2 as DatePicker,
|
|
25
29
|
c2 as DateType,
|
|
26
|
-
|
|
30
|
+
m as Drawer,
|
|
27
31
|
a2 as Dropdown,
|
|
28
32
|
f3 as EmptyState,
|
|
29
33
|
h2 as FileUpload,
|
|
30
34
|
d3 as FormGroup,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
a5 as FormHelp,
|
|
36
|
+
b4 as FormInput,
|
|
37
|
+
_5 as FormLabel,
|
|
38
|
+
c4 as FormSelect,
|
|
39
|
+
c3 as ListSkeleton,
|
|
40
|
+
_7 as LoadingSpinner,
|
|
37
41
|
_2 as MenuItem,
|
|
38
42
|
b as MobileList,
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
a6 as Modal,
|
|
44
|
+
c5 as NotificationComponent,
|
|
41
45
|
d4 as NotificationList,
|
|
42
46
|
b2 as NumberType,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
a7 as PageLayout,
|
|
48
|
+
b5 as PaginationControls,
|
|
49
|
+
l as Popover,
|
|
46
50
|
P as Progress,
|
|
47
51
|
k2 as RangeSlider,
|
|
48
52
|
i2 as Rating,
|
|
@@ -51,17 +55,17 @@ export {
|
|
|
51
55
|
i3 as Skeleton,
|
|
52
56
|
S as Slider,
|
|
53
57
|
_3 as StatusBadge,
|
|
54
|
-
|
|
58
|
+
i as Stepper,
|
|
55
59
|
f2 as Switch,
|
|
56
|
-
|
|
60
|
+
h as TabPanel,
|
|
57
61
|
e as TableAction,
|
|
58
62
|
a as TableComponent,
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
a4 as TableSkeleton,
|
|
64
|
+
g as Tabs,
|
|
61
65
|
a3 as TextType,
|
|
62
|
-
|
|
66
|
+
q as Timeline,
|
|
63
67
|
g3 as Toast,
|
|
64
68
|
h3 as ToastContainer,
|
|
65
|
-
|
|
69
|
+
k as Tooltip
|
|
66
70
|
};
|
|
67
71
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const useToast = require("../useToast-
|
|
3
|
+
const useToast = require("../useToast-Bk60GArg.cjs");
|
|
4
|
+
const useDarkMode = require("../useDarkMode-DLZcJEUQ.cjs");
|
|
4
5
|
const useDropdown = require("../useDropdown-DHFnd259.cjs");
|
|
5
|
-
exports.useDarkMode = useToast.useDarkMode;
|
|
6
6
|
exports.useExportCSV = useToast.useExportCSV;
|
|
7
7
|
exports.useModal = useToast.useModal;
|
|
8
8
|
exports.useModals = useToast.useModals;
|
|
9
9
|
exports.useNotifications = useToast.useNotifications;
|
|
10
10
|
exports.useToast = useToast.useToast;
|
|
11
|
+
exports.useDarkMode = useDarkMode.useDarkMode;
|
|
11
12
|
exports.useDropdown = useDropdown.useDropdown;
|
|
12
13
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { a, b, c,
|
|
2
|
-
import { u as u2 } from "../
|
|
1
|
+
import { a, b, c, u, d } from "../useToast-ina5g3mj.js";
|
|
2
|
+
import { u as u2 } from "../useDarkMode-Cl5QWTlC.js";
|
|
3
|
+
import { u as u3 } from "../useDropdown-iVu14E6s.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
u2 as useDarkMode,
|
|
6
|
+
u3 as useDropdown,
|
|
7
|
+
a as useExportCSV,
|
|
8
|
+
b as useModal,
|
|
9
|
+
c as useModals,
|
|
9
10
|
u as useNotifications,
|
|
10
|
-
|
|
11
|
+
d as useToast
|
|
11
12
|
};
|
|
12
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const _hoisted_1 = ["checked", "disabled", "indeterminate"];
|
|
4
|
+
const _hoisted_2 = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "flex flex-col"
|
|
7
|
+
};
|
|
8
|
+
const _hoisted_3 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "text-sm font-medium text-gray-900 dark:text-white"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_4 = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "text-sm text-gray-500 dark:text-gray-400"
|
|
15
|
+
};
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
17
|
+
__name: "Checkbox",
|
|
18
|
+
props: {
|
|
19
|
+
modelValue: { type: Boolean, default: false },
|
|
20
|
+
label: {},
|
|
21
|
+
description: {},
|
|
22
|
+
disabled: { type: Boolean },
|
|
23
|
+
indeterminate: { type: Boolean }
|
|
24
|
+
},
|
|
25
|
+
emits: ["update:modelValue"],
|
|
26
|
+
setup(__props, { emit: __emit }) {
|
|
27
|
+
const emit = __emit;
|
|
28
|
+
const toggle = (event) => {
|
|
29
|
+
const target = event.target;
|
|
30
|
+
emit("update:modelValue", target.checked);
|
|
31
|
+
};
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return vue.openBlock(), vue.createElementBlock("label", {
|
|
34
|
+
class: vue.normalizeClass(["inline-flex items-start gap-3", __props.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"])
|
|
35
|
+
}, [
|
|
36
|
+
vue.createElementVNode("input", {
|
|
37
|
+
type: "checkbox",
|
|
38
|
+
checked: __props.modelValue,
|
|
39
|
+
disabled: __props.disabled,
|
|
40
|
+
indeterminate: __props.indeterminate,
|
|
41
|
+
class: "mt-0.5 size-4 rounded border-gray-300 text-primary/90 focus:ring-2 focus:ring-primary focus:ring-offset-2 disabled:cursor-not-allowed dark:border-gray-600 dark:bg-gray-800 dark:focus:ring-offset-gray-900",
|
|
42
|
+
onChange: toggle
|
|
43
|
+
}, null, 40, _hoisted_1),
|
|
44
|
+
__props.label || __props.description ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
45
|
+
__props.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3, vue.toDisplayString(__props.label), 1)) : vue.createCommentVNode("", true),
|
|
46
|
+
__props.description ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4, vue.toDisplayString(__props.description), 1)) : vue.createCommentVNode("", true)
|
|
47
|
+
])) : vue.createCommentVNode("", true)
|
|
48
|
+
], 2);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
const localProvidedStateMap = /* @__PURE__ */ new WeakMap();
|
|
53
|
+
const injectLocal = /* @__NO_SIDE_EFFECTS__ */ (...args) => {
|
|
54
|
+
var _getCurrentInstance;
|
|
55
|
+
const key = args[0];
|
|
56
|
+
const instance = (_getCurrentInstance = vue.getCurrentInstance()) === null || _getCurrentInstance === void 0 ? void 0 : _getCurrentInstance.proxy;
|
|
57
|
+
const owner = instance !== null && instance !== void 0 ? instance : vue.getCurrentScope();
|
|
58
|
+
if (owner == null && !vue.hasInjectionContext()) throw new Error("injectLocal must be called in setup");
|
|
59
|
+
if (owner && localProvidedStateMap.has(owner) && key in localProvidedStateMap.get(owner)) return localProvidedStateMap.get(owner)[key];
|
|
60
|
+
return vue.inject(...args);
|
|
61
|
+
};
|
|
62
|
+
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
63
|
+
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
64
|
+
const toString = Object.prototype.toString;
|
|
65
|
+
const isObject = (val) => toString.call(val) === "[object Object]";
|
|
66
|
+
const noop = () => {
|
|
67
|
+
};
|
|
68
|
+
function increaseWithUnit(target, delta) {
|
|
69
|
+
var _target$match;
|
|
70
|
+
if (typeof target === "number") return target + delta;
|
|
71
|
+
const value = ((_target$match = target.match(/^-?\d+\.?\d*/)) === null || _target$match === void 0 ? void 0 : _target$match[0]) || "";
|
|
72
|
+
const unit = target.slice(value.length);
|
|
73
|
+
const result = Number.parseFloat(value) + delta;
|
|
74
|
+
if (Number.isNaN(result)) return target;
|
|
75
|
+
return result + unit;
|
|
76
|
+
}
|
|
77
|
+
function pxValue(px) {
|
|
78
|
+
return px.endsWith("rem") ? Number.parseFloat(px) * 16 : Number.parseFloat(px);
|
|
79
|
+
}
|
|
80
|
+
function toArray(value) {
|
|
81
|
+
return Array.isArray(value) ? value : [value];
|
|
82
|
+
}
|
|
83
|
+
function getLifeCycleTarget(target) {
|
|
84
|
+
return vue.getCurrentInstance();
|
|
85
|
+
}
|
|
86
|
+
function tryOnMounted(fn, sync = true, target) {
|
|
87
|
+
if (getLifeCycleTarget()) vue.onMounted(fn, target);
|
|
88
|
+
else if (sync) fn();
|
|
89
|
+
else vue.nextTick(fn);
|
|
90
|
+
}
|
|
91
|
+
function watchImmediate(source, cb, options) {
|
|
92
|
+
return vue.watch(source, cb, {
|
|
93
|
+
...options,
|
|
94
|
+
immediate: true
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
const defaultWindow = isClient ? window : void 0;
|
|
98
|
+
function unrefElement(elRef) {
|
|
99
|
+
var _$el;
|
|
100
|
+
const plain = vue.toValue(elRef);
|
|
101
|
+
return (_$el = plain === null || plain === void 0 ? void 0 : plain.$el) !== null && _$el !== void 0 ? _$el : plain;
|
|
102
|
+
}
|
|
103
|
+
function useEventListener(...args) {
|
|
104
|
+
const register = (el, event, listener, options) => {
|
|
105
|
+
el.addEventListener(event, listener, options);
|
|
106
|
+
return () => el.removeEventListener(event, listener, options);
|
|
107
|
+
};
|
|
108
|
+
const firstParamTargets = vue.computed(() => {
|
|
109
|
+
const test = toArray(vue.toValue(args[0])).filter((e) => e != null);
|
|
110
|
+
return test.every((e) => typeof e !== "string") ? test : void 0;
|
|
111
|
+
});
|
|
112
|
+
return watchImmediate(() => {
|
|
113
|
+
var _firstParamTargets$va, _firstParamTargets$va2;
|
|
114
|
+
return [
|
|
115
|
+
(_firstParamTargets$va = (_firstParamTargets$va2 = firstParamTargets.value) === null || _firstParamTargets$va2 === void 0 ? void 0 : _firstParamTargets$va2.map((e) => unrefElement(e))) !== null && _firstParamTargets$va !== void 0 ? _firstParamTargets$va : [defaultWindow].filter((e) => e != null),
|
|
116
|
+
toArray(vue.toValue(firstParamTargets.value ? args[1] : args[0])),
|
|
117
|
+
toArray(vue.unref(firstParamTargets.value ? args[2] : args[1])),
|
|
118
|
+
vue.toValue(firstParamTargets.value ? args[3] : args[2])
|
|
119
|
+
];
|
|
120
|
+
}, ([raw_targets, raw_events, raw_listeners, raw_options], _, onCleanup) => {
|
|
121
|
+
if (!(raw_targets === null || raw_targets === void 0 ? void 0 : raw_targets.length) || !(raw_events === null || raw_events === void 0 ? void 0 : raw_events.length) || !(raw_listeners === null || raw_listeners === void 0 ? void 0 : raw_listeners.length)) return;
|
|
122
|
+
const optionsClone = isObject(raw_options) ? { ...raw_options } : raw_options;
|
|
123
|
+
const cleanups = raw_targets.flatMap((el) => raw_events.flatMap((event) => raw_listeners.map((listener) => register(el, event, listener, optionsClone))));
|
|
124
|
+
onCleanup(() => {
|
|
125
|
+
cleanups.forEach((fn) => fn());
|
|
126
|
+
});
|
|
127
|
+
}, { flush: "post" });
|
|
128
|
+
}
|
|
129
|
+
function onClickOutside(target, handler, options = {}) {
|
|
130
|
+
const { window: window$1 = defaultWindow, ignore = [], capture = true, detectIframe = false, controls = false } = options;
|
|
131
|
+
if (!window$1) return controls ? {
|
|
132
|
+
stop: noop,
|
|
133
|
+
cancel: noop,
|
|
134
|
+
trigger: noop
|
|
135
|
+
} : noop;
|
|
136
|
+
let shouldListen = true;
|
|
137
|
+
const shouldIgnore = (event) => {
|
|
138
|
+
return vue.toValue(ignore).some((target$1) => {
|
|
139
|
+
if (typeof target$1 === "string") return Array.from(window$1.document.querySelectorAll(target$1)).some((el) => el === event.target || event.composedPath().includes(el));
|
|
140
|
+
else {
|
|
141
|
+
const el = unrefElement(target$1);
|
|
142
|
+
return el && (event.target === el || event.composedPath().includes(el));
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
function hasMultipleRoots(target$1) {
|
|
147
|
+
const vm = vue.toValue(target$1);
|
|
148
|
+
return vm && vm.$.subTree.shapeFlag === 16;
|
|
149
|
+
}
|
|
150
|
+
function checkMultipleRoots(target$1, event) {
|
|
151
|
+
const vm = vue.toValue(target$1);
|
|
152
|
+
const children = vm.$.subTree && vm.$.subTree.children;
|
|
153
|
+
if (children == null || !Array.isArray(children)) return false;
|
|
154
|
+
return children.some((child) => child.el === event.target || event.composedPath().includes(child.el));
|
|
155
|
+
}
|
|
156
|
+
const listener = (event) => {
|
|
157
|
+
const el = unrefElement(target);
|
|
158
|
+
if (event.target == null) return;
|
|
159
|
+
if (!(el instanceof Element) && hasMultipleRoots(target) && checkMultipleRoots(target, event)) return;
|
|
160
|
+
if (!el || el === event.target || event.composedPath().includes(el)) return;
|
|
161
|
+
if ("detail" in event && event.detail === 0) shouldListen = !shouldIgnore(event);
|
|
162
|
+
if (!shouldListen) {
|
|
163
|
+
shouldListen = true;
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
handler(event);
|
|
167
|
+
};
|
|
168
|
+
let isProcessingClick = false;
|
|
169
|
+
const cleanup = [
|
|
170
|
+
useEventListener(window$1, "click", (event) => {
|
|
171
|
+
if (!isProcessingClick) {
|
|
172
|
+
isProcessingClick = true;
|
|
173
|
+
setTimeout(() => {
|
|
174
|
+
isProcessingClick = false;
|
|
175
|
+
}, 0);
|
|
176
|
+
listener(event);
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
passive: true,
|
|
180
|
+
capture
|
|
181
|
+
}),
|
|
182
|
+
useEventListener(window$1, "pointerdown", (e) => {
|
|
183
|
+
const el = unrefElement(target);
|
|
184
|
+
shouldListen = !shouldIgnore(e) && !!(el && !e.composedPath().includes(el));
|
|
185
|
+
}, { passive: true }),
|
|
186
|
+
detectIframe && useEventListener(window$1, "blur", (event) => {
|
|
187
|
+
setTimeout(() => {
|
|
188
|
+
var _window$document$acti;
|
|
189
|
+
const el = unrefElement(target);
|
|
190
|
+
if (((_window$document$acti = window$1.document.activeElement) === null || _window$document$acti === void 0 ? void 0 : _window$document$acti.tagName) === "IFRAME" && !(el === null || el === void 0 ? void 0 : el.contains(window$1.document.activeElement))) handler(event);
|
|
191
|
+
}, 0);
|
|
192
|
+
}, { passive: true })
|
|
193
|
+
].filter(Boolean);
|
|
194
|
+
const stop = () => cleanup.forEach((fn) => fn());
|
|
195
|
+
if (controls) return {
|
|
196
|
+
stop,
|
|
197
|
+
cancel: () => {
|
|
198
|
+
shouldListen = false;
|
|
199
|
+
},
|
|
200
|
+
trigger: (event) => {
|
|
201
|
+
shouldListen = true;
|
|
202
|
+
listener(event);
|
|
203
|
+
shouldListen = false;
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
return stop;
|
|
207
|
+
}
|
|
208
|
+
// @__NO_SIDE_EFFECTS__
|
|
209
|
+
function useMounted() {
|
|
210
|
+
const isMounted = vue.shallowRef(false);
|
|
211
|
+
const instance = vue.getCurrentInstance();
|
|
212
|
+
if (instance) vue.onMounted(() => {
|
|
213
|
+
isMounted.value = true;
|
|
214
|
+
}, instance);
|
|
215
|
+
return isMounted;
|
|
216
|
+
}
|
|
217
|
+
// @__NO_SIDE_EFFECTS__
|
|
218
|
+
function useSupported(callback) {
|
|
219
|
+
const isMounted = /* @__PURE__ */ useMounted();
|
|
220
|
+
return vue.computed(() => {
|
|
221
|
+
isMounted.value;
|
|
222
|
+
return Boolean(callback());
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
const ssrWidthSymbol = Symbol("vueuse-ssr-width");
|
|
226
|
+
// @__NO_SIDE_EFFECTS__
|
|
227
|
+
function useSSRWidth() {
|
|
228
|
+
const ssrWidth = vue.hasInjectionContext() ? /* @__PURE__ */ injectLocal(ssrWidthSymbol, null) : null;
|
|
229
|
+
return typeof ssrWidth === "number" ? ssrWidth : void 0;
|
|
230
|
+
}
|
|
231
|
+
function useMediaQuery(query, options = {}) {
|
|
232
|
+
const { window: window$1 = defaultWindow, ssrWidth = /* @__PURE__ */ useSSRWidth() } = options;
|
|
233
|
+
const isSupported = /* @__PURE__ */ useSupported(() => window$1 && "matchMedia" in window$1 && typeof window$1.matchMedia === "function");
|
|
234
|
+
const ssrSupport = vue.shallowRef(typeof ssrWidth === "number");
|
|
235
|
+
const mediaQuery = vue.shallowRef();
|
|
236
|
+
const matches = vue.shallowRef(false);
|
|
237
|
+
const handler = (event) => {
|
|
238
|
+
matches.value = event.matches;
|
|
239
|
+
};
|
|
240
|
+
vue.watchEffect(() => {
|
|
241
|
+
if (ssrSupport.value) {
|
|
242
|
+
ssrSupport.value = !isSupported.value;
|
|
243
|
+
matches.value = vue.toValue(query).split(",").some((queryString) => {
|
|
244
|
+
const not = queryString.includes("not all");
|
|
245
|
+
const minWidth = queryString.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
246
|
+
const maxWidth = queryString.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
247
|
+
let res = Boolean(minWidth || maxWidth);
|
|
248
|
+
if (minWidth && res) res = ssrWidth >= pxValue(minWidth[1]);
|
|
249
|
+
if (maxWidth && res) res = ssrWidth <= pxValue(maxWidth[1]);
|
|
250
|
+
return not ? !res : res;
|
|
251
|
+
});
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
if (!isSupported.value) return;
|
|
255
|
+
mediaQuery.value = window$1.matchMedia(vue.toValue(query));
|
|
256
|
+
matches.value = mediaQuery.value.matches;
|
|
257
|
+
});
|
|
258
|
+
useEventListener(mediaQuery, "change", handler, { passive: true });
|
|
259
|
+
return vue.computed(() => matches.value);
|
|
260
|
+
}
|
|
261
|
+
// @__NO_SIDE_EFFECTS__
|
|
262
|
+
function useBreakpoints(breakpoints, options = {}) {
|
|
263
|
+
function getValue$1(k, delta) {
|
|
264
|
+
let v = vue.toValue(breakpoints[vue.toValue(k)]);
|
|
265
|
+
if (delta != null) v = increaseWithUnit(v, delta);
|
|
266
|
+
if (typeof v === "number") v = `${v}px`;
|
|
267
|
+
return v;
|
|
268
|
+
}
|
|
269
|
+
const { window: window$1 = defaultWindow, strategy = "min-width", ssrWidth = /* @__PURE__ */ useSSRWidth() } = options;
|
|
270
|
+
const ssrSupport = typeof ssrWidth === "number";
|
|
271
|
+
const mounted = ssrSupport ? vue.shallowRef(false) : { value: true };
|
|
272
|
+
if (ssrSupport) tryOnMounted(() => mounted.value = !!window$1);
|
|
273
|
+
function match(query, size) {
|
|
274
|
+
if (!mounted.value && ssrSupport) return query === "min" ? ssrWidth >= pxValue(size) : ssrWidth <= pxValue(size);
|
|
275
|
+
if (!window$1) return false;
|
|
276
|
+
return window$1.matchMedia(`(${query}-width: ${size})`).matches;
|
|
277
|
+
}
|
|
278
|
+
const greaterOrEqual = (k) => {
|
|
279
|
+
return useMediaQuery(() => `(min-width: ${getValue$1(k)})`, options);
|
|
280
|
+
};
|
|
281
|
+
const smallerOrEqual = (k) => {
|
|
282
|
+
return useMediaQuery(() => `(max-width: ${getValue$1(k)})`, options);
|
|
283
|
+
};
|
|
284
|
+
const shortcutMethods = Object.keys(breakpoints).reduce((shortcuts, k) => {
|
|
285
|
+
Object.defineProperty(shortcuts, k, {
|
|
286
|
+
get: () => strategy === "min-width" ? greaterOrEqual(k) : smallerOrEqual(k),
|
|
287
|
+
enumerable: true,
|
|
288
|
+
configurable: true
|
|
289
|
+
});
|
|
290
|
+
return shortcuts;
|
|
291
|
+
}, {});
|
|
292
|
+
function current() {
|
|
293
|
+
const points = Object.keys(breakpoints).map((k) => [
|
|
294
|
+
k,
|
|
295
|
+
shortcutMethods[k],
|
|
296
|
+
pxValue(getValue$1(k))
|
|
297
|
+
]).sort((a, b) => a[2] - b[2]);
|
|
298
|
+
return vue.computed(() => points.filter(([, v]) => v.value).map(([k]) => k));
|
|
299
|
+
}
|
|
300
|
+
return Object.assign(shortcutMethods, {
|
|
301
|
+
greaterOrEqual,
|
|
302
|
+
smallerOrEqual,
|
|
303
|
+
greater(k) {
|
|
304
|
+
return useMediaQuery(() => `(min-width: ${getValue$1(k, 0.1)})`, options);
|
|
305
|
+
},
|
|
306
|
+
smaller(k) {
|
|
307
|
+
return useMediaQuery(() => `(max-width: ${getValue$1(k, -0.1)})`, options);
|
|
308
|
+
},
|
|
309
|
+
between(a, b) {
|
|
310
|
+
return useMediaQuery(() => `(min-width: ${getValue$1(a)}) and (max-width: ${getValue$1(b, -0.1)})`, options);
|
|
311
|
+
},
|
|
312
|
+
isGreater(k) {
|
|
313
|
+
return match("min", getValue$1(k, 0.1));
|
|
314
|
+
},
|
|
315
|
+
isGreaterOrEqual(k) {
|
|
316
|
+
return match("min", getValue$1(k));
|
|
317
|
+
},
|
|
318
|
+
isSmaller(k) {
|
|
319
|
+
return match("max", getValue$1(k, -0.1));
|
|
320
|
+
},
|
|
321
|
+
isSmallerOrEqual(k) {
|
|
322
|
+
return match("max", getValue$1(k));
|
|
323
|
+
},
|
|
324
|
+
isInBetween(a, b) {
|
|
325
|
+
return match("min", getValue$1(a)) && match("max", getValue$1(b, -0.1));
|
|
326
|
+
},
|
|
327
|
+
current,
|
|
328
|
+
active() {
|
|
329
|
+
const bps = current();
|
|
330
|
+
return vue.computed(() => bps.value.length === 0 ? "" : bps.value.at(strategy === "min-width" ? -1 : 0));
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
exports._sfc_main = _sfc_main;
|
|
335
|
+
exports.onClickOutside = onClickOutside;
|
|
336
|
+
exports.useBreakpoints = useBreakpoints;
|
|
337
|
+
//# sourceMappingURL=index-D7HVSFi2.cjs.map
|