@webx-ui/core 0.43.0 → 0.45.0

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 (45) hide show
  1. package/dist/CodeEditor-MaAGoziu.js +428 -0
  2. package/dist/CodeEditor-MaAGoziu.js.map +1 -0
  3. package/dist/RichText-CoaDjyK5.js +845 -0
  4. package/dist/RichText-CoaDjyK5.js.map +1 -0
  5. package/dist/components/Action/Action.d.ts +4 -1
  6. package/dist/components/Action/types.d.ts +9 -0
  7. package/dist/components/Autocomplete/Autocomplete.d.ts +2 -2
  8. package/dist/components/Button/Button.d.ts +1 -1
  9. package/dist/components/Cascader/Cascader.d.ts +1 -1
  10. package/dist/components/CodeEditor/index.d.ts +2 -0
  11. package/dist/components/CodeEditor/languageCompletions.d.ts +8 -0
  12. package/dist/components/CodeEditor/types.d.ts +13 -0
  13. package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
  14. package/dist/components/DatePicker/DatePicker.d.ts +1 -1
  15. package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
  16. package/dist/components/DateTimePicker/DateTimePicker.d.ts +1 -1
  17. package/dist/components/Dropdown/Dropdown.d.ts +1 -1
  18. package/dist/components/DropdownItem/DropdownItem.d.ts +1 -1
  19. package/dist/components/FileCard/FileCard.d.ts +10 -10
  20. package/dist/components/IconPicker/IconPicker.d.ts +1 -1
  21. package/dist/components/ImageEditor/ImageEditor.d.ts +2 -2
  22. package/dist/components/Input/Input.d.ts +2 -2
  23. package/dist/components/InputNumber/InputNumber.d.ts +1 -1
  24. package/dist/components/Popconfirm/Popconfirm.d.ts +9 -5
  25. package/dist/components/Rate/Rate.d.ts +1 -1
  26. package/dist/components/RichText/RichText.d.ts +4 -1
  27. package/dist/components/RichText/index.d.ts +11 -3
  28. package/dist/components/RichText/types.d.ts +10 -1
  29. package/dist/components/Segmented/Segmented.d.ts +1 -1
  30. package/dist/components/Select/Select.d.ts +1 -1
  31. package/dist/components/TagsInput/TagsInput.d.ts +1 -1
  32. package/dist/components/Textarea/Textarea.d.ts +1 -1
  33. package/dist/components/TimePicker/TimePicker.d.ts +1 -1
  34. package/dist/{index-CUqx8iDY.js → index-Ba5vX487.js} +5070 -5018
  35. package/dist/index-Ba5vX487.js.map +1 -0
  36. package/dist/index.js +1 -1
  37. package/dist/internal/ConfirmDialog.d.ts +2 -2
  38. package/dist/internal/ImageEditorDialog.d.ts +3 -3
  39. package/dist/style.css +1 -1
  40. package/package.json +2 -2
  41. package/dist/CodeEditor-pJLpkTNW.js +0 -333
  42. package/dist/CodeEditor-pJLpkTNW.js.map +0 -1
  43. package/dist/RichText-BJK1BVlM.js +0 -805
  44. package/dist/RichText-BJK1BVlM.js.map +0 -1
  45. package/dist/index-CUqx8iDY.js.map +0 -1
@@ -6,6 +6,7 @@ export declare const WxRichText: {
6
6
  "onUpdate:modelValue"?: ((value: import('./types').RichTextModelValue) => any) | undefined;
7
7
  onBlur?: (() => any) | undefined;
8
8
  onFocus?: (() => any) | undefined;
9
+ onExpand?: ((expanded: boolean) => any) | undefined;
9
10
  onUploadError?: ((error: unknown, file: File) => any) | undefined;
10
11
  }>, {
11
12
  editor: import('vue').ShallowRef<import('@tiptap/vue-3').Editor | undefined, import('@tiptap/vue-3').Editor | undefined>;
@@ -16,6 +17,7 @@ export declare const WxRichText: {
16
17
  "update:modelValue": (value: import('./types').RichTextModelValue) => any;
17
18
  blur: () => any;
18
19
  focus: () => any;
20
+ expand: (expanded: boolean) => any;
19
21
  uploadError: (error: unknown, file: File) => any;
20
22
  }, import('vue').PublicProps, {
21
23
  size: import('../..').ControlSize;
@@ -23,8 +25,8 @@ export declare const WxRichText: {
23
25
  placeholder: string;
24
26
  upload: import('./types').RichTextUpload;
25
27
  ariaLabel: string;
26
- status: import('../..').ControlStatus;
27
28
  id: string;
29
+ status: import('../..').ControlStatus;
28
30
  inline: boolean;
29
31
  readonly: boolean;
30
32
  minHeight: string;
@@ -36,6 +38,7 @@ export declare const WxRichText: {
36
38
  pickImage: import('./types').RichTextImagePicker;
37
39
  accept: string[];
38
40
  labels: import('./types').RichTextLabels;
41
+ expandable: boolean;
39
42
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
40
43
  rootRef: HTMLDivElement;
41
44
  fileInput: HTMLInputElement;
@@ -53,6 +56,7 @@ export declare const WxRichText: {
53
56
  "onUpdate:modelValue"?: ((value: import('./types').RichTextModelValue) => any) | undefined;
54
57
  onBlur?: (() => any) | undefined;
55
58
  onFocus?: (() => any) | undefined;
59
+ onExpand?: ((expanded: boolean) => any) | undefined;
56
60
  onUploadError?: ((error: unknown, file: File) => any) | undefined;
57
61
  }>, {
58
62
  editor: import('vue').ShallowRef<import('@tiptap/vue-3').Editor | undefined, import('@tiptap/vue-3').Editor | undefined>;
@@ -64,8 +68,8 @@ export declare const WxRichText: {
64
68
  placeholder: string;
65
69
  upload: import('./types').RichTextUpload;
66
70
  ariaLabel: string;
67
- status: import('../..').ControlStatus;
68
71
  id: string;
72
+ status: import('../..').ControlStatus;
69
73
  inline: boolean;
70
74
  readonly: boolean;
71
75
  minHeight: string;
@@ -77,6 +81,7 @@ export declare const WxRichText: {
77
81
  pickImage: import('./types').RichTextImagePicker;
78
82
  accept: string[];
79
83
  labels: import('./types').RichTextLabels;
84
+ expandable: boolean;
80
85
  }>;
81
86
  __isFragment?: never;
82
87
  __isTeleport?: never;
@@ -88,6 +93,7 @@ export declare const WxRichText: {
88
93
  "onUpdate:modelValue"?: ((value: import('./types').RichTextModelValue) => any) | undefined;
89
94
  onBlur?: (() => any) | undefined;
90
95
  onFocus?: (() => any) | undefined;
96
+ onExpand?: ((expanded: boolean) => any) | undefined;
91
97
  onUploadError?: ((error: unknown, file: File) => any) | undefined;
92
98
  }>, {
93
99
  editor: import('vue').ShallowRef<import('@tiptap/vue-3').Editor | undefined, import('@tiptap/vue-3').Editor | undefined>;
@@ -98,6 +104,7 @@ export declare const WxRichText: {
98
104
  "update:modelValue": (value: import('./types').RichTextModelValue) => any;
99
105
  blur: () => any;
100
106
  focus: () => any;
107
+ expand: (expanded: boolean) => any;
101
108
  uploadError: (error: unknown, file: File) => any;
102
109
  }, string, {
103
110
  size: import('../..').ControlSize;
@@ -105,8 +112,8 @@ export declare const WxRichText: {
105
112
  placeholder: string;
106
113
  upload: import('./types').RichTextUpload;
107
114
  ariaLabel: string;
108
- status: import('../..').ControlStatus;
109
115
  id: string;
116
+ status: import('../..').ControlStatus;
110
117
  inline: boolean;
111
118
  readonly: boolean;
112
119
  minHeight: string;
@@ -118,6 +125,7 @@ export declare const WxRichText: {
118
125
  pickImage: import('./types').RichTextImagePicker;
119
126
  accept: string[];
120
127
  labels: import('./types').RichTextLabels;
128
+ expandable: boolean;
121
129
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
122
130
  name: string;
123
131
  };
@@ -18,7 +18,9 @@ export type RichTextLabelKey = Exclude<RichTextTool, 'divider'> | RichTextTableT
18
18
  /** The accessible name of the toolbar itself. */
19
19
  | 'toolbar' | 'linkAddress' | 'youtubeAddress' | 'apply' | 'cancel' | 'uploading'
20
20
  /** The warning before the editor drops markup typed in the source, and its two answers. */
21
- | 'sourceLoss' | 'sourceDrop' | 'sourceKeep';
21
+ | 'sourceLoss' | 'sourceDrop' | 'sourceKeep'
22
+ /** The button that opens the editor over the whole window, and the same button once it is. */
23
+ | 'expand' | 'collapse';
22
24
  /**
23
25
  * What the editor calls its own buttons. It knows nothing about the panel it is opened in, so
24
26
  * whoever opens it translates it; a key left out stays English.
@@ -79,6 +81,11 @@ export interface RichTextProps extends LocalizedFieldProps, TokenFieldProps {
79
81
  accept?: string[];
80
82
  /** What the buttons and the link bar are called, for a panel that is not in English. */
81
83
  labels?: RichTextLabels;
84
+ /**
85
+ * Whether the toolbar offers to open the editor over the whole window. On by default for a
86
+ * document; an inline field is a line and never offers it.
87
+ */
88
+ expandable?: boolean;
82
89
  }
83
90
  export interface RichTextEmits {
84
91
  change: [html: string];
@@ -86,4 +93,6 @@ export interface RichTextEmits {
86
93
  blur: [];
87
94
  /** An upload rejected. The editor stays untouched. */
88
95
  uploadError: [error: unknown, file: File];
96
+ /** Opened over the whole window, or given back to the form (the button or Esc). */
97
+ expand: [expanded: boolean];
89
98
  }
@@ -32,8 +32,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
32
32
  size: import('../..').ControlSize;
33
33
  disabled: boolean;
34
34
  ariaLabel: string;
35
- options: SegmentedOption[];
36
35
  block: boolean;
36
+ options: SegmentedOption[];
37
37
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
38
38
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
39
  export default _default;
@@ -90,11 +90,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
90
90
  placeholder: string;
91
91
  teleport: boolean;
92
92
  ariaLabel: string;
93
+ id: string;
93
94
  options: import('./types').SelectOption[];
94
95
  emptyText: string;
95
96
  clearable: boolean;
96
97
  status: import('../..').ControlStatus;
97
- id: string;
98
98
  filterable: boolean;
99
99
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
100
100
  filterRef: ({
@@ -19,9 +19,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
19
19
  disabled: boolean;
20
20
  placeholder: string;
21
21
  ariaLabel: string;
22
+ id: string;
22
23
  emptyText: string;
23
24
  status: import('../..').ControlStatus;
24
- id: string;
25
25
  max: number;
26
26
  suggestions: string[];
27
27
  duplicates: boolean;
@@ -26,8 +26,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
26
26
  disabled: boolean;
27
27
  placeholder: string;
28
28
  ariaLabel: string;
29
- status: import('../..').ControlStatus;
30
29
  id: string;
30
+ status: import('../..').ControlStatus;
31
31
  resize: "none" | "vertical" | "both";
32
32
  readonly: boolean;
33
33
  localized: boolean;
@@ -28,9 +28,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
28
28
  placeholder: string;
29
29
  teleport: boolean | string;
30
30
  ariaLabel: string;
31
+ id: string;
31
32
  clearable: boolean;
32
33
  status: import('../..').ControlStatus;
33
- id: string;
34
34
  locale: string | import('../..').DateFnsLocale;
35
35
  format: string;
36
36
  readonly: boolean;