tinybase 8.4.1 → 8.4.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.
@@ -2875,7 +2875,7 @@ const createStore = () => {
2875
2875
 
2876
2876
  const TINYBASE_CONTEXT_KEY = TINYBASE + '_uisc';
2877
2877
 
2878
- /* functions.svelte.ts generated by Svelte v5.55.5 */
2878
+ /* functions.svelte.ts generated by Svelte v5.56.0 */
2879
2879
 
2880
2880
  class ReactiveHandle {
2881
2881
  #get;
@@ -3325,7 +3325,7 @@ const getRelationshipsStoreTableIds = (relationshipsOrId, relationshipId) => {
3325
3325
  };
3326
3326
  };
3327
3327
 
3328
- var root_1$e = $.from_html(`<img tabindex="0" alt=""/>`);
3328
+ var root$m = $.from_html(`<img tabindex="0" alt=""/>`);
3329
3329
 
3330
3330
  function Nub($$anchor, $$props) {
3331
3331
  $.push($$props, true);
@@ -3352,7 +3352,7 @@ function Nub($$anchor, $$props) {
3352
3352
 
3353
3353
  {
3354
3354
  var consequent = ($$anchor) => {
3355
- var img = root_1$e();
3355
+ var img = root$m();
3356
3356
 
3357
3357
  $.template_effect(() => {
3358
3358
  $.set_attribute(img, 'title', TITLE);
@@ -3388,8 +3388,8 @@ const requestInspectorIdleCallback = (callback) =>
3388
3388
  const cancelInspectorIdleCallback = (id) =>
3389
3389
  globalThis.cancelIdleCallback?.(id) ?? clearTimeout(id);
3390
3390
 
3391
- var root_1$d = $.from_html(`<img tabindex="0" alt=""/>`);
3392
- var root$c = $.from_html(
3391
+ var root$l = $.from_html(`<img tabindex="0" alt=""/>`);
3392
+ var root_1$c = $.from_html(
3393
3393
  `<details><summary><span> </span> <!></summary> <div><!></div></details>`,
3394
3394
  );
3395
3395
 
@@ -3415,7 +3415,7 @@ function Details($$anchor, $$props) {
3415
3415
  }
3416
3416
  };
3417
3417
 
3418
- var details = root$c();
3418
+ var details = root_1$c();
3419
3419
  var summary = $.child(details);
3420
3420
  var span = $.child(summary);
3421
3421
  var text = $.child(span, true);
@@ -3426,7 +3426,7 @@ function Details($$anchor, $$props) {
3426
3426
 
3427
3427
  {
3428
3428
  var consequent = ($$anchor) => {
3429
- var img = root_1$d();
3429
+ var img = root$l();
3430
3430
 
3431
3431
  $.template_effect(() => {
3432
3432
  $.set_class(img, 1, $.clsx(editable() ? 'done' : 'edit'));
@@ -3467,13 +3467,11 @@ function Details($$anchor, $$props) {
3467
3467
 
3468
3468
  $.delegate(['click', 'keydown']);
3469
3469
 
3470
- var root_1$c = $.from_html(`<button> </button>`);
3471
- var root_2$9 = $.from_html(`<input/>`);
3472
- var root_3$3 = $.from_html(`<input type="number"/>`);
3473
- var root_4$5 = $.from_html(`<input type="checkbox"/>`);
3474
- var root_5$5 = $.from_html(`<input/>`);
3475
- var root_6$2 = $.from_html(`<input/>`);
3476
- var root$b = $.from_html(`<div><!><!></div>`);
3470
+ var root$k = $.from_html(`<button> </button>`);
3471
+ var root_1$b = $.from_html(`<input/>`);
3472
+ var root_2$4 = $.from_html(`<input type="number"/>`);
3473
+ var root_3$3 = $.from_html(`<input type="checkbox"/>`);
3474
+ var root_4$2 = $.from_html(`<div><!><!></div>`);
3477
3475
 
3478
3476
  function EditableThing($$anchor, $$props) {
3479
3477
  $.push($$props, true);
@@ -3567,12 +3565,12 @@ function EditableThing($$anchor, $$props) {
3567
3565
  const hasWidget = $.derived(
3568
3566
  () => getTypeCase($.get(thingType), 1, 1, 1, 1, 1) == 1,
3569
3567
  );
3570
- var div = root$b();
3568
+ var div = root_4$2();
3571
3569
  var node = $.child(div);
3572
3570
 
3573
3571
  {
3574
3572
  var consequent = ($$anchor) => {
3575
- var button = root_1$c();
3573
+ var button = root$k();
3576
3574
  var text = $.child(button, true);
3577
3575
 
3578
3576
  $.reset(button);
@@ -3596,7 +3594,7 @@ function EditableThing($$anchor, $$props) {
3596
3594
 
3597
3595
  {
3598
3596
  var consequent_1 = ($$anchor) => {
3599
- var input = root_2$9();
3597
+ var input = root_1$b();
3600
3598
 
3601
3599
  $.remove_input_defaults(input);
3602
3600
  $.template_effect(() => $.set_value(input, $.get(stringThing)));
@@ -3609,7 +3607,7 @@ function EditableThing($$anchor, $$props) {
3609
3607
  };
3610
3608
 
3611
3609
  var consequent_2 = ($$anchor) => {
3612
- var input_1 = root_3$3();
3610
+ var input_1 = root_2$4();
3613
3611
 
3614
3612
  $.remove_input_defaults(input_1);
3615
3613
  $.template_effect(() => $.set_value(input_1, $.get(numberThing)));
@@ -3622,7 +3620,7 @@ function EditableThing($$anchor, $$props) {
3622
3620
  };
3623
3621
 
3624
3622
  var consequent_3 = ($$anchor) => {
3625
- var input_2 = root_4$5();
3623
+ var input_2 = root_3$3();
3626
3624
 
3627
3625
  $.remove_input_defaults(input_2);
3628
3626
  $.template_effect(() => $.set_checked(input_2, $.get(booleanThing)));
@@ -3635,7 +3633,7 @@ function EditableThing($$anchor, $$props) {
3635
3633
  };
3636
3634
 
3637
3635
  var consequent_4 = ($$anchor) => {
3638
- var input_3 = root_5$5();
3636
+ var input_3 = root_1$b();
3639
3637
 
3640
3638
  $.remove_input_defaults(input_3);
3641
3639
 
@@ -3656,7 +3654,7 @@ function EditableThing($$anchor, $$props) {
3656
3654
  };
3657
3655
 
3658
3656
  var consequent_5 = ($$anchor) => {
3659
- var input_4 = root_6$2();
3657
+ var input_4 = root_1$b();
3660
3658
 
3661
3659
  $.remove_input_defaults(input_4);
3662
3660
 
@@ -3806,11 +3804,9 @@ function CellView($$anchor, $$props) {
3806
3804
  $.pop();
3807
3805
  }
3808
3806
 
3809
- var root_1$b = $.from_html(`<td><!></td>`);
3810
- var root_2$8 = $.from_html(`<th> </th> <th> </th>`, 1);
3811
- var root_4$4 = $.from_html(`<td><!></td>`);
3812
- var root_5$4 = $.from_html(`<td><!></td>`);
3813
- var root$a = $.from_html(`<tr><!><!><!><!></tr>`);
3807
+ var root$j = $.from_html(`<td><!></td>`);
3808
+ var root_1$a = $.from_html(`<th> </th> <th> </th>`, 1);
3809
+ var root_2$3 = $.from_html(`<tr><!><!><!><!></tr>`);
3814
3810
 
3815
3811
  function RelationshipInHtmlRow($$anchor, $$props) {
3816
3812
  $.push($$props, true);
@@ -3831,7 +3827,7 @@ function RelationshipInHtmlRow($$anchor, $$props) {
3831
3827
  store: $$props.store,
3832
3828
  }));
3833
3829
 
3834
- var tr = root$a();
3830
+ var tr = root_2$3();
3835
3831
  var node = $.child(tr);
3836
3832
 
3837
3833
  $.each(
@@ -3841,7 +3837,7 @@ function RelationshipInHtmlRow($$anchor, $$props) {
3841
3837
  (extraCell, index) => extraKey(index, 0),
3842
3838
  ($$anchor, extraCell) => {
3843
3839
  const ExtraCell = $.derived(() => $.get(extraCell).component);
3844
- var td = root_1$b();
3840
+ var td = root$j();
3845
3841
  var node_1 = $.child(td);
3846
3842
 
3847
3843
  $.component(
@@ -3865,7 +3861,7 @@ function RelationshipInHtmlRow($$anchor, $$props) {
3865
3861
 
3866
3862
  {
3867
3863
  var consequent = ($$anchor) => {
3868
- var fragment = root_2$8();
3864
+ var fragment = root_1$a();
3869
3865
  var th = $.first_child(fragment);
3870
3866
  var text = $.child(th, true);
3871
3867
 
@@ -3924,7 +3920,7 @@ function RelationshipInHtmlRow($$anchor, $$props) {
3924
3920
 
3925
3921
  {
3926
3922
  var consequent_1 = ($$anchor) => {
3927
- var td_1 = root_4$4();
3923
+ var td_1 = root$j();
3928
3924
  var node_5 = $.child(td_1);
3929
3925
 
3930
3926
  {
@@ -3988,7 +3984,7 @@ function RelationshipInHtmlRow($$anchor, $$props) {
3988
3984
  (extraCell, index) => extraKey(index, 1),
3989
3985
  ($$anchor, extraCell) => {
3990
3986
  const ExtraCell = $.derived(() => $.get(extraCell).component);
3991
- var td_2 = root_5$4();
3987
+ var td_2 = root$j();
3992
3988
  var node_7 = $.child(td_2);
3993
3989
 
3994
3990
  $.component(
@@ -4013,12 +4009,10 @@ function RelationshipInHtmlRow($$anchor, $$props) {
4013
4009
  $.pop();
4014
4010
  }
4015
4011
 
4016
- var root_2$7 = $.from_html(`<th> </th>`);
4017
- var root_3$2 = $.from_html(`<th> </th> <th> </th>`, 1);
4018
- var root_4$3 = $.from_html(`<th> </th>`);
4019
- var root_5$3 = $.from_html(`<th> </th>`);
4020
- var root_1$a = $.from_html(`<thead><tr><!><!><!><!></tr></thead>`);
4021
- var root$9 = $.from_html(`<table><!><tbody></tbody></table>`);
4012
+ var root$i = $.from_html(`<th> </th>`);
4013
+ var root_1$9 = $.from_html(`<th> </th> <th> </th>`, 1);
4014
+ var root_2$2 = $.from_html(`<thead><tr><!><!><!><!></tr></thead>`);
4015
+ var root_3$2 = $.from_html(`<table><!><tbody></tbody></table>`);
4022
4016
 
4023
4017
  function RelationshipInHtmlTable($$anchor, $$props) {
4024
4018
  $.push($$props, true);
@@ -4071,12 +4065,12 @@ function RelationshipInHtmlTable($$anchor, $$props) {
4071
4065
  const extraHeadersAfter = $.derived(() =>
4072
4066
  getExtraHeaders(extraCellsAfter(), 1),
4073
4067
  );
4074
- var table = root$9();
4068
+ var table = root_3$2();
4075
4069
  var node = $.child(table);
4076
4070
 
4077
4071
  {
4078
4072
  var consequent_1 = ($$anchor) => {
4079
- var thead = root_1$a();
4073
+ var thead = root_2$2();
4080
4074
  var tr = $.child(thead);
4081
4075
  var node_1 = $.child(tr);
4082
4076
 
@@ -4086,7 +4080,7 @@ function RelationshipInHtmlTable($$anchor, $$props) {
4086
4080
  () => $.get(extraHeadersBefore),
4087
4081
  (extraHeader) => extraHeader.key,
4088
4082
  ($$anchor, extraHeader) => {
4089
- var th = root_2$7();
4083
+ var th = root$i();
4090
4084
  var text = $.child(th, true);
4091
4085
 
4092
4086
  $.reset(th);
@@ -4104,7 +4098,7 @@ function RelationshipInHtmlTable($$anchor, $$props) {
4104
4098
 
4105
4099
  {
4106
4100
  var consequent = ($$anchor) => {
4107
- var fragment = root_3$2();
4101
+ var fragment = root_1$9();
4108
4102
  var th_1 = $.first_child(fragment);
4109
4103
  var text_1 = $.child(th_1);
4110
4104
 
@@ -4138,7 +4132,7 @@ function RelationshipInHtmlTable($$anchor, $$props) {
4138
4132
  () => $.get(cellEntries),
4139
4133
  (entry) => entry[0],
4140
4134
  ($$anchor, entry) => {
4141
- var th_3 = root_4$3();
4135
+ var th_3 = root$i();
4142
4136
  var text_3 = $.child(th_3, true);
4143
4137
 
4144
4138
  $.reset(th_3);
@@ -4155,7 +4149,7 @@ function RelationshipInHtmlTable($$anchor, $$props) {
4155
4149
  () => $.get(extraHeadersAfter),
4156
4150
  (extraHeader) => extraHeader.key,
4157
4151
  ($$anchor, extraHeader) => {
4158
- var th_4 = root_5$3();
4152
+ var th_4 = root$i();
4159
4153
  var text_4 = $.child(th_4, true);
4160
4154
 
4161
4155
  $.reset(th_4);
@@ -4262,18 +4256,14 @@ function ResultCellView($$anchor, $$props) {
4262
4256
  $.pop();
4263
4257
  }
4264
4258
 
4265
- var root_1$9 = $.from_html(`<caption><!></caption>`);
4266
- var root_3$1 = $.from_html(`<th> </th>`);
4267
- var root_4$2 = $.from_html(`<th><!> Id</th>`);
4268
- var root_6$1 = $.from_html(`<th><!> </th>`);
4269
- var root_8$1 = $.from_html(`<th> </th>`);
4270
- var root_2$6 = $.from_html(`<thead><tr><!><!><!><!></tr></thead>`);
4271
- var root_10 = $.from_html(`<td><!></td>`);
4272
- var root_11 = $.from_html(`<th> </th>`);
4273
- var root_12 = $.from_html(`<td><!></td>`);
4274
- var root_13 = $.from_html(`<td><!></td>`);
4275
- var root_9 = $.from_html(`<tr><!><!><!><!></tr>`);
4276
- var root$8 = $.from_html(`<table><!><!><tbody></tbody></table>`);
4259
+ var root$h = $.from_html(`<caption><!></caption>`);
4260
+ var root_1$8 = $.from_html(`<th> </th>`);
4261
+ var root_2$1 = $.from_html(`<th><!> Id</th>`);
4262
+ var root_3$1 = $.from_html(`<th><!> </th>`);
4263
+ var root_4$1 = $.from_html(`<thead><tr><!><!><!><!></tr></thead>`);
4264
+ var root_5$1 = $.from_html(`<td><!></td>`);
4265
+ var root_6 = $.from_html(`<tr><!><!><!><!></tr>`);
4266
+ var root_7 = $.from_html(`<table><!><!><tbody></tbody></table>`);
4277
4267
 
4278
4268
  function HtmlTable($$anchor, $$props) {
4279
4269
  $.push($$props, true);
@@ -4290,12 +4280,12 @@ function HtmlTable($$anchor, $$props) {
4290
4280
  );
4291
4281
  const PaginatorComponent = $.derived(() => $$props.paginator?.component);
4292
4282
  const paginatorProps = $.derived(() => $$props.paginator?.props);
4293
- var table = root$8();
4283
+ var table = root_7();
4294
4284
  var node = $.child(table);
4295
4285
 
4296
4286
  {
4297
4287
  var consequent = ($$anchor) => {
4298
- var caption = root_1$9();
4288
+ var caption = root$h();
4299
4289
  var node_1 = $.child(caption);
4300
4290
 
4301
4291
  $.component(
@@ -4323,7 +4313,7 @@ function HtmlTable($$anchor, $$props) {
4323
4313
 
4324
4314
  {
4325
4315
  var consequent_4 = ($$anchor) => {
4326
- var thead = root_2$6();
4316
+ var thead = root_4$1();
4327
4317
  var tr = $.child(thead);
4328
4318
  var node_3 = $.child(tr);
4329
4319
 
@@ -4333,7 +4323,7 @@ function HtmlTable($$anchor, $$props) {
4333
4323
  () => $.get(extraHeadersBefore),
4334
4324
  (extraHeader) => extraHeader.key,
4335
4325
  ($$anchor, extraHeader) => {
4336
- var th = root_3$1();
4326
+ var th = root_1$8();
4337
4327
  var text = $.child(th, true);
4338
4328
 
4339
4329
  $.reset(th);
@@ -4351,7 +4341,7 @@ function HtmlTable($$anchor, $$props) {
4351
4341
 
4352
4342
  {
4353
4343
  var consequent_2 = ($$anchor) => {
4354
- var th_1 = root_4$2();
4344
+ var th_1 = root_2$1();
4355
4345
  var node_5 = $.child(th_1);
4356
4346
 
4357
4347
  {
@@ -4413,7 +4403,7 @@ function HtmlTable($$anchor, $$props) {
4413
4403
  ($$anchor, entry) => {
4414
4404
  const cellId = $.derived(() => $.get(entry)[0]);
4415
4405
  const cell = $.derived(() => $.get(entry)[1]);
4416
- var th_2 = root_6$1();
4406
+ var th_2 = root_3$1();
4417
4407
  var node_7 = $.child(th_2);
4418
4408
 
4419
4409
  {
@@ -4473,7 +4463,7 @@ function HtmlTable($$anchor, $$props) {
4473
4463
  () => $.get(extraHeadersAfter),
4474
4464
  (extraHeader) => extraHeader.key,
4475
4465
  ($$anchor, extraHeader) => {
4476
- var th_3 = root_8$1();
4466
+ var th_3 = root_1$8();
4477
4467
  var text_4 = $.child(th_3, true);
4478
4468
 
4479
4469
  $.reset(th_3);
@@ -4509,7 +4499,7 @@ function HtmlTable($$anchor, $$props) {
4509
4499
  ...$$props.cellComponentProps,
4510
4500
  rowId,
4511
4501
  }));
4512
- var tr_1 = root_9();
4502
+ var tr_1 = root_6();
4513
4503
  var node_9 = $.child(tr_1);
4514
4504
 
4515
4505
  $.each(
@@ -4519,7 +4509,7 @@ function HtmlTable($$anchor, $$props) {
4519
4509
  (extraCell, index) => extraKey(index, 0),
4520
4510
  ($$anchor, extraCell) => {
4521
4511
  const ExtraCell = $.derived(() => $.get(extraCell).component);
4522
- var td = root_10();
4512
+ var td = root_5$1();
4523
4513
  var node_10 = $.child(td);
4524
4514
 
4525
4515
  $.component(
@@ -4543,7 +4533,7 @@ function HtmlTable($$anchor, $$props) {
4543
4533
 
4544
4534
  {
4545
4535
  var consequent_5 = ($$anchor) => {
4546
- var th_4 = root_11();
4536
+ var th_4 = root_1$8();
4547
4537
  var text_5 = $.child(th_4, true);
4548
4538
 
4549
4539
  $.reset(th_4);
@@ -4574,7 +4564,7 @@ function HtmlTable($$anchor, $$props) {
4574
4564
  const cellId = $.derived(() => $.get(entry)[0]);
4575
4565
  const cell = $.derived(() => $.get(entry)[1]);
4576
4566
  const CellComponent = $.derived(() => $.get(cell).component);
4577
- var td_1 = root_12();
4567
+ var td_1 = root_5$1();
4578
4568
  var node_13 = $.child(td_1);
4579
4569
 
4580
4570
  {
@@ -4616,7 +4606,7 @@ function HtmlTable($$anchor, $$props) {
4616
4606
  (extraCell, index) => extraKey(index, 1),
4617
4607
  ($$anchor, extraCell) => {
4618
4608
  const ExtraCell = $.derived(() => $.get(extraCell).component);
4619
- var td_2 = root_13();
4609
+ var td_2 = root_5$1();
4620
4610
  var node_15 = $.child(td_2);
4621
4611
 
4622
4612
  $.component(
@@ -4650,15 +4640,16 @@ function HtmlTable($$anchor, $$props) {
4650
4640
 
4651
4641
  $.delegate(['click']);
4652
4642
 
4653
- var root_1$8 = $.from_html(
4643
+ var rest_excludes$3 = new Set(['$$slots', '$$events', '$$legacy']);
4644
+ var root$g = $.from_html(
4654
4645
  `<button class="previous"></button><button class="next"></button> `,
4655
4646
  1,
4656
4647
  );
4657
- var root$7 = $.from_html(`<!> `, 1);
4648
+ var root_1$7 = $.from_html(`<!> `, 1);
4658
4649
 
4659
4650
  function SortedTablePaginator($$anchor, $$props) {
4660
4651
  $.push($$props, true);
4661
- $.rest_props($$props, ['$$slots', '$$events', '$$legacy']);
4652
+ $.rest_props($$props, rest_excludes$3);
4662
4653
  const offset = $.derived(() =>
4663
4654
  $$props.offset == null ||
4664
4655
  $$props.offset > $$props.total ||
@@ -4684,12 +4675,12 @@ function SortedTablePaginator($$anchor, $$props) {
4684
4675
  }
4685
4676
  });
4686
4677
 
4687
- var fragment = root$7();
4678
+ var fragment = root_1$7();
4688
4679
  var node = $.first_child(fragment);
4689
4680
 
4690
4681
  {
4691
4682
  var consequent = ($$anchor) => {
4692
- var fragment_1 = root_1$8();
4683
+ var fragment_1 = root$g();
4693
4684
  var button = $.first_child(fragment_1);
4694
4685
 
4695
4686
  button.textContent = '←';
@@ -4729,7 +4720,7 @@ function SortedTablePaginator($$anchor, $$props) {
4729
4720
 
4730
4721
  $.delegate(['click']);
4731
4722
 
4732
- /* sortingAndPagination.svelte.ts generated by Svelte v5.55.5 */
4723
+ /* sortingAndPagination.svelte.ts generated by Svelte v5.56.0 */
4733
4724
 
4734
4725
  const createSortingAndPagination = (
4735
4726
  getCellId,
@@ -4799,27 +4790,29 @@ const createSortingAndPagination = (
4799
4790
  };
4800
4791
  };
4801
4792
 
4793
+ var rest_excludes$2 = new Set([
4794
+ '$$slots',
4795
+ '$$events',
4796
+ '$$legacy',
4797
+ 'queryId',
4798
+ 'cellId',
4799
+ 'descending',
4800
+ 'offset',
4801
+ 'limit',
4802
+ 'queries',
4803
+ 'sortOnClick',
4804
+ 'paginator',
4805
+ 'customCells',
4806
+ 'extraCellsBefore',
4807
+ 'extraCellsAfter',
4808
+ 'onChange',
4809
+ ]);
4810
+
4802
4811
  function ResultSortedTableInHtmlTable($$anchor, $$props) {
4803
4812
  $.push($$props, true);
4804
4813
 
4805
4814
  let paginator = $.prop($$props, 'paginator', 3, false),
4806
- props = $.rest_props($$props, [
4807
- '$$slots',
4808
- '$$events',
4809
- '$$legacy',
4810
- 'queryId',
4811
- 'cellId',
4812
- 'descending',
4813
- 'offset',
4814
- 'limit',
4815
- 'queries',
4816
- 'sortOnClick',
4817
- 'paginator',
4818
- 'customCells',
4819
- 'extraCellsBefore',
4820
- 'extraCellsAfter',
4821
- 'onChange',
4822
- ]);
4815
+ props = $.rest_props($$props, rest_excludes$2);
4823
4816
 
4824
4817
  const defaultCellIds = getResultTableCellIds(
4825
4818
  () => $$props.queryId,
@@ -4895,22 +4888,23 @@ function ResultSortedTableInHtmlTable($$anchor, $$props) {
4895
4888
  $.pop();
4896
4889
  }
4897
4890
 
4891
+ var rest_excludes$1 = new Set([
4892
+ '$$slots',
4893
+ '$$events',
4894
+ '$$legacy',
4895
+ 'indexId',
4896
+ 'sliceId',
4897
+ 'indexes',
4898
+ 'editable',
4899
+ 'customCells',
4900
+ 'extraCellsBefore',
4901
+ 'extraCellsAfter',
4902
+ ]);
4903
+
4898
4904
  function SliceInHtmlTable($$anchor, $$props) {
4899
4905
  $.push($$props, true);
4900
4906
 
4901
- let props = $.rest_props($$props, [
4902
- '$$slots',
4903
- '$$events',
4904
- '$$legacy',
4905
- 'indexId',
4906
- 'sliceId',
4907
- 'indexes',
4908
- 'editable',
4909
- 'customCells',
4910
- 'extraCellsBefore',
4911
- 'extraCellsAfter',
4912
- ]);
4913
-
4907
+ let props = $.rest_props($$props, rest_excludes$1);
4914
4908
  const index = getIndexStoreTableId(
4915
4909
  () => $$props.indexes,
4916
4910
  () => $$props.indexId,
@@ -4967,28 +4961,30 @@ function SliceInHtmlTable($$anchor, $$props) {
4967
4961
  $.pop();
4968
4962
  }
4969
4963
 
4964
+ var rest_excludes = new Set([
4965
+ '$$slots',
4966
+ '$$events',
4967
+ '$$legacy',
4968
+ 'tableId',
4969
+ 'cellId',
4970
+ 'descending',
4971
+ 'offset',
4972
+ 'limit',
4973
+ 'store',
4974
+ 'editable',
4975
+ 'sortOnClick',
4976
+ 'paginator',
4977
+ 'onChange',
4978
+ 'customCells',
4979
+ 'extraCellsBefore',
4980
+ 'extraCellsAfter',
4981
+ ]);
4982
+
4970
4983
  function SortedTableInHtmlTable($$anchor, $$props) {
4971
4984
  $.push($$props, true);
4972
4985
 
4973
4986
  let paginator = $.prop($$props, 'paginator', 3, false),
4974
- props = $.rest_props($$props, [
4975
- '$$slots',
4976
- '$$events',
4977
- '$$legacy',
4978
- 'tableId',
4979
- 'cellId',
4980
- 'descending',
4981
- 'offset',
4982
- 'limit',
4983
- 'store',
4984
- 'editable',
4985
- 'sortOnClick',
4986
- 'paginator',
4987
- 'onChange',
4988
- 'customCells',
4989
- 'extraCellsBefore',
4990
- 'extraCellsAfter',
4991
- ]);
4987
+ props = $.rest_props($$props, rest_excludes);
4992
4988
 
4993
4989
  const defaultCellIds = getTableCellIds(
4994
4990
  () => $$props.tableId,
@@ -5095,15 +5091,12 @@ function ValueView($$anchor, $$props) {
5095
5091
  $.pop();
5096
5092
  }
5097
5093
 
5098
- var root_2$5 = $.from_html(`<th> </th>`);
5099
- var root_3 = $.from_html(`<th>Id</th>`);
5100
- var root_4$1 = $.from_html(`<th> </th>`);
5101
- var root_1$7 = $.from_html(`<thead><tr><!><!><th> </th><!></tr></thead>`);
5102
- var root_6 = $.from_html(`<td><!></td>`);
5103
- var root_7 = $.from_html(`<th> </th>`);
5104
- var root_8 = $.from_html(`<td><!></td>`);
5105
- var root_5$2 = $.from_html(`<tr><!><!><td><!></td><!></tr>`);
5106
- var root$6 = $.from_html(`<table><!><tbody></tbody></table>`);
5094
+ var root$f = $.from_html(`<th> </th>`);
5095
+ var root_1$6 = $.from_html(`<th>Id</th>`);
5096
+ var root_2 = $.from_html(`<thead><tr><!><!><th> </th><!></tr></thead>`);
5097
+ var root_3 = $.from_html(`<td><!></td>`);
5098
+ var root_4 = $.from_html(`<tr><!><!><td><!></td><!></tr>`);
5099
+ var root_5 = $.from_html(`<table><!><tbody></tbody></table>`);
5107
5100
 
5108
5101
  function ValuesInHtmlTable($$anchor, $$props) {
5109
5102
  $.push($$props, true);
@@ -5123,12 +5116,12 @@ function ValuesInHtmlTable($$anchor, $$props) {
5123
5116
  const extraHeadersAfter = $.derived(() =>
5124
5117
  getExtraHeaders(extraCellsAfter(), 1),
5125
5118
  );
5126
- var table = root$6();
5119
+ var table = root_5();
5127
5120
  var node = $.child(table);
5128
5121
 
5129
5122
  {
5130
5123
  var consequent_1 = ($$anchor) => {
5131
- var thead = root_1$7();
5124
+ var thead = root_2();
5132
5125
  var tr = $.child(thead);
5133
5126
  var node_1 = $.child(tr);
5134
5127
 
@@ -5138,7 +5131,7 @@ function ValuesInHtmlTable($$anchor, $$props) {
5138
5131
  () => $.get(extraHeadersBefore),
5139
5132
  (extraHeader) => extraHeader.key,
5140
5133
  ($$anchor, extraHeader) => {
5141
- var th = root_2$5();
5134
+ var th = root$f();
5142
5135
  var text = $.child(th, true);
5143
5136
 
5144
5137
  $.reset(th);
@@ -5156,7 +5149,7 @@ function ValuesInHtmlTable($$anchor, $$props) {
5156
5149
 
5157
5150
  {
5158
5151
  var consequent = ($$anchor) => {
5159
- var th_1 = root_3();
5152
+ var th_1 = root_1$6();
5160
5153
 
5161
5154
  $.append($$anchor, th_1);
5162
5155
  };
@@ -5179,7 +5172,7 @@ function ValuesInHtmlTable($$anchor, $$props) {
5179
5172
  () => $.get(extraHeadersAfter),
5180
5173
  (extraHeader) => extraHeader.key,
5181
5174
  ($$anchor, extraHeader) => {
5182
- var th_3 = root_4$1();
5175
+ var th_3 = root$f();
5183
5176
  var text_2 = $.child(th_3, true);
5184
5177
 
5185
5178
  $.reset(th_3);
@@ -5213,7 +5206,7 @@ function ValuesInHtmlTable($$anchor, $$props) {
5213
5206
  (valueId) => valueId,
5214
5207
  ($$anchor, valueId) => {
5215
5208
  const valueProps = $.derived(() => ({valueId, store: $$props.store}));
5216
- var tr_1 = root_5$2();
5209
+ var tr_1 = root_4();
5217
5210
  var node_4 = $.child(tr_1);
5218
5211
 
5219
5212
  $.each(
@@ -5223,7 +5216,7 @@ function ValuesInHtmlTable($$anchor, $$props) {
5223
5216
  (extraCell, index) => extraKey(index, 0),
5224
5217
  ($$anchor, extraCell) => {
5225
5218
  const ExtraCell = $.derived(() => $.get(extraCell).component);
5226
- var td = root_6();
5219
+ var td = root_3();
5227
5220
  var node_5 = $.child(td);
5228
5221
 
5229
5222
  $.component(
@@ -5247,7 +5240,7 @@ function ValuesInHtmlTable($$anchor, $$props) {
5247
5240
 
5248
5241
  {
5249
5242
  var consequent_2 = ($$anchor) => {
5250
- var th_4 = root_7();
5243
+ var th_4 = root$f();
5251
5244
  var text_3 = $.child(th_4, true);
5252
5245
 
5253
5246
  $.reset(th_4);
@@ -5301,7 +5294,7 @@ function ValuesInHtmlTable($$anchor, $$props) {
5301
5294
  (extraCell, index) => extraKey(index, 1),
5302
5295
  ($$anchor, extraCell) => {
5303
5296
  const ExtraCell = $.derived(() => $.get(extraCell).component);
5304
- var td_2 = root_8();
5297
+ var td_2 = root_3();
5305
5298
  var node_9 = $.child(td_2);
5306
5299
 
5307
5300
  $.component(
@@ -5600,8 +5593,8 @@ function MetricView($$anchor, $$props) {
5600
5593
  $.pop();
5601
5594
  }
5602
5595
 
5603
- var root_5$1 = $.from_html(`<tr><th> </th><td> </td><td><!></td></tr>`);
5604
- var root_4 = $.from_html(
5596
+ var root$e = $.from_html(`<tr><th> </th><td> </td><td><!></td></tr>`);
5597
+ var root_1$5 = $.from_html(
5605
5598
  `<table><thead><tr><th>Metric Id</th><th>Table Id</th><th>Metric</th></tr></thead><tbody></tbody></table>`,
5606
5599
  );
5607
5600
 
@@ -5646,7 +5639,7 @@ function MetricsView($$anchor, $$props) {
5646
5639
  var d = $.derived(() => arrayIsEmpty(metricIds.current));
5647
5640
 
5648
5641
  var alternate = ($$anchor) => {
5649
- var table = root_4();
5642
+ var table = root_1$5();
5650
5643
  var tbody = $.sibling($.child(table));
5651
5644
 
5652
5645
  $.each(
@@ -5655,7 +5648,7 @@ function MetricsView($$anchor, $$props) {
5655
5648
  () => metricIds.current,
5656
5649
  (metricId) => metricId,
5657
5650
  ($$anchor, metricId) => {
5658
- var tr = root_5$1();
5651
+ var tr = root$e();
5659
5652
  var th = $.child(tr);
5660
5653
  var text_1 = $.child(th, true);
5661
5654
 
@@ -6047,12 +6040,12 @@ function RelationshipsView($$anchor, $$props) {
6047
6040
  $.pop();
6048
6041
  }
6049
6042
 
6050
- var root$5 = $.from_html(
6043
+ var root$d = $.from_html(
6051
6044
  `<div class="actions"><div><!></div> <div><!></div></div>`,
6052
6045
  );
6053
6046
 
6054
6047
  function Actions($$anchor, $$props) {
6055
- var div = root$5();
6048
+ var div = root$d();
6056
6049
  var div_1 = $.child(div);
6057
6050
  var node = $.child(div_1);
6058
6051
 
@@ -6068,7 +6061,7 @@ function Actions($$anchor, $$props) {
6068
6061
  $.append($$anchor, div);
6069
6062
  }
6070
6063
 
6071
- var root$4 = $.from_html(` <img title="Confirm" class="ok" alt=""/>`, 1);
6064
+ var root$c = $.from_html(` <img title="Confirm" class="ok" alt=""/>`, 1);
6072
6065
 
6073
6066
  function Delete($$anchor, $$props) {
6074
6067
  $.push($$props, true);
@@ -6097,7 +6090,7 @@ function Delete($$anchor, $$props) {
6097
6090
 
6098
6091
  $.next();
6099
6092
 
6100
- var fragment = root$4();
6093
+ var fragment = root$c();
6101
6094
  var text = $.first_child(fragment);
6102
6095
  var img = $.sibling(text);
6103
6096
 
@@ -6109,7 +6102,7 @@ function Delete($$anchor, $$props) {
6109
6102
 
6110
6103
  $.delegate(['click']);
6111
6104
 
6112
- var root$3 = $.from_html(` <input type="text"/> <img alt=""/>`, 1);
6105
+ var root$b = $.from_html(` <input type="text"/> <img alt=""/>`, 1);
6113
6106
 
6114
6107
  function NewId($$anchor, $$props) {
6115
6108
  $.push($$props, true);
@@ -6158,7 +6151,7 @@ function NewId($$anchor, $$props) {
6158
6151
 
6159
6152
  $.next();
6160
6153
 
6161
- var fragment = root$3();
6154
+ var fragment = root$b();
6162
6155
  var text = $.first_child(fragment);
6163
6156
  var input_1 = $.sibling(text);
6164
6157
 
@@ -6193,11 +6186,8 @@ $.delegate(['input', 'keydown', 'click']);
6193
6186
 
6194
6187
  const isNewIdAction = (action) => 'set' in action;
6195
6188
 
6196
- var root_1$6 = $.from_html(
6197
- `<!> <img title="Cancel" class="cancel" alt=""/>`,
6198
- 1,
6199
- );
6200
- var root_5 = $.from_html(`<img alt=""/>`);
6189
+ var root$a = $.from_html(`<!> <img title="Cancel" class="cancel" alt=""/>`, 1);
6190
+ var root_1$4 = $.from_html(`<img alt=""/>`);
6201
6191
 
6202
6192
  function ConfirmableActions($$anchor, $$props) {
6203
6193
  $.push($$props, true);
@@ -6229,7 +6219,7 @@ function ConfirmableActions($$anchor, $$props) {
6229
6219
  {
6230
6220
  var consequent_1 = ($$anchor) => {
6231
6221
  const action = $.derived(() => $$props.actions[$.get(confirming)]);
6232
- var fragment_1 = root_1$6();
6222
+ var fragment_1 = root$a();
6233
6223
  var node_1 = $.first_child(fragment_1);
6234
6224
 
6235
6225
  {
@@ -6293,7 +6283,7 @@ function ConfirmableActions($$anchor, $$props) {
6293
6283
  () => $$props.actions,
6294
6284
  $.index,
6295
6285
  ($$anchor, action, index) => {
6296
- var img_1 = root_5();
6286
+ var img_1 = root_1$4();
6297
6287
 
6298
6288
  $.template_effect(() => {
6299
6289
  $.set_attribute(img_1, 'title', $.get(action).title);
@@ -6566,7 +6556,7 @@ function CellActions($$anchor, $$props) {
6566
6556
  $.pop();
6567
6557
  }
6568
6558
 
6569
- var root$2 = $.from_html(`<!> <!>`, 1);
6559
+ var root$9 = $.from_html(`<!> <!>`, 1);
6570
6560
 
6571
6561
  function EditableCellViewWithActions($$anchor, $$props) {
6572
6562
  $.push($$props, true);
@@ -6577,7 +6567,7 @@ function EditableCellViewWithActions($$anchor, $$props) {
6577
6567
  () => $$props.cellId,
6578
6568
  () => $$props.store,
6579
6569
  );
6580
- var fragment = root$2();
6570
+ var fragment = root$9();
6581
6571
  var node = $.first_child(fragment);
6582
6572
 
6583
6573
  EditableCellView(node, {
@@ -6630,7 +6620,7 @@ function EditableCellViewWithActions($$anchor, $$props) {
6630
6620
  $.pop();
6631
6621
  }
6632
6622
 
6633
- var root_1$5 = $.from_html(`<!> <!>`, 1);
6623
+ var root$8 = $.from_html(`<!> <!>`, 1);
6634
6624
 
6635
6625
  function TableView($$anchor, $$props) {
6636
6626
  $.push($$props, true);
@@ -6693,7 +6683,7 @@ function TableView($$anchor, $$props) {
6693
6683
  },
6694
6684
 
6695
6685
  children: ($$anchor, $$slotProps) => {
6696
- var fragment_1 = root_1$5();
6686
+ var fragment_1 = root$8();
6697
6687
  var node = $.first_child(fragment_1);
6698
6688
 
6699
6689
  {
@@ -6783,8 +6773,8 @@ function TableView($$anchor, $$props) {
6783
6773
  $.pop();
6784
6774
  }
6785
6775
 
6786
- var root_2$4 = $.from_html(`<p>No tables.</p>`);
6787
- var root_1$4 = $.from_html(`<!> <!>`, 1);
6776
+ var root$7 = $.from_html(`<p>No tables.</p>`);
6777
+ var root_1$3 = $.from_html(`<!> <!>`, 1);
6788
6778
 
6789
6779
  function TablesView($$anchor, $$props) {
6790
6780
  $.push($$props, true);
@@ -6821,12 +6811,12 @@ function TablesView($$anchor, $$props) {
6821
6811
  },
6822
6812
 
6823
6813
  children: ($$anchor, $$slotProps) => {
6824
- var fragment_1 = root_1$4();
6814
+ var fragment_1 = root_1$3();
6825
6815
  var node = $.first_child(fragment_1);
6826
6816
 
6827
6817
  {
6828
6818
  var consequent = ($$anchor) => {
6829
- var p = root_2$4();
6819
+ var p = root$7();
6830
6820
 
6831
6821
  $.append($$anchor, p);
6832
6822
  };
@@ -7005,8 +6995,8 @@ function ValuesActions($$anchor, $$props) {
7005
6995
  $.pop();
7006
6996
  }
7007
6997
 
7008
- var root_2$3 = $.from_html(`<p>No values.</p>`);
7009
- var root_1$3 = $.from_html(`<!> <!>`, 1);
6998
+ var root$6 = $.from_html(`<p>No values.</p>`);
6999
+ var root_1$2 = $.from_html(`<!> <!>`, 1);
7010
7000
 
7011
7001
  function ValuesView($$anchor, $$props) {
7012
7002
  $.push($$props, true);
@@ -7041,12 +7031,12 @@ function ValuesView($$anchor, $$props) {
7041
7031
  },
7042
7032
 
7043
7033
  children: ($$anchor, $$slotProps) => {
7044
- var fragment_1 = root_1$3();
7034
+ var fragment_1 = root_1$2();
7045
7035
  var node = $.first_child(fragment_1);
7046
7036
 
7047
7037
  {
7048
7038
  var consequent = ($$anchor) => {
7049
- var p = root_2$3();
7039
+ var p = root$6();
7050
7040
 
7051
7041
  $.append($$anchor, p);
7052
7042
  };
@@ -7103,7 +7093,7 @@ function ValuesView($$anchor, $$props) {
7103
7093
  $.pop();
7104
7094
  }
7105
7095
 
7106
- var root_2$2 = $.from_html(`<!> <!>`, 1);
7096
+ var root$5 = $.from_html(`<!> <!>`, 1);
7107
7097
 
7108
7098
  function StoreView($$anchor, $$props) {
7109
7099
  $.push($$props, true);
@@ -7137,7 +7127,7 @@ function StoreView($$anchor, $$props) {
7137
7127
  },
7138
7128
 
7139
7129
  children: ($$anchor, $$slotProps) => {
7140
- var fragment_2 = root_2$2();
7130
+ var fragment_2 = root$5();
7141
7131
  var node_1 = $.first_child(fragment_2);
7142
7132
 
7143
7133
  ValuesView(node_1, {
@@ -7188,8 +7178,8 @@ function StoreView($$anchor, $$props) {
7188
7178
  $.pop();
7189
7179
  }
7190
7180
 
7191
- var root_1$2 = $.from_html(`<span class="warn"> </span>`);
7192
- var root_2$1 = $.from_html(
7181
+ var root$4 = $.from_html(`<span class="warn"> </span>`);
7182
+ var root_1$1 = $.from_html(
7193
7183
  `<article><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></article>`,
7194
7184
  );
7195
7185
 
@@ -7264,7 +7254,7 @@ function Body($$anchor, $$props) {
7264
7254
 
7265
7255
  {
7266
7256
  var consequent = ($$anchor) => {
7267
- var span = root_1$2();
7257
+ var span = root$4();
7268
7258
  var text = $.child(span, true);
7269
7259
 
7270
7260
  $.reset(span);
@@ -7273,7 +7263,7 @@ function Body($$anchor, $$props) {
7273
7263
  };
7274
7264
 
7275
7265
  var alternate = ($$anchor) => {
7276
- var article_1 = root_2$1();
7266
+ var article_1 = root_1$1();
7277
7267
  var node_1 = $.child(article_1);
7278
7268
 
7279
7269
  StoreView(node_1, {
@@ -7434,7 +7424,7 @@ function Body($$anchor, $$props) {
7434
7424
  $.pop();
7435
7425
  }
7436
7426
 
7437
- var root_1$1 = $.from_html(`<span class="warn"> </span>`);
7427
+ var root$3 = $.from_html(`<span class="warn"> </span>`);
7438
7428
 
7439
7429
  function ErrorBoundary($$anchor, $$props) {
7440
7430
  const handleError = (
@@ -7448,7 +7438,7 @@ function ErrorBoundary($$anchor, $$props) {
7448
7438
 
7449
7439
  {
7450
7440
  const failed = ($$anchor, _error = $.noop, _reset = $.noop) => {
7451
- var span = root_1$1();
7441
+ var span = root$3();
7452
7442
  var text = $.child(span, true);
7453
7443
 
7454
7444
  $.reset(span);
@@ -7468,8 +7458,8 @@ function ErrorBoundary($$anchor, $$props) {
7468
7458
  $.append($$anchor, fragment);
7469
7459
  }
7470
7460
 
7471
- var root_2 = $.from_html(`<img tabindex="0" alt=""/>`);
7472
- var root$1 = $.from_html(
7461
+ var root$2 = $.from_html(`<img tabindex="0" alt=""/>`);
7462
+ var root_1 = $.from_html(
7473
7463
  `<header><img class="flat" tabindex="0" alt=""/> <span> </span> <!> <img class="flat" title="Close" tabindex="0" alt=""/></header>`,
7474
7464
  );
7475
7465
 
@@ -7492,7 +7482,7 @@ function Header($$anchor, $$props) {
7492
7482
  }
7493
7483
  };
7494
7484
 
7495
- var header = root$1();
7485
+ var header = root_1();
7496
7486
  var img = $.child(header);
7497
7487
  var span = $.sibling(img, 2);
7498
7488
  var text = $.child(span, true);
@@ -7512,7 +7502,7 @@ function Header($$anchor, $$props) {
7512
7502
 
7513
7503
  {
7514
7504
  var consequent = ($$anchor) => {
7515
- var img_1 = root_2();
7505
+ var img_1 = root$2();
7516
7506
 
7517
7507
  $.set_attribute(img_1, 'data-id', p);
7518
7508
  $.template_effect(() =>
@@ -7553,7 +7543,7 @@ function Header($$anchor, $$props) {
7553
7543
 
7554
7544
  $.delegate(['click', 'keydown']);
7555
7545
 
7556
- var root_1 = $.from_html(`<main><!> <!></main>`);
7546
+ var root$1 = $.from_html(`<main><!> <!></main>`);
7557
7547
 
7558
7548
  function Panel($$anchor, $$props) {
7559
7549
  $.push($$props, true);
@@ -7571,7 +7561,7 @@ function Panel($$anchor, $$props) {
7571
7561
 
7572
7562
  {
7573
7563
  var consequent = ($$anchor) => {
7574
- var main = root_1();
7564
+ var main = root$1();
7575
7565
  var node_1 = $.child(main);
7576
7566
 
7577
7567
  Header(node_1, {