@esri/hub-common 12.14.0 → 12.16.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.
Files changed (86) hide show
  1. package/dist/esm/core/schemas/getEntityEditorSchemas.js +52 -0
  2. package/dist/esm/core/schemas/getEntityEditorSchemas.js.map +1 -0
  3. package/dist/esm/core/schemas/index.js +1 -1
  4. package/dist/esm/core/schemas/index.js.map +1 -1
  5. package/dist/esm/core/schemas/shared/index.js +2 -0
  6. package/dist/esm/core/schemas/shared/index.js.map +1 -0
  7. package/dist/esm/core/schemas/shared/subschemas.js +20 -0
  8. package/dist/esm/core/schemas/shared/subschemas.js.map +1 -0
  9. package/dist/esm/core/types/IHubProject.js.map +1 -1
  10. package/dist/esm/initiatives/HubInitiative.js +12 -12
  11. package/dist/esm/initiatives/HubInitiative.js.map +1 -1
  12. package/dist/esm/initiatives/_internal/InitiativeSchema.js +13 -0
  13. package/dist/esm/initiatives/_internal/InitiativeSchema.js.map +1 -0
  14. package/dist/esm/initiatives/_internal/InitiativeUiSchemaEdit.js +20 -0
  15. package/dist/esm/initiatives/_internal/InitiativeUiSchemaEdit.js.map +1 -0
  16. package/dist/esm/items/_enrichments.js +11 -3
  17. package/dist/esm/items/_enrichments.js.map +1 -1
  18. package/dist/esm/items/index.js +1 -0
  19. package/dist/esm/items/index.js.map +1 -1
  20. package/dist/esm/items/is-services-directory-disabled.js +35 -0
  21. package/dist/esm/items/is-services-directory-disabled.js.map +1 -0
  22. package/dist/esm/projects/HubProject.js +7 -7
  23. package/dist/esm/projects/HubProject.js.map +1 -1
  24. package/dist/esm/projects/_internal/ProjectSchema.js +52 -0
  25. package/dist/esm/projects/_internal/ProjectSchema.js.map +1 -0
  26. package/dist/esm/projects/_internal/ProjectUiSchemaCreate.js +128 -0
  27. package/dist/esm/projects/_internal/ProjectUiSchemaCreate.js.map +1 -0
  28. package/dist/esm/projects/_internal/ProjectUiSchemaEdit.js +130 -0
  29. package/dist/esm/projects/_internal/ProjectUiSchemaEdit.js.map +1 -0
  30. package/dist/esm/projects/edit.js +11 -32
  31. package/dist/esm/projects/edit.js.map +1 -1
  32. package/dist/node/core/schemas/getEntityEditorSchemas.js +55 -0
  33. package/dist/node/core/schemas/getEntityEditorSchemas.js.map +1 -0
  34. package/dist/node/core/schemas/index.js +1 -1
  35. package/dist/node/core/schemas/index.js.map +1 -1
  36. package/dist/node/core/schemas/shared/index.js +5 -0
  37. package/dist/node/core/schemas/shared/index.js.map +1 -0
  38. package/dist/node/core/schemas/shared/subschemas.js +23 -0
  39. package/dist/node/core/schemas/shared/subschemas.js.map +1 -0
  40. package/dist/node/core/types/IHubProject.js.map +1 -1
  41. package/dist/node/initiatives/HubInitiative.js +12 -12
  42. package/dist/node/initiatives/HubInitiative.js.map +1 -1
  43. package/dist/node/initiatives/_internal/InitiativeSchema.js +16 -0
  44. package/dist/node/initiatives/_internal/InitiativeSchema.js.map +1 -0
  45. package/dist/node/initiatives/_internal/InitiativeUiSchemaEdit.js +23 -0
  46. package/dist/node/initiatives/_internal/InitiativeUiSchemaEdit.js.map +1 -0
  47. package/dist/node/items/_enrichments.js +11 -3
  48. package/dist/node/items/_enrichments.js.map +1 -1
  49. package/dist/node/items/index.js +1 -0
  50. package/dist/node/items/index.js.map +1 -1
  51. package/dist/node/items/is-services-directory-disabled.js +38 -0
  52. package/dist/node/items/is-services-directory-disabled.js.map +1 -0
  53. package/dist/node/projects/HubProject.js +7 -7
  54. package/dist/node/projects/HubProject.js.map +1 -1
  55. package/dist/node/projects/_internal/ProjectSchema.js +55 -0
  56. package/dist/node/projects/_internal/ProjectSchema.js.map +1 -0
  57. package/dist/node/projects/_internal/ProjectUiSchemaCreate.js +131 -0
  58. package/dist/node/projects/_internal/ProjectUiSchemaCreate.js.map +1 -0
  59. package/dist/node/projects/_internal/ProjectUiSchemaEdit.js +133 -0
  60. package/dist/node/projects/_internal/ProjectUiSchemaEdit.js.map +1 -0
  61. package/dist/node/projects/edit.js +11 -32
  62. package/dist/node/projects/edit.js.map +1 -1
  63. package/dist/types/content/_internal.d.ts +1 -0
  64. package/dist/types/core/behaviors/IWithEditorBehavior.d.ts +7 -2
  65. package/dist/types/core/schemas/getEntityEditorSchemas.d.ts +19 -0
  66. package/dist/types/core/schemas/index.d.ts +1 -1
  67. package/dist/types/core/schemas/shared/index.d.ts +1 -0
  68. package/dist/types/core/schemas/shared/subschemas.d.ts +29 -0
  69. package/dist/types/core/types/IHubProject.d.ts +0 -8
  70. package/dist/types/core/types/IServerEnrichments.d.ts +2 -0
  71. package/dist/types/initiatives/HubInitiative.d.ts +11 -5
  72. package/dist/types/initiatives/_internal/InitiativeSchema.d.ts +7 -0
  73. package/dist/types/initiatives/_internal/InitiativeUiSchemaEdit.d.ts +5 -0
  74. package/dist/types/items/index.d.ts +1 -0
  75. package/dist/types/items/is-services-directory-disabled.d.ts +9 -0
  76. package/dist/types/projects/HubProject.d.ts +8 -6
  77. package/dist/types/projects/_internal/ProjectSchema.d.ts +7 -0
  78. package/dist/types/projects/_internal/ProjectUiSchemaCreate.d.ts +7 -0
  79. package/dist/types/projects/_internal/ProjectUiSchemaEdit.d.ts +7 -0
  80. package/dist/types/projects/edit.d.ts +7 -4
  81. package/package.json +1 -1
  82. package/dist/esm/core/schemas/hubproject.js +0 -300
  83. package/dist/esm/core/schemas/hubproject.js.map +0 -1
  84. package/dist/node/core/schemas/hubproject.js +0 -303
  85. package/dist/node/core/schemas/hubproject.js.map +0 -1
  86. package/dist/types/core/schemas/hubproject.d.ts +0 -10
@@ -0,0 +1,7 @@
1
+ import { IUiSchema } from "../../core";
2
+ /**
3
+ * complete edit uiSchema for Hub Projects - this defines
4
+ * how the schema properties should be rendered in the
5
+ * project editing experience
6
+ */
7
+ export declare const uiSchema: IUiSchema;
@@ -27,10 +27,13 @@ export declare function updateProject(project: IHubProject, requestOptions: IUse
27
27
  */
28
28
  export declare function deleteProject(id: string, requestOptions: IUserRequestOptions): Promise<void>;
29
29
  /**
30
+ * DEPRECATED: the following will be removed at next breaking version
31
+ * use the getEntityEditorSchemas function instead (which this function
32
+ * has already been refactored to consume)
33
+ *
30
34
  * Get the editor config for for the HubProject entity.
31
- * @param i18nScope Translation scope to be interpolated into the schemas
32
- * @param type
33
- * @param options Optional hash of Element component options
34
- * @returns
35
+ * @param i18nScope translation scope to be interpolated into the uiSchema
36
+ * @param type editor type - corresonds to the returned uiSchema
37
+ * @param options optional hash of dynamic uiSchema element options
35
38
  */
36
39
  export declare function getHubProjectEditorConfig(i18nScope: string, type: EditorConfigType, options?: UiSchemaElementOptions[]): Promise<IEditorConfig>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/hub-common",
3
- "version": "12.14.0",
3
+ "version": "12.16.0",
4
4
  "description": "Common TypeScript types and utility functions for @esri/hub.js.",
5
5
  "main": "dist/node/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,300 +0,0 @@
1
- import { UiSchemaRuleEffects } from "./types";
2
- import { PROJECT_STATUSES } from "../types";
3
- export const HubProjectSchema = {
4
- required: ["name"],
5
- type: "object",
6
- properties: {
7
- name: {
8
- type: "string",
9
- minLength: 1,
10
- maxLength: 250,
11
- },
12
- summary: {
13
- type: "string",
14
- },
15
- description: {
16
- type: "string",
17
- },
18
- status: {
19
- type: "string",
20
- default: PROJECT_STATUSES.notStarted,
21
- enum: Object.keys(PROJECT_STATUSES),
22
- },
23
- extent: {
24
- type: "object",
25
- },
26
- view: {
27
- type: "object",
28
- properties: {
29
- featuredContentIds: {
30
- type: "array",
31
- items: {
32
- type: "string",
33
- },
34
- },
35
- featuredImage: {
36
- type: "object",
37
- },
38
- showMap: {
39
- type: "boolean",
40
- },
41
- timeline: {
42
- type: "object",
43
- },
44
- },
45
- },
46
- },
47
- };
48
- /**
49
- * Minimal UI Schema for Hub Project
50
- */
51
- export const HubProjectCreateUiSchema = {
52
- type: "Layout",
53
- elements: [
54
- {
55
- type: "Section",
56
- options: { section: "stepper", scale: "l" },
57
- elements: [
58
- {
59
- type: "Step",
60
- labelKey: "{{i18nScope}}.sections.details.label",
61
- elements: [
62
- {
63
- type: "Section",
64
- labelKey: "{{i18nScope}}.sections.basicInfo.label",
65
- elements: [
66
- {
67
- labelKey: "{{i18nScope}}.fields.name.label",
68
- scope: "/properties/name",
69
- type: "Control",
70
- },
71
- {
72
- labelKey: "{{i18nScope}}.fields.summary.label",
73
- scope: "/properties/summary",
74
- type: "Control",
75
- options: {
76
- control: "hub-field-input-input",
77
- type: "textarea",
78
- helperText: {
79
- labelKey: "{{i18nScope}}.fields.summary.helperText",
80
- },
81
- },
82
- },
83
- {
84
- labelKey: "{{i18nScope}}.fields.description.label",
85
- scope: "/properties/description",
86
- type: "Control",
87
- options: {
88
- control: "hub-field-input-input",
89
- type: "textarea",
90
- helperText: {
91
- labelKey: "{{i18nScope}}.fields.description.helperText",
92
- },
93
- },
94
- },
95
- ],
96
- },
97
- ],
98
- },
99
- {
100
- type: "Step",
101
- labelKey: "{{i18nScope}}.sections.location.label",
102
- rule: {
103
- effect: UiSchemaRuleEffects.DISABLE,
104
- condition: {
105
- scope: "/properties/name",
106
- schema: { const: "" },
107
- },
108
- },
109
- elements: [
110
- {
111
- type: "Section",
112
- labelKey: "{{i18nScope}}.sections.location.label",
113
- elements: [
114
- {
115
- scope: "/properties/extent",
116
- type: "Control",
117
- options: {
118
- control: "hub-field-input-boundary-picker",
119
- },
120
- },
121
- ],
122
- },
123
- ],
124
- },
125
- {
126
- type: "Step",
127
- labelKey: "{{i18nScope}}.sections.statusAndTimeline.label",
128
- rule: {
129
- effect: UiSchemaRuleEffects.DISABLE,
130
- condition: {
131
- scope: "/properties/name",
132
- schema: { const: "" },
133
- },
134
- },
135
- elements: [
136
- {
137
- type: "Section",
138
- labelKey: "{{i18nScope}}.sections.status.label",
139
- elements: [
140
- {
141
- labelKey: "{{i18nScope}}.fields.status.label",
142
- scope: "/properties/status",
143
- type: "Control",
144
- options: {
145
- control: "hub-field-input-select",
146
- enum: {
147
- i18nScope: "{{i18nScope}}.fields.status.enum",
148
- },
149
- },
150
- },
151
- ],
152
- },
153
- {
154
- type: "Section",
155
- labelKey: "{{i18nScope}}.sections.timeline.label",
156
- elements: [
157
- {
158
- scope: "/properties/view/properties/timeline",
159
- type: "Control",
160
- options: {
161
- control: "arcgis-hub-timeline-editor",
162
- },
163
- },
164
- ],
165
- },
166
- ],
167
- },
168
- ],
169
- },
170
- ],
171
- };
172
- /**
173
- * Complete UI Schema for Hub Project
174
- */
175
- export const HubProjectEditUiSchema = {
176
- type: "Layout",
177
- elements: [
178
- {
179
- type: "Section",
180
- labelKey: "{{i18nScope}}.sections.basicInfo.label",
181
- elements: [
182
- {
183
- labelKey: "{{i18nScope}}.fields.name.label",
184
- scope: "/properties/name",
185
- type: "Control",
186
- },
187
- {
188
- labelKey: "{{i18nScope}}.fields.summary.label",
189
- scope: "/properties/summary",
190
- type: "Control",
191
- options: {
192
- control: "hub-field-input-input",
193
- type: "textarea",
194
- helperText: {
195
- labelKey: "{{i18nScope}}.fields.summary.helperText",
196
- },
197
- },
198
- },
199
- {
200
- labelKey: "{{i18nScope}}.fields.description.label",
201
- scope: "/properties/description",
202
- type: "Control",
203
- options: {
204
- control: "hub-field-input-input",
205
- type: "textarea",
206
- helperText: {
207
- labelKey: "{{i18nScope}}.fields.description.helperText",
208
- },
209
- },
210
- },
211
- {
212
- labelKey: "{{i18nScope}}.fields.featuredImage.label",
213
- scope: "/properties/view/properties/featuredImage",
214
- type: "Control",
215
- options: {
216
- control: "hub-field-input-image-picker",
217
- maxWidth: 727,
218
- maxHeight: 484,
219
- aspectRatio: 1.5,
220
- helperText: {
221
- labelKey: "{{i18nScope}}.fields.featuredImage.helperText",
222
- },
223
- sizeDescription: {
224
- labelKey: "{{i18nScope}}.fields.featuredImage.sizeDescription",
225
- },
226
- },
227
- },
228
- ],
229
- },
230
- {
231
- type: "Section",
232
- labelKey: "{{i18nScope}}.sections.location.label",
233
- elements: [
234
- {
235
- scope: "/properties/extent",
236
- type: "Control",
237
- options: {
238
- control: "hub-field-input-boundary-picker",
239
- },
240
- },
241
- {
242
- labelKey: "{{i18nScope}}.fields.showMap.label",
243
- scope: "/properties/view/properties/showMap",
244
- type: "Control",
245
- },
246
- ],
247
- },
248
- {
249
- type: "Section",
250
- labelKey: "{{i18nScope}}.sections.status.label",
251
- elements: [
252
- {
253
- scope: "/properties/status",
254
- type: "Control",
255
- labelKey: "{{i18nScope}}.fields.status.label",
256
- options: {
257
- control: "hub-field-input-select",
258
- enum: {
259
- i18nScope: "{{i18nScope}}.fields.status.enum",
260
- },
261
- },
262
- },
263
- ],
264
- },
265
- {
266
- type: "Section",
267
- labelKey: "{{i18nScope}}.sections.timeline.label",
268
- elements: [
269
- {
270
- scope: "/properties/view/properties/timeline",
271
- type: "Control",
272
- options: {
273
- control: "arcgis-hub-timeline-editor",
274
- },
275
- },
276
- ],
277
- },
278
- {
279
- type: "Section",
280
- labelKey: "{{i18nScope}}.sections.featuredContent.label",
281
- options: {
282
- helperText: {
283
- labelKey: "{{i18nScope}}.sections.featuredContent.helperText",
284
- },
285
- },
286
- elements: [
287
- {
288
- scope: "/properties/view/properties/featuredContentIds",
289
- type: "Control",
290
- options: {
291
- control: "hub-field-input-gallery-picker",
292
- targetEntity: "item",
293
- limit: 4,
294
- },
295
- },
296
- ],
297
- },
298
- ],
299
- };
300
- //# sourceMappingURL=hubproject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hubproject.js","sourceRoot":"","sources":["../../../../src/core/schemas/hubproject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,CAAC,MAAM,gBAAgB,GAAyB;IACpD,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;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AgC;wBACzC,YAAY,EAAE,MAAM;wBACpB,KAAK,EAAE,CAAC;qBACT;iBACF;aACF;SACF;KACF;CACF,CAAC"}
@@ -1,303 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HubProjectEditUiSchema = exports.HubProjectCreateUiSchema = exports.HubProjectSchema = void 0;
4
- const types_1 = require("./types");
5
- const types_2 = require("../types");
6
- exports.HubProjectSchema = {
7
- required: ["name"],
8
- type: "object",
9
- properties: {
10
- name: {
11
- type: "string",
12
- minLength: 1,
13
- maxLength: 250,
14
- },
15
- summary: {
16
- type: "string",
17
- },
18
- description: {
19
- type: "string",
20
- },
21
- status: {
22
- type: "string",
23
- default: types_2.PROJECT_STATUSES.notStarted,
24
- enum: Object.keys(types_2.PROJECT_STATUSES),
25
- },
26
- extent: {
27
- type: "object",
28
- },
29
- view: {
30
- type: "object",
31
- properties: {
32
- featuredContentIds: {
33
- type: "array",
34
- items: {
35
- type: "string",
36
- },
37
- },
38
- featuredImage: {
39
- type: "object",
40
- },
41
- showMap: {
42
- type: "boolean",
43
- },
44
- timeline: {
45
- type: "object",
46
- },
47
- },
48
- },
49
- },
50
- };
51
- /**
52
- * Minimal UI Schema for Hub Project
53
- */
54
- exports.HubProjectCreateUiSchema = {
55
- type: "Layout",
56
- elements: [
57
- {
58
- type: "Section",
59
- options: { section: "stepper", scale: "l" },
60
- elements: [
61
- {
62
- type: "Step",
63
- labelKey: "{{i18nScope}}.sections.details.label",
64
- elements: [
65
- {
66
- type: "Section",
67
- labelKey: "{{i18nScope}}.sections.basicInfo.label",
68
- elements: [
69
- {
70
- labelKey: "{{i18nScope}}.fields.name.label",
71
- scope: "/properties/name",
72
- type: "Control",
73
- },
74
- {
75
- labelKey: "{{i18nScope}}.fields.summary.label",
76
- scope: "/properties/summary",
77
- type: "Control",
78
- options: {
79
- control: "hub-field-input-input",
80
- type: "textarea",
81
- helperText: {
82
- labelKey: "{{i18nScope}}.fields.summary.helperText",
83
- },
84
- },
85
- },
86
- {
87
- labelKey: "{{i18nScope}}.fields.description.label",
88
- scope: "/properties/description",
89
- type: "Control",
90
- options: {
91
- control: "hub-field-input-input",
92
- type: "textarea",
93
- helperText: {
94
- labelKey: "{{i18nScope}}.fields.description.helperText",
95
- },
96
- },
97
- },
98
- ],
99
- },
100
- ],
101
- },
102
- {
103
- type: "Step",
104
- labelKey: "{{i18nScope}}.sections.location.label",
105
- rule: {
106
- effect: types_1.UiSchemaRuleEffects.DISABLE,
107
- condition: {
108
- scope: "/properties/name",
109
- schema: { const: "" },
110
- },
111
- },
112
- elements: [
113
- {
114
- type: "Section",
115
- labelKey: "{{i18nScope}}.sections.location.label",
116
- elements: [
117
- {
118
- scope: "/properties/extent",
119
- type: "Control",
120
- options: {
121
- control: "hub-field-input-boundary-picker",
122
- },
123
- },
124
- ],
125
- },
126
- ],
127
- },
128
- {
129
- type: "Step",
130
- labelKey: "{{i18nScope}}.sections.statusAndTimeline.label",
131
- rule: {
132
- effect: types_1.UiSchemaRuleEffects.DISABLE,
133
- condition: {
134
- scope: "/properties/name",
135
- schema: { const: "" },
136
- },
137
- },
138
- elements: [
139
- {
140
- type: "Section",
141
- labelKey: "{{i18nScope}}.sections.status.label",
142
- elements: [
143
- {
144
- labelKey: "{{i18nScope}}.fields.status.label",
145
- scope: "/properties/status",
146
- type: "Control",
147
- options: {
148
- control: "hub-field-input-select",
149
- enum: {
150
- i18nScope: "{{i18nScope}}.fields.status.enum",
151
- },
152
- },
153
- },
154
- ],
155
- },
156
- {
157
- type: "Section",
158
- labelKey: "{{i18nScope}}.sections.timeline.label",
159
- elements: [
160
- {
161
- scope: "/properties/view/properties/timeline",
162
- type: "Control",
163
- options: {
164
- control: "arcgis-hub-timeline-editor",
165
- },
166
- },
167
- ],
168
- },
169
- ],
170
- },
171
- ],
172
- },
173
- ],
174
- };
175
- /**
176
- * Complete UI Schema for Hub Project
177
- */
178
- exports.HubProjectEditUiSchema = {
179
- type: "Layout",
180
- elements: [
181
- {
182
- type: "Section",
183
- labelKey: "{{i18nScope}}.sections.basicInfo.label",
184
- elements: [
185
- {
186
- labelKey: "{{i18nScope}}.fields.name.label",
187
- scope: "/properties/name",
188
- type: "Control",
189
- },
190
- {
191
- labelKey: "{{i18nScope}}.fields.summary.label",
192
- scope: "/properties/summary",
193
- type: "Control",
194
- options: {
195
- control: "hub-field-input-input",
196
- type: "textarea",
197
- helperText: {
198
- labelKey: "{{i18nScope}}.fields.summary.helperText",
199
- },
200
- },
201
- },
202
- {
203
- labelKey: "{{i18nScope}}.fields.description.label",
204
- scope: "/properties/description",
205
- type: "Control",
206
- options: {
207
- control: "hub-field-input-input",
208
- type: "textarea",
209
- helperText: {
210
- labelKey: "{{i18nScope}}.fields.description.helperText",
211
- },
212
- },
213
- },
214
- {
215
- labelKey: "{{i18nScope}}.fields.featuredImage.label",
216
- scope: "/properties/view/properties/featuredImage",
217
- type: "Control",
218
- options: {
219
- control: "hub-field-input-image-picker",
220
- maxWidth: 727,
221
- maxHeight: 484,
222
- aspectRatio: 1.5,
223
- helperText: {
224
- labelKey: "{{i18nScope}}.fields.featuredImage.helperText",
225
- },
226
- sizeDescription: {
227
- labelKey: "{{i18nScope}}.fields.featuredImage.sizeDescription",
228
- },
229
- },
230
- },
231
- ],
232
- },
233
- {
234
- type: "Section",
235
- labelKey: "{{i18nScope}}.sections.location.label",
236
- elements: [
237
- {
238
- scope: "/properties/extent",
239
- type: "Control",
240
- options: {
241
- control: "hub-field-input-boundary-picker",
242
- },
243
- },
244
- {
245
- labelKey: "{{i18nScope}}.fields.showMap.label",
246
- scope: "/properties/view/properties/showMap",
247
- type: "Control",
248
- },
249
- ],
250
- },
251
- {
252
- type: "Section",
253
- labelKey: "{{i18nScope}}.sections.status.label",
254
- elements: [
255
- {
256
- scope: "/properties/status",
257
- type: "Control",
258
- labelKey: "{{i18nScope}}.fields.status.label",
259
- options: {
260
- control: "hub-field-input-select",
261
- enum: {
262
- i18nScope: "{{i18nScope}}.fields.status.enum",
263
- },
264
- },
265
- },
266
- ],
267
- },
268
- {
269
- type: "Section",
270
- labelKey: "{{i18nScope}}.sections.timeline.label",
271
- elements: [
272
- {
273
- scope: "/properties/view/properties/timeline",
274
- type: "Control",
275
- options: {
276
- control: "arcgis-hub-timeline-editor",
277
- },
278
- },
279
- ],
280
- },
281
- {
282
- type: "Section",
283
- labelKey: "{{i18nScope}}.sections.featuredContent.label",
284
- options: {
285
- helperText: {
286
- labelKey: "{{i18nScope}}.sections.featuredContent.helperText",
287
- },
288
- },
289
- elements: [
290
- {
291
- scope: "/properties/view/properties/featuredContentIds",
292
- type: "Control",
293
- options: {
294
- control: "hub-field-input-gallery-picker",
295
- targetEntity: "item",
296
- limit: 4,
297
- },
298
- },
299
- ],
300
- },
301
- ],
302
- };
303
- //# sourceMappingURL=hubproject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hubproject.js","sourceRoot":"","sources":["../../../../src/core/schemas/hubproject.ts"],"names":[],"mappings":";;;AAAA,mCAA+E;AAC/E,oCAA4C;AAE/B,QAAA,gBAAgB,GAAyB;IACpD,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,GAAG;SACf;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;SACf;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;SACf;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,wBAAgB,CAAC,UAAU;YACpC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,wBAAgB,CAAC;SACpC;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,kBAAkB,EAAE;oBAClB,IAAI,EAAE,OAAO;oBACb,K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IAAI,EAAE,SAAS;iBAChB;aACF;SACF;QACD;YACE,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,qCAAqC;YAC/C,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,oBAAoB;oBAC3B,IAAI,EAAE,SAAS;oBACf,QAAQ,EAAE,mCAAmC;oBAC7C,OAAO,EAAE;wBACP,OAAO,EAAE,wBAAwB;wBACjC,IAAI,EAAE;4BACJ,SAAS,EAAE,kCAAkC;yBAC9C;qBACF;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,uCAAuC;YACjD,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,sCAAsC;oBAC7C,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE;wBACP,OAAO,EAAE,4BAA4B;qBACtC;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,8CAA8C;YACxD,OAAO,EAAE;gBACP,UAAU,EAAE;oBACV,QAAQ,EAAE,mDAAmD;iBAC9D;aACF;YACD,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,gDAAgD;oBACvD,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE;wBACP,OAAO,EAAE,gCAAgC;wBACzC,YAAY,EAAE,MAAM;wBACpB,KAAK,EAAE,CAAC;qBACT;iBACF;aACF;SACF;KACF;CACF,CAAC"}
@@ -1,10 +0,0 @@
1
- import { IConfigurationSchema, IUiSchema } from "./types";
2
- export declare const HubProjectSchema: IConfigurationSchema;
3
- /**
4
- * Minimal UI Schema for Hub Project
5
- */
6
- export declare const HubProjectCreateUiSchema: IUiSchema;
7
- /**
8
- * Complete UI Schema for Hub Project
9
- */
10
- export declare const HubProjectEditUiSchema: IUiSchema;