-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb-ui-bundle.html
More file actions
276 lines (237 loc) · 10.3 KB
/
Copy pathweb-ui-bundle.html
File metadata and controls
276 lines (237 loc) · 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<!-- DRAWER -->
<mostly-slot-content name="browseDrawerItem" slot="DRAWER_ITEMS" order="20">
<template>
<mostly-menu-icon name="browser" icon="mostly:browse" label="app.browse"></mostly-menu-icon>
</template>
</mostly-slot-content>
<mostly-slot-content name="browseDrawerPage" slot="DRAWER_PAGES">
<template>
<playing-document-tree name="browser" id="navTree" label="app.browse" current-document="[[document]]"></playing-document-tree>
</template>
</mostly-slot-content>
<mostly-slot-content name="recentsDrawerItem" slot="DRAWER_ITEMS" order="50">
<template>
<mostly-menu-icon name="recents" icon="mostly:recent" label="app.recentlyViewed"></mostly-menu-icon>
</template>
</mostly-slot-content>
<mostly-slot-content name="recentsDrawerPage" slot="DRAWER_PAGES">
<template>
<playing-recent-documents name="recents" max-size="10" id="recent"></playing-recent-documents>
</template>
</mostly-slot-content>
<mostly-slot-content name="personalWorkspaceDrawerItem" slot="DRAWER_ITEMS" order="80">
<template>
<mostly-menu-icon name="personalWorkspace" icon="mostly:user-space" label="app.personalSpace"></mostly-menu-icon>
</template>
</mostly-slot-content>
<mostly-slot-content name="personalWorkspaceDrawerPage" slot="DRAWER_PAGES">
<template>
<playing-document-tree name="personalWorkspace" label="app.personalSpace"
current-document="[[document]]"
root-doc-path="[[userWorkspace]]"></playing-document-tree>
</template>
</mostly-slot-content>
<mostly-slot-content name="clipboardDrawerItem" slot="DRAWER_ITEMS" order="90">
<template>
<mostly-menu-icon name="clipboard" icon="mostly:clipboard" label="app.clipboard" badge="[[clipboardDocCount]]"></mostly-menu-icon>
</template>
</mostly-slot-content>
<mostly-slot-content name="clipboardDrawerPage" slot="DRAWER_PAGES">
<template>
<playing-clipboard name="clipboard" id="clipboard" target-document="[[document]]"></playing-clipboard>
</template>
</mostly-slot-content>
<!-- PAGES -->
<!-- TODO move playing-browser here instead of mostly-app.html
<mostly-slot-content name="browsePage" slot="PAGES">
<template>
<playing-browser name="browse" id="browser" document="[[document]]" clipboard="[[clipboard]]" selected-tab="[[docAction]]"></playing-browser>
</template>
</mostly-slot-content>
-->
<!-- DOCUMENT VIEWS -->
<mostly-slot-content name="documentViewItem" slot="DOCUMENT_VIEWS_ITEMS" order="10">
<template>
<mostly-filter document="[[document]]" expression="document && !document.isVersion">
<template>
<mostly-page-item name="view" label="browser.view"></mostly-page-item>
</template>
</mostly-filter>
</template>
</mostly-slot-content>
<mostly-slot-content name="documentPermissionsItem" slot="DOCUMENT_VIEWS_ITEMS" order="20">
<template>
<mostly-page-item name="permissions" label="browser.permissions"></mostly-page-item>
</template>
</mostly-slot-content>
<mostly-slot-content name="documentPermissionsPage" slot="DOCUMENT_VIEWS_PAGES" order="20">
<template>
<playing-document-permissions name="permissions" id="permissions" doc-id="[[document.id]]"></playing-document-permissions>
</template>
</mostly-slot-content>
<mostly-slot-content name="documentActivityItem" slot="DOCUMENT_VIEWS_ITEMS" order="30">
<template>
<mostly-page-item name="activity" label="browser.activity"></mostly-page-item>
</template>
</mostly-slot-content>
<mostly-slot-content name="documentTrashItem" slot="DOCUMENT_VIEWS_ITEMS" order="40">
<template>
<mostly-filter document="[[document]]" facet="Folderish">
<template>
<mostly-page-item name="trash" label="browser.trash"></nuxeo-page-item>
</template>
</mostly-filter>
</template>
</mostly-slot-content>
<!-- DOCUMENT PAGES -->
<mostly-slot-content name="documentViewPage" slot="DOCUMENT_VIEWS_PAGES" order="10">
<template>
<mostly-filter document="[[document]]" expression="document && document.metadata && document.metadata.facets
&& document.metadata.facets.indexOf('Folderish') === -1
&& document.metadata.facets.indexOf('Collection') === -1">
<template>
<playing-document-page name="view" document="[[document]]"></playing-document-page>
</template>
</mostly-filter>
</template>
</mostly-slot-content>
<mostly-slot-content name="documentCollapsiblePage" slot="DOCUMENT_VIEWS_PAGES" order="10">
<template>
<mostly-filter document="[[document]]" facet="Folderish,Collection">
<template>
<playing-collapsible-document-page name="view" document="[[document]]"></playing-collapsible-document-page>
</template>
</mostly-filter>
</template>
</mostly-slot-content>
<mostly-slot-content name="documentActivityPage" slot="DOCUMENT_VIEWS_PAGES" order="30">
<template>
<playing-document-activity name="activity" document="[[document]]"></playing-document-activity>
</template>
</mostly-slot-content>
<mostly-slot-content name="documentTrashPage" slot="DOCUMENT_VIEWS_PAGES" order="40">
<template>
<mostly-filter document="[[document]]" facet="Folderish">
<template>
<playing-document-trash-content name="trash" document="[[document]]">
</playing-document-trash-content>
</template>
</mostly-filter>
</template>
</mostly-slot-content>
<!-- DOCUMENT CREATE ACTIONS -->
<mostly-slot-content name="defaultDocumentCreateActions" slot="DOCUMENT_CREATE_ACTIONS" order="10">
<template>
<playing-document-create-shortcuts host-visible$=[[hostVisible]]
subtypes="[[subtypes]]"></playing-document-create-shortcuts>
</template>
</mostly-slot-content>
<!-- DOCUMENT CREATION WIZARD -->
<mostly-slot-content name="documentCreateItem" slot="CREATE_POPUP_ITEMS" order="10">
<template>
<paper-tab name="create">[[i18n('documentCreatePopup.create')]]</paper-tab>
</template>
</mostly-slot-content>
<mostly-slot-content name="documentImportItem" slot="CREATE_POPUP_ITEMS" order="20">
<template>
<paper-tab name="import">[[i18n('documentCreatePopup.import')]]</paper-tab>
</template>
</mostly-slot-content>
<!-- DOCUMENT ACTIONS -->
<mostly-slot-content name="editDocumentAction" slot="DOCUMENT_ACTIONS" order="10">
<template>
<playing-document-edit-button document="[[document]]"></playing-document-edit-button>
</template>
</mostly-slot-content>
<mostly-slot-content name="deleteDocumentAction" slot="DOCUMENT_ACTIONS" order="15">
<template>
<playing-delete-document-button document="[[document]]"></playing-delete-document-button>
</template>
</mostly-slot-content>
<mostly-slot-content name="clipboardToggleDocumentAction" slot="DOCUMENT_ACTIONS" order="60">
<template>
<playing-clipboard-toggle-button document="[[document]]" clipboard="[[clipboard]]"></playing-clipboard-toggle-button>
</template>
</mostly-slot-content>
<mostly-slot-content name="lockToggleDocumentAction" slot="DOCUMENT_ACTIONS" order="70">
<template>
<mostly-filter document="[[document]]" expression="document.metadata.facets.indexOf('Folderish') === -1">
<template>
<playing-lock-toggle-button document="[[document]]"></playing-lock-toggle-button>
</template>
</mostly-filter>
</template>
</mostly-slot-content>
<mostly-slot-content name="previewDocumentAction" slot="DOCUMENT_ACTIONS" order="80">
<template>
<playing-preview-button document="[[document]]"></playing-preview-button>
</template>
</mostly-slot-content>
<mostly-slot-content name="exportDocumentAction" slot="DOCUMENT_ACTIONS" order="90">
<template>
<playing-export-button document="[[document]]"></playing-export-button>
</template>
</mostly-slot-content>
<!-- TODO: -->
<mostly-slot-content name="exportDocumentAction" slot="DOCUMENT_ACTIONS" order="100">
<template>
<playing-export-button document="[[document]]"></playing-export-button>
</template>
</mostly-slot-content>
<!-- TODO: -->
<mostly-slot-content name="workflowDocumentAction" slot="DOCUMENT_ACTIONS" order="110">
<template>
<playing-workflow-button document="[[document]]"></playing-workflow-button>
</template>
</mostly-slot-content>
<!-- RESULT SELECTION ACTIONS -->
<mostly-slot-content name="orderSelectionActions" slot="RESULTS_SELECTION_ACTIONS" order="-50">
<template>
<mostly-filter document="[[document]]" facet="Orderable">
<template>
<playing-move-documents-up-button parent="[[document]]" selected-documents="[[selectedItems]]" documents="[[items]]">
</playing-move-documents-up-button>
<playing-move-documents-down-button parent="[[document]]" selected-documents="[[selectedItems]]" documents="[[items]]">
</playing-move-documents-down-button>
</template>
</mostly-filter>
</template>
</mostly-slot-content>
<mostly-slot-content name="addToClipboardSelectionAction" slot="RESULTS_SELECTION_ACTIONS" order="20">
<template>
<playing-clipboard-bulk-button documents="[[selectedItems]]">
</playing-clipboard-bulk-button>
</template>
</mostly-slot-content>
<mostly-slot-content name="deleteSelectionAction" slot="RESULTS_SELECTION_ACTIONS" order="30">
<template>
<playing-delete-bulk-button documents="[[selectedItems]]">
</playing-delete-bulk-button>
</template>
</mostly-slot-content>
<mostly-slot-content name="hardDeleteSelectionAction" slot="RESULTS_SELECTION_ACTIONS" order="40">
<template>
<playing-delete-bulk-button documents="[[selectedItems]]" hard></playing-delete-bulk-button>
</template>
</mostly-slot-content>
<mostly-slot-content name="untrashSelectionAction" slot="RESULTS_SELECTION_ACTIONS" order="50">
<template>
<playing-untrash-bulk-button documents="[[selectedItems]]"></playing-untrash-bulk-button>
</template>
</mostly-slot-content>
<!-- BLOB ACTIONS -->
<mostly-slot-content name="deleteBlobAction" slot="BLOB_ACTIONS" order="10">
<template>
<playing-delete-blob-button document="[[document]]" xpath="[[xpath]]"></playing-delete-blob-button>
</template>
</mostly-slot-content>
<mostly-slot-content name="previewBlobAction" slot="BLOB_ACTIONS" order="20">
<template>
<playing-preview-button document="[[document]]" xpath="[[xpath]]"></playing-preview-button>
</template>
</mostly-slot-content>
<mostly-slot-content name="downloadBlobAction" slot="BLOB_ACTIONS" order="30">
<template>
<playing-download-button document="[[document]]" xpath="[[xpath]]"></playing-download-button>
</template>
</mostly-slot-content>