rayyy-vue-table-components 2.0.6 → 2.0.7
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/README.md +77 -1
- package/dist/index.es.js +128 -128
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/layout/SearchableListPanel.vue +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
- 🚀 **現代化技術棧** - 基於 Vue 3 + TypeScript + Element Plus + Tailwind CSS
|
|
15
15
|
- 📦 **開箱即用** - 提供完整的組件解決方案,包含表格、表單、佈局、交互組件
|
|
16
16
|
- 🎯 **類型安全** - 完整的 TypeScript 類型定義,支援智能提示和類型檢查
|
|
17
|
+
- 🌐 **國際化支持** - 內建 i18n 支持,支援多語言切換和外部專案語系同步
|
|
17
18
|
- 📱 **響應式設計** - 使用 Tailwind CSS,適配各種設備尺寸
|
|
18
19
|
- 🔧 **高度可配置** - 靈活的配置選項和豐富的插槽支持
|
|
19
20
|
- 🎨 **樣式系統** - 多種樣式導入方式,支援自定義主題和 Tailwind CSS 集成
|
|
@@ -37,7 +38,7 @@ yarn add rayyy-vue-table-components
|
|
|
37
38
|
pnpm add rayyy-vue-table-components
|
|
38
39
|
```
|
|
39
40
|
|
|
40
|
-
> **注意**: 本組件庫需要 Vue 3.0
|
|
41
|
+
> **注意**: 本組件庫需要 Vue 3.0+、Element Plus 和 vue-i18n (>=10.0.0) 作為對等依賴。
|
|
41
42
|
|
|
42
43
|
## 🚀 快速開始
|
|
43
44
|
|
|
@@ -94,6 +95,58 @@ app.use(VueTableComponents)
|
|
|
94
95
|
app.mount('#app')
|
|
95
96
|
```
|
|
96
97
|
|
|
98
|
+
### 國際化 (i18n) 設定
|
|
99
|
+
|
|
100
|
+
組件庫支援國際化,可以與外部專案的 `vue-i18n` 整合:
|
|
101
|
+
|
|
102
|
+
```typescript
|
|
103
|
+
import { createApp } from 'vue'
|
|
104
|
+
import { createI18n } from 'vue-i18n'
|
|
105
|
+
import ElementPlus from 'element-plus'
|
|
106
|
+
import VueTableComponents, { messages as componentMessages } from 'rayyy-vue-table-components'
|
|
107
|
+
|
|
108
|
+
const app = createApp(App)
|
|
109
|
+
|
|
110
|
+
// 建立 i18n 實例,合併組件庫的翻譯
|
|
111
|
+
const i18n = createI18n({
|
|
112
|
+
legacy: false,
|
|
113
|
+
locale: 'zh-TW',
|
|
114
|
+
fallbackLocale: 'zh-TW',
|
|
115
|
+
messages: {
|
|
116
|
+
// 合併組件庫的翻譯
|
|
117
|
+
...componentMessages,
|
|
118
|
+
// 可以添加您自己的翻譯
|
|
119
|
+
'zh-TW': {
|
|
120
|
+
...componentMessages['zh-TW'],
|
|
121
|
+
'custom.key': '自定義翻譯'
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
app.use(i18n)
|
|
127
|
+
app.use(ElementPlus)
|
|
128
|
+
app.use(VueTableComponents, {
|
|
129
|
+
locale: 'zh-TW' // 設定組件庫預設語系
|
|
130
|
+
})
|
|
131
|
+
app.mount('#app')
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**支援的語系:**
|
|
135
|
+
- `zh-TW` - 繁體中文(預設)
|
|
136
|
+
- `en-US` - 英文
|
|
137
|
+
|
|
138
|
+
**導入翻譯檔案:**
|
|
139
|
+
```typescript
|
|
140
|
+
// 導入組件庫的翻譯
|
|
141
|
+
import { messages as componentMessages } from 'rayyy-vue-table-components/locales'
|
|
142
|
+
|
|
143
|
+
// 導入特定語系
|
|
144
|
+
import { zhTW, enUS } from 'rayyy-vue-table-components/locales'
|
|
145
|
+
|
|
146
|
+
// 導入類型
|
|
147
|
+
import type { LocaleType } from 'rayyy-vue-table-components/locales'
|
|
148
|
+
```
|
|
149
|
+
|
|
97
150
|
### 按需引入
|
|
98
151
|
|
|
99
152
|
如果您只想使用部分組件,可以按需引入:
|
|
@@ -1460,6 +1513,29 @@ src/
|
|
|
1460
1513
|
|
|
1461
1514
|
查看 [CHANGELOG.md](./CHANGELOG.md) 了解詳細的版本更新記錄。
|
|
1462
1515
|
|
|
1516
|
+
#### 最新更新 (v2.0.1 - v2.0.6)
|
|
1517
|
+
|
|
1518
|
+
**🌐 國際化 (i18n) 支持**
|
|
1519
|
+
- ✅ 新增完整的國際化支持,支援繁體中文 (zh-TW) 和英文 (en-US)
|
|
1520
|
+
- ✅ 所有組件文字已替換為 i18n 翻譯鍵值
|
|
1521
|
+
- ✅ 支援外部專案語系同步,無需維護組件庫的翻譯檔案
|
|
1522
|
+
- ✅ 提供 `vue-i18n` 整合,支援 `>=10.0.0` 版本
|
|
1523
|
+
- ✅ 新增語系切換功能,支援動態語言切換
|
|
1524
|
+
- ✅ 提供翻譯檔案自動更新腳本,支援 Google Sheets 整合
|
|
1525
|
+
|
|
1526
|
+
**🔧 技術改進**
|
|
1527
|
+
- ✅ 修復 `vue-i18n` 依賴版本衝突問題
|
|
1528
|
+
- ✅ 優化模組導出配置,支援 `./locales` 子路徑導入
|
|
1529
|
+
- ✅ 完善 TypeScript 類型定義,提供完整的 i18n 類型支持
|
|
1530
|
+
- ✅ 修復構建配置,確保翻譯檔案正確打包
|
|
1531
|
+
- ✅ 更新 Vite 配置,優化 i18n 資源處理
|
|
1532
|
+
|
|
1533
|
+
**📦 新增功能**
|
|
1534
|
+
- ✅ 新增 `useI18n` 和 `setLocale` 工具函數
|
|
1535
|
+
- ✅ 新增 `messages` 和 `LocaleType` 類型導出
|
|
1536
|
+
- ✅ 新增 i18n 測試演示頁面
|
|
1537
|
+
- ✅ 新增語系切換按鈕和演示功能
|
|
1538
|
+
|
|
1463
1539
|
### 組件統計
|
|
1464
1540
|
|
|
1465
1541
|
本組件庫目前包含 **17+ 個組件**,涵蓋以下類別:
|
package/dist/index.es.js
CHANGED
|
@@ -332,28 +332,28 @@ var T2 = Object.prototype, X8 = T2.hasOwnProperty, Z8 = T2.propertyIsEnumerable,
|
|
|
332
332
|
function J8() {
|
|
333
333
|
return !1;
|
|
334
334
|
}
|
|
335
|
-
var O2 = typeof exports == "object" && exports && !exports.nodeType && exports, W0 = O2 && typeof module == "object" && module && !module.nodeType && module, Q8 = W0 && W0.exports === O2, H0 = Q8 ? lr.Buffer : void 0,
|
|
336
|
-
dt[
|
|
337
|
-
dt[
|
|
338
|
-
function
|
|
335
|
+
var O2 = typeof exports == "object" && exports && !exports.nodeType && exports, W0 = O2 && typeof module == "object" && module && !module.nodeType && module, Q8 = W0 && W0.exports === O2, H0 = Q8 ? lr.Buffer : void 0, e7 = H0 ? H0.isBuffer : void 0, Ri = e7 || J8, t7 = "[object Arguments]", n7 = "[object Array]", r7 = "[object Boolean]", o7 = "[object Date]", l7 = "[object Error]", a7 = "[object Function]", i7 = "[object Map]", s7 = "[object Number]", u7 = "[object Object]", c7 = "[object RegExp]", f7 = "[object Set]", d7 = "[object String]", p7 = "[object WeakMap]", v7 = "[object ArrayBuffer]", h7 = "[object DataView]", g7 = "[object Float32Array]", m7 = "[object Float64Array]", b7 = "[object Int8Array]", y7 = "[object Int16Array]", C7 = "[object Int32Array]", w7 = "[object Uint8Array]", _7 = "[object Uint8ClampedArray]", S7 = "[object Uint16Array]", E7 = "[object Uint32Array]", dt = {};
|
|
336
|
+
dt[g7] = dt[m7] = dt[b7] = dt[y7] = dt[C7] = dt[w7] = dt[_7] = dt[S7] = dt[E7] = !0;
|
|
337
|
+
dt[t7] = dt[n7] = dt[v7] = dt[r7] = dt[h7] = dt[o7] = dt[l7] = dt[a7] = dt[i7] = dt[s7] = dt[u7] = dt[c7] = dt[f7] = dt[d7] = dt[p7] = !1;
|
|
338
|
+
function x7(e) {
|
|
339
339
|
return uo(e) && mc(e.length) && !!dt[Fo(e)];
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function T7(e) {
|
|
342
342
|
return function(n) {
|
|
343
343
|
return e(n);
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
|
-
var A2 = typeof exports == "object" && exports && !exports.nodeType && exports, ta = A2 && typeof module == "object" && module && !module.nodeType && module,
|
|
346
|
+
var A2 = typeof exports == "object" && exports && !exports.nodeType && exports, ta = A2 && typeof module == "object" && module && !module.nodeType && module, O7 = ta && ta.exports === A2, Au = O7 && y2.process, V0 = (function() {
|
|
347
347
|
try {
|
|
348
348
|
var e = ta && ta.require && ta.require("util").types;
|
|
349
349
|
return e || Au && Au.binding && Au.binding("util");
|
|
350
350
|
} catch {
|
|
351
351
|
}
|
|
352
|
-
})(), U0 = V0 && V0.isTypedArray, yc = U0 ?
|
|
352
|
+
})(), U0 = V0 && V0.isTypedArray, yc = U0 ? T7(U0) : x7, A7 = Object.prototype, L7 = A7.hasOwnProperty;
|
|
353
353
|
function L2(e, n) {
|
|
354
354
|
var r = wn(e), l = !r && la(e), a = !r && !l && Ri(e), u = !r && !l && !a && yc(e), s = r || l || a || u, c = s ? q8(e.length, String) : [], p = c.length;
|
|
355
355
|
for (var f in e)
|
|
356
|
-
(n ||
|
|
356
|
+
(n || L7.call(e, f)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
357
357
|
(f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
358
358
|
a && (f == "offset" || f == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
359
359
|
u && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties.
|
|
@@ -365,70 +365,70 @@ function k2(e, n) {
|
|
|
365
365
|
return e(n(r));
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
|
-
var
|
|
369
|
-
function
|
|
368
|
+
var k7 = k2(Object.keys, Object), R7 = Object.prototype, I7 = R7.hasOwnProperty;
|
|
369
|
+
function P7(e) {
|
|
370
370
|
if (!bc(e))
|
|
371
|
-
return
|
|
371
|
+
return k7(e);
|
|
372
372
|
var n = [];
|
|
373
373
|
for (var r in Object(e))
|
|
374
|
-
|
|
374
|
+
I7.call(e, r) && r != "constructor" && n.push(r);
|
|
375
375
|
return n;
|
|
376
376
|
}
|
|
377
377
|
function Cc(e) {
|
|
378
|
-
return Tl(e) ? L2(e) :
|
|
378
|
+
return Tl(e) ? L2(e) : P7(e);
|
|
379
379
|
}
|
|
380
|
-
function $
|
|
380
|
+
function $7(e) {
|
|
381
381
|
var n = [];
|
|
382
382
|
if (e != null)
|
|
383
383
|
for (var r in Object(e))
|
|
384
384
|
n.push(r);
|
|
385
385
|
return n;
|
|
386
386
|
}
|
|
387
|
-
var
|
|
388
|
-
function
|
|
387
|
+
var M7 = Object.prototype, B7 = M7.hasOwnProperty;
|
|
388
|
+
function N7(e) {
|
|
389
389
|
if (!Pn(e))
|
|
390
|
-
return $
|
|
390
|
+
return $7(e);
|
|
391
391
|
var n = bc(e), r = [];
|
|
392
392
|
for (var l in e)
|
|
393
|
-
l == "constructor" && (n || !
|
|
393
|
+
l == "constructor" && (n || !B7.call(e, l)) || r.push(l);
|
|
394
394
|
return r;
|
|
395
395
|
}
|
|
396
396
|
function R2(e) {
|
|
397
|
-
return Tl(e) ? L2(e, !0) :
|
|
397
|
+
return Tl(e) ? L2(e, !0) : N7(e);
|
|
398
398
|
}
|
|
399
|
-
var
|
|
399
|
+
var F7 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, D7 = /^\w*$/;
|
|
400
400
|
function wc(e, n) {
|
|
401
401
|
if (wn(e))
|
|
402
402
|
return !1;
|
|
403
403
|
var r = typeof e;
|
|
404
|
-
return r == "number" || r == "symbol" || r == "boolean" || e == null || Wi(e) ? !0 :
|
|
404
|
+
return r == "number" || r == "symbol" || r == "boolean" || e == null || Wi(e) ? !0 : D7.test(e) || !F7.test(e) || n != null && e in Object(n);
|
|
405
405
|
}
|
|
406
406
|
var aa = zo(Object, "create");
|
|
407
|
-
function
|
|
407
|
+
function z7() {
|
|
408
408
|
this.__data__ = aa ? aa(null) : {}, this.size = 0;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function W7(e) {
|
|
411
411
|
var n = this.has(e) && delete this.__data__[e];
|
|
412
412
|
return this.size -= n ? 1 : 0, n;
|
|
413
413
|
}
|
|
414
|
-
var
|
|
415
|
-
function
|
|
414
|
+
var H7 = "__lodash_hash_undefined__", V7 = Object.prototype, U7 = V7.hasOwnProperty;
|
|
415
|
+
function K7(e) {
|
|
416
416
|
var n = this.__data__;
|
|
417
417
|
if (aa) {
|
|
418
418
|
var r = n[e];
|
|
419
|
-
return r ===
|
|
419
|
+
return r === H7 ? void 0 : r;
|
|
420
420
|
}
|
|
421
|
-
return
|
|
421
|
+
return U7.call(n, e) ? n[e] : void 0;
|
|
422
422
|
}
|
|
423
|
-
var
|
|
424
|
-
function
|
|
423
|
+
var G7 = Object.prototype, j7 = G7.hasOwnProperty;
|
|
424
|
+
function q7(e) {
|
|
425
425
|
var n = this.__data__;
|
|
426
|
-
return aa ? n[e] !== void 0 :
|
|
426
|
+
return aa ? n[e] !== void 0 : j7.call(n, e);
|
|
427
427
|
}
|
|
428
|
-
var
|
|
429
|
-
function
|
|
428
|
+
var Y7 = "__lodash_hash_undefined__";
|
|
429
|
+
function X7(e, n) {
|
|
430
430
|
var r = this.__data__;
|
|
431
|
-
return this.size += this.has(e) ? 0 : 1, r[e] = aa && n === void 0 ?
|
|
431
|
+
return this.size += this.has(e) ? 0 : 1, r[e] = aa && n === void 0 ? Y7 : n, this;
|
|
432
432
|
}
|
|
433
433
|
function $o(e) {
|
|
434
434
|
var n = -1, r = e == null ? 0 : e.length;
|
|
@@ -437,12 +437,12 @@ function $o(e) {
|
|
|
437
437
|
this.set(l[0], l[1]);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
$o.prototype.clear =
|
|
441
|
-
$o.prototype.delete =
|
|
442
|
-
$o.prototype.get =
|
|
443
|
-
$o.prototype.has =
|
|
444
|
-
$o.prototype.set =
|
|
445
|
-
function
|
|
440
|
+
$o.prototype.clear = z7;
|
|
441
|
+
$o.prototype.delete = W7;
|
|
442
|
+
$o.prototype.get = K7;
|
|
443
|
+
$o.prototype.has = q7;
|
|
444
|
+
$o.prototype.set = X7;
|
|
445
|
+
function Z7() {
|
|
446
446
|
this.__data__ = [], this.size = 0;
|
|
447
447
|
}
|
|
448
448
|
function Vi(e, n) {
|
|
@@ -451,22 +451,22 @@ function Vi(e, n) {
|
|
|
451
451
|
return r;
|
|
452
452
|
return -1;
|
|
453
453
|
}
|
|
454
|
-
var
|
|
455
|
-
function
|
|
454
|
+
var J7 = Array.prototype, Q7 = J7.splice;
|
|
455
|
+
function eb(e) {
|
|
456
456
|
var n = this.__data__, r = Vi(n, e);
|
|
457
457
|
if (r < 0)
|
|
458
458
|
return !1;
|
|
459
459
|
var l = n.length - 1;
|
|
460
|
-
return r == l ? n.pop() :
|
|
460
|
+
return r == l ? n.pop() : Q7.call(n, r, 1), --this.size, !0;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function tb(e) {
|
|
463
463
|
var n = this.__data__, r = Vi(n, e);
|
|
464
464
|
return r < 0 ? void 0 : n[r][1];
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function nb(e) {
|
|
467
467
|
return Vi(this.__data__, e) > -1;
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function rb(e, n) {
|
|
470
470
|
var r = this.__data__, l = Vi(r, e);
|
|
471
471
|
return l < 0 ? (++this.size, r.push([e, n])) : r[l][1] = n, this;
|
|
472
472
|
}
|
|
@@ -477,38 +477,38 @@ function Wr(e) {
|
|
|
477
477
|
this.set(l[0], l[1]);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
Wr.prototype.clear =
|
|
481
|
-
Wr.prototype.delete =
|
|
482
|
-
Wr.prototype.get =
|
|
483
|
-
Wr.prototype.has =
|
|
484
|
-
Wr.prototype.set =
|
|
480
|
+
Wr.prototype.clear = Z7;
|
|
481
|
+
Wr.prototype.delete = eb;
|
|
482
|
+
Wr.prototype.get = tb;
|
|
483
|
+
Wr.prototype.has = nb;
|
|
484
|
+
Wr.prototype.set = rb;
|
|
485
485
|
var ia = zo(lr, "Map");
|
|
486
|
-
function
|
|
486
|
+
function ob() {
|
|
487
487
|
this.size = 0, this.__data__ = {
|
|
488
488
|
hash: new $o(),
|
|
489
489
|
map: new (ia || Wr)(),
|
|
490
490
|
string: new $o()
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function lb(e) {
|
|
494
494
|
var n = typeof e;
|
|
495
495
|
return n == "string" || n == "number" || n == "symbol" || n == "boolean" ? e !== "__proto__" : e === null;
|
|
496
496
|
}
|
|
497
497
|
function Ui(e, n) {
|
|
498
498
|
var r = e.__data__;
|
|
499
|
-
return
|
|
499
|
+
return lb(n) ? r[typeof n == "string" ? "string" : "hash"] : r.map;
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function ab(e) {
|
|
502
502
|
var n = Ui(this, e).delete(e);
|
|
503
503
|
return this.size -= n ? 1 : 0, n;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function ib(e) {
|
|
506
506
|
return Ui(this, e).get(e);
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function sb(e) {
|
|
509
509
|
return Ui(this, e).has(e);
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function ub(e, n) {
|
|
512
512
|
var r = Ui(this, e), l = r.size;
|
|
513
513
|
return r.set(e, n), this.size += r.size == l ? 0 : 1, this;
|
|
514
514
|
}
|
|
@@ -519,15 +519,15 @@ function Hr(e) {
|
|
|
519
519
|
this.set(l[0], l[1]);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
Hr.prototype.clear =
|
|
523
|
-
Hr.prototype.delete =
|
|
524
|
-
Hr.prototype.get =
|
|
525
|
-
Hr.prototype.has =
|
|
526
|
-
Hr.prototype.set =
|
|
527
|
-
var
|
|
522
|
+
Hr.prototype.clear = ob;
|
|
523
|
+
Hr.prototype.delete = ab;
|
|
524
|
+
Hr.prototype.get = ib;
|
|
525
|
+
Hr.prototype.has = sb;
|
|
526
|
+
Hr.prototype.set = ub;
|
|
527
|
+
var cb = "Expected a function";
|
|
528
528
|
function _c(e, n) {
|
|
529
529
|
if (typeof e != "function" || n != null && typeof n != "function")
|
|
530
|
-
throw new TypeError(
|
|
530
|
+
throw new TypeError(cb);
|
|
531
531
|
var r = function() {
|
|
532
532
|
var l = arguments, a = n ? n.apply(this, l) : l[0], u = r.cache;
|
|
533
533
|
if (u.has(a))
|
|
@@ -538,24 +538,24 @@ function _c(e, n) {
|
|
|
538
538
|
return r.cache = new (_c.Cache || Hr)(), r;
|
|
539
539
|
}
|
|
540
540
|
_c.Cache = Hr;
|
|
541
|
-
var
|
|
542
|
-
function
|
|
541
|
+
var fb = 500;
|
|
542
|
+
function db(e) {
|
|
543
543
|
var n = _c(e, function(l) {
|
|
544
|
-
return r.size ===
|
|
544
|
+
return r.size === fb && r.clear(), l;
|
|
545
545
|
}), r = n.cache;
|
|
546
546
|
return n;
|
|
547
547
|
}
|
|
548
|
-
var
|
|
548
|
+
var pb = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, vb = /\\(\\)?/g, hb = db(function(e) {
|
|
549
549
|
var n = [];
|
|
550
|
-
return e.charCodeAt(0) === 46 && n.push(""), e.replace(
|
|
551
|
-
n.push(a ? u.replace(
|
|
550
|
+
return e.charCodeAt(0) === 46 && n.push(""), e.replace(pb, function(r, l, a, u) {
|
|
551
|
+
n.push(a ? u.replace(vb, "$1") : l || r);
|
|
552
552
|
}), n;
|
|
553
553
|
});
|
|
554
|
-
function
|
|
554
|
+
function gb(e) {
|
|
555
555
|
return e == null ? "" : _2(e);
|
|
556
556
|
}
|
|
557
557
|
function Ki(e, n) {
|
|
558
|
-
return wn(e) ? e : wc(e, n) ? [e] :
|
|
558
|
+
return wn(e) ? e : wc(e, n) ? [e] : hb(gb(e));
|
|
559
559
|
}
|
|
560
560
|
function ga(e) {
|
|
561
561
|
if (typeof e == "string" || Wi(e))
|
|
@@ -579,33 +579,33 @@ function I2(e, n) {
|
|
|
579
579
|
return e;
|
|
580
580
|
}
|
|
581
581
|
var K0 = yr ? yr.isConcatSpreadable : void 0;
|
|
582
|
-
function
|
|
582
|
+
function mb(e) {
|
|
583
583
|
return wn(e) || la(e) || !!(K0 && e && e[K0]);
|
|
584
584
|
}
|
|
585
585
|
function P2(e, n, r, l, a) {
|
|
586
586
|
var u = -1, s = e.length;
|
|
587
|
-
for (r || (r =
|
|
587
|
+
for (r || (r = mb), a || (a = []); ++u < s; ) {
|
|
588
588
|
var c = e[u];
|
|
589
589
|
r(c) ? I2(a, c) : a[a.length] = c;
|
|
590
590
|
}
|
|
591
591
|
return a;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function bb(e) {
|
|
594
594
|
var n = e == null ? 0 : e.length;
|
|
595
595
|
return n ? P2(e) : [];
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
return S2(x2(e, void 0,
|
|
597
|
+
function yb(e) {
|
|
598
|
+
return S2(x2(e, void 0, bb), e + "");
|
|
599
599
|
}
|
|
600
|
-
var $2 = k2(Object.getPrototypeOf, Object),
|
|
601
|
-
function
|
|
602
|
-
if (!uo(e) || Fo(e) !=
|
|
600
|
+
var $2 = k2(Object.getPrototypeOf, Object), Cb = "[object Object]", wb = Function.prototype, _b = Object.prototype, M2 = wb.toString, Sb = _b.hasOwnProperty, Eb = M2.call(Object);
|
|
601
|
+
function xb(e) {
|
|
602
|
+
if (!uo(e) || Fo(e) != Cb)
|
|
603
603
|
return !1;
|
|
604
604
|
var n = $2(e);
|
|
605
605
|
if (n === null)
|
|
606
606
|
return !0;
|
|
607
|
-
var r =
|
|
608
|
-
return typeof r == "function" && r instanceof r && M2.call(r) ==
|
|
607
|
+
var r = Sb.call(n, "constructor") && n.constructor;
|
|
608
|
+
return typeof r == "function" && r instanceof r && M2.call(r) == Eb;
|
|
609
609
|
}
|
|
610
610
|
function hr() {
|
|
611
611
|
if (!arguments.length)
|
|
@@ -613,25 +613,25 @@ function hr() {
|
|
|
613
613
|
var e = arguments[0];
|
|
614
614
|
return wn(e) ? e : [e];
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function Tb() {
|
|
617
617
|
this.__data__ = new Wr(), this.size = 0;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function Ob(e) {
|
|
620
620
|
var n = this.__data__, r = n.delete(e);
|
|
621
621
|
return this.size = n.size, r;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Ab(e) {
|
|
624
624
|
return this.__data__.get(e);
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function Lb(e) {
|
|
627
627
|
return this.__data__.has(e);
|
|
628
628
|
}
|
|
629
|
-
var
|
|
630
|
-
function
|
|
629
|
+
var kb = 200;
|
|
630
|
+
function Rb(e, n) {
|
|
631
631
|
var r = this.__data__;
|
|
632
632
|
if (r instanceof Wr) {
|
|
633
633
|
var l = r.__data__;
|
|
634
|
-
if (!ia || l.length <
|
|
634
|
+
if (!ia || l.length < kb - 1)
|
|
635
635
|
return l.push([e, n]), this.size = ++r.size, this;
|
|
636
636
|
r = this.__data__ = new Hr(l);
|
|
637
637
|
}
|
|
@@ -641,73 +641,73 @@ function gr(e) {
|
|
|
641
641
|
var n = this.__data__ = new Wr(e);
|
|
642
642
|
this.size = n.size;
|
|
643
643
|
}
|
|
644
|
-
gr.prototype.clear =
|
|
645
|
-
gr.prototype.delete =
|
|
646
|
-
gr.prototype.get =
|
|
647
|
-
gr.prototype.has =
|
|
648
|
-
gr.prototype.set =
|
|
649
|
-
var B2 = typeof exports == "object" && exports && !exports.nodeType && exports, G0 = B2 && typeof module == "object" && module && !module.nodeType && module,
|
|
644
|
+
gr.prototype.clear = Tb;
|
|
645
|
+
gr.prototype.delete = Ob;
|
|
646
|
+
gr.prototype.get = Ab;
|
|
647
|
+
gr.prototype.has = Lb;
|
|
648
|
+
gr.prototype.set = Rb;
|
|
649
|
+
var B2 = typeof exports == "object" && exports && !exports.nodeType && exports, G0 = B2 && typeof module == "object" && module && !module.nodeType && module, Ib = G0 && G0.exports === B2, j0 = Ib ? lr.Buffer : void 0;
|
|
650
650
|
j0 && j0.allocUnsafe;
|
|
651
|
-
function
|
|
651
|
+
function Pb(e, n) {
|
|
652
652
|
return e.slice();
|
|
653
653
|
}
|
|
654
|
-
function $
|
|
654
|
+
function $b(e, n) {
|
|
655
655
|
for (var r = -1, l = e == null ? 0 : e.length, a = 0, u = []; ++r < l; ) {
|
|
656
656
|
var s = e[r];
|
|
657
657
|
n(s, r, e) && (u[a++] = s);
|
|
658
658
|
}
|
|
659
659
|
return u;
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function Mb() {
|
|
662
662
|
return [];
|
|
663
663
|
}
|
|
664
|
-
var
|
|
665
|
-
return e == null ? [] : (e = Object(e), $
|
|
666
|
-
return
|
|
664
|
+
var Bb = Object.prototype, Nb = Bb.propertyIsEnumerable, q0 = Object.getOwnPropertySymbols, Fb = q0 ? function(e) {
|
|
665
|
+
return e == null ? [] : (e = Object(e), $b(q0(e), function(n) {
|
|
666
|
+
return Nb.call(e, n);
|
|
667
667
|
}));
|
|
668
|
-
} :
|
|
669
|
-
function
|
|
668
|
+
} : Mb;
|
|
669
|
+
function Db(e, n, r) {
|
|
670
670
|
var l = n(e);
|
|
671
671
|
return wn(e) ? l : I2(l, r(e));
|
|
672
672
|
}
|
|
673
673
|
function Y0(e) {
|
|
674
|
-
return
|
|
674
|
+
return Db(e, Cc, Fb);
|
|
675
675
|
}
|
|
676
|
-
var Wu = zo(lr, "DataView"), Hu = zo(lr, "Promise"), Vu = zo(lr, "Set"), X0 = "[object Map]",
|
|
676
|
+
var Wu = zo(lr, "DataView"), Hu = zo(lr, "Promise"), Vu = zo(lr, "Set"), X0 = "[object Map]", zb = "[object Object]", Z0 = "[object Promise]", J0 = "[object Set]", Q0 = "[object WeakMap]", ep = "[object DataView]", Wb = Do(Wu), Hb = Do(ia), Vb = Do(Hu), Ub = Do(Vu), Kb = Do(zu), no = Fo;
|
|
677
677
|
(Wu && no(new Wu(new ArrayBuffer(1))) != ep || ia && no(new ia()) != X0 || Hu && no(Hu.resolve()) != Z0 || Vu && no(new Vu()) != J0 || zu && no(new zu()) != Q0) && (no = function(e) {
|
|
678
|
-
var n = Fo(e), r = n ==
|
|
678
|
+
var n = Fo(e), r = n == zb ? e.constructor : void 0, l = r ? Do(r) : "";
|
|
679
679
|
if (l)
|
|
680
680
|
switch (l) {
|
|
681
|
-
case
|
|
681
|
+
case Wb:
|
|
682
682
|
return ep;
|
|
683
|
-
case
|
|
683
|
+
case Hb:
|
|
684
684
|
return X0;
|
|
685
|
-
case
|
|
685
|
+
case Vb:
|
|
686
686
|
return Z0;
|
|
687
|
-
case
|
|
687
|
+
case Ub:
|
|
688
688
|
return J0;
|
|
689
|
-
case
|
|
689
|
+
case Kb:
|
|
690
690
|
return Q0;
|
|
691
691
|
}
|
|
692
692
|
return n;
|
|
693
693
|
});
|
|
694
694
|
var Ii = lr.Uint8Array;
|
|
695
|
-
function
|
|
695
|
+
function Gb(e) {
|
|
696
696
|
var n = new e.constructor(e.byteLength);
|
|
697
697
|
return new Ii(n).set(new Ii(e)), n;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
700
|
-
var r =
|
|
699
|
+
function jb(e, n) {
|
|
700
|
+
var r = Gb(e.buffer);
|
|
701
701
|
return new e.constructor(r, e.byteOffset, e.length);
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function qb(e) {
|
|
704
704
|
return typeof e.constructor == "function" && !bc(e) ? A8($2(e)) : {};
|
|
705
705
|
}
|
|
706
|
-
var
|
|
707
|
-
function
|
|
708
|
-
return this.__data__.set(e,
|
|
706
|
+
var Yb = "__lodash_hash_undefined__";
|
|
707
|
+
function Xb(e) {
|
|
708
|
+
return this.__data__.set(e, Yb), this;
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function Zb(e) {
|
|
711
711
|
return this.__data__.has(e);
|
|
712
712
|
}
|
|
713
713
|
function Pi(e) {
|
|
@@ -715,15 +715,15 @@ function Pi(e) {
|
|
|
715
715
|
for (this.__data__ = new Hr(); ++n < r; )
|
|
716
716
|
this.add(e[n]);
|
|
717
717
|
}
|
|
718
|
-
Pi.prototype.add = Pi.prototype.push =
|
|
719
|
-
Pi.prototype.has =
|
|
720
|
-
function
|
|
718
|
+
Pi.prototype.add = Pi.prototype.push = Xb;
|
|
719
|
+
Pi.prototype.has = Zb;
|
|
720
|
+
function Jb(e, n) {
|
|
721
721
|
for (var r = -1, l = e == null ? 0 : e.length; ++r < l; )
|
|
722
722
|
if (n(e[r], r, e))
|
|
723
723
|
return !0;
|
|
724
724
|
return !1;
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function Qb(e, n) {
|
|
727
727
|
return e.has(n);
|
|
728
728
|
}
|
|
729
729
|
var ey = 1, ty = 2;
|
|
@@ -746,8 +746,8 @@ function N2(e, n, r, l, a, u) {
|
|
|
746
746
|
break;
|
|
747
747
|
}
|
|
748
748
|
if (m) {
|
|
749
|
-
if (!
|
|
750
|
-
if (!
|
|
749
|
+
if (!Jb(n, function(T, L) {
|
|
750
|
+
if (!Qb(m, L) && (g === T || a(g, T, r, l, u)))
|
|
751
751
|
return m.push(L);
|
|
752
752
|
})) {
|
|
753
753
|
b = !1;
|
|
@@ -1045,7 +1045,7 @@ function jy(e, n, r, l, a, u, s) {
|
|
|
1045
1045
|
var v = u ? u(c, p, r + "", e, n, s) : void 0, h = v === void 0;
|
|
1046
1046
|
if (h) {
|
|
1047
1047
|
var b = wn(p), m = !b && Ri(p), g = !b && !m && yc(p);
|
|
1048
|
-
v = p, b || m || g ? wn(c) ? v = c : Ky(c) ? v = k8(c) : m ? (h = !1, v =
|
|
1048
|
+
v = p, b || m || g ? wn(c) ? v = c : Ky(c) ? v = k8(c) : m ? (h = !1, v = Pb(p)) : g ? (h = !1, v = jb(p)) : v = [] : xb(p) || la(p) ? (v = c, la(c) ? v = Gy(c) : (!Pn(c) || hc(c)) && (v = qb(p))) : h = !1;
|
|
1049
1049
|
}
|
|
1050
1050
|
h && (s.set(p, v), a(v, p, l, u, s), s.delete(p)), Uu(e, r, v);
|
|
1051
1051
|
}
|
|
@@ -1129,7 +1129,7 @@ function Qy(e, n) {
|
|
|
1129
1129
|
return z2(e, l);
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
|
-
var j2 =
|
|
1132
|
+
var j2 = yb(function(e, n) {
|
|
1133
1133
|
return e == null ? {} : Qy(e, n);
|
|
1134
1134
|
});
|
|
1135
1135
|
function e9(e, n, r) {
|
|
@@ -16968,7 +16968,7 @@ const Ci = /* @__PURE__ */ WS($O), MO = /* @__PURE__ */ J({
|
|
|
16968
16968
|
a("updatePageSize", h);
|
|
16969
16969
|
}, f = () => {
|
|
16970
16970
|
a("click:back");
|
|
16971
|
-
}, v = P(() =>
|
|
16971
|
+
}, v = P(() => r.showPagination ? r.showPagination : r.pagination.totalCount > 0);
|
|
16972
16972
|
return (h, b) => {
|
|
16973
16973
|
const m = Lx;
|
|
16974
16974
|
return $(), ie(C(of), {
|
package/dist/index.umd.js
CHANGED
|
@@ -41,4 +41,4 @@ __p += '`),Re&&(Y+=`' +
|
|
|
41
41
|
function print() { __p += __j.call(arguments, '') }
|
|
42
42
|
`:`;
|
|
43
43
|
`)+Y+`return __p
|
|
44
|
-
}`;var ke=kh(function(){return Fe(k,ie+"return "+Y).apply(o,L)});if(ke.source=Y,eu(ke))throw ke;return ke}function tB(n){return De(n).toLowerCase()}function nB(n){return De(n).toUpperCase()}function rB(n,l,s){if(n=De(n),n&&(s||l===o))return Rp(n);if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Tn(l),k=Pp(p,w),L=Mp(p,w)+1;return Nr(p,k,L).join("")}function oB(n,l,s){if(n=De(n),n&&(s||l===o))return n.slice(0,Vp(n)+1);if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Mp(p,Tn(l))+1;return Nr(p,0,w).join("")}function lB(n,l,s){if(n=De(n),n&&(s||l===o))return n.replace(Ao,"");if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Pp(p,Tn(l));return Nr(p,w).join("")}function aB(n,l){var s=U,p=D;if(tt(l)){var w="separator"in l?l.separator:w;s="length"in l?Se(l.length):s,p="omission"in l?nn(l.omission):p}n=De(n);var k=n.length;if($o(n)){var L=Tn(n);k=L.length}if(s>=k)return n;var I=s-Vo(p);if(I<1)return p;var M=L?Nr(L,0,I).join(""):n.slice(0,I);if(w===o)return M+p;if(L&&(I+=M.length-I),tu(w)){if(n.slice(I).search(w)){var K,j=M;for(w.global||(w=bc(w.source,De(rt.exec(w))+"g")),w.lastIndex=0;K=w.exec(j);)var Y=K.index;M=M.slice(0,Y===o?I:Y)}}else if(n.indexOf(nn(w),I)!=I){var ee=M.lastIndexOf(w);ee>-1&&(M=M.slice(0,ee))}return M+p}function iB(n){return n=De(n),n&&Hs.test(n)?n.replace(er,Mw):n}var sB=Ko(function(n,l,s){return n+(s?" ":"")+l.toUpperCase()}),ou=B2("toUpperCase");function Eh(n,l,s){return n=De(n),l=s?o:l,l===o?Lw(n)?zw(n):_w(n):n.match(l)||[]}var kh=Te(function(n,l){try{return en(n,o,l)}catch(s){return eu(s)?s:new me(s)}}),cB=lr(function(n,l){return mn(l,function(s){s=Un(s),rr(n,s,Jc(n[s],n))}),n});function uB(n){var l=n==null?0:n.length,s=ue();return n=l?Qe(n,function(p){if(typeof p[1]!="function")throw new gn(c);return[s(p[0]),p[1]]}):[],Te(function(p){for(var w=-1;++w<l;){var k=n[w];if(en(k[0],this,p))return en(k[1],this,p)}})}function fB(n){return Mv(yn(n,g))}function lu(n){return function(){return n}}function dB(n,l){return n==null||n!==n?l:n}var pB=T2(),hB=T2(!0);function Gt(n){return n}function au(n){return o2(typeof n=="function"?n:yn(n,g))}function mB(n){return a2(yn(n,g))}function gB(n,l){return i2(n,yn(l,g))}var bB=Te(function(n,l){return function(s){return Nl(s,n,l)}}),yB=Te(function(n,l){return function(s){return Nl(n,s,l)}});function iu(n,l,s){var p=pt(l),w=Za(l,p);s==null&&!(tt(l)&&(w.length||!p.length))&&(s=l,l=n,n=this,w=Za(l,pt(l)));var k=!(tt(s)&&"chain"in s)||!!s.chain,L=ir(n);return mn(w,function(I){var M=l[I];n[I]=M,L&&(n.prototype[I]=function(){var K=this.__chain__;if(k||K){var j=n(this.__wrapped__),Y=j.__actions__=Ut(this.__actions__);return Y.push({func:M,args:arguments,thisArg:n}),j.__chain__=K,j}return M.apply(n,Er([this.value()],arguments))})}),n}function CB(){return Ct._===this&&(Ct._=Kw),this}function su(){}function wB(n){return n=Se(n),Te(function(l){return s2(l,n)})}var vB=zc(Qe),_B=zc(Op),SB=zc(uc);function Bh(n){return jc(n)?fc(Un(n)):Qv(n)}function EB(n){return function(l){return n==null?o:lo(n,l)}}var kB=N2(),BB=N2(!0);function cu(){return[]}function uu(){return!1}function xB(){return{}}function TB(){return""}function OB(){return!0}function NB(n,l){if(n=Se(n),n<1||n>W)return[];var s=Q,p=kt(n,Q);l=ue(l),n-=Q;for(var w=hc(p,l);++s<n;)l(s);return w}function LB(n){return ye(n)?Qe(n,Un):rn(n)?[n]:Ut(j2(De(n)))}function AB(n){var l=++Hw;return De(n)+l}var IB=ri(function(n,l){return n+l},0),RB=Fc("ceil"),PB=ri(function(n,l){return n/l},1),MB=Fc("floor");function $B(n){return n&&n.length?Xa(n,Gt,kc):o}function VB(n,l){return n&&n.length?Xa(n,ue(l,2),kc):o}function zB(n){return Ap(n,Gt)}function FB(n,l){return Ap(n,ue(l,2))}function DB(n){return n&&n.length?Xa(n,Gt,Oc):o}function WB(n,l){return n&&n.length?Xa(n,ue(l,2),Oc):o}var HB=ri(function(n,l){return n*l},1),UB=Fc("round"),KB=ri(function(n,l){return n-l},0);function jB(n){return n&&n.length?pc(n,Gt):0}function GB(n,l){return n&&n.length?pc(n,ue(l,2)):0}return S.after=mE,S.ary=rh,S.assign=nk,S.assignIn=bh,S.assignInWith=gi,S.assignWith=rk,S.at=ok,S.before=oh,S.bind=Jc,S.bindAll=cB,S.bindKey=lh,S.castArray=xE,S.chain=eh,S.chunk=M_,S.compact=$_,S.concat=V_,S.cond=uB,S.conforms=fB,S.constant=lu,S.countBy=jS,S.create=lk,S.curry=ah,S.curryRight=ih,S.debounce=sh,S.defaults=ak,S.defaultsDeep=ik,S.defer=gE,S.delay=bE,S.difference=z_,S.differenceBy=F_,S.differenceWith=D_,S.drop=W_,S.dropRight=H_,S.dropRightWhile=U_,S.dropWhile=K_,S.fill=j_,S.filter=qS,S.flatMap=ZS,S.flatMapDeep=JS,S.flatMapDepth=QS,S.flatten=X2,S.flattenDeep=G_,S.flattenDepth=q_,S.flip=yE,S.flow=pB,S.flowRight=hB,S.fromPairs=Y_,S.functions=hk,S.functionsIn=mk,S.groupBy=eE,S.initial=Z_,S.intersection=J_,S.intersectionBy=Q_,S.intersectionWith=eS,S.invert=bk,S.invertBy=yk,S.invokeMap=nE,S.iteratee=au,S.keyBy=rE,S.keys=pt,S.keysIn=jt,S.map=ui,S.mapKeys=wk,S.mapValues=vk,S.matches=mB,S.matchesProperty=gB,S.memoize=di,S.merge=_k,S.mergeWith=yh,S.method=bB,S.methodOf=yB,S.mixin=iu,S.negate=pi,S.nthArg=wB,S.omit=Sk,S.omitBy=Ek,S.once=CE,S.orderBy=oE,S.over=vB,S.overArgs=wE,S.overEvery=_B,S.overSome=SB,S.partial=Qc,S.partialRight=ch,S.partition=lE,S.pick=kk,S.pickBy=Ch,S.property=Bh,S.propertyOf=EB,S.pull=oS,S.pullAll=J2,S.pullAllBy=lS,S.pullAllWith=aS,S.pullAt=iS,S.range=kB,S.rangeRight=BB,S.rearg=vE,S.reject=sE,S.remove=sS,S.rest=_E,S.reverse=Xc,S.sampleSize=uE,S.set=xk,S.setWith=Tk,S.shuffle=fE,S.slice=cS,S.sortBy=hE,S.sortedUniq=gS,S.sortedUniqBy=bS,S.split=Zk,S.spread=SE,S.tail=yS,S.take=CS,S.takeRight=wS,S.takeRightWhile=vS,S.takeWhile=_S,S.tap=$S,S.throttle=EE,S.thru=ci,S.toArray=hh,S.toPairs=wh,S.toPairsIn=vh,S.toPath=LB,S.toPlainObject=gh,S.transform=Ok,S.unary=kE,S.union=SS,S.unionBy=ES,S.unionWith=kS,S.uniq=BS,S.uniqBy=xS,S.uniqWith=TS,S.unset=Nk,S.unzip=Zc,S.unzipWith=Q2,S.update=Lk,S.updateWith=Ak,S.values=qo,S.valuesIn=Ik,S.without=OS,S.words=Eh,S.wrap=BE,S.xor=NS,S.xorBy=LS,S.xorWith=AS,S.zip=IS,S.zipObject=RS,S.zipObjectDeep=PS,S.zipWith=MS,S.entries=wh,S.entriesIn=vh,S.extend=bh,S.extendWith=gi,iu(S,S),S.add=IB,S.attempt=kh,S.camelCase=$k,S.capitalize=_h,S.ceil=RB,S.clamp=Rk,S.clone=TE,S.cloneDeep=NE,S.cloneDeepWith=LE,S.cloneWith=OE,S.conformsTo=AE,S.deburr=Sh,S.defaultTo=dB,S.divide=PB,S.endsWith=Vk,S.eq=Nn,S.escape=zk,S.escapeRegExp=Fk,S.every=GS,S.find=YS,S.findIndex=q2,S.findKey=sk,S.findLast=XS,S.findLastIndex=Y2,S.findLastKey=ck,S.floor=MB,S.forEach=th,S.forEachRight=nh,S.forIn=uk,S.forInRight=fk,S.forOwn=dk,S.forOwnRight=pk,S.get=nu,S.gt=IE,S.gte=RE,S.has=gk,S.hasIn=ru,S.head=Z2,S.identity=Gt,S.includes=tE,S.indexOf=X_,S.inRange=Pk,S.invoke=Ck,S.isArguments=so,S.isArray=ye,S.isArrayBuffer=PE,S.isArrayLike=Kt,S.isArrayLikeObject=at,S.isBoolean=ME,S.isBuffer=Lr,S.isDate=$E,S.isElement=VE,S.isEmpty=zE,S.isEqual=FE,S.isEqualWith=DE,S.isError=eu,S.isFinite=WE,S.isFunction=ir,S.isInteger=uh,S.isLength=hi,S.isMap=fh,S.isMatch=HE,S.isMatchWith=UE,S.isNaN=KE,S.isNative=jE,S.isNil=qE,S.isNull=GE,S.isNumber=dh,S.isObject=tt,S.isObjectLike=ot,S.isPlainObject=Ml,S.isRegExp=tu,S.isSafeInteger=YE,S.isSet=ph,S.isString=mi,S.isSymbol=rn,S.isTypedArray=Go,S.isUndefined=XE,S.isWeakMap=ZE,S.isWeakSet=JE,S.join=tS,S.kebabCase=Dk,S.last=wn,S.lastIndexOf=nS,S.lowerCase=Wk,S.lowerFirst=Hk,S.lt=QE,S.lte=ek,S.max=$B,S.maxBy=VB,S.mean=zB,S.meanBy=FB,S.min=DB,S.minBy=WB,S.stubArray=cu,S.stubFalse=uu,S.stubObject=xB,S.stubString=TB,S.stubTrue=OB,S.multiply=HB,S.nth=rS,S.noConflict=CB,S.noop=su,S.now=fi,S.pad=Uk,S.padEnd=Kk,S.padStart=jk,S.parseInt=Gk,S.random=Mk,S.reduce=aE,S.reduceRight=iE,S.repeat=qk,S.replace=Yk,S.result=Bk,S.round=UB,S.runInContext=P,S.sample=cE,S.size=dE,S.snakeCase=Xk,S.some=pE,S.sortedIndex=uS,S.sortedIndexBy=fS,S.sortedIndexOf=dS,S.sortedLastIndex=pS,S.sortedLastIndexBy=hS,S.sortedLastIndexOf=mS,S.startCase=Jk,S.startsWith=Qk,S.subtract=KB,S.sum=jB,S.sumBy=GB,S.template=eB,S.times=NB,S.toFinite=sr,S.toInteger=Se,S.toLength=mh,S.toLower=tB,S.toNumber=vn,S.toSafeInteger=tk,S.toString=De,S.toUpper=nB,S.trim=rB,S.trimEnd=oB,S.trimStart=lB,S.truncate=aB,S.unescape=iB,S.uniqueId=AB,S.upperCase=sB,S.upperFirst=ou,S.each=th,S.eachRight=nh,S.first=Z2,iu(S,(function(){var n={};return Wn(S,function(l,s){Ue.call(S.prototype,s)||(n[s]=l)}),n})(),{chain:!1}),S.VERSION=a,mn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){S[n].placeholder=S}),mn(["drop","take"],function(n,l){Ae.prototype[n]=function(s){s=s===o?1:ft(Se(s),0);var p=this.__filtered__&&!l?new Ae(this):this.clone();return p.__filtered__?p.__takeCount__=kt(s,p.__takeCount__):p.__views__.push({size:kt(s,Q),type:n+(p.__dir__<0?"Right":"")}),p},Ae.prototype[n+"Right"]=function(s){return this.reverse()[n](s).reverse()}}),mn(["filter","map","takeWhile"],function(n,l){var s=l+1,p=s==oe||s==re;Ae.prototype[n]=function(w){var k=this.clone();return k.__iteratees__.push({iteratee:ue(w,3),type:s}),k.__filtered__=k.__filtered__||p,k}}),mn(["head","last"],function(n,l){var s="take"+(l?"Right":"");Ae.prototype[n]=function(){return this[s](1).value()[0]}}),mn(["initial","tail"],function(n,l){var s="drop"+(l?"":"Right");Ae.prototype[n]=function(){return this.__filtered__?new Ae(this):this[s](1)}}),Ae.prototype.compact=function(){return this.filter(Gt)},Ae.prototype.find=function(n){return this.filter(n).head()},Ae.prototype.findLast=function(n){return this.reverse().find(n)},Ae.prototype.invokeMap=Te(function(n,l){return typeof n=="function"?new Ae(this):this.map(function(s){return Nl(s,n,l)})}),Ae.prototype.reject=function(n){return this.filter(pi(ue(n)))},Ae.prototype.slice=function(n,l){n=Se(n);var s=this;return s.__filtered__&&(n>0||l<0)?new Ae(s):(n<0?s=s.takeRight(-n):n&&(s=s.drop(n)),l!==o&&(l=Se(l),s=l<0?s.dropRight(-l):s.take(l-n)),s)},Ae.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ae.prototype.toArray=function(){return this.take(Q)},Wn(Ae.prototype,function(n,l){var s=/^(?:filter|find|map|reject)|While$/.test(l),p=/^(?:head|last)$/.test(l),w=S[p?"take"+(l=="last"?"Right":""):l],k=p||/^find/.test(l);w&&(S.prototype[l]=function(){var L=this.__wrapped__,I=p?[1]:arguments,M=L instanceof Ae,K=I[0],j=M||ye(L),Y=function(Le){var Re=w.apply(S,Er([Le],I));return p&&ee?Re[0]:Re};j&&s&&typeof K=="function"&&K.length!=1&&(M=j=!1);var ee=this.__chain__,ie=!!this.__actions__.length,fe=k&&!ee,ke=M&&!ie;if(!k&&j){L=ke?L:new Ae(this);var de=n.apply(L,I);return de.__actions__.push({func:ci,args:[Y],thisArg:o}),new bn(de,ee)}return fe&&ke?n.apply(this,I):(de=this.thru(Y),fe?p?de.value()[0]:de.value():de)})}),mn(["pop","push","shift","sort","splice","unshift"],function(n){var l=Pa[n],s=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",p=/^(?:pop|shift)$/.test(n);S.prototype[n]=function(){var w=arguments;if(p&&!this.__chain__){var k=this.value();return l.apply(ye(k)?k:[],w)}return this[s](function(L){return l.apply(ye(L)?L:[],w)})}}),Wn(Ae.prototype,function(n,l){var s=S[l];if(s){var p=s.name+"";Ue.call(Wo,p)||(Wo[p]=[]),Wo[p].push({name:l,func:s})}}),Wo[ni(o,B).name]=[{name:"wrapper",func:o}],Ae.prototype.clone=iv,Ae.prototype.reverse=sv,Ae.prototype.value=cv,S.prototype.at=VS,S.prototype.chain=zS,S.prototype.commit=FS,S.prototype.next=DS,S.prototype.plant=HS,S.prototype.reverse=US,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=KS,S.prototype.first=S.prototype.head,Sl&&(S.prototype[Sl]=WS),S}),zo=Fw();eo?((eo.exports=zo)._=zo,ac._=zo):Ct._=zo}).call(c9)})(yl,yl.exports)),yl.exports}var f9=u9();const xa=wb(f9),G0=t.defineComponent({__name:"transferItem",props:{dialogModalVisible:{type:Boolean},columnsValue:{},columnsIndex:{},columnsLen:{}},emits:["update:toUnLock","update:toLock","update:toTop","update:toPre","update:toNext","update:toBottom"],setup(e,{emit:r}){const o=e,a=t.reactive({itemOnHover:!1,itemOnClick:!1}),i=r,u=()=>{a.itemOnClick=!0,a.itemOnHover=!1},c=()=>{a.itemOnClick=!1,a.itemOnHover=!0};t.watch(()=>o.dialogModalVisible,g=>{g||(a.itemOnClick=!1,a.itemOnHover=!1)});const f=t.computed(()=>!!o.columnsValue.fixed),h=t.computed(()=>[{icon:f5,emitKey:"update:toUnLock",isDisabled:!f.value},{icon:n5,emitKey:"update:toLock",isDisabled:f.value},{icon:c5,emitKey:"update:toTop",isDisabled:o.columnsIndex===0},{icon:Gf,emitKey:"update:toPre",isDisabled:o.columnsIndex===0},{icon:Di,emitKey:"update:toNext",isDisabled:o.columnsIndex===o.columnsLen-1},{icon:H3,emitKey:"update:toBottom",isDisabled:o.columnsIndex===o.columnsLen-1}]),d=24/h.value.length,m=g=>{i(g)};return(g,C)=>{const y=Cr,b=Hb,v=py;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["transfer-item-wrapper",{"cursor-grab":a.itemOnHover,"cursor-grabbing":a.itemOnClick}]),onMouseenter:C[0]||(C[0]=E=>a.itemOnHover=!0),onMouseleave:C[1]||(C[1]=E=>a.itemOnHover=!1),onMousedown:u,onMouseup:c},[(t.openBlock(),t.createBlock(y,{label:g.columnsValue.label,value:g.columnsValue.prop,key:g.columnsValue.prop},null,8,["label","value"])),t.createVNode(v,{class:"transfer-arrow-wrapper",justify:"space-around",gutter:8},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,E=>(t.openBlock(),t.createBlock(b,{span:d},{default:t.withCtx(()=>[t.createVNode(t.unref(Nt),{icon:E.icon,disabled:E.isDisabled,link:"",type:"primary",onClick:B=>m(E.emitKey)},null,8,["icon","disabled","onClick"])]),_:2},1024))),256))]),_:1})],34)}}}),d9={class:"search-bar"},p9={class:"transfer-sort-wrapper"},h9=t.defineComponent({__name:"TransferDialog",props:{modelValue:{type:Boolean},columnsValue:{},transferTitle:{}},emits:["update:modelValue","update:submit","update:checkChange"],setup(e,{emit:r}){const{t:o}=Kn.useI18n(),a=e,i=r,u=t.computed({get:()=>a.modelValue,set:E=>i("update:modelValue",E)}),c=t.reactive({localColumns:xa.cloneDeep(a.columnsValue),clickItemProp:"",checkList:a.columnsValue.map(E=>E.prop)}),f={toTop:E=>{if(E<=0)return;const B=c.localColumns.splice(E,1)[0];c.localColumns.unshift(B)},toBottom:E=>{if(E>=c.localColumns.length-1)return;const B=c.localColumns.splice(E,1)[0];c.localColumns.push(B)},toPre:E=>{if(E>0){const B=c.localColumns[E];c.localColumns[E]=c.localColumns[E-1],c.localColumns[E-1]=B}},toNext:E=>{if(E<c.localColumns.length-1){const B=c.localColumns[E];c.localColumns[E]=c.localColumns[E+1],c.localColumns[E+1]=B}},toLock:E=>{if(E<=0)return;const B=c.localColumns.splice(E,1)[0];B.fixed="left",c.localColumns.unshift(B)},toUnLock:E=>{if(E<c.localColumns.length-1){const B=c.localColumns[E];delete B.fixed}}},h=()=>{c.localColumns=xa.cloneDeep(a.columnsValue),c.checkList=a.columnsValue.filter(E=>E.checkActive).map(E=>E.prop||"")};t.watch(()=>u.value,E=>{E?h():(c.clickItemProp="",c.localColumns=[],c.checkList=[])});const d=()=>{i("update:submit",c.localColumns)},m=E=>{const B=a.columnsValue.map(O=>O.prop);c.checkList=E?B:[],g(c.checkList)},g=E=>{const B=E.map(O=>String(O));c.localColumns.forEach(O=>{O.checkActive=B.includes(O.prop)}),i("update:checkChange",{columns:c.localColumns,checkList:c.checkList})},C=t.computed(()=>c.localColumns.length>0&&c.checkList.length===c.localColumns.length),y=t.computed({get:()=>C.value,set:E=>m(E)}),b=()=>{c.localColumns=xa.cloneDeep(a.columnsValue)},v=E=>{if(E.length>0){const B=xa.cloneDeep(c.localColumns);c.localColumns=B.filter(O=>O.label.includes(E))}else b()};return(E,B)=>{const O=Cr,T=Rb;return t.openBlock(),t.createBlock(Yr,{modelValue:u.value,"onUpdate:modelValue":B[2]||(B[2]=_=>u.value=_),title:E.transferTitle,"onClick:submit":d},{default:t.withCtx(()=>[t.createElementVNode("div",d9,[t.createVNode(Xr,{"show-search":!0,"onUpdate:clear":b,"onKeydown:enter":v})]),t.createElementVNode("div",p9,[t.createVNode(O,{modelValue:y.value,"onUpdate:modelValue":B[0]||(B[0]=_=>y.value=_),class:"px-4",onChange:m},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o)("common.column"))+" ("+t.toDisplayString(c.checkList.length)+"/"+t.toDisplayString(c.localColumns.length)+") ",1)]),_:1},8,["modelValue"]),t.createVNode(T,{modelValue:c.checkList,"onUpdate:modelValue":B[1]||(B[1]=_=>c.checkList=_),onChange:g},{default:t.withCtx(()=>[t.renderSlot(E.$slots,"list-container",{columns:c.localColumns,clickItemProp:c.clickItemProp,handleItemEvents:f,handleMousedown:_=>c.clickItemProp=_},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localColumns,(_,x)=>(t.openBlock(),t.createBlock(G0,{key:_.prop,"dialog-modal-visible":u.value,"columns-value":_,"columns-index":x,"columns-len":c.localColumns.length,class:t.normalizeClass({"transfer-active-bg":_.checkActive,"transfer-active-border":c.clickItemProp==_.prop}),onMousedown:N=>c.clickItemProp=_.prop||"","onUpdate:toTop":N=>f.toTop(x),"onUpdate:toBottom":N=>f.toBottom(x),"onUpdate:toPre":N=>f.toPre(x),"onUpdate:toNext":N=>f.toNext(x),"onUpdate:toLock":N=>f.toLock(x),"onUpdate:toUnLock":N=>f.toUnLock(x)},null,8,["dialog-modal-visible","columns-value","columns-index","columns-len","class","onMousedown","onUpdate:toTop","onUpdate:toBottom","onUpdate:toPre","onUpdate:toNext","onUpdate:toLock","onUpdate:toUnLock"]))),128))])]),_:3},8,["modelValue"])])]),_:3},8,["modelValue","title"])}}}),m9={class:"h-header px-4 py-4 flex justify-between items-center bg-primary-10"},g9={class:"flex items-center gap-2"},b9={key:0,class:"flex items-center text-black"},y9={class:"font-bold text-text text-xl md:text-2xl;"},C9={class:"flex items-center gap-3"},q0=t.defineComponent({__name:"FunctionHeader",props:{title:{type:String,required:!1,default:""},showBack:{type:[Boolean,String,Object],required:!1,default:!1},depth:{type:Number,required:!1,default:1}},emits:["back"],setup(e,{emit:r}){const o=e,a=r,i=()=>{const u={};switch(typeof o.showBack){case"string":u.path=o.showBack;break;case"object":Object.assign(u,o.showBack);break;default:u.path=""}a("back",u)};return(u,c)=>{const f=st;return t.openBlock(),t.createElementBlock("div",m9,[t.createElementVNode("div",g9,[e.showBack?(t.openBlock(),t.createElementBlock("div",b9,[t.createVNode(f,{size:16,class:"cursor-pointer",onClick:i},{default:t.withCtx(()=>[t.createVNode(t.unref($3))]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",y9,t.toDisplayString(o.title),1)]),t.createElementVNode("div",C9,[t.renderSlot(u.$slots,"default")])])}}}),w9={key:0,class:"px-4 pt-1.5"},v9={key:1,class:"py-1.5 px-4"},_9={key:0,class:"flex justify-start pl-1.5 pt-0"},Ta=Oo(t.defineComponent({__name:"MainPanel",props:{title:{default:""},showBack:{type:[Boolean,String,Object],default:!1},depth:{default:1}},emits:["click:back"],setup(e,{emit:r}){const o=e,a=r,i=()=>{a("click:back")};return(u,c)=>{const f=aa;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(q0),{title:o.title,showBack:o.showBack,onBack:i,depth:o.depth},null,8,["title","showBack","depth"]),t.createVNode(f,{class:"panel-scrollbar"},{default:t.withCtx(()=>[u.$slots.searchBar?(t.openBlock(),t.createElementBlock("div",w9,[t.renderSlot(u.$slots,"searchBar",{},void 0,!0)])):t.createCommentVNode("",!0),u.$slots.main?(t.openBlock(),t.createElementBlock("div",v9,[t.renderSlot(u.$slots,"main",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3}),u.$slots.footer?(t.openBlock(),t.createElementBlock("div",_9,[t.renderSlot(u.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-c88d2537"]]),S9=t.defineComponent({__name:"SearchableListPanel",props:{title:{},pagination:{},showBack:{type:[Boolean,String,Object]},showSearch:{type:Boolean},pageSizeList:{default:()=>[10,25,50,100,200]},showPagination:{type:Boolean}},emits:["search","updatePage","updatePageSize","click:back"],setup(e,{emit:r}){const o=e,{pagination:a}=t.toRefs(o),i=r,u=g=>{i("search",g)},c=()=>{i("search",null)},f=g=>{i("updatePage",g)},h=g=>{i("updatePageSize",g)},d=()=>{i("click:back")},m=t.computed(()=>typeof o.showBack=="boolean"?o.showPagination:o.pagination.totalCount>0);return(g,C)=>{const y=sy;return t.openBlock(),t.createBlock(t.unref(Ta),{title:o.title,"show-back":g.showBack,"onClick:back":d},{searchBar:t.withCtx(()=>[t.createVNode(t.unref(Xr),{"show-search":g.showSearch,"onKeydown:enter":u,"onUpdate:clear":c},{button:t.withCtx(()=>[t.renderSlot(g.$slots,"firstButton"),t.renderSlot(g.$slots,"customButton"),t.renderSlot(g.$slots,"lastButton")]),customerFilter:t.withCtx(()=>[t.renderSlot(g.$slots,"filterButton")]),_:3},8,["show-search"])]),main:t.withCtx(()=>[t.renderSlot(g.$slots,"main")]),footer:t.withCtx(()=>[m.value?(t.openBlock(),t.createBlock(y,{key:0,layout:"jumper, prev, pager, next, total, sizes","page-sizes":g.pageSizeList,"current-page":t.unref(a).page,"page-size":t.unref(a).limit,total:t.unref(a).totalCount,onCurrentChange:f,onSizeChange:h},null,8,["page-sizes","current-page","page-size","total"])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),E9={class:"detail-container"},k9={class:"content-wrapper"},B9={key:0,class:"border-t py-4 w-full flex items-center justify-end"},x9=Oo(t.defineComponent({__name:"DetailLayout",props:{title:{},showBack:{type:[Boolean,String,Object]},isEditable:{type:Boolean},pageLoading:{type:Boolean}},emits:["update:saveEdit","update:cancelEdit","click:back"],setup(e,{emit:r}){const{t:o}=Kn.useI18n(),a=r,i=()=>{a("update:saveEdit",!1)},u=()=>{a("update:cancelEdit")},c=()=>{a("click:back")};return(f,h)=>{const d=Gr;return t.openBlock(),t.createBlock(t.unref(Ta),{title:f.title,"show-back":f.showBack,"onClick:back":c},{main:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",E9,[t.renderSlot(f.$slots,"detailHeader",{},void 0,!0),t.createElementVNode("div",k9,[t.renderSlot(f.$slots,"main",{},void 0,!0)])])),[[d,f.pageLoading]])]),footer:t.withCtx(()=>[f.isEditable?(t.openBlock(),t.createElementBlock("div",B9,[t.createVNode(t.unref(Nt),{text:t.unref(o)("common.save"),type:"primary","is-fill":"",onClick:i},null,8,["text"]),t.createVNode(t.unref(Nt),{text:t.unref(o)("common.discard"),type:"primary",onClick:u},null,8,["text"])])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),[["__scopeId","data-v-680f59bd"]]),T9={class:"filter-container"},O9={class:"filter-header"},N9={class:"submit-row"},L9=Oo(t.defineComponent({__name:"FilterLayout",props:{mainTitle:{},showBack:{type:[Boolean,String,Object]},filterTitle:{}},emits:["submitEmit","resetEmit","click:back"],setup(e,{emit:r}){const{t:o}=Kn.useI18n(),a=r,i=()=>{a("submitEmit")},u=()=>{a("resetEmit")},c=()=>{a("click:back")};return(f,h)=>(t.openBlock(),t.createBlock(t.unref(Ta),{title:f.mainTitle,"show-back":f.showBack,"onClick:back":c},{main:t.withCtx(()=>[t.createElementVNode("div",T9,[t.createElementVNode("div",O9,t.toDisplayString(f.filterTitle),1),t.renderSlot(f.$slots,"default",{},void 0,!0)])]),footer:t.withCtx(()=>[t.createElementVNode("div",N9,[t.createVNode(t.unref(Nt),{text:t.unref(o)("common.execute"),"is-fill":"",type:"primary",onClick:i},null,8,["text"]),t.createVNode(t.unref(Nt),{text:t.unref(o)("common.reset"),type:"primary",onClick:u},null,8,["text"])])]),_:3},8,["title","show-back"]))}}),[["__scopeId","data-v-32b37758"]]),A9={class:"w-full mb-4"},I9={class:"flex items-center h-12 bg-gray-200 px-1.5 rounded-t justify-end"},R9={class:"flex items-center mr-4"},P9={key:0,src:XC,alt:"Excel",class:"w-6 h-6"},M9={key:1,src:ZC,alt:"Excel-active",class:"w-6 h-6"},Cl=t.defineComponent({__name:"SortTable",props:{data:{},columns:{},tableTitle:{},showSelection:{type:Boolean},loading:{type:Boolean},showSummary:{type:Boolean},showOverFlowTooltip:{type:Boolean},summaryMethod:{type:Function},sortTableRowClassName:{type:Function},showCheckBtn:{type:Boolean},showEditBtn:{type:Boolean}},emits:["open:transfer","click:downloadExcelFile","update:selectRow","click:cell","click:columnSort","click:checkRow","click:editRow"],setup(e,{emit:r}){const o=r,a=()=>{o("open:transfer")},i=g=>{o("update:selectRow",g)},u=(g,C)=>{o("click:cell",g,C)},c=g=>{o("click:columnSort",g)},f=g=>{o("click:checkRow",g)},h=g=>{o("click:editRow",g)},d=()=>{o("click:downloadExcelFile")},m=t.reactive({itemOnHover:!1});return(g,C)=>{const y=st,b=Gr;return t.openBlock(),t.createElementBlock("div",A9,[t.createElementVNode("div",I9,[t.createElementVNode("div",R9,[t.createElementVNode("div",{class:"cursor-pointer text-text text-xl flex items-center justify-center hover:text-blue-600",onClick:a},[t.createVNode(y,null,{default:t.withCtx(()=>[t.createVNode(t.unref(i5))]),_:1})]),t.createElementVNode("div",{class:"cursor-pointer flex items-center justify-center ml-1",onMouseenter:C[0]||(C[0]=v=>m.itemOnHover=!0),onMouseleave:C[1]||(C[1]=v=>m.itemOnHover=!1),onClick:d},[m.itemOnHover?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",P9)),m.itemOnHover?(t.openBlock(),t.createElementBlock("img",M9)):t.createCommentVNode("",!0)],32)])]),t.withDirectives(t.createVNode(t.unref(qr),{data:g.data,columns:g.columns,"show-summary":g.showSummary,"show-over-flow-tooltip":g.showOverFlowTooltip,"summary-method":g.summaryMethod,"show-selection":g.showSelection,"base-table-row-class-name":g.sortTableRowClassName,"show-check-btn":g.showCheckBtn,"show-edit-btn":g.showEditBtn,onSelectionChange:i,onCellClick:u,onColumnSortChange:c,"onClick:checkRow":f,"onClick:editRow":h},null,8,["data","columns","show-summary","show-over-flow-tooltip","summary-method","show-selection","base-table-row-class-name","show-check-btn","show-edit-btn"]),[[b,g.loading]])])}}}),Y0={"common.select":"請選擇","common.confirm":"確定","common.cancel":"取消","dialog.confirmRemoveUser":"請問是否確認移除該使用者","common.warning":"警告","search.placeholder":"請輸入關鍵字搜尋列表","common.execute":"執行","common.reset":"重設","common.loading":"數據加載中","common.view":"查看","common.edit":"編輯","common.column":"欄","common.back":"回到前一頁","demo.componentDemo":"組件示範","button.title":"按鈕","button.primary ":"主要","button.default":"默認","button.danger":"危險","button.success":"成功","button.warning":"警告","button.info":"信息","button.style":"樣式","button.size":"尺寸","button.small":"小","button.medium":"中","button.large ":"大","status.title":"狀態","status.normal ":"正常","status.loading":"載入中","status.disabled":"禁用","button.withIcon ":"帶圖標的","button.add":"添加","button.delete":"刪除","common.save":"儲存","common.discard":"捨棄"},X0={"common.select":"Please select","common.confirm":"Confirm","common.cancel":"Cancel","dialog.confirmRemoveUser":"Are you sure you want to remove this user?","common.warning":"Warning","search.placeholder":"Please enter keywords to search the list","common.execute":"Execute","common.reset":"Reset","common.loading":"Data loading","common.view":"View","common.edit":"Edit","common.column":"Column","common.back":" Back","demo.componentDemo":"Component Demo","button.title":"Button","button.primary ":"Primary","button.default":"Default","button.danger":"Danger","button.success":"Success","button.warning":"Warning","button.info":"Info","button.style":"Style","button.size":"Size","button.small":"Small","button.medium":"Medium","button.large ":"Large","status.title":"Status","status.normal ":"Normal","status.loading":"Loading","status.disabled":"Disabled","button.withIcon ":"With Icon","button.add":"Add","button.delete":"Delete","common.save":"Save","common.discard":"Discard"},Z0={"zh-TW":Y0,"en-US":X0};let Ws=null;const J0="zh-TW";function Q0(){return Ws||(Ws=Kn.createI18n({legacy:!1,locale:J0,fallbackLocale:J0,messages:Z0,silentTranslationWarn:!0,missingWarn:!1,fallbackWarn:!1})),Ws}function ep(e){const o=Q0().global;o.locale.value=e}function $9(){return Q0().global}function V9(e){return e.map(r=>({...r,checkActive:!0}))}const tp=[qr,Nt,No,Yr,Cl,bl,Xr];function np(e,r){r!=null&&r.locale&&ep(r.locale),tp.forEach(o=>{e.component(o.name||"VueTableComponent",o)})}const z9={install:np,...tp};qr.install=e=>{e.component(qr.name||"BaseTable",qr)},Nt.install=e=>{e.component(Nt.name||"BaseBtn",Nt)},No.install=e=>{e.component(No.name||"BaseInput",No)},Yr.install=e=>{e.component(Yr.name||"BaseDialog",Yr)},Cl.install=e=>{e.component(Cl.name||"SortTable",Cl)},bl.install=e=>{e.component(bl.name||"TitleTable",bl)},Xr.install=e=>{e.component(Xr.name||"SearchBar",Xr)},ge.BaseBtn=Nt,ge.BaseDialog=Yr,ge.BaseInput=No,ge.BaseMultipleInput=e9,ge.BaseTable=qr,ge.BaseWaringDialog=QC,ge.DetailLayout=x9,ge.FilterLayout=L9,ge.FunctionHeader=q0,ge.MainPanel=Ta,ge.SearchBar=Xr,ge.SearchableListPanel=S9,ge.SortTable=Cl,ge.TitleTable=bl,ge.TransferDialog=h9,ge.TransferItem=G0,ge.default=z9,ge.enUS=X0,ge.install=np,ge.messages=Z0,ge.setActiveColumn=V9,ge.setLocale=ep,ge.useI18n=$9,ge.zhTW=Y0,Object.defineProperties(ge,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
44
|
+
}`;var ke=kh(function(){return Fe(k,ie+"return "+Y).apply(o,L)});if(ke.source=Y,eu(ke))throw ke;return ke}function tB(n){return De(n).toLowerCase()}function nB(n){return De(n).toUpperCase()}function rB(n,l,s){if(n=De(n),n&&(s||l===o))return Rp(n);if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Tn(l),k=Pp(p,w),L=Mp(p,w)+1;return Nr(p,k,L).join("")}function oB(n,l,s){if(n=De(n),n&&(s||l===o))return n.slice(0,Vp(n)+1);if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Mp(p,Tn(l))+1;return Nr(p,0,w).join("")}function lB(n,l,s){if(n=De(n),n&&(s||l===o))return n.replace(Ao,"");if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Pp(p,Tn(l));return Nr(p,w).join("")}function aB(n,l){var s=U,p=D;if(tt(l)){var w="separator"in l?l.separator:w;s="length"in l?Se(l.length):s,p="omission"in l?nn(l.omission):p}n=De(n);var k=n.length;if($o(n)){var L=Tn(n);k=L.length}if(s>=k)return n;var I=s-Vo(p);if(I<1)return p;var M=L?Nr(L,0,I).join(""):n.slice(0,I);if(w===o)return M+p;if(L&&(I+=M.length-I),tu(w)){if(n.slice(I).search(w)){var K,j=M;for(w.global||(w=bc(w.source,De(rt.exec(w))+"g")),w.lastIndex=0;K=w.exec(j);)var Y=K.index;M=M.slice(0,Y===o?I:Y)}}else if(n.indexOf(nn(w),I)!=I){var ee=M.lastIndexOf(w);ee>-1&&(M=M.slice(0,ee))}return M+p}function iB(n){return n=De(n),n&&Hs.test(n)?n.replace(er,Mw):n}var sB=Ko(function(n,l,s){return n+(s?" ":"")+l.toUpperCase()}),ou=B2("toUpperCase");function Eh(n,l,s){return n=De(n),l=s?o:l,l===o?Lw(n)?zw(n):_w(n):n.match(l)||[]}var kh=Te(function(n,l){try{return en(n,o,l)}catch(s){return eu(s)?s:new me(s)}}),cB=lr(function(n,l){return mn(l,function(s){s=Un(s),rr(n,s,Jc(n[s],n))}),n});function uB(n){var l=n==null?0:n.length,s=ue();return n=l?Qe(n,function(p){if(typeof p[1]!="function")throw new gn(c);return[s(p[0]),p[1]]}):[],Te(function(p){for(var w=-1;++w<l;){var k=n[w];if(en(k[0],this,p))return en(k[1],this,p)}})}function fB(n){return Mv(yn(n,g))}function lu(n){return function(){return n}}function dB(n,l){return n==null||n!==n?l:n}var pB=T2(),hB=T2(!0);function Gt(n){return n}function au(n){return o2(typeof n=="function"?n:yn(n,g))}function mB(n){return a2(yn(n,g))}function gB(n,l){return i2(n,yn(l,g))}var bB=Te(function(n,l){return function(s){return Nl(s,n,l)}}),yB=Te(function(n,l){return function(s){return Nl(n,s,l)}});function iu(n,l,s){var p=pt(l),w=Za(l,p);s==null&&!(tt(l)&&(w.length||!p.length))&&(s=l,l=n,n=this,w=Za(l,pt(l)));var k=!(tt(s)&&"chain"in s)||!!s.chain,L=ir(n);return mn(w,function(I){var M=l[I];n[I]=M,L&&(n.prototype[I]=function(){var K=this.__chain__;if(k||K){var j=n(this.__wrapped__),Y=j.__actions__=Ut(this.__actions__);return Y.push({func:M,args:arguments,thisArg:n}),j.__chain__=K,j}return M.apply(n,Er([this.value()],arguments))})}),n}function CB(){return Ct._===this&&(Ct._=Kw),this}function su(){}function wB(n){return n=Se(n),Te(function(l){return s2(l,n)})}var vB=zc(Qe),_B=zc(Op),SB=zc(uc);function Bh(n){return jc(n)?fc(Un(n)):Qv(n)}function EB(n){return function(l){return n==null?o:lo(n,l)}}var kB=N2(),BB=N2(!0);function cu(){return[]}function uu(){return!1}function xB(){return{}}function TB(){return""}function OB(){return!0}function NB(n,l){if(n=Se(n),n<1||n>W)return[];var s=Q,p=kt(n,Q);l=ue(l),n-=Q;for(var w=hc(p,l);++s<n;)l(s);return w}function LB(n){return ye(n)?Qe(n,Un):rn(n)?[n]:Ut(j2(De(n)))}function AB(n){var l=++Hw;return De(n)+l}var IB=ri(function(n,l){return n+l},0),RB=Fc("ceil"),PB=ri(function(n,l){return n/l},1),MB=Fc("floor");function $B(n){return n&&n.length?Xa(n,Gt,kc):o}function VB(n,l){return n&&n.length?Xa(n,ue(l,2),kc):o}function zB(n){return Ap(n,Gt)}function FB(n,l){return Ap(n,ue(l,2))}function DB(n){return n&&n.length?Xa(n,Gt,Oc):o}function WB(n,l){return n&&n.length?Xa(n,ue(l,2),Oc):o}var HB=ri(function(n,l){return n*l},1),UB=Fc("round"),KB=ri(function(n,l){return n-l},0);function jB(n){return n&&n.length?pc(n,Gt):0}function GB(n,l){return n&&n.length?pc(n,ue(l,2)):0}return S.after=mE,S.ary=rh,S.assign=nk,S.assignIn=bh,S.assignInWith=gi,S.assignWith=rk,S.at=ok,S.before=oh,S.bind=Jc,S.bindAll=cB,S.bindKey=lh,S.castArray=xE,S.chain=eh,S.chunk=M_,S.compact=$_,S.concat=V_,S.cond=uB,S.conforms=fB,S.constant=lu,S.countBy=jS,S.create=lk,S.curry=ah,S.curryRight=ih,S.debounce=sh,S.defaults=ak,S.defaultsDeep=ik,S.defer=gE,S.delay=bE,S.difference=z_,S.differenceBy=F_,S.differenceWith=D_,S.drop=W_,S.dropRight=H_,S.dropRightWhile=U_,S.dropWhile=K_,S.fill=j_,S.filter=qS,S.flatMap=ZS,S.flatMapDeep=JS,S.flatMapDepth=QS,S.flatten=X2,S.flattenDeep=G_,S.flattenDepth=q_,S.flip=yE,S.flow=pB,S.flowRight=hB,S.fromPairs=Y_,S.functions=hk,S.functionsIn=mk,S.groupBy=eE,S.initial=Z_,S.intersection=J_,S.intersectionBy=Q_,S.intersectionWith=eS,S.invert=bk,S.invertBy=yk,S.invokeMap=nE,S.iteratee=au,S.keyBy=rE,S.keys=pt,S.keysIn=jt,S.map=ui,S.mapKeys=wk,S.mapValues=vk,S.matches=mB,S.matchesProperty=gB,S.memoize=di,S.merge=_k,S.mergeWith=yh,S.method=bB,S.methodOf=yB,S.mixin=iu,S.negate=pi,S.nthArg=wB,S.omit=Sk,S.omitBy=Ek,S.once=CE,S.orderBy=oE,S.over=vB,S.overArgs=wE,S.overEvery=_B,S.overSome=SB,S.partial=Qc,S.partialRight=ch,S.partition=lE,S.pick=kk,S.pickBy=Ch,S.property=Bh,S.propertyOf=EB,S.pull=oS,S.pullAll=J2,S.pullAllBy=lS,S.pullAllWith=aS,S.pullAt=iS,S.range=kB,S.rangeRight=BB,S.rearg=vE,S.reject=sE,S.remove=sS,S.rest=_E,S.reverse=Xc,S.sampleSize=uE,S.set=xk,S.setWith=Tk,S.shuffle=fE,S.slice=cS,S.sortBy=hE,S.sortedUniq=gS,S.sortedUniqBy=bS,S.split=Zk,S.spread=SE,S.tail=yS,S.take=CS,S.takeRight=wS,S.takeRightWhile=vS,S.takeWhile=_S,S.tap=$S,S.throttle=EE,S.thru=ci,S.toArray=hh,S.toPairs=wh,S.toPairsIn=vh,S.toPath=LB,S.toPlainObject=gh,S.transform=Ok,S.unary=kE,S.union=SS,S.unionBy=ES,S.unionWith=kS,S.uniq=BS,S.uniqBy=xS,S.uniqWith=TS,S.unset=Nk,S.unzip=Zc,S.unzipWith=Q2,S.update=Lk,S.updateWith=Ak,S.values=qo,S.valuesIn=Ik,S.without=OS,S.words=Eh,S.wrap=BE,S.xor=NS,S.xorBy=LS,S.xorWith=AS,S.zip=IS,S.zipObject=RS,S.zipObjectDeep=PS,S.zipWith=MS,S.entries=wh,S.entriesIn=vh,S.extend=bh,S.extendWith=gi,iu(S,S),S.add=IB,S.attempt=kh,S.camelCase=$k,S.capitalize=_h,S.ceil=RB,S.clamp=Rk,S.clone=TE,S.cloneDeep=NE,S.cloneDeepWith=LE,S.cloneWith=OE,S.conformsTo=AE,S.deburr=Sh,S.defaultTo=dB,S.divide=PB,S.endsWith=Vk,S.eq=Nn,S.escape=zk,S.escapeRegExp=Fk,S.every=GS,S.find=YS,S.findIndex=q2,S.findKey=sk,S.findLast=XS,S.findLastIndex=Y2,S.findLastKey=ck,S.floor=MB,S.forEach=th,S.forEachRight=nh,S.forIn=uk,S.forInRight=fk,S.forOwn=dk,S.forOwnRight=pk,S.get=nu,S.gt=IE,S.gte=RE,S.has=gk,S.hasIn=ru,S.head=Z2,S.identity=Gt,S.includes=tE,S.indexOf=X_,S.inRange=Pk,S.invoke=Ck,S.isArguments=so,S.isArray=ye,S.isArrayBuffer=PE,S.isArrayLike=Kt,S.isArrayLikeObject=at,S.isBoolean=ME,S.isBuffer=Lr,S.isDate=$E,S.isElement=VE,S.isEmpty=zE,S.isEqual=FE,S.isEqualWith=DE,S.isError=eu,S.isFinite=WE,S.isFunction=ir,S.isInteger=uh,S.isLength=hi,S.isMap=fh,S.isMatch=HE,S.isMatchWith=UE,S.isNaN=KE,S.isNative=jE,S.isNil=qE,S.isNull=GE,S.isNumber=dh,S.isObject=tt,S.isObjectLike=ot,S.isPlainObject=Ml,S.isRegExp=tu,S.isSafeInteger=YE,S.isSet=ph,S.isString=mi,S.isSymbol=rn,S.isTypedArray=Go,S.isUndefined=XE,S.isWeakMap=ZE,S.isWeakSet=JE,S.join=tS,S.kebabCase=Dk,S.last=wn,S.lastIndexOf=nS,S.lowerCase=Wk,S.lowerFirst=Hk,S.lt=QE,S.lte=ek,S.max=$B,S.maxBy=VB,S.mean=zB,S.meanBy=FB,S.min=DB,S.minBy=WB,S.stubArray=cu,S.stubFalse=uu,S.stubObject=xB,S.stubString=TB,S.stubTrue=OB,S.multiply=HB,S.nth=rS,S.noConflict=CB,S.noop=su,S.now=fi,S.pad=Uk,S.padEnd=Kk,S.padStart=jk,S.parseInt=Gk,S.random=Mk,S.reduce=aE,S.reduceRight=iE,S.repeat=qk,S.replace=Yk,S.result=Bk,S.round=UB,S.runInContext=P,S.sample=cE,S.size=dE,S.snakeCase=Xk,S.some=pE,S.sortedIndex=uS,S.sortedIndexBy=fS,S.sortedIndexOf=dS,S.sortedLastIndex=pS,S.sortedLastIndexBy=hS,S.sortedLastIndexOf=mS,S.startCase=Jk,S.startsWith=Qk,S.subtract=KB,S.sum=jB,S.sumBy=GB,S.template=eB,S.times=NB,S.toFinite=sr,S.toInteger=Se,S.toLength=mh,S.toLower=tB,S.toNumber=vn,S.toSafeInteger=tk,S.toString=De,S.toUpper=nB,S.trim=rB,S.trimEnd=oB,S.trimStart=lB,S.truncate=aB,S.unescape=iB,S.uniqueId=AB,S.upperCase=sB,S.upperFirst=ou,S.each=th,S.eachRight=nh,S.first=Z2,iu(S,(function(){var n={};return Wn(S,function(l,s){Ue.call(S.prototype,s)||(n[s]=l)}),n})(),{chain:!1}),S.VERSION=a,mn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){S[n].placeholder=S}),mn(["drop","take"],function(n,l){Ae.prototype[n]=function(s){s=s===o?1:ft(Se(s),0);var p=this.__filtered__&&!l?new Ae(this):this.clone();return p.__filtered__?p.__takeCount__=kt(s,p.__takeCount__):p.__views__.push({size:kt(s,Q),type:n+(p.__dir__<0?"Right":"")}),p},Ae.prototype[n+"Right"]=function(s){return this.reverse()[n](s).reverse()}}),mn(["filter","map","takeWhile"],function(n,l){var s=l+1,p=s==oe||s==re;Ae.prototype[n]=function(w){var k=this.clone();return k.__iteratees__.push({iteratee:ue(w,3),type:s}),k.__filtered__=k.__filtered__||p,k}}),mn(["head","last"],function(n,l){var s="take"+(l?"Right":"");Ae.prototype[n]=function(){return this[s](1).value()[0]}}),mn(["initial","tail"],function(n,l){var s="drop"+(l?"":"Right");Ae.prototype[n]=function(){return this.__filtered__?new Ae(this):this[s](1)}}),Ae.prototype.compact=function(){return this.filter(Gt)},Ae.prototype.find=function(n){return this.filter(n).head()},Ae.prototype.findLast=function(n){return this.reverse().find(n)},Ae.prototype.invokeMap=Te(function(n,l){return typeof n=="function"?new Ae(this):this.map(function(s){return Nl(s,n,l)})}),Ae.prototype.reject=function(n){return this.filter(pi(ue(n)))},Ae.prototype.slice=function(n,l){n=Se(n);var s=this;return s.__filtered__&&(n>0||l<0)?new Ae(s):(n<0?s=s.takeRight(-n):n&&(s=s.drop(n)),l!==o&&(l=Se(l),s=l<0?s.dropRight(-l):s.take(l-n)),s)},Ae.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ae.prototype.toArray=function(){return this.take(Q)},Wn(Ae.prototype,function(n,l){var s=/^(?:filter|find|map|reject)|While$/.test(l),p=/^(?:head|last)$/.test(l),w=S[p?"take"+(l=="last"?"Right":""):l],k=p||/^find/.test(l);w&&(S.prototype[l]=function(){var L=this.__wrapped__,I=p?[1]:arguments,M=L instanceof Ae,K=I[0],j=M||ye(L),Y=function(Le){var Re=w.apply(S,Er([Le],I));return p&&ee?Re[0]:Re};j&&s&&typeof K=="function"&&K.length!=1&&(M=j=!1);var ee=this.__chain__,ie=!!this.__actions__.length,fe=k&&!ee,ke=M&&!ie;if(!k&&j){L=ke?L:new Ae(this);var de=n.apply(L,I);return de.__actions__.push({func:ci,args:[Y],thisArg:o}),new bn(de,ee)}return fe&&ke?n.apply(this,I):(de=this.thru(Y),fe?p?de.value()[0]:de.value():de)})}),mn(["pop","push","shift","sort","splice","unshift"],function(n){var l=Pa[n],s=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",p=/^(?:pop|shift)$/.test(n);S.prototype[n]=function(){var w=arguments;if(p&&!this.__chain__){var k=this.value();return l.apply(ye(k)?k:[],w)}return this[s](function(L){return l.apply(ye(L)?L:[],w)})}}),Wn(Ae.prototype,function(n,l){var s=S[l];if(s){var p=s.name+"";Ue.call(Wo,p)||(Wo[p]=[]),Wo[p].push({name:l,func:s})}}),Wo[ni(o,B).name]=[{name:"wrapper",func:o}],Ae.prototype.clone=iv,Ae.prototype.reverse=sv,Ae.prototype.value=cv,S.prototype.at=VS,S.prototype.chain=zS,S.prototype.commit=FS,S.prototype.next=DS,S.prototype.plant=HS,S.prototype.reverse=US,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=KS,S.prototype.first=S.prototype.head,Sl&&(S.prototype[Sl]=WS),S}),zo=Fw();eo?((eo.exports=zo)._=zo,ac._=zo):Ct._=zo}).call(c9)})(yl,yl.exports)),yl.exports}var f9=u9();const xa=wb(f9),G0=t.defineComponent({__name:"transferItem",props:{dialogModalVisible:{type:Boolean},columnsValue:{},columnsIndex:{},columnsLen:{}},emits:["update:toUnLock","update:toLock","update:toTop","update:toPre","update:toNext","update:toBottom"],setup(e,{emit:r}){const o=e,a=t.reactive({itemOnHover:!1,itemOnClick:!1}),i=r,u=()=>{a.itemOnClick=!0,a.itemOnHover=!1},c=()=>{a.itemOnClick=!1,a.itemOnHover=!0};t.watch(()=>o.dialogModalVisible,g=>{g||(a.itemOnClick=!1,a.itemOnHover=!1)});const f=t.computed(()=>!!o.columnsValue.fixed),h=t.computed(()=>[{icon:f5,emitKey:"update:toUnLock",isDisabled:!f.value},{icon:n5,emitKey:"update:toLock",isDisabled:f.value},{icon:c5,emitKey:"update:toTop",isDisabled:o.columnsIndex===0},{icon:Gf,emitKey:"update:toPre",isDisabled:o.columnsIndex===0},{icon:Di,emitKey:"update:toNext",isDisabled:o.columnsIndex===o.columnsLen-1},{icon:H3,emitKey:"update:toBottom",isDisabled:o.columnsIndex===o.columnsLen-1}]),d=24/h.value.length,m=g=>{i(g)};return(g,C)=>{const y=Cr,b=Hb,v=py;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["transfer-item-wrapper",{"cursor-grab":a.itemOnHover,"cursor-grabbing":a.itemOnClick}]),onMouseenter:C[0]||(C[0]=E=>a.itemOnHover=!0),onMouseleave:C[1]||(C[1]=E=>a.itemOnHover=!1),onMousedown:u,onMouseup:c},[(t.openBlock(),t.createBlock(y,{label:g.columnsValue.label,value:g.columnsValue.prop,key:g.columnsValue.prop},null,8,["label","value"])),t.createVNode(v,{class:"transfer-arrow-wrapper",justify:"space-around",gutter:8},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,E=>(t.openBlock(),t.createBlock(b,{span:d},{default:t.withCtx(()=>[t.createVNode(t.unref(Nt),{icon:E.icon,disabled:E.isDisabled,link:"",type:"primary",onClick:B=>m(E.emitKey)},null,8,["icon","disabled","onClick"])]),_:2},1024))),256))]),_:1})],34)}}}),d9={class:"search-bar"},p9={class:"transfer-sort-wrapper"},h9=t.defineComponent({__name:"TransferDialog",props:{modelValue:{type:Boolean},columnsValue:{},transferTitle:{}},emits:["update:modelValue","update:submit","update:checkChange"],setup(e,{emit:r}){const{t:o}=Kn.useI18n(),a=e,i=r,u=t.computed({get:()=>a.modelValue,set:E=>i("update:modelValue",E)}),c=t.reactive({localColumns:xa.cloneDeep(a.columnsValue),clickItemProp:"",checkList:a.columnsValue.map(E=>E.prop)}),f={toTop:E=>{if(E<=0)return;const B=c.localColumns.splice(E,1)[0];c.localColumns.unshift(B)},toBottom:E=>{if(E>=c.localColumns.length-1)return;const B=c.localColumns.splice(E,1)[0];c.localColumns.push(B)},toPre:E=>{if(E>0){const B=c.localColumns[E];c.localColumns[E]=c.localColumns[E-1],c.localColumns[E-1]=B}},toNext:E=>{if(E<c.localColumns.length-1){const B=c.localColumns[E];c.localColumns[E]=c.localColumns[E+1],c.localColumns[E+1]=B}},toLock:E=>{if(E<=0)return;const B=c.localColumns.splice(E,1)[0];B.fixed="left",c.localColumns.unshift(B)},toUnLock:E=>{if(E<c.localColumns.length-1){const B=c.localColumns[E];delete B.fixed}}},h=()=>{c.localColumns=xa.cloneDeep(a.columnsValue),c.checkList=a.columnsValue.filter(E=>E.checkActive).map(E=>E.prop||"")};t.watch(()=>u.value,E=>{E?h():(c.clickItemProp="",c.localColumns=[],c.checkList=[])});const d=()=>{i("update:submit",c.localColumns)},m=E=>{const B=a.columnsValue.map(O=>O.prop);c.checkList=E?B:[],g(c.checkList)},g=E=>{const B=E.map(O=>String(O));c.localColumns.forEach(O=>{O.checkActive=B.includes(O.prop)}),i("update:checkChange",{columns:c.localColumns,checkList:c.checkList})},C=t.computed(()=>c.localColumns.length>0&&c.checkList.length===c.localColumns.length),y=t.computed({get:()=>C.value,set:E=>m(E)}),b=()=>{c.localColumns=xa.cloneDeep(a.columnsValue)},v=E=>{if(E.length>0){const B=xa.cloneDeep(c.localColumns);c.localColumns=B.filter(O=>O.label.includes(E))}else b()};return(E,B)=>{const O=Cr,T=Rb;return t.openBlock(),t.createBlock(Yr,{modelValue:u.value,"onUpdate:modelValue":B[2]||(B[2]=_=>u.value=_),title:E.transferTitle,"onClick:submit":d},{default:t.withCtx(()=>[t.createElementVNode("div",d9,[t.createVNode(Xr,{"show-search":!0,"onUpdate:clear":b,"onKeydown:enter":v})]),t.createElementVNode("div",p9,[t.createVNode(O,{modelValue:y.value,"onUpdate:modelValue":B[0]||(B[0]=_=>y.value=_),class:"px-4",onChange:m},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(o)("common.column"))+" ("+t.toDisplayString(c.checkList.length)+"/"+t.toDisplayString(c.localColumns.length)+") ",1)]),_:1},8,["modelValue"]),t.createVNode(T,{modelValue:c.checkList,"onUpdate:modelValue":B[1]||(B[1]=_=>c.checkList=_),onChange:g},{default:t.withCtx(()=>[t.renderSlot(E.$slots,"list-container",{columns:c.localColumns,clickItemProp:c.clickItemProp,handleItemEvents:f,handleMousedown:_=>c.clickItemProp=_},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localColumns,(_,x)=>(t.openBlock(),t.createBlock(G0,{key:_.prop,"dialog-modal-visible":u.value,"columns-value":_,"columns-index":x,"columns-len":c.localColumns.length,class:t.normalizeClass({"transfer-active-bg":_.checkActive,"transfer-active-border":c.clickItemProp==_.prop}),onMousedown:N=>c.clickItemProp=_.prop||"","onUpdate:toTop":N=>f.toTop(x),"onUpdate:toBottom":N=>f.toBottom(x),"onUpdate:toPre":N=>f.toPre(x),"onUpdate:toNext":N=>f.toNext(x),"onUpdate:toLock":N=>f.toLock(x),"onUpdate:toUnLock":N=>f.toUnLock(x)},null,8,["dialog-modal-visible","columns-value","columns-index","columns-len","class","onMousedown","onUpdate:toTop","onUpdate:toBottom","onUpdate:toPre","onUpdate:toNext","onUpdate:toLock","onUpdate:toUnLock"]))),128))])]),_:3},8,["modelValue"])])]),_:3},8,["modelValue","title"])}}}),m9={class:"h-header px-4 py-4 flex justify-between items-center bg-primary-10"},g9={class:"flex items-center gap-2"},b9={key:0,class:"flex items-center text-black"},y9={class:"font-bold text-text text-xl md:text-2xl;"},C9={class:"flex items-center gap-3"},q0=t.defineComponent({__name:"FunctionHeader",props:{title:{type:String,required:!1,default:""},showBack:{type:[Boolean,String,Object],required:!1,default:!1},depth:{type:Number,required:!1,default:1}},emits:["back"],setup(e,{emit:r}){const o=e,a=r,i=()=>{const u={};switch(typeof o.showBack){case"string":u.path=o.showBack;break;case"object":Object.assign(u,o.showBack);break;default:u.path=""}a("back",u)};return(u,c)=>{const f=st;return t.openBlock(),t.createElementBlock("div",m9,[t.createElementVNode("div",g9,[e.showBack?(t.openBlock(),t.createElementBlock("div",b9,[t.createVNode(f,{size:16,class:"cursor-pointer",onClick:i},{default:t.withCtx(()=>[t.createVNode(t.unref($3))]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",y9,t.toDisplayString(o.title),1)]),t.createElementVNode("div",C9,[t.renderSlot(u.$slots,"default")])])}}}),w9={key:0,class:"px-4 pt-1.5"},v9={key:1,class:"py-1.5 px-4"},_9={key:0,class:"flex justify-start pl-1.5 pt-0"},Ta=Oo(t.defineComponent({__name:"MainPanel",props:{title:{default:""},showBack:{type:[Boolean,String,Object],default:!1},depth:{default:1}},emits:["click:back"],setup(e,{emit:r}){const o=e,a=r,i=()=>{a("click:back")};return(u,c)=>{const f=aa;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(q0),{title:o.title,showBack:o.showBack,onBack:i,depth:o.depth},null,8,["title","showBack","depth"]),t.createVNode(f,{class:"panel-scrollbar"},{default:t.withCtx(()=>[u.$slots.searchBar?(t.openBlock(),t.createElementBlock("div",w9,[t.renderSlot(u.$slots,"searchBar",{},void 0,!0)])):t.createCommentVNode("",!0),u.$slots.main?(t.openBlock(),t.createElementBlock("div",v9,[t.renderSlot(u.$slots,"main",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3}),u.$slots.footer?(t.openBlock(),t.createElementBlock("div",_9,[t.renderSlot(u.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-c88d2537"]]),S9=t.defineComponent({__name:"SearchableListPanel",props:{title:{},pagination:{},showBack:{type:[Boolean,String,Object]},showSearch:{type:Boolean},pageSizeList:{default:()=>[10,25,50,100,200]},showPagination:{type:Boolean}},emits:["search","updatePage","updatePageSize","click:back"],setup(e,{emit:r}){const o=e,{pagination:a}=t.toRefs(o),i=r,u=g=>{i("search",g)},c=()=>{i("search",null)},f=g=>{i("updatePage",g)},h=g=>{i("updatePageSize",g)},d=()=>{i("click:back")},m=t.computed(()=>o.showPagination?o.showPagination:o.pagination.totalCount>0);return(g,C)=>{const y=sy;return t.openBlock(),t.createBlock(t.unref(Ta),{title:o.title,"show-back":g.showBack,"onClick:back":d},{searchBar:t.withCtx(()=>[t.createVNode(t.unref(Xr),{"show-search":g.showSearch,"onKeydown:enter":u,"onUpdate:clear":c},{button:t.withCtx(()=>[t.renderSlot(g.$slots,"firstButton"),t.renderSlot(g.$slots,"customButton"),t.renderSlot(g.$slots,"lastButton")]),customerFilter:t.withCtx(()=>[t.renderSlot(g.$slots,"filterButton")]),_:3},8,["show-search"])]),main:t.withCtx(()=>[t.renderSlot(g.$slots,"main")]),footer:t.withCtx(()=>[m.value?(t.openBlock(),t.createBlock(y,{key:0,layout:"jumper, prev, pager, next, total, sizes","page-sizes":g.pageSizeList,"current-page":t.unref(a).page,"page-size":t.unref(a).limit,total:t.unref(a).totalCount,onCurrentChange:f,onSizeChange:h},null,8,["page-sizes","current-page","page-size","total"])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),E9={class:"detail-container"},k9={class:"content-wrapper"},B9={key:0,class:"border-t py-4 w-full flex items-center justify-end"},x9=Oo(t.defineComponent({__name:"DetailLayout",props:{title:{},showBack:{type:[Boolean,String,Object]},isEditable:{type:Boolean},pageLoading:{type:Boolean}},emits:["update:saveEdit","update:cancelEdit","click:back"],setup(e,{emit:r}){const{t:o}=Kn.useI18n(),a=r,i=()=>{a("update:saveEdit",!1)},u=()=>{a("update:cancelEdit")},c=()=>{a("click:back")};return(f,h)=>{const d=Gr;return t.openBlock(),t.createBlock(t.unref(Ta),{title:f.title,"show-back":f.showBack,"onClick:back":c},{main:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",E9,[t.renderSlot(f.$slots,"detailHeader",{},void 0,!0),t.createElementVNode("div",k9,[t.renderSlot(f.$slots,"main",{},void 0,!0)])])),[[d,f.pageLoading]])]),footer:t.withCtx(()=>[f.isEditable?(t.openBlock(),t.createElementBlock("div",B9,[t.createVNode(t.unref(Nt),{text:t.unref(o)("common.save"),type:"primary","is-fill":"",onClick:i},null,8,["text"]),t.createVNode(t.unref(Nt),{text:t.unref(o)("common.discard"),type:"primary",onClick:u},null,8,["text"])])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),[["__scopeId","data-v-680f59bd"]]),T9={class:"filter-container"},O9={class:"filter-header"},N9={class:"submit-row"},L9=Oo(t.defineComponent({__name:"FilterLayout",props:{mainTitle:{},showBack:{type:[Boolean,String,Object]},filterTitle:{}},emits:["submitEmit","resetEmit","click:back"],setup(e,{emit:r}){const{t:o}=Kn.useI18n(),a=r,i=()=>{a("submitEmit")},u=()=>{a("resetEmit")},c=()=>{a("click:back")};return(f,h)=>(t.openBlock(),t.createBlock(t.unref(Ta),{title:f.mainTitle,"show-back":f.showBack,"onClick:back":c},{main:t.withCtx(()=>[t.createElementVNode("div",T9,[t.createElementVNode("div",O9,t.toDisplayString(f.filterTitle),1),t.renderSlot(f.$slots,"default",{},void 0,!0)])]),footer:t.withCtx(()=>[t.createElementVNode("div",N9,[t.createVNode(t.unref(Nt),{text:t.unref(o)("common.execute"),"is-fill":"",type:"primary",onClick:i},null,8,["text"]),t.createVNode(t.unref(Nt),{text:t.unref(o)("common.reset"),type:"primary",onClick:u},null,8,["text"])])]),_:3},8,["title","show-back"]))}}),[["__scopeId","data-v-32b37758"]]),A9={class:"w-full mb-4"},I9={class:"flex items-center h-12 bg-gray-200 px-1.5 rounded-t justify-end"},R9={class:"flex items-center mr-4"},P9={key:0,src:XC,alt:"Excel",class:"w-6 h-6"},M9={key:1,src:ZC,alt:"Excel-active",class:"w-6 h-6"},Cl=t.defineComponent({__name:"SortTable",props:{data:{},columns:{},tableTitle:{},showSelection:{type:Boolean},loading:{type:Boolean},showSummary:{type:Boolean},showOverFlowTooltip:{type:Boolean},summaryMethod:{type:Function},sortTableRowClassName:{type:Function},showCheckBtn:{type:Boolean},showEditBtn:{type:Boolean}},emits:["open:transfer","click:downloadExcelFile","update:selectRow","click:cell","click:columnSort","click:checkRow","click:editRow"],setup(e,{emit:r}){const o=r,a=()=>{o("open:transfer")},i=g=>{o("update:selectRow",g)},u=(g,C)=>{o("click:cell",g,C)},c=g=>{o("click:columnSort",g)},f=g=>{o("click:checkRow",g)},h=g=>{o("click:editRow",g)},d=()=>{o("click:downloadExcelFile")},m=t.reactive({itemOnHover:!1});return(g,C)=>{const y=st,b=Gr;return t.openBlock(),t.createElementBlock("div",A9,[t.createElementVNode("div",I9,[t.createElementVNode("div",R9,[t.createElementVNode("div",{class:"cursor-pointer text-text text-xl flex items-center justify-center hover:text-blue-600",onClick:a},[t.createVNode(y,null,{default:t.withCtx(()=>[t.createVNode(t.unref(i5))]),_:1})]),t.createElementVNode("div",{class:"cursor-pointer flex items-center justify-center ml-1",onMouseenter:C[0]||(C[0]=v=>m.itemOnHover=!0),onMouseleave:C[1]||(C[1]=v=>m.itemOnHover=!1),onClick:d},[m.itemOnHover?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",P9)),m.itemOnHover?(t.openBlock(),t.createElementBlock("img",M9)):t.createCommentVNode("",!0)],32)])]),t.withDirectives(t.createVNode(t.unref(qr),{data:g.data,columns:g.columns,"show-summary":g.showSummary,"show-over-flow-tooltip":g.showOverFlowTooltip,"summary-method":g.summaryMethod,"show-selection":g.showSelection,"base-table-row-class-name":g.sortTableRowClassName,"show-check-btn":g.showCheckBtn,"show-edit-btn":g.showEditBtn,onSelectionChange:i,onCellClick:u,onColumnSortChange:c,"onClick:checkRow":f,"onClick:editRow":h},null,8,["data","columns","show-summary","show-over-flow-tooltip","summary-method","show-selection","base-table-row-class-name","show-check-btn","show-edit-btn"]),[[b,g.loading]])])}}}),Y0={"common.select":"請選擇","common.confirm":"確定","common.cancel":"取消","dialog.confirmRemoveUser":"請問是否確認移除該使用者","common.warning":"警告","search.placeholder":"請輸入關鍵字搜尋列表","common.execute":"執行","common.reset":"重設","common.loading":"數據加載中","common.view":"查看","common.edit":"編輯","common.column":"欄","common.back":"回到前一頁","demo.componentDemo":"組件示範","button.title":"按鈕","button.primary ":"主要","button.default":"默認","button.danger":"危險","button.success":"成功","button.warning":"警告","button.info":"信息","button.style":"樣式","button.size":"尺寸","button.small":"小","button.medium":"中","button.large ":"大","status.title":"狀態","status.normal ":"正常","status.loading":"載入中","status.disabled":"禁用","button.withIcon ":"帶圖標的","button.add":"添加","button.delete":"刪除","common.save":"儲存","common.discard":"捨棄"},X0={"common.select":"Please select","common.confirm":"Confirm","common.cancel":"Cancel","dialog.confirmRemoveUser":"Are you sure you want to remove this user?","common.warning":"Warning","search.placeholder":"Please enter keywords to search the list","common.execute":"Execute","common.reset":"Reset","common.loading":"Data loading","common.view":"View","common.edit":"Edit","common.column":"Column","common.back":" Back","demo.componentDemo":"Component Demo","button.title":"Button","button.primary ":"Primary","button.default":"Default","button.danger":"Danger","button.success":"Success","button.warning":"Warning","button.info":"Info","button.style":"Style","button.size":"Size","button.small":"Small","button.medium":"Medium","button.large ":"Large","status.title":"Status","status.normal ":"Normal","status.loading":"Loading","status.disabled":"Disabled","button.withIcon ":"With Icon","button.add":"Add","button.delete":"Delete","common.save":"Save","common.discard":"Discard"},Z0={"zh-TW":Y0,"en-US":X0};let Ws=null;const J0="zh-TW";function Q0(){return Ws||(Ws=Kn.createI18n({legacy:!1,locale:J0,fallbackLocale:J0,messages:Z0,silentTranslationWarn:!0,missingWarn:!1,fallbackWarn:!1})),Ws}function ep(e){const o=Q0().global;o.locale.value=e}function $9(){return Q0().global}function V9(e){return e.map(r=>({...r,checkActive:!0}))}const tp=[qr,Nt,No,Yr,Cl,bl,Xr];function np(e,r){r!=null&&r.locale&&ep(r.locale),tp.forEach(o=>{e.component(o.name||"VueTableComponent",o)})}const z9={install:np,...tp};qr.install=e=>{e.component(qr.name||"BaseTable",qr)},Nt.install=e=>{e.component(Nt.name||"BaseBtn",Nt)},No.install=e=>{e.component(No.name||"BaseInput",No)},Yr.install=e=>{e.component(Yr.name||"BaseDialog",Yr)},Cl.install=e=>{e.component(Cl.name||"SortTable",Cl)},bl.install=e=>{e.component(bl.name||"TitleTable",bl)},Xr.install=e=>{e.component(Xr.name||"SearchBar",Xr)},ge.BaseBtn=Nt,ge.BaseDialog=Yr,ge.BaseInput=No,ge.BaseMultipleInput=e9,ge.BaseTable=qr,ge.BaseWaringDialog=QC,ge.DetailLayout=x9,ge.FilterLayout=L9,ge.FunctionHeader=q0,ge.MainPanel=Ta,ge.SearchBar=Xr,ge.SearchableListPanel=S9,ge.SortTable=Cl,ge.TitleTable=bl,ge.TransferDialog=h9,ge.TransferItem=G0,ge.default=z9,ge.enUS=X0,ge.install=np,ge.messages=Z0,ge.setActiveColumn=V9,ge.setLocale=ep,ge.useI18n=$9,ge.zhTW=Y0,Object.defineProperties(ge,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/package.json
CHANGED