morya-ui 0.3.1 → 0.3.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.
Files changed (255) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/Button-gBiRj7wz.js +227 -0
  3. package/dist/{Card-Dsmnzong.js → Card-B1CB9Trm.js} +3 -5
  4. package/dist/Empty-C5tndBOm.js +147 -0
  5. package/dist/{FlyoutSubmenu-BrUPmJa1.js → FlyoutSubmenu-H_741alW.js} +2 -2
  6. package/dist/{Loading-BSsRs6v9.js → Loading-qS2Yv_gm.js} +1 -1
  7. package/dist/Pagination-Bvv2qvEK.js +166 -0
  8. package/dist/{Popover-BQ07q4VV.js → Popover-rnZG_ap0.js} +3 -3
  9. package/dist/Select-CiXd074W.js +572 -0
  10. package/dist/Skeleton-DCYdXAH2.js +59 -0
  11. package/dist/{Tooltip-D5DO0B3z.js → Tooltip-B02o9BOW.js} +3 -3
  12. package/dist/accordion/style.css +16 -71
  13. package/dist/auto-complete/index.js +120 -122
  14. package/dist/auto-complete/style.css +6 -82
  15. package/dist/avatar/style.css +6 -67
  16. package/dist/badge/style.css +6 -68
  17. package/dist/block-ui/index.js +1 -1
  18. package/dist/block-ui/style.css +6 -68
  19. package/dist/breadcrumb/style.css +6 -61
  20. package/dist/button/index.js +1 -1
  21. package/dist/button/style.css +345 -118
  22. package/dist/card/index.js +1 -1
  23. package/dist/card/style.css +26 -67
  24. package/dist/carousel/style.css +6 -73
  25. package/dist/cascade-select/index.js +3 -3
  26. package/dist/cascade-select/style.css +6 -75
  27. package/dist/checkbox/style.css +6 -61
  28. package/dist/chip/style.css +6 -67
  29. package/dist/command-menu/index.js +37 -39
  30. package/dist/command-menu/style.css +6 -75
  31. package/dist/components/Accordion/styles.css +10 -10
  32. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  33. package/dist/components/AutoComplete/styles.css +0 -7
  34. package/dist/components/Badge/styles.css +0 -7
  35. package/dist/components/BlockUI/styles.css +0 -7
  36. package/dist/components/Button/Button.vue.d.ts +3 -0
  37. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  38. package/dist/components/Button/styles.css +339 -51
  39. package/dist/components/Button/types.d.ts +11 -2
  40. package/dist/components/Button/types.d.ts.map +1 -1
  41. package/dist/components/Card/Card.vue.d.ts +2 -2
  42. package/dist/components/Card/Card.vue.d.ts.map +1 -1
  43. package/dist/components/Card/index.d.ts +1 -1
  44. package/dist/components/Card/index.d.ts.map +1 -1
  45. package/dist/components/Card/styles.css +20 -6
  46. package/dist/components/Card/types.d.ts +4 -2
  47. package/dist/components/Card/types.d.ts.map +1 -1
  48. package/dist/components/Carousel/styles.css +0 -6
  49. package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
  50. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -2
  51. package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
  52. package/dist/components/ContextMenu/styles.css +19 -14
  53. package/dist/components/Dialog/styles.css +3 -46
  54. package/dist/components/Dock/styles.css +0 -10
  55. package/dist/components/Drawer/styles.css +2 -51
  56. package/dist/components/Fieldset/styles.css +0 -7
  57. package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
  58. package/dist/components/FileUpload/fileUtils.d.ts +8 -0
  59. package/dist/components/FileUpload/fileUtils.d.ts.map +1 -0
  60. package/dist/components/Gallery/styles.css +0 -8
  61. package/dist/components/Icon/styles.css +0 -6
  62. package/dist/components/Knob/styles.css +0 -6
  63. package/dist/components/Layout/styles.css +0 -12
  64. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  65. package/dist/components/Loading/styles.css +0 -16
  66. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  67. package/dist/components/Menu/styles.css +4 -11
  68. package/dist/components/Message/styles.css +0 -13
  69. package/dist/components/Page/PageContent.vue.d.ts +2 -1
  70. package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
  71. package/dist/components/Page/PageFilterChips.vue.d.ts +16 -0
  72. package/dist/components/Page/PageFilterChips.vue.d.ts.map +1 -0
  73. package/dist/components/Page/PageFilters.vue.d.ts +15 -3
  74. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  75. package/dist/components/Page/PageHeader.vue.d.ts +8 -4
  76. package/dist/components/Page/PageHeader.vue.d.ts.map +1 -1
  77. package/dist/components/Page/PagePlaceholder.vue.d.ts +6 -2
  78. package/dist/components/Page/PagePlaceholder.vue.d.ts.map +1 -1
  79. package/dist/components/Page/PageSection.vue.d.ts +8 -2
  80. package/dist/components/Page/PageSection.vue.d.ts.map +1 -1
  81. package/dist/components/Page/PageStat.vue.d.ts +8 -3
  82. package/dist/components/Page/PageStat.vue.d.ts.map +1 -1
  83. package/dist/components/Page/index.d.ts +2 -1
  84. package/dist/components/Page/index.d.ts.map +1 -1
  85. package/dist/components/Page/styles.css +239 -44
  86. package/dist/components/Page/types.d.ts +40 -0
  87. package/dist/components/Page/types.d.ts.map +1 -1
  88. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  89. package/dist/components/Pagination/styles.css +7 -10
  90. package/dist/components/Pagination/types.d.ts +1 -1
  91. package/dist/components/Pagination/types.d.ts.map +1 -1
  92. package/dist/components/Panel/styles.css +0 -7
  93. package/dist/components/Popover/styles.css +21 -79
  94. package/dist/components/ProgressBar/styles.css +0 -9
  95. package/dist/components/ProgressSpinner/styles.css +0 -7
  96. package/dist/components/ScrollTop/styles.css +0 -7
  97. package/dist/components/Scrollbar/styles.css +0 -8
  98. package/dist/components/Select/Select.vue.d.ts +1 -3
  99. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  100. package/dist/components/Select/selectOptions.d.ts +46 -0
  101. package/dist/components/Select/selectOptions.d.ts.map +1 -0
  102. package/dist/components/Select/styles.css +5 -7
  103. package/dist/components/Sidebar/styles.css +0 -6
  104. package/dist/components/Skeleton/styles.css +0 -6
  105. package/dist/components/Status/styles.css +0 -7
  106. package/dist/components/Switch/styles.css +0 -7
  107. package/dist/components/Table/hooks/useExpandableRow.d.ts.map +1 -1
  108. package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
  109. package/dist/components/Table/styles.css +7 -10
  110. package/dist/components/Table/tableQuery.d.ts +30 -0
  111. package/dist/components/Table/tableQuery.d.ts.map +1 -0
  112. package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
  113. package/dist/components/Tree/treeQuery.d.ts +31 -0
  114. package/dist/components/Tree/treeQuery.d.ts.map +1 -0
  115. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  116. package/dist/config-provider/index.js +1 -1
  117. package/dist/config-provider/style.css +345 -112
  118. package/dist/confirm-dialog/index.js +2 -2
  119. package/dist/confirm-dialog/style.css +348 -164
  120. package/dist/confirm-popup/index.js +5 -5
  121. package/dist/confirm-popup/style.css +345 -118
  122. package/dist/context-menu/index.js +105 -96
  123. package/dist/context-menu/style.css +25 -89
  124. package/dist/data-view/index.js +2 -2
  125. package/dist/data-view/style.css +13 -87
  126. package/dist/date-picker/index.js +3 -3
  127. package/dist/date-picker/style.css +6 -67
  128. package/dist/dialog/index.js +2 -2
  129. package/dist/dialog/style.css +348 -164
  130. package/dist/divider/style.css +6 -61
  131. package/dist/dock/style.css +6 -77
  132. package/dist/drawer/index.js +1 -1
  133. package/dist/drawer/style.css +8 -118
  134. package/dist/dropdown/index.js +4 -4
  135. package/dist/dropdown/style.css +6 -75
  136. package/dist/empty/index.js +5 -150
  137. package/dist/empty/style.css +6 -67
  138. package/dist/fieldset/style.css +6 -74
  139. package/dist/file-upload/index.js +147 -145
  140. package/dist/file-upload/style.css +6 -67
  141. package/dist/filterByQuery-Bczaxzih.js +17 -0
  142. package/dist/flex/style.css +6 -61
  143. package/dist/float-label/style.css +6 -61
  144. package/dist/fluid/style.css +6 -61
  145. package/dist/form/style.css +6 -61
  146. package/dist/gallery/style.css +6 -83
  147. package/dist/grid/style.css +6 -61
  148. package/dist/icon/style.css +6 -67
  149. package/dist/icon-field/style.css +6 -61
  150. package/dist/index.d.ts +3 -2
  151. package/dist/index.d.ts.map +1 -1
  152. package/dist/index.js +9135 -8796
  153. package/dist/inplace/style.css +6 -61
  154. package/dist/input/style.css +6 -67
  155. package/dist/input-color/style.css +6 -61
  156. package/dist/input-group/style.css +6 -61
  157. package/dist/input-number/style.css +6 -67
  158. package/dist/input-otp/style.css +6 -61
  159. package/dist/input-password/style.css +6 -67
  160. package/dist/input-tags/style.css +6 -67
  161. package/dist/knob/style.css +6 -67
  162. package/dist/label/style.css +6 -61
  163. package/dist/layout/style.css +6 -87
  164. package/dist/listbox/index.js +30 -32
  165. package/dist/listbox/style.css +6 -69
  166. package/dist/loading/index.js +1 -1
  167. package/dist/loading/style.css +6 -77
  168. package/dist/mega-menu/index.js +3 -3
  169. package/dist/mega-menu/style.css +6 -67
  170. package/dist/menu/index.js +268 -258
  171. package/dist/menu/style.css +31 -165
  172. package/dist/menubar/index.js +3 -3
  173. package/dist/menubar/style.css +6 -75
  174. package/dist/message/index.js +1 -1
  175. package/dist/message/style.css +6 -80
  176. package/dist/meter-group/style.css +6 -61
  177. package/dist/order-list/style.css +6 -67
  178. package/dist/{overlayPlacement-Cd20JTD_.js → overlayPlacement-qwEJPVS4.js} +8 -8
  179. package/dist/page/index.js +228 -69
  180. package/dist/page/style.css +1605 -299
  181. package/dist/page/style.js +3 -0
  182. package/dist/pagination/index.js +1 -1
  183. package/dist/pagination/style.css +206 -77
  184. package/dist/pagination/style.js +1 -0
  185. package/dist/panel/style.css +6 -74
  186. package/dist/pick-list/style.css +6 -67
  187. package/dist/popover/index.js +1 -1
  188. package/dist/popover/style.css +27 -140
  189. package/dist/progress-bar/style.css +6 -70
  190. package/dist/progress-spinner/style.css +6 -68
  191. package/dist/radio/style.css +6 -61
  192. package/dist/rating/style.css +6 -67
  193. package/dist/resolver-map.d.ts.map +1 -1
  194. package/dist/resolver.js +1 -0
  195. package/dist/result/style.css +6 -67
  196. package/dist/scroll-top/style.css +6 -82
  197. package/dist/scrollbar/style.css +6 -69
  198. package/dist/select/index.js +2 -545
  199. package/dist/select/style.css +11 -82
  200. package/dist/select-button/style.css +6 -61
  201. package/dist/shared/config.d.ts +2 -2
  202. package/dist/shared/filterByQuery.d.ts +14 -0
  203. package/dist/shared/filterByQuery.d.ts.map +1 -0
  204. package/dist/shared/menu/expand.d.ts +38 -0
  205. package/dist/shared/menu/expand.d.ts.map +1 -0
  206. package/dist/shared/menu/index.d.ts +2 -0
  207. package/dist/shared/menu/index.d.ts.map +1 -1
  208. package/dist/shared/overlayPlacement.d.ts.map +1 -1
  209. package/dist/sidebar/style.css +6 -73
  210. package/dist/skeleton/index.js +2 -59
  211. package/dist/skeleton/style.css +6 -67
  212. package/dist/slider/style.css +6 -61
  213. package/dist/space/style.css +6 -61
  214. package/dist/speed-dial/index.js +3 -3
  215. package/dist/speed-dial/style.css +6 -67
  216. package/dist/split-button/index.js +3 -3
  217. package/dist/split-button/style.css +345 -118
  218. package/dist/splitter/style.css +6 -61
  219. package/dist/status/style.css +6 -74
  220. package/dist/stepper/style.css +6 -67
  221. package/dist/styles/base.css +1 -50
  222. package/dist/styles.css +1 -1
  223. package/dist/switch/style.css +6 -68
  224. package/dist/table/index.js +343 -313
  225. package/dist/table/style.css +20 -111
  226. package/dist/tabs/style.css +6 -75
  227. package/dist/tag/style.css +6 -67
  228. package/dist/terminal/style.css +6 -61
  229. package/dist/textarea/style.css +6 -67
  230. package/dist/theme/motionPresets.d.ts.map +1 -1
  231. package/dist/theme/styles.css +5 -11
  232. package/dist/theme/useMotion.d.ts +5 -1
  233. package/dist/theme/useMotion.d.ts.map +1 -1
  234. package/dist/tiered-menu/index.js +4 -4
  235. package/dist/tiered-menu/style.css +6 -75
  236. package/dist/timeline/style.css +6 -75
  237. package/dist/toast/index.js +1 -1
  238. package/dist/toast/style.css +6 -67
  239. package/dist/toggle-button/style.css +6 -67
  240. package/dist/toolbar/style.css +6 -61
  241. package/dist/tooltip/index.js +1 -1
  242. package/dist/tooltip/style.css +6 -61
  243. package/dist/tree/index.js +158 -172
  244. package/dist/tree/style.css +6 -67
  245. package/dist/tree-select/index.js +201 -215
  246. package/dist/tree-select/style.css +6 -75
  247. package/dist/tree-table/style.css +6 -67
  248. package/dist/treeQuery-CnHkyYOA.js +107 -0
  249. package/dist/{useFloatingViewportSync-DZdJ7W8n.js → useFloatingViewportSync-wLLKIGUA.js} +4 -1
  250. package/dist/{useMotionTransition-Bxnnb_9u.js → useMotionTransition-95Y79FoL.js} +1 -1
  251. package/dist/virtual-scroller/style.css +6 -69
  252. package/package.json +2 -1
  253. package/dist/Button-smoDleh0.js +0 -156
  254. package/dist/Pagination-DrXmzcEy.js +0 -158
  255. package/dist/checkStrategy-CZzuUKDI.js +0 -63
package/CHANGELOG.md CHANGED
@@ -1,5 +1,67 @@
1
1
  # morya-ui
2
2
 
3
+ ## 0.3.3
4
+
5
+ ### 新功能
6
+
7
+ - add L2 decision recipes for component selection
8
+ - support disabling the link underline
9
+
10
+ ### 修复
11
+
12
+ - dismiss overlay on page scroll or resize
13
+ - align overlay motion with scale-fade
14
+ - correct link, plain, and ghost variant styles
15
+ - disable ripple and press by default
16
+ - correct import paths for styles in Card, Icon, Page, and Pagination components
17
+
18
+ ### 文档
19
+
20
+ - wire morya-ui-pages to decision recipes
21
+
22
+ ### 变更
23
+
24
+ - align menu item chrome with Select and Dropdown
25
+ - add full Button prop demos
26
+
27
+ ## 0.3.2
28
+
29
+ ### 新功能
30
+
31
+ - add click ripple and a press-scale toggle
32
+ - add link underline toggle
33
+ - replace quick jumper with a filterable Select
34
+ - refine ops layout primitives and P2 filter/stat APIs
35
+ - add shadow prop and remove hoverable
36
+
37
+ ### 修复
38
+
39
+ - keep link buttons backgroundless on hover and press
40
+ - make plain match outlined hover fill
41
+ - make ghost match text hover fill
42
+ - Panel component change demo component width
43
+ - remove OS reduced-motion media queries from components
44
+ - control intensity via library preference only
45
+
46
+ ### 文档
47
+
48
+ - document impeccable and skills-cli companion install
49
+ - document library-only motion control
50
+
51
+ ### 变更
52
+
53
+ - disable button click ripple by default
54
+ - disable button press scale by default
55
+ - extract filter and expanded-key helpers
56
+ - extract label filter helpers for option lists
57
+ - extract sort, filter, and selection helpers
58
+ - extract expand and visible-entry helpers
59
+ - extract option filter and multi-select helpers
60
+ - cover CommandMenu keys and FileUpload dropzone keyboard
61
+ - extract accept and size helpers
62
+ - polish overlay scale, press feedback, and scroll containment
63
+ - refresh snippets, generators, and golden page copies
64
+
3
65
  ## 0.3.1
4
66
 
5
67
  ### 新功能
@@ -0,0 +1,227 @@
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 S } from "vue";
5
+ //#region src/components/Button/Button.vue?vue&type=script&setup=true&lang.ts
6
+ var ee = [
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
+ underline: {
48
+ type: Boolean,
49
+ default: !0
50
+ },
51
+ ghost: {
52
+ type: Boolean,
53
+ default: !1
54
+ },
55
+ quaternary: {
56
+ type: Boolean,
57
+ default: !1
58
+ },
59
+ plain: {
60
+ type: Boolean,
61
+ default: !1
62
+ },
63
+ variant: {},
64
+ size: {},
65
+ fluid: {
66
+ type: Boolean,
67
+ default: !1
68
+ },
69
+ loading: {
70
+ type: Boolean,
71
+ default: !1
72
+ },
73
+ disabled: {
74
+ type: Boolean,
75
+ default: !1
76
+ },
77
+ badge: {},
78
+ badgeSeverity: { default: null },
79
+ autofocus: {
80
+ type: Boolean,
81
+ default: !1
82
+ },
83
+ nativeType: { default: "button" },
84
+ ariaLabel: {},
85
+ ripple: {
86
+ type: Boolean,
87
+ default: !1
88
+ },
89
+ press: {
90
+ type: Boolean,
91
+ default: !1
92
+ }
93
+ },
94
+ emits: ["click"],
95
+ setup(p, { expose: E, emit: D }) {
96
+ let O = p, k = D, A = S(), 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(() => [
97
+ "m-button",
98
+ `m-button--${G.value}`,
99
+ `m-button--${H.value}`,
100
+ `m-button--icon-${O.iconPos}`,
101
+ {
102
+ "m-button--raised": O.raised,
103
+ "m-button--rounded": O.rounded,
104
+ "m-button--text": L.value,
105
+ "m-button--outlined": I.value,
106
+ "m-button--link": R.value,
107
+ "m-button--link-underline": R.value && O.underline,
108
+ "m-button--ghost": z.value,
109
+ "m-button--quaternary": B.value,
110
+ "m-button--plain": O.plain,
111
+ "m-button--fluid": V.value,
112
+ "m-button--loading": O.loading,
113
+ "m-button--icon-only": W.value,
114
+ "m-button--custom": !!O.color,
115
+ "m-button--ripple": O.ripple,
116
+ "m-button--press": O.press
117
+ }
118
+ ]), 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"]);
119
+ function Z(e) {
120
+ if (e == null || typeof e == "boolean") return !1;
121
+ if (typeof e == "string" || typeof e == "number") return String(e).trim().length > 0;
122
+ if (Array.isArray(e)) return e.some((e) => Z(e));
123
+ if (typeof e == "object" && "type" in e) {
124
+ let t = e;
125
+ return t.type === i ? !1 : t.type === o ? String(t.children ?? "").trim().length > 0 : t.type !== a || Z(t.children);
126
+ }
127
+ return !1;
128
+ }
129
+ function Q() {
130
+ return !O.ripple || typeof document > "u" || document.documentElement.dataset.mMotion === "none";
131
+ }
132
+ function te() {
133
+ return typeof document > "u" ? w : document.documentElement.dataset.mMotion === "reduced" ? T : w;
134
+ }
135
+ function $(e, t, n = !1) {
136
+ if (Q()) return;
137
+ let r = j.value, i = M.value;
138
+ if (!r || !i) return;
139
+ 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");
140
+ 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);
141
+ let u = te(), d = () => {
142
+ l.remove();
143
+ };
144
+ if (typeof l.animate == "function") {
145
+ let e = l.animate([
146
+ {
147
+ transform: "scale(0)",
148
+ opacity: .42
149
+ },
150
+ {
151
+ transform: "scale(0.55)",
152
+ opacity: .22,
153
+ offset: .55
154
+ },
155
+ {
156
+ transform: "scale(1)",
157
+ opacity: 0
158
+ }
159
+ ], {
160
+ duration: u,
161
+ easing: "cubic-bezier(0.2, 0, 0, 1)",
162
+ fill: "forwards"
163
+ });
164
+ N.add(e), e.finished.then(() => {
165
+ N.delete(e), d();
166
+ }).catch(d);
167
+ return;
168
+ }
169
+ l.classList.add("m-button__ripple-wave--fallback"), window.setTimeout(d, u);
170
+ }
171
+ function ne(e) {
172
+ O.disabled || O.loading || e.button === 0 && $(e.clientX, e.clientY);
173
+ }
174
+ function re(e) {
175
+ O.disabled || O.loading || (e.detail === 0 && $(0, 0, !0), k("click", e));
176
+ }
177
+ function ie() {
178
+ j.value?.focus();
179
+ }
180
+ return g(() => {
181
+ for (let e of N) e.cancel();
182
+ N.clear();
183
+ }), E({
184
+ focus: ie,
185
+ ref: j
186
+ }), (e, t) => (_(), u("button", {
187
+ ref_key: "buttonElement",
188
+ ref: j,
189
+ class: m(J.value),
190
+ style: h(Y.value),
191
+ type: p.nativeType,
192
+ disabled: p.disabled || p.loading,
193
+ autofocus: p.autofocus || void 0,
194
+ "aria-busy": p.loading || void 0,
195
+ "aria-label": p.ariaLabel || (W.value ? p.label : void 0),
196
+ onPointerdown: ne,
197
+ onClick: re
198
+ }, [
199
+ p.ripple ? (_(), u("span", {
200
+ key: 0,
201
+ ref_key: "rippleLayer",
202
+ ref: M,
203
+ class: "m-button__ripple",
204
+ "aria-hidden": "true"
205
+ }, null, 512)) : l("", !0),
206
+ p.loading || p.icon || e.$slots.icon ? (_(), u("span", {
207
+ key: 1,
208
+ class: m(["m-button__icon", { "m-button__icon--loading": p.loading }]),
209
+ "aria-hidden": "true"
210
+ }, [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, {
211
+ key: 0,
212
+ name: K.value,
213
+ size: U.value
214
+ }, null, 8, ["name", "size"])) : q.value ? (_(), c(b(q.value), {
215
+ key: 1,
216
+ class: "m-button__icon-graphic"
217
+ })) : l("", !0)], void 0, 1)], 2)) : l("", !0),
218
+ F.value && !p.iconOnly ? (_(), u("span", C, [y(e.$slots, "default", {}, () => [f(x(p.label), 1)])])) : l("", !0),
219
+ p.badge != null && p.badge !== "" ? (_(), u("span", {
220
+ key: 3,
221
+ class: m(X.value)
222
+ }, x(p.badge), 3)) : l("", !0)
223
+ ], 46, ee));
224
+ }
225
+ });
226
+ //#endregion
227
+ 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 };
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./overlay-oR-5MDuE.js";
2
- import { t } from "./overlayPlacement-Cd20JTD_.js";
3
- import { t as n } from "./useFloatingViewportSync-DZdJ7W8n.js";
2
+ import { t } from "./overlayPlacement-qwEJPVS4.js";
3
+ import { t as n } from "./useFloatingViewportSync-wLLKIGUA.js";
4
4
  import { c as r } from "./config-CapALqt3.js";
5
5
  import { Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, defineComponent as l, nextTick as u, normalizeClass as d, normalizeStyle as f, openBlock as p, ref as m, renderSlot as h, watch as g } from "vue";
6
6
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
2
2
  import { i as t } from "./types-DGuu4Eg4.js";
3
3
  import { t as n } from "./usePauseOffscreen-BIikV_gj.js";
4
- import { n as r, t as i } from "./useMotionTransition-Bxnnb_9u.js";
4
+ import { n as r, t as i } from "./useMotionTransition-95Y79FoL.js";
5
5
  import { n as a } from "./overlay-oR-5MDuE.js";
6
6
  import { i as o } from "./content-h8POj44-.js";
7
7
  import { t as s } from "./overlayHost-78CGtMgR.js";
@@ -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-CiXd074W.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 };
@@ -1,7 +1,7 @@
1
1
  import { a as e } from "./useComponentAttrs-e-5QAjdw.js";
2
- import { t } from "./useMotionTransition-Bxnnb_9u.js";
2
+ import { t } from "./useMotionTransition-95Y79FoL.js";
3
3
  import { n, t as r } from "./overlay-oR-5MDuE.js";
4
- import { t as i } from "./overlayPlacement-Cd20JTD_.js";
4
+ import { t as i } from "./overlayPlacement-qwEJPVS4.js";
5
5
  import { t as a } from "./useMId-BXFYayPP.js";
6
6
  import { c as o } from "./config-CapALqt3.js";
7
7
  import { Teleport as s, Transition as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeStyle as y, onBeforeUnmount as ee, openBlock as b, ref as x, renderSlot as S, unref as C, useAttrs as te, watch as ne, withCtx as re } from "vue";
@@ -43,7 +43,7 @@ var ie = ["aria-expanded", "aria-controls"], ae = ["id"], w = /* @__PURE__ */ h(
43
43
  role: "popup",
44
44
  local: () => E.transition,
45
45
  componentName: "Popover",
46
- fallback: "popover"
46
+ fallback: "scale-fade"
47
47
  }), N = a(), P = x(null), F = x(null), I = x(null), L = x({}), R = l(() => n(E, A.value.appendTo)), z = l(() => r(E, A.value.appendTo)), B, V;
48
48
  function H(e) {
49
49
  e && E.disabled || D("update:modelValue", e);