@oneflowui/ui 0.8.0 → 0.8.2

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 (107) hide show
  1. package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
  2. package/dist/components/Dashboard/charts/BarChart.vue2.js +9 -9
  3. package/dist/components/Dashboard/charts/NumberCard.vue.js +2 -2
  4. package/dist/components/Dashboard/charts/PieChart.vue.js +1 -1
  5. package/dist/components/Dashboard/charts/PieChart.vue2.js +3 -3
  6. package/dist/components/Dashboard/charts/TableChart.vue.js +2 -2
  7. package/dist/components/Dashboard/index.vue.js +2 -2
  8. package/dist/components/base/InfoCard.vue.js +1 -1
  9. package/dist/components/base/InfoCard.vue2.js +40 -40
  10. package/dist/components/base/StatisticCard.vue.js +3 -3
  11. package/dist/components/base/StatusSummary.vue.js +1 -1
  12. package/dist/components/base/StatusSummary.vue2.js +5 -5
  13. package/dist/components/database/DatabaseDetailPresenter.vue.d.ts +41 -0
  14. package/dist/components/database/DatabaseDetailPresenter.vue.js +76 -0
  15. package/dist/components/database/DatabaseDetailPresenter.vue2.js +4 -0
  16. package/dist/components/database/DatabaseDetailWorkspace.vue.d.ts +37 -0
  17. package/dist/components/database/DatabaseDetailWorkspace.vue.js +7 -0
  18. package/dist/components/database/DatabaseDetailWorkspace.vue2.js +103 -0
  19. package/dist/components/database/DatabaseView.vue.d.ts +13 -76
  20. package/dist/components/database/DatabaseView.vue.js +2 -2
  21. package/dist/components/database/DatabaseView.vue2.js +322 -921
  22. package/dist/components/database/DatabaseViewContent.vue.d.ts +74 -0
  23. package/dist/components/database/DatabaseViewContent.vue.js +79 -0
  24. package/dist/components/database/DatabaseViewContent.vue2.js +4 -0
  25. package/dist/components/database/DatabaseViewDetailHost.vue.d.ts +43 -0
  26. package/dist/components/database/DatabaseViewDetailHost.vue.js +59 -0
  27. package/dist/components/database/DatabaseViewDetailHost.vue2.js +4 -0
  28. package/dist/components/database/DatabaseViewShell.vue.d.ts +35 -0
  29. package/dist/components/database/DatabaseViewShell.vue.js +7 -0
  30. package/dist/components/database/DatabaseViewShell.vue2.js +71 -0
  31. package/dist/components/database/DatabaseViewToolbar.vue.d.ts +77 -0
  32. package/dist/components/database/DatabaseViewToolbar.vue.js +62 -0
  33. package/dist/components/database/DatabaseViewToolbar.vue2.js +4 -0
  34. package/dist/components/database/databaseViewUtils.d.ts +91 -0
  35. package/dist/components/database/databaseViewUtils.js +266 -0
  36. package/dist/components/database/index.d.ts +1 -1
  37. package/dist/components/kanban/KanbanColumn.vue.d.ts +2 -2
  38. package/dist/components/layout/AppLayout.vue.js +1 -1
  39. package/dist/components/layout/Navbar.vue.js +1 -1
  40. package/dist/components/layout/Sidebar.vue.js +2 -2
  41. package/dist/components/layout/StatusBar.vue.js +2 -2
  42. package/dist/components/overlay/Dialog.vue.d.ts +1 -1
  43. package/dist/components/table/ColumnHeaderMenu.vue.js +3 -3
  44. package/dist/components/table/DataTable.vue.d.ts +6 -17
  45. package/dist/components/table/DataTable.vue.js +2 -2
  46. package/dist/components/table/DataTable.vue2.js +781 -872
  47. package/dist/components/table/DataTableDesktopFixedRegion.vue.d.ts +56 -0
  48. package/dist/components/table/DataTableDesktopFixedRegion.vue.js +7 -0
  49. package/dist/components/table/DataTableDesktopFixedRegion.vue2.js +67 -0
  50. package/dist/components/table/DataTableDesktopFrame.vue.d.ts +127 -0
  51. package/dist/components/table/DataTableDesktopFrame.vue.js +7 -0
  52. package/dist/components/table/DataTableDesktopFrame.vue2.js +196 -0
  53. package/dist/components/table/DataTableDesktopScrollRegion.vue.d.ts +55 -0
  54. package/dist/components/table/DataTableDesktopScrollRegion.vue.js +7 -0
  55. package/dist/components/table/DataTableDesktopScrollRegion.vue2.js +66 -0
  56. package/dist/components/table/DataTableDesktopStandardRegion.vue.d.ts +54 -0
  57. package/dist/components/table/DataTableDesktopStandardRegion.vue.js +7 -0
  58. package/dist/components/table/DataTableDesktopStandardRegion.vue2.js +65 -0
  59. package/dist/components/table/DataTableDraftToolbar.vue.d.ts +11 -0
  60. package/dist/components/table/DataTableDraftToolbar.vue.js +7 -0
  61. package/dist/components/table/DataTableDraftToolbar.vue2.js +25 -0
  62. package/dist/components/table/DataTableMobilePanel.vue.d.ts +79 -0
  63. package/dist/components/table/DataTableMobilePanel.vue.js +60 -0
  64. package/dist/components/table/DataTableMobilePanel.vue2.js +4 -0
  65. package/dist/components/table/DataTableSelectionBar.vue.d.ts +11 -0
  66. package/dist/components/table/DataTableSelectionBar.vue.js +7 -0
  67. package/dist/components/table/DataTableSelectionBar.vue2.js +33 -0
  68. package/dist/components/table/DetailSheet.vue.js +1 -1
  69. package/dist/components/table/DetailSheet.vue2.js +160 -187
  70. package/dist/components/table/FieldTypePicker.vue.js +3 -3
  71. package/dist/components/table/MobileListView.vue.js +1 -1
  72. package/dist/components/table/TableColumnManager.vue.js +3 -3
  73. package/dist/components/table/TableDataRow.vue.js +4 -4
  74. package/dist/components/table/TableFilterPanel.vue.js +1 -1
  75. package/dist/components/table/TableGroupRow.vue.js +2 -2
  76. package/dist/components/table/TableHeaderRow.vue.js +3 -3
  77. package/dist/components/table/TableToolbar.vue.js +2 -2
  78. package/dist/components/table/TableToolbar.vue2.js +126 -138
  79. package/dist/components/table/dataTableUtils.d.ts +26 -0
  80. package/dist/components/table/dataTableUtils.js +60 -0
  81. package/dist/composables/databaseDetailWorkspaceUtils.d.ts +59 -0
  82. package/dist/composables/databaseDetailWorkspaceUtils.js +160 -0
  83. package/dist/composables/index.d.ts +5 -0
  84. package/dist/composables/useDataTableDetailSheet.d.ts +47 -0
  85. package/dist/composables/useDataTableDetailSheet.js +58 -0
  86. package/dist/composables/useDataTableLayout.d.ts +16 -0
  87. package/dist/composables/useDataTableLayout.js +38 -0
  88. package/dist/composables/useDataTableSelection.d.ts +41 -0
  89. package/dist/composables/useDataTableSelection.js +73 -0
  90. package/dist/composables/useDatabaseDetailWorkspace.d.ts +67 -0
  91. package/dist/composables/useDatabaseDetailWorkspace.js +150 -0
  92. package/dist/composables/useDatabaseView.d.ts +3 -137
  93. package/dist/composables/useDatabaseWorkspace.d.ts +31 -0
  94. package/dist/composables/useDatabaseWorkspace.js +89 -0
  95. package/dist/composables/useTableToolbarPanels.d.ts +19 -0
  96. package/dist/composables/useTableToolbarPanels.js +53 -0
  97. package/dist/contracts/database.d.ts +252 -0
  98. package/dist/index.d.ts +6 -0
  99. package/dist/index.js +261 -248
  100. package/dist/plugin.d.ts +2 -0
  101. package/dist/plugin.js +10 -261
  102. package/dist/registry/plugin-components.d.ts +291 -0
  103. package/dist/registry/plugin-components.js +114 -0
  104. package/dist/style.css +1 -1
  105. package/dist/types/data-table.d.ts +27 -0
  106. package/dist/types/data-table.js +29 -0
  107. package/package.json +1 -1
@@ -1,69 +1,6 @@
1
- import { Component } from 'vue';
2
- import { DatabaseViewActions as ViewDatabaseActions, DatabaseViewMode, DatabaseSchemaEvent, DatabaseViewProvider as ViewDatabaseProvider } from '../../composables/useDatabaseView';
1
+ import { DatabaseViewProps, DatabaseViewViewTab } from '../../contracts/database';
3
2
  import { FilterLogic } from '../../composables/useTableFilter';
4
- import { DataRecord, Density, TableColumn, TableSchema, ViewConfig } from '../../types';
5
- export interface DatabaseViewViewTab {
6
- value: string;
7
- label: string;
8
- icon?: string | Component;
9
- }
10
- export type DatabaseViewSchemaEvent = DatabaseSchemaEvent;
11
- export interface DatabaseViewActions extends ViewDatabaseActions<DataRecord> {
12
- onViewChange?: (payload: {
13
- tableId: string;
14
- view: ViewConfig;
15
- }) => void | Promise<void>;
16
- onViewLoad?: (payload: {
17
- tableId: string;
18
- viewId: string;
19
- }) => void | Promise<void>;
20
- onViewSave?: (payload: {
21
- tableId: string;
22
- viewId: string;
23
- name: string;
24
- }) => void | Promise<void>;
25
- onRecordChange?: (payload: {
26
- tableId: string;
27
- recordId: string;
28
- startDate?: string;
29
- endDate?: string;
30
- }) => void | Promise<void>;
31
- }
32
- export interface DatabaseViewUiOptions {
33
- enableFieldManagement?: boolean;
34
- }
35
- export type DatabaseViewDetailPresentation = "auto" | "side-panel" | "sheet" | "full-page";
36
- export interface DatabaseViewProps {
37
- tableId?: string;
38
- mode?: DatabaseViewMode;
39
- detailPresentation?: DatabaseViewDetailPresentation;
40
- density?: Density;
41
- schema?: TableSchema | null;
42
- records?: DataRecord[];
43
- views?: ViewConfig[];
44
- provider?: ViewDatabaseProvider<DataRecord>;
45
- defaultView?: ViewConfig;
46
- currentViewId?: string;
47
- initialViewId?: string;
48
- selectedRecordId?: string | null;
49
- initialSelectedRecordId?: string | null;
50
- searchKeyword?: string;
51
- loading?: boolean;
52
- error?: string | Error | null;
53
- viewTabs?: DatabaseViewViewTab[];
54
- actions?: DatabaseViewActions;
55
- ui?: DatabaseViewUiOptions;
56
- showToolbar?: boolean;
57
- showViewSwitch?: boolean;
58
- showFilter?: boolean;
59
- showSort?: boolean;
60
- showGroup?: boolean;
61
- showColumns?: boolean;
62
- showSearch?: boolean;
63
- readonly?: boolean;
64
- pageSize?: number;
65
- autoLoad?: boolean;
66
- }
3
+ import { DataRecord, TableColumn } from '../../types';
67
4
  declare const _default: import('vue').DefineComponent<DatabaseViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
68
5
  sort: (args_0: string) => any;
69
6
  add: () => any;
@@ -92,13 +29,13 @@ declare const _default: import('vue').DefineComponent<DatabaseViewProps, {}, {},
92
29
  "save-view": (args_0: string) => any;
93
30
  "load-view": (args_0: string) => any;
94
31
  "card-click": (args_0: unknown) => any;
32
+ "add-column": () => any;
95
33
  "record-change": (args_0: {
96
34
  recordId: string;
97
35
  startDate?: string;
98
36
  endDate?: string;
99
37
  }) => any;
100
38
  "update:records": (args_0: DataRecord[]) => any;
101
- "add-column": () => any;
102
39
  "update:currentViewId": (args_0: string) => any;
103
40
  "update:selectedRecordId": (args_0: string | null) => any;
104
41
  "select-record": (args_0: DataRecord | null) => any;
@@ -131,45 +68,45 @@ declare const _default: import('vue').DefineComponent<DatabaseViewProps, {}, {},
131
68
  "onSave-view"?: ((args_0: string) => any) | undefined;
132
69
  "onLoad-view"?: ((args_0: string) => any) | undefined;
133
70
  "onCard-click"?: ((args_0: unknown) => any) | undefined;
71
+ "onAdd-column"?: (() => any) | undefined;
134
72
  "onRecord-change"?: ((args_0: {
135
73
  recordId: string;
136
74
  startDate?: string;
137
75
  endDate?: string;
138
76
  }) => any) | undefined;
139
77
  "onUpdate:records"?: ((args_0: DataRecord[]) => any) | undefined;
140
- "onAdd-column"?: (() => any) | undefined;
141
78
  "onUpdate:currentViewId"?: ((args_0: string) => any) | undefined;
142
79
  "onUpdate:selectedRecordId"?: ((args_0: string | null) => any) | undefined;
143
80
  "onSelect-record"?: ((args_0: DataRecord | null) => any) | undefined;
144
81
  onRefresh?: (() => any) | undefined;
145
82
  }>, {
146
- mode: DatabaseViewMode;
83
+ mode: import('../..').DatabaseViewMode;
147
84
  error: string | Error | null;
148
85
  showFilter: boolean;
149
86
  showGroup: boolean;
150
87
  showSort: boolean;
151
88
  showSearch: boolean;
152
- actions: DatabaseViewActions;
153
- density: Density;
89
+ actions: import('.').DatabaseViewActions;
90
+ density: import('../../types').Density;
154
91
  readonly: boolean;
155
92
  pageSize: number;
156
93
  records: DataRecord[];
157
- schema: TableSchema | null;
94
+ schema: import('../..').TableSchema | null;
158
95
  viewTabs: DatabaseViewViewTab[];
159
96
  searchKeyword: string;
160
97
  showViewSwitch: boolean;
161
98
  showColumns: boolean;
162
99
  loading: boolean;
163
100
  tableId: string;
164
- views: ViewConfig[];
165
- provider: ViewDatabaseProvider<DataRecord>;
166
- detailPresentation: DatabaseViewDetailPresentation;
167
- defaultView: ViewConfig;
101
+ views: import('../..').ViewConfig[];
102
+ provider: import('../..').DatabaseViewProvider<DataRecord>;
103
+ detailPresentation: import('../../contracts/database').DatabaseViewDetailPresentation;
104
+ defaultView: import('../..').ViewConfig;
168
105
  currentViewId: string;
169
106
  initialViewId: string;
170
107
  selectedRecordId: string | null;
171
108
  initialSelectedRecordId: string | null;
172
- ui: DatabaseViewUiOptions;
109
+ ui: import('../../contracts/database').DatabaseViewUiOptions;
173
110
  showToolbar: boolean;
174
111
  autoLoad: boolean;
175
112
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,7 +1,7 @@
1
1
  import o from "./DatabaseView.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1e404627"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-99f1250c"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };