From c2c67c15a7c6c5ab9d69739102fe266625500adf Mon Sep 17 00:00:00 2001 From: szymon Date: Fri, 28 Nov 2025 09:55:12 +0100 Subject: [PATCH] bump version to 0.0.31 and add AosSelect component for animation selection in Pagebuilder --- package.json | 2 +- src/components/AosSelect.vue | 89 +++++++++++++++++++++++++++ src/components/PagebuilderContent.vue | 13 ++-- src/components/PagebuilderSection.vue | 9 ++- src/components/grid.js | 66 ++++++++++---------- 5 files changed, 137 insertions(+), 42 deletions(-) create mode 100644 src/components/AosSelect.vue diff --git a/package.json b/package.json index 5d77ada..8bd58b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "magico-pagebuilder", - "version": "0.0.30", + "version": "0.0.31", "private": true, "scripts": { "dev": "vite", diff --git a/src/components/AosSelect.vue b/src/components/AosSelect.vue new file mode 100644 index 0000000..fdd15dd --- /dev/null +++ b/src/components/AosSelect.vue @@ -0,0 +1,89 @@ + + + \ No newline at end of file diff --git a/src/components/PagebuilderContent.vue b/src/components/PagebuilderContent.vue index 66401e5..6b447a3 100644 --- a/src/components/PagebuilderContent.vue +++ b/src/components/PagebuilderContent.vue @@ -19,14 +19,15 @@ v-on:onClose="modalColumnsSettings = false" >
-
- +
+
-
- +
+
+
+
- +
@@ -69,7 +70,7 @@
- +
@@ -92,12 +93,14 @@ import { useI18n } from 'vue-i18n' import grid from './grid.js' import MagicoModal from './MagicoModal.vue' import PagebuilderContent from './PagebuilderContent.vue' +import AosSelect from './AosSelect.vue' export default { props: { value: Object, keyIndex: String }, emits: ['update:modelValue', 'copy', 'deleteSection', 'change'], components: { 'b-modal': MagicoModal, - PagebuilderContent + PagebuilderContent, + AosSelect }, data: function () { return { items: grid, value2: '', show_settings: false, type: '' } diff --git a/src/components/grid.js b/src/components/grid.js index db71fdf..e37604b 100644 --- a/src/components/grid.js +++ b/src/components/grid.js @@ -4,7 +4,7 @@ export default { name: 'col_1', type: 'container', class: '', - columns: [{ name: 'col-md-12', items: [] }] + columns: [{ name: 'col-md-12', items: [], class: '', attribute: '' }] }, col_2: { label: '2 kolumny po 6 ', @@ -12,8 +12,8 @@ export default { type: 'container', class: '', columns: [ - { name: 'col-md-6', items: [] }, - { name: 'col-md-6', items: [] } + { name: 'col-md-6', items: [], class: '', attribute: '' }, + { name: 'col-md-6', items: [], class: '', attribute: '' } ] }, col_4_8: { @@ -22,8 +22,8 @@ export default { type: 'container', class: '', columns: [ - { name: 'col-md-4', items: [] }, - { name: 'col-md-8', items: [] } + { name: 'col-md-4', items: [], class: '', attribute: '' }, + { name: 'col-md-8', items: [], class: '', attribute: '' } ] }, col_8_4: { @@ -32,8 +32,8 @@ export default { type: 'container', class: '', columns: [ - { name: 'col-md-8', items: [] }, - { name: 'col-md-4', items: [] } + { name: 'col-md-8', items: [], class: '', attribute: '' }, + { name: 'col-md-4', items: [], class: '', attribute: '' } ] }, col_2_10: { @@ -42,8 +42,8 @@ export default { type: 'container', class: '', columns: [ - { name: 'col-md-2', items: [] }, - { name: 'col-md-10', items: [] } + { name: 'col-md-2', items: [], class: '', attribute: '' }, + { name: 'col-md-10', items: [], class: '', attribute: '' } ] }, col_10_2: { @@ -52,8 +52,8 @@ export default { type: 'container', class: '', columns: [ - { name: 'col-md-10', items: [] }, - { name: 'col-md-2', items: [] } + { name: 'col-md-10', items: [], class: '', attribute: '' }, + { name: 'col-md-2', items: [], class: '', attribute: '' } ] }, col_3: { @@ -62,9 +62,9 @@ export default { type: 'container', class: '', columns: [ - { name: 'col-md-4', items: [] }, - { name: 'col-md-4', items: [] }, - { name: 'col-md-4', items: [] } + { name: 'col-md-4', items: [], class: '', attribute: '' }, + { name: 'col-md-4', items: [], class: '', attribute: '' }, + { name: 'col-md-4', items: [], class: '', attribute: '' } ] }, col_3_6_3: { @@ -73,9 +73,9 @@ export default { type: 'container', class: '', columns: [ - { name: 'col-md-3', items: [] }, - { name: 'col-md-6', items: [] }, - { name: 'col-md-3', items: [] } + { name: 'col-md-3', items: [], class: '', attribute: '' }, + { name: 'col-md-6', items: [], class: '', attribute: '' }, + { name: 'col-md-3', items: [], class: '', attribute: '' } ] }, col_6_3_3: { @@ -84,9 +84,9 @@ export default { type: 'container', class: '', columns: [ - { name: 'col-md-6', items: [] }, - { name: 'col-md-3', items: [] }, - { name: 'col-md-3', items: [] } + { name: 'col-md-6', items: [], class: '', attribute: '' }, + { name: 'col-md-3', items: [], class: '', attribute: '' }, + { name: 'col-md-3', items: [], class: '', attribute: '' } ] }, col_3_3_6: { @@ -95,9 +95,9 @@ export default { type: 'container', class: '', columns: [ - { name: 'col-md-3', items: [] }, - { name: 'col-md-3', items: [] }, - { name: 'col-md-6', items: [] } + { name: 'col-md-3', items: [], class: '', attribute: '' }, + { name: 'col-md-3', items: [], class: '', attribute: '' }, + { name: 'col-md-6', items: [], class: '', attribute: '' } ] }, col_4: { @@ -106,10 +106,10 @@ export default { type: 'container', class: '', columns: [ - { name: 'col-md-3', items: [] }, - { name: 'col-md-3', items: [] }, - { name: 'col-md-3', items: [] }, - { name: 'col-md-3', items: [] } + { name: 'col-md-3', items: [], class: '', attribute: '' }, + { name: 'col-md-3', items: [], class: '', attribute: '' }, + { name: 'col-md-3', items: [], class: '', attribute: '' }, + { name: 'col-md-3', items: [], class: '', attribute: '' } ] }, col_6: { @@ -118,12 +118,12 @@ export default { type: 'container', class: '', columns: [ - { name: 'col-md-2', items: [] }, - { name: 'col-md-2', items: [] }, - { name: 'col-md-2', items: [] }, - { name: 'col-md-2', items: [] }, - { name: 'col-md-2', items: [] }, - { name: 'col-md-2', items: [] } + { name: 'col-md-2', items: [], class: '', attribute: '' }, + { name: 'col-md-2', items: [], class: '', attribute: '' }, + { name: 'col-md-2', items: [], class: '', attribute: '' }, + { name: 'col-md-2', items: [], class: '', attribute: '' }, + { name: 'col-md-2', items: [], class: '', attribute: '' }, + { name: 'col-md-2', items: [], class: '', attribute: '' } ] } }