@phis/ui 0.8.2 → 0.8.3
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/components/calendar/gregory-calendar-adapter-client.js +1 -0
- package/components/controls/phi-accordion-control.d.ts +6 -0
- package/components/controls/phi-accordion-control.js +8 -13
- package/components/controls/phi-background-control.js +2 -5
- package/components/controls/phi-builder-insert-picker-control-labels.d.ts +2 -0
- package/components/controls/phi-builder-insert-picker-control-labels.js +1 -0
- package/components/controls/phi-builder-insert-picker-control.js +10 -11
- package/components/controls/phi-cascader-control.d.ts +9 -3
- package/components/controls/phi-cascader-control.js +38 -10
- package/components/controls/phi-checkbox-group-control.d.ts +3 -1
- package/components/controls/phi-checkbox-group-control.js +2 -2
- package/components/controls/phi-collapse-control.d.ts +9 -2
- package/components/controls/phi-collapse-control.js +14 -2
- package/components/controls/phi-color-control.d.ts +3 -1
- package/components/controls/phi-color-control.js +2 -2
- package/components/controls/phi-color-field-control.d.ts +6 -1
- package/components/controls/phi-color-field-control.js +2 -2
- package/components/controls/phi-confirm-control.d.ts +1 -1
- package/components/controls/phi-confirm-control.js +71 -2
- package/components/controls/phi-confirm-dialog.js +2 -1
- package/components/controls/phi-date-picker-control.js +1 -1
- package/components/controls/phi-dimension-control.d.ts +3 -1
- package/components/controls/phi-dimension-control.js +2 -2
- package/components/controls/phi-geometry-control.js +1 -1
- package/components/controls/phi-length-control.d.ts +6 -1
- package/components/controls/phi-length-control.js +3 -2
- package/components/controls/phi-multi-select-control.d.ts +6 -1
- package/components/controls/phi-multi-select-control.js +3 -3
- package/components/controls/phi-segmented-control.d.ts +6 -1
- package/components/controls/phi-segmented-control.js +3 -3
- package/components/controls/phi-switch-control.d.ts +3 -1
- package/components/controls/phi-switch-control.js +3 -3
- package/components/controls/phi-table-control.d.ts +8 -1
- package/components/controls/phi-table-control.js +8 -2
- package/components/forms/compound-form-controls.js +16 -1
- package/components/layouts/clients/phi-collapsible-layout-client.js +2 -6
- package/components/media/media-widget-labels.d.ts +2 -0
- package/components/media/media-widget-labels.js +2 -0
- package/components/media/phi-asset-inspector-section.js +19 -1
- package/components/regions/presets/phi-area-shell-preset-nodes.js +2 -0
- package/components/shell/phi-builder-icon.js +9 -1
- package/components/tables/phi-table-surface.d.ts +25 -0
- package/components/tables/phi-table-surface.js +25 -0
- package/components/widgets/builder/phi-static-rows-editor.js +4 -1
- package/components/widgets/client/shared/phi-choice-controller.d.ts +8 -1
- package/components/widgets/client/shared/phi-choice-controller.js +16 -1
- package/components/widgets/config/choice-shared.d.ts +2 -0
- package/components/widgets/config/choice-shared.js +1 -0
- package/components/widgets/config/image-variant-options.d.ts +4 -1
- package/components/widgets/config/image-variant-options.js +27 -14
- package/components/widgets/inspector-field-row.d.ts +14 -1
- package/components/widgets/inspector-field-row.js +21 -1
- package/components/widgets/label-sets/builder-chrome.js +2 -0
- package/components/widgets/label-sets/inspector.js +10 -0
- package/components/widgets/label-sets/security.js +2 -0
- package/components/widgets/label-types/inspector.d.ts +5 -0
- package/components/widgets/label-types/inspector.js +5 -0
- package/components/widgets/label-types/security.d.ts +2 -0
- package/components/widgets/signals/signal-endpoint-list.js +4 -1
- package/helpers/cms-inspector-drawer.d.ts +15 -0
- package/helpers/cms-inspector-drawer.js +37 -0
- package/helpers/cms-layout-defaults.js +1 -1
- package/helpers/preset-tree-contract-check.js +56 -0
- package/helpers/text-source.js +2 -0
- package/package.json +4 -4
- package/plugins/runtime-modules/accounting/definition.d.ts +1 -1
- package/plugins/runtime-modules/accounting/definition.js +0 -1
- package/plugins/runtime-modules/accounting/ids.d.ts +4 -4
- package/plugins/runtime-modules/accounting/ids.js +4 -2
- package/plugins/runtime-modules/accounting/module.d.ts +1 -1
- package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.js +2 -1
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.d.ts +5 -4
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.js +80 -38
- package/plugins/runtime-modules/admin/definition.d.ts +1 -1
- package/plugins/runtime-modules/admin/definition.js +0 -1
- package/plugins/runtime-modules/admin/module.d.ts +1 -1
- package/plugins/runtime-modules/app/definition.d.ts +1 -1
- package/plugins/runtime-modules/app/definition.js +0 -1
- package/plugins/runtime-modules/app/module.d.ts +1 -1
- package/plugins/runtime-modules/area-base-definition.d.ts +19 -1
- package/plugins/runtime-modules/area-base-definition.js +18 -0
- package/plugins/runtime-modules/area-definitions.d.ts +8 -8
- package/plugins/runtime-modules/area-definitions.js +4 -3
- package/plugins/runtime-modules/area-root-route.d.ts +8 -0
- package/plugins/runtime-modules/area-root-route.js +11 -1
- package/plugins/runtime-modules/asset/labels.js +4 -0
- package/plugins/runtime-modules/asset/metadata-form.d.ts +0 -28
- package/plugins/runtime-modules/asset/metadata-form.js +6 -10
- package/plugins/runtime-modules/asset/services/options.d.ts +3 -2
- package/plugins/runtime-modules/asset/services/options.js +4 -3
- package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.js +2 -1
- package/plugins/runtime-modules/asset/trees/phi-default-builder-media-page-tree.js +3 -3
- package/plugins/runtime-modules/auth/widgets/security/client.js +2 -2
- package/plugins/runtime-modules/builder/addresses.d.ts +1 -1
- package/plugins/runtime-modules/builder/addresses.js +1 -1
- package/plugins/runtime-modules/builder/area-settings-form.js +1 -1
- package/plugins/runtime-modules/builder/clients/inspector-condition-group.d.ts +16 -0
- package/plugins/runtime-modules/builder/clients/inspector-condition-group.js +9 -0
- package/plugins/runtime-modules/builder/clients/inspector-config-field.js +97 -10
- package/plugins/runtime-modules/builder/clients/pages-header.js +7 -6
- package/plugins/runtime-modules/builder/clients/region-visibility-fields.js +1 -1
- package/plugins/runtime-modules/builder/controller/workspace-controller.js +7 -4
- package/plugins/runtime-modules/builder/definition.d.ts +1 -1
- package/plugins/runtime-modules/builder/definition.js +0 -1
- package/plugins/runtime-modules/builder/offered-page-catalog.d.ts +10 -4
- package/plugins/runtime-modules/builder/offered-page-catalog.js +35 -8
- package/plugins/runtime-modules/builder/page-meta-form.js +5 -2
- package/plugins/runtime-modules/builder/plugin-meta-labels.js +8 -0
- package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +4 -2
- package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +20 -13
- package/plugins/runtime-modules/builder/workspace-catalog-actions.js +8 -1
- package/plugins/runtime-modules/cdn/trees/phi-default-admin-cdn-page-tree.js +26 -14
- package/plugins/runtime-modules/core/authoring-widgets.js +2 -1
- package/plugins/runtime-modules/core/messaging/label-defaults.d.ts +49 -0
- package/plugins/runtime-modules/core/messaging/label-defaults.js +48 -0
- package/plugins/runtime-modules/core/messaging/labels.d.ts +2 -28
- package/plugins/runtime-modules/core/messaging/labels.js +52 -23
- package/plugins/runtime-modules/core/widgets/card/config.d.ts +14 -0
- package/plugins/runtime-modules/core/widgets/command-toolbar/config.d.ts +14 -0
- package/plugins/runtime-modules/core/widgets/description/config.d.ts +14 -0
- package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +14 -0
- package/plugins/runtime-modules/core/widgets/float-button/config.d.ts +14 -0
- package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +14 -0
- package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +14 -0
- package/plugins/runtime-modules/core/widgets/result/config.d.ts +14 -0
- package/plugins/runtime-modules/core/widgets/select-box/client.js +13 -4
- package/plugins/runtime-modules/core/widgets/select-box/config.js +1 -0
- package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +14 -0
- package/plugins/runtime-modules/core/widgets/table/client.js +11 -4
- package/plugins/runtime-modules/core/widgets/table/config.d.ts +1 -1143
- package/plugins/runtime-modules/core/widgets/table/config.js +144 -125
- package/plugins/runtime-modules/core/widgets/thread-conversation/authoring.d.ts +2 -0
- package/plugins/runtime-modules/core/widgets/thread-conversation/authoring.js +76 -0
- package/plugins/runtime-modules/core/widgets/thread-conversation/client.d.ts +44 -1
- package/plugins/runtime-modules/core/widgets/thread-conversation/client.js +28 -13
- package/plugins/runtime-modules/editor/definition.d.ts +1 -1
- package/plugins/runtime-modules/editor/definition.js +0 -1
- package/plugins/runtime-modules/editor/module.d.ts +1 -1
- package/plugins/runtime-modules/phi-default-site-area-preset-tree.js +16 -8
- package/plugins/runtime-modules/public/definition.d.ts +1 -1
- package/plugins/runtime-modules/public/definition.js +0 -1
- package/plugins/runtime-modules/public/module.d.ts +1 -1
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +109 -86
- package/plugins/runtime-modules/threads/controller/client.js +10 -12
- package/plugins/runtime-modules/threads/controller/definition.d.ts +6 -0
- package/plugins/runtime-modules/threads/controller/definition.js +17 -6
- package/styles/controls.css +49 -1
- package/styles/layout.css +3 -2
- package/types/calendar.d.ts +5 -0
- package/types/cms-plugins.d.ts +30 -10
- package/types/table-widget.d.ts +6 -0
package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.js
CHANGED
|
@@ -25,11 +25,12 @@ const SYNTHETIC_CUSTOMER_FILE_REGION_ID = -459;
|
|
|
25
25
|
* already is and bound by Foundation names only (`constants/customer-file.ts`,
|
|
26
26
|
* `constants/threads-controller-address.ts`): the Table and Collection Providers and the Conversations
|
|
27
27
|
* Controller are the conversations Module's, which is active in the Accounting Area by default and has to
|
|
28
|
-
* be for this Page to read anything.
|
|
28
|
+
* be for this Page to read anything. Above everything stands the member select, Core's member picker
|
|
29
29
|
* (the `site-members` options with Core's search, which matches names, e-mail addresses and telephone
|
|
30
|
-
* numbers)
|
|
31
|
-
* fills the Page with one request: the Controller hands the member to the
|
|
32
|
-
*
|
|
30
|
+
* numbers), because it is the input of everything below it; its value goes to the Conversations
|
|
31
|
+
* Controller, so one choice fills the Page with one request: the Controller hands the member to the person
|
|
32
|
+
* and the conversations Tables as filters and to the addresses tiles as binding params (Core's address
|
|
33
|
+
* renderer, read-only), joins the Tables' read for the file's id and hands it to the file
|
|
33
34
|
* panel, a conversation reader whose "Add note" opens Core's Reply Form
|
|
34
35
|
* in a dialog of its own (every message of a file is internal). The conversations Table lists the person's
|
|
35
36
|
* conversations, the file not among them, and choosing a row is the conversations Page's choreography
|
|
@@ -81,6 +82,7 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
|
|
|
81
82
|
const controllerAddress = createPhiThreadsControllerAddress();
|
|
82
83
|
const addressesAddress = createPhiSignalAddress("cms", widgetIds.widgetAddresses);
|
|
83
84
|
const fileAddress = createPhiSignalAddress("cms", widgetIds.widgetFile);
|
|
85
|
+
const personAddress = createPhiSignalAddress("cms", widgetIds.widgetPerson);
|
|
84
86
|
const threadsAddress = createPhiSignalAddress("cms", widgetIds.widgetThreads);
|
|
85
87
|
const conversationAddress = createPhiSignalAddress("cms", widgetIds.widgetConversation);
|
|
86
88
|
const noteOverlayAddress = createPhiSignalAddress("cms", overlayIds.overlayNote);
|
|
@@ -97,7 +99,7 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
|
|
|
97
99
|
...(valueSchema ? { valueSchema } : {}),
|
|
98
100
|
receiver,
|
|
99
101
|
});
|
|
100
|
-
const
|
|
102
|
+
const memberFilters = (routeKey, receiver) => route(routeKey, "filtersChange", "filters", "change", receiver, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableFilters);
|
|
101
103
|
const tableAction = (routeKey, capabilityId, receiver) => route(routeKey, capabilityId, "action", "activate", receiver, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableAction);
|
|
102
104
|
const threadRoute = (routeKey, capabilityId, action, receiver) => route(routeKey, capabilityId, "thread", action, receiver, "json", PHI_SIGNAL_VALUE_SCHEMAS.threadSelection);
|
|
103
105
|
const prefix = "accounting-customer-file";
|
|
@@ -224,7 +226,8 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
|
|
|
224
226
|
/*
|
|
225
227
|
* The Conversations Controller, configured as on the conversations Page -- the chosen conversation to
|
|
226
228
|
* its reader, the listing read again after a reply -- and with this Page's part: the member's file to
|
|
227
|
-
* the file panel when the
|
|
229
|
+
* the file panel when the member select chooses one, read again after a note, and the member to
|
|
230
|
+
* the Tables and the addresses.
|
|
228
231
|
*/
|
|
229
232
|
controllerSettings: [{
|
|
230
233
|
type: PHI_THREADS_CONTROLLER_TYPE,
|
|
@@ -238,7 +241,9 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
|
|
|
238
241
|
threadRoute(`${prefix}-controller-file`, "fileThreadChange", "change", fileAddress),
|
|
239
242
|
threadRoute(`${prefix}-controller-file-reload`, "fileThreadReload", "reload", fileAddress),
|
|
240
243
|
route(`${prefix}-controller-reload-threads`, "reload", "reload", "activate", threadsAddress),
|
|
241
|
-
// The member chosen, as the addresses tiles' binding params.
|
|
244
|
+
// The member chosen, as the Tables' filters and as the addresses tiles' binding params.
|
|
245
|
+
route(`${prefix}-controller-person`, "memberFiltersChange", "filters", "change", personAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableFilters),
|
|
246
|
+
route(`${prefix}-controller-threads`, "memberFiltersChange", "filters", "change", threadsAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableFilters),
|
|
242
247
|
route(`${prefix}-controller-addresses`, "memberParamsChange", "bindingParams", "change", addressesAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableBindingParams),
|
|
243
248
|
],
|
|
244
249
|
},
|
|
@@ -246,14 +251,66 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
|
|
|
246
251
|
}],
|
|
247
252
|
overlays: [noteDialog.dialog.overlay, replyDialog.dialog.overlay],
|
|
248
253
|
regions: [scaffold.region],
|
|
249
|
-
layoutNodes: [
|
|
254
|
+
layoutNodes: [
|
|
255
|
+
scaffold.layoutNode,
|
|
256
|
+
// The member select's row, first on the Page: it is the input of everything below it.
|
|
257
|
+
nodes.layout({
|
|
258
|
+
id: layoutIds.layoutMember,
|
|
259
|
+
parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
|
|
260
|
+
creationPreset: { layoutKind: "flex", preset: "panel" },
|
|
261
|
+
typeKey: "flex",
|
|
262
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
263
|
+
sortOrder: 0,
|
|
264
|
+
label: `${prefix} member row`,
|
|
265
|
+
// Flush with the Tables below: the Region holds the Page's inset.
|
|
266
|
+
config: { padding: 0, paddingLeft: 0, paddingRight: 0 },
|
|
267
|
+
}),
|
|
268
|
+
...noteDialog.dialog.layouts,
|
|
269
|
+
...replyDialog.dialog.layouts,
|
|
270
|
+
],
|
|
250
271
|
contentWidgets: [
|
|
272
|
+
/*
|
|
273
|
+
* Core's member picker as a select of its own, labelled in front, searched on the server. It may be
|
|
274
|
+
* cleared, so it starts with nobody chosen; its value, the user id as text (`""` once cleared), goes
|
|
275
|
+
* to the Controller, which hands it to everything below.
|
|
276
|
+
*/
|
|
277
|
+
nodes.widget({
|
|
278
|
+
id: widgetIds.widgetMember,
|
|
279
|
+
parentLayoutNodeId: layoutIds.layoutMember,
|
|
280
|
+
typeKey: "select-box",
|
|
281
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
282
|
+
sortOrder: 0,
|
|
283
|
+
// The Module's Label Set, translated already.
|
|
284
|
+
flags: PhiCmsFlags.NoTranslate,
|
|
285
|
+
label: labels.person.picker,
|
|
286
|
+
config: {
|
|
287
|
+
key: `${prefix}-member`,
|
|
288
|
+
label: labels.person.picker,
|
|
289
|
+
description: labels.person.pickerHint,
|
|
290
|
+
allowClear: true,
|
|
291
|
+
/*
|
|
292
|
+
* A search wants room to type in, about half the row, label included. In pixels: the Flex slot
|
|
293
|
+
* is as wide as what it holds, so a share of it would be a share of the select itself.
|
|
294
|
+
*/
|
|
295
|
+
size: { width: { compact: 300, medium: 377, wide: 466 } },
|
|
296
|
+
optionsProvider: {
|
|
297
|
+
providerKey: PHI_CORE_RUNTIME_DATA_PROVIDER_KEYS.siteMembers,
|
|
298
|
+
loadMode: "server",
|
|
299
|
+
search: { enabled: true, minChars: 2 },
|
|
300
|
+
},
|
|
301
|
+
signalRoutes: {
|
|
302
|
+
emits: [
|
|
303
|
+
route(`${prefix}-member-to-controller`, "change", "member", "change", controllerAddress, "string"),
|
|
304
|
+
],
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
}),
|
|
251
308
|
nodes.widget({
|
|
252
309
|
id: widgetIds.widgetPerson,
|
|
253
310
|
parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
|
|
254
311
|
typeKey: "table",
|
|
255
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
256
|
-
sortOrder:
|
|
312
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 1,
|
|
313
|
+
sortOrder: 1,
|
|
257
314
|
// The Module's Label Set, translated already.
|
|
258
315
|
flags: PhiCmsFlags.NoTranslate,
|
|
259
316
|
label: labels.person.label,
|
|
@@ -275,7 +332,7 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
|
|
|
275
332
|
footer: {
|
|
276
333
|
template: labels.person.footer,
|
|
277
334
|
values: [{ key: "member", value: { source: "provider", fieldKey: "userId" } }],
|
|
278
|
-
// Nobody chosen: nothing to say under the
|
|
335
|
+
// Nobody chosen: nothing to say under the Table.
|
|
279
336
|
variants: [{ when: { value: { source: "provider", fieldKey: "userId" }, operator: "falsy" }, template: "" }],
|
|
280
337
|
align: "start",
|
|
281
338
|
},
|
|
@@ -283,30 +340,15 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
|
|
|
283
340
|
loadingRows: 1,
|
|
284
341
|
},
|
|
285
342
|
features: {
|
|
286
|
-
// The
|
|
343
|
+
// The first page at the conversations Table's size, so the two read the member with one request.
|
|
287
344
|
pagination: { enabled: false, pageSize: 25 },
|
|
288
345
|
sorting: { mode: "none" },
|
|
289
346
|
search: { enabled: false },
|
|
290
347
|
tools: { mode: "self-contained", reset: false, reload: true },
|
|
291
|
-
filters: [{
|
|
292
|
-
key: "userId",
|
|
293
|
-
type: "select",
|
|
294
|
-
label: labels.person.picker,
|
|
295
|
-
description: labels.person.pickerHint,
|
|
296
|
-
optionsProvider: {
|
|
297
|
-
providerKey: PHI_CORE_RUNTIME_DATA_PROVIDER_KEYS.siteMembers,
|
|
298
|
-
loadMode: "server",
|
|
299
|
-
search: { enabled: true, minChars: 2 },
|
|
300
|
-
},
|
|
301
|
-
}],
|
|
302
348
|
},
|
|
303
349
|
signalRoutes: {
|
|
304
|
-
// The member chosen,
|
|
305
|
-
|
|
306
|
-
emits: [
|
|
307
|
-
route(`${prefix}-person-to-threads`, "queryChange", "query", "change", threadsAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableQuery),
|
|
308
|
-
route(`${prefix}-person-to-file`, "queryChange", "member", "change", controllerAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableQuery),
|
|
309
|
-
],
|
|
350
|
+
// The member chosen, from the Controller, as the `userId` filter the Provider reads.
|
|
351
|
+
listens: [memberFilters(`${prefix}-person-member`, personAddress)],
|
|
310
352
|
},
|
|
311
353
|
},
|
|
312
354
|
}),
|
|
@@ -319,8 +361,8 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
|
|
|
319
361
|
id: widgetIds.widgetAddresses,
|
|
320
362
|
parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
|
|
321
363
|
typeKey: "collection-view",
|
|
322
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX +
|
|
323
|
-
sortOrder:
|
|
364
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 2,
|
|
365
|
+
sortOrder: 2,
|
|
324
366
|
// The Module's Label Set, translated already.
|
|
325
367
|
flags: PhiCmsFlags.NoTranslate,
|
|
326
368
|
label: labels.addresses.label,
|
|
@@ -349,8 +391,8 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
|
|
|
349
391
|
id: widgetIds.widgetFile,
|
|
350
392
|
parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
|
|
351
393
|
typeKey: "thread-conversation",
|
|
352
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX +
|
|
353
|
-
sortOrder:
|
|
394
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 3,
|
|
395
|
+
sortOrder: 3,
|
|
354
396
|
// The Module's Label Set, translated already.
|
|
355
397
|
flags: PhiCmsFlags.NoTranslate,
|
|
356
398
|
label: labels.file.label,
|
|
@@ -360,8 +402,8 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
|
|
|
360
402
|
id: widgetIds.widgetThreads,
|
|
361
403
|
parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
|
|
362
404
|
typeKey: "table",
|
|
363
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX +
|
|
364
|
-
sortOrder:
|
|
405
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 4,
|
|
406
|
+
sortOrder: 4,
|
|
365
407
|
// The Module's Label Set, translated already.
|
|
366
408
|
flags: PhiCmsFlags.NoTranslate,
|
|
367
409
|
label: labels.threads.label,
|
|
@@ -424,7 +466,7 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
|
|
|
424
466
|
route(`${prefix}-threads-condition`, "conditionStateRequest", "condition", "reload", controllerAddress),
|
|
425
467
|
],
|
|
426
468
|
listens: [
|
|
427
|
-
|
|
469
|
+
memberFilters(`${prefix}-threads-member`, threadsAddress),
|
|
428
470
|
route(`${prefix}-threads-reload`, "reload", "reload", "activate", threadsAddress),
|
|
429
471
|
],
|
|
430
472
|
},
|
|
@@ -434,8 +476,8 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
|
|
|
434
476
|
id: widgetIds.widgetConversation,
|
|
435
477
|
parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
|
|
436
478
|
typeKey: "thread-conversation",
|
|
437
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX +
|
|
438
|
-
sortOrder:
|
|
479
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 5,
|
|
480
|
+
sortOrder: 5,
|
|
439
481
|
// The Module's Label Set, translated already.
|
|
440
482
|
flags: PhiCmsFlags.NoTranslate,
|
|
441
483
|
label: labels.conversation.label,
|
|
@@ -2,7 +2,6 @@ export declare const PHI_ADMIN_RUNTIME_MODULE_DEFINITION: Omit<{
|
|
|
2
2
|
serverBinding: import("../../../types").PhiRuntimeModuleServerBinding;
|
|
3
3
|
description: string;
|
|
4
4
|
category: "foundation";
|
|
5
|
-
iconFamily: string;
|
|
6
5
|
formProviders: {
|
|
7
6
|
handlers: {
|
|
8
7
|
key: `${string}/${string}`;
|
|
@@ -26,4 +25,5 @@ export declare const PHI_ADMIN_RUNTIME_MODULE_DEFINITION: Omit<{
|
|
|
26
25
|
kind: "module";
|
|
27
26
|
eligibleAreas: readonly ["public" | "app" | "admin" | "builder" | "editor" | "accounting"];
|
|
28
27
|
title: "Public Base" | "App Base" | "Accounting Base" | "Admin Base" | "Builder Base" | "Editor Base";
|
|
28
|
+
icon: string;
|
|
29
29
|
};
|
|
@@ -8,6 +8,5 @@ export const PHI_ADMIN_RUNTIME_MODULE_DEFINITION = definePhiAreaBaseRuntimeModul
|
|
|
8
8
|
serverBinding: PHI_CORE_SERVER_BINDING,
|
|
9
9
|
description: "Locked Admin Area shell, navigation surface, root route, and Admin settings.",
|
|
10
10
|
category: "foundation",
|
|
11
|
-
iconFamily: "admin",
|
|
12
11
|
formProviders: { handlers: PHI_ADMIN_SETTINGS_FORM_HANDLER_PROVIDER_DESCRIPTORS },
|
|
13
12
|
});
|
|
@@ -25,8 +25,8 @@ export declare const PHI_ADMIN_RUNTIME_MODULE: {
|
|
|
25
25
|
credentialPolicy: "site-session";
|
|
26
26
|
}[];
|
|
27
27
|
};
|
|
28
|
-
iconFamily: string;
|
|
29
28
|
kind: "module";
|
|
30
29
|
eligibleAreas: readonly ["public" | "app" | "admin" | "builder" | "editor" | "accounting"];
|
|
31
30
|
title: "Public Base" | "App Base" | "Accounting Base" | "Admin Base" | "Builder Base" | "Editor Base";
|
|
31
|
+
icon: string;
|
|
32
32
|
};
|
|
@@ -2,7 +2,6 @@ export declare const PHI_APP_RUNTIME_MODULE_DEFINITION: Omit<{
|
|
|
2
2
|
serverBinding: import("../../../types").PhiRuntimeModuleServerBinding;
|
|
3
3
|
description: string;
|
|
4
4
|
category: "foundation";
|
|
5
|
-
icon: string;
|
|
6
5
|
formProviders: {
|
|
7
6
|
handlers: ({
|
|
8
7
|
key: `${string}/${string}`;
|
|
@@ -127,4 +126,5 @@ export declare const PHI_APP_RUNTIME_MODULE_DEFINITION: Omit<{
|
|
|
127
126
|
kind: "module";
|
|
128
127
|
eligibleAreas: readonly ["public" | "app" | "admin" | "builder" | "editor" | "accounting"];
|
|
129
128
|
title: "Public Base" | "App Base" | "Accounting Base" | "Admin Base" | "Builder Base" | "Editor Base";
|
|
129
|
+
icon: string;
|
|
130
130
|
};
|
|
@@ -9,7 +9,6 @@ export const PHI_APP_RUNTIME_MODULE_DEFINITION = definePhiAreaBaseRuntimeModuleD
|
|
|
9
9
|
serverBinding: PHI_CORE_SERVER_BINDING,
|
|
10
10
|
description: "Locked App Area shell, navigation surfaces, and authenticated application routes.",
|
|
11
11
|
category: "foundation",
|
|
12
|
-
icon: "antd:appstore",
|
|
13
12
|
formProviders: {
|
|
14
13
|
handlers: PHI_APP_FORM_HANDLER_PROVIDER_DESCRIPTORS,
|
|
15
14
|
},
|
|
@@ -7,7 +7,6 @@ export declare const PHI_APP_RUNTIME_MODULE: {
|
|
|
7
7
|
moduleId: "@phis/ui/modules/app";
|
|
8
8
|
category: "foundation";
|
|
9
9
|
description: string;
|
|
10
|
-
icon: string;
|
|
11
10
|
serverBinding: import("../../../types").PhiRuntimeModuleServerBinding;
|
|
12
11
|
dataProviders: {
|
|
13
12
|
key: `${string}/${string}`;
|
|
@@ -130,4 +129,5 @@ export declare const PHI_APP_RUNTIME_MODULE: {
|
|
|
130
129
|
kind: "module";
|
|
131
130
|
eligibleAreas: readonly ["public" | "app" | "admin" | "builder" | "editor" | "accounting"];
|
|
132
131
|
title: "Public Base" | "App Base" | "Accounting Base" | "Admin Base" | "Builder Base" | "Editor Base";
|
|
132
|
+
icon: string;
|
|
133
133
|
};
|
|
@@ -8,13 +8,31 @@ declare const PHI_AREA_BASE_MODULE_TITLES: {
|
|
|
8
8
|
readonly builder: "Builder Base";
|
|
9
9
|
readonly editor: "Editor Base";
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* The icon an Area is shown by, which is its base Module's.
|
|
13
|
+
*
|
|
14
|
+
* One answer for every place that draws it: the base Module's own row in the Builder's Modules table and
|
|
15
|
+
* that Area's checkbox column heading beside it, where the icon stands alone and the Area's name is its
|
|
16
|
+
* tooltip. The base Module takes it from here rather than stating its own, so the two cannot drift
|
|
17
|
+
* apart, and the sidebar entries that lead into another Area (`target: { kind: "area" }`) wear it too.
|
|
18
|
+
* Names from the shared icon vocabulary (`@phis/ui/widgets:<family>` is a Widget family's icon).
|
|
19
|
+
*/
|
|
20
|
+
export declare const PHI_AREA_ICONS: {
|
|
21
|
+
readonly public: "antd:global";
|
|
22
|
+
readonly app: "antd:appstore";
|
|
23
|
+
readonly accounting: "antd:profile";
|
|
24
|
+
readonly admin: "antd:cluster";
|
|
25
|
+
readonly builder: "antd:build";
|
|
26
|
+
readonly editor: "@phis/ui/widgets:editor";
|
|
27
|
+
};
|
|
11
28
|
type PhiAreaBaseModuleTitle<TArea extends PhiCmsAreaKey> = (typeof PHI_AREA_BASE_MODULE_TITLES)[TArea];
|
|
12
|
-
type PhiAreaBaseRuntimeModuleDefinitionInput<TArea extends PhiCmsAreaKey> = Omit<PhiRuntimeModuleDefinition, "kind" | "eligibleAreas" | "title"> & {
|
|
29
|
+
type PhiAreaBaseRuntimeModuleDefinitionInput<TArea extends PhiCmsAreaKey> = Omit<PhiRuntimeModuleDefinition, "kind" | "eligibleAreas" | "title" | "icon" | "iconFamily"> & {
|
|
13
30
|
area: TArea;
|
|
14
31
|
};
|
|
15
32
|
export declare function definePhiAreaBaseRuntimeModuleDefinition<TArea extends PhiCmsAreaKey, TDefinition extends PhiAreaBaseRuntimeModuleDefinitionInput<TArea>>(definition: TDefinition): Omit<TDefinition, "area"> & {
|
|
16
33
|
kind: "module";
|
|
17
34
|
eligibleAreas: readonly [TArea];
|
|
18
35
|
title: PhiAreaBaseModuleTitle<TArea>;
|
|
36
|
+
icon: string;
|
|
19
37
|
};
|
|
20
38
|
export {};
|
|
@@ -6,6 +6,23 @@ const PHI_AREA_BASE_MODULE_TITLES = {
|
|
|
6
6
|
builder: "Builder Base",
|
|
7
7
|
editor: "Editor Base",
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* The icon an Area is shown by, which is its base Module's.
|
|
11
|
+
*
|
|
12
|
+
* One answer for every place that draws it: the base Module's own row in the Builder's Modules table and
|
|
13
|
+
* that Area's checkbox column heading beside it, where the icon stands alone and the Area's name is its
|
|
14
|
+
* tooltip. The base Module takes it from here rather than stating its own, so the two cannot drift
|
|
15
|
+
* apart, and the sidebar entries that lead into another Area (`target: { kind: "area" }`) wear it too.
|
|
16
|
+
* Names from the shared icon vocabulary (`@phis/ui/widgets:<family>` is a Widget family's icon).
|
|
17
|
+
*/
|
|
18
|
+
export const PHI_AREA_ICONS = {
|
|
19
|
+
public: "antd:global",
|
|
20
|
+
app: "antd:appstore",
|
|
21
|
+
accounting: "antd:profile",
|
|
22
|
+
admin: "antd:cluster",
|
|
23
|
+
builder: "antd:build",
|
|
24
|
+
editor: "@phis/ui/widgets:editor",
|
|
25
|
+
};
|
|
9
26
|
export function definePhiAreaBaseRuntimeModuleDefinition(definition) {
|
|
10
27
|
const { area, ...metadata } = definition;
|
|
11
28
|
return {
|
|
@@ -13,5 +30,6 @@ export function definePhiAreaBaseRuntimeModuleDefinition(definition) {
|
|
|
13
30
|
kind: "module",
|
|
14
31
|
eligibleAreas: [area],
|
|
15
32
|
title: PHI_AREA_BASE_MODULE_TITLES[area],
|
|
33
|
+
icon: PHI_AREA_ICONS[area],
|
|
16
34
|
};
|
|
17
35
|
}
|
|
@@ -122,7 +122,7 @@ export declare const PHI_ACCOUNTING_RUNTIME_AREA_DEFINITIONS: {
|
|
|
122
122
|
label: {
|
|
123
123
|
defaultMessage: string;
|
|
124
124
|
};
|
|
125
|
-
icon:
|
|
125
|
+
icon: "antd:cluster";
|
|
126
126
|
standing: "last";
|
|
127
127
|
target: {
|
|
128
128
|
kind: "area";
|
|
@@ -174,7 +174,7 @@ export declare const PHI_ADMIN_RUNTIME_AREA_DEFINITIONS: {
|
|
|
174
174
|
label: {
|
|
175
175
|
defaultMessage: string;
|
|
176
176
|
};
|
|
177
|
-
icon:
|
|
177
|
+
icon: "antd:build";
|
|
178
178
|
standing: "last";
|
|
179
179
|
target: {
|
|
180
180
|
kind: "area";
|
|
@@ -326,7 +326,7 @@ export declare const PHI_ALL_RUNTIME_AREA_DEFINITIONS: ({
|
|
|
326
326
|
label: {
|
|
327
327
|
defaultMessage: string;
|
|
328
328
|
};
|
|
329
|
-
icon:
|
|
329
|
+
icon: "antd:cluster";
|
|
330
330
|
standing: "last";
|
|
331
331
|
target: {
|
|
332
332
|
kind: "area";
|
|
@@ -377,7 +377,7 @@ export declare const PHI_ALL_RUNTIME_AREA_DEFINITIONS: ({
|
|
|
377
377
|
label: {
|
|
378
378
|
defaultMessage: string;
|
|
379
379
|
};
|
|
380
|
-
icon:
|
|
380
|
+
icon: "antd:build";
|
|
381
381
|
standing: "last";
|
|
382
382
|
target: {
|
|
383
383
|
kind: "area";
|
|
@@ -454,7 +454,7 @@ export declare const PHI_ALL_RUNTIME_AREA_DEFINITIONS: ({
|
|
|
454
454
|
label: {
|
|
455
455
|
defaultMessage: string;
|
|
456
456
|
};
|
|
457
|
-
icon:
|
|
457
|
+
icon: "antd:cluster";
|
|
458
458
|
standing: "last";
|
|
459
459
|
target: {
|
|
460
460
|
kind: "area";
|
|
@@ -588,7 +588,7 @@ export declare function resolvePhiRuntimeAreaDefinition(area: PhiCmsAreaDefiniti
|
|
|
588
588
|
label: {
|
|
589
589
|
defaultMessage: string;
|
|
590
590
|
};
|
|
591
|
-
icon:
|
|
591
|
+
icon: "antd:cluster";
|
|
592
592
|
standing: "last";
|
|
593
593
|
target: {
|
|
594
594
|
kind: "area";
|
|
@@ -639,7 +639,7 @@ export declare function resolvePhiRuntimeAreaDefinition(area: PhiCmsAreaDefiniti
|
|
|
639
639
|
label: {
|
|
640
640
|
defaultMessage: string;
|
|
641
641
|
};
|
|
642
|
-
icon:
|
|
642
|
+
icon: "antd:build";
|
|
643
643
|
standing: "last";
|
|
644
644
|
target: {
|
|
645
645
|
kind: "area";
|
|
@@ -716,7 +716,7 @@ export declare function resolvePhiRuntimeAreaDefinition(area: PhiCmsAreaDefiniti
|
|
|
716
716
|
label: {
|
|
717
717
|
defaultMessage: string;
|
|
718
718
|
};
|
|
719
|
-
icon:
|
|
719
|
+
icon: "antd:cluster";
|
|
720
720
|
standing: "last";
|
|
721
721
|
target: {
|
|
722
722
|
kind: "area";
|
|
@@ -2,6 +2,7 @@ import { PHI_SHARED_PACKAGE_NAME } from "../../constants/package";
|
|
|
2
2
|
import { createPhiRuntimeModuleId } from "../../constants/module-identity";
|
|
3
3
|
import { createPhiCoreRuntimeControllerAddress } from "../../components/runtime/core-runtime-controller-address";
|
|
4
4
|
import { PHI_DEFAULT_PUB_AREA_PRESET_KEY } from "./preset-contracts/pub-area";
|
|
5
|
+
import { PHI_AREA_ICONS } from "./area-base-definition";
|
|
5
6
|
import { PHI_VIEWER_ACCESS_ACCOUNTING, PHI_VIEWER_ACCESS_ANYONE, PHI_VIEWER_ACCESS_AUTHENTICATED, PHI_VIEWER_ACCESS_CONTENT_EDITING, PHI_VIEWER_ACCESS_SITE_MAINTENANCE, PHI_VIEWER_ACCESS_STRUCTURE_AUTHORING, PHI_VIEWER_ACCESS_SITE_ADMIN, } from "../../types/access";
|
|
6
7
|
/*
|
|
7
8
|
* The Modules named here are named by id, as data. Importing their `ids.ts` bound every file that
|
|
@@ -253,7 +254,7 @@ export const PHI_ACCOUNTING_RUNTIME_AREA_DEFINITIONS = [
|
|
|
253
254
|
{
|
|
254
255
|
itemKey: "@phis/ui/modules/accounting/nav/admin",
|
|
255
256
|
label: label("Admin"),
|
|
256
|
-
icon:
|
|
257
|
+
icon: PHI_AREA_ICONS.admin,
|
|
257
258
|
standing: "last",
|
|
258
259
|
target: { kind: "area", area: "admin" },
|
|
259
260
|
},
|
|
@@ -298,7 +299,7 @@ export const PHI_ADMIN_RUNTIME_AREA_DEFINITIONS = [
|
|
|
298
299
|
{
|
|
299
300
|
itemKey: "@phis/ui/modules/admin/nav/builder",
|
|
300
301
|
label: label("Builder"),
|
|
301
|
-
icon:
|
|
302
|
+
icon: PHI_AREA_ICONS.builder,
|
|
302
303
|
standing: "last",
|
|
303
304
|
target: { kind: "area", area: "builder" },
|
|
304
305
|
},
|
|
@@ -362,7 +363,7 @@ const PHI_BUILDER_RUNTIME_AREA_DEFINITIONS = [
|
|
|
362
363
|
{
|
|
363
364
|
itemKey: "@phis/ui/builder/nav/admin",
|
|
364
365
|
label: label("Admin"),
|
|
365
|
-
icon:
|
|
366
|
+
icon: PHI_AREA_ICONS.admin,
|
|
366
367
|
standing: "last",
|
|
367
368
|
target: { kind: "area", area: "admin" },
|
|
368
369
|
},
|
|
@@ -19,6 +19,14 @@ import type { PhiCmsRoutePresetDescriptor, PhiRuntimeModuleId } from "../../type
|
|
|
19
19
|
* two places is a convention until the day it is not.
|
|
20
20
|
*/
|
|
21
21
|
export declare function resolvePhiAreaRootRouteNavKey(area: PhiCmsAreaKey): "app:sidebar" | "accounting:sidebar" | "admin:sidebar" | "editor:sidebar" | "builder:sidebar" | "public:sidebar";
|
|
22
|
+
/**
|
|
23
|
+
* The preset key of the forward an Area's base Module stands at `/`.
|
|
24
|
+
*
|
|
25
|
+
* Stated once because two sides read it: the descriptor below is declared under it, and the Builder has
|
|
26
|
+
* to tell this forward apart from a landing standing in the same slot -- with nothing stored, the slot's
|
|
27
|
+
* applicant decides whether `/` forwards or is a Page somebody authors, and only this preset forwards.
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolvePhiAreaRootRoutePresetKey(area: PhiCmsAreaKey): "public-root-page" | "app-root-page" | "admin-root-page" | "builder-root-page" | "editor-root-page" | "accounting-root-page";
|
|
22
30
|
export declare function buildPhiAreaRootRoutePresetDescriptor({ ownerModuleId, area, navKey, title, }: {
|
|
23
31
|
ownerModuleId: PhiRuntimeModuleId;
|
|
24
32
|
area: PhiCmsAreaKey;
|
|
@@ -19,10 +19,20 @@
|
|
|
19
19
|
export function resolvePhiAreaRootRouteNavKey(area) {
|
|
20
20
|
return `${area}:sidebar`;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* The preset key of the forward an Area's base Module stands at `/`.
|
|
24
|
+
*
|
|
25
|
+
* Stated once because two sides read it: the descriptor below is declared under it, and the Builder has
|
|
26
|
+
* to tell this forward apart from a landing standing in the same slot -- with nothing stored, the slot's
|
|
27
|
+
* applicant decides whether `/` forwards or is a Page somebody authors, and only this preset forwards.
|
|
28
|
+
*/
|
|
29
|
+
export function resolvePhiAreaRootRoutePresetKey(area) {
|
|
30
|
+
return `${area}-root-page`;
|
|
31
|
+
}
|
|
22
32
|
export function buildPhiAreaRootRoutePresetDescriptor({ ownerModuleId, area, navKey = resolvePhiAreaRootRouteNavKey(area), title, }) {
|
|
23
33
|
return {
|
|
24
34
|
ownerModuleId,
|
|
25
|
-
presetKey:
|
|
35
|
+
presetKey: resolvePhiAreaRootRoutePresetKey(area),
|
|
26
36
|
presetVersion: 1,
|
|
27
37
|
area,
|
|
28
38
|
title,
|
|
@@ -32,6 +32,8 @@ const PHI_ASSET_LABEL_SET = definePhiRuntimeModuleLabelSet(PHI_ASSET_RUNTIME_MOD
|
|
|
32
32
|
inspector_logo_variant_label: PHI_ASSET_MODULE_DEFAULT_LABELS.inspector.logoVariantLabel,
|
|
33
33
|
inspector_landscape_variant_label: PHI_ASSET_MODULE_DEFAULT_LABELS.inspector.landscapeVariantLabel,
|
|
34
34
|
inspector_portrait_variant_label: PHI_ASSET_MODULE_DEFAULT_LABELS.inspector.portraitVariantLabel,
|
|
35
|
+
inspector_icon_variant_label: PHI_ASSET_MODULE_DEFAULT_LABELS.inspector.iconVariantLabel,
|
|
36
|
+
inspector_share_variant_label: PHI_ASSET_MODULE_DEFAULT_LABELS.inspector.shareVariantLabel,
|
|
35
37
|
inspector_public_url_label: PHI_ASSET_MODULE_DEFAULT_LABELS.inspector.publicUrlLabel,
|
|
36
38
|
inspector_content_type_label: PHI_ASSET_MODULE_DEFAULT_LABELS.inspector.contentTypeLabel,
|
|
37
39
|
inspector_original_name_label: PHI_ASSET_MODULE_DEFAULT_LABELS.inspector.originalNameLabel,
|
|
@@ -70,6 +72,8 @@ export async function getPhiAssetModuleLabels(options) {
|
|
|
70
72
|
logoVariantLabel: labels.inspector_logo_variant_label,
|
|
71
73
|
landscapeVariantLabel: labels.inspector_landscape_variant_label,
|
|
72
74
|
portraitVariantLabel: labels.inspector_portrait_variant_label,
|
|
75
|
+
iconVariantLabel: labels.inspector_icon_variant_label,
|
|
76
|
+
shareVariantLabel: labels.inspector_share_variant_label,
|
|
73
77
|
publicUrlLabel: labels.inspector_public_url_label,
|
|
74
78
|
contentTypeLabel: labels.inspector_content_type_label,
|
|
75
79
|
originalNameLabel: labels.inspector_original_name_label,
|
|
@@ -177,34 +177,6 @@ export declare const PHI_ASSET_FOLDER_FORM_DESCRIPTOR: {
|
|
|
177
177
|
readonly compact: "sm";
|
|
178
178
|
readonly medium: "base";
|
|
179
179
|
};
|
|
180
|
-
readonly label: {
|
|
181
|
-
readonly compact: {
|
|
182
|
-
readonly start: 1;
|
|
183
|
-
readonly end: 9;
|
|
184
|
-
};
|
|
185
|
-
readonly medium: {
|
|
186
|
-
readonly start: 1;
|
|
187
|
-
readonly end: 9;
|
|
188
|
-
};
|
|
189
|
-
readonly wide: {
|
|
190
|
-
readonly start: 1;
|
|
191
|
-
readonly end: 9;
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
readonly control: {
|
|
195
|
-
readonly compact: {
|
|
196
|
-
readonly start: 9;
|
|
197
|
-
readonly end: 25;
|
|
198
|
-
};
|
|
199
|
-
readonly medium: {
|
|
200
|
-
readonly start: 9;
|
|
201
|
-
readonly end: 25;
|
|
202
|
-
};
|
|
203
|
-
readonly wide: {
|
|
204
|
-
readonly start: 9;
|
|
205
|
-
readonly end: 25;
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
180
|
};
|
|
209
181
|
};
|
|
210
182
|
export declare const PHI_ASSET_METADATA_RUNTIME_MODULE_FORM: import("../contracts").PhiRuntimeModuleFormDefinition;
|
|
@@ -54,6 +54,11 @@ export const PHI_ASSET_METADATA_FORM_DESCRIPTOR = {
|
|
|
54
54
|
label: label("focalRectLabel", "Focal rectangle"),
|
|
55
55
|
},
|
|
56
56
|
],
|
|
57
|
+
/*
|
|
58
|
+
* Tracks of its own, against the house columns: this Form stands in the Asset inspector Drawer, 377px
|
|
59
|
+
* less the Collapsible's inset, which is `compact` -- where the default stacks its labels -- and an
|
|
60
|
+
* inspector keeps its labels beside the fields, as the Variants row above it does.
|
|
61
|
+
*/
|
|
57
62
|
layout: {
|
|
58
63
|
gap: { compact: "sm", medium: "base" },
|
|
59
64
|
label: {
|
|
@@ -94,18 +99,9 @@ export const PHI_ASSET_FOLDER_FORM_DESCRIPTOR = {
|
|
|
94
99
|
config: { allowRoot: true, allowClear: false, separator: "/", rootValue: "/", normalize: "raw" },
|
|
95
100
|
},
|
|
96
101
|
],
|
|
102
|
+
// The house columns (`PHI_FORM_DEFAULT_LAYOUT`), like every other side-label Form.
|
|
97
103
|
layout: {
|
|
98
104
|
gap: { compact: "sm", medium: "base" },
|
|
99
|
-
label: {
|
|
100
|
-
compact: { start: 1, end: 9 },
|
|
101
|
-
medium: { start: 1, end: 9 },
|
|
102
|
-
wide: { start: 1, end: 9 },
|
|
103
|
-
},
|
|
104
|
-
control: {
|
|
105
|
-
compact: { start: 9, end: 25 },
|
|
106
|
-
medium: { start: 9, end: 25 },
|
|
107
|
-
wide: { start: 9, end: 25 },
|
|
108
|
-
},
|
|
109
105
|
},
|
|
110
106
|
};
|
|
111
107
|
async function loadAssetFormLabels(context) {
|
|
@@ -5,8 +5,9 @@ export declare const PhiMediaFolderChoicesOptionsProviderClient: import("react")
|
|
|
5
5
|
children: import("react").ReactNode;
|
|
6
6
|
}>;
|
|
7
7
|
/**
|
|
8
|
-
* The Site's Storage Profiles as choices, by id. Named by key
|
|
9
|
-
*
|
|
8
|
+
* The Site's Storage Profiles as choices, by id. Named by the Profile's key -- the name the operator gave
|
|
9
|
+
* it, `local` for the Site's Local Profile -- with the Provider that stores it (the Add-on's provider id)
|
|
10
|
+
* as the option's description: what tells a bucket from the local disk, but not what the choice is.
|
|
10
11
|
*/
|
|
11
12
|
export declare const PhiMediaStorageProfilesOptionsProviderClient: import("react").ComponentType<{
|
|
12
13
|
children: import("react").ReactNode;
|
|
@@ -111,8 +111,9 @@ async function loadStorageProfiles() {
|
|
|
111
111
|
: []);
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
|
-
* The Site's Storage Profiles as choices, by id. Named by key
|
|
115
|
-
*
|
|
114
|
+
* The Site's Storage Profiles as choices, by id. Named by the Profile's key -- the name the operator gave
|
|
115
|
+
* it, `local` for the Site's Local Profile -- with the Provider that stores it (the Add-on's provider id)
|
|
116
|
+
* as the option's description: what tells a bucket from the local disk, but not what the choice is.
|
|
116
117
|
*/
|
|
117
118
|
export const PhiMediaStorageProfilesOptionsProviderClient = createPhiControlOptionsProviderClient({
|
|
118
119
|
key: PHI_ASSET_RUNTIME_DATA_PROVIDER_KEYS.mediaStorageProfiles,
|
|
@@ -123,7 +124,7 @@ export const PhiMediaStorageProfilesOptionsProviderClient = createPhiControlOpti
|
|
|
123
124
|
? context.asyncData
|
|
124
125
|
: [];
|
|
125
126
|
return {
|
|
126
|
-
options: profiles.map((profile) => ({ value: String(profile.id), label:
|
|
127
|
+
options: profiles.map((profile) => ({ value: String(profile.id), label: profile.key, description: profile.providerId })),
|
|
127
128
|
};
|
|
128
129
|
},
|
|
129
130
|
});
|
|
@@ -35,7 +35,8 @@ export async function buildPhiDefaultAdminMediaSettingsPageTree({ page, runtime,
|
|
|
35
35
|
const offered = settings.storage.allowedProfileIds.length > 0
|
|
36
36
|
? settings.storage.profiles.filter((profile) => settings.storage.allowedProfileIds.includes(profile.id))
|
|
37
37
|
: settings.storage.profiles;
|
|
38
|
-
|
|
38
|
+
// A Profile reads as the name the operator gave it; the Provider behind it is not part of the name.
|
|
39
|
+
const profileNames = Object.fromEntries(settings.storage.profiles.map((profile) => [String(profile.id), profile.key]));
|
|
39
40
|
const profileChoices = offered.map((profile) => ({ value: String(profile.id), label: profileNames[String(profile.id)] }));
|
|
40
41
|
const buildSpacesTable = (nodeKey, resourceKey, label, withEmail) => ({
|
|
41
42
|
nodeKey,
|