@startinblox/core 2.0.6-beta.3 → 2.0.6-beta.4
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.
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { q as mergeContexts, o as getRawContext, n as normalizeContext } from "./helpers-vZrb1UDN.js";
|
|
5
|
-
import { S as StoreService } from "./store-
|
|
5
|
+
import { S as StoreService } from "./store-BcSuqX-r.js";
|
|
6
6
|
const store = StoreService.getInstance();
|
|
7
7
|
class CustomGetter {
|
|
8
8
|
// search attributes to give to server
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { g as getDefaultExportFromCjs, S as StoreService, b as base_context, f as formatAttributesToServerPaginationOptions, m as mergeServerSearchOptions, a as formatAttributesToServerSearchOptions, c as StoreType, d as StoreFactory, h as hasSetLocalData, e as hasQueryIndex, __tla as __tla_0 } from "./store-
|
|
4
|
+
import { g as getDefaultExportFromCjs, S as StoreService, b as base_context, f as formatAttributesToServerPaginationOptions, m as mergeServerSearchOptions, a as formatAttributesToServerSearchOptions, c as StoreType, d as StoreFactory, h as hasSetLocalData, e as hasQueryIndex, __tla as __tla_0 } from "./store-BcSuqX-r.js";
|
|
5
5
|
import { d as defineComponent, n as normalizeContext, u as uniqID, f as fuzzyCompare, a as asyncQuerySelector, i as importInlineCSS, b as importCSS, c as doesResourceContainList, e as findClosingBracketMatchIndex, p as parseFieldsString, g as evalTemplateString, h as compare, j as generalComparator, t as transformArrayToContainer, s as setDeepProperty } from "./helpers-vZrb1UDN.js";
|
|
6
6
|
import { k } from "./helpers-vZrb1UDN.js";
|
|
7
7
|
let index$4, BaseWidgetMixin, index$3, CounterMixin, EdcAssetsDisplay, EdcCatalogDisplay, EdcFederatedCatalogDisplay, FederationMixin, FilterMixin, GrouperMixin, HighlighterMixin, ListMixin, NextMixin, PaginateMixin, RequiredMixin, Sib, SolidAcChecker, SolidDelete, SolidDisplay, SolidForm, SolidFormSearch, SolidLang, SolidMemberAdd, SolidMemberDelete, SolidMembership, SolidTable, SolidTemplateElement, SolidWidget, SorterMixin, StoreMixin, index$2, index$1, index, TranslationMixin, ValidationMixin, WidgetMixin, x, o$2, newWidgetFactory, B, o$1, m, widgetFactory;
|
|
@@ -1392,9 +1392,8 @@ let __tla = (async () => {
|
|
|
1392
1392
|
return await response.json();
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
|
-
function getFederatedCatalogueAPIWrapper(baseUrl,
|
|
1396
|
-
|
|
1397
|
-
return new FederatedCatalogueAPIWrapper(options, baseUrl);
|
|
1395
|
+
function getFederatedCatalogueAPIWrapper(baseUrl, loginOptions) {
|
|
1396
|
+
return new FederatedCatalogueAPIWrapper(loginOptions, baseUrl);
|
|
1398
1397
|
}
|
|
1399
1398
|
class FederatedCatalogueStore {
|
|
1400
1399
|
constructor(cfg) {
|
|
@@ -1408,11 +1407,8 @@ let __tla = (async () => {
|
|
|
1408
1407
|
if (!this.cfg.endpoint) {
|
|
1409
1408
|
throw new Error("Missing required `endpoint` in StoreConfig for FederatedCatalogueStore");
|
|
1410
1409
|
}
|
|
1411
|
-
if (!this.cfg.optionsServer) {
|
|
1412
|
-
throw new Error("Missing required `optionsServer` in StoreConfig for FederatedCatalogueStore");
|
|
1413
|
-
}
|
|
1414
1410
|
try {
|
|
1415
|
-
this.fcApi = getFederatedCatalogueAPIWrapper(this.cfg.endpoint, this.cfg.login
|
|
1411
|
+
this.fcApi = getFederatedCatalogueAPIWrapper(this.cfg.endpoint, this.cfg.login);
|
|
1416
1412
|
} catch (e) {
|
|
1417
1413
|
console.error("[FederatedCatalogueStore] Failed to initialize API wrapper:", e);
|
|
1418
1414
|
this.fcApi = null;
|
|
@@ -28574,7 +28570,7 @@ sh:property [
|
|
|
28574
28570
|
this.searchProvider = new SolidIndexingSearchProvider(this.getData.bind(this));
|
|
28575
28571
|
}
|
|
28576
28572
|
async initGetter() {
|
|
28577
|
-
const { CustomGetter } = await import("./custom-getter-
|
|
28573
|
+
const { CustomGetter } = await import("./custom-getter-BZ0qtPQ6.js");
|
|
28578
28574
|
return CustomGetter;
|
|
28579
28575
|
}
|
|
28580
28576
|
async getData(id, context2, parentId, localData, forceFetch, serverPagination, serverSearch, headers, bypassLoadingList) {
|
package/dist/store.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startinblox/core",
|
|
3
|
-
"version": "2.0.6-beta.
|
|
3
|
+
"version": "2.0.6-beta.4",
|
|
4
4
|
"description": "This is a series of web component respecting both the web components standards and the Linked Data Platform convention.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|