@esri/hub-common 17.12.0 → 17.13.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/content/_internal/ContentUiSchemaEdit.js +46 -33
- package/dist/esm/content/_internal/ContentUiSchemaEdit.js.map +1 -1
- package/dist/esm/core/schemas/internal/fetchCategoriesUiSchemaElement.js +0 -4
- package/dist/esm/core/schemas/internal/fetchCategoriesUiSchemaElement.js.map +1 -1
- package/dist/esm/core/schemas/internal/getSlugSchemaElement.js +0 -3
- package/dist/esm/core/schemas/internal/getSlugSchemaElement.js.map +1 -1
- package/dist/esm/core/schemas/internal/getThumbnailUiSchemaElement.js +1 -12
- package/dist/esm/core/schemas/internal/getThumbnailUiSchemaElement.js.map +1 -1
- package/dist/esm/discussions/_internal/DiscussionUiSchemaEdit.js +59 -46
- package/dist/esm/discussions/_internal/DiscussionUiSchemaEdit.js.map +1 -1
- package/dist/esm/events/_internal/EventUiSchemaEdit.js +298 -200
- package/dist/esm/events/_internal/EventUiSchemaEdit.js.map +1 -1
- package/dist/esm/groups/_internal/GroupSchema.js +2 -1
- package/dist/esm/groups/_internal/GroupSchema.js.map +1 -1
- package/dist/esm/groups/_internal/GroupUiSchemaEdit.js +47 -6
- package/dist/esm/groups/_internal/GroupUiSchemaEdit.js.map +1 -1
- package/dist/esm/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js +74 -36
- package/dist/esm/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js.map +1 -1
- package/dist/esm/initiatives/_internal/InitiativeUiSchemaEdit.js +126 -92
- package/dist/esm/initiatives/_internal/InitiativeUiSchemaEdit.js.map +1 -1
- package/dist/esm/pages/_internal/PageUiSchemaEdit.js +45 -28
- package/dist/esm/pages/_internal/PageUiSchemaEdit.js.map +1 -1
- package/dist/esm/projects/_internal/ProjectUiSchemaEdit.js +221 -146
- package/dist/esm/projects/_internal/ProjectUiSchemaEdit.js.map +1 -1
- package/dist/esm/sites/_internal/SiteUiSchemaEdit.js +43 -28
- package/dist/esm/sites/_internal/SiteUiSchemaEdit.js.map +1 -1
- package/dist/esm/surveys/_internal/SurveyUiSchemaEdit.js +62 -25
- package/dist/esm/surveys/_internal/SurveyUiSchemaEdit.js.map +1 -1
- package/dist/esm/templates/_internal/TemplateUiSchemaEdit.js +78 -33
- package/dist/esm/templates/_internal/TemplateUiSchemaEdit.js.map +1 -1
- package/dist/node/content/_internal/ContentUiSchemaEdit.js +46 -33
- package/dist/node/content/_internal/ContentUiSchemaEdit.js.map +1 -1
- package/dist/node/core/schemas/internal/fetchCategoriesUiSchemaElement.js +0 -4
- package/dist/node/core/schemas/internal/fetchCategoriesUiSchemaElement.js.map +1 -1
- package/dist/node/core/schemas/internal/getSlugSchemaElement.js +0 -3
- package/dist/node/core/schemas/internal/getSlugSchemaElement.js.map +1 -1
- package/dist/node/core/schemas/internal/getThumbnailUiSchemaElement.js +1 -12
- package/dist/node/core/schemas/internal/getThumbnailUiSchemaElement.js.map +1 -1
- package/dist/node/discussions/_internal/DiscussionUiSchemaEdit.js +59 -46
- package/dist/node/discussions/_internal/DiscussionUiSchemaEdit.js.map +1 -1
- package/dist/node/events/_internal/EventUiSchemaEdit.js +298 -200
- package/dist/node/events/_internal/EventUiSchemaEdit.js.map +1 -1
- package/dist/node/groups/_internal/GroupSchema.js +1 -0
- package/dist/node/groups/_internal/GroupSchema.js.map +1 -1
- package/dist/node/groups/_internal/GroupUiSchemaEdit.js +47 -6
- package/dist/node/groups/_internal/GroupUiSchemaEdit.js.map +1 -1
- package/dist/node/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js +74 -36
- package/dist/node/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js.map +1 -1
- package/dist/node/initiatives/_internal/InitiativeUiSchemaEdit.js +126 -92
- package/dist/node/initiatives/_internal/InitiativeUiSchemaEdit.js.map +1 -1
- package/dist/node/pages/_internal/PageUiSchemaEdit.js +45 -28
- package/dist/node/pages/_internal/PageUiSchemaEdit.js.map +1 -1
- package/dist/node/projects/_internal/ProjectUiSchemaEdit.js +221 -146
- package/dist/node/projects/_internal/ProjectUiSchemaEdit.js.map +1 -1
- package/dist/node/sites/_internal/SiteUiSchemaEdit.js +43 -28
- package/dist/node/sites/_internal/SiteUiSchemaEdit.js.map +1 -1
- package/dist/node/surveys/_internal/SurveyUiSchemaEdit.js +62 -25
- package/dist/node/surveys/_internal/SurveyUiSchemaEdit.js.map +1 -1
- package/dist/node/templates/_internal/TemplateUiSchemaEdit.js +78 -33
- package/dist/node/templates/_internal/TemplateUiSchemaEdit.js.map +1 -1
- package/dist/types/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.d.ts +2 -2
- package/dist/types/templates/_internal/TemplateUiSchemaEdit.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitiativeUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/initiatives/_internal/InitiativeUiSchemaEdit.ts"],"names":[],"mappings":";;;AAAA,oDAA0E;AAE1E,yEAAsE;AACtE,qFAAkF;AAClF,uFAAoF;AACpF,yGAAsG;AAEtG
|
|
1
|
+
{"version":3,"file":"InitiativeUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/initiatives/_internal/InitiativeUiSchemaEdit.ts"],"names":[],"mappings":";;;AAAA,oDAA0E;AAE1E,yEAAsE;AACtE,qFAAkF;AAClF,uFAAoF;AACpF,yGAAsG;AAEtG,+GAA4G;AAC5G,8EAA2E;AAE3E;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAAgC,EAChC,OAAuB,EACH,EAAE;;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,OAAO,EAAE;oBACP,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,gC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AAM,EAAE;wCACN,KAAK,SAAS,oCAAoC;wCAClD,KAAK,SAAS,sCAAsC;qCACrD;oCACD,YAAY,EAAE;wCACZ,KAAK,SAAS,0CAA0C;wCACxD,KAAK,SAAS,4CAA4C;qCAC3D;oCACD,KAAK,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;iCAC5B;6BACF;4BACD;gCACE,QAAQ,EAAE,GAAG,SAAS,6BAA6B;gCACnD,KAAK,EAAE,2CAA2C;gCAClD,IAAI,EAAE,SAAS;gCACf,IAAI,EAAE;oCACJ,MAAM,EAAE,2BAAmB,CAAC,IAAI;oCAChC,SAAS,EAAE;wCACT,KAAK,EAAE,kCAAkC;wCACzC,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;qCACzB;iCACF;gCACD,OAAO,EAAE;oCACP,OAAO,EAAE,8BAA8B;oCACvC,MAAM,EAAE,qCAAiB,OACvB,OAAO,CAAC,IAAI,0CAAE,gBAAgB,EAC9B,OAAO,CAAC,cAAc,CACvB;oCACD,QAAQ,EAAE,GAAG;oCACb,SAAS,EAAE,GAAG;oCACd,WAAW,EAAE,GAAG;oCAChB,eAAe,EAAE;wCACf,QAAQ,EAAE,GAAG,SAAS,uCAAuC;qCAC9D;iCACF;6BACF;4BACD;gCACE,QAAQ,EAAE,GAAG,SAAS,qCAAqC;gCAC3D,KAAK,EAAE,kDAAkD;gCACzD,IAAI,EAAE,SAAS;gCACf,IAAI,EAAE;oCACJ,MAAM,EAAE,2BAAmB,CAAC,IAAI;oCAChC,SAAS,EAAE;wCACT,KAAK,EAAE,kCAAkC;wCACzC,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;qCACzB;iCACF;6BACF;yBACF;qBACF;iBA2CF;aACF;SAyCF;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -20,6 +20,11 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
20
20
|
{
|
|
21
21
|
type: "Section",
|
|
22
22
|
labelKey: `${i18nScope}.sections.basicInfo.label`,
|
|
23
|
+
options: {
|
|
24
|
+
helperText: {
|
|
25
|
+
labelKey: `${i18nScope}.sections.basicInfo.helperText`,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
23
28
|
elements: [
|
|
24
29
|
{
|
|
25
30
|
labelKey: `${i18nScope}.fields.name.label`,
|
|
@@ -48,6 +53,7 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
48
53
|
],
|
|
49
54
|
},
|
|
50
55
|
},
|
|
56
|
+
getSlugSchemaElement_1.getSlugSchemaElement(i18nScope),
|
|
51
57
|
{
|
|
52
58
|
labelKey: `${i18nScope}.fields.summary.label`,
|
|
53
59
|
scope: "/properties/summary",
|
|
@@ -56,9 +62,6 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
56
62
|
control: "hub-field-input-input",
|
|
57
63
|
type: "textarea",
|
|
58
64
|
rows: 4,
|
|
59
|
-
helperText: {
|
|
60
|
-
labelKey: `${i18nScope}.fields.summary.helperText`,
|
|
61
|
-
},
|
|
62
65
|
messages: [
|
|
63
66
|
{
|
|
64
67
|
type: "ERROR",
|
|
@@ -69,44 +72,58 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
69
72
|
],
|
|
70
73
|
},
|
|
71
74
|
},
|
|
75
|
+
...getThumbnailUiSchemaElement_1.getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl, "page", context.requestOptions),
|
|
72
76
|
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
type: "Control",
|
|
77
|
+
type: "Section",
|
|
78
|
+
labelKey: `${i18nScope}.sections.description.label`,
|
|
76
79
|
options: {
|
|
77
|
-
|
|
78
|
-
type: "textarea",
|
|
79
|
-
helperText: {
|
|
80
|
-
labelKey: `${i18nScope}.fields.description.helperText`,
|
|
81
|
-
},
|
|
80
|
+
section: "block",
|
|
82
81
|
},
|
|
82
|
+
elements: [
|
|
83
|
+
{
|
|
84
|
+
labelKey: `${i18nScope}.fields.description.label`,
|
|
85
|
+
scope: "/properties/description",
|
|
86
|
+
type: "Control",
|
|
87
|
+
options: {
|
|
88
|
+
control: "hub-field-input-rich-text",
|
|
89
|
+
type: "textarea",
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
],
|
|
83
93
|
},
|
|
84
|
-
...getThumbnailUiSchemaElement_1.getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl, "page", context.requestOptions),
|
|
85
|
-
getSlugSchemaElement_1.getSlugSchemaElement(i18nScope),
|
|
86
94
|
{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
type: "Control",
|
|
95
|
+
type: "Section",
|
|
96
|
+
labelKey: `${i18nScope}.sections.discoverability.label`,
|
|
90
97
|
options: {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
placeholderIcon: "label",
|
|
96
|
-
helperText: { labelKey: `${i18nScope}.fields.tags.helperText` },
|
|
98
|
+
section: "block",
|
|
99
|
+
helperText: {
|
|
100
|
+
labelKey: `${i18nScope}.sections.discoverability.helperText`,
|
|
101
|
+
},
|
|
97
102
|
},
|
|
103
|
+
elements: [
|
|
104
|
+
{
|
|
105
|
+
labelKey: `${i18nScope}.fields.tags.label`,
|
|
106
|
+
scope: "/properties/tags",
|
|
107
|
+
type: "Control",
|
|
108
|
+
options: {
|
|
109
|
+
control: "hub-field-input-combobox",
|
|
110
|
+
items: await getTagItems_1.getTagItems(options.tags, context.portal.id, context.hubRequestOptions),
|
|
111
|
+
allowCustomValues: true,
|
|
112
|
+
selectionMode: "multiple",
|
|
113
|
+
placeholderIcon: "label",
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
...(await fetchCategoriesUiSchemaElement_1.fetchCategoriesUiSchemaElement(i18nScope, context)),
|
|
117
|
+
],
|
|
98
118
|
},
|
|
99
|
-
...(await fetchCategoriesUiSchemaElement_1.fetchCategoriesUiSchemaElement(i18nScope, context)),
|
|
100
119
|
],
|
|
101
120
|
},
|
|
121
|
+
// ///////////////
|
|
122
|
+
// ///////////////
|
|
123
|
+
// ///////////////
|
|
102
124
|
{
|
|
103
125
|
type: "Section",
|
|
104
126
|
labelKey: `${i18nScope}.sections.location.label`,
|
|
105
|
-
options: {
|
|
106
|
-
helperText: {
|
|
107
|
-
labelKey: `${i18nScope}.sections.location.helperText`,
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
127
|
elements: [
|
|
111
128
|
{
|
|
112
129
|
scope: "/properties/location",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/pages/_internal/PageUiSchemaEdit.ts"],"names":[],"mappings":";;;AAEA,yEAAsE;AACtE,qFAAkF;AAClF,uFAAoF;AACpF,yGAAsG;AAEtG,+GAA4G;AAC5G,2FAAwF;AAExF;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA0B,EAC1B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;wBAC1C,KAAK,EAAE,kBAAkB;wBACzB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,UAAU;oCACnB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;iCACnD;gCACD;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,WAAW;oCACpB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,6BAA6B;iCACpD;gCACD;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,QAAQ;oCACjB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,wCAAwC;iCAC/D;6BACF;yBACF;qBACF;oBACD;wBACE,QAAQ,EAAE,GAAG,SAAS,uBAAuB;wBAC7C,KAAK,EAAE,qBAAqB;wBAC5B,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,OAAO,EAAE,uBAAuB;4BAChC,IAAI,EAAE,UAAU;4BAChB,IAAI,EAAE,CAAC;4BACP,
|
|
1
|
+
{"version":3,"file":"PageUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/pages/_internal/PageUiSchemaEdit.ts"],"names":[],"mappings":";;;AAEA,yEAAsE;AACtE,qFAAkF;AAClF,uFAAoF;AACpF,yGAAsG;AAEtG,+GAA4G;AAC5G,2FAAwF;AAExF;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA0B,EAC1B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,OAAO,EAAE;oBACP,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,gCAAgC;qBACvD;iBACF;gBACD,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;wBAC1C,KAAK,EAAE,kBAAkB;wBACzB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,UAAU;oCACnB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;iCACnD;gCACD;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,WAAW;oCACpB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,6BAA6B;iCACpD;gCACD;oCACE,IAAI,EAAE,OAAO;oCACb,OAA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IAAI,EAAE,SAAS;gCACf,OAAO,EAAE;oCACP,OAAO,EAAE,0BAA0B;oCACnC,KAAK,EAAE,MAAM,yBAAW,CACtB,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,MAAM,CAAC,EAAE,EACjB,OAAO,CAAC,iBAAiB,CAC1B;oCACD,iBAAiB,EAAE,IAAI;oCACvB,aAAa,EAAE,UAAU;oCACzB,eAAe,EAAE,OAAO;iCACzB;6BACF;4BACD,GAAG,CAAC,MAAM,+DAA8B,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;yBAC9D;qBACF;iBACF;aACF;YACD,kBAAkB;YAClB,kBAAkB;YAClB,kBAAkB;YAClB;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,0BAA0B;gBAChD,QAAQ,EAAE;oBACR;wBACE,KAAK,EAAE,sBAAsB;wBAC7B,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,OAAO,EAAE,iCAAiC;4BAC1C,MAAM,EAAE,MAAM,qCAAiB,CAC7B,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,OAAO,EAAE,MAAM,uCAAkB,CAC/B,OAAO,CAAC,EAAE,EACV,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,MAAM,CAAC,IAAI,EACnB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,2BAA2B,EAAE,CAAC;yBAC/B;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.buildUiSchema = void 0;
|
|
4
|
-
const getFeaturedContentCatalogs_1 = require("../../core/schemas/internal/getFeaturedContentCatalogs");
|
|
5
4
|
const getLocationExtent_1 = require("../../core/schemas/internal/getLocationExtent");
|
|
6
5
|
const getLocationOptions_1 = require("../../core/schemas/internal/getLocationOptions");
|
|
7
6
|
const getTagItems_1 = require("../../core/schemas/internal/getTagItems");
|
|
8
7
|
const getThumbnailUiSchemaElement_1 = require("../../core/schemas/internal/getThumbnailUiSchemaElement");
|
|
9
8
|
const getAuthedImageUrl_1 = require("../../core/_internal/getAuthedImageUrl");
|
|
10
9
|
const fetchCategoriesUiSchemaElement_1 = require("../../core/schemas/internal/fetchCategoriesUiSchemaElement");
|
|
11
|
-
const
|
|
10
|
+
const getFeaturedContentCatalogs_1 = require("../../core/schemas/internal/getFeaturedContentCatalogs");
|
|
12
11
|
/**
|
|
13
12
|
* @private
|
|
14
13
|
* constructs the complete edit uiSchema for Hub Projects.
|
|
@@ -23,6 +22,11 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
23
22
|
{
|
|
24
23
|
type: "Section",
|
|
25
24
|
labelKey: `${i18nScope}.sections.basicInfo.label`,
|
|
25
|
+
options: {
|
|
26
|
+
helperText: {
|
|
27
|
+
labelKey: `${i18nScope}.sections.basicInfo.helperText`,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
26
30
|
elements: [
|
|
27
31
|
{
|
|
28
32
|
labelKey: `${i18nScope}.fields.name.label`,
|
|
@@ -51,6 +55,7 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
51
55
|
],
|
|
52
56
|
},
|
|
53
57
|
},
|
|
58
|
+
// getSlugSchemaElement(i18nScope),
|
|
54
59
|
{
|
|
55
60
|
labelKey: `${i18nScope}.fields.summary.label`,
|
|
56
61
|
scope: "/properties/summary",
|
|
@@ -59,9 +64,6 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
59
64
|
control: "hub-field-input-input",
|
|
60
65
|
type: "textarea",
|
|
61
66
|
rows: 4,
|
|
62
|
-
helperText: {
|
|
63
|
-
labelKey: `${i18nScope}.fields.summary.helperText`,
|
|
64
|
-
},
|
|
65
67
|
messages: [
|
|
66
68
|
{
|
|
67
69
|
type: "ERROR",
|
|
@@ -72,56 +74,55 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
72
74
|
],
|
|
73
75
|
},
|
|
74
76
|
},
|
|
77
|
+
...getThumbnailUiSchemaElement_1.getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl, "project", context.requestOptions),
|
|
75
78
|
{
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
type: "Control",
|
|
79
|
+
type: "Section",
|
|
80
|
+
labelKey: `${i18nScope}.sections.description.label`,
|
|
79
81
|
options: {
|
|
80
|
-
|
|
81
|
-
type: "textarea",
|
|
82
|
-
helperText: {
|
|
83
|
-
labelKey: `${i18nScope}.fields.description.helperText`,
|
|
84
|
-
},
|
|
82
|
+
section: "block",
|
|
85
83
|
},
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
maxHeight: 484,
|
|
96
|
-
aspectRatio: 1.5,
|
|
97
|
-
helperText: {
|
|
98
|
-
labelKey: `${i18nScope}.fields.featuredImage.helperText`,
|
|
99
|
-
},
|
|
100
|
-
sizeDescription: {
|
|
101
|
-
labelKey: `${i18nScope}.fields.featuredImage.sizeDescription`,
|
|
84
|
+
elements: [
|
|
85
|
+
{
|
|
86
|
+
labelKey: `${i18nScope}.fields.description.label`,
|
|
87
|
+
scope: "/properties/description",
|
|
88
|
+
type: "Control",
|
|
89
|
+
options: {
|
|
90
|
+
control: "hub-field-input-rich-text",
|
|
91
|
+
type: "textarea",
|
|
92
|
+
},
|
|
102
93
|
},
|
|
103
|
-
|
|
94
|
+
],
|
|
104
95
|
},
|
|
105
96
|
{
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
type: "Control",
|
|
97
|
+
type: "Section",
|
|
98
|
+
labelKey: `${i18nScope}.sections.discoverability.label`,
|
|
109
99
|
options: {
|
|
100
|
+
section: "block",
|
|
110
101
|
helperText: {
|
|
111
|
-
labelKey: `${i18nScope}.
|
|
102
|
+
labelKey: `${i18nScope}.sections.discoverability.helperText`,
|
|
112
103
|
},
|
|
113
104
|
},
|
|
105
|
+
elements: [
|
|
106
|
+
{
|
|
107
|
+
labelKey: `${i18nScope}.fields.tags.label`,
|
|
108
|
+
scope: "/properties/tags",
|
|
109
|
+
type: "Control",
|
|
110
|
+
options: {
|
|
111
|
+
control: "hub-field-input-combobox",
|
|
112
|
+
items: await getTagItems_1.getTagItems(options.tags, context.portal.id, context.hubRequestOptions),
|
|
113
|
+
allowCustomValues: true,
|
|
114
|
+
selectionMode: "multiple",
|
|
115
|
+
placeholderIcon: "label",
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
...(await fetchCategoriesUiSchemaElement_1.fetchCategoriesUiSchemaElement(i18nScope, context)),
|
|
119
|
+
],
|
|
114
120
|
},
|
|
115
121
|
],
|
|
116
122
|
},
|
|
117
123
|
{
|
|
118
124
|
type: "Section",
|
|
119
125
|
labelKey: `${i18nScope}.sections.location.label`,
|
|
120
|
-
options: {
|
|
121
|
-
helperText: {
|
|
122
|
-
labelKey: `${i18nScope}.sections.location.helperText`,
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
126
|
elements: [
|
|
126
127
|
{
|
|
127
128
|
scope: "/properties/location",
|
|
@@ -135,28 +136,6 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
135
136
|
},
|
|
136
137
|
],
|
|
137
138
|
},
|
|
138
|
-
{
|
|
139
|
-
type: "Section",
|
|
140
|
-
labelKey: `${i18nScope}.sections.searchDiscoverability.label`,
|
|
141
|
-
elements: [
|
|
142
|
-
getSlugSchemaElement_1.getSlugSchemaElement(i18nScope),
|
|
143
|
-
{
|
|
144
|
-
labelKey: `${i18nScope}.fields.tags.label`,
|
|
145
|
-
scope: "/properties/tags",
|
|
146
|
-
type: "Control",
|
|
147
|
-
options: {
|
|
148
|
-
control: "hub-field-input-combobox",
|
|
149
|
-
items: await getTagItems_1.getTagItems(options.tags, context.portal.id, context.hubRequestOptions),
|
|
150
|
-
allowCustomValues: true,
|
|
151
|
-
selectionMode: "multiple",
|
|
152
|
-
placeholderIcon: "label",
|
|
153
|
-
helperText: { labelKey: `${i18nScope}.fields.tags.helperText` },
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
...(await fetchCategoriesUiSchemaElement_1.fetchCategoriesUiSchemaElement(i18nScope, context)),
|
|
157
|
-
...getThumbnailUiSchemaElement_1.getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl, "project", context.requestOptions),
|
|
158
|
-
],
|
|
159
|
-
},
|
|
160
139
|
{
|
|
161
140
|
type: "Section",
|
|
162
141
|
labelKey: `${i18nScope}.sections.status.label`,
|
|
@@ -172,117 +151,213 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
|
|
|
172
151
|
},
|
|
173
152
|
},
|
|
174
153
|
},
|
|
175
|
-
],
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
type: "Section",
|
|
179
|
-
labelKey: `${i18nScope}.sections.timeline.label`,
|
|
180
|
-
elements: [
|
|
181
154
|
{
|
|
182
|
-
|
|
183
|
-
|
|
155
|
+
type: "Section",
|
|
156
|
+
labelKey: `${i18nScope}.sections.timeline.label`,
|
|
184
157
|
options: {
|
|
185
|
-
|
|
186
|
-
|
|
158
|
+
section: "block",
|
|
159
|
+
helperText: {
|
|
160
|
+
labelKey: `${i18nScope}.sections.timeline.helperText`,
|
|
161
|
+
},
|
|
187
162
|
},
|
|
163
|
+
elements: [
|
|
164
|
+
{
|
|
165
|
+
scope: "/properties/view/properties/timeline",
|
|
166
|
+
type: "Control",
|
|
167
|
+
options: {
|
|
168
|
+
control: "arcgis-hub-timeline-editor",
|
|
169
|
+
showTitleAndDescription: false,
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
],
|
|
188
173
|
},
|
|
189
174
|
],
|
|
190
175
|
},
|
|
191
176
|
{
|
|
192
177
|
type: "Section",
|
|
193
|
-
labelKey:
|
|
194
|
-
options: {
|
|
195
|
-
helperText: {
|
|
196
|
-
labelKey: `${i18nScope}.sections.featuredContent.helperText`,
|
|
197
|
-
},
|
|
198
|
-
},
|
|
178
|
+
labelKey: "shared.sections.heroBanner.label",
|
|
199
179
|
elements: [
|
|
180
|
+
// {
|
|
181
|
+
// type: "Section",
|
|
182
|
+
// labelKey: 'shared.sections.heroBannerAppearance.label',
|
|
183
|
+
// options: {
|
|
184
|
+
// section: "block",
|
|
185
|
+
// helperText: {
|
|
186
|
+
// labelKey: 'shared.sections.heroBannerAppearance.helperText',
|
|
187
|
+
// },
|
|
188
|
+
// },
|
|
189
|
+
// elements: [
|
|
190
|
+
// {
|
|
191
|
+
// labelKey: 'shared.fields.hero.label',
|
|
192
|
+
// scope: "/properties/view/properties/hero",
|
|
193
|
+
// type: "Control",
|
|
194
|
+
// options: {
|
|
195
|
+
// control: "hub-field-input-tile-select",
|
|
196
|
+
// layout: "horizontal",
|
|
197
|
+
// labels: [
|
|
198
|
+
// '{{shared.fields.hero.map.label:translate}}',
|
|
199
|
+
// '{{shared.fields.hero.image.label:translate}}',
|
|
200
|
+
// ],
|
|
201
|
+
// descriptions: [
|
|
202
|
+
// '{{shared.fields.hero.map.description:translate}}',
|
|
203
|
+
// '{{shared.fields.hero.image.description:translate}}',
|
|
204
|
+
// ],
|
|
205
|
+
// icons: ["map-pin", "image"],
|
|
206
|
+
// },
|
|
207
|
+
// },
|
|
208
|
+
// {
|
|
209
|
+
// labelKey: 'shared.fields.featuredImage.altText.label',
|
|
210
|
+
// scope: "/properties/view/properties/featuredImageAltText",
|
|
211
|
+
// type: "Control",
|
|
212
|
+
// rule: {
|
|
213
|
+
// effect: UiSchemaRuleEffects.HIDE,
|
|
214
|
+
// condition: {
|
|
215
|
+
// scope: "/properties/view/properties/hero",
|
|
216
|
+
// schema: { const: "map" },
|
|
217
|
+
// },
|
|
218
|
+
// },
|
|
219
|
+
// },
|
|
220
|
+
// ]
|
|
221
|
+
// },
|
|
200
222
|
{
|
|
201
|
-
|
|
202
|
-
|
|
223
|
+
type: "Section",
|
|
224
|
+
labelKey: "shared.sections.heroActions.label",
|
|
203
225
|
options: {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
{
|
|
209
|
-
label: `{{${i18nScope}.fields.featuredContent.facets.type:translate}}`,
|
|
210
|
-
key: "type",
|
|
211
|
-
display: "multi-select",
|
|
212
|
-
field: "type",
|
|
213
|
-
options: [],
|
|
214
|
-
operation: "OR",
|
|
215
|
-
aggLimit: 100,
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
label: `{{${i18nScope}.fields.featuredContent.facets.sharing:translate}}`,
|
|
219
|
-
key: "access",
|
|
220
|
-
display: "multi-select",
|
|
221
|
-
field: "access",
|
|
222
|
-
options: [],
|
|
223
|
-
operation: "OR",
|
|
224
|
-
},
|
|
225
|
-
],
|
|
226
|
-
showAllCollectionFacet: true,
|
|
227
|
-
showAddContent: true,
|
|
226
|
+
section: "block",
|
|
227
|
+
helperText: {
|
|
228
|
+
labelKey: "shared.sections.heroActions.helperText",
|
|
229
|
+
},
|
|
228
230
|
},
|
|
231
|
+
elements: [
|
|
232
|
+
{
|
|
233
|
+
scope: "/properties/view/properties/heroActions",
|
|
234
|
+
type: "Control",
|
|
235
|
+
options: {
|
|
236
|
+
control: "hub-composite-input-action-links",
|
|
237
|
+
type: "button",
|
|
238
|
+
catalogs: getFeaturedContentCatalogs_1.getFeaturedContentCatalogs(context.currentUser),
|
|
239
|
+
facets: [
|
|
240
|
+
{
|
|
241
|
+
label: `{{${i18nScope}.fields.callToAction.facets.type:translate}}`,
|
|
242
|
+
key: "type",
|
|
243
|
+
display: "multi-select",
|
|
244
|
+
field: "type",
|
|
245
|
+
options: [],
|
|
246
|
+
operation: "OR",
|
|
247
|
+
aggLimit: 100,
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
label: `{{${i18nScope}.fields.callToAction.facets.sharing:translate}}`,
|
|
251
|
+
key: "access",
|
|
252
|
+
display: "multi-select",
|
|
253
|
+
field: "access",
|
|
254
|
+
options: [],
|
|
255
|
+
operation: "OR",
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
showAllCollectionFacet: true,
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
],
|
|
229
262
|
},
|
|
230
263
|
],
|
|
231
264
|
},
|
|
232
265
|
{
|
|
233
266
|
type: "Section",
|
|
234
|
-
labelKey: `${i18nScope}.sections.
|
|
235
|
-
options: {
|
|
236
|
-
helperText: {
|
|
237
|
-
labelKey: `${i18nScope}.sections.callToAction.helperText`,
|
|
238
|
-
},
|
|
239
|
-
},
|
|
267
|
+
labelKey: `${i18nScope}.sections.view.label`,
|
|
240
268
|
elements: [
|
|
241
269
|
{
|
|
242
|
-
|
|
243
|
-
|
|
270
|
+
type: "Section",
|
|
271
|
+
labelKey: `${i18nScope}.sections.view.image.label`,
|
|
244
272
|
options: {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
operation: "OR",
|
|
273
|
+
section: "block",
|
|
274
|
+
helperText: {
|
|
275
|
+
labelKey: `${i18nScope}.sections.view.image.helperText`,
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
elements: [
|
|
279
|
+
{
|
|
280
|
+
labelKey: "shared.fields.featuredImage.label",
|
|
281
|
+
scope: "/properties/view/properties/featuredImage",
|
|
282
|
+
type: "Control",
|
|
283
|
+
options: {
|
|
284
|
+
control: "hub-field-input-image-picker",
|
|
285
|
+
imgSrc: getAuthedImageUrl_1.getAuthedImageUrl((_a = options.view) === null || _a === void 0 ? void 0 : _a.featuredImageUrl, context.requestOptions),
|
|
286
|
+
maxWidth: 727,
|
|
287
|
+
maxHeight: 484,
|
|
288
|
+
aspectRatio: 1.5,
|
|
289
|
+
sizeDescription: {
|
|
290
|
+
labelKey: "shared.fields.featuredImage.sizeDescription",
|
|
291
|
+
},
|
|
265
292
|
},
|
|
266
|
-
|
|
267
|
-
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
labelKey: "shared.fields.featuredImage.altText.label",
|
|
296
|
+
scope: "/properties/view/properties/featuredImageAltText",
|
|
297
|
+
type: "Control",
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
type: "Section",
|
|
303
|
+
labelKey: `${i18nScope}.sections.view.embed.label`,
|
|
304
|
+
options: {
|
|
305
|
+
section: "block",
|
|
306
|
+
helperText: {
|
|
307
|
+
labelKey: `${i18nScope}.sections.view.embed.helperText`,
|
|
308
|
+
},
|
|
268
309
|
},
|
|
310
|
+
elements: [
|
|
311
|
+
{
|
|
312
|
+
scope: "/properties/view/properties/embeds",
|
|
313
|
+
type: "Control",
|
|
314
|
+
options: {
|
|
315
|
+
control: "hub-composite-input-embeds",
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
],
|
|
269
319
|
},
|
|
270
|
-
],
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
type: "Section",
|
|
274
|
-
labelKey: `${i18nScope}.sections.embeds.label`,
|
|
275
|
-
options: {
|
|
276
|
-
headerTag: "h2",
|
|
277
|
-
helperText: { labelKey: `${i18nScope}.sections.embeds.helperText` },
|
|
278
|
-
},
|
|
279
|
-
elements: [
|
|
280
320
|
{
|
|
281
|
-
|
|
282
|
-
|
|
321
|
+
type: "Section",
|
|
322
|
+
labelKey: `${i18nScope}.sections.view.content.label`,
|
|
283
323
|
options: {
|
|
284
|
-
|
|
324
|
+
section: "block",
|
|
325
|
+
helperText: {
|
|
326
|
+
labelKey: `${i18nScope}.sections.view.content.helperText`,
|
|
327
|
+
},
|
|
285
328
|
},
|
|
329
|
+
elements: [
|
|
330
|
+
{
|
|
331
|
+
scope: "/properties/view/properties/featuredContentIds",
|
|
332
|
+
type: "Control",
|
|
333
|
+
options: {
|
|
334
|
+
control: "hub-field-input-gallery-picker",
|
|
335
|
+
targetEntity: "item",
|
|
336
|
+
catalogs: getFeaturedContentCatalogs_1.getFeaturedContentCatalogs(context.currentUser),
|
|
337
|
+
facets: [
|
|
338
|
+
{
|
|
339
|
+
label: `{{${i18nScope}.fields.featuredContent.facets.type:translate}}`,
|
|
340
|
+
key: "type",
|
|
341
|
+
display: "multi-select",
|
|
342
|
+
field: "type",
|
|
343
|
+
options: [],
|
|
344
|
+
operation: "OR",
|
|
345
|
+
aggLimit: 100,
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
label: `{{${i18nScope}.fields.featuredContent.facets.sharing:translate}}`,
|
|
349
|
+
key: "access",
|
|
350
|
+
display: "multi-select",
|
|
351
|
+
field: "access",
|
|
352
|
+
options: [],
|
|
353
|
+
operation: "OR",
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
showAllCollectionFacet: true,
|
|
357
|
+
showAddContent: true,
|
|
358
|
+
},
|
|
359
|
+
},
|
|
360
|
+
],
|
|
286
361
|
},
|
|
287
362
|
],
|
|
288
363
|
},
|