@umbraco-engage/backoffice 17.0.0-rc1 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ab-testing/test/collection/elements/ab-test-variant-name-column-layout.element.d.ts +4 -2
- package/dist/ab-testing/test/components/ab-testing-test-card.element.js +3 -0
- package/dist/ab-testing/test/components/split-url-picker/ab-testing-test-split-url-picker.element.js +4 -2
- package/dist/ab-testing/test/components/test-advice/ab-testing-test-indication.element.js +2 -2
- package/dist/ab-testing/test/components/variant-picker/ab-testing-test-variant-picker.element.js +44 -5
- package/dist/ab-testing/test/conditions/constants.d.ts +1 -0
- package/dist/ab-testing/test/conditions/constants.js +1 -0
- package/dist/ab-testing/test/conditions/document-save-and-publish-visibility.condition.d.ts +7 -0
- package/dist/ab-testing/test/conditions/document-save-and-publish-visibility.condition.js +12 -0
- package/dist/ab-testing/test/conditions/index.d.ts +1 -0
- package/dist/ab-testing/test/conditions/index.js +1 -0
- package/dist/ab-testing/test/conditions/manifests.d.ts +7 -0
- package/dist/ab-testing/test/conditions/manifests.js +10 -0
- package/dist/ab-testing/test/index.d.ts +1 -0
- package/dist/ab-testing/test/index.js +1 -0
- package/dist/ab-testing/test/manifests.d.ts +6 -1
- package/dist/ab-testing/test/manifests.js +2 -0
- package/dist/ab-testing/test/repository/detail/ab-testing-test-detail-server.data-source.d.ts +1 -1
- package/dist/ab-testing/test/repository/detail/ab-testing-test-detail-server.data-source.js +2 -3
- package/dist/ab-testing/test/workspace/ab-testing-test-workspace.context.d.ts +1 -1
- package/dist/ab-testing/test/workspace/ab-testing-test-workspace.context.js +2 -6
- package/dist/ab-testing/test/workspace/actions/ab-test-action-base.d.ts +0 -1
- package/dist/ab-testing/test/workspace/actions/ab-test-action-base.js +0 -9
- package/dist/ab-testing/test/workspace/actions/index.d.ts +0 -1
- package/dist/ab-testing/test/workspace/actions/index.js +0 -1
- package/dist/ab-testing/test/workspace/actions/manifests.js +5 -13
- package/dist/ab-testing/test/workspace/actions/unschedule-test-action.js +0 -1
- package/dist/ab-testing/test/workspace/conditions/ab-testing-can-disable.condition.d.ts +8 -0
- package/dist/ab-testing/test/workspace/conditions/ab-testing-can-disable.condition.js +25 -0
- package/dist/ab-testing/test/workspace/conditions/ab-testing-can-preview.condition.d.ts +8 -0
- package/dist/ab-testing/test/workspace/conditions/ab-testing-can-preview.condition.js +31 -0
- package/dist/ab-testing/test/workspace/conditions/constants.d.ts +2 -0
- package/dist/ab-testing/test/workspace/conditions/constants.js +2 -0
- package/dist/ab-testing/test/workspace/conditions/manifests.js +13 -1
- package/dist/ab-testing/test/workspace/entity-actions/disable-variant.action.d.ts +8 -0
- package/dist/ab-testing/test/workspace/entity-actions/disable-variant.action.js +37 -0
- package/dist/ab-testing/test/workspace/entity-actions/manifests.d.ts +29 -0
- package/dist/ab-testing/test/workspace/entity-actions/manifests.js +34 -0
- package/dist/ab-testing/test/workspace/entity-actions/preview-variant.action.d.ts +8 -0
- package/dist/ab-testing/test/workspace/entity-actions/preview-variant.action.js +32 -0
- package/dist/ab-testing/test/workspace/manifests.d.ts +9 -2
- package/dist/ab-testing/test/workspace/manifests.js +5 -2
- package/dist/ab-testing/test/workspace/views/edit/ab-testing-test-editor.element.js +30 -6
- package/dist/ab-testing/test/workspace/views/scoring/ab-testing-test-scoring.element.js +49 -79
- package/dist/analytics/analytics-context.js +4 -0
- package/dist/analytics/components/heatmap/heatmap.element.d.ts +0 -2
- package/dist/analytics/components/heatmap/heatmap.element.js +24 -29
- package/dist/analytics/screens/heatmap-screen.element.js +23 -3
- package/dist/core/components/group-box/group-box.element.js +12 -5
- package/dist/core/components/scoring/entities.d.ts +4 -0
- package/dist/core/components/scoring/scoring-base.element.d.ts +3 -2
- package/dist/core/components/scoring/scoring-base.element.js +147 -25
- package/dist/core/components/tooltip/tooltip-element.js +2 -2
- package/dist/core/context/entities.d.ts +1 -0
- package/dist/core/context/workspace-context-base.d.ts +1 -1
- package/dist/core/context/workspace-context-base.js +12 -9
- package/dist/core/entities.d.ts +1 -0
- package/dist/core/lang/{en-us.js → en.js} +8 -1
- package/dist/core/lang/manifests.js +1 -1
- package/dist/core/path/edit-variant-workspace-path-pattern.class.js +8 -0
- package/dist/core/property/property-dataset-renderer.controller.d.ts +4 -0
- package/dist/core/property/property-dataset-renderer.controller.js +9 -0
- package/dist/generated/client/client.gen.d.ts +2 -0
- package/dist/generated/client/client.gen.js +228 -0
- package/dist/generated/client/index.d.ts +8 -0
- package/dist/generated/client/index.js +6 -0
- package/dist/generated/client/types.gen.d.ts +117 -0
- package/dist/generated/client/types.gen.js +2 -0
- package/dist/generated/client/utils.gen.d.ts +33 -0
- package/dist/generated/client/utils.gen.js +233 -0
- package/dist/generated/client.gen.d.ts +2 -2
- package/dist/generated/client.gen.js +2 -5
- package/dist/generated/core/auth.gen.d.ts +18 -0
- package/dist/generated/core/auth.gen.js +14 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/core/bodySerializer.gen.js +57 -0
- package/dist/generated/core/params.gen.d.ts +43 -0
- package/dist/generated/core/params.gen.js +100 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/core/pathSerializer.gen.js +114 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/core/queryKeySerializer.gen.js +99 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/core/serverSentEvents.gen.js +135 -0
- package/dist/generated/core/types.gen.d.ts +78 -0
- package/dist/generated/core/types.gen.js +2 -0
- package/dist/generated/core/utils.gen.d.ts +19 -0
- package/dist/generated/core/utils.gen.js +87 -0
- package/dist/generated/sdk.gen.d.ts +135 -135
- package/dist/generated/sdk.gen.js +134 -804
- package/dist/generated/types.gen.d.ts +73 -8
- package/dist/index.js +6 -5
- package/dist/personalization/actions/entity-delete-base.action.d.ts +41 -0
- package/dist/personalization/actions/entity-delete-base.action.js +45 -0
- package/dist/personalization/actions/grouped-item-delete.action.d.ts +3 -3
- package/dist/personalization/actions/grouped-item-delete.action.js +9 -20
- package/dist/personalization/actions/grouped-item-edit.action.d.ts +3 -2
- package/dist/personalization/actions/grouped-item-edit.action.js +13 -20
- package/dist/personalization/actions/grouped-item-entity-edit-base.action.d.ts +13 -0
- package/dist/personalization/actions/grouped-item-entity-edit-base.action.js +45 -0
- package/dist/personalization/actions/index.d.ts +3 -3
- package/dist/personalization/actions/index.js +3 -3
- package/dist/personalization/actions/{applied-personalization-base.action.d.ts → personalization-base.action.d.ts} +2 -2
- package/dist/personalization/actions/{applied-personalization-base.action.js → personalization-base.action.js} +8 -6
- package/dist/personalization/applied-personalization/actions/delete.action.d.ts +2 -3
- package/dist/personalization/applied-personalization/actions/delete.action.js +8 -17
- package/dist/personalization/applied-personalization/actions/edit.action.d.ts +1 -1
- package/dist/personalization/applied-personalization/actions/edit.action.js +1 -1
- package/dist/personalization/applied-personalization/actions/preview.action.d.ts +1 -1
- package/dist/personalization/applied-personalization/actions/preview.action.js +1 -1
- package/dist/personalization/applied-personalization/index.d.ts +0 -1
- package/dist/personalization/applied-personalization/index.js +0 -1
- package/dist/personalization/campaign-scoring/campaign-group/collection/actions/campaign-group-delete.action.d.ts +9 -0
- package/dist/personalization/campaign-scoring/campaign-group/collection/actions/campaign-group-delete.action.js +16 -0
- package/dist/personalization/campaign-scoring/campaign-group/collection/manifests.js +9 -0
- package/dist/personalization/campaign-scoring/campaign-group/repository/detail/index.d.ts +1 -1
- package/dist/personalization/campaign-scoring/campaign-group/repository/detail/index.js +1 -1
- package/dist/personalization/campaign-scoring/campaign-group/repository/item/index.d.ts +1 -1
- package/dist/personalization/campaign-scoring/campaign-group/repository/item/index.js +1 -1
- package/dist/personalization/components/grouped-item/grouped-item-detail-editor-base.element.d.ts +3 -4
- package/dist/personalization/components/grouped-item/grouped-item-detail-editor-base.element.js +1 -6
- package/dist/personalization/components/grouped-item/grouped-item-list-editor-base.element.d.ts +8 -8
- package/dist/personalization/components/grouped-item/grouped-item-list-editor-base.element.js +33 -81
- package/dist/personalization/components/grouped-item/grouped-item-workspace-editor-base.element.d.ts +6 -11
- package/dist/personalization/components/grouped-item/grouped-item-workspace-editor-base.element.js +8 -13
- package/dist/personalization/components/grouped-scoring/collection/group-table-collection-view-base.element.js +15 -0
- package/dist/personalization/content-scoring/workspace/content-scoring-workspace-editor.element.d.ts +2 -2
- package/dist/personalization/content-scoring/workspace/content-scoring-workspace-editor.element.js +56 -130
- package/dist/personalization/content-scoring/workspace/content-scoring-workspace.context.d.ts +5 -5
- package/dist/personalization/content-scoring/workspace/content-scoring-workspace.context.js +25 -34
- package/dist/personalization/context/grouped-items-workspace-context.interface.d.ts +0 -2
- package/dist/personalization/context/grouped-items-workspace.context.d.ts +1 -4
- package/dist/personalization/context/grouped-items-workspace.context.js +7 -11
- package/dist/personalization/journeys/actions/delete.action.d.ts +8 -0
- package/dist/personalization/journeys/actions/delete.action.js +13 -0
- package/dist/personalization/journeys/actions/edit.action.d.ts +8 -0
- package/dist/personalization/journeys/actions/edit.action.js +12 -0
- package/dist/personalization/journeys/actions/manifests.d.ts +22 -0
- package/dist/personalization/journeys/actions/manifests.js +25 -0
- package/dist/personalization/journeys/constants.d.ts +1 -1
- package/dist/personalization/journeys/constants.js +1 -1
- package/dist/personalization/journeys/manifests.js +3 -1
- package/dist/personalization/journeys/workspace/customer-journey-workspace-editor.element.d.ts +0 -3
- package/dist/personalization/journeys/workspace/customer-journey-workspace-editor.element.js +1 -10
- package/dist/personalization/journeys/workspace/customer-journey-workspace.context.d.ts +1 -7
- package/dist/personalization/journeys/workspace/customer-journey-workspace.context.js +7 -6
- package/dist/personalization/journeys/workspace/views/edit/customer-journey-editor.element.js +4 -2
- package/dist/personalization/journeys/workspace/views/edit/customer-journey-steps-list-editor.element.d.ts +1 -0
- package/dist/personalization/journeys/workspace/views/edit/customer-journey-steps-list-editor.element.js +14 -4
- package/dist/personalization/personalized-variants/editor-view/personalized-variants-editor-view.element.js +2 -2
- package/dist/personalization/personalized-variants/workspace/personalized-variant-workspace.context.js +3 -7
- package/dist/personalization/personas/actions/delete.action.d.ts +8 -0
- package/dist/personalization/personas/actions/delete.action.js +13 -0
- package/dist/personalization/personas/actions/edit.action.d.ts +8 -0
- package/dist/personalization/personas/actions/edit.action.js +12 -0
- package/dist/personalization/personas/actions/manifests.d.ts +22 -0
- package/dist/personalization/personas/actions/manifests.js +25 -0
- package/dist/personalization/personas/constants.d.ts +2 -2
- package/dist/personalization/personas/constants.js +2 -2
- package/dist/personalization/personas/manifests.js +6 -4
- package/dist/personalization/personas/repository/detail/persona-group-detail-server.data-source.js +0 -2
- package/dist/personalization/personas/workspace/persona-group-workspace-editor.element.d.ts +0 -3
- package/dist/personalization/personas/workspace/persona-group-workspace-editor.element.js +1 -10
- package/dist/personalization/personas/workspace/persona-group-workspace.context.d.ts +1 -7
- package/dist/personalization/personas/workspace/persona-group-workspace.context.js +7 -6
- package/dist/personalization/personas/workspace/views/edit/persona-group-personas-list-editor.element.d.ts +1 -0
- package/dist/personalization/personas/workspace/views/edit/persona-group-personas-list-editor.element.js +14 -4
- package/dist/personalization/referral-scoring/manifests.js +1 -4
- package/dist/personalization/referral-scoring/referral-group/actions/delete.action.d.ts +9 -0
- package/dist/personalization/referral-scoring/referral-group/actions/delete.action.js +16 -0
- package/dist/personalization/referral-scoring/referral-group/manifests.js +10 -0
- package/dist/personalization/segments/actions/delete.action.d.ts +3 -4
- package/dist/personalization/segments/actions/delete.action.js +9 -21
- package/dist/personalization/segments/rules/base/segment-rule-base-grouped-extended-checkbox.element.d.ts +1 -1
- package/dist/profiles/insights/campaigns/campaigns-list.element.d.ts +1 -0
- package/dist/profiles/insights/campaigns/campaigns-list.element.js +9 -1
- package/dist/profiles/insights/customer-journeys/customer-journeys.element.js +3 -2
- package/dist/profiles/insights/engage-profile-insight.interface.js +7 -1
- package/dist/profiles/insights/goals/goals-table-collection-view.element.js +1 -1
- package/dist/profiles/insights/manifests.js +2 -0
- package/dist/profiles/insights/persona-groups/persona-groups.element.js +3 -2
- package/dist/reporting/components/reporting-chart-card/reporting-chart-card.element.d.ts +1 -0
- package/dist/reporting/components/reporting-chart-card/reporting-chart-card.element.js +5 -1
- package/dist/reporting/components/segment-selector/reporting-segment-selector.element.js +10 -20
- package/dist/start-page/components/license-viewer.element.js +4 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/umbraco-package.json +1 -1
- package/package.json +8 -5
- package/dist/ab-testing/test/workspace/actions/submit-test-action.d.ts +0 -8
- package/dist/ab-testing/test/workspace/actions/submit-test-action.js +0 -11
- package/dist/personalization/applied-personalization/actions/index.d.ts +0 -3
- package/dist/personalization/applied-personalization/actions/index.js +0 -3
- /package/dist/core/lang/{en-us.d.ts → en.d.ts} +0 -0
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { manifests as repositoryManifests } from "./repository/manifests.js";
|
|
2
2
|
import { manifests as componentManifests } from "./components/manifests.js";
|
|
3
|
-
import {
|
|
3
|
+
import { manifests as actionManifests } from "./actions/manifests.js";
|
|
4
|
+
import { ENGAGE_PERSONA_GROUP_ENTITY_TYPE } from "./index.js";
|
|
4
5
|
export const manifests = [
|
|
5
6
|
...repositoryManifests,
|
|
6
7
|
...componentManifests,
|
|
8
|
+
...actionManifests,
|
|
7
9
|
{
|
|
8
10
|
type: "entityAction",
|
|
9
11
|
kind: "delete",
|
|
10
12
|
alias: "Engage.EntityAction.Persona.DeleteAction",
|
|
11
13
|
name: "Engage Persona Delete Action",
|
|
12
14
|
api: () => import("../actions/grouped-item-delete.action.js"),
|
|
13
|
-
forEntityTypes: [
|
|
15
|
+
forEntityTypes: [ENGAGE_PERSONA_GROUP_ENTITY_TYPE],
|
|
14
16
|
weight: 150,
|
|
15
17
|
},
|
|
16
18
|
{
|
|
@@ -19,10 +21,10 @@ export const manifests = [
|
|
|
19
21
|
alias: "Engage.EntityAction.Persona.EditAction",
|
|
20
22
|
name: "Engage Persona Edit Action",
|
|
21
23
|
api: () => import("../actions/grouped-item-edit.action.js"),
|
|
22
|
-
forEntityTypes: [
|
|
24
|
+
forEntityTypes: [ENGAGE_PERSONA_GROUP_ENTITY_TYPE],
|
|
23
25
|
weight: 200,
|
|
24
26
|
meta: {
|
|
25
|
-
label: "#
|
|
27
|
+
label: "#engage_personalization_editPersonaGroup",
|
|
26
28
|
icon: "icon-edit",
|
|
27
29
|
additionalOptions: true,
|
|
28
30
|
},
|
package/dist/personalization/personas/repository/detail/persona-group-detail-server.data-source.js
CHANGED
|
@@ -67,10 +67,8 @@ export class UePersonaGroupDetailServerDataSource {
|
|
|
67
67
|
return {
|
|
68
68
|
...data,
|
|
69
69
|
entityType: ENGAGE_PERSONA_GROUP_ENTITY_TYPE,
|
|
70
|
-
unique: data.id.toString(),
|
|
71
70
|
items: data.personas?.map((p) => ({
|
|
72
71
|
...p,
|
|
73
|
-
unique: p.id.toString(),
|
|
74
72
|
entityType: ENGAGE_PERSONA_ENTITY_TYPE,
|
|
75
73
|
color: { value: p.color, label: p.color },
|
|
76
74
|
})) ?? [],
|
|
@@ -11,9 +11,6 @@ export declare class UePersonaGroupWorkspaceEditorElement extends UeGroupedItemW
|
|
|
11
11
|
headline: string;
|
|
12
12
|
addGroupLabel: string;
|
|
13
13
|
itemLabel: string;
|
|
14
|
-
personalizationSection: string;
|
|
15
|
-
editModalHeadline: string;
|
|
16
|
-
icon: string;
|
|
17
14
|
constructor();
|
|
18
15
|
}
|
|
19
16
|
export default UePersonaGroupWorkspaceEditorElement;
|
|
@@ -4,7 +4,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { PersonaGroupAdvancedSettingProperties, PersonaGroupDetailProperties, } from "../entities.js";
|
|
8
7
|
import { UeGroupedItemWorkspaceEditorBaseElement } from "../../components/index.js";
|
|
9
8
|
import { ENGAGE_GROUPED_ITEM_WORKSPACE_CONTEXT } from "../../context/index.js";
|
|
10
9
|
import { UePersonaGroupWorkspaceContext } from "./persona-group-workspace.context.js";
|
|
@@ -24,15 +23,7 @@ let UePersonaGroupWorkspaceEditorElement = class UePersonaGroupWorkspaceEditorEl
|
|
|
24
23
|
this.headline = this.localize.term("engage_personalization_personaGroups");
|
|
25
24
|
this.addGroupLabel = this.localize.term("engage_personalization_addPersonaGroup");
|
|
26
25
|
this.itemLabel = this.localize.term("engage_personalization_personas");
|
|
27
|
-
this.
|
|
28
|
-
this.editModalHeadline = this.localize.term("engage_personalization_editPersonaGroup");
|
|
29
|
-
this.icon = "icon-users";
|
|
30
|
-
this.provideContext(ENGAGE_PERSONA_GROUP_WORKSPACE_CONTEXT, new UePersonaGroupWorkspaceContext({
|
|
31
|
-
host: this,
|
|
32
|
-
properties: PersonaGroupDetailProperties,
|
|
33
|
-
advancedProperties: PersonaGroupAdvancedSettingProperties,
|
|
34
|
-
editHeadline: this.editModalHeadline,
|
|
35
|
-
}));
|
|
26
|
+
this.provideContext(ENGAGE_PERSONA_GROUP_WORKSPACE_CONTEXT, new UePersonaGroupWorkspaceContext(this));
|
|
36
27
|
}
|
|
37
28
|
};
|
|
38
29
|
UePersonaGroupWorkspaceEditorElement = __decorate([
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { UeGroupedItemsWorkspaceContextBase } from "../../context/grouped-items-workspace.context.js";
|
|
2
2
|
import type { UePersonaGroupDetailModel, UePersonaDetailModel } from "../../entities.js";
|
|
3
3
|
import type { UmbControllerHost } from "@umbraco-cms/backoffice/controller-api";
|
|
4
|
-
import type { UePropertyConfigData } from "../../../core/index.js";
|
|
5
4
|
export declare class UePersonaGroupWorkspaceContext extends UeGroupedItemsWorkspaceContextBase<UePersonaGroupDetailModel, UePersonaDetailModel> {
|
|
6
5
|
readonly IS_PERSONA_GROUP_WORKSPACE_CONTEXT = true;
|
|
7
|
-
constructor(
|
|
8
|
-
host: UmbControllerHost;
|
|
9
|
-
properties: UePropertyConfigData<UePersonaGroupDetailModel>;
|
|
10
|
-
advancedProperties?: UePropertyConfigData<UePersonaGroupDetailModel>;
|
|
11
|
-
editHeadline?: string;
|
|
12
|
-
});
|
|
6
|
+
constructor(host: UmbControllerHost);
|
|
13
7
|
}
|
|
14
8
|
export { UePersonaGroupWorkspaceContext as api };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { UePersonaGroupDetailRepository } from "../repository/detail/persona-group-detail.repository.js";
|
|
2
|
-
import { ENGAGE_PERSONA_GROUP_ENTITY_TYPE, ENGAGE_PERSONA_GROUP_WORKSPACE_ALIAS, } from "../constants.js";
|
|
2
|
+
import { ENGAGE_PERSONA_ENTITY_TYPE, ENGAGE_PERSONA_GROUP_ENTITY_TYPE, ENGAGE_PERSONA_GROUP_WORKSPACE_ALIAS, } from "../constants.js";
|
|
3
3
|
import { UeGroupedItemsWorkspaceContextBase } from "../../context/grouped-items-workspace.context.js";
|
|
4
|
+
import { PersonaGroupAdvancedSettingProperties, PersonaGroupDetailProperties, } from "../index.js";
|
|
4
5
|
export class UePersonaGroupWorkspaceContext extends UeGroupedItemsWorkspaceContextBase {
|
|
5
|
-
constructor(
|
|
6
|
-
super(
|
|
6
|
+
constructor(host) {
|
|
7
|
+
super(host, {
|
|
7
8
|
workspaceAlias: ENGAGE_PERSONA_GROUP_WORKSPACE_ALIAS,
|
|
8
9
|
entityType: ENGAGE_PERSONA_GROUP_ENTITY_TYPE,
|
|
10
|
+
itemEntityType: ENGAGE_PERSONA_ENTITY_TYPE,
|
|
9
11
|
detailRepositoryConstructor: UePersonaGroupDetailRepository,
|
|
10
|
-
properties:
|
|
11
|
-
advancedProperties:
|
|
12
|
-
editHeadline: args.editHeadline,
|
|
12
|
+
properties: PersonaGroupDetailProperties,
|
|
13
|
+
advancedProperties: PersonaGroupAdvancedSettingProperties,
|
|
13
14
|
});
|
|
14
15
|
this.IS_PERSONA_GROUP_WORKSPACE_CONTEXT = true;
|
|
15
16
|
}
|
|
@@ -3,6 +3,7 @@ import type { UePersonaDetailModel } from "../../../../entities.js";
|
|
|
3
3
|
declare const elementName = "ue-persona-group-personas-list-editor";
|
|
4
4
|
export declare class UePersonaGroupPersonaListEditorElement extends UeGroupedItemListEditorBaseElement<UePersonaDetailModel> {
|
|
5
5
|
constructor();
|
|
6
|
+
onAdd(idx?: number): Promise<void>;
|
|
6
7
|
}
|
|
7
8
|
declare global {
|
|
8
9
|
interface HTMLElementTagNameMap {
|
|
@@ -5,15 +5,25 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { UeGroupedItemListEditorBaseElement } from "../../../../components/grouped-item/grouped-item-list-editor-base.element.js";
|
|
8
|
-
import { PersonaDetailProperties } from "../../../entities.js";
|
|
9
8
|
import { ENGAGE_GROUPED_ITEM_WORKSPACE_CONTEXT } from "../../../../context/index.js";
|
|
10
9
|
import { customElement } from "@umbraco-cms/backoffice/external/lit";
|
|
10
|
+
import EngageEditPersonaItemAction from "../../../actions/edit.action.js";
|
|
11
|
+
import { ENGAGE_PERSONA_ENTITY_TYPE } from "../../../constants.js";
|
|
11
12
|
const elementName = "ue-persona-group-personas-list-editor";
|
|
12
13
|
let UePersonaGroupPersonaListEditorElement = class UePersonaGroupPersonaListEditorElement extends UeGroupedItemListEditorBaseElement {
|
|
13
14
|
constructor() {
|
|
14
|
-
super(
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
super(ENGAGE_GROUPED_ITEM_WORKSPACE_CONTEXT, "#engage_personalization_addPersona");
|
|
16
|
+
}
|
|
17
|
+
async onAdd(idx) {
|
|
18
|
+
const action = new EngageEditPersonaItemAction(this, {
|
|
19
|
+
entityType: ENGAGE_PERSONA_ENTITY_TYPE,
|
|
20
|
+
meta: {
|
|
21
|
+
position: idx,
|
|
22
|
+
label: this.addLabel,
|
|
23
|
+
},
|
|
24
|
+
unique: "",
|
|
25
|
+
});
|
|
26
|
+
await action.execute();
|
|
17
27
|
}
|
|
18
28
|
};
|
|
19
29
|
UePersonaGroupPersonaListEditorElement = __decorate([
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { manifests as referralGroupManifests } from "./referral-group/manifests.js";
|
|
2
2
|
import { manifests as modalManifests } from "./modal/manifests.js";
|
|
3
|
-
export const manifests = [
|
|
4
|
-
...referralGroupManifests,
|
|
5
|
-
...modalManifests,
|
|
6
|
-
];
|
|
3
|
+
export const manifests = [...referralGroupManifests, ...modalManifests];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UeEntityDeleteBaseAction } from "../../../actions/index.js";
|
|
2
|
+
import { UmbControllerHost } from "@umbraco-cms/backoffice/controller-api";
|
|
3
|
+
import { UmbEntityActionArgs } from "@umbraco-cms/backoffice/entity-action";
|
|
4
|
+
import { UeReferralGroupDetailRepository } from "../repository/index.js";
|
|
5
|
+
import { UMB_COLLECTION_CONTEXT } from "@umbraco-cms/backoffice/collection";
|
|
6
|
+
export declare class UeReferralGroupDeleteEntityAction extends UeEntityDeleteBaseAction<UeReferralGroupDetailRepository, typeof UMB_COLLECTION_CONTEXT.TYPE> {
|
|
7
|
+
constructor(host: UmbControllerHost, args: UmbEntityActionArgs<any>);
|
|
8
|
+
}
|
|
9
|
+
export default UeReferralGroupDeleteEntityAction;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UeEntityDeleteBaseAction } from "../../../actions/index.js";
|
|
2
|
+
import { UeReferralGroupDetailRepository } from "../repository/index.js";
|
|
3
|
+
import { UMB_COLLECTION_CONTEXT } from "@umbraco-cms/backoffice/collection";
|
|
4
|
+
export class UeReferralGroupDeleteEntityAction extends UeEntityDeleteBaseAction {
|
|
5
|
+
constructor(host, args) {
|
|
6
|
+
super({
|
|
7
|
+
host,
|
|
8
|
+
args,
|
|
9
|
+
repositoryConstructor: UeReferralGroupDetailRepository,
|
|
10
|
+
contextToken: UMB_COLLECTION_CONTEXT,
|
|
11
|
+
deleteHandler: (unique) => this.repository?.delete(unique),
|
|
12
|
+
onDeleteSuccess: () => this.workspaceContext?.loadCollection(),
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export default UeReferralGroupDeleteEntityAction;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { manifests as collectionManifests } from "./collection/manifests.js";
|
|
2
2
|
import { manifests as workspaceManifests } from "./workspace/manifests.js";
|
|
3
3
|
import { manifests as repositoryManifests } from "./repository/manifests.js";
|
|
4
|
+
import { ENGAGE_REFERRAL_GROUP_ENTITY_TYPE } from "./constants.js";
|
|
4
5
|
export const manifests = [
|
|
5
6
|
...collectionManifests,
|
|
6
7
|
...workspaceManifests,
|
|
7
8
|
...repositoryManifests,
|
|
9
|
+
{
|
|
10
|
+
type: "entityAction",
|
|
11
|
+
kind: "delete",
|
|
12
|
+
alias: "Engage.EntityAction.ReferralGroup.DeleteAction",
|
|
13
|
+
name: "Engage Referral Group Delete Action",
|
|
14
|
+
api: () => import("./actions/delete.action.js"),
|
|
15
|
+
forEntityTypes: [ENGAGE_REFERRAL_GROUP_ENTITY_TYPE],
|
|
16
|
+
weight: 150,
|
|
17
|
+
},
|
|
8
18
|
];
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UeEntityDeleteBaseAction } from "../../actions/index.js";
|
|
2
2
|
import { ENGAGE_SEGMENTS_COLLECTION_CONTEXT } from "../collection/segments-collection.context.js";
|
|
3
3
|
import { UmbControllerHost } from "@umbraco-cms/backoffice/controller-api";
|
|
4
4
|
import { UmbEntityActionArgs } from "@umbraco-cms/backoffice/entity-action";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import { UeSegmentsCollectionRepository } from "../collection/repository/index.js";
|
|
6
|
+
export declare class UeSegmentDeleteEntityAction extends UeEntityDeleteBaseAction<UeSegmentsCollectionRepository, typeof ENGAGE_SEGMENTS_COLLECTION_CONTEXT.TYPE> {
|
|
7
7
|
constructor(host: UmbControllerHost, args: UmbEntityActionArgs<any>);
|
|
8
|
-
execute(): Promise<void>;
|
|
9
8
|
}
|
|
10
9
|
export default UeSegmentDeleteEntityAction;
|
|
@@ -1,27 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UePersonalizationBaseEntityAction } from "../../actions/applied-personalization-base.action.js";
|
|
1
|
+
import { UeEntityDeleteBaseAction } from "../../actions/index.js";
|
|
3
2
|
import { ENGAGE_SEGMENTS_COLLECTION_CONTEXT } from "../collection/segments-collection.context.js";
|
|
4
3
|
import { UeSegmentsCollectionRepository } from "../collection/repository/index.js";
|
|
5
|
-
export class UeSegmentDeleteEntityAction extends
|
|
6
|
-
#repository = new UeSegmentsCollectionRepository(this);
|
|
4
|
+
export class UeSegmentDeleteEntityAction extends UeEntityDeleteBaseAction {
|
|
7
5
|
constructor(host, args) {
|
|
8
|
-
super(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
headline: this.localize.term("actions_delete"),
|
|
16
|
-
content: this.localize.term("engage_deleteItemsDescription", 1),
|
|
17
|
-
color: "danger",
|
|
18
|
-
confirmLabel: this.localize.term("actions_delete"),
|
|
19
|
-
})
|
|
20
|
-
.then(async () => {
|
|
21
|
-
await this.#repository?.delete(this.unique);
|
|
22
|
-
await this.workspaceContext?.requestCollection();
|
|
23
|
-
})
|
|
24
|
-
.catch(() => { });
|
|
6
|
+
super({
|
|
7
|
+
host,
|
|
8
|
+
args,
|
|
9
|
+
repositoryConstructor: UeSegmentsCollectionRepository,
|
|
10
|
+
contextToken: ENGAGE_SEGMENTS_COLLECTION_CONTEXT,
|
|
11
|
+
deleteHandler: (unique) => this.repository?.delete(unique),
|
|
12
|
+
});
|
|
25
13
|
}
|
|
26
14
|
}
|
|
27
15
|
export default UeSegmentDeleteEntityAction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RequestResult } from "
|
|
1
|
+
import type { RequestResult } from "../../../../generated/client/index.js";
|
|
2
2
|
import type { UeExtendedCheckboxConfiguration } from "../entities.js";
|
|
3
3
|
import { UeSegmentRuleBaseElement } from "./segment-rule-base.element.js";
|
|
4
4
|
interface GroupOption {
|
|
@@ -32,6 +32,10 @@ let UeProfileDetailsCampaignsElement = class UeProfileDetailsCampaignsElement ex
|
|
|
32
32
|
},
|
|
33
33
|
];
|
|
34
34
|
this._tableItems = [];
|
|
35
|
+
this._tableConfig = {
|
|
36
|
+
allowSelection: false,
|
|
37
|
+
hideIcon: true,
|
|
38
|
+
};
|
|
35
39
|
}
|
|
36
40
|
async connectedCallback() {
|
|
37
41
|
super.connectedCallback();
|
|
@@ -80,10 +84,11 @@ let UeProfileDetailsCampaignsElement = class UeProfileDetailsCampaignsElement ex
|
|
|
80
84
|
#renderCampaignsTable() {
|
|
81
85
|
return when(this._tableItems.length, () => html `
|
|
82
86
|
<umb-table
|
|
87
|
+
.config=${this._tableConfig}
|
|
83
88
|
.columns=${this._tableColumns}
|
|
84
89
|
.items=${this._tableItems}
|
|
85
90
|
></umb-table>
|
|
86
|
-
`, () => html `<ue-empty-state>
|
|
91
|
+
`, () => html `<ue-empty-state style="padding: var(--uui-size-space-5);">
|
|
87
92
|
${this.localize.term("engage_profile_details_noCampaigns")}
|
|
88
93
|
</ue-empty-state>`);
|
|
89
94
|
}
|
|
@@ -97,6 +102,9 @@ __decorate([
|
|
|
97
102
|
__decorate([
|
|
98
103
|
state()
|
|
99
104
|
], UeProfileDetailsCampaignsElement.prototype, "_tableItems", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
state()
|
|
107
|
+
], UeProfileDetailsCampaignsElement.prototype, "_tableConfig", void 0);
|
|
100
108
|
UeProfileDetailsCampaignsElement = __decorate([
|
|
101
109
|
customElement(elementName)
|
|
102
110
|
], UeProfileDetailsCampaignsElement);
|
|
@@ -30,13 +30,14 @@ let UeProfileDetailsCustomerJourneysElement = class UeProfileDetailsCustomerJour
|
|
|
30
30
|
#renderCustomerJourneyGroups() {
|
|
31
31
|
return html `
|
|
32
32
|
<ue-customer-journey-scoring
|
|
33
|
-
|
|
33
|
+
readonly
|
|
34
34
|
.config=${{ hideDivider: true }}
|
|
35
35
|
.value=${this.customerJourneyScore?.map((p) => ({
|
|
36
36
|
entityId: p.customerJourneyStepId,
|
|
37
37
|
score: p.score,
|
|
38
38
|
unique: "",
|
|
39
39
|
id: 0,
|
|
40
|
+
isActive: p.isActive,
|
|
40
41
|
})) ?? []}
|
|
41
42
|
>
|
|
42
43
|
</ue-customer-journey-scoring>
|
|
@@ -51,7 +52,7 @@ let UeProfileDetailsCustomerJourneysElement = class UeProfileDetailsCustomerJour
|
|
|
51
52
|
|
|
52
53
|
display: grid;
|
|
53
54
|
grid-template-columns: 1fr 1fr 1fr;
|
|
54
|
-
gap: var(--uui-size-space-
|
|
55
|
+
gap: var(--uui-size-space-6);
|
|
55
56
|
}
|
|
56
57
|
`; }
|
|
57
58
|
};
|
|
@@ -20,7 +20,13 @@ export class UeProfileInsightElement extends UmbLitElement {
|
|
|
20
20
|
return this._profileId;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return when(this.loading, () => html `<
|
|
23
|
+
return when(this.loading, () => html `<div
|
|
24
|
+
style=${this.manifest?.meta.noPadding
|
|
25
|
+
? "padding: var(--uui-size-space-5);"
|
|
26
|
+
: ""}
|
|
27
|
+
>
|
|
28
|
+
<uui-loader-bar></uui-loader-bar>
|
|
29
|
+
</div>`, () => this.renderInsight());
|
|
24
30
|
}
|
|
25
31
|
}
|
|
26
32
|
__decorate([
|
|
@@ -97,7 +97,7 @@ let UeProfileDetailGoalsTableElement = class UeProfileDetailGoalsTableElement ex
|
|
|
97
97
|
>
|
|
98
98
|
</umb-table>
|
|
99
99
|
`, () => html `
|
|
100
|
-
<ue-empty-state>
|
|
100
|
+
<ue-empty-state style="padding: var(--uui-size-space-5);">
|
|
101
101
|
${this.localize.term("engage_profile_details_noGoals")}
|
|
102
102
|
</ue-empty-state>
|
|
103
103
|
`);
|
|
@@ -3,10 +3,12 @@ const insights = [
|
|
|
3
3
|
{
|
|
4
4
|
name: "Goals",
|
|
5
5
|
js: () => import("./goals/goals-table-collection-view.element.js"),
|
|
6
|
+
noPadding: true,
|
|
6
7
|
},
|
|
7
8
|
{
|
|
8
9
|
name: "Campaigns",
|
|
9
10
|
js: () => import("./campaigns/campaigns-list.element.js"),
|
|
11
|
+
noPadding: true,
|
|
10
12
|
},
|
|
11
13
|
{
|
|
12
14
|
name: "Potential",
|
|
@@ -30,13 +30,14 @@ let UeProfileDetailsPersonaGroupsElement = class UeProfileDetailsPersonaGroupsEl
|
|
|
30
30
|
#renderPersonaGroups() {
|
|
31
31
|
return html `
|
|
32
32
|
<ue-persona-group-scoring
|
|
33
|
-
|
|
33
|
+
readonly
|
|
34
34
|
.config=${{ hideDivider: true }}
|
|
35
35
|
.value=${this.personaScores?.map((p) => ({
|
|
36
36
|
entityId: p.personaId,
|
|
37
37
|
score: p.score,
|
|
38
38
|
unique: "",
|
|
39
39
|
id: 0,
|
|
40
|
+
isActive: p.isActive,
|
|
40
41
|
})) ?? []}
|
|
41
42
|
>
|
|
42
43
|
</ue-persona-group-scoring>
|
|
@@ -51,7 +52,7 @@ let UeProfileDetailsPersonaGroupsElement = class UeProfileDetailsPersonaGroupsEl
|
|
|
51
52
|
|
|
52
53
|
display: grid;
|
|
53
54
|
grid-template-columns: 1fr 1fr 1fr;
|
|
54
|
-
gap: var(--uui-size-space-
|
|
55
|
+
gap: var(--uui-size-space-6);
|
|
55
56
|
}
|
|
56
57
|
`; }
|
|
57
58
|
};
|
|
@@ -9,7 +9,7 @@ import { UmbLitElement } from "@umbraco-cms/backoffice/lit-element";
|
|
|
9
9
|
const elementName = "ue-reporting-chart-card";
|
|
10
10
|
let UeReportingChartCardElement = class UeReportingChartCardElement extends UmbLitElement {
|
|
11
11
|
constructor() {
|
|
12
|
-
super(
|
|
12
|
+
super();
|
|
13
13
|
this._config = {
|
|
14
14
|
type: "bar",
|
|
15
15
|
showAnnotations: false,
|
|
@@ -19,6 +19,10 @@ let UeReportingChartCardElement = class UeReportingChartCardElement extends UmbL
|
|
|
19
19
|
aspect: 1 / 1,
|
|
20
20
|
};
|
|
21
21
|
this.headline = "";
|
|
22
|
+
const now = new Date();
|
|
23
|
+
this._config.endDate = now.toISOString();
|
|
24
|
+
now.setDate(now.getDate() - 30);
|
|
25
|
+
this._config.startDate = now.toISOString();
|
|
22
26
|
}
|
|
23
27
|
#showPercentageChanged(e) {
|
|
24
28
|
this._config = { ...this._config, showPercentages: e.target.checked };
|
|
@@ -75,16 +75,10 @@ let UeReportingSegmentSelectorElement = class UeReportingSegmentSelectorElement
|
|
|
75
75
|
</ue-grid>`;
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
|
-
return html ` <
|
|
79
|
-
<
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
</td>
|
|
83
|
-
<td>
|
|
84
|
-
<h3>${this.localize.term("engage_analytics_last30days")}</h3>
|
|
85
|
-
</td>
|
|
86
|
-
</tr>
|
|
87
|
-
</table>
|
|
78
|
+
return html ` <div id="header">
|
|
79
|
+
<h2>${this.localize.term("engage_reporting_segment")}</h2>
|
|
80
|
+
<h3>${this.localize.term("engage_analytics_last30days")}</h3>
|
|
81
|
+
</div>
|
|
88
82
|
<uui-box>
|
|
89
83
|
<div>
|
|
90
84
|
<div id="sidebar">
|
|
@@ -181,17 +175,13 @@ let UeReportingSegmentSelectorElement = class UeReportingSegmentSelectorElement
|
|
|
181
175
|
height: 100%;
|
|
182
176
|
}
|
|
183
177
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
.reporting-title td:last-child {
|
|
189
|
-
text-align: right;
|
|
190
|
-
opacity: 0.5;
|
|
191
|
-
}
|
|
178
|
+
#header {
|
|
179
|
+
display: flex;
|
|
180
|
+
justify-content: space-between;
|
|
192
181
|
|
|
193
|
-
|
|
194
|
-
|
|
182
|
+
h3 {
|
|
183
|
+
color: var(--uui-color-border-emphasis);
|
|
184
|
+
}
|
|
195
185
|
}
|
|
196
186
|
`; }
|
|
197
187
|
};
|
|
@@ -294,13 +294,16 @@ let UeLicenseViewerElement = class UeLicenseViewerElement extends UmbLitElement
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
[popovertarget] {
|
|
297
|
-
text-decoration: underline;
|
|
298
297
|
--uui-color-default: transparent;
|
|
299
298
|
--uui-button-height: 0;
|
|
300
299
|
--uui-button-padding-left-factor: 0;
|
|
301
300
|
--uui-button-padding-right-factor: 0;
|
|
302
301
|
--uui-button-font-weight: 400;
|
|
303
302
|
}
|
|
303
|
+
|
|
304
|
+
[popovertarget]:hover {
|
|
305
|
+
--uui-color-default-contrast: var(--uui-color-current);
|
|
306
|
+
}
|
|
304
307
|
`,
|
|
305
308
|
]; }
|
|
306
309
|
};
|