solid-ui 2.4.27-5b3471ff → 2.4.27-cc09c445
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 +9 -5
- package/dist/main.js.map +1 -1
- package/lib/versionInfo.js +2 -2
- package/lib/versionInfo.js.map +1 -1
- package/lib/widgets/forms.js +7 -3
- package/lib/widgets/forms.js.map +1 -1
- package/package.json +1 -1
package/lib/versionInfo.js
CHANGED
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.versionInfo = void 0;
|
|
7
7
|
var versionInfo = {
|
|
8
|
-
buildTime: '2023-03-
|
|
9
|
-
commit: '
|
|
8
|
+
buildTime: '2023-03-24T18:03:19Z',
|
|
9
|
+
commit: 'cc09c44578dd36285b0a8e1e4e7ee66457acbea6',
|
|
10
10
|
npmInfo: {
|
|
11
11
|
'solid-ui': '2.4.27',
|
|
12
12
|
npm: '8.19.4',
|
package/lib/versionInfo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionInfo.js","names":["versionInfo","buildTime","commit","npmInfo","npm","node","v8","uv","zlib","brotli","ares","modules","nghttp2","napi","llhttp","openssl","cldr","icu","tz","unicode","ngtcp2","nghttp3","exports"],"sources":["../src/versionInfo.ts"],"sourcesContent":["export const versionInfo = {\n buildTime: '2023-03-
|
|
1
|
+
{"version":3,"file":"versionInfo.js","names":["versionInfo","buildTime","commit","npmInfo","npm","node","v8","uv","zlib","brotli","ares","modules","nghttp2","napi","llhttp","openssl","cldr","icu","tz","unicode","ngtcp2","nghttp3","exports"],"sources":["../src/versionInfo.ts"],"sourcesContent":["export const versionInfo = {\n buildTime: '2023-03-24T18:03:19Z',\n commit: 'cc09c44578dd36285b0a8e1e4e7ee66457acbea6',\n npmInfo:\n{\n 'solid-ui': '2.4.27',\n npm: '8.19.4',\n node: '16.19.1',\n v8: '9.4.146.26-node.24',\n uv: '1.43.0',\n zlib: '1.2.11',\n brotli: '1.0.9',\n ares: '1.18.1',\n modules: '93',\n nghttp2: '1.47.0',\n napi: '8',\n llhttp: '6.0.10',\n openssl: '1.1.1t+quic',\n cldr: '41.0',\n icu: '71.1',\n tz: '2022f',\n unicode: '14.0',\n ngtcp2: '0.8.1',\n nghttp3: '0.7.0'\n}\n}\n"],"mappings":";;;;;;AAAO,IAAMA,WAAW,GAAG;EACzBC,SAAS,EAAE,sBAAsB;EACjCC,MAAM,EAAE,0CAA0C;EAClDC,OAAO,EACT;IACE,UAAU,EAAE,QAAQ;IACpBC,GAAG,EAAE,QAAQ;IACbC,IAAI,EAAE,SAAS;IACfC,EAAE,EAAE,oBAAoB;IACxBC,EAAE,EAAE,QAAQ;IACZC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE,OAAO;IACfC,IAAI,EAAE,QAAQ;IACdC,OAAO,EAAE,IAAI;IACbC,OAAO,EAAE,QAAQ;IACjBC,IAAI,EAAE,GAAG;IACTC,MAAM,EAAE,QAAQ;IAChBC,OAAO,EAAE,aAAa;IACtBC,IAAI,EAAE,MAAM;IACZC,GAAG,EAAE,MAAM;IACXC,EAAE,EAAE,OAAO;IACXC,OAAO,EAAE,MAAM;IACfC,MAAM,EAAE,OAAO;IACfC,OAAO,EAAE;EACX;AACA,CAAC;AAAAC,OAAA,CAAAtB,WAAA,GAAAA,WAAA"}
|
package/lib/widgets/forms.js
CHANGED
|
@@ -892,11 +892,11 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
|
|
|
892
892
|
subForm: subForm,
|
|
893
893
|
disambiguate: false
|
|
894
894
|
};
|
|
895
|
-
function getSelectorOptions() {
|
|
895
|
+
function getSelectorOptions(dataSource) {
|
|
896
896
|
var possible = [];
|
|
897
897
|
var possibleProperties;
|
|
898
898
|
possible = kb.each(undefined, ns.rdf('type'), uiFrom, formDoc);
|
|
899
|
-
for (var x in findMembersNT(kb, uiFrom,
|
|
899
|
+
for (var x in findMembersNT(kb, uiFrom, dataSource)) {
|
|
900
900
|
possible.push(kb.fromNT(x));
|
|
901
901
|
} // Use rdfs
|
|
902
902
|
|
|
@@ -928,6 +928,10 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
|
|
|
928
928
|
|
|
929
929
|
var multiSelect = kb.any(form, ui('multiselect')); // Optional
|
|
930
930
|
if (multiSelect) opts.multiSelect = true;
|
|
931
|
+
|
|
932
|
+
// options parameters
|
|
933
|
+
var dataSource = kb.any(form, ui('options'), kb.literal('search-full-store')).length ? null : dataDoc; // optional
|
|
934
|
+
|
|
931
935
|
var selector;
|
|
932
936
|
rhs.refresh = function () {
|
|
933
937
|
// from ui:property
|
|
@@ -935,7 +939,7 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
|
|
|
935
939
|
return object.value;
|
|
936
940
|
});
|
|
937
941
|
// from ui:from + ui:property
|
|
938
|
-
var possibleOptions = getSelectorOptions();
|
|
942
|
+
var possibleOptions = getSelectorOptions(dataSource);
|
|
939
943
|
possibleOptions.push(selectedOptions);
|
|
940
944
|
possibleOptions = sortByLabel(possibleOptions);
|
|
941
945
|
selector = makeSelectForChoice(dom, rhs, kb, subject, property, possibleOptions, selectedOptions, uiFrom, opts, dataDoc, callbackFunction);
|