poe-svelte-ui-lib 1.15.2 → 1.15.4
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.
|
@@ -19,6 +19,11 @@
|
|
|
19
19
|
forConstructor?: boolean
|
|
20
20
|
}>()
|
|
21
21
|
|
|
22
|
+
/* Argument пуст — поле ниже лишь визуально показывает "ModCfg", реальное значение нужно проставить в состояние */
|
|
23
|
+
$effect(() => {
|
|
24
|
+
if (!component.eventHandler.Argument) onPropertyChange({ eventHandler: { Argument: "ModCfg" } })
|
|
25
|
+
})
|
|
26
|
+
|
|
22
27
|
let hasValue: boolean = $derived(component.eventHandler.Value)
|
|
23
28
|
|
|
24
29
|
let Header: IOption = $derived(
|
|
@@ -70,7 +75,7 @@
|
|
|
70
75
|
/>
|
|
71
76
|
<UI.Input
|
|
72
77
|
label={{ name: $T("constructor.props.argument") }}
|
|
73
|
-
value={component.eventHandler.Argument}
|
|
78
|
+
value={component.eventHandler.Argument || "ModCfg"}
|
|
74
79
|
maxlength={32}
|
|
75
80
|
help={{ info: $T("constructor.props.argument.info"), autocomplete: "on", regExp: /^[a-zA-Z0-9\-_]{0,32}$/ }}
|
|
76
81
|
onUpdate={(value) => onPropertyChange({ eventHandler: { Argument: value as string } })}
|
|
@@ -53,12 +53,17 @@
|
|
|
53
53
|
(a.value as string).includes(component.properties.label?.class?.split(" ").find((cls: string) => cls.startsWith("text-"))),
|
|
54
54
|
),
|
|
55
55
|
)
|
|
56
|
+
|
|
57
|
+
/* Argument пуст — поле ниже лишь визуально показывает "ModCfg", реальное значение нужно проставить в состояние */
|
|
58
|
+
$effect(() => {
|
|
59
|
+
if (!component.eventHandler.Argument) onPropertyChange({ eventHandler: { Argument: "ModCfg" } })
|
|
60
|
+
})
|
|
56
61
|
</script>
|
|
57
62
|
|
|
58
63
|
{#snippet SelectArgument()}
|
|
59
64
|
<UI.Input
|
|
60
65
|
label={{ name: $T("constructor.props.argument") }}
|
|
61
|
-
value={component.eventHandler.Argument}
|
|
66
|
+
value={component.eventHandler.Argument || "ModCfg"}
|
|
62
67
|
maxlength={32}
|
|
63
68
|
help={{ info: $T("constructor.props.argument.info"), autocomplete: "on", regExp: /^[a-zA-Z0-9\-_]{0,32}$/ }}
|
|
64
69
|
onUpdate={(value) => onPropertyChange({ eventHandler: { Argument: value as string } })}
|