ywana-core8 0.0.473 → 0.0.476

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.
@@ -861,7 +861,11 @@ var Section = function Section(props) {
861
861
  var Tabs = function Tabs(props) {
862
862
  var children = props.children,
863
863
  selected = props.selected,
864
- onChange = props.onChange;
864
+ onChange = props.onChange,
865
+ _props$fillLeft = props.fillLeft,
866
+ fillLeft = _props$fillLeft === void 0 ? false : _props$fillLeft,
867
+ _props$fillRight = props.fillRight,
868
+ fillRight = _props$fillRight === void 0 ? true : _props$fillRight;
865
869
  var tabs = React.Children.map(children, function (child, index) {
866
870
  function select(id) {
867
871
  if (onChange) onChange(id || index);
@@ -874,9 +878,11 @@ var Tabs = function Tabs(props) {
874
878
  });
875
879
  return /*#__PURE__*/React.createElement("div", {
876
880
  className: "tabs"
877
- }, tabs, /*#__PURE__*/React.createElement("div", {
881
+ }, fillLeft ? /*#__PURE__*/React.createElement("div", {
878
882
  className: "tab-filler"
879
- }));
883
+ }) : null, tabs, fillRight ? /*#__PURE__*/React.createElement("div", {
884
+ className: "tab-filler"
885
+ }) : null);
880
886
  };
881
887
  /**
882
888
  * Tab
@@ -1950,7 +1956,7 @@ var TokenField = function TokenField(_ref) {
1950
1956
  event.preventDefault();
1951
1957
  event.stopPropagation();
1952
1958
  var token = event.target.value;
1953
- var next = tokens.concat(token);
1959
+ var next = tokens.concat(token.trim());
1954
1960
  if (onChange) onChange(id, next);
1955
1961
  setValue('');
1956
1962
  }
@@ -6410,7 +6416,6 @@ var TabbedTablePage = function TabbedTablePage(props) {
6410
6416
 
6411
6417
  var save = function save() {
6412
6418
  try {
6413
- console.log('saving.....');
6414
6419
  return Promise.resolve(pageContext.update(form)).then(function () {
6415
6420
  setPageContext(Object.assign({}, pageContext));
6416
6421
  });
@@ -6514,8 +6519,6 @@ var TabbedTablePage = function TabbedTablePage(props) {
6514
6519
  }, []);
6515
6520
  useEffect(function () {
6516
6521
  try {
6517
- console.log("TAB", tab);
6518
-
6519
6522
  var _temp2 = function () {
6520
6523
  if (tab) {
6521
6524
  var _filter;
@@ -6645,10 +6648,11 @@ var TabbedTablePage = function TabbedTablePage(props) {
6645
6648
 
6646
6649
  function renderTabs() {
6647
6650
  var selected = tab ? tab.value : null;
6648
- console.log(selected);
6649
6651
  return /*#__PURE__*/React.createElement(Tabs, {
6650
6652
  selected: selected,
6651
- onChange: changeTab
6653
+ onChange: changeTab,
6654
+ fillRight: true,
6655
+ fillLeft: false
6652
6656
  }, tabs.map(function (tab) {
6653
6657
  return /*#__PURE__*/React.createElement(Tab, {
6654
6658
  id: tab.value,
@@ -7383,7 +7387,6 @@ var TableAPI = function TableAPI(url, host) {
7383
7387
  like = [];
7384
7388
  }
7385
7389
 
7386
- console.log(like);
7387
7390
  var queryParams = "?";
7388
7391
 
7389
7392
  if (filters) {