@oneflowui/ui 0.5.7 → 0.5.9

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 (34) hide show
  1. package/README.md +11 -0
  2. package/dist/components/ContextMenu/index.vue.js +2 -2
  3. package/dist/components/Dashboard/index.vue.d.ts +1 -1
  4. package/dist/components/Dashboard/index.vue.js +3 -3
  5. package/dist/components/database/DatabaseView.vue.d.ts +6 -1
  6. package/dist/components/database/DatabaseView.vue.js +2 -2
  7. package/dist/components/database/DatabaseView.vue2.js +438 -293
  8. package/dist/components/overlay/Drawer.vue.d.ts +1 -1
  9. package/dist/components/overlay/Modal.vue.d.ts +1 -1
  10. package/dist/components/table/ColumnHeaderMenu.vue.d.ts +2 -2
  11. package/dist/components/table/DataTable.vue.d.ts +3 -1
  12. package/dist/components/table/DataTable.vue.js +2 -2
  13. package/dist/components/table/DataTable.vue2.js +598 -526
  14. package/dist/components/table/DetailSheet.vue.d.ts +2 -0
  15. package/dist/components/table/DetailSheet.vue.js +2 -2
  16. package/dist/components/table/DetailSheet.vue2.js +155 -76
  17. package/dist/components/table/TableDataRow.vue.d.ts +3 -1
  18. package/dist/components/table/TableDataRow.vue.js +3 -3
  19. package/dist/components/table/TableDataRow.vue2.js +95 -68
  20. package/dist/components/table/TableHeaderRow.vue.d.ts +3 -1
  21. package/dist/components/table/TableHeaderRow.vue.js +3 -3
  22. package/dist/components/table/TableHeaderRow.vue2.js +96 -60
  23. package/dist/composables/useColumnResize.d.ts +4 -1
  24. package/dist/composables/useColumnResize.js +114 -45
  25. package/dist/composables/useRowDrag.d.ts +1 -1
  26. package/dist/composables/useVirtualList.d.ts +1 -0
  27. package/dist/composables/useVirtualList.js +89 -77
  28. package/dist/plugin.js +240 -171
  29. package/dist/style.css +1 -1
  30. package/dist/types/index.d.ts +2 -1
  31. package/dist/utils/icon.js +25 -68
  32. package/dist/utils/iconRegistry.d.ts +7 -0
  33. package/dist/utils/iconRegistry.js +60 -0
  34. package/package.json +1 -1
@@ -25,8 +25,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
25
25
  }>, {
26
26
  title: string;
27
27
  width: number;
28
- maskClosable: boolean;
29
28
  zIndex: number;
29
+ maskClosable: boolean;
30
30
  showClose: boolean;
31
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
32
32
  drawerRef: HTMLElement;
@@ -48,10 +48,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
48
48
  }>, {
49
49
  title: string;
50
50
  width: string;
51
+ zIndex: number;
51
52
  closable: boolean;
52
53
  maskClosable: boolean;
53
54
  centered: boolean;
54
- zIndex: number;
55
55
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
56
56
  modalRef: HTMLDivElement;
57
57
  }, any>;
@@ -13,17 +13,17 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
13
13
  sort: (colKey: string, direction: "asc" | "desc") => any;
14
14
  delete: (colKey: string) => any;
15
15
  close: () => any;
16
+ hide: (colKey: string) => any;
16
17
  rename: (colKey: string, newName: string) => any;
17
18
  "change-type": (colKey: string, newType: FieldType) => any;
18
- hide: (colKey: string) => any;
19
19
  duplicate: (colKey: string) => any;
20
20
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
21
21
  onSort?: ((colKey: string, direction: "asc" | "desc") => any) | undefined;
22
22
  onDelete?: ((colKey: string) => any) | undefined;
23
23
  onClose?: (() => any) | undefined;
24
+ onHide?: ((colKey: string) => any) | undefined;
24
25
  onRename?: ((colKey: string, newName: string) => any) | undefined;
25
26
  "onChange-type"?: ((colKey: string, newType: FieldType) => any) | undefined;
26
- onHide?: ((colKey: string) => any) | undefined;
27
27
  onDuplicate?: ((colKey: string) => any) | undefined;
28
28
  }>, {
29
29
  sortOrder: "asc" | "desc" | null;
@@ -1,5 +1,5 @@
1
1
  import { FieldDef as CellFieldDef } from './FieldCell.vue';
2
- import { Task, TableColumn, ColorMap, DataRecord, TableSchema, ViewConfig, ActiveCell, AggregationConfig, GroupConfig } from '../../types';
2
+ import { Density, Task, TableColumn, ColorMap, DataRecord, TableSchema, ViewConfig, ActiveCell, AggregationConfig, GroupConfig } from '../../types';
3
3
  declare const _default: <T extends {
4
4
  id: string;
5
5
  } & Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
@@ -88,6 +88,8 @@ declare const _default: <T extends {
88
88
  aggregations?: AggregationConfig[];
89
89
  /** 启用字段管理交互(列头菜单、添加字段) */
90
90
  enableFieldManagement?: boolean;
91
+ /** Density preset used for table, list, and detail affordances */
92
+ density?: Density;
91
93
  } & Partial<{}>> & import('vue').PublicProps;
92
94
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
93
95
  attrs: any;
@@ -1,7 +1,7 @@
1
1
  import o from "./DataTable.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-052e715f"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-204347d4"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };