@kayak-sj/design 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/components-CgiuwHwW.css +1 -0
- package/dist/{components/k-form/formComponent/Editor.vue_vue_type_script_setup_true_lang.js → chunks/Editor-CNxCYFmc.js} +4 -3
- package/dist/chunks/ImageCutter-B4uKMA_8.js +41 -0
- package/dist/chunks/KEditor-C882CuWG.js +331 -0
- package/dist/{_virtual/_plugin-vue_export-helper.js → chunks/_plugin-vue_export-helper-B3ysoDQm.js} +1 -1
- package/dist/chunks/components-Cj9QZ2w0.js +4962 -0
- package/dist/chunks/editorValue-DSKvW8ty.js +65 -0
- package/dist/components/index.js +3 -91
- package/dist/components/k-dialog/KDialog.d.ts +6 -6
- package/dist/components/k-dialog/KDialog.d.ts.map +1 -1
- package/dist/components/k-echarts/KEcharts.d.ts +2 -2
- package/dist/components/k-echarts/index.js +479 -2
- package/dist/components/k-editor/KEditor.d.ts +4 -4
- package/dist/components/k-editor/index.js +3 -3
- package/dist/components/k-form/KForm.d.ts +3 -3
- package/dist/components/k-form/KForm.d.ts.map +1 -1
- package/dist/components/k-form/formComponent/DatePicker.d.ts +1 -1
- package/dist/components/k-form/formComponent/DatePicker.d.ts.map +1 -1
- package/dist/components/k-form/formComponent/Input.d.ts +2 -2
- package/dist/components/k-form/formComponent/Input.d.ts.map +1 -1
- package/dist/components/k-form/formComponent/TimePicker.d.ts +1 -1
- package/dist/components/k-form/formComponent/TimePicker.d.ts.map +1 -1
- package/dist/components/k-form/formComponent/TreeSelect.d.ts +1 -1
- package/dist/components/k-form/formComponent/TreeSelect.d.ts.map +1 -1
- package/dist/components/k-link-button/KLinkButton.d.ts +1 -1
- package/dist/components/k-link-button/KLinkButton.d.ts.map +1 -1
- package/dist/components/k-table/KTable.d.ts +1 -1
- package/dist/components/k-upload/KUpload.d.ts +5 -5
- package/dist/index.js +212 -41
- package/package.json +3 -3
- package/dist/_virtual/_rolldown/runtime.js +0 -11
- package/dist/components/k-button/KButton.js +0 -5
- package/dist/components/k-button/KButton.vue_vue_type_script_setup_true_lang.js +0 -15
- package/dist/components/k-card/KCard.js +0 -5
- package/dist/components/k-card/KCard.vue_vue_type_script_setup_true_lang.js +0 -23
- package/dist/components/k-dialog/KDialog.js +0 -5
- package/dist/components/k-dialog/KDialog.vue_vue_type_script_setup_true_lang.js +0 -129
- package/dist/components/k-dialog/KDialogHeader.js +0 -5
- package/dist/components/k-dialog/KDialogHeader.vue_vue_type_script_setup_true_lang.js +0 -42
- package/dist/components/k-echarts/KEcharts.js +0 -7
- package/dist/components/k-echarts/KEcharts.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/components/k-echarts/composables/useKEcharts.js +0 -117
- package/dist/components/k-echarts/constants/echartEvents.js +0 -4
- package/dist/components/k-echarts/themes/customed.js +0 -285
- package/dist/components/k-echarts/themes/registerThemes.js +0 -7
- package/dist/components/k-echarts/utils/buildChartOptions.js +0 -23
- package/dist/components/k-echarts/utils/createToggleFeature.js +0 -12
- package/dist/components/k-editor/KEditor.js +0 -7
- package/dist/components/k-editor/KEditor.vue_vue_type_script_setup_true_lang.js +0 -96
- package/dist/components/k-editor/composables/useEditorImageUpload.js +0 -60
- package/dist/components/k-editor/composables/useKEditor.js +0 -98
- package/dist/components/k-editor/composables/useKEditorConfig.js +0 -46
- package/dist/components/k-editor/utils/editorValue.js +0 -37
- package/dist/components/k-editor/utils/registerPreviewMenu.js +0 -38
- package/dist/components/k-editor/utils/sanitizePasteHtml.js +0 -8
- package/dist/components/k-form/KForm.js +0 -5
- package/dist/components/k-form/KForm.vue_vue_type_script_setup_true_lang.js +0 -248
- package/dist/components/k-form/KFormField.js +0 -5
- package/dist/components/k-form/KFormField.vue_vue_type_script_setup_true_lang.js +0 -50
- package/dist/components/k-form/composables/useFormSchema.js +0 -36
- package/dist/components/k-form/composables/useKFormFields.js +0 -50
- package/dist/components/k-form/composables/useKFormModel.js +0 -194
- package/dist/components/k-form/composables/useKFormTemplateRef.js +0 -7
- package/dist/components/k-form/constants.js +0 -4
- package/dist/components/k-form/formComponent/Cascader.js +0 -7
- package/dist/components/k-form/formComponent/Cascader.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/components/k-form/formComponent/Cascader.vue_vue_type_style_index_0_scoped_ed0da536_lang.css +0 -1
- package/dist/components/k-form/formComponent/CheckBox.js +0 -7
- package/dist/components/k-form/formComponent/CheckBox.vue_vue_type_script_setup_true_lang.js +0 -86
- package/dist/components/k-form/formComponent/CheckBox.vue_vue_type_style_index_0_scoped_fca64c11_lang.css +0 -1
- package/dist/components/k-form/formComponent/DatePicker.js +0 -7
- package/dist/components/k-form/formComponent/DatePicker.vue_vue_type_script_setup_true_lang.js +0 -144
- package/dist/components/k-form/formComponent/DatePicker.vue_vue_type_style_index_0_scoped_578e2613_lang.css +0 -1
- package/dist/components/k-form/formComponent/Editor.js +0 -5
- package/dist/components/k-form/formComponent/Fallback.js +0 -5
- package/dist/components/k-form/formComponent/Fallback.vue_vue_type_script_setup_true_lang.js +0 -22
- package/dist/components/k-form/formComponent/Input.js +0 -5
- package/dist/components/k-form/formComponent/Input.vue_vue_type_script_setup_true_lang.js +0 -93
- package/dist/components/k-form/formComponent/InputMixInput.js +0 -7
- package/dist/components/k-form/formComponent/InputMixInput.vue_vue_type_script_setup_true_lang.js +0 -108
- package/dist/components/k-form/formComponent/InputMixInput.vue_vue_type_style_index_0_scoped_6fdf6265_lang.css +0 -1
- package/dist/components/k-form/formComponent/InputMixSelect.js +0 -7
- package/dist/components/k-form/formComponent/InputMixSelect.vue_vue_type_script_setup_true_lang.js +0 -185
- package/dist/components/k-form/formComponent/InputMixSelect.vue_vue_type_style_index_0_scoped_1f46ef39_lang.css +0 -1
- package/dist/components/k-form/formComponent/InputNumber.js +0 -7
- package/dist/components/k-form/formComponent/InputNumber.vue_vue_type_script_setup_true_lang.js +0 -63
- package/dist/components/k-form/formComponent/InputNumber.vue_vue_type_style_index_0_scoped_acdc4199_lang.css +0 -1
- package/dist/components/k-form/formComponent/Radio.js +0 -7
- package/dist/components/k-form/formComponent/Radio.vue_vue_type_script_setup_true_lang.js +0 -50
- package/dist/components/k-form/formComponent/Radio.vue_vue_type_style_index_0_scoped_e0ff32b0_lang.css +0 -1
- package/dist/components/k-form/formComponent/RadioInput.js +0 -7
- package/dist/components/k-form/formComponent/RadioInput.vue_vue_type_script_setup_true_lang.js +0 -130
- package/dist/components/k-form/formComponent/RadioInput.vue_vue_type_style_index_0_scoped_1543c319_lang.css +0 -1
- package/dist/components/k-form/formComponent/ScrollSelect.js +0 -7
- package/dist/components/k-form/formComponent/ScrollSelect.vue_vue_type_script_setup_true_lang.js +0 -132
- package/dist/components/k-form/formComponent/ScrollSelect.vue_vue_type_style_index_0_scoped_dc0bba37_lang.css +0 -1
- package/dist/components/k-form/formComponent/Select.js +0 -7
- package/dist/components/k-form/formComponent/Select.vue_vue_type_script_setup_true_lang.js +0 -81
- package/dist/components/k-form/formComponent/Select.vue_vue_type_style_index_0_scoped_20fc23b7_lang.css +0 -1
- package/dist/components/k-form/formComponent/SelectMultiple.js +0 -7
- package/dist/components/k-form/formComponent/SelectMultiple.vue_vue_type_script_setup_true_lang.js +0 -84
- package/dist/components/k-form/formComponent/SelectMultiple.vue_vue_type_style_index_0_scoped_e6ca06e1_lang.css +0 -1
- package/dist/components/k-form/formComponent/Tag.js +0 -7
- package/dist/components/k-form/formComponent/Tag.vue_vue_type_script_setup_true_lang.js +0 -86
- package/dist/components/k-form/formComponent/Tag.vue_vue_type_style_index_0_scoped_9961a98a_lang.css +0 -1
- package/dist/components/k-form/formComponent/Text.js +0 -7
- package/dist/components/k-form/formComponent/Text.vue_vue_type_script_setup_true_lang.js +0 -19
- package/dist/components/k-form/formComponent/Text.vue_vue_type_style_index_0_scoped_9dc35114_lang.css +0 -1
- package/dist/components/k-form/formComponent/TimePicker.js +0 -7
- package/dist/components/k-form/formComponent/TimePicker.vue_vue_type_script_setup_true_lang.js +0 -116
- package/dist/components/k-form/formComponent/TimePicker.vue_vue_type_style_index_0_scoped_8680ec2d_lang.css +0 -1
- package/dist/components/k-form/formComponent/TreeSelect.js +0 -5
- package/dist/components/k-form/formComponent/TreeSelect.vue_vue_type_script_setup_true_lang.js +0 -57
- package/dist/components/k-form/formComponent/Upload.js +0 -5
- package/dist/components/k-form/formComponent/Upload.vue_vue_type_script_setup_true_lang.js +0 -64
- package/dist/components/k-form/formComponent/componentRegistry.js +0 -49
- package/dist/components/k-form/utils/fieldValue.js +0 -83
- package/dist/components/k-form/utils/formRules.js +0 -44
- package/dist/components/k-form/utils/resolveFormFieldComponent.js +0 -13
- package/dist/components/k-handle-page/KHandlePage.js +0 -5
- package/dist/components/k-handle-page/KHandlePage.vue_vue_type_script_setup_true_lang.js +0 -105
- package/dist/components/k-handle-page/useHandlePageInit.js +0 -21
- package/dist/components/k-icon/KIcon.js +0 -7
- package/dist/components/k-icon/KIcon.vue_vue_type_script_setup_true_lang.js +0 -23
- package/dist/components/k-icon/KIcon.vue_vue_type_style_index_0_scoped_6fd081ab_lang.css +0 -1
- package/dist/components/k-icon/resolveLucideIcon.js +0 -26
- package/dist/components/k-link-button/KLinkButton.js +0 -5
- package/dist/components/k-link-button/KLinkButton.vue_vue_type_script_setup_true_lang.js +0 -58
- package/dist/components/k-long-page/KLongPage.js +0 -7
- package/dist/components/k-long-page/KLongPage.vue_vue_type_script_setup_true_lang.js +0 -72
- package/dist/components/k-long-page/KLongPage.vue_vue_type_style_index_0_scoped_ac934c5d_lang.css +0 -1
- package/dist/components/k-long-page/KLongPagePanel.js +0 -7
- package/dist/components/k-long-page/KLongPagePanel.vue_vue_type_script_setup_true_lang.js +0 -18
- package/dist/components/k-long-page/KLongPagePanel.vue_vue_type_style_index_0_scoped_9d6e7832_lang.css +0 -1
- package/dist/components/k-long-page/composables/useLongPageNavDrag.js +0 -32
- package/dist/components/k-long-page/icons/icon-base-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-base.js +0 -4
- package/dist/components/k-long-page/icons/icon-notice-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-notice.js +0 -4
- package/dist/components/k-long-page/icons/icon-price-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-price.js +0 -4
- package/dist/components/k-long-page/icons/icon-restrict-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-restrict.js +0 -4
- package/dist/components/k-long-page/icons/icon-setup-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-setup.js +0 -4
- package/dist/components/k-long-page/navConfigs.js +0 -23
- package/dist/components/k-pagination/KPagination.js +0 -5
- package/dist/components/k-pagination/KPagination.vue_vue_type_script_setup_true_lang.js +0 -36
- package/dist/components/k-panel/KPanel.js +0 -5
- package/dist/components/k-panel/KPanel.vue_vue_type_script_setup_true_lang.js +0 -47
- package/dist/components/k-panel-query/KPanelQuery.js +0 -5
- package/dist/components/k-panel-query/KPanelQuery.vue_vue_type_script_setup_true_lang.js +0 -151
- package/dist/components/k-panel-query/KPanelQueryActions.js +0 -5
- package/dist/components/k-panel-query/KPanelQueryActions.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/components/k-panel-query/KPanelQueryForm.js +0 -5
- package/dist/components/k-panel-query/KPanelQueryForm.vue_vue_type_script_setup_true_lang.js +0 -55
- package/dist/components/k-panel-query/KPanelQueryItem.js +0 -5
- package/dist/components/k-panel-query/KPanelQueryItem.vue_vue_type_script_setup_true_lang.js +0 -63
- package/dist/components/k-table/KTable.js +0 -7
- package/dist/components/k-table/KTable.vue_vue_type_script_setup_true_lang.js +0 -190
- package/dist/components/k-table/KTable.vue_vue_type_style_index_0_scoped_9ecd6487_lang.css +0 -1
- package/dist/components/k-table/KTableColumn.js +0 -7
- package/dist/components/k-table/KTableColumn.vue_vue_type_script_setup_true_lang.js +0 -154
- package/dist/components/k-table/KTableColumn.vue_vue_type_style_index_0_scoped_578909bc_lang.css +0 -1
- package/dist/components/k-table/KTableColumnSelector.js +0 -7
- package/dist/components/k-table/KTableColumnSelector.vue_vue_type_script_setup_true_lang.js +0 -59
- package/dist/components/k-table/KTableColumnSelector.vue_vue_type_style_index_0_scoped_e0b3cf31_lang.css +0 -1
- package/dist/components/k-table/KTableToolbar.js +0 -7
- package/dist/components/k-table/KTableToolbar.vue_vue_type_script_setup_true_lang.js +0 -60
- package/dist/components/k-table/KTableToolbar.vue_vue_type_style_index_0_scoped_bff19ed1_lang.css +0 -1
- package/dist/components/k-table/composables/useColumnDisplay.js +0 -103
- package/dist/components/k-table/composables/useKTable.js +0 -179
- package/dist/components/k-table/composables/useKTableCrossPageSelection.js +0 -58
- package/dist/components/k-table/composables/useKTableTemplateRef.js +0 -7
- package/dist/components/k-table/composables/useTableColumns.js +0 -61
- package/dist/components/k-table/composables/useTableData.js +0 -47
- package/dist/components/k-table/composables/useTablePagination.js +0 -52
- package/dist/components/k-table/composables/useTableRadio.js +0 -28
- package/dist/components/k-table/composables/useTableRowSort.js +0 -35
- package/dist/components/k-table/composables/useTableTreeLoad.js +0 -32
- package/dist/components/k-table/dictOptions.js +0 -9
- package/dist/components/k-table/kTableProps.js +0 -17
- package/dist/components/k-table/report/convertDownloadCol.js +0 -11
- package/dist/components/k-table/report/exportKTableReport.js +0 -19
- package/dist/components/k-table/report/mergeQueryConfig.js +0 -31
- package/dist/components/k-table/report/pickExportColumns.js +0 -7
- package/dist/components/k-table/report/useExportKTableReport.js +0 -29
- package/dist/components/k-table/types.js +0 -20
- package/dist/components/k-table/utils/columnIdentity.js +0 -6
- package/dist/components/k-table/utils/formatCellValue.js +0 -30
- package/dist/components/k-table/utils/rowKey.js +0 -10
- package/dist/components/k-upload/KUpload.js +0 -7
- package/dist/components/k-upload/KUpload.vue_vue_type_script_setup_true_lang.js +0 -355
- package/dist/components/k-upload/KUpload.vue_vue_type_style_index_0_scoped_6050c2c6_lang.css +0 -1
- package/dist/components/k-upload/components/ImageCutter.js +0 -7
- package/dist/components/k-upload/components/ImageCutter.vue_vue_type_script_setup_true_lang.js +0 -40
- package/dist/components/k-upload/components/UploadFileItem.js +0 -7
- package/dist/components/k-upload/components/UploadFileItem.vue_vue_type_script_setup_true_lang.js +0 -73
- package/dist/components/k-upload/components/UploadFileItem.vue_vue_type_style_index_0_scoped_01959ada_lang.css +0 -1
- package/dist/components/k-upload/components/UploadInlineActions.js +0 -7
- package/dist/components/k-upload/components/UploadInlineActions.vue_vue_type_script_setup_true_lang.js +0 -39
- package/dist/components/k-upload/components/UploadInlineActions.vue_vue_type_style_index_0_scoped_55d9c320_lang.css +0 -1
- package/dist/components/k-upload/components/UploadMediaDialog.js +0 -7
- package/dist/components/k-upload/components/UploadMediaDialog.vue_vue_type_script_setup_true_lang.js +0 -44
- package/dist/components/k-upload/components/UploadMediaDialog.vue_vue_type_style_index_0_scoped_b9720661_lang.css +0 -1
- package/dist/components/k-upload/components/UploadTipArea.js +0 -7
- package/dist/components/k-upload/components/UploadTipArea.vue_vue_type_script_setup_true_lang.js +0 -26
- package/dist/components/k-upload/components/UploadTipArea.vue_vue_type_style_index_0_scoped_f2b7df65_lang.css +0 -1
- package/dist/components/k-upload/composables/useImagePreview.js +0 -23
- package/dist/components/k-upload/composables/useMediaPreview.js +0 -20
- package/dist/components/k-upload/composables/useUploadFileList.js +0 -46
- package/dist/components/k-upload/composables/useUploadRequest.js +0 -43
- package/dist/components/k-upload/composables/useUploadValidation.js +0 -22
- package/dist/components/k-upload/resolveUploadAction.js +0 -13
- package/dist/components/k-upload/utils/uploadFileValue.js +0 -44
- package/dist/config/uploadConfig.js +0 -29
- package/dist/theme/index.js +0 -22
- package/dist/utils/createStubComponent.js +0 -43
- package/dist/utils/validators.js +0 -152
- /package/dist/{components/k-upload/components/ImageCutter.vue_vue_type_style_index_0_scoped_900b5e3b_lang.css → assets/ImageCutter-B771uShK.css} +0 -0
- /package/dist/{components/k-editor/KEditor.vue_vue_type_style_index_0_scoped_b9ef08e0_lang.css → assets/KEditor-LzsE5URl.css} +0 -0
- /package/dist/{components/k-echarts/KEcharts.vue_vue_type_style_index_0_scoped_d6da558a_lang.css → assets/index-DMxcQQBQ.css} +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
//#region src/config/uploadConfig.ts
|
|
2
|
+
var e = {
|
|
3
|
+
urls: {
|
|
4
|
+
BASE_URL: "/adm/",
|
|
5
|
+
UPLOAD_FILE_URL: "/adm/commons/file/uploadfile",
|
|
6
|
+
DOWNLOAD_FILE_URL: "/adm/commons/file/downloadfile?resource_id=",
|
|
7
|
+
UPLOAD_IMG_URL: "/adm/commons/file/uploadimg",
|
|
8
|
+
SHOW_IMG_URL: "/adm/commons/file/showimg?resource_id=",
|
|
9
|
+
UPLOAD_EXCEL_URL: "/adm/commons/file/importfile",
|
|
10
|
+
EXPORT_DATA_URL: "/adm/commons/file/imp/901004",
|
|
11
|
+
UPLOAD_TXT_URL: "/adm/commons/file/uploadCoreCustNofile"
|
|
12
|
+
},
|
|
13
|
+
templateDownloadBaseUrl: "/file/",
|
|
14
|
+
templateCodeRelation: {},
|
|
15
|
+
responseCode: "head_ret_code",
|
|
16
|
+
responseMsg: "head_ret_msg",
|
|
17
|
+
responseSuccessCode: "000000"
|
|
18
|
+
};
|
|
19
|
+
function t(t) {
|
|
20
|
+
e = {
|
|
21
|
+
...e,
|
|
22
|
+
...t
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function n() {
|
|
26
|
+
return e;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/components/k-editor/utils/editorValue.ts
|
|
30
|
+
function r(e) {
|
|
31
|
+
return e == null ? "" : typeof e == "object" ? e.html ?? "" : e;
|
|
32
|
+
}
|
|
33
|
+
function i(e) {
|
|
34
|
+
return e.replace(/<[^>]*>/g, "").replace(/ /gi, " ").replace(/ /gi, " ").replace(/</gi, "<").replace(/>/gi, ">").replace(/&/gi, "&").replace(/"/gi, "\"");
|
|
35
|
+
}
|
|
36
|
+
function a(e) {
|
|
37
|
+
return e.replace(/ /g, " ").replace(/\n/g, "").replace(/\s/g, "").length;
|
|
38
|
+
}
|
|
39
|
+
function o(e) {
|
|
40
|
+
return a(i(e));
|
|
41
|
+
}
|
|
42
|
+
function s(e) {
|
|
43
|
+
return e == null ? 0 : o(r(e));
|
|
44
|
+
}
|
|
45
|
+
function c(e, t) {
|
|
46
|
+
return {
|
|
47
|
+
html: t === 0 ? "" : e,
|
|
48
|
+
length: t
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function l(e) {
|
|
52
|
+
let t = e ?? "";
|
|
53
|
+
return c(t, o(t));
|
|
54
|
+
}
|
|
55
|
+
function u(e, t) {
|
|
56
|
+
let n = e ?? t;
|
|
57
|
+
if (n === "" || n == null) return;
|
|
58
|
+
let r = Number(n);
|
|
59
|
+
return Number.isFinite(r) && r > 0 ? r : void 0;
|
|
60
|
+
}
|
|
61
|
+
function d(e, t) {
|
|
62
|
+
return r(e) === r(t);
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
export { s as a, i as c, t as d, r as i, l, o as n, d as o, a as r, u as s, c as t, n as u };
|
package/dist/components/index.js
CHANGED
|
@@ -1,91 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import r from "./k-dialog/KDialogHeader.js";
|
|
5
|
-
import i from "./k-dialog/KDialog.js";
|
|
6
|
-
import { DICT_KEY as a } from "./k-table/types.js";
|
|
7
|
-
import o from "./k-form/formComponent/CheckBox.js";
|
|
8
|
-
import s from "./k-form/formComponent/DatePicker.js";
|
|
9
|
-
import c from "./k-form/formComponent/Input.js";
|
|
10
|
-
import l from "./k-form/formComponent/Select.js";
|
|
11
|
-
import u from "./k-form/formComponent/Radio.js";
|
|
12
|
-
import d from "./k-form/formComponent/TimePicker.js";
|
|
13
|
-
import { getUploadConfig as f, updateUploadConfig as p } from "../config/uploadConfig.js";
|
|
14
|
-
import m from "./k-upload/KUpload.js";
|
|
15
|
-
import { registerFormComponents as h } from "./k-form/formComponent/componentRegistry.js";
|
|
16
|
-
import g from "./k-form/KForm.js";
|
|
17
|
-
import { useKFormTemplateRef as _ } from "./k-form/composables/useKFormTemplateRef.js";
|
|
18
|
-
import v from "./k-handle-page/KHandlePage.js";
|
|
19
|
-
import { useHandlePageInit as y } from "./k-handle-page/useHandlePageInit.js";
|
|
20
|
-
import { getAllLucideKebabNames as b, pascalToKebab as x, resolveLucideIcon as S, toLucidePascalName as C } from "./k-icon/resolveLucideIcon.js";
|
|
21
|
-
import w from "./k-icon/KIcon.js";
|
|
22
|
-
import T from "./k-link-button/KLinkButton.js";
|
|
23
|
-
import E from "./k-pagination/KPagination.js";
|
|
24
|
-
import D from "./k-long-page/KLongPage.js";
|
|
25
|
-
import O from "./k-card/KCard.js";
|
|
26
|
-
import k from "./k-panel/KPanel.js";
|
|
27
|
-
import A from "./k-panel-query/KPanelQuery.js";
|
|
28
|
-
import j from "./k-table/KTable.js";
|
|
29
|
-
import { mapGroupDictToOptions as M } from "./k-table/dictOptions.js";
|
|
30
|
-
import { useKTableTemplateRef as N } from "./k-table/composables/useKTableTemplateRef.js";
|
|
31
|
-
import { useKTableCrossPageSelection as P } from "./k-table/composables/useKTableCrossPageSelection.js";
|
|
32
|
-
import { exportKTableReport as F, exportKTableReportData as I } from "./k-table/report/exportKTableReport.js";
|
|
33
|
-
import { withQueryFieldOptions as L } from "./k-table/report/mergeQueryConfig.js";
|
|
34
|
-
import { useExportKTableReport as R } from "./k-table/report/useExportKTableReport.js";
|
|
35
|
-
import { countEditorHtmlWords as z, countEditorWords as B, getEditorHtml as V, getEditorWordCount as H, toKEditorValue as U } from "./k-editor/utils/editorValue.js";
|
|
36
|
-
import { createUploadFileItem as W, hasUploadSubmitFields as G, toUploadFiles as K, toUploadSubmitFields as q } from "./k-upload/utils/uploadFileValue.js";
|
|
37
|
-
//#region src/components/index.ts
|
|
38
|
-
var J = /* @__PURE__ */ e({
|
|
39
|
-
DICT_KEY: () => a,
|
|
40
|
-
KAffix: () => Y,
|
|
41
|
-
KBreadcrumb: () => X,
|
|
42
|
-
KButton: () => n,
|
|
43
|
-
KCard: () => O,
|
|
44
|
-
KCascader: () => Z,
|
|
45
|
-
KCheckbox: () => o,
|
|
46
|
-
KColorPicker: () => Q,
|
|
47
|
-
KDatePicker: () => s,
|
|
48
|
-
KDialog: () => i,
|
|
49
|
-
KDialogHeader: () => r,
|
|
50
|
-
KForm: () => g,
|
|
51
|
-
KHandlePage: () => v,
|
|
52
|
-
KIcon: () => w,
|
|
53
|
-
KInput: () => c,
|
|
54
|
-
KLinkButton: () => T,
|
|
55
|
-
KLongPage: () => D,
|
|
56
|
-
KPagination: () => E,
|
|
57
|
-
KPanel: () => k,
|
|
58
|
-
KPanelQuery: () => A,
|
|
59
|
-
KRadio: () => u,
|
|
60
|
-
KSelect: () => l,
|
|
61
|
-
KTable: () => j,
|
|
62
|
-
KTimePicker: () => d,
|
|
63
|
-
KUpload: () => m,
|
|
64
|
-
countEditorHtmlWords: () => z,
|
|
65
|
-
countEditorWords: () => B,
|
|
66
|
-
createUploadFileItem: () => W,
|
|
67
|
-
exportKTableReport: () => F,
|
|
68
|
-
exportKTableReportData: () => I,
|
|
69
|
-
getAllLucideKebabNames: () => b,
|
|
70
|
-
getEditorHtml: () => V,
|
|
71
|
-
getEditorWordCount: () => H,
|
|
72
|
-
getUploadConfig: () => f,
|
|
73
|
-
hasUploadSubmitFields: () => G,
|
|
74
|
-
mapGroupDictToOptions: () => M,
|
|
75
|
-
pascalToKebab: () => x,
|
|
76
|
-
registerFormComponents: () => h,
|
|
77
|
-
resolveLucideIcon: () => S,
|
|
78
|
-
toKEditorValue: () => U,
|
|
79
|
-
toLucidePascalName: () => C,
|
|
80
|
-
toUploadFiles: () => K,
|
|
81
|
-
toUploadSubmitFields: () => q,
|
|
82
|
-
updateUploadConfig: () => p,
|
|
83
|
-
useExportKTableReport: () => R,
|
|
84
|
-
useHandlePageInit: () => y,
|
|
85
|
-
useKFormTemplateRef: () => _,
|
|
86
|
-
useKTableCrossPageSelection: () => P,
|
|
87
|
-
useKTableTemplateRef: () => N,
|
|
88
|
-
withQueryFieldOptions: () => L
|
|
89
|
-
}), Y = t("KAffix"), X = t("KBreadcrumb"), Z = t("KCascader"), Q = t("KColorPicker");
|
|
90
|
-
//#endregion
|
|
91
|
-
export { a as DICT_KEY, Y as KAffix, X as KBreadcrumb, n as KButton, O as KCard, Z as KCascader, o as KCheckbox, Q as KColorPicker, s as KDatePicker, i as KDialog, r as KDialogHeader, g as KForm, v as KHandlePage, w as KIcon, c as KInput, T as KLinkButton, D as KLongPage, E as KPagination, k as KPanel, A as KPanelQuery, u as KRadio, l as KSelect, j as KTable, d as KTimePicker, m as KUpload, J as components_exports, z as countEditorHtmlWords, B as countEditorWords, W as createUploadFileItem, F as exportKTableReport, I as exportKTableReportData, b as getAllLucideKebabNames, V as getEditorHtml, H as getEditorWordCount, f as getUploadConfig, G as hasUploadSubmitFields, M as mapGroupDictToOptions, x as pascalToKebab, h as registerFormComponents, S as resolveLucideIcon, U as toKEditorValue, C as toLucidePascalName, K as toUploadFiles, q as toUploadSubmitFields, p as updateUploadConfig, R as useExportKTableReport, y as useHandlePageInit, _ as useKFormTemplateRef, P as useKTableCrossPageSelection, N as useKTableTemplateRef, L as withQueryFieldOptions };
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, H as o, I as s, L as c, M as l, N as u, O as d, P as f, R as p, S as m, T as h, U as g, V as _, W as v, _ as y, b, c as x, d as S, f as C, g as w, h as T, i as E, j as D, k as O, l as k, m as A, n as j, o as M, p as N, r as P, s as F, t as I, u as L, v as R, w as z, x as B, y as V, z as H } from "../chunks/components-Cj9QZ2w0.js";
|
|
2
|
+
import { a as U, d as W, i as G, l as K, n as q, r as J, u as Y } from "../chunks/editorValue-DSKvW8ty.js";
|
|
3
|
+
export { _ as DICT_KEY, I as KAffix, j as KBreadcrumb, v as KButton, b as KCard, P as KCascader, t as KCheckbox, E as KColorPicker, H as KDatePicker, o as KDialog, g as KDialogHeader, l as KForm, e as KHandlePage, z as KIcon, p as KInput, n as KLinkButton, B as KLongPage, m as KPagination, V as KPanel, R as KPanelQuery, s as KRadio, c as KSelect, y as KTable, a as KTimePicker, f as KUpload, q as countEditorHtmlWords, J as countEditorWords, M as createUploadFileItem, C as exportKTableReport, N as exportKTableReportData, h as getAllLucideKebabNames, G as getEditorHtml, U as getEditorWordCount, Y as getUploadConfig, F as hasUploadSubmitFields, w as mapGroupDictToOptions, i as pascalToKebab, u as registerFormComponents, r as resolveLucideIcon, K as toKEditorValue, d as toLucidePascalName, x as toUploadFiles, k as toUploadSubmitFields, W as updateUploadConfig, L as useExportKTableReport, O as useHandlePageInit, D as useKFormTemplateRef, A as useKTableCrossPageSelection, T as useKTableTemplateRef, S as withQueryFieldOptions };
|
|
@@ -35,25 +35,25 @@ type __VLS_Slots = {} & {
|
|
|
35
35
|
};
|
|
36
36
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
37
37
|
cancel: () => any;
|
|
38
|
-
closed: () => any;
|
|
39
38
|
confirm: () => any;
|
|
39
|
+
closed: () => any;
|
|
40
40
|
"update:visible": (value: boolean) => any;
|
|
41
41
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
42
42
|
onCancel?: (() => any) | undefined;
|
|
43
|
-
onClosed?: (() => any) | undefined;
|
|
44
43
|
onConfirm?: (() => any) | undefined;
|
|
44
|
+
onClosed?: (() => any) | undefined;
|
|
45
45
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
46
46
|
}>, {
|
|
47
|
-
icon: Component;
|
|
48
|
-
showClose: boolean;
|
|
49
|
-
appendToBody: boolean;
|
|
50
|
-
destroyOnClose: boolean;
|
|
51
47
|
title: string;
|
|
48
|
+
icon: Component;
|
|
52
49
|
description: string;
|
|
53
50
|
variant: KDialogVariant;
|
|
54
51
|
showConfirm: KDialogButtonOption;
|
|
55
52
|
showCancel: KDialogButtonOption;
|
|
56
53
|
confirmLoading: boolean;
|
|
54
|
+
appendToBody: boolean;
|
|
55
|
+
showClose: boolean;
|
|
56
|
+
destroyOnClose: boolean;
|
|
57
57
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
58
58
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
59
59
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/k-dialog/KDialog.vue"],"names":[],"mappings":"AA2JA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAKpC,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAMlE,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sBAAsB;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iDAAiD;IACjD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,mBAAmB,CAAA;IACjC,UAAU,CAAC,EAAE,mBAAmB,CAAA;IAChC,wBAAwB;IACxB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,eAAe;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,kBAAkB;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AAyEJ,KAAK,gBAAgB,GAAG;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAiBF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAqKxD,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACzF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"KDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/k-dialog/KDialog.vue"],"names":[],"mappings":"AA2JA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAKpC,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAMlE,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sBAAsB;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iDAAiD;IACjD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,mBAAmB,CAAA;IACjC,UAAU,CAAC,EAAE,mBAAmB,CAAA;IAChC,wBAAwB;IACxB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,eAAe;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,kBAAkB;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AAyEJ,KAAK,gBAAgB,GAAG;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAiBF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAqKxD,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACzF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;;;;;;WA5RJ,MAAM;UAIP,SAAS;iBAFF,MAAM;aAIV,cAAc;iBAEV,mBAAmB;gBACpB,mBAAmB;oBAEf,OAAO;kBACT,OAAO;eAEV,OAAO;oBAEF,OAAO;6EAgR1B,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -64,10 +64,10 @@ declare const __VLS_export: import('vue').DefineComponent<KEchartsProps, KEchart
|
|
|
64
64
|
onBrushselected?: ((...args: any[]) => any) | undefined;
|
|
65
65
|
onOnInitComplete?: ((...args: any[]) => any) | undefined;
|
|
66
66
|
}>, {
|
|
67
|
-
height: string;
|
|
68
67
|
toggle: boolean;
|
|
69
|
-
width: string;
|
|
70
68
|
loading: boolean;
|
|
69
|
+
width: string;
|
|
70
|
+
height: string;
|
|
71
71
|
renderer: import('./types').KEchartsRenderer;
|
|
72
72
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
73
73
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,2 +1,479 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
|
|
1
|
+
import { t as e } from "../../chunks/_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { computed as t, createElementBlock as n, defineComponent as r, normalizeStyle as i, onActivated as a, onBeforeUnmount as o, onDeactivated as s, onMounted as c, openBlock as l, shallowRef as u, unref as d, useTemplateRef as f, watch as p } from "vue";
|
|
3
|
+
import { useDebounceFn as m, useResizeObserver as h } from "@vueuse/core";
|
|
4
|
+
import * as g from "echarts";
|
|
5
|
+
import '../../assets/index-DMxcQQBQ.css';//#region src/components/k-echarts/constants/echartEvents.ts
|
|
6
|
+
var _ = /* @__PURE__ */ "click.dbclick.mousedown.mouseup.mouseover.mouseout.globalout.legendselectchanged.legendselected.legendunselected.legendscroll.datazoom.datarangeselected.timelinechanged.timelineplaychanged.restore.dataviewchanged.magictypechanged.geoselectchanged.geoselected.geounselected.pieselected.pieunselected.mapselected.mapunselected.axisareaselected.focusnodeadjacency.unfocusnodeadjacency.brush.brushselected".split("."), v = {
|
|
7
|
+
color: [
|
|
8
|
+
"#5470c6",
|
|
9
|
+
"#91cc75",
|
|
10
|
+
"#fac858",
|
|
11
|
+
"#ee6666",
|
|
12
|
+
"#73c0de",
|
|
13
|
+
"#3ba272",
|
|
14
|
+
"#fc8452",
|
|
15
|
+
"#9a60b4",
|
|
16
|
+
"#ea7ccc"
|
|
17
|
+
],
|
|
18
|
+
backgroundColor: "rgba(0, 0, 0, 0)",
|
|
19
|
+
textStyle: {},
|
|
20
|
+
title: {
|
|
21
|
+
textStyle: { color: "#464646" },
|
|
22
|
+
subtextStyle: { color: "#6E7079" }
|
|
23
|
+
},
|
|
24
|
+
line: {
|
|
25
|
+
itemStyle: { borderWidth: 1 },
|
|
26
|
+
lineStyle: { width: 2 },
|
|
27
|
+
symbolSize: 4,
|
|
28
|
+
symbol: "emptyCircle",
|
|
29
|
+
smooth: !1
|
|
30
|
+
},
|
|
31
|
+
radar: {
|
|
32
|
+
itemStyle: { borderWidth: 1 },
|
|
33
|
+
lineStyle: { width: 2 },
|
|
34
|
+
symbolSize: 4,
|
|
35
|
+
symbol: "emptyCircle",
|
|
36
|
+
smooth: !1
|
|
37
|
+
},
|
|
38
|
+
bar: { itemStyle: {
|
|
39
|
+
barBorderWidth: 0,
|
|
40
|
+
barBorderColor: "#ccc"
|
|
41
|
+
} },
|
|
42
|
+
pie: { itemStyle: {
|
|
43
|
+
borderWidth: 0,
|
|
44
|
+
borderColor: "#ccc"
|
|
45
|
+
} },
|
|
46
|
+
scatter: { itemStyle: {
|
|
47
|
+
borderWidth: 0,
|
|
48
|
+
borderColor: "#ccc"
|
|
49
|
+
} },
|
|
50
|
+
boxplot: { itemStyle: {
|
|
51
|
+
borderWidth: 0,
|
|
52
|
+
borderColor: "#ccc"
|
|
53
|
+
} },
|
|
54
|
+
parallel: { itemStyle: {
|
|
55
|
+
borderWidth: 0,
|
|
56
|
+
borderColor: "#ccc"
|
|
57
|
+
} },
|
|
58
|
+
sankey: { itemStyle: {
|
|
59
|
+
borderWidth: 0,
|
|
60
|
+
borderColor: "#ccc"
|
|
61
|
+
} },
|
|
62
|
+
funnel: { itemStyle: {
|
|
63
|
+
borderWidth: 0,
|
|
64
|
+
borderColor: "#ccc"
|
|
65
|
+
} },
|
|
66
|
+
gauge: { itemStyle: {
|
|
67
|
+
borderWidth: 0,
|
|
68
|
+
borderColor: "#ccc"
|
|
69
|
+
} },
|
|
70
|
+
candlestick: { itemStyle: {
|
|
71
|
+
color: "#eb5454",
|
|
72
|
+
color0: "#47b262",
|
|
73
|
+
borderColor: "#eb5454",
|
|
74
|
+
borderColor0: "#47b262",
|
|
75
|
+
borderWidth: 1
|
|
76
|
+
} },
|
|
77
|
+
graph: {
|
|
78
|
+
itemStyle: {
|
|
79
|
+
borderWidth: 0,
|
|
80
|
+
borderColor: "#ccc"
|
|
81
|
+
},
|
|
82
|
+
lineStyle: {
|
|
83
|
+
width: 1,
|
|
84
|
+
color: "#aaa"
|
|
85
|
+
},
|
|
86
|
+
symbolSize: 4,
|
|
87
|
+
symbol: "emptyCircle",
|
|
88
|
+
smooth: !1,
|
|
89
|
+
color: [
|
|
90
|
+
"#5470c6",
|
|
91
|
+
"#91cc75",
|
|
92
|
+
"#fac858",
|
|
93
|
+
"#ee6666",
|
|
94
|
+
"#73c0de",
|
|
95
|
+
"#3ba272",
|
|
96
|
+
"#fc8452",
|
|
97
|
+
"#9a60b4",
|
|
98
|
+
"#ea7ccc"
|
|
99
|
+
],
|
|
100
|
+
label: { color: "#eee" }
|
|
101
|
+
},
|
|
102
|
+
map: {
|
|
103
|
+
itemStyle: {
|
|
104
|
+
normal: {
|
|
105
|
+
areaColor: "#eee",
|
|
106
|
+
borderColor: "#444",
|
|
107
|
+
borderWidth: .5
|
|
108
|
+
},
|
|
109
|
+
emphasis: {
|
|
110
|
+
areaColor: "rgba(255,215,0,0.8)",
|
|
111
|
+
borderColor: "#444",
|
|
112
|
+
borderWidth: 1
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
label: {
|
|
116
|
+
normal: { textStyle: { color: "#000" } },
|
|
117
|
+
emphasis: { textStyle: { color: "rgb(100,0,0)" } }
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
geo: {
|
|
121
|
+
itemStyle: {
|
|
122
|
+
normal: {
|
|
123
|
+
areaColor: "#eee",
|
|
124
|
+
borderColor: "#444",
|
|
125
|
+
borderWidth: .5
|
|
126
|
+
},
|
|
127
|
+
emphasis: {
|
|
128
|
+
areaColor: "rgba(255,215,0,0.8)",
|
|
129
|
+
borderColor: "#444",
|
|
130
|
+
borderWidth: 1
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
label: {
|
|
134
|
+
normal: { textStyle: { color: "#000" } },
|
|
135
|
+
emphasis: { textStyle: { color: "rgb(100,0,0)" } }
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
categoryAxis: {
|
|
139
|
+
axisLine: {
|
|
140
|
+
show: !0,
|
|
141
|
+
lineStyle: { color: "#6E7079" }
|
|
142
|
+
},
|
|
143
|
+
axisTick: {
|
|
144
|
+
show: !0,
|
|
145
|
+
lineStyle: { color: "#6E7079" }
|
|
146
|
+
},
|
|
147
|
+
axisLabel: {
|
|
148
|
+
show: !0,
|
|
149
|
+
textStyle: { color: "#6E7079" }
|
|
150
|
+
},
|
|
151
|
+
splitLine: {
|
|
152
|
+
show: !1,
|
|
153
|
+
lineStyle: { color: ["#E0E6F1"] }
|
|
154
|
+
},
|
|
155
|
+
splitArea: {
|
|
156
|
+
show: !1,
|
|
157
|
+
areaStyle: { color: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"] }
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
valueAxis: {
|
|
161
|
+
axisLine: {
|
|
162
|
+
show: !1,
|
|
163
|
+
lineStyle: { color: "#6E7079" }
|
|
164
|
+
},
|
|
165
|
+
axisTick: {
|
|
166
|
+
show: !1,
|
|
167
|
+
lineStyle: { color: "#6E7079" }
|
|
168
|
+
},
|
|
169
|
+
axisLabel: {
|
|
170
|
+
show: !0,
|
|
171
|
+
textStyle: { color: "#6E7079" }
|
|
172
|
+
},
|
|
173
|
+
splitLine: {
|
|
174
|
+
show: !0,
|
|
175
|
+
lineStyle: { color: ["#E0E6F1"] }
|
|
176
|
+
},
|
|
177
|
+
splitArea: {
|
|
178
|
+
show: !1,
|
|
179
|
+
areaStyle: { color: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"] }
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
logAxis: {
|
|
183
|
+
axisLine: {
|
|
184
|
+
show: !1,
|
|
185
|
+
lineStyle: { color: "#6E7079" }
|
|
186
|
+
},
|
|
187
|
+
axisTick: {
|
|
188
|
+
show: !1,
|
|
189
|
+
lineStyle: { color: "#6E7079" }
|
|
190
|
+
},
|
|
191
|
+
axisLabel: {
|
|
192
|
+
show: !0,
|
|
193
|
+
textStyle: { color: "#6E7079" }
|
|
194
|
+
},
|
|
195
|
+
splitLine: {
|
|
196
|
+
show: !0,
|
|
197
|
+
lineStyle: { color: ["#E0E6F1"] }
|
|
198
|
+
},
|
|
199
|
+
splitArea: {
|
|
200
|
+
show: !1,
|
|
201
|
+
areaStyle: { color: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"] }
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
timeAxis: {
|
|
205
|
+
axisLine: {
|
|
206
|
+
show: !0,
|
|
207
|
+
lineStyle: { color: "#6E7079" }
|
|
208
|
+
},
|
|
209
|
+
axisTick: {
|
|
210
|
+
show: !0,
|
|
211
|
+
lineStyle: { color: "#6E7079" }
|
|
212
|
+
},
|
|
213
|
+
axisLabel: {
|
|
214
|
+
show: !0,
|
|
215
|
+
textStyle: { color: "#6E7079" }
|
|
216
|
+
},
|
|
217
|
+
splitLine: {
|
|
218
|
+
show: !1,
|
|
219
|
+
lineStyle: { color: ["#E0E6F1"] }
|
|
220
|
+
},
|
|
221
|
+
splitArea: {
|
|
222
|
+
show: !1,
|
|
223
|
+
areaStyle: { color: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"] }
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
toolbox: { iconStyle: {
|
|
227
|
+
normal: { borderColor: "#999" },
|
|
228
|
+
emphasis: { borderColor: "#666" }
|
|
229
|
+
} },
|
|
230
|
+
legend: { textStyle: { color: "#333" } },
|
|
231
|
+
tooltip: { axisPointer: {
|
|
232
|
+
lineStyle: {
|
|
233
|
+
color: "#ccc",
|
|
234
|
+
width: 1
|
|
235
|
+
},
|
|
236
|
+
crossStyle: {
|
|
237
|
+
color: "#ccc",
|
|
238
|
+
width: 1
|
|
239
|
+
}
|
|
240
|
+
} },
|
|
241
|
+
timeline: {
|
|
242
|
+
lineStyle: {
|
|
243
|
+
color: "#DAE1F5",
|
|
244
|
+
width: 2
|
|
245
|
+
},
|
|
246
|
+
itemStyle: {
|
|
247
|
+
normal: {
|
|
248
|
+
color: "#A4B1D7",
|
|
249
|
+
borderWidth: 1
|
|
250
|
+
},
|
|
251
|
+
emphasis: { color: "#FFF" }
|
|
252
|
+
},
|
|
253
|
+
controlStyle: {
|
|
254
|
+
normal: {
|
|
255
|
+
color: "#A4B1D7",
|
|
256
|
+
borderColor: "#A4B1D7",
|
|
257
|
+
borderWidth: 1
|
|
258
|
+
},
|
|
259
|
+
emphasis: {
|
|
260
|
+
color: "#A4B1D7",
|
|
261
|
+
borderColor: "#A4B1D7",
|
|
262
|
+
borderWidth: 1
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
checkpointStyle: {
|
|
266
|
+
color: "#316bf3",
|
|
267
|
+
borderColor: "fff"
|
|
268
|
+
},
|
|
269
|
+
label: {
|
|
270
|
+
normal: { textStyle: { color: "#A4B1D7" } },
|
|
271
|
+
emphasis: { textStyle: { color: "#A4B1D7" } }
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
visualMap: { color: [
|
|
275
|
+
"#bf444c",
|
|
276
|
+
"#d88273",
|
|
277
|
+
"#f6efa6"
|
|
278
|
+
] },
|
|
279
|
+
dataZoom: {
|
|
280
|
+
handleSize: "undefined%",
|
|
281
|
+
textStyle: {}
|
|
282
|
+
},
|
|
283
|
+
markPoint: {
|
|
284
|
+
label: { color: "#eee" },
|
|
285
|
+
emphasis: { label: { color: "#eee" } }
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
//#endregion
|
|
289
|
+
//#region src/components/k-echarts/themes/registerThemes.ts
|
|
290
|
+
function y(e) {
|
|
291
|
+
e.registerTheme("customed", v);
|
|
292
|
+
}
|
|
293
|
+
//#endregion
|
|
294
|
+
//#region src/components/k-echarts/utils/createToggleFeature.ts
|
|
295
|
+
var b = "path://M909 959H780a30 30 0 0 1 0-60h99a20 20 0 0 0 20-20v-99a30 30 0 0 1 60 0v129a50 50 0 0 1-50 50z m20-685a30 30 0 0 1-30-30v-99a20 20 0 0 0-20-20h-99a30 30 0 0 1 0-60h129a50 50 0 0 1 50 50v129a30 30 0 0 1-30 30z m-157 28v420a50 50 0 0 1-50 50H302a50 50 0 0 1-50-50V302a50 50 0 0 1 50-50h420a50 50 0 0 1 50 50z m-60 30a20 20 0 0 0-20-20H332a20 20 0 0 0-20 20v360a20 20 0 0 0 20 20h360a20 20 0 0 0 20-20V332zM244 125h-99a20 20 0 0 0-20 20v99a30 30 0 0 1-60 0V115a50 50 0 0 1 50-50h129a30 30 0 0 1 0 60zM95 750a30 30 0 0 1 30 30v99a20 20 0 0 0 20 20h99a30 30 0 0 1 0 60H115a50 50 0 0 1-50-50V780a30 30 0 0 1 30-30z", x = "path://M582.6 441.4v-320h50V356l274-274 35.4 35.4-274 274h234.6v50h-320zM117.4 942l274-274v234.6h50v-320h-320v50H356l-274 274 35.4 35.4zM132 132h302V82H82v352h50V132z m760 760H590v50h352V590h-50v302z";
|
|
296
|
+
function S(e, t) {
|
|
297
|
+
return {
|
|
298
|
+
show: !0,
|
|
299
|
+
title: e ? "取消全屏" : "全屏",
|
|
300
|
+
icon: e ? x : b,
|
|
301
|
+
onclick: () => {
|
|
302
|
+
t();
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region src/components/k-echarts/utils/buildChartOptions.ts
|
|
308
|
+
function C(e) {
|
|
309
|
+
return typeof e == "function";
|
|
310
|
+
}
|
|
311
|
+
function w(e, t) {
|
|
312
|
+
let n = C(e) ? { ...e(t.factoryContext) ?? {} } : { ...e ?? {} };
|
|
313
|
+
if (t.dataset && (n.dataset = t.dataset), t.toggle) {
|
|
314
|
+
n.toolbox ??= {};
|
|
315
|
+
let e = n.toolbox;
|
|
316
|
+
e.feature ??= {}, e.feature.myToggle = S(t.isFullscreen, t.onToggleFullscreen);
|
|
317
|
+
}
|
|
318
|
+
let r = {
|
|
319
|
+
lazyUpdate: !0,
|
|
320
|
+
...n.opts ?? {}
|
|
321
|
+
};
|
|
322
|
+
return delete n.opts, {
|
|
323
|
+
option: n,
|
|
324
|
+
setOptionOpts: r
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
//#endregion
|
|
328
|
+
//#region src/components/k-echarts/composables/useKEcharts.ts
|
|
329
|
+
function T(e) {
|
|
330
|
+
let { props: n, emit: r, containerRef: i } = e, l = u(), d = u(!0), f = u(!1), v, b, x = !1, S = t(() => ({
|
|
331
|
+
width: n.width ?? "100%",
|
|
332
|
+
height: n.height ?? "100%"
|
|
333
|
+
})), C = m(() => {
|
|
334
|
+
j();
|
|
335
|
+
}, 100);
|
|
336
|
+
h(i, () => {
|
|
337
|
+
C();
|
|
338
|
+
});
|
|
339
|
+
function T() {
|
|
340
|
+
return l.value;
|
|
341
|
+
}
|
|
342
|
+
function E(e) {
|
|
343
|
+
_.forEach((t) => {
|
|
344
|
+
e.on(t, ((e) => {
|
|
345
|
+
r(t, e);
|
|
346
|
+
}));
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
function D(e) {
|
|
350
|
+
_.forEach((t) => {
|
|
351
|
+
e.off(t);
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
function O(e) {
|
|
355
|
+
let t = g.init(e, n.theme, { renderer: n.renderer ?? "canvas" });
|
|
356
|
+
l.value = t, k(n.loading === !0), E(t), r("onInitComplete", t);
|
|
357
|
+
}
|
|
358
|
+
function k(e) {
|
|
359
|
+
let t = l.value;
|
|
360
|
+
t && (e ? t.showLoading() : t.hideLoading());
|
|
361
|
+
}
|
|
362
|
+
function A(e) {
|
|
363
|
+
let t = l.value;
|
|
364
|
+
if (!(!t || x)) {
|
|
365
|
+
x = !0;
|
|
366
|
+
try {
|
|
367
|
+
let { option: r, setOptionOpts: i } = w(e ?? n.options, {
|
|
368
|
+
factoryContext: {
|
|
369
|
+
echarts: g,
|
|
370
|
+
isFullscreen: f.value,
|
|
371
|
+
getChart: T
|
|
372
|
+
},
|
|
373
|
+
dataset: n.dataset,
|
|
374
|
+
toggle: n.toggle === !0,
|
|
375
|
+
isFullscreen: f.value,
|
|
376
|
+
onToggleFullscreen: M
|
|
377
|
+
});
|
|
378
|
+
t.setOption(r, i);
|
|
379
|
+
} finally {
|
|
380
|
+
x = !1;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
function j() {
|
|
385
|
+
d.value && l.value?.resize({ animation: { duration: 800 } });
|
|
386
|
+
}
|
|
387
|
+
function M() {
|
|
388
|
+
f.value = !f.value, f.value ? N() : P();
|
|
389
|
+
}
|
|
390
|
+
function N() {
|
|
391
|
+
let e = document.createElement("div"), t = document.createElement("div"), r = {
|
|
392
|
+
left: "0",
|
|
393
|
+
top: "0",
|
|
394
|
+
zIndex: "3000",
|
|
395
|
+
position: "fixed",
|
|
396
|
+
height: "100%",
|
|
397
|
+
width: "100%",
|
|
398
|
+
background: "#fff"
|
|
399
|
+
};
|
|
400
|
+
Object.assign(t.style, r), Object.assign(e.style, r), b = t, v = l.value, t.appendChild(e), document.body.appendChild(t), O(e), A(n.options), C();
|
|
401
|
+
}
|
|
402
|
+
function P() {
|
|
403
|
+
let e = l.value;
|
|
404
|
+
e && e !== v && (D(e), e.clear(), e.dispose()), l.value = v, v = void 0, b?.parentNode && b.parentNode.removeChild(b), b = void 0, C();
|
|
405
|
+
}
|
|
406
|
+
function F() {
|
|
407
|
+
f.value && (f.value = !1, P());
|
|
408
|
+
let e = l.value;
|
|
409
|
+
e && (D(e), e.clear(), e.dispose(), l.value = void 0);
|
|
410
|
+
}
|
|
411
|
+
return c(async () => {
|
|
412
|
+
let e = [];
|
|
413
|
+
n.theme && e.push(Promise.resolve().then(() => y(g))), await Promise.all(e);
|
|
414
|
+
let t = i.value;
|
|
415
|
+
t && (O(t), A(n.options));
|
|
416
|
+
}), o(() => {
|
|
417
|
+
F();
|
|
418
|
+
}), a(() => {
|
|
419
|
+
d.value = !0, C();
|
|
420
|
+
}), s(() => {
|
|
421
|
+
d.value = !1;
|
|
422
|
+
}), p(() => n.options, (e) => {
|
|
423
|
+
A(e);
|
|
424
|
+
}, { deep: !0 }), p(() => n.dataset, () => {
|
|
425
|
+
A(n.options);
|
|
426
|
+
}, { deep: !0 }), p(() => n.loading, (e) => {
|
|
427
|
+
k(e === !0);
|
|
428
|
+
}), p(f, () => {
|
|
429
|
+
A(n.options);
|
|
430
|
+
}), {
|
|
431
|
+
containerStyle: S,
|
|
432
|
+
setOption: A,
|
|
433
|
+
resize: j,
|
|
434
|
+
getChart: T
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
//#endregion
|
|
438
|
+
//#region src/components/k-echarts/KEcharts.vue?vue&type=script&setup=true&lang.ts
|
|
439
|
+
var E = /*@__PURE__*/ r({
|
|
440
|
+
name: "KEcharts",
|
|
441
|
+
inheritAttrs: !1,
|
|
442
|
+
__name: "KEcharts",
|
|
443
|
+
props: {
|
|
444
|
+
options: {},
|
|
445
|
+
dataset: {},
|
|
446
|
+
theme: {},
|
|
447
|
+
width: { default: "100%" },
|
|
448
|
+
height: { default: "100%" },
|
|
449
|
+
loading: {
|
|
450
|
+
type: Boolean,
|
|
451
|
+
default: !1
|
|
452
|
+
},
|
|
453
|
+
toggle: {
|
|
454
|
+
type: Boolean,
|
|
455
|
+
default: !1
|
|
456
|
+
},
|
|
457
|
+
renderer: { default: "canvas" }
|
|
458
|
+
},
|
|
459
|
+
emits: [..._, "onInitComplete"],
|
|
460
|
+
setup(e, { expose: t, emit: r }) {
|
|
461
|
+
let a = e, o = r, s = f("containerRef"), { containerStyle: c, setOption: u, resize: p, getChart: m } = T({
|
|
462
|
+
props: a,
|
|
463
|
+
emit: o,
|
|
464
|
+
containerRef: s
|
|
465
|
+
});
|
|
466
|
+
return t({
|
|
467
|
+
getChart: m,
|
|
468
|
+
setOption: u,
|
|
469
|
+
resize: p
|
|
470
|
+
}), (e, t) => (l(), n("div", {
|
|
471
|
+
ref_key: "containerRef",
|
|
472
|
+
ref: s,
|
|
473
|
+
class: "k-echarts",
|
|
474
|
+
style: i(d(c))
|
|
475
|
+
}, null, 4));
|
|
476
|
+
}
|
|
477
|
+
}), D = /*#__PURE__*/ e(E, [["__scopeId", "data-v-d6da558a"]]);
|
|
478
|
+
//#endregion
|
|
479
|
+
export { D as KEcharts };
|