@phis/ui 0.6.4 → 0.6.6
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/cms/phi-cms-layout-renderer.js +11 -2
- package/components/controls/phi-image-control.js +9 -1
- package/components/controls/phi-multi-select-control.js +4 -2
- package/components/controls/phi-options-provider.d.ts +1 -0
- package/components/controls/phi-options-provider.js +1 -0
- package/components/controls/phi-select-control.d.ts +21 -0
- package/components/controls/phi-select-control.js +2 -2
- package/components/controls/phi-status-dot-control.d.ts +15 -0
- package/components/controls/phi-status-dot-control.js +25 -0
- package/components/controls/phi-table-control.js +8 -1
- package/components/controls/phi-tree-control.js +5 -4
- package/components/controls/phi-tree-select-control.js +1 -0
- package/components/forms/auth-admin-settings-labels.d.ts +4 -0
- package/components/forms/auth-admin-settings-labels.js +11 -3
- package/components/forms/form-provider-contract.d.ts +1 -1
- package/components/forms/form-provider-contract.js +1 -1
- package/components/layouts/clients/phi-split-card-half.d.ts +4 -1
- package/components/layouts/clients/phi-split-card-half.js +2 -2
- package/components/layouts/clients/phi-split-card-layout-client.d.ts +6 -3
- package/components/layouts/clients/phi-split-card-layout-client.js +5 -3
- package/components/layouts/clients/phi-three-column-layout-client.d.ts +20 -1
- package/components/layouts/clients/phi-three-column-layout-client.js +31 -15
- package/components/layouts/layout-definitions.d.ts +96 -0
- package/components/layouts/layout-definitions.js +40 -2
- package/components/layouts/plugins/split-card-layout-plugin.js +1 -1
- package/components/layouts/plugins/three-column-layout-plugin.js +1 -1
- package/components/layouts/split-card-geometry.d.ts +9 -4
- package/components/layouts/split-card-geometry.js +29 -13
- package/components/media/media-folder-options.d.ts +10 -0
- package/components/media/media-folder-options.js +14 -0
- package/components/navigation/phi-link.d.ts +7 -1
- package/components/navigation/phi-link.js +6 -2
- package/components/root/phi-root-theme-resolver.js +2 -0
- package/components/shell/phi-antd-icon.d.ts +1 -0
- package/components/shell/phi-antd-icon.js +3 -0
- package/components/widgets/client/shared/phi-rendered-value.js +1 -1
- package/components/widgets/inspector-field-row.js +4 -1
- package/components/widgets/label-sets/account.js +6 -2
- package/components/widgets/label-sets/admin-users.d.ts +3 -0
- package/components/widgets/label-sets/admin-users.js +8 -2
- package/components/widgets/label-sets/effects.js +5 -1
- package/components/widgets/label-sets/gallery.js +2 -2
- package/components/widgets/label-sets/inspector.js +4 -0
- package/components/widgets/label-sets/observability-logs.js +2 -2
- package/components/widgets/label-sets/profile.js +2 -1
- package/components/widgets/label-types/gallery.d.ts +2 -3
- package/components/widgets/label-types/gallery.js +1 -4
- package/components/widgets/label-types/inspector.d.ts +4 -0
- package/components/widgets/label-types/inspector.js +2 -0
- package/components/widgets/shared/markdown-body-client.js +1 -1
- package/components/widgets/shared/markdown-image-vocabulary.js +1 -1
- package/constants/cms-layout-proportions.d.ts +6 -0
- package/constants/cms-layout-proportions.js +17 -0
- package/constants/runtime-module-ownership.js +1 -0
- package/helpers/page-reference-tree.js +8 -0
- package/helpers/table-action-links.d.ts +11 -0
- package/helpers/table-action-links.js +14 -0
- package/helpers/table-action-row-link.d.ts +8 -0
- package/helpers/table-action-row-link.js +14 -0
- package/package.json +2 -2
- package/plugins/factories/widget-renderers.d.ts +7 -1
- package/plugins/factories/widget-renderers.js +12 -2
- package/plugins/runtime-modules/asset/authoring-widgets.js +2 -2
- package/plugins/runtime-modules/asset/data-providers.js +1 -1
- package/plugins/runtime-modules/asset/services/options.js +7 -11
- package/plugins/runtime-modules/asset/widgets/area-upload/plugin.js +0 -2
- package/plugins/runtime-modules/asset/widgets/asset-focal-rect/plugin.js +0 -2
- package/plugins/runtime-modules/asset/widgets/image-inspector/plugin.js +0 -2
- package/plugins/runtime-modules/asset/widgets/media-picker/plugin.js +0 -2
- package/plugins/runtime-modules/asset/widgets.js +4 -4
- package/plugins/runtime-modules/auth/admin-settings-forms.js +47 -1
- package/plugins/runtime-modules/auth/authoring-widgets.js +4 -8
- package/plugins/runtime-modules/auth/data-providers.js +2 -0
- package/plugins/runtime-modules/auth/widgets/auth-workflow/plugin.js +0 -6
- package/plugins/runtime-modules/auth/widgets/logout/plugin.js +0 -2
- package/plugins/runtime-modules/auth/widgets/security/plugin.js +0 -2
- package/plugins/runtime-modules/auth/widgets.js +5 -3
- package/plugins/runtime-modules/avatar/authoring-widgets.js +2 -2
- package/plugins/runtime-modules/avatar/widgets/account-avatar/plugin.js +0 -2
- package/plugins/runtime-modules/avatar/widgets/account-avatar-picker/plugin.js +0 -2
- package/plugins/runtime-modules/avatar/widgets.js +2 -2
- package/plugins/runtime-modules/builder/authoring-widgets.js +1 -1
- package/plugins/runtime-modules/builder/clients/inspector-choice-cascader.d.ts +28 -0
- package/plugins/runtime-modules/builder/clients/inspector-choice-cascader.js +98 -0
- package/plugins/runtime-modules/builder/clients/inspector-config-field.js +27 -3
- package/plugins/runtime-modules/builder/clients/inspector-record-field-options.d.ts +17 -0
- package/plugins/runtime-modules/builder/clients/inspector-record-field-options.js +21 -0
- package/plugins/runtime-modules/builder/clients/inspector-translate-switch.d.ts +24 -0
- package/plugins/runtime-modules/builder/clients/inspector-translate-switch.js +29 -0
- package/plugins/runtime-modules/builder/clients/layout-inspector.d.ts +1 -1
- package/plugins/runtime-modules/builder/clients/layout-inspector.js +4 -2
- package/plugins/runtime-modules/builder/clients/widget-inspector.d.ts +1 -1
- package/plugins/runtime-modules/builder/clients/widget-inspector.js +6 -6
- package/plugins/runtime-modules/builder/plugin-meta-labels.js +17 -0
- package/plugins/runtime-modules/builder/render-root-node-scaffold.js +12 -2
- package/plugins/runtime-modules/builder/widgets/structure-region/plugin.js +0 -2
- package/plugins/runtime-modules/builder/widgets.js +3 -3
- package/plugins/runtime-modules/contracts.js +8 -4
- package/plugins/runtime-modules/core/authoring-widgets.js +2 -2
- package/plugins/runtime-modules/core/data-providers.d.ts +7 -3
- package/plugins/runtime-modules/core/data-providers.js +11 -1
- package/plugins/runtime-modules/core/definition.d.ts +8 -4
- package/plugins/runtime-modules/core/form-providers.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/breadcrumb/config.js +1 -1
- package/plugins/runtime-modules/core/widgets/cascader/authoring.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/cascader/config.js +1 -1
- package/plugins/runtime-modules/core/widgets/draft-status/client.d.ts +2 -1
- package/plugins/runtime-modules/core/widgets/draft-status/client.js +4 -3
- package/plugins/runtime-modules/core/widgets/gallery/authoring.js +6 -8
- package/plugins/runtime-modules/core/widgets/gallery/client.js +4 -0
- package/plugins/runtime-modules/core/widgets/gallery/config.js +1 -1
- package/plugins/runtime-modules/core/widgets/gallery/server.d.ts +5 -1
- package/plugins/runtime-modules/core/widgets/gallery/server.js +8 -4
- package/plugins/runtime-modules/core/widgets/image/config.js +1 -1
- package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +11 -0
- package/plugins/runtime-modules/core/widgets/markdown/config.js +24 -22
- package/plugins/runtime-modules/core/widgets/record/config.js +1 -1
- package/plugins/runtime-modules/core/widgets/simple-text/client.d.ts +9 -5
- package/plugins/runtime-modules/core/widgets/simple-text/client.js +5 -7
- package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +63 -4
- package/plugins/runtime-modules/core/widgets/simple-text/config.js +45 -11
- package/plugins/runtime-modules/core/widgets/simple-text/editor.js +2 -2
- package/plugins/runtime-modules/core/widgets/simple-text/plugin.d.ts +13 -0
- package/plugins/runtime-modules/core/widgets/simple-text/plugin.js +23 -4
- package/plugins/runtime-modules/core/widgets/simple-text/server.d.ts +4 -2
- package/plugins/runtime-modules/core/widgets/simple-text/server.js +7 -6
- package/plugins/runtime-modules/core/widgets/table/client.js +4 -4
- package/plugins/runtime-modules/core/widgets/table/config.js +12 -4
- package/plugins/runtime-modules/core/widgets/table/plugin.js +21 -1
- package/plugins/runtime-modules/core/widgets/thread-conversation/plugin.js +0 -2
- package/plugins/runtime-modules/core/widgets/tree/config.js +2 -1
- package/plugins/runtime-modules/core/widgets/tree/plugin.js +16 -1
- package/plugins/runtime-modules/core/widgets.js +1 -1
- package/plugins/runtime-modules/observability/data-providers.js +1 -1
- package/plugins/runtime-modules/theme/authoring-widgets.js +5 -5
- package/plugins/runtime-modules/theme/brand-theme-model.d.ts +4 -1
- package/plugins/runtime-modules/theme/brand-theme-model.js +6 -2
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +17 -0
- package/plugins/runtime-modules/theme/widgets/brand-controls/plugin.js +0 -5
- package/plugins/runtime-modules/theme/widgets.js +4 -4
- package/plugins/runtime-modules/threads/labels.js +6 -2
- package/plugins/runtime-modules/user-management/addon-roles.d.ts +28 -7
- package/plugins/runtime-modules/user-management/addon-roles.js +42 -17
- package/plugins/runtime-modules/user-management/client-data-providers.js +6 -0
- package/plugins/runtime-modules/user-management/data-providers.js +11 -2
- package/plugins/runtime-modules/user-management/forms.js +40 -1
- package/plugins/runtime-modules/user-management/ids.d.ts +1 -0
- package/plugins/runtime-modules/user-management/ids.js +1 -0
- package/plugins/runtime-modules/user-management/services/options.d.ts +14 -3
- package/plugins/runtime-modules/user-management/services/options.js +52 -16
- package/plugins/runtime-modules/user-management/services/table.js +8 -24
- package/plugins/runtime-modules/user-management/services/users-query.d.ts +9 -0
- package/plugins/runtime-modules/user-management/services/users-query.js +29 -0
- package/plugins/runtime-modules/video/widgets/embed/plugin.js +0 -2
- package/plugins/runtime-modules/video/widgets.js +1 -1
- package/styles/controls.css +20 -0
- package/styles/layout.css +4 -4
- package/theme/phi-link-mark.d.ts +26 -0
- package/theme/phi-link-mark.js +26 -0
- package/theme/phi-theme-tokens.d.ts +3 -2
- package/theme/phi-theme-tokens.js +3 -1
- package/types/cms-config.d.ts +12 -4
- package/types/cms-config.js +3 -0
- package/types/cms-plugins.d.ts +26 -4
- package/types/core-widget-placements.d.ts +4 -4
- package/types/site-config.d.ts +3 -0
- package/types/table-widget.d.ts +17 -1
- package/types/tree.d.ts +2 -0
- package/plugins/runtime-modules/asset/widgets/asset-focal-rect/authoring.d.ts +0 -2
- package/plugins/runtime-modules/asset/widgets/asset-focal-rect/authoring.js +0 -6
- package/plugins/runtime-modules/asset/widgets/image-inspector/authoring.d.ts +0 -2
- package/plugins/runtime-modules/asset/widgets/image-inspector/authoring.js +0 -6
- package/plugins/runtime-modules/auth/widgets/auth-methods/authoring.d.ts +0 -7
- package/plugins/runtime-modules/auth/widgets/auth-methods/authoring.js +0 -12
- package/plugins/runtime-modules/auth/widgets/auth-workflow/authoring.d.ts +0 -7
- package/plugins/runtime-modules/auth/widgets/auth-workflow/authoring.js +0 -12
- package/plugins/runtime-modules/auth/widgets/logout/authoring.d.ts +0 -3
- package/plugins/runtime-modules/auth/widgets/logout/authoring.js +0 -8
- package/plugins/runtime-modules/auth/widgets/security/authoring.d.ts +0 -3
- package/plugins/runtime-modules/auth/widgets/security/authoring.js +0 -8
- package/plugins/runtime-modules/avatar/widgets/account-avatar/authoring.d.ts +0 -2
- package/plugins/runtime-modules/avatar/widgets/account-avatar/authoring.js +0 -6
- package/plugins/runtime-modules/avatar/widgets/account-avatar-picker/authoring.d.ts +0 -2
- package/plugins/runtime-modules/avatar/widgets/account-avatar-picker/authoring.js +0 -6
- package/plugins/runtime-modules/builder/widgets/structure-region/internal-builder.d.ts +0 -22
- package/plugins/runtime-modules/builder/widgets/structure-region/internal-builder.js +0 -8
- package/plugins/runtime-modules/core/widgets/form-preview/authoring.d.ts +0 -10
- package/plugins/runtime-modules/core/widgets/form-preview/authoring.js +0 -15
- package/plugins/runtime-modules/core/widgets/thread-conversation/authoring.d.ts +0 -3
- package/plugins/runtime-modules/core/widgets/thread-conversation/authoring.js +0 -9
- package/plugins/runtime-modules/theme/widgets/brand-controls/authoring.d.ts +0 -76
- package/plugins/runtime-modules/theme/widgets/brand-controls/authoring.js +0 -30
|
@@ -574,10 +574,31 @@ export declare const PHI_SPLIT_CARD_LAYOUT_DEFINITION: {
|
|
|
574
574
|
key: string;
|
|
575
575
|
type: "padding";
|
|
576
576
|
label: string;
|
|
577
|
+
} | {
|
|
578
|
+
key: string;
|
|
579
|
+
type: "choice";
|
|
580
|
+
label: string;
|
|
581
|
+
presentation: "segmented";
|
|
582
|
+
emptyOption: {
|
|
583
|
+
value: string;
|
|
584
|
+
label: string;
|
|
585
|
+
};
|
|
586
|
+
options: {
|
|
587
|
+
value: string;
|
|
588
|
+
label: string;
|
|
589
|
+
}[];
|
|
590
|
+
visibleWhen?: undefined;
|
|
577
591
|
} | {
|
|
578
592
|
key: string;
|
|
579
593
|
type: "boolean";
|
|
580
594
|
label: string;
|
|
595
|
+
visibleWhen: {
|
|
596
|
+
field: string;
|
|
597
|
+
notEquals: string;
|
|
598
|
+
};
|
|
599
|
+
presentation?: undefined;
|
|
600
|
+
emptyOption?: undefined;
|
|
601
|
+
options?: undefined;
|
|
581
602
|
})[];
|
|
582
603
|
slots: ({
|
|
583
604
|
readonly key: "slot_0";
|
|
@@ -613,12 +634,39 @@ export declare const PHI_THREE_COLUMN_LAYOUT_DEFINITION: {
|
|
|
613
634
|
key: string;
|
|
614
635
|
type: "boolean";
|
|
615
636
|
label: string;
|
|
637
|
+
valueType?: undefined;
|
|
638
|
+
visibleWhen?: undefined;
|
|
639
|
+
emptyOption?: undefined;
|
|
640
|
+
options?: undefined;
|
|
641
|
+
min?: undefined;
|
|
642
|
+
} | {
|
|
643
|
+
key: string;
|
|
644
|
+
type: "choice";
|
|
645
|
+
valueType: "number";
|
|
646
|
+
label: string;
|
|
647
|
+
visibleWhen: {
|
|
648
|
+
field: string;
|
|
649
|
+
equals: true;
|
|
650
|
+
};
|
|
651
|
+
emptyOption: {
|
|
652
|
+
value: string;
|
|
653
|
+
label: string;
|
|
654
|
+
separator: "after";
|
|
655
|
+
};
|
|
656
|
+
options: {
|
|
657
|
+
value: number;
|
|
658
|
+
label: string;
|
|
659
|
+
}[];
|
|
616
660
|
min?: undefined;
|
|
617
661
|
} | {
|
|
618
662
|
key: string;
|
|
619
663
|
type: "length";
|
|
620
664
|
label: string;
|
|
621
665
|
min: number;
|
|
666
|
+
valueType?: undefined;
|
|
667
|
+
visibleWhen?: undefined;
|
|
668
|
+
emptyOption?: undefined;
|
|
669
|
+
options?: undefined;
|
|
622
670
|
})[];
|
|
623
671
|
slots: ({
|
|
624
672
|
readonly key: "slot_0";
|
|
@@ -1265,10 +1313,31 @@ export declare const PHI_CORE_LAYOUT_DEFINITIONS: readonly [{
|
|
|
1265
1313
|
key: string;
|
|
1266
1314
|
type: "padding";
|
|
1267
1315
|
label: string;
|
|
1316
|
+
} | {
|
|
1317
|
+
key: string;
|
|
1318
|
+
type: "choice";
|
|
1319
|
+
label: string;
|
|
1320
|
+
presentation: "segmented";
|
|
1321
|
+
emptyOption: {
|
|
1322
|
+
value: string;
|
|
1323
|
+
label: string;
|
|
1324
|
+
};
|
|
1325
|
+
options: {
|
|
1326
|
+
value: string;
|
|
1327
|
+
label: string;
|
|
1328
|
+
}[];
|
|
1329
|
+
visibleWhen?: undefined;
|
|
1268
1330
|
} | {
|
|
1269
1331
|
key: string;
|
|
1270
1332
|
type: "boolean";
|
|
1271
1333
|
label: string;
|
|
1334
|
+
visibleWhen: {
|
|
1335
|
+
field: string;
|
|
1336
|
+
notEquals: string;
|
|
1337
|
+
};
|
|
1338
|
+
presentation?: undefined;
|
|
1339
|
+
emptyOption?: undefined;
|
|
1340
|
+
options?: undefined;
|
|
1272
1341
|
})[];
|
|
1273
1342
|
slots: ({
|
|
1274
1343
|
readonly key: "slot_0";
|
|
@@ -1303,12 +1372,39 @@ export declare const PHI_CORE_LAYOUT_DEFINITIONS: readonly [{
|
|
|
1303
1372
|
key: string;
|
|
1304
1373
|
type: "boolean";
|
|
1305
1374
|
label: string;
|
|
1375
|
+
valueType?: undefined;
|
|
1376
|
+
visibleWhen?: undefined;
|
|
1377
|
+
emptyOption?: undefined;
|
|
1378
|
+
options?: undefined;
|
|
1379
|
+
min?: undefined;
|
|
1380
|
+
} | {
|
|
1381
|
+
key: string;
|
|
1382
|
+
type: "choice";
|
|
1383
|
+
valueType: "number";
|
|
1384
|
+
label: string;
|
|
1385
|
+
visibleWhen: {
|
|
1386
|
+
field: string;
|
|
1387
|
+
equals: true;
|
|
1388
|
+
};
|
|
1389
|
+
emptyOption: {
|
|
1390
|
+
value: string;
|
|
1391
|
+
label: string;
|
|
1392
|
+
separator: "after";
|
|
1393
|
+
};
|
|
1394
|
+
options: {
|
|
1395
|
+
value: number;
|
|
1396
|
+
label: string;
|
|
1397
|
+
}[];
|
|
1306
1398
|
min?: undefined;
|
|
1307
1399
|
} | {
|
|
1308
1400
|
key: string;
|
|
1309
1401
|
type: "length";
|
|
1310
1402
|
label: string;
|
|
1311
1403
|
min: number;
|
|
1404
|
+
valueType?: undefined;
|
|
1405
|
+
visibleWhen?: undefined;
|
|
1406
|
+
emptyOption?: undefined;
|
|
1407
|
+
options?: undefined;
|
|
1312
1408
|
})[];
|
|
1313
1409
|
slots: ({
|
|
1314
1410
|
readonly key: "slot_0";
|
|
@@ -461,7 +461,7 @@ export const PHI_SPLIT_CARD_LAYOUT_DEFINITION = {
|
|
|
461
461
|
defaultAnchor: PHI_CENTRED_SLOT_DEFAULT_ANCHOR,
|
|
462
462
|
slotSizePolicy: "fill-inline",
|
|
463
463
|
title: "Split Card",
|
|
464
|
-
description: "Two cards
|
|
464
|
+
description: "Two cards side by side, one Surface for both.",
|
|
465
465
|
category: "structure",
|
|
466
466
|
iconName: "split-card",
|
|
467
467
|
defaultConfig: { ...PHI_SPLIT_CARD_LAYOUT_DEFAULTS },
|
|
@@ -469,7 +469,27 @@ export const PHI_SPLIT_CARD_LAYOUT_DEFINITION = {
|
|
|
469
469
|
creationConfig: { ...PHI_SPLIT_CARD_LAYOUT_CREATION_CONFIG },
|
|
470
470
|
// The outer inset and the gap between the cards are the Paddings panel's; the rest is the Surface.
|
|
471
471
|
fields: [
|
|
472
|
-
|
|
472
|
+
/*
|
|
473
|
+
* Above the switch, not under it: the switch goes at 50/50, which has no larger card to swap, and a
|
|
474
|
+
* picker under it would move up a row the moment that is chosen. φ is the default and stores nothing.
|
|
475
|
+
*/
|
|
476
|
+
{
|
|
477
|
+
key: "ratio",
|
|
478
|
+
type: "choice",
|
|
479
|
+
label: "Ratio",
|
|
480
|
+
presentation: "segmented",
|
|
481
|
+
emptyOption: { value: "golden", label: "φ" },
|
|
482
|
+
options: [
|
|
483
|
+
{ value: "50-50", label: "50/50" },
|
|
484
|
+
{ value: "20-80", label: "20/80" },
|
|
485
|
+
],
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
key: "swapRatio",
|
|
489
|
+
type: "boolean",
|
|
490
|
+
label: "Swap ratio",
|
|
491
|
+
visibleWhen: { field: "ratio", notEquals: "50-50" },
|
|
492
|
+
},
|
|
473
493
|
...PHI_LAYOUT_PADDING_FIELDS,
|
|
474
494
|
],
|
|
475
495
|
slots: [...PHI_CMS_SPLIT_LAYOUT_SLOTS],
|
|
@@ -488,6 +508,24 @@ export const PHI_THREE_COLUMN_LAYOUT_DEFINITION = {
|
|
|
488
508
|
fields: [
|
|
489
509
|
...PHI_LAYOUT_PADDING_FIELDS,
|
|
490
510
|
{ key: "balancedSides", type: "boolean", label: "Balanced Sides" },
|
|
511
|
+
/*
|
|
512
|
+
* What each balanced side takes of the row; the middle takes the rest. 25 % is the default and stores
|
|
513
|
+
* nothing (`constants/cms-layout-proportions.ts`). A side with a fixed width below keeps it.
|
|
514
|
+
*/
|
|
515
|
+
{
|
|
516
|
+
key: "sideShare",
|
|
517
|
+
type: "choice",
|
|
518
|
+
valueType: "number",
|
|
519
|
+
label: "Side Width",
|
|
520
|
+
visibleWhen: { field: "balancedSides", equals: true },
|
|
521
|
+
emptyOption: { value: "default", label: "25 %", separator: "after" },
|
|
522
|
+
options: [
|
|
523
|
+
{ value: 10, label: "10 %" },
|
|
524
|
+
{ value: 20, label: "20 %" },
|
|
525
|
+
{ value: 30, label: "30 %" },
|
|
526
|
+
{ value: 33, label: "33 % (equal columns)" },
|
|
527
|
+
],
|
|
528
|
+
},
|
|
491
529
|
{ key: "leftWidth", type: "length", label: "Left Width", min: 0 },
|
|
492
530
|
{ key: "middleWidth", type: "length", label: "Middle Width", min: 0 },
|
|
493
531
|
{ key: "rightWidth", type: "length", label: "Right Width", min: 0 },
|
|
@@ -7,5 +7,5 @@ import { PHI_SPLIT_CARD_LAYOUT_DEFINITION } from "../layout-definitions";
|
|
|
7
7
|
export const PHI_SPLIT_CARD_LAYOUT_PLUGIN = {
|
|
8
8
|
...PHI_SPLIT_CARD_LAYOUT_DEFINITION,
|
|
9
9
|
parseConfig: parsePhiCmsSplitCardLayoutConfig,
|
|
10
|
-
...definePhiLayoutRenderers(({ node, config, renderSequentialSlotChildren }, renderMode) => (_jsx(PhiSplitCardLayout, { blockId: node.id, layoutKind: "split", slots: renderSequentialSlotChildren(node), gap: config.gap, swapRatio: config.swapRatio, zIndex: config.zIndex, surface: config.surface, padding: config.padding, paddingTop: config.paddingTop, paddingRight: config.paddingRight, paddingBottom: config.paddingBottom, paddingLeft: config.paddingLeft, labelEnd: config.labelEnd, editSlotAnchor: resolvePhiLayoutAnchor(config.anchor, PHI_SPLIT_CARD_LAYOUT_DEFINITION.defaultAnchor), size: config.size, minSize: config.minSize, maxSize: config.maxSize, collapsedSizeHint: config.collapsedSizeHint, renderMode: renderMode }, `layout-${node.id}`))),
|
|
10
|
+
...definePhiLayoutRenderers(({ node, config, renderSequentialSlotChildren }, renderMode) => (_jsx(PhiSplitCardLayout, { blockId: node.id, layoutKind: "split", slots: renderSequentialSlotChildren(node), gap: config.gap, swapRatio: config.swapRatio, ratio: config.ratio, zIndex: config.zIndex, surface: config.surface, padding: config.padding, paddingTop: config.paddingTop, paddingRight: config.paddingRight, paddingBottom: config.paddingBottom, paddingLeft: config.paddingLeft, labelEnd: config.labelEnd, editSlotAnchor: resolvePhiLayoutAnchor(config.anchor, PHI_SPLIT_CARD_LAYOUT_DEFINITION.defaultAnchor), size: config.size, minSize: config.minSize, maxSize: config.maxSize, collapsedSizeHint: config.collapsedSizeHint, renderMode: renderMode }, `layout-${node.id}`))),
|
|
11
11
|
};
|
|
@@ -7,5 +7,5 @@ import { PHI_THREE_COLUMN_LAYOUT_DEFINITION } from "../layout-definitions";
|
|
|
7
7
|
export const PHI_THREE_COLUMN_LAYOUT_PLUGIN = {
|
|
8
8
|
...PHI_THREE_COLUMN_LAYOUT_DEFINITION,
|
|
9
9
|
parseConfig: parsePhiCmsThreeColumnLayoutConfig,
|
|
10
|
-
...definePhiLayoutRenderers(({ node, config, renderSequentialSlotChildren }, renderMode) => (_jsx(PhiThreeColumnLayout, { blockId: node.id, layoutKind: "threecol", slots: renderSequentialSlotChildren(node), balancedSides: config.balancedSides, gap: config.gap, align: config.align, justify: config.justify, wrap: config.wrap, leftWidth: config.leftWidth, middleWidth: config.middleWidth, rightWidth: config.rightWidth, editSlotAnchor: resolvePhiLayoutAnchor(config.anchor, PHI_THREE_COLUMN_LAYOUT_DEFINITION.defaultAnchor), zIndex: config.zIndex, surface: config.surface, padding: config.padding, paddingTop: config.paddingTop, paddingRight: config.paddingRight, paddingBottom: config.paddingBottom, paddingLeft: config.paddingLeft, labelEnd: config.labelEnd, size: config.size, minSize: config.minSize, maxSize: config.maxSize, collapsedSizeHint: config.collapsedSizeHint, renderMode: renderMode }, `layout-${node.id}`))),
|
|
10
|
+
...definePhiLayoutRenderers(({ node, config, renderSequentialSlotChildren }, renderMode) => (_jsx(PhiThreeColumnLayout, { blockId: node.id, layoutKind: "threecol", slots: renderSequentialSlotChildren(node), balancedSides: config.balancedSides, sideShare: config.sideShare, gap: config.gap, align: config.align, justify: config.justify, wrap: config.wrap, leftWidth: config.leftWidth, middleWidth: config.middleWidth, rightWidth: config.rightWidth, editSlotAnchor: resolvePhiLayoutAnchor(config.anchor, PHI_THREE_COLUMN_LAYOUT_DEFINITION.defaultAnchor), zIndex: config.zIndex, surface: config.surface, padding: config.padding, paddingTop: config.paddingTop, paddingRight: config.paddingRight, paddingBottom: config.paddingBottom, paddingLeft: config.paddingLeft, labelEnd: config.labelEnd, size: config.size, minSize: config.minSize, maxSize: config.maxSize, collapsedSizeHint: config.collapsedSizeHint, renderMode: renderMode }, `layout-${node.id}`))),
|
|
11
11
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PhiSurfaceGroundFrame } from "../surface/phi-surface-ground";
|
|
2
|
+
import { type PhiCmsSplitCardRatio } from "../../constants/cms-layout-proportions";
|
|
2
3
|
/**
|
|
3
4
|
* Where one card's part of the shared Background lies, measured against the card.
|
|
4
5
|
*
|
|
@@ -6,9 +7,13 @@ import type { PhiSurfaceGroundFrame } from "../surface/phi-surface-ground";
|
|
|
6
7
|
* the paint is as wide as the Split Card's content box (`100cqw`, the Split Card being the query
|
|
7
8
|
* container) and moved left by the card's own offset. The left card's offset is nothing; the right
|
|
8
9
|
* card's is the left card's width and the gap, and the left card's width is fixed by the columns
|
|
9
|
-
* (`resolvePhiSplitCardColumns`): what the gap leaves, shared 1 to φ, or φ to 1 when
|
|
10
|
+
* (`resolvePhiSplitCardColumns`): what the gap leaves, shared in the ratio -- 1 to φ, or φ to 1 when
|
|
11
|
+
* swapped. The
|
|
10
12
|
* height needs nothing: both cards are stretched to the row, which is the content box's height.
|
|
11
13
|
*/
|
|
12
|
-
export declare function resolvePhiSplitCardGroundFrame(side: "left" | "right", gap: string, swapped?: boolean): PhiSurfaceGroundFrame;
|
|
13
|
-
/**
|
|
14
|
-
|
|
14
|
+
export declare function resolvePhiSplitCardGroundFrame(side: "left" | "right", gap: string, swapped?: boolean, ratio?: PhiCmsSplitCardRatio): PhiSurfaceGroundFrame;
|
|
15
|
+
/**
|
|
16
|
+
* The two columns: the smaller card left and the larger right, or the other way round when swapped. In
|
|
17
|
+
* `fr`, so the gap comes out of the row first and the rest is shared in the ratio.
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolvePhiSplitCardColumns(swapped?: boolean, ratio?: PhiCmsSplitCardRatio): string;
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
+
import { PHI_CMS_SPLIT_CARD_DEFAULT_RATIO, } from "../../constants/cms-layout-proportions";
|
|
1
2
|
/*
|
|
2
3
|
* The Split Card's geometry, apart from its Client half: the Layout renders on the server and reads the
|
|
3
4
|
* ratio for its columns, and a value imported from a Client file arrives there as a client reference.
|
|
4
5
|
*/
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Each ratio in units of the smaller card: how many the larger is, and both together -- written out, so
|
|
8
|
+
* the CSS carries no float residue. φ: the larger card is φ times as wide as the smaller. 50/50 has no
|
|
9
|
+
* larger card, so swapping it changes nothing.
|
|
10
|
+
*/
|
|
11
|
+
const PHI_SPLIT_CARD_RATIO_SHARES = {
|
|
12
|
+
golden: { larger: "1.61803398875", total: "2.61803398875" },
|
|
13
|
+
"50-50": { larger: "1", total: "2" },
|
|
14
|
+
"20-80": { larger: "4", total: "5" },
|
|
15
|
+
};
|
|
16
|
+
/** The left and the right card's share, in units of the smaller one. */
|
|
17
|
+
function resolvePhiSplitCardShares(ratio, swapped) {
|
|
18
|
+
const { larger, total } = PHI_SPLIT_CARD_RATIO_SHARES[ratio];
|
|
19
|
+
return { left: swapped ? larger : "1", right: swapped ? "1" : larger, total };
|
|
20
|
+
}
|
|
9
21
|
/**
|
|
10
22
|
* Where one card's part of the shared Background lies, measured against the card.
|
|
11
23
|
*
|
|
@@ -13,12 +25,14 @@ const PHI_SPLIT_CARD_SHARES = "2.61803398875";
|
|
|
13
25
|
* the paint is as wide as the Split Card's content box (`100cqw`, the Split Card being the query
|
|
14
26
|
* container) and moved left by the card's own offset. The left card's offset is nothing; the right
|
|
15
27
|
* card's is the left card's width and the gap, and the left card's width is fixed by the columns
|
|
16
|
-
* (`resolvePhiSplitCardColumns`): what the gap leaves, shared 1 to φ, or φ to 1 when
|
|
28
|
+
* (`resolvePhiSplitCardColumns`): what the gap leaves, shared in the ratio -- 1 to φ, or φ to 1 when
|
|
29
|
+
* swapped. The
|
|
17
30
|
* height needs nothing: both cards are stretched to the row, which is the content box's height.
|
|
18
31
|
*/
|
|
19
|
-
export function resolvePhiSplitCardGroundFrame(side, gap, swapped = false) {
|
|
20
|
-
const
|
|
21
|
-
const
|
|
32
|
+
export function resolvePhiSplitCardGroundFrame(side, gap, swapped = false, ratio = PHI_CMS_SPLIT_CARD_DEFAULT_RATIO) {
|
|
33
|
+
const shares = resolvePhiSplitCardShares(ratio, swapped);
|
|
34
|
+
const leftShare = shares.left === "1" ? "" : ` * ${shares.left}`;
|
|
35
|
+
const leftWidth = `((100cqw - ${gap})${leftShare} / ${shares.total})`;
|
|
22
36
|
/*
|
|
23
37
|
* Stacked (`styles/layout.css`), each card shows the whole Background on its own: the cards no longer
|
|
24
38
|
* share a row, and the height the lower card's piece would start at is not something CSS knows.
|
|
@@ -28,9 +42,11 @@ export function resolvePhiSplitCardGroundFrame(side, gap, swapped = false) {
|
|
|
28
42
|
width: "var(--phi-split-card-ground-width, 100cqw)",
|
|
29
43
|
};
|
|
30
44
|
}
|
|
31
|
-
/**
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
45
|
+
/**
|
|
46
|
+
* The two columns: the smaller card left and the larger right, or the other way round when swapped. In
|
|
47
|
+
* `fr`, so the gap comes out of the row first and the rest is shared in the ratio.
|
|
48
|
+
*/
|
|
49
|
+
export function resolvePhiSplitCardColumns(swapped = false, ratio = PHI_CMS_SPLIT_CARD_DEFAULT_RATIO) {
|
|
50
|
+
const shares = resolvePhiSplitCardShares(ratio, swapped);
|
|
51
|
+
return `minmax(0, ${shares.left}fr) minmax(0, ${shares.right}fr)`;
|
|
36
52
|
}
|
|
@@ -28,5 +28,15 @@ export declare function buildPhiMediaFolderCascaderOptions(folders: PhiMediaAsse
|
|
|
28
28
|
value: string;
|
|
29
29
|
label: string;
|
|
30
30
|
})[];
|
|
31
|
+
/**
|
|
32
|
+
* Every Folder as a choice by its id, for a setting that names one: its own name, and the Folder it
|
|
33
|
+
* stands in as its `parentValue`, so a cascader shows the tree and a Folder that holds others can be
|
|
34
|
+
* chosen itself.
|
|
35
|
+
*/
|
|
36
|
+
export declare function buildPhiMediaFolderChoiceOptions(folders: readonly PhiMediaAssetFolder[]): {
|
|
37
|
+
parentValue?: string | undefined;
|
|
38
|
+
value: string;
|
|
39
|
+
label: string;
|
|
40
|
+
}[];
|
|
31
41
|
export declare function resolvePhiMediaFolderIdFromValue(folders: PhiMediaAssetFolder[], value: string | null | undefined): number | null;
|
|
32
42
|
export declare function combinePhiMediaFlagValues(presentationFlags: number[]): number;
|
|
@@ -76,6 +76,20 @@ export function buildPhiMediaFolderCascaderOptions(folders, presentation) {
|
|
|
76
76
|
};
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Every Folder as a choice by its id, for a setting that names one: its own name, and the Folder it
|
|
81
|
+
* stands in as its `parentValue`, so a cascader shows the tree and a Folder that holds others can be
|
|
82
|
+
* chosen itself.
|
|
83
|
+
*/
|
|
84
|
+
export function buildPhiMediaFolderChoiceOptions(folders) {
|
|
85
|
+
return [...folders]
|
|
86
|
+
.sort((left, right) => left.name.localeCompare(right.name) || left.id - right.id)
|
|
87
|
+
.map((folder) => ({
|
|
88
|
+
value: String(folder.id),
|
|
89
|
+
label: folder.name,
|
|
90
|
+
...(folder.parentId == null ? {} : { parentValue: String(folder.parentId) }),
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
79
93
|
export function resolvePhiMediaFolderIdFromValue(folders, value) {
|
|
80
94
|
const trimmed = value?.trim() ?? "";
|
|
81
95
|
if (!trimmed || trimmed === "/") {
|
|
@@ -14,8 +14,14 @@ export type PhiLinkProps = {
|
|
|
14
14
|
* prefetched.
|
|
15
15
|
*/
|
|
16
16
|
prefetch?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Whether this link, where it leads to another site, wears the external mark (theme/phi-link-mark.ts).
|
|
19
|
+
* Said by a link in running text -- Markdown, Simple Text, a link cell -- and left out by a link that
|
|
20
|
+
* is a button, a logo or a picture. The Theme can still turn every mark off.
|
|
21
|
+
*/
|
|
22
|
+
markExternal?: boolean;
|
|
17
23
|
className?: string;
|
|
18
24
|
style?: CSSProperties;
|
|
19
25
|
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
20
26
|
};
|
|
21
|
-
export declare function PhiLink({ href, children, external, newTab, prefetch, className, style, onClick, }: PhiLinkProps): import("react").JSX.Element;
|
|
27
|
+
export declare function PhiLink({ href, children, external, newTab, prefetch, markExternal, className, style, onClick, }: PhiLinkProps): import("react").JSX.Element;
|
|
@@ -3,10 +3,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useMemo, useState } from "react";
|
|
4
4
|
import Link from "next/link";
|
|
5
5
|
import { isPhiExternalHref } from "../../helpers/external-href";
|
|
6
|
+
import { PHI_LINK_EXTERNAL_MARK_ATTRIBUTE, isPhiMarkableExternalHref } from "../../theme/phi-link-mark";
|
|
6
7
|
import { isPhiProtectedMail } from "../../helpers/protected-mail";
|
|
7
8
|
import { usePhiConfig } from "../root/phi-config-provider";
|
|
8
9
|
import { usePhiRevealedHref } from "./use-phi-protected-mail";
|
|
9
|
-
export function PhiLink({ href, children, external, newTab, prefetch, className, style, onClick, }) {
|
|
10
|
+
export function PhiLink({ href, children, external, newTab, prefetch, markExternal, className, style, onClick, }) {
|
|
10
11
|
const { token } = usePhiConfig();
|
|
11
12
|
const [hovered, setHovered] = useState(false);
|
|
12
13
|
const [active, setActive] = useState(false);
|
|
@@ -14,6 +15,9 @@ export function PhiLink({ href, children, external, newTab, prefetch, className,
|
|
|
14
15
|
const useAnchor = isPhiProtectedMail(href) || (external ?? isPhiExternalHref(href));
|
|
15
16
|
// A protected address (`helpers/protected-mail.ts`) is written into the anchor once mounted.
|
|
16
17
|
const anchorHref = usePhiRevealedHref(href);
|
|
18
|
+
const markProps = markExternal && useAnchor && isPhiMarkableExternalHref(href)
|
|
19
|
+
? { [PHI_LINK_EXTERNAL_MARK_ATTRIBUTE]: "" }
|
|
20
|
+
: {};
|
|
17
21
|
const linkStyle = useMemo(() => ({
|
|
18
22
|
textDecoration: "none",
|
|
19
23
|
cursor: "pointer",
|
|
@@ -36,7 +40,7 @@ export function PhiLink({ href, children, external, newTab, prefetch, className,
|
|
|
36
40
|
onBlur: () => setActive(false),
|
|
37
41
|
};
|
|
38
42
|
if (useAnchor) {
|
|
39
|
-
return (_jsx("a", { href: anchorHref, target: newTab ? "_blank" : undefined, rel: newTab ? "noreferrer noopener" : undefined, className: className, style: linkStyle, onClick: onClick, ...interactionProps, children: children }));
|
|
43
|
+
return (_jsx("a", { href: anchorHref, target: newTab ? "_blank" : undefined, rel: newTab ? "noreferrer noopener" : undefined, className: className, style: linkStyle, onClick: onClick, ...markProps, ...interactionProps, children: children }));
|
|
40
44
|
}
|
|
41
45
|
return (_jsx(Link, { href: href, ...(prefetch === undefined ? {} : { prefetch }), className: className, style: linkStyle, onClick: onClick, ...interactionProps, children: children }));
|
|
42
46
|
}
|
|
@@ -6,6 +6,7 @@ import { mergePhiThemePalettes, PHI_THEME_PALETTE_MODE_SEED_KEYS, resolvePhiThem
|
|
|
6
6
|
import { assertPhiThemeVocabulary } from "../../theme/phi-theme-tokens";
|
|
7
7
|
import { applyPhiButtonShadowComponentTokens } from "../../theme/phi-button-shadow";
|
|
8
8
|
import { buildPhiThemeGradientTokens, readPhiThemeGradientKey } from "../../theme/phi-theme-gradients";
|
|
9
|
+
import { buildPhiThemeLinkTokens } from "../../theme/phi-link-mark";
|
|
9
10
|
import { buildPhiThemeCustomColorTokens } from "../../theme/phi-theme-palette";
|
|
10
11
|
import { applyPhiControlShapeComponentTokens, applyPhiSurfaceShapeComponentTokens, resolvePhiControlShape, } from "../../theme/phi-control-shape";
|
|
11
12
|
const PHI_DEFAULT_DARK_NAV_BACKGROUND = "#001529";
|
|
@@ -96,6 +97,7 @@ export function resolvePhiRootTheme({ siteTheme, mode, fonts, presets, }) {
|
|
|
96
97
|
token: effectiveThemeTokens,
|
|
97
98
|
primaryButtonGradient: readPhiThemeGradientKey(siteTheme?.buttons?.primaryGradient),
|
|
98
99
|
}),
|
|
100
|
+
...buildPhiThemeLinkTokens(siteTheme?.links),
|
|
99
101
|
};
|
|
100
102
|
return {
|
|
101
103
|
mode,
|
|
@@ -43,6 +43,7 @@ declare const PHI_ANTD_ICON_LOADERS: {
|
|
|
43
43
|
readonly FileUnknownTwoTone: () => Promise<typeof import("@ant-design/icons/es/icons/FileUnknownTwoTone")>;
|
|
44
44
|
readonly FileZipTwoTone: () => Promise<typeof import("@ant-design/icons/es/icons/FileZipTwoTone")>;
|
|
45
45
|
readonly FolderAddOutlined: () => Promise<typeof import("@ant-design/icons-svg/es/asn/FolderAddOutlined")>;
|
|
46
|
+
readonly FolderOutlined: () => Promise<typeof import("@ant-design/icons-svg/es/asn/FolderOutlined")>;
|
|
46
47
|
readonly FontColorsOutlined: () => Promise<typeof import("@ant-design/icons-svg/es/asn/FontColorsOutlined")>;
|
|
47
48
|
readonly FontSizeOutlined: () => Promise<typeof import("@ant-design/icons-svg/es/asn/FontSizeOutlined")>;
|
|
48
49
|
readonly FormOutlined: () => Promise<typeof import("@ant-design/icons-svg/es/asn/FormOutlined")>;
|
|
@@ -64,6 +64,7 @@ const PHI_ANTD_ICON_LOADERS = {
|
|
|
64
64
|
FileUnknownTwoTone: () => import("@ant-design/icons/es/icons/FileUnknownTwoTone"),
|
|
65
65
|
FileZipTwoTone: () => import("@ant-design/icons/es/icons/FileZipTwoTone"),
|
|
66
66
|
FolderAddOutlined: () => import("@ant-design/icons-svg/es/asn/FolderAddOutlined"),
|
|
67
|
+
FolderOutlined: () => import("@ant-design/icons-svg/es/asn/FolderOutlined"),
|
|
67
68
|
FontColorsOutlined: () => import("@ant-design/icons-svg/es/asn/FontColorsOutlined"),
|
|
68
69
|
FontSizeOutlined: () => import("@ant-design/icons-svg/es/asn/FontSizeOutlined"),
|
|
69
70
|
FormOutlined: () => import("@ant-design/icons-svg/es/asn/FormOutlined"),
|
|
@@ -353,6 +354,8 @@ export const PHI_ANTD_ICON_NAMES = {
|
|
|
353
354
|
"eye-outlined": "EyeOutlined",
|
|
354
355
|
"folder-add": "FolderAddOutlined",
|
|
355
356
|
"folder-add-outlined": "FolderAddOutlined",
|
|
357
|
+
folder: "FolderOutlined",
|
|
358
|
+
"folder-outlined": "FolderOutlined",
|
|
356
359
|
link: "LinkOutlined",
|
|
357
360
|
"link-outlined": "LinkOutlined",
|
|
358
361
|
lock: "LockOutlined",
|
|
@@ -65,7 +65,7 @@ export function renderPhiValueContent(value, definition, labels, presentation =
|
|
|
65
65
|
const displayValue = definition.valueMap?.[normalizedValue] ?? normalizedValue;
|
|
66
66
|
if (definition.renderer === "email" || definition.renderer === "link") {
|
|
67
67
|
const href = String(value);
|
|
68
|
-
return _jsx(PhiLink, { href: definition.renderer === "email" ? `mailto:${href}` : href, children: displayValue });
|
|
68
|
+
return _jsx(PhiLink, { href: definition.renderer === "email" ? `mailto:${href}` : href, markExternal: true, children: displayValue });
|
|
69
69
|
}
|
|
70
70
|
if (definition.renderer === "tags") {
|
|
71
71
|
const values = Array.isArray(value) ? value : [value];
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { PhiFlexControl } from "../controls/phi-flex-control";
|
|
4
|
+
import { PhiTruncatedHoverText } from "../controls/phi-truncated-hover-text";
|
|
4
5
|
import { PhiTypographyControl } from "../controls/phi-typography-control";
|
|
5
6
|
/** The label column every Inspector row shares, so a control that draws its own header lines up with the rest. */
|
|
6
7
|
export const PHI_INSPECTOR_FIELD_LABEL_WIDTH = 140;
|
|
8
|
+
/* The box that cuts the words is the one the hover text measures. */
|
|
9
|
+
const PHI_INSPECTOR_FIELD_LABEL_TEXT_STYLE = { display: "block", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" };
|
|
7
10
|
export function PhiInspectorFieldRow({ label, children, labelWidth = PHI_INSPECTOR_FIELD_LABEL_WIDTH, }) {
|
|
8
|
-
return (_jsxs(PhiFlexControl, { align: "flex-start", gap: 12, wrap: false, style: { width: "100%" }, children: [_jsx(PhiTypographyControl, { style: { flex: `0 0 ${labelWidth}px`, minWidth: 0,
|
|
11
|
+
return (_jsxs(PhiFlexControl, { align: "flex-start", gap: 12, wrap: false, style: { width: "100%" }, children: [_jsx(PhiTypographyControl, { style: { flex: `0 0 ${labelWidth}px`, minWidth: 0, lineHeight: "var(--phi-control-height)" }, children: _jsx(PhiTruncatedHoverText, { title: label, children: _jsx("span", { style: PHI_INSPECTOR_FIELD_LABEL_TEXT_STYLE, children: label }) }) }), _jsx("div", { style: { flex: "1 1 auto", minWidth: 0 }, children: children })] }));
|
|
9
12
|
}
|
|
@@ -6,7 +6,11 @@ const PHI_ACCOUNT_MENU_LABEL_SET = definePhiLabelSet({
|
|
|
6
6
|
ctx: PHI_TR_CTX_WEB_UI_LABEL,
|
|
7
7
|
labels: {
|
|
8
8
|
account: "Account",
|
|
9
|
-
|
|
9
|
+
/*
|
|
10
|
+
* The action, not the column head: "Login" in this register is a table's, so the button and the
|
|
11
|
+
* dialog it opens name their own.
|
|
12
|
+
*/
|
|
13
|
+
login: { text: "Login", ctx: "Web UI label, action" },
|
|
10
14
|
register: "Register",
|
|
11
15
|
// The Areas, named here because the menu is where a person reads them rather than routes by them.
|
|
12
16
|
areas_title: "Go to",
|
|
@@ -21,7 +25,7 @@ const PHI_LOGIN_MODAL_LABEL_SET = definePhiLabelSet({
|
|
|
21
25
|
key: "widget:login-modal",
|
|
22
26
|
ctx: PHI_TR_CTX_WEB_UI_LABEL,
|
|
23
27
|
labels: {
|
|
24
|
-
title: "Login",
|
|
28
|
+
title: { text: "Login", ctx: "Web UI label, action" },
|
|
25
29
|
submit_label: "Sign in",
|
|
26
30
|
email_label: "Email",
|
|
27
31
|
password_label: "Password",
|
|
@@ -68,6 +68,9 @@ export declare function getPhiAdminUsersTableWidgetLabels(options: PhiGlobalTran
|
|
|
68
68
|
company: string;
|
|
69
69
|
roles: string;
|
|
70
70
|
rolesPlaceholder: string;
|
|
71
|
+
addonRoles: string;
|
|
72
|
+
addonRolesPlaceholder: string;
|
|
73
|
+
addonRolesHint: string;
|
|
71
74
|
changePassword: string;
|
|
72
75
|
createPasswordHint: string;
|
|
73
76
|
authOnlyHint: string;
|
|
@@ -26,8 +26,8 @@ const PHI_ADMIN_USERS_TABLE_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
26
26
|
column_roles: "Roles",
|
|
27
27
|
column_addon_roles: "Add-on roles",
|
|
28
28
|
addon_roles_all: "all roles",
|
|
29
|
-
filter_addon_role: "Add-on
|
|
30
|
-
filter_addon_role_hint: definePhiMessageLabel("Show users who hold
|
|
29
|
+
filter_addon_role: "Add-on",
|
|
30
|
+
filter_addon_role_hint: definePhiMessageLabel("Show users who hold any role of an Add-on. Site Admins hold every role."),
|
|
31
31
|
column_user_flags: "User flags",
|
|
32
32
|
column_site_flags: "Site flags",
|
|
33
33
|
column_last_login: "Last login",
|
|
@@ -59,6 +59,9 @@ const PHI_ADMIN_USERS_TABLE_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
59
59
|
editor_company: "Company",
|
|
60
60
|
editor_roles: "Roles",
|
|
61
61
|
editor_roles_placeholder: "Choose roles",
|
|
62
|
+
editor_addon_roles: "Add-on roles",
|
|
63
|
+
editor_addon_roles_placeholder: "Choose Add-on roles",
|
|
64
|
+
editor_addon_roles_hint: definePhiMessageLabel("A Site Admin holds every Add-on role. Your own Add-on roles cannot be changed here."),
|
|
62
65
|
editor_change_password: "Require password reset",
|
|
63
66
|
editor_create_password_hint: definePhiMessageLabel("New users are created with a temporary password and receive a reset link."),
|
|
64
67
|
editor_auth_only_hint: definePhiMessageLabel("Leave roles empty for an auth-only account."),
|
|
@@ -159,6 +162,9 @@ export async function getPhiAdminUsersTableWidgetLabels(options) {
|
|
|
159
162
|
company: labels.editor_company,
|
|
160
163
|
roles: labels.editor_roles,
|
|
161
164
|
rolesPlaceholder: labels.editor_roles_placeholder,
|
|
165
|
+
addonRoles: labels.editor_addon_roles,
|
|
166
|
+
addonRolesPlaceholder: labels.editor_addon_roles_placeholder,
|
|
167
|
+
addonRolesHint: labels.editor_addon_roles_hint,
|
|
162
168
|
changePassword: labels.editor_change_password,
|
|
163
169
|
createPasswordHint: labels.editor_create_password_hint,
|
|
164
170
|
authOnlyHint: labels.editor_auth_only_hint,
|
|
@@ -82,7 +82,11 @@ const PHI_EFFECTS_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
82
82
|
viewport_x: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.viewport.x,
|
|
83
83
|
viewport_y: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.viewport.y,
|
|
84
84
|
viewport_z: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.viewport.z,
|
|
85
|
-
|
|
85
|
+
/*
|
|
86
|
+
* Moving an element, not putting it into another language: "Translate" in this register is the
|
|
87
|
+
* Messaging button's, so the motion property names its own.
|
|
88
|
+
*/
|
|
89
|
+
viewport_translate: { text: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.viewport.translate, ctx: "Web UI label, motion" },
|
|
86
90
|
viewport_opacity: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.viewport.opacity,
|
|
87
91
|
viewport_rotate: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.viewport.rotate,
|
|
88
92
|
viewport_scale: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.viewport.scale,
|
|
@@ -14,9 +14,9 @@ const PHI_GALLERY_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
14
14
|
region: PHI_GALLERY_WIDGET_DEFAULT_LABELS.region,
|
|
15
15
|
pages: definePhiMessageLabel(PHI_GALLERY_WIDGET_DEFAULT_LABELS.pages),
|
|
16
16
|
unavailable: definePhiMessageLabel(PHI_GALLERY_WIDGET_DEFAULT_LABELS.unavailable),
|
|
17
|
+
empty: PHI_GALLERY_WIDGET_DEFAULT_LABELS.empty,
|
|
17
18
|
canvas_folder: definePhiMessageLabel(PHI_GALLERY_WIDGET_DEFAULT_LABELS.canvasFolder),
|
|
18
19
|
canvas_no_folder: definePhiMessageLabel(PHI_GALLERY_WIDGET_DEFAULT_LABELS.canvasNoFolder),
|
|
19
|
-
canvas_record_field: definePhiMessageLabel(PHI_GALLERY_WIDGET_DEFAULT_LABELS.canvasRecordField),
|
|
20
20
|
},
|
|
21
21
|
});
|
|
22
22
|
export async function getPhiGalleryWidgetLabels(options) {
|
|
@@ -30,8 +30,8 @@ export async function getPhiGalleryWidgetLabels(options) {
|
|
|
30
30
|
region: labels.region,
|
|
31
31
|
pages: labels.pages,
|
|
32
32
|
unavailable: labels.unavailable,
|
|
33
|
+
empty: labels.empty,
|
|
33
34
|
canvasFolder: labels.canvas_folder,
|
|
34
35
|
canvasNoFolder: labels.canvas_no_folder,
|
|
35
|
-
canvasRecordField: labels.canvas_record_field,
|
|
36
36
|
};
|
|
37
37
|
}
|
|
@@ -70,6 +70,8 @@ const PHI_INSPECTOR_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
70
70
|
field_select_calendar: PHI_INSPECTOR_WIDGET_DEFAULT_LABELS.fields.selectCalendar,
|
|
71
71
|
field_select_video_provider: PHI_INSPECTOR_WIDGET_DEFAULT_LABELS.fields.selectVideoProvider,
|
|
72
72
|
field_select_record_field: PHI_INSPECTOR_WIDGET_DEFAULT_LABELS.fields.selectRecordField,
|
|
73
|
+
field_record_field_none: PHI_INSPECTOR_WIDGET_DEFAULT_LABELS.fields.recordFieldNone,
|
|
74
|
+
field_translate_text: PHI_INSPECTOR_WIDGET_DEFAULT_LABELS.fields.translateText,
|
|
73
75
|
link_none: PHI_INSPECTOR_WIDGET_DEFAULT_LABELS.fields.linkTarget.none,
|
|
74
76
|
link_page: PHI_INSPECTOR_WIDGET_DEFAULT_LABELS.fields.linkTarget.page,
|
|
75
77
|
link_external: PHI_INSPECTOR_WIDGET_DEFAULT_LABELS.fields.linkTarget.external,
|
|
@@ -160,6 +162,8 @@ export async function getPhiInspectorWidgetLabels(options) {
|
|
|
160
162
|
selectCalendar: labels.field_select_calendar,
|
|
161
163
|
selectVideoProvider: labels.field_select_video_provider,
|
|
162
164
|
selectRecordField: labels.field_select_record_field,
|
|
165
|
+
recordFieldNone: labels.field_record_field_none,
|
|
166
|
+
translateText: labels.field_translate_text,
|
|
163
167
|
linkTarget: {
|
|
164
168
|
none: labels.link_none,
|
|
165
169
|
page: labels.link_page,
|
|
@@ -6,7 +6,7 @@ const PHI_OBSERVABILITY_LOGS_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
6
6
|
ctx: PHI_TR_CTX_WEB_UI_LABEL,
|
|
7
7
|
labels: {
|
|
8
8
|
search_placeholder: "Search messages, events, and metadata",
|
|
9
|
-
service_label: "
|
|
9
|
+
service_label: "Source",
|
|
10
10
|
level_label: "Level",
|
|
11
11
|
event_label: "Event",
|
|
12
12
|
area_label: "Area",
|
|
@@ -25,7 +25,7 @@ const PHI_OBSERVABILITY_LOGS_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
25
25
|
filter_error: "Error",
|
|
26
26
|
column_time: "Time",
|
|
27
27
|
column_level: "Level",
|
|
28
|
-
column_service: "
|
|
28
|
+
column_service: "Source",
|
|
29
29
|
column_event: "Event",
|
|
30
30
|
column_area: "Area",
|
|
31
31
|
column_user: "User",
|
|
@@ -220,7 +220,8 @@ const PHI_PASSWORD_CHANGE_REQUIRED_LABEL_SET = definePhiLabelSet({
|
|
|
220
220
|
text: definePhiMessageLabel("An administrator asked you to choose a new password before you continue. " +
|
|
221
221
|
"Enter the one you signed in with, then your new one. If you do not know it, use the link in " +
|
|
222
222
|
"the email we sent you."),
|
|
223
|
-
|
|
223
|
+
// Not opening as `text` does: a message is keyed by how it starts, and the two must stay two.
|
|
224
|
+
email_only_text: definePhiMessageLabel("Before you continue, an administrator asked you to choose a new password. " +
|
|
224
225
|
"Use the link in the email we sent you to set it, then sign in again."),
|
|
225
226
|
sign_out: "Sign out",
|
|
226
227
|
},
|