ywana-core8 0.0.542 → 0.0.545

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.
@@ -2153,14 +2153,17 @@ var TreeItem = function TreeItem(_ref3) {
2153
2153
  icon = _ref3$icon === void 0 ? 'description' : _ref3$icon,
2154
2154
  label = _ref3.label,
2155
2155
  actions = _ref3.actions,
2156
- onSelect = _ref3.onSelect;
2156
+ onSelect = _ref3.onSelect,
2157
+ _ref3$selected = _ref3.selected,
2158
+ selected = _ref3$selected === void 0 ? false : _ref3$selected;
2157
2159
 
2158
2160
  function select() {
2159
2161
  if (onSelect) onSelect(id);
2160
2162
  }
2161
2163
 
2164
+ var style = selected ? "selected" : "";
2162
2165
  return /*#__PURE__*/React.createElement("div", {
2163
- className: "tree-item final",
2166
+ className: "tree-item final " + style,
2164
2167
  onClick: select
2165
2168
  }, /*#__PURE__*/React.createElement(Icon, {
2166
2169
  icon: icon,
@@ -5432,7 +5435,8 @@ var CollectionTree = function CollectionTree(props) {
5432
5435
  key: item.id,
5433
5436
  id: item.id,
5434
5437
  label: item.name,
5435
- onSelect: select
5438
+ onSelect: select,
5439
+ selected: item.id === pageContext.selected
5436
5440
  }, "item");
5437
5441
  }));
5438
5442
  });
@@ -6011,6 +6015,8 @@ var TablePage = function TablePage(props) {
6011
6015
  url = props.url,
6012
6016
  field = props.field,
6013
6017
  host = props.host,
6018
+ _props$params = props.params,
6019
+ params = _props$params === void 0 ? "" : _props$params,
6014
6020
  _props$autosave = props.autosave,
6015
6021
  autosave = _props$autosave === void 0 ? true : _props$autosave,
6016
6022
  _props$delay = props.delay,
@@ -6049,7 +6055,7 @@ var TablePage = function TablePage(props) {
6049
6055
  pageContext = _useContext[0],
6050
6056
  setPageContext = _useContext[1];
6051
6057
 
6052
- var context = TableContext$1(url, field, host, urlQuery);
6058
+ var context = TableContext$1(url, field, host, urlQuery, params);
6053
6059
  var selected = pageContext.selected;
6054
6060
  var timer = useRef(null);
6055
6061
 
@@ -6702,8 +6708,8 @@ var TableEditor$1 = function TableEditor(props) {
6702
6708
  * Table Context
6703
6709
  */
6704
6710
 
6705
- var TableContext$1 = function TableContext(url, field, host, urlQuery) {
6706
- var API = TableAPI$1(url, host);
6711
+ var TableContext$1 = function TableContext(url, field, host, urlQuery, params) {
6712
+ var API = TableAPI$1(url, host, params);
6707
6713
  return {
6708
6714
  all: [],
6709
6715
  checked: new Set([]),
@@ -6881,11 +6887,15 @@ var TableContext$1 = function TableContext(url, field, host, urlQuery) {
6881
6887
  */
6882
6888
 
6883
6889
 
6884
- var TableAPI$1 = function TableAPI(url, host) {
6890
+ var TableAPI$1 = function TableAPI(url, host, params) {
6891
+ if (params === void 0) {
6892
+ params = "";
6893
+ }
6894
+
6885
6895
  var http = HTTPClient(host || window.API || process.env.REACT_APP_API, Session);
6886
6896
  return {
6887
6897
  all: function all(filters) {
6888
- var queryParams = "?";
6898
+ var queryParams = "?" + params;
6889
6899
 
6890
6900
  if (filters) {
6891
6901
  var filterQuery = Object.keys(filters).reduce(function (query, key) {