@vulcanjs/react-ui 0.5.4-alpha.9 → 0.6.0
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/components/cell/CardItem.d.ts.map +1 -1
- package/dist/index.js +11 -12
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CardItem.d.ts","sourceRoot":"","sources":["../../../components/cell/CardItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"CardItem.d.ts","sourceRoot":"","sources":["../../../components/cell/CardItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA2BlD,MAAM,WAAW,SAAS;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AASD,eAAO,MAAM,gBAAgB,UAAW,SAAS,gBAwIhD,CAAC"}
|
package/dist/index.js
CHANGED
@@ -1532,9 +1532,9 @@ var require_tslib = __commonJS({
|
|
1532
1532
|
}
|
1533
1533
|
});
|
1534
1534
|
|
1535
|
-
// ../../node_modules/
|
1535
|
+
// ../../node_modules/react-router/node_modules/isarray/index.js
|
1536
1536
|
var require_isarray = __commonJS({
|
1537
|
-
"../../node_modules/
|
1537
|
+
"../../node_modules/react-router/node_modules/isarray/index.js"(exports, module) {
|
1538
1538
|
init_esm_shims();
|
1539
1539
|
module.exports = Array.isArray || function(arr) {
|
1540
1540
|
return Object.prototype.toString.call(arr) == "[object Array]";
|
@@ -1542,9 +1542,9 @@ var require_isarray = __commonJS({
|
|
1542
1542
|
}
|
1543
1543
|
});
|
1544
1544
|
|
1545
|
-
// ../../node_modules/path-to-regexp/index.js
|
1545
|
+
// ../../node_modules/react-router/node_modules/path-to-regexp/index.js
|
1546
1546
|
var require_path_to_regexp = __commonJS({
|
1547
|
-
"../../node_modules/path-to-regexp/index.js"(exports, module) {
|
1547
|
+
"../../node_modules/react-router/node_modules/path-to-regexp/index.js"(exports, module) {
|
1548
1548
|
init_esm_shims();
|
1549
1549
|
var isarray = require_isarray();
|
1550
1550
|
module.exports = pathToRegexp2;
|
@@ -12014,7 +12014,6 @@ init_esm_shims();
|
|
12014
12014
|
var import_prop_types6 = __toESM(require_prop_types(), 1);
|
12015
12015
|
import React33 from "react";
|
12016
12016
|
import { Dropdown, DropdownButton } from "react-bootstrap";
|
12017
|
-
import DropdownItem from "react-bootstrap/esm/DropdownItem.js";
|
12018
12017
|
function _extends20() {
|
12019
12018
|
_extends20 = Object.assign || function(target) {
|
12020
12019
|
for (var i = 1; i < arguments.length; i++) {
|
@@ -12030,6 +12029,7 @@ function _extends20() {
|
|
12030
12029
|
return _extends20.apply(this, arguments);
|
12031
12030
|
}
|
12032
12031
|
__name(_extends20, "_extends");
|
12032
|
+
var DropdownItem = Dropdown.Item;
|
12033
12033
|
var Item = /* @__PURE__ */ __name((_a) => {
|
12034
12034
|
var _b = _a, {
|
12035
12035
|
index: index2,
|
@@ -12143,13 +12143,13 @@ function _extends21() {
|
|
12143
12143
|
return _extends21.apply(this, arguments);
|
12144
12144
|
}
|
12145
12145
|
__name(_extends21, "_extends");
|
12146
|
-
var getTypeName = /* @__PURE__ */ __name((value, fieldName,
|
12147
|
-
const schema =
|
12146
|
+
var getTypeName = /* @__PURE__ */ __name((value, fieldName, model) => {
|
12147
|
+
const schema = model.schema;
|
12148
12148
|
const fieldSchema = schema && schema[fieldName];
|
12149
12149
|
if (fieldSchema) {
|
12150
|
-
const type = fieldSchema.type
|
12150
|
+
const type = fieldSchema.type;
|
12151
12151
|
const typeName = typeof type === "function" ? type.name : type;
|
12152
|
-
return typeName;
|
12152
|
+
return typeName + "";
|
12153
12153
|
} else {
|
12154
12154
|
return typeof value;
|
12155
12155
|
}
|
@@ -12166,7 +12166,7 @@ var CardItemSwitcher = /* @__PURE__ */ __name((props) => {
|
|
12166
12166
|
let { typeName } = props;
|
12167
12167
|
const fieldSchema = model && fieldName ? getFieldSchema2(fieldName, model) : void 0;
|
12168
12168
|
if (!typeName) {
|
12169
|
-
if (model) {
|
12169
|
+
if (model && fieldName) {
|
12170
12170
|
typeName = getTypeName(value, fieldName, model);
|
12171
12171
|
} else {
|
12172
12172
|
typeName = typeof value;
|
@@ -14706,7 +14706,6 @@ var Datatable = /* @__PURE__ */ __name((props) => {
|
|
14706
14706
|
skip: !!data
|
14707
14707
|
}
|
14708
14708
|
}));
|
14709
|
-
console.log("MultiRes", multiRes);
|
14710
14709
|
if (data) {
|
14711
14710
|
return /* @__PURE__ */ React50.createElement(Components2.DatatableContents, _extends28({}, props, {
|
14712
14711
|
datatableData: data,
|
@@ -14750,7 +14749,7 @@ var Datatable = /* @__PURE__ */ __name((props) => {
|
|
14750
14749
|
selectedItems: state.selectedItems,
|
14751
14750
|
onSubmitSelected
|
14752
14751
|
})), /* @__PURE__ */ React50.createElement(Components2.DatatableContents, _extends28({}, props, {
|
14753
|
-
|
14752
|
+
results: multiRes.documents,
|
14754
14753
|
totalCount: multiRes.totalCount,
|
14755
14754
|
count: multiRes.count,
|
14756
14755
|
model,
|