@lavalogic/scoria 0.0.30 → 0.0.31
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.
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
pageSize?: number;
|
|
12
12
|
snippet: Snippet<[T, number]>;
|
|
13
13
|
itemName?: string;
|
|
14
|
-
|
|
14
|
+
border?: boolean;
|
|
15
15
|
}
|
|
16
16
|
</script>
|
|
17
17
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
pageSize = 20,
|
|
23
23
|
snippet,
|
|
24
24
|
itemName = 'Item',
|
|
25
|
-
|
|
25
|
+
border = false
|
|
26
26
|
}: PaginationProps<T> = $props();
|
|
27
27
|
|
|
28
28
|
const _uuid = generateShortUUID();
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
</div>
|
|
81
81
|
</div> -->
|
|
82
82
|
|
|
83
|
-
<div class="wrapper">
|
|
83
|
+
<div class="wrapper" class:border>
|
|
84
84
|
{#each pageItems as item, index (item[key])}
|
|
85
85
|
{@render snippet(item, index)}
|
|
86
86
|
{/each}
|
|
@@ -164,6 +164,10 @@
|
|
|
164
164
|
</div>
|
|
165
165
|
|
|
166
166
|
<style>.wrapper {
|
|
167
|
+
display: flex;
|
|
168
|
+
flex: 1;
|
|
169
|
+
}
|
|
170
|
+
.wrapper.border {
|
|
167
171
|
border: solid 3px #cbd4da;
|
|
168
172
|
border-radius: 4px;
|
|
169
173
|
}
|
|
@@ -5,7 +5,7 @@ export interface PaginationProps<T extends object> {
|
|
|
5
5
|
pageSize?: number;
|
|
6
6
|
snippet: Snippet<[T, number]>;
|
|
7
7
|
itemName?: string;
|
|
8
|
-
|
|
8
|
+
border?: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare function $$render<T extends object>(): {
|
|
11
11
|
props: PaginationProps<T>;
|
package/dist/index.d.ts
CHANGED
|
@@ -157,3 +157,4 @@ export { type ValidityWrapper } from './Types/Internal/ValidityWrapper.js';
|
|
|
157
157
|
export { Variant } from './Types/Internal/Variant.js';
|
|
158
158
|
export { Colour, ColourSet } from './scss/colours.js';
|
|
159
159
|
export { FilterValueType } from './Components/Table/Types/Filtering/FilterValueType.js';
|
|
160
|
+
export { default as Pagination, type PaginationProps } from './Components/Base/Pagination.svelte';
|
package/dist/index.js
CHANGED
|
@@ -164,3 +164,4 @@ export {} from './Types/Internal/ValidityWrapper.js';
|
|
|
164
164
|
export { Variant } from './Types/Internal/Variant.js';
|
|
165
165
|
export { Colour, ColourSet } from './scss/colours.js';
|
|
166
166
|
export { FilterValueType } from './Components/Table/Types/Filtering/FilterValueType.js';
|
|
167
|
+
export { default as Pagination } from './Components/Base/Pagination.svelte';
|