@univerjs-pro/bases-ui 0.25.0-insiders.20260608-e4336f7

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 (216) hide show
  1. package/README.md +3 -0
  2. package/lib/cjs/facade.js +1 -0
  3. package/lib/cjs/index.js +1 -0
  4. package/lib/cjs/locale/ar-SA.js +1 -0
  5. package/lib/cjs/locale/ca-ES.js +1 -0
  6. package/lib/cjs/locale/de-DE.js +1 -0
  7. package/lib/cjs/locale/en-US.js +1 -0
  8. package/lib/cjs/locale/es-ES.js +1 -0
  9. package/lib/cjs/locale/fa-IR.js +1 -0
  10. package/lib/cjs/locale/fr-FR.js +1 -0
  11. package/lib/cjs/locale/id-ID.js +1 -0
  12. package/lib/cjs/locale/it-IT.js +1 -0
  13. package/lib/cjs/locale/ja-JP.js +1 -0
  14. package/lib/cjs/locale/ko-KR.js +1 -0
  15. package/lib/cjs/locale/pl-PL.js +1 -0
  16. package/lib/cjs/locale/pt-BR.js +1 -0
  17. package/lib/cjs/locale/ru-RU.js +1 -0
  18. package/lib/cjs/locale/sk-SK.js +1 -0
  19. package/lib/cjs/locale/vi-VN.js +1 -0
  20. package/lib/cjs/locale/zh-CN.js +1 -0
  21. package/lib/cjs/locale/zh-HK.js +1 -0
  22. package/lib/cjs/locale/zh-TW.js +1 -0
  23. package/lib/es/facade.js +1 -0
  24. package/lib/es/index.js +1 -0
  25. package/lib/es/locale/ar-SA.js +1 -0
  26. package/lib/es/locale/ca-ES.js +1 -0
  27. package/lib/es/locale/de-DE.js +1 -0
  28. package/lib/es/locale/en-US.js +1 -0
  29. package/lib/es/locale/es-ES.js +1 -0
  30. package/lib/es/locale/fa-IR.js +1 -0
  31. package/lib/es/locale/fr-FR.js +1 -0
  32. package/lib/es/locale/id-ID.js +1 -0
  33. package/lib/es/locale/it-IT.js +1 -0
  34. package/lib/es/locale/ja-JP.js +1 -0
  35. package/lib/es/locale/ko-KR.js +1 -0
  36. package/lib/es/locale/pl-PL.js +1 -0
  37. package/lib/es/locale/pt-BR.js +1 -0
  38. package/lib/es/locale/ru-RU.js +1 -0
  39. package/lib/es/locale/sk-SK.js +1 -0
  40. package/lib/es/locale/vi-VN.js +1 -0
  41. package/lib/es/locale/zh-CN.js +1 -0
  42. package/lib/es/locale/zh-HK.js +1 -0
  43. package/lib/es/locale/zh-TW.js +1 -0
  44. package/lib/facade.js +1 -0
  45. package/lib/index.css +2533 -0
  46. package/lib/index.js +1 -0
  47. package/lib/locale/ar-SA.js +1 -0
  48. package/lib/locale/ca-ES.js +1 -0
  49. package/lib/locale/de-DE.js +1 -0
  50. package/lib/locale/en-US.js +1 -0
  51. package/lib/locale/es-ES.js +1 -0
  52. package/lib/locale/fa-IR.js +1 -0
  53. package/lib/locale/fr-FR.js +1 -0
  54. package/lib/locale/id-ID.js +1 -0
  55. package/lib/locale/it-IT.js +1 -0
  56. package/lib/locale/ja-JP.js +1 -0
  57. package/lib/locale/ko-KR.js +1 -0
  58. package/lib/locale/pl-PL.js +1 -0
  59. package/lib/locale/pt-BR.js +1 -0
  60. package/lib/locale/ru-RU.js +1 -0
  61. package/lib/locale/sk-SK.js +1 -0
  62. package/lib/locale/vi-VN.js +1 -0
  63. package/lib/locale/zh-CN.js +1 -0
  64. package/lib/locale/zh-HK.js +1 -0
  65. package/lib/locale/zh-TW.js +1 -0
  66. package/lib/types/commands/operations/activate-table.operation.d.ts +6 -0
  67. package/lib/types/commands/operations/activate-view.operation.d.ts +6 -0
  68. package/lib/types/commands/operations/editing.operation.d.ts +9 -0
  69. package/lib/types/commands/operations/keyboard.operation.d.ts +9 -0
  70. package/lib/types/commands/operations/scroll.operation.d.ts +7 -0
  71. package/lib/types/commands/operations/set-selection.operation.d.ts +5 -0
  72. package/lib/types/commands/operations/toolbar-menu.operation.d.ts +37 -0
  73. package/lib/types/commands/operations/zoom.operation.d.ts +6 -0
  74. package/lib/types/components/AddRecordButton.d.ts +6 -0
  75. package/lib/types/components/BaseAttachmentPreview.d.ts +9 -0
  76. package/lib/types/components/BaseCellEditors.d.ts +78 -0
  77. package/lib/types/components/BaseCollaborationStatus.d.ts +24 -0
  78. package/lib/types/components/BaseColorPalette.d.ts +13 -0
  79. package/lib/types/components/BaseConfirmDialog.d.ts +12 -0
  80. package/lib/types/components/BaseIcons.d.ts +19 -0
  81. package/lib/types/components/BaseMenus.d.ts +593 -0
  82. package/lib/types/components/BaseNumberInput.d.ts +14 -0
  83. package/lib/types/components/BaseStandaloneShell.d.ts +139 -0
  84. package/lib/types/components/BaseToolbar.d.ts +49 -0
  85. package/lib/types/components/CardCustomizePanel.d.ts +1 -0
  86. package/lib/types/components/FieldConfigPanel.d.ts +1 -0
  87. package/lib/types/components/FieldMenu.d.ts +44 -0
  88. package/lib/types/components/RecordDetailPanel.d.ts +88 -0
  89. package/lib/types/components/ViewTabs.d.ts +36 -0
  90. package/lib/types/components/base-formula-library.d.ts +25 -0
  91. package/lib/types/config/config.d.ts +46 -0
  92. package/lib/types/controllers/base-keyboard.shortcut.d.ts +9 -0
  93. package/lib/types/controllers/base-render.controller.d.ts +172 -0
  94. package/lib/types/controllers/base-theme.controller.d.ts +7 -0
  95. package/lib/types/controllers/base-ui.controller.d.ts +27 -0
  96. package/lib/types/controllers/menu.d.ts +3 -0
  97. package/lib/types/facade/f-base-rendered-view.d.ts +13 -0
  98. package/lib/types/facade/f-base-ui.d.ts +41 -0
  99. package/lib/types/facade/f-univer.d.ts +12 -0
  100. package/lib/types/facade/index.d.ts +3 -0
  101. package/lib/types/fields/editors/attachment.editor.d.ts +2 -0
  102. package/lib/types/fields/editors/date.editor.d.ts +2 -0
  103. package/lib/types/fields/editors/number.editor.d.ts +5 -0
  104. package/lib/types/fields/editors/person.editor.d.ts +2 -0
  105. package/lib/types/fields/editors/select.editor.d.ts +3 -0
  106. package/lib/types/fields/editors/text.editor.d.ts +2 -0
  107. package/lib/types/fields/field-ui-plugin.d.ts +63 -0
  108. package/lib/types/fields/renderers/attachment.renderer.d.ts +2 -0
  109. package/lib/types/fields/renderers/checkbox.renderer.d.ts +2 -0
  110. package/lib/types/fields/renderers/date.renderer.d.ts +2 -0
  111. package/lib/types/fields/renderers/number.renderer.d.ts +5 -0
  112. package/lib/types/fields/renderers/select.renderer.d.ts +3 -0
  113. package/lib/types/fields/renderers/text.renderer.d.ts +2 -0
  114. package/lib/types/index.d.ts +67 -0
  115. package/lib/types/internal.d.ts +11 -0
  116. package/lib/types/locale/ar-SA.d.ts +3 -0
  117. package/lib/types/locale/ca-ES.d.ts +3 -0
  118. package/lib/types/locale/de-DE.d.ts +3 -0
  119. package/lib/types/locale/en-US.d.ts +1163 -0
  120. package/lib/types/locale/es-ES.d.ts +3 -0
  121. package/lib/types/locale/fa-IR.d.ts +3 -0
  122. package/lib/types/locale/formula/ar-SA.d.ts +1 -0
  123. package/lib/types/locale/formula/ca-ES.d.ts +1 -0
  124. package/lib/types/locale/formula/de-DE.d.ts +1 -0
  125. package/lib/types/locale/formula/en-US.d.ts +707 -0
  126. package/lib/types/locale/formula/es-ES.d.ts +1 -0
  127. package/lib/types/locale/formula/fa-IR.d.ts +1 -0
  128. package/lib/types/locale/formula/fr-FR.d.ts +1 -0
  129. package/lib/types/locale/formula/id-ID.d.ts +1 -0
  130. package/lib/types/locale/formula/it-IT.d.ts +1 -0
  131. package/lib/types/locale/formula/ja-JP.d.ts +1 -0
  132. package/lib/types/locale/formula/ko-KR.d.ts +1 -0
  133. package/lib/types/locale/formula/pl-PL.d.ts +1 -0
  134. package/lib/types/locale/formula/pt-BR.d.ts +1 -0
  135. package/lib/types/locale/formula/ru-RU.d.ts +1 -0
  136. package/lib/types/locale/formula/sk-SK.d.ts +1 -0
  137. package/lib/types/locale/formula/vi-VN.d.ts +1 -0
  138. package/lib/types/locale/formula/zh-CN.d.ts +707 -0
  139. package/lib/types/locale/formula/zh-HK.d.ts +1 -0
  140. package/lib/types/locale/formula/zh-TW.d.ts +1 -0
  141. package/lib/types/locale/fr-FR.d.ts +3 -0
  142. package/lib/types/locale/id-ID.d.ts +3 -0
  143. package/lib/types/locale/it-IT.d.ts +3 -0
  144. package/lib/types/locale/ja-JP.d.ts +3 -0
  145. package/lib/types/locale/ko-KR.d.ts +3 -0
  146. package/lib/types/locale/pl-PL.d.ts +3 -0
  147. package/lib/types/locale/pt-BR.d.ts +3 -0
  148. package/lib/types/locale/ru-RU.d.ts +3 -0
  149. package/lib/types/locale/sk-SK.d.ts +3 -0
  150. package/lib/types/locale/vi-VN.d.ts +3 -0
  151. package/lib/types/locale/zh-CN.d.ts +3 -0
  152. package/lib/types/locale/zh-HK.d.ts +3 -0
  153. package/lib/types/locale/zh-TW.d.ts +3 -0
  154. package/lib/types/menu/schema.d.ts +16 -0
  155. package/lib/types/plugin.d.ts +18 -0
  156. package/lib/types/render/base-canvas-render-component.d.ts +19 -0
  157. package/lib/types/render/base-render-manager.d.ts +17 -0
  158. package/lib/types/render/base-scene.d.ts +239 -0
  159. package/lib/types/render/base-view-render-controller.d.ts +285 -0
  160. package/lib/types/render/canvas-draw-command.d.ts +178 -0
  161. package/lib/types/render/layers/body.layer.d.ts +2 -0
  162. package/lib/types/render/layers/drag.layer.d.ts +2 -0
  163. package/lib/types/render/layers/editor-overlay.layer.d.ts +2 -0
  164. package/lib/types/render/layers/header.layer.d.ts +2 -0
  165. package/lib/types/render/layers/selection.layer.d.ts +2 -0
  166. package/lib/types/search/base-view-search.d.ts +13 -0
  167. package/lib/types/services/base-attachment-io.service.d.ts +21 -0
  168. package/lib/types/services/base-clipboard.service.d.ts +21 -0
  169. package/lib/types/services/base-drag.service.d.ts +19 -0
  170. package/lib/types/services/base-editor.service.d.ts +20 -0
  171. package/lib/types/services/base-field-ui-registry.service.d.ts +15 -0
  172. package/lib/types/services/base-formula-progress.service.d.ts +20 -0
  173. package/lib/types/services/base-layout.service.d.ts +30 -0
  174. package/lib/types/services/base-render.service.d.ts +10 -0
  175. package/lib/types/services/base-selection.service.d.ts +14 -0
  176. package/lib/types/services/base-ui-popup.service.d.ts +27 -0
  177. package/lib/types/services/base-ui-state.service.d.ts +156 -0
  178. package/lib/types/services/base-view-ui-registry.service.d.ts +15 -0
  179. package/lib/types/services/base-workbench-render.service.d.ts +15 -0
  180. package/lib/types/views/base-canvas-render-utils.d.ts +258 -0
  181. package/lib/types/views/base-container/BaseContainer.d.ts +30 -0
  182. package/lib/types/views/calendar/calendar-layout.d.ts +88 -0
  183. package/lib/types/views/calendar/calendar-render-controller.d.ts +7 -0
  184. package/lib/types/views/calendar/calendar-settings-panel.d.ts +1 -0
  185. package/lib/types/views/gallery/gallery-render-controller.d.ts +7 -0
  186. package/lib/types/views/gallery/gallery-settings-panel.d.ts +1 -0
  187. package/lib/types/views/gantt/gantt-layout.d.ts +91 -0
  188. package/lib/types/views/gantt/gantt-render-controller.d.ts +7 -0
  189. package/lib/types/views/gantt/gantt-settings-panel.d.ts +1 -0
  190. package/lib/types/views/grid/grid-render-controller.d.ts +7 -0
  191. package/lib/types/views/grid/grid-settings-panel.d.ts +1 -0
  192. package/lib/types/views/kanban/kanban-render-controller.d.ts +7 -0
  193. package/lib/types/views/kanban/kanban-settings-panel.d.ts +1 -0
  194. package/lib/types/views/view-ui-plugin.d.ts +26 -0
  195. package/lib/umd/facade.js +1 -0
  196. package/lib/umd/index.js +1 -0
  197. package/lib/umd/locale/ar-SA.js +1 -0
  198. package/lib/umd/locale/ca-ES.js +1 -0
  199. package/lib/umd/locale/de-DE.js +1 -0
  200. package/lib/umd/locale/en-US.js +1 -0
  201. package/lib/umd/locale/es-ES.js +1 -0
  202. package/lib/umd/locale/fa-IR.js +1 -0
  203. package/lib/umd/locale/fr-FR.js +1 -0
  204. package/lib/umd/locale/id-ID.js +1 -0
  205. package/lib/umd/locale/it-IT.js +1 -0
  206. package/lib/umd/locale/ja-JP.js +1 -0
  207. package/lib/umd/locale/ko-KR.js +1 -0
  208. package/lib/umd/locale/pl-PL.js +1 -0
  209. package/lib/umd/locale/pt-BR.js +1 -0
  210. package/lib/umd/locale/ru-RU.js +1 -0
  211. package/lib/umd/locale/sk-SK.js +1 -0
  212. package/lib/umd/locale/vi-VN.js +1 -0
  213. package/lib/umd/locale/zh-CN.js +1 -0
  214. package/lib/umd/locale/zh-HK.js +1 -0
  215. package/lib/umd/locale/zh-TW.js +1 -0
  216. package/package.json +98 -0
@@ -0,0 +1,19 @@
1
+ import type { FieldType, ViewType } from '@univerjs/core';
2
+ import type { ReactElement } from 'react';
3
+ export type BaseRowHeightPreset = 'short' | 'medium' | 'tall' | 'extraTall';
4
+ export declare function BasePlusIcon(): ReactElement;
5
+ export declare function BaseChevronDownIcon(): ReactElement;
6
+ export declare function BaseCloseIcon(): ReactElement;
7
+ export declare function BaseViewIcon(props: {
8
+ type: ViewType;
9
+ }): ReactElement;
10
+ export declare function BaseToolbarIcon(props: {
11
+ name: 'record' | 'fields' | 'settings' | 'filter' | 'group' | 'sort' | 'rowHeight' | 'color' | 'undo' | 'redo';
12
+ }): ReactElement;
13
+ export declare function BaseConditionalColorIcon(): ReactElement;
14
+ export declare function BaseRowHeightOptionIcon(props: {
15
+ value: BaseRowHeightPreset;
16
+ }): ReactElement;
17
+ export declare function BaseFieldTypeIcon(props: {
18
+ type: FieldType;
19
+ }): ReactElement;
@@ -0,0 +1,593 @@
1
+ import type { FieldType, FilterConfig, GroupConfig, IViewSnapshot, Rect, SortConfig, ViewType } from '@univerjs/core';
2
+ import type { CSSProperties, MouseEvent, ReactElement, ReactNode, PointerEvent as ReactPointerEvent } from 'react';
3
+ export declare const BASE_CONDITIONAL_COLORING_MENU_MIN_WIDTH = 640;
4
+ export declare const BASE_CONDITIONAL_COLORING_MENU_MAX_WIDTH = 860;
5
+ export declare const BASE_FIELD_CONFIG_PANEL_WIDTH = 360;
6
+ export interface IBaseMenuLabels {
7
+ addRecordTitle: string;
8
+ addBlankRecord: string;
9
+ addFiveBlankRecords: string;
10
+ createViewTitle: string;
11
+ createViewDescription: string;
12
+ viewSettingsTitle: string;
13
+ viewName: string;
14
+ duplicateView: string;
15
+ deleteView: string;
16
+ filterTitle: string;
17
+ value: string;
18
+ newCondition: string;
19
+ groupTitle: string;
20
+ chooseField: string;
21
+ sortTitle: string;
22
+ rowHeightTitle: string;
23
+ rowHeightShort: string;
24
+ rowHeightMedium: string;
25
+ rowHeightTall: string;
26
+ rowHeightExtraTall: string;
27
+ conditionalColoringTitle: string;
28
+ conditionalColoringHelp: string;
29
+ conditionalColoringNew: string;
30
+ conditionalColoringSmart: string;
31
+ conditionalColorTitle: string;
32
+ conditionalCustomColor: string;
33
+ conditionalTargetCell: string;
34
+ conditionalTargetRow: string;
35
+ conditionalTargetColumn: string;
36
+ conditionalEnterValue: string;
37
+ conditionalExactDate: string;
38
+ conditionalToday: string;
39
+ conditionalTomorrow: string;
40
+ conditionalYesterday: string;
41
+ conditionalThisWeek: string;
42
+ conditionalLastWeek: string;
43
+ conditionalThisMonth: string;
44
+ conditionalLastMonth: string;
45
+ conditionalPast7: string;
46
+ conditionalNext7: string;
47
+ conditionalPast30: string;
48
+ conditionalNext30: string;
49
+ conditionalChecked: string;
50
+ conditionalUnchecked: string;
51
+ statusDoneTitle: string;
52
+ statusDoneDescription: string;
53
+ statusBlockedTitle: string;
54
+ statusBlockedDescription: string;
55
+ search: string;
56
+ newField: string;
57
+ newBadge: string;
58
+ fieldTitle: string;
59
+ fieldTitlePlaceholder: string;
60
+ fieldType: string;
61
+ fieldTypeSectionBasic: string;
62
+ fieldTypeSectionBusiness: string;
63
+ fieldTypeSectionAdvanced: string;
64
+ defaultValue: string;
65
+ defaultSettingsReady: string;
66
+ numberFormat: string;
67
+ currencyFormat: string;
68
+ dateFormat: string;
69
+ dateMonthNameExample: string;
70
+ decimalPlaces: string;
71
+ example: string;
72
+ icon: string;
73
+ scale: string;
74
+ options: string;
75
+ referenceOptions: string;
76
+ referenceOptionsHelp: string;
77
+ addOption: string;
78
+ addOptionPlaceholder: string;
79
+ removeOption: string;
80
+ selectOption: string;
81
+ option: string;
82
+ numberingType: string;
83
+ autoIncrement: string;
84
+ custom: string;
85
+ customizeNumbering: string;
86
+ preview: string;
87
+ incremental: string;
88
+ digits: string;
89
+ start: string;
90
+ step: string;
91
+ dateCreated: string;
92
+ customText: string;
93
+ showField: string;
94
+ hideField: string;
95
+ lockedField: string;
96
+ moreFieldActions: string;
97
+ edit: string;
98
+ addFieldToGroup: string;
99
+ delete: string;
100
+ editField: string;
101
+ editFieldDescription: string;
102
+ duplicateField: string;
103
+ insertLeft: string;
104
+ insertRight: string;
105
+ freezeToField: string;
106
+ sortAsc: string;
107
+ sortDesc: string;
108
+ groupByField: (fieldName: string) => string;
109
+ filterByField: (fieldName: string) => string;
110
+ createKanbanWithField: (fieldName: string) => string;
111
+ deleteField: string;
112
+ cancel: string;
113
+ clear: string;
114
+ confirm: string;
115
+ apply: string;
116
+ save: string;
117
+ formulaLocale: string;
118
+ currencySymbol: string;
119
+ thousandsSeparator: string;
120
+ showThousandsSeparator: string;
121
+ largeNumberAbbreviation: string;
122
+ allowNegativeNumbers: string;
123
+ includeTime: string;
124
+ timeFormat: string;
125
+ hour24: string;
126
+ hour12: string;
127
+ none: string;
128
+ recordCreationTime: string;
129
+ selectSpecificDate: string;
130
+ percent: string;
131
+ number: string;
132
+ color: string;
133
+ style: string;
134
+ progressColor: (color: string) => string;
135
+ customProgressBar: string;
136
+ startValue: string;
137
+ targetValue: string;
138
+ allowMultipleMembers: string;
139
+ allowMultipleGroups: string;
140
+ defaultProviderMock: (count: number, entity: string) => string;
141
+ defaultProviderExternal: (entity: string) => string;
142
+ linkPlaceholder: string;
143
+ phonePlaceholder: string;
144
+ searchGroups: string;
145
+ selectGroups: string;
146
+ noProviderGroupData: string;
147
+ noMatchingGroups: string;
148
+ searchMembers: string;
149
+ selectMembers: string;
150
+ noProviderData: string;
151
+ noMatchingMembers: string;
152
+ noFormulaConfigured: string;
153
+ editFormula: string;
154
+ closeFormulaEditor: string;
155
+ formulaHint: string;
156
+ formulaReferenceError: string;
157
+ formulaTables: string;
158
+ formulaFields: string;
159
+ formulaFunctions: string;
160
+ formulaFunction: string;
161
+ formulaParameters: string;
162
+ formulaOptional: string;
163
+ formulaRepeat: string;
164
+ formulaExample: string;
165
+ currentTable: string;
166
+ currentTableField: string;
167
+ fieldFromTable: (tableName: string) => string;
168
+ referenceCurrentField: (fieldName: string) => string;
169
+ referenceTableField: (fieldName: string, tableName: string) => string;
170
+ fieldNameColumn: string;
171
+ fieldTypeColumn: string;
172
+ insertColumn: string;
173
+ insert: string;
174
+ gridContextInsert: string;
175
+ gridContextAbove: string;
176
+ gridContextBelow: string;
177
+ gridContextOpenRecord: string;
178
+ gridContextClearContent: string;
179
+ gridContextDeleteRecord: string;
180
+ gridContextDeleteRecords: string;
181
+ formulaNumberFormatSheetPattern: string;
182
+ formulaFormatType: string;
183
+ formulaCustomPattern: string;
184
+ formulaFormatGeneral: string;
185
+ formulaFormatNumber: string;
186
+ formulaFormatCurrency: string;
187
+ formulaFormatAccounting: string;
188
+ formulaFormatPercent: string;
189
+ formulaFormatDateTime: string;
190
+ customizeKanban: string;
191
+ customizeCard: string;
192
+ eventSettings: string;
193
+ calendarViewSettings: string;
194
+ calendarViewSettingsTitle: string;
195
+ ganttViewSettings: string;
196
+ fieldsCount: (count: number) => string;
197
+ cover: string;
198
+ cardLayout: string;
199
+ normal: string;
200
+ normalDescription: string;
201
+ compose: string;
202
+ composeDescription: string;
203
+ cardSize: string;
204
+ small: string;
205
+ medium: string;
206
+ large: string;
207
+ showFieldNames: string;
208
+ startDate: string;
209
+ endDate: string;
210
+ title: string;
211
+ timeslotSize: string;
212
+ timeslotShort: string;
213
+ timeslotMedium: string;
214
+ timeslotLong: string;
215
+ displayColor: string;
216
+ customizeColor: string;
217
+ alignWithRecords: string;
218
+ timeZone: string;
219
+ localTimeZone: (timeZone: string) => string;
220
+ conditionalColor: string;
221
+ conditionsApplied: (count: number) => string;
222
+ addCondition: string;
223
+ calculateWorkingDaysOnly: string;
224
+ customWorkingDays: string;
225
+ customWorkingDaysHelp: string;
226
+ notSet: string;
227
+ settings: string;
228
+ setWorkingDays: string;
229
+ setWorkingDaysDescription: string;
230
+ closeWorkingDaysSettings: string;
231
+ addWorkingDays: string;
232
+ holidayName: string;
233
+ dayOff: string;
234
+ working: string;
235
+ add: string;
236
+ removeWorkingDayException: string;
237
+ legalWorkingDays: string;
238
+ legalWorkingDaysHelp: string;
239
+ mon: string;
240
+ tue: string;
241
+ wed: string;
242
+ thu: string;
243
+ fri: string;
244
+ sat: string;
245
+ sun: string;
246
+ monFri: string;
247
+ days: (count: number) => string;
248
+ workingDaysSummary: (days: string, exceptionCount: number) => string;
249
+ calendarColor: string;
250
+ editGroupTitle: string;
251
+ groupByFieldFallback: string;
252
+ operatorIs: string;
253
+ operatorIsNot: string;
254
+ operatorContains: string;
255
+ operatorNotContains: string;
256
+ operatorIsEmpty: string;
257
+ operatorIsNotEmpty: string;
258
+ operatorGreaterThan: string;
259
+ operatorLessThan: string;
260
+ operatorBefore: string;
261
+ operatorAfter: string;
262
+ addDescriptionPlaceholder: string;
263
+ numberingDescription: string;
264
+ kanbanGroup: string;
265
+ required: string;
266
+ kanbanGroupHelp: string;
267
+ optionColor: string;
268
+ separatorLocal: string;
269
+ separatorCommaPeriod: string;
270
+ separatorPeriodComma: string;
271
+ separatorSpaceComma: string;
272
+ separatorSpacePeriod: string;
273
+ direction: string;
274
+ groupFirstToLast: string;
275
+ groupLastToFirst: string;
276
+ checkboxIconCheck: string;
277
+ checkboxIconCross: string;
278
+ checkboxIconStar: string;
279
+ checkboxIconHeart: string;
280
+ checkboxIconThumb: string;
281
+ checkboxIconFlag: string;
282
+ checkboxIconDot: string;
283
+ ratingIconStar: string;
284
+ ratingIconHeart: string;
285
+ ratingIconThumb: string;
286
+ ratingIconFire: string;
287
+ ratingIconSmile: string;
288
+ ratingIconLightning: string;
289
+ ratingIconMedal: string;
290
+ increment: string;
291
+ decrement: string;
292
+ }
293
+ export declare const BASE_MENU_DEFAULT_LABELS: IBaseMenuLabels;
294
+ export type BaseFloatingOverlayAnchor = HTMLElement | {
295
+ getBoundingClientRect: () => DOMRect | Rect;
296
+ contains?: (target: Node | null) => boolean;
297
+ };
298
+ export interface IBaseFloatingOverlayOptions {
299
+ width?: number;
300
+ height?: number;
301
+ gap?: number;
302
+ margin?: number;
303
+ dispose?: (element: HTMLElement) => void;
304
+ }
305
+ export interface IBaseFloatingPositionOptions {
306
+ width: number;
307
+ height?: number;
308
+ gap?: number;
309
+ margin?: number;
310
+ minHeight?: number;
311
+ viewportWidth?: number;
312
+ viewportHeight?: number;
313
+ }
314
+ export interface IBaseFloatingPosition {
315
+ left: number;
316
+ top: number;
317
+ width: number;
318
+ maxHeight: number;
319
+ placementY: 'top' | 'bottom';
320
+ placementX: 'left' | 'right' | 'clamped';
321
+ }
322
+ export declare class BaseFloatingOverlayController {
323
+ private readonly _root;
324
+ private _panel;
325
+ private _outsideHandler;
326
+ private _disposePanel;
327
+ constructor(_root: HTMLElement);
328
+ openAnchored(anchor: BaseFloatingOverlayAnchor, mount: (root: HTMLElement) => HTMLElement, options?: IBaseFloatingOverlayOptions): HTMLElement;
329
+ close(): void;
330
+ }
331
+ export declare function getBaseFloatingPosition(anchor: Pick<DOMRect, 'left' | 'top' | 'width' | 'height'> & {
332
+ right?: number;
333
+ bottom?: number;
334
+ }, options: IBaseFloatingPositionOptions): IBaseFloatingPosition;
335
+ export interface IBaseMenuFieldItem {
336
+ id: string;
337
+ name: string;
338
+ type: FieldType;
339
+ config?: Record<string, unknown>;
340
+ hidden?: boolean;
341
+ readonly?: boolean;
342
+ system?: boolean;
343
+ primary?: boolean;
344
+ }
345
+ export interface IBaseFormulaTableItem {
346
+ id: string;
347
+ name: string;
348
+ current?: boolean;
349
+ fields: IBaseMenuFieldItem[];
350
+ }
351
+ export type BaseConditionalColorTarget = 'cell' | 'row' | 'column';
352
+ export type BaseConditionalColorOperator = 'is' | 'isNot' | 'contains' | 'notContains' | 'isEmpty' | 'isNotEmpty' | 'greaterThan' | 'lessThan' | 'before' | 'after';
353
+ export type BaseConditionalDateMode = 'exact' | 'today' | 'tomorrow' | 'yesterday' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'past7' | 'next7' | 'past30' | 'next30';
354
+ export interface IBaseConditionalColorRule {
355
+ id: string;
356
+ color: string;
357
+ target: BaseConditionalColorTarget;
358
+ fieldId: string;
359
+ operator: BaseConditionalColorOperator;
360
+ operand?: unknown;
361
+ dateMode?: BaseConditionalDateMode;
362
+ }
363
+ export interface IBaseMenuOption {
364
+ value: string;
365
+ label: string;
366
+ field?: IBaseMenuFieldItem;
367
+ }
368
+ interface BaseSelectOption {
369
+ id: string;
370
+ name: string;
371
+ color: string;
372
+ }
373
+ export interface IBaseMenuViewItem {
374
+ type: ViewType;
375
+ label: string;
376
+ description: string;
377
+ }
378
+ export interface IBaseFieldTypeCatalogItem {
379
+ type: FieldType;
380
+ name: string;
381
+ section: 'Basic' | 'Business' | 'Advanced';
382
+ isNew?: boolean;
383
+ enabled?: boolean;
384
+ }
385
+ export interface IBaseFieldConfigSubmitInput {
386
+ name: string;
387
+ type: FieldType;
388
+ config: Record<string, unknown>;
389
+ defaultValue: unknown;
390
+ }
391
+ export interface IBasePeopleOption {
392
+ id: string;
393
+ name: string;
394
+ avatar?: string;
395
+ }
396
+ export interface IBaseFloatingMenuProps {
397
+ className?: string;
398
+ style?: CSSProperties;
399
+ children: ReactNode;
400
+ ['data-u-comp']?: string;
401
+ onMouseDown?: (event: MouseEvent<HTMLDivElement>) => void;
402
+ onPointerDown?: (event: ReactPointerEvent<HTMLDivElement>) => void;
403
+ onClick?: (event: MouseEvent<HTMLDivElement>) => void;
404
+ }
405
+ export declare function BaseFloatingMenu(props: IBaseFloatingMenuProps): ReactElement;
406
+ export declare function BaseFieldConfigPanel(props: {
407
+ catalog: IBaseFieldTypeCatalogItem[];
408
+ fields?: IBaseMenuFieldItem[];
409
+ formulaTables?: IBaseFormulaTableItem[];
410
+ personOptions?: IBasePeopleOption[];
411
+ groupOptions?: IBasePeopleOption[];
412
+ existingField?: {
413
+ id?: string;
414
+ name: string;
415
+ type: FieldType;
416
+ config?: Record<string, unknown>;
417
+ defaultValue?: unknown;
418
+ } | null;
419
+ initialName?: string;
420
+ insertLabel?: string;
421
+ labels?: Partial<IBaseMenuLabels>;
422
+ maxHeight?: CSSProperties['maxHeight'];
423
+ onSubmit: (input: IBaseFieldConfigSubmitInput) => void;
424
+ onCancel: () => void;
425
+ }): ReactElement;
426
+ export declare function createDefaultBaseFieldConfig(type: FieldType): Record<string, unknown>;
427
+ export declare function getDefaultBaseFieldValue(type: FieldType, config: Record<string, unknown>): unknown;
428
+ export declare function supportsBaseFieldDefaultValue(type: FieldType): boolean;
429
+ export declare function normalizeBaseMenuOptions(options: unknown, type: FieldType, useFallback?: boolean): BaseSelectOption[];
430
+ export declare function AddRecordMenu(props: {
431
+ labels?: Partial<IBaseMenuLabels>;
432
+ onAdd: (count: number) => void;
433
+ }): ReactElement;
434
+ export declare function AddViewMenu(props: {
435
+ labels?: Partial<IBaseMenuLabels>;
436
+ views: IBaseMenuViewItem[];
437
+ onCreate: (type: ViewType) => void;
438
+ }): ReactElement;
439
+ export declare function ViewSettingsMenu(props: {
440
+ labels?: Partial<IBaseMenuLabels>;
441
+ view: IViewSnapshot;
442
+ onRename: (name: string) => void;
443
+ onDuplicate: () => void;
444
+ onDelete: () => void;
445
+ onCancel: () => void;
446
+ }): ReactElement;
447
+ export declare function FilterMenu(props: {
448
+ labels?: Partial<IBaseMenuLabels>;
449
+ fields: IBaseMenuFieldItem[];
450
+ filter?: FilterConfig | null;
451
+ onApply: (filter: FilterConfig) => void;
452
+ onClear: () => void;
453
+ }): ReactElement;
454
+ export declare function GroupMenu(props: {
455
+ labels?: Partial<IBaseMenuLabels>;
456
+ fields: IBaseMenuFieldItem[];
457
+ groups?: GroupConfig[];
458
+ isGroupable: (field: IBaseMenuFieldItem) => boolean;
459
+ onApply: (groups: GroupConfig[]) => void;
460
+ onClear: () => void;
461
+ }): ReactElement;
462
+ export declare function KanbanGroupMenu(props: {
463
+ labels?: Partial<IBaseMenuLabels>;
464
+ fields: IBaseMenuFieldItem[];
465
+ groupFieldId: string;
466
+ onApply: (fieldId: string) => void;
467
+ }): ReactElement;
468
+ export declare function CustomizeKanbanMenu(props: {
469
+ labels?: Partial<IBaseMenuLabels>;
470
+ fields: IBaseMenuFieldItem[];
471
+ view: IViewSnapshot;
472
+ onUpdate: (patch: Record<string, unknown>) => void;
473
+ onEditField: (fieldId: string) => void;
474
+ onNewField?: () => void;
475
+ title?: string;
476
+ rootClassName?: string;
477
+ showCardSize?: boolean;
478
+ }): ReactElement;
479
+ export declare function CustomizeGalleryMenu(props: {
480
+ labels?: Partial<IBaseMenuLabels>;
481
+ fields: IBaseMenuFieldItem[];
482
+ view: IViewSnapshot;
483
+ onUpdate: (patch: Record<string, unknown>) => void;
484
+ onEditField: (fieldId: string) => void;
485
+ onNewField: () => void;
486
+ }): ReactElement;
487
+ export declare function CalendarEventSettingsMenu(props: {
488
+ labels?: Partial<IBaseMenuLabels>;
489
+ fields: IBaseMenuFieldItem[];
490
+ view: IViewSnapshot;
491
+ onUpdate: (patch: Record<string, unknown>) => void;
492
+ onEditField: (fieldId: string) => void;
493
+ onNewField: () => void;
494
+ }): ReactElement;
495
+ export declare function CalendarViewSettingsMenu(props: {
496
+ labels?: Partial<IBaseMenuLabels>;
497
+ fields: IBaseMenuFieldItem[];
498
+ view: IViewSnapshot;
499
+ onUpdate: (patch: Record<string, unknown>) => void;
500
+ }): ReactElement;
501
+ export declare function GanttViewSettingsMenu(props: {
502
+ fields: IBaseMenuFieldItem[];
503
+ view: IViewSnapshot;
504
+ labels?: Partial<IBaseMenuLabels>;
505
+ onUpdate: (patch: Record<string, unknown>) => void;
506
+ }): ReactElement;
507
+ export declare function KanbanColumnColorMenu(props: {
508
+ labels?: Partial<IBaseMenuLabels>;
509
+ color?: string;
510
+ onChange: (color: string) => void;
511
+ }): ReactElement;
512
+ export declare function KanbanColumnTitleMenu(props: {
513
+ labels?: Partial<IBaseMenuLabels>;
514
+ title: string;
515
+ onSave: (title: string) => void;
516
+ onCancel: () => void;
517
+ }): ReactElement;
518
+ export declare function SortMenu(props: {
519
+ labels?: Partial<IBaseMenuLabels>;
520
+ fields: IBaseMenuFieldItem[];
521
+ sort?: SortConfig[];
522
+ onApply: (sort: SortConfig[]) => void;
523
+ onClear: () => void;
524
+ }): ReactElement;
525
+ export declare function RowHeightMenu(props: {
526
+ labels?: Partial<IBaseMenuLabels>;
527
+ current?: string;
528
+ onChange: (value: 'short' | 'medium' | 'tall' | 'extraTall') => void;
529
+ }): ReactElement;
530
+ export declare function ConditionalColoringMenu(props: {
531
+ labels?: Partial<IBaseMenuLabels>;
532
+ fields?: IBaseMenuFieldItem[];
533
+ rules?: IBaseConditionalColorRule[];
534
+ activeValue?: string;
535
+ onApply?: (value: string) => void;
536
+ onApplyRules?: (rules: IBaseConditionalColorRule[]) => void;
537
+ onClear: () => void;
538
+ }): ReactElement;
539
+ export declare function FieldStatsMenu(props: {
540
+ options: Array<{
541
+ type: string;
542
+ label: string;
543
+ }>;
544
+ currentType: string;
545
+ onSelect: (type: string) => void;
546
+ }): ReactElement;
547
+ export declare function GridContextMenu(props: {
548
+ labels?: Partial<IBaseMenuLabels>;
549
+ mode?: 'cell' | 'range';
550
+ recordId?: string;
551
+ recordIds?: string[];
552
+ onInsertAbove?: (count: number) => void;
553
+ onInsertBelow?: (count: number) => void;
554
+ onOpenRecord?: (recordId: string) => void;
555
+ onClearContent?: () => void;
556
+ onDeleteRecords?: (recordIds: string[]) => void;
557
+ }): ReactElement;
558
+ export declare function CustomizeFieldMenu(props: {
559
+ labels?: Partial<IBaseMenuLabels>;
560
+ fields: IBaseMenuFieldItem[];
561
+ showDragHandles?: boolean;
562
+ onToggleVisible: (fieldId: string) => void;
563
+ onEdit: (fieldId: string) => void;
564
+ onMore?: (fieldId: string, anchor: HTMLElement) => void;
565
+ onMoveField?: (fieldId: string, target: {
566
+ beforeFieldId?: string;
567
+ afterFieldId?: string;
568
+ }) => void;
569
+ onAddFieldToGroup?: (fieldId: string) => void;
570
+ onDelete?: (fieldId: string) => void;
571
+ onNewField: () => void;
572
+ }): ReactElement;
573
+ export declare function FieldRowActionMenu(props: {
574
+ labels?: Partial<IBaseMenuLabels>;
575
+ onEdit: () => void;
576
+ onGroup: () => void;
577
+ onDelete: () => void;
578
+ }): ReactElement;
579
+ export type FieldHeaderMenuAction = 'edit' | 'description' | 'conditional' | 'duplicate' | 'hide' | 'insert-left' | 'insert-right' | 'freeze' | 'sort-asc' | 'sort-desc' | 'group' | 'filter' | 'kanban' | 'delete';
580
+ export declare function BaseFieldDescriptionPanel(props: {
581
+ labels?: Partial<IBaseMenuLabels>;
582
+ fieldName: string;
583
+ value?: string;
584
+ onSave: (value: string) => void;
585
+ onCancel: () => void;
586
+ }): ReactElement;
587
+ export declare function FieldHeaderMenu(props: {
588
+ labels?: Partial<IBaseMenuLabels>;
589
+ fieldName: string;
590
+ primary?: boolean;
591
+ onAction: (action: FieldHeaderMenuAction) => void;
592
+ }): ReactElement;
593
+ export {};
@@ -0,0 +1,14 @@
1
+ export interface IBaseNumberInputProps {
2
+ value: number | null;
3
+ min?: number;
4
+ max?: number;
5
+ step?: number;
6
+ allowEmpty?: boolean;
7
+ showControls?: boolean;
8
+ className?: string;
9
+ inputClassName?: string;
10
+ incrementLabel?: string;
11
+ decrementLabel?: string;
12
+ onChange: (value: number | null) => void;
13
+ }
14
+ export declare const BaseNumberInput: import("react").ForwardRefExoticComponent<IBaseNumberInputProps & import("react").RefAttributes<HTMLInputElement>>;