morya-ui 0.4.1 → 0.4.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.
- package/CHANGELOG.md +60 -1
- package/dist/Button-Bjsth0ct.js +326 -0
- package/dist/{Card-B1CB9Trm.js → Card-Ct5vJmoV.js} +1 -1
- package/dist/{Checkbox-BKt8hdhV.js → Checkbox-Bo26OGHP.js} +1 -1
- package/dist/{DatePicker-CSoMFEvh.js → DatePicker-CsMGzCqY.js} +4 -4
- package/dist/{Empty-iNcc0G-q.js → Empty-rMhOPi79.js} +2 -2
- package/dist/{FlyoutSubmenu-C1RfFRzH.js → FlyoutSubmenu-C0id6-Sb.js} +1 -1
- package/dist/{Icon-od9Ob-Ay.js → Icon-CmHjx7W8.js} +1 -1
- package/dist/{Input-DQHYqvNk.js → Input-CxSTVp9E.js} +3 -3
- package/dist/{Loading-BPpR-jGa.js → Loading-D_qRwfKv.js} +11 -11
- package/dist/{Pagination-DLphD6LC.js → Pagination-CnGOpp0m.js} +3 -3
- package/dist/{Popover-B_2c9NWs.js → Popover-D1uZ1N9Z.js} +2 -2
- package/dist/{ProgressSpinner-B_OJG_0l.js → ProgressSpinner-hmR23xpi.js} +2 -2
- package/dist/{Radio-Bxd806ys.js → Radio-CZAyelC_.js} +1 -1
- package/dist/{Segmented-BRMSmXCl.js → Segmented-BpdO7arR.js} +2 -2
- package/dist/{Select-DxMlpgc5.js → Select-CySmusHs.js} +5 -5
- package/dist/{Textarea-BBvpgIQL.js → Textarea-DskjTCcz.js} +3 -3
- package/dist/{Tooltip-BJp-ZMqQ.js → Tooltip-DSfkflHp.js} +2 -2
- package/dist/alert/index.js +15 -15
- package/dist/alert/style.css +1 -1
- package/dist/auto-complete/index.js +4 -4
- package/dist/avatar/index.js +1 -1
- package/dist/badge/index.js +24 -24
- package/dist/badge/style.css +0 -1
- package/dist/block-ui/index.js +1 -1
- package/dist/breadcrumb/index.js +1 -1
- package/dist/button/index.js +9 -9
- package/dist/button/style.css +464 -775
- package/dist/button/style.js +1 -0
- package/dist/calendar/index.js +3 -3
- package/dist/card/index.js +1 -1
- package/dist/carousel/index.js +2 -4
- package/dist/carousel/style.css +457 -775
- package/dist/cascade-select/index.js +5 -5
- package/dist/checkbox/index.js +1 -1
- package/dist/chip/index.js +35 -35
- package/dist/chip/style.css +1 -1
- package/dist/command-menu/index.js +5 -5
- package/dist/components/Alert/Alert.vue.d.ts +2 -2
- package/dist/components/Alert/Alert.vue.d.ts.map +1 -1
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/Alert/index.d.ts.map +1 -1
- package/dist/components/Alert/styles.css +1 -1
- package/dist/components/Alert/types.d.ts +3 -3
- package/dist/components/Alert/types.d.ts.map +1 -1
- package/dist/components/Badge/Badge.vue.d.ts +2 -2
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/styles.css +0 -1
- package/dist/components/Badge/types.d.ts +3 -4
- package/dist/components/Badge/types.d.ts.map +1 -1
- package/dist/components/Button/Button.vue.d.ts +15 -22
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Button/ButtonGroup.vue.d.ts +1 -1
- package/dist/components/Button/ButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/buttonHelpers.d.ts +25 -0
- package/dist/components/Button/buttonHelpers.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/styles.css +463 -781
- package/dist/components/Button/types.d.ts +63 -61
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/Chip/index.d.ts.map +1 -1
- package/dist/components/Chip/styles.css +1 -1
- package/dist/components/Chip/types.d.ts +3 -3
- package/dist/components/Chip/types.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +2 -2
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/types.d.ts +3 -3
- package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/useConfirm.d.ts +1 -1
- package/dist/components/ConfirmDialog/useConfirm.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/types.d.ts +3 -3
- package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css +2 -3
- package/dist/components/Dialog/types.d.ts +4 -5
- package/dist/components/Dialog/types.d.ts.map +1 -1
- package/dist/components/Dialog/useModal.d.ts +2 -2
- package/dist/components/Dialog/useModal.d.ts.map +1 -1
- package/dist/components/Divider/Divider.vue.d.ts +1 -1
- package/dist/components/Mentions/Mentions.vue.d.ts +1 -1
- package/dist/components/Message/Message.vue.d.ts.map +1 -1
- package/dist/components/Message/index.d.ts +1 -1
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/Message/message.d.ts +4 -0
- package/dist/components/Message/message.d.ts.map +1 -1
- package/dist/components/Message/styles.css +7 -9
- package/dist/components/Message/types.d.ts +4 -4
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
- package/dist/components/Page/PageStat.vue.d.ts +2 -2
- package/dist/components/Page/index.d.ts +1 -1
- package/dist/components/Page/index.d.ts.map +1 -1
- package/dist/components/Page/styles.css +2 -2
- package/dist/components/Page/types.d.ts +2 -2
- package/dist/components/Page/types.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
- package/dist/components/ProgressBar/styles.css +1 -1
- package/dist/components/ProgressBar/types.d.ts +2 -7
- package/dist/components/ProgressBar/types.d.ts.map +1 -1
- package/dist/components/QRCode/QRCode.vue.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts +0 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/types.d.ts +3 -3
- package/dist/components/SplitButton/types.d.ts.map +1 -1
- package/dist/components/Status/Status.vue.d.ts +2 -2
- package/dist/components/Status/Status.vue.d.ts.map +1 -1
- package/dist/components/Status/index.d.ts +1 -1
- package/dist/components/Status/index.d.ts.map +1 -1
- package/dist/components/Status/styles.css +0 -1
- package/dist/components/Status/types.d.ts +4 -5
- package/dist/components/Status/types.d.ts.map +1 -1
- package/dist/components/Table/Table.vue.d.ts +4 -4
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Table/render/TableThead.vue.d.ts +2 -0
- package/dist/components/Table/render/TableThead.vue.d.ts.map +1 -1
- package/dist/components/Table/state/internal.d.ts +1 -0
- package/dist/components/Table/state/internal.d.ts.map +1 -1
- package/dist/components/Table/styles.css +9 -0
- package/dist/components/Tag/Tag.vue.d.ts +3 -3
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/styles.css +0 -1
- package/dist/components/Tag/types.d.ts +4 -5
- package/dist/components/Tag/types.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
- package/dist/components/Timeline/index.d.ts +1 -1
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/styles.css +2 -4
- package/dist/components/Timeline/types.d.ts +3 -3
- package/dist/components/Timeline/types.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toast/index.d.ts +1 -1
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/styles.css +1 -3
- package/dist/components/Toast/toast.d.ts +4 -0
- package/dist/components/Toast/toast.d.ts.map +1 -1
- package/dist/components/Toast/types.d.ts +5 -5
- package/dist/components/Toast/types.d.ts.map +1 -1
- package/dist/components/Toast/useNotification.d.ts +3 -2
- package/dist/components/Toast/useNotification.d.ts.map +1 -1
- package/dist/components/Tour/Tour.vue.d.ts.map +1 -1
- package/dist/{config-COgrsSV2.js → config-BEpyhJi3.js} +12 -5
- package/dist/config-provider/index.js +1 -1
- package/dist/config-provider/style.css +457 -775
- package/dist/confirm-dialog/index.js +62 -59
- package/dist/confirm-dialog/style.css +459 -778
- package/dist/confirm-popup/index.js +18 -15
- package/dist/confirm-popup/style.css +457 -775
- package/dist/context-menu/index.js +5 -5
- package/dist/data-view/index.js +3 -3
- package/dist/date-picker/index.js +1 -1
- package/dist/descriptions/index.js +1 -1
- package/dist/dialog/index.js +126 -116
- package/dist/dialog/style.css +459 -778
- package/dist/dock/index.js +2 -2
- package/dist/drawer/index.js +4 -4
- package/dist/dropdown/index.js +6 -6
- package/dist/empty/index.js +1 -1
- package/dist/fieldset/index.js +1 -1
- package/dist/file-upload/index.js +2 -2
- package/dist/flex/index.js +1 -1
- package/dist/form/index.js +2 -2
- package/dist/gallery/index.js +2 -2
- package/dist/icon/index.js +1 -1
- package/dist/{icon-COrt_N8A.js → icon-H8prbteT.js} +1 -1
- package/dist/image/index.js +2 -2
- package/dist/index.d.ts +12 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4478 -4380
- package/dist/input/index.js +1 -1
- package/dist/input-color/index.js +2 -2
- package/dist/input-number/index.js +3 -3
- package/dist/input-otp/index.js +2 -2
- package/dist/input-password/index.js +4 -4
- package/dist/input-tags/index.js +3 -3
- package/dist/layout/index.js +2 -2
- package/dist/list/index.js +4 -4
- package/dist/listbox/index.js +2 -2
- package/dist/loading/index.js +1 -1
- package/dist/locale-CZddM-tH.js +21 -0
- package/dist/mega-menu/index.js +5 -5
- package/dist/mentions/index.js +4 -4
- package/dist/menu/index.js +6 -6
- package/dist/menubar/index.js +5 -5
- package/dist/message/index.js +116 -117
- package/dist/message/style.css +7 -9
- package/dist/order-list/index.js +2 -2
- package/dist/page/index.js +9 -11
- package/dist/page/style.css +459 -777
- package/dist/pagination/index.js +1 -1
- package/dist/panel/index.js +3 -3
- package/dist/pick-list/index.js +2 -2
- package/dist/popover/index.js +1 -1
- package/dist/progress-bar/index.js +33 -34
- package/dist/progress-bar/style.css +1 -1
- package/dist/progress-spinner/index.js +1 -1
- package/dist/qr-code/index.js +4 -4
- package/dist/qr-code/style.css +457 -775
- package/dist/radio/index.js +1 -1
- package/dist/rating/index.js +3 -3
- package/dist/result/index.js +2 -2
- package/dist/scroll-top/index.js +3 -3
- package/dist/segmented/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select-button/index.js +1 -1
- package/dist/shared/componentDefaults.d.ts +6 -0
- package/dist/shared/componentDefaults.d.ts.map +1 -1
- package/dist/shared/types.d.ts +7 -20
- package/dist/shared/types.d.ts.map +1 -1
- package/dist/sidebar/index.js +3 -3
- package/dist/slider/index.js +2 -2
- package/dist/space/index.js +1 -1
- package/dist/speed-dial/index.js +5 -5
- package/dist/split-button/index.js +9 -12
- package/dist/split-button/style.css +463 -781
- package/dist/splitter/index.js +1 -1
- package/dist/status/index.js +30 -31
- package/dist/status/style.css +0 -1
- package/dist/stepper/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/index.js +1629 -1623
- package/dist/table/style.css +9 -0
- package/dist/tabs/index.js +2 -2
- package/dist/tag/index.js +52 -52
- package/dist/tag/style.css +0 -1
- package/dist/terminal/index.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/tiered-menu/index.js +4 -4
- package/dist/time-picker/index.js +1 -1
- package/dist/timeline/index.js +67 -72
- package/dist/timeline/style.css +2 -4
- package/dist/toast/index.js +135 -136
- package/dist/toast/style.css +458 -778
- package/dist/toggle-button/index.js +3 -3
- package/dist/tooltip/index.js +1 -1
- package/dist/tour/index.js +8 -9
- package/dist/tour/style.css +457 -775
- package/dist/tree/index.js +3 -3
- package/dist/tree-select/index.js +5 -5
- package/dist/{types-DGuu4Eg4.js → types-DBQfGctj.js} +1 -4
- package/dist/typography/index.js +3 -3
- package/dist/{useMotionTransition-S2rlviyZ.js → useMotionTransition-DqL_SEML.js} +1 -1
- package/package.json +1 -1
- package/dist/Button-TaJ0LKtP.js +0 -234
- package/dist/locale-Dnk0UIie.js +0 -21
package/dist/input/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { t } from "../useFieldFeedback-C5qIqYMK.js";
|
|
3
3
|
import { t as n } from "../useMId-BXFYayPP.js";
|
|
4
|
-
import { o as r } from "../config-
|
|
5
|
-
import { n as i } from "../locale-
|
|
4
|
+
import { o as r } from "../config-BEpyhJi3.js";
|
|
5
|
+
import { n as i } from "../locale-CZddM-tH.js";
|
|
6
6
|
import "./style.js";
|
|
7
7
|
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, normalizeStyle as p, openBlock as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, useAttrs as y } from "vue";
|
|
8
8
|
//#region src/components/InputColor/InputColor.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { t } from "../useFieldFeedback-C5qIqYMK.js";
|
|
3
3
|
import { t as n } from "../useMId-BXFYayPP.js";
|
|
4
|
-
import { t as r } from "../Icon-
|
|
5
|
-
import { o as i } from "../config-
|
|
6
|
-
import { n as a } from "../locale-
|
|
4
|
+
import { t as r } from "../Icon-CmHjx7W8.js";
|
|
5
|
+
import { o as i } from "../config-BEpyhJi3.js";
|
|
6
|
+
import { n as a } from "../locale-CZddM-tH.js";
|
|
7
7
|
import "./style.js";
|
|
8
8
|
import { 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, ref as h, renderSlot as g, toDisplayString as _, unref as v, useAttrs as y, watch as b } from "vue";
|
|
9
9
|
//#region src/components/InputNumber/InputNumber.vue?vue&type=script&setup=true&lang.ts
|
package/dist/input-otp/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { o as t } from "../config-
|
|
3
|
-
import { n, t as r } from "../locale-
|
|
2
|
+
import { o as t } from "../config-BEpyhJi3.js";
|
|
3
|
+
import { n, t as r } from "../locale-CZddM-tH.js";
|
|
4
4
|
import "./style.js";
|
|
5
5
|
import { Fragment as i, computed as a, createElementBlock as o, defineComponent as s, mergeProps as c, nextTick as l, openBlock as u, ref as d, renderList as f, unref as p, useAttrs as m, watch as h } from "vue";
|
|
6
6
|
//#region src/components/InputOtp/InputOtp.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { i as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { t } from "../useMId-BXFYayPP.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as n } from "../Icon-
|
|
3
|
+
import { n as ee } from "../types-DBQfGctj.js";
|
|
4
|
+
import { t as n } from "../Icon-CmHjx7W8.js";
|
|
5
5
|
import { n as r } from "../context-CIx8fy-I.js";
|
|
6
|
-
import { i, o as a, s as o } from "../config-
|
|
7
|
-
import { n as s, t as te } from "../locale-
|
|
6
|
+
import { i, o as a, s as o } from "../config-BEpyhJi3.js";
|
|
7
|
+
import { n as s, t as te } from "../locale-CZddM-tH.js";
|
|
8
8
|
import "./style.js";
|
|
9
9
|
import { computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, inject as ne, mergeProps as h, normalizeClass as g, onBeforeUnmount as re, openBlock as _, ref as v, renderSlot as y, resolveDynamicComponent as b, toDisplayString as x, unref as S, useAttrs as C } from "vue";
|
|
10
10
|
//#region src/components/InputPassword/InputPassword.vue?vue&type=script&setup=true&lang.ts
|
package/dist/input-tags/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { t } from "../useMId-BXFYayPP.js";
|
|
3
|
-
import { t as n } from "../Icon-
|
|
4
|
-
import { o as r } from "../config-
|
|
5
|
-
import { n as i } from "../locale-
|
|
3
|
+
import { t as n } from "../Icon-CmHjx7W8.js";
|
|
4
|
+
import { o as r } from "../config-BEpyhJi3.js";
|
|
5
|
+
import { n as i } from "../locale-CZddM-tH.js";
|
|
6
6
|
import "./style.js";
|
|
7
7
|
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeProps as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useAttrs as x } from "vue";
|
|
8
8
|
//#region src/components/InputTags/InputTags.vue?vue&type=script&setup=true&lang.ts
|
package/dist/layout/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "../Icon-
|
|
2
|
+
import { t } from "../Icon-CmHjx7W8.js";
|
|
3
3
|
import { t as n } from "../Scrollbar-DTeJ8P5b.js";
|
|
4
4
|
import { r, t as i } from "../responsive-DA5bxylA.js";
|
|
5
|
-
import { n as a } from "../locale-
|
|
5
|
+
import { n as a } from "../locale-CZddM-tH.js";
|
|
6
6
|
import "./style.js";
|
|
7
7
|
import { computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, inject as p, mergeProps as m, normalizeClass as h, normalizeStyle as g, openBlock as _, provide as v, ref as y, renderSlot as b, toValue as x, unref as S, useAttrs as C, watch as w, withCtx as T } from "vue";
|
|
8
8
|
//#region src/components/Layout/context.ts
|
package/dist/list/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "../Loading-
|
|
3
|
-
import { t as n } from "../Pagination-
|
|
4
|
-
import { t as r } from "../Empty-
|
|
5
|
-
import { o as i } from "../config-
|
|
2
|
+
import { t } from "../Loading-D_qRwfKv.js";
|
|
3
|
+
import { t as n } from "../Pagination-CnGOpp0m.js";
|
|
4
|
+
import { t as r } from "../Empty-rMhOPi79.js";
|
|
5
|
+
import { o as i } from "../config-BEpyhJi3.js";
|
|
6
6
|
import "./style.js";
|
|
7
7
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, mergeProps as h, normalizeClass as g, openBlock as _, provide as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as S, toDisplayString as C, toRef as w, unref as T, useAttrs as E, useSlots as D, watch as O, withCtx as k } from "vue";
|
|
8
8
|
//#region src/components/List/types.ts
|
package/dist/listbox/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import { t as n } from "../useFieldFeedback-C5qIqYMK.js";
|
|
|
4
4
|
import { t as r } from "../Scrollbar-DTeJ8P5b.js";
|
|
5
5
|
import { t as i } from "../VirtualScroller-CHoFCmpP.js";
|
|
6
6
|
import { t as a } from "../useMenuKeyboard-BedmYE4W.js";
|
|
7
|
-
import { o } from "../config-
|
|
8
|
-
import { n as s } from "../locale-
|
|
7
|
+
import { o } from "../config-BEpyhJi3.js";
|
|
8
|
+
import { n as s } from "../locale-CZddM-tH.js";
|
|
9
9
|
import "./style.js";
|
|
10
10
|
import { Fragment as ee, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as te, defineComponent as m, mergeProps as ne, nextTick as h, normalizeClass as g, openBlock as _, ref as v, renderList as y, renderSlot as b, toDisplayString as x, unref as S, useAttrs as C, vModelText as w, watch as re, withCtx as T, withDirectives as ie } from "vue";
|
|
11
11
|
//#region src/components/Listbox/Listbox.vue?vue&type=script&setup=true&lang.ts
|
package/dist/loading/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../Loading-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../Loading-D_qRwfKv.js";
|
|
2
2
|
import "./style.js";
|
|
3
3
|
import { onBeforeUnmount as o } from "vue";
|
|
4
4
|
//#region src/components/Loading/directive.ts
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { d as e, l as t } from "./config-BEpyhJi3.js";
|
|
2
|
+
import { computed as n } from "vue";
|
|
3
|
+
//#region src/locale/index.ts
|
|
4
|
+
function r(e, t) {
|
|
5
|
+
return e.replace(/\{(\w+)\}/g, (e, n) => String(t[n] ?? ""));
|
|
6
|
+
}
|
|
7
|
+
function i(t) {
|
|
8
|
+
return {
|
|
9
|
+
...e,
|
|
10
|
+
...t,
|
|
11
|
+
name: t?.name ?? e.name,
|
|
12
|
+
weekdays: t?.weekdays?.length === 7 ? t.weekdays : e.weekdays,
|
|
13
|
+
monthNames: t?.monthNames?.length === 12 ? t.monthNames : e.monthNames
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function a() {
|
|
17
|
+
let e = t();
|
|
18
|
+
return n(() => i(e.value.locale));
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { a as n, r as t };
|
package/dist/mega-menu/index.js
CHANGED
|
@@ -2,12 +2,12 @@ import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
|
2
2
|
import { n as t, t as n } from "../overlay-oR-5MDuE.js";
|
|
3
3
|
import { t as r } from "../overlayPlacement-qwEJPVS4.js";
|
|
4
4
|
import { t as ee } from "../useFloatingViewportSync-wLLKIGUA.js";
|
|
5
|
-
import { t as te } from "../useMotionTransition-
|
|
6
|
-
import { t as i } from "../Icon-
|
|
5
|
+
import { t as te } from "../useMotionTransition-DqL_SEML.js";
|
|
6
|
+
import { t as i } from "../Icon-CmHjx7W8.js";
|
|
7
7
|
import { t as a } from "../useMenuKeyboard-BedmYE4W.js";
|
|
8
|
-
import { t as ne } from "../icon-
|
|
9
|
-
import {
|
|
10
|
-
import { n as ie } from "../locale-
|
|
8
|
+
import { t as ne } from "../icon-H8prbteT.js";
|
|
9
|
+
import { l as re } from "../config-BEpyhJi3.js";
|
|
10
|
+
import { n as ie } from "../locale-CZddM-tH.js";
|
|
11
11
|
import "./style.js";
|
|
12
12
|
import { Fragment as o, Teleport as s, Transition as ae, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as oe, createTextVNode as se, createVNode as f, defineComponent as p, mergeProps as ce, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as _, onMounted as le, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, useAttrs as C, watch as w, withCtx as ue, withModifiers as T } from "vue";
|
|
13
13
|
//#region src/components/MegaMenu/MegaMenu.vue?vue&type=script&setup=true&lang.ts
|
package/dist/mentions/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { t } from "../useMId-BXFYayPP.js";
|
|
3
|
-
import { t as n } from "../Icon-
|
|
3
|
+
import { t as n } from "../Icon-CmHjx7W8.js";
|
|
4
4
|
import { t as r } from "../useMenuKeyboard-BedmYE4W.js";
|
|
5
5
|
import { n as i } from "../context-CIx8fy-I.js";
|
|
6
|
-
import { t as a } from "../ProgressSpinner-
|
|
7
|
-
import { i as ee, o as te, s as o } from "../config-
|
|
8
|
-
import { n as s } from "../locale-
|
|
6
|
+
import { t as a } from "../ProgressSpinner-hmR23xpi.js";
|
|
7
|
+
import { i as ee, o as te, s as o } from "../config-BEpyhJi3.js";
|
|
8
|
+
import { n as s } from "../locale-CZddM-tH.js";
|
|
9
9
|
import "./style.js";
|
|
10
10
|
import { Fragment as ne, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, inject as m, mergeProps as h, nextTick as g, normalizeClass as _, openBlock as v, ref as y, renderList as re, toDisplayString as b, unref as x, useAttrs as S, watch as C, withModifiers as w } from "vue";
|
|
11
11
|
//#region src/components/Mentions/mentionUtils.ts
|
package/dist/menu/index.js
CHANGED
|
@@ -2,16 +2,16 @@ import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
|
2
2
|
import { n as t, t as n } from "../overlay-oR-5MDuE.js";
|
|
3
3
|
import { t as r } from "../overlayPlacement-qwEJPVS4.js";
|
|
4
4
|
import { t as i } from "../useFloatingViewportSync-wLLKIGUA.js";
|
|
5
|
-
import { t as a } from "../useMotionTransition-
|
|
6
|
-
import { t as o } from "../Icon-
|
|
5
|
+
import { t as a } from "../useMotionTransition-DqL_SEML.js";
|
|
6
|
+
import { t as o } from "../Icon-CmHjx7W8.js";
|
|
7
7
|
import { t as s } from "../Scrollbar-DTeJ8P5b.js";
|
|
8
8
|
import { t as c } from "../useMenuKeyboard-BedmYE4W.js";
|
|
9
|
-
import { t as ee } from "../icon-
|
|
9
|
+
import { t as ee } from "../icon-H8prbteT.js";
|
|
10
10
|
import { t as l } from "../key-CaQYVkjh.js";
|
|
11
11
|
import { t as u } from "../lastPointer-CRxcUqdd.js";
|
|
12
|
-
import { t as d } from "../Popover-
|
|
13
|
-
import { t as f } from "../Tooltip-
|
|
14
|
-
import {
|
|
12
|
+
import { t as d } from "../Popover-D1uZ1N9Z.js";
|
|
13
|
+
import { t as f } from "../Tooltip-DSfkflHp.js";
|
|
14
|
+
import { l as te } from "../config-BEpyhJi3.js";
|
|
15
15
|
import "./style.js";
|
|
16
16
|
import { Fragment as p, Teleport as ne, Transition as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createVNode as b, defineComponent as x, getCurrentInstance as S, inject as re, mergeProps as C, nextTick as w, normalizeClass as T, normalizeStyle as E, onBeforeUnmount as ie, openBlock as D, provide as O, reactive as k, ref as A, renderList as j, renderSlot as M, resolveDynamicComponent as N, toDisplayString as P, unref as F, useAttrs as ae, useSlots as oe, watch as se, withCtx as I } from "vue";
|
|
17
17
|
//#region src/shared/menu/tree.ts
|
package/dist/menubar/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
|
2
2
|
import { n as t, t as n } from "../overlay-oR-5MDuE.js";
|
|
3
3
|
import { t as ee } from "../overlayPlacement-qwEJPVS4.js";
|
|
4
4
|
import { t as te } from "../useFloatingViewportSync-wLLKIGUA.js";
|
|
5
|
-
import { t as ne } from "../useMotionTransition-
|
|
6
|
-
import { t as r } from "../Icon-
|
|
5
|
+
import { t as ne } from "../useMotionTransition-DqL_SEML.js";
|
|
6
|
+
import { t as r } from "../Icon-CmHjx7W8.js";
|
|
7
7
|
import { t as re } from "../Scrollbar-DTeJ8P5b.js";
|
|
8
8
|
import { t as i } from "../useMenuKeyboard-BedmYE4W.js";
|
|
9
|
-
import { t as ie } from "../icon-
|
|
10
|
-
import {
|
|
11
|
-
import { n as oe } from "../locale-
|
|
9
|
+
import { t as ie } from "../icon-H8prbteT.js";
|
|
10
|
+
import { l as ae } from "../config-BEpyhJi3.js";
|
|
11
|
+
import { n as oe } from "../locale-CZddM-tH.js";
|
|
12
12
|
import "./style.js";
|
|
13
13
|
import { Fragment as a, Teleport as se, Transition as ce, computed as o, createBlock as le, createCommentVNode as s, createElementBlock as c, createElementVNode as ue, createTextVNode as l, createVNode as u, defineComponent as d, mergeProps as de, nextTick as f, normalizeClass as p, normalizeStyle as fe, onBeforeUnmount as m, onMounted as pe, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useAttrs as me, watch as x, withCtx as S, withModifiers as C } from "vue";
|
|
14
14
|
//#region src/components/Menubar/Menubar.vue?vue&type=script&setup=true&lang.ts
|
package/dist/message/index.js
CHANGED
|
@@ -1,92 +1,91 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { n as t } from "../overlay-oR-5MDuE.js";
|
|
3
|
-
import { t as n } from "../useMotionTransition-
|
|
4
|
-
import { t as r } from "../
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { n as u } from "../locale-Dnk0UIie.js";
|
|
3
|
+
import { t as n } from "../useMotionTransition-DqL_SEML.js";
|
|
4
|
+
import { t as r } from "../Icon-CmHjx7W8.js";
|
|
5
|
+
import { r as i, t as a } from "../content-h8POj44-.js";
|
|
6
|
+
import { t as ee } from "../Renderable-DHU4Jcfw.js";
|
|
7
|
+
import { n as o } from "../overlayHost-78CGtMgR.js";
|
|
8
|
+
import { l as s } from "../config-BEpyhJi3.js";
|
|
9
|
+
import { n as c } from "../locale-CZddM-tH.js";
|
|
11
10
|
import "./style.js";
|
|
12
|
-
import { Fragment as
|
|
11
|
+
import { Fragment as l, Teleport as u, TransitionGroup as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineComponent as v, h as y, mergeProps as b, normalizeClass as x, onBeforeUnmount as te, onMounted as ne, openBlock as S, reactive as C, renderList as w, unref as T, useAttrs as E, watch as D, withCtx as O } from "vue";
|
|
13
12
|
//#region src/components/Message/messageState.ts
|
|
14
|
-
var
|
|
13
|
+
var k = C({
|
|
15
14
|
items: [],
|
|
16
15
|
placement: "top",
|
|
17
16
|
max: void 0,
|
|
18
17
|
dedupe: !0
|
|
19
|
-
}),
|
|
20
|
-
function
|
|
21
|
-
|
|
18
|
+
}), A = null, j = 0, M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
|
|
19
|
+
function F(e) {
|
|
20
|
+
A = e;
|
|
21
|
+
}
|
|
22
|
+
function I() {
|
|
23
|
+
j += 1, A &&= (A.unmount(), null);
|
|
22
24
|
}
|
|
23
25
|
function L() {
|
|
24
|
-
|
|
26
|
+
j = Math.max(0, j - 1);
|
|
25
27
|
}
|
|
26
|
-
function R() {
|
|
27
|
-
|
|
28
|
+
function R(e) {
|
|
29
|
+
return i(e);
|
|
28
30
|
}
|
|
29
31
|
function z(e) {
|
|
30
|
-
|
|
32
|
+
let t = M.get(e);
|
|
33
|
+
t != null && clearTimeout(t), M.delete(e), N.delete(e), P.delete(e);
|
|
31
34
|
}
|
|
32
35
|
function B(e) {
|
|
33
|
-
let t =
|
|
34
|
-
t != null && clearTimeout(t), N.delete(e), P.delete(e), F.delete(e);
|
|
35
|
-
}
|
|
36
|
-
function V(e) {
|
|
37
|
-
let t = N.get(e);
|
|
36
|
+
let t = M.get(e);
|
|
38
37
|
if (t == null) return;
|
|
39
|
-
clearTimeout(t),
|
|
40
|
-
let n =
|
|
41
|
-
n != null && r != null &&
|
|
38
|
+
clearTimeout(t), M.delete(e);
|
|
39
|
+
let n = P.get(e), r = N.get(e);
|
|
40
|
+
n != null && r != null && N.set(e, Math.max(0, r - (Date.now() - n)));
|
|
42
41
|
}
|
|
43
|
-
function
|
|
44
|
-
let n =
|
|
45
|
-
n == null || n <= 0 || (
|
|
42
|
+
function V(e, t) {
|
|
43
|
+
let n = N.get(e);
|
|
44
|
+
n == null || n <= 0 || (P.set(e, Date.now()), M.set(e, setTimeout(() => {
|
|
46
45
|
t(e);
|
|
47
46
|
}, n)));
|
|
48
47
|
}
|
|
49
|
-
function
|
|
50
|
-
|
|
48
|
+
function H(e, t) {
|
|
49
|
+
z(e.id), !(e.life == null || e.life <= 0) && (N.set(e.id, e.life), P.set(e.id, Date.now()), M.set(e.id, setTimeout(() => {
|
|
51
50
|
t(e.id);
|
|
52
51
|
}, e.life)));
|
|
53
52
|
}
|
|
54
|
-
function
|
|
53
|
+
function U(e) {
|
|
55
54
|
if (e == null) {
|
|
56
|
-
|
|
55
|
+
W();
|
|
57
56
|
return;
|
|
58
57
|
}
|
|
59
|
-
|
|
58
|
+
z(e), k.items = k.items.filter((t) => t.id !== e);
|
|
60
59
|
}
|
|
61
|
-
function
|
|
62
|
-
for (let e of [...
|
|
63
|
-
|
|
60
|
+
function W() {
|
|
61
|
+
for (let e of [...M.keys()]) z(e);
|
|
62
|
+
k.items = [];
|
|
64
63
|
}
|
|
65
|
-
function
|
|
66
|
-
if (!(e == null || e <= 0)) for (;
|
|
67
|
-
let e =
|
|
64
|
+
function G(e) {
|
|
65
|
+
if (!(e == null || e <= 0)) for (; k.items.length >= e;) {
|
|
66
|
+
let e = k.items[0];
|
|
68
67
|
if (!e) break;
|
|
69
|
-
|
|
68
|
+
U(e.id);
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
|
-
function
|
|
73
|
-
if (!(e == null || e <= 0)) for (;
|
|
74
|
-
let e =
|
|
71
|
+
function K(e) {
|
|
72
|
+
if (!(e == null || e <= 0)) for (; k.items.length > e;) {
|
|
73
|
+
let e = k.items[0];
|
|
75
74
|
if (!e) break;
|
|
76
|
-
|
|
75
|
+
U(e.id);
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
|
-
function
|
|
80
|
-
let t =
|
|
81
|
-
return
|
|
78
|
+
function q(e) {
|
|
79
|
+
let t = R(e.content);
|
|
80
|
+
return k.items.find((e) => R(e.content) === t);
|
|
82
81
|
}
|
|
83
82
|
//#endregion
|
|
84
83
|
//#region src/components/Message/Message.vue?vue&type=script&setup=true&lang.ts
|
|
85
|
-
var
|
|
84
|
+
var J = ["onMouseenter", "onMouseleave"], Y = {
|
|
86
85
|
key: 0,
|
|
87
86
|
class: "m-message__icon",
|
|
88
87
|
"aria-hidden": "true"
|
|
89
|
-
},
|
|
88
|
+
}, X = { class: "m-message__content" }, re = ["aria-label", "onClick"], Z = /* @__PURE__ */ v({
|
|
90
89
|
inheritAttrs: !1,
|
|
91
90
|
__name: "Message",
|
|
92
91
|
props: {
|
|
@@ -108,131 +107,131 @@ var Y = ["onMouseenter", "onMouseleave"], X = {
|
|
|
108
107
|
default: void 0
|
|
109
108
|
}
|
|
110
109
|
},
|
|
111
|
-
setup(
|
|
112
|
-
let
|
|
110
|
+
setup(i) {
|
|
111
|
+
let a = i, o = E(), { rootAttrs: v } = e(o, () => a.pt), y = s(), { transitionName: C, transitionCss: A } = n({
|
|
113
112
|
role: "toast",
|
|
114
|
-
local: () =>
|
|
113
|
+
local: () => a.transition,
|
|
115
114
|
componentName: "Message",
|
|
116
115
|
fallback: "message"
|
|
117
|
-
}),
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}),
|
|
121
|
-
|
|
122
|
-
}),
|
|
123
|
-
|
|
116
|
+
}), j = c(), M = f(() => t(a, y.value.appendTo)), N = f(() => a.messages === void 0), P = f(() => a.messages ?? k.items), F = f(() => a.placement ?? (N.value ? k.placement : "top"));
|
|
117
|
+
ne(() => {
|
|
118
|
+
N.value && !a.auto && I();
|
|
119
|
+
}), te(() => {
|
|
120
|
+
N.value && !a.auto && L();
|
|
121
|
+
}), D(() => [a.placement, a.max], ([e, t]) => {
|
|
122
|
+
N.value && (e && (k.placement = e), t !== void 0 && (k.max = t, K(t)));
|
|
124
123
|
}, { immediate: !0 });
|
|
125
|
-
function
|
|
126
|
-
switch (
|
|
124
|
+
function R(e) {
|
|
125
|
+
switch (e ?? "info") {
|
|
127
126
|
case "success": return "check-circle";
|
|
128
|
-
case "
|
|
127
|
+
case "warning": return "warning";
|
|
129
128
|
case "danger": return "x-circle";
|
|
130
129
|
default: return "info";
|
|
131
130
|
}
|
|
132
131
|
}
|
|
133
|
-
function
|
|
134
|
-
return `m-message--${
|
|
132
|
+
function z(e) {
|
|
133
|
+
return `m-message--${e ?? "info"}`;
|
|
135
134
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
135
|
+
function H(e) {
|
|
136
|
+
N.value && U(e.id);
|
|
138
137
|
}
|
|
139
|
-
function
|
|
140
|
-
|
|
138
|
+
function W(e) {
|
|
139
|
+
N.value && B(e.id);
|
|
141
140
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
141
|
+
function G(e) {
|
|
142
|
+
N.value && V(e.id, U);
|
|
144
143
|
}
|
|
145
|
-
return (e, t) => (
|
|
146
|
-
to:
|
|
147
|
-
disabled:
|
|
148
|
-
}, [
|
|
149
|
-
class: ["m-message-host", `m-message-host--${
|
|
144
|
+
return (e, t) => (S(), p(u, {
|
|
145
|
+
to: M.value.to,
|
|
146
|
+
disabled: M.value.disabled
|
|
147
|
+
}, [g("div", b(T(v), {
|
|
148
|
+
class: ["m-message-host", `m-message-host--${F.value}`],
|
|
150
149
|
"aria-live": "polite",
|
|
151
150
|
"aria-atomic": "false"
|
|
152
|
-
}), [
|
|
153
|
-
name:
|
|
154
|
-
css:
|
|
151
|
+
}), [_(d, {
|
|
152
|
+
name: T(C),
|
|
153
|
+
css: T(A)
|
|
155
154
|
}, {
|
|
156
|
-
default:
|
|
155
|
+
default: O(() => [(S(!0), h(l, null, w(P.value, (e) => (S(), h("div", {
|
|
157
156
|
key: e.id,
|
|
158
|
-
class:
|
|
157
|
+
class: x(["m-message", z(e.type)]),
|
|
159
158
|
role: "status",
|
|
160
|
-
onMouseenter: (t) =>
|
|
161
|
-
onMouseleave: (t) =>
|
|
159
|
+
onMouseenter: (t) => W(e),
|
|
160
|
+
onMouseleave: (t) => G(e)
|
|
162
161
|
}, [
|
|
163
|
-
e.icon === !1 ?
|
|
164
|
-
name:
|
|
162
|
+
e.icon === !1 ? m("", !0) : (S(), h("span", Y, [_(r, {
|
|
163
|
+
name: R(e.type),
|
|
165
164
|
size: "sm"
|
|
166
165
|
}, null, 8, ["name"])])),
|
|
167
|
-
|
|
168
|
-
e.closable ? (
|
|
166
|
+
g("div", X, [_(T(ee), { value: e.content }, null, 8, ["value"])]),
|
|
167
|
+
e.closable ? (S(), h("button", {
|
|
169
168
|
key: 1,
|
|
170
169
|
type: "button",
|
|
171
170
|
class: "m-message__close",
|
|
172
|
-
"aria-label":
|
|
173
|
-
onClick: (t) =>
|
|
174
|
-
}, [
|
|
171
|
+
"aria-label": T(j).close,
|
|
172
|
+
onClick: (t) => H(e)
|
|
173
|
+
}, [_(r, {
|
|
175
174
|
name: "close",
|
|
176
175
|
size: "sm"
|
|
177
|
-
})], 8,
|
|
178
|
-
], 42,
|
|
176
|
+
})], 8, re)) : m("", !0)
|
|
177
|
+
], 42, J))), 128))]),
|
|
179
178
|
_: 1
|
|
180
179
|
}, 8, ["name", "css"])], 16)], 8, ["to", "disabled"]));
|
|
181
180
|
}
|
|
182
|
-
}),
|
|
181
|
+
}), ie = 3e3, ae = 0, oe = v({
|
|
183
182
|
name: "MMessageAutoHost",
|
|
184
183
|
setup() {
|
|
185
|
-
return () =>
|
|
184
|
+
return () => y(Z, { auto: !0 });
|
|
186
185
|
}
|
|
187
186
|
});
|
|
188
|
-
function
|
|
189
|
-
typeof document > "u" ||
|
|
187
|
+
function se() {
|
|
188
|
+
typeof document > "u" || j > 0 || A || F(o(oe, "m-message-host-root"));
|
|
190
189
|
}
|
|
191
|
-
function
|
|
192
|
-
let n =
|
|
190
|
+
function ce(e, t) {
|
|
191
|
+
let n = a(e) ? e : { content: e };
|
|
193
192
|
return {
|
|
194
|
-
id: n.id ?? `m-message-${Date.now()}-${++
|
|
193
|
+
id: n.id ?? `m-message-${Date.now()}-${++ae}`,
|
|
195
194
|
content: n.content,
|
|
196
|
-
|
|
195
|
+
type: t ?? n.type ?? "info",
|
|
197
196
|
closable: n.closable ?? !1,
|
|
198
|
-
life: n.life === void 0 ?
|
|
197
|
+
life: n.life === void 0 ? ie : n.life,
|
|
199
198
|
icon: n.icon ?? !0
|
|
200
199
|
};
|
|
201
200
|
}
|
|
202
201
|
function Q(e, t) {
|
|
203
|
-
|
|
204
|
-
let n =
|
|
205
|
-
if ((
|
|
206
|
-
let e =
|
|
207
|
-
if (e) return n.life !== void 0 && (e.life = n.life), n.
|
|
202
|
+
se(), G(k.max);
|
|
203
|
+
let n = ce(e, t);
|
|
204
|
+
if ((a(e) ? e.dedupe : void 0) ?? k.dedupe ?? !0) {
|
|
205
|
+
let e = q(n);
|
|
206
|
+
if (e) return n.life !== void 0 && (e.life = n.life), n.type !== void 0 && (e.type = n.type), H(e, U), {
|
|
208
207
|
id: e.id,
|
|
209
|
-
close: () =>
|
|
208
|
+
close: () => U(e.id)
|
|
210
209
|
};
|
|
211
210
|
}
|
|
212
|
-
return
|
|
211
|
+
return k.items = [...k.items, n], H(n, U), {
|
|
213
212
|
id: n.id,
|
|
214
|
-
close: () =>
|
|
213
|
+
close: () => U(n.id)
|
|
215
214
|
};
|
|
216
215
|
}
|
|
217
216
|
var $ = {
|
|
218
217
|
open: (e) => Q(e),
|
|
219
218
|
success: (e) => Q(e, "success"),
|
|
220
219
|
info: (e) => Q(e, "info"),
|
|
221
|
-
warn: (e) => Q(e, "
|
|
222
|
-
warning: (e) => Q(e, "
|
|
223
|
-
error: (e) => Q(e, "
|
|
224
|
-
close:
|
|
225
|
-
closeAll:
|
|
226
|
-
destroyAll:
|
|
220
|
+
warn: (e) => Q(e, "warning"),
|
|
221
|
+
warning: (e) => Q(e, "warning"),
|
|
222
|
+
error: (e) => Q(e, "danger"),
|
|
223
|
+
close: U,
|
|
224
|
+
closeAll: W,
|
|
225
|
+
destroyAll: W,
|
|
227
226
|
config(e) {
|
|
228
|
-
e.placement && (
|
|
227
|
+
e.placement && (k.placement = e.placement), e.max !== void 0 && (k.max = e.max), e.dedupe !== void 0 && (k.dedupe = e.dedupe);
|
|
229
228
|
},
|
|
230
229
|
setDefaults(e) {
|
|
231
230
|
$.config(e);
|
|
232
231
|
}
|
|
233
232
|
};
|
|
234
|
-
function
|
|
233
|
+
function le() {
|
|
235
234
|
return $;
|
|
236
235
|
}
|
|
237
236
|
//#endregion
|
|
238
|
-
export { Z as MMessage, $ as message,
|
|
237
|
+
export { Z as MMessage, $ as message, le as useMessage };
|
package/dist/message/style.css
CHANGED
|
@@ -1305,7 +1305,6 @@
|
|
|
1305
1305
|
|
|
1306
1306
|
.m-message {
|
|
1307
1307
|
--m-message-min-width: 16rem;
|
|
1308
|
-
align-items: flex-start;
|
|
1309
1308
|
background: color-mix(
|
|
1310
1309
|
in srgb,
|
|
1311
1310
|
var(--m-color-info) 10%,
|
|
@@ -1317,6 +1316,7 @@
|
|
|
1317
1316
|
box-shadow: var(--m-shadow-md);
|
|
1318
1317
|
color: var(--m-color-text);
|
|
1319
1318
|
display: flex;
|
|
1319
|
+
align-items: center;
|
|
1320
1320
|
font-family: var(--m-font-sans);
|
|
1321
1321
|
font-size: var(--m-font-size-md);
|
|
1322
1322
|
gap: var(--m-space-3);
|
|
@@ -1329,7 +1329,9 @@
|
|
|
1329
1329
|
.m-message__icon {
|
|
1330
1330
|
color: var(--m-color-info);
|
|
1331
1331
|
flex-shrink: 0;
|
|
1332
|
-
|
|
1332
|
+
display: flex;
|
|
1333
|
+
align-items: center;
|
|
1334
|
+
justify-content: center;
|
|
1333
1335
|
}
|
|
1334
1336
|
|
|
1335
1337
|
.m-message__content {
|
|
@@ -1401,26 +1403,23 @@
|
|
|
1401
1403
|
color: var(--m-color-info);
|
|
1402
1404
|
}
|
|
1403
1405
|
|
|
1404
|
-
.m-message--warn,
|
|
1405
1406
|
.m-message--warning {
|
|
1406
1407
|
background: color-mix(
|
|
1407
1408
|
in srgb,
|
|
1408
|
-
var(--m-color-
|
|
1409
|
+
var(--m-color-warning) 10%,
|
|
1409
1410
|
var(--m-color-surface)
|
|
1410
1411
|
);
|
|
1411
1412
|
border-color: color-mix(
|
|
1412
1413
|
in srgb,
|
|
1413
|
-
var(--m-color-
|
|
1414
|
+
var(--m-color-warning) 28%,
|
|
1414
1415
|
var(--m-color-border)
|
|
1415
1416
|
);
|
|
1416
1417
|
}
|
|
1417
1418
|
|
|
1418
|
-
.m-message--warn .m-message__icon,
|
|
1419
1419
|
.m-message--warning .m-message__icon {
|
|
1420
|
-
color: var(--m-color-
|
|
1420
|
+
color: var(--m-color-warning);
|
|
1421
1421
|
}
|
|
1422
1422
|
|
|
1423
|
-
.m-message--error,
|
|
1424
1423
|
.m-message--danger {
|
|
1425
1424
|
background: color-mix(
|
|
1426
1425
|
in srgb,
|
|
@@ -1434,7 +1433,6 @@
|
|
|
1434
1433
|
);
|
|
1435
1434
|
}
|
|
1436
1435
|
|
|
1437
|
-
.m-message--error .m-message__icon,
|
|
1438
1436
|
.m-message--danger .m-message__icon {
|
|
1439
1437
|
color: var(--m-color-danger);
|
|
1440
1438
|
}
|