adminforth 1.1.60 → 1.1.61
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/modules/utils.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
import fs from 'fs';
|
|
4
|
-
|
|
4
|
+
// @ts-ignore-next-line
|
|
5
|
+
import csscolors from 'css-color-names';
|
|
5
6
|
export function guessLabelFromName(name) {
|
|
6
7
|
if (name.includes('_')) {
|
|
7
8
|
return name.split('_').map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join(' ');
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
single
|
|
50
50
|
v-if="column.foreignResource"
|
|
51
51
|
:options="columnOptions[column.name] || []"
|
|
52
|
-
:placeholder = "columnOptions[column.name]?.length
|
|
52
|
+
:placeholder = "columnOptions[column.name]?.length ?'Select...': 'There are no options available'"
|
|
53
53
|
:modelValue="currentValues[column.name]"
|
|
54
54
|
@update:modelValue="setCurrentValue(column.name, $event)"
|
|
55
55
|
></Dropdown>
|
package/modules/utils.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
3
|
import fs from 'fs';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
// @ts-ignore-next-line
|
|
5
|
+
import csscolors from 'css-color-names';
|
|
9
6
|
|
|
10
7
|
|
|
11
8
|
export function guessLabelFromName(name) {
|
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
single
|
|
50
50
|
v-if="column.foreignResource"
|
|
51
51
|
:options="columnOptions[column.name] || []"
|
|
52
|
-
:placeholder = "columnOptions[column.name]?.length
|
|
52
|
+
:placeholder = "columnOptions[column.name]?.length ?'Select...': 'There are no options available'"
|
|
53
53
|
:modelValue="currentValues[column.name]"
|
|
54
54
|
@update:modelValue="setCurrentValue(column.name, $event)"
|
|
55
55
|
></Dropdown>
|