@expcat/tigercat-vue 1.2.33 → 1.2.37
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-F5S26BR3.mjs → chunk-25VVIM45.mjs} +8 -2
- package/dist/{chunk-MCRT64VS.js → chunk-2HT6YGRY.js} +12 -2
- package/dist/{chunk-TOE2XSEO.js → chunk-3EVCDIZE.js} +4 -4
- package/dist/{chunk-A5HHG53Z.js → chunk-6DYGPOYH.js} +4 -4
- package/dist/{chunk-2LNNB55E.js → chunk-6XI4VDU4.js} +3 -3
- package/dist/{chunk-7RIWAO2A.mjs → chunk-BDTPFPSB.mjs} +2 -1
- package/dist/{chunk-6G5IMGTC.js → chunk-BXS7OSVF.js} +37 -35
- package/dist/{chunk-6CSTMVB2.js → chunk-DMNOK6OP.js} +27 -11
- package/dist/{chunk-JDCVS4SJ.js → chunk-EQW6IUHG.js} +2 -1
- package/dist/{chunk-NZUQ2KCW.mjs → chunk-F7WZCYYD.mjs} +19 -5
- package/dist/{chunk-YR75F34D.mjs → chunk-FATIMV7O.mjs} +1 -1
- package/dist/{chunk-FAYSOSR7.js → chunk-FKCZSBM6.js} +4 -4
- package/dist/{chunk-33YTJPF7.js → chunk-HSMN5FWL.js} +4 -4
- package/dist/{chunk-DEDRUUK4.js → chunk-ICECZVMX.js} +2 -2
- package/dist/{chunk-PHWAXBFG.mjs → chunk-ILTIUESE.mjs} +11 -1
- package/dist/{chunk-ZNGRSXFK.js → chunk-JE7AWY34.js} +3 -3
- package/dist/{chunk-OF4MY6EC.mjs → chunk-JKJ7HMFO.mjs} +1 -1
- package/dist/{chunk-CWQOEU6G.js → chunk-JNIKT6AL.js} +5 -5
- package/dist/{chunk-QO2JYX6Q.js → chunk-LAWBHGPK.js} +19 -5
- package/dist/{chunk-663C2UX7.js → chunk-LZHCKW2Z.js} +2 -2
- package/dist/{chunk-MVZGR3ZB.js → chunk-MD7S2A55.js} +2 -2
- package/dist/{chunk-IXJSZIAE.mjs → chunk-NP6KUJ4X.mjs} +1 -1
- package/dist/{chunk-RHAIJVMW.mjs → chunk-NYH6GSP7.mjs} +1 -1
- package/dist/{chunk-CBECE4ZO.mjs → chunk-OGDZTDZ6.mjs} +1 -1
- package/dist/{chunk-EU4IGIPC.js → chunk-OKLDFVDJ.js} +8 -2
- package/dist/{chunk-GVZRR2WP.mjs → chunk-PC2FNA4J.mjs} +2 -2
- package/dist/{chunk-4GYBJBFJ.mjs → chunk-QIXG7OIN.mjs} +1 -1
- package/dist/{chunk-IQZX54SQ.js → chunk-QJLFHHI2.js} +21 -7
- package/dist/{chunk-OA3HAUBT.js → chunk-RRI3F52B.js} +29 -9
- package/dist/{chunk-LWDA7ABQ.js → chunk-S3KTGULC.js} +4 -4
- package/dist/{chunk-DSHV7EAX.mjs → chunk-SZFEDBLT.mjs} +17 -3
- package/dist/{chunk-4CWRNKPE.mjs → chunk-U2PPTMQX.mjs} +2 -2
- package/dist/{chunk-4J5EK3WY.mjs → chunk-UETVHC4K.mjs} +1 -1
- package/dist/{chunk-DBTS5QBX.mjs → chunk-UJZPEXF5.mjs} +1 -1
- package/dist/{chunk-4Z4XMXCO.mjs → chunk-V2IDOR7Y.mjs} +23 -7
- package/dist/{chunk-H5JDEKIV.js → chunk-V6T5GRLE.js} +2 -2
- package/dist/{chunk-7M4UUCJF.mjs → chunk-W54LFA7A.mjs} +30 -10
- package/dist/{chunk-OZLSZQXF.mjs → chunk-WH4J6PHF.mjs} +37 -35
- package/dist/{chunk-FKLK6RHZ.js → chunk-WIQPVVUQ.js} +2 -2
- package/dist/{chunk-BMT5PGAQ.mjs → chunk-WT3LV7OQ.mjs} +2 -2
- package/dist/{chunk-PCUUTKQZ.mjs → chunk-XQRKFOXS.mjs} +1 -1
- package/dist/{chunk-AQE5RZDE.mjs → chunk-ZDKGABPQ.mjs} +1 -1
- package/dist/components/ActivityFeed.js +4 -4
- package/dist/components/ActivityFeed.mjs +3 -3
- package/dist/components/CropUpload.js +5 -4
- package/dist/components/CropUpload.mjs +4 -3
- package/dist/components/DataTableWithToolbar.d.mts +21 -1
- package/dist/components/DataTableWithToolbar.d.ts +21 -1
- package/dist/components/DataTableWithToolbar.js +3 -3
- package/dist/components/DataTableWithToolbar.mjs +2 -2
- package/dist/components/Drawer.d.mts +17 -1
- package/dist/components/Drawer.d.ts +17 -1
- package/dist/components/Drawer.js +4 -3
- package/dist/components/Drawer.mjs +3 -2
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Dropdown.mjs +2 -2
- package/dist/components/DropdownItem.js +4 -4
- package/dist/components/DropdownItem.mjs +3 -3
- package/dist/components/DropdownMenu.js +4 -4
- package/dist/components/DropdownMenu.mjs +2 -2
- package/dist/components/FormWizard.d.mts +11 -1
- package/dist/components/FormWizard.d.ts +11 -1
- package/dist/components/FormWizard.js +2 -2
- package/dist/components/FormWizard.mjs +1 -1
- package/dist/components/Kanban.js +3 -3
- package/dist/components/Kanban.mjs +2 -2
- package/dist/components/Loading.js +3 -3
- package/dist/components/Loading.mjs +2 -2
- package/dist/components/Menu.js +3 -3
- package/dist/components/Menu.mjs +2 -2
- package/dist/components/MenuItem.js +4 -4
- package/dist/components/MenuItem.mjs +2 -2
- package/dist/components/MenuItemGroup.js +4 -4
- package/dist/components/MenuItemGroup.mjs +2 -2
- package/dist/components/Modal.d.mts +17 -1
- package/dist/components/Modal.d.ts +17 -1
- package/dist/components/Modal.js +4 -3
- package/dist/components/Modal.mjs +3 -2
- package/dist/components/NotificationCenter.js +4 -4
- package/dist/components/NotificationCenter.mjs +3 -3
- package/dist/components/Pagination.d.mts +21 -1
- package/dist/components/Pagination.d.ts +21 -1
- package/dist/components/Pagination.js +3 -2
- package/dist/components/Pagination.mjs +2 -1
- package/dist/components/Popconfirm.js +4 -4
- package/dist/components/Popconfirm.mjs +3 -3
- package/dist/components/Popover.js +4 -4
- package/dist/components/Popover.mjs +3 -3
- package/dist/components/Spotlight.js +3 -3
- package/dist/components/Spotlight.mjs +2 -2
- package/dist/components/SubMenu.js +4 -4
- package/dist/components/SubMenu.mjs +2 -2
- package/dist/components/Table.d.mts +14 -4
- package/dist/components/Table.d.ts +14 -4
- package/dist/components/Table.js +2 -2
- package/dist/components/Table.mjs +1 -1
- package/dist/components/TaskBoard.d.mts +11 -1
- package/dist/components/TaskBoard.d.ts +11 -1
- package/dist/components/TaskBoard.js +2 -2
- package/dist/components/TaskBoard.mjs +1 -1
- package/dist/components/Tooltip.js +4 -4
- package/dist/components/Tooltip.mjs +3 -3
- package/dist/index.js +22 -22
- package/dist/index.mjs +21 -21
- package/package.json +2 -2
|
@@ -81,6 +81,10 @@ var TaskBoard = defineComponent({
|
|
|
81
81
|
type: Object,
|
|
82
82
|
default: void 0
|
|
83
83
|
},
|
|
84
|
+
labels: {
|
|
85
|
+
type: Object,
|
|
86
|
+
default: void 0
|
|
87
|
+
},
|
|
84
88
|
className: {
|
|
85
89
|
type: String,
|
|
86
90
|
default: void 0
|
|
@@ -94,7 +98,7 @@ var TaskBoard = defineComponent({
|
|
|
94
98
|
setup(props, { slots, attrs, emit }) {
|
|
95
99
|
const config = useTigerConfig();
|
|
96
100
|
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
97
|
-
const labels = computed(() => getTaskBoardLabels(mergedLocale.value));
|
|
101
|
+
const labels = computed(() => getTaskBoardLabels(mergedLocale.value, props.labels));
|
|
98
102
|
const innerColumns = ref(props.columns ?? props.defaultColumns ?? []);
|
|
99
103
|
watch(
|
|
100
104
|
() => props.columns,
|
|
@@ -251,7 +255,9 @@ var TaskBoard = defineComponent({
|
|
|
251
255
|
`(${column.cards.length}/${column.wipLimit})`
|
|
252
256
|
) : h(
|
|
253
257
|
"span",
|
|
254
|
-
{
|
|
258
|
+
{
|
|
259
|
+
class: "ml-2 text-xs font-normal px-1.5 py-0.5 rounded bg-[var(--tiger-border,#e5e7eb)]/20 text-[var(--tiger-text-secondary,#6b7280)] opacity-70"
|
|
260
|
+
},
|
|
255
261
|
String(column.cards.length)
|
|
256
262
|
)
|
|
257
263
|
]),
|
|
@@ -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 _chunkRRI3F52Bjs = require('./chunk-RRI3F52B.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkBGMAWKWVjs = require('./chunk-BGMAWKWV.js');
|
|
@@ -101,6 +101,14 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
101
101
|
type: [String, Number],
|
|
102
102
|
default: void 0
|
|
103
103
|
},
|
|
104
|
+
responsiveMode: {
|
|
105
|
+
type: String,
|
|
106
|
+
default: "scroll"
|
|
107
|
+
},
|
|
108
|
+
cardBreakpoint: {
|
|
109
|
+
type: String,
|
|
110
|
+
default: "sm"
|
|
111
|
+
},
|
|
104
112
|
toolbar: {
|
|
105
113
|
type: Object,
|
|
106
114
|
default: void 0
|
|
@@ -403,6 +411,8 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
403
411
|
stickyHeader: props.stickyHeader,
|
|
404
412
|
maxHeight: props.maxHeight,
|
|
405
413
|
tableLayout: props.tableLayout,
|
|
414
|
+
responsiveMode: props.responsiveMode,
|
|
415
|
+
cardBreakpoint: props.cardBreakpoint,
|
|
406
416
|
class: props.bordered ? "border-none rounded-none shadow-none" : void 0,
|
|
407
417
|
onSelectionChange: (keys) => emit("selection-change", keys),
|
|
408
418
|
onPageChange: handleTablePageChange
|
|
@@ -414,7 +424,7 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
414
424
|
style: wrapperStyle.value,
|
|
415
425
|
"data-tiger-data-table-with-toolbar": ""
|
|
416
426
|
},
|
|
417
|
-
[renderToolbar(), _vue.h.call(void 0,
|
|
427
|
+
[renderToolbar(), _vue.h.call(void 0, _chunkRRI3F52Bjs.Table, tableProps)]
|
|
418
428
|
);
|
|
419
429
|
};
|
|
420
430
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkS3KTGULCjs = require('./chunk-S3KTGULC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkEQW6IUHGjs = require('./chunk-EQW6IUHG.js');
|
|
7
7
|
|
|
8
8
|
// src/components/Tooltip.ts
|
|
9
9
|
var _vue = require('vue');
|
|
@@ -48,7 +48,7 @@ var Tooltip = _vue.defineComponent.call(void 0, {
|
|
|
48
48
|
floatingRef,
|
|
49
49
|
floatingStyles,
|
|
50
50
|
triggerHandlers
|
|
51
|
-
} =
|
|
51
|
+
} = _chunkS3KTGULCjs.useFloatingPopup.call(void 0, { props, emit });
|
|
52
52
|
const tooltipId = createTooltipId();
|
|
53
53
|
const containerClasses = _vue.computed.call(void 0,
|
|
54
54
|
() => _tigercatcore.classNames.call(void 0, _tigercatcore.getTooltipContainerClasses.call(void 0, ), props.className, _tigercatcore.coerceClassValue.call(void 0, attrsRecord.class))
|
|
@@ -85,7 +85,7 @@ var Tooltip = _vue.defineComponent.call(void 0, {
|
|
|
85
85
|
defaultSlot
|
|
86
86
|
),
|
|
87
87
|
// Tooltip content (positioned with Floating UI)
|
|
88
|
-
currentVisible.value ?
|
|
88
|
+
currentVisible.value ? _chunkEQW6IUHGjs.renderVueBodyTeleport.call(void 0,
|
|
89
89
|
_vue.h.call(void 0,
|
|
90
90
|
"div",
|
|
91
91
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkS3KTGULCjs = require('./chunk-S3KTGULC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkEQW6IUHGjs = require('./chunk-EQW6IUHG.js');
|
|
7
7
|
|
|
8
8
|
// src/components/Popover.ts
|
|
9
9
|
var _vue = require('vue');
|
|
@@ -54,7 +54,7 @@ var Popover = _vue.defineComponent.call(void 0, {
|
|
|
54
54
|
floatingRef,
|
|
55
55
|
floatingStyles,
|
|
56
56
|
triggerHandlers
|
|
57
|
-
} =
|
|
57
|
+
} = _chunkS3KTGULCjs.useFloatingPopup.call(void 0, { props, emit });
|
|
58
58
|
const popoverId = createPopoverId();
|
|
59
59
|
const titleId = `${popoverId}-title`;
|
|
60
60
|
const contentId = `${popoverId}-content`;
|
|
@@ -95,7 +95,7 @@ var Popover = _vue.defineComponent.call(void 0, {
|
|
|
95
95
|
defaultSlot
|
|
96
96
|
),
|
|
97
97
|
// Floating content
|
|
98
|
-
currentVisible.value ?
|
|
98
|
+
currentVisible.value ? _chunkEQW6IUHGjs.renderVueBodyTeleport.call(void 0,
|
|
99
99
|
_vue.h.call(void 0, "div", { ref: floatingRef, style: floatingStyles.value, "aria-hidden": false }, [
|
|
100
100
|
_vue.h.call(void 0,
|
|
101
101
|
"div",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkEQW6IUHGjs = require('./chunk-EQW6IUHG.js');
|
|
5
5
|
|
|
6
6
|
// src/components/Loading.ts
|
|
7
7
|
var _vue = require('vue');
|
|
@@ -82,7 +82,7 @@ var Loading = _vue.defineComponent.call(void 0, {
|
|
|
82
82
|
const shouldLockBodyScroll = _vue.computed.call(void 0,
|
|
83
83
|
() => props.fullscreen && visible.value && props.lockScroll
|
|
84
84
|
);
|
|
85
|
-
|
|
85
|
+
_chunkEQW6IUHGjs.useVueBodyScrollLock.call(void 0, shouldLockBodyScroll);
|
|
86
86
|
const clearTimer = () => {
|
|
87
87
|
if (timer) {
|
|
88
88
|
clearTimeout(timer);
|
|
@@ -208,7 +208,7 @@ var Loading = _vue.defineComponent.call(void 0, {
|
|
|
208
208
|
children
|
|
209
209
|
);
|
|
210
210
|
if (props.fullscreen) {
|
|
211
|
-
return
|
|
211
|
+
return _chunkEQW6IUHGjs.renderVueBodyTeleport.call(void 0, [loadingNode], props.disableTeleport);
|
|
212
212
|
}
|
|
213
213
|
return loadingNode;
|
|
214
214
|
};
|
|
@@ -59,7 +59,8 @@ function useVueBodyScrollLock(enabled) {
|
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
61
|
function renderVueBodyTeleport(children, disabled = false) {
|
|
62
|
-
|
|
62
|
+
const normalizedChildren = children == null ? [] : Array.isArray(children) ? children : [children];
|
|
63
|
+
return h(Teleport, { to: "body", disabled }, normalizedChildren);
|
|
63
64
|
}
|
|
64
65
|
function useVueFocusTrap({ enabled, containerRef }) {
|
|
65
66
|
watch(
|
|
@@ -136,6 +136,10 @@ var FormWizard = _vue.defineComponent.call(void 0, {
|
|
|
136
136
|
type: Object,
|
|
137
137
|
default: void 0
|
|
138
138
|
},
|
|
139
|
+
labels: {
|
|
140
|
+
type: Object,
|
|
141
|
+
default: void 0
|
|
142
|
+
},
|
|
139
143
|
bordered: {
|
|
140
144
|
type: Boolean,
|
|
141
145
|
default: true
|
|
@@ -157,7 +161,7 @@ var FormWizard = _vue.defineComponent.call(void 0, {
|
|
|
157
161
|
setup(props, { slots, attrs, emit }) {
|
|
158
162
|
const config = _chunk25EYT2CBjs.useTigerConfig.call(void 0, );
|
|
159
163
|
const mergedLocale = _vue.computed.call(void 0, () => _tigercatcore.mergeTigerLocale.call(void 0, config.value.locale, props.locale));
|
|
160
|
-
const labels = _vue.computed.call(void 0, () => _tigercatcore.getFormWizardLabels.call(void 0, mergedLocale.value));
|
|
164
|
+
const labels = _vue.computed.call(void 0, () => _tigercatcore.getFormWizardLabels.call(void 0, mergedLocale.value, props.labels));
|
|
161
165
|
const innerCurrent = _vue.ref.call(void 0, _nullishCoalesce(props.current, () => ( props.defaultCurrent)));
|
|
162
166
|
_vue.watch.call(void 0,
|
|
163
167
|
() => props.current,
|
|
@@ -291,42 +295,40 @@ var FormWizard = _vue.defineComponent.call(void 0, {
|
|
|
291
295
|
]) : null,
|
|
292
296
|
_vue.h.call(void 0,
|
|
293
297
|
"div",
|
|
294
|
-
{
|
|
298
|
+
{
|
|
299
|
+
class: "px-8 py-6 flex flex-col items-center w-full min-h-[120px] transition-all duration-300"
|
|
300
|
+
},
|
|
295
301
|
{ default: () => renderContent() }
|
|
296
302
|
),
|
|
297
|
-
props.showActions ? _vue.h.call(void 0,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
327
|
-
)
|
|
328
|
-
]
|
|
329
|
-
) : null
|
|
303
|
+
props.showActions ? _vue.h.call(void 0, "div", { class: actionsContainerClass }, [
|
|
304
|
+
!isFirst ? _vue.h.call(void 0,
|
|
305
|
+
_chunk4VLNT2EDjs.Button,
|
|
306
|
+
{
|
|
307
|
+
type: "button",
|
|
308
|
+
variant: "secondary",
|
|
309
|
+
class: "group",
|
|
310
|
+
onClick: handlePrev,
|
|
311
|
+
size: props.size === "small" ? "sm" : "md",
|
|
312
|
+
icon: renderArrowLeftIcon()
|
|
313
|
+
},
|
|
314
|
+
{ default: () => _tigercatcore.resolveLocaleText.call(void 0, labels.value.prevText, props.prevText) }
|
|
315
|
+
) : _vue.h.call(void 0, "div"),
|
|
316
|
+
_vue.h.call(void 0,
|
|
317
|
+
_chunk4VLNT2EDjs.Button,
|
|
318
|
+
{
|
|
319
|
+
type: "button",
|
|
320
|
+
variant: "primary",
|
|
321
|
+
class: "group",
|
|
322
|
+
onClick: handleNext,
|
|
323
|
+
size: props.size === "small" ? "sm" : "md",
|
|
324
|
+
icon: isLast ? renderCheckIcon() : renderArrowRightIcon(),
|
|
325
|
+
iconPosition: isLast ? "left" : "right"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
default: () => isLast ? _tigercatcore.resolveLocaleText.call(void 0, labels.value.finishText, props.finishText) : _tigercatcore.resolveLocaleText.call(void 0, labels.value.nextText, props.nextText)
|
|
329
|
+
}
|
|
330
|
+
)
|
|
331
|
+
]) : null
|
|
330
332
|
]
|
|
331
333
|
);
|
|
332
334
|
};
|
|
@@ -1,12 +1,15 @@
|
|
|
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 _chunk25EYT2CBjs = require('./chunk-25EYT2CB.js');
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
var _chunk4VLNT2EDjs = require('./chunk-4VLNT2ED.js');
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
|
|
7
10
|
|
|
8
11
|
|
|
9
|
-
var
|
|
12
|
+
var _chunkEQW6IUHGjs = require('./chunk-EQW6IUHG.js');
|
|
10
13
|
|
|
11
14
|
// src/components/Modal.ts
|
|
12
15
|
|
|
@@ -40,6 +43,7 @@ var _vue = require('vue');
|
|
|
40
43
|
|
|
41
44
|
|
|
42
45
|
|
|
46
|
+
|
|
43
47
|
|
|
44
48
|
|
|
45
49
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
@@ -180,6 +184,13 @@ var Modal = _vue.defineComponent.call(void 0, {
|
|
|
180
184
|
type: Object,
|
|
181
185
|
default: void 0
|
|
182
186
|
},
|
|
187
|
+
/**
|
|
188
|
+
* Flat custom-text overrides for single-language use (no i18n needed).
|
|
189
|
+
*/
|
|
190
|
+
labels: {
|
|
191
|
+
type: Object,
|
|
192
|
+
default: void 0
|
|
193
|
+
},
|
|
183
194
|
/**
|
|
184
195
|
* Whether to render a default footer when no `footer` slot is provided
|
|
185
196
|
* @default false
|
|
@@ -208,6 +219,8 @@ var Modal = _vue.defineComponent.call(void 0, {
|
|
|
208
219
|
},
|
|
209
220
|
emits: ["update:open", "close", "cancel", "ok"],
|
|
210
221
|
setup(props, { slots, emit, attrs }) {
|
|
222
|
+
const config = _chunk25EYT2CBjs.useTigerConfig.call(void 0, );
|
|
223
|
+
const mergedLocale = _vue.computed.call(void 0, () => _tigercatcore.mergeTigerLocale.call(void 0, config.value.locale, props.locale));
|
|
211
224
|
const instanceId = _vue.ref.call(void 0, createModalId());
|
|
212
225
|
const hasBeenOpened = _vue.ref.call(void 0, props.open);
|
|
213
226
|
const dialogRef = _vue.ref.call(void 0, null);
|
|
@@ -282,10 +295,10 @@ var Modal = _vue.defineComponent.call(void 0, {
|
|
|
282
295
|
};
|
|
283
296
|
const overlayOpen = _vue.computed.call(void 0, () => props.open);
|
|
284
297
|
let cleanupEscape;
|
|
285
|
-
|
|
286
|
-
|
|
298
|
+
_chunkEQW6IUHGjs.useVueBodyScrollLock.call(void 0, overlayOpen);
|
|
299
|
+
_chunkEQW6IUHGjs.useVueFocusTrap.call(void 0, { enabled: overlayOpen, containerRef: dialogRef });
|
|
287
300
|
_vue.onMounted.call(void 0, () => {
|
|
288
|
-
cleanupEscape =
|
|
301
|
+
cleanupEscape = _chunkEQW6IUHGjs.useVueEscapeKey.call(void 0, { enabled: overlayOpen, onEscape: handleClose });
|
|
289
302
|
});
|
|
290
303
|
_vue.onBeforeUnmount.call(void 0, () => {
|
|
291
304
|
_optionalChain([cleanupEscape, 'optionalCall', _ => _()]);
|
|
@@ -373,8 +386,9 @@ var Modal = _vue.defineComponent.call(void 0, {
|
|
|
373
386
|
"aria-label": _tigercatcore.resolveLocaleText.call(void 0,
|
|
374
387
|
"Close",
|
|
375
388
|
props.closeAriaLabel,
|
|
376
|
-
_optionalChain([props, 'access', _7 => _7.
|
|
377
|
-
_optionalChain([
|
|
389
|
+
_optionalChain([props, 'access', _7 => _7.labels, 'optionalAccess', _8 => _8.closeAriaLabel]),
|
|
390
|
+
_optionalChain([mergedLocale, 'access', _9 => _9.value, 'optionalAccess', _10 => _10.modal, 'optionalAccess', _11 => _11.closeAriaLabel]),
|
|
391
|
+
_optionalChain([mergedLocale, 'access', _12 => _12.value, 'optionalAccess', _13 => _13.common, 'optionalAccess', _14 => _14.closeText])
|
|
378
392
|
),
|
|
379
393
|
ref: closeButtonRef
|
|
380
394
|
},
|
|
@@ -395,8 +409,9 @@ var Modal = _vue.defineComponent.call(void 0, {
|
|
|
395
409
|
default: () => _tigercatcore.resolveLocaleText.call(void 0,
|
|
396
410
|
"\u53D6\u6D88",
|
|
397
411
|
props.cancelText,
|
|
398
|
-
_optionalChain([props, 'access',
|
|
399
|
-
_optionalChain([
|
|
412
|
+
_optionalChain([props, 'access', _15 => _15.labels, 'optionalAccess', _16 => _16.cancelText]),
|
|
413
|
+
_optionalChain([mergedLocale, 'access', _17 => _17.value, 'optionalAccess', _18 => _18.modal, 'optionalAccess', _19 => _19.cancelText]),
|
|
414
|
+
_optionalChain([mergedLocale, 'access', _20 => _20.value, 'optionalAccess', _21 => _21.common, 'optionalAccess', _22 => _22.cancelText])
|
|
400
415
|
)
|
|
401
416
|
}
|
|
402
417
|
),
|
|
@@ -407,8 +422,9 @@ var Modal = _vue.defineComponent.call(void 0, {
|
|
|
407
422
|
default: () => _tigercatcore.resolveLocaleText.call(void 0,
|
|
408
423
|
"\u786E\u5B9A",
|
|
409
424
|
props.okText,
|
|
410
|
-
_optionalChain([props, 'access',
|
|
411
|
-
_optionalChain([
|
|
425
|
+
_optionalChain([props, 'access', _23 => _23.labels, 'optionalAccess', _24 => _24.okText]),
|
|
426
|
+
_optionalChain([mergedLocale, 'access', _25 => _25.value, 'optionalAccess', _26 => _26.modal, 'optionalAccess', _27 => _27.okText]),
|
|
427
|
+
_optionalChain([mergedLocale, 'access', _28 => _28.value, 'optionalAccess', _29 => _29.common, 'optionalAccess', _30 => _30.okText])
|
|
412
428
|
)
|
|
413
429
|
}
|
|
414
430
|
)
|
|
@@ -458,7 +474,7 @@ var Modal = _vue.defineComponent.call(void 0, {
|
|
|
458
474
|
)
|
|
459
475
|
]
|
|
460
476
|
);
|
|
461
|
-
return
|
|
477
|
+
return _chunkEQW6IUHGjs.renderVueBodyTeleport.call(void 0, [renderedWrapper], props.disableTeleport);
|
|
462
478
|
};
|
|
463
479
|
}
|
|
464
480
|
});
|
|
@@ -59,7 +59,8 @@ function useVueBodyScrollLock(enabled) {
|
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
61
|
function renderVueBodyTeleport(children, disabled = false) {
|
|
62
|
-
|
|
62
|
+
const normalizedChildren = children == null ? [] : Array.isArray(children) ? children : [children];
|
|
63
|
+
return _vue.h.call(void 0, _vue.Teleport, { to: "body", disabled }, normalizedChildren);
|
|
63
64
|
}
|
|
64
65
|
function useVueFocusTrap({ enabled, containerRef }) {
|
|
65
66
|
_vue.watch.call(void 0,
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-VG6E4NX6.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/Pagination.ts
|
|
2
6
|
import {
|
|
3
7
|
defineComponent,
|
|
@@ -33,7 +37,8 @@ import {
|
|
|
33
37
|
getPaginationJumperPage,
|
|
34
38
|
getValidatedPaginationJumperValue,
|
|
35
39
|
isLazyTigerLocale,
|
|
36
|
-
resolveTigerLocale
|
|
40
|
+
resolveTigerLocale,
|
|
41
|
+
mergeTigerLocale
|
|
37
42
|
} from "@expcat/tigercat-core";
|
|
38
43
|
var Pagination = defineComponent({
|
|
39
44
|
name: "TigerPagination",
|
|
@@ -184,6 +189,13 @@ var Pagination = defineComponent({
|
|
|
184
189
|
type: [Object, Function],
|
|
185
190
|
default: void 0
|
|
186
191
|
},
|
|
192
|
+
/**
|
|
193
|
+
* Flat custom-text overrides for single-language use (no i18n needed).
|
|
194
|
+
*/
|
|
195
|
+
labels: {
|
|
196
|
+
type: Object,
|
|
197
|
+
default: void 0
|
|
198
|
+
},
|
|
187
199
|
quickJumperValidation: {
|
|
188
200
|
type: Object,
|
|
189
201
|
default: void 0
|
|
@@ -194,6 +206,7 @@ var Pagination = defineComponent({
|
|
|
194
206
|
const attrsRecord = attrs;
|
|
195
207
|
const attrsClass = attrsRecord.class;
|
|
196
208
|
const attrsStyle = attrsRecord.style;
|
|
209
|
+
const config = useTigerConfig();
|
|
197
210
|
const resolvedLocale = ref(
|
|
198
211
|
getImmediateTigerLocale(props.locale)
|
|
199
212
|
);
|
|
@@ -218,9 +231,10 @@ var Pagination = defineComponent({
|
|
|
218
231
|
},
|
|
219
232
|
{ immediate: true }
|
|
220
233
|
);
|
|
221
|
-
const
|
|
222
|
-
const
|
|
223
|
-
const
|
|
234
|
+
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, resolvedLocale.value));
|
|
235
|
+
const labels = computed(() => getPaginationLabels(mergedLocale.value, props.labels));
|
|
236
|
+
const localeCode = computed(() => mergedLocale.value?.locale);
|
|
237
|
+
const isRtl = computed(() => getLocaleDirection(mergedLocale.value) === "rtl");
|
|
224
238
|
const internalCurrent = ref(props.defaultCurrent);
|
|
225
239
|
const internalPageSize = ref(props.defaultPageSize);
|
|
226
240
|
const quickJumperValue = ref("");
|
|
@@ -334,7 +348,7 @@ var Pagination = defineComponent({
|
|
|
334
348
|
const prevDisabled = page <= 1 || props.disabled;
|
|
335
349
|
const nextDisabled = page >= pages || props.disabled;
|
|
336
350
|
if (props.showTotal) {
|
|
337
|
-
const totalTextFn = props.totalText || (
|
|
351
|
+
const totalTextFn = props.totalText || (props.labels?.totalText || mergedLocale.value?.pagination?.totalText ? (value, range) => formatPaginationTotal(labels.value.totalText, value, range, localeCode.value) : defaultTotalText);
|
|
338
352
|
elements.push(
|
|
339
353
|
h("span", { class: getTotalTextClasses(size) }, totalTextFn(props.total, pageRange.value))
|
|
340
354
|
);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkEQW6IUHGjs = require('./chunk-EQW6IUHG.js');
|
|
6
6
|
|
|
7
7
|
// src/components/Dropdown.ts
|
|
8
8
|
|
|
@@ -222,7 +222,7 @@ var Dropdown = _vue.defineComponent.call(void 0, {
|
|
|
222
222
|
x,
|
|
223
223
|
y,
|
|
224
224
|
placement: currentPlacement
|
|
225
|
-
} =
|
|
225
|
+
} = _chunkEQW6IUHGjs.useVueFloating.call(void 0, {
|
|
226
226
|
referenceRef: triggerRef,
|
|
227
227
|
floatingRef,
|
|
228
228
|
enabled: currentVisible,
|
|
@@ -237,7 +237,7 @@ var Dropdown = _vue.defineComponent.call(void 0, {
|
|
|
237
237
|
_optionalChain([cleanupClickOutside, 'optionalCall', _3 => _3()]);
|
|
238
238
|
cleanupClickOutside = null;
|
|
239
239
|
if (enabled) {
|
|
240
|
-
cleanupClickOutside =
|
|
240
|
+
cleanupClickOutside = _chunkEQW6IUHGjs.useVueClickOutside.call(void 0, {
|
|
241
241
|
enabled: currentVisible,
|
|
242
242
|
containerRef,
|
|
243
243
|
onOutsideClick: () => setVisible(false),
|
|
@@ -254,7 +254,7 @@ var Dropdown = _vue.defineComponent.call(void 0, {
|
|
|
254
254
|
_optionalChain([cleanupEscapeKey, 'optionalCall', _4 => _4()]);
|
|
255
255
|
cleanupEscapeKey = null;
|
|
256
256
|
if (visible) {
|
|
257
|
-
cleanupEscapeKey =
|
|
257
|
+
cleanupEscapeKey = _chunkEQW6IUHGjs.useVueEscapeKey.call(void 0, {
|
|
258
258
|
enabled: currentVisible,
|
|
259
259
|
onEscape: () => setVisible(false)
|
|
260
260
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkS3KTGULCjs = require('./chunk-S3KTGULC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkEQW6IUHGjs = require('./chunk-EQW6IUHG.js');
|
|
7
7
|
|
|
8
8
|
// src/components/Popconfirm.ts
|
|
9
9
|
var _vue = require('vue');
|
|
@@ -93,7 +93,7 @@ var Popconfirm = _vue.defineComponent.call(void 0, {
|
|
|
93
93
|
floatingRef,
|
|
94
94
|
floatingStyles,
|
|
95
95
|
actualPlacement
|
|
96
|
-
} =
|
|
96
|
+
} = _chunkS3KTGULCjs.useFloatingPopup.call(void 0, { props, emit, multiTrigger: false });
|
|
97
97
|
const popconfirmId = createPopconfirmId();
|
|
98
98
|
const titleId = `${popconfirmId}-title`;
|
|
99
99
|
const descriptionId = `${popconfirmId}-description`;
|
|
@@ -269,7 +269,7 @@ var Popconfirm = _vue.defineComponent.call(void 0, {
|
|
|
269
269
|
class: containerClasses.value,
|
|
270
270
|
style: _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style)
|
|
271
271
|
},
|
|
272
|
-
[trigger,
|
|
272
|
+
[trigger, _chunkEQW6IUHGjs.renderVueBodyTeleport.call(void 0, content)]
|
|
273
273
|
);
|
|
274
274
|
};
|
|
275
275
|
}
|
|
@@ -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 _chunkDMNOK6OPjs = require('./chunk-DMNOK6OP.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkWUEP3PFNjs = require('./chunk-WUEP3PFN.js');
|
|
@@ -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
|
+
_chunkDMNOK6OPjs.Modal,
|
|
175
175
|
{
|
|
176
176
|
open: modalVisible.value,
|
|
177
177
|
size: "lg",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Table
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W54LFA7A.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Select
|
|
6
6
|
} from "./chunk-PYT5DTQQ.mjs";
|
|
@@ -101,6 +101,14 @@ var DataTableWithToolbar = defineComponent({
|
|
|
101
101
|
type: [String, Number],
|
|
102
102
|
default: void 0
|
|
103
103
|
},
|
|
104
|
+
responsiveMode: {
|
|
105
|
+
type: String,
|
|
106
|
+
default: "scroll"
|
|
107
|
+
},
|
|
108
|
+
cardBreakpoint: {
|
|
109
|
+
type: String,
|
|
110
|
+
default: "sm"
|
|
111
|
+
},
|
|
104
112
|
toolbar: {
|
|
105
113
|
type: Object,
|
|
106
114
|
default: void 0
|
|
@@ -403,6 +411,8 @@ var DataTableWithToolbar = defineComponent({
|
|
|
403
411
|
stickyHeader: props.stickyHeader,
|
|
404
412
|
maxHeight: props.maxHeight,
|
|
405
413
|
tableLayout: props.tableLayout,
|
|
414
|
+
responsiveMode: props.responsiveMode,
|
|
415
|
+
cardBreakpoint: props.cardBreakpoint,
|
|
406
416
|
class: props.bordered ? "border-none rounded-none shadow-none" : void 0,
|
|
407
417
|
onSelectionChange: (keys) => emit("selection-change", keys),
|
|
408
418
|
onPageChange: handleTablePageChange
|
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkEQW6IUHGjs = require('./chunk-EQW6IUHG.js');
|
|
5
5
|
|
|
6
6
|
// src/components/Menu.ts
|
|
7
7
|
|
|
@@ -672,7 +672,7 @@ var SubMenu = _vue.defineComponent.call(void 0, {
|
|
|
672
672
|
x: popupX,
|
|
673
673
|
y: popupY,
|
|
674
674
|
placement: currentPopupPlacement
|
|
675
|
-
} =
|
|
675
|
+
} = _chunkEQW6IUHGjs.useVueFloating.call(void 0, {
|
|
676
676
|
referenceRef: titleEl,
|
|
677
677
|
floatingRef: popupEl,
|
|
678
678
|
enabled: _vue.computed.call(void 0, () => popupPortal.value && isExpanded.value),
|
|
@@ -940,7 +940,7 @@ var SubMenu = _vue.defineComponent.call(void 0, {
|
|
|
940
940
|
},
|
|
941
941
|
withChildLevel(_optionalChain([slots, 'access', _21 => _21.default, 'optionalCall', _22 => _22()]))
|
|
942
942
|
);
|
|
943
|
-
return popupPortal.value ?
|
|
943
|
+
return popupPortal.value ? _chunkEQW6IUHGjs.renderVueBodyTeleport.call(void 0, node) : node;
|
|
944
944
|
};
|
|
945
945
|
const contentNode = isPopup.value ? popupContentNode() : hasRenderedInline.value ? _vue.h.call(void 0,
|
|
946
946
|
"div",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkEQW6IUHGjs = require('./chunk-EQW6IUHG.js');
|
|
7
7
|
|
|
8
8
|
// src/components/Spotlight.ts
|
|
9
9
|
|
|
@@ -205,11 +205,11 @@ var Spotlight = _vue.defineComponent.call(void 0, {
|
|
|
205
205
|
closeSpotlight();
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
_chunkEQW6IUHGjs.useVueBodyScrollLock.call(void 0, resolvedOpen);
|
|
209
|
+
_chunkEQW6IUHGjs.useVueFocusTrap.call(void 0, { enabled: resolvedOpen, containerRef: dialogRef });
|
|
210
210
|
let cleanupEscape;
|
|
211
211
|
_vue.onMounted.call(void 0, () => {
|
|
212
|
-
cleanupEscape =
|
|
212
|
+
cleanupEscape = _chunkEQW6IUHGjs.useVueEscapeKey.call(void 0, { enabled: resolvedOpen, onEscape: closeSpotlight });
|
|
213
213
|
if (resolvedOpen.value) {
|
|
214
214
|
_vue.nextTick.call(void 0, () => _tigercatcore.focusFirst.call(void 0, [inputRef.value, dialogRef.value]));
|
|
215
215
|
}
|
|
@@ -361,7 +361,7 @@ var Spotlight = _vue.defineComponent.call(void 0, {
|
|
|
361
361
|
)
|
|
362
362
|
]
|
|
363
363
|
);
|
|
364
|
-
return
|
|
364
|
+
return _chunkEQW6IUHGjs.renderVueBodyTeleport.call(void 0, content, props.disableTeleport);
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
367
|
});
|