morya-ui 0.2.6 → 0.2.7

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 (179) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{Button-lNErA-7h.js → Button--RkQybU-.js} +1 -1
  3. package/dist/{Checkbox-B758a_iB.js → Checkbox-CL05RRUD.js} +1 -1
  4. package/dist/{FlyoutSubmenu-kymVjXLs.js → FlyoutSubmenu-B_bkgKag.js} +1 -1
  5. package/dist/{Pagination-Dm2-MBnC.js → Pagination-BKvR-RUW.js} +1 -1
  6. package/dist/{Popover-flzjtjqD.js → Popover-Dq_p0vib.js} +1 -1
  7. package/dist/{ProgressSpinner-BXHLx4Lg.js → ProgressSpinner-DuBpPkna.js} +1 -1
  8. package/dist/{Radio-Bb21-Vk4.js → Radio-DsaKvbhk.js} +1 -1
  9. package/dist/{Tooltip-CeGxjP-L.js → Tooltip-CU1xFt_N.js} +1 -1
  10. package/dist/activity-low-CgK9kHWr.js +4 -0
  11. package/dist/auto-complete/index.js +2 -2
  12. package/dist/breadcrumb/index.js +1 -1
  13. package/dist/building-DYLdXiQg.js +4 -0
  14. package/dist/button/index.js +1 -1
  15. package/dist/carousel/index.js +1 -1
  16. package/dist/cascade-select/index.js +2 -2
  17. package/dist/checkbox/index.js +1 -1
  18. package/dist/chip/index.js +1 -1
  19. package/dist/churn-high-D1ELpZzW.js +4 -0
  20. package/dist/command-menu/index.js +2 -2
  21. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  22. package/dist/components/Empty/Empty.vue.d.ts +5 -6
  23. package/dist/components/Empty/Empty.vue.d.ts.map +1 -1
  24. package/dist/components/Empty/illustrations/catalog.d.ts +5 -0
  25. package/dist/components/Empty/illustrations/catalog.d.ts.map +1 -0
  26. package/dist/components/Empty/illustrations/defaultEmptyIcon.d.ts +3 -0
  27. package/dist/components/Empty/illustrations/defaultEmptyIcon.d.ts.map +1 -0
  28. package/dist/components/Empty/illustrations/index.d.ts +15 -0
  29. package/dist/components/Empty/illustrations/index.d.ts.map +1 -0
  30. package/dist/components/Empty/illustrations/loaders.d.ts +4 -0
  31. package/dist/components/Empty/illustrations/loaders.d.ts.map +1 -0
  32. package/dist/components/Empty/illustrations/markup/activity-low.d.ts +4 -0
  33. package/dist/components/Empty/illustrations/markup/activity-low.d.ts.map +1 -0
  34. package/dist/components/Empty/illustrations/markup/building.d.ts +4 -0
  35. package/dist/components/Empty/illustrations/markup/building.d.ts.map +1 -0
  36. package/dist/components/Empty/illustrations/markup/churn-high.d.ts +4 -0
  37. package/dist/components/Empty/illustrations/markup/churn-high.d.ts.map +1 -0
  38. package/dist/components/Empty/illustrations/markup/conversion-low.d.ts +4 -0
  39. package/dist/components/Empty/illustrations/markup/conversion-low.d.ts.map +1 -0
  40. package/dist/components/Empty/illustrations/markup/input-irregular.d.ts +4 -0
  41. package/dist/components/Empty/illustrations/markup/input-irregular.d.ts.map +1 -0
  42. package/dist/components/Empty/illustrations/markup/network-error.d.ts +4 -0
  43. package/dist/components/Empty/illustrations/markup/network-error.d.ts.map +1 -0
  44. package/dist/components/Empty/illustrations/markup/no-content.d.ts +4 -0
  45. package/dist/components/Empty/illustrations/markup/no-content.d.ts.map +1 -0
  46. package/dist/components/Empty/illustrations/markup/no-issue.d.ts +4 -0
  47. package/dist/components/Empty/illustrations/markup/no-issue.d.ts.map +1 -0
  48. package/dist/components/Empty/illustrations/markup/no-message.d.ts +4 -0
  49. package/dist/components/Empty/illustrations/markup/no-message.d.ts.map +1 -0
  50. package/dist/components/Empty/illustrations/markup/no-result.d.ts +4 -0
  51. package/dist/components/Empty/illustrations/markup/no-result.d.ts.map +1 -0
  52. package/dist/components/Empty/illustrations/markup/no-schedule.d.ts +4 -0
  53. package/dist/components/Empty/illustrations/markup/no-schedule.d.ts.map +1 -0
  54. package/dist/components/Empty/illustrations/markup/payment-cycle-long.d.ts +4 -0
  55. package/dist/components/Empty/illustrations/markup/payment-cycle-long.d.ts.map +1 -0
  56. package/dist/components/Empty/illustrations/markup/profile-unclear.d.ts +4 -0
  57. package/dist/components/Empty/illustrations/markup/profile-unclear.d.ts.map +1 -0
  58. package/dist/components/Empty/illustrations/markup/server-error.d.ts +4 -0
  59. package/dist/components/Empty/illustrations/markup/server-error.d.ts.map +1 -0
  60. package/dist/components/Empty/index.d.ts +3 -1
  61. package/dist/components/Empty/index.d.ts.map +1 -1
  62. package/dist/components/Empty/styles.css +104 -30
  63. package/dist/components/Empty/types.d.ts +25 -4
  64. package/dist/components/Empty/types.d.ts.map +1 -1
  65. package/dist/components/Form/types.d.ts +1 -1
  66. package/dist/components/Form/types.d.ts.map +1 -1
  67. package/dist/components/Message/types.d.ts +1 -1
  68. package/dist/components/Message/types.d.ts.map +1 -1
  69. package/dist/components/Pagination/types.d.ts +4 -4
  70. package/dist/components/Pagination/types.d.ts.map +1 -1
  71. package/dist/components/Result/Result.vue.d.ts +2 -2
  72. package/dist/components/Result/Result.vue.d.ts.map +1 -1
  73. package/dist/components/Result/index.d.ts +1 -1
  74. package/dist/components/Result/index.d.ts.map +1 -1
  75. package/dist/components/Result/statusIcons.d.ts +4 -0
  76. package/dist/components/Result/statusIcons.d.ts.map +1 -0
  77. package/dist/components/Result/styles.css +89 -23
  78. package/dist/components/Result/types.d.ts +10 -4
  79. package/dist/components/Result/types.d.ts.map +1 -1
  80. package/dist/components/Splitter/types.d.ts +4 -4
  81. package/dist/components/Splitter/types.d.ts.map +1 -1
  82. package/dist/components/Status/Status.vue.d.ts +7 -3
  83. package/dist/components/Status/Status.vue.d.ts.map +1 -1
  84. package/dist/components/Status/index.d.ts +1 -1
  85. package/dist/components/Status/index.d.ts.map +1 -1
  86. package/dist/components/Status/styles.css +116 -26
  87. package/dist/components/Status/types.d.ts +16 -2
  88. package/dist/components/Status/types.d.ts.map +1 -1
  89. package/dist/components/Tree/TreeNodeItem.vue.d.ts.map +1 -1
  90. package/dist/components/Tree/types.d.ts +1 -1
  91. package/dist/components/Tree/types.d.ts.map +1 -1
  92. package/dist/{config-Dln2-u_v.js → config-BdK5ccNT.js} +1 -0
  93. package/dist/config-provider/index.js +1 -1
  94. package/dist/confirm-dialog/index.js +3 -3
  95. package/dist/confirm-popup/index.js +3 -3
  96. package/dist/context-menu/index.js +2 -2
  97. package/dist/conversion-low-CwZiQc2k.js +4 -0
  98. package/dist/data-view/index.js +3 -3
  99. package/dist/date-picker/index.js +2 -2
  100. package/dist/dialog/index.js +77 -61
  101. package/dist/drawer/index.js +2 -2
  102. package/dist/dropdown/index.js +3 -3
  103. package/dist/empty/index.js +141 -26
  104. package/dist/empty/style.css +104 -30
  105. package/dist/file-upload/index.js +1 -1
  106. package/dist/flex/index.js +1 -1
  107. package/dist/form/index.js +1 -1
  108. package/dist/gallery/index.js +1 -1
  109. package/dist/index.d.ts +5 -3
  110. package/dist/index.d.ts.map +1 -1
  111. package/dist/index.js +1357 -1146
  112. package/dist/input/index.js +2 -2
  113. package/dist/input-color/index.js +2 -2
  114. package/dist/input-irregular-xSLDoNTS.js +4 -0
  115. package/dist/input-number/index.js +2 -2
  116. package/dist/input-otp/index.js +2 -2
  117. package/dist/input-password/index.js +2 -2
  118. package/dist/input-tags/index.js +2 -2
  119. package/dist/layout/index.js +1 -1
  120. package/dist/listbox/index.js +2 -2
  121. package/dist/locale/en-US.d.ts.map +1 -1
  122. package/dist/locale/types.d.ts +1 -0
  123. package/dist/locale/types.d.ts.map +1 -1
  124. package/dist/locale/zh-CN.d.ts.map +1 -1
  125. package/dist/{locale-DNYpTg5K.js → locale-B36KH7c3.js} +1 -1
  126. package/dist/mega-menu/index.js +2 -2
  127. package/dist/menu/index.js +52 -40
  128. package/dist/menubar/index.js +2 -2
  129. package/dist/message/index.js +2 -2
  130. package/dist/network-error-C6vl5a7S.js +4 -0
  131. package/dist/no-content-CwbqVPoN.js +4 -0
  132. package/dist/no-issue-DMkU-Pnw.js +4 -0
  133. package/dist/no-message-DnIEpMiO.js +4 -0
  134. package/dist/no-result-pGce34BV.js +4 -0
  135. package/dist/no-schedule-Cl9Frt1Q.js +4 -0
  136. package/dist/order-list/index.js +1 -1
  137. package/dist/pagination/index.js +1 -1
  138. package/dist/panel/index.js +1 -1
  139. package/dist/payment-cycle-long-Ba9FNStl.js +4 -0
  140. package/dist/pick-list/index.js +1 -1
  141. package/dist/popover/index.js +1 -1
  142. package/dist/profile-unclear-CGs4PCfw.js +4 -0
  143. package/dist/progress-spinner/index.js +1 -1
  144. package/dist/radio/index.js +1 -1
  145. package/dist/rating/index.js +2 -2
  146. package/dist/result/index.js +72 -36
  147. package/dist/result/style.css +89 -23
  148. package/dist/scroll-top/index.js +2 -2
  149. package/dist/select/index.js +2 -2
  150. package/dist/select-button/index.js +1 -1
  151. package/dist/server-error-D8zGMe5r.js +4 -0
  152. package/dist/shared/optionalRouter.d.ts +5 -0
  153. package/dist/shared/optionalRouter.d.ts.map +1 -1
  154. package/dist/shared/responsive.d.ts +1 -1
  155. package/dist/shared/responsive.d.ts.map +1 -1
  156. package/dist/sidebar/index.js +1 -1
  157. package/dist/slider/index.js +2 -2
  158. package/dist/space/index.js +1 -1
  159. package/dist/speed-dial/index.js +2 -2
  160. package/dist/split-button/index.js +2 -2
  161. package/dist/splitter/index.js +1 -1
  162. package/dist/status/index.js +46 -19
  163. package/dist/status/style.css +171 -26
  164. package/dist/status/style.js +1 -0
  165. package/dist/styles.css +1 -1
  166. package/dist/switch/index.js +1 -1
  167. package/dist/table/index.js +7 -7
  168. package/dist/tabs/index.js +1 -1
  169. package/dist/tag/index.js +2 -2
  170. package/dist/terminal/index.js +1 -1
  171. package/dist/textarea/index.js +2 -2
  172. package/dist/tiered-menu/index.js +2 -2
  173. package/dist/toast/index.js +2 -2
  174. package/dist/toggle-button/index.js +1 -1
  175. package/dist/tooltip/index.js +1 -1
  176. package/dist/tree/index.js +9 -4
  177. package/dist/tree-select/index.js +3 -3
  178. package/dist/tree-table/index.js +1 -1
  179. package/package.json +4 -4
@@ -3,8 +3,8 @@ import { t } from "../Icon-DfpIfo2L.js";
3
3
  import { n, t as r } from "../overlay-oR-5MDuE.js";
4
4
  import { t as i } from "../overlayPlacement-Cd20JTD_.js";
5
5
  import { t as a } from "../useMId-BXFYayPP.js";
6
- import { c as o, o as s } from "../config-Dln2-u_v.js";
7
- import { n as ee, t as te } from "../locale-DNYpTg5K.js";
6
+ import { c as o, o as s } from "../config-BdK5ccNT.js";
7
+ import { n as ee, t as te } from "../locale-B36KH7c3.js";
8
8
  import "./style.js";
9
9
  import { Fragment as c, Teleport as ne, Transition as re, computed as l, createBlock as ie, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, mergeProps as ae, nextTick as h, normalizeClass as g, normalizeStyle as oe, onBeforeUnmount as se, openBlock as _, ref as v, renderList as y, renderSlot as ce, toDisplayString as b, unref as x, useAttrs as le, watch as ue, withCtx as de, withKeys as fe, withModifiers as S } from "vue";
10
10
  //#region src/components/DatePicker/DatePicker.vue?vue&type=script&setup=true&lang.ts
@@ -1,26 +1,26 @@
1
1
  import { r as e } from "../useComponentAttrs-BTYEe61P.js";
2
2
  import { t } from "../Icon-DfpIfo2L.js";
3
- import { t as n } from "../Button-lNErA-7h.js";
3
+ import { t as n } from "../Button--RkQybU-.js";
4
4
  import { n as r } from "../overlay-oR-5MDuE.js";
5
5
  import { t as i } from "../useModalOverlay-Beo3CEAt.js";
6
6
  import { t as a } from "../asyncGuard-CPGT_TKu.js";
7
7
  import { t as o } from "../lastPointer-CRxcUqdd.js";
8
- import { c as s } from "../config-Dln2-u_v.js";
9
- import { n as c } from "../locale-DNYpTg5K.js";
8
+ import { c as s } from "../config-BdK5ccNT.js";
9
+ import { n as ee } from "../locale-B36KH7c3.js";
10
10
  import "./style.js";
11
- import { Teleport as l, Transition as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, mergeProps as ee, normalizeClass as v, normalizeStyle as y, openBlock as b, ref as x, renderSlot as S, toDisplayString as C, toRef as w, unref as T, useAttrs as te, useSlots as E, watch as ne, withCtx as re, withModifiers as ie } from "vue";
11
+ import { Teleport as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, mergeProps as _, normalizeClass as v, normalizeStyle as y, openBlock as b, ref as x, renderSlot as S, toDisplayString as C, toRef as w, unref as T, useAttrs as E, useSlots as D, watch as O, withCtx as te, withModifiers as ne } from "vue";
12
12
  //#region src/components/Dialog/Dialog.vue?vue&type=script&setup=true&lang.ts
13
- var ae = ["aria-modal", "aria-label"], oe = {
13
+ var re = ["aria-modal", "aria-label"], ie = {
14
14
  key: 0,
15
15
  class: "m-dialog__header"
16
- }, se = { class: "m-dialog__heading" }, ce = {
16
+ }, ae = { class: "m-dialog__heading" }, oe = {
17
17
  key: 0,
18
18
  class: "m-dialog__type-icon",
19
19
  "aria-hidden": "true"
20
- }, D = { key: 0 }, O = {
20
+ }, se = { key: 0 }, ce = {
21
21
  key: 0,
22
22
  class: "m-dialog__actions"
23
- }, k = ["aria-label", "disabled"], A = ["aria-label", "disabled"], j = { class: "m-dialog__body" }, M = /* @__PURE__ */ _({
23
+ }, le = ["aria-label", "disabled"], ue = ["aria-label", "disabled"], k = { class: "m-dialog__body" }, A = /* @__PURE__ */ g({
24
24
  inheritAttrs: !1,
25
25
  __name: "Dialog",
26
26
  props: {
@@ -77,11 +77,23 @@ var ae = ["aria-modal", "aria-label"], oe = {
77
77
  "maximize",
78
78
  "unmaximize"
79
79
  ],
80
- setup(_, { expose: M, emit: N }) {
81
- let P = _, F = N, I = te(), { rootAttrs: L } = e(I, () => P.pt), R = E(), z = s(), B = c(), V = x(null), H = x(!1), U = x(o()), W = x(null), G = d(() => P.header ?? P.title), K = d(() => r(P, z.value.appendTo)), q = d(() => {
82
- let e = P.type;
80
+ setup(g, { expose: A, emit: j }) {
81
+ let M = g, N = j, P = E(), { rootAttrs: F } = e(P, () => M.pt), I = u(() => {
82
+ let e = F.value.style;
83
+ if (e) return typeof e == "string" ? e.match(/(?:^|;)\s*width\s*:\s*([^;]+)/i)?.[1]?.trim() : typeof e.width == "string" ? e.width : void 0;
84
+ }), L = u(() => {
85
+ let e = { ...F.value }, t = e.style;
86
+ if (!t || !I.value) return e;
87
+ if (typeof t == "string") {
88
+ let n = t.replace(/(?:^|;)\s*width\s*:\s*[^;]+/i, "").replace(/^;|;$/g, "").trim();
89
+ return n ? e.style = n : delete e.style, e;
90
+ }
91
+ let { width: n, ...r } = t;
92
+ return Object.keys(r).length ? e.style = r : delete e.style, e;
93
+ }), R = D(), z = s(), B = ee(), V = x(null), H = x(!1), U = x(o()), W = x(null), G = u(() => M.header ?? M.title), K = u(() => r(M, z.value.appendTo)), q = u(() => {
94
+ let e = M.type;
83
95
  return e === "warning" || e === "warn" ? "warn" : e;
84
- }), J = d(() => {
96
+ }), J = u(() => {
85
97
  switch (q.value) {
86
98
  case "success": return "check-circle";
87
99
  case "warn": return "warning";
@@ -89,44 +101,48 @@ var ae = ["aria-modal", "aria-label"], oe = {
89
101
  case "info": return "info";
90
102
  default: return;
91
103
  }
92
- }), Y = d(() => !R.footer && !!(P.positiveText || P.negativeText)), le = d(() => !!(R.footer || Y.value)), X = d(() => W.value != null), ue = d(() => P.ariaLabel ?? G.value), de = d(() => ({
104
+ }), Y = u(() => !R.footer && !!(M.positiveText || M.negativeText)), de = u(() => !!(R.footer || Y.value)), X = u(() => W.value != null), fe = u(() => M.ariaLabel ?? G.value), pe = u(() => ({
93
105
  "--m-dialog-origin-x": `${U.value.x}px`,
94
106
  "--m-dialog-origin-y": `${U.value.y}px`
95
- })), fe = d(() => P.dismissableMask === void 0 ? P.closeOnOutsideClick === void 0 || P.closeOnOutsideClick : P.dismissableMask);
107
+ })), me = u(() => {
108
+ if (H.value) return;
109
+ let e = M.width ?? I.value;
110
+ return e ? { width: e } : void 0;
111
+ }), he = u(() => M.dismissableMask === void 0 ? M.closeOnOutsideClick === void 0 || M.closeOnOutsideClick : M.dismissableMask);
96
112
  function Z() {
97
- H.value = !1, W.value = null, F("update:modelValue", !1), F("close");
113
+ H.value = !1, W.value = null, N("update:modelValue", !1), N("close");
98
114
  }
99
115
  async function Q() {
100
116
  if (!W.value) {
101
- if (!P.beforeClose) {
117
+ if (!M.beforeClose) {
102
118
  Z();
103
119
  return;
104
120
  }
105
121
  W.value = "close";
106
122
  try {
107
- if (!await a(P.beforeClose)) return;
123
+ if (!await a(M.beforeClose)) return;
108
124
  Z();
109
125
  } finally {
110
126
  W.value === "close" && (W.value = null);
111
127
  }
112
128
  }
113
129
  }
114
- async function pe(e) {
130
+ async function ge(e) {
115
131
  if (!W.value) {
116
132
  W.value = "positive";
117
133
  try {
118
- if (!await a(P.onPositiveClick, e)) return;
134
+ if (!await a(M.onPositiveClick, e)) return;
119
135
  Z();
120
136
  } finally {
121
137
  W.value === "positive" && (W.value = null);
122
138
  }
123
139
  }
124
140
  }
125
- async function me(e) {
141
+ async function _e(e) {
126
142
  if (!W.value) {
127
143
  W.value = "negative";
128
144
  try {
129
- if (!await a(P.onNegativeClick, e)) return;
145
+ if (!await a(M.onNegativeClick, e)) return;
130
146
  Z();
131
147
  } finally {
132
148
  W.value === "negative" && (W.value = null);
@@ -134,26 +150,26 @@ var ae = ["aria-modal", "aria-label"], oe = {
134
150
  }
135
151
  }
136
152
  function $() {
137
- H.value = !H.value, H.value ? F("maximize") : F("unmaximize");
153
+ H.value = !H.value, H.value ? N("maximize") : N("unmaximize");
138
154
  }
139
- function he() {
140
- fe.value && Q();
155
+ function ve() {
156
+ he.value && Q();
141
157
  }
142
- return ne(() => P.modelValue, (e) => {
158
+ return O(() => M.modelValue, (e) => {
143
159
  e && (U.value = o());
144
160
  }), i({
145
- open: w(P, "modelValue"),
161
+ open: w(M, "modelValue"),
146
162
  container: V,
147
- closeOnEsc: w(P, "closeOnEsc"),
148
- blockScroll: () => P.blockScroll && P.modal,
163
+ closeOnEsc: w(M, "closeOnEsc"),
164
+ blockScroll: () => M.blockScroll && M.modal,
149
165
  onEscape: () => {
150
166
  Q();
151
167
  },
152
- onOpen: () => F("show"),
168
+ onOpen: () => N("show"),
153
169
  onClose: () => {
154
- H.value = !1, F("hide");
170
+ H.value = !1, N("hide");
155
171
  }
156
- }), M({
172
+ }), A({
157
173
  close: Q,
158
174
  maximize: () => {
159
175
  H.value || $();
@@ -161,88 +177,88 @@ var ae = ["aria-modal", "aria-label"], oe = {
161
177
  unmaximize: () => {
162
178
  H.value && $();
163
179
  }
164
- }), (e, r) => (b(), f(l, {
180
+ }), (e, r) => (b(), d(c, {
165
181
  to: K.value.to,
166
182
  disabled: K.value.disabled
167
- }, [g(u, { name: "m-dialog" }, {
168
- default: re(() => [_.modelValue ? (b(), m("div", ee({ key: 0 }, T(L), {
169
- class: ["m-dialog-backdrop", [`m-dialog-backdrop--${_.position}`, {
170
- "m-dialog-backdrop--modal": _.modal,
183
+ }, [h(l, { name: "m-dialog" }, {
184
+ default: te(() => [g.modelValue ? (b(), p("div", _({ key: 0 }, L.value, {
185
+ class: ["m-dialog-backdrop", [`m-dialog-backdrop--${g.position}`, {
186
+ "m-dialog-backdrop--modal": g.modal,
171
187
  "m-dialog-backdrop--maximized": H.value
172
188
  }]],
173
- style: de.value
174
- }), [h("div", {
189
+ style: pe.value
190
+ }), [m("div", {
175
191
  class: "m-dialog-zoom",
176
- onClick: ie(he, ["self"])
177
- }, [h("section", {
192
+ onClick: ne(ve, ["self"])
193
+ }, [m("section", {
178
194
  ref_key: "dialogElement",
179
195
  ref: V,
180
196
  class: v(["m-dialog", {
181
197
  "m-dialog--maximized": H.value,
182
198
  [`m-dialog--${q.value}`]: q.value
183
199
  }]),
184
- style: y(_.width && !H.value ? { width: _.width } : void 0),
200
+ style: y(me.value),
185
201
  role: "dialog",
186
- "aria-modal": _.modal || void 0,
187
- "aria-label": ue.value,
202
+ "aria-modal": g.modal || void 0,
203
+ "aria-label": fe.value,
188
204
  tabindex: "-1"
189
205
  }, [
190
- e.$slots.header || G.value || J.value || _.closable || _.maximizable ? (b(), m("header", oe, [h("div", se, [J.value ? (b(), m("span", ce, [g(t, {
206
+ e.$slots.header || G.value || J.value || g.closable || g.maximizable ? (b(), p("header", ie, [m("div", ae, [J.value ? (b(), p("span", oe, [h(t, {
191
207
  name: J.value,
192
208
  size: "sm"
193
- }, null, 8, ["name"])])) : p("", !0), S(e.$slots, "header", {}, () => [G.value ? (b(), m("h2", D, C(G.value), 1)) : p("", !0)])]), _.maximizable || _.closable ? (b(), m("div", O, [_.maximizable ? (b(), m("button", {
209
+ }, null, 8, ["name"])])) : f("", !0), S(e.$slots, "header", {}, () => [G.value ? (b(), p("h2", se, C(G.value), 1)) : f("", !0)])]), g.maximizable || g.closable ? (b(), p("div", ce, [g.maximizable ? (b(), p("button", {
194
210
  key: 0,
195
211
  type: "button",
196
212
  class: "m-dialog__action",
197
213
  "aria-label": H.value ? T(B).restore : T(B).maximize,
198
214
  disabled: X.value,
199
215
  onClick: $
200
- }, [g(t, {
216
+ }, [h(t, {
201
217
  name: H.value ? "restore" : "maximize",
202
218
  size: "sm"
203
- }, null, 8, ["name"])], 8, k)) : p("", !0), _.closable ? (b(), m("button", {
219
+ }, null, 8, ["name"])], 8, le)) : f("", !0), g.closable ? (b(), p("button", {
204
220
  key: 1,
205
221
  type: "button",
206
222
  class: "m-dialog__action",
207
223
  "aria-label": T(B).close,
208
224
  disabled: X.value,
209
225
  onClick: Q
210
- }, [g(t, {
226
+ }, [h(t, {
211
227
  name: "close",
212
228
  size: "sm"
213
- })], 8, A)) : p("", !0)])) : p("", !0)])) : p("", !0),
214
- h("div", j, [S(e.$slots, "default")]),
215
- le.value ? (b(), m("footer", {
229
+ })], 8, ue)) : f("", !0)])) : f("", !0)])) : f("", !0),
230
+ m("div", k, [S(e.$slots, "default")]),
231
+ de.value ? (b(), p("footer", {
216
232
  key: 1,
217
233
  class: v(["m-dialog__footer", { "m-dialog__footer--preset": Y.value }])
218
- }, [S(e.$slots, "footer", {}, () => [_.negativeText ? (b(), f(n, {
234
+ }, [S(e.$slots, "footer", {}, () => [g.negativeText ? (b(), d(n, {
219
235
  key: 0,
220
- label: _.negativeText,
236
+ label: g.negativeText,
221
237
  severity: "secondary",
222
238
  disabled: X.value,
223
239
  loading: W.value === "negative",
224
- onClick: me
240
+ onClick: _e
225
241
  }, null, 8, [
226
242
  "label",
227
243
  "disabled",
228
244
  "loading"
229
- ])) : p("", !0), _.positiveText ? (b(), f(n, {
245
+ ])) : f("", !0), g.positiveText ? (b(), d(n, {
230
246
  key: 1,
231
- label: _.positiveText,
232
- severity: _.positiveSeverity,
247
+ label: g.positiveText,
248
+ severity: g.positiveSeverity,
233
249
  disabled: X.value && W.value !== "positive",
234
250
  loading: W.value === "positive",
235
- onClick: pe
251
+ onClick: ge
236
252
  }, null, 8, [
237
253
  "label",
238
254
  "severity",
239
255
  "disabled",
240
256
  "loading"
241
- ])) : p("", !0)])], 2)) : p("", !0)
242
- ], 14, ae)])], 16)) : p("", !0)]),
257
+ ])) : f("", !0)])], 2)) : f("", !0)
258
+ ], 14, re)])], 16)) : f("", !0)]),
243
259
  _: 3
244
260
  })], 8, ["to", "disabled"]));
245
261
  }
246
262
  });
247
263
  //#endregion
248
- export { M as MDialog };
264
+ export { A as MDialog };
@@ -3,8 +3,8 @@ import { t } from "../Icon-DfpIfo2L.js";
3
3
  import { n } from "../overlay-oR-5MDuE.js";
4
4
  import { t as r } from "../useModalOverlay-Beo3CEAt.js";
5
5
  import { t as i } from "../asyncGuard-CPGT_TKu.js";
6
- import { c as a } from "../config-Dln2-u_v.js";
7
- import { n as o } from "../locale-DNYpTg5K.js";
6
+ import { c as a } from "../config-BdK5ccNT.js";
7
+ import { n as o } from "../locale-B36KH7c3.js";
8
8
  import "./style.js";
9
9
  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, normalizeClass as _, normalizeStyle as v, openBlock as y, ref as b, renderSlot as x, toDisplayString as S, toRef as C, unref as w, useAttrs as T, withCtx as E, withModifiers as D } from "vue";
10
10
  //#region src/components/Drawer/Drawer.vue?vue&type=script&setup=true&lang.ts
@@ -5,9 +5,9 @@ import { t as i } from "../overlayPlacement-Cd20JTD_.js";
5
5
  import { t as a } from "../Scrollbar-BYnCO8fv.js";
6
6
  import { t as o } from "../icon-xUOyawgJ.js";
7
7
  import { t as s } from "../key-CaQYVkjh.js";
8
- import { t as c } from "../FlyoutSubmenu-kymVjXLs.js";
9
- import { c as l } from "../config-Dln2-u_v.js";
10
- import { n as u } from "../locale-DNYpTg5K.js";
8
+ import { t as c } from "../FlyoutSubmenu-B_bkgKag.js";
9
+ import { c as l } from "../config-BdK5ccNT.js";
10
+ import { n as u } from "../locale-B36KH7c3.js";
11
11
  import "./style.js";
12
12
  import { Fragment as d, Teleport as f, Transition as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as y, createTextVNode as b, createVNode as x, defineComponent as S, mergeProps as C, nextTick as w, normalizeClass as T, normalizeStyle as E, onBeforeUnmount as D, openBlock as O, ref as k, renderList as A, renderSlot as j, toDisplayString as M, unref as N, useAttrs as ee, watch as te, withCtx as P } from "vue";
13
13
  //#region src/components/Dropdown/DropdownNodes.vue?vue&type=script&setup=true&lang.ts
@@ -1,54 +1,169 @@
1
1
  import { r as e } from "../useComponentAttrs-BTYEe61P.js";
2
2
  import { t } from "../Icon-DfpIfo2L.js";
3
- import { n } from "../locale-DNYpTg5K.js";
3
+ import { t as n } from "../useMId-BXFYayPP.js";
4
+ import { n as r } from "../locale-B36KH7c3.js";
4
5
  import "./style.js";
5
- import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createTextVNode as s, defineComponent as c, mergeProps as l, openBlock as u, renderSlot as d, toDisplayString as f, unref as p, useAttrs as m, useSlots as h } from "vue";
6
+ 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";
7
+ //#region src/components/Empty/illustrations/catalog.ts
8
+ var y = [
9
+ "no-content",
10
+ "no-result",
11
+ "no-message",
12
+ "no-schedule",
13
+ "no-issue",
14
+ "network-error",
15
+ "server-error",
16
+ "building",
17
+ "churn-high",
18
+ "conversion-low",
19
+ "activity-low",
20
+ "profile-unclear",
21
+ "input-irregular",
22
+ "payment-cycle-long"
23
+ ];
24
+ function b(e) {
25
+ return y.includes(e);
26
+ }
27
+ //#endregion
28
+ //#region src/components/Empty/illustrations/loaders.ts
29
+ var x = {
30
+ "no-content": () => import("../no-content-CwbqVPoN.js"),
31
+ "no-result": () => import("../no-result-pGce34BV.js"),
32
+ "no-message": () => import("../no-message-DnIEpMiO.js"),
33
+ "no-schedule": () => import("../no-schedule-Cl9Frt1Q.js"),
34
+ "no-issue": () => import("../no-issue-DMkU-Pnw.js"),
35
+ "network-error": () => import("../network-error-C6vl5a7S.js"),
36
+ "server-error": () => import("../server-error-D8zGMe5r.js"),
37
+ building: () => import("../building-DYLdXiQg.js"),
38
+ "churn-high": () => import("../churn-high-D1ELpZzW.js"),
39
+ "conversion-low": () => import("../conversion-low-CwZiQc2k.js"),
40
+ "activity-low": () => import("../activity-low-CgK9kHWr.js"),
41
+ "profile-unclear": () => import("../profile-unclear-CGs4PCfw.js"),
42
+ "input-irregular": () => import("../input-irregular-xSLDoNTS.js"),
43
+ "payment-cycle-long": () => import("../payment-cycle-long-Ba9FNStl.js")
44
+ };
45
+ async function S(e) {
46
+ return (await x[e]()).default;
47
+ }
48
+ //#endregion
49
+ //#region src/components/Empty/illustrations/defaultEmptyIcon.ts
50
+ var C = "<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>", w = [
51
+ "no-content",
52
+ "no-result",
53
+ "no-message",
54
+ "no-schedule",
55
+ "no-issue"
56
+ ], T = [
57
+ "network-error",
58
+ "server-error",
59
+ "building"
60
+ ], E = /__MID_(\d+)__/g;
61
+ function D(e, t) {
62
+ return e.replace(E, (e, n) => `${t}-${n}`);
63
+ }
64
+ async function O(e, t) {
65
+ return D(await S(e), t);
66
+ }
67
+ //#endregion
6
68
  //#region src/components/Empty/Empty.vue?vue&type=script&setup=true&lang.ts
7
- var g = {
69
+ var k = {
8
70
  key: 0,
9
- class: "m-empty__mark",
71
+ class: "m-empty__illustration",
10
72
  "aria-hidden": "true"
11
- }, _ = ["src"], v = {
73
+ }, A = ["src"], j = ["innerHTML"], M = ["innerHTML"], N = {
12
74
  key: 1,
75
+ class: "m-empty__body"
76
+ }, P = {
77
+ key: 0,
13
78
  class: "m-empty__title"
14
- }, y = {
15
- key: 2,
79
+ }, F = {
80
+ key: 1,
16
81
  class: "m-empty__description"
17
- }, b = {
18
- key: 3,
82
+ }, I = {
83
+ key: 2,
19
84
  class: "m-empty__extra"
20
- }, x = /* @__PURE__ */ c({
85
+ }, L = /* @__PURE__ */ l({
21
86
  inheritAttrs: !1,
22
87
  __name: "Empty",
23
88
  props: {
24
89
  pt: {},
25
90
  title: {},
26
91
  description: {},
27
- icon: { default: "database" },
28
- image: {}
92
+ showDescription: {
93
+ type: Boolean,
94
+ default: !0
95
+ },
96
+ showIcon: {
97
+ type: Boolean,
98
+ default: !0
99
+ },
100
+ size: {},
101
+ icon: {},
102
+ illustration: {},
103
+ image: {},
104
+ simple: {
105
+ type: Boolean,
106
+ default: !1
107
+ }
29
108
  },
30
- setup(c) {
31
- let x = c, S = m(), C = h(), { rootAttrs: w } = e(S, () => x.pt), T = n(), E = r(() => x.title ?? T.value.emptyMessage), D = r(() => !!(C.image || x.image)), O = r(() => !D.value && !!(C.icon || x.icon));
32
- return (e, n) => (u(), o("div", l(p(w), {
33
- class: "m-empty",
109
+ setup(l) {
110
+ let y = l, b = g(), x = _(), { rootAttrs: S } = e(b, () => y.pt), w = r(), T = n("m-ill"), E = f(), D = 0;
111
+ function L(e) {
112
+ return e === "small" || e === "sm" ? "small" : e === "large" || e === "lg" ? "large" : "medium";
113
+ }
114
+ let R = i(() => L(y.size)), z = i(() => !!(x.image || y.image)), B = i(() => !!x.icon), V = i(() => {
115
+ if (y.showIcon) {
116
+ if (y.illustration) return y.illustration;
117
+ if (!(z.value || B.value) && y.icon === "search") return "no-result";
118
+ }
119
+ });
120
+ v(V, (e) => {
121
+ let t = ++D;
122
+ if (!e) {
123
+ E.value = void 0;
124
+ return;
125
+ }
126
+ O(e, T).then((e) => {
127
+ t === D && (E.value = e);
128
+ }, () => {
129
+ t === D && (E.value = void 0);
130
+ });
131
+ }, { immediate: !0 });
132
+ let H = i(() => y.showIcon && !!V.value && !!E.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(() => x.title ? !0 : y.title != null && y.title !== ""), J = i(() => y.showDescription ? x.default ? !0 : !!K.value : !1), Y = i(() => [
133
+ "m-empty",
134
+ `m-empty--${R.value}`,
135
+ {
136
+ "m-empty--simple": y.simple,
137
+ "m-empty--default-icon": W.value
138
+ }
139
+ ]);
140
+ return (e, n) => (d(), s("div", u(h(S), {
141
+ class: Y.value,
34
142
  role: "status"
35
143
  }), [
36
- D.value || O.value ? (u(), o("div", g, [d(e.$slots, "image", {}, () => [c.image ? (u(), o("img", {
144
+ G.value ? (d(), s("div", k, [z.value ? p(e.$slots, "image", {}, () => [l.image ? (d(), s("img", {
37
145
  key: 0,
38
146
  class: "m-empty__image",
39
- src: c.image,
147
+ src: l.image,
40
148
  alt: ""
41
- }, null, 8, _)) : a("", !0)]), D.value ? a("", !0) : d(e.$slots, "icon", {}, () => [c.icon ? (u(), i(t, {
42
- key: 0,
149
+ }, null, 8, A)) : o("", !0)], void 0, 0) : B.value ? p(e.$slots, "icon", {}, void 0, void 0, 1) : H.value && E.value ? (d(), s("div", {
150
+ key: 2,
151
+ class: "m-empty__glyph",
152
+ innerHTML: E.value
153
+ }, null, 8, j)) : U.value && l.icon ? (d(), a(t, {
154
+ key: 3,
43
155
  class: "m-empty__icon",
44
- name: c.icon,
156
+ name: l.icon,
45
157
  size: "lg"
46
- }, null, 8, ["name"])) : a("", !0)], void 0, 0)])) : a("", !0),
47
- p(C).title || E.value ? (u(), o("div", v, [d(e.$slots, "title", {}, () => [s(f(E.value), 1)])])) : a("", !0),
48
- p(C).description || c.description ? (u(), o("div", y, [d(e.$slots, "description", {}, () => [s(f(c.description), 1)])])) : a("", !0),
49
- p(C).extra || p(C).default ? (u(), o("div", b, [d(e.$slots, "extra"), d(e.$slots, "default")])) : a("", !0)
158
+ }, null, 8, ["name"])) : W.value ? (d(), s("div", {
159
+ key: 4,
160
+ class: "m-empty__default-icon",
161
+ innerHTML: h(C)
162
+ }, null, 8, M)) : o("", !0)])) : o("", !0),
163
+ q.value || J.value ? (d(), s("div", N, [q.value ? (d(), s("div", P, [p(e.$slots, "title", {}, () => [c(m(l.title), 1)])])) : o("", !0), J.value ? (d(), s("div", F, [p(e.$slots, "default", {}, () => [c(m(K.value), 1)])])) : o("", !0)])) : o("", !0),
164
+ h(x).extra ? (d(), s("div", I, [p(e.$slots, "extra")])) : o("", !0)
50
165
  ], 16));
51
166
  }
52
167
  });
53
168
  //#endregion
54
- export { x as MEmpty };
169
+ export { y as EMPTY_ILLUSTRATION_KEYS, T as EMPTY_OUTCOME_KEYS, w as EMPTY_PRESET_KEYS, L as MEmpty, b as isEmptyIllustration, S as loadEmptyIllustration };