@expcat/tigercat-vue 1.2.47 → 1.2.52
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/{chunk-6GPX4ONB.mjs → chunk-35NT2WJR.mjs} +1 -1
- package/dist/{chunk-ICECZVMX.js → chunk-3XCQRM3L.js} +5 -5
- package/dist/{chunk-VKW2O36D.mjs → chunk-5HNDLUUM.mjs} +2 -1
- package/dist/{chunk-UETVHC4K.mjs → chunk-6BFGY5W7.mjs} +2 -2
- package/dist/{chunk-5TJI4HOT.js → chunk-6YI6UAEY.js} +2 -2
- package/dist/{chunk-CKXZONMO.js → chunk-72DDCIVL.js} +9 -1
- package/dist/{chunk-DMNOK6OP.js → chunk-7VHDBN6U.js} +3 -3
- package/dist/{chunk-LFKY2QRD.mjs → chunk-7WQN5BYE.mjs} +5 -2
- package/dist/{chunk-IGSAOYXD.mjs → chunk-BC74Z6IG.mjs} +10 -2
- package/dist/{chunk-G36MH6G4.mjs → chunk-BH4AJQTL.mjs} +1 -1
- package/dist/{chunk-2KDSHEZT.js → chunk-BPAZBRCR.js} +2 -0
- package/dist/{chunk-JKJ7HMFO.mjs → chunk-BWIHL7LK.mjs} +2 -2
- package/dist/{chunk-WQXZ3234.mjs → chunk-DBCSR4WY.mjs} +30 -5
- package/dist/{chunk-V6T5GRLE.js → chunk-EW2IW2JW.js} +5 -5
- package/dist/{chunk-3G4VPV4D.mjs → chunk-G6ULKE6H.mjs} +3 -1
- package/dist/{chunk-SGAUVRUS.js → chunk-H6V26X2R.js} +66 -8
- package/dist/{chunk-4VLNT2ED.js → chunk-HA5QZ76M.js} +2 -0
- package/dist/{chunk-BXS7OSVF.js → chunk-HFRPZA5S.js} +3 -3
- package/dist/{chunk-WH4J6PHF.mjs → chunk-IORFQMZH.mjs} +1 -1
- package/dist/{chunk-FRI62O2J.js → chunk-JJXYM6QR.js} +2 -2
- package/dist/{chunk-I4LQXUMW.js → chunk-JTVFVAM3.js} +9 -1
- package/dist/{chunk-BPRKQVIL.mjs → chunk-K4VUUEFQ.mjs} +2 -2
- package/dist/{chunk-RY2I56HB.js → chunk-K6DYTMBE.js} +30 -5
- package/dist/{chunk-SZFEDBLT.mjs → chunk-LA5YKXPH.mjs} +9 -1
- package/dist/{chunk-QIXG7OIN.mjs → chunk-MJP2SNLK.mjs} +3 -3
- package/dist/{chunk-BIDBJNTL.mjs → chunk-NF5O27AM.mjs} +137 -81
- package/dist/{chunk-B2RH4CMG.js → chunk-NKVEXKM5.js} +5 -2
- package/dist/{chunk-WIQPVVUQ.js → chunk-NYR6OQO4.js} +7 -7
- package/dist/{chunk-PXSV3J2H.js → chunk-O4V7VULF.js} +136 -80
- package/dist/{chunk-OHCC6NNC.mjs → chunk-OU6PJQXN.mjs} +51 -7
- package/dist/{chunk-QJLFHHI2.js → chunk-Q3IZQUW7.js} +9 -1
- package/dist/{chunk-YS6FW775.js → chunk-Q47OK3FR.js} +2 -2
- package/dist/{chunk-7IVLFDZI.js → chunk-R62HQDKS.js} +2 -1
- package/dist/{chunk-27T3QDSF.js → chunk-RBHF7NOQ.js} +3 -1
- package/dist/{chunk-NP6KUJ4X.mjs → chunk-RGAHV6QG.mjs} +32 -13
- package/dist/{chunk-V2IDOR7Y.mjs → chunk-RNQOMMLM.mjs} +1 -1
- package/dist/{chunk-GQPSQJ5I.mjs → chunk-SL5KAVZK.mjs} +10 -2
- package/dist/{chunk-KOTSKHPQ.mjs → chunk-TC6ZPQFT.mjs} +13 -3
- package/dist/{chunk-L6W3XL3A.js → chunk-TZDNF5SK.js} +12 -12
- package/dist/{chunk-XGXGAK27.js → chunk-UG6O4F2A.js} +12 -2
- package/dist/{chunk-LBGTABIU.mjs → chunk-VCBBWDOV.mjs} +3 -1
- package/dist/{chunk-JE7AWY34.js → chunk-W5GVB54A.js} +32 -13
- package/dist/{chunk-VWEH6TGR.mjs → chunk-W6VKVYWZ.mjs} +66 -8
- package/dist/{chunk-ROMVD7LS.mjs → chunk-XP6C3MNM.mjs} +1 -1
- package/dist/{chunk-PO5GVU4Q.mjs → chunk-YZBQ6IR7.mjs} +3 -1
- package/dist/{chunk-6WM7E6C4.js → chunk-ZONC44YH.js} +60 -16
- package/dist/components/ActivityFeed.js +5 -5
- package/dist/components/ActivityFeed.mjs +4 -4
- package/dist/components/Button.js +2 -2
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Card.d.mts +20 -0
- package/dist/components/Card.d.ts +20 -0
- package/dist/components/Card.js +2 -2
- package/dist/components/Card.mjs +1 -1
- package/dist/components/ChatWindow.js +3 -3
- package/dist/components/ChatWindow.mjs +2 -2
- package/dist/components/CommentThread.js +4 -4
- package/dist/components/CommentThread.mjs +3 -3
- package/dist/components/Content.d.mts +18 -0
- package/dist/components/Content.d.ts +18 -0
- package/dist/components/Content.js +2 -2
- package/dist/components/Content.mjs +1 -1
- package/dist/components/CropUpload.js +4 -4
- package/dist/components/CropUpload.mjs +3 -3
- package/dist/components/DataTableWithToolbar.d.mts +25 -3
- package/dist/components/DataTableWithToolbar.d.ts +25 -3
- package/dist/components/DataTableWithToolbar.js +4 -4
- package/dist/components/DataTableWithToolbar.mjs +3 -3
- package/dist/components/Drawer.d.mts +19 -1
- package/dist/components/Drawer.d.ts +19 -1
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Drawer.mjs +1 -1
- package/dist/components/Dropdown.d.mts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Dropdown.mjs +1 -1
- package/dist/components/DropdownItem.js +3 -3
- package/dist/components/DropdownItem.mjs +2 -2
- package/dist/components/DropdownMenu.js +3 -3
- package/dist/components/DropdownMenu.mjs +1 -1
- package/dist/components/Form.d.mts +2 -2
- package/dist/components/Form.d.ts +2 -2
- package/dist/components/Form.js +2 -2
- package/dist/components/Form.mjs +1 -1
- package/dist/components/FormItem.js +3 -3
- package/dist/components/FormItem.mjs +2 -2
- package/dist/components/FormWizard.js +3 -3
- package/dist/components/FormWizard.mjs +2 -2
- package/dist/components/Header.d.mts +19 -0
- package/dist/components/Header.d.ts +19 -0
- package/dist/components/Header.js +2 -2
- package/dist/components/Header.mjs +1 -1
- package/dist/components/Icon.d.mts +19 -1
- package/dist/components/Icon.d.ts +19 -1
- package/dist/components/Icon.js +2 -2
- package/dist/components/Icon.mjs +1 -1
- package/dist/components/Image.d.mts +11 -1
- package/dist/components/Image.d.ts +11 -1
- package/dist/components/Image.js +4 -2
- package/dist/components/Image.mjs +3 -1
- package/dist/components/ImagePreview.d.mts +1 -1
- package/dist/components/ImagePreview.d.ts +1 -1
- package/dist/components/Menu.d.mts +2 -2
- package/dist/components/Menu.d.ts +2 -2
- package/dist/components/Menu.js +2 -2
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/MenuItem.js +3 -3
- package/dist/components/MenuItem.mjs +1 -1
- package/dist/components/MenuItemGroup.js +3 -3
- package/dist/components/MenuItemGroup.mjs +1 -1
- package/dist/components/Modal.js +3 -3
- package/dist/components/Modal.mjs +2 -2
- package/dist/components/NotificationCenter.js +4 -4
- package/dist/components/NotificationCenter.mjs +3 -3
- package/dist/components/Popconfirm.d.mts +1 -1
- package/dist/components/Popconfirm.d.ts +1 -1
- package/dist/components/SubMenu.js +3 -3
- package/dist/components/SubMenu.mjs +1 -1
- package/dist/components/Table.d.mts +31 -1
- package/dist/components/Table.d.ts +31 -1
- package/dist/components/Table.js +2 -2
- package/dist/components/Table.mjs +1 -1
- package/dist/components/Tabs.d.mts +1 -1
- package/dist/components/Tabs.d.ts +1 -1
- package/dist/components/Tag.js +2 -2
- package/dist/components/Tag.mjs +1 -1
- package/dist/components/Timeline.js +2 -2
- package/dist/components/Timeline.mjs +1 -1
- package/dist/components/Tree.d.mts +1 -1
- package/dist/components/Tree.d.ts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -24
- package/dist/index.mjs +23 -23
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7VHDBN6Ujs = require('./chunk-7VHDBN6U.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkWUEP3PFNjs = require('./chunk-WUEP3PFN.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkHA5QZ76Mjs = require('./chunk-HA5QZ76M.js');
|
|
10
10
|
|
|
11
11
|
// src/components/CropUpload.ts
|
|
12
12
|
var _vue = require('vue');
|
|
@@ -171,7 +171,7 @@ var CropUpload = _vue.defineComponent.call(void 0, {
|
|
|
171
171
|
]
|
|
172
172
|
);
|
|
173
173
|
const modal = _vue.h.call(void 0,
|
|
174
|
-
|
|
174
|
+
_chunk7VHDBN6Ujs.Modal,
|
|
175
175
|
{
|
|
176
176
|
open: modalVisible.value,
|
|
177
177
|
size: "lg",
|
|
@@ -191,9 +191,9 @@ var CropUpload = _vue.defineComponent.call(void 0, {
|
|
|
191
191
|
...props.cropperProps
|
|
192
192
|
}) : null,
|
|
193
193
|
footer: ({ cancel: _cancel }) => _vue.h.call(void 0, "div", { class: _tigercatcore.modalFooterClasses }, [
|
|
194
|
-
_vue.h.call(void 0,
|
|
194
|
+
_vue.h.call(void 0, _chunkHA5QZ76Mjs.Button, { variant: "secondary", onClick: handleCancel }, { default: () => "\u53D6\u6D88" }),
|
|
195
195
|
_vue.h.call(void 0,
|
|
196
|
-
|
|
196
|
+
_chunkHA5QZ76Mjs.Button,
|
|
197
197
|
{ onClick: handleConfirm, loading: cropping.value },
|
|
198
198
|
{ default: () => "\u786E\u8BA4\u88C1\u526A" }
|
|
199
199
|
)
|
|
@@ -337,7 +337,8 @@ var Dropdown = defineComponent({
|
|
|
337
337
|
onMouseleave: handleMouseLeave,
|
|
338
338
|
"aria-haspopup": "menu",
|
|
339
339
|
"aria-expanded": currentVisible.value,
|
|
340
|
-
"aria-controls": currentVisible.value ? menuId : void 0
|
|
340
|
+
"aria-controls": currentVisible.value ? menuId : void 0,
|
|
341
|
+
"data-state": currentVisible.value ? "open" : "closed"
|
|
341
342
|
},
|
|
342
343
|
[triggerNode, chevronNode]
|
|
343
344
|
) : null;
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-PZH2RTSS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Button
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YZBQ6IR7.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Loading
|
|
13
13
|
} from "./chunk-XQRKFOXS.mjs";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-NN6AINLG.mjs";
|
|
17
17
|
import {
|
|
18
18
|
Card
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TC6ZPQFT.mjs";
|
|
20
20
|
|
|
21
21
|
// src/components/NotificationCenter.ts
|
|
22
22
|
import { defineComponent, computed, ref, watch, h } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkR62HQDKSjs = require('./chunk-R62HQDKS.js');
|
|
4
4
|
|
|
5
5
|
// src/components/DropdownItem.ts
|
|
6
6
|
var _vue = require('vue');
|
|
@@ -47,7 +47,7 @@ var DropdownItem = _vue.defineComponent.call(void 0, {
|
|
|
47
47
|
const attrsRecord = attrs;
|
|
48
48
|
const attrsClass = attrsRecord.class;
|
|
49
49
|
const attrsStyle = attrsRecord.style;
|
|
50
|
-
const context = _vue.inject.call(void 0,
|
|
50
|
+
const context = _vue.inject.call(void 0, _chunkR62HQDKSjs.DropdownContextKey, null);
|
|
51
51
|
const handleClick = (event) => {
|
|
52
52
|
if (props.disabled) {
|
|
53
53
|
event.preventDefault();
|
|
@@ -17,6 +17,14 @@ var Header = _vue.defineComponent.call(void 0, {
|
|
|
17
17
|
type: String,
|
|
18
18
|
default: void 0
|
|
19
19
|
},
|
|
20
|
+
/**
|
|
21
|
+
* Header visual style.
|
|
22
|
+
* @default 'default'
|
|
23
|
+
*/
|
|
24
|
+
variant: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "default"
|
|
27
|
+
},
|
|
20
28
|
/**
|
|
21
29
|
* Header height (CSS value)
|
|
22
30
|
* @default '64px'
|
|
@@ -36,7 +44,7 @@ var Header = _vue.defineComponent.call(void 0, {
|
|
|
36
44
|
setup(props, { slots, attrs }) {
|
|
37
45
|
const headerClasses = _vue.computed.call(void 0,
|
|
38
46
|
() => _tigercatcore.classNames.call(void 0,
|
|
39
|
-
_tigercatcore.
|
|
47
|
+
_tigercatcore.getLayoutHeaderClasses.call(void 0, props.variant),
|
|
40
48
|
props.className,
|
|
41
49
|
_tigercatcore.coerceClassValue.call(void 0, attrs.class)
|
|
42
50
|
)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunk25EYT2CBjs = require('./chunk-25EYT2CB.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkHA5QZ76Mjs = require('./chunk-HA5QZ76M.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -403,7 +403,7 @@ var Modal = _vue.defineComponent.call(void 0, {
|
|
|
403
403
|
slots.footer({ ok: handleOk, cancel: handleClose })
|
|
404
404
|
) : props.showDefaultFooter ? _vue.h.call(void 0, "div", { class: _tigercatcore.modalFooterClasses, "data-tiger-modal-footer": "" }, [
|
|
405
405
|
_vue.h.call(void 0,
|
|
406
|
-
|
|
406
|
+
_chunkHA5QZ76Mjs.Button,
|
|
407
407
|
{ variant: "secondary", onClick: handleClose },
|
|
408
408
|
{
|
|
409
409
|
default: () => _tigercatcore.resolveLocaleText.call(void 0,
|
|
@@ -416,7 +416,7 @@ var Modal = _vue.defineComponent.call(void 0, {
|
|
|
416
416
|
}
|
|
417
417
|
),
|
|
418
418
|
_vue.h.call(void 0,
|
|
419
|
-
|
|
419
|
+
_chunkHA5QZ76Mjs.Button,
|
|
420
420
|
{ onClick: handleOk },
|
|
421
421
|
{
|
|
422
422
|
default: () => _tigercatcore.resolveLocaleText.call(void 0,
|
|
@@ -65,7 +65,7 @@ var Form = defineComponent({
|
|
|
65
65
|
*/
|
|
66
66
|
labelAlign: {
|
|
67
67
|
type: String,
|
|
68
|
-
default:
|
|
68
|
+
default: void 0
|
|
69
69
|
},
|
|
70
70
|
/**
|
|
71
71
|
* Form size (applies to all form items)
|
|
@@ -371,6 +371,9 @@ var Form = defineComponent({
|
|
|
371
371
|
};
|
|
372
372
|
const canUndoNow = computed(() => props.undoable && canUndo(history.value));
|
|
373
373
|
const canRedoNow = computed(() => props.undoable && canRedo(history.value));
|
|
374
|
+
const resolvedLabelAlign = computed(
|
|
375
|
+
() => props.labelAlign ?? (props.labelPosition === "top" ? "left" : "right")
|
|
376
|
+
);
|
|
374
377
|
const handleSubmit = async (event) => {
|
|
375
378
|
event.preventDefault();
|
|
376
379
|
if (props.loading) return;
|
|
@@ -382,7 +385,7 @@ var Form = defineComponent({
|
|
|
382
385
|
rules: props.rules,
|
|
383
386
|
labelWidth: props.labelWidth,
|
|
384
387
|
labelPosition: props.labelPosition,
|
|
385
|
-
labelAlign:
|
|
388
|
+
labelAlign: resolvedLabelAlign.value,
|
|
386
389
|
size: props.size,
|
|
387
390
|
inlineMessage: props.inlineMessage,
|
|
388
391
|
showRequiredAsterisk: props.showRequiredAsterisk,
|
|
@@ -3,7 +3,7 @@ import { defineComponent, h, computed } from "vue";
|
|
|
3
3
|
import {
|
|
4
4
|
classNames,
|
|
5
5
|
coerceClassValue,
|
|
6
|
-
|
|
6
|
+
getLayoutHeaderClasses,
|
|
7
7
|
mergeStyleValues
|
|
8
8
|
} from "@expcat/tigercat-core";
|
|
9
9
|
var Header = defineComponent({
|
|
@@ -17,6 +17,14 @@ var Header = defineComponent({
|
|
|
17
17
|
type: String,
|
|
18
18
|
default: void 0
|
|
19
19
|
},
|
|
20
|
+
/**
|
|
21
|
+
* Header visual style.
|
|
22
|
+
* @default 'default'
|
|
23
|
+
*/
|
|
24
|
+
variant: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "default"
|
|
27
|
+
},
|
|
20
28
|
/**
|
|
21
29
|
* Header height (CSS value)
|
|
22
30
|
* @default '64px'
|
|
@@ -36,7 +44,7 @@ var Header = defineComponent({
|
|
|
36
44
|
setup(props, { slots, attrs }) {
|
|
37
45
|
const headerClasses = computed(
|
|
38
46
|
() => classNames(
|
|
39
|
-
|
|
47
|
+
getLayoutHeaderClasses(props.variant),
|
|
40
48
|
props.className,
|
|
41
49
|
coerceClassValue(attrs.class)
|
|
42
50
|
)
|
|
@@ -14,6 +14,7 @@ var _vue = require('vue');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
|
|
17
18
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
18
19
|
var CloseIcon = () => _vue.h.call(void 0,
|
|
19
20
|
"svg",
|
|
@@ -109,6 +110,7 @@ var Tag = _vue.defineComponent.call(void 0, {
|
|
|
109
110
|
}
|
|
110
111
|
};
|
|
111
112
|
return () => {
|
|
113
|
+
_tigercatcore.warnUnsupportedColorProp.call(void 0, "Tag", attrs);
|
|
112
114
|
if (!isVisible.value) {
|
|
113
115
|
return null;
|
|
114
116
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Modal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RNQOMMLM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ImageCropper
|
|
6
6
|
} from "./chunk-DEJKRMMU.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Button
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YZBQ6IR7.mjs";
|
|
10
10
|
|
|
11
11
|
// src/components/CropUpload.ts
|
|
12
12
|
import { defineComponent, h, ref, computed } from "vue";
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
iconSvgDefaultStrokeLinejoin,
|
|
10
10
|
iconSvgDefaultStrokeWidth,
|
|
11
11
|
iconWrapperClasses,
|
|
12
|
+
getIconDefinition,
|
|
12
13
|
SVG_DEFAULT_FILL,
|
|
13
14
|
SVG_DEFAULT_STROKE,
|
|
14
15
|
SVG_DEFAULT_VIEWBOX_24,
|
|
@@ -18,6 +19,14 @@ var Icon = defineComponent({
|
|
|
18
19
|
name: "TigerIcon",
|
|
19
20
|
inheritAttrs: false,
|
|
20
21
|
props: {
|
|
22
|
+
/**
|
|
23
|
+
* Built-in icon name. Renders the matching glyph from the built-in icon
|
|
24
|
+
* set when no custom SVG children are provided.
|
|
25
|
+
*/
|
|
26
|
+
name: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: void 0
|
|
29
|
+
},
|
|
21
30
|
/**
|
|
22
31
|
* Icon size
|
|
23
32
|
* @default 'md'
|
|
@@ -42,11 +51,26 @@ var Icon = defineComponent({
|
|
|
42
51
|
const svgClasses = computed(() => classNames(iconSvgBaseClasses, iconSizeClasses[props.size]));
|
|
43
52
|
return () => {
|
|
44
53
|
const defaultSlot = slots.default?.();
|
|
54
|
+
const hasSlotContent = Array.isArray(defaultSlot) && defaultSlot.length > 0;
|
|
45
55
|
const isDecorative = attrs["aria-label"] == null && attrs["aria-labelledby"] == null && attrs.role == null;
|
|
46
|
-
const
|
|
56
|
+
const definition = !hasSlotContent && props.name ? getIconDefinition(props.name) : void 0;
|
|
57
|
+
const builtInSvg = definition ? h(
|
|
58
|
+
"svg",
|
|
59
|
+
{
|
|
60
|
+
class: svgClasses.value,
|
|
61
|
+
xmlns: SVG_DEFAULT_XMLNS,
|
|
62
|
+
viewBox: definition.viewBox,
|
|
63
|
+
fill: definition.mode === "fill" ? "currentColor" : SVG_DEFAULT_FILL,
|
|
64
|
+
stroke: definition.mode === "stroke" ? "currentColor" : SVG_DEFAULT_STROKE,
|
|
65
|
+
"stroke-width": definition.mode === "stroke" ? 1.5 : void 0,
|
|
66
|
+
"stroke-linecap": definition.mode === "stroke" ? iconSvgDefaultStrokeLinecap : void 0,
|
|
67
|
+
"stroke-linejoin": definition.mode === "stroke" ? iconSvgDefaultStrokeLinejoin : void 0
|
|
68
|
+
},
|
|
69
|
+
definition.paths.map((d) => h("path", { d }))
|
|
70
|
+
) : null;
|
|
71
|
+
const normalizeSlotNode = (node) => {
|
|
47
72
|
if (node && typeof node === "object" && node.type === "svg") {
|
|
48
|
-
const
|
|
49
|
-
const svgProps = svgNode.props ?? {};
|
|
73
|
+
const svgProps = node.props ?? {};
|
|
50
74
|
return h(
|
|
51
75
|
"svg",
|
|
52
76
|
{
|
|
@@ -60,11 +84,12 @@ var Icon = defineComponent({
|
|
|
60
84
|
"stroke-linecap": svgProps["stroke-linecap"] ?? iconSvgDefaultStrokeLinecap,
|
|
61
85
|
"stroke-linejoin": svgProps["stroke-linejoin"] ?? iconSvgDefaultStrokeLinejoin
|
|
62
86
|
},
|
|
63
|
-
|
|
87
|
+
node.children === null ? void 0 : node.children
|
|
64
88
|
);
|
|
65
89
|
}
|
|
66
90
|
return node;
|
|
67
|
-
}
|
|
91
|
+
};
|
|
92
|
+
const children = builtInSvg ? [builtInSvg] : (defaultSlot ?? []).map(normalizeSlotNode);
|
|
68
93
|
return h(
|
|
69
94
|
"span",
|
|
70
95
|
{
|
|
@@ -7,7 +7,7 @@ var _chunk44N7LE3Qjs = require('./chunk-44N7LE3Q.js');
|
|
|
7
7
|
var _chunkS6Q7TD6Hjs = require('./chunk-S6Q7TD6H.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkHA5QZ76Mjs = require('./chunk-HA5QZ76M.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk6XI4VDU4js = require('./chunk-6XI4VDU4.js');
|
|
@@ -16,7 +16,7 @@ var _chunk6XI4VDU4js = require('./chunk-6XI4VDU4.js');
|
|
|
16
16
|
var _chunkTGHB5XSTjs = require('./chunk-TGHB5XST.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkUG6O4F2Ajs = require('./chunk-UG6O4F2A.js');
|
|
20
20
|
|
|
21
21
|
// src/components/NotificationCenter.ts
|
|
22
22
|
var _vue = require('vue');
|
|
@@ -352,7 +352,7 @@ var NotificationCenter = _vue.defineComponent.call(void 0, {
|
|
|
352
352
|
) : null
|
|
353
353
|
]),
|
|
354
354
|
_vue.h.call(void 0,
|
|
355
|
-
|
|
355
|
+
_chunkHA5QZ76Mjs.Button,
|
|
356
356
|
{
|
|
357
357
|
size: "sm",
|
|
358
358
|
variant: "ghost",
|
|
@@ -472,7 +472,7 @@ var NotificationCenter = _vue.defineComponent.call(void 0, {
|
|
|
472
472
|
) : null
|
|
473
473
|
]),
|
|
474
474
|
_vue.h.call(void 0,
|
|
475
|
-
|
|
475
|
+
_chunkHA5QZ76Mjs.Button,
|
|
476
476
|
{
|
|
477
477
|
size: "sm",
|
|
478
478
|
variant: "ghost",
|
|
@@ -506,7 +506,7 @@ var NotificationCenter = _vue.defineComponent.call(void 0, {
|
|
|
506
506
|
},
|
|
507
507
|
[
|
|
508
508
|
_vue.h.call(void 0,
|
|
509
|
-
|
|
509
|
+
_chunkUG6O4F2Ajs.Card,
|
|
510
510
|
{
|
|
511
511
|
variant: "bordered",
|
|
512
512
|
className: "w-full rounded-2xl border border-gray-100/80 dark:border-gray-800/80 bg-white/95 dark:bg-gray-950/90 backdrop-blur-md shadow-[0_8px_30px_rgb(0,0,0,0.04)] dark:shadow-[0_8px_30px_rgb(0,0,0,0.2)] transition-all duration-300 overflow-hidden"
|
|
@@ -13,7 +13,8 @@ import {
|
|
|
13
13
|
tagBaseClasses,
|
|
14
14
|
tagSizeClasses,
|
|
15
15
|
tagCloseButtonBaseClasses,
|
|
16
|
-
tagCloseIconPath
|
|
16
|
+
tagCloseIconPath,
|
|
17
|
+
warnUnsupportedColorProp
|
|
17
18
|
} from "@expcat/tigercat-core";
|
|
18
19
|
var CloseIcon = () => h(
|
|
19
20
|
"svg",
|
|
@@ -109,6 +110,7 @@ var Tag = defineComponent({
|
|
|
109
110
|
}
|
|
110
111
|
};
|
|
111
112
|
return () => {
|
|
113
|
+
warnUnsupportedColorProp("Tag", attrs);
|
|
112
114
|
if (!isVisible.value) {
|
|
113
115
|
return null;
|
|
114
116
|
}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var _chunkX6FG4RPFjs = require('./chunk-X6FG4RPF.js');
|
|
4
4
|
|
|
5
|
+
|
|
6
|
+
var _chunkQOMWROWEjs = require('./chunk-QOMWROWE.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkEQW6IUHGjs = require('./chunk-EQW6IUHG.js');
|
|
10
|
+
|
|
5
11
|
// src/components/Image.ts
|
|
6
12
|
|
|
7
13
|
|
|
@@ -37,6 +43,10 @@ var Image = _vue.defineComponent.call(void 0, {
|
|
|
37
43
|
fit: { type: String, default: "cover" },
|
|
38
44
|
fallbackSrc: { type: String, default: void 0 },
|
|
39
45
|
preview: { type: Boolean, default: true },
|
|
46
|
+
previewTrigger: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "click"
|
|
49
|
+
},
|
|
40
50
|
lazy: { type: Boolean, default: false },
|
|
41
51
|
className: { type: String, default: void 0 },
|
|
42
52
|
style: {
|
|
@@ -53,6 +63,35 @@ var Image = _vue.defineComponent.call(void 0, {
|
|
|
53
63
|
const previewVisible = _vue.ref.call(void 0, false);
|
|
54
64
|
let observer = null;
|
|
55
65
|
const group = _vue.inject.call(void 0, IMAGE_GROUP_INJECTION_KEY, null);
|
|
66
|
+
const hoverPreviewEnabled = _vue.computed.call(void 0,
|
|
67
|
+
() => props.preview && props.previewTrigger === "hover" && !group
|
|
68
|
+
);
|
|
69
|
+
const clickPreviewEnabled = _vue.computed.call(void 0, () => props.preview && props.previewTrigger !== "hover");
|
|
70
|
+
const floatingPopupProps = {
|
|
71
|
+
get trigger() {
|
|
72
|
+
return "hover";
|
|
73
|
+
},
|
|
74
|
+
get placement() {
|
|
75
|
+
return "right";
|
|
76
|
+
},
|
|
77
|
+
get offset() {
|
|
78
|
+
return 12;
|
|
79
|
+
},
|
|
80
|
+
get disabled() {
|
|
81
|
+
return !hoverPreviewEnabled.value;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const {
|
|
85
|
+
currentVisible: hoverVisible,
|
|
86
|
+
triggerRef: hoverTriggerRef,
|
|
87
|
+
floatingRef: hoverFloatingRef,
|
|
88
|
+
floatingStyles: hoverFloatingStyles,
|
|
89
|
+
triggerHandlers: hoverTriggerHandlers
|
|
90
|
+
} = _chunkQOMWROWEjs.useFloatingPopup.call(void 0, { props: floatingPopupProps, emit });
|
|
91
|
+
const setContainerRef = (el) => {
|
|
92
|
+
containerRef.value = el;
|
|
93
|
+
hoverTriggerRef.value = el;
|
|
94
|
+
};
|
|
56
95
|
const registeredIndex = _vue.ref.call(void 0, -1);
|
|
57
96
|
_vue.onMounted.call(void 0, () => {
|
|
58
97
|
if (group && props.src) {
|
|
@@ -103,7 +142,7 @@ var Image = _vue.defineComponent.call(void 0, {
|
|
|
103
142
|
emit("error");
|
|
104
143
|
};
|
|
105
144
|
const handleClick = () => {
|
|
106
|
-
if (!
|
|
145
|
+
if (!clickPreviewEnabled.value) return;
|
|
107
146
|
if (group) {
|
|
108
147
|
group.openPreview(registeredIndex.value >= 0 ? registeredIndex.value : 0);
|
|
109
148
|
} else {
|
|
@@ -193,25 +232,44 @@ var Image = _vue.defineComponent.call(void 0, {
|
|
|
193
232
|
emit("preview-open-change", val);
|
|
194
233
|
}
|
|
195
234
|
}) : null;
|
|
235
|
+
const hoverPreviewEl = hoverPreviewEnabled.value && hoverVisible.value && props.src ? _chunkEQW6IUHGjs.renderVueBodyTeleport.call(void 0,
|
|
236
|
+
_vue.h.call(void 0,
|
|
237
|
+
"div",
|
|
238
|
+
{
|
|
239
|
+
ref: hoverFloatingRef,
|
|
240
|
+
style: hoverFloatingStyles.value,
|
|
241
|
+
"aria-hidden": true,
|
|
242
|
+
class: "rounded-[var(--tiger-radius-md,0.5rem)] border border-[var(--tiger-border,#e5e7eb)] bg-[var(--tiger-surface,#ffffff)] p-1 shadow-lg"
|
|
243
|
+
},
|
|
244
|
+
[
|
|
245
|
+
_vue.h.call(void 0, "img", {
|
|
246
|
+
src: props.src,
|
|
247
|
+
alt: "",
|
|
248
|
+
class: "block max-w-[16rem] max-h-[16rem] object-contain"
|
|
249
|
+
})
|
|
250
|
+
]
|
|
251
|
+
)
|
|
252
|
+
) : null;
|
|
196
253
|
return _vue.h.call(void 0,
|
|
197
254
|
"div",
|
|
198
255
|
{
|
|
199
256
|
...forwardedAttrs,
|
|
200
|
-
ref:
|
|
257
|
+
ref: setContainerRef,
|
|
201
258
|
class: containerClasses.value,
|
|
202
259
|
style: containerStyle.value,
|
|
203
|
-
role:
|
|
204
|
-
tabindex:
|
|
205
|
-
"aria-label":
|
|
260
|
+
role: clickPreviewEnabled.value ? "button" : void 0,
|
|
261
|
+
tabindex: clickPreviewEnabled.value ? 0 : void 0,
|
|
262
|
+
"aria-label": clickPreviewEnabled.value ? `Preview ${props.alt || "image"}` : void 0,
|
|
206
263
|
onClick: handleClick,
|
|
207
264
|
onKeydown: (e) => {
|
|
208
|
-
if (
|
|
265
|
+
if (clickPreviewEnabled.value && (e.key === "Enter" || e.key === " ")) {
|
|
209
266
|
e.preventDefault();
|
|
210
267
|
handleClick();
|
|
211
268
|
}
|
|
212
|
-
}
|
|
269
|
+
},
|
|
270
|
+
...hoverPreviewEnabled.value ? hoverTriggerHandlers.value : {}
|
|
213
271
|
},
|
|
214
|
-
[content, previewEl]
|
|
272
|
+
[content, previewEl, hoverPreviewEl]
|
|
215
273
|
);
|
|
216
274
|
};
|
|
217
275
|
}
|
|
@@ -14,6 +14,7 @@ var _vue = require('vue');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
|
|
17
18
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
18
19
|
var createLoadingSpinner = () => {
|
|
19
20
|
const spinnerSvg = _tigercatcore.getSpinnerSVG.call(void 0, "spinner");
|
|
@@ -108,6 +109,7 @@ var Button = _vue.defineComponent.call(void 0, {
|
|
|
108
109
|
});
|
|
109
110
|
const mergedStyle = _vue.computed.call(void 0, () => _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style));
|
|
110
111
|
return () => {
|
|
112
|
+
_tigercatcore.warnUnsupportedColorProp.call(void 0, "Button", attrs);
|
|
111
113
|
const isDisabled = props.disabled || props.loading;
|
|
112
114
|
const iconIsRight = props.iconPosition === "right";
|
|
113
115
|
const loadingNode = props.loading ? _vue.h.call(void 0,
|
|
@@ -7,7 +7,7 @@ var _chunkDS7RQFEGjs = require('./chunk-DS7RQFEG.js');
|
|
|
7
7
|
var _chunk25EYT2CBjs = require('./chunk-25EYT2CB.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkHA5QZ76Mjs = require('./chunk-HA5QZ76M.js');
|
|
11
11
|
|
|
12
12
|
// src/components/FormWizard.ts
|
|
13
13
|
var _vue = require('vue');
|
|
@@ -302,7 +302,7 @@ var FormWizard = _vue.defineComponent.call(void 0, {
|
|
|
302
302
|
),
|
|
303
303
|
props.showActions ? _vue.h.call(void 0, "div", { class: actionsContainerClass }, [
|
|
304
304
|
!isFirst ? _vue.h.call(void 0,
|
|
305
|
-
|
|
305
|
+
_chunkHA5QZ76Mjs.Button,
|
|
306
306
|
{
|
|
307
307
|
type: "button",
|
|
308
308
|
variant: "secondary",
|
|
@@ -314,7 +314,7 @@ var FormWizard = _vue.defineComponent.call(void 0, {
|
|
|
314
314
|
{ default: () => _tigercatcore.resolveLocaleText.call(void 0, labels.value.prevText, props.prevText) }
|
|
315
315
|
) : _vue.h.call(void 0, "div"),
|
|
316
316
|
_vue.h.call(void 0,
|
|
317
|
-
|
|
317
|
+
_chunkHA5QZ76Mjs.Button,
|
|
318
318
|
{
|
|
319
319
|
type: "button",
|
|
320
320
|
variant: "primary",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNKVEXKM5js = require('./chunk-NKVEXKM5.js');
|
|
4
4
|
|
|
5
5
|
// src/components/FormItem.ts
|
|
6
6
|
|
|
@@ -99,7 +99,7 @@ var FormItem = _vue.defineComponent.call(void 0, {
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
setup(props, { slots }) {
|
|
102
|
-
const formContextRef = _vue.inject.call(void 0,
|
|
102
|
+
const formContextRef = _vue.inject.call(void 0, _chunkNKVEXKM5js.FormContextKey, null);
|
|
103
103
|
const formContext = _vue.computed.call(void 0, () => _nullishCoalesce(_optionalChain([formContextRef, 'optionalAccess', _ => _.value]), () => ( null)));
|
|
104
104
|
const errorMessage = _vue.ref.call(void 0, "");
|
|
105
105
|
const shakeTrigger = _vue.ref.call(void 0, 0);
|
|
@@ -12,6 +12,14 @@ var Content = _vue.defineComponent.call(void 0, {
|
|
|
12
12
|
type: String,
|
|
13
13
|
default: void 0
|
|
14
14
|
},
|
|
15
|
+
/**
|
|
16
|
+
* Built-in content padding.
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
padding: {
|
|
20
|
+
type: [Boolean, String],
|
|
21
|
+
default: true
|
|
22
|
+
},
|
|
15
23
|
/**
|
|
16
24
|
* Custom styles
|
|
17
25
|
*/
|
|
@@ -23,7 +31,7 @@ var Content = _vue.defineComponent.call(void 0, {
|
|
|
23
31
|
setup(props, { slots, attrs }) {
|
|
24
32
|
const contentClasses = _vue.computed.call(void 0,
|
|
25
33
|
() => _tigercatcore.classNames.call(void 0,
|
|
26
|
-
_tigercatcore.
|
|
34
|
+
_tigercatcore.getLayoutContentClasses.call(void 0, props.padding),
|
|
27
35
|
props.className,
|
|
28
36
|
_tigercatcore.coerceClassValue.call(void 0, attrs.class)
|
|
29
37
|
)
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-MKBIVETW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Button
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YZBQ6IR7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Tag
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-G6ULKE6H.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Text
|
|
12
12
|
} from "./chunk-NN6AINLG.mjs";
|