mountain-ui 1.0.85 → 1.0.87
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mountain-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.87",
|
|
5
5
|
"description": "A comprehensive UI component library for ERP systems with field types, entities, and registry management built with Svelte",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"module": "index.js",
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { onMount } from 'svelte';
|
|
3
|
-
import icons from './icons/icons.json';
|
|
4
|
-
import { Button, DropdownMenu, IconButton, Tabs } from 'hamzus-ui';
|
|
5
|
-
|
|
6
2
|
let { value = '' } = $props();
|
|
7
3
|
|
|
8
|
-
const svgs = import.meta.glob('./icons/**/*.svg', {
|
|
4
|
+
const svgs = import.meta.glob('./src/lib/components/Icons/icons/**/*.svg', {
|
|
9
5
|
query: '?raw',
|
|
10
|
-
import: 'default'
|
|
6
|
+
import: 'default',
|
|
7
|
+
eager: true
|
|
11
8
|
});
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
function getSvg(value) {
|
|
11
|
+
if (!value) return '';
|
|
12
|
+
|
|
13
|
+
const [theme, name] = value.split('|');
|
|
15
14
|
|
|
16
|
-
return
|
|
15
|
+
return svgs[`./src/lib/components/Icons/icons/${theme}/${name}.svg`] ?? '';
|
|
17
16
|
}
|
|
18
17
|
</script>
|
|
19
18
|
|
|
20
|
-
{#
|
|
21
|
-
{
|
|
22
|
-
|
|
23
|
-
{/if}
|
|
24
|
-
{/await}
|
|
19
|
+
{#if value}
|
|
20
|
+
{@html getSvg(value)}
|
|
21
|
+
{/if}
|
|
@@ -169,19 +169,4 @@
|
|
|
169
169
|
justify-content: center;
|
|
170
170
|
padding: 60px var(--pad-m);
|
|
171
171
|
}
|
|
172
|
-
.entities {
|
|
173
|
-
width: 100%;
|
|
174
|
-
height: 40px;
|
|
175
|
-
position: sticky;
|
|
176
|
-
top: 43px;
|
|
177
|
-
display: flex;
|
|
178
|
-
align-items: center;
|
|
179
|
-
column-gap: var(--pad-m);
|
|
180
|
-
padding: var(--pad-s);
|
|
181
|
-
border-bottom: 1px solid var(--stroke);
|
|
182
|
-
overflow-x: auto;
|
|
183
|
-
flex-shrink: 0;
|
|
184
|
-
background-color: var(--bg-1);
|
|
185
|
-
z-index: 20;
|
|
186
|
-
}
|
|
187
172
|
</style>
|