@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
- {#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
- onClick={(ev) => handleItemClick(ev, item, index)}
140
- title={item[titleFieldName]}
141
- subtitle={item[subtitleFieldName || ''] || ''}
142
- {hasCheckbox}
143
- {hasArrow}
144
- isChecked={isSelected}
145
- {checkboxIconPath}
146
- {uncheckboxIconPath}
147
- {checkboxIconClassName}
148
- {uncheckboxIconClassName}
149
- {checkboxClassName}
150
- {arrowIconPath}
151
- {arrowClassName}
152
- {hasIcon}
153
- {isCircularIcon}
154
- {circularIconClassName}
155
- {iconClassName}
156
- {iconPath}
157
- />
158
- {/if}
159
- </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
+
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudparker/moldex.js",
3
- "version": "0.0.118",
3
+ "version": "0.0.119",
4
4
  "author": "cloudparker.com",
5
5
  "license": "MIT",
6
6
  "keywords": [