@lostgradient/cinder 0.11.0 → 0.12.1
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 +16 -0
- package/components.json +3 -2
- package/dist/components/accordion/index.js +14 -11
- package/dist/components/accordion-item/accordion-item.css +20 -7
- package/dist/components/accordion-item/accordion-item.schema.js +5 -1
- package/dist/components/accordion-item/accordion-item.types.d.ts +4 -0
- package/dist/components/accordion-item/accordion-item.variables.js +13 -2
- package/dist/components/accordion-item/index.js +14 -11
- package/dist/components/action-row/action-row.css +20 -9
- package/dist/components/action-row/action-row.schema.js +5 -1
- package/dist/components/action-row/action-row.types.d.ts +43 -0
- package/dist/components/action-row/action-row.variables.js +12 -2
- package/dist/components/chat/chat.svelte.d.ts +1 -0
- 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/components/side-navigation/side-navigation.css +2 -1
- package/dist/components/side-navigation/side-navigation.schema.js +9 -6
- package/dist/components/side-navigation/side-navigation.types.d.ts +11 -0
- package/dist/components/side-navigation/side-navigation.variables.js +2 -2
- package/dist/components/stat/stat.css +16 -8
- package/dist/components/stat/stat.schema.js +5 -1
- package/dist/components/stat/stat.types.d.ts +19 -0
- package/dist/components/stat/stat.variables.js +11 -2
- package/dist/components/stat-group/stat-group.css +7 -4
- package/dist/components/stat-group/stat-group.schema.js +5 -1
- package/dist/components/stat-group/stat-group.types.d.ts +27 -0
- package/dist/components/stat-group/stat-group.variables.js +6 -2
- package/dist/index.js +365 -256
- package/dist/server/components/accordion/index.js +2 -2
- package/dist/server/components/accordion-item/index.js +2 -2
- 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 +10 -10
- package/dist/server/{index.server-cf6pxeyg.js → index.server-0rzd71e0.js} +1 -1
- 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-y83kqayt.js → index.server-h3nzp8g8.js} +1 -1
- package/dist/server/index.server-jwvxxjvc.js +50 -0
- package/dist/server/{index.server-39ne5cd1.js → index.server-pxq277t5.js} +32 -1
- package/package.json +22 -95
- package/src/components/accordion/accordion.examples.json +6 -0
- package/src/components/accordion-item/accordion-item.css +20 -7
- package/src/components/accordion-item/accordion-item.schema.json +4 -0
- package/src/components/accordion-item/accordion-item.schema.ts +4 -0
- package/src/components/accordion-item/accordion-item.svelte +9 -7
- package/src/components/accordion-item/accordion-item.types.ts +4 -0
- package/src/components/accordion-item/accordion-item.variables.json +12 -1
- package/src/components/accordion-item/accordion-item.variables.ts +12 -1
- package/src/components/action-row/action-row.css +20 -9
- package/src/components/action-row/action-row.examples.json +6 -0
- package/src/components/action-row/action-row.schema.json +4 -0
- package/src/components/action-row/action-row.schema.ts +4 -0
- package/src/components/action-row/action-row.types.ts +44 -0
- package/src/components/action-row/action-row.variables.json +11 -1
- package/src/components/action-row/action-row.variables.ts +11 -1
- package/src/components/chat/chat.examples.json +6 -0
- 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/src/components/side-navigation/side-navigation.css +2 -1
- package/src/components/side-navigation/side-navigation.examples.json +6 -0
- package/src/components/side-navigation/side-navigation.schema.json +8 -5
- package/src/components/side-navigation/side-navigation.schema.ts +8 -5
- package/src/components/side-navigation/side-navigation.types.ts +12 -0
- package/src/components/side-navigation/side-navigation.variables.json +1 -1
- package/src/components/side-navigation/side-navigation.variables.ts +1 -1
- package/src/components/stat/stat.css +16 -8
- package/src/components/stat/stat.schema.json +4 -0
- package/src/components/stat/stat.schema.ts +4 -0
- package/src/components/stat/stat.types.ts +20 -0
- package/src/components/stat/stat.variables.json +10 -1
- package/src/components/stat/stat.variables.ts +10 -1
- package/src/components/stat-group/stat-group.css +7 -4
- package/src/components/stat-group/stat-group.examples.json +6 -0
- package/src/components/stat-group/stat-group.schema.json +4 -0
- package/src/components/stat-group/stat-group.schema.ts +4 -0
- package/src/components/stat-group/stat-group.types.ts +28 -0
- package/src/components/stat-group/stat-group.variables.json +5 -1
- package/src/components/stat-group/stat-group.variables.ts +5 -1
- package/dist/server/index.server-hfx487zj.js +0 -42
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Accordion,
|
|
3
3
|
accordion_default
|
|
4
|
-
} from "../../index.server-
|
|
4
|
+
} from "../../index.server-h3nzp8g8.js";
|
|
5
5
|
import"../../index.server-p3aw22qv.js";
|
|
6
|
-
import"../../index.server-
|
|
6
|
+
import"../../index.server-jwvxxjvc.js";
|
|
7
7
|
import"../../index.server-bn02606y.js";
|
|
8
8
|
import"../../index.server-z7nvkz8v.js";
|
|
9
9
|
import"../../index.server-0v6na3yp.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
accordion_item_default
|
|
3
|
-
} from "../../index.server-
|
|
3
|
+
} from "../../index.server-0rzd71e0.js";
|
|
4
4
|
import {
|
|
5
5
|
Accordion_item
|
|
6
|
-
} from "../../index.server-
|
|
6
|
+
} from "../../index.server-jwvxxjvc.js";
|
|
7
7
|
import"../../index.server-bn02606y.js";
|
|
8
8
|
import"../../index.server-z7nvkz8v.js";
|
|
9
9
|
import"../../index.server-0v6na3yp.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Color_field,
|
|
3
3
|
color_field_default
|
|
4
|
-
} from "../../index.server-
|
|
5
|
-
import"../../index.server-8xvc73zh.js";
|
|
4
|
+
} from "../../index.server-7yvpb6z7.js";
|
|
6
5
|
import"../../index.server-7wsshxkg.js";
|
|
6
|
+
import"../../index.server-8xvc73zh.js";
|
|
7
7
|
import"../../index.server-42qeekwc.js";
|
|
8
8
|
import"../../index.server-weae7gs2.js";
|
|
9
9
|
import"../../index.server-493m9fm5.js";
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Confirm_dialog,
|
|
3
3
|
confirm_dialog_default
|
|
4
|
-
} from "../../index.server-
|
|
4
|
+
} from "../../index.server-pxq277t5.js";
|
|
5
|
+
import"../../index.server-8xvc73zh.js";
|
|
6
|
+
import"../../index.server-42qeekwc.js";
|
|
7
|
+
import"../../index.server-weae7gs2.js";
|
|
8
|
+
import"../../index.server-493m9fm5.js";
|
|
5
9
|
import"../../index.server-t3hknp1c.js";
|
|
6
10
|
import"../../index.server-x9s4m9eg.js";
|
|
7
11
|
import"../../index.server-zwjp26z8.js";
|
|
8
12
|
import"../../index.server-1vsv7ngz.js";
|
|
13
|
+
import"../../index.server-abm21gz1.js";
|
|
9
14
|
import"../../index.server-t859hsx1.js";
|
|
10
15
|
import"../../index.server-6pdmym90.js";
|
|
11
16
|
import"../../index.server-nj8mebze.js";
|
|
@@ -18,4 +23,4 @@ export {
|
|
|
18
23
|
Confirm_dialog as ConfirmDialog
|
|
19
24
|
};
|
|
20
25
|
|
|
21
|
-
//# debugId=
|
|
26
|
+
//# debugId=9E06E7591B75703964756E2164756E21
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Faceted_filter_bar,
|
|
3
3
|
faceted_filter_bar_default
|
|
4
|
-
} from "../../index.server-
|
|
4
|
+
} from "../../index.server-d5a5ccz7.js";
|
|
5
5
|
import"../../index.server-62mtrvr7.js";
|
|
6
6
|
import"../../index.server-b6jr01st.js";
|
|
7
7
|
import"../../index.server-317enkqq.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Run_step_timeline,
|
|
3
3
|
run_step_timeline_default
|
|
4
|
-
} from "../../index.server-
|
|
4
|
+
} from "../../index.server-g5jgq3jp.js";
|
|
5
5
|
import"../../index.server-7g2pzksm.js";
|
|
6
6
|
import"../../index.server-2ta1a4ze.js";
|
|
7
7
|
import"../../index.server-npxtkwjp.js";
|
package/dist/server/index.js
CHANGED
|
@@ -179,7 +179,7 @@ import"./index.server-2752sd9e.js";
|
|
|
179
179
|
import"./index.server-amfq2v2p.js";
|
|
180
180
|
import {
|
|
181
181
|
run_step_timeline_default
|
|
182
|
-
} from "./index.server-
|
|
182
|
+
} from "./index.server-g5jgq3jp.js";
|
|
183
183
|
import {
|
|
184
184
|
schedule_builder_default
|
|
185
185
|
} from "./index.server-qbkxz7r2.js";
|
|
@@ -263,7 +263,7 @@ import {
|
|
|
263
263
|
} from "./index.server-dj47xy3x.js";
|
|
264
264
|
import {
|
|
265
265
|
navigation_bar_default
|
|
266
|
-
} from "./index.server-
|
|
266
|
+
} from "./index.server-4wx0qven.js";
|
|
267
267
|
import {
|
|
268
268
|
navigation_item_default
|
|
269
269
|
} from "./index.server-ncdt0xb7.js";
|
|
@@ -387,7 +387,7 @@ import {
|
|
|
387
387
|
} from "./index.server-dpw9dc92.js";
|
|
388
388
|
import {
|
|
389
389
|
faceted_filter_bar_default
|
|
390
|
-
} from "./index.server-
|
|
390
|
+
} from "./index.server-d5a5ccz7.js";
|
|
391
391
|
import"./index.server-62mtrvr7.js";
|
|
392
392
|
import {
|
|
393
393
|
feature_section_default
|
|
@@ -512,8 +512,7 @@ import {
|
|
|
512
512
|
import"./index.server-2h3y9v3e.js";
|
|
513
513
|
import {
|
|
514
514
|
color_field_default
|
|
515
|
-
} from "./index.server-
|
|
516
|
-
import"./index.server-8xvc73zh.js";
|
|
515
|
+
} from "./index.server-7yvpb6z7.js";
|
|
517
516
|
import {
|
|
518
517
|
color_picker_default
|
|
519
518
|
} from "./index.server-a2hz77tt.js";
|
|
@@ -536,7 +535,8 @@ import {
|
|
|
536
535
|
} from "./index.server-38aywdk1.js";
|
|
537
536
|
import {
|
|
538
537
|
confirm_dialog_default
|
|
539
|
-
} from "./index.server-
|
|
538
|
+
} from "./index.server-pxq277t5.js";
|
|
539
|
+
import"./index.server-8xvc73zh.js";
|
|
540
540
|
import {
|
|
541
541
|
checkbox_default
|
|
542
542
|
} from "./index.server-h90pjrez.js";
|
|
@@ -707,12 +707,12 @@ import"./index.server-rqe5bqgm.js";
|
|
|
707
707
|
import"./index.server-yq9evnp4.js";
|
|
708
708
|
import {
|
|
709
709
|
accordion_default
|
|
710
|
-
} from "./index.server-
|
|
710
|
+
} from "./index.server-h3nzp8g8.js";
|
|
711
711
|
import"./index.server-p3aw22qv.js";
|
|
712
712
|
import {
|
|
713
713
|
accordion_item_default
|
|
714
|
-
} from "./index.server-
|
|
715
|
-
import"./index.server-
|
|
714
|
+
} from "./index.server-0rzd71e0.js";
|
|
715
|
+
import"./index.server-jwvxxjvc.js";
|
|
716
716
|
import"./index.server-bn02606y.js";
|
|
717
717
|
import {
|
|
718
718
|
action_row_default
|
|
@@ -1214,4 +1214,4 @@ export {
|
|
|
1214
1214
|
AccessGateExport as AccessGate
|
|
1215
1215
|
};
|
|
1216
1216
|
|
|
1217
|
-
//# debugId=
|
|
1217
|
+
//# debugId=F0C951E819A724F664756E2164756E21
|
|
@@ -170,7 +170,7 @@ function Navigation_bar($$renderer, $$props) {
|
|
|
170
170
|
menuToggle($$renderer2, {
|
|
171
171
|
"aria-expanded": mobileMenuOpen ? "true" : "false",
|
|
172
172
|
"aria-controls": regionId,
|
|
173
|
-
|
|
173
|
+
onclick: handleToggle
|
|
174
174
|
});
|
|
175
175
|
$$renderer2.push(`<!----></div>`);
|
|
176
176
|
} else {
|
|
@@ -192,7 +192,7 @@ function Navigation_bar($$renderer, $$props) {
|
|
|
192
192
|
menuToggle($$renderer2, {
|
|
193
193
|
"aria-expanded": mobileMenuOpen ? "true" : "false",
|
|
194
194
|
"aria-controls": regionId,
|
|
195
|
-
|
|
195
|
+
onclick: handleToggle
|
|
196
196
|
});
|
|
197
197
|
$$renderer2.push(`<!----></div>`);
|
|
198
198
|
} else {
|
|
@@ -218,4 +218,4 @@ function Navigation_bar($$renderer, $$props) {
|
|
|
218
218
|
var navigation_bar_default = Navigation_bar;
|
|
219
219
|
export { Navigation_bar, navigation_bar_default };
|
|
220
220
|
|
|
221
|
-
//# debugId=
|
|
221
|
+
//# debugId=B71D374361EC71D464756E2164756E21
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Input
|
|
3
|
-
} from "./index.server-8xvc73zh.js";
|
|
4
1
|
import {
|
|
5
2
|
parseColor
|
|
6
3
|
} from "./index.server-7wsshxkg.js";
|
|
4
|
+
import {
|
|
5
|
+
Input
|
|
6
|
+
} from "./index.server-8xvc73zh.js";
|
|
7
7
|
import {
|
|
8
8
|
classNames
|
|
9
9
|
} from "./index.server-z7nvkz8v.js";
|
|
@@ -291,4 +291,4 @@ function Color_field($$renderer, $$props) {
|
|
|
291
291
|
var color_field_default = Color_field;
|
|
292
292
|
export { Color_field, color_field_default };
|
|
293
293
|
|
|
294
|
-
//# debugId=
|
|
294
|
+
//# debugId=4D38464B115D3DC664756E2164756E21
|
|
@@ -23,6 +23,7 @@ function Faceted_filter_bar($$renderer, $$props) {
|
|
|
23
23
|
let {
|
|
24
24
|
"aria-label": ariaLabel = "Filters",
|
|
25
25
|
searchQuery,
|
|
26
|
+
showSearch = true,
|
|
26
27
|
searchPlaceholder = "Search…",
|
|
27
28
|
searchAriaLabel = "Search",
|
|
28
29
|
facets = [],
|
|
@@ -51,7 +52,7 @@ function Faceted_filter_bar($$renderer, $$props) {
|
|
|
51
52
|
return value;
|
|
52
53
|
return facet.options.find((option) => option.value === value)?.label ?? value;
|
|
53
54
|
}
|
|
54
|
-
const hasAppliedFilters = $.derived(() => appliedFilters.length > 0 || currentSearchQuery().length > 0);
|
|
55
|
+
const hasAppliedFilters = $.derived(() => appliedFilters.length > 0 || showSearch && currentSearchQuery().length > 0);
|
|
55
56
|
const totalActiveCount = $.derived(() => appliedFilters.length);
|
|
56
57
|
const summaryMessage = $.derived(() => {
|
|
57
58
|
if (totalActiveCount() === 0)
|
|
@@ -92,16 +93,21 @@ function Faceted_filter_bar($$renderer, $$props) {
|
|
|
92
93
|
"aria-label": ariaLabel,
|
|
93
94
|
"data-disabled": disabled ? "" : undefined
|
|
94
95
|
})}><div class="cinder-faceted-filter-bar__controls">`);
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
96
|
+
if (showSearch) {
|
|
97
|
+
$$renderer2.push("<!--[0-->");
|
|
98
|
+
Search_field($$renderer2, {
|
|
99
|
+
id: searchId(),
|
|
100
|
+
class: "cinder-faceted-filter-bar__search",
|
|
101
|
+
value: currentSearchQuery(),
|
|
102
|
+
placeholder: searchPlaceholder,
|
|
103
|
+
"aria-label": searchAriaLabel,
|
|
104
|
+
disabled,
|
|
105
|
+
oninput: handleSearchInput
|
|
106
|
+
});
|
|
107
|
+
} else {
|
|
108
|
+
$$renderer2.push("<!--[-1-->");
|
|
109
|
+
}
|
|
110
|
+
$$renderer2.push(`<!--]--> <!--[-->`);
|
|
105
111
|
const each_array = $.ensure_array_like(facets);
|
|
106
112
|
for (let $$index_1 = 0, $$length = each_array.length;$$index_1 < $$length; $$index_1++) {
|
|
107
113
|
let facet = each_array[$$index_1];
|
|
@@ -192,4 +198,4 @@ function Faceted_filter_bar($$renderer, $$props) {
|
|
|
192
198
|
var faceted_filter_bar_default = Faceted_filter_bar;
|
|
193
199
|
export { Faceted_filter_bar, faceted_filter_bar_default };
|
|
194
200
|
|
|
195
|
-
//# debugId=
|
|
201
|
+
//# debugId=E343E69E0C14B4CA64756E2164756E21
|
|
@@ -61,6 +61,65 @@ function Run_step_branch_disclosure($$renderer, $$props) {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
// src/components/run-step-timeline/run-step-timeline.utilities.ts
|
|
64
|
+
function relocateCompensationSteps(steps) {
|
|
65
|
+
return relocateSiblingItems(steps, (step) => step);
|
|
66
|
+
}
|
|
67
|
+
function relocateSiblingItems(items, getStep) {
|
|
68
|
+
if (!items.some((item) => getStep(item)?.compensates !== undefined))
|
|
69
|
+
return items;
|
|
70
|
+
const stepById = new Map;
|
|
71
|
+
for (const item of items) {
|
|
72
|
+
const step = getStep(item);
|
|
73
|
+
if (step !== undefined) {
|
|
74
|
+
stepById.set(step.id, step);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
const canRelocate = (step) => {
|
|
78
|
+
const visited = new Set([step.id]);
|
|
79
|
+
let targetId = step.compensates;
|
|
80
|
+
while (targetId !== undefined) {
|
|
81
|
+
const target = stepById.get(targetId);
|
|
82
|
+
if (target === undefined || visited.has(targetId))
|
|
83
|
+
return false;
|
|
84
|
+
visited.add(targetId);
|
|
85
|
+
targetId = target.compensates;
|
|
86
|
+
}
|
|
87
|
+
return true;
|
|
88
|
+
};
|
|
89
|
+
const relocatable = new Set;
|
|
90
|
+
const compensationsByTarget = new Map;
|
|
91
|
+
for (const item of items) {
|
|
92
|
+
const step = getStep(item);
|
|
93
|
+
if (step === undefined || step.compensates === undefined || !canRelocate(step))
|
|
94
|
+
continue;
|
|
95
|
+
relocatable.add(step);
|
|
96
|
+
const compensations = compensationsByTarget.get(step.compensates) ?? [];
|
|
97
|
+
compensations.push(item);
|
|
98
|
+
compensationsByTarget.set(step.compensates, compensations);
|
|
99
|
+
}
|
|
100
|
+
const result = [];
|
|
101
|
+
const appendWithCompensations = (item) => {
|
|
102
|
+
result.push(item);
|
|
103
|
+
const step = getStep(item);
|
|
104
|
+
if (step === undefined)
|
|
105
|
+
return;
|
|
106
|
+
for (const compensation of compensationsByTarget.get(step.id) ?? []) {
|
|
107
|
+
appendWithCompensations(compensation);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
for (const item of items) {
|
|
111
|
+
const step = getStep(item);
|
|
112
|
+
if (step === undefined || !relocatable.has(step))
|
|
113
|
+
appendWithCompensations(item);
|
|
114
|
+
}
|
|
115
|
+
return result;
|
|
116
|
+
}
|
|
117
|
+
function relocateCompensationEntries(entries) {
|
|
118
|
+
return relocateSiblingItems(entries, (entry) => isBranchGroup(entry) ? undefined : entry);
|
|
119
|
+
}
|
|
120
|
+
function isBranchGroup(entry) {
|
|
121
|
+
return "kind" in entry && entry.kind === "branch";
|
|
122
|
+
}
|
|
64
123
|
function statusDotStatus(status) {
|
|
65
124
|
switch (status) {
|
|
66
125
|
case "succeeded":
|
|
@@ -280,8 +339,8 @@ function Run_step_timeline($$renderer, $$props) {
|
|
|
280
339
|
...rest
|
|
281
340
|
} = $$props;
|
|
282
341
|
const resolvedAriaLabel = $2.derived(() => ariaLabelledby === undefined && ariaLabel === undefined ? label : ariaLabel);
|
|
283
|
-
const renderedEntries = $2.derived(() => flattenEntries(steps));
|
|
284
|
-
function
|
|
342
|
+
const renderedEntries = $2.derived(() => flattenEntries(relocateCompensationEntries(steps)));
|
|
343
|
+
function isBranchGroup2(entry) {
|
|
285
344
|
return "kind" in entry && entry.kind === "branch";
|
|
286
345
|
}
|
|
287
346
|
function flattenEntries(entries) {
|
|
@@ -294,7 +353,7 @@ function Run_step_timeline($$renderer, $$props) {
|
|
|
294
353
|
stepRun = [];
|
|
295
354
|
};
|
|
296
355
|
for (const entry of entries) {
|
|
297
|
-
if (
|
|
356
|
+
if (isBranchGroup2(entry)) {
|
|
298
357
|
flushRun();
|
|
299
358
|
result.push({
|
|
300
359
|
kind: "branch",
|
|
@@ -356,7 +415,7 @@ function Run_step_timeline($$renderer, $$props) {
|
|
|
356
415
|
}
|
|
357
416
|
function flattenSteps(list, pathPrefix) {
|
|
358
417
|
const rows = [];
|
|
359
|
-
appendRunStepRows(rows, list, 0, pathPrefix);
|
|
418
|
+
appendRunStepRows(rows, relocateCompensationSteps(list), 0, pathPrefix);
|
|
360
419
|
const currentRowIndex = deepestCurrentStepIndex(rows);
|
|
361
420
|
const labelByPathKey = new Map;
|
|
362
421
|
for (const row of rows) {
|
|
@@ -394,7 +453,7 @@ function Run_step_timeline($$renderer, $$props) {
|
|
|
394
453
|
rows.push({ kind: "step", step, depth, pathKey });
|
|
395
454
|
if (step.children && step.children.length > 0) {
|
|
396
455
|
if (depth < MAX_NESTED_STEP_DEPTH) {
|
|
397
|
-
appendRunStepRows(rows, step.children, depth + 1, pathKey);
|
|
456
|
+
appendRunStepRows(rows, relocateCompensationSteps(step.children), depth + 1, pathKey);
|
|
398
457
|
} else {
|
|
399
458
|
const hiddenSummary = summarizeNestedRunSteps(step.children);
|
|
400
459
|
rows.push({
|
|
@@ -731,4 +790,4 @@ function Run_step_timeline($$renderer, $$props) {
|
|
|
731
790
|
var run_step_timeline_default = Run_step_timeline;
|
|
732
791
|
export { Run_step_timeline, run_step_timeline_default };
|
|
733
792
|
|
|
734
|
-
//# debugId=
|
|
793
|
+
//# debugId=30B377135A5A317664756E2164756E21
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import {
|
|
2
|
+
strictStableContext
|
|
3
|
+
} from "./index.server-bn02606y.js";
|
|
4
|
+
import {
|
|
5
|
+
classNames
|
|
6
|
+
} from "./index.server-z7nvkz8v.js";
|
|
7
|
+
|
|
8
|
+
// src/components/accordion-item/accordion-item.svelte
|
|
9
|
+
import * as $ from "svelte/internal/server";
|
|
10
|
+
|
|
11
|
+
// src/components/accordion/accordion.context.ts
|
|
12
|
+
var [getAccordionContext, setAccordionContext] = strictStableContext("@lostgradient/cinder/accordion/context", "AccordionItem must be rendered inside an Accordion");
|
|
13
|
+
|
|
14
|
+
// src/components/accordion-item/accordion-item.svelte
|
|
15
|
+
function Accordion_item($$renderer, $$props) {
|
|
16
|
+
$$renderer.component(($$renderer2) => {
|
|
17
|
+
const instanceId = $.props_id($$renderer2);
|
|
18
|
+
let {
|
|
19
|
+
id,
|
|
20
|
+
title,
|
|
21
|
+
disabled = false,
|
|
22
|
+
class: className,
|
|
23
|
+
style,
|
|
24
|
+
children
|
|
25
|
+
} = $$props;
|
|
26
|
+
const context = getAccordionContext();
|
|
27
|
+
const isExpanded = $.derived(() => context.expandedIds.includes(id));
|
|
28
|
+
const headerId = $.derived(() => `${instanceId}-header`);
|
|
29
|
+
const panelId = $.derived(() => `${instanceId}-panel`);
|
|
30
|
+
function handleClick() {
|
|
31
|
+
if (disabled)
|
|
32
|
+
return;
|
|
33
|
+
context.toggle(id);
|
|
34
|
+
}
|
|
35
|
+
$$renderer2.push(`<div${$.attr_class($.clsx(classNames("cinder-accordion-item", className)))}${$.attr_style(style)}${$.attr("data-cinder-expanded", isExpanded() ? "" : undefined)}${$.attr("data-cinder-disabled", disabled ? "" : undefined)}><h3 class="cinder-accordion-item__heading"><button type="button"${$.attr("id", headerId())} class="cinder-accordion-item__trigger"${$.attr("aria-expanded", isExpanded())}${$.attr("aria-controls", panelId())}${$.attr("disabled", disabled, true)}><span class="cinder-accordion-item__title">${$.escape(title)}</span> <svg class="cinder-accordion-item__chevron" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" focusable="false"><path fill-rule="evenodd" d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06z" clip-rule="evenodd"></path></svg></button></h3> <div${$.attr("id", panelId())} class="cinder-accordion-item__panel"${$.attr("hidden", !isExpanded())}>`);
|
|
36
|
+
if (isExpanded()) {
|
|
37
|
+
$$renderer2.push("<!--[0-->");
|
|
38
|
+
$$renderer2.push(`<div class="cinder-accordion-item__panel-inner">`);
|
|
39
|
+
children($$renderer2);
|
|
40
|
+
$$renderer2.push(`<!----></div>`);
|
|
41
|
+
} else {
|
|
42
|
+
$$renderer2.push("<!--[-1-->");
|
|
43
|
+
}
|
|
44
|
+
$$renderer2.push(`<!--]--></div></div>`);
|
|
45
|
+
}, Accordion_item);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { setAccordionContext, Accordion_item };
|
|
49
|
+
|
|
50
|
+
//# debugId=D9BC38A69C5EE29564756E2164756E21
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Input
|
|
3
|
+
} from "./index.server-8xvc73zh.js";
|
|
1
4
|
import {
|
|
2
5
|
Modal
|
|
3
6
|
} from "./index.server-t3hknp1c.js";
|
|
@@ -13,6 +16,7 @@ import * as $ from "svelte/internal/server";
|
|
|
13
16
|
function Confirm_dialog($$renderer, $$props) {
|
|
14
17
|
$$renderer.component(($$renderer2) => {
|
|
15
18
|
const descriptionId = $.props_id($$renderer2);
|
|
19
|
+
const typedConfirmationId = `${descriptionId}-typed-confirmation`;
|
|
16
20
|
let {
|
|
17
21
|
open = false,
|
|
18
22
|
title,
|
|
@@ -20,12 +24,19 @@ function Confirm_dialog($$renderer, $$props) {
|
|
|
20
24
|
cancelLabel = "Cancel",
|
|
21
25
|
confirmLabel,
|
|
22
26
|
destructive = false,
|
|
27
|
+
typeToConfirm,
|
|
28
|
+
typeToConfirmLabel,
|
|
23
29
|
onconfirm,
|
|
24
30
|
oncancel,
|
|
25
31
|
triggerRef = null,
|
|
26
32
|
class: className
|
|
27
33
|
} = $$props;
|
|
28
34
|
const describedById = $.derived(() => description ? descriptionId : undefined);
|
|
35
|
+
const normalizedTypeToConfirm = $.derived(() => typeToConfirm?.trim() || undefined);
|
|
36
|
+
const normalizedTypeToConfirmLabel = $.derived(() => typeToConfirmLabel?.trim() || undefined);
|
|
37
|
+
let typedConfirmation = "";
|
|
38
|
+
let previousOpen = open;
|
|
39
|
+
const typedConfirmationMatches = $.derived(() => normalizedTypeToConfirm() === undefined || typedConfirmation.trim().toLowerCase() === normalizedTypeToConfirm().toLowerCase());
|
|
29
40
|
function handleCancel() {
|
|
30
41
|
open = false;
|
|
31
42
|
oncancel?.();
|
|
@@ -51,6 +62,7 @@ function Confirm_dialog($$renderer, $$props) {
|
|
|
51
62
|
$$renderer4.push(`<!----> `);
|
|
52
63
|
Button($$renderer4, {
|
|
53
64
|
variant: destructive ? "danger" : "primary",
|
|
65
|
+
disabled: !typedConfirmationMatches(),
|
|
54
66
|
onclick: handleConfirm,
|
|
55
67
|
children: ($$renderer5) => {
|
|
56
68
|
$$renderer5.push(`<!---->${$.escape(confirmLabel)}`);
|
|
@@ -83,6 +95,25 @@ function Confirm_dialog($$renderer, $$props) {
|
|
|
83
95
|
} else {
|
|
84
96
|
$$renderer4.push("<!--[-1-->");
|
|
85
97
|
}
|
|
98
|
+
$$renderer4.push(`<!--]--> `);
|
|
99
|
+
if (normalizedTypeToConfirm() !== undefined) {
|
|
100
|
+
$$renderer4.push("<!--[0-->");
|
|
101
|
+
Input($$renderer4, {
|
|
102
|
+
id: typedConfirmationId,
|
|
103
|
+
class: "cinder-confirm-dialog__typed-confirmation",
|
|
104
|
+
label: normalizedTypeToConfirmLabel() ?? `Type "${normalizedTypeToConfirm()}" to confirm`,
|
|
105
|
+
autocomplete: "off",
|
|
106
|
+
get value() {
|
|
107
|
+
return typedConfirmation;
|
|
108
|
+
},
|
|
109
|
+
set value($$value) {
|
|
110
|
+
typedConfirmation = $$value;
|
|
111
|
+
$$settled = false;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
} else {
|
|
115
|
+
$$renderer4.push("<!--[-1-->");
|
|
116
|
+
}
|
|
86
117
|
$$renderer4.push(`<!--]-->`);
|
|
87
118
|
},
|
|
88
119
|
$$slots: { footer: true, default: true }
|
|
@@ -104,4 +135,4 @@ function Confirm_dialog($$renderer, $$props) {
|
|
|
104
135
|
var confirm_dialog_default = Confirm_dialog;
|
|
105
136
|
export { Confirm_dialog, confirm_dialog_default };
|
|
106
137
|
|
|
107
|
-
//# debugId=
|
|
138
|
+
//# debugId=F4D3FC361521845464756E2164756E21
|