@rkosafo/cai.components 0.0.48 → 0.0.50
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.
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
onDelete,
|
|
68
68
|
editor,
|
|
69
69
|
customFilter,
|
|
70
|
+
handleCheckbox,
|
|
70
71
|
read = $bindable((skip?: number, take?: number, filter?: TableFilter<any>) => {
|
|
71
72
|
return null;
|
|
72
73
|
}),
|
|
@@ -474,7 +475,7 @@
|
|
|
474
475
|
onDelete={handleDelete}
|
|
475
476
|
onRowClicked={handleRowClicked}
|
|
476
477
|
{onActionClicked}
|
|
477
|
-
handleCheckbox
|
|
478
|
+
{handleCheckbox}
|
|
478
479
|
{...otherProps}
|
|
479
480
|
/>
|
|
480
481
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { Dropdown, DropdownItem, type TableProps } from '../../index.js';
|
|
2
|
+
import { Checkbox, Dropdown, DropdownItem, type TableProps } from '../../index.js';
|
|
3
3
|
import { clickOutsideAction } from '../../utils/svelte-legos.js';
|
|
4
4
|
import { createTable, Render, Subscribe } from 'svelte-headless-table';
|
|
5
5
|
import {
|
|
@@ -141,9 +141,8 @@
|
|
|
141
141
|
<th
|
|
142
142
|
class="px-6 py-2.5 text-left text-sm font-semibold whitespace-nowrap rtl:text-right"
|
|
143
143
|
>
|
|
144
|
-
<
|
|
145
|
-
class="cursor-pointer"
|
|
146
|
-
type="checkbox"
|
|
144
|
+
<Checkbox
|
|
145
|
+
class="h-5 w-5 cursor-pointer"
|
|
147
146
|
checked={selectAllChecked}
|
|
148
147
|
onchange={handleSelectAllChange}
|
|
149
148
|
/>
|
|
@@ -226,9 +225,8 @@
|
|
|
226
225
|
>
|
|
227
226
|
{#if showCheckBox}
|
|
228
227
|
<td class="px-6 py-2">
|
|
229
|
-
<
|
|
230
|
-
|
|
231
|
-
class="cursor-pointer"
|
|
228
|
+
<Checkbox
|
|
229
|
+
class="h-5 w-5 cursor-pointer"
|
|
232
230
|
onchange={(e) => {
|
|
233
231
|
const checked = e?.target?.checked;
|
|
234
232
|
handleRowCheckboxChange(checked, getRow(row));
|