init component

This commit is contained in:
Robin COuret
2026-02-16 17:28:37 +01:00
parent 460c7a25e0
commit e0e50af706
4557 changed files with 666911 additions and 8 deletions

71
node_modules/buetify/lib/components/dialog/BDialog.d.ts generated vendored Executable file
View File

@@ -0,0 +1,71 @@
import 'bulma/sass/components/modal.sass';
import './dialog.sass';
import { IO } from 'fp-ts/lib/IO';
declare const _default: import("vue").DefineComponent<{
onToggle: {
type: import("vue").PropType<import("fp-ts/lib/function").FunctionN<[boolean], void>>;
required: false;
};
onSetOn: {
type: import("vue").PropType<IO<void>>;
required: false;
};
onSetOff: {
type: import("vue").PropType<IO<void>>;
required: false;
};
isActive: {
type: import("vue").PropType<boolean>;
default: boolean;
};
hasPopup: {
type: import("vue").PropType<boolean>;
default: boolean;
};
transition: {
type: import("vue").PropType<import("../..").Transition>;
default: import("fp-ts/lib/function").Lazy<import("../..").Transition>;
};
}, {
popup: {
isOpen: import("vue").ComputedRef<boolean>;
attrs: import("vue").ComputedRef<{
'aria-haspopup'?: boolean;
tabindex: number;
role: string;
type: string;
'aria-pressed': boolean;
'aria-expanded': boolean;
}>;
listeners: {
onClick: IO<void>;
onKeydown: (e: KeyboardEvent) => void;
};
props: import("vue").ComputedRef<{
onClick: IO<void>;
onKeydown: (e: KeyboardEvent) => void;
'aria-haspopup'?: boolean;
tabindex: number;
role: string;
type: string;
'aria-pressed': boolean;
'aria-expanded': boolean;
}>;
open: (e?: Event | undefined) => void;
close: (e?: Event | undefined) => void;
toggle: (e?: Event | undefined) => void;
};
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
hasPopup: boolean;
transition: import("../..").Transition;
isActive: boolean;
} & {
onToggle?: import("fp-ts/lib/function").FunctionN<[boolean], void> | undefined;
onSetOn?: IO<void> | undefined;
onSetOff?: IO<void> | undefined;
}>, {
hasPopup: boolean;
transition: import("../..").Transition;
isActive: boolean;
}>;
export default _default;

63
node_modules/buetify/lib/components/dialog/BDialog.js generated vendored Executable file
View File

@@ -0,0 +1,63 @@
import 'bulma/sass/components/modal.sass';
import "../../../src/components/dialog/dialog.sass";
import { head } from 'fp-ts/lib/Array';
import { pipe } from 'fp-ts/lib/function';
import { exists } from 'fp-ts/lib/Option';
import { usePopupController, UsePopupControllerPropsDefinition } from '../../composables/popupController';
import { constEmptyArray, isObject } from '../../utils/helpers';
import BOverlay from '../overlay/BOverlay';
import BDialogContent, { B_DIALOG_CONTENT_NAME } from './BDialogContent';
import { defineComponent, shallowRef, h } from 'vue';
function containsBDialogContent(node) {
const components = isObject(node) && node?.type?.components || {}; // eslint-disable-line
for (const k in components) {
if (components[k]?.name === B_DIALOG_CONTENT_NAME) {
return true;
}
}
return false;
}
export default defineComponent({
name: 'b-dialog',
props: UsePopupControllerPropsDefinition,
setup(props, {
attrs,
slots
}) {
const generateDialog = shallowRef(constEmptyArray);
const popup = usePopupController(props, generateDialog);
generateDialog.value = () => {
return [h(BOverlay, { ...attrs,
class: 'dialog',
isActive: true,
onClick: popup.close
}, () => {
const nodes = slots.default ? slots.default(popup) : [];
const isDialogContent = pipe(head(nodes), exists(containsBDialogContent));
return isDialogContent ? nodes : h(BDialogContent, {
asCard: false
}, {
header: slots.header ? () => slots.header && slots.header(popup) : undefined,
default: () => nodes,
footer: () => slots.footer && slots.footer(popup)
});
})];
};
return {
popup
};
},
render() {
return this.$slots.trigger && this.$slots.trigger(this.popup);
}
});
//# sourceMappingURL=BDialog.js.map

1
node_modules/buetify/lib/components/dialog/BDialog.js.map generated vendored Executable file
View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/dialog/BDialog.ts"],"names":[],"mappings":"AAAA,OAAO,kCAAP;AACA,OAAO,4CAAP;AACA,SAAS,IAAT,QAAqB,iBAArB;AACA,SAAS,IAAT,QAAqB,oBAArB;AAEA,SAAS,MAAT,QAAuB,kBAAvB;AACA,SAAS,kBAAT,EAA6B,iC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D,CAApB,CAA5B;AACA,eAAO,eAAe,GAClB,KADkB,GAElB,CAAC,CACC,cADD,EAEC;AACE,UAAA,MAAM,EAAE;AADV,SAFD,EAKC;AACE,UAAA,MAAM,EAAE,KAAK,CAAC,MAAN,GAAe,MAAM,KAAK,CAAC,MAAN,IAAgB,KAAK,CAAC,MAAN,CAAa,KAAb,CAArC,GAA2D,SADrE;AAEE,UAAA,OAAO,EAAE,MAAM,KAFjB;AAGE,UAAA,MAAM,EAAE,MAAM,KAAK,CAAC,MAAN,IAAgB,KAAK,CAAC,MAAN,CAAa,KAAb;AAHhC,SALD,CAFL;AAaD,OAxBF,CADI,CAAP;AA4BD,KA7BD;;AA8BA,WAAO;AAAE,MAAA;AAAF,KAAP;AACD,GArC4B;;AAsC7B,EAAA,MAAM,GAAA;AACJ,WAAO,KAAK,MAAL,CAAY,OAAZ,IAAuB,KAAK,MAAL,CAAY,OAAZ,CAAoB,KAAK,KAAzB,CAA9B;AACD;;AAxC4B,CAAD,CAA9B","sourcesContent":["import 'bulma/sass/components/modal.sass';\nimport './dialog.sass';\nimport { head } from 'fp-ts/lib/Array';\nimport { pipe } from 'fp-ts/lib/function';\nimport { IO } from 'fp-ts/lib/IO';\nimport { exists } from 'fp-ts/lib/Option';\nimport { usePopupController, UsePopupControllerPropsDefinition } from '../../composables/popupController';\nimport { constEmptyArray, isObject } from '../../utils/helpers';\nimport BOverlay from '../overlay/BOverlay';\nimport BDialogContent, { B_DIALOG_CONTENT_NAME } from './BDialogContent';\nimport { defineComponent, VNode, shallowRef, h } from 'vue';\n\nfunction containsBDialogContent(node: any) { //eslint-disable-line\n const components = (isObject(node) && (node as any)?.type?.components) || {}; // eslint-disable-line\n for (const k in components) {\n if (components[k]?.name === B_DIALOG_CONTENT_NAME) {\n return true;\n }\n }\n return false;\n}\n\nexport default defineComponent({\n name: 'b-dialog',\n props: UsePopupControllerPropsDefinition,\n setup(props, { attrs, slots }) {\n const generateDialog = shallowRef(constEmptyArray as IO<VNode[]>);\n const popup = usePopupController(props, generateDialog);\n generateDialog.value = () => {\n return [\n h(\n BOverlay,\n {\n ...attrs,\n class: 'dialog',\n isActive: true,\n onClick: popup.close\n },\n () => {\n const nodes = slots.default ? slots.default(popup) : [];\n const isDialogContent = pipe(head(nodes), exists(containsBDialogContent));\n return isDialogContent\n ? nodes\n : h(\n BDialogContent,\n {\n asCard: false\n },\n {\n header: slots.header ? () => slots.header && slots.header(popup) : undefined,\n default: () => nodes,\n footer: () => slots.footer && slots.footer(popup)\n }\n );\n }\n )\n ];\n };\n return { popup };\n },\n render() {\n return this.$slots.trigger && this.$slots.trigger(this.popup);\n }\n});\n"],"sourceRoot":"","file":"BDialog.js"}

View File

@@ -0,0 +1,43 @@
import 'bulma/sass/components/modal.sass';
import './dialog.sass';
import { SizeVariant } from '../../types/SizeVariants';
import { PropType, VNode } from 'vue';
export declare const B_DIALOG_CONTENT_NAME = "b-dialog-content";
declare const _default: import("vue").DefineComponent<{
size: {
type: PropType<SizeVariant>;
required: false;
};
cardClass: {
type: PropType<string>;
required: false;
};
asCard: {
type: PropType<boolean>;
default: boolean;
};
themeMap: {
type: PropType<import("../..").ThemeColorMap>;
required: boolean;
default: import("fp-ts/lib/function").Lazy<import("../..").ThemeColorMap>;
};
isThemeable: {
type: PropType<boolean>;
required: boolean;
default: boolean;
};
}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
isThemeable: boolean;
themeMap: import("../..").ThemeColorMap;
asCard: boolean;
} & {
size?: "" | "is-small" | "is-medium" | "is-large" | undefined;
cardClass?: string | undefined;
}>, {
isThemeable: boolean;
themeMap: import("../..").ThemeColorMap;
asCard: boolean;
}>;
export default _default;

62
node_modules/buetify/lib/components/dialog/BDialogContent.js generated vendored Executable file
View File

@@ -0,0 +1,62 @@
import 'bulma/sass/components/modal.sass';
import "../../../src/components/dialog/dialog.sass";
import { useThemePropsDefinition, useTheme } from '../../composables/theme';
import { defineComponent, h } from 'vue';
import { DialogTheme } from './theme';
export const B_DIALOG_CONTENT_NAME = 'b-dialog-content';
export default defineComponent({
name: B_DIALOG_CONTENT_NAME,
props: { ...useThemePropsDefinition(DialogTheme, true),
size: {
type: String,
required: false
},
cardClass: {
type: String,
required: false
},
asCard: {
type: Boolean,
default: true
}
},
setup(props, {
slots
}) {
const {
themeClasses
} = useTheme(props);
return () => {
const nodes = [];
if (slots.header) {
nodes.push(h('header', {
class: 'modal-card-head'
}, slots.header()));
}
nodes.push(h('section', {
class: ['modal-card-body', {
'is-titleless': !slots.header
}]
}, slots.default && slots.default()));
if (slots.footer) {
nodes.push(h('footer', {
class: 'modal-card-foot'
}, slots.footer()));
}
return h('div', {
class: [props.size, 'b-dialog']
}, [h('article', {
class: ['modal-card', {
card: props.asCard
}, ...themeClasses.value, props.cardClass]
}, nodes)]);
};
}
});
//# sourceMappingURL=BDialogContent.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/dialog/BDialogContent.ts"],"names":[],"mappings":"AAAA,OAAO,kCAAP;AACA,OAAO,4CAAP;AACA,SAAS,uBAAT,EAAkC,QAAlC,QAAkD,yBAAlD;AAEA,SAA0B,eAA1B,EAA2C,CAA3C,QAAoD,KAApD;AACA,SAAS,WAAT,QAA4B,SAA5B;AAEA,OAAO,MAAM,qBAAqB,GAAG,kBAA9B;AAEP,eAAe,eAAe,CAAC;AAC7B,EAAA,IAAI,EAAE,qBADuB;AAE7B,EAAA,KAAK,EAAE,EACL,GAAG,uBAAuB,CAAC,WAAD,EAAc,IAAd,CADrB;AAEL,IAAA,IAAI,EAAE;AACJ,MAAA,IAAI,EAAE,MADF;AAEJ,MAAA,QAAQ,EAAE;AAFN,KAFD;AAML,IAAA,SAAS,EAAE;AACT,MAAA,IAAI,EAAE,MADG;AAET,MAAA,QAAQ,EA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AAD,CAA9B","sourcesContent":["import 'bulma/sass/components/modal.sass';\nimport './dialog.sass';\nimport { useThemePropsDefinition, useTheme } from '../../composables/theme';\nimport { SizeVariant } from '../../types/SizeVariants';\nimport { PropType, VNode, defineComponent, h } from 'vue';\nimport { DialogTheme } from './theme';\n\nexport const B_DIALOG_CONTENT_NAME = 'b-dialog-content';\n\nexport default defineComponent({\n name: B_DIALOG_CONTENT_NAME,\n props: {\n ...useThemePropsDefinition(DialogTheme, true),\n size: {\n type: String as PropType<SizeVariant>,\n required: false\n },\n cardClass: {\n type: String as PropType<string>,\n required: false\n },\n asCard: {\n type: Boolean as PropType<boolean>,\n default: true\n }\n },\n setup(props, { slots }) {\n const { themeClasses } = useTheme(props);\n return () => {\n const nodes: VNode[] = [];\n if (slots.header) {\n nodes.push(h('header', { class: 'modal-card-head' }, slots.header()));\n }\n nodes.push(\n h(\n 'section',\n { class: ['modal-card-body', { 'is-titleless': !slots.header }] },\n slots.default && slots.default()\n )\n );\n if (slots.footer) {\n nodes.push(h('footer', { class: 'modal-card-foot' }, slots.footer()));\n }\n return h('div', { class: [props.size, 'b-dialog'] }, [\n h(\n 'article',\n {\n class: ['modal-card', { card: props.asCard }, ...themeClasses.value, props.cardClass]\n },\n nodes\n )\n ]);\n };\n }\n});\n"],"sourceRoot":"","file":"BDialogContent.js"}

View File

@@ -0,0 +1,6 @@
import 'bulma/sass/components/modal.sass';
import './dialog.sass';
import { SetupContext } from 'vue';
export default function BDialogOverlay(_: any, { attrs, slots }: SetupContext): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>;

13
node_modules/buetify/lib/components/dialog/BDialogOverlay.js generated vendored Executable file
View File

@@ -0,0 +1,13 @@
import 'bulma/sass/components/modal.sass';
import "../../../src/components/dialog/dialog.sass";
import BOverlay from '../overlay/BOverlay';
import { h } from 'vue';
export default function BDialogOverlay(_, {
attrs,
slots
}) {
return h(BOverlay, { ...attrs,
class: 'dialog'
}, slots.default());
}
//# sourceMappingURL=BDialogOverlay.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/dialog/BDialogOverlay.ts"],"names":[],"mappings":"AAAA,OAAO,kCAAP;AACA,OAAO,4CAAP;AACA,OAAO,QAAP,MAAqB,qBAArB;AACA,SAAS,CAAT,QAAgC,KAAhC;AAEA,eAAc,SAAU,cAAV,CAAyB,CAAzB,EAAiC;AAAE,EAAA,KAAF;AAAS,EAAA;AAAT,CAAjC,EAA+D;AAC3E,SAAO,CAAC,CAAC,QAAD,EAAW,EAAE,GAAG,KAAL;AAAY,IAAA,KAAK,EAAE;AAAnB,GAAX,EAA0C,KAAK,CAAC,OAAN,EAA1C,CAAR;AACD","sourcesContent":["import 'bulma/sass/components/modal.sass';\nimport './dialog.sass';\nimport BOverlay from '../overlay/BOverlay';\nimport { h, SetupContext } from 'vue';\n\nexport default function BDialogOverlay(_: any, { attrs, slots }: SetupContext) {\n return h(BOverlay, { ...attrs, class: 'dialog' }, slots.default!());\n}\n"],"sourceRoot":"","file":"BDialogOverlay.js"}

5
node_modules/buetify/lib/components/dialog/index.d.ts generated vendored Executable file
View File

@@ -0,0 +1,5 @@
import BDialog from './BDialog';
import BDialogContent from './BDialogContent';
import { DialogTheme } from './theme';
export { BDialog, BDialogContent, DialogTheme };
export default BDialog;

6
node_modules/buetify/lib/components/dialog/index.js generated vendored Executable file
View File

@@ -0,0 +1,6 @@
import BDialog from './BDialog';
import BDialogContent from './BDialogContent';
import { DialogTheme } from './theme';
export { BDialog, BDialogContent, DialogTheme };
export default BDialog;
//# sourceMappingURL=index.js.map

1
node_modules/buetify/lib/components/dialog/index.js.map generated vendored Executable file
View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAP,MAAoB,WAApB;AACA,OAAO,cAAP,MAA2B,kBAA3B;AACA,SAAS,WAAT,QAA4B,SAA5B;AAEA,SAAS,OAAT,EAAkB,cAAlB,EAAkC,WAAlC;AAEA,eAAe,OAAf","sourcesContent":["import BDialog from './BDialog';\nimport BDialogContent from './BDialogContent';\nimport { DialogTheme } from './theme';\n\nexport { BDialog, BDialogContent, DialogTheme };\n\nexport default BDialog;\n"],"sourceRoot":"","file":"index.js"}

2
node_modules/buetify/lib/components/dialog/theme.d.ts generated vendored Executable file
View File

@@ -0,0 +1,2 @@
import { ThemeColorMap } from '../../types/ThemeColorMap';
export declare const DialogTheme: ThemeColorMap;

6
node_modules/buetify/lib/components/dialog/theme.js generated vendored Executable file
View File

@@ -0,0 +1,6 @@
import { shallowReactive } from 'vue';
export const DialogTheme = shallowReactive({
dark: 'is-grey-dark',
light: ''
});
//# sourceMappingURL=theme.js.map

1
node_modules/buetify/lib/components/dialog/theme.js.map generated vendored Executable file
View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/dialog/theme.ts"],"names":[],"mappings":"AAAA,SAAS,eAAT,QAAgC,KAAhC;AAGA,OAAO,MAAM,WAAW,GAAkB,eAAe,CAAC;AACxD,EAAA,IAAI,EAAE,cADkD;AAExD,EAAA,KAAK,EAAE;AAFiD,CAAD,CAAlD","sourcesContent":["import { shallowReactive } from 'vue';\nimport { ThemeColorMap } from '../../types/ThemeColorMap';\n\nexport const DialogTheme: ThemeColorMap = shallowReactive({\n dark: 'is-grey-dark',\n light: ''\n});\n"],"sourceRoot":"","file":"theme.js"}