@intechstudio/grid-uikit 1.20250306.1145 → 1.20250321.1546
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/AtomicInput.svelte
CHANGED
|
@@ -28,7 +28,9 @@ $:
|
|
|
28
28
|
displayText, suggestions, filterSuggestions();
|
|
29
29
|
function filterSuggestions() {
|
|
30
30
|
let searchTerm = displayText.toLowerCase();
|
|
31
|
-
let filteredSuggestions = suggestions.filter(
|
|
31
|
+
let filteredSuggestions = suggestions.filter(
|
|
32
|
+
(e) => e.info.toLowerCase().includes(searchTerm) || e.value.toLowerCase().includes(searchTerm)
|
|
33
|
+
);
|
|
32
34
|
updateSuggestions(filteredSuggestions);
|
|
33
35
|
}
|
|
34
36
|
function handleBlur(e) {
|
|
@@ -57,7 +59,9 @@ function updateSuggestions(suggestions2) {
|
|
|
57
59
|
updateInfoValue();
|
|
58
60
|
}
|
|
59
61
|
function updateInfoValue() {
|
|
60
|
-
infoValue = suggestions.find(
|
|
62
|
+
infoValue = suggestions.find(
|
|
63
|
+
(s) => String(s.value).trim() == String(displayText).trim()
|
|
64
|
+
)?.info ?? "";
|
|
61
65
|
}
|
|
62
66
|
function handleSuggestionSelected(e) {
|
|
63
67
|
const { value } = e.detail;
|
|
@@ -17,34 +17,35 @@ function handleSuggestionSelected(value) {
|
|
|
17
17
|
suggestions = [];
|
|
18
18
|
}
|
|
19
19
|
</script>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
20
|
+
|
|
21
|
+
<suggestions
|
|
22
|
+
class="flex w-full p-2"
|
|
23
|
+
class:hidden={suggestions.length === 0}
|
|
24
|
+
bind:this={component}
|
|
25
|
+
on:display={handleDisplay}
|
|
26
|
+
>
|
|
27
|
+
<div class="w-full p-1 neumorph rounded-lg border border-select bg-secondary">
|
|
28
|
+
<ul
|
|
29
|
+
class="scrollbar max-h-40 overflow-y-scroll pr-1 text-white cursor-pointer"
|
|
30
|
+
>
|
|
31
|
+
{#each suggestions as suggestion}
|
|
32
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
33
|
+
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
|
34
|
+
<li
|
|
35
|
+
on:mousedown={() => handleSuggestionSelected(suggestion.value)}
|
|
36
|
+
class="hover:bg-black p-1 pl-2"
|
|
37
|
+
>
|
|
38
|
+
{suggestion.info}
|
|
39
|
+
</li>
|
|
40
|
+
{/each}
|
|
41
|
+
</ul>
|
|
42
|
+
</div>
|
|
43
|
+
</suggestions>
|
|
44
|
+
|
|
45
|
+
<style>
|
|
46
|
+
.neumorph {
|
|
47
|
+
box-shadow:
|
|
48
|
+
-2px -2px 10px #242c30,
|
|
49
|
+
2px 2px 10px #303c42;
|
|
50
|
+
}
|
|
51
|
+
</style>
|
package/dist/MeltCheckbox.svelte
CHANGED
|
@@ -25,7 +25,9 @@ $: {
|
|
|
25
25
|
</script>
|
|
26
26
|
|
|
27
27
|
<label
|
|
28
|
-
class="my-4 {style ==
|
|
28
|
+
class="my-4 {style == 'box'
|
|
29
|
+
? 'bg-black bg-opacity-10 border border-black border-opacity-20'
|
|
30
|
+
: ''} group flex text-white items-center cursor-pointer p-2"
|
|
29
31
|
>
|
|
30
32
|
<button {...$root} use:root class="">
|
|
31
33
|
<div
|
package/dist/MeltSelect.svelte
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intechstudio/grid-uikit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20250321.1546",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite",
|
|
6
6
|
"build": "vite build",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"copyfiles": "^2.4.1",
|
|
42
42
|
"postcss": "^8.5.1",
|
|
43
43
|
"postcss-cli": "^11.0.0",
|
|
44
|
-
"prettier": "^3.
|
|
45
|
-
"prettier-plugin-svelte": "^3.
|
|
44
|
+
"prettier": "^3.5.3",
|
|
45
|
+
"prettier-plugin-svelte": "^3.3.3",
|
|
46
46
|
"publint": "^0.1.9",
|
|
47
47
|
"svelte-check": "^3.6.7",
|
|
48
48
|
"tailwindcss": "^3.4.4",
|
package/dist/Counter.svelte
DELETED
package/dist/Counter.svelte.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: Record<string, never>;
|
|
4
|
-
events: {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
};
|
|
7
|
-
slots: {};
|
|
8
|
-
};
|
|
9
|
-
export type CounterProps = typeof __propDef.props;
|
|
10
|
-
export type CounterEvents = typeof __propDef.events;
|
|
11
|
-
export type CounterSlots = typeof __propDef.slots;
|
|
12
|
-
export default class Counter extends SvelteComponent<CounterProps, CounterEvents, CounterSlots> {
|
|
13
|
-
}
|
|
14
|
-
export {};
|