@lostgradient/cinder 0.11.0 → 0.12.0
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 +10 -0
- package/components.json +1 -1
- package/dist/components/code-block/code-block.css +15 -9
- package/dist/components/code-block/code-block.variables.js +8 -2
- package/dist/components/confirm-dialog/confirm-dialog.css +2 -0
- package/dist/components/confirm-dialog/confirm-dialog.schema.js +10 -1
- package/dist/components/confirm-dialog/confirm-dialog.types.d.ts +7 -0
- package/dist/components/confirm-dialog/index.js +478 -106
- package/dist/components/faceted-filter-bar/faceted-filter-bar.schema.js +5 -1
- package/dist/components/faceted-filter-bar/faceted-filter-bar.types.d.ts +2 -0
- package/dist/components/faceted-filter-bar/index.js +40 -31
- package/dist/components/navigation-bar/index.js +11 -17
- package/dist/components/run-step-timeline/index.js +65 -6
- package/dist/components/run-step-timeline/run-step-timeline.utilities.d.ts +9 -1
- package/dist/index.js +352 -246
- package/dist/server/components/color-field/index.js +2 -2
- package/dist/server/components/confirm-dialog/index.js +7 -2
- package/dist/server/components/faceted-filter-bar/index.js +1 -1
- package/dist/server/components/navigation-bar/index.js +1 -1
- package/dist/server/components/run-step-timeline/index.js +1 -1
- package/dist/server/index.js +7 -7
- package/dist/server/{index.server-5tf22d6e.js → index.server-4wx0qven.js} +3 -3
- package/dist/server/{index.server-894t97kv.js → index.server-7yvpb6z7.js} +4 -4
- package/dist/server/{index.server-btgb3d56.js → index.server-d5a5ccz7.js} +18 -12
- package/dist/server/{index.server-z38bxms8.js → index.server-g5jgq3jp.js} +65 -6
- package/dist/server/{index.server-39ne5cd1.js → index.server-pxq277t5.js} +32 -1
- package/package.json +22 -95
- package/src/components/code-block/code-block.css +15 -9
- package/src/components/code-block/code-block.variables.json +7 -1
- package/src/components/code-block/code-block.variables.ts +7 -1
- package/src/components/confirm-dialog/confirm-dialog.css +2 -0
- package/src/components/confirm-dialog/confirm-dialog.schema.json +8 -0
- package/src/components/confirm-dialog/confirm-dialog.schema.ts +10 -0
- package/src/components/confirm-dialog/confirm-dialog.svelte +31 -3
- package/src/components/confirm-dialog/confirm-dialog.types.ts +7 -0
- package/src/components/faceted-filter-bar/faceted-filter-bar.schema.json +4 -0
- package/src/components/faceted-filter-bar/faceted-filter-bar.schema.ts +4 -0
- package/src/components/faceted-filter-bar/faceted-filter-bar.svelte +13 -11
- package/src/components/faceted-filter-bar/faceted-filter-bar.types.ts +2 -0
- package/src/components/navigation-bar/navigation-bar.svelte +2 -2
- package/src/components/run-step-timeline/run-step-timeline.svelte +4 -4
- package/src/components/run-step-timeline/run-step-timeline.utilities.ts +68 -0
package/dist/index.js
CHANGED
|
@@ -26894,8 +26894,20 @@ var root_189 = $167.from_html(`<p class="cinder-confirm-dialog__description"> </
|
|
|
26894
26894
|
function Confirm_dialog($$anchor, $$props) {
|
|
26895
26895
|
const descriptionId = $167.props_id();
|
|
26896
26896
|
$167.push($$props, true);
|
|
26897
|
+
const typedConfirmationId = `${descriptionId}-typed-confirmation`;
|
|
26897
26898
|
let open = $167.prop($$props, "open", 15, false), cancelLabel = $167.prop($$props, "cancelLabel", 3, "Cancel"), destructive = $167.prop($$props, "destructive", 3, false), triggerRef = $167.prop($$props, "triggerRef", 3, null);
|
|
26898
26899
|
const describedById = $167.derived(() => $$props.description ? descriptionId : undefined);
|
|
26900
|
+
const normalizedTypeToConfirm = $167.derived(() => $$props.typeToConfirm?.trim() || undefined);
|
|
26901
|
+
const normalizedTypeToConfirmLabel = $167.derived(() => $$props.typeToConfirmLabel?.trim() || undefined);
|
|
26902
|
+
let typedConfirmation = $167.state("");
|
|
26903
|
+
let previousOpen = open();
|
|
26904
|
+
const typedConfirmationMatches = $167.derived(() => $167.get(normalizedTypeToConfirm) === undefined || $167.get(typedConfirmation).trim().toLowerCase() === $167.get(normalizedTypeToConfirm).toLowerCase());
|
|
26905
|
+
$167.user_effect(() => {
|
|
26906
|
+
if (open() === previousOpen)
|
|
26907
|
+
return;
|
|
26908
|
+
previousOpen = open();
|
|
26909
|
+
$167.set(typedConfirmation, "");
|
|
26910
|
+
});
|
|
26899
26911
|
function handleCancel() {
|
|
26900
26912
|
open(false);
|
|
26901
26913
|
$$props.oncancel?.();
|
|
@@ -26923,10 +26935,14 @@ function Confirm_dialog($$anchor, $$props) {
|
|
|
26923
26935
|
var node_1 = $167.sibling(node, 2);
|
|
26924
26936
|
{
|
|
26925
26937
|
let $02 = $167.derived(() => destructive() ? "danger" : "primary");
|
|
26938
|
+
let $1 = $167.derived(() => !$167.get(typedConfirmationMatches));
|
|
26926
26939
|
Button(node_1, {
|
|
26927
26940
|
get variant() {
|
|
26928
26941
|
return $167.get($02);
|
|
26929
26942
|
},
|
|
26943
|
+
get disabled() {
|
|
26944
|
+
return $167.get($1);
|
|
26945
|
+
},
|
|
26930
26946
|
onclick: handleConfirm,
|
|
26931
26947
|
children: ($$anchor3, $$slotProps) => {
|
|
26932
26948
|
$167.next();
|
|
@@ -26959,7 +26975,7 @@ function Confirm_dialog($$anchor, $$props) {
|
|
|
26959
26975
|
},
|
|
26960
26976
|
footer,
|
|
26961
26977
|
children: ($$anchor2, $$slotProps) => {
|
|
26962
|
-
var fragment_4 =
|
|
26978
|
+
var fragment_4 = root87();
|
|
26963
26979
|
var node_2 = $167.first_child(fragment_4);
|
|
26964
26980
|
{
|
|
26965
26981
|
var consequent = ($$anchor3) => {
|
|
@@ -26977,6 +26993,34 @@ function Confirm_dialog($$anchor, $$props) {
|
|
|
26977
26993
|
$$render(consequent);
|
|
26978
26994
|
});
|
|
26979
26995
|
}
|
|
26996
|
+
var node_3 = $167.sibling(node_2, 2);
|
|
26997
|
+
{
|
|
26998
|
+
var consequent_1 = ($$anchor3) => {
|
|
26999
|
+
{
|
|
27000
|
+
let $02 = $167.derived(() => $167.get(normalizedTypeToConfirmLabel) ?? `Type "${$167.get(normalizedTypeToConfirm)}" to confirm`);
|
|
27001
|
+
Input($$anchor3, {
|
|
27002
|
+
get id() {
|
|
27003
|
+
return typedConfirmationId;
|
|
27004
|
+
},
|
|
27005
|
+
class: "cinder-confirm-dialog__typed-confirmation",
|
|
27006
|
+
get label() {
|
|
27007
|
+
return $167.get($02);
|
|
27008
|
+
},
|
|
27009
|
+
autocomplete: "off",
|
|
27010
|
+
get value() {
|
|
27011
|
+
return $167.get(typedConfirmation);
|
|
27012
|
+
},
|
|
27013
|
+
set value($$value) {
|
|
27014
|
+
$167.set(typedConfirmation, $$value, true);
|
|
27015
|
+
}
|
|
27016
|
+
});
|
|
27017
|
+
}
|
|
27018
|
+
};
|
|
27019
|
+
$167.if(node_3, ($$render) => {
|
|
27020
|
+
if ($167.get(normalizedTypeToConfirm) !== undefined)
|
|
27021
|
+
$$render(consequent_1);
|
|
27022
|
+
});
|
|
27023
|
+
}
|
|
26980
27024
|
$167.append($$anchor2, fragment_4);
|
|
26981
27025
|
},
|
|
26982
27026
|
$$slots: { footer: true, default: true }
|
|
@@ -33670,13 +33714,13 @@ class SegmentedControlController {
|
|
|
33670
33714
|
if (!segment || segment.disabled)
|
|
33671
33715
|
return;
|
|
33672
33716
|
if (this.#options.selectionMode() === "multiple") {
|
|
33673
|
-
const
|
|
33674
|
-
if (!
|
|
33717
|
+
const set70 = this.#options.getValue();
|
|
33718
|
+
if (!set70 || typeof set70 === "string")
|
|
33675
33719
|
return;
|
|
33676
|
-
if (
|
|
33677
|
-
|
|
33720
|
+
if (set70.has(value))
|
|
33721
|
+
set70.delete(value);
|
|
33678
33722
|
else
|
|
33679
|
-
|
|
33723
|
+
set70.add(value);
|
|
33680
33724
|
return;
|
|
33681
33725
|
}
|
|
33682
33726
|
const current = this.#options.getValue();
|
|
@@ -35410,10 +35454,10 @@ function Event_timeline($$anchor, $$props) {
|
|
|
35410
35454
|
function clampPercent(value) {
|
|
35411
35455
|
return Math.max(0, Math.min(100, value));
|
|
35412
35456
|
}
|
|
35413
|
-
function stateLabelForItem(
|
|
35414
|
-
if (
|
|
35457
|
+
function stateLabelForItem(state73) {
|
|
35458
|
+
if (state73 === "done")
|
|
35415
35459
|
return "Done";
|
|
35416
|
-
if (
|
|
35460
|
+
if (state73 === "failed")
|
|
35417
35461
|
return "Failed";
|
|
35418
35462
|
return "Upcoming";
|
|
35419
35463
|
}
|
|
@@ -35454,8 +35498,8 @@ function Event_timeline($$anchor, $$props) {
|
|
|
35454
35498
|
const lane = availableLane === -1 ? lanePositions.length : availableLane;
|
|
35455
35499
|
lanePositions[lane] = position;
|
|
35456
35500
|
const isoDatetime = new Date(timestamp).toISOString();
|
|
35457
|
-
const
|
|
35458
|
-
const stateLabel = stateLabelForItem(
|
|
35501
|
+
const state73 = item.state ?? "upcoming";
|
|
35502
|
+
const stateLabel = stateLabelForItem(state73);
|
|
35459
35503
|
const sublabel = item.sublabel?.trim() || undefined;
|
|
35460
35504
|
const timeLabel = sublabel ?? isoDatetime;
|
|
35461
35505
|
return {
|
|
@@ -35466,7 +35510,7 @@ function Event_timeline($$anchor, $$props) {
|
|
|
35466
35510
|
lane,
|
|
35467
35511
|
position,
|
|
35468
35512
|
isoDatetime,
|
|
35469
|
-
state:
|
|
35513
|
+
state: state73,
|
|
35470
35514
|
stateLabel,
|
|
35471
35515
|
sublabel
|
|
35472
35516
|
};
|
|
@@ -36298,6 +36342,7 @@ var rest_excludes83 = new Set([
|
|
|
36298
36342
|
"$$legacy",
|
|
36299
36343
|
"aria-label",
|
|
36300
36344
|
"searchQuery",
|
|
36345
|
+
"showSearch",
|
|
36301
36346
|
"searchPlaceholder",
|
|
36302
36347
|
"searchAriaLabel",
|
|
36303
36348
|
"facets",
|
|
@@ -36317,7 +36362,7 @@ var root_436 = $210.from_html(`<div><div class="cinder-faceted-filter-bar__contr
|
|
|
36317
36362
|
function Faceted_filter_bar($$anchor, $$props) {
|
|
36318
36363
|
const generatedId = $210.props_id();
|
|
36319
36364
|
$210.push($$props, true);
|
|
36320
|
-
let ariaLabel = $210.prop($$props, "aria-label", 3, "Filters"), searchPlaceholder = $210.prop($$props, "searchPlaceholder", 3, "Search…"), searchAriaLabel = $210.prop($$props, "searchAriaLabel", 3, "Search"), facets = $210.prop($$props, "facets", 19, () => []), appliedFilters = $210.prop($$props, "appliedFilters", 19, () => []), disabled = $210.prop($$props, "disabled", 3, false), rest = $210.rest_props($$props, rest_excludes83);
|
|
36365
|
+
let ariaLabel = $210.prop($$props, "aria-label", 3, "Filters"), showSearch = $210.prop($$props, "showSearch", 3, true), searchPlaceholder = $210.prop($$props, "searchPlaceholder", 3, "Search…"), searchAriaLabel = $210.prop($$props, "searchAriaLabel", 3, "Search"), facets = $210.prop($$props, "facets", 19, () => []), appliedFilters = $210.prop($$props, "appliedFilters", 19, () => []), disabled = $210.prop($$props, "disabled", 3, false), rest = $210.rest_props($$props, rest_excludes83);
|
|
36321
36366
|
const searchId = $210.derived(() => `${generatedId}-search`);
|
|
36322
36367
|
let rootElement = $210.state(undefined);
|
|
36323
36368
|
let internalSearchQuery = $210.state("");
|
|
@@ -36332,7 +36377,7 @@ function Faceted_filter_bar($$anchor, $$props) {
|
|
|
36332
36377
|
return value;
|
|
36333
36378
|
return facet.options.find((option) => option.value === value)?.label ?? value;
|
|
36334
36379
|
}
|
|
36335
|
-
const hasAppliedFilters = $210.derived(() => appliedFilters().length > 0 || $210.get(currentSearchQuery).length > 0);
|
|
36380
|
+
const hasAppliedFilters = $210.derived(() => appliedFilters().length > 0 || showSearch() && $210.get(currentSearchQuery).length > 0);
|
|
36336
36381
|
const totalActiveCount = $210.derived(() => appliedFilters().length);
|
|
36337
36382
|
const summaryMessage = $210.derived(() => {
|
|
36338
36383
|
if ($210.get(totalActiveCount) === 0)
|
|
@@ -36376,31 +36421,39 @@ function Faceted_filter_bar($$anchor, $$props) {
|
|
|
36376
36421
|
}), [() => classNames("cinder-faceted-filter-bar", $$props.class)]);
|
|
36377
36422
|
var div_1 = $210.child(div);
|
|
36378
36423
|
var node = $210.child(div_1);
|
|
36379
|
-
|
|
36380
|
-
|
|
36381
|
-
|
|
36382
|
-
|
|
36383
|
-
|
|
36384
|
-
|
|
36385
|
-
|
|
36386
|
-
|
|
36387
|
-
|
|
36388
|
-
|
|
36389
|
-
|
|
36390
|
-
|
|
36391
|
-
|
|
36392
|
-
|
|
36393
|
-
|
|
36394
|
-
|
|
36395
|
-
|
|
36396
|
-
|
|
36397
|
-
|
|
36424
|
+
{
|
|
36425
|
+
var consequent = ($$anchor2) => {
|
|
36426
|
+
Search_field($$anchor2, {
|
|
36427
|
+
get id() {
|
|
36428
|
+
return $210.get(searchId);
|
|
36429
|
+
},
|
|
36430
|
+
class: "cinder-faceted-filter-bar__search",
|
|
36431
|
+
get value() {
|
|
36432
|
+
return $210.get(currentSearchQuery);
|
|
36433
|
+
},
|
|
36434
|
+
get placeholder() {
|
|
36435
|
+
return searchPlaceholder();
|
|
36436
|
+
},
|
|
36437
|
+
get "aria-label"() {
|
|
36438
|
+
return searchAriaLabel();
|
|
36439
|
+
},
|
|
36440
|
+
get disabled() {
|
|
36441
|
+
return disabled();
|
|
36442
|
+
},
|
|
36443
|
+
oninput: handleSearchInput
|
|
36444
|
+
});
|
|
36445
|
+
};
|
|
36446
|
+
$210.if(node, ($$render) => {
|
|
36447
|
+
if (showSearch())
|
|
36448
|
+
$$render(consequent);
|
|
36449
|
+
});
|
|
36450
|
+
}
|
|
36398
36451
|
var node_1 = $210.sibling(node, 2);
|
|
36399
36452
|
$210.each(node_1, 17, facets, (facet) => facet.key, ($$anchor2, facet) => {
|
|
36400
|
-
var
|
|
36401
|
-
var node_2 = $210.first_child(
|
|
36453
|
+
var fragment_1 = $210.comment();
|
|
36454
|
+
var node_2 = $210.first_child(fragment_1);
|
|
36402
36455
|
{
|
|
36403
|
-
var
|
|
36456
|
+
var consequent_1 = ($$anchor3) => {
|
|
36404
36457
|
const selectFacet = $210.derived(() => $210.get(facet));
|
|
36405
36458
|
var div_2 = root_1120();
|
|
36406
36459
|
var label = $210.child(div_2);
|
|
@@ -36448,7 +36501,7 @@ function Faceted_filter_bar($$anchor, $$props) {
|
|
|
36448
36501
|
});
|
|
36449
36502
|
$210.append($$anchor3, div_2);
|
|
36450
36503
|
};
|
|
36451
|
-
var
|
|
36504
|
+
var consequent_2 = ($$anchor3) => {
|
|
36452
36505
|
var div_3 = root_274();
|
|
36453
36506
|
var node_4 = $210.child(div_3);
|
|
36454
36507
|
{
|
|
@@ -36465,17 +36518,17 @@ function Faceted_filter_bar($$anchor, $$props) {
|
|
|
36465
36518
|
};
|
|
36466
36519
|
$210.if(node_2, ($$render) => {
|
|
36467
36520
|
if ($210.get(facet).type === "select")
|
|
36468
|
-
$$render(
|
|
36521
|
+
$$render(consequent_1);
|
|
36469
36522
|
else if ($210.get(facet).type === "custom")
|
|
36470
|
-
$$render(
|
|
36523
|
+
$$render(consequent_2, 1);
|
|
36471
36524
|
});
|
|
36472
36525
|
}
|
|
36473
|
-
$210.append($$anchor2,
|
|
36526
|
+
$210.append($$anchor2, fragment_1);
|
|
36474
36527
|
});
|
|
36475
36528
|
$210.reset(div_1);
|
|
36476
36529
|
var node_5 = $210.sibling(div_1, 2);
|
|
36477
36530
|
{
|
|
36478
|
-
var
|
|
36531
|
+
var consequent_3 = ($$anchor2) => {
|
|
36479
36532
|
var div_4 = root_356();
|
|
36480
36533
|
var node_6 = $210.child(div_4);
|
|
36481
36534
|
$210.each(node_6, 17, appliedFilters, (filter) => filter.key, ($$anchor3, filter) => {
|
|
@@ -36520,7 +36573,7 @@ function Faceted_filter_bar($$anchor, $$props) {
|
|
|
36520
36573
|
};
|
|
36521
36574
|
$210.if(node_5, ($$render) => {
|
|
36522
36575
|
if ($210.get(hasAppliedFilters))
|
|
36523
|
-
$$render(
|
|
36576
|
+
$$render(consequent_3);
|
|
36524
36577
|
});
|
|
36525
36578
|
}
|
|
36526
36579
|
var node_8 = $210.sibling(node_5, 2);
|
|
@@ -39257,12 +39310,12 @@ function Property_list($$anchor, $$props) {
|
|
|
39257
39310
|
function toggleRequired(key2) {
|
|
39258
39311
|
if (readonly())
|
|
39259
39312
|
return;
|
|
39260
|
-
const
|
|
39261
|
-
if (
|
|
39262
|
-
|
|
39313
|
+
const set84 = new Set($$props.required);
|
|
39314
|
+
if (set84.has(key2))
|
|
39315
|
+
set84.delete(key2);
|
|
39263
39316
|
else
|
|
39264
|
-
|
|
39265
|
-
$$props.onchange($$props.properties, [...
|
|
39317
|
+
set84.add(key2);
|
|
39318
|
+
$$props.onchange($$props.properties, [...set84]);
|
|
39266
39319
|
}
|
|
39267
39320
|
function setPropertySchema(key2, schema) {
|
|
39268
39321
|
if (readonly())
|
|
@@ -49043,14 +49096,11 @@ function Navigation_bar($$anchor, $$props) {
|
|
|
49043
49096
|
var consequent = ($$anchor2) => {
|
|
49044
49097
|
var div = root166();
|
|
49045
49098
|
var node_1 = $264.child(div);
|
|
49046
|
-
{
|
|
49047
|
-
|
|
49048
|
-
|
|
49049
|
-
|
|
49050
|
-
|
|
49051
|
-
}));
|
|
49052
|
-
$264.snippet(node_1, () => $$props.menuToggle, () => $264.get($0));
|
|
49053
|
-
}
|
|
49099
|
+
$264.snippet(node_1, () => $$props.menuToggle, () => ({
|
|
49100
|
+
"aria-expanded": mobileMenuOpen() ? "true" : "false",
|
|
49101
|
+
"aria-controls": regionId,
|
|
49102
|
+
onclick: handleToggle
|
|
49103
|
+
}));
|
|
49054
49104
|
$264.reset(div);
|
|
49055
49105
|
$264.append($$anchor2, div);
|
|
49056
49106
|
};
|
|
@@ -49078,14 +49128,11 @@ function Navigation_bar($$anchor, $$props) {
|
|
|
49078
49128
|
var consequent_2 = ($$anchor2) => {
|
|
49079
49129
|
var div_2 = root166();
|
|
49080
49130
|
var node_5 = $264.child(div_2);
|
|
49081
|
-
{
|
|
49082
|
-
|
|
49083
|
-
|
|
49084
|
-
|
|
49085
|
-
|
|
49086
|
-
}));
|
|
49087
|
-
$264.snippet(node_5, () => $$props.menuToggle, () => $264.get($0));
|
|
49088
|
-
}
|
|
49131
|
+
$264.snippet(node_5, () => $$props.menuToggle, () => ({
|
|
49132
|
+
"aria-expanded": mobileMenuOpen() ? "true" : "false",
|
|
49133
|
+
"aria-controls": regionId,
|
|
49134
|
+
onclick: handleToggle
|
|
49135
|
+
}));
|
|
49089
49136
|
$264.reset(div_2);
|
|
49090
49137
|
$264.append($$anchor2, div_2);
|
|
49091
49138
|
};
|
|
@@ -50422,11 +50469,11 @@ function Permission_matrix($$anchor, $$props) {
|
|
|
50422
50469
|
"not-applicable": "not applicable"
|
|
50423
50470
|
};
|
|
50424
50471
|
const mergedStateLabels = $272.derived(() => ({ ...defaultStateLabels, ...$$props.stateLabels ?? {} }));
|
|
50425
|
-
function stateLabel(
|
|
50426
|
-
return $272.get(mergedStateLabels)[
|
|
50472
|
+
function stateLabel(state104) {
|
|
50473
|
+
return $272.get(mergedStateLabels)[state104];
|
|
50427
50474
|
}
|
|
50428
|
-
function cellLabel(row, column,
|
|
50429
|
-
return `${row.label} × ${column.label}: ${stateLabel(
|
|
50475
|
+
function cellLabel(row, column, state104) {
|
|
50476
|
+
return `${row.label} × ${column.label}: ${stateLabel(state104)}`;
|
|
50430
50477
|
}
|
|
50431
50478
|
var figure = root_823();
|
|
50432
50479
|
$272.attribute_effect(figure, ($0) => ({
|
|
@@ -50536,9 +50583,9 @@ function Permission_matrix($$anchor, $$props) {
|
|
|
50536
50583
|
$272.reset(th_2);
|
|
50537
50584
|
var node_7 = $272.sibling(th_2);
|
|
50538
50585
|
$272.each(node_7, 17, () => $$props.columns, (column) => column.id, ($$anchor4, column) => {
|
|
50539
|
-
const
|
|
50540
|
-
const accessibleLabel = $272.derived(() => cellLabel($272.get(row), $272.get(column), $272.get(
|
|
50541
|
-
const visibleLabel = $272.derived(() => stateLabel($272.get(
|
|
50586
|
+
const state104 = $272.derived(() => $$props.getCellState($272.get(row), $272.get(column)));
|
|
50587
|
+
const accessibleLabel = $272.derived(() => cellLabel($272.get(row), $272.get(column), $272.get(state104)));
|
|
50588
|
+
const visibleLabel = $272.derived(() => stateLabel($272.get(state104)));
|
|
50542
50589
|
var td = root_548();
|
|
50543
50590
|
var node_8 = $272.child(td);
|
|
50544
50591
|
{
|
|
@@ -50557,9 +50604,9 @@ function Permission_matrix($$anchor, $$props) {
|
|
|
50557
50604
|
Minus($$anchor6, { size: 16, strokeWidth: 2.25 });
|
|
50558
50605
|
};
|
|
50559
50606
|
$272.if(node_9, ($$render) => {
|
|
50560
|
-
if ($272.get(
|
|
50607
|
+
if ($272.get(state104) === "granted")
|
|
50561
50608
|
$$render(consequent_5);
|
|
50562
|
-
else if ($272.get(
|
|
50609
|
+
else if ($272.get(state104) === "denied")
|
|
50563
50610
|
$$render(consequent_6, 1);
|
|
50564
50611
|
else
|
|
50565
50612
|
$$render(alternate_2, -1);
|
|
@@ -50574,10 +50621,10 @@ function Permission_matrix($$anchor, $$props) {
|
|
|
50574
50621
|
$272.set_attribute(button, "aria-label", $272.get(accessibleLabel));
|
|
50575
50622
|
$272.set_attribute(button, "data-cinder-row", $272.get(row).id);
|
|
50576
50623
|
$272.set_attribute(button, "data-cinder-column", $272.get(column).id);
|
|
50577
|
-
$272.set_attribute(button, "data-cinder-state", $272.get(
|
|
50624
|
+
$272.set_attribute(button, "data-cinder-state", $272.get(state104));
|
|
50578
50625
|
$272.set_text(text_8, $272.get(visibleLabel));
|
|
50579
50626
|
});
|
|
50580
|
-
$272.delegated("click", button, () => $$props.onCellClick($272.get(row), $272.get(column), $272.get(
|
|
50627
|
+
$272.delegated("click", button, () => $$props.onCellClick($272.get(row), $272.get(column), $272.get(state104)));
|
|
50581
50628
|
$272.append($$anchor5, button);
|
|
50582
50629
|
};
|
|
50583
50630
|
var alternate_4 = ($$anchor5) => {
|
|
@@ -50595,9 +50642,9 @@ function Permission_matrix($$anchor, $$props) {
|
|
|
50595
50642
|
Minus($$anchor6, { size: 16, strokeWidth: 2.25 });
|
|
50596
50643
|
};
|
|
50597
50644
|
$272.if(node_10, ($$render) => {
|
|
50598
|
-
if ($272.get(
|
|
50645
|
+
if ($272.get(state104) === "granted")
|
|
50599
50646
|
$$render(consequent_8);
|
|
50600
|
-
else if ($272.get(
|
|
50647
|
+
else if ($272.get(state104) === "denied")
|
|
50601
50648
|
$$render(consequent_9, 1);
|
|
50602
50649
|
else
|
|
50603
50650
|
$$render(alternate_3, -1);
|
|
@@ -50611,7 +50658,7 @@ function Permission_matrix($$anchor, $$props) {
|
|
|
50611
50658
|
$272.template_effect(() => {
|
|
50612
50659
|
$272.set_attribute(span_2, "data-cinder-row", $272.get(row).id);
|
|
50613
50660
|
$272.set_attribute(span_2, "data-cinder-column", $272.get(column).id);
|
|
50614
|
-
$272.set_attribute(span_2, "data-cinder-state", $272.get(
|
|
50661
|
+
$272.set_attribute(span_2, "data-cinder-state", $272.get(state104));
|
|
50615
50662
|
$272.set_text(text_9, $272.get(visibleLabel));
|
|
50616
50663
|
});
|
|
50617
50664
|
$272.append($$anchor5, span_2);
|
|
@@ -50625,7 +50672,7 @@ function Permission_matrix($$anchor, $$props) {
|
|
|
50625
50672
|
}
|
|
50626
50673
|
$272.reset(td);
|
|
50627
50674
|
$272.template_effect(() => {
|
|
50628
|
-
$272.set_attribute(td, "data-cinder-state", $272.get(
|
|
50675
|
+
$272.set_attribute(td, "data-cinder-state", $272.get(state104));
|
|
50629
50676
|
$272.set_attribute(td, "aria-label", $272.get(accessibleLabel));
|
|
50630
50677
|
});
|
|
50631
50678
|
$272.append($$anchor4, td);
|
|
@@ -53123,11 +53170,11 @@ function populateTemplateWithDigits(template, position, digits) {
|
|
|
53123
53170
|
}
|
|
53124
53171
|
|
|
53125
53172
|
// ../../node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js
|
|
53126
|
-
function formatCompleteNumber(
|
|
53173
|
+
function formatCompleteNumber(state104, format, _ref) {
|
|
53127
53174
|
var { metadata, shouldTryNationalPrefixFormattingRule, getSeparatorAfterNationalPrefix } = _ref;
|
|
53128
53175
|
var matcher = new RegExp("^(?:".concat(format.pattern(), ")$"));
|
|
53129
|
-
if (matcher.test(
|
|
53130
|
-
return formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(
|
|
53176
|
+
if (matcher.test(state104.nationalSignificantNumber)) {
|
|
53177
|
+
return formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state104, format, {
|
|
53131
53178
|
metadata,
|
|
53132
53179
|
shouldTryNationalPrefixFormattingRule,
|
|
53133
53180
|
getSeparatorAfterNationalPrefix
|
|
@@ -53137,11 +53184,11 @@ function formatCompleteNumber(state103, format, _ref) {
|
|
|
53137
53184
|
function canFormatCompleteNumber(nationalSignificantNumber, country, metadata) {
|
|
53138
53185
|
return checkNumberLength(nationalSignificantNumber, country, metadata) === "IS_POSSIBLE";
|
|
53139
53186
|
}
|
|
53140
|
-
function formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(
|
|
53187
|
+
function formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state104, format, _ref2) {
|
|
53141
53188
|
var { metadata, shouldTryNationalPrefixFormattingRule, getSeparatorAfterNationalPrefix } = _ref2;
|
|
53142
|
-
var { nationalSignificantNumber, international, nationalPrefix, carrierCode } =
|
|
53189
|
+
var { nationalSignificantNumber, international, nationalPrefix, carrierCode } = state104;
|
|
53143
53190
|
if (shouldTryNationalPrefixFormattingRule(format)) {
|
|
53144
|
-
var formattedNumber = formatNationalNumber2(
|
|
53191
|
+
var formattedNumber = formatNationalNumber2(state104, format, {
|
|
53145
53192
|
useNationalPrefixFormattingRule: true,
|
|
53146
53193
|
getSeparatorAfterNationalPrefix,
|
|
53147
53194
|
metadata
|
|
@@ -53150,33 +53197,33 @@ function formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state103
|
|
|
53150
53197
|
return formattedNumber;
|
|
53151
53198
|
}
|
|
53152
53199
|
}
|
|
53153
|
-
return formatNationalNumber2(
|
|
53200
|
+
return formatNationalNumber2(state104, format, {
|
|
53154
53201
|
useNationalPrefixFormattingRule: false,
|
|
53155
53202
|
getSeparatorAfterNationalPrefix,
|
|
53156
53203
|
metadata
|
|
53157
53204
|
});
|
|
53158
53205
|
}
|
|
53159
|
-
function formatNationalNumber2(
|
|
53206
|
+
function formatNationalNumber2(state104, format, _ref3) {
|
|
53160
53207
|
var { metadata, useNationalPrefixFormattingRule, getSeparatorAfterNationalPrefix } = _ref3;
|
|
53161
|
-
var formattedNationalNumber = formatNationalNumberUsingFormat(
|
|
53162
|
-
carrierCode:
|
|
53163
|
-
useInternationalFormat:
|
|
53208
|
+
var formattedNationalNumber = formatNationalNumberUsingFormat(state104.nationalSignificantNumber, format, {
|
|
53209
|
+
carrierCode: state104.carrierCode,
|
|
53210
|
+
useInternationalFormat: state104.international,
|
|
53164
53211
|
withNationalPrefix: useNationalPrefixFormattingRule,
|
|
53165
53212
|
metadata
|
|
53166
53213
|
});
|
|
53167
53214
|
if (!useNationalPrefixFormattingRule) {
|
|
53168
|
-
if (
|
|
53169
|
-
formattedNationalNumber =
|
|
53170
|
-
} else if (
|
|
53171
|
-
formattedNationalNumber =
|
|
53215
|
+
if (state104.nationalPrefix) {
|
|
53216
|
+
formattedNationalNumber = state104.nationalPrefix + getSeparatorAfterNationalPrefix(format) + formattedNationalNumber;
|
|
53217
|
+
} else if (state104.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix) {
|
|
53218
|
+
formattedNationalNumber = state104.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + formattedNationalNumber;
|
|
53172
53219
|
}
|
|
53173
53220
|
}
|
|
53174
|
-
if (isValidFormattedNationalNumber(formattedNationalNumber,
|
|
53221
|
+
if (isValidFormattedNationalNumber(formattedNationalNumber, state104)) {
|
|
53175
53222
|
return formattedNationalNumber;
|
|
53176
53223
|
}
|
|
53177
53224
|
}
|
|
53178
|
-
function isValidFormattedNationalNumber(formattedNationalNumber,
|
|
53179
|
-
return parseDigits(formattedNationalNumber) ===
|
|
53225
|
+
function isValidFormattedNationalNumber(formattedNationalNumber, state104) {
|
|
53226
|
+
return parseDigits(formattedNationalNumber) === state104.getNationalDigits();
|
|
53180
53227
|
}
|
|
53181
53228
|
|
|
53182
53229
|
// ../../node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js
|
|
@@ -53686,7 +53733,7 @@ var NON_ALTERING_FORMAT_REG_EXP = new RegExp("[" + VALID_PUNCTUATION + "]*" + "\
|
|
|
53686
53733
|
var MIN_LEADING_DIGITS_LENGTH = 3;
|
|
53687
53734
|
var AsYouTypeFormatter = /* @__PURE__ */ function() {
|
|
53688
53735
|
function AsYouTypeFormatter2(_ref) {
|
|
53689
|
-
var { state:
|
|
53736
|
+
var { state: state104, metadata } = _ref;
|
|
53690
53737
|
_classCallCheck7(this, AsYouTypeFormatter2);
|
|
53691
53738
|
this.metadata = metadata;
|
|
53692
53739
|
this.resetFormat();
|
|
@@ -53702,13 +53749,13 @@ var AsYouTypeFormatter = /* @__PURE__ */ function() {
|
|
|
53702
53749
|
}
|
|
53703
53750
|
}, {
|
|
53704
53751
|
key: "reset",
|
|
53705
|
-
value: function reset175(numberingPlan,
|
|
53752
|
+
value: function reset175(numberingPlan, state104) {
|
|
53706
53753
|
this.resetFormat();
|
|
53707
53754
|
if (numberingPlan) {
|
|
53708
53755
|
this.isNANP = numberingPlan.callingCode() === "1";
|
|
53709
53756
|
this.matchingFormats = numberingPlan.formats();
|
|
53710
|
-
if (
|
|
53711
|
-
this.narrowDownMatchingFormats(
|
|
53757
|
+
if (state104.nationalSignificantNumber) {
|
|
53758
|
+
this.narrowDownMatchingFormats(state104);
|
|
53712
53759
|
}
|
|
53713
53760
|
} else {
|
|
53714
53761
|
this.isNANP = undefined;
|
|
@@ -53717,17 +53764,17 @@ var AsYouTypeFormatter = /* @__PURE__ */ function() {
|
|
|
53717
53764
|
}
|
|
53718
53765
|
}, {
|
|
53719
53766
|
key: "format",
|
|
53720
|
-
value: function format(nextDigits,
|
|
53767
|
+
value: function format(nextDigits, state104) {
|
|
53721
53768
|
var _this = this;
|
|
53722
|
-
if (canFormatCompleteNumber(
|
|
53769
|
+
if (canFormatCompleteNumber(state104.nationalSignificantNumber, state104.country, this.metadata)) {
|
|
53723
53770
|
for (var _iterator = _createForOfIteratorHelperLoose8(this.matchingFormats), _step;!(_step = _iterator()).done; ) {
|
|
53724
53771
|
var _format = _step.value;
|
|
53725
|
-
var formattedCompleteNumber = formatCompleteNumber(
|
|
53772
|
+
var formattedCompleteNumber = formatCompleteNumber(state104, _format, {
|
|
53726
53773
|
metadata: this.metadata,
|
|
53727
53774
|
shouldTryNationalPrefixFormattingRule: function shouldTryNationalPrefixFormattingRule(format2) {
|
|
53728
53775
|
return _this.shouldTryNationalPrefixFormattingRule(format2, {
|
|
53729
|
-
international:
|
|
53730
|
-
nationalPrefix:
|
|
53776
|
+
international: state104.international,
|
|
53777
|
+
nationalPrefix: state104.nationalPrefix
|
|
53731
53778
|
});
|
|
53732
53779
|
},
|
|
53733
53780
|
getSeparatorAfterNationalPrefix: function getSeparatorAfterNationalPrefix(format2) {
|
|
@@ -53737,25 +53784,25 @@ var AsYouTypeFormatter = /* @__PURE__ */ function() {
|
|
|
53737
53784
|
if (formattedCompleteNumber) {
|
|
53738
53785
|
this.resetFormat();
|
|
53739
53786
|
this.chosenFormat = _format;
|
|
53740
|
-
this.setNationalNumberTemplate(formattedCompleteNumber.replace(/\d/g, DIGIT_PLACEHOLDER),
|
|
53787
|
+
this.setNationalNumberTemplate(formattedCompleteNumber.replace(/\d/g, DIGIT_PLACEHOLDER), state104);
|
|
53741
53788
|
this.populatedNationalNumberTemplate = formattedCompleteNumber;
|
|
53742
53789
|
this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(DIGIT_PLACEHOLDER);
|
|
53743
53790
|
return formattedCompleteNumber;
|
|
53744
53791
|
}
|
|
53745
53792
|
}
|
|
53746
53793
|
}
|
|
53747
|
-
return this.formatNationalNumberWithNextDigits(nextDigits,
|
|
53794
|
+
return this.formatNationalNumberWithNextDigits(nextDigits, state104);
|
|
53748
53795
|
}
|
|
53749
53796
|
}, {
|
|
53750
53797
|
key: "formatNationalNumberWithNextDigits",
|
|
53751
|
-
value: function formatNationalNumberWithNextDigits(nextDigits,
|
|
53798
|
+
value: function formatNationalNumberWithNextDigits(nextDigits, state104) {
|
|
53752
53799
|
var previouslyChosenFormat = this.chosenFormat;
|
|
53753
|
-
var newlyChosenFormat = this.chooseFormat(
|
|
53800
|
+
var newlyChosenFormat = this.chooseFormat(state104);
|
|
53754
53801
|
if (newlyChosenFormat) {
|
|
53755
53802
|
if (newlyChosenFormat === previouslyChosenFormat) {
|
|
53756
53803
|
return this.formatNextNationalNumberDigits(nextDigits);
|
|
53757
53804
|
} else {
|
|
53758
|
-
return this.formatNextNationalNumberDigits(
|
|
53805
|
+
return this.formatNextNationalNumberDigits(state104.getNationalDigits());
|
|
53759
53806
|
}
|
|
53760
53807
|
}
|
|
53761
53808
|
}
|
|
@@ -53815,17 +53862,17 @@ var AsYouTypeFormatter = /* @__PURE__ */ function() {
|
|
|
53815
53862
|
}
|
|
53816
53863
|
}, {
|
|
53817
53864
|
key: "chooseFormat",
|
|
53818
|
-
value: function chooseFormat(
|
|
53865
|
+
value: function chooseFormat(state104) {
|
|
53819
53866
|
var _this3 = this;
|
|
53820
53867
|
var _loop = function _loop2() {
|
|
53821
53868
|
var format = _step2.value;
|
|
53822
53869
|
if (_this3.chosenFormat === format) {
|
|
53823
53870
|
return 0;
|
|
53824
53871
|
}
|
|
53825
|
-
if (!NON_ALTERING_FORMAT_REG_EXP.test(_this3.getFormatFormat(format,
|
|
53872
|
+
if (!NON_ALTERING_FORMAT_REG_EXP.test(_this3.getFormatFormat(format, state104.international))) {
|
|
53826
53873
|
return 1;
|
|
53827
53874
|
}
|
|
53828
|
-
if (!_this3.createTemplateForFormat(format,
|
|
53875
|
+
if (!_this3.createTemplateForFormat(format, state104)) {
|
|
53829
53876
|
_this3.matchingFormats = _this3.matchingFormats.filter(function(_) {
|
|
53830
53877
|
return _ !== format;
|
|
53831
53878
|
});
|
|
@@ -53848,13 +53895,13 @@ var AsYouTypeFormatter = /* @__PURE__ */ function() {
|
|
|
53848
53895
|
}
|
|
53849
53896
|
}, {
|
|
53850
53897
|
key: "createTemplateForFormat",
|
|
53851
|
-
value: function createTemplateForFormat(format,
|
|
53898
|
+
value: function createTemplateForFormat(format, state104) {
|
|
53852
53899
|
if (SUPPORT_LEGACY_FORMATTING_PATTERNS && format.pattern().indexOf("|") >= 0) {
|
|
53853
53900
|
return;
|
|
53854
53901
|
}
|
|
53855
|
-
var template = this.getTemplateForFormat(format,
|
|
53902
|
+
var template = this.getTemplateForFormat(format, state104);
|
|
53856
53903
|
if (template) {
|
|
53857
|
-
this.setNationalNumberTemplate(template,
|
|
53904
|
+
this.setNationalNumberTemplate(template, state104);
|
|
53858
53905
|
return true;
|
|
53859
53906
|
}
|
|
53860
53907
|
}
|
|
@@ -53883,16 +53930,16 @@ var AsYouTypeFormatter = /* @__PURE__ */ function() {
|
|
|
53883
53930
|
}
|
|
53884
53931
|
}, {
|
|
53885
53932
|
key: "getTemplate",
|
|
53886
|
-
value: function getTemplate(
|
|
53933
|
+
value: function getTemplate(state104) {
|
|
53887
53934
|
if (!this.template) {
|
|
53888
53935
|
return;
|
|
53889
53936
|
}
|
|
53890
53937
|
var index6 = -1;
|
|
53891
53938
|
var i = 0;
|
|
53892
|
-
var internationalPrefix =
|
|
53939
|
+
var internationalPrefix = state104.international ? this.getInternationalPrefixBeforeCountryCallingCode(state104, {
|
|
53893
53940
|
spacing: false
|
|
53894
53941
|
}) : "";
|
|
53895
|
-
while (i < internationalPrefix.length +
|
|
53942
|
+
while (i < internationalPrefix.length + state104.getDigitsWithoutInternationalPrefix().length) {
|
|
53896
53943
|
index6 = this.template.indexOf(DIGIT_PLACEHOLDER, index6 + 1);
|
|
53897
53944
|
i++;
|
|
53898
53945
|
}
|
|
@@ -53900,12 +53947,12 @@ var AsYouTypeFormatter = /* @__PURE__ */ function() {
|
|
|
53900
53947
|
}
|
|
53901
53948
|
}, {
|
|
53902
53949
|
key: "setNationalNumberTemplate",
|
|
53903
|
-
value: function setNationalNumberTemplate(template,
|
|
53950
|
+
value: function setNationalNumberTemplate(template, state104) {
|
|
53904
53951
|
this.nationalNumberTemplate = template;
|
|
53905
53952
|
this.populatedNationalNumberTemplate = template;
|
|
53906
53953
|
this.populatedNationalNumberTemplatePosition = -1;
|
|
53907
|
-
if (
|
|
53908
|
-
this.template = this.getInternationalPrefixBeforeCountryCallingCode(
|
|
53954
|
+
if (state104.international) {
|
|
53955
|
+
this.template = this.getInternationalPrefixBeforeCountryCallingCode(state104).replace(/[\d\+]/g, DIGIT_PLACEHOLDER) + repeat(DIGIT_PLACEHOLDER, state104.callingCode.length) + " " + template;
|
|
53909
53956
|
} else {
|
|
53910
53957
|
this.template = template;
|
|
53911
53958
|
}
|
|
@@ -54090,20 +54137,20 @@ var AsYouTypeParser = /* @__PURE__ */ function() {
|
|
|
54090
54137
|
}
|
|
54091
54138
|
return _createClass8(AsYouTypeParser2, [{
|
|
54092
54139
|
key: "input",
|
|
54093
|
-
value: function input(text47,
|
|
54140
|
+
value: function input(text47, state104) {
|
|
54094
54141
|
var _extractFormattedDigi = extractFormattedDigitsAndPlus(text47), _extractFormattedDigi2 = _slicedToArray2(_extractFormattedDigi, 2), formattedDigits = _extractFormattedDigi2[0], hasPlus = _extractFormattedDigi2[1];
|
|
54095
54142
|
var digits = parseDigits(formattedDigits);
|
|
54096
54143
|
var justLeadingPlus;
|
|
54097
54144
|
if (hasPlus) {
|
|
54098
|
-
if (!
|
|
54099
|
-
|
|
54145
|
+
if (!state104.digits) {
|
|
54146
|
+
state104.startInternationalNumber(undefined, undefined);
|
|
54100
54147
|
if (!digits) {
|
|
54101
54148
|
justLeadingPlus = true;
|
|
54102
54149
|
}
|
|
54103
54150
|
}
|
|
54104
54151
|
}
|
|
54105
54152
|
if (digits) {
|
|
54106
|
-
this.inputDigits(digits,
|
|
54153
|
+
this.inputDigits(digits, state104);
|
|
54107
54154
|
}
|
|
54108
54155
|
return {
|
|
54109
54156
|
digits,
|
|
@@ -54112,24 +54159,24 @@ var AsYouTypeParser = /* @__PURE__ */ function() {
|
|
|
54112
54159
|
}
|
|
54113
54160
|
}, {
|
|
54114
54161
|
key: "inputDigits",
|
|
54115
|
-
value: function inputDigits(nextDigits,
|
|
54116
|
-
var digits =
|
|
54162
|
+
value: function inputDigits(nextDigits, state104) {
|
|
54163
|
+
var digits = state104.digits;
|
|
54117
54164
|
var hasReceivedThreeLeadingDigits = digits.length < 3 && digits.length + nextDigits.length >= 3;
|
|
54118
|
-
|
|
54165
|
+
state104.appendDigits(nextDigits);
|
|
54119
54166
|
if (hasReceivedThreeLeadingDigits) {
|
|
54120
|
-
this.extractIddPrefix(
|
|
54167
|
+
this.extractIddPrefix(state104);
|
|
54121
54168
|
}
|
|
54122
|
-
if (this.isWaitingForCountryCallingCode(
|
|
54123
|
-
if (!this.extractCountryCallingCode(
|
|
54169
|
+
if (this.isWaitingForCountryCallingCode(state104)) {
|
|
54170
|
+
if (!this.extractCountryCallingCode(state104)) {
|
|
54124
54171
|
return;
|
|
54125
54172
|
}
|
|
54126
54173
|
} else {
|
|
54127
|
-
|
|
54174
|
+
state104.appendNationalSignificantNumberDigits(nextDigits);
|
|
54128
54175
|
}
|
|
54129
|
-
if (!
|
|
54176
|
+
if (!state104.international) {
|
|
54130
54177
|
if (!this.hasExtractedNationalSignificantNumber) {
|
|
54131
|
-
this.extractNationalSignificantNumber(
|
|
54132
|
-
return
|
|
54178
|
+
this.extractNationalSignificantNumber(state104.getNationalDigits(), function(stateUpdate) {
|
|
54179
|
+
return state104.update(stateUpdate);
|
|
54133
54180
|
});
|
|
54134
54181
|
}
|
|
54135
54182
|
}
|
|
@@ -54142,11 +54189,11 @@ var AsYouTypeParser = /* @__PURE__ */ function() {
|
|
|
54142
54189
|
}
|
|
54143
54190
|
}, {
|
|
54144
54191
|
key: "extractCountryCallingCode",
|
|
54145
|
-
value: function extractCountryCallingCode2(
|
|
54146
|
-
var _extractCountryCallin = extractCountryCallingCode("+" +
|
|
54192
|
+
value: function extractCountryCallingCode2(state104) {
|
|
54193
|
+
var _extractCountryCallin = extractCountryCallingCode("+" + state104.getDigitsWithoutInternationalPrefix(), state104.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), countryCallingCode = _extractCountryCallin.countryCallingCode, number = _extractCountryCallin.number;
|
|
54147
54194
|
if (countryCallingCode) {
|
|
54148
|
-
|
|
54149
|
-
|
|
54195
|
+
state104.setCallingCode(countryCallingCode);
|
|
54196
|
+
state104.update({
|
|
54150
54197
|
nationalSignificantNumber: number
|
|
54151
54198
|
});
|
|
54152
54199
|
return true;
|
|
@@ -54221,34 +54268,34 @@ var AsYouTypeParser = /* @__PURE__ */ function() {
|
|
|
54221
54268
|
}
|
|
54222
54269
|
}, {
|
|
54223
54270
|
key: "reExtractNationalSignificantNumber",
|
|
54224
|
-
value: function reExtractNationalSignificantNumber(
|
|
54225
|
-
if (this.extractAnotherNationalSignificantNumber(
|
|
54226
|
-
return
|
|
54271
|
+
value: function reExtractNationalSignificantNumber(state104) {
|
|
54272
|
+
if (this.extractAnotherNationalSignificantNumber(state104.getNationalDigits(), state104.nationalSignificantNumber, function(stateUpdate) {
|
|
54273
|
+
return state104.update(stateUpdate);
|
|
54227
54274
|
})) {
|
|
54228
54275
|
return true;
|
|
54229
54276
|
}
|
|
54230
|
-
if (this.extractIddPrefix(
|
|
54231
|
-
this.extractCallingCodeAndNationalSignificantNumber(
|
|
54277
|
+
if (this.extractIddPrefix(state104)) {
|
|
54278
|
+
this.extractCallingCodeAndNationalSignificantNumber(state104);
|
|
54232
54279
|
return true;
|
|
54233
54280
|
}
|
|
54234
|
-
if (this.fixMissingPlus(
|
|
54235
|
-
this.extractCallingCodeAndNationalSignificantNumber(
|
|
54281
|
+
if (this.fixMissingPlus(state104)) {
|
|
54282
|
+
this.extractCallingCodeAndNationalSignificantNumber(state104);
|
|
54236
54283
|
return true;
|
|
54237
54284
|
}
|
|
54238
54285
|
}
|
|
54239
54286
|
}, {
|
|
54240
54287
|
key: "extractIddPrefix",
|
|
54241
|
-
value: function extractIddPrefix(
|
|
54242
|
-
var { international, IDDPrefix, digits, nationalSignificantNumber } =
|
|
54288
|
+
value: function extractIddPrefix(state104) {
|
|
54289
|
+
var { international, IDDPrefix, digits, nationalSignificantNumber } = state104;
|
|
54243
54290
|
if (international || IDDPrefix) {
|
|
54244
54291
|
return;
|
|
54245
54292
|
}
|
|
54246
54293
|
var numberWithoutIDD = stripIddPrefix(digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
|
|
54247
54294
|
if (numberWithoutIDD !== undefined && numberWithoutIDD !== digits) {
|
|
54248
|
-
|
|
54295
|
+
state104.update({
|
|
54249
54296
|
IDDPrefix: digits.slice(0, digits.length - numberWithoutIDD.length)
|
|
54250
54297
|
});
|
|
54251
|
-
this.startInternationalNumber(
|
|
54298
|
+
this.startInternationalNumber(state104, {
|
|
54252
54299
|
country: undefined,
|
|
54253
54300
|
callingCode: undefined
|
|
54254
54301
|
});
|
|
@@ -54257,15 +54304,15 @@ var AsYouTypeParser = /* @__PURE__ */ function() {
|
|
|
54257
54304
|
}
|
|
54258
54305
|
}, {
|
|
54259
54306
|
key: "fixMissingPlus",
|
|
54260
|
-
value: function fixMissingPlus(
|
|
54261
|
-
if (!
|
|
54262
|
-
var _extractCountryCallin2 = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(
|
|
54307
|
+
value: function fixMissingPlus(state104) {
|
|
54308
|
+
if (!state104.international) {
|
|
54309
|
+
var _extractCountryCallin2 = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(state104.digits, state104.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), newCallingCode = _extractCountryCallin2.countryCallingCode;
|
|
54263
54310
|
if (newCallingCode) {
|
|
54264
|
-
|
|
54311
|
+
state104.update({
|
|
54265
54312
|
missingPlus: true
|
|
54266
54313
|
});
|
|
54267
|
-
this.startInternationalNumber(
|
|
54268
|
-
country:
|
|
54314
|
+
this.startInternationalNumber(state104, {
|
|
54315
|
+
country: state104.country,
|
|
54269
54316
|
callingCode: newCallingCode
|
|
54270
54317
|
});
|
|
54271
54318
|
return true;
|
|
@@ -54274,21 +54321,21 @@ var AsYouTypeParser = /* @__PURE__ */ function() {
|
|
|
54274
54321
|
}
|
|
54275
54322
|
}, {
|
|
54276
54323
|
key: "startInternationalNumber",
|
|
54277
|
-
value: function startInternationalNumber(
|
|
54324
|
+
value: function startInternationalNumber(state104, _ref3) {
|
|
54278
54325
|
var { country, callingCode } = _ref3;
|
|
54279
|
-
|
|
54280
|
-
if (
|
|
54281
|
-
|
|
54326
|
+
state104.startInternationalNumber(country, callingCode);
|
|
54327
|
+
if (state104.nationalSignificantNumber) {
|
|
54328
|
+
state104.resetNationalSignificantNumber();
|
|
54282
54329
|
this.onNationalSignificantNumberChange();
|
|
54283
54330
|
this.hasExtractedNationalSignificantNumber = undefined;
|
|
54284
54331
|
}
|
|
54285
54332
|
}
|
|
54286
54333
|
}, {
|
|
54287
54334
|
key: "extractCallingCodeAndNationalSignificantNumber",
|
|
54288
|
-
value: function extractCallingCodeAndNationalSignificantNumber(
|
|
54289
|
-
if (this.extractCountryCallingCode(
|
|
54290
|
-
this.extractNationalSignificantNumber(
|
|
54291
|
-
return
|
|
54335
|
+
value: function extractCallingCodeAndNationalSignificantNumber(state104) {
|
|
54336
|
+
if (this.extractCountryCallingCode(state104)) {
|
|
54337
|
+
this.extractNationalSignificantNumber(state104.getNationalDigits(), function(stateUpdate) {
|
|
54338
|
+
return state104.update(stateUpdate);
|
|
54292
54339
|
});
|
|
54293
54340
|
}
|
|
54294
54341
|
}
|
|
@@ -56520,6 +56567,65 @@ function Run_step_branch_disclosure($$anchor, $$props) {
|
|
|
56520
56567
|
}
|
|
56521
56568
|
|
|
56522
56569
|
// src/components/run-step-timeline/run-step-timeline.utilities.ts
|
|
56570
|
+
function relocateCompensationSteps(steps) {
|
|
56571
|
+
return relocateSiblingItems(steps, (step) => step);
|
|
56572
|
+
}
|
|
56573
|
+
function relocateSiblingItems(items, getStep) {
|
|
56574
|
+
if (!items.some((item) => getStep(item)?.compensates !== undefined))
|
|
56575
|
+
return items;
|
|
56576
|
+
const stepById = new Map;
|
|
56577
|
+
for (const item of items) {
|
|
56578
|
+
const step = getStep(item);
|
|
56579
|
+
if (step !== undefined) {
|
|
56580
|
+
stepById.set(step.id, step);
|
|
56581
|
+
}
|
|
56582
|
+
}
|
|
56583
|
+
const canRelocate = (step) => {
|
|
56584
|
+
const visited = new Set([step.id]);
|
|
56585
|
+
let targetId = step.compensates;
|
|
56586
|
+
while (targetId !== undefined) {
|
|
56587
|
+
const target = stepById.get(targetId);
|
|
56588
|
+
if (target === undefined || visited.has(targetId))
|
|
56589
|
+
return false;
|
|
56590
|
+
visited.add(targetId);
|
|
56591
|
+
targetId = target.compensates;
|
|
56592
|
+
}
|
|
56593
|
+
return true;
|
|
56594
|
+
};
|
|
56595
|
+
const relocatable = new Set;
|
|
56596
|
+
const compensationsByTarget = new Map;
|
|
56597
|
+
for (const item of items) {
|
|
56598
|
+
const step = getStep(item);
|
|
56599
|
+
if (step === undefined || step.compensates === undefined || !canRelocate(step))
|
|
56600
|
+
continue;
|
|
56601
|
+
relocatable.add(step);
|
|
56602
|
+
const compensations = compensationsByTarget.get(step.compensates) ?? [];
|
|
56603
|
+
compensations.push(item);
|
|
56604
|
+
compensationsByTarget.set(step.compensates, compensations);
|
|
56605
|
+
}
|
|
56606
|
+
const result2 = [];
|
|
56607
|
+
const appendWithCompensations = (item) => {
|
|
56608
|
+
result2.push(item);
|
|
56609
|
+
const step = getStep(item);
|
|
56610
|
+
if (step === undefined)
|
|
56611
|
+
return;
|
|
56612
|
+
for (const compensation of compensationsByTarget.get(step.id) ?? []) {
|
|
56613
|
+
appendWithCompensations(compensation);
|
|
56614
|
+
}
|
|
56615
|
+
};
|
|
56616
|
+
for (const item of items) {
|
|
56617
|
+
const step = getStep(item);
|
|
56618
|
+
if (step === undefined || !relocatable.has(step))
|
|
56619
|
+
appendWithCompensations(item);
|
|
56620
|
+
}
|
|
56621
|
+
return result2;
|
|
56622
|
+
}
|
|
56623
|
+
function relocateCompensationEntries(entries) {
|
|
56624
|
+
return relocateSiblingItems(entries, (entry) => isBranchGroup(entry) ? undefined : entry);
|
|
56625
|
+
}
|
|
56626
|
+
function isBranchGroup(entry) {
|
|
56627
|
+
return "kind" in entry && entry.kind === "branch";
|
|
56628
|
+
}
|
|
56523
56629
|
function statusDotStatus(status) {
|
|
56524
56630
|
switch (status) {
|
|
56525
56631
|
case "succeeded":
|
|
@@ -57104,8 +57210,8 @@ function Run_step_timeline($$anchor, $$props) {
|
|
|
57104
57210
|
const MAX_NESTED_STEP_DEPTH = 3;
|
|
57105
57211
|
let rest = $281.rest_props($$props, rest_excludes124);
|
|
57106
57212
|
const resolvedAriaLabel = $281.derived(() => $$props["aria-labelledby"] === undefined && $$props["aria-label"] === undefined ? $$props.label : $$props["aria-label"]);
|
|
57107
|
-
const renderedEntries = $281.derived(() => flattenEntries($$props.steps));
|
|
57108
|
-
function
|
|
57213
|
+
const renderedEntries = $281.derived(() => flattenEntries(relocateCompensationEntries($$props.steps)));
|
|
57214
|
+
function isBranchGroup2(entry) {
|
|
57109
57215
|
return "kind" in entry && entry.kind === "branch";
|
|
57110
57216
|
}
|
|
57111
57217
|
function flattenEntries(entries) {
|
|
@@ -57118,7 +57224,7 @@ function Run_step_timeline($$anchor, $$props) {
|
|
|
57118
57224
|
stepRun = [];
|
|
57119
57225
|
};
|
|
57120
57226
|
for (const entry of entries) {
|
|
57121
|
-
if (
|
|
57227
|
+
if (isBranchGroup2(entry)) {
|
|
57122
57228
|
flushRun();
|
|
57123
57229
|
result2.push({
|
|
57124
57230
|
kind: "branch",
|
|
@@ -57180,7 +57286,7 @@ function Run_step_timeline($$anchor, $$props) {
|
|
|
57180
57286
|
}
|
|
57181
57287
|
function flattenSteps(list, pathPrefix) {
|
|
57182
57288
|
const rows = [];
|
|
57183
|
-
appendRunStepRows(rows, list, 0, pathPrefix);
|
|
57289
|
+
appendRunStepRows(rows, relocateCompensationSteps(list), 0, pathPrefix);
|
|
57184
57290
|
const currentRowIndex = deepestCurrentStepIndex(rows);
|
|
57185
57291
|
const labelByPathKey = new Map;
|
|
57186
57292
|
for (const row of rows) {
|
|
@@ -57218,7 +57324,7 @@ function Run_step_timeline($$anchor, $$props) {
|
|
|
57218
57324
|
rows.push({ kind: "step", step, depth, pathKey });
|
|
57219
57325
|
if (step.children && step.children.length > 0) {
|
|
57220
57326
|
if (depth < MAX_NESTED_STEP_DEPTH) {
|
|
57221
|
-
appendRunStepRows(rows, step.children, depth + 1, pathKey);
|
|
57327
|
+
appendRunStepRows(rows, relocateCompensationSteps(step.children), depth + 1, pathKey);
|
|
57222
57328
|
} else {
|
|
57223
57329
|
const hiddenSummary = summarizeNestedRunSteps(step.children);
|
|
57224
57330
|
rows.push({
|
|
@@ -57703,8 +57809,8 @@ function createInitialLayoutState(panes, availablePanePixels, orientation) {
|
|
|
57703
57809
|
}))
|
|
57704
57810
|
};
|
|
57705
57811
|
}
|
|
57706
|
-
function rebaseLayoutState(
|
|
57707
|
-
const previousById = new Map(
|
|
57812
|
+
function rebaseLayoutState(state107, panes, availablePanePixels, orientation, options = {}) {
|
|
57813
|
+
const previousById = new Map(state107.panels.map((panel) => [panel.id, panel]));
|
|
57708
57814
|
const constraints = getPanelConstraints(panes, availablePanePixels);
|
|
57709
57815
|
const fallback = createInitialLayoutState(panes, availablePanePixels, orientation);
|
|
57710
57816
|
const collapsedFlags = panes.map((pane, index6) => {
|
|
@@ -57719,9 +57825,9 @@ function rebaseLayoutState(state106, panes, availablePanePixels, orientation, op
|
|
|
57719
57825
|
return 0;
|
|
57720
57826
|
if (options.useDefaultSizes)
|
|
57721
57827
|
return fallback.panels[index6].sizePixels;
|
|
57722
|
-
if (
|
|
57828
|
+
if (state107.availablePanePixels <= 0)
|
|
57723
57829
|
return fallback.panels[index6].sizePixels;
|
|
57724
|
-
return previous.sizePixels /
|
|
57830
|
+
return previous.sizePixels / state107.availablePanePixels * availablePanePixels;
|
|
57725
57831
|
});
|
|
57726
57832
|
const normalized = normalizeToAvailable(desiredSizes, constraints, availablePanePixels, collapsedFlags);
|
|
57727
57833
|
return {
|
|
@@ -57729,22 +57835,22 @@ function rebaseLayoutState(state106, panes, availablePanePixels, orientation, op
|
|
|
57729
57835
|
orientation,
|
|
57730
57836
|
panels: panes.map((pane, index6) => {
|
|
57731
57837
|
const previous = previousById.get(pane.id);
|
|
57732
|
-
const previousRestore =
|
|
57838
|
+
const previousRestore = state107.availablePanePixels > 0 ? previous?.restorePixels ?? fallback.panels[index6].restorePixels : fallback.panels[index6].restorePixels;
|
|
57733
57839
|
const collapsed = collapsedFlags[index6];
|
|
57734
57840
|
return {
|
|
57735
57841
|
id: pane.id,
|
|
57736
57842
|
sizePixels: normalized[index6] ?? 0,
|
|
57737
|
-
restorePixels:
|
|
57843
|
+
restorePixels: state107.availablePanePixels > 0 ? previousRestore / state107.availablePanePixels * availablePanePixels : previousRestore,
|
|
57738
57844
|
collapsed,
|
|
57739
57845
|
preferredUnit: getPreferredUnit(pane)
|
|
57740
57846
|
};
|
|
57741
57847
|
})
|
|
57742
57848
|
};
|
|
57743
57849
|
}
|
|
57744
|
-
function getPairBounds(
|
|
57745
|
-
const constraints = getPanelConstraints(panes,
|
|
57746
|
-
const leading =
|
|
57747
|
-
const trailing =
|
|
57850
|
+
function getPairBounds(state107, panes, handleIndex, options = {}) {
|
|
57851
|
+
const constraints = getPanelConstraints(panes, state107.availablePanePixels);
|
|
57852
|
+
const leading = state107.panels[handleIndex];
|
|
57853
|
+
const trailing = state107.panels[handleIndex + 1];
|
|
57748
57854
|
const leadingConstraints = constraints[handleIndex];
|
|
57749
57855
|
const trailingConstraints = constraints[handleIndex + 1];
|
|
57750
57856
|
const pairTotal = leading.sizePixels + trailing.sizePixels;
|
|
@@ -57755,8 +57861,8 @@ function getPairBounds(state106, panes, handleIndex, options = {}) {
|
|
|
57755
57861
|
const maximumLeading = clamp3(leadingConstraints.maxPixels, minimumLeading, Math.max(minimumLeading, pairMaximumLeading));
|
|
57756
57862
|
return { pairTotal, minimumLeading, maximumLeading };
|
|
57757
57863
|
}
|
|
57758
|
-
function clonePanels(
|
|
57759
|
-
return
|
|
57864
|
+
function clonePanels(state107) {
|
|
57865
|
+
return state107.panels.map((panel) => ({ ...panel }));
|
|
57760
57866
|
}
|
|
57761
57867
|
function hasLayoutPixelChanges(previous, next32) {
|
|
57762
57868
|
if (previous.panels.length !== next32.panels.length)
|
|
@@ -57768,9 +57874,9 @@ function hasLayoutPixelChanges(previous, next32) {
|
|
|
57768
57874
|
return Math.abs(panel.sizePixels - nextPanel.sizePixels) >= 0.001 || panel.collapsed !== nextPanel.collapsed;
|
|
57769
57875
|
});
|
|
57770
57876
|
}
|
|
57771
|
-
function setLeadingPanePixels(
|
|
57772
|
-
const { pairTotal, minimumLeading, maximumLeading } = getPairBounds(
|
|
57773
|
-
const panels = clonePanels(
|
|
57877
|
+
function setLeadingPanePixels(state107, panes, handleIndex, leadingPixels, options = {}) {
|
|
57878
|
+
const { pairTotal, minimumLeading, maximumLeading } = getPairBounds(state107, panes, handleIndex, options);
|
|
57879
|
+
const panels = clonePanels(state107);
|
|
57774
57880
|
const nextLeading = clamp3(leadingPixels, minimumLeading, maximumLeading);
|
|
57775
57881
|
const nextTrailing = pairTotal - nextLeading;
|
|
57776
57882
|
panels[handleIndex].sizePixels = nextLeading;
|
|
@@ -57781,27 +57887,27 @@ function setLeadingPanePixels(state106, panes, handleIndex, leadingPixels, optio
|
|
|
57781
57887
|
panels[handleIndex + 1].collapsed = panes[handleIndex + 1].collapsible ? nextTrailing === 0 : false;
|
|
57782
57888
|
if (nextTrailing > 0)
|
|
57783
57889
|
panels[handleIndex + 1].restorePixels = nextTrailing;
|
|
57784
|
-
return { ...
|
|
57890
|
+
return { ...state107, panels };
|
|
57785
57891
|
}
|
|
57786
|
-
function applyPairDelta(
|
|
57787
|
-
const leading =
|
|
57788
|
-
return setLeadingPanePixels(
|
|
57892
|
+
function applyPairDelta(state107, panes, handleIndex, deltaPixels) {
|
|
57893
|
+
const leading = state107.panels[handleIndex];
|
|
57894
|
+
return setLeadingPanePixels(state107, panes, handleIndex, leading.sizePixels + deltaPixels, {
|
|
57789
57895
|
allowCollapsedLeadingMinimum: leading.collapsed,
|
|
57790
|
-
allowCollapsedTrailingMinimum:
|
|
57896
|
+
allowCollapsedTrailingMinimum: state107.panels[handleIndex + 1].collapsed
|
|
57791
57897
|
});
|
|
57792
57898
|
}
|
|
57793
|
-
function getSnapCandidates(
|
|
57899
|
+
function getSnapCandidates(state107, panes, handleIndex) {
|
|
57794
57900
|
const leadingPane = panes[handleIndex];
|
|
57795
57901
|
const trailingPane = panes[handleIndex + 1];
|
|
57796
|
-
const pairTotal =
|
|
57797
|
-
const leadingCandidates = (leadingPane.snapPoints ?? []).map((size3) => resolveSizeToPixels(size3,
|
|
57798
|
-
const trailingCandidates = (trailingPane.snapPoints ?? []).map((size3) => resolveSizeToPixels(size3,
|
|
57902
|
+
const pairTotal = state107.panels[handleIndex].sizePixels + state107.panels[handleIndex + 1].sizePixels;
|
|
57903
|
+
const leadingCandidates = (leadingPane.snapPoints ?? []).map((size3) => resolveSizeToPixels(size3, state107.availablePanePixels)).filter((value) => value !== undefined).map((value) => clamp3(value, 0, pairTotal));
|
|
57904
|
+
const trailingCandidates = (trailingPane.snapPoints ?? []).map((size3) => resolveSizeToPixels(size3, state107.availablePanePixels)).filter((value) => value !== undefined).map((value) => clamp3(pairTotal - value, 0, pairTotal));
|
|
57799
57905
|
return [...leadingCandidates, ...trailingCandidates];
|
|
57800
57906
|
}
|
|
57801
|
-
function applyPairSnap(
|
|
57802
|
-
const thresholdPixels = resolveSizeToPixels(threshold,
|
|
57803
|
-
const currentLeading =
|
|
57804
|
-
const candidates = getSnapCandidates(
|
|
57907
|
+
function applyPairSnap(state107, panes, handleIndex, threshold = DEFAULT_SNAP_THRESHOLD) {
|
|
57908
|
+
const thresholdPixels = resolveSizeToPixels(threshold, state107.availablePanePixels) ?? 0;
|
|
57909
|
+
const currentLeading = state107.panels[handleIndex].sizePixels;
|
|
57910
|
+
const candidates = getSnapCandidates(state107, panes, handleIndex);
|
|
57805
57911
|
let chosen = null;
|
|
57806
57912
|
let chosenDistance = Number.POSITIVE_INFINITY;
|
|
57807
57913
|
for (const candidate of candidates) {
|
|
@@ -57814,24 +57920,24 @@ function applyPairSnap(state106, panes, handleIndex, threshold = DEFAULT_SNAP_TH
|
|
|
57814
57920
|
}
|
|
57815
57921
|
}
|
|
57816
57922
|
if (chosen === null)
|
|
57817
|
-
return
|
|
57818
|
-
return setLeadingPanePixels(
|
|
57819
|
-
allowCollapsedLeadingMinimum:
|
|
57820
|
-
allowCollapsedTrailingMinimum:
|
|
57923
|
+
return state107;
|
|
57924
|
+
return setLeadingPanePixels(state107, panes, handleIndex, chosen, {
|
|
57925
|
+
allowCollapsedLeadingMinimum: state107.panels[handleIndex].collapsed,
|
|
57926
|
+
allowCollapsedTrailingMinimum: state107.panels[handleIndex + 1].collapsed
|
|
57821
57927
|
});
|
|
57822
57928
|
}
|
|
57823
|
-
function applyPointerDragDelta(
|
|
57929
|
+
function applyPointerDragDelta(state107, panes, handleIndex, previousAxis, currentAxis, threshold = DEFAULT_SNAP_THRESHOLD) {
|
|
57824
57930
|
const delta = currentAxis - previousAxis;
|
|
57825
57931
|
if (Math.abs(delta) < 0.001) {
|
|
57826
|
-
return { axis: previousAxis, changed: false, state:
|
|
57932
|
+
return { axis: previousAxis, changed: false, state: state107 };
|
|
57827
57933
|
}
|
|
57828
|
-
const resized = applyPairDelta(
|
|
57934
|
+
const resized = applyPairDelta(state107, panes, handleIndex, delta);
|
|
57829
57935
|
const snapped = applyPairSnap(resized, panes, handleIndex, threshold);
|
|
57830
|
-
const changed = hasLayoutPixelChanges(
|
|
57936
|
+
const changed = hasLayoutPixelChanges(state107, snapped);
|
|
57831
57937
|
return {
|
|
57832
57938
|
axis: currentAxis,
|
|
57833
57939
|
changed,
|
|
57834
|
-
state: changed ? snapped :
|
|
57940
|
+
state: changed ? snapped : state107
|
|
57835
57941
|
};
|
|
57836
57942
|
}
|
|
57837
57943
|
function resolveKeyboardStep(keyboardStep, availablePanePixels, multiplier = 1) {
|
|
@@ -57852,51 +57958,51 @@ function chooseCollapseIndex(panes, handleIndex, collapseTarget) {
|
|
|
57852
57958
|
return trailingIndex;
|
|
57853
57959
|
return null;
|
|
57854
57960
|
}
|
|
57855
|
-
function toggleCollapseForHandle(
|
|
57961
|
+
function toggleCollapseForHandle(state107, panes, handleIndex, collapseTarget) {
|
|
57856
57962
|
const targetIndex = chooseCollapseIndex(panes, handleIndex, collapseTarget);
|
|
57857
57963
|
if (targetIndex === null)
|
|
57858
|
-
return { state:
|
|
57859
|
-
const target =
|
|
57860
|
-
const pairTotal =
|
|
57964
|
+
return { state: state107, changed: false };
|
|
57965
|
+
const target = state107.panels[targetIndex];
|
|
57966
|
+
const pairTotal = state107.panels[handleIndex].sizePixels + state107.panels[handleIndex + 1].sizePixels;
|
|
57861
57967
|
if (!target.collapsed) {
|
|
57862
|
-
const panels2 = clonePanels(
|
|
57968
|
+
const panels2 = clonePanels(state107);
|
|
57863
57969
|
panels2[targetIndex].restorePixels = target.sizePixels;
|
|
57864
57970
|
panels2[targetIndex].collapsed = true;
|
|
57865
|
-
const collapsed = setLeadingPanePixels({ ...
|
|
57971
|
+
const collapsed = setLeadingPanePixels({ ...state107, panels: panels2 }, panes, handleIndex, targetIndex === handleIndex ? 0 : pairTotal, {
|
|
57866
57972
|
allowCollapsedLeadingMinimum: targetIndex === handleIndex,
|
|
57867
57973
|
allowCollapsedTrailingMinimum: targetIndex !== handleIndex
|
|
57868
57974
|
});
|
|
57869
|
-
return { state: collapsed, changed: hasLayoutPixelChanges(
|
|
57975
|
+
return { state: collapsed, changed: hasLayoutPixelChanges(state107, collapsed) };
|
|
57870
57976
|
}
|
|
57871
|
-
const panels = clonePanels(
|
|
57872
|
-
const restored = setLeadingPanePixels({ ...
|
|
57977
|
+
const panels = clonePanels(state107);
|
|
57978
|
+
const restored = setLeadingPanePixels({ ...state107, panels }, panes, handleIndex, targetIndex === handleIndex ? target.restorePixels : pairTotal - target.restorePixels, {
|
|
57873
57979
|
allowCollapsedLeadingMinimum: targetIndex === handleIndex,
|
|
57874
57980
|
allowCollapsedTrailingMinimum: targetIndex !== handleIndex
|
|
57875
57981
|
});
|
|
57876
57982
|
return { state: restored, changed: true };
|
|
57877
57983
|
}
|
|
57878
|
-
function getLayoutSnapshot(
|
|
57984
|
+
function getLayoutSnapshot(state107, panes) {
|
|
57879
57985
|
return panes.map((pane, index6) => {
|
|
57880
|
-
const runtime =
|
|
57881
|
-
const percentage =
|
|
57986
|
+
const runtime = state107.panels[index6];
|
|
57987
|
+
const percentage = state107.availablePanePixels > 0 ? runtime.sizePixels / state107.availablePanePixels * 100 : 0;
|
|
57882
57988
|
return {
|
|
57883
57989
|
id: pane.id,
|
|
57884
|
-
size: formatSizeFromPixels(runtime.sizePixels, runtime.preferredUnit,
|
|
57990
|
+
size: formatSizeFromPixels(runtime.sizePixels, runtime.preferredUnit, state107.availablePanePixels),
|
|
57885
57991
|
pixelSize: roundToThousandth(runtime.sizePixels),
|
|
57886
57992
|
percentage: roundToThousandth(percentage),
|
|
57887
57993
|
collapsed: runtime.collapsed
|
|
57888
57994
|
};
|
|
57889
57995
|
});
|
|
57890
57996
|
}
|
|
57891
|
-
function getHandleAriaState(
|
|
57892
|
-
const { pairTotal, minimumLeading, maximumLeading } = getPairBounds(
|
|
57893
|
-
allowCollapsedLeadingMinimum:
|
|
57894
|
-
allowCollapsedTrailingMinimum:
|
|
57997
|
+
function getHandleAriaState(state107, panes, handleIndex) {
|
|
57998
|
+
const { pairTotal, minimumLeading, maximumLeading } = getPairBounds(state107, panes, handleIndex, {
|
|
57999
|
+
allowCollapsedLeadingMinimum: state107.panels[handleIndex].collapsed,
|
|
58000
|
+
allowCollapsedTrailingMinimum: state107.panels[handleIndex + 1].collapsed
|
|
57895
58001
|
});
|
|
57896
|
-
if (
|
|
58002
|
+
if (state107.availablePanePixels <= 0 || pairTotal <= 0) {
|
|
57897
58003
|
return { valueNow: 0, valueMin: 0, valueMax: 100, valueText: "0px (0%)" };
|
|
57898
58004
|
}
|
|
57899
|
-
const currentPixels =
|
|
58005
|
+
const currentPixels = state107.panels[handleIndex].sizePixels;
|
|
57900
58006
|
const currentPercent = Math.round(currentPixels / pairTotal * 100);
|
|
57901
58007
|
const minimumPercent = Math.round(minimumLeading / pairTotal * 100);
|
|
57902
58008
|
const maximumPercent = Math.round(maximumLeading / pairTotal * 100);
|
|
@@ -60717,11 +60823,11 @@ function Schema_form_body($$anchor, $$props) {
|
|
|
60717
60823
|
[key2]: ($286.get(arrayKeys)[key2] ?? []).filter((_, candidateIndex) => candidateIndex !== index6)
|
|
60718
60824
|
}, true);
|
|
60719
60825
|
}
|
|
60720
|
-
function reindexArrayPathState(
|
|
60826
|
+
function reindexArrayPathState(state111, arrayPath, removedIndex) {
|
|
60721
60827
|
const prefix = pathKey(arrayPath);
|
|
60722
60828
|
const pathPrefix = prefix === "" ? "" : `${prefix}/`;
|
|
60723
60829
|
const next34 = {};
|
|
60724
|
-
for (const [key2, stateValue] of Object.entries(
|
|
60830
|
+
for (const [key2, stateValue] of Object.entries(state111)) {
|
|
60725
60831
|
if (!key2.startsWith(pathPrefix)) {
|
|
60726
60832
|
next34[key2] = stateValue;
|
|
60727
60833
|
continue;
|
|
@@ -60748,11 +60854,11 @@ function Schema_form_body($$anchor, $$props) {
|
|
|
60748
60854
|
}
|
|
60749
60855
|
return next34;
|
|
60750
60856
|
}
|
|
60751
|
-
function bumpPathValidationSequences(
|
|
60857
|
+
function bumpPathValidationSequences(state111, path) {
|
|
60752
60858
|
const prefix = pathKey(path);
|
|
60753
60859
|
const pathPrefix = prefix === "" ? "" : `${prefix}/`;
|
|
60754
60860
|
const next34 = {};
|
|
60755
|
-
for (const [key2, sequence] of Object.entries(
|
|
60861
|
+
for (const [key2, sequence] of Object.entries(state111)) {
|
|
60756
60862
|
next34[key2] = key2 === prefix || key2.startsWith(pathPrefix) ? sequence + 1 : sequence;
|
|
60757
60863
|
}
|
|
60758
60864
|
return next34;
|
|
@@ -65379,9 +65485,9 @@ function Steps($$anchor, $$props) {
|
|
|
65379
65485
|
var nav = root_926();
|
|
65380
65486
|
var ol = $310.child(nav);
|
|
65381
65487
|
$310.each(ol, 23, () => $$props.steps, (step) => step.id, ($$anchor2, step, index9) => {
|
|
65382
|
-
const
|
|
65383
|
-
const isCurrent2 = $310.derived(() => $310.get(
|
|
65384
|
-
const isComplete = $310.derived(() => $310.get(
|
|
65488
|
+
const state121 = $310.derived(() => $310.get(stepStates)[$310.get(index9)] ?? "upcoming");
|
|
65489
|
+
const isCurrent2 = $310.derived(() => $310.get(state121) === "current");
|
|
65490
|
+
const isComplete = $310.derived(() => $310.get(state121) === "complete");
|
|
65385
65491
|
const connectorState = $310.derived(() => $310.get(clampedCurrent) !== undefined && $310.get(index9) < $310.get(clampedCurrent) ? "complete" : "upcoming");
|
|
65386
65492
|
const hasHref = $310.derived(() => $310.get(step).href !== undefined);
|
|
65387
65493
|
const isInteractive = $310.derived(() => $310.get(hasHref) || $310.get(step).onclick !== undefined);
|
|
@@ -65414,7 +65520,7 @@ function Steps($$anchor, $$props) {
|
|
|
65414
65520
|
var consequent_4 = ($$anchor3) => {
|
|
65415
65521
|
var a = root_481();
|
|
65416
65522
|
var node_4 = $310.child(a);
|
|
65417
|
-
stepBody(node_4, () => $310.get(stepLabel), () => $310.get(stepDescription), () => $310.get(
|
|
65523
|
+
stepBody(node_4, () => $310.get(stepLabel), () => $310.get(stepDescription), () => $310.get(state121), completedLabel, skippedLabel);
|
|
65418
65524
|
$310.reset(a);
|
|
65419
65525
|
$310.template_effect(() => {
|
|
65420
65526
|
$310.set_attribute(a, "href", $310.get(step).href);
|
|
@@ -65428,7 +65534,7 @@ function Steps($$anchor, $$props) {
|
|
|
65428
65534
|
var consequent_5 = ($$anchor3) => {
|
|
65429
65535
|
var button = root_566();
|
|
65430
65536
|
var node_5 = $310.child(button);
|
|
65431
|
-
stepBody(node_5, () => $310.get(stepLabel), () => $310.get(stepDescription), () => $310.get(
|
|
65537
|
+
stepBody(node_5, () => $310.get(stepLabel), () => $310.get(stepDescription), () => $310.get(state121), completedLabel, skippedLabel);
|
|
65432
65538
|
$310.reset(button);
|
|
65433
65539
|
$310.template_effect(() => $310.set_attribute(button, "aria-current", $310.get(isCurrent2) ? "step" : undefined));
|
|
65434
65540
|
$310.delegated("click", button, function(...$$args) {
|
|
@@ -65439,7 +65545,7 @@ function Steps($$anchor, $$props) {
|
|
|
65439
65545
|
var alternate_1 = ($$anchor3) => {
|
|
65440
65546
|
var span_7 = root_648();
|
|
65441
65547
|
var node_6 = $310.child(span_7);
|
|
65442
|
-
stepBody(node_6, () => $310.get(stepLabel), () => $310.get(stepDescription), () => $310.get(
|
|
65548
|
+
stepBody(node_6, () => $310.get(stepLabel), () => $310.get(stepDescription), () => $310.get(state121), completedLabel, skippedLabel);
|
|
65443
65549
|
$310.reset(span_7);
|
|
65444
65550
|
$310.append($$anchor3, span_7);
|
|
65445
65551
|
};
|
|
@@ -65466,7 +65572,7 @@ function Steps($$anchor, $$props) {
|
|
|
65466
65572
|
}
|
|
65467
65573
|
$310.reset(li);
|
|
65468
65574
|
$310.template_effect(() => {
|
|
65469
|
-
$310.set_attribute(li, "data-cinder-state", $310.get(
|
|
65575
|
+
$310.set_attribute(li, "data-cinder-state", $310.get(state121));
|
|
65470
65576
|
$310.set_attribute(li, "aria-current", $310.get(isCurrent2) && !$310.get(isInteractive) ? "step" : undefined);
|
|
65471
65577
|
});
|
|
65472
65578
|
$310.append($$anchor2, li);
|
|
@@ -70463,8 +70569,8 @@ function toggleSelectionScope(selectedIds, targetIds, disabledIds = new Set) {
|
|
|
70463
70569
|
const targets = selectableIds(targetIds, disabledIds);
|
|
70464
70570
|
if (targets.length === 0)
|
|
70465
70571
|
return [...selectedIds];
|
|
70466
|
-
const
|
|
70467
|
-
return
|
|
70572
|
+
const state128 = selectionStateFor(selectedIds, targets);
|
|
70573
|
+
return state128.checked ? deselectIds(selectedIds, targets, disabledIds) : selectIds(selectedIds, targets, disabledIds);
|
|
70468
70574
|
}
|
|
70469
70575
|
|
|
70470
70576
|
// src/components/tree/tree.svelte
|
|
@@ -71067,12 +71173,12 @@ function Tree($$anchor, $$props) {
|
|
|
71067
71173
|
function checkboxSelectionActive() {
|
|
71068
71174
|
return checkboxSelection() && selectionMode() === "multiple";
|
|
71069
71175
|
}
|
|
71070
|
-
function ariaCheckedForSelectionState(
|
|
71176
|
+
function ariaCheckedForSelectionState(state129) {
|
|
71071
71177
|
if (!checkboxSelectionActive())
|
|
71072
71178
|
return;
|
|
71073
|
-
if (
|
|
71179
|
+
if (state129.indeterminate)
|
|
71074
71180
|
return "mixed";
|
|
71075
|
-
return
|
|
71181
|
+
return state129.checked ? "true" : "false";
|
|
71076
71182
|
}
|
|
71077
71183
|
function selectionTargetsFor(id) {
|
|
71078
71184
|
if ($332.get(isVirtualizedTree)) {
|
|
@@ -71574,9 +71680,9 @@ function Tree($$anchor, $$props) {
|
|
|
71574
71680
|
setExpandedInternal(item.id, !expandedIds().includes(item.id));
|
|
71575
71681
|
}
|
|
71576
71682
|
function syncVirtualizedCheckboxElement(element30, id) {
|
|
71577
|
-
const
|
|
71578
|
-
element30.checked =
|
|
71579
|
-
element30.indeterminate =
|
|
71683
|
+
const state129 = selectionStateForId(id);
|
|
71684
|
+
element30.checked = state129.checked;
|
|
71685
|
+
element30.indeterminate = state129.indeterminate && !state129.checked;
|
|
71580
71686
|
}
|
|
71581
71687
|
function handleVirtualizedCheckboxClick(item, event36) {
|
|
71582
71688
|
event36.stopPropagation();
|
|
@@ -72924,4 +73030,4 @@ export {
|
|
|
72924
73030
|
AccessGateExport as AccessGate
|
|
72925
73031
|
};
|
|
72926
73032
|
|
|
72927
|
-
//# debugId=
|
|
73033
|
+
//# debugId=88236082BE2EAC6564756E2164756E21
|