ywana-core8 0.0.512 → 0.0.515
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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +2 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +4 -2
package/package.json
CHANGED
package/src/html/table.js
CHANGED
@@ -191,14 +191,16 @@ const DataTableCell = ({ row, column, cell, editable }) => {
|
|
191
191
|
* @returns
|
192
192
|
*/
|
193
193
|
const EntityCellViewer = ({ id, item, value }) => {
|
194
|
-
const fields = Object.values(item).filter(field => field.column === true)
|
195
194
|
|
195
|
+
const fields = Object.values(item).filter(field => field.column === true)
|
196
|
+
const locale = window.navigator.userLanguage || window.navigator.language;
|
197
|
+
|
196
198
|
return fields.map(field => {
|
197
199
|
|
198
200
|
let text = value[field.id]
|
199
201
|
|
200
202
|
if (field.format) {
|
201
|
-
switch (format) {
|
203
|
+
switch (field.format) {
|
202
204
|
case FORMATS.COLOR:
|
203
205
|
text = <input type="color" value={text} disabled />
|
204
206
|
case FORMATS.URL:
|