@kayak-sj/design 1.0.0 → 1.0.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/dist/assets/components-DK7g2-zP.css +1 -0
- package/dist/assets/icon-base-2-CcPa4bmO.png +0 -0
- package/dist/assets/icon-base-pYrXWQZO.png +0 -0
- package/dist/assets/icon-notice-2-JVyxpYo9.png +0 -0
- package/dist/assets/icon-notice-DNvEYor3.png +0 -0
- package/dist/assets/icon-price-2-DMmEoFbh.png +0 -0
- package/dist/assets/icon-price-4iIa0b5D.png +0 -0
- package/dist/assets/icon-restrict-2-BjWtoOXX.png +0 -0
- package/dist/assets/icon-restrict-BWJ7LA9s.png +0 -0
- package/dist/assets/icon-setup-2-BO6uKRX4.png +0 -0
- package/dist/assets/icon-setup-DXpIP63L.png +0 -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-CYgOyNT1.js +4975 -0
- package/dist/chunks/editorValue-DSKvW8ty.js +65 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +3 -91
- package/dist/components/k-button/KButton.d.ts +0 -1
- package/dist/components/k-card/KCard.d.ts +0 -1
- package/dist/components/k-card/index.d.ts +0 -1
- package/dist/components/k-dialog/KDialog.d.ts +6 -7
- package/dist/components/k-dialog/KDialogHeader.d.ts +0 -1
- package/dist/components/k-dialog/index.d.ts +0 -1
- package/dist/components/k-dialog/types.d.ts +0 -1
- package/dist/components/k-echarts/KEcharts.d.ts +2 -3
- package/dist/components/k-echarts/composables/useKEcharts.d.ts +0 -1
- package/dist/components/k-echarts/constants/echartEvents.d.ts +0 -1
- package/dist/components/k-echarts/index.d.ts +0 -1
- package/dist/components/k-echarts/index.js +479 -2
- package/dist/components/k-echarts/map/registerMaps.d.ts +0 -1
- package/dist/components/k-echarts/themes/customed.d.ts +0 -1
- package/dist/components/k-echarts/themes/registerThemes.d.ts +0 -1
- package/dist/components/k-echarts/types.d.ts +0 -1
- package/dist/components/k-echarts/utils/buildChartOptions.d.ts +0 -1
- package/dist/components/k-echarts/utils/createToggleFeature.d.ts +0 -1
- package/dist/components/k-editor/KEditor.d.ts +4 -5
- package/dist/components/k-editor/composables/useEditorImageUpload.d.ts +0 -1
- package/dist/components/k-editor/composables/useKEditor.d.ts +0 -1
- package/dist/components/k-editor/composables/useKEditorConfig.d.ts +0 -1
- package/dist/components/k-editor/index.d.ts +0 -1
- package/dist/components/k-editor/index.js +3 -3
- package/dist/components/k-editor/types.d.ts +0 -1
- package/dist/components/k-editor/utils/editorValue.d.ts +0 -1
- package/dist/components/k-editor/utils/registerPreviewMenu.d.ts +0 -1
- package/dist/components/k-editor/utils/sanitizePasteHtml.d.ts +0 -1
- package/dist/components/k-form/KForm.d.ts +3 -4
- package/dist/components/k-form/KFormField.d.ts +0 -1
- package/dist/components/k-form/composables/useFormSchema.d.ts +0 -1
- package/dist/components/k-form/composables/useKFormFields.d.ts +0 -1
- package/dist/components/k-form/composables/useKFormModel.d.ts +0 -1
- package/dist/components/k-form/composables/useKFormTemplateRef.d.ts +0 -1
- package/dist/components/k-form/constants.d.ts +0 -1
- package/dist/components/k-form/formComponent/Cascader.d.ts +0 -1
- package/dist/components/k-form/formComponent/CheckBox.d.ts +0 -1
- package/dist/components/k-form/formComponent/Complex.d.ts +0 -1
- package/dist/components/k-form/formComponent/DatePicker.d.ts +1 -2
- package/dist/components/k-form/formComponent/Editor.d.ts +0 -1
- package/dist/components/k-form/formComponent/Fallback.d.ts +0 -1
- package/dist/components/k-form/formComponent/Input.d.ts +2 -3
- package/dist/components/k-form/formComponent/InputMixInput.d.ts +0 -1
- package/dist/components/k-form/formComponent/InputMixSelect.d.ts +0 -1
- package/dist/components/k-form/formComponent/InputNumber.d.ts +0 -1
- package/dist/components/k-form/formComponent/Radio.d.ts +0 -1
- package/dist/components/k-form/formComponent/RadioInput.d.ts +0 -1
- package/dist/components/k-form/formComponent/ScrollSelect.d.ts +0 -1
- package/dist/components/k-form/formComponent/Select.d.ts +0 -1
- package/dist/components/k-form/formComponent/SelectMultiple.d.ts +0 -1
- package/dist/components/k-form/formComponent/Tag.d.ts +0 -1
- package/dist/components/k-form/formComponent/Text.d.ts +0 -1
- package/dist/components/k-form/formComponent/TimePicker.d.ts +1 -2
- package/dist/components/k-form/formComponent/TreeSelect.d.ts +1 -2
- package/dist/components/k-form/formComponent/Upload.d.ts +0 -1
- package/dist/components/k-form/formComponent/componentRegistry.d.ts +0 -1
- package/dist/components/k-form/formComponent/index.d.ts +0 -1
- package/dist/components/k-form/formComponent/types.d.ts +0 -1
- package/dist/components/k-form/index.d.ts +0 -1
- package/dist/components/k-form/types.d.ts +0 -1
- package/dist/components/k-form/utils/fieldValue.d.ts +0 -1
- package/dist/components/k-form/utils/formRules.d.ts +0 -1
- package/dist/components/k-form/utils/resolveFormFieldComponent.d.ts +0 -1
- package/dist/components/k-handle-page/KHandlePage.d.ts +0 -1
- package/dist/components/k-handle-page/index.d.ts +0 -1
- package/dist/components/k-handle-page/useHandlePageInit.d.ts +0 -1
- package/dist/components/k-icon/KIcon.d.ts +0 -1
- package/dist/components/k-icon/index.d.ts +0 -1
- package/dist/components/k-icon/resolveLucideIcon.d.ts +0 -1
- package/dist/components/k-link-button/KLinkButton.d.ts +1 -2
- package/dist/components/k-link-button/index.d.ts +0 -1
- package/dist/components/k-link-button/types.d.ts +0 -1
- package/dist/components/k-long-page/KLongPage.d.ts +0 -1
- package/dist/components/k-long-page/KLongPagePanel.d.ts +0 -1
- package/dist/components/k-long-page/composables/useLongPageNavDrag.d.ts +0 -1
- package/dist/components/k-long-page/index.d.ts +0 -1
- package/dist/components/k-long-page/navConfigs.d.ts +0 -1
- package/dist/components/k-long-page/types.d.ts +0 -1
- package/dist/components/k-pagination/KPagination.d.ts +0 -1
- package/dist/components/k-pagination/index.d.ts +0 -1
- package/dist/components/k-panel/KPanel.d.ts +0 -1
- package/dist/components/k-panel/index.d.ts +0 -1
- package/dist/components/k-panel-query/KPanelQuery.d.ts +0 -1
- package/dist/components/k-panel-query/KPanelQueryActions.d.ts +0 -1
- package/dist/components/k-panel-query/KPanelQueryForm.d.ts +0 -1
- package/dist/components/k-panel-query/KPanelQueryItem.d.ts +0 -1
- package/dist/components/k-panel-query/index.d.ts +0 -1
- package/dist/components/k-panel-query/types.d.ts +0 -1
- package/dist/components/k-table/KTable.d.ts +2 -2
- package/dist/components/k-table/KTableColumn.d.ts +0 -1
- package/dist/components/k-table/KTableColumnSelector.d.ts +0 -1
- package/dist/components/k-table/KTableToolbar.d.ts +0 -1
- package/dist/components/k-table/composables/useColumnDisplay.d.ts +0 -1
- package/dist/components/k-table/composables/useKTable.d.ts +18 -2
- package/dist/components/k-table/composables/useKTableCrossPageSelection.d.ts +0 -1
- package/dist/components/k-table/composables/useKTableTemplateRef.d.ts +0 -1
- package/dist/components/k-table/composables/useTableColumns.d.ts +0 -1
- package/dist/components/k-table/composables/useTableData.d.ts +2 -3
- package/dist/components/k-table/composables/useTablePagination.d.ts +0 -1
- package/dist/components/k-table/composables/useTableRadio.d.ts +0 -1
- package/dist/components/k-table/composables/useTableRowSort.d.ts +0 -1
- package/dist/components/k-table/composables/useTableTreeLoad.d.ts +0 -1
- package/dist/components/k-table/dictOptions.d.ts +0 -1
- package/dist/components/k-table/index.d.ts +1 -2
- package/dist/components/k-table/kTableProps.d.ts +2 -3
- package/dist/components/k-table/report/convertDownloadCol.d.ts +0 -1
- package/dist/components/k-table/report/exportKTableReport.d.ts +0 -1
- package/dist/components/k-table/report/index.d.ts +0 -1
- package/dist/components/k-table/report/mergeQueryConfig.d.ts +0 -1
- package/dist/components/k-table/report/pickExportColumns.d.ts +0 -1
- package/dist/components/k-table/report/types.d.ts +0 -1
- package/dist/components/k-table/report/useExportKTableReport.d.ts +0 -1
- package/dist/components/k-table/types.d.ts +2 -3
- package/dist/components/k-table/utils/columnIdentity.d.ts +0 -1
- package/dist/components/k-table/utils/formatCellValue.d.ts +0 -1
- package/dist/components/k-table/utils/rowKey.d.ts +0 -1
- package/dist/components/k-upload/KUpload.d.ts +5 -6
- package/dist/components/k-upload/components/ImageCutter.d.ts +0 -1
- package/dist/components/k-upload/components/UploadFileItem.d.ts +0 -1
- package/dist/components/k-upload/components/UploadInlineActions.d.ts +0 -1
- package/dist/components/k-upload/components/UploadMediaDialog.d.ts +0 -1
- package/dist/components/k-upload/components/UploadTipArea.d.ts +0 -1
- package/dist/components/k-upload/composables/useImagePreview.d.ts +0 -1
- package/dist/components/k-upload/composables/useMediaPreview.d.ts +0 -1
- package/dist/components/k-upload/composables/useUploadFileList.d.ts +0 -1
- package/dist/components/k-upload/composables/useUploadRequest.d.ts +0 -1
- package/dist/components/k-upload/composables/useUploadValidation.d.ts +0 -1
- package/dist/components/k-upload/resolveUploadAction.d.ts +0 -1
- package/dist/components/k-upload/types.d.ts +0 -1
- package/dist/components/k-upload/utils/uploadFileValue.d.ts +0 -1
- package/dist/config/uploadConfig.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +212 -41
- package/dist/theme/index.d.ts +0 -1
- package/dist/utils/createStubComponent.d.ts +0 -1
- package/dist/utils/validators.d.ts +0 -1
- package/package.json +3 -3
- package/dist/_virtual/_rolldown/runtime.js +0 -11
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/k-button/KButton.d.ts.map +0 -1
- 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.d.ts.map +0 -1
- 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-card/index.d.ts.map +0 -1
- package/dist/components/k-dialog/KDialog.d.ts.map +0 -1
- 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.d.ts.map +0 -1
- 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-dialog/index.d.ts.map +0 -1
- package/dist/components/k-dialog/types.d.ts.map +0 -1
- package/dist/components/k-echarts/KEcharts.d.ts.map +0 -1
- 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.d.ts.map +0 -1
- package/dist/components/k-echarts/composables/useKEcharts.js +0 -117
- package/dist/components/k-echarts/constants/echartEvents.d.ts.map +0 -1
- package/dist/components/k-echarts/constants/echartEvents.js +0 -4
- package/dist/components/k-echarts/index.d.ts.map +0 -1
- package/dist/components/k-echarts/map/registerMaps.d.ts.map +0 -1
- package/dist/components/k-echarts/themes/customed.d.ts.map +0 -1
- package/dist/components/k-echarts/themes/customed.js +0 -285
- package/dist/components/k-echarts/themes/registerThemes.d.ts.map +0 -1
- package/dist/components/k-echarts/themes/registerThemes.js +0 -7
- package/dist/components/k-echarts/types.d.ts.map +0 -1
- package/dist/components/k-echarts/utils/buildChartOptions.d.ts.map +0 -1
- package/dist/components/k-echarts/utils/buildChartOptions.js +0 -23
- package/dist/components/k-echarts/utils/createToggleFeature.d.ts.map +0 -1
- package/dist/components/k-echarts/utils/createToggleFeature.js +0 -12
- package/dist/components/k-editor/KEditor.d.ts.map +0 -1
- 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.d.ts.map +0 -1
- package/dist/components/k-editor/composables/useEditorImageUpload.js +0 -60
- package/dist/components/k-editor/composables/useKEditor.d.ts.map +0 -1
- package/dist/components/k-editor/composables/useKEditor.js +0 -98
- package/dist/components/k-editor/composables/useKEditorConfig.d.ts.map +0 -1
- package/dist/components/k-editor/composables/useKEditorConfig.js +0 -46
- package/dist/components/k-editor/index.d.ts.map +0 -1
- package/dist/components/k-editor/types.d.ts.map +0 -1
- package/dist/components/k-editor/utils/editorValue.d.ts.map +0 -1
- package/dist/components/k-editor/utils/editorValue.js +0 -37
- package/dist/components/k-editor/utils/registerPreviewMenu.d.ts.map +0 -1
- package/dist/components/k-editor/utils/registerPreviewMenu.js +0 -38
- package/dist/components/k-editor/utils/sanitizePasteHtml.d.ts.map +0 -1
- package/dist/components/k-editor/utils/sanitizePasteHtml.js +0 -8
- package/dist/components/k-form/KForm.d.ts.map +0 -1
- 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.d.ts.map +0 -1
- 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.d.ts.map +0 -1
- package/dist/components/k-form/composables/useFormSchema.js +0 -36
- package/dist/components/k-form/composables/useKFormFields.d.ts.map +0 -1
- package/dist/components/k-form/composables/useKFormFields.js +0 -50
- package/dist/components/k-form/composables/useKFormModel.d.ts.map +0 -1
- package/dist/components/k-form/composables/useKFormModel.js +0 -194
- package/dist/components/k-form/composables/useKFormTemplateRef.d.ts.map +0 -1
- package/dist/components/k-form/composables/useKFormTemplateRef.js +0 -7
- package/dist/components/k-form/constants.d.ts.map +0 -1
- package/dist/components/k-form/constants.js +0 -4
- package/dist/components/k-form/formComponent/Cascader.d.ts.map +0 -1
- 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.d.ts.map +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/Complex.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/DatePicker.d.ts.map +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.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Editor.js +0 -5
- package/dist/components/k-form/formComponent/Fallback.d.ts.map +0 -1
- 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.d.ts.map +0 -1
- 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.d.ts.map +0 -1
- 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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +0 -1
- 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.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/componentRegistry.js +0 -49
- package/dist/components/k-form/formComponent/index.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/types.d.ts.map +0 -1
- package/dist/components/k-form/index.d.ts.map +0 -1
- package/dist/components/k-form/types.d.ts.map +0 -1
- package/dist/components/k-form/utils/fieldValue.d.ts.map +0 -1
- package/dist/components/k-form/utils/fieldValue.js +0 -83
- package/dist/components/k-form/utils/formRules.d.ts.map +0 -1
- package/dist/components/k-form/utils/formRules.js +0 -44
- package/dist/components/k-form/utils/resolveFormFieldComponent.d.ts.map +0 -1
- package/dist/components/k-form/utils/resolveFormFieldComponent.js +0 -13
- package/dist/components/k-handle-page/KHandlePage.d.ts.map +0 -1
- 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/index.d.ts.map +0 -1
- package/dist/components/k-handle-page/useHandlePageInit.d.ts.map +0 -1
- package/dist/components/k-handle-page/useHandlePageInit.js +0 -21
- package/dist/components/k-icon/KIcon.d.ts.map +0 -1
- 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/index.d.ts.map +0 -1
- package/dist/components/k-icon/resolveLucideIcon.d.ts.map +0 -1
- package/dist/components/k-icon/resolveLucideIcon.js +0 -26
- package/dist/components/k-link-button/KLinkButton.d.ts.map +0 -1
- 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-link-button/index.d.ts.map +0 -1
- package/dist/components/k-link-button/types.d.ts.map +0 -1
- package/dist/components/k-long-page/KLongPage.d.ts.map +0 -1
- 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.d.ts.map +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.d.ts.map +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/index.d.ts.map +0 -1
- package/dist/components/k-long-page/navConfigs.d.ts.map +0 -1
- package/dist/components/k-long-page/navConfigs.js +0 -23
- package/dist/components/k-long-page/types.d.ts.map +0 -1
- package/dist/components/k-pagination/KPagination.d.ts.map +0 -1
- 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-pagination/index.d.ts.map +0 -1
- package/dist/components/k-panel/KPanel.d.ts.map +0 -1
- 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/index.d.ts.map +0 -1
- package/dist/components/k-panel-query/KPanelQuery.d.ts.map +0 -1
- 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.d.ts.map +0 -1
- 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.d.ts.map +0 -1
- 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.d.ts.map +0 -1
- 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-panel-query/index.d.ts.map +0 -1
- package/dist/components/k-panel-query/types.d.ts.map +0 -1
- package/dist/components/k-table/KTable.d.ts.map +0 -1
- 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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +0 -1
- package/dist/components/k-table/composables/useColumnDisplay.js +0 -103
- package/dist/components/k-table/composables/useKTable.d.ts.map +0 -1
- package/dist/components/k-table/composables/useKTable.js +0 -179
- package/dist/components/k-table/composables/useKTableCrossPageSelection.d.ts.map +0 -1
- package/dist/components/k-table/composables/useKTableCrossPageSelection.js +0 -58
- package/dist/components/k-table/composables/useKTableTemplateRef.d.ts.map +0 -1
- package/dist/components/k-table/composables/useKTableTemplateRef.js +0 -7
- package/dist/components/k-table/composables/useTableColumns.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableColumns.js +0 -61
- package/dist/components/k-table/composables/useTableData.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableData.js +0 -47
- package/dist/components/k-table/composables/useTablePagination.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTablePagination.js +0 -52
- package/dist/components/k-table/composables/useTableRadio.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableRadio.js +0 -28
- package/dist/components/k-table/composables/useTableRowSort.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableRowSort.js +0 -35
- package/dist/components/k-table/composables/useTableTreeLoad.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableTreeLoad.js +0 -32
- package/dist/components/k-table/dictOptions.d.ts.map +0 -1
- package/dist/components/k-table/dictOptions.js +0 -9
- package/dist/components/k-table/index.d.ts.map +0 -1
- package/dist/components/k-table/kTableProps.d.ts.map +0 -1
- package/dist/components/k-table/kTableProps.js +0 -17
- package/dist/components/k-table/report/convertDownloadCol.d.ts.map +0 -1
- package/dist/components/k-table/report/convertDownloadCol.js +0 -11
- package/dist/components/k-table/report/exportKTableReport.d.ts.map +0 -1
- package/dist/components/k-table/report/exportKTableReport.js +0 -19
- package/dist/components/k-table/report/index.d.ts.map +0 -1
- package/dist/components/k-table/report/mergeQueryConfig.d.ts.map +0 -1
- package/dist/components/k-table/report/mergeQueryConfig.js +0 -31
- package/dist/components/k-table/report/pickExportColumns.d.ts.map +0 -1
- package/dist/components/k-table/report/pickExportColumns.js +0 -7
- package/dist/components/k-table/report/types.d.ts.map +0 -1
- package/dist/components/k-table/report/useExportKTableReport.d.ts.map +0 -1
- package/dist/components/k-table/report/useExportKTableReport.js +0 -29
- package/dist/components/k-table/types.d.ts.map +0 -1
- package/dist/components/k-table/types.js +0 -20
- package/dist/components/k-table/utils/columnIdentity.d.ts.map +0 -1
- package/dist/components/k-table/utils/columnIdentity.js +0 -6
- package/dist/components/k-table/utils/formatCellValue.d.ts.map +0 -1
- package/dist/components/k-table/utils/formatCellValue.js +0 -30
- package/dist/components/k-table/utils/rowKey.d.ts.map +0 -1
- package/dist/components/k-table/utils/rowKey.js +0 -10
- package/dist/components/k-upload/KUpload.d.ts.map +0 -1
- 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.d.ts.map +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.d.ts.map +0 -1
- 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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useImagePreview.js +0 -23
- package/dist/components/k-upload/composables/useMediaPreview.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useMediaPreview.js +0 -20
- package/dist/components/k-upload/composables/useUploadFileList.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useUploadFileList.js +0 -46
- package/dist/components/k-upload/composables/useUploadRequest.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useUploadRequest.js +0 -43
- package/dist/components/k-upload/composables/useUploadValidation.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useUploadValidation.js +0 -22
- package/dist/components/k-upload/resolveUploadAction.d.ts.map +0 -1
- package/dist/components/k-upload/resolveUploadAction.js +0 -13
- package/dist/components/k-upload/types.d.ts.map +0 -1
- package/dist/components/k-upload/utils/uploadFileValue.d.ts.map +0 -1
- package/dist/components/k-upload/utils/uploadFileValue.js +0 -44
- package/dist/config/uploadConfig.d.ts.map +0 -1
- package/dist/config/uploadConfig.js +0 -29
- package/dist/index.d.ts.map +0 -1
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/index.js +0 -22
- package/dist/utils/createStubComponent.d.ts.map +0 -1
- package/dist/utils/createStubComponent.js +0 -43
- package/dist/utils/validators.d.ts.map +0 -1
- 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
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
//#region src/components/k-table/report/mergeQueryConfig.ts
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
return e.map((e) => {
|
|
4
|
-
let n = t[e.id];
|
|
5
|
-
return n ? {
|
|
6
|
-
...e,
|
|
7
|
-
componentProps: {
|
|
8
|
-
...e.componentProps,
|
|
9
|
-
...n
|
|
10
|
-
}
|
|
11
|
-
} : e;
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function t(t, n) {
|
|
15
|
-
let r = t.form;
|
|
16
|
-
return r ? {
|
|
17
|
-
...t,
|
|
18
|
-
form: {
|
|
19
|
-
...r,
|
|
20
|
-
formConfigs: e(r.formConfigs ?? [], n)
|
|
21
|
-
}
|
|
22
|
-
} : t;
|
|
23
|
-
}
|
|
24
|
-
function n(e, n) {
|
|
25
|
-
return e.query ? {
|
|
26
|
-
...e,
|
|
27
|
-
query: t(e.query, n)
|
|
28
|
-
} : e;
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { e as injectFormFieldComponentProps, t as injectQueryFieldProps, n as withQueryFieldOptions };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pickExportColumns.d.ts","sourceRoot":"","sources":["../../../../src/components/k-table/report/pickExportColumns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,MAAM,WAAW,wBAAwB;IACvC,cAAc;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,eAAe;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,0CAA0C;AAC1C,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE,wBAAwB,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE,CAWtH"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
//#region src/components/k-table/report/pickExportColumns.ts
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
let n = e;
|
|
4
|
-
return t?.excludeLast && (n = n.slice(0, -1)), t?.excludeOperates && (n = n.filter((e) => e.type !== "operates" && e.prop !== "operates")), n.filter((e) => e.type !== "expand" && e.type !== "index" && e.type !== "selection" && e.type !== "radio");
|
|
5
|
-
}
|
|
6
|
-
//#endregion
|
|
7
|
-
export { e as pickExportColumns };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/k-table/report/types.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,MAAM,WAAW,mBAAmB;IAClC,cAAc,EAAE,OAAO,EAAE,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC;AAED,gFAAgF;AAChF,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExportKTableReport.d.ts","sourceRoot":"","sources":["../../../../src/components/k-table/report/useExportKTableReport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,gBAAgB,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAEnE,MAAM,WAAW,4BAA4B,CAAC,CAAC;IAC7C,QAAQ,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAA;IAC5C,OAAO,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAC5C,SAAS,EAAE,eAAe,CAAA;IAC1B,iEAAiE;IACjE,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5E,eAAe,CAAC,EAAE,gBAAgB,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IACvD,WAAW,CAAC,EAAE,gBAAgB,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;CACpD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC;;;EAsBhF;AAED,YAAY,EAAE,wBAAwB,EAAE,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { exportKTableReport as e } from "./exportKTableReport.js";
|
|
2
|
-
import { ref as t, toValue as n } from "vue";
|
|
3
|
-
//#region src/components/k-table/report/useExportKTableReport.ts
|
|
4
|
-
function r(r) {
|
|
5
|
-
let i = t(!1);
|
|
6
|
-
async function a() {
|
|
7
|
-
if (!i.value) {
|
|
8
|
-
i.value = !0;
|
|
9
|
-
try {
|
|
10
|
-
await e({
|
|
11
|
-
tableRef: r.tableRef,
|
|
12
|
-
columns: n(r.columns),
|
|
13
|
-
exportApi: r.exportApi,
|
|
14
|
-
convertParams: r.convertParams,
|
|
15
|
-
excludeOperates: n(r.excludeOperates),
|
|
16
|
-
excludeLast: n(r.excludeLast)
|
|
17
|
-
});
|
|
18
|
-
} finally {
|
|
19
|
-
i.value = !1;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
exportTable: a,
|
|
25
|
-
exportLoading: i
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
export { r as useExportKTableReport };
|
|
@@ -1 +0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AE,OAAO,CAAA;IAC3B,qDAAqD;IACrD,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,mDAAmD;IACnD,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,yBAAyB;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,uBAAuB;IACvB,cAAc,CAAC,EAAE,oBAAoB,CAAA;IACrC,WAAW;IACX,UAAU,CAAC,EAAE,gBAAgB,CAAA;CAC9B;AAED,kCAAkC;AAClC,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,oBAAoB,CAKlE,CAAA;AAED,6CAA6C;AAC7C,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC,CAAC,GAAG;IACvH,KAAK,EAAE,MAAM,CAAA;CAOd,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//#region src/components/k-table/types.ts
|
|
2
|
-
var e = Symbol("kayak-dict"), t = {
|
|
3
|
-
list: "rows",
|
|
4
|
-
page: "page_no",
|
|
5
|
-
limit: "page_size",
|
|
6
|
-
total: "total"
|
|
7
|
-
}, n = {
|
|
8
|
-
total: 0,
|
|
9
|
-
currentPage: 1,
|
|
10
|
-
pageSize: 10,
|
|
11
|
-
pageSizes: [
|
|
12
|
-
10,
|
|
13
|
-
20,
|
|
14
|
-
30,
|
|
15
|
-
100
|
|
16
|
-
],
|
|
17
|
-
layout: "total, sizes, prev, pager, next, jumper"
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { n as DEFAULT_PAGINATION, t as DEFAULT_RESPONSE_CONFIG, e as DICT_KEY };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"columnIdentity.d.ts","sourceRoot":"","sources":["../../../../src/components/k-table/utils/columnIdentity.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,wBAAgB,iBAAiB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,KAAK,SAAI,GAAG,MAAM,CAKzG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formatCellValue.d.ts","sourceRoot":"","sources":["../../../../src/components/k-table/utils/formatCellValue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,UAAU,CAAA;AAwC5D;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAoBtI"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { getRowField as e } from "./rowKey.js";
|
|
2
|
-
import t from "dayjs";
|
|
3
|
-
//#region src/components/k-table/utils/formatCellValue.ts
|
|
4
|
-
function n(e) {
|
|
5
|
-
return e === "" || e == null;
|
|
6
|
-
}
|
|
7
|
-
function r(e) {
|
|
8
|
-
let t = Number(e);
|
|
9
|
-
return Number.isNaN(t) ? String(e ?? "") : t.toLocaleString("en-US");
|
|
10
|
-
}
|
|
11
|
-
function i(e) {
|
|
12
|
-
return e.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2");
|
|
13
|
-
}
|
|
14
|
-
function a(e, a) {
|
|
15
|
-
if (n(a)) return "";
|
|
16
|
-
let o = String(a);
|
|
17
|
-
switch (e) {
|
|
18
|
-
case "date": return t(o).format("YYYY-MM-DD");
|
|
19
|
-
case "datetime": return t(o).format("YYYY-MM-DD HH:mm:ss");
|
|
20
|
-
case "amount": return r(a);
|
|
21
|
-
case "phone": return i(o);
|
|
22
|
-
default: return o;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function o(t, r, i, o, s) {
|
|
26
|
-
let c = t.prop ? e(r, t.prop) : void 0;
|
|
27
|
-
return t.formatter ? t.formatter(r, t, c, i) : t.dict && s !== void 0 ? s : n(c) ? o : t.showType ? a(t.showType, c) : String(c);
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
export { o as formatCellValue };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rowKey.d.ts","sourceRoot":"","sources":["../../../../src/components/k-table/utils/rowKey.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,kCAAkC;AAClC,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED,+CAA+C;AAC/C,wBAAgB,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAMnF"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region src/components/k-table/utils/rowKey.ts
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
return e[t];
|
|
4
|
-
}
|
|
5
|
-
function t(t, n) {
|
|
6
|
-
let r = e(t, n);
|
|
7
|
-
return typeof r == "string" || typeof r == "number" || typeof r == "boolean" ? r : r == null ? "" : String(r);
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
export { e as getRowField, t as getRowKeyValue };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/k-upload/KUpload.vue"],"names":[],"mappings":"AA6bA,OAAO,EAKL,KAAK,UAAU,EACf,KAAK,cAAc,EAGnB,KAAK,cAAc,EACpB,MAAM,cAAc,CAAA;AAGrB,OAAO,EAAmB,K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+0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./KUpload.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './KUpload.vue_vue_type_style_index_0_scoped_6050c2c6_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-upload/KUpload.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-6050c2c6"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
import e from "../k-button/KButton.js";
|
|
2
|
-
import { getUploadConfig as t } from "../../config/uploadConfig.js";
|
|
3
|
-
import n from "./components/UploadFileItem.js";
|
|
4
|
-
import r from "./components/UploadInlineActions.js";
|
|
5
|
-
import i from "./components/UploadMediaDialog.js";
|
|
6
|
-
import a from "./components/UploadTipArea.js";
|
|
7
|
-
import { useImagePreview as o } from "./composables/useImagePreview.js";
|
|
8
|
-
import { useMediaPreview as ee } from "./composables/useMediaPreview.js";
|
|
9
|
-
import { useUploadFileList as te } from "./composables/useUploadFileList.js";
|
|
10
|
-
import { useUploadRequest as ne } from "./composables/useUploadRequest.js";
|
|
11
|
-
import { useUploadValidation as re } from "./composables/useUploadValidation.js";
|
|
12
|
-
import { resolveUploadAction as s, resolveUploadFilePrefix as c } from "./resolveUploadAction.js";
|
|
13
|
-
import { computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as ie, createSlots as p, createTextVNode as ae, createVNode as m, defineAsyncComponent as oe, defineComponent as h, guardReactiveProps as g, isRef as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, openBlock as S, ref as C, renderSlot as w, toDisplayString as se, unref as T, useTemplateRef as ce, watch as le, withCtx as E } from "vue";
|
|
14
|
-
import { ElIcon as ue, ElImageViewer as de, ElMessage as D, ElUpload as fe } from "element-plus";
|
|
15
|
-
import { Plus as pe } from "@element-plus/icons-vue";
|
|
16
|
-
//#region src/components/k-upload/KUpload.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
-
var me = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "k-upload__trigger-row"
|
|
20
|
-
}, he = { class: "picture-card-context" }, ge = ["innerHTML"], O = /*@__PURE__*/ h({
|
|
21
|
-
name: "KUpload",
|
|
22
|
-
inheritAttrs: !1,
|
|
23
|
-
__name: "KUpload",
|
|
24
|
-
props: {
|
|
25
|
-
modelValue: { default: () => [] },
|
|
26
|
-
listType: { default: "picture" },
|
|
27
|
-
action: { default: "" },
|
|
28
|
-
accept: { default: "" },
|
|
29
|
-
limit: { default: void 0 },
|
|
30
|
-
maxSize: { default: 2 },
|
|
31
|
-
disabled: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !1
|
|
34
|
-
},
|
|
35
|
-
btnText: { default: "点击上传" },
|
|
36
|
-
templateCode: { default: "" },
|
|
37
|
-
templateDomain: { default: "app" },
|
|
38
|
-
templateDownloadUrl: { default: "" },
|
|
39
|
-
templateBtnText: { default: "模版下载" },
|
|
40
|
-
tipType: { default: "text" },
|
|
41
|
-
fileTips: { default: "" },
|
|
42
|
-
showSuccMessage: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: !0
|
|
45
|
-
},
|
|
46
|
-
autoUpload: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: !0
|
|
49
|
-
},
|
|
50
|
-
openCutter: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: !1
|
|
53
|
-
},
|
|
54
|
-
cutterOption: { default: () => ({}) }
|
|
55
|
-
},
|
|
56
|
-
emits: [
|
|
57
|
-
"update:modelValue",
|
|
58
|
-
"success",
|
|
59
|
-
"error",
|
|
60
|
-
"remove",
|
|
61
|
-
"preview",
|
|
62
|
-
"change",
|
|
63
|
-
"exceed"
|
|
64
|
-
],
|
|
65
|
-
setup(h, { expose: O, emit: _e }) {
|
|
66
|
-
let k = oe(() => import("./components/ImageCutter.js")), A = {
|
|
67
|
-
picture: ".bmp,.gif,.png,.jpg,.jpeg",
|
|
68
|
-
"picture-card": ".bmp,.gif,.png,.jpg,.jpeg",
|
|
69
|
-
text: ".doc,.docx,.xlsx,.xls",
|
|
70
|
-
video: ".mp4",
|
|
71
|
-
audio: ".m4a",
|
|
72
|
-
lottie: ".json"
|
|
73
|
-
};
|
|
74
|
-
function j(e, t) {
|
|
75
|
-
let n = e instanceof Error ? e.message : String(e ?? "");
|
|
76
|
-
return /timeout/i.test(n) || /ECONNABORTED/i.test(n) ? "请求超时,请稍后重试" : n || t;
|
|
77
|
-
}
|
|
78
|
-
let M = h, N = _e, P = C(), F = ce("cutterRef"), I = C(null), L = C(0);
|
|
79
|
-
le(F, (e) => {
|
|
80
|
-
if (!e || !I.value) return;
|
|
81
|
-
let t = I.value;
|
|
82
|
-
I.value = null, e.openImgCutter({
|
|
83
|
-
name: t.name,
|
|
84
|
-
raw: t.raw
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
function ve(e) {
|
|
88
|
-
if (F.value) {
|
|
89
|
-
F.value.openImgCutter({
|
|
90
|
-
name: e.name,
|
|
91
|
-
raw: e.raw
|
|
92
|
-
});
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
I.value = e;
|
|
96
|
-
}
|
|
97
|
-
let R = l(() => M.accept ? M.accept.toLowerCase() : A[M.listType] ?? ""), { fileList: z, elFileList: ye, removeByUid: B, upsert: be, findByUid: V } = te({
|
|
98
|
-
getModelValue: () => M.modelValue,
|
|
99
|
-
onUpdate: (e) => N("update:modelValue", e),
|
|
100
|
-
getLimit: () => M.limit
|
|
101
|
-
}), H = re({
|
|
102
|
-
getAccept: () => R.value,
|
|
103
|
-
getMaxSize: () => M.maxSize
|
|
104
|
-
}), U = ne({ getTemplateCode: () => M.templateCode }), { visible: xe, urlList: Se, initialIndex: Ce, open: W, close: we } = o(), { visible: G, url: Te, type: Ee, open: De } = ee(), Oe = l(() => s(M.listType, M.action)), ke = l(() => {
|
|
105
|
-
switch (M.listType) {
|
|
106
|
-
case "picture": return "picture";
|
|
107
|
-
case "picture-card":
|
|
108
|
-
case "picture2":
|
|
109
|
-
case "lottie": return "picture-card";
|
|
110
|
-
default: return "text";
|
|
111
|
-
}
|
|
112
|
-
}), Ae = l(() => [
|
|
113
|
-
"picture",
|
|
114
|
-
"picture-card",
|
|
115
|
-
"picture2",
|
|
116
|
-
"lottie"
|
|
117
|
-
].includes(M.listType)), je = l(() => [
|
|
118
|
-
"picture-card",
|
|
119
|
-
"lottie",
|
|
120
|
-
"video",
|
|
121
|
-
"audio"
|
|
122
|
-
].includes(M.listType)), K = l(() => M.listType === "picture-card" || M.listType === "lottie"), Me = l(() => !K.value), Ne = l(() => !M.openCutter && M.autoUpload), Pe = l(() => M.limit === 1 ? void 0 : M.limit), q = l(() => !!(M.limit && M.limit !== 1 && z.value.length >= M.limit)), Fe = l(() => !M.disabled), Ie = l(() => !K.value && !M.disabled), J = l(() => M.disabled ? "" : M.fileTips || (R.value ? `支持上传 ${R.value} 后缀文件,且不超过${M.maxSize}M` : "")), Le = l(() => {
|
|
123
|
-
let e = ["k-upload", `k-upload--${M.listType}`];
|
|
124
|
-
return M.disabled && e.push("k-upload_detail"), q.value && e.push("k-upload--limit"), e.join(" ");
|
|
125
|
-
});
|
|
126
|
-
function Re(e, t, n) {
|
|
127
|
-
let r = e ?? {}, i = String(r.resource_id ?? ""), a = String(r.file_name ?? n), o = c(M.listType);
|
|
128
|
-
return {
|
|
129
|
-
...r,
|
|
130
|
-
uid: t,
|
|
131
|
-
name: a,
|
|
132
|
-
resource_id: i,
|
|
133
|
-
file_name: a,
|
|
134
|
-
imp_id: r.imp_id,
|
|
135
|
-
url: i ? `${o}${i}` : void 0,
|
|
136
|
-
status: "success"
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
function Y(e, t, n) {
|
|
140
|
-
let r = Re(e, t, n);
|
|
141
|
-
be(r), L.value = 0, M.showSuccMessage && D.success("文件上传成功!"), N("success", e, r);
|
|
142
|
-
}
|
|
143
|
-
let ze = (e) => H.validate(e), Be = (e, t) => {
|
|
144
|
-
Y(e ?? {}, t.uid, t.name);
|
|
145
|
-
}, Ve = (e, t) => {
|
|
146
|
-
L.value = 0, D.error(j(e, "文件上传失败!")), B(t.uid), N("error", e, t);
|
|
147
|
-
}, He = (e) => {
|
|
148
|
-
if (typeof e.uid == "number" && H.consumeRejected(e.uid)) return;
|
|
149
|
-
let t = V(e.uid);
|
|
150
|
-
B(e.uid), t && N("remove", t);
|
|
151
|
-
}, Ue = (e) => {
|
|
152
|
-
let t = V(e.uid);
|
|
153
|
-
t && (N("preview", t), !(Ae.value && W(t, z.value)) && Q(t));
|
|
154
|
-
}, We = (e) => {
|
|
155
|
-
M.listType === "picture2" && (L.value = Math.round(e.percent ?? 0));
|
|
156
|
-
}, X = (e) => {
|
|
157
|
-
if (N("change", e), !(!M.openCutter || e.status !== "ready" || !e.raw)) {
|
|
158
|
-
if (H.validate(e.raw) === !1) {
|
|
159
|
-
B(e.uid);
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
B(e.uid), y(() => {
|
|
163
|
-
P.value?.handleRemove(e), ve({
|
|
164
|
-
name: e.name,
|
|
165
|
-
raw: e.raw
|
|
166
|
-
});
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
}, Ge = (e, t) => {
|
|
170
|
-
N("exceed", e, t);
|
|
171
|
-
};
|
|
172
|
-
function Ke(e) {
|
|
173
|
-
let t = V(e.uid);
|
|
174
|
-
t && W(t, z.value);
|
|
175
|
-
}
|
|
176
|
-
function qe(e) {
|
|
177
|
-
let t = V(e.uid);
|
|
178
|
-
t && Q(t);
|
|
179
|
-
}
|
|
180
|
-
function Je(e) {
|
|
181
|
-
let t = V(e.uid);
|
|
182
|
-
B(e.uid), t && N("remove", t);
|
|
183
|
-
}
|
|
184
|
-
function Ye(e) {
|
|
185
|
-
let t = V(e.uid);
|
|
186
|
-
t && De(t, M.listType === "audio" ? "audio" : "video");
|
|
187
|
-
}
|
|
188
|
-
async function Xe(e) {
|
|
189
|
-
try {
|
|
190
|
-
let t = s("picture", M.action);
|
|
191
|
-
Y(await U.uploadFile(e, t), -Date.now(), e.name);
|
|
192
|
-
} catch (e) {
|
|
193
|
-
D.error(j(e, "图片上传失败!"));
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
function Z(e, t) {
|
|
197
|
-
let n = document.createElement("a");
|
|
198
|
-
n.href = e, n.download = t, n.click();
|
|
199
|
-
}
|
|
200
|
-
function Q(e) {
|
|
201
|
-
e.resource_id && Z(`${c(M.listType)}${e.resource_id}`, e.name || String(e.resource_id));
|
|
202
|
-
}
|
|
203
|
-
function $() {
|
|
204
|
-
let e = t(), n = e.templateCodeRelation[M.templateCode];
|
|
205
|
-
if (!n) {
|
|
206
|
-
D.warning("模板未配置");
|
|
207
|
-
return;
|
|
208
|
-
}
|
|
209
|
-
Z(`${M.templateDownloadUrl || (M.templateDomain === "base" ? e.baseTemplateDownloadBaseUrl : e.templateDownloadBaseUrl) || e.urls.BASE_URL}${n}`, n);
|
|
210
|
-
}
|
|
211
|
-
return O({
|
|
212
|
-
submit: () => P.value?.submit(),
|
|
213
|
-
clearFiles: () => P.value?.clearFiles(),
|
|
214
|
-
uploadRef: P
|
|
215
|
-
}), (t, o) => (S(), f("div", { class: b(["k-upload-wrap", Le.value]) }, [
|
|
216
|
-
m(T(fe), v({
|
|
217
|
-
ref_key: "uploadRef",
|
|
218
|
-
ref: P
|
|
219
|
-
}, t.$attrs, {
|
|
220
|
-
class: "k-upload__inner",
|
|
221
|
-
"file-list": T(ye),
|
|
222
|
-
action: Oe.value,
|
|
223
|
-
"list-type": ke.value,
|
|
224
|
-
accept: R.value,
|
|
225
|
-
limit: Pe.value,
|
|
226
|
-
disabled: h.disabled,
|
|
227
|
-
"auto-upload": Ne.value,
|
|
228
|
-
"http-request": T(U).httpRequest,
|
|
229
|
-
"before-upload": ze,
|
|
230
|
-
"on-success": Be,
|
|
231
|
-
"on-error": Ve,
|
|
232
|
-
"on-remove": He,
|
|
233
|
-
"on-preview": Ue,
|
|
234
|
-
"on-progress": We,
|
|
235
|
-
"on-change": X,
|
|
236
|
-
"on-exceed": Ge
|
|
237
|
-
}), p({
|
|
238
|
-
tip: E(() => [w(t.$slots, "tip", {}, () => [K.value && (h.templateCode || h.tipType === "tooltip" && J.value) ? (S(), u(r, {
|
|
239
|
-
key: 0,
|
|
240
|
-
"template-code": h.templateCode,
|
|
241
|
-
"template-btn-text": h.templateBtnText,
|
|
242
|
-
"tip-type": h.tipType,
|
|
243
|
-
"tip-text": J.value,
|
|
244
|
-
onDownloadTemplate: $
|
|
245
|
-
}, null, 8, [
|
|
246
|
-
"template-code",
|
|
247
|
-
"template-btn-text",
|
|
248
|
-
"tip-type",
|
|
249
|
-
"tip-text"
|
|
250
|
-
])) : d("", !0), Ie.value ? (S(), u(a, {
|
|
251
|
-
key: 1,
|
|
252
|
-
"tip-type": h.tipType,
|
|
253
|
-
"tip-text": J.value,
|
|
254
|
-
percentage: L.value
|
|
255
|
-
}, null, 8, [
|
|
256
|
-
"tip-type",
|
|
257
|
-
"tip-text",
|
|
258
|
-
"percentage"
|
|
259
|
-
])) : d("", !0)], !0)]),
|
|
260
|
-
_: 2
|
|
261
|
-
}, [Fe.value ? {
|
|
262
|
-
name: "default",
|
|
263
|
-
fn: E(() => [Me.value ? (S(), f("div", me, [
|
|
264
|
-
w(t.$slots, "buttonBefore", {}, void 0, !0),
|
|
265
|
-
w(t.$slots, "content", {}, () => [m(e, {
|
|
266
|
-
type: "primary",
|
|
267
|
-
disabled: q.value
|
|
268
|
-
}, {
|
|
269
|
-
default: E(() => [ae(se(h.btnText), 1)]),
|
|
270
|
-
_: 1
|
|
271
|
-
}, 8, ["disabled"])], !0),
|
|
272
|
-
m(r, {
|
|
273
|
-
"template-code": h.templateCode,
|
|
274
|
-
"template-btn-text": h.templateBtnText,
|
|
275
|
-
"tip-type": h.tipType,
|
|
276
|
-
"tip-text": J.value,
|
|
277
|
-
onDownloadTemplate: $
|
|
278
|
-
}, null, 8, [
|
|
279
|
-
"template-code",
|
|
280
|
-
"template-btn-text",
|
|
281
|
-
"tip-type",
|
|
282
|
-
"tip-text"
|
|
283
|
-
]),
|
|
284
|
-
w(t.$slots, "buttonAfter", {}, void 0, !0)
|
|
285
|
-
])) : w(t.$slots, "content", {}, () => [ie("div", he, [m(T(ue), { class: "k-upload__plus" }, {
|
|
286
|
-
default: E(() => [m(T(pe))]),
|
|
287
|
-
_: 1
|
|
288
|
-
}), h.tipType === "text" && J.value ? (S(), f("span", {
|
|
289
|
-
key: 0,
|
|
290
|
-
class: "picture-card-tips",
|
|
291
|
-
innerHTML: J.value
|
|
292
|
-
}, null, 8, ge)) : d("", !0)])], !0, 1)]),
|
|
293
|
-
key: "0"
|
|
294
|
-
} : void 0, je.value ? {
|
|
295
|
-
name: "file",
|
|
296
|
-
fn: E(({ file: e }) => [w(t.$slots, "file", { file: e }, () => [m(n, {
|
|
297
|
-
file: e,
|
|
298
|
-
"list-type": h.listType,
|
|
299
|
-
disabled: h.disabled,
|
|
300
|
-
onZoom: Ke,
|
|
301
|
-
onDownload: qe,
|
|
302
|
-
onRemove: Je,
|
|
303
|
-
onPlay: Ye
|
|
304
|
-
}, p({ _: 2 }, [t.$slots.preview ? {
|
|
305
|
-
name: "preview",
|
|
306
|
-
fn: E((e) => [w(t.$slots, "preview", x(g(e)), void 0, !0)]),
|
|
307
|
-
key: "0"
|
|
308
|
-
} : void 0]), 1032, [
|
|
309
|
-
"file",
|
|
310
|
-
"list-type",
|
|
311
|
-
"disabled"
|
|
312
|
-
])], !0)]),
|
|
313
|
-
key: "1"
|
|
314
|
-
} : void 0]), 1040, [
|
|
315
|
-
"file-list",
|
|
316
|
-
"action",
|
|
317
|
-
"list-type",
|
|
318
|
-
"accept",
|
|
319
|
-
"limit",
|
|
320
|
-
"disabled",
|
|
321
|
-
"auto-upload",
|
|
322
|
-
"http-request"
|
|
323
|
-
]),
|
|
324
|
-
h.openCutter ? (S(), u(T(k), {
|
|
325
|
-
key: 0,
|
|
326
|
-
ref_key: "cutterRef",
|
|
327
|
-
ref: F,
|
|
328
|
-
option: h.cutterOption,
|
|
329
|
-
onCut: Xe
|
|
330
|
-
}, null, 8, ["option"])) : d("", !0),
|
|
331
|
-
T(xe) ? (S(), u(T(de), {
|
|
332
|
-
key: 1,
|
|
333
|
-
"url-list": T(Se),
|
|
334
|
-
"initial-index": T(Ce),
|
|
335
|
-
onClose: T(we)
|
|
336
|
-
}, null, 8, [
|
|
337
|
-
"url-list",
|
|
338
|
-
"initial-index",
|
|
339
|
-
"onClose"
|
|
340
|
-
])) : d("", !0),
|
|
341
|
-
m(i, {
|
|
342
|
-
visible: T(G),
|
|
343
|
-
"onUpdate:visible": o[0] ||= (e) => _(G) ? G.value = e : null,
|
|
344
|
-
url: T(Te),
|
|
345
|
-
type: T(Ee)
|
|
346
|
-
}, null, 8, [
|
|
347
|
-
"visible",
|
|
348
|
-
"url",
|
|
349
|
-
"type"
|
|
350
|
-
])
|
|
351
|
-
], 2));
|
|
352
|
-
}
|
|
353
|
-
});
|
|
354
|
-
//#endregion
|
|
355
|
-
export { O as default };
|
package/dist/components/k-upload/KUpload.vue_vue_type_style_index_0_scoped_6050c2c6_lang.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-upload__plus[data-v-6050c2c6]{color:var(--el-text-color-secondary);font-size:28px}.k-upload__trigger-row[data-v-6050c2c6]{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.k-upload--limit[data-v-6050c2c6] .el-upload,.k-upload_detail[data-v-6050c2c6] .el-upload{display:none}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageCutter.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/k-upload/components/ImageCutter.vue"],"names":[],"mappings":"AAwFA,OAAO,mCAAmC,CAAA;AAE1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAInD,KAAK,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAkCpD,4CAA4C;AAC5C,iBAAS,aAAa,CAAC,IAAI,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAAE,QASvE;AA4ED,QAAA,MAAM,YAAY;;;;;;;YAxHY,mBAAmB;6EA6H/C,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./ImageCutter.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './ImageCutter.vue_vue_type_style_index_0_scoped_900b5e3b_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-upload/components/ImageCutter.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-900b5e3b"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|
package/dist/components/k-upload/components/ImageCutter.vue_vue_type_script_setup_true_lang.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as e, createElementVNode as t, createVNode as n, defineComponent as r, mergeProps as i, openBlock as a, unref as o, useTemplateRef as s, withCtx as c } from "vue";
|
|
2
|
-
import l from "vue-img-cutter";
|
|
3
|
-
import "vue-img-cutter/vue-img-cutter.css";
|
|
4
|
-
//#region src/components/k-upload/components/ImageCutter.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var u = { class: "k-upload-image-cutter" }, d = /*@__PURE__*/ r({
|
|
6
|
-
name: "KUploadImageCutter",
|
|
7
|
-
__name: "ImageCutter",
|
|
8
|
-
props: { option: { default: () => ({}) } },
|
|
9
|
-
emits: ["cut"],
|
|
10
|
-
setup(r, { expose: d, emit: f }) {
|
|
11
|
-
let p = f, m = s("cutterRef"), h = "";
|
|
12
|
-
function g() {
|
|
13
|
-
h &&= (URL.revokeObjectURL(h), "");
|
|
14
|
-
}
|
|
15
|
-
function _(e) {
|
|
16
|
-
g();
|
|
17
|
-
let t = e.file ?? e.blob;
|
|
18
|
-
if (!t) return;
|
|
19
|
-
let n = e.fileName || "cropped.png", r = t instanceof File ? t : new File([t], n, { type: t.type || "image/png" });
|
|
20
|
-
p("cut", r);
|
|
21
|
-
}
|
|
22
|
-
function v(e) {
|
|
23
|
-
let t = e.raw;
|
|
24
|
-
!t || !m.value || (g(), h = URL.createObjectURL(t), m.value.handleOpen({
|
|
25
|
-
name: e.name || (t instanceof File ? t.name : "image.png"),
|
|
26
|
-
src: h
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
29
|
-
return d({ openImgCutter: v }), (s, d) => (a(), e("div", u, [n(o(l), i({
|
|
30
|
-
ref_key: "cutterRef",
|
|
31
|
-
ref: m,
|
|
32
|
-
"show-choose-btn": !1
|
|
33
|
-
}, r.option, { onCutDown: _ }), {
|
|
34
|
-
open: c(() => [...d[0] ||= [t("span", { class: "k-upload-image-cutter__open-placeholder" }, null, -1)]]),
|
|
35
|
-
_: 1
|
|
36
|
-
}, 16)]));
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
//#endregion
|
|
40
|
-
export { d as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UploadFileItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/k-upload/components/UploadFileItem.vue"],"names":[],"mappings":"AAqHA,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAGlE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI/C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,UAAU,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AA6NF,QAAA,IAAI,QAAQ;;CAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;;;;;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./UploadFileItem.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './UploadFileItem.vue_vue_type_style_index_0_scoped_01959ada_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-upload/components/UploadFileItem.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-01959ada"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|