@esri/hub-common 14.95.1 → 14.96.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/esm/associations/index.js +1 -0
- package/dist/esm/associations/index.js.map +1 -1
- package/dist/esm/associations/setEntityAssociationGroup.js +37 -0
- package/dist/esm/associations/setEntityAssociationGroup.js.map +1 -0
- package/dist/esm/core/schemas/internal/getCardEditorSchemas.js +7 -0
- package/dist/esm/core/schemas/internal/getCardEditorSchemas.js.map +1 -1
- package/dist/esm/core/schemas/internal/getEditorSchemas.js +56 -1
- package/dist/esm/core/schemas/internal/getEditorSchemas.js.map +1 -1
- package/dist/esm/core/schemas/internal/metrics/ProjectUiSchemaMetrics.js +1 -1
- package/dist/esm/core/schemas/internal/metrics/ProjectUiSchemaMetrics.js.map +1 -1
- package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js +1 -1
- package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
- package/dist/esm/core/schemas/types.js.map +1 -1
- package/dist/esm/groups/HubGroups.js +9 -1
- package/dist/esm/groups/HubGroups.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/GroupUiSchemaCreateAssociation.js +130 -0
- package/dist/esm/groups/_internal/GroupUiSchemaCreateAssociation.js.map +1 -0
- package/dist/esm/groups/_internal/GroupUiSchemaCreateEdit.js +15 -1
- package/dist/esm/groups/_internal/GroupUiSchemaCreateEdit.js.map +1 -1
- package/dist/esm/groups/_internal/GroupUiSchemaCreateFollowers.js +16 -1
- package/dist/esm/groups/_internal/GroupUiSchemaCreateFollowers.js.map +1 -1
- package/dist/esm/groups/_internal/GroupUiSchemaCreateView.js +15 -1
- package/dist/esm/groups/_internal/GroupUiSchemaCreateView.js.map +1 -1
- package/dist/esm/groups/getWellKnownGroup.js +10 -0
- package/dist/esm/groups/getWellKnownGroup.js.map +1 -1
- package/dist/esm/initiatives/_internal/InitiativeBusinessRules.js +6 -0
- package/dist/esm/initiatives/_internal/InitiativeBusinessRules.js.map +1 -1
- package/dist/node/associations/index.js +1 -0
- package/dist/node/associations/index.js.map +1 -1
- package/dist/node/associations/setEntityAssociationGroup.js +41 -0
- package/dist/node/associations/setEntityAssociationGroup.js.map +1 -0
- package/dist/node/core/schemas/internal/getCardEditorSchemas.js +7 -0
- package/dist/node/core/schemas/internal/getCardEditorSchemas.js.map +1 -1
- package/dist/node/core/schemas/internal/getEditorSchemas.js +56 -1
- package/dist/node/core/schemas/internal/getEditorSchemas.js.map +1 -1
- package/dist/node/core/schemas/internal/metrics/ProjectUiSchemaMetrics.js +1 -1
- package/dist/node/core/schemas/internal/metrics/ProjectUiSchemaMetrics.js.map +1 -1
- package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js +1 -1
- package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
- package/dist/node/core/schemas/types.js.map +1 -1
- package/dist/node/groups/HubGroups.js +8 -0
- package/dist/node/groups/HubGroups.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/GroupUiSchemaCreateAssociation.js +133 -0
- package/dist/node/groups/_internal/GroupUiSchemaCreateAssociation.js.map +1 -0
- package/dist/node/groups/_internal/GroupUiSchemaCreateEdit.js +15 -1
- package/dist/node/groups/_internal/GroupUiSchemaCreateEdit.js.map +1 -1
- package/dist/node/groups/_internal/GroupUiSchemaCreateFollowers.js +16 -1
- package/dist/node/groups/_internal/GroupUiSchemaCreateFollowers.js.map +1 -1
- package/dist/node/groups/_internal/GroupUiSchemaCreateView.js +15 -1
- package/dist/node/groups/_internal/GroupUiSchemaCreateView.js.map +1 -1
- package/dist/node/groups/getWellKnownGroup.js +10 -0
- package/dist/node/groups/getWellKnownGroup.js.map +1 -1
- package/dist/node/initiatives/_internal/InitiativeBusinessRules.js +6 -0
- package/dist/node/initiatives/_internal/InitiativeBusinessRules.js.map +1 -1
- package/dist/types/associations/index.d.ts +1 -0
- package/dist/types/associations/setEntityAssociationGroup.d.ts +13 -0
- package/dist/types/core/schemas/internal/metrics/ProjectUiSchemaMetrics.d.ts +1 -1
- package/dist/types/core/schemas/internal/metrics/StatCardUiSchema.d.ts +1 -1
- package/dist/types/core/schemas/types.d.ts +29 -2
- package/dist/types/groups/_internal/GroupSchema.d.ts +1 -1
- package/dist/types/groups/_internal/GroupUiSchemaCreateAssociation.d.ts +21 -0
- package/dist/types/groups/_internal/GroupUiSchemaCreateEdit.d.ts +12 -1
- package/dist/types/groups/_internal/GroupUiSchemaCreateFollowers.d.ts +12 -1
- package/dist/types/groups/_internal/GroupUiSchemaCreateView.d.ts +12 -1
- package/dist/types/groups/getWellKnownGroup.d.ts +1 -1
- package/dist/types/initiatives/_internal/InitiativeBusinessRules.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildDefaults = exports.buildUiSchema = void 0;
|
|
4
|
+
const types_1 = require("../../core/schemas/types");
|
|
5
|
+
const getWellKnownGroup_1 = require("../getWellKnownGroup");
|
|
6
|
+
const checkPermission_1 = require("../../permissions/checkPermission");
|
|
7
|
+
/**
|
|
8
|
+
* @private
|
|
9
|
+
* constructs the complete uiSchema for creating an association
|
|
10
|
+
* group. This defines how the schema properties should be
|
|
11
|
+
* rendered in the association group creation experience
|
|
12
|
+
*/
|
|
13
|
+
exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
14
|
+
return {
|
|
15
|
+
type: "Layout",
|
|
16
|
+
elements: [
|
|
17
|
+
{
|
|
18
|
+
type: "Section",
|
|
19
|
+
options: { section: "stepper", scale: "l" },
|
|
20
|
+
elements: [
|
|
21
|
+
{
|
|
22
|
+
type: "Section",
|
|
23
|
+
labelKey: `${i18nScope}.sections.details.label`,
|
|
24
|
+
options: {
|
|
25
|
+
section: "step",
|
|
26
|
+
},
|
|
27
|
+
elements: [
|
|
28
|
+
{
|
|
29
|
+
labelKey: `${i18nScope}.fields.name.label`,
|
|
30
|
+
scope: "/properties/name",
|
|
31
|
+
type: "Control",
|
|
32
|
+
options: {
|
|
33
|
+
messages: [
|
|
34
|
+
{
|
|
35
|
+
type: "ERROR",
|
|
36
|
+
keyword: "required",
|
|
37
|
+
icon: true,
|
|
38
|
+
labelKey: `${i18nScope}.fields.name.requiredError`,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: "ERROR",
|
|
42
|
+
keyword: "maxLength",
|
|
43
|
+
icon: true,
|
|
44
|
+
labelKey: `${i18nScope}.fields.name.maxLengthError`,
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
labelKey: `${i18nScope}.fields.summary.label`,
|
|
51
|
+
scope: "/properties/summary",
|
|
52
|
+
type: "Control",
|
|
53
|
+
options: {
|
|
54
|
+
control: "hub-field-input-input",
|
|
55
|
+
type: "textarea",
|
|
56
|
+
rows: 4,
|
|
57
|
+
messages: [
|
|
58
|
+
{
|
|
59
|
+
type: "ERROR",
|
|
60
|
+
keyword: "maxLength",
|
|
61
|
+
icon: true,
|
|
62
|
+
labelKey: `${i18nScope}.fields.summary.maxLengthError`,
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
type: "Section",
|
|
71
|
+
labelKey: `${i18nScope}.sections.membershipAccess.label`,
|
|
72
|
+
options: {
|
|
73
|
+
section: "step",
|
|
74
|
+
},
|
|
75
|
+
rule: {
|
|
76
|
+
effect: types_1.UiSchemaRuleEffects.DISABLE,
|
|
77
|
+
condition: {
|
|
78
|
+
scope: "/properties/name",
|
|
79
|
+
schema: { const: "" },
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
elements: [
|
|
83
|
+
{
|
|
84
|
+
labelKey: `${i18nScope}.fields.membershipAccess.label`,
|
|
85
|
+
scope: "/properties/membershipAccess",
|
|
86
|
+
type: "Control",
|
|
87
|
+
options: {
|
|
88
|
+
control: "hub-field-input-radio",
|
|
89
|
+
labels: [
|
|
90
|
+
`{{${i18nScope}.fields.membershipAccess.org:translate}}`,
|
|
91
|
+
`{{${i18nScope}.fields.membershipAccess.collab:translate}}`,
|
|
92
|
+
`{{${i18nScope}.fields.membershipAccess.createAssociation.any:translate}}`,
|
|
93
|
+
],
|
|
94
|
+
disabled: [
|
|
95
|
+
false,
|
|
96
|
+
!checkPermission_1.checkPermission("platform:portal:user:addExternalMembersToGroup", context).access,
|
|
97
|
+
!checkPermission_1.checkPermission("platform:portal:user:addExternalMembersToGroup", context).access,
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
labelKey: `${i18nScope}.fields.contributeContent.label`,
|
|
103
|
+
scope: "/properties/isViewOnly",
|
|
104
|
+
type: "Control",
|
|
105
|
+
options: {
|
|
106
|
+
control: "hub-field-input-radio",
|
|
107
|
+
labels: [
|
|
108
|
+
`{{${i18nScope}.fields.contributeContent.all:translate}}`,
|
|
109
|
+
`{{${i18nScope}.fields.contributeContent.createAssociation.admins:translate}}`,
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* @private
|
|
122
|
+
* constructs the default values for creating an associations group.
|
|
123
|
+
* This is used to pre-populate the form with specific default values
|
|
124
|
+
* that are different from the normal Group Schema defaults.
|
|
125
|
+
* @param i18nScope
|
|
126
|
+
* @param options
|
|
127
|
+
* @param context
|
|
128
|
+
* @returns
|
|
129
|
+
*/
|
|
130
|
+
exports.buildDefaults = async (i18nScope, options, context) => {
|
|
131
|
+
return Object.assign({}, getWellKnownGroup_1.getWellKnownGroup("hubAssociationsGroup", context));
|
|
132
|
+
};
|
|
133
|
+
//# sourceMappingURL=GroupUiSchemaCreateAssociation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupUiSchemaCreateAssociation.js","sourceRoot":"","sources":["../../../../src/groups/_internal/GroupUiSchemaCreateAssociation.ts"],"names":[],"mappings":";;;AAAA,oDAIkC;AAGlC,4DAAyD;AACzD,uEAAoE;AAEpE;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA4B,EAC5B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE;gBAC3C,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,SAAS;wBACf,QAAQ,EAAE,GAAG,SAAS,yBAAyB;wBAC/C,OAAO,EAAE;4BACP,OAAO,EAAE,MAAM;yBAChB;wBACD,QAAQ,EAAE;4BACR;gCACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;gCAC1C,KAAK,EAAE,kBAAkB;gCACzB,IAAI,EAAE,SAAS;gCACf,OAAO,EAAE;oCACP,QAAQ,EAAE;wCACR;4CACE,IAAI,EAAE,OAAO;4CACb,OAAO,EAAE,UAAU;4CACnB,IAAI,EAAE,IAAI;4CACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;yCACnD;wCACD;4CACE,IAAI,EAAE,OAAO;4CACb,OAAO,EAAE,WAAW;4CACpB,IAAI,EAAE,IAAI;4CACV,QAAQ,EAAE,GAAG,SAAS,6BAA6B;yCACpD;qCACF;iCACF;6BACF;4BACD;gCACE,QAAQ,EAAE,GAAG,SAAS,uBAAuB;gCAC7C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2CAA2C;wCACzD,KAAK,SAAS,gEAAgE;qCAC/E;iCACF;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;;;;;GASG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA4B,EAC5B,OAAuB,EACQ,EAAE;IACjC,yBACK,qCAAiB,CAAC,sBAAsB,EAAE,OAAO,CAAC,EACrD;AACJ,CAAC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildUiSchema = void 0;
|
|
3
|
+
exports.buildDefaults = exports.buildUiSchema = void 0;
|
|
4
4
|
const types_1 = require("../../core/schemas/types");
|
|
5
5
|
const permissions_1 = require("../../permissions");
|
|
6
|
+
const getWellKnownGroup_1 = require("../getWellKnownGroup");
|
|
6
7
|
/**
|
|
7
8
|
* @private
|
|
8
9
|
* constructs the complete uiSchema for creating a edit
|
|
@@ -116,4 +117,17 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
116
117
|
],
|
|
117
118
|
};
|
|
118
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* @private
|
|
122
|
+
* constructs the default values for creating an edit group.
|
|
123
|
+
* This is used to pre-populate the form with specific default values
|
|
124
|
+
* that are different from the normal Group Schema defaults.
|
|
125
|
+
* @param i18nScope
|
|
126
|
+
* @param options
|
|
127
|
+
* @param context
|
|
128
|
+
* @returns
|
|
129
|
+
*/
|
|
130
|
+
exports.buildDefaults = async (i18nScope, options, context) => {
|
|
131
|
+
return Object.assign({}, getWellKnownGroup_1.getWellKnownGroup("hubEditGroup", context));
|
|
132
|
+
};
|
|
119
133
|
//# sourceMappingURL=GroupUiSchemaCreateEdit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupUiSchemaCreateEdit.js","sourceRoot":"","sources":["../../../../src/groups/_internal/GroupUiSchemaCreateEdit.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"GroupUiSchemaCreateEdit.js","sourceRoot":"","sources":["../../../../src/groups/_internal/GroupUiSchemaCreateEdit.ts"],"names":[],"mappings":";;;AAAA,oDAIkC;AAGlC,mDAAoD;AACpD,4DAAyD;AAEzD;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA4B,EAC5B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE;gBAC3C,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,SAAS;wBACf,QAAQ,EAAE,GAAG,SAAS,yBAAyB;wBAC/C,OAAO,EAAE;4BACP,OAAO,EAAE,MAAM;yBAChB;wBACD,QAAQ,EAAE;4BACR;gCACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;gCAC1C,KAAK,EAAE,kBAAkB;gCACzB,IAAI,EAAE,SAAS;gCACf,OAAO,EAAE;oCACP,QAAQ,EAAE;wCACR;4CACE,IAAI,EAAE,OAAO;4CACb,OAAO,EAAE,UAAU;4CACnB,IAAI,EAAE,IAAI;4CACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;yCACnD;wCACD;4CACE,IAAI,EAAE,OAAO;4CACb,OAAO,EAAE,WAAW;4CACpB,IAAI,EAAE,IAAI;4CACV,QAAQ,EAAE,GAAG,SAAS,6BAA6B;yCACpD;qCACF;iCACF;6BACF;4BACD;gCACE,QAAQ,EAAE,GAAG,SAAS,uBAAuB;gCAC7C,KAAK,EAAE,qBAAqB;gCAC5B,IAAI,EAAE,SAAS;gCACf,OAAO,EAAE;oCACP,OAAO,EAAE,uBAAuB;oCAChC,IAAI,EAAE,UAAU;oCAChB,IAAI,EAAE,CAAC;oCACP,Q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B,EACQ,EAAE;IACjC,yBACK,qCAAiB,CAAC,cAAc,EAAE,OAAO,CAAC,EAC7C;AACJ,CAAC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildUiSchema = void 0;
|
|
3
|
+
exports.buildDefaults = exports.buildUiSchema = void 0;
|
|
4
4
|
const types_1 = require("../../core/schemas/types");
|
|
5
|
+
const getWellKnownGroup_1 = require("../getWellKnownGroup");
|
|
5
6
|
/**
|
|
6
7
|
* @private
|
|
7
8
|
* constructs the complete uiSchema for creating a followers
|
|
@@ -111,4 +112,18 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
111
112
|
],
|
|
112
113
|
};
|
|
113
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* @private
|
|
117
|
+
* constructs the default values for creating a followers group.
|
|
118
|
+
* This is used to pre-populate the form with specific default values
|
|
119
|
+
* that are different from the normal Group Schema defaults.
|
|
120
|
+
* @param i18nScope
|
|
121
|
+
* @param options
|
|
122
|
+
* @param context
|
|
123
|
+
* @returns
|
|
124
|
+
*/
|
|
125
|
+
exports.buildDefaults = async (i18nScope, options, context) => {
|
|
126
|
+
const { name } = options;
|
|
127
|
+
return Object.assign({}, getWellKnownGroup_1.getWellKnownGroup("hubFollowersGroup", context));
|
|
128
|
+
};
|
|
114
129
|
//# sourceMappingURL=GroupUiSchemaCreateFollowers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupUiSchemaCreateFollowers.js","sourceRoot":"","sources":["../../../../src/groups/_internal/GroupUiSchemaCreateFollowers.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"GroupUiSchemaCreateFollowers.js","sourceRoot":"","sources":["../../../../src/groups/_internal/GroupUiSchemaCreateFollowers.ts"],"names":[],"mappings":";;;AAAA,oDAIkC;AAGlC,4DAAyD;AAEzD;;;;;GA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AAG,SAAS,kCAAkC;wBACxD,OAAO,EAAE;4BACP,OAAO,EAAE,MAAM;yBAChB;wBACD,IAAI,EAAE;4BACJ,MAAM,EAAE,2BAAmB,CAAC,OAAO;4BACnC,SAAS,EAAE;gCACT,KAAK,EAAE,kBAAkB;gCACzB,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;6BACtB;yBACF;wBACD,QAAQ,EAAE;4BACR;gCACE,QAAQ,EAAE,GAAG,SAAS,gCAAgC;gCACtD,KAAK,EAAE,8BAA8B;gCACrC,IAAI,EAAE,SAAS;gCACf,OAAO,EAAE;oCACP,OAAO,EAAE,uBAAuB;oCAChC,MAAM,EAAE;wCACN,KAAK,SAAS,0CAA0C;wCACxD,KAAK,SAAS,6CAA6C;wCAC3D,KAAK,SAAS,0DAA0D;qCACzE;oCACD,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,cAAc,CAAC;iCACjD;6BACF;4BACD;gCACE,QAAQ,EAAE,GAAG,SAAS,iCAAiC;gCACvD,KAAK,EAAE,wBAAwB;gCAC/B,IAAI,EAAE,SAAS;gCACf,OAAO,EAAE;oCACP,OAAO,EAAE,uBAAuB;oCAChC,MAAM,EAAE;wCACN,KAAK,SAAS,2CAA2C;wCACzD,KAAK,SAAS,8DAA8D;qCAC7E;iCACF;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;;;;;GASG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA4B,EAC5B,OAAuB,EACQ,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACzB,yBACK,qCAAiB,CAAC,mBAAmB,EAAE,OAAO,CAAC,EAClD;AACJ,CAAC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildUiSchema = void 0;
|
|
3
|
+
exports.buildDefaults = exports.buildUiSchema = void 0;
|
|
4
4
|
const types_1 = require("../../core/schemas/types");
|
|
5
5
|
const permissions_1 = require("../../permissions");
|
|
6
|
+
const getWellKnownGroup_1 = require("../getWellKnownGroup");
|
|
6
7
|
/**
|
|
7
8
|
* @private
|
|
8
9
|
* constructs the complete uiSchema for creating a view
|
|
@@ -116,4 +117,17 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
116
117
|
],
|
|
117
118
|
};
|
|
118
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* @private
|
|
122
|
+
* constructs the default values for creating a view group.
|
|
123
|
+
* This is used to pre-populate the form with specific default values
|
|
124
|
+
* that are different from the normal Group Schema defaults.
|
|
125
|
+
* @param i18nScope
|
|
126
|
+
* @param options
|
|
127
|
+
* @param context
|
|
128
|
+
* @returns
|
|
129
|
+
*/
|
|
130
|
+
exports.buildDefaults = async (i18nScope, options, context) => {
|
|
131
|
+
return Object.assign({}, getWellKnownGroup_1.getWellKnownGroup("hubViewGroup", context));
|
|
132
|
+
};
|
|
119
133
|
//# sourceMappingURL=GroupUiSchemaCreateView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupUiSchemaCreateView.js","sourceRoot":"","sources":["../../../../src/groups/_internal/GroupUiSchemaCreateView.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"GroupUiSchemaCreateView.js","sourceRoot":"","sources":["../../../../src/groups/_internal/GroupUiSchemaCreateView.ts"],"names":[],"mappings":";;;AAAA,oDAIkC;AAGlC,mDAAoD;AACpD,4DAAyD;AAEzD;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA4B,EAC5B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,EAAE,OAAO,EAAE,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,EAAE,EAAE,EAAE;6BACtB;yBACF;wBACD,QAAQ,EAAE;4BACR;gCACE,QAAQ,EAAE,GAAG,SAAS,gCAAgC;gCACtD,KAAK,EAAE,8BAA8B;gCACrC,IAAI,EAAE,SAAS;gCACf,OAAO,EAAE;oCACP,OAAO,EAAE,uBAAuB;oCAChC,MAAM,EAAE;wCACN,KAAK,SAAS,0CAA0C;wCACxD,KAAK,SAAS,6CAA6C;wCAC3D,KAAK,SAAS,0CAA0C;qCACzD;oCACD,QAAQ,EAAE;wCACR,KAAK;wCACL,CAAC,6BAAe,CACd,gDAAgD,EAChD,OAAO,CACR,CAAC,MAAM;wCACR,CAAC,6BAAe,CACd,gDAAgD,EAChD,OAAO,CACR,CAAC,MAAM;qCACT;iCACF;6BACF;4BACD;gCACE,QAAQ,EAAE,GAAG,SAAS,iCAAiC;gCACvD,KAAK,EAAE,wBAAwB;gCAC/B,IAAI,EAAE,SAAS;gCACf,OAAO,EAAE;oCACP,OAAO,EAAE,uBAAuB;oCAChC,MAAM,EAAE;wCACN,KAAK,SAAS,2CAA2C;wCACzD,KAAK,SAAS,8CAA8C;qCAC7D;iCACF;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;;;;;GASG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA4B,EAC5B,OAAuB,EACQ,EAAE;IACjC,yBACK,qCAAiB,CAAC,cAAc,EAAE,OAAO,CAAC,EAC7C;AACJ,CAAC,CAAC"}
|
|
@@ -39,6 +39,16 @@ function getWellKnownGroup(groupType, context) {
|
|
|
39
39
|
isInvitationOnly: false,
|
|
40
40
|
isViewOnly: true,
|
|
41
41
|
},
|
|
42
|
+
hubAssociationsGroup: {
|
|
43
|
+
access: "public",
|
|
44
|
+
autoJoin: false,
|
|
45
|
+
isInvitationOnly: false,
|
|
46
|
+
isViewOnly: true,
|
|
47
|
+
membershipAccess: permissions_1.checkPermission("platform:portal:user:addExternalMembersToGroup", context).access
|
|
48
|
+
? "anyone"
|
|
49
|
+
: "organization",
|
|
50
|
+
protected: true,
|
|
51
|
+
},
|
|
42
52
|
};
|
|
43
53
|
return configs[groupType];
|
|
44
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWellKnownGroup.js","sourceRoot":"","sources":["../../../src/groups/getWellKnownGroup.ts"],"names":[],"mappings":";;;AACA,gDAAiD;
|
|
1
|
+
{"version":3,"file":"getWellKnownGroup.js","sourceRoot":"","sources":["../../../src/groups/getWellKnownGroup.ts"],"names":[],"mappings":";;;AACA,gDAAiD;AAQjD;;;;;GAKG;AACH,SAAgB,iBAAiB,CAC/B,SAAyB,EACzB,OAAuB;IAEvB,MAAM,OAAO,GAA+C;QAC1D,YAAY,EAAE;YACZ,MAAM,EAAE,KAAK;YACb,QAAQ,EAAE,KAAK;YACf,gBAAgB,EAAE,KAAK;YACvB,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,KAAK;YACjB,IAAI,EAAE,CAAC,WAAW,CAAC;YACnB,gBAAgB,EAAE,6BAAe,CAC/B,gDAAgD,EAChD,OAAO,CACR,CAAC,MAAM;gBACN,CAAC,CAAC,QAAQ;gBACV,CAAC,CAAC,cAAc;SACnB;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,KAAK;YACb,QAAQ,EAAE,KAAK;YACf,cAAc,EAAE,IAAI;YACpB,gBAAgB,EAAE,KAAK;YACvB,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,KAAK;YACjB,IAAI,EAAE,CAAC,WAAW,CAAC;YACnB,gBAAgB,EAAE,6BAAe,CAC/B,gDAAgD,EAChD,OAAO,CACR,CAAC,MAAM;gBACN,CAAC,CAAC,eAAe;gBACjB,CAAC,CAAC,cAAc;SACnB;QACD,iBAAiB,EAAE;YACjB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,IAAI;YACd,gBAAgB,EAAE,KAAK;YACvB,UAAU,EAAE,IAAI;SACjB;QACD,oBAAoB,EAAE;YACpB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,KAAK;YACf,gBAAgB,EAAE,KAAK;YACvB,UAAU,EAAE,IAAI;YAChB,gBAAgB,EAAE,6BAAe,CAC/B,gDAAgD,EAChD,OAAO,CACR,CAAC,MAAM;gBACN,CAAC,CAAC,QAAQ;gBACV,CAAC,CAAC,cAAc;YAClB,SAAS,EAAE,IAAI;SAChB;KACF,CAAC;IAEF,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC;AAC5B,CAAC;AAxDD,8CAwDC"}
|
|
@@ -34,6 +34,7 @@ exports.InitiativePermissions = [
|
|
|
34
34
|
"hub:initiative:workspace:collaborators",
|
|
35
35
|
"hub:initiative:workspace:content",
|
|
36
36
|
"hub:initiative:workspace:metrics",
|
|
37
|
+
"hub:initiative:workspace:associationGroup:create",
|
|
37
38
|
"hub:initiative:manage",
|
|
38
39
|
];
|
|
39
40
|
/**
|
|
@@ -146,5 +147,10 @@ exports.InitiativePermissionPolicies = [
|
|
|
146
147
|
permission: "hub:initiative:manage",
|
|
147
148
|
dependencies: ["hub:initiative:edit"],
|
|
148
149
|
},
|
|
150
|
+
// permission to create an association group
|
|
151
|
+
{
|
|
152
|
+
permission: "hub:initiative:workspace:associationGroup:create",
|
|
153
|
+
dependencies: ["hub:initiative:workspace:projects", "hub:group:create"],
|
|
154
|
+
},
|
|
149
155
|
];
|
|
150
156
|
//# sourceMappingURL=InitiativeBusinessRules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitiativeBusinessRules.js","sourceRoot":"","sources":["../../../../src/initiatives/_internal/InitiativeBusinessRules.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACU,QAAA,yBAAyB,GAAkB;IACtD,uBAAuB,EAAE,KAAK;IAC9B,wBAAwB,EAAE,IAAI;IAC9B,4BAA4B,EAAE,KAAK;CACpC,CAAC;AAEF;;;;GAIG;AACU,QAAA,qBAAqB,GAAG;IACnC,gB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QACE,UAAU,EAAE,uBAAuB;QACnC,YAAY,EAAE,CAAC,qBAAqB,CAAC;KACtC;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"InitiativeBusinessRules.js","sourceRoot":"","sources":["../../../../src/initiatives/_internal/InitiativeBusinessRules.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACU,QAAA,yBAAyB,GAAkB;IACtD,uBAAuB,EAAE,KAAK;IAC9B,wBAAwB,EAAE,IAAI;IAC9B,4BAA4B,EAAE,KAAK;CACpC,CAAC;AAEF;;;;GAIG;AACU,QAAA,qBAAqB,GAAG;IACnC,gBAAgB;IAChB,uBAAuB;IACvB,uBAAuB;IACvB,qBAAqB;IACrB,qBAAqB;IACrB,uBAAuB;IACvB,wBAAwB;IACxB,4BAA4B;IAC5B,0BAA0B;IAC1B,mCAAmC;IACnC,oCAAoC;IACpC,kCAAkC;IAClC,mCAAmC;IACnC,0CAA0C;IAC1C,2CAA2C;IAC3C,mCAAmC;IACnC,wCAAwC;IACxC,kCAAkC;IAClC,kCAAkC;IAClC,kDAAkD;IAClD,uBAAuB;CACf,CAAC;AAEX;;;GAGG;AACU,QAAA,4BAA4B,GAAwB;IAC/D;QACE,UAAU,EAAE,gBAAgB;QAC5B,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD;QACE,UAAU,EAAE,uBAAuB;QACnC,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,CAAC,wBAAwB,CAAC;KACvC;IACD;QACE,UAAU,EAAE,qBAAqB;QACjC,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,aAAa,EAAE,KAAK;QACpB,QAAQ,EAAE,CAAC,aAAa,EAAE,WAAW,CAAC;KACvC;IACD;QACE,UAAU,EAAE,qBAAqB;QACjC,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,aAAa,EAAE,IAAI;QACnB,UAAU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;IACD;QACE,UAAU,EAAE,mCAAmC;QAC/C,YAAY,EAAE,CAAC,0BAA0B,EAAE,qBAAqB,CAAC;QACjE,WAAW,EAAE,IAAI;KAClB;IACD;QACE,UAAU,EAAE,wCAAwC;QACpD,YAAY,EAAE,CAAC,0BAA0B,EAAE,qBAAqB,CAAC;KAClE;IACD;QACE,UAAU,EAAE,kCAAkC;QAC9C,YAAY,EAAE,CAAC,0BAA0B,EAAE,qBAAqB,CAAC;KAClE;IACD;QACE,UAAU,EAAE,kCAAkC;QAC9C,YAAY,EAAE,CAAC,0BAA0B,EAAE,qBAAqB,CAAC;KAClE;IACD;QACE,UAAU,EAAE,uBAAuB;QACnC,YAAY,EAAE,CAAC,qBAAqB,CAAC;KACtC;IACD,4CAA4C;IAC5C;QACE,UAAU,EAAE,kDAAkD;QAC9D,YAAY,EAAE,CAAC,mCAAmC,EAAE,kBAAkB,CAAC;KACxE;CACF,CAAC"}
|
|
@@ -10,5 +10,6 @@ export * from "./getPendingEntitiesQuery";
|
|
|
10
10
|
export * from "./getRequestingEntitiesQuery";
|
|
11
11
|
export * from "./getReferencedEntityIds";
|
|
12
12
|
export * from "./wellKnownAssociationCatalogs";
|
|
13
|
+
export * from "./setEntityAssociationGroup";
|
|
13
14
|
export { requestAssociation } from "./requestAssociation";
|
|
14
15
|
export { requestAssociation as acceptAssociation } from "./requestAssociation";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IArcGISContext } from "../ArcGISContext";
|
|
2
|
+
import { IHubGroup } from "../core";
|
|
3
|
+
import { HubEntity } from "../core/types/HubEntity";
|
|
4
|
+
/**
|
|
5
|
+
* Utility to create a relationship between an entity and a group, setting the group as
|
|
6
|
+
* the entity's association group. This adds the entity-specific association keyword to the association group,
|
|
7
|
+
* and it adds the association definition to the original entity.
|
|
8
|
+
* @param entity
|
|
9
|
+
* @param group
|
|
10
|
+
* @param context
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function setEntityAssociationGroup(entity: HubEntity, group: IHubGroup, context: IArcGISContext): Promise<HubEntity>;
|
|
@@ -9,4 +9,4 @@ import { EntityEditorOptions } from "../EditorOptions";
|
|
|
9
9
|
* @param context
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
|
-
export declare const buildUiSchema: (i18nScope: string, config: EntityEditorOptions, context: IArcGISContext) => IUiSchema
|
|
12
|
+
export declare const buildUiSchema: (i18nScope: string, config: EntityEditorOptions, context: IArcGISContext) => Promise<IUiSchema>;
|
|
@@ -6,4 +6,4 @@ import { IUiSchema } from "../../types";
|
|
|
6
6
|
* Exports the uiSchema of the stat card
|
|
7
7
|
* @returns
|
|
8
8
|
*/
|
|
9
|
-
export declare const buildUiSchema: (i18nScope: string, config: IStatCardEditorOptions, context: IArcGISContext) => IUiSchema
|
|
9
|
+
export declare const buildUiSchema: (i18nScope: string, config: IStatCardEditorOptions, context: IArcGISContext) => Promise<IUiSchema>;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { JSONSchema } from "json-schema-typed";
|
|
2
2
|
import Ajv from "ajv";
|
|
3
|
+
import { CardEditorOptions, EntityEditorOptions } from "./internal/EditorOptions";
|
|
4
|
+
import { IArcGISContext } from "../../ArcGISContext";
|
|
3
5
|
export interface IEditorConfig {
|
|
4
6
|
schema: IConfigurationSchema;
|
|
5
7
|
uiSchema: IUiSchema;
|
|
8
|
+
defaults?: IConfigurationValues;
|
|
6
9
|
}
|
|
7
10
|
/**
|
|
8
11
|
* Defines the possible editor type values - these correspond
|
|
9
12
|
* to the supported/defined uiSchema configurations
|
|
10
13
|
*/
|
|
11
14
|
export declare type EntityEditorType = (typeof validEntityEditorTypes)[number];
|
|
12
|
-
export declare const validEntityEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "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:view", "hub:group:create:edit", "hub:initiativeTemplate:edit"];
|
|
15
|
+
export declare const validEntityEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "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"];
|
|
13
16
|
/** Defines the possible editor type values for a stat card. These
|
|
14
17
|
* correspond to the supported/defined uiSchema configurations. This should
|
|
15
18
|
* have its own signature in the getEditorConfig function.
|
|
@@ -33,7 +36,31 @@ export declare const validCardEditorTypes: readonly ["hub:card:stat", "hub:card:
|
|
|
33
36
|
* to defined schema/uiSchema configurations
|
|
34
37
|
*/
|
|
35
38
|
export declare type EditorType = (typeof validEditorTypes)[number];
|
|
36
|
-
export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "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:view", "hub:group:create:edit", "hub:initiativeTemplate:edit", "hub:card:stat", "hub:card:follow"];
|
|
39
|
+
export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "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:card:stat", "hub:card:follow"];
|
|
40
|
+
/**
|
|
41
|
+
* An editor's module when dynamically imported depending on the EditorType. This
|
|
42
|
+
* will always have a buildUiSchema function, and sometimes it will have a
|
|
43
|
+
* buildDefaults function to override default values in the editor.
|
|
44
|
+
*/
|
|
45
|
+
export declare type IEditorModuleType = IEntityEditorModuleType | ICardEditorModuleType;
|
|
46
|
+
/**
|
|
47
|
+
* An entity editor's module when dynamically imported depending on the EditorType. This
|
|
48
|
+
* will always have a buildUiSchema function, and sometimes it will have a
|
|
49
|
+
* buildDefaults function to override default values in the editor.
|
|
50
|
+
*/
|
|
51
|
+
export interface IEntityEditorModuleType {
|
|
52
|
+
buildUiSchema: (i18nScope: string, options: EntityEditorOptions, context: IArcGISContext) => Promise<IUiSchema>;
|
|
53
|
+
buildDefaults?: (i18nScope: string, options: EntityEditorOptions, context: IArcGISContext) => Promise<IConfigurationValues>;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* A card editor's module when dynamically imported depending on the EditorType. This
|
|
57
|
+
* will always have a buildUiSchema function, and sometimes it will have a
|
|
58
|
+
* buildDefaults function to override default values in the editor.
|
|
59
|
+
*/
|
|
60
|
+
export interface ICardEditorModuleType {
|
|
61
|
+
buildUiSchema: (i18nScope: string, config: CardEditorOptions, context: IArcGISContext) => Promise<IUiSchema>;
|
|
62
|
+
buildDefaults?: (i18nScope: string, options: CardEditorOptions, context: IArcGISContext) => Promise<IConfigurationValues>;
|
|
63
|
+
}
|
|
37
64
|
export declare enum UiSchemaRuleEffects {
|
|
38
65
|
SHOW = "SHOW",
|
|
39
66
|
HIDE = "HIDE",
|
|
@@ -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: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"];
|
|
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 an association
|
|
7
|
+
* group. This defines how the schema properties should be
|
|
8
|
+
* rendered in the association 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 associations 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,4 +1,4 @@
|
|
|
1
|
-
import { IUiSchema } from "../../core/schemas/types";
|
|
1
|
+
import { IConfigurationValues, IUiSchema } from "../../core/schemas/types";
|
|
2
2
|
import { IArcGISContext } from "../../ArcGISContext";
|
|
3
3
|
import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
|
|
4
4
|
/**
|
|
@@ -8,3 +8,14 @@ import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
|
|
|
8
8
|
* rendered in the edit group creation experience
|
|
9
9
|
*/
|
|
10
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>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUiSchema } from "../../core/schemas/types";
|
|
1
|
+
import { IConfigurationValues, IUiSchema } from "../../core/schemas/types";
|
|
2
2
|
import { IArcGISContext } from "../../ArcGISContext";
|
|
3
3
|
import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
|
|
4
4
|
/**
|
|
@@ -8,3 +8,14 @@ import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
|
|
|
8
8
|
* rendered in the follower group creation experience
|
|
9
9
|
*/
|
|
10
10
|
export declare const buildUiSchema: (i18nScope: string, options: EntityEditorOptions, context: IArcGISContext) => Promise<IUiSchema>;
|
|
11
|
+
/**
|
|
12
|
+
* @private
|
|
13
|
+
* constructs the default values for creating a followers 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,4 +1,4 @@
|
|
|
1
|
-
import { IUiSchema } from "../../core/schemas/types";
|
|
1
|
+
import { IConfigurationValues, IUiSchema } from "../../core/schemas/types";
|
|
2
2
|
import { IArcGISContext } from "../../ArcGISContext";
|
|
3
3
|
import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
|
|
4
4
|
/**
|
|
@@ -8,3 +8,14 @@ import { EntityEditorOptions } from "../../core/schemas/internal/EditorOptions";
|
|
|
8
8
|
* rendered in the view group creation experience
|
|
9
9
|
*/
|
|
10
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 { IHubGroup } from "../core/types/IHubGroup";
|
|
2
2
|
import { IArcGISContext } from "../ArcGISContext";
|
|
3
|
-
declare type WellKnownGroup = "hubViewGroup" | "hubEditGroup" | "hubFollowersGroup";
|
|
3
|
+
declare type WellKnownGroup = "hubViewGroup" | "hubEditGroup" | "hubFollowersGroup" | "hubAssociationsGroup";
|
|
4
4
|
/**
|
|
5
5
|
* Fetches a well known group template based on a name
|
|
6
6
|
*
|
|
@@ -8,7 +8,7 @@ export declare const InitiativeDefaultFeatures: IFeatureFlags;
|
|
|
8
8
|
* These define the requirements any user must meet to perform related actions
|
|
9
9
|
* @private
|
|
10
10
|
*/
|
|
11
|
-
export declare const InitiativePermissions: readonly ["hub:initiative", "hub:initiative:create", "hub:initiative:delete", "hub:initiative:edit", "hub:initiative:view", "hub:initiative:events", "hub:initiative:content", "hub:initiative:discussions", "hub:initiative:workspace", "hub:initiative:workspace:overview", "hub:initiative:workspace:dashboard", "hub:initiative:workspace:details", "hub:initiative:workspace:projects", "hub:initiative:workspace:projects:member", "hub:initiative:workspace:projects:manager", "hub:initiative:workspace:settings", "hub:initiative:workspace:collaborators", "hub:initiative:workspace:content", "hub:initiative:workspace:metrics", "hub:initiative:manage"];
|
|
11
|
+
export declare const InitiativePermissions: readonly ["hub:initiative", "hub:initiative:create", "hub:initiative:delete", "hub:initiative:edit", "hub:initiative:view", "hub:initiative:events", "hub:initiative:content", "hub:initiative:discussions", "hub:initiative:workspace", "hub:initiative:workspace:overview", "hub:initiative:workspace:dashboard", "hub:initiative:workspace:details", "hub:initiative:workspace:projects", "hub:initiative:workspace:projects:member", "hub:initiative:workspace:projects:manager", "hub:initiative:workspace:settings", "hub:initiative:workspace:collaborators", "hub:initiative:workspace:content", "hub:initiative:workspace:metrics", "hub:initiative:workspace:associationGroup:create", "hub:initiative:manage"];
|
|
12
12
|
/**
|
|
13
13
|
* Initiative permission policies
|
|
14
14
|
* @private
|