poe-svelte-ui-lib 1.1.11 → 1.1.13

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.
@@ -15,7 +15,7 @@
15
15
  forConstructor = true,
16
16
  } = $props<{
17
17
  component: UIComponent & { properties: Partial<IAccordionProps> }
18
- onPropertyChange: (value: string | object) => void
18
+ onPropertyChange: (value: string | object, name?: string) => void
19
19
  forConstructor?: boolean
20
20
  }>()
21
21
 
@@ -3,7 +3,7 @@ type $$ComponentProps = {
3
3
  component: UIComponent & {
4
4
  properties: Partial<IAccordionProps>;
5
5
  };
6
- onPropertyChange: (value: string | object) => void;
6
+ onPropertyChange: (value: string | object, name?: string) => void;
7
7
  forConstructor?: boolean;
8
8
  };
9
9
  declare const AccordionProps: import("svelte").Component<$$ComponentProps, {}, "">;
@@ -12,7 +12,7 @@
12
12
  forConstructor = true,
13
13
  } = $props<{
14
14
  component: UIComponent & { properties: Partial<IButtonProps> }
15
- onPropertyChange: (value: string | object) => void
15
+ onPropertyChange: (value: string | object, name?: string) => void
16
16
  forConstructor?: boolean
17
17
  }>()
18
18
 
@@ -3,7 +3,7 @@ type $$ComponentProps = {
3
3
  component: UIComponent & {
4
4
  properties: Partial<IButtonProps>;
5
5
  };
6
- onPropertyChange: (value: string | object) => void;
6
+ onPropertyChange: (value: string | object, name?: string) => void;
7
7
  forConstructor?: boolean;
8
8
  };
9
9
  declare const ButtonProps: import("svelte").Component<$$ComponentProps, {}, "">;
@@ -12,7 +12,7 @@
12
12
  forConstructor = true,
13
13
  } = $props<{
14
14
  component: UIComponent & { properties: Partial<IColorPickerProps> }
15
- onPropertyChange: (value: string | object) => void
15
+ onPropertyChange: (value: string | object, name?: string) => void
16
16
  forConstructor?: boolean
17
17
  }>()
18
18
 
@@ -35,7 +35,7 @@
35
35
  options={VARIABLE_OPTIONS}
36
36
  value={VARIABLE_OPTIONS.find((opt) => opt.value === component.properties.id)}
37
37
  onUpdate={(value) => {
38
- updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('|')[1].trim())
38
+ updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('')[1].trim())
39
39
  updateProperty('eventHandler.Variables', value.value as string, component, onPropertyChange)
40
40
  }}
41
41
  />
@@ -3,7 +3,7 @@ type $$ComponentProps = {
3
3
  component: UIComponent & {
4
4
  properties: Partial<IColorPickerProps>;
5
5
  };
6
- onPropertyChange: (value: string | object) => void;
6
+ onPropertyChange: (value: string | object, name?: string) => void;
7
7
  forConstructor?: boolean;
8
8
  };
9
9
  declare const ColorPickerProps: import("svelte").Component<$$ComponentProps, {}, "">;
@@ -10,7 +10,7 @@
10
10
  forConstructor = true,
11
11
  } = $props<{
12
12
  component: UIComponent & { properties: Partial<IGraphProps> }
13
- onPropertyChange: (value: string | object) => void
13
+ onPropertyChange: (value: string | object, name?: string) => void
14
14
  forConstructor?: boolean
15
15
  }>()
16
16
 
@@ -27,7 +27,7 @@
27
27
  options={VARIABLE_OPTIONS}
28
28
  value={VARIABLE_OPTIONS.find((opt) => opt.value === component.properties.id)}
29
29
  onUpdate={(value) => {
30
- updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('|')[1].trim())
30
+ updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('')[1].trim())
31
31
  updateProperty('eventHandler.Variables', value.value as string, component, onPropertyChange)
32
32
  }}
33
33
  />
@@ -3,7 +3,7 @@ type $$ComponentProps = {
3
3
  component: UIComponent & {
4
4
  properties: Partial<IGraphProps>;
5
5
  };
6
- onPropertyChange: (value: string | object) => void;
6
+ onPropertyChange: (value: string | object, name?: string) => void;
7
7
  forConstructor?: boolean;
8
8
  };
9
9
  declare const GraphProps: import("svelte").Component<$$ComponentProps, {}, "">;
@@ -12,7 +12,7 @@
12
12
  forConstructor = true,
13
13
  } = $props<{
14
14
  component: UIComponent & { properties: Partial<IInputProps> }
15
- onPropertyChange: (value: string | object) => void
15
+ onPropertyChange: (value: string | object, name?: string) => void
16
16
  forConstructor?: boolean
17
17
  }>()
18
18
 
@@ -96,7 +96,7 @@
96
96
  options={VARIABLE_OPTIONS}
97
97
  value={VARIABLE_OPTIONS.find((opt) => opt.value === component.properties.id)}
98
98
  onUpdate={(value) => {
99
- updateProperty('id', value.value as string, value.name?.split('|')[1].trim())
99
+ updateProperty('id', value.value as string, value.name?.split('')[1].trim())
100
100
  updateProperty('eventHandler.Variables', value.value as string)
101
101
  }}
102
102
  />
@@ -3,7 +3,7 @@ type $$ComponentProps = {
3
3
  component: UIComponent & {
4
4
  properties: Partial<IInputProps>;
5
5
  };
6
- onPropertyChange: (value: string | object) => void;
6
+ onPropertyChange: (value: string | object, name?: string) => void;
7
7
  forConstructor?: boolean;
8
8
  };
9
9
  declare const InputProps: import("svelte").Component<$$ComponentProps, {}, "">;
@@ -12,7 +12,7 @@
12
12
  forConstructor = true,
13
13
  } = $props<{
14
14
  component: UIComponent & { properties: Partial<IProgressBarProps> }
15
- onPropertyChange: (value: string | object) => void
15
+ onPropertyChange: (value: string | object, name?: string) => void
16
16
  forConstructor?: boolean
17
17
  }>()
18
18
 
@@ -40,7 +40,7 @@
40
40
  options={VARIABLE_OPTIONS}
41
41
  value={VARIABLE_OPTIONS.find((opt) => opt.value === component.properties.id)}
42
42
  onUpdate={(value) => {
43
- updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('|')[1].trim())
43
+ updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('')[1].trim())
44
44
  updateProperty('eventHandler.Variables', value.value as string, component, onPropertyChange)
45
45
  }}
46
46
  />
@@ -3,7 +3,7 @@ type $$ComponentProps = {
3
3
  component: UIComponent & {
4
4
  properties: Partial<IProgressBarProps>;
5
5
  };
6
- onPropertyChange: (value: string | object) => void;
6
+ onPropertyChange: (value: string | object, name?: string) => void;
7
7
  forConstructor?: boolean;
8
8
  };
9
9
  declare const ProgressBarProps: import("svelte").Component<$$ComponentProps, {}, "">;
@@ -14,7 +14,7 @@
14
14
  forConstructor = true,
15
15
  } = $props<{
16
16
  component: UIComponent & { properties: Partial<ISelectProps> }
17
- onPropertyChange: (value: string | object) => void
17
+ onPropertyChange: (value: string | object, name?: string) => void
18
18
  forConstructor?: boolean
19
19
  }>()
20
20
 
@@ -67,7 +67,7 @@
67
67
  options={VARIABLE_OPTIONS}
68
68
  value={VARIABLE_OPTIONS.find((opt) => opt.value === component.properties.id)}
69
69
  onUpdate={(value) => {
70
- updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('|')[1].trim())
70
+ updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('')[1].trim())
71
71
  updateProperty('eventHandler.Variables', value.value as string, component, onPropertyChange)
72
72
  }}
73
73
  />
@@ -3,7 +3,7 @@ type $$ComponentProps = {
3
3
  component: UIComponent & {
4
4
  properties: Partial<ISelectProps>;
5
5
  };
6
- onPropertyChange: (value: string | object) => void;
6
+ onPropertyChange: (value: string | object, name?: string) => void;
7
7
  forConstructor?: boolean;
8
8
  };
9
9
  declare const SelectProps: import("svelte").Component<$$ComponentProps, {}, "">;
@@ -12,7 +12,7 @@
12
12
  forConstructor = true,
13
13
  } = $props<{
14
14
  component: UIComponent & { properties: Partial<ISliderProps> }
15
- onPropertyChange: (value: string | object) => void
15
+ onPropertyChange: (value: string | object, name?: string) => void
16
16
  forConstructor?: boolean
17
17
  }>()
18
18
 
@@ -40,7 +40,7 @@
40
40
  options={VARIABLE_OPTIONS}
41
41
  value={VARIABLE_OPTIONS.find((opt) => opt.value === component.properties.id)}
42
42
  onUpdate={(value) => {
43
- updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('|')[1].trim())
43
+ updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('')[1].trim())
44
44
  updateProperty('eventHandler.Variables', value.value as string, component, onPropertyChange)
45
45
  }}
46
46
  />
@@ -3,7 +3,7 @@ type $$ComponentProps = {
3
3
  component: UIComponent & {
4
4
  properties: Partial<ISliderProps>;
5
5
  };
6
- onPropertyChange: (value: string | object) => void;
6
+ onPropertyChange: (value: string | object, name?: string) => void;
7
7
  forConstructor?: boolean;
8
8
  };
9
9
  declare const SliderProps: import("svelte").Component<$$ComponentProps, {}, "">;
@@ -12,7 +12,7 @@
12
12
  forConstructor = true,
13
13
  } = $props<{
14
14
  component: UIComponent & { properties: Partial<ISwitchProps> }
15
- onPropertyChange: (value: string | object) => void
15
+ onPropertyChange: (value: string | object, name?: string) => void
16
16
  forConstructor?: boolean
17
17
  }>()
18
18
  const DeviceVariables = getContext<{ id: string; value: string; name: string }[]>('DeviceVariables')
@@ -34,7 +34,7 @@
34
34
  options={VARIABLE_OPTIONS}
35
35
  value={VARIABLE_OPTIONS.find((opt) => opt.value === component.properties.id)}
36
36
  onUpdate={(value) => {
37
- updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('|')[1].trim())
37
+ updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('')[1].trim())
38
38
  updateProperty('eventHandler.Variables', value.value as string, component, onPropertyChange)
39
39
  }}
40
40
  />
@@ -3,7 +3,7 @@ type $$ComponentProps = {
3
3
  component: UIComponent & {
4
4
  properties: Partial<ISwitchProps>;
5
5
  };
6
- onPropertyChange: (value: string | object) => void;
6
+ onPropertyChange: (value: string | object, name?: string) => void;
7
7
  forConstructor?: boolean;
8
8
  };
9
9
  declare const SwitchProps: import("svelte").Component<$$ComponentProps, {}, "">;
@@ -14,7 +14,7 @@
14
14
  forConstructor = true,
15
15
  } = $props<{
16
16
  component: UIComponent & { properties: Partial<ITableProps<object>> }
17
- onPropertyChange: (value: string | object) => void
17
+ onPropertyChange: (value: string | object, name?: string) => void
18
18
  forConstructor?: boolean
19
19
  }>()
20
20
 
@@ -75,7 +75,7 @@
75
75
  options={VARIABLE_OPTIONS}
76
76
  value={VARIABLE_OPTIONS.find((opt) => opt.value === component.properties.id)}
77
77
  onUpdate={(value) => {
78
- updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('|')[1].trim())
78
+ updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('')[1].trim())
79
79
  updateProperty('eventHandler.Variables', value.value as string, component, onPropertyChange)
80
80
  }}
81
81
  />
@@ -3,7 +3,7 @@ type $$ComponentProps = {
3
3
  component: UIComponent & {
4
4
  properties: Partial<ITableProps<object>>;
5
5
  };
6
- onPropertyChange: (value: string | object) => void;
6
+ onPropertyChange: (value: string | object, name?: string) => void;
7
7
  forConstructor?: boolean;
8
8
  };
9
9
  declare const TableProps: import("svelte").Component<$$ComponentProps, {}, "">;
@@ -12,7 +12,7 @@
12
12
  forConstructor = true,
13
13
  } = $props<{
14
14
  component: UIComponent & { properties: Partial<ITextFieldProps> }
15
- onPropertyChange: (value: string | object) => void
15
+ onPropertyChange: (value: string | object, name?: string) => void
16
16
  forConstructor?: boolean
17
17
  }>()
18
18
  const DeviceVariables = getContext<{ id: string; value: string; name: string }[]>('DeviceVariables')
@@ -42,7 +42,7 @@
42
42
  options={VARIABLE_OPTIONS}
43
43
  value={VARIABLE_OPTIONS.find((opt) => opt.value === component.properties.id)}
44
44
  onUpdate={(value) => {
45
- updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('|')[1].trim())
45
+ updateProperty('id', value.value as string, component, onPropertyChange, value.name?.split('')[1].trim())
46
46
  updateProperty('eventHandler.Variables', value.value as string, component, onPropertyChange)
47
47
  }}
48
48
  />
@@ -3,7 +3,7 @@ type $$ComponentProps = {
3
3
  component: UIComponent & {
4
4
  properties: Partial<ITextFieldProps>;
5
5
  };
6
- onPropertyChange: (value: string | object) => void;
6
+ onPropertyChange: (value: string | object, name?: string) => void;
7
7
  forConstructor?: boolean;
8
8
  };
9
9
  declare const TextFieldProps: import("svelte").Component<$$ComponentProps, {}, "">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-svelte-ui-lib",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {