@dvcol/neo-svelte 0.1.9 → 0.1.10
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.10](https://github.com/dvcol/neo-svelte/compare/v0.1.9...v0.1.10) (2025-02-19)
|
|
6
|
+
|
|
5
7
|
### [0.1.9](https://github.com/dvcol/neo-svelte/compare/v0.1.8...v0.1.9) (2025-02-19)
|
|
6
8
|
|
|
7
9
|
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
const space = $derived(open ? 8 : 6);
|
|
105
105
|
watch(
|
|
106
106
|
() => {
|
|
107
|
-
value = transform(selected);
|
|
107
|
+
value = transform ? transform(selected) : selected;
|
|
108
108
|
touched = true;
|
|
109
109
|
},
|
|
110
110
|
() => selected,
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
bind:focused
|
|
171
171
|
bind:focusin
|
|
172
172
|
bind:value
|
|
173
|
-
display={(
|
|
173
|
+
display={(customDisplay ?? display) ? (customDisplay ?? display?.(selected)) : undefined}
|
|
174
174
|
{rounded}
|
|
175
175
|
{floating}
|
|
176
176
|
{clearable}
|
package/dist/inputs/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { default as NeoSwitch } from './NeoSwitch.svelte';
|
|
|
13
13
|
export { default as NeoSelect } from './NeoSelect.svelte';
|
|
14
14
|
export { default as NeoNativeSelect } from './NeoNativeSelect.svelte';
|
|
15
15
|
export { NeoInputLabelPlacement } from './common/neo-input.model.js';
|
|
16
|
+
export { displayValue, transformValue } from './neo-select.model.js';
|
|
16
17
|
export type * from './common/neo-input.model.js';
|
|
17
18
|
export type * from './neo-checkbox.model.js';
|
|
18
19
|
export type * from './neo-color-picker.model.js';
|
package/dist/inputs/index.js
CHANGED
|
@@ -13,3 +13,4 @@ export { default as NeoSwitch } from './NeoSwitch.svelte';
|
|
|
13
13
|
export { default as NeoSelect } from './NeoSelect.svelte';
|
|
14
14
|
export { default as NeoNativeSelect } from './NeoNativeSelect.svelte';
|
|
15
15
|
export { NeoInputLabelPlacement } from './common/neo-input.model.js';
|
|
16
|
+
export { displayValue, transformValue } from './neo-select.model.js';
|
|
@@ -113,6 +113,6 @@ export type NeoSelectProps<Value = unknown> = {
|
|
|
113
113
|
* Button properties to pass to the show/hide dropdown button.
|
|
114
114
|
*/
|
|
115
115
|
buttonProps?: NeoButtonProps;
|
|
116
|
-
} & NeoInputProps
|
|
117
|
-
export declare const displayValue:
|
|
118
|
-
export declare const transformValue:
|
|
116
|
+
} & Omit<NeoInputProps, 'display'>;
|
|
117
|
+
export declare const displayValue: NeoSelectProps['display'];
|
|
118
|
+
export declare const transformValue: NeoSelectProps['transform'];
|
package/package.json
CHANGED