morya-ui 0.3.0 → 0.3.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/CHANGELOG.md +64 -0
- package/dist/Button-dMqRmoYa.js +222 -0
- package/dist/{Card-Dsmnzong.js → Card-B1CB9Trm.js} +3 -5
- package/dist/Empty-C5tndBOm.js +147 -0
- package/dist/Icon-od9Ob-Ay.js +393 -0
- package/dist/Loading-BSsRs6v9.js +420 -0
- package/dist/Pagination-CqpC5EAs.js +166 -0
- package/dist/Select-CKGrSoaC.js +572 -0
- package/dist/Skeleton-DCYdXAH2.js +59 -0
- package/dist/accordion/style.css +20 -71
- package/dist/auto-complete/index.js +118 -120
- package/dist/auto-complete/style.css +24 -88
- package/dist/avatar/index.js +1 -1
- package/dist/avatar/style.css +10 -67
- package/dist/badge/style.css +10 -68
- package/dist/block-ui/style.css +10 -68
- package/dist/breadcrumb/style.css +10 -61
- package/dist/button/index.js +1 -1
- package/dist/button/style.css +72 -78
- package/dist/card/index.js +1 -1
- package/dist/card/style.css +30 -67
- package/dist/carousel/index.js +72 -64
- package/dist/carousel/style.css +36 -82
- package/dist/cascade-select/index.js +1 -1
- package/dist/cascade-select/style.css +24 -81
- package/dist/checkbox/style.css +10 -61
- package/dist/chip/index.js +1 -1
- package/dist/chip/style.css +10 -67
- package/dist/command-menu/index.js +37 -39
- package/dist/command-menu/style.css +10 -75
- package/dist/components/Accordion/styles.css +10 -10
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/styles.css +0 -7
- package/dist/components/Badge/styles.css +0 -7
- package/dist/components/BlockUI/styles.css +0 -7
- package/dist/components/Button/Button.vue.d.ts +2 -0
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Button/styles.css +62 -11
- package/dist/components/Button/types.d.ts +4 -0
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts +2 -2
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/styles.css +20 -6
- package/dist/components/Card/types.d.ts +4 -2
- package/dist/components/Card/types.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/Carousel/styles.css +26 -15
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -2
- package/dist/components/DataView/DataView.vue.d.ts +7 -7
- package/dist/components/DataView/DataView.vue.d.ts.map +1 -1
- package/dist/components/DataView/styles.css +0 -20
- package/dist/components/Dialog/styles.css +3 -46
- package/dist/components/Dock/styles.css +0 -10
- package/dist/components/Drawer/styles.css +2 -51
- package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts +8 -9
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +24 -5
- package/dist/components/Fieldset/styles.css +0 -7
- package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/FileUpload/fileUtils.d.ts +8 -0
- package/dist/components/FileUpload/fileUtils.d.ts.map +1 -0
- package/dist/components/Gallery/styles.css +0 -8
- package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/components/Icon/icon-categories.d.ts.map +1 -1
- package/dist/components/Icon/icons-types.d.ts +4 -2
- package/dist/components/Icon/icons-types.d.ts.map +1 -1
- package/dist/components/Icon/icons.d.ts +250 -561
- package/dist/components/Icon/icons.d.ts.map +1 -1
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/styles.css +0 -6
- package/dist/components/Knob/styles.css +0 -6
- package/dist/components/Layout/styles.css +5 -14
- package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
- package/dist/components/Loading/styles.css +0 -16
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +6 -7
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +4 -0
- package/dist/components/Message/styles.css +0 -13
- package/dist/components/Page/PageContent.vue.d.ts +2 -1
- package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
- package/dist/components/Page/PageFilterChips.vue.d.ts +16 -0
- package/dist/components/Page/PageFilterChips.vue.d.ts.map +1 -0
- package/dist/components/Page/PageFilters.vue.d.ts +15 -3
- package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
- package/dist/components/Page/PageHeader.vue.d.ts +8 -4
- package/dist/components/Page/PageHeader.vue.d.ts.map +1 -1
- package/dist/components/Page/PagePlaceholder.vue.d.ts +6 -2
- package/dist/components/Page/PagePlaceholder.vue.d.ts.map +1 -1
- package/dist/components/Page/PageSection.vue.d.ts +8 -2
- package/dist/components/Page/PageSection.vue.d.ts.map +1 -1
- package/dist/components/Page/PageStat.vue.d.ts +8 -3
- package/dist/components/Page/PageStat.vue.d.ts.map +1 -1
- package/dist/components/Page/index.d.ts +2 -1
- package/dist/components/Page/index.d.ts.map +1 -1
- package/dist/components/Page/styles.css +239 -44
- package/dist/components/Page/types.d.ts +40 -0
- package/dist/components/Page/types.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Pagination/styles.css +7 -10
- package/dist/components/Pagination/types.d.ts +1 -1
- package/dist/components/Pagination/types.d.ts.map +1 -1
- package/dist/components/Panel/styles.css +0 -7
- package/dist/components/Popover/styles.css +20 -17
- package/dist/components/ProgressBar/styles.css +0 -9
- package/dist/components/ProgressSpinner/styles.css +0 -7
- package/dist/components/ScrollTop/styles.css +0 -7
- package/dist/components/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/dist/components/Scrollbar/styles.css +0 -8
- package/dist/components/Select/Select.vue.d.ts +10 -8
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/selectOptions.d.ts +46 -0
- package/dist/components/Select/selectOptions.d.ts.map +1 -0
- package/dist/components/Select/styles.css +35 -8
- package/dist/components/Select/types.d.ts +11 -1
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Sidebar/styles.css +0 -6
- package/dist/components/Skeleton/styles.css +0 -6
- package/dist/components/Slider/styles.css +9 -0
- package/dist/components/SplitButton/styles.css +5 -0
- package/dist/components/Status/styles.css +0 -7
- package/dist/components/Switch/styles.css +0 -7
- package/dist/components/Table/Table.vue.d.ts +26 -26
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Table/TableLoadingLine.vue.d.ts.map +1 -1
- package/dist/components/Table/hooks/useExpandableRow.d.ts.map +1 -1
- package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
- package/dist/components/Table/styles.css +61 -44
- package/dist/components/Table/tableQuery.d.ts +30 -0
- package/dist/components/Table/tableQuery.d.ts.map +1 -0
- package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
- package/dist/components/Tree/treeQuery.d.ts +31 -0
- package/dist/components/Tree/treeQuery.d.ts.map +1 -0
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +1 -1
- package/dist/config-provider/index.js +1 -1
- package/dist/config-provider/style.css +72 -72
- package/dist/confirm-dialog/index.js +2 -2
- package/dist/confirm-dialog/style.css +75 -124
- package/dist/confirm-popup/index.js +2 -2
- package/dist/confirm-popup/style.css +72 -78
- package/dist/context-menu/index.js +2 -2
- package/dist/context-menu/style.css +10 -75
- package/dist/data-view/index.js +47 -47
- package/dist/data-view/style.css +393 -174
- package/dist/data-view/style.js +1 -1
- package/dist/date-picker/index.js +1 -1
- package/dist/date-picker/style.css +10 -67
- package/dist/dialog/index.js +2 -2
- package/dist/dialog/style.css +75 -124
- package/dist/divider/style.css +10 -61
- package/dist/dock/index.js +2 -2
- package/dist/dock/style.css +10 -77
- package/dist/drawer/index.js +1 -1
- package/dist/drawer/style.css +12 -118
- package/dist/dropdown/index.js +110 -91
- package/dist/dropdown/style.css +34 -80
- package/dist/empty/index.js +5 -150
- package/dist/empty/style.css +10 -67
- package/dist/fieldset/index.js +1 -1
- package/dist/fieldset/style.css +10 -74
- package/dist/file-upload/index.js +148 -146
- package/dist/file-upload/style.css +10 -67
- package/dist/filterByQuery-Bczaxzih.js +17 -0
- package/dist/flex/style.css +10 -61
- package/dist/float-label/style.css +10 -61
- package/dist/fluid/style.css +10 -61
- package/dist/form/style.css +10 -61
- package/dist/gallery/index.js +1 -1
- package/dist/gallery/style.css +10 -83
- package/dist/grid/style.css +10 -61
- package/dist/icon/index.js +93 -39
- package/dist/icon/style.css +10 -67
- package/dist/icon-COrt_N8A.js +18 -0
- package/dist/icon-field/style.css +10 -61
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5400 -5145
- package/dist/inplace/style.css +10 -61
- package/dist/input/index.js +1 -1
- package/dist/input/style.css +10 -67
- package/dist/input-color/style.css +10 -61
- package/dist/input-group/style.css +10 -61
- package/dist/input-number/index.js +1 -1
- package/dist/input-number/style.css +10 -67
- package/dist/input-otp/style.css +10 -61
- package/dist/input-password/index.js +1 -1
- package/dist/input-password/style.css +10 -67
- package/dist/input-tags/index.js +1 -1
- package/dist/input-tags/style.css +10 -67
- package/dist/knob/style.css +10 -67
- package/dist/label/style.css +10 -61
- package/dist/layout/index.js +1 -1
- package/dist/layout/style.css +15 -89
- package/dist/listbox/index.js +30 -32
- package/dist/listbox/style.css +10 -69
- package/dist/loading/index.js +32 -446
- package/dist/loading/style.css +10 -77
- package/dist/mega-menu/index.js +2 -2
- package/dist/mega-menu/style.css +10 -67
- package/dist/menu/index.js +265 -255
- package/dist/menu/style.css +36 -99
- package/dist/menubar/index.js +6 -3
- package/dist/menubar/style.css +14 -75
- package/dist/message/index.js +1 -1
- package/dist/message/style.css +10 -80
- package/dist/meter-group/style.css +10 -61
- package/dist/order-list/index.js +1 -1
- package/dist/order-list/style.css +10 -67
- package/dist/page/index.js +229 -70
- package/dist/page/style.css +1186 -113
- package/dist/page/style.js +3 -0
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +210 -77
- package/dist/pagination/style.js +1 -0
- package/dist/panel/index.js +1 -1
- package/dist/panel/style.css +10 -74
- package/dist/pick-list/index.js +1 -1
- package/dist/pick-list/style.css +10 -67
- package/dist/popover/style.css +30 -78
- package/dist/progress-bar/style.css +10 -70
- package/dist/progress-spinner/index.js +105 -2
- package/dist/progress-spinner/style.css +10 -68
- package/dist/radio/style.css +10 -61
- package/dist/rating/index.js +1 -1
- package/dist/rating/style.css +10 -67
- package/dist/resolver-map.d.ts.map +1 -1
- package/dist/resolver.js +1 -0
- package/dist/result/index.js +1 -1
- package/dist/result/style.css +10 -67
- package/dist/scroll-top/index.js +1 -1
- package/dist/scroll-top/style.css +10 -82
- package/dist/scrollbar/style.css +10 -69
- package/dist/select/index.js +2 -478
- package/dist/select/style.css +59 -89
- package/dist/select-button/style.css +10 -61
- package/dist/shared/config.d.ts +2 -2
- package/dist/shared/filterByQuery.d.ts +14 -0
- package/dist/shared/filterByQuery.d.ts.map +1 -0
- package/dist/shared/menu/expand.d.ts +38 -0
- package/dist/shared/menu/expand.d.ts.map +1 -0
- package/dist/shared/menu/icon.d.ts.map +1 -1
- package/dist/shared/menu/index.d.ts +2 -0
- package/dist/shared/menu/index.d.ts.map +1 -1
- package/dist/shared/styles/select-overlay.css +14 -6
- package/dist/sidebar/index.js +2 -2
- package/dist/sidebar/style.css +10 -73
- package/dist/skeleton/index.js +2 -59
- package/dist/skeleton/style.css +10 -67
- package/dist/slider/style.css +19 -61
- package/dist/space/style.css +10 -61
- package/dist/speed-dial/index.js +2 -2
- package/dist/speed-dial/style.css +10 -67
- package/dist/split-button/index.js +1 -1
- package/dist/split-button/style.css +77 -78
- package/dist/splitter/style.css +10 -61
- package/dist/status/index.js +1 -1
- package/dist/status/style.css +10 -74
- package/dist/stepper/index.js +1 -1
- package/dist/stepper/style.css +10 -67
- package/dist/styles/base.css +5 -50
- package/dist/styles.css +1 -1
- package/dist/switch/style.css +10 -68
- package/dist/table/index.js +409 -373
- package/dist/table/style.css +457 -215
- package/dist/table/style.js +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/style.css +10 -75
- package/dist/tag/index.js +1 -1
- package/dist/tag/style.css +10 -67
- package/dist/terminal/style.css +10 -61
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/style.css +10 -67
- package/dist/theme/styles.css +5 -11
- package/dist/theme/useMotion.d.ts +5 -1
- package/dist/theme/useMotion.d.ts.map +1 -1
- package/dist/tiered-menu/index.js +1 -1
- package/dist/tiered-menu/style.css +10 -75
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/style.css +10 -75
- package/dist/toast/index.js +1 -1
- package/dist/toast/style.css +10 -67
- package/dist/toggle-button/index.js +2 -2
- package/dist/toggle-button/style.css +10 -67
- package/dist/toolbar/style.css +10 -61
- package/dist/tooltip/style.css +10 -61
- package/dist/tree/index.js +159 -173
- package/dist/tree/style.css +10 -67
- package/dist/tree-select/index.js +200 -213
- package/dist/tree-select/style.css +25 -82
- package/dist/tree-table/index.js +1 -1
- package/dist/tree-table/style.css +10 -67
- package/dist/treeQuery-CnHkyYOA.js +107 -0
- package/dist/virtual-scroller/style.css +10 -69
- package/package.json +1 -1
- package/dist/Button-B5X_R4Md.js +0 -156
- package/dist/Icon-lcN1rS87.js +0 -610
- package/dist/Pagination-CVrH8Ypi.js +0 -158
- package/dist/ProgressSpinner-BeWVF6Jv.js +0 -105
- package/dist/checkStrategy-CZzuUKDI.js +0 -63
- package/dist/components/Icon/icons-tabler.d.ts +0 -77
- package/dist/components/Icon/icons-tabler.d.ts.map +0 -1
- package/dist/icon-DWXkh-RM.js +0 -27
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "./Icon-lcN1rS87.js";
|
|
3
|
-
import { n, t as r } from "./locale-Bzm2nbEp.js";
|
|
4
|
-
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, useAttrs as v, withKeys as y, withModifiers as b } from "vue";
|
|
5
|
-
//#region src/components/Pagination/Pagination.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var x = ["aria-label"], S = ["disabled", "aria-label"], C = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "m-pagination__simple",
|
|
9
|
-
"aria-current": "page"
|
|
10
|
-
}, w = [
|
|
11
|
-
"disabled",
|
|
12
|
-
"aria-label",
|
|
13
|
-
"aria-current",
|
|
14
|
-
"onClick"
|
|
15
|
-
], T = ["disabled", "aria-label"], E = {
|
|
16
|
-
key: 2,
|
|
17
|
-
class: "m-pagination__sizer"
|
|
18
|
-
}, D = { class: "m-pagination__sizer-label" }, O = ["disabled", "value"], k = ["value"], A = {
|
|
19
|
-
key: 3,
|
|
20
|
-
class: "m-pagination__jumper"
|
|
21
|
-
}, j = [
|
|
22
|
-
"max",
|
|
23
|
-
"disabled",
|
|
24
|
-
"value",
|
|
25
|
-
"onKeydown"
|
|
26
|
-
], M = { key: 0 }, N = /* @__PURE__ */ u({
|
|
27
|
-
inheritAttrs: !1,
|
|
28
|
-
__name: "Pagination",
|
|
29
|
-
props: {
|
|
30
|
-
pt: {},
|
|
31
|
-
modelValue: { default: 1 },
|
|
32
|
-
totalRecords: {},
|
|
33
|
-
rows: { default: 10 },
|
|
34
|
-
pageSize: {},
|
|
35
|
-
pageLinkSize: { default: 5 },
|
|
36
|
-
disabled: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: !1
|
|
39
|
-
},
|
|
40
|
-
showSizePicker: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: !1
|
|
43
|
-
},
|
|
44
|
-
pageSizes: { default: () => [
|
|
45
|
-
10,
|
|
46
|
-
20,
|
|
47
|
-
50,
|
|
48
|
-
100
|
|
49
|
-
] },
|
|
50
|
-
showQuickJumper: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: !1
|
|
53
|
-
},
|
|
54
|
-
simple: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: !1
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
emits: [
|
|
60
|
-
"update:modelValue",
|
|
61
|
-
"page",
|
|
62
|
-
"update:rows",
|
|
63
|
-
"update:pageSize"
|
|
64
|
-
],
|
|
65
|
-
setup(u, { expose: N, emit: P }) {
|
|
66
|
-
let F = u, I = P, L = v(), { rootAttrs: R } = e(L, () => F.pt), z = n(), B = m(""), V = a(() => Math.max(1, F.pageSize ?? F.rows)), H = a(() => Math.max(1, Math.ceil(F.totalRecords / V.value))), U = a(() => Math.min(Math.max(1, F.modelValue), H.value)), W = a(() => (U.value - 1) * V.value), G = a(() => {
|
|
67
|
-
let e = Math.min(F.pageLinkSize, H.value), t = Math.min(Math.max(1, U.value - Math.floor(e / 2)), H.value - e + 1);
|
|
68
|
-
return Array.from({ length: e }, (e, n) => t + n);
|
|
69
|
-
}), K = a(() => {
|
|
70
|
-
let e = [...F.pageSizes];
|
|
71
|
-
return e.includes(V.value) || e.unshift(V.value), e;
|
|
72
|
-
});
|
|
73
|
-
function q(e) {
|
|
74
|
-
let t = Math.min(Math.max(1, e), H.value);
|
|
75
|
-
F.disabled || t === U.value || (I("update:modelValue", t), I("page", t));
|
|
76
|
-
}
|
|
77
|
-
function J(e) {
|
|
78
|
-
if (F.disabled || e === V.value) return;
|
|
79
|
-
I("update:rows", e), I("update:pageSize", e);
|
|
80
|
-
let t = Math.max(1, Math.ceil(F.totalRecords / e)), n = Math.min(U.value, t);
|
|
81
|
-
n !== U.value && (I("update:modelValue", n), I("page", n));
|
|
82
|
-
}
|
|
83
|
-
function Y(e) {
|
|
84
|
-
let t = Number(e.target.value);
|
|
85
|
-
Number.isFinite(t) && J(t);
|
|
86
|
-
}
|
|
87
|
-
function X() {
|
|
88
|
-
let e = Number.parseInt(B.value, 10);
|
|
89
|
-
B.value = "", Number.isFinite(e) && q(e);
|
|
90
|
-
}
|
|
91
|
-
function Z(e) {
|
|
92
|
-
return r(z.value.page, { page: e });
|
|
93
|
-
}
|
|
94
|
-
return N({
|
|
95
|
-
first: W,
|
|
96
|
-
pageCount: H
|
|
97
|
-
}), (e, n) => (p(), s("nav", d(_(R), {
|
|
98
|
-
class: ["m-pagination", { "m-pagination--simple": u.simple }],
|
|
99
|
-
"aria-label": _(z).pagination
|
|
100
|
-
}), [
|
|
101
|
-
c("button", {
|
|
102
|
-
type: "button",
|
|
103
|
-
class: "m-pagination__button",
|
|
104
|
-
disabled: u.disabled || U.value === 1,
|
|
105
|
-
"aria-label": _(z).prevPage,
|
|
106
|
-
onClick: n[0] ||= (e) => q(U.value - 1)
|
|
107
|
-
}, [l(t, {
|
|
108
|
-
name: "chevron-left",
|
|
109
|
-
size: "sm"
|
|
110
|
-
})], 8, S),
|
|
111
|
-
u.simple ? (p(), s("span", C, g(U.value) + " / " + g(H.value), 1)) : (p(!0), s(i, { key: 1 }, h(G.value, (e) => (p(), s("button", {
|
|
112
|
-
key: e,
|
|
113
|
-
type: "button",
|
|
114
|
-
class: f(["m-pagination__button", { "m-pagination__button--active": e === U.value }]),
|
|
115
|
-
disabled: u.disabled,
|
|
116
|
-
"aria-label": Z(e),
|
|
117
|
-
"aria-current": e === U.value ? "page" : void 0,
|
|
118
|
-
onClick: (t) => q(e)
|
|
119
|
-
}, g(e), 11, w))), 128)),
|
|
120
|
-
c("button", {
|
|
121
|
-
type: "button",
|
|
122
|
-
class: "m-pagination__button",
|
|
123
|
-
disabled: u.disabled || U.value === H.value,
|
|
124
|
-
"aria-label": _(z).nextPage,
|
|
125
|
-
onClick: n[1] ||= (e) => q(U.value + 1)
|
|
126
|
-
}, [l(t, {
|
|
127
|
-
name: "chevron-right",
|
|
128
|
-
size: "sm"
|
|
129
|
-
})], 8, T),
|
|
130
|
-
u.showSizePicker && !u.simple ? (p(), s("label", E, [c("span", D, g(_(z).itemsPerPage), 1), c("select", {
|
|
131
|
-
class: "m-pagination__select",
|
|
132
|
-
disabled: u.disabled,
|
|
133
|
-
value: V.value,
|
|
134
|
-
onChange: Y
|
|
135
|
-
}, [(p(!0), s(i, null, h(K.value, (e) => (p(), s("option", {
|
|
136
|
-
key: e,
|
|
137
|
-
value: e
|
|
138
|
-
}, g(e), 9, k))), 128))], 40, O)])) : o("", !0),
|
|
139
|
-
u.showQuickJumper && !u.simple ? (p(), s("label", A, [
|
|
140
|
-
c("span", null, g(_(z).jumpToPage), 1),
|
|
141
|
-
c("input", {
|
|
142
|
-
class: "m-pagination__input",
|
|
143
|
-
type: "number",
|
|
144
|
-
min: "1",
|
|
145
|
-
max: H.value,
|
|
146
|
-
disabled: u.disabled,
|
|
147
|
-
value: B.value,
|
|
148
|
-
onInput: n[2] ||= (e) => B.value = e.target.value,
|
|
149
|
-
onKeydown: y(b(X, ["prevent"]), ["enter"]),
|
|
150
|
-
onBlur: X
|
|
151
|
-
}, null, 40, j),
|
|
152
|
-
_(z).pageClassifier ? (p(), s("span", M, g(_(z).pageClassifier), 1)) : o("", !0)
|
|
153
|
-
])) : o("", !0)
|
|
154
|
-
], 16, x));
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
//#endregion
|
|
158
|
-
export { N as t };
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { i as t } from "./types-DGuu4Eg4.js";
|
|
3
|
-
import { t as n } from "./usePauseOffscreen-BIikV_gj.js";
|
|
4
|
-
import { n as r } from "./locale-Bzm2nbEp.js";
|
|
5
|
-
import { computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, mergeProps as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, openBlock as p, ref as m, renderSlot as h, toDisplayString as g, unref as _, useAttrs as v, useSlots as y, watch as b } from "vue";
|
|
6
|
-
//#region src/components/ProgressSpinner/ProgressSpinner.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var x = ["aria-busy"], S = ["inert"], C = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "m-progress-spinner-wrap__overlay"
|
|
10
|
-
}, w = ["aria-label"], T = ["stroke-width"], E = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "m-progress-spinner__description"
|
|
13
|
-
}, D = ["aria-label"], O = ["stroke-width"], k = /* @__PURE__ */ c({
|
|
14
|
-
inheritAttrs: !1,
|
|
15
|
-
__name: "ProgressSpinner",
|
|
16
|
-
props: {
|
|
17
|
-
pt: {},
|
|
18
|
-
strokeWidth: { default: "2" },
|
|
19
|
-
animationDuration: { default: "1s" },
|
|
20
|
-
ariaLabel: {},
|
|
21
|
-
show: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: !0
|
|
24
|
-
},
|
|
25
|
-
delay: { default: 0 },
|
|
26
|
-
size: {},
|
|
27
|
-
description: {}
|
|
28
|
-
},
|
|
29
|
-
setup(c) {
|
|
30
|
-
let k = c, A = v(), { rootAttrs: j } = e(A, () => k.pt), M = y(), N = r(), P = i(() => k.ariaLabel ?? N.value.loading), F = i(() => !!M.default), I = i(() => t(k.size)), L = m(k.show && k.delay <= 0), R = m(null), { pauseAttrs: z } = n(R, () => L.value), B = null;
|
|
31
|
-
function V() {
|
|
32
|
-
B !== null && (clearTimeout(B), B = null);
|
|
33
|
-
}
|
|
34
|
-
b(() => [
|
|
35
|
-
k.show,
|
|
36
|
-
k.delay,
|
|
37
|
-
F.value
|
|
38
|
-
], ([e, t]) => {
|
|
39
|
-
if (V(), !e) {
|
|
40
|
-
L.value = !1;
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
if (!t) {
|
|
44
|
-
L.value = !0;
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
L.value = !1, B = setTimeout(() => {
|
|
48
|
-
L.value = !0, B = null;
|
|
49
|
-
}, t);
|
|
50
|
-
}, { immediate: !0 }), f(V);
|
|
51
|
-
let H = i(() => ({ animationDuration: k.animationDuration })), U = i(() => ({
|
|
52
|
-
"m-progress-spinner--small": I.value === "small",
|
|
53
|
-
"m-progress-spinner--large": I.value === "large"
|
|
54
|
-
}));
|
|
55
|
-
return (e, t) => F.value ? (p(), o("div", l({
|
|
56
|
-
key: 0,
|
|
57
|
-
ref_key: "rootRef",
|
|
58
|
-
ref: R
|
|
59
|
-
}, {
|
|
60
|
-
..._(j),
|
|
61
|
-
..._(z)
|
|
62
|
-
}, {
|
|
63
|
-
class: ["m-progress-spinner-wrap", { "m-progress-spinner-wrap--active": L.value }],
|
|
64
|
-
"aria-busy": L.value || void 0
|
|
65
|
-
}), [s("div", {
|
|
66
|
-
class: "m-progress-spinner-wrap__content",
|
|
67
|
-
inert: L.value || void 0
|
|
68
|
-
}, [h(e.$slots, "default")], 8, S), L.value ? (p(), o("div", C, [(p(), o("svg", {
|
|
69
|
-
class: u(["m-progress-spinner", U.value]),
|
|
70
|
-
viewBox: "0 0 50 50",
|
|
71
|
-
role: "status",
|
|
72
|
-
"aria-label": P.value,
|
|
73
|
-
style: d(H.value)
|
|
74
|
-
}, [s("circle", {
|
|
75
|
-
class: "m-progress-spinner__circle",
|
|
76
|
-
cx: "25",
|
|
77
|
-
cy: "25",
|
|
78
|
-
r: "20",
|
|
79
|
-
fill: "none",
|
|
80
|
-
"stroke-width": c.strokeWidth
|
|
81
|
-
}, null, 8, T)], 14, w)), c.description ? (p(), o("p", E, g(c.description), 1)) : a("", !0)])) : a("", !0)], 16, x)) : (p(), o("svg", l({
|
|
82
|
-
key: 1,
|
|
83
|
-
ref_key: "rootRef",
|
|
84
|
-
ref: R
|
|
85
|
-
}, {
|
|
86
|
-
..._(j),
|
|
87
|
-
..._(z)
|
|
88
|
-
}, {
|
|
89
|
-
class: ["m-progress-spinner", U.value],
|
|
90
|
-
viewBox: "0 0 50 50",
|
|
91
|
-
role: "status",
|
|
92
|
-
"aria-label": P.value,
|
|
93
|
-
style: H.value
|
|
94
|
-
}), [s("circle", {
|
|
95
|
-
class: "m-progress-spinner__circle",
|
|
96
|
-
cx: "25",
|
|
97
|
-
cy: "25",
|
|
98
|
-
r: "20",
|
|
99
|
-
fill: "none",
|
|
100
|
-
"stroke-width": c.strokeWidth
|
|
101
|
-
}, null, 8, O)], 16, D));
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
//#endregion
|
|
105
|
-
export { k as t };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
//#region src/components/Tree/checkStrategy.ts
|
|
2
|
-
function e(t, n, r) {
|
|
3
|
-
for (let i of t) n(i, r), i.children?.length && e(i.children, n, i);
|
|
4
|
-
}
|
|
5
|
-
function t(e, n, r) {
|
|
6
|
-
n ? r[e.key] = !0 : delete r[e.key];
|
|
7
|
-
for (let i of e.children ?? []) t(i, n, r);
|
|
8
|
-
}
|
|
9
|
-
function n(t) {
|
|
10
|
-
let n = /* @__PURE__ */ new Map();
|
|
11
|
-
return e(t, (e) => {
|
|
12
|
-
n.set(e.key, e.children ?? []);
|
|
13
|
-
}), n;
|
|
14
|
-
}
|
|
15
|
-
function r(e, t) {
|
|
16
|
-
n(e);
|
|
17
|
-
let r = (e) => {
|
|
18
|
-
for (let n of e) n.children?.length && (r(n.children), n.children.every((e) => t[e.key]) ? t[n.key] = !0 : delete t[n.key]);
|
|
19
|
-
};
|
|
20
|
-
r(e);
|
|
21
|
-
}
|
|
22
|
-
function i(n, i, a, o) {
|
|
23
|
-
let s = { ...i };
|
|
24
|
-
return o ? s : (a === "parent" && e(n, (e) => {
|
|
25
|
-
i[e.key] && t(e, !0, s);
|
|
26
|
-
}), r(n, s), s);
|
|
27
|
-
}
|
|
28
|
-
function a(t, n, r, i) {
|
|
29
|
-
if (i || r === "all") return { ...n };
|
|
30
|
-
let a = {};
|
|
31
|
-
if (r === "child") return e(t, (e) => {
|
|
32
|
-
n[e.key] && !e.children?.length && (a[e.key] = !0);
|
|
33
|
-
}), a;
|
|
34
|
-
let o = (e, t) => {
|
|
35
|
-
for (let r of e) {
|
|
36
|
-
let e = !!n[r.key];
|
|
37
|
-
e && !t && (a[r.key] = !0), r.children?.length && o(r.children, e);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
return o(t, !1), a;
|
|
41
|
-
}
|
|
42
|
-
function o(e, t) {
|
|
43
|
-
if (!t) return null;
|
|
44
|
-
for (let n of e) {
|
|
45
|
-
if (n.key === t) return n;
|
|
46
|
-
let e = o(n.children ?? [], t);
|
|
47
|
-
if (e) return e;
|
|
48
|
-
}
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
function s(e, t) {
|
|
52
|
-
let n = [], r = (e, i) => {
|
|
53
|
-
for (let a of e) {
|
|
54
|
-
let e = [...i, a.label];
|
|
55
|
-
if (a.key === t) return n.push(...e), !0;
|
|
56
|
-
if (a.children?.length && r(a.children, e)) return !0;
|
|
57
|
-
}
|
|
58
|
-
return !1;
|
|
59
|
-
};
|
|
60
|
-
return r(e, []), n;
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
export { a, e as c, s as i, i as n, t as o, o as r, r as s, n as t };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { IconDefinition } from './icons-types';
|
|
2
|
-
export declare const tablerIconRegistry: {
|
|
3
|
-
readonly 'layout-dashboard': IconDefinition;
|
|
4
|
-
readonly 'layout-grid': IconDefinition;
|
|
5
|
-
readonly users: IconDefinition;
|
|
6
|
-
readonly 'user-plus': IconDefinition;
|
|
7
|
-
readonly folder: IconDefinition;
|
|
8
|
-
readonly 'folder-open': IconDefinition;
|
|
9
|
-
readonly file: IconDefinition;
|
|
10
|
-
readonly 'file-text': IconDefinition;
|
|
11
|
-
readonly paperclip: IconDefinition;
|
|
12
|
-
readonly clipboard: IconDefinition;
|
|
13
|
-
readonly activity: IconDefinition;
|
|
14
|
-
readonly box: IconDefinition;
|
|
15
|
-
readonly package: IconDefinition;
|
|
16
|
-
readonly stack: IconDefinition;
|
|
17
|
-
readonly cloud: IconDefinition;
|
|
18
|
-
readonly server: IconDefinition;
|
|
19
|
-
readonly components: IconDefinition;
|
|
20
|
-
readonly palette: IconDefinition;
|
|
21
|
-
readonly bell: IconDefinition;
|
|
22
|
-
readonly logout: IconDefinition;
|
|
23
|
-
readonly login: IconDefinition;
|
|
24
|
-
readonly photo: IconDefinition;
|
|
25
|
-
readonly phone: IconDefinition;
|
|
26
|
-
readonly 'map-pin': IconDefinition;
|
|
27
|
-
readonly world: IconDefinition;
|
|
28
|
-
readonly 'shopping-cart': IconDefinition;
|
|
29
|
-
readonly 'credit-card': IconDefinition;
|
|
30
|
-
readonly message: IconDefinition;
|
|
31
|
-
readonly send: IconDefinition;
|
|
32
|
-
readonly share: IconDefinition;
|
|
33
|
-
readonly 'device-floppy': IconDefinition;
|
|
34
|
-
readonly printer: IconDefinition;
|
|
35
|
-
readonly 'zoom-in': IconDefinition;
|
|
36
|
-
readonly 'zoom-out': IconDefinition;
|
|
37
|
-
readonly ban: IconDefinition;
|
|
38
|
-
readonly 'help-circle': IconDefinition;
|
|
39
|
-
readonly 'info-circle': IconDefinition;
|
|
40
|
-
readonly sun: IconDefinition;
|
|
41
|
-
readonly moon: IconDefinition;
|
|
42
|
-
readonly code: IconDefinition;
|
|
43
|
-
readonly terminal: IconDefinition;
|
|
44
|
-
readonly building: IconDefinition;
|
|
45
|
-
readonly briefcase: IconDefinition;
|
|
46
|
-
readonly list: IconDefinition;
|
|
47
|
-
readonly table: IconDefinition;
|
|
48
|
-
readonly 'chart-line': IconDefinition;
|
|
49
|
-
readonly 'chart-pie': IconDefinition;
|
|
50
|
-
readonly 'player-play': IconDefinition;
|
|
51
|
-
readonly 'player-pause': IconDefinition;
|
|
52
|
-
readonly 'device-desktop': IconDefinition;
|
|
53
|
-
readonly 'device-mobile': IconDefinition;
|
|
54
|
-
readonly 'adjustments-horizontal': IconDefinition;
|
|
55
|
-
readonly rocket: IconDefinition;
|
|
56
|
-
readonly sparkles: IconDefinition;
|
|
57
|
-
readonly history: IconDefinition;
|
|
58
|
-
readonly archive: IconDefinition;
|
|
59
|
-
readonly key: IconDefinition;
|
|
60
|
-
readonly wifi: IconDefinition;
|
|
61
|
-
readonly video: IconDefinition;
|
|
62
|
-
readonly microphone: IconDefinition;
|
|
63
|
-
readonly scissors: IconDefinition;
|
|
64
|
-
readonly 'arrow-back-up': IconDefinition;
|
|
65
|
-
readonly 'arrow-forward-up': IconDefinition;
|
|
66
|
-
readonly save: IconDefinition;
|
|
67
|
-
readonly image: IconDefinition;
|
|
68
|
-
readonly cut: IconDefinition;
|
|
69
|
-
readonly play: IconDefinition;
|
|
70
|
-
readonly pause: IconDefinition;
|
|
71
|
-
readonly undo: IconDefinition;
|
|
72
|
-
readonly redo: IconDefinition;
|
|
73
|
-
readonly layers: IconDefinition;
|
|
74
|
-
readonly sliders: IconDefinition;
|
|
75
|
-
readonly grid: IconDefinition;
|
|
76
|
-
};
|
|
77
|
-
//# sourceMappingURL=icons-tabler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icons-tabler.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/icons-tabler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,eAAe,CAAA;AAalE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqXoB,CAAA"}
|
package/dist/icon-DWXkh-RM.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { a as e } from "./Icon-lcN1rS87.js";
|
|
2
|
-
//#region src/shared/menu/icon.ts
|
|
3
|
-
var t = {
|
|
4
|
-
"layout-dashboard": "home",
|
|
5
|
-
users: "user",
|
|
6
|
-
"user-shield": "shield",
|
|
7
|
-
"users-group": "user",
|
|
8
|
-
"user-check": "user",
|
|
9
|
-
history: "clock",
|
|
10
|
-
school: "book",
|
|
11
|
-
building: "home",
|
|
12
|
-
forms: "edit",
|
|
13
|
-
"stack-2": "grip",
|
|
14
|
-
"git-branch": "link",
|
|
15
|
-
adjustments: "settings",
|
|
16
|
-
"adjustments-horizontal": "settings",
|
|
17
|
-
"list-details": "menu",
|
|
18
|
-
"alert-triangle": "warning",
|
|
19
|
-
sparkles: "star",
|
|
20
|
-
"report-analytics": "chart-bar",
|
|
21
|
-
report: "chart-bar"
|
|
22
|
-
};
|
|
23
|
-
function n(n) {
|
|
24
|
-
if (n) return e(n) ? n : t[n];
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { n as t };
|