@esri/hub-common 20.8.0 → 20.9.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 (57) hide show
  1. package/dist/esm/core/schemas/getEditorConfig.js.map +1 -1
  2. package/dist/esm/core/schemas/internal/embed/EmbedSchema.js +8 -0
  3. package/dist/esm/core/schemas/internal/embed/EmbedSchema.js.map +1 -0
  4. package/dist/esm/core/schemas/internal/embed/EmbedUiSchema.js +15 -0
  5. package/dist/esm/core/schemas/internal/embed/EmbedUiSchema.js.map +1 -0
  6. package/dist/esm/core/schemas/internal/events/EventGalleryCardUiSchema.js.map +1 -1
  7. package/dist/esm/core/schemas/internal/follow/FollowCardUiSchema.js.map +1 -1
  8. package/dist/esm/core/schemas/internal/getCardEditorSchemas.js +19 -4
  9. package/dist/esm/core/schemas/internal/getCardEditorSchemas.js.map +1 -1
  10. package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js +364 -362
  11. package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
  12. package/dist/esm/core/schemas/types.js +6 -0
  13. package/dist/esm/core/schemas/types.js.map +1 -1
  14. package/dist/esm/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js +18 -0
  15. package/dist/esm/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js.map +1 -1
  16. package/dist/esm/initiative-templates/defaults.js +6 -0
  17. package/dist/esm/initiative-templates/defaults.js.map +1 -1
  18. package/dist/esm/initiative-templates/edit.js +8 -0
  19. package/dist/esm/initiative-templates/edit.js.map +1 -1
  20. package/dist/esm/permissions/HubPermissionPolicies.js +7 -0
  21. package/dist/esm/permissions/HubPermissionPolicies.js.map +1 -1
  22. package/dist/esm/permissions/_internal/constants.js +1 -0
  23. package/dist/esm/permissions/_internal/constants.js.map +1 -1
  24. package/dist/node/core/schemas/getEditorConfig.js.map +1 -1
  25. package/dist/node/core/schemas/internal/embed/EmbedSchema.js +11 -0
  26. package/dist/node/core/schemas/internal/embed/EmbedSchema.js.map +1 -0
  27. package/dist/node/core/schemas/internal/embed/EmbedUiSchema.js +18 -0
  28. package/dist/node/core/schemas/internal/embed/EmbedUiSchema.js.map +1 -0
  29. package/dist/node/core/schemas/internal/events/EventGalleryCardUiSchema.js.map +1 -1
  30. package/dist/node/core/schemas/internal/follow/FollowCardUiSchema.js.map +1 -1
  31. package/dist/node/core/schemas/internal/getCardEditorSchemas.js +19 -4
  32. package/dist/node/core/schemas/internal/getCardEditorSchemas.js.map +1 -1
  33. package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js +364 -362
  34. package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
  35. package/dist/node/core/schemas/types.js +7 -1
  36. package/dist/node/core/schemas/types.js.map +1 -1
  37. package/dist/node/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js +18 -0
  38. package/dist/node/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js.map +1 -1
  39. package/dist/node/initiative-templates/defaults.js +6 -0
  40. package/dist/node/initiative-templates/defaults.js.map +1 -1
  41. package/dist/node/initiative-templates/edit.js +8 -0
  42. package/dist/node/initiative-templates/edit.js.map +1 -1
  43. package/dist/node/permissions/HubPermissionPolicies.js +7 -0
  44. package/dist/node/permissions/HubPermissionPolicies.js.map +1 -1
  45. package/dist/node/permissions/_internal/constants.js +1 -0
  46. package/dist/node/permissions/_internal/constants.js.map +1 -1
  47. package/dist/types/core/schemas/getEditorConfig.d.ts +7 -6
  48. package/dist/types/core/schemas/internal/EditorOptions.d.ts +9 -5
  49. package/dist/types/core/schemas/internal/embed/EmbedSchema.d.ts +2 -0
  50. package/dist/types/core/schemas/internal/embed/EmbedUiSchema.d.ts +4 -0
  51. package/dist/types/core/schemas/internal/events/EventGalleryCardUiSchema.d.ts +2 -2
  52. package/dist/types/core/schemas/internal/follow/FollowCardUiSchema.d.ts +2 -2
  53. package/dist/types/core/schemas/internal/metrics/StatCardUiSchema.d.ts +2 -2
  54. package/dist/types/core/schemas/types.d.ts +8 -2
  55. package/dist/types/core/types/IHubInitiativeTemplate.d.ts +6 -3
  56. package/dist/types/permissions/_internal/constants.d.ts +2 -2
  57. package/package.json +1 -1
@@ -5,409 +5,411 @@ import { ICONS } from "./interfaces";
5
5
  * Exports the uiSchema of the stat card
6
6
  * @returns
7
7
  */
8
- export const buildUiSchema = async (i18nScope, config, context) => {
9
- const { themeColors } = config;
10
- return {
11
- type: "Layout",
12
- elements: [
13
- {
14
- type: "Section",
15
- labelKey: `statistic.sectionTitle`,
16
- options: {
17
- section: "block",
18
- open: true,
19
- },
20
- elements: [
21
- {
22
- type: "Control",
23
- scope: "/properties/type",
24
- labelKey: `statistic.type.label`,
25
- options: {
26
- control: "hub-field-input-tile-select",
27
- rules: [
28
- undefined,
29
- undefined,
30
- [
31
- {
32
- effect: UiSchemaRuleEffects.SHOW,
33
- conditions: [
34
- // commented out for now, as itemQuery was a prototyped fearure that was not implemented.
35
- // will be replaced with requestings metrics in the near future
36
- // checkPermission("hub:availability:alpha", context).access,
37
- false,
38
- ],
39
- },
8
+ export const buildUiSchema = (_i18nScope, config, _context) => {
9
+ return new Promise((resolve) => {
10
+ const { themeColors } = config;
11
+ resolve({
12
+ type: "Layout",
13
+ elements: [
14
+ {
15
+ type: "Section",
16
+ labelKey: `statistic.sectionTitle`,
17
+ options: {
18
+ section: "block",
19
+ open: true,
20
+ },
21
+ elements: [
22
+ {
23
+ type: "Control",
24
+ scope: "/properties/type",
25
+ labelKey: `statistic.type.label`,
26
+ options: {
27
+ control: "hub-field-input-tile-select",
28
+ rules: [
29
+ undefined,
30
+ undefined,
31
+ [
32
+ {
33
+ effect: UiSchemaRuleEffects.SHOW,
34
+ conditions: [
35
+ // commented out for now, as itemQuery was a prototyped fearure that was not implemented.
36
+ // will be replaced with requestings metrics in the near future
37
+ // checkPermission("hub:availability:alpha", context).access,
38
+ false,
39
+ ],
40
+ },
41
+ ],
40
42
  ],
41
- ],
42
- enum: {
43
- i18nScope: `statistic.type.enum`,
43
+ enum: {
44
+ i18nScope: `statistic.type.enum`,
45
+ },
44
46
  },
45
47
  },
46
- },
47
- {
48
- labelKey: `statistic.displayValue`,
49
- scope: "/properties/value",
50
- type: "Control",
51
- rule: SHOW_FOR_STATIC_RULE,
52
- options: {
53
- control: "hub-field-input-input",
54
- },
55
- },
56
- {
57
- scope: "/properties/dynamicMetric",
58
- type: "Control",
59
- labelKey: `statistic.dataSource`,
60
- rule: SHOW_FOR_DYNAMIC_RULE,
61
- options: {
62
- control: "hub-composite-input-service-query-metric",
48
+ {
49
+ labelKey: `statistic.displayValue`,
50
+ scope: "/properties/value",
51
+ type: "Control",
52
+ rule: SHOW_FOR_STATIC_RULE,
53
+ options: {
54
+ control: "hub-field-input-input",
55
+ },
63
56
  },
64
- },
65
- {
66
- type: "Section",
67
- labelKey: `formatting.sectionTitle`,
68
- scope: "/properties/allowUnitFormatting",
69
- options: {
70
- section: "subblock",
71
- scale: "m",
72
- toggleDisplay: "switch",
57
+ {
58
+ scope: "/properties/dynamicMetric",
59
+ type: "Control",
60
+ labelKey: `statistic.dataSource`,
61
+ rule: SHOW_FOR_DYNAMIC_RULE,
62
+ options: {
63
+ control: "hub-composite-input-service-query-metric",
64
+ },
73
65
  },
74
- elements: [
75
- {
76
- labelKey: `formatting.unit.label`,
77
- scope: "/properties/unit",
78
- type: "Control",
79
- rule: SHOW_FOR_UNITS_SECTION_ENABLED,
80
- options: {
81
- helperText: {
82
- labelKey: `formatting.unit.helperText`,
83
- placement: "bottom",
84
- },
85
- },
66
+ {
67
+ type: "Section",
68
+ labelKey: `formatting.sectionTitle`,
69
+ scope: "/properties/allowUnitFormatting",
70
+ options: {
71
+ section: "subblock",
72
+ scale: "m",
73
+ toggleDisplay: "switch",
86
74
  },
87
- {
88
- labelKey: `formatting.unitPosition.label`,
89
- scope: "/properties/unitPosition",
90
- type: "Control",
91
- rule: SHOW_FOR_UNITS_SECTION_ENABLED,
92
- options: {
93
- helperText: {
94
- labelKey: `formatting.unitPosition.helperText`,
95
- placement: "bottom",
96
- },
97
- control: "hub-field-input-select",
98
- enum: {
99
- i18nScope: `formatting.unitPosition.enum`,
75
+ elements: [
76
+ {
77
+ labelKey: `formatting.unit.label`,
78
+ scope: "/properties/unit",
79
+ type: "Control",
80
+ rule: SHOW_FOR_UNITS_SECTION_ENABLED,
81
+ options: {
82
+ helperText: {
83
+ labelKey: `formatting.unit.helperText`,
84
+ placement: "bottom",
85
+ },
100
86
  },
101
87
  },
102
- },
103
- ],
104
- },
105
- {
106
- type: "Section",
107
- labelKey: `advancedConfig.label`,
108
- options: {
109
- section: "subblock",
110
- scale: "m",
111
- },
112
- rule: SHOW_FOR_DYNAMIC_RULE,
113
- elements: [
114
- {
115
- scope: "/properties/serverTimeout",
116
- labelKey: `advancedConfig.serverTimeout.label`,
117
- type: "Control",
118
- rule: SHOW_FOR_DYNAMIC_RULE,
119
- options: {
120
- control: "hub-field-input-input",
121
- type: "number",
122
- helperText: {
123
- labelKey: `advancedConfig.serverTimeout.helperText`,
124
- placement: "bottom",
125
- },
126
- messages: [
127
- {
128
- type: "ERROR",
129
- keyword: "type",
130
- labelKey: `advancedConfig.serverTimeout.errors.type`,
131
- icon: true,
132
- },
133
- {
134
- type: "ERROR",
135
- keyword: "minimum",
136
- labelKey: `advancedConfig.serverTimeout.errors.minimum`,
137
- icon: true,
88
+ {
89
+ labelKey: `formatting.unitPosition.label`,
90
+ scope: "/properties/unitPosition",
91
+ type: "Control",
92
+ rule: SHOW_FOR_UNITS_SECTION_ENABLED,
93
+ options: {
94
+ helperText: {
95
+ labelKey: `formatting.unitPosition.helperText`,
96
+ placement: "bottom",
138
97
  },
139
- {
140
- type: "ERROR",
141
- keyword: "maximum",
142
- labelKey: `advancedConfig.serverTimeout.errors.maximum`,
143
- icon: true,
98
+ control: "hub-field-input-select",
99
+ enum: {
100
+ i18nScope: `formatting.unitPosition.enum`,
144
101
  },
145
- ],
102
+ },
146
103
  },
104
+ ],
105
+ },
106
+ {
107
+ type: "Section",
108
+ labelKey: `advancedConfig.label`,
109
+ options: {
110
+ section: "subblock",
111
+ scale: "m",
147
112
  },
148
- ],
149
- },
150
- ],
151
- },
152
- {
153
- type: "Section",
154
- labelKey: `details.sectionTitle`,
155
- options: {
156
- section: "block",
113
+ rule: SHOW_FOR_DYNAMIC_RULE,
114
+ elements: [
115
+ {
116
+ scope: "/properties/serverTimeout",
117
+ labelKey: `advancedConfig.serverTimeout.label`,
118
+ type: "Control",
119
+ rule: SHOW_FOR_DYNAMIC_RULE,
120
+ options: {
121
+ control: "hub-field-input-input",
122
+ type: "number",
123
+ helperText: {
124
+ labelKey: `advancedConfig.serverTimeout.helperText`,
125
+ placement: "bottom",
126
+ },
127
+ messages: [
128
+ {
129
+ type: "ERROR",
130
+ keyword: "type",
131
+ labelKey: `advancedConfig.serverTimeout.errors.type`,
132
+ icon: true,
133
+ },
134
+ {
135
+ type: "ERROR",
136
+ keyword: "minimum",
137
+ labelKey: `advancedConfig.serverTimeout.errors.minimum`,
138
+ icon: true,
139
+ },
140
+ {
141
+ type: "ERROR",
142
+ keyword: "maximum",
143
+ labelKey: `advancedConfig.serverTimeout.errors.maximum`,
144
+ icon: true,
145
+ },
146
+ ],
147
+ },
148
+ },
149
+ ],
150
+ },
151
+ ],
157
152
  },
158
- elements: [
159
- {
160
- labelKey: `details.title`,
161
- scope: "/properties/cardTitle",
162
- type: "Control",
163
- },
164
- {
165
- labelKey: `details.subtitle`,
166
- scope: "/properties/subtitle",
167
- type: "Control",
153
+ {
154
+ type: "Section",
155
+ labelKey: `details.sectionTitle`,
156
+ options: {
157
+ section: "block",
168
158
  },
169
- {
170
- labelKey: `details.trailingText.label`,
171
- scope: "/properties/trailingText",
172
- type: "Control",
173
- options: {
174
- helperText: {
175
- labelKey: `details.trailingText.helperText`,
176
- placement: "bottom",
177
- },
159
+ elements: [
160
+ {
161
+ labelKey: `details.title`,
162
+ scope: "/properties/cardTitle",
163
+ type: "Control",
178
164
  },
179
- },
180
- {
181
- type: "Section",
182
- labelKey: `details.link.sectionTitle`,
183
- scope: "/properties/allowLink",
184
- options: {
185
- section: "subblock",
186
- scale: "m",
187
- toggleDisplay: "switch",
165
+ {
166
+ labelKey: `details.subtitle`,
167
+ scope: "/properties/subtitle",
168
+ type: "Control",
188
169
  },
189
- rule: SHOW_FOR_STATIC_RULE,
190
- elements: [
191
- {
192
- labelKey: `details.link.sourceLink`,
193
- scope: "/properties/sourceLink",
194
- type: "Control",
195
- rule: SHOW_FOR_LINK_SECTION_ENABLED_AND_STATIC,
196
- options: {
197
- placeholder: "https://esri.com",
198
- messages: [
199
- {
200
- type: "ERROR",
201
- keyword: "required",
202
- icon: true,
203
- labelKey: `errors.sourceLink.required`,
204
- allowShowBeforeInteract: true,
205
- },
206
- {
207
- type: "ERROR",
208
- keyword: "format",
209
- icon: true,
210
- labelKey: `errors.sourceLink.formatError`,
211
- },
212
- {
213
- type: "ERROR",
214
- keyword: "if",
215
- hidden: true,
216
- },
217
- ],
170
+ {
171
+ labelKey: `details.trailingText.label`,
172
+ scope: "/properties/trailingText",
173
+ type: "Control",
174
+ options: {
175
+ helperText: {
176
+ labelKey: `details.trailingText.helperText`,
177
+ placement: "bottom",
218
178
  },
219
179
  },
220
- {
221
- labelKey: `details.link.sourceTitle`,
222
- scope: "/properties/sourceTitle",
223
- type: "Control",
224
- rule: SHOW_FOR_LINK_SECTION_ENABLED_AND_STATIC,
180
+ },
181
+ {
182
+ type: "Section",
183
+ labelKey: `details.link.sectionTitle`,
184
+ scope: "/properties/allowLink",
185
+ options: {
186
+ section: "subblock",
187
+ scale: "m",
188
+ toggleDisplay: "switch",
225
189
  },
226
- ],
227
- },
228
- {
229
- type: "Control",
230
- scope: "/properties/allowDynamicLink",
231
- labelKey: `details.allowDynamicLink`,
232
- rule: SHOW_FOR_DYNAMIC_RULE,
233
- options: {
234
- layout: "inline-space-between",
235
- control: "hub-field-input-switch",
190
+ rule: SHOW_FOR_STATIC_RULE,
191
+ elements: [
192
+ {
193
+ labelKey: `details.link.sourceLink`,
194
+ scope: "/properties/sourceLink",
195
+ type: "Control",
196
+ rule: SHOW_FOR_LINK_SECTION_ENABLED_AND_STATIC,
197
+ options: {
198
+ placeholder: "https://esri.com",
199
+ messages: [
200
+ {
201
+ type: "ERROR",
202
+ keyword: "required",
203
+ icon: true,
204
+ labelKey: `errors.sourceLink.required`,
205
+ allowShowBeforeInteract: true,
206
+ },
207
+ {
208
+ type: "ERROR",
209
+ keyword: "format",
210
+ icon: true,
211
+ labelKey: `errors.sourceLink.formatError`,
212
+ },
213
+ {
214
+ type: "ERROR",
215
+ keyword: "if",
216
+ hidden: true,
217
+ },
218
+ ],
219
+ },
220
+ },
221
+ {
222
+ labelKey: `details.link.sourceTitle`,
223
+ scope: "/properties/sourceTitle",
224
+ type: "Control",
225
+ rule: SHOW_FOR_LINK_SECTION_ENABLED_AND_STATIC,
226
+ },
227
+ ],
236
228
  },
237
- },
238
- ],
239
- },
240
- {
241
- type: "Section",
242
- labelKey: `appearance.sectionTitle`,
243
- options: { section: "block" },
244
- elements: [
245
- {
246
- labelKey: `appearance.layout.label`,
247
- scope: "/properties/layout",
248
- type: "Control",
249
- options: {
250
- control: "hub-field-input-select",
251
- enum: {
252
- i18nScope: `appearance.layout.enum`,
229
+ {
230
+ type: "Control",
231
+ scope: "/properties/allowDynamicLink",
232
+ labelKey: `details.allowDynamicLink`,
233
+ rule: SHOW_FOR_DYNAMIC_RULE,
234
+ options: {
235
+ layout: "inline-space-between",
236
+ control: "hub-field-input-switch",
253
237
  },
254
238
  },
255
- },
256
- {
257
- labelKey: `appearance.textAlign`,
258
- scope: "/properties/textAlign",
259
- type: "Control",
260
- options: {
261
- control: "hub-field-input-alignment",
239
+ ],
240
+ },
241
+ {
242
+ type: "Section",
243
+ labelKey: `appearance.sectionTitle`,
244
+ options: { section: "block" },
245
+ elements: [
246
+ {
247
+ labelKey: `appearance.layout.label`,
248
+ scope: "/properties/layout",
249
+ type: "Control",
250
+ options: {
251
+ control: "hub-field-input-select",
252
+ enum: {
253
+ i18nScope: `appearance.layout.enum`,
254
+ },
255
+ },
262
256
  },
263
- },
264
- {
265
- labelKey: `appearance.valueColor`,
266
- scope: "/properties/valueColor",
267
- type: "Control",
268
- options: {
269
- control: "hub-field-input-color",
270
- savedColors: themeColors,
257
+ {
258
+ labelKey: `appearance.textAlign`,
259
+ scope: "/properties/textAlign",
260
+ type: "Control",
261
+ options: {
262
+ control: "hub-field-input-alignment",
263
+ },
271
264
  },
272
- },
273
- {
274
- labelKey: `appearance.dropShadow.label`,
275
- scope: "/properties/dropShadow",
276
- type: "Control",
277
- rule: HIDE_FOR_ALL,
278
- options: {
279
- control: "hub-field-input-select",
280
- enum: {
281
- i18nScope: `appearance.dropShadow.enum`,
265
+ {
266
+ labelKey: `appearance.valueColor`,
267
+ scope: "/properties/valueColor",
268
+ type: "Control",
269
+ options: {
270
+ control: "hub-field-input-color",
271
+ savedColors: themeColors,
282
272
  },
283
273
  },
284
- },
285
- {
286
- type: "Section",
287
- labelKey: `appearance.styleSpecificSettings.label`,
288
- rule: SHOW_FOR_SIMPLE_RULE,
289
- options: {
290
- helperText: {
291
- labelKey: `appearance.styleSpecificSettings.helperVizText`,
274
+ {
275
+ labelKey: `appearance.dropShadow.label`,
276
+ scope: "/properties/dropShadow",
277
+ type: "Control",
278
+ rule: HIDE_FOR_ALL,
279
+ options: {
280
+ control: "hub-field-input-select",
281
+ enum: {
282
+ i18nScope: `appearance.dropShadow.enum`,
283
+ },
292
284
  },
293
285
  },
294
- elements: [
295
- {
296
- labelKey: `appearance.visualInterest.label`,
297
- scope: "/properties/visualInterest",
298
- type: "Control",
299
- options: {
300
- control: "hub-field-input-select",
301
- enum: {
302
- i18nScope: `appearance.visualInterest.enum`,
303
- },
286
+ {
287
+ type: "Section",
288
+ labelKey: `appearance.styleSpecificSettings.label`,
289
+ rule: SHOW_FOR_SIMPLE_RULE,
290
+ options: {
291
+ helperText: {
292
+ labelKey: `appearance.styleSpecificSettings.helperVizText`,
304
293
  },
305
294
  },
306
- {
307
- labelKey: `appearance.icon.label`,
308
- scope: "/properties/icon",
309
- type: "Control",
310
- rule: SHOW_FOR_ICON_RULE,
311
- options: {
312
- control: "hub-field-input-combobox",
313
- items: [
314
- {
315
- value: ICONS.caretUp,
316
- labelKey: `appearance.icon.caretUp.label`,
317
- icon: ICONS.caretUp,
295
+ elements: [
296
+ {
297
+ labelKey: `appearance.visualInterest.label`,
298
+ scope: "/properties/visualInterest",
299
+ type: "Control",
300
+ options: {
301
+ control: "hub-field-input-select",
302
+ enum: {
303
+ i18nScope: `appearance.visualInterest.enum`,
318
304
  },
319
- {
320
- value: ICONS.caretDown,
321
- labelKey: `appearance.icon.caretDown.label`,
322
- icon: ICONS.caretDown,
323
- },
324
- {
325
- value: ICONS.caretDouble,
326
- labelKey: `appearance.icon.caretDouble.label`,
327
- icon: ICONS.caretDouble,
328
- },
329
- ],
330
- selectionMode: "single",
305
+ },
331
306
  },
332
- },
333
- ],
334
- },
335
- {
336
- type: "Section",
337
- labelKey: `appearance.styleSpecificSettings.label`,
338
- rule: SHOW_FOR_INFORMATIONAL_RULE,
339
- options: {
340
- helperText: {
341
- labelKey: `appearance.styleSpecificSettings.helperInfoText`,
342
- },
307
+ {
308
+ labelKey: `appearance.icon.label`,
309
+ scope: "/properties/icon",
310
+ type: "Control",
311
+ rule: SHOW_FOR_ICON_RULE,
312
+ options: {
313
+ control: "hub-field-input-combobox",
314
+ items: [
315
+ {
316
+ value: ICONS.caretUp,
317
+ labelKey: `appearance.icon.caretUp.label`,
318
+ icon: ICONS.caretUp,
319
+ },
320
+ {
321
+ value: ICONS.caretDown,
322
+ labelKey: `appearance.icon.caretDown.label`,
323
+ icon: ICONS.caretDown,
324
+ },
325
+ {
326
+ value: ICONS.caretDouble,
327
+ labelKey: `appearance.icon.caretDouble.label`,
328
+ icon: ICONS.caretDouble,
329
+ },
330
+ ],
331
+ selectionMode: "single",
332
+ },
333
+ },
334
+ ],
343
335
  },
344
- elements: [
345
- {
346
- labelKey: `appearance.popoverText.label`,
347
- scope: "/properties/popoverText",
348
- type: "Control",
349
- rule: SHOW_FOR_INFORMATIONAL_RULE,
350
- options: {
351
- control: "hub-field-input-input",
352
- type: "textarea",
353
- rows: 4,
336
+ {
337
+ type: "Section",
338
+ labelKey: `appearance.styleSpecificSettings.label`,
339
+ rule: SHOW_FOR_INFORMATIONAL_RULE,
340
+ options: {
341
+ helperText: {
342
+ labelKey: `appearance.styleSpecificSettings.helperInfoText`,
354
343
  },
355
344
  },
356
- {
357
- labelKey: `appearance.publisherText.label`,
358
- scope: "/properties/publisherText",
359
- type: "Control",
360
- rule: SHOW_FOR_INFORMATIONAL_RULE,
361
- options: {
362
- control: "hub-field-input-input",
345
+ elements: [
346
+ {
347
+ labelKey: `appearance.popoverText.label`,
348
+ scope: "/properties/popoverText",
349
+ type: "Control",
350
+ rule: SHOW_FOR_INFORMATIONAL_RULE,
351
+ options: {
352
+ control: "hub-field-input-input",
353
+ type: "textarea",
354
+ rows: 4,
355
+ },
363
356
  },
364
- },
365
- ],
366
- },
367
- ],
368
- },
369
- {
370
- type: "Section",
371
- labelKey: `sharing.sectionTitle`,
372
- options: {
373
- section: "block",
357
+ {
358
+ labelKey: `appearance.publisherText.label`,
359
+ scope: "/properties/publisherText",
360
+ type: "Control",
361
+ rule: SHOW_FOR_INFORMATIONAL_RULE,
362
+ options: {
363
+ control: "hub-field-input-input",
364
+ },
365
+ },
366
+ ],
367
+ },
368
+ ],
374
369
  },
375
- elements: [
376
- {
377
- labelKey: `sharing.showShareIcon`,
378
- scope: "/properties/shareable",
379
- type: "Control",
380
- options: {
381
- helperText: {
382
- labelKey: `sharing.showShareIconHelperText`,
370
+ {
371
+ type: "Section",
372
+ labelKey: `sharing.sectionTitle`,
373
+ options: {
374
+ section: "block",
375
+ },
376
+ elements: [
377
+ {
378
+ labelKey: `sharing.showShareIcon`,
379
+ scope: "/properties/shareable",
380
+ type: "Control",
381
+ options: {
382
+ helperText: {
383
+ labelKey: `sharing.showShareIconHelperText`,
384
+ },
385
+ control: "hub-field-input-switch",
386
+ layout: "inline-space-between",
383
387
  },
384
- control: "hub-field-input-switch",
385
- layout: "inline-space-between",
386
388
  },
387
- },
388
- {
389
- labelKey: `sharing.shareableByValue`,
390
- scope: "/properties/shareableByValue",
391
- type: "Control",
392
- rule: HIDE_FOR_ALL,
393
- },
394
- {
395
- labelKey: `sharing.shareableOnHover.label`,
396
- scope: "/properties/shareableOnHover",
397
- type: "Control",
398
- rule: SHOW_FOR_SHARING_RULE,
399
- options: {
400
- control: "hub-field-input-switch",
401
- helperText: {
402
- labelKey: `sharing.shareableOnHover.helperText.label`,
389
+ {
390
+ labelKey: `sharing.shareableByValue`,
391
+ scope: "/properties/shareableByValue",
392
+ type: "Control",
393
+ rule: HIDE_FOR_ALL,
394
+ },
395
+ {
396
+ labelKey: `sharing.shareableOnHover.label`,
397
+ scope: "/properties/shareableOnHover",
398
+ type: "Control",
399
+ rule: SHOW_FOR_SHARING_RULE,
400
+ options: {
401
+ control: "hub-field-input-switch",
402
+ helperText: {
403
+ labelKey: `sharing.shareableOnHover.helperText.label`,
404
+ },
405
+ layout: "inline-space-between",
403
406
  },
404
- layout: "inline-space-between",
405
407
  },
406
- },
407
- ],
408
- },
409
- ],
410
- };
408
+ ],
409
+ },
410
+ ],
411
+ });
412
+ });
411
413
  };
412
414
  const HIDE_FOR_ALL = {
413
415
  effect: UiSchemaRuleEffects.HIDE,