morya-ui 0.3.1 → 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.
Files changed (228) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/Button-dMqRmoYa.js +222 -0
  3. package/dist/{Card-Dsmnzong.js → Card-B1CB9Trm.js} +3 -5
  4. package/dist/Empty-C5tndBOm.js +147 -0
  5. package/dist/Pagination-CqpC5EAs.js +166 -0
  6. package/dist/Select-CKGrSoaC.js +572 -0
  7. package/dist/Skeleton-DCYdXAH2.js +59 -0
  8. package/dist/accordion/style.css +16 -71
  9. package/dist/auto-complete/index.js +117 -119
  10. package/dist/auto-complete/style.css +6 -82
  11. package/dist/avatar/style.css +6 -67
  12. package/dist/badge/style.css +6 -68
  13. package/dist/block-ui/style.css +6 -68
  14. package/dist/breadcrumb/style.css +6 -61
  15. package/dist/button/index.js +1 -1
  16. package/dist/button/style.css +68 -78
  17. package/dist/card/index.js +1 -1
  18. package/dist/card/style.css +26 -67
  19. package/dist/carousel/style.css +6 -73
  20. package/dist/cascade-select/style.css +6 -75
  21. package/dist/checkbox/style.css +6 -61
  22. package/dist/chip/style.css +6 -67
  23. package/dist/command-menu/index.js +36 -38
  24. package/dist/command-menu/style.css +6 -75
  25. package/dist/components/Accordion/styles.css +10 -10
  26. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  27. package/dist/components/AutoComplete/styles.css +0 -7
  28. package/dist/components/Badge/styles.css +0 -7
  29. package/dist/components/BlockUI/styles.css +0 -7
  30. package/dist/components/Button/Button.vue.d.ts +2 -0
  31. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  32. package/dist/components/Button/styles.css +62 -11
  33. package/dist/components/Button/types.d.ts +4 -0
  34. package/dist/components/Button/types.d.ts.map +1 -1
  35. package/dist/components/Card/Card.vue.d.ts +2 -2
  36. package/dist/components/Card/Card.vue.d.ts.map +1 -1
  37. package/dist/components/Card/index.d.ts +1 -1
  38. package/dist/components/Card/index.d.ts.map +1 -1
  39. package/dist/components/Card/styles.css +20 -6
  40. package/dist/components/Card/types.d.ts +4 -2
  41. package/dist/components/Card/types.d.ts.map +1 -1
  42. package/dist/components/Carousel/styles.css +0 -6
  43. package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
  44. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -2
  45. package/dist/components/Dialog/styles.css +3 -46
  46. package/dist/components/Dock/styles.css +0 -10
  47. package/dist/components/Drawer/styles.css +2 -51
  48. package/dist/components/Fieldset/styles.css +0 -7
  49. package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
  50. package/dist/components/FileUpload/fileUtils.d.ts +8 -0
  51. package/dist/components/FileUpload/fileUtils.d.ts.map +1 -0
  52. package/dist/components/Gallery/styles.css +0 -8
  53. package/dist/components/Icon/styles.css +0 -6
  54. package/dist/components/Knob/styles.css +0 -6
  55. package/dist/components/Layout/styles.css +0 -12
  56. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  57. package/dist/components/Loading/styles.css +0 -16
  58. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  59. package/dist/components/Menu/styles.css +0 -7
  60. package/dist/components/Message/styles.css +0 -13
  61. package/dist/components/Page/PageContent.vue.d.ts +2 -1
  62. package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
  63. package/dist/components/Page/PageFilterChips.vue.d.ts +16 -0
  64. package/dist/components/Page/PageFilterChips.vue.d.ts.map +1 -0
  65. package/dist/components/Page/PageFilters.vue.d.ts +15 -3
  66. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  67. package/dist/components/Page/PageHeader.vue.d.ts +8 -4
  68. package/dist/components/Page/PageHeader.vue.d.ts.map +1 -1
  69. package/dist/components/Page/PagePlaceholder.vue.d.ts +6 -2
  70. package/dist/components/Page/PagePlaceholder.vue.d.ts.map +1 -1
  71. package/dist/components/Page/PageSection.vue.d.ts +8 -2
  72. package/dist/components/Page/PageSection.vue.d.ts.map +1 -1
  73. package/dist/components/Page/PageStat.vue.d.ts +8 -3
  74. package/dist/components/Page/PageStat.vue.d.ts.map +1 -1
  75. package/dist/components/Page/index.d.ts +2 -1
  76. package/dist/components/Page/index.d.ts.map +1 -1
  77. package/dist/components/Page/styles.css +239 -44
  78. package/dist/components/Page/types.d.ts +40 -0
  79. package/dist/components/Page/types.d.ts.map +1 -1
  80. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  81. package/dist/components/Pagination/styles.css +7 -10
  82. package/dist/components/Pagination/types.d.ts +1 -1
  83. package/dist/components/Pagination/types.d.ts.map +1 -1
  84. package/dist/components/Panel/styles.css +0 -7
  85. package/dist/components/Popover/styles.css +20 -17
  86. package/dist/components/ProgressBar/styles.css +0 -9
  87. package/dist/components/ProgressSpinner/styles.css +0 -7
  88. package/dist/components/ScrollTop/styles.css +0 -7
  89. package/dist/components/Scrollbar/styles.css +0 -8
  90. package/dist/components/Select/Select.vue.d.ts +1 -3
  91. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  92. package/dist/components/Select/selectOptions.d.ts +46 -0
  93. package/dist/components/Select/selectOptions.d.ts.map +1 -0
  94. package/dist/components/Select/styles.css +5 -7
  95. package/dist/components/Sidebar/styles.css +0 -6
  96. package/dist/components/Skeleton/styles.css +0 -6
  97. package/dist/components/Status/styles.css +0 -7
  98. package/dist/components/Switch/styles.css +0 -7
  99. package/dist/components/Table/hooks/useExpandableRow.d.ts.map +1 -1
  100. package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
  101. package/dist/components/Table/styles.css +7 -10
  102. package/dist/components/Table/tableQuery.d.ts +30 -0
  103. package/dist/components/Table/tableQuery.d.ts.map +1 -0
  104. package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
  105. package/dist/components/Tree/treeQuery.d.ts +31 -0
  106. package/dist/components/Tree/treeQuery.d.ts.map +1 -0
  107. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  108. package/dist/config-provider/index.js +1 -1
  109. package/dist/config-provider/style.css +68 -72
  110. package/dist/confirm-dialog/index.js +1 -1
  111. package/dist/confirm-dialog/style.css +71 -124
  112. package/dist/confirm-popup/index.js +1 -1
  113. package/dist/confirm-popup/style.css +68 -78
  114. package/dist/context-menu/style.css +6 -75
  115. package/dist/data-view/index.js +1 -1
  116. package/dist/data-view/style.css +13 -87
  117. package/dist/date-picker/style.css +6 -67
  118. package/dist/dialog/index.js +1 -1
  119. package/dist/dialog/style.css +71 -124
  120. package/dist/divider/style.css +6 -61
  121. package/dist/dock/style.css +6 -77
  122. package/dist/drawer/style.css +8 -118
  123. package/dist/dropdown/style.css +6 -75
  124. package/dist/empty/index.js +5 -150
  125. package/dist/empty/style.css +6 -67
  126. package/dist/fieldset/style.css +6 -74
  127. package/dist/file-upload/index.js +147 -145
  128. package/dist/file-upload/style.css +6 -67
  129. package/dist/filterByQuery-Bczaxzih.js +17 -0
  130. package/dist/flex/style.css +6 -61
  131. package/dist/float-label/style.css +6 -61
  132. package/dist/fluid/style.css +6 -61
  133. package/dist/form/style.css +6 -61
  134. package/dist/gallery/style.css +6 -83
  135. package/dist/grid/style.css +6 -61
  136. package/dist/icon/style.css +6 -67
  137. package/dist/icon-field/style.css +6 -61
  138. package/dist/index.d.ts +3 -2
  139. package/dist/index.d.ts.map +1 -1
  140. package/dist/index.js +9017 -8694
  141. package/dist/inplace/style.css +6 -61
  142. package/dist/input/style.css +6 -67
  143. package/dist/input-color/style.css +6 -61
  144. package/dist/input-group/style.css +6 -61
  145. package/dist/input-number/style.css +6 -67
  146. package/dist/input-otp/style.css +6 -61
  147. package/dist/input-password/style.css +6 -67
  148. package/dist/input-tags/style.css +6 -67
  149. package/dist/knob/style.css +6 -67
  150. package/dist/label/style.css +6 -61
  151. package/dist/layout/style.css +6 -87
  152. package/dist/listbox/index.js +30 -32
  153. package/dist/listbox/style.css +6 -69
  154. package/dist/loading/style.css +6 -77
  155. package/dist/mega-menu/style.css +6 -67
  156. package/dist/menu/index.js +263 -253
  157. package/dist/menu/style.css +26 -99
  158. package/dist/menubar/style.css +6 -75
  159. package/dist/message/style.css +6 -80
  160. package/dist/meter-group/style.css +6 -61
  161. package/dist/order-list/style.css +6 -67
  162. package/dist/page/index.js +228 -69
  163. package/dist/page/style.css +1182 -113
  164. package/dist/page/style.js +3 -0
  165. package/dist/pagination/index.js +1 -1
  166. package/dist/pagination/style.css +206 -77
  167. package/dist/pagination/style.js +1 -0
  168. package/dist/panel/style.css +6 -74
  169. package/dist/pick-list/style.css +6 -67
  170. package/dist/popover/style.css +26 -78
  171. package/dist/progress-bar/style.css +6 -70
  172. package/dist/progress-spinner/style.css +6 -68
  173. package/dist/radio/style.css +6 -61
  174. package/dist/rating/style.css +6 -67
  175. package/dist/resolver-map.d.ts.map +1 -1
  176. package/dist/resolver.js +1 -0
  177. package/dist/result/style.css +6 -67
  178. package/dist/scroll-top/style.css +6 -82
  179. package/dist/scrollbar/style.css +6 -69
  180. package/dist/select/index.js +2 -545
  181. package/dist/select/style.css +11 -82
  182. package/dist/select-button/style.css +6 -61
  183. package/dist/shared/config.d.ts +2 -2
  184. package/dist/shared/filterByQuery.d.ts +14 -0
  185. package/dist/shared/filterByQuery.d.ts.map +1 -0
  186. package/dist/shared/menu/expand.d.ts +38 -0
  187. package/dist/shared/menu/expand.d.ts.map +1 -0
  188. package/dist/shared/menu/index.d.ts +2 -0
  189. package/dist/shared/menu/index.d.ts.map +1 -1
  190. package/dist/sidebar/style.css +6 -73
  191. package/dist/skeleton/index.js +2 -59
  192. package/dist/skeleton/style.css +6 -67
  193. package/dist/slider/style.css +6 -61
  194. package/dist/space/style.css +6 -61
  195. package/dist/speed-dial/style.css +6 -67
  196. package/dist/split-button/style.css +68 -78
  197. package/dist/splitter/style.css +6 -61
  198. package/dist/status/style.css +6 -74
  199. package/dist/stepper/style.css +6 -67
  200. package/dist/styles/base.css +1 -50
  201. package/dist/styles.css +1 -1
  202. package/dist/switch/style.css +6 -68
  203. package/dist/table/index.js +341 -311
  204. package/dist/table/style.css +20 -111
  205. package/dist/tabs/style.css +6 -75
  206. package/dist/tag/style.css +6 -67
  207. package/dist/terminal/style.css +6 -61
  208. package/dist/textarea/style.css +6 -67
  209. package/dist/theme/styles.css +5 -11
  210. package/dist/theme/useMotion.d.ts +5 -1
  211. package/dist/theme/useMotion.d.ts.map +1 -1
  212. package/dist/tiered-menu/style.css +6 -75
  213. package/dist/timeline/style.css +6 -75
  214. package/dist/toast/style.css +6 -67
  215. package/dist/toggle-button/style.css +6 -67
  216. package/dist/toolbar/style.css +6 -61
  217. package/dist/tooltip/style.css +6 -61
  218. package/dist/tree/index.js +158 -172
  219. package/dist/tree/style.css +6 -67
  220. package/dist/tree-select/index.js +198 -212
  221. package/dist/tree-select/style.css +6 -75
  222. package/dist/tree-table/style.css +6 -67
  223. package/dist/treeQuery-CnHkyYOA.js +107 -0
  224. package/dist/virtual-scroller/style.css +6 -69
  225. package/package.json +1 -1
  226. package/dist/Button-smoDleh0.js +0 -156
  227. package/dist/Pagination-DrXmzcEy.js +0 -158
  228. package/dist/checkStrategy-CZzuUKDI.js +0 -63
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # morya-ui
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### 新功能
6
+
7
+ - add click ripple and a press-scale toggle
8
+ - replace quick jumper with a filterable Select
9
+ - refine ops layout primitives and P2 filter/stat APIs
10
+ - add shadow prop and remove hoverable
11
+
12
+ ### 修复
13
+
14
+ - Panel component change demo component width
15
+ - remove OS reduced-motion media queries from components
16
+ - control intensity via library preference only
17
+
18
+ ### 文档
19
+
20
+ - document impeccable and skills-cli companion install
21
+ - document library-only motion control
22
+
23
+ ### 变更
24
+
25
+ - extract filter and expanded-key helpers
26
+ - extract label filter helpers for option lists
27
+ - extract sort, filter, and selection helpers
28
+ - extract expand and visible-entry helpers
29
+ - extract option filter and multi-select helpers
30
+ - cover CommandMenu keys and FileUpload dropzone keyboard
31
+ - extract accept and size helpers
32
+ - polish overlay scale, press feedback, and scroll containment
33
+ - refresh snippets, generators, and golden page copies
34
+
3
35
  ## 0.3.1
4
36
 
5
37
  ### 新功能
@@ -0,0 +1,222 @@
1
+ import { r as e, t } from "./types-DGuu4Eg4.js";
2
+ import { t as n } from "./Icon-od9Ob-Ay.js";
3
+ import { o as r } from "./config-CapALqt3.js";
4
+ import { Comment as i, Fragment as a, Text as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, defineComponent as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, openBlock as _, ref as v, renderSlot as y, resolveDynamicComponent as b, toDisplayString as x, useSlots as ee } from "vue";
5
+ //#region src/components/Button/Button.vue?vue&type=script&setup=true&lang.ts
6
+ var S = [
7
+ "type",
8
+ "disabled",
9
+ "autofocus",
10
+ "aria-busy",
11
+ "aria-label"
12
+ ], C = {
13
+ key: 2,
14
+ class: "m-button__label"
15
+ }, w = 560, T = 280, E = /* @__PURE__ */ p({
16
+ __name: "Button",
17
+ props: {
18
+ label: {},
19
+ icon: {},
20
+ iconPos: { default: "left" },
21
+ iconOnly: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ severity: {},
26
+ color: {},
27
+ raised: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ rounded: {
32
+ type: Boolean,
33
+ default: !1
34
+ },
35
+ text: {
36
+ type: Boolean,
37
+ default: !1
38
+ },
39
+ outlined: {
40
+ type: Boolean,
41
+ default: !1
42
+ },
43
+ link: {
44
+ type: Boolean,
45
+ default: !1
46
+ },
47
+ ghost: {
48
+ type: Boolean,
49
+ default: !1
50
+ },
51
+ quaternary: {
52
+ type: Boolean,
53
+ default: !1
54
+ },
55
+ plain: {
56
+ type: Boolean,
57
+ default: !1
58
+ },
59
+ variant: {},
60
+ size: {},
61
+ fluid: {
62
+ type: Boolean,
63
+ default: !1
64
+ },
65
+ loading: {
66
+ type: Boolean,
67
+ default: !1
68
+ },
69
+ disabled: {
70
+ type: Boolean,
71
+ default: !1
72
+ },
73
+ badge: {},
74
+ badgeSeverity: { default: null },
75
+ autofocus: {
76
+ type: Boolean,
77
+ default: !1
78
+ },
79
+ nativeType: { default: "button" },
80
+ ariaLabel: {},
81
+ ripple: {
82
+ type: Boolean,
83
+ default: !0
84
+ },
85
+ press: {
86
+ type: Boolean,
87
+ default: !0
88
+ }
89
+ },
90
+ emits: ["click"],
91
+ setup(p, { expose: E, emit: D }) {
92
+ let O = p, k = D, A = ee(), j = v(null), M = v(null), N = /* @__PURE__ */ new Set(), P = s(() => !!A.default?.().some((e) => Z(e))), F = s(() => P.value || !!O.label?.trim()), I = s(() => O.outlined || O.variant === "outlined"), L = s(() => O.text || O.variant === "text"), R = s(() => O.link || O.variant === "link"), z = s(() => O.ghost || O.variant === "ghost"), B = s(() => O.quaternary || O.variant === "quaternary"), V = s(() => O.fluid), H = r("Button", () => O.size), U = s(() => e(H.value)), W = s(() => O.iconOnly || !F.value && !!(O.icon || A.icon || O.loading)), G = s(() => t(O.severity) ?? "primary"), K = s(() => typeof O.icon == "string" ? O.icon : void 0), q = s(() => typeof O.icon == "string" || !O.icon ? void 0 : O.icon), J = s(() => [
93
+ "m-button",
94
+ `m-button--${G.value}`,
95
+ `m-button--${H.value}`,
96
+ `m-button--icon-${O.iconPos}`,
97
+ {
98
+ "m-button--raised": O.raised,
99
+ "m-button--rounded": O.rounded,
100
+ "m-button--text": L.value,
101
+ "m-button--outlined": I.value,
102
+ "m-button--link": R.value,
103
+ "m-button--ghost": z.value,
104
+ "m-button--quaternary": B.value,
105
+ "m-button--plain": O.plain,
106
+ "m-button--fluid": V.value,
107
+ "m-button--loading": O.loading,
108
+ "m-button--icon-only": W.value,
109
+ "m-button--custom": !!O.color,
110
+ "m-button--ripple": O.ripple,
111
+ "m-button--press": O.press
112
+ }
113
+ ]), Y = s(() => O.color ? { "--m-button-color": O.color } : void 0), X = s(() => ["m-button__badge", O.badgeSeverity ? `m-button__badge--${t(O.badgeSeverity)}` : "m-button__badge--contrast"]);
114
+ function Z(e) {
115
+ if (e == null || typeof e == "boolean") return !1;
116
+ if (typeof e == "string" || typeof e == "number") return String(e).trim().length > 0;
117
+ if (Array.isArray(e)) return e.some((e) => Z(e));
118
+ if (typeof e == "object" && "type" in e) {
119
+ let t = e;
120
+ return t.type === i ? !1 : t.type === o ? String(t.children ?? "").trim().length > 0 : t.type !== a || Z(t.children);
121
+ }
122
+ return !1;
123
+ }
124
+ function Q() {
125
+ return !O.ripple || typeof document > "u" || document.documentElement.dataset.mMotion === "none";
126
+ }
127
+ function te() {
128
+ return typeof document > "u" ? w : document.documentElement.dataset.mMotion === "reduced" ? T : w;
129
+ }
130
+ function $(e, t, n = !1) {
131
+ if (Q()) return;
132
+ let r = j.value, i = M.value;
133
+ if (!r || !i) return;
134
+ let a = r.getBoundingClientRect(), o = Math.ceil(Math.hypot(a.width, a.height) * 2), s = n ? a.width / 2 : e - a.left, c = n ? a.height / 2 : t - a.top, l = document.createElement("span");
135
+ l.className = "m-button__ripple-wave", l.style.width = `${o}px`, l.style.height = `${o}px`, l.style.left = `${s - o / 2}px`, l.style.top = `${c - o / 2}px`, i.appendChild(l);
136
+ let u = te(), d = () => {
137
+ l.remove();
138
+ };
139
+ if (typeof l.animate == "function") {
140
+ let e = l.animate([
141
+ {
142
+ transform: "scale(0)",
143
+ opacity: .42
144
+ },
145
+ {
146
+ transform: "scale(0.55)",
147
+ opacity: .22,
148
+ offset: .55
149
+ },
150
+ {
151
+ transform: "scale(1)",
152
+ opacity: 0
153
+ }
154
+ ], {
155
+ duration: u,
156
+ easing: "cubic-bezier(0.2, 0, 0, 1)",
157
+ fill: "forwards"
158
+ });
159
+ N.add(e), e.finished.then(() => {
160
+ N.delete(e), d();
161
+ }).catch(d);
162
+ return;
163
+ }
164
+ l.classList.add("m-button__ripple-wave--fallback"), window.setTimeout(d, u);
165
+ }
166
+ function ne(e) {
167
+ O.disabled || O.loading || e.button === 0 && $(e.clientX, e.clientY);
168
+ }
169
+ function re(e) {
170
+ O.disabled || O.loading || (e.detail === 0 && $(0, 0, !0), k("click", e));
171
+ }
172
+ function ie() {
173
+ j.value?.focus();
174
+ }
175
+ return g(() => {
176
+ for (let e of N) e.cancel();
177
+ N.clear();
178
+ }), E({
179
+ focus: ie,
180
+ ref: j
181
+ }), (e, t) => (_(), u("button", {
182
+ ref_key: "buttonElement",
183
+ ref: j,
184
+ class: m(J.value),
185
+ style: h(Y.value),
186
+ type: p.nativeType,
187
+ disabled: p.disabled || p.loading,
188
+ autofocus: p.autofocus || void 0,
189
+ "aria-busy": p.loading || void 0,
190
+ "aria-label": p.ariaLabel || (W.value ? p.label : void 0),
191
+ onPointerdown: ne,
192
+ onClick: re
193
+ }, [
194
+ p.ripple ? (_(), u("span", {
195
+ key: 0,
196
+ ref_key: "rippleLayer",
197
+ ref: M,
198
+ class: "m-button__ripple",
199
+ "aria-hidden": "true"
200
+ }, null, 512)) : l("", !0),
201
+ p.loading || p.icon || e.$slots.icon ? (_(), u("span", {
202
+ key: 1,
203
+ class: m(["m-button__icon", { "m-button__icon--loading": p.loading }]),
204
+ "aria-hidden": "true"
205
+ }, [p.loading ? y(e.$slots, "loadingicon", {}, () => [t[0] ||= d("span", { class: "m-button__spinner" }, null, -1)], void 0, 0) : y(e.$slots, "icon", { class: "m-button__icon-slot" }, () => [K.value ? (_(), c(n, {
206
+ key: 0,
207
+ name: K.value,
208
+ size: U.value
209
+ }, null, 8, ["name", "size"])) : q.value ? (_(), c(b(q.value), {
210
+ key: 1,
211
+ class: "m-button__icon-graphic"
212
+ })) : l("", !0)], void 0, 1)], 2)) : l("", !0),
213
+ F.value && !p.iconOnly ? (_(), u("span", C, [y(e.$slots, "default", {}, () => [f(x(p.label), 1)])])) : l("", !0),
214
+ p.badge != null && p.badge !== "" ? (_(), u("span", {
215
+ key: 3,
216
+ class: m(X.value)
217
+ }, x(p.badge), 3)) : l("", !0)
218
+ ], 46, S));
219
+ }
220
+ });
221
+ //#endregion
222
+ export { E as t };
@@ -28,16 +28,14 @@ var _ = ["aria-label"], v = {
28
28
  type: Boolean,
29
29
  default: !0
30
30
  },
31
- hoverable: {
32
- type: Boolean,
33
- default: !1
34
- }
31
+ shadow: { default: "never" }
35
32
  },
36
33
  setup(c) {
37
34
  let C = c, w = h(), { rootAttrs: T } = e(w, () => C.pt), E = n(() => t(C.size)), D = n(() => `h${C.headingLevel}`), O = n(() => ["m-card", {
38
35
  "m-card--bordered": C.bordered,
39
36
  "m-card--borderless": !C.bordered,
40
- "m-card--hoverable": C.hoverable,
37
+ "m-card--shadow-hover": C.shadow === "hover",
38
+ "m-card--shadow-always": C.shadow === "always",
41
39
  "m-card--small": E.value === "small",
42
40
  "m-card--large": E.value === "large"
43
41
  }]);
@@ -0,0 +1,147 @@
1
+ import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
2
+ import { t } from "./Icon-od9Ob-Ay.js";
3
+ import { t as n } from "./useMId-BXFYayPP.js";
4
+ import { n as r } from "./locale-Bzm2nbEp.js";
5
+ import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, defineComponent as l, mergeProps as u, openBlock as d, ref as f, renderSlot as p, toDisplayString as m, unref as h, useAttrs as g, useSlots as _, watch as v } from "vue";
6
+ //#region src/components/Empty/illustrations/loaders.ts
7
+ var y = {
8
+ "no-content": () => import("./no-content-CwbqVPoN.js"),
9
+ "no-result": () => import("./no-result-pGce34BV.js"),
10
+ "no-message": () => import("./no-message-DnIEpMiO.js"),
11
+ "no-schedule": () => import("./no-schedule-Cl9Frt1Q.js"),
12
+ "no-issue": () => import("./no-issue-DMkU-Pnw.js"),
13
+ "network-error": () => import("./network-error-C6vl5a7S.js"),
14
+ "server-error": () => import("./server-error-D8zGMe5r.js"),
15
+ building: () => import("./building-DYLdXiQg.js"),
16
+ "churn-high": () => import("./churn-high-D1ELpZzW.js"),
17
+ "conversion-low": () => import("./conversion-low-CwZiQc2k.js"),
18
+ "activity-low": () => import("./activity-low-CgK9kHWr.js"),
19
+ "profile-unclear": () => import("./profile-unclear-CGs4PCfw.js"),
20
+ "input-irregular": () => import("./input-irregular-xSLDoNTS.js"),
21
+ "payment-cycle-long": () => import("./payment-cycle-long-Ba9FNStl.js")
22
+ };
23
+ async function b(e) {
24
+ return (await y[e]()).default;
25
+ }
26
+ //#endregion
27
+ //#region src/components/Empty/illustrations/defaultEmptyIcon.ts
28
+ var x = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 28 28\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 3.95118 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z\" fill=\"currentColor\"/><path d=\"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z\" fill=\"currentColor\"/></svg>", S = [
29
+ "no-content",
30
+ "no-result",
31
+ "no-message",
32
+ "no-schedule",
33
+ "no-issue"
34
+ ], C = [
35
+ "network-error",
36
+ "server-error",
37
+ "building"
38
+ ], w = /__MID_(\d+)__/g;
39
+ function T(e, t) {
40
+ return e.replace(w, (e, n) => `${t}-${n}`);
41
+ }
42
+ async function E(e, t) {
43
+ return T(await b(e), t);
44
+ }
45
+ //#endregion
46
+ //#region src/components/Empty/Empty.vue?vue&type=script&setup=true&lang.ts
47
+ var D = {
48
+ key: 0,
49
+ class: "m-empty__illustration",
50
+ "aria-hidden": "true"
51
+ }, O = ["src"], k = ["innerHTML"], A = ["innerHTML"], j = {
52
+ key: 1,
53
+ class: "m-empty__body"
54
+ }, M = {
55
+ key: 0,
56
+ class: "m-empty__title"
57
+ }, N = {
58
+ key: 1,
59
+ class: "m-empty__description"
60
+ }, P = {
61
+ key: 2,
62
+ class: "m-empty__extra"
63
+ }, F = /* @__PURE__ */ l({
64
+ inheritAttrs: !1,
65
+ __name: "Empty",
66
+ props: {
67
+ pt: {},
68
+ title: {},
69
+ description: {},
70
+ showDescription: {
71
+ type: Boolean,
72
+ default: !0
73
+ },
74
+ showIcon: {
75
+ type: Boolean,
76
+ default: !0
77
+ },
78
+ size: {},
79
+ icon: {},
80
+ illustration: {},
81
+ image: {},
82
+ simple: {
83
+ type: Boolean,
84
+ default: !1
85
+ }
86
+ },
87
+ setup(l) {
88
+ let y = l, b = g(), S = _(), { rootAttrs: C } = e(b, () => y.pt), w = r(), T = n("m-ill"), F = f(), I = 0;
89
+ function L(e) {
90
+ return e === "small" || e === "sm" ? "small" : e === "large" || e === "lg" ? "large" : "medium";
91
+ }
92
+ let R = i(() => L(y.size)), z = i(() => !!(S.image || y.image)), B = i(() => !!S.icon), V = i(() => {
93
+ if (y.showIcon) {
94
+ if (y.illustration) return y.illustration;
95
+ if (!(z.value || B.value) && y.icon === "search") return "no-result";
96
+ }
97
+ });
98
+ v(V, (e) => {
99
+ let t = ++I;
100
+ if (!e) {
101
+ F.value = void 0;
102
+ return;
103
+ }
104
+ E(e, T).then((e) => {
105
+ t === I && (F.value = e);
106
+ }, () => {
107
+ t === I && (F.value = void 0);
108
+ });
109
+ }, { immediate: !0 });
110
+ let H = i(() => y.showIcon && !!V.value && !!F.value && !z.value && !B.value), U = i(() => y.showIcon && !!y.icon && y.icon !== "search" && !V.value && !z.value && !B.value), W = i(() => y.showIcon && !V.value && !U.value && !z.value && !B.value), G = i(() => y.showIcon && (z.value || B.value || H.value || U.value || W.value)), K = i(() => y.description == null ? w.value.emptyMessage : y.description), q = i(() => S.title ? !0 : y.title != null && y.title !== ""), J = i(() => y.showDescription ? S.default ? !0 : !!K.value : !1), Y = i(() => [
111
+ "m-empty",
112
+ `m-empty--${R.value}`,
113
+ {
114
+ "m-empty--simple": y.simple,
115
+ "m-empty--default-icon": W.value
116
+ }
117
+ ]);
118
+ return (e, n) => (d(), s("div", u(h(C), {
119
+ class: Y.value,
120
+ role: "status"
121
+ }), [
122
+ G.value ? (d(), s("div", D, [z.value ? p(e.$slots, "image", {}, () => [l.image ? (d(), s("img", {
123
+ key: 0,
124
+ class: "m-empty__image",
125
+ src: l.image,
126
+ alt: ""
127
+ }, null, 8, O)) : o("", !0)], void 0, 0) : B.value ? p(e.$slots, "icon", {}, void 0, void 0, 1) : H.value && F.value ? (d(), s("div", {
128
+ key: 2,
129
+ class: "m-empty__glyph",
130
+ innerHTML: F.value
131
+ }, null, 8, k)) : U.value && l.icon ? (d(), a(t, {
132
+ key: 3,
133
+ class: "m-empty__icon",
134
+ name: l.icon,
135
+ size: "lg"
136
+ }, null, 8, ["name"])) : W.value ? (d(), s("div", {
137
+ key: 4,
138
+ class: "m-empty__default-icon",
139
+ innerHTML: h(x)
140
+ }, null, 8, A)) : o("", !0)])) : o("", !0),
141
+ q.value || J.value ? (d(), s("div", j, [q.value ? (d(), s("div", M, [p(e.$slots, "title", {}, () => [c(m(l.title), 1)])])) : o("", !0), J.value ? (d(), s("div", N, [p(e.$slots, "default", {}, () => [c(m(K.value), 1)])])) : o("", !0)])) : o("", !0),
142
+ h(S).extra ? (d(), s("div", P, [p(e.$slots, "extra")])) : o("", !0)
143
+ ], 16));
144
+ }
145
+ });
146
+ //#endregion
147
+ export { b as i, C as n, S as r, F as t };
@@ -0,0 +1,166 @@
1
+ import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
2
+ import { t } from "./Icon-od9Ob-Ay.js";
3
+ import { t as n } from "./Select-CKGrSoaC.js";
4
+ import { n as r, t as i } from "./locale-Bzm2nbEp.js";
5
+ import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, openBlock as m, renderList as h, toDisplayString as g, unref as _, useAttrs as v } from "vue";
6
+ //#region src/components/Pagination/Pagination.vue?vue&type=script&setup=true&lang.ts
7
+ var y = ["aria-label"], b = ["disabled", "aria-label"], x = {
8
+ key: 0,
9
+ class: "m-pagination__simple",
10
+ "aria-current": "page"
11
+ }, S = [
12
+ "disabled",
13
+ "aria-label",
14
+ "aria-current",
15
+ "onClick"
16
+ ], C = ["disabled", "aria-label"], w = {
17
+ key: 2,
18
+ class: "m-pagination__sizer"
19
+ }, T = { class: "m-pagination__sizer-label" }, E = ["disabled", "value"], D = ["value"], O = {
20
+ key: 3,
21
+ class: "m-pagination__jumper"
22
+ }, k = { key: 0 }, A = /* @__PURE__ */ d({
23
+ inheritAttrs: !1,
24
+ __name: "Pagination",
25
+ props: {
26
+ pt: {},
27
+ modelValue: { default: 1 },
28
+ totalRecords: {},
29
+ rows: { default: 10 },
30
+ pageSize: {},
31
+ pageLinkSize: { default: 5 },
32
+ disabled: {
33
+ type: Boolean,
34
+ default: !1
35
+ },
36
+ showSizePicker: {
37
+ type: Boolean,
38
+ default: !1
39
+ },
40
+ pageSizes: { default: () => [
41
+ 10,
42
+ 20,
43
+ 50,
44
+ 100
45
+ ] },
46
+ showQuickJumper: {
47
+ type: Boolean,
48
+ default: !1
49
+ },
50
+ simple: {
51
+ type: Boolean,
52
+ default: !1
53
+ }
54
+ },
55
+ emits: [
56
+ "update:modelValue",
57
+ "page",
58
+ "update:rows",
59
+ "update:pageSize"
60
+ ],
61
+ setup(d, { expose: A, emit: j }) {
62
+ let M = d, N = j, P = v(), { rootAttrs: F } = e(P, () => M.pt), I = r(), L = o(() => Math.max(1, M.pageSize ?? M.rows)), R = o(() => Math.max(1, Math.ceil(M.totalRecords / L.value))), z = o(() => Math.min(Math.max(1, M.modelValue), R.value)), B = o(() => (z.value - 1) * L.value), V = o(() => {
63
+ let e = Math.min(M.pageLinkSize, R.value), t = Math.min(Math.max(1, z.value - Math.floor(e / 2)), R.value - e + 1);
64
+ return Array.from({ length: e }, (e, n) => t + n);
65
+ }), H = o(() => {
66
+ let e = [...M.pageSizes];
67
+ return e.includes(L.value) || e.unshift(L.value), e;
68
+ }), U = o(() => !M.showQuickJumper || M.simple ? [] : Array.from({ length: R.value }, (e, t) => {
69
+ let n = t + 1;
70
+ return {
71
+ label: String(n),
72
+ value: n
73
+ };
74
+ })), W = o(() => ({ control: { "aria-label": I.value.jumpToPage } }));
75
+ function G(e) {
76
+ let t = Math.min(Math.max(1, e), R.value);
77
+ M.disabled || t === z.value || (N("update:modelValue", t), N("page", t));
78
+ }
79
+ function K(e) {
80
+ if (M.disabled || e === L.value) return;
81
+ N("update:rows", e), N("update:pageSize", e);
82
+ let t = Math.max(1, Math.ceil(M.totalRecords / e)), n = Math.min(z.value, t);
83
+ n !== z.value && (N("update:modelValue", n), N("page", n));
84
+ }
85
+ function q(e) {
86
+ let t = Number(e.target.value);
87
+ Number.isFinite(t) && K(t);
88
+ }
89
+ function J(e) {
90
+ if (typeof e != "number" && typeof e != "string") return;
91
+ let t = typeof e == "number" ? e : Number(e);
92
+ Number.isFinite(t) && G(t);
93
+ }
94
+ function Y(e) {
95
+ return i(I.value.page, { page: e });
96
+ }
97
+ return A({
98
+ first: B,
99
+ pageCount: R
100
+ }), (e, r) => (m(), c("nav", f(_(F), {
101
+ class: ["m-pagination", { "m-pagination--simple": d.simple }],
102
+ "aria-label": _(I).pagination
103
+ }), [
104
+ l("button", {
105
+ type: "button",
106
+ class: "m-pagination__button",
107
+ disabled: d.disabled || z.value === 1,
108
+ "aria-label": _(I).prevPage,
109
+ onClick: r[0] ||= (e) => G(z.value - 1)
110
+ }, [u(t, {
111
+ name: "chevron-left",
112
+ size: "sm"
113
+ })], 8, b),
114
+ d.simple ? (m(), c("span", x, g(z.value) + " / " + g(R.value), 1)) : (m(!0), c(a, { key: 1 }, h(V.value, (e) => (m(), c("button", {
115
+ key: e,
116
+ type: "button",
117
+ class: p(["m-pagination__button", { "m-pagination__button--active": e === z.value }]),
118
+ disabled: d.disabled,
119
+ "aria-label": Y(e),
120
+ "aria-current": e === z.value ? "page" : void 0,
121
+ onClick: (t) => G(e)
122
+ }, g(e), 11, S))), 128)),
123
+ l("button", {
124
+ type: "button",
125
+ class: "m-pagination__button",
126
+ disabled: d.disabled || z.value === R.value,
127
+ "aria-label": _(I).nextPage,
128
+ onClick: r[1] ||= (e) => G(z.value + 1)
129
+ }, [u(t, {
130
+ name: "chevron-right",
131
+ size: "sm"
132
+ })], 8, C),
133
+ d.showSizePicker && !d.simple ? (m(), c("label", w, [l("span", T, g(_(I).itemsPerPage), 1), l("select", {
134
+ class: "m-pagination__select",
135
+ disabled: d.disabled,
136
+ value: L.value,
137
+ onChange: q
138
+ }, [(m(!0), c(a, null, h(H.value, (e) => (m(), c("option", {
139
+ key: e,
140
+ value: e
141
+ }, g(e), 9, D))), 128))], 40, E)])) : s("", !0),
142
+ d.showQuickJumper && !d.simple ? (m(), c("div", O, [
143
+ l("span", null, g(_(I).jumpToPage), 1),
144
+ u(n, {
145
+ class: "m-pagination__jumper-select",
146
+ size: "small",
147
+ "model-value": z.value,
148
+ options: U.value,
149
+ disabled: d.disabled,
150
+ filter: R.value > 10,
151
+ pt: W.value,
152
+ "onUpdate:modelValue": J
153
+ }, null, 8, [
154
+ "model-value",
155
+ "options",
156
+ "disabled",
157
+ "filter",
158
+ "pt"
159
+ ]),
160
+ _(I).pageClassifier ? (m(), c("span", k, g(_(I).pageClassifier), 1)) : s("", !0)
161
+ ])) : s("", !0)
162
+ ], 16, y));
163
+ }
164
+ });
165
+ //#endregion
166
+ export { A as t };