@griddo/ax 11.1.7 → 11.1.9

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 (50) hide show
  1. package/config/jest/componentsMock.js +1456 -1449
  2. package/package.json +2 -2
  3. package/src/__tests__/components/Fields/TranslateButton/TranslateButton.test.tsx +27 -0
  4. package/src/__tests__/components/MainWrapper/AppBar/AppBar.test.tsx +16 -0
  5. package/src/api/checkgroups.tsx +22 -6
  6. package/src/api/forms.tsx +18 -2
  7. package/src/components/Fields/AsyncCheckGroup/index.tsx +17 -2
  8. package/src/components/Fields/FormCategorySelect/index.tsx +44 -0
  9. package/src/components/Fields/MultiCheckSelect/index.tsx +26 -21
  10. package/src/components/Fields/MultiCheckSelectGroup/index.tsx +13 -4
  11. package/src/components/Fields/index.tsx +2 -0
  12. package/src/components/FloatingMenu/index.tsx +2 -2
  13. package/src/components/Loading/style.tsx +7 -10
  14. package/src/components/MainWrapper/style.tsx +5 -1
  15. package/src/components/TableFilters/CategoryFilter/index.tsx +10 -5
  16. package/src/components/TableFilters/CheckGroupFilter/index.tsx +6 -10
  17. package/src/components/TableFilters/NameFilter/index.tsx +7 -6
  18. package/src/components/TableList/style.tsx +14 -9
  19. package/src/containers/Forms/actions.tsx +9 -3
  20. package/src/containers/Sites/actions.tsx +16 -7
  21. package/src/containers/Sites/constants.tsx +1 -0
  22. package/src/containers/Sites/interfaces.tsx +6 -0
  23. package/src/containers/Sites/reducer.tsx +6 -2
  24. package/src/containers/StructuredData/actions.tsx +5 -2
  25. package/src/containers/Users/actions.tsx +9 -3
  26. package/src/helpers/index.tsx +2 -0
  27. package/src/helpers/objects.tsx +15 -0
  28. package/src/helpers/schemas.tsx +2 -1
  29. package/src/hooks/content.tsx +3 -1
  30. package/src/modules/Forms/FormList/BulkHeader/TableHeader/index.tsx +99 -11
  31. package/src/modules/Forms/FormList/BulkHeader/TableHeader/style.tsx +5 -2
  32. package/src/modules/Forms/FormList/BulkHeader/index.tsx +15 -10
  33. package/src/modules/Forms/FormList/FormItem/index.tsx +22 -7
  34. package/src/modules/Forms/FormList/FormItem/style.tsx +2 -2
  35. package/src/modules/Forms/FormList/Summary/index.tsx +10 -4
  36. package/src/modules/Forms/FormList/Summary/style.tsx +3 -0
  37. package/src/modules/Forms/FormList/hooks.tsx +101 -0
  38. package/src/modules/Forms/FormList/index.tsx +140 -11
  39. package/src/modules/Forms/FormList/style.tsx +10 -1
  40. package/src/modules/Forms/FormsMenu/index.tsx +13 -4
  41. package/src/modules/Forms/utils.tsx +26 -0
  42. package/src/modules/PublicPreview/index.tsx +2 -1
  43. package/src/modules/Redirects/style.tsx +1 -1
  44. package/src/modules/Settings/ContentTypes/DataPacks/AddModal/Filter/index.tsx +2 -2
  45. package/src/modules/Sites/SitesList/hooks.tsx +4 -4
  46. package/src/modules/Sites/SitesList/index.tsx +26 -7
  47. package/src/modules/Sites/SitesList/style.tsx +4 -0
  48. package/src/modules/Sites/index.tsx +15 -17
  49. package/src/types/forms.tsx +1 -4
  50. package/src/types/index.tsx +1 -1
@@ -1,448 +1,650 @@
1
1
  module.exports = {
2
2
  SiteProvider: jest.fn(),
3
- themes: {
4
- label: "theme",
5
- value: "1",
6
- default: false,
7
- },
8
- schemas: {
9
- key: "schema definition",
10
- all: {
11
- HeroCard: {
12
- schemaType: "component",
13
- component: "HeroCard",
14
- displayName: "Hero Card",
15
- dataPacks: null,
16
- configTabs: [
3
+ config: {
4
+ schemas: {
5
+ config: {
6
+ themes: {
7
+ label: "theme",
8
+ value: "1",
9
+ default: false,
10
+ },
11
+ moduleCategories: [
17
12
  {
18
- title: "content",
19
- fields: [
20
- {
21
- title: "Title",
22
- type: "HeadingField",
23
- key: "title",
24
- advanced: true,
25
- default: { tag: "span", content: "Title" },
26
- options: [
27
- { value: "h1", label: "H1" },
28
- { value: "h2", label: "H2" },
29
- { value: "h3", label: "H3" },
30
- { value: "h4", label: "H4" },
31
- { value: "span", label: "span" },
32
- ],
33
- },
34
- { title: "Subtitle", type: "TextArea", key: "subtitle" },
35
- {
36
- title: "Link",
37
- type: "ComponentContainer",
38
- whiteList: ["Link"],
39
- key: "link",
40
- hideable: true,
41
- },
13
+ label: "Developing",
14
+ value: "developing",
15
+ featured: true,
16
+ },
17
+ {
18
+ label: "Spacers",
19
+ value: "spacers",
20
+ featured: true,
21
+ },
22
+ {
23
+ label: "Interactive",
24
+ value: "interactive",
25
+ },
26
+ {
27
+ label: "Collections",
28
+ value: "collections",
29
+ },
30
+ {
31
+ label: "Articles And Events",
32
+ value: "articlesAndEvents",
33
+ },
34
+ {
35
+ label: "Content",
36
+ value: "content",
37
+ },
38
+ {
39
+ label: "Featured",
40
+ value: "featured",
41
+ },
42
+ {
43
+ label: "Studies",
44
+ value: "studies",
45
+ },
46
+ {
47
+ label: "People",
48
+ value: "people",
49
+ },
50
+ {
51
+ label: "Social",
52
+ value: "social",
53
+ },
54
+ {
55
+ label: "Iframe",
56
+ value: "iframe",
57
+ },
58
+ ],
59
+ },
60
+ ui: {
61
+ templates: {
62
+ default: {
63
+ config: [
42
64
  {
43
- title: "Background Image",
44
- type: "ComponentContainer",
45
- whiteList: ["Image"],
46
- key: "backgroundImage",
47
- helptext: "Recommended minimum image size: 2508x1030",
65
+ field: {
66
+ title: "Name",
67
+ key: "title",
68
+ type: "TextField",
69
+ mandatory: true,
70
+ modifiable: true,
71
+ },
48
72
  },
49
73
  ],
50
74
  },
51
- {
52
- title: "config",
53
- fields: [
75
+ BasicTemplate: {
76
+ schemaType: "template",
77
+ displayName: "Basic Template",
78
+ component: "BasicTemplate",
79
+ dataPacks: null,
80
+ type: { label: "Static", value: "static" },
81
+ config: [
54
82
  {
55
83
  title: "Style",
56
- key: "theme",
84
+ key: "primaryLinkStyle",
57
85
  type: "VisualUniqueSelection",
58
86
  options: [
59
87
  {
60
- value: "defaultAlt",
61
- img: "/themes/STYLE01",
88
+ value: "primary",
89
+ img: "img/themes/primaryStyle",
62
90
  },
63
91
  {
64
- value: "default",
65
- img: "/themes/STYLE02",
92
+ value: "secondary",
93
+ img: "img/themes/primaryStyle",
66
94
  },
67
95
  {
68
- value: "accent",
69
- img: "/themes/STYLE03",
96
+ value: "link",
97
+ img: "img/themes/primaryStyle",
70
98
  },
71
99
  ],
72
- columns: 8,
100
+ columns: 3,
73
101
  },
74
102
  ],
75
- },
76
- ],
77
- default: {
78
- component: "HeroCard",
79
- title: {
80
- content: "Title",
81
- tag: "span",
82
- },
83
- subtitle:
84
- "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
85
- link: {
86
- component: "Link",
87
- text: "Link",
88
- url: {
89
- url: "",
90
- linkTo: null,
91
- newTab: false,
92
- noFollow: false,
93
- },
94
- },
95
- backgroundImage: {
96
- component: "Image",
97
- },
98
- theme: "accent",
99
- },
100
- thumbnails: {
101
- "1x": "/thumbnails/HeroCard",
102
- "2x": "/thumbnails/HeroCard@2x",
103
- },
104
- },
105
- BasicContent: {
106
- schemaType: "module",
107
- displayName: "Basic Content",
108
- component: "BasicContent",
109
- category: "content",
110
- dataPacks: null,
111
- configTabs: [
112
- {
113
- title: "content",
114
- fields: [
115
- {
116
- title: "Title",
117
- type: "HeadingField",
118
- key: "title",
119
- advanced: true,
120
- hideable: true,
121
- isMockup: true,
122
- default: { tag: "h2", content: "Title" },
123
- options: [
124
- { value: "h1", label: "H1" },
125
- { value: "h2", label: "H2" },
126
- { value: "h3", label: "H3" },
127
- { value: "h4", label: "H4" },
128
- { value: "span", label: "span" },
129
- ],
130
- },
131
- {
132
- title: "Subtitle",
133
- type: "RichText",
134
- key: "subtitle",
135
- hideable: true,
136
- isMockup: true,
137
- },
103
+ content: [
138
104
  {
139
- title: "Content",
140
- type: "Wysiwyg",
141
- key: "content",
142
- hideable: true,
143
- isMockup: true,
105
+ title: "Hero Section",
106
+ type: "ComponentArray",
107
+ maxItems: 1,
108
+ whiteList: ["BasicContent"],
109
+ key: "heroSection",
144
110
  },
145
- {
146
- title: "Primary link",
147
- type: "ComponentContainer",
148
- whiteList: ["Link"],
149
- key: "primaryLink",
150
- hideable: true,
111
+ ],
112
+ default: {
113
+ type: "template",
114
+ templateType: "BasicTemplate",
115
+ heroSection: {
116
+ component: "Section",
117
+ name: "Hero Section",
118
+ modules: [],
119
+ sectionPosition: 1,
151
120
  },
152
- {
153
- title: "Secondary link",
154
- type: "ComponentContainer",
155
- whiteList: ["Link"],
156
- key: "secondaryLink",
157
- hideable: true,
121
+ },
122
+ thumbnails: {
123
+ "default-theme": {
124
+ "1x": "/thumbnails/HeroCard",
125
+ "2x": "/thumbnails/HeroCard@2x",
158
126
  },
159
- {
160
- title: "Additional content",
161
- type: "ComponentContainer",
162
- whiteList: ["LinkableImage", "Video"],
163
- key: "additionalContent",
164
- hideable: true,
165
- helptext: "Recommended minimum image size: 792x514",
127
+ "griddo-alt-theme": {
128
+ "1x": "/thumbnails/HeroCard",
129
+ "2x": "/thumbnails/HeroCard@2x",
166
130
  },
167
- ],
131
+ },
168
132
  },
169
- {
170
- title: "config",
171
- fields: [
172
- {
173
- title: "Anchor ID",
174
- type: "TextField",
175
- key: "anchorID",
176
- prefix: "#",
177
- hideable: true,
178
- helptext:
179
- "Do not use uppercase letter or spaces and cannot start with numbers. Example: this-is-an-anchor.",
180
- },
181
- {
182
- title: "Layout",
183
- key: "layout",
184
- type: "VisualUniqueSelection",
185
- mandatory: true,
186
- options: [
187
- { value: "L001", img: "layouts.modules.basicContent[1]" },
188
- { value: "L002", img: "layouts.modules.basicContent[2]" },
189
- { value: "L003", img: "layouts.modules.basicContent[3]" },
190
- { value: "L004", img: "layouts.modules.basicContent[4]" },
191
- { value: "L005", img: "layouts.modules.basicContent[5]" },
192
- { value: "L006", img: "layouts.modules.basicContent[6]" },
193
- { value: "L007", img: "layouts.modules.basicContent[7]" },
194
- ],
195
- columns: 2,
196
- },
133
+ },
134
+ modules: {
135
+ HeroCard: {
136
+ schemaType: "component",
137
+ component: "HeroCard",
138
+ displayName: "Hero Card",
139
+ dataPacks: null,
140
+ configTabs: [
197
141
  {
198
- title: "Style",
199
- key: "theme",
200
- type: "VisualUniqueSelection",
201
- mandatory: true,
202
- options: [
142
+ title: "content",
143
+ fields: [
203
144
  {
204
- theme: "default-theme",
145
+ title: "Title",
146
+ type: "HeadingField",
147
+ key: "title",
148
+ advanced: true,
149
+ default: { tag: "span", content: "Title" },
205
150
  options: [
206
- { value: "default", img: "griddoDef.subthemes.def" },
207
- { value: "defaultAlt", img: "griddoDef.subthemes.defAlt" },
151
+ { value: "h1", label: "H1" },
152
+ { value: "h2", label: "H2" },
153
+ { value: "h3", label: "H3" },
154
+ { value: "h4", label: "H4" },
155
+ { value: "span", label: "span" },
208
156
  ],
209
157
  },
158
+ { title: "Subtitle", type: "TextArea", key: "subtitle" },
210
159
  {
211
- theme: "griddo-alt-theme",
212
- options: [
213
- { value: "default", img: "griddoAlt.subthemes.def" },
214
- { value: "defaultAlt", img: "griddoAlt.subthemes.defAlt" },
215
- ],
160
+ title: "Link",
161
+ type: "ComponentContainer",
162
+ whiteList: ["Link"],
163
+ key: "link",
164
+ hideable: true,
165
+ },
166
+ {
167
+ title: "Background Image",
168
+ type: "ComponentContainer",
169
+ whiteList: ["Image"],
170
+ key: "backgroundImage",
171
+ helptext: "Recommended minimum image size: 2508x1030",
216
172
  },
217
173
  ],
218
- columns: 8,
219
174
  },
220
175
  {
221
- title: "Vertical Spacing",
222
- key: "verticalSpacing",
223
- type: "RadioGroup",
224
- options: [
225
- { name: "small", value: "small", title: "Small" },
226
- { name: "medium", value: "medium", title: "Medium" },
227
- { name: "large", value: "large", title: "Large" },
176
+ title: "config",
177
+ fields: [
178
+ {
179
+ title: "Style",
180
+ key: "theme",
181
+ type: "VisualUniqueSelection",
182
+ options: [
183
+ {
184
+ value: "defaultAlt",
185
+ img: "/themes/STYLE01",
186
+ },
187
+ {
188
+ value: "default",
189
+ img: "/themes/STYLE02",
190
+ },
191
+ {
192
+ value: "accent",
193
+ img: "/themes/STYLE03",
194
+ },
195
+ ],
196
+ columns: 8,
197
+ },
228
198
  ],
229
199
  },
230
200
  ],
231
- },
232
- ],
233
- },
234
- CardCollection: {
235
- schemaType: "module",
236
- displayName: "Card Collection",
237
- component: "CardCollection",
238
- category: "collections",
239
- dataPacks: null,
240
- configTabs: [
241
- {
242
- title: "content",
243
- fields: [
244
- {
245
- title: "Title",
246
- type: "HeadingField",
247
- key: "title",
248
- advanced: true,
249
- hideable: true,
250
- default: { tag: "h2", content: "Title" },
251
- options: [
252
- { value: "h1", label: "H1" },
253
- { value: "h2", label: "H2" },
254
- { value: "h3", label: "H3" },
255
- { value: "h4", label: "H4" },
256
- { value: "span", label: "span" },
257
- ],
258
- },
259
- {
260
- title: "Subtitle",
261
- type: "RichText",
262
- key: "subtitle",
263
- hideable: true,
264
- },
265
- {
266
- title: "Detail",
267
- type: "RichText",
268
- key: "detail",
269
- hideable: true,
201
+ default: {
202
+ component: "HeroCard",
203
+ title: {
204
+ content: "Title",
205
+ tag: "span",
270
206
  },
271
- {
272
- title: "Cards",
273
- type: "ComponentArray",
274
- elementUniqueSelection: true,
275
- mandatory: true,
276
- maxItems: null,
277
- key: "elements",
278
- whiteList: [
279
- "BasicCard",
280
- "BasicBoxedCard",
281
- "BasicIconCard",
282
- "ImageCard",
283
- "IconCard",
284
- "IconCenteredCard",
285
- "LogoCard",
286
- ],
207
+ subtitle:
208
+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
209
+ link: {
210
+ component: "Link",
211
+ text: "Link",
212
+ url: {
213
+ url: "",
214
+ linkTo: null,
215
+ newTab: false,
216
+ noFollow: false,
217
+ },
287
218
  },
288
- {
289
- title: "Grouping Link",
290
- type: "ComponentContainer",
291
- whiteList: ["Link"],
292
- key: "groupingLink",
293
- hideable: true,
219
+ backgroundImage: {
220
+ component: "Image",
294
221
  },
295
- ],
222
+ theme: "accent",
223
+ },
224
+ thumbnails: {
225
+ "1x": "/thumbnails/HeroCard",
226
+ "2x": "/thumbnails/HeroCard@2x",
227
+ },
296
228
  },
297
- {
298
- title: "config",
299
- fields: [
229
+ BasicContent: {
230
+ schemaType: "module",
231
+ displayName: "Basic Content",
232
+ component: "BasicContent",
233
+ category: "content",
234
+ dataPacks: null,
235
+ configTabs: [
300
236
  {
301
- title: "Anchor ID",
302
- type: "TextField",
303
- key: "anchorID",
304
- prefix: "#",
305
- hideable: true,
306
- helptext:
307
- "Do not use uppercase letter or spaces and cannot start with numbers. Example: this-is-an-anchor.",
308
- },
309
- {
310
- title: "Layout",
311
- key: "layout",
312
- type: "VisualUniqueSelection",
313
- options: [
314
- { value: "L001", img: "layouts.modules.cardCollection[1]" },
315
- { value: "L002", img: "layouts.modules.cardCollection[2]" },
316
- { value: "L003", img: "layouts.modules.cardCollection[3]" },
317
- { value: "L004", img: "layouts.modules.cardCollection[4]" },
318
- { value: "L005", img: "layouts.modules.cardCollection[5]" },
237
+ title: "content",
238
+ fields: [
239
+ {
240
+ title: "Title",
241
+ type: "HeadingField",
242
+ key: "title",
243
+ advanced: true,
244
+ hideable: true,
245
+ isMockup: true,
246
+ default: { tag: "h2", content: "Title" },
247
+ options: [
248
+ { value: "h1", label: "H1" },
249
+ { value: "h2", label: "H2" },
250
+ { value: "h3", label: "H3" },
251
+ { value: "h4", label: "H4" },
252
+ { value: "span", label: "span" },
253
+ ],
254
+ },
255
+ {
256
+ title: "Subtitle",
257
+ type: "RichText",
258
+ key: "subtitle",
259
+ hideable: true,
260
+ isMockup: true,
261
+ },
262
+ {
263
+ title: "Content",
264
+ type: "Wysiwyg",
265
+ key: "content",
266
+ hideable: true,
267
+ isMockup: true,
268
+ },
269
+ {
270
+ title: "Primary link",
271
+ type: "ComponentContainer",
272
+ whiteList: ["Link"],
273
+ key: "primaryLink",
274
+ hideable: true,
275
+ },
276
+ {
277
+ title: "Secondary link",
278
+ type: "ComponentContainer",
279
+ whiteList: ["Link"],
280
+ key: "secondaryLink",
281
+ hideable: true,
282
+ },
283
+ {
284
+ title: "Additional content",
285
+ type: "ComponentContainer",
286
+ whiteList: ["LinkableImage", "Video"],
287
+ key: "additionalContent",
288
+ hideable: true,
289
+ helptext: "Recommended minimum image size: 792x514",
290
+ },
319
291
  ],
320
- columns: 2,
321
292
  },
322
293
  {
323
- title: "Style",
324
- key: "theme",
325
- type: "VisualUniqueSelection",
326
- options: [
294
+ title: "config",
295
+ fields: [
296
+ {
297
+ title: "Anchor ID",
298
+ type: "TextField",
299
+ key: "anchorID",
300
+ prefix: "#",
301
+ hideable: true,
302
+ helptext:
303
+ "Do not use uppercase letter or spaces and cannot start with numbers. Example: this-is-an-anchor.",
304
+ },
305
+ {
306
+ title: "Layout",
307
+ key: "layout",
308
+ type: "VisualUniqueSelection",
309
+ mandatory: true,
310
+ options: [
311
+ { value: "L001", img: "layouts.modules.basicContent[1]" },
312
+ { value: "L002", img: "layouts.modules.basicContent[2]" },
313
+ { value: "L003", img: "layouts.modules.basicContent[3]" },
314
+ { value: "L004", img: "layouts.modules.basicContent[4]" },
315
+ { value: "L005", img: "layouts.modules.basicContent[5]" },
316
+ { value: "L006", img: "layouts.modules.basicContent[6]" },
317
+ { value: "L007", img: "layouts.modules.basicContent[7]" },
318
+ ],
319
+ columns: 2,
320
+ },
327
321
  {
328
- theme: "default-theme",
322
+ title: "Style",
323
+ key: "theme",
324
+ type: "VisualUniqueSelection",
325
+ mandatory: true,
329
326
  options: [
330
- { value: "default", img: "griddoDef.subthemes.def" },
331
- { value: "defaultAlt", img: "griddoDef.subthemes.defAlt" },
332
- { value: "accent", img: "griddoDef.subthemes.accent" },
333
- { value: "inverse", img: "griddoDef.subthemes.inverse" },
327
+ {
328
+ theme: "default-theme",
329
+ options: [
330
+ { value: "default", img: "griddoDef.subthemes.def" },
331
+ { value: "defaultAlt", img: "griddoDef.subthemes.defAlt" },
332
+ ],
333
+ },
334
+ {
335
+ theme: "griddo-alt-theme",
336
+ options: [
337
+ { value: "default", img: "griddoAlt.subthemes.def" },
338
+ { value: "defaultAlt", img: "griddoAlt.subthemes.defAlt" },
339
+ ],
340
+ },
334
341
  ],
342
+ columns: 8,
335
343
  },
336
344
  {
337
- theme: "griddo-alt-theme",
345
+ title: "Vertical Spacing",
346
+ key: "verticalSpacing",
347
+ type: "RadioGroup",
338
348
  options: [
339
- { value: "default", img: "griddoAlt.subthemes.def" },
340
- { value: "defaultAlt", img: "griddoAlt.subthemes.defAlt" },
341
- { value: "accent", img: "griddoAlt.subthemes.accent" },
342
- { value: "inverse", img: "griddoAlt.subthemes.inverse" },
349
+ { name: "small", value: "small", title: "Small" },
350
+ { name: "medium", value: "medium", title: "Medium" },
351
+ { name: "large", value: "large", title: "Large" },
343
352
  ],
344
353
  },
345
354
  ],
346
- columns: 8,
347
- },
348
- {
349
- title: "Vertical Spacing",
350
- key: "verticalSpacing",
351
- type: "RadioGroup",
352
- options: [
353
- { name: "small", value: "small", title: "Small" },
354
- { name: "medium", value: "medium", title: "Medium" },
355
- { name: "large", value: "large", title: "Large" },
356
- ],
357
355
  },
358
-
356
+ ],
357
+ },
358
+ CardCollection: {
359
+ schemaType: "module",
360
+ displayName: "Card Collection",
361
+ component: "CardCollection",
362
+ category: "collections",
363
+ dataPacks: null,
364
+ configTabs: [
359
365
  {
360
- title: "Card Style",
361
- key: "kind",
362
- type: "VisualUniqueSelection",
363
- elementUniqueSelection: true,
364
- options: [
366
+ title: "content",
367
+ fields: [
368
+ {
369
+ title: "Title",
370
+ type: "HeadingField",
371
+ key: "title",
372
+ advanced: true,
373
+ hideable: true,
374
+ default: { tag: "h2", content: "Title" },
375
+ options: [
376
+ { value: "h1", label: "H1" },
377
+ { value: "h2", label: "H2" },
378
+ { value: "h3", label: "H3" },
379
+ { value: "h4", label: "H4" },
380
+ { value: "span", label: "span" },
381
+ ],
382
+ },
383
+ {
384
+ title: "Subtitle",
385
+ type: "RichText",
386
+ key: "subtitle",
387
+ hideable: true,
388
+ },
365
389
  {
366
- value: "BasicCard",
367
- img: "${CLOUDINARY_URL}/thumbnails/BasicCard",
390
+ title: "Detail",
391
+ type: "RichText",
392
+ key: "detail",
393
+ hideable: true,
368
394
  },
369
395
  {
370
- value: "BasicBoxedCard",
371
- img: "${CLOUDINARY_URL}/thumbnails/BasicBoxedCard",
396
+ title: "Cards",
397
+ type: "ComponentArray",
398
+ elementUniqueSelection: true,
399
+ mandatory: true,
400
+ maxItems: null,
401
+ key: "elements",
402
+ whiteList: [
403
+ "BasicCard",
404
+ "BasicBoxedCard",
405
+ "BasicIconCard",
406
+ "ImageCard",
407
+ "IconCard",
408
+ "IconCenteredCard",
409
+ "LogoCard",
410
+ ],
411
+ },
412
+ {
413
+ title: "Grouping Link",
414
+ type: "ComponentContainer",
415
+ whiteList: ["Link"],
416
+ key: "groupingLink",
417
+ hideable: true,
372
418
  },
419
+ ],
420
+ },
421
+ {
422
+ title: "config",
423
+ fields: [
373
424
  {
374
- value: "BasicIconCard",
375
- img: "${CLOUDINARY_URL}/thumbnails/BasicIconCard",
425
+ title: "Anchor ID",
426
+ type: "TextField",
427
+ key: "anchorID",
428
+ prefix: "#",
429
+ hideable: true,
430
+ helptext:
431
+ "Do not use uppercase letter or spaces and cannot start with numbers. Example: this-is-an-anchor.",
376
432
  },
377
433
  {
378
- value: "ImageCard",
379
- img: "${CLOUDINARY_URL}/thumbnails/ImageCard",
434
+ title: "Layout",
435
+ key: "layout",
436
+ type: "VisualUniqueSelection",
437
+ options: [
438
+ { value: "L001", img: "layouts.modules.cardCollection[1]" },
439
+ { value: "L002", img: "layouts.modules.cardCollection[2]" },
440
+ { value: "L003", img: "layouts.modules.cardCollection[3]" },
441
+ { value: "L004", img: "layouts.modules.cardCollection[4]" },
442
+ { value: "L005", img: "layouts.modules.cardCollection[5]" },
443
+ ],
444
+ columns: 2,
380
445
  },
381
446
  {
382
- value: "IconCard",
383
- img: "${CLOUDINARY_URL}/thumbnails/IconCard",
447
+ title: "Style",
448
+ key: "theme",
449
+ type: "VisualUniqueSelection",
450
+ options: [
451
+ {
452
+ theme: "default-theme",
453
+ options: [
454
+ { value: "default", img: "griddoDef.subthemes.def" },
455
+ { value: "defaultAlt", img: "griddoDef.subthemes.defAlt" },
456
+ { value: "accent", img: "griddoDef.subthemes.accent" },
457
+ { value: "inverse", img: "griddoDef.subthemes.inverse" },
458
+ ],
459
+ },
460
+ {
461
+ theme: "griddo-alt-theme",
462
+ options: [
463
+ { value: "default", img: "griddoAlt.subthemes.def" },
464
+ { value: "defaultAlt", img: "griddoAlt.subthemes.defAlt" },
465
+ { value: "accent", img: "griddoAlt.subthemes.accent" },
466
+ { value: "inverse", img: "griddoAlt.subthemes.inverse" },
467
+ ],
468
+ },
469
+ ],
470
+ columns: 8,
384
471
  },
385
472
  {
386
- value: "IconCenteredCard",
387
- img: "${CLOUDINARY_URL}/thumbnails/IconCenteredCard",
473
+ title: "Vertical Spacing",
474
+ key: "verticalSpacing",
475
+ type: "RadioGroup",
476
+ options: [
477
+ { name: "small", value: "small", title: "Small" },
478
+ { name: "medium", value: "medium", title: "Medium" },
479
+ { name: "large", value: "large", title: "Large" },
480
+ ],
388
481
  },
482
+
389
483
  {
390
- value: "LogoCard",
391
- img: "${CLOUDINARY_URL}/thumbnails/LogoCard",
484
+ title: "Card Style",
485
+ key: "kind",
486
+ type: "VisualUniqueSelection",
487
+ elementUniqueSelection: true,
488
+ options: [
489
+ {
490
+ value: "BasicCard",
491
+ img: "${CLOUDINARY_URL}/thumbnails/BasicCard",
492
+ },
493
+ {
494
+ value: "BasicBoxedCard",
495
+ img: "${CLOUDINARY_URL}/thumbnails/BasicBoxedCard",
496
+ },
497
+ {
498
+ value: "BasicIconCard",
499
+ img: "${CLOUDINARY_URL}/thumbnails/BasicIconCard",
500
+ },
501
+ {
502
+ value: "ImageCard",
503
+ img: "${CLOUDINARY_URL}/thumbnails/ImageCard",
504
+ },
505
+ {
506
+ value: "IconCard",
507
+ img: "${CLOUDINARY_URL}/thumbnails/IconCard",
508
+ },
509
+ {
510
+ value: "IconCenteredCard",
511
+ img: "${CLOUDINARY_URL}/thumbnails/IconCenteredCard",
512
+ },
513
+ {
514
+ value: "LogoCard",
515
+ img: "${CLOUDINARY_URL}/thumbnails/LogoCard",
516
+ },
517
+ ],
518
+ columns: 3,
392
519
  },
393
520
  ],
394
- columns: 3,
395
521
  },
396
522
  ],
397
523
  },
398
- ],
399
- },
400
- MultiPageModule: {
401
- schemaType: "module",
402
- displayName: "Multi Page Module",
403
- component: "MultiPageModule",
404
- category: "developing",
405
- dataPacks: null,
406
- configTabs: [
407
- {
408
- title: "content",
409
- fields: [
524
+ MultiPageModule: {
525
+ schemaType: "module",
526
+ displayName: "Multi Page Module",
527
+ component: "MultiPageModule",
528
+ category: "developing",
529
+ dataPacks: null,
530
+ configTabs: [
410
531
  {
411
- title: "Title",
412
- type: "TextField",
532
+ title: "content",
533
+ fields: [
534
+ {
535
+ title: "Title",
536
+ type: "TextField",
537
+ },
538
+ {
539
+ title: "Multi Page Element",
540
+ type: "ComponentArray",
541
+ maxItems: 5,
542
+ whiteList: ["MultiPageElement"],
543
+ key: "elements",
544
+ mandatory: true,
545
+ },
546
+ ],
413
547
  },
414
548
  {
415
- title: "Multi Page Element",
416
- type: "ComponentArray",
417
- maxItems: 5,
418
- whiteList: ["MultiPageElement"],
419
- key: "elements",
420
- mandatory: true,
549
+ title: "config",
550
+ fields: [
551
+ {
552
+ title: "Anchor ID",
553
+ type: "TextField",
554
+ key: "anchorID",
555
+ prefix: "#",
556
+ hideable: true,
557
+ helptext:
558
+ "Do not use uppercase letter or spaces and cannot start with numbers. Example: this-is-an-anchor.",
559
+ },
560
+ ],
421
561
  },
422
562
  ],
563
+ default: {
564
+ anchorID: null,
565
+ component: "MultiPageModule",
566
+ title: "Lorem Ipsum",
567
+ hasGriddoMultiPage: true,
568
+ elements: [
569
+ {
570
+ component: "MultiPageElement",
571
+ title: "Tab title",
572
+ sectionSlug: "tab-01",
573
+ metaTitle: "The meta title",
574
+ metaDescription: "The meta description",
575
+ componentModules: [],
576
+ },
577
+ {
578
+ component: "MultiPageElement",
579
+ title: "Tab title",
580
+ sectionSlug: "tab-02",
581
+ metaTitle: "The meta title",
582
+ metaDescription: "The meta description",
583
+ componentModules: [],
584
+ },
585
+ {
586
+ component: "MultiPageElement",
587
+ title: "Tab title",
588
+ sectionSlug: "tab-03",
589
+ metaTitle: "The meta title",
590
+ metaDescription: "The meta description",
591
+ componentModules: [],
592
+ },
593
+ ],
594
+ },
595
+ thumbnails: {
596
+ "1x": `/thumbnails/MultiPageModule`,
597
+ "2x": `/thumbnails/MultiPageModule@2x`,
598
+ },
423
599
  },
424
- {
425
- title: "config",
426
- fields: [
600
+ MultiPageElement: {
601
+ schemaType: "component",
602
+ displayName: "Multi Page Element",
603
+ component: "MultiPageElement",
604
+ dataPacks: null,
605
+ configTabs: [
606
+ {
607
+ title: "content",
608
+ fields: [
609
+ {
610
+ title: "Title",
611
+ type: "TextField",
612
+ key: "title",
613
+ },
614
+ {
615
+ title: "Component",
616
+ type: "ComponentArray",
617
+ hideable: true,
618
+ mandatory: true,
619
+ whiteList: ["BasicContent"],
620
+ key: "componentModules",
621
+ },
622
+ ],
623
+ },
624
+
427
625
  {
428
- title: "Anchor ID",
429
- type: "TextField",
430
- key: "anchorID",
431
- prefix: "#",
432
- hideable: true,
433
- helptext:
434
- "Do not use uppercase letter or spaces and cannot start with numbers. Example: this-is-an-anchor.",
626
+ title: "Seo",
627
+ fields: [
628
+ {
629
+ title: "Section Slug",
630
+ key: "sectionSlug",
631
+ type: "TextField",
632
+ },
633
+ {
634
+ title: "Meta title",
635
+ key: "metaTitle",
636
+ type: "TextField",
637
+ },
638
+ {
639
+ title: "Meta description",
640
+ key: "metaDescription",
641
+ type: "TextField",
642
+ },
643
+ ],
435
644
  },
436
645
  ],
437
- },
438
- ],
439
- default: {
440
- anchorID: null,
441
- component: "MultiPageModule",
442
- title: "Lorem Ipsum",
443
- hasGriddoMultiPage: true,
444
- elements: [
445
- {
646
+
647
+ default: {
446
648
  component: "MultiPageElement",
447
649
  title: "Tab title",
448
650
  sectionSlug: "tab-01",
@@ -450,1182 +652,987 @@ module.exports = {
450
652
  metaDescription: "The meta description",
451
653
  componentModules: [],
452
654
  },
453
- {
454
- component: "MultiPageElement",
455
- title: "Tab title",
456
- sectionSlug: "tab-02",
457
- metaTitle: "The meta title",
458
- metaDescription: "The meta description",
459
- componentModules: [],
460
- },
461
- {
462
- component: "MultiPageElement",
463
- title: "Tab title",
464
- sectionSlug: "tab-03",
465
- metaTitle: "The meta title",
466
- metaDescription: "The meta description",
467
- componentModules: [],
468
- },
469
- ],
470
- },
471
- thumbnails: {
472
- "1x": `/thumbnails/MultiPageModule`,
473
- "2x": `/thumbnails/MultiPageModule@2x`,
474
- },
475
- },
476
- MultiPageElement: {
477
- schemaType: "component",
478
- displayName: "Multi Page Element",
479
- component: "MultiPageElement",
480
- dataPacks: null,
481
- configTabs: [
482
- {
483
- title: "content",
484
- fields: [
485
- {
486
- title: "Title",
487
- type: "TextField",
488
- key: "title",
489
- },
490
- {
491
- title: "Component",
492
- type: "ComponentArray",
493
- hideable: true,
494
- mandatory: true,
495
- whiteList: ["BasicContent"],
496
- key: "componentModules",
497
- },
498
- ],
499
- },
500
-
501
- {
502
- title: "Seo",
503
- fields: [
504
- {
505
- title: "Section Slug",
506
- key: "sectionSlug",
507
- type: "TextField",
508
- },
509
- {
510
- title: "Meta title",
511
- key: "metaTitle",
512
- type: "TextField",
513
- },
514
- {
515
- title: "Meta description",
516
- key: "metaDescription",
517
- type: "TextField",
518
- },
519
- ],
520
655
  },
521
- ],
522
-
523
- default: {
524
- component: "MultiPageElement",
525
- title: "Tab title",
526
- sectionSlug: "tab-01",
527
- metaTitle: "The meta title",
528
- metaDescription: "The meta description",
529
- componentModules: [],
530
656
  },
531
657
  },
532
- },
533
- structuredData: {
534
- PROGRAMS: {
535
- title: "Programs",
536
- dataPacks: ["STUDIES"],
537
- local: false,
538
- taxonomy: false,
539
- fromPage: true,
540
- translate: true,
541
- clone: null,
542
- defaultValues: null,
543
- schema: {
544
- templates: ["ProgramDetail"],
545
- searchFrom: [],
546
- fields: [
547
- {
548
- key: "title",
549
- title: "Title",
550
- type: "TextField",
551
- from: "title",
552
- },
553
- {
554
- key: "programType",
555
- title: "Type of program",
556
- type: "AsyncCheckGroup",
557
- source: "PROGRAM_TYPES",
558
- from: "programType",
559
- },
560
- {
561
- key: "programFormat",
562
- title: "Format of program",
563
- type: "AsyncCheckGroup",
564
- source: "PROGRAM_FORMAT",
565
- from: "programFormat",
566
- },
567
- {
568
- key: "schoolsData",
569
- title: "Schools",
570
- name: "Schools Data",
571
- type: "AsyncCheckGroup",
572
- from: "schoolsData",
573
- source: "SCHOOLS",
574
- indexable: true,
575
- showList: true,
576
- },
577
- {
578
- key: "pathWaysData",
579
- title: "PathWay Data",
580
- name: "PathWay Data",
581
- type: "ReferenceField",
582
- from: "pathWaysData",
583
- },
584
- {
585
- key: "abstract",
586
- title: "Abstract",
587
- type: "RichText",
588
- from: "abstract",
589
- },
590
- {
591
- key: "programQuickFactsSection",
592
- title: "Program Quick Facts",
593
- type: "ComponentArray",
594
- from: "programQuickFactsSection",
595
- },
596
- {
597
- key: "heroSection",
598
- title: "Hero Section",
599
- type: "ComponentArray",
600
- from: "heroSection",
601
- },
602
- ],
603
- },
604
- },
605
- TEACHERS: {
606
- title: "Teachers",
607
- dataPacks: ["TEACHERS"],
608
- local: false,
609
- taxonomy: false,
610
- fromPage: true,
611
- translate: true,
612
- schema: {
613
- templates: ["TeacherDetail"],
614
- fields: [
615
- {
616
- key: "title",
617
- title: "Name",
618
- type: "TextField",
619
- from: "title",
620
- mandatory: true,
621
- },
622
- {
623
- key: "image",
624
- title: "Image",
625
- type: "ImageField",
626
- from: "image",
627
- mandatory: true,
628
- },
629
- {
630
- key: "position",
631
- title: "Position",
632
- type: "TextField",
633
- from: "position",
634
- mandatory: true,
635
- },
636
- {
637
- key: "linkedin",
638
- title: "Linkedin",
639
- from: "linkedin",
640
- type: "UrlField",
641
- },
642
- {
643
- key: "units",
644
- title: "Unit",
645
- from: "categories.units",
646
- type: "AsyncCheckGroup",
647
- source: "UNIT",
648
- },
649
- {
650
- key: "categories.schools",
651
- title: "Schools",
652
- from: "categories.schools",
653
- type: "AsyncCheckGroup",
654
- source: "SCHOOLS",
655
- indexable: true,
656
- showList: true,
657
- },
658
- {
659
- key: "pathways",
660
- title: "Pathways",
661
- from: "categories.pathways",
662
- type: "AsyncCheckGroup",
663
- source: "PATHWAYS",
664
- },
665
- {
666
- key: "programs",
667
- title: "Programs",
668
- from: "categories.programs",
669
- type: "AsyncCheckGroup",
670
- source: "PROGRAMS",
671
- },
672
- ],
673
- },
674
- clone: null,
675
- defaults: null,
676
- },
677
- ARTICLES: {
678
- title: "Articles",
679
- dataPacks: ["ARTICLES"],
680
- local: false,
681
- taxonomy: false,
682
- fromPage: false,
683
- translate: true,
684
- schema: {
685
- fields: [
686
- {
687
- key: "title",
688
- title: "Title",
689
- type: "TextField",
690
- mandatory: true,
691
- },
692
- {
693
- key: "subtitle",
694
- title: "Subtitle",
695
- type: "TextField",
696
- mandatory: true,
697
- },
698
- {
699
- key: "content",
700
- title: "Content",
701
- type: "RichText",
702
- mandatory: true,
703
- },
704
- {
705
- key: "linkText",
706
- title: "Link text",
707
- type: "TextField",
708
- mandatory: true,
709
- },
710
- {
711
- key: "link",
712
- title: "Link",
713
- type: "UrlField",
714
- mandatory: true,
715
- },
716
- {
717
- key: "image",
718
- title: "Image",
719
- type: "ImageField",
720
- mandatory: true,
721
- },
722
- ],
723
- },
724
- clone: null,
725
- defaultValues: null,
726
- },
727
- NEWS: {
728
- title: "News",
729
- dataPacks: ["NEWS"],
730
- local: false,
731
- taxonomy: false,
732
- fromPage: true,
733
- translate: true,
734
- schema: {
735
- templates: ["NewsDetail"],
736
- fields: [
737
- {
738
- key: "title",
739
- title: "Title",
740
- from: "title",
741
- type: "TextField",
742
- },
743
- {
744
- key: "abstract",
745
- title: "Abstract",
746
- from: "abstract",
747
- type: "TextField",
748
- },
749
- {
750
- key: "image",
751
- title: "Image",
752
- from: "image",
753
- type: "ImageField",
754
- },
755
- {
756
- key: "categories",
757
- title: "Categories",
758
- from: "categories",
759
- type: "AsyncCheckGroup",
760
- source: "NEWS_AREAS",
761
- indexable: true,
762
- showList: true,
763
- },
764
- {
765
- key: "lead",
766
- title: "Lead",
767
- from: "lead",
768
- type: "TextField",
769
- },
770
- {
771
- key: "longAbstract",
772
- title: "longAbstract",
773
- from: "longAbstract",
774
- type: "TextField",
775
- },
776
- {
777
- key: "content",
778
- title: "Content",
779
- from: "content",
780
- type: "TextField",
781
- },
782
- {
783
- key: "date",
784
- title: "Date",
785
- from: "date",
786
- type: "TextField",
787
- },
788
- ],
789
- searchFrom: ["lead", "longAbstract", "content"],
790
- },
791
- clone: null,
792
- defaultValues: null,
793
- },
794
- STORY_TYPE: {
795
- title: "Story Type",
796
- dataPacks: ["STORIES"],
797
- local: false,
798
- taxonomy: true,
799
- fromPage: false,
800
- translate: true,
801
- schema: null,
802
- clone: null,
803
- defaults: null,
804
- },
805
- STORY_PROFILE: {
806
- title: "Story Profile",
807
- dataPacks: ["STORIES", "PEOPLE"],
808
- local: false,
809
- taxonomy: true,
810
- fromPage: false,
811
- translate: true,
812
- schema: null,
813
- clone: null,
814
- defaults: null,
815
- },
816
- STORIES: {
817
- title: "Stories",
818
- dataPacks: ["STORIES"],
819
- local: false,
820
- taxonomy: false,
821
- fromPage: true,
822
- translate: true,
823
- schema: {
824
- templates: ["StoryDetail"],
825
- fields: [
826
- {
827
- key: "title",
828
- title: "Title",
829
- type: "TextField",
830
- from: "title",
831
- mandatory: true,
832
- indexable: true,
833
- },
834
- {
835
- key: "storyType",
836
- title: "Type of story",
837
- type: "AsyncCheckGroup",
838
- source: "STORY_TYPE",
839
- from: "storyType",
840
- mandatory: true,
841
- },
842
- {
843
- key: "storyProfile",
844
- title: "Profile",
845
- type: "AsyncCheckGroup",
846
- source: "STORY_PROFILE",
847
- from: "storyProfile",
848
- mandatory: true,
849
- indexable: true,
850
- showList: true,
851
- },
852
- {
853
- key: "quote",
854
- title: "Quote",
855
- type: "RichText",
856
- from: "quote",
857
- mandatory: true,
858
- },
859
- {
860
- key: "image",
861
- title: "Image",
862
- type: "TextField",
863
- from: "image",
864
- },
865
- {
866
- key: "who",
867
- title: "Who",
868
- type: "TextField",
869
- from: "who",
870
- mandatory: true,
871
- },
872
- {
873
- key: "position",
874
- title: "Position",
875
- type: "TextField",
876
- from: "position",
877
- mandatory: true,
878
- },
879
- ],
880
- searchFrom: ["quote", "who", "position"],
881
- },
882
- clone: null,
883
- defaultValues: null,
884
- },
885
- PEOPLE: {
886
- title: "People",
887
- dataPacks: ["PEOPLE"],
888
- local: false,
889
- taxonomy: false,
890
- fromPage: false,
891
- translate: true,
892
- schema: {
893
- fields: [
894
- {
895
- key: "title",
896
- title: "Name",
897
- type: "TextField",
898
- mandatory: true,
899
- },
900
- {
901
- key: "profile",
902
- title: "Profile",
903
- from: "profile",
904
- type: "AsyncCheckGroup",
905
- source: "STORY_PROFILE",
906
- indexable: true,
907
- showList: true,
908
- },
909
- {
910
- key: "image",
911
- title: "Image",
912
- type: "ImageField",
913
- mandatory: true,
914
- },
915
- {
916
- key: "position",
917
- title: "Position",
918
- type: "TextField",
919
- mandatory: true,
920
- },
921
- {
922
- key: "linkedin",
923
- title: "Linkedin",
924
- type: "UrlField",
925
- },
926
- {
927
- key: "phone",
928
- title: "Phone",
929
- type: "TextField",
930
- },
931
- {
932
- key: "email",
933
- title: "Email",
934
- type: "TextField",
935
- },
936
- {
937
- key: "imageBackground",
938
- title: "imageBackground",
939
- type: "ImageField",
940
- },
941
- {
942
- key: "modalDetail",
943
- title: "Modal Detail",
944
- type: "RichText",
945
- },
946
- ],
947
- searchFrom: [],
948
- },
949
- clone: null,
950
- defaultValues: null,
951
- },
952
- TESTIMONIALS: {
953
- title: "Testimonials",
954
- dataPacks: ["TESTIMONIALS"],
955
- local: false,
956
- taxonomy: false,
957
- fromPage: false,
958
- translate: true,
959
- schema: {
960
- fields: [
961
- {
962
- key: "image",
963
- title: "Image",
964
- type: "ImageField",
965
- mandatory: true,
966
- },
967
- {
968
- key: "quote",
969
- title: "Quote",
970
- type: "RichText",
971
- mandatory: true,
972
- },
973
- {
974
- key: "title",
975
- title: "Author",
976
- type: "TextField",
977
- mandatory: true,
978
- searchable: false,
979
- },
980
- {
981
- key: "jobTitle",
982
- title: "Job Title",
983
- type: "RichText",
984
- mandatory: true,
985
- },
986
- {
987
- key: "school",
988
- title: "School",
989
- from: "school",
990
- type: "AsyncCheckGroup",
991
- source: "SCHOOLS",
992
- indexable: true,
993
- showList: true,
994
- },
995
- ],
996
- },
997
- clone: null,
998
- defaultValues: {
999
- quote: "Lorem ipsum",
1000
- title: "Title",
1001
- jobTitle: "Job title",
1002
- },
1003
- },
1004
- EVENTS: {
1005
- title: "Events",
1006
- dataPacks: ["EVENTS"],
1007
- local: false,
1008
- taxonomy: false,
1009
- fromPage: true,
1010
- translate: true,
1011
- schema: {
1012
- templates: ["EventDetail"],
1013
- fields: [
1014
- {
1015
- key: "title",
1016
- title: "Title",
1017
- type: "TextField",
1018
- from: "title",
1019
- },
1020
- {
1021
- key: "image",
1022
- title: "Image",
1023
- type: "ImageField",
1024
- from: "image",
1025
- },
1026
- {
1027
- key: "tag",
1028
- title: "Tag",
1029
- type: "TextField",
1030
- from: "tag",
1031
- },
1032
- {
1033
- key: "dateTime",
1034
- title: "Event date and time",
1035
- type: "DateField",
1036
- from: "dateTime",
1037
- indexable: true,
1038
- },
1039
- {
1040
- key: "eventHour",
1041
- title: "Event Hour",
1042
- type: "TextField",
1043
- from: "eventHour",
1044
- },
1045
- {
1046
- key: "language",
1047
- title: "Language",
1048
- type: "TextField",
1049
- from: "language",
1050
- },
1051
- {
1052
- key: "address",
1053
- title: "Address",
1054
- type: "TextField",
1055
- from: "address",
1056
- },
1057
- {
1058
- key: "country",
1059
- title: "Country",
1060
- type: "TextField",
1061
- from: "country",
1062
- },
1063
- {
1064
- key: "distributorDescription",
1065
- title: "Distributor description",
1066
- type: "TextField",
1067
- from: "distributorDescription",
658
+ contentTypes: {
659
+ structuredData: {
660
+ PROGRAMS: {
661
+ title: "Programs",
662
+ dataPacks: ["STUDIES"],
663
+ local: false,
664
+ taxonomy: false,
665
+ fromPage: true,
666
+ translate: true,
667
+ clone: null,
668
+ defaultValues: null,
669
+ schema: {
670
+ templates: ["ProgramDetail"],
671
+ searchFrom: [],
672
+ fields: [
673
+ {
674
+ key: "title",
675
+ title: "Title",
676
+ type: "TextField",
677
+ from: "title",
678
+ },
679
+ {
680
+ key: "programType",
681
+ title: "Type of program",
682
+ type: "AsyncCheckGroup",
683
+ source: "PROGRAM_TYPES",
684
+ from: "programType",
685
+ },
686
+ {
687
+ key: "programFormat",
688
+ title: "Format of program",
689
+ type: "AsyncCheckGroup",
690
+ source: "PROGRAM_FORMAT",
691
+ from: "programFormat",
692
+ },
693
+ {
694
+ key: "schoolsData",
695
+ title: "Schools",
696
+ name: "Schools Data",
697
+ type: "AsyncCheckGroup",
698
+ from: "schoolsData",
699
+ source: "SCHOOLS",
700
+ indexable: true,
701
+ showList: true,
702
+ },
703
+ {
704
+ key: "pathWaysData",
705
+ title: "PathWay Data",
706
+ name: "PathWay Data",
707
+ type: "ReferenceField",
708
+ from: "pathWaysData",
709
+ },
710
+ {
711
+ key: "abstract",
712
+ title: "Abstract",
713
+ type: "RichText",
714
+ from: "abstract",
715
+ },
716
+ {
717
+ key: "programQuickFactsSection",
718
+ title: "Program Quick Facts",
719
+ type: "ComponentArray",
720
+ from: "programQuickFactsSection",
721
+ },
722
+ {
723
+ key: "heroSection",
724
+ title: "Hero Section",
725
+ type: "ComponentArray",
726
+ from: "heroSection",
727
+ },
728
+ ],
1068
729
  },
1069
- {
1070
- key: "addToCalendar",
1071
- title: "Add to calendar button",
1072
- type: "ComponentContainer",
1073
- from: "addToCalendar",
730
+ },
731
+ TEACHERS: {
732
+ title: "Teachers",
733
+ dataPacks: ["TEACHERS"],
734
+ local: false,
735
+ taxonomy: false,
736
+ fromPage: true,
737
+ translate: true,
738
+ schema: {
739
+ templates: ["TeacherDetail"],
740
+ fields: [
741
+ {
742
+ key: "title",
743
+ title: "Name",
744
+ type: "TextField",
745
+ from: "title",
746
+ mandatory: true,
747
+ },
748
+ {
749
+ key: "image",
750
+ title: "Image",
751
+ type: "ImageField",
752
+ from: "image",
753
+ mandatory: true,
754
+ },
755
+ {
756
+ key: "position",
757
+ title: "Position",
758
+ type: "TextField",
759
+ from: "position",
760
+ mandatory: true,
761
+ },
762
+ {
763
+ key: "linkedin",
764
+ title: "Linkedin",
765
+ from: "linkedin",
766
+ type: "UrlField",
767
+ },
768
+ {
769
+ key: "units",
770
+ title: "Unit",
771
+ from: "categories.units",
772
+ type: "AsyncCheckGroup",
773
+ source: "UNIT",
774
+ },
775
+ {
776
+ key: "categories.schools",
777
+ title: "Schools",
778
+ from: "categories.schools",
779
+ type: "AsyncCheckGroup",
780
+ source: "SCHOOLS",
781
+ indexable: true,
782
+ showList: true,
783
+ },
784
+ {
785
+ key: "pathways",
786
+ title: "Pathways",
787
+ from: "categories.pathways",
788
+ type: "AsyncCheckGroup",
789
+ source: "PATHWAYS",
790
+ },
791
+ {
792
+ key: "programs",
793
+ title: "Programs",
794
+ from: "categories.programs",
795
+ type: "AsyncCheckGroup",
796
+ source: "PROGRAMS",
797
+ },
798
+ ],
1074
799
  },
1075
- {
1076
- key: "eventAreas",
1077
- title: "Event Areas",
1078
- type: "AsyncCheckGroup",
1079
- source: "EVENT_AREAS",
1080
- from: "eventAreas",
800
+ clone: null,
801
+ defaults: null,
802
+ },
803
+ ARTICLES: {
804
+ title: "Articles",
805
+ dataPacks: ["ARTICLES"],
806
+ local: false,
807
+ taxonomy: false,
808
+ fromPage: false,
809
+ translate: true,
810
+ schema: {
811
+ fields: [
812
+ {
813
+ key: "title",
814
+ title: "Title",
815
+ type: "TextField",
816
+ mandatory: true,
817
+ },
818
+ {
819
+ key: "subtitle",
820
+ title: "Subtitle",
821
+ type: "TextField",
822
+ mandatory: true,
823
+ },
824
+ {
825
+ key: "content",
826
+ title: "Content",
827
+ type: "RichText",
828
+ mandatory: true,
829
+ },
830
+ {
831
+ key: "linkText",
832
+ title: "Link text",
833
+ type: "TextField",
834
+ mandatory: true,
835
+ },
836
+ {
837
+ key: "link",
838
+ title: "Link",
839
+ type: "UrlField",
840
+ mandatory: true,
841
+ },
842
+ {
843
+ key: "image",
844
+ title: "Image",
845
+ type: "ImageField",
846
+ mandatory: true,
847
+ },
848
+ ],
1081
849
  },
1082
- {
1083
- key: "eventLocation",
1084
- title: "Event Locations",
1085
- type: "AsyncCheckGroup",
1086
- source: "EVENT_LOCATIONS",
1087
- from: "eventLocation",
850
+ clone: null,
851
+ defaultValues: null,
852
+ },
853
+ NEWS: {
854
+ title: "News",
855
+ dataPacks: ["NEWS"],
856
+ local: false,
857
+ taxonomy: false,
858
+ fromPage: true,
859
+ translate: true,
860
+ schema: {
861
+ templates: ["NewsDetail"],
862
+ fields: [
863
+ {
864
+ key: "title",
865
+ title: "Title",
866
+ from: "title",
867
+ type: "TextField",
868
+ },
869
+ {
870
+ key: "abstract",
871
+ title: "Abstract",
872
+ from: "abstract",
873
+ type: "TextField",
874
+ },
875
+ {
876
+ key: "image",
877
+ title: "Image",
878
+ from: "image",
879
+ type: "ImageField",
880
+ },
881
+ {
882
+ key: "categories",
883
+ title: "Categories",
884
+ from: "categories",
885
+ type: "AsyncCheckGroup",
886
+ source: "NEWS_AREAS",
887
+ indexable: true,
888
+ showList: true,
889
+ },
890
+ {
891
+ key: "lead",
892
+ title: "Lead",
893
+ from: "lead",
894
+ type: "TextField",
895
+ },
896
+ {
897
+ key: "longAbstract",
898
+ title: "longAbstract",
899
+ from: "longAbstract",
900
+ type: "TextField",
901
+ },
902
+ {
903
+ key: "content",
904
+ title: "Content",
905
+ from: "content",
906
+ type: "TextField",
907
+ },
908
+ {
909
+ key: "date",
910
+ title: "Date",
911
+ from: "date",
912
+ type: "TextField",
913
+ },
914
+ ],
915
+ searchFrom: ["lead", "longAbstract", "content"],
1088
916
  },
1089
- {
1090
- key: "eventFormat",
1091
- title: "Event Formats",
1092
- type: "AsyncCheckGroup",
1093
- source: "EVENT_FORMATS",
1094
- from: "eventFormat",
917
+ clone: null,
918
+ defaultValues: null,
919
+ },
920
+ STORY_TYPE: {
921
+ title: "Story Type",
922
+ dataPacks: ["STORIES"],
923
+ local: false,
924
+ taxonomy: true,
925
+ fromPage: false,
926
+ translate: true,
927
+ schema: null,
928
+ clone: null,
929
+ defaults: null,
930
+ },
931
+ STORY_PROFILE: {
932
+ title: "Story Profile",
933
+ dataPacks: ["STORIES", "PEOPLE"],
934
+ local: false,
935
+ taxonomy: true,
936
+ fromPage: false,
937
+ translate: true,
938
+ schema: null,
939
+ clone: null,
940
+ defaults: null,
941
+ },
942
+ STORIES: {
943
+ title: "Stories",
944
+ dataPacks: ["STORIES"],
945
+ local: false,
946
+ taxonomy: false,
947
+ fromPage: true,
948
+ translate: true,
949
+ schema: {
950
+ templates: ["StoryDetail"],
951
+ fields: [
952
+ {
953
+ key: "title",
954
+ title: "Title",
955
+ type: "TextField",
956
+ from: "title",
957
+ mandatory: true,
958
+ indexable: true,
959
+ },
960
+ {
961
+ key: "storyType",
962
+ title: "Type of story",
963
+ type: "AsyncCheckGroup",
964
+ source: "STORY_TYPE",
965
+ from: "storyType",
966
+ mandatory: true,
967
+ },
968
+ {
969
+ key: "storyProfile",
970
+ title: "Profile",
971
+ type: "AsyncCheckGroup",
972
+ source: "STORY_PROFILE",
973
+ from: "storyProfile",
974
+ mandatory: true,
975
+ indexable: true,
976
+ showList: true,
977
+ },
978
+ {
979
+ key: "quote",
980
+ title: "Quote",
981
+ type: "RichText",
982
+ from: "quote",
983
+ mandatory: true,
984
+ },
985
+ {
986
+ key: "image",
987
+ title: "Image",
988
+ type: "TextField",
989
+ from: "image",
990
+ },
991
+ {
992
+ key: "who",
993
+ title: "Who",
994
+ type: "TextField",
995
+ from: "who",
996
+ mandatory: true,
997
+ },
998
+ {
999
+ key: "position",
1000
+ title: "Position",
1001
+ type: "TextField",
1002
+ from: "position",
1003
+ mandatory: true,
1004
+ },
1005
+ ],
1006
+ searchFrom: ["quote", "who", "position"],
1095
1007
  },
1096
- {
1097
- key: "programType",
1098
- title: "Program Type",
1099
- type: "AsyncCheckGroup",
1100
- source: "PROGRAM_TYPES",
1101
- from: "programType",
1008
+ clone: null,
1009
+ defaultValues: null,
1010
+ },
1011
+ PEOPLE: {
1012
+ title: "People",
1013
+ dataPacks: ["PEOPLE"],
1014
+ local: false,
1015
+ taxonomy: false,
1016
+ fromPage: false,
1017
+ translate: true,
1018
+ schema: {
1019
+ fields: [
1020
+ {
1021
+ key: "title",
1022
+ title: "Name",
1023
+ type: "TextField",
1024
+ mandatory: true,
1025
+ },
1026
+ {
1027
+ key: "profile",
1028
+ title: "Profile",
1029
+ from: "profile",
1030
+ type: "AsyncCheckGroup",
1031
+ source: "STORY_PROFILE",
1032
+ indexable: true,
1033
+ showList: true,
1034
+ },
1035
+ {
1036
+ key: "image",
1037
+ title: "Image",
1038
+ type: "ImageField",
1039
+ mandatory: true,
1040
+ },
1041
+ {
1042
+ key: "position",
1043
+ title: "Position",
1044
+ type: "TextField",
1045
+ mandatory: true,
1046
+ },
1047
+ {
1048
+ key: "linkedin",
1049
+ title: "Linkedin",
1050
+ type: "UrlField",
1051
+ },
1052
+ {
1053
+ key: "phone",
1054
+ title: "Phone",
1055
+ type: "TextField",
1056
+ },
1057
+ {
1058
+ key: "email",
1059
+ title: "Email",
1060
+ type: "TextField",
1061
+ },
1062
+ {
1063
+ key: "imageBackground",
1064
+ title: "imageBackground",
1065
+ type: "ImageField",
1066
+ },
1067
+ {
1068
+ key: "modalDetail",
1069
+ title: "Modal Detail",
1070
+ type: "RichText",
1071
+ },
1072
+ ],
1073
+ searchFrom: [],
1102
1074
  },
1103
- {
1104
- key: "eventRegion",
1105
- title: "Region",
1106
- type: "AsyncCheckGroup",
1107
- source: "EVENT_REGION",
1108
- from: "eventRegion",
1109
- indexable: true,
1110
- showList: true,
1075
+ clone: null,
1076
+ defaultValues: null,
1077
+ },
1078
+ TESTIMONIALS: {
1079
+ title: "Testimonials",
1080
+ dataPacks: ["TESTIMONIALS"],
1081
+ local: false,
1082
+ taxonomy: false,
1083
+ fromPage: false,
1084
+ translate: true,
1085
+ schema: {
1086
+ fields: [
1087
+ {
1088
+ key: "image",
1089
+ title: "Image",
1090
+ type: "ImageField",
1091
+ mandatory: true,
1092
+ },
1093
+ {
1094
+ key: "quote",
1095
+ title: "Quote",
1096
+ type: "RichText",
1097
+ mandatory: true,
1098
+ },
1099
+ {
1100
+ key: "title",
1101
+ title: "Author",
1102
+ type: "TextField",
1103
+ mandatory: true,
1104
+ searchable: false,
1105
+ },
1106
+ {
1107
+ key: "jobTitle",
1108
+ title: "Job Title",
1109
+ type: "RichText",
1110
+ mandatory: true,
1111
+ },
1112
+ {
1113
+ key: "school",
1114
+ title: "School",
1115
+ from: "school",
1116
+ type: "AsyncCheckGroup",
1117
+ source: "SCHOOLS",
1118
+ indexable: true,
1119
+ showList: true,
1120
+ },
1121
+ ],
1111
1122
  },
1112
- ],
1113
- searchFrom: ["tag"],
1114
- },
1115
- clone: null,
1116
- defaultValues: null,
1117
- },
1118
- STUDYPLANS: {
1119
- title: "StudyPlans",
1120
- dataPacks: ["STUDYPLANS"],
1121
- local: false,
1122
- taxonomy: false,
1123
- fromPage: false,
1124
- translate: true,
1125
- schema: {
1126
- fields: [
1127
- {
1128
- key: "title",
1123
+ clone: null,
1124
+ defaultValues: {
1125
+ quote: "Lorem ipsum",
1129
1126
  title: "Title",
1130
- type: "TextField",
1131
- mandatory: true,
1132
- searchable: false,
1127
+ jobTitle: "Job title",
1133
1128
  },
1134
- {
1135
- type: "ArrayFieldGroup",
1136
- title: "",
1137
- key: "years",
1138
- name: "Year",
1129
+ },
1130
+ EVENTS: {
1131
+ title: "Events",
1132
+ dataPacks: ["EVENTS"],
1133
+ local: false,
1134
+ taxonomy: false,
1135
+ fromPage: true,
1136
+ translate: true,
1137
+ schema: {
1138
+ templates: ["EventDetail"],
1139
1139
  fields: [
1140
1140
  {
1141
+ key: "title",
1141
1142
  title: "Title",
1142
1143
  type: "TextField",
1143
- key: "yearTitle",
1144
- mandatory: "true",
1145
- isTitle: true,
1144
+ from: "title",
1146
1145
  },
1147
1146
  {
1148
- title: "Title Description",
1147
+ key: "image",
1148
+ title: "Image",
1149
+ type: "ImageField",
1150
+ from: "image",
1151
+ },
1152
+ {
1153
+ key: "tag",
1154
+ title: "Tag",
1149
1155
  type: "TextField",
1150
- key: "yearSubtitle",
1156
+ from: "tag",
1151
1157
  },
1152
1158
  {
1153
- title: "Year Description",
1154
- type: "RichText",
1155
- key: "yearDescription",
1159
+ key: "dateTime",
1160
+ title: "Event date and time",
1161
+ type: "DateField",
1162
+ from: "dateTime",
1163
+ indexable: true,
1156
1164
  },
1157
1165
  {
1158
- key: "divider",
1159
- title: "",
1160
- type: "FieldsDivider",
1161
- data: {
1162
- title: "Year Media",
1163
- text: "You can add a video or image to the year. if you add both, image will be the thumbnail of the video.",
1164
- },
1166
+ key: "eventHour",
1167
+ title: "Event Hour",
1168
+ type: "TextField",
1169
+ from: "eventHour",
1165
1170
  },
1166
1171
  {
1167
- key: "yearVideo",
1168
- title: "Year Video URL",
1172
+ key: "language",
1173
+ title: "Language",
1169
1174
  type: "TextField",
1175
+ from: "language",
1170
1176
  },
1171
1177
  {
1172
- key: "yearImg",
1173
- title: "Year Image",
1174
- type: "ImageField",
1178
+ key: "address",
1179
+ title: "Address",
1180
+ type: "TextField",
1181
+ from: "address",
1182
+ },
1183
+ {
1184
+ key: "country",
1185
+ title: "Country",
1186
+ type: "TextField",
1187
+ from: "country",
1188
+ },
1189
+ {
1190
+ key: "distributorDescription",
1191
+ title: "Distributor description",
1192
+ type: "TextField",
1193
+ from: "distributorDescription",
1194
+ },
1195
+ {
1196
+ key: "addToCalendar",
1197
+ title: "Add to calendar button",
1198
+ type: "ComponentContainer",
1199
+ from: "addToCalendar",
1200
+ },
1201
+ {
1202
+ key: "eventAreas",
1203
+ title: "Event Areas",
1204
+ type: "AsyncCheckGroup",
1205
+ source: "EVENT_AREAS",
1206
+ from: "eventAreas",
1207
+ },
1208
+ {
1209
+ key: "eventLocation",
1210
+ title: "Event Locations",
1211
+ type: "AsyncCheckGroup",
1212
+ source: "EVENT_LOCATIONS",
1213
+ from: "eventLocation",
1214
+ },
1215
+ {
1216
+ key: "eventFormat",
1217
+ title: "Event Formats",
1218
+ type: "AsyncCheckGroup",
1219
+ source: "EVENT_FORMATS",
1220
+ from: "eventFormat",
1221
+ },
1222
+ {
1223
+ key: "programType",
1224
+ title: "Program Type",
1225
+ type: "AsyncCheckGroup",
1226
+ source: "PROGRAM_TYPES",
1227
+ from: "programType",
1228
+ },
1229
+ {
1230
+ key: "eventRegion",
1231
+ title: "Region",
1232
+ type: "AsyncCheckGroup",
1233
+ source: "EVENT_REGION",
1234
+ from: "eventRegion",
1235
+ indexable: true,
1236
+ showList: true,
1237
+ },
1238
+ ],
1239
+ searchFrom: ["tag"],
1240
+ },
1241
+ clone: null,
1242
+ defaultValues: null,
1243
+ },
1244
+ STUDYPLANS: {
1245
+ title: "StudyPlans",
1246
+ dataPacks: ["STUDYPLANS"],
1247
+ local: false,
1248
+ taxonomy: false,
1249
+ fromPage: false,
1250
+ translate: true,
1251
+ schema: {
1252
+ fields: [
1253
+ {
1254
+ key: "title",
1255
+ title: "Title",
1256
+ type: "TextField",
1257
+ mandatory: true,
1258
+ searchable: false,
1175
1259
  },
1176
1260
  {
1177
1261
  type: "ArrayFieldGroup",
1178
- title: "SEMESTERS",
1179
- key: "semesters",
1180
- name: "Semester",
1181
- mandatory: "true",
1262
+ title: "",
1263
+ key: "years",
1264
+ name: "Year",
1182
1265
  fields: [
1183
1266
  {
1184
1267
  title: "Title",
1185
1268
  type: "TextField",
1186
- key: "semTitle",
1269
+ key: "yearTitle",
1187
1270
  mandatory: "true",
1188
1271
  isTitle: true,
1189
1272
  },
1273
+ {
1274
+ title: "Title Description",
1275
+ type: "TextField",
1276
+ key: "yearSubtitle",
1277
+ },
1278
+ {
1279
+ title: "Year Description",
1280
+ type: "RichText",
1281
+ key: "yearDescription",
1282
+ },
1283
+ {
1284
+ key: "divider",
1285
+ title: "",
1286
+ type: "FieldsDivider",
1287
+ data: {
1288
+ title: "Year Media",
1289
+ text: "You can add a video or image to the year. if you add both, image will be the thumbnail of the video.",
1290
+ },
1291
+ },
1292
+ {
1293
+ key: "yearVideo",
1294
+ title: "Year Video URL",
1295
+ type: "TextField",
1296
+ },
1297
+ {
1298
+ key: "yearImg",
1299
+ title: "Year Image",
1300
+ type: "ImageField",
1301
+ },
1190
1302
  {
1191
1303
  type: "ArrayFieldGroup",
1192
- title: "Subjects",
1193
- key: "subjects",
1194
- name: "Subject",
1304
+ title: "SEMESTERS",
1305
+ key: "semesters",
1306
+ name: "Semester",
1195
1307
  mandatory: "true",
1196
1308
  fields: [
1197
1309
  {
1198
1310
  title: "Title",
1199
1311
  type: "TextField",
1200
- key: "subjTitle",
1312
+ key: "semTitle",
1201
1313
  mandatory: "true",
1202
1314
  isTitle: true,
1203
1315
  },
1204
1316
  {
1205
- title: "Type",
1206
- type: "TextField",
1207
- key: "subjType",
1208
- mandatory: "true",
1209
- },
1210
- {
1211
- title: "Credits",
1212
- type: "NumberField",
1213
- key: "subjCredits",
1317
+ type: "ArrayFieldGroup",
1318
+ title: "Subjects",
1319
+ key: "subjects",
1320
+ name: "Subject",
1214
1321
  mandatory: "true",
1215
- },
1216
- {
1217
- type: "ReferenceField",
1218
- source: ["TEACHERS"],
1219
- key: "subjTeachers",
1220
- title: "Teachers",
1221
- selectionType: ["manual"],
1222
- maxItems: 4,
1223
- },
1224
- {
1225
- title: "Document",
1226
- type: "ConditionalField",
1227
- key: "documentConditional",
1228
- options: [
1322
+ fields: [
1229
1323
  {
1230
- value: "file",
1231
- title: "Upload File",
1232
- name: "file",
1324
+ title: "Title",
1325
+ type: "TextField",
1326
+ key: "subjTitle",
1327
+ mandatory: "true",
1328
+ isTitle: true,
1233
1329
  },
1234
1330
  {
1235
- value: "url",
1236
- title: "Url",
1237
- name: "url",
1331
+ title: "Type",
1332
+ type: "TextField",
1333
+ key: "subjType",
1334
+ mandatory: "true",
1238
1335
  },
1239
- ],
1240
- fields: [
1241
1336
  {
1242
- title: "Document File",
1243
- type: "FileField",
1244
- key: "subjDocumentFile",
1245
- condition: "file",
1337
+ title: "Credits",
1338
+ type: "NumberField",
1339
+ key: "subjCredits",
1340
+ mandatory: "true",
1246
1341
  },
1247
1342
  {
1248
- title: "Document URL",
1249
- type: "TextField",
1250
- key: "subjDocumentUrl",
1251
- placeholder: "https://",
1252
- condition: "url",
1343
+ type: "ReferenceField",
1344
+ source: ["TEACHERS"],
1345
+ key: "subjTeachers",
1346
+ title: "Teachers",
1347
+ selectionType: ["manual"],
1348
+ maxItems: 4,
1349
+ },
1350
+ {
1351
+ title: "Document",
1352
+ type: "ConditionalField",
1353
+ key: "documentConditional",
1354
+ options: [
1355
+ {
1356
+ value: "file",
1357
+ title: "Upload File",
1358
+ name: "file",
1359
+ },
1360
+ {
1361
+ value: "url",
1362
+ title: "Url",
1363
+ name: "url",
1364
+ },
1365
+ ],
1366
+ fields: [
1367
+ {
1368
+ title: "Document File",
1369
+ type: "FileField",
1370
+ key: "subjDocumentFile",
1371
+ condition: "file",
1372
+ },
1373
+ {
1374
+ title: "Document URL",
1375
+ type: "TextField",
1376
+ key: "subjDocumentUrl",
1377
+ placeholder: "https://",
1378
+ condition: "url",
1379
+ },
1380
+ ],
1253
1381
  },
1254
1382
  ],
1383
+ arrayType: "drowpDown",
1384
+ divider: {
1385
+ title: "SUBJECT DATA",
1386
+ text: "You can add one or more subjects to this Semester",
1387
+ },
1255
1388
  },
1256
1389
  ],
1257
1390
  arrayType: "drowpDown",
1258
1391
  divider: {
1259
- title: "SUBJECT DATA",
1260
- text: "You can add one or more subjects to this Semester",
1392
+ title: "",
1393
+ text: "",
1261
1394
  },
1262
1395
  },
1263
1396
  ],
1264
1397
  arrayType: "drowpDown",
1265
1398
  divider: {
1399
+ title: "STUDY PLAN DATA",
1400
+ text: "You can add one or more years to this Study Plan",
1401
+ },
1402
+ },
1403
+ {
1404
+ type: "ArrayFieldGroup",
1405
+ title: "",
1406
+ key: "CCS",
1407
+ name: "Credit",
1408
+ fields: [
1409
+ {
1410
+ title: "Credits Title",
1411
+ type: "TextField",
1412
+ key: "CCSTitle",
1413
+ },
1414
+ {
1415
+ title: "Credits Number",
1416
+ type: "NumberField",
1417
+ key: "CCSNumber",
1418
+ },
1419
+ ],
1420
+ arrayType: "inline",
1421
+ divider: {
1422
+ title: "COURSE CREDITS SUMMARY",
1423
+ text: "You can create a table with course credits summary",
1424
+ },
1425
+ },
1426
+ {
1427
+ key: "divider",
1428
+ title: "",
1429
+ type: "FieldsDivider",
1430
+ data: {
1266
1431
  title: "",
1267
1432
  text: "",
1268
1433
  },
1269
1434
  },
1270
- ],
1271
- arrayType: "drowpDown",
1272
- divider: {
1273
- title: "STUDY PLAN DATA",
1274
- text: "You can add one or more years to this Study Plan",
1275
- },
1276
- },
1277
- {
1278
- type: "ArrayFieldGroup",
1279
- title: "",
1280
- key: "CCS",
1281
- name: "Credit",
1282
- fields: [
1283
1435
  {
1284
- title: "Credits Title",
1436
+ title: "Total Credits Title",
1285
1437
  type: "TextField",
1286
- key: "CCSTitle",
1438
+ key: "totalCreditsTitle",
1287
1439
  },
1288
1440
  {
1289
- title: "Credits Number",
1441
+ title: "Total Credits Number",
1290
1442
  type: "NumberField",
1291
- key: "CCSNumber",
1443
+ key: "totalCreditsNumber",
1444
+ },
1445
+ {
1446
+ key: "divider",
1447
+ title: "",
1448
+ type: "FieldsDivider",
1449
+ data: {
1450
+ title: "Adviser Module",
1451
+ text: "You can add an Adviser Module",
1452
+ },
1453
+ },
1454
+ {
1455
+ title: "Adviser Module Title",
1456
+ type: "TextField",
1457
+ key: "adTitle",
1458
+ },
1459
+ {
1460
+ title: "Adviser Module Detail",
1461
+ type: "TextField",
1462
+ key: "adDetail",
1463
+ },
1464
+ {
1465
+ title: "Adviser Module Link",
1466
+ type: "UrlField",
1467
+ key: "adUrl",
1292
1468
  },
1293
1469
  ],
1294
- arrayType: "inline",
1295
- divider: {
1296
- title: "COURSE CREDITS SUMMARY",
1297
- text: "You can create a table with course credits summary",
1298
- },
1299
- },
1300
- {
1301
- key: "divider",
1302
- title: "",
1303
- type: "FieldsDivider",
1304
- data: {
1305
- title: "",
1306
- text: "",
1307
- },
1308
- },
1309
- {
1310
- title: "Total Credits Title",
1311
- type: "TextField",
1312
- key: "totalCreditsTitle",
1313
- },
1314
- {
1315
- title: "Total Credits Number",
1316
- type: "NumberField",
1317
- key: "totalCreditsNumber",
1318
1470
  },
1319
- {
1320
- key: "divider",
1321
- title: "",
1322
- type: "FieldsDivider",
1323
- data: {
1324
- title: "Adviser Module",
1325
- text: "You can add an Adviser Module",
1326
- },
1327
- },
1328
- {
1329
- title: "Adviser Module Title",
1330
- type: "TextField",
1331
- key: "adTitle",
1332
- },
1333
- {
1334
- title: "Adviser Module Detail",
1335
- type: "TextField",
1336
- key: "adDetail",
1337
- },
1338
- {
1339
- title: "Adviser Module Link",
1340
- type: "UrlField",
1341
- key: "adUrl",
1342
- },
1343
- ],
1344
- },
1345
- clone: null,
1346
- defaultValues: null,
1347
- },
1348
- UNIT: {
1349
- title: "Unit",
1350
- dataPacks: ["NEWS", "STORIES", "TEACHERS", "STUDIES"],
1351
- local: false,
1352
- taxonomy: false,
1353
- fromPage: false,
1354
- translate: true,
1355
- schema: {
1356
- fields: [
1357
- {
1358
- key: "title",
1359
- title: "Title",
1360
- type: "TextField",
1361
- mandatory: true,
1471
+ clone: null,
1472
+ defaultValues: null,
1473
+ },
1474
+ UNIT: {
1475
+ title: "Unit",
1476
+ dataPacks: ["NEWS", "STORIES", "TEACHERS", "STUDIES"],
1477
+ local: false,
1478
+ taxonomy: false,
1479
+ fromPage: false,
1480
+ translate: true,
1481
+ schema: {
1482
+ fields: [
1483
+ {
1484
+ key: "title",
1485
+ title: "Title",
1486
+ type: "TextField",
1487
+ mandatory: true,
1488
+ },
1489
+ ],
1362
1490
  },
1363
- ],
1364
- },
1365
- clone: null,
1366
- defaults: null,
1367
- },
1368
- STUDY_LANDING_TYPE: {
1369
- title: "Study Landing type",
1370
- dataPacks: ["STUDIES"],
1371
- local: true,
1372
- taxonomy: false,
1373
- fromPage: false,
1374
- translate: false,
1375
- schema: {
1376
- fields: [
1377
- {
1378
- title: "Title",
1379
- type: "TextField",
1380
- key: "title",
1491
+ clone: null,
1492
+ defaults: null,
1493
+ },
1494
+ STUDY_LANDING_TYPE: {
1495
+ title: "Study Landing type",
1496
+ dataPacks: ["STUDIES"],
1497
+ local: true,
1498
+ taxonomy: false,
1499
+ fromPage: false,
1500
+ translate: false,
1501
+ schema: {
1502
+ fields: [
1503
+ {
1504
+ title: "Title",
1505
+ type: "TextField",
1506
+ key: "title",
1507
+ },
1508
+ ],
1381
1509
  },
1382
- ],
1383
- },
1384
- clone: null,
1385
- defaultValues: null,
1386
- },
1387
- PROGRAM_TYPES: {
1388
- title: "Program Type",
1389
- dataPacks: ["EVENTS", "STORIES", "STUDIES"],
1390
- local: false,
1391
- taxonomy: true,
1392
- fromPage: false,
1393
- translate: true,
1394
- schema: null,
1395
- clone: null,
1396
- defaults: null,
1397
- },
1398
- PROGRAM_FORMAT: {
1399
- title: "Program Format",
1400
- dataPacks: ["EVENTS", "STORIES", "STUDIES"],
1401
- local: false,
1402
- taxonomy: true,
1403
- fromPage: false,
1404
- translate: true,
1405
- schema: null,
1406
- clone: null,
1407
- defaults: null,
1408
- },
1409
- SCHOOLS: {
1410
- title: "Schools",
1411
- dataPacks: ["NEWS", "STUDIES", "TEACHERS", "TESTIMONIALS"],
1412
- local: false,
1413
- taxonomy: true,
1414
- fromPage: false,
1415
- translate: true,
1416
- schema: null,
1417
- clone: null,
1418
- defaultValues: null,
1419
- },
1420
- PATHWAYS: {
1421
- title: "Pathways",
1422
- dataPacks: ["NEWS", "STUDIES", "TEACHERS"],
1423
- local: false,
1424
- taxonomy: true,
1425
- fromPage: false,
1426
- translate: true,
1427
- schema: null,
1428
- clone: null,
1429
- defaultValues: null,
1430
- },
1431
- NEWS_AREAS: {
1432
- title: "News Areas",
1433
- dataPacks: ["NEWS"],
1434
- local: false,
1435
- taxonomy: true,
1436
- fromPage: false,
1437
- translate: true,
1438
- schema: null,
1439
- clone: null,
1440
- defaults: null,
1441
- },
1442
- GLOBAL_NEWS: {
1443
- title: "Global News",
1444
- dataPacks: ["NEWS"],
1445
- local: false,
1446
- taxonomy: true,
1447
- fromPage: false,
1448
- translate: true,
1449
- schema: null,
1450
- clone: null,
1451
- defaults: null,
1452
- },
1453
- EVENT_AREAS: {
1454
- title: "Event Areas",
1455
- dataPacks: ["EVENTS"],
1456
- local: false,
1457
- taxonomy: true,
1458
- fromPage: false,
1459
- translate: true,
1460
- schema: null,
1461
- clone: null,
1462
- defaults: null,
1463
- },
1464
- LOCATION: {
1465
- title: "Location",
1466
- dataPacks: ["EVENTS"],
1467
- local: false,
1468
- taxonomy: true,
1469
- fromPage: false,
1470
- translate: true,
1471
- schema: null,
1472
- clone: null,
1473
- defaults: null,
1474
- },
1475
- EVENT_FORMATS: {
1476
- title: "Event Formats",
1477
- dataPacks: ["EVENTS"],
1478
- local: false,
1479
- taxonomy: true,
1480
- fromPage: false,
1481
- translate: true,
1482
- schema: null,
1483
- clone: null,
1484
- defaults: null,
1485
- },
1486
- EVENT_LOCATIONS: {
1487
- title: "Event Locations",
1488
- dataPacks: ["EVENTS"],
1489
- local: false,
1490
- taxonomy: true,
1491
- fromPage: false,
1492
- translate: true,
1493
- schema: null,
1494
- clone: null,
1495
- defaults: null,
1496
- },
1497
- EVENT_REGION: {
1498
- title: "Event Region",
1499
- dataPacks: ["EVENTS"],
1500
- local: false,
1501
- taxonomy: true,
1502
- fromPage: false,
1503
- translate: true,
1504
- schema: null,
1505
- clone: null,
1506
- defaults: null,
1507
- },
1508
- },
1509
- templates: {
1510
- default: {
1511
- config: [
1512
- {
1513
- field: {
1514
- title: "Name",
1515
- key: "title",
1516
- type: "TextField",
1517
- mandatory: true,
1518
- modifiable: true,
1519
- }
1510
+ clone: null,
1511
+ defaultValues: null,
1520
1512
  },
1521
- ]
1522
- },
1523
- BasicTemplate: {
1524
- schemaType: "template",
1525
- displayName: "Basic Template",
1526
- component: "BasicTemplate",
1527
- dataPacks: null,
1528
- type: { label: "Static", value: "static" },
1529
- config: [
1530
- {
1531
- title: "Style",
1532
- key: "primaryLinkStyle",
1533
- type: "VisualUniqueSelection",
1534
- options: [
1535
- {
1536
- value: "primary",
1537
- img: 'img/themes/primaryStyle',
1538
- },
1539
- {
1540
- value: "secondary",
1541
- img: 'img/themes/primaryStyle',
1542
- },
1543
- {
1544
- value: "link",
1545
- img: 'img/themes/primaryStyle',
1546
- },
1547
- ],
1548
- columns: 3,
1513
+ PROGRAM_TYPES: {
1514
+ title: "Program Type",
1515
+ dataPacks: ["EVENTS", "STORIES", "STUDIES"],
1516
+ local: false,
1517
+ taxonomy: true,
1518
+ fromPage: false,
1519
+ translate: true,
1520
+ schema: null,
1521
+ clone: null,
1522
+ defaults: null,
1549
1523
  },
1550
- ],
1551
- content: [
1552
- {
1553
- title: "Hero Section",
1554
- type: "ComponentArray",
1555
- maxItems: 1,
1556
- whiteList: ["BasicContent"],
1557
- key: "heroSection",
1524
+ PROGRAM_FORMAT: {
1525
+ title: "Program Format",
1526
+ dataPacks: ["EVENTS", "STORIES", "STUDIES"],
1527
+ local: false,
1528
+ taxonomy: true,
1529
+ fromPage: false,
1530
+ translate: true,
1531
+ schema: null,
1532
+ clone: null,
1533
+ defaults: null,
1558
1534
  },
1559
- ],
1560
- default: {
1561
- type: "template",
1562
- templateType: "BasicTemplate",
1563
- heroSection: {
1564
- component: "Section",
1565
- name: "Hero Section",
1566
- modules: [],
1567
- sectionPosition: 1,
1535
+ SCHOOLS: {
1536
+ title: "Schools",
1537
+ dataPacks: ["NEWS", "STUDIES", "TEACHERS", "TESTIMONIALS"],
1538
+ local: false,
1539
+ taxonomy: true,
1540
+ fromPage: false,
1541
+ translate: true,
1542
+ schema: null,
1543
+ clone: null,
1544
+ defaultValues: null,
1568
1545
  },
1569
- },
1570
- thumbnails: {
1571
- "default-theme": {
1572
- "1x": "/thumbnails/HeroCard",
1573
- "2x": "/thumbnails/HeroCard@2x",
1546
+ PATHWAYS: {
1547
+ title: "Pathways",
1548
+ dataPacks: ["NEWS", "STUDIES", "TEACHERS"],
1549
+ local: false,
1550
+ taxonomy: true,
1551
+ fromPage: false,
1552
+ translate: true,
1553
+ schema: null,
1554
+ clone: null,
1555
+ defaultValues: null,
1556
+ },
1557
+ NEWS_AREAS: {
1558
+ title: "News Areas",
1559
+ dataPacks: ["NEWS"],
1560
+ local: false,
1561
+ taxonomy: true,
1562
+ fromPage: false,
1563
+ translate: true,
1564
+ schema: null,
1565
+ clone: null,
1566
+ defaults: null,
1567
+ },
1568
+ GLOBAL_NEWS: {
1569
+ title: "Global News",
1570
+ dataPacks: ["NEWS"],
1571
+ local: false,
1572
+ taxonomy: true,
1573
+ fromPage: false,
1574
+ translate: true,
1575
+ schema: null,
1576
+ clone: null,
1577
+ defaults: null,
1578
+ },
1579
+ EVENT_AREAS: {
1580
+ title: "Event Areas",
1581
+ dataPacks: ["EVENTS"],
1582
+ local: false,
1583
+ taxonomy: true,
1584
+ fromPage: false,
1585
+ translate: true,
1586
+ schema: null,
1587
+ clone: null,
1588
+ defaults: null,
1589
+ },
1590
+ LOCATION: {
1591
+ title: "Location",
1592
+ dataPacks: ["EVENTS"],
1593
+ local: false,
1594
+ taxonomy: true,
1595
+ fromPage: false,
1596
+ translate: true,
1597
+ schema: null,
1598
+ clone: null,
1599
+ defaults: null,
1600
+ },
1601
+ EVENT_FORMATS: {
1602
+ title: "Event Formats",
1603
+ dataPacks: ["EVENTS"],
1604
+ local: false,
1605
+ taxonomy: true,
1606
+ fromPage: false,
1607
+ translate: true,
1608
+ schema: null,
1609
+ clone: null,
1610
+ defaults: null,
1574
1611
  },
1575
- "griddo-alt-theme": {
1576
- "1x": "/thumbnails/HeroCard",
1577
- "2x": "/thumbnails/HeroCard@2x",
1612
+ EVENT_LOCATIONS: {
1613
+ title: "Event Locations",
1614
+ dataPacks: ["EVENTS"],
1615
+ local: false,
1616
+ taxonomy: true,
1617
+ fromPage: false,
1618
+ translate: true,
1619
+ schema: null,
1620
+ clone: null,
1621
+ defaults: null,
1578
1622
  },
1579
- },
1623
+ EVENT_REGION: {
1624
+ title: "Event Region",
1625
+ dataPacks: ["EVENTS"],
1626
+ local: false,
1627
+ taxonomy: true,
1628
+ fromPage: false,
1629
+ translate: true,
1630
+ schema: null,
1631
+ clone: null,
1632
+ defaults: null,
1633
+ },
1634
+ },
1580
1635
  },
1581
- }
1582
- },
1583
- moduleCategories: [
1584
- {
1585
- "label": "Developing",
1586
- "value": "developing",
1587
- "featured": true
1588
- },
1589
- {
1590
- "label": "Spacers",
1591
- "value": "spacers",
1592
- "featured": true
1593
- },
1594
- {
1595
- "label": "Interactive",
1596
- "value": "interactive"
1597
- },
1598
- {
1599
- "label": "Collections",
1600
- "value": "collections"
1601
- },
1602
- {
1603
- "label": "Articles And Events",
1604
- "value": "articlesAndEvents"
1605
1636
  },
1606
- {
1607
- "label": "Content",
1608
- "value": "content"
1609
- },
1610
- {
1611
- "label": "Featured",
1612
- "value": "featured"
1613
- },
1614
- {
1615
- "label": "Studies",
1616
- "value": "studies"
1617
- },
1618
- {
1619
- "label": "People",
1620
- "value": "people"
1621
- },
1622
- {
1623
- "label": "Social",
1624
- "value": "social"
1625
- },
1626
- {
1627
- "label": "Iframe",
1628
- "value": "iframe"
1629
- }
1630
- ]
1631
- };
1637
+ },
1638
+ };