@yudaocode/univer-bases-ui 0.0.0-stage → 1.6.219

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.
@@ -0,0 +1,179 @@
1
+ import { Disposable, ICommandService, Plugin, Injector, UniverInstanceType, IOperation } from '@univerjs/core';
2
+ import { IMenuManagerService, IUIPartsService, ISidebarService, ComponentManager, IconManager, MenuSchemaType, IconMap, IIconProps } from '@univerjs/ui';
3
+ import { BaseModalType, BaseViewType, BaseFieldType, IBaseTable, IBaseView, IBaseViewQueryResult, IBaseUnitData, IBaseEvaluatedRow, IBaseField, BaseCellValue } from '@yudaocode/univer-bases';
4
+ import React from 'react';
5
+
6
+ interface IUniverBasesUIConfig {
7
+ /** Whether to open the right schema inspector sidebar automatically on startup */
8
+ defaultOpenInspector?: boolean;
9
+ }
10
+ declare class BasesUIController extends Disposable {
11
+ private readonly _config;
12
+ private readonly _commandService;
13
+ private readonly _menuManagerService;
14
+ private readonly _uiPartsService;
15
+ private readonly _sidebarService;
16
+ private readonly _componentManager;
17
+ private readonly _iconManager;
18
+ private _openInspectorTimer;
19
+ constructor(_config: Partial<IUniverBasesUIConfig>, _commandService: ICommandService, _menuManagerService: IMenuManagerService, _uiPartsService: IUIPartsService, _sidebarService: ISidebarService, _componentManager: ComponentManager, _iconManager: IconManager);
20
+ private _initIcons;
21
+ private _initComponents;
22
+ private _initOperations;
23
+ private _initMenus;
24
+ private _initWorkbenchParts;
25
+ }
26
+
27
+ declare const UNIVER_BASES_UI_PLUGIN_NAME = "UNIVER_BASES_UI_PLUGIN";
28
+ declare class UniverBasesUIPlugin extends Plugin {
29
+ private readonly _config;
30
+ protected readonly _injector: Injector;
31
+ static pluginName: string;
32
+ static packageName: string;
33
+ static type: UniverInstanceType;
34
+ constructor(_config: Partial<IUniverBasesUIConfig> | undefined, _injector: Injector);
35
+ onStarting(): void;
36
+ }
37
+
38
+ declare const basesMenuSchema: MenuSchemaType;
39
+
40
+ declare const BASE_INSPECTOR_SIDEBAR_ID = "univer.bases.inspector.sidebar";
41
+ declare const BASE_INSPECTOR_COMPONENT_KEY = "univer.bases.inspector.component";
42
+ declare function openBaseInspectorSidebar(sidebarService: ISidebarService): void;
43
+ declare const ToggleBaseInspectorOperation: IOperation;
44
+ interface IOpenBaseModalOperationParams {
45
+ modal: BaseModalType;
46
+ }
47
+ declare const OpenBaseModalOperation: IOperation<IOpenBaseModalOperationParams>;
48
+ interface ISwitchBaseViewTypeOperationParams {
49
+ viewType: BaseViewType | 'dashboard';
50
+ }
51
+ declare const SwitchBaseViewTypeOperation: IOperation<ISwitchBaseViewTypeOperationParams>;
52
+ interface ILoadBasePresetOperationParams {
53
+ preset: 'project' | 'crm';
54
+ }
55
+ declare const LoadBasePresetOperation: IOperation<ILoadBasePresetOperationParams>;
56
+
57
+ declare const BaseTableIcon: React.FC<IIconProps>;
58
+ declare const BaseGridIcon: React.FC<IIconProps>;
59
+ declare const BaseKanbanIcon: React.FC<IIconProps>;
60
+ declare const BaseCalendarIcon: React.FC<IIconProps>;
61
+ declare const BaseGalleryIcon: React.FC<IIconProps>;
62
+ declare const BaseGanttIcon: React.FC<IIconProps>;
63
+ declare const BaseTimelineIcon: React.FC<IIconProps>;
64
+ declare const BaseFormIcon: React.FC<IIconProps>;
65
+ declare const BaseListIcon: React.FC<IIconProps>;
66
+ declare const BaseBoltIcon: React.FC<IIconProps>;
67
+ declare const BasePlayIcon: React.FC<IIconProps>;
68
+ declare const BaseEditIcon: React.FC<IIconProps>;
69
+ declare const BaseColumnsIcon: React.FC<IIconProps>;
70
+ declare const BaseIndentIcon: React.FC<IIconProps>;
71
+ declare const BaseOutdentIcon: React.FC<IIconProps>;
72
+ declare const BaseDashboardIcon: React.FC<IIconProps>;
73
+ declare const BasePlusIcon: React.FC<IIconProps>;
74
+ declare const BaseFilterIcon: React.FC<IIconProps>;
75
+ declare const BaseSortIcon: React.FC<IIconProps>;
76
+ declare const BaseGroupIcon: React.FC<IIconProps>;
77
+ declare const BaseColorIcon: React.FC<IIconProps>;
78
+ declare const BaseSearchIcon: React.FC<IIconProps>;
79
+ declare const BaseUploadIcon: React.FC<IIconProps>;
80
+ declare const BaseDownloadIcon: React.FC<IIconProps>;
81
+ declare const BaseInspectorIcon: React.FC<IIconProps>;
82
+ declare const BaseTrashIcon: React.FC<IIconProps>;
83
+ declare const BaseCloseIcon: React.FC<IIconProps>;
84
+ declare const BaseChevronRightIcon: React.FC<IIconProps>;
85
+ declare const BaseChevronLeftIcon: React.FC<IIconProps>;
86
+ declare const BaseChevronDownIcon: React.FC<IIconProps>;
87
+ declare const BaseExpandIcon: React.FC<IIconProps>;
88
+ declare const BaseLinkIcon: React.FC<IIconProps>;
89
+ declare const BaseCheckIcon: React.FC<IIconProps>;
90
+ declare const BaseStarSvg: React.FC<{
91
+ filled?: boolean;
92
+ onClick?: () => void;
93
+ }>;
94
+ declare const BaseViewTypeIcon: React.FC<{
95
+ type: BaseViewType | 'dashboard';
96
+ }>;
97
+ declare const BaseFieldTypeIcon: React.FC<{
98
+ type: BaseFieldType;
99
+ }>;
100
+ declare const BASE_ICON_MAP: IconMap;
101
+
102
+ declare const BasesMainView: React.FC;
103
+
104
+ declare const BasesLeftSidebar: React.FC;
105
+
106
+ declare const BasesStatusBar: React.FC;
107
+
108
+ declare const BasesInspectorPanel: React.FC;
109
+
110
+ declare const BasesModalsHost: React.FC;
111
+
112
+ declare const AutomationBuilderModal: React.FC;
113
+
114
+ declare const BasesViewToolbar: React.FC<{
115
+ table: IBaseTable;
116
+ activeView: IBaseView;
117
+ workspaceMode: 'table' | 'dashboard';
118
+ }>;
119
+
120
+ declare const GridView: React.FC<{
121
+ query: IBaseViewQueryResult;
122
+ }>;
123
+
124
+ declare const GridCellEditor: React.FC<{
125
+ unitData: IBaseUnitData;
126
+ table: IBaseTable;
127
+ row: IBaseEvaluatedRow;
128
+ field: IBaseField;
129
+ onUpdateCell: (value: BaseCellValue) => void;
130
+ onOpenLinkPicker: () => void;
131
+ onTriggerButton: (label: string) => void;
132
+ }>;
133
+
134
+ declare const FIELD_TYPE_LABELS: ReadonlyArray<{
135
+ type: BaseFieldType;
136
+ label: string;
137
+ group: string;
138
+ }>;
139
+ declare const FieldConfigPopover: React.FC<{
140
+ mode: 'create' | 'edit';
141
+ unitData: IBaseUnitData;
142
+ table: IBaseTable;
143
+ field?: IBaseField;
144
+ onExecuteCommand: (id: string, params: Record<string, unknown>) => void;
145
+ onClose: () => void;
146
+ }>;
147
+
148
+ declare const ListView: React.FC<{
149
+ query: IBaseViewQueryResult;
150
+ }>;
151
+
152
+ declare const KanbanView: React.FC<{
153
+ query: IBaseViewQueryResult;
154
+ }>;
155
+
156
+ declare const CalendarView: React.FC<{
157
+ query: IBaseViewQueryResult;
158
+ }>;
159
+
160
+ declare const GalleryView: React.FC<{
161
+ query: IBaseViewQueryResult;
162
+ }>;
163
+
164
+ declare const GanttTimelineView: React.FC<{
165
+ query: IBaseViewQueryResult;
166
+ mode: 'gantt' | 'timeline';
167
+ }>;
168
+
169
+ declare const FormView: React.FC<{
170
+ query: IBaseViewQueryResult;
171
+ }>;
172
+
173
+ declare const DashboardView: React.FC;
174
+
175
+ declare const RecordDetailDrawer: React.FC;
176
+
177
+ declare const VERSION = "1.6.219";
178
+
179
+ export { AutomationBuilderModal, BASE_ICON_MAP, BASE_INSPECTOR_COMPONENT_KEY, BASE_INSPECTOR_SIDEBAR_ID, BaseBoltIcon, BaseCalendarIcon, BaseCheckIcon, BaseChevronDownIcon, BaseChevronLeftIcon, BaseChevronRightIcon, BaseCloseIcon, BaseColorIcon, BaseColumnsIcon, BaseDashboardIcon, BaseDownloadIcon, BaseEditIcon, BaseExpandIcon, BaseFieldTypeIcon, BaseFilterIcon, BaseFormIcon, BaseGalleryIcon, BaseGanttIcon, BaseGridIcon, BaseGroupIcon, BaseIndentIcon, BaseInspectorIcon, BaseKanbanIcon, BaseLinkIcon, BaseListIcon, BaseOutdentIcon, BasePlayIcon, BasePlusIcon, BaseSearchIcon, BaseSortIcon, BaseStarSvg, BaseTableIcon, BaseTimelineIcon, BaseTrashIcon, BaseUploadIcon, BaseViewTypeIcon, BasesInspectorPanel, BasesLeftSidebar, BasesMainView, BasesModalsHost, BasesStatusBar, BasesUIController, BasesViewToolbar, CalendarView, DashboardView, FIELD_TYPE_LABELS, FieldConfigPopover, FormView, GalleryView, GanttTimelineView, GridCellEditor, GridView, type ILoadBasePresetOperationParams, type IOpenBaseModalOperationParams, type ISwitchBaseViewTypeOperationParams, type IUniverBasesUIConfig, KanbanView, ListView, LoadBasePresetOperation, OpenBaseModalOperation, RecordDetailDrawer, SwitchBaseViewTypeOperation, ToggleBaseInspectorOperation, UNIVER_BASES_UI_PLUGIN_NAME, UniverBasesUIPlugin, VERSION, basesMenuSchema, openBaseInspectorSidebar };
@@ -0,0 +1,5 @@
1
+ import locale$1 from './zh-CN.js';
2
+
3
+ declare const locale: typeof locale$1;
4
+
5
+ export { locale as default };
@@ -0,0 +1,60 @@
1
+ declare const locale: {
2
+ bases: {
3
+ ribbon: {
4
+ addRecord: string;
5
+ addField: string;
6
+ addTable: string;
7
+ gridView: string;
8
+ listView: string;
9
+ kanbanView: string;
10
+ calendarView: string;
11
+ galleryView: string;
12
+ ganttView: string;
13
+ timelineView: string;
14
+ formView: string;
15
+ dashboardView: string;
16
+ importData: string;
17
+ exportData: string;
18
+ inspector: string;
19
+ };
20
+ sidebar: {
21
+ tablesTitle: string;
22
+ dashboardsTitle: string;
23
+ presetsTitle: string;
24
+ newTable: string;
25
+ inspectorTitle: string;
26
+ presetProject: string;
27
+ presetCrm: string;
28
+ };
29
+ views: {
30
+ grid: string;
31
+ list: string;
32
+ kanban: string;
33
+ calendar: string;
34
+ gallery: string;
35
+ gantt: string;
36
+ timeline: string;
37
+ form: string;
38
+ dashboard: string;
39
+ newView: string;
40
+ };
41
+ toolbar: {
42
+ filter: string;
43
+ sort: string;
44
+ group: string;
45
+ rowColor: string;
46
+ searchPlaceholder: string;
47
+ importBtn: string;
48
+ exportBtn: string;
49
+ addRecord: string;
50
+ addField: string;
51
+ };
52
+ status: {
53
+ records: string;
54
+ fields: string;
55
+ selected: string;
56
+ };
57
+ };
58
+ };
59
+
60
+ export { locale as default };
package/package.json CHANGED
@@ -1,6 +1,82 @@
1
1
  {
2
2
  "name": "@yudaocode/univer-bases-ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.6.219",
4
+ "description": "Univer Bases relational multi-dimensional table unit model, 20+ field types, formula/rollup/lookup engine, commands, and XLSX/CSV codecs — React workbench UI plugin",
5
+ "license": "Apache-2.0",
6
+ "homepage": "https://github.com/yudaocode/yudao-univer#readme",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/yudaocode/yudao-univer.git",
10
+ "directory": "packages/bases-ui"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/yudaocode/yudao-univer/issues"
14
+ },
15
+ "keywords": [
16
+ "univer",
17
+ "yudao",
18
+ "bases",
19
+ "airtable",
20
+ "relational-table",
21
+ "kanban",
22
+ "gantt",
23
+ "plugin",
24
+ "ui",
25
+ "workbench"
26
+ ],
27
+ "publishConfig": {
28
+ "access": "public",
29
+ "registry": "https://registry.npmjs.org/"
30
+ },
31
+ "files": [
32
+ "lib"
33
+ ],
34
+ "main": "./lib/cjs/index.js",
35
+ "module": "./lib/es/index.js",
36
+ "types": "./lib/types/index.d.ts",
37
+ "exports": {
38
+ ".": {
39
+ "types": "./lib/types/index.d.ts",
40
+ "import": "./lib/es/index.js",
41
+ "require": "./lib/cjs/index.js"
42
+ },
43
+ "./locale/zh-CN": {
44
+ "types": "./lib/types/locale/zh-CN.d.ts",
45
+ "import": "./lib/es/locale/zh-CN.js",
46
+ "require": "./lib/cjs/locale/zh-CN.js"
47
+ },
48
+ "./locale/en-US": {
49
+ "types": "./lib/types/locale/en-US.d.ts",
50
+ "import": "./lib/es/locale/en-US.js",
51
+ "require": "./lib/cjs/locale/en-US.js"
52
+ },
53
+ "./lib/index.css": "./lib/index.css",
54
+ "./styles.css": "./lib/index.css",
55
+ "./package.json": "./package.json"
56
+ },
57
+ "peerDependencies": {
58
+ "@univerjs/core": "^1.6.2",
59
+ "@univerjs/design": "^1.6.2",
60
+ "@univerjs/engine-render": "^1.6.2",
61
+ "@univerjs/ui": "^1.6.2",
62
+ "react": ">=18.0.0",
63
+ "react-dom": ">=18.0.0",
64
+ "rxjs": ">=7.0.0",
65
+ "@yudaocode/univer-bases": "^1.6.219"
66
+ },
67
+ "devDependencies": {
68
+ "@univerjs/core": "1.6.2",
69
+ "@univerjs/design": "1.6.2",
70
+ "@univerjs/engine-render": "1.6.2",
71
+ "@univerjs/ui": "1.6.2",
72
+ "react": "^18.3.1",
73
+ "react-dom": "^18.3.1",
74
+ "rxjs": "^7.8.1",
75
+ "@yudaocode/univer-bases": "1.6.219"
76
+ },
77
+ "scripts": {
78
+ "build": "tsup",
79
+ "test": "vitest run",
80
+ "typecheck": "tsc --noEmit"
81
+ }
6
82
  }