@cloudparker/moldex.js 0.0.118 → 0.0.119
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.
|
@@ -113,50 +113,50 @@ onMount(() => {
|
|
|
113
113
|
<VirtualScrollingList items={filteredRecords} {containerHeight} itemHeight={56}>
|
|
114
114
|
{#snippet itemSnippet(item: any, index: number)}
|
|
115
115
|
{@const isSelected = selectedSet.has(item[identityFieldName])}
|
|
116
|
-
<div>
|
|
117
|
-
{#if itemTileSnippet}
|
|
118
|
-
<ButtonListItem onClick={(ev) => handleItemClick(ev, item, index)}>
|
|
119
|
-
{@render itemTileSnippet(item, index)}
|
|
120
|
-
{#if hasCheckbox}
|
|
121
|
-
<div>
|
|
122
|
-
<Icon
|
|
123
|
-
path={isSelected ? checkboxIconPath : uncheckboxIconPath}
|
|
124
|
-
className="w-5 h-5 {checkboxClassName} {isSelected
|
|
125
|
-
? `text-primary ${checkboxIconClassName}`
|
|
126
|
-
: `text-base-400 ${uncheckboxIconClassName}`}"
|
|
127
|
-
/>
|
|
128
|
-
</div>
|
|
129
|
-
{/if}
|
|
130
116
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
117
|
+
{#if itemTileSnippet}
|
|
118
|
+
<ButtonListItem onClick={(ev) => handleItemClick(ev, item, index)}>
|
|
119
|
+
{@render itemTileSnippet(item, index)}
|
|
120
|
+
{#if hasCheckbox}
|
|
121
|
+
<div>
|
|
122
|
+
<Icon
|
|
123
|
+
path={isSelected ? checkboxIconPath : uncheckboxIconPath}
|
|
124
|
+
className="w-5 h-5 {checkboxClassName} {isSelected
|
|
125
|
+
? `text-primary ${checkboxIconClassName}`
|
|
126
|
+
: `text-base-400 ${uncheckboxIconClassName}`}"
|
|
127
|
+
/>
|
|
128
|
+
</div>
|
|
129
|
+
{/if}
|
|
130
|
+
|
|
131
|
+
{#if hasArrow}
|
|
132
|
+
<div>
|
|
133
|
+
<Icon path={arrowIconPath} className="w-5 h-5 text-base-500 {arrowClassName} " />
|
|
134
|
+
</div>
|
|
135
|
+
{/if}
|
|
136
|
+
</ButtonListItem>
|
|
137
|
+
{:else}
|
|
138
|
+
<ButtonListItem
|
|
139
|
+
className="h-full"
|
|
140
|
+
onClick={(ev) => handleItemClick(ev, item, index)}
|
|
141
|
+
title={item[titleFieldName]}
|
|
142
|
+
subtitle={item[subtitleFieldName || ''] || ''}
|
|
143
|
+
{hasCheckbox}
|
|
144
|
+
{hasArrow}
|
|
145
|
+
isChecked={isSelected}
|
|
146
|
+
{checkboxIconPath}
|
|
147
|
+
{uncheckboxIconPath}
|
|
148
|
+
{checkboxIconClassName}
|
|
149
|
+
{uncheckboxIconClassName}
|
|
150
|
+
{checkboxClassName}
|
|
151
|
+
{arrowIconPath}
|
|
152
|
+
{arrowClassName}
|
|
153
|
+
{hasIcon}
|
|
154
|
+
{isCircularIcon}
|
|
155
|
+
{circularIconClassName}
|
|
156
|
+
{iconClassName}
|
|
157
|
+
{iconPath}
|
|
158
|
+
/>
|
|
159
|
+
{/if}
|
|
160
160
|
{/snippet}
|
|
161
161
|
</VirtualScrollingList>
|
|
162
162
|
</div>
|