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