@lostgradient/cinder 0.24.5 → 0.24.6
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/CHANGELOG.md +8 -0
- package/components.json +1 -1
- package/dist/components/json-schema-editor/index.js +100 -50
- package/dist/components/json-schema-editor/json-schema-editor.css +4 -0
- package/dist/index.js +193 -143
- package/dist/server/components/json-schema-editor/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/{index.server-tb414d8x.js → index.server-4entcat5.js} +59 -20
- package/package.json +1 -1
- package/src/components/json-schema-editor/json-schema-editor.css +4 -0
- package/src/components/json-schema-editor/property-list.svelte +64 -18
package/dist/index.js
CHANGED
|
@@ -36556,7 +36556,7 @@ function Property_editor_constraints($$anchor, $$props) {
|
|
|
36556
36556
|
// src/components/json-schema-editor/property-list.svelte
|
|
36557
36557
|
import"svelte/internal/disclose-version";
|
|
36558
36558
|
import * as $197 from "svelte/internal/client";
|
|
36559
|
-
import { onDestroy as onDestroy9 } from "svelte";
|
|
36559
|
+
import { onDestroy as onDestroy9, tick as tick14 } from "svelte";
|
|
36560
36560
|
import Badge2 from "@lostgradient/cinder/badge";
|
|
36561
36561
|
import Collapsible3 from "@lostgradient/cinder/collapsible";
|
|
36562
36562
|
|
|
@@ -36570,7 +36570,7 @@ var root102 = $197.from_html(`<p class="cinder-jse-property-list__empty">No prop
|
|
|
36570
36570
|
var root_1101 = $197.from_html(`<div class="cinder-jse-property-row__panel"><!> <!></div>`);
|
|
36571
36571
|
var root_264 = $197.from_html(`<div class="cinder-jse-property-row"><div class="cinder-jse-property-row__summary"><button type="button" class="cinder-jse-property-row__trigger"><!> <span class="cinder-jse-property-row__name"> </span> <span class="cinder-jse-property-row__type"> </span> <!></button> <span class="cinder-jse-property-row__spacer"></span> <!> <!> <!> <!></div> <!></div>`);
|
|
36572
36572
|
var root_347 = $197.from_html(`<div class="cinder-jse-required-only__panel"><!> <!> <!></div>`);
|
|
36573
|
-
var root_428 = $197.from_html(`<div class="cinder-jse-property-list"><!> <!> <!>
|
|
36573
|
+
var root_428 = $197.from_html(`<p class="cinder-sr-only" aria-live="polite"> </p> <div class="cinder-jse-property-list"><!> <!> <!> <span class="cinder-jse-property-list__add-property-reference"><!></span> <!></div>`, 1);
|
|
36574
36574
|
function Property_list($$anchor, $$props) {
|
|
36575
36575
|
$197.push($$props, true);
|
|
36576
36576
|
let depth = $197.prop($$props, "depth", 3, 0), readonly = $197.prop($$props, "readonly", 3, false);
|
|
@@ -36616,7 +36616,7 @@ function Property_list($$anchor, $$props) {
|
|
|
36616
36616
|
return;
|
|
36617
36617
|
}
|
|
36618
36618
|
$197.set(renameError, null);
|
|
36619
|
-
const next18 =
|
|
36619
|
+
const next18 = Object.create(null);
|
|
36620
36620
|
for (const k of $197.get(propertyNames)) {
|
|
36621
36621
|
next18[k === oldKey ? draft : k] = $$props.properties[k];
|
|
36622
36622
|
}
|
|
@@ -36633,9 +36633,33 @@ function Property_list($$anchor, $$props) {
|
|
|
36633
36633
|
}
|
|
36634
36634
|
$$props.onValueChange(next18, nextRequired);
|
|
36635
36635
|
}
|
|
36636
|
-
|
|
36636
|
+
let actionAnnouncement = $197.state("");
|
|
36637
|
+
const propertyTriggerElements = new Map;
|
|
36638
|
+
let addPropertyElement = $197.state(undefined);
|
|
36639
|
+
function propertyTrigger(element13, key) {
|
|
36640
|
+
propertyTriggerElements.set(key, element13);
|
|
36641
|
+
return {
|
|
36642
|
+
update(nextKey) {
|
|
36643
|
+
if (nextKey === key)
|
|
36644
|
+
return;
|
|
36645
|
+
propertyTriggerElements.delete(key);
|
|
36646
|
+
key = nextKey;
|
|
36647
|
+
propertyTriggerElements.set(key, element13);
|
|
36648
|
+
},
|
|
36649
|
+
destroy() {
|
|
36650
|
+
propertyTriggerElements.delete(key);
|
|
36651
|
+
}
|
|
36652
|
+
};
|
|
36653
|
+
}
|
|
36654
|
+
async function announceAction(message) {
|
|
36655
|
+
$197.set(actionAnnouncement, "");
|
|
36656
|
+
await tick14();
|
|
36657
|
+
$197.set(actionAnnouncement, message, true);
|
|
36658
|
+
}
|
|
36659
|
+
async function deleteProperty(key, index4) {
|
|
36637
36660
|
if (readonly())
|
|
36638
36661
|
return;
|
|
36662
|
+
const focusKey = $197.get(propertyNames)[index4 + 1] ?? $197.get(propertyNames)[index4 - 1];
|
|
36639
36663
|
const next18 = { ...$$props.properties };
|
|
36640
36664
|
delete next18[key];
|
|
36641
36665
|
const nextRequired = $$props.required.filter((name) => name !== key);
|
|
@@ -36644,6 +36668,10 @@ function Property_list($$anchor, $$props) {
|
|
|
36644
36668
|
const { [key]: _removedChildCount, ...remainingChildCounts } = $197.get(childValidationCounts);
|
|
36645
36669
|
$197.set(childValidationCounts, remainingChildCounts, true);
|
|
36646
36670
|
$$props.onValueChange(next18, nextRequired);
|
|
36671
|
+
await announceAction(`Deleted ${key} property.`);
|
|
36672
|
+
await tick14();
|
|
36673
|
+
const focusTarget = focusKey ? propertyTriggerElements.get(focusKey) : $197.get(addPropertyElement)?.querySelector("button");
|
|
36674
|
+
focusTarget?.focus();
|
|
36647
36675
|
}
|
|
36648
36676
|
function setChildValidationErrorCount(key, count) {
|
|
36649
36677
|
if (($197.get(childValidationCounts)[key] ?? 0) === count)
|
|
@@ -36660,19 +36688,30 @@ function Property_list($$anchor, $$props) {
|
|
|
36660
36688
|
if (isOpen)
|
|
36661
36689
|
setChildValidationErrorCount(key, 0);
|
|
36662
36690
|
}
|
|
36663
|
-
function moveProperty(key, direction) {
|
|
36664
|
-
if (readonly())
|
|
36691
|
+
async function moveProperty(key, direction, index4) {
|
|
36692
|
+
if (readonly() || !canMoveProperty(index4, direction))
|
|
36665
36693
|
return;
|
|
36666
|
-
const index4 = $197.get(propertyNames).indexOf(key);
|
|
36667
36694
|
const target = index4 + direction;
|
|
36668
36695
|
if (target < 0 || target >= $197.get(propertyNames).length)
|
|
36669
36696
|
return;
|
|
36670
36697
|
const reordered = [...$197.get(propertyNames)];
|
|
36671
36698
|
[reordered[index4], reordered[target]] = [reordered[target], reordered[index4]];
|
|
36672
|
-
const next18 =
|
|
36699
|
+
const next18 = Object.create(null);
|
|
36673
36700
|
for (const name of reordered)
|
|
36674
36701
|
next18[name] = $$props.properties[name];
|
|
36675
36702
|
$$props.onValueChange(next18, $$props.required);
|
|
36703
|
+
await announceAction(`Moved ${key} property to position ${target + 1} of ${reordered.length}.`);
|
|
36704
|
+
}
|
|
36705
|
+
function canMoveProperty(index4, direction) {
|
|
36706
|
+
const target = index4 + direction;
|
|
36707
|
+
if (target < 0 || target >= $197.get(propertyNames).length)
|
|
36708
|
+
return false;
|
|
36709
|
+
const reordered = [...$197.get(propertyNames)];
|
|
36710
|
+
[reordered[index4], reordered[target]] = [reordered[target], reordered[index4]];
|
|
36711
|
+
const next18 = Object.create(null);
|
|
36712
|
+
for (const name of reordered)
|
|
36713
|
+
next18[name] = $$props.properties[name];
|
|
36714
|
+
return Object.keys(next18).every((name, nextIndex) => name === reordered[nextIndex]);
|
|
36676
36715
|
}
|
|
36677
36716
|
function toggleRequired(key) {
|
|
36678
36717
|
if (readonly())
|
|
@@ -36727,7 +36766,11 @@ function Property_list($$anchor, $$props) {
|
|
|
36727
36766
|
return;
|
|
36728
36767
|
$$props.onValueChange($$props.properties, $$props.required.filter((entry) => entry !== name));
|
|
36729
36768
|
}
|
|
36730
|
-
var
|
|
36769
|
+
var fragment = root_428();
|
|
36770
|
+
var p = $197.first_child(fragment);
|
|
36771
|
+
var text26 = $197.child(p, true);
|
|
36772
|
+
$197.reset(p);
|
|
36773
|
+
var div = $197.sibling(p, 2);
|
|
36731
36774
|
var node = $197.child(div);
|
|
36732
36775
|
{
|
|
36733
36776
|
var consequent = ($$anchor2) => {
|
|
@@ -36735,9 +36778,9 @@ function Property_list($$anchor, $$props) {
|
|
|
36735
36778
|
variant: "danger",
|
|
36736
36779
|
children: ($$anchor3, $$slotProps) => {
|
|
36737
36780
|
$197.next();
|
|
36738
|
-
var
|
|
36739
|
-
$197.template_effect(() => $197.set_text(
|
|
36740
|
-
$197.append($$anchor3,
|
|
36781
|
+
var text_1 = $197.text();
|
|
36782
|
+
$197.template_effect(() => $197.set_text(text_1, $197.get(renameError)));
|
|
36783
|
+
$197.append($$anchor3, text_1);
|
|
36741
36784
|
},
|
|
36742
36785
|
$$slots: { default: true }
|
|
36743
36786
|
});
|
|
@@ -36750,8 +36793,8 @@ function Property_list($$anchor, $$props) {
|
|
|
36750
36793
|
var node_1 = $197.sibling(node, 2);
|
|
36751
36794
|
{
|
|
36752
36795
|
var consequent_1 = ($$anchor2) => {
|
|
36753
|
-
var
|
|
36754
|
-
$197.append($$anchor2,
|
|
36796
|
+
var p_1 = root102();
|
|
36797
|
+
$197.append($$anchor2, p_1);
|
|
36755
36798
|
};
|
|
36756
36799
|
$197.if(node_1, ($$render) => {
|
|
36757
36800
|
if ($197.get(propertyNames).length === 0)
|
|
@@ -36759,7 +36802,7 @@ function Property_list($$anchor, $$props) {
|
|
|
36759
36802
|
});
|
|
36760
36803
|
}
|
|
36761
36804
|
var node_2 = $197.sibling(node_1, 2);
|
|
36762
|
-
$197.each(node_2,
|
|
36805
|
+
$197.each(node_2, 18, () => $197.get(propertyNames), (key) => key, ($$anchor2, key, index4) => {
|
|
36763
36806
|
const isRequired = $197.derived(() => $$props.required.includes(key));
|
|
36764
36807
|
const isOpen = $197.derived(() => expanded[key] === true);
|
|
36765
36808
|
const childValidationErrorCount = $197.derived(() => $197.get(childValidationCounts)[key] ?? 0);
|
|
@@ -36775,10 +36818,10 @@ function Property_list($$anchor, $$props) {
|
|
|
36775
36818
|
"aria-hidden": "true"
|
|
36776
36819
|
});
|
|
36777
36820
|
var span = $197.sibling(node_3, 2);
|
|
36778
|
-
var
|
|
36821
|
+
var text_2 = $197.child(span, true);
|
|
36779
36822
|
$197.reset(span);
|
|
36780
36823
|
var span_1 = $197.sibling(span, 2);
|
|
36781
|
-
var
|
|
36824
|
+
var text_3 = $197.child(span_1, true);
|
|
36782
36825
|
$197.reset(span_1);
|
|
36783
36826
|
var node_4 = $197.sibling(span_1, 2);
|
|
36784
36827
|
{
|
|
@@ -36792,10 +36835,10 @@ function Property_list($$anchor, $$props) {
|
|
|
36792
36835
|
},
|
|
36793
36836
|
children: ($$anchor4, $$slotProps) => {
|
|
36794
36837
|
$197.next();
|
|
36795
|
-
var
|
|
36796
|
-
$197.template_effect(() => $197.set_text(
|
|
36838
|
+
var text_4 = $197.text();
|
|
36839
|
+
$197.template_effect(() => $197.set_text(text_4, `${$197.get(childValidationErrorCount) ?? ""}
|
|
36797
36840
|
${$197.get(childValidationErrorCount) === 1 ? "error" : "errors"}`));
|
|
36798
|
-
$197.append($$anchor4,
|
|
36841
|
+
$197.append($$anchor4, text_4);
|
|
36799
36842
|
},
|
|
36800
36843
|
$$slots: { default: true }
|
|
36801
36844
|
});
|
|
@@ -36807,10 +36850,11 @@ function Property_list($$anchor, $$props) {
|
|
|
36807
36850
|
});
|
|
36808
36851
|
}
|
|
36809
36852
|
$197.reset(button);
|
|
36853
|
+
$197.action(button, ($$node, $$action_arg) => propertyTrigger?.($$node, $$action_arg), () => key);
|
|
36810
36854
|
var node_5 = $197.sibling(button, 4);
|
|
36811
36855
|
{
|
|
36812
36856
|
let $0 = $197.derived(() => $197.get(isRequired) ? "primary" : "ghost");
|
|
36813
|
-
let $1 = $197.derived(() => $197.get(isRequired) ? "Required (toggle off)" : "Optional (toggle required)");
|
|
36857
|
+
let $1 = $197.derived(() => `${key}: ${$197.get(isRequired) ? "Required (toggle off)" : "Optional (toggle required)"}`);
|
|
36814
36858
|
Button(node_5, {
|
|
36815
36859
|
get variant() {
|
|
36816
36860
|
return $197.get($0);
|
|
@@ -36828,51 +36872,53 @@ function Property_list($$anchor, $$props) {
|
|
|
36828
36872
|
onclick: () => toggleRequired(key),
|
|
36829
36873
|
children: ($$anchor3, $$slotProps) => {
|
|
36830
36874
|
$197.next();
|
|
36831
|
-
var
|
|
36832
|
-
$197.template_effect(() => $197.set_text(
|
|
36833
|
-
$197.append($$anchor3,
|
|
36875
|
+
var text_5 = $197.text();
|
|
36876
|
+
$197.template_effect(() => $197.set_text(text_5, $197.get(isRequired) ? "Required" : "Optional"));
|
|
36877
|
+
$197.append($$anchor3, text_5);
|
|
36834
36878
|
},
|
|
36835
36879
|
$$slots: { default: true }
|
|
36836
36880
|
});
|
|
36837
36881
|
}
|
|
36838
36882
|
var node_6 = $197.sibling(node_5, 2);
|
|
36839
36883
|
{
|
|
36840
|
-
let $0 = $197.derived(() =>
|
|
36884
|
+
let $0 = $197.derived(() => readonly() || !canMoveProperty($197.get(index4), -1));
|
|
36885
|
+
let $1 = $197.derived(() => `Move ${key} up`);
|
|
36841
36886
|
Button(node_6, {
|
|
36842
36887
|
variant: "ghost",
|
|
36843
36888
|
size: "xs",
|
|
36844
36889
|
get disabled() {
|
|
36845
|
-
return
|
|
36890
|
+
return $197.get($0);
|
|
36846
36891
|
},
|
|
36847
36892
|
get "aria-label"() {
|
|
36848
|
-
return $197.get($
|
|
36893
|
+
return $197.get($1);
|
|
36849
36894
|
},
|
|
36850
|
-
onclick: () => moveProperty(key, -1),
|
|
36895
|
+
onclick: () => moveProperty(key, -1, $197.get(index4)),
|
|
36851
36896
|
children: ($$anchor3, $$slotProps) => {
|
|
36852
36897
|
$197.next();
|
|
36853
|
-
var
|
|
36854
|
-
$197.append($$anchor3,
|
|
36898
|
+
var text_6 = $197.text("↑");
|
|
36899
|
+
$197.append($$anchor3, text_6);
|
|
36855
36900
|
},
|
|
36856
36901
|
$$slots: { default: true }
|
|
36857
36902
|
});
|
|
36858
36903
|
}
|
|
36859
36904
|
var node_7 = $197.sibling(node_6, 2);
|
|
36860
36905
|
{
|
|
36861
|
-
let $0 = $197.derived(() =>
|
|
36906
|
+
let $0 = $197.derived(() => readonly() || !canMoveProperty($197.get(index4), 1));
|
|
36907
|
+
let $1 = $197.derived(() => `Move ${key} down`);
|
|
36862
36908
|
Button(node_7, {
|
|
36863
36909
|
variant: "ghost",
|
|
36864
36910
|
size: "xs",
|
|
36865
36911
|
get disabled() {
|
|
36866
|
-
return
|
|
36912
|
+
return $197.get($0);
|
|
36867
36913
|
},
|
|
36868
36914
|
get "aria-label"() {
|
|
36869
|
-
return $197.get($
|
|
36915
|
+
return $197.get($1);
|
|
36870
36916
|
},
|
|
36871
|
-
onclick: () => moveProperty(key, 1),
|
|
36917
|
+
onclick: () => moveProperty(key, 1, $197.get(index4)),
|
|
36872
36918
|
children: ($$anchor3, $$slotProps) => {
|
|
36873
36919
|
$197.next();
|
|
36874
|
-
var
|
|
36875
|
-
$197.append($$anchor3,
|
|
36920
|
+
var text_7 = $197.text("↓");
|
|
36921
|
+
$197.append($$anchor3, text_7);
|
|
36876
36922
|
},
|
|
36877
36923
|
$$slots: { default: true }
|
|
36878
36924
|
});
|
|
@@ -36889,11 +36935,11 @@ function Property_list($$anchor, $$props) {
|
|
|
36889
36935
|
get "aria-label"() {
|
|
36890
36936
|
return $197.get($0);
|
|
36891
36937
|
},
|
|
36892
|
-
onclick: () => deleteProperty(key),
|
|
36938
|
+
onclick: () => deleteProperty(key, $197.get(index4)),
|
|
36893
36939
|
children: ($$anchor3, $$slotProps) => {
|
|
36894
36940
|
$197.next();
|
|
36895
|
-
var
|
|
36896
|
-
$197.append($$anchor3,
|
|
36941
|
+
var text_8 = $197.text("Delete");
|
|
36942
|
+
$197.append($$anchor3, text_8);
|
|
36897
36943
|
},
|
|
36898
36944
|
$$slots: { default: true }
|
|
36899
36945
|
});
|
|
@@ -36964,14 +37010,15 @@ function Property_list($$anchor, $$props) {
|
|
|
36964
37010
|
$197.set_style(div_2, `--cinder-jse-property-depth: ${depth()}`);
|
|
36965
37011
|
$197.set_attribute(button, "aria-label", `${$197.get(isOpen) ? "Collapse" : "Expand"} ${key} property${$197.get(childValidationErrorCount) > 0 ? `, ${$197.get(childValidationErrorCount)} validation ${$197.get(childValidationErrorCount) === 1 ? "error" : "errors"}` : ""}`);
|
|
36966
37012
|
$197.set_attribute(button, "aria-expanded", $197.get(isOpen));
|
|
36967
|
-
$197.set_attribute(button, "aria-controls", $197.get(panelId));
|
|
36968
|
-
$197.set_text(
|
|
36969
|
-
$197.set_text(
|
|
37013
|
+
$197.set_attribute(button, "aria-controls", $197.get(isOpen) ? $197.get(panelId) : undefined);
|
|
37014
|
+
$197.set_text(text_2, key);
|
|
37015
|
+
$197.set_text(text_3, $0);
|
|
36970
37016
|
}, [() => summariseType($$props.properties[key] ?? {})]);
|
|
36971
37017
|
$197.delegated("click", button, () => toggleExpanded(key, $197.get(isOpen)));
|
|
36972
37018
|
$197.append($$anchor2, div_1);
|
|
36973
37019
|
});
|
|
36974
|
-
var
|
|
37020
|
+
var span_2 = $197.sibling(node_2, 2);
|
|
37021
|
+
var node_12 = $197.child(span_2);
|
|
36975
37022
|
Button(node_12, {
|
|
36976
37023
|
variant: "secondary",
|
|
36977
37024
|
size: "sm",
|
|
@@ -36981,12 +37028,14 @@ function Property_list($$anchor, $$props) {
|
|
|
36981
37028
|
onclick: addProperty,
|
|
36982
37029
|
children: ($$anchor2, $$slotProps) => {
|
|
36983
37030
|
$197.next();
|
|
36984
|
-
var
|
|
36985
|
-
$197.append($$anchor2,
|
|
37031
|
+
var text_9 = $197.text("Add property");
|
|
37032
|
+
$197.append($$anchor2, text_9);
|
|
36986
37033
|
},
|
|
36987
37034
|
$$slots: { default: true }
|
|
36988
37035
|
});
|
|
36989
|
-
|
|
37036
|
+
$197.reset(span_2);
|
|
37037
|
+
$197.bind_this(span_2, ($$value) => $197.set(addPropertyElement, $$value), () => $197.get(addPropertyElement));
|
|
37038
|
+
var node_13 = $197.sibling(span_2, 2);
|
|
36990
37039
|
{
|
|
36991
37040
|
var consequent_4 = ($$anchor2) => {
|
|
36992
37041
|
{
|
|
@@ -37048,8 +37097,8 @@ function Property_list($$anchor, $$props) {
|
|
|
37048
37097
|
onclick: addRequiredOnly,
|
|
37049
37098
|
children: ($$anchor4, $$slotProps2) => {
|
|
37050
37099
|
$197.next();
|
|
37051
|
-
var
|
|
37052
|
-
$197.append($$anchor4,
|
|
37100
|
+
var text_10 = $197.text("Add required name");
|
|
37101
|
+
$197.append($$anchor4, text_10);
|
|
37053
37102
|
},
|
|
37054
37103
|
$$slots: { default: true }
|
|
37055
37104
|
});
|
|
@@ -37066,7 +37115,8 @@ function Property_list($$anchor, $$props) {
|
|
|
37066
37115
|
});
|
|
37067
37116
|
}
|
|
37068
37117
|
$197.reset(div);
|
|
37069
|
-
$197.
|
|
37118
|
+
$197.template_effect(() => $197.set_text(text26, $197.get(actionAnnouncement)));
|
|
37119
|
+
$197.append($$anchor, fragment);
|
|
37070
37120
|
$197.pop();
|
|
37071
37121
|
}
|
|
37072
37122
|
$197.delegate(["click"]);
|
|
@@ -39531,7 +39581,7 @@ import"@lostgradient/cinder/invocation-rule-builder/styles";
|
|
|
39531
39581
|
// src/components/invocation-rule-builder/invocation-rule-builder.svelte
|
|
39532
39582
|
import"svelte/internal/disclose-version";
|
|
39533
39583
|
import * as $207 from "svelte/internal/client";
|
|
39534
|
-
import { tick as
|
|
39584
|
+
import { tick as tick15 } from "svelte";
|
|
39535
39585
|
var rest_excludes84 = new Set([
|
|
39536
39586
|
"$$slots",
|
|
39537
39587
|
"$$events",
|
|
@@ -39667,7 +39717,7 @@ function Invocation_rule_builder($$anchor, $$props) {
|
|
|
39667
39717
|
let ruleLabelDrafts = $207.state($207.proxy({}));
|
|
39668
39718
|
function announce(message) {
|
|
39669
39719
|
$207.set(announcement, "");
|
|
39670
|
-
|
|
39720
|
+
tick15().then(() => {
|
|
39671
39721
|
$207.set(announcement, message, true);
|
|
39672
39722
|
});
|
|
39673
39723
|
}
|
|
@@ -39697,7 +39747,7 @@ function Invocation_rule_builder($$anchor, $$props) {
|
|
|
39697
39747
|
const change = { type: "remove-rule", ruleId };
|
|
39698
39748
|
emitChange(nextRules, change);
|
|
39699
39749
|
announce(`${ruleLabel} removed.`);
|
|
39700
|
-
|
|
39750
|
+
tick15().then(() => {
|
|
39701
39751
|
const targetIndex = ruleIndex > 0 ? ruleIndex - 1 : 0;
|
|
39702
39752
|
const ruleElements = document.querySelectorAll(`[data-irb-region="${baseId}"] [data-irb-rule-remove]`);
|
|
39703
39753
|
const targetButton = ruleElements[targetIndex] ?? document.querySelector(`[data-irb-region="${baseId}"] [data-irb-add-rule]`);
|
|
@@ -39759,7 +39809,7 @@ function Invocation_rule_builder($$anchor, $$props) {
|
|
|
39759
39809
|
const change = { type: "remove-condition", ruleId, conditionId };
|
|
39760
39810
|
emitChange(nextRules, change);
|
|
39761
39811
|
announce("Condition removed.");
|
|
39762
|
-
|
|
39812
|
+
tick15().then(() => {
|
|
39763
39813
|
const ruleEl = document.querySelector(`[data-irb-region="${baseId}"] [data-irb-rule="${ruleIndex}"]`);
|
|
39764
39814
|
const removeButtons = ruleEl?.querySelectorAll("[data-irb-condition-remove]");
|
|
39765
39815
|
const addBtn = ruleEl?.querySelector("[data-irb-add-condition]");
|
|
@@ -39798,12 +39848,12 @@ function Invocation_rule_builder($$anchor, $$props) {
|
|
|
39798
39848
|
function handleRemoveAction(ruleId, actionId, actionIndex, ruleIndex) {
|
|
39799
39849
|
const nextRules = updateRules(ruleId, (rule) => ({
|
|
39800
39850
|
...rule,
|
|
39801
|
-
actions: rule.actions.filter((
|
|
39851
|
+
actions: rule.actions.filter((action3) => action3.id !== actionId)
|
|
39802
39852
|
}));
|
|
39803
39853
|
const change = { type: "remove-action", ruleId, actionId };
|
|
39804
39854
|
emitChange(nextRules, change);
|
|
39805
39855
|
announce("Action removed.");
|
|
39806
|
-
|
|
39856
|
+
tick15().then(() => {
|
|
39807
39857
|
const ruleEl = document.querySelector(`[data-irb-region="${baseId}"] [data-irb-rule="${ruleIndex}"]`);
|
|
39808
39858
|
const removeButtons = ruleEl?.querySelectorAll("[data-irb-action-remove]");
|
|
39809
39859
|
const addBtn = ruleEl?.querySelector("[data-irb-add-action]");
|
|
@@ -39814,7 +39864,7 @@ function Invocation_rule_builder($$anchor, $$props) {
|
|
|
39814
39864
|
function handleUpdateAction(ruleId, actionId, target) {
|
|
39815
39865
|
const nextRules = updateRules(ruleId, (rule) => ({
|
|
39816
39866
|
...rule,
|
|
39817
|
-
actions: rule.actions.map((
|
|
39867
|
+
actions: rule.actions.map((action3) => action3.id === actionId ? { ...action3, target } : action3)
|
|
39818
39868
|
}));
|
|
39819
39869
|
const change = { type: "update-action", ruleId, actionId };
|
|
39820
39870
|
emitChange(nextRules, change);
|
|
@@ -39832,8 +39882,8 @@ function Invocation_rule_builder($$anchor, $$props) {
|
|
|
39832
39882
|
function conditionSummary(condition) {
|
|
39833
39883
|
return `${fieldLabel(condition.field)} ${operatorLabel(condition.operator)} "${condition.value}"`;
|
|
39834
39884
|
}
|
|
39835
|
-
function actionSummary(
|
|
39836
|
-
return `Invoke ${actionTargetLabel(
|
|
39885
|
+
function actionSummary(action3) {
|
|
39886
|
+
return `Invoke ${actionTargetLabel(action3.target)}`;
|
|
39837
39887
|
}
|
|
39838
39888
|
var fragment = root_2510();
|
|
39839
39889
|
var section = $207.first_child(fragment);
|
|
@@ -40201,11 +40251,11 @@ function Invocation_rule_builder($$anchor, $$props) {
|
|
|
40201
40251
|
var alternate_6 = ($$anchor5) => {
|
|
40202
40252
|
var fragment_4 = $207.comment();
|
|
40203
40253
|
var node_15 = $207.first_child(fragment_4);
|
|
40204
|
-
$207.each(node_15, 17, () => $207.get(rule).actions, (
|
|
40254
|
+
$207.each(node_15, 17, () => $207.get(rule).actions, (action3) => action3.id, ($$anchor6, action3) => {
|
|
40205
40255
|
var div_10 = root_713();
|
|
40206
40256
|
var text_8 = $207.child(div_10, true);
|
|
40207
40257
|
$207.reset(div_10);
|
|
40208
|
-
$207.template_effect(($0) => $207.set_text(text_8, $0), [() => actionSummary($207.get(
|
|
40258
|
+
$207.template_effect(($0) => $207.set_text(text_8, $0), [() => actionSummary($207.get(action3))]);
|
|
40209
40259
|
$207.append($$anchor6, div_10);
|
|
40210
40260
|
});
|
|
40211
40261
|
$207.append($$anchor5, fragment_4);
|
|
@@ -40224,7 +40274,7 @@ function Invocation_rule_builder($$anchor, $$props) {
|
|
|
40224
40274
|
var alternate_7 = ($$anchor4) => {
|
|
40225
40275
|
var fragment_5 = root_20();
|
|
40226
40276
|
var div_11 = $207.first_child(fragment_5);
|
|
40227
|
-
$207.each(div_11, 23, () => $207.get(rule).actions, (
|
|
40277
|
+
$207.each(div_11, 23, () => $207.get(rule).actions, (action3) => action3.id, ($$anchor5, action3, actionIndex) => {
|
|
40228
40278
|
var div_12 = root_194();
|
|
40229
40279
|
var select_3 = $207.child(div_12);
|
|
40230
40280
|
$207.each(select_3, 21, () => $207.get(resolvedActionOptions), (option) => option.value, ($$anchor6, option) => {
|
|
@@ -40247,13 +40297,13 @@ function Invocation_rule_builder($$anchor, $$props) {
|
|
|
40247
40297
|
$207.reset(div_12);
|
|
40248
40298
|
$207.template_effect(() => {
|
|
40249
40299
|
$207.set_attribute(select_3, "aria-label", `Action ${$207.get(actionIndex) + 1} target for ${$207.get(rule).label}`);
|
|
40250
|
-
if (select_3_value !== (select_3_value = $207.get(
|
|
40251
|
-
select_3.value = (select_3.__value = $207.get(
|
|
40300
|
+
if (select_3_value !== (select_3_value = $207.get(action3).target)) {
|
|
40301
|
+
select_3.value = (select_3.__value = $207.get(action3).target) ?? "", $207.select_option(select_3, $207.get(action3).target);
|
|
40252
40302
|
}
|
|
40253
40303
|
$207.set_attribute(button_5, "aria-label", `Remove action ${$207.get(actionIndex) + 1} of ${$207.get(rule).label}`);
|
|
40254
40304
|
});
|
|
40255
|
-
$207.delegated("change", select_3, (event17) => handleUpdateAction($207.get(rule).id, $207.get(
|
|
40256
|
-
$207.delegated("click", button_5, () => handleRemoveAction($207.get(rule).id, $207.get(
|
|
40305
|
+
$207.delegated("change", select_3, (event17) => handleUpdateAction($207.get(rule).id, $207.get(action3).id, event17.target.value));
|
|
40306
|
+
$207.delegated("click", button_5, () => handleRemoveAction($207.get(rule).id, $207.get(action3).id, $207.get(actionIndex), $207.get(ruleIndex)));
|
|
40257
40307
|
$207.append($$anchor5, div_12);
|
|
40258
40308
|
});
|
|
40259
40309
|
$207.reset(div_11);
|
|
@@ -42455,8 +42505,8 @@ function Line_chart($$anchor, $$props) {
|
|
|
42455
42505
|
$217.reset(title);
|
|
42456
42506
|
var g = $217.sibling(title);
|
|
42457
42507
|
var node_8 = $217.child(g);
|
|
42458
|
-
$217.each(node_8, 18, () => $217.get(model).yTicks, (
|
|
42459
|
-
const tickY = $217.derived(() => $217.get(model).geometry.plotHeight - (
|
|
42508
|
+
$217.each(node_8, 18, () => $217.get(model).yTicks, (tick16) => tick16, ($$anchor3, tick16, index4) => {
|
|
42509
|
+
const tickY = $217.derived(() => $217.get(model).geometry.plotHeight - (tick16 - $217.get(model).yDomain[0]) / ($217.get(model).yDomain[1] - $217.get(model).yDomain[0]) * $217.get(model).geometry.plotHeight);
|
|
42460
42510
|
var fragment_3 = root_434();
|
|
42461
42511
|
var line = $217.first_child(fragment_3);
|
|
42462
42512
|
var text_5 = $217.sibling(line);
|
|
@@ -42469,7 +42519,7 @@ function Line_chart($$anchor, $$props) {
|
|
|
42469
42519
|
$217.set_attribute(text_5, "y", $217.get(tickY));
|
|
42470
42520
|
$217.set_text(text_6, $0);
|
|
42471
42521
|
}, [
|
|
42472
|
-
() => formatNumericValue(
|
|
42522
|
+
() => formatNumericValue(tick16, $$props.yAxis, undefined, { index: $217.get(index4) })
|
|
42473
42523
|
]);
|
|
42474
42524
|
$217.append($$anchor3, fragment_3);
|
|
42475
42525
|
});
|
|
@@ -42492,15 +42542,15 @@ function Line_chart($$anchor, $$props) {
|
|
|
42492
42542
|
});
|
|
42493
42543
|
}
|
|
42494
42544
|
var node_10 = $217.sibling(node_9);
|
|
42495
|
-
$217.each(node_10, 17, () => $217.get(model).xTicks, (
|
|
42545
|
+
$217.each(node_10, 17, () => $217.get(model).xTicks, (tick16) => tick16.label, ($$anchor3, tick16) => {
|
|
42496
42546
|
var text_9 = root_618();
|
|
42497
42547
|
var text_10 = $217.child(text_9, true);
|
|
42498
42548
|
$217.reset(text_9);
|
|
42499
42549
|
$217.template_effect(() => {
|
|
42500
|
-
$217.set_attribute(text_9, "x", $217.get(
|
|
42550
|
+
$217.set_attribute(text_9, "x", $217.get(tick16).x);
|
|
42501
42551
|
$217.set_attribute(text_9, "y", $217.get(model).geometry.plotHeight + 20);
|
|
42502
|
-
$217.set_attribute(text_9, "transform", $$props.xAxis?.tickLabelRotation ? `rotate(${$$props.xAxis.tickLabelRotation} ${$217.get(
|
|
42503
|
-
$217.set_text(text_10, $217.get(
|
|
42552
|
+
$217.set_attribute(text_9, "transform", $$props.xAxis?.tickLabelRotation ? `rotate(${$$props.xAxis.tickLabelRotation} ${$217.get(tick16).x} ${$217.get(model).geometry.plotHeight + 20})` : undefined);
|
|
42553
|
+
$217.set_text(text_10, $217.get(tick16).label);
|
|
42504
42554
|
});
|
|
42505
42555
|
$217.append($$anchor3, text_9);
|
|
42506
42556
|
});
|
|
@@ -43603,12 +43653,12 @@ import"@lostgradient/cinder/mega-menu/styles";
|
|
|
43603
43653
|
// src/components/mega-menu/mega-menu.svelte
|
|
43604
43654
|
import"svelte/internal/disclose-version";
|
|
43605
43655
|
import * as $224 from "svelte/internal/client";
|
|
43606
|
-
import { tick as
|
|
43656
|
+
import { tick as tick17 } from "svelte";
|
|
43607
43657
|
|
|
43608
43658
|
// src/components/mega-menu/mega-menu-content.svelte
|
|
43609
43659
|
import"svelte/internal/disclose-version";
|
|
43610
43660
|
import * as $223 from "svelte/internal/client";
|
|
43611
|
-
import { tick as
|
|
43661
|
+
import { tick as tick16 } from "svelte";
|
|
43612
43662
|
var root119 = $223.from_html(`<h3 class="cinder-mega-menu__section-title"> </h3>`);
|
|
43613
43663
|
var root_1125 = $223.from_html(`<span class="cinder-mega-menu__link-description"> </span>`);
|
|
43614
43664
|
var root_274 = $223.from_html(`<li><a class="cinder-mega-menu__link"><span> </span> <!></a></li>`);
|
|
@@ -43642,7 +43692,7 @@ function Mega_menu_content($$anchor, $$props) {
|
|
|
43642
43692
|
async function focusSubmenuPanel(submenuId) {
|
|
43643
43693
|
if (typeof document === "undefined")
|
|
43644
43694
|
return;
|
|
43645
|
-
await
|
|
43695
|
+
await tick16();
|
|
43646
43696
|
const panel = $$props.elementById($$props.submenuPanelId($$props.item.id, submenuId));
|
|
43647
43697
|
if (!(panel instanceof HTMLElement))
|
|
43648
43698
|
return;
|
|
@@ -44092,7 +44142,7 @@ function Mega_menu($$anchor, $$props) {
|
|
|
44092
44142
|
$224.set(openItemId, null);
|
|
44093
44143
|
$224.set(previousOpenIndex, null);
|
|
44094
44144
|
if (shouldRestoreFocus && currentItemId) {
|
|
44095
|
-
|
|
44145
|
+
tick17().then(() => {
|
|
44096
44146
|
focusElementById(triggerId(currentItemId));
|
|
44097
44147
|
});
|
|
44098
44148
|
}
|
|
@@ -44131,7 +44181,7 @@ function Mega_menu($$anchor, $$props) {
|
|
|
44131
44181
|
async function focusPanelContent(itemId) {
|
|
44132
44182
|
if (typeof document === "undefined")
|
|
44133
44183
|
return;
|
|
44134
|
-
await
|
|
44184
|
+
await tick17();
|
|
44135
44185
|
const panel = elementById(contentId(itemId));
|
|
44136
44186
|
if (!(panel instanceof HTMLElement))
|
|
44137
44187
|
return;
|
|
@@ -44365,7 +44415,7 @@ import"@lostgradient/cinder/menu-bar/styles";
|
|
|
44365
44415
|
// src/components/menu-bar/menu-bar.svelte
|
|
44366
44416
|
import"svelte/internal/disclose-version";
|
|
44367
44417
|
import * as $226 from "svelte/internal/client";
|
|
44368
|
-
import { tick as
|
|
44418
|
+
import { tick as tick18 } from "svelte";
|
|
44369
44419
|
|
|
44370
44420
|
// src/components/menu-bar/menu-bar-dropdown-context.svelte
|
|
44371
44421
|
import"svelte/internal/disclose-version";
|
|
@@ -44501,7 +44551,7 @@ function Menu_bar($$anchor, $$props) {
|
|
|
44501
44551
|
function focusSubmenuTriggerAfterClose(id) {
|
|
44502
44552
|
suppressSubmenuFocusOpen = true;
|
|
44503
44553
|
focusElement(id);
|
|
44504
|
-
|
|
44554
|
+
tick18().then(() => {
|
|
44505
44555
|
suppressSubmenuFocusOpen = false;
|
|
44506
44556
|
});
|
|
44507
44557
|
}
|
|
@@ -44552,7 +44602,7 @@ function Menu_bar($$anchor, $$props) {
|
|
|
44552
44602
|
}
|
|
44553
44603
|
function closeMenuAndFocusTrigger(index4) {
|
|
44554
44604
|
closeAll();
|
|
44555
|
-
|
|
44605
|
+
tick18().then(() => focusTopLevelTrigger(index4));
|
|
44556
44606
|
}
|
|
44557
44607
|
function labelParts(menu) {
|
|
44558
44608
|
if (!menu.accessKey)
|
|
@@ -44855,7 +44905,7 @@ function Menu_bar($$anchor, $$props) {
|
|
|
44855
44905
|
return;
|
|
44856
44906
|
if ($226.get(openMenuIndex) === null && $226.get(openSubmenuKey) === null)
|
|
44857
44907
|
return;
|
|
44858
|
-
|
|
44908
|
+
tick18().then(() => {
|
|
44859
44909
|
if (document.activeElement && $226.get(rootElement)?.contains(document.activeElement))
|
|
44860
44910
|
return;
|
|
44861
44911
|
if (document.activeElement && isInsideOpenMenu(document.activeElement))
|
|
@@ -46092,7 +46142,7 @@ import"@lostgradient/cinder/multi-select/styles";
|
|
|
46092
46142
|
// src/components/multi-select/multi-select.svelte
|
|
46093
46143
|
import"svelte/internal/disclose-version";
|
|
46094
46144
|
import * as $231 from "svelte/internal/client";
|
|
46095
|
-
import { tick as
|
|
46145
|
+
import { tick as tick19, untrack as untrack22 } from "svelte";
|
|
46096
46146
|
var root123 = $231.from_html(`<span class="cinder-multi-select__count" aria-hidden="true"> </span>`);
|
|
46097
46147
|
var root_1132 = $231.from_html(`<button type="button" class="cinder-multi-select__clear" aria-label="Clear selected items">×</button>`);
|
|
46098
46148
|
var root_279 = $231.from_html(`<input class="cinder-_input-frame cinder-multi-select__filter" type="text" role="combobox" placeholder="Filter options" aria-autocomplete="list" aria-haspopup="listbox"/>`);
|
|
@@ -46487,7 +46537,7 @@ function Multi_select($$anchor, $$props) {
|
|
|
46487
46537
|
$231.set(query, "");
|
|
46488
46538
|
$231.set(reorderAfterReopen, selectionFeedback() === "top-after-reopen" && $231.get(openedAtLeastOnce), true);
|
|
46489
46539
|
$231.set(openedAtLeastOnce, true);
|
|
46490
|
-
|
|
46540
|
+
tick19().then(() => {
|
|
46491
46541
|
const nextIndex = preferLast ? getLastEnabledIndex($231.get(visibleItems)) : firstEnabledIndex($231.get(visibleItems));
|
|
46492
46542
|
if (nextIndex >= 0)
|
|
46493
46543
|
commandList.setActiveById(`${$$props.id}-option-${nextIndex}`);
|
|
@@ -58823,7 +58873,7 @@ import * as $259 from "svelte/internal/client";
|
|
|
58823
58873
|
// src/components/schema-form/schema-form-body.svelte
|
|
58824
58874
|
import"svelte/internal/disclose-version";
|
|
58825
58875
|
import * as $258 from "svelte/internal/client";
|
|
58826
|
-
import { tick as
|
|
58876
|
+
import { tick as tick20 } from "svelte";
|
|
58827
58877
|
|
|
58828
58878
|
// src/components/schema-form/schema-form-model.ts
|
|
58829
58879
|
function isRecord(value) {
|
|
@@ -59992,7 +60042,7 @@ function Schema_form_body($$anchor, $$props) {
|
|
|
59992
60042
|
await focusFirstError(submitId);
|
|
59993
60043
|
}
|
|
59994
60044
|
async function focusFirstError(submitId) {
|
|
59995
|
-
await
|
|
60045
|
+
await tick20();
|
|
59996
60046
|
if (activeSubmitId !== submitId)
|
|
59997
60047
|
return;
|
|
59998
60048
|
$258.get(formElement)?.querySelector('[aria-invalid="true"], [data-cinder-invalid="true"], .cinder-schema-form__error')?.focus();
|
|
@@ -60041,7 +60091,7 @@ function Schema_form_body($$anchor, $$props) {
|
|
|
60041
60091
|
await $$props.onSubmit?.(result2.value, event28);
|
|
60042
60092
|
if (shouldResumeNativeSubmit()) {
|
|
60043
60093
|
allowNativeSubmit = true;
|
|
60044
|
-
await
|
|
60094
|
+
await tick20();
|
|
60045
60095
|
$258.get(formElement)?.requestSubmit(nativeSubmitter(event28));
|
|
60046
60096
|
}
|
|
60047
60097
|
} finally {
|
|
@@ -60911,7 +60961,7 @@ import"@lostgradient/cinder/selection-popover/styles";
|
|
|
60911
60961
|
// src/components/selection-popover/selection-popover.svelte
|
|
60912
60962
|
import"svelte/internal/disclose-version";
|
|
60913
60963
|
import * as $266 from "svelte/internal/client";
|
|
60914
|
-
import { tick as
|
|
60964
|
+
import { tick as tick21 } from "svelte";
|
|
60915
60965
|
|
|
60916
60966
|
// src/components/selection-popover/virtual-keyboard-dismissal.svelte.ts
|
|
60917
60967
|
import * as $265 from "svelte/internal/client";
|
|
@@ -61212,7 +61262,7 @@ function Selection_popover($$anchor, $$props) {
|
|
|
61212
61262
|
rememberFocus();
|
|
61213
61263
|
$266.set(expanded, true);
|
|
61214
61264
|
$$props.onExpand?.();
|
|
61215
|
-
|
|
61265
|
+
tick21().then(() => $266.get(textareaElement)?.focus({ preventScroll: true }));
|
|
61216
61266
|
}
|
|
61217
61267
|
function handleCancel() {
|
|
61218
61268
|
$266.set(expanded, false);
|
|
@@ -61374,7 +61424,7 @@ var root_726 = $267.from_html(`<div class="cinder-share-card__meta"><!> <!></div
|
|
|
61374
61424
|
var root_822 = $267.from_html(`<div><!> <!> <div class="cinder-share-card__value"><span class="cinder-share-card__value-text"> </span></div> <div class="cinder-share-card__actions" role="group" aria-label="Share actions"><!> <!></div></div> <!>`, 1);
|
|
61375
61425
|
function Share_card($$anchor, $$props) {
|
|
61376
61426
|
$267.push($$props, true);
|
|
61377
|
-
const shareButton = ($$anchor2,
|
|
61427
|
+
const shareButton = ($$anchor2, action3 = $267.noop) => {
|
|
61378
61428
|
const shareCopied = $267.derived(() => $267.get(copiedKey) === "share-fallback");
|
|
61379
61429
|
var button = root_2106();
|
|
61380
61430
|
var node = $267.child(button);
|
|
@@ -61392,16 +61442,16 @@ function Share_card($$anchor, $$props) {
|
|
|
61392
61442
|
var consequent_1 = ($$anchor4) => {
|
|
61393
61443
|
var fragment_2 = $267.comment();
|
|
61394
61444
|
var node_2 = $267.first_child(fragment_2);
|
|
61395
|
-
$267.snippet(node_2, () =>
|
|
61445
|
+
$267.snippet(node_2, () => action3().labelSnippet);
|
|
61396
61446
|
$267.append($$anchor4, fragment_2);
|
|
61397
61447
|
};
|
|
61398
61448
|
var alternate = ($$anchor4) => {
|
|
61399
61449
|
var text_2 = $267.text();
|
|
61400
|
-
$267.template_effect(() => $267.set_text(text_2,
|
|
61450
|
+
$267.template_effect(() => $267.set_text(text_2, action3().label));
|
|
61401
61451
|
$267.append($$anchor4, text_2);
|
|
61402
61452
|
};
|
|
61403
61453
|
$267.if(node_1, ($$render) => {
|
|
61404
|
-
if (
|
|
61454
|
+
if (action3().labelSnippet)
|
|
61405
61455
|
$$render(consequent_1);
|
|
61406
61456
|
else
|
|
61407
61457
|
$$render(alternate, -1);
|
|
@@ -61418,17 +61468,17 @@ function Share_card($$anchor, $$props) {
|
|
|
61418
61468
|
}
|
|
61419
61469
|
$267.reset(button);
|
|
61420
61470
|
$267.template_effect(() => {
|
|
61421
|
-
$267.set_attribute(button, "data-cinder-action",
|
|
61471
|
+
$267.set_attribute(button, "data-cinder-action", action3().key);
|
|
61422
61472
|
$267.set_attribute(button, "data-cinder-copied", $267.get(shareCopied) ? "" : undefined);
|
|
61423
|
-
$267.set_attribute(button, "aria-label", $267.get(shareCopied) ? copiedLabel() :
|
|
61473
|
+
$267.set_attribute(button, "aria-label", $267.get(shareCopied) ? copiedLabel() : action3().label);
|
|
61424
61474
|
});
|
|
61425
61475
|
$267.delegated("click", button, () => {
|
|
61426
|
-
|
|
61476
|
+
action3().onclick?.();
|
|
61427
61477
|
handleNativeShare();
|
|
61428
61478
|
});
|
|
61429
61479
|
$267.append($$anchor2, button);
|
|
61430
61480
|
};
|
|
61431
|
-
const copyButton = ($$anchor2,
|
|
61481
|
+
const copyButton = ($$anchor2, action3 = $267.noop) => {
|
|
61432
61482
|
var button_1 = root_2106();
|
|
61433
61483
|
var node_3 = $267.child(button_1);
|
|
61434
61484
|
{
|
|
@@ -61445,16 +61495,16 @@ function Share_card($$anchor, $$props) {
|
|
|
61445
61495
|
var consequent_3 = ($$anchor4) => {
|
|
61446
61496
|
var fragment_6 = $267.comment();
|
|
61447
61497
|
var node_5 = $267.first_child(fragment_6);
|
|
61448
|
-
$267.snippet(node_5, () =>
|
|
61498
|
+
$267.snippet(node_5, () => action3().labelSnippet);
|
|
61449
61499
|
$267.append($$anchor4, fragment_6);
|
|
61450
61500
|
};
|
|
61451
61501
|
var alternate_2 = ($$anchor4) => {
|
|
61452
61502
|
var text_4 = $267.text();
|
|
61453
|
-
$267.template_effect(() => $267.set_text(text_4,
|
|
61503
|
+
$267.template_effect(() => $267.set_text(text_4, action3().label));
|
|
61454
61504
|
$267.append($$anchor4, text_4);
|
|
61455
61505
|
};
|
|
61456
61506
|
$267.if(node_4, ($$render) => {
|
|
61457
|
-
if (
|
|
61507
|
+
if (action3().labelSnippet)
|
|
61458
61508
|
$$render(consequent_3);
|
|
61459
61509
|
else
|
|
61460
61510
|
$$render(alternate_2, -1);
|
|
@@ -61463,7 +61513,7 @@ function Share_card($$anchor, $$props) {
|
|
|
61463
61513
|
$267.append($$anchor3, fragment_5);
|
|
61464
61514
|
};
|
|
61465
61515
|
$267.if(node_3, ($$render) => {
|
|
61466
|
-
if ($267.get(copiedKey) ===
|
|
61516
|
+
if ($267.get(copiedKey) === action3().key)
|
|
61467
61517
|
$$render(consequent_2);
|
|
61468
61518
|
else
|
|
61469
61519
|
$$render(alternate_3, -1);
|
|
@@ -61471,14 +61521,14 @@ function Share_card($$anchor, $$props) {
|
|
|
61471
61521
|
}
|
|
61472
61522
|
$267.reset(button_1);
|
|
61473
61523
|
$267.template_effect(() => {
|
|
61474
|
-
$267.set_attribute(button_1, "data-cinder-action",
|
|
61475
|
-
$267.set_attribute(button_1, "data-cinder-copied", $267.get(copiedKey) ===
|
|
61476
|
-
$267.set_attribute(button_1, "aria-label", $267.get(copiedKey) ===
|
|
61524
|
+
$267.set_attribute(button_1, "data-cinder-action", action3().key);
|
|
61525
|
+
$267.set_attribute(button_1, "data-cinder-copied", $267.get(copiedKey) === action3().key ? "" : undefined);
|
|
61526
|
+
$267.set_attribute(button_1, "aria-label", $267.get(copiedKey) === action3().key ? copiedLabel() : action3().label);
|
|
61477
61527
|
});
|
|
61478
61528
|
$267.delegated("click", button_1, () => {
|
|
61479
|
-
|
|
61480
|
-
if (
|
|
61481
|
-
handleCopy(
|
|
61529
|
+
action3().onclick?.();
|
|
61530
|
+
if (action3().copyValue !== undefined) {
|
|
61531
|
+
handleCopy(action3().key, action3().copyValue);
|
|
61482
61532
|
}
|
|
61483
61533
|
});
|
|
61484
61534
|
$267.append($$anchor2, button_1);
|
|
@@ -61635,18 +61685,18 @@ function Share_card($$anchor, $$props) {
|
|
|
61635
61685
|
$267.reset(div_3);
|
|
61636
61686
|
var div_4 = $267.sibling(div_3, 2);
|
|
61637
61687
|
var node_11 = $267.child(div_4);
|
|
61638
|
-
$267.each(node_11, 17, () => $267.get(resolvedActions), (
|
|
61688
|
+
$267.each(node_11, 17, () => $267.get(resolvedActions), (action3) => action3.key, ($$anchor2, action3) => {
|
|
61639
61689
|
var fragment_9 = $267.comment();
|
|
61640
61690
|
var node_12 = $267.first_child(fragment_9);
|
|
61641
61691
|
{
|
|
61642
61692
|
var consequent_8 = ($$anchor3) => {
|
|
61643
|
-
shareButton($$anchor3, () => $267.get(
|
|
61693
|
+
shareButton($$anchor3, () => $267.get(action3));
|
|
61644
61694
|
};
|
|
61645
61695
|
var alternate_4 = ($$anchor3) => {
|
|
61646
|
-
copyButton($$anchor3, () => $267.get(
|
|
61696
|
+
copyButton($$anchor3, () => $267.get(action3));
|
|
61647
61697
|
};
|
|
61648
61698
|
$267.if(node_12, ($$render) => {
|
|
61649
|
-
if ($267.get(
|
|
61699
|
+
if ($267.get(action3).key === "native-share" || $267.get(action3).nativeShareEnabled)
|
|
61650
61700
|
$$render(consequent_8);
|
|
61651
61701
|
else
|
|
61652
61702
|
$$render(alternate_4, -1);
|
|
@@ -62553,10 +62603,10 @@ function Slider($$anchor, $$props) {
|
|
|
62553
62603
|
if ($276.get(tickList) && $276.get(tickList).length > 0) {
|
|
62554
62604
|
let nearest = $276.get(tickList)[0];
|
|
62555
62605
|
let nearestDelta = Math.abs(clamped - nearest);
|
|
62556
|
-
for (const
|
|
62557
|
-
const delta = Math.abs(clamped -
|
|
62606
|
+
for (const tick22 of $276.get(tickList)) {
|
|
62607
|
+
const delta = Math.abs(clamped - tick22);
|
|
62558
62608
|
if (delta < nearestDelta) {
|
|
62559
|
-
nearest =
|
|
62609
|
+
nearest = tick22;
|
|
62560
62610
|
nearestDelta = delta;
|
|
62561
62611
|
}
|
|
62562
62612
|
}
|
|
@@ -62606,15 +62656,15 @@ function Slider($$anchor, $$props) {
|
|
|
62606
62656
|
if (!$276.get(tickList) || $276.get(tickList).length === 0)
|
|
62607
62657
|
return current;
|
|
62608
62658
|
if (direction === 1) {
|
|
62609
|
-
for (const
|
|
62610
|
-
if (
|
|
62611
|
-
return
|
|
62659
|
+
for (const tick22 of $276.get(tickList))
|
|
62660
|
+
if (tick22 > current)
|
|
62661
|
+
return tick22;
|
|
62612
62662
|
return $276.get(tickList).at(-1) ?? current;
|
|
62613
62663
|
}
|
|
62614
62664
|
for (let index4 = $276.get(tickList).length - 1;index4 >= 0; index4--) {
|
|
62615
|
-
const
|
|
62616
|
-
if (
|
|
62617
|
-
return
|
|
62665
|
+
const tick22 = $276.get(tickList)[index4];
|
|
62666
|
+
if (tick22 < current)
|
|
62667
|
+
return tick22;
|
|
62618
62668
|
}
|
|
62619
62669
|
return $276.get(tickList)[0] ?? current;
|
|
62620
62670
|
}
|
|
@@ -62835,11 +62885,11 @@ function Slider($$anchor, $$props) {
|
|
|
62835
62885
|
{
|
|
62836
62886
|
var consequent_1 = ($$anchor2) => {
|
|
62837
62887
|
var div_3 = root_2110();
|
|
62838
|
-
$276.each(div_3, 20, () => $276.get(tickMarks), (
|
|
62888
|
+
$276.each(div_3, 20, () => $276.get(tickMarks), (tick22) => tick22, ($$anchor3, tick22) => {
|
|
62839
62889
|
var span_2 = root_1168();
|
|
62840
62890
|
let styles_1;
|
|
62841
62891
|
$276.template_effect(($0) => styles_1 = $276.set_style(span_2, "", styles_1, $0), [
|
|
62842
|
-
() => ({ "--_cinder-slider-tick": `${percentOf(
|
|
62892
|
+
() => ({ "--_cinder-slider-tick": `${percentOf(tick22) ?? ""}%` })
|
|
62843
62893
|
]);
|
|
62844
62894
|
$276.append($$anchor3, span_2);
|
|
62845
62895
|
});
|
|
@@ -64466,7 +64516,7 @@ function Spectrum_chart($$anchor, $$props) {
|
|
|
64466
64516
|
const maxXLabels = 8;
|
|
64467
64517
|
const xLabelStep = $280.derived(() => Math.max(1, Math.ceil($$props.bins.length / maxXLabels)));
|
|
64468
64518
|
const xTickLabels = $280.derived(() => $$props.bins.filter((_, index6) => index6 % $280.get(xLabelStep) === 0).map((bin) => bin.label));
|
|
64469
|
-
const yTickLabels = $280.derived(() => $280.get(yTicks).map((
|
|
64519
|
+
const yTickLabels = $280.derived(() => $280.get(yTicks).map((tick22, index6) => formatNumericValue(tick22, undefined, undefined, { index: index6 })));
|
|
64470
64520
|
const geometry = $280.derived(() => createChartGeometry($280.get(measuredWidth), height(), {
|
|
64471
64521
|
xTickLabels: $280.get(xTickLabels),
|
|
64472
64522
|
yTickLabels: $280.get(yTickLabels),
|
|
@@ -64614,7 +64664,7 @@ function Spectrum_chart($$anchor, $$props) {
|
|
|
64614
64664
|
var consequent_7 = ($$anchor2) => {
|
|
64615
64665
|
var g = root_636();
|
|
64616
64666
|
var node_8 = $280.child(g);
|
|
64617
|
-
$280.each(node_8, 17, () => $280.get(yTicks), $280.index, ($$anchor3,
|
|
64667
|
+
$280.each(node_8, 17, () => $280.get(yTicks), $280.index, ($$anchor3, tick22, index6) => {
|
|
64618
64668
|
var fragment_2 = root_391();
|
|
64619
64669
|
var text_4 = $280.first_child(fragment_2);
|
|
64620
64670
|
$280.set_attribute(text_4, "x", -6);
|
|
@@ -64630,10 +64680,10 @@ function Spectrum_chart($$anchor, $$props) {
|
|
|
64630
64680
|
$280.set_attribute(line, "y2", $310);
|
|
64631
64681
|
$280.set_attribute(line, "stroke", $280.get(resolvedTheme).grid);
|
|
64632
64682
|
}, [
|
|
64633
|
-
() => scaleY($280.get(
|
|
64634
|
-
() => formatNumericValue($280.get(
|
|
64635
|
-
() => scaleY($280.get(
|
|
64636
|
-
() => scaleY($280.get(
|
|
64683
|
+
() => scaleY($280.get(tick22)),
|
|
64684
|
+
() => formatNumericValue($280.get(tick22), undefined, undefined, { index: index6 }),
|
|
64685
|
+
() => scaleY($280.get(tick22)),
|
|
64686
|
+
() => scaleY($280.get(tick22))
|
|
64637
64687
|
]);
|
|
64638
64688
|
$280.append($$anchor3, fragment_2);
|
|
64639
64689
|
});
|
|
@@ -66043,7 +66093,7 @@ import"@lostgradient/cinder/tag-input/styles";
|
|
|
66043
66093
|
// src/components/tag-input/tag-input.svelte
|
|
66044
66094
|
import"svelte/internal/disclose-version";
|
|
66045
66095
|
import * as $288 from "svelte/internal/client";
|
|
66046
|
-
import { flushSync, tick as
|
|
66096
|
+
import { flushSync, tick as tick22, untrack as untrack32 } from "svelte";
|
|
66047
66097
|
var rest_excludes139 = new Set([
|
|
66048
66098
|
"$$slots",
|
|
66049
66099
|
"$$events",
|
|
@@ -66170,12 +66220,12 @@ function Tag_input($$anchor, $$props) {
|
|
|
66170
66220
|
return Array.from($288.get(rootElement)?.querySelectorAll(".cinder-tag-input__remove") ?? []);
|
|
66171
66221
|
}
|
|
66172
66222
|
async function focusChip(index6) {
|
|
66173
|
-
await
|
|
66223
|
+
await tick22();
|
|
66174
66224
|
const chip = getChipElements()[index6];
|
|
66175
66225
|
chip?.focus();
|
|
66176
66226
|
}
|
|
66177
66227
|
async function focusInput() {
|
|
66178
|
-
await
|
|
66228
|
+
await tick22();
|
|
66179
66229
|
$288.get(inputElement)?.focus();
|
|
66180
66230
|
}
|
|
66181
66231
|
function setTags(nextTags) {
|
|
@@ -67625,7 +67675,7 @@ import"@lostgradient/cinder/transfer-list/styles";
|
|
|
67625
67675
|
// src/components/transfer-list/transfer-list.svelte
|
|
67626
67676
|
import"svelte/internal/disclose-version";
|
|
67627
67677
|
import * as $293 from "svelte/internal/client";
|
|
67628
|
-
import { tick as
|
|
67678
|
+
import { tick as tick23 } from "svelte";
|
|
67629
67679
|
import { SvelteSet as SvelteSet3 } from "svelte/reactivity";
|
|
67630
67680
|
var rest_excludes141 = new Set([
|
|
67631
67681
|
"$$slots",
|
|
@@ -67750,7 +67800,7 @@ function Transfer_list($$anchor, $$props) {
|
|
|
67750
67800
|
if (event34.key === " " || event34.key === "Enter") {
|
|
67751
67801
|
event34.preventDefault();
|
|
67752
67802
|
commitSelection(currentId);
|
|
67753
|
-
await
|
|
67803
|
+
await tick23();
|
|
67754
67804
|
}
|
|
67755
67805
|
}
|
|
67756
67806
|
var div = root_396();
|
|
@@ -68859,7 +68909,7 @@ $301.delegate(["click"]);
|
|
|
68859
68909
|
// src/components/tree-item/tree-item.svelte
|
|
68860
68910
|
import"svelte/internal/disclose-version";
|
|
68861
68911
|
import * as $305 from "svelte/internal/client";
|
|
68862
|
-
import { tick as
|
|
68912
|
+
import { tick as tick24, untrack as untrack34 } from "svelte";
|
|
68863
68913
|
|
|
68864
68914
|
// src/components/tree-item/tree-item-async-load.svelte.ts
|
|
68865
68915
|
import * as $302 from "svelte/internal/client";
|
|
@@ -69372,7 +69422,7 @@ function Tree_item($$anchor, $$props) {
|
|
|
69372
69422
|
if (!$305.get(shouldProbeFilterChildren))
|
|
69373
69423
|
return;
|
|
69374
69424
|
const filterValueAtProbeStart = context.filterValue;
|
|
69375
|
-
|
|
69425
|
+
tick24().then(() => {
|
|
69376
69426
|
if (context.filtering && context.filterValue === filterValueAtProbeStart) {
|
|
69377
69427
|
$305.set(probedFilterValue, filterValueAtProbeStart, true);
|
|
69378
69428
|
}
|
|
@@ -69810,7 +69860,7 @@ $305.delegate(["keydown", "click", "pointerdown", "dblclick"]);
|
|
|
69810
69860
|
// src/components/tree/tree.svelte
|
|
69811
69861
|
import"svelte/internal/disclose-version";
|
|
69812
69862
|
import * as $311 from "svelte/internal/client";
|
|
69813
|
-
import { tick as
|
|
69863
|
+
import { tick as tick25, untrack as untrack36 } from "svelte";
|
|
69814
69864
|
import { SvelteSet as SvelteSet4 } from "svelte/reactivity";
|
|
69815
69865
|
|
|
69816
69866
|
// src/_internal/tree-autoscroll.svelte.ts
|
|
@@ -71078,7 +71128,7 @@ function Tree($$anchor, $$props) {
|
|
|
71078
71128
|
if (!id)
|
|
71079
71129
|
return;
|
|
71080
71130
|
virtualizer.scrollToIndex(index6, { align: "auto" });
|
|
71081
|
-
await
|
|
71131
|
+
await tick25();
|
|
71082
71132
|
$311.set(focusedId, id, true);
|
|
71083
71133
|
$311.get(treeElement)?.focus();
|
|
71084
71134
|
}
|
|
@@ -71140,7 +71190,7 @@ function Tree($$anchor, $$props) {
|
|
|
71140
71190
|
const nextIds = withExpandedIds($311.get(expandableBranchIds));
|
|
71141
71191
|
if (nextIds.length !== expandedIds().length) {
|
|
71142
71192
|
expandedIds(nextIds);
|
|
71143
|
-
await
|
|
71193
|
+
await tick25();
|
|
71144
71194
|
announceExpansion("All items expanded.");
|
|
71145
71195
|
}
|
|
71146
71196
|
return;
|
|
@@ -71152,7 +71202,7 @@ function Tree($$anchor, $$props) {
|
|
|
71152
71202
|
break;
|
|
71153
71203
|
expandedIds(nextIds);
|
|
71154
71204
|
changed = true;
|
|
71155
|
-
await
|
|
71205
|
+
await tick25();
|
|
71156
71206
|
}
|
|
71157
71207
|
if (changed)
|
|
71158
71208
|
announceExpansion("All items expanded.");
|
|
@@ -71185,7 +71235,7 @@ function Tree($$anchor, $$props) {
|
|
|
71185
71235
|
const nextIds2 = withExpandedIds(item.ancestorIds);
|
|
71186
71236
|
if (nextIds2.length !== expandedIds().length) {
|
|
71187
71237
|
expandedIds(nextIds2);
|
|
71188
|
-
await
|
|
71238
|
+
await tick25();
|
|
71189
71239
|
}
|
|
71190
71240
|
focusItem(id);
|
|
71191
71241
|
return;
|
|
@@ -71195,7 +71245,7 @@ function Tree($$anchor, $$props) {
|
|
|
71195
71245
|
const nextIds = withExpandedIds(registry.ancestorsOf(id));
|
|
71196
71246
|
if (nextIds.length !== expandedIds().length) {
|
|
71197
71247
|
expandedIds(nextIds);
|
|
71198
|
-
await
|
|
71248
|
+
await tick25();
|
|
71199
71249
|
}
|
|
71200
71250
|
focusItem(id);
|
|
71201
71251
|
}
|
|
@@ -71845,7 +71895,7 @@ import"@lostgradient/cinder/virtual-list/styles";
|
|
|
71845
71895
|
// src/components/virtual-list/virtual-list.svelte
|
|
71846
71896
|
import"svelte/internal/disclose-version";
|
|
71847
71897
|
import * as $312 from "svelte/internal/client";
|
|
71848
|
-
import { tick as
|
|
71898
|
+
import { tick as tick26 } from "svelte";
|
|
71849
71899
|
var rest_excludes148 = new Set([
|
|
71850
71900
|
"$$slots",
|
|
71851
71901
|
"$$events",
|
|
@@ -71918,7 +71968,7 @@ function Virtual_list($$anchor, $$props) {
|
|
|
71918
71968
|
const element19 = $312.get(scrollElement);
|
|
71919
71969
|
if (!stickToBottom() || !shouldStickAfterAppend || !element19)
|
|
71920
71970
|
return;
|
|
71921
|
-
|
|
71971
|
+
tick26().then(() => {
|
|
71922
71972
|
element19.scrollTop = maxScrollOffset(itemCount * $312.get(resolvedItemHeight), $312.get(viewportHeight));
|
|
71923
71973
|
syncViewport(element19);
|
|
71924
71974
|
shouldStickAfterAppend = false;
|
|
@@ -72936,4 +72986,4 @@ export {
|
|
|
72936
72986
|
AccessGateExport as AccessGate
|
|
72937
72987
|
};
|
|
72938
72988
|
|
|
72939
|
-
//# debugId=
|
|
72989
|
+
//# debugId=D2360319446478C264756E2164756E21
|