tinybase 8.2.0-beta.1 → 8.2.0-beta.2
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/@types/ui-react-dom/index.d.ts +44 -10
- package/@types/ui-react-dom/with-schemas/index.d.ts +44 -10
- package/@types/ui-react-inspector/index.d.ts +4 -1
- package/@types/ui-react-inspector/with-schemas/index.d.ts +4 -1
- package/@types/ui-svelte-dom/index.d.ts +44 -10
- package/@types/ui-svelte-dom/with-schemas/index.d.ts +44 -10
- package/@types/ui-svelte-inspector/index.d.ts +4 -1
- package/@types/ui-svelte-inspector/with-schemas/index.d.ts +4 -1
- package/agents.md +7 -3
- package/min/ui-svelte-dom/index.js +1 -1
- package/min/ui-svelte-dom/index.js.gz +0 -0
- package/min/ui-svelte-dom/with-schemas/index.js +1 -1
- package/min/ui-svelte-dom/with-schemas/index.js.gz +0 -0
- package/min/ui-svelte-inspector/index.js +1 -1
- package/min/ui-svelte-inspector/index.js.gz +0 -0
- package/min/ui-svelte-inspector/with-schemas/index.js +1 -1
- package/min/ui-svelte-inspector/with-schemas/index.js.gz +0 -0
- package/package.json +11 -11
- package/readme.md +5 -5
- package/releases.md +55 -21
- package/ui-svelte/index.js +1 -1
- package/ui-svelte/with-schemas/index.js +1 -1
- package/ui-svelte-dom/index.js +22 -24
- package/ui-svelte-dom/with-schemas/index.js +22 -24
- package/ui-svelte-inspector/index.js +22 -24
- package/ui-svelte-inspector/with-schemas/index.js +22 -24
|
@@ -2874,7 +2874,7 @@ const createStore = () => {
|
|
|
2874
2874
|
|
|
2875
2875
|
const TINYBASE_CONTEXT_KEY = TINYBASE + '_uisc';
|
|
2876
2876
|
|
|
2877
|
-
/* functions.svelte.ts generated by Svelte v5.55.
|
|
2877
|
+
/* functions.svelte.ts generated by Svelte v5.55.4 */
|
|
2878
2878
|
|
|
2879
2879
|
class ReactiveHandle {
|
|
2880
2880
|
#get;
|
|
@@ -3472,7 +3472,7 @@ var root_3$3 = $.from_html(`<input type="number"/>`);
|
|
|
3472
3472
|
var root_4$5 = $.from_html(`<input type="checkbox"/>`);
|
|
3473
3473
|
var root_5$5 = $.from_html(`<input/>`);
|
|
3474
3474
|
var root_6$2 = $.from_html(`<input/>`);
|
|
3475
|
-
var root$b = $.from_html(`<div
|
|
3475
|
+
var root$b = $.from_html(`<div><!><!></div>`);
|
|
3476
3476
|
|
|
3477
3477
|
function EditableThing($$anchor, $$props) {
|
|
3478
3478
|
$.push($$props, true);
|
|
@@ -3591,7 +3591,7 @@ function EditableThing($$anchor, $$props) {
|
|
|
3591
3591
|
});
|
|
3592
3592
|
}
|
|
3593
3593
|
|
|
3594
|
-
var node_1 = $.sibling(node
|
|
3594
|
+
var node_1 = $.sibling(node);
|
|
3595
3595
|
|
|
3596
3596
|
{
|
|
3597
3597
|
var consequent_1 = ($$anchor) => {
|
|
@@ -4650,7 +4650,7 @@ function HtmlTable($$anchor, $$props) {
|
|
|
4650
4650
|
$.delegate(['click']);
|
|
4651
4651
|
|
|
4652
4652
|
var root_1$8 = $.from_html(
|
|
4653
|
-
`<button class="previous"></button
|
|
4653
|
+
`<button class="previous"></button><button class="next"></button> `,
|
|
4654
4654
|
1,
|
|
4655
4655
|
);
|
|
4656
4656
|
var root$7 = $.from_html(`<!> `, 1);
|
|
@@ -4668,6 +4668,14 @@ function SortedTablePaginator($$anchor, $$props) {
|
|
|
4668
4668
|
const limit = $.derived(() => $$props.limit ?? $$props.total);
|
|
4669
4669
|
const singular = $.derived(() => $$props.singular ?? 'row');
|
|
4670
4670
|
const plural = $.derived(() => $$props.plural ?? $.get(singular) + 's');
|
|
4671
|
+
const rangeLabel = $.derived(
|
|
4672
|
+
() =>
|
|
4673
|
+
`${$.get(offset) + 1} to ${mathMin($$props.total, $.get(offset) + $.get(limit))} of `,
|
|
4674
|
+
);
|
|
4675
|
+
const totalLabel = $.derived(
|
|
4676
|
+
() =>
|
|
4677
|
+
`${$$props.total} ${$$props.total != 1 ? $.get(plural) : $.get(singular)}`,
|
|
4678
|
+
);
|
|
4671
4679
|
|
|
4672
4680
|
$.user_effect(() => {
|
|
4673
4681
|
if (($$props.offset ?? 0) > $$props.total || ($$props.offset ?? 0) < 0) {
|
|
@@ -4685,20 +4693,17 @@ function SortedTablePaginator($$anchor, $$props) {
|
|
|
4685
4693
|
|
|
4686
4694
|
button.textContent = '←';
|
|
4687
4695
|
|
|
4688
|
-
var button_1 = $.sibling(button
|
|
4696
|
+
var button_1 = $.sibling(button);
|
|
4689
4697
|
|
|
4690
4698
|
button_1.textContent = '→';
|
|
4691
4699
|
|
|
4692
|
-
var text = $.sibling(button_1);
|
|
4700
|
+
var text = $.sibling(button_1, 1, true);
|
|
4693
4701
|
|
|
4694
|
-
$.template_effect(
|
|
4695
|
-
(
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
},
|
|
4700
|
-
[() => mathMin($$props.total, $.get(offset) + $.get(limit))],
|
|
4701
|
-
);
|
|
4702
|
+
$.template_effect(() => {
|
|
4703
|
+
button.disabled = $.get(offset) == 0;
|
|
4704
|
+
button_1.disabled = $.get(offset) + $.get(limit) >= $$props.total;
|
|
4705
|
+
$.set_text(text, $.get(rangeLabel));
|
|
4706
|
+
});
|
|
4702
4707
|
|
|
4703
4708
|
$.delegated('click', button, () =>
|
|
4704
4709
|
$$props.onChange($.get(offset) - $.get(limit)),
|
|
@@ -4714,23 +4719,16 @@ function SortedTablePaginator($$anchor, $$props) {
|
|
|
4714
4719
|
});
|
|
4715
4720
|
}
|
|
4716
4721
|
|
|
4717
|
-
var text_1 = $.sibling(node);
|
|
4718
|
-
|
|
4719
|
-
$.template_effect(() =>
|
|
4720
|
-
$.set_text(
|
|
4721
|
-
text_1,
|
|
4722
|
-
` ${$$props.total ?? ''}
|
|
4723
|
-
${($$props.total != 1 ? $.get(plural) : $.get(singular)) ?? ''}`,
|
|
4724
|
-
),
|
|
4725
|
-
);
|
|
4722
|
+
var text_1 = $.sibling(node, 1, true);
|
|
4726
4723
|
|
|
4724
|
+
$.template_effect(() => $.set_text(text_1, $.get(totalLabel)));
|
|
4727
4725
|
$.append($$anchor, fragment);
|
|
4728
4726
|
$.pop();
|
|
4729
4727
|
}
|
|
4730
4728
|
|
|
4731
4729
|
$.delegate(['click']);
|
|
4732
4730
|
|
|
4733
|
-
/* sortingAndPagination.svelte.ts generated by Svelte v5.55.
|
|
4731
|
+
/* sortingAndPagination.svelte.ts generated by Svelte v5.55.4 */
|
|
4734
4732
|
|
|
4735
4733
|
const createSortingAndPagination = (
|
|
4736
4734
|
getCellId,
|
|
@@ -2874,7 +2874,7 @@ const createStore = () => {
|
|
|
2874
2874
|
|
|
2875
2875
|
const TINYBASE_CONTEXT_KEY = TINYBASE + '_uisc';
|
|
2876
2876
|
|
|
2877
|
-
/* functions.svelte.ts generated by Svelte v5.55.
|
|
2877
|
+
/* functions.svelte.ts generated by Svelte v5.55.4 */
|
|
2878
2878
|
|
|
2879
2879
|
class ReactiveHandle {
|
|
2880
2880
|
#get;
|
|
@@ -3472,7 +3472,7 @@ var root_3$3 = $.from_html(`<input type="number"/>`);
|
|
|
3472
3472
|
var root_4$5 = $.from_html(`<input type="checkbox"/>`);
|
|
3473
3473
|
var root_5$5 = $.from_html(`<input/>`);
|
|
3474
3474
|
var root_6$2 = $.from_html(`<input/>`);
|
|
3475
|
-
var root$b = $.from_html(`<div
|
|
3475
|
+
var root$b = $.from_html(`<div><!><!></div>`);
|
|
3476
3476
|
|
|
3477
3477
|
function EditableThing($$anchor, $$props) {
|
|
3478
3478
|
$.push($$props, true);
|
|
@@ -3591,7 +3591,7 @@ function EditableThing($$anchor, $$props) {
|
|
|
3591
3591
|
});
|
|
3592
3592
|
}
|
|
3593
3593
|
|
|
3594
|
-
var node_1 = $.sibling(node
|
|
3594
|
+
var node_1 = $.sibling(node);
|
|
3595
3595
|
|
|
3596
3596
|
{
|
|
3597
3597
|
var consequent_1 = ($$anchor) => {
|
|
@@ -4650,7 +4650,7 @@ function HtmlTable($$anchor, $$props) {
|
|
|
4650
4650
|
$.delegate(['click']);
|
|
4651
4651
|
|
|
4652
4652
|
var root_1$8 = $.from_html(
|
|
4653
|
-
`<button class="previous"></button
|
|
4653
|
+
`<button class="previous"></button><button class="next"></button> `,
|
|
4654
4654
|
1,
|
|
4655
4655
|
);
|
|
4656
4656
|
var root$7 = $.from_html(`<!> `, 1);
|
|
@@ -4668,6 +4668,14 @@ function SortedTablePaginator($$anchor, $$props) {
|
|
|
4668
4668
|
const limit = $.derived(() => $$props.limit ?? $$props.total);
|
|
4669
4669
|
const singular = $.derived(() => $$props.singular ?? 'row');
|
|
4670
4670
|
const plural = $.derived(() => $$props.plural ?? $.get(singular) + 's');
|
|
4671
|
+
const rangeLabel = $.derived(
|
|
4672
|
+
() =>
|
|
4673
|
+
`${$.get(offset) + 1} to ${mathMin($$props.total, $.get(offset) + $.get(limit))} of `,
|
|
4674
|
+
);
|
|
4675
|
+
const totalLabel = $.derived(
|
|
4676
|
+
() =>
|
|
4677
|
+
`${$$props.total} ${$$props.total != 1 ? $.get(plural) : $.get(singular)}`,
|
|
4678
|
+
);
|
|
4671
4679
|
|
|
4672
4680
|
$.user_effect(() => {
|
|
4673
4681
|
if (($$props.offset ?? 0) > $$props.total || ($$props.offset ?? 0) < 0) {
|
|
@@ -4685,20 +4693,17 @@ function SortedTablePaginator($$anchor, $$props) {
|
|
|
4685
4693
|
|
|
4686
4694
|
button.textContent = '←';
|
|
4687
4695
|
|
|
4688
|
-
var button_1 = $.sibling(button
|
|
4696
|
+
var button_1 = $.sibling(button);
|
|
4689
4697
|
|
|
4690
4698
|
button_1.textContent = '→';
|
|
4691
4699
|
|
|
4692
|
-
var text = $.sibling(button_1);
|
|
4700
|
+
var text = $.sibling(button_1, 1, true);
|
|
4693
4701
|
|
|
4694
|
-
$.template_effect(
|
|
4695
|
-
(
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
},
|
|
4700
|
-
[() => mathMin($$props.total, $.get(offset) + $.get(limit))],
|
|
4701
|
-
);
|
|
4702
|
+
$.template_effect(() => {
|
|
4703
|
+
button.disabled = $.get(offset) == 0;
|
|
4704
|
+
button_1.disabled = $.get(offset) + $.get(limit) >= $$props.total;
|
|
4705
|
+
$.set_text(text, $.get(rangeLabel));
|
|
4706
|
+
});
|
|
4702
4707
|
|
|
4703
4708
|
$.delegated('click', button, () =>
|
|
4704
4709
|
$$props.onChange($.get(offset) - $.get(limit)),
|
|
@@ -4714,23 +4719,16 @@ function SortedTablePaginator($$anchor, $$props) {
|
|
|
4714
4719
|
});
|
|
4715
4720
|
}
|
|
4716
4721
|
|
|
4717
|
-
var text_1 = $.sibling(node);
|
|
4718
|
-
|
|
4719
|
-
$.template_effect(() =>
|
|
4720
|
-
$.set_text(
|
|
4721
|
-
text_1,
|
|
4722
|
-
` ${$$props.total ?? ''}
|
|
4723
|
-
${($$props.total != 1 ? $.get(plural) : $.get(singular)) ?? ''}`,
|
|
4724
|
-
),
|
|
4725
|
-
);
|
|
4722
|
+
var text_1 = $.sibling(node, 1, true);
|
|
4726
4723
|
|
|
4724
|
+
$.template_effect(() => $.set_text(text_1, $.get(totalLabel)));
|
|
4727
4725
|
$.append($$anchor, fragment);
|
|
4728
4726
|
$.pop();
|
|
4729
4727
|
}
|
|
4730
4728
|
|
|
4731
4729
|
$.delegate(['click']);
|
|
4732
4730
|
|
|
4733
|
-
/* sortingAndPagination.svelte.ts generated by Svelte v5.55.
|
|
4731
|
+
/* sortingAndPagination.svelte.ts generated by Svelte v5.55.4 */
|
|
4734
4732
|
|
|
4735
4733
|
const createSortingAndPagination = (
|
|
4736
4734
|
getCellId,
|