@win2win/shared-ui 0.2.30 → 0.2.31
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/Common/DynamicCarousel.vue.d.ts +1 -1
- package/dist/components/Common/DynamicCarousel.vue.d.ts.map +1 -1
- package/dist/components/widgets/index.d.ts +13 -5
- package/dist/components/widgets/index.d.ts.map +1 -1
- package/dist/components/widgets/interfaces.d.ts +3 -1
- package/dist/components/widgets/interfaces.d.ts.map +1 -1
- package/dist/components/widgets/linvermedia-product-card/LinvermediaProductCard.vue.d.ts +2 -2
- package/dist/components/widgets/linvermedia-product-card/LinvermediaProductCard.vue.d.ts.map +1 -1
- package/dist/components/widgets/linvermedia-product-card/components/PublicToggleButton.vue.d.ts +1 -1
- package/dist/components/widgets/linvermedia-product-card/components/PublicToggleButton.vue.d.ts.map +1 -1
- package/dist/components/widgets/linvermedia-product-card/index.d.ts +3 -2
- package/dist/components/widgets/linvermedia-product-card/index.d.ts.map +1 -1
- package/dist/components/widgets/linvermedia-product-card/mock-data.d.ts +4 -0
- package/dist/components/widgets/linvermedia-product-card/mock-data.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-card/mock-props.d.ts +2 -1
- package/dist/components/widgets/linvermedia-product-card/mock-props.d.ts.map +1 -1
- package/dist/components/widgets/linvermedia-product-card/schema.d.ts +24 -19
- package/dist/components/widgets/linvermedia-product-card/schema.d.ts.map +1 -1
- package/dist/components/widgets/linvermedia-product-detail/LinvermediaProductDetail.vue.d.ts +17 -0
- package/dist/components/widgets/linvermedia-product-detail/LinvermediaProductDetail.vue.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ImagesMiniature.vue.d.ts +3 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ImagesMiniature.vue.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductAvailableColors.vue.d.ts +3 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductAvailableColors.vue.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductCustomizableIndicator.vue.d.ts +8 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductCustomizableIndicator.vue.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductDetallePack.vue.d.ts +3 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductDetallePack.vue.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductImageHeader.vue.d.ts +3 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductImageHeader.vue.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductLongDescription.vue.d.ts +3 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductLongDescription.vue.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductShortDescription.vue.d.ts +3 -0
- package/dist/components/widgets/linvermedia-product-detail/components/ProductShortDescription.vue.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-detail/components/PublicImageButton.vue.d.ts +3 -0
- package/dist/components/widgets/linvermedia-product-detail/components/PublicImageButton.vue.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-detail/index.d.ts +6 -0
- package/dist/components/widgets/linvermedia-product-detail/index.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-detail/mock-data.d.ts +4 -0
- package/dist/components/widgets/linvermedia-product-detail/mock-data.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-detail/mock-props.d.ts +4 -0
- package/dist/components/widgets/linvermedia-product-detail/mock-props.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-detail/schema.d.ts +77 -0
- package/dist/components/widgets/linvermedia-product-detail/schema.d.ts.map +1 -0
- package/dist/components/widgets/linvermedia-product-detail/useContext.d.ts +21 -0
- package/dist/components/widgets/linvermedia-product-detail/useContext.d.ts.map +1 -0
- package/dist/components/widgets/shared/ProductPrice.vue.d.ts.map +1 -0
- package/dist/components/widgets/{linvermedia-product-card/components → shared}/ProductProps.vue.d.ts +2 -1
- package/dist/components/widgets/shared/ProductProps.vue.d.ts.map +1 -0
- package/dist/components/widgets/shared/ProductTag.vue.d.ts.map +1 -0
- package/dist/components/widgets/{linvermedia-product-card → shared}/helpers.d.ts +3 -0
- package/dist/components/widgets/shared/helpers.d.ts.map +1 -0
- package/dist/components/widgets/shared/schema.d.ts +24 -0
- package/dist/components/widgets/shared/schema.d.ts.map +1 -0
- package/dist/components/widgets/shared/useWidgetEvent.d.ts +5 -0
- package/dist/components/widgets/shared/useWidgetEvent.d.ts.map +1 -0
- package/dist/composables/index.d.ts +2 -0
- package/dist/composables/index.d.ts.map +1 -0
- package/dist/composables/useDragAndDrop.d.ts +13 -0
- package/dist/composables/useDragAndDrop.d.ts.map +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/placeholder.webp +0 -0
- package/dist/style.css +1 -1
- package/dist/w2w-shared-ui.js +23555 -10409
- package/dist/w2w-shared-ui.umd.cjs +74 -23
- package/package.json +3 -3
- package/dist/components/widgets/linvermedia-product-card/components/ProductPrice.vue.d.ts.map +0 -1
- package/dist/components/widgets/linvermedia-product-card/components/ProductProps.vue.d.ts.map +0 -1
- package/dist/components/widgets/linvermedia-product-card/components/ProductTag.vue.d.ts.map +0 -1
- package/dist/components/widgets/linvermedia-product-card/helpers.d.ts.map +0 -1
- package/dist/components/widgets/linvermedia-product-card/mock-products.d.ts +0 -2615
- package/dist/components/widgets/linvermedia-product-card/mock-products.d.ts.map +0 -1
- /package/dist/components/widgets/{linvermedia-product-card/components → shared}/ProductPrice.vue.d.ts +0 -0
- /package/dist/components/widgets/{linvermedia-product-card/components → shared}/ProductTag.vue.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicCarousel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Common/DynamicCarousel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DynamicCarousel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Common/DynamicCarousel.vue"],"names":[],"mappings":"AAgHA,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;;AAiPF,wBAMG"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { JsonObject } from "@win2win/shared";
|
|
1
2
|
import { Component } from "vue";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
import { LinvermediaProductCard } from "./linvermedia-product-card";
|
|
4
|
-
import ProductPrice from "./
|
|
5
|
-
import ProductProps from "./
|
|
6
|
-
export declare const
|
|
7
|
-
export
|
|
5
|
+
import ProductPrice from "./shared/ProductPrice.vue";
|
|
6
|
+
import ProductProps from "./shared/ProductProps.vue";
|
|
7
|
+
export declare const LocalWidgetsIndex: LocalWidgetsIndex;
|
|
8
|
+
export declare const WidgetsIndex: WidgetsIndex;
|
|
9
|
+
export type LocalWidgetsIndex = Record<string, WidgetOption>;
|
|
10
|
+
export type WidgetsIndex = Record<string, Omit<WidgetOption, "mock">>;
|
|
8
11
|
export interface WidgetOption {
|
|
9
12
|
component: Component;
|
|
10
13
|
description: string;
|
|
@@ -12,7 +15,12 @@ export interface WidgetOption {
|
|
|
12
15
|
group?: string;
|
|
13
16
|
layoutTypes?: string[];
|
|
14
17
|
schema?: z.ZodObject<any>;
|
|
15
|
-
mock
|
|
18
|
+
mock: {
|
|
19
|
+
props: JsonObject;
|
|
20
|
+
data: any[];
|
|
21
|
+
idKey: string;
|
|
22
|
+
labelKey: string;
|
|
23
|
+
};
|
|
16
24
|
}
|
|
17
25
|
export { LinvermediaProductCard, ProductPrice, ProductProps };
|
|
18
26
|
export default WidgetsIndex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/widgets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/widgets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGL,sBAAsB,EAEvB,MAAM,4BAA4B,CAAC;AAOpC,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,YAAY,MAAM,2BAA2B,CAAC;AAErD,eAAO,MAAM,iBAAiB,EAyBzB,iBAAiB,CAAC;AAEvB,eAAO,MAAM,YAAY,EAAE,YAG1B,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAC7D,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;AAEtE,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC1B,IAAI,EAAE;QACJ,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,EAAE,GAAG,EAAE,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAE9D,eAAe,YAAY,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { JsonObject } from "@win2win/shared";
|
|
1
2
|
export interface WidgetEvent {
|
|
2
3
|
"on-event": [{
|
|
3
4
|
code: string;
|
|
4
|
-
payload?:
|
|
5
|
+
payload?: JsonObject;
|
|
5
6
|
}];
|
|
6
7
|
}
|
|
8
|
+
export type WidgetEventEmitter = (event: keyof WidgetEvent, value: WidgetEvent[keyof WidgetEvent][0]) => void;
|
|
7
9
|
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/components/widgets/interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/components/widgets/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;CACtD;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,WAAW,EAAE,KAAK,EAAE,WAAW,CAAC,MAAM,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAA"}
|
|
@@ -2,12 +2,12 @@ import { LinvermediaProductCardProps } from "./schema";
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<LinvermediaProductCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
3
|
"on-event": (args_0: {
|
|
4
4
|
code: string;
|
|
5
|
-
payload?:
|
|
5
|
+
payload?: import("@win2win/shared").JsonObject;
|
|
6
6
|
}) => any;
|
|
7
7
|
}, string, import("vue").PublicProps, Readonly<LinvermediaProductCardProps> & Readonly<{
|
|
8
8
|
"onOn-event"?: ((args_0: {
|
|
9
9
|
code: string;
|
|
10
|
-
payload?:
|
|
10
|
+
payload?: import("@win2win/shared").JsonObject;
|
|
11
11
|
}) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
hiddenProps: string[];
|
package/dist/components/widgets/linvermedia-product-card/LinvermediaProductCard.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinvermediaProductCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-card/LinvermediaProductCard.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LinvermediaProductCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-card/LinvermediaProductCard.vue"],"names":[],"mappings":"AAsVA,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;AAkbvD,wBAQG"}
|
package/dist/components/widgets/linvermedia-product-card/components/PublicToggleButton.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicToggleButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/widgets/linvermedia-product-card/components/PublicToggleButton.vue"],"names":[],"mappings":"AAgCA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PublicToggleButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/widgets/linvermedia-product-card/components/PublicToggleButton.vue"],"names":[],"mappings":"AAgCA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;;;;;;AA+EF,wBAOG"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import LinvermediaProductCard from "./LinvermediaProductCard.vue";
|
|
2
|
-
import
|
|
2
|
+
import LINVERMEDIA_PRODUCT_CARD_MOCK_DATA from "./mock-data";
|
|
3
|
+
import LINVERMEDIA_PRODUCT_CARD_MOCK_PROPS from "./mock-props";
|
|
3
4
|
import { LinvermediaProductCardPropsSchema } from "./schema";
|
|
4
|
-
export { LINVERMEDIA_PRODUCT_CARD_MOCK_PROPS, LinvermediaProductCard, LinvermediaProductCardPropsSchema };
|
|
5
|
+
export { LINVERMEDIA_PRODUCT_CARD_MOCK_DATA, LINVERMEDIA_PRODUCT_CARD_MOCK_PROPS, LinvermediaProductCard, LinvermediaProductCardPropsSchema, };
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-card/index.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,8BAA8B,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-card/index.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,8BAA8B,CAAC;AAClE,OAAO,kCAAkC,MAAM,aAAa,CAAC;AAC7D,OAAO,mCAAmC,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAC;AAE7D,OAAO,EACL,kCAAkC,EAClC,mCAAmC,EACnC,sBAAsB,EACtB,iCAAiC,GAClC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-data.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-card/mock-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;wBAwnV7B,WAAW,EAAE;AAtnV9B,wBAsnV+B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-props.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-card/mock-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"mock-props.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-card/mock-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;wBAgBlD,2BAA2B;AAdhC,wBAciC"}
|
|
@@ -1,33 +1,38 @@
|
|
|
1
|
+
import { ProductoRaw } from "@win2win/shared";
|
|
1
2
|
import { z } from "zod";
|
|
3
|
+
import { WidgetPropsBase } from "../shared/schema";
|
|
2
4
|
export declare const LinvermediaProductCardPropsSchema: z.ZodObject<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
fetching: z.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
data: z.ZodNullable<z.ZodAny>;
|
|
6
|
+
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
fetching: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
} & {
|
|
10
|
+
descriptionLines: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
hiddenProps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
9
13
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
data
|
|
11
|
-
scale: number;
|
|
12
|
-
hiddenProps: string[];
|
|
13
|
-
isPublic: boolean;
|
|
14
|
-
fetching: boolean;
|
|
15
|
-
descriptionLines: number;
|
|
16
|
-
}, {
|
|
17
|
-
data?: Record<string, any> | undefined;
|
|
14
|
+
data?: any;
|
|
18
15
|
scale?: number | undefined;
|
|
16
|
+
isPublic?: boolean | undefined;
|
|
17
|
+
fetching?: boolean | undefined;
|
|
19
18
|
hiddenProps?: string[] | undefined;
|
|
19
|
+
descriptionLines?: number | undefined;
|
|
20
|
+
count?: number | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
data?: any;
|
|
23
|
+
scale?: number | undefined;
|
|
20
24
|
isPublic?: boolean | undefined;
|
|
21
25
|
fetching?: boolean | undefined;
|
|
26
|
+
hiddenProps?: string[] | undefined;
|
|
22
27
|
descriptionLines?: number | undefined;
|
|
28
|
+
count?: number | undefined;
|
|
23
29
|
}>;
|
|
24
|
-
|
|
25
|
-
data: Record<string, any> | null;
|
|
26
|
-
isPublic?: boolean;
|
|
27
|
-
fetching?: boolean;
|
|
30
|
+
type T = {
|
|
28
31
|
descriptionLines?: number;
|
|
29
32
|
hiddenProps?: string[];
|
|
30
|
-
scale?: number;
|
|
31
33
|
count?: number;
|
|
34
|
+
data: ProductoRaw;
|
|
32
35
|
};
|
|
36
|
+
export type LinvermediaProductCardProps = WidgetPropsBase & T;
|
|
37
|
+
export {};
|
|
33
38
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-card/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-card/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAqB,MAAM,kBAAkB,CAAC;AAEtE,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;EAI5C,CAAC;AAGH,KAAK,CAAC,GAAG;IACP,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,eAAe,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JsonObject } from "@win2win/shared";
|
|
2
|
+
import { LinvermediaProductDetailProps } from "./schema";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<LinvermediaProductDetailProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
"on-event": (args_0: {
|
|
5
|
+
code: string;
|
|
6
|
+
payload?: JsonObject;
|
|
7
|
+
}) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<LinvermediaProductDetailProps> & Readonly<{
|
|
9
|
+
"onOn-event"?: ((args_0: {
|
|
10
|
+
code: string;
|
|
11
|
+
payload?: JsonObject;
|
|
12
|
+
}) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
view: "detail" | "summary";
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=LinvermediaProductDetail.vue.d.ts.map
|
package/dist/components/widgets/linvermedia-product-detail/LinvermediaProductDetail.vue.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinvermediaProductDetail.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-detail/LinvermediaProductDetail.vue"],"names":[],"mappings":"AAsIA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAa7C,OAAO,EAAE,6BAA6B,EAAoB,MAAM,UAAU,CAAC;;;;;;;;;;;;;;AAyQ3E,wBAQG"}
|
package/dist/components/widgets/linvermedia-product-detail/components/ImagesMiniature.vue.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
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;
|
|
3
|
+
//# sourceMappingURL=ImagesMiniature.vue.d.ts.map
|
package/dist/components/widgets/linvermedia-product-detail/components/ImagesMiniature.vue.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImagesMiniature.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/widgets/linvermedia-product-detail/components/ImagesMiniature.vue"],"names":[],"mappings":";AAqPA,wBAKG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
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;
|
|
3
|
+
//# sourceMappingURL=ProductAvailableColors.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductAvailableColors.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/widgets/linvermedia-product-detail/components/ProductAvailableColors.vue"],"names":[],"mappings":";AA6FA,wBAKG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
label: string;
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=ProductCustomizableIndicator.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCustomizableIndicator.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/widgets/linvermedia-product-detail/components/ProductCustomizableIndicator.vue"],"names":[],"mappings":"AA6BA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;;WADQ,MAAM;;AAuElB,wBAOG"}
|
package/dist/components/widgets/linvermedia-product-detail/components/ProductDetallePack.vue.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
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;
|
|
3
|
+
//# sourceMappingURL=ProductDetallePack.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductDetallePack.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/widgets/linvermedia-product-detail/components/ProductDetallePack.vue"],"names":[],"mappings":";AAgLA,wBAKG"}
|
package/dist/components/widgets/linvermedia-product-detail/components/ProductImageHeader.vue.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
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;
|
|
3
|
+
//# sourceMappingURL=ProductImageHeader.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductImageHeader.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/widgets/linvermedia-product-detail/components/ProductImageHeader.vue"],"names":[],"mappings":";AAqKA,wBAKG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
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;
|
|
3
|
+
//# sourceMappingURL=ProductLongDescription.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductLongDescription.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/widgets/linvermedia-product-detail/components/ProductLongDescription.vue"],"names":[],"mappings":";AAuEA,wBAKG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
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;
|
|
3
|
+
//# sourceMappingURL=ProductShortDescription.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductShortDescription.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/widgets/linvermedia-product-detail/components/ProductShortDescription.vue"],"names":[],"mappings":";AA4DA,wBAKG"}
|
package/dist/components/widgets/linvermedia-product-detail/components/PublicImageButton.vue.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
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;
|
|
3
|
+
//# sourceMappingURL=PublicImageButton.vue.d.ts.map
|
package/dist/components/widgets/linvermedia-product-detail/components/PublicImageButton.vue.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicImageButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/widgets/linvermedia-product-detail/components/PublicImageButton.vue"],"names":[],"mappings":";AAwKA,wBAKG"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import LinvermediaProductDetail from "./LinvermediaProductDetail.vue";
|
|
2
|
+
import LINVERMEDIA_PRODUCT_DETAIL_MOCK_DATA from "./mock-data";
|
|
3
|
+
import LINVERMEDIA_PRODUCT_DETAIL_MOCK_PROPS from "./mock-props";
|
|
4
|
+
import { LinvermediaProductDetailPropsSchema } from "./schema";
|
|
5
|
+
export { LINVERMEDIA_PRODUCT_DETAIL_MOCK_DATA, LINVERMEDIA_PRODUCT_DETAIL_MOCK_PROPS, LinvermediaProductDetail, LinvermediaProductDetailPropsSchema, };
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-detail/index.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,MAAM,gCAAgC,CAAC;AACtE,OAAO,oCAAoC,MAAM,aAAa,CAAC;AAC/D,OAAO,qCAAqC,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAC;AAE/D,OAAO,EACL,oCAAoC,EACpC,qCAAqC,EACrC,wBAAwB,EACxB,mCAAmC,GACpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-data.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-detail/mock-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;wBAyNtB,WAAW,EAAE;AAvN9B,wBAuN+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-props.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-detail/mock-props.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;wBA2tDpD,6BAA6B;AANlC,wBAMmC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { GamaRaw, Id, JsonObject, TipoIVA } from "@win2win/shared";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { WidgetPropsBase } from "../shared/schema";
|
|
4
|
+
export declare const LinvermediaProductDetailPropsSchema: z.ZodObject<{
|
|
5
|
+
data: z.ZodNullable<z.ZodAny>;
|
|
6
|
+
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
fetching: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
} & {
|
|
10
|
+
view: z.ZodOptional<z.ZodEnum<["detail", "summary"]>>;
|
|
11
|
+
title: z.ZodOptional<z.ZodString>;
|
|
12
|
+
gama: z.ZodObject<{
|
|
13
|
+
PROPS: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
PROPS: Record<string, any>[];
|
|
16
|
+
}, {
|
|
17
|
+
PROPS: Record<string, any>[];
|
|
18
|
+
}>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
gama: {
|
|
21
|
+
PROPS: Record<string, any>[];
|
|
22
|
+
};
|
|
23
|
+
data?: any;
|
|
24
|
+
title?: string | undefined;
|
|
25
|
+
view?: "summary" | "detail" | undefined;
|
|
26
|
+
scale?: number | undefined;
|
|
27
|
+
isPublic?: boolean | undefined;
|
|
28
|
+
fetching?: boolean | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
gama: {
|
|
31
|
+
PROPS: Record<string, any>[];
|
|
32
|
+
};
|
|
33
|
+
data?: any;
|
|
34
|
+
title?: string | undefined;
|
|
35
|
+
view?: "summary" | "detail" | undefined;
|
|
36
|
+
scale?: number | undefined;
|
|
37
|
+
isPublic?: boolean | undefined;
|
|
38
|
+
fetching?: boolean | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
type T = {
|
|
41
|
+
view?: "detail" | "summary";
|
|
42
|
+
title?: string;
|
|
43
|
+
data: ProductLite | null;
|
|
44
|
+
gama: GamaRaw;
|
|
45
|
+
};
|
|
46
|
+
export type LinvermediaProductDetailProps = WidgetPropsBase & T;
|
|
47
|
+
export interface ProductLite {
|
|
48
|
+
props: JsonObject;
|
|
49
|
+
nombre: string;
|
|
50
|
+
precio: number;
|
|
51
|
+
descripcion: string;
|
|
52
|
+
descripcion_corta: string;
|
|
53
|
+
id_gama: number;
|
|
54
|
+
codigo: string;
|
|
55
|
+
id: number;
|
|
56
|
+
tags: string;
|
|
57
|
+
pack: boolean;
|
|
58
|
+
tipo_iva: TipoIVA;
|
|
59
|
+
estado: {
|
|
60
|
+
name: string;
|
|
61
|
+
color: string;
|
|
62
|
+
};
|
|
63
|
+
images: ProductImageLite[];
|
|
64
|
+
detalle_packs: JsonObject[];
|
|
65
|
+
}
|
|
66
|
+
export interface ProductImageLite {
|
|
67
|
+
id: Id;
|
|
68
|
+
location: string;
|
|
69
|
+
id_producto: string;
|
|
70
|
+
public: boolean;
|
|
71
|
+
tag_temporal: string;
|
|
72
|
+
tipo: string;
|
|
73
|
+
estado: number;
|
|
74
|
+
posicion: number;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-detail/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAqB,MAAM,kBAAkB,CAAC;AAEtE,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9C,CAAC;AAGH,KAAK,CAAC,GAAG;IACP,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG,CAAC,CAAC;AAEhE,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,aAAa,EAAE,UAAU,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,EAAE,CAAC;IACP,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { JsonObject } from "@win2win/shared";
|
|
2
|
+
import { ComputedRef, Ref } from "vue";
|
|
3
|
+
import { ProductImageLite, ProductLite } from "./schema";
|
|
4
|
+
export interface LinvermediaProductDetailContext {
|
|
5
|
+
product: ComputedRef<ProductLite | null>;
|
|
6
|
+
isPublic: Ref<boolean>;
|
|
7
|
+
slide: Ref<number>;
|
|
8
|
+
images: Ref<ProductImageLite[]>;
|
|
9
|
+
selectedPackProduct: Ref<JsonObject | null>;
|
|
10
|
+
}
|
|
11
|
+
export declare function useContext(): {
|
|
12
|
+
product: ComputedRef<ProductLite | null>;
|
|
13
|
+
isPublic: Ref<boolean, boolean>;
|
|
14
|
+
isPrivate: ComputedRef<boolean>;
|
|
15
|
+
images: Ref<ProductImageLite[], ProductImageLite[]>;
|
|
16
|
+
detallePacks: ComputedRef<JsonObject[]>;
|
|
17
|
+
productProps: ComputedRef<JsonObject>;
|
|
18
|
+
selectedPackProduct: Ref<JsonObject | null, JsonObject | null>;
|
|
19
|
+
slide: Ref<number, number>;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=useContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useContext.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/linvermedia-product-detail/useContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAY,WAAW,EAAU,GAAG,EAAS,MAAM,KAAK,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACzC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACvB,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB,MAAM,EAAE,GAAG,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAChC,mBAAmB,EAAE,GAAG,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;CAC7C;AAED,wBAAgB,UAAU;;;;;;;;;EAwCzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductPrice.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/shared/ProductPrice.vue"],"names":[],"mappings":"AAgGA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC3B,CAAC;;AAgIF,wBAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductProps.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/shared/ProductProps.vue"],"names":[],"mappings":"AAgWA,OAAO,EAA4B,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAKpE,KAAK,WAAW,GAAG;IACjB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;;AAgfF,wBAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductTag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/shared/ProductTag.vue"],"names":[],"mappings":"AA0CA,KAAK,WAAW,GAAG;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,YAAY,GAAG,WAAW,GAAG,WAAW,CAAC;CACnD,CAAC;;YADS,YAAY,GAAG,WAAW,GAAG,WAAW;;AA4ErD,wBAOG"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ProductoRaw } from "@win2win/shared";
|
|
2
|
+
import { ProductLite } from "../linvermedia-product-detail/schema";
|
|
1
3
|
export declare const formatOneWord: (word: string) => string;
|
|
2
4
|
export declare const capitalize: (text: string, allWords?: boolean) => string;
|
|
3
5
|
export declare const toCurrency: (val?: number | null | string, decimals?: number, symbol?: string) => string;
|
|
@@ -14,4 +16,5 @@ export declare const MAP_COLOR: {
|
|
|
14
16
|
morado: string;
|
|
15
17
|
marrón: string;
|
|
16
18
|
};
|
|
19
|
+
export declare const toProductLite: (raw?: ProductoRaw | ProductLite | null) => ProductLite | null;
|
|
17
20
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/shared/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE1E,OAAO,EAEL,WAAW,EACZ,MAAM,sCAAsC,CAAC;AAE9C,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,WACI,CAAC;AAC/C,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,EAAE,kBAAgB,WAMxD,CAAC;AACF,eAAO,MAAM,UAAU,GACrB,MAAM,MAAM,GAAG,IAAI,GAAG,MAAM,EAC5B,WAAW,MAAM,EACjB,SAAQ,MAAc,WASvB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;CAYrB,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,MAAM,WAAW,GAAG,WAAW,GAAG,IAAI,KACrC,WAAW,GAAG,IAoBhB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const WidgetPropsSchema: z.ZodObject<{
|
|
3
|
+
data: z.ZodNullable<z.ZodAny>;
|
|
4
|
+
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
+
fetching: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
data?: any;
|
|
9
|
+
scale?: number | undefined;
|
|
10
|
+
isPublic?: boolean | undefined;
|
|
11
|
+
fetching?: boolean | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
data?: any;
|
|
14
|
+
scale?: number | undefined;
|
|
15
|
+
isPublic?: boolean | undefined;
|
|
16
|
+
fetching?: boolean | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type WidgetPropsBase = {
|
|
19
|
+
data: any | null;
|
|
20
|
+
isPublic?: boolean;
|
|
21
|
+
fetching?: boolean;
|
|
22
|
+
scale?: number;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/shared/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAGH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,GAAG,GAAG,IAAI,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWidgetEvent.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/shared/useWidgetEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAI7C,wBAAgB,cAAc;sBAEH,MAAM,WAAW,UAAU;EAQrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ModelRef, Ref } from "vue";
|
|
2
|
+
export interface DragAndDropOptions {
|
|
3
|
+
idKey?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function useDragAndDrop<T = any[]>(items: Ref<T[]> | ModelRef<T[]>, itemSelector: string, onUpdate: (items: T[]) => void, options?: DragAndDropOptions): {
|
|
6
|
+
handler: () => boolean;
|
|
7
|
+
onDragLeave: (e: any) => void;
|
|
8
|
+
onDragStart: (e: any) => void;
|
|
9
|
+
onDragOver: (e: any) => void;
|
|
10
|
+
onDrop: (e: any) => void;
|
|
11
|
+
idKey: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useDragAndDrop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDragAndDrop.d.ts","sourceRoot":"","sources":["../../src/composables/useDragAndDrop.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAGpC,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,cAAc,CAAC,CAAC,GAAG,GAAG,EAAE,EACtC,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,EAAE,CAAC,EAC/B,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,IAAI,EAC9B,OAAO,CAAC,EAAE,kBAAkB;;;;;;;EAqE7B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,13 +5,12 @@ import IndicatorColor from "./components/Common/IndicatorColor.vue";
|
|
|
5
5
|
import SectionSpinner from "./components/Common/SectionSpinner.vue";
|
|
6
6
|
import StateIndicator from "./components/Common/StateIndicator.vue";
|
|
7
7
|
import DynamicForm from "./components/DynamicForm/DynamicForm.vue";
|
|
8
|
-
import TestUi from "./components/TestUi.vue";
|
|
9
8
|
import SectionsContainer from "./components/pdf/SectionsContainer.vue";
|
|
10
9
|
declare const W2WSharedUi: {
|
|
11
10
|
install(app: App, options: any): void;
|
|
12
11
|
};
|
|
13
12
|
export default W2WSharedUi;
|
|
14
|
-
export * from "./components/widgets";
|
|
15
13
|
export { WidgetsIndex } from "./components/widgets";
|
|
16
|
-
export
|
|
14
|
+
export * from "./composables/index";
|
|
15
|
+
export { Card, DynamicCarousel, DynamicForm, IndicatorColor, SectionsContainer, SectionSpinner, StateIndicator, };
|
|
17
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,IAAI,MAAM,8BAA8B,CAAC;AAChD,OAAO,eAAe,MAAM,yCAAyC,CAAC;AACtE,OAAO,cAAc,MAAM,wCAAwC,CAAC;AACpE,OAAO,cAAc,MAAM,wCAAwC,CAAC;AACpE,OAAO,cAAc,MAAM,wCAAwC,CAAC;AACpE,OAAO,WAAW,MAAM,0CAA0C,CAAC;AACnE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,IAAI,MAAM,8BAA8B,CAAC;AAChD,OAAO,eAAe,MAAM,yCAAyC,CAAC;AACtE,OAAO,cAAc,MAAM,wCAAwC,CAAC;AACpE,OAAO,cAAc,MAAM,wCAAwC,CAAC;AACpE,OAAO,cAAc,MAAM,wCAAwC,CAAC;AACpE,OAAO,WAAW,MAAM,0CAA0C,CAAC;AACnE,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AAGvE,QAAA,MAAM,WAAW;iBACF,GAAG,WAAW,GAAG;CAkB/B,CAAC;AAEF,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,cAAc,qBAAqB,CAAC;AACpC,OAAO,EACL,IAAI,EACJ,eAAe,EACf,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,cAAc,GACf,CAAC"}
|
|
Binary file
|