@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
|
@@ -3,9 +3,8 @@ import { getTagItems } from "../../core/schemas/internal/getTagItems";
|
|
|
3
3
|
import { getLocationExtent } from "../../core/schemas/internal/getLocationExtent";
|
|
4
4
|
import { getLocationOptions } from "../../core/schemas/internal/getLocationOptions";
|
|
5
5
|
import { getThumbnailUiSchemaElement } from "../../core/schemas/internal/getThumbnailUiSchemaElement";
|
|
6
|
-
import { getAuthedImageUrl } from "../../core/_internal/getAuthedImageUrl";
|
|
7
6
|
import { fetchCategoriesUiSchemaElement } from "../../core/schemas/internal/fetchCategoriesUiSchemaElement";
|
|
8
|
-
import {
|
|
7
|
+
import { getAuthedImageUrl } from "../../core/_internal/getAuthedImageUrl";
|
|
9
8
|
/**
|
|
10
9
|
* @private
|
|
11
10
|
* constructs the complete edit uiSchema for Hub Initiative.
|
|
@@ -20,6 +19,11 @@ export const buildUiSchema = async (i18nScope, options, context) => {
|
|
|
20
19
|
{
|
|
21
20
|
type: "Section",
|
|
22
21
|
labelKey: `${i18nScope}.sections.basicInfo.label`,
|
|
22
|
+
options: {
|
|
23
|
+
helperText: {
|
|
24
|
+
labelKey: `${i18nScope}.sections.basicInfo.helperText`,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
23
27
|
elements: [
|
|
24
28
|
{
|
|
25
29
|
labelKey: `${i18nScope}.fields.name.label`,
|
|
@@ -48,6 +52,7 @@ export const buildUiSchema = async (i18nScope, options, context) => {
|
|
|
48
52
|
],
|
|
49
53
|
},
|
|
50
54
|
},
|
|
55
|
+
// getSlugSchemaElement(i18nScope),
|
|
51
56
|
{
|
|
52
57
|
labelKey: `${i18nScope}.fields.summary.label`,
|
|
53
58
|
scope: "/properties/summary",
|
|
@@ -56,9 +61,6 @@ export const buildUiSchema = async (i18nScope, options, context) => {
|
|
|
56
61
|
control: "hub-field-input-input",
|
|
57
62
|
type: "textarea",
|
|
58
63
|
rows: 4,
|
|
59
|
-
helperText: {
|
|
60
|
-
labelKey: `${i18nScope}.fields.summary.helperText`,
|
|
61
|
-
},
|
|
62
64
|
messages: [
|
|
63
65
|
{
|
|
64
66
|
type: "ERROR",
|
|
@@ -69,91 +71,55 @@ export const buildUiSchema = async (i18nScope, options, context) => {
|
|
|
69
71
|
],
|
|
70
72
|
},
|
|
71
73
|
},
|
|
74
|
+
...getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl, "initiative", context.requestOptions),
|
|
72
75
|
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
type: "Control",
|
|
76
|
+
type: "Section",
|
|
77
|
+
labelKey: `${i18nScope}.sections.description.label`,
|
|
76
78
|
options: {
|
|
77
|
-
|
|
78
|
-
type: "textarea",
|
|
79
|
-
helperText: {
|
|
80
|
-
labelKey: `${i18nScope}.fields.description.helperText`,
|
|
81
|
-
},
|
|
79
|
+
section: "block",
|
|
82
80
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
labelKey: `${i18nScope}.fields.hero.helperText`,
|
|
81
|
+
elements: [
|
|
82
|
+
{
|
|
83
|
+
labelKey: `${i18nScope}.fields.description.label`,
|
|
84
|
+
scope: "/properties/description",
|
|
85
|
+
type: "Control",
|
|
86
|
+
options: {
|
|
87
|
+
control: "hub-field-input-rich-text",
|
|
88
|
+
type: "textarea",
|
|
89
|
+
},
|
|
93
90
|
},
|
|
94
|
-
|
|
95
|
-
`{{${i18nScope}.fields.hero.map.label:translate}}`,
|
|
96
|
-
`{{${i18nScope}.fields.hero.image.label:translate}}`,
|
|
97
|
-
],
|
|
98
|
-
descriptions: [
|
|
99
|
-
`{{${i18nScope}.fields.hero.map.description:translate}}`,
|
|
100
|
-
`{{${i18nScope}.fields.hero.image.description:translate}}`,
|
|
101
|
-
],
|
|
102
|
-
icons: ["map-pin", "image"],
|
|
103
|
-
},
|
|
91
|
+
],
|
|
104
92
|
},
|
|
105
93
|
{
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
type: "Control",
|
|
109
|
-
rule: {
|
|
110
|
-
effect: UiSchemaRuleEffects.HIDE,
|
|
111
|
-
condition: {
|
|
112
|
-
scope: "/properties/view/properties/hero",
|
|
113
|
-
schema: { const: "map" },
|
|
114
|
-
},
|
|
115
|
-
},
|
|
94
|
+
type: "Section",
|
|
95
|
+
labelKey: `${i18nScope}.sections.discoverability.label`,
|
|
116
96
|
options: {
|
|
117
|
-
|
|
118
|
-
imgSrc: getAuthedImageUrl((_a = options.view) === null || _a === void 0 ? void 0 : _a.featuredImageUrl, context.requestOptions),
|
|
119
|
-
maxWidth: 727,
|
|
120
|
-
maxHeight: 484,
|
|
121
|
-
aspectRatio: 1.5,
|
|
122
|
-
sizeDescription: {
|
|
123
|
-
labelKey: `${i18nScope}.fields.featuredImage.sizeDescription`,
|
|
124
|
-
},
|
|
97
|
+
section: "block",
|
|
125
98
|
helperText: {
|
|
126
|
-
labelKey: `${i18nScope}.
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
labelKey: `${i18nScope}.fields.featuredImage.altText.label`,
|
|
132
|
-
scope: "/properties/view/properties/featuredImageAltText",
|
|
133
|
-
type: "Control",
|
|
134
|
-
rule: {
|
|
135
|
-
effect: UiSchemaRuleEffects.HIDE,
|
|
136
|
-
condition: {
|
|
137
|
-
scope: "/properties/view/properties/hero",
|
|
138
|
-
schema: { const: "map" },
|
|
99
|
+
labelKey: `${i18nScope}.sections.discoverability.helperText`,
|
|
139
100
|
},
|
|
140
101
|
},
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
labelKey: `${i18nScope}.fields.
|
|
102
|
+
elements: [
|
|
103
|
+
{
|
|
104
|
+
labelKey: `${i18nScope}.fields.tags.label`,
|
|
105
|
+
scope: "/properties/tags",
|
|
106
|
+
type: "Control",
|
|
107
|
+
options: {
|
|
108
|
+
control: "hub-field-input-combobox",
|
|
109
|
+
items: await getTagItems(options.tags, context.portal.id, context.hubRequestOptions),
|
|
110
|
+
allowCustomValues: true,
|
|
111
|
+
selectionMode: "multiple",
|
|
112
|
+
placeholderIcon: "label",
|
|
113
|
+
},
|
|
144
114
|
},
|
|
145
|
-
|
|
115
|
+
...(await fetchCategoriesUiSchemaElement(i18nScope, context)),
|
|
116
|
+
],
|
|
146
117
|
},
|
|
147
118
|
],
|
|
148
119
|
},
|
|
149
120
|
{
|
|
150
121
|
type: "Section",
|
|
151
122
|
labelKey: `${i18nScope}.sections.location.label`,
|
|
152
|
-
options: {
|
|
153
|
-
helperText: {
|
|
154
|
-
labelKey: `${i18nScope}.sections.location.helperText`,
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
123
|
elements: [
|
|
158
124
|
{
|
|
159
125
|
scope: "/properties/location",
|
|
@@ -169,40 +135,108 @@ export const buildUiSchema = async (i18nScope, options, context) => {
|
|
|
169
135
|
},
|
|
170
136
|
{
|
|
171
137
|
type: "Section",
|
|
172
|
-
labelKey: `${i18nScope}.sections.
|
|
138
|
+
labelKey: `${i18nScope}.sections.status.label`,
|
|
173
139
|
elements: [
|
|
174
|
-
getSlugSchemaElement(i18nScope),
|
|
175
|
-
...(await fetchCategoriesUiSchemaElement(i18nScope, context)),
|
|
176
140
|
{
|
|
177
|
-
|
|
178
|
-
scope: "/properties/tags",
|
|
141
|
+
scope: "/properties/status",
|
|
179
142
|
type: "Control",
|
|
143
|
+
labelKey: `${i18nScope}.fields.status.label`,
|
|
180
144
|
options: {
|
|
181
|
-
control: "hub-field-input-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
placeholderIcon: "label",
|
|
186
|
-
helperText: { labelKey: `${i18nScope}.fields.tags.helperText` },
|
|
145
|
+
control: "hub-field-input-select",
|
|
146
|
+
enum: {
|
|
147
|
+
i18nScope: `${i18nScope}.fields.status.enum`,
|
|
148
|
+
},
|
|
187
149
|
},
|
|
188
150
|
},
|
|
189
|
-
|
|
151
|
+
{
|
|
152
|
+
type: "Section",
|
|
153
|
+
labelKey: `${i18nScope}.sections.timeline.label`,
|
|
154
|
+
options: {
|
|
155
|
+
section: "block",
|
|
156
|
+
helperText: {
|
|
157
|
+
labelKey: `${i18nScope}.sections.timeline.helperText`,
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
elements: [
|
|
161
|
+
{
|
|
162
|
+
scope: "/properties/view/properties/timeline",
|
|
163
|
+
type: "Control",
|
|
164
|
+
options: {
|
|
165
|
+
control: "arcgis-hub-timeline-editor",
|
|
166
|
+
showTitleAndDescription: false,
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
},
|
|
190
171
|
],
|
|
191
172
|
},
|
|
192
173
|
{
|
|
193
174
|
type: "Section",
|
|
194
|
-
labelKey:
|
|
175
|
+
labelKey: "shared.sections.heroBanner.label",
|
|
195
176
|
elements: [
|
|
196
177
|
{
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
labelKey: `${i18nScope}.fields.status.label`,
|
|
178
|
+
type: "Section",
|
|
179
|
+
labelKey: "shared.sections.heroBannerAppearance.label",
|
|
200
180
|
options: {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
181
|
+
section: "block",
|
|
182
|
+
helperText: {
|
|
183
|
+
labelKey: "shared.sections.heroBannerAppearance.helperText",
|
|
204
184
|
},
|
|
205
185
|
},
|
|
186
|
+
elements: [
|
|
187
|
+
{
|
|
188
|
+
labelKey: `${i18nScope}.fields.hero.label`,
|
|
189
|
+
scope: "/properties/view/properties/hero",
|
|
190
|
+
type: "Control",
|
|
191
|
+
options: {
|
|
192
|
+
control: "hub-field-input-tile-select",
|
|
193
|
+
layout: "horizontal",
|
|
194
|
+
labels: [
|
|
195
|
+
`{{${i18nScope}.fields.hero.map.label:translate}}`,
|
|
196
|
+
`{{${i18nScope}.fields.hero.image.label:translate}}`,
|
|
197
|
+
],
|
|
198
|
+
descriptions: [
|
|
199
|
+
`{{${i18nScope}.fields.hero.map.description:translate}}`,
|
|
200
|
+
`{{${i18nScope}.fields.hero.image.description:translate}}`,
|
|
201
|
+
],
|
|
202
|
+
icons: ["map-pin", "image"],
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
labelKey: `${i18nScope}.fields.featuredImage.label`,
|
|
207
|
+
scope: "/properties/view/properties/featuredImage",
|
|
208
|
+
type: "Control",
|
|
209
|
+
rule: {
|
|
210
|
+
effect: UiSchemaRuleEffects.HIDE,
|
|
211
|
+
condition: {
|
|
212
|
+
scope: "/properties/view/properties/hero",
|
|
213
|
+
schema: { const: "map" },
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
options: {
|
|
217
|
+
control: "hub-field-input-image-picker",
|
|
218
|
+
imgSrc: getAuthedImageUrl((_a = options.view) === null || _a === void 0 ? void 0 : _a.featuredImageUrl, context.requestOptions),
|
|
219
|
+
maxWidth: 727,
|
|
220
|
+
maxHeight: 484,
|
|
221
|
+
aspectRatio: 1.5,
|
|
222
|
+
sizeDescription: {
|
|
223
|
+
labelKey: `${i18nScope}.fields.featuredImage.sizeDescription`,
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
labelKey: `${i18nScope}.fields.featuredImage.altText.label`,
|
|
229
|
+
scope: "/properties/view/properties/featuredImageAltText",
|
|
230
|
+
type: "Control",
|
|
231
|
+
rule: {
|
|
232
|
+
effect: UiSchemaRuleEffects.HIDE,
|
|
233
|
+
condition: {
|
|
234
|
+
scope: "/properties/view/properties/hero",
|
|
235
|
+
schema: { const: "map" },
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
],
|
|
206
240
|
},
|
|
207
241
|
],
|
|
208
242
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitiativeUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/initiatives/_internal/InitiativeUiSchemaEdit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yDAAyD,CAAC;AAEtG,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"InitiativeUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/initiatives/_internal/InitiativeUiSchemaEdit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yDAAyD,CAAC;AAEtG,OAAO,EAAE,8BAA8B,EAAE,MAAM,4DAA4D,CAAC;AAC5G,OAAO,EAAE,iBAAiB,EAAE,M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AAE,mBAAmB,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"}
|
|
@@ -17,6 +17,11 @@ export const buildUiSchema = async (i18nScope, options, context) => {
|
|
|
17
17
|
{
|
|
18
18
|
type: "Section",
|
|
19
19
|
labelKey: `${i18nScope}.sections.basicInfo.label`,
|
|
20
|
+
options: {
|
|
21
|
+
helperText: {
|
|
22
|
+
labelKey: `${i18nScope}.sections.basicInfo.helperText`,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
20
25
|
elements: [
|
|
21
26
|
{
|
|
22
27
|
labelKey: `${i18nScope}.fields.name.label`,
|
|
@@ -45,6 +50,7 @@ export const buildUiSchema = async (i18nScope, options, context) => {
|
|
|
45
50
|
],
|
|
46
51
|
},
|
|
47
52
|
},
|
|
53
|
+
getSlugSchemaElement(i18nScope),
|
|
48
54
|
{
|
|
49
55
|
labelKey: `${i18nScope}.fields.summary.label`,
|
|
50
56
|
scope: "/properties/summary",
|
|
@@ -53,9 +59,6 @@ export const buildUiSchema = async (i18nScope, options, context) => {
|
|
|
53
59
|
control: "hub-field-input-input",
|
|
54
60
|
type: "textarea",
|
|
55
61
|
rows: 4,
|
|
56
|
-
helperText: {
|
|
57
|
-
labelKey: `${i18nScope}.fields.summary.helperText`,
|
|
58
|
-
},
|
|
59
62
|
messages: [
|
|
60
63
|
{
|
|
61
64
|
type: "ERROR",
|
|
@@ -66,44 +69,58 @@ export const buildUiSchema = async (i18nScope, options, context) => {
|
|
|
66
69
|
],
|
|
67
70
|
},
|
|
68
71
|
},
|
|
72
|
+
...getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl, "page", context.requestOptions),
|
|
69
73
|
{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
type: "Control",
|
|
74
|
+
type: "Section",
|
|
75
|
+
labelKey: `${i18nScope}.sections.description.label`,
|
|
73
76
|
options: {
|
|
74
|
-
|
|
75
|
-
type: "textarea",
|
|
76
|
-
helperText: {
|
|
77
|
-
labelKey: `${i18nScope}.fields.description.helperText`,
|
|
78
|
-
},
|
|
77
|
+
section: "block",
|
|
79
78
|
},
|
|
79
|
+
elements: [
|
|
80
|
+
{
|
|
81
|
+
labelKey: `${i18nScope}.fields.description.label`,
|
|
82
|
+
scope: "/properties/description",
|
|
83
|
+
type: "Control",
|
|
84
|
+
options: {
|
|
85
|
+
control: "hub-field-input-rich-text",
|
|
86
|
+
type: "textarea",
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
],
|
|
80
90
|
},
|
|
81
|
-
...getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl, "page", context.requestOptions),
|
|
82
|
-
getSlugSchemaElement(i18nScope),
|
|
83
91
|
{
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
type: "Control",
|
|
92
|
+
type: "Section",
|
|
93
|
+
labelKey: `${i18nScope}.sections.discoverability.label`,
|
|
87
94
|
options: {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
placeholderIcon: "label",
|
|
93
|
-
helperText: { labelKey: `${i18nScope}.fields.tags.helperText` },
|
|
95
|
+
section: "block",
|
|
96
|
+
helperText: {
|
|
97
|
+
labelKey: `${i18nScope}.sections.discoverability.helperText`,
|
|
98
|
+
},
|
|
94
99
|
},
|
|
100
|
+
elements: [
|
|
101
|
+
{
|
|
102
|
+
labelKey: `${i18nScope}.fields.tags.label`,
|
|
103
|
+
scope: "/properties/tags",
|
|
104
|
+
type: "Control",
|
|
105
|
+
options: {
|
|
106
|
+
control: "hub-field-input-combobox",
|
|
107
|
+
items: await getTagItems(options.tags, context.portal.id, context.hubRequestOptions),
|
|
108
|
+
allowCustomValues: true,
|
|
109
|
+
selectionMode: "multiple",
|
|
110
|
+
placeholderIcon: "label",
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
...(await fetchCategoriesUiSchemaElement(i18nScope, context)),
|
|
114
|
+
],
|
|
95
115
|
},
|
|
96
|
-
...(await fetchCategoriesUiSchemaElement(i18nScope, context)),
|
|
97
116
|
],
|
|
98
117
|
},
|
|
118
|
+
// ///////////////
|
|
119
|
+
// ///////////////
|
|
120
|
+
// ///////////////
|
|
99
121
|
{
|
|
100
122
|
type: "Section",
|
|
101
123
|
labelKey: `${i18nScope}.sections.location.label`,
|
|
102
|
-
options: {
|
|
103
|
-
helperText: {
|
|
104
|
-
labelKey: `${i18nScope}.sections.location.helperText`,
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
124
|
elements: [
|
|
108
125
|
{
|
|
109
126
|
scope: "/properties/location",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/pages/_internal/PageUiSchemaEdit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yDAAyD,CAAC;AAEtG,OAAO,EAAE,8BAA8B,EAAE,MAAM,4DAA4D,CAAC;AAC5G,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAExF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,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,SAA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