@vinicunca/taman-ui 0.1.4 → 0.2.1
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/dist/components/file-upload/taman-file-upload.mjs +1 -1
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/icon/index.mjs +1 -1
- package/dist/components/icon/{icon.mjs → taman-icon.mjs} +2 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/form/components/form-actions.mjs +4 -3
- package/dist/form/form-render/form-render-form-label.mjs +4 -4
- package/dist/form/form-render/form-render-form.mjs +1 -2
- package/dist/form/form-render/form-render-group.mjs +3 -3
- package/dist/form/form.runtime-field.mjs +2 -2
- package/dist/form/taman-use-form.mjs +6 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/menu/components/normal-menu/normal-menu.mjs +1 -1
- package/dist/menu/components/taman-menu-item.mjs +1 -1
- package/dist/menu/components/taman-menu-root.mjs +5 -4
- package/dist/menu/components/taman-menu-sub-menu-content.mjs +1 -1
- package/dist/popup/alert/alert-overlay.mjs +5 -2
- package/dist/popup/alert/alert2.mjs +53 -59
- package/dist/popup/dialog/dialog.mjs +17 -17
- package/dist/popup/drawer/drawer.mjs +18 -18
- package/dist/popup/drawer/drawer.vue.d.ts +1 -1
- package/dist/tabs/components/taman-tabs.mjs +1 -1
- package/package.json +1 -1
- /package/dist/components/icon/{icon.vue.d.ts → taman-icon.vue.d.ts} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import _default from "./icon.vue.js";
|
|
1
|
+
import _default from "./taman-icon.vue.js";
|
|
2
2
|
export { _default as TamanIcon };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as TamanIcon } from "./icon.mjs";
|
|
1
|
+
export { default as TamanIcon } from "./taman-icon.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed, createBlock, createElementBlock, defineComponent, mergeProps, openBlock } from "vue";
|
|
2
2
|
import { isHttpUrl, isString } from "@vinicunca/taman-core/utils";
|
|
3
3
|
import PIcon from "pohon-ui/components/Icon.vue";
|
|
4
|
-
// src/components/icon/icon.vue
|
|
4
|
+
// src/components/icon/taman-icon.vue
|
|
5
5
|
const _hoisted_1 = ["src"];
|
|
6
6
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
7
|
name: "TamanIcon",
|
|
8
|
-
__name: "icon",
|
|
8
|
+
__name: "taman-icon",
|
|
9
9
|
props: { icon: {} },
|
|
10
10
|
setup(__props) {
|
|
11
11
|
const props = __props;
|
|
@@ -13,7 +13,7 @@ import { TamanFileUploadProps } from "./file-upload/taman-file-upload.types.js";
|
|
|
13
13
|
import _default$6 from "./file-upload/taman-file-upload.vue.js";
|
|
14
14
|
import "./file-upload/index.js";
|
|
15
15
|
import _default$7 from "./full-screen/full-screen.vue.js";
|
|
16
|
-
import _default$8 from "./icon/icon.vue.js";
|
|
16
|
+
import _default$8 from "./icon/taman-icon.vue.js";
|
|
17
17
|
import "./icon/index.js";
|
|
18
18
|
import { PASSWORD_STRENGTH_CHECKS, PASSWORD_STRENGTH_MAX, isPasswordStrong, passwordStrengthScore } from "./input/password-strength.js";
|
|
19
19
|
import { TamanInputCurrencyProps } from "./input/taman-input-currency.types.js";
|
|
@@ -14,7 +14,7 @@ import _sfc_main$6 from "./file-upload/taman-file-upload.mjs";
|
|
|
14
14
|
import "./full-screen/index.mjs";
|
|
15
15
|
import _sfc_main$7 from "./full-screen/full-screen.mjs";
|
|
16
16
|
import "./icon/index.mjs";
|
|
17
|
-
import _sfc_main$8 from "./icon/icon.mjs";
|
|
17
|
+
import _sfc_main$8 from "./icon/taman-icon.mjs";
|
|
18
18
|
import "./input/index.mjs";
|
|
19
19
|
import { PASSWORD_STRENGTH_CHECKS, PASSWORD_STRENGTH_MAX, isPasswordStrong, passwordStrengthScore } from "./input/password-strength.mjs";
|
|
20
20
|
import _sfc_main$9 from "./input/taman-input-currency.mjs";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import _sfc_main$1 from "../../components/icon/taman-icon.mjs";
|
|
2
|
+
import "../../components/index.mjs";
|
|
1
3
|
import { injectFormProps } from "../form.use-form-context.mjs";
|
|
2
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, openBlock, renderSlot, toDisplayString, toRaw, unref, useModel, watch, withCtx } from "vue";
|
|
3
5
|
import PButton from "pohon-ui/components/Button.vue";
|
|
4
6
|
import { isFunction, triggerWindowResize } from "@vinicunca/taman-core/utils";
|
|
5
7
|
import { useSimpleLocale } from "@vinicunca/taman-core/composables";
|
|
6
|
-
import PIcon from "pohon-ui/components/Icon.vue";
|
|
7
8
|
// src/form/components/form-actions.vue
|
|
8
9
|
const _hoisted_1 = ["aria-controls", "aria-expanded"];
|
|
9
10
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -137,8 +138,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
137
138
|
"aria-controls": props.gridId,
|
|
138
139
|
"aria-expanded": !collapsed.value,
|
|
139
140
|
onClick: _cache[0] || (_cache[0] = ($event) => collapsed.value = !collapsed.value)
|
|
140
|
-
}, [createElementVNode("span", null, toDisplayString(collapsed.value ? unref($t)("expand") : unref($t)("collapse")), 1), createVNode(
|
|
141
|
-
|
|
141
|
+
}, [createElementVNode("span", null, toDisplayString(collapsed.value ? unref($t)("expand") : unref($t)("collapse")), 1), createVNode(unref(_sfc_main$1), {
|
|
142
|
+
icon: "lucide:chevron-down",
|
|
142
143
|
class: normalizeClass(["transition-transform", { "rotate-180": !collapsed.value }])
|
|
143
144
|
}, null, 8, ["class"])], 8, _hoisted_1)) : createCommentVNode("v-if", true),
|
|
144
145
|
createCommentVNode(" After expand button "),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _sfc_main$1 from "../../components/render-content/render-content.mjs";
|
|
2
|
-
import _sfc_main$2 from "../../
|
|
2
|
+
import _sfc_main$2 from "../../components/icon/taman-icon.mjs";
|
|
3
|
+
import _sfc_main$3 from "../../ui/form/form-label.mjs";
|
|
3
4
|
import "../../index.mjs";
|
|
4
5
|
import { createBlock, createCommentVNode, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
6
|
import PTooltip from "pohon-ui/components/Tooltip.vue";
|
|
6
7
|
import { useForwardExpose } from "@vinicunca/taman-core/composables";
|
|
7
|
-
import PIcon from "pohon-ui/components/Icon.vue";
|
|
8
8
|
// src/form/form-render/form-render-form-label.vue
|
|
9
9
|
const REQUIRED_CLASS = `after:content-['*'] after:color-error after:ml-0.5 after:order-1`;
|
|
10
10
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -25,7 +25,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
25
25
|
const props = __props;
|
|
26
26
|
const { forwardRef } = useForwardExpose();
|
|
27
27
|
return (_ctx, _cache) => {
|
|
28
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
28
|
+
return openBlock(), createBlock(unref(_sfc_main$3), {
|
|
29
29
|
ref: unref(forwardRef),
|
|
30
30
|
class: normalizeClass(["flex items-center", [props.class, props.required ? REQUIRED_CLASS : ""]])
|
|
31
31
|
}, {
|
|
@@ -34,7 +34,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
34
34
|
class: "order-2"
|
|
35
35
|
}, {
|
|
36
36
|
content: withCtx(() => [createVNode(unref(_sfc_main$1), { content: __props.help }, null, 8, ["content"])]),
|
|
37
|
-
default: withCtx(() => [createVNode(
|
|
37
|
+
default: withCtx(() => [createVNode(unref(_sfc_main$2), { icon: "lucide:circle-question-mark" })]),
|
|
38
38
|
_: 1
|
|
39
39
|
})) : createCommentVNode("v-if", true)]),
|
|
40
40
|
_: 3
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _sfc_main$1 from "../../components/render-content/render-content.mjs";
|
|
2
|
+
import _sfc_main$2 from "../../components/icon/taman-icon.mjs";
|
|
2
3
|
import "../../index.mjs";
|
|
3
4
|
import { injectRenderFormProps } from "./form-render.context.mjs";
|
|
4
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderSlot, resolveDynamicComponent, unref, vShow, watch, withCtx, withDirectives } from "vue";
|
|
5
|
-
import PIcon from "pohon-ui/components/Icon.vue";
|
|
6
6
|
import PCollapsible from "pohon-ui/components/Collapsible.vue";
|
|
7
7
|
// src/form/form-render/form-render-group.vue
|
|
8
8
|
const _hoisted_1 = { class: "form-group-header mb-2 flex flex-1 gap-2 min-h-7 items-center" };
|
|
@@ -61,9 +61,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
61
61
|
default: withCtx(() => [
|
|
62
62
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "rounded-full bg-primary flex-none h-3.5 w-[3px]" }, null, -1)),
|
|
63
63
|
props.schema.title ? (openBlock(), createElementBlock("span", _hoisted_2, [createVNode(unref(_sfc_main$1), { content: props.schema.title }, null, 8, ["content"])])) : createCommentVNode("v-if", true),
|
|
64
|
-
shouldCollapsible.value ? (openBlock(), createBlock(
|
|
64
|
+
shouldCollapsible.value ? (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
65
65
|
key: 1,
|
|
66
|
-
|
|
66
|
+
icon: "lucide:chevron-down",
|
|
67
67
|
class: normalizeClass(["color-text-muted flex-none transition-transform", [{ "rotate-180": collapseOpen.value }]])
|
|
68
68
|
}, null, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
69
69
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, h, markRaw, onUnmounted } from "vue";
|
|
1
|
+
import { defineComponent, h, markRaw, onUnmounted, toRaw } from "vue";
|
|
2
2
|
// src/form/form.runtime-field.ts
|
|
3
3
|
function isAsyncStandardSchemaValidator(validator) {
|
|
4
4
|
return Boolean(validator && typeof validator === "object" && "~standard" in validator);
|
|
@@ -25,7 +25,7 @@ function createRuntimeFieldComponent(fieldComponent, registerInvalidator, onVali
|
|
|
25
25
|
if (validators === cachedValidators && cachedWrappedValidators) return cachedWrappedValidators;
|
|
26
26
|
const wrappedValidators = { ...validators };
|
|
27
27
|
for (const key of asyncValidatorKeys) {
|
|
28
|
-
const validator = validators[key];
|
|
28
|
+
const validator = toRaw(validators[key]);
|
|
29
29
|
if (typeof validator !== "function" && !isAsyncStandardSchemaValidator(validator)) continue;
|
|
30
30
|
wrappedValidators[key] = async (...args) => {
|
|
31
31
|
const currentValidationRunId = ++validationRunId;
|
|
@@ -4,9 +4,9 @@ import { getFormFieldSchemas } from "./form-render/form-render.schema.mjs";
|
|
|
4
4
|
import { DEFAULT_FORM_COMMON_CONFIG, getFormComponentMap } from "./form.config.mjs";
|
|
5
5
|
import _sfc_main$2 from "./form-render/form-render-form.mjs";
|
|
6
6
|
import { provideComponentRefMap, provideFormProps, useFormInitial } from "./form.use-form-context.mjs";
|
|
7
|
-
import { createBlock, createCommentVNode, createSlots, defineComponent, mergeProps, nextTick, onMounted, openBlock, readonly, renderList, renderSlot, unref, watch, withCtx, withKeys } from "vue";
|
|
7
|
+
import { computed, createBlock, createCommentVNode, createSlots, defineComponent, mergeProps, nextTick, onMounted, openBlock, readonly, renderList, renderSlot, unref, watch, withCtx, withKeys } from "vue";
|
|
8
8
|
import { useDebounceFn } from "@vueuse/core";
|
|
9
|
-
import { get, isDeepEqual } from "@vinicunca/taman-core/utils";
|
|
9
|
+
import { get, isDeepEqual, pick } from "@vinicunca/taman-core/utils";
|
|
10
10
|
import { useForwardPriorityValues } from "@vinicunca/taman-core/composables";
|
|
11
11
|
// src/form/taman-use-form.vue
|
|
12
12
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -49,6 +49,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
49
49
|
if (!formApi) throw new Error("Form api is required in <TamanUseForm />");
|
|
50
50
|
const state = formApi.useStore();
|
|
51
51
|
const forward = useForwardPriorityValues(props, state);
|
|
52
|
+
const renderPropKeys = Object.keys(_sfc_main$2.props ?? {});
|
|
53
|
+
const renderProps = computed(() => pick(forward.value, renderPropKeys));
|
|
52
54
|
const formComponentMap = getFormComponentMap();
|
|
53
55
|
const componentRefMap = /* @__PURE__ */ new Map();
|
|
54
56
|
const { delegatedSlots, form } = useFormInitial(forward);
|
|
@@ -68,7 +70,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
68
70
|
}
|
|
69
71
|
const handleValuesChangeDebounced = useDebounceFn(async () => {
|
|
70
72
|
state?.value.submitOnChange && forward.value.formApi?.validateAndSubmit();
|
|
71
|
-
}, state?.value?.changeDebouncedTime ??
|
|
73
|
+
}, state?.value?.changeDebouncedTime ?? 0);
|
|
72
74
|
let valuesChangeReady = false;
|
|
73
75
|
onMounted(async () => {
|
|
74
76
|
await nextTick();
|
|
@@ -89,7 +91,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
89
91
|
if (submitOnChange) handleValuesChangeDebounced();
|
|
90
92
|
});
|
|
91
93
|
return (_ctx, _cache) => {
|
|
92
|
-
return openBlock(), createBlock(unref(_sfc_main$2), mergeProps(
|
|
94
|
+
return openBlock(), createBlock(unref(_sfc_main$2), mergeProps(renderProps.value, {
|
|
93
95
|
collapsed: unref(state)?.collapsed,
|
|
94
96
|
"component-map": unref(formComponentMap),
|
|
95
97
|
form: unref(form),
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import _default$38 from "./components/descriptions/taman-description.vue.js";
|
|
|
9
9
|
import { TamanFileUploadProps } from "./components/file-upload/taman-file-upload.types.js";
|
|
10
10
|
import _default$40 from "./components/file-upload/taman-file-upload.vue.js";
|
|
11
11
|
import _default$41 from "./components/full-screen/full-screen.vue.js";
|
|
12
|
-
import _default$42 from "./components/icon/icon.vue.js";
|
|
12
|
+
import _default$42 from "./components/icon/taman-icon.vue.js";
|
|
13
13
|
import { PASSWORD_STRENGTH_CHECKS, PASSWORD_STRENGTH_MAX, isPasswordStrong, passwordStrengthScore } from "./components/input/password-strength.js";
|
|
14
14
|
import { TamanInputCurrencyProps } from "./components/input/taman-input-currency.types.js";
|
|
15
15
|
import _default$43 from "./components/input/taman-input-currency.vue.js";
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import taman_description_item_default from "./components/descriptions/taman-desc
|
|
|
7
7
|
import _sfc_main$32 from "./components/descriptions/taman-description.mjs";
|
|
8
8
|
import _sfc_main$33 from "./components/file-upload/taman-file-upload.mjs";
|
|
9
9
|
import _sfc_main$34 from "./components/full-screen/full-screen.mjs";
|
|
10
|
-
import _sfc_main$35 from "./components/icon/icon.mjs";
|
|
10
|
+
import _sfc_main$35 from "./components/icon/taman-icon.mjs";
|
|
11
11
|
import { PASSWORD_STRENGTH_CHECKS, PASSWORD_STRENGTH_MAX, isPasswordStrong, passwordStrengthScore } from "./components/input/password-strength.mjs";
|
|
12
12
|
import _sfc_main$36 from "./components/input/taman-input-currency.mjs";
|
|
13
13
|
import _sfc_main$38 from "./components/input/taman-input-password.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _sfc_main$1 from "../../../components/icon/icon.mjs";
|
|
1
|
+
import _sfc_main$1 from "../../../components/icon/taman-icon.mjs";
|
|
2
2
|
import "../../../index.mjs";
|
|
3
3
|
import { Fragment, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString, unref } from "vue";
|
|
4
4
|
// src/menu/components/normal-menu/normal-menu.vue
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import _sfc_main$1 from "../../components/icon/taman-icon.mjs";
|
|
2
|
+
import "../../components/index.mjs";
|
|
1
3
|
import "../composables/index.mjs";
|
|
2
4
|
import { useMenuScroll } from "../composables/use-menu-scroll.mjs";
|
|
3
5
|
import { useMenuStyle } from "../composables/use-menu.mjs";
|
|
4
6
|
import { createMenuContext, createSubMenuContext } from "../composables/use-menu-context.mjs";
|
|
5
7
|
import { TAMAN_MENU_ROOT_NAME } from "../menu.constants.mjs";
|
|
6
8
|
import { flattedChildren } from "../menu.utils.mjs";
|
|
7
|
-
import _sfc_main$
|
|
9
|
+
import _sfc_main$2 from "./taman-menu-sub-menu.mjs";
|
|
8
10
|
import { Fragment, computed, createBlock, createElementBlock, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, toRef, unref, useSlots, watch, watchEffect, withCtx } from "vue";
|
|
9
11
|
import { useResizeObserver } from "@vueuse/core";
|
|
10
|
-
import PIcon from "pohon-ui/components/Icon.vue";
|
|
11
12
|
// src/menu/components/taman-menu-root.vue
|
|
12
13
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
13
14
|
name: TAMAN_MENU_ROOT_NAME,
|
|
@@ -233,11 +234,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
233
234
|
role: "menu"
|
|
234
235
|
}, [__props.mode === "horizontal" && getSlot.value.showSlotMore ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [(openBlock(true), createElementBlock(Fragment, null, renderList(getSlot.value.slotDefault, (item, index) => {
|
|
235
236
|
return openBlock(), createBlock(resolveDynamicComponent(item), { key: index });
|
|
236
|
-
}), 128)), createVNode(_sfc_main$
|
|
237
|
+
}), 128)), createVNode(_sfc_main$2, {
|
|
237
238
|
"is-sub-menu-more": "",
|
|
238
239
|
path: "sub-menu-more"
|
|
239
240
|
}, {
|
|
240
|
-
title: withCtx(() => [createVNode(
|
|
241
|
+
title: withCtx(() => [createVNode(unref(_sfc_main$1), { icon: "lucide:ellipsis" })]),
|
|
241
242
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(getSlot.value.slotMore, (item, index) => {
|
|
242
243
|
return openBlock(), createBlock(resolveDynamicComponent(item), { key: index });
|
|
243
244
|
}), 128))]),
|
|
@@ -5,11 +5,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
5
5
|
inheritAttrs: false,
|
|
6
6
|
__name: "alert-overlay",
|
|
7
7
|
props: /*@__PURE__*/ mergeModels({
|
|
8
|
-
beforeClose: {
|
|
8
|
+
beforeClose: {},
|
|
9
9
|
bordered: { type: Boolean },
|
|
10
10
|
buttonAlign: {},
|
|
11
11
|
cancelText: {},
|
|
12
|
-
centered: {
|
|
12
|
+
centered: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: void 0
|
|
15
|
+
},
|
|
13
16
|
confirmText: {},
|
|
14
17
|
containerClass: {},
|
|
15
18
|
content: {},
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import _sfc_main$1 from "../../components/render-content/render-content.mjs";
|
|
2
2
|
import _sfc_main$2 from "../../components/button/taman-button-icon.mjs";
|
|
3
|
-
import _sfc_main$3 from "../../components/
|
|
4
|
-
import _sfc_main$4 from "../../
|
|
5
|
-
import _sfc_main$5 from "../../ui/alert-dialog/alert-dialog-
|
|
6
|
-
import _sfc_main$6 from "../../ui/alert-dialog/alert-dialog-
|
|
7
|
-
import _sfc_main$7 from "../../ui/alert-dialog/alert-dialog-
|
|
8
|
-
import _sfc_main$8 from "../../ui/alert-dialog/alert-dialog-
|
|
9
|
-
import _sfc_main$9 from "../../ui/alert-dialog/alert-dialog-
|
|
3
|
+
import _sfc_main$3 from "../../components/icon/taman-icon.mjs";
|
|
4
|
+
import _sfc_main$4 from "../../components/loading/taman-loading.mjs";
|
|
5
|
+
import _sfc_main$5 from "../../ui/alert-dialog/alert-dialog-action.mjs";
|
|
6
|
+
import _sfc_main$6 from "../../ui/alert-dialog/alert-dialog-cancel.mjs";
|
|
7
|
+
import _sfc_main$7 from "../../ui/alert-dialog/alert-dialog-content.mjs";
|
|
8
|
+
import _sfc_main$8 from "../../ui/alert-dialog/alert-dialog-description.mjs";
|
|
9
|
+
import _sfc_main$9 from "../../ui/alert-dialog/alert-dialog-root.mjs";
|
|
10
|
+
import _sfc_main$10 from "../../ui/alert-dialog/alert-dialog-title.mjs";
|
|
10
11
|
import "../../index.mjs";
|
|
11
12
|
import { provideAlertContext } from "./alert.mjs";
|
|
12
|
-
import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent,
|
|
13
|
+
import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, nextTick, normalizeClass, openBlock, ref, toDisplayString, unref, useModel, withCtx } from "vue";
|
|
13
14
|
import PButton from "pohon-ui/components/Button.vue";
|
|
14
15
|
import { isString } from "@vinicunca/taman-core/utils";
|
|
15
16
|
import { useOverlayZIndex, useSimpleLocale } from "@vinicunca/taman-core/composables";
|
|
16
|
-
import PIcon from "pohon-ui/components/Icon.vue";
|
|
17
17
|
import { usePreferences } from "@vinicunca/taman-core/preferences";
|
|
18
18
|
// src/popup/alert/alert.vue
|
|
19
|
-
const _hoisted_1 = { class: "flex items-center" };
|
|
19
|
+
const _hoisted_1 = { class: "flex gap-2 items-center" };
|
|
20
20
|
const _hoisted_2 = { class: "flex-auto" };
|
|
21
|
-
const _hoisted_3 = { class: "m-4 min-h-7.5" };
|
|
22
21
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
23
22
|
__name: "alert",
|
|
24
23
|
props: /*@__PURE__*/ mergeModels({
|
|
@@ -75,44 +74,34 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
75
74
|
isConfirm.value = false;
|
|
76
75
|
if (!props.escapeKeyClose && !globalEscapeShortcutKey.value) event.preventDefault();
|
|
77
76
|
}
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
if (props.icon) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
});
|
|
105
|
-
break;
|
|
106
|
-
case "warning":
|
|
107
|
-
iconRender = h(PIcon, {
|
|
108
|
-
name: "lucide:alert-circle",
|
|
109
|
-
class: "color-warning"
|
|
110
|
-
});
|
|
111
|
-
break;
|
|
112
|
-
default: iconRender = null;
|
|
77
|
+
const iconData = computed(() => {
|
|
78
|
+
if (!props.icon) return;
|
|
79
|
+
if (!isString(props.icon)) return {
|
|
80
|
+
name: props.icon,
|
|
81
|
+
class: ""
|
|
82
|
+
};
|
|
83
|
+
return {
|
|
84
|
+
error: {
|
|
85
|
+
name: "lucide:x-circle",
|
|
86
|
+
class: "color-error"
|
|
87
|
+
},
|
|
88
|
+
info: {
|
|
89
|
+
name: "lucide:info",
|
|
90
|
+
class: "color-info"
|
|
91
|
+
},
|
|
92
|
+
question: {
|
|
93
|
+
name: "lucide:help-circle",
|
|
94
|
+
class: "color-info"
|
|
95
|
+
},
|
|
96
|
+
success: {
|
|
97
|
+
name: "lucide:check-circle",
|
|
98
|
+
class: "color-success"
|
|
99
|
+
},
|
|
100
|
+
warning: {
|
|
101
|
+
name: "lucide:alert-circle",
|
|
102
|
+
class: "color-warning"
|
|
113
103
|
}
|
|
114
|
-
}
|
|
115
|
-
return iconRender;
|
|
104
|
+
}[props.icon];
|
|
116
105
|
});
|
|
117
106
|
function doCancel() {
|
|
118
107
|
handleCancel();
|
|
@@ -146,11 +135,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
146
135
|
} else open.value = val;
|
|
147
136
|
}
|
|
148
137
|
return (_ctx, _cache) => {
|
|
149
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
138
|
+
return openBlock(), createBlock(unref(_sfc_main$9), {
|
|
150
139
|
open: open.value,
|
|
151
140
|
"onUpdate:open": handleOpenChange
|
|
152
141
|
}, {
|
|
153
|
-
default: withCtx(() => [createVNode(unref(_sfc_main$
|
|
142
|
+
default: withCtx(() => [createVNode(unref(_sfc_main$7), {
|
|
154
143
|
open: open.value,
|
|
155
144
|
centered: __props.centered,
|
|
156
145
|
"overlay-blur": __props.overlayBlur,
|
|
@@ -164,12 +153,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
164
153
|
onEscapeKeyDown: _cache[1] || (_cache[1] = ($event) => onEscapeKeyDown($event))
|
|
165
154
|
}, {
|
|
166
155
|
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["p-3 flex-1 relative overflow-y-auto", __props.contentClass]) }, [
|
|
167
|
-
__props.title ? (openBlock(), createBlock(unref(_sfc_main$
|
|
156
|
+
__props.title ? (openBlock(), createBlock(unref(_sfc_main$10), { key: 0 }, {
|
|
168
157
|
default: withCtx(() => [createElementVNode("div", _hoisted_1, [
|
|
169
|
-
(openBlock(), createBlock(
|
|
170
|
-
createElementVNode("span", _hoisted_2, toDisplayString(unref($t)(__props.title)), 1),
|
|
171
|
-
__props.showCancel ? (openBlock(), createBlock(unref(_sfc_main$5), {
|
|
158
|
+
props.icon ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
172
159
|
key: 0,
|
|
160
|
+
icon: iconData.value?.name,
|
|
161
|
+
class: normalizeClass(iconData.value?.class),
|
|
162
|
+
size: "24"
|
|
163
|
+
}, null, 8, ["icon", "class"])) : createCommentVNode("v-if", true),
|
|
164
|
+
createElementVNode("span", _hoisted_2, toDisplayString(unref($t)(__props.title)), 1),
|
|
165
|
+
__props.showCancel ? (openBlock(), createBlock(unref(_sfc_main$6), {
|
|
166
|
+
key: 1,
|
|
173
167
|
"as-child": ""
|
|
174
168
|
}, {
|
|
175
169
|
default: withCtx(() => [createVNode(unref(_sfc_main$2), {
|
|
@@ -182,11 +176,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
182
176
|
])]),
|
|
183
177
|
_: 1
|
|
184
178
|
})) : createCommentVNode("v-if", true),
|
|
185
|
-
createVNode(unref(_sfc_main$
|
|
186
|
-
default: withCtx(() => [createElementVNode("div",
|
|
179
|
+
createVNode(unref(_sfc_main$8), null, {
|
|
180
|
+
default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["py-4", { "px-8": props.icon }]) }, [createVNode(unref(_sfc_main$1), {
|
|
187
181
|
content: __props.content,
|
|
188
182
|
"render-br": ""
|
|
189
|
-
}, null, 8, ["content"])]), loading.value && __props.contentMasking ? (openBlock(), createBlock(unref(_sfc_main$
|
|
183
|
+
}, null, 8, ["content"])], 2), loading.value && __props.contentMasking ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
190
184
|
key: 0,
|
|
191
185
|
spinning: loading.value
|
|
192
186
|
}, null, 8, ["spinning"])) : createCommentVNode("v-if", true)]),
|
|
@@ -194,7 +188,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
194
188
|
}),
|
|
195
189
|
createElementVNode("div", { class: normalizeClass(["flex gap-x-2 items-center justify-end", `justify-${__props.buttonAlign}`]) }, [
|
|
196
190
|
createVNode(unref(_sfc_main$1), { content: __props.footer }, null, 8, ["content"]),
|
|
197
|
-
__props.showCancel ? (openBlock(), createBlock(unref(_sfc_main$
|
|
191
|
+
__props.showCancel ? (openBlock(), createBlock(unref(_sfc_main$6), {
|
|
198
192
|
key: 0,
|
|
199
193
|
"as-child": ""
|
|
200
194
|
}, {
|
|
@@ -209,7 +203,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
209
203
|
}, 8, ["disabled"])]),
|
|
210
204
|
_: 1
|
|
211
205
|
})) : createCommentVNode("v-if", true),
|
|
212
|
-
createVNode(unref(_sfc_main$
|
|
206
|
+
createVNode(unref(_sfc_main$5), { "as-child": "" }, {
|
|
213
207
|
default: withCtx(() => [createVNode(PButton, {
|
|
214
208
|
loading: loading.value,
|
|
215
209
|
onClick: handleConfirm
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import _sfc_main$1 from "../../components/button/taman-button-icon.mjs";
|
|
2
|
-
import _sfc_main$2 from "../../components/
|
|
3
|
-
import _sfc_main$3 from "../../
|
|
4
|
-
import _sfc_main$4 from "../../ui/dialog/dialog-
|
|
5
|
-
import _sfc_main$5 from "../../ui/dialog/dialog-
|
|
2
|
+
import _sfc_main$2 from "../../components/icon/taman-icon.mjs";
|
|
3
|
+
import _sfc_main$3 from "../../components/loading/taman-loading.mjs";
|
|
4
|
+
import _sfc_main$4 from "../../ui/dialog/dialog-close.mjs";
|
|
5
|
+
import _sfc_main$5 from "../../ui/dialog/dialog-content.mjs";
|
|
6
|
+
import _sfc_main$6 from "../../ui/dialog/dialog-description.mjs";
|
|
6
7
|
import dialog_footer_default from "../../ui/dialog/dialog-footer.mjs";
|
|
7
8
|
import dialog_header_default from "../../ui/dialog/dialog-header.mjs";
|
|
8
|
-
import _sfc_main$
|
|
9
|
-
import _sfc_main$
|
|
9
|
+
import _sfc_main$7 from "../../ui/dialog/dialog-root.mjs";
|
|
10
|
+
import _sfc_main$8 from "../../ui/dialog/dialog-title.mjs";
|
|
10
11
|
import { VisuallyHidden } from "../../index.mjs";
|
|
11
12
|
import { useDialogDraggable } from "./use-dialog-draggable.mjs";
|
|
12
13
|
import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, onActivated, onDeactivated, openBlock, provide, ref, renderSlot, toDisplayString, unref, useId, watch, withCtx } from "vue";
|
|
13
14
|
import PButton from "pohon-ui/components/Button.vue";
|
|
14
15
|
import PTooltip from "pohon-ui/components/Tooltip.vue";
|
|
15
16
|
import { useOverlayZIndex, usePriorityValues, useSimpleLocale } from "@vinicunca/taman-core/composables";
|
|
16
|
-
import PIcon from "pohon-ui/components/Icon.vue";
|
|
17
17
|
import { DISMISSABLE_DIALOG_ID, ELEMENT_ID_MAIN_CONTENT } from "@vinicunca/taman-core/constants";
|
|
18
18
|
// src/popup/dialog/dialog.vue
|
|
19
19
|
const _hoisted_1 = { class: "flex flex-col gap-1" };
|
|
@@ -190,13 +190,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
190
190
|
props.dialogApi?.onClosed();
|
|
191
191
|
}
|
|
192
192
|
return (_ctx, _cache) => {
|
|
193
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
193
|
+
return openBlock(), createBlock(unref(_sfc_main$7), {
|
|
194
194
|
modal: false,
|
|
195
195
|
open: isVisible.value,
|
|
196
196
|
"unmount-on-hide": !isDeactivated.value || !firstOpened.value,
|
|
197
197
|
"onUpdate:open": _cache[2] || (_cache[2] = () => !unref(submitting) ? __props.dialogApi?.close() : void 0)
|
|
198
198
|
}, {
|
|
199
|
-
default: withCtx(() => [createVNode(unref(_sfc_main$
|
|
199
|
+
default: withCtx(() => [createVNode(unref(_sfc_main$5), {
|
|
200
200
|
ref_key: "contentRef",
|
|
201
201
|
ref: contentRef,
|
|
202
202
|
"append-to": getAppendTo.value,
|
|
@@ -239,7 +239,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
239
239
|
}, unref(headerClass)]])
|
|
240
240
|
}, {
|
|
241
241
|
default: withCtx(() => [
|
|
242
|
-
createElementVNode("div", _hoisted_1, [unref(title) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
242
|
+
createElementVNode("div", _hoisted_1, [unref(title) ? (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
243
243
|
key: 0,
|
|
244
244
|
class: "text-left flex gap-1 items-center"
|
|
245
245
|
}, {
|
|
@@ -247,14 +247,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
247
247
|
key: 0,
|
|
248
248
|
text: unref(titleTooltip)
|
|
249
249
|
}, {
|
|
250
|
-
default: withCtx(() => [createVNode(
|
|
251
|
-
|
|
250
|
+
default: withCtx(() => [createVNode(unref(_sfc_main$2), {
|
|
251
|
+
icon: "lucide:circle-help",
|
|
252
252
|
class: "color-text-muted"
|
|
253
253
|
})]),
|
|
254
254
|
_: 1
|
|
255
255
|
}, 8, ["text"])) : createCommentVNode("v-if", true)])])]),
|
|
256
256
|
_: 3
|
|
257
|
-
})) : createCommentVNode("v-if", true), unref(description) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
257
|
+
})) : createCommentVNode("v-if", true), unref(description) ? (openBlock(), createBlock(unref(_sfc_main$6), { key: 1 }, {
|
|
258
258
|
default: withCtx(() => [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(unref(description)), 1)])]),
|
|
259
259
|
_: 3
|
|
260
260
|
})) : createCommentVNode("v-if", true)]),
|
|
@@ -268,7 +268,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
268
268
|
variant: "ghost",
|
|
269
269
|
onClick: handleFullscreen
|
|
270
270
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
271
|
-
unref(closable) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
271
|
+
unref(closable) ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
272
272
|
key: 1,
|
|
273
273
|
"as-child": "",
|
|
274
274
|
onClick: handleClosed
|
|
@@ -282,14 +282,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
282
282
|
})) : createCommentVNode("v-if", true)
|
|
283
283
|
]),
|
|
284
284
|
!unref(title) || !unref(description) ? (openBlock(), createBlock(unref(VisuallyHidden), { key: 0 }, {
|
|
285
|
-
default: withCtx(() => [!unref(title) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
285
|
+
default: withCtx(() => [!unref(title) ? (openBlock(), createBlock(unref(_sfc_main$8), { key: 0 })) : createCommentVNode("v-if", true), !unref(description) ? (openBlock(), createBlock(unref(_sfc_main$6), { key: 1 })) : createCommentVNode("v-if", true)]),
|
|
286
286
|
_: 1
|
|
287
287
|
})) : createCommentVNode("v-if", true)
|
|
288
288
|
]),
|
|
289
289
|
_: 3
|
|
290
290
|
}, 8, ["class"]),
|
|
291
|
-
createElementVNode("div", { class: normalizeClass(["
|
|
292
|
-
unref(showLoading) || unref(submitting) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
291
|
+
createElementVNode("div", { class: normalizeClass(["px-4 py-3 flex-1 relative overflow-y-auto", [unref(contentClass), { "pointer-events-none": unref(showLoading) || unref(submitting) }]]) }, [renderSlot(_ctx.$slots, "default")], 2),
|
|
292
|
+
unref(showLoading) || unref(submitting) ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
293
293
|
key: 0,
|
|
294
294
|
spinning: ""
|
|
295
295
|
})) : createCommentVNode("v-if", true),
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import _sfc_main$1 from "../../components/button/taman-button-icon.mjs";
|
|
2
|
-
import _sfc_main$2 from "../../components/
|
|
3
|
-
import _sfc_main$3 from "../../
|
|
4
|
-
import _sfc_main$4 from "../../ui/sheet/sheet-
|
|
5
|
-
import _sfc_main$5 from "../../ui/sheet/sheet-
|
|
2
|
+
import _sfc_main$2 from "../../components/icon/taman-icon.mjs";
|
|
3
|
+
import _sfc_main$3 from "../../components/loading/taman-loading.mjs";
|
|
4
|
+
import _sfc_main$4 from "../../ui/sheet/sheet-close.mjs";
|
|
5
|
+
import _sfc_main$5 from "../../ui/sheet/sheet-content.mjs";
|
|
6
|
+
import _sfc_main$6 from "../../ui/sheet/sheet-description.mjs";
|
|
6
7
|
import sheet_footer_default from "../../ui/sheet/sheet-footer.mjs";
|
|
7
8
|
import sheet_header_default from "../../ui/sheet/sheet-header.mjs";
|
|
8
|
-
import _sfc_main$
|
|
9
|
-
import _sfc_main$
|
|
9
|
+
import _sfc_main$7 from "../../ui/sheet/sheet-root.mjs";
|
|
10
|
+
import _sfc_main$8 from "../../ui/sheet/sheet-title.mjs";
|
|
10
11
|
import { VisuallyHidden } from "../../index.mjs";
|
|
11
12
|
import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, onActivated, onDeactivated, openBlock, provide, ref, renderSlot, toDisplayString, unref, useId, watch, withCtx } from "vue";
|
|
12
13
|
import PButton from "pohon-ui/components/Button.vue";
|
|
13
14
|
import PSeparator from "pohon-ui/components/Separator.vue";
|
|
14
15
|
import PTooltip from "pohon-ui/components/Tooltip.vue";
|
|
15
16
|
import { useBreakpoints, useOverlayZIndex, usePriorityValues, useSimpleLocale } from "@vinicunca/taman-core/composables";
|
|
16
|
-
import PIcon from "pohon-ui/components/Icon.vue";
|
|
17
17
|
import { DISMISSABLE_DRAWER_ID, ELEMENT_ID_MAIN_CONTENT } from "@vinicunca/taman-core/constants";
|
|
18
18
|
// src/popup/drawer/drawer.vue
|
|
19
19
|
const _hoisted_1 = { class: "flex items-center" };
|
|
@@ -144,13 +144,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
return (_ctx, _cache) => {
|
|
147
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
147
|
+
return openBlock(), createBlock(unref(_sfc_main$7), {
|
|
148
148
|
modal: false,
|
|
149
149
|
open: isVisible.value,
|
|
150
150
|
"unmount-on-hide": !isDeactivated.value || !hasOpened.value,
|
|
151
151
|
"onUpdate:open": _cache[2] || (_cache[2] = () => __props.drawerApi?.close())
|
|
152
152
|
}, {
|
|
153
|
-
default: withCtx(() => [createVNode(unref(_sfc_main$
|
|
153
|
+
default: withCtx(() => [createVNode(unref(_sfc_main$5), {
|
|
154
154
|
"append-to": getAppendTo.value,
|
|
155
155
|
class: normalizeClass(["flex flex-col w-130", [{
|
|
156
156
|
"pohon:w-full": unref(isMobile) || unref(placement) === "bottom" || unref(placement) === "top",
|
|
@@ -180,7 +180,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
180
180
|
}, {
|
|
181
181
|
default: withCtx(() => [
|
|
182
182
|
createElementVNode("div", _hoisted_1, [
|
|
183
|
-
unref(closable) && unref(closeIconPlacement) === "left" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
183
|
+
unref(closable) && unref(closeIconPlacement) === "left" ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
184
184
|
key: 0,
|
|
185
185
|
"as-child": "",
|
|
186
186
|
disabled: unref(submitting)
|
|
@@ -194,7 +194,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
194
194
|
decorative: "",
|
|
195
195
|
orientation: "vertical"
|
|
196
196
|
})) : createCommentVNode("v-if", true),
|
|
197
|
-
createElementVNode("div", _hoisted_2, [unref(title) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
197
|
+
createElementVNode("div", _hoisted_2, [unref(title) ? (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
198
198
|
key: 0,
|
|
199
199
|
class: "text-left inline-flex gap-1"
|
|
200
200
|
}, {
|
|
@@ -202,14 +202,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
202
202
|
key: 0,
|
|
203
203
|
text: unref(titleTooltip)
|
|
204
204
|
}, {
|
|
205
|
-
default: withCtx(() => [createVNode(
|
|
206
|
-
|
|
205
|
+
default: withCtx(() => [createVNode(unref(_sfc_main$2), {
|
|
206
|
+
icon: "lucide:circle-help",
|
|
207
207
|
class: "color-text-muted"
|
|
208
208
|
})]),
|
|
209
209
|
_: 1
|
|
210
210
|
}, 8, ["text"])) : createCommentVNode("v-if", true)])]),
|
|
211
211
|
_: 3
|
|
212
|
-
})) : createCommentVNode("v-if", true), unref(description) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
212
|
+
})) : createCommentVNode("v-if", true), unref(description) ? (openBlock(), createBlock(unref(_sfc_main$6), {
|
|
213
213
|
key: 1,
|
|
214
214
|
class: "text-xs"
|
|
215
215
|
}, {
|
|
@@ -217,7 +217,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
217
217
|
_: 3
|
|
218
218
|
})) : createCommentVNode("v-if", true)])
|
|
219
219
|
]),
|
|
220
|
-
createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "extra"), unref(closable) && unref(closeIconPlacement) === "right" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
220
|
+
createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "extra"), unref(closable) && unref(closeIconPlacement) === "right" ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
221
221
|
key: 0,
|
|
222
222
|
"as-child": "",
|
|
223
223
|
disabled: unref(submitting)
|
|
@@ -226,17 +226,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
226
226
|
_: 3
|
|
227
227
|
}, 8, ["disabled"])) : createCommentVNode("v-if", true)]),
|
|
228
228
|
!unref(title) || !unref(description) ? (openBlock(), createBlock(unref(VisuallyHidden), { key: 0 }, {
|
|
229
|
-
default: withCtx(() => [!unref(title) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
229
|
+
default: withCtx(() => [!unref(title) ? (openBlock(), createBlock(unref(_sfc_main$8), { key: 0 })) : createCommentVNode("v-if", true), !unref(description) ? (openBlock(), createBlock(unref(_sfc_main$6), { key: 1 })) : createCommentVNode("v-if", true)]),
|
|
230
230
|
_: 1
|
|
231
231
|
})) : createCommentVNode("v-if", true)
|
|
232
232
|
]),
|
|
233
233
|
_: 3
|
|
234
234
|
}, 8, ["class"])) : (openBlock(), createBlock(unref(VisuallyHidden), { key: 1 }, {
|
|
235
|
-
default: withCtx(() => [createVNode(unref(_sfc_main$
|
|
235
|
+
default: withCtx(() => [createVNode(unref(_sfc_main$8)), createVNode(unref(_sfc_main$6))]),
|
|
236
236
|
_: 1
|
|
237
237
|
})),
|
|
238
238
|
createElementVNode("div", { class: normalizeClass(["p-3 flex-1 relative overflow-y-auto", [unref(contentClass), { "pointer-events-none": unref(showLoading) || unref(submitting) }]]) }, [renderSlot(_ctx.$slots, "default")], 2),
|
|
239
|
-
unref(showLoading) || unref(submitting) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
239
|
+
unref(showLoading) || unref(submitting) ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
240
240
|
key: 2,
|
|
241
241
|
spinning: ""
|
|
242
242
|
})) : createCommentVNode("v-if", true),
|
|
@@ -32,9 +32,9 @@ declare const __VLS_template: () => {
|
|
|
32
32
|
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
33
33
|
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
34
34
|
appendToMain: boolean;
|
|
35
|
-
closeIconPlacement: CloseIconPlacement;
|
|
36
35
|
destroyOnClose: boolean;
|
|
37
36
|
submitting: boolean;
|
|
37
|
+
closeIconPlacement: CloseIconPlacement;
|
|
38
38
|
drawerApi: ExtendedDrawerApi;
|
|
39
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
40
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _sfc_main$1 from "../../components/icon/icon.mjs";
|
|
1
|
+
import _sfc_main$1 from "../../components/icon/taman-icon.mjs";
|
|
2
2
|
import "../../index.mjs";
|
|
3
3
|
import { Fragment, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, renderList, toDisplayString, unref, useModel, vShow, withCtx, withDirectives, withModifiers } from "vue";
|
|
4
4
|
import PContextMenu from "pohon-ui/components/ContextMenu.vue";
|
package/package.json
CHANGED
|
File without changes
|