@hcengineering/view 0.7.0
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.
- package/lib/index.js +299 -0
- package/lib/index.js.map +7 -0
- package/lib/types.js +31 -0
- package/lib/types.js.map +7 -0
- package/lib/utils.js +45 -0
- package/lib/utils.js.map +7 -0
- package/package.json +49 -0
- package/tsconfig.json +12 -0
- package/types/index.d.ts +334 -0
- package/types/index.d.ts.map +1 -0
- package/types/types.d.ts +653 -0
- package/types/types.d.ts.map +1 -0
- package/types/utils.d.ts +5 -0
- package/types/utils.d.ts.map +1 -0
package/lib/index.js
ADDED
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var index_exports = {};
|
|
21
|
+
__export(index_exports, {
|
|
22
|
+
default: () => index_default,
|
|
23
|
+
viewId: () => viewId
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
26
|
+
var import_platform = require("@hcengineering/platform");
|
|
27
|
+
__reExport(index_exports, require("./types"), module.exports);
|
|
28
|
+
__reExport(index_exports, require("./utils"), module.exports);
|
|
29
|
+
const viewId = "view";
|
|
30
|
+
const view = (0, import_platform.plugin)(viewId, {
|
|
31
|
+
mixin: {
|
|
32
|
+
ClassFilters: "",
|
|
33
|
+
AttributeFilter: "",
|
|
34
|
+
AttributeEditor: "",
|
|
35
|
+
CollectionPresenter: "",
|
|
36
|
+
CollectionEditor: "",
|
|
37
|
+
InlineAttributEditor: "",
|
|
38
|
+
ArrayEditor: "",
|
|
39
|
+
AttributePresenter: "",
|
|
40
|
+
ActivityAttributePresenter: "",
|
|
41
|
+
ListItemPresenter: "",
|
|
42
|
+
ObjectEditor: "",
|
|
43
|
+
ObjectPresenter: "",
|
|
44
|
+
ObjectEditorHeader: "",
|
|
45
|
+
ObjectEditorFooter: "",
|
|
46
|
+
ObjectPanelFooter: "",
|
|
47
|
+
ObjectValidator: "",
|
|
48
|
+
ObjectFactory: "",
|
|
49
|
+
ObjectTitle: "",
|
|
50
|
+
ObjectIdentifier: "",
|
|
51
|
+
ReferenceObjectProvider: "",
|
|
52
|
+
ObjectTooltip: "",
|
|
53
|
+
SpaceHeader: "",
|
|
54
|
+
SpaceName: "",
|
|
55
|
+
IgnoreActions: "",
|
|
56
|
+
PreviewPresenter: "",
|
|
57
|
+
ListHeaderExtra: "",
|
|
58
|
+
SortFuncs: "",
|
|
59
|
+
AllValuesFunc: "",
|
|
60
|
+
ObjectPanel: "",
|
|
61
|
+
LinkProvider: "",
|
|
62
|
+
LinkIdProvider: "",
|
|
63
|
+
SpacePresenter: "",
|
|
64
|
+
AttributeFilterPresenter: "",
|
|
65
|
+
Aggregation: "",
|
|
66
|
+
Groupping: "",
|
|
67
|
+
ObjectIcon: "",
|
|
68
|
+
CustomObjectLinkProvider: ""
|
|
69
|
+
},
|
|
70
|
+
class: {
|
|
71
|
+
ViewletPreference: "",
|
|
72
|
+
ViewletDescriptor: "",
|
|
73
|
+
Viewlet: "",
|
|
74
|
+
Action: "",
|
|
75
|
+
ActionCategory: "",
|
|
76
|
+
LinkPresenter: "",
|
|
77
|
+
FilterMode: "",
|
|
78
|
+
FilteredView: "",
|
|
79
|
+
AttrPresenter: ""
|
|
80
|
+
},
|
|
81
|
+
action: {
|
|
82
|
+
Delete: "",
|
|
83
|
+
Archive: "",
|
|
84
|
+
UnArchive: "",
|
|
85
|
+
Join: "",
|
|
86
|
+
Leave: "",
|
|
87
|
+
Move: "",
|
|
88
|
+
MoveLeft: "",
|
|
89
|
+
MoveRight: "",
|
|
90
|
+
MoveUp: "",
|
|
91
|
+
MoveDown: "",
|
|
92
|
+
SelectItem: "",
|
|
93
|
+
SelectItemAll: "",
|
|
94
|
+
SelectItemNone: "",
|
|
95
|
+
SelectUp: "",
|
|
96
|
+
SelectDown: "",
|
|
97
|
+
ShowPreview: "",
|
|
98
|
+
ShowActions: "",
|
|
99
|
+
Preview: "",
|
|
100
|
+
// Edit document
|
|
101
|
+
Open: "",
|
|
102
|
+
OpenInNewTab: "",
|
|
103
|
+
RemoveRelation: "",
|
|
104
|
+
CopyLink: ""
|
|
105
|
+
},
|
|
106
|
+
viewlet: {
|
|
107
|
+
Table: "",
|
|
108
|
+
List: "",
|
|
109
|
+
MasterDetail: "",
|
|
110
|
+
Tree: "",
|
|
111
|
+
Document: ""
|
|
112
|
+
},
|
|
113
|
+
component: {
|
|
114
|
+
ActionsPopup: "",
|
|
115
|
+
ObjectPresenter: "",
|
|
116
|
+
EditDoc: "",
|
|
117
|
+
SpacePresenter: "",
|
|
118
|
+
BooleanTruePresenter: "",
|
|
119
|
+
ValueSelector: "",
|
|
120
|
+
GrowPresenter: "",
|
|
121
|
+
DividerPresenter: "",
|
|
122
|
+
IconWithEmoji: "",
|
|
123
|
+
AttachedDocPanel: "",
|
|
124
|
+
ObjectMention: "",
|
|
125
|
+
SearchSelector: "",
|
|
126
|
+
FoldersBrowser: "",
|
|
127
|
+
PersonIdPresenter: "",
|
|
128
|
+
PersonIdFilter: "",
|
|
129
|
+
RolePresenter: "",
|
|
130
|
+
ReadOnlyNotification: "",
|
|
131
|
+
ForbiddenNotification: "",
|
|
132
|
+
DatePresenter: "",
|
|
133
|
+
DateEditor: ""
|
|
134
|
+
},
|
|
135
|
+
ids: {
|
|
136
|
+
IconWithEmoji: ""
|
|
137
|
+
},
|
|
138
|
+
string: {
|
|
139
|
+
CustomizeView: "",
|
|
140
|
+
LabelNA: "",
|
|
141
|
+
View: "",
|
|
142
|
+
FilteredViews: "",
|
|
143
|
+
NewFilteredView: "",
|
|
144
|
+
FilteredViewName: "",
|
|
145
|
+
Move: "",
|
|
146
|
+
MoveClass: "",
|
|
147
|
+
SelectToMove: "",
|
|
148
|
+
Cancel: "",
|
|
149
|
+
List: "",
|
|
150
|
+
Grid: "",
|
|
151
|
+
AddSavedView: "",
|
|
152
|
+
Timeline: "",
|
|
153
|
+
Public: "",
|
|
154
|
+
Hide: "",
|
|
155
|
+
Rename: "",
|
|
156
|
+
Assigned: "",
|
|
157
|
+
Open: "",
|
|
158
|
+
OpenInNewTab: "",
|
|
159
|
+
Created: "",
|
|
160
|
+
Delete: "",
|
|
161
|
+
Then: "",
|
|
162
|
+
Or: "",
|
|
163
|
+
Subscribed: "",
|
|
164
|
+
HyperlinkPlaceholder: "",
|
|
165
|
+
CopyToClipboard: "",
|
|
166
|
+
NoGrouping: "",
|
|
167
|
+
Type: "",
|
|
168
|
+
UnArchive: "",
|
|
169
|
+
Archive: "",
|
|
170
|
+
Save: "",
|
|
171
|
+
PublicView: "",
|
|
172
|
+
Archived: "",
|
|
173
|
+
MoreActions: "",
|
|
174
|
+
Pin: "",
|
|
175
|
+
Unpin: "",
|
|
176
|
+
Join: "",
|
|
177
|
+
Leave: "",
|
|
178
|
+
Copied: "",
|
|
179
|
+
And: "",
|
|
180
|
+
Title: "",
|
|
181
|
+
DeleteObject: "",
|
|
182
|
+
DeleteObjectConfirm: "",
|
|
183
|
+
RemoveRelationConfirmation: "",
|
|
184
|
+
RemoveRelation: "",
|
|
185
|
+
MasterDetail: "",
|
|
186
|
+
Tree: "",
|
|
187
|
+
Document: "",
|
|
188
|
+
Loading: "",
|
|
189
|
+
ReadOnlyWarningTitle: "",
|
|
190
|
+
ReadOnlyWarningMessage: "",
|
|
191
|
+
ReadOnlySignUp: "",
|
|
192
|
+
ReadOnlyJoinWorkspace: "",
|
|
193
|
+
PermissionWarningTitle: "",
|
|
194
|
+
PermissionWarningMessage: "",
|
|
195
|
+
Icon: "",
|
|
196
|
+
Select: "",
|
|
197
|
+
Color: "",
|
|
198
|
+
AutomationOnly: ""
|
|
199
|
+
},
|
|
200
|
+
icon: {
|
|
201
|
+
Table: "",
|
|
202
|
+
List: "",
|
|
203
|
+
Card: "",
|
|
204
|
+
Timeline: "",
|
|
205
|
+
Delete: "",
|
|
206
|
+
MoreH: "",
|
|
207
|
+
Move: "",
|
|
208
|
+
Archive: "",
|
|
209
|
+
Statuses: "",
|
|
210
|
+
Setting: "",
|
|
211
|
+
Open: "",
|
|
212
|
+
Edit: "",
|
|
213
|
+
CopyId: "",
|
|
214
|
+
CopyLink: "",
|
|
215
|
+
ArrowRight: "",
|
|
216
|
+
Views: "",
|
|
217
|
+
Pin: "",
|
|
218
|
+
Model: "",
|
|
219
|
+
DevModel: "",
|
|
220
|
+
ViewButton: "",
|
|
221
|
+
Filter: "",
|
|
222
|
+
Configure: "",
|
|
223
|
+
Database: "",
|
|
224
|
+
Star: "",
|
|
225
|
+
Eye: "",
|
|
226
|
+
EyeCrossed: "",
|
|
227
|
+
Bubble: "",
|
|
228
|
+
CheckCircle: "",
|
|
229
|
+
Add: "",
|
|
230
|
+
Image: "",
|
|
231
|
+
Table2: "",
|
|
232
|
+
CodeBlock: "",
|
|
233
|
+
SeparatorLine: "",
|
|
234
|
+
Circle: "",
|
|
235
|
+
Join: "",
|
|
236
|
+
Leave: "",
|
|
237
|
+
Copy: "",
|
|
238
|
+
TodoList: "",
|
|
239
|
+
DetailsFilled: "",
|
|
240
|
+
Translate: "",
|
|
241
|
+
Undo: "",
|
|
242
|
+
Video: "",
|
|
243
|
+
Audio: "",
|
|
244
|
+
File: "",
|
|
245
|
+
PinTack: "",
|
|
246
|
+
Feather: "",
|
|
247
|
+
MasterDetail: "",
|
|
248
|
+
Tree: "",
|
|
249
|
+
Document: ""
|
|
250
|
+
},
|
|
251
|
+
category: {
|
|
252
|
+
General: "",
|
|
253
|
+
GeneralNavigation: "",
|
|
254
|
+
Navigation: "",
|
|
255
|
+
Editor: "",
|
|
256
|
+
MarkdownFormatting: ""
|
|
257
|
+
},
|
|
258
|
+
filter: {
|
|
259
|
+
FilterArrayAll: "",
|
|
260
|
+
FilterArrayAny: "",
|
|
261
|
+
FilterObjectIn: "",
|
|
262
|
+
FilterObjectNin: "",
|
|
263
|
+
FilterValueIn: "",
|
|
264
|
+
FilterValueNin: "",
|
|
265
|
+
FilterBefore: "",
|
|
266
|
+
FilterAfter: "",
|
|
267
|
+
FilterContains: "",
|
|
268
|
+
FilterNestedMatch: "",
|
|
269
|
+
FilterNestedDontMatch: "",
|
|
270
|
+
FilterDateOutdated: "",
|
|
271
|
+
FilterDateToday: "",
|
|
272
|
+
FilterDateYesterday: "",
|
|
273
|
+
FilterDateWeek: "",
|
|
274
|
+
FilterDateNextW: "",
|
|
275
|
+
FilterDateM: "",
|
|
276
|
+
FilterDateNextM: "",
|
|
277
|
+
FilterDateNotSpecified: "",
|
|
278
|
+
FilterDateCustom: "",
|
|
279
|
+
FilterDateBetween: ""
|
|
280
|
+
},
|
|
281
|
+
popup: {
|
|
282
|
+
PositionElementAlignment: ""
|
|
283
|
+
},
|
|
284
|
+
function: {
|
|
285
|
+
OpenDocument: ""
|
|
286
|
+
},
|
|
287
|
+
actionImpl: {
|
|
288
|
+
CopyTextToClipboard: "",
|
|
289
|
+
UpdateDocument: "",
|
|
290
|
+
ShowPanel: "",
|
|
291
|
+
ShowPopup: "",
|
|
292
|
+
ShowEditor: "",
|
|
293
|
+
ValueSelector: "",
|
|
294
|
+
AttributeSelector: "",
|
|
295
|
+
Delete: ""
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
var index_default = view;
|
|
299
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright \u00A9 2020, 2021 Anticrm Platform Contributors.\n// Copyright \u00A9 2021, 2023 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport { Class, Doc, DocumentQuery, FindOptions, Mixin, Ref } from '@hcengineering/core'\nimport { Asset, IntlString, Plugin, Resource, plugin } from '@hcengineering/platform'\nimport { AnyComponent, PopupAlignment, PopupPosAlignment } from '@hcengineering/ui/src/types'\nimport {\n Action,\n ActionCategory,\n ActivityAttributePresenter,\n Aggregation,\n AllValuesFunc,\n ArrayEditor,\n AttributeEditor,\n AttributeFilter,\n AttributeFilterPresenter,\n AttributePresenter,\n ClassFilters,\n ClassSortFuncs,\n CollectionEditor,\n CollectionPresenter,\n FilterMode,\n FilteredView,\n Groupping,\n IgnoreActions,\n InlineAttributEditor,\n LinkPresenter,\n LinkProvider,\n ListHeaderExtra,\n ListItemPresenter,\n ObjectEditor,\n ObjectEditorFooter,\n ObjectEditorHeader,\n ObjectFactory,\n ObjectIcon,\n ObjectIdentifier,\n ObjectPanel,\n ObjectPresenter,\n ObjectTitle,\n ObjectTooltip,\n ObjectValidator,\n ReferenceObjectProvider,\n AttrPresenter,\n PreviewPresenter,\n SpaceHeader,\n SpaceName,\n SpacePresenter,\n ViewAction,\n Viewlet,\n ViewletDescriptor,\n ViewletPreference,\n LinkIdProvider,\n CustomObjectLinkProvider,\n OpenDocumentFunction\n} from './types'\n\nexport * from './types'\nexport * from './utils'\n\n/**\n * @public\n */\nexport const viewId = 'view' as Plugin\n\n/**\n * @public\n */\nconst view = plugin(viewId, {\n mixin: {\n ClassFilters: '' as Ref<Mixin<ClassFilters>>,\n AttributeFilter: '' as Ref<Mixin<AttributeFilter>>,\n AttributeEditor: '' as Ref<Mixin<AttributeEditor>>,\n CollectionPresenter: '' as Ref<Mixin<CollectionPresenter>>,\n CollectionEditor: '' as Ref<Mixin<CollectionEditor>>,\n InlineAttributEditor: '' as Ref<Mixin<InlineAttributEditor>>,\n ArrayEditor: '' as Ref<Mixin<ArrayEditor>>,\n AttributePresenter: '' as Ref<Mixin<AttributePresenter>>,\n ActivityAttributePresenter: '' as Ref<Mixin<ActivityAttributePresenter>>,\n ListItemPresenter: '' as Ref<Mixin<ListItemPresenter>>,\n ObjectEditor: '' as Ref<Mixin<ObjectEditor>>,\n ObjectPresenter: '' as Ref<Mixin<ObjectPresenter>>,\n ObjectEditorHeader: '' as Ref<Mixin<ObjectEditorHeader>>,\n ObjectEditorFooter: '' as Ref<Mixin<ObjectEditorFooter>>,\n ObjectPanelFooter: '' as Ref<Mixin<ObjectEditorFooter>>,\n ObjectValidator: '' as Ref<Mixin<ObjectValidator>>,\n ObjectFactory: '' as Ref<Mixin<ObjectFactory>>,\n ObjectTitle: '' as Ref<Mixin<ObjectTitle>>,\n ObjectIdentifier: '' as Ref<Mixin<ObjectIdentifier>>,\n ReferenceObjectProvider: '' as Ref<Mixin<ReferenceObjectProvider>>,\n ObjectTooltip: '' as Ref<Mixin<ObjectTooltip>>,\n SpaceHeader: '' as Ref<Mixin<SpaceHeader>>,\n SpaceName: '' as Ref<Mixin<SpaceName>>,\n IgnoreActions: '' as Ref<Mixin<IgnoreActions>>,\n PreviewPresenter: '' as Ref<Mixin<PreviewPresenter>>,\n ListHeaderExtra: '' as Ref<Mixin<ListHeaderExtra>>,\n SortFuncs: '' as Ref<Mixin<ClassSortFuncs>>,\n AllValuesFunc: '' as Ref<Mixin<AllValuesFunc>>,\n ObjectPanel: '' as Ref<Mixin<ObjectPanel>>,\n LinkProvider: '' as Ref<Mixin<LinkProvider>>,\n LinkIdProvider: '' as Ref<Mixin<LinkIdProvider>>,\n SpacePresenter: '' as Ref<Mixin<SpacePresenter>>,\n AttributeFilterPresenter: '' as Ref<Mixin<AttributeFilterPresenter>>,\n Aggregation: '' as Ref<Mixin<Aggregation>>,\n Groupping: '' as Ref<Mixin<Groupping>>,\n ObjectIcon: '' as Ref<Mixin<ObjectIcon>>,\n CustomObjectLinkProvider: '' as Ref<Mixin<CustomObjectLinkProvider>>\n },\n class: {\n ViewletPreference: '' as Ref<Class<ViewletPreference>>,\n ViewletDescriptor: '' as Ref<Class<ViewletDescriptor>>,\n Viewlet: '' as Ref<Class<Viewlet>>,\n Action: '' as Ref<Class<Action>>,\n ActionCategory: '' as Ref<Class<ActionCategory>>,\n LinkPresenter: '' as Ref<Class<LinkPresenter>>,\n FilterMode: '' as Ref<Class<FilterMode>>,\n FilteredView: '' as Ref<Class<FilteredView>>,\n AttrPresenter: '' as Ref<Class<AttrPresenter>>\n },\n action: {\n Delete: '' as Ref<Action>,\n Archive: '' as Ref<Action>,\n UnArchive: '' as Ref<Action>,\n Join: '' as Ref<Action>,\n Leave: '' as Ref<Action>,\n Move: '' as Ref<Action>,\n MoveLeft: '' as Ref<Action>,\n MoveRight: '' as Ref<Action>,\n MoveUp: '' as Ref<Action>,\n MoveDown: '' as Ref<Action>,\n\n SelectItem: '' as Ref<Action>,\n SelectItemAll: '' as Ref<Action>,\n SelectItemNone: '' as Ref<Action>,\n SelectUp: '' as Ref<Action>,\n SelectDown: '' as Ref<Action>,\n\n ShowPreview: '' as Ref<Action>,\n ShowActions: '' as Ref<Action>,\n Preview: '' as Ref<Action>,\n\n // Edit document\n Open: '' as Ref<Action>,\n OpenInNewTab: '' as Ref<Action>,\n RemoveRelation: '' as Ref<Action>,\n\n CopyLink: '' as Ref<Action<Doc, any>>\n },\n viewlet: {\n Table: '' as Ref<ViewletDescriptor>,\n List: '' as Ref<ViewletDescriptor>,\n MasterDetail: '' as Ref<ViewletDescriptor>,\n Tree: '' as Ref<ViewletDescriptor>,\n Document: '' as Ref<ViewletDescriptor>\n },\n component: {\n ActionsPopup: '' as AnyComponent,\n ObjectPresenter: '' as AnyComponent,\n EditDoc: '' as AnyComponent,\n SpacePresenter: '' as AnyComponent,\n BooleanTruePresenter: '' as AnyComponent,\n ValueSelector: '' as AnyComponent,\n GrowPresenter: '' as AnyComponent,\n DividerPresenter: '' as AnyComponent,\n IconWithEmoji: '' as AnyComponent,\n AttachedDocPanel: '' as AnyComponent,\n ObjectMention: '' as AnyComponent,\n SearchSelector: '' as AnyComponent,\n FoldersBrowser: '' as AnyComponent,\n PersonIdPresenter: '' as AnyComponent,\n PersonIdFilter: '' as AnyComponent,\n RolePresenter: '' as AnyComponent,\n ReadOnlyNotification: '' as AnyComponent,\n ForbiddenNotification: '' as AnyComponent,\n DatePresenter: '' as AnyComponent,\n DateEditor: '' as AnyComponent\n },\n ids: {\n IconWithEmoji: '' as Asset\n },\n string: {\n CustomizeView: '' as IntlString,\n LabelNA: '' as IntlString,\n View: '' as IntlString,\n FilteredViews: '' as IntlString,\n NewFilteredView: '' as IntlString,\n FilteredViewName: '' as IntlString,\n Move: '' as IntlString,\n MoveClass: '' as IntlString,\n SelectToMove: '' as IntlString,\n Cancel: '' as IntlString,\n List: '' as IntlString,\n Grid: '' as IntlString,\n AddSavedView: '' as IntlString,\n Timeline: '' as IntlString,\n Public: '' as IntlString,\n Hide: '' as IntlString,\n Rename: '' as IntlString,\n Assigned: '' as IntlString,\n Open: '' as IntlString,\n OpenInNewTab: '' as IntlString,\n Created: '' as IntlString,\n Delete: '' as IntlString,\n Then: '' as IntlString,\n Or: '' as IntlString,\n Subscribed: '' as IntlString,\n HyperlinkPlaceholder: '' as IntlString,\n CopyToClipboard: '' as IntlString,\n NoGrouping: '' as IntlString,\n Type: '' as IntlString,\n UnArchive: '' as IntlString,\n Archive: '' as IntlString,\n Save: '' as IntlString,\n PublicView: '' as IntlString,\n Archived: '' as IntlString,\n MoreActions: '' as IntlString,\n Pin: '' as IntlString,\n Unpin: '' as IntlString,\n Join: '' as IntlString,\n Leave: '' as IntlString,\n Copied: '' as IntlString,\n And: '' as IntlString,\n Title: '' as IntlString,\n DeleteObject: '' as IntlString,\n DeleteObjectConfirm: '' as IntlString,\n RemoveRelationConfirmation: '' as IntlString,\n RemoveRelation: '' as IntlString,\n MasterDetail: '' as IntlString,\n Tree: '' as IntlString,\n Document: '' as IntlString,\n Loading: '' as IntlString,\n ReadOnlyWarningTitle: '' as IntlString,\n ReadOnlyWarningMessage: '' as IntlString,\n ReadOnlySignUp: '' as IntlString,\n ReadOnlyJoinWorkspace: '' as IntlString,\n PermissionWarningTitle: '' as IntlString,\n PermissionWarningMessage: '' as IntlString,\n Icon: '' as IntlString,\n Select: '' as IntlString,\n Color: '' as IntlString,\n AutomationOnly: '' as IntlString\n },\n icon: {\n Table: '' as Asset,\n List: '' as Asset,\n Card: '' as Asset,\n Timeline: '' as Asset,\n Delete: '' as Asset,\n MoreH: '' as Asset,\n Move: '' as Asset,\n Archive: '' as Asset,\n Statuses: '' as Asset,\n Setting: '' as Asset,\n Open: '' as Asset,\n Edit: '' as Asset,\n CopyId: '' as Asset,\n CopyLink: '' as Asset,\n ArrowRight: '' as Asset,\n Views: '' as Asset,\n Pin: '' as Asset,\n Model: '' as Asset,\n DevModel: '' as Asset,\n ViewButton: '' as Asset,\n Filter: '' as Asset,\n Configure: '' as Asset,\n Database: '' as Asset,\n Star: '' as Asset,\n Eye: '' as Asset,\n EyeCrossed: '' as Asset,\n Bubble: '' as Asset,\n CheckCircle: '' as Asset,\n Add: '' as Asset,\n Image: '' as Asset,\n Table2: '' as Asset,\n CodeBlock: '' as Asset,\n SeparatorLine: '' as Asset,\n Circle: '' as Asset,\n Join: '' as Asset,\n Leave: '' as Asset,\n Copy: '' as Asset,\n TodoList: '' as Asset,\n DetailsFilled: '' as Asset,\n Translate: '' as Asset,\n Undo: '' as Asset,\n Video: '' as Asset,\n Audio: '' as Asset,\n File: '' as Asset,\n PinTack: '' as Asset,\n Feather: '' as Asset,\n MasterDetail: '' as Asset,\n Tree: '' as Asset,\n Document: '' as Asset\n },\n category: {\n General: '' as Ref<ActionCategory>,\n GeneralNavigation: '' as Ref<ActionCategory>,\n Navigation: '' as Ref<ActionCategory>,\n Editor: '' as Ref<ActionCategory>,\n MarkdownFormatting: '' as Ref<ActionCategory>\n },\n filter: {\n FilterArrayAll: '' as Ref<FilterMode>,\n FilterArrayAny: '' as Ref<FilterMode>,\n FilterObjectIn: '' as Ref<FilterMode>,\n FilterObjectNin: '' as Ref<FilterMode>,\n FilterValueIn: '' as Ref<FilterMode>,\n FilterValueNin: '' as Ref<FilterMode>,\n FilterBefore: '' as Ref<FilterMode>,\n FilterAfter: '' as Ref<FilterMode>,\n FilterContains: '' as Ref<FilterMode>,\n FilterNestedMatch: '' as Ref<FilterMode>,\n FilterNestedDontMatch: '' as Ref<FilterMode>,\n FilterDateOutdated: '' as Ref<FilterMode>,\n FilterDateToday: '' as Ref<FilterMode>,\n FilterDateYesterday: '' as Ref<FilterMode>,\n FilterDateWeek: '' as Ref<FilterMode>,\n FilterDateNextW: '' as Ref<FilterMode>,\n FilterDateM: '' as Ref<FilterMode>,\n FilterDateNextM: '' as Ref<FilterMode>,\n FilterDateNotSpecified: '' as Ref<FilterMode>,\n FilterDateCustom: '' as Ref<FilterMode>,\n FilterDateBetween: '' as Ref<FilterMode>\n },\n popup: {\n PositionElementAlignment: '' as Resource<(e?: Event) => PopupAlignment | undefined>\n },\n function: {\n OpenDocument: '' as Resource<OpenDocumentFunction>\n },\n actionImpl: {\n CopyTextToClipboard: '' as ViewAction<{\n textProvider: Resource<(doc: Doc, props: Record<string, any>) => Promise<string>>\n props?: Record<string, any>\n }>,\n UpdateDocument: '' as ViewAction<{\n key: string\n value: any\n ask?: boolean\n label?: IntlString\n message?: IntlString\n }>,\n ShowPanel: '' as ViewAction<{\n component?: AnyComponent\n element?: PopupPosAlignment\n rightSection?: AnyComponent\n }>,\n ShowPopup: '' as ViewAction<{\n component: AnyComponent\n element?: PopupPosAlignment | Resource<(e?: Event) => PopupAlignment | undefined>\n _id?: string\n _class?: string\n _space?: string\n value?: string\n values?: string\n props?: Record<string, any>\n // Will copy values from selection document to props\n fillProps?: Record<string, string>\n }>,\n ShowEditor: '' as ViewAction<{\n element?: PopupPosAlignment | Resource<(e?: Event) => PopupAlignment | undefined>\n attribute: string\n props?: Record<string, any>\n }>,\n ValueSelector: '' as ViewAction<{\n attribute: string\n\n // Class object finder\n _class?: Ref<Class<Doc>>\n query?: DocumentQuery<Doc>\n queryOptions?: FindOptions<Doc>\n // Will copy values from selection document to query\n // If set of docs passed, will do $in for values.\n fillQuery?: Record<string, string>\n\n // A list of fields with matched values to perform action.\n docMatches?: string[]\n searchField?: string\n\n // Cast doc to mixin\n castRequest?: Ref<Mixin<Doc>>\n\n // Or list of values to select from\n values?: { icon?: Asset, label: IntlString, id: number | string }[]\n\n placeholder?: IntlString\n }>,\n AttributeSelector: '' as ViewAction<{\n attribute: string\n isAction?: boolean\n\n fillProps?: Record<string, string>\n\n // Or list of values to select from\n values?: { icon?: Asset, label: IntlString, id: number | string }[]\n\n // If defined, documents will be set into value\n valueKey?: string\n }>,\n Delete: '' as ViewAction\n }\n})\nexport default view\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBA,sBAA4D;AAoD5D,0BAAc,oBArEd;AAsEA,0BAAc,oBAtEd;AA2EO,MA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perty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var types_exports = {};
|
|
20
|
+
__export(types_exports, {
|
|
21
|
+
AttributeCategoryOrder: () => AttributeCategoryOrder
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(types_exports);
|
|
24
|
+
const AttributeCategoryOrder = {
|
|
25
|
+
attribute: 0,
|
|
26
|
+
inplace: 1,
|
|
27
|
+
collection: 2,
|
|
28
|
+
array: 3,
|
|
29
|
+
object: 4
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=types.js.map
|
package/lib/types.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/types.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright \u00A9 2020, 2021 Anticrm Platform Contributors.\n// Copyright \u00A9 2021, 2024 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport {\n PersonId,\n AggregateValue,\n AnyAttribute,\n CategoryType,\n Class,\n Client,\n Doc,\n DocManager,\n DocumentQuery,\n FindOptions,\n Hierarchy,\n Lookup,\n Mixin,\n Obj,\n ObjQueryType,\n PrimitiveType,\n Ref,\n SortingOrder,\n Space,\n Tx,\n TxOperations,\n Type,\n UXObject,\n AccountUuid,\n Blob\n} from '@hcengineering/core'\nimport { Asset, IntlString, Resource, Status } from '@hcengineering/platform'\nimport { Preference } from '@hcengineering/preference'\nimport {\n AnyComponent,\n AnySvelteComponent,\n Location,\n Location as PlatformLocation,\n type LabelAndProps\n} from '@hcengineering/ui'\n\n/**\n * @public\n */\nexport interface KeyFilterPreset {\n _class: Ref<Class<Doc>>\n key: string\n attribute?: AnyAttribute\n component: AnyComponent\n label?: IntlString\n group?: 'top' | 'bottom'\n showNested?: boolean\n}\n\n/**\n * @public\n */\nexport interface KeyFilter extends KeyFilterPreset {\n attribute: AnyAttribute\n component: AnyComponent\n label: IntlString\n group?: 'top' | 'bottom'\n}\n\n/**\n * @public\n */\nexport interface FilterMode extends Doc {\n label: IntlString\n selectedLabel?: IntlString\n disableValueSelector?: boolean\n result: FilterFunction\n}\n\n/**\n * @public\n */\nexport type FilterFunction = Resource<(filter: Filter, onUpdate: () => void) => Promise<ObjQueryType<any>>>\n\n/**\n * @public\n */\nexport interface Filter {\n key: KeyFilter\n nested?: Filter\n mode: Ref<FilterMode>\n modes: Ref<FilterMode>[]\n value: any[]\n props?: Record<string, any>\n index: number\n onRemove?: () => void\n}\n\n/**\n * @public\n */\nexport interface FilteredView extends Doc {\n name: string\n location: PlatformLocation\n filters: string\n viewOptions?: ViewOptions\n filterClass?: Ref<Class<Doc>>\n viewletId?: Ref<Viewlet> | null\n sharable?: boolean\n users: AccountUuid[]\n createdBy: PersonId\n attachedTo: string\n}\n\n/**\n * @public\n */\nexport interface ClassFilters extends Class<Doc> {\n filters: (KeyFilterPreset | string)[]\n ignoreKeys?: string[]\n\n // Ignore attributes not specified in the \"filters\" array\n strict?: boolean\n // Allows to filter out the provided keys, leaving only the necessary ones\n getVisibleFilters?: Resource<(filters: KeyFilter[], space?: Ref<Space>) => Promise<KeyFilter[]>>\n}\n\n/**\n * @public\n */\nexport interface AttributeFilter extends Class<Type<any>> {\n component: AnyComponent\n group?: 'top' | 'bottom'\n}\n\n/**\n * @public\n */\nexport interface AttributeEditor extends Class<Doc> {\n inlineEditor: AnyComponent\n // If defined could be used for ShowEditor declarative actions.\n popup?: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface CollectionEditor extends Class<Doc> {\n editor: AnyComponent\n inlineEditor?: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface InlineAttributEditor extends Class<Doc> {\n editor: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface ArrayEditor extends Class<Doc> {\n editor?: AnyComponent\n inlineEditor?: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface CollectionPresenter extends Class<Doc> {\n presenter: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface AttributePresenter extends Class<Doc> {\n presenter: AnyComponent\n arrayPresenter?: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface AttributeFilterPresenter extends Class<Doc> {\n presenter: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface ActivityAttributePresenter extends Class<Doc> {\n presenter: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface SpacePresenter extends Class<Doc> {\n presenter: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface ObjectPresenter extends Class<Doc> {\n presenter: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface ListItemPresenter extends Class<Doc> {\n presenter: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface ObjectEditor extends Class<Doc> {\n editor: AnyComponent\n pinned?: boolean\n}\n\n/**\n * @public\n */\nexport interface ObjectEditorFooter extends Class<Doc> {\n editor: AnyComponent\n props?: Record<string, any>\n}\n\nexport interface ObjectPanelFooter extends Class<Doc> {\n editor: AnyComponent\n props?: Record<string, any>\n}\n\n/**\n * @public\n */\nexport interface SpaceHeader extends Class<Doc> {\n header: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface SpaceName extends Class<Doc> {\n getName: Resource<(client: Client, space: Space) => Promise<string>>\n}\n\n/**\n * @public\n */\nexport interface ObjectEditorHeader extends Class<Doc> {\n editor: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface ObjectValidator extends Class<Doc> {\n validator: Resource<<T extends Doc>(doc: T, client: Client) => Promise<Status>>\n}\n\n/**\n * @public\n */\nexport interface ObjectTitle extends Class<Doc> {\n titleProvider: Resource<<T extends Doc>(client: Client, ref: Ref<T>, doc?: T) => Promise<string>>\n}\n\n/**\n * @public\n */\nexport interface ObjectIcon extends Class<Doc> {\n component: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface ObjectIdentifier extends Class<Doc> {\n provider: Resource<<T extends Doc>(client: Client, ref: Ref<T>, doc?: T) => Promise<string>>\n}\n\n/**\n * @public\n */\nexport interface ReferenceObjectProvider extends Class<Doc> {\n provider: Resource<<T extends Doc>(client: Client, ref: Ref<T>, doc?: T) => Promise<Doc | undefined>>\n}\n\n/**\n * @public\n */\nexport interface ObjectTooltip extends Class<Doc> {\n provider: Resource<(client: Client, doc?: Doc | null) => Promise<LabelAndProps | undefined>>\n}\n\n/**\n * @public\n */\nexport interface ViewletDescriptor extends Doc, UXObject {\n component: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface ListHeaderExtra extends Class<Doc> {\n presenters: AnyComponent[]\n}\n\n/**\n * @public\n */\nexport type SortFunc = Resource<\n(\n client: TxOperations,\n values: PrimitiveType[],\n space: Ref<Space> | undefined,\n viewletDescriptorId?: Ref<ViewletDescriptor>\n) => Promise<any[]>\n>\n\n/**\n * @public\n */\nexport interface ClassSortFuncs extends Class<Doc> {\n func: SortFunc\n}\n\n/**\n * @public\n */\nexport type GetAllValuesFunc = Resource<\n(\n query: DocumentQuery<Doc> | undefined,\n onUpdate: () => void,\n queryId: Ref<Doc>,\n attr: AnyAttribute\n) => Promise<any[] | undefined>\n>\n\n/**\n * @public\n */\nexport interface AllValuesFunc extends Class<Doc> {\n func: GetAllValuesFunc\n}\n\n/**\n * @public\n */\nexport interface GrouppingManager {\n groupByCategories: (categories: any[]) => AggregateValue[]\n groupValues: (val: Doc[], targets: Set<any>) => Doc[]\n groupValuesWithEmpty: (\n hierarchy: Hierarchy,\n _class: Ref<Class<Doc>>,\n key: string,\n query: DocumentQuery<Doc> | undefined\n ) => Array<Ref<Doc>>\n hasValue: (value: Doc | undefined | null, values: any[]) => boolean\n}\n\n/**\n * @public\n */\nexport type GrouppingManagerResource = Resource<GrouppingManager>\n\n/**\n * @public\n */\nexport interface Groupping extends Class<Doc> {\n grouppingManager: GrouppingManagerResource\n}\n\n/**\n * @public\n */\nexport interface IAggregationManager<T extends Doc> {\n close: () => void\n notifyTx: (...tx: Tx[]) => Promise<void>\n categorize: (target: Array<Ref<T>>, attr: AnyAttribute) => Promise<Array<Ref<T>>>\n getAttrClass: () => Ref<Class<T>>\n updateSorting?: (finalOptions: FindOptions<T>, attr: AnyAttribute) => Promise<void>\n}\n\n/**\n * @public\n */\nexport type AggregationManagerResource = Resource<IAggregationManager<any>>\n\n/**\n * @public\n */\nexport type CreateAggregationManagerFunc = Resource<\n(\n client: Client,\n lqCallback: () => void,\n setStore: (manager: DocManager<any>) => void,\n categorizingFunc: (doc: any, target: any) => boolean,\n _class: Ref<Class<any>>\n) => IAggregationManager<any>\n>\n\n/**\n * @public\n */\nexport interface Aggregation extends Class<Doc> {\n createAggregationManager: CreateAggregationManagerFunc\n setStoreFunc: Resource<(manager: DocManager<any>) => void>\n filterFunc: Resource<(doc: Doc, target: Doc) => boolean>\n}\n\n/**\n * @public\n */\nexport interface Viewlet extends Doc {\n attachTo: Ref<Class<Doc>>\n baseQuery?: DocumentQuery<Doc>\n descriptor: Ref<ViewletDescriptor>\n options?: FindOptions<Doc>\n config: (BuildModelKey | string)[]\n configOptions?: ViewletConfigOptions\n viewOptions?: ViewOptionsModel\n masterDetailOptions?: MasterDetailModel\n variant?: string\n props?: Record<string, any>\n title?: string\n}\n\n/**\n * @public\n */\nexport interface ViewletConfigOptions {\n hiddenKeys?: string[]\n strict?: boolean\n extraProps?: Omit<BuildModelKey, 'key'>\n sortable?: boolean\n}\n\n/**\n * @public\n */\nexport interface LinkPresenter extends Doc {\n pattern: string\n component: AnyComponent\n}\n\n/**\n * @public\n *\n * \"Alt + K\" =\\> Alt and K should be pressed together\n * \"J T\" - J and then T shold be pressed.\n */\nexport type KeyBinding = string\n\n/**\n * @public\n */\nexport type ViewActionInput = 'focus' | 'selection' | 'any' | 'none'\n\n/**\n * @public\n */\n\nexport type ViewActionFunction<T extends Doc = Doc, P = Record<string, any>> = (\n doc: T | T[] | undefined,\n evt?: Event,\n params?: P\n) => Promise<void>\n\n/**\n * @public\n */\nexport type ViewActionAvailabilityFunction<T extends Doc = Doc> = (doc: T | T[] | undefined) => Promise<boolean>\n\n/**\n * @public\n */\nexport type OpenDocumentFunction<T extends Doc = Doc> = (_class: Ref<Class<T>>, _id: Ref<T>) => Promise<boolean>\n\n/**\n * @public\n */\nexport type ViewAction<P = Record<string, any>> = Resource<ViewActionFunction<Doc, P>>\n\n/**\n * @public\n */\nexport interface ActionCategory extends Doc, UXObject {\n // Does category is visible for use in popup.\n visible: boolean\n}\n\n/**\n * @public\n */\nexport type ActionGroup = 'create' | 'edit' | 'associate' | 'copy' | 'tools' | 'other' | 'remove'\n\n/**\n * @public\n */\nexport interface Action<T extends Doc = Doc, P = Record<string, any>> extends Doc, UXObject {\n // Action implementation details\n action: Resource<ViewActionFunction<T, P>>\n // Action implementation parameters\n actionProps?: P\n\n // If specified, will show sub menu based on actionPopup/actionProps\n actionPopup?: AnyComponent\n\n // If specified, action could be used only with one item selected.\n // single - one object is required\n // any - one or multiple objects are required\n // any - any input is suitable.\n input: ViewActionInput\n inline?: boolean\n\n // Focus and/or all selection document should match target class.\n target: Ref<Class<Doc>>\n // Action is applicable only for objects matching criteria\n query?: DocumentQuery<T>\n\n // Action is shown only if the check is passed\n visibilityTester?: Resource<ViewActionAvailabilityFunction<T>>\n\n // If defined, types should be matched to proposed list\n inputProps?: Record<string, Ref<Class<Doc>>>\n\n // Kayboard bindings\n keyBinding?: KeyBinding[]\n\n // short description for action.\n description?: IntlString\n\n // Action category, for UI.\n category: Ref<ActionCategory>\n\n // Context action is defined for\n context: ViewContext\n\n // A list of actions replaced by this one.\n // For example, it could be global action and action for focus class, second one fill override first one.\n override?: Ref<Action>[]\n\n // Available only for workspace owners\n secured?: boolean\n allowedForEditableContent?: 'always' | 'noSelection'\n\n analyticsEvent?: string\n}\n\n/**\n * @public\n * context - only for context menu actions.\n * workbench - global actions per application or entire workbench.\n * browser - actions for list/table/kanban browsing.\n * editor - actions for selected editor context.\n * panel - for panel based actions.\n * popup - for popup based actions, like Close of Popup.\n * input - for input based actions, some actions should be available for input controls.\n */\nexport type ViewContextType = 'context' | 'workbench' | 'browser' | 'editor' | 'panel' | 'popup' | 'input' | 'none'\n\n/**\n * @public\n */\nexport interface ViewContext {\n mode: ViewContextType | ViewContextType[]\n // Active application\n application?: Ref<Doc>\n\n // Optional groupping\n group?: ActionGroup\n}\n\n/**\n * @public\n */\nexport interface ActionIgnore {\n _class: Ref<Class<Doc>>\n // Action to be ignored\n action: Ref<Action>\n // Document match to ignore if matching at least one document.\n query: DocumentQuery<Doc>\n}\n\n/**\n * @public\n */\nexport interface IgnoreActions extends Class<Doc> {\n actions: (Ref<Action> | ActionIgnore)[]\n}\n\n/**\n * @public\n */\nexport interface PreviewPresenter extends Class<Doc> {\n presenter: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface DisplayProps {\n key?: string\n excludeByKey?: string\n fixed?: 'left' | 'right' // using for align items in row\n align?: 'left' | 'right' | 'center'\n suffix?: boolean\n optional?: boolean\n compression?: boolean\n grow?: boolean\n dividerBefore?: boolean // should show divider before\n}\n\n/**\n * @public\n */\nexport interface BuildModelKey {\n key: string\n presenter?: AnyComponent | AnySvelteComponent\n // A set of extra props passed to presenter.\n props?: Record<string, any>\n // A set of extra props which using for display.\n displayProps?: DisplayProps\n\n label?: IntlString\n sortingKey?: string | string[]\n\n // On client sorting function\n sortingFunction?: (a: Doc, b: Doc) => number\n}\n\n/**\n * @public\n */\nexport interface AttributeModel {\n key: string\n label: IntlString\n _class: Ref<Class<Doc>>\n presenter: AnySvelteComponent\n // Extra properties for component\n props?: Record<string, any>\n displayProps?: DisplayProps\n sortingKey: string | string[]\n // Extra icon if applicable\n icon?: Asset\n\n attribute?: AnyAttribute\n collectionAttr: boolean\n isLookup: boolean\n\n castRequest?: Ref<Mixin<Doc>>\n}\n\n/**\n * @public\n */\nexport interface BuildModelOptions {\n client: Client\n _class: Ref<Class<Obj>>\n keys: (BuildModelKey | string)[]\n lookup?: Lookup<Doc>\n ignoreMissing?: boolean\n}\n\n/**\n * Define document create popup widget\n *\n * @public\n *\n */\nexport interface ObjectFactory extends Class<Obj> {\n component?: AnyComponent\n create?: Resource<(props?: Record<string, any>) => Promise<Ref<Doc> | undefined>>\n}\n\n/**\n * @public\n */\nexport interface ViewletPreference extends Preference {\n attachedTo: Ref<Viewlet>\n config: (BuildModelKey | string)[]\n}\n\n/**\n * @public\n */\nexport type ViewOptions = {\n groupBy: string[]\n orderBy: OrderOption\n} & Record<string, any>\n\n/**\n * @public\n */\nexport interface ViewOption {\n type: string\n key: string\n defaultValue: any\n label: IntlString\n hidden?: (viewOptions: ViewOptions) => boolean\n actionTarget?: 'query' | 'category' | 'display' | 'options'\n action?: Resource<(value: any, ...params: any) => any>\n}\n\n/**\n * @public\n */\nexport type ViewOptionsAction<T extends Doc = Doc> = Resource<\n(value: any, query: FindOptions<T> | undefined) => FindOptions<T>\n>\n\n/**\n * @public\n */\nexport interface ViewOptionsOption extends ViewOption {\n actionTarget: 'options'\n action: ViewOptionsAction<Doc>\n}\n\n/**\n * @public\n */\nexport type ViewCategoryActionFunc = (\n _class: Ref<Class<Doc>>,\n query: DocumentQuery<Doc> | undefined,\n space: Ref<Space> | undefined,\n key: string,\n onUpdate: () => void,\n queryId: Ref<Doc>,\n viewletDescriptorId?: Ref<ViewletDescriptor>\n) => Promise<CategoryType[] | undefined>\n/**\n * @public\n */\nexport type ViewCategoryAction = Resource<ViewCategoryActionFunc>\n\n/**\n * @public\n */\nexport interface CategoryOption extends ViewOption {\n actionTarget: 'category'\n action: ViewCategoryAction\n}\n\n/**\n * @public\n */\nexport type ViewQueryAction = Resource<\n(value: any, query: DocumentQuery<Doc>) => DocumentQuery<Doc> | Promise<DocumentQuery<Doc>>\n>\n\n/**\n * @public\n */\nexport interface ViewQueryOption extends ViewOption {\n actionTarget: 'query'\n action: ViewQueryAction\n}\n\n/**\n * @public\n */\nexport interface ToggleViewOption extends ViewOption {\n type: 'toggle'\n defaultValue: boolean\n}\n\n/**\n * @public\n */\nexport interface DropdownViewOption extends ViewOption {\n type: 'dropdown'\n defaultValue: string\n values: Array<{ label: IntlString, id: string, hidden?: (viewOptions: ViewOptions) => boolean }>\n}\n\n/**\n * @public\n */\nexport type ViewOptionModel = ToggleViewOption | DropdownViewOption\n\n/**\n * @public\n */\nexport type OrderOption = [string, SortingOrder]\n\n/**\n * @public\n */\nexport interface LinkProvider extends Class<Doc> {\n encode: Resource<(doc: Doc, props: Record<string, any>) => Promise<Location>>\n}\n\nexport interface LinkIdProvider extends Class<Doc> {\n encode: Resource<(doc: Doc) => Promise<string>>\n decode: Resource<(id: string) => Promise<Ref<Doc> | undefined>>\n}\n\n/**\n * @public\n */\nexport interface ObjectPanel extends Class<Doc> {\n component: AnyComponent\n}\n\n// Temp workaround for cards-based apps navigation\nexport interface CustomObjectLinkProvider extends Class<Doc> {\n match: Resource<(doc: Doc) => boolean>\n encode: Resource<(doc: Doc) => Location>\n}\n\n/**\n * @public\n */\nexport interface ViewOptionsModel {\n groupBy: string[]\n orderBy: OrderOption[]\n other: ViewOptionModel[]\n groupDepth?: number\n storageKey?: string\n}\n\n/**\n * @public\n */\nexport interface MasterDetailModel {\n views: MasterDetailConfig[]\n}\n\nexport interface MasterDetailConfig {\n id?: string\n class: Ref<Class<Doc>>\n view: Ref<ViewletDescriptor>\n associationId?: Ref<Class<Doc>>\n props?: Record<string, any>\n createComponent?: AnyComponent\n}\n\n/**\n * @public\n */\nexport interface MasterDetailOption {\n class: Ref<Class<Doc>>\n viewlet?: Ref<Viewlet>\n associationId?: Ref<Class<Doc>>\n}\n\n/**\n * @public\n */\nexport interface IconProps {\n icon?: Asset\n color?: number | number[] | Ref<Blob>\n}\n\nexport type AttributeCategory = 'attribute' | 'inplace' | 'collection' | 'array' | 'object'\n\nexport const AttributeCategoryOrder: Record<AttributeCategory, number> = {\n attribute: 0,\n inplace: 1,\n collection: 2,\n array: 3,\n object: 4\n}\n\nexport type ObjectPresenterType = 'link' | 'text'\n\nexport interface AttrPresenter extends Doc {\n attribute: Ref<AnyAttribute>\n category: AttributeCategory\n objectClass: Ref<Class<Doc>>\n component: AnyComponent\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAw2BO,MAAM,yBAA4D;AAAA,EACvE,WAAW;AAAA,EACX,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,QAAQ;AACV;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/lib/utils.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
canCopyLink: () => canCopyLink,
|
|
23
|
+
decodeObjectURI: () => decodeObjectURI,
|
|
24
|
+
encodeObjectURI: () => encodeObjectURI
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(utils_exports);
|
|
27
|
+
function decodeObjectURI(value) {
|
|
28
|
+
return decodeURIComponent(value).split("|");
|
|
29
|
+
}
|
|
30
|
+
__name(decodeObjectURI, "decodeObjectURI");
|
|
31
|
+
function encodeObjectURI(_id, _class) {
|
|
32
|
+
return [_id, _class].join("|");
|
|
33
|
+
}
|
|
34
|
+
__name(encodeObjectURI, "encodeObjectURI");
|
|
35
|
+
async function canCopyLink(doc) {
|
|
36
|
+
if (doc === null || doc === void 0) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
if (Array.isArray(doc) && doc.length !== 1) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
__name(canCopyLink, "canCopyLink");
|
|
45
|
+
//# sourceMappingURL=utils.js.map
|
package/lib/utils.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/utils.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright \u00A9 2024 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport type { Class, Doc, Ref } from '@hcengineering/core'\n\nexport function decodeObjectURI (value: string): [Ref<Doc>, Ref<Class<Doc>>] {\n return decodeURIComponent(value).split('|') as [Ref<Doc>, Ref<Class<Doc>>]\n}\n\nexport function encodeObjectURI (_id: string, _class: Ref<Class<Doc>>): string {\n return [_id, _class].join('|')\n}\n\nexport async function canCopyLink (doc?: Doc | Doc[]): Promise<boolean> {\n if (doc === null || doc === undefined) {\n return false\n }\n if (Array.isArray(doc) && doc.length !== 1) {\n return false\n }\n return true\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,SAAS,gBAAiB,OAA4C;AAC3E,SAAO,mBAAmB,KAAK,EAAE,MAAM,GAAG;AAC5C;AAFgB;AAIT,SAAS,gBAAiB,KAAa,QAAiC;AAC7E,SAAO,CAAC,KAAK,MAAM,EAAE,KAAK,GAAG;AAC/B;AAFgB;AAIhB,eAAsB,YAAa,KAAqC;AACtE,MAAI,QAAQ,QAAQ,QAAQ,QAAW;AACrC,WAAO;AAAA,EACT;AACA,MAAI,MAAM,QAAQ,GAAG,KAAK,IAAI,WAAW,GAAG;AAC1C,WAAO;AAAA,EACT;AACA,SAAO;AACT;AARsB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hcengineering/view",
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"main": "lib/index.js",
|
|
5
|
+
"svelte": "src/index.ts",
|
|
6
|
+
"types": "types/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib/**/*",
|
|
9
|
+
"types/**/*",
|
|
10
|
+
"tsconfig.json"
|
|
11
|
+
],
|
|
12
|
+
"author": "Anticrm Platform Contributors",
|
|
13
|
+
"license": "EPL-2.0",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "compile",
|
|
16
|
+
"build:watch": "compile",
|
|
17
|
+
"format": "format src",
|
|
18
|
+
"test": "jest --passWithNoTests --silent",
|
|
19
|
+
"_phase:build": "compile transpile src",
|
|
20
|
+
"_phase:test": "jest --passWithNoTests --silent",
|
|
21
|
+
"_phase:format": "format src",
|
|
22
|
+
"_phase:validate": "compile validate"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@hcengineering/platform-rig": "^0.7.10",
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "^6.11.0",
|
|
27
|
+
"eslint-plugin-import": "^2.26.0",
|
|
28
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
29
|
+
"eslint-plugin-n": "^15.4.0",
|
|
30
|
+
"eslint": "^8.54.0",
|
|
31
|
+
"@typescript-eslint/parser": "^6.11.0",
|
|
32
|
+
"eslint-config-standard-with-typescript": "^40.0.0",
|
|
33
|
+
"prettier": "^3.1.0",
|
|
34
|
+
"typescript": "^5.8.3",
|
|
35
|
+
"jest": "^29.7.0",
|
|
36
|
+
"ts-jest": "^29.1.1",
|
|
37
|
+
"@types/jest": "^29.5.5"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@hcengineering/platform": "^0.7.3",
|
|
41
|
+
"@hcengineering/core": "^0.7.3",
|
|
42
|
+
"@hcengineering/ui": "^0.7.0",
|
|
43
|
+
"@hcengineering/preference": "^0.7.0"
|
|
44
|
+
},
|
|
45
|
+
"repository": "https://github.com/hcengineering/platform",
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
}
|
|
49
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./node_modules/@hcengineering/platform-rig/profiles/default/tsconfig.json",
|
|
3
|
+
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"outDir": "./lib",
|
|
7
|
+
"declarationDir": "./types",
|
|
8
|
+
"tsBuildInfoFile": ".build/build.tsbuildinfo"
|
|
9
|
+
},
|
|
10
|
+
"include": ["src/**/*"],
|
|
11
|
+
"exclude": ["node_modules", "lib", "dist", "types", "bundle"]
|
|
12
|
+
}
|