@veltra/desktop 1.2.31 → 1.2.32

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.
Files changed (53) hide show
  1. package/dist/components/action/action-group.vue.d.ts +1 -1
  2. package/dist/components/action/action.vue.d.ts +1 -1
  3. package/dist/components/auto-complete/auto-complete.vue.d.ts +1 -1
  4. package/dist/components/batch-edit/use-handlers.js +3 -1
  5. package/dist/components/batch-edit/use-handlers.js.map +1 -1
  6. package/dist/components/cascade/cascade.vue.d.ts +1 -1
  7. package/dist/components/checkbox/checkbox-button.vue.d.ts +2 -2
  8. package/dist/components/checkbox/checkbox.vue.d.ts +1 -1
  9. package/dist/components/checkbox-group/checkbox-group.vue.d.ts +1 -1
  10. package/dist/components/code-editor/code-editor.vue.d.ts +1 -1
  11. package/dist/components/code-editor/lang-loaders.js +3 -1
  12. package/dist/components/code-editor/lang-loaders.js.map +1 -1
  13. package/dist/components/code-editor/langs/bash/index.js +11 -0
  14. package/dist/components/code-editor/langs/bash/index.js.map +1 -0
  15. package/dist/components/code-editor/langs/powershell/index.js +11 -0
  16. package/dist/components/code-editor/langs/powershell/index.js.map +1 -0
  17. package/dist/components/date-panel/date-panel.vue.d.ts +1 -1
  18. package/dist/components/date-picker/date-picker.vue.d.ts +2 -2
  19. package/dist/components/date-range-picker/date-range-picker.vue.d.ts +2 -2
  20. package/dist/components/input/input.vue.d.ts +1 -1
  21. package/dist/components/multi-select/multi-select.vue.d.ts +1 -1
  22. package/dist/components/multi-tree-select/multi-tree-select.vue.d.ts +2 -2
  23. package/dist/components/number-input/number-input.vue.d.ts +1 -1
  24. package/dist/components/number-range-input/number-range-input.vue.d.ts +1 -1
  25. package/dist/components/palette/palette.vue.d.ts +1 -1
  26. package/dist/components/password-input/password-input.vue.d.ts +1 -1
  27. package/dist/components/pop-confirm/pop-confirm.vue.d.ts +1 -1
  28. package/dist/components/progress-nodes/progress-nodes.vue.d.ts +1 -1
  29. package/dist/components/radio-group/radio-group.vue.d.ts +1 -1
  30. package/dist/components/rich-text-editor/rich-text-editor.vue.d.ts +1 -1
  31. package/dist/components/select/select.vue.d.ts +1 -1
  32. package/dist/components/steps/steps.vue.d.ts +1 -1
  33. package/dist/components/switch/switch.vue.d.ts +1 -1
  34. package/dist/components/tabs/tabs-horizontal.vue.d.ts +2 -2
  35. package/dist/components/tabs/tabs-vertical.vue.d.ts +2 -2
  36. package/dist/components/tabs/tabs.vue.d.ts +2 -2
  37. package/dist/components/textarea/textarea.vue.d.ts +1 -1
  38. package/dist/components/tip/tip.vue.d.ts +1 -1
  39. package/dist/components/tree/tree.vue.d.ts +1 -1
  40. package/dist/components/tree-select/tree-select.vue.d.ts +2 -2
  41. package/dist/node_modules/.bun/@codemirror_legacy-modes@6.5.3/node_modules/@codemirror/legacy-modes/mode/powershell.js +303 -0
  42. package/dist/node_modules/.bun/@codemirror_legacy-modes@6.5.3/node_modules/@codemirror/legacy-modes/mode/powershell.js.map +1 -0
  43. package/dist/node_modules/.bun/@codemirror_legacy-modes@6.5.3/node_modules/@codemirror/legacy-modes/mode/shell.js +225 -0
  44. package/dist/node_modules/.bun/@codemirror_legacy-modes@6.5.3/node_modules/@codemirror/legacy-modes/mode/shell.js.map +1 -0
  45. package/dist/types/batch-edit.d.ts +5 -1
  46. package/dist/types/code-editor.d.ts +1 -1
  47. package/package.json +7 -6
  48. package/src/components/batch-edit/use-handlers.ts +4 -1
  49. package/src/components/code-editor/lang-loaders.ts +3 -1
  50. package/src/components/code-editor/langs/bash/index.ts +7 -0
  51. package/src/components/code-editor/langs/powershell/index.ts +7 -0
  52. package/src/types/batch-edit.ts +5 -1
  53. package/src/types/code-editor.ts +1 -1
@@ -0,0 +1,7 @@
1
+ import { LanguageSupport, StreamLanguage } from '@codemirror/language'
2
+ import { shell } from '@codemirror/legacy-modes/mode/shell'
3
+
4
+ /** Bash / shell 脚本语言支持(基于 CodeMirror legacy shell mode) */
5
+ export function bash(): LanguageSupport {
6
+ return new LanguageSupport(StreamLanguage.define(shell))
7
+ }
@@ -0,0 +1,7 @@
1
+ import { LanguageSupport, StreamLanguage } from '@codemirror/language'
2
+ import { powerShell } from '@codemirror/legacy-modes/mode/powershell'
3
+
4
+ /** PowerShell 语言支持(基于 CodeMirror legacy powershell mode) */
5
+ export function powershell(): LanguageSupport {
6
+ return new LanguageSupport(StreamLanguage.define(powerShell))
7
+ }
@@ -58,7 +58,11 @@ export interface BatchEditProps extends TableProps {
58
58
  ) => void | Promise<void>
59
59
  /** label的宽度 */
60
60
  labelWidth?: string | number
61
- /** 删除方法 */
61
+ /**
62
+ * 删除方法
63
+ * @description 删除时调用。如果返回 false,则不删除
64
+ * @returns 如果返回 false,则不删除
65
+ */
62
66
  deleteMethod?: (data: Record<string, any>[]) => any
63
67
  /**
64
68
  * 保存方法
@@ -1,6 +1,6 @@
1
1
  import type { DeconstructValue, FormComponentProps } from '@veltra/utils'
2
2
 
3
- export type CodeEditorLang = 'js' | 'sql' | 'java' | 'json' | 'spel'
3
+ export type CodeEditorLang = 'js' | 'sql' | 'java' | 'json' | 'spel' | 'bash' | 'powershell'
4
4
 
5
5
  /** 代码编辑器组件属性(不支持 `size`) */
6
6
  export interface CodeEditorProps extends Omit<FormComponentProps, 'size'> {