@club-employes/utopia 4.352.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.
- package/dist/components/organisms/CustomCriteriaSection/CustomCriteriaSection.d.ts +19 -0
- package/dist/components/organisms/CustomCriteriaSection/index.d.ts +1 -0
- package/dist/components/organisms/CustomCriteriaSection/types.d.ts +26 -0
- package/dist/components/organisms/DeliveryMethodSelector/DeliveryMethodSelector.d.ts +0 -3
- package/dist/components/organisms/DeliveryMethodSelector/types.d.ts +0 -2
- package/dist/components/organisms/index.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8093 -7878
- package/dist/utopia.css +1 -1
- package/package.json +1 -1
|
@@ -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,6 +99,8 @@ 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';
|