ywana-core8 0.0.247 → 0.0.248
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.cjs +9 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +8 -8
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +9 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/index.js +1 -1
- package/src/html/text.js +2 -1
package/dist/index.modern.js
CHANGED
@@ -205,7 +205,7 @@ var Button$1 = function Button(_ref) {
|
|
205
205
|
|
206
206
|
var SiteContext = React.createContext({});
|
207
207
|
|
208
|
-
var
|
208
|
+
var TEXTFORMATS = {
|
209
209
|
NONE: '',
|
210
210
|
NUMERIC: 'numeric',
|
211
211
|
DATE: 'date',
|
@@ -237,7 +237,7 @@ var Text$1 = function Text(_ref) {
|
|
237
237
|
var formatter = Intl.NumberFormat();
|
238
238
|
|
239
239
|
switch (format) {
|
240
|
-
case FORMATS
|
240
|
+
case FORMATS.NUMERIC:
|
241
241
|
value = formatter.format(children);
|
242
242
|
break;
|
243
243
|
}
|
@@ -1158,7 +1158,7 @@ var TYPES = {
|
|
1158
1158
|
* FORMATS
|
1159
1159
|
*/
|
1160
1160
|
|
1161
|
-
var FORMATS = {
|
1161
|
+
var FORMATS$1 = {
|
1162
1162
|
NONE: '',
|
1163
1163
|
DATE: 'date',
|
1164
1164
|
TIME: 'time',
|
@@ -1751,7 +1751,7 @@ var StringCellViewer = function StringCellViewer(_ref7) {
|
|
1751
1751
|
var locale = window.navigator.userLanguage || window.navigator.language;
|
1752
1752
|
|
1753
1753
|
switch (format) {
|
1754
|
-
case FORMATS.DATE:
|
1754
|
+
case FORMATS$1.DATE:
|
1755
1755
|
text = new Date(text).toLocaleString(locale, {
|
1756
1756
|
year: 'numeric',
|
1757
1757
|
month: 'numeric',
|
@@ -1759,7 +1759,7 @@ var StringCellViewer = function StringCellViewer(_ref7) {
|
|
1759
1759
|
});
|
1760
1760
|
break;
|
1761
1761
|
|
1762
|
-
case FORMATS.TIME:
|
1762
|
+
case FORMATS$1.TIME:
|
1763
1763
|
text = new Date(text).toLocaleString(locale, {
|
1764
1764
|
year: 'hour',
|
1765
1765
|
month: 'minute',
|
@@ -3465,7 +3465,7 @@ var StringEditor = function StringEditor(_ref6) {
|
|
3465
3465
|
|
3466
3466
|
function renderFormat(format, options) {
|
3467
3467
|
switch (format) {
|
3468
|
-
case FORMATS.HTML:
|
3468
|
+
case FORMATS$1.HTML:
|
3469
3469
|
return /*#__PURE__*/React.createElement(Editor, {
|
3470
3470
|
id: id,
|
3471
3471
|
value: value,
|
@@ -3473,7 +3473,7 @@ var StringEditor = function StringEditor(_ref6) {
|
|
3473
3473
|
content: content
|
3474
3474
|
});
|
3475
3475
|
|
3476
|
-
case FORMATS.DATE:
|
3476
|
+
case FORMATS$1.DATE:
|
3477
3477
|
return /*#__PURE__*/React.createElement(TextField, {
|
3478
3478
|
outlined: outlined,
|
3479
3479
|
id: id,
|
@@ -5789,5 +5789,5 @@ var isFunction = function isFunction(value) {
|
|
5789
5789
|
return value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
|
5790
5790
|
};
|
5791
5791
|
|
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, 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, 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 };
|
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 };
|
5793
5793
|
//# sourceMappingURL=index.modern.js.map
|