@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
package/dist/components/k-form/formComponent/InputMixSelect.vue_vue_type_script_setup_true_lang.js
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { DICT_KEY as e } from "../../k-table/types.js";
|
|
2
|
-
import t from "./Input.js";
|
|
3
|
-
import n from "./Select.js";
|
|
4
|
-
import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, inject as u, mergeProps as d, normalizeClass as f, normalizeStyle as p, openBlock as m, ref as h, toDisplayString as g, watch as _ } from "vue";
|
|
5
|
-
import { cloneDeep as v } from "lodash-es";
|
|
6
|
-
//#region src/components/k-form/formComponent/InputMixSelect.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var y = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "k-form-input-mix-select__text"
|
|
10
|
-
}, b = {
|
|
11
|
-
key: 1,
|
|
12
|
-
class: "k-form-input-mix-select__text"
|
|
13
|
-
}, x = {
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "k-form-input-mix-select__text"
|
|
16
|
-
}, S = {
|
|
17
|
-
key: 3,
|
|
18
|
-
class: "k-form-input-mix-select__text"
|
|
19
|
-
}, C = /*@__PURE__*/ l({
|
|
20
|
-
name: "KFormInputMixSelect",
|
|
21
|
-
__name: "InputMixSelect",
|
|
22
|
-
props: {
|
|
23
|
-
modelValue: {},
|
|
24
|
-
options: {},
|
|
25
|
-
readonly: { type: Boolean },
|
|
26
|
-
disabled: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: void 0
|
|
29
|
-
},
|
|
30
|
-
inputBefore: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: !0
|
|
33
|
-
},
|
|
34
|
-
leftText: { default: "" },
|
|
35
|
-
rightText: { default: "" },
|
|
36
|
-
centerText: { default: "" },
|
|
37
|
-
selectWidth: { default: 150 },
|
|
38
|
-
inputWidth: { default: 140 },
|
|
39
|
-
itemGap: { default: 8 },
|
|
40
|
-
inputProps: { default: () => ({}) },
|
|
41
|
-
selectProps: { default: () => ({}) },
|
|
42
|
-
inputPlaceholder: { default: "" },
|
|
43
|
-
selectPlaceholder: { default: "请选择" },
|
|
44
|
-
inputHide: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: !1
|
|
47
|
-
},
|
|
48
|
-
integrityCheck: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: !1
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
emits: ["update:modelValue"],
|
|
54
|
-
setup(l, { emit: C }) {
|
|
55
|
-
let w = u(e, null), T = l, E = C, D = h({}), O = h(""), k = h(""), A = i(() => T.inputProps.id ?? "input"), j = i(() => T.selectProps.id ?? "select"), M = i(() => {
|
|
56
|
-
let e = v(T.inputProps);
|
|
57
|
-
return delete e.id, e;
|
|
58
|
-
}), N = i(() => {
|
|
59
|
-
let e = v(T.selectProps);
|
|
60
|
-
return delete e.id, e;
|
|
61
|
-
});
|
|
62
|
-
function P(e, t) {
|
|
63
|
-
return e == null || e === "" ? t : typeof e == "number" ? `${e}px` : e;
|
|
64
|
-
}
|
|
65
|
-
function F(e) {
|
|
66
|
-
return !!(e?.prepend || e?.append);
|
|
67
|
-
}
|
|
68
|
-
let I = i(() => ({ gap: P(T.itemGap, "8px") }));
|
|
69
|
-
function L(e, t, n) {
|
|
70
|
-
if (T.readonly) return;
|
|
71
|
-
let r = P(e, t);
|
|
72
|
-
return F(n) ? {
|
|
73
|
-
"--k-mix-select-field-width": r,
|
|
74
|
-
flex: "0 0 auto"
|
|
75
|
-
} : {
|
|
76
|
-
width: r,
|
|
77
|
-
maxWidth: r,
|
|
78
|
-
minWidth: r,
|
|
79
|
-
flex: "0 0 auto"
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
let R = i(() => F(T.inputProps)), z = i(() => F(T.selectProps)), B = i(() => L(T.selectWidth, "150px", T.selectProps)), V = i(() => L(T.inputWidth, "140px", T.inputProps));
|
|
83
|
-
function H(e) {
|
|
84
|
-
let { dict: t, options: n = [] } = e;
|
|
85
|
-
return t && w?.getGroupOptions ? w.getGroupOptions(t) : n.map((e) => ({
|
|
86
|
-
label: String(e.label ?? ""),
|
|
87
|
-
value: e.value,
|
|
88
|
-
disabled: e.disabled
|
|
89
|
-
}));
|
|
90
|
-
}
|
|
91
|
-
let U = i(() => H(T.selectProps));
|
|
92
|
-
function W() {
|
|
93
|
-
let e = D.value[A.value], t = D.value[j.value];
|
|
94
|
-
if (T.integrityCheck) {
|
|
95
|
-
e && t || T.inputHide ? E("update:modelValue", { ...D.value }) : E("update:modelValue", "");
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
E("update:modelValue", { ...D.value });
|
|
99
|
-
}
|
|
100
|
-
function G(e, t) {
|
|
101
|
-
D.value[t] = e, O.value = String(D.value[A.value] ?? ""), k.value = D.value[j.value], W();
|
|
102
|
-
}
|
|
103
|
-
return _(() => T.modelValue, (e) => {
|
|
104
|
-
e && typeof e == "object" && !Array.isArray(e) && (D.value = v(e), O.value = String(D.value[A.value] ?? ""), k.value = D.value[j.value]);
|
|
105
|
-
}, {
|
|
106
|
-
immediate: !0,
|
|
107
|
-
deep: !0
|
|
108
|
-
}), (e, i) => (m(), o("div", { class: f(["k-form-input-mix-select", { "k-form-input-mix-select--readonly": l.readonly }]) }, [s("div", {
|
|
109
|
-
class: "k-form-input-mix-select__row",
|
|
110
|
-
style: p(I.value)
|
|
111
|
-
}, [
|
|
112
|
-
l.leftText ? (m(), o("div", y, g(l.leftText), 1)) : a("", !0),
|
|
113
|
-
l.inputBefore ? (m(), o(r, { key: 1 }, [
|
|
114
|
-
l.inputHide ? a("", !0) : (m(), o("div", {
|
|
115
|
-
key: 0,
|
|
116
|
-
class: f(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": R.value }]),
|
|
117
|
-
style: p(V.value)
|
|
118
|
-
}, [c(t, d({
|
|
119
|
-
"model-value": O.value,
|
|
120
|
-
readonly: l.readonly,
|
|
121
|
-
disabled: l.disabled,
|
|
122
|
-
placeholder: l.inputPlaceholder
|
|
123
|
-
}, M.value, { "onUpdate:modelValue": i[0] ||= (e) => G(e, A.value) }), null, 16, [
|
|
124
|
-
"model-value",
|
|
125
|
-
"readonly",
|
|
126
|
-
"disabled",
|
|
127
|
-
"placeholder"
|
|
128
|
-
])], 6)),
|
|
129
|
-
l.centerText ? (m(), o("div", b, g(l.centerText), 1)) : a("", !0),
|
|
130
|
-
s("div", {
|
|
131
|
-
class: f(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": z.value }]),
|
|
132
|
-
style: p(B.value)
|
|
133
|
-
}, [c(n, d({
|
|
134
|
-
"model-value": k.value,
|
|
135
|
-
readonly: l.readonly,
|
|
136
|
-
disabled: l.disabled,
|
|
137
|
-
options: U.value,
|
|
138
|
-
placeholder: l.selectPlaceholder
|
|
139
|
-
}, N.value, { "onUpdate:modelValue": i[1] ||= (e) => G(e, j.value) }), null, 16, [
|
|
140
|
-
"model-value",
|
|
141
|
-
"readonly",
|
|
142
|
-
"disabled",
|
|
143
|
-
"options",
|
|
144
|
-
"placeholder"
|
|
145
|
-
])], 6)
|
|
146
|
-
], 64)) : (m(), o(r, { key: 2 }, [
|
|
147
|
-
s("div", {
|
|
148
|
-
class: f(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": z.value }]),
|
|
149
|
-
style: p(B.value)
|
|
150
|
-
}, [c(n, d({
|
|
151
|
-
"model-value": k.value,
|
|
152
|
-
readonly: l.readonly,
|
|
153
|
-
disabled: l.disabled,
|
|
154
|
-
options: U.value,
|
|
155
|
-
placeholder: l.selectPlaceholder
|
|
156
|
-
}, N.value, { "onUpdate:modelValue": i[2] ||= (e) => G(e, j.value) }), null, 16, [
|
|
157
|
-
"model-value",
|
|
158
|
-
"readonly",
|
|
159
|
-
"disabled",
|
|
160
|
-
"options",
|
|
161
|
-
"placeholder"
|
|
162
|
-
])], 6),
|
|
163
|
-
l.centerText ? (m(), o("div", x, g(l.centerText), 1)) : a("", !0),
|
|
164
|
-
l.inputHide ? a("", !0) : (m(), o("div", {
|
|
165
|
-
key: 1,
|
|
166
|
-
class: f(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": R.value }]),
|
|
167
|
-
style: p(V.value)
|
|
168
|
-
}, [c(t, d({
|
|
169
|
-
"model-value": O.value,
|
|
170
|
-
readonly: l.readonly,
|
|
171
|
-
disabled: l.disabled,
|
|
172
|
-
placeholder: l.inputPlaceholder
|
|
173
|
-
}, M.value, { "onUpdate:modelValue": i[3] ||= (e) => G(e, A.value) }), null, 16, [
|
|
174
|
-
"model-value",
|
|
175
|
-
"readonly",
|
|
176
|
-
"disabled",
|
|
177
|
-
"placeholder"
|
|
178
|
-
])], 6))
|
|
179
|
-
], 64)),
|
|
180
|
-
l.rightText && !l.inputHide ? (m(), o("div", S, g(l.rightText), 1)) : a("", !0)
|
|
181
|
-
], 4)], 2));
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
//#endregion
|
|
185
|
-
export { C as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-form-input-mix-select[data-v-1f46ef39]{vertical-align:top;width:auto;max-width:100%;display:inline-flex}.k-form-input-mix-select__row[data-v-1f46ef39]{flex-wrap:wrap;align-items:center;width:auto;max-width:100%;display:inline-flex}.k-form-input-mix-select__text[data-v-1f46ef39]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size,12px);white-space:nowrap;flex-shrink:0;line-height:1.4}.k-form-input-mix-select__control[data-v-1f46ef39]{flex:none;max-width:100%}.k-form-input-mix-select__control[data-v-1f46ef39] .k-form-input,.k-form-input-mix-select__control[data-v-1f46ef39] .k-form-select{min-width:0;width:100%!important;max-width:none!important}.k-form-input-mix-select__control[data-v-1f46ef39] .el-input,.k-form-input-mix-select__control[data-v-1f46ef39] .el-select{width:100%}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .k-form-input,.k-form-input-mix-select__control--affix[data-v-1f46ef39] .k-form-select{width:auto!important}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group{vertical-align:middle;width:max-content;max-width:100%;display:inline-flex}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group .el-input__wrapper{width:var(--k-mix-select-field-width,140px);min-width:var(--k-mix-select-field-width,140px);flex:auto}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group__prepend,.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group__append{white-space:nowrap;flex:none}.k-form-input-mix-select--readonly .k-form-input-mix-select__control[data-v-1f46ef39]{width:auto;min-width:0}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputNumber.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/k-form/formComponent/InputNumber.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAIrD,KAAK,WAAW,GAAG,sBAAsB,GAAG;IACtC,gBAAgB;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gBAAgB;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU;IACV,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,UAAU;IACV,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAkIN,QAAA,MAAM,YAAY;;;;;SAvIN,MAAM;SAEN,MAAM;eAEA,MAAM;cAVP,MAAM;eAEL,MAAM;6EA+ItB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./InputNumber.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './InputNumber.vue_vue_type_style_index_0_scoped_acdc4199_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-form/formComponent/InputNumber.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-acdc4199"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|
package/dist/components/k-form/formComponent/InputNumber.vue_vue_type_script_setup_true_lang.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { formatReadonlyText as e, toNumberValue as t } from "../utils/fieldValue.js";
|
|
2
|
-
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, defineComponent as o, openBlock as s, toDisplayString as c, unref as l } from "vue";
|
|
3
|
-
import { ElInputNumber as u } from "element-plus";
|
|
4
|
-
//#region src/components/k-form/formComponent/InputNumber.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var d = { class: "k-form-input-number" }, f = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "k-form-input-number__side k-form-input-number__side--left"
|
|
8
|
-
}, p = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "k-form-input-number__readonly"
|
|
11
|
-
}, m = {
|
|
12
|
-
key: 3,
|
|
13
|
-
class: "k-form-input-number__side k-form-input-number__side--right"
|
|
14
|
-
}, h = /*@__PURE__*/ o({
|
|
15
|
-
name: "KFormInputNumber",
|
|
16
|
-
__name: "InputNumber",
|
|
17
|
-
props: {
|
|
18
|
-
modelValue: {},
|
|
19
|
-
options: {},
|
|
20
|
-
readonly: { type: Boolean },
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
leftText: { default: "" },
|
|
23
|
-
rightText: { default: "" },
|
|
24
|
-
min: { default: void 0 },
|
|
25
|
-
max: { default: void 0 },
|
|
26
|
-
maxlength: { default: 1e3 }
|
|
27
|
-
},
|
|
28
|
-
emits: ["update:modelValue"],
|
|
29
|
-
setup(o, { emit: h }) {
|
|
30
|
-
let g = o, _ = h, v = n(() => t(g.modelValue));
|
|
31
|
-
function y(e) {
|
|
32
|
-
if (e === void 0) {
|
|
33
|
-
_("update:modelValue", g.min ?? 0);
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
let t = String(e);
|
|
37
|
-
if (t.length > g.maxlength) {
|
|
38
|
-
_("update:modelValue", Number(t.slice(0, g.maxlength)));
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
_("update:modelValue", e);
|
|
42
|
-
}
|
|
43
|
-
return (t, n) => (s(), a("div", d, [
|
|
44
|
-
o.leftText ? (s(), a("div", f, c(o.leftText), 1)) : i("", !0),
|
|
45
|
-
o.readonly ? (s(), a("span", p, c(l(e)(v.value)), 1)) : (s(), r(l(u), {
|
|
46
|
-
key: 2,
|
|
47
|
-
"model-value": v.value,
|
|
48
|
-
min: o.min,
|
|
49
|
-
max: o.max,
|
|
50
|
-
disabled: o.disabled,
|
|
51
|
-
"onUpdate:modelValue": y
|
|
52
|
-
}, null, 8, [
|
|
53
|
-
"model-value",
|
|
54
|
-
"min",
|
|
55
|
-
"max",
|
|
56
|
-
"disabled"
|
|
57
|
-
])),
|
|
58
|
-
o.rightText ? (s(), a("div", m, c(o.rightText), 1)) : i("", !0)
|
|
59
|
-
]));
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
//#endregion
|
|
63
|
-
export { h as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-form-input-number[data-v-acdc4199]{align-items:center;display:flex}.k-form-input-number__side[data-v-acdc4199]{color:var(--k-color-text-regular);white-space:nowrap;font-size:12px}.k-form-input-number__side--left[data-v-acdc4199]{margin-right:5px}.k-form-input-number__side--right[data-v-acdc4199]{margin-left:5px}.k-form-input-number__readonly[data-v-acdc4199]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/k-form/formComponent/Radio.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAIrD,KAAK,WAAW,GAAG,sBAAsB,GAAG;IACtC,kCAAkC;IAClC,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC3B,YAAY;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAoJN,QAAA,MAAM,YAAY;;;;;UAvJL,SAAS,GAAG,QAAQ;6EA2J/B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./Radio.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './Radio.vue_vue_type_style_index_0_scoped_e0ff32b0_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-form/formComponent/Radio.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-e0ff32b0"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { formatReadonlyText as e, toScalarValue as t } from "../utils/fieldValue.js";
|
|
2
|
-
import { Fragment as n, computed as r, createBlock as i, createElementBlock as a, createTextVNode as o, defineComponent as s, openBlock as c, renderList as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
|
|
3
|
-
import { ElRadio as p, ElRadioButton as m, ElRadioGroup as h } from "element-plus";
|
|
4
|
-
//#region src/components/k-form/formComponent/Radio.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var g = { class: "k-form-radio" }, _ = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "k-form-radio__readonly"
|
|
8
|
-
}, v = /*@__PURE__*/ s({
|
|
9
|
-
name: "KFormRadio",
|
|
10
|
-
__name: "Radio",
|
|
11
|
-
props: {
|
|
12
|
-
modelValue: {},
|
|
13
|
-
options: {},
|
|
14
|
-
readonly: { type: Boolean },
|
|
15
|
-
disabled: { type: Boolean },
|
|
16
|
-
type: { default: "default" }
|
|
17
|
-
},
|
|
18
|
-
emits: ["update:modelValue"],
|
|
19
|
-
setup(s, { emit: v }) {
|
|
20
|
-
let y = s, b = v, x = r(() => t(y.modelValue)), S = r(() => (y.options ?? []).find((e) => e.value === x.value)?.label ?? e(x.value));
|
|
21
|
-
function C(e) {
|
|
22
|
-
b("update:modelValue", e);
|
|
23
|
-
}
|
|
24
|
-
return (e, r) => (c(), a("div", g, [s.readonly ? (c(), a("span", _, u(S.value), 1)) : (c(), i(d(h), {
|
|
25
|
-
key: 1,
|
|
26
|
-
"model-value": x.value,
|
|
27
|
-
disabled: s.disabled,
|
|
28
|
-
"onUpdate:modelValue": C
|
|
29
|
-
}, {
|
|
30
|
-
default: f(() => [(c(!0), a(n, null, l(s.options, (e) => (c(), a(n, { key: String(e.value) }, [s.type === "button" ? (c(), i(d(m), {
|
|
31
|
-
key: 0,
|
|
32
|
-
value: d(t)(e.value),
|
|
33
|
-
disabled: e.disabled
|
|
34
|
-
}, {
|
|
35
|
-
default: f(() => [o(u(e.label), 1)]),
|
|
36
|
-
_: 2
|
|
37
|
-
}, 1032, ["value", "disabled"])) : (c(), i(d(p), {
|
|
38
|
-
key: 1,
|
|
39
|
-
value: d(t)(e.value),
|
|
40
|
-
disabled: e.disabled
|
|
41
|
-
}, {
|
|
42
|
-
default: f(() => [o(u(e.label), 1)]),
|
|
43
|
-
_: 2
|
|
44
|
-
}, 1032, ["value", "disabled"]))], 64))), 128))]),
|
|
45
|
-
_: 1
|
|
46
|
-
}, 8, ["model-value", "disabled"]))]));
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
//#endregion
|
|
50
|
-
export { v as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-form-radio[data-v-e0ff32b0] .el-radio.is-bordered,.k-form-radio[data-v-e0ff32b0] .el-radio-button{margin-left:0}.k-form-radio__readonly[data-v-e0ff32b0]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/k-form/formComponent/RadioInput.vue"],"names":[],"mappings":"AA2NA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAIrD,KAAK,WAAW,GAAG,sBAAsB,GAAG;IACtC,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,mDAAmD;IACnD,IAAI,CAAC,EAAE,EAAE,GAAG,aAAa,CAAA;IACzB,wBAAwB;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,+BAA+B;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACpC,YAAY;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AA8PN,QAAA,MAAM,YAAY;;eA7OsB,OAAO;gBAAU,OAAO;;;;eAAxB,OAAO;gBAAU,OAAO;;;UA5BnD,EAAE,GAAG,aAAa;cAId,MAAM;eAEL,MAAM;gBAEL,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;sBANjB,MAAM;eAJb,MAAM;6EA+QtB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./RadioInput.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './RadioInput.vue_vue_type_style_index_0_scoped_1543c319_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-form/formComponent/RadioInput.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-1543c319"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|
package/dist/components/k-form/formComponent/RadioInput.vue_vue_type_script_setup_true_lang.js
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import e from "./Radio.js";
|
|
2
|
-
import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createTextVNode as o, createVNode as s, defineComponent as c, mergeProps as l, normalizeClass as u, openBlock as d, ref as f, toDisplayString as p, unref as m, watch as h } from "vue";
|
|
3
|
-
import { ElInput as g, ElInputNumber as _ } from "element-plus";
|
|
4
|
-
//#region src/components/k-form/formComponent/RadioInput.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var v = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "k-form-radio-input__label"
|
|
8
|
-
}, y = {
|
|
9
|
-
key: 3,
|
|
10
|
-
class: "k-form-radio-input__label"
|
|
11
|
-
}, b = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "k-form-radio-input__readonly"
|
|
14
|
-
}, x = { key: 0 }, S = { key: 1 }, C = /*@__PURE__*/ c({
|
|
15
|
-
name: "KFormRadioInput",
|
|
16
|
-
__name: "RadioInput",
|
|
17
|
-
props: {
|
|
18
|
-
modelValue: {},
|
|
19
|
-
options: {},
|
|
20
|
-
readonly: { type: Boolean },
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
showInput: { default: "1" },
|
|
23
|
-
type: { default: "" },
|
|
24
|
-
inputPlaceholder: { default: "" },
|
|
25
|
-
leftText: { default: "" },
|
|
26
|
-
rightText: { default: "" },
|
|
27
|
-
inputProps: { default: () => ({}) }
|
|
28
|
-
},
|
|
29
|
-
emits: ["update:modelValue"],
|
|
30
|
-
setup(c, { emit: C }) {
|
|
31
|
-
let w = c, T = C, E = f(w.options?.[0]?.value ?? ""), D = f(""), O = n(() => E.value === w.showInput);
|
|
32
|
-
function k() {
|
|
33
|
-
let e = Number(w.inputProps?.min ?? 1);
|
|
34
|
-
return Number.isFinite(e) ? e : 1;
|
|
35
|
-
}
|
|
36
|
-
function A(e) {
|
|
37
|
-
return e === "" || e == null;
|
|
38
|
-
}
|
|
39
|
-
function j(e) {
|
|
40
|
-
if (w.type !== "inputNumber" || A(e)) return e;
|
|
41
|
-
if (typeof e == "number") return Number.isFinite(e) ? e : "";
|
|
42
|
-
let t = Number(e);
|
|
43
|
-
return Number.isFinite(t) ? t : e;
|
|
44
|
-
}
|
|
45
|
-
let M = n(() => {
|
|
46
|
-
if (A(D.value)) return null;
|
|
47
|
-
let e = Number(D.value);
|
|
48
|
-
return Number.isFinite(e) ? e : null;
|
|
49
|
-
});
|
|
50
|
-
h(() => w.modelValue, (e) => {
|
|
51
|
-
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
52
|
-
let t = e;
|
|
53
|
-
t.radio !== void 0 && (E.value = t.radio), t.input !== void 0 && (D.value = j(t.input));
|
|
54
|
-
}
|
|
55
|
-
}, {
|
|
56
|
-
immediate: !0,
|
|
57
|
-
deep: !0
|
|
58
|
-
});
|
|
59
|
-
function N() {
|
|
60
|
-
if (E.value === w.showInput) {
|
|
61
|
-
if (w.type === "inputNumber" && A(D.value)) {
|
|
62
|
-
D.value = k();
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
T("update:modelValue", {
|
|
66
|
-
radio: E.value,
|
|
67
|
-
input: D.value
|
|
68
|
-
});
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
if (E.value !== "" && E.value != null) {
|
|
72
|
-
T("update:modelValue", { radio: E.value });
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
T("update:modelValue", {});
|
|
76
|
-
}
|
|
77
|
-
h([E, D], N, { immediate: !0 });
|
|
78
|
-
function P(e) {
|
|
79
|
-
e === w.showInput && w.type === "inputNumber" && A(D.value) && (D.value = k()), E.value = e;
|
|
80
|
-
}
|
|
81
|
-
return (n, f) => (d(), a("div", { class: u(["k-form-radio-input", { "k-form-radio-input--readonly": c.readonly }]) }, [
|
|
82
|
-
s(e, {
|
|
83
|
-
"model-value": E.value,
|
|
84
|
-
options: c.options,
|
|
85
|
-
readonly: c.readonly,
|
|
86
|
-
disabled: c.disabled,
|
|
87
|
-
class: "k-form-radio-input__radio",
|
|
88
|
-
"onUpdate:modelValue": P
|
|
89
|
-
}, null, 8, [
|
|
90
|
-
"model-value",
|
|
91
|
-
"options",
|
|
92
|
-
"readonly",
|
|
93
|
-
"disabled"
|
|
94
|
-
]),
|
|
95
|
-
!c.readonly && O.value ? (d(), a(t, { key: 0 }, [
|
|
96
|
-
c.leftText ? (d(), a("label", v, p(c.leftText), 1)) : i("", !0),
|
|
97
|
-
c.type === "inputNumber" ? (d(), r(m(_), l({
|
|
98
|
-
key: 1,
|
|
99
|
-
"model-value": M.value,
|
|
100
|
-
class: "k-form-radio-input__input",
|
|
101
|
-
placeholder: c.inputPlaceholder,
|
|
102
|
-
disabled: c.disabled
|
|
103
|
-
}, c.inputProps, { "onUpdate:modelValue": f[0] ||= (e) => D.value = e ?? "" }), null, 16, [
|
|
104
|
-
"model-value",
|
|
105
|
-
"placeholder",
|
|
106
|
-
"disabled"
|
|
107
|
-
])) : (d(), r(m(g), l({
|
|
108
|
-
key: 2,
|
|
109
|
-
modelValue: D.value,
|
|
110
|
-
"onUpdate:modelValue": f[1] ||= (e) => D.value = e,
|
|
111
|
-
class: "k-form-radio-input__input",
|
|
112
|
-
placeholder: c.inputPlaceholder,
|
|
113
|
-
disabled: c.disabled
|
|
114
|
-
}, c.inputProps), null, 16, [
|
|
115
|
-
"modelValue",
|
|
116
|
-
"placeholder",
|
|
117
|
-
"disabled"
|
|
118
|
-
])),
|
|
119
|
-
c.rightText ? (d(), a("label", y, p(c.rightText), 1)) : i("", !0)
|
|
120
|
-
], 64)) : i("", !0),
|
|
121
|
-
c.readonly && O.value ? (d(), a("div", b, [
|
|
122
|
-
c.leftText ? (d(), a("label", x, p(c.leftText), 1)) : i("", !0),
|
|
123
|
-
o(" " + p(D.value) + " ", 1),
|
|
124
|
-
c.rightText ? (d(), a("label", S, p(c.rightText), 1)) : i("", !0)
|
|
125
|
-
])) : i("", !0)
|
|
126
|
-
], 2));
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
//#endregion
|
|
130
|
-
export { C as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-form-radio-input[data-v-1543c319]{white-space:nowrap;flex-flow:row;align-items:center;max-width:100%;display:inline-flex}.k-form-radio-input__radio[data-v-1543c319]{flex:none}.k-form-radio-input__radio[data-v-1543c319] .el-radio-group{white-space:nowrap;flex-wrap:nowrap;display:inline-flex}.k-form-radio-input__input[data-v-1543c319]{flex:none;width:150px;min-width:150px;max-width:200px;margin-left:10px}.k-form-radio-input__label[data-v-1543c319]{color:var(--k-color-text-regular);flex:none;margin-left:5px;font-size:12px;font-weight:500;line-height:1}.k-form-radio-input__readonly[data-v-1543c319]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);margin-left:6px}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/k-form/formComponent/ScrollSelect.vue"],"names":[],"mappings":"AA6PA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAIrD,UAAU,gBAAgB;IACxB,aAAa;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU;IACV,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,sBAAsB;IACtB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,KAAK,WAAW,GAAG,sBAAsB,GAAG;IACtC,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8BAA8B;IAC9B,kBAAkB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACvC,cAAc;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa;IACb,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IACtE,aAAa;IACb,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACvC,cAAc;IACd,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,gBAAgB,EAAE,CAAA;IACtE,WAAW;IACX,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC;AAwQN,QAAA,MAAM,YAAY;;;;;cAzQD,MAAM;cAhBN,OAAO;eAEN,OAAO;wBAIE,gBAAgB,EAAE;eAE3B,MAAM;oBAED,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC;mBAEtD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;mBAEvB,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,gBAAgB,EAAE;6EA+Q1E,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./ScrollSelect.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './ScrollSelect.vue_vue_type_style_index_0_scoped_dc0bba37_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-form/formComponent/ScrollSelect.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-dc0bba37"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|
package/dist/components/k-form/formComponent/ScrollSelect.vue_vue_type_script_setup_true_lang.js
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { formatReadonlyText as e, toCheckboxGroupValue as t, toScalarValue as n } from "../utils/fieldValue.js";
|
|
2
|
-
import { Fragment as r, computed as i, createBlock as a, createElementBlock as o, defineComponent as s, nextTick as c, openBlock as l, ref as u, renderList as d, toDisplayString as f, unref as p, vShow as m, watch as h, withCtx as g, withDirectives as _ } from "vue";
|
|
3
|
-
import { ElOption as v, ElSelect as y } from "element-plus";
|
|
4
|
-
import { useDebounceFn as b, useEventListener as x } from "@vueuse/core";
|
|
5
|
-
//#region src/components/k-form/formComponent/ScrollSelect.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var S = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "k-form-scroll-select__readonly"
|
|
9
|
-
}, C = /*@__PURE__*/ s({
|
|
10
|
-
name: "KFormScrollSelect",
|
|
11
|
-
__name: "ScrollSelect",
|
|
12
|
-
props: {
|
|
13
|
-
modelValue: {},
|
|
14
|
-
options: {},
|
|
15
|
-
readonly: { type: Boolean },
|
|
16
|
-
disabled: { type: Boolean },
|
|
17
|
-
multiple: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: !1
|
|
20
|
-
},
|
|
21
|
-
clearable: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: !1
|
|
24
|
-
},
|
|
25
|
-
defaultSelectedStr: { default: () => [] },
|
|
26
|
-
searchKey: { default: "searchKey" },
|
|
27
|
-
getListMethods: {
|
|
28
|
-
type: Function,
|
|
29
|
-
default: void 0
|
|
30
|
-
},
|
|
31
|
-
getListParams: { default: () => ({}) },
|
|
32
|
-
getListFormat: {
|
|
33
|
-
type: Function,
|
|
34
|
-
default: (e) => Array.isArray(e) ? e : []
|
|
35
|
-
},
|
|
36
|
-
pageSize: { default: 10 }
|
|
37
|
-
},
|
|
38
|
-
emits: ["update:modelValue"],
|
|
39
|
-
setup(s, { emit: C }) {
|
|
40
|
-
let w = s, T = C, E = u([]), D = u(!1), O = u(!1), k = u(1), A = u(""), j = u(null), M = u(w.multiple ? [] : "");
|
|
41
|
-
h(() => w.modelValue, (e) => {
|
|
42
|
-
M.value = w.multiple ? t(e) : n(e);
|
|
43
|
-
}, { immediate: !0 }), h(() => w.defaultSelectedStr, (e) => {
|
|
44
|
-
e?.length && (E.value = [...E.value, ...e]);
|
|
45
|
-
}, {
|
|
46
|
-
immediate: !0,
|
|
47
|
-
deep: !0
|
|
48
|
-
}), h(() => w.getListParams, () => {
|
|
49
|
-
M.value = w.multiple ? [] : "", E.value = [], k.value = 1, O.value = !1, N();
|
|
50
|
-
}, { deep: !0 });
|
|
51
|
-
async function N() {
|
|
52
|
-
if (!(!w.getListMethods || O.value || D.value)) {
|
|
53
|
-
D.value = !0;
|
|
54
|
-
try {
|
|
55
|
-
let e = {
|
|
56
|
-
...w.getListParams,
|
|
57
|
-
[w.searchKey]: A.value,
|
|
58
|
-
page_no: k.value,
|
|
59
|
-
page_size: w.pageSize
|
|
60
|
-
}, t = await w.getListMethods(e), n = w.getListFormat(t, k.value);
|
|
61
|
-
n.length < w.pageSize && (O.value = !0), E.value = E.value.concat(n);
|
|
62
|
-
} finally {
|
|
63
|
-
D.value = !1;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
let P = b((e) => {
|
|
68
|
-
E.value = [], k.value = 1, O.value = !1, A.value = e, N();
|
|
69
|
-
}, 500), F = b(() => {
|
|
70
|
-
k.value += 1, N();
|
|
71
|
-
}, 300);
|
|
72
|
-
function I(e) {
|
|
73
|
-
e !== A.value && P(e);
|
|
74
|
-
}
|
|
75
|
-
function L() {
|
|
76
|
-
if (!j.value || O.value) return;
|
|
77
|
-
let { scrollHeight: e, scrollTop: t, clientHeight: n } = j.value;
|
|
78
|
-
e - t > n + 2 || F();
|
|
79
|
-
}
|
|
80
|
-
x(j, "scroll", L);
|
|
81
|
-
function R(e) {
|
|
82
|
-
if (!e) {
|
|
83
|
-
j.value = null;
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
c(() => {
|
|
87
|
-
j.value = document.querySelector(".k-form-scroll-select__dropdown .el-select-dropdown__wrap");
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
function z(e) {
|
|
91
|
-
M.value = e, T("update:modelValue", e);
|
|
92
|
-
}
|
|
93
|
-
let B = i(() => {
|
|
94
|
-
if (w.multiple) {
|
|
95
|
-
let n = t(M.value), r = E.value.filter((e) => n.includes(e.value)).map((e) => String(e.label ?? e.name ?? e.value));
|
|
96
|
-
return r.length ? r.join(", ") : e(n);
|
|
97
|
-
}
|
|
98
|
-
let r = n(M.value), i = E.value.find((e) => e.value === r);
|
|
99
|
-
return i ? String(i.label ?? i.name ?? i.value) : e(r);
|
|
100
|
-
});
|
|
101
|
-
return N(), (e, t) => s.readonly ? (l(), o("span", S, f(B.value), 1)) : (l(), a(p(y), {
|
|
102
|
-
key: 1,
|
|
103
|
-
"model-value": M.value,
|
|
104
|
-
remote: "",
|
|
105
|
-
filterable: "",
|
|
106
|
-
"remote-method": I,
|
|
107
|
-
multiple: s.multiple,
|
|
108
|
-
clearable: s.clearable,
|
|
109
|
-
disabled: s.disabled,
|
|
110
|
-
loading: D.value,
|
|
111
|
-
"popper-class": "k-form-scroll-select__dropdown",
|
|
112
|
-
class: "k-form-scroll-select",
|
|
113
|
-
onVisibleChange: R,
|
|
114
|
-
"onUpdate:modelValue": z
|
|
115
|
-
}, {
|
|
116
|
-
default: g(() => [(l(!0), o(r, null, d(E.value, (e, t) => _((l(), a(p(v), {
|
|
117
|
-
key: `${e.value}-${t}`,
|
|
118
|
-
label: String(e.label ?? ""),
|
|
119
|
-
value: e.value
|
|
120
|
-
}, null, 8, ["label", "value"])), [[m, e.isShow !== !1]])), 128))]),
|
|
121
|
-
_: 1
|
|
122
|
-
}, 8, [
|
|
123
|
-
"model-value",
|
|
124
|
-
"multiple",
|
|
125
|
-
"clearable",
|
|
126
|
-
"disabled",
|
|
127
|
-
"loading"
|
|
128
|
-
]));
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
//#endregion
|
|
132
|
-
export { C as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-form-scroll-select[data-v-dc0bba37]{width:100%;max-width:300px}.k-form-scroll-select__readonly[data-v-dc0bba37]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Select.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/k-form/formComponent/Select.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAIrD,KAAK,WAAW,GAAG,sBAAsB,GAAG;IACtC,aAAa;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY;IACZ,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,eAAe;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AA2JN,QAAA,MAAM,YAAY;;;;;iBApKE,MAAM;cAET,OAAO;eAMN,OAAO;gBAFN,OAAO;6EAkKxB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./Select.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './Select.vue_vue_type_style_index_0_scoped_20fc23b7_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-form/formComponent/Select.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-20fc23b7"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|