@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.
- package/dist/esm/core/schemas/getEditorConfig.js.map +1 -1
- package/dist/esm/core/schemas/internal/embed/EmbedSchema.js +8 -0
- package/dist/esm/core/schemas/internal/embed/EmbedSchema.js.map +1 -0
- package/dist/esm/core/schemas/internal/embed/EmbedUiSchema.js +15 -0
- package/dist/esm/core/schemas/internal/embed/EmbedUiSchema.js.map +1 -0
- package/dist/esm/core/schemas/internal/events/EventGalleryCardUiSchema.js.map +1 -1
- package/dist/esm/core/schemas/internal/follow/FollowCardUiSchema.js.map +1 -1
- package/dist/esm/core/schemas/internal/getCardEditorSchemas.js +19 -4
- package/dist/esm/core/schemas/internal/getCardEditorSchemas.js.map +1 -1
- package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js +364 -362
- package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
- package/dist/esm/core/schemas/types.js +6 -0
- package/dist/esm/core/schemas/types.js.map +1 -1
- package/dist/esm/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js +18 -0
- package/dist/esm/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js.map +1 -1
- package/dist/esm/initiative-templates/defaults.js +6 -0
- package/dist/esm/initiative-templates/defaults.js.map +1 -1
- package/dist/esm/initiative-templates/edit.js +8 -0
- package/dist/esm/initiative-templates/edit.js.map +1 -1
- package/dist/esm/permissions/HubPermissionPolicies.js +7 -0
- package/dist/esm/permissions/HubPermissionPolicies.js.map +1 -1
- package/dist/esm/permissions/_internal/constants.js +1 -0
- package/dist/esm/permissions/_internal/constants.js.map +1 -1
- package/dist/node/core/schemas/getEditorConfig.js.map +1 -1
- package/dist/node/core/schemas/internal/embed/EmbedSchema.js +11 -0
- package/dist/node/core/schemas/internal/embed/EmbedSchema.js.map +1 -0
- package/dist/node/core/schemas/internal/embed/EmbedUiSchema.js +18 -0
- package/dist/node/core/schemas/internal/embed/EmbedUiSchema.js.map +1 -0
- package/dist/node/core/schemas/internal/events/EventGalleryCardUiSchema.js.map +1 -1
- package/dist/node/core/schemas/internal/follow/FollowCardUiSchema.js.map +1 -1
- package/dist/node/core/schemas/internal/getCardEditorSchemas.js +19 -4
- package/dist/node/core/schemas/internal/getCardEditorSchemas.js.map +1 -1
- package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js +364 -362
- package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
- package/dist/node/core/schemas/types.js +7 -1
- package/dist/node/core/schemas/types.js.map +1 -1
- package/dist/node/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js +18 -0
- package/dist/node/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.js.map +1 -1
- package/dist/node/initiative-templates/defaults.js +6 -0
- package/dist/node/initiative-templates/defaults.js.map +1 -1
- package/dist/node/initiative-templates/edit.js +8 -0
- package/dist/node/initiative-templates/edit.js.map +1 -1
- package/dist/node/permissions/HubPermissionPolicies.js +7 -0
- package/dist/node/permissions/HubPermissionPolicies.js.map +1 -1
- package/dist/node/permissions/_internal/constants.js +1 -0
- package/dist/node/permissions/_internal/constants.js.map +1 -1
- package/dist/types/core/schemas/getEditorConfig.d.ts +7 -6
- package/dist/types/core/schemas/internal/EditorOptions.d.ts +9 -5
- package/dist/types/core/schemas/internal/embed/EmbedSchema.d.ts +2 -0
- package/dist/types/core/schemas/internal/embed/EmbedUiSchema.d.ts +4 -0
- package/dist/types/core/schemas/internal/events/EventGalleryCardUiSchema.d.ts +2 -2
- package/dist/types/core/schemas/internal/follow/FollowCardUiSchema.d.ts +2 -2
- package/dist/types/core/schemas/internal/metrics/StatCardUiSchema.d.ts +2 -2
- package/dist/types/core/schemas/types.d.ts +8 -2
- package/dist/types/core/types/IHubInitiativeTemplate.d.ts +6 -3
- package/dist/types/permissions/_internal/constants.d.ts +2 -2
- 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 =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
43
|
-
|
|
43
|
+
enum: {
|
|
44
|
+
i18nScope: `statistic.type.enum`,
|
|
45
|
+
},
|
|
44
46
|
},
|
|
45
47
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
141
|
-
|
|
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
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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
|
-
|
|
182
|
-
|
|
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
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
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
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
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
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
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
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
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
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
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
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
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
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
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
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
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
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
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
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
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
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
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
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
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,
|