@aithe/aithe-ui 26.3.1 → 26.3.2
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 +8 -5
- package/dist/apps/api/i18n/de-DE.d.ts.map +1 -1
- package/dist/apps/api/i18n/de-DE.js +1 -0
- package/dist/apps/api/i18n/en-US.d.ts.map +1 -1
- package/dist/apps/api/i18n/en-US.js +1 -0
- package/dist/apps/api/i18n/es-ES.d.ts.map +1 -1
- package/dist/apps/api/i18n/es-ES.js +1 -0
- package/dist/apps/api/i18n/fr-FR.d.ts.map +1 -1
- package/dist/apps/api/i18n/fr-FR.js +1 -0
- package/dist/apps/api/i18n/ja-JP.d.ts.map +1 -1
- package/dist/apps/api/i18n/ja-JP.js +1 -0
- package/dist/apps/api/i18n/ko-KR.d.ts.map +1 -1
- package/dist/apps/api/i18n/ko-KR.js +1 -0
- package/dist/apps/api/i18n/pt-BR.d.ts.map +1 -1
- package/dist/apps/api/i18n/pt-BR.js +1 -0
- package/dist/apps/api/i18n/zh-CN.d.ts.map +1 -1
- package/dist/apps/api/i18n/zh-CN.js +1 -0
- package/dist/apps/api/i18n/zh-HK.d.ts.map +1 -1
- package/dist/apps/api/i18n/zh-HK.js +1 -0
- package/dist/apps/api/i18n/zh-TW.d.ts.map +1 -1
- package/dist/apps/api/i18n/zh-TW.js +1 -0
- package/dist/apps/api/pages/docs.d.ts.map +1 -1
- package/dist/apps/api/pages/docs.js +2 -0
- package/dist/apps/demo/app.d.ts.map +1 -1
- package/dist/apps/demo/app.js +2 -0
- package/dist/apps/demo/i18n/de-DE.d.ts.map +1 -1
- package/dist/apps/demo/i18n/de-DE.js +20 -0
- package/dist/apps/demo/i18n/en-US.d.ts.map +1 -1
- package/dist/apps/demo/i18n/en-US.js +20 -0
- package/dist/apps/demo/i18n/es-ES.d.ts.map +1 -1
- package/dist/apps/demo/i18n/es-ES.js +20 -0
- package/dist/apps/demo/i18n/fr-FR.d.ts.map +1 -1
- package/dist/apps/demo/i18n/fr-FR.js +20 -0
- package/dist/apps/demo/i18n/ja-JP.d.ts.map +1 -1
- package/dist/apps/demo/i18n/ja-JP.js +20 -0
- package/dist/apps/demo/i18n/ko-KR.d.ts.map +1 -1
- package/dist/apps/demo/i18n/ko-KR.js +20 -0
- package/dist/apps/demo/i18n/pt-BR.d.ts.map +1 -1
- package/dist/apps/demo/i18n/pt-BR.js +20 -0
- package/dist/apps/demo/i18n/zh-CN.d.ts.map +1 -1
- package/dist/apps/demo/i18n/zh-CN.js +20 -0
- package/dist/apps/demo/i18n/zh-HK.d.ts.map +1 -1
- package/dist/apps/demo/i18n/zh-HK.js +20 -0
- package/dist/apps/demo/i18n/zh-TW.d.ts.map +1 -1
- package/dist/apps/demo/i18n/zh-TW.js +20 -0
- package/dist/apps/demo/pages/autoform.d.ts.map +1 -1
- package/dist/apps/demo/pages/autoform.js +10 -0
- package/dist/apps/demo/pages/autoview.d.ts +3 -0
- package/dist/apps/demo/pages/autoview.d.ts.map +1 -0
- package/dist/apps/demo/pages/autoview.js +310 -0
- package/dist/apps/demo/pages/form.d.ts.map +1 -1
- package/dist/apps/demo/pages/form.js +20 -0
- package/dist/components/data/tree-menu.js +1 -1
- package/dist/components/display/autoview.d.ts +139 -0
- package/dist/components/display/autoview.d.ts.map +1 -0
- package/dist/components/display/autoview.js +460 -0
- package/dist/components/display/desc.d.ts +4 -0
- package/dist/components/display/desc.d.ts.map +1 -1
- package/dist/components/display/desc.js +45 -3
- package/dist/components/form/autoform-item.d.ts +6 -0
- package/dist/components/form/autoform-item.d.ts.map +1 -1
- package/dist/components/form/autoform-item.js +34 -4
- package/dist/components/form/combobox.d.ts +4 -0
- package/dist/components/form/combobox.d.ts.map +1 -1
- package/dist/components/form/combobox.js +56 -13
- package/dist/components/form/select.d.ts +4 -0
- package/dist/components/form/select.d.ts.map +1 -1
- package/dist/components/form/select.js +84 -40
- package/dist/components/navigation/sub-menu.d.ts.map +1 -1
- package/dist/components/navigation/sub-menu.js +0 -1
- package/dist/core/autoform/autoview.d.ts +86 -0
- package/dist/core/autoform/autoview.d.ts.map +1 -0
- package/dist/core/autoform/autoview.js +37 -0
- package/dist/core/autoform/index.d.ts +2 -0
- package/dist/core/autoform/index.d.ts.map +1 -1
- package/dist/core/autoform/index.js +1 -0
- package/dist/core/datahub/__tests__/force-options.test.d.ts +8 -0
- package/dist/core/datahub/__tests__/force-options.test.d.ts.map +1 -0
- package/dist/core/datahub/__tests__/force-options.test.js +161 -0
- package/dist/core/datahub/core/api-styles.d.ts.map +1 -1
- package/dist/core/datahub/core/api-styles.js +5 -0
- package/dist/core/datahub/core/datahub-core.d.ts +50 -0
- package/dist/core/datahub/core/datahub-core.d.ts.map +1 -1
- package/dist/core/datahub/core/datahub-core.js +160 -81
- package/dist/core/datahub/types.d.ts +18 -0
- package/dist/core/datahub/types.d.ts.map +1 -1
- package/dist/core/markdown/plugins.d.ts +2 -1
- package/dist/core/markdown/plugins.d.ts.map +1 -1
- package/dist/core/markdown/plugins.js +168 -21
- package/dist/core/types.d.ts +2 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1267 -753
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +282 -138
- package/dist/index.umd.js.map +1 -1
- package/dist/styles/i18n/locales/de-DE.d.ts.map +1 -1
- package/dist/styles/i18n/locales/de-DE.js +3 -0
- package/dist/styles/i18n/locales/en-US.d.ts.map +1 -1
- package/dist/styles/i18n/locales/en-US.js +3 -0
- package/dist/styles/i18n/locales/es-ES.d.ts.map +1 -1
- package/dist/styles/i18n/locales/es-ES.js +3 -0
- package/dist/styles/i18n/locales/fr-FR.d.ts.map +1 -1
- package/dist/styles/i18n/locales/fr-FR.js +3 -0
- package/dist/styles/i18n/locales/ja-JP.d.ts.map +1 -1
- package/dist/styles/i18n/locales/ja-JP.js +3 -0
- package/dist/styles/i18n/locales/ko-KR.d.ts.map +1 -1
- package/dist/styles/i18n/locales/ko-KR.js +3 -0
- package/dist/styles/i18n/locales/pt-BR.d.ts.map +1 -1
- package/dist/styles/i18n/locales/pt-BR.js +3 -0
- package/dist/styles/i18n/locales/zh-CN.d.ts.map +1 -1
- package/dist/styles/i18n/locales/zh-CN.js +3 -0
- package/dist/styles/i18n/locales/zh-HK.d.ts.map +1 -1
- package/dist/styles/i18n/locales/zh-HK.js +3 -0
- package/dist/styles/i18n/locales/zh-TW.d.ts.map +1 -1
- package/dist/styles/i18n/locales/zh-TW.js +3 -0
- package/docs/api/display/autoview.md +277 -0
- package/docs/api/display/desc.md +56 -14
- package/docs/api/form/autoform-item.md +16 -1
- package/docs/api/form/autoform.md +3 -2
- package/docs/api/form/combobox.md +27 -7
- package/docs/api/form/select.md +30 -8
- package/docs/api/summary.md +1 -0
- package/docs/autoform.md +1 -32
- package/docs/changelog/CHANGELOG.md +76 -1
- package/docs/changelog/VERSION_26.3.1.md +5 -5
- package/docs/changelog/VERSION_26.3.2.md +852 -0
- package/docs/datahub.md +3 -0
- package/docs/framework-integration.md +1 -1
- package/docs/guide.md +7 -6
- package/docs/i18n.md +1 -3
- package/docs/issue/26.3.2/issue_26.3.2.1.md +46 -0
- package/docs/issue/26.3.2/issue_26.3.2.2.md +82 -0
- package/docs/issue/26.3.2/issue_26.3.2.3.md +57 -0
- package/docs/issue/26.3.2/issue_26.3.2.4.md +43 -0
- package/docs/issue/AGENTS.md +24 -3
- package/docs/markdown.md +2 -2
- package/docs/quickstart.md +3 -3
- package/docs/theming.md +5 -4
- package/package.json +1 -1
- package/dist/components/navigation/dropdown.d.ts +0 -56
- package/dist/components/navigation/dropdown.d.ts.map +0 -1
- /package/docs/issue/{issue_26.2.2.1.md → 26.2.2/issue_26.2.2.1.md} +0 -0
- /package/docs/issue/{issue_26.2.2.2.md → 26.2.2/issue_26.2.2.2.md} +0 -0
- /package/docs/issue/{issue_26.2.2.3.md → 26.2.2/issue_26.2.2.3.md} +0 -0
- /package/docs/issue/{issue_26.2.2.4.md → 26.2.2/issue_26.2.2.4.md} +0 -0
- /package/docs/issue/{issue_26.2.3.1.md → 26.2.3/issue_26.2.3.1.md} +0 -0
- /package/docs/issue/{issue_26.2.3.10.md → 26.2.3/issue_26.2.3.10.md} +0 -0
- /package/docs/issue/{issue_26.2.3.11.md → 26.2.3/issue_26.2.3.11.md} +0 -0
- /package/docs/issue/{issue_26.2.3.12.md → 26.2.3/issue_26.2.3.12.md} +0 -0
- /package/docs/issue/{issue_26.2.3.13.md → 26.2.3/issue_26.2.3.13.md} +0 -0
- /package/docs/issue/{issue_26.2.3.14.md → 26.2.3/issue_26.2.3.14.md} +0 -0
- /package/docs/issue/{issue_26.2.3.15.md → 26.2.3/issue_26.2.3.15.md} +0 -0
- /package/docs/issue/{issue_26.2.3.16.md → 26.2.3/issue_26.2.3.16.md} +0 -0
- /package/docs/issue/{issue_26.2.3.2.md → 26.2.3/issue_26.2.3.2.md} +0 -0
- /package/docs/issue/{issue_26.2.3.3.md → 26.2.3/issue_26.2.3.3.md} +0 -0
- /package/docs/issue/{issue_26.2.3.4.md → 26.2.3/issue_26.2.3.4.md} +0 -0
- /package/docs/issue/{issue_26.2.3.5.md → 26.2.3/issue_26.2.3.5.md} +0 -0
- /package/docs/issue/{issue_26.2.3.6.md → 26.2.3/issue_26.2.3.6.md} +0 -0
- /package/docs/issue/{issue_26.2.3.7.md → 26.2.3/issue_26.2.3.7.md} +0 -0
- /package/docs/issue/{issue_26.2.3.8.md → 26.2.3/issue_26.2.3.8.md} +0 -0
- /package/docs/issue/{issue_26.2.3.9.md → 26.2.3/issue_26.2.3.9.md} +0 -0
- /package/docs/issue/{issue_26.3.1.0.md → 26.3.1/issue_26.3.1.0.md} +0 -0
- /package/docs/issue/{issue_26.3.1.1.md → 26.3.1/issue_26.3.1.1.md} +0 -0
- /package/docs/issue/{issue_26.3.1.2.md → 26.3.1/issue_26.3.1.2.md} +0 -0
- /package/docs/issue/{issue_26.3.1.3.md → 26.3.1/issue_26.3.1.3.md} +0 -0
- /package/docs/issue/{issue_26.3.1.4.md → 26.3.1/issue_26.3.1.4.md} +0 -0
- /package/docs/issue/{issue_26.3.1.5.md → 26.3.1/issue_26.3.1.5.md} +0 -0
- /package/docs/issue/{issue_26.3.1.6.md → 26.3.1/issue_26.3.1.6.md} +0 -0
- /package/docs/issue/{issue_26.3.1.7.md → 26.3.1/issue_26.3.1.7.md} +0 -0
package/dist/index.js
CHANGED
|
@@ -1318,6 +1318,9 @@ var Mn = {
|
|
|
1318
1318
|
"form.formItem.requiredField": "Field",
|
|
1319
1319
|
"form.autoform.submit": "Submit",
|
|
1320
1320
|
"form.autoform.patternMismatch": "Format mismatch",
|
|
1321
|
+
"form.autoView.empty": "--",
|
|
1322
|
+
"form.autoView.yes": "Yes",
|
|
1323
|
+
"form.autoView.no": "No",
|
|
1321
1324
|
"feedback.modal.closeAriaLabel": "Close modal",
|
|
1322
1325
|
"feedback.drawer.closeAriaLabel": "Close drawer",
|
|
1323
1326
|
"data.tabs.removeTabAriaLabel": "Remove tab",
|
|
@@ -1470,6 +1473,9 @@ var Mn = {
|
|
|
1470
1473
|
"form.formItem.requiredField": "字段",
|
|
1471
1474
|
"form.autoform.submit": "提交",
|
|
1472
1475
|
"form.autoform.patternMismatch": "格式不匹配",
|
|
1476
|
+
"form.autoView.empty": "--",
|
|
1477
|
+
"form.autoView.yes": "是",
|
|
1478
|
+
"form.autoView.no": "否",
|
|
1473
1479
|
"feedback.modal.closeAriaLabel": "关闭弹窗",
|
|
1474
1480
|
"feedback.drawer.closeAriaLabel": "关闭抽屉",
|
|
1475
1481
|
"data.tabs.removeTabAriaLabel": "移除标签页",
|
|
@@ -1622,6 +1628,9 @@ var Mn = {
|
|
|
1622
1628
|
"form.formItem.requiredField": "欄位",
|
|
1623
1629
|
"form.autoform.submit": "提交",
|
|
1624
1630
|
"form.autoform.patternMismatch": "格式不符",
|
|
1631
|
+
"form.autoView.empty": "--",
|
|
1632
|
+
"form.autoView.yes": "是",
|
|
1633
|
+
"form.autoView.no": "否",
|
|
1625
1634
|
"feedback.modal.closeAriaLabel": "關閉彈窗",
|
|
1626
1635
|
"feedback.drawer.closeAriaLabel": "關閉抽屜",
|
|
1627
1636
|
"data.tabs.removeTabAriaLabel": "移除標籤頁",
|
|
@@ -1765,6 +1774,9 @@ var Mn = {
|
|
|
1765
1774
|
"form.formItem.requiredField": "欄位",
|
|
1766
1775
|
"form.autoform.submit": "提交",
|
|
1767
1776
|
"form.autoform.patternMismatch": "格式不符",
|
|
1777
|
+
"form.autoView.empty": "--",
|
|
1778
|
+
"form.autoView.yes": "是",
|
|
1779
|
+
"form.autoView.no": "否",
|
|
1768
1780
|
"feedback.modal.closeAriaLabel": "關閉彈窗",
|
|
1769
1781
|
"feedback.drawer.closeAriaLabel": "關閉抽屜",
|
|
1770
1782
|
"data.tabs.removeTabAriaLabel": "移除標籤頁",
|
|
@@ -1908,6 +1920,9 @@ var Mn = {
|
|
|
1908
1920
|
"form.formItem.requiredField": "フィールド",
|
|
1909
1921
|
"form.autoform.submit": "送信",
|
|
1910
1922
|
"form.autoform.patternMismatch": "フォーマットが一致しません",
|
|
1923
|
+
"form.autoView.empty": "--",
|
|
1924
|
+
"form.autoView.yes": "はい",
|
|
1925
|
+
"form.autoView.no": "いいえ",
|
|
1911
1926
|
"feedback.modal.closeAriaLabel": "モーダルを閉じる",
|
|
1912
1927
|
"feedback.drawer.closeAriaLabel": "ドロワーを閉じる",
|
|
1913
1928
|
"data.tabs.removeTabAriaLabel": "タブを削除",
|
|
@@ -2051,6 +2066,9 @@ var Mn = {
|
|
|
2051
2066
|
"form.formItem.requiredField": "필드",
|
|
2052
2067
|
"form.autoform.submit": "제출",
|
|
2053
2068
|
"form.autoform.patternMismatch": "형식이 일치하지 않습니다",
|
|
2069
|
+
"form.autoView.empty": "--",
|
|
2070
|
+
"form.autoView.yes": "예",
|
|
2071
|
+
"form.autoView.no": "아니오",
|
|
2054
2072
|
"feedback.modal.closeAriaLabel": "모달 닫기",
|
|
2055
2073
|
"feedback.drawer.closeAriaLabel": "서랍 닫기",
|
|
2056
2074
|
"data.tabs.removeTabAriaLabel": "탭 제거",
|
|
@@ -2194,6 +2212,9 @@ var Mn = {
|
|
|
2194
2212
|
"form.formItem.requiredField": "Campo",
|
|
2195
2213
|
"form.autoform.submit": "Enviar",
|
|
2196
2214
|
"form.autoform.patternMismatch": "El formato no coincide",
|
|
2215
|
+
"form.autoView.empty": "--",
|
|
2216
|
+
"form.autoView.yes": "Sí",
|
|
2217
|
+
"form.autoView.no": "No",
|
|
2197
2218
|
"feedback.modal.closeAriaLabel": "Cerrar modal",
|
|
2198
2219
|
"feedback.drawer.closeAriaLabel": "Cerrar panel",
|
|
2199
2220
|
"data.tabs.removeTabAriaLabel": "Eliminar pestaña",
|
|
@@ -2337,6 +2358,9 @@ var Mn = {
|
|
|
2337
2358
|
"form.formItem.requiredField": "Campo",
|
|
2338
2359
|
"form.autoform.submit": "Enviar",
|
|
2339
2360
|
"form.autoform.patternMismatch": "O formato não corresponde",
|
|
2361
|
+
"form.autoView.empty": "--",
|
|
2362
|
+
"form.autoView.yes": "Sim",
|
|
2363
|
+
"form.autoView.no": "Não",
|
|
2340
2364
|
"feedback.modal.closeAriaLabel": "Fechar modal",
|
|
2341
2365
|
"feedback.drawer.closeAriaLabel": "Fechar painel",
|
|
2342
2366
|
"data.tabs.removeTabAriaLabel": "Remover aba",
|
|
@@ -2480,6 +2504,9 @@ var Mn = {
|
|
|
2480
2504
|
"form.formItem.requiredField": "Champ",
|
|
2481
2505
|
"form.autoform.submit": "Soumettre",
|
|
2482
2506
|
"form.autoform.patternMismatch": "Le format ne correspond pas",
|
|
2507
|
+
"form.autoView.empty": "--",
|
|
2508
|
+
"form.autoView.yes": "Oui",
|
|
2509
|
+
"form.autoView.no": "Non",
|
|
2483
2510
|
"feedback.modal.closeAriaLabel": "Fermer la modale",
|
|
2484
2511
|
"feedback.drawer.closeAriaLabel": "Fermer le tiroir",
|
|
2485
2512
|
"data.tabs.removeTabAriaLabel": "Supprimer l'onglet",
|
|
@@ -2623,6 +2650,9 @@ var Mn = {
|
|
|
2623
2650
|
"form.formItem.requiredField": "Feld",
|
|
2624
2651
|
"form.autoform.submit": "Absenden",
|
|
2625
2652
|
"form.autoform.patternMismatch": "Format stimmt nicht überein",
|
|
2653
|
+
"form.autoView.empty": "--",
|
|
2654
|
+
"form.autoView.yes": "Ja",
|
|
2655
|
+
"form.autoView.no": "Nein",
|
|
2626
2656
|
"feedback.modal.closeAriaLabel": "Modal schließen",
|
|
2627
2657
|
"feedback.drawer.closeAriaLabel": "Drawer schließen",
|
|
2628
2658
|
"data.tabs.removeTabAriaLabel": "Tab entfernen",
|
|
@@ -2951,7 +2981,7 @@ function lr(e, t) {
|
|
|
2951
2981
|
function ur(e = "aithe") {
|
|
2952
2982
|
return sr += 1, `${e}-${sr}`;
|
|
2953
2983
|
}
|
|
2954
|
-
function
|
|
2984
|
+
function b(e) {
|
|
2955
2985
|
if (typeof e != "object" || !e) return String(e);
|
|
2956
2986
|
try {
|
|
2957
2987
|
return JSON.stringify(e, null, 2);
|
|
@@ -2965,7 +2995,7 @@ function dr(e) {
|
|
|
2965
2995
|
}
|
|
2966
2996
|
//#endregion
|
|
2967
2997
|
//#region src/core/floating.ts
|
|
2968
|
-
var
|
|
2998
|
+
var dr = {
|
|
2969
2999
|
top: [
|
|
2970
3000
|
"bottom",
|
|
2971
3001
|
"right",
|
|
@@ -3017,7 +3047,7 @@ var fr = {
|
|
|
3017
3047
|
"top-start"
|
|
3018
3048
|
]
|
|
3019
3049
|
};
|
|
3020
|
-
function
|
|
3050
|
+
function fr(e, t, n, r) {
|
|
3021
3051
|
switch (n) {
|
|
3022
3052
|
case "top": return {
|
|
3023
3053
|
left: e.left + e.width / 2 - t.width / 2,
|
|
@@ -3065,20 +3095,20 @@ function pr(e, t, n, r) {
|
|
|
3065
3095
|
};
|
|
3066
3096
|
}
|
|
3067
3097
|
}
|
|
3068
|
-
function
|
|
3098
|
+
function pr(e, t, n, r) {
|
|
3069
3099
|
let i = window.innerWidth, a = window.innerHeight;
|
|
3070
3100
|
return e >= r && t >= r && e + n.width <= i - r && t + n.height <= a - r;
|
|
3071
3101
|
}
|
|
3072
|
-
function
|
|
3073
|
-
let i = r.offset ?? 8, a = r.padding ?? 12, o = [n, ...
|
|
3102
|
+
function mr(e, t, n, r = {}) {
|
|
3103
|
+
let i = r.offset ?? 8, a = r.padding ?? 12, o = [n, ...dr[n]];
|
|
3074
3104
|
for (let n of o) {
|
|
3075
|
-
let r =
|
|
3076
|
-
if (
|
|
3105
|
+
let r = fr(e, t, n, i);
|
|
3106
|
+
if (pr(r.left, r.top, t, a)) return {
|
|
3077
3107
|
...r,
|
|
3078
3108
|
placement: n
|
|
3079
3109
|
};
|
|
3080
3110
|
}
|
|
3081
|
-
let s =
|
|
3111
|
+
let s = fr(e, t, n, i);
|
|
3082
3112
|
return {
|
|
3083
3113
|
left: cr(s.left, a, window.innerWidth - t.width - a),
|
|
3084
3114
|
top: cr(s.top, a, window.innerHeight - t.height - a),
|
|
@@ -3087,7 +3117,7 @@ function hr(e, t, n, r = {}) {
|
|
|
3087
3117
|
}
|
|
3088
3118
|
//#endregion
|
|
3089
3119
|
//#region src/core/anchored-overlay.ts
|
|
3090
|
-
var
|
|
3120
|
+
var hr = class extends g {
|
|
3091
3121
|
constructor(...e) {
|
|
3092
3122
|
super(...e), this.open = !1, this.placement = "bottom-start", this.offset = 8, this.handleViewportChange = () => this.updateFloatingPosition();
|
|
3093
3123
|
}
|
|
@@ -3105,7 +3135,7 @@ var gr = class extends g {
|
|
|
3105
3135
|
if (!e || !this.open) return;
|
|
3106
3136
|
let t = this.anchorElement.getBoundingClientRect();
|
|
3107
3137
|
e.style.left = "0px", e.style.top = "0px";
|
|
3108
|
-
let n = e.getBoundingClientRect(), r = n.left, i = n.top, a =
|
|
3138
|
+
let n = e.getBoundingClientRect(), r = n.left, i = n.top, a = mr(t, e.getBoundingClientRect(), this.placement, { offset: this.offset });
|
|
3109
3139
|
e.style.left = `${a.left - r}px`, e.style.top = `${a.top - i}px`;
|
|
3110
3140
|
}
|
|
3111
3141
|
bindFloating() {
|
|
@@ -3118,10 +3148,10 @@ var gr = class extends g {
|
|
|
3118
3148
|
h([s({
|
|
3119
3149
|
type: Boolean,
|
|
3120
3150
|
reflect: !0
|
|
3121
|
-
})],
|
|
3151
|
+
})], hr.prototype, "open", void 0), h([s({ type: String })], hr.prototype, "placement", void 0), h([s({ type: Number })], hr.prototype, "offset", void 0);
|
|
3122
3152
|
//#endregion
|
|
3123
3153
|
//#region src/styles/mixins.ts
|
|
3124
|
-
var
|
|
3154
|
+
var gr = t`
|
|
3125
3155
|
:host {
|
|
3126
3156
|
--aithe-font-family: 'Sora', 'IBM Plex Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
3127
3157
|
--aithe-font-family-mono: 'JetBrains Mono', 'SFMono-Regular', 'Consolas', monospace;
|
|
@@ -3136,13 +3166,13 @@ var _r = t`
|
|
|
3136
3166
|
--aithe-duration-slow: 320ms;
|
|
3137
3167
|
--aithe-ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
3138
3168
|
}
|
|
3139
|
-
`,
|
|
3169
|
+
`, _r = t`
|
|
3140
3170
|
background: var(--aithe-color-surface-elevated);
|
|
3141
3171
|
border: 1px solid var(--aithe-color-border);
|
|
3142
3172
|
border-radius: var(--aithe-container-radius-lg);
|
|
3143
3173
|
box-shadow: var(--aithe-shadow-2);
|
|
3144
3174
|
backdrop-filter: blur(16px);
|
|
3145
|
-
`,
|
|
3175
|
+
`, vr = t`
|
|
3146
3176
|
border: 1px solid var(--aithe-color-border);
|
|
3147
3177
|
border-radius: var(--aithe-radius-md);
|
|
3148
3178
|
background: var(--aithe-color-surface-elevated);
|
|
@@ -3152,18 +3182,18 @@ var _r = t`
|
|
|
3152
3182
|
box-shadow var(--aithe-duration-fast) var(--aithe-ease-standard),
|
|
3153
3183
|
background var(--aithe-duration-fast) var(--aithe-ease-standard),
|
|
3154
3184
|
color var(--aithe-duration-fast) var(--aithe-ease-standard);
|
|
3155
|
-
`,
|
|
3185
|
+
`, yr = t`
|
|
3156
3186
|
border-color: var(--aithe-primary-5);
|
|
3157
3187
|
box-shadow: 0 0 0 4px var(--aithe-color-focus-ring);
|
|
3158
|
-
`,
|
|
3188
|
+
`, x = [gr, de], br = (e = ".panel") => t`
|
|
3159
3189
|
${a(e)} {
|
|
3160
|
-
${
|
|
3190
|
+
${_r}
|
|
3161
3191
|
}
|
|
3192
|
+
`, xr = t`
|
|
3193
|
+
${vr}
|
|
3162
3194
|
`, Sr = t`
|
|
3163
3195
|
${yr}
|
|
3164
3196
|
`, Cr = t`
|
|
3165
|
-
${br}
|
|
3166
|
-
`, wr = t`
|
|
3167
3197
|
* {
|
|
3168
3198
|
scrollbar-color: var(--aithe-neutral-5) transparent;
|
|
3169
3199
|
scrollbar-width: thin;
|
|
@@ -3180,15 +3210,15 @@ var _r = t`
|
|
|
3180
3210
|
border-radius: 999px;
|
|
3181
3211
|
background-clip: padding-box;
|
|
3182
3212
|
}
|
|
3183
|
-
`,
|
|
3213
|
+
`, S = class extends Error {
|
|
3184
3214
|
constructor(e) {
|
|
3185
3215
|
super(e.message), this.name = "DataHubError", this.code = e.code, this.trace = e.trace, this.status = e.status, this.url = e.url, this.data = e.data;
|
|
3186
3216
|
}
|
|
3187
|
-
},
|
|
3217
|
+
}, wr = {
|
|
3188
3218
|
default: {
|
|
3189
3219
|
name: "default",
|
|
3190
3220
|
onRequest(e) {
|
|
3191
|
-
e.data = { data: e.data };
|
|
3221
|
+
e.options.method !== "GET" && (e.data = { data: e.data });
|
|
3192
3222
|
},
|
|
3193
3223
|
onResponse(e) {
|
|
3194
3224
|
let t = e.data;
|
|
@@ -3254,24 +3284,24 @@ var _r = t`
|
|
|
3254
3284
|
}
|
|
3255
3285
|
}
|
|
3256
3286
|
};
|
|
3257
|
-
function
|
|
3258
|
-
return
|
|
3287
|
+
function Tr(e) {
|
|
3288
|
+
return wr[e];
|
|
3259
3289
|
}
|
|
3260
|
-
function
|
|
3261
|
-
return Object.keys(
|
|
3290
|
+
function Er() {
|
|
3291
|
+
return Object.keys(wr);
|
|
3262
3292
|
}
|
|
3263
3293
|
//#endregion
|
|
3264
3294
|
//#region src/core/datahub/core/adapter/fetch-adapter.ts
|
|
3265
|
-
var
|
|
3295
|
+
var Dr = /* @__PURE__ */ new Map(), Or = class {
|
|
3266
3296
|
constructor() {
|
|
3267
3297
|
this.name = "fetch";
|
|
3268
3298
|
}
|
|
3269
3299
|
async request(e) {
|
|
3270
3300
|
let { url: t, data: n, options: r } = e, i = r.method ?? "POST", a = r.timeout ?? 3e4, o = new AbortController();
|
|
3271
|
-
|
|
3301
|
+
Dr.set(t, o);
|
|
3272
3302
|
let s = {
|
|
3273
3303
|
method: i,
|
|
3274
|
-
signal: r.signal ?
|
|
3304
|
+
signal: r.signal ? kr(r.signal, o.signal) : o.signal,
|
|
3275
3305
|
headers: {
|
|
3276
3306
|
"Content-Type": "application/json",
|
|
3277
3307
|
...r.headers
|
|
@@ -3295,15 +3325,15 @@ var Or = /* @__PURE__ */ new Map(), kr = class {
|
|
|
3295
3325
|
headers: n
|
|
3296
3326
|
};
|
|
3297
3327
|
} finally {
|
|
3298
|
-
clearTimeout(c),
|
|
3328
|
+
clearTimeout(c), Dr.delete(t);
|
|
3299
3329
|
}
|
|
3300
3330
|
}
|
|
3301
3331
|
abort(e) {
|
|
3302
|
-
let t =
|
|
3303
|
-
t && (t.abort(),
|
|
3332
|
+
let t = Dr.get(e);
|
|
3333
|
+
t && (t.abort(), Dr.delete(e));
|
|
3304
3334
|
}
|
|
3305
3335
|
};
|
|
3306
|
-
function
|
|
3336
|
+
function kr(e, t) {
|
|
3307
3337
|
let n = new AbortController(), r = () => {
|
|
3308
3338
|
e.removeEventListener("abort", i), t.removeEventListener("abort", i);
|
|
3309
3339
|
}, i = () => {
|
|
@@ -3313,13 +3343,13 @@ function Ar(e, t) {
|
|
|
3313
3343
|
}
|
|
3314
3344
|
//#endregion
|
|
3315
3345
|
//#region src/core/datahub/core/adapter/mock-adapter.ts
|
|
3316
|
-
var
|
|
3346
|
+
var Ar = class {
|
|
3317
3347
|
constructor() {
|
|
3318
3348
|
this.name = "mock";
|
|
3319
3349
|
}
|
|
3320
3350
|
async request(e) {
|
|
3321
3351
|
let { mockData: t, mockPath: n, mockDelay: r } = e.options, i;
|
|
3322
|
-
if (t !== void 0) await
|
|
3352
|
+
if (t !== void 0) await jr(r ?? 300), i = t;
|
|
3323
3353
|
else if (n) {
|
|
3324
3354
|
let e = await fetch(n);
|
|
3325
3355
|
if (!e.ok) throw Error(`${e.status} - Fetch mock resource failed: ${n}`);
|
|
@@ -3337,31 +3367,31 @@ var jr = class {
|
|
|
3337
3367
|
};
|
|
3338
3368
|
}
|
|
3339
3369
|
};
|
|
3340
|
-
function
|
|
3370
|
+
function jr(e) {
|
|
3341
3371
|
return new Promise((t) => setTimeout(t, e));
|
|
3342
3372
|
}
|
|
3343
3373
|
//#endregion
|
|
3344
3374
|
//#region src/core/datahub/utils/is-query.ts
|
|
3345
|
-
var
|
|
3375
|
+
var Mr = [
|
|
3346
3376
|
"query",
|
|
3347
3377
|
"list",
|
|
3348
3378
|
"get"
|
|
3349
3379
|
];
|
|
3350
|
-
function
|
|
3351
|
-
|
|
3380
|
+
function Nr(e) {
|
|
3381
|
+
Mr = e;
|
|
3352
3382
|
}
|
|
3353
|
-
function
|
|
3354
|
-
return [...
|
|
3383
|
+
function Pr() {
|
|
3384
|
+
return [...Mr];
|
|
3355
3385
|
}
|
|
3356
|
-
function
|
|
3386
|
+
function Fr(e) {
|
|
3357
3387
|
let t = e;
|
|
3358
3388
|
for (; t.endsWith("/");) t = t.slice(0, -1);
|
|
3359
3389
|
let n = t.split("/").pop()?.toLowerCase() ?? "";
|
|
3360
|
-
return
|
|
3390
|
+
return Mr.some((e) => n === e || n.startsWith(e + "/"));
|
|
3361
3391
|
}
|
|
3362
3392
|
//#endregion
|
|
3363
3393
|
//#region src/core/datahub/config/strategy.ts
|
|
3364
|
-
var
|
|
3394
|
+
var Ir = {
|
|
3365
3395
|
query: {
|
|
3366
3396
|
type: "query",
|
|
3367
3397
|
cacheable: !0,
|
|
@@ -3377,96 +3407,96 @@ var Lr = {
|
|
|
3377
3407
|
retryable: !1
|
|
3378
3408
|
}
|
|
3379
3409
|
};
|
|
3380
|
-
function
|
|
3381
|
-
return { ...
|
|
3410
|
+
function Lr(e) {
|
|
3411
|
+
return { ...Ir[Fr(e) ? "query" : "submit"] };
|
|
3382
3412
|
}
|
|
3383
3413
|
//#endregion
|
|
3384
3414
|
//#region src/core/datahub/utils/common.ts
|
|
3385
|
-
function
|
|
3415
|
+
function Rr(e, t) {
|
|
3386
3416
|
return `${e}::${t === void 0 ? "null" : JSON.stringify(t)}`;
|
|
3387
3417
|
}
|
|
3388
3418
|
//#endregion
|
|
3389
3419
|
//#region src/core/datahub/utils/cache.ts
|
|
3390
|
-
var
|
|
3391
|
-
function
|
|
3392
|
-
let n =
|
|
3393
|
-
return r ? Date.now() > r.expireAt ? (
|
|
3420
|
+
var zr = /* @__PURE__ */ new Map();
|
|
3421
|
+
function Br(e, t) {
|
|
3422
|
+
let n = Rr(e, t), r = zr.get(n);
|
|
3423
|
+
return r ? Date.now() > r.expireAt ? (zr.delete(n), null) : r.data : null;
|
|
3394
3424
|
}
|
|
3395
|
-
function
|
|
3396
|
-
let i =
|
|
3397
|
-
|
|
3425
|
+
function Vr(e, t, n, r) {
|
|
3426
|
+
let i = Rr(e, t);
|
|
3427
|
+
zr.set(i, {
|
|
3398
3428
|
data: n,
|
|
3399
3429
|
expireAt: Date.now() + r
|
|
3400
3430
|
});
|
|
3401
3431
|
}
|
|
3402
|
-
function
|
|
3403
|
-
return
|
|
3432
|
+
function Hr(e, t) {
|
|
3433
|
+
return zr.delete(Rr(e, t));
|
|
3404
3434
|
}
|
|
3405
|
-
function
|
|
3406
|
-
|
|
3435
|
+
function Ur() {
|
|
3436
|
+
zr.clear();
|
|
3407
3437
|
}
|
|
3408
3438
|
//#endregion
|
|
3409
3439
|
//#region src/core/datahub/utils/dedup.ts
|
|
3410
|
-
var
|
|
3411
|
-
function
|
|
3412
|
-
let r =
|
|
3440
|
+
var Wr = /* @__PURE__ */ new Map();
|
|
3441
|
+
function Gr(e, t, n) {
|
|
3442
|
+
let r = Rr(e, t), i = Wr.get(r);
|
|
3413
3443
|
if (i) return i;
|
|
3414
|
-
let a = n().then((e) => (
|
|
3415
|
-
throw
|
|
3444
|
+
let a = n().then((e) => (Wr.delete(r), e)).catch((e) => {
|
|
3445
|
+
throw Wr.delete(r), e;
|
|
3416
3446
|
});
|
|
3417
|
-
return
|
|
3447
|
+
return Wr.set(r, a), a;
|
|
3418
3448
|
}
|
|
3419
|
-
function
|
|
3420
|
-
|
|
3449
|
+
function Kr() {
|
|
3450
|
+
Wr.clear();
|
|
3421
3451
|
}
|
|
3422
3452
|
//#endregion
|
|
3423
3453
|
//#region src/core/datahub/utils/loading.ts
|
|
3424
|
-
var
|
|
3454
|
+
var qr = /* @__PURE__ */ new Set(), Jr = /* @__PURE__ */ new Map();
|
|
3455
|
+
function Yr(e) {
|
|
3456
|
+
let t = Jr.get(e) ?? 0;
|
|
3457
|
+
if (Jr.set(e, t + 1), t === 0) for (let t of qr) t(e, !0);
|
|
3458
|
+
}
|
|
3425
3459
|
function Xr(e) {
|
|
3426
|
-
let t =
|
|
3427
|
-
if (
|
|
3460
|
+
let t = Jr.get(e) ?? 0;
|
|
3461
|
+
if (t <= 1) {
|
|
3462
|
+
if (Jr.delete(e), t === 1) for (let t of qr) t(e, !1);
|
|
3463
|
+
} else Jr.set(e, t - 1);
|
|
3428
3464
|
}
|
|
3429
3465
|
function Zr(e) {
|
|
3430
|
-
|
|
3431
|
-
if (t <= 1) {
|
|
3432
|
-
if (Yr.delete(e), t === 1) for (let t of Jr) t(e, !1);
|
|
3433
|
-
} else Yr.set(e, t - 1);
|
|
3466
|
+
return (Jr.get(e) ?? 0) > 0;
|
|
3434
3467
|
}
|
|
3435
3468
|
function Qr(e) {
|
|
3436
|
-
return
|
|
3437
|
-
|
|
3438
|
-
function $r(e) {
|
|
3439
|
-
return Jr.add(e), () => {
|
|
3440
|
-
Jr.delete(e);
|
|
3469
|
+
return qr.add(e), () => {
|
|
3470
|
+
qr.delete(e);
|
|
3441
3471
|
};
|
|
3442
3472
|
}
|
|
3443
3473
|
//#endregion
|
|
3444
3474
|
//#region src/core/datahub/utils/idempotent.ts
|
|
3445
|
-
var
|
|
3446
|
-
function
|
|
3447
|
-
let r =
|
|
3448
|
-
if (
|
|
3475
|
+
var $r = /* @__PURE__ */ new Map();
|
|
3476
|
+
function ei(e, t, n) {
|
|
3477
|
+
let r = Rr(e, t);
|
|
3478
|
+
if ($r.get(r)) return Promise.reject(new S({
|
|
3449
3479
|
code: "DuplicateSubmit",
|
|
3450
3480
|
message: `[DataHub] Idempotent guard: duplicate submit blocked for ${e}`,
|
|
3451
3481
|
url: e
|
|
3452
3482
|
}));
|
|
3453
|
-
let i = n().then((e) => (
|
|
3454
|
-
throw
|
|
3483
|
+
let i = n().then((e) => ($r.delete(r), e)).catch((e) => {
|
|
3484
|
+
throw $r.delete(r), e;
|
|
3455
3485
|
});
|
|
3456
|
-
return
|
|
3486
|
+
return $r.set(r, i), i;
|
|
3457
3487
|
}
|
|
3458
|
-
function
|
|
3459
|
-
|
|
3488
|
+
function ti() {
|
|
3489
|
+
$r.clear();
|
|
3460
3490
|
}
|
|
3461
3491
|
//#endregion
|
|
3462
3492
|
//#region src/core/datahub/core/datahub-core.ts
|
|
3463
|
-
var
|
|
3493
|
+
var ni = {
|
|
3464
3494
|
defaultTimeout: 3e4,
|
|
3465
3495
|
defaultCacheTTL: 6e4,
|
|
3466
3496
|
defaultAdapter: "fetch"
|
|
3467
|
-
},
|
|
3497
|
+
}, ri = class {
|
|
3468
3498
|
constructor(e = {}) {
|
|
3469
|
-
this.adapters = /* @__PURE__ */ new Map(), this.onLoadingChange =
|
|
3499
|
+
this.adapters = /* @__PURE__ */ new Map(), this.onLoadingChange = Qr, this.isLoading = Zr, this.config = e, this.registerAdapter(new Or()), this.registerAdapter(new Ar());
|
|
3470
3500
|
}
|
|
3471
3501
|
registerAdapter(e) {
|
|
3472
3502
|
this.adapters.set(e.name, e);
|
|
@@ -3476,10 +3506,10 @@ var ri = {
|
|
|
3476
3506
|
}
|
|
3477
3507
|
setAPIStyle(e) {
|
|
3478
3508
|
if (typeof e == "string") {
|
|
3479
|
-
let t =
|
|
3480
|
-
if (!t) throw new
|
|
3509
|
+
let t = Tr(e);
|
|
3510
|
+
if (!t) throw new S({
|
|
3481
3511
|
code: "APIStyleNotFound",
|
|
3482
|
-
message: `Built-in APIStyle "${e}" is not found. Available: ${
|
|
3512
|
+
message: `Built-in APIStyle "${e}" is not found. Available: ${Er().join(", ")}`
|
|
3483
3513
|
});
|
|
3484
3514
|
this.apiStyle = t;
|
|
3485
3515
|
} else this.apiStyle = e;
|
|
@@ -3488,10 +3518,10 @@ var ri = {
|
|
|
3488
3518
|
return this.apiStyle;
|
|
3489
3519
|
}
|
|
3490
3520
|
resolveRequestStyle(e) {
|
|
3491
|
-
return e.apiStyle ? typeof e.apiStyle == "string" ?
|
|
3521
|
+
return e.apiStyle ? typeof e.apiStyle == "string" ? Tr(e.apiStyle) : e.apiStyle : this.apiStyle;
|
|
3492
3522
|
}
|
|
3493
3523
|
async request(e, t, n) {
|
|
3494
|
-
let r = this.mergeOptions(n), i = this.resolveUrl(e), a =
|
|
3524
|
+
let r = this.mergeOptions(n), i = this.resolveUrl(e), a = Lr(i), o = r.traceId ?? this.generateTraceId();
|
|
3495
3525
|
r.traceId = o;
|
|
3496
3526
|
let s = this.config.traceHeaderKey ?? "X-B3-TraceId", c = this.config.localeHeaderKey ?? "X-Locale";
|
|
3497
3527
|
r.headers = {
|
|
@@ -3508,72 +3538,79 @@ var ri = {
|
|
|
3508
3538
|
let e = this.config.onRequest(l);
|
|
3509
3539
|
e && Object.assign(l, e);
|
|
3510
3540
|
}
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3541
|
+
let d = this.isCacheable(a, r);
|
|
3542
|
+
if (d && !r.skipCache) {
|
|
3543
|
+
let e = Br(i, t);
|
|
3544
|
+
if (e) return this.applyResponseInterceptor(e, l), this.handleResponse(e, u, o, i);
|
|
3514
3545
|
}
|
|
3515
|
-
let
|
|
3546
|
+
let f = () => this.executeRequest(l, r, u, o, i, t, d);
|
|
3547
|
+
return this.isDedupable(a, r) && !r.skipDedup ? Gr(i, t, f) : this.shouldGuardIdempotent(a, r) ? ei(i, t, f) : f();
|
|
3548
|
+
}
|
|
3549
|
+
applyResponseInterceptor(e, t) {
|
|
3550
|
+
if (!this.config.onResponse) return;
|
|
3551
|
+
let n = this.config.onResponse(e, t);
|
|
3552
|
+
n && Object.assign(e, n);
|
|
3553
|
+
}
|
|
3554
|
+
async executeRequest(e, t, n, r, i, a, o) {
|
|
3555
|
+
Yr(i);
|
|
3556
|
+
try {
|
|
3557
|
+
let s = await this.resolveAdapter(t).request(e);
|
|
3558
|
+
if (this.applyResponseInterceptor(s, e), !s.ok) throw this.buildHttpError(s, n, r, i);
|
|
3559
|
+
let c = this.handleResponse(s, n, r, i);
|
|
3560
|
+
return o && !t.skipCache && Vr(i, a, s, t.cacheTTL ?? ni.defaultCacheTTL), c;
|
|
3561
|
+
} catch (t) {
|
|
3562
|
+
let n = this.normalizeError(t, i, r);
|
|
3563
|
+
throw this.config.onError && this.config.onError(n, e), n;
|
|
3564
|
+
} finally {
|
|
3516
3565
|
Xr(i);
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
if (a.cacheable && !r.skipCache) {
|
|
3556
|
-
let n = r.cacheTTL ?? ri.defaultCacheTTL;
|
|
3557
|
-
Hr(i, t, e, n);
|
|
3558
|
-
}
|
|
3559
|
-
return e;
|
|
3560
|
-
} catch (e) {
|
|
3561
|
-
let t = this.normalizeError(e, i, o);
|
|
3562
|
-
throw this.config.onError && this.config.onError(t, l), t;
|
|
3563
|
-
} finally {
|
|
3564
|
-
Zr(i);
|
|
3565
|
-
}
|
|
3566
|
+
}
|
|
3567
|
+
}
|
|
3568
|
+
buildHttpError(e, t, n, r) {
|
|
3569
|
+
if (t) {
|
|
3570
|
+
let i = t.onResponse(e);
|
|
3571
|
+
return new S({
|
|
3572
|
+
code: i.code ?? `HTTP_${e.status}`,
|
|
3573
|
+
message: i.message || `HTTP request failed with status ${e.status}`,
|
|
3574
|
+
trace: n,
|
|
3575
|
+
status: e.status,
|
|
3576
|
+
url: r,
|
|
3577
|
+
data: e.data
|
|
3578
|
+
});
|
|
3579
|
+
}
|
|
3580
|
+
return this.createTransportError(e, n, r);
|
|
3581
|
+
}
|
|
3582
|
+
isCacheable(e, t) {
|
|
3583
|
+
return e.cacheable || t.forceCache === !0;
|
|
3584
|
+
}
|
|
3585
|
+
isDedupable(e, t) {
|
|
3586
|
+
return e.dedupable || t.forceDedup === !0;
|
|
3587
|
+
}
|
|
3588
|
+
shouldGuardIdempotent(e, t) {
|
|
3589
|
+
return !e.idempotent || t.skipIdempotent ? !1 : t.forceDedup !== !0 && t.forceCache !== !0;
|
|
3590
|
+
}
|
|
3591
|
+
handleResponse(e, t, n, r) {
|
|
3592
|
+
if (!t) return e;
|
|
3593
|
+
let i = t.onResponse(e);
|
|
3594
|
+
if (!t.isSuccess(i)) throw new S({
|
|
3595
|
+
code: i.code,
|
|
3596
|
+
message: i.message || `error: ${i.code}`,
|
|
3597
|
+
trace: n,
|
|
3598
|
+
status: e.status,
|
|
3599
|
+
url: r
|
|
3600
|
+
});
|
|
3601
|
+
return {
|
|
3602
|
+
...e,
|
|
3603
|
+
data: i.data
|
|
3566
3604
|
};
|
|
3567
|
-
return a.dedupable && !r.skipDedup ? Kr(i, t, d) : a.idempotent && !r.skipIdempotent ? ti(i, t, d) : d();
|
|
3568
3605
|
}
|
|
3569
3606
|
clearCache() {
|
|
3570
|
-
|
|
3607
|
+
Ur();
|
|
3571
3608
|
}
|
|
3572
3609
|
clearDedup() {
|
|
3573
|
-
|
|
3610
|
+
Kr();
|
|
3574
3611
|
}
|
|
3575
3612
|
clearIdempotent() {
|
|
3576
|
-
|
|
3613
|
+
ti();
|
|
3577
3614
|
}
|
|
3578
3615
|
setRequestInterceptor(e) {
|
|
3579
3616
|
this.config.onRequest = e;
|
|
@@ -3594,9 +3631,9 @@ var ri = {
|
|
|
3594
3631
|
return { ...this.config };
|
|
3595
3632
|
}
|
|
3596
3633
|
resolveAdapter(e) {
|
|
3597
|
-
if (this.config.forceMock || e.mock) return this.adapters.get("mock") ?? this.adapters.get(
|
|
3598
|
-
let t = e.adapter ?? this.config.defaultAdapter ??
|
|
3599
|
-
if (!n) throw new
|
|
3634
|
+
if (this.config.forceMock || e.mock) return this.adapters.get("mock") ?? this.adapters.get(ni.defaultAdapter);
|
|
3635
|
+
let t = e.adapter ?? this.config.defaultAdapter ?? ni.defaultAdapter, n = this.adapters.get(t);
|
|
3636
|
+
if (!n) throw new S({
|
|
3600
3637
|
code: "AdapterNotFound",
|
|
3601
3638
|
message: `Adapter "${t}" is not registered`
|
|
3602
3639
|
});
|
|
@@ -3614,8 +3651,8 @@ var ri = {
|
|
|
3614
3651
|
}
|
|
3615
3652
|
mergeOptions(e) {
|
|
3616
3653
|
return {
|
|
3617
|
-
timeout:
|
|
3618
|
-
cacheTTL:
|
|
3654
|
+
timeout: ni.defaultTimeout,
|
|
3655
|
+
cacheTTL: ni.defaultCacheTTL,
|
|
3619
3656
|
...e
|
|
3620
3657
|
};
|
|
3621
3658
|
}
|
|
@@ -3626,7 +3663,7 @@ var ri = {
|
|
|
3626
3663
|
return typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues(t), e + Array.from(t, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
3627
3664
|
}
|
|
3628
3665
|
createTransportError(e, t, n) {
|
|
3629
|
-
return new
|
|
3666
|
+
return new S({
|
|
3630
3667
|
code: `HTTP_${e.status}`,
|
|
3631
3668
|
message: `HTTP request failed with status ${e.status}`,
|
|
3632
3669
|
trace: t,
|
|
@@ -3636,30 +3673,30 @@ var ri = {
|
|
|
3636
3673
|
});
|
|
3637
3674
|
}
|
|
3638
3675
|
normalizeError(e, t, n) {
|
|
3639
|
-
return e instanceof
|
|
3676
|
+
return e instanceof S ? e : e instanceof DOMException && e.name === "AbortError" ? new S({
|
|
3640
3677
|
code: "RequestAborted",
|
|
3641
3678
|
message: "Request was aborted",
|
|
3642
3679
|
trace: n,
|
|
3643
3680
|
url: t
|
|
3644
|
-
}) : e instanceof TypeError ? new
|
|
3681
|
+
}) : e instanceof TypeError ? new S({
|
|
3645
3682
|
code: "NetworkError",
|
|
3646
3683
|
message: e.message ?? "Network error",
|
|
3647
3684
|
trace: n,
|
|
3648
3685
|
url: t
|
|
3649
|
-
}) : new
|
|
3686
|
+
}) : new S({
|
|
3650
3687
|
code: "UnknownError",
|
|
3651
3688
|
message: e instanceof Error ? e.message : String(e),
|
|
3652
3689
|
trace: n,
|
|
3653
3690
|
url: t
|
|
3654
3691
|
});
|
|
3655
3692
|
}
|
|
3656
|
-
},
|
|
3693
|
+
}, ii = new ri(), ai = class {
|
|
3657
3694
|
apply(e) {
|
|
3658
3695
|
if (e == null) return "--";
|
|
3659
3696
|
let t = typeof e == "string" ? Number.parseFloat(e) : e;
|
|
3660
3697
|
return Number.isNaN(t) ? "--" : t.toFixed(2);
|
|
3661
3698
|
}
|
|
3662
|
-
},
|
|
3699
|
+
}, oi = class {
|
|
3663
3700
|
apply(e, t = "yyyy-MM-dd HH:mm:ss") {
|
|
3664
3701
|
if (e == null || e === "") return "--";
|
|
3665
3702
|
let n;
|
|
@@ -3682,11 +3719,11 @@ var ri = {
|
|
|
3682
3719
|
for (let [e, t] of Object.entries(r)) i = i.replace(e, t);
|
|
3683
3720
|
return i;
|
|
3684
3721
|
}
|
|
3685
|
-
},
|
|
3722
|
+
}, si = class {
|
|
3686
3723
|
apply(e, t = "--") {
|
|
3687
|
-
return e == null || e === "" || typeof e == "number" && Number.isNaN(e) ? t :
|
|
3724
|
+
return e == null || e === "" || typeof e == "number" && Number.isNaN(e) ? t : b(e);
|
|
3688
3725
|
}
|
|
3689
|
-
},
|
|
3726
|
+
}, ci = class {
|
|
3690
3727
|
constructor() {
|
|
3691
3728
|
this.iecUnits = [
|
|
3692
3729
|
"B",
|
|
@@ -3711,7 +3748,7 @@ var ri = {
|
|
|
3711
3748
|
let o = Math.min(Math.floor(Math.log(n) / Math.log(i)), a.length - 1);
|
|
3712
3749
|
return `${(n / i ** +o).toFixed(2)} ${a[o]}`;
|
|
3713
3750
|
}
|
|
3714
|
-
},
|
|
3751
|
+
}, li = class {
|
|
3715
3752
|
apply(e) {
|
|
3716
3753
|
let t = this.parseDate(e);
|
|
3717
3754
|
if (!t) return "--";
|
|
@@ -3750,12 +3787,12 @@ var ri = {
|
|
|
3750
3787
|
}
|
|
3751
3788
|
return `${n.getFullYear()}-${String(n.getMonth() + 1).padStart(2, "0")}-${String(n.getDate()).padStart(2, "0")}`;
|
|
3752
3789
|
}
|
|
3753
|
-
},
|
|
3790
|
+
}, ui = class {
|
|
3754
3791
|
constructor() {
|
|
3755
3792
|
this.registry = /* @__PURE__ */ new Map(), this.registerDefaults();
|
|
3756
3793
|
}
|
|
3757
3794
|
registerDefaults() {
|
|
3758
|
-
this.register("amount",
|
|
3795
|
+
this.register("amount", ai), this.register("date", oi), this.register("empty", si), this.register("bytes", ci), this.register("timeAgo", li);
|
|
3759
3796
|
}
|
|
3760
3797
|
register(e, t) {
|
|
3761
3798
|
this.registry.set(e, new t());
|
|
@@ -3790,12 +3827,12 @@ var ri = {
|
|
|
3790
3827
|
}
|
|
3791
3828
|
return r;
|
|
3792
3829
|
}
|
|
3793
|
-
},
|
|
3830
|
+
}, di = new ui(), fi = class extends g {
|
|
3794
3831
|
constructor(...e) {
|
|
3795
3832
|
super(...e), this.name = "sparkles", this.color = "", this.size = "md";
|
|
3796
3833
|
}
|
|
3797
3834
|
static {
|
|
3798
|
-
this.styles = [
|
|
3835
|
+
this.styles = [x, t`
|
|
3799
3836
|
:host {
|
|
3800
3837
|
display: inline-flex;
|
|
3801
3838
|
align-items: center;
|
|
@@ -3808,10 +3845,10 @@ var ri = {
|
|
|
3808
3845
|
return Tt.render(this.name, e, "", t);
|
|
3809
3846
|
}
|
|
3810
3847
|
};
|
|
3811
|
-
h([s({ type: String })],
|
|
3848
|
+
h([s({ type: String })], fi.prototype, "name", void 0), h([s({ type: String })], fi.prototype, "color", void 0), h([s({ type: String })], fi.prototype, "size", void 0), fi = h([o("aithe-icon")], fi);
|
|
3812
3849
|
//#endregion
|
|
3813
3850
|
//#region src/components/basic/button.ts
|
|
3814
|
-
var
|
|
3851
|
+
var C = class extends g {
|
|
3815
3852
|
constructor(...e) {
|
|
3816
3853
|
super(...e), this.type = "default", this.size = "medium", this.title = "", this.icon = "", this.disabled = !1, this.loading = !1, this.block = !1, this.href = "", this.target = "", this.handleClick = (e) => {
|
|
3817
3854
|
if (this.disabled || this.loading) {
|
|
@@ -3822,7 +3859,7 @@ var S = class extends g {
|
|
|
3822
3859
|
};
|
|
3823
3860
|
}
|
|
3824
3861
|
static {
|
|
3825
|
-
this.styles = [
|
|
3862
|
+
this.styles = [x, t`
|
|
3826
3863
|
:host {
|
|
3827
3864
|
display: inline-flex;
|
|
3828
3865
|
flex: 0 0 auto;
|
|
@@ -4011,24 +4048,24 @@ var S = class extends g {
|
|
|
4011
4048
|
`;
|
|
4012
4049
|
}
|
|
4013
4050
|
};
|
|
4014
|
-
h([s({ type: String })],
|
|
4051
|
+
h([s({ type: String })], C.prototype, "type", void 0), h([s({ type: String })], C.prototype, "size", void 0), h([s({ type: String })], C.prototype, "title", void 0), h([s({ type: String })], C.prototype, "icon", void 0), h([s({
|
|
4015
4052
|
type: Boolean,
|
|
4016
4053
|
reflect: !0
|
|
4017
|
-
})],
|
|
4054
|
+
})], C.prototype, "disabled", void 0), h([s({
|
|
4018
4055
|
type: Boolean,
|
|
4019
4056
|
reflect: !0
|
|
4020
|
-
})],
|
|
4057
|
+
})], C.prototype, "loading", void 0), h([s({
|
|
4021
4058
|
type: Boolean,
|
|
4022
4059
|
reflect: !0
|
|
4023
|
-
})],
|
|
4060
|
+
})], C.prototype, "block", void 0), h([s({ type: String })], C.prototype, "href", void 0), h([s({ type: String })], C.prototype, "target", void 0), C = h([o("aithe-button")], C);
|
|
4024
4061
|
//#endregion
|
|
4025
4062
|
//#region src/components/basic/button-group.ts
|
|
4026
|
-
var
|
|
4063
|
+
var pi = class extends g {
|
|
4027
4064
|
constructor(...e) {
|
|
4028
4065
|
super(...e), this.gap = "var(--aithe-space-2)", this.vertical = !1;
|
|
4029
4066
|
}
|
|
4030
4067
|
static {
|
|
4031
|
-
this.styles = [
|
|
4068
|
+
this.styles = [x, t`
|
|
4032
4069
|
:host {
|
|
4033
4070
|
display: inline-flex;
|
|
4034
4071
|
max-width: 100%;
|
|
@@ -4053,27 +4090,27 @@ var mi = class extends g {
|
|
|
4053
4090
|
`;
|
|
4054
4091
|
}
|
|
4055
4092
|
};
|
|
4056
|
-
h([s({ type: String })],
|
|
4093
|
+
h([s({ type: String })], pi.prototype, "gap", void 0), h([s({ type: Boolean })], pi.prototype, "vertical", void 0), pi = h([o("aithe-button-group")], pi);
|
|
4057
4094
|
//#endregion
|
|
4058
4095
|
//#region src/components/basic/input.ts
|
|
4059
|
-
var
|
|
4096
|
+
var mi = "aithe-input", w = class extends g {
|
|
4060
4097
|
constructor(...e) {
|
|
4061
4098
|
super(...e), this.type = "text", this.size = "md", this.status = "normal", this.value = "", this.placeholder = "", this.disabled = !1, this.readonly = !1, this.clearable = !1, this.name = "", this.autocomplete = "off", this.label = "", this.hasPrefix = !1, this.hasSuffix = !1, this.syncSlots = () => {
|
|
4062
4099
|
this.hasPrefix = this.prefixNodes.length > 0, this.hasSuffix = this.suffixNodes.length > 0;
|
|
4063
4100
|
}, this.handleInput = (e) => {
|
|
4064
4101
|
e.stopPropagation();
|
|
4065
4102
|
let t = e.currentTarget;
|
|
4066
|
-
this.value = t.value, this.emit(
|
|
4103
|
+
this.value = t.value, this.emit(mi, { value: this.value });
|
|
4067
4104
|
}, this.handleChange = (e) => {
|
|
4068
4105
|
e.stopPropagation();
|
|
4069
4106
|
let t = e.currentTarget;
|
|
4070
4107
|
this.value = t.value, this.emit("aithe-change", { value: this.value });
|
|
4071
4108
|
}, this.clearValue = () => {
|
|
4072
|
-
this.disabled || this.readonly || (this.value = "", this.inputElement?.focus(), this.emit("aithe-clear"), this.emit(
|
|
4109
|
+
this.disabled || this.readonly || (this.value = "", this.inputElement?.focus(), this.emit("aithe-clear"), this.emit(mi, { value: this.value }), this.emit("aithe-change", { value: this.value }));
|
|
4073
4110
|
};
|
|
4074
4111
|
}
|
|
4075
4112
|
static {
|
|
4076
|
-
this.styles = [
|
|
4113
|
+
this.styles = [x, t`
|
|
4077
4114
|
:host {
|
|
4078
4115
|
display: inline-flex;
|
|
4079
4116
|
width: 100%;
|
|
@@ -4239,13 +4276,13 @@ var hi = "aithe-input", C = class extends g {
|
|
|
4239
4276
|
`;
|
|
4240
4277
|
}
|
|
4241
4278
|
};
|
|
4242
|
-
h([s({ type: String })],
|
|
4279
|
+
h([s({ type: String })], w.prototype, "type", void 0), h([s({ type: String })], w.prototype, "size", void 0), h([s({ type: String })], w.prototype, "status", void 0), h([s({ type: String })], w.prototype, "value", void 0), h([s({ type: String })], w.prototype, "placeholder", void 0), h([s({
|
|
4243
4280
|
type: Boolean,
|
|
4244
4281
|
reflect: !0
|
|
4245
|
-
})],
|
|
4282
|
+
})], w.prototype, "disabled", void 0), h([s({ type: Boolean })], w.prototype, "readonly", void 0), h([s({ type: Boolean })], w.prototype, "clearable", void 0), h([s({ type: String })], w.prototype, "name", void 0), h([s({ type: String })], w.prototype, "autocomplete", void 0), h([s({ type: String })], w.prototype, "label", void 0), h([c("input")], w.prototype, "inputElement", void 0), h([u({ slot: "prefix" })], w.prototype, "prefixNodes", void 0), h([u({ slot: "suffix" })], w.prototype, "suffixNodes", void 0), h([d()], w.prototype, "hasPrefix", void 0), h([d()], w.prototype, "hasSuffix", void 0), w = h([o("aithe-input")], w);
|
|
4246
4283
|
//#endregion
|
|
4247
4284
|
//#region src/components/basic/textarea.ts
|
|
4248
|
-
var
|
|
4285
|
+
var hi = class extends g {
|
|
4249
4286
|
constructor(...e) {
|
|
4250
4287
|
super(...e), this.rows = 4, this.placeholder = "", this.resize = "vertical", this.value = "", this.maxlength = -1, this.disabled = !1, this.handleInput = (e) => {
|
|
4251
4288
|
e.stopPropagation(), this.value = e.currentTarget.value, this.emit("aithe-input", { value: this.value });
|
|
@@ -4254,7 +4291,7 @@ var gi = class extends g {
|
|
|
4254
4291
|
};
|
|
4255
4292
|
}
|
|
4256
4293
|
static {
|
|
4257
|
-
this.styles = [
|
|
4294
|
+
this.styles = [x, t`
|
|
4258
4295
|
:host {
|
|
4259
4296
|
display: inline-flex;
|
|
4260
4297
|
width: 100%;
|
|
@@ -4263,13 +4300,13 @@ var gi = class extends g {
|
|
|
4263
4300
|
.field {
|
|
4264
4301
|
display: flex;
|
|
4265
4302
|
flex-direction: column;
|
|
4266
|
-
${
|
|
4303
|
+
${xr}
|
|
4267
4304
|
width: 100%;
|
|
4268
4305
|
padding: var(--aithe-space-3) var(--aithe-space-3);
|
|
4269
4306
|
}
|
|
4270
4307
|
|
|
4271
4308
|
.field:focus-within {
|
|
4272
|
-
${
|
|
4309
|
+
${Sr}
|
|
4273
4310
|
}
|
|
4274
4311
|
|
|
4275
4312
|
.field.disabled {
|
|
@@ -4312,20 +4349,20 @@ var gi = class extends g {
|
|
|
4312
4349
|
`;
|
|
4313
4350
|
}
|
|
4314
4351
|
};
|
|
4315
|
-
h([s({ type: Number })],
|
|
4352
|
+
h([s({ type: Number })], hi.prototype, "rows", void 0), h([s({ type: String })], hi.prototype, "placeholder", void 0), h([s({ type: String })], hi.prototype, "resize", void 0), h([s({ type: String })], hi.prototype, "value", void 0), h([s({ type: Number })], hi.prototype, "maxlength", void 0), h([s({
|
|
4316
4353
|
type: Boolean,
|
|
4317
4354
|
reflect: !0
|
|
4318
|
-
})],
|
|
4355
|
+
})], hi.prototype, "disabled", void 0), hi = h([o("aithe-textarea")], hi);
|
|
4319
4356
|
//#endregion
|
|
4320
4357
|
//#region src/components/basic/card.ts
|
|
4321
|
-
var
|
|
4358
|
+
var T = class extends g {
|
|
4322
4359
|
constructor(...e) {
|
|
4323
4360
|
super(...e), this.title = "", this.icon = "", this.shadow = 2, this.bodyPadding = "var(--aithe-space-lg)", this.bordered = !0, this.divider = "border", this.hasHeaderSlot = !1, this.hasFooterSlot = !1, this.syncSlots = () => {
|
|
4324
4361
|
this.hasHeaderSlot = this.headerSlotNodes.length > 0, this.hasFooterSlot = this.footerSlotNodes.length > 0;
|
|
4325
4362
|
};
|
|
4326
4363
|
}
|
|
4327
4364
|
static {
|
|
4328
|
-
this.styles = [
|
|
4365
|
+
this.styles = [x, t`
|
|
4329
4366
|
:host {
|
|
4330
4367
|
display: block;
|
|
4331
4368
|
min-width: 0;
|
|
@@ -4417,20 +4454,20 @@ var w = class extends g {
|
|
|
4417
4454
|
`;
|
|
4418
4455
|
}
|
|
4419
4456
|
};
|
|
4420
|
-
h([s({ type: String })],
|
|
4457
|
+
h([s({ type: String })], T.prototype, "title", void 0), h([s({ type: String })], T.prototype, "icon", void 0), h([s({ type: Number })], T.prototype, "shadow", void 0), h([s({
|
|
4421
4458
|
type: String,
|
|
4422
4459
|
attribute: "body-padding"
|
|
4423
|
-
})],
|
|
4460
|
+
})], T.prototype, "bodyPadding", void 0), h([s({ type: Boolean })], T.prototype, "bordered", void 0), h([s({ type: String })], T.prototype, "divider", void 0), h([u({ slot: "header" })], T.prototype, "headerSlotNodes", void 0), h([u({ slot: "footer" })], T.prototype, "footerSlotNodes", void 0), h([d()], T.prototype, "hasHeaderSlot", void 0), h([d()], T.prototype, "hasFooterSlot", void 0), T = h([o("aithe-card")], T);
|
|
4424
4461
|
//#endregion
|
|
4425
4462
|
//#region src/components/basic/badge.ts
|
|
4426
|
-
var
|
|
4463
|
+
var gi = class extends g {
|
|
4427
4464
|
constructor(...e) {
|
|
4428
4465
|
super(...e), this.value = "", this.maxCount = 99, this.dot = !1, this.position = "top-right", this.hasBadgeSlot = !1, this.syncSlot = () => {
|
|
4429
4466
|
this.hasBadgeSlot = this.badgeSlotNodes.length > 0;
|
|
4430
4467
|
};
|
|
4431
4468
|
}
|
|
4432
4469
|
static {
|
|
4433
|
-
this.styles = [
|
|
4470
|
+
this.styles = [x, t`
|
|
4434
4471
|
:host {
|
|
4435
4472
|
position: relative;
|
|
4436
4473
|
display: inline-flex;
|
|
@@ -4514,13 +4551,13 @@ var _i = class extends g {
|
|
|
4514
4551
|
`;
|
|
4515
4552
|
}
|
|
4516
4553
|
};
|
|
4517
|
-
h([s({ type: String })],
|
|
4554
|
+
h([s({ type: String })], gi.prototype, "value", void 0), h([s({
|
|
4518
4555
|
type: Number,
|
|
4519
4556
|
attribute: "max-count"
|
|
4520
|
-
})],
|
|
4557
|
+
})], gi.prototype, "maxCount", void 0), h([s({ type: Boolean })], gi.prototype, "dot", void 0), h([s({ type: String })], gi.prototype, "position", void 0), h([u({ slot: "badge" })], gi.prototype, "badgeSlotNodes", void 0), h([d()], gi.prototype, "hasBadgeSlot", void 0), gi = h([o("aithe-badge")], gi);
|
|
4521
4558
|
//#endregion
|
|
4522
4559
|
//#region src/components/basic/tag.ts
|
|
4523
|
-
var
|
|
4560
|
+
var _i = class extends g {
|
|
4524
4561
|
constructor(...e) {
|
|
4525
4562
|
super(...e), this.type = "success", this.closable = !1, this.selectable = !1, this.selected = !1, this.rounded = "full", this.disabled = !1, this.size = "sm", this.toggleTag = () => {
|
|
4526
4563
|
!this.selectable || this.disabled || (this.selected = !this.selected, this.emit("aithe-change", { selected: this.selected }));
|
|
@@ -4529,7 +4566,7 @@ var vi = class extends g {
|
|
|
4529
4566
|
};
|
|
4530
4567
|
}
|
|
4531
4568
|
static {
|
|
4532
|
-
this.styles = [
|
|
4569
|
+
this.styles = [x, t`
|
|
4533
4570
|
:host {
|
|
4534
4571
|
display: inline-flex;
|
|
4535
4572
|
}
|
|
@@ -4683,21 +4720,21 @@ var vi = class extends g {
|
|
|
4683
4720
|
`;
|
|
4684
4721
|
}
|
|
4685
4722
|
};
|
|
4686
|
-
h([s({ type: String })],
|
|
4723
|
+
h([s({ type: String })], _i.prototype, "type", void 0), h([s({ type: Boolean })], _i.prototype, "closable", void 0), h([s({ type: Boolean })], _i.prototype, "selectable", void 0), h([s({
|
|
4687
4724
|
type: Boolean,
|
|
4688
4725
|
reflect: !0
|
|
4689
|
-
})],
|
|
4726
|
+
})], _i.prototype, "selected", void 0), h([s({ type: String })], _i.prototype, "rounded", void 0), h([s({
|
|
4690
4727
|
type: Boolean,
|
|
4691
4728
|
reflect: !0
|
|
4692
|
-
})],
|
|
4729
|
+
})], _i.prototype, "disabled", void 0), h([s({ type: String })], _i.prototype, "size", void 0), _i = h([o("aithe-tag")], _i);
|
|
4693
4730
|
//#endregion
|
|
4694
4731
|
//#region src/components/basic/avatar.ts
|
|
4695
|
-
var
|
|
4732
|
+
var vi = class extends g {
|
|
4696
4733
|
constructor(...e) {
|
|
4697
4734
|
super(...e), this.src = "", this.alt = "", this.text = "", this.shape = "circle", this.size = "md", this.imageBroken = !1;
|
|
4698
4735
|
}
|
|
4699
4736
|
static {
|
|
4700
|
-
this.styles = [
|
|
4737
|
+
this.styles = [x, t`
|
|
4701
4738
|
:host {
|
|
4702
4739
|
display: inline-flex;
|
|
4703
4740
|
}
|
|
@@ -4768,15 +4805,15 @@ var yi = class extends g {
|
|
|
4768
4805
|
`;
|
|
4769
4806
|
}
|
|
4770
4807
|
};
|
|
4771
|
-
h([s({ type: String })],
|
|
4808
|
+
h([s({ type: String })], vi.prototype, "src", void 0), h([s({ type: String })], vi.prototype, "alt", void 0), h([s({ type: String })], vi.prototype, "text", void 0), h([s({ type: String })], vi.prototype, "shape", void 0), h([s({ type: String })], vi.prototype, "size", void 0), h([d()], vi.prototype, "imageBroken", void 0), vi = h([o("aithe-avatar")], vi);
|
|
4772
4809
|
//#endregion
|
|
4773
4810
|
//#region src/components/basic/divider.ts
|
|
4774
|
-
var
|
|
4811
|
+
var yi = class extends g {
|
|
4775
4812
|
constructor(...e) {
|
|
4776
4813
|
super(...e), this.vertical = !1, this.dashed = !1, this.label = "";
|
|
4777
4814
|
}
|
|
4778
4815
|
static {
|
|
4779
|
-
this.styles = [
|
|
4816
|
+
this.styles = [x, t`
|
|
4780
4817
|
:host {
|
|
4781
4818
|
display: block;
|
|
4782
4819
|
width: 100%;
|
|
@@ -4851,15 +4888,15 @@ var bi = class extends g {
|
|
|
4851
4888
|
h([s({
|
|
4852
4889
|
type: Boolean,
|
|
4853
4890
|
reflect: !0
|
|
4854
|
-
})],
|
|
4891
|
+
})], yi.prototype, "vertical", void 0), h([s({ type: Boolean })], yi.prototype, "dashed", void 0), h([s({ type: String })], yi.prototype, "label", void 0), yi = h([o("aithe-divider")], yi);
|
|
4855
4892
|
//#endregion
|
|
4856
4893
|
//#region src/components/basic/empty.ts
|
|
4857
|
-
var
|
|
4894
|
+
var bi = class extends g {
|
|
4858
4895
|
constructor(...e) {
|
|
4859
4896
|
super(...e), this.text = "", this.icon = "sparkles";
|
|
4860
4897
|
}
|
|
4861
4898
|
static {
|
|
4862
|
-
this.styles = [
|
|
4899
|
+
this.styles = [x, t`
|
|
4863
4900
|
:host {
|
|
4864
4901
|
display: block;
|
|
4865
4902
|
}
|
|
@@ -4889,10 +4926,10 @@ var xi = class extends g {
|
|
|
4889
4926
|
`;
|
|
4890
4927
|
}
|
|
4891
4928
|
};
|
|
4892
|
-
h([s({ type: String })],
|
|
4929
|
+
h([s({ type: String })], bi.prototype, "text", void 0), h([s({ type: String })], bi.prototype, "icon", void 0), bi = h([o("aithe-empty")], bi);
|
|
4893
4930
|
//#endregion
|
|
4894
4931
|
//#region src/components/basic/chip.ts
|
|
4895
|
-
var
|
|
4932
|
+
var xi = class extends g {
|
|
4896
4933
|
constructor(...e) {
|
|
4897
4934
|
super(...e), this.selected = !1, this.closable = !1, this.toggleSelect = () => {
|
|
4898
4935
|
this.selected = !this.selected, this.emit("aithe-select", { selected: this.selected });
|
|
@@ -4901,7 +4938,7 @@ var Si = class extends g {
|
|
|
4901
4938
|
};
|
|
4902
4939
|
}
|
|
4903
4940
|
static {
|
|
4904
|
-
this.styles = [
|
|
4941
|
+
this.styles = [x, t`
|
|
4905
4942
|
:host {
|
|
4906
4943
|
display: inline-flex;
|
|
4907
4944
|
}
|
|
@@ -4951,15 +4988,15 @@ var Si = class extends g {
|
|
|
4951
4988
|
h([s({
|
|
4952
4989
|
type: Boolean,
|
|
4953
4990
|
reflect: !0
|
|
4954
|
-
})],
|
|
4991
|
+
})], xi.prototype, "selected", void 0), h([s({ type: Boolean })], xi.prototype, "closable", void 0), xi = h([o("aithe-chip")], xi);
|
|
4955
4992
|
//#endregion
|
|
4956
4993
|
//#region src/components/layout/container.ts
|
|
4957
|
-
var
|
|
4994
|
+
var Si = class extends g {
|
|
4958
4995
|
constructor(...e) {
|
|
4959
4996
|
super(...e), this.maxWidth = "1280px", this.padding = "var(--aithe-space-lg)", this.gap = "0", this.fluid = !1, this.full = !1, this.direction = "column";
|
|
4960
4997
|
}
|
|
4961
4998
|
static {
|
|
4962
|
-
this.styles = [
|
|
4999
|
+
this.styles = [x, t`
|
|
4963
5000
|
:host {
|
|
4964
5001
|
display: block;
|
|
4965
5002
|
width: 100%;
|
|
@@ -4986,18 +5023,18 @@ var Ci = class extends g {
|
|
|
4986
5023
|
`;
|
|
4987
5024
|
}
|
|
4988
5025
|
};
|
|
4989
|
-
h([s({ type: String })],
|
|
5026
|
+
h([s({ type: String })], Si.prototype, "maxWidth", void 0), h([s({ type: String })], Si.prototype, "padding", void 0), h([s({ type: String })], Si.prototype, "gap", void 0), h([s({
|
|
4990
5027
|
type: Boolean,
|
|
4991
5028
|
reflect: !0
|
|
4992
|
-
})],
|
|
5029
|
+
})], Si.prototype, "fluid", void 0), h([s({ type: Boolean })], Si.prototype, "full", void 0), h([s({ type: String })], Si.prototype, "direction", void 0), Si = h([o("aithe-container")], Si);
|
|
4993
5030
|
//#endregion
|
|
4994
5031
|
//#region src/components/layout/row.ts
|
|
4995
|
-
var
|
|
5032
|
+
var Ci = class extends g {
|
|
4996
5033
|
constructor(...e) {
|
|
4997
5034
|
super(...e), this.gutter = 24, this.rowGap = 24, this.justify = "start", this.align = "stretch";
|
|
4998
5035
|
}
|
|
4999
5036
|
static {
|
|
5000
|
-
this.styles = [
|
|
5037
|
+
this.styles = [x, t`
|
|
5001
5038
|
:host {
|
|
5002
5039
|
display: block;
|
|
5003
5040
|
min-width: 0;
|
|
@@ -5044,18 +5081,18 @@ var wi = class extends g {
|
|
|
5044
5081
|
`;
|
|
5045
5082
|
}
|
|
5046
5083
|
};
|
|
5047
|
-
h([s({ type: Number })],
|
|
5084
|
+
h([s({ type: Number })], Ci.prototype, "gutter", void 0), h([s({
|
|
5048
5085
|
type: Number,
|
|
5049
5086
|
attribute: "row-gap"
|
|
5050
|
-
})],
|
|
5087
|
+
})], Ci.prototype, "rowGap", void 0), h([s({ type: String })], Ci.prototype, "justify", void 0), h([s({ type: String })], Ci.prototype, "align", void 0), Ci = h([o("aithe-row")], Ci);
|
|
5051
5088
|
//#endregion
|
|
5052
5089
|
//#region src/components/layout/col.ts
|
|
5053
|
-
var
|
|
5090
|
+
var wi = class extends g {
|
|
5054
5091
|
constructor(...e) {
|
|
5055
5092
|
super(...e), this.span = 24, this.offset = 0, this.push = 0, this.pull = 0, this.flex = "";
|
|
5056
5093
|
}
|
|
5057
5094
|
static {
|
|
5058
|
-
this.styles = [
|
|
5095
|
+
this.styles = [x, t`
|
|
5059
5096
|
:host {
|
|
5060
5097
|
display: block;
|
|
5061
5098
|
position: relative;
|
|
@@ -5089,15 +5126,15 @@ var Ti = class extends g {
|
|
|
5089
5126
|
`;
|
|
5090
5127
|
}
|
|
5091
5128
|
};
|
|
5092
|
-
h([s({ type: Number })],
|
|
5129
|
+
h([s({ type: Number })], wi.prototype, "span", void 0), h([s({ type: Number })], wi.prototype, "offset", void 0), h([s({ type: Number })], wi.prototype, "push", void 0), h([s({ type: Number })], wi.prototype, "pull", void 0), h([s({ type: String })], wi.prototype, "flex", void 0), wi = h([o("aithe-col")], wi);
|
|
5093
5130
|
//#endregion
|
|
5094
5131
|
//#region src/components/layout/flex.ts
|
|
5095
|
-
var
|
|
5132
|
+
var Ti = class extends g {
|
|
5096
5133
|
constructor(...e) {
|
|
5097
5134
|
super(...e), this.justify = "flex-start", this.align = "stretch", this.direction = "row", this.gap = "var(--aithe-space-md)", this.wrap = "nowrap", this.inline = !1;
|
|
5098
5135
|
}
|
|
5099
5136
|
static {
|
|
5100
|
-
this.styles = [
|
|
5137
|
+
this.styles = [x, t`
|
|
5101
5138
|
:host {
|
|
5102
5139
|
display: block;
|
|
5103
5140
|
min-width: 0;
|
|
@@ -5132,18 +5169,18 @@ var Ei = class extends g {
|
|
|
5132
5169
|
`;
|
|
5133
5170
|
}
|
|
5134
5171
|
};
|
|
5135
|
-
h([s({ type: String })],
|
|
5172
|
+
h([s({ type: String })], Ti.prototype, "justify", void 0), h([s({ type: String })], Ti.prototype, "align", void 0), h([s({ type: String })], Ti.prototype, "direction", void 0), h([s({ type: String })], Ti.prototype, "gap", void 0), h([s({ type: String })], Ti.prototype, "wrap", void 0), h([s({
|
|
5136
5173
|
type: Boolean,
|
|
5137
5174
|
reflect: !0
|
|
5138
|
-
})],
|
|
5175
|
+
})], Ti.prototype, "inline", void 0), Ti = h([o("aithe-flex")], Ti);
|
|
5139
5176
|
//#endregion
|
|
5140
5177
|
//#region src/components/layout/space.ts
|
|
5141
|
-
var
|
|
5178
|
+
var Ei = class extends g {
|
|
5142
5179
|
constructor(...e) {
|
|
5143
5180
|
super(...e), this.size = "var(--aithe-space-md)", this.direction = "vertical", this.align = "stretch", this.wrap = !1;
|
|
5144
5181
|
}
|
|
5145
5182
|
static {
|
|
5146
|
-
this.styles = [
|
|
5183
|
+
this.styles = [x, t`
|
|
5147
5184
|
:host {
|
|
5148
5185
|
display: block;
|
|
5149
5186
|
min-width: 0;
|
|
@@ -5173,13 +5210,13 @@ var Di = class extends g {
|
|
|
5173
5210
|
`;
|
|
5174
5211
|
}
|
|
5175
5212
|
};
|
|
5176
|
-
h([s({ type: String })],
|
|
5213
|
+
h([s({ type: String })], Ei.prototype, "size", void 0), h([s({ type: String })], Ei.prototype, "direction", void 0), h([s({ type: String })], Ei.prototype, "align", void 0), h([s({
|
|
5177
5214
|
type: Boolean,
|
|
5178
5215
|
reflect: !0
|
|
5179
|
-
})],
|
|
5216
|
+
})], Ei.prototype, "wrap", void 0), Ei = h([o("aithe-space")], Ei);
|
|
5180
5217
|
//#endregion
|
|
5181
5218
|
//#region src/components/layout/collapse.ts
|
|
5182
|
-
var
|
|
5219
|
+
var Di = class extends g {
|
|
5183
5220
|
constructor(...e) {
|
|
5184
5221
|
super(...e), this.activeKey = "", this.accordion = !1, this.syncItems = () => {
|
|
5185
5222
|
let e = this.activeKeys;
|
|
@@ -5196,7 +5233,7 @@ var Oi = class extends g {
|
|
|
5196
5233
|
};
|
|
5197
5234
|
}
|
|
5198
5235
|
static {
|
|
5199
|
-
this.styles = [
|
|
5236
|
+
this.styles = [x, t`
|
|
5200
5237
|
:host {
|
|
5201
5238
|
display: grid;
|
|
5202
5239
|
gap: var(--aithe-space-3);
|
|
@@ -5227,10 +5264,10 @@ var Oi = class extends g {
|
|
|
5227
5264
|
h([s({
|
|
5228
5265
|
type: String,
|
|
5229
5266
|
attribute: "active-key"
|
|
5230
|
-
})],
|
|
5267
|
+
})], Di.prototype, "activeKey", void 0), h([s({ type: Boolean })], Di.prototype, "accordion", void 0), Di = h([o("aithe-collapse")], Di);
|
|
5231
5268
|
//#endregion
|
|
5232
5269
|
//#region src/components/layout/collapse-item.ts
|
|
5233
|
-
var
|
|
5270
|
+
var Oi = class extends g {
|
|
5234
5271
|
constructor(...e) {
|
|
5235
5272
|
super(...e), this.title = "", this.name = "", this.icon = "", this.disabled = !1, this.open = !1, this.toggle = () => {
|
|
5236
5273
|
this.disabled || this.emit("aithe-collapse-toggle", {
|
|
@@ -5242,7 +5279,7 @@ var ki = class extends g {
|
|
|
5242
5279
|
};
|
|
5243
5280
|
}
|
|
5244
5281
|
static {
|
|
5245
|
-
this.styles = [
|
|
5282
|
+
this.styles = [x, t`
|
|
5246
5283
|
:host {
|
|
5247
5284
|
display: block;
|
|
5248
5285
|
border: 1px solid var(--aithe-color-border);
|
|
@@ -5336,16 +5373,16 @@ var ki = class extends g {
|
|
|
5336
5373
|
`;
|
|
5337
5374
|
}
|
|
5338
5375
|
};
|
|
5339
|
-
h([s({ type: String })],
|
|
5376
|
+
h([s({ type: String })], Oi.prototype, "title", void 0), h([s({ type: String })], Oi.prototype, "name", void 0), h([s({ type: String })], Oi.prototype, "icon", void 0), h([s({
|
|
5340
5377
|
type: Boolean,
|
|
5341
5378
|
reflect: !0
|
|
5342
|
-
})],
|
|
5379
|
+
})], Oi.prototype, "disabled", void 0), h([s({
|
|
5343
5380
|
type: Boolean,
|
|
5344
5381
|
reflect: !0
|
|
5345
|
-
})],
|
|
5382
|
+
})], Oi.prototype, "open", void 0), Oi = h([o("aithe-collapse-item")], Oi);
|
|
5346
5383
|
//#endregion
|
|
5347
5384
|
//#region src/components/layout/affix.ts
|
|
5348
|
-
var
|
|
5385
|
+
var ki = class extends g {
|
|
5349
5386
|
constructor(...e) {
|
|
5350
5387
|
super(...e), this.offsetTop = 0, this.target = "", this.affixed = !1, this.width = 0, this.height = 0, this.left = 0, this.scrollTarget = null, this.handleScroll = () => {
|
|
5351
5388
|
let e = this.getBoundingClientRect();
|
|
@@ -5353,7 +5390,7 @@ var Ai = class extends g {
|
|
|
5353
5390
|
};
|
|
5354
5391
|
}
|
|
5355
5392
|
static {
|
|
5356
|
-
this.styles = [
|
|
5393
|
+
this.styles = [x, t`
|
|
5357
5394
|
:host {
|
|
5358
5395
|
display: block;
|
|
5359
5396
|
}
|
|
@@ -5404,10 +5441,10 @@ var Ai = class extends g {
|
|
|
5404
5441
|
h([s({
|
|
5405
5442
|
type: Number,
|
|
5406
5443
|
attribute: "offset-top"
|
|
5407
|
-
})],
|
|
5444
|
+
})], ki.prototype, "offsetTop", void 0), h([s({ type: String })], ki.prototype, "target", void 0), h([d()], ki.prototype, "affixed", void 0), h([d()], ki.prototype, "width", void 0), h([d()], ki.prototype, "height", void 0), h([d()], ki.prototype, "left", void 0), ki = h([o("aithe-affix")], ki);
|
|
5408
5445
|
//#endregion
|
|
5409
5446
|
//#region src/components/theme/locale-switch.ts
|
|
5410
|
-
var
|
|
5447
|
+
var E = class extends g {
|
|
5411
5448
|
constructor(...e) {
|
|
5412
5449
|
super(...e), this.placement = "bottom-end", this.iconOnly = !1, this.locales = "", this.open = !1, this.currentLocale = y.getLocale(), this.handleViewportChange = () => this.updatePosition(), this.handleOutsideClick = (e) => {
|
|
5413
5450
|
this.open && (e.composedPath().includes(this) || (this.open = !1));
|
|
@@ -5419,7 +5456,7 @@ var ji = class extends g {
|
|
|
5419
5456
|
};
|
|
5420
5457
|
}
|
|
5421
5458
|
static {
|
|
5422
|
-
this.styles = [
|
|
5459
|
+
this.styles = [x, t`
|
|
5423
5460
|
:host {
|
|
5424
5461
|
display: inline-flex;
|
|
5425
5462
|
position: relative;
|
|
@@ -5511,7 +5548,7 @@ var ji = class extends g {
|
|
|
5511
5548
|
updatePosition() {
|
|
5512
5549
|
let e = this.overlayEl, t = this.triggerEl;
|
|
5513
5550
|
if (!e || !t || !this.open) return;
|
|
5514
|
-
let n =
|
|
5551
|
+
let n = mr(t.getBoundingClientRect(), e.getBoundingClientRect(), this.placement, { offset: 8 });
|
|
5515
5552
|
e.style.left = `${n.left}px`, e.style.top = `${n.top}px`;
|
|
5516
5553
|
}
|
|
5517
5554
|
getFilteredMenu() {
|
|
@@ -5542,13 +5579,13 @@ var ji = class extends g {
|
|
|
5542
5579
|
`;
|
|
5543
5580
|
}
|
|
5544
5581
|
};
|
|
5545
|
-
h([s({ type: String })],
|
|
5582
|
+
h([s({ type: String })], E.prototype, "placement", void 0), h([s({
|
|
5546
5583
|
type: Boolean,
|
|
5547
5584
|
attribute: "icon-only"
|
|
5548
|
-
})],
|
|
5585
|
+
})], E.prototype, "iconOnly", void 0), h([s({ type: String })], E.prototype, "locales", void 0), h([d()], E.prototype, "open", void 0), h([d()], E.prototype, "currentLocale", void 0), h([c(".trigger")], E.prototype, "triggerEl", void 0), h([c(".overlay")], E.prototype, "overlayEl", void 0), E = h([o("aithe-locale-switch")], E);
|
|
5549
5586
|
//#endregion
|
|
5550
5587
|
//#region src/components/theme/theme-switch.ts
|
|
5551
|
-
function
|
|
5588
|
+
function Ai() {
|
|
5552
5589
|
return [
|
|
5553
5590
|
{
|
|
5554
5591
|
id: "theme-group",
|
|
@@ -5591,9 +5628,9 @@ function Mi() {
|
|
|
5591
5628
|
}
|
|
5592
5629
|
];
|
|
5593
5630
|
}
|
|
5594
|
-
var
|
|
5631
|
+
var D = class extends g {
|
|
5595
5632
|
constructor(...e) {
|
|
5596
|
-
super(...e), this.placement = "bottom-end", this.iconOnly = !1, this.open = !1, this.currentTheme = y.getTheme(), this.currentShadow = y.getShadow(), this.currentShape = y.getShape(), this.currentTypo = y.getTypo(), this.themeMenu =
|
|
5633
|
+
super(...e), this.placement = "bottom-end", this.iconOnly = !1, this.open = !1, this.currentTheme = y.getTheme(), this.currentShadow = y.getShadow(), this.currentShape = y.getShape(), this.currentTypo = y.getTypo(), this.themeMenu = Ai(), this.handleViewportChange = () => this.updatePosition(), this.handleOutsideClick = (e) => {
|
|
5597
5634
|
this.open && (e.composedPath().includes(this) || (this.open = !1));
|
|
5598
5635
|
}, this.toggleOpen = () => {
|
|
5599
5636
|
this.open = !this.open, this.open ? this.bindViewport() : this.unbindViewport();
|
|
@@ -5625,7 +5662,7 @@ var T = class extends g {
|
|
|
5625
5662
|
>${e.icon}</span>` : r;
|
|
5626
5663
|
}
|
|
5627
5664
|
static {
|
|
5628
|
-
this.styles = [
|
|
5665
|
+
this.styles = [x, t`
|
|
5629
5666
|
:host {
|
|
5630
5667
|
display: inline-flex;
|
|
5631
5668
|
position: relative;
|
|
@@ -5726,7 +5763,7 @@ var T = class extends g {
|
|
|
5726
5763
|
updatePosition() {
|
|
5727
5764
|
let e = this.overlayEl, t = this.triggerEl;
|
|
5728
5765
|
if (!e || !t || !this.open) return;
|
|
5729
|
-
let n =
|
|
5766
|
+
let n = mr(t.getBoundingClientRect(), e.getBoundingClientRect(), this.placement, { offset: 8 });
|
|
5730
5767
|
e.style.left = `${n.left}px`, e.style.top = `${n.top}px`;
|
|
5731
5768
|
}
|
|
5732
5769
|
render() {
|
|
@@ -5753,18 +5790,18 @@ var T = class extends g {
|
|
|
5753
5790
|
`;
|
|
5754
5791
|
}
|
|
5755
5792
|
};
|
|
5756
|
-
h([s({ type: String })],
|
|
5793
|
+
h([s({ type: String })], D.prototype, "placement", void 0), h([s({
|
|
5757
5794
|
type: Boolean,
|
|
5758
5795
|
attribute: "icon-only"
|
|
5759
|
-
})],
|
|
5796
|
+
})], D.prototype, "iconOnly", void 0), h([d()], D.prototype, "open", void 0), h([d()], D.prototype, "currentTheme", void 0), h([d()], D.prototype, "currentShadow", void 0), h([d()], D.prototype, "currentShape", void 0), h([d()], D.prototype, "currentTypo", void 0), h([c(".trigger")], D.prototype, "triggerEl", void 0), h([c(".overlay")], D.prototype, "overlayEl", void 0), D = h([o("aithe-theme-switch")], D);
|
|
5760
5797
|
//#endregion
|
|
5761
5798
|
//#region src/components/framework/header.ts
|
|
5762
|
-
var
|
|
5799
|
+
var ji = class extends g {
|
|
5763
5800
|
constructor(...e) {
|
|
5764
5801
|
super(...e), this.brand = "Aithe UI", this.slogan = "", this.showLocaleSwitch = !1, this.showThemeSwitch = !1, this.centerAlign = "right";
|
|
5765
5802
|
}
|
|
5766
5803
|
static {
|
|
5767
|
-
this.styles = [
|
|
5804
|
+
this.styles = [x, t`
|
|
5768
5805
|
:host {
|
|
5769
5806
|
display: block;
|
|
5770
5807
|
position: sticky;
|
|
@@ -5924,31 +5961,31 @@ var Ni = class extends g {
|
|
|
5924
5961
|
`;
|
|
5925
5962
|
}
|
|
5926
5963
|
};
|
|
5927
|
-
h([s({ type: String })],
|
|
5964
|
+
h([s({ type: String })], ji.prototype, "brand", void 0), h([s({ type: String })], ji.prototype, "slogan", void 0), h([s({
|
|
5928
5965
|
type: Boolean,
|
|
5929
5966
|
attribute: "show-locale-switch"
|
|
5930
|
-
})],
|
|
5967
|
+
})], ji.prototype, "showLocaleSwitch", void 0), h([s({
|
|
5931
5968
|
type: Boolean,
|
|
5932
5969
|
attribute: "show-theme-switch"
|
|
5933
|
-
})],
|
|
5970
|
+
})], ji.prototype, "showThemeSwitch", void 0), h([s({
|
|
5934
5971
|
type: String,
|
|
5935
5972
|
attribute: "center-align"
|
|
5936
|
-
})],
|
|
5973
|
+
})], ji.prototype, "centerAlign", void 0), ji = h([o("aithe-header")], ji);
|
|
5937
5974
|
//#endregion
|
|
5938
5975
|
//#region src/components/framework/body.ts
|
|
5939
|
-
var
|
|
5976
|
+
var Mi = {
|
|
5940
5977
|
compact: "60%",
|
|
5941
5978
|
medium: "80%",
|
|
5942
5979
|
wide: "100%"
|
|
5943
|
-
},
|
|
5980
|
+
}, Ni = [
|
|
5944
5981
|
"compact",
|
|
5945
5982
|
"medium",
|
|
5946
5983
|
"wide"
|
|
5947
|
-
],
|
|
5984
|
+
], Pi = {
|
|
5948
5985
|
compact: "◧",
|
|
5949
5986
|
medium: "◫",
|
|
5950
5987
|
wide: "◧"
|
|
5951
|
-
},
|
|
5988
|
+
}, O = class extends g {
|
|
5952
5989
|
constructor(...e) {
|
|
5953
5990
|
super(...e), this.layout = "medium", this.showActions = !1, this.showBackTop = !0, this.showLayoutSwitch = !0, this.showLogPanel = !1, this.visibilityHeight = 260, this.mobileBreakpoint = 768, this.scrolledPastThreshold = !1, this.isMobile = !1, this.logPanelOpen = !1, this.handleMobileChange = (e) => {
|
|
5954
5991
|
this.isMobile = e.matches, this.isMobile ? (this.layout = "wide", this.applyLayoutWidth()) : (this.layout = Pt(), this.applyLayoutWidth());
|
|
@@ -5960,7 +5997,7 @@ var Pi = {
|
|
|
5960
5997
|
behavior: "smooth"
|
|
5961
5998
|
});
|
|
5962
5999
|
}, this.handleLayoutSwitch = () => {
|
|
5963
|
-
let e =
|
|
6000
|
+
let e = Ni[(Ni.indexOf(this.layout) + 1) % Ni.length];
|
|
5964
6001
|
this.emit("aithe-layout-change", { layout: e }) && Nt(e);
|
|
5965
6002
|
}, this.handleLogPanelToggle = () => {
|
|
5966
6003
|
this.logPanelOpen = !this.logPanelOpen;
|
|
@@ -5969,7 +6006,7 @@ var Pi = {
|
|
|
5969
6006
|
};
|
|
5970
6007
|
}
|
|
5971
6008
|
static {
|
|
5972
|
-
this.styles = [
|
|
6009
|
+
this.styles = [x, t`
|
|
5973
6010
|
:host {
|
|
5974
6011
|
display: flex;
|
|
5975
6012
|
flex-direction: column;
|
|
@@ -6090,7 +6127,7 @@ var Pi = {
|
|
|
6090
6127
|
e.has("layout") && this.applyLayoutWidth();
|
|
6091
6128
|
}
|
|
6092
6129
|
applyLayoutWidth() {
|
|
6093
|
-
let e =
|
|
6130
|
+
let e = Mi[this.layout] ?? Mi.medium;
|
|
6094
6131
|
this.style.setProperty("--aithe-body-width", e);
|
|
6095
6132
|
}
|
|
6096
6133
|
render() {
|
|
@@ -6102,7 +6139,7 @@ var Pi = {
|
|
|
6102
6139
|
title=${v("body.switchLayout")}
|
|
6103
6140
|
@click=${this.handleLayoutSwitch}
|
|
6104
6141
|
>
|
|
6105
|
-
${
|
|
6142
|
+
${Pi[this.layout] ?? Pi.medium}
|
|
6106
6143
|
</button>
|
|
6107
6144
|
` : r, t = this.showBackTop && this.scrolledPastThreshold ? n`
|
|
6108
6145
|
<button
|
|
@@ -6139,31 +6176,31 @@ var Pi = {
|
|
|
6139
6176
|
`;
|
|
6140
6177
|
}
|
|
6141
6178
|
};
|
|
6142
|
-
h([s({ type: String })],
|
|
6179
|
+
h([s({ type: String })], O.prototype, "layout", void 0), h([s({
|
|
6143
6180
|
type: Boolean,
|
|
6144
6181
|
attribute: "show-actions"
|
|
6145
|
-
})],
|
|
6182
|
+
})], O.prototype, "showActions", void 0), h([s({
|
|
6146
6183
|
type: Boolean,
|
|
6147
6184
|
attribute: "show-back-top"
|
|
6148
|
-
})],
|
|
6185
|
+
})], O.prototype, "showBackTop", void 0), h([s({
|
|
6149
6186
|
type: Boolean,
|
|
6150
6187
|
attribute: "show-layout-switch"
|
|
6151
|
-
})],
|
|
6188
|
+
})], O.prototype, "showLayoutSwitch", void 0), h([s({
|
|
6152
6189
|
type: Boolean,
|
|
6153
6190
|
attribute: "show-log-panel"
|
|
6154
|
-
})],
|
|
6191
|
+
})], O.prototype, "showLogPanel", void 0), h([s({
|
|
6155
6192
|
type: Number,
|
|
6156
6193
|
attribute: "visibility-height"
|
|
6157
|
-
})],
|
|
6194
|
+
})], O.prototype, "visibilityHeight", void 0), h([s({
|
|
6158
6195
|
type: Number,
|
|
6159
6196
|
attribute: "mobile-breakpoint"
|
|
6160
|
-
})],
|
|
6197
|
+
})], O.prototype, "mobileBreakpoint", void 0), h([d()], O.prototype, "scrolledPastThreshold", void 0), h([d()], O.prototype, "isMobile", void 0), h([s({
|
|
6161
6198
|
type: Boolean,
|
|
6162
6199
|
attribute: "log-panel-open"
|
|
6163
|
-
})],
|
|
6200
|
+
})], O.prototype, "logPanelOpen", void 0), h([c(".body-scroll")], O.prototype, "_scrollEl", void 0), O = h([o("aithe-body")], O);
|
|
6164
6201
|
//#endregion
|
|
6165
6202
|
//#region src/components/framework/sidebar.ts
|
|
6166
|
-
var
|
|
6203
|
+
var k = class extends g {
|
|
6167
6204
|
constructor(...e) {
|
|
6168
6205
|
super(...e), this.brand = "", this.icon = "", this.itemsJson = "", this.items = [], this.active = "", this.expandAll = !1, this.collapsible = !1, this.collapsed = !1, this.itemFilter = null, this.overlay = !1, this.headerHeight = "56px", this.mobileBreakpoint = 768, this.expandedWidth = "260px", this.collapsedWidth = "64px", this.isMobile = !1, this.handleMobileChange = (e) => {
|
|
6169
6206
|
let t = this.isMobile;
|
|
@@ -6180,7 +6217,7 @@ var D = class extends g {
|
|
|
6180
6217
|
};
|
|
6181
6218
|
}
|
|
6182
6219
|
static {
|
|
6183
|
-
this.styles = [
|
|
6220
|
+
this.styles = [x, t`
|
|
6184
6221
|
:host {
|
|
6185
6222
|
display: flex;
|
|
6186
6223
|
flex-direction: column;
|
|
@@ -6449,39 +6486,39 @@ var D = class extends g {
|
|
|
6449
6486
|
`;
|
|
6450
6487
|
}
|
|
6451
6488
|
};
|
|
6452
|
-
h([s({ type: String })],
|
|
6489
|
+
h([s({ type: String })], k.prototype, "brand", void 0), h([s({ type: String })], k.prototype, "icon", void 0), h([s({
|
|
6453
6490
|
type: String,
|
|
6454
6491
|
attribute: "items"
|
|
6455
|
-
})],
|
|
6492
|
+
})], k.prototype, "itemsJson", void 0), h([s({ attribute: !1 })], k.prototype, "items", void 0), h([s({ type: String })], k.prototype, "active", void 0), h([s({
|
|
6456
6493
|
type: Boolean,
|
|
6457
6494
|
attribute: "expand-all"
|
|
6458
|
-
})],
|
|
6495
|
+
})], k.prototype, "expandAll", void 0), h([s({ type: Boolean })], k.prototype, "collapsible", void 0), h([s({
|
|
6459
6496
|
type: Boolean,
|
|
6460
6497
|
reflect: !0
|
|
6461
|
-
})],
|
|
6498
|
+
})], k.prototype, "collapsed", void 0), h([s({ attribute: !1 })], k.prototype, "itemFilter", void 0), h([s({
|
|
6462
6499
|
type: Boolean,
|
|
6463
6500
|
reflect: !0
|
|
6464
|
-
})],
|
|
6501
|
+
})], k.prototype, "overlay", void 0), h([s({
|
|
6465
6502
|
type: String,
|
|
6466
6503
|
attribute: "header-height"
|
|
6467
|
-
})],
|
|
6504
|
+
})], k.prototype, "headerHeight", void 0), h([s({
|
|
6468
6505
|
type: Number,
|
|
6469
6506
|
attribute: "mobile-breakpoint"
|
|
6470
|
-
})],
|
|
6507
|
+
})], k.prototype, "mobileBreakpoint", void 0), h([s({
|
|
6471
6508
|
type: String,
|
|
6472
6509
|
attribute: "expanded-width"
|
|
6473
|
-
})],
|
|
6510
|
+
})], k.prototype, "expandedWidth", void 0), h([s({
|
|
6474
6511
|
type: String,
|
|
6475
6512
|
attribute: "collapsed-width"
|
|
6476
|
-
})],
|
|
6513
|
+
})], k.prototype, "collapsedWidth", void 0), h([d()], k.prototype, "isMobile", void 0), k = h([o("aithe-sidebar")], k);
|
|
6477
6514
|
//#endregion
|
|
6478
6515
|
//#region src/components/framework/page.ts
|
|
6479
|
-
var
|
|
6516
|
+
var Fi = class extends g {
|
|
6480
6517
|
constructor(...e) {
|
|
6481
6518
|
super(...e), this.router = null, this.notFoundComponent = "", this.location = null;
|
|
6482
6519
|
}
|
|
6483
6520
|
static {
|
|
6484
|
-
this.styles = [
|
|
6521
|
+
this.styles = [x, t`
|
|
6485
6522
|
:host {
|
|
6486
6523
|
display: block;
|
|
6487
6524
|
width: 100%;
|
|
@@ -6558,30 +6595,30 @@ var Li = class extends g {
|
|
|
6558
6595
|
`;
|
|
6559
6596
|
}
|
|
6560
6597
|
};
|
|
6561
|
-
h([s({ attribute: !1 })],
|
|
6598
|
+
h([s({ attribute: !1 })], Fi.prototype, "router", void 0), h([s({
|
|
6562
6599
|
type: String,
|
|
6563
6600
|
attribute: "not-found-component"
|
|
6564
|
-
})],
|
|
6601
|
+
})], Fi.prototype, "notFoundComponent", void 0), h([d()], Fi.prototype, "location", void 0), Fi = h([o("aithe-page")], Fi);
|
|
6565
6602
|
//#endregion
|
|
6566
6603
|
//#region src/components/framework/log-panel.ts
|
|
6567
|
-
var
|
|
6604
|
+
var Ii = {
|
|
6568
6605
|
DEBUG: "var(--aithe-color-text-muted)",
|
|
6569
6606
|
INFO: "var(--aithe-primary-6)",
|
|
6570
6607
|
WARN: "#d18f29",
|
|
6571
6608
|
ERROR: "#df526b",
|
|
6572
6609
|
FATAL: "#a0153a"
|
|
6573
|
-
},
|
|
6610
|
+
}, Li = {
|
|
6574
6611
|
DEBUG: "·",
|
|
6575
6612
|
INFO: "ℹ",
|
|
6576
6613
|
WARN: "⚠",
|
|
6577
6614
|
ERROR: "✕",
|
|
6578
6615
|
FATAL: "✕✕"
|
|
6579
6616
|
};
|
|
6580
|
-
function
|
|
6617
|
+
function Ri(e) {
|
|
6581
6618
|
let t = new Date(e), n = (e) => String(e).padStart(2, "0");
|
|
6582
6619
|
return `${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}.${String(t.getMilliseconds()).padStart(3, "0")}`;
|
|
6583
6620
|
}
|
|
6584
|
-
var
|
|
6621
|
+
var A = class extends g {
|
|
6585
6622
|
constructor(...e) {
|
|
6586
6623
|
super(...e), this.open = !1, this.panelPlacement = "overlay", this._entries = [], this._filterLevel = null, this._searchText = "", this._expandedIds = /* @__PURE__ */ new Set(), this._panelHeight = 200, this._unsubscribe = null, this._unsubscribeClear = null, this._dragStartY = 0, this._dragStartHeight = 0, this._dragging = !1;
|
|
6587
6624
|
}
|
|
@@ -6918,7 +6955,7 @@ var O = class extends g {
|
|
|
6918
6955
|
}
|
|
6919
6956
|
_copyData(e) {
|
|
6920
6957
|
let t = [];
|
|
6921
|
-
for (let n of e.data) typeof n == "object" && n && t.push(
|
|
6958
|
+
for (let n of e.data) typeof n == "object" && n && t.push(b(n));
|
|
6922
6959
|
e.stack && t.push(e.stack), navigator.clipboard.writeText(t.join("\n"));
|
|
6923
6960
|
}
|
|
6924
6961
|
_onDragStart(e) {
|
|
@@ -6950,7 +6987,7 @@ var O = class extends g {
|
|
|
6950
6987
|
return e;
|
|
6951
6988
|
}
|
|
6952
6989
|
_renderEntry(e) {
|
|
6953
|
-
let t =
|
|
6990
|
+
let t = Ii[e.levelLabel] ?? "inherit", r = Li[e.levelLabel] ?? "", i = e.data.some((e) => typeof e == "object" && !!e) || !!e.stack, a = this._expandedIds.has(e.id), o = e.data.filter((e) => typeof e == "object" && !!e), s = i ? n`
|
|
6954
6991
|
<button
|
|
6955
6992
|
class="log-action-btn"
|
|
6956
6993
|
type="button"
|
|
@@ -6963,7 +7000,7 @@ var O = class extends g {
|
|
|
6963
7000
|
</button>
|
|
6964
7001
|
` : null, c = o.length ? n`
|
|
6965
7002
|
<pre>
|
|
6966
|
-
${o.map((e) =>
|
|
7003
|
+
${o.map((e) => b(e)).join("\n")}</pre
|
|
6967
7004
|
>
|
|
6968
7005
|
` : null, l = e.stack ? n`
|
|
6969
7006
|
<div class="log-stack">${e.stack}</div>
|
|
@@ -6990,7 +7027,7 @@ var O = class extends g {
|
|
|
6990
7027
|
return n`
|
|
6991
7028
|
<div class="log-item">
|
|
6992
7029
|
<span class="log-icon" style="color:${t}">${r}</span>
|
|
6993
|
-
<span class="log-time">${
|
|
7030
|
+
<span class="log-time">${Ri(e.timestamp)}</span>
|
|
6994
7031
|
<span class="log-level" style="color:${t}">${e.levelLabel}</span>
|
|
6995
7032
|
<div class="log-msg">
|
|
6996
7033
|
<div class="log-msg-row">
|
|
@@ -7068,13 +7105,13 @@ h([s({
|
|
|
7068
7105
|
type: Boolean,
|
|
7069
7106
|
reflect: !0,
|
|
7070
7107
|
attribute: "open"
|
|
7071
|
-
})],
|
|
7108
|
+
})], A.prototype, "open", void 0), h([s({
|
|
7072
7109
|
type: String,
|
|
7073
7110
|
attribute: "panel-placement"
|
|
7074
|
-
})],
|
|
7111
|
+
})], A.prototype, "panelPlacement", void 0), h([d()], A.prototype, "_entries", void 0), h([d()], A.prototype, "_filterLevel", void 0), h([d()], A.prototype, "_searchText", void 0), h([d()], A.prototype, "_expandedIds", void 0), h([d()], A.prototype, "_panelHeight", void 0), h([c(".log-list")], A.prototype, "_scrollContainer", void 0), A = h([o("aithe-log-panel")], A);
|
|
7075
7112
|
//#endregion
|
|
7076
7113
|
//#region src/components/framework/dashboard-panel.ts
|
|
7077
|
-
var
|
|
7114
|
+
var zi = [
|
|
7078
7115
|
{
|
|
7079
7116
|
edge: "n",
|
|
7080
7117
|
style: "top:-3px;left:8px;right:8px;height:6px;cursor:ns-resize;"
|
|
@@ -7107,7 +7144,7 @@ var Vi = [
|
|
|
7107
7144
|
edge: "sw",
|
|
7108
7145
|
style: "bottom:-3px;left:-3px;width:10px;height:10px;cursor:nesw-resize;"
|
|
7109
7146
|
}
|
|
7110
|
-
],
|
|
7147
|
+
], j = class extends g {
|
|
7111
7148
|
constructor(...e) {
|
|
7112
7149
|
super(...e), this.panelId = "", this.x = 0, this.y = 0, this.w = 1, this.h = 1, this.closable = !0, this.label = "", this.icon = "", this.visible = !0, this.maximized = !1, this.locked = !1, this.showHeader = !0, this.dragging = !1, this.resizing = !1, this.dragStartX = 0, this.dragStartY = 0, this.dragOffsetX = 0, this.dragOffsetY = 0, this.resizeEdge = null, this.resizeStartX = 0, this.resizeStartY = 0, this.resizeDeltaX = 0, this.resizeDeltaY = 0, this.handleMouseDown = (e) => {
|
|
7113
7150
|
if (this.maximized) return;
|
|
@@ -7152,7 +7189,7 @@ var Vi = [
|
|
|
7152
7189
|
};
|
|
7153
7190
|
}
|
|
7154
7191
|
static {
|
|
7155
|
-
this.styles = [
|
|
7192
|
+
this.styles = [x, t`
|
|
7156
7193
|
:host {
|
|
7157
7194
|
display: block;
|
|
7158
7195
|
border-radius: var(--aithe-container-radius-lg);
|
|
@@ -7368,7 +7405,7 @@ var Vi = [
|
|
|
7368
7405
|
}
|
|
7369
7406
|
renderResizeHandles() {
|
|
7370
7407
|
return this.locked || this.maximized ? r : n`
|
|
7371
|
-
${
|
|
7408
|
+
${zi.map((e) => n`
|
|
7372
7409
|
<div class="resize-handle" data-edge=${e.edge} style=${e.style}></div>
|
|
7373
7410
|
`)}
|
|
7374
7411
|
`;
|
|
@@ -7386,25 +7423,25 @@ var Vi = [
|
|
|
7386
7423
|
h([s({
|
|
7387
7424
|
type: String,
|
|
7388
7425
|
attribute: "panel-id"
|
|
7389
|
-
})],
|
|
7426
|
+
})], j.prototype, "panelId", void 0), h([s({ type: Number })], j.prototype, "x", void 0), h([s({ type: Number })], j.prototype, "y", void 0), h([s({ type: Number })], j.prototype, "w", void 0), h([s({ type: Number })], j.prototype, "h", void 0), h([s({ type: Boolean })], j.prototype, "closable", void 0), h([s({ type: String })], j.prototype, "label", void 0), h([s({ type: String })], j.prototype, "icon", void 0), h([s({
|
|
7390
7427
|
type: Boolean,
|
|
7391
7428
|
reflect: !0
|
|
7392
|
-
})],
|
|
7429
|
+
})], j.prototype, "visible", void 0), h([s({
|
|
7393
7430
|
type: Boolean,
|
|
7394
7431
|
reflect: !0
|
|
7395
|
-
})],
|
|
7432
|
+
})], j.prototype, "maximized", void 0), h([s({
|
|
7396
7433
|
type: Boolean,
|
|
7397
7434
|
reflect: !0
|
|
7398
|
-
})],
|
|
7435
|
+
})], j.prototype, "locked", void 0), h([s({
|
|
7399
7436
|
type: Boolean,
|
|
7400
7437
|
attribute: "show-header",
|
|
7401
7438
|
reflect: !0
|
|
7402
|
-
})],
|
|
7439
|
+
})], j.prototype, "showHeader", void 0), h([d()], j.prototype, "dragging", void 0), h([d()], j.prototype, "resizing", void 0), h([c(".panel-header")], j.prototype, "headerEl", void 0), j = h([o("aithe-dashboard-panel")], j);
|
|
7403
7440
|
//#endregion
|
|
7404
7441
|
//#region src/components/framework/dashboard.ts
|
|
7405
|
-
var
|
|
7442
|
+
var Bi = "aithe-dashboard-", Vi = 12, Hi = 60, Ui = 10, Wi = 1, Gi = 1, M = class extends g {
|
|
7406
7443
|
constructor(...e) {
|
|
7407
|
-
super(...e), this.columns =
|
|
7444
|
+
super(...e), this.columns = Vi, this.cellHeight = Hi, this.gap = Ui, this.locked = !1, this.storageKey = "", this.showToolbar = !0, this.showVisibility = !0, this.showLock = !0, this.showReset = !0, this.showFullscreen = !0, this.showTheme = !0, this.showAutoArrange = !0, this.showToggleContent = !0, this.panelStates = /* @__PURE__ */ new Map(), this.visibilityDropdownOpen = !1, this.fullscreen = !1, this.showContent = !0, this.dashboardTheme = "", this.computedCellWidth = 80, this.initialPanelStates = /* @__PURE__ */ new Map(), this.dragTargetId = "", this.dragStartGridX = 0, this.dragStartGridY = 0, this.resizeTargetId = "", this.resizeEdge = "", this.resizeStartW = 0, this.resizeStartH = 0, this.resizeStartX = 0, this.resizeStartY = 0, this.resizeObserver = null, this.handleSlotChange = () => {
|
|
7408
7445
|
this.syncPanelsFromDOM();
|
|
7409
7446
|
}, this.handlePanelClose = (e) => {
|
|
7410
7447
|
let { panelId: t } = e.detail;
|
|
@@ -7439,13 +7476,13 @@ var Hi = "aithe-dashboard-", Ui = 12, Wi = 60, Gi = 10, Ki = 1, qi = 1, A = clas
|
|
|
7439
7476
|
let { deltaX: t, deltaY: n } = e.detail, r = this.panelStates.get(this.resizeTargetId);
|
|
7440
7477
|
if (!r) return;
|
|
7441
7478
|
let i = this.computedCellWidth + this.gap, a = this.cellHeight + this.gap, o = this.resizeStartW, s = this.resizeStartH, c = this.resizeStartX, l = this.resizeStartY, u = this.resizeEdge;
|
|
7442
|
-
if (u.includes("e") && (o = Math.max(
|
|
7479
|
+
if (u.includes("e") && (o = Math.max(Wi, this.resizeStartW + Math.round(t / i))), u.includes("w")) {
|
|
7443
7480
|
let e = Math.round(t / i), n = this.resizeStartW - e;
|
|
7444
|
-
n >=
|
|
7481
|
+
n >= Wi && (o = n, c = this.resizeStartX + e);
|
|
7445
7482
|
}
|
|
7446
|
-
if (u.includes("s") && (s = Math.max(
|
|
7483
|
+
if (u.includes("s") && (s = Math.max(Gi, this.resizeStartH + Math.round(n / a))), u.includes("n")) {
|
|
7447
7484
|
let e = Math.round(n / a), t = this.resizeStartH - e;
|
|
7448
|
-
t >=
|
|
7485
|
+
t >= Gi && (s = t, l = this.resizeStartY + e);
|
|
7449
7486
|
}
|
|
7450
7487
|
c = this.clampX(c, o), o = Math.min(o, this.columns - c), (o !== r.w || s !== r.h || c !== r.x || l !== r.y) && this.resizePanelWithAutoRearrange(this.resizeTargetId, c, l, o, s);
|
|
7451
7488
|
}, this.handlePanelResizeEnd = () => {
|
|
@@ -7490,7 +7527,7 @@ var Hi = "aithe-dashboard-", Ui = 12, Wi = 60, Gi = 10, Ki = 1, qi = 1, A = clas
|
|
|
7490
7527
|
static {
|
|
7491
7528
|
this.styles = [
|
|
7492
7529
|
a(He),
|
|
7493
|
-
|
|
7530
|
+
x,
|
|
7494
7531
|
t`
|
|
7495
7532
|
:host {
|
|
7496
7533
|
display: block;
|
|
@@ -7838,7 +7875,7 @@ var Hi = "aithe-dashboard-", Ui = 12, Wi = 60, Gi = 10, Ki = 1, qi = 1, A = clas
|
|
|
7838
7875
|
resizePanelWithAutoRearrange(e, t, n, r, i) {
|
|
7839
7876
|
let a = this.panelStates.get(e);
|
|
7840
7877
|
if (!a) return;
|
|
7841
|
-
let o = this.clampX(t, r), s = Math.max(0, n), c = Math.max(
|
|
7878
|
+
let o = this.clampX(t, r), s = Math.max(0, n), c = Math.max(Wi, Math.min(r, this.columns - o)), l = Math.max(Gi, i);
|
|
7842
7879
|
this.panelStates.set(e, {
|
|
7843
7880
|
...a,
|
|
7844
7881
|
x: o,
|
|
@@ -7868,7 +7905,7 @@ var Hi = "aithe-dashboard-", Ui = 12, Wi = 60, Gi = 10, Ki = 1, qi = 1, A = clas
|
|
|
7868
7905
|
return Array.from(this.panelStates.values());
|
|
7869
7906
|
}
|
|
7870
7907
|
getStorageFullKey() {
|
|
7871
|
-
return this.storageKey ? `${
|
|
7908
|
+
return this.storageKey ? `${Bi}${this.storageKey}` : "";
|
|
7872
7909
|
}
|
|
7873
7910
|
saveState() {
|
|
7874
7911
|
let e = this.getStorageFullKey();
|
|
@@ -8033,48 +8070,48 @@ var Hi = "aithe-dashboard-", Ui = 12, Wi = 60, Gi = 10, Ki = 1, qi = 1, A = clas
|
|
|
8033
8070
|
h([s({
|
|
8034
8071
|
type: Number,
|
|
8035
8072
|
attribute: "columns"
|
|
8036
|
-
})],
|
|
8073
|
+
})], M.prototype, "columns", void 0), h([s({
|
|
8037
8074
|
type: Number,
|
|
8038
8075
|
attribute: "cell-height"
|
|
8039
|
-
})],
|
|
8076
|
+
})], M.prototype, "cellHeight", void 0), h([s({ type: Number })], M.prototype, "gap", void 0), h([s({
|
|
8040
8077
|
type: Boolean,
|
|
8041
8078
|
reflect: !0
|
|
8042
|
-
})],
|
|
8079
|
+
})], M.prototype, "locked", void 0), h([s({
|
|
8043
8080
|
type: String,
|
|
8044
8081
|
attribute: "storage-key"
|
|
8045
|
-
})],
|
|
8082
|
+
})], M.prototype, "storageKey", void 0), h([s({
|
|
8046
8083
|
type: Boolean,
|
|
8047
8084
|
attribute: "show-toolbar"
|
|
8048
|
-
})],
|
|
8085
|
+
})], M.prototype, "showToolbar", void 0), h([s({
|
|
8049
8086
|
type: Boolean,
|
|
8050
8087
|
attribute: "show-visibility"
|
|
8051
|
-
})],
|
|
8088
|
+
})], M.prototype, "showVisibility", void 0), h([s({
|
|
8052
8089
|
type: Boolean,
|
|
8053
8090
|
attribute: "show-lock"
|
|
8054
|
-
})],
|
|
8091
|
+
})], M.prototype, "showLock", void 0), h([s({
|
|
8055
8092
|
type: Boolean,
|
|
8056
8093
|
attribute: "show-reset"
|
|
8057
|
-
})],
|
|
8094
|
+
})], M.prototype, "showReset", void 0), h([s({
|
|
8058
8095
|
type: Boolean,
|
|
8059
8096
|
attribute: "show-fullscreen"
|
|
8060
|
-
})],
|
|
8097
|
+
})], M.prototype, "showFullscreen", void 0), h([s({
|
|
8061
8098
|
type: Boolean,
|
|
8062
8099
|
attribute: "show-theme"
|
|
8063
|
-
})],
|
|
8100
|
+
})], M.prototype, "showTheme", void 0), h([s({
|
|
8064
8101
|
type: Boolean,
|
|
8065
8102
|
attribute: "show-auto-arrange"
|
|
8066
|
-
})],
|
|
8103
|
+
})], M.prototype, "showAutoArrange", void 0), h([s({
|
|
8067
8104
|
type: Boolean,
|
|
8068
8105
|
attribute: "show-toggle-content"
|
|
8069
|
-
})],
|
|
8106
|
+
})], M.prototype, "showToggleContent", void 0), h([d()], M.prototype, "panelStates", void 0), h([d()], M.prototype, "visibilityDropdownOpen", void 0), h([d()], M.prototype, "fullscreen", void 0), h([d()], M.prototype, "showContent", void 0), h([d()], M.prototype, "dashboardTheme", void 0), h([c(".grid-container")], M.prototype, "gridContainer", void 0), h([c(".visibility-dropdown")], M.prototype, "visibilityDropdownEl", void 0), M = h([o("aithe-dashboard")], M);
|
|
8070
8107
|
//#endregion
|
|
8071
8108
|
//#region src/components/data/metrics.ts
|
|
8072
|
-
var
|
|
8109
|
+
var Ki = class extends Et {
|
|
8073
8110
|
constructor(...e) {
|
|
8074
8111
|
super(...e), this.label = "", this.value = "", this.showDivider = !1, this.align = "center", this.scale = "small", this.params = {}, this.data = null;
|
|
8075
8112
|
}
|
|
8076
8113
|
static {
|
|
8077
|
-
this.styles = [
|
|
8114
|
+
this.styles = [x, t`
|
|
8078
8115
|
:host {
|
|
8079
8116
|
display: inline-flex;
|
|
8080
8117
|
flex-direction: column;
|
|
@@ -8212,7 +8249,7 @@ var Ji = class extends Et {
|
|
|
8212
8249
|
render() {
|
|
8213
8250
|
let e = this.data, t = Array.isArray(e) ? e[0] : e, r = t?.label ?? this.label, i = t?.value ?? this.value, a = t?.variant ?? this.variant, o = t?.filter ?? this.params.filter, s = this.params.showDivider ?? t?.showDivider ?? this.showDivider, c = this.params.align ?? t?.align ?? this.align, l = this.params.scale ?? t?.scale ?? this.scale;
|
|
8214
8251
|
c !== this.align && (this.align = c), l !== this.scale && (this.scale = l), s !== this.showDivider && (this.showDivider = s);
|
|
8215
|
-
let u = o && i != null ?
|
|
8252
|
+
let u = o && i != null ? di.format(i, o) : i, d = f({
|
|
8216
8253
|
"metrics-value": !0,
|
|
8217
8254
|
[a]: !0
|
|
8218
8255
|
});
|
|
@@ -8228,25 +8265,25 @@ var Ji = class extends Et {
|
|
|
8228
8265
|
`;
|
|
8229
8266
|
}
|
|
8230
8267
|
};
|
|
8231
|
-
h([s({ type: String })],
|
|
8268
|
+
h([s({ type: String })], Ki.prototype, "label", void 0), h([s({ type: String })], Ki.prototype, "value", void 0), h([s({
|
|
8232
8269
|
type: Boolean,
|
|
8233
8270
|
attribute: "show-divider",
|
|
8234
8271
|
reflect: !0
|
|
8235
|
-
})],
|
|
8272
|
+
})], Ki.prototype, "showDivider", void 0), h([s({
|
|
8236
8273
|
type: String,
|
|
8237
8274
|
reflect: !0
|
|
8238
|
-
})],
|
|
8275
|
+
})], Ki.prototype, "align", void 0), h([s({
|
|
8239
8276
|
type: String,
|
|
8240
8277
|
reflect: !0
|
|
8241
|
-
})],
|
|
8278
|
+
})], Ki.prototype, "scale", void 0), h([s({ type: Object })], Ki.prototype, "params", void 0), h([s({ type: Object })], Ki.prototype, "data", void 0), Ki = h([o("aithe-metrics")], Ki);
|
|
8242
8279
|
//#endregion
|
|
8243
8280
|
//#region src/components/data/metrics-group.ts
|
|
8244
|
-
var
|
|
8281
|
+
var qi = class extends Et {
|
|
8245
8282
|
constructor(...e) {
|
|
8246
8283
|
super(...e), this.direction = "horizontal", this.gap = 16, this.align = "left", this.params = {}, this.data = null, this._containerRef = ie();
|
|
8247
8284
|
}
|
|
8248
8285
|
static {
|
|
8249
|
-
this.styles = [
|
|
8286
|
+
this.styles = [x, t`
|
|
8250
8287
|
:host {
|
|
8251
8288
|
display: block;
|
|
8252
8289
|
}
|
|
@@ -8292,10 +8329,10 @@ var Yi = class extends Et {
|
|
|
8292
8329
|
`;
|
|
8293
8330
|
}
|
|
8294
8331
|
};
|
|
8295
|
-
h([s({ type: String })],
|
|
8332
|
+
h([s({ type: String })], qi.prototype, "direction", void 0), h([s({ type: Number })], qi.prototype, "gap", void 0), h([s({ type: String })], qi.prototype, "align", void 0), h([s({ type: Object })], qi.prototype, "params", void 0), h([s({ type: Object })], qi.prototype, "data", void 0), qi = h([o("aithe-metrics-group")], qi);
|
|
8296
8333
|
//#endregion
|
|
8297
8334
|
//#region src/core/router/index.ts
|
|
8298
|
-
function
|
|
8335
|
+
function Ji(e) {
|
|
8299
8336
|
let t = [];
|
|
8300
8337
|
if (e === "*") return {
|
|
8301
8338
|
regex: /^.*$/,
|
|
@@ -8307,14 +8344,14 @@ function Xi(e) {
|
|
|
8307
8344
|
paramNames: t
|
|
8308
8345
|
};
|
|
8309
8346
|
}
|
|
8310
|
-
function
|
|
8347
|
+
function Yi(e) {
|
|
8311
8348
|
let t = {};
|
|
8312
8349
|
if (!e) return t;
|
|
8313
8350
|
let n = new URLSearchParams(e);
|
|
8314
8351
|
for (let [e, r] of n) t[e] = r;
|
|
8315
8352
|
return t;
|
|
8316
8353
|
}
|
|
8317
|
-
var
|
|
8354
|
+
var Xi = class {
|
|
8318
8355
|
constructor(e) {
|
|
8319
8356
|
this.compiled = [], this.listeners = /* @__PURE__ */ new Set(), this.guards = [], this._currentLocation = null, this._started = !1, this.handleRouteChange = () => {
|
|
8320
8357
|
this.resolve();
|
|
@@ -8370,7 +8407,7 @@ var Qi = class {
|
|
|
8370
8407
|
return {
|
|
8371
8408
|
path: t,
|
|
8372
8409
|
params: a,
|
|
8373
|
-
query:
|
|
8410
|
+
query: Yi(n),
|
|
8374
8411
|
route: r.route,
|
|
8375
8412
|
fullPath: e
|
|
8376
8413
|
};
|
|
@@ -8379,7 +8416,7 @@ var Qi = class {
|
|
|
8379
8416
|
return {
|
|
8380
8417
|
path: t,
|
|
8381
8418
|
params: {},
|
|
8382
|
-
query:
|
|
8419
|
+
query: Yi(n),
|
|
8383
8420
|
route: null,
|
|
8384
8421
|
fullPath: e
|
|
8385
8422
|
};
|
|
@@ -8389,7 +8426,7 @@ var Qi = class {
|
|
|
8389
8426
|
}
|
|
8390
8427
|
compileRoutes() {
|
|
8391
8428
|
this.compiled = this.routes.map((e) => {
|
|
8392
|
-
let { regex: t, paramNames: n } =
|
|
8429
|
+
let { regex: t, paramNames: n } = Ji(e.path);
|
|
8393
8430
|
return {
|
|
8394
8431
|
route: e,
|
|
8395
8432
|
regex: t,
|
|
@@ -8410,7 +8447,7 @@ var Qi = class {
|
|
|
8410
8447
|
let t = e.indexOf("?");
|
|
8411
8448
|
return t === -1 ? [e, ""] : [e.slice(0, t), e.slice(t + 1)];
|
|
8412
8449
|
}
|
|
8413
|
-
},
|
|
8450
|
+
}, Zi = class extends g {
|
|
8414
8451
|
constructor(...e) {
|
|
8415
8452
|
super(...e), this.mode = "vertical", this.active = "", this.collapsed = !1, this.selectable = !0, this.syncChildren = () => {
|
|
8416
8453
|
let e = Array.from(this.querySelectorAll("aithe-menu-item")), t = Array.from(this.querySelectorAll("aithe-sub-menu"));
|
|
@@ -8425,7 +8462,7 @@ var Qi = class {
|
|
|
8425
8462
|
};
|
|
8426
8463
|
}
|
|
8427
8464
|
static {
|
|
8428
|
-
this.styles = [
|
|
8465
|
+
this.styles = [x, t`
|
|
8429
8466
|
:host {
|
|
8430
8467
|
position: relative;
|
|
8431
8468
|
display: block;
|
|
@@ -8463,10 +8500,10 @@ var Qi = class {
|
|
|
8463
8500
|
`;
|
|
8464
8501
|
}
|
|
8465
8502
|
};
|
|
8466
|
-
h([s({ type: String })],
|
|
8503
|
+
h([s({ type: String })], Zi.prototype, "mode", void 0), h([s({ type: String })], Zi.prototype, "active", void 0), h([s({ type: Boolean })], Zi.prototype, "collapsed", void 0), h([s({ type: Boolean })], Zi.prototype, "selectable", void 0), Zi = h([o("aithe-menu")], Zi);
|
|
8467
8504
|
//#endregion
|
|
8468
8505
|
//#region src/components/navigation/menu-item.ts
|
|
8469
|
-
var
|
|
8506
|
+
var Qi = class extends g {
|
|
8470
8507
|
constructor(...e) {
|
|
8471
8508
|
super(...e), this.name = "", this.title = "", this.icon = "", this.disabled = !1, this.active = !1, this.menuMode = "vertical", this.collapsed = !1, this.select = () => {
|
|
8472
8509
|
this.disabled || this.emit("aithe-menu-select", { name: this.name });
|
|
@@ -8475,7 +8512,7 @@ var ea = class extends g {
|
|
|
8475
8512
|
};
|
|
8476
8513
|
}
|
|
8477
8514
|
static {
|
|
8478
|
-
this.styles = [
|
|
8515
|
+
this.styles = [x, t`
|
|
8479
8516
|
:host {
|
|
8480
8517
|
display: block;
|
|
8481
8518
|
}
|
|
@@ -8560,23 +8597,23 @@ var ea = class extends g {
|
|
|
8560
8597
|
`;
|
|
8561
8598
|
}
|
|
8562
8599
|
};
|
|
8563
|
-
h([s({ type: String })],
|
|
8600
|
+
h([s({ type: String })], Qi.prototype, "name", void 0), h([s({ type: String })], Qi.prototype, "title", void 0), h([s({ type: String })], Qi.prototype, "icon", void 0), h([s({
|
|
8564
8601
|
type: Boolean,
|
|
8565
8602
|
reflect: !0
|
|
8566
|
-
})],
|
|
8603
|
+
})], Qi.prototype, "disabled", void 0), h([s({
|
|
8567
8604
|
type: Boolean,
|
|
8568
8605
|
reflect: !0
|
|
8569
|
-
})],
|
|
8606
|
+
})], Qi.prototype, "active", void 0), h([s({ attribute: !1 })], Qi.prototype, "menuMode", void 0), h([s({ attribute: !1 })], Qi.prototype, "collapsed", void 0), Qi = h([o("aithe-menu-item")], Qi);
|
|
8570
8607
|
//#endregion
|
|
8571
8608
|
//#region src/components/navigation/sub-menu.ts
|
|
8572
|
-
var
|
|
8609
|
+
var N = class extends g {
|
|
8573
8610
|
constructor(...e) {
|
|
8574
8611
|
super(...e), this.name = "", this.title = "", this.icon = "", this.disabled = !1, this.open = !1, this.active = !1, this.menuMode = "vertical", this.collapsed = !1, this.toggle = () => {
|
|
8575
8612
|
this.disabled || (this.open = !this.open);
|
|
8576
8613
|
};
|
|
8577
8614
|
}
|
|
8578
8615
|
static {
|
|
8579
|
-
this.styles = [
|
|
8616
|
+
this.styles = [x, t`
|
|
8580
8617
|
:host {
|
|
8581
8618
|
display: block;
|
|
8582
8619
|
position: relative;
|
|
@@ -8618,7 +8655,6 @@ var j = class extends g {
|
|
|
8618
8655
|
|
|
8619
8656
|
.toggle.active {
|
|
8620
8657
|
color: var(--aithe-color-text);
|
|
8621
|
-
background: var(--aithe-color-surface-muted);
|
|
8622
8658
|
}
|
|
8623
8659
|
|
|
8624
8660
|
.toggle.active .toggle-icon {
|
|
@@ -8727,16 +8763,16 @@ var j = class extends g {
|
|
|
8727
8763
|
`;
|
|
8728
8764
|
}
|
|
8729
8765
|
};
|
|
8730
|
-
h([s({ type: String })],
|
|
8766
|
+
h([s({ type: String })], N.prototype, "name", void 0), h([s({ type: String })], N.prototype, "title", void 0), h([s({ type: String })], N.prototype, "icon", void 0), h([s({
|
|
8731
8767
|
type: Boolean,
|
|
8732
8768
|
reflect: !0
|
|
8733
|
-
})],
|
|
8769
|
+
})], N.prototype, "disabled", void 0), h([s({
|
|
8734
8770
|
type: Boolean,
|
|
8735
8771
|
reflect: !0
|
|
8736
|
-
})],
|
|
8772
|
+
})], N.prototype, "open", void 0), h([s({ attribute: !1 })], N.prototype, "active", void 0), h([s({ attribute: !1 })], N.prototype, "menuMode", void 0), h([s({ attribute: !1 })], N.prototype, "collapsed", void 0), N = h([o("aithe-sub-menu")], N);
|
|
8737
8773
|
//#endregion
|
|
8738
8774
|
//#region src/components/navigation/breadcrumb.ts
|
|
8739
|
-
var
|
|
8775
|
+
var $i = class extends g {
|
|
8740
8776
|
constructor(...e) {
|
|
8741
8777
|
super(...e), this.separator = "/", this.syncItems = () => {
|
|
8742
8778
|
let e = this.items.filter((e) => e instanceof HTMLElement && e.tagName.toLowerCase() === "aithe-breadcrumb-item");
|
|
@@ -8744,7 +8780,7 @@ var ta = class extends g {
|
|
|
8744
8780
|
};
|
|
8745
8781
|
}
|
|
8746
8782
|
static {
|
|
8747
|
-
this.styles = [
|
|
8783
|
+
this.styles = [x, t`
|
|
8748
8784
|
:host {
|
|
8749
8785
|
display: block;
|
|
8750
8786
|
}
|
|
@@ -8764,15 +8800,15 @@ var ta = class extends g {
|
|
|
8764
8800
|
`;
|
|
8765
8801
|
}
|
|
8766
8802
|
};
|
|
8767
|
-
h([s({ type: String })],
|
|
8803
|
+
h([s({ type: String })], $i.prototype, "separator", void 0), h([u()], $i.prototype, "items", void 0), $i = h([o("aithe-breadcrumb")], $i);
|
|
8768
8804
|
//#endregion
|
|
8769
8805
|
//#region src/components/navigation/breadcrumb-item.ts
|
|
8770
|
-
var
|
|
8806
|
+
var ea = class extends g {
|
|
8771
8807
|
constructor(...e) {
|
|
8772
8808
|
super(...e), this.href = "", this.target = "", this.disabled = !1, this.current = !1, this.separator = "/";
|
|
8773
8809
|
}
|
|
8774
8810
|
static {
|
|
8775
|
-
this.styles = [
|
|
8811
|
+
this.styles = [x, t`
|
|
8776
8812
|
:host {
|
|
8777
8813
|
display: inline-flex;
|
|
8778
8814
|
align-items: center;
|
|
@@ -8821,21 +8857,21 @@ var na = class extends g {
|
|
|
8821
8857
|
`;
|
|
8822
8858
|
}
|
|
8823
8859
|
};
|
|
8824
|
-
h([s({ type: String })],
|
|
8860
|
+
h([s({ type: String })], ea.prototype, "href", void 0), h([s({ type: String })], ea.prototype, "target", void 0), h([s({
|
|
8825
8861
|
type: Boolean,
|
|
8826
8862
|
reflect: !0
|
|
8827
|
-
})],
|
|
8863
|
+
})], ea.prototype, "disabled", void 0), h([s({
|
|
8828
8864
|
type: Boolean,
|
|
8829
8865
|
reflect: !0
|
|
8830
|
-
})],
|
|
8866
|
+
})], ea.prototype, "current", void 0), h([s({ type: String })], ea.prototype, "separator", void 0), ea = h([o("aithe-breadcrumb-item")], ea);
|
|
8831
8867
|
//#endregion
|
|
8832
8868
|
//#region src/components/navigation/steps.ts
|
|
8833
|
-
var
|
|
8869
|
+
var ta = class extends g {
|
|
8834
8870
|
constructor(...e) {
|
|
8835
8871
|
super(...e), this.current = 0, this.size = "md", this.direction = "horizontal", this.items = "[]";
|
|
8836
8872
|
}
|
|
8837
8873
|
static {
|
|
8838
|
-
this.styles = [
|
|
8874
|
+
this.styles = [x, t`
|
|
8839
8875
|
:host {
|
|
8840
8876
|
display: block;
|
|
8841
8877
|
}
|
|
@@ -8952,10 +8988,10 @@ var ra = class extends g {
|
|
|
8952
8988
|
`;
|
|
8953
8989
|
}
|
|
8954
8990
|
};
|
|
8955
|
-
h([s({ type: Number })],
|
|
8991
|
+
h([s({ type: Number })], ta.prototype, "current", void 0), h([s({ type: String })], ta.prototype, "size", void 0), h([s({ type: String })], ta.prototype, "direction", void 0), h([s({ type: String })], ta.prototype, "items", void 0), ta = h([o("aithe-steps")], ta);
|
|
8956
8992
|
//#endregion
|
|
8957
8993
|
//#region src/components/navigation/back-top.ts
|
|
8958
|
-
var
|
|
8994
|
+
var na = class extends g {
|
|
8959
8995
|
constructor(...e) {
|
|
8960
8996
|
super(...e), this.target = "", this.visibilityHeight = 260, this.visible = !1, this.scrollTarget = null, this.handleScroll = () => {
|
|
8961
8997
|
let e = this.scrollTarget instanceof Window ? globalThis.scrollY : this.scrollTarget.scrollTop;
|
|
@@ -8975,7 +9011,7 @@ var ia = class extends g {
|
|
|
8975
9011
|
};
|
|
8976
9012
|
}
|
|
8977
9013
|
static {
|
|
8978
|
-
this.styles = [
|
|
9014
|
+
this.styles = [x, t`
|
|
8979
9015
|
:host {
|
|
8980
9016
|
position: fixed;
|
|
8981
9017
|
right: 28px;
|
|
@@ -9029,13 +9065,13 @@ var ia = class extends g {
|
|
|
9029
9065
|
` : n``;
|
|
9030
9066
|
}
|
|
9031
9067
|
};
|
|
9032
|
-
h([s({ type: String })],
|
|
9068
|
+
h([s({ type: String })], na.prototype, "target", void 0), h([s({
|
|
9033
9069
|
type: Number,
|
|
9034
9070
|
attribute: "visibility-height"
|
|
9035
|
-
})],
|
|
9071
|
+
})], na.prototype, "visibilityHeight", void 0), h([d()], na.prototype, "visible", void 0), na = h([o("aithe-back-top")], na);
|
|
9036
9072
|
//#endregion
|
|
9037
9073
|
//#region src/components/theme/theme-picker.ts
|
|
9038
|
-
var
|
|
9074
|
+
var ra = class extends g {
|
|
9039
9075
|
constructor(...e) {
|
|
9040
9076
|
super(...e), this.value = "light", this.placement = "bottom-end", this.iconOnly = !1, this.open = !1, this.handleViewportChange = () => this.updatePosition(), this.handleOutsideClick = (e) => {
|
|
9041
9077
|
this.open && (e.composedPath().includes(this) || (this.open = !1));
|
|
@@ -9047,7 +9083,7 @@ var aa = class extends g {
|
|
|
9047
9083
|
};
|
|
9048
9084
|
}
|
|
9049
9085
|
static {
|
|
9050
|
-
this.styles = [
|
|
9086
|
+
this.styles = [x, t`
|
|
9051
9087
|
:host {
|
|
9052
9088
|
display: inline-flex;
|
|
9053
9089
|
position: relative;
|
|
@@ -9144,7 +9180,7 @@ var aa = class extends g {
|
|
|
9144
9180
|
updatePosition() {
|
|
9145
9181
|
let e = this.overlayEl, t = this.triggerEl;
|
|
9146
9182
|
if (!e || !t || !this.open) return;
|
|
9147
|
-
let n =
|
|
9183
|
+
let n = mr(t.getBoundingClientRect(), e.getBoundingClientRect(), this.placement, { offset: 8 });
|
|
9148
9184
|
e.style.left = `${n.left}px`, e.style.top = `${n.top}px`;
|
|
9149
9185
|
}
|
|
9150
9186
|
render() {
|
|
@@ -9173,13 +9209,13 @@ var aa = class extends g {
|
|
|
9173
9209
|
`;
|
|
9174
9210
|
}
|
|
9175
9211
|
};
|
|
9176
|
-
h([s({ type: String })],
|
|
9212
|
+
h([s({ type: String })], ra.prototype, "value", void 0), h([s({ type: String })], ra.prototype, "placement", void 0), h([s({
|
|
9177
9213
|
type: Boolean,
|
|
9178
9214
|
attribute: "icon-only"
|
|
9179
|
-
})],
|
|
9215
|
+
})], ra.prototype, "iconOnly", void 0), h([d()], ra.prototype, "open", void 0), h([c(".trigger")], ra.prototype, "triggerEl", void 0), h([c(".overlay")], ra.prototype, "overlayEl", void 0), ra = h([o("aithe-theme-picker")], ra);
|
|
9180
9216
|
//#endregion
|
|
9181
9217
|
//#region src/components/theme/theme-preview.ts
|
|
9182
|
-
var
|
|
9218
|
+
var ia = class extends g {
|
|
9183
9219
|
constructor(...e) {
|
|
9184
9220
|
super(...e), this.value = "light", this.previewTheme = this.value, this.previewShape = y.getShape(), this.previewShadow = y.getShadow(), this.previewTypo = y.getTypo(), this.handleThemeChange = (e) => {
|
|
9185
9221
|
e.preventDefault(), this.previewTheme = e.detail.theme;
|
|
@@ -9213,8 +9249,8 @@ var oa = class extends g {
|
|
|
9213
9249
|
static {
|
|
9214
9250
|
this.styles = [
|
|
9215
9251
|
a(He),
|
|
9216
|
-
|
|
9217
|
-
|
|
9252
|
+
x,
|
|
9253
|
+
Cr,
|
|
9218
9254
|
t`
|
|
9219
9255
|
:host {
|
|
9220
9256
|
display: block;
|
|
@@ -9494,10 +9530,10 @@ var oa = class extends g {
|
|
|
9494
9530
|
`;
|
|
9495
9531
|
}
|
|
9496
9532
|
};
|
|
9497
|
-
h([s({ type: String })],
|
|
9533
|
+
h([s({ type: String })], ia.prototype, "value", void 0), h([d()], ia.prototype, "previewTheme", void 0), h([d()], ia.prototype, "previewShape", void 0), h([d()], ia.prototype, "previewShadow", void 0), h([d()], ia.prototype, "previewTypo", void 0), ia = h([o("aithe-theme-preview")], ia);
|
|
9498
9534
|
//#endregion
|
|
9499
9535
|
//#region src/components/theme/shape-picker.ts
|
|
9500
|
-
var
|
|
9536
|
+
var aa = class extends g {
|
|
9501
9537
|
constructor(...e) {
|
|
9502
9538
|
super(...e), this.placement = "bottom-end", this.iconOnly = !1, this.open = !1, this.currentShape = y.getShape(), this.handleViewportChange = () => this.updatePosition(), this.handleOutsideClick = (e) => {
|
|
9503
9539
|
this.open && (e.composedPath().includes(this) || (this.open = !1));
|
|
@@ -9509,7 +9545,7 @@ var M = class extends g {
|
|
|
9509
9545
|
};
|
|
9510
9546
|
}
|
|
9511
9547
|
static {
|
|
9512
|
-
this.styles = [
|
|
9548
|
+
this.styles = [x, t`
|
|
9513
9549
|
:host {
|
|
9514
9550
|
display: inline-flex;
|
|
9515
9551
|
position: relative;
|
|
@@ -9604,7 +9640,7 @@ var M = class extends g {
|
|
|
9604
9640
|
updatePosition() {
|
|
9605
9641
|
let e = this.overlayEl, t = this.triggerEl;
|
|
9606
9642
|
if (!e || !t || !this.open) return;
|
|
9607
|
-
let n =
|
|
9643
|
+
let n = mr(t.getBoundingClientRect(), e.getBoundingClientRect(), this.placement, { offset: 8 });
|
|
9608
9644
|
e.style.left = `${n.left}px`, e.style.top = `${n.top}px`;
|
|
9609
9645
|
}
|
|
9610
9646
|
render() {
|
|
@@ -9633,13 +9669,13 @@ var M = class extends g {
|
|
|
9633
9669
|
`;
|
|
9634
9670
|
}
|
|
9635
9671
|
};
|
|
9636
|
-
h([s({ type: String })],
|
|
9672
|
+
h([s({ type: String })], aa.prototype, "placement", void 0), h([s({
|
|
9637
9673
|
type: Boolean,
|
|
9638
9674
|
attribute: "icon-only"
|
|
9639
|
-
})],
|
|
9675
|
+
})], aa.prototype, "iconOnly", void 0), h([s({ type: String })], aa.prototype, "value", void 0), h([d()], aa.prototype, "open", void 0), h([d()], aa.prototype, "currentShape", void 0), h([c(".trigger")], aa.prototype, "triggerEl", void 0), h([c(".overlay")], aa.prototype, "overlayEl", void 0), aa = h([o("aithe-shape-picker")], aa);
|
|
9640
9676
|
//#endregion
|
|
9641
9677
|
//#region src/components/theme/shadow-picker.ts
|
|
9642
|
-
var
|
|
9678
|
+
var P = class extends g {
|
|
9643
9679
|
constructor(...e) {
|
|
9644
9680
|
super(...e), this.placement = "bottom-end", this.iconOnly = !1, this.open = !1, this.currentShadow = y.getShadow(), this.handleViewportChange = () => this.updatePosition(), this.handleOutsideClick = (e) => {
|
|
9645
9681
|
this.open && (e.composedPath().includes(this) || (this.open = !1));
|
|
@@ -9651,7 +9687,7 @@ var N = class extends g {
|
|
|
9651
9687
|
};
|
|
9652
9688
|
}
|
|
9653
9689
|
static {
|
|
9654
|
-
this.styles = [
|
|
9690
|
+
this.styles = [x, t`
|
|
9655
9691
|
:host {
|
|
9656
9692
|
display: inline-flex;
|
|
9657
9693
|
position: relative;
|
|
@@ -9746,7 +9782,7 @@ var N = class extends g {
|
|
|
9746
9782
|
updatePosition() {
|
|
9747
9783
|
let e = this.overlayEl, t = this.triggerEl;
|
|
9748
9784
|
if (!e || !t || !this.open) return;
|
|
9749
|
-
let n =
|
|
9785
|
+
let n = mr(t.getBoundingClientRect(), e.getBoundingClientRect(), this.placement, { offset: 8 });
|
|
9750
9786
|
e.style.left = `${n.left}px`, e.style.top = `${n.top}px`;
|
|
9751
9787
|
}
|
|
9752
9788
|
render() {
|
|
@@ -9775,13 +9811,13 @@ var N = class extends g {
|
|
|
9775
9811
|
`;
|
|
9776
9812
|
}
|
|
9777
9813
|
};
|
|
9778
|
-
h([s({ type: String })],
|
|
9814
|
+
h([s({ type: String })], P.prototype, "placement", void 0), h([s({
|
|
9779
9815
|
type: Boolean,
|
|
9780
9816
|
attribute: "icon-only"
|
|
9781
|
-
})],
|
|
9817
|
+
})], P.prototype, "iconOnly", void 0), h([s({ type: String })], P.prototype, "value", void 0), h([d()], P.prototype, "open", void 0), h([d()], P.prototype, "currentShadow", void 0), h([c(".trigger")], P.prototype, "triggerEl", void 0), h([c(".overlay")], P.prototype, "overlayEl", void 0), P = h([o("aithe-shadow-picker")], P);
|
|
9782
9818
|
//#endregion
|
|
9783
9819
|
//#region src/components/theme/typo-picker.ts
|
|
9784
|
-
var
|
|
9820
|
+
var oa = class extends g {
|
|
9785
9821
|
constructor(...e) {
|
|
9786
9822
|
super(...e), this.placement = "bottom-end", this.iconOnly = !1, this.open = !1, this.currentTypo = y.getTypo(), this.handleViewportChange = () => this.updatePosition(), this.handleOutsideClick = (e) => {
|
|
9787
9823
|
this.open && (e.composedPath().includes(this) || (this.open = !1));
|
|
@@ -9793,7 +9829,7 @@ var P = class extends g {
|
|
|
9793
9829
|
};
|
|
9794
9830
|
}
|
|
9795
9831
|
static {
|
|
9796
|
-
this.styles = [
|
|
9832
|
+
this.styles = [x, t`
|
|
9797
9833
|
:host {
|
|
9798
9834
|
display: inline-flex;
|
|
9799
9835
|
position: relative;
|
|
@@ -9888,7 +9924,7 @@ var P = class extends g {
|
|
|
9888
9924
|
updatePosition() {
|
|
9889
9925
|
let e = this.overlayEl, t = this.triggerEl;
|
|
9890
9926
|
if (!e || !t || !this.open) return;
|
|
9891
|
-
let n =
|
|
9927
|
+
let n = mr(t.getBoundingClientRect(), e.getBoundingClientRect(), this.placement, { offset: 8 });
|
|
9892
9928
|
e.style.left = `${n.left}px`, e.style.top = `${n.top}px`;
|
|
9893
9929
|
}
|
|
9894
9930
|
render() {
|
|
@@ -9917,10 +9953,10 @@ var P = class extends g {
|
|
|
9917
9953
|
`;
|
|
9918
9954
|
}
|
|
9919
9955
|
};
|
|
9920
|
-
h([s({ type: String })],
|
|
9956
|
+
h([s({ type: String })], oa.prototype, "placement", void 0), h([s({
|
|
9921
9957
|
type: Boolean,
|
|
9922
9958
|
attribute: "icon-only"
|
|
9923
|
-
})],
|
|
9959
|
+
})], oa.prototype, "iconOnly", void 0), h([s({ type: String })], oa.prototype, "value", void 0), h([d()], oa.prototype, "open", void 0), h([d()], oa.prototype, "currentTypo", void 0), h([c(".trigger")], oa.prototype, "triggerEl", void 0), h([c(".overlay")], oa.prototype, "overlayEl", void 0), oa = h([o("aithe-typo-picker")], oa);
|
|
9924
9960
|
//#endregion
|
|
9925
9961
|
//#region src/components/form/checkbox.ts
|
|
9926
9962
|
var sa = class extends g {
|
|
@@ -9941,7 +9977,7 @@ var sa = class extends g {
|
|
|
9941
9977
|
};
|
|
9942
9978
|
}
|
|
9943
9979
|
static {
|
|
9944
|
-
this.styles = [
|
|
9980
|
+
this.styles = [x, t`
|
|
9945
9981
|
:host {
|
|
9946
9982
|
display: inline-flex;
|
|
9947
9983
|
}
|
|
@@ -10013,7 +10049,7 @@ var ca = class extends g {
|
|
|
10013
10049
|
}
|
|
10014
10050
|
}
|
|
10015
10051
|
static {
|
|
10016
|
-
this.styles = [
|
|
10052
|
+
this.styles = [x, t`
|
|
10017
10053
|
:host {
|
|
10018
10054
|
display: inline-flex;
|
|
10019
10055
|
flex-wrap: wrap;
|
|
@@ -10060,7 +10096,7 @@ var la = class extends g {
|
|
|
10060
10096
|
};
|
|
10061
10097
|
}
|
|
10062
10098
|
static {
|
|
10063
|
-
this.styles = [
|
|
10099
|
+
this.styles = [x, t`
|
|
10064
10100
|
:host {
|
|
10065
10101
|
display: inline-flex;
|
|
10066
10102
|
}
|
|
@@ -10125,7 +10161,7 @@ var ua = class extends g {
|
|
|
10125
10161
|
};
|
|
10126
10162
|
}
|
|
10127
10163
|
static {
|
|
10128
|
-
this.styles = [
|
|
10164
|
+
this.styles = [x, t`
|
|
10129
10165
|
:host {
|
|
10130
10166
|
display: inline-flex;
|
|
10131
10167
|
flex-wrap: wrap;
|
|
@@ -10157,7 +10193,7 @@ var ua = class extends g {
|
|
|
10157
10193
|
h([s({ type: String })], ua.prototype, "value", void 0), h([s({ type: Boolean })], ua.prototype, "disabled", void 0), h([s({ type: String })], ua.prototype, "name", void 0), ua = h([o("aithe-radio-group")], ua);
|
|
10158
10194
|
//#endregion
|
|
10159
10195
|
//#region src/components/form/select.ts
|
|
10160
|
-
var F = class extends
|
|
10196
|
+
var F = class extends hr {
|
|
10161
10197
|
constructor(...e) {
|
|
10162
10198
|
super(...e), this.optionsJson = "", this.options = [], this.value = "", this.title = "", this.icon = "", this.placeholder = "", this.searchable = !1, this.clearable = !1, this.disabled = !1, this.placement = "bottom-start", this.query = "", this.activeIndex = -1, this.handleOutsidePointer = (e) => {
|
|
10163
10199
|
this.open && !e.composedPath().includes(this) && (this.open = !1);
|
|
@@ -10200,9 +10236,9 @@ var F = class extends gr {
|
|
|
10200
10236
|
}
|
|
10201
10237
|
static {
|
|
10202
10238
|
this.styles = [
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10239
|
+
x,
|
|
10240
|
+
br(".panel"),
|
|
10241
|
+
Cr,
|
|
10206
10242
|
t`
|
|
10207
10243
|
:host {
|
|
10208
10244
|
display: inline-flex;
|
|
@@ -10346,6 +10382,18 @@ var F = class extends gr {
|
|
|
10346
10382
|
color: var(--aithe-color-text-muted);
|
|
10347
10383
|
text-align: center;
|
|
10348
10384
|
}
|
|
10385
|
+
|
|
10386
|
+
.group-header {
|
|
10387
|
+
padding: var(--aithe-space-2) var(--aithe-space-3);
|
|
10388
|
+
font-size: var(--aithe-font-size-xs);
|
|
10389
|
+
font-weight: var(--aithe-font-weight-medium);
|
|
10390
|
+
color: var(--aithe-color-text-muted);
|
|
10391
|
+
user-select: none;
|
|
10392
|
+
}
|
|
10393
|
+
|
|
10394
|
+
.group .option {
|
|
10395
|
+
padding-left: var(--aithe-space-6);
|
|
10396
|
+
}
|
|
10349
10397
|
`
|
|
10350
10398
|
];
|
|
10351
10399
|
}
|
|
@@ -10413,60 +10461,84 @@ var F = class extends gr {
|
|
|
10413
10461
|
>
|
|
10414
10462
|
<div class="value">
|
|
10415
10463
|
${this.icon ? n`
|
|
10416
|
-
|
|
10417
|
-
|
|
10464
|
+
<aithe-icon class="value-icon" name=${this.icon} size="16"></aithe-icon>
|
|
10465
|
+
` : r}
|
|
10418
10466
|
${i}
|
|
10419
10467
|
</div>
|
|
10420
10468
|
<span class="actions">
|
|
10421
10469
|
${this.clearable && this.value ? n`
|
|
10422
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10470
|
+
<button
|
|
10471
|
+
class="action"
|
|
10472
|
+
type="button"
|
|
10473
|
+
aria-label=${v("form.select.clearAriaLabel")}
|
|
10474
|
+
@click=${this.clearValue}
|
|
10475
|
+
>
|
|
10476
|
+
×
|
|
10477
|
+
</button>
|
|
10478
|
+
` : null}
|
|
10431
10479
|
<span aria-hidden="true">${this.open ? "▴" : "▾"}</span>
|
|
10432
10480
|
</span>
|
|
10433
10481
|
</div>
|
|
10434
10482
|
${this.open ? n`
|
|
10435
|
-
|
|
10436
|
-
|
|
10483
|
+
<div class="panel" role="listbox">${this.renderOptionList()}</div>
|
|
10484
|
+
` : null}
|
|
10437
10485
|
`;
|
|
10438
10486
|
}
|
|
10439
10487
|
renderOptionList() {
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10488
|
+
if (!this.filteredOptions.length) return [n`
|
|
10489
|
+
<div class="empty">${v("form.select.emptyText")}</div>
|
|
10490
|
+
`];
|
|
10491
|
+
if (!this.filteredOptions.some((e) => e.group)) return this.filteredOptions.map((e, t) => this.renderOption(e, t));
|
|
10492
|
+
let e = 0;
|
|
10493
|
+
return this.groupedOptions.map((t) => {
|
|
10494
|
+
let i = t.label ? n`
|
|
10495
|
+
<div class="group-header" role="presentation">${t.label}</div>
|
|
10496
|
+
` : r, a = t.options.map((t) => this.renderOption(t, e++));
|
|
10444
10497
|
return n`
|
|
10445
|
-
<
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
10461
|
-
|
|
10498
|
+
<div class="group">${i}${a}</div>
|
|
10499
|
+
`;
|
|
10500
|
+
});
|
|
10501
|
+
}
|
|
10502
|
+
renderOption(e, t) {
|
|
10503
|
+
let i = e.variant && e.variant !== "default" ? e.variant : "", a = e.icon ? n`
|
|
10504
|
+
<aithe-icon class="option-icon" name=${e.icon} size="20"></aithe-icon>
|
|
10505
|
+
` : r;
|
|
10506
|
+
return n`
|
|
10507
|
+
<button
|
|
10508
|
+
class=${f({
|
|
10509
|
+
option: !0,
|
|
10510
|
+
active: t === this.activeIndex,
|
|
10511
|
+
[i]: !!i
|
|
10512
|
+
})}
|
|
10513
|
+
?disabled=${e.disabled}
|
|
10514
|
+
type="button"
|
|
10515
|
+
@click=${() => this.selectOption(e)}
|
|
10516
|
+
@mouseenter=${() => this.activeIndex = t}
|
|
10517
|
+
>
|
|
10518
|
+
${a}
|
|
10519
|
+
<span style="display:grid;gap:2px;flex:1;min-width:0;">
|
|
10520
|
+
<span style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">
|
|
10521
|
+
${e.label}
|
|
10522
|
+
</span>
|
|
10523
|
+
${e.description ? n`
|
|
10462
10524
|
<span class="desc">${e.description}</span>
|
|
10463
10525
|
` : null}
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10526
|
+
</span>
|
|
10527
|
+
</button>
|
|
10528
|
+
`;
|
|
10529
|
+
}
|
|
10530
|
+
get groupedOptions() {
|
|
10531
|
+
let e = /* @__PURE__ */ new Map();
|
|
10532
|
+
for (let t of this.filteredOptions) {
|
|
10533
|
+
let n = t.group ?? "";
|
|
10534
|
+
e.has(n) || e.set(n, []), e.get(n).push(t);
|
|
10535
|
+
}
|
|
10536
|
+
let t = [];
|
|
10537
|
+
for (let [n, r] of e) t.push({
|
|
10538
|
+
label: n || void 0,
|
|
10539
|
+
options: r
|
|
10540
|
+
});
|
|
10541
|
+
return t;
|
|
10470
10542
|
}
|
|
10471
10543
|
};
|
|
10472
10544
|
h([s({
|
|
@@ -10485,7 +10557,7 @@ var da = class extends g {
|
|
|
10485
10557
|
};
|
|
10486
10558
|
}
|
|
10487
10559
|
static {
|
|
10488
|
-
this.styles = [
|
|
10560
|
+
this.styles = [x, t`
|
|
10489
10561
|
:host {
|
|
10490
10562
|
display: inline-flex;
|
|
10491
10563
|
}
|
|
@@ -10594,7 +10666,7 @@ var fa = class extends g {
|
|
|
10594
10666
|
};
|
|
10595
10667
|
}
|
|
10596
10668
|
static {
|
|
10597
|
-
this.styles = [
|
|
10669
|
+
this.styles = [x, t`
|
|
10598
10670
|
:host {
|
|
10599
10671
|
display: inline-flex;
|
|
10600
10672
|
}
|
|
@@ -10689,7 +10761,7 @@ var I = class extends g {
|
|
|
10689
10761
|
};
|
|
10690
10762
|
}
|
|
10691
10763
|
static {
|
|
10692
|
-
this.styles = [
|
|
10764
|
+
this.styles = [x, t`
|
|
10693
10765
|
:host {
|
|
10694
10766
|
position: relative;
|
|
10695
10767
|
display: inline-flex;
|
|
@@ -10802,6 +10874,18 @@ var I = class extends g {
|
|
|
10802
10874
|
padding: var(--aithe-space-3);
|
|
10803
10875
|
color: var(--aithe-color-text-subtle);
|
|
10804
10876
|
}
|
|
10877
|
+
|
|
10878
|
+
.group-header {
|
|
10879
|
+
padding: var(--aithe-space-2) var(--aithe-space-3);
|
|
10880
|
+
font-size: var(--aithe-font-size-xs);
|
|
10881
|
+
font-weight: var(--aithe-font-weight-medium);
|
|
10882
|
+
color: var(--aithe-color-text-muted);
|
|
10883
|
+
user-select: none;
|
|
10884
|
+
}
|
|
10885
|
+
|
|
10886
|
+
.group .item {
|
|
10887
|
+
padding-left: var(--aithe-space-6);
|
|
10888
|
+
}
|
|
10805
10889
|
`];
|
|
10806
10890
|
}
|
|
10807
10891
|
connectedCallback() {
|
|
@@ -10840,8 +10924,8 @@ var I = class extends g {
|
|
|
10840
10924
|
disabled: this.disabled
|
|
10841
10925
|
})} title=${this.title}>
|
|
10842
10926
|
${this.icon ? n`
|
|
10843
|
-
|
|
10844
|
-
|
|
10927
|
+
<aithe-icon class="value-icon" name=${this.icon} size="16"></aithe-icon>
|
|
10928
|
+
` : r}
|
|
10845
10929
|
<input
|
|
10846
10930
|
.value=${this.value}
|
|
10847
10931
|
placeholder=${this.placeholder || v("form.combobox.placeholder")}
|
|
@@ -10851,26 +10935,47 @@ var I = class extends g {
|
|
|
10851
10935
|
/>
|
|
10852
10936
|
</label>
|
|
10853
10937
|
${this.open ? n`
|
|
10854
|
-
|
|
10855
|
-
|
|
10938
|
+
<div class="panel">${this.renderOptionList(e)}</div>
|
|
10939
|
+
` : null}
|
|
10856
10940
|
`;
|
|
10857
10941
|
}
|
|
10858
10942
|
renderOptionList(e) {
|
|
10859
|
-
return e.length ? e.map((e) => {
|
|
10860
|
-
let t = e.
|
|
10861
|
-
<
|
|
10862
|
-
` : r;
|
|
10943
|
+
return e.length ? e.some((e) => e.group) ? this.groupedOptions(e).map((e) => {
|
|
10944
|
+
let t = e.label ? n`
|
|
10945
|
+
<div class="group-header" role="presentation">${e.label}</div>
|
|
10946
|
+
` : r, i = e.options.map((e) => this.renderOption(e));
|
|
10863
10947
|
return n`
|
|
10864
|
-
<
|
|
10865
|
-
<span style="display:inline-flex;align-items:center;gap:var(--aithe-space-2);">
|
|
10866
|
-
${i}${e.label}
|
|
10867
|
-
</span>
|
|
10868
|
-
</button>
|
|
10948
|
+
<div class="group">${t}${i}</div>
|
|
10869
10949
|
`;
|
|
10870
|
-
}) : [n`
|
|
10950
|
+
}) : e.map((e) => this.renderOption(e)) : [n`
|
|
10871
10951
|
<div class="empty">${v("form.combobox.emptyText")}</div>
|
|
10872
10952
|
`];
|
|
10873
10953
|
}
|
|
10954
|
+
renderOption(e) {
|
|
10955
|
+
let t = e.variant && e.variant !== "default" ? e.variant : "", i = e.icon ? n`
|
|
10956
|
+
<aithe-icon class="option-icon" name=${e.icon} size="16"></aithe-icon>
|
|
10957
|
+
` : r;
|
|
10958
|
+
return n`
|
|
10959
|
+
<button class="item ${t}" type="button" @click=${() => this.selectOption(e)}>
|
|
10960
|
+
<span style="display:inline-flex;align-items:center;gap:var(--aithe-space-2);">
|
|
10961
|
+
${i}${e.label}
|
|
10962
|
+
</span>
|
|
10963
|
+
</button>
|
|
10964
|
+
`;
|
|
10965
|
+
}
|
|
10966
|
+
groupedOptions(e) {
|
|
10967
|
+
let t = /* @__PURE__ */ new Map();
|
|
10968
|
+
for (let n of e) {
|
|
10969
|
+
let e = n.group ?? "";
|
|
10970
|
+
t.has(e) || t.set(e, []), t.get(e).push(n);
|
|
10971
|
+
}
|
|
10972
|
+
let n = [];
|
|
10973
|
+
for (let [e, r] of t) n.push({
|
|
10974
|
+
label: e || void 0,
|
|
10975
|
+
options: r
|
|
10976
|
+
});
|
|
10977
|
+
return n;
|
|
10978
|
+
}
|
|
10874
10979
|
};
|
|
10875
10980
|
h([s({ type: String })], I.prototype, "value", void 0), h([s({ type: String })], I.prototype, "title", void 0), h([s({ type: String })], I.prototype, "icon", void 0), h([s({ type: String })], I.prototype, "options", void 0), h([s({ type: Boolean })], I.prototype, "filterable", void 0), h([s({
|
|
10876
10981
|
type: Boolean,
|
|
@@ -10883,7 +10988,7 @@ var pa = class extends g {
|
|
|
10883
10988
|
super(...e), this.value = "", this.format = "YYYY-MM-DD", this.range = !1, this.disabled = !1, this.endValue = "";
|
|
10884
10989
|
}
|
|
10885
10990
|
static {
|
|
10886
|
-
this.styles = [
|
|
10991
|
+
this.styles = [x, t`
|
|
10887
10992
|
:host {
|
|
10888
10993
|
display: inline-flex;
|
|
10889
10994
|
}
|
|
@@ -10958,7 +11063,7 @@ var ma = class extends g {
|
|
|
10958
11063
|
super(...e), this.value = "", this.format = "HH:mm", this.step = 300, this.disabled = !1;
|
|
10959
11064
|
}
|
|
10960
11065
|
static {
|
|
10961
|
-
this.styles = [
|
|
11066
|
+
this.styles = [x, t`
|
|
10962
11067
|
:host {
|
|
10963
11068
|
display: inline-flex;
|
|
10964
11069
|
}
|
|
@@ -11012,7 +11117,7 @@ var ha = class extends g {
|
|
|
11012
11117
|
super(...e), this.min = 0, this.max = 100, this.step = 1, this.range = !1, this.value = "50", this.disabled = !1;
|
|
11013
11118
|
}
|
|
11014
11119
|
static {
|
|
11015
|
-
this.styles = [
|
|
11120
|
+
this.styles = [x, t`
|
|
11016
11121
|
:host {
|
|
11017
11122
|
display: block;
|
|
11018
11123
|
width: min(100%, 320px);
|
|
@@ -11089,7 +11194,7 @@ var ga = class extends g {
|
|
|
11089
11194
|
super(...e), this.max = 5, this.allowHalf = !1, this.color = "var(--aithe-warning-5)", this.value = 0;
|
|
11090
11195
|
}
|
|
11091
11196
|
static {
|
|
11092
|
-
this.styles = [
|
|
11197
|
+
this.styles = [x, t`
|
|
11093
11198
|
:host {
|
|
11094
11199
|
display: inline-flex;
|
|
11095
11200
|
}
|
|
@@ -11161,7 +11266,7 @@ var _a = class extends g {
|
|
|
11161
11266
|
};
|
|
11162
11267
|
}
|
|
11163
11268
|
static {
|
|
11164
|
-
this.styles = [
|
|
11269
|
+
this.styles = [x, t`
|
|
11165
11270
|
:host {
|
|
11166
11271
|
display: block;
|
|
11167
11272
|
}
|
|
@@ -11200,7 +11305,7 @@ var va = class extends g {
|
|
|
11200
11305
|
super(...e), this.label = "", this.title = "", this.icon = "", this.prop = "", this.required = !1, this.error = "", this.internalError = "";
|
|
11201
11306
|
}
|
|
11202
11307
|
static {
|
|
11203
|
-
this.styles = [
|
|
11308
|
+
this.styles = [x, t`
|
|
11204
11309
|
:host {
|
|
11205
11310
|
display: grid;
|
|
11206
11311
|
gap: var(--aithe-space-2);
|
|
@@ -11270,7 +11375,7 @@ var ya = class extends g {
|
|
|
11270
11375
|
};
|
|
11271
11376
|
}
|
|
11272
11377
|
static {
|
|
11273
|
-
this.styles = [
|
|
11378
|
+
this.styles = [x, t`
|
|
11274
11379
|
:host {
|
|
11275
11380
|
display: grid;
|
|
11276
11381
|
gap: var(--aithe-space-3);
|
|
@@ -11343,7 +11448,7 @@ var L = class extends g {
|
|
|
11343
11448
|
super(...e), this.data = "[]", this.value = "[]", this.titles = "", this.searchable = !1, this.leftSelected = /* @__PURE__ */ new Set(), this.rightSelected = /* @__PURE__ */ new Set(), this.leftQuery = "", this.rightQuery = "";
|
|
11344
11449
|
}
|
|
11345
11450
|
static {
|
|
11346
|
-
this.styles = [
|
|
11451
|
+
this.styles = [x, t`
|
|
11347
11452
|
:host {
|
|
11348
11453
|
display: grid;
|
|
11349
11454
|
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
@@ -11539,7 +11644,7 @@ var R = class extends g {
|
|
|
11539
11644
|
return this.initialValues ?? {};
|
|
11540
11645
|
}
|
|
11541
11646
|
static {
|
|
11542
|
-
this.styles = [
|
|
11647
|
+
this.styles = [x, t`
|
|
11543
11648
|
:host {
|
|
11544
11649
|
display: block;
|
|
11545
11650
|
width: 100%;
|
|
@@ -11719,7 +11824,7 @@ var ba = /* @__PURE__ */ new Set([
|
|
|
11719
11824
|
static toComparable(e) {
|
|
11720
11825
|
if (e == null) return "";
|
|
11721
11826
|
if (typeof e == "boolean" || typeof e == "number") return e;
|
|
11722
|
-
let t =
|
|
11827
|
+
let t = b(e);
|
|
11723
11828
|
if (ba.has(t)) return !0;
|
|
11724
11829
|
if (xa.has(t)) return !1;
|
|
11725
11830
|
let n = Number(t);
|
|
@@ -11814,7 +11919,27 @@ var ba = /* @__PURE__ */ new Set([
|
|
|
11814
11919
|
static types() {
|
|
11815
11920
|
return Array.from(e._controls.keys());
|
|
11816
11921
|
}
|
|
11817
|
-
}, Ea = {
|
|
11922
|
+
}, Ea = class e {
|
|
11923
|
+
static {
|
|
11924
|
+
this._views = /* @__PURE__ */ new Map();
|
|
11925
|
+
}
|
|
11926
|
+
static register(t) {
|
|
11927
|
+
if (e._views.has(t.type)) throw Error(`[ViewRegistry] View type "${t.type}" is already registered. Call ViewRegistry.unregister() first if you want to replace it.`);
|
|
11928
|
+
e._views.set(t.type, t);
|
|
11929
|
+
}
|
|
11930
|
+
static unregister(t) {
|
|
11931
|
+
return e._views.delete(t);
|
|
11932
|
+
}
|
|
11933
|
+
static get(t) {
|
|
11934
|
+
return e._views.get(t);
|
|
11935
|
+
}
|
|
11936
|
+
static has(t) {
|
|
11937
|
+
return e._views.has(t);
|
|
11938
|
+
}
|
|
11939
|
+
static types() {
|
|
11940
|
+
return Array.from(e._views.keys());
|
|
11941
|
+
}
|
|
11942
|
+
}, Da = {
|
|
11818
11943
|
ts: "typescript",
|
|
11819
11944
|
js: "javascript",
|
|
11820
11945
|
py: "python",
|
|
@@ -11855,7 +11980,7 @@ var ba = /* @__PURE__ */ new Set([
|
|
|
11855
11980
|
mm: "objectivec",
|
|
11856
11981
|
h: "c",
|
|
11857
11982
|
hpp: "cpp"
|
|
11858
|
-
},
|
|
11983
|
+
}, Oa = {
|
|
11859
11984
|
name: "heading",
|
|
11860
11985
|
block: (e) => {
|
|
11861
11986
|
let t = e[0];
|
|
@@ -11873,7 +11998,7 @@ var ba = /* @__PURE__ */ new Set([
|
|
|
11873
11998
|
consumed: 1
|
|
11874
11999
|
} : null;
|
|
11875
12000
|
}
|
|
11876
|
-
},
|
|
12001
|
+
}, ka = {
|
|
11877
12002
|
name: "setext-heading",
|
|
11878
12003
|
block: (e) => {
|
|
11879
12004
|
if (e.length < 2) return null;
|
|
@@ -11892,7 +12017,7 @@ var ba = /* @__PURE__ */ new Set([
|
|
|
11892
12017
|
consumed: 2
|
|
11893
12018
|
} : null;
|
|
11894
12019
|
}
|
|
11895
|
-
},
|
|
12020
|
+
}, Aa = {
|
|
11896
12021
|
name: "thematic-break",
|
|
11897
12022
|
block: (e) => {
|
|
11898
12023
|
let t = e[0];
|
|
@@ -11901,14 +12026,14 @@ var ba = /* @__PURE__ */ new Set([
|
|
|
11901
12026
|
consumed: 1
|
|
11902
12027
|
};
|
|
11903
12028
|
}
|
|
11904
|
-
},
|
|
12029
|
+
}, ja = {
|
|
11905
12030
|
name: "code-fence",
|
|
11906
12031
|
block: (e) => {
|
|
11907
12032
|
let t = e[0];
|
|
11908
12033
|
if (!t) return null;
|
|
11909
12034
|
let n = /^[ \t]{0,3}(`{3,}|~{3,})([^\n]{0,200})$/.exec(t);
|
|
11910
12035
|
if (!n) return null;
|
|
11911
|
-
let r = n[1], i = n[2].trim().split(/\s+/)[0] || "", a =
|
|
12036
|
+
let r = n[1], i = n[2].trim().split(/\s+/)[0] || "", a = Da[i] || i, o = [], s = 1;
|
|
11912
12037
|
for (; s < e.length;) {
|
|
11913
12038
|
let t = e[s];
|
|
11914
12039
|
if (t !== void 0 && new RegExp(String.raw`^[ \t]{0,3}${r}[ \t]*(?:\n|$)`).exec(t)) {
|
|
@@ -11926,7 +12051,7 @@ var ba = /* @__PURE__ */ new Set([
|
|
|
11926
12051
|
consumed: s
|
|
11927
12052
|
};
|
|
11928
12053
|
}
|
|
11929
|
-
},
|
|
12054
|
+
}, Ma = {
|
|
11930
12055
|
name: "table",
|
|
11931
12056
|
block: (e) => {
|
|
11932
12057
|
if (e.length < 2 || !e[0]?.includes("|") || !e[1]?.includes("|")) return null;
|
|
@@ -11934,9 +12059,9 @@ var ba = /* @__PURE__ */ new Set([
|
|
|
11934
12059
|
for (let n of e) if (n?.includes("|")) t.push(n);
|
|
11935
12060
|
else break;
|
|
11936
12061
|
if (t.length < 2) return null;
|
|
11937
|
-
let n =
|
|
12062
|
+
let n = Na(t[0] ?? "");
|
|
11938
12063
|
if (!n.length) return null;
|
|
11939
|
-
let r =
|
|
12064
|
+
let r = Na(t[1] ?? "").map((e) => {
|
|
11940
12065
|
let t = e.trim();
|
|
11941
12066
|
return t.startsWith(":") && t.endsWith(":") ? "center" : t.endsWith(":") ? "right" : t.startsWith(":") ? "left" : "";
|
|
11942
12067
|
});
|
|
@@ -11956,7 +12081,7 @@ var ba = /* @__PURE__ */ new Set([
|
|
|
11956
12081
|
align: r,
|
|
11957
12082
|
body: t.slice(2).map((e) => ({
|
|
11958
12083
|
type: "table-row",
|
|
11959
|
-
children:
|
|
12084
|
+
children: Na(e).map((e) => ({
|
|
11960
12085
|
type: "table-cell",
|
|
11961
12086
|
children: [{
|
|
11962
12087
|
type: "text",
|
|
@@ -11969,11 +12094,11 @@ var ba = /* @__PURE__ */ new Set([
|
|
|
11969
12094
|
};
|
|
11970
12095
|
}
|
|
11971
12096
|
};
|
|
11972
|
-
function
|
|
12097
|
+
function Na(e) {
|
|
11973
12098
|
let t = e.trim(), n = t.startsWith("|") ? t.slice(1) : t;
|
|
11974
12099
|
return (n.endsWith("|") ? n.slice(0, -1) : n).split("|").map((e) => e.trim());
|
|
11975
12100
|
}
|
|
11976
|
-
var
|
|
12101
|
+
var Pa = {
|
|
11977
12102
|
name: "blockquote",
|
|
11978
12103
|
block: (e) => {
|
|
11979
12104
|
let t = [], n = 0;
|
|
@@ -11997,54 +12122,135 @@ var Na = {
|
|
|
11997
12122
|
};
|
|
11998
12123
|
}
|
|
11999
12124
|
};
|
|
12000
|
-
function
|
|
12001
|
-
let
|
|
12002
|
-
if (
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12125
|
+
function Fa(e, t = 0) {
|
|
12126
|
+
let n = /^( *)([-*+]) (.+)$/.exec(e);
|
|
12127
|
+
if (n) {
|
|
12128
|
+
let e = n[1].length;
|
|
12129
|
+
return e < t ? null : {
|
|
12130
|
+
marker: n[2],
|
|
12131
|
+
text: n[3],
|
|
12132
|
+
checked: null,
|
|
12133
|
+
indent: e
|
|
12134
|
+
};
|
|
12135
|
+
}
|
|
12136
|
+
let r = /^( *)(\d+)\. (.+)$/.exec(e);
|
|
12137
|
+
if (r) {
|
|
12138
|
+
let e = r[1].length;
|
|
12139
|
+
return e < t ? null : {
|
|
12140
|
+
marker: r[2],
|
|
12141
|
+
text: r[3],
|
|
12142
|
+
checked: null,
|
|
12143
|
+
indent: e
|
|
12144
|
+
};
|
|
12145
|
+
}
|
|
12146
|
+
return null;
|
|
12147
|
+
}
|
|
12148
|
+
function Ia(e) {
|
|
12149
|
+
return !e || e.trim() === "";
|
|
12150
|
+
}
|
|
12151
|
+
function La(e, t, n) {
|
|
12152
|
+
let r = t;
|
|
12153
|
+
for (; r < e.length && Ia(e[r]);) r++;
|
|
12154
|
+
if (r >= e.length) return !1;
|
|
12155
|
+
let i = e[r];
|
|
12156
|
+
if (i === void 0) return !1;
|
|
12157
|
+
let a = Fa(i, 0);
|
|
12158
|
+
return !!(a && a.indent > n);
|
|
12159
|
+
}
|
|
12160
|
+
function Ra(e, t) {
|
|
12161
|
+
let n = Fa(e, t);
|
|
12162
|
+
if (n && n.indent === t) return !0;
|
|
12163
|
+
let r = " ".repeat(t + 1);
|
|
12164
|
+
return !e.startsWith(r) && e.trim() !== "";
|
|
12165
|
+
}
|
|
12166
|
+
function za(e, t, n) {
|
|
12167
|
+
let r = [], i = t;
|
|
12168
|
+
for (; i < e.length;) {
|
|
12169
|
+
let t = e[i];
|
|
12170
|
+
if (Ia(t)) {
|
|
12171
|
+
if (La(e, i + 1, n)) {
|
|
12172
|
+
r.push(""), i++;
|
|
12173
|
+
continue;
|
|
12174
|
+
}
|
|
12175
|
+
break;
|
|
12176
|
+
}
|
|
12177
|
+
if (t !== void 0 && Ra(t, n)) break;
|
|
12178
|
+
t !== void 0 && r.push(t), i++;
|
|
12179
|
+
}
|
|
12180
|
+
return {
|
|
12181
|
+
subLines: r,
|
|
12182
|
+
nextI: i
|
|
12006
12183
|
};
|
|
12007
|
-
let n = /^(\d+)\. (.+)$/.exec(e);
|
|
12008
|
-
return n ? {
|
|
12009
|
-
marker: n[1],
|
|
12010
|
-
text: n[2],
|
|
12011
|
-
checked: null
|
|
12012
|
-
} : null;
|
|
12013
12184
|
}
|
|
12014
|
-
|
|
12185
|
+
function Ba(e, t, n) {
|
|
12186
|
+
let r = [{
|
|
12187
|
+
type: "paragraph",
|
|
12188
|
+
children: [{
|
|
12189
|
+
type: "raw-inline",
|
|
12190
|
+
value: e
|
|
12191
|
+
}]
|
|
12192
|
+
}];
|
|
12193
|
+
return t.length > 0 && r.push(...Ha(t, n)), r;
|
|
12194
|
+
}
|
|
12195
|
+
var Va = {
|
|
12015
12196
|
name: "list",
|
|
12016
12197
|
block: (e) => {
|
|
12017
|
-
|
|
12018
|
-
|
|
12019
|
-
|
|
12020
|
-
|
|
12021
|
-
|
|
12022
|
-
|
|
12023
|
-
|
|
12024
|
-
|
|
12025
|
-
t
|
|
12198
|
+
if (e.length === 0) return null;
|
|
12199
|
+
let t = e[0];
|
|
12200
|
+
if (t === void 0) return null;
|
|
12201
|
+
let n = Fa(t, 0);
|
|
12202
|
+
if (!n) return null;
|
|
12203
|
+
let r = /^\d/.test(n.marker), i = r ? Number.parseInt(n.marker, 10) : 1, a = n.indent, o = [], s = 0;
|
|
12204
|
+
for (; s < e.length;) {
|
|
12205
|
+
let t = e[s];
|
|
12206
|
+
if (Ia(t) || t === void 0) break;
|
|
12207
|
+
let n = Fa(t, a);
|
|
12208
|
+
if (!(n && n.indent === a) || /^\d/.test(n.marker) !== r) break;
|
|
12209
|
+
let i = n.text;
|
|
12210
|
+
s++;
|
|
12211
|
+
let { subLines: c, nextI: l } = za(e, s, a);
|
|
12212
|
+
s = l, o.push({
|
|
12213
|
+
text: i,
|
|
12214
|
+
children: Ba(i, c, a)
|
|
12215
|
+
});
|
|
12026
12216
|
}
|
|
12027
|
-
return
|
|
12217
|
+
return o.length === 0 ? null : {
|
|
12028
12218
|
nodes: [{
|
|
12029
12219
|
type: "list",
|
|
12030
12220
|
ordered: r,
|
|
12031
12221
|
start: i,
|
|
12032
|
-
children:
|
|
12222
|
+
children: o.map((e) => ({
|
|
12033
12223
|
type: "list-item",
|
|
12034
|
-
checked:
|
|
12035
|
-
children:
|
|
12036
|
-
type: "paragraph",
|
|
12037
|
-
children: [{
|
|
12038
|
-
type: "raw-inline",
|
|
12039
|
-
value: e.text
|
|
12040
|
-
}]
|
|
12041
|
-
}]
|
|
12224
|
+
checked: null,
|
|
12225
|
+
children: e.children
|
|
12042
12226
|
}))
|
|
12043
12227
|
}],
|
|
12044
|
-
consumed:
|
|
12228
|
+
consumed: s
|
|
12045
12229
|
};
|
|
12046
12230
|
}
|
|
12047
|
-
}
|
|
12231
|
+
};
|
|
12232
|
+
function Ha(e, t) {
|
|
12233
|
+
let n = [], r = e[0];
|
|
12234
|
+
if (r === void 0) return n;
|
|
12235
|
+
let i = Fa(r, 0);
|
|
12236
|
+
if (i && i.indent > t) {
|
|
12237
|
+
let r = Va.block(e);
|
|
12238
|
+
if (r) {
|
|
12239
|
+
n.push(...r.nodes);
|
|
12240
|
+
let i = e.slice(r.consumed);
|
|
12241
|
+
return i.length > 0 && n.push(...Ha(i, t)), n;
|
|
12242
|
+
}
|
|
12243
|
+
}
|
|
12244
|
+
let a = e.join("\n").trim();
|
|
12245
|
+
return a && n.push({
|
|
12246
|
+
type: "paragraph",
|
|
12247
|
+
children: [{
|
|
12248
|
+
type: "raw-inline",
|
|
12249
|
+
value: a
|
|
12250
|
+
}]
|
|
12251
|
+
}), n;
|
|
12252
|
+
}
|
|
12253
|
+
var Ua = {
|
|
12048
12254
|
name: "task-list",
|
|
12049
12255
|
block: (e) => {
|
|
12050
12256
|
let t = [], n = 0;
|
|
@@ -12078,7 +12284,7 @@ var Fa = {
|
|
|
12078
12284
|
consumed: n
|
|
12079
12285
|
};
|
|
12080
12286
|
}
|
|
12081
|
-
},
|
|
12287
|
+
}, Wa = {
|
|
12082
12288
|
name: "bold",
|
|
12083
12289
|
inline: (e) => {
|
|
12084
12290
|
let t = /^\*\*(.+?)\*\*/.exec(e);
|
|
@@ -12109,7 +12315,7 @@ var Fa = {
|
|
|
12109
12315
|
consumed: t[0].length
|
|
12110
12316
|
};
|
|
12111
12317
|
}
|
|
12112
|
-
},
|
|
12318
|
+
}, Ga = {
|
|
12113
12319
|
name: "italic",
|
|
12114
12320
|
inline: (e) => {
|
|
12115
12321
|
let t = /^([*_])(.+?)\1/.exec(e);
|
|
@@ -12124,7 +12330,7 @@ var Fa = {
|
|
|
12124
12330
|
consumed: t[0].length
|
|
12125
12331
|
} : null;
|
|
12126
12332
|
}
|
|
12127
|
-
},
|
|
12333
|
+
}, Ka = {
|
|
12128
12334
|
name: "code",
|
|
12129
12335
|
inline: (e) => {
|
|
12130
12336
|
let t = /^`(.+?)`/.exec(e);
|
|
@@ -12136,7 +12342,7 @@ var Fa = {
|
|
|
12136
12342
|
consumed: t[0].length
|
|
12137
12343
|
} : null;
|
|
12138
12344
|
}
|
|
12139
|
-
},
|
|
12345
|
+
}, qa = {
|
|
12140
12346
|
name: "delete",
|
|
12141
12347
|
inline: (e) => {
|
|
12142
12348
|
let t = /^~~(.+?)~~/.exec(e);
|
|
@@ -12152,7 +12358,7 @@ var Fa = {
|
|
|
12152
12358
|
} : null;
|
|
12153
12359
|
}
|
|
12154
12360
|
};
|
|
12155
|
-
function
|
|
12361
|
+
function Ja() {
|
|
12156
12362
|
return {
|
|
12157
12363
|
name: "link",
|
|
12158
12364
|
inline: (e) => {
|
|
@@ -12174,7 +12380,7 @@ function Va() {
|
|
|
12174
12380
|
}
|
|
12175
12381
|
};
|
|
12176
12382
|
}
|
|
12177
|
-
var
|
|
12383
|
+
var Ya = Ja(), Xa = {
|
|
12178
12384
|
name: "image",
|
|
12179
12385
|
inline: (e) => {
|
|
12180
12386
|
let t = /^!\[([^[\]]*?)]\(([^()]+?)\)/.exec(e);
|
|
@@ -12187,7 +12393,7 @@ var Ha = Va(), Ua = {
|
|
|
12187
12393
|
consumed: t[0].length
|
|
12188
12394
|
} : null;
|
|
12189
12395
|
}
|
|
12190
|
-
},
|
|
12396
|
+
}, Za = {
|
|
12191
12397
|
name: "icon",
|
|
12192
12398
|
inline: (e) => {
|
|
12193
12399
|
let t = /^:([a-zA-Z]\w*):/.exec(e);
|
|
@@ -12199,7 +12405,7 @@ var Ha = Va(), Ua = {
|
|
|
12199
12405
|
consumed: t[0].length
|
|
12200
12406
|
} : null;
|
|
12201
12407
|
}
|
|
12202
|
-
},
|
|
12408
|
+
}, Qa = {
|
|
12203
12409
|
smile: "😄",
|
|
12204
12410
|
grin: "😁",
|
|
12205
12411
|
joy: "😂",
|
|
@@ -12265,12 +12471,12 @@ var Ha = Va(), Ua = {
|
|
|
12265
12471
|
heart: "❤️",
|
|
12266
12472
|
plus: "➕",
|
|
12267
12473
|
minus: "➖"
|
|
12268
|
-
},
|
|
12474
|
+
}, $a = {
|
|
12269
12475
|
name: "emoji",
|
|
12270
12476
|
inline: (e) => {
|
|
12271
12477
|
let t = /^:([a-z_][a-z0-9_]*):/.exec(e);
|
|
12272
12478
|
if (!t) return null;
|
|
12273
|
-
let n = t[1], r =
|
|
12479
|
+
let n = t[1], r = Qa[n];
|
|
12274
12480
|
return r ? {
|
|
12275
12481
|
nodes: [{
|
|
12276
12482
|
type: "emoji",
|
|
@@ -12286,7 +12492,7 @@ var Ha = Va(), Ua = {
|
|
|
12286
12492
|
consumed: t[0].length
|
|
12287
12493
|
};
|
|
12288
12494
|
}
|
|
12289
|
-
},
|
|
12495
|
+
}, eo = class e {
|
|
12290
12496
|
constructor() {
|
|
12291
12497
|
this.blockParsers = [], this.inlineParsers = [], this._linkHooks = [];
|
|
12292
12498
|
}
|
|
@@ -12482,29 +12688,29 @@ var Ha = Va(), Ua = {
|
|
|
12482
12688
|
static renderChildren(t, n) {
|
|
12483
12689
|
return !t.children || t.children.length === 0 ? "" : t.children.map((t) => e.renderAst(t, n)).join("");
|
|
12484
12690
|
}
|
|
12485
|
-
},
|
|
12691
|
+
}, to = class extends eo {
|
|
12486
12692
|
constructor() {
|
|
12487
|
-
super(), this.use(
|
|
12693
|
+
super(), this.use(Wa), this.use(Ka), this.use(qa), this.use(Ya), this.use($a), this.use(Za);
|
|
12488
12694
|
}
|
|
12489
|
-
},
|
|
12695
|
+
}, no = class extends eo {
|
|
12490
12696
|
constructor() {
|
|
12491
|
-
super(), this.use(
|
|
12697
|
+
super(), this.use(ja), this.use(ka), this.use(Oa), this.use(Aa), this.use(Ma), this.use(Pa), this.use(Ua), this.use(Va), this.use(Xa), this.use(Ya), this.use(Wa), this.use(Ga), this.use(Ka), this.use(qa), this.use($a), this.use(Za);
|
|
12492
12698
|
}
|
|
12493
|
-
},
|
|
12494
|
-
function
|
|
12495
|
-
let t = new
|
|
12496
|
-
if (t.addLinkHook(
|
|
12699
|
+
}, ro = (e) => /^(?:https?:|ftp:|\/\/)/i.test(e) ? "" : e;
|
|
12700
|
+
function io(e) {
|
|
12701
|
+
let t = new to();
|
|
12702
|
+
if (t.addLinkHook(ro), e) for (let n of e) t.addLinkHook(n);
|
|
12497
12703
|
return t;
|
|
12498
12704
|
}
|
|
12499
|
-
var
|
|
12705
|
+
var ao = class extends g {
|
|
12500
12706
|
constructor(...e) {
|
|
12501
12707
|
super(...e), this.content = "";
|
|
12502
12708
|
}
|
|
12503
12709
|
get parser() {
|
|
12504
|
-
return (!this._parser || this._linkHooks !== this.linkHooks) && (this._parser =
|
|
12710
|
+
return (!this._parser || this._linkHooks !== this.linkHooks) && (this._parser = io(this.linkHooks), this._linkHooks = this.linkHooks), this._parser;
|
|
12505
12711
|
}
|
|
12506
12712
|
static {
|
|
12507
|
-
this.styles = [
|
|
12713
|
+
this.styles = [x, t`
|
|
12508
12714
|
:host {
|
|
12509
12715
|
display: block;
|
|
12510
12716
|
line-height: 1.6;
|
|
@@ -12573,17 +12779,19 @@ var Qa = class extends g {
|
|
|
12573
12779
|
`;
|
|
12574
12780
|
}
|
|
12575
12781
|
};
|
|
12576
|
-
h([s({ type: String })],
|
|
12782
|
+
h([s({ type: String })], ao.prototype, "content", void 0), h([s({ attribute: !1 })], ao.prototype, "linkHooks", void 0), ao = h([o("aithe-label")], ao);
|
|
12577
12783
|
//#endregion
|
|
12578
12784
|
//#region src/components/form/autoform-item.ts
|
|
12579
12785
|
var z = class extends g {
|
|
12580
12786
|
constructor(...e) {
|
|
12581
|
-
super(...e), this.name = "", this.type = "input", this.label = "", this.icon = "", this.tooltip = "", this.description = "", this.dft = "", this.placeholder = "", this.disabled = !1, this.required = !1, this.pattern = "", this.message = "", this.options = [], this.value = "", this.inputType = "text", this.min = "", this.max = "", this.step = "", this.rows = "3", this.validateOnChange = !0, this.errorMsg = "", this.dependencies = [], this.rules = [], this.dependencyValues = {}, this._visible = !0, this._ruleDisabled = !1, this._ruleOptions = null, this.pendingClear = !1, this.handleInputChange = (e) => {
|
|
12787
|
+
super(...e), this.name = "", this.type = "input", this.label = "", this.icon = "", this.tooltip = "", this.description = "", this.dft = "", this.placeholder = "", this.disabled = !1, this.required = !1, this.pattern = "", this.message = "", this.options = [], this.value = "", this.inputType = "text", this.min = "", this.max = "", this.step = "", this.rows = "3", this.validateOnChange = !0, this.errorMsg = "", this.dependencies = [], this.rules = [], this.dependencyValues = {}, this._visible = !0, this._ruleDisabled = !1, this._ruleOptions = null, this._passwordVisible = !1, this.pendingClear = !1, this.handleInputChange = (e) => {
|
|
12582
12788
|
let t = e.target;
|
|
12583
12789
|
this.value = t.value, this.emit("aithe-change", {
|
|
12584
12790
|
name: this.name,
|
|
12585
12791
|
value: this.value
|
|
12586
12792
|
}), this.validateOnChange && this.validate();
|
|
12793
|
+
}, this.togglePasswordVisible = () => {
|
|
12794
|
+
this._passwordVisible = !this._passwordVisible;
|
|
12587
12795
|
}, this.handleSwitchChange = (e) => {
|
|
12588
12796
|
let t = e.target;
|
|
12589
12797
|
this.value = t.checked ? "true" : "false", this.emit("aithe-change", {
|
|
@@ -12648,7 +12856,7 @@ var z = class extends g {
|
|
|
12648
12856
|
return this._visible;
|
|
12649
12857
|
}
|
|
12650
12858
|
static {
|
|
12651
|
-
this.styles = [
|
|
12859
|
+
this.styles = [x, t`
|
|
12652
12860
|
:host {
|
|
12653
12861
|
display: flex;
|
|
12654
12862
|
flex-direction: column;
|
|
@@ -12811,37 +13019,52 @@ var z = class extends g {
|
|
|
12811
13019
|
let e = Ta.get(this.type);
|
|
12812
13020
|
return e?.valueTransformer ? e.valueTransformer(this.value) : this.value;
|
|
12813
13021
|
}
|
|
13022
|
+
resolvePasswordType() {
|
|
13023
|
+
return this._passwordVisible ? "text" : "password";
|
|
13024
|
+
}
|
|
12814
13025
|
renderControl() {
|
|
12815
|
-
let e = this.placeholder || "", t = this.disabled || this._ruleDisabled,
|
|
12816
|
-
if (
|
|
13026
|
+
let e = this.placeholder || "", t = this.disabled || this._ruleDisabled, i = this._ruleOptions ?? this.options, a = Ta.get(this.type);
|
|
13027
|
+
if (a) return a.render({
|
|
12817
13028
|
value: this.value,
|
|
12818
13029
|
placeholder: e,
|
|
12819
13030
|
disabled: t,
|
|
12820
13031
|
name: this.name,
|
|
12821
|
-
options:
|
|
13032
|
+
options: i,
|
|
12822
13033
|
min: this.min,
|
|
12823
13034
|
max: this.max,
|
|
12824
13035
|
step: this.step,
|
|
12825
13036
|
rows: this.rows,
|
|
12826
13037
|
inputType: this.inputType,
|
|
12827
13038
|
onChange: (e) => {
|
|
12828
|
-
this.value = e == null || typeof e == "object" ? "" :
|
|
13039
|
+
this.value = e == null || typeof e == "object" ? "" : b(e), this.emit("aithe-change", {
|
|
12829
13040
|
name: this.name,
|
|
12830
13041
|
value: this.getFieldValue()
|
|
12831
13042
|
}), this.validateOnChange && this.validate();
|
|
12832
13043
|
}
|
|
12833
13044
|
});
|
|
12834
13045
|
switch (this.type) {
|
|
12835
|
-
case "input":
|
|
13046
|
+
case "input": {
|
|
13047
|
+
let i = this.inputType === "password", a = i ? this.resolvePasswordType() : this.inputType || "text", o = this._passwordVisible ? "eyeOff" : "eye";
|
|
13048
|
+
return n`
|
|
12836
13049
|
<aithe-input
|
|
12837
|
-
.type=${
|
|
13050
|
+
.type=${a}
|
|
12838
13051
|
.placeholder=${e}
|
|
12839
13052
|
.value=${this.value}
|
|
12840
13053
|
?disabled=${t}
|
|
12841
13054
|
name=${this.name}
|
|
12842
13055
|
@aithe-change=${this.handleInputChange}
|
|
12843
|
-
|
|
13056
|
+
>
|
|
13057
|
+
${i ? n`
|
|
13058
|
+
<aithe-icon
|
|
13059
|
+
slot="suffix"
|
|
13060
|
+
name=${o}
|
|
13061
|
+
size="sm"
|
|
13062
|
+
@click=${this.togglePasswordVisible}
|
|
13063
|
+
></aithe-icon>
|
|
13064
|
+
` : r}
|
|
13065
|
+
</aithe-input>
|
|
12844
13066
|
`;
|
|
13067
|
+
}
|
|
12845
13068
|
case "textarea": return n`
|
|
12846
13069
|
<aithe-textarea
|
|
12847
13070
|
.placeholder=${e}
|
|
@@ -12856,7 +13079,7 @@ var z = class extends g {
|
|
|
12856
13079
|
<aithe-select
|
|
12857
13080
|
.placeholder=${e}
|
|
12858
13081
|
.value=${this.value}
|
|
12859
|
-
.options=${
|
|
13082
|
+
.options=${i}
|
|
12860
13083
|
?disabled=${t}
|
|
12861
13084
|
name=${this.name}
|
|
12862
13085
|
@aithe-change=${this.handleSelectChange}
|
|
@@ -12869,7 +13092,7 @@ var z = class extends g {
|
|
|
12869
13092
|
name=${this.name}
|
|
12870
13093
|
@aithe-change=${this.handleRadioChange}
|
|
12871
13094
|
>
|
|
12872
|
-
${this.renderRadioOptions(
|
|
13095
|
+
${this.renderRadioOptions(i)}
|
|
12873
13096
|
</aithe-radio-group>
|
|
12874
13097
|
`;
|
|
12875
13098
|
case "checkbox": return n`
|
|
@@ -12879,7 +13102,7 @@ var z = class extends g {
|
|
|
12879
13102
|
name=${this.name}
|
|
12880
13103
|
@aithe-change=${this.handleCheckboxChange}
|
|
12881
13104
|
>
|
|
12882
|
-
${this.renderCheckboxOptions(
|
|
13105
|
+
${this.renderCheckboxOptions(i)}
|
|
12883
13106
|
</aithe-checkbox-group>
|
|
12884
13107
|
`;
|
|
12885
13108
|
case "switch": return n`
|
|
@@ -12950,7 +13173,7 @@ var z = class extends g {
|
|
|
12950
13173
|
<aithe-combobox
|
|
12951
13174
|
.placeholder=${e}
|
|
12952
13175
|
.value=${this.value}
|
|
12953
|
-
.options=${JSON.stringify(
|
|
13176
|
+
.options=${JSON.stringify(i)}
|
|
12954
13177
|
?disabled=${t}
|
|
12955
13178
|
name=${this.name}
|
|
12956
13179
|
@aithe-change=${this.handleComboboxChange}
|
|
@@ -13024,10 +13247,10 @@ h([s({ type: String })], z.prototype, "name", void 0), h([s({ type: String })],
|
|
|
13024
13247
|
})], z.prototype, "disabled", void 0), h([s({ type: Boolean })], z.prototype, "required", void 0), h([s({ type: String })], z.prototype, "pattern", void 0), h([s({ type: String })], z.prototype, "message", void 0), h([s({ attribute: !1 })], z.prototype, "options", void 0), h([s({ type: String })], z.prototype, "value", void 0), h([s({ type: String })], z.prototype, "inputType", void 0), h([s({ type: String })], z.prototype, "min", void 0), h([s({ type: String })], z.prototype, "max", void 0), h([s({ type: String })], z.prototype, "step", void 0), h([s({ type: String })], z.prototype, "rows", void 0), h([s({
|
|
13025
13248
|
type: Boolean,
|
|
13026
13249
|
attribute: "validate-on-change"
|
|
13027
|
-
})], z.prototype, "validateOnChange", void 0), h([d()], z.prototype, "errorMsg", void 0), h([s({ attribute: !1 })], z.prototype, "dependencies", void 0), h([s({ attribute: !1 })], z.prototype, "rules", void 0), h([s({ attribute: !1 })], z.prototype, "dependencyValues", void 0), h([d()], z.prototype, "_visible", void 0), h([d()], z.prototype, "_ruleDisabled", void 0), h([d()], z.prototype, "_ruleOptions", void 0), z = h([o("aithe-autoform-item")], z);
|
|
13250
|
+
})], z.prototype, "validateOnChange", void 0), h([d()], z.prototype, "errorMsg", void 0), h([s({ attribute: !1 })], z.prototype, "dependencies", void 0), h([s({ attribute: !1 })], z.prototype, "rules", void 0), h([s({ attribute: !1 })], z.prototype, "dependencyValues", void 0), h([d()], z.prototype, "_visible", void 0), h([d()], z.prototype, "_ruleDisabled", void 0), h([d()], z.prototype, "_ruleOptions", void 0), h([d()], z.prototype, "_passwordVisible", void 0), z = h([o("aithe-autoform-item")], z);
|
|
13028
13251
|
//#endregion
|
|
13029
13252
|
//#region src/components/feedback/dialog.ts
|
|
13030
|
-
var
|
|
13253
|
+
var oo = class extends g {
|
|
13031
13254
|
constructor(...e) {
|
|
13032
13255
|
super(...e), this.title = "Confirm", this.icon = "", this.visible = !1, this.closeable = !0, this.mask = !0, this.confirmText = "", this.cancelText = "", this.handleKeydown = (e) => {
|
|
13033
13256
|
e.key === "Escape" && this.visible && this.cancel();
|
|
@@ -13039,8 +13262,8 @@ var $a = class extends g {
|
|
|
13039
13262
|
}
|
|
13040
13263
|
static {
|
|
13041
13264
|
this.styles = [
|
|
13042
|
-
|
|
13043
|
-
|
|
13265
|
+
x,
|
|
13266
|
+
br(".panel"),
|
|
13044
13267
|
t`
|
|
13045
13268
|
:host {
|
|
13046
13269
|
display: contents;
|
|
@@ -13176,16 +13399,16 @@ var $a = class extends g {
|
|
|
13176
13399
|
`;
|
|
13177
13400
|
}
|
|
13178
13401
|
};
|
|
13179
|
-
h([s({ type: String })],
|
|
13402
|
+
h([s({ type: String })], oo.prototype, "title", void 0), h([s({ type: String })], oo.prototype, "icon", void 0), h([s({
|
|
13180
13403
|
type: Boolean,
|
|
13181
13404
|
reflect: !0
|
|
13182
|
-
})],
|
|
13405
|
+
})], oo.prototype, "visible", void 0), h([s({ type: Boolean })], oo.prototype, "closeable", void 0), h([s({ type: Boolean })], oo.prototype, "mask", void 0), h([s({
|
|
13183
13406
|
type: String,
|
|
13184
13407
|
attribute: "confirm-text"
|
|
13185
|
-
})],
|
|
13408
|
+
})], oo.prototype, "confirmText", void 0), h([s({
|
|
13186
13409
|
type: String,
|
|
13187
13410
|
attribute: "cancel-text"
|
|
13188
|
-
})],
|
|
13411
|
+
})], oo.prototype, "cancelText", void 0), oo = h([o("aithe-dialog")], oo);
|
|
13189
13412
|
//#endregion
|
|
13190
13413
|
//#region src/components/feedback/modal.ts
|
|
13191
13414
|
var B = class extends g {
|
|
@@ -13204,8 +13427,8 @@ var B = class extends g {
|
|
|
13204
13427
|
}
|
|
13205
13428
|
static {
|
|
13206
13429
|
this.styles = [
|
|
13207
|
-
|
|
13208
|
-
|
|
13430
|
+
x,
|
|
13431
|
+
br(".panel"),
|
|
13209
13432
|
t`
|
|
13210
13433
|
:host {
|
|
13211
13434
|
display: contents;
|
|
@@ -13404,8 +13627,8 @@ var V = class extends g {
|
|
|
13404
13627
|
}
|
|
13405
13628
|
static {
|
|
13406
13629
|
this.styles = [
|
|
13407
|
-
|
|
13408
|
-
|
|
13630
|
+
x,
|
|
13631
|
+
br(".panel"),
|
|
13409
13632
|
t`
|
|
13410
13633
|
:host {
|
|
13411
13634
|
display: contents;
|
|
@@ -13609,7 +13832,7 @@ h([s({
|
|
|
13609
13832
|
})], V.prototype, "closeOnEsc", void 0), h([c(".panel")], V.prototype, "panel", void 0), h([u({ slot: "header" })], V.prototype, "headerNodes", void 0), h([u({ slot: "footer" })], V.prototype, "footerNodes", void 0), h([d()], V.prototype, "hasHeaderSlot", void 0), h([d()], V.prototype, "hasFooterSlot", void 0), V = h([o("aithe-drawer")], V);
|
|
13610
13833
|
//#endregion
|
|
13611
13834
|
//#region src/components/feedback/tooltip.ts
|
|
13612
|
-
var
|
|
13835
|
+
var so = "aria-describedby", co = class extends hr {
|
|
13613
13836
|
constructor(...e) {
|
|
13614
13837
|
super(...e), this.content = "", this.title = "", this.icon = "", this.placement = "top", this.tooltipId = ur("aithe-tooltip"), this.showTooltip = () => {
|
|
13615
13838
|
this.open = !0;
|
|
@@ -13621,8 +13844,8 @@ var eo = "aria-describedby", to = class extends gr {
|
|
|
13621
13844
|
}
|
|
13622
13845
|
static {
|
|
13623
13846
|
this.styles = [
|
|
13624
|
-
|
|
13625
|
-
|
|
13847
|
+
x,
|
|
13848
|
+
br(".tooltip"),
|
|
13626
13849
|
t`
|
|
13627
13850
|
:host {
|
|
13628
13851
|
display: inline-flex;
|
|
@@ -13658,7 +13881,7 @@ var eo = "aria-describedby", to = class extends gr {
|
|
|
13658
13881
|
updated(e) {
|
|
13659
13882
|
if (super.updated(e), e.has("open")) {
|
|
13660
13883
|
let e = this.anchorElement;
|
|
13661
|
-
this.open ? e.setAttribute(
|
|
13884
|
+
this.open ? e.setAttribute(so, this.tooltipId) : e.getAttribute(so) === this.tooltipId && e.removeAttribute(so);
|
|
13662
13885
|
}
|
|
13663
13886
|
}
|
|
13664
13887
|
connectedCallback() {
|
|
@@ -13682,10 +13905,10 @@ var eo = "aria-describedby", to = class extends gr {
|
|
|
13682
13905
|
`;
|
|
13683
13906
|
}
|
|
13684
13907
|
};
|
|
13685
|
-
h([s({ type: String })],
|
|
13908
|
+
h([s({ type: String })], co.prototype, "content", void 0), h([s({ type: String })], co.prototype, "title", void 0), h([s({ type: String })], co.prototype, "icon", void 0), h([s({ type: String })], co.prototype, "placement", void 0), h([c(".tooltip")], co.prototype, "tooltip", void 0), co = h([o("aithe-tooltip")], co);
|
|
13686
13909
|
//#endregion
|
|
13687
13910
|
//#region src/components/feedback/popover.ts
|
|
13688
|
-
var
|
|
13911
|
+
var lo = class extends hr {
|
|
13689
13912
|
constructor(...e) {
|
|
13690
13913
|
super(...e), this.placement = "bottom", this.handleOutsidePointer = (e) => {
|
|
13691
13914
|
this.open && (e.composedPath().includes(this) || (this.open = !1));
|
|
@@ -13697,9 +13920,9 @@ var no = class extends gr {
|
|
|
13697
13920
|
}
|
|
13698
13921
|
static {
|
|
13699
13922
|
this.styles = [
|
|
13700
|
-
|
|
13701
|
-
|
|
13702
|
-
|
|
13923
|
+
x,
|
|
13924
|
+
br(".panel"),
|
|
13925
|
+
Cr,
|
|
13703
13926
|
t`
|
|
13704
13927
|
:host {
|
|
13705
13928
|
display: inline-flex;
|
|
@@ -13751,10 +13974,10 @@ var no = class extends gr {
|
|
|
13751
13974
|
`;
|
|
13752
13975
|
}
|
|
13753
13976
|
};
|
|
13754
|
-
h([s({ type: String })],
|
|
13977
|
+
h([s({ type: String })], lo.prototype, "placement", void 0), h([c(".panel")], lo.prototype, "panel", void 0), lo = h([o("aithe-popover")], lo);
|
|
13755
13978
|
//#endregion
|
|
13756
13979
|
//#region src/components/data/dropdown.ts
|
|
13757
|
-
var H = class extends
|
|
13980
|
+
var H = class extends hr {
|
|
13758
13981
|
constructor(...e) {
|
|
13759
13982
|
super(...e), this.trigger = "click", this.title = "", this.icon = "", this.itemsJson = "", this.items = [], this.placement = "bottom-start", this.itemFilter = null, this.activeId = "", this.handleOutsidePointer = (e) => {
|
|
13760
13983
|
this.open && (e.composedPath().includes(this) || e.composedPath().some((e) => e instanceof HTMLElement && e.tagName === "AITHE-THEME-PICKER") || (this.open = !1));
|
|
@@ -13779,8 +14002,8 @@ var H = class extends gr {
|
|
|
13779
14002
|
}
|
|
13780
14003
|
static {
|
|
13781
14004
|
this.styles = [
|
|
13782
|
-
|
|
13783
|
-
|
|
14005
|
+
x,
|
|
14006
|
+
br(".panel"),
|
|
13784
14007
|
t`
|
|
13785
14008
|
:host {
|
|
13786
14009
|
display: inline-flex;
|
|
@@ -13861,12 +14084,12 @@ h([s({ type: String })], H.prototype, "trigger", void 0), h([s({ type: String })
|
|
|
13861
14084
|
})], H.prototype, "itemsJson", void 0), h([s({ attribute: !1 })], H.prototype, "items", void 0), h([s({ type: String })], H.prototype, "placement", void 0), h([s({ attribute: !1 })], H.prototype, "itemFilter", void 0), h([c(".panel")], H.prototype, "panel", void 0), h([d()], H.prototype, "activeId", void 0), H = h([o("aithe-dropdown")], H);
|
|
13862
14085
|
//#endregion
|
|
13863
14086
|
//#region src/components/feedback/toast.ts
|
|
13864
|
-
var
|
|
14087
|
+
var uo = class extends g {
|
|
13865
14088
|
constructor(...e) {
|
|
13866
14089
|
super(...e), this.content = "", this.title = "", this.icon = "", this.type = "default", this.duration = 2400, this.visible = !0, this.timer = 0;
|
|
13867
14090
|
}
|
|
13868
14091
|
static {
|
|
13869
|
-
this.styles = [
|
|
14092
|
+
this.styles = [x, t`
|
|
13870
14093
|
:host {
|
|
13871
14094
|
position: fixed;
|
|
13872
14095
|
top: 24px;
|
|
@@ -13935,20 +14158,20 @@ var ro = class extends g {
|
|
|
13935
14158
|
`;
|
|
13936
14159
|
}
|
|
13937
14160
|
};
|
|
13938
|
-
h([s({ type: String })],
|
|
14161
|
+
h([s({ type: String })], uo.prototype, "content", void 0), h([s({ type: String })], uo.prototype, "title", void 0), h([s({ type: String })], uo.prototype, "icon", void 0), h([s({ type: String })], uo.prototype, "type", void 0), h([s({ type: Number })], uo.prototype, "duration", void 0), h([s({
|
|
13939
14162
|
type: Boolean,
|
|
13940
14163
|
reflect: !0
|
|
13941
|
-
})],
|
|
14164
|
+
})], uo.prototype, "visible", void 0), uo = h([o("aithe-toast")], uo);
|
|
13942
14165
|
//#endregion
|
|
13943
14166
|
//#region src/components/feedback/alert.ts
|
|
13944
|
-
var
|
|
14167
|
+
var fo = class extends g {
|
|
13945
14168
|
constructor(...e) {
|
|
13946
14169
|
super(...e), this.type = "default", this.title = "", this.icon = "", this.closable = !1, this.banner = !1, this.open = !0, this.close = () => {
|
|
13947
14170
|
this.open = !1, this.emit("aithe-close");
|
|
13948
14171
|
};
|
|
13949
14172
|
}
|
|
13950
14173
|
static {
|
|
13951
|
-
this.styles = [
|
|
14174
|
+
this.styles = [x, t`
|
|
13952
14175
|
:host {
|
|
13953
14176
|
display: block;
|
|
13954
14177
|
}
|
|
@@ -14025,20 +14248,20 @@ var io = class extends g {
|
|
|
14025
14248
|
`;
|
|
14026
14249
|
}
|
|
14027
14250
|
};
|
|
14028
|
-
h([s({ type: String })],
|
|
14251
|
+
h([s({ type: String })], fo.prototype, "type", void 0), h([s({ type: String })], fo.prototype, "title", void 0), h([s({ type: String })], fo.prototype, "icon", void 0), h([s({ type: Boolean })], fo.prototype, "closable", void 0), h([s({ type: Boolean })], fo.prototype, "banner", void 0), h([s({
|
|
14029
14252
|
type: Boolean,
|
|
14030
14253
|
reflect: !0
|
|
14031
|
-
})],
|
|
14254
|
+
})], fo.prototype, "open", void 0), fo = h([o("aithe-alert")], fo);
|
|
14032
14255
|
//#endregion
|
|
14033
14256
|
//#region src/components/feedback/notification.ts
|
|
14034
|
-
var
|
|
14257
|
+
var po = class extends g {
|
|
14035
14258
|
constructor(...e) {
|
|
14036
14259
|
super(...e), this.title = "", this.icon = "", this.content = "", this.type = "default", this.duration = 3200, this.open = !0, this.timer = 0, this.close = () => {
|
|
14037
14260
|
this.open = !1, this.emit("aithe-close");
|
|
14038
14261
|
};
|
|
14039
14262
|
}
|
|
14040
14263
|
static {
|
|
14041
|
-
this.styles = [
|
|
14264
|
+
this.styles = [x, t`
|
|
14042
14265
|
:host {
|
|
14043
14266
|
position: fixed;
|
|
14044
14267
|
top: 24px;
|
|
@@ -14132,18 +14355,18 @@ var ao = class extends g {
|
|
|
14132
14355
|
`;
|
|
14133
14356
|
}
|
|
14134
14357
|
};
|
|
14135
|
-
h([s({ type: String })],
|
|
14358
|
+
h([s({ type: String })], po.prototype, "title", void 0), h([s({ type: String })], po.prototype, "icon", void 0), h([s({ type: String })], po.prototype, "content", void 0), h([s({ type: String })], po.prototype, "type", void 0), h([s({ type: Number })], po.prototype, "duration", void 0), h([s({
|
|
14136
14359
|
type: Boolean,
|
|
14137
14360
|
reflect: !0
|
|
14138
|
-
})],
|
|
14361
|
+
})], po.prototype, "open", void 0), po = h([o("aithe-notification")], po);
|
|
14139
14362
|
//#endregion
|
|
14140
14363
|
//#region src/components/feedback/loading.ts
|
|
14141
|
-
var
|
|
14364
|
+
var mo = class extends g {
|
|
14142
14365
|
constructor(...e) {
|
|
14143
14366
|
super(...e), this.spinning = !0, this.size = "md", this.tip = "", this.fullscreen = !1;
|
|
14144
14367
|
}
|
|
14145
14368
|
static {
|
|
14146
|
-
this.styles = [
|
|
14369
|
+
this.styles = [x, t`
|
|
14147
14370
|
:host {
|
|
14148
14371
|
position: relative;
|
|
14149
14372
|
display: block;
|
|
@@ -14221,7 +14444,7 @@ var oo = class extends g {
|
|
|
14221
14444
|
`;
|
|
14222
14445
|
}
|
|
14223
14446
|
};
|
|
14224
|
-
h([s({ type: Boolean })],
|
|
14447
|
+
h([s({ type: Boolean })], mo.prototype, "spinning", void 0), h([s({ type: String })], mo.prototype, "size", void 0), h([s({ type: String })], mo.prototype, "tip", void 0), h([s({ type: Boolean })], mo.prototype, "fullscreen", void 0), mo = h([o("aithe-loading")], mo);
|
|
14225
14448
|
//#endregion
|
|
14226
14449
|
//#region src/components/data/table-column.ts
|
|
14227
14450
|
var U = class extends e {
|
|
@@ -14238,8 +14461,8 @@ h([s({ type: String })], U.prototype, "id", void 0), h([s({ type: String })], U.
|
|
|
14238
14461
|
})], U.prototype, "minWidth", void 0), h([s({ type: String })], U.prototype, "align", void 0), h([s({ type: Boolean })], U.prototype, "sortable", void 0), h([s({ type: String })], U.prototype, "fixed", void 0), h([s({ type: Boolean })], U.prototype, "resizable", void 0), h([s({ type: Boolean })], U.prototype, "draggable", void 0), h([s({ type: String })], U.prototype, "icon", void 0), h([s({ type: String })], U.prototype, "variant", void 0), h([s({ attribute: !1 })], U.prototype, "cellRenderer", void 0), h([s({ type: String })], U.prototype, "filter", void 0), h([s({ type: String })], U.prototype, "box", void 0), U = h([o("aithe-table-column")], U);
|
|
14239
14462
|
//#endregion
|
|
14240
14463
|
//#region src/components/data/table.ts
|
|
14241
|
-
var
|
|
14242
|
-
function
|
|
14464
|
+
var ho = 52, go = 40, _o = 120, vo = 5, yo = 15;
|
|
14465
|
+
function bo(e) {
|
|
14243
14466
|
return e == null || typeof e == "object" ? "" : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : "";
|
|
14244
14467
|
}
|
|
14245
14468
|
var W = class extends g {
|
|
@@ -14274,7 +14497,7 @@ var W = class extends g {
|
|
|
14274
14497
|
r !== this.focusedRowIndex && (this.focusedRowIndex = r, this.requestUpdate(), this._scrollRowIntoView(r));
|
|
14275
14498
|
}, this._onResizeMove = (e) => {
|
|
14276
14499
|
if (!this.resizeData) return;
|
|
14277
|
-
let t = this.resizeData, { startX: n, startWidth: r } = t, i = e.clientX - n, a = Math.max(
|
|
14500
|
+
let t = this.resizeData, { startX: n, startWidth: r } = t, i = e.clientX - n, a = Math.max(go, r + i), o = this.resolvedColumns.find((e) => e.id === t.columnId), s = o?.minWidth ? Number.parseInt(o.minWidth, 10) : go, c = Math.max(s, a), l = this.renderRoot?.querySelectorAll("th");
|
|
14278
14501
|
if (l) for (let e of l) {
|
|
14279
14502
|
let n = e;
|
|
14280
14503
|
n.dataset.columnId === t.columnId && (n.style.width = `${c}px`);
|
|
@@ -14296,7 +14519,7 @@ var W = class extends g {
|
|
|
14296
14519
|
columnId: this.resizeData.columnId,
|
|
14297
14520
|
width: t
|
|
14298
14521
|
}), this.resizeData = null;
|
|
14299
|
-
}, this.dragThreshold =
|
|
14522
|
+
}, this.dragThreshold = vo, this._onDragMove = (e) => {
|
|
14300
14523
|
if (!this.dragData) return;
|
|
14301
14524
|
let t = this.renderRoot?.querySelectorAll("th[data-column-id]");
|
|
14302
14525
|
if (t) {
|
|
@@ -14394,8 +14617,8 @@ var W = class extends g {
|
|
|
14394
14617
|
}
|
|
14395
14618
|
static {
|
|
14396
14619
|
this.styles = [
|
|
14397
|
-
|
|
14398
|
-
|
|
14620
|
+
x,
|
|
14621
|
+
Cr,
|
|
14399
14622
|
t`
|
|
14400
14623
|
:host {
|
|
14401
14624
|
display: block;
|
|
@@ -14482,7 +14705,7 @@ var W = class extends g {
|
|
|
14482
14705
|
top: 0;
|
|
14483
14706
|
right: 0;
|
|
14484
14707
|
bottom: 0;
|
|
14485
|
-
width: ${
|
|
14708
|
+
width: ${yo}px;
|
|
14486
14709
|
pointer-events: none;
|
|
14487
14710
|
background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.06));
|
|
14488
14711
|
transform: translateX(100%);
|
|
@@ -14494,7 +14717,7 @@ var W = class extends g {
|
|
|
14494
14717
|
top: 0;
|
|
14495
14718
|
left: 0;
|
|
14496
14719
|
bottom: 0;
|
|
14497
|
-
width: ${
|
|
14720
|
+
width: ${yo}px;
|
|
14498
14721
|
pointer-events: none;
|
|
14499
14722
|
background: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.06));
|
|
14500
14723
|
transform: translateX(-100%);
|
|
@@ -14677,9 +14900,9 @@ var W = class extends g {
|
|
|
14677
14900
|
}
|
|
14678
14901
|
|
|
14679
14902
|
.selection-cell {
|
|
14680
|
-
width: ${
|
|
14681
|
-
min-width: ${
|
|
14682
|
-
max-width: ${
|
|
14903
|
+
width: ${ho}px;
|
|
14904
|
+
min-width: ${ho}px;
|
|
14905
|
+
max-width: ${ho}px;
|
|
14683
14906
|
position: sticky;
|
|
14684
14907
|
left: 0;
|
|
14685
14908
|
z-index: 3;
|
|
@@ -14697,7 +14920,7 @@ var W = class extends g {
|
|
|
14697
14920
|
return e.sort((e, t) => {
|
|
14698
14921
|
let n = lr(e, this.sortKey), r = lr(t, this.sortKey);
|
|
14699
14922
|
if (typeof n == "number" && typeof r == "number") return this.sortOrder === "asc" ? n - r : r - n;
|
|
14700
|
-
let i =
|
|
14923
|
+
let i = bo(n), a = bo(r);
|
|
14701
14924
|
return this.sortOrder === "asc" ? i.localeCompare(a) : a.localeCompare(i);
|
|
14702
14925
|
}), e;
|
|
14703
14926
|
}
|
|
@@ -14709,7 +14932,7 @@ var W = class extends g {
|
|
|
14709
14932
|
}
|
|
14710
14933
|
getRecordKey(e, t) {
|
|
14711
14934
|
let n = lr(e, this.rowKey);
|
|
14712
|
-
return n == null ? String(t) :
|
|
14935
|
+
return n == null ? String(t) : b(n);
|
|
14713
14936
|
}
|
|
14714
14937
|
toggleSort(e) {
|
|
14715
14938
|
e.sortable && (this.sortKey === e.id ? this.sortOrder === "asc" ? this.sortOrder = "desc" : this.sortOrder === "desc" ? (this.sortOrder = "", this.sortKey = "") : this.sortOrder = "asc" : (this.sortKey = e.id, this.sortOrder = "asc"), this.emit("aithe-sort-change", {
|
|
@@ -14796,7 +15019,7 @@ var W = class extends g {
|
|
|
14796
15019
|
}
|
|
14797
15020
|
renderCell(e, t) {
|
|
14798
15021
|
let n = lr(t, e.dataIndex ? String(e.dataIndex) : e.id);
|
|
14799
|
-
return e.render ? e.render(e.id, n, t) : n == null ? r : typeof n == "object" ? JSON.stringify(n) : e.filter ?
|
|
15022
|
+
return e.render ? e.render(e.id, n, t) : n == null ? r : typeof n == "object" ? JSON.stringify(n) : e.filter ? di.format(n, e.filter) : n;
|
|
14800
15023
|
}
|
|
14801
15024
|
getSortIcon(e) {
|
|
14802
15025
|
return this.sortKey === e.id ? this.sortOrder === "asc" ? "↑" : this.sortOrder === "desc" ? "↓" : "↕" : "↕";
|
|
@@ -14828,7 +15051,7 @@ var W = class extends g {
|
|
|
14828
15051
|
return e.fixed ? e.fixed === "left" ? { left: `${this._calcLeftOffset(e)}px` } : e.fixed === "right" ? { right: `${this._calcRightOffset(e)}px` } : {} : {};
|
|
14829
15052
|
}
|
|
14830
15053
|
_calcLeftOffset(e) {
|
|
14831
|
-
let t = this.selectable === "none" ? 0 :
|
|
15054
|
+
let t = this.selectable === "none" ? 0 : ho;
|
|
14832
15055
|
for (let n of this.resolvedColumns) {
|
|
14833
15056
|
if (n.id === e.id) break;
|
|
14834
15057
|
n.fixed === "left" && (t += this._getColumnWidth(n));
|
|
@@ -14848,7 +15071,7 @@ var W = class extends g {
|
|
|
14848
15071
|
let t = Number.parseInt(e.width, 10);
|
|
14849
15072
|
if (!Number.isNaN(t)) return t;
|
|
14850
15073
|
}
|
|
14851
|
-
return
|
|
15074
|
+
return _o;
|
|
14852
15075
|
}
|
|
14853
15076
|
_hasFixedLeft() {
|
|
14854
15077
|
return this.resolvedColumns.some((e) => e.fixed === "left");
|
|
@@ -14971,9 +15194,9 @@ var W = class extends g {
|
|
|
14971
15194
|
<th
|
|
14972
15195
|
class="selection-cell"
|
|
14973
15196
|
style=${p({
|
|
14974
|
-
width: `${
|
|
14975
|
-
minWidth: `${
|
|
14976
|
-
maxWidth: `${
|
|
15197
|
+
width: `${ho}px`,
|
|
15198
|
+
minWidth: `${ho}px`,
|
|
15199
|
+
maxWidth: `${ho}px`,
|
|
14977
15200
|
left: "0"
|
|
14978
15201
|
})}
|
|
14979
15202
|
>
|
|
@@ -15059,12 +15282,12 @@ h([s({
|
|
|
15059
15282
|
})], W.prototype, "sortOrder", void 0), h([s({ type: Boolean })], W.prototype, "loading", void 0), h([s({ type: String })], W.prototype, "loadingText", void 0), h([d()], W.prototype, "slotColumns", void 0), h([d()], W.prototype, "columnOrder", void 0), h([d()], W.prototype, "focusedRowIndex", void 0), W = h([o("aithe-table")], W);
|
|
15060
15283
|
//#endregion
|
|
15061
15284
|
//#region src/components/display/mini-box.ts
|
|
15062
|
-
var
|
|
15285
|
+
var xo = class extends g {
|
|
15063
15286
|
constructor(...e) {
|
|
15064
15287
|
super(...e), this.selected = !1, this.selectable = "none";
|
|
15065
15288
|
}
|
|
15066
15289
|
static {
|
|
15067
|
-
this.styles = [
|
|
15290
|
+
this.styles = [x, t`
|
|
15068
15291
|
:host {
|
|
15069
15292
|
display: block;
|
|
15070
15293
|
box-sizing: border-box;
|
|
@@ -15160,12 +15383,12 @@ var mo = class extends g {
|
|
|
15160
15383
|
h([s({
|
|
15161
15384
|
type: Boolean,
|
|
15162
15385
|
reflect: !0
|
|
15163
|
-
})],
|
|
15386
|
+
})], xo.prototype, "selected", void 0), h([s({ type: String })], xo.prototype, "selectable", void 0), xo = h([o("aithe-mini-box")], xo);
|
|
15164
15387
|
//#endregion
|
|
15165
15388
|
//#region src/components/display/brief-box.ts
|
|
15166
|
-
var
|
|
15389
|
+
var So = class extends xo {
|
|
15167
15390
|
static {
|
|
15168
|
-
this.styles = [...
|
|
15391
|
+
this.styles = [...xo.styles, t`
|
|
15169
15392
|
.brief-left {
|
|
15170
15393
|
flex: 1;
|
|
15171
15394
|
min-width: 0;
|
|
@@ -15236,10 +15459,10 @@ var ho = class extends mo {
|
|
|
15236
15459
|
`;
|
|
15237
15460
|
}
|
|
15238
15461
|
};
|
|
15239
|
-
|
|
15462
|
+
So = h([o("aithe-brief-box")], So);
|
|
15240
15463
|
//#endregion
|
|
15241
15464
|
//#region src/components/data/box-table.ts
|
|
15242
|
-
var
|
|
15465
|
+
var Co = class extends W {
|
|
15243
15466
|
constructor(...e) {
|
|
15244
15467
|
super(...e), this.mode = "table", this.boxCols = 0;
|
|
15245
15468
|
}
|
|
@@ -15281,7 +15504,7 @@ var go = class extends W {
|
|
|
15281
15504
|
}
|
|
15282
15505
|
getBoxRecordKey(e, t) {
|
|
15283
15506
|
let n = lr(e, this.rowKey);
|
|
15284
|
-
return n == null ? String(t) :
|
|
15507
|
+
return n == null ? String(t) : b(n);
|
|
15285
15508
|
}
|
|
15286
15509
|
handleBoxClick(e, t) {
|
|
15287
15510
|
this.emit("aithe-row-click", {
|
|
@@ -15365,18 +15588,18 @@ var go = class extends W {
|
|
|
15365
15588
|
this.selectable === "single" ? (this.selectionSet.clear(), r && this.selectionSet.add(i)) : r ? this.selectionSet.add(i) : this.selectionSet.delete(i), this.requestUpdate(), this.emit("aithe-selection-change", { selectionSet: this.selectionSet });
|
|
15366
15589
|
}
|
|
15367
15590
|
};
|
|
15368
|
-
h([s({ type: String })],
|
|
15591
|
+
h([s({ type: String })], Co.prototype, "mode", void 0), h([s({
|
|
15369
15592
|
type: Number,
|
|
15370
15593
|
attribute: "box-cols"
|
|
15371
|
-
})],
|
|
15594
|
+
})], Co.prototype, "boxCols", void 0), Co = h([o("aithe-box-table")], Co);
|
|
15372
15595
|
//#endregion
|
|
15373
15596
|
//#region src/components/data/timeline-item.ts
|
|
15374
|
-
var
|
|
15597
|
+
var wo = class extends g {
|
|
15375
15598
|
constructor(...e) {
|
|
15376
15599
|
super(...e), this.timestamp = "", this.type = "default", this.dot = "";
|
|
15377
15600
|
}
|
|
15378
15601
|
static {
|
|
15379
|
-
this.styles = [
|
|
15602
|
+
this.styles = [x, t`
|
|
15380
15603
|
:host {
|
|
15381
15604
|
position: relative;
|
|
15382
15605
|
display: grid;
|
|
@@ -15454,10 +15677,10 @@ var _o = class extends g {
|
|
|
15454
15677
|
`;
|
|
15455
15678
|
}
|
|
15456
15679
|
};
|
|
15457
|
-
h([s({ type: String })],
|
|
15680
|
+
h([s({ type: String })], wo.prototype, "timestamp", void 0), h([s({ type: String })], wo.prototype, "type", void 0), h([s({ type: String })], wo.prototype, "dot", void 0), wo = h([o("aithe-timeline-item")], wo);
|
|
15458
15681
|
//#endregion
|
|
15459
15682
|
//#region src/components/data/timeline.ts
|
|
15460
|
-
var
|
|
15683
|
+
var To = class extends g {
|
|
15461
15684
|
constructor(...e) {
|
|
15462
15685
|
super(...e), this.itemsJson = "", this.items = [], this.reverse = !1, this.hasSlotItems = !1, this.onSlotChange = () => {
|
|
15463
15686
|
let e = this.querySelectorAll("aithe-timeline-item");
|
|
@@ -15479,7 +15702,7 @@ var vo = class extends g {
|
|
|
15479
15702
|
return this.reverse ? [...e].reverse() : e;
|
|
15480
15703
|
}
|
|
15481
15704
|
static {
|
|
15482
|
-
this.styles = [
|
|
15705
|
+
this.styles = [x, t`
|
|
15483
15706
|
:host {
|
|
15484
15707
|
display: flex;
|
|
15485
15708
|
flex-direction: column;
|
|
@@ -15581,7 +15804,7 @@ var vo = class extends g {
|
|
|
15581
15804
|
h([s({
|
|
15582
15805
|
type: String,
|
|
15583
15806
|
attribute: "items"
|
|
15584
|
-
})],
|
|
15807
|
+
})], To.prototype, "itemsJson", void 0), h([s({ attribute: !1 })], To.prototype, "items", void 0), h([s({ type: Boolean })], To.prototype, "reverse", void 0), h([d()], To.prototype, "hasSlotItems", void 0), To = h([o("aithe-timeline")], To);
|
|
15585
15808
|
//#endregion
|
|
15586
15809
|
//#region src/components/data/tabs.ts
|
|
15587
15810
|
var G = class extends g {
|
|
@@ -15623,7 +15846,7 @@ var G = class extends g {
|
|
|
15623
15846
|
}));
|
|
15624
15847
|
}
|
|
15625
15848
|
static {
|
|
15626
|
-
this.styles = [
|
|
15849
|
+
this.styles = [x, t`
|
|
15627
15850
|
:host {
|
|
15628
15851
|
display: block;
|
|
15629
15852
|
}
|
|
@@ -15851,16 +16074,16 @@ h([s({ type: String })], G.prototype, "type", void 0), h([s({
|
|
|
15851
16074
|
type: Number,
|
|
15852
16075
|
attribute: "max-visible-tabs"
|
|
15853
16076
|
})], G.prototype, "maxVisibleTabs", void 0), h([u()], G.prototype, "slotNodes", void 0), h([d()], G.prototype, "panes", void 0), h([d()], G.prototype, "visiblePanes", void 0), h([d()], G.prototype, "overflowPanes", void 0), G = h([o("aithe-tabs")], G);
|
|
15854
|
-
var
|
|
15855
|
-
|
|
16077
|
+
var Eo = class extends G {};
|
|
16078
|
+
Eo = h([o("aithe-tab-group")], Eo);
|
|
15856
16079
|
//#endregion
|
|
15857
16080
|
//#region src/components/data/tab-pane.ts
|
|
15858
|
-
var
|
|
16081
|
+
var Do = class extends g {
|
|
15859
16082
|
constructor(...e) {
|
|
15860
16083
|
super(...e), this.tabId = "", this.label = "", this.icon = "", this.title = "", this.disabled = !1, this.closable = !1, this.active = !1;
|
|
15861
16084
|
}
|
|
15862
16085
|
static {
|
|
15863
|
-
this.styles = [
|
|
16086
|
+
this.styles = [x, t`
|
|
15864
16087
|
:host {
|
|
15865
16088
|
display: none;
|
|
15866
16089
|
}
|
|
@@ -15879,16 +16102,16 @@ var bo = class extends g {
|
|
|
15879
16102
|
h([s({
|
|
15880
16103
|
type: String,
|
|
15881
16104
|
attribute: "tab-id"
|
|
15882
|
-
})],
|
|
16105
|
+
})], Do.prototype, "tabId", void 0), h([s({ type: String })], Do.prototype, "label", void 0), h([s({ type: String })], Do.prototype, "icon", void 0), h([s({ type: String })], Do.prototype, "title", void 0), h([s({
|
|
15883
16106
|
type: Boolean,
|
|
15884
16107
|
reflect: !0
|
|
15885
|
-
})],
|
|
16108
|
+
})], Do.prototype, "disabled", void 0), h([s({
|
|
15886
16109
|
type: Boolean,
|
|
15887
16110
|
reflect: !0
|
|
15888
|
-
})],
|
|
16111
|
+
})], Do.prototype, "closable", void 0), h([s({
|
|
15889
16112
|
type: Boolean,
|
|
15890
16113
|
reflect: !0
|
|
15891
|
-
})],
|
|
16114
|
+
})], Do.prototype, "active", void 0), Do = h([o("aithe-tab-pane")], Do);
|
|
15892
16115
|
//#endregion
|
|
15893
16116
|
//#region src/components/data/tree.ts
|
|
15894
16117
|
var K = class extends g {
|
|
@@ -15902,7 +16125,7 @@ var K = class extends g {
|
|
|
15902
16125
|
super.disconnectedCallback(), this.unsubscribeLocale?.();
|
|
15903
16126
|
}
|
|
15904
16127
|
static {
|
|
15905
|
-
this.styles = [
|
|
16128
|
+
this.styles = [x, t`
|
|
15906
16129
|
:host {
|
|
15907
16130
|
display: block;
|
|
15908
16131
|
}
|
|
@@ -16068,7 +16291,7 @@ var q = class extends g {
|
|
|
16068
16291
|
super.disconnectedCallback(), document.removeEventListener("mousedown", this.handleDocumentPointer), this.unsubscribeLocale?.();
|
|
16069
16292
|
}
|
|
16070
16293
|
static {
|
|
16071
|
-
this.styles = [
|
|
16294
|
+
this.styles = [x, t`
|
|
16072
16295
|
:host {
|
|
16073
16296
|
display: block;
|
|
16074
16297
|
transition: width var(--aithe-duration-base, 0.2s) var(--aithe-ease-standard, ease);
|
|
@@ -16236,7 +16459,6 @@ var q = class extends g {
|
|
|
16236
16459
|
|
|
16237
16460
|
.group-toggle.active {
|
|
16238
16461
|
color: var(--aithe-color-text);
|
|
16239
|
-
background: var(--aithe-color-surface-muted);
|
|
16240
16462
|
}
|
|
16241
16463
|
|
|
16242
16464
|
.group-toggle:hover:not(:disabled) {
|
|
@@ -16273,6 +16495,7 @@ var q = class extends g {
|
|
|
16273
16495
|
display: grid;
|
|
16274
16496
|
gap: var(--aithe-space-2);
|
|
16275
16497
|
padding-left: var(--aithe-space-4);
|
|
16498
|
+
padding-top: var(--aithe-space-2);
|
|
16276
16499
|
}
|
|
16277
16500
|
|
|
16278
16501
|
.horizontal .children {
|
|
@@ -16417,12 +16640,12 @@ h([s({
|
|
|
16417
16640
|
})], q.prototype, "expandedWidth", void 0), h([s({ attribute: !1 })], q.prototype, "itemFilter", void 0), h([s({ attribute: !1 })], q.prototype, "itemRenderer", void 0), h([d()], q.prototype, "expanded", void 0), q = h([o("aithe-tree-menu")], q);
|
|
16418
16641
|
//#endregion
|
|
16419
16642
|
//#region src/components/data/pagination.ts
|
|
16420
|
-
var
|
|
16643
|
+
var Oo = class extends g {
|
|
16421
16644
|
constructor(...e) {
|
|
16422
16645
|
super(...e), this.total = 0, this.pageSize = 10, this.currentPage = 1, this.size = "md";
|
|
16423
16646
|
}
|
|
16424
16647
|
static {
|
|
16425
|
-
this.styles = [
|
|
16648
|
+
this.styles = [x, t`
|
|
16426
16649
|
:host {
|
|
16427
16650
|
display: inline-flex;
|
|
16428
16651
|
}
|
|
@@ -16491,16 +16714,16 @@ var xo = class extends g {
|
|
|
16491
16714
|
`;
|
|
16492
16715
|
}
|
|
16493
16716
|
};
|
|
16494
|
-
h([s({ type: Number })],
|
|
16717
|
+
h([s({ type: Number })], Oo.prototype, "total", void 0), h([s({
|
|
16495
16718
|
type: Number,
|
|
16496
16719
|
attribute: "page-size"
|
|
16497
|
-
})],
|
|
16720
|
+
})], Oo.prototype, "pageSize", void 0), h([s({
|
|
16498
16721
|
type: Number,
|
|
16499
16722
|
attribute: "current-page"
|
|
16500
|
-
})],
|
|
16723
|
+
})], Oo.prototype, "currentPage", void 0), h([s({ type: String })], Oo.prototype, "size", void 0), Oo = h([o("aithe-pagination")], Oo);
|
|
16501
16724
|
//#endregion
|
|
16502
16725
|
//#region src/components/display/carousel.ts
|
|
16503
|
-
var
|
|
16726
|
+
var ko = class extends g {
|
|
16504
16727
|
constructor(...e) {
|
|
16505
16728
|
super(...e), this.autoplay = !1, this.interval = 3200, this.indicators = !0, this.arrows = !0, this.current = 0, this.timer = 0, this.syncSlides = () => {
|
|
16506
16729
|
let e = this.slides;
|
|
@@ -16511,7 +16734,7 @@ var So = class extends g {
|
|
|
16511
16734
|
};
|
|
16512
16735
|
}
|
|
16513
16736
|
static {
|
|
16514
|
-
this.styles = [
|
|
16737
|
+
this.styles = [x, t`
|
|
16515
16738
|
:host {
|
|
16516
16739
|
position: relative;
|
|
16517
16740
|
display: block;
|
|
@@ -16636,15 +16859,15 @@ var So = class extends g {
|
|
|
16636
16859
|
`;
|
|
16637
16860
|
}
|
|
16638
16861
|
};
|
|
16639
|
-
h([s({ type: Boolean })],
|
|
16862
|
+
h([s({ type: Boolean })], ko.prototype, "autoplay", void 0), h([s({ type: Number })], ko.prototype, "interval", void 0), h([s({ type: Boolean })], ko.prototype, "indicators", void 0), h([s({ type: Boolean })], ko.prototype, "arrows", void 0), h([d()], ko.prototype, "current", void 0), ko = h([o("aithe-carousel")], ko);
|
|
16640
16863
|
//#endregion
|
|
16641
16864
|
//#region src/components/display/comparison.ts
|
|
16642
|
-
var
|
|
16865
|
+
var Ao = class extends g {
|
|
16643
16866
|
constructor(...e) {
|
|
16644
16867
|
super(...e), this.beforeSrc = "", this.afterSrc = "", this.ratio = 50;
|
|
16645
16868
|
}
|
|
16646
16869
|
static {
|
|
16647
|
-
this.styles = [
|
|
16870
|
+
this.styles = [x, t`
|
|
16648
16871
|
:host {
|
|
16649
16872
|
position: relative;
|
|
16650
16873
|
display: block;
|
|
@@ -16726,18 +16949,18 @@ var Co = class extends g {
|
|
|
16726
16949
|
h([s({
|
|
16727
16950
|
type: String,
|
|
16728
16951
|
attribute: "before"
|
|
16729
|
-
})],
|
|
16952
|
+
})], Ao.prototype, "beforeSrc", void 0), h([s({
|
|
16730
16953
|
type: String,
|
|
16731
16954
|
attribute: "after"
|
|
16732
|
-
})],
|
|
16955
|
+
})], Ao.prototype, "afterSrc", void 0), h([s({ type: Number })], Ao.prototype, "ratio", void 0), Ao = h([o("aithe-comparison")], Ao);
|
|
16733
16956
|
//#endregion
|
|
16734
16957
|
//#region src/components/display/animated-image.ts
|
|
16735
|
-
var
|
|
16958
|
+
var jo = class extends g {
|
|
16736
16959
|
constructor(...e) {
|
|
16737
16960
|
super(...e), this.src = "", this.loop = !0, this.speed = 1, this.play = !0;
|
|
16738
16961
|
}
|
|
16739
16962
|
static {
|
|
16740
|
-
this.styles = [
|
|
16963
|
+
this.styles = [x, t`
|
|
16741
16964
|
:host {
|
|
16742
16965
|
display: block;
|
|
16743
16966
|
overflow: hidden;
|
|
@@ -16780,24 +17003,24 @@ var wo = class extends g {
|
|
|
16780
17003
|
`;
|
|
16781
17004
|
}
|
|
16782
17005
|
};
|
|
16783
|
-
h([s({ type: String })],
|
|
17006
|
+
h([s({ type: String })], jo.prototype, "src", void 0), h([s({ type: Boolean })], jo.prototype, "loop", void 0), h([s({ type: Number })], jo.prototype, "speed", void 0), h([s({ type: Boolean })], jo.prototype, "play", void 0), jo = h([o("aithe-animated-image")], jo);
|
|
16784
17007
|
//#endregion
|
|
16785
17008
|
//#region src/components/display/markdown.ts
|
|
16786
|
-
var
|
|
16787
|
-
function
|
|
16788
|
-
let t = new
|
|
16789
|
-
if (t.addLinkHook(
|
|
17009
|
+
var Mo = (e) => /^(?:https?:|ftp:|\/\/)/i.test(e) ? "" : e;
|
|
17010
|
+
function No(e) {
|
|
17011
|
+
let t = new no();
|
|
17012
|
+
if (t.addLinkHook(Mo), e) for (let n of e) t.addLinkHook(n);
|
|
16790
17013
|
return t;
|
|
16791
17014
|
}
|
|
16792
|
-
var
|
|
17015
|
+
var Po = class extends g {
|
|
16793
17016
|
constructor(...e) {
|
|
16794
17017
|
super(...e), this.content = "";
|
|
16795
17018
|
}
|
|
16796
17019
|
get parser() {
|
|
16797
|
-
return (!this._parser || this._linkHooks !== this.linkHooks) && (this._parser =
|
|
17020
|
+
return (!this._parser || this._linkHooks !== this.linkHooks) && (this._parser = No(this.linkHooks), this._linkHooks = this.linkHooks), this._parser;
|
|
16798
17021
|
}
|
|
16799
17022
|
static {
|
|
16800
|
-
this.styles = [
|
|
17023
|
+
this.styles = [x, t`
|
|
16801
17024
|
:host {
|
|
16802
17025
|
display: block;
|
|
16803
17026
|
}
|
|
@@ -16887,11 +17110,11 @@ var Do = class extends g {
|
|
|
16887
17110
|
`;
|
|
16888
17111
|
}
|
|
16889
17112
|
};
|
|
16890
|
-
h([s({ type: String })],
|
|
17113
|
+
h([s({ type: String })], Po.prototype, "content", void 0), h([s({ attribute: !1 })], Po.prototype, "linkHooks", void 0), Po = h([o("aithe-markdown")], Po);
|
|
16891
17114
|
//#endregion
|
|
16892
17115
|
//#region src/core/highlight/registry.ts
|
|
16893
|
-
var
|
|
16894
|
-
function
|
|
17116
|
+
var Fo = /* @__PURE__ */ new Map();
|
|
17117
|
+
function Io(e) {
|
|
16895
17118
|
let t = {
|
|
16896
17119
|
"&": "&",
|
|
16897
17120
|
"<": "<",
|
|
@@ -16901,7 +17124,7 @@ function ko(e) {
|
|
|
16901
17124
|
};
|
|
16902
17125
|
return e.replace(/[&<>"']/g, (e) => t[e] ?? e);
|
|
16903
17126
|
}
|
|
16904
|
-
function
|
|
17127
|
+
function Lo(e, t) {
|
|
16905
17128
|
let n = [];
|
|
16906
17129
|
for (let r of t) {
|
|
16907
17130
|
let t = new RegExp(r.pattern.source, r.pattern.flags), i;
|
|
@@ -16914,7 +17137,7 @@ function Ao(e, t) {
|
|
|
16914
17137
|
}
|
|
16915
17138
|
return n;
|
|
16916
17139
|
}
|
|
16917
|
-
function
|
|
17140
|
+
function Ro(e) {
|
|
16918
17141
|
let t = [...e].sort((e, t) => e.start - t.start || e.order - t.order), n = [];
|
|
16919
17142
|
for (let e of t) {
|
|
16920
17143
|
let t = n.at(-1);
|
|
@@ -16922,44 +17145,44 @@ function jo(e) {
|
|
|
16922
17145
|
}
|
|
16923
17146
|
return n;
|
|
16924
17147
|
}
|
|
16925
|
-
function
|
|
17148
|
+
function zo(e, t) {
|
|
16926
17149
|
let n = "", r = 0;
|
|
16927
|
-
for (let i of t) i.start > r && (n +=
|
|
16928
|
-
return r < e.length && (n +=
|
|
17150
|
+
for (let i of t) i.start > r && (n += Io(e.slice(r, i.start))), n += `<span class="${i.className}">${Io(e.slice(i.start, i.end))}</span>`, r = i.end;
|
|
17151
|
+
return r < e.length && (n += Io(e.slice(r))), n;
|
|
16929
17152
|
}
|
|
16930
17153
|
var J = class e {
|
|
16931
17154
|
static register(e) {
|
|
16932
|
-
|
|
17155
|
+
Fo.has(e.langId) && console.warn(`[SyntaxRegistry] Language "${e.langId}" already registered, overwriting.`);
|
|
16933
17156
|
let t = [...e.rules].sort((e, t) => e.order - t.order);
|
|
16934
|
-
|
|
17157
|
+
Fo.set(e.langId, {
|
|
16935
17158
|
...e,
|
|
16936
17159
|
rules: t
|
|
16937
17160
|
});
|
|
16938
17161
|
}
|
|
16939
17162
|
static get(e) {
|
|
16940
|
-
return
|
|
17163
|
+
return Fo.get(e);
|
|
16941
17164
|
}
|
|
16942
17165
|
static getAll() {
|
|
16943
|
-
return new Map(
|
|
17166
|
+
return new Map(Fo);
|
|
16944
17167
|
}
|
|
16945
17168
|
static has(e) {
|
|
16946
|
-
return
|
|
17169
|
+
return Fo.has(e);
|
|
16947
17170
|
}
|
|
16948
17171
|
static unregister(e) {
|
|
16949
|
-
return
|
|
17172
|
+
return Fo.delete(e);
|
|
16950
17173
|
}
|
|
16951
17174
|
static clear() {
|
|
16952
|
-
|
|
17175
|
+
Fo.clear();
|
|
16953
17176
|
}
|
|
16954
17177
|
static escapeHtml(e) {
|
|
16955
|
-
return
|
|
17178
|
+
return Io(e);
|
|
16956
17179
|
}
|
|
16957
17180
|
static highlightCode(e, t) {
|
|
16958
|
-
return e ? !t || t.length === 0 ?
|
|
17181
|
+
return e ? !t || t.length === 0 ? Io(e) : zo(e, Ro(Lo(e, t))) : "";
|
|
16959
17182
|
}
|
|
16960
17183
|
static highlightByLanguage(t, n) {
|
|
16961
17184
|
let r = e.get(n);
|
|
16962
|
-
return r ? e.highlightCode(t, r.rules) : (console.warn(`[SyntaxRegistry] Language "${n}" not found, returning plain text.`),
|
|
17185
|
+
return r ? e.highlightCode(t, r.rules) : (console.warn(`[SyntaxRegistry] Language "${n}" not found, returning plain text.`), Io(t));
|
|
16963
17186
|
}
|
|
16964
17187
|
};
|
|
16965
17188
|
//#endregion
|
|
@@ -18996,7 +19219,7 @@ var Y = class extends g {
|
|
|
18996
19219
|
static {
|
|
18997
19220
|
this.styles = [
|
|
18998
19221
|
a(He),
|
|
18999
|
-
|
|
19222
|
+
x,
|
|
19000
19223
|
t`
|
|
19001
19224
|
:host {
|
|
19002
19225
|
display: block;
|
|
@@ -19623,7 +19846,7 @@ h([s({ type: String })], Y.prototype, "value", void 0), h([s({ type: String })],
|
|
|
19623
19846
|
})], Y.prototype, "showLineNumbersToggle", void 0), h([c(".input-layer")], Y.prototype, "textarea", void 0), h([d()], Y.prototype, "focused", void 0), h([d()], Y.prototype, "isFullscreen", void 0), h([d()], Y.prototype, "copied", void 0), h([d()], Y.prototype, "editorTheme", void 0), h([d()], Y.prototype, "previewVisible", void 0), h([d()], Y.prototype, "splitterDragging", void 0), Y = h([o("aithe-code-editor")], Y);
|
|
19624
19847
|
//#endregion
|
|
19625
19848
|
//#region src/components/display/markdown-editor.ts
|
|
19626
|
-
var
|
|
19849
|
+
var Bo = new no(), X = class extends g {
|
|
19627
19850
|
constructor(...e) {
|
|
19628
19851
|
super(...e), this.value = "", this.showToolbar = !1, this.showTheme = !0, this.lineNumbers = !0, this.readonly = !1, this.placeholder = "", this.showLanguage = !1, this.showFullscreen = !0, this.showCopy = !0, this.showLineNumbersToggle = !0, this.previewStrategy = "auto", this._changeCount = 0, this._lastRenderTime = 0, this._cachedPreview = "";
|
|
19629
19852
|
}
|
|
@@ -19636,13 +19859,13 @@ var No = new Ya(), X = class extends g {
|
|
|
19636
19859
|
return;
|
|
19637
19860
|
}
|
|
19638
19861
|
let e = this.previewStrategy, t = Date.now(), n = !0;
|
|
19639
|
-
e.changeCount && (this._changeCount++, this._changeCount < e.changeCount ? n = !1 : this._changeCount = 0), e.updateSeconds && t - this._lastRenderTime < e.updateSeconds * 1e3 && (n = !1), n ? (this._cachedPreview = "", this._lastRenderTime = t, this.requestUpdate()) : this._cachedPreview =
|
|
19862
|
+
e.changeCount && (this._changeCount++, this._changeCount < e.changeCount ? n = !1 : this._changeCount = 0), e.updateSeconds && t - this._lastRenderTime < e.updateSeconds * 1e3 && (n = !1), n ? (this._cachedPreview = "", this._lastRenderTime = t, this.requestUpdate()) : this._cachedPreview = Bo.parse(this.value);
|
|
19640
19863
|
}
|
|
19641
19864
|
_getPreview() {
|
|
19642
|
-
return this._shouldThrottle && this._cachedPreview ? this._cachedPreview :
|
|
19865
|
+
return this._shouldThrottle && this._cachedPreview ? this._cachedPreview : Bo.parse(this.value);
|
|
19643
19866
|
}
|
|
19644
19867
|
static {
|
|
19645
|
-
this.styles = [
|
|
19868
|
+
this.styles = [x, t`
|
|
19646
19869
|
:host {
|
|
19647
19870
|
display: block;
|
|
19648
19871
|
}
|
|
@@ -19777,7 +20000,7 @@ h([s({ type: String })], X.prototype, "value", void 0), h([s({
|
|
|
19777
20000
|
})], X.prototype, "showLineNumbersToggle", void 0), h([s({ type: Object })], X.prototype, "previewStrategy", void 0), X = h([o("aithe-markdown-editor")], X);
|
|
19778
20001
|
//#endregion
|
|
19779
20002
|
//#region src/components/display/detail-box.ts
|
|
19780
|
-
var
|
|
20003
|
+
var Vo = class extends xo {
|
|
19781
20004
|
constructor(...e) {
|
|
19782
20005
|
super(...e), this._hasContent = !1, this._hasActions = !1;
|
|
19783
20006
|
}
|
|
@@ -19792,7 +20015,7 @@ var Po = class extends mo {
|
|
|
19792
20015
|
this._hasContent = this._checkSlot("content"), this._hasActions = this._checkSlot("actions");
|
|
19793
20016
|
}
|
|
19794
20017
|
static {
|
|
19795
|
-
this.styles = [...
|
|
20018
|
+
this.styles = [...xo.styles, t`
|
|
19796
20019
|
.box-inner {
|
|
19797
20020
|
align-items: stretch;
|
|
19798
20021
|
}
|
|
@@ -19874,15 +20097,15 @@ var Po = class extends mo {
|
|
|
19874
20097
|
`;
|
|
19875
20098
|
}
|
|
19876
20099
|
};
|
|
19877
|
-
h([d()],
|
|
20100
|
+
h([d()], Vo.prototype, "_hasContent", void 0), h([d()], Vo.prototype, "_hasActions", void 0), Vo = h([o("aithe-detail-box")], Vo);
|
|
19878
20101
|
//#endregion
|
|
19879
20102
|
//#region src/components/display/profile.ts
|
|
19880
|
-
var
|
|
20103
|
+
var Ho = class extends g {
|
|
19881
20104
|
constructor(...e) {
|
|
19882
20105
|
super(...e), this.icon = "", this.iconSize = "lg", this.iconShape = "none", this.title = "", this.desc = "", this.titleEllipsis = !0, this.descEllipsis = !0;
|
|
19883
20106
|
}
|
|
19884
20107
|
static {
|
|
19885
|
-
this.styles = [
|
|
20108
|
+
this.styles = [x, t`
|
|
19886
20109
|
:host {
|
|
19887
20110
|
display: inline-flex;
|
|
19888
20111
|
align-items: center;
|
|
@@ -19956,32 +20179,32 @@ var Z = class extends g {
|
|
|
19956
20179
|
`;
|
|
19957
20180
|
}
|
|
19958
20181
|
};
|
|
19959
|
-
h([s({ type: String })],
|
|
20182
|
+
h([s({ type: String })], Ho.prototype, "icon", void 0), h([s({
|
|
19960
20183
|
type: String,
|
|
19961
20184
|
attribute: "icon-size"
|
|
19962
|
-
})],
|
|
20185
|
+
})], Ho.prototype, "iconSize", void 0), h([s({
|
|
19963
20186
|
type: String,
|
|
19964
20187
|
attribute: "icon-shape"
|
|
19965
|
-
})],
|
|
20188
|
+
})], Ho.prototype, "iconShape", void 0), h([s({ type: String })], Ho.prototype, "title", void 0), h([s({ type: String })], Ho.prototype, "desc", void 0), h([s({
|
|
19966
20189
|
type: Boolean,
|
|
19967
20190
|
attribute: "title-ellipsis"
|
|
19968
|
-
})],
|
|
20191
|
+
})], Ho.prototype, "titleEllipsis", void 0), h([s({
|
|
19969
20192
|
type: Boolean,
|
|
19970
20193
|
attribute: "desc-ellipsis"
|
|
19971
|
-
})],
|
|
20194
|
+
})], Ho.prototype, "descEllipsis", void 0), Ho = h([o("aithe-profile")], Ho);
|
|
19972
20195
|
//#endregion
|
|
19973
20196
|
//#region src/components/display/desc.ts
|
|
19974
|
-
var
|
|
20197
|
+
var Z = class extends g {
|
|
19975
20198
|
constructor(...e) {
|
|
19976
|
-
super(...e), this.title = "", this.column = 1, this.border = !1, this.direction = "horizontal", this.size = "md", this.labelWidth = "150px", this.showTitle = !0, this.maxRows = 0;
|
|
20199
|
+
super(...e), this.title = "", this.column = 1, this.border = !1, this.borderStyle = "none", this.labelBackground = "filled", this.direction = "horizontal", this.size = "md", this.labelWidth = "150px", this.showTitle = !0, this.maxRows = 0;
|
|
19977
20200
|
}
|
|
19978
20201
|
static {
|
|
19979
|
-
this.styles = [
|
|
20202
|
+
this.styles = [x, t`
|
|
19980
20203
|
:host {
|
|
19981
20204
|
display: block;
|
|
19982
20205
|
font-family: var(--aithe-font-family);
|
|
19983
20206
|
color: var(--aithe-color-text);
|
|
19984
|
-
border-radius: var(--aithe-radius-md, 6px);
|
|
20207
|
+
border-radius: var(--aithe-container-radius-md, 6px);
|
|
19985
20208
|
overflow: hidden;
|
|
19986
20209
|
}
|
|
19987
20210
|
|
|
@@ -20007,7 +20230,7 @@ var Q = class extends g {
|
|
|
20007
20230
|
.desc-body {
|
|
20008
20231
|
display: grid;
|
|
20009
20232
|
border: 1px solid var(--aithe-color-border, #e5e6eb);
|
|
20010
|
-
border-radius: var(--aithe-radius-md, 6px);
|
|
20233
|
+
border-radius: var(--aithe-container-radius-md, 6px);
|
|
20011
20234
|
overflow: hidden;
|
|
20012
20235
|
}
|
|
20013
20236
|
|
|
@@ -20034,6 +20257,7 @@ var Q = class extends g {
|
|
|
20034
20257
|
background: var(--aithe-fill-2, #f0f1f3);
|
|
20035
20258
|
font-weight: 500;
|
|
20036
20259
|
min-width: 80px;
|
|
20260
|
+
padding: var(--aithe-space-2, 8px) var(--aithe-space-3, 12px);
|
|
20037
20261
|
border-bottom: 1px solid var(--aithe-color-border, #e5e6eb);
|
|
20038
20262
|
border-right: 1px solid var(--aithe-color-border, #e5e6eb);
|
|
20039
20263
|
word-break: break-word;
|
|
@@ -20048,7 +20272,14 @@ var Q = class extends g {
|
|
|
20048
20272
|
background: var(--aithe-fill-2, #f0f1f3);
|
|
20049
20273
|
}
|
|
20050
20274
|
|
|
20275
|
+
:host([label-background='none']) .desc-cell-label,
|
|
20276
|
+
:host([label-background='none']) .desc-cell-label.is-bordered {
|
|
20277
|
+
background: transparent;
|
|
20278
|
+
}
|
|
20279
|
+
|
|
20051
20280
|
.desc-cell-content {
|
|
20281
|
+
display: flex;
|
|
20282
|
+
align-items: center;
|
|
20052
20283
|
font-size: var(--aithe-font-size-sm);
|
|
20053
20284
|
color: var(--aithe-color-text);
|
|
20054
20285
|
padding: var(--aithe-space-2, 8px) var(--aithe-space-3, 12px);
|
|
@@ -20069,6 +20300,30 @@ var Q = class extends g {
|
|
|
20069
20300
|
border: none;
|
|
20070
20301
|
}
|
|
20071
20302
|
|
|
20303
|
+
/* Row border style: row separators only, no outer frame or column separators. */
|
|
20304
|
+
:host([border-style='row']) .desc-body {
|
|
20305
|
+
border: none;
|
|
20306
|
+
border-radius: 0;
|
|
20307
|
+
}
|
|
20308
|
+
|
|
20309
|
+
:host([border-style='row']) .desc-cell-label {
|
|
20310
|
+
border-right: none;
|
|
20311
|
+
border-bottom: 1px solid var(--aithe-color-border, #e5e6eb);
|
|
20312
|
+
}
|
|
20313
|
+
|
|
20314
|
+
:host([border-style='row']) .desc-cell-label.no-border {
|
|
20315
|
+
border-bottom: none;
|
|
20316
|
+
}
|
|
20317
|
+
|
|
20318
|
+
:host([border-style='row']) .desc-cell-content {
|
|
20319
|
+
border-right: none;
|
|
20320
|
+
border-bottom: 1px solid var(--aithe-color-border, #e5e6eb);
|
|
20321
|
+
}
|
|
20322
|
+
|
|
20323
|
+
:host([border-style='row']) .desc-cell-content.no-border {
|
|
20324
|
+
border-bottom: none;
|
|
20325
|
+
}
|
|
20326
|
+
|
|
20072
20327
|
/* Vertical direction */
|
|
20073
20328
|
.desc-cell.vertical .desc-cell-label {
|
|
20074
20329
|
border-right: none;
|
|
@@ -20120,10 +20375,10 @@ var Q = class extends g {
|
|
|
20120
20375
|
return t;
|
|
20121
20376
|
}
|
|
20122
20377
|
_getItemContent(e) {
|
|
20123
|
-
return e.content ? String(e.filter ?
|
|
20378
|
+
return e.content ? String(e.filter ? di.format(e.content, e.filter) : e.content) : Array.from(e.childNodes).filter((e) => e.nodeType !== Node.COMMENT_NODE && !(e instanceof HTMLElement && e.hasAttribute("slot"))).map((e) => e instanceof HTMLElement ? e.outerHTML : e.textContent ?? "").join("");
|
|
20124
20379
|
}
|
|
20125
20380
|
render() {
|
|
20126
|
-
let e = Math.max(1, this.column), t = this.border, i = this.direction === "vertical", a = this._getItems(), o = this._layoutCells(a), s = i ? `repeat(${e}, 1fr)` : `repeat(${e}, ${this.labelWidth || "150px"} 1fr)`, c = Math.max(0, this.maxRows), l = this._getTotalRows(o), u = o.filter((e) => c === 0 || e.row < c).map((e) => {
|
|
20381
|
+
let e = Math.max(1, this.column), t = this.border || this.borderStyle !== "none", i = this.direction === "vertical", a = this._getItems(), o = this._layoutCells(a), s = i ? `repeat(${e}, 1fr)` : `repeat(${e}, ${this.labelWidth || "150px"} 1fr)`, c = Math.max(0, this.maxRows), l = this._getTotalRows(o), u = o.filter((e) => c === 0 || e.row < c).map((e) => {
|
|
20127
20382
|
let a = e.item, o = [!i && this.labelWidth ? `width:${this.labelWidth}` : "", `text-align:${a.labelAlign}`].filter(Boolean).join(";"), s = [
|
|
20128
20383
|
a.width ? `width:${a.width}` : "",
|
|
20129
20384
|
a.minWidth ? `min-width:${a.minWidth}` : "",
|
|
@@ -20187,24 +20442,30 @@ var Q = class extends g {
|
|
|
20187
20442
|
`;
|
|
20188
20443
|
}
|
|
20189
20444
|
};
|
|
20190
|
-
h([s({ type: String })],
|
|
20445
|
+
h([s({ type: String })], Z.prototype, "title", void 0), h([s({ type: Number })], Z.prototype, "column", void 0), h([s({ type: Boolean })], Z.prototype, "border", void 0), h([s({
|
|
20446
|
+
attribute: "border-style",
|
|
20447
|
+
type: String
|
|
20448
|
+
})], Z.prototype, "borderStyle", void 0), h([s({
|
|
20449
|
+
attribute: "label-background",
|
|
20450
|
+
type: String
|
|
20451
|
+
})], Z.prototype, "labelBackground", void 0), h([s({ type: String })], Z.prototype, "direction", void 0), h([s({ type: String })], Z.prototype, "size", void 0), h([s({
|
|
20191
20452
|
attribute: "label-width",
|
|
20192
20453
|
type: String
|
|
20193
|
-
})],
|
|
20454
|
+
})], Z.prototype, "labelWidth", void 0), h([s({
|
|
20194
20455
|
attribute: "show-title",
|
|
20195
20456
|
type: Boolean
|
|
20196
|
-
})],
|
|
20457
|
+
})], Z.prototype, "showTitle", void 0), h([s({
|
|
20197
20458
|
attribute: "max-rows",
|
|
20198
20459
|
type: Number
|
|
20199
|
-
})],
|
|
20460
|
+
})], Z.prototype, "maxRows", void 0), Z = h([o("aithe-desc")], Z);
|
|
20200
20461
|
//#endregion
|
|
20201
20462
|
//#region src/components/display/desc-item.ts
|
|
20202
|
-
var
|
|
20463
|
+
var Q = class extends g {
|
|
20203
20464
|
constructor(...e) {
|
|
20204
20465
|
super(...e), this.label = "", this.span = 1, this.rowspan = 1, this.width = "", this.labelAlign = "left", this.align = "left", this.minWidth = "", this.content = "", this.filter = "";
|
|
20205
20466
|
}
|
|
20206
20467
|
static {
|
|
20207
|
-
this.styles = [
|
|
20468
|
+
this.styles = [x, t`
|
|
20208
20469
|
:host {
|
|
20209
20470
|
display: contents;
|
|
20210
20471
|
}
|
|
@@ -20261,22 +20522,275 @@ var $ = class extends g {
|
|
|
20261
20522
|
}
|
|
20262
20523
|
renderContent() {
|
|
20263
20524
|
return this.content ? n`
|
|
20264
|
-
${this.filter ?
|
|
20525
|
+
${this.filter ? di.format(this.content, this.filter) : this.content}
|
|
20265
20526
|
` : n`<slot></slot>`;
|
|
20266
20527
|
}
|
|
20267
20528
|
};
|
|
20268
|
-
h([s({ type: String })],
|
|
20529
|
+
h([s({ type: String })], Q.prototype, "label", void 0), h([s({ type: Number })], Q.prototype, "span", void 0), h([s({ type: Number })], Q.prototype, "rowspan", void 0), h([s({ type: String })], Q.prototype, "width", void 0), h([s({ type: String })], Q.prototype, "labelAlign", void 0), h([s({ type: String })], Q.prototype, "align", void 0), h([s({
|
|
20269
20530
|
type: String,
|
|
20270
20531
|
attribute: "min-width"
|
|
20271
|
-
})],
|
|
20532
|
+
})], Q.prototype, "minWidth", void 0), h([s({ type: String })], Q.prototype, "content", void 0), h([s({ type: String })], Q.prototype, "filter", void 0), Q = h([o("aithe-desc-item")], Q);
|
|
20533
|
+
//#endregion
|
|
20534
|
+
//#region src/components/display/autoview.ts
|
|
20535
|
+
var $ = class extends g {
|
|
20536
|
+
constructor(...e) {
|
|
20537
|
+
super(...e), this.fields = "[]", this.data = {}, this.column = 1, this.border = !0, this.borderStyle = "none", this.labelBackground = "filled", this.direction = "horizontal", this.labelWidth = "150px", this.size = "md", this.title = "", this.showTitle = !0, this.maxRows = 0, this.emptyText = "";
|
|
20538
|
+
}
|
|
20539
|
+
static {
|
|
20540
|
+
this.styles = [x, t`
|
|
20541
|
+
:host {
|
|
20542
|
+
display: block;
|
|
20543
|
+
width: 100%;
|
|
20544
|
+
}
|
|
20545
|
+
|
|
20546
|
+
.autoview-text {
|
|
20547
|
+
color: var(--aithe-color-text);
|
|
20548
|
+
font-size: var(--aithe-font-size-sm);
|
|
20549
|
+
line-height: 1.5;
|
|
20550
|
+
word-break: break-word;
|
|
20551
|
+
overflow-wrap: break-word;
|
|
20552
|
+
}
|
|
20553
|
+
|
|
20554
|
+
.autoview-empty {
|
|
20555
|
+
color: var(--aithe-color-text-muted, var(--aithe-color-text-secondary));
|
|
20556
|
+
font-size: var(--aithe-font-size-sm);
|
|
20557
|
+
line-height: 1.5;
|
|
20558
|
+
}
|
|
20559
|
+
|
|
20560
|
+
.autoview-tags {
|
|
20561
|
+
display: inline-flex;
|
|
20562
|
+
flex-wrap: wrap;
|
|
20563
|
+
gap: var(--aithe-space-1, 4px);
|
|
20564
|
+
}
|
|
20565
|
+
|
|
20566
|
+
.autoview-color {
|
|
20567
|
+
display: inline-flex;
|
|
20568
|
+
align-items: center;
|
|
20569
|
+
gap: var(--aithe-space-2, 8px);
|
|
20570
|
+
}
|
|
20571
|
+
|
|
20572
|
+
.autoview-color-chip {
|
|
20573
|
+
display: inline-block;
|
|
20574
|
+
width: 16px;
|
|
20575
|
+
height: 16px;
|
|
20576
|
+
border-radius: var(--aithe-radius-sm, 3px);
|
|
20577
|
+
border: 1px solid var(--aithe-color-border, #e5e6eb);
|
|
20578
|
+
flex-shrink: 0;
|
|
20579
|
+
}
|
|
20580
|
+
`];
|
|
20581
|
+
}
|
|
20582
|
+
get _data() {
|
|
20583
|
+
if (typeof this.data == "string") {
|
|
20584
|
+
if (!this.data) return {};
|
|
20585
|
+
try {
|
|
20586
|
+
let e = JSON.parse(this.data);
|
|
20587
|
+
return e && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
20588
|
+
} catch {
|
|
20589
|
+
return {};
|
|
20590
|
+
}
|
|
20591
|
+
}
|
|
20592
|
+
return this.data ?? {};
|
|
20593
|
+
}
|
|
20594
|
+
get _emptyText() {
|
|
20595
|
+
return this.emptyText || v("form.autoView.empty", "--");
|
|
20596
|
+
}
|
|
20597
|
+
getValues() {
|
|
20598
|
+
let e = this.parseFields(), t = this._data, n = {};
|
|
20599
|
+
for (let r of e) {
|
|
20600
|
+
if (!this.isVisible(r, t)) continue;
|
|
20601
|
+
let e = r.name ?? "";
|
|
20602
|
+
e && (n[e] = t[e] ?? r.dft ?? "");
|
|
20603
|
+
}
|
|
20604
|
+
return n;
|
|
20605
|
+
}
|
|
20606
|
+
parseFields() {
|
|
20607
|
+
let e = this.fields || "[]";
|
|
20608
|
+
try {
|
|
20609
|
+
return JSON.parse(e);
|
|
20610
|
+
} catch {
|
|
20611
|
+
try {
|
|
20612
|
+
let t = e.replaceAll(/\\(?!["\\/bfnrtu])/g, "\\\\");
|
|
20613
|
+
return JSON.parse(t);
|
|
20614
|
+
} catch {
|
|
20615
|
+
return [];
|
|
20616
|
+
}
|
|
20617
|
+
}
|
|
20618
|
+
}
|
|
20619
|
+
normalizeOptions(e) {
|
|
20620
|
+
if (Array.isArray(e)) return e;
|
|
20621
|
+
if (typeof e == "string") try {
|
|
20622
|
+
let t = JSON.parse(e || "[]");
|
|
20623
|
+
return Array.isArray(t) ? t : [];
|
|
20624
|
+
} catch {
|
|
20625
|
+
return [];
|
|
20626
|
+
}
|
|
20627
|
+
return [];
|
|
20628
|
+
}
|
|
20629
|
+
normalizeRules(e) {
|
|
20630
|
+
return e ? e.map((e) => ({
|
|
20631
|
+
...e,
|
|
20632
|
+
options: e.type === "update" && e.options != null ? this.normalizeOptions(e.options) : e.options
|
|
20633
|
+
})) : [];
|
|
20634
|
+
}
|
|
20635
|
+
isVisible(e, t) {
|
|
20636
|
+
let n = this.normalizeRules(e.rules).filter((e) => e.type === "show" || e.type === "hide");
|
|
20637
|
+
if (n.length === 0) return !0;
|
|
20638
|
+
let r = {};
|
|
20639
|
+
for (let n of e.dependencies ?? []) r[n] = t[n] ?? "";
|
|
20640
|
+
return wa.evaluate(n, r, {
|
|
20641
|
+
visible: !0,
|
|
20642
|
+
disabled: !1,
|
|
20643
|
+
options: this.normalizeOptions(e.options),
|
|
20644
|
+
value: b(t[e.name ?? ""] ?? e.dft ?? "")
|
|
20645
|
+
}).visible;
|
|
20646
|
+
}
|
|
20647
|
+
resolveRawValue(e, t) {
|
|
20648
|
+
let n = e.name ?? "", r = n in t ? t[n] : e.dft ?? "";
|
|
20649
|
+
return r == null ? "" : typeof r == "boolean" ? r ? "true" : "false" : typeof r == "number" ? String(r) : Array.isArray(r) ? JSON.stringify(r) : b(r);
|
|
20650
|
+
}
|
|
20651
|
+
transformValue(e, t) {
|
|
20652
|
+
switch (e.type ?? "input") {
|
|
20653
|
+
case "switch": return t === "true" || t === "";
|
|
20654
|
+
case "number": {
|
|
20655
|
+
let e = Number(t);
|
|
20656
|
+
return Number.isNaN(e) ? "" : e;
|
|
20657
|
+
}
|
|
20658
|
+
case "checkbox": try {
|
|
20659
|
+
let e = JSON.parse(t || "[]");
|
|
20660
|
+
return Array.isArray(e) ? e : [];
|
|
20661
|
+
} catch {
|
|
20662
|
+
return [];
|
|
20663
|
+
}
|
|
20664
|
+
default: return t;
|
|
20665
|
+
}
|
|
20666
|
+
}
|
|
20667
|
+
renderContent(e, t) {
|
|
20668
|
+
let n = this.resolveRawValue(e, t), r = {
|
|
20669
|
+
value: this.transformValue(e, n),
|
|
20670
|
+
rawValue: n,
|
|
20671
|
+
options: this.normalizeOptions(e.options),
|
|
20672
|
+
field: e,
|
|
20673
|
+
emptyText: e.emptyText || this._emptyText
|
|
20674
|
+
}, i = Ea.get(e.type ?? "input");
|
|
20675
|
+
return i ? i.render(r) : this.renderBuiltin(e, r);
|
|
20676
|
+
}
|
|
20677
|
+
renderBuiltin(e, t) {
|
|
20678
|
+
let n = e.type ?? "input";
|
|
20679
|
+
if (e.filter) return this.renderFiltered(t.rawValue, t.emptyText, e.filter);
|
|
20680
|
+
switch (n) {
|
|
20681
|
+
case "select":
|
|
20682
|
+
case "radio": return this.renderOptionLabel(t.options, t.rawValue, t.emptyText);
|
|
20683
|
+
case "checkbox": return this.renderCheckboxTags(t.value, t.options, t.emptyText);
|
|
20684
|
+
case "switch": return this.renderSwitch(t.value);
|
|
20685
|
+
case "date-picker":
|
|
20686
|
+
case "time-picker": return this.renderDate(t.rawValue, t.emptyText);
|
|
20687
|
+
case "color-picker": return this.renderColor(t.rawValue, t.emptyText);
|
|
20688
|
+
case "rate":
|
|
20689
|
+
case "slider": return this.renderPlain(t.rawValue, t.emptyText);
|
|
20690
|
+
default: return this.renderPlain(t.rawValue, t.emptyText);
|
|
20691
|
+
}
|
|
20692
|
+
}
|
|
20693
|
+
renderFiltered(e, t, r) {
|
|
20694
|
+
let i = di.format(e, r), a = i == null || i === "" ? t : b(i);
|
|
20695
|
+
return n`<span class="autoview-text">${a}</span>`;
|
|
20696
|
+
}
|
|
20697
|
+
renderOptionLabel(e, t, r) {
|
|
20698
|
+
let i = e.find((e) => e.id === t);
|
|
20699
|
+
return n`<span class="autoview-text">${i?.label ?? r}</span>`;
|
|
20700
|
+
}
|
|
20701
|
+
renderCheckboxTags(e, t, r) {
|
|
20702
|
+
let i = Array.isArray(e) ? e : [];
|
|
20703
|
+
return i.length === 0 ? n`<span class="autoview-empty">${r}</span>` : n`<span class="autoview-tags">
|
|
20704
|
+
${i.map((e) => {
|
|
20705
|
+
let r = t.find((t) => t.id === e);
|
|
20706
|
+
return n`<aithe-tag variant="default" size="sm">${r?.label ?? e}</aithe-tag>`;
|
|
20707
|
+
})}
|
|
20708
|
+
</span>`;
|
|
20709
|
+
}
|
|
20710
|
+
renderSwitch(e) {
|
|
20711
|
+
let t = e === !0;
|
|
20712
|
+
return n`<aithe-tag variant=${t ? "success" : "default"} size="sm">
|
|
20713
|
+
${t ? v("form.autoView.yes", "Yes") : v("form.autoView.no", "No")}
|
|
20714
|
+
</aithe-tag>`;
|
|
20715
|
+
}
|
|
20716
|
+
renderDate(e, t) {
|
|
20717
|
+
if (!e) return n`<span class="autoview-empty">${t}</span>`;
|
|
20718
|
+
let r = di.format(e, "date yyyy-MM-dd");
|
|
20719
|
+
return n`<span class="autoview-text">${r || t}</span>`;
|
|
20720
|
+
}
|
|
20721
|
+
renderColor(e, t) {
|
|
20722
|
+
return e ? n`<span class="autoview-color">
|
|
20723
|
+
<span class="autoview-color-chip" style="background:${e}"></span>
|
|
20724
|
+
<span class="autoview-text">${e}</span>
|
|
20725
|
+
</span>` : n`<span class="autoview-empty">${t}</span>`;
|
|
20726
|
+
}
|
|
20727
|
+
renderPlain(e, t) {
|
|
20728
|
+
return n`<span class=${e ? "autoview-text" : "autoview-empty"}>${e || t}</span>`;
|
|
20729
|
+
}
|
|
20730
|
+
render() {
|
|
20731
|
+
let e = this.parseFields(), t = this._data;
|
|
20732
|
+
return n`
|
|
20733
|
+
<aithe-desc
|
|
20734
|
+
column=${this.column}
|
|
20735
|
+
?border=${this.border}
|
|
20736
|
+
border-style=${this.borderStyle}
|
|
20737
|
+
label-background=${this.labelBackground}
|
|
20738
|
+
direction=${this.direction}
|
|
20739
|
+
label-width=${this.labelWidth}
|
|
20740
|
+
size=${this.size}
|
|
20741
|
+
title=${this.title || r}
|
|
20742
|
+
.showTitle=${this.showTitle}
|
|
20743
|
+
max-rows=${this.maxRows}
|
|
20744
|
+
>
|
|
20745
|
+
<slot name="title" slot="title"></slot>
|
|
20746
|
+
<slot name="extra" slot="extra"></slot>
|
|
20747
|
+
${e.map((e) => this.renderItem(e, t))}
|
|
20748
|
+
</aithe-desc>
|
|
20749
|
+
`;
|
|
20750
|
+
}
|
|
20751
|
+
renderItem(e, t) {
|
|
20752
|
+
if (!this.isVisible(e, t)) return n``;
|
|
20753
|
+
let i = e.hideLabel ? "" : e.label ?? "", a = this.renderContent(e, t);
|
|
20754
|
+
return n`
|
|
20755
|
+
<aithe-desc-item
|
|
20756
|
+
label=${i || r}
|
|
20757
|
+
.span=${e.span ?? 1}
|
|
20758
|
+
.rowspan=${e.rowspan ?? 1}
|
|
20759
|
+
.align=${e.align ?? "left"}
|
|
20760
|
+
>${a}</aithe-desc-item>
|
|
20761
|
+
`;
|
|
20762
|
+
}
|
|
20763
|
+
firstUpdated() {
|
|
20764
|
+
this.emit("view-ready", { values: this.getValues() });
|
|
20765
|
+
}
|
|
20766
|
+
};
|
|
20767
|
+
h([s({ type: String })], $.prototype, "fields", void 0), h([s({ type: Object })], $.prototype, "data", void 0), h([s({ type: Number })], $.prototype, "column", void 0), h([s({ type: Boolean })], $.prototype, "border", void 0), h([s({
|
|
20768
|
+
attribute: "border-style",
|
|
20769
|
+
type: String
|
|
20770
|
+
})], $.prototype, "borderStyle", void 0), h([s({
|
|
20771
|
+
attribute: "label-background",
|
|
20772
|
+
type: String
|
|
20773
|
+
})], $.prototype, "labelBackground", void 0), h([s({ type: String })], $.prototype, "direction", void 0), h([s({
|
|
20774
|
+
type: String,
|
|
20775
|
+
attribute: "label-width"
|
|
20776
|
+
})], $.prototype, "labelWidth", void 0), h([s({ type: String })], $.prototype, "size", void 0), h([s({ type: String })], $.prototype, "title", void 0), h([s({
|
|
20777
|
+
attribute: "show-title",
|
|
20778
|
+
type: Boolean
|
|
20779
|
+
})], $.prototype, "showTitle", void 0), h([s({
|
|
20780
|
+
type: Number,
|
|
20781
|
+
attribute: "max-rows"
|
|
20782
|
+
})], $.prototype, "maxRows", void 0), h([s({
|
|
20783
|
+
type: String,
|
|
20784
|
+
attribute: "empty-text"
|
|
20785
|
+
})], $.prototype, "emptyText", void 0), $ = h([o("aithe-autoview")], $);
|
|
20272
20786
|
//#endregion
|
|
20273
20787
|
//#region src/components/progress/progress-bar.ts
|
|
20274
|
-
var
|
|
20788
|
+
var Uo = class extends g {
|
|
20275
20789
|
constructor(...e) {
|
|
20276
20790
|
super(...e), this.percent = 0, this.status = "default", this.showInfo = !0;
|
|
20277
20791
|
}
|
|
20278
20792
|
static {
|
|
20279
|
-
this.styles = [
|
|
20793
|
+
this.styles = [x, t`
|
|
20280
20794
|
:host {
|
|
20281
20795
|
display: grid;
|
|
20282
20796
|
gap: var(--aithe-space-2);
|
|
@@ -20327,18 +20841,18 @@ var Fo = class extends g {
|
|
|
20327
20841
|
`;
|
|
20328
20842
|
}
|
|
20329
20843
|
};
|
|
20330
|
-
h([s({ type: Number })],
|
|
20844
|
+
h([s({ type: Number })], Uo.prototype, "percent", void 0), h([s({ type: String })], Uo.prototype, "status", void 0), h([s({
|
|
20331
20845
|
type: Boolean,
|
|
20332
20846
|
attribute: "show-info"
|
|
20333
|
-
})],
|
|
20847
|
+
})], Uo.prototype, "showInfo", void 0), Uo = h([o("aithe-progress-bar")], Uo);
|
|
20334
20848
|
//#endregion
|
|
20335
20849
|
//#region src/components/progress/progress-ring.ts
|
|
20336
|
-
var
|
|
20850
|
+
var Wo = class extends g {
|
|
20337
20851
|
constructor(...e) {
|
|
20338
20852
|
super(...e), this.percent = 0, this.size = "120", this.strokeWidth = 10, this.status = "default";
|
|
20339
20853
|
}
|
|
20340
20854
|
static {
|
|
20341
|
-
this.styles = [
|
|
20855
|
+
this.styles = [x, t`
|
|
20342
20856
|
:host {
|
|
20343
20857
|
display: inline-flex;
|
|
20344
20858
|
}
|
|
@@ -20396,18 +20910,18 @@ var Io = class extends g {
|
|
|
20396
20910
|
`;
|
|
20397
20911
|
}
|
|
20398
20912
|
};
|
|
20399
|
-
h([s({ type: Number })],
|
|
20913
|
+
h([s({ type: Number })], Wo.prototype, "percent", void 0), h([s({ type: String })], Wo.prototype, "size", void 0), h([s({
|
|
20400
20914
|
type: Number,
|
|
20401
20915
|
attribute: "stroke-width"
|
|
20402
|
-
})],
|
|
20916
|
+
})], Wo.prototype, "strokeWidth", void 0), h([s({ type: String })], Wo.prototype, "status", void 0), Wo = h([o("aithe-progress-ring")], Wo);
|
|
20403
20917
|
//#endregion
|
|
20404
20918
|
//#region src/components/progress/spinner.ts
|
|
20405
|
-
var
|
|
20919
|
+
var Go = class extends g {
|
|
20406
20920
|
constructor(...e) {
|
|
20407
20921
|
super(...e), this.size = "md", this.color = "var(--aithe-primary-6)", this.variant = "ring";
|
|
20408
20922
|
}
|
|
20409
20923
|
static {
|
|
20410
|
-
this.styles = [
|
|
20924
|
+
this.styles = [x, t`
|
|
20411
20925
|
:host {
|
|
20412
20926
|
display: inline-flex;
|
|
20413
20927
|
}
|
|
@@ -20490,15 +21004,15 @@ var Lo = class extends g {
|
|
|
20490
21004
|
`;
|
|
20491
21005
|
}
|
|
20492
21006
|
};
|
|
20493
|
-
h([s({ type: String })],
|
|
21007
|
+
h([s({ type: String })], Go.prototype, "size", void 0), h([s({ type: String })], Go.prototype, "color", void 0), h([s({ type: String })], Go.prototype, "variant", void 0), Go = h([o("aithe-spinner")], Go);
|
|
20494
21008
|
//#endregion
|
|
20495
21009
|
//#region src/components/progress/skeleton.ts
|
|
20496
|
-
var
|
|
21010
|
+
var Ko = class extends g {
|
|
20497
21011
|
constructor(...e) {
|
|
20498
21012
|
super(...e), this.rows = 3, this.animated = !0, this.shape = "line", this.active = !0;
|
|
20499
21013
|
}
|
|
20500
21014
|
static {
|
|
20501
|
-
this.styles = [
|
|
21015
|
+
this.styles = [x, t`
|
|
20502
21016
|
:host {
|
|
20503
21017
|
display: grid;
|
|
20504
21018
|
gap: var(--aithe-space-3);
|
|
@@ -20552,15 +21066,15 @@ var Ro = class extends g {
|
|
|
20552
21066
|
`;
|
|
20553
21067
|
}
|
|
20554
21068
|
};
|
|
20555
|
-
h([s({ type: Number })],
|
|
21069
|
+
h([s({ type: Number })], Ko.prototype, "rows", void 0), h([s({ type: Boolean })], Ko.prototype, "animated", void 0), h([s({ type: String })], Ko.prototype, "shape", void 0), h([s({ type: Boolean })], Ko.prototype, "active", void 0), Ko = h([o("aithe-skeleton")], Ko);
|
|
20556
21070
|
//#endregion
|
|
20557
21071
|
//#region src/components/container/callout.ts
|
|
20558
|
-
var
|
|
21072
|
+
var qo = class extends g {
|
|
20559
21073
|
constructor(...e) {
|
|
20560
21074
|
super(...e), this.type = "default", this.title = "", this.icon = "";
|
|
20561
21075
|
}
|
|
20562
21076
|
static {
|
|
20563
|
-
this.styles = [
|
|
21077
|
+
this.styles = [x, t`
|
|
20564
21078
|
:host {
|
|
20565
21079
|
display: block;
|
|
20566
21080
|
}
|
|
@@ -20618,15 +21132,15 @@ var zo = class extends g {
|
|
|
20618
21132
|
`;
|
|
20619
21133
|
}
|
|
20620
21134
|
};
|
|
20621
|
-
h([s({ type: String })],
|
|
21135
|
+
h([s({ type: String })], qo.prototype, "type", void 0), h([s({ type: String })], qo.prototype, "title", void 0), h([s({ type: String })], qo.prototype, "icon", void 0), qo = h([o("aithe-callout")], qo);
|
|
20622
21136
|
//#endregion
|
|
20623
21137
|
//#region src/components/container/details.ts
|
|
20624
|
-
var
|
|
21138
|
+
var Jo = class extends g {
|
|
20625
21139
|
constructor(...e) {
|
|
20626
21140
|
super(...e), this.open = !1, this.summary = "", this.icon = "", this.title = "";
|
|
20627
21141
|
}
|
|
20628
21142
|
static {
|
|
20629
|
-
this.styles = [
|
|
21143
|
+
this.styles = [x, t`
|
|
20630
21144
|
:host {
|
|
20631
21145
|
display: block;
|
|
20632
21146
|
}
|
|
@@ -20684,10 +21198,10 @@ var Bo = class extends g {
|
|
|
20684
21198
|
h([s({
|
|
20685
21199
|
type: Boolean,
|
|
20686
21200
|
reflect: !0
|
|
20687
|
-
})],
|
|
21201
|
+
})], Jo.prototype, "open", void 0), h([s({ type: String })], Jo.prototype, "summary", void 0), h([s({ type: String })], Jo.prototype, "icon", void 0), h([s({ type: String })], Jo.prototype, "title", void 0), h([c("details")], Jo.prototype, "detailsElement", void 0), Jo = h([o("aithe-details")], Jo);
|
|
20688
21202
|
//#endregion
|
|
20689
21203
|
//#region src/components/container/scroller.ts
|
|
20690
|
-
var
|
|
21204
|
+
var Yo = class extends g {
|
|
20691
21205
|
constructor(...e) {
|
|
20692
21206
|
super(...e), this.height = "", this.maxHeight = "", this.shadow = !1, this.scrollbar = !0, this.shadowTop = !1, this.shadowBottom = !1, this.handleScroll = (e) => {
|
|
20693
21207
|
let t = e.currentTarget;
|
|
@@ -20699,8 +21213,8 @@ var Vo = class extends g {
|
|
|
20699
21213
|
}
|
|
20700
21214
|
static {
|
|
20701
21215
|
this.styles = [
|
|
20702
|
-
|
|
20703
|
-
|
|
21216
|
+
x,
|
|
21217
|
+
Cr,
|
|
20704
21218
|
t`
|
|
20705
21219
|
:host {
|
|
20706
21220
|
display: block;
|
|
@@ -20769,13 +21283,13 @@ var Vo = class extends g {
|
|
|
20769
21283
|
`;
|
|
20770
21284
|
}
|
|
20771
21285
|
};
|
|
20772
|
-
h([s({ type: String })],
|
|
21286
|
+
h([s({ type: String })], Yo.prototype, "height", void 0), h([s({
|
|
20773
21287
|
type: String,
|
|
20774
21288
|
attribute: "max-height"
|
|
20775
|
-
})],
|
|
21289
|
+
})], Yo.prototype, "maxHeight", void 0), h([s({ type: Boolean })], Yo.prototype, "shadow", void 0), h([s({ type: Boolean })], Yo.prototype, "scrollbar", void 0), h([d()], Yo.prototype, "shadowTop", void 0), h([d()], Yo.prototype, "shadowBottom", void 0), Yo = h([o("aithe-scroller")], Yo);
|
|
20776
21290
|
//#endregion
|
|
20777
21291
|
//#region src/components/container/split-panel.ts
|
|
20778
|
-
var
|
|
21292
|
+
var Xo = class extends g {
|
|
20779
21293
|
constructor(...e) {
|
|
20780
21294
|
super(...e), this.direction = "horizontal", this.minSize = 20, this.maxSize = 80, this.value = 50, this.dragging = !1, this.handlePointerDown = () => {
|
|
20781
21295
|
this.dragging = !0;
|
|
@@ -20788,7 +21302,7 @@ var Ho = class extends g {
|
|
|
20788
21302
|
};
|
|
20789
21303
|
}
|
|
20790
21304
|
static {
|
|
20791
|
-
this.styles = [
|
|
21305
|
+
this.styles = [x, t`
|
|
20792
21306
|
:host {
|
|
20793
21307
|
display: block;
|
|
20794
21308
|
}
|
|
@@ -20861,14 +21375,14 @@ var Ho = class extends g {
|
|
|
20861
21375
|
`;
|
|
20862
21376
|
}
|
|
20863
21377
|
};
|
|
20864
|
-
h([s({ type: String })],
|
|
21378
|
+
h([s({ type: String })], Xo.prototype, "direction", void 0), h([s({
|
|
20865
21379
|
type: Number,
|
|
20866
21380
|
attribute: "min-size"
|
|
20867
|
-
})],
|
|
21381
|
+
})], Xo.prototype, "minSize", void 0), h([s({
|
|
20868
21382
|
type: Number,
|
|
20869
21383
|
attribute: "max-size"
|
|
20870
|
-
})],
|
|
21384
|
+
})], Xo.prototype, "maxSize", void 0), h([s({ type: Number })], Xo.prototype, "value", void 0), h([d()], Xo.prototype, "dragging", void 0), Xo = h([o("aithe-split-panel")], Xo);
|
|
20871
21385
|
//#endregion
|
|
20872
|
-
export { Hn as AITHE_DEFAULT_LOCALE, Le as AITHE_DEFAULT_THEME, Re as AITHE_THEME_STORAGE_KEY,
|
|
21386
|
+
export { Hn as AITHE_DEFAULT_LOCALE, Le as AITHE_DEFAULT_THEME, Re as AITHE_THEME_STORAGE_KEY, ki as AitheAffix, fo as AitheAlert, hr as AitheAnchoredOverlayElement, jo as AitheAnimatedImage, $ as AitheAutoView, R as AitheAutoform, z as AitheAutoformItem, vi as AitheAvatar, na as AitheBackTop, gi as AitheBadge, O as AitheBody, Co as AitheBoxTable, $i as AitheBreadcrumb, ea as AitheBreadcrumbItem, So as AitheBriefBox, C as AitheButton, pi as AitheButtonGroup, qo as AitheCallout, T as AitheCard, ko as AitheCarousel, sa as AitheCheckbox, ca as AitheCheckboxGroup, xi as AitheChip, Y as AitheCodeEditor, wi as AitheCol, Di as AitheCollapse, Oi as AitheCollapseItem, fa as AitheColorPicker, I as AitheCombobox, Ao as AitheComparison, Si as AitheContainer, M as AitheDashboard, j as AitheDashboardPanel, pa as AitheDatePicker, Z as AitheDesc, Q as AitheDescItem, Vo as AitheDetailBox, Jo as AitheDetails, oo as AitheDialog, yi as AitheDivider, V as AitheDrawer, H as AitheDropdown, g as AitheElement, bi as AitheEmpty, Ti as AitheFlex, va as AitheFormItem, ji as AitheHeader, fi as AitheIcon, w as AitheInput, ao as AitheLabel, mo as AitheLoading, E as AitheLocaleSwitch, A as AitheLogPanel, Po as AitheMarkdown, X as AitheMarkdownEditor, Zi as AitheMenu, Qi as AitheMenuItem, Ki as AitheMetrics, qi as AitheMetricsGroup, xo as AitheMiniBox, B as AitheModal, po as AitheNotification, Fi as AithePage, Oo as AithePagination, lo as AithePopover, Ho as AitheProfile, Uo as AitheProgressBar, Wo as AitheProgressRing, la as AitheRadio, ua as AitheRadioGroup, ga as AitheRate, Ci as AitheRow, Yo as AitheScroller, F as AitheSelect, P as AitheShadowPicker, aa as AitheShapePicker, k as AitheSidebar, Ko as AitheSkeleton, ha as AitheSlider, Ei as AitheSpace, Go as AitheSpinner, Xo as AitheSplitPanel, ta as AitheSteps, N as AitheSubMenu, da as AitheSwitch, Eo as AitheTabGroup, Do as AitheTabPane, W as AitheTable, U as AitheTableColumn, G as AitheTabs, _i as AitheTag, hi as AitheTextarea, ra as AitheThemePicker, ia as AitheThemePreview, D as AitheThemeSwitch, ma as AitheTimePicker, To as AitheTimeline, wo as AitheTimelineItem, uo as AitheToast, co as AitheTooltip, L as AitheTransfer, K as AitheTree, q as AitheTreeMenu, oa as AitheTypoPicker, or as AitheUI, ya as AitheUpload, Et as AitheWidget, ai as AmountFilter, ci as BytesFilter, Ke as CLOUD_THEMES, Ge as DARK_THEMES, rt as DEFAULT_LOG_CONFIG, ri as DataHubCore, S as DataHubError, oi as DateFilter, si as EmptyFilter, Or as FetchAdapter, ui as FilterFactory, Sa as FormCondition, Ta as FormRegistry, wa as FormRuleEngine, Ct as ICON_GLYPH_MAP, St as ICON_SIZE_MAP, Tt as IconUtil, We as LIGHT_THEMES, nt as LOG_LEVEL_LABEL, m as LogLevel, ht as LoggerCore, Ar as MockAdapter, Xi as Router, Ue as THEME_COLORS, li as TimeAgoFilter, Ea as ViewRegistry, x as aitheBaseStyles, Sr as aitheControlFocusStyleBlock, xr as aitheControlStyleBlock, br as aithePanelStyles, Cr as aitheScrollbarStyles, He as aitheThemeText, y as aitheUI, Rr as buildKey, Ur as cacheClear, Hr as cacheDelete, Br as cacheGet, Vr as cacheSet, mr as computeFloatingPosition, ii as dataHub, Vn as de, Kr as dedupClear, Gr as dedupTrack, _t as emitAitheEvent, Mn as en, Rn as es, di as filterFactory, se as findClosestThemeElement, le as findFirstFocusable, Bn as fr, $n as getAitheLocale, er as getAitheLocales, Tr as getBuiltinStyle, Er as getBuiltinStyleNames, ce as getFocusableElements, Xe as getGlobalTheme, Pr as getQueryKeywords, Ye as getThemeClassName, ti as idempotentClear, ei as idempotentGuard, tr as initAitheLocale, et as initAitheTheme, Zr as isLoading, vt as isNil, Fr as isQueryAction, In as ja, Ln as ko, Qe as loadStoredTheme, Xr as loadingEnd, Yr as loadingStart, Wn as localeMenu, gt as logger, bt as normalizeCssUnit, ar as onAitheLocaleChange, tt as onAitheThemeChange, Qr as onLoadingChange, zn as ptBr, _ as registerAitheLocale, Je as registerAitheTheme, Zn as registerAitheTranslations, $e as resolveComputedTheme, Lr as resolveStrategy, Qn as setAitheLocale, Ze as setGlobalTheme, Nr as setQueryKeywords, v as t, qe as themeMenu, yt as toBooleanAttribute, ir as translateNodeLabel, Nn as zh, Fn as zhHk, Pn as zhTw };
|
|
20873
21387
|
|
|
20874
21388
|
//# sourceMappingURL=index.js.map
|