@astryx-vue/core 0.2.0 → 0.2.2
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/AppShell/index.js +1 -1
- package/dist/{AppShell-EiGyPFbA.js → AppShell-Cb41gIAj.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar-jmHInHwj.js +244 -0
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CZcgAMjM.js → AvatarGroup-QyzSrpYA.js} +8 -7
- package/dist/Badge/index.d.ts +2 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge-CjDQPF5g.js +30 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-C3YZFQ9w.js → Breadcrumbs-CTQ7fjDn.js} +45 -11
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-BFaI5AMv.js +352 -0
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BTtHkKea.js → Carousel-X0cuQkvg.js} +2 -2
- package/dist/Chat/index.d.ts +2 -2
- package/dist/Chat/index.js +2 -2
- package/dist/Chat-M0tiGrNT.js +3148 -0
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DijdbUUu.js → Citation-C1veUk5p.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CxTb6j9_.js → CodeBlock-DesTJAkm.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-9MC08X39.js → Collapsible-BestK35V.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BD2iODF5.js → CommandPalette-BArt97V8.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-D9iXd5cH.js → ComplexSelector-CAoig1RK.js} +2 -2
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-HS_WqYIg.js → ContextMenu-9Im6i43E.js} +101 -63
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-BLocxqC3.js +376 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-1bhPGG2s.js → DateRangeInput-DwDy3eRo.js} +2 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-SnPdgk6P.js → DateTimeInput-BYiaC9bn.js} +5 -3
- package/dist/DropdownMenu/index.d.ts +3 -2
- package/dist/DropdownMenu/index.js +3 -2
- package/dist/DropdownMenu-Ddfr-aEC.js +164 -0
- package/dist/{DropdownMenu-UJGych6v.js → DropdownMenu-Dh-WAHKb.js} +63 -16
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BQiwE-GB.js → FileInput-DLO6V12n.js} +2 -2
- package/dist/Icon/index.d.ts +4 -3
- package/dist/Icon/index.js +3 -2
- package/dist/Icon/plugin.d.ts +45 -0
- package/dist/Icon/plugin.js +177 -0
- package/dist/Icon-CJKjdJy-.js +198 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CshKoB0r.js → Lightbox-CdFCS_EA.js} +2 -2
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link-DqdQZ37C.js +141 -0
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-D-Ua055V.js → Markdown-BqKloI3w.js} +3 -3
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-sYph_d8Q.js → MetadataList-CvZkmisf.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DD9D01aj.js → MobileNavToggle-Bwi0qXXM.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BVrK5kkk.js → MoreMenu-BwJaJrkB.js} +2 -2
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DiYov9sF.js → MultiSelector-C-ETfFy_.js} +2 -2
- package/dist/NumberInput/index.d.ts +2 -2
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-DjetVB8O.js +210 -0
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DQfEBxlc.js → Outline-Bz9c-u5y.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BU5VCntl.js → OverflowList-ED-KN9Y5.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +2 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-HdhtykeF.js → Pagination-Cb66HMEf.js} +76 -22
- package/dist/PowerSearch/index.d.ts +2 -0
- package/dist/PowerSearch/index.js +2 -0
- package/dist/PowerSearch-CjU8y4mi.js +2386 -0
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-ChDp-7oe.js → ProgressBar-DO9Chic6.js} +31 -11
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-BhSMfO5B.js → Resizable-D-TBCg0Y.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-DE2IEFML.js +468 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-B-Om6Bz3.js → SideNav-DonEfiAx.js} +17 -17
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-BZ_8SEZt.js → Stepper-D2ZIcUNx.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Cnc2Hs1H.js → TabList-D3F-stq-.js} +10 -3
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +2 -2
- package/dist/Table-CrP2Uffq.js +1982 -0
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Cv9UVbzS.js → TextArea-CPwSytdO.js} +12 -6
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Dc1UpykG.js → Thumbnail-BC5JGPGZ.js} +11 -11
- package/dist/{TimeField-C7t9Knq9.js → TimeField-DpHFrNv0.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BXxCOY98.js → TimeInput-DJLV0_4z.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +2 -1
- package/dist/{Timestamp-DlZSmgCJ.js → Timestamp-GKNjjt5g.js} +4 -121
- package/dist/Toast/index.d.ts +2 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BKXPvEMp.js → Toast-C2ML-bmi.js} +37 -7
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-wt4e80IM.js → Token-Chu_eCVs.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-nmTqdS9n.js → Tokenizer-DRDpvQ_l.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-notp-mJx.js → TopNav-CEyWddtA.js} +3 -3
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-s1xBQ0qq.js → TreeList-COS8US8e.js} +3 -3
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-VAuiCurV.js → Typeahead-P7cCqtaQ.js} +3 -3
- package/dist/{useTypeaheadMenu-Ba7XpcZl.js → TypeaheadMenu-CGvo0Tud.js} +107 -107
- package/dist/composables/index.d.ts +3 -3
- package/dist/{context-Dbo22sck.js → context-CiKncNSH.js} +184 -6
- package/dist/formatInstant-BDWUIxS7.js +119 -0
- package/dist/{index-SMh42NI8.d.ts → index-B1TG2GPS.d.ts} +2 -2
- package/dist/{index-DRmb-oUa.d.ts → index-B9WzWqzk.d.ts} +3 -29
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-z4p2k9VR.d.ts → index-Bgv4ZmBl.d.ts} +20 -2
- package/dist/{index-BoRIw-bP.d.ts → index-Bt7ewoz2.d.ts} +32 -2
- package/dist/{index-uQrLBZfF.d.ts → index-Bu3oXIIS.d.ts} +24 -0
- package/dist/index-CJlBAXwj.d.ts +100 -0
- package/dist/{index-DT9S92sh.d.ts → index-CNjbOgty.d.ts} +15 -0
- package/dist/{index-DXSs3rwa.d.ts → index-CngORuiq.d.ts} +137 -2
- package/dist/index-Cs5pcwY3.d.ts +416 -0
- package/dist/{index-NzLDrOkk.d.ts → index-D4I_obqR.d.ts} +14 -1
- package/dist/{index-BtPZKO20.d.ts → index-DGXviOlp.d.ts} +49 -7
- package/dist/{index-CTolyeii.d.ts → index-DN7MXPHM.d.ts} +15 -1
- package/dist/{index-C6iJwTL0.d.ts → index-DNRBbwp_.d.ts} +165 -55
- package/dist/{index-C59PdX9L.d.ts → index-DWH_HzXi.d.ts} +1 -1
- package/dist/{index-BfOtLyNH.d.ts → index-D_nYxnNv.d.ts} +1 -1
- package/dist/{index-Bn_odHQ9.d.ts → index-Dg3ZmwEg.d.ts} +12 -1
- package/dist/{index-BiMGXtD-.d.ts → index-DimuSES0.d.ts} +14 -1
- package/dist/{index-DEeJowZf.d.ts → index-cGagYM1g.d.ts} +15 -2
- package/dist/{index-Ck8qy6Rf.d.ts → index-c_TaW8mM.d.ts} +24 -2
- package/dist/index-kVhSuA9t.d.ts +902 -0
- package/dist/{index-1uRMrk63.d.ts → index-nCEmW6wa.d.ts} +1 -1
- package/dist/{index-DoFCm2Q2.d.ts → index-qiZtHnGK.d.ts} +26 -0
- package/dist/{index-Bainr_3n.d.ts → index-u5ozu0G7.d.ts} +2 -2
- package/dist/index.d.ts +79 -76
- package/dist/index.js +111 -100
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/power-search-DrDfcoL1.d.ts +68 -0
- package/dist/registry-B1ObuP--.d.ts +45 -0
- package/dist/registry-C7OZb0PJ.js +135 -0
- package/dist/{types-JktRxujg.d.ts → types-Cp4liug-.d.ts} +66 -3
- package/dist/{index-B8MbfMwV.d.ts → types-DDAAT1Xd.d.ts} +36 -82
- package/dist/types-DIYwbkpe.d.ts +33 -0
- package/dist/{types-DZoEm_DG.d.ts → types-pnljWjEE.d.ts} +23 -6
- package/dist/{useResizable-CeESZS1v.d.ts → useResizable-CUoNPmUw.d.ts} +1 -1
- package/package.json +10 -1
- package/styles/avatar.css +14 -0
- package/styles/badge.css +8 -0
- package/styles/breadcrumbs.css +6 -1
- package/styles/button.css +13 -0
- package/styles/calendar.css +16 -0
- package/styles/card.css +2 -0
- package/styles/chat.css +474 -3
- package/styles/dropdown-menu.css +11 -0
- package/styles/icon.css +58 -8
- package/styles/link.css +5 -0
- package/styles/number-input.css +22 -0
- package/styles/pagination.css +45 -1
- package/styles/power-search.css +303 -0
- package/styles/progress-bar.css +4 -0
- package/styles/selector.css +58 -0
- package/styles/tab-list.css +15 -0
- package/styles/table.css +304 -1
- package/styles/text-area.css +17 -0
- package/styles/text-input.css +5 -0
- package/styles/toast.css +7 -0
- package/styles/toolbar.css +11 -0
- package/styles.css +1 -0
- package/dist/Avatar-5s3HSrtN.js +0 -136
- package/dist/Badge-Ba0EwsTj.js +0 -19
- package/dist/Calendar-BG7wEsro.js +0 -277
- package/dist/Chat-DjNxw5gv.js +0 -1051
- package/dist/DateInput-DE2TN1Rq.js +0 -250
- package/dist/Icon-Dfr4k6-S.js +0 -86
- package/dist/Link-CprjOuTI.js +0 -92
- package/dist/NumberInput-CTYiQxHq.js +0 -147
- package/dist/Selector-Da-2BO3q.js +0 -325
- package/dist/Table-D-LhAy_J.js +0 -967
- package/dist/index-DJo-BmXZ.d.ts +0 -431
- package/dist/index-DtjAdYEc.d.ts +0 -68
- package/dist/{CheckboxList-EsIEXjK_.js → CheckboxList-BbCPiend.js} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as useAstryxMessages } from "./context-
|
|
2
|
-
import { t as _sfc_main$1 } from "./Selector-
|
|
1
|
+
import { a as useAstryxMessages } from "./context-CiKncNSH.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./Selector-DE2IEFML.js";
|
|
3
3
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, vShow, withDirectives } from "vue";
|
|
4
4
|
import "../styles/pagination.css";
|
|
5
5
|
/**
|
|
@@ -86,7 +86,12 @@ function usePagination(options) {
|
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region src/Pagination/Pagination.vue
|
|
89
|
-
const _hoisted_1 = [
|
|
89
|
+
const _hoisted_1 = [
|
|
90
|
+
"data-density",
|
|
91
|
+
"data-variant",
|
|
92
|
+
"data-size",
|
|
93
|
+
"aria-label"
|
|
94
|
+
];
|
|
90
95
|
const _hoisted_2 = {
|
|
91
96
|
key: 0,
|
|
92
97
|
class: "astryx-pagination-total"
|
|
@@ -97,24 +102,42 @@ const _hoisted_5 = {
|
|
|
97
102
|
class: "astryx-pagination-label",
|
|
98
103
|
"aria-hidden": "true"
|
|
99
104
|
};
|
|
100
|
-
const _hoisted_6 =
|
|
101
|
-
|
|
102
|
-
|
|
105
|
+
const _hoisted_6 = {
|
|
106
|
+
key: 0,
|
|
107
|
+
class: "astryx-pagination-count"
|
|
108
|
+
};
|
|
109
|
+
const _hoisted_7 = {
|
|
110
|
+
key: 1,
|
|
111
|
+
class: "astryx-pagination-count"
|
|
112
|
+
};
|
|
113
|
+
const _hoisted_8 = ["aria-label"];
|
|
114
|
+
const _hoisted_9 = [
|
|
115
|
+
"disabled",
|
|
116
|
+
"aria-current",
|
|
117
|
+
"aria-label",
|
|
118
|
+
"onClick"
|
|
119
|
+
];
|
|
120
|
+
const _hoisted_10 = ["aria-hidden"];
|
|
121
|
+
const _hoisted_11 = {
|
|
122
|
+
key: 4,
|
|
123
|
+
class: "astryx-pagination-pages"
|
|
124
|
+
};
|
|
125
|
+
const _hoisted_12 = [
|
|
103
126
|
"disabled",
|
|
104
127
|
"aria-label",
|
|
105
128
|
"aria-current",
|
|
106
129
|
"onClick"
|
|
107
130
|
];
|
|
108
|
-
const
|
|
109
|
-
const
|
|
131
|
+
const _hoisted_13 = ["disabled", "aria-label"];
|
|
132
|
+
const _hoisted_14 = {
|
|
110
133
|
class: "astryx-pagination-label",
|
|
111
134
|
"aria-hidden": "true"
|
|
112
135
|
};
|
|
113
|
-
const
|
|
114
|
-
key:
|
|
136
|
+
const _hoisted_15 = {
|
|
137
|
+
key: 5,
|
|
115
138
|
class: "astryx-pagination-size-changer"
|
|
116
139
|
};
|
|
117
|
-
const
|
|
140
|
+
const _hoisted_16 = { class: "astryx-pagination-size-label" };
|
|
118
141
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
119
142
|
name: "AstryxPagination",
|
|
120
143
|
__name: "Pagination",
|
|
@@ -122,6 +145,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
122
145
|
page: { default: 1 },
|
|
123
146
|
pageSize: { default: 10 },
|
|
124
147
|
total: { default: 0 },
|
|
148
|
+
totalPages: {},
|
|
149
|
+
variant: { default: "pages" },
|
|
150
|
+
size: { default: "md" },
|
|
125
151
|
showSizeChanger: {
|
|
126
152
|
type: Boolean,
|
|
127
153
|
default: false
|
|
@@ -156,9 +182,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
156
182
|
const resolvedPrevLabel = computed(() => props.prevLabel ?? messages.value.pagination.previous);
|
|
157
183
|
const resolvedNextLabel = computed(() => props.nextLabel ?? messages.value.pagination.next);
|
|
158
184
|
const resolvedPageSizeLabel = computed(() => props.pageSizeLabel ?? messages.value.pagination.perPage);
|
|
185
|
+
function resolvedItemTotal() {
|
|
186
|
+
if (props.total > 0) return props.total;
|
|
187
|
+
if (props.totalPages != null && props.totalPages > 0) return props.totalPages * props.pageSize;
|
|
188
|
+
return props.total;
|
|
189
|
+
}
|
|
159
190
|
const pageRef = ref(props.page);
|
|
160
191
|
const pageSizeRef = ref(props.pageSize);
|
|
161
|
-
const totalRef = ref(
|
|
192
|
+
const totalRef = ref(resolvedItemTotal());
|
|
193
|
+
const variant = computed(() => props.variant);
|
|
162
194
|
const root = ref(null);
|
|
163
195
|
const density = ref("full");
|
|
164
196
|
const siblingCount = computed(() => siblingCountForDensity(density.value));
|
|
@@ -197,7 +229,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
197
229
|
function syncFromProps() {
|
|
198
230
|
pageRef.value = props.page;
|
|
199
231
|
pageSizeRef.value = props.pageSize;
|
|
200
|
-
totalRef.value =
|
|
232
|
+
totalRef.value = resolvedItemTotal();
|
|
201
233
|
}
|
|
202
234
|
syncFromProps();
|
|
203
235
|
const pageSizeOptions = computed(() => {
|
|
@@ -222,8 +254,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
222
254
|
return openBlock(), createElementBlock("nav", {
|
|
223
255
|
ref_key: "root",
|
|
224
256
|
ref: root,
|
|
225
|
-
class: normalizeClass(["astryx-pagination", {
|
|
257
|
+
class: normalizeClass(["astryx-pagination", {
|
|
258
|
+
"is-disabled": props.disabled,
|
|
259
|
+
"astryx-pagination--sm": props.size === "sm"
|
|
260
|
+
}]),
|
|
226
261
|
"data-density": density.value,
|
|
262
|
+
"data-variant": variant.value,
|
|
263
|
+
"data-size": props.size,
|
|
227
264
|
role: "navigation",
|
|
228
265
|
"aria-label": unref(messages).pagination.nav
|
|
229
266
|
}, [props.showTotal ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "total", {
|
|
@@ -249,11 +286,28 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
249
286
|
"stroke-linecap": "round",
|
|
250
287
|
"stroke-linejoin": "round"
|
|
251
288
|
})], -1)), createElementVNode("span", _hoisted_5, toDisplayString(resolvedPrevLabel.value), 1)], 8, _hoisted_4),
|
|
252
|
-
|
|
289
|
+
variant.value === "count" ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(unref(messages).pagination.total(totalRef.value, fromIndex.value, toIndex.value)), 1)) : variant.value === "compact" ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(unref(messages).pagination.pageOf(pageRef.value, unref(pagination).totalPages.value)), 1)) : variant.value === "dots" ? (openBlock(), createElementBlock("div", {
|
|
290
|
+
key: 2,
|
|
291
|
+
class: "astryx-pagination-dots",
|
|
292
|
+
role: "group",
|
|
293
|
+
"aria-label": unref(messages).pagination.nav
|
|
294
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pagination).totalPages.value, (dotPage) => {
|
|
295
|
+
return openBlock(), createElementBlock("button", {
|
|
296
|
+
key: dotPage,
|
|
297
|
+
type: "button",
|
|
298
|
+
class: normalizeClass(["astryx-pagination-dot", { "is-active": dotPage === pageRef.value }]),
|
|
299
|
+
disabled: props.disabled,
|
|
300
|
+
"aria-current": dotPage === pageRef.value ? "page" : void 0,
|
|
301
|
+
"aria-label": unref(messages).pagination.page(dotPage),
|
|
302
|
+
onClick: ($event) => onPageClick(dotPage)
|
|
303
|
+
}, null, 10, _hoisted_9);
|
|
304
|
+
}), 128))], 8, _hoisted_8)) : createCommentVNode("v-if", true),
|
|
305
|
+
variant.value === "pages" ? (openBlock(), createElementBlock("span", {
|
|
306
|
+
key: 3,
|
|
253
307
|
class: "astryx-pagination-compact",
|
|
254
308
|
"aria-hidden": density.value === "minimal" ? void 0 : true
|
|
255
|
-
}, toDisplayString(unref(messages).pagination.compact(pageRef.value, unref(pagination).totalPages.value)), 9,
|
|
256
|
-
withDirectives(
|
|
309
|
+
}, toDisplayString(unref(messages).pagination.compact(pageRef.value, unref(pagination).totalPages.value)), 9, _hoisted_10)) : createCommentVNode("v-if", true),
|
|
310
|
+
variant.value === "pages" ? withDirectives((openBlock(), createElementBlock("div", _hoisted_11, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pagination).pageNumbers.value, (page, index) => {
|
|
257
311
|
return openBlock(), createElementBlock("button", {
|
|
258
312
|
key: index,
|
|
259
313
|
type: "button",
|
|
@@ -265,15 +319,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
265
319
|
"aria-label": isEllipsis(page) ? unref(messages).pagination.more : unref(messages).pagination.page(page),
|
|
266
320
|
"aria-current": page === pageRef.value ? "page" : void 0,
|
|
267
321
|
onClick: ($event) => onPageClick(page)
|
|
268
|
-
}, toDisplayString(isEllipsis(page) ? "..." : page), 11,
|
|
269
|
-
}), 128))], 512), [[vShow, density.value !== "minimal"]]),
|
|
322
|
+
}, toDisplayString(isEllipsis(page) ? "..." : page), 11, _hoisted_12);
|
|
323
|
+
}), 128))], 512)), [[vShow, density.value !== "minimal"]]) : createCommentVNode("v-if", true),
|
|
270
324
|
createElementVNode("button", {
|
|
271
325
|
type: "button",
|
|
272
326
|
class: "astryx-pagination-button astryx-pagination-next",
|
|
273
327
|
disabled: props.disabled || !unref(pagination).canNext.value,
|
|
274
328
|
"aria-label": resolvedNextLabel.value,
|
|
275
329
|
onClick: _cache[1] || (_cache[1] = (...args) => unref(pagination).next && unref(pagination).next(...args))
|
|
276
|
-
}, [createElementVNode("span",
|
|
330
|
+
}, [createElementVNode("span", _hoisted_14, toDisplayString(resolvedNextLabel.value), 1), _cache[4] || (_cache[4] = createElementVNode("svg", {
|
|
277
331
|
width: "16",
|
|
278
332
|
height: "16",
|
|
279
333
|
viewBox: "0 0 16 16",
|
|
@@ -284,8 +338,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
284
338
|
"stroke-width": "1.5",
|
|
285
339
|
"stroke-linecap": "round",
|
|
286
340
|
"stroke-linejoin": "round"
|
|
287
|
-
})], -1))], 8,
|
|
288
|
-
props.showSizeChanger ? (openBlock(), createElementBlock("div",
|
|
341
|
+
})], -1))], 8, _hoisted_13),
|
|
342
|
+
props.showSizeChanger ? (openBlock(), createElementBlock("div", _hoisted_15, [createElementVNode("span", _hoisted_16, toDisplayString(resolvedPageSizeLabel.value), 1), createVNode(_sfc_main$1, {
|
|
289
343
|
"model-value": pageSizeRef.value,
|
|
290
344
|
options: pageSizeOptions.value,
|
|
291
345
|
disabled: props.disabled,
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { A as PowerSearchItem, C as PowerSearchEmits, D as PowerSearchFieldType, E as PowerSearchFieldDefinition, F as PowerSearchSlots, I as PowerSearchStatus, M as PowerSearchOverflow, N as PowerSearchProps, O as PowerSearchFilter, P as PowerSearchSize, S as PowerSearchConfig, T as PowerSearchField, _ as FilterValue, a as usePowerSearchConfig, b as PowerSearchChangeType, c as resolveOperatorLabel, d as formatFilterValue, f as completePowerSearchFilter, g as DateTimeRangePart, h as DateTimeRange, i as createPowerSearchConfig, j as PowerSearchOperator, k as PowerSearchHandle, l as formatDateAbsolute, m as createPowerSearchLookup, n as InferPowerSearchData, o as _default, p as PowerSearchLookup, r as applyPowerSearchFilters, s as resolveEditorPlacement, t as searchPowerSearchFields, u as formatDateAbsoluteCompact, v as OperatorValue, w as PowerSearchEntity, x as PowerSearchComponents, y as PartialFilter } from "../index-Cs5pcwY3.js";
|
|
2
|
+
export { type DateTimeRange, type DateTimeRangePart, type FilterValue, type InferPowerSearchData, type OperatorValue, type PartialFilter, _default as PowerSearch, type PowerSearchChangeType, type PowerSearchComponents, type PowerSearchConfig, type PowerSearchEmits, type PowerSearchEntity, type PowerSearchField, type PowerSearchFieldDefinition, type PowerSearchFieldType, type PowerSearchFilter, type PowerSearchHandle, type PowerSearchItem, type PowerSearchLookup, type PowerSearchOperator, type PowerSearchOverflow, type PowerSearchProps, type PowerSearchSize, type PowerSearchSlots, type PowerSearchStatus, applyPowerSearchFilters, completePowerSearchFilter, createPowerSearchConfig, createPowerSearchLookup, formatDateAbsolute, formatDateAbsoluteCompact, formatFilterValue, resolveEditorPlacement, resolveOperatorLabel, searchPowerSearchFields, usePowerSearchConfig };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as searchPowerSearchFields, c as formatDateAbsolute, d as createPowerSearchLookup, f as completePowerSearchFilter, i as _sfc_main, l as formatDateAbsoluteCompact, n as createPowerSearchConfig, o as resolveEditorPlacement, r as usePowerSearchConfig, s as resolveOperatorLabel, t as applyPowerSearchFilters, u as formatFilterValue } from "../PowerSearch-CjU8y4mi.js";
|
|
2
|
+
export { _sfc_main as PowerSearch, applyPowerSearchFilters, completePowerSearchFilter, createPowerSearchConfig, createPowerSearchLookup, formatDateAbsolute, formatDateAbsoluteCompact, formatFilterValue, resolveEditorPlacement, resolveOperatorLabel, searchPowerSearchFields, usePowerSearchConfig };
|