@startinblox/core 2.0.5-beta.2 → 2.0.5-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-Bew5Yvdt.js";
|
|
5
|
-
import { S as StoreService } from "./store-
|
|
5
|
+
import { S as StoreService } from "./store-BJnPcJxT.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, h as hasSetLocalData, c 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, h as hasSetLocalData, c as hasQueryIndex, __tla as __tla_0 } from "./store-BJnPcJxT.js";
|
|
5
5
|
import { d as defineComponent, n as normalizeContext, u as uniqID, e as evalTemplateString, a as doesResourceContainList, c as compare, p as parseFieldsString, f as findClosingBracketMatchIndex, g as generalComparator, b as fuzzyCompare, h as asyncQuerySelector, i as importInlineCSS, j as importCSS, t as transformArrayToContainer, s as setDeepProperty } from "./helpers-Bew5Yvdt.js";
|
|
6
6
|
import { k } from "./helpers-Bew5Yvdt.js";
|
|
7
7
|
let index$4, BaseWidgetMixin, index$3, CounterMixin, 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;
|
|
@@ -806,7 +806,7 @@ Component: ${componentName}
|
|
|
806
806
|
}
|
|
807
807
|
};
|
|
808
808
|
const ContextMixin = {
|
|
809
|
-
name: "
|
|
809
|
+
name: "context-mixin",
|
|
810
810
|
use: [],
|
|
811
811
|
attributes: {
|
|
812
812
|
extraContext: {
|
|
@@ -3065,7 +3065,7 @@ Component: ${componentName}
|
|
|
3065
3065
|
if (!hasSetLocalData(store$a)) {
|
|
3066
3066
|
throw new Error("Store does not support setLocalData method");
|
|
3067
3067
|
}
|
|
3068
|
-
store$a.setLocalData(this.localResources, this.dataSrc, false
|
|
3068
|
+
store$a.setLocalData(this.localResources, this.dataSrc, false);
|
|
3069
3069
|
if (this.loader) {
|
|
3070
3070
|
this.loader.toggleAttribute("hidden", false);
|
|
3071
3071
|
}
|
|
@@ -3126,7 +3126,7 @@ Component: ${componentName}
|
|
|
3126
3126
|
if (!hasSetLocalData(store$a)) {
|
|
3127
3127
|
throw new Error("Store does not support setLocalData method");
|
|
3128
3128
|
}
|
|
3129
|
-
await store$a.setLocalData(this.localResources, this.dataSrc);
|
|
3129
|
+
await store$a.setLocalData(this.localResources, this.dataSrc, true);
|
|
3130
3130
|
if (this.loader) this.loader.toggleAttribute("hidden", true);
|
|
3131
3131
|
},
|
|
3132
3132
|
isFilteredOnServer() {
|
|
@@ -100266,10 +100266,13 @@ ${escapeText(this.code(index2, length))}
|
|
|
100266
100266
|
if (!this.dataSrc) console.error(new Error('You must provide a "fields" attribute'));
|
|
100267
100267
|
if (!resource) return [];
|
|
100268
100268
|
const fields = [];
|
|
100269
|
-
|
|
100270
|
-
|
|
100271
|
-
|
|
100272
|
-
|
|
100269
|
+
const properties = await resource.properties;
|
|
100270
|
+
if (properties) {
|
|
100271
|
+
for (const prop of properties) {
|
|
100272
|
+
if (!prop.startsWith("@") && !(prop === "permissions")) {
|
|
100273
|
+
if (!this.isAlias(prop) && await resource[prop]) fields.push(prop);
|
|
100274
|
+
else if (this.isAlias(prop)) fields.push(prop);
|
|
100275
|
+
}
|
|
100273
100276
|
}
|
|
100274
100277
|
}
|
|
100275
100278
|
return fields;
|
|
@@ -101160,7 +101163,6 @@ ${escapeText(this.code(index2, length))}
|
|
|
101160
101163
|
use: [
|
|
101161
101164
|
NextMixin,
|
|
101162
101165
|
ValidationMixin,
|
|
101163
|
-
ContextMixin,
|
|
101164
101166
|
StoreMixin
|
|
101165
101167
|
],
|
|
101166
101168
|
attributes: {
|