@dataloop-ai/components 0.19.23 → 0.19.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.19.23",
3
+ "version": "0.19.24",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -88,12 +88,7 @@ export default defineComponent({
88
88
  })
89
89
 
90
90
  const isDense = computed(() => {
91
- // @ts-ignore
92
- return (
93
- !!props.props?.dense ||
94
- !!props.dense ||
95
- !!props.props?.col?.dense
96
- )
91
+ return !!props.props?.dense
97
92
  })
98
93
 
99
94
  const column = computed(() => {
@@ -1,23 +0,0 @@
1
- export function abbreviateToString(num: number, precision: number = 1): string {
2
- const abbreviations = [
3
- { value: 1e12, suffix: 'T' },
4
- { value: 1e9, suffix: 'B' },
5
- { value: 1e6, suffix: 'M' },
6
- { value: 1e3, suffix: 'K' }
7
- ]
8
-
9
- const match = abbreviations.find((abb) => num >= abb.value)
10
- if (!match) {
11
- return num.toString()
12
- }
13
-
14
- const abbreviated = (num / match.value).toFixed(precision)
15
- const formatted = Number(abbreviated).toString()
16
- const suffix = match.suffix
17
-
18
- if (formatted.includes('.')) {
19
- return formatted.replace(/\.?0*$/, '') + suffix
20
- } else {
21
- return formatted + suffix
22
- }
23
- }