@dcodegroup-au/page-builder 0.2.8 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/page-builder.css +2 -2
  2. package/dist/page-builder.es.js +33363 -11858
  3. package/dist/page-builder.umd.js +59 -59
  4. package/example/src/App.vue +40 -679
  5. package/example/src/main.js +2 -1
  6. package/example/src/pages/BestLife.js +351 -0
  7. package/example/src/pages/Home.js +677 -0
  8. package/package.json +1 -1
  9. package/src/assets/icons.json +3569 -0
  10. package/src/components/ItemEdit.vue +147 -71
  11. package/src/components/LinkCardEdit.vue +139 -0
  12. package/src/components/PageBuilder.vue +43 -10
  13. package/src/components/PageRender.vue +12 -0
  14. package/src/components/builders/CollectionCarousel.vue +62 -0
  15. package/src/components/builders/Header.vue +82 -0
  16. package/src/components/builders/ImageBlock.vue +56 -0
  17. package/src/components/builders/Items.vue +112 -0
  18. package/src/components/builders/Links.vue +123 -0
  19. package/src/components/builders/Logos.vue +122 -0
  20. package/src/components/builders/NewsGrid.vue +59 -0
  21. package/src/components/builders/Paragraph.vue +93 -0
  22. package/src/components/builders/VideoGrid.vue +101 -0
  23. package/src/components/common/Button.vue +53 -0
  24. package/src/components/common/Card.vue +5 -1
  25. package/src/components/common/FileUpload.vue +1 -1
  26. package/src/components/common/Icon.vue +41 -0
  27. package/src/components/common/IconSelector.vue +106 -0
  28. package/src/components/common/LinkedTo.vue +9 -3
  29. package/src/components/helpers/bundleIcons.js +1189 -0
  30. package/src/components/index.js +2 -1
  31. package/src/components/presenters/components/{VCollectionGridPresenter.vue → CollectionGridPresenter.vue} +0 -5
  32. package/src/components/presenters/modules/CollectionCarousel.vue +2 -2
  33. package/src/components/presenters/modules/CollectionGrid.vue +2 -2
  34. package/src/components/presenters/modules/HeroHeader.vue +2 -2
  35. package/src/components/presenters/modules/LinkCard.vue +55 -0
  36. package/src/components/presenters/modules/LinkList.vue +51 -0
  37. package/src/components/presenters/modules/Paragraph.vue +26 -0
  38. package/src/components/presenters/modules/QuickLinks.vue +2 -2
  39. package/src/components/presenters/modules/StandardHeader.vue +32 -0
  40. package/src/components/presenters/modules/Timeline.vue +53 -0
  41. package/src/components/presenters/modules/TwoColumnsImageContent.vue +36 -0
  42. package/src/components/presenters/modules/VTabs.vue +2 -2
  43. package/src/utils/generateIconBundle.js +33 -0
  44. package/src/utils/generateIconJson.js +30 -0
  45. package/tailwind.config.js +5 -0
  46. package/src/components/builders/BaseModuleForm.vue +0 -86
  47. package/src/components/builders/LogoBuilder.vue +0 -167
  48. package/src/components/builders/PageBuilderCarousel.vue +0 -18
  49. package/src/components/builders/PageBuilderGrid.vue +0 -18
  50. package/src/components/builders/PageBuilderSectionHeader.vue +0 -30
  51. package/src/components/builders/PageModal.vue +0 -92
  52. package/src/components/builders/VCollectionCarousel.vue +0 -58
  53. package/src/components/builders/VHeader.vue +0 -55
  54. package/src/components/builders/VItems.vue +0 -110
  55. package/src/components/builders/VLinks.vue +0 -121
  56. package/src/components/builders/VLogos.vue +0 -120
  57. package/src/components/builders/VNewsGrid.vue +0 -55
  58. package/src/components/builders/VVideoGrid.vue +0 -99
  59. package/src/components/common/forms/LogosForm.vue +0 -39
  60. package/src/components/common/forms/PageBuilderLinksForm.vue +0 -39
  61. package/src/components/common/forms/SectionHeaderForm.vue +0 -45
  62. package/src/components/common/forms/TabForm.vue +0 -90
  63. /package/src/components/common/{VModal.vue → Modal.vue} +0 -0
  64. /package/src/components/common/{VToggle.vue → Toggle.vue} +0 -0
  65. /package/src/components/presenters/components/{VCarouselPresenter.vue → CarouselPresenter.vue} +0 -0
  66. /package/src/components/presenters/components/{VHeaderPresenter.vue → HeaderPresenter.vue} +0 -0
  67. /package/src/components/presenters/components/{VLinkPresenter.vue → LinkPresenter.vue} +0 -0
  68. /package/src/components/presenters/components/{VSliderPresenter.vue → SliderPresenter.vue} +0 -0
  69. /package/src/components/presenters/components/{VVerticalTabPresenter.vue → VerticalTabPresenter.vue} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { createApp } from 'vue'
2
2
 
3
3
  import App from './App.vue'
4
- import { PageBuilder, ItemEdit, PageRender } from '../../dist/page-builder.es.js'
4
+ import { PageBuilder, ItemEdit, PageRender, LinkCardEdit } from '../../dist/page-builder.es.js'
5
5
  import '../../dist/page-builder.css';
6
6
 
7
7
  // This is how to override upload component
@@ -9,6 +9,7 @@ import '../../dist/page-builder.css';
9
9
 
10
10
  const app = createApp(App)
11
11
  // app.provide("VFileUpload", VFileUpload)
12
+ app.component('LinkCardEdit', LinkCardEdit)
12
13
  app.component('ItemEdit', ItemEdit)
13
14
  app.component('PageBuilder', PageBuilder)
14
15
  app.component('PageRender', PageRender)
@@ -0,0 +1,351 @@
1
+ export const BestLife = {
2
+ id: 1,
3
+ title: "Best Start Best Life",
4
+ sections: [
5
+ {
6
+ title: "Standard header",
7
+ type: "standard_header",
8
+ components: [
9
+ {
10
+ name: "Standard header",
11
+ type: "header",
12
+ title: "Best Start Best Life Reform",
13
+ supporting_text: "The Best Start Best Life reform, an initiative by the Victorian state government, prioritises early childhood education as a foundation for lifelong success.",
14
+ featured_image: "https://beta-frontend.elaa.org.au/img/what-we-do/best-start-best-life/header.jpg",
15
+ },
16
+ ]
17
+ },
18
+ {
19
+ title: "Paragraph section",
20
+ type: "paragraph",
21
+ components: [
22
+ {
23
+ name: "Paragraph section",
24
+ type: "paragraph",
25
+ title: "ELAA is proudly supporting",
26
+ paragraph: "Team member\n" +
27
+ "Paragraph\n" +
28
+ "@olivia\n" +
29
+ "The Victorian Government's Best Start, Best Life reforms represent the most substantial transformation in Victoria's early childhood sector in a generation. As part of these reforms:\n" +
30
+ "The Three-Year-Old Kindergarten program will expand, reaching 15 hours per week across the state by 2029.\n" +
31
+ "The Four-Year-Old Kindergarten program will evolve into Pre-Prep, with weekly hours increasing from 15 to 30 by 2036 throughout Victoria.\n" +
32
+ "Extending the hours of teacher-led, play-based learning through Pre-Prep in the year before school provides children with enhanced access to the numerous benefits of early childhood education. Pre-Prep will launch in 2025, starting with children in six regional Victorian local government areas, and will gradually expand across the state.\n" +
33
+ "This is a hint text to help user.",
34
+ },
35
+ ]
36
+ },
37
+ {
38
+ title: "Two columns with image and content",
39
+ type: "two_column_image_content",
40
+ display: "horizontal",
41
+ components: [
42
+ {
43
+ name: "Content Block",
44
+ type: "paragraph",
45
+ title: "3 year old Kinder",
46
+ paragraph: "Starting in 2025, service providers will have the flexibility to decide the number of hours of funded Three-Year-Old Kindergarten they offer each week, ranging from a minimum of 5 hours to a maximum of 15 hours, within established guidelines.",
47
+ },
48
+ {
49
+ name: "Image Block",
50
+ type: "image_block",
51
+ caption: "Starting in 2025, service providers will have the flexibility to decide the number of hours of funded Three-Year-Old Kindergarten they offer each week, ranging from a minimum of 5 hours to a maximum of 15 hours, within established guidelines.",
52
+ featured_image: "https://beta.elaa.org.au/img/what-we-do/best-start-best-life/divided-01.jpg",
53
+ },
54
+ ]
55
+ },
56
+ {
57
+ title: "Two columns with image and content",
58
+ type: "two_column_image_content",
59
+ display: "horizontal",
60
+ components: [
61
+ {
62
+ name: "Content Block",
63
+ type: "paragraph",
64
+ title: "3 year old Kinder",
65
+ paragraph: "Starting in 2025, service providers will have the flexibility to decide the number of hours of funded Three-Year-Old Kindergarten they offer each week, ranging from a minimum of 5 hours to a maximum of 15 hours, within established guidelines.",
66
+ },
67
+ {
68
+ name: "Image Block",
69
+ type: "image_block",
70
+ caption: "Reference: Image from Department of Education Operational policies supporting the Best Start, Best Life reforms | vic.gov.au (www.vic.gov.au)",
71
+ featured_image: "https://beta.elaa.org.au/img/what-we-do/best-start-best-life/divided-02.jpg",
72
+ },
73
+ ]
74
+ },
75
+ {
76
+ title: "Timeline",
77
+ type: "timeline",
78
+ components: [
79
+ {
80
+ name: "Section header",
81
+ type: "header",
82
+ title: "Pre Prep Roll Out Schedule",
83
+ supporting_text: "Kindergarten Parents Victoria (now Early Learning Association Australia) was established in 1991 to ensure that early childhood education thrived in Victoria."
84
+ },
85
+ {
86
+ name: "Timeline Items",
87
+ type: "timeline_items",
88
+ supportive_text: "Manage the timeline items.",
89
+ max_items: 10,
90
+ data: [
91
+ {
92
+ title: "30+ years ago",
93
+ group_title: "Parent Action for Kindergartens",
94
+ max_items: 5,
95
+ lines: [
96
+ {
97
+ title: "Vision and Dedication",
98
+ description: "The organisation sprang from the vision and dedication of two key founders – Marg Stephens and Karen Weston who, with other parents passionate about the right of children to access high quality education, formed a group called Parent Action for Kindergartens over 30 years ago.",
99
+ },
100
+ {
101
+ title: "Formation Efforts",
102
+ description: "The group worked with Victorian members of Parliament; the Office of Preschool and Childcare; and a variety of organisations such as the Australian Early Childhood Association and the Anglican and Uniting Churches Early Childhood Industrial Council toward the formation of a State-wide organisation.",
103
+ },
104
+ {
105
+ title: "Free Downloadable Resources",
106
+ description: "Explore a variety of no-cost tools and information available to everyone.",
107
+ },
108
+ ]
109
+ },
110
+ {
111
+ title: "May 1991",
112
+ group_title: "KPV (Kindergarten Parents Victoria)",
113
+ max_items: 5,
114
+ lines: [
115
+ {
116
+ title: "Free Downloadable Resources",
117
+ description: "Explore a variety of no-cost tools and information available to everyone.",
118
+ },
119
+ {
120
+ title: "Free Downloadable Resources",
121
+ description: "Explore a variety of no-cost tools and information available to everyone.",
122
+ },
123
+ {
124
+ title: "Free Downloadable Resources",
125
+ description: "Explore a variety of no-cost tools and information available to everyone.",
126
+ },
127
+ ]
128
+ }
129
+ ],
130
+ },
131
+ ]
132
+ },
133
+ {
134
+ title: "Link card section",
135
+ type: "link_card",
136
+ display: "vertical",
137
+ components: [
138
+ {
139
+ name: "Section header",
140
+ type: "header",
141
+ title: "ELAA Supports",
142
+ // supporting_text: "ELAA’s preferred partners offer special benefits to ELAA members and support ELAA’s activities",
143
+ // featured_image: "https://beta.elaa.org.au/img/what-we-do/best-start-best-life/divided-02.jpg",
144
+ },
145
+ {
146
+ name: "Link cards",
147
+ type: "link_cards",
148
+ supportive_text: "Manage the link cards.",
149
+
150
+ max_items: 4,
151
+ data: [
152
+ {
153
+ title: "Read more about our history",
154
+ description: "Happy Birthday ELAA – celebrating 30 years of service to members",
155
+ icon: "AlertCircle",
156
+ public: true,
157
+ primary_button: {
158
+ show: true,
159
+ name: 'Button',
160
+ label: 'Learn more',
161
+ url: 'https://beta-frontend.elaa.org.au/img/homepage/asset_free_resources.png', // external could be an url
162
+ type: 'external-page',
163
+ is_new_tab: true,
164
+ }
165
+ },
166
+ {
167
+ title: "Read more about our history",
168
+ description: "Happy Birthday ELAA – celebrating 30 years of service to members",
169
+ public: true,
170
+ icon: 'AlignLeft01',
171
+ primary_button: {
172
+ show: true,
173
+ name: 'Button',
174
+ label: 'Learn more',
175
+ url: 'https://beta-frontend.elaa.org.au/img/homepage/asset_free_resources.png', // external could be an url
176
+ type: 'external-page',
177
+ is_new_tab: true,
178
+ }
179
+ },
180
+ ]
181
+ }
182
+ ]
183
+ },
184
+ {
185
+ title: "Video grid",
186
+ type: "collection_grid",
187
+ components: [
188
+ {
189
+ name: "Section header",
190
+ type: "header",
191
+ title: 'Videos',
192
+ dark: true,
193
+ center: true,
194
+ supporting_text: 'Stay Informed with the Latest Developments in Early Education',
195
+ },
196
+ {
197
+ name: "Grid",
198
+ type: "video_grid",
199
+ max_items: 3,
200
+ data: [
201
+ {
202
+ video: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerFun.mp4",
203
+ },
204
+ {
205
+ video: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4",
206
+ },
207
+ {
208
+ video: "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4",
209
+ }
210
+ ]
211
+ }
212
+ ]
213
+ },
214
+ {
215
+ title: "News grid",
216
+ type: "collection_grid",
217
+ components: [
218
+ {
219
+ name: "Section header",
220
+ type: "header",
221
+ title: 'News',
222
+ dark: true,
223
+ center: true,
224
+ supporting_text: 'Stay Informed with the Latest Developments in Early Education',
225
+ },
226
+ {
227
+ name: "Grid",
228
+ type: "news_grid",
229
+ button: {
230
+ title: 'View all news',
231
+ url: 'google.com', // external could be an url
232
+ type: 'external-page',
233
+ is_new_tab: true,
234
+ show: true,
235
+ },
236
+ content: {
237
+ label: 'Content',
238
+ supportive_text: 'This grid will be automatically populated with the latest three news items.',
239
+ items: [
240
+ {
241
+ image: "https://beta-frontend.elaa.org.au/img/news/news_1.jpg",
242
+ categories: [{
243
+ name: 'Wages, IR and Governance',
244
+ style: 'navy',
245
+ }],
246
+ link: "https://example.com",
247
+ title: "Fair Work Laws changes for casual employment",
248
+ dateTime: "10 Sep 2024",
249
+ },
250
+ {
251
+ image: "https://beta-frontend.elaa.org.au/img/news/news_2.jpg",
252
+ categories: [{
253
+ name: 'Member Benefits',
254
+ style: 'brand',
255
+ }],
256
+ link: "https://example.com",
257
+ title: "ELAA renews its partnership with Bunnings for another year: make the most of your Bunnings PowerPass membership benefits",
258
+ dateTime: "09 Sep 2024",
259
+ },
260
+ {
261
+ image: "https://beta-frontend.elaa.org.au/img/news/news_3.jpg",
262
+ categories: [{
263
+ name: 'Advocacy',
264
+ style: 'orange',
265
+ }],
266
+ link: "https://example.com",
267
+ title: "Meet our Best Start Best Life (BSBL) Reform and Engagement Advisor Leanne Rodriguez",
268
+ dateTime: "08 Sep 2024",
269
+ },
270
+ ]
271
+ }
272
+ },
273
+ ]
274
+ },
275
+ {
276
+ title: "Link list section",
277
+ type: "link_list",
278
+ two_columns: true,
279
+ components: [
280
+ {
281
+ name: "Section header",
282
+ type: "header",
283
+ title: 'Upcoming Events',
284
+ dark: true,
285
+ supporting_text: 'Don\'t Miss Our Upcoming Activities and Gatherings in Early Education.',
286
+ featured_image: "https://beta.elaa.org.au/img/what-we-do/best-start-best-life/divided-02.jpg",
287
+ },
288
+ {
289
+ name: "Links",
290
+ type: "links",
291
+ supportive_text: "Manage the links.",
292
+ max_items: 7,
293
+ data: [
294
+ {
295
+ title: "The Best Start Best Life reforms",
296
+ url: '/admin', // external could be an url
297
+ type: 'site-content',
298
+ open_in_new_tab: true,
299
+ },
300
+ {
301
+ title: "Pre Prep – Four-Year-Old Kindergarten is becoming Pre-Prep",
302
+ url: 'https://google.com', // external could be an url
303
+ type: 'external-page',
304
+ open_in_new_tab: true,
305
+ },
306
+ {
307
+ title: "Transforming early childhood education together: What we heard what we’re doing report",
308
+ url: 'https://google.com', // external could be an url
309
+ type: 'external-page',
310
+ open_in_new_tab: true,
311
+ },
312
+ {
313
+ title: "What we’re doing to support the workforce",
314
+ url: 'https://google.com', // external could be an url
315
+ type: 'external-page',
316
+ open_in_new_tab: true,
317
+ }
318
+ ]
319
+ },
320
+ {
321
+ name: "Section header",
322
+ type: "header",
323
+ title: 'Upcoming Events',
324
+ dark: true,
325
+ supporting_text: 'Don\'t Miss Our Upcoming Activities and Gatherings in Early Education.',
326
+ featured_image: "https://beta.elaa.org.au/img/what-we-do/best-start-best-life/divided-02.jpg",
327
+ },
328
+ {
329
+ name: "Links",
330
+ type: "links",
331
+ supportive_text: "Manage the links.",
332
+ max_items: 7,
333
+ data: [
334
+ {
335
+ title: "Privacy Policy",
336
+ url: '/admin', // external could be an url
337
+ type: 'site-content',
338
+ open_in_new_tab: true,
339
+ },
340
+ {
341
+ title: "Google",
342
+ url: 'https://google.com', // external could be an url
343
+ type: 'external-page',
344
+ open_in_new_tab: true,
345
+ }
346
+ ]
347
+ }
348
+ ]
349
+ },
350
+ ]
351
+ };