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

2
node_modules/buetify/lib/components/form/shared/index.d.ts generated vendored Executable file
View File

@@ -0,0 +1,2 @@
export * from './useSelectionControl';
export * from './types';

3
node_modules/buetify/lib/components/form/shared/index.js generated vendored Executable file
View File

@@ -0,0 +1,3 @@
export * from './useSelectionControl';
export * from './types';
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/components/form/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAd;AACA,cAAc,SAAd","sourcesContent":["export * from './useSelectionControl';\nexport * from './types';\n"],"sourceRoot":"","file":"index.js"}

19
node_modules/buetify/lib/components/form/shared/types.d.ts generated vendored Executable file
View File

@@ -0,0 +1,19 @@
import { FunctionalComponent, ComponentOptions } from 'vue';
declare type Component = FunctionalComponent | ComponentOptions;
export interface InputIcons {
isSuccess: Component;
isDanger: Component;
isWarning: Component;
isInfo: Component;
passwordVisible: Component;
passwordInvisible: Component;
}
export declare const DEFAULT_INPUT_ICONS: InputIcons;
export declare function getInputIcons(icons: Partial<InputIcons>): InputIcons;
export interface NumberInputIcons {
minus: Component;
plus: Component;
}
export declare const DEFAULT_NUMBER_INPUT_ICONS: NumberInputIcons;
export declare function getNumberInputIcons(icons: Partial<NumberInputIcons>): NumberInputIcons;
export {};

24
node_modules/buetify/lib/components/form/shared/types.js generated vendored Executable file
View File

@@ -0,0 +1,24 @@
import { defineAsyncComponent } from 'vue';
export const DEFAULT_INPUT_ICONS = {
isSuccess: defineAsyncComponent(() => import('../../icons/check')),
isDanger: defineAsyncComponent(() => import('../../icons/exclamationCircle')),
isInfo: defineAsyncComponent(() => import('../../icons/infoCircle')),
isWarning: defineAsyncComponent(() => import('../../icons/exclamationTriangle')),
passwordInvisible: defineAsyncComponent(() => import('../../icons/eye')),
passwordVisible: defineAsyncComponent(() => import('../../icons/eyeSlash'))
};
export function getInputIcons(icons) {
return { ...DEFAULT_INPUT_ICONS,
...icons
};
}
export const DEFAULT_NUMBER_INPUT_ICONS = {
minus: defineAsyncComponent(() => import('../../icons/minus')),
plus: defineAsyncComponent(() => import('../../icons/plus'))
};
export function getNumberInputIcons(icons) {
return { ...DEFAULT_NUMBER_INPUT_ICONS,
...icons
};
}
//# sourceMappingURL=types.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/components/form/shared/types.ts"],"names":[],"mappings":"AAAA,SAAgD,oBAAhD,QAA4E,KAA5E;AAaA,OAAO,MAAM,mBAAmB,GAAe;AAC7C,EAAA,SAAS,EAAE,oBAAoB,CAAC,MAAM,OAAO,mBAAP,CAAP,CADc;AAE7C,EAAA,QAAQ,EAAE,oBAAoB,CAAC,MAAM,OAAO,+BAAP,CAAP,CAFe;AAG7C,EAAA,MAAM,EAAE,oBAAoB,CAAC,MAAM,OAAO,wBAAP,CAAP,CAHiB;AAI7C,EAAA,SAAS,EAAE,oBAAoB,CAAC,MAAM,OAAO,iCAAP,CAAP,CAJc;AAK7C,EAAA,iBAAiB,EAAE,oBAAoB,CAAC,MAAM,OAAO,iBAAP,CAAP,CALM;AAM7C,EAAA,eAAe,EAAE,oBAAoB,CAAC,MAAM,OAAO,sBAAP,CAAP;AANQ,CAAxC;AASP,OAAM,SAAU,aAAV,CAAwB,KAAxB,EAAkD;AACtD,SAAO,EACL,GAAG,mBADE;AAEL,OAAG;AAFE,GAAP;AAID;AAOD,OAAO,MAAM,0BAA0B,GAAqB;AAC1D,EAAA,KAAK,EAAE,oBAAoB,CAAC,MAAM,OAAO,mBAAP,CAAP,CAD+B;AAE1D,EAAA,IAAI,EAAE,oBAAoB,CAAC,MAAM,OAAO,kBAAP,CAAP;AAFgC,CAArD;AAKP,OAAM,SAAU,mBAAV,CAA8B,KAA9B,EAA8D;AAClE,SAAO,EACL,GAAG,0BADE;AAEL,OAAG;AAFE,GAAP;AAID","sourcesContent":["import { FunctionalComponent, ComponentOptions, defineAsyncComponent } from 'vue';\n\ntype Component = FunctionalComponent | ComponentOptions;\n\nexport interface InputIcons {\n isSuccess: Component;\n isDanger: Component;\n isWarning: Component;\n isInfo: Component;\n passwordVisible: Component;\n passwordInvisible: Component;\n}\n\nexport const DEFAULT_INPUT_ICONS: InputIcons = {\n isSuccess: defineAsyncComponent(() => import('../../icons/check')),\n isDanger: defineAsyncComponent(() => import('../../icons/exclamationCircle')),\n isInfo: defineAsyncComponent(() => import('../../icons/infoCircle')),\n isWarning: defineAsyncComponent(() => import('../../icons/exclamationTriangle')),\n passwordInvisible: defineAsyncComponent(() => import('../../icons/eye')),\n passwordVisible: defineAsyncComponent(() => import('../../icons/eyeSlash'))\n};\n\nexport function getInputIcons(icons: Partial<InputIcons>): InputIcons {\n return {\n ...DEFAULT_INPUT_ICONS,\n ...icons\n };\n}\n\nexport interface NumberInputIcons {\n minus: Component;\n plus: Component;\n}\n\nexport const DEFAULT_NUMBER_INPUT_ICONS: NumberInputIcons = {\n minus: defineAsyncComponent(() => import('../../icons/minus')),\n plus: defineAsyncComponent(() => import('../../icons/plus'))\n};\n\nexport function getNumberInputIcons(icons: Partial<NumberInputIcons>): NumberInputIcons {\n return {\n ...DEFAULT_NUMBER_INPUT_ICONS,\n ...icons\n };\n}\n"],"sourceRoot":"","file":"types.js"}

View File

@@ -0,0 +1,9 @@
import { PropType } from 'vue';
export declare function useCheckRadioPropsDefinition<T>(): {
value: PropType<T>;
nativeValue: PropType<unknown>;
type: {
type: PropType<string>;
};
};
export declare function useCheckRadio<T>(): void;

View File

@@ -0,0 +1,11 @@
export function useCheckRadioPropsDefinition() {
return {
value: null,
nativeValue: null,
type: {
type: String
}
};
}
export function useCheckRadio() {}
//# sourceMappingURL=useCheckRadio.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/components/form/shared/useCheckRadio.ts"],"names":[],"mappings":"AAEA,OAAM,SAAU,4BAAV,GAAsC;AAC1C,SAAO;AACL,IAAA,KAAK,EAAG,IADH;AAEL,IAAA,WAAW,EAAG,IAFT;AAGL,IAAA,IAAI,EAAE;AACJ,MAAA,IAAI,EAAE;AADF;AAHD,GAAP;AAOD;AAED,OAAM,SAAU,aAAV,GAAuB,CAAQ","sourcesContent":["import { PropType } from 'vue';\r\n\r\nexport function useCheckRadioPropsDefinition<T>() {\r\n return {\r\n value: (null as unknown) as PropType<T>,\r\n nativeValue: (null as unknown) as PropType<unknown>,\r\n type: {\r\n type: String as PropType<string>\r\n }\r\n };\r\n}\r\n\r\nexport function useCheckRadio<T>() {}\r\n"],"sourceRoot":"","file":"useCheckRadio.js"}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,54 @@
import { getUseSelectablePropsDefinition, useSelectionControl as useControl } from '../../../composables/selectionControl/useSelectionControl';
import { defineComponent, shallowRef, h } from 'vue';
function generateCheck(variant) {
return h('span', {
class: [variant, 'check']
});
}
function generateInput(selectionControl) {
return h('input', {
onChange: selectionControl.onChange,
onBlur: selectionControl.onBlur,
onFocus: selectionControl.onFocus,
...selectionControl.attrs.value
});
}
function generateLabelText(selectionControl, slots) {
return h('span', {
class: 'control-label'
}, slots.default && slots.default());
}
export function useSelectionControl(role, type, name, staticClass) {
return () => defineComponent({
name,
props: getUseSelectablePropsDefinition(),
setup(props, {
slots
}) {
const label = shallowRef(null);
const selection = useControl(props, label, role, type);
return () => {
return h('label', {
class: [staticClass, props.size, {
'is-disabled': selection.isDisabled.value
}],
ref: label,
id: selection.label.labelId.value,
for: selection.label.id.value,
disabled: selection.isDisabled.value || null,
tabindex: selection.isDisabled.value ? -1 : 0,
onKeydown: selection.onKeydown,
onBlur: selection.onBlur,
onClick: selection.onClick
}, [generateInput(selection), generateCheck(props.variant), generateLabelText(selection, slots)]);
};
}
});
}
//# sourceMappingURL=useSelectionControl.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/components/form/shared/useSelectionControl.ts"],"names":[],"mappings":"AAAA,SACE,+BADF,EAIE,mBAAmB,IAAI,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CAAqB;AAAtC,WAA1B,CADT;AAEE,UAAA,GAAG,EAAE,KAFP;AAGE,UAAA,EAAE,EAAE,SAAS,CAAC,KAAV,CAAgB,OAAhB,CAAwB,KAH9B;AAIE,UAAA,GAAG,EAAE,SAAS,CAAC,KAAV,CAAgB,EAAhB,CAAmB,KAJ1B;AAKE,UAAA,QAAQ,EAAE,SAAS,CAAC,UAAV,CAAqB,KAArB,IAA8B,IAL1C;AAME,UAAA,QAAQ,EAAE,SAAS,CAAC,UAAV,CAAqB,KAArB,GAA6B,CAAC,CAA9B,GAAkC,CAN9C;AAOE,UAAA,SAAS,EAAE,SAAS,CAAC,SAPvB;AAQE,UAAA,MAAM,EAAE,SAAS,CAAC,MARpB;AASE,UAAA,OAAO,EAAE,SAAS,CAAC;AATrB,SAFM,EAaN,CAAC,aAAa,CAAC,SAAD,CAAd,EAA2B,aAAa,CAAC,KAAK,CAAC,OAAP,CAAxC,EAAyD,iBAAiB,CAAC,SAAD,EAAY,KAAZ,CAA1E,CAbM,CAAR;AAeD,OAhBD;AAiBD;;AAvBa,GAAD,CADjB;AA0BD","sourcesContent":["import {\n getUseSelectablePropsDefinition,\n SelectionControl,\n UseSelectableProps,\n useSelectionControl as useControl\n} from '../../../composables/selectionControl/useSelectionControl';\nimport { ColorVariant } from '../../../types/ColorVariants';\nimport { defineComponent, shallowRef, Slots, h } from 'vue';\n\nfunction generateCheck(variant: ColorVariant) {\n return h('span', { class: [variant, 'check'] });\n}\n\nfunction generateInput(selectionControl: SelectionControl) {\n return h('input', {\n onChange: selectionControl.onChange,\n onBlur: selectionControl.onBlur,\n onFocus: selectionControl.onFocus,\n ...selectionControl.attrs.value\n });\n}\n\nfunction generateLabelText(selectionControl: SelectionControl, slots: Slots) {\n return h(\n 'span',\n {\n class: 'control-label'\n },\n slots.default && slots.default()\n );\n}\n\nexport function useSelectionControl(role: string, type: string, name: string, staticClass: string) {\n return <T>() =>\n defineComponent({\n name,\n props: getUseSelectablePropsDefinition<T>(),\n setup(props, { slots }) {\n const label = shallowRef((null as unknown) as HTMLElement);\n const selection = useControl(props as UseSelectableProps<T>, label, role, type);\n return () => {\n return h(\n 'label',\n {\n class: [staticClass, props.size, { 'is-disabled': selection.isDisabled.value }],\n ref: label,\n id: selection.label.labelId.value,\n for: selection.label.id.value,\n disabled: selection.isDisabled.value || null,\n tabindex: selection.isDisabled.value ? -1 : 0,\n onKeydown: selection.onKeydown,\n onBlur: selection.onBlur,\n onClick: selection.onClick\n },\n [generateInput(selection), generateCheck(props.variant), generateLabelText(selection, slots)]\n );\n };\n }\n });\n}\n"],"sourceRoot":"","file":"useSelectionControl.js"}