@esri/hub-common 14.160.2 → 14.161.1
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/esm/content/compose.js +1 -1
- package/dist/esm/content/compose.js.map +1 -1
- package/dist/esm/core/schemas/internal/getEditorSchemas.js +5 -0
- package/dist/esm/core/schemas/internal/getEditorSchemas.js.map +1 -1
- package/dist/esm/core/types/Embeds.js +9 -0
- package/dist/esm/core/types/Embeds.js.map +1 -0
- package/dist/esm/core/types/index.js +1 -0
- package/dist/esm/core/types/index.js.map +1 -1
- package/dist/esm/groups/_internal/GroupSchema.js +2 -0
- package/dist/esm/groups/_internal/GroupSchema.js.map +1 -1
- package/dist/esm/groups/_internal/GroupUiSchemaCreateEdit2.js +98 -0
- package/dist/esm/groups/_internal/GroupUiSchemaCreateEdit2.js.map +1 -0
- package/dist/esm/groups/_internal/GroupUiSchemaCreateView2.js +98 -0
- package/dist/esm/groups/_internal/GroupUiSchemaCreateView2.js.map +1 -0
- package/dist/esm/groups/defaults.js +2 -2
- package/dist/esm/groups/defaults.js.map +1 -1
- package/dist/esm/initiatives/_internal/InitiativeSchema.js +1 -0
- package/dist/esm/initiatives/_internal/InitiativeSchema.js.map +1 -1
- package/dist/esm/initiatives/_internal/InitiativeUiSchemaCreate2.js +35 -0
- package/dist/esm/initiatives/_internal/InitiativeUiSchemaCreate2.js.map +1 -0
- package/dist/esm/pages/HubPage.js +2 -8
- package/dist/esm/pages/HubPage.js.map +1 -1
- package/dist/esm/pages/_internal/PageSchema.js +1 -1
- package/dist/esm/pages/_internal/PageSchema.js.map +1 -1
- package/dist/esm/pages/_internal/PageUiSchemaCreate.js +35 -0
- package/dist/esm/pages/_internal/PageUiSchemaCreate.js.map +1 -0
- package/dist/esm/pages/defaults.js +5 -2
- package/dist/esm/pages/defaults.js.map +1 -1
- package/dist/esm/projects/_internal/ProjectSchema.js +1 -0
- package/dist/esm/projects/_internal/ProjectSchema.js.map +1 -1
- package/dist/esm/projects/_internal/ProjectUiSchemaCreate2.js +35 -0
- package/dist/esm/projects/_internal/ProjectUiSchemaCreate2.js.map +1 -0
- package/dist/esm/sites/HubSite.js +3 -9
- package/dist/esm/sites/HubSite.js.map +1 -1
- package/dist/esm/sites/HubSites.js +19 -3
- package/dist/esm/sites/HubSites.js.map +1 -1
- package/dist/esm/sites/_internal/SiteUiSchemaCreate.js +17 -137
- package/dist/esm/sites/_internal/SiteUiSchemaCreate.js.map +1 -1
- package/dist/esm/sites/defaults.js +2 -2
- package/dist/esm/sites/defaults.js.map +1 -1
- package/dist/node/content/compose.js +1 -1
- package/dist/node/content/compose.js.map +1 -1
- package/dist/node/core/schemas/internal/getEditorSchemas.js +5 -0
- package/dist/node/core/schemas/internal/getEditorSchemas.js.map +1 -1
- package/dist/node/core/types/Embeds.js +12 -0
- package/dist/node/core/types/Embeds.js.map +1 -0
- package/dist/node/core/types/index.js +1 -0
- package/dist/node/core/types/index.js.map +1 -1
- package/dist/node/groups/_internal/GroupSchema.js +2 -0
- package/dist/node/groups/_internal/GroupSchema.js.map +1 -1
- package/dist/node/groups/_internal/GroupUiSchemaCreateEdit2.js +101 -0
- package/dist/node/groups/_internal/GroupUiSchemaCreateEdit2.js.map +1 -0
- package/dist/node/groups/_internal/GroupUiSchemaCreateView2.js +101 -0
- package/dist/node/groups/_internal/GroupUiSchemaCreateView2.js.map +1 -0
- package/dist/node/groups/defaults.js +2 -2
- package/dist/node/groups/defaults.js.map +1 -1
- package/dist/node/initiatives/_internal/InitiativeSchema.js +1 -0
- package/dist/node/initiatives/_internal/InitiativeSchema.js.map +1 -1
- package/dist/node/initiatives/_internal/InitiativeUiSchemaCreate2.js +38 -0
- package/dist/node/initiatives/_internal/InitiativeUiSchemaCreate2.js.map +1 -0
- package/dist/node/pages/HubPage.js +2 -8
- package/dist/node/pages/HubPage.js.map +1 -1
- package/dist/node/pages/_internal/PageSchema.js +1 -1
- package/dist/node/pages/_internal/PageSchema.js.map +1 -1
- package/dist/node/pages/_internal/PageUiSchemaCreate.js +38 -0
- package/dist/node/pages/_internal/PageUiSchemaCreate.js.map +1 -0
- package/dist/node/pages/defaults.js +5 -2
- package/dist/node/pages/defaults.js.map +1 -1
- package/dist/node/projects/_internal/ProjectSchema.js +1 -0
- package/dist/node/projects/_internal/ProjectSchema.js.map +1 -1
- package/dist/node/projects/_internal/ProjectUiSchemaCreate2.js +38 -0
- package/dist/node/projects/_internal/ProjectUiSchemaCreate2.js.map +1 -0
- package/dist/node/sites/HubSite.js +3 -9
- package/dist/node/sites/HubSite.js.map +1 -1
- package/dist/node/sites/HubSites.js +19 -3
- package/dist/node/sites/HubSites.js.map +1 -1
- package/dist/node/sites/_internal/SiteUiSchemaCreate.js +17 -137
- package/dist/node/sites/_internal/SiteUiSchemaCreate.js.map +1 -1
- package/dist/node/sites/defaults.js +2 -2
- package/dist/node/sites/defaults.js.map +1 -1
- package/dist/types/core/schemas/types.d.ts +2 -2
- package/dist/types/core/traits/IWithViewSettings.d.ts +12 -1
- package/dist/types/core/types/Embeds.d.ts +44 -0
- package/dist/types/core/types/IHubLayout.d.ts +1 -1
- package/dist/types/core/types/index.d.ts +1 -0
- package/dist/types/groups/_internal/GroupSchema.d.ts +1 -1
- package/dist/types/groups/_internal/GroupUiSchemaCreateEdit2.d.ts +21 -0
- package/dist/types/groups/_internal/GroupUiSchemaCreateView2.d.ts +21 -0
- package/dist/types/initiatives/_internal/InitiativeSchema.d.ts +1 -1
- package/dist/types/initiatives/_internal/InitiativeUiSchemaCreate2.d.ts +10 -0
- package/dist/types/pages/_internal/PageSchema.d.ts +1 -1
- package/dist/types/pages/_internal/PageUiSchemaCreate.d.ts +10 -0
- package/dist/types/projects/_internal/ProjectSchema.d.ts +1 -1
- package/dist/types/projects/_internal/ProjectUiSchemaCreate2.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HubSites.js","sourceRoot":"","sources":["../../../src/sites/HubSites.ts"],"names":[],"mappings":";;;AACA,iEAA+E;AAC/E,sDAAkD;AAClD,qDAAkD;AAClD,qEAAkE;AAClE,2CAAkD;AAElD,wDAA6D;AAC7D,mEAAgE;AAChE,oFAGmD;AACnD,mFAAgF;AAChF,2DAAwD;AACxD,+DAA4D;AAE5D,0CAA8E;AAC9E,8CAA2C;AAC3C,mFAA6E;AAC7E,2DAAuD;AACvD,gCAAsC;AACtC,qCAA8C;AAC9C,kCAA8C;AAC9C,sCAKmB;AACnB,6DAA0D;AAE1D,mFAA4E;AAE5E,oCAAiC;AACjC,wCAA8C;AAE9C,+FAA4F;AAC5F,gDAAuD;AACvD,iGAA8F;AAC9F,2GAAwG;AACxG,2FAAwF;AACxF,sHAAmH;AACnH,2DAAwD;AAC3C,QAAA,kBAAkB,GAAG,sBAAsB,CAAC;AAC5C,QAAA,yBAAyB,GAAG,kBAAkB,CAAC;AAE5D;;GAEG;AACH,MAAM,YAAY,GAAsB;IACtC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"HubSites.js","sourceRoot":"","sources":["../../../src/sites/HubSites.ts"],"names":[],"mappings":";;;AACA,iEAA+E;AAC/E,sDAAkD;AAClD,qDAAkD;AAClD,qEAAkE;AAClE,2CAAkD;AAElD,wDAA6D;AAC7D,mEAAgE;AAChE,oFAGmD;AACnD,mFAAgF;AAChF,2DAAwD;AACxD,+DAA4D;AAE5D,0CAA8E;AAC9E,8CAA2C;AAC3C,mFAA6E;AAC7E,2DAAuD;AACvD,gCAAsC;AACtC,qCAA8C;AAC9C,kCAA8C;AAC9C,sCAKmB;AACnB,6DAA0D;AAE1D,mFAA4E;AAE5E,oCAAiC;AACjC,wCAA8C;AAE9C,+FAA4F;AAC5F,gDAAuD;AACvD,iGAA8F;AAC9F,2GAAwG;AACxG,2FAAwF;AACxF,sHAAmH;AACnH,2DAAwD;AAC3C,QAAA,kBAAkB,GAAG,sBAAsB,CAAC;AAC5C,QAAA,yBAAyB,GAAG,kBAAkB,CAAC;AAE5D;;GAEG;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= void 0;
|
|
4
|
-
const checkPermission_1 = require("../../permissions/checkPermission");
|
|
5
|
-
const types_1 = require("../../core/schemas/types");
|
|
6
|
-
const getLocationExtent_1 = require("../../core/schemas/internal/getLocationExtent");
|
|
7
|
-
const getLocationOptions_1 = require("../../core/schemas/internal/getLocationOptions");
|
|
8
|
-
const getSharableGroupsComboBoxItems_1 = require("../../core/schemas/internal/getSharableGroupsComboBoxItems");
|
|
9
4
|
/**
|
|
10
5
|
* @private
|
|
11
6
|
* constructs the minimal create uiSchema for Hub Sites.
|
|
@@ -20,140 +15,25 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
20
15
|
type: "Layout",
|
|
21
16
|
elements: [
|
|
22
17
|
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
labelKey: `${i18nScope}.fields.name.label`,
|
|
19
|
+
scope: "/properties/name",
|
|
20
|
+
type: "Control",
|
|
21
|
+
options: {
|
|
22
|
+
messages: [
|
|
23
|
+
{
|
|
24
|
+
type: "ERROR",
|
|
25
|
+
keyword: "required",
|
|
26
|
+
icon: true,
|
|
27
|
+
labelKey: `${i18nScope}.fields.name.requiredError`,
|
|
31
28
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{
|
|
38
|
-
labelKey: `${i18nScope}.fields.name.label`,
|
|
39
|
-
scope: "/properties/name",
|
|
40
|
-
type: "Control",
|
|
41
|
-
options: {
|
|
42
|
-
messages: [
|
|
43
|
-
{
|
|
44
|
-
type: "ERROR",
|
|
45
|
-
keyword: "required",
|
|
46
|
-
icon: true,
|
|
47
|
-
labelKey: `${i18nScope}.fields.name.requiredError`,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
type: "ERROR",
|
|
51
|
-
keyword: "maxLength",
|
|
52
|
-
icon: true,
|
|
53
|
-
labelKey: `${i18nScope}.fields.name.maxLengthError`,
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
labelKey: `${i18nScope}.fields.summary.label`,
|
|
60
|
-
scope: "/properties/summary",
|
|
61
|
-
type: "Control",
|
|
62
|
-
options: {
|
|
63
|
-
control: "hub-field-input-input",
|
|
64
|
-
type: "textarea",
|
|
65
|
-
rows: 4,
|
|
66
|
-
helperText: {
|
|
67
|
-
labelKey: `${i18nScope}.fields.summary.helperText`,
|
|
68
|
-
},
|
|
69
|
-
messages: [
|
|
70
|
-
{
|
|
71
|
-
type: "ERROR",
|
|
72
|
-
keyword: "maxLength",
|
|
73
|
-
icon: true,
|
|
74
|
-
labelKey: `shared.fields.summary.maxLengthError`,
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
type: "Section",
|
|
85
|
-
labelKey: `${i18nScope}.sections.location.label`,
|
|
86
|
-
options: {
|
|
87
|
-
section: "step",
|
|
29
|
+
{
|
|
30
|
+
type: "ERROR",
|
|
31
|
+
keyword: "maxLength",
|
|
32
|
+
icon: true,
|
|
33
|
+
labelKey: `${i18nScope}.fields.name.maxLengthError`,
|
|
88
34
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
condition: {
|
|
92
|
-
scope: "/properties/name",
|
|
93
|
-
schema: { const: "" },
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
elements: [
|
|
97
|
-
{
|
|
98
|
-
type: "Section",
|
|
99
|
-
labelKey: `${i18nScope}.sections.location.label`,
|
|
100
|
-
options: {
|
|
101
|
-
helperText: {
|
|
102
|
-
labelKey: `${i18nScope}.sections.location.helperText`,
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
elements: [
|
|
106
|
-
{
|
|
107
|
-
scope: "/properties/location",
|
|
108
|
-
type: "Control",
|
|
109
|
-
options: {
|
|
110
|
-
control: "hub-field-input-location-picker",
|
|
111
|
-
extent: await getLocationExtent_1.getLocationExtent(options.location, context.hubRequestOptions),
|
|
112
|
-
options: await getLocationOptions_1.getLocationOptions(options.id, options.type, options.location, context.portal.name, context.hubRequestOptions),
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
type: "Section",
|
|
121
|
-
labelKey: `${i18nScope}.sections.sharing.label`,
|
|
122
|
-
options: {
|
|
123
|
-
section: "step",
|
|
124
|
-
},
|
|
125
|
-
rule: {
|
|
126
|
-
effect: types_1.UiSchemaRuleEffects.DISABLE,
|
|
127
|
-
condition: {
|
|
128
|
-
scope: "/properties/name",
|
|
129
|
-
schema: { const: "" },
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
elements: [
|
|
133
|
-
{
|
|
134
|
-
scope: "/properties/access",
|
|
135
|
-
type: "Control",
|
|
136
|
-
options: {
|
|
137
|
-
control: "arcgis-hub-access-level-controls",
|
|
138
|
-
orgName: context.portal.name,
|
|
139
|
-
itemType: `{{${i18nScope}.fields.access.itemType:translate}}`,
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
labelKey: `${i18nScope}.fields.groups.label`,
|
|
144
|
-
scope: "/properties/_groups",
|
|
145
|
-
type: "Control",
|
|
146
|
-
options: {
|
|
147
|
-
control: "hub-field-input-combobox",
|
|
148
|
-
items: getSharableGroupsComboBoxItems_1.getSharableGroupsComboBoxItems(context.currentUser.groups),
|
|
149
|
-
disabled: !checkPermission_1.checkPermission("platform:portal:user:shareToGroup", context),
|
|
150
|
-
allowCustomValues: false,
|
|
151
|
-
selectionMode: "multiple",
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
],
|
|
155
|
-
},
|
|
156
|
-
],
|
|
35
|
+
],
|
|
36
|
+
},
|
|
157
37
|
},
|
|
158
38
|
],
|
|
159
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SiteUiSchemaCreate.js","sourceRoot":"","sources":["../../../../src/sites/_internal/SiteUiSchemaCreate.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"SiteUiSchemaCreate.js","sourceRoot":"","sources":["../../../../src/sites/_internal/SiteUiSchemaCreate.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;GAQG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA0B,EAC1B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;gBAC1C,KAAK,EAAE,kBAAkB;gBACzB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACP,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,UAAU;4BACnB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;yBACnD;wBACD;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,WAAW;4BACpB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,GAAG,SAAS,6BAA6B;yBACpD;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -7,7 +7,7 @@ exports.HUB_SITE_ITEM_TYPE = "Hub Site Application";
|
|
|
7
7
|
* Default values of a IHubSite
|
|
8
8
|
*/
|
|
9
9
|
exports.DEFAULT_SITE = {
|
|
10
|
-
name: "
|
|
10
|
+
name: "",
|
|
11
11
|
tags: [],
|
|
12
12
|
typeKeywords: ["Hub Site", "hubSite"],
|
|
13
13
|
catalog: { schemaVersion: 0 },
|
|
@@ -21,7 +21,7 @@ exports.DEFAULT_SITE = {
|
|
|
21
21
|
exports.DEFAULT_SITE_MODEL = {
|
|
22
22
|
item: {
|
|
23
23
|
type: exports.HUB_SITE_ITEM_TYPE,
|
|
24
|
-
title: "
|
|
24
|
+
title: "",
|
|
25
25
|
description: "",
|
|
26
26
|
snippet: "",
|
|
27
27
|
tags: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../src/sites/defaults.ts"],"names":[],"mappings":";;;AAEA,qEAAoE;AAEvD,QAAA,kBAAkB,GAAG,sBAAsB,CAAC;AAEzD;;GAEG;AACU,QAAA,YAAY,GAAsB;IAC7C,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../src/sites/defaults.ts"],"names":[],"mappings":";;;AAEA,qEAAoE;AAEvD,QAAA,kBAAkB,GAAG,sBAAsB,CAAC;AAEzD;;GAEG;AACU,QAAA,YAAY,GAAsB;IAC7C,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;IACR,YAAY,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;IACrC,OAAO,EAAE,EAAE,aAAa,EAAE,CAAC,EAAE;IAC7B,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,CAAC;IAChB,QAAQ,EAAE,uCAAmB;CAC9B,CAAC;AAEF;;GAEG;AACU,QAAA,kBAAkB,GAAW;IACxC,IAAI,EAAE;QACJ,IAAI,EAAE,0BAAkB;QACxB,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,EAAE;QACf,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,EAAE;QACR,YAAY,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;QACrC,UAAU,EAAE;YACV,IAAI,EAAE,EAAE;YACR,aAAa,EAAE,CAAC;SACjB;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,EAAE;KACX;CACmB,CAAC"}
|
|
@@ -13,7 +13,7 @@ export interface IEditorConfig {
|
|
|
13
13
|
* to the supported/defined uiSchema configurations
|
|
14
14
|
*/
|
|
15
15
|
export declare type EntityEditorType = (typeof validEntityEditorTypes)[number];
|
|
16
|
-
export declare const validEntityEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:attendees"];
|
|
16
|
+
export declare const validEntityEditorTypes: readonly ["hub:project:create", "hub:project:create2", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:create2", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:page:create", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:group:create:view2", "hub:group:create:edit2", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:attendees"];
|
|
17
17
|
/** Defines the possible editor type values for a stat card. These
|
|
18
18
|
* correspond to the supported/defined uiSchema configurations. This should
|
|
19
19
|
* have its own signature in the getEditorConfig function.
|
|
@@ -37,7 +37,7 @@ export declare const validCardEditorTypes: readonly ["hub:card:stat", "hub:card:
|
|
|
37
37
|
* to defined schema/uiSchema configurations
|
|
38
38
|
*/
|
|
39
39
|
export declare type EditorType = (typeof validEditorTypes)[number];
|
|
40
|
-
export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:attendees", "hub:card:stat", "hub:card:follow"];
|
|
40
|
+
export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:create2", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:create2", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:page:create", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:group:create:view2", "hub:group:create:edit2", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:attendees", "hub:card:stat", "hub:card:follow"];
|
|
41
41
|
/**
|
|
42
42
|
* An editor's module when dynamically imported depending on the EditorType. This
|
|
43
43
|
* will always have a buildUiSchema function, and sometimes it will have a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HubEntityHero } from "../../types";
|
|
2
|
-
import { IHubTimeline, IMetricDisplayConfig, HubActionLink, IHubMapSettings } from "../types";
|
|
2
|
+
import { IHubTimeline, IMetricDisplayConfig, HubActionLink, IHubMapSettings, HubEmbed } from "../types";
|
|
3
3
|
/**
|
|
4
4
|
* Properties to be exclusively displayed on an entity's
|
|
5
5
|
* pre-defined view
|
|
@@ -49,4 +49,15 @@ export interface IWithViewSettings {
|
|
|
49
49
|
* array of actions for action links
|
|
50
50
|
*/
|
|
51
51
|
heroActions?: HubActionLink[];
|
|
52
|
+
/**
|
|
53
|
+
* array of embedded content
|
|
54
|
+
*
|
|
55
|
+
* Note: for now, we are only allowing a single
|
|
56
|
+
* embed to be configured, but we've made this
|
|
57
|
+
* an array for future extensibility. If/when
|
|
58
|
+
* we do support configuring multiple embeds,
|
|
59
|
+
* we should revisit if/how this will map to a
|
|
60
|
+
* future layout system
|
|
61
|
+
*/
|
|
62
|
+
embeds?: HubEmbed[];
|
|
52
63
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type to represent a Hub embed. This is a discrminated
|
|
3
|
+
* union between app, map, survey, external, etc. embeds.
|
|
4
|
+
*/
|
|
5
|
+
export declare type HubEmbed = IHubEmbedApp | IHubEmbedMap | IHubEmbedSurvey | IHubEmbedExternal;
|
|
6
|
+
/** enum to discriminate between embed union members */
|
|
7
|
+
export declare enum EmbedKind {
|
|
8
|
+
app = "app",
|
|
9
|
+
map = "map",
|
|
10
|
+
feedback = "feedback",
|
|
11
|
+
external = "external"
|
|
12
|
+
}
|
|
13
|
+
/** base embed */
|
|
14
|
+
interface IHubEmbedBase {
|
|
15
|
+
/** unique identifier */
|
|
16
|
+
key: string;
|
|
17
|
+
/** embed height */
|
|
18
|
+
height?: number;
|
|
19
|
+
}
|
|
20
|
+
/** app-specific embed */
|
|
21
|
+
export interface IHubEmbedApp extends IHubEmbedBase {
|
|
22
|
+
kind: EmbedKind.app;
|
|
23
|
+
/** application id */
|
|
24
|
+
id: string;
|
|
25
|
+
}
|
|
26
|
+
/** map-specific embed */
|
|
27
|
+
export interface IHubEmbedMap extends IHubEmbedBase {
|
|
28
|
+
kind: EmbedKind.map;
|
|
29
|
+
/** web map/scene id */
|
|
30
|
+
id: string;
|
|
31
|
+
}
|
|
32
|
+
/** external embed */
|
|
33
|
+
export interface IHubEmbedExternal extends IHubEmbedBase {
|
|
34
|
+
kind: EmbedKind.external;
|
|
35
|
+
/** embed url */
|
|
36
|
+
url: string;
|
|
37
|
+
}
|
|
38
|
+
/** survey-specific embed */
|
|
39
|
+
export interface IHubEmbedSurvey extends IHubEmbedBase {
|
|
40
|
+
kind: EmbedKind.feedback;
|
|
41
|
+
/** survey123 id */
|
|
42
|
+
id: string;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IConfigurationSchema } from "../../core";
|
|
2
2
|
export declare type GroupEditorType = (typeof GroupEditorTypes)[number];
|
|
3
|
-
export declare const GroupEditorTypes: readonly ["hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit"];
|
|
3
|
+
export declare const GroupEditorTypes: readonly ["hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:group:create:view2", "hub:group:create:edit2"];
|
|
4
4
|
/**
|
|
5
5
|
* Defines the JSON schema for a Hub Group's editable fields
|
|
6
6
|
*/
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IConfigurationValues, IUiSchema } from "../../core/schemas/types";
|
|
2
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
3
|
+
import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* constructs the complete uiSchema for creating a edit
|
|
7
|
+
* group. This defines how the schema properties should be
|
|
8
|
+
* rendered in the edit group creation experience
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildUiSchema: (i18nScope: string, options: EntityEditorOptions, context: IArcGISContext) => Promise<IUiSchema>;
|
|
11
|
+
/**
|
|
12
|
+
* @private
|
|
13
|
+
* constructs the default values for creating an edit group.
|
|
14
|
+
* This is used to pre-populate the form with specific default values
|
|
15
|
+
* that are different from the normal Group Schema defaults.
|
|
16
|
+
* @param i18nScope
|
|
17
|
+
* @param options
|
|
18
|
+
* @param context
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
export declare const buildDefaults: (i18nScope: string, options: EntityEditorOptions, context: IArcGISContext) => Promise<IConfigurationValues>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IConfigurationValues, IUiSchema } from "../../core/schemas/types";
|
|
2
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
3
|
+
import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* constructs the complete uiSchema for creating a view
|
|
7
|
+
* group. This defines how the schema properties should be
|
|
8
|
+
* rendered in the view group creation experience
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildUiSchema: (i18nScope: string, options: EntityEditorOptions, context: IArcGISContext) => Promise<IUiSchema>;
|
|
11
|
+
/**
|
|
12
|
+
* @private
|
|
13
|
+
* constructs the default values for creating a view group.
|
|
14
|
+
* This is used to pre-populate the form with specific default values
|
|
15
|
+
* that are different from the normal Group Schema defaults.
|
|
16
|
+
* @param i18nScope
|
|
17
|
+
* @param options
|
|
18
|
+
* @param context
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
export declare const buildDefaults: (i18nScope: string, options: EntityEditorOptions, context: IArcGISContext) => Promise<IConfigurationValues>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IConfigurationSchema } from "../../core";
|
|
2
2
|
export declare type InitiativeEditorType = (typeof InitiativeEditorTypes)[number];
|
|
3
|
-
export declare const InitiativeEditorTypes: readonly ["hub:initiative:edit", "hub:initiative:create", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings"];
|
|
3
|
+
export declare const InitiativeEditorTypes: readonly ["hub:initiative:edit", "hub:initiative:create", "hub:initiative:create2", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings"];
|
|
4
4
|
/**
|
|
5
5
|
* defines the JSON schema for a Hub Initiative's editable fields
|
|
6
6
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
2
|
+
import { IUiSchema } from "../../core/schemas/types";
|
|
3
|
+
import { IHubInitiative } from "../../core/types";
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* constructs the minimal create uiSchema for Hub Initiatives.
|
|
7
|
+
* This defines how the schema properties should be rendered
|
|
8
|
+
* in the initiative creation experience
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildUiSchema: (i18nScope: string, options: Partial<IHubInitiative>, context: IArcGISContext) => Promise<IUiSchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IConfigurationSchema } from "../../core";
|
|
2
|
-
export declare const PageEditorTypes: readonly ["hub:page:edit"];
|
|
2
|
+
export declare const PageEditorTypes: readonly ["hub:page:edit", "hub:page:create"];
|
|
3
3
|
export declare type PageEditorType = (typeof PageEditorTypes)[number];
|
|
4
4
|
/**
|
|
5
5
|
* defines the JSON schema for a Hub Site's editable fields
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IUiSchema } from "../../core/schemas/types";
|
|
2
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
3
|
+
import { IHubPage } from "../../core/types";
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* constructs the complete edit uiSchema for Hub Pages.
|
|
7
|
+
* This defines how the schema properties should be
|
|
8
|
+
* rendered in the page editing experience
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildUiSchema: (i18nScope: string, options: Partial<IHubPage>, context: IArcGISContext) => Promise<IUiSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IConfigurationSchema } from "../../core/schemas/types";
|
|
2
2
|
export declare type ProjectEditorType = (typeof ProjectEditorTypes)[number];
|
|
3
|
-
export declare const ProjectEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:project:settings"];
|
|
3
|
+
export declare const ProjectEditorTypes: readonly ["hub:project:create", "hub:project:create2", "hub:project:edit", "hub:project:metrics", "hub:project:settings"];
|
|
4
4
|
/**
|
|
5
5
|
* Defines the JSON schema for a Hub Project's editable fields
|
|
6
6
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
2
|
+
import { IUiSchema } from "../../core/schemas/types";
|
|
3
|
+
import { IHubProject } from "../../core/types";
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* constructs the minimal create uiSchema for Hub Projects.
|
|
7
|
+
* This defines how the schema properties should be rendered
|
|
8
|
+
* in the project creation experience
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildUiSchema: (i18nScope: string, options: Partial<IHubProject>, context: IArcGISContext) => Promise<IUiSchema>;
|