@ticatec/uniface-element 0.3.4 → 0.3.5
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.
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
export let data;
|
|
6
6
|
export let href: HrefBuilder;
|
|
7
7
|
|
|
8
|
-
let list: Array<HrefLink> = [];
|
|
8
|
+
let list: Array<HrefLink | string> = [];
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
$: {
|
|
@@ -15,7 +15,11 @@
|
|
|
15
15
|
</script>
|
|
16
16
|
<div style="display: flex; flex-direction: row; gap: 8px; justify-content: center">
|
|
17
17
|
{#each list as item, idx}
|
|
18
|
-
|
|
18
|
+
{#if typeof item == "string"}
|
|
19
|
+
<span>{item}</span>
|
|
20
|
+
{:else}
|
|
21
|
+
<button class="link-style" on:click|preventDefault={()=>item.action()}>{item.text}</button>
|
|
22
|
+
{/if}
|
|
19
23
|
{/each}
|
|
20
24
|
</div>
|
|
21
25
|
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
font: inherit;
|
|
30
34
|
padding: 0;
|
|
31
35
|
}
|
|
36
|
+
|
|
32
37
|
button.link-style:focus {
|
|
33
38
|
outline: none;
|
|
34
39
|
}
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
{#if readonly === false && (filter || lazyLoader)}
|
|
185
185
|
<div class="header-search">
|
|
186
186
|
<SearchBox bind:this={searchBox} compact variant="plain" disabled={isBusy} style="width: 100%" bind:value={filterText}
|
|
187
|
-
|
|
187
|
+
onchange={handleCriteriaChange}/>
|
|
188
188
|
</div>
|
|
189
189
|
{/if}
|
|
190
190
|
</div>
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
{#if selectMode === "multiple"}
|
|
196
196
|
<div class="listview-item" style="display: flex; flex-direction: row; align-items: center; gap: 8px">
|
|
197
197
|
<CheckBox style="flex: 0 0 auto; margin-left: 8px" {readonly} value={selectedList.indexOf(item) > -1}
|
|
198
|
-
|
|
198
|
+
onchange={handleSelectionChanged(item)}/>
|
|
199
199
|
<div style="flex: 1 1 auto; cursor: pointer" aria-hidden="true" on:click={handleSelectionChanged(item)}>
|
|
200
200
|
<svelte:component this={itemRender} {readonly} {item} {...item$props}/>
|
|
201
201
|
</div>
|
package/package.json
CHANGED