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