solid-ui 2.4.22-fa878a83 → 2.4.22-fd705c8d

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/main.js CHANGED
@@ -13928,9 +13928,6 @@ function tabWidget(options) {
13928
13928
  ele.subject = item;
13929
13929
  var div = ele.appendChild(dom.createElement('button'));
13930
13930
  div.setAttribute('style', 'background: none; border: none; font: inherit; cursor: pointer');
13931
- var ellipsis = dom.createElement('button');
13932
- ellipsis.textContent = '...';
13933
- ellipsis.setAttribute('style', 'position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;');
13934
13931
 
13935
13932
  div.onclick = function () {
13936
13933
  resetTabStyle();
@@ -13947,27 +13944,33 @@ function tabWidget(options) {
13947
13944
  }
13948
13945
  };
13949
13946
 
13950
- ellipsis.onclick = function () {
13951
- resetTabStyle();
13952
- resetBodyStyle();
13953
- ele.setAttribute('style', selectedStyle);
13954
- if (!ele.bodyTR) return;
13955
- ele.bodyTR.setAttribute('style', shownStyle);
13956
- var bodyMain = getOrCreateContainerElement(ele);
13947
+ if (options.renderTabSettings && ele.subject) {
13948
+ var ellipsis = dom.createElement('button');
13949
+ ellipsis.textContent = '...';
13950
+ ellipsis.setAttribute('style', 'position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;');
13957
13951
 
13958
- if (options.renderTabSettings && ele.subject && bodyMain.asSettings !== true) {
13959
- bodyMain.innerHTML = 'loading settings ...' + item;
13960
- options.renderTabSettings(bodyMain, ele.subject);
13961
- bodyMain.asSettings = true;
13962
- }
13963
- };
13952
+ ellipsis.onclick = function () {
13953
+ resetTabStyle();
13954
+ resetBodyStyle();
13955
+ ele.setAttribute('style', selectedStyle);
13956
+ if (!ele.bodyTR) return;
13957
+ ele.bodyTR.setAttribute('style', shownStyle);
13958
+ var bodyMain = getOrCreateContainerElement(ele);
13959
+
13960
+ if (options.renderTabSettings && ele.subject && bodyMain.asSettings !== true) {
13961
+ bodyMain.innerHTML = 'loading settings ...' + item;
13962
+ options.renderTabSettings(bodyMain, ele.subject);
13963
+ bodyMain.asSettings = true;
13964
+ }
13965
+ };
13966
+
13967
+ ele.appendChild(ellipsis);
13968
+ }
13964
13969
 
13965
13970
  if (options.renderTab) {
13966
13971
  options.renderTab(div, item);
13967
- ele.appendChild(ellipsis);
13968
13972
  } else {
13969
13973
  div.innerHTML = (0, _utils.label)(item);
13970
- ele.appendChild(ellipsis);
13971
13974
  }
13972
13975
 
13973
13976
  return ele;
@@ -15151,8 +15154,8 @@ Object.defineProperty(exports, "__esModule", ({
15151
15154
  }));
15152
15155
  exports.versionInfo = void 0;
15153
15156
  var versionInfo = {
15154
- buildTime: '2022-07-05T14:25:00Z',
15155
- commit: 'fa878a83b4f0bd67519ef3bd4952eb375704bad6',
15157
+ buildTime: '2022-08-21T17:31:40Z',
15158
+ commit: 'fd705c8d6e9df5698aa55d0a2784bd3ce336493c',
15156
15159
  npmInfo: {
15157
15160
  'solid-ui': '2.4.22',
15158
15161
  npm: '6.14.17',
@@ -15160,12 +15163,12 @@ var versionInfo = {
15160
15163
  brotli: '1.0.9',
15161
15164
  cldr: '40.0',
15162
15165
  icu: '70.1',
15163
- llhttp: '2.1.4',
15166
+ llhttp: '2.1.5',
15164
15167
  modules: '83',
15165
15168
  napi: '8',
15166
15169
  nghttp2: '1.42.0',
15167
- node: '14.19.3',
15168
- openssl: '1.1.1o',
15170
+ node: '14.20.0',
15171
+ openssl: '1.1.1q',
15169
15172
  tz: '2021a3',
15170
15173
  unicode: '14.0',
15171
15174
  uv: '1.42.0',
@@ -18145,7 +18148,7 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
18145
18148
  var possibleProperties;
18146
18149
  possible = kb.each(undefined, ns.rdf('type'), uiFrom, formDoc);
18147
18150
 
18148
- for (var x in kb.findMembersNT(uiFrom)) {
18151
+ for (var x in findMembersNT(kb, uiFrom, dataDoc)) {
18149
18152
  possible.push(kb.fromNT(x));
18150
18153
  } // Use rdfs
18151
18154
 
@@ -19242,6 +19245,70 @@ function containsObject(obj, list) {
19242
19245
  }
19243
19246
 
19244
19247
  return false;
19248
+ } // This functions replaces the findMembersNT (thisClass) from rdflib until we fix: https://github.com/linkeddata/rdflib.js/issues/565
19249
+
19250
+ /**
19251
+ * For anything which has thisClass (or any subclass) as its type,
19252
+ * or is the object of something which has thisClass (or any subclass) as its range,
19253
+ * or subject of something which has thisClass (or any subclass) as its domain
19254
+ * We don't bother doing subproperty (yet?) as it doesn't seem to be used
19255
+ * much.
19256
+ * Get all the Classes of which we can RDFS-infer the subject is a member
19257
+ * @return a hash of URIs
19258
+ */
19259
+
19260
+
19261
+ function findMembersNT(store, thisClass, quad) {
19262
+ var len2;
19263
+ var len4;
19264
+ var m;
19265
+ var pred;
19266
+ var ref1;
19267
+ var ref2;
19268
+ var ref3;
19269
+ var ref4;
19270
+ var ref5;
19271
+ var st;
19272
+ var u;
19273
+ var seeds = {};
19274
+ seeds[thisClass.toNT()] = true;
19275
+ var members = {};
19276
+ var ref = store.transitiveClosure(seeds, store.rdfFactory.namedNode('http://www.w3.org/2000/01/rdf-schema#subClassOf'), true);
19277
+
19278
+ for (var t in ref) {
19279
+ ref1 = store.statementsMatching(null, store.rdfFactory.namedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'), store.fromNT(t), quad);
19280
+
19281
+ for (var i = 0, len = ref1.length; i < len; i++) {
19282
+ st = ref1[i];
19283
+ members[st.subject.toNT()] = st;
19284
+ }
19285
+
19286
+ ref2 = store.each(null, store.rdfFactory.namedNode('http://www.w3.org/2000/01/rdf-schema#domain'), store.fromNT(t), quad);
19287
+
19288
+ for (var l = 0, len1 = ref2.length; l < len1; l++) {
19289
+ pred = ref2[l];
19290
+ ref3 = store.statementsMatching(null, pred, null, quad);
19291
+
19292
+ for (m = 0, len2 = ref3.length; m < len2; m++) {
19293
+ st = ref3[m];
19294
+ members[st.subject.toNT()] = st;
19295
+ }
19296
+ }
19297
+
19298
+ ref4 = store.each(null, store.rdfFactory.namedNode('http://www.w3.org/2000/01/rdf-schema#range'), store.fromNT(t), quad);
19299
+
19300
+ for (var q = 0, len3 = ref4.length; q < len3; q++) {
19301
+ pred = ref4[q];
19302
+ ref5 = store.statementsMatching(null, pred, null, quad);
19303
+
19304
+ for (u = 0, len4 = ref5.length; u < len4; u++) {
19305
+ st = ref5[u];
19306
+ members[st.object.toNT()] = st;
19307
+ }
19308
+ }
19309
+ }
19310
+
19311
+ return members;
19245
19312
  }
19246
19313
  //# sourceMappingURL=forms.js.map
19247
19314