@club-employes/utopia 4.337.0 → 4.339.0
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.
- package/dist/components/molecules/CartStepper/CartStepper.d.ts +6 -1
- package/dist/components/molecules/CartStepper/types.d.ts +2 -25
- package/dist/components/molecules/GrantSelect/GrantSelectTree.d.ts +57 -0
- package/dist/components/molecules/GrantSelect/index.d.ts +1 -0
- package/dist/components/molecules/GrantSelect/types.d.ts +3 -0
- package/dist/components/molecules/index.d.ts +1 -1
- package/dist/index.js +3442 -3264
- package/dist/utopia.css +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,12 @@ import { CartStepperProps, CartStepperStep } from './types';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<CartStepperProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
4
|
"step-click": (step: CartStepperStep) => any;
|
|
5
|
+
"previous-click": () => any;
|
|
5
6
|
}, string, PublicProps, Readonly<CartStepperProps> & Readonly<{
|
|
6
7
|
"onStep-click"?: ((step: CartStepperStep) => any) | undefined;
|
|
7
|
-
|
|
8
|
+
"onPrevious-click"?: (() => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
stepLabel: string;
|
|
11
|
+
returnHomeLabel: string;
|
|
12
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
8
13
|
export default _default;
|
|
@@ -1,36 +1,13 @@
|
|
|
1
1
|
import { IconName } from '../../atoms/Icon/types';
|
|
2
|
-
/**
|
|
3
|
-
* Étape unique du CartStepper.
|
|
4
|
-
*/
|
|
5
2
|
export interface CartStepperStep {
|
|
6
|
-
/** Identifiant unique de l'étape — sert au matching avec currentStepKey et est renvoyé via step-click */
|
|
7
3
|
key: string;
|
|
8
|
-
/** Libellé affiché à droite de l'icône */
|
|
9
4
|
label: string;
|
|
10
|
-
/**
|
|
11
|
-
* Icône affichée pour cette étape lorsqu'elle est active ou déjà franchie.
|
|
12
|
-
* Cf. `IconName` (icônes locales ou `fa:solid:...` / `fa:regular:...`).
|
|
13
|
-
*/
|
|
14
5
|
icon: IconName;
|
|
15
|
-
/**
|
|
16
|
-
* Variante d'icône pour l'état "à venir" (étape pas encore atteinte).
|
|
17
|
-
* Si omis, `icon` est réutilisé.
|
|
18
|
-
*
|
|
19
|
-
* Permet de matcher la convention Figma : icône pleine pour active/franchie,
|
|
20
|
-
* icône fine (regular) pour les étapes à venir.
|
|
21
|
-
*/
|
|
22
6
|
iconUpcoming?: IconName;
|
|
23
7
|
}
|
|
24
8
|
export interface CartStepperProps {
|
|
25
|
-
|
|
9
|
+
stepLabel?: string;
|
|
10
|
+
returnHomeLabel?: string;
|
|
26
11
|
steps: CartStepperStep[];
|
|
27
|
-
/**
|
|
28
|
-
* Clé de l'étape actuellement active.
|
|
29
|
-
* Les étapes situées avant celle-ci sont considérées comme franchies
|
|
30
|
-
* (rendues avec la même emphase que l'étape active).
|
|
31
|
-
*
|
|
32
|
-
* Si la clé ne correspond à aucune étape, toutes les étapes sont rendues
|
|
33
|
-
* comme "à venir".
|
|
34
|
-
*/
|
|
35
12
|
currentStepKey: string;
|
|
36
13
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
interface GrantTreeNode {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
amount?: string;
|
|
7
|
+
amountLabel?: string;
|
|
8
|
+
formattedRemainingAmount?: string;
|
|
9
|
+
formattedTotalAmount?: string;
|
|
10
|
+
progressBarFillPercentage?: number;
|
|
11
|
+
accordionTitle?: string;
|
|
12
|
+
remainingAmountLabel?: string;
|
|
13
|
+
categoryLabel?: string;
|
|
14
|
+
categoryValue?: string;
|
|
15
|
+
availableUntilLabel?: string;
|
|
16
|
+
availableUntil?: string;
|
|
17
|
+
useSwitch?: boolean;
|
|
18
|
+
children?: GrantTreeNode[];
|
|
19
|
+
options?: Array<{
|
|
20
|
+
label: string;
|
|
21
|
+
value: string | number | boolean;
|
|
22
|
+
amount?: string;
|
|
23
|
+
amountLabel?: string;
|
|
24
|
+
formattedRemainingAmount?: string;
|
|
25
|
+
formattedTotalAmount?: string;
|
|
26
|
+
progressBarFillPercentage?: number;
|
|
27
|
+
}>;
|
|
28
|
+
dropdownModelValue?: string | number | boolean;
|
|
29
|
+
}
|
|
30
|
+
type __VLS_Props = {
|
|
31
|
+
modelValue?: string | number | boolean;
|
|
32
|
+
node: GrantTreeNode;
|
|
33
|
+
};
|
|
34
|
+
declare function __VLS_template(): {
|
|
35
|
+
attrs: Partial<{}>;
|
|
36
|
+
slots: {
|
|
37
|
+
'progress-prefix'?(_: {}): any;
|
|
38
|
+
'progress-prefix'?(_: {}): any;
|
|
39
|
+
};
|
|
40
|
+
refs: {};
|
|
41
|
+
rootEl: any;
|
|
42
|
+
};
|
|
43
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
44
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
45
|
+
"update:modelValue": (value?: string | number | boolean | undefined) => any;
|
|
46
|
+
"update:dropdownValue": (value?: string | number | boolean | undefined) => any;
|
|
47
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
48
|
+
"onUpdate:modelValue"?: ((value?: string | number | boolean | undefined) => any) | undefined;
|
|
49
|
+
"onUpdate:dropdownValue"?: ((value?: string | number | boolean | undefined) => any) | undefined;
|
|
50
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
51
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -6,6 +6,7 @@ export interface GrantSelectOption {
|
|
|
6
6
|
formattedRemainingAmount?: string;
|
|
7
7
|
formattedTotalAmount?: string;
|
|
8
8
|
progressBarFillPercentage?: number;
|
|
9
|
+
children?: GrantSelectOption[];
|
|
9
10
|
}
|
|
10
11
|
export interface GrantSelectItemProps {
|
|
11
12
|
modelValue?: string | number | boolean;
|
|
@@ -29,4 +30,6 @@ export interface GrantSelectItemProps {
|
|
|
29
30
|
availableUntilLabel?: string;
|
|
30
31
|
availableUntil?: string;
|
|
31
32
|
useSwitch?: boolean;
|
|
33
|
+
childrenTooltipTitle?: string;
|
|
34
|
+
childrenSubtitle?: string;
|
|
32
35
|
}
|
|
@@ -64,7 +64,7 @@ export { TromboItem, TromboItemEmptyState } from './TromboItem';
|
|
|
64
64
|
export type { TromboItemProps } from './TromboItem';
|
|
65
65
|
export { CountryDropDown, countriesToDropDownOptions, countryDisplayName, countryLabelForCode, countryToDropDownOption, filterCountriesByCodes, orderedCountriesForPicker } from './CountryDropDown';
|
|
66
66
|
export type { CountryDropDownBaseProps, CountryDropDownPassthroughProps, CountryDropDownProps } from './CountryDropDown';
|
|
67
|
-
export { GrantSelect, type GrantSelectItemProps } from './GrantSelect';
|
|
67
|
+
export { GrantSelect, type GrantSelectItemProps, GrantSelectTree } from './GrantSelect';
|
|
68
68
|
export { CartStepper, type CartStepperProps, type CartStepperStep } from './CartStepper';
|
|
69
69
|
export { CartPreviewItem } from './CartPreviewItem';
|
|
70
70
|
export type { CartPreviewItemProps } from './CartPreviewItem';
|