@arche-mc2/vue-ui-lib 1.0.5 → 1.0.7

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.
Files changed (50) hide show
  1. package/dist/types/components/ButtonBase.vue.d.ts +23 -0
  2. package/dist/types/components/CheckboxBase.vue.d.ts +29 -0
  3. package/dist/types/components/DataGrid.vue.d.ts +30 -0
  4. package/dist/types/components/FlyoutMenu.vue.d.ts +20 -0
  5. package/dist/types/components/InputBase.vue.d.ts +21 -0
  6. package/dist/types/components/ListWithSearch.vue.d.ts +24 -0
  7. package/dist/types/components/ModalBase.vue.d.ts +16 -0
  8. package/dist/types/components/OptionalWrapperComponent.vue.d.ts +19 -0
  9. package/dist/types/components/RadioBase.vue.d.ts +21 -0
  10. package/dist/types/components/SegmentedButton.vue.d.ts +41 -0
  11. package/dist/types/components/SelectBase.vue.d.ts +19 -0
  12. package/dist/types/components/TagBase.vue.d.ts +6 -0
  13. package/dist/types/components/ToastBase.vue.d.ts +2 -0
  14. package/dist/types/components/ToggleAdvanced.vue.d.ts +25 -0
  15. package/dist/types/components/ToggleBase.vue.d.ts +23 -0
  16. package/dist/types/components/TooltipBase.vue.d.ts +21 -0
  17. package/dist/types/components/datePicker/DatePicker.vue.d.ts +12 -0
  18. package/dist/types/components/datePicker/DatePickerCalendar.vue.d.ts +18 -0
  19. package/dist/types/components/datePicker/DatePickerNavigation.vue.d.ts +13 -0
  20. package/dist/types/components/loaderBase/LoaderBase.vue.d.ts +7 -0
  21. package/dist/types/components/selectionBase/SelectionGroup.vue.d.ts +19 -0
  22. package/dist/types/components/selectionBase/SelectionItem.vue.d.ts +29 -0
  23. package/dist/types/components/svgIcon/SvgIcon.vue.d.ts +16 -0
  24. package/dist/types/components/svgIcon/iconNames.d.ts +2 -0
  25. package/dist/types/constantes.d.ts +2 -0
  26. package/dist/types/index.d.ts +39 -0
  27. package/dist/types/stories/buttonBase.stories.d.ts +11 -0
  28. package/dist/types/stories/checkboxBase.stories.d.ts +9 -0
  29. package/dist/types/stories/dataGrid.stories.d.ts +9 -0
  30. package/dist/types/stories/datePicker.stories.d.ts +6 -0
  31. package/dist/types/stories/flyoutMenu.stories.d.ts +6 -0
  32. package/dist/types/stories/inputBase.stories.d.ts +12 -0
  33. package/dist/types/stories/listWithSearch.stories.d.ts +9 -0
  34. package/dist/types/stories/loaderBase.stories.d.ts +7 -0
  35. package/dist/types/stories/modalBase.stories.d.ts +5 -0
  36. package/dist/types/stories/radioBase.stories.d.ts +10 -0
  37. package/dist/types/stories/segmentedButton.stories.d.ts +8 -0
  38. package/dist/types/stories/selectBase.stories.d.ts +9 -0
  39. package/dist/types/stories/selectionGroup.stories.d.ts +7 -0
  40. package/dist/types/stories/svgIcon.stories.d.ts +7 -0
  41. package/dist/types/stories/tagBase.stories.d.ts +9 -0
  42. package/dist/types/stories/toastBase.stories.d.ts +6 -0
  43. package/dist/types/stories/toggleAdvanced.stories.d.ts +8 -0
  44. package/dist/types/stories/toggleBase.stories.d.ts +8 -0
  45. package/dist/types/stories/tooltipBase.stories.d.ts +104 -0
  46. package/dist/types/types.d.ts +46 -0
  47. package/dist/types/utils/date.d.ts +91 -0
  48. package/dist/types/utils/provideToast.d.ts +7 -0
  49. package/dist/types/utils/string.d.ts +2 -0
  50. package/package.json +3 -3
@@ -0,0 +1,23 @@
1
+ import type { IconName } from "./svgIcon/iconNames";
2
+ import { ButtonTypes } from "@/types";
3
+ export interface ButtonBaseProps {
4
+ type?: ButtonTypes;
5
+ iconName?: IconName;
6
+ loading?: boolean;
7
+ disabled?: boolean;
8
+ active?: boolean;
9
+ }
10
+ declare var __VLS_5: {};
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_5) => any;
13
+ };
14
+ declare const __VLS_component: import("vue").DefineComponent<ButtonBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonBaseProps> & Readonly<{}>, {
15
+ type: ButtonTypes;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,29 @@
1
+ import type { CSSProperties } from "vue";
2
+ import type { IconName } from "./svgIcon/iconNames";
3
+ interface BaseCheckboxTheme extends CSSProperties {
4
+ "--amc2-checkbox-color"?: CSSProperties["color"];
5
+ "--amc2-checkbox-disabled-color"?: CSSProperties["color"];
6
+ "--amc2-checkmark-color"?: CSSProperties["color"];
7
+ }
8
+ export interface BaseCheckboxProps {
9
+ label?: string;
10
+ icon?: IconName;
11
+ iconStyle?: {
12
+ height?: string;
13
+ width?: string;
14
+ };
15
+ theme?: BaseCheckboxTheme;
16
+ indeterminate?: boolean;
17
+ disabled?: boolean;
18
+ className?: string;
19
+ }
20
+ type __VLS_Props = BaseCheckboxProps;
21
+ type __VLS_PublicProps = __VLS_Props & {
22
+ modelValue?: boolean;
23
+ };
24
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:modelValue": (value: boolean) => any;
26
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import type { DatagridHeader } from "../types";
2
+ export interface DataGridProps {
3
+ headers: DatagridHeader[];
4
+ items: any[];
5
+ selection?: boolean;
6
+ hasMore: boolean;
7
+ allCheckState?: {
8
+ isChecked: boolean;
9
+ partially: boolean;
10
+ };
11
+ modalFilter?: (header: any) => void;
12
+ }
13
+ declare const _default: import("vue").DefineComponent<DataGridProps, {
14
+ resetScroll: () => void | undefined;
15
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ loadMore: () => any;
17
+ updateCheckItem: (id: number, isChecked: boolean) => any;
18
+ updateCheckAll: (isChecked: boolean) => any;
19
+ }, string, import("vue").PublicProps, Readonly<DataGridProps> & Readonly<{
20
+ onLoadMore?: (() => any) | undefined;
21
+ onUpdateCheckItem?: ((id: number, isChecked: boolean) => any) | undefined;
22
+ onUpdateCheckAll?: ((isChecked: boolean) => any) | undefined;
23
+ }>, {
24
+ selection: boolean;
25
+ allCheckState: {
26
+ isChecked: boolean;
27
+ partially: boolean;
28
+ };
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import type { FlyoutMenuItem, Position } from "../types";
2
+ export interface FlyoutMenuProps {
3
+ items?: FlyoutMenuItem[];
4
+ displayEl?: HTMLElement | null;
5
+ position?: Position;
6
+ }
7
+ declare var __VLS_1: {}, __VLS_3: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_1) => any;
10
+ } & {
11
+ content?: (props: typeof __VLS_3) => any;
12
+ };
13
+ declare const __VLS_component: import("vue").DefineComponent<FlyoutMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FlyoutMenuProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,21 @@
1
+ import type { IconName } from "./svgIcon/iconNames";
2
+ type TypeInput = "text" | "number" | "time" | "search" | "email" | "password" | "tel" | "url" | "date";
3
+ type TypeValue = string | number;
4
+ export interface InputBaseProps {
5
+ label?: string;
6
+ modelValue?: TypeValue;
7
+ type?: TypeInput;
8
+ iconName?: IconName;
9
+ clearable?: boolean;
10
+ passwordControl?: boolean;
11
+ disabled?: boolean;
12
+ error?: boolean;
13
+ required?: boolean;
14
+ placeholder?: string;
15
+ }
16
+ declare const _default: import("vue").DefineComponent<InputBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
+ "update:modelValue": (value: TypeValue) => any;
18
+ }, string, import("vue").PublicProps, Readonly<InputBaseProps> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: TypeValue) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import type { Option } from "../types";
2
+ export interface ListWithSearchProps {
3
+ stickyHeader?: boolean;
4
+ searchable?: boolean;
5
+ itemSize?: string;
6
+ searchPlaceholder?: string;
7
+ emptyMessage?: string;
8
+ labelSelectAll?: string;
9
+ modelValue: Option[];
10
+ options: Option[];
11
+ disabled?: boolean;
12
+ multiple?: boolean;
13
+ }
14
+ declare const _default: import("vue").DefineComponent<ListWithSearchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ "update:modelValue": (...args: any[]) => void;
16
+ }, string, import("vue").PublicProps, Readonly<ListWithSearchProps> & Readonly<{
17
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
18
+ }>, {
19
+ stickyHeader: boolean;
20
+ searchPlaceholder: string;
21
+ emptyMessage: string;
22
+ labelSelectAll: string;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ export default _default;
@@ -0,0 +1,16 @@
1
+ export interface ModalBaseProps {
2
+ visible: boolean;
3
+ title: string;
4
+ }
5
+ declare var __VLS_8: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_8) => any;
8
+ };
9
+ declare const __VLS_component: import("vue").DefineComponent<ModalBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ModalBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,19 @@
1
+ import type { Component } from "vue";
2
+ type __VLS_Props = {
3
+ is?: Component | string | null;
4
+ wrap?: boolean;
5
+ };
6
+ declare var __VLS_7: {}, __VLS_9: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_7) => any;
9
+ } & {
10
+ default?: (props: typeof __VLS_9) => any;
11
+ };
12
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,21 @@
1
+ interface RadioTheme {
2
+ "--amc2-radio-color"?: string;
3
+ "--amc2-radio-disabled-color"?: string;
4
+ "--amc2-radio-point-color"?: string;
5
+ "--amc2-radio-point-disabled-color"?: string;
6
+ }
7
+ export interface RadioBaseProps {
8
+ label?: string;
9
+ icon?: string;
10
+ theme?: RadioTheme;
11
+ disabled?: boolean;
12
+ modelValue?: any;
13
+ value: any;
14
+ className?: string;
15
+ }
16
+ declare const _default: import("vue").DefineComponent<RadioBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ "update:modelValue": (...args: any[]) => void;
18
+ }, string, import("vue").PublicProps, Readonly<RadioBaseProps> & Readonly<{
19
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ export default _default;
@@ -0,0 +1,41 @@
1
+ import type { CSSProperties } from "vue";
2
+ import type { IconName } from "./svgIcon/iconNames";
3
+ type SegmentedButtonState = "left" | "center" | "right";
4
+ interface SegmentedButtonTheme {
5
+ "amc2-segmented-button-on-color"?: CSSProperties["color"];
6
+ "amc2-segmented-button-on-hover-color"?: CSSProperties["color"];
7
+ "amc2-segmented-button-off-color"?: CSSProperties["color"];
8
+ "amc2-segmented-button-off-hover-color"?: CSSProperties["color"];
9
+ "amc2-segmented-button-on-disabled-color"?: CSSProperties["color"];
10
+ "amc2-segmented-button-off-disabled-color"?: CSSProperties["color"];
11
+ }
12
+ export interface SegmentedButtonProps {
13
+ iconLeft?: IconName;
14
+ labelLeft?: string;
15
+ toolTipLabelLeft?: string;
16
+ iconCenter?: IconName;
17
+ labelCenter?: string;
18
+ toolTipLabelCenter?: string;
19
+ iconRight?: IconName;
20
+ labelRight?: string;
21
+ toolTipLabelRight?: string;
22
+ disabled?: boolean;
23
+ modelValue?: SegmentedButtonState;
24
+ theme?: SegmentedButtonTheme;
25
+ }
26
+ declare const _default: import("vue").DefineComponent<SegmentedButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
27
+ "update:modelValue": (value: SegmentedButtonState) => any;
28
+ }, string, import("vue").PublicProps, Readonly<SegmentedButtonProps> & Readonly<{
29
+ "onUpdate:modelValue"?: ((value: SegmentedButtonState) => any) | undefined;
30
+ }>, {
31
+ modelValue: SegmentedButtonState;
32
+ iconLeft: IconName;
33
+ labelLeft: string;
34
+ toolTipLabelLeft: string;
35
+ labelCenter: string;
36
+ toolTipLabelCenter: string;
37
+ iconRight: IconName;
38
+ labelRight: string;
39
+ toolTipLabelRight: string;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import type { Option } from "../types";
2
+ export interface SelectBaseProps {
3
+ options: Option[];
4
+ multiple?: boolean;
5
+ searchable?: boolean;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ clearable?: boolean;
9
+ modelValue: Option[];
10
+ label?: string;
11
+ }
12
+ declare const _default: import("vue").DefineComponent<SelectBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ "update:modelValue": (...args: any[]) => void;
14
+ }, string, import("vue").PublicProps, Readonly<SelectBaseProps> & Readonly<{
15
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
16
+ }>, {
17
+ clearable: boolean;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export interface TagBaseProps {
2
+ label: string;
3
+ backgroundColor: "blue" | "green" | "primary" | "secondary";
4
+ }
5
+ declare const _default: import("vue").DefineComponent<TagBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TagBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,25 @@
1
+ interface ToggleTheme {
2
+ "--amc2-toggle-on-color"?: string;
3
+ "--amc2-toggle-off-color"?: string;
4
+ "--amc2-toggle-on-disabled-color"?: string;
5
+ "--amc2-toggle-off-disabled-color"?: string;
6
+ "--amc2-slider-on-color"?: string;
7
+ "--amc2-slider-off-color"?: string;
8
+ "--amc2-slider-on-hover-color"?: string;
9
+ "--amc2-slider-off-hover-color"?: string;
10
+ }
11
+ export interface ToggleAdvancedProps {
12
+ labelLeft?: string;
13
+ iconLeft?: string;
14
+ labelRight?: string;
15
+ iconRight?: string;
16
+ disabled?: boolean;
17
+ modelValue?: boolean;
18
+ theme?: ToggleTheme;
19
+ }
20
+ declare const _default: import("vue").DefineComponent<ToggleAdvancedProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (...args: any[]) => void;
22
+ }, string, import("vue").PublicProps, Readonly<ToggleAdvancedProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ export default _default;
@@ -0,0 +1,23 @@
1
+ interface ToggleTheme {
2
+ "amc2-toggle-on-color"?: string;
3
+ "amc2-toggle-off-color"?: string;
4
+ "amc2-toggle-on-disabled-color"?: string;
5
+ "amc2-toggle-off-disabled-color"?: string;
6
+ "amc2-slider-on-color"?: string;
7
+ "amc2-slider-off-color"?: string;
8
+ "amc2-slider-on-disabled-color"?: string;
9
+ "amc2-slider-off-disabled-color"?: string;
10
+ }
11
+ export interface ToggleBaseProps {
12
+ label?: string;
13
+ icon?: string;
14
+ theme?: ToggleTheme;
15
+ disabled?: boolean;
16
+ modelValue?: boolean;
17
+ }
18
+ declare const _default: import("vue").DefineComponent<ToggleBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
19
+ "update:modelValue": (value: boolean) => any;
20
+ }, string, import("vue").PublicProps, Readonly<ToggleBaseProps> & Readonly<{
21
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
22
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import type { Position } from "../types";
2
+ export interface TooltipBaseProps {
3
+ position?: Position;
4
+ className?: string;
5
+ }
6
+ declare var __VLS_1: {}, __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ } & {
10
+ content?: (props: typeof __VLS_8) => any;
11
+ };
12
+ declare const __VLS_component: import("vue").DefineComponent<TooltipBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipBaseProps> & Readonly<{}>, {
13
+ position: Position;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,12 @@
1
+ export interface DatePickerProps {
2
+ modelValue?: Date;
3
+ min?: Date;
4
+ max?: Date;
5
+ onDateChange?: (date: Date) => void;
6
+ }
7
+ declare const _default: import("vue").DefineComponent<DatePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ "update:modelValue": (selectedDate: Date) => any;
9
+ }, string, import("vue").PublicProps, Readonly<DatePickerProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((selectedDate: Date) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { NavType } from "../../types";
2
+ interface DatePickerCalendarProps {
3
+ selectedDate: Date | undefined;
4
+ navigationDate: Date;
5
+ navType: NavType;
6
+ min?: Date;
7
+ max?: Date;
8
+ }
9
+ declare const _default: import("vue").DefineComponent<DatePickerCalendarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ updateNavDate: (newDate: Date) => any;
11
+ updateNavType: (newNavType: NavType) => any;
12
+ updateSelectedDate: (newDate: Date) => any;
13
+ }, string, import("vue").PublicProps, Readonly<DatePickerCalendarProps> & Readonly<{
14
+ onUpdateNavDate?: ((newDate: Date) => any) | undefined;
15
+ onUpdateNavType?: ((newNavType: NavType) => any) | undefined;
16
+ onUpdateSelectedDate?: ((newDate: Date) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { NavType } from "../../types";
2
+ interface DatePickerNavigationProps {
3
+ navigationDate: Date;
4
+ navType: NavType;
5
+ }
6
+ declare const _default: import("vue").DefineComponent<DatePickerNavigationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ updateNavDate: (newDate: Date) => any;
8
+ updateNavType: (newNavType: NavType) => any;
9
+ }, string, import("vue").PublicProps, Readonly<DatePickerNavigationProps> & Readonly<{
10
+ onUpdateNavDate?: ((newDate: Date) => any) | undefined;
11
+ onUpdateNavType?: ((newNavType: NavType) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export interface LoaderBaseProps {
2
+ size?: number;
3
+ }
4
+ declare const _default: import("vue").DefineComponent<LoaderBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LoaderBaseProps> & Readonly<{}>, {
5
+ size: number;
6
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,19 @@
1
+ interface SelectItem {
2
+ value: any;
3
+ label: string;
4
+ }
5
+ export interface SelectionGroupProps {
6
+ placeholder?: string;
7
+ clearable?: boolean;
8
+ disabled?: boolean;
9
+ tooltipStyle?: Record<string, any>;
10
+ modelValue: SelectItem[];
11
+ }
12
+ declare const _default: import("vue").DefineComponent<SelectionGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
+ "update:modelValue": (value: SelectItem[]) => any;
14
+ clearAll: () => any;
15
+ }, string, import("vue").PublicProps, Readonly<SelectionGroupProps> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: SelectItem[]) => any) | undefined;
17
+ onClearAll?: (() => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ export default _default;
@@ -0,0 +1,29 @@
1
+ interface SelectItem {
2
+ value: any;
3
+ label: string;
4
+ }
5
+ type __VLS_Props = {
6
+ disabled?: boolean;
7
+ clearable?: boolean;
8
+ modelValue: SelectItem | null;
9
+ };
10
+ declare var __VLS_1: {};
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_1) => any;
13
+ };
14
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
+ clear: () => any;
16
+ "update:modelValue": (value: SelectItem | null) => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onClear?: (() => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: SelectItem | null) => any) | undefined;
20
+ }>, {
21
+ clearable: boolean;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,16 @@
1
+ import type { IconName } from "./iconNames";
2
+ export interface SvgIconProps {
3
+ iconName: IconName;
4
+ color?: string;
5
+ hover?: string;
6
+ height?: string;
7
+ width?: string;
8
+ accessibilityTitle?: string;
9
+ classIcon?: string;
10
+ }
11
+ declare const _default: import("vue").DefineComponent<SvgIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SvgIconProps> & Readonly<{}>, {
12
+ color: string;
13
+ height: string;
14
+ width: string;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export declare type IconName = (typeof iconNames)[number];
2
+ export declare const iconNames: readonly ["NFC-Phone", "NFC-card", "accounting", "activity", "add-comment", "address-book", "administration", "airplay", "alert-circle", "alert-octagon", "alert-triangle", "align-center", "align-justify", "align-left", "align-right", "almond", "ambulance", "anchor", "aperture", "arche-1", "arche-2", "arche-3", "armchair", "arrow-down-1-9", "arrow-down-9-1", "arrow-down-left", "arrow-down-right", "arrow-down-a-z", "arrow-down-z-a", "arrow-down", "arrow-go", "arrow-left", "arrow-right", "arrow-up-9-1", "arrow-up-a-z", "arrow-up-left", "arrow-up-right", "arrow-up", "assistance", "at-sign", "attach", "award", "bacteria", "bar-chart-2", "bar-chart", "bar-code", "battery-charging", "battery", "bed", "bell-off", "bell-ring", "bell", "bike", "birthday", "bluetooth-off", "bluetooth", "book-open", "book", "bookmark", "box-archive", "box", "briefcase", "broom", "budget-grid", "budget-grid2", "budget-grid3", "budget-grid4", "budget-grid5", "budget", "bug", "bulb-broken", "bulb", "burger", "bus", "calc", "calendar-alert", "calendar-check", "calendar-download", "calendar-import", "calendar-parameters", "calendar-plus", "calendar-warning", "calendar", "camera-off", "camera", "car-2", "car", "cardboard", "cars", "cast", "cellular-network-2", "cellular-network-3", "cellular-network-4", "cellular-network-head", "cellular-network-top", "certificat", "chart", "check-circle", "check-square", "check", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevrons-down", "chevrons-left", "chevrons-right", "chevrons-up", "chrome", "circle-full", "circle-half", "circle-quarter", "circle-three-quarters", "circle", "circles", "clipboard-check", "clipboard-error", "clipboard-full", "clipboard-off", "clipboard-plus", "clipboard-warning", "clipboard", "clock", "close", "cloud-drizzle", "cloud-lightning", "cloud-off", "cloud-rain", "cloud-snow", "cloud", "column", "combined-shape", "command", "company", "company2", "compass", "computer", "copy", "copy2", "copyright", "corner-down-left", "corner-down-right", "corner-left-down", "corner-left-up", "corner-right-down", "corner-right-up", "corner-up-left-double-check", "corner-up-left-double-error", "corner-up-left-double-warning", "corner-up-left", "corner-up-right-check", "corner-up-right-error", "corner-up-right-warning", "corner-up-right", "cpu", "crab", "credit-card", "cross-hair", "customer-card", "cut", "delete", "desk", "disc", "dog-2", "dog", "dome", "door-open", "door", "dot", "download-cloud", "download", "droplet", "drugs", "edit-2", "edit-3", "edit", "education", "egg", "euro", "export-image", "extern-al-link", "eye-off", "eye", "facebook", "fall", "fast-forward", "faucet", "fax", "feather", "female", "file-close", "file-doc", "file-export", "file-import", "file-jpg", "file-minus", "file-off", "file-pdf", "file-plus", "file-png", "file-text", "file-txt", "file-warning", "file-xls", "file-xxx", "file", "files", "film", "filter-off", "filter", "fire", "flag", "folder-error", "folder-open-error", "folder-open-warning", "folder-open", "folder-warning", "folder", "folders", "for-me", "for-you", "forbidden", "fridge", "furniture", "github", "globe", "grant", "grid-3", "grid-empty", "grid-header", "grid-import", "grid", "haha", "hands", "hash", "head-set", "headphones", "health-kit", "health", "heart-2", "heart", "hide-grid-header", "history", "holiday", "home", "hourglass", "human", "iban-rib", "image", "inbox", "info", "injection", "instagram", "invoice", "itinerary", "journey", "key-2", "key-3", "key", "keychain-off", "keychain", "km", "law", "layers", "layout", "letter-a-plus", "letter-a", "letter-c", "letter-d", "letter-m", "letter-o", "letter-sigma", "letter-sigma2", "letter-t", "life-buoy", "line", "link-2", "link", "loader", "loan", "lock", "log-in", "log-out", "macro", "mail-check", "mail-copy", "mail-open", "mail", "male", "mandatary", "map-2", "map-pin-off", "map-pin", "map", "max", "maximize-2", "maximize", "menu", "message-circle", "message-square-off", "message-square", "mic-off", "mic", "min", "minimize-2", "minimize", "minus-circle", "minus-square", "minus", "mms", "mobile-call", "monitor", "moon", "more-horizontal", "more-vertical", "move", "music", "navigation-2", "navigation", "network", "newmenu", "newspaper", "nfc-hand", "no_data", "number-1", "number-10", "number-2", "number-3", "number-4", "number-5", "number-6", "number-7", "number-8", "number-9", "nurse", "octagon", "package", "palette", "paste", "pause-circle", "pause", "pear", "percent", "phone-call", "phone-forwarded", "phone-hangs-up", "phone-incoming", "phone-keyboard", "phone-missed-2", "phone-missed", "phone-off", "phone-outgoing", "phone", "pie-chart-2", "pie-chart", "piggy-bank", "pin", "play-circle", "play", "plus-circle", "plus-square", "plus", "pocket", "pointer", "power", "prestataire", "preview", "printer-selection", "printer", "processing", "qr-code", "question-circle", "question", "questions", "quote-close", "quote-open", "quote", "radio-off", "radio", "rank", "refresh-ccw", "refresh-cw", "repeat", "reset", "restaurant", "restore-size", "rewind", "road-sign", "rotate-ccw", "rotate-cw", "save", "scan", "scissors", "search", "select-line", "send", "server", "settings-check", "settings-ok", "settings", "share-2", "share", "share1", "shield-2", "shield", "shopbag1", "shopbag2", "shower", "shuffle", "sidebar", "sign-add", "sign-remove", "sign", "sim-card", "sink", "skip-back", "skip-forward", "slack", "slash", "smartphone", "smile", "speaker", "square", "ssiad", "star-full", "star-half", "star", "stethoscope-plus", "stethoscope", "stop-circle", "storage-2", "storage", "stroller", "sugar", "sun", "sunrise", "sunset", "surprise", "swim", "tablet-2", "tablet-synchro", "tablet", "tag", "target", "task-2", "task", "thermometer", "thumbs-down", "thumbs-up", "time-constraint", "timestamp", "toggle-left", "toggle-right", "tools", "torch-on", "torch", "traceability-off", "traceability-on", "transfert", "transmission", "trash-2", "trash", "trending-down", "trending-up", "triangle", "truck", "tune", "twitter", "type", "umbrella", "uniEAAB", "uniEAAC", "uniEAAD", "uniEAAE", "uniEAAF", "uniEAB0", "uniEAB1", "uniEAB2", "uniEAB3", "uniEAB4", "unlink", "unlock", "up-down", "update-cell", "update-month", "update-type", "update-year", "update", "upload-cloud", "upload", "user-admin", "user-alert", "user-check", "user-lock", "user-minus", "user-plus", "user-tie", "user-x", "user", "users-alert", "users-plus", "users", "vacuum", "video-off", "video", "voicemail", "volume-1", "volume-2", "volume-x", "volume", "voucher-2", "voucher", "walk", "wallet", "watch", "wifi-1", "wifi-2", "wifi-3", "wifi-off", "wifi", "wifi1", "wind", "workgroup", "x-circle", "x-square", "x", "youtube", "zap", "zoom-in", "zoom-out"];
@@ -0,0 +1,2 @@
1
+ export declare const PRIMARY_COLOR = "#2c2274";
2
+ export declare const DISABLED_COLOR = "#9590b9";
@@ -0,0 +1,39 @@
1
+ export { default as ButtonBase } from "./components/ButtonBase.vue";
2
+ export type { ButtonBaseProps } from "./components/ButtonBase.vue";
3
+ export { default as CheckboxBase } from "./components/CheckboxBase.vue";
4
+ export type { BaseCheckboxProps } from "./components/CheckboxBase.vue";
5
+ export { default as DataGrid } from "./components/DataGrid.vue";
6
+ export type { DataGridProps } from "./components/DataGrid.vue";
7
+ export { default as FlyoutMenu } from "./components/FlyoutMenu.vue";
8
+ export type { FlyoutMenuProps } from "./components/FlyoutMenu.vue";
9
+ export { default as InputBase } from "./components/InputBase.vue";
10
+ export type { InputBaseProps } from "./components/InputBase.vue";
11
+ export { default as ListWithSearch } from "./components/ListWithSearch.vue";
12
+ export type { ListWithSearchProps } from "./components/ListWithSearch.vue";
13
+ export { default as ModalBase } from "./components/ModalBase.vue";
14
+ export type { ModalBaseProps } from "./components/ModalBase.vue";
15
+ export { default as RadioBase } from "./components/RadioBase.vue";
16
+ export type { RadioBaseProps } from "./components/RadioBase.vue";
17
+ export { default as SegmentedButton } from "./components/SegmentedButton.vue";
18
+ export type { SegmentedButtonProps } from "./components/SegmentedButton.vue";
19
+ export { default as SelectBase } from "./components/SelectBase.vue";
20
+ export type { SelectBaseProps } from "./components/SelectBase.vue";
21
+ export { default as TagBase } from "./components/TagBase.vue";
22
+ export type { TagBaseProps } from "./components/TagBase.vue";
23
+ export { default as ToggleAdvanced } from "./components/ToggleAdvanced.vue";
24
+ export type { ToggleAdvancedProps } from "./components/ToggleAdvanced.vue";
25
+ export { default as ToggleBase } from "./components/ToggleBase.vue";
26
+ export type { ToggleBaseProps } from "./components/ToggleBase.vue";
27
+ export { default as TooltipBase } from "./components/TooltipBase.vue";
28
+ export type { TooltipBaseProps } from "./components/TooltipBase.vue";
29
+ export { default as DatePicker } from "./components/datePicker/DatePicker.vue";
30
+ export type { DatePickerProps } from "./components/datePicker/DatePicker.vue";
31
+ export { default as LoaderBase } from "./components/loaderBase/LoaderBase.vue";
32
+ export type { LoaderBaseProps } from "./components/loaderBase/LoaderBase.vue";
33
+ export { default as SelectionGroup } from "./components/selectionBase/SelectionGroup.vue";
34
+ export type { SelectionGroupProps } from "./components/selectionBase/SelectionGroup.vue";
35
+ export { default as SvgIcon } from "./components/svgIcon/SvgIcon.vue";
36
+ export type { SvgIconProps } from "./components/svgIcon/SvgIcon.vue";
37
+ export type { IconName } from "./components/svgIcon/iconNames";
38
+ export { default as ToastBase } from "./components/ToastBase.vue";
39
+ export { provideToast, useToast } from "./utils/provideToast";
@@ -0,0 +1,11 @@
1
+ import ButtonBase from "../components/ButtonBase.vue";
2
+ import type { Meta, StoryFn } from "@storybook/vue3";
3
+ declare const meta: Meta<typeof ButtonBase>;
4
+ export default meta;
5
+ export declare const Primaire: StoryFn;
6
+ export declare const Secondaire: StoryFn;
7
+ export declare const AvecIcône: StoryFn;
8
+ export declare const Chargement: StoryFn;
9
+ export declare const Désactivé: StoryFn;
10
+ export declare const Actif: StoryFn;
11
+ export declare const Tous: StoryFn;
@@ -0,0 +1,9 @@
1
+ import CheckboxBase from "../components/CheckboxBase.vue";
2
+ import type { Meta, StoryFn } from "@storybook/vue3";
3
+ declare const _default: Meta<typeof CheckboxBase>;
4
+ export default _default;
5
+ export declare const Défaut: StoryFn;
6
+ export declare const Indeterminé: StoryFn;
7
+ export declare const Désactivé: StoryFn;
8
+ export declare const AvecIcône: StoryFn;
9
+ export declare const ThemePersonnalisé: StoryFn;
@@ -0,0 +1,9 @@
1
+ import DataGrid from "../components/DataGrid.vue";
2
+ import type { Meta, StoryFn } from "@storybook/vue3";
3
+ declare const _default: Meta<typeof DataGrid>;
4
+ export default _default;
5
+ declare const Template: StoryFn<typeof DataGrid>;
6
+ export declare const Défaut: typeof Template;
7
+ export declare const SansSelection: typeof Template;
8
+ export declare const AvecScroll: typeof Template;
9
+ export declare const AvecFiltres: typeof Template;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryFn } from "@storybook/vue3";
2
+ import DatePicker from "../components/datePicker/DatePicker.vue";
3
+ declare const meta: Meta<typeof DatePicker>;
4
+ export default meta;
5
+ export declare const Simple: StoryFn;
6
+ export declare const AvecLimites: StoryFn;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryFn } from "@storybook/vue3";
2
+ import FlyoutMenu from "../components/FlyoutMenu.vue";
3
+ declare const _default: Meta<typeof FlyoutMenu>;
4
+ export default _default;
5
+ export declare const Défaut: StoryFn;
6
+ export declare const AvecSlot: StoryFn;
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryFn } from "@storybook/vue3";
2
+ import Input from "../components/InputBase.vue";
3
+ declare const meta: Meta<typeof Input>;
4
+ export default meta;
5
+ export declare const Texte: StoryFn;
6
+ export declare const MotDePasse: StoryFn;
7
+ export declare const AvecIcône: StoryFn;
8
+ export declare const Désactivé: StoryFn;
9
+ export declare const AvecErreur: StoryFn;
10
+ export declare const Requis: StoryFn;
11
+ export declare const ChampDate: StoryFn;
12
+ export declare const AvecEffacement: StoryFn;
@@ -0,0 +1,9 @@
1
+ import ListWithSearch from "../components/ListWithSearch.vue";
2
+ import type { Meta, StoryFn } from "@storybook/vue3";
3
+ declare const _default: Meta<typeof ListWithSearch>;
4
+ export default _default;
5
+ declare const Template: StoryFn<typeof ListWithSearch>;
6
+ export declare const Défaut: typeof Template;
7
+ export declare const AvecValeursSelectionnées: typeof Template;
8
+ export declare const SelectionUnique: typeof Template;
9
+ export declare const ListeVide: typeof Template;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryFn } from "@storybook/vue3";
2
+ import LoaderBase from "../components/loaderBase/LoaderBase.vue";
3
+ declare const meta: Meta<typeof LoaderBase>;
4
+ export default meta;
5
+ export declare const Défaut: StoryFn;
6
+ export declare const Petit: StoryFn;
7
+ export declare const Large: StoryFn;
@@ -0,0 +1,5 @@
1
+ import type { Meta, StoryFn } from "@storybook/vue3";
2
+ import ModalBase from "../components/ModalBase.vue";
3
+ declare const meta: Meta<typeof ModalBase>;
4
+ export default meta;
5
+ export declare const Modale: StoryFn;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryFn } from "@storybook/vue3";
2
+ import RadioBase from "../components/RadioBase.vue";
3
+ declare const _default: Meta<typeof RadioBase>;
4
+ export default _default;
5
+ declare const Template: StoryFn<typeof RadioBase>;
6
+ export declare const Défaut: typeof Template;
7
+ export declare const DeuxChoix: typeof Template;
8
+ export declare const AvecIcône: typeof Template;
9
+ export declare const Désactivé: typeof Template;
10
+ export declare const ThemePersonnalisé: typeof Template;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryFn } from "@storybook/vue3";
2
+ import SegmentedButton from "../components/SegmentedButton.vue";
3
+ declare const _default: Meta<typeof SegmentedButton>;
4
+ export default _default;
5
+ declare const Template: StoryFn<typeof SegmentedButton>;
6
+ export declare const Défaut: typeof Template;
7
+ export declare const Désactivé: typeof Template;
8
+ export declare const ThemePersonnalisé: typeof Template;
@@ -0,0 +1,9 @@
1
+ import SelectBase from "../components/SelectBase.vue";
2
+ import type { Meta, StoryFn } from "@storybook/vue3";
3
+ declare const _default: Meta<typeof SelectBase>;
4
+ export default _default;
5
+ declare const Template: StoryFn<typeof SelectBase>;
6
+ export declare const Défaut: typeof Template;
7
+ export declare const AvecPréselection: typeof Template;
8
+ export declare const MultiSelection: typeof Template;
9
+ export declare const Désactivé: typeof Template;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryFn } from "@storybook/vue3";
2
+ import SelectionGroup from "../components/selectionBase/SelectionGroup.vue";
3
+ declare const meta: Meta<typeof SelectionGroup>;
4
+ export default meta;
5
+ declare const Template: StoryFn<typeof SelectionGroup>;
6
+ export declare const Défaut: typeof Template;
7
+ export declare const Disabled: typeof Template;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryFn } from "@storybook/vue3";
2
+ import SvgIcon from "../components/svgIcon/SvgIcon.vue";
3
+ declare const meta: Meta<typeof SvgIcon>;
4
+ export default meta;
5
+ declare const Template: StoryFn<typeof SvgIcon>;
6
+ export declare const defaut: typeof Template;
7
+ export declare const all: typeof Template;
@@ -0,0 +1,9 @@
1
+ import BaseTag from "../components/TagBase.vue";
2
+ import type { Meta, StoryFn } from "@storybook/vue3";
3
+ declare const _default: Meta<typeof BaseTag>;
4
+ export default _default;
5
+ declare const Template: StoryFn<typeof BaseTag>;
6
+ export declare const Primaire: typeof Template;
7
+ export declare const Secondaire: typeof Template;
8
+ export declare const Bleu: typeof Template;
9
+ export declare const Vert: typeof Template;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryFn } from "@storybook/vue3";
2
+ import ToastBase from "../components/ToastBase.vue";
3
+ declare const _default: Meta<typeof ToastBase>;
4
+ export default _default;
5
+ declare const Template: StoryFn;
6
+ export declare const Default: typeof Template;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryFn } from "@storybook/vue3";
2
+ import ToggleAdvanced from "../components/ToggleAdvanced.vue";
3
+ declare const _default: Meta<typeof ToggleAdvanced>;
4
+ export default _default;
5
+ export declare const Défaut: StoryFn;
6
+ export declare const AvecIcônes: StoryFn;
7
+ export declare const Désactivé: StoryFn;
8
+ export declare const ThemePersonnalisé: StoryFn;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from "@storybook/vue3";
2
+ import ToggleBase from "../components/ToggleBase.vue";
3
+ declare const meta: Meta<typeof ToggleBase>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ToggleBase>;
6
+ export declare const Défaut: Story;
7
+ export declare const Désactivé: Story;
8
+ export declare const AvecIcône: Story;
@@ -0,0 +1,104 @@
1
+ import TooltipBase from "../components/TooltipBase.vue";
2
+ import type { Meta, StoryFn } from "@storybook/vue3";
3
+ declare const meta: Meta<typeof TooltipBase>;
4
+ export default meta;
5
+ export declare const EnDessous: StoryFn<{
6
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../components/TooltipBase.vue").TooltipBaseProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
7
+ position: import("../types.js").Position;
8
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
9
+ P: {};
10
+ B: {};
11
+ D: {};
12
+ C: {};
13
+ M: {};
14
+ Defaults: {};
15
+ }, Readonly<import("../components/TooltipBase.vue").TooltipBaseProps> & Readonly<{}>, {}, {}, {}, {}, {
16
+ position: import("../types.js").Position;
17
+ }>;
18
+ __isFragment?: never;
19
+ __isTeleport?: never;
20
+ __isSuspense?: never;
21
+ } & import("vue").ComponentOptionsBase<Readonly<import("../components/TooltipBase.vue").TooltipBaseProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
22
+ position: import("../types.js").Position;
23
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
24
+ $slots: {
25
+ default?: (props: {}) => any;
26
+ } & {
27
+ content?: (props: {}) => any;
28
+ };
29
+ })>;
30
+ export declare const AuDessus: StoryFn<{
31
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../components/TooltipBase.vue").TooltipBaseProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
32
+ position: import("../types.js").Position;
33
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
34
+ P: {};
35
+ B: {};
36
+ D: {};
37
+ C: {};
38
+ M: {};
39
+ Defaults: {};
40
+ }, Readonly<import("../components/TooltipBase.vue").TooltipBaseProps> & Readonly<{}>, {}, {}, {}, {}, {
41
+ position: import("../types.js").Position;
42
+ }>;
43
+ __isFragment?: never;
44
+ __isTeleport?: never;
45
+ __isSuspense?: never;
46
+ } & import("vue").ComponentOptionsBase<Readonly<import("../components/TooltipBase.vue").TooltipBaseProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
47
+ position: import("../types.js").Position;
48
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
49
+ $slots: {
50
+ default?: (props: {}) => any;
51
+ } & {
52
+ content?: (props: {}) => any;
53
+ };
54
+ })>;
55
+ export declare const AGauche: StoryFn<{
56
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../components/TooltipBase.vue").TooltipBaseProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
57
+ position: import("../types.js").Position;
58
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
59
+ P: {};
60
+ B: {};
61
+ D: {};
62
+ C: {};
63
+ M: {};
64
+ Defaults: {};
65
+ }, Readonly<import("../components/TooltipBase.vue").TooltipBaseProps> & Readonly<{}>, {}, {}, {}, {}, {
66
+ position: import("../types.js").Position;
67
+ }>;
68
+ __isFragment?: never;
69
+ __isTeleport?: never;
70
+ __isSuspense?: never;
71
+ } & import("vue").ComponentOptionsBase<Readonly<import("../components/TooltipBase.vue").TooltipBaseProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
72
+ position: import("../types.js").Position;
73
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
74
+ $slots: {
75
+ default?: (props: {}) => any;
76
+ } & {
77
+ content?: (props: {}) => any;
78
+ };
79
+ })>;
80
+ export declare const ADroite: StoryFn<{
81
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../components/TooltipBase.vue").TooltipBaseProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
82
+ position: import("../types.js").Position;
83
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
84
+ P: {};
85
+ B: {};
86
+ D: {};
87
+ C: {};
88
+ M: {};
89
+ Defaults: {};
90
+ }, Readonly<import("../components/TooltipBase.vue").TooltipBaseProps> & Readonly<{}>, {}, {}, {}, {}, {
91
+ position: import("../types.js").Position;
92
+ }>;
93
+ __isFragment?: never;
94
+ __isTeleport?: never;
95
+ __isSuspense?: never;
96
+ } & import("vue").ComponentOptionsBase<Readonly<import("../components/TooltipBase.vue").TooltipBaseProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
97
+ position: import("../types.js").Position;
98
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
99
+ $slots: {
100
+ default?: (props: {}) => any;
101
+ } & {
102
+ content?: (props: {}) => any;
103
+ };
104
+ })>;
@@ -0,0 +1,46 @@
1
+ import type { CSSProperties } from "vue";
2
+ export declare enum NavType {
3
+ Day = 0,
4
+ Month = 1,
5
+ Year = 2
6
+ }
7
+ export type DayInfo = {
8
+ number: number;
9
+ month: string;
10
+ day: string;
11
+ isCurrent: boolean;
12
+ };
13
+ export type WeekInfo = DayInfo[];
14
+ export type Position = "top" | "bottom" | "left" | "right" | "bottom-left";
15
+ export type Option = {
16
+ value: string;
17
+ label: string;
18
+ };
19
+ export interface Header {
20
+ key: string;
21
+ label: string;
22
+ style?: CSSProperties;
23
+ sortable?: boolean;
24
+ filtered?: boolean;
25
+ filterQty?: number;
26
+ sortOrder?: "ASC" | "DESC";
27
+ dataType: "string" | "number" | "date";
28
+ }
29
+ export interface DatagridHeader extends Header {
30
+ visibility: {
31
+ isShown: boolean;
32
+ isDisabled: boolean;
33
+ update: (value: boolean) => string[];
34
+ };
35
+ }
36
+ export interface FlyoutMenuItem {
37
+ label: string;
38
+ onClick?: () => void;
39
+ }
40
+ export type ButtonTypes = "primary" | "secondary" | "secondary-pink" | "action1" | "action2" | "action3" | "action4" | "action5" | "action6" | "action7";
41
+ export type Intent = "success" | "warning" | "error" | "info";
42
+ export interface Toast {
43
+ id: number;
44
+ message: string;
45
+ intent: Intent;
46
+ }
@@ -0,0 +1,91 @@
1
+ import "dayjs/locale/fr";
2
+ import type { ManipulateType } from "dayjs";
3
+ import type { WeekInfo } from "../types";
4
+ /**
5
+ * Return true if the date1 is before the date2
6
+ * @param date1 {Date} date1
7
+ * @param date2 {Date} date2
8
+ * @returns {boolean} true if date1 is before date2
9
+ */
10
+ export declare const isBefore: (date1: Date, date2: Date) => boolean;
11
+ /**
12
+ * Return true if the date1 is after the date2
13
+ * @param date1 {Date} date1
14
+ * @param date2 {Date} date2
15
+ * @returns {boolean} true if date1 is after date2
16
+ */
17
+ export declare const isAfter: (date1: Date, date2: Date) => boolean;
18
+ /**
19
+ * Return the difference in days between date1 and date2 from the start of the month
20
+ * @param date1 {Date} date1
21
+ * @param date2 {Date} date2
22
+ * @returns {number} Difference in days
23
+ */
24
+ export declare const differenceInMonths: (date1: Date, date2: Date) => number;
25
+ /**
26
+ * Return the first day of the month
27
+ * @param date {Date} Date object
28
+ * @returns {string} Date object
29
+ */
30
+ export declare const firstDayOfMonth: (date?: Date) => string;
31
+ /**
32
+ * Return the number of days in the month
33
+ * @param date {Date} Date object
34
+ * @returns {number} Number of days
35
+ */
36
+ export declare const daysInMonth: (date?: Date) => number;
37
+ /**
38
+ * Return if the date is full same
39
+ * @param date1 {Date} Date object
40
+ * @param date2 {Date} Date object
41
+ * @returns {boolean} True if the date is full same
42
+ *
43
+ * @example
44
+ * isSameDate(new Date(2020, 0, 1), new Date(2020, 0, 1)) // true
45
+ * isSameDate(new Date(2020, 0, 1), new Date(2020, 0, 2)) // false
46
+ * isSameDate(new Date(2020, 0, 1), new Date(2020, 2, 1)) // false
47
+ */
48
+ export declare const isSameDate: (date1: Date, date2: Date, { noDay, }?: {
49
+ noDay?: boolean;
50
+ }) => boolean;
51
+ /**
52
+ * Return the date with the key (month,...) added
53
+ * @param date {Date} Date object
54
+ * @param key {string} Key to add (month, year, day...) Default: month
55
+ * @param amount {number} Number of month to add
56
+ * @returns {Date} Date object
57
+ */
58
+ export declare const add: ({ date, key, number, }: {
59
+ date?: Date;
60
+ key?: ManipulateType;
61
+ number?: number;
62
+ }) => Date;
63
+ /**
64
+ * Get an array of X dates starting from the first day of the month
65
+ * @param date {Date} Date object
66
+ * @param number {number} Number of dates
67
+ * @param key {ManipulateType|undefined} Number of dates
68
+ * @returns {Date[]} Array of dates
69
+ */
70
+ export declare const getDateInterval: (date: Date, number: number, key?: ManipulateType | undefined) => Date[];
71
+ /**
72
+ * Return the list of day of week
73
+ * @param date {Date} Date object
74
+ * @param options {object} Options
75
+ * @param options.skipWE {boolean} Skip weekends
76
+ * @param options.monthFormat {string} Formatting template for month
77
+ * @param options.dayFormat {string} Formatting template for days
78
+ * @returns {WeekInfo} Array of dates
79
+ */
80
+ export declare const getWeek: (date?: Date, { skipWE, monthFormat, dayFormat }?: {
81
+ skipWE?: boolean | undefined;
82
+ monthFormat?: string | undefined;
83
+ dayFormat?: string | undefined;
84
+ }) => WeekInfo;
85
+ export declare const monthList: string[];
86
+ /**
87
+ * Return the Year
88
+ * @param date {Date} Date object
89
+ * @returns {string} Year YYYY
90
+ */
91
+ export declare const getYear: (date: Date) => string;
@@ -0,0 +1,7 @@
1
+ import { Intent } from "../types";
2
+ declare function show(message: string, intent?: Intent, duration?: number): void;
3
+ export declare function useToast(): {
4
+ show: typeof show;
5
+ };
6
+ export declare function provideToast(app: any): void;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const capitalizeFirstLetter: (str: string) => string;
2
+ export declare const removeAccents: (str: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arche-mc2/vue-ui-lib",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "main": "dist/vue-ui-lib.umd.js",
5
5
  "module": "dist/vue-ui-lib.es.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "scripts": {
11
11
  "dev": "vite",
12
- "build": "vue-tsc -b && vite build",
12
+ "build": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types && vite build",
13
13
  "preview": "vite preview",
14
14
  "storybook": "storybook dev -p 6006",
15
15
  "build-storybook": "storybook build"
@@ -40,6 +40,6 @@
40
40
  "typescript": "~5.8.3",
41
41
  "vite": "^7.0.0",
42
42
  "vitest": "^3.2.4",
43
- "vue-tsc": "^2.2.10"
43
+ "vue-tsc": "^3.0.1"
44
44
  }
45
45
  }