@expcat/tigercat-vue 2.0.0-preview.2 → 2.0.0-preview.4
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-Z7QUWBFR.mjs → chunk-22NIOTDQ.mjs} +1 -1
- package/dist/{chunk-QD5ZCKPR.mjs → chunk-2XCXK3NQ.mjs} +1 -1
- package/dist/{chunk-KRWKO2JQ.mjs → chunk-342DH5CF.mjs} +1 -1
- package/dist/{chunk-JCGWN7WV.mjs → chunk-36TZA5BH.mjs} +1 -1
- package/dist/{chunk-NYWIBDO6.mjs → chunk-3KITFMBJ.mjs} +1 -1
- package/dist/{chunk-B47QLHVW.mjs → chunk-3NQUEQJT.mjs} +4 -4
- package/dist/{chunk-YSKG5FSX.mjs → chunk-42P6ZQ3J.mjs} +1 -1
- package/dist/{chunk-V5ZEPAWV.mjs → chunk-4BO6JNA6.mjs} +1 -1
- package/dist/{chunk-GL63FRI4.mjs → chunk-4SLYX5GK.mjs} +1 -1
- package/dist/{chunk-MJRFB6ZA.mjs → chunk-4ZZYQITT.mjs} +12 -8
- package/dist/{chunk-Z4SG7REU.mjs → chunk-5E4LINDO.mjs} +5 -3
- package/dist/{chunk-FHJ3R57L.mjs → chunk-5KPO3EDM.mjs} +5 -2
- package/dist/{chunk-CF4GX6BD.mjs → chunk-5RIHHZF6.mjs} +12 -4
- package/dist/{chunk-6FV2OMB7.mjs → chunk-6LORRRRB.mjs} +1 -1
- package/dist/{chunk-CW5TEG7N.mjs → chunk-7CPMXNLK.mjs} +1 -1
- package/dist/{chunk-EQDCFOWR.mjs → chunk-7FWNN6PO.mjs} +75 -22
- package/dist/{chunk-4IZUJJUO.mjs → chunk-7JT5ZIHC.mjs} +1 -1
- package/dist/{chunk-DBCSR4WY.mjs → chunk-7XDNHGDA.mjs} +9 -1
- package/dist/{chunk-6G5FEZLT.mjs → chunk-7XENCCN5.mjs} +3 -3
- package/dist/{chunk-2R3SOQSW.mjs → chunk-ANNYNTXR.mjs} +3 -3
- package/dist/{chunk-VFUBOKGT.mjs → chunk-AQMPCLX7.mjs} +6 -2
- package/dist/{chunk-GTFAC625.mjs → chunk-BGGHSTMP.mjs} +1 -1
- package/dist/{chunk-DOVBKVTB.mjs → chunk-CFH5T3V2.mjs} +3 -3
- package/dist/{chunk-IQNZ4UEA.mjs → chunk-D4APFWWS.mjs} +1 -1
- package/dist/{chunk-7LCUVR63.mjs → chunk-DCMRB3HR.mjs} +15 -4
- package/dist/{chunk-WYJ5WOT2.mjs → chunk-DWK5GUMB.mjs} +9 -3
- package/dist/{chunk-EVIZXEB2.mjs → chunk-E6EZHSGY.mjs} +1 -1
- package/dist/{chunk-2YPPXZ4I.mjs → chunk-EGIMTTZA.mjs} +1 -1
- package/dist/{chunk-4ZKSTL5P.mjs → chunk-EGIQPUEL.mjs} +1 -1
- package/dist/{chunk-UQK22ZMC.mjs → chunk-EWUHEW6W.mjs} +75 -22
- package/dist/{chunk-HIXWZVE5.mjs → chunk-FSJRNEZK.mjs} +23 -8
- package/dist/{chunk-Z4NJJ7NI.mjs → chunk-GWFVBG22.mjs} +5 -2
- package/dist/{chunk-GMIKUE67.mjs → chunk-H2SX7D23.mjs} +1 -1
- package/dist/{chunk-FAQL7HFW.mjs → chunk-HAUG3OP5.mjs} +1 -1
- package/dist/{chunk-ODDPVS27.mjs → chunk-IDUEWMWN.mjs} +1 -1
- package/dist/{chunk-GAEO66NY.mjs → chunk-IMFHJEUX.mjs} +1 -1
- package/dist/{chunk-GZWZP5AL.mjs → chunk-JHFM6IFO.mjs} +28 -6
- package/dist/{chunk-V5ANPH5R.mjs → chunk-JL3CN4UK.mjs} +1 -1
- package/dist/{chunk-RTZUIWCN.mjs → chunk-JQSIWPNM.mjs} +1 -1
- package/dist/{chunk-RAO7ZJWR.mjs → chunk-JVQPU4M2.mjs} +5 -2
- package/dist/{chunk-BGO2ILHM.mjs → chunk-JZCETBUV.mjs} +16 -3
- package/dist/{chunk-G7MOTNJO.mjs → chunk-KFJIZED5.mjs} +1 -1
- package/dist/{chunk-YJSWHGAR.mjs → chunk-LFENEILY.mjs} +9 -3
- package/dist/{chunk-36WSYHJU.mjs → chunk-LPZBXTJ6.mjs} +1 -1
- package/dist/{chunk-O4F75KHL.mjs → chunk-MAKOSWR6.mjs} +1 -1
- package/dist/{chunk-FDKJOVXG.mjs → chunk-MNSVJBNH.mjs} +1 -1
- package/dist/{chunk-GVLLO45Y.mjs → chunk-N7LWKAYS.mjs} +2 -2
- package/dist/{chunk-E7NE5HEC.mjs → chunk-NEEGXKJW.mjs} +1 -1
- package/dist/{chunk-JPCMI3A4.mjs → chunk-NGAA73CV.mjs} +1 -1
- package/dist/{chunk-AZXS4QWC.mjs → chunk-NNC75I7F.mjs} +1 -1
- package/dist/{chunk-6WF3336O.mjs → chunk-O6BN5R6J.mjs} +1 -1
- package/dist/{chunk-YZATP4VF.mjs → chunk-OHPXOLNB.mjs} +12 -3
- package/dist/{chunk-WBT3WSRE.mjs → chunk-OHR7IUBQ.mjs} +14 -2
- package/dist/chunk-P2LZ2MR5.mjs +6 -0
- package/dist/{chunk-7BU4TW5A.mjs → chunk-P5FDKBXG.mjs} +1 -1
- package/dist/{chunk-2QWGVJW6.mjs → chunk-PQBKN2NH.mjs} +24 -10
- package/dist/{chunk-LOX2KCML.mjs → chunk-PYRKFQ6J.mjs} +3 -3
- package/dist/{chunk-BJV62I73.mjs → chunk-QFG452MD.mjs} +2 -2
- package/dist/{chunk-E2GQSWHK.mjs → chunk-QMECRLHW.mjs} +21 -2
- package/dist/{chunk-UD4FNMJN.mjs → chunk-RANRYFUI.mjs} +23 -6
- package/dist/{chunk-FT2HWF7P.mjs → chunk-RSM6FOWX.mjs} +1 -1
- package/dist/{chunk-GHG2MCLM.mjs → chunk-SJ7W5I5H.mjs} +1 -1
- package/dist/{chunk-WLHOWOAY.mjs → chunk-SJINC5NF.mjs} +1 -1
- package/dist/{chunk-PLUABMUD.mjs → chunk-SWCK7TM7.mjs} +1 -1
- package/dist/chunk-TGXBCKOU.mjs +35 -0
- package/dist/{chunk-2JW3TOXM.mjs → chunk-TXZ7GY26.mjs} +4 -4
- package/dist/{chunk-EYR27UIE.mjs → chunk-U6OGGZBY.mjs} +25 -2
- package/dist/{chunk-DMQLA35L.mjs → chunk-U75YXWSA.mjs} +1 -1
- package/dist/{chunk-R6WFL6NI.mjs → chunk-UOJOJBEU.mjs} +18 -0
- package/dist/{chunk-IGT4QB7O.mjs → chunk-UUWTKCMY.mjs} +1 -1
- package/dist/{chunk-HLPSHCXO.mjs → chunk-V443QIJM.mjs} +5 -1
- package/dist/{chunk-TM73IWEY.mjs → chunk-XH63C62K.mjs} +1 -1
- package/dist/{chunk-DZFM7H3M.mjs → chunk-XLNK3Z2P.mjs} +26 -5
- package/dist/{chunk-4QCJUILG.mjs → chunk-ZFJNCAZX.mjs} +5 -2
- package/dist/{chunk-XZYFVOOS.mjs → chunk-ZFTRR3KW.mjs} +1 -1
- package/dist/components/ActivityFeed.d.mts +6 -6
- package/dist/components/ActivityFeed.mjs +8 -7
- package/dist/components/Alert.d.mts +3 -3
- package/dist/components/Anchor.d.mts +1 -1
- package/dist/components/AreaChart.d.mts +24 -5
- package/dist/components/AreaChart.mjs +2 -2
- package/dist/components/AutoComplete.d.mts +5 -5
- package/dist/components/AutoComplete.mjs +3 -2
- package/dist/components/Avatar.d.mts +1 -1
- package/dist/components/Avatar.mjs +4 -2
- package/dist/components/AvatarGroup.d.mts +25 -1
- package/dist/components/AvatarGroup.mjs +3 -1
- package/dist/components/BackTop.d.mts +1 -1
- package/dist/components/Badge.d.mts +4 -4
- package/dist/components/Badge.mjs +3 -2
- package/dist/components/BarChart.d.mts +23 -4
- package/dist/components/BarChart.mjs +2 -2
- package/dist/components/Breadcrumb.d.mts +3 -3
- package/dist/components/Button.d.mts +3 -3
- package/dist/components/ButtonGroup.d.mts +1 -1
- package/dist/components/Calendar.d.mts +2 -2
- package/dist/components/Calendar.mjs +3 -2
- package/dist/components/Card.d.mts +2 -2
- package/dist/components/Carousel.d.mts +21 -1
- package/dist/components/Carousel.mjs +3 -1
- package/dist/components/Cascader.d.mts +3 -3
- package/dist/components/Cascader.mjs +3 -2
- package/dist/components/ChartCanvas.d.mts +1 -1
- package/dist/components/ChartGrid.d.mts +1 -1
- package/dist/components/ChartLegend.d.mts +10 -0
- package/dist/components/ChartLegend.mjs +1 -1
- package/dist/components/ChatWindow.d.mts +4 -4
- package/dist/components/ChatWindow.mjs +8 -6
- package/dist/components/CodeEditor.d.mts +3 -3
- package/dist/components/Collapse.d.mts +1 -1
- package/dist/components/CollapsePanel.d.mts +1 -1
- package/dist/components/ColorPicker.mjs +1 -1
- package/dist/components/ColorSwatch.d.mts +2 -2
- package/dist/components/CommentThread.d.mts +2 -2
- package/dist/components/CommentThread.mjs +6 -5
- package/dist/components/ConfigProvider.d.mts +1 -1
- package/dist/components/ConfigProvider.mjs +2 -1
- package/dist/components/Container.d.mts +1 -1
- package/dist/components/Countdown.d.mts +2 -2
- package/dist/components/CronEditor.d.mts +24 -6
- package/dist/components/CronEditor.mjs +3 -1
- package/dist/components/CropUpload.d.mts +1 -1
- package/dist/components/CropUpload.mjs +5 -4
- package/dist/components/DataTableWithToolbar.d.mts +11 -11
- package/dist/components/DataTableWithToolbar.mjs +8 -6
- package/dist/components/DatePicker.d.mts +3 -3
- package/dist/components/DatePicker.mjs +3 -2
- package/dist/components/Descriptions.d.mts +2 -2
- package/dist/components/DonutChart.d.mts +3 -3
- package/dist/components/DonutChart.mjs +3 -3
- package/dist/components/Drawer.d.mts +4 -4
- package/dist/components/Drawer.mjs +3 -2
- package/dist/components/Empty.d.mts +1 -1
- package/dist/components/Empty.mjs +3 -2
- package/dist/components/FileManager.d.mts +2 -2
- package/dist/components/FileManager.mjs +3 -2
- package/dist/components/FloatButton.d.mts +4 -4
- package/dist/components/Form.d.mts +2 -2
- package/dist/components/Form.mjs +3 -2
- package/dist/components/FormItem.mjs +5 -3
- package/dist/components/FormItemContext.d.mts +11 -0
- package/dist/components/FormItemContext.mjs +6 -0
- package/dist/components/FormWizard.d.mts +5 -5
- package/dist/components/FormWizard.mjs +3 -2
- package/dist/components/FunnelChart.d.mts +3 -3
- package/dist/components/FunnelChart.mjs +2 -2
- package/dist/components/Gantt.d.mts +2 -2
- package/dist/components/GaugeChart.d.mts +2 -2
- package/dist/components/HeatmapChart.d.mts +3 -3
- package/dist/components/Icon.d.mts +20 -2
- package/dist/components/Icon.mjs +1 -1
- package/dist/components/Image.d.mts +2 -2
- package/dist/components/Image.mjs +4 -3
- package/dist/components/ImageAnnotation.d.mts +5 -5
- package/dist/components/ImageAnnotation.mjs +3 -2
- package/dist/components/ImageCropper.d.mts +1 -1
- package/dist/components/ImageCropper.mjs +3 -2
- package/dist/components/ImageGroup.mjs +4 -3
- package/dist/components/ImagePreview.mjs +3 -2
- package/dist/components/ImageViewer.d.mts +1 -1
- package/dist/components/ImageViewer.mjs +3 -2
- package/dist/components/InfiniteScroll.d.mts +3 -3
- package/dist/components/InfiniteScroll.mjs +3 -2
- package/dist/components/Input.d.mts +5 -5
- package/dist/components/Input.mjs +2 -1
- package/dist/components/InputGroup.d.mts +1 -1
- package/dist/components/InputNumber.d.mts +21 -1
- package/dist/components/InputNumber.mjs +1 -1
- package/dist/components/Kanban.d.mts +1 -1
- package/dist/components/Kanban.mjs +4 -3
- package/dist/components/LineChart.d.mts +23 -4
- package/dist/components/LineChart.mjs +2 -2
- package/dist/components/Link.d.mts +1 -1
- package/dist/components/List.d.mts +7 -7
- package/dist/components/List.mjs +3 -2
- package/dist/components/Loading.d.mts +6 -6
- package/dist/components/Loading.mjs +3 -2
- package/dist/components/MarkdownEditor.d.mts +24 -4
- package/dist/components/MarkdownEditor.mjs +3 -1
- package/dist/components/Mentions.d.mts +3 -3
- package/dist/components/Menu.d.mts +4 -4
- package/dist/components/Message.mjs +14 -1
- package/dist/components/MessageContainer.mjs +1 -1
- package/dist/components/MessageRoot.mjs +1 -1
- package/dist/components/Modal.d.mts +7 -7
- package/dist/components/Modal.mjs +3 -2
- package/dist/components/Notification.mjs +14 -1
- package/dist/components/NotificationCenter.d.mts +5 -5
- package/dist/components/NotificationCenter.mjs +6 -5
- package/dist/components/NotificationContainer.mjs +1 -1
- package/dist/components/NotificationRoot.mjs +1 -1
- package/dist/components/NumberKeyboard.d.mts +5 -5
- package/dist/components/NumberKeyboard.mjs +3 -2
- package/dist/components/OrgChart.d.mts +3 -3
- package/dist/components/Pagination.d.mts +4 -4
- package/dist/components/Pagination.mjs +3 -2
- package/dist/components/PieChart.d.mts +3 -3
- package/dist/components/PieChart.mjs +2 -2
- package/dist/components/Popconfirm.d.mts +2 -2
- package/dist/components/Popover.d.mts +1 -1
- package/dist/components/PrintLayout.mjs +1 -1
- package/dist/components/Progress.d.mts +3 -3
- package/dist/components/QRCode.d.mts +3 -3
- package/dist/components/QRCode.mjs +3 -2
- package/dist/components/RadarChart.d.mts +3 -3
- package/dist/components/RadarChart.mjs +2 -2
- package/dist/components/Rate.d.mts +19 -1
- package/dist/components/Rate.mjs +3 -1
- package/dist/components/Result.d.mts +1 -1
- package/dist/components/RichTextEditor.d.mts +23 -3
- package/dist/components/RichTextEditor.mjs +3 -1
- package/dist/components/Row.d.mts +1 -1
- package/dist/components/ScatterChart.d.mts +32 -3
- package/dist/components/ScatterChart.mjs +4 -2
- package/dist/components/ScrollSpy.d.mts +3 -3
- package/dist/components/Select.d.mts +4 -4
- package/dist/components/Select.mjs +3 -2
- package/dist/components/Signature.d.mts +5 -5
- package/dist/components/Signature.mjs +3 -2
- package/dist/components/Skeleton.d.mts +1 -1
- package/dist/components/Space.d.mts +2 -2
- package/dist/components/Splitter.d.mts +1 -1
- package/dist/components/Spotlight.d.mts +4 -4
- package/dist/components/Spotlight.mjs +3 -2
- package/dist/components/Stepper.d.mts +18 -0
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/Steps.d.mts +3 -3
- package/dist/components/SunburstChart.d.mts +2 -2
- package/dist/components/SunburstChart.mjs +2 -2
- package/dist/components/Table.d.mts +5 -5
- package/dist/components/Table.mjs +5 -4
- package/dist/components/Tabs.d.mts +22 -3
- package/dist/components/Tabs.mjs +3 -1
- package/dist/components/Tag.d.mts +2 -2
- package/dist/components/Tag.mjs +3 -2
- package/dist/components/TaskBoard.d.mts +2 -2
- package/dist/components/TaskBoard.mjs +3 -2
- package/dist/components/Text.d.mts +3 -3
- package/dist/components/Textarea.d.mts +3 -3
- package/dist/components/TimePicker.d.mts +4 -4
- package/dist/components/TimePicker.mjs +3 -2
- package/dist/components/Timeline.d.mts +4 -4
- package/dist/components/Timeline.mjs +3 -2
- package/dist/components/Tooltip.d.mts +1 -1
- package/dist/components/Tour.d.mts +2 -2
- package/dist/components/Tour.mjs +3 -2
- package/dist/components/Transfer.d.mts +18 -9
- package/dist/components/Transfer.mjs +3 -2
- package/dist/components/Tree.d.mts +4 -4
- package/dist/components/Tree.mjs +3 -2
- package/dist/components/TreeMapChart.d.mts +2 -2
- package/dist/components/TreeMapChart.mjs +2 -2
- package/dist/components/TreeSelect.d.mts +3 -3
- package/dist/components/TreeSelect.mjs +3 -2
- package/dist/components/Upload.d.mts +4 -4
- package/dist/components/Upload.mjs +3 -2
- package/dist/components/VirtualTable.d.mts +3 -3
- package/dist/components/VirtualTable.mjs +3 -2
- package/dist/components/Watermark.d.mts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +92 -0
- package/package.json +2 -2
- /package/dist/{chunk-4RKBXGHQ.mjs → chunk-GSB4MNEX.mjs} +0 -0
- /package/dist/{chunk-ESBUNMIG.mjs → chunk-Q3PELK37.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useTigerConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UOJOJBEU.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/TreeSelect.ts
|
|
6
6
|
import { defineComponent, h, ref, computed, watch, onBeforeUnmount } from "vue";
|
|
@@ -267,7 +267,10 @@ var TreeSelect = defineComponent({
|
|
|
267
267
|
"span",
|
|
268
268
|
{
|
|
269
269
|
class: "absolute right-2 top-1/2 -translate-y-1/2 text-[var(--tiger-treeselect-clear,var(--tiger-text-muted,#9ca3af))] hover:text-[var(--tiger-treeselect-clear-hover,var(--tiger-text,#111827))]",
|
|
270
|
-
"aria-label":
|
|
270
|
+
"aria-label": resolveLocaleText(
|
|
271
|
+
"Clear selection",
|
|
272
|
+
mergedLocale.value?.common?.clearText
|
|
273
|
+
),
|
|
271
274
|
onClick: handleClear
|
|
272
275
|
},
|
|
273
276
|
[ClearIcon]
|
|
@@ -297,7 +300,10 @@ var TreeSelect = defineComponent({
|
|
|
297
300
|
mergedLocale.value?.common?.searchPlaceholder
|
|
298
301
|
),
|
|
299
302
|
value: searchQuery.value,
|
|
300
|
-
"aria-label":
|
|
303
|
+
"aria-label": resolveLocaleText(
|
|
304
|
+
"Search tree",
|
|
305
|
+
mergedLocale.value?.common?.searchPlaceholder
|
|
306
|
+
),
|
|
301
307
|
onInput: (e) => updateSearchValue(e.target.value)
|
|
302
308
|
}) : null,
|
|
303
309
|
// Tree nodes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useTigerConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UOJOJBEU.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/Select.ts
|
|
6
6
|
import { defineComponent, computed, ref, h, watch, nextTick, onBeforeUnmount } from "vue";
|
|
@@ -591,7 +591,7 @@ var Select = defineComponent({
|
|
|
591
591
|
{
|
|
592
592
|
ref: triggerRef,
|
|
593
593
|
type: "button",
|
|
594
|
-
class: classNames(triggerClasses, "pr-
|
|
594
|
+
class: classNames(triggerClasses, showClearButton.value ? "pr-14" : "pr-9"),
|
|
595
595
|
disabled: props.disabled,
|
|
596
596
|
onClick: toggleDropdown,
|
|
597
597
|
onKeydown: handleTriggerKeyDown,
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FormContextKey
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HAUG3OP5.mjs";
|
|
4
|
+
import {
|
|
5
|
+
FORM_ITEM_CONTROL_INJECTION_KEY
|
|
6
|
+
} from "./chunk-P2LZ2MR5.mjs";
|
|
4
7
|
|
|
5
8
|
// src/components/FormItem.ts
|
|
6
9
|
import {
|
|
7
10
|
defineComponent,
|
|
8
11
|
inject,
|
|
12
|
+
provide,
|
|
9
13
|
computed,
|
|
10
14
|
ref,
|
|
11
15
|
watch,
|
|
@@ -222,6 +226,13 @@ var FormItem = defineComponent({
|
|
|
222
226
|
const hasError = computed(() => {
|
|
223
227
|
return !!errorMessage.value;
|
|
224
228
|
});
|
|
229
|
+
provide(FORM_ITEM_CONTROL_INJECTION_KEY, {
|
|
230
|
+
status: computed(() => hasError.value ? "error" : void 0),
|
|
231
|
+
errorMessage: computed(
|
|
232
|
+
() => hasError.value && !props.showMessage ? errorMessage.value : void 0
|
|
233
|
+
),
|
|
234
|
+
shakeTrigger: computed(() => hasError.value ? shakeTrigger.value : void 0)
|
|
235
|
+
});
|
|
225
236
|
const describedById = computed(() => {
|
|
226
237
|
return props.showMessage && hasError.value ? errorId : void 0;
|
|
227
238
|
});
|
|
@@ -279,8 +290,6 @@ var FormItem = defineComponent({
|
|
|
279
290
|
{
|
|
280
291
|
id: effectiveFieldId,
|
|
281
292
|
status: !isNativeElement && hasError.value ? "error" : existingProps.status,
|
|
282
|
-
errorMessage: !isNativeElement && hasError.value && !props.showMessage ? errorMessage.value : existingProps.errorMessage,
|
|
283
|
-
_shakeTrigger: !isNativeElement && hasError.value ? shakeTrigger.value : void 0,
|
|
284
293
|
"aria-invalid": hasError.value ? "true" : existingProps["aria-invalid"],
|
|
285
294
|
"aria-required": isRequired.value ? "true" : existingProps["aria-required"],
|
|
286
295
|
disabled: conditionState.value.disabled || formContext.value?.disabled ? true : existingProps.disabled,
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-UOJOJBEU.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/RichTextEditor.ts
|
|
2
6
|
import { defineComponent, h, ref, computed, watch, onMounted, onBeforeUnmount } from "vue";
|
|
3
7
|
import {
|
|
@@ -15,7 +19,9 @@ import {
|
|
|
15
19
|
isContentEmpty,
|
|
16
20
|
parseHeight,
|
|
17
21
|
builtinRichTextEngine,
|
|
18
|
-
isToolbarSeparator
|
|
22
|
+
isToolbarSeparator,
|
|
23
|
+
mergeTigerLocale,
|
|
24
|
+
getRichTextEditorLabels
|
|
19
25
|
} from "@expcat/tigercat-core";
|
|
20
26
|
var RichTextEditor = defineComponent({
|
|
21
27
|
name: "TigerRichTextEditor",
|
|
@@ -37,6 +43,8 @@ var RichTextEditor = defineComponent({
|
|
|
37
43
|
},
|
|
38
44
|
readOnly: { type: Boolean, default: false },
|
|
39
45
|
disabled: { type: Boolean, default: false },
|
|
46
|
+
locale: { type: Object, default: void 0 },
|
|
47
|
+
labels: { type: Object, default: void 0 },
|
|
40
48
|
className: { type: String, default: void 0 },
|
|
41
49
|
engine: {
|
|
42
50
|
type: Object,
|
|
@@ -45,6 +53,7 @@ var RichTextEditor = defineComponent({
|
|
|
45
53
|
},
|
|
46
54
|
emits: ["update:value", "change"],
|
|
47
55
|
setup(props, { emit, attrs }) {
|
|
56
|
+
const config = useTigerConfig();
|
|
48
57
|
const editorRef = ref(null);
|
|
49
58
|
const internalValue = ref(props.defaultValue || "");
|
|
50
59
|
const activeFormats = ref(/* @__PURE__ */ new Set());
|
|
@@ -55,6 +64,8 @@ var RichTextEditor = defineComponent({
|
|
|
55
64
|
);
|
|
56
65
|
const toolbarItems = computed(() => props.toolbar ?? defaultToolbar);
|
|
57
66
|
const isEmpty = computed(() => isContentEmpty(currentContent.value));
|
|
67
|
+
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
68
|
+
const labels = computed(() => getRichTextEditorLabels(mergedLocale.value, props.labels));
|
|
58
69
|
watch(
|
|
59
70
|
() => props.value,
|
|
60
71
|
(newVal) => {
|
|
@@ -123,7 +134,7 @@ var RichTextEditor = defineComponent({
|
|
|
123
134
|
{
|
|
124
135
|
class: richTextToolbarClasses,
|
|
125
136
|
role: "toolbar",
|
|
126
|
-
"aria-label":
|
|
137
|
+
"aria-label": labels.value.formattingToolbarAriaLabel
|
|
127
138
|
},
|
|
128
139
|
toolbarItems.value.map((item, idx) => {
|
|
129
140
|
if (isToolbarSeparator(item)) {
|
|
@@ -158,6 +169,7 @@ var RichTextEditor = defineComponent({
|
|
|
158
169
|
ref: editorRef,
|
|
159
170
|
class: editorAreaClasses.value,
|
|
160
171
|
role: "textbox",
|
|
172
|
+
"aria-label": labels.value.editorAriaLabel,
|
|
161
173
|
"aria-multiline": true,
|
|
162
174
|
"aria-readonly": props.readOnly || void 0,
|
|
163
175
|
"aria-disabled": props.disabled || void 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useTigerConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UOJOJBEU.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/Transfer.ts
|
|
6
6
|
import { defineComponent, h, ref, computed } from "vue";
|
|
@@ -26,7 +26,8 @@ import {
|
|
|
26
26
|
chevronLeftSolidIcon20PathD,
|
|
27
27
|
chevronRightSolidIcon20PathD,
|
|
28
28
|
resolveLocaleText,
|
|
29
|
-
mergeTigerLocale
|
|
29
|
+
mergeTigerLocale,
|
|
30
|
+
getTransferLabels
|
|
30
31
|
} from "@expcat/tigercat-core";
|
|
31
32
|
function ArrowIcon(pathD) {
|
|
32
33
|
return h(
|
|
@@ -87,11 +88,11 @@ var Transfer = defineComponent({
|
|
|
87
88
|
},
|
|
88
89
|
sourceTitle: {
|
|
89
90
|
type: String,
|
|
90
|
-
default:
|
|
91
|
+
default: void 0
|
|
91
92
|
},
|
|
92
93
|
targetTitle: {
|
|
93
94
|
type: String,
|
|
94
|
-
default:
|
|
95
|
+
default: void 0
|
|
95
96
|
},
|
|
96
97
|
emptyText: {
|
|
97
98
|
type: String,
|
|
@@ -107,12 +108,23 @@ var Transfer = defineComponent({
|
|
|
107
108
|
locale: {
|
|
108
109
|
type: Object,
|
|
109
110
|
default: void 0
|
|
111
|
+
},
|
|
112
|
+
labels: {
|
|
113
|
+
type: Object,
|
|
114
|
+
default: void 0
|
|
110
115
|
}
|
|
111
116
|
},
|
|
112
117
|
emits: ["update:modelValue", "update:searchValue", "change", "search-change"],
|
|
113
118
|
setup(props, { emit, attrs }) {
|
|
114
119
|
const config = useTigerConfig();
|
|
115
120
|
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
121
|
+
const labels = computed(
|
|
122
|
+
() => getTransferLabels(mergedLocale.value, {
|
|
123
|
+
...props.labels,
|
|
124
|
+
sourceTitle: props.sourceTitle,
|
|
125
|
+
targetTitle: props.targetTitle
|
|
126
|
+
})
|
|
127
|
+
);
|
|
116
128
|
const sourceSelectedKeys = ref(/* @__PURE__ */ new Set());
|
|
117
129
|
const targetSelectedKeys = ref(/* @__PURE__ */ new Set());
|
|
118
130
|
const uncontrolledSearchValue = ref({ ...props.defaultSearchValue });
|
|
@@ -214,7 +226,7 @@ var Transfer = defineComponent({
|
|
|
214
226
|
mergedLocale.value?.common?.searchPlaceholder
|
|
215
227
|
),
|
|
216
228
|
value: searchValue,
|
|
217
|
-
"aria-label":
|
|
229
|
+
"aria-label": labels.value.searchAriaLabel.replace("{title}", title),
|
|
218
230
|
onInput: (e) => onSearchInput(e.target.value)
|
|
219
231
|
}) : null,
|
|
220
232
|
// Body
|
|
@@ -222,7 +234,9 @@ var Transfer = defineComponent({
|
|
|
222
234
|
"div",
|
|
223
235
|
{
|
|
224
236
|
class: transferPanelBodyClasses,
|
|
225
|
-
...getPickerListboxAria({
|
|
237
|
+
...getPickerListboxAria({
|
|
238
|
+
label: labels.value.itemsAriaLabel.replace("{title}", title)
|
|
239
|
+
})
|
|
226
240
|
},
|
|
227
241
|
items.length > 0 ? items.map((item) => {
|
|
228
242
|
const isSelected = selectedKeys.has(item.key);
|
|
@@ -266,7 +280,7 @@ var Transfer = defineComponent({
|
|
|
266
280
|
return h("div", { class: containerClasses }, [
|
|
267
281
|
// Source panel
|
|
268
282
|
renderPanel(
|
|
269
|
-
|
|
283
|
+
labels.value.sourceTitle,
|
|
270
284
|
filteredSourceItems.value,
|
|
271
285
|
sourceSelectedKeys.value,
|
|
272
286
|
toggleSourceItem,
|
|
@@ -281,7 +295,7 @@ var Transfer = defineComponent({
|
|
|
281
295
|
type: "button",
|
|
282
296
|
class: getTransferButtonClasses(!canMoveRight.value),
|
|
283
297
|
disabled: !canMoveRight.value,
|
|
284
|
-
"aria-label":
|
|
298
|
+
"aria-label": labels.value.moveToTargetAriaLabel,
|
|
285
299
|
onClick: moveRight
|
|
286
300
|
},
|
|
287
301
|
[ArrowIcon(chevronRightSolidIcon20PathD)]
|
|
@@ -292,7 +306,7 @@ var Transfer = defineComponent({
|
|
|
292
306
|
type: "button",
|
|
293
307
|
class: getTransferButtonClasses(!canMoveLeft.value),
|
|
294
308
|
disabled: !canMoveLeft.value,
|
|
295
|
-
"aria-label":
|
|
309
|
+
"aria-label": labels.value.moveToSourceAriaLabel,
|
|
296
310
|
onClick: moveLeft
|
|
297
311
|
},
|
|
298
312
|
[ArrowIcon(chevronLeftSolidIcon20PathD)]
|
|
@@ -300,7 +314,7 @@ var Transfer = defineComponent({
|
|
|
300
314
|
]),
|
|
301
315
|
// Target panel
|
|
302
316
|
renderPanel(
|
|
303
|
-
|
|
317
|
+
labels.value.targetTitle,
|
|
304
318
|
filteredTargetItems.value,
|
|
305
319
|
targetSelectedKeys.value,
|
|
306
320
|
toggleTargetItem,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-HS4YQGZQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Input
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XLNK3Z2P.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Empty
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SJINC5NF.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Textarea
|
|
12
12
|
} from "./chunk-2OI6GWOT.mjs";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-YZBQ6IR7.mjs";
|
|
16
16
|
import {
|
|
17
17
|
Avatar
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZFTRR3KW.mjs";
|
|
19
19
|
|
|
20
20
|
// src/components/ChatWindow.ts
|
|
21
21
|
import { defineComponent, h, computed, ref, watch, onMounted, onUpdated } from "vue";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-YZBQ6IR7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Tag
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-342DH5CF.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Text
|
|
12
12
|
} from "./chunk-NN6AINLG.mjs";
|
|
13
13
|
import {
|
|
14
14
|
Avatar
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZFTRR3KW.mjs";
|
|
16
16
|
|
|
17
17
|
// src/components/CommentThread.ts
|
|
18
18
|
import { defineComponent, computed, h, ref } from "vue";
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
// src/components/PrintLayout.ts
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
defineComponent,
|
|
4
|
+
h,
|
|
5
|
+
computed,
|
|
6
|
+
provide,
|
|
7
|
+
inject
|
|
8
|
+
} from "vue";
|
|
3
9
|
import {
|
|
4
10
|
classNames,
|
|
5
11
|
coerceClassValue,
|
|
@@ -8,6 +14,9 @@ import {
|
|
|
8
14
|
printLayoutFooterClasses,
|
|
9
15
|
printLayoutPageBreakClasses
|
|
10
16
|
} from "@expcat/tigercat-core";
|
|
17
|
+
var PrintLayoutShowPageBreaksKey = /* @__PURE__ */ Symbol(
|
|
18
|
+
"tigerPrintShowPageBreaks"
|
|
19
|
+
);
|
|
11
20
|
var PrintLayout = defineComponent({
|
|
12
21
|
name: "TigerPrintLayout",
|
|
13
22
|
inheritAttrs: false,
|
|
@@ -46,6 +55,10 @@ var PrintLayout = defineComponent({
|
|
|
46
55
|
}
|
|
47
56
|
},
|
|
48
57
|
setup(props, { slots, attrs }) {
|
|
58
|
+
provide(
|
|
59
|
+
PrintLayoutShowPageBreaksKey,
|
|
60
|
+
computed(() => props.showPageBreaks)
|
|
61
|
+
);
|
|
49
62
|
const classes = computed(
|
|
50
63
|
() => classNames(
|
|
51
64
|
getPrintLayoutClasses(props.pageSize, props.orientation, props.className),
|
|
@@ -87,9 +100,15 @@ var PrintLayout = defineComponent({
|
|
|
87
100
|
var PrintPageBreak = defineComponent({
|
|
88
101
|
name: "TigerPrintPageBreak",
|
|
89
102
|
setup(_, { attrs }) {
|
|
103
|
+
const showPageBreaks = inject(PrintLayoutShowPageBreaksKey, null);
|
|
90
104
|
return () => h("div", {
|
|
91
105
|
...attrs,
|
|
92
|
-
|
|
106
|
+
// Always force the print page break; only show the on-screen dashed indicator
|
|
107
|
+
// when the enclosing PrintLayout has `showPageBreaks` enabled.
|
|
108
|
+
class: classNames(
|
|
109
|
+
(showPageBreaks?.value ?? true) && printLayoutPageBreakClasses,
|
|
110
|
+
"print:break-before-page"
|
|
111
|
+
),
|
|
93
112
|
"aria-hidden": "true"
|
|
94
113
|
});
|
|
95
114
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-UOJOJBEU.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/Carousel.ts
|
|
2
6
|
import {
|
|
3
7
|
defineComponent,
|
|
@@ -30,7 +34,9 @@ import {
|
|
|
30
34
|
resolveCarouselSwipeDirection,
|
|
31
35
|
createCarouselAutoplayController,
|
|
32
36
|
carouselPrevArrowPath,
|
|
33
|
-
carouselNextArrowPath
|
|
37
|
+
carouselNextArrowPath,
|
|
38
|
+
mergeTigerLocale,
|
|
39
|
+
getCarouselLabels
|
|
34
40
|
} from "@expcat/tigercat-core";
|
|
35
41
|
var Carousel = defineComponent({
|
|
36
42
|
name: "TigerCarousel",
|
|
@@ -143,10 +149,19 @@ var Carousel = defineComponent({
|
|
|
143
149
|
style: {
|
|
144
150
|
type: Object,
|
|
145
151
|
default: void 0
|
|
152
|
+
},
|
|
153
|
+
locale: {
|
|
154
|
+
type: Object,
|
|
155
|
+
default: void 0
|
|
156
|
+
},
|
|
157
|
+
labels: {
|
|
158
|
+
type: Object,
|
|
159
|
+
default: void 0
|
|
146
160
|
}
|
|
147
161
|
},
|
|
148
162
|
emits: ["change", "before-change", "update:currentIndex"],
|
|
149
163
|
setup(props, { slots, emit, attrs, expose }) {
|
|
164
|
+
const config = useTigerConfig();
|
|
150
165
|
const internalCurrentIndex = ref(props.defaultCurrentIndex);
|
|
151
166
|
const isPaused = ref(false);
|
|
152
167
|
const slideCount = ref(0);
|
|
@@ -161,6 +176,8 @@ var Carousel = defineComponent({
|
|
|
161
176
|
slideCount.value
|
|
162
177
|
)
|
|
163
178
|
);
|
|
179
|
+
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
180
|
+
const labels = computed(() => getCarouselLabels(mergedLocale.value, props.labels));
|
|
164
181
|
const containerClasses = computed(() => {
|
|
165
182
|
return classNames(getCarouselContainerClasses(props.className), coerceClassValue(attrs.class));
|
|
166
183
|
});
|
|
@@ -337,7 +354,7 @@ var Carousel = defineComponent({
|
|
|
337
354
|
class: getCarouselArrowClasses(type, disabled),
|
|
338
355
|
onClick,
|
|
339
356
|
disabled,
|
|
340
|
-
"aria-label": type === "prev" ?
|
|
357
|
+
"aria-label": type === "prev" ? labels.value.previousSlideAriaLabel : labels.value.nextSlideAriaLabel
|
|
341
358
|
},
|
|
342
359
|
h(
|
|
343
360
|
"svg",
|
|
@@ -369,7 +386,7 @@ var Carousel = defineComponent({
|
|
|
369
386
|
key: index,
|
|
370
387
|
class: getCarouselDotClasses(index === currentIndex.value),
|
|
371
388
|
onClick: () => goTo(index),
|
|
372
|
-
"aria-label":
|
|
389
|
+
"aria-label": labels.value.goToSlideAriaLabel.replace("{index}", String(index + 1)),
|
|
373
390
|
"aria-current": index === currentIndex.value ? "true" : "false"
|
|
374
391
|
})
|
|
375
392
|
);
|
|
@@ -378,7 +395,7 @@ var Carousel = defineComponent({
|
|
|
378
395
|
{
|
|
379
396
|
class: dotsClasses.value,
|
|
380
397
|
role: "tablist",
|
|
381
|
-
"aria-label":
|
|
398
|
+
"aria-label": labels.value.navigationAriaLabel
|
|
382
399
|
},
|
|
383
400
|
dots
|
|
384
401
|
);
|
|
@@ -393,7 +410,7 @@ var Carousel = defineComponent({
|
|
|
393
410
|
style: props.effect === "fade" ? slideStyle.value : void 0,
|
|
394
411
|
role: "group",
|
|
395
412
|
"aria-roledescription": "slide",
|
|
396
|
-
"aria-label":
|
|
413
|
+
"aria-label": labels.value.slideAriaLabel.replace("{index}", String(index + 1)).replace("{total}", String(slides.length)),
|
|
397
414
|
"aria-hidden": index !== currentIndex.value
|
|
398
415
|
},
|
|
399
416
|
slide
|
|
@@ -425,7 +442,7 @@ var Carousel = defineComponent({
|
|
|
425
442
|
style: props.style,
|
|
426
443
|
role: "region",
|
|
427
444
|
"aria-roledescription": "carousel",
|
|
428
|
-
"aria-label":
|
|
445
|
+
"aria-label": labels.value.ariaLabel,
|
|
429
446
|
onMouseenter: handleMouseEnter,
|
|
430
447
|
onMouseleave: handleMouseLeave,
|
|
431
448
|
onFocusin: handleFocus,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// src/utils/global-locale.ts
|
|
2
|
+
var nextGlobalTigerLocaleId = 0;
|
|
3
|
+
var globalTigerLocaleStack = [];
|
|
4
|
+
function createGlobalTigerLocaleHandle(locale) {
|
|
5
|
+
const entry = {
|
|
6
|
+
id: ++nextGlobalTigerLocaleId,
|
|
7
|
+
locale
|
|
8
|
+
};
|
|
9
|
+
globalTigerLocaleStack.push(entry);
|
|
10
|
+
return {
|
|
11
|
+
update(nextLocale) {
|
|
12
|
+
entry.locale = nextLocale;
|
|
13
|
+
},
|
|
14
|
+
dispose() {
|
|
15
|
+
const index = globalTigerLocaleStack.findIndex((item) => item.id === entry.id);
|
|
16
|
+
if (index !== -1) {
|
|
17
|
+
globalTigerLocaleStack.splice(index, 1);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function getGlobalTigerLocale() {
|
|
23
|
+
for (let index = globalTigerLocaleStack.length - 1; index >= 0; index -= 1) {
|
|
24
|
+
const locale = globalTigerLocaleStack[index]?.locale;
|
|
25
|
+
if (locale) {
|
|
26
|
+
return locale;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return void 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
createGlobalTigerLocaleHandle,
|
|
34
|
+
getGlobalTigerLocale
|
|
35
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Table
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ANNYNTXR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Select
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-N7LWKAYS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Popover
|
|
9
9
|
} from "./chunk-SYRRMZT2.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Input
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XLNK3Z2P.mjs";
|
|
13
13
|
import {
|
|
14
14
|
Checkbox
|
|
15
15
|
} from "./chunk-MYKKKVGK.mjs";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-YZBQ6IR7.mjs";
|
|
19
19
|
import {
|
|
20
20
|
useTigerConfig
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UOJOJBEU.mjs";
|
|
22
22
|
|
|
23
23
|
// src/components/DataTableWithToolbar.ts
|
|
24
24
|
import {
|