@expcat/tigercat-vue 1.2.37 → 1.2.39
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-WT3LV7OQ.mjs → chunk-3KIIMXJC.mjs} +1 -1
- package/dist/{chunk-PC2FNA4J.mjs → chunk-5BGVVVVD.mjs} +1 -1
- package/dist/{chunk-RRI3F52B.js → chunk-5BILS3SG.js} +268 -92
- package/dist/{chunk-W54LFA7A.mjs → chunk-5Z2OCSVJ.mjs} +268 -92
- package/dist/{chunk-U2PPTMQX.mjs → chunk-G7O3G2LI.mjs} +1 -1
- package/dist/{chunk-UJZPEXF5.mjs → chunk-JPZJZFC4.mjs} +17 -3
- package/dist/{chunk-3EVCDIZE.js → chunk-JT2ANXUR.js} +2 -2
- package/dist/{chunk-S3KTGULC.js → chunk-NNFDOVVA.js} +20 -6
- package/dist/{chunk-2HT6YGRY.js → chunk-O23S65U3.js} +60 -8
- package/dist/{chunk-ILTIUESE.mjs → chunk-OKBZKBFP.mjs} +60 -8
- package/dist/{chunk-6DYGPOYH.js → chunk-SSMSRTEQ.js} +2 -2
- package/dist/{chunk-HSMN5FWL.js → chunk-YCYS6LAQ.js} +2 -2
- package/dist/components/Alert.d.mts +1 -1
- package/dist/components/Alert.d.ts +1 -1
- package/dist/components/ChatWindow.js +3 -3
- package/dist/components/ChatWindow.mjs +2 -2
- package/dist/components/DataTableWithToolbar.d.mts +23 -3
- package/dist/components/DataTableWithToolbar.d.ts +23 -3
- package/dist/components/DataTableWithToolbar.js +8 -3
- package/dist/components/DataTableWithToolbar.mjs +7 -2
- package/dist/components/Empty.d.mts +1 -1
- package/dist/components/Empty.d.ts +1 -1
- package/dist/components/FormWizard.d.mts +1 -1
- package/dist/components/FormWizard.d.ts +1 -1
- package/dist/components/Menu.d.mts +1 -1
- package/dist/components/Menu.d.ts +1 -1
- package/dist/components/Pagination.d.mts +1 -1
- package/dist/components/Pagination.d.ts +1 -1
- package/dist/components/Popconfirm.d.mts +1 -1
- package/dist/components/Popconfirm.d.ts +1 -1
- package/dist/components/Popconfirm.js +3 -3
- package/dist/components/Popconfirm.mjs +2 -2
- package/dist/components/Popover.js +3 -3
- package/dist/components/Popover.mjs +2 -2
- package/dist/components/Steps.d.mts +1 -1
- package/dist/components/Steps.d.ts +1 -1
- package/dist/components/Table.d.mts +31 -3
- package/dist/components/Table.d.ts +31 -3
- package/dist/components/Table.js +8 -2
- package/dist/components/Table.mjs +7 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/Tooltip.mjs +2 -2
- package/dist/index.js +16 -16
- package/dist/index.mjs +16 -16
- package/package.json +2 -2
- package/dist/{chunk-S45NWVQS.mjs → chunk-6GPX4ONB.mjs} +3 -3
- package/dist/{chunk-VES3OJOP.js → chunk-YS6FW775.js} +2 -2
|
@@ -1,11 +1,14 @@
|
|
|
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 _chunk5BILS3SGjs = require('./chunk-5BILS3SG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkBGMAWKWVjs = require('./chunk-BGMAWKWV.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
var _chunk25EYT2CBjs = require('./chunk-25EYT2CB.js');
|
|
10
|
+
|
|
11
|
+
|
|
9
12
|
var _chunkBYNMOQBBjs = require('./chunk-BYNMOQBB.js');
|
|
10
13
|
|
|
11
14
|
|
|
@@ -24,6 +27,11 @@ var _vue = require('vue');
|
|
|
24
27
|
|
|
25
28
|
|
|
26
29
|
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
27
35
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
28
36
|
var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
29
37
|
name: "TigerDataTableWithToolbar",
|
|
@@ -77,9 +85,17 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
77
85
|
type: Boolean,
|
|
78
86
|
default: false
|
|
79
87
|
},
|
|
88
|
+
locale: {
|
|
89
|
+
type: [Object, Function],
|
|
90
|
+
default: void 0
|
|
91
|
+
},
|
|
92
|
+
labels: {
|
|
93
|
+
type: Object,
|
|
94
|
+
default: void 0
|
|
95
|
+
},
|
|
80
96
|
emptyText: {
|
|
81
97
|
type: String,
|
|
82
|
-
default:
|
|
98
|
+
default: void 0
|
|
83
99
|
},
|
|
84
100
|
rowSelection: {
|
|
85
101
|
type: Object,
|
|
@@ -140,6 +156,7 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
140
156
|
"page-size-change": (_current, _pageSize) => true
|
|
141
157
|
},
|
|
142
158
|
setup(props, { attrs, emit }) {
|
|
159
|
+
const config = _chunk25EYT2CBjs.useTigerConfig.call(void 0, );
|
|
143
160
|
const internalSearch = _vue.ref.call(void 0, _nullishCoalesce(_optionalChain([props, 'access', _ => _.toolbar, 'optionalAccess', _2 => _2.defaultSearchValue]), () => ( "")));
|
|
144
161
|
const internalFilters = _vue.ref.call(void 0, {});
|
|
145
162
|
const previousPageSize = _vue.ref.call(void 0,
|
|
@@ -147,6 +164,35 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
147
164
|
);
|
|
148
165
|
const vnodeProps = _nullishCoalesce(_optionalChain([_vue.getCurrentInstance.call(void 0, ), 'optionalAccess', _3 => _3.vnode, 'access', _4 => _4.props]), () => ( {}));
|
|
149
166
|
const hasSearchListener = Boolean(vnodeProps.onSearch || vnodeProps.onSearchChange);
|
|
167
|
+
const resolvedTableLocale = _vue.ref.call(void 0, );
|
|
168
|
+
let tableLocaleResolveId = 0;
|
|
169
|
+
_vue.watch.call(void 0,
|
|
170
|
+
() => props.locale,
|
|
171
|
+
(locale) => {
|
|
172
|
+
const resolveId = ++tableLocaleResolveId;
|
|
173
|
+
if (!locale) {
|
|
174
|
+
resolvedTableLocale.value = void 0;
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
const immediateLocale = _tigercatcore.getImmediateTigerLocale.call(void 0, locale);
|
|
178
|
+
resolvedTableLocale.value = immediateLocale;
|
|
179
|
+
if (!_tigercatcore.isLazyTigerLocale.call(void 0, locale)) return;
|
|
180
|
+
_tigercatcore.resolveTigerLocale.call(void 0, locale).then((nextLocale) => {
|
|
181
|
+
if (resolveId === tableLocaleResolveId) {
|
|
182
|
+
resolvedTableLocale.value = nextLocale;
|
|
183
|
+
}
|
|
184
|
+
}).catch(() => {
|
|
185
|
+
if (resolveId === tableLocaleResolveId) {
|
|
186
|
+
resolvedTableLocale.value = immediateLocale;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
},
|
|
190
|
+
{ immediate: true }
|
|
191
|
+
);
|
|
192
|
+
const tableLocale = _vue.computed.call(void 0,
|
|
193
|
+
() => _tigercatcore.mergeTigerLocale.call(void 0, config.value.locale, resolvedTableLocale.value)
|
|
194
|
+
);
|
|
195
|
+
const tableLabels = _vue.computed.call(void 0, () => _tigercatcore.getTableLabels.call(void 0, tableLocale.value, props.labels));
|
|
150
196
|
_vue.watch.call(void 0,
|
|
151
197
|
() => _optionalChain([props, 'access', _5 => _5.toolbar, 'optionalAccess', _6 => _6.searchValue]),
|
|
152
198
|
(nextValue) => {
|
|
@@ -202,7 +248,7 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
202
248
|
const selectedCount = _vue.computed.call(void 0,
|
|
203
249
|
() => _optionalChain([props, 'access', _25 => _25.toolbar, 'optionalAccess', _26 => _26.selectedCount]) !== void 0 ? props.toolbar.selectedCount : selectedKeys.value.length
|
|
204
250
|
);
|
|
205
|
-
const bulkLabel = _vue.computed.call(void 0, () => _nullishCoalesce(_optionalChain([props, 'access', _27 => _27.toolbar, 'optionalAccess', _28 => _28.bulkActionsLabel]), () => (
|
|
251
|
+
const bulkLabel = _vue.computed.call(void 0, () => _nullishCoalesce(_optionalChain([props, 'access', _27 => _27.toolbar, 'optionalAccess', _28 => _28.bulkActionsLabel]), () => ( tableLabels.value.selectedText)));
|
|
206
252
|
const wrapperClasses = _vue.computed.call(void 0,
|
|
207
253
|
() => _tigercatcore.classNames.call(void 0,
|
|
208
254
|
"tiger-data-table-with-toolbar flex flex-col",
|
|
@@ -265,7 +311,7 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
265
311
|
type: "search",
|
|
266
312
|
size: "sm",
|
|
267
313
|
modelValue: searchValue.value,
|
|
268
|
-
placeholder: _nullishCoalesce(_optionalChain([props, 'access', _35 => _35.toolbar, 'optionalAccess', _36 => _36.searchPlaceholder]), () => (
|
|
314
|
+
placeholder: _nullishCoalesce(_optionalChain([props, 'access', _35 => _35.toolbar, 'optionalAccess', _36 => _36.searchPlaceholder]), () => ( tableLabels.value.searchPlaceholder)),
|
|
269
315
|
"onUpdate:modelValue": (value) => handleSearchChange(String(_nullishCoalesce(value, () => ( "")))),
|
|
270
316
|
onKeydown: (event) => {
|
|
271
317
|
if (event.key === "Enter") {
|
|
@@ -303,7 +349,7 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
303
349
|
onClick: handleSearchSubmit,
|
|
304
350
|
disabled: !canSearch.value
|
|
305
351
|
},
|
|
306
|
-
{ default: () => _nullishCoalesce(_optionalChain([props, 'access', _37 => _37.toolbar, 'optionalAccess', _38 => _38.searchButtonText]), () => (
|
|
352
|
+
{ default: () => _nullishCoalesce(_optionalChain([props, 'access', _37 => _37.toolbar, 'optionalAccess', _38 => _38.searchButtonText]), () => ( tableLabels.value.searchButtonText)) }
|
|
307
353
|
) : null
|
|
308
354
|
]
|
|
309
355
|
)
|
|
@@ -345,7 +391,11 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
345
391
|
_vue.h.call(void 0, "span", {
|
|
346
392
|
class: "w-1.5 h-1.5 rounded-full bg-[var(--tiger-primary,#2563eb)] animate-pulse"
|
|
347
393
|
}),
|
|
348
|
-
_vue.h.call(void 0,
|
|
394
|
+
_vue.h.call(void 0,
|
|
395
|
+
"span",
|
|
396
|
+
null,
|
|
397
|
+
`${bulkLabel.value} ${selectedCount.value} ${tableLabels.value.selectedItemsText}`
|
|
398
|
+
)
|
|
349
399
|
]
|
|
350
400
|
)
|
|
351
401
|
);
|
|
@@ -375,7 +425,7 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
375
425
|
props.bordered ? "bg-[var(--tiger-surface-muted,#f9fafb)] dark:bg-gray-800/10 px-4 py-3.5 border-b border-[var(--tiger-border,#e5e7eb)]" : "bg-[var(--tiger-surface-muted,#f9fafb)]/80 dark:bg-gray-800/30 px-4 py-3.5 border border-[var(--tiger-border,#e5e7eb)] rounded-[var(--tiger-radius-md,0.5rem)] shadow-sm"
|
|
376
426
|
),
|
|
377
427
|
role: "toolbar",
|
|
378
|
-
"aria-label":
|
|
428
|
+
"aria-label": tableLabels.value.toolbarAriaLabel
|
|
379
429
|
},
|
|
380
430
|
[
|
|
381
431
|
_vue.h.call(void 0, "div", { class: "flex items-center gap-3 flex-wrap flex-1 min-w-0" }, leftNodes),
|
|
@@ -403,6 +453,8 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
403
453
|
striped: props.striped,
|
|
404
454
|
hoverable: props.hoverable,
|
|
405
455
|
loading: props.loading,
|
|
456
|
+
locale: props.locale,
|
|
457
|
+
labels: props.labels,
|
|
406
458
|
emptyText: props.emptyText,
|
|
407
459
|
pagination: props.pagination,
|
|
408
460
|
rowSelection: props.rowSelection,
|
|
@@ -424,7 +476,7 @@ var DataTableWithToolbar = _vue.defineComponent.call(void 0, {
|
|
|
424
476
|
style: wrapperStyle.value,
|
|
425
477
|
"data-tiger-data-table-with-toolbar": ""
|
|
426
478
|
},
|
|
427
|
-
[renderToolbar(), _vue.h.call(void 0,
|
|
479
|
+
[renderToolbar(), _vue.h.call(void 0, _chunk5BILS3SGjs.Table, tableProps)]
|
|
428
480
|
);
|
|
429
481
|
};
|
|
430
482
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Table
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5Z2OCSVJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Select
|
|
6
6
|
} from "./chunk-PYT5DTQQ.mjs";
|
|
7
|
+
import {
|
|
8
|
+
useTigerConfig
|
|
9
|
+
} from "./chunk-VG6E4NX6.mjs";
|
|
7
10
|
import {
|
|
8
11
|
Input
|
|
9
12
|
} from "./chunk-2WJADO6O.mjs";
|
|
@@ -23,7 +26,12 @@ import {
|
|
|
23
26
|
import {
|
|
24
27
|
classNames,
|
|
25
28
|
coerceClassValue,
|
|
26
|
-
|
|
29
|
+
getImmediateTigerLocale,
|
|
30
|
+
getTableLabels,
|
|
31
|
+
isLazyTigerLocale,
|
|
32
|
+
mergeStyleValues,
|
|
33
|
+
mergeTigerLocale,
|
|
34
|
+
resolveTigerLocale
|
|
27
35
|
} from "@expcat/tigercat-core";
|
|
28
36
|
var DataTableWithToolbar = defineComponent({
|
|
29
37
|
name: "TigerDataTableWithToolbar",
|
|
@@ -77,9 +85,17 @@ var DataTableWithToolbar = defineComponent({
|
|
|
77
85
|
type: Boolean,
|
|
78
86
|
default: false
|
|
79
87
|
},
|
|
88
|
+
locale: {
|
|
89
|
+
type: [Object, Function],
|
|
90
|
+
default: void 0
|
|
91
|
+
},
|
|
92
|
+
labels: {
|
|
93
|
+
type: Object,
|
|
94
|
+
default: void 0
|
|
95
|
+
},
|
|
80
96
|
emptyText: {
|
|
81
97
|
type: String,
|
|
82
|
-
default:
|
|
98
|
+
default: void 0
|
|
83
99
|
},
|
|
84
100
|
rowSelection: {
|
|
85
101
|
type: Object,
|
|
@@ -140,6 +156,7 @@ var DataTableWithToolbar = defineComponent({
|
|
|
140
156
|
"page-size-change": (_current, _pageSize) => true
|
|
141
157
|
},
|
|
142
158
|
setup(props, { attrs, emit }) {
|
|
159
|
+
const config = useTigerConfig();
|
|
143
160
|
const internalSearch = ref(props.toolbar?.defaultSearchValue ?? "");
|
|
144
161
|
const internalFilters = ref({});
|
|
145
162
|
const previousPageSize = ref(
|
|
@@ -147,6 +164,35 @@ var DataTableWithToolbar = defineComponent({
|
|
|
147
164
|
);
|
|
148
165
|
const vnodeProps = getCurrentInstance()?.vnode.props ?? {};
|
|
149
166
|
const hasSearchListener = Boolean(vnodeProps.onSearch || vnodeProps.onSearchChange);
|
|
167
|
+
const resolvedTableLocale = ref();
|
|
168
|
+
let tableLocaleResolveId = 0;
|
|
169
|
+
watch(
|
|
170
|
+
() => props.locale,
|
|
171
|
+
(locale) => {
|
|
172
|
+
const resolveId = ++tableLocaleResolveId;
|
|
173
|
+
if (!locale) {
|
|
174
|
+
resolvedTableLocale.value = void 0;
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
const immediateLocale = getImmediateTigerLocale(locale);
|
|
178
|
+
resolvedTableLocale.value = immediateLocale;
|
|
179
|
+
if (!isLazyTigerLocale(locale)) return;
|
|
180
|
+
resolveTigerLocale(locale).then((nextLocale) => {
|
|
181
|
+
if (resolveId === tableLocaleResolveId) {
|
|
182
|
+
resolvedTableLocale.value = nextLocale;
|
|
183
|
+
}
|
|
184
|
+
}).catch(() => {
|
|
185
|
+
if (resolveId === tableLocaleResolveId) {
|
|
186
|
+
resolvedTableLocale.value = immediateLocale;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
},
|
|
190
|
+
{ immediate: true }
|
|
191
|
+
);
|
|
192
|
+
const tableLocale = computed(
|
|
193
|
+
() => mergeTigerLocale(config.value.locale, resolvedTableLocale.value)
|
|
194
|
+
);
|
|
195
|
+
const tableLabels = computed(() => getTableLabels(tableLocale.value, props.labels));
|
|
150
196
|
watch(
|
|
151
197
|
() => props.toolbar?.searchValue,
|
|
152
198
|
(nextValue) => {
|
|
@@ -202,7 +248,7 @@ var DataTableWithToolbar = defineComponent({
|
|
|
202
248
|
const selectedCount = computed(
|
|
203
249
|
() => props.toolbar?.selectedCount !== void 0 ? props.toolbar.selectedCount : selectedKeys.value.length
|
|
204
250
|
);
|
|
205
|
-
const bulkLabel = computed(() => props.toolbar?.bulkActionsLabel ??
|
|
251
|
+
const bulkLabel = computed(() => props.toolbar?.bulkActionsLabel ?? tableLabels.value.selectedText);
|
|
206
252
|
const wrapperClasses = computed(
|
|
207
253
|
() => classNames(
|
|
208
254
|
"tiger-data-table-with-toolbar flex flex-col",
|
|
@@ -265,7 +311,7 @@ var DataTableWithToolbar = defineComponent({
|
|
|
265
311
|
type: "search",
|
|
266
312
|
size: "sm",
|
|
267
313
|
modelValue: searchValue.value,
|
|
268
|
-
placeholder: props.toolbar?.searchPlaceholder ??
|
|
314
|
+
placeholder: props.toolbar?.searchPlaceholder ?? tableLabels.value.searchPlaceholder,
|
|
269
315
|
"onUpdate:modelValue": (value) => handleSearchChange(String(value ?? "")),
|
|
270
316
|
onKeydown: (event) => {
|
|
271
317
|
if (event.key === "Enter") {
|
|
@@ -303,7 +349,7 @@ var DataTableWithToolbar = defineComponent({
|
|
|
303
349
|
onClick: handleSearchSubmit,
|
|
304
350
|
disabled: !canSearch.value
|
|
305
351
|
},
|
|
306
|
-
{ default: () => props.toolbar?.searchButtonText ??
|
|
352
|
+
{ default: () => props.toolbar?.searchButtonText ?? tableLabels.value.searchButtonText }
|
|
307
353
|
) : null
|
|
308
354
|
]
|
|
309
355
|
)
|
|
@@ -345,7 +391,11 @@ var DataTableWithToolbar = defineComponent({
|
|
|
345
391
|
h("span", {
|
|
346
392
|
class: "w-1.5 h-1.5 rounded-full bg-[var(--tiger-primary,#2563eb)] animate-pulse"
|
|
347
393
|
}),
|
|
348
|
-
h(
|
|
394
|
+
h(
|
|
395
|
+
"span",
|
|
396
|
+
null,
|
|
397
|
+
`${bulkLabel.value} ${selectedCount.value} ${tableLabels.value.selectedItemsText}`
|
|
398
|
+
)
|
|
349
399
|
]
|
|
350
400
|
)
|
|
351
401
|
);
|
|
@@ -375,7 +425,7 @@ var DataTableWithToolbar = defineComponent({
|
|
|
375
425
|
props.bordered ? "bg-[var(--tiger-surface-muted,#f9fafb)] dark:bg-gray-800/10 px-4 py-3.5 border-b border-[var(--tiger-border,#e5e7eb)]" : "bg-[var(--tiger-surface-muted,#f9fafb)]/80 dark:bg-gray-800/30 px-4 py-3.5 border border-[var(--tiger-border,#e5e7eb)] rounded-[var(--tiger-radius-md,0.5rem)] shadow-sm"
|
|
376
426
|
),
|
|
377
427
|
role: "toolbar",
|
|
378
|
-
"aria-label":
|
|
428
|
+
"aria-label": tableLabels.value.toolbarAriaLabel
|
|
379
429
|
},
|
|
380
430
|
[
|
|
381
431
|
h("div", { class: "flex items-center gap-3 flex-wrap flex-1 min-w-0" }, leftNodes),
|
|
@@ -403,6 +453,8 @@ var DataTableWithToolbar = defineComponent({
|
|
|
403
453
|
striped: props.striped,
|
|
404
454
|
hoverable: props.hoverable,
|
|
405
455
|
loading: props.loading,
|
|
456
|
+
locale: props.locale,
|
|
457
|
+
labels: props.labels,
|
|
406
458
|
emptyText: props.emptyText,
|
|
407
459
|
pagination: props.pagination,
|
|
408
460
|
rowSelection: props.rowSelection,
|
|
@@ -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 _chunkNNFDOVVAjs = require('./chunk-NNFDOVVA.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkEQW6IUHGjs = require('./chunk-EQW6IUHG.js');
|
|
@@ -54,7 +54,7 @@ var Popover = _vue.defineComponent.call(void 0, {
|
|
|
54
54
|
floatingRef,
|
|
55
55
|
floatingStyles,
|
|
56
56
|
triggerHandlers
|
|
57
|
-
} =
|
|
57
|
+
} = _chunkNNFDOVVAjs.useFloatingPopup.call(void 0, { props, emit });
|
|
58
58
|
const popoverId = createPopoverId();
|
|
59
59
|
const titleId = `${popoverId}-title`;
|
|
60
60
|
const contentId = `${popoverId}-content`;
|
|
@@ -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 _chunkNNFDOVVAjs = require('./chunk-NNFDOVVA.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkEQW6IUHGjs = require('./chunk-EQW6IUHG.js');
|
|
@@ -93,7 +93,7 @@ var Popconfirm = _vue.defineComponent.call(void 0, {
|
|
|
93
93
|
floatingRef,
|
|
94
94
|
floatingStyles,
|
|
95
95
|
actualPlacement
|
|
96
|
-
} =
|
|
96
|
+
} = _chunkNNFDOVVAjs.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`;
|
|
@@ -211,8 +211,8 @@ declare const Alert: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
211
211
|
title: string;
|
|
212
212
|
closable: boolean;
|
|
213
213
|
closeAriaLabel: string;
|
|
214
|
-
showIcon: boolean;
|
|
215
214
|
description: string;
|
|
215
|
+
showIcon: boolean;
|
|
216
216
|
duration: number;
|
|
217
217
|
banner: boolean;
|
|
218
218
|
showCountdown: boolean;
|
|
@@ -211,8 +211,8 @@ declare const Alert: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
211
211
|
title: string;
|
|
212
212
|
closable: boolean;
|
|
213
213
|
closeAriaLabel: string;
|
|
214
|
-
showIcon: boolean;
|
|
215
214
|
description: string;
|
|
215
|
+
showIcon: boolean;
|
|
216
216
|
duration: number;
|
|
217
217
|
banner: boolean;
|
|
218
218
|
showCountdown: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYS6FW775js = require('../chunk-YS6FW775.js');
|
|
5
5
|
require('../chunk-5F6P5Y4K.js');
|
|
6
|
-
require('../chunk-NOZ65AMO.js');
|
|
7
6
|
require('../chunk-BYNMOQBB.js');
|
|
7
|
+
require('../chunk-NOZ65AMO.js');
|
|
8
8
|
require('../chunk-6FXYRDYH.js');
|
|
9
9
|
require('../chunk-4VLNT2ED.js');
|
|
10
10
|
require('../chunk-7ADONGSB.js');
|
|
@@ -13,4 +13,4 @@ require('../chunk-ODQOYMUQ.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.ChatWindow =
|
|
16
|
+
exports.ChatWindow = _chunkYS6FW775js.ChatWindow; exports.default = _chunkYS6FW775js.ChatWindow_default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ChatWindow,
|
|
3
3
|
ChatWindow_default
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-6GPX4ONB.mjs";
|
|
5
5
|
import "../chunk-PENI3H3I.mjs";
|
|
6
|
-
import "../chunk-WFISP42H.mjs";
|
|
7
6
|
import "../chunk-2WJADO6O.mjs";
|
|
7
|
+
import "../chunk-WFISP42H.mjs";
|
|
8
8
|
import "../chunk-MKBIVETW.mjs";
|
|
9
9
|
import "../chunk-PO5GVU4Q.mjs";
|
|
10
10
|
import "../chunk-Z2ZECCGD.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
|
-
import { TableColumn, SortState, TableSize, RowSelectionConfig, TableResponsiveMode, TableCardBreakpoint, TableToolbarProps, PaginationConfig, TableToolbarFilterValue, TableToolbarAction } from '@expcat/tigercat-core';
|
|
3
|
+
import { TableColumn, SortState, TableSize, TigerLocaleInput, TigerLocaleTable, RowSelectionConfig, TableResponsiveMode, TableCardBreakpoint, TableToolbarProps, PaginationConfig, TableToolbarFilterValue, TableToolbarAction } from '@expcat/tigercat-core';
|
|
4
4
|
|
|
5
5
|
interface VueTableToolbarProps extends Omit<TableToolbarProps, 'onSearchChange' | 'onSearch' | 'onFiltersChange' | 'onBulkAction'> {
|
|
6
6
|
}
|
|
@@ -17,6 +17,8 @@ interface VueDataTableWithToolbarProps {
|
|
|
17
17
|
striped?: boolean;
|
|
18
18
|
hoverable?: boolean;
|
|
19
19
|
loading?: boolean;
|
|
20
|
+
locale?: TigerLocaleInput;
|
|
21
|
+
labels?: Partial<TigerLocaleTable>;
|
|
20
22
|
emptyText?: string;
|
|
21
23
|
rowSelection?: RowSelectionConfig;
|
|
22
24
|
rowKey?: string | ((record: Record<string, unknown>) => string | number);
|
|
@@ -79,9 +81,17 @@ declare const DataTableWithToolbar: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
79
81
|
type: BooleanConstructor;
|
|
80
82
|
default: boolean;
|
|
81
83
|
};
|
|
84
|
+
locale: {
|
|
85
|
+
type: PropType<TigerLocaleInput>;
|
|
86
|
+
default: undefined;
|
|
87
|
+
};
|
|
88
|
+
labels: {
|
|
89
|
+
type: PropType<Partial<TigerLocaleTable>>;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
82
92
|
emptyText: {
|
|
83
93
|
type: StringConstructor;
|
|
84
|
-
default:
|
|
94
|
+
default: undefined;
|
|
85
95
|
};
|
|
86
96
|
rowSelection: {
|
|
87
97
|
type: PropType<RowSelectionConfig>;
|
|
@@ -190,9 +200,17 @@ declare const DataTableWithToolbar: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
190
200
|
type: BooleanConstructor;
|
|
191
201
|
default: boolean;
|
|
192
202
|
};
|
|
203
|
+
locale: {
|
|
204
|
+
type: PropType<TigerLocaleInput>;
|
|
205
|
+
default: undefined;
|
|
206
|
+
};
|
|
207
|
+
labels: {
|
|
208
|
+
type: PropType<Partial<TigerLocaleTable>>;
|
|
209
|
+
default: undefined;
|
|
210
|
+
};
|
|
193
211
|
emptyText: {
|
|
194
212
|
type: StringConstructor;
|
|
195
|
-
default:
|
|
213
|
+
default: undefined;
|
|
196
214
|
};
|
|
197
215
|
rowSelection: {
|
|
198
216
|
type: PropType<RowSelectionConfig>;
|
|
@@ -260,7 +278,9 @@ declare const DataTableWithToolbar: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
260
278
|
bordered: boolean;
|
|
261
279
|
hoverable: boolean;
|
|
262
280
|
filters: Record<string, unknown>;
|
|
281
|
+
locale: TigerLocaleInput;
|
|
263
282
|
pagination: false | PaginationConfig;
|
|
283
|
+
labels: Partial<TigerLocaleTable>;
|
|
264
284
|
dataSource: Record<string, unknown>[];
|
|
265
285
|
toolbar: VueTableToolbarProps;
|
|
266
286
|
columnLockable: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
|
-
import { TableColumn, SortState, TableSize, RowSelectionConfig, TableResponsiveMode, TableCardBreakpoint, TableToolbarProps, PaginationConfig, TableToolbarFilterValue, TableToolbarAction } from '@expcat/tigercat-core';
|
|
3
|
+
import { TableColumn, SortState, TableSize, TigerLocaleInput, TigerLocaleTable, RowSelectionConfig, TableResponsiveMode, TableCardBreakpoint, TableToolbarProps, PaginationConfig, TableToolbarFilterValue, TableToolbarAction } from '@expcat/tigercat-core';
|
|
4
4
|
|
|
5
5
|
interface VueTableToolbarProps extends Omit<TableToolbarProps, 'onSearchChange' | 'onSearch' | 'onFiltersChange' | 'onBulkAction'> {
|
|
6
6
|
}
|
|
@@ -17,6 +17,8 @@ interface VueDataTableWithToolbarProps {
|
|
|
17
17
|
striped?: boolean;
|
|
18
18
|
hoverable?: boolean;
|
|
19
19
|
loading?: boolean;
|
|
20
|
+
locale?: TigerLocaleInput;
|
|
21
|
+
labels?: Partial<TigerLocaleTable>;
|
|
20
22
|
emptyText?: string;
|
|
21
23
|
rowSelection?: RowSelectionConfig;
|
|
22
24
|
rowKey?: string | ((record: Record<string, unknown>) => string | number);
|
|
@@ -79,9 +81,17 @@ declare const DataTableWithToolbar: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
79
81
|
type: BooleanConstructor;
|
|
80
82
|
default: boolean;
|
|
81
83
|
};
|
|
84
|
+
locale: {
|
|
85
|
+
type: PropType<TigerLocaleInput>;
|
|
86
|
+
default: undefined;
|
|
87
|
+
};
|
|
88
|
+
labels: {
|
|
89
|
+
type: PropType<Partial<TigerLocaleTable>>;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
82
92
|
emptyText: {
|
|
83
93
|
type: StringConstructor;
|
|
84
|
-
default:
|
|
94
|
+
default: undefined;
|
|
85
95
|
};
|
|
86
96
|
rowSelection: {
|
|
87
97
|
type: PropType<RowSelectionConfig>;
|
|
@@ -190,9 +200,17 @@ declare const DataTableWithToolbar: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
190
200
|
type: BooleanConstructor;
|
|
191
201
|
default: boolean;
|
|
192
202
|
};
|
|
203
|
+
locale: {
|
|
204
|
+
type: PropType<TigerLocaleInput>;
|
|
205
|
+
default: undefined;
|
|
206
|
+
};
|
|
207
|
+
labels: {
|
|
208
|
+
type: PropType<Partial<TigerLocaleTable>>;
|
|
209
|
+
default: undefined;
|
|
210
|
+
};
|
|
193
211
|
emptyText: {
|
|
194
212
|
type: StringConstructor;
|
|
195
|
-
default:
|
|
213
|
+
default: undefined;
|
|
196
214
|
};
|
|
197
215
|
rowSelection: {
|
|
198
216
|
type: PropType<RowSelectionConfig>;
|
|
@@ -260,7 +278,9 @@ declare const DataTableWithToolbar: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
260
278
|
bordered: boolean;
|
|
261
279
|
hoverable: boolean;
|
|
262
280
|
filters: Record<string, unknown>;
|
|
281
|
+
locale: TigerLocaleInput;
|
|
263
282
|
pagination: false | PaginationConfig;
|
|
283
|
+
labels: Partial<TigerLocaleTable>;
|
|
264
284
|
dataSource: Record<string, unknown>[];
|
|
265
285
|
toolbar: VueTableToolbarProps;
|
|
266
286
|
columnLockable: boolean;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var _chunkO23S65U3js = require('../chunk-O23S65U3.js');
|
|
5
|
+
require('../chunk-5BILS3SG.js');
|
|
6
6
|
require('../chunk-BGMAWKWV.js');
|
|
7
|
+
require('../chunk-3QV2D54H.js');
|
|
8
|
+
require('../chunk-FC7RXQTM.js');
|
|
7
9
|
require('../chunk-25EYT2CB.js');
|
|
8
10
|
require('../chunk-BYNMOQBB.js');
|
|
11
|
+
require('../chunk-NOZ65AMO.js');
|
|
12
|
+
require('../chunk-2YFXJUBT.js');
|
|
13
|
+
require('../chunk-Q4MH333P.js');
|
|
9
14
|
require('../chunk-4VLNT2ED.js');
|
|
10
15
|
require('../chunk-7ADONGSB.js');
|
|
11
16
|
|
|
12
17
|
|
|
13
18
|
|
|
14
|
-
exports.DataTableWithToolbar =
|
|
19
|
+
exports.DataTableWithToolbar = _chunkO23S65U3js.DataTableWithToolbar; exports.default = _chunkO23S65U3js.DataTableWithToolbar_default;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DataTableWithToolbar,
|
|
3
3
|
DataTableWithToolbar_default
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-OKBZKBFP.mjs";
|
|
5
|
+
import "../chunk-5Z2OCSVJ.mjs";
|
|
6
6
|
import "../chunk-PYT5DTQQ.mjs";
|
|
7
|
+
import "../chunk-YZP4K6KI.mjs";
|
|
8
|
+
import "../chunk-Y4V7BOVR.mjs";
|
|
7
9
|
import "../chunk-VG6E4NX6.mjs";
|
|
8
10
|
import "../chunk-2WJADO6O.mjs";
|
|
11
|
+
import "../chunk-WFISP42H.mjs";
|
|
12
|
+
import "../chunk-2BNQGU7E.mjs";
|
|
13
|
+
import "../chunk-CPV7INZ4.mjs";
|
|
9
14
|
import "../chunk-PO5GVU4Q.mjs";
|
|
10
15
|
import "../chunk-Z2ZECCGD.mjs";
|
|
11
16
|
export {
|
|
@@ -56,8 +56,8 @@ declare const Empty: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
56
56
|
}>> & Readonly<{}>, {
|
|
57
57
|
className: string;
|
|
58
58
|
style: Record<string, string | number>;
|
|
59
|
-
description: string;
|
|
60
59
|
preset: EmptyPreset;
|
|
60
|
+
description: string;
|
|
61
61
|
showImage: boolean;
|
|
62
62
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
63
63
|
|
|
@@ -56,8 +56,8 @@ declare const Empty: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
56
56
|
}>> & Readonly<{}>, {
|
|
57
57
|
className: string;
|
|
58
58
|
style: Record<string, string | number>;
|
|
59
|
-
description: string;
|
|
60
59
|
preset: EmptyPreset;
|
|
60
|
+
description: string;
|
|
61
61
|
showImage: boolean;
|
|
62
62
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
63
63
|
|
|
@@ -192,9 +192,9 @@ declare const FormWizard: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
192
192
|
prevText: string;
|
|
193
193
|
nextText: string;
|
|
194
194
|
finishText: string;
|
|
195
|
+
simple: boolean;
|
|
195
196
|
defaultCurrent: number;
|
|
196
197
|
current: number;
|
|
197
|
-
simple: boolean;
|
|
198
198
|
clickable: boolean;
|
|
199
199
|
steps: WizardStep[];
|
|
200
200
|
showSteps: boolean;
|
|
@@ -192,9 +192,9 @@ declare const FormWizard: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
192
192
|
prevText: string;
|
|
193
193
|
nextText: string;
|
|
194
194
|
finishText: string;
|
|
195
|
+
simple: boolean;
|
|
195
196
|
defaultCurrent: number;
|
|
196
197
|
current: number;
|
|
197
|
-
simple: boolean;
|
|
198
198
|
clickable: boolean;
|
|
199
199
|
steps: WizardStep[];
|
|
200
200
|
showSteps: boolean;
|
|
@@ -266,6 +266,7 @@ declare const Menu: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
266
266
|
style: Record<string, string | number> | undefined;
|
|
267
267
|
mode: MenuMode;
|
|
268
268
|
theme: MenuTheme;
|
|
269
|
+
searchPlaceholder: string;
|
|
269
270
|
searchable: boolean;
|
|
270
271
|
multiple: boolean;
|
|
271
272
|
collapsed: boolean;
|
|
@@ -277,7 +278,6 @@ declare const Menu: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
277
278
|
popupPortal: boolean;
|
|
278
279
|
searchValue: string;
|
|
279
280
|
defaultSearchValue: string;
|
|
280
|
-
searchPlaceholder: string;
|
|
281
281
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
282
282
|
|
|
283
283
|
interface VueMenuItemProps {
|
|
@@ -266,6 +266,7 @@ declare const Menu: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
266
266
|
style: Record<string, string | number> | undefined;
|
|
267
267
|
mode: MenuMode;
|
|
268
268
|
theme: MenuTheme;
|
|
269
|
+
searchPlaceholder: string;
|
|
269
270
|
searchable: boolean;
|
|
270
271
|
multiple: boolean;
|
|
271
272
|
collapsed: boolean;
|
|
@@ -277,7 +278,6 @@ declare const Menu: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
277
278
|
popupPortal: boolean;
|
|
278
279
|
searchValue: string;
|
|
279
280
|
defaultSearchValue: string;
|
|
280
|
-
searchPlaceholder: string;
|
|
281
281
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
282
282
|
|
|
283
283
|
interface VueMenuItemProps {
|
|
@@ -371,11 +371,11 @@ declare const Pagination: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
371
371
|
locale: TigerLocaleInput;
|
|
372
372
|
totalText: (total: number, range: [number, number]) => string;
|
|
373
373
|
labels: Partial<TigerLocalePagination>;
|
|
374
|
+
simple: boolean;
|
|
374
375
|
defaultCurrent: number;
|
|
375
376
|
defaultPageSize: number;
|
|
376
377
|
total: number;
|
|
377
378
|
current: number;
|
|
378
|
-
simple: boolean;
|
|
379
379
|
pageSize: number;
|
|
380
380
|
pageSizeOptions: PaginationPageSizeOptionItem[];
|
|
381
381
|
showQuickJumper: boolean;
|