@club-employes/utopia 4.351.0 → 4.353.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.
@@ -0,0 +1,12 @@
1
+ import { MyUserGroupsProps, UserGroupCriterion } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<MyUserGroupsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
+ edit: () => any;
5
+ }, string, PublicProps, Readonly<MyUserGroupsProps> & Readonly<{
6
+ onEdit?: (() => any) | undefined;
7
+ }>, {
8
+ peopleLabel: string;
9
+ criteria: UserGroupCriterion[];
10
+ criteriaLabel: string;
11
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as MyUserGroups } from './MyUserGroups';
2
+ export type { MyUserGroupsProps, UserGroupCriterion } from './types';
@@ -0,0 +1,16 @@
1
+ import { ChipVariant } from '../../atoms/Chip/types';
2
+ export type { ChipVariant };
3
+ export interface UserGroupCriterion {
4
+ label: string;
5
+ icon?: string;
6
+ variant?: ChipVariant;
7
+ ghost?: boolean;
8
+ }
9
+ export interface MyUserGroupsProps {
10
+ rank: number;
11
+ title: string;
12
+ peopleCount: number;
13
+ peopleLabel?: string;
14
+ criteria?: UserGroupCriterion[];
15
+ criteriaLabel?: string;
16
+ }
@@ -65,3 +65,5 @@ export { CartStepper, type CartStepperProps, type CartStepperStep } from './Cart
65
65
  export { CartPreviewItem, type CartPreviewItemProps } from './CartPreviewItem';
66
66
  export { DateRange, type DateRangeProps, type DateRangeValue, type DateRangeTrigger } from './DateRange';
67
67
  export { DeliveryMethodCard, type DeliveryMethodCardProps } from './DeliveryMethodCard';
68
+ export { MyUserGroups } from './MyUserGroups';
69
+ export type { MyUserGroupsProps } from './MyUserGroups';
@@ -0,0 +1,19 @@
1
+ import { CustomCriteriaSectionProps, CustomCriterion } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<CustomCriteriaSectionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
+ delete: (id: string) => any;
5
+ update: (criteria: CustomCriterion[]) => any;
6
+ create: () => any;
7
+ }, string, PublicProps, Readonly<CustomCriteriaSectionProps> & Readonly<{
8
+ onDelete?: ((id: string) => any) | undefined;
9
+ onUpdate?: ((criteria: CustomCriterion[]) => any) | undefined;
10
+ onCreate?: (() => any) | undefined;
11
+ }>, {
12
+ title: string;
13
+ availableCriteria: CustomCriterion[];
14
+ emptyText: string;
15
+ dropdownPlaceholder: string;
16
+ addButtonLabel: string;
17
+ createLabel: string;
18
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as CustomCriteriaSection } from './CustomCriteriaSection';
@@ -0,0 +1,26 @@
1
+ export type JsonSchemaProperty = {
2
+ type?: 'string' | 'number' | 'integer' | 'boolean';
3
+ enum?: string[];
4
+ pattern?: string;
5
+ title?: string;
6
+ description?: string;
7
+ };
8
+ export type CustomCriterionSchema = {
9
+ type: 'object';
10
+ properties: Record<string, JsonSchemaProperty>;
11
+ required?: string[];
12
+ };
13
+ export type CustomCriterion = {
14
+ id: string;
15
+ label: string;
16
+ value?: Record<string, unknown>;
17
+ schema?: CustomCriterionSchema;
18
+ };
19
+ export interface CustomCriteriaSectionProps {
20
+ availableCriteria?: CustomCriterion[];
21
+ title?: string;
22
+ emptyText?: string;
23
+ dropdownPlaceholder?: string;
24
+ addButtonLabel?: string;
25
+ createLabel?: string;
26
+ }
@@ -1,16 +1,13 @@
1
1
  import { DeliveryMethodSelectorProps, DeliveryMethodProductRecap, DeliveryMethod } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<DeliveryMethodSelectorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
- "show-more": () => any;
5
4
  "select-method": (index: number) => any;
6
5
  }, string, PublicProps, Readonly<DeliveryMethodSelectorProps> & Readonly<{
7
- "onShow-more"?: (() => any) | undefined;
8
6
  "onSelect-method"?: ((index: number) => any) | undefined;
9
7
  }>, {
10
8
  loading: boolean;
11
9
  products: DeliveryMethodProductRecap[];
12
10
  methods: DeliveryMethod[];
13
- showMore: boolean;
14
11
  showMoreLabel: string;
15
12
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
16
13
  export default _default;
@@ -34,8 +34,6 @@ export interface DeliveryMethodSelectorProps {
34
34
  products: DeliveryMethodProductRecap[];
35
35
  /** Delivery methods to display. Their `active` flag drives the selected state. */
36
36
  methods: DeliveryMethod[];
37
- /** Shows the "show more" button that reveals additional delivery methods. */
38
- showMore?: boolean;
39
37
  /** Label for the show-more button. */
40
38
  showMoreLabel?: string;
41
39
  }
@@ -34,3 +34,5 @@ export { SummaryMetricCard } from './SummaryMetricCard';
34
34
  export type { SummaryMetricCardProps } from './SummaryMetricCard';
35
35
  export { DeliveryMethodSelector } from './DeliveryMethodSelector';
36
36
  export type { DeliveryMethodSelectorProps, DeliveryMethodProductRecap, DeliveryMethod } from './DeliveryMethodSelector';
37
+ export { CustomCriteriaSection } from './CustomCriteriaSection';
38
+ export type { CustomCriteriaSectionProps } from './CustomCriteriaSection';
package/dist/index.d.ts CHANGED
@@ -99,9 +99,13 @@ export type { ProductRecapProps } from './components/organisms/ProductRecap/type
99
99
  export type { OrderRecapProps, OrderRecapMessage } from './components/organisms/OrderRecap/types';
100
100
  export type { SummaryMetricCardProps } from './components/organisms/SummaryMetricCard/types';
101
101
  export type { DeliveryMethodSelectorProps, DeliveryMethodProductRecap, DeliveryMethod } from './components/organisms/DeliveryMethodSelector/types';
102
+ export type { CustomCriteriaSectionProps, CustomCriterion } from './components/organisms/CustomCriteriaSection/types';
103
+ export { CustomCriteriaSection } from './components/organisms/CustomCriteriaSection';
102
104
  export type { AddressFormProps, AddressFormSchema, AddressFormSection } from './components/organisms/AddressForm/types';
103
105
  export type { CartPreviewProps, CartPreviewPrice, CartPreviewPriceLine } from './components/organisms/CartPreview/types';
104
106
  export type { CartPreviewItemProps } from './components/molecules/CartPreviewItem/types';
107
+ export { MyUserGroups } from './components/molecules/MyUserGroups';
108
+ export type { MyUserGroupsProps, UserGroupCriterion } from './components/molecules/MyUserGroups/types';
105
109
  export { clubEmployesDark, clubEmployesLight } from './themes/club-employes';
106
110
  export { gifteoDark, gifteoLight } from './themes/gifteo';
107
111
  export type { LoaderProps } from './components/templates/Loader/types';