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.
@@ -921,7 +921,7 @@ var Property = function Property(props) {
921
921
  /**
922
922
  * Radio Button
923
923
  */
924
- var RadioButton = function RadioButton(props) {
924
+ var RadioButton$1 = function RadioButton(props) {
925
925
  var id = props.id,
926
926
  name = props.name,
927
927
  label = props.label,
@@ -1076,7 +1076,9 @@ var FORMATS$1 = {
1076
1076
  IMG: 'IMG',
1077
1077
  COLOR: 'COLOR',
1078
1078
  TOKENS: 'TOKENS',
1079
- PASSWORD: 'PASSWORD'
1079
+ PASSWORD: 'PASSWORD',
1080
+ RADIO: 'RADIO',
1081
+ CHECKBOX: 'CHECKBOX'
1080
1082
  };
1081
1083
 
1082
1084
  /**
@@ -1764,7 +1766,8 @@ var DataTableFiltersRow = function DataTableFiltersRow(_ref4) {
1764
1766
  className: "filter-cell"
1765
1767
  }, filterable ? /*#__PURE__*/React.createElement(TextField, {
1766
1768
  id: id,
1767
- onChange: onFilter
1769
+ onChange: onFilter,
1770
+ outlined: true
1768
1771
  }) : null);
1769
1772
  }));
1770
1773
  };
@@ -4886,20 +4889,20 @@ var TaskMonitor = function TaskMonitor(props) {
4886
4889
  var table = {
4887
4890
  columns: [{
4888
4891
  id: "state",
4889
- label: "Estado"
4892
+ label: "State"
4890
4893
  }, {
4891
4894
  id: "init",
4892
- label: "Inicio",
4895
+ label: "Init Date",
4893
4896
  type: TYPES$1.STRING,
4894
4897
  format: FORMATS$1.DATE
4895
4898
  }, {
4896
4899
  id: "end",
4897
- label: "Fin",
4900
+ label: "End Date",
4898
4901
  type: TYPES$1.STRING,
4899
4902
  format: FORMATS$1.DATE
4900
4903
  }, {
4901
4904
  id: "description",
4902
- label: "Descripcion"
4905
+ label: "Description"
4903
4906
  }, {
4904
4907
  id: "progress",
4905
4908
  label: "%"
@@ -5695,7 +5698,9 @@ var MultiSelectionEditor = function MultiSelectionEditor(_ref10) {
5695
5698
  onChange = _ref10.onChange;
5696
5699
  var id = field.id,
5697
5700
  label = field.label,
5698
- options = field.options;
5701
+ options = field.options,
5702
+ _field$format = field.format,
5703
+ format = _field$format === void 0 ? FORMATS$1.CHECKBOX : _field$format;
5699
5704
  function change(v) {
5700
5705
  var index = value.indexOf(v);
5701
5706
  if (index >= 0) {
@@ -5713,13 +5718,32 @@ var MultiSelectionEditor = function MultiSelectionEditor(_ref10) {
5713
5718
  className: "multiselection-editor"
5714
5719
  }, /*#__PURE__*/React.createElement("label", null, label), buildOptions().map(function (option) {
5715
5720
  var checked = value.includes(option.value);
5716
- return /*#__PURE__*/React.createElement(CheckBox, {
5717
- value: checked,
5718
- label: option.label,
5719
- onChange: function onChange() {
5720
- return change(option.value);
5721
- }
5722
- });
5721
+ switch (format) {
5722
+ case FORMATS$1.CHECKBOX:
5723
+ return /*#__PURE__*/React.createElement(CheckBox, {
5724
+ value: checked,
5725
+ label: option.label,
5726
+ onChange: function onChange() {
5727
+ return change(option.value);
5728
+ }
5729
+ });
5730
+ case FORMATS$1.RADIO:
5731
+ return /*#__PURE__*/React.createElement(RadioButton, {
5732
+ value: checked,
5733
+ label: option.label,
5734
+ onChange: function onChange() {
5735
+ return change(option.value);
5736
+ }
5737
+ });
5738
+ default:
5739
+ return /*#__PURE__*/React.createElement(CheckBox, {
5740
+ value: checked,
5741
+ label: option.label,
5742
+ onChange: function onChange() {
5743
+ return change(option.value);
5744
+ }
5745
+ });
5746
+ }
5723
5747
  }));
5724
5748
  };
5725
5749
 
@@ -6130,7 +6154,8 @@ var BooleanViewer = function BooleanViewer(props) {
6130
6154
  var StringViewer = function StringViewer(props) {
6131
6155
  var field = props.field,
6132
6156
  value = props.value;
6133
- var format = field.format,
6157
+ var id = field.id,
6158
+ format = field.format,
6134
6159
  label = field.label,
6135
6160
  options = field.options;
6136
6161
  switch (format) {
@@ -6140,6 +6165,15 @@ var StringViewer = function StringViewer(props) {
6140
6165
  }, /*#__PURE__*/React.createElement("img", {
6141
6166
  src: value
6142
6167
  }));
6168
+ case FORMATS$1.TOKENS:
6169
+ return /*#__PURE__*/React.createElement("div", {
6170
+ className: "tokens-field"
6171
+ }, /*#__PURE__*/React.createElement(TokenField, {
6172
+ id: id,
6173
+ label: label,
6174
+ tokens: value,
6175
+ readOnly: true
6176
+ }));
6143
6177
  default:
6144
6178
  return /*#__PURE__*/React.createElement(Property, {
6145
6179
  label: label,
@@ -10851,5 +10885,5 @@ var isFunction = function isFunction(value) {
10851
10885
  return value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
10852
10886
  };
10853
10887
 
10854
- export { Accordion, Avatar, Button, Calendar, CheckBox, Chip, Chips, CircularProgress, CollectionAPI$1 as CollectionAPI, CollectionAPI as CollectionAPI2, CollectionContext$1 as CollectionContext, CollectionContext as CollectionContext2, CollectionEditor$2 as CollectionEditor, CollectionFilters$1 as CollectionFilters, CollectionPage$1 as CollectionPage, CollectionPage as CollectionPage2, CollectionTree, ColorField, Content, ContentEditor, ContentForm, ContentViewer, CreateContentDialog, DataTable, DateRange, Dialog, DropDown, DynamicForm, EditContentDialog, EmptyMessage, FORMATS$1 as FORMATS, FieldEditor, FileExplorer, FilesGrid, Form, HTTPClient, Header, Icon, ImageViewer, Kanban, KanbanCard, KanbanColumn, LinearProgress, List, ListEditor, LoginBox, Menu, MenuIcon, MenuItem, MenuSeparator, MultiSelector, Page, PageContext, PageProvider, PasswordEditor, PasswordField, Planner, Property, RadioButton, ResetPasswordBox, Section, Session, Site, SiteContext, SiteProvider, Stack, Switch, Switch2, TASK_STATES, TEXTFORMATS, TYPES$1 as TYPES, Tab, TabbedContentEditor, TabbedTablePage, TabbedView, TableEditor$2 as TableEditor, TablePage, TablePage2, Tabs, TaskContext, TaskContextProvider, TaskMonitor, TaskProgress, Text, TextArea, TextField, Thumbnail, ToggleButton, TokenField, Tooltip, Tree, TreeItem, TreeNode, TreededContentEditor, UploadArea, UploadDialog, UploadFile$1 as UploadFile, UploadForm, UploadIcon, Uploader, View, Viewer, WaitScreen, Wizard, WizardContext, isEmpty, isFunction };
10888
+ export { Accordion, Avatar, Button, Calendar, CheckBox, Chip, Chips, CircularProgress, CollectionAPI$1 as CollectionAPI, CollectionAPI as CollectionAPI2, CollectionContext$1 as CollectionContext, CollectionContext as CollectionContext2, CollectionEditor$2 as CollectionEditor, CollectionFilters$1 as CollectionFilters, CollectionPage$1 as CollectionPage, CollectionPage as CollectionPage2, CollectionTree, ColorField, Content, ContentEditor, ContentForm, ContentViewer, CreateContentDialog, DataTable, DateRange, Dialog, DropDown, DynamicForm, EditContentDialog, EmptyMessage, FORMATS$1 as FORMATS, FieldEditor, FileExplorer, FilesGrid, Form, HTTPClient, Header, Icon, ImageViewer, Kanban, KanbanCard, KanbanColumn, LinearProgress, List, ListEditor, LoginBox, Menu, MenuIcon, MenuItem, MenuSeparator, MultiSelector, Page, PageContext, PageProvider, PasswordEditor, PasswordField, Planner, Property, RadioButton$1 as RadioButton, ResetPasswordBox, Section, Session, Site, SiteContext, SiteProvider, Stack, Switch, Switch2, TASK_STATES, TEXTFORMATS, TYPES$1 as TYPES, Tab, TabbedContentEditor, TabbedTablePage, TabbedView, TableEditor$2 as TableEditor, TablePage, TablePage2, Tabs, TaskContext, TaskContextProvider, TaskMonitor, TaskProgress, Text, TextArea, TextField, Thumbnail, ToggleButton, TokenField, Tooltip, Tree, TreeItem, TreeNode, TreededContentEditor, UploadArea, UploadDialog, UploadFile$1 as UploadFile, UploadForm, UploadIcon, Uploader, View, Viewer, WaitScreen, Wizard, WizardContext, isEmpty, isFunction };
10855
10889
  //# sourceMappingURL=index.modern.js.map