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

1
node_modules/buetify/lib/composables/toast/index.d.ts generated vendored Executable file
View File

@@ -0,0 +1 @@
export * from './useToast';

2
node_modules/buetify/lib/composables/toast/index.js generated vendored Executable file
View File

@@ -0,0 +1,2 @@
export * from './useToast';
//# sourceMappingURL=index.js.map

1
node_modules/buetify/lib/composables/toast/index.js.map generated vendored Executable file
View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/composables/toast/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAd","sourcesContent":["export * from './useToast';\n"],"sourceRoot":"","file":"index.js"}

6
node_modules/buetify/lib/composables/toast/useToast.d.ts generated vendored Executable file
View File

@@ -0,0 +1,6 @@
import { Slots } from 'vue';
import { UseNoticeProps } from '../noticeController';
export declare function useToast(props?: UseNoticeProps, slots?: Slots): {
open: (options: import("../noticeController").OpenNoticeOptions) => void;
close: () => void;
};

22
node_modules/buetify/lib/composables/toast/useToast.js generated vendored Executable file
View File

@@ -0,0 +1,22 @@
import { constant } from 'fp-ts/lib/function';
import { h, shallowRef } from 'vue';
import { constEmptyArray } from '../../utils/helpers';
import { DEFAULT_USE_NOTICE_PROPS, useNoticeController } from '../noticeController';
export function useToast(props = DEFAULT_USE_NOTICE_PROPS, slots = {}) {
const renderNotification = shallowRef(constant(constEmptyArray));
const noticeController = useNoticeController(props, renderNotification);
renderNotification.value = options => () => {
return [slots.message ? h('div', {
class: ['toast', options.variant ?? props.variant, options.position ?? props.position],
role: 'alert'
}, slots.message && slots.message()) : h('div', {
class: ['toast', options.variant ?? props.variant, options.position ?? props.position],
role: 'alert',
innerHTML: options.message ?? props.message
})];
};
return noticeController;
}
//# sourceMappingURL=useToast.js.map

1
node_modules/buetify/lib/composables/toast/useToast.js.map generated vendored Executable file
View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/composables/toast/useToast.ts"],"names":[],"mappings":"AAAA,SAAS,QAAT,QAAoC,oBAApC;AAEA,SAAS,CAAT,EAAY,UAAZ,QAA4C,KAA5C;AACA,SAAS,eAAT,QAAgC,qBAAhC;AACA,SACE,wBADF,EAGE,mBAHF,QAKO,qBALP;AAOA,OAAM,SAAU,QAAV,CAAmB,KAAA,GAAwB,wBAA3C,EAAqE,KAAA,GAAe,EAApF,EAAsF;AAC1F,QAAM,kBAAkB,GAAG,UAAU,CAAC,QAAQ,CAAC,eAAD,CAAT,CAArC;AACA,QAAM,gBAAgB,GAAG,mBAAmB,CAAC,KAAD,EAAQ,kBAAR,CAA5C;;AACA,EAAA,kBAAkB,CAAC,KAAnB,GAA2B,OAAO,IAAI,MAAK;AACzC,WAAO,CACL,KAAK,CAAC,OAAN,GACI,CAAC,CACC,KADD,EAEC;AACE,MAAA,KAAK,EAAE,CAAC,OAAD,EAAU,OAAO,CAAC,OAAR,IAAmB,KAAK,CAAC,OAAnC,EAA4C,OAAO,CAAC,QAAR,IAAoB,KAAK,CAAC,QAAtE,CADT;AAEE,MAAA,IAAI,EAAE;AAFR,KAFD,EAMC,KAAK,CAAC,OAAN,IAAiB,KAAK,CAAC,OAAN,EANlB,CADL,GASI,CAAC,CAAC,KAAD,EAAQ;AACP,MAAA,KAAK,EAAE,CAAC,OAAD,EAAU,OAAO,CAAC,OAAR,IAAmB,KAAK,CAAC,OAAnC,EAA4C,OAAO,CAAC,QAAR,IAAoB,KAAK,CAAC,QAAtE,CADA;AAEP,MAAA,IAAI,EAAE,OAFC;AAGP,MAAA,SAAS,EAAE,OAAO,CAAC,OAAR,IAAmB,KAAK,CAAC;AAH7B,KAAR,CAVA,CAAP;AAgBD,GAjBD;;AAkBA,SAAO,gBAAP;AACD","sourcesContent":["import { constant, FunctionN } from 'fp-ts/lib/function';\nimport { IO } from 'fp-ts/lib/IO';\nimport { h, shallowRef, VNode, Slots } from 'vue';\nimport { constEmptyArray } from '../../utils/helpers';\nimport {\n DEFAULT_USE_NOTICE_PROPS,\n RenderNoticeOptions,\n useNoticeController,\n UseNoticeProps\n} from '../noticeController';\n\nexport function useToast(props: UseNoticeProps = DEFAULT_USE_NOTICE_PROPS, slots: Slots = {}) {\n const renderNotification = shallowRef(constant(constEmptyArray) as FunctionN<[RenderNoticeOptions], IO<VNode[]>>);\n const noticeController = useNoticeController(props, renderNotification);\n renderNotification.value = options => () => {\n return [\n slots.message\n ? h(\n 'div',\n {\n class: ['toast', options.variant ?? props.variant, options.position ?? props.position],\n role: 'alert'\n },\n slots.message && slots.message()\n )\n : h('div', {\n class: ['toast', options.variant ?? props.variant, options.position ?? props.position],\n role: 'alert',\n innerHTML: options.message ?? props.message\n })\n ];\n };\n return noticeController;\n}\n"],"sourceRoot":"","file":"useToast.js"}