@wirekyt/vue 0.0.1 → 0.0.3
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/dist/accordion.cjs +273 -0
- package/dist/accordion.d.cts +195 -0
- package/dist/accordion.d.ts +195 -0
- package/dist/accordion.js +250 -0
- package/dist/angle-slider.cjs +268 -0
- package/dist/angle-slider.d.cts +228 -0
- package/dist/angle-slider.d.ts +228 -0
- package/dist/angle-slider.js +244 -0
- package/dist/avatar.cjs +145 -0
- package/dist/avatar.d.cts +114 -0
- package/dist/avatar.d.ts +114 -0
- package/dist/avatar.js +126 -0
- package/dist/boolean-BCaEpMxQ.js +6 -0
- package/dist/boolean-Dyu9-5Wp.cjs +11 -0
- package/dist/carousel.cjs +342 -0
- package/dist/carousel.d.cts +303 -0
- package/dist/carousel.d.ts +303 -0
- package/dist/carousel.js +320 -0
- package/dist/checkbox.cjs +345 -0
- package/dist/checkbox.d.cts +272 -0
- package/dist/checkbox.d.ts +272 -0
- package/dist/checkbox.js +324 -0
- package/dist/clean-props--1kqQE0Y.js +8 -0
- package/dist/clean-props-MyKqus13.cjs +13 -0
- package/dist/client-only.cjs +17 -0
- package/dist/client-only.d.cts +18 -0
- package/dist/client-only.d.ts +18 -0
- package/dist/client-only.js +16 -0
- package/dist/clipboard.cjs +229 -0
- package/dist/clipboard.d.cts +203 -0
- package/dist/clipboard.d.ts +203 -0
- package/dist/clipboard.js +206 -0
- package/dist/collapsible-BnUr4dTo.cjs +232 -0
- package/dist/collapsible-jvqnRz16.js +179 -0
- package/dist/collapsible.cjs +23 -0
- package/dist/collapsible.d.cts +161 -0
- package/dist/collapsible.d.ts +161 -0
- package/dist/collapsible.js +2 -0
- package/dist/collection-B0onOyyK.cjs +254 -0
- package/dist/collection-Dg6EtML_.js +211 -0
- package/dist/collection.cjs +9 -0
- package/dist/collection.d.cts +2 -0
- package/dist/collection.d.ts +2 -0
- package/dist/collection.js +2 -0
- package/dist/color-picker.cjs +804 -0
- package/dist/color-picker.d.cts +605 -0
- package/dist/color-picker.d.ts +605 -0
- package/dist/color-picker.js +759 -0
- package/dist/combobox.cjs +552 -0
- package/dist/combobox.d.cts +442 -0
- package/dist/combobox.d.ts +442 -0
- package/dist/combobox.js +521 -0
- package/dist/create-split-props-BBxrD7TV.js +10 -0
- package/dist/create-split-props-Jx-IEwdk.cjs +15 -0
- package/dist/date-input.cjs +293 -0
- package/dist/date-input.d.cts +212 -0
- package/dist/date-input.d.ts +212 -0
- package/dist/date-input.js +270 -0
- package/dist/date-picker.cjs +821 -0
- package/dist/date-picker.d.cts +637 -0
- package/dist/date-picker.d.ts +637 -0
- package/dist/date-picker.js +776 -0
- package/dist/dialog.cjs +333 -0
- package/dist/dialog.d.cts +272 -0
- package/dist/dialog.d.ts +272 -0
- package/dist/dialog.js +308 -0
- package/dist/download-trigger.cjs +65 -0
- package/dist/download-trigger.d.cts +34 -0
- package/dist/download-trigger.d.ts +34 -0
- package/dist/download-trigger.js +63 -0
- package/dist/drawer.cjs +448 -0
- package/dist/drawer.d.cts +346 -0
- package/dist/drawer.d.ts +346 -0
- package/dist/drawer.js +415 -0
- package/dist/editable.cjs +331 -0
- package/dist/editable.d.cts +285 -0
- package/dist/editable.d.ts +285 -0
- package/dist/editable.js +306 -0
- package/dist/factory-8Ao0DEy3.js +34 -0
- package/dist/factory-BNwuanv4.d.cts +21 -0
- package/dist/factory-BNwuanv4.d.ts +21 -0
- package/dist/factory-JL7MPjkk.cjs +45 -0
- package/dist/field-C3pLqz1S.js +435 -0
- package/dist/field-DRz-v4rB.cjs +524 -0
- package/dist/field.cjs +22 -0
- package/dist/field.d.cts +344 -0
- package/dist/field.d.ts +344 -0
- package/dist/field.js +2 -0
- package/dist/fieldset-ByP_r1Uq.js +216 -0
- package/dist/fieldset-C5aj6Ims.cjs +275 -0
- package/dist/fieldset.cjs +17 -0
- package/dist/fieldset.d.cts +159 -0
- package/dist/fieldset.d.ts +159 -0
- package/dist/fieldset.js +2 -0
- package/dist/file-upload.cjs +421 -0
- package/dist/file-upload.d.cts +327 -0
- package/dist/file-upload.d.ts +327 -0
- package/dist/file-upload.js +392 -0
- package/dist/floating-panel.cjs +412 -0
- package/dist/floating-panel.d.cts +337 -0
- package/dist/floating-panel.d.ts +337 -0
- package/dist/floating-panel.js +383 -0
- package/dist/focus-trap.cjs +79 -0
- package/dist/focus-trap.d.cts +46 -0
- package/dist/focus-trap.d.ts +46 -0
- package/dist/focus-trap.js +78 -0
- package/dist/format.cjs +116 -0
- package/dist/format.d.cts +46 -0
- package/dist/format.d.ts +46 -0
- package/dist/format.js +106 -0
- package/dist/frame.cjs +93 -0
- package/dist/frame.d.cts +37 -0
- package/dist/frame.d.ts +37 -0
- package/dist/frame.js +92 -0
- package/dist/highlight.cjs +44 -0
- package/dist/highlight.d.cts +32 -0
- package/dist/highlight.d.ts +32 -0
- package/dist/highlight.js +42 -0
- package/dist/hover-card.cjs +269 -0
- package/dist/hover-card.d.cts +202 -0
- package/dist/hover-card.d.ts +202 -0
- package/dist/hover-card.js +246 -0
- package/dist/image-cropper.cjs +252 -0
- package/dist/image-cropper.d.cts +207 -0
- package/dist/image-cropper.d.ts +207 -0
- package/dist/image-cropper.js +235 -0
- package/dist/index-B-o8jLyV.d.cts +31 -0
- package/dist/index-BSoF1D-v.d.ts +31 -0
- package/dist/index-BTNfeIXf.d.ts +104 -0
- package/dist/index-C8zR9eg3.d.ts +444 -0
- package/dist/index-Cc4qS0rQ.d.cts +38 -0
- package/dist/index-Cc4qS0rQ.d.ts +38 -0
- package/dist/index-DaLvr6SW.d.ts +37 -0
- package/dist/index-Di84rFjS.d.cts +444 -0
- package/dist/index-Dpm1wGVS.d.cts +74 -0
- package/dist/index-Zc9P69Ka.d.cts +104 -0
- package/dist/index-kCBQJqpU.d.ts +74 -0
- package/dist/index-vIbTjrJ-.d.cts +37 -0
- package/dist/index.cjs +43 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/json-tree-view.cjs +346 -0
- package/dist/json-tree-view.d.cts +86 -0
- package/dist/json-tree-view.d.ts +86 -0
- package/dist/json-tree-view.js +336 -0
- package/dist/listbox.cjs +386 -0
- package/dist/listbox.d.cts +323 -0
- package/dist/listbox.d.ts +323 -0
- package/dist/listbox.js +361 -0
- package/dist/marquee.cjs +256 -0
- package/dist/marquee.d.cts +208 -0
- package/dist/marquee.d.ts +208 -0
- package/dist/marquee.js +235 -0
- package/dist/menu.cjs +650 -0
- package/dist/menu.d.cts +501 -0
- package/dist/menu.d.ts +501 -0
- package/dist/menu.js +613 -0
- package/dist/navigation-menu.cjs +408 -0
- package/dist/navigation-menu.d.cts +271 -0
- package/dist/navigation-menu.d.ts +271 -0
- package/dist/navigation-menu.js +380 -0
- package/dist/number-input.cjs +298 -0
- package/dist/number-input.d.cts +253 -0
- package/dist/number-input.d.ts +253 -0
- package/dist/number-input.js +274 -0
- package/dist/pagination.cjs +249 -0
- package/dist/pagination.d.cts +209 -0
- package/dist/pagination.d.ts +209 -0
- package/dist/pagination.js +226 -0
- package/dist/password-input.cjs +232 -0
- package/dist/password-input.d.cts +208 -0
- package/dist/password-input.d.ts +208 -0
- package/dist/password-input.js +210 -0
- package/dist/pin-input.cjs +245 -0
- package/dist/pin-input.d.cts +199 -0
- package/dist/pin-input.d.ts +199 -0
- package/dist/pin-input.js +224 -0
- package/dist/popover.cjs +377 -0
- package/dist/popover.d.cts +324 -0
- package/dist/popover.d.ts +324 -0
- package/dist/popover.js +349 -0
- package/dist/presence-DD3l4Tgb.cjs +60 -0
- package/dist/presence-jaHZaD_O.js +43 -0
- package/dist/presence.cjs +7 -0
- package/dist/presence.d.cts +3 -0
- package/dist/presence.d.ts +3 -0
- package/dist/presence.js +3 -0
- package/dist/progress.cjs +270 -0
- package/dist/progress.d.cts +229 -0
- package/dist/progress.d.ts +229 -0
- package/dist/progress.js +245 -0
- package/dist/providers-5QhcwgSd.cjs +190 -0
- package/dist/providers-C3XQH-uu.js +119 -0
- package/dist/qr-code.cjs +195 -0
- package/dist/qr-code.d.cts +157 -0
- package/dist/qr-code.d.ts +157 -0
- package/dist/qr-code.js +174 -0
- package/dist/radio-group.cjs +274 -0
- package/dist/radio-group.d.cts +230 -0
- package/dist/radio-group.d.ts +230 -0
- package/dist/radio-group.js +249 -0
- package/dist/rating-group.cjs +243 -0
- package/dist/rating-group.d.cts +200 -0
- package/dist/rating-group.d.ts +200 -0
- package/dist/rating-group.js +220 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/rolldown-runtime-DakpK96I.cjs +43 -0
- package/dist/scroll-area.cjs +206 -0
- package/dist/scroll-area.d.cts +169 -0
- package/dist/scroll-area.d.ts +169 -0
- package/dist/scroll-area.js +184 -0
- package/dist/segment-group.cjs +318 -0
- package/dist/segment-group.d.cts +229 -0
- package/dist/segment-group.d.ts +229 -0
- package/dist/segment-group.js +298 -0
- package/dist/select.cjs +560 -0
- package/dist/select.d.cts +430 -0
- package/dist/select.d.ts +430 -0
- package/dist/select.js +523 -0
- package/dist/signature-pad.cjs +260 -0
- package/dist/signature-pad.d.cts +200 -0
- package/dist/signature-pad.d.ts +200 -0
- package/dist/signature-pad.js +237 -0
- package/dist/slider.cjs +350 -0
- package/dist/slider.d.cts +299 -0
- package/dist/slider.d.ts +299 -0
- package/dist/slider.js +323 -0
- package/dist/splitter.cjs +225 -0
- package/dist/splitter.d.cts +166 -0
- package/dist/splitter.d.ts +166 -0
- package/dist/splitter.js +198 -0
- package/dist/steps.cjs +348 -0
- package/dist/steps.d.cts +289 -0
- package/dist/steps.d.ts +289 -0
- package/dist/steps.js +319 -0
- package/dist/swap.cjs +154 -0
- package/dist/swap.d.cts +98 -0
- package/dist/swap.d.ts +98 -0
- package/dist/swap.js +141 -0
- package/dist/switch.cjs +213 -0
- package/dist/switch.d.cts +177 -0
- package/dist/switch.d.ts +177 -0
- package/dist/switch.js +192 -0
- package/dist/tabs.cjs +240 -0
- package/dist/tabs.d.cts +179 -0
- package/dist/tabs.d.ts +179 -0
- package/dist/tabs.js +218 -0
- package/dist/tags-input.cjs +405 -0
- package/dist/tags-input.d.cts +340 -0
- package/dist/tags-input.d.ts +340 -0
- package/dist/tags-input.js +376 -0
- package/dist/timer.cjs +221 -0
- package/dist/timer.d.cts +176 -0
- package/dist/timer.d.ts +176 -0
- package/dist/timer.js +199 -0
- package/dist/toast.cjs +211 -0
- package/dist/toast.d.cts +157 -0
- package/dist/toast.d.ts +157 -0
- package/dist/toast.js +189 -0
- package/dist/toggle-group.cjs +150 -0
- package/dist/toggle-group.d.cts +122 -0
- package/dist/toggle-group.d.ts +122 -0
- package/dist/toggle-group.js +132 -0
- package/dist/toggle.cjs +107 -0
- package/dist/toggle.d.cts +98 -0
- package/dist/toggle.d.ts +98 -0
- package/dist/toggle.js +94 -0
- package/dist/tooltip.cjs +265 -0
- package/dist/tooltip.d.cts +204 -0
- package/dist/tooltip.d.ts +204 -0
- package/dist/tooltip.js +242 -0
- package/dist/tour.cjs +418 -0
- package/dist/tour.d.cts +304 -0
- package/dist/tour.d.ts +304 -0
- package/dist/tour.js +374 -0
- package/dist/tree-view-DnTVwhew.cjs +651 -0
- package/dist/tree-view-goUH3_RC.js +508 -0
- package/dist/tree-view.cjs +41 -0
- package/dist/tree-view.d.cts +3 -0
- package/dist/tree-view.d.ts +3 -0
- package/dist/tree-view.js +3 -0
- package/dist/types-rSRkzyd6.d.cts +13 -0
- package/dist/types-rSRkzyd6.d.ts +13 -0
- package/dist/use-presence-BSp_dR-C.d.cts +22 -0
- package/dist/use-presence-CtEY6ZT8.cjs +49 -0
- package/dist/use-presence-DkGU_j9h.d.ts +22 -0
- package/dist/use-presence-oNdFU2c2.js +42 -0
- package/dist/utils-D95V66v9.js +548 -0
- package/dist/utils-XrBZd2Yk.cjs +625 -0
- package/package.json +277 -6
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
3
|
+
const require_utils = require("./utils-XrBZd2Yk.cjs");
|
|
4
|
+
const require_providers = require("./providers-5QhcwgSd.cjs");
|
|
5
|
+
const require_clean_props = require("./clean-props-MyKqus13.cjs");
|
|
6
|
+
const require_factory = require("./factory-JL7MPjkk.cjs");
|
|
7
|
+
let vue = require("vue");
|
|
8
|
+
let _wirekyt_dom_machines_pagination = require("@wirekyt/dom/machines/pagination");
|
|
9
|
+
_wirekyt_dom_machines_pagination = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_pagination, 1);
|
|
10
|
+
//#region src/components/pagination/use-context.ts
|
|
11
|
+
const [PaginationProvider, usePaginationContext] = require_utils.createContext("PaginationContext");
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/pagination/context.vue
|
|
14
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
15
|
+
__name: "context",
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const pagination = usePaginationContext();
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(pagination))));
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/pagination/ellipsis.vue
|
|
25
|
+
const _sfc_main$1 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
26
|
+
__name: "ellipsis",
|
|
27
|
+
props: {
|
|
28
|
+
index: {},
|
|
29
|
+
asChild: { type: Boolean }
|
|
30
|
+
},
|
|
31
|
+
setup(__props) {
|
|
32
|
+
const props = __props;
|
|
33
|
+
const pagination = usePaginationContext();
|
|
34
|
+
require_utils.useForwardExpose();
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(pagination).getEllipsisProps(props), { "as-child": __props.asChild }), {
|
|
37
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
38
|
+
_: 3
|
|
39
|
+
}, 16, ["as-child"]);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/components/pagination/first-trigger.vue
|
|
45
|
+
const _sfc_main$2 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
46
|
+
__name: "first-trigger",
|
|
47
|
+
props: { asChild: { type: Boolean } },
|
|
48
|
+
setup(__props) {
|
|
49
|
+
const pagination = usePaginationContext();
|
|
50
|
+
require_utils.useForwardExpose();
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(pagination).getFirstTriggerProps(), { "as-child": __props.asChild }), {
|
|
53
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
54
|
+
_: 3
|
|
55
|
+
}, 16, ["as-child"]);
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/components/pagination/item.vue
|
|
61
|
+
const _sfc_main$3 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
62
|
+
__name: "item",
|
|
63
|
+
props: {
|
|
64
|
+
type: {},
|
|
65
|
+
value: {},
|
|
66
|
+
asChild: { type: Boolean }
|
|
67
|
+
},
|
|
68
|
+
setup(__props) {
|
|
69
|
+
const props = __props;
|
|
70
|
+
const pagination = usePaginationContext();
|
|
71
|
+
require_utils.useForwardExpose();
|
|
72
|
+
return (_ctx, _cache) => {
|
|
73
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(pagination).getItemProps(props), { "as-child": __props.asChild }), {
|
|
74
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
75
|
+
_: 3
|
|
76
|
+
}, 16, ["as-child"]);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/pagination/last-trigger.vue
|
|
82
|
+
const _sfc_main$4 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
83
|
+
__name: "last-trigger",
|
|
84
|
+
props: { asChild: { type: Boolean } },
|
|
85
|
+
setup(__props) {
|
|
86
|
+
const pagination = usePaginationContext();
|
|
87
|
+
require_utils.useForwardExpose();
|
|
88
|
+
return (_ctx, _cache) => {
|
|
89
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(pagination).getLastTriggerProps(), { "as-child": __props.asChild }), {
|
|
90
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
91
|
+
_: 3
|
|
92
|
+
}, 16, ["as-child"]);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/components/pagination/next-trigger.vue
|
|
98
|
+
const _sfc_main$5 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
99
|
+
__name: "next-trigger",
|
|
100
|
+
props: { asChild: { type: Boolean } },
|
|
101
|
+
setup(__props) {
|
|
102
|
+
const pagination = usePaginationContext();
|
|
103
|
+
require_utils.useForwardExpose();
|
|
104
|
+
return (_ctx, _cache) => {
|
|
105
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(pagination).getNextTriggerProps(), { "as-child": __props.asChild }), {
|
|
106
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
107
|
+
_: 3
|
|
108
|
+
}, 16, ["as-child"]);
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/components/pagination/prev-trigger.vue
|
|
114
|
+
const _sfc_main$6 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
115
|
+
__name: "prev-trigger",
|
|
116
|
+
props: { asChild: { type: Boolean } },
|
|
117
|
+
setup(__props) {
|
|
118
|
+
const pagination = usePaginationContext();
|
|
119
|
+
require_utils.useForwardExpose();
|
|
120
|
+
return (_ctx, _cache) => {
|
|
121
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(pagination).getPrevTriggerProps(), { "as-child": __props.asChild }), {
|
|
122
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
123
|
+
_: 3
|
|
124
|
+
}, 16, ["as-child"]);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/components/pagination/root-provider.vue
|
|
130
|
+
const _sfc_main$8 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
131
|
+
__name: "root-provider",
|
|
132
|
+
props: {
|
|
133
|
+
value: {},
|
|
134
|
+
asChild: { type: Boolean }
|
|
135
|
+
},
|
|
136
|
+
setup(__props) {
|
|
137
|
+
const props = __props;
|
|
138
|
+
const pagination = (0, vue.computed)(() => props.value);
|
|
139
|
+
PaginationProvider(pagination);
|
|
140
|
+
require_utils.useForwardExpose();
|
|
141
|
+
return (_ctx, _cache) => {
|
|
142
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).nav, (0, vue.mergeProps)(pagination.value.getRootProps(), { "as-child": __props.asChild }), {
|
|
143
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
144
|
+
_: 3
|
|
145
|
+
}, 16, ["as-child"]);
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region src/components/pagination/use-pagination.ts
|
|
151
|
+
const usePagination = (props = {}, emit) => {
|
|
152
|
+
const id = (0, vue.useId)();
|
|
153
|
+
const env = require_providers.useEnvironmentContext(require_providers.DEFAULT_ENVIRONMENT);
|
|
154
|
+
const locale = require_providers.useLocaleContext(require_providers.DEFAULT_LOCALE);
|
|
155
|
+
const context = (0, vue.computed)(() => {
|
|
156
|
+
const localeProps = (0, vue.toValue)(props);
|
|
157
|
+
return {
|
|
158
|
+
id,
|
|
159
|
+
dir: locale.value.dir,
|
|
160
|
+
getRootNode: env?.value.getRootNode,
|
|
161
|
+
...require_clean_props.cleanProps(localeProps),
|
|
162
|
+
onPageChange: (details) => {
|
|
163
|
+
emit?.("pageChange", details);
|
|
164
|
+
emit?.("update:page", details.page);
|
|
165
|
+
localeProps.onPageChange?.(details);
|
|
166
|
+
},
|
|
167
|
+
onPageSizeChange: (details) => {
|
|
168
|
+
emit?.("pageSizeChange", details);
|
|
169
|
+
emit?.("update:pageSize", details.pageSize);
|
|
170
|
+
localeProps.onPageSizeChange?.(details);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
});
|
|
174
|
+
const service = require_utils.useMachine(_wirekyt_dom_machines_pagination.machine, context);
|
|
175
|
+
return (0, vue.computed)(() => _wirekyt_dom_machines_pagination.connect(service, require_utils.normalizeProps));
|
|
176
|
+
};
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region src/components/pagination/root.vue
|
|
179
|
+
const _sfc_main$7 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
180
|
+
__name: "root",
|
|
181
|
+
props: {
|
|
182
|
+
count: {},
|
|
183
|
+
defaultPage: {},
|
|
184
|
+
defaultPageSize: {},
|
|
185
|
+
id: {},
|
|
186
|
+
ids: {},
|
|
187
|
+
page: {},
|
|
188
|
+
pageSize: {},
|
|
189
|
+
siblingCount: {},
|
|
190
|
+
translations: {},
|
|
191
|
+
type: {},
|
|
192
|
+
getPageUrl: { type: Function },
|
|
193
|
+
asChild: { type: Boolean }
|
|
194
|
+
},
|
|
195
|
+
emits: [
|
|
196
|
+
"pageChange",
|
|
197
|
+
"pageSizeChange",
|
|
198
|
+
"update:page",
|
|
199
|
+
"update:pageSize"
|
|
200
|
+
],
|
|
201
|
+
setup(__props, { emit: __emit }) {
|
|
202
|
+
const pagination = usePagination(__props, __emit);
|
|
203
|
+
PaginationProvider(pagination);
|
|
204
|
+
require_utils.useForwardExpose();
|
|
205
|
+
return (_ctx, _cache) => {
|
|
206
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).nav, (0, vue.mergeProps)((0, vue.unref)(pagination).getRootProps(), { "as-child": __props.asChild }), {
|
|
207
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
208
|
+
_: 3
|
|
209
|
+
}, 16, ["as-child"]);
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region src/components/pagination/pagination.ts
|
|
215
|
+
var pagination_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
216
|
+
Context: () => _sfc_main,
|
|
217
|
+
Ellipsis: () => _sfc_main$1,
|
|
218
|
+
FirstTrigger: () => _sfc_main$2,
|
|
219
|
+
Item: () => _sfc_main$3,
|
|
220
|
+
LastTrigger: () => _sfc_main$4,
|
|
221
|
+
NextTrigger: () => _sfc_main$5,
|
|
222
|
+
PrevTrigger: () => _sfc_main$6,
|
|
223
|
+
Root: () => _sfc_main$7,
|
|
224
|
+
RootProvider: () => _sfc_main$8
|
|
225
|
+
});
|
|
226
|
+
//#endregion
|
|
227
|
+
Object.defineProperty(exports, "Pagination", {
|
|
228
|
+
enumerable: true,
|
|
229
|
+
get: function() {
|
|
230
|
+
return pagination_exports;
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
exports.PaginationContext = _sfc_main;
|
|
234
|
+
exports.PaginationEllipsis = _sfc_main$1;
|
|
235
|
+
exports.PaginationFirstTrigger = _sfc_main$2;
|
|
236
|
+
exports.PaginationItem = _sfc_main$3;
|
|
237
|
+
exports.PaginationLastTrigger = _sfc_main$4;
|
|
238
|
+
exports.PaginationNextTrigger = _sfc_main$5;
|
|
239
|
+
exports.PaginationPrevTrigger = _sfc_main$6;
|
|
240
|
+
exports.PaginationRoot = _sfc_main$7;
|
|
241
|
+
exports.PaginationRootProvider = _sfc_main$8;
|
|
242
|
+
Object.defineProperty(exports, "paginationAnatomy", {
|
|
243
|
+
enumerable: true,
|
|
244
|
+
get: function() {
|
|
245
|
+
return _wirekyt_dom_machines_pagination.anatomy;
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
exports.usePagination = usePagination;
|
|
249
|
+
exports.usePaginationContext = usePaginationContext;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.cjs";
|
|
2
|
+
import { i as EmitFn$1, l as PropTypes, o as Optional } from "./index-B-o8jLyV.cjs";
|
|
3
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
4
|
+
import * as pagination from "@wirekyt/dom/machines/pagination";
|
|
5
|
+
import { EllipsisProps, ItemLabelDetails, ItemLabelDetails as PaginationItemLabelDetails, ItemProps, PageChangeDetails, PageChangeDetails as PaginationPageChangeDetails, PageSizeChangeDetails, PageSizeChangeDetails as PaginationPageSizeChangeDetails, PageUrlDetails, PageUrlDetails as PaginationPageUrlDetails, anatomy as paginationAnatomy } from "@wirekyt/dom/machines/pagination";
|
|
6
|
+
//#region src/components/pagination/ellipsis.vue.d.ts
|
|
7
|
+
interface PaginationEllipsisBaseProps extends EllipsisProps, PolymorphicProps {}
|
|
8
|
+
interface PaginationEllipsisProps extends PaginationEllipsisBaseProps,
|
|
9
|
+
/**
|
|
10
|
+
* @vue-ignore
|
|
11
|
+
*/
|
|
12
|
+
HTMLAttributes {}
|
|
13
|
+
declare const _default$1: typeof __VLS_export$8;
|
|
14
|
+
declare const __VLS_export$8: __VLS_WithSlots$8<import("vue").DefineComponent<PaginationEllipsisProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationEllipsisProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
15
|
+
default?: (props: {}) => any;
|
|
16
|
+
}>;
|
|
17
|
+
type __VLS_WithSlots$8<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/pagination/first-trigger.vue.d.ts
|
|
24
|
+
interface PaginationFirstTriggerBaseProps extends PolymorphicProps {}
|
|
25
|
+
interface PaginationFirstTriggerProps extends PaginationFirstTriggerBaseProps,
|
|
26
|
+
/**
|
|
27
|
+
* @vue-ignore
|
|
28
|
+
*/
|
|
29
|
+
ButtonHTMLAttributes {}
|
|
30
|
+
declare const _default$2: typeof __VLS_export$7;
|
|
31
|
+
declare const __VLS_export$7: __VLS_WithSlots$7<import("vue").DefineComponent<PaginationFirstTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationFirstTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
32
|
+
default?: (props: {}) => any;
|
|
33
|
+
}>;
|
|
34
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/pagination/item.vue.d.ts
|
|
41
|
+
interface PaginationItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
42
|
+
interface PaginationItemProps extends PaginationItemBaseProps,
|
|
43
|
+
/**
|
|
44
|
+
* @vue-ignore
|
|
45
|
+
*/
|
|
46
|
+
Omit<ButtonHTMLAttributes, "type" | "value"> {}
|
|
47
|
+
declare const _default$3: typeof __VLS_export$6;
|
|
48
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<import("vue").DefineComponent<PaginationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
49
|
+
default?: (props: {}) => any;
|
|
50
|
+
}>;
|
|
51
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
52
|
+
new (): {
|
|
53
|
+
$slots: S;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/components/pagination/last-trigger.vue.d.ts
|
|
58
|
+
interface PaginationLastTriggerBaseProps extends PolymorphicProps {}
|
|
59
|
+
interface PaginationLastTriggerProps extends PaginationLastTriggerBaseProps,
|
|
60
|
+
/**
|
|
61
|
+
* @vue-ignore
|
|
62
|
+
*/
|
|
63
|
+
ButtonHTMLAttributes {}
|
|
64
|
+
declare const _default$4: typeof __VLS_export$5;
|
|
65
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<PaginationLastTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationLastTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
66
|
+
default?: (props: {}) => any;
|
|
67
|
+
}>;
|
|
68
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
69
|
+
new (): {
|
|
70
|
+
$slots: S;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/pagination/next-trigger.vue.d.ts
|
|
75
|
+
interface PaginationNextTriggerBaseProps extends PolymorphicProps {}
|
|
76
|
+
interface PaginationNextTriggerProps extends PaginationNextTriggerBaseProps,
|
|
77
|
+
/**
|
|
78
|
+
* @vue-ignore
|
|
79
|
+
*/
|
|
80
|
+
ButtonHTMLAttributes {}
|
|
81
|
+
declare const _default$5: typeof __VLS_export$4;
|
|
82
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<PaginationNextTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationNextTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
83
|
+
default?: (props: {}) => any;
|
|
84
|
+
}>;
|
|
85
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
86
|
+
new (): {
|
|
87
|
+
$slots: S;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/components/pagination/prev-trigger.vue.d.ts
|
|
92
|
+
interface PaginationPrevTriggerBaseProps extends PolymorphicProps {}
|
|
93
|
+
interface PaginationPrevTriggerProps extends PaginationPrevTriggerBaseProps,
|
|
94
|
+
/**
|
|
95
|
+
* @vue-ignore
|
|
96
|
+
*/
|
|
97
|
+
ButtonHTMLAttributes {}
|
|
98
|
+
declare const _default$6: typeof __VLS_export$3;
|
|
99
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<PaginationPrevTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationPrevTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
100
|
+
default?: (props: {}) => any;
|
|
101
|
+
}>;
|
|
102
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
103
|
+
new (): {
|
|
104
|
+
$slots: S;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/components/pagination/root-provider.vue.d.ts
|
|
109
|
+
interface RootProviderProps {
|
|
110
|
+
value: UnwrapRef<UsePaginationReturn>;
|
|
111
|
+
}
|
|
112
|
+
interface PaginationRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
113
|
+
interface PaginationRootProviderProps extends PaginationRootProviderBaseProps,
|
|
114
|
+
/**
|
|
115
|
+
* @vue-ignore
|
|
116
|
+
*/
|
|
117
|
+
HTMLAttributes {}
|
|
118
|
+
declare const _default$8: typeof __VLS_export$2;
|
|
119
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<PaginationRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
120
|
+
default?: (props: {}) => any;
|
|
121
|
+
}>;
|
|
122
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
123
|
+
new (): {
|
|
124
|
+
$slots: S;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/components/pagination/types.d.ts
|
|
129
|
+
interface RootProps {
|
|
130
|
+
count?: number;
|
|
131
|
+
defaultPage?: number;
|
|
132
|
+
defaultPageSize?: number;
|
|
133
|
+
id?: string;
|
|
134
|
+
ids?: Partial<{
|
|
135
|
+
root: string;
|
|
136
|
+
ellipsis(index: number): string;
|
|
137
|
+
prevTrigger: string;
|
|
138
|
+
nextTrigger: string;
|
|
139
|
+
item(page: number): string;
|
|
140
|
+
}>;
|
|
141
|
+
page?: number;
|
|
142
|
+
pageSize?: number;
|
|
143
|
+
siblingCount?: number;
|
|
144
|
+
translations?: pagination.IntlTranslations;
|
|
145
|
+
type?: "button" | "link";
|
|
146
|
+
getPageUrl?: (details: pagination.PageUrlDetails) => string;
|
|
147
|
+
}
|
|
148
|
+
type RootEmits = {
|
|
149
|
+
pageChange: [details: pagination.PageChangeDetails];
|
|
150
|
+
pageSizeChange: [details: pagination.PageSizeChangeDetails];
|
|
151
|
+
"update:page": [page: pagination.PageChangeDetails["page"]];
|
|
152
|
+
"update:pageSize": [pageSize: pagination.PageSizeChangeDetails["pageSize"]];
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/components/pagination/root.vue.d.ts
|
|
156
|
+
interface PaginationRootBaseProps extends RootProps, PolymorphicProps {}
|
|
157
|
+
interface PaginationRootProps extends PaginationRootBaseProps,
|
|
158
|
+
/**
|
|
159
|
+
* @vue-ignore
|
|
160
|
+
*/
|
|
161
|
+
HTMLAttributes {}
|
|
162
|
+
interface PaginationRootEmits extends RootEmits {}
|
|
163
|
+
declare const _default$7: typeof __VLS_export$1;
|
|
164
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<PaginationRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
165
|
+
pageChange: (details: import("@wirekyt/dom/machines/pagination").PageChangeDetails) => any;
|
|
166
|
+
pageSizeChange: (details: import("@wirekyt/dom/machines/pagination").PageSizeChangeDetails) => any;
|
|
167
|
+
"update:page": (page: number) => any;
|
|
168
|
+
"update:pageSize": (pageSize: number) => any;
|
|
169
|
+
}, string, import("vue").PublicProps, Readonly<PaginationRootProps> & Readonly<{
|
|
170
|
+
onPageChange?: ((details: import("@wirekyt/dom/machines/pagination").PageChangeDetails) => any) | undefined;
|
|
171
|
+
onPageSizeChange?: ((details: import("@wirekyt/dom/machines/pagination").PageSizeChangeDetails) => any) | undefined;
|
|
172
|
+
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
173
|
+
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
174
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
175
|
+
default?: (props: {}) => any;
|
|
176
|
+
}>;
|
|
177
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
178
|
+
new (): {
|
|
179
|
+
$slots: S;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
declare namespace pagination_d_exports {
|
|
183
|
+
export { _default as Context, PaginationContextProps as ContextProps, _default$1 as Ellipsis, PaginationEllipsisBaseProps as EllipsisBaseProps, PaginationEllipsisProps as EllipsisProps, _default$2 as FirstTrigger, PaginationFirstTriggerBaseProps as FirstTriggerBaseProps, PaginationFirstTriggerProps as FirstTriggerProps, _default$3 as Item, PaginationItemBaseProps as ItemBaseProps, ItemLabelDetails, PaginationItemProps as ItemProps, _default$4 as LastTrigger, PaginationLastTriggerBaseProps as LastTriggerBaseProps, PaginationLastTriggerProps as LastTriggerProps, _default$5 as NextTrigger, PaginationNextTriggerBaseProps as NextTriggerBaseProps, PaginationNextTriggerProps as NextTriggerProps, PageChangeDetails, PageSizeChangeDetails, PageUrlDetails, _default$6 as PrevTrigger, PaginationPrevTriggerBaseProps as PrevTriggerBaseProps, PaginationPrevTriggerProps as PrevTriggerProps, _default$7 as Root, PaginationRootBaseProps as RootBaseProps, PaginationRootEmits as RootEmits, PaginationRootProps as RootProps, _default$8 as RootProvider, PaginationRootProviderBaseProps as RootProviderBaseProps, PaginationRootProviderProps as RootProviderProps };
|
|
184
|
+
}
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region src/components/pagination/use-pagination.d.ts
|
|
187
|
+
interface UsePaginationProps extends Optional<Omit<pagination.Props, "dir" | "getRootNode">, "id"> {}
|
|
188
|
+
interface UsePaginationReturn extends ComputedRef<pagination.Api<PropTypes>> {}
|
|
189
|
+
declare const usePagination: (props?: MaybeRef<UsePaginationProps>, emit?: EmitFn$1<PaginationRootEmits>) => UsePaginationReturn;
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region src/components/pagination/use-context.d.ts
|
|
192
|
+
interface UsePaginationContext extends UsePaginationReturn {}
|
|
193
|
+
declare const PaginationProvider: (opts: UsePaginationContext) => void, usePaginationContext: (fallback?: UsePaginationContext | undefined) => UsePaginationContext;
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region src/components/pagination/context.vue.d.ts
|
|
196
|
+
interface PaginationContextProps extends SlotsType<{
|
|
197
|
+
default: UnwrapRef<UsePaginationContext>;
|
|
198
|
+
}> {}
|
|
199
|
+
declare const _default: typeof __VLS_export;
|
|
200
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
201
|
+
default(pagination: UnwrapRef<UsePaginationContext>): unknown;
|
|
202
|
+
}>;
|
|
203
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
204
|
+
new (): {
|
|
205
|
+
$slots: S;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
//#endregion
|
|
209
|
+
export { pagination_d_exports as Pagination, _default as PaginationContext, type PaginationContextProps, _default$1 as PaginationEllipsis, type PaginationEllipsisBaseProps, type PaginationEllipsisProps, _default$2 as PaginationFirstTrigger, type PaginationFirstTriggerBaseProps, type PaginationFirstTriggerProps, _default$3 as PaginationItem, type PaginationItemBaseProps, type PaginationItemLabelDetails, type PaginationItemProps, _default$4 as PaginationLastTrigger, type PaginationLastTriggerBaseProps, type PaginationLastTriggerProps, _default$5 as PaginationNextTrigger, type PaginationNextTriggerBaseProps, type PaginationNextTriggerProps, type PaginationPageChangeDetails, type PaginationPageSizeChangeDetails, type PaginationPageUrlDetails, _default$6 as PaginationPrevTrigger, type PaginationPrevTriggerBaseProps, type PaginationPrevTriggerProps, _default$7 as PaginationRoot, type PaginationRootBaseProps, type PaginationRootEmits, type PaginationRootProps, _default$8 as PaginationRootProvider, type PaginationRootProviderBaseProps, type PaginationRootProviderProps, type UsePaginationContext, type UsePaginationProps, type UsePaginationReturn, paginationAnatomy, usePagination, usePaginationContext };
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.js";
|
|
2
|
+
import { i as EmitFn$1, l as PropTypes, o as Optional } from "./index-BSoF1D-v.js";
|
|
3
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
4
|
+
import * as pagination from "@wirekyt/dom/machines/pagination";
|
|
5
|
+
import { EllipsisProps, ItemLabelDetails, ItemLabelDetails as PaginationItemLabelDetails, ItemProps, PageChangeDetails, PageChangeDetails as PaginationPageChangeDetails, PageSizeChangeDetails, PageSizeChangeDetails as PaginationPageSizeChangeDetails, PageUrlDetails, PageUrlDetails as PaginationPageUrlDetails, anatomy as paginationAnatomy } from "@wirekyt/dom/machines/pagination";
|
|
6
|
+
//#region src/components/pagination/ellipsis.vue.d.ts
|
|
7
|
+
interface PaginationEllipsisBaseProps extends EllipsisProps, PolymorphicProps {}
|
|
8
|
+
interface PaginationEllipsisProps extends PaginationEllipsisBaseProps,
|
|
9
|
+
/**
|
|
10
|
+
* @vue-ignore
|
|
11
|
+
*/
|
|
12
|
+
HTMLAttributes {}
|
|
13
|
+
declare const _default$1: typeof __VLS_export$8;
|
|
14
|
+
declare const __VLS_export$8: __VLS_WithSlots$8<import("vue").DefineComponent<PaginationEllipsisProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationEllipsisProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
15
|
+
default?: (props: {}) => any;
|
|
16
|
+
}>;
|
|
17
|
+
type __VLS_WithSlots$8<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/pagination/first-trigger.vue.d.ts
|
|
24
|
+
interface PaginationFirstTriggerBaseProps extends PolymorphicProps {}
|
|
25
|
+
interface PaginationFirstTriggerProps extends PaginationFirstTriggerBaseProps,
|
|
26
|
+
/**
|
|
27
|
+
* @vue-ignore
|
|
28
|
+
*/
|
|
29
|
+
ButtonHTMLAttributes {}
|
|
30
|
+
declare const _default$2: typeof __VLS_export$7;
|
|
31
|
+
declare const __VLS_export$7: __VLS_WithSlots$7<import("vue").DefineComponent<PaginationFirstTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationFirstTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
32
|
+
default?: (props: {}) => any;
|
|
33
|
+
}>;
|
|
34
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/pagination/item.vue.d.ts
|
|
41
|
+
interface PaginationItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
42
|
+
interface PaginationItemProps extends PaginationItemBaseProps,
|
|
43
|
+
/**
|
|
44
|
+
* @vue-ignore
|
|
45
|
+
*/
|
|
46
|
+
Omit<ButtonHTMLAttributes, "type" | "value"> {}
|
|
47
|
+
declare const _default$3: typeof __VLS_export$6;
|
|
48
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<import("vue").DefineComponent<PaginationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
49
|
+
default?: (props: {}) => any;
|
|
50
|
+
}>;
|
|
51
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
52
|
+
new (): {
|
|
53
|
+
$slots: S;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/components/pagination/last-trigger.vue.d.ts
|
|
58
|
+
interface PaginationLastTriggerBaseProps extends PolymorphicProps {}
|
|
59
|
+
interface PaginationLastTriggerProps extends PaginationLastTriggerBaseProps,
|
|
60
|
+
/**
|
|
61
|
+
* @vue-ignore
|
|
62
|
+
*/
|
|
63
|
+
ButtonHTMLAttributes {}
|
|
64
|
+
declare const _default$4: typeof __VLS_export$5;
|
|
65
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<PaginationLastTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationLastTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
66
|
+
default?: (props: {}) => any;
|
|
67
|
+
}>;
|
|
68
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
69
|
+
new (): {
|
|
70
|
+
$slots: S;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/pagination/next-trigger.vue.d.ts
|
|
75
|
+
interface PaginationNextTriggerBaseProps extends PolymorphicProps {}
|
|
76
|
+
interface PaginationNextTriggerProps extends PaginationNextTriggerBaseProps,
|
|
77
|
+
/**
|
|
78
|
+
* @vue-ignore
|
|
79
|
+
*/
|
|
80
|
+
ButtonHTMLAttributes {}
|
|
81
|
+
declare const _default$5: typeof __VLS_export$4;
|
|
82
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<PaginationNextTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationNextTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
83
|
+
default?: (props: {}) => any;
|
|
84
|
+
}>;
|
|
85
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
86
|
+
new (): {
|
|
87
|
+
$slots: S;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/components/pagination/prev-trigger.vue.d.ts
|
|
92
|
+
interface PaginationPrevTriggerBaseProps extends PolymorphicProps {}
|
|
93
|
+
interface PaginationPrevTriggerProps extends PaginationPrevTriggerBaseProps,
|
|
94
|
+
/**
|
|
95
|
+
* @vue-ignore
|
|
96
|
+
*/
|
|
97
|
+
ButtonHTMLAttributes {}
|
|
98
|
+
declare const _default$6: typeof __VLS_export$3;
|
|
99
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<PaginationPrevTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationPrevTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
100
|
+
default?: (props: {}) => any;
|
|
101
|
+
}>;
|
|
102
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
103
|
+
new (): {
|
|
104
|
+
$slots: S;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/components/pagination/root-provider.vue.d.ts
|
|
109
|
+
interface RootProviderProps {
|
|
110
|
+
value: UnwrapRef<UsePaginationReturn>;
|
|
111
|
+
}
|
|
112
|
+
interface PaginationRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
113
|
+
interface PaginationRootProviderProps extends PaginationRootProviderBaseProps,
|
|
114
|
+
/**
|
|
115
|
+
* @vue-ignore
|
|
116
|
+
*/
|
|
117
|
+
HTMLAttributes {}
|
|
118
|
+
declare const _default$8: typeof __VLS_export$2;
|
|
119
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<PaginationRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
120
|
+
default?: (props: {}) => any;
|
|
121
|
+
}>;
|
|
122
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
123
|
+
new (): {
|
|
124
|
+
$slots: S;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/components/pagination/types.d.ts
|
|
129
|
+
interface RootProps {
|
|
130
|
+
count?: number;
|
|
131
|
+
defaultPage?: number;
|
|
132
|
+
defaultPageSize?: number;
|
|
133
|
+
id?: string;
|
|
134
|
+
ids?: Partial<{
|
|
135
|
+
root: string;
|
|
136
|
+
ellipsis(index: number): string;
|
|
137
|
+
prevTrigger: string;
|
|
138
|
+
nextTrigger: string;
|
|
139
|
+
item(page: number): string;
|
|
140
|
+
}>;
|
|
141
|
+
page?: number;
|
|
142
|
+
pageSize?: number;
|
|
143
|
+
siblingCount?: number;
|
|
144
|
+
translations?: pagination.IntlTranslations;
|
|
145
|
+
type?: "button" | "link";
|
|
146
|
+
getPageUrl?: (details: pagination.PageUrlDetails) => string;
|
|
147
|
+
}
|
|
148
|
+
type RootEmits = {
|
|
149
|
+
pageChange: [details: pagination.PageChangeDetails];
|
|
150
|
+
pageSizeChange: [details: pagination.PageSizeChangeDetails];
|
|
151
|
+
"update:page": [page: pagination.PageChangeDetails["page"]];
|
|
152
|
+
"update:pageSize": [pageSize: pagination.PageSizeChangeDetails["pageSize"]];
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/components/pagination/root.vue.d.ts
|
|
156
|
+
interface PaginationRootBaseProps extends RootProps, PolymorphicProps {}
|
|
157
|
+
interface PaginationRootProps extends PaginationRootBaseProps,
|
|
158
|
+
/**
|
|
159
|
+
* @vue-ignore
|
|
160
|
+
*/
|
|
161
|
+
HTMLAttributes {}
|
|
162
|
+
interface PaginationRootEmits extends RootEmits {}
|
|
163
|
+
declare const _default$7: typeof __VLS_export$1;
|
|
164
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<PaginationRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
165
|
+
pageChange: (details: import("@wirekyt/dom/machines/pagination").PageChangeDetails) => any;
|
|
166
|
+
pageSizeChange: (details: import("@wirekyt/dom/machines/pagination").PageSizeChangeDetails) => any;
|
|
167
|
+
"update:page": (page: number) => any;
|
|
168
|
+
"update:pageSize": (pageSize: number) => any;
|
|
169
|
+
}, string, import("vue").PublicProps, Readonly<PaginationRootProps> & Readonly<{
|
|
170
|
+
onPageChange?: ((details: import("@wirekyt/dom/machines/pagination").PageChangeDetails) => any) | undefined;
|
|
171
|
+
onPageSizeChange?: ((details: import("@wirekyt/dom/machines/pagination").PageSizeChangeDetails) => any) | undefined;
|
|
172
|
+
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
173
|
+
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
174
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
175
|
+
default?: (props: {}) => any;
|
|
176
|
+
}>;
|
|
177
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
178
|
+
new (): {
|
|
179
|
+
$slots: S;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
declare namespace pagination_d_exports {
|
|
183
|
+
export { _default as Context, PaginationContextProps as ContextProps, _default$1 as Ellipsis, PaginationEllipsisBaseProps as EllipsisBaseProps, PaginationEllipsisProps as EllipsisProps, _default$2 as FirstTrigger, PaginationFirstTriggerBaseProps as FirstTriggerBaseProps, PaginationFirstTriggerProps as FirstTriggerProps, _default$3 as Item, PaginationItemBaseProps as ItemBaseProps, ItemLabelDetails, PaginationItemProps as ItemProps, _default$4 as LastTrigger, PaginationLastTriggerBaseProps as LastTriggerBaseProps, PaginationLastTriggerProps as LastTriggerProps, _default$5 as NextTrigger, PaginationNextTriggerBaseProps as NextTriggerBaseProps, PaginationNextTriggerProps as NextTriggerProps, PageChangeDetails, PageSizeChangeDetails, PageUrlDetails, _default$6 as PrevTrigger, PaginationPrevTriggerBaseProps as PrevTriggerBaseProps, PaginationPrevTriggerProps as PrevTriggerProps, _default$7 as Root, PaginationRootBaseProps as RootBaseProps, PaginationRootEmits as RootEmits, PaginationRootProps as RootProps, _default$8 as RootProvider, PaginationRootProviderBaseProps as RootProviderBaseProps, PaginationRootProviderProps as RootProviderProps };
|
|
184
|
+
}
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region src/components/pagination/use-pagination.d.ts
|
|
187
|
+
interface UsePaginationProps extends Optional<Omit<pagination.Props, "dir" | "getRootNode">, "id"> {}
|
|
188
|
+
interface UsePaginationReturn extends ComputedRef<pagination.Api<PropTypes>> {}
|
|
189
|
+
declare const usePagination: (props?: MaybeRef<UsePaginationProps>, emit?: EmitFn$1<PaginationRootEmits>) => UsePaginationReturn;
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region src/components/pagination/use-context.d.ts
|
|
192
|
+
interface UsePaginationContext extends UsePaginationReturn {}
|
|
193
|
+
declare const PaginationProvider: (opts: UsePaginationContext) => void, usePaginationContext: (fallback?: UsePaginationContext | undefined) => UsePaginationContext;
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region src/components/pagination/context.vue.d.ts
|
|
196
|
+
interface PaginationContextProps extends SlotsType<{
|
|
197
|
+
default: UnwrapRef<UsePaginationContext>;
|
|
198
|
+
}> {}
|
|
199
|
+
declare const _default: typeof __VLS_export;
|
|
200
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
201
|
+
default(pagination: UnwrapRef<UsePaginationContext>): unknown;
|
|
202
|
+
}>;
|
|
203
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
204
|
+
new (): {
|
|
205
|
+
$slots: S;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
//#endregion
|
|
209
|
+
export { pagination_d_exports as Pagination, _default as PaginationContext, type PaginationContextProps, _default$1 as PaginationEllipsis, type PaginationEllipsisBaseProps, type PaginationEllipsisProps, _default$2 as PaginationFirstTrigger, type PaginationFirstTriggerBaseProps, type PaginationFirstTriggerProps, _default$3 as PaginationItem, type PaginationItemBaseProps, type PaginationItemLabelDetails, type PaginationItemProps, _default$4 as PaginationLastTrigger, type PaginationLastTriggerBaseProps, type PaginationLastTriggerProps, _default$5 as PaginationNextTrigger, type PaginationNextTriggerBaseProps, type PaginationNextTriggerProps, type PaginationPageChangeDetails, type PaginationPageSizeChangeDetails, type PaginationPageUrlDetails, _default$6 as PaginationPrevTrigger, type PaginationPrevTriggerBaseProps, type PaginationPrevTriggerProps, _default$7 as PaginationRoot, type PaginationRootBaseProps, type PaginationRootEmits, type PaginationRootProps, _default$8 as PaginationRootProvider, type PaginationRootProviderBaseProps, type PaginationRootProviderProps, type UsePaginationContext, type UsePaginationProps, type UsePaginationReturn, paginationAnatomy, usePagination, usePaginationContext };
|