adminforth 1.3.54-next.19 → 1.3.54-next.20
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.
|
@@ -2,6 +2,7 @@ import { AdminForthDataTypes, AdminForthFilterOperators, AdminForthSortDirection
|
|
|
2
2
|
import AdminForthBaseConnector from './baseConnector.js';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
4
|
import { createClient } from '@clickhouse/client'
|
|
5
|
+
import { base } from '@faker-js/faker';
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
@@ -73,11 +74,11 @@ class ClickhouseConnector extends AdminForthBaseConnector implements IAdminForth
|
|
|
73
74
|
field.scale = parseInt(scale);
|
|
74
75
|
} else if (baseType.startsWith('Float')) {
|
|
75
76
|
field.type = AdminForthDataTypes.FLOAT;
|
|
76
|
-
} else if (baseType == 'DateTime64' || baseType == 'DateTime') {
|
|
77
|
+
} else if (baseType == 'DateTime64' || baseType == 'DateTime' || baseType.startsWith('DateTime64(')) {
|
|
77
78
|
field.type = AdminForthDataTypes.DATETIME;
|
|
78
79
|
} else if (baseType == 'Date' || baseType == 'Date64') {
|
|
79
80
|
field.type = AdminForthDataTypes.DATE;
|
|
80
|
-
} else if (baseType == 'Boolean') {
|
|
81
|
+
} else if (baseType == 'Boolean' || baseType == 'Bool') {
|
|
81
82
|
field.type = AdminForthDataTypes.BOOLEAN;
|
|
82
83
|
field._underlineType = 'boolean';
|
|
83
84
|
} else {
|
|
@@ -93,13 +93,13 @@ class ClickhouseConnector extends AdminForthBaseConnector {
|
|
|
93
93
|
else if (baseType.startsWith('Float')) {
|
|
94
94
|
field.type = AdminForthDataTypes.FLOAT;
|
|
95
95
|
}
|
|
96
|
-
else if (baseType == 'DateTime64' || baseType == 'DateTime') {
|
|
96
|
+
else if (baseType == 'DateTime64' || baseType == 'DateTime' || baseType.startsWith('DateTime64(')) {
|
|
97
97
|
field.type = AdminForthDataTypes.DATETIME;
|
|
98
98
|
}
|
|
99
99
|
else if (baseType == 'Date' || baseType == 'Date64') {
|
|
100
100
|
field.type = AdminForthDataTypes.DATE;
|
|
101
101
|
}
|
|
102
|
-
else if (baseType == 'Boolean') {
|
|
102
|
+
else if (baseType == 'Boolean' || baseType == 'Bool') {
|
|
103
103
|
field.type = AdminForthDataTypes.BOOLEAN;
|
|
104
104
|
field._underlineType = 'boolean';
|
|
105
105
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<span class="flex items-center"
|
|
3
|
-
:data-tooltip-target="`tooltip-${id}`"
|
|
3
|
+
:data-tooltip-target="val && `tooltip-${id}`"
|
|
4
4
|
data-tooltip-placement="top"
|
|
5
5
|
>
|
|
6
|
-
{{ visualValue }} <IconFileCopyAltSolid @click.stop="copyToCB" class="w-5 h-5 text-lightPrimary dark:text-darkPrimary"/>
|
|
6
|
+
{{ visualValue }} <IconFileCopyAltSolid @click.stop="copyToCB" class="w-5 h-5 text-lightPrimary dark:text-darkPrimary" v-if="val"/>
|
|
7
7
|
|
|
8
|
-
<div :id="`tooltip-${id}`" role="tooltip"
|
|
8
|
+
<div :id="`tooltip-${id}`" role="tooltip" v-if="val"
|
|
9
9
|
class="absolute z-10 invisible inline-block px-3 py-2 text-sm font-medium text-white transition-opacity duration-300 bg-gray-900 rounded-lg shadow-sm opacity-0 tooltip dark:bg-gray-700">
|
|
10
10
|
{{ props.record[props.column.name] }}
|
|
11
11
|
<div class="tooltip-arrow" data-popper-arrow></div>
|