@myissue/vue-website-page-builder 3.4.20 → 3.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -24
- package/dist/vue-website-page-builder.js +1 -1
- package/dist/vue-website-page-builder.umd.cjs +1 -1
- package/package.json +2 -3
- package/src/App.vue +0 -28
- package/src/Components/Homepage/Footer.vue +0 -32
- package/src/Components/Homepage/Navbar.vue +0 -25
- package/src/Components/Layouts/FullWidthElement.vue +0 -34
- package/src/Components/Loaders/GlobalLoader.vue +0 -18
- package/src/Components/Modals/BuilderComponents.vue +0 -53
- package/src/Components/Modals/DynamicModalBuilder.vue +0 -209
- package/src/Components/Modals/MediaLibraryModal.vue +0 -61
- package/src/Components/Modals/ModalBuilder.vue +0 -117
- package/src/Components/PageBuilder/EditorMenu/Editables/BackgroundColorEditor.vue +0 -121
- package/src/Components/PageBuilder/EditorMenu/Editables/BorderRadius.vue +0 -188
- package/src/Components/PageBuilder/EditorMenu/Editables/Borders.vue +0 -176
- package/src/Components/PageBuilder/EditorMenu/Editables/ClassEditor.vue +0 -112
- package/src/Components/PageBuilder/EditorMenu/Editables/ComponentTopMenu.vue +0 -108
- package/src/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue +0 -541
- package/src/Components/PageBuilder/EditorMenu/Editables/HTMLEditor.vue +0 -203
- package/src/Components/PageBuilder/EditorMenu/Editables/ImageEditor.vue +0 -96
- package/src/Components/PageBuilder/EditorMenu/Editables/LinkEditor.vue +0 -315
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageBackgroundOpacity.vue +0 -107
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageOpacity.vue +0 -106
- package/src/Components/PageBuilder/EditorMenu/Editables/Margin.vue +0 -116
- package/src/Components/PageBuilder/EditorMenu/Editables/OpacityEditor.vue +0 -19
- package/src/Components/PageBuilder/EditorMenu/Editables/Padding.vue +0 -117
- package/src/Components/PageBuilder/EditorMenu/Editables/StyleEditor.vue +0 -123
- package/src/Components/PageBuilder/EditorMenu/Editables/TextColorEditor.vue +0 -123
- package/src/Components/PageBuilder/EditorMenu/Editables/Typography.vue +0 -237
- package/src/Components/PageBuilder/EditorMenu/EditorAccordion.vue +0 -46
- package/src/Components/PageBuilder/EditorMenu/RightSidebarEditor.vue +0 -368
- package/src/Components/PageBuilder/Settings/AdvancedPageBuilderSettings.vue +0 -476
- package/src/Components/PageBuilder/Settings/PageBuilderSettings.vue +0 -581
- package/src/Components/PageBuilder/ToolbarOption/ToolbarOption.vue +0 -248
- package/src/Components/PageBuilder/UndoRedo/UndoRedo.vue +0 -90
- package/src/Components/TipTap/TipTap.vue +0 -25
- package/src/Components/TipTap/TipTapInput.vue +0 -341
- package/src/PageBuilder/PageBuilder.vue +0 -1025
- package/src/PageBuilder/Preview.vue +0 -64
- package/src/composables/builderInstance.ts +0 -47
- package/src/composables/delay.ts +0 -5
- package/src/composables/extractCleanHTMLFromPageBuilder.ts +0 -59
- package/src/composables/preloadImage.ts +0 -8
- package/src/composables/useDebounce.ts +0 -8
- package/src/composables/usePageBuilderModal.ts +0 -25
- package/src/composables/useTranslations.ts +0 -28
- package/src/css/dev-global.css +0 -24
- package/src/css/style.css +0 -600
- package/src/helpers/isEmptyObject.ts +0 -5
- package/src/index.ts +0 -28
- package/src/locales/ar.json +0 -170
- package/src/locales/de.json +0 -171
- package/src/locales/en.json +0 -171
- package/src/locales/es.json +0 -171
- package/src/locales/fr.json +0 -171
- package/src/locales/hi.json +0 -172
- package/src/locales/ja.json +0 -171
- package/src/locales/pt.json +0 -171
- package/src/locales/ru.json +0 -171
- package/src/locales/zh-Hans.json +0 -171
- package/src/main.ts +0 -14
- package/src/plugin.ts +0 -16
- package/src/services/LocalStorageManager.ts +0 -25
- package/src/services/PageBuilderService.ts +0 -3191
- package/src/stores/page-builder-state.ts +0 -498
- package/src/stores/shared-store.ts +0 -13
- package/src/tailwind-safelist.html +0 -3
- package/src/tests/DefaultComponents/DefaultBuilderComponents.vue +0 -284
- package/src/tests/DefaultComponents/DefaultMediaLibraryComponent.vue +0 -10
- package/src/tests/PageBuilderTest.vue +0 -82
- package/src/tests/TestComponents/DemoBuilderComponentsTest.vue +0 -5
- package/src/tests/TestComponents/DemoMediaLibraryComponentTest.vue +0 -8
- package/src/tests/TestComponents/DemoUnsplash.vue +0 -389
- package/src/tests/componentsArray.test.json +0 -62
- package/src/tests/pageBuilderService.test.ts +0 -165
- package/src/types/global.d.ts +0 -11
- package/src/types/index.ts +0 -306
- package/src/utils/builder/html-doc-declaration-with-components.ts +0 -7
- package/src/utils/builder/tailwaind-colors.ts +0 -503
- package/src/utils/builder/tailwind-border-radius.ts +0 -67
- package/src/utils/builder/tailwind-border-style-width-color.ts +0 -272
- package/src/utils/builder/tailwind-font-sizes.ts +0 -75
- package/src/utils/builder/tailwind-font-styles.ts +0 -56
- package/src/utils/builder/tailwind-opacities.ts +0 -45
- package/src/utils/builder/tailwind-padding-margin.ts +0 -159
- package/src/utils/html-elements/component.ts +0 -485
- package/src/utils/html-elements/componentHelpers.ts +0 -98
- package/src/utils/html-elements/themes.ts +0 -85
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { ref, computed, watch } from 'vue'
|
|
3
|
-
import { Listbox, ListboxButton, ListboxOption, ListboxOptions } from '@headlessui/vue'
|
|
4
|
-
import tailwindColors from '../../../../utils/builder/tailwaind-colors'
|
|
5
|
-
import { sharedPageBuilderStore } from '../../../../stores/shared-store'
|
|
6
|
-
import { getPageBuilder } from '../../../../composables/builderInstance'
|
|
7
|
-
import { useTranslations } from '../../../../composables/useTranslations'
|
|
8
|
-
|
|
9
|
-
const { translate } = useTranslations()
|
|
10
|
-
|
|
11
|
-
const pageBuilderService = getPageBuilder()
|
|
12
|
-
|
|
13
|
-
// Use shared store instance
|
|
14
|
-
const pageBuilderStateStore = sharedPageBuilderStore
|
|
15
|
-
|
|
16
|
-
defineProps({
|
|
17
|
-
globalPageLayout: {
|
|
18
|
-
Type: Boolean,
|
|
19
|
-
},
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
const textColor = ref(null)
|
|
23
|
-
const getTextColor = computed(() => {
|
|
24
|
-
return pageBuilderStateStore.getTextColor
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
watch(
|
|
28
|
-
getTextColor,
|
|
29
|
-
async (newValue) => {
|
|
30
|
-
textColor.value = newValue
|
|
31
|
-
await pageBuilderService.initializeElementStyles()
|
|
32
|
-
},
|
|
33
|
-
{ immediate: true },
|
|
34
|
-
)
|
|
35
|
-
</script>
|
|
36
|
-
|
|
37
|
-
<template>
|
|
38
|
-
<Listbox as="div" v-model="textColor">
|
|
39
|
-
<div class="pbx-relative">
|
|
40
|
-
<div
|
|
41
|
-
:class="[
|
|
42
|
-
globalPageLayout
|
|
43
|
-
? 'pbx-flex pbx-flex-col pbx-border-solid pbx-border pbx-border-gray-400'
|
|
44
|
-
: 'pbx-flex pbx-gap-2 pbx-items-center',
|
|
45
|
-
]"
|
|
46
|
-
>
|
|
47
|
-
<ListboxButton
|
|
48
|
-
v-if="globalPageLayout"
|
|
49
|
-
class="pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-pl-3 pbx-pr-3 pbx-py-5 pbx-cursor-pointer pbx-duration-200 hover:pbx-bg-myPrimaryLightGrayColor pbx-bg-white hover:pbx-text-black pbx-text-black pbx-font-sans pbx-font-medium pbx-border-0"
|
|
50
|
-
>
|
|
51
|
-
<div class="pbx-flex pbx-justify-start pbx-items-center pbx-gap-2">
|
|
52
|
-
<div
|
|
53
|
-
class="pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border pbx-border-gray-600 pbx-rounded-sm pbx-bg-none pbx-border-solid"
|
|
54
|
-
:class="`pbx-bg-${textColor?.replace('pbx-text-', '')}`"
|
|
55
|
-
></div>
|
|
56
|
-
<div>
|
|
57
|
-
<div>{{ translate('Text Color') }}</div>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
|
|
61
|
-
<span v-if="globalPageLayout" class="material-symbols-outlined"> chevron_right </span>
|
|
62
|
-
</ListboxButton>
|
|
63
|
-
|
|
64
|
-
<ListboxButton
|
|
65
|
-
v-if="!globalPageLayout"
|
|
66
|
-
class="pbx-h-8 pbx-w-8 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor"
|
|
67
|
-
>
|
|
68
|
-
<div class="pbx-flex pbx-flex-col">
|
|
69
|
-
<div class="pbx-flex pbx-gap-2 pbx-items-center">
|
|
70
|
-
<span
|
|
71
|
-
class="material-symbols-outlined"
|
|
72
|
-
style="text-shadow: rgb(0 0 0 / 10%) 1.5px 1.5px 0px"
|
|
73
|
-
:class="`pbx-text-${textColor?.replace('pbx-text-', '')}`"
|
|
74
|
-
>
|
|
75
|
-
format_color_text
|
|
76
|
-
</span>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
</ListboxButton>
|
|
80
|
-
</div>
|
|
81
|
-
|
|
82
|
-
<transition
|
|
83
|
-
leave-active-class="pbx-transition pbx-ease-in pbx-duration-100"
|
|
84
|
-
leave-from-class="pbx-opacity-100"
|
|
85
|
-
leave-to-class="pbx-opacity-0"
|
|
86
|
-
>
|
|
87
|
-
<ListboxOptions
|
|
88
|
-
class="pbx-headless-dropdown pbx-absolute pbx-min-w-[12rem] pbx-z-40 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-gray-50 pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm"
|
|
89
|
-
>
|
|
90
|
-
<ListboxOption
|
|
91
|
-
as="template"
|
|
92
|
-
v-for="color in tailwindColors.textColorVariables"
|
|
93
|
-
@click="pageBuilderService.handleTextColor(textColor)"
|
|
94
|
-
:key="color"
|
|
95
|
-
:value="color"
|
|
96
|
-
v-slot="{ active, textColor }"
|
|
97
|
-
>
|
|
98
|
-
<li
|
|
99
|
-
:class="[
|
|
100
|
-
active
|
|
101
|
-
? 'pbx-bg-myPrimaryLinkColor pbx-text-white'
|
|
102
|
-
: 'pbx-text-myPrimaryDarkGrayColor',
|
|
103
|
-
'pbx-relative pbx-cursor-default pbx-select-none pbx-py-2 pbx-pl-3 pbx-pr-9',
|
|
104
|
-
]"
|
|
105
|
-
>
|
|
106
|
-
<div v-if="color === 'none'" class="pbx-flex pbx-items-center">
|
|
107
|
-
<span class="material-symbols-outlined"> invert_colors </span>
|
|
108
|
-
<span class="pbx-ml-3">Default black</span>
|
|
109
|
-
</div>
|
|
110
|
-
<div v-if="color !== 'none'" class="pbx-flex pbx-items-center">
|
|
111
|
-
<div
|
|
112
|
-
class="pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border-solid pbx-border pbx-border-gray-100 pbx-rounded-sm"
|
|
113
|
-
:class="`pbx-bg-${color.replace('pbx-text-', '')}`"
|
|
114
|
-
></div>
|
|
115
|
-
<span class="pbx-ml-3">{{ color }}</span>
|
|
116
|
-
</div>
|
|
117
|
-
</li>
|
|
118
|
-
</ListboxOption>
|
|
119
|
-
</ListboxOptions>
|
|
120
|
-
</transition>
|
|
121
|
-
</div>
|
|
122
|
-
</Listbox>
|
|
123
|
-
</template>
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { ref, computed, watch } from 'vue'
|
|
3
|
-
import EditorAccordion from '../EditorAccordion.vue'
|
|
4
|
-
import tailwindFontSizes from '../../../../utils/builder/tailwind-font-sizes'
|
|
5
|
-
import tailwindFontStyles from '../../../../utils/builder/tailwind-font-styles'
|
|
6
|
-
import { sharedPageBuilderStore } from '../../../../stores/shared-store'
|
|
7
|
-
import { getPageBuilder } from '../../../../composables/builderInstance'
|
|
8
|
-
|
|
9
|
-
import { useTranslations } from '../../../../composables/useTranslations'
|
|
10
|
-
|
|
11
|
-
const { translate } = useTranslations()
|
|
12
|
-
const pageBuilderService = getPageBuilder()
|
|
13
|
-
|
|
14
|
-
// Use shared store instance
|
|
15
|
-
const pageBuilderStateStore = sharedPageBuilderStore
|
|
16
|
-
|
|
17
|
-
const fontBase = ref(null)
|
|
18
|
-
const fontDesktop = ref(null)
|
|
19
|
-
const fontTablet = ref(null)
|
|
20
|
-
const fontMobile = ref(null)
|
|
21
|
-
const fontWeight = ref(null)
|
|
22
|
-
const fontFamily = ref(null)
|
|
23
|
-
const fontStyle = ref(null)
|
|
24
|
-
const getFontBase = computed(() => {
|
|
25
|
-
return pageBuilderStateStore.getFontBase
|
|
26
|
-
})
|
|
27
|
-
const getFontDesktop = computed(() => {
|
|
28
|
-
return pageBuilderStateStore.getFontDesktop
|
|
29
|
-
})
|
|
30
|
-
const getFontTablet = computed(() => {
|
|
31
|
-
return pageBuilderStateStore.getFontTablet
|
|
32
|
-
})
|
|
33
|
-
const getFontMobile = computed(() => {
|
|
34
|
-
return pageBuilderStateStore.getFontMobile
|
|
35
|
-
})
|
|
36
|
-
const getFontWeight = computed(() => {
|
|
37
|
-
return pageBuilderStateStore.getFontWeight
|
|
38
|
-
})
|
|
39
|
-
const getFontFamily = computed(() => {
|
|
40
|
-
return pageBuilderStateStore.getFontFamily
|
|
41
|
-
})
|
|
42
|
-
const getFontStyle = computed(() => {
|
|
43
|
-
return pageBuilderStateStore.getFontStyle
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
watch(
|
|
47
|
-
getFontBase,
|
|
48
|
-
async (newValue) => {
|
|
49
|
-
fontBase.value = newValue
|
|
50
|
-
await pageBuilderService.initializeElementStyles()
|
|
51
|
-
},
|
|
52
|
-
{ immediate: true },
|
|
53
|
-
)
|
|
54
|
-
watch(
|
|
55
|
-
getFontDesktop,
|
|
56
|
-
async (newValue) => {
|
|
57
|
-
fontDesktop.value = newValue
|
|
58
|
-
await pageBuilderService.initializeElementStyles()
|
|
59
|
-
},
|
|
60
|
-
{ immediate: true },
|
|
61
|
-
)
|
|
62
|
-
watch(
|
|
63
|
-
getFontTablet,
|
|
64
|
-
async (newValue) => {
|
|
65
|
-
fontTablet.value = newValue
|
|
66
|
-
await pageBuilderService.initializeElementStyles()
|
|
67
|
-
},
|
|
68
|
-
{ immediate: true },
|
|
69
|
-
)
|
|
70
|
-
watch(
|
|
71
|
-
getFontMobile,
|
|
72
|
-
async (newValue) => {
|
|
73
|
-
fontMobile.value = newValue
|
|
74
|
-
await pageBuilderService.initializeElementStyles()
|
|
75
|
-
},
|
|
76
|
-
{ immediate: true },
|
|
77
|
-
)
|
|
78
|
-
watch(
|
|
79
|
-
getFontWeight,
|
|
80
|
-
async (newValue) => {
|
|
81
|
-
fontWeight.value = newValue
|
|
82
|
-
await pageBuilderService.initializeElementStyles()
|
|
83
|
-
},
|
|
84
|
-
{ immediate: true },
|
|
85
|
-
)
|
|
86
|
-
watch(
|
|
87
|
-
getFontFamily,
|
|
88
|
-
async (newValue) => {
|
|
89
|
-
fontFamily.value = newValue
|
|
90
|
-
await pageBuilderService.initializeElementStyles()
|
|
91
|
-
},
|
|
92
|
-
{ immediate: true },
|
|
93
|
-
)
|
|
94
|
-
watch(
|
|
95
|
-
getFontStyle,
|
|
96
|
-
async (newValue) => {
|
|
97
|
-
fontStyle.value = newValue
|
|
98
|
-
await pageBuilderService.initializeElementStyles()
|
|
99
|
-
},
|
|
100
|
-
{ immediate: true },
|
|
101
|
-
)
|
|
102
|
-
</script>
|
|
103
|
-
|
|
104
|
-
<template>
|
|
105
|
-
<EditorAccordion>
|
|
106
|
-
<template #title>{{ translate('Typographies') }}</template>
|
|
107
|
-
<template #content>
|
|
108
|
-
<!-- FONT SIZES -->
|
|
109
|
-
<p class="pbx-myPrimaryParagraph pbx-font-medium pbx-py-0 pbx-my-4">
|
|
110
|
-
{{ translate('Font Appearance') }}
|
|
111
|
-
</p>
|
|
112
|
-
<template v-if="false">
|
|
113
|
-
<div class="pbx-my-2 pbx-py-2">
|
|
114
|
-
<label for="font-base" class="pbx-myPrimaryInputLabel">
|
|
115
|
-
{{ translate('Font Size') }}
|
|
116
|
-
</label>
|
|
117
|
-
<select
|
|
118
|
-
id="font-base"
|
|
119
|
-
v-model="fontBase"
|
|
120
|
-
class="pbx-myPrimarySelect"
|
|
121
|
-
@change="pageBuilderService.handleFontSizeBase(fontBase)"
|
|
122
|
-
>
|
|
123
|
-
<option disabled value="">{{ translate('Select') }}</option>
|
|
124
|
-
<option v-for="fontSize in tailwindFontSizes.fontBase" :key="fontSize">
|
|
125
|
-
{{ fontSize }}
|
|
126
|
-
</option>
|
|
127
|
-
</select>
|
|
128
|
-
</div>
|
|
129
|
-
</template>
|
|
130
|
-
<div class="pbx-my-2 pbx-py-2">
|
|
131
|
-
<label for="font-desktop" class="pbx-myPrimaryInputLabel">
|
|
132
|
-
{{ translate('Font size') }}
|
|
133
|
-
</label>
|
|
134
|
-
<select
|
|
135
|
-
id="font-desktop"
|
|
136
|
-
v-model="fontDesktop"
|
|
137
|
-
class="pbx-myPrimarySelect"
|
|
138
|
-
@change="pageBuilderService.handleFontSizeDesktop(fontDesktop)"
|
|
139
|
-
>
|
|
140
|
-
<option disabled value="">{{ translate('Select') }}</option>
|
|
141
|
-
<option v-for="fontSize in tailwindFontSizes.fontDesktop" :key="fontSize">
|
|
142
|
-
{{ fontSize }}
|
|
143
|
-
</option>
|
|
144
|
-
</select>
|
|
145
|
-
</div>
|
|
146
|
-
<template v-if="false">
|
|
147
|
-
<div class="pbx-my-2 pbx-py-2">
|
|
148
|
-
<label for="font-tablet" class="pbx-myPrimaryInputLabel">
|
|
149
|
-
{{ translate('Font tablet size') }}
|
|
150
|
-
</label>
|
|
151
|
-
<select
|
|
152
|
-
id="font-tablet"
|
|
153
|
-
v-model="fontTablet"
|
|
154
|
-
class="pbx-myPrimarySelect"
|
|
155
|
-
@change="pageBuilderService.handleFontSizeTablet(fontTablet)"
|
|
156
|
-
>
|
|
157
|
-
<option disabled value="">{{ translate('Select') }}</option>
|
|
158
|
-
<option v-for="fontSize in tailwindFontSizes.fontTablet" :key="fontSize">
|
|
159
|
-
{{ fontSize }}
|
|
160
|
-
</option>
|
|
161
|
-
</select>
|
|
162
|
-
</div>
|
|
163
|
-
<div class="pbx-my-2 pbx-py-2">
|
|
164
|
-
<label for="font-mobile" class="pbx-myPrimaryInputLabel">
|
|
165
|
-
{{ translate('Font small screens') }}
|
|
166
|
-
</label>
|
|
167
|
-
<select
|
|
168
|
-
id="font-mobile"
|
|
169
|
-
v-model="fontMobile"
|
|
170
|
-
class="pbx-myPrimarySelect"
|
|
171
|
-
@change="pageBuilderService.handleFontSizeMobile(fontMobile)"
|
|
172
|
-
>
|
|
173
|
-
<option disabled value="">{{ translate('Select') }}</option>
|
|
174
|
-
<option v-for="fontSize in tailwindFontSizes.fontMobile" :key="fontSize">
|
|
175
|
-
{{ fontSize }}
|
|
176
|
-
</option>
|
|
177
|
-
</select>
|
|
178
|
-
</div>
|
|
179
|
-
</template>
|
|
180
|
-
<hr />
|
|
181
|
-
|
|
182
|
-
<div class="pbx-my-2 pbx-py-2">
|
|
183
|
-
<label for="font-weight" class="pbx-myPrimaryInputLabel">
|
|
184
|
-
{{ translate('Font weight') }}
|
|
185
|
-
</label>
|
|
186
|
-
<select
|
|
187
|
-
id="font-weight"
|
|
188
|
-
v-model="fontWeight"
|
|
189
|
-
class="pbx-myPrimarySelect"
|
|
190
|
-
@change="pageBuilderService.handleFontWeight(fontWeight)"
|
|
191
|
-
>
|
|
192
|
-
<option disabled value="">{{ translate('Select') }}</option>
|
|
193
|
-
<option v-for="fontWeight in tailwindFontStyles.fontWeight" :key="fontWeight">
|
|
194
|
-
{{ fontWeight }}
|
|
195
|
-
</option>
|
|
196
|
-
</select>
|
|
197
|
-
</div>
|
|
198
|
-
<hr />
|
|
199
|
-
|
|
200
|
-
<!-- FONT FAMILY -->
|
|
201
|
-
<div class="pbx-my-2 pbx-py-2">
|
|
202
|
-
<label for="font-family" class="pbx-myPrimaryInputLabel">
|
|
203
|
-
{{ translate('Font family') }}
|
|
204
|
-
</label>
|
|
205
|
-
<select
|
|
206
|
-
id="font-family"
|
|
207
|
-
v-model="fontFamily"
|
|
208
|
-
class="pbx-myPrimarySelect"
|
|
209
|
-
@change="pageBuilderService.handleFontFamily(fontFamily)"
|
|
210
|
-
>
|
|
211
|
-
<option disabled value="">{{ translate('Select') }}</option>
|
|
212
|
-
<option v-for="fontFamily in tailwindFontStyles.fontFamily" :key="fontFamily">
|
|
213
|
-
{{ fontFamily }}
|
|
214
|
-
</option>
|
|
215
|
-
</select>
|
|
216
|
-
</div>
|
|
217
|
-
<hr />
|
|
218
|
-
|
|
219
|
-
<div class="pbx-my-2 pbx-py-2">
|
|
220
|
-
<label for="font-style" class="pbx-myPrimaryInputLabel">
|
|
221
|
-
{{ translate('Font Style') }}
|
|
222
|
-
</label>
|
|
223
|
-
<select
|
|
224
|
-
id="font-style"
|
|
225
|
-
v-model="fontStyle"
|
|
226
|
-
class="pbx-myPrimarySelect"
|
|
227
|
-
@change="pageBuilderService.handleFontStyle(fontStyle)"
|
|
228
|
-
>
|
|
229
|
-
<option disabled value="">{{ translate('Select') }}</option>
|
|
230
|
-
<option v-for="fontStyle in tailwindFontStyles.fontStyle" :key="fontStyle">
|
|
231
|
-
{{ fontStyle }}
|
|
232
|
-
</option>
|
|
233
|
-
</select>
|
|
234
|
-
</div>
|
|
235
|
-
</template>
|
|
236
|
-
</EditorAccordion>
|
|
237
|
-
</template>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="pbx-flex pbx-flex-col pbx-border-solid pbx-border pbx-border-gray-400"
|
|
4
|
-
:class="{ '': expanded }"
|
|
5
|
-
>
|
|
6
|
-
<div
|
|
7
|
-
class="pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-pl-3 pbx-pr-3 pbx-py-5 pbx-cursor-pointer pbx-duration-200 pbx-bg-white hover:pbx-bg-myPrimaryLightGrayColor pbx-select-none"
|
|
8
|
-
@click="expanded = !expanded"
|
|
9
|
-
>
|
|
10
|
-
<p class="pbx-myPrimaryParagraph pbx-font-medium pbx-my-0 pbx-py-0">
|
|
11
|
-
<slot name="title" />
|
|
12
|
-
</p>
|
|
13
|
-
|
|
14
|
-
<template v-if="expanded">
|
|
15
|
-
<span class="material-symbols-outlined"> keyboard_arrow_down </span>
|
|
16
|
-
</template>
|
|
17
|
-
<template v-if="!expanded">
|
|
18
|
-
<span class="material-symbols-outlined"> chevron_right </span>
|
|
19
|
-
</template>
|
|
20
|
-
</div>
|
|
21
|
-
<div
|
|
22
|
-
:class="[
|
|
23
|
-
expanded
|
|
24
|
-
? 'pbx-block pbx-bg-indigo-50 pbx-border-0 pbx-border-solid pbx-border-t pbx-border-red-50'
|
|
25
|
-
: 'pbx-hidden',
|
|
26
|
-
]"
|
|
27
|
-
class="pbx-px-4 pbx-ease-linear pbx-duration-75 pbx-pb-8"
|
|
28
|
-
>
|
|
29
|
-
<slot name="content" />
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script>
|
|
35
|
-
import { ref } from 'vue'
|
|
36
|
-
|
|
37
|
-
export default {
|
|
38
|
-
setup() {
|
|
39
|
-
const expanded = ref(false)
|
|
40
|
-
|
|
41
|
-
return {
|
|
42
|
-
expanded,
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
}
|
|
46
|
-
</script>
|