cosey 0.7.4 → 0.7.6

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 (167) hide show
  1. package/components/audio-card/audio-card.api.d.ts +1 -1
  2. package/components/audio-card/audio-card.d.ts +2 -2
  3. package/components/audio-card/index.d.ts +3 -3
  4. package/components/config-provider/config-provider.js +11 -4
  5. package/components/config-provider/override-element-plus.js +19 -7
  6. package/components/copy/copy.api.d.ts +6 -1
  7. package/components/copy/copy.api.js +4 -0
  8. package/components/copy/copy.d.ts +11 -1
  9. package/components/copy/copy.js +1 -0
  10. package/components/copy/index.d.ts +21 -3
  11. package/components/editor/editor.js +1 -1
  12. package/components/field/components/number-range/number-range.d.ts +3 -3
  13. package/components/field/components/number-range/number-range.vue.js +1 -1
  14. package/components/field/components/radio-group/radio-group.d.ts +1 -1
  15. package/components/field/field.api.d.ts +1 -0
  16. package/components/field/field.api.js +1 -0
  17. package/components/field/index.js +1 -0
  18. package/components/file-card/file-card.api.d.ts +1 -1
  19. package/components/file-card/file-card.d.ts +2 -2
  20. package/components/file-card/index.d.ts +3 -3
  21. package/components/form/form-item.api.d.ts +2 -1
  22. package/components/form/form-item.api.js +2 -1
  23. package/components/form/form-item.vue.js +4 -4
  24. package/components/form/index.d.ts +1 -1
  25. package/components/form/useBubbleTemplate.d.ts +3 -1
  26. package/components/form/useBubbleTemplate.js +1 -1
  27. package/components/form-dialog/form-dialog.api.d.ts +237 -0
  28. package/components/form-dialog/form-dialog.api.js +53 -0
  29. package/components/form-dialog/form-dialog.d.ts +221 -59
  30. package/components/form-dialog/form-dialog.js +53 -46
  31. package/components/form-dialog/index.d.ts +2 -2
  32. package/components/form-dialog/index.js +2 -2
  33. package/components/form-dialog/useFormDialogWidth.d.ts +1 -1
  34. package/components/form-dialog/useFormDialogWidth.js +1 -1
  35. package/components/form-drawer/form-drawer.api.d.ts +226 -0
  36. package/components/form-drawer/form-drawer.api.js +26 -0
  37. package/components/form-drawer/form-drawer.d.ts +273 -43
  38. package/components/form-drawer/form-drawer.js +54 -11
  39. package/components/form-drawer/index.d.ts +44 -76
  40. package/components/form-drawer/index.js +2 -2
  41. package/components/form-group/form-group.api.d.ts +73 -0
  42. package/components/form-group/form-group.api.js +41 -0
  43. package/components/form-group/form-group.d.ts +143 -14
  44. package/components/form-group/form-group.js +69 -0
  45. package/components/{input-number-range/style/index.d.ts → form-group/form-group.style.d.ts} +1 -1
  46. package/components/form-group/{style/index.js → form-group.style.js} +2 -2
  47. package/components/form-group/index.d.ts +230 -22
  48. package/components/form-group/index.js +2 -1
  49. package/components/form-list/form-list.api.d.ts +1 -0
  50. package/components/form-query/form-query.api.js +1 -1
  51. package/components/image-card/image-card.api.d.ts +1 -1
  52. package/components/image-card/image-card.d.ts +2 -2
  53. package/components/image-card/index.d.ts +3 -3
  54. package/components/index.js +8 -6
  55. package/components/input-number-range/index.d.ts +118 -15
  56. package/components/input-number-range/index.js +2 -2
  57. package/components/input-number-range/input-number-range.api.d.ts +43 -0
  58. package/components/input-number-range/input-number-range.api.js +44 -0
  59. package/components/input-number-range/input-number-range.d.ts +79 -24
  60. package/components/input-number-range/input-number-range.js +109 -4
  61. package/components/{long-text/style/index.d.ts → input-number-range/input-number-range.style.d.ts} +1 -1
  62. package/components/input-number-range/{style/index.js → input-number-range.style.js} +1 -1
  63. package/components/long-text/index.d.ts +63 -17
  64. package/components/long-text/index.js +2 -2
  65. package/components/long-text/long-text.api.d.ts +23 -0
  66. package/components/long-text/long-text.api.js +20 -0
  67. package/components/long-text/long-text.d.ts +38 -14
  68. package/components/long-text/long-text.js +56 -6
  69. package/components/{scroll-view/style/index.d.ts → long-text/long-text.style.d.ts} +1 -1
  70. package/components/long-text/{style/index.js → long-text.style.js} +2 -2
  71. package/components/media-card/index.d.ts +3 -3
  72. package/components/media-card/media-card.api.d.ts +2 -2
  73. package/components/media-card/media-card.d.ts +2 -2
  74. package/components/media-card/media-card.style.js +2 -1
  75. package/components/panel/panel.api.d.ts +2 -5
  76. package/components/remote-select/index.d.ts +6 -6
  77. package/components/remote-select/remote-select.api.d.ts +1 -1
  78. package/components/remote-select/remote-select.d.ts +2 -2
  79. package/components/remote-select/remote-select.js +1 -1
  80. package/components/scroll-view/index.d.ts +5 -5
  81. package/components/scroll-view/scroll-view.style.d.ts +4 -0
  82. package/components/scroll-view/{style/index.js → scroll-view.style.js} +1 -1
  83. package/components/scroll-view/scroll-view.vue.d.ts +1 -1
  84. package/components/scroll-view/scroll-view.vue.js +1 -1
  85. package/components/stack-dialog/index.d.ts +609 -4
  86. package/components/stack-dialog/index.js +2 -2
  87. package/components/stack-dialog/stack-dialog.api.d.ts +200 -0
  88. package/components/stack-dialog/stack-dialog.api.js +65 -0
  89. package/components/stack-dialog/stack-dialog.d.ts +204 -30
  90. package/components/stack-dialog/stack-dialog.js +67 -59
  91. package/components/svga-card/index.d.ts +3 -3
  92. package/components/svga-card/svga-card.api.d.ts +1 -1
  93. package/components/svga-card/svga-card.d.ts +2 -2
  94. package/components/table/index.d.ts +4 -4
  95. package/components/table/index.js +1 -1
  96. package/components/table/table-column/renderer.js +1 -1
  97. package/components/table/table-column/table-column.d.ts +3 -3
  98. package/components/table/table-column-editor/table-column-editor.api.d.ts +17 -0
  99. package/components/table/table-column-editor/table-column-editor.api.js +15 -0
  100. package/components/table/table-column-editor/table-column-editor.d.ts +26 -11
  101. package/components/table/table-column-editor/table-column-editor.js +154 -4
  102. package/components/table/table-export/item.d.ts +15 -0
  103. package/components/table/table-export/item.js +37 -0
  104. package/components/table/table-export/list.d.ts +15 -0
  105. package/components/table/table-export/list.js +27 -0
  106. package/components/table/table-export/table-export.api.d.ts +208 -0
  107. package/components/table/table-export/table-export.api.js +32 -0
  108. package/components/table/table-export/table-export.d.ts +262 -35
  109. package/components/table/table-export/table-export.js +238 -26
  110. package/components/table/table-export/{style/index.js → table-export.style.js} +1 -1
  111. package/components/table/table-query/table-query.api.d.ts +172 -0
  112. package/components/table/table-query/table-query.api.js +31 -0
  113. package/components/table/table-query/table-query.d.ts +207 -44
  114. package/components/table/table-query/table-query.js +84 -24
  115. package/components/table/table-stats/table-stats.api.d.ts +17 -0
  116. package/components/table/table-stats/table-stats.api.js +12 -0
  117. package/components/table/table-stats/table-stats.d.ts +23 -14
  118. package/components/table/table-stats/table-stats.js +37 -5
  119. package/components/table/table.d.ts +2 -2
  120. package/components/table/table.js +1 -1
  121. package/components/table/table.vue.d.ts +2 -2
  122. package/components/table/table.vue.js +10 -9
  123. package/components/theme/getGlobalStyleHook.js +2 -22
  124. package/components/transition-group/index.d.ts +3 -3
  125. package/components/transition-group/transition-group.d.ts +1 -1
  126. package/components/upload/upload.js +1 -1
  127. package/components/video-card/index.d.ts +3 -3
  128. package/components/video-card/video-card.api.d.ts +1 -1
  129. package/components/video-card/video-card.d.ts +2 -2
  130. package/config/root-config-provider.js +1 -1
  131. package/hooks/useColorScheme.d.ts +2 -2
  132. package/hooks/useColorScheme.js +1 -1
  133. package/index.js +7 -2
  134. package/layout/layout-header/style/index.js +1 -1
  135. package/package.json +4 -5
  136. package/router/index.d.ts +1 -0
  137. package/router/index.js +4 -3
  138. package/types/helper.d.ts +8 -0
  139. package/utils/index.js +1 -0
  140. package/utils/warning.d.ts +2 -0
  141. package/utils/warning.js +2 -0
  142. package/components/form-dialog/form-dialog.vue.js +0 -63
  143. package/components/form-drawer/form-drawer.vue.d.ts +0 -482
  144. package/components/form-drawer/form-drawer.vue.js +0 -64
  145. package/components/form-group/form-group.vue.d.ts +0 -19
  146. package/components/form-group/form-group.vue.js +0 -139
  147. package/components/input-number-range/input-number-range.vue.d.ts +0 -18
  148. package/components/input-number-range/input-number-range.vue.js +0 -166
  149. package/components/long-text/long-text.vue.d.ts +0 -14
  150. package/components/long-text/long-text.vue.js +0 -94
  151. package/components/stack-dialog/stack-dialog.vue.js +0 -75
  152. package/components/table/table-column-editor/table-column-editor.vue.d.ts +0 -22
  153. package/components/table/table-column-editor/table-column-editor.vue.js +0 -188
  154. package/components/table/table-export/item.vue.d.ts +0 -7
  155. package/components/table/table-export/item.vue.js +0 -41
  156. package/components/table/table-export/list.vue.d.ts +0 -7
  157. package/components/table/table-export/list.vue.js +0 -32
  158. package/components/table/table-export/style/index.d.ts +0 -4
  159. package/components/table/table-export/table-export.vue.d.ts +0 -428
  160. package/components/table/table-export/table-export.vue.js +0 -250
  161. package/components/table/table-query/table-query.vue.d.ts +0 -349
  162. package/components/table/table-query/table-query.vue.js +0 -92
  163. package/components/table/table-stats/table-stats.vue.d.ts +0 -6
  164. package/components/table/table-stats/table-stats.vue.js +0 -52
  165. /package/components/scroll-view/{scroll-view.d.ts → scroll-view.api.d.ts} +0 -0
  166. /package/components/scroll-view/{scroll-view.js → scroll-view.api.js} +0 -0
  167. /package/components/{form-group/style/index.d.ts → table/table-export/table-export.style.d.ts} +0 -0
@@ -1,25 +1,80 @@
1
- export interface InputNumberRangeProps {
2
- modelValue?: number[];
3
- min?: number;
4
- max?: number;
5
- step?: number;
6
- stepStrictly?: boolean;
7
- precision?: number;
8
- startPlaceholder?: string;
9
- endPlaceholder?: string;
10
- readonly?: boolean;
11
- disabled?: boolean;
12
- validateEvent?: boolean;
13
- }
14
- export declare const defaultInputNumberRangeProps: {
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ modelValue: {
3
+ type: import("vue").PropType<number[]>;
4
+ };
5
+ min: {
6
+ type: import("vue").PropType<number>;
7
+ };
8
+ max: {
9
+ type: import("vue").PropType<number>;
10
+ };
11
+ step: {
12
+ type: import("vue").PropType<number>;
13
+ };
14
+ stepStrictly: {
15
+ type: import("vue").PropType<boolean>;
16
+ };
17
+ precision: {
18
+ type: import("vue").PropType<number>;
19
+ };
20
+ startPlaceholder: {
21
+ type: import("vue").PropType<string>;
22
+ };
23
+ endPlaceholder: {
24
+ type: import("vue").PropType<string>;
25
+ };
26
+ readonly: {
27
+ type: import("vue").PropType<boolean>;
28
+ };
29
+ disabled: {
30
+ type: import("vue").PropType<boolean>;
31
+ };
32
+ validateEvent: {
33
+ type: import("vue").PropType<boolean>;
34
+ default: boolean;
35
+ };
36
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
+ 'update:modelValue': (value: number[] | undefined) => boolean;
38
+ change: (value: number[] | undefined) => boolean;
39
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
+ modelValue: {
41
+ type: import("vue").PropType<number[]>;
42
+ };
43
+ min: {
44
+ type: import("vue").PropType<number>;
45
+ };
46
+ max: {
47
+ type: import("vue").PropType<number>;
48
+ };
49
+ step: {
50
+ type: import("vue").PropType<number>;
51
+ };
52
+ stepStrictly: {
53
+ type: import("vue").PropType<boolean>;
54
+ };
55
+ precision: {
56
+ type: import("vue").PropType<number>;
57
+ };
58
+ startPlaceholder: {
59
+ type: import("vue").PropType<string>;
60
+ };
61
+ endPlaceholder: {
62
+ type: import("vue").PropType<string>;
63
+ };
64
+ readonly: {
65
+ type: import("vue").PropType<boolean>;
66
+ };
67
+ disabled: {
68
+ type: import("vue").PropType<boolean>;
69
+ };
70
+ validateEvent: {
71
+ type: import("vue").PropType<boolean>;
72
+ default: boolean;
73
+ };
74
+ }>> & Readonly<{
75
+ onChange?: ((value: number[] | undefined) => any) | undefined;
76
+ "onUpdate:modelValue"?: ((value: number[] | undefined) => any) | undefined;
77
+ }>, {
15
78
  validateEvent: boolean;
16
- };
17
- export interface InputNumberRangeSlots {
18
- default?: (props: Record<string, never>) => any;
19
- }
20
- export interface InputNumberRangeEmits {
21
- (e: 'update:modelValue', value: number[] | undefined): void;
22
- (e: 'change', value: number[] | undefined): void;
23
- }
24
- export interface InputNumberRangeExpose {
25
- }
79
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
80
+ export default _default;
@@ -1,5 +1,110 @@
1
- const defaultInputNumberRangeProps = {
2
- validateEvent: true
3
- };
1
+ import { defineComponent, ref, watch, createVNode, createTextVNode } from 'vue';
2
+ import { inputNumberRangeEmits, inputNumberRangeProps } from './input-number-range.api.js';
3
+ import stdin_default$1 from './input-number-range.style.js';
4
+ import { useFormItem, CHANGE_EVENT, ElInputNumber } from 'element-plus';
5
+ import { isNullish } from '../../utils/is.js';
6
+ import { debugWarn } from 'element-plus/es/utils/error.mjs';
7
+ import { useComponentConfig } from '../config-provider/config-provider.api.js';
4
8
 
5
- export { defaultInputNumberRangeProps };
9
+ var stdin_default = defineComponent({
10
+ name: "CoInputNumberRange",
11
+ props: inputNumberRangeProps,
12
+ emits: inputNumberRangeEmits,
13
+ setup(props, {
14
+ emit
15
+ }) {
16
+ const {
17
+ prefixCls
18
+ } = useComponentConfig("input-number-range", props);
19
+ const {
20
+ hashId
21
+ } = stdin_default$1(prefixCls);
22
+ const {
23
+ formItem
24
+ } = useFormItem();
25
+ const start = ref(null);
26
+ const end = ref(null);
27
+ const innerValue = ref(props.modelValue);
28
+ watch([start, end], () => {
29
+ const startNil = isNullish(start.value);
30
+ const endNil = isNullish(end.value);
31
+ if (startNil && endNil || !startNil && !endNil) {
32
+ const value = startNil && endNil ? void 0 : [start.value, end.value];
33
+ if (value !== innerValue.value) {
34
+ innerValue.value = value;
35
+ emit("update:modelValue", value);
36
+ emit("change", value);
37
+ }
38
+ }
39
+ });
40
+ watch(() => props.modelValue, () => {
41
+ if (props.validateEvent) {
42
+ formItem?.validate?.(CHANGE_EVENT).catch(err => debugWarn(err));
43
+ }
44
+ });
45
+ watch(() => props.modelValue, newValue => {
46
+ if (innerValue.value !== newValue) {
47
+ innerValue.value = newValue;
48
+ if (!newValue) {
49
+ start.value = null;
50
+ end.value = null;
51
+ } else {
52
+ const [startValue, endValue] = newValue.map(item => {
53
+ item = +item;
54
+ return Number.isNaN(item) ? null : item;
55
+ });
56
+ start.value = startValue;
57
+ end.value = endValue;
58
+ }
59
+ }
60
+ });
61
+ const isFocused = ref(false);
62
+ const onFocusIn = () => {
63
+ isFocused.value = true;
64
+ };
65
+ const onFocusOut = () => {
66
+ isFocused.value = false;
67
+ };
68
+ return () => {
69
+ return createVNode("div", {
70
+ "class": [hashId.value, prefixCls.value, {
71
+ "is-focus": isFocused.value
72
+ }, "el-input__wrapper"],
73
+ "onFocusin": onFocusIn,
74
+ "onFocusout": onFocusOut
75
+ }, [createVNode("div", {
76
+ "class": `${prefixCls.value}-start`
77
+ }, [createVNode(ElInputNumber, {
78
+ "modelValue": start.value,
79
+ "onUpdate:modelValue": $event => start.value = $event,
80
+ "min": props.min,
81
+ "max": props.max,
82
+ "step": props.step,
83
+ "stepStrictly": props.stepStrictly,
84
+ "precision": props.precision,
85
+ "controls": false,
86
+ "readonly": props.readonly,
87
+ "disabled": props.disabled,
88
+ "placeholder": props.startPlaceholder
89
+ }, null)]), createVNode("div", {
90
+ "class": `${prefixCls.value}-separator`
91
+ }, [createTextVNode("-")]), createVNode("div", {
92
+ "class": `${prefixCls.value}-end`
93
+ }, [createVNode(ElInputNumber, {
94
+ "modelValue": end.value,
95
+ "onUpdate:modelValue": $event => end.value = $event,
96
+ "min": props.min,
97
+ "max": props.max,
98
+ "step": props.step,
99
+ "stepStrictly": props.stepStrictly,
100
+ "precision": props.precision,
101
+ "controls": false,
102
+ "readonly": props.readonly,
103
+ "disabled": props.disabled,
104
+ "placeholder": props.endPlaceholder
105
+ }, null)])]);
106
+ };
107
+ }
108
+ });
109
+
110
+ export { stdin_default as default };
@@ -1,4 +1,4 @@
1
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../theme/theme-context").ThemeManager) => {
2
2
  hashId: import("vue").Ref<string, string>;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { getSimpleStyleHook } from '../../theme/getSimpleStyleHook.js';
1
+ import { getSimpleStyleHook } from '../theme/getSimpleStyleHook.js';
2
2
 
3
3
  var stdin_default = getSimpleStyleHook("CoInputNumberRange", (token) => {
4
4
  const { componentCls } = token;
@@ -1,30 +1,76 @@
1
- export * from './long-text';
1
+ export * from './long-text.api';
2
2
  declare const _LongText: {
3
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./long-text").LongTextProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
4
- maxHeight: number | string;
5
- maxWidth: number | string;
6
- rows: number | string;
7
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
3
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
4
+ text: {
5
+ type: StringConstructor;
6
+ };
7
+ rows: {
8
+ type: (NumberConstructor | StringConstructor)[];
9
+ default: number;
10
+ };
11
+ maxWidth: {
12
+ type: (NumberConstructor | StringConstructor)[];
13
+ default: number;
14
+ };
15
+ maxHeight: {
16
+ type: (NumberConstructor | StringConstructor)[];
17
+ default: number;
18
+ };
19
+ }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
20
+ maxHeight: string | number;
21
+ maxWidth: string | number;
22
+ rows: string | number;
23
+ }, true, {}, import("vue").SlotsType<import("./long-text.api").LongTextSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
8
24
  P: {};
9
25
  B: {};
10
26
  D: {};
11
27
  C: {};
12
28
  M: {};
13
29
  Defaults: {};
14
- }, Readonly<import("./long-text").LongTextProps> & Readonly<{}>, {}, {}, {}, {}, {
15
- maxHeight: number | string;
16
- maxWidth: number | string;
17
- rows: number | string;
30
+ }, Readonly<import("vue").ExtractPropTypes<{
31
+ text: {
32
+ type: StringConstructor;
33
+ };
34
+ rows: {
35
+ type: (NumberConstructor | StringConstructor)[];
36
+ default: number;
37
+ };
38
+ maxWidth: {
39
+ type: (NumberConstructor | StringConstructor)[];
40
+ default: number;
41
+ };
42
+ maxHeight: {
43
+ type: (NumberConstructor | StringConstructor)[];
44
+ default: number;
45
+ };
46
+ }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
47
+ maxHeight: string | number;
48
+ maxWidth: string | number;
49
+ rows: string | number;
18
50
  }>;
19
51
  __isFragment?: never;
20
52
  __isTeleport?: never;
21
53
  __isSuspense?: never;
22
- } & import("vue").ComponentOptionsBase<Readonly<import("./long-text").LongTextProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
23
- maxHeight: number | string;
24
- maxWidth: number | string;
25
- rows: number | string;
26
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
27
- $slots: import("./long-text").LongTextSlots;
28
- }) & import("vue").Plugin;
54
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
55
+ text: {
56
+ type: StringConstructor;
57
+ };
58
+ rows: {
59
+ type: (NumberConstructor | StringConstructor)[];
60
+ default: number;
61
+ };
62
+ maxWidth: {
63
+ type: (NumberConstructor | StringConstructor)[];
64
+ default: number;
65
+ };
66
+ maxHeight: {
67
+ type: (NumberConstructor | StringConstructor)[];
68
+ default: number;
69
+ };
70
+ }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
71
+ maxHeight: string | number;
72
+ maxWidth: string | number;
73
+ rows: string | number;
74
+ }, {}, string, import("vue").SlotsType<import("./long-text.api").LongTextSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
29
75
  export { _LongText as LongText };
30
76
  export default _LongText;
@@ -1,6 +1,6 @@
1
1
  import { withInstall } from '../utils.js';
2
- import stdin_default$1 from './long-text.vue.js';
3
- export { defaultLongTextProps } from './long-text.js';
2
+ import stdin_default$1 from './long-text.js';
3
+ export { longTextProps, longTextSlots } from './long-text.api.js';
4
4
 
5
5
  const _LongText = withInstall(stdin_default$1);
6
6
  var stdin_default = _LongText;
@@ -0,0 +1,23 @@
1
+ import type { ExtractPropTypes, SlotsType } from 'vue';
2
+ export declare const longTextProps: {
3
+ text: {
4
+ type: StringConstructor;
5
+ };
6
+ rows: {
7
+ type: (NumberConstructor | StringConstructor)[];
8
+ default: number;
9
+ };
10
+ maxWidth: {
11
+ type: (NumberConstructor | StringConstructor)[];
12
+ default: number;
13
+ };
14
+ maxHeight: {
15
+ type: (NumberConstructor | StringConstructor)[];
16
+ default: number;
17
+ };
18
+ };
19
+ export type LongTextProps = ExtractPropTypes<typeof longTextProps>;
20
+ export interface LongTextSlots {
21
+ default: {};
22
+ }
23
+ export declare const longTextSlots: SlotsType<LongTextSlots>;
@@ -0,0 +1,20 @@
1
+ const longTextProps = {
2
+ text: {
3
+ type: String
4
+ },
5
+ rows: {
6
+ type: [String, Number],
7
+ default: 3
8
+ },
9
+ maxWidth: {
10
+ type: [String, Number],
11
+ default: 690
12
+ },
13
+ maxHeight: {
14
+ type: [String, Number],
15
+ default: 320
16
+ }
17
+ };
18
+ const longTextSlots = Object;
19
+
20
+ export { longTextProps, longTextSlots };
@@ -1,14 +1,38 @@
1
- export interface LongTextProps {
2
- text?: string;
3
- rows?: number | string;
4
- maxWidth?: number | string;
5
- maxHeight?: number | string;
6
- }
7
- export declare const defaultLongTextProps: {
8
- rows: number;
9
- maxHeight: number;
10
- maxWidth: number;
11
- };
12
- export interface LongTextSlots {
13
- default?: (props: Record<string, never>) => any;
14
- }
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ text: {
3
+ type: StringConstructor;
4
+ };
5
+ rows: {
6
+ type: (NumberConstructor | StringConstructor)[];
7
+ default: number;
8
+ };
9
+ maxWidth: {
10
+ type: (NumberConstructor | StringConstructor)[];
11
+ default: number;
12
+ };
13
+ maxHeight: {
14
+ type: (NumberConstructor | StringConstructor)[];
15
+ default: number;
16
+ };
17
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
+ text: {
19
+ type: StringConstructor;
20
+ };
21
+ rows: {
22
+ type: (NumberConstructor | StringConstructor)[];
23
+ default: number;
24
+ };
25
+ maxWidth: {
26
+ type: (NumberConstructor | StringConstructor)[];
27
+ default: number;
28
+ };
29
+ maxHeight: {
30
+ type: (NumberConstructor | StringConstructor)[];
31
+ default: number;
32
+ };
33
+ }>> & Readonly<{}>, {
34
+ maxHeight: string | number;
35
+ maxWidth: string | number;
36
+ rows: string | number;
37
+ }, import("vue").SlotsType<import("./long-text.api").LongTextSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
38
+ export default _default;
@@ -1,7 +1,57 @@
1
- const defaultLongTextProps = {
2
- rows: 3,
3
- maxHeight: 320,
4
- maxWidth: 690
5
- };
1
+ import { defineComponent, computed, createVNode } from 'vue';
2
+ import { ElTooltip, ElScrollbar } from 'element-plus';
3
+ import { longTextSlots, longTextProps } from './long-text.api.js';
4
+ import stdin_default$1 from './long-text.style.js';
5
+ import stdin_default$2 from '../copy/index.js';
6
+ import { addPxUnit } from '../../utils/css.js';
7
+ import { useComponentConfig } from '../config-provider/config-provider.api.js';
6
8
 
7
- export { defaultLongTextProps };
9
+ var stdin_default = defineComponent({
10
+ name: "CoLongText",
11
+ props: longTextProps,
12
+ slots: longTextSlots,
13
+ setup(props, {
14
+ slots
15
+ }) {
16
+ const {
17
+ prefixCls
18
+ } = useComponentConfig("long-text");
19
+ const {
20
+ hashId
21
+ } = stdin_default$1(prefixCls);
22
+ const textStyle = computed(() => {
23
+ return {
24
+ "-webkit-line-clamp": props.rows
25
+ };
26
+ });
27
+ return () => {
28
+ return createVNode(ElTooltip, {
29
+ "placement": "top",
30
+ "showAfter": 200
31
+ }, {
32
+ default: () => createVNode("div", {
33
+ "class": [hashId.value, prefixCls.value],
34
+ "style": textStyle.value
35
+ }, [props.text || slots.default?.({})]),
36
+ content: () => createVNode("div", {
37
+ "class": [hashId.value, `${prefixCls.value}-tooltip`]
38
+ }, [createVNode(ElScrollbar, {
39
+ "class": `${prefixCls.value}-scrollbar`,
40
+ "maxHeight": props.maxHeight,
41
+ "style": {
42
+ maxWidth: addPxUnit(props.maxWidth)
43
+ },
44
+ "always": true
45
+ }, {
46
+ default: () => [props.text || slots.default?.({})]
47
+ }), createVNode(stdin_default$2, {
48
+ "text": props.text,
49
+ "color": "inherit",
50
+ "class": `${prefixCls.value}-copy`
51
+ }, null)])
52
+ });
53
+ };
54
+ }
55
+ });
56
+
57
+ export { stdin_default as default };
@@ -1,4 +1,4 @@
1
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../theme/theme-context").ThemeManager) => {
2
2
  hashId: import("vue").Ref<string, string>;
3
3
  };
4
4
  export default _default;
@@ -1,5 +1,5 @@
1
- import { getSimpleStyleHook } from '../../theme/getSimpleStyleHook.js';
2
- import { getLineClampStyle } from '../../style/mixins.js';
1
+ import { getSimpleStyleHook } from '../theme/getSimpleStyleHook.js';
2
+ import { getLineClampStyle } from '../style/mixins.js';
3
3
 
4
4
  var stdin_default = getSimpleStyleHook("CoLongText", (token) => {
5
5
  const { componentCls } = token;
@@ -12,7 +12,7 @@ declare const _MediaCard: {
12
12
  type: StringConstructor;
13
13
  };
14
14
  type: {
15
- type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
15
+ type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
16
16
  };
17
17
  title: {
18
18
  type: StringConstructor;
@@ -41,7 +41,7 @@ declare const _MediaCard: {
41
41
  type: StringConstructor;
42
42
  };
43
43
  type: {
44
- type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
44
+ type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
45
45
  };
46
46
  title: {
47
47
  type: StringConstructor;
@@ -67,7 +67,7 @@ declare const _MediaCard: {
67
67
  type: StringConstructor;
68
68
  };
69
69
  type: {
70
- type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
70
+ type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
71
71
  };
72
72
  title: {
73
73
  type: StringConstructor;
@@ -11,7 +11,7 @@ export declare const mediaCardBaseProps: {
11
11
  type: StringConstructor;
12
12
  };
13
13
  type: {
14
- type: PropType<"image" | "video" | "audio" | (string & {})>;
14
+ type: PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
15
15
  };
16
16
  title: {
17
17
  type: StringConstructor;
@@ -34,7 +34,7 @@ export declare const mediaCardProps: {
34
34
  type: StringConstructor;
35
35
  };
36
36
  type: {
37
- type: PropType<"image" | "video" | "audio" | (string & {})>;
37
+ type: PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
38
38
  };
39
39
  title: {
40
40
  type: StringConstructor;
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
10
10
  type: StringConstructor;
11
11
  };
12
12
  type: {
13
- type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
13
+ type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
14
14
  };
15
15
  title: {
16
16
  type: StringConstructor;
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
30
30
  type: StringConstructor;
31
31
  };
32
32
  type: {
33
- type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
33
+ type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
34
34
  };
35
35
  title: {
36
36
  type: StringConstructor;
@@ -46,7 +46,8 @@ const getMediaCardFileNameStyle = (token) => {
46
46
  fontSize: token.fontSizeSM,
47
47
  lineHeight: 1.12,
48
48
  textAlign: "center",
49
- ...getLineClampStyle(2)
49
+ ...getLineClampStyle(2),
50
+ WebkitAlignContent: "center"
50
51
  },
51
52
  "&:is(.is-mini, .is-small)": {
52
53
  [`${componentCls}-filename`]: {
@@ -1,8 +1,4 @@
1
- import type { SlotsType } from 'vue';
2
- export interface PanelProps {
3
- maxHeight?: string | number;
4
- header?: string | number;
5
- }
1
+ import type { ExtractPropTypes, SlotsType } from 'vue';
6
2
  export declare const panelProps: {
7
3
  maxHeight: {
8
4
  type: (NumberConstructor | StringConstructor)[];
@@ -11,6 +7,7 @@ export declare const panelProps: {
11
7
  type: (NumberConstructor | StringConstructor)[];
12
8
  };
13
9
  };
10
+ export type PanelProps = ExtractPropTypes<typeof panelProps>;
14
11
  export interface PanelSlots {
15
12
  default?: {};
16
13
  header?: {};
@@ -436,13 +436,13 @@ declare const _RemoteSelect: {
436
436
  pagination: boolean | import("element-plus").PaginationProps;
437
437
  modelValue: (string | number | boolean | Record<string, any>) | (string | number | boolean | Record<string, any>)[] | null;
438
438
  popperClass: string;
439
- validateEvent: boolean;
440
- tabindex: string | number;
441
439
  showArrow: boolean;
442
440
  persistent: boolean;
443
441
  effect: import("element-plus").PopperEffect;
444
442
  fallbackPlacements: Placement[];
445
443
  popperOptions: any;
444
+ tabindex: string | number;
445
+ validateEvent: boolean;
446
446
  valueKey: string;
447
447
  fitInputWidth: boolean;
448
448
  autocomplete: string;
@@ -892,13 +892,13 @@ declare const _RemoteSelect: {
892
892
  pagination: boolean | import("element-plus").PaginationProps;
893
893
  modelValue: (string | number | boolean | Record<string, any>) | (string | number | boolean | Record<string, any>)[] | null;
894
894
  popperClass: string;
895
- validateEvent: boolean;
896
- tabindex: string | number;
897
895
  showArrow: boolean;
898
896
  persistent: boolean;
899
897
  effect: import("element-plus").PopperEffect;
900
898
  fallbackPlacements: Placement[];
901
899
  popperOptions: any;
900
+ tabindex: string | number;
901
+ validateEvent: boolean;
902
902
  valueKey: string;
903
903
  fitInputWidth: boolean;
904
904
  autocomplete: string;
@@ -1215,13 +1215,13 @@ declare const _RemoteSelect: {
1215
1215
  pagination: boolean | import("element-plus").PaginationProps;
1216
1216
  modelValue: (string | number | boolean | Record<string, any>) | (string | number | boolean | Record<string, any>)[] | null;
1217
1217
  popperClass: string;
1218
- validateEvent: boolean;
1219
- tabindex: string | number;
1220
1218
  showArrow: boolean;
1221
1219
  persistent: boolean;
1222
1220
  effect: import("element-plus").PopperEffect;
1223
1221
  fallbackPlacements: Placement[];
1224
1222
  popperOptions: any;
1223
+ tabindex: string | number;
1224
+ validateEvent: boolean;
1225
1225
  valueKey: string;
1226
1226
  fitInputWidth: boolean;
1227
1227
  autocomplete: string;