ywana-core8 0.0.248 → 0.0.249

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.
@@ -222,7 +222,6 @@ var Text$1 = function Text(_ref) {
222
222
  var format = _ref.format,
223
223
  children = _ref.children;
224
224
  var site = useContext(SiteContext);
225
- console.log('xxx', format, site);
226
225
  var value = children;
227
226
 
228
227
  if (site) {
@@ -237,7 +236,7 @@ var Text$1 = function Text(_ref) {
237
236
  var formatter = Intl.NumberFormat();
238
237
 
239
238
  switch (format) {
240
- case FORMATS.NUMERIC:
239
+ case TEXTFORMATS.NUMERIC:
241
240
  value = formatter.format(children);
242
241
  break;
243
242
  }
@@ -1158,7 +1157,7 @@ var TYPES = {
1158
1157
  * FORMATS
1159
1158
  */
1160
1159
 
1161
- var FORMATS$1 = {
1160
+ var FORMATS = {
1162
1161
  NONE: '',
1163
1162
  DATE: 'date',
1164
1163
  TIME: 'time',
@@ -1751,7 +1750,7 @@ var StringCellViewer = function StringCellViewer(_ref7) {
1751
1750
  var locale = window.navigator.userLanguage || window.navigator.language;
1752
1751
 
1753
1752
  switch (format) {
1754
- case FORMATS$1.DATE:
1753
+ case FORMATS.DATE:
1755
1754
  text = new Date(text).toLocaleString(locale, {
1756
1755
  year: 'numeric',
1757
1756
  month: 'numeric',
@@ -1759,7 +1758,7 @@ var StringCellViewer = function StringCellViewer(_ref7) {
1759
1758
  });
1760
1759
  break;
1761
1760
 
1762
- case FORMATS$1.TIME:
1761
+ case FORMATS.TIME:
1763
1762
  text = new Date(text).toLocaleString(locale, {
1764
1763
  year: 'hour',
1765
1764
  month: 'minute',
@@ -3465,7 +3464,7 @@ var StringEditor = function StringEditor(_ref6) {
3465
3464
 
3466
3465
  function renderFormat(format, options) {
3467
3466
  switch (format) {
3468
- case FORMATS$1.HTML:
3467
+ case FORMATS.HTML:
3469
3468
  return /*#__PURE__*/React.createElement(Editor, {
3470
3469
  id: id,
3471
3470
  value: value,
@@ -3473,7 +3472,7 @@ var StringEditor = function StringEditor(_ref6) {
3473
3472
  content: content
3474
3473
  });
3475
3474
 
3476
- case FORMATS$1.DATE:
3475
+ case FORMATS.DATE:
3477
3476
  return /*#__PURE__*/React.createElement(TextField, {
3478
3477
  outlined: outlined,
3479
3478
  id: id,
@@ -5789,5 +5788,5 @@ var isFunction = function isFunction(value) {
5789
5788
  return value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
5790
5789
  };
5791
5790
 
5792
- export { Avatar, Button$1 as Button, CheckBox, Chip, Chips, CircularProgress, CollectionContext, CollectionEditor$1 as CollectionEditor, CollectionPage, Content, ContentEditor, ContentForm, CreateContentDialog$1 as CreateContentDialog, DataTable, Dialog, DropDown, EditContentDialog, FORMATS$1 as FORMATS, FieldEditor, Form, HTTPClient, Header, Icon, Kanban, KanbanCard, KanbanColumn, LinearProgress, List, ListEditor, LoginBox, Menu, MenuIcon, MenuItem, MenuSeparator, Page, PageContext, PageProvider, Planner, Property, RadioButton, ResetPasswordBox, Section, Session, Site, SiteContext, SiteProvider, Stack, Switch, TEXTFORMATS, TYPES, Tab, TabbedContentEditor, TablePage, Tabs, Text$1 as Text, TextArea, TextField, Thumbnail, TokenField, Tooltip, Tree, TreeItem, TreeNode, TreededContentEditor, UploadArea, UploadButton, UploadDialog, UploadFile, Uploader, Viewer, WaitScreen, isFunction };
5791
+ export { Avatar, Button$1 as Button, CheckBox, Chip, Chips, CircularProgress, CollectionContext, CollectionEditor$1 as CollectionEditor, CollectionPage, Content, ContentEditor, ContentForm, CreateContentDialog$1 as CreateContentDialog, DataTable, Dialog, DropDown, EditContentDialog, FORMATS, FieldEditor, Form, HTTPClient, Header, Icon, Kanban, KanbanCard, KanbanColumn, LinearProgress, List, ListEditor, LoginBox, Menu, MenuIcon, MenuItem, MenuSeparator, Page, PageContext, PageProvider, Planner, Property, RadioButton, ResetPasswordBox, Section, Session, Site, SiteContext, SiteProvider, Stack, Switch, TEXTFORMATS, TYPES, Tab, TabbedContentEditor, TablePage, Tabs, Text$1 as Text, TextArea, TextField, Thumbnail, TokenField, Tooltip, Tree, TreeItem, TreeNode, TreededContentEditor, UploadArea, UploadButton, UploadDialog, UploadFile, Uploader, Viewer, WaitScreen, isFunction };
5793
5792
  //# sourceMappingURL=index.modern.js.map