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

121
node_modules/buetify/lib/components/modal/BModal.d.ts generated vendored Executable file
View File

@@ -0,0 +1,121 @@
import 'bulma/sass/components/card.sass';
import 'bulma/sass/components/modal.sass';
import '../../sass/helpers/animations.sass';
import './modal.sass';
import { IO } from 'fp-ts/lib/IO';
import { PropType, ExtractPropTypes } from 'vue';
declare const BModalPropsDefinition: {
showExit: {
type: PropType<boolean>;
default: boolean;
};
isFullscreen: {
type: PropType<boolean>;
default: boolean;
};
onToggle: {
type: PropType<import("fp-ts/lib/function").FunctionN<[boolean], void>>;
required: false;
};
onSetOn: {
type: PropType<IO<void>>;
required: false;
};
onSetOff: {
type: PropType<IO<void>>;
required: false;
};
isActive: {
type: PropType<boolean>;
default: boolean;
};
hasPopup: {
type: PropType<boolean>;
default: boolean;
};
transition: {
type: PropType<import("../..").Transition>;
default: import("fp-ts/lib/function").Lazy<import("../..").Transition>;
};
};
export declare type BModalProps = ExtractPropTypes<typeof BModalPropsDefinition>;
declare const _default: import("vue").DefineComponent<{
showExit: {
type: PropType<boolean>;
default: boolean;
};
isFullscreen: {
type: PropType<boolean>;
default: boolean;
};
onToggle: {
type: PropType<import("fp-ts/lib/function").FunctionN<[boolean], void>>;
required: false;
};
onSetOn: {
type: PropType<IO<void>>;
required: false;
};
onSetOff: {
type: PropType<IO<void>>;
required: false;
};
isActive: {
type: PropType<boolean>;
default: boolean;
};
hasPopup: {
type: PropType<boolean>;
default: boolean;
};
transition: {
type: 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;
isFullscreen: boolean;
showExit: 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;
isFullscreen: boolean;
showExit: boolean;
}>;
export default _default;

80
node_modules/buetify/lib/components/modal/BModal.js generated vendored Executable file
View File

@@ -0,0 +1,80 @@
import 'bulma/sass/components/card.sass';
import 'bulma/sass/components/modal.sass';
import "../../../src/sass/helpers/animations.sass";
import "../../../src/components/modal/modal.sass";
import { usePopupController, UsePopupControllerPropsDefinition } from '../../composables/popupController';
import { constEmptyArray } from '../../utils/helpers';
import { defineComponent, shallowRef, h, watchEffect, onUnmounted } from 'vue';
import BSheet from '../sheet/BSheet';
const BModalPropsDefinition = { ...UsePopupControllerPropsDefinition,
showExit: {
type: Boolean,
default: true
},
isFullscreen: {
type: Boolean,
default: false
}
};
export default defineComponent({
name: 'b-modal',
props: BModalPropsDefinition,
setup(props, {
attrs,
slots
}) {
const generateModal = shallowRef(constEmptyArray);
const popup = usePopupController(props, generateModal);
generateModal.value = () => {
if (!props.isFullscreen) {
const nodes = [h('div', {
onClick: popup.close,
class: 'modal-background'
}), h('div', {
class: 'modal-content'
}, slots.default && slots.default(popup))];
if (props.showExit) {
nodes.push(h('button', {
class: 'modal-close is-large',
onClick: popup.close
}));
}
return [h('div', { ...attrs,
class: 'modal is-active'
}, nodes)];
} else {
return [h('div', { ...attrs,
class: 'modal is-active is-fullscreen'
}, [h(BSheet, () => slots.default && slots.default(popup))])];
}
};
watchEffect(() => {
if (window === undefined) {
return;
}
if (popup.isOpen.value && props.isFullscreen) {
window.document.documentElement.classList.add('is-clipped');
} else {
window.document.documentElement.classList.remove('is-clipped');
}
});
onUnmounted(() => {
window && window.document.documentElement.classList.remove('is-clipped');
});
return {
popup
};
},
render() {
return this.$slots.trigger && this.$slots.trigger(this.popup);
}
});
//# sourceMappingURL=BModal.js.map

1
node_modules/buetify/lib/components/modal/BModal.js.map generated vendored Executable file
View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/modal/BModal.ts"],"names":[],"mappings":"AAAA,OAAO,iCAAP;AACA,OAAO,kCAAP;AACA,OAAO,2CAAP;AACA,OAAO,0CAAP;AAEA,SAAS,kBAAT,EAA6B,iCAA7B,QAAsE,mCAAtE;AACA,SAAS,eAAT,QAAgC,qBAAhC;AACA,SAAgB,eAAhB,EAA2C,UAA3C,EAAuD,CAAvD,EAA4E,WAA5E,EAAyF,WAAzF,QAA4G,KAA5G;AACA,OAAO,MAAP,MAAmB,iBAAnB;AAEA,MAAM,qBAAqB,GAAG,EAC5B,GAAG,iCADyB;AAE5B,EAAA,QAAQ,EAAE;AACR,IAAA,IAAI,EAAE,OADE;AAER,IAAA,OAAO,EAAE;AAFD,GAFkB;AAM5B,EAAA,YAAY,EAAE;AACZ,IAAA,IAAI,EAAE,OADM;AAEZ,IAAA,OAAO,EAAE;AAFG;AANc,CAA9B;AAcA,eAAe,eAAe,CAAC;AAC7B,EAAA,IAAI,EAAE,SADuB;AAE7B,EAAA,KAAK,EAAE,qBAFsB;;AAG7B,EAAA,KAAK,CAAC,KAAD,EAAQ;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,GAAR,EAAwB;AAC3B,UAAM,aAAa,GAAG,UAAU,CAAC,eAAD,CAAhC;AACA,UAAM,KAAK,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OAFD,MAEO;AACL,QAAA,MAAM,CAAC,QAAP,CAAgB,eAAhB,CAAgC,SAAhC,CAA0C,MAA1C,CAAiD,YAAjD;AACD;AACF,KATU,CAAX;AAWA,IAAA,WAAW,CAAC,MAAK;AACf,MAAA,MAAM,IAAI,MAAM,CAAC,QAAP,CAAgB,eAAhB,CAAgC,SAAhC,CAA0C,MAA1C,CAAiD,YAAjD,CAAV;AACD,KAFU,CAAX;AAGA,WAAO;AAAE,MAAA;AAAF,KAAP;AACD,GAtD4B;;AAuD7B,EAAA,MAAM,GAAA;AACJ,WAAO,KAAK,MAAL,CAAY,OAAZ,IAAuB,KAAK,MAAL,CAAY,OAAZ,CAAoB,KAAK,KAAzB,CAA9B;AACD;;AAzD4B,CAAD,CAA9B","sourcesContent":["import 'bulma/sass/components/card.sass';\nimport 'bulma/sass/components/modal.sass';\nimport '../../sass/helpers/animations.sass';\nimport './modal.sass';\nimport { IO } from 'fp-ts/lib/IO';\nimport { usePopupController, UsePopupControllerPropsDefinition } from '../../composables/popupController';\nimport { constEmptyArray } from '../../utils/helpers';\nimport { VNode, defineComponent, PropType, shallowRef, h, ExtractPropTypes, watchEffect, onUnmounted } from 'vue';\nimport BSheet from '../sheet/BSheet';\n\nconst BModalPropsDefinition = {\n ...UsePopupControllerPropsDefinition,\n showExit: {\n type: Boolean as PropType<boolean>,\n default: true\n },\n isFullscreen: {\n type: Boolean as PropType<boolean>,\n default: false\n }\n};\n\nexport type BModalProps = ExtractPropTypes<typeof BModalPropsDefinition>;\n\nexport default defineComponent({\n name: 'b-modal',\n props: BModalPropsDefinition,\n setup(props, { attrs, slots }) {\n const generateModal = shallowRef(constEmptyArray as IO<VNode[]>);\n const popup = usePopupController(props, generateModal);\n generateModal.value = () => {\n if (!props.isFullscreen) {\n const nodes = [\n h('div', { onClick: popup.close, class: 'modal-background' }),\n h('div', { class: 'modal-content' }, slots.default && slots.default(popup))\n ];\n if (props.showExit) {\n nodes.push(h('button', { class: 'modal-close is-large', onClick: popup.close }));\n }\n return [\n h(\n 'div',\n {\n ...attrs,\n class: 'modal is-active'\n },\n nodes\n )\n ];\n } else {\n return [\n h(\n 'div',\n {\n ...attrs,\n class: 'modal is-active is-fullscreen'\n },\n [h(BSheet, () => slots.default && slots.default(popup))]\n )\n ];\n }\n };\n\n watchEffect(() => {\n if (window === undefined) {\n return;\n }\n if (popup.isOpen.value && props.isFullscreen) {\n window.document.documentElement.classList.add('is-clipped');\n } else {\n window.document.documentElement.classList.remove('is-clipped');\n }\n });\n\n onUnmounted(() => {\n window && window.document.documentElement.classList.remove('is-clipped');\n });\n return { popup };\n },\n render() {\n return this.$slots.trigger && this.$slots.trigger(this.popup);\n }\n});\n"],"sourceRoot":"","file":"BModal.js"}

3
node_modules/buetify/lib/components/modal/index.d.ts generated vendored Executable file
View File

@@ -0,0 +1,3 @@
import BModal from './BModal';
export { BModal };
export default BModal;

4
node_modules/buetify/lib/components/modal/index.js generated vendored Executable file
View File

@@ -0,0 +1,4 @@
import BModal from './BModal';
export { BModal };
export default BModal;
//# sourceMappingURL=index.js.map

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

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAP,MAAmB,UAAnB;AAEA,SAAS,MAAT;AAEA,eAAe,MAAf","sourcesContent":["import BModal from './BModal';\n\nexport { BModal };\n\nexport default BModal;\n"],"sourceRoot":"","file":"index.js"}