@iroco/ui 0.18.0 → 0.18.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/lib/button.scss +61 -0
- package/lib/index.js +452 -120
- package/lib/index.min.js +55 -55
- package/lib/index.mjs +450 -121
- package/lib/index.mjs.css +441 -101
- package/lib/iroco.css +1 -0
- package/lib/iroco.css.map +1 -1
- package/lib/iroco.scss +1 -0
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -497,7 +497,7 @@ class SvelteComponent {
|
|
|
497
497
|
|
|
498
498
|
/* src/Button.svelte generated by Svelte v3.38.2 */
|
|
499
499
|
|
|
500
|
-
function create_fragment$
|
|
500
|
+
function create_fragment$i(ctx) {
|
|
501
501
|
let button;
|
|
502
502
|
let button_class_value;
|
|
503
503
|
let current;
|
|
@@ -511,7 +511,7 @@ function create_fragment$h(ctx) {
|
|
|
511
511
|
button = element("button");
|
|
512
512
|
if (default_slot) default_slot.c();
|
|
513
513
|
attr(button, "id", /*id*/ ctx[5]);
|
|
514
|
-
attr(button, "class", button_class_value = "" + (null_to_empty(`iroco-ui-button iroco-ui-button--${/*size*/ ctx[4]} iroco-ui-button--${/*kind*/ ctx[3]}`) + " svelte-
|
|
514
|
+
attr(button, "class", button_class_value = "" + (null_to_empty(`iroco-ui-button iroco-ui-button--${/*size*/ ctx[4]} iroco-ui-button--${/*kind*/ ctx[3]}`) + " svelte-2gb1hx"));
|
|
515
515
|
attr(button, "type", /*type*/ ctx[1]);
|
|
516
516
|
button.disabled = /*disabled*/ ctx[2];
|
|
517
517
|
toggle_class(button, "disabled", /*disabled*/ ctx[2]);
|
|
@@ -542,7 +542,7 @@ function create_fragment$h(ctx) {
|
|
|
542
542
|
attr(button, "id", /*id*/ ctx[5]);
|
|
543
543
|
}
|
|
544
544
|
|
|
545
|
-
if (!current || dirty & /*size, kind*/ 24 && button_class_value !== (button_class_value = "" + (null_to_empty(`iroco-ui-button iroco-ui-button--${/*size*/ ctx[4]} iroco-ui-button--${/*kind*/ ctx[3]}`) + " svelte-
|
|
545
|
+
if (!current || dirty & /*size, kind*/ 24 && button_class_value !== (button_class_value = "" + (null_to_empty(`iroco-ui-button iroco-ui-button--${/*size*/ ctx[4]} iroco-ui-button--${/*kind*/ ctx[3]}`) + " svelte-2gb1hx"))) {
|
|
546
546
|
attr(button, "class", button_class_value);
|
|
547
547
|
}
|
|
548
548
|
|
|
@@ -577,7 +577,7 @@ function create_fragment$h(ctx) {
|
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
579
|
|
|
580
|
-
function instance$
|
|
580
|
+
function instance$h($$self, $$props, $$invalidate) {
|
|
581
581
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
582
582
|
let { type = "button" } = $$props;
|
|
583
583
|
let { disabled = false } = $$props;
|
|
@@ -625,7 +625,7 @@ class Button extends SvelteComponent {
|
|
|
625
625
|
constructor(options) {
|
|
626
626
|
super();
|
|
627
627
|
|
|
628
|
-
init(this, options, instance$
|
|
628
|
+
init(this, options, instance$h, create_fragment$i, safe_not_equal, {
|
|
629
629
|
type: 1,
|
|
630
630
|
disabled: 2,
|
|
631
631
|
kind: 3,
|
|
@@ -638,7 +638,7 @@ class Button extends SvelteComponent {
|
|
|
638
638
|
|
|
639
639
|
/* src/TextInput.svelte generated by Svelte v3.38.2 */
|
|
640
640
|
|
|
641
|
-
function create_if_block_2(ctx) {
|
|
641
|
+
function create_if_block_2$1(ctx) {
|
|
642
642
|
let label_1;
|
|
643
643
|
let t;
|
|
644
644
|
|
|
@@ -671,8 +671,8 @@ function create_if_block$4(ctx) {
|
|
|
671
671
|
let p;
|
|
672
672
|
|
|
673
673
|
function select_block_type(ctx, dirty) {
|
|
674
|
-
if (/*htmlError*/ ctx[5]) return create_if_block_1$
|
|
675
|
-
return create_else_block$
|
|
674
|
+
if (/*htmlError*/ ctx[5]) return create_if_block_1$2;
|
|
675
|
+
return create_else_block$2;
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
let current_block_type = select_block_type(ctx);
|
|
@@ -710,7 +710,7 @@ function create_if_block$4(ctx) {
|
|
|
710
710
|
}
|
|
711
711
|
|
|
712
712
|
// (45:3) {:else}
|
|
713
|
-
function create_else_block$
|
|
713
|
+
function create_else_block$2(ctx) {
|
|
714
714
|
let t_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
|
|
715
715
|
let t;
|
|
716
716
|
|
|
@@ -731,7 +731,7 @@ function create_else_block$1(ctx) {
|
|
|
731
731
|
}
|
|
732
732
|
|
|
733
733
|
// (43:3) {#if htmlError}
|
|
734
|
-
function create_if_block_1$
|
|
734
|
+
function create_if_block_1$2(ctx) {
|
|
735
735
|
let html_tag;
|
|
736
736
|
let raw_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
|
|
737
737
|
let html_anchor;
|
|
@@ -755,14 +755,14 @@ function create_if_block_1$1(ctx) {
|
|
|
755
755
|
};
|
|
756
756
|
}
|
|
757
757
|
|
|
758
|
-
function create_fragment$
|
|
758
|
+
function create_fragment$h(ctx) {
|
|
759
759
|
let div;
|
|
760
760
|
let t0;
|
|
761
761
|
let input;
|
|
762
762
|
let t1;
|
|
763
763
|
let mounted;
|
|
764
764
|
let dispose;
|
|
765
|
-
let if_block0 = /*label*/ ctx[2] && create_if_block_2(ctx);
|
|
765
|
+
let if_block0 = /*label*/ ctx[2] && create_if_block_2$1(ctx);
|
|
766
766
|
let if_block1 = /*error*/ ctx[4] != null && create_if_block$4(ctx);
|
|
767
767
|
|
|
768
768
|
return {
|
|
@@ -815,7 +815,7 @@ function create_fragment$g(ctx) {
|
|
|
815
815
|
if (if_block0) {
|
|
816
816
|
if_block0.p(ctx, dirty);
|
|
817
817
|
} else {
|
|
818
|
-
if_block0 = create_if_block_2(ctx);
|
|
818
|
+
if_block0 = create_if_block_2$1(ctx);
|
|
819
819
|
if_block0.c();
|
|
820
820
|
if_block0.m(div, t0);
|
|
821
821
|
}
|
|
@@ -877,7 +877,7 @@ function create_fragment$g(ctx) {
|
|
|
877
877
|
};
|
|
878
878
|
}
|
|
879
879
|
|
|
880
|
-
function instance$
|
|
880
|
+
function instance$g($$self, $$props, $$invalidate) {
|
|
881
881
|
var { TextType } = $$props;
|
|
882
882
|
|
|
883
883
|
(function (TextType) {
|
|
@@ -949,7 +949,7 @@ class TextInput extends SvelteComponent {
|
|
|
949
949
|
constructor(options) {
|
|
950
950
|
super();
|
|
951
951
|
|
|
952
|
-
init(this, options, instance$
|
|
952
|
+
init(this, options, instance$g, create_fragment$h, safe_not_equal, {
|
|
953
953
|
TextType: 11,
|
|
954
954
|
id: 1,
|
|
955
955
|
type: 12,
|
|
@@ -968,7 +968,7 @@ class TextInput extends SvelteComponent {
|
|
|
968
968
|
|
|
969
969
|
/* src/RadioButton.svelte generated by Svelte v3.38.2 */
|
|
970
970
|
|
|
971
|
-
function create_fragment$
|
|
971
|
+
function create_fragment$g(ctx) {
|
|
972
972
|
let label_1;
|
|
973
973
|
let input;
|
|
974
974
|
let t0;
|
|
@@ -1064,7 +1064,7 @@ function create_fragment$f(ctx) {
|
|
|
1064
1064
|
};
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
|
-
function instance$
|
|
1067
|
+
function instance$f($$self, $$props, $$invalidate) {
|
|
1068
1068
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1069
1069
|
const label = "";
|
|
1070
1070
|
let { value } = $$props;
|
|
@@ -1115,7 +1115,7 @@ class RadioButton extends SvelteComponent {
|
|
|
1115
1115
|
constructor(options) {
|
|
1116
1116
|
super();
|
|
1117
1117
|
|
|
1118
|
-
init(this, options, instance$
|
|
1118
|
+
init(this, options, instance$f, create_fragment$g, safe_not_equal, {
|
|
1119
1119
|
label: 5,
|
|
1120
1120
|
value: 2,
|
|
1121
1121
|
group: 0,
|
|
@@ -1131,7 +1131,7 @@ class RadioButton extends SvelteComponent {
|
|
|
1131
1131
|
|
|
1132
1132
|
/* src/NumberInput.svelte generated by Svelte v3.38.2 */
|
|
1133
1133
|
|
|
1134
|
-
function create_if_block_1(ctx) {
|
|
1134
|
+
function create_if_block_1$1(ctx) {
|
|
1135
1135
|
let label_1;
|
|
1136
1136
|
let t;
|
|
1137
1137
|
|
|
@@ -1184,14 +1184,14 @@ function create_if_block$3(ctx) {
|
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
1186
1186
|
|
|
1187
|
-
function create_fragment$
|
|
1187
|
+
function create_fragment$f(ctx) {
|
|
1188
1188
|
let div;
|
|
1189
1189
|
let t0;
|
|
1190
1190
|
let input;
|
|
1191
1191
|
let t1;
|
|
1192
1192
|
let mounted;
|
|
1193
1193
|
let dispose;
|
|
1194
|
-
let if_block0 = /*label*/ ctx[2] && create_if_block_1(ctx);
|
|
1194
|
+
let if_block0 = /*label*/ ctx[2] && create_if_block_1$1(ctx);
|
|
1195
1195
|
|
|
1196
1196
|
let input_levels = [
|
|
1197
1197
|
{ id: /*id*/ ctx[1] },
|
|
@@ -1244,7 +1244,7 @@ function create_fragment$e(ctx) {
|
|
|
1244
1244
|
if (if_block0) {
|
|
1245
1245
|
if_block0.p(ctx, dirty);
|
|
1246
1246
|
} else {
|
|
1247
|
-
if_block0 = create_if_block_1(ctx);
|
|
1247
|
+
if_block0 = create_if_block_1$1(ctx);
|
|
1248
1248
|
if_block0.c();
|
|
1249
1249
|
if_block0.m(div, t0);
|
|
1250
1250
|
}
|
|
@@ -1291,7 +1291,7 @@ function create_fragment$e(ctx) {
|
|
|
1291
1291
|
};
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
|
-
function instance$
|
|
1294
|
+
function instance$e($$self, $$props, $$invalidate) {
|
|
1295
1295
|
const omit_props_names = ["id","label","placeholder","error","value","min","max"];
|
|
1296
1296
|
let $$restProps = compute_rest_props($$props, omit_props_names);
|
|
1297
1297
|
let { id } = $$props;
|
|
@@ -1341,7 +1341,7 @@ class NumberInput extends SvelteComponent {
|
|
|
1341
1341
|
constructor(options) {
|
|
1342
1342
|
super();
|
|
1343
1343
|
|
|
1344
|
-
init(this, options, instance$
|
|
1344
|
+
init(this, options, instance$e, create_fragment$f, safe_not_equal, {
|
|
1345
1345
|
id: 1,
|
|
1346
1346
|
label: 2,
|
|
1347
1347
|
placeholder: 3,
|
|
@@ -3795,7 +3795,7 @@ function create_if_block$2(ctx) {
|
|
|
3795
3795
|
};
|
|
3796
3796
|
}
|
|
3797
3797
|
|
|
3798
|
-
function create_fragment$
|
|
3798
|
+
function create_fragment$e(ctx) {
|
|
3799
3799
|
let if_block_anchor;
|
|
3800
3800
|
let if_block = /*icon*/ ctx[3] && create_if_block$2(ctx);
|
|
3801
3801
|
|
|
@@ -3831,7 +3831,7 @@ function create_fragment$d(ctx) {
|
|
|
3831
3831
|
};
|
|
3832
3832
|
}
|
|
3833
3833
|
|
|
3834
|
-
function instance$
|
|
3834
|
+
function instance$d($$self, $$props, $$invalidate) {
|
|
3835
3835
|
let { name } = $$props;
|
|
3836
3836
|
let { stroke } = $$props;
|
|
3837
3837
|
let { strokeWidth } = $$props;
|
|
@@ -3865,7 +3865,7 @@ class Icon extends SvelteComponent {
|
|
|
3865
3865
|
constructor(options) {
|
|
3866
3866
|
super();
|
|
3867
3867
|
|
|
3868
|
-
init(this, options, instance$
|
|
3868
|
+
init(this, options, instance$d, create_fragment$e, safe_not_equal, {
|
|
3869
3869
|
name: 4,
|
|
3870
3870
|
stroke: 5,
|
|
3871
3871
|
strokeWidth: 6,
|
|
@@ -3878,7 +3878,7 @@ class Icon extends SvelteComponent {
|
|
|
3878
3878
|
|
|
3879
3879
|
/* src/IconIrocoLogo.svelte generated by Svelte v3.38.2 */
|
|
3880
3880
|
|
|
3881
|
-
function create_fragment$
|
|
3881
|
+
function create_fragment$d(ctx) {
|
|
3882
3882
|
let svg;
|
|
3883
3883
|
let path0;
|
|
3884
3884
|
let path1;
|
|
@@ -3920,7 +3920,7 @@ function create_fragment$c(ctx) {
|
|
|
3920
3920
|
};
|
|
3921
3921
|
}
|
|
3922
3922
|
|
|
3923
|
-
function instance$
|
|
3923
|
+
function instance$c($$self, $$props, $$invalidate) {
|
|
3924
3924
|
let { width = "5rem" } = $$props;
|
|
3925
3925
|
let { height = "5rem" } = $$props;
|
|
3926
3926
|
|
|
@@ -3935,13 +3935,13 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
3935
3935
|
class IconIrocoLogo extends SvelteComponent {
|
|
3936
3936
|
constructor(options) {
|
|
3937
3937
|
super();
|
|
3938
|
-
init(this, options, instance$
|
|
3938
|
+
init(this, options, instance$c, create_fragment$d, safe_not_equal, { width: 0, height: 1 });
|
|
3939
3939
|
}
|
|
3940
3940
|
}
|
|
3941
3941
|
|
|
3942
3942
|
/* src/Loader.svelte generated by Svelte v3.38.2 */
|
|
3943
3943
|
|
|
3944
|
-
function create_fragment$
|
|
3944
|
+
function create_fragment$c(ctx) {
|
|
3945
3945
|
let div;
|
|
3946
3946
|
let iconirocologo;
|
|
3947
3947
|
let current;
|
|
@@ -3978,13 +3978,13 @@ function create_fragment$b(ctx) {
|
|
|
3978
3978
|
class Loader extends SvelteComponent {
|
|
3979
3979
|
constructor(options) {
|
|
3980
3980
|
super();
|
|
3981
|
-
init(this, options, null, create_fragment$
|
|
3981
|
+
init(this, options, null, create_fragment$c, safe_not_equal, {});
|
|
3982
3982
|
}
|
|
3983
3983
|
}
|
|
3984
3984
|
|
|
3985
3985
|
/* src/IconInfo.svelte generated by Svelte v3.38.2 */
|
|
3986
3986
|
|
|
3987
|
-
function create_fragment$
|
|
3987
|
+
function create_fragment$b(ctx) {
|
|
3988
3988
|
let svg;
|
|
3989
3989
|
let path;
|
|
3990
3990
|
|
|
@@ -4025,7 +4025,7 @@ function create_fragment$a(ctx) {
|
|
|
4025
4025
|
};
|
|
4026
4026
|
}
|
|
4027
4027
|
|
|
4028
|
-
function instance$
|
|
4028
|
+
function instance$b($$self, $$props, $$invalidate) {
|
|
4029
4029
|
let { width = "5rem" } = $$props;
|
|
4030
4030
|
let { height = "5rem" } = $$props;
|
|
4031
4031
|
|
|
@@ -4040,13 +4040,13 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
4040
4040
|
class IconInfo extends SvelteComponent {
|
|
4041
4041
|
constructor(options) {
|
|
4042
4042
|
super();
|
|
4043
|
-
init(this, options, instance$
|
|
4043
|
+
init(this, options, instance$b, create_fragment$b, safe_not_equal, { width: 0, height: 1 });
|
|
4044
4044
|
}
|
|
4045
4045
|
}
|
|
4046
4046
|
|
|
4047
4047
|
/* src/IconMastodon.svelte generated by Svelte v3.38.2 */
|
|
4048
4048
|
|
|
4049
|
-
function create_fragment$
|
|
4049
|
+
function create_fragment$a(ctx) {
|
|
4050
4050
|
let svg;
|
|
4051
4051
|
let title;
|
|
4052
4052
|
let t;
|
|
@@ -4094,7 +4094,7 @@ function create_fragment$9(ctx) {
|
|
|
4094
4094
|
};
|
|
4095
4095
|
}
|
|
4096
4096
|
|
|
4097
|
-
function instance$
|
|
4097
|
+
function instance$a($$self, $$props, $$invalidate) {
|
|
4098
4098
|
let { width = "5em" } = $$props;
|
|
4099
4099
|
let { height = "5em" } = $$props;
|
|
4100
4100
|
let { fill = "currentColor" } = $$props;
|
|
@@ -4111,13 +4111,13 @@ function instance$9($$self, $$props, $$invalidate) {
|
|
|
4111
4111
|
class IconMastodon extends SvelteComponent {
|
|
4112
4112
|
constructor(options) {
|
|
4113
4113
|
super();
|
|
4114
|
-
init(this, options, instance$
|
|
4114
|
+
init(this, options, instance$a, create_fragment$a, safe_not_equal, { width: 0, height: 1, fill: 2 });
|
|
4115
4115
|
}
|
|
4116
4116
|
}
|
|
4117
4117
|
|
|
4118
4118
|
/* src/IconClose.svelte generated by Svelte v3.38.2 */
|
|
4119
4119
|
|
|
4120
|
-
function create_fragment$
|
|
4120
|
+
function create_fragment$9(ctx) {
|
|
4121
4121
|
let svg;
|
|
4122
4122
|
let path;
|
|
4123
4123
|
|
|
@@ -4157,7 +4157,7 @@ function create_fragment$8(ctx) {
|
|
|
4157
4157
|
};
|
|
4158
4158
|
}
|
|
4159
4159
|
|
|
4160
|
-
function instance$
|
|
4160
|
+
function instance$9($$self, $$props, $$invalidate) {
|
|
4161
4161
|
let { width = "5rem" } = $$props;
|
|
4162
4162
|
let { height = "5rem" } = $$props;
|
|
4163
4163
|
|
|
@@ -4172,7 +4172,7 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
4172
4172
|
class IconClose extends SvelteComponent {
|
|
4173
4173
|
constructor(options) {
|
|
4174
4174
|
super();
|
|
4175
|
-
init(this, options, instance$
|
|
4175
|
+
init(this, options, instance$9, create_fragment$9, safe_not_equal, { width: 0, height: 1 });
|
|
4176
4176
|
}
|
|
4177
4177
|
}
|
|
4178
4178
|
|
|
@@ -4211,8 +4211,11 @@ function create_each_block$1(ctx) {
|
|
|
4211
4211
|
? /*item*/ ctx[7].hrefOrCallback
|
|
4212
4212
|
: "#");
|
|
4213
4213
|
|
|
4214
|
-
attr(a, "class", "svelte-
|
|
4215
|
-
|
|
4214
|
+
attr(a, "class", "svelte-nc4hey");
|
|
4215
|
+
toggle_class(a, "iroco-ui-button", /*item*/ ctx[7].button);
|
|
4216
|
+
toggle_class(a, "iroco-ui-button--small", /*item*/ ctx[7].button);
|
|
4217
|
+
toggle_class(a, "iroco-ui-button--success", /*item*/ ctx[7].button);
|
|
4218
|
+
attr(li, "class", li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-nc4hey");
|
|
4216
4219
|
toggle_class(li, "active", /*active*/ ctx[2] === /*item*/ ctx[7].name);
|
|
4217
4220
|
},
|
|
4218
4221
|
m(target, anchor) {
|
|
@@ -4236,7 +4239,19 @@ function create_each_block$1(ctx) {
|
|
|
4236
4239
|
attr(a, "href", a_href_value);
|
|
4237
4240
|
}
|
|
4238
4241
|
|
|
4239
|
-
if (dirty & /*
|
|
4242
|
+
if (dirty & /*navigationItems*/ 1) {
|
|
4243
|
+
toggle_class(a, "iroco-ui-button", /*item*/ ctx[7].button);
|
|
4244
|
+
}
|
|
4245
|
+
|
|
4246
|
+
if (dirty & /*navigationItems*/ 1) {
|
|
4247
|
+
toggle_class(a, "iroco-ui-button--small", /*item*/ ctx[7].button);
|
|
4248
|
+
}
|
|
4249
|
+
|
|
4250
|
+
if (dirty & /*navigationItems*/ 1) {
|
|
4251
|
+
toggle_class(a, "iroco-ui-button--success", /*item*/ ctx[7].button);
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4254
|
+
if (dirty & /*type*/ 2 && li_class_value !== (li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-nc4hey")) {
|
|
4240
4255
|
attr(li, "class", li_class_value);
|
|
4241
4256
|
}
|
|
4242
4257
|
|
|
@@ -4252,7 +4267,7 @@ function create_each_block$1(ctx) {
|
|
|
4252
4267
|
};
|
|
4253
4268
|
}
|
|
4254
4269
|
|
|
4255
|
-
function create_fragment$
|
|
4270
|
+
function create_fragment$8(ctx) {
|
|
4256
4271
|
let nav;
|
|
4257
4272
|
let button;
|
|
4258
4273
|
let iconclose;
|
|
@@ -4284,10 +4299,10 @@ function create_fragment$7(ctx) {
|
|
|
4284
4299
|
each_blocks[i].c();
|
|
4285
4300
|
}
|
|
4286
4301
|
|
|
4287
|
-
attr(button, "class", button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-
|
|
4288
|
-
attr(ul, "class", ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-
|
|
4302
|
+
attr(button, "class", button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-nc4hey");
|
|
4303
|
+
attr(ul, "class", ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-nc4hey");
|
|
4289
4304
|
attr(nav, "data-testid", /*type*/ ctx[1]);
|
|
4290
|
-
attr(nav, "class", nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-
|
|
4305
|
+
attr(nav, "class", nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-nc4hey");
|
|
4291
4306
|
},
|
|
4292
4307
|
m(target, anchor) {
|
|
4293
4308
|
insert(target, nav, anchor);
|
|
@@ -4308,7 +4323,7 @@ function create_fragment$7(ctx) {
|
|
|
4308
4323
|
}
|
|
4309
4324
|
},
|
|
4310
4325
|
p(ctx, [dirty]) {
|
|
4311
|
-
if (!current || dirty & /*type*/ 2 && button_class_value !== (button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-
|
|
4326
|
+
if (!current || dirty & /*type*/ 2 && button_class_value !== (button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-nc4hey")) {
|
|
4312
4327
|
attr(button, "class", button_class_value);
|
|
4313
4328
|
}
|
|
4314
4329
|
|
|
@@ -4335,7 +4350,7 @@ function create_fragment$7(ctx) {
|
|
|
4335
4350
|
each_blocks.length = each_value.length;
|
|
4336
4351
|
}
|
|
4337
4352
|
|
|
4338
|
-
if (!current || dirty & /*type*/ 2 && ul_class_value !== (ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-
|
|
4353
|
+
if (!current || dirty & /*type*/ 2 && ul_class_value !== (ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-nc4hey")) {
|
|
4339
4354
|
attr(ul, "class", ul_class_value);
|
|
4340
4355
|
}
|
|
4341
4356
|
|
|
@@ -4343,7 +4358,7 @@ function create_fragment$7(ctx) {
|
|
|
4343
4358
|
attr(nav, "data-testid", /*type*/ ctx[1]);
|
|
4344
4359
|
}
|
|
4345
4360
|
|
|
4346
|
-
if (!current || dirty & /*type*/ 2 && nav_class_value !== (nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-
|
|
4361
|
+
if (!current || dirty & /*type*/ 2 && nav_class_value !== (nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-nc4hey")) {
|
|
4347
4362
|
attr(nav, "class", nav_class_value);
|
|
4348
4363
|
}
|
|
4349
4364
|
},
|
|
@@ -4366,7 +4381,7 @@ function create_fragment$7(ctx) {
|
|
|
4366
4381
|
};
|
|
4367
4382
|
}
|
|
4368
4383
|
|
|
4369
|
-
function instance$
|
|
4384
|
+
function instance$8($$self, $$props, $$invalidate) {
|
|
4370
4385
|
|
|
4371
4386
|
let { navigationItems } = $$props;
|
|
4372
4387
|
let { type } = $$props;
|
|
@@ -4401,13 +4416,13 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
4401
4416
|
class NavBar extends SvelteComponent {
|
|
4402
4417
|
constructor(options) {
|
|
4403
4418
|
super();
|
|
4404
|
-
init(this, options, instance$
|
|
4419
|
+
init(this, options, instance$8, create_fragment$8, safe_not_equal, { navigationItems: 0, type: 1 });
|
|
4405
4420
|
}
|
|
4406
4421
|
}
|
|
4407
4422
|
|
|
4408
4423
|
/* src/IconBurger.svelte generated by Svelte v3.38.2 */
|
|
4409
4424
|
|
|
4410
|
-
function create_fragment$
|
|
4425
|
+
function create_fragment$7(ctx) {
|
|
4411
4426
|
let svg;
|
|
4412
4427
|
let path;
|
|
4413
4428
|
|
|
@@ -4447,7 +4462,7 @@ function create_fragment$6(ctx) {
|
|
|
4447
4462
|
};
|
|
4448
4463
|
}
|
|
4449
4464
|
|
|
4450
|
-
function instance$
|
|
4465
|
+
function instance$7($$self, $$props, $$invalidate) {
|
|
4451
4466
|
let { width = "5rem" } = $$props;
|
|
4452
4467
|
let { height = "5rem" } = $$props;
|
|
4453
4468
|
|
|
@@ -4460,6 +4475,110 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
4460
4475
|
}
|
|
4461
4476
|
|
|
4462
4477
|
class IconBurger extends SvelteComponent {
|
|
4478
|
+
constructor(options) {
|
|
4479
|
+
super();
|
|
4480
|
+
init(this, options, instance$7, create_fragment$7, safe_not_equal, { width: 0, height: 1 });
|
|
4481
|
+
}
|
|
4482
|
+
}
|
|
4483
|
+
|
|
4484
|
+
/* src/IrocoLogo.svelte generated by Svelte v3.38.2 */
|
|
4485
|
+
|
|
4486
|
+
function create_fragment$6(ctx) {
|
|
4487
|
+
let a;
|
|
4488
|
+
let svg;
|
|
4489
|
+
let title;
|
|
4490
|
+
let t;
|
|
4491
|
+
let path0;
|
|
4492
|
+
let path1;
|
|
4493
|
+
let path2;
|
|
4494
|
+
let path3;
|
|
4495
|
+
let path4;
|
|
4496
|
+
let path5;
|
|
4497
|
+
let path6;
|
|
4498
|
+
|
|
4499
|
+
return {
|
|
4500
|
+
c() {
|
|
4501
|
+
a = element("a");
|
|
4502
|
+
svg = svg_element("svg");
|
|
4503
|
+
title = svg_element("title");
|
|
4504
|
+
t = text("Iroco");
|
|
4505
|
+
path0 = svg_element("path");
|
|
4506
|
+
path1 = svg_element("path");
|
|
4507
|
+
path2 = svg_element("path");
|
|
4508
|
+
path3 = svg_element("path");
|
|
4509
|
+
path4 = svg_element("path");
|
|
4510
|
+
path5 = svg_element("path");
|
|
4511
|
+
path6 = svg_element("path");
|
|
4512
|
+
attr(path0, "fill", "white");
|
|
4513
|
+
attr(path0, "d", "M412,81.41c-7.34,0-12.07-5.19-12.07-12.37S404.77,56.66,412,56.66,424.17,61.85,424.17,69,419.13,81.41,412,81.41Zm10.7,118.4H401V103.54h21.7Z");
|
|
4514
|
+
attr(path0, "transform", "translate(-0.44 -0.49)");
|
|
4515
|
+
attr(path1, "fill", "white");
|
|
4516
|
+
attr(path1, "d", "M505.77,123.71h-6.72c-18,0-27.2,8.26-27.2,28.43v47.67h-21.7V103.54h21.7v14.21h.3c5.5-9.32,15.44-15.28,28.43-15.28h5.19Z");
|
|
4517
|
+
attr(path1, "transform", "translate(-0.44 -0.49)");
|
|
4518
|
+
attr(path2, "fill", "white");
|
|
4519
|
+
attr(path2, "d", "M566.44,201.34c-33,0-49.21-21.54-49.21-49.66S533.43,102,566.44,102s49.35,21.39,49.35,49.66C615.79,179.64,599.29,201.34,566.44,201.34Zm0-80.22c-19.26,0-27.51,12.68-27.51,30.56,0,17.72,8.4,30.56,27.66,30.56s27.5-12.68,27.5-30.56S585.69,121.12,566.44,121.12Z");
|
|
4520
|
+
attr(path2, "transform", "translate(-0.44 -0.49)");
|
|
4521
|
+
attr(path3, "fill", "white");
|
|
4522
|
+
attr(path3, "d", "M721.23,186.52c-11.77,10.7-24.45,14.82-39.12,14.82-33.62,0-49.51-21.54-49.51-48.9,0-28.11,17.88-50.42,49.81-50.42,15.9,0,28,4.27,38.51,14.21L706.1,131.05c-6.88-6.72-14.21-9.93-23.53-9.93-18.8.15-28.27,13.9-28.27,31.32,0,16.66,8.1,29.8,28,29.8,9.17,0,16.35-2.9,24.3-10.54Z");
|
|
4523
|
+
attr(path3, "transform", "translate(-0.44 -0.49)");
|
|
4524
|
+
attr(path4, "fill", "white");
|
|
4525
|
+
attr(path4, "d", "M783.42,201.34c-33,0-49.21-21.54-49.21-49.66S750.41,102,783.42,102s49.35,21.39,49.35,49.66C832.77,179.64,816.27,201.34,783.42,201.34Zm0-80.22c-19.26,0-27.51,12.68-27.51,30.56,0,17.72,8.41,30.56,27.66,30.56s27.5-12.68,27.5-30.56S802.67,121.12,783.42,121.12Z");
|
|
4526
|
+
attr(path4, "transform", "translate(-0.44 -0.49)");
|
|
4527
|
+
attr(path5, "fill", "white");
|
|
4528
|
+
attr(path5, "d", "M122.8,144.26a30.6,30.6,0,0,0-8.07,1.23,5.53,5.53,0,0,0-3.46,3.53,28,28,0,0,0-.92,8.46v76.24a28,28,0,0,0,.92,8.46,5.53,5.53,0,0,0,3.46,3.53,30.18,30.18,0,0,0,8.07,1.23V250q-7.06-.45-19.52-.46-13.22,0-19.67.46v-3.07a30.33,30.33,0,0,0,8.07-1.23,5.49,5.49,0,0,0,3.45-3.53,27.59,27.59,0,0,0,.93-8.46V157.48a27.59,27.59,0,0,0-.93-8.46,5.49,5.49,0,0,0-3.45-3.53,30.75,30.75,0,0,0-8.07-1.23v-3.08q6.45.47,19.67.47,12.3,0,19.52-.47Z");
|
|
4529
|
+
attr(path5, "transform", "translate(-0.44 -0.49)");
|
|
4530
|
+
attr(path6, "fill", "#00D692");
|
|
4531
|
+
attr(path6, "d", "M64.64,198.52a102.78,102.78,0,1,1,77.13,0l-7.41-18.29a83,83,0,1,0-62.31,0Z");
|
|
4532
|
+
attr(path6, "transform", "translate(-0.44 -0.49)");
|
|
4533
|
+
attr(svg, "viewBox", "0 0 832.33 249.52");
|
|
4534
|
+
attr(svg, "width", /*width*/ ctx[0]);
|
|
4535
|
+
attr(svg, "height", /*height*/ ctx[1]);
|
|
4536
|
+
attr(a, "class", "iroco-logo");
|
|
4537
|
+
attr(a, "href", "/");
|
|
4538
|
+
},
|
|
4539
|
+
m(target, anchor) {
|
|
4540
|
+
insert(target, a, anchor);
|
|
4541
|
+
append(a, svg);
|
|
4542
|
+
append(svg, title);
|
|
4543
|
+
append(title, t);
|
|
4544
|
+
append(svg, path0);
|
|
4545
|
+
append(svg, path1);
|
|
4546
|
+
append(svg, path2);
|
|
4547
|
+
append(svg, path3);
|
|
4548
|
+
append(svg, path4);
|
|
4549
|
+
append(svg, path5);
|
|
4550
|
+
append(svg, path6);
|
|
4551
|
+
},
|
|
4552
|
+
p(ctx, [dirty]) {
|
|
4553
|
+
if (dirty & /*width*/ 1) {
|
|
4554
|
+
attr(svg, "width", /*width*/ ctx[0]);
|
|
4555
|
+
}
|
|
4556
|
+
|
|
4557
|
+
if (dirty & /*height*/ 2) {
|
|
4558
|
+
attr(svg, "height", /*height*/ ctx[1]);
|
|
4559
|
+
}
|
|
4560
|
+
},
|
|
4561
|
+
i: noop,
|
|
4562
|
+
o: noop,
|
|
4563
|
+
d(detaching) {
|
|
4564
|
+
if (detaching) detach(a);
|
|
4565
|
+
}
|
|
4566
|
+
};
|
|
4567
|
+
}
|
|
4568
|
+
|
|
4569
|
+
function instance$6($$self, $$props, $$invalidate) {
|
|
4570
|
+
let { width = "10rem" } = $$props;
|
|
4571
|
+
let { height = "10rem" } = $$props;
|
|
4572
|
+
|
|
4573
|
+
$$self.$$set = $$props => {
|
|
4574
|
+
if ("width" in $$props) $$invalidate(0, width = $$props.width);
|
|
4575
|
+
if ("height" in $$props) $$invalidate(1, height = $$props.height);
|
|
4576
|
+
};
|
|
4577
|
+
|
|
4578
|
+
return [width, height];
|
|
4579
|
+
}
|
|
4580
|
+
|
|
4581
|
+
class IrocoLogo extends SvelteComponent {
|
|
4463
4582
|
constructor(options) {
|
|
4464
4583
|
super();
|
|
4465
4584
|
init(this, options, instance$6, create_fragment$6, safe_not_equal, { width: 0, height: 1 });
|
|
@@ -4468,7 +4587,81 @@ class IconBurger extends SvelteComponent {
|
|
|
4468
4587
|
|
|
4469
4588
|
/* src/Navigation.svelte generated by Svelte v3.38.2 */
|
|
4470
4589
|
|
|
4471
|
-
function
|
|
4590
|
+
function create_else_block_1(ctx) {
|
|
4591
|
+
let iconirocologo;
|
|
4592
|
+
let t0;
|
|
4593
|
+
let h1;
|
|
4594
|
+
let t1;
|
|
4595
|
+
let current;
|
|
4596
|
+
iconirocologo = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
|
|
4597
|
+
|
|
4598
|
+
return {
|
|
4599
|
+
c() {
|
|
4600
|
+
create_component(iconirocologo.$$.fragment);
|
|
4601
|
+
t0 = space();
|
|
4602
|
+
h1 = element("h1");
|
|
4603
|
+
t1 = text(/*title*/ ctx[2]);
|
|
4604
|
+
attr(h1, "class", "svelte-lqwgm1");
|
|
4605
|
+
},
|
|
4606
|
+
m(target, anchor) {
|
|
4607
|
+
mount_component(iconirocologo, target, anchor);
|
|
4608
|
+
insert(target, t0, anchor);
|
|
4609
|
+
insert(target, h1, anchor);
|
|
4610
|
+
append(h1, t1);
|
|
4611
|
+
current = true;
|
|
4612
|
+
},
|
|
4613
|
+
p(ctx, dirty) {
|
|
4614
|
+
if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
|
|
4615
|
+
},
|
|
4616
|
+
i(local) {
|
|
4617
|
+
if (current) return;
|
|
4618
|
+
transition_in(iconirocologo.$$.fragment, local);
|
|
4619
|
+
current = true;
|
|
4620
|
+
},
|
|
4621
|
+
o(local) {
|
|
4622
|
+
transition_out(iconirocologo.$$.fragment, local);
|
|
4623
|
+
current = false;
|
|
4624
|
+
},
|
|
4625
|
+
d(detaching) {
|
|
4626
|
+
destroy_component(iconirocologo, detaching);
|
|
4627
|
+
if (detaching) detach(t0);
|
|
4628
|
+
if (detaching) detach(h1);
|
|
4629
|
+
}
|
|
4630
|
+
};
|
|
4631
|
+
}
|
|
4632
|
+
|
|
4633
|
+
// (14:2) {#if title == null}
|
|
4634
|
+
function create_if_block_2(ctx) {
|
|
4635
|
+
let irocologo;
|
|
4636
|
+
let current;
|
|
4637
|
+
irocologo = new IrocoLogo({ props: { width: "10em", height: "10em" } });
|
|
4638
|
+
|
|
4639
|
+
return {
|
|
4640
|
+
c() {
|
|
4641
|
+
create_component(irocologo.$$.fragment);
|
|
4642
|
+
},
|
|
4643
|
+
m(target, anchor) {
|
|
4644
|
+
mount_component(irocologo, target, anchor);
|
|
4645
|
+
current = true;
|
|
4646
|
+
},
|
|
4647
|
+
p: noop,
|
|
4648
|
+
i(local) {
|
|
4649
|
+
if (current) return;
|
|
4650
|
+
transition_in(irocologo.$$.fragment, local);
|
|
4651
|
+
current = true;
|
|
4652
|
+
},
|
|
4653
|
+
o(local) {
|
|
4654
|
+
transition_out(irocologo.$$.fragment, local);
|
|
4655
|
+
current = false;
|
|
4656
|
+
},
|
|
4657
|
+
d(detaching) {
|
|
4658
|
+
destroy_component(irocologo, detaching);
|
|
4659
|
+
}
|
|
4660
|
+
};
|
|
4661
|
+
}
|
|
4662
|
+
|
|
4663
|
+
// (26:1) {#if showMenu}
|
|
4664
|
+
function create_if_block_1(ctx) {
|
|
4472
4665
|
let navbar;
|
|
4473
4666
|
let current;
|
|
4474
4667
|
|
|
@@ -4511,33 +4704,121 @@ function create_if_block$1(ctx) {
|
|
|
4511
4704
|
};
|
|
4512
4705
|
}
|
|
4513
4706
|
|
|
4707
|
+
// (40:2) {:else}
|
|
4708
|
+
function create_else_block$1(ctx) {
|
|
4709
|
+
let iconirocologo;
|
|
4710
|
+
let t0;
|
|
4711
|
+
let h1;
|
|
4712
|
+
let t1;
|
|
4713
|
+
let current;
|
|
4714
|
+
iconirocologo = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
|
|
4715
|
+
|
|
4716
|
+
return {
|
|
4717
|
+
c() {
|
|
4718
|
+
create_component(iconirocologo.$$.fragment);
|
|
4719
|
+
t0 = space();
|
|
4720
|
+
h1 = element("h1");
|
|
4721
|
+
t1 = text(/*title*/ ctx[2]);
|
|
4722
|
+
attr(h1, "class", "svelte-lqwgm1");
|
|
4723
|
+
},
|
|
4724
|
+
m(target, anchor) {
|
|
4725
|
+
mount_component(iconirocologo, target, anchor);
|
|
4726
|
+
insert(target, t0, anchor);
|
|
4727
|
+
insert(target, h1, anchor);
|
|
4728
|
+
append(h1, t1);
|
|
4729
|
+
current = true;
|
|
4730
|
+
},
|
|
4731
|
+
p(ctx, dirty) {
|
|
4732
|
+
if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
|
|
4733
|
+
},
|
|
4734
|
+
i(local) {
|
|
4735
|
+
if (current) return;
|
|
4736
|
+
transition_in(iconirocologo.$$.fragment, local);
|
|
4737
|
+
current = true;
|
|
4738
|
+
},
|
|
4739
|
+
o(local) {
|
|
4740
|
+
transition_out(iconirocologo.$$.fragment, local);
|
|
4741
|
+
current = false;
|
|
4742
|
+
},
|
|
4743
|
+
d(detaching) {
|
|
4744
|
+
destroy_component(iconirocologo, detaching);
|
|
4745
|
+
if (detaching) detach(t0);
|
|
4746
|
+
if (detaching) detach(h1);
|
|
4747
|
+
}
|
|
4748
|
+
};
|
|
4749
|
+
}
|
|
4750
|
+
|
|
4751
|
+
// (38:2) {#if title == null}
|
|
4752
|
+
function create_if_block$1(ctx) {
|
|
4753
|
+
let irocologo;
|
|
4754
|
+
let current;
|
|
4755
|
+
irocologo = new IrocoLogo({ props: { width: "10em", height: "10em" } });
|
|
4756
|
+
|
|
4757
|
+
return {
|
|
4758
|
+
c() {
|
|
4759
|
+
create_component(irocologo.$$.fragment);
|
|
4760
|
+
},
|
|
4761
|
+
m(target, anchor) {
|
|
4762
|
+
mount_component(irocologo, target, anchor);
|
|
4763
|
+
current = true;
|
|
4764
|
+
},
|
|
4765
|
+
p: noop,
|
|
4766
|
+
i(local) {
|
|
4767
|
+
if (current) return;
|
|
4768
|
+
transition_in(irocologo.$$.fragment, local);
|
|
4769
|
+
current = true;
|
|
4770
|
+
},
|
|
4771
|
+
o(local) {
|
|
4772
|
+
transition_out(irocologo.$$.fragment, local);
|
|
4773
|
+
current = false;
|
|
4774
|
+
},
|
|
4775
|
+
d(detaching) {
|
|
4776
|
+
destroy_component(irocologo, detaching);
|
|
4777
|
+
}
|
|
4778
|
+
};
|
|
4779
|
+
}
|
|
4780
|
+
|
|
4514
4781
|
function create_fragment$5(ctx) {
|
|
4515
4782
|
let div1;
|
|
4516
4783
|
let div0;
|
|
4517
|
-
let
|
|
4784
|
+
let current_block_type_index;
|
|
4785
|
+
let if_block0;
|
|
4518
4786
|
let t0;
|
|
4519
|
-
let h10;
|
|
4520
|
-
let t1;
|
|
4521
|
-
let t2;
|
|
4522
4787
|
let button;
|
|
4523
4788
|
let iconburger;
|
|
4524
|
-
let
|
|
4525
|
-
let
|
|
4789
|
+
let t1;
|
|
4790
|
+
let t2;
|
|
4526
4791
|
let div3;
|
|
4527
4792
|
let div2;
|
|
4528
|
-
let
|
|
4529
|
-
let
|
|
4530
|
-
let
|
|
4531
|
-
let t6;
|
|
4532
|
-
let t7;
|
|
4793
|
+
let current_block_type_index_1;
|
|
4794
|
+
let if_block2;
|
|
4795
|
+
let t3;
|
|
4533
4796
|
let navbar;
|
|
4534
4797
|
let current;
|
|
4535
4798
|
let mounted;
|
|
4536
4799
|
let dispose;
|
|
4537
|
-
|
|
4800
|
+
const if_block_creators = [create_if_block_2, create_else_block_1];
|
|
4801
|
+
const if_blocks = [];
|
|
4802
|
+
|
|
4803
|
+
function select_block_type(ctx, dirty) {
|
|
4804
|
+
if (/*title*/ ctx[2] == null) return 0;
|
|
4805
|
+
return 1;
|
|
4806
|
+
}
|
|
4807
|
+
|
|
4808
|
+
current_block_type_index = select_block_type(ctx);
|
|
4809
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
4538
4810
|
iconburger = new IconBurger({ props: { width: "3em", height: "3em" } });
|
|
4539
|
-
let
|
|
4540
|
-
|
|
4811
|
+
let if_block1 = /*showMenu*/ ctx[3] && create_if_block_1(ctx);
|
|
4812
|
+
const if_block_creators_1 = [create_if_block$1, create_else_block$1];
|
|
4813
|
+
const if_blocks_1 = [];
|
|
4814
|
+
|
|
4815
|
+
function select_block_type_1(ctx, dirty) {
|
|
4816
|
+
if (/*title*/ ctx[2] == null) return 0;
|
|
4817
|
+
return 1;
|
|
4818
|
+
}
|
|
4819
|
+
|
|
4820
|
+
current_block_type_index_1 = select_block_type_1(ctx);
|
|
4821
|
+
if_block2 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
|
|
4541
4822
|
|
|
4542
4823
|
navbar = new NavBar({
|
|
4543
4824
|
props: {
|
|
@@ -4550,52 +4831,38 @@ function create_fragment$5(ctx) {
|
|
|
4550
4831
|
c() {
|
|
4551
4832
|
div1 = element("div");
|
|
4552
4833
|
div0 = element("div");
|
|
4553
|
-
|
|
4834
|
+
if_block0.c();
|
|
4554
4835
|
t0 = space();
|
|
4555
|
-
h10 = element("h1");
|
|
4556
|
-
t1 = text(/*title*/ ctx[2]);
|
|
4557
|
-
t2 = space();
|
|
4558
4836
|
button = element("button");
|
|
4559
4837
|
create_component(iconburger.$$.fragment);
|
|
4560
|
-
|
|
4561
|
-
if (
|
|
4562
|
-
|
|
4838
|
+
t1 = space();
|
|
4839
|
+
if (if_block1) if_block1.c();
|
|
4840
|
+
t2 = space();
|
|
4563
4841
|
div3 = element("div");
|
|
4564
4842
|
div2 = element("div");
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
h11 = element("h1");
|
|
4568
|
-
t6 = text(/*title*/ ctx[2]);
|
|
4569
|
-
t7 = space();
|
|
4843
|
+
if_block2.c();
|
|
4844
|
+
t3 = space();
|
|
4570
4845
|
create_component(navbar.$$.fragment);
|
|
4571
|
-
attr(h10, "class", "svelte-lqwgm1");
|
|
4572
4846
|
attr(div0, "class", "navigation--mobile__title-container svelte-lqwgm1");
|
|
4573
4847
|
attr(button, "class", "navigation--mobile__button svelte-lqwgm1");
|
|
4574
4848
|
attr(div1, "class", "navigation--mobile svelte-lqwgm1");
|
|
4575
|
-
attr(h11, "class", "svelte-lqwgm1");
|
|
4576
4849
|
attr(div2, "class", "navigation__title-container svelte-lqwgm1");
|
|
4577
4850
|
attr(div3, "class", "navigation svelte-lqwgm1");
|
|
4578
4851
|
},
|
|
4579
4852
|
m(target, anchor) {
|
|
4580
4853
|
insert(target, div1, anchor);
|
|
4581
4854
|
append(div1, div0);
|
|
4582
|
-
|
|
4583
|
-
append(
|
|
4584
|
-
append(div0, h10);
|
|
4585
|
-
append(h10, t1);
|
|
4586
|
-
append(div1, t2);
|
|
4855
|
+
if_blocks[current_block_type_index].m(div0, null);
|
|
4856
|
+
append(div1, t0);
|
|
4587
4857
|
append(div1, button);
|
|
4588
4858
|
mount_component(iconburger, button, null);
|
|
4589
|
-
append(div1,
|
|
4590
|
-
if (
|
|
4591
|
-
insert(target,
|
|
4859
|
+
append(div1, t1);
|
|
4860
|
+
if (if_block1) if_block1.m(div1, null);
|
|
4861
|
+
insert(target, t2, anchor);
|
|
4592
4862
|
insert(target, div3, anchor);
|
|
4593
4863
|
append(div3, div2);
|
|
4594
|
-
|
|
4595
|
-
append(
|
|
4596
|
-
append(div2, h11);
|
|
4597
|
-
append(h11, t6);
|
|
4598
|
-
append(div3, t7);
|
|
4864
|
+
if_blocks_1[current_block_type_index_1].m(div2, null);
|
|
4865
|
+
append(div3, t3);
|
|
4599
4866
|
mount_component(navbar, div3, null);
|
|
4600
4867
|
current = true;
|
|
4601
4868
|
|
|
@@ -4605,32 +4872,81 @@ function create_fragment$5(ctx) {
|
|
|
4605
4872
|
}
|
|
4606
4873
|
},
|
|
4607
4874
|
p(ctx, [dirty]) {
|
|
4608
|
-
|
|
4875
|
+
let previous_block_index = current_block_type_index;
|
|
4876
|
+
current_block_type_index = select_block_type(ctx);
|
|
4877
|
+
|
|
4878
|
+
if (current_block_type_index === previous_block_index) {
|
|
4879
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
4880
|
+
} else {
|
|
4881
|
+
group_outros();
|
|
4882
|
+
|
|
4883
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
4884
|
+
if_blocks[previous_block_index] = null;
|
|
4885
|
+
});
|
|
4886
|
+
|
|
4887
|
+
check_outros();
|
|
4888
|
+
if_block0 = if_blocks[current_block_type_index];
|
|
4889
|
+
|
|
4890
|
+
if (!if_block0) {
|
|
4891
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
4892
|
+
if_block0.c();
|
|
4893
|
+
} else {
|
|
4894
|
+
if_block0.p(ctx, dirty);
|
|
4895
|
+
}
|
|
4896
|
+
|
|
4897
|
+
transition_in(if_block0, 1);
|
|
4898
|
+
if_block0.m(div0, null);
|
|
4899
|
+
}
|
|
4609
4900
|
|
|
4610
4901
|
if (/*showMenu*/ ctx[3]) {
|
|
4611
|
-
if (
|
|
4612
|
-
|
|
4902
|
+
if (if_block1) {
|
|
4903
|
+
if_block1.p(ctx, dirty);
|
|
4613
4904
|
|
|
4614
4905
|
if (dirty & /*showMenu*/ 8) {
|
|
4615
|
-
transition_in(
|
|
4906
|
+
transition_in(if_block1, 1);
|
|
4616
4907
|
}
|
|
4617
4908
|
} else {
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
transition_in(
|
|
4621
|
-
|
|
4909
|
+
if_block1 = create_if_block_1(ctx);
|
|
4910
|
+
if_block1.c();
|
|
4911
|
+
transition_in(if_block1, 1);
|
|
4912
|
+
if_block1.m(div1, null);
|
|
4622
4913
|
}
|
|
4623
|
-
} else if (
|
|
4914
|
+
} else if (if_block1) {
|
|
4915
|
+
group_outros();
|
|
4916
|
+
|
|
4917
|
+
transition_out(if_block1, 1, 1, () => {
|
|
4918
|
+
if_block1 = null;
|
|
4919
|
+
});
|
|
4920
|
+
|
|
4921
|
+
check_outros();
|
|
4922
|
+
}
|
|
4923
|
+
|
|
4924
|
+
let previous_block_index_1 = current_block_type_index_1;
|
|
4925
|
+
current_block_type_index_1 = select_block_type_1(ctx);
|
|
4926
|
+
|
|
4927
|
+
if (current_block_type_index_1 === previous_block_index_1) {
|
|
4928
|
+
if_blocks_1[current_block_type_index_1].p(ctx, dirty);
|
|
4929
|
+
} else {
|
|
4624
4930
|
group_outros();
|
|
4625
4931
|
|
|
4626
|
-
transition_out(
|
|
4627
|
-
|
|
4932
|
+
transition_out(if_blocks_1[previous_block_index_1], 1, 1, () => {
|
|
4933
|
+
if_blocks_1[previous_block_index_1] = null;
|
|
4628
4934
|
});
|
|
4629
4935
|
|
|
4630
4936
|
check_outros();
|
|
4937
|
+
if_block2 = if_blocks_1[current_block_type_index_1];
|
|
4938
|
+
|
|
4939
|
+
if (!if_block2) {
|
|
4940
|
+
if_block2 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
|
|
4941
|
+
if_block2.c();
|
|
4942
|
+
} else {
|
|
4943
|
+
if_block2.p(ctx, dirty);
|
|
4944
|
+
}
|
|
4945
|
+
|
|
4946
|
+
transition_in(if_block2, 1);
|
|
4947
|
+
if_block2.m(div2, null);
|
|
4631
4948
|
}
|
|
4632
4949
|
|
|
4633
|
-
if (!current || dirty & /*title*/ 4) set_data(t6, /*title*/ ctx[2]);
|
|
4634
4950
|
const navbar_changes = {};
|
|
4635
4951
|
if (dirty & /*navigationItems*/ 1) navbar_changes.navigationItems = /*navigationItems*/ ctx[0];
|
|
4636
4952
|
if (dirty & /*type*/ 2) navbar_changes.type = /*type*/ ctx[1];
|
|
@@ -4638,29 +4954,29 @@ function create_fragment$5(ctx) {
|
|
|
4638
4954
|
},
|
|
4639
4955
|
i(local) {
|
|
4640
4956
|
if (current) return;
|
|
4641
|
-
transition_in(
|
|
4957
|
+
transition_in(if_block0);
|
|
4642
4958
|
transition_in(iconburger.$$.fragment, local);
|
|
4643
|
-
transition_in(
|
|
4644
|
-
transition_in(
|
|
4959
|
+
transition_in(if_block1);
|
|
4960
|
+
transition_in(if_block2);
|
|
4645
4961
|
transition_in(navbar.$$.fragment, local);
|
|
4646
4962
|
current = true;
|
|
4647
4963
|
},
|
|
4648
4964
|
o(local) {
|
|
4649
|
-
transition_out(
|
|
4965
|
+
transition_out(if_block0);
|
|
4650
4966
|
transition_out(iconburger.$$.fragment, local);
|
|
4651
|
-
transition_out(
|
|
4652
|
-
transition_out(
|
|
4967
|
+
transition_out(if_block1);
|
|
4968
|
+
transition_out(if_block2);
|
|
4653
4969
|
transition_out(navbar.$$.fragment, local);
|
|
4654
4970
|
current = false;
|
|
4655
4971
|
},
|
|
4656
4972
|
d(detaching) {
|
|
4657
4973
|
if (detaching) detach(div1);
|
|
4658
|
-
|
|
4974
|
+
if_blocks[current_block_type_index].d();
|
|
4659
4975
|
destroy_component(iconburger);
|
|
4660
|
-
if (
|
|
4661
|
-
if (detaching) detach(
|
|
4976
|
+
if (if_block1) if_block1.d();
|
|
4977
|
+
if (detaching) detach(t2);
|
|
4662
4978
|
if (detaching) detach(div3);
|
|
4663
|
-
|
|
4979
|
+
if_blocks_1[current_block_type_index_1].d();
|
|
4664
4980
|
destroy_component(navbar);
|
|
4665
4981
|
mounted = false;
|
|
4666
4982
|
dispose();
|
|
@@ -4672,7 +4988,7 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
4672
4988
|
|
|
4673
4989
|
let { navigationItems } = $$props;
|
|
4674
4990
|
let { type = "topbar" } = $$props;
|
|
4675
|
-
let { title } = $$props;
|
|
4991
|
+
let { title = null } = $$props;
|
|
4676
4992
|
let showMenu = false;
|
|
4677
4993
|
const click_handler = () => $$invalidate(3, showMenu = true);
|
|
4678
4994
|
const click_link_handler = () => $$invalidate(3, showMenu = false);
|
|
@@ -5431,4 +5747,17 @@ class Alert extends SvelteComponent {
|
|
|
5431
5747
|
}
|
|
5432
5748
|
}
|
|
5433
5749
|
|
|
5434
|
-
|
|
5750
|
+
class NavigationItem {
|
|
5751
|
+
constructor(name, hrefOrCallback, button = false) {
|
|
5752
|
+
this.hrefOrCallback = hrefOrCallback;
|
|
5753
|
+
this.name = name;
|
|
5754
|
+
this.button = button;
|
|
5755
|
+
}
|
|
5756
|
+
}
|
|
5757
|
+
var ButtonKind;
|
|
5758
|
+
(function (ButtonKind) {
|
|
5759
|
+
ButtonKind["REGULAR"] = "regular";
|
|
5760
|
+
ButtonKind["DANGER"] = "danger";
|
|
5761
|
+
})(ButtonKind || (ButtonKind = {}));
|
|
5762
|
+
|
|
5763
|
+
export { Alert, Button, ButtonKind, DataTable, Icon, IconFloppyDisk, IconInfo, IconIrocoLogo, IconMastodon, IconMoreSign as IconMore, IconTrashCan, IrocoLogo, Loader, NavBar, Navigation, NavigationItem, NumberInput, RadioButton, TextInput };
|