@yudaocode/univer-bases-ui 1.6.218 → 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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  en_US_default
3
- } from "../chunk-7QP7AUQ5.js";
3
+ } from "../chunk-S5N3EF6I.js";
4
4
  import "../chunk-BRKEJJFQ.js";
5
5
  export {
6
6
  en_US_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  zh_CN_default
3
- } from "../chunk-NBBZZM27.js";
3
+ } from "../chunk-BXSQSOFB.js";
4
4
  import "../chunk-BRKEJJFQ.js";
5
5
  export {
6
6
  zh_CN_default as default
package/lib/index.css CHANGED
@@ -1864,3 +1864,263 @@
1864
1864
  color: #065f46;
1865
1865
  font-size: 12.5px;
1866
1866
  }
1867
+
1868
+ /* 8. Hierarchical List / Tree View */
1869
+ .univer-bases-list-view {
1870
+ flex: 1;
1871
+ min-height: 0;
1872
+ display: flex;
1873
+ flex-direction: column;
1874
+ background: #ffffff;
1875
+ }
1876
+
1877
+ .univer-bases-list-scroll {
1878
+ flex: 1;
1879
+ overflow-y: auto;
1880
+ }
1881
+
1882
+ .univer-bases-list-header {
1883
+ position: sticky;
1884
+ top: 0;
1885
+ z-index: 10;
1886
+ display: grid;
1887
+ grid-template-columns: minmax(260px, 1.5fr) minmax(220px, 1.2fr) 170px;
1888
+ align-items: center;
1889
+ padding: 8px 14px;
1890
+ background: #f8fafc;
1891
+ border-bottom: 1px solid #e2e8f0;
1892
+ font-size: 12px;
1893
+ font-weight: 600;
1894
+ color: #475569;
1895
+ }
1896
+
1897
+ .univer-bases-list-col-actions {
1898
+ text-align: right;
1899
+ }
1900
+
1901
+ .univer-bases-list-rows {
1902
+ display: flex;
1903
+ flex-direction: column;
1904
+ }
1905
+
1906
+ .univer-bases-list-row {
1907
+ display: grid;
1908
+ grid-template-columns: minmax(260px, 1.5fr) minmax(220px, 1.2fr) 170px;
1909
+ align-items: center;
1910
+ min-height: 42px;
1911
+ padding: 4px 14px 4px 0;
1912
+ border-bottom: 1px solid #f1f5f9;
1913
+ cursor: pointer;
1914
+ transition: background 0.12s ease;
1915
+ }
1916
+
1917
+ .univer-bases-list-row:hover {
1918
+ background: #f8fafc;
1919
+ }
1920
+
1921
+ .univer-bases-list-row__main {
1922
+ position: relative;
1923
+ display: flex;
1924
+ align-items: center;
1925
+ gap: 7px;
1926
+ min-width: 0;
1927
+ }
1928
+
1929
+ .univer-bases-list-indent-guide {
1930
+ width: 10px;
1931
+ height: 12px;
1932
+ border-left: 1.5px solid #cbd5e1;
1933
+ border-bottom: 1.5px solid #cbd5e1;
1934
+ border-bottom-left-radius: 3px;
1935
+ margin-right: 2px;
1936
+ flex-shrink: 0;
1937
+ }
1938
+
1939
+ .univer-bases-list-leaf-dot {
1940
+ width: 6px;
1941
+ height: 6px;
1942
+ border-radius: 50%;
1943
+ background: #94a3b8;
1944
+ margin: 0 5px;
1945
+ flex-shrink: 0;
1946
+ }
1947
+
1948
+ .univer-bases-list-row__title {
1949
+ font-weight: 500;
1950
+ color: #0f172a;
1951
+ overflow: hidden;
1952
+ text-overflow: ellipsis;
1953
+ white-space: nowrap;
1954
+ }
1955
+
1956
+ .univer-bases-list-row__badges {
1957
+ display: flex;
1958
+ align-items: center;
1959
+ gap: 8px;
1960
+ flex-wrap: wrap;
1961
+ }
1962
+
1963
+ .univer-bases-list-row__actions {
1964
+ display: flex;
1965
+ align-items: center;
1966
+ justify-content: flex-end;
1967
+ gap: 4px;
1968
+ }
1969
+
1970
+ /* Conditional Form Field Rules */
1971
+ .univer-bases-form-design-block {
1972
+ display: flex;
1973
+ flex-direction: column;
1974
+ gap: 6px;
1975
+ }
1976
+
1977
+ .univer-bases-form-cond-box {
1978
+ margin-left: 18px;
1979
+ padding: 10px 12px;
1980
+ background: #eff6ff;
1981
+ border: 1px solid #bfdbfe;
1982
+ border-radius: 8px;
1983
+ display: flex;
1984
+ flex-direction: column;
1985
+ gap: 8px;
1986
+ }
1987
+
1988
+ /* Multi-Section & 2-Column Record Detail Drawer */
1989
+ .univer-bases-drawer.is-two-col {
1990
+ width: 640px;
1991
+ }
1992
+
1993
+ .univer-bases-drawer__layout-bar {
1994
+ display: flex;
1995
+ align-items: center;
1996
+ justify-content: space-between;
1997
+ padding: 8px 18px;
1998
+ background: #f8fafc;
1999
+ border-bottom: 1px solid #e2e8f0;
2000
+ }
2001
+
2002
+ .univer-bases-drawer__new-section {
2003
+ padding: 12px 18px;
2004
+ background: #eff6ff;
2005
+ border-bottom: 1px solid #bfdbfe;
2006
+ display: flex;
2007
+ flex-direction: column;
2008
+ gap: 10px;
2009
+ }
2010
+
2011
+ .univer-bases-drawer__section {
2012
+ border: 1px solid #e2e8f0;
2013
+ border-radius: 10px;
2014
+ padding: 10px 12px;
2015
+ background: #ffffff;
2016
+ display: flex;
2017
+ flex-direction: column;
2018
+ gap: 10px;
2019
+ }
2020
+
2021
+ .univer-bases-drawer__section-header {
2022
+ display: flex;
2023
+ align-items: center;
2024
+ justify-content: space-between;
2025
+ }
2026
+
2027
+ .univer-bases-drawer__section-toggle {
2028
+ display: inline-flex;
2029
+ align-items: center;
2030
+ gap: 6px;
2031
+ border: none;
2032
+ background: transparent;
2033
+ padding: 2px 4px;
2034
+ cursor: pointer;
2035
+ color: #0f172a;
2036
+ font-size: 13px;
2037
+ }
2038
+
2039
+ .univer-bases-drawer__fields-grid {
2040
+ display: grid;
2041
+ gap: 12px;
2042
+ }
2043
+
2044
+ .univer-bases-drawer__fields-grid.is-one-column {
2045
+ grid-template-columns: 1fr;
2046
+ }
2047
+
2048
+ .univer-bases-drawer__fields-grid.is-two-columns {
2049
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2050
+ }
2051
+
2052
+ /* Visual Automation Builder Modal */
2053
+ .univer-bases-modal--automation {
2054
+ width: 680px;
2055
+ max-height: 86vh;
2056
+ display: flex;
2057
+ flex-direction: column;
2058
+ gap: 12px;
2059
+ }
2060
+
2061
+ .univer-bases-auto-builder-body,
2062
+ .univer-bases-auto-logs-panel {
2063
+ overflow-y: auto;
2064
+ max-height: 62vh;
2065
+ display: flex;
2066
+ flex-direction: column;
2067
+ gap: 12px;
2068
+ padding-right: 4px;
2069
+ }
2070
+
2071
+ .univer-bases-auto-grid-2 {
2072
+ display: grid;
2073
+ grid-template-columns: 1fr 1fr;
2074
+ gap: 12px;
2075
+ }
2076
+
2077
+ .univer-bases-auto-stage-card {
2078
+ border: 1px solid #e2e8f0;
2079
+ border-radius: 10px;
2080
+ padding: 12px;
2081
+ background: #f8fafc;
2082
+ display: flex;
2083
+ flex-direction: column;
2084
+ gap: 8px;
2085
+ }
2086
+
2087
+ .univer-bases-auto-stage-title {
2088
+ font-weight: 600;
2089
+ color: #1e293b;
2090
+ font-size: 12.5px;
2091
+ }
2092
+
2093
+ .univer-bases-auto-step-list {
2094
+ display: flex;
2095
+ flex-direction: column;
2096
+ gap: 8px;
2097
+ }
2098
+
2099
+ .univer-bases-auto-step-card {
2100
+ border: 1px solid #cbd5e1;
2101
+ border-radius: 8px;
2102
+ padding: 10px;
2103
+ background: #ffffff;
2104
+ }
2105
+
2106
+ .univer-bases-auto-log-item {
2107
+ border: 1px solid #e2e8f0;
2108
+ border-radius: 8px;
2109
+ padding: 10px 12px;
2110
+ background: #f8fafc;
2111
+ display: flex;
2112
+ flex-direction: column;
2113
+ gap: 4px;
2114
+ }
2115
+
2116
+ .univer-bases-auto-status--success {
2117
+ background: #ecfdf5;
2118
+ color: #059669;
2119
+ border-color: #a7f3d0;
2120
+ }
2121
+
2122
+ .univer-bases-auto-status--error {
2123
+ background: #fef2f2;
2124
+ color: #dc2626;
2125
+ border-color: #fecaca;
2126
+ }
@@ -62,6 +62,13 @@ declare const BaseGalleryIcon: React.FC<IIconProps>;
62
62
  declare const BaseGanttIcon: React.FC<IIconProps>;
63
63
  declare const BaseTimelineIcon: React.FC<IIconProps>;
64
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>;
65
72
  declare const BaseDashboardIcon: React.FC<IIconProps>;
66
73
  declare const BasePlusIcon: React.FC<IIconProps>;
67
74
  declare const BaseFilterIcon: React.FC<IIconProps>;
@@ -102,6 +109,8 @@ declare const BasesInspectorPanel: React.FC;
102
109
 
103
110
  declare const BasesModalsHost: React.FC;
104
111
 
112
+ declare const AutomationBuilderModal: React.FC;
113
+
105
114
  declare const BasesViewToolbar: React.FC<{
106
115
  table: IBaseTable;
107
116
  activeView: IBaseView;
@@ -136,6 +145,10 @@ declare const FieldConfigPopover: React.FC<{
136
145
  onClose: () => void;
137
146
  }>;
138
147
 
148
+ declare const ListView: React.FC<{
149
+ query: IBaseViewQueryResult;
150
+ }>;
151
+
139
152
  declare const KanbanView: React.FC<{
140
153
  query: IBaseViewQueryResult;
141
154
  }>;
@@ -161,6 +174,6 @@ declare const DashboardView: React.FC;
161
174
 
162
175
  declare const RecordDetailDrawer: React.FC;
163
176
 
164
- declare const VERSION = "1.6.218";
177
+ declare const VERSION = "1.6.219";
165
178
 
166
- export { BASE_ICON_MAP, BASE_INSPECTOR_COMPONENT_KEY, BASE_INSPECTOR_SIDEBAR_ID, BaseCalendarIcon, BaseCheckIcon, BaseChevronDownIcon, BaseChevronLeftIcon, BaseChevronRightIcon, BaseCloseIcon, BaseColorIcon, BaseDashboardIcon, BaseDownloadIcon, BaseExpandIcon, BaseFieldTypeIcon, BaseFilterIcon, BaseFormIcon, BaseGalleryIcon, BaseGanttIcon, BaseGridIcon, BaseGroupIcon, BaseInspectorIcon, BaseKanbanIcon, BaseLinkIcon, 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, LoadBasePresetOperation, OpenBaseModalOperation, RecordDetailDrawer, SwitchBaseViewTypeOperation, ToggleBaseInspectorOperation, UNIVER_BASES_UI_PLUGIN_NAME, UniverBasesUIPlugin, VERSION, basesMenuSchema, openBaseInspectorSidebar };
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 };
@@ -5,6 +5,7 @@ declare const locale: {
5
5
  addField: string;
6
6
  addTable: string;
7
7
  gridView: string;
8
+ listView: string;
8
9
  kanbanView: string;
9
10
  calendarView: string;
10
11
  galleryView: string;
@@ -27,6 +28,7 @@ declare const locale: {
27
28
  };
28
29
  views: {
29
30
  grid: string;
31
+ list: string;
30
32
  kanban: string;
31
33
  calendar: string;
32
34
  gallery: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yudaocode/univer-bases-ui",
3
- "version": "1.6.218",
3
+ "version": "1.6.219",
4
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
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/yudaocode/yudao-univer#readme",
@@ -62,7 +62,7 @@
62
62
  "react": ">=18.0.0",
63
63
  "react-dom": ">=18.0.0",
64
64
  "rxjs": ">=7.0.0",
65
- "@yudaocode/univer-bases": "^1.6.218"
65
+ "@yudaocode/univer-bases": "^1.6.219"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@univerjs/core": "1.6.2",
@@ -72,7 +72,7 @@
72
72
  "react": "^18.3.1",
73
73
  "react-dom": "^18.3.1",
74
74
  "rxjs": "^7.8.1",
75
- "@yudaocode/univer-bases": "1.6.218"
75
+ "@yudaocode/univer-bases": "1.6.219"
76
76
  },
77
77
  "scripts": {
78
78
  "build": "tsup",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/locale/en-US.ts"],"sourcesContent":["import type zhCN from './zh-CN';\n\nconst locale: typeof zhCN = {\n bases: {\n ribbon: {\n addRecord: 'Add Record',\n addField: 'Add Field',\n addTable: 'New Table',\n gridView: 'Grid View',\n kanbanView: 'Kanban View',\n calendarView: 'Calendar View',\n galleryView: 'Gallery View',\n ganttView: 'Gantt View',\n timelineView: 'Timeline View',\n formView: 'Form View',\n dashboardView: 'Dashboard',\n importData: 'Import XLSX/CSV',\n exportData: 'Export XLSX/CSV',\n inspector: 'Schema Inspector',\n },\n sidebar: {\n tablesTitle: 'Tables',\n dashboardsTitle: 'Dashboards',\n presetsTitle: 'Templates',\n newTable: 'New Table',\n inspectorTitle: 'Base Schema & Automations',\n presetProject: 'R&D Project & Sprint Tracker',\n presetCrm: 'Enterprise CRM & Deals',\n },\n views: {\n grid: 'Grid',\n kanban: 'Kanban',\n calendar: 'Calendar',\n gallery: 'Gallery',\n gantt: 'Gantt',\n timeline: 'Timeline',\n form: 'Form',\n dashboard: 'Dashboard',\n newView: 'New View',\n },\n toolbar: {\n filter: 'Filter',\n sort: 'Sort',\n group: 'Group',\n rowColor: 'Row Color',\n searchPlaceholder: 'Search records...',\n importBtn: 'Import',\n exportBtn: 'Export',\n addRecord: 'New Record',\n addField: 'Add Field',\n },\n status: {\n records: 'records',\n fields: 'fields',\n selected: 'selected',\n },\n },\n};\n\nexport default locale;\n"],"mappings":";AAEA,IAAM,SAAsB;AAAA,EAC1B,OAAO;AAAA,IACL,QAAQ;AAAA,MACN,WAAW;AAAA,MACX,UAAU;AAAA,MACV,UAAU;AAAA,MACV,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,cAAc;AAAA,MACd,aAAa;AAAA,MACb,WAAW;AAAA,MACX,cAAc;AAAA,MACd,UAAU;AAAA,MACV,eAAe;AAAA,MACf,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,WAAW;AAAA,IACb;AAAA,IACA,SAAS;AAAA,MACP,aAAa;AAAA,MACb,iBAAiB;AAAA,MACjB,cAAc;AAAA,MACd,UAAU;AAAA,MACV,gBAAgB;AAAA,MAChB,eAAe;AAAA,MACf,WAAW;AAAA,IACb;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,SAAS;AAAA,MACT,OAAO;AAAA,MACP,UAAU;AAAA,MACV,MAAM;AAAA,MACN,WAAW;AAAA,MACX,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,OAAO;AAAA,MACP,UAAU;AAAA,MACV,mBAAmB;AAAA,MACnB,WAAW;AAAA,MACX,WAAW;AAAA,MACX,WAAW;AAAA,MACX,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,EACF;AACF;AAEA,IAAO,gBAAQ;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/locale/zh-CN.ts"],"sourcesContent":["const locale = {\n bases: {\n ribbon: {\n addRecord: '新增记录',\n addField: '新增字段',\n addTable: '新建数据表',\n gridView: '表格视图',\n kanbanView: '看板视图',\n calendarView: '日历视图',\n galleryView: '画廊视图',\n ganttView: '甘特图',\n timelineView: '时间轴',\n formView: '表单视图',\n dashboardView: '数据仪表盘',\n importData: '导入 XLSX/CSV',\n exportData: '导出 XLSX/CSV',\n inspector: '结构配置面板',\n },\n sidebar: {\n tablesTitle: '数据表目录',\n dashboardsTitle: '数据仪表盘',\n presetsTitle: '业务模板库',\n newTable: '新建数据表',\n inspectorTitle: '多维表结构与自动化',\n presetProject: '研发项目与冲刺协同',\n presetCrm: '政企客户与商机管理',\n },\n views: {\n grid: '表格',\n kanban: '看板',\n calendar: '日历',\n gallery: '画廊',\n gantt: '甘特图',\n timeline: '时间轴',\n form: '表单',\n dashboard: '仪表盘',\n newView: '新建视图',\n },\n toolbar: {\n filter: '筛选',\n sort: '排序',\n group: '分组',\n rowColor: '条件着色',\n searchPlaceholder: '搜索当前表记录...',\n importBtn: '导入',\n exportBtn: '导出',\n addRecord: '新增记录',\n addField: '新增字段',\n },\n status: {\n records: '条记录',\n fields: '个字段',\n selected: '已选中',\n },\n },\n};\n\nexport default locale;\n"],"mappings":";AAAA,IAAM,SAAS;AAAA,EACb,OAAO;AAAA,IACL,QAAQ;AAAA,MACN,WAAW;AAAA,MACX,UAAU;AAAA,MACV,UAAU;AAAA,MACV,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,cAAc;AAAA,MACd,aAAa;AAAA,MACb,WAAW;AAAA,MACX,cAAc;AAAA,MACd,UAAU;AAAA,MACV,eAAe;AAAA,MACf,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,WAAW;AAAA,IACb;AAAA,IACA,SAAS;AAAA,MACP,aAAa;AAAA,MACb,iBAAiB;AAAA,MACjB,cAAc;AAAA,MACd,UAAU;AAAA,MACV,gBAAgB;AAAA,MAChB,eAAe;AAAA,MACf,WAAW;AAAA,IACb;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,SAAS;AAAA,MACT,OAAO;AAAA,MACP,UAAU;AAAA,MACV,MAAM;AAAA,MACN,WAAW;AAAA,MACX,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,OAAO;AAAA,MACP,UAAU;AAAA,MACV,mBAAmB;AAAA,MACnB,WAAW;AAAA,MACX,WAAW;AAAA,MACX,WAAW;AAAA,MACX,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,EACF;AACF;AAEA,IAAO,gBAAQ;","names":[]}