@mframework/ui 0.1.0-beta.2 → 0.1.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.d.mts +3 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +28 -6
- package/dist/runtime/assets/config/tailwind.conifg.js +37 -6
- package/dist/runtime/components/Gallery.d.vue.ts +0 -0
- package/{src → dist}/runtime/components/Gallery.vue +23 -33
- package/dist/runtime/components/Gallery.vue.d.ts +0 -0
- package/dist/runtime/composables/useMToast.d.ts +0 -5
- package/dist/runtime/composables/useMToast.js +9 -9
- package/dist/runtime/design/tokens.d.ts +0 -22
- package/dist/runtime/design/tokens.js +20 -20
- package/dist/runtime/plugins/builder.d.ts +0 -3
- package/dist/runtime/plugins/builder.js +328 -303
- package/dist/runtime/plugins/fontawesome.d.ts +0 -3
- package/dist/runtime/plugins/fontawesome.js +7 -7
- package/dist/runtime/plugins/formkit.d.ts +0 -3
- package/dist/runtime/plugins/formkit.js +5 -5
- package/dist/runtime/plugins/lightgallery.d.ts +0 -6
- package/dist/runtime/plugins/lightgallery.js +20 -14
- package/dist/runtime/plugins/motion.d.ts +0 -2
- package/dist/runtime/plugins/motion.js +3 -3
- package/dist/runtime/plugins/theme-switcher.d.ts +0 -2
- package/dist/runtime/plugins/theme-switcher.js +22 -25
- package/dist/runtime/plugins/theme.d.ts +0 -2
- package/dist/runtime/plugins/theme.js +46 -32
- package/dist/runtime/plugins/vuetify.d.ts +0 -3
- package/dist/runtime/plugins/vuetify.js +30 -30
- package/dist/runtime/search/client.d.ts +0 -2
- package/dist/runtime/search/client.js +12 -19
- package/dist/runtime/search/plugin.d.ts +0 -2
- package/dist/runtime/search/plugin.js +5 -5
- package/dist/runtime/styles/index.css +93 -0
- package/dist/runtime/styles/tailwind.css +1 -1
- package/package.json +3 -4
- package/dist/adapters/adapter-directus/src/types/ui.d.ts +0 -21
- package/dist/adapters/adapter-directus/src/types/ui.js +0 -1
- package/dist/module.d.ts +0 -6
- package/dist/module.js +0 -68
- package/dist/modules/ui/src/module.d.ts +0 -8
- package/dist/modules/ui/src/module.js +0 -75
- package/dist/modules/ui/src/runtime/composables/useMToast.d.ts +0 -5
- package/dist/modules/ui/src/runtime/composables/useMToast.js +0 -11
- package/dist/modules/ui/src/runtime/design/tokens.d.ts +0 -22
- package/dist/modules/ui/src/runtime/design/tokens.js +0 -22
- package/dist/modules/ui/src/runtime/plugins/builder.d.ts +0 -3
- package/dist/modules/ui/src/runtime/plugins/builder.js +0 -311
- package/dist/modules/ui/src/runtime/plugins/fontawesome.d.ts +0 -3
- package/dist/modules/ui/src/runtime/plugins/fontawesome.js +0 -9
- package/dist/modules/ui/src/runtime/plugins/formkit.d.ts +0 -3
- package/dist/modules/ui/src/runtime/plugins/formkit.js +0 -8
- package/dist/modules/ui/src/runtime/plugins/motion.d.ts +0 -2
- package/dist/modules/ui/src/runtime/plugins/motion.js +0 -5
- package/dist/modules/ui/src/runtime/plugins/theme-switcher.d.ts +0 -2
- package/dist/modules/ui/src/runtime/plugins/theme-switcher.js +0 -27
- package/dist/modules/ui/src/runtime/plugins/theme.d.ts +0 -2
- package/dist/modules/ui/src/runtime/plugins/theme.js +0 -44
- package/dist/modules/ui/src/runtime/plugins/vuetify.d.ts +0 -3
- package/dist/modules/ui/src/runtime/plugins/vuetify.js +0 -33
- package/dist/modules/ui/src/runtime/search/client.d.ts +0 -2
- package/dist/modules/ui/src/runtime/search/client.js +0 -21
- package/dist/modules/ui/src/runtime/search/plugin.d.ts +0 -2
- package/dist/modules/ui/src/runtime/search/plugin.js +0 -7
- package/dist/modules/ui/src/utils/color.d.ts +0 -2
- package/dist/modules/ui/src/utils/color.js +0 -11
- package/dist/modules/ui/src/utils/fonts.d.ts +0 -5
- package/dist/modules/ui/src/utils/fonts.js +0 -18
- package/dist/modules/ui/src/utils/formkit.d.ts +0 -12
- package/dist/modules/ui/src/utils/formkit.js +0 -59
- package/dist/modules/ui/src/utils/icons.d.ts +0 -4
- package/dist/modules/ui/src/utils/icons.js +0 -36
- package/dist/runtime/plugins/icon-switcher.d.ts +0 -2
- package/dist/runtime/plugins/icon-switcher.js +0 -24
- package/dist/types/ui/api/global-search.d.ts +0 -8
- package/dist/types/ui/api/global-search.js +0 -1
- package/dist/types/ui/blocks/block-button-group.d.ts +0 -6
- package/dist/types/ui/blocks/block-button-group.js +0 -1
- package/dist/types/ui/blocks/block-button.d.ts +0 -13
- package/dist/types/ui/blocks/block-button.js +0 -1
- package/dist/types/ui/blocks/block-column.d.ts +0 -18
- package/dist/types/ui/blocks/block-column.js +0 -1
- package/dist/types/ui/blocks/block-cta.d.ts +0 -11
- package/dist/types/ui/blocks/block-cta.js +0 -1
- package/dist/types/ui/blocks/block-divider.d.ts +0 -4
- package/dist/types/ui/blocks/block-divider.js +0 -1
- package/dist/types/ui/blocks/block-faq.d.ts +0 -11
- package/dist/types/ui/blocks/block-faq.js +0 -1
- package/dist/types/ui/blocks/block-form.d.ts +0 -7
- package/dist/types/ui/blocks/block-form.js +0 -1
- package/dist/types/ui/blocks/block-gallery.d.ts +0 -13
- package/dist/types/ui/blocks/block-gallery.js +0 -1
- package/dist/types/ui/blocks/block-hero.d.ts +0 -11
- package/dist/types/ui/blocks/block-hero.js +0 -1
- package/dist/types/ui/blocks/block-html.d.ts +0 -4
- package/dist/types/ui/blocks/block-html.js +0 -1
- package/dist/types/ui/blocks/block-logocloud.d.ts +0 -13
- package/dist/types/ui/blocks/block-logocloud.js +0 -1
- package/dist/types/ui/blocks/block-quote.d.ts +0 -10
- package/dist/types/ui/blocks/block-quote.js +0 -1
- package/dist/types/ui/blocks/block-richtext.d.ts +0 -7
- package/dist/types/ui/blocks/block-richtext.js +0 -1
- package/dist/types/ui/blocks/block-steps.d.ts +0 -21
- package/dist/types/ui/blocks/block-steps.js +0 -1
- package/dist/types/ui/blocks/block-team.d.ts +0 -6
- package/dist/types/ui/blocks/block-team.js +0 -1
- package/dist/types/ui/blocks/block-testimonial.d.ts +0 -13
- package/dist/types/ui/blocks/block-testimonial.js +0 -1
- package/dist/types/ui/blocks/block-video.d.ts +0 -9
- package/dist/types/ui/blocks/block-video.js +0 -1
- package/dist/types/ui/blocks/block.d.ts +0 -17
- package/dist/types/ui/blocks/block.js +0 -1
- package/dist/types/ui/blocks/index.d.ts +0 -18
- package/dist/types/ui/blocks/index.js +0 -1
- package/dist/types/ui/component.d.ts +0 -6
- package/dist/types/ui/component.js +0 -1
- package/dist/types/ui/content/category.d.ts +0 -10
- package/dist/types/ui/content/category.js +0 -1
- package/dist/types/ui/content/form.d.ts +0 -21
- package/dist/types/ui/content/form.js +0 -1
- package/dist/types/ui/content/index.d.ts +0 -6
- package/dist/types/ui/content/index.js +0 -1
- package/dist/types/ui/content/page.d.ts +0 -38
- package/dist/types/ui/content/page.js +0 -1
- package/dist/types/ui/content/post.d.ts +0 -38
- package/dist/types/ui/content/post.js +0 -1
- package/dist/types/ui/content/team.d.ts +0 -17
- package/dist/types/ui/content/team.js +0 -1
- package/dist/types/ui/content/testimonial.d.ts +0 -18
- package/dist/types/ui/content/testimonial.js +0 -1
- package/dist/types/ui/form.d.ts +0 -12
- package/dist/types/ui/form.js +0 -1
- package/dist/types/ui/help/index.d.ts +0 -51
- package/dist/types/ui/help/index.js +0 -1
- package/dist/types/ui/meta/analytics.d.ts +0 -21
- package/dist/types/ui/meta/analytics.js +0 -1
- package/dist/types/ui/meta/config.d.ts +0 -22
- package/dist/types/ui/meta/config.js +0 -1
- package/dist/types/ui/meta/globals.d.ts +0 -33
- package/dist/types/ui/meta/globals.js +0 -1
- package/dist/types/ui/meta/index.d.ts +0 -6
- package/dist/types/ui/meta/index.js +0 -1
- package/dist/types/ui/meta/navigation.d.ts +0 -31
- package/dist/types/ui/meta/navigation.js +0 -1
- package/dist/types/ui/meta/redirect.d.ts +0 -12
- package/dist/types/ui/meta/redirect.js +0 -1
- package/dist/types/ui/meta/seo.d.ts +0 -19
- package/dist/types/ui/meta/seo.js +0 -1
- package/dist/types/ui/os/contact.d.ts +0 -22
- package/dist/types/ui/os/contact.js +0 -1
- package/dist/types/ui/os/conversation.d.ts +0 -23
- package/dist/types/ui/os/conversation.js +0 -1
- package/dist/types/ui/os/index.d.ts +0 -16
- package/dist/types/ui/os/index.js +0 -1
- package/dist/types/ui/os/organization.d.ts +0 -51
- package/dist/types/ui/os/organization.js +0 -1
- package/dist/types/ui/os/os-activity.d.ts +0 -26
- package/dist/types/ui/os/os-activity.js +0 -1
- package/dist/types/ui/os/os-deal.d.ts +0 -42
- package/dist/types/ui/os/os-deal.js +0 -1
- package/dist/types/ui/os/os-expense.d.ts +0 -21
- package/dist/types/ui/os/os-expense.js +0 -1
- package/dist/types/ui/os/os-invoice.d.ts +0 -46
- package/dist/types/ui/os/os-invoice.js +0 -1
- package/dist/types/ui/os/os-item.d.ts +0 -17
- package/dist/types/ui/os/os-item.js +0 -1
- package/dist/types/ui/os/os-payment.d.ts +0 -27
- package/dist/types/ui/os/os-payment.js +0 -1
- package/dist/types/ui/os/os-project.d.ts +0 -45
- package/dist/types/ui/os/os-project.js +0 -1
- package/dist/types/ui/os/os-proposal.d.ts +0 -61
- package/dist/types/ui/os/os-proposal.js +0 -1
- package/dist/types/ui/os/os-settings.d.ts +0 -17
- package/dist/types/ui/os/os-settings.js +0 -1
- package/dist/types/ui/os/os-subscription.d.ts +0 -12
- package/dist/types/ui/os/os-subscription.js +0 -1
- package/dist/types/ui/os/os-task.d.ts +0 -32
- package/dist/types/ui/os/os-task.js +0 -1
- package/dist/types/ui/os/os-tax-rate.d.ts +0 -12
- package/dist/types/ui/os/os-tax-rate.js +0 -1
- package/dist/types/ui/pageComponentMap.d.ts +0 -2
- package/dist/types/ui/pageComponentMap.js +0 -7
- package/dist/types/ui/pagination.d.ts +0 -6
- package/dist/types/ui/pagination.js +0 -1
- package/dist/types/ui/schema.d.ts +0 -78
- package/dist/types/ui/schema.js +0 -1
- package/dist/types/ui/state.d.ts +0 -5
- package/dist/types/ui/state.js +0 -1
- package/dist/types/ui/system/file.d.ts +0 -47
- package/dist/types/ui/system/file.js +0 -1
- package/dist/types/ui/system/folder.d.ts +0 -8
- package/dist/types/ui/system/folder.js +0 -1
- package/dist/types/ui/system/index.d.ts +0 -4
- package/dist/types/ui/system/index.js +0 -1
- package/dist/types/ui/system/role.d.ts +0 -20
- package/dist/types/ui/system/role.js +0 -1
- package/dist/types/ui/system/user.d.ts +0 -57
- package/dist/types/ui/system/user.js +0 -1
- package/dist/types/ui.d.ts +0 -21
- package/dist/types/ui.js +0 -1
- package/dist/utils/color.d.ts +0 -2
- package/dist/utils/color.js +0 -11
- package/dist/utils/fonts.d.ts +0 -5
- package/dist/utils/fonts.js +0 -18
- package/dist/utils/formkit.d.ts +0 -12
- package/dist/utils/formkit.js +0 -59
- package/dist/utils/icons.d.ts +0 -4
- package/dist/utils/icons.js +0 -36
- package/src/module.ts +0 -105
- package/src/runtime/assets/config/tailwind.conifg.js +0 -42
- package/src/runtime/components/MButton.vue +0 -17
- package/src/runtime/composables/useMToast.ts +0 -14
- package/src/runtime/design/tokens.ts +0 -22
- package/src/runtime/plugins/builder.ts +0 -326
- package/src/runtime/plugins/fontawesome.ts +0 -11
- package/src/runtime/plugins/formkit.ts +0 -9
- package/src/runtime/plugins/lightgallery.js +0 -21
- package/src/runtime/plugins/motion.ts +0 -6
- package/src/runtime/plugins/theme-switcher.ts +0 -32
- package/src/runtime/plugins/theme.ts +0 -57
- package/src/runtime/plugins/vuetify.ts +0 -36
- package/src/runtime/search/client.ts +0 -25
- package/src/runtime/search/components/MSearch.vue +0 -19
- package/src/runtime/search/plugin.ts +0 -9
- package/src/runtime/styles/index.scss +0 -101
- package/src/runtime/styles/tailwind.css +0 -9
- package/src/runtime/styles/vuetify.scss +0 -5
- package/src/types/runtime-config.d.ts +0 -12
- package/src/utils/color.js +0 -11
- package/src/utils/color.ts +0 -14
- package/src/utils/fonts.js +0 -18
- package/src/utils/fonts.ts +0 -24
- package/src/utils/formkit.js +0 -59
- package/src/utils/formkit.ts +0 -75
- package/src/utils/icons.js +0 -36
- package/src/utils/icons.ts +0 -62
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { unref } from 'vue';
|
|
2
|
-
function convertBoolean(value) {
|
|
3
|
-
if (value === 'true' || value === 'false') {
|
|
4
|
-
return value === 'true';
|
|
5
|
-
}
|
|
6
|
-
else {
|
|
7
|
-
return value;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
function mapCondition(condition, target) {
|
|
11
|
-
switch (condition) {
|
|
12
|
-
case 'is_empty':
|
|
13
|
-
return `!$get(${target}).value)`;
|
|
14
|
-
case 'is_filled':
|
|
15
|
-
return `$get(${target}).value)`;
|
|
16
|
-
default:
|
|
17
|
-
return undefined;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export function mapConditions(conditions) {
|
|
21
|
-
// Both $el and $cmp schema nodes can leverage an if property that roughly equates to a v-if in Vue. If the expression assigned to the if property is truthy, the node is rendered, otherwise it is not:
|
|
22
|
-
}
|
|
23
|
-
export function transformSchema(schema) {
|
|
24
|
-
// Loop through the form schema from Directus
|
|
25
|
-
// This is required for FormKit to work
|
|
26
|
-
const items = unref(schema);
|
|
27
|
-
return items.map((item) => {
|
|
28
|
-
const { conditions, field, name, children, ...props } = item;
|
|
29
|
-
// console.log('conditions', conditions);
|
|
30
|
-
// console.log('mapCondition', mapCondition(conditions[0].condition, field));
|
|
31
|
-
const cmpSchema = {
|
|
32
|
-
$cmp: item.$el ? item.$el : 'FormKit',
|
|
33
|
-
children: children,
|
|
34
|
-
// if: conditions ? mapCondition(conditions[0].condition, field) : undefined,
|
|
35
|
-
props: {
|
|
36
|
-
id: name,
|
|
37
|
-
...props,
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
// Switch statement to handle item widths
|
|
41
|
-
switch (item.width) {
|
|
42
|
-
case '33':
|
|
43
|
-
cmpSchema.props.outerClass = 'md:col-span-2';
|
|
44
|
-
break;
|
|
45
|
-
case '50':
|
|
46
|
-
cmpSchema.props.outerClass = 'md:col-span-3';
|
|
47
|
-
break;
|
|
48
|
-
case '67':
|
|
49
|
-
cmpSchema.props.outerClass = 'md:col-span-4';
|
|
50
|
-
break;
|
|
51
|
-
case '100':
|
|
52
|
-
cmpSchema.props.outerClass = 'md:col-span-6';
|
|
53
|
-
break;
|
|
54
|
-
default:
|
|
55
|
-
cmpSchema.props.outerClass = 'md:col-span-6';
|
|
56
|
-
}
|
|
57
|
-
return cmpSchema;
|
|
58
|
-
});
|
|
59
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
type FileType = 'folder' | 'image/jpeg' | 'image/png' | 'image/gif' | 'image/svg+xml' | 'image/webp' | 'video/mp4' | 'video/quicktime' | 'audio/mp3' | 'audio/aac' | 'audio/wav' | 'audio/ogg' | 'text/csv' | 'text/plain' | 'application/pdf' | 'application/vnd.ms-excel' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'application/msword' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | 'application/vnd.ms-powerpoint' | 'application/vnd.openxmlformats-officedocument.presentationml.presentation';
|
|
2
|
-
export declare const fileIconMap: Record<FileType, string>;
|
|
3
|
-
export declare function getFileIcon(filetype: FileType | string | null | undefined): string;
|
|
4
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export const fileIconMap = {
|
|
2
|
-
folder: 'material-symbols:folder',
|
|
3
|
-
// Images
|
|
4
|
-
'image/jpeg': 'material-symbols:image',
|
|
5
|
-
'image/png': 'material-symbols:image',
|
|
6
|
-
'image/gif': 'material-symbols:image',
|
|
7
|
-
'image/svg+xml': 'material-symbols:image',
|
|
8
|
-
'image/webp': 'material-symbols:image',
|
|
9
|
-
// Videos
|
|
10
|
-
'video/mp4': 'material-symbols:smart-display',
|
|
11
|
-
'video/quicktime': 'material-symbols:smart-display',
|
|
12
|
-
// Audio
|
|
13
|
-
'audio/mp3': 'material-symbols:audio-file',
|
|
14
|
-
'audio/aac': 'material-symbols:audio-file',
|
|
15
|
-
'audio/wav': 'material-symbols:audio-file',
|
|
16
|
-
'audio/ogg': 'material-symbols:audio-file',
|
|
17
|
-
// Text
|
|
18
|
-
'text/csv': 'material-symbols:csv',
|
|
19
|
-
'text/plain': 'material-symbols:text-snippet',
|
|
20
|
-
// Files
|
|
21
|
-
'application/pdf': 'material-symbols:picture-as-pdf-sharp',
|
|
22
|
-
'application/vnd.ms-excel': 'material-symbols:sheets',
|
|
23
|
-
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': 'material-symbols:sheets',
|
|
24
|
-
'application/msword': 'material-symbols:docs',
|
|
25
|
-
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': 'material-symbols:docs',
|
|
26
|
-
'application/vnd.ms-powerpoint': 'material-symbols:slides',
|
|
27
|
-
'application/vnd.openxmlformats-officedocument.presentationml.presentation': 'material-symbols:slides',
|
|
28
|
-
};
|
|
29
|
-
export function getFileIcon(filetype) {
|
|
30
|
-
if (!filetype)
|
|
31
|
-
return 'material-symbols:attachment';
|
|
32
|
-
if (typeof filetype === 'string' && !(filetype in fileIconMap)) {
|
|
33
|
-
return 'material-symbols:attachment';
|
|
34
|
-
}
|
|
35
|
-
return fileIconMap[filetype];
|
|
36
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineNuxtPlugin } from 'nuxt/app';
|
|
2
|
-
import { useVuetify } from 'vuetify-nuxt-module/runtime';
|
|
3
|
-
export default defineNuxtPlugin((nuxtApp) => {
|
|
4
|
-
const vuetify = useVuetify();
|
|
5
|
-
// If Vuetify isn't ready yet, skip plugin initialization
|
|
6
|
-
if (!vuetify || !vuetify.framework) {
|
|
7
|
-
console.warn('[mframework-ui] Vuetify not ready for icon-switcher plugin');
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
const stored = typeof localStorage !== 'undefined'
|
|
11
|
-
? localStorage.getItem('mframework-icon-set')
|
|
12
|
-
: null;
|
|
13
|
-
const initial = stored || 'mdi';
|
|
14
|
-
vuetify.framework.icons = vuetify.framework.icons || {};
|
|
15
|
-
vuetify.framework.icons.defaultSet = initial;
|
|
16
|
-
const setIconSet = (name) => {
|
|
17
|
-
vuetify.framework.icons.defaultSet = name;
|
|
18
|
-
localStorage.setItem('mframework-icon-set', name);
|
|
19
|
-
};
|
|
20
|
-
nuxtApp.provide('mIcons', {
|
|
21
|
-
setIconSet,
|
|
22
|
-
current: () => vuetify.framework.icons.defaultSet
|
|
23
|
-
});
|
|
24
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Post, Page } from '../content';
|
|
2
|
-
export interface BlockButton {
|
|
3
|
-
id: string;
|
|
4
|
-
sort: number | null;
|
|
5
|
-
type: ('pages' | 'posts' | 'external') | null;
|
|
6
|
-
label: string | null;
|
|
7
|
-
color: 'primary' | 'white' | 'gray' | 'white' | 'black';
|
|
8
|
-
variant: 'solid' | 'outline' | 'ghost' | 'link' | 'soft';
|
|
9
|
-
page: string | Page | null;
|
|
10
|
-
post: string | Post | null;
|
|
11
|
-
external_url: string | null;
|
|
12
|
-
icon: string | null;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { File } from '../system';
|
|
2
|
-
import type { BlockButtonGroup } from '.';
|
|
3
|
-
export interface BlockColumn {
|
|
4
|
-
headline?: string | null;
|
|
5
|
-
id?: string;
|
|
6
|
-
title?: string | null;
|
|
7
|
-
rows?: (number | BlockColumnRow)[];
|
|
8
|
-
}
|
|
9
|
-
export interface BlockColumnRow {
|
|
10
|
-
block_columns?: (string | BlockColumn) | null;
|
|
11
|
-
content?: string | null;
|
|
12
|
-
headline?: string | null;
|
|
13
|
-
id?: string;
|
|
14
|
-
image?: (string | File) | null;
|
|
15
|
-
image_position?: string | null;
|
|
16
|
-
title?: string | null;
|
|
17
|
-
button_group?: (string | BlockButtonGroup) | null;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { BlockButtonGroup } from '.';
|
|
2
|
-
export interface BlockCta {
|
|
3
|
-
buttons?: {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
} | null;
|
|
6
|
-
content?: string | null;
|
|
7
|
-
headline?: string | null;
|
|
8
|
-
id?: string;
|
|
9
|
-
title?: string | null;
|
|
10
|
-
button_group?: (string | BlockButtonGroup) | null;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface BlockFaq {
|
|
2
|
-
faqs?: BlockFaqQuestion[] | null;
|
|
3
|
-
headline?: string | null;
|
|
4
|
-
id?: string;
|
|
5
|
-
title?: string | null;
|
|
6
|
-
alignment?: 'left' | 'center' | null;
|
|
7
|
-
}
|
|
8
|
-
export interface BlockFaqQuestion {
|
|
9
|
-
title: string | null;
|
|
10
|
-
answer: string | null;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { File } from '../system';
|
|
2
|
-
export interface BlockGallery {
|
|
3
|
-
headline?: string | null;
|
|
4
|
-
id?: string;
|
|
5
|
-
title?: string | null;
|
|
6
|
-
gallery_items?: BlockGalleryFile[] | null;
|
|
7
|
-
}
|
|
8
|
-
export interface BlockGalleryFile {
|
|
9
|
-
block_gallery?: (string | BlockGallery) | null;
|
|
10
|
-
directus_files_id?: (string | File) | null;
|
|
11
|
-
id?: number;
|
|
12
|
-
sort?: number | null;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { File } from '../system';
|
|
2
|
-
import type { BlockButtonGroup } from '.';
|
|
3
|
-
export interface BlockHero {
|
|
4
|
-
id?: string;
|
|
5
|
-
title?: string | null;
|
|
6
|
-
headline?: string | null;
|
|
7
|
-
content?: string | null;
|
|
8
|
-
image?: (string | File) | null;
|
|
9
|
-
image_position?: 'left' | 'right' | null;
|
|
10
|
-
button_group?: (string | BlockButtonGroup) | null;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { File } from '../system';
|
|
2
|
-
export interface BlockLogocloud {
|
|
3
|
-
headline?: string | null;
|
|
4
|
-
id?: string;
|
|
5
|
-
title?: string | null;
|
|
6
|
-
logos?: (string | BlockLogocloudFile)[];
|
|
7
|
-
}
|
|
8
|
-
export interface BlockLogocloudFile {
|
|
9
|
-
id?: string;
|
|
10
|
-
sort?: number | null;
|
|
11
|
-
block_logocloud_id?: (string | BlockLogocloud) | null;
|
|
12
|
-
directus_files_id?: (string | File) | null;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { File } from '../system';
|
|
2
|
-
export interface BlockQuote {
|
|
3
|
-
background_color?: string | null;
|
|
4
|
-
content?: string | null;
|
|
5
|
-
headline?: string | null;
|
|
6
|
-
id?: string;
|
|
7
|
-
image?: (string | File) | null;
|
|
8
|
-
subtitle?: string | null;
|
|
9
|
-
title?: string | null;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { File } from '../system';
|
|
2
|
-
import type { BlockButtonGroup } from '.';
|
|
3
|
-
export interface BlockStep {
|
|
4
|
-
id?: string;
|
|
5
|
-
title?: string | null;
|
|
6
|
-
headline?: string | null;
|
|
7
|
-
/** If enabled, image position is mframeworkd between left and right. */
|
|
8
|
-
mframework_image_position?: boolean;
|
|
9
|
-
/** Show the step numbers on the website. For example: (Step 1, Step 2, etc) */
|
|
10
|
-
show_step_numbers?: boolean | null;
|
|
11
|
-
steps?: (number | BlockStepItem)[];
|
|
12
|
-
}
|
|
13
|
-
export interface BlockStepItem {
|
|
14
|
-
id?: string;
|
|
15
|
-
title?: string | null;
|
|
16
|
-
content?: string | null;
|
|
17
|
-
image?: (string | File) | null;
|
|
18
|
-
sort?: number | null;
|
|
19
|
-
block_steps?: (string | BlockStep) | null;
|
|
20
|
-
button_group?: (string | BlockButtonGroup) | null;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Testimonial } from '../content';
|
|
2
|
-
export interface BlockTestimonial {
|
|
3
|
-
headline?: string | null;
|
|
4
|
-
id?: string;
|
|
5
|
-
title?: string | null;
|
|
6
|
-
testimonials?: (string | BlockTestimonialItem)[];
|
|
7
|
-
}
|
|
8
|
-
export interface BlockTestimonialItem {
|
|
9
|
-
block_testimonials_slider_id?: (string | BlockTestimonial) | null;
|
|
10
|
-
id?: string;
|
|
11
|
-
sort?: number | null;
|
|
12
|
-
testimonials_id?: (string | Testimonial) | null;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { BlockColumn } from './block-column';
|
|
2
|
-
import type { BlockCta } from './block-cta';
|
|
3
|
-
import type { BlockFaq } from './block-faq';
|
|
4
|
-
import type { BlockForm } from './block-form';
|
|
5
|
-
import type { BlockGallery } from './block-gallery';
|
|
6
|
-
import type { BlockHero } from './block-hero';
|
|
7
|
-
import type { BlockHtml } from './block-html';
|
|
8
|
-
import type { BlockLogocloud } from './block-logocloud';
|
|
9
|
-
import type { BlockQuote } from './block-quote';
|
|
10
|
-
import type { BlockRichtext } from './block-richtext';
|
|
11
|
-
import type { BlockStep } from './block-steps';
|
|
12
|
-
import type { BlockTeam } from './block-team';
|
|
13
|
-
import type { BlockTestimonial } from './block-testimonial';
|
|
14
|
-
import type { BlockVideo } from './block-video';
|
|
15
|
-
import type { BlockDivider } from './block-divider';
|
|
16
|
-
export type BlockType = 'block_columns' | 'block_cta' | 'block_faqs' | 'block_form' | 'block_gallery' | 'block_hero' | 'block_html' | 'block_logocloud' | 'block_quote' | 'block_richtext' | 'block_steps' | 'block_team' | 'block_testimonials' | 'block_video' | 'block_divider';
|
|
17
|
-
export type Block = BlockColumn | BlockCta | BlockFaq | BlockForm | BlockGallery | BlockHero | BlockHtml | BlockLogocloud | BlockQuote | BlockRichtext | BlockStep | BlockTeam | BlockTestimonial | BlockVideo | BlockDivider;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type * from './block-column';
|
|
2
|
-
export type * from './block-cta';
|
|
3
|
-
export type * from './block-faq';
|
|
4
|
-
export type * from './block-form';
|
|
5
|
-
export type * from './block-gallery';
|
|
6
|
-
export type * from './block-hero';
|
|
7
|
-
export type * from './block-html';
|
|
8
|
-
export type * from './block-logocloud';
|
|
9
|
-
export type * from './block-quote';
|
|
10
|
-
export type * from './block-richtext';
|
|
11
|
-
export type * from './block-steps';
|
|
12
|
-
export type * from './block-team';
|
|
13
|
-
export type * from './block-testimonial';
|
|
14
|
-
export type * from './block-video';
|
|
15
|
-
export type * from './block-button-group';
|
|
16
|
-
export type * from './block-button';
|
|
17
|
-
export type * from './block-divider';
|
|
18
|
-
export type * from './block';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { User } from '../system';
|
|
2
|
-
export interface Form {
|
|
3
|
-
date_created?: string | null;
|
|
4
|
-
date_updated?: string | null;
|
|
5
|
-
id?: string;
|
|
6
|
-
key?: string | null;
|
|
7
|
-
on_success?: string | null;
|
|
8
|
-
redirect_url?: string | null;
|
|
9
|
-
/** The fields for the form. */
|
|
10
|
-
schema?: {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}[] | null;
|
|
13
|
-
sort?: number | null;
|
|
14
|
-
status?: string;
|
|
15
|
-
/** The text for the submit button label. */
|
|
16
|
-
submit_label?: string | null;
|
|
17
|
-
success_message?: string | null;
|
|
18
|
-
title?: string | null;
|
|
19
|
-
user_created?: string | User | null;
|
|
20
|
-
user_updated?: string | User | null;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { SEO } from '../meta';
|
|
2
|
-
import type { User } from '../system';
|
|
3
|
-
import type { Post } from '.';
|
|
4
|
-
import type { BlockColumn, BlockCta, BlockFaq, BlockForm, BlockGallery, BlockHero, BlockHtml, BlockLogocloud, BlockQuote, BlockRichtext, BlockStep, BlockTeam, BlockTestimonial, BlockVideo, BlockType } from '../blocks';
|
|
5
|
-
export interface Page {
|
|
6
|
-
id?: string;
|
|
7
|
-
permalink: string;
|
|
8
|
-
date_created?: string | null;
|
|
9
|
-
date_updated?: string | null;
|
|
10
|
-
seo?: (string | SEO) | null;
|
|
11
|
-
sort?: number | null;
|
|
12
|
-
status?: string;
|
|
13
|
-
title?: string | null;
|
|
14
|
-
user_created?: (string | User) | null;
|
|
15
|
-
user_updated?: (string | User) | null;
|
|
16
|
-
blocks?: (string | PageBlock)[];
|
|
17
|
-
}
|
|
18
|
-
export interface PageBlock {
|
|
19
|
-
collection?: BlockType | null;
|
|
20
|
-
id?: string;
|
|
21
|
-
item?: (string | BlockColumn | BlockCta | BlockFaq | BlockForm | BlockGallery | BlockHero | BlockHtml | BlockLogocloud | BlockQuote | BlockRichtext | BlockStep | BlockTeam | BlockTestimonial | BlockVideo)[] | null;
|
|
22
|
-
pages_id?: (string | Page) | null;
|
|
23
|
-
sort?: number | null;
|
|
24
|
-
hide_block?: boolean | null;
|
|
25
|
-
}
|
|
26
|
-
export interface PagesProjects {
|
|
27
|
-
id?: string;
|
|
28
|
-
title?: string | null;
|
|
29
|
-
headline?: string | null | undefined;
|
|
30
|
-
seo: (string | SEO) | null;
|
|
31
|
-
}
|
|
32
|
-
export interface PagesBlog {
|
|
33
|
-
id?: string;
|
|
34
|
-
title?: string | null;
|
|
35
|
-
headline?: string | null;
|
|
36
|
-
featured_post?: (string | Post) | null;
|
|
37
|
-
seo: (string | SEO) | null;
|
|
38
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { File } from '../system';
|
|
2
|
-
import type { SEO } from '../meta';
|
|
3
|
-
import type { Category, Team } from '.';
|
|
4
|
-
export interface Post {
|
|
5
|
-
author?: (string | Team) | null;
|
|
6
|
-
category?: (string | Category) | null;
|
|
7
|
-
content?: string | null;
|
|
8
|
-
date_created?: string | null;
|
|
9
|
-
date_published?: string | null;
|
|
10
|
-
date_updated?: string | null;
|
|
11
|
-
id?: string;
|
|
12
|
-
image?: (string | File) | null;
|
|
13
|
-
seo?: (string | SEO) | null;
|
|
14
|
-
slug?: string | null;
|
|
15
|
-
sort?: number | null;
|
|
16
|
-
status?: 'draft' | 'published' | 'scheduled' | 'in_review' | 'archived';
|
|
17
|
-
summary?: string | null;
|
|
18
|
-
title?: string | null;
|
|
19
|
-
user_created?: string | null;
|
|
20
|
-
user_updated?: string | null;
|
|
21
|
-
links?: string;
|
|
22
|
-
type?: PostType;
|
|
23
|
-
details?: string;
|
|
24
|
-
gallery?: (number | ProjectFile)[];
|
|
25
|
-
built_with?: {
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
} | null;
|
|
28
|
-
client?: string | null;
|
|
29
|
-
cost?: string | null;
|
|
30
|
-
video_url?: string | null;
|
|
31
|
-
}
|
|
32
|
-
export type PostType = 'blog' | 'video' | 'project';
|
|
33
|
-
export interface ProjectFile {
|
|
34
|
-
directus_files_id?: (string | File) | null;
|
|
35
|
-
id?: number;
|
|
36
|
-
project?: (string | File) | null;
|
|
37
|
-
sort?: number | null;
|
|
38
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { User, File } from '../system';
|
|
2
|
-
export interface Team {
|
|
3
|
-
bio?: string | null;
|
|
4
|
-
date_created?: string | null;
|
|
5
|
-
date_updated?: string | null;
|
|
6
|
-
id?: string;
|
|
7
|
-
image?: (string | File) | null;
|
|
8
|
-
job_title?: string | null;
|
|
9
|
-
name?: string | null;
|
|
10
|
-
social_media?: {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
} | null;
|
|
13
|
-
sort?: number | null;
|
|
14
|
-
status?: string;
|
|
15
|
-
user_created?: string | User | null;
|
|
16
|
-
user_updated?: string | User | null;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { User } from '../system';
|
|
2
|
-
export interface Testimonial {
|
|
3
|
-
company?: string | null;
|
|
4
|
-
company_logo?: (string | File) | null;
|
|
5
|
-
content?: string | null;
|
|
6
|
-
date_created?: string | null;
|
|
7
|
-
date_updated?: string | null;
|
|
8
|
-
id?: string;
|
|
9
|
-
image?: (string | File) | null;
|
|
10
|
-
link?: string | null;
|
|
11
|
-
sort?: number | null;
|
|
12
|
-
status?: string;
|
|
13
|
-
subtitle?: string | null;
|
|
14
|
-
title?: string | null;
|
|
15
|
-
user_created?: string | User | null;
|
|
16
|
-
user_updated?: string | User | null;
|
|
17
|
-
company_info?: string;
|
|
18
|
-
}
|