@ticatec/uniface-element 0.1.21 → 0.1.23
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/common-editor/CommonEditor.svelte +2 -2
- package/dist/number-editor/NumberEditor.svelte +1 -0
- package/dist/text-editor/TextEditor.svelte +1 -1
- package/dist/time-editor/TimeEditor.svelte +8 -1
- package/dist/time-editor/TimeEditor.svelte.d.ts +1 -0
- package/dist/unit-number-editor/UnitNumberEditor.svelte +1 -0
- package/package.json +1 -1
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
export let showActionIcon: boolean = false;
|
|
19
19
|
export let clean: () => void;
|
|
20
20
|
|
|
21
|
-
export let hasLeadingIcon: boolean =
|
|
22
|
-
export let hasTrailingIcon: boolean =
|
|
21
|
+
export let hasLeadingIcon: boolean = true;
|
|
22
|
+
export let hasTrailingIcon: boolean = true;
|
|
23
23
|
|
|
24
24
|
let className: string = '';
|
|
25
25
|
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
</script>
|
|
38
38
|
<CommonEditor {displayMode} {style} {value} {suffix} {prefix} {readonly} {variant} {compact} class={className}
|
|
39
|
+
hasLeadingIcon={$$slots['leading-icon']!=null} hasTrailingIcon={$$slots['trailing-icon']!=null}
|
|
39
40
|
showActionIcon={removable && !readonly && !disabled && value != null} {clean}>
|
|
40
41
|
<svelte:fragment slot="leading-icon">
|
|
41
42
|
{#if $$slots['leading-icon']}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
</script>
|
|
49
49
|
<CommonEditor {displayMode} {style} {value} {suffix} {prefix} {readonly} {disabled} {variant} {compact}
|
|
50
|
-
hasLeadingIcon={$$slots['leading-icon']} hasTrailingIcon={$$slots['trailing-icon']}
|
|
50
|
+
hasLeadingIcon={$$slots['leading-icon']!=null} hasTrailingIcon={$$slots['trailing-icon']!=null}
|
|
51
51
|
showActionIcon={!readonly && !disabled && removable && value?.length > 0} placeholder={input$['placeholder']}
|
|
52
52
|
class={className} clean={clean}>
|
|
53
53
|
<svelte:fragment slot="leading-icon">
|
|
@@ -171,6 +171,7 @@
|
|
|
171
171
|
|
|
172
172
|
</script>
|
|
173
173
|
<CommonEditor {displayMode} {style} value={toTimeText(value)} {suffix} {prefix} {disabled} {readonly} {variant} {compact} class={className}
|
|
174
|
+
hasLeadingIcon={$$slots['leading-icon']!=null} hasTrailingIcon={$$slots['trailing-icon']!=null}
|
|
174
175
|
showActionIcon={textValue!=emptyStr} clean={handleDeleteButton}>
|
|
175
176
|
<svelte:fragment slot="leading-icon">
|
|
176
177
|
{#if $$slots['leading-icon']}
|
|
@@ -182,5 +183,11 @@
|
|
|
182
183
|
<input bind:this={editor} type="text" style="flex: 1 1 auto" bind:value={textValue} {disabled}
|
|
183
184
|
on:keydown={handleKeyDown} on:focus={handleFocusEvent} on:blur={handleBlurEvent}
|
|
184
185
|
on:mousedown={handleMouseDown}/>
|
|
185
|
-
|
|
186
|
+
<svelte:fragment slot="trailing-icon">
|
|
187
|
+
{#if $$slots['trailing-icon']}
|
|
188
|
+
<div class="editor-embed-icon">
|
|
189
|
+
<slot name="trailing-icon"/>
|
|
190
|
+
</div>
|
|
191
|
+
{/if}
|
|
192
|
+
</svelte:fragment>
|
|
186
193
|
</CommonEditor>
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
|
|
99
99
|
<div bind:this={divPanel}>
|
|
100
100
|
<CommonEditor {displayMode} {style} {value} {prefix} suffix={unit?.text??unit?.code} {readonly} {variant} {compact} class={className}
|
|
101
|
+
hasLeadingIcon={$$slots['leading-icon']!=null}
|
|
101
102
|
showActionIcon={removable && !readonly && !disabled && value != null} {clean}>
|
|
102
103
|
<svelte:fragment slot="leading-icon">
|
|
103
104
|
{#if $$slots['leading-icon']}
|