@veltra/desktop 1.0.10 → 1.0.11

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 (49) hide show
  1. package/dist/components/action/action-group.vue.d.ts +1 -1
  2. package/dist/components/action/action.vue.d.ts +3 -3
  3. package/dist/components/auto-complete/auto-complete.vue.d.ts +1 -1
  4. package/dist/components/batch-edit/batch-edit.vue.d.ts +2 -2
  5. package/dist/components/button/button.vue.d.ts +1 -1
  6. package/dist/components/cascade/cascade.vue.d.ts +6 -6
  7. package/dist/components/checkbox-group/checkbox-group.vue.d.ts +2 -2
  8. package/dist/components/code-editor/code-editor.js +2 -0
  9. package/dist/components/code-editor/code-editor.js.map +1 -1
  10. package/dist/components/date-panel/date-panel.vue.d.ts +1 -1
  11. package/dist/components/date-picker/date-picker.vue.d.ts +1 -1
  12. package/dist/components/date-range-picker/date-range-picker.vue.d.ts +1 -1
  13. package/dist/components/file-picker/file-picker.vue.d.ts +1 -1
  14. package/dist/components/file-viewer/file-viewer.js +195 -30
  15. package/dist/components/file-viewer/file-viewer.js.map +1 -1
  16. package/dist/components/file-viewer/previewers/docx-previewer.js +7 -5
  17. package/dist/components/file-viewer/previewers/docx-previewer.js.map +1 -1
  18. package/dist/components/file-viewer/previewers/image-previewer.js +6 -6
  19. package/dist/components/file-viewer/previewers/image-previewer.js.map +1 -1
  20. package/dist/components/file-viewer/previewers/pdf-previewer.js +5 -3
  21. package/dist/components/file-viewer/previewers/pdf-previewer.js.map +1 -1
  22. package/dist/components/file-viewer/style2.css +387 -136
  23. package/dist/components/grid-input/grid-input.vue.d.ts +1 -1
  24. package/dist/components/input/input.vue.d.ts +3 -3
  25. package/dist/components/multi-select/multi-select.vue.d.ts +4 -4
  26. package/dist/components/multi-tree-select/multi-tree-select.vue.d.ts +7 -7
  27. package/dist/components/notification/notification.vue.d.ts +1 -1
  28. package/dist/components/number-input/number-input.vue.d.ts +1 -1
  29. package/dist/components/number-range-input/number-range-input.vue.d.ts +1 -1
  30. package/dist/components/password-input/password-input.vue.d.ts +1 -1
  31. package/dist/components/pop-confirm/pop-confirm.vue.d.ts +2 -2
  32. package/dist/components/radio-group/radio-group.vue.d.ts +2 -2
  33. package/dist/components/rich-text-editor/rich-text-editor.vue.d.ts +1 -1
  34. package/dist/components/select/select.vue.d.ts +3 -3
  35. package/dist/components/table/table.vue.d.ts +2 -2
  36. package/dist/components/tabs/tabs-horizontal.vue.d.ts +2 -2
  37. package/dist/components/tabs/tabs-vertical.vue.d.ts +2 -2
  38. package/dist/components/tabs/tabs.vue.d.ts +2 -2
  39. package/dist/components/textarea/textarea.vue.d.ts +4 -4
  40. package/dist/components/tip/tip.vue.d.ts +2 -2
  41. package/dist/components/tree/tree.vue.d.ts +6 -6
  42. package/dist/components/tree-select/tree-select.vue.d.ts +7 -7
  43. package/package.json +13 -12
  44. package/src/components/code-editor/code-editor.vue +2 -0
  45. package/src/components/file-viewer/file-viewer.vue +250 -24
  46. package/src/components/file-viewer/previewers/docx-previewer.vue +4 -3
  47. package/src/components/file-viewer/previewers/image-previewer.vue +4 -5
  48. package/src/components/file-viewer/previewers/pdf-previewer.vue +4 -3
  49. package/src/components/file-viewer/style.scss +503 -161
@@ -11,8 +11,8 @@ declare const __VLS_export: _$vue.DefineComponent<GridInputProps, _$_veltra_util
11
11
  onInput?: ((value: string) => any) | undefined;
12
12
  }>, {
13
13
  length: number;
14
- zero: false;
15
14
  separator: string;
15
+ zero: false;
16
16
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
17
17
  declare const _default: typeof __VLS_export;
18
18
  //#endregion
@@ -16,18 +16,18 @@ type __VLS_Slots = {} & {
16
16
  declare const __VLS_base: _$vue.DefineComponent<__VLS_PublicProps, _InputExposed, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
17
17
  "update:modelValue": (value: string | undefined) => any;
18
18
  } & {
19
+ clear: () => any;
19
20
  "update:modelValue": (value: string) => any;
20
21
  change: (value: string) => any;
21
- clear: () => any;
22
22
  "suffix:click": (value?: string | undefined) => any;
23
23
  "prefix:click": (value?: string | undefined) => any;
24
24
  focus: (value?: string | undefined) => any;
25
25
  blur: (value?: string | undefined) => any;
26
26
  "native:input": (ev: Event) => any;
27
27
  }, string, _$vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ onClear?: (() => any) | undefined;
28
29
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
29
30
  onChange?: ((value: string) => any) | undefined;
30
- onClear?: (() => any) | undefined;
31
31
  "onSuffix:click"?: ((value?: string | undefined) => any) | undefined;
32
32
  "onPrefix:click"?: ((value?: string | undefined) => any) | undefined;
33
33
  onFocus?: ((value?: string | undefined) => any) | undefined;
@@ -35,9 +35,9 @@ declare const __VLS_base: _$vue.DefineComponent<__VLS_PublicProps, _InputExposed
35
35
  "onNative:input"?: ((ev: Event) => any) | undefined;
36
36
  }>, {
37
37
  disabled: boolean;
38
- readonly: boolean;
39
38
  placeholder: string;
40
39
  clearable: boolean;
40
+ readonly: boolean;
41
41
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
42
42
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
43
43
  declare const _default: typeof __VLS_export;
@@ -28,14 +28,14 @@ declare const __VLS_base: _$vue.DefineComponent<__VLS_PublicProps, {}, {}, {}, {
28
28
  "onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
29
29
  onChange?: ((options: Record<string, any>[]) => any) | undefined;
30
30
  }>, {
31
- labelKey: string;
32
- valueKey: string;
33
31
  disabled: boolean;
34
- readonly: boolean;
35
- minWidth: string;
36
32
  placeholder: string;
37
33
  clearable: boolean;
34
+ readonly: boolean;
35
+ labelKey: string;
36
+ valueKey: string;
38
37
  visibilityLimit: number;
38
+ minWidth: string;
39
39
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
40
40
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
41
41
  declare const _default: typeof __VLS_export;
@@ -14,24 +14,24 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
14
  declare const __VLS_base: _$vue.DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
15
15
  "update:modelValue": (value: (string | number)[]) => any;
16
16
  } & {
17
+ clear: () => any;
17
18
  "update:modelValue": (value: any[]) => any;
18
19
  change: (checked: Record<string, any>[]) => any;
19
- clear: () => any;
20
20
  }, string, _$vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
+ onClear?: (() => any) | undefined;
21
22
  "onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
22
23
  onChange?: ((checked: Record<string, any>[]) => any) | undefined;
23
- onClear?: (() => any) | undefined;
24
24
  }>, {
25
- labelKey: string;
26
- valueKey: string;
27
25
  disabled: boolean;
28
- readonly: boolean;
29
- minWidth: string;
30
26
  placeholder: string;
31
27
  clearable: boolean;
32
- expandAll: boolean;
28
+ readonly: boolean;
29
+ labelKey: string;
30
+ valueKey: string;
33
31
  filterable: boolean;
34
32
  visibilityLimit: number;
33
+ minWidth: string;
34
+ expandAll: boolean;
35
35
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
36
36
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
37
  declare const _default: typeof __VLS_export;
@@ -4,8 +4,8 @@ import * as _$_veltra_utils0 from "@veltra/utils";
4
4
 
5
5
  //#region src/components/notification/notification.vue.d.ts
6
6
  declare const __VLS_export: _$vue.DefineComponent<NotificationProps, _$_veltra_utils0.DeconstructValue<_NotificationExposed>, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<NotificationProps> & Readonly<{}>, {
7
- duration: number;
8
7
  closable: boolean;
8
+ duration: number;
9
9
  offset: number;
10
10
  buttonText: string;
11
11
  position: "top-left" | "top-right" | "bottom-left" | "bottom-right";
@@ -21,9 +21,9 @@ declare const __VLS_base: _$vue.DefineComponent<__VLS_PublicProps, {}, {}, {}, {
21
21
  onChange?: ((value?: number | undefined) => any) | undefined;
22
22
  }>, {
23
23
  disabled: boolean;
24
- readonly: boolean;
25
24
  placeholder: string;
26
25
  clearable: boolean;
26
+ readonly: boolean;
27
27
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
28
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
29
  declare const _default: typeof __VLS_export;
@@ -25,9 +25,9 @@ declare const __VLS_export: _$vue.DefineComponent<__VLS_PublicProps, {}, {}, {},
25
25
  "onUpdate:end"?: ((value: number | undefined) => any) | undefined;
26
26
  }>, {
27
27
  disabled: boolean;
28
+ clearable: boolean;
28
29
  readonly: boolean;
29
30
  separator: string;
30
- clearable: boolean;
31
31
  startPlaceholder: string;
32
32
  endPlaceholder: string;
33
33
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
@@ -16,8 +16,8 @@ declare const __VLS_base: _$vue.DefineComponent<__VLS_PublicProps, {}, {}, {}, {
16
16
  "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
17
17
  }>, {
18
18
  disabled: boolean;
19
- readonly: boolean;
20
19
  clearable: boolean;
20
+ readonly: boolean;
21
21
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
22
22
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
23
  declare const _default: typeof __VLS_export;
@@ -14,9 +14,9 @@ declare const __VLS_base: _$vue.DefineComponent<PopConfirmProps, {}, {}, {}, {},
14
14
  onConfirm?: (() => any) | undefined;
15
15
  onCancel?: (() => any) | undefined;
16
16
  }>, {
17
- trigger: "hover" | "click";
18
- direction: TipDirection;
19
17
  icon: _$vue.Component;
18
+ direction: TipDirection;
19
+ trigger: "hover" | "click";
20
20
  iconColor: string;
21
21
  confirmText: string;
22
22
  cancelText: string;
@@ -16,10 +16,10 @@ declare const __VLS_export: _$vue.DefineComponent<__VLS_PublicProps, {}, {}, {},
16
16
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
17
17
  onChange?: ((item: Record<string, any>) => any) | undefined;
18
18
  }>, {
19
- labelKey: string;
20
- valueKey: string;
21
19
  disabled: boolean;
22
20
  readonly: boolean;
21
+ labelKey: string;
22
+ valueKey: string;
23
23
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
24
24
  declare const _default: typeof __VLS_export;
25
25
  //#endregion
@@ -13,8 +13,8 @@ declare const __VLS_export: _$vue.DefineComponent<RichTextEditorProps & {
13
13
  "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
14
14
  }>, {
15
15
  disabled: boolean;
16
- readonly: boolean;
17
16
  placeholder: string;
17
+ readonly: boolean;
18
18
  format: RichTextFormat;
19
19
  toolbar: ToolbarItem[];
20
20
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
@@ -26,12 +26,12 @@ declare const __VLS_base: _$vue.DefineComponent<__VLS_PublicProps, {}, {}, {}, {
26
26
  "onUpdate:text"?: ((value: any) => any) | undefined;
27
27
  "onUpdate:label"?: ((label?: string | undefined) => any) | undefined;
28
28
  }>, {
29
- labelKey: string;
30
- valueKey: string;
31
29
  disabled: boolean;
32
- readonly: boolean;
33
30
  placeholder: string;
34
31
  clearable: boolean;
32
+ readonly: boolean;
33
+ labelKey: string;
34
+ valueKey: string;
35
35
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
36
36
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
37
  declare const _default: typeof __VLS_export;
@@ -23,16 +23,16 @@ type __VLS_Slots = {
23
23
  append?: () => any;
24
24
  };
25
25
  declare const __VLS_base: _$vue.DefineComponent<TableProps, _TableExposed, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
26
- "update:selected": (value: Record<string, any> | undefined) => any;
27
26
  "update:checked": (value: Record<string, any>[]) => any;
27
+ "update:selected": (value: Record<string, any> | undefined) => any;
28
28
  "update:rows": (rows: TableRow[]) => any;
29
29
  "update:forest": (rows?: _$_cat_kit_core0.Forest<Record<string, unknown>, any> | undefined) => any;
30
30
  "update:current": (row?: TableRow | undefined) => any;
31
31
  "cell-click": (row: TableRow, column: TableColumn, ev: MouseEvent) => any;
32
32
  "row-click": (row: TableRow, ev: MouseEvent) => any;
33
33
  }, string, _$vue.PublicProps, Readonly<TableProps> & Readonly<{
34
- "onUpdate:selected"?: ((value: Record<string, any> | undefined) => any) | undefined;
35
34
  "onUpdate:checked"?: ((value: Record<string, any>[]) => any) | undefined;
35
+ "onUpdate:selected"?: ((value: Record<string, any> | undefined) => any) | undefined;
36
36
  "onUpdate:rows"?: ((rows: TableRow[]) => any) | undefined;
37
37
  "onUpdate:forest"?: ((rows?: _$_cat_kit_core0.Forest<Record<string, unknown>, any> | undefined) => any) | undefined;
38
38
  "onUpdate:current"?: ((row?: TableRow | undefined) => any) | undefined;
@@ -16,12 +16,12 @@ declare const __VLS_base: _$vue.DefineComponent<__VLS_PublicProps, {}, {}, {}, {
16
16
  "update:modelValue": (value: string | undefined) => any;
17
17
  } & {
18
18
  "update:modelValue": (value: string) => any;
19
- close: (item: TabItem, index: number) => any;
20
19
  click: (item: TabItem, index: number) => any;
20
+ close: (item: TabItem, index: number) => any;
21
21
  }, string, _$vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
22
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
23
- onClose?: ((item: TabItem, index: number) => any) | undefined;
24
23
  onClick?: ((item: TabItem, index: number) => any) | undefined;
24
+ onClose?: ((item: TabItem, index: number) => any) | undefined;
25
25
  }>, {
26
26
  block: boolean;
27
27
  closable: boolean;
@@ -15,12 +15,12 @@ declare const __VLS_base: _$vue.DefineComponent<__VLS_PublicProps, {}, {}, {}, {
15
15
  "update:modelValue": (value: string | undefined) => any;
16
16
  } & {
17
17
  "update:modelValue": (value: string) => any;
18
- close: (item: TabItem, index: number) => any;
19
18
  click: (item: TabItem, index: number) => any;
19
+ close: (item: TabItem, index: number) => any;
20
20
  }, string, _$vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
21
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
22
- onClose?: ((item: TabItem, index: number) => any) | undefined;
23
22
  onClick?: ((item: TabItem, index: number) => any) | undefined;
23
+ onClose?: ((item: TabItem, index: number) => any) | undefined;
24
24
  }>, {
25
25
  closable: boolean;
26
26
  position: "left" | "right";
@@ -11,12 +11,12 @@ declare const __VLS_export: _$vue.DefineComponent<__VLS_PublicProps, {}, {}, {},
11
11
  "update:modelValue": (value: string | undefined) => any;
12
12
  } & {
13
13
  "update:modelValue": (value: string) => any;
14
- close: (item: TabItem, index: number) => any;
15
14
  click: (item: TabItem, index: number) => any;
15
+ close: (item: TabItem, index: number) => any;
16
16
  }, string, _$vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
17
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
18
- onClose?: ((item: TabItem, index: number) => any) | undefined;
19
18
  onClick?: ((item: TabItem, index: number) => any) | undefined;
19
+ onClose?: ((item: TabItem, index: number) => any) | undefined;
20
20
  }>, {
21
21
  block: boolean;
22
22
  closable: boolean;
@@ -10,23 +10,23 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
10
  declare const __VLS_export: _$vue.DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
11
11
  "update:modelValue": (value: string | undefined) => any;
12
12
  } & {
13
+ clear: () => any;
13
14
  "update:modelValue": (value: string) => any;
14
15
  change: (value: string) => any;
15
- clear: () => any;
16
16
  focus: () => any;
17
17
  blur: () => any;
18
18
  }, string, _$vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ onClear?: (() => any) | undefined;
19
20
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
20
21
  onChange?: ((value: string) => any) | undefined;
21
- onClear?: (() => any) | undefined;
22
22
  onFocus?: (() => any) | undefined;
23
23
  onBlur?: (() => any) | undefined;
24
24
  }>, {
25
25
  disabled: boolean;
26
- readonly: boolean;
27
- resize: boolean;
28
26
  placeholder: string;
29
27
  clearable: boolean;
28
+ readonly: boolean;
29
+ resize: boolean;
30
30
  autosize: boolean;
31
31
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
32
32
  declare const _default: typeof __VLS_export;
@@ -11,12 +11,12 @@ declare const __VLS_base: _$vue.DefineComponent<TipProps, {}, {}, {}, {}, _$vue.
11
11
  }, string, _$vue.PublicProps, Readonly<TipProps> & Readonly<{
12
12
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
13
13
  }>, {
14
+ direction: TipDirection;
14
15
  trigger: "hover" | "click";
15
16
  contentTag: string;
16
17
  visible: boolean;
17
- content: string;
18
- direction: TipDirection;
19
18
  alignment: TipAlign;
19
+ content: string;
20
20
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
21
21
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
22
  declare const _default: typeof __VLS_export;
@@ -7,25 +7,25 @@ type __VLS_Slots = {
7
7
  default: (props: TreeSlotsScope) => any;
8
8
  };
9
9
  declare const __VLS_base: _$vue.DefineComponent<TreeProps, _TreeExposed, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
10
+ "update:checked": (checked: any[], checkedData: Record<string, any>[]) => any;
11
+ "update:selected": (selected?: any, selectedData?: Record<string, any> | undefined, node?: TreeNode<Record<string, any>> | undefined) => any;
10
12
  expand: (node: TreeNode<Record<string, any>>) => any;
11
13
  "node-click": (node: TreeNode<Record<string, any>>) => any;
12
- "update:selected": (selected?: any, selectedData?: Record<string, any> | undefined, node?: TreeNode<Record<string, any>> | undefined) => any;
13
- "update:checked": (checked: any[], checkedData: Record<string, any>[]) => any;
14
14
  "node-contextmenu": (event: MouseEvent, node: TreeNode<Record<string, any>>) => any;
15
15
  "selected-synced": (selected?: Record<string, any> | undefined) => any;
16
16
  }, string, _$vue.PublicProps, Readonly<TreeProps> & Readonly<{
17
+ "onUpdate:checked"?: ((checked: any[], checkedData: Record<string, any>[]) => any) | undefined;
18
+ "onUpdate:selected"?: ((selected?: any, selectedData?: Record<string, any> | undefined, node?: TreeNode<Record<string, any>> | undefined) => any) | undefined;
17
19
  onExpand?: ((node: TreeNode<Record<string, any>>) => any) | undefined;
18
20
  "onNode-click"?: ((node: TreeNode<Record<string, any>>) => any) | undefined;
19
- "onUpdate:selected"?: ((selected?: any, selectedData?: Record<string, any> | undefined, node?: TreeNode<Record<string, any>> | undefined) => any) | undefined;
20
- "onUpdate:checked"?: ((checked: any[], checkedData: Record<string, any>[]) => any) | undefined;
21
21
  "onNode-contextmenu"?: ((event: MouseEvent, node: TreeNode<Record<string, any>>) => any) | undefined;
22
22
  "onSelected-synced"?: ((selected?: Record<string, any> | undefined) => any) | undefined;
23
23
  }>, {
24
+ data: Record<string, any>[];
24
25
  labelKey: string;
25
26
  valueKey: string;
26
- data: Record<string, any>[];
27
- expandOnClickNode: boolean;
28
27
  childrenKey: string;
28
+ expandOnClickNode: boolean;
29
29
  checkStrictly: boolean;
30
30
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
31
31
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -15,24 +15,24 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
15
15
  declare const __VLS_base: _$vue.DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
16
16
  "update:modelValue": (value: string | number | undefined) => any;
17
17
  } & {
18
- change: (value?: string | number | undefined, selectedData?: Record<string, any> | undefined) => any;
19
18
  clear: () => any;
19
+ change: (value?: string | number | undefined, selectedData?: Record<string, any> | undefined) => any;
20
20
  "update:text": (text?: string | undefined) => any;
21
21
  }, string, _$vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
+ onClear?: (() => any) | undefined;
22
23
  "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
23
24
  onChange?: ((value?: string | number | undefined, selectedData?: Record<string, any> | undefined) => any) | undefined;
24
- onClear?: (() => any) | undefined;
25
25
  "onUpdate:text"?: ((text?: string | undefined) => any) | undefined;
26
26
  }>, {
27
- labelKey: string;
28
- valueKey: string;
29
27
  disabled: boolean;
30
- readonly: boolean;
31
- minWidth: string;
32
28
  placeholder: string;
33
29
  clearable: boolean;
34
- expandAll: boolean;
30
+ readonly: boolean;
31
+ labelKey: string;
32
+ valueKey: string;
35
33
  filterable: boolean;
34
+ minWidth: string;
35
+ expandAll: boolean;
36
36
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
37
37
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
38
  declare const _default: typeof __VLS_export;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltra/desktop",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -25,13 +25,14 @@
25
25
  "check-types": "tsc -p tsconfig.json --noEmit"
26
26
  },
27
27
  "dependencies": {
28
- "@cat-kit/core": "^1.1.1",
28
+ "@cat-kit/core": "^1.1.3",
29
29
  "@cat-kit/excel": "^1.0.1",
30
30
  "@codemirror/lang-java": "^6.0.2",
31
31
  "@codemirror/lang-javascript": "^6.2.5",
32
32
  "@codemirror/lang-json": "^6.0.2",
33
33
  "@codemirror/lang-sql": "^6.10.0",
34
34
  "@codemirror/state": "^6.6.0",
35
+ "@codemirror/theme-one-dark": "^6.1.3",
35
36
  "@codemirror/view": "^6.41.1",
36
37
  "@embedpdf/core": "^2.14.1",
37
38
  "@embedpdf/engines": "^2.14.1",
@@ -47,22 +48,22 @@
47
48
  "@lexical/rich-text": "^0.43.0",
48
49
  "@lexical/selection": "^0.43.0",
49
50
  "@lexical/utils": "^0.43.0",
50
- "@veltra/compositions": "1.0.10",
51
- "@veltra/directives": "1.0.10",
52
- "@veltra/icons": "1.0.10",
53
- "@veltra/styles": "1.0.10",
54
- "@veltra/utils": "1.0.10",
51
+ "@veltra/compositions": "1.0.11",
52
+ "@veltra/directives": "1.0.11",
53
+ "@veltra/icons": "1.0.11",
54
+ "@veltra/styles": "1.0.11",
55
+ "@veltra/utils": "1.0.11",
55
56
  "@visactor/vtable": "^1.26.0",
56
57
  "codemirror": "^6.0.2",
57
58
  "docx-preview": "^0.3.7",
58
59
  "lexical": "^0.43.0"
59
60
  },
60
61
  "peerDependencies": {
61
- "@veltra/compositions": "1.0.10",
62
- "@veltra/directives": "1.0.10",
63
- "@veltra/icons": "1.0.10",
64
- "@veltra/styles": "1.0.10",
65
- "@veltra/utils": "1.0.10",
62
+ "@veltra/compositions": "1.0.11",
63
+ "@veltra/directives": "1.0.11",
64
+ "@veltra/icons": "1.0.11",
65
+ "@veltra/styles": "1.0.11",
66
+ "@veltra/utils": "1.0.11",
66
67
  "vue": "^3.5.33"
67
68
  }
68
69
  }
@@ -6,6 +6,7 @@
6
6
 
7
7
  <script lang="ts" setup>
8
8
  import { EditorState } from '@codemirror/state'
9
+ import { oneDark } from '@codemirror/theme-one-dark'
9
10
  import { tooltips } from '@codemirror/view'
10
11
  import { useFormComponent, useFormFallbackProps } from '@veltra/compositions'
11
12
  import { bem, zIndex } from '@veltra/utils'
@@ -56,6 +57,7 @@ async function renderEditor() {
56
57
 
57
58
  const extensions = [
58
59
  basicSetup,
60
+ oneDark,
59
61
  tooltips({
60
62
  parent: document.body
61
63
  }),