@expcat/tigercat-vue 1.2.0 → 1.2.16
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-ZED7TU62.js → chunk-2DC3BMED.js} +1 -0
- package/dist/{chunk-DIQGHFAT.mjs → chunk-3AF4VRCD.mjs} +6 -2
- package/dist/{chunk-4YHOD7LT.mjs → chunk-3MO7A4GU.mjs} +1 -0
- package/dist/{chunk-FIV4PKWT.js → chunk-3NRRNQYJ.js} +14 -3
- package/dist/{chunk-5436FG3B.js → chunk-4VLNT2ED.js} +11 -6
- package/dist/{chunk-DDNRF5U7.mjs → chunk-4Z4XMXCO.mjs} +1 -1
- package/dist/{chunk-BEIZXMHW.js → chunk-6CSTMVB2.js} +3 -3
- package/dist/{chunk-SCRSO3ES.mjs → chunk-ATRF7NPJ.mjs} +1 -1
- package/dist/{chunk-4DWOTV7J.js → chunk-CBZIVUCJ.js} +4 -4
- package/dist/{chunk-QRAV345L.js → chunk-CTAQ5WEN.js} +9 -2
- package/dist/{chunk-RDJZOMI6.js → chunk-DJCTERZH.js} +10 -2
- package/dist/{chunk-DTUTHYQY.mjs → chunk-DP25XFAH.mjs} +1 -0
- package/dist/{chunk-CZALMJH3.mjs → chunk-DYJ4Z47L.mjs} +3 -3
- package/dist/{chunk-WGNJHM34.js → chunk-EJZBG5RT.js} +69 -1
- package/dist/{chunk-6DVWLGSZ.mjs → chunk-F5JPUPWI.mjs} +2 -2
- package/dist/{chunk-J73M5UTG.mjs → chunk-HCANI7ZG.mjs} +70 -2
- package/dist/{chunk-QZ5OPNL4.mjs → chunk-I7ZMDGAR.mjs} +9 -2
- package/dist/{chunk-EKWJTB5H.mjs → chunk-IIEMDA36.mjs} +2 -2
- package/dist/{chunk-DQFTTJJ5.mjs → chunk-IPZVGA6Y.mjs} +12 -2
- package/dist/{chunk-V32X2OEO.js → chunk-JZJEZKGN.js} +1 -1
- package/dist/{chunk-3W4CM7KO.mjs → chunk-KLX7YHP2.mjs} +1 -1
- package/dist/{chunk-GL6KRUVO.js → chunk-KOLARHCT.js} +5 -5
- package/dist/{chunk-MFYBHMQL.js → chunk-L5E3L6ID.js} +12 -2
- package/dist/{chunk-EZXW4HIZ.mjs → chunk-LD7ZJCTO.mjs} +5 -2
- package/dist/{chunk-TGIXSJI3.mjs → chunk-LS4VI4RG.mjs} +1 -1
- package/dist/{chunk-EJNPSYTS.js → chunk-LUBUJUSH.js} +1 -0
- package/dist/{chunk-JAAIL4XS.js → chunk-MVZGR3ZB.js} +0 -7
- package/dist/{chunk-XY4A73TK.js → chunk-NCLUMDZB.js} +2 -1
- package/dist/{chunk-6V7XCCXN.mjs → chunk-NN6AINLG.mjs} +1 -0
- package/dist/{chunk-JL526HSV.mjs → chunk-OK7MTFAX.mjs} +3 -3
- package/dist/{chunk-GIQQOHDA.js → chunk-P453RVKY.js} +3 -3
- package/dist/{chunk-UM5GGKIX.mjs → chunk-PO5GVU4Q.mjs} +10 -5
- package/dist/{chunk-NCFY3VXA.js → chunk-RAUERIPS.js} +5 -1
- package/dist/{chunk-W55GCQ2D.js → chunk-SGAUVRUS.js} +10 -0
- package/dist/{chunk-DUQ7Q2GO.js → chunk-TGHB5XST.js} +1 -0
- package/dist/{chunk-2VBUCW5G.js → chunk-U5S3ZEYZ.js} +6 -6
- package/dist/{chunk-6HM77SWE.js → chunk-V6YR7CPK.js} +3 -3
- package/dist/{chunk-KZP3B3FQ.mjs → chunk-VWEH6TGR.mjs} +10 -0
- package/dist/{chunk-ZMNX4SCS.mjs → chunk-WLYQHKLZ.mjs} +3 -2
- package/dist/{chunk-3MC45EXP.mjs → chunk-WNKF2OD5.mjs} +15 -4
- package/dist/{chunk-MNH3KNSN.js → chunk-XAQID5IO.js} +5 -2
- package/dist/{chunk-GDKYQ7U6.js → chunk-XMGU52S5.js} +14 -14
- package/dist/{chunk-EL2224DN.js → chunk-YCBLL5K3.js} +10 -10
- package/dist/{chunk-2PFP44AI.mjs → chunk-YCBU3C4T.mjs} +2 -2
- package/dist/{chunk-TOOENSVT.mjs → chunk-YR75F34D.mjs} +0 -7
- package/dist/{chunk-WPIDP6IG.js → chunk-Z6HBM73W.js} +12 -5
- package/dist/{chunk-COCECPMG.mjs → chunk-ZCT56WB7.mjs} +10 -3
- package/dist/{chunk-H4F4G2E4.mjs → chunk-ZYCOHZCM.mjs} +11 -3
- package/dist/components/ActivityFeed.d.mts +6 -6
- package/dist/components/ActivityFeed.d.ts +6 -6
- package/dist/components/ActivityFeed.js +6 -5
- package/dist/components/ActivityFeed.mjs +5 -4
- package/dist/components/Alert.d.mts +2 -2
- package/dist/components/Alert.d.ts +2 -2
- package/dist/components/Anchor.d.mts +3 -3
- package/dist/components/Anchor.d.ts +3 -3
- package/dist/components/AreaChart.d.mts +1 -1
- package/dist/components/AreaChart.d.ts +1 -1
- package/dist/components/AutoComplete.d.mts +3 -3
- package/dist/components/AutoComplete.d.ts +3 -3
- package/dist/components/Avatar.d.mts +3 -3
- package/dist/components/Avatar.d.ts +3 -3
- package/dist/components/Avatar.js +3 -2
- package/dist/components/Avatar.mjs +2 -1
- package/dist/components/Badge.d.mts +4 -4
- package/dist/components/Badge.d.ts +4 -4
- package/dist/components/BarChart.d.mts +1 -1
- package/dist/components/BarChart.d.ts +1 -1
- package/dist/components/Breadcrumb.d.mts +22 -2
- package/dist/components/Breadcrumb.d.ts +22 -2
- package/dist/components/Breadcrumb.js +2 -2
- package/dist/components/Breadcrumb.mjs +1 -1
- package/dist/components/BreadcrumbItem.js +3 -3
- package/dist/components/BreadcrumbItem.mjs +1 -1
- package/dist/components/Button.d.mts +10 -12
- package/dist/components/Button.d.ts +10 -12
- package/dist/components/Button.js +3 -2
- package/dist/components/Button.mjs +2 -1
- package/dist/components/Calendar.d.mts +11 -1
- package/dist/components/Calendar.d.ts +11 -1
- package/dist/components/Calendar.js +2 -2
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Card.d.mts +3 -3
- package/dist/components/Card.d.ts +3 -3
- package/dist/components/Cascader.d.mts +1 -1
- package/dist/components/Cascader.d.ts +1 -1
- package/dist/components/ChatWindow.d.mts +3 -3
- package/dist/components/ChatWindow.d.ts +3 -3
- package/dist/components/ChatWindow.js +6 -4
- package/dist/components/ChatWindow.mjs +5 -3
- package/dist/components/CheckboxGroup.d.mts +1 -1
- package/dist/components/CheckboxGroup.d.ts +1 -1
- package/dist/components/Code.js +2 -2
- package/dist/components/Code.mjs +1 -1
- package/dist/components/CodeEditor.d.mts +2 -2
- package/dist/components/CodeEditor.d.ts +2 -2
- package/dist/components/Collapse.d.mts +1 -1
- package/dist/components/Collapse.d.ts +1 -1
- package/dist/components/CollapsePanel.d.mts +1 -1
- package/dist/components/CollapsePanel.d.ts +1 -1
- package/dist/components/ColorPicker.d.mts +1 -1
- package/dist/components/ColorPicker.d.ts +1 -1
- package/dist/components/ColorSwatch.d.mts +2 -2
- package/dist/components/ColorSwatch.d.ts +2 -2
- package/dist/components/CommentThread.d.mts +2 -2
- package/dist/components/CommentThread.d.ts +2 -2
- package/dist/components/CommentThread.js +7 -5
- package/dist/components/CommentThread.mjs +6 -4
- package/dist/components/ConfigProvider.d.mts +1 -1
- package/dist/components/ConfigProvider.d.ts +1 -1
- package/dist/components/CronEditor.d.mts +1 -1
- package/dist/components/CronEditor.d.ts +1 -1
- package/dist/components/CropUpload.d.mts +1 -1
- package/dist/components/CropUpload.d.ts +1 -1
- package/dist/components/CropUpload.js +5 -4
- package/dist/components/CropUpload.mjs +4 -3
- package/dist/components/DataTableWithToolbar.d.mts +8 -8
- package/dist/components/DataTableWithToolbar.d.ts +8 -8
- package/dist/components/DataTableWithToolbar.js +4 -3
- package/dist/components/DataTableWithToolbar.mjs +3 -2
- package/dist/components/DatePicker.d.mts +3 -3
- package/dist/components/DatePicker.d.ts +3 -3
- package/dist/components/Descriptions.d.mts +2 -2
- package/dist/components/Descriptions.d.ts +2 -2
- package/dist/components/Divider.js +2 -2
- package/dist/components/Divider.mjs +1 -1
- package/dist/components/DonutChart.d.mts +2 -2
- package/dist/components/DonutChart.d.ts +2 -2
- package/dist/components/Drawer.d.mts +4 -4
- package/dist/components/Drawer.d.ts +4 -4
- package/dist/components/Dropdown.d.mts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/DropdownItem.d.mts +2 -19
- package/dist/components/DropdownItem.d.ts +2 -19
- package/dist/components/DropdownItem.js +2 -2
- package/dist/components/DropdownItem.mjs +1 -1
- package/dist/components/FileManager.d.mts +1 -1
- package/dist/components/FileManager.d.ts +1 -1
- package/dist/components/FloatButton.d.mts +4 -4
- package/dist/components/FloatButton.d.ts +4 -4
- package/dist/components/Form.d.mts +2 -2
- package/dist/components/Form.d.ts +2 -2
- package/dist/components/FormWizard.d.mts +4 -4
- package/dist/components/FormWizard.d.ts +4 -4
- package/dist/components/FormWizard.js +4 -3
- package/dist/components/FormWizard.mjs +3 -2
- package/dist/components/FunnelChart.d.mts +1 -1
- package/dist/components/FunnelChart.d.ts +1 -1
- package/dist/components/Gantt.d.mts +1 -1
- package/dist/components/Gantt.d.ts +1 -1
- package/dist/components/GaugeChart.d.mts +1 -1
- package/dist/components/GaugeChart.d.ts +1 -1
- package/dist/components/HeatmapChart.d.mts +2 -2
- package/dist/components/HeatmapChart.d.ts +2 -2
- package/dist/components/Image.d.mts +2 -2
- package/dist/components/Image.d.ts +2 -2
- package/dist/components/Image.js +2 -2
- package/dist/components/Image.mjs +1 -1
- package/dist/components/ImageAnnotation.d.mts +4 -4
- package/dist/components/ImageAnnotation.d.ts +4 -4
- package/dist/components/InfiniteScroll.d.mts +3 -3
- package/dist/components/InfiniteScroll.d.ts +3 -3
- package/dist/components/Input.d.mts +4 -4
- package/dist/components/Input.d.ts +4 -4
- package/dist/components/InputGroup.d.mts +1 -1
- package/dist/components/InputGroup.d.ts +1 -1
- package/dist/components/InputNumber.d.mts +2 -2
- package/dist/components/InputNumber.d.ts +2 -2
- package/dist/components/Kanban.d.mts +1 -1
- package/dist/components/Kanban.d.ts +1 -1
- package/dist/components/LineChart.d.mts +1 -1
- package/dist/components/LineChart.d.ts +1 -1
- package/dist/components/Link.d.mts +2 -2
- package/dist/components/Link.d.ts +2 -2
- package/dist/components/Link.js +2 -2
- package/dist/components/Link.mjs +1 -1
- package/dist/components/List.d.mts +6 -6
- package/dist/components/List.d.ts +6 -6
- package/dist/components/Loading.d.mts +6 -6
- package/dist/components/Loading.d.ts +6 -6
- package/dist/components/MarkdownEditor.d.mts +1 -1
- package/dist/components/MarkdownEditor.d.ts +1 -1
- package/dist/components/Mentions.d.mts +3 -3
- package/dist/components/Mentions.d.ts +3 -3
- package/dist/components/Menu.d.mts +5 -5
- package/dist/components/Menu.d.ts +5 -5
- package/dist/components/Message.js +2 -2
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.d.mts +7 -7
- package/dist/components/Modal.d.ts +7 -7
- package/dist/components/Modal.js +4 -3
- package/dist/components/Modal.mjs +3 -2
- package/dist/components/NotificationCenter.d.mts +5 -5
- package/dist/components/NotificationCenter.d.ts +5 -5
- package/dist/components/NotificationCenter.js +5 -4
- package/dist/components/NotificationCenter.mjs +4 -3
- package/dist/components/NumberKeyboard.d.mts +2 -2
- package/dist/components/NumberKeyboard.d.ts +2 -2
- package/dist/components/OrgChart.d.mts +1 -1
- package/dist/components/OrgChart.d.ts +1 -1
- package/dist/components/Pagination.d.mts +3 -3
- package/dist/components/Pagination.d.ts +3 -3
- package/dist/components/PieChart.d.mts +2 -2
- package/dist/components/PieChart.d.ts +2 -2
- package/dist/components/Popconfirm.d.mts +3 -3
- package/dist/components/Popconfirm.d.ts +3 -3
- package/dist/components/Popover.d.mts +2 -2
- package/dist/components/Popover.d.ts +2 -2
- package/dist/components/Progress.d.mts +3 -3
- package/dist/components/Progress.d.ts +3 -3
- package/dist/components/QRCode.d.mts +11 -1
- package/dist/components/QRCode.d.ts +11 -1
- package/dist/components/QRCode.js +2 -2
- package/dist/components/QRCode.mjs +1 -1
- package/dist/components/RadarChart.d.mts +1 -1
- package/dist/components/RadarChart.d.ts +1 -1
- package/dist/components/RadioGroup.d.mts +1 -1
- package/dist/components/RadioGroup.d.ts +1 -1
- package/dist/components/Rate.d.mts +1 -1
- package/dist/components/Rate.d.ts +1 -1
- package/dist/components/Resizable.d.mts +1 -1
- package/dist/components/Resizable.d.ts +1 -1
- package/dist/components/RichTextEditor.d.mts +1 -1
- package/dist/components/RichTextEditor.d.ts +1 -1
- package/dist/components/Row.d.mts +1 -1
- package/dist/components/Row.d.ts +1 -1
- package/dist/components/ScatterChart.d.mts +1 -1
- package/dist/components/ScatterChart.d.ts +1 -1
- package/dist/components/ScrollSpy.d.mts +4 -4
- package/dist/components/ScrollSpy.d.ts +4 -4
- package/dist/components/Segmented.d.mts +10 -1
- package/dist/components/Segmented.d.ts +10 -1
- package/dist/components/Segmented.js +2 -2
- package/dist/components/Segmented.mjs +1 -1
- package/dist/components/Select.d.mts +2 -2
- package/dist/components/Select.d.ts +2 -2
- package/dist/components/Signature.d.mts +3 -3
- package/dist/components/Signature.d.ts +3 -3
- package/dist/components/Skeleton.d.mts +2 -2
- package/dist/components/Skeleton.d.ts +2 -2
- package/dist/components/Slider.d.mts +1 -1
- package/dist/components/Slider.d.ts +1 -1
- package/dist/components/Space.d.mts +2 -2
- package/dist/components/Space.d.ts +2 -2
- package/dist/components/Splitter.d.mts +2 -2
- package/dist/components/Splitter.d.ts +2 -2
- package/dist/components/Spotlight.d.mts +4 -4
- package/dist/components/Spotlight.d.ts +4 -4
- package/dist/components/Statistic.d.mts +9 -0
- package/dist/components/Statistic.d.ts +9 -0
- package/dist/components/Statistic.js +2 -2
- package/dist/components/Statistic.mjs +1 -1
- package/dist/components/Stepper.d.mts +1 -1
- package/dist/components/Stepper.d.ts +1 -1
- package/dist/components/Steps.d.mts +3 -3
- package/dist/components/Steps.d.ts +3 -3
- package/dist/components/SunburstChart.d.mts +1 -1
- package/dist/components/SunburstChart.d.ts +1 -1
- package/dist/components/Switch.d.mts +1 -1
- package/dist/components/Switch.d.ts +1 -1
- package/dist/components/Switch.js +2 -2
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/Table.d.mts +6 -6
- package/dist/components/Table.d.ts +6 -6
- package/dist/components/Tabs.d.mts +3 -3
- package/dist/components/Tabs.d.ts +3 -3
- package/dist/components/Tag.d.mts +2 -2
- package/dist/components/Tag.d.ts +2 -2
- package/dist/components/TaskBoard.d.mts +1 -1
- package/dist/components/TaskBoard.d.ts +1 -1
- package/dist/components/Text.d.mts +3 -3
- package/dist/components/Text.d.ts +3 -3
- package/dist/components/Text.js +2 -2
- package/dist/components/Text.mjs +1 -1
- package/dist/components/Textarea.d.mts +2 -2
- package/dist/components/Textarea.d.ts +2 -2
- package/dist/components/TimePicker.d.mts +4 -4
- package/dist/components/TimePicker.d.ts +4 -4
- package/dist/components/Timeline.d.mts +2 -2
- package/dist/components/Timeline.d.ts +2 -2
- package/dist/components/Tooltip.d.mts +2 -2
- package/dist/components/Tooltip.d.ts +2 -2
- package/dist/components/Tour.d.mts +2 -2
- package/dist/components/Tour.d.ts +2 -2
- package/dist/components/Transfer.d.mts +1 -1
- package/dist/components/Transfer.d.ts +1 -1
- package/dist/components/Tree.d.mts +17 -2
- package/dist/components/Tree.d.ts +17 -2
- package/dist/components/Tree.js +2 -2
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/TreeMapChart.d.mts +1 -1
- package/dist/components/TreeMapChart.d.ts +1 -1
- package/dist/components/TreeSelect.d.mts +1 -1
- package/dist/components/TreeSelect.d.ts +1 -1
- package/dist/components/Upload.d.mts +5 -5
- package/dist/components/Upload.d.ts +5 -5
- package/dist/components/VirtualTable.d.mts +2 -2
- package/dist/components/VirtualTable.d.ts +2 -2
- package/dist/components/Watermark.d.mts +1 -1
- package/dist/components/Watermark.d.ts +1 -1
- package/dist/index.js +31 -31
- package/dist/index.mjs +30 -30
- 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 _chunk6CSTMVB2js = require('./chunk-6CSTMVB2.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkWUEP3PFNjs = require('./chunk-WUEP3PFN.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk4VLNT2EDjs = require('./chunk-4VLNT2ED.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
|
+
_chunk6CSTMVB2js.Modal,
|
|
175
175
|
{
|
|
176
176
|
open: modalVisible.value,
|
|
177
177
|
size: "lg",
|
|
@@ -190,9 +190,9 @@ var CropUpload = _vue.defineComponent.call(void 0, {
|
|
|
190
190
|
...props.cropperProps
|
|
191
191
|
}) : null,
|
|
192
192
|
footer: ({ cancel: _cancel }) => _vue.h.call(void 0, "div", { class: _tigercatcore.modalFooterClasses }, [
|
|
193
|
-
_vue.h.call(void 0,
|
|
193
|
+
_vue.h.call(void 0, _chunk4VLNT2EDjs.Button, { variant: "secondary", onClick: handleCancel }, { default: () => "\u53D6\u6D88" }),
|
|
194
194
|
_vue.h.call(void 0,
|
|
195
|
-
|
|
195
|
+
_chunk4VLNT2EDjs.Button,
|
|
196
196
|
{ onClick: handleConfirm, loading: cropping.value },
|
|
197
197
|
{ default: () => "\u786E\u8BA4\u88C1\u526A" }
|
|
198
198
|
)
|
|
@@ -256,6 +256,13 @@ var Tree = _vue.defineComponent.call(void 0, {
|
|
|
256
256
|
itemHeight: {
|
|
257
257
|
type: Number,
|
|
258
258
|
default: 32
|
|
259
|
+
},
|
|
260
|
+
/**
|
|
261
|
+
* Additional CSS classes (applied to root element)
|
|
262
|
+
*/
|
|
263
|
+
className: {
|
|
264
|
+
type: String,
|
|
265
|
+
default: void 0
|
|
259
266
|
}
|
|
260
267
|
},
|
|
261
268
|
emits: [
|
|
@@ -413,7 +420,6 @@ var Tree = _vue.defineComponent.call(void 0, {
|
|
|
413
420
|
loadingNodes.value.delete(nodeKey);
|
|
414
421
|
}).catch(() => {
|
|
415
422
|
loadingNodes.value.delete(nodeKey);
|
|
416
|
-
newExpandedKeys.delete(nodeKey);
|
|
417
423
|
});
|
|
418
424
|
}
|
|
419
425
|
}
|
|
@@ -714,7 +720,11 @@ var Tree = _vue.defineComponent.call(void 0, {
|
|
|
714
720
|
);
|
|
715
721
|
}
|
|
716
722
|
return () => {
|
|
717
|
-
const rootClass = _tigercatcore.classNames.call(void 0,
|
|
723
|
+
const rootClass = _tigercatcore.classNames.call(void 0,
|
|
724
|
+
_tigercatcore.treeBaseClasses,
|
|
725
|
+
props.className,
|
|
726
|
+
_tigercatcore.coerceClassValue.call(void 0, attrs.class)
|
|
727
|
+
);
|
|
718
728
|
if (!props.treeData || props.treeData.length === 0) {
|
|
719
729
|
return _vue.h.call(void 0,
|
|
720
730
|
"div",
|
|
@@ -16,11 +16,13 @@ import {
|
|
|
16
16
|
} from "@expcat/tigercat-core";
|
|
17
17
|
var Calendar = defineComponent({
|
|
18
18
|
name: "TigerCalendar",
|
|
19
|
+
inheritAttrs: false,
|
|
19
20
|
props: {
|
|
20
21
|
modelValue: { type: Date, default: void 0 },
|
|
21
22
|
mode: { type: String, default: "month" },
|
|
22
23
|
fullscreen: { type: Boolean, default: false },
|
|
23
|
-
disabledDate: { type: Function, default: void 0 }
|
|
24
|
+
disabledDate: { type: Function, default: void 0 },
|
|
25
|
+
className: { type: String, default: void 0 }
|
|
24
26
|
},
|
|
25
27
|
emits: ["update:modelValue", "change", "panel-change"],
|
|
26
28
|
setup(props, { emit, attrs }) {
|
|
@@ -66,6 +68,7 @@ var Calendar = defineComponent({
|
|
|
66
68
|
return () => {
|
|
67
69
|
const containerClass = classNames(
|
|
68
70
|
getCalendarContainerClasses(!!props.fullscreen),
|
|
71
|
+
props.className,
|
|
69
72
|
coerceClassValue(attrs.class)
|
|
70
73
|
);
|
|
71
74
|
const header = h("div", { class: calendarHeaderClasses }, [
|
|
@@ -152,7 +155,7 @@ var Calendar = defineComponent({
|
|
|
152
155
|
);
|
|
153
156
|
body = h("div", {}, [weekdayRow, dayGrid]);
|
|
154
157
|
}
|
|
155
|
-
return h("div", { class: containerClass, role: "group" }, [header, body]);
|
|
158
|
+
return h("div", { ...attrs, class: containerClass, role: "group" }, [header, body]);
|
|
156
159
|
};
|
|
157
160
|
}
|
|
158
161
|
});
|
|
@@ -120,7 +120,7 @@ var MessageContainer = defineComponent({
|
|
|
120
120
|
},
|
|
121
121
|
IS_TEST_ENV ? messageInstances.value.map(renderMessageItem) : h(
|
|
122
122
|
TransitionGroup,
|
|
123
|
-
{ name: "message"
|
|
123
|
+
{ name: "message" },
|
|
124
124
|
() => messageInstances.value.map(renderMessageItem)
|
|
125
125
|
)
|
|
126
126
|
)
|
|
@@ -14,13 +14,6 @@ var DropdownItem = _vue.defineComponent.call(void 0, {
|
|
|
14
14
|
name: "TigerDropdownItem",
|
|
15
15
|
inheritAttrs: false,
|
|
16
16
|
props: {
|
|
17
|
-
/**
|
|
18
|
-
* Unique key for the dropdown item
|
|
19
|
-
*/
|
|
20
|
-
itemKey: {
|
|
21
|
-
type: [String, Number],
|
|
22
|
-
default: void 0
|
|
23
|
-
},
|
|
24
17
|
/**
|
|
25
18
|
* Whether the item is disabled
|
|
26
19
|
* @default false
|
|
@@ -6,6 +6,7 @@ var _vue = require('vue');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
|
|
9
10
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
10
11
|
var Code = _vue.defineComponent.call(void 0, {
|
|
11
12
|
name: "TigerCode",
|
|
@@ -73,7 +74,7 @@ var Code = _vue.defineComponent.call(void 0, {
|
|
|
73
74
|
{
|
|
74
75
|
...attrs,
|
|
75
76
|
class: containerClasses.value,
|
|
76
|
-
style: props.style
|
|
77
|
+
style: _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style)
|
|
77
78
|
},
|
|
78
79
|
[
|
|
79
80
|
_vue.h.call(void 0, "pre", { class: _tigercatcore.codeBlockPreClasses }, [_vue.h.call(void 0, "code", { class: "block" }, props.code)]),
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
} from "./chunk-PCUUTKQZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Link
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3MO7A4GU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Tag
|
|
12
12
|
} from "./chunk-3G4VPV4D.mjs";
|
|
13
13
|
import {
|
|
14
14
|
Text
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NN6AINLG.mjs";
|
|
16
16
|
import {
|
|
17
17
|
Card
|
|
18
18
|
} from "./chunk-KOTSKHPQ.mjs";
|
|
19
19
|
import {
|
|
20
20
|
Avatar
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZCT56WB7.mjs";
|
|
22
22
|
|
|
23
23
|
// src/components/ActivityFeed.ts
|
|
24
24
|
import { defineComponent, computed, h } from "vue";
|
|
@@ -7,7 +7,7 @@ var _chunkVPNIZPIFjs = require('./chunk-VPNIZPIF.js');
|
|
|
7
7
|
var _chunk25EYT2CBjs = require('./chunk-25EYT2CB.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk4VLNT2EDjs = require('./chunk-4VLNT2ED.js');
|
|
11
11
|
|
|
12
12
|
// src/components/FormWizard.ts
|
|
13
13
|
var _vue = require('vue');
|
|
@@ -234,7 +234,7 @@ var FormWizard = _vue.defineComponent.call(void 0, {
|
|
|
234
234
|
},
|
|
235
235
|
[
|
|
236
236
|
_vue.h.call(void 0,
|
|
237
|
-
|
|
237
|
+
_chunk4VLNT2EDjs.Button,
|
|
238
238
|
{
|
|
239
239
|
type: "button",
|
|
240
240
|
variant: "secondary",
|
|
@@ -244,7 +244,7 @@ var FormWizard = _vue.defineComponent.call(void 0, {
|
|
|
244
244
|
{ default: () => _tigercatcore.resolveLocaleText.call(void 0, labels.value.prevText, props.prevText) }
|
|
245
245
|
),
|
|
246
246
|
_vue.h.call(void 0,
|
|
247
|
-
|
|
247
|
+
_chunk4VLNT2EDjs.Button,
|
|
248
248
|
{
|
|
249
249
|
type: "button",
|
|
250
250
|
variant: "primary",
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BUTTON_GROUP_INJECTION_KEY
|
|
3
|
+
} from "./chunk-Z2ZECCGD.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/Button.ts
|
|
2
|
-
import { defineComponent, computed, h } from "vue";
|
|
6
|
+
import { defineComponent, computed, h, inject } from "vue";
|
|
3
7
|
import {
|
|
4
8
|
composeComponentClasses,
|
|
5
9
|
mergeStyleValues,
|
|
@@ -39,12 +43,11 @@ var Button = defineComponent({
|
|
|
39
43
|
default: "primary"
|
|
40
44
|
},
|
|
41
45
|
/**
|
|
42
|
-
* Button size
|
|
43
|
-
* @default 'md'
|
|
46
|
+
* Button size. Falls back to the enclosing ButtonGroup size, then 'md'.
|
|
44
47
|
*/
|
|
45
48
|
size: {
|
|
46
49
|
type: String,
|
|
47
|
-
default:
|
|
50
|
+
default: void 0
|
|
48
51
|
},
|
|
49
52
|
/**
|
|
50
53
|
* Whether the button is disabled
|
|
@@ -89,12 +92,14 @@ var Button = defineComponent({
|
|
|
89
92
|
},
|
|
90
93
|
emits: ["click"],
|
|
91
94
|
setup(props, { slots, emit, attrs }) {
|
|
95
|
+
const group = inject(BUTTON_GROUP_INJECTION_KEY, null);
|
|
96
|
+
const resolvedSize = computed(() => props.size ?? group?.size ?? "md");
|
|
92
97
|
const buttonClasses = computed(() => {
|
|
93
98
|
const variantClasses = props.danger ? buttonDangerClasses[props.variant] ?? buttonDangerClasses.primary : getButtonVariantClasses(props.variant);
|
|
94
99
|
return composeComponentClasses(
|
|
95
100
|
buttonBaseClasses,
|
|
96
101
|
variantClasses,
|
|
97
|
-
buttonSizeClasses[
|
|
102
|
+
buttonSizeClasses[resolvedSize.value],
|
|
98
103
|
(props.disabled || props.loading) && buttonDisabledClasses,
|
|
99
104
|
props.block && "w-full",
|
|
100
105
|
props.className,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/components/Switch.ts
|
|
2
2
|
var _vue = require('vue');
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
3
7
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
4
8
|
var Switch = _vue.defineComponent.call(void 0, {
|
|
5
9
|
name: "TigerSwitch",
|
|
@@ -73,7 +77,7 @@ var Switch = _vue.defineComponent.call(void 0, {
|
|
|
73
77
|
"aria-checked": props.checked,
|
|
74
78
|
"aria-disabled": props.disabled ? "true" : void 0,
|
|
75
79
|
class: switchClasses.value,
|
|
76
|
-
style: props.style,
|
|
80
|
+
style: _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style),
|
|
77
81
|
disabled: props.disabled,
|
|
78
82
|
tabindex: props.disabled ? -1 : attrs.tabindex,
|
|
79
83
|
onClick: emitChange,
|
|
@@ -11,6 +11,7 @@ var _chunkX6FG4RPFjs = require('./chunk-X6FG4RPF.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
var _vue = require('vue');
|
|
15
16
|
|
|
16
17
|
|
|
@@ -77,6 +78,15 @@ var Image = _vue.defineComponent.call(void 0, {
|
|
|
77
78
|
group.unregister(props.src);
|
|
78
79
|
}
|
|
79
80
|
});
|
|
81
|
+
_vue.watch.call(void 0,
|
|
82
|
+
() => props.src,
|
|
83
|
+
(newSrc) => {
|
|
84
|
+
if (props.lazy) return;
|
|
85
|
+
actualSrc.value = newSrc;
|
|
86
|
+
error.value = false;
|
|
87
|
+
loading.value = true;
|
|
88
|
+
}
|
|
89
|
+
);
|
|
80
90
|
const handleLoad = () => {
|
|
81
91
|
loading.value = false;
|
|
82
92
|
error.value = false;
|
|
@@ -7,13 +7,13 @@ var _chunk44N7LE3Qjs = require('./chunk-44N7LE3Q.js');
|
|
|
7
7
|
var _chunkS6Q7TD6Hjs = require('./chunk-S6Q7TD6H.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk4VLNT2EDjs = require('./chunk-4VLNT2ED.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk2LNNB55Ejs = require('./chunk-2LNNB55E.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkTGHB5XSTjs = require('./chunk-TGHB5XST.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkXGXGAK27js = require('./chunk-XGXGAK27.js');
|
|
@@ -319,7 +319,7 @@ var NotificationCenter = _vue.defineComponent.call(void 0, {
|
|
|
319
319
|
_vue.h.call(void 0, "div", { class: "flex-1 min-w-0" }, [
|
|
320
320
|
_vue.h.call(void 0, "div", { class: "flex items-baseline justify-between gap-2" }, [
|
|
321
321
|
_vue.h.call(void 0,
|
|
322
|
-
|
|
322
|
+
_chunkTGHB5XSTjs.Text,
|
|
323
323
|
{
|
|
324
324
|
tag: "span",
|
|
325
325
|
size: "sm",
|
|
@@ -344,7 +344,7 @@ var NotificationCenter = _vue.defineComponent.call(void 0, {
|
|
|
344
344
|
) : null
|
|
345
345
|
]),
|
|
346
346
|
_vue.h.call(void 0,
|
|
347
|
-
|
|
347
|
+
_chunk4VLNT2EDjs.Button,
|
|
348
348
|
{
|
|
349
349
|
size: "sm",
|
|
350
350
|
variant: "ghost",
|
|
@@ -404,7 +404,7 @@ var NotificationCenter = _vue.defineComponent.call(void 0, {
|
|
|
404
404
|
const header = _vue.h.call(void 0, "div", { class: "flex flex-col gap-3" }, [
|
|
405
405
|
_vue.h.call(void 0, "div", { class: "flex items-center justify-between" }, [
|
|
406
406
|
_vue.h.call(void 0, "div", { class: "flex items-center gap-2.5" }, [
|
|
407
|
-
_vue.h.call(void 0,
|
|
407
|
+
_vue.h.call(void 0, _chunkTGHB5XSTjs.Text, { tag: "div", size: "base", weight: "bold" }, { default: () => props.title }),
|
|
408
408
|
totalUnread.value > 0 ? _vue.h.call(void 0,
|
|
409
409
|
"span",
|
|
410
410
|
{
|
|
@@ -414,7 +414,7 @@ var NotificationCenter = _vue.defineComponent.call(void 0, {
|
|
|
414
414
|
) : null
|
|
415
415
|
]),
|
|
416
416
|
_vue.h.call(void 0,
|
|
417
|
-
|
|
417
|
+
_chunk4VLNT2EDjs.Button,
|
|
418
418
|
{
|
|
419
419
|
size: "sm",
|
|
420
420
|
variant: "ghost",
|
|
@@ -9,7 +9,7 @@ var _chunkBGMAWKWVjs = require('./chunk-BGMAWKWV.js');
|
|
|
9
9
|
var _chunkBYNMOQBBjs = require('./chunk-BYNMOQBB.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk4VLNT2EDjs = require('./chunk-4VLNT2ED.js');
|
|
13
13
|
|
|
14
14
|
// src/components/DataTableWithToolbar.ts
|
|
15
15
|
|
|
@@ -263,7 +263,7 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
263
263
|
}
|
|
264
264
|
}),
|
|
265
265
|
showButton ? _vue.h.call(void 0,
|
|
266
|
-
|
|
266
|
+
_chunk4VLNT2EDjs.Button,
|
|
267
267
|
{
|
|
268
268
|
size: "sm",
|
|
269
269
|
variant: "primary",
|
|
@@ -315,7 +315,7 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
315
315
|
(_nullishCoalesce(_optionalChain([props, 'access', _43 => _43.toolbar, 'optionalAccess', _44 => _44.bulkActions]), () => ( []))).forEach((action) => {
|
|
316
316
|
bulkChildren.push(
|
|
317
317
|
_vue.h.call(void 0,
|
|
318
|
-
|
|
318
|
+
_chunk4VLNT2EDjs.Button,
|
|
319
319
|
{
|
|
320
320
|
key: action.key,
|
|
321
321
|
size: "sm",
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
h,
|
|
9
9
|
ref,
|
|
10
10
|
computed,
|
|
11
|
+
watch,
|
|
11
12
|
onMounted,
|
|
12
13
|
onBeforeUnmount,
|
|
13
14
|
inject
|
|
@@ -77,6 +78,15 @@ var Image = defineComponent({
|
|
|
77
78
|
group.unregister(props.src);
|
|
78
79
|
}
|
|
79
80
|
});
|
|
81
|
+
watch(
|
|
82
|
+
() => props.src,
|
|
83
|
+
(newSrc) => {
|
|
84
|
+
if (props.lazy) return;
|
|
85
|
+
actualSrc.value = newSrc;
|
|
86
|
+
error.value = false;
|
|
87
|
+
loading.value = true;
|
|
88
|
+
}
|
|
89
|
+
);
|
|
80
90
|
const handleLoad = () => {
|
|
81
91
|
loading.value = false;
|
|
82
92
|
error.value = false;
|
|
@@ -5,7 +5,8 @@ import {
|
|
|
5
5
|
codeBlockPreClasses,
|
|
6
6
|
copyTextToClipboard,
|
|
7
7
|
getCodeBlockContainerClasses,
|
|
8
|
-
getCodeBlockCopyButtonClasses
|
|
8
|
+
getCodeBlockCopyButtonClasses,
|
|
9
|
+
mergeStyleValues
|
|
9
10
|
} from "@expcat/tigercat-core";
|
|
10
11
|
var Code = defineComponent({
|
|
11
12
|
name: "TigerCode",
|
|
@@ -73,7 +74,7 @@ var Code = defineComponent({
|
|
|
73
74
|
{
|
|
74
75
|
...attrs,
|
|
75
76
|
class: containerClasses.value,
|
|
76
|
-
style: props.style
|
|
77
|
+
style: mergeStyleValues(attrs.style, props.style)
|
|
77
78
|
},
|
|
78
79
|
[
|
|
79
80
|
h("pre", { class: codeBlockPreClasses }, [h("code", { class: "block" }, props.code)]),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/components/QRCode.ts
|
|
2
2
|
import { defineComponent, h, computed } from "vue";
|
|
3
|
-
import { classNames, coerceClassValue } from "@expcat/tigercat-core";
|
|
3
|
+
import { classNames, coerceClassValue, mergeStyleValues } from "@expcat/tigercat-core";
|
|
4
4
|
import {
|
|
5
5
|
qrcodeContainerClasses,
|
|
6
6
|
qrcodeOverlayClasses,
|
|
@@ -10,13 +10,15 @@ import {
|
|
|
10
10
|
} from "@expcat/tigercat-core";
|
|
11
11
|
var QRCode = defineComponent({
|
|
12
12
|
name: "TigerQRCode",
|
|
13
|
+
inheritAttrs: false,
|
|
13
14
|
props: {
|
|
14
15
|
value: { type: String, required: true },
|
|
15
16
|
size: { type: Number, default: 128 },
|
|
16
17
|
color: { type: String, default: "#000000" },
|
|
17
18
|
bgColor: { type: String, default: "#ffffff" },
|
|
18
19
|
level: { type: String, default: "M" },
|
|
19
|
-
status: { type: String, default: "active" }
|
|
20
|
+
status: { type: String, default: "active" },
|
|
21
|
+
className: { type: String, default: void 0 }
|
|
20
22
|
},
|
|
21
23
|
emits: ["refresh"],
|
|
22
24
|
setup(props, { emit, attrs }) {
|
|
@@ -26,7 +28,12 @@ var QRCode = defineComponent({
|
|
|
26
28
|
return props.size / mLen;
|
|
27
29
|
});
|
|
28
30
|
return () => {
|
|
29
|
-
const
|
|
31
|
+
const attrsRecord = attrs;
|
|
32
|
+
const containerClass = classNames(
|
|
33
|
+
qrcodeContainerClasses,
|
|
34
|
+
props.className,
|
|
35
|
+
coerceClassValue(attrsRecord.class)
|
|
36
|
+
);
|
|
30
37
|
const mSize = moduleSize.value;
|
|
31
38
|
const modules = matrix.value;
|
|
32
39
|
const rects = modules.flatMap(
|
|
@@ -79,8 +86,12 @@ var QRCode = defineComponent({
|
|
|
79
86
|
return h(
|
|
80
87
|
"div",
|
|
81
88
|
{
|
|
89
|
+
...attrs,
|
|
82
90
|
class: containerClass,
|
|
83
|
-
style:
|
|
91
|
+
style: mergeStyleValues(attrsRecord.style, {
|
|
92
|
+
width: `${props.size}px`,
|
|
93
|
+
height: `${props.size}px`
|
|
94
|
+
})
|
|
84
95
|
},
|
|
85
96
|
children
|
|
86
97
|
);
|
|
@@ -16,11 +16,13 @@ var _tigercatcore = require('@expcat/tigercat-core');
|
|
|
16
16
|
|
|
17
17
|
var Calendar = _vue.defineComponent.call(void 0, {
|
|
18
18
|
name: "TigerCalendar",
|
|
19
|
+
inheritAttrs: false,
|
|
19
20
|
props: {
|
|
20
21
|
modelValue: { type: Date, default: void 0 },
|
|
21
22
|
mode: { type: String, default: "month" },
|
|
22
23
|
fullscreen: { type: Boolean, default: false },
|
|
23
|
-
disabledDate: { type: Function, default: void 0 }
|
|
24
|
+
disabledDate: { type: Function, default: void 0 },
|
|
25
|
+
className: { type: String, default: void 0 }
|
|
24
26
|
},
|
|
25
27
|
emits: ["update:modelValue", "change", "panel-change"],
|
|
26
28
|
setup(props, { emit, attrs }) {
|
|
@@ -66,6 +68,7 @@ var Calendar = _vue.defineComponent.call(void 0, {
|
|
|
66
68
|
return () => {
|
|
67
69
|
const containerClass = _tigercatcore.classNames.call(void 0,
|
|
68
70
|
_tigercatcore.getCalendarContainerClasses.call(void 0, !!props.fullscreen),
|
|
71
|
+
props.className,
|
|
69
72
|
_tigercatcore.coerceClassValue.call(void 0, attrs.class)
|
|
70
73
|
);
|
|
71
74
|
const header = _vue.h.call(void 0, "div", { class: _tigercatcore.calendarHeaderClasses }, [
|
|
@@ -152,7 +155,7 @@ var Calendar = _vue.defineComponent.call(void 0, {
|
|
|
152
155
|
);
|
|
153
156
|
body = _vue.h.call(void 0, "div", {}, [weekdayRow, dayGrid]);
|
|
154
157
|
}
|
|
155
|
-
return _vue.h.call(void 0, "div", { class: containerClass, role: "group" }, [header, body]);
|
|
158
|
+
return _vue.h.call(void 0, "div", { ...attrs, class: containerClass, role: "group" }, [header, body]);
|
|
156
159
|
};
|
|
157
160
|
}
|
|
158
161
|
});
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunk6FXYRDYHjs = require('./chunk-6FXYRDYH.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4VLNT2EDjs = require('./chunk-4VLNT2ED.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk2KDSHEZTjs = require('./chunk-2KDSHEZT.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkTGHB5XSTjs = require('./chunk-TGHB5XST.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkZ6HBM73Wjs = require('./chunk-Z6HBM73W.js');
|
|
16
16
|
|
|
17
17
|
// src/components/CommentThread.ts
|
|
18
18
|
var _vue = require('vue');
|
|
@@ -167,7 +167,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
167
167
|
const ACTION_BTN = `${BTN_BASE} text-gray-400 hover:text-gray-600 font-normal hover:bg-gray-50`;
|
|
168
168
|
const PRIMARY_BTN = `${BTN_BASE} text-[var(--tiger-primary,#2563eb)] hover:text-[var(--tiger-primary-hover,#1d4ed8)] font-medium hover:bg-[var(--tiger-primary,#2563eb)]/5`;
|
|
169
169
|
const renderActionButton = (label, key, onClick, active) => _vue.h.call(void 0,
|
|
170
|
-
|
|
170
|
+
_chunk4VLNT2EDjs.Button,
|
|
171
171
|
{
|
|
172
172
|
key,
|
|
173
173
|
size: "sm",
|
|
@@ -217,7 +217,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
217
217
|
const actionKey = _nullishCoalesce(action.key, () => ( `${node.id}-action-${index}`));
|
|
218
218
|
actions.push(
|
|
219
219
|
_vue.h.call(void 0,
|
|
220
|
-
|
|
220
|
+
_chunk4VLNT2EDjs.Button,
|
|
221
221
|
{
|
|
222
222
|
key: actionKey,
|
|
223
223
|
size: "sm",
|
|
@@ -246,7 +246,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
246
246
|
},
|
|
247
247
|
[
|
|
248
248
|
_vue.h.call(void 0, "div", { class: "flex gap-3" }, [
|
|
249
|
-
props.showAvatar && node.user ? _vue.h.call(void 0,
|
|
249
|
+
props.showAvatar && node.user ? _vue.h.call(void 0, _chunkZ6HBM73Wjs.Avatar, {
|
|
250
250
|
size: depth === 1 ? "md" : "sm",
|
|
251
251
|
src: node.user.avatar,
|
|
252
252
|
text: node.user.name,
|
|
@@ -255,12 +255,12 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
255
255
|
_vue.h.call(void 0, "div", { class: "flex-1 min-w-0" }, [
|
|
256
256
|
_vue.h.call(void 0, "div", { class: "flex items-center gap-2 flex-wrap" }, [
|
|
257
257
|
_optionalChain([node, 'access', _3 => _3.user, 'optionalAccess', _4 => _4.name]) ? _vue.h.call(void 0,
|
|
258
|
-
|
|
258
|
+
_chunkTGHB5XSTjs.Text,
|
|
259
259
|
{ tag: "span", size: "sm", weight: "bold" },
|
|
260
260
|
{ default: () => _optionalChain([node, 'access', _5 => _5.user, 'optionalAccess', _6 => _6.name]) }
|
|
261
261
|
) : null,
|
|
262
262
|
_optionalChain([node, 'access', _7 => _7.user, 'optionalAccess', _8 => _8.title]) ? _vue.h.call(void 0,
|
|
263
|
-
|
|
263
|
+
_chunkTGHB5XSTjs.Text,
|
|
264
264
|
{ tag: "span", size: "xs", color: "muted" },
|
|
265
265
|
{ default: () => _optionalChain([node, 'access', _9 => _9.user, 'optionalAccess', _10 => _10.title]) }
|
|
266
266
|
) : null,
|
|
@@ -281,7 +281,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
281
281
|
)
|
|
282
282
|
),
|
|
283
283
|
node.time ? _vue.h.call(void 0,
|
|
284
|
-
|
|
284
|
+
_chunkTGHB5XSTjs.Text,
|
|
285
285
|
{ tag: "span", size: "xs", color: "muted", class: "ml-auto" },
|
|
286
286
|
{ default: () => _tigercatcore.formatCommentTime.call(void 0, node.time) }
|
|
287
287
|
) : null
|
|
@@ -311,7 +311,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
311
311
|
}),
|
|
312
312
|
_vue.h.call(void 0, "div", { class: "flex items-center gap-2 justify-end" }, [
|
|
313
313
|
_vue.h.call(void 0,
|
|
314
|
-
|
|
314
|
+
_chunk4VLNT2EDjs.Button,
|
|
315
315
|
{
|
|
316
316
|
size: "sm",
|
|
317
317
|
variant: "ghost",
|
|
@@ -323,7 +323,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
323
323
|
{ default: () => props.cancelReplyText }
|
|
324
324
|
),
|
|
325
325
|
_vue.h.call(void 0,
|
|
326
|
-
|
|
326
|
+
_chunk4VLNT2EDjs.Button,
|
|
327
327
|
{
|
|
328
328
|
size: "sm",
|
|
329
329
|
variant: "primary",
|
|
@@ -335,7 +335,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
335
335
|
]
|
|
336
336
|
) : null,
|
|
337
337
|
hasChildren ? _vue.h.call(void 0,
|
|
338
|
-
|
|
338
|
+
_chunk4VLNT2EDjs.Button,
|
|
339
339
|
{
|
|
340
340
|
size: "sm",
|
|
341
341
|
variant: "ghost",
|
|
@@ -359,7 +359,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
359
359
|
(child, index) => renderNode(child, depth + 1, index === visibleChildren.length - 1)
|
|
360
360
|
),
|
|
361
361
|
showLoadMore ? _vue.h.call(void 0,
|
|
362
|
-
|
|
362
|
+
_chunk4VLNT2EDjs.Button,
|
|
363
363
|
{
|
|
364
364
|
size: "sm",
|
|
365
365
|
variant: "ghost",
|
|
@@ -379,7 +379,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
379
379
|
const ariaLabel = _nullishCoalesce(attrs["aria-label"], () => ( (attrs["aria-labelledby"] ? void 0 : "\u8BC4\u8BBA\u7EBF\u7A0B")));
|
|
380
380
|
const children = resolvedNodes.value.length === 0 ? [
|
|
381
381
|
_vue.h.call(void 0,
|
|
382
|
-
|
|
382
|
+
_chunkTGHB5XSTjs.Text,
|
|
383
383
|
{ tag: "div", size: "sm", color: "muted", class: "text-center py-8" },
|
|
384
384
|
{ default: () => props.emptyText }
|
|
385
385
|
)
|