ywana-core8 0.0.867 → 0.0.869

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/index.umd.js CHANGED
@@ -923,7 +923,7 @@
923
923
  /**
924
924
  * Radio Button
925
925
  */
926
- var RadioButton = function RadioButton(props) {
926
+ var RadioButton$1 = function RadioButton(props) {
927
927
  var id = props.id,
928
928
  name = props.name,
929
929
  label = props.label,
@@ -1078,7 +1078,9 @@
1078
1078
  IMG: 'IMG',
1079
1079
  COLOR: 'COLOR',
1080
1080
  TOKENS: 'TOKENS',
1081
- PASSWORD: 'PASSWORD'
1081
+ PASSWORD: 'PASSWORD',
1082
+ RADIO: 'RADIO',
1083
+ CHECKBOX: 'CHECKBOX'
1082
1084
  };
1083
1085
 
1084
1086
  /**
@@ -1766,7 +1768,8 @@
1766
1768
  className: "filter-cell"
1767
1769
  }, filterable ? /*#__PURE__*/React__default["default"].createElement(TextField, {
1768
1770
  id: id,
1769
- onChange: onFilter
1771
+ onChange: onFilter,
1772
+ outlined: true
1770
1773
  }) : null);
1771
1774
  }));
1772
1775
  };
@@ -4888,20 +4891,20 @@
4888
4891
  var table = {
4889
4892
  columns: [{
4890
4893
  id: "state",
4891
- label: "Estado"
4894
+ label: "State"
4892
4895
  }, {
4893
4896
  id: "init",
4894
- label: "Inicio",
4897
+ label: "Init Date",
4895
4898
  type: TYPES$1.STRING,
4896
4899
  format: FORMATS$1.DATE
4897
4900
  }, {
4898
4901
  id: "end",
4899
- label: "Fin",
4902
+ label: "End Date",
4900
4903
  type: TYPES$1.STRING,
4901
4904
  format: FORMATS$1.DATE
4902
4905
  }, {
4903
4906
  id: "description",
4904
- label: "Descripcion"
4907
+ label: "Description"
4905
4908
  }, {
4906
4909
  id: "progress",
4907
4910
  label: "%"
@@ -5697,7 +5700,9 @@
5697
5700
  onChange = _ref10.onChange;
5698
5701
  var id = field.id,
5699
5702
  label = field.label,
5700
- options = field.options;
5703
+ options = field.options,
5704
+ _field$format = field.format,
5705
+ format = _field$format === void 0 ? FORMATS$1.CHECKBOX : _field$format;
5701
5706
  function change(v) {
5702
5707
  var index = value.indexOf(v);
5703
5708
  if (index >= 0) {
@@ -5715,13 +5720,32 @@
5715
5720
  className: "multiselection-editor"
5716
5721
  }, /*#__PURE__*/React__default["default"].createElement("label", null, label), buildOptions().map(function (option) {
5717
5722
  var checked = value.includes(option.value);
5718
- return /*#__PURE__*/React__default["default"].createElement(CheckBox, {
5719
- value: checked,
5720
- label: option.label,
5721
- onChange: function onChange() {
5722
- return change(option.value);
5723
- }
5724
- });
5723
+ switch (format) {
5724
+ case FORMATS$1.CHECKBOX:
5725
+ return /*#__PURE__*/React__default["default"].createElement(CheckBox, {
5726
+ value: checked,
5727
+ label: option.label,
5728
+ onChange: function onChange() {
5729
+ return change(option.value);
5730
+ }
5731
+ });
5732
+ case FORMATS$1.RADIO:
5733
+ return /*#__PURE__*/React__default["default"].createElement(RadioButton, {
5734
+ value: checked,
5735
+ label: option.label,
5736
+ onChange: function onChange() {
5737
+ return change(option.value);
5738
+ }
5739
+ });
5740
+ default:
5741
+ return /*#__PURE__*/React__default["default"].createElement(CheckBox, {
5742
+ value: checked,
5743
+ label: option.label,
5744
+ onChange: function onChange() {
5745
+ return change(option.value);
5746
+ }
5747
+ });
5748
+ }
5725
5749
  }));
5726
5750
  };
5727
5751
 
@@ -6132,7 +6156,8 @@
6132
6156
  var StringViewer = function StringViewer(props) {
6133
6157
  var field = props.field,
6134
6158
  value = props.value;
6135
- var format = field.format,
6159
+ var id = field.id,
6160
+ format = field.format,
6136
6161
  label = field.label,
6137
6162
  options = field.options;
6138
6163
  switch (format) {
@@ -6142,6 +6167,15 @@
6142
6167
  }, /*#__PURE__*/React__default["default"].createElement("img", {
6143
6168
  src: value
6144
6169
  }));
6170
+ case FORMATS$1.TOKENS:
6171
+ return /*#__PURE__*/React__default["default"].createElement("div", {
6172
+ className: "tokens-field"
6173
+ }, /*#__PURE__*/React__default["default"].createElement(TokenField, {
6174
+ id: id,
6175
+ label: label,
6176
+ tokens: value,
6177
+ readOnly: true
6178
+ }));
6145
6179
  default:
6146
6180
  return /*#__PURE__*/React__default["default"].createElement(Property, {
6147
6181
  label: label,
@@ -10911,7 +10945,7 @@
10911
10945
  exports.PasswordField = PasswordField;
10912
10946
  exports.Planner = Planner;
10913
10947
  exports.Property = Property;
10914
- exports.RadioButton = RadioButton;
10948
+ exports.RadioButton = RadioButton$1;
10915
10949
  exports.ResetPasswordBox = ResetPasswordBox;
10916
10950
  exports.Section = Section;
10917
10951
  exports.Session = Session;