ywana-core8 0.0.860 → 0.0.861

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.
@@ -970,7 +970,7 @@ var Section = function Section(props) {
970
970
  setOpen(open);
971
971
  }, [open]);
972
972
  var toggle = function toggle() {
973
- setOpen(!open);
973
+ setOpen(!isOpen);
974
974
  };
975
975
  return /*#__PURE__*/React.createElement("section", {
976
976
  className: "section " + className
@@ -2001,6 +2001,16 @@ var EntityCellViewer = function EntityCellViewer(_ref5) {
2001
2001
  day: 'second'
2002
2002
  });
2003
2003
  break;
2004
+ case FORMATS$1.DATETIME:
2005
+ text = new Date(text).toLocaleString(locale, {
2006
+ year: 'numeric',
2007
+ month: 'numeric',
2008
+ day: 'numeric',
2009
+ hour: 'numeric',
2010
+ minute: 'numeric',
2011
+ second: 'numeric'
2012
+ });
2013
+ break;
2004
2014
  }
2005
2015
  }
2006
2016
  return /*#__PURE__*/React.createElement("td", {
@@ -2381,6 +2391,21 @@ var Switch = function Switch(props) {
2381
2391
  className: "react-switch"
2382
2392
  }));
2383
2393
  };
2394
+ var Switch2 = function Switch2(props) {
2395
+ var checked = props.checked,
2396
+ onChange = props.onChange;
2397
+ function toggle() {
2398
+ onChange(!checked);
2399
+ }
2400
+ var icon = checked ? "toggle_on" : "toggle_off";
2401
+ return /*#__PURE__*/React.createElement("div", {
2402
+ className: "switch"
2403
+ }, /*#__PURE__*/React.createElement(Icon, {
2404
+ icon: icon,
2405
+ clickable: true,
2406
+ action: toggle
2407
+ }));
2408
+ };
2384
2409
 
2385
2410
  /**
2386
2411
  * Thumbnail
@@ -10442,6 +10467,7 @@ var FORMATS = {
10442
10467
  DATE: 'date',
10443
10468
  DATERANGE: 'DATERANGE',
10444
10469
  TIME: 'time',
10470
+ DATETIME: 'datetime',
10445
10471
  EMAIL: 'email',
10446
10472
  HTML: 'HTML',
10447
10473
  URL: 'URL',
@@ -10793,5 +10819,5 @@ var isFunction = function isFunction(value) {
10793
10819
  return value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
10794
10820
  };
10795
10821
 
10796
- 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, 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 };
10822
+ 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 };
10797
10823
  //# sourceMappingURL=index.modern.js.map