@rkosafo/cai.components 0.0.49 → 0.0.51
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/types/index.d.ts
CHANGED
|
@@ -681,6 +681,7 @@ export interface DatatableProps<T = any> extends TableProps {
|
|
|
681
681
|
take?: number;
|
|
682
682
|
editor?: Snippet<[DatatableEditorFormProps]>;
|
|
683
683
|
customFilter?: Snippet<[TableFilter]>;
|
|
684
|
+
modalFooter?: Snippet;
|
|
684
685
|
}
|
|
685
686
|
export interface DatatableEditorFormProps {
|
|
686
687
|
recordId?: number | string | null;
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
deleteEntry = async (id: string | number) => {
|
|
81
81
|
return { success: false, data: null, error: null } as any;
|
|
82
82
|
},
|
|
83
|
+
modalFooter,
|
|
83
84
|
...otherProps
|
|
84
85
|
}: DatatableProps = $props();
|
|
85
86
|
|
|
@@ -506,7 +507,9 @@
|
|
|
506
507
|
})}
|
|
507
508
|
|
|
508
509
|
{#snippet footer()}
|
|
509
|
-
{#if
|
|
510
|
+
{#if modalFooter}
|
|
511
|
+
{@render modalFooter()}
|
|
512
|
+
{:else if !viewing}
|
|
510
513
|
<Button disabled={!isValid} loading={isLoading} type="submit" class="w-full" value="submit"
|
|
511
514
|
>Submit</Button
|
|
512
515
|
>
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
class="px-6 py-2.5 text-left text-sm font-semibold whitespace-nowrap rtl:text-right"
|
|
143
143
|
>
|
|
144
144
|
<Checkbox
|
|
145
|
-
class="cursor-pointer"
|
|
145
|
+
class="h-5 w-5 cursor-pointer"
|
|
146
146
|
checked={selectAllChecked}
|
|
147
147
|
onchange={handleSelectAllChange}
|
|
148
148
|
/>
|
|
@@ -225,9 +225,8 @@
|
|
|
225
225
|
>
|
|
226
226
|
{#if showCheckBox}
|
|
227
227
|
<td class="px-6 py-2">
|
|
228
|
-
<
|
|
229
|
-
|
|
230
|
-
class="cursor-pointer"
|
|
228
|
+
<Checkbox
|
|
229
|
+
class="h-5 w-5 cursor-pointer"
|
|
231
230
|
onchange={(e) => {
|
|
232
231
|
const checked = e?.target?.checked;
|
|
233
232
|
handleRowCheckboxChange(checked, getRow(row));
|