@getlupa/client 0.10.3 → 0.10.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/cjs/index.min.js +17 -5
- package/dist/cjs/utils/shadowDom.utils.d.ts +4 -0
- package/dist/es/index.min.js +17 -5
- package/dist/es/utils/shadowDom.utils.d.ts +4 -0
- package/dist/iife/index.min.js +1 -1
- package/dist/iife/utils/shadowDom.utils.d.ts +4 -0
- package/dist/lupaContainerStyle.css +1 -1
- package/package.json +1 -1
package/dist/cjs/index.min.js
CHANGED
|
@@ -36924,7 +36924,8 @@ let SearchResultsToolbar = class SearchResultsToolbar extends Vue$1 {
|
|
|
36924
36924
|
: Boolean((_a = this.options.toolbar) === null || _a === void 0 ? void 0 : _a.layoutSelector);
|
|
36925
36925
|
}
|
|
36926
36926
|
get sortOptions() {
|
|
36927
|
-
|
|
36927
|
+
var _a;
|
|
36928
|
+
if (this.isBottomLocation || !((_a = this.options.sort) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
36928
36929
|
return undefined;
|
|
36929
36930
|
}
|
|
36930
36931
|
return {
|
|
@@ -40218,6 +40219,20 @@ var store = new Vuex.Store({
|
|
|
40218
40219
|
},
|
|
40219
40220
|
});
|
|
40220
40221
|
|
|
40222
|
+
const createShadowDom = (shadowId, managerId) => {
|
|
40223
|
+
let host = document.getElementById(shadowId);
|
|
40224
|
+
let manager = document.getElementById(managerId);
|
|
40225
|
+
if (!host) {
|
|
40226
|
+
host = document.createElement("div");
|
|
40227
|
+
manager = document.createElement("div");
|
|
40228
|
+
}
|
|
40229
|
+
if (!manager) {
|
|
40230
|
+
manager = document.createElement("div");
|
|
40231
|
+
}
|
|
40232
|
+
host.setAttribute("id", shadowId);
|
|
40233
|
+
manager === null || manager === void 0 ? void 0 : manager.setAttribute("id", managerId);
|
|
40234
|
+
return { host, manager };
|
|
40235
|
+
};
|
|
40221
40236
|
const attatchShadowDom = ({ host, manager, styleUrl, }) => {
|
|
40222
40237
|
const link = document.createElement("link");
|
|
40223
40238
|
link.type = "text/css";
|
|
@@ -40340,10 +40355,7 @@ const searchContainer = (options, mountOptions) => {
|
|
|
40340
40355
|
Vue$1.use(Vuex);
|
|
40341
40356
|
const id = "lupa-search-container-manager";
|
|
40342
40357
|
const shadowId = "lupa-shadow-id";
|
|
40343
|
-
const host =
|
|
40344
|
-
const manager = document.createElement("div");
|
|
40345
|
-
host.setAttribute("id", shadowId);
|
|
40346
|
-
manager.setAttribute("id", id);
|
|
40358
|
+
const { host, manager } = createShadowDom(shadowId, id);
|
|
40347
40359
|
attatchShadowDom({
|
|
40348
40360
|
host,
|
|
40349
40361
|
manager,
|
package/dist/es/index.min.js
CHANGED
|
@@ -36920,7 +36920,8 @@ let SearchResultsToolbar = class SearchResultsToolbar extends Vue$1 {
|
|
|
36920
36920
|
: Boolean((_a = this.options.toolbar) === null || _a === void 0 ? void 0 : _a.layoutSelector);
|
|
36921
36921
|
}
|
|
36922
36922
|
get sortOptions() {
|
|
36923
|
-
|
|
36923
|
+
var _a;
|
|
36924
|
+
if (this.isBottomLocation || !((_a = this.options.sort) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
36924
36925
|
return undefined;
|
|
36925
36926
|
}
|
|
36926
36927
|
return {
|
|
@@ -40214,6 +40215,20 @@ var store = new Vuex.Store({
|
|
|
40214
40215
|
},
|
|
40215
40216
|
});
|
|
40216
40217
|
|
|
40218
|
+
const createShadowDom = (shadowId, managerId) => {
|
|
40219
|
+
let host = document.getElementById(shadowId);
|
|
40220
|
+
let manager = document.getElementById(managerId);
|
|
40221
|
+
if (!host) {
|
|
40222
|
+
host = document.createElement("div");
|
|
40223
|
+
manager = document.createElement("div");
|
|
40224
|
+
}
|
|
40225
|
+
if (!manager) {
|
|
40226
|
+
manager = document.createElement("div");
|
|
40227
|
+
}
|
|
40228
|
+
host.setAttribute("id", shadowId);
|
|
40229
|
+
manager === null || manager === void 0 ? void 0 : manager.setAttribute("id", managerId);
|
|
40230
|
+
return { host, manager };
|
|
40231
|
+
};
|
|
40217
40232
|
const attatchShadowDom = ({ host, manager, styleUrl, }) => {
|
|
40218
40233
|
const link = document.createElement("link");
|
|
40219
40234
|
link.type = "text/css";
|
|
@@ -40336,10 +40351,7 @@ const searchContainer = (options, mountOptions) => {
|
|
|
40336
40351
|
Vue$1.use(Vuex);
|
|
40337
40352
|
const id = "lupa-search-container-manager";
|
|
40338
40353
|
const shadowId = "lupa-shadow-id";
|
|
40339
|
-
const host =
|
|
40340
|
-
const manager = document.createElement("div");
|
|
40341
|
-
host.setAttribute("id", shadowId);
|
|
40342
|
-
manager.setAttribute("id", id);
|
|
40354
|
+
const { host, manager } = createShadowDom(shadowId, id);
|
|
40343
40355
|
attatchShadowDom({
|
|
40344
40356
|
host,
|
|
40345
40357
|
manager,
|