rappel-ui 1.0.19 → 1.0.21
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/cjs/components/button/index.js +1 -1
- package/cjs/components/button/src/button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/button/src/types.d.ts +1 -1
- package/cjs/components/button/style/css.js +2 -1
- package/cjs/components/button/style/index.js +2 -1
- package/cjs/components/button-group/style/css.js +2 -0
- package/cjs/components/button-group/style/index.js +2 -0
- package/cjs/components/colors/index.js +1 -1
- package/cjs/components/colors/style/css.js +2 -1
- package/cjs/components/colors/style/index.js +2 -1
- package/cjs/components/filter-panel/index.js +1 -1
- package/cjs/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/filter-panel/style/css.js +2 -1
- package/cjs/components/filter-panel/style/index.js +2 -1
- package/cjs/components/input/index.js +1 -1
- package/cjs/components/popconfirm/index.d.ts +5 -5
- package/cjs/components/popconfirm/index.js +1 -1
- package/cjs/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
- package/cjs/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/popconfirm/src/types.d.ts +2 -2
- package/cjs/components/popconfirm/style/css.js +2 -1
- package/cjs/components/popconfirm/style/index.js +2 -1
- package/cjs/components/popover/index.d.ts +5 -5
- package/cjs/components/popover/index.js +1 -1
- package/cjs/components/popover/src/popover.vue.d.ts +2 -2
- package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/popover/src/types.d.ts +1 -1
- package/cjs/components/popover/style/css.js +2 -1
- package/cjs/components/popover/style/index.js +2 -1
- package/cjs/components/svg-icon/index.js +1 -1
- package/cjs/components/svg-icon/style/css.js +2 -1
- package/cjs/components/svg-icon/style/index.js +2 -1
- package/cjs/components/tabs/index.js +1 -1
- package/cjs/components/tooltip/index.js +1 -1
- package/cjs/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/tooltip/src/types.d.ts +1 -1
- package/cjs/components/tooltip/src/use-tooltip.js +1 -1
- package/cjs/components/tooltip/style/css.js +2 -1
- package/cjs/components/tooltip/style/index.js +2 -1
- package/cjs/composables/use-theme/index.d.ts +1 -1
- package/cjs/composables/use-theme/index.js +1 -1
- package/cjs/index.d.ts +10 -10
- package/cjs/theme-chalk/index.d.ts +0 -0
- package/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +47 -48
- package/es/components/button/src/types.d.ts +1 -1
- package/es/components/button/style/css.mjs +2 -2
- package/es/components/button/style/index.mjs +2 -2
- package/es/components/button-group/style/css.mjs +2 -0
- package/es/components/button-group/style/index.mjs +2 -0
- package/es/components/colors/style/css.mjs +2 -2
- package/es/components/colors/style/index.mjs +2 -2
- package/es/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.mjs +45 -46
- package/es/components/filter-panel/style/css.mjs +2 -2
- package/es/components/filter-panel/style/index.mjs +2 -2
- package/es/components/popconfirm/index.d.ts +5 -5
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +105 -108
- package/es/components/popconfirm/src/types.d.ts +2 -2
- package/es/components/popconfirm/style/css.mjs +2 -2
- package/es/components/popconfirm/style/index.mjs +2 -2
- package/es/components/popover/index.d.ts +5 -5
- package/es/components/popover/src/popover.vue.d.ts +2 -2
- package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +1 -4
- package/es/components/popover/src/types.d.ts +1 -1
- package/es/components/popover/style/css.mjs +2 -2
- package/es/components/popover/style/index.mjs +2 -2
- package/es/components/svg-icon/style/css.mjs +2 -2
- package/es/components/svg-icon/style/index.mjs +2 -2
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/tooltip/src/types.d.ts +1 -1
- package/es/components/tooltip/src/use-tooltip.mjs +24 -25
- package/es/components/tooltip/style/css.mjs +2 -2
- package/es/components/tooltip/style/index.mjs +2 -2
- package/es/composables/use-theme/index.d.ts +1 -1
- package/es/composables/use-theme/index.mjs +7 -8
- package/es/index.d.ts +10 -10
- package/es/theme-chalk/index.d.ts +0 -0
- package/package.json +1 -1
- package/cjs/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -1
- package/cjs/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -1
- package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -1
- package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -1
- package/cjs/node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +0 -1
- package/cjs/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +0 -1
- package/cjs/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +0 -1
- package/cjs/node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js +0 -1
- package/cjs/svg-icons/dist/es/_virtual/_rolldown_dynamic_import_helper.js +0 -1
- package/cjs/svg-icons/dist/es/create-icon.js +0 -1
- package/cjs/svg-icons/dist/es/icon-names.js +0 -1
- package/cjs/svg-icons/dist/es/index.js +0 -1
- package/cjs/svg-icons/dist/es/packages/components/svg-icon/index.js +0 -1
- package/cjs/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.js +0 -1
- package/cjs/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/svg-icons/dist/es/packages/composables/use-namespace/index.js +0 -1
- package/cjs/svg-icons/dist/es/packages/utils/util.js +0 -1
- package/cjs/svg-icons/dist/es/packages/utils/vue/index.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-backward.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-down.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-downward.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-forward.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-left.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-right.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-up.js +0 -1
- package/cjs/svg-icons/dist/es/src/arrow-upward.js +0 -1
- package/cjs/svg-icons/dist/es/src/check-circle.js +0 -1
- package/cjs/svg-icons/dist/es/src/check.js +0 -1
- package/cjs/svg-icons/dist/es/src/close-short.js +0 -1
- package/cjs/svg-icons/dist/es/src/close.js +0 -1
- package/cjs/svg-icons/dist/es/src/copy-closure.js +0 -1
- package/cjs/svg-icons/dist/es/src/copy.js +0 -1
- package/cjs/svg-icons/dist/es/src/delete.js +0 -1
- package/cjs/svg-icons/dist/es/src/exclam.js +0 -1
- package/cjs/svg-icons/dist/es/src/help.js +0 -1
- package/cjs/svg-icons/dist/es/src/loading.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-dot-circle-horizontal.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-dot-circle-outline-horizontal.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-dot-circle-outline-vertical.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-dot-circle.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-dot-square-horizontal.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-dot-square.js +0 -1
- package/cjs/svg-icons/dist/es/src/more-line.js +0 -1
- package/cjs/svg-icons/dist/es/src/search-bold.js +0 -1
- package/cjs/svg-icons/dist/es/src/search.js +0 -1
- package/cjs/svg-icons/dist/es/src/star-fill.js +0 -1
- package/cjs/svg-icons/dist/es/src/star.js +0 -1
- package/dist/index.css +0 -1
- package/dist/index.umd.js +0 -58
- package/es/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -276
- package/es/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -322
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -99
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -101
- package/es/node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +0 -111
- package/es/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +0 -478
- package/es/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +0 -136
- package/es/node_modules/.pnpm/process@0.11.10/node_modules/process/browser.mjs +0 -90
- package/es/svg-icons/dist/es/_virtual/_rolldown_dynamic_import_helper.mjs +0 -9
- package/es/svg-icons/dist/es/create-icon.mjs +0 -43
- package/es/svg-icons/dist/es/icon-names.mjs +0 -4
- package/es/svg-icons/dist/es/index.mjs +0 -70
- package/es/svg-icons/dist/es/packages/components/svg-icon/index.mjs +0 -6
- package/es/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.mjs +0 -5
- package/es/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +0 -49
- package/es/svg-icons/dist/es/packages/composables/use-namespace/index.mjs +0 -22
- package/es/svg-icons/dist/es/packages/utils/util.mjs +0 -6
- package/es/svg-icons/dist/es/packages/utils/vue/index.mjs +0 -17
- package/es/svg-icons/dist/es/src/arrow-backward.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-down.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-downward.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-forward.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-left.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-right.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-up.mjs +0 -8
- package/es/svg-icons/dist/es/src/arrow-upward.mjs +0 -8
- package/es/svg-icons/dist/es/src/check-circle.mjs +0 -8
- package/es/svg-icons/dist/es/src/check.mjs +0 -8
- package/es/svg-icons/dist/es/src/close-short.mjs +0 -8
- package/es/svg-icons/dist/es/src/close.mjs +0 -8
- package/es/svg-icons/dist/es/src/copy-closure.mjs +0 -8
- package/es/svg-icons/dist/es/src/copy.mjs +0 -8
- package/es/svg-icons/dist/es/src/delete.mjs +0 -8
- package/es/svg-icons/dist/es/src/exclam.mjs +0 -8
- package/es/svg-icons/dist/es/src/help.mjs +0 -8
- package/es/svg-icons/dist/es/src/loading.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-dot-circle-horizontal.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-dot-circle-outline-horizontal.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-dot-circle-outline-vertical.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-dot-circle.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-dot-square-horizontal.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-dot-square.mjs +0 -8
- package/es/svg-icons/dist/es/src/more-line.mjs +0 -8
- package/es/svg-icons/dist/es/src/search-bold.mjs +0 -8
- package/es/svg-icons/dist/es/src/search.mjs +0 -8
- package/es/svg-icons/dist/es/src/star-fill.mjs +0 -9
- package/es/svg-icons/dist/es/src/star.mjs +0 -8
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getAsyncIcon as t } from "../../../svg-icons/dist/es/index.mjs";
|
|
3
|
-
import { useNamespace as n } from "../../../composables/use-namespace/index.mjs";
|
|
1
|
+
import { useNamespace as e } from "../../../composables/use-namespace/index.mjs";
|
|
4
2
|
import "../../../composables/index.mjs";
|
|
5
|
-
import { useEmits as
|
|
6
|
-
import { filterNodeTypes as
|
|
7
|
-
import { Fragment as
|
|
3
|
+
import { useEmits as t } from "../../tooltip/src/use-emit.mjs";
|
|
4
|
+
import { filterNodeTypes as n } from "../../tooltip/src/constants.mjs";
|
|
5
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, h as f, mergeModels as p, normalizeClass as m, openBlock as h, renderSlot as g, resolveComponent as _, resolveDynamicComponent as v, toDisplayString as y, unref as b, useModel as x, useSlots as S, useTemplateRef as C, withCtx as w } from "vue";
|
|
6
|
+
import { computedAsync as T } from "@vueuse/core";
|
|
7
|
+
import { getAsyncIcon as E } from "@rappel-ui/svg-icons";
|
|
8
8
|
//#region packages/components/popconfirm/src/popconfirm.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var D = ["innerHTML"], O =
|
|
9
|
+
var D = ["innerHTML"], O = d({
|
|
10
10
|
name: "RePopconfirm",
|
|
11
11
|
__name: "popconfirm",
|
|
12
|
-
props:
|
|
12
|
+
props: p({
|
|
13
13
|
icon: { default: "help" },
|
|
14
14
|
showIcon: {
|
|
15
15
|
type: Boolean,
|
|
@@ -111,13 +111,10 @@ var D = ["innerHTML"], O = p({
|
|
|
111
111
|
},
|
|
112
112
|
virtualRef: { default: () => void 0 }
|
|
113
113
|
}, {
|
|
114
|
-
visible: {
|
|
115
|
-
type: Boolean,
|
|
116
|
-
default: void 0
|
|
117
|
-
},
|
|
114
|
+
visible: { type: Boolean },
|
|
118
115
|
visibleModifiers: {}
|
|
119
116
|
}),
|
|
120
|
-
emits:
|
|
117
|
+
emits: p([
|
|
121
118
|
"confirm",
|
|
122
119
|
"cancel",
|
|
123
120
|
"beforeShow",
|
|
@@ -133,141 +130,141 @@ var D = ["innerHTML"], O = p({
|
|
|
133
130
|
"leaveCancelled",
|
|
134
131
|
"afterLeave"
|
|
135
132
|
], ["update:visible"]),
|
|
136
|
-
setup(
|
|
137
|
-
let { n: k, ns: A } =
|
|
133
|
+
setup(d, { expose: p, emit: O }) {
|
|
134
|
+
let { n: k, ns: A } = e("popconfirm"), j = O, { beforeShow: M, beforeHide: N, show: P, hide: F, beforeEnter: I, enter: L, afterEnter: R, beforeLeave: z, leave: B, afterLeave: V, enterCancelled: H, leaveCancelled: U } = t(j), W = x(d, "visible"), G = i(() => [k(), d.floatingClass]), K = S(), q = i(() => {
|
|
138
135
|
var e, t;
|
|
139
|
-
let
|
|
140
|
-
return (
|
|
141
|
-
}), J =
|
|
136
|
+
let r = K == null || (e = K.default) == null || (e = e.call(K)) == null ? void 0 : e.filter((e) => e && !n.includes(e.type.toString()))[0];
|
|
137
|
+
return (r == null || (t = r.type) == null ? void 0 : t.toString()) === "Symbol(v-txt)" ? f("span", {}, r) : r;
|
|
138
|
+
}), J = T(async () => await E(d.icon)), Y = C("tooltipRef"), X = (e) => {
|
|
142
139
|
var t;
|
|
143
140
|
j("cancel", e), (t = Y.value) == null || t.delayHide();
|
|
144
141
|
}, Z = (e) => {
|
|
145
142
|
var t;
|
|
146
143
|
j("confirm", e), (t = Y.value) == null || t.delayHide();
|
|
147
144
|
};
|
|
148
|
-
return
|
|
145
|
+
return p({
|
|
149
146
|
tooltipRef: Y,
|
|
150
147
|
cancel: X,
|
|
151
148
|
confirm: Z
|
|
152
149
|
}), (e, t) => {
|
|
153
|
-
let n =
|
|
154
|
-
return
|
|
150
|
+
let n = _("re-button"), i = _("re-tooltip");
|
|
151
|
+
return h(), a(i, {
|
|
155
152
|
ref_key: "tooltipRef",
|
|
156
153
|
ref: Y,
|
|
157
154
|
visible: W.value,
|
|
158
155
|
"onUpdate:visible": t[0] || (t[0] = (e) => W.value = e),
|
|
159
|
-
width:
|
|
160
|
-
height:
|
|
161
|
-
"max-width":
|
|
162
|
-
"max-height":
|
|
156
|
+
width: d.width,
|
|
157
|
+
height: d.height,
|
|
158
|
+
"max-width": d.maxWidth,
|
|
159
|
+
"max-height": d.maxHeight,
|
|
163
160
|
"floating-class": G.value,
|
|
164
|
-
"floating-style":
|
|
165
|
-
disabled:
|
|
166
|
-
theme:
|
|
167
|
-
placement:
|
|
168
|
-
trigger:
|
|
169
|
-
"reverse-theme":
|
|
170
|
-
"show-delay":
|
|
171
|
-
"hide-delay":
|
|
172
|
-
transition:
|
|
173
|
-
"css-duration":
|
|
174
|
-
"css-transition":
|
|
175
|
-
"show-arrow":
|
|
176
|
-
offset:
|
|
177
|
-
teleported:
|
|
178
|
-
"append-to":
|
|
179
|
-
persistent:
|
|
180
|
-
boundary:
|
|
181
|
-
"element-context":
|
|
182
|
-
"alt-boundary":
|
|
183
|
-
"root-boundary":
|
|
184
|
-
"arrow-size":
|
|
185
|
-
"arrow-offset":
|
|
186
|
-
"flip-offset":
|
|
187
|
-
"arrow-options":
|
|
188
|
-
"flip-options":
|
|
189
|
-
"inline-options":
|
|
190
|
-
"is-external":
|
|
191
|
-
"external-ref":
|
|
192
|
-
"is-virtual":
|
|
193
|
-
"virtual-ref":
|
|
194
|
-
onBeforeShow:
|
|
195
|
-
onShow:
|
|
196
|
-
onBeforeHide:
|
|
197
|
-
onHide:
|
|
198
|
-
onBeforeEnter:
|
|
199
|
-
onEnter:
|
|
200
|
-
onAfterEnter:
|
|
201
|
-
onBeforeLeave:
|
|
202
|
-
onLeave:
|
|
203
|
-
onAfterLeave:
|
|
204
|
-
onEnterCancelled:
|
|
205
|
-
onLeaveCancelled:
|
|
161
|
+
"floating-style": d.floatingStyle,
|
|
162
|
+
disabled: d.disabled,
|
|
163
|
+
theme: d.theme,
|
|
164
|
+
placement: d.placement,
|
|
165
|
+
trigger: d.trigger,
|
|
166
|
+
"reverse-theme": d.reverseTheme,
|
|
167
|
+
"show-delay": d.showDelay,
|
|
168
|
+
"hide-delay": d.hideDelay,
|
|
169
|
+
transition: d.transition,
|
|
170
|
+
"css-duration": d.cssDuration,
|
|
171
|
+
"css-transition": d.cssTransition,
|
|
172
|
+
"show-arrow": d.showArrow,
|
|
173
|
+
offset: d.offset,
|
|
174
|
+
teleported: d.teleported,
|
|
175
|
+
"append-to": d.appendTo,
|
|
176
|
+
persistent: d.persistent,
|
|
177
|
+
boundary: d.boundary,
|
|
178
|
+
"element-context": d.elementContext,
|
|
179
|
+
"alt-boundary": d.altBoundary,
|
|
180
|
+
"root-boundary": d.rootBoundary,
|
|
181
|
+
"arrow-size": d.arrowSize,
|
|
182
|
+
"arrow-offset": d.arrowOffset,
|
|
183
|
+
"flip-offset": d.flipOffset,
|
|
184
|
+
"arrow-options": d.arrowOptions,
|
|
185
|
+
"flip-options": d.flipOptions,
|
|
186
|
+
"inline-options": d.inlineOptions,
|
|
187
|
+
"is-external": d.isExternal,
|
|
188
|
+
"external-ref": d.externalRef,
|
|
189
|
+
"is-virtual": d.isVirtual,
|
|
190
|
+
"virtual-ref": d.virtualRef,
|
|
191
|
+
onBeforeShow: b(M),
|
|
192
|
+
onShow: b(P),
|
|
193
|
+
onBeforeHide: b(N),
|
|
194
|
+
onHide: b(F),
|
|
195
|
+
onBeforeEnter: b(I),
|
|
196
|
+
onEnter: b(L),
|
|
197
|
+
onAfterEnter: b(R),
|
|
198
|
+
onBeforeLeave: b(z),
|
|
199
|
+
onLeave: b(B),
|
|
200
|
+
onAfterLeave: b(V),
|
|
201
|
+
onEnterCancelled: b(H),
|
|
202
|
+
onLeaveCancelled: b(U)
|
|
206
203
|
}, {
|
|
207
|
-
content:
|
|
208
|
-
|
|
209
|
-
icon:
|
|
210
|
-
title:
|
|
211
|
-
}, () => [
|
|
204
|
+
content: w(() => [
|
|
205
|
+
g(e.$slots, "header", {
|
|
206
|
+
icon: b(J),
|
|
207
|
+
title: d.title
|
|
208
|
+
}, () => [c("div", { class: m([b(A)("header")]) }, [g(e.$slots, "icon", { icon: b(J) }, () => [d.showIcon ? (h(), s(r, { key: 0 }, [typeof b(J) == "string" ? (h(), s("i", {
|
|
212
209
|
key: 0,
|
|
213
|
-
class:
|
|
210
|
+
class: m([b(A)("icon"), b(J)]),
|
|
214
211
|
"aria-hidden": "true"
|
|
215
|
-
}, null, 2)) : (
|
|
212
|
+
}, null, 2)) : (h(), a(v(b(J)), {
|
|
216
213
|
key: 1,
|
|
217
|
-
class:
|
|
214
|
+
class: m([b(A)("icon")]),
|
|
218
215
|
"aria-hidden": "true"
|
|
219
|
-
}, null, 8, ["class"]))], 64)) :
|
|
220
|
-
|
|
216
|
+
}, null, 8, ["class"]))], 64)) : o("", !0)]), g(e.$slots, "title", { title: d.title }, () => [c("div", { class: m([b(A)("title")]) }, y(d.title), 3)])], 2)]),
|
|
217
|
+
g(e.$slots, "content", { content: d.content }, () => [d.isHtml ? (h(), s("div", {
|
|
221
218
|
key: 0,
|
|
222
|
-
class:
|
|
223
|
-
innerHTML:
|
|
224
|
-
}, null, 10, D)) : (
|
|
219
|
+
class: m([b(A)("content")]),
|
|
220
|
+
innerHTML: d.content
|
|
221
|
+
}, null, 10, D)) : (h(), s("div", {
|
|
225
222
|
key: 1,
|
|
226
|
-
class:
|
|
227
|
-
},
|
|
228
|
-
|
|
223
|
+
class: m([b(A)("content")])
|
|
224
|
+
}, y(d.content), 3))]),
|
|
225
|
+
g(e.$slots, "footer", {
|
|
229
226
|
cancel: X,
|
|
230
|
-
cancelSize:
|
|
231
|
-
cancelType:
|
|
232
|
-
cancelText:
|
|
227
|
+
cancelSize: d.cancelSize,
|
|
228
|
+
cancelType: d.cancelType,
|
|
229
|
+
cancelText: d.cancelText,
|
|
233
230
|
confirm: Z,
|
|
234
|
-
confirmSize:
|
|
235
|
-
confirmType:
|
|
236
|
-
confirmText:
|
|
237
|
-
}, () => [
|
|
238
|
-
|
|
231
|
+
confirmSize: d.confirmSize,
|
|
232
|
+
confirmType: d.confirmType,
|
|
233
|
+
confirmText: d.confirmText
|
|
234
|
+
}, () => [c("div", { class: m([b(A)("footer")]) }, [
|
|
235
|
+
g(e.$slots, "cancel", {
|
|
239
236
|
cancel: X,
|
|
240
|
-
cancelSize:
|
|
241
|
-
cancelType:
|
|
242
|
-
cancelText:
|
|
243
|
-
}, () => [
|
|
244
|
-
size:
|
|
245
|
-
type:
|
|
237
|
+
cancelSize: d.cancelSize,
|
|
238
|
+
cancelType: d.cancelType,
|
|
239
|
+
cancelText: d.cancelText
|
|
240
|
+
}, () => [u(n, {
|
|
241
|
+
size: d.cancelSize,
|
|
242
|
+
type: d.cancelType,
|
|
246
243
|
onClick: X
|
|
247
244
|
}, {
|
|
248
|
-
default:
|
|
245
|
+
default: w(() => [l(y(d.cancelText), 1)]),
|
|
249
246
|
_: 1
|
|
250
247
|
}, 8, ["size", "type"])]),
|
|
251
|
-
|
|
248
|
+
g(e.$slots, "extra", {
|
|
252
249
|
cancel: X,
|
|
253
250
|
confirm: Z
|
|
254
251
|
}),
|
|
255
|
-
|
|
252
|
+
g(e.$slots, "confirm", {
|
|
256
253
|
confirm: Z,
|
|
257
|
-
confirmSize:
|
|
258
|
-
confirmType:
|
|
259
|
-
confirmText:
|
|
260
|
-
}, () => [
|
|
261
|
-
size:
|
|
262
|
-
type:
|
|
254
|
+
confirmSize: d.confirmSize,
|
|
255
|
+
confirmType: d.confirmType,
|
|
256
|
+
confirmText: d.confirmText
|
|
257
|
+
}, () => [u(n, {
|
|
258
|
+
size: d.confirmSize,
|
|
259
|
+
type: d.confirmType,
|
|
263
260
|
onClick: Z
|
|
264
261
|
}, {
|
|
265
|
-
default:
|
|
262
|
+
default: w(() => [l(y(d.confirmText), 1)]),
|
|
266
263
|
_: 1
|
|
267
264
|
}, 8, ["size", "type"])])
|
|
268
265
|
], 2)])
|
|
269
266
|
]),
|
|
270
|
-
default:
|
|
267
|
+
default: w(() => [(h(), a(v(q.value)))]),
|
|
271
268
|
_: 3
|
|
272
269
|
}, 8, "visible.width.height.max-width.max-height.floating-class.floating-style.disabled.theme.placement.trigger.reverse-theme.show-delay.hide-delay.transition.css-duration.css-transition.show-arrow.offset.teleported.append-to.persistent.boundary.element-context.alt-boundary.root-boundary.arrow-size.arrow-offset.flip-offset.arrow-options.flip-options.inline-options.is-external.external-ref.is-virtual.virtual-ref.onBeforeShow.onShow.onBeforeHide.onHide.onBeforeEnter.onEnter.onAfterEnter.onBeforeLeave.onLeave.onAfterLeave.onEnterCancelled.onLeaveCancelled".split("."));
|
|
273
270
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
-
import { TooltipProps, FloatingEmits } from '
|
|
3
|
-
import { buttonTypes, buttonSizes } from '
|
|
2
|
+
import { TooltipProps, FloatingEmits } from '../../tooltip';
|
|
3
|
+
import { buttonTypes, buttonSizes } from '../../button';
|
|
4
4
|
export interface PopconfirmProps extends TooltipProps {
|
|
5
5
|
icon?: string | Component;
|
|
6
6
|
showIcon?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import '../../../../theme-chalk/base.css'
|
|
2
|
+
import '../../../../theme-chalk/re-popconfirm.css'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import '../../../../theme-chalk/src/base.scss'
|
|
2
|
+
import '../../../../theme-chalk/src/popconfirm.scss'
|
|
@@ -17,7 +17,7 @@ export declare const RePopover: {
|
|
|
17
17
|
onLeave?: ((el: HTMLElement, done: () => void) => any) | undefined;
|
|
18
18
|
onLeaveCancelled?: ((el: HTMLElement) => any) | undefined;
|
|
19
19
|
onAfterLeave?: ((el: HTMLElement) => any) | undefined;
|
|
20
|
-
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
20
|
+
"onUpdate:visible"?: ((value: boolean | undefined) => any) | undefined;
|
|
21
21
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
22
22
|
beforeShow: (el: HTMLElement) => any;
|
|
23
23
|
show: (el: HTMLElement) => any;
|
|
@@ -31,7 +31,7 @@ export declare const RePopover: {
|
|
|
31
31
|
leave: (el: HTMLElement, done: () => void) => any;
|
|
32
32
|
leaveCancelled: (el: HTMLElement) => any;
|
|
33
33
|
afterLeave: (el: HTMLElement) => any;
|
|
34
|
-
"update:visible": (value: boolean) => any;
|
|
34
|
+
"update:visible": (value: boolean | undefined) => any;
|
|
35
35
|
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
36
36
|
P: {};
|
|
37
37
|
B: {};
|
|
@@ -54,7 +54,7 @@ export declare const RePopover: {
|
|
|
54
54
|
onLeave?: ((el: HTMLElement, done: () => void) => any) | undefined;
|
|
55
55
|
onLeaveCancelled?: ((el: HTMLElement) => any) | undefined;
|
|
56
56
|
onAfterLeave?: ((el: HTMLElement) => any) | undefined;
|
|
57
|
-
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
57
|
+
"onUpdate:visible"?: ((value: boolean | undefined) => any) | undefined;
|
|
58
58
|
}>, {}, {}, {}, {}, {}>;
|
|
59
59
|
__isFragment?: never;
|
|
60
60
|
__isTeleport?: never;
|
|
@@ -74,7 +74,7 @@ export declare const RePopover: {
|
|
|
74
74
|
onLeave?: ((el: HTMLElement, done: () => void) => any) | undefined;
|
|
75
75
|
onLeaveCancelled?: ((el: HTMLElement) => any) | undefined;
|
|
76
76
|
onAfterLeave?: ((el: HTMLElement) => any) | undefined;
|
|
77
|
-
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
77
|
+
"onUpdate:visible"?: ((value: boolean | undefined) => any) | undefined;
|
|
78
78
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
79
79
|
beforeShow: (el: HTMLElement) => any;
|
|
80
80
|
show: (el: HTMLElement) => any;
|
|
@@ -88,7 +88,7 @@ export declare const RePopover: {
|
|
|
88
88
|
leave: (el: HTMLElement, done: () => void) => any;
|
|
89
89
|
leaveCancelled: (el: HTMLElement) => any;
|
|
90
90
|
afterLeave: (el: HTMLElement) => any;
|
|
91
|
-
"update:visible": (value: boolean) => any;
|
|
91
|
+
"update:visible": (value: boolean | undefined) => any;
|
|
92
92
|
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
93
93
|
$slots: {
|
|
94
94
|
title?: (props: {}) => any;
|
|
@@ -24,7 +24,7 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
|
|
|
24
24
|
leave: (el: HTMLElement, done: () => void) => any;
|
|
25
25
|
leaveCancelled: (el: HTMLElement) => any;
|
|
26
26
|
afterLeave: (el: HTMLElement) => any;
|
|
27
|
-
"update:visible": (value: boolean) => any;
|
|
27
|
+
"update:visible": (value: boolean | undefined) => any;
|
|
28
28
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
29
|
onBeforeShow?: ((el: HTMLElement) => any) | undefined;
|
|
30
30
|
onShow?: ((el: HTMLElement) => any) | undefined;
|
|
@@ -38,7 +38,7 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
|
|
|
38
38
|
onLeave?: ((el: HTMLElement, done: () => void) => any) | undefined;
|
|
39
39
|
onLeaveCancelled?: ((el: HTMLElement) => any) | undefined;
|
|
40
40
|
onAfterLeave?: ((el: HTMLElement) => any) | undefined;
|
|
41
|
-
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
41
|
+
"onUpdate:visible"?: ((value: boolean | undefined) => any) | undefined;
|
|
42
42
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
43
43
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import '../../../../theme-chalk/base.css'
|
|
2
|
+
import '../../../../theme-chalk/re-popover.css'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import '../../../../theme-chalk/src/base.scss'
|
|
2
|
+
import '../../../../theme-chalk/src/popover.scss'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import '../../../../theme-chalk/base.css'
|
|
2
|
+
import '../../../../theme-chalk/re-svg-icon.css'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import '../../../../theme-chalk/src/base.scss'
|
|
2
|
+
import '../../../../theme-chalk/src/svg-icon.scss'
|
|
@@ -3,7 +3,7 @@ import "../../../utils/index.mjs";
|
|
|
3
3
|
import { useNamespace as t } from "../../../composables/use-namespace/index.mjs";
|
|
4
4
|
import "../../../composables/index.mjs";
|
|
5
5
|
import { autoUpdate as n, flip as r, inline as i, offset as a } from "../../../node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs";
|
|
6
|
-
import { arrow as o, useFloating as s } from "../../../node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.
|
|
6
|
+
import { arrow as o, useFloating as s } from "../../../node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.42_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs";
|
|
7
7
|
import { useEmits as ee } from "./use-emit.mjs";
|
|
8
8
|
import c from "./content.mjs";
|
|
9
9
|
import { useTooltip as l } from "./use-tooltip.mjs";
|
|
@@ -105,7 +105,7 @@ var j = ["innerHTML"], M = _({
|
|
|
105
105
|
}, {
|
|
106
106
|
visible: {
|
|
107
107
|
type: Boolean,
|
|
108
|
-
default:
|
|
108
|
+
default: !1
|
|
109
109
|
},
|
|
110
110
|
visibleModifiers: {}
|
|
111
111
|
}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ShallowRef, ComputedRef, Ref, StyleValue } from 'vue';
|
|
2
2
|
import { Placement, OffsetOptions, ArrowOptions, ShiftOptions, FlipOptions, InlineOptions, HideOptions, Boundary, RootBoundary, ElementContext, VirtualElement } from '@floating-ui/vue';
|
|
3
|
-
import { Theme, MaybeClass } from '
|
|
3
|
+
import { Theme, MaybeClass } from '../../../types';
|
|
4
4
|
export interface TooltipProps {
|
|
5
5
|
visible?: boolean;
|
|
6
6
|
content?: string;
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { onClickOutside as
|
|
3
|
-
import { effectScope as i, unref as a, watch as o } from "vue";
|
|
1
|
+
import { effectScope as e, unref as t, watch as n } from "vue";
|
|
2
|
+
import { onClickOutside as r, useDebounceFn as i, useElementHover as a, useEventListener as o } from "@vueuse/core";
|
|
4
3
|
//#region packages/components/tooltip/src/use-tooltip.ts
|
|
5
4
|
function s({ triggerRef: s, isExternal: c, externalActiveRef: l, externalRef: u, trigger: d, floatingRef: f, open: p, showDelay: m = 0, hideDelay: h = 0, disabled: g }) {
|
|
6
|
-
let _ = [], v =
|
|
5
|
+
let _ = [], v = i(() => {
|
|
7
6
|
p.value = !0;
|
|
8
|
-
}, c ? 0 : m), y =
|
|
7
|
+
}, c ? 0 : m), y = i((e) => {
|
|
9
8
|
p.value = !1, typeof e == "function" && e();
|
|
10
9
|
}, c ? 0 : h), b = () => {
|
|
11
10
|
if (s.value) switch (d) {
|
|
12
11
|
case "click": {
|
|
13
|
-
let e =
|
|
12
|
+
let e = o(s, "click", v), t = a(f, {
|
|
14
13
|
delayEnter: 0,
|
|
15
14
|
delayLeave: 0,
|
|
16
15
|
triggerOnRemoval: !0
|
|
17
|
-
}),
|
|
18
|
-
!
|
|
16
|
+
}), n = r(s, () => {
|
|
17
|
+
!t.value && y();
|
|
19
18
|
});
|
|
20
|
-
_.push(e,
|
|
19
|
+
_.push(e, n);
|
|
21
20
|
break;
|
|
22
21
|
}
|
|
23
22
|
case "hover": {
|
|
@@ -25,32 +24,32 @@ function s({ triggerRef: s, isExternal: c, externalActiveRef: l, externalRef: u,
|
|
|
25
24
|
delayEnter: m,
|
|
26
25
|
delayLeave: h,
|
|
27
26
|
triggerOnRemoval: !0
|
|
28
|
-
}, t =
|
|
27
|
+
}, t = a(s, e), r = a(f, e);
|
|
29
28
|
c && p.value && (t.value = !0);
|
|
30
|
-
let { stop: i } =
|
|
29
|
+
let { stop: i } = n(() => [t.value, r.value], ([e, t]) => {
|
|
31
30
|
p.value = e || t;
|
|
32
31
|
});
|
|
33
32
|
_.push(i);
|
|
34
33
|
break;
|
|
35
34
|
}
|
|
36
35
|
case "focus": {
|
|
37
|
-
let e =
|
|
36
|
+
let e = o(s, "focus", v), t = a(f, {
|
|
38
37
|
delayEnter: 0,
|
|
39
38
|
delayLeave: 0,
|
|
40
39
|
triggerOnRemoval: !0
|
|
41
|
-
}),
|
|
42
|
-
_.push(e,
|
|
40
|
+
}), n = o(s, "blur", () => !t.value && y()), i = r(s, () => !t.value && y());
|
|
41
|
+
_.push(e, n, i);
|
|
43
42
|
break;
|
|
44
43
|
}
|
|
45
44
|
case "contextmenu": {
|
|
46
|
-
let e =
|
|
45
|
+
let e = o(s, "contextmenu", (e) => {
|
|
47
46
|
e.preventDefault(), v();
|
|
48
|
-
}),
|
|
47
|
+
}), t = a(f, {
|
|
49
48
|
delayEnter: 0,
|
|
50
49
|
delayLeave: 0,
|
|
51
50
|
triggerOnRemoval: !0
|
|
52
|
-
}),
|
|
53
|
-
_.push(e,
|
|
51
|
+
}), n = r(s, () => !t.value && y());
|
|
52
|
+
_.push(e, n);
|
|
54
53
|
break;
|
|
55
54
|
}
|
|
56
55
|
}
|
|
@@ -59,7 +58,7 @@ function s({ triggerRef: s, isExternal: c, externalActiveRef: l, externalRef: u,
|
|
|
59
58
|
}, S = () => {
|
|
60
59
|
p.value = !1, x();
|
|
61
60
|
};
|
|
62
|
-
return c &&
|
|
61
|
+
return c && n(() => u == null ? void 0 : u.value, (e) => {
|
|
63
62
|
if (!(["click", "contextmenu"].includes(d) && l.value === e)) {
|
|
64
63
|
if (!l.value || !p.value) {
|
|
65
64
|
l.value = e, v();
|
|
@@ -73,22 +72,22 @@ function s({ triggerRef: s, isExternal: c, externalActiveRef: l, externalRef: u,
|
|
|
73
72
|
start: b,
|
|
74
73
|
stop: S,
|
|
75
74
|
setup: () => {
|
|
76
|
-
let
|
|
77
|
-
return
|
|
75
|
+
let r = e();
|
|
76
|
+
return r.run(() => {
|
|
78
77
|
if (p.value) {
|
|
79
78
|
x();
|
|
80
79
|
return;
|
|
81
80
|
}
|
|
82
|
-
if (
|
|
81
|
+
if (t(g)) {
|
|
83
82
|
S();
|
|
84
83
|
return;
|
|
85
84
|
}
|
|
86
|
-
b(),
|
|
85
|
+
b(), n(() => t(g), (e) => {
|
|
87
86
|
e ? S() : b();
|
|
88
|
-
}),
|
|
87
|
+
}), n(s, (e) => {
|
|
89
88
|
e && (x(), b());
|
|
90
89
|
});
|
|
91
|
-
}), { scope:
|
|
90
|
+
}), { scope: r };
|
|
92
91
|
},
|
|
93
92
|
delayHide: y,
|
|
94
93
|
delayShow: v
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import '../../../../theme-chalk/base.css'
|
|
2
|
+
import '../../../../theme-chalk/re-tooltip.css'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import '../../../../theme-chalk/src/base.scss'
|
|
2
|
+
import '../../../../theme-chalk/src/tooltip.scss'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WritableComputedRef, ComputedRef } from 'vue';
|
|
2
|
-
import { Theme } from '
|
|
2
|
+
import { Theme } from '../../types';
|
|
3
3
|
export declare function useTheme(theme?: Theme, reverseTheme?: boolean): {
|
|
4
4
|
isDark: WritableComputedRef<boolean>;
|
|
5
5
|
currentTheme: ComputedRef<Theme>;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useDark as t } from "../../node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
|
|
3
|
-
import { useNamespace as n } from "../use-namespace/index.mjs";
|
|
1
|
+
import { useNamespace as e } from "../use-namespace/index.mjs";
|
|
4
2
|
import "../index.mjs";
|
|
5
|
-
import { computed as
|
|
3
|
+
import { computed as t } from "vue";
|
|
4
|
+
import { useDark as n, useToggle as r } from "@vueuse/core";
|
|
6
5
|
//#region packages/composables/use-theme/index.ts
|
|
7
|
-
var { libName: i } =
|
|
6
|
+
var { libName: i } = e(""), a = n({
|
|
8
7
|
storageKey: `${i}-color-scheme`,
|
|
9
8
|
selector: "html",
|
|
10
9
|
attribute: "class",
|
|
11
10
|
valueDark: "dark",
|
|
12
11
|
valueLight: "light"
|
|
13
12
|
});
|
|
14
|
-
function o(
|
|
15
|
-
let i =
|
|
13
|
+
function o(e = "light", n = !1) {
|
|
14
|
+
let i = r(a);
|
|
16
15
|
return {
|
|
17
16
|
isDark: a,
|
|
18
|
-
currentTheme:
|
|
17
|
+
currentTheme: t(() => n ? e === "dark" ? "light" : "dark" : e),
|
|
19
18
|
toggle: i
|
|
20
19
|
};
|
|
21
20
|
}
|