@sc-360-v2/storefront-cms-library 0.3.4 → 0.3.5
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/builder.js +1 -1
- package/dist/types/builder/elements/filter-results/index.d.ts +27 -0
- package/dist/types/builder/enums/index.d.ts +1 -0
- package/dist/types/builder/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/filterResults.d.ts +140 -0
- package/dist/types/builder/tools/element-edit/filters.d.ts +15 -8
- package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
2
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface CartStyleProperties extends CommonStyleProperties {
|
|
6
|
+
minHeight?: MinHeightValue;
|
|
7
|
+
height?: HeightValue;
|
|
8
|
+
minWidth?: MinWidthValue;
|
|
9
|
+
maxWidth?: MaxWidthValue;
|
|
10
|
+
maxHeight?: MaxHeightValue;
|
|
11
|
+
gridArea?: GridAreaValue;
|
|
12
|
+
boxSizing?: BoxSizingValue;
|
|
13
|
+
padding?: PaddingValue;
|
|
14
|
+
justifySelf?: JustifySelfValue;
|
|
15
|
+
alignSelf?: AlignSelfValue;
|
|
16
|
+
}
|
|
17
|
+
export declare const getDefaultStyles: () => CartStyleProperties;
|
|
18
|
+
export interface CMSFilterResultInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
19
|
+
attributes: {
|
|
20
|
+
HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
|
|
21
|
+
BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
|
|
22
|
+
CUSTOM: any;
|
|
23
|
+
};
|
|
24
|
+
styles: CartStyleProperties;
|
|
25
|
+
childrenStyles?: CommonStyleProperties;
|
|
26
|
+
content: string;
|
|
27
|
+
}
|
|
@@ -77,4 +77,5 @@ import * as menuV2Schema from "./elements/menu-v2/index";
|
|
|
77
77
|
import * as menuItemSchema from "./elements/menu-item/index";
|
|
78
78
|
import * as layouterProSchema from "./elements/layouter-pro/index";
|
|
79
79
|
import * as layouterProItemSchema from "./elements/layouter-pro-item/index";
|
|
80
|
-
|
|
80
|
+
import * as filterResultsSchema from "./elements/filter-results/index";
|
|
81
|
+
export { ElementEditSchema, amountEstimatorSchema, bulkVariantPickerSchema, buttonSchema, cmsTypes, codeSchema, commonFunctions, containerSchema, countdownSchema, embedSchema, enums, faqSchema, gallerySliderSchema, gridSchema, imageHotspotSchema, imageSchema, interfaces, mapSchema, paymentMethodsSchema, pickupLocationsSchema, priceSchema, productActionsSchema, productHighlightsSchema, productImageSchema, productInventorySchema, productPromotionsSchema, quantitySelectorSchema, scrollSchema, sectionSchema, shippingEstimatorSchema, socialIconsSchema, stackSchema, storeLocationsSchema, tabSchema, tableSchema, textSchema, uomSelectorSchema, variantPickerSchema, videoSChema, volumePricingSchema, lightboxSchema, cartSchema, profileSchema, productSchema, repeaterSchema, brandSchema, bundleSchema, bundleDetailsSchema, brandImageSchema, lightBoxV2Schema, searchSchema, layouterSchema, layouterItemSchema, categoryDetailsSchema, contactUsSchema, loginSchema, createFormSchema, resetPasswordSchema, searchResultsHeadingSchema, itemStockSchema, lineItemSchema, tabsV2Schema, tabsContainerSchema, marchandiserSetsSchema, formBuilder, quickLinksSchema, addOrderSchema, buyForTabsSchema, buyForTabsContainerSchema, checkoutSchema, toasterSchema, spotlightSchema, productCustomizationsSchema, iconListSchema, orderStatusSchema, menuV2Schema, menuItemSchema, layouterProSchema, layouterProItemSchema, filterResultsSchema, };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { CMSIBCommonInterface, CMSIBSizeInterface } from "../../interfaces/global";
|
|
2
|
+
export interface selfDesignInterface {
|
|
3
|
+
selectorKey: string;
|
|
4
|
+
deisgn: {
|
|
5
|
+
selectorKey: string;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare enum SelectorKeysEnum {
|
|
10
|
+
LAYOUT = "layout",
|
|
11
|
+
DESIGN = "design",
|
|
12
|
+
FILTER_ICON = "cartIcon",
|
|
13
|
+
MINI_FILTER_TEXT = "miniFilterText",
|
|
14
|
+
FILTER_ITEMS_COUNT = "cartItemsCount",
|
|
15
|
+
CHIP_BUTTON = "chipButton",
|
|
16
|
+
CHIP_BUTTON_DEFAULT_STATE = "chipButtonDefault",
|
|
17
|
+
CHIP_BUTTON_HOVER_STATE = "chipButtonHover"
|
|
18
|
+
}
|
|
19
|
+
export declare const getDefaultData: () => {
|
|
20
|
+
layout: {
|
|
21
|
+
selectorKey: SelectorKeysEnum;
|
|
22
|
+
width: {
|
|
23
|
+
value: string;
|
|
24
|
+
unit: number;
|
|
25
|
+
};
|
|
26
|
+
height: {
|
|
27
|
+
value: string;
|
|
28
|
+
unit: number;
|
|
29
|
+
property?: any;
|
|
30
|
+
propertyType?: any;
|
|
31
|
+
isReadOnly?: boolean | undefined;
|
|
32
|
+
parentRef?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
margin: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
35
|
+
padding: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
36
|
+
positionType: CMSIBCommonInterface | undefined;
|
|
37
|
+
pinTo: CMSIBCommonInterface | undefined;
|
|
38
|
+
};
|
|
39
|
+
design: {
|
|
40
|
+
selectorKey: SelectorKeysEnum;
|
|
41
|
+
defaultState: {
|
|
42
|
+
selectorKey: SelectorKeysEnum;
|
|
43
|
+
backgroundColor: CMSIBCommonInterface;
|
|
44
|
+
borderColor: CMSIBCommonInterface;
|
|
45
|
+
borderStyle: CMSIBCommonInterface;
|
|
46
|
+
padding: {
|
|
47
|
+
isSepcial: boolean;
|
|
48
|
+
isAll?: boolean | undefined;
|
|
49
|
+
sides?: import("../../interfaces/global").PaddingSides | import("../../interfaces/global").BorderSides | undefined;
|
|
50
|
+
property?: string | undefined;
|
|
51
|
+
iscss?: boolean | undefined;
|
|
52
|
+
propertyType?: any;
|
|
53
|
+
};
|
|
54
|
+
borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
|
|
55
|
+
showBorder: CMSIBCommonInterface;
|
|
56
|
+
showShadow: CMSIBCommonInterface;
|
|
57
|
+
shadowColor: CMSIBCommonInterface;
|
|
58
|
+
blur: CMSIBSizeInterface;
|
|
59
|
+
spread: CMSIBSizeInterface;
|
|
60
|
+
angle: CMSIBSizeInterface;
|
|
61
|
+
borderRadius: import("../../interfaces/global").CSSPaddingValues;
|
|
62
|
+
theme: CMSIBCommonInterface;
|
|
63
|
+
font: CMSIBCommonInterface;
|
|
64
|
+
fontSize: CMSIBSizeInterface;
|
|
65
|
+
textColor: CMSIBCommonInterface;
|
|
66
|
+
bold: CMSIBCommonInterface;
|
|
67
|
+
italic: CMSIBCommonInterface;
|
|
68
|
+
linethrough: CMSIBCommonInterface;
|
|
69
|
+
underline: CMSIBCommonInterface;
|
|
70
|
+
textAlign: CMSIBCommonInterface;
|
|
71
|
+
characterSpacing: CMSIBSizeInterface;
|
|
72
|
+
lineHeight: CMSIBSizeInterface;
|
|
73
|
+
iconSize: CMSIBSizeInterface;
|
|
74
|
+
iconColor: {
|
|
75
|
+
value: {
|
|
76
|
+
rgb: {
|
|
77
|
+
r: number;
|
|
78
|
+
g: number;
|
|
79
|
+
b: number;
|
|
80
|
+
a: number;
|
|
81
|
+
};
|
|
82
|
+
hex: string;
|
|
83
|
+
};
|
|
84
|
+
property?: any;
|
|
85
|
+
propertyType?: any;
|
|
86
|
+
isReadOnly?: boolean | undefined;
|
|
87
|
+
parentRef?: string | undefined;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
hoverState: {
|
|
91
|
+
selectorKey: SelectorKeysEnum;
|
|
92
|
+
backgroundColor: CMSIBCommonInterface;
|
|
93
|
+
borderColor: CMSIBCommonInterface;
|
|
94
|
+
borderStyle: CMSIBCommonInterface;
|
|
95
|
+
borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
|
|
96
|
+
showBorder: CMSIBCommonInterface;
|
|
97
|
+
showShadow: CMSIBCommonInterface;
|
|
98
|
+
padding: {
|
|
99
|
+
isSepcial: boolean;
|
|
100
|
+
isAll?: boolean | undefined;
|
|
101
|
+
sides?: import("../../interfaces/global").PaddingSides | import("../../interfaces/global").BorderSides | undefined;
|
|
102
|
+
property?: string | undefined;
|
|
103
|
+
iscss?: boolean | undefined;
|
|
104
|
+
propertyType?: any;
|
|
105
|
+
};
|
|
106
|
+
shadowColor: CMSIBCommonInterface;
|
|
107
|
+
blur: CMSIBSizeInterface;
|
|
108
|
+
spread: CMSIBSizeInterface;
|
|
109
|
+
angle: CMSIBSizeInterface;
|
|
110
|
+
borderRadius: import("../../interfaces/global").CSSPaddingValues;
|
|
111
|
+
theme: CMSIBCommonInterface;
|
|
112
|
+
font: CMSIBCommonInterface;
|
|
113
|
+
fontSize: CMSIBSizeInterface;
|
|
114
|
+
textColor: CMSIBCommonInterface;
|
|
115
|
+
bold: CMSIBCommonInterface;
|
|
116
|
+
italic: CMSIBCommonInterface;
|
|
117
|
+
linethrough: CMSIBCommonInterface;
|
|
118
|
+
underline: CMSIBCommonInterface;
|
|
119
|
+
textAlign: CMSIBCommonInterface;
|
|
120
|
+
characterSpacing: CMSIBSizeInterface;
|
|
121
|
+
lineHeight: CMSIBSizeInterface;
|
|
122
|
+
iconSize: CMSIBSizeInterface;
|
|
123
|
+
iconColor: {
|
|
124
|
+
value: {
|
|
125
|
+
rgb: {
|
|
126
|
+
r: number;
|
|
127
|
+
g: number;
|
|
128
|
+
b: number;
|
|
129
|
+
a: number;
|
|
130
|
+
};
|
|
131
|
+
hex: string;
|
|
132
|
+
};
|
|
133
|
+
property?: any;
|
|
134
|
+
propertyType?: any;
|
|
135
|
+
isReadOnly?: boolean | undefined;
|
|
136
|
+
parentRef?: string | undefined;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
@@ -35,7 +35,11 @@ interface selfDesignInterface {
|
|
|
35
35
|
selectorKey: string;
|
|
36
36
|
[key: string]: any;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
checkboxCheckedStyle: {
|
|
39
|
+
selectorKey: string;
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
};
|
|
42
|
+
checkboxUncheckedStyle: {
|
|
39
43
|
selectorKey: string;
|
|
40
44
|
[key: string]: any;
|
|
41
45
|
};
|
|
@@ -43,7 +47,7 @@ interface selfDesignInterface {
|
|
|
43
47
|
selectorKey: string;
|
|
44
48
|
[key: string]: any;
|
|
45
49
|
};
|
|
46
|
-
|
|
50
|
+
selectedItem: {
|
|
47
51
|
selectorKey: string;
|
|
48
52
|
[key: string]: any;
|
|
49
53
|
};
|
|
@@ -67,15 +71,18 @@ export declare enum SelectorKeysEnum {
|
|
|
67
71
|
TAB_CONTENT_CONTAINER = "tabContentContainer",
|
|
68
72
|
TABS = "tabs",
|
|
69
73
|
FILTERS_WIDGET = "filtersWidget",
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
CHECKBOX_CHECKED_STYLE = "checkboxCheckedStyle",
|
|
75
|
+
CHECKBOX_UNCHECKED_STYLE = "checkboxUnCheckedStyle",
|
|
76
|
+
CHECKBOX_CHECKED_DEFAULT_STATE = "checkboxCheckedDefaultState",
|
|
77
|
+
CHECKBOX_CHECKED_HOVER_STATE = "checkboxCheckedHoverState",
|
|
78
|
+
CHECKBOX_UNCHECKED_DEFAULT_STATE = "checkboxUncheckedDefaultState",
|
|
79
|
+
CHECKBOX__UNCHECKED_HOVER_STATE = "checkboxUncheckedHoverState",
|
|
73
80
|
CLEAR_ALL_BUTTON = "clearAllText",
|
|
74
|
-
CHIP_BUTTON = "
|
|
81
|
+
CHIP_BUTTON = "selectedItem",
|
|
75
82
|
CLEAR_ALL_BUTTON_DEFAULT_STATE = "clearAllButtonDefaultState",
|
|
76
83
|
CLEAR_ALL_BUTTON_HOVER_STATE = "clearAllButtonHoverState",
|
|
77
|
-
CHIP_BUTTON_DEFAULT_STATE = "
|
|
78
|
-
CHIP_BUTTON_HOVER_STATE = "
|
|
84
|
+
CHIP_BUTTON_DEFAULT_STATE = "selectedItemDefaultState",
|
|
85
|
+
CHIP_BUTTON_HOVER_STATE = "selectedItemHoverState",
|
|
79
86
|
OPTION_STYLE = "optionStyle",
|
|
80
87
|
MORE_BUTTON = "moreButton",
|
|
81
88
|
MORE_BUTTON_DEFAULT_STATE = "moreButtonDefaultState",
|
|
@@ -91,4 +91,5 @@ import * as menuV2 from "./menu_v2";
|
|
|
91
91
|
import * as menuItem from "./menu-item";
|
|
92
92
|
import * as layouterPro from "./layouterPro";
|
|
93
93
|
import * as layouterProItem from "./layouter-pro-item";
|
|
94
|
-
|
|
94
|
+
import * as filterResults from "./filterResults";
|
|
95
|
+
export { amountEstimator, bulkVariantPicker, button, code, staticText, common, container, countdown, embed, faq, gallerySlider, grid, image, imageHotspot, map, paymentMethods, pickupLocations, price, productActions, productHighlights, productImage, productInventory, productPromotions, quantitySelector, scroll, section, shippingEstimator, slideShowLayouter, social, stack, storeLocations, table, tabs, text, uomSelector, variantPicker, video, volumePricing, lightbox, cart, profile, repeater, repeaterItem, product, menu, productOptions, productDetails, category, subCategory, brand, bundle, brandImage, filters, sort, pastOrders, quotes, rfqs, lightBoxV2, allocations, search, layouter, layouterItem, categoryDetails, contactUs, login, resetPassword, breadcrumbs, iconLibrary, searchResultsHeading, itemStock, cartDetails, cartSummary, checkout, allocationDetails, line, tabsV2, tabContainer, marchandiserSets, createForm, quickLinks, addOrder, buyForWithTabs, buyForTabsContainer, toaster, spotlight, bundleDetails, productCustomizations, iconList, orderStatus, menuV2, menuItem, layouterPro, layouterProItem, filterResults, };
|