@farris/x-ui 0.6.4 → 0.6.5

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 (33) hide show
  1. package/assets/css/icons.css +1 -1
  2. package/assets/icon-preview.html +39 -2
  3. package/bubble/src/bubble.component.d.ts +3 -3
  4. package/calendar/index.d.ts +9 -0
  5. package/calendar/src/calendar.component.d.ts +22 -0
  6. package/calendar/src/calendar.props.d.ts +39 -0
  7. package/calendar/src/composition/calendar-date.d.ts +8 -0
  8. package/calendar/src/composition/calendar-lunar.d.ts +1 -0
  9. package/calendar/src/composition/calendar-swipe.d.ts +2 -0
  10. package/calendar/src/test/calendar.spec.d.ts +1 -0
  11. package/carousel/src/carousel.component.d.ts +4 -4
  12. package/carousel/src/components/carousel-item.component.d.ts +1 -1
  13. package/components.d.ts +2 -0
  14. package/confirm-dialog/src/confirm-dialog.component.d.ts +3 -3
  15. package/credential-auth-dialog/src/credential-auth-dialog.component.d.ts +2 -2
  16. package/dialog-shell/src/dialog-shell.component.d.ts +3 -3
  17. package/empty-state/src/empty-state.component.d.ts +3 -3
  18. package/farris.x-ui.esm.js +26710 -16233
  19. package/farris.x-ui.umd.cjs +125 -125
  20. package/generate-process/src/generate-process.component.d.ts +6 -6
  21. package/hitl-question/src/hitl-question.component.d.ts +12 -1
  22. package/hitl-question/src/types.d.ts +2 -0
  23. package/image-preview/src/image-preview.component.d.ts +4 -4
  24. package/index.css +1 -1
  25. package/list-view/src/components/list-view-item.component.d.ts +2 -2
  26. package/list-view/src/list-view.component.d.ts +6 -6
  27. package/package.json +1 -1
  28. package/popover/src/popover.component.d.ts +9 -9
  29. package/search-box/src/search-box.component.d.ts +10 -10
  30. package/splitter/src/composition/types.d.ts +5 -0
  31. package/splitter/src/composition/use-collapse-pane.d.ts +10 -0
  32. package/splitter/test/splitter-pane.spec.d.ts +1 -0
  33. package/todo/src/todo.component.d.ts +1 -1
@@ -115,9 +115,9 @@ declare const _default: import('../../../../vue').DefineComponent<import('../../
115
115
  default: undefined;
116
116
  };
117
117
  }>> & Readonly<{}>, {
118
- data: any[];
119
- view: import('../../../../../..').ListViewType;
120
118
  customClass: string;
119
+ view: import('../../../../../..').ListViewType;
120
+ data: any[];
121
121
  item: Record<string, any>;
122
122
  index: number;
123
123
  idField: string;
@@ -1,7 +1,7 @@
1
1
  declare const _default: import('../../../vue').DefineComponent<{
2
- data: any[];
3
- view: import('../../../..').ListViewType;
4
2
  customClass: string;
3
+ view: import('../../../..').ListViewType;
4
+ data: any[];
5
5
  idField: string;
6
6
  valueField: string;
7
7
  textField: string;
@@ -9,9 +9,9 @@ declare const _default: import('../../../vue').DefineComponent<{
9
9
  titleField: string;
10
10
  group?: import('../../../..').ListViewGroupConfig | undefined;
11
11
  }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, "clickItem", import('../../../vue').PublicProps, Readonly<{
12
- data: any[];
13
- view: import('../../../..').ListViewType;
14
12
  customClass: string;
13
+ view: import('../../../..').ListViewType;
14
+ data: any[];
15
15
  idField: string;
16
16
  valueField: string;
17
17
  textField: string;
@@ -19,9 +19,9 @@ declare const _default: import('../../../vue').DefineComponent<{
19
19
  titleField: string;
20
20
  group?: import('../../../..').ListViewGroupConfig | undefined;
21
21
  }> & Readonly<{}>, {
22
- data: any[];
23
- view: import('../../../..').ListViewType;
24
22
  customClass: string;
23
+ view: import('../../../..').ListViewType;
24
+ data: any[];
25
25
  idField: string;
26
26
  valueField: string;
27
27
  textField: string;
package/package.json CHANGED
@@ -28,5 +28,5 @@
28
28
  "peerDependencies": {
29
29
  "vue": "^3.2.0"
30
30
  },
31
- "version": "0.6.4"
31
+ "version": "0.6.5"
32
32
  }
@@ -1,18 +1,18 @@
1
1
  declare const _default: import('../../../vue').DefineComponent<{
2
- class: string;
3
2
  size: import('../../../popover.props').PopoverSize;
3
+ class: string;
4
+ visible: boolean;
5
+ minWidth: number;
4
6
  arrowOffsetX: number;
5
7
  customStyles: Record<string, any>;
6
8
  isSimpleTips: boolean;
7
9
  fitContent: boolean;
8
10
  keepWidthWithReference: boolean;
9
- minWidth: number;
10
11
  offsetX: number;
11
12
  offsetY: number;
12
13
  placement: import('../../../popover.props').PopoverPlacement;
13
14
  showArrow: boolean;
14
15
  theme: import('../../../popover.props').PopoverTheme;
15
- visible: boolean;
16
16
  zIndex: number;
17
17
  limitContentBySpace: boolean;
18
18
  enableDrag: boolean;
@@ -29,20 +29,20 @@ declare const _default: import('../../../vue').DefineComponent<{
29
29
  rightBoundary?: any;
30
30
  beforeClose?: (() => Promise<boolean> | boolean) | undefined;
31
31
  }, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<{
32
- class: string;
33
32
  size: import('../../../popover.props').PopoverSize;
33
+ class: string;
34
+ visible: boolean;
35
+ minWidth: number;
34
36
  arrowOffsetX: number;
35
37
  customStyles: Record<string, any>;
36
38
  isSimpleTips: boolean;
37
39
  fitContent: boolean;
38
40
  keepWidthWithReference: boolean;
39
- minWidth: number;
40
41
  offsetX: number;
41
42
  offsetY: number;
42
43
  placement: import('../../../popover.props').PopoverPlacement;
43
44
  showArrow: boolean;
44
45
  theme: import('../../../popover.props').PopoverTheme;
45
- visible: boolean;
46
46
  zIndex: number;
47
47
  limitContentBySpace: boolean;
48
48
  enableDrag: boolean;
@@ -59,20 +59,20 @@ declare const _default: import('../../../vue').DefineComponent<{
59
59
  rightBoundary?: any;
60
60
  beforeClose?: (() => Promise<boolean> | boolean) | undefined;
61
61
  }> & Readonly<{}>, {
62
- class: string;
63
62
  size: import('../../../popover.props').PopoverSize;
63
+ class: string;
64
+ visible: boolean;
65
+ minWidth: number;
64
66
  arrowOffsetX: number;
65
67
  customStyles: Record<string, any>;
66
68
  isSimpleTips: boolean;
67
69
  fitContent: boolean;
68
70
  keepWidthWithReference: boolean;
69
- minWidth: number;
70
71
  offsetX: number;
71
72
  offsetY: number;
72
73
  placement: import('../../../popover.props').PopoverPlacement;
73
74
  showArrow: boolean;
74
75
  theme: import('../../../popover.props').PopoverTheme;
75
- visible: boolean;
76
76
  zIndex: number;
77
77
  limitContentBySpace: boolean;
78
78
  enableDrag: boolean;
@@ -1,43 +1,43 @@
1
1
  declare const _default: import('../../../vue').DefineComponent<{
2
- data: any[];
3
2
  customClass: string;
3
+ modelValue: string;
4
+ data: any[];
5
+ placeholder: string;
4
6
  maxHeight: number;
5
7
  loading: boolean;
6
- modelValue: string;
7
8
  disable: boolean;
8
9
  idField: string;
9
10
  buttonContent: string;
10
- placeholder: string;
11
11
  textField: string;
12
12
  showDropdown: boolean;
13
13
  itemClass: string;
14
14
  dropdownClass: string;
15
15
  popupHost?: any;
16
- }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, "change" | "update:modelValue" | "selectedValue" | "clickButton", import('../../../vue').PublicProps, Readonly<{
17
- data: any[];
16
+ }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, "update:modelValue" | "change" | "selectedValue" | "clickButton", import('../../../vue').PublicProps, Readonly<{
18
17
  customClass: string;
18
+ modelValue: string;
19
+ data: any[];
20
+ placeholder: string;
19
21
  maxHeight: number;
20
22
  loading: boolean;
21
- modelValue: string;
22
23
  disable: boolean;
23
24
  idField: string;
24
25
  buttonContent: string;
25
- placeholder: string;
26
26
  textField: string;
27
27
  showDropdown: boolean;
28
28
  itemClass: string;
29
29
  dropdownClass: string;
30
30
  popupHost?: any;
31
31
  }> & Readonly<{}>, {
32
- data: any[];
33
32
  customClass: string;
33
+ modelValue: string;
34
+ data: any[];
35
+ placeholder: string;
34
36
  maxHeight: number;
35
37
  loading: boolean;
36
- modelValue: string;
37
38
  disable: boolean;
38
39
  idField: string;
39
40
  buttonContent: string;
40
- placeholder: string;
41
41
  textField: string;
42
42
  showDropdown: boolean;
43
43
  itemClass: string;
@@ -21,6 +21,11 @@ export interface UseResizeHandle {
21
21
  getPanelMaxWidth: (position: string, minWidth: number) => number | undefined;
22
22
  getPanelMaxHeight: (position: string, minHeight: number) => number | undefined;
23
23
  }
24
+ export interface UseCollapsePane {
25
+ collapsed: Ref<boolean>;
26
+ toggleCollapse: () => void;
27
+ applyCollapseState: (actualWidth: Ref<number>, actualHeight: Ref<number>) => void;
28
+ }
24
29
  export interface SplitterContext {
25
30
  useResizeHandleComposition: UseResizeHandle;
26
31
  }
@@ -0,0 +1,10 @@
1
+ import { SplitterPanePropsType } from '../../../../../components/splitter-pane.props';
2
+ import { UseCollapsePane } from '../../../../types';
3
+
4
+ /**
5
+ * pane 收折:收起 = 尺寸归 0 + 内容 overflow hidden(挂 --collapsed 类),
6
+ * 展开恢复上次展开尺寸(拖拽调宽后的值优先,无记录回退 props 尺寸)。
7
+ * 状态归属:collapsed ref 为内部状态;宿主受控时改 collapsed prop 经 watch 同步,
8
+ * onCollapseChange 通知宿主回写,两类用法闭环互不冲突。
9
+ */
10
+ export declare function useCollapsePane(props: SplitterPanePropsType): UseCollapsePane;
@@ -0,0 +1 @@
1
+ export {};
@@ -33,9 +33,9 @@ declare const _default: import('../../../vue').DefineComponent<import('../../../
33
33
  default: string;
34
34
  };
35
35
  }>> & Readonly<{}>, {
36
+ customClass: string;
36
37
  type: import('../../../..').TodoItemStatus;
37
38
  message: string;
38
39
  items: import('../../../..').TodoWorkItem[];
39
- customClass: string;
40
40
  }, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
41
41
  export default _default;