@designcrowd/library.brand-page 5.10.39-ha-shape-search-2 → 5.10.39
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/lib/src/clients/asset-library-clients.d.ts +3 -4
- package/lib/src/clients/asset-library-clients.js +8 -8
- package/lib/src/composables/useTranslate.d.ts +1 -2
- package/lib/src/composables/useTranslate.js +1 -9
- package/lib/src/css/library.brand-page-brandCrowd.min.css +3 -3
- package/lib/src/css/library.brand-page-brandPage.min.css +3 -3
- package/lib/src/css/library.brand-page-designCom.min.css +3 -3
- package/lib/src/css/library.brand-page-preview.min.css +3 -3
- package/lib/src/index.mjs +11896 -11912
- package/lib/src/shared/shape-library/ShapeLibrary.mixin.d.ts +0 -4
- package/lib/src/shared/shape-library/ShapeLibrary.mixin.js +7 -17
- package/package.json +1 -1
- package/src/clients/asset-library-clients.ts +5 -11
- package/src/composables/useTranslate.ts +0 -12
- package/src/shared/background-settings/components/BackgroundSettings.vue +2 -6
- package/src/shared/shape-library/ShapeLibrary.mixin.ts +4 -23
- package/src/shared/template-settings/components/TemplatesSettings.vue +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { LocaleTypes } from '../composables/useTranslate';
|
|
2
1
|
import type { ShapeCategoryModel, ShapeSearchResponseModel } from '../models/shapeModels';
|
|
3
2
|
export default class AssetLibraryClient {
|
|
4
3
|
baseUrl: string;
|
|
@@ -8,8 +7,8 @@ export default class AssetLibraryClient {
|
|
|
8
7
|
private getShapeCategoriesEndpoint;
|
|
9
8
|
private getShapesByIdsEndpoint;
|
|
10
9
|
private getShapesByTokensEndpoint;
|
|
11
|
-
getShapesBySearchTermOrCategoryEndpoint: (searchTerm: string, category: string, page: number, pageSize: number, makerMode: string, includeDisabled: boolean,
|
|
10
|
+
getShapesBySearchTermOrCategoryEndpoint: (searchTerm: string, category: string, page: number, pageSize: number, makerMode: string, includeDisabled: boolean, pageName?: string, pageSection?: string, templateType?: string, searchId?: string) => string;
|
|
12
11
|
getFonts(): Promise<any>;
|
|
13
|
-
getShapeCategoriesAsync(
|
|
14
|
-
getShapesBySearchTermOrCategoryAsync(searchTerm: string | null, category: string | null, page: number, pageSize: number,
|
|
12
|
+
getShapeCategoriesAsync(): Promise<ShapeCategoryModel[]>;
|
|
13
|
+
getShapesBySearchTermOrCategoryAsync(searchTerm: string | null, category: string | null, page: number, pageSize: number, makerMode?: string, includeDisabled?: boolean, pageName?: string, pageSection?: string, templateType?: string, searchId?: string): Promise<ShapeSearchResponseModel>;
|
|
15
14
|
}
|
|
@@ -9,8 +9,8 @@ export default class AssetLibraryClient {
|
|
|
9
9
|
getFontsEndpoint(version) {
|
|
10
10
|
return `${this.baseUrl}/maker/api/font/${version}`;
|
|
11
11
|
}
|
|
12
|
-
getShapeCategoriesEndpoint(
|
|
13
|
-
return `${this.baseUrl}/api/shape/getcategories
|
|
12
|
+
getShapeCategoriesEndpoint() {
|
|
13
|
+
return `${this.baseUrl}/api/shape/getcategories`;
|
|
14
14
|
}
|
|
15
15
|
getShapesByIdsEndpoint = (shapeIds) => `${this.baseUrl}/api/shape/getbyids?${shapeIds
|
|
16
16
|
.map((x) => `ids=${x}`)
|
|
@@ -18,8 +18,8 @@ export default class AssetLibraryClient {
|
|
|
18
18
|
getShapesByTokensEndpoint = (shapeTokens) => `${this.baseUrl}/api/shape/getbytokens?${shapeTokens
|
|
19
19
|
.map((x) => `tokens=${x}`)
|
|
20
20
|
.join('&')}`;
|
|
21
|
-
getShapesBySearchTermOrCategoryEndpoint = (searchTerm, category, page, pageSize, makerMode, includeDisabled,
|
|
22
|
-
let endpoint = `${this.baseUrl}/api/shape/search?searchterm=${searchTerm}&category=${category}&page=${page}&pageSize=${pageSize}&makerMode=${makerMode}&includeDisabled=${includeDisabled}
|
|
21
|
+
getShapesBySearchTermOrCategoryEndpoint = (searchTerm, category, page, pageSize, makerMode, includeDisabled, pageName, pageSection, templateType, searchId) => {
|
|
22
|
+
let endpoint = `${this.baseUrl}/api/shape/search?searchterm=${searchTerm}&category=${category}&page=${page}&pageSize=${pageSize}&makerMode=${makerMode}&includeDisabled=${includeDisabled}`;
|
|
23
23
|
if (pageName) {
|
|
24
24
|
endpoint += `&pageName=${pageName}`;
|
|
25
25
|
}
|
|
@@ -43,9 +43,9 @@ export default class AssetLibraryClient {
|
|
|
43
43
|
return console.error(error);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
async getShapeCategoriesAsync(
|
|
46
|
+
async getShapeCategoriesAsync() {
|
|
47
47
|
try {
|
|
48
|
-
const resp = await axios.get(this.getShapeCategoriesEndpoint(
|
|
48
|
+
const resp = await axios.get(this.getShapeCategoriesEndpoint());
|
|
49
49
|
return resp.data;
|
|
50
50
|
}
|
|
51
51
|
catch (error) {
|
|
@@ -53,8 +53,8 @@ export default class AssetLibraryClient {
|
|
|
53
53
|
}
|
|
54
54
|
return [];
|
|
55
55
|
}
|
|
56
|
-
async getShapesBySearchTermOrCategoryAsync(searchTerm, category, page, pageSize,
|
|
57
|
-
const url = this.getShapesBySearchTermOrCategoryEndpoint(searchTerm ?? '', category ?? '', page, pageSize, makerMode ?? '', includeDisabled,
|
|
56
|
+
async getShapesBySearchTermOrCategoryAsync(searchTerm, category, page, pageSize, makerMode, includeDisabled = false, pageName, pageSection, templateType, searchId) {
|
|
57
|
+
const url = this.getShapesBySearchTermOrCategoryEndpoint(searchTerm ?? '', category ?? '', page, pageSize, makerMode ?? '', includeDisabled, pageName, pageSection, templateType, searchId);
|
|
58
58
|
return axios.get(url).then((response) => {
|
|
59
59
|
return response.data;
|
|
60
60
|
});
|
|
@@ -61,5 +61,4 @@ declare const publishBrandPageModalWithStateTr: (key: any, valuesToInterpolate?:
|
|
|
61
61
|
declare const existingDomainModalTr: (key: any) => any;
|
|
62
62
|
declare const sensitiveContentModalTr: (key: any, valuesToInterpolate?: {}) => any;
|
|
63
63
|
declare const quickLinkBarTr: (key: any) => any;
|
|
64
|
-
|
|
65
|
-
export { setLocaleAsync, tr, currentLocale, modelsTr, commonTr, actionBarTr, brandPageSettingsTr, colorPaletteTr, navigationTr, converterTr, backgroundSettingsTr, colorPickerTr, colorReplacementFieldTr, contentSettingsTr, formFieldsTr, genericTextInputTr, imageFieldTr, imagesFieldTr, linksFieldTr, logoSelectionSettingsTr, paymentConfigTr, replaceImageSettingTr, shapeFieldTr, testimonialItemsFieldTr, textFieldTr, textImageFieldTr, textItemsFieldTr, textStyleFieldTr, textAreaFieldTr, productConfigOptionTr, editLogoSettingsTr, myUploadSettingsTr, pageSettingsTr, pageSettingsSectionTr, templateSettingsTr, unsplashLibraryTr, seoSettingsTr, styleSettingsTr, sensitiveSettingTr, socialShareTr, cookieSettingTr, googleAnalyticsTr, colorFieldTr, validatorTr, constantsTr, layoutSwitcherTr, brandpageBackgroundSettingsTr, loginMessageTr, cookieTr, logoSelectionTr, googleAddressFieldTr, myDesignsTr, pageSettingTr, shapeLibraryTr, errorTr, dropzoneUploaderTr, shopTr, paymentTr, publishBrandPageModalWithStateTr, existingDomainModalTr, sensitiveContentModalTr, quickLinkBarTr, };
|
|
64
|
+
export { setLocaleAsync, tr, modelsTr, commonTr, actionBarTr, brandPageSettingsTr, colorPaletteTr, navigationTr, converterTr, backgroundSettingsTr, colorPickerTr, colorReplacementFieldTr, contentSettingsTr, formFieldsTr, genericTextInputTr, imageFieldTr, imagesFieldTr, linksFieldTr, logoSelectionSettingsTr, paymentConfigTr, replaceImageSettingTr, shapeFieldTr, testimonialItemsFieldTr, textFieldTr, textImageFieldTr, textItemsFieldTr, textStyleFieldTr, textAreaFieldTr, productConfigOptionTr, editLogoSettingsTr, myUploadSettingsTr, pageSettingsTr, pageSettingsSectionTr, templateSettingsTr, unsplashLibraryTr, seoSettingsTr, styleSettingsTr, sensitiveSettingTr, socialShareTr, cookieSettingTr, googleAnalyticsTr, colorFieldTr, validatorTr, constantsTr, layoutSwitcherTr, brandpageBackgroundSettingsTr, loginMessageTr, cookieTr, logoSelectionTr, googleAddressFieldTr, myDesignsTr, pageSettingTr, shapeLibraryTr, errorTr, dropzoneUploaderTr, shopTr, paymentTr, publishBrandPageModalWithStateTr, existingDomainModalTr, sensitiveContentModalTr, quickLinkBarTr, };
|
|
@@ -113,12 +113,4 @@ const publishBrandPageModalWithStateTr = (key, valuesToInterpolate = {}) => tr(`
|
|
|
113
113
|
const existingDomainModalTr = (key) => tr(`existingDomainModal.${key}`);
|
|
114
114
|
const sensitiveContentModalTr = (key, valuesToInterpolate = {}) => tr(`sensitiveContentModal.${key}`, valuesToInterpolate);
|
|
115
115
|
const quickLinkBarTr = (key) => tr(`quickLinkBar.${key}`);
|
|
116
|
-
|
|
117
|
-
const i18 = getI18NextInstance();
|
|
118
|
-
const locale = i18.language;
|
|
119
|
-
if (supportedLocales.includes(locale)) {
|
|
120
|
-
return locale;
|
|
121
|
-
}
|
|
122
|
-
return fallbackLocale;
|
|
123
|
-
};
|
|
124
|
-
export { setLocaleAsync, tr, currentLocale, modelsTr, commonTr, actionBarTr, brandPageSettingsTr, colorPaletteTr, navigationTr, converterTr, backgroundSettingsTr, colorPickerTr, colorReplacementFieldTr, contentSettingsTr, formFieldsTr, genericTextInputTr, imageFieldTr, imagesFieldTr, linksFieldTr, logoSelectionSettingsTr, paymentConfigTr, replaceImageSettingTr, shapeFieldTr, testimonialItemsFieldTr, textFieldTr, textImageFieldTr, textItemsFieldTr, textStyleFieldTr, textAreaFieldTr, productConfigOptionTr, editLogoSettingsTr, myUploadSettingsTr, pageSettingsTr, pageSettingsSectionTr, templateSettingsTr, unsplashLibraryTr, seoSettingsTr, styleSettingsTr, sensitiveSettingTr, socialShareTr, cookieSettingTr, googleAnalyticsTr, colorFieldTr, validatorTr, constantsTr, layoutSwitcherTr, brandpageBackgroundSettingsTr, loginMessageTr, cookieTr, logoSelectionTr, googleAddressFieldTr, myDesignsTr, pageSettingTr, shapeLibraryTr, errorTr, dropzoneUploaderTr, shopTr, paymentTr, publishBrandPageModalWithStateTr, existingDomainModalTr, sensitiveContentModalTr, quickLinkBarTr, };
|
|
116
|
+
export { setLocaleAsync, tr, modelsTr, commonTr, actionBarTr, brandPageSettingsTr, colorPaletteTr, navigationTr, converterTr, backgroundSettingsTr, colorPickerTr, colorReplacementFieldTr, contentSettingsTr, formFieldsTr, genericTextInputTr, imageFieldTr, imagesFieldTr, linksFieldTr, logoSelectionSettingsTr, paymentConfigTr, replaceImageSettingTr, shapeFieldTr, testimonialItemsFieldTr, textFieldTr, textImageFieldTr, textItemsFieldTr, textStyleFieldTr, textAreaFieldTr, productConfigOptionTr, editLogoSettingsTr, myUploadSettingsTr, pageSettingsTr, pageSettingsSectionTr, templateSettingsTr, unsplashLibraryTr, seoSettingsTr, styleSettingsTr, sensitiveSettingTr, socialShareTr, cookieSettingTr, googleAnalyticsTr, colorFieldTr, validatorTr, constantsTr, layoutSwitcherTr, brandpageBackgroundSettingsTr, loginMessageTr, cookieTr, logoSelectionTr, googleAddressFieldTr, myDesignsTr, pageSettingTr, shapeLibraryTr, errorTr, dropzoneUploaderTr, shopTr, paymentTr, publishBrandPageModalWithStateTr, existingDomainModalTr, sensitiveContentModalTr, quickLinkBarTr, };
|
|
@@ -8534,14 +8534,14 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8534
8534
|
background-position: top 50% right 0.5rem;
|
|
8535
8535
|
}
|
|
8536
8536
|
|
|
8537
|
-
.template-preview-container[data-v-
|
|
8537
|
+
.template-preview-container[data-v-e9516b0f] {
|
|
8538
8538
|
border-radius: 0.5rem;
|
|
8539
8539
|
height: 25rem;
|
|
8540
8540
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
8541
8541
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
8542
8542
|
}
|
|
8543
8543
|
@media (min-width: 768px) {
|
|
8544
|
-
.template-preview-container[data-v-
|
|
8544
|
+
.template-preview-container[data-v-e9516b0f] {
|
|
8545
8545
|
-webkit-transition-property: all;
|
|
8546
8546
|
transition-property: all;
|
|
8547
8547
|
-webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -8551,7 +8551,7 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8551
8551
|
-webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
8552
8552
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
8553
8553
|
}
|
|
8554
|
-
.template-preview-container[data-v-
|
|
8554
|
+
.template-preview-container[data-v-e9516b0f]:hover {
|
|
8555
8555
|
-webkit-transform: scale(1.01);
|
|
8556
8556
|
transform: scale(1.01);
|
|
8557
8557
|
}
|
|
@@ -8862,14 +8862,14 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8862
8862
|
background-position: top 50% right 0.5rem;
|
|
8863
8863
|
}
|
|
8864
8864
|
|
|
8865
|
-
.template-preview-container[data-v-
|
|
8865
|
+
.template-preview-container[data-v-e9516b0f] {
|
|
8866
8866
|
border-radius: 0.5rem;
|
|
8867
8867
|
height: 25rem;
|
|
8868
8868
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
8869
8869
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
8870
8870
|
}
|
|
8871
8871
|
@media (min-width: 768px) {
|
|
8872
|
-
.template-preview-container[data-v-
|
|
8872
|
+
.template-preview-container[data-v-e9516b0f] {
|
|
8873
8873
|
-webkit-transition-property: all;
|
|
8874
8874
|
transition-property: all;
|
|
8875
8875
|
-webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -8879,7 +8879,7 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8879
8879
|
-webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
8880
8880
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
8881
8881
|
}
|
|
8882
|
-
.template-preview-container[data-v-
|
|
8882
|
+
.template-preview-container[data-v-e9516b0f]:hover {
|
|
8883
8883
|
-webkit-transform: scale(1.01);
|
|
8884
8884
|
transform: scale(1.01);
|
|
8885
8885
|
}
|
|
@@ -8552,14 +8552,14 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8552
8552
|
background-position: top 50% right 0.5rem;
|
|
8553
8553
|
}
|
|
8554
8554
|
|
|
8555
|
-
.template-preview-container[data-v-
|
|
8555
|
+
.template-preview-container[data-v-e9516b0f] {
|
|
8556
8556
|
border-radius: 0.75rem;
|
|
8557
8557
|
height: 25rem;
|
|
8558
8558
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
8559
8559
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
8560
8560
|
}
|
|
8561
8561
|
@media (min-width: 768px) {
|
|
8562
|
-
.template-preview-container[data-v-
|
|
8562
|
+
.template-preview-container[data-v-e9516b0f] {
|
|
8563
8563
|
-webkit-transition-property: all;
|
|
8564
8564
|
transition-property: all;
|
|
8565
8565
|
-webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -8569,7 +8569,7 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8569
8569
|
-webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
8570
8570
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
8571
8571
|
}
|
|
8572
|
-
.template-preview-container[data-v-
|
|
8572
|
+
.template-preview-container[data-v-e9516b0f]:hover {
|
|
8573
8573
|
-webkit-transform: scale(1.01);
|
|
8574
8574
|
transform: scale(1.01);
|
|
8575
8575
|
}
|
|
@@ -8294,14 +8294,14 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8294
8294
|
background-position: top 50% right 0.5rem;
|
|
8295
8295
|
}
|
|
8296
8296
|
|
|
8297
|
-
.bp .template-preview-container[data-v-
|
|
8297
|
+
.bp .template-preview-container[data-v-e9516b0f] {
|
|
8298
8298
|
border-radius: 0.5rem;
|
|
8299
8299
|
height: 25rem;
|
|
8300
8300
|
-webkit-box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
8301
8301
|
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
8302
8302
|
}
|
|
8303
8303
|
@media (min-width: 768px) {
|
|
8304
|
-
.bp .template-preview-container[data-v-
|
|
8304
|
+
.bp .template-preview-container[data-v-e9516b0f] {
|
|
8305
8305
|
-webkit-transition-property: all;
|
|
8306
8306
|
transition-property: all;
|
|
8307
8307
|
-webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -8311,7 +8311,7 @@ input[type='number'][data-v-28a532b4] {
|
|
|
8311
8311
|
-webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
8312
8312
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
8313
8313
|
}
|
|
8314
|
-
.bp .template-preview-container[data-v-
|
|
8314
|
+
.bp .template-preview-container[data-v-e9516b0f]:hover {
|
|
8315
8315
|
-webkit-transform: scale(1.01);
|
|
8316
8316
|
transform: scale(1.01);
|
|
8317
8317
|
}
|