@oneflowui/ui 0.3.0 → 0.4.1

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/{FieldCheckbox-usI8AWEq.js → FieldCheckbox-CV3QtQ4Y.js} +3 -3
  2. package/dist/{FieldDate-Y4p9eB4O.js → FieldDate-Bljx4jb7.js} +2 -2
  3. package/dist/{FieldDatetime-CQEfD87W.js → FieldDatetime-B52GfWrK.js} +8 -8
  4. package/dist/{FieldEmail-BVyzf_fw.js → FieldEmail-UREMoue-.js} +11 -11
  5. package/dist/{FieldMultiSelect-DuCL06zc.js → FieldMultiSelect-Dlay1Fop.js} +11 -11
  6. package/dist/{FieldNumber-CuS1g2vn.js → FieldNumber-BjhfFhs6.js} +2 -2
  7. package/dist/{FieldRating-DVy6dpk7.js → FieldRating-BKHUu-A1.js} +2 -2
  8. package/dist/{FieldSelect-Bew5uufs.js → FieldSelect-B39Ad8VH.js} +2 -2
  9. package/dist/{FieldText-Cvk1jnhQ.js → FieldText-Ry7f72Ug.js} +5 -5
  10. package/dist/{FieldUrl-CCPFbiVm.js → FieldUrl-bv0EB9sh.js} +8 -8
  11. package/dist/components/base/Accordion.vue.d.ts +2 -2
  12. package/dist/components/base/Avatar.vue.d.ts +1 -1
  13. package/dist/components/base/Badge.vue.d.ts +2 -2
  14. package/dist/components/base/ButtonGroup.vue.d.ts +1 -1
  15. package/dist/components/base/ChainItem.vue.d.ts +2 -2
  16. package/dist/components/base/DropdownMenu.vue.d.ts +4 -1
  17. package/dist/components/base/EmptyState.vue.d.ts +1 -1
  18. package/dist/components/base/InfoCard.vue.d.ts +2 -2
  19. package/dist/components/base/MonitorItem.vue.d.ts +1 -1
  20. package/dist/components/base/PersonaCard.vue.d.ts +2 -2
  21. package/dist/components/base/ProgressBar.vue.d.ts +2 -2
  22. package/dist/components/base/RangeSlider.vue.d.ts +1 -16
  23. package/dist/components/base/SectionBlock.vue.d.ts +6 -4
  24. package/dist/components/base/SelectBadge.vue.d.ts +2 -2
  25. package/dist/components/base/StatisticCard.vue.d.ts +1 -14
  26. package/dist/components/base/StatusIndicator.vue.d.ts +2 -2
  27. package/dist/components/base/StatusSummary.vue.d.ts +2 -2
  28. package/dist/components/base/Stepper.vue.d.ts +2 -2
  29. package/dist/components/base/Switch.vue.d.ts +1 -1
  30. package/dist/components/base/ToolbarBtn.vue.d.ts +1 -1
  31. package/dist/components/base/ViewModeGroup.vue.d.ts +1 -1
  32. package/dist/components/base/ViewSwitcher.vue.d.ts +2 -2
  33. package/dist/components/base/ViewTab.vue.d.ts +1 -1
  34. package/dist/components/layout/AppLayout.vue.d.ts +14 -2
  35. package/dist/components/overlay/Drawer.vue.d.ts +6 -2
  36. package/dist/components/overlay/Modal.vue.d.ts +6 -2
  37. package/dist/components/overlay/SidePanel.vue.d.ts +6 -2
  38. package/dist/components/table/DataTable.vue.d.ts +11 -1
  39. package/dist/components/table/FieldCell.vue.d.ts +1 -1
  40. package/dist/components/table/TableColumnManager.vue.d.ts +3 -1
  41. package/dist/components/table/TableFilterPanel.vue.d.ts +3 -1
  42. package/dist/composables/useTableGroup.d.ts +2 -2
  43. package/dist/{index-CLFMyBqX.js → index-DQph5iTq.js} +4262 -3941
  44. package/dist/index.d.ts +2 -2
  45. package/dist/oneflow-ui.js +1 -1
  46. package/dist/oneflow-ui.umd.cjs +10 -10
  47. package/dist/style.css +1 -1
  48. package/dist/types/index.d.ts +39 -14
  49. package/package.json +2 -1
@@ -24,12 +24,12 @@ declare function __VLS_template(): {
24
24
  }) => unknown;
25
25
  };
26
26
  refs: {};
27
- rootEl: HTMLDivElement;
27
+ rootEl: any;
28
28
  };
29
29
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
30
  declare const __VLS_component: import('vue').DefineComponent<StepperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StepperProps> & Readonly<{}>, {
31
31
  direction: "horizontal" | "vertical";
32
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
34
  export default _default;
35
35
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -14,5 +14,5 @@ declare const _default: import('vue').DefineComponent<SwitchProps, {}, {}, {}, {
14
14
  size: "sm" | "md";
15
15
  label: string;
16
16
  disabled: boolean;
17
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
18
  export default _default;
@@ -7,5 +7,5 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
7
7
  click: (event: MouseEvent) => any;
8
8
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
9
  onClick?: ((event: MouseEvent) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
11
  export default _default;
@@ -13,5 +13,5 @@ declare const _default: import('vue').DefineComponent<ViewModeGroupProps, {}, {}
13
13
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
14
14
  }>, {
15
15
  options: ViewModeOption[];
16
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
17
  export default _default;
@@ -21,7 +21,7 @@ declare function __VLS_template(): {
21
21
  default?(_: {}): any;
22
22
  };
23
23
  refs: {};
24
- rootEl: HTMLDivElement;
24
+ rootEl: any;
25
25
  };
26
26
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
27
  declare const __VLS_component: import('vue').DefineComponent<ViewSwitcherProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -47,7 +47,7 @@ declare const __VLS_component: import('vue').DefineComponent<ViewSwitcherProps,
47
47
  groupLabel: string;
48
48
  sortLabel: string;
49
49
  searchPlaceholder: string;
50
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
50
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
51
51
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
52
52
  export default _default;
53
53
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -7,5 +7,5 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
7
7
  "update:modelValue": (value: string) => any;
8
8
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
9
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
11
  export default _default;
@@ -1,16 +1,28 @@
1
+ import { Density } from '../../types';
2
+ type __VLS_Props = {
3
+ /** 布局密度:comfortable(默认)| compact(紧凑) */
4
+ density?: Density;
5
+ };
1
6
  declare function __VLS_template(): {
2
7
  attrs: Partial<{}>;
3
8
  slots: {
4
9
  navbar?(_: {}): any;
5
10
  sidebar?(_: {}): any;
11
+ sidebar?(_: {}): any;
6
12
  default?(_: {}): any;
7
13
  statusbar?(_: {}): any;
8
14
  };
9
- refs: {};
15
+ refs: {
16
+ drawerNavRef: HTMLElement;
17
+ };
10
18
  rootEl: HTMLDivElement;
11
19
  };
12
20
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
21
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
22
+ density: Density;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
24
+ drawerNavRef: HTMLElement;
25
+ }, HTMLDivElement>;
14
26
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
27
  export default _default;
16
28
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -12,7 +12,9 @@ declare function __VLS_template(): {
12
12
  title?(_: {}): any;
13
13
  default?(_: {}): any;
14
14
  };
15
- refs: {};
15
+ refs: {
16
+ drawerRef: HTMLElement;
17
+ };
16
18
  rootEl: any;
17
19
  };
18
20
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -25,7 +27,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
25
27
  maskClosable: boolean;
26
28
  zIndex: number;
27
29
  showClose: boolean;
28
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
31
+ drawerRef: HTMLElement;
32
+ }, any>;
29
33
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
34
  export default _default;
31
35
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -35,7 +35,9 @@ declare function __VLS_template(): {
35
35
  default?(_: {}): any;
36
36
  footer?(_: {}): any;
37
37
  };
38
- refs: {};
38
+ refs: {
39
+ modalRef: HTMLDivElement;
40
+ };
39
41
  rootEl: any;
40
42
  };
41
43
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -49,7 +51,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
49
51
  maskClosable: boolean;
50
52
  centered: boolean;
51
53
  zIndex: number;
52
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
55
+ modalRef: HTMLDivElement;
56
+ }, any>;
53
57
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
54
58
  export default _default;
55
59
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -15,7 +15,9 @@ declare function __VLS_template(): {
15
15
  default?: () => VNode[];
16
16
  header?: () => VNode[];
17
17
  };
18
- refs: {};
18
+ refs: {
19
+ sidePanelRef: HTMLElement;
20
+ };
19
21
  rootEl: any;
20
22
  };
21
23
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -27,7 +29,9 @@ declare const __VLS_component: import('vue').DefineComponent<SidePanelProps, {},
27
29
  width: number;
28
30
  mode: "lazy" | "persistent";
29
31
  showClose: boolean;
30
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
33
+ sidePanelRef: HTMLElement;
34
+ }, any>;
31
35
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
36
  export default _default;
33
37
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -35,9 +35,19 @@ declare const _default: <T extends {
35
35
  * 手动控制虚拟滚动开关。
36
36
  * - `true`:强制启用虚拟滚动
37
37
  * - `false`:强制关闭虚拟滚动
38
- * - `undefined`(默认):自动判断,行数 > VIRTUAL_SCROLL_THRESHOLD 时启用
38
+ * - `undefined`(默认):自动判断,行数 >= virtualThreshold 时启用
39
39
  */
40
40
  virtual?: boolean;
41
+ /**
42
+ * 自动启用虚拟滚动的行数阈值(默认 100)。
43
+ * 仅在 `virtual` prop 未传时生效。
44
+ */
45
+ virtualThreshold?: number;
46
+ /**
47
+ * 只读模式。为 true 时,selectable 和 addable 自动降为 false,
48
+ * 即使调用方显式传了 true 也会被覆盖。
49
+ */
50
+ readonly?: boolean;
41
51
  } & Partial<{}>> & import('vue').PublicProps;
42
52
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
43
53
  attrs: any;
@@ -1,4 +1,4 @@
1
- export type FieldType = 'text' | 'number' | 'checkbox' | 'select' | 'multiselect' | 'date' | 'datetime' | 'rating' | 'url' | 'email';
1
+ export type FieldType = "text" | "number" | "checkbox" | "select" | "multiselect" | "date" | "datetime" | "rating" | "url" | "email";
2
2
  export interface FieldOption {
3
3
  label: string;
4
4
  value: string;
@@ -9,5 +9,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
9
9
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
10
  onClose?: (() => any) | undefined;
11
11
  "onUpdate:columns"?: ((columns: TableColumn[]) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ }>, {
13
+ visible: boolean;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
15
  export default _default;
@@ -20,5 +20,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
20
20
  "onRemove-condition"?: ((id: string) => any) | undefined;
21
21
  "onUpdate-condition"?: ((id: string, update: Partial<FilterCondition>) => any) | undefined;
22
22
  "onUpdate:logic"?: ((logic: FilterLogic) => any) | undefined;
23
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ }>, {
24
+ visible: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
26
  export default _default;
@@ -4,13 +4,13 @@ export interface UseTableGroupOptions<T> {
4
4
  groupBy: Ref<string | undefined>;
5
5
  }
6
6
  export type GroupHeaderItem = {
7
- __type: 'group-header';
7
+ __type: "group-header";
8
8
  __groupKey: string;
9
9
  __groupCount: number;
10
10
  id: string;
11
11
  };
12
12
  export type GroupedListItem<T> = (T & {
13
- __type: 'data-row';
13
+ __type: "data-row";
14
14
  }) | GroupHeaderItem;
15
15
  export declare function useTableGroup<T extends Record<string, any>>(options: UseTableGroupOptions<T>): {
16
16
  groupedItems: import('vue').ComputedRef<GroupedListItem<T>[]>;