@iroco/ui 0.15.3 → 0.17.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 +60 -0
- package/lib/index.js +441 -118
- package/lib/index.min.js +55 -55
- package/lib/index.mjs +440 -119
- package/lib/index.mjs.css +744 -0
- package/package.json +4 -3
- package/scss/button.scss +60 -0
- package/src/Button.svelte +1 -61
- package/src/IrocoLogo.svelte +45 -0
- package/src/NavBar.svelte +6 -2
- package/src/Navigation.svelte +15 -5
- package/src/definition.ts +10 -2
- package/src/index.ts +3 -0
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;
|
|
@@ -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,9 @@ 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-v0jihd");
|
|
4215
|
+
toggle_class(a, "iroco-ui-button", /*item*/ ctx[7].isButton());
|
|
4216
|
+
attr(li, "class", li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-v0jihd");
|
|
4216
4217
|
toggle_class(li, "active", /*active*/ ctx[2] === /*item*/ ctx[7].name);
|
|
4217
4218
|
},
|
|
4218
4219
|
m(target, anchor) {
|
|
@@ -4236,7 +4237,11 @@ function create_each_block$1(ctx) {
|
|
|
4236
4237
|
attr(a, "href", a_href_value);
|
|
4237
4238
|
}
|
|
4238
4239
|
|
|
4239
|
-
if (dirty & /*
|
|
4240
|
+
if (dirty & /*navigationItems*/ 1) {
|
|
4241
|
+
toggle_class(a, "iroco-ui-button", /*item*/ ctx[7].isButton());
|
|
4242
|
+
}
|
|
4243
|
+
|
|
4244
|
+
if (dirty & /*type*/ 2 && li_class_value !== (li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-v0jihd")) {
|
|
4240
4245
|
attr(li, "class", li_class_value);
|
|
4241
4246
|
}
|
|
4242
4247
|
|
|
@@ -4252,7 +4257,7 @@ function create_each_block$1(ctx) {
|
|
|
4252
4257
|
};
|
|
4253
4258
|
}
|
|
4254
4259
|
|
|
4255
|
-
function create_fragment$
|
|
4260
|
+
function create_fragment$8(ctx) {
|
|
4256
4261
|
let nav;
|
|
4257
4262
|
let button;
|
|
4258
4263
|
let iconclose;
|
|
@@ -4284,10 +4289,10 @@ function create_fragment$7(ctx) {
|
|
|
4284
4289
|
each_blocks[i].c();
|
|
4285
4290
|
}
|
|
4286
4291
|
|
|
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-
|
|
4292
|
+
attr(button, "class", button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-v0jihd");
|
|
4293
|
+
attr(ul, "class", ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-v0jihd");
|
|
4289
4294
|
attr(nav, "data-testid", /*type*/ ctx[1]);
|
|
4290
|
-
attr(nav, "class", nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-
|
|
4295
|
+
attr(nav, "class", nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-v0jihd");
|
|
4291
4296
|
},
|
|
4292
4297
|
m(target, anchor) {
|
|
4293
4298
|
insert(target, nav, anchor);
|
|
@@ -4308,7 +4313,7 @@ function create_fragment$7(ctx) {
|
|
|
4308
4313
|
}
|
|
4309
4314
|
},
|
|
4310
4315
|
p(ctx, [dirty]) {
|
|
4311
|
-
if (!current || dirty & /*type*/ 2 && button_class_value !== (button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-
|
|
4316
|
+
if (!current || dirty & /*type*/ 2 && button_class_value !== (button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-v0jihd")) {
|
|
4312
4317
|
attr(button, "class", button_class_value);
|
|
4313
4318
|
}
|
|
4314
4319
|
|
|
@@ -4335,7 +4340,7 @@ function create_fragment$7(ctx) {
|
|
|
4335
4340
|
each_blocks.length = each_value.length;
|
|
4336
4341
|
}
|
|
4337
4342
|
|
|
4338
|
-
if (!current || dirty & /*type*/ 2 && ul_class_value !== (ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-
|
|
4343
|
+
if (!current || dirty & /*type*/ 2 && ul_class_value !== (ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-v0jihd")) {
|
|
4339
4344
|
attr(ul, "class", ul_class_value);
|
|
4340
4345
|
}
|
|
4341
4346
|
|
|
@@ -4343,7 +4348,7 @@ function create_fragment$7(ctx) {
|
|
|
4343
4348
|
attr(nav, "data-testid", /*type*/ ctx[1]);
|
|
4344
4349
|
}
|
|
4345
4350
|
|
|
4346
|
-
if (!current || dirty & /*type*/ 2 && nav_class_value !== (nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-
|
|
4351
|
+
if (!current || dirty & /*type*/ 2 && nav_class_value !== (nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-v0jihd")) {
|
|
4347
4352
|
attr(nav, "class", nav_class_value);
|
|
4348
4353
|
}
|
|
4349
4354
|
},
|
|
@@ -4366,7 +4371,7 @@ function create_fragment$7(ctx) {
|
|
|
4366
4371
|
};
|
|
4367
4372
|
}
|
|
4368
4373
|
|
|
4369
|
-
function instance$
|
|
4374
|
+
function instance$8($$self, $$props, $$invalidate) {
|
|
4370
4375
|
|
|
4371
4376
|
let { navigationItems } = $$props;
|
|
4372
4377
|
let { type } = $$props;
|
|
@@ -4401,13 +4406,13 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
4401
4406
|
class NavBar extends SvelteComponent {
|
|
4402
4407
|
constructor(options) {
|
|
4403
4408
|
super();
|
|
4404
|
-
init(this, options, instance$
|
|
4409
|
+
init(this, options, instance$8, create_fragment$8, safe_not_equal, { navigationItems: 0, type: 1 });
|
|
4405
4410
|
}
|
|
4406
4411
|
}
|
|
4407
4412
|
|
|
4408
4413
|
/* src/IconBurger.svelte generated by Svelte v3.38.2 */
|
|
4409
4414
|
|
|
4410
|
-
function create_fragment$
|
|
4415
|
+
function create_fragment$7(ctx) {
|
|
4411
4416
|
let svg;
|
|
4412
4417
|
let path;
|
|
4413
4418
|
|
|
@@ -4447,7 +4452,7 @@ function create_fragment$6(ctx) {
|
|
|
4447
4452
|
};
|
|
4448
4453
|
}
|
|
4449
4454
|
|
|
4450
|
-
function instance$
|
|
4455
|
+
function instance$7($$self, $$props, $$invalidate) {
|
|
4451
4456
|
let { width = "5rem" } = $$props;
|
|
4452
4457
|
let { height = "5rem" } = $$props;
|
|
4453
4458
|
|
|
@@ -4460,6 +4465,110 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
4460
4465
|
}
|
|
4461
4466
|
|
|
4462
4467
|
class IconBurger extends SvelteComponent {
|
|
4468
|
+
constructor(options) {
|
|
4469
|
+
super();
|
|
4470
|
+
init(this, options, instance$7, create_fragment$7, safe_not_equal, { width: 0, height: 1 });
|
|
4471
|
+
}
|
|
4472
|
+
}
|
|
4473
|
+
|
|
4474
|
+
/* src/IrocoLogo.svelte generated by Svelte v3.38.2 */
|
|
4475
|
+
|
|
4476
|
+
function create_fragment$6(ctx) {
|
|
4477
|
+
let a;
|
|
4478
|
+
let svg;
|
|
4479
|
+
let title;
|
|
4480
|
+
let t;
|
|
4481
|
+
let path0;
|
|
4482
|
+
let path1;
|
|
4483
|
+
let path2;
|
|
4484
|
+
let path3;
|
|
4485
|
+
let path4;
|
|
4486
|
+
let path5;
|
|
4487
|
+
let path6;
|
|
4488
|
+
|
|
4489
|
+
return {
|
|
4490
|
+
c() {
|
|
4491
|
+
a = element("a");
|
|
4492
|
+
svg = svg_element("svg");
|
|
4493
|
+
title = svg_element("title");
|
|
4494
|
+
t = text("Iroco");
|
|
4495
|
+
path0 = svg_element("path");
|
|
4496
|
+
path1 = svg_element("path");
|
|
4497
|
+
path2 = svg_element("path");
|
|
4498
|
+
path3 = svg_element("path");
|
|
4499
|
+
path4 = svg_element("path");
|
|
4500
|
+
path5 = svg_element("path");
|
|
4501
|
+
path6 = svg_element("path");
|
|
4502
|
+
attr(path0, "fill", "white");
|
|
4503
|
+
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");
|
|
4504
|
+
attr(path0, "transform", "translate(-0.44 -0.49)");
|
|
4505
|
+
attr(path1, "fill", "white");
|
|
4506
|
+
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");
|
|
4507
|
+
attr(path1, "transform", "translate(-0.44 -0.49)");
|
|
4508
|
+
attr(path2, "fill", "white");
|
|
4509
|
+
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");
|
|
4510
|
+
attr(path2, "transform", "translate(-0.44 -0.49)");
|
|
4511
|
+
attr(path3, "fill", "white");
|
|
4512
|
+
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");
|
|
4513
|
+
attr(path3, "transform", "translate(-0.44 -0.49)");
|
|
4514
|
+
attr(path4, "fill", "white");
|
|
4515
|
+
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");
|
|
4516
|
+
attr(path4, "transform", "translate(-0.44 -0.49)");
|
|
4517
|
+
attr(path5, "fill", "white");
|
|
4518
|
+
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");
|
|
4519
|
+
attr(path5, "transform", "translate(-0.44 -0.49)");
|
|
4520
|
+
attr(path6, "fill", "#00D692");
|
|
4521
|
+
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");
|
|
4522
|
+
attr(path6, "transform", "translate(-0.44 -0.49)");
|
|
4523
|
+
attr(svg, "viewBox", "0 0 832.33 249.52");
|
|
4524
|
+
attr(svg, "width", /*width*/ ctx[0]);
|
|
4525
|
+
attr(svg, "height", /*height*/ ctx[1]);
|
|
4526
|
+
attr(a, "class", "iroco-logo");
|
|
4527
|
+
attr(a, "href", "/");
|
|
4528
|
+
},
|
|
4529
|
+
m(target, anchor) {
|
|
4530
|
+
insert(target, a, anchor);
|
|
4531
|
+
append(a, svg);
|
|
4532
|
+
append(svg, title);
|
|
4533
|
+
append(title, t);
|
|
4534
|
+
append(svg, path0);
|
|
4535
|
+
append(svg, path1);
|
|
4536
|
+
append(svg, path2);
|
|
4537
|
+
append(svg, path3);
|
|
4538
|
+
append(svg, path4);
|
|
4539
|
+
append(svg, path5);
|
|
4540
|
+
append(svg, path6);
|
|
4541
|
+
},
|
|
4542
|
+
p(ctx, [dirty]) {
|
|
4543
|
+
if (dirty & /*width*/ 1) {
|
|
4544
|
+
attr(svg, "width", /*width*/ ctx[0]);
|
|
4545
|
+
}
|
|
4546
|
+
|
|
4547
|
+
if (dirty & /*height*/ 2) {
|
|
4548
|
+
attr(svg, "height", /*height*/ ctx[1]);
|
|
4549
|
+
}
|
|
4550
|
+
},
|
|
4551
|
+
i: noop,
|
|
4552
|
+
o: noop,
|
|
4553
|
+
d(detaching) {
|
|
4554
|
+
if (detaching) detach(a);
|
|
4555
|
+
}
|
|
4556
|
+
};
|
|
4557
|
+
}
|
|
4558
|
+
|
|
4559
|
+
function instance$6($$self, $$props, $$invalidate) {
|
|
4560
|
+
let { width = "10rem" } = $$props;
|
|
4561
|
+
let { height = "10rem" } = $$props;
|
|
4562
|
+
|
|
4563
|
+
$$self.$$set = $$props => {
|
|
4564
|
+
if ("width" in $$props) $$invalidate(0, width = $$props.width);
|
|
4565
|
+
if ("height" in $$props) $$invalidate(1, height = $$props.height);
|
|
4566
|
+
};
|
|
4567
|
+
|
|
4568
|
+
return [width, height];
|
|
4569
|
+
}
|
|
4570
|
+
|
|
4571
|
+
class IrocoLogo extends SvelteComponent {
|
|
4463
4572
|
constructor(options) {
|
|
4464
4573
|
super();
|
|
4465
4574
|
init(this, options, instance$6, create_fragment$6, safe_not_equal, { width: 0, height: 1 });
|
|
@@ -4468,7 +4577,81 @@ class IconBurger extends SvelteComponent {
|
|
|
4468
4577
|
|
|
4469
4578
|
/* src/Navigation.svelte generated by Svelte v3.38.2 */
|
|
4470
4579
|
|
|
4471
|
-
function
|
|
4580
|
+
function create_else_block_1(ctx) {
|
|
4581
|
+
let iconirocologo;
|
|
4582
|
+
let t0;
|
|
4583
|
+
let h1;
|
|
4584
|
+
let t1;
|
|
4585
|
+
let current;
|
|
4586
|
+
iconirocologo = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
|
|
4587
|
+
|
|
4588
|
+
return {
|
|
4589
|
+
c() {
|
|
4590
|
+
create_component(iconirocologo.$$.fragment);
|
|
4591
|
+
t0 = space();
|
|
4592
|
+
h1 = element("h1");
|
|
4593
|
+
t1 = text(/*title*/ ctx[2]);
|
|
4594
|
+
attr(h1, "class", "svelte-lqwgm1");
|
|
4595
|
+
},
|
|
4596
|
+
m(target, anchor) {
|
|
4597
|
+
mount_component(iconirocologo, target, anchor);
|
|
4598
|
+
insert(target, t0, anchor);
|
|
4599
|
+
insert(target, h1, anchor);
|
|
4600
|
+
append(h1, t1);
|
|
4601
|
+
current = true;
|
|
4602
|
+
},
|
|
4603
|
+
p(ctx, dirty) {
|
|
4604
|
+
if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
|
|
4605
|
+
},
|
|
4606
|
+
i(local) {
|
|
4607
|
+
if (current) return;
|
|
4608
|
+
transition_in(iconirocologo.$$.fragment, local);
|
|
4609
|
+
current = true;
|
|
4610
|
+
},
|
|
4611
|
+
o(local) {
|
|
4612
|
+
transition_out(iconirocologo.$$.fragment, local);
|
|
4613
|
+
current = false;
|
|
4614
|
+
},
|
|
4615
|
+
d(detaching) {
|
|
4616
|
+
destroy_component(iconirocologo, detaching);
|
|
4617
|
+
if (detaching) detach(t0);
|
|
4618
|
+
if (detaching) detach(h1);
|
|
4619
|
+
}
|
|
4620
|
+
};
|
|
4621
|
+
}
|
|
4622
|
+
|
|
4623
|
+
// (14:2) {#if title == null}
|
|
4624
|
+
function create_if_block_2(ctx) {
|
|
4625
|
+
let irocologo;
|
|
4626
|
+
let current;
|
|
4627
|
+
irocologo = new IrocoLogo({ props: { width: "10em", height: "10em" } });
|
|
4628
|
+
|
|
4629
|
+
return {
|
|
4630
|
+
c() {
|
|
4631
|
+
create_component(irocologo.$$.fragment);
|
|
4632
|
+
},
|
|
4633
|
+
m(target, anchor) {
|
|
4634
|
+
mount_component(irocologo, target, anchor);
|
|
4635
|
+
current = true;
|
|
4636
|
+
},
|
|
4637
|
+
p: noop,
|
|
4638
|
+
i(local) {
|
|
4639
|
+
if (current) return;
|
|
4640
|
+
transition_in(irocologo.$$.fragment, local);
|
|
4641
|
+
current = true;
|
|
4642
|
+
},
|
|
4643
|
+
o(local) {
|
|
4644
|
+
transition_out(irocologo.$$.fragment, local);
|
|
4645
|
+
current = false;
|
|
4646
|
+
},
|
|
4647
|
+
d(detaching) {
|
|
4648
|
+
destroy_component(irocologo, detaching);
|
|
4649
|
+
}
|
|
4650
|
+
};
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4653
|
+
// (26:1) {#if showMenu}
|
|
4654
|
+
function create_if_block_1(ctx) {
|
|
4472
4655
|
let navbar;
|
|
4473
4656
|
let current;
|
|
4474
4657
|
|
|
@@ -4511,33 +4694,121 @@ function create_if_block$1(ctx) {
|
|
|
4511
4694
|
};
|
|
4512
4695
|
}
|
|
4513
4696
|
|
|
4697
|
+
// (40:2) {:else}
|
|
4698
|
+
function create_else_block$1(ctx) {
|
|
4699
|
+
let iconirocologo;
|
|
4700
|
+
let t0;
|
|
4701
|
+
let h1;
|
|
4702
|
+
let t1;
|
|
4703
|
+
let current;
|
|
4704
|
+
iconirocologo = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
|
|
4705
|
+
|
|
4706
|
+
return {
|
|
4707
|
+
c() {
|
|
4708
|
+
create_component(iconirocologo.$$.fragment);
|
|
4709
|
+
t0 = space();
|
|
4710
|
+
h1 = element("h1");
|
|
4711
|
+
t1 = text(/*title*/ ctx[2]);
|
|
4712
|
+
attr(h1, "class", "svelte-lqwgm1");
|
|
4713
|
+
},
|
|
4714
|
+
m(target, anchor) {
|
|
4715
|
+
mount_component(iconirocologo, target, anchor);
|
|
4716
|
+
insert(target, t0, anchor);
|
|
4717
|
+
insert(target, h1, anchor);
|
|
4718
|
+
append(h1, t1);
|
|
4719
|
+
current = true;
|
|
4720
|
+
},
|
|
4721
|
+
p(ctx, dirty) {
|
|
4722
|
+
if (!current || dirty & /*title*/ 4) set_data(t1, /*title*/ ctx[2]);
|
|
4723
|
+
},
|
|
4724
|
+
i(local) {
|
|
4725
|
+
if (current) return;
|
|
4726
|
+
transition_in(iconirocologo.$$.fragment, local);
|
|
4727
|
+
current = true;
|
|
4728
|
+
},
|
|
4729
|
+
o(local) {
|
|
4730
|
+
transition_out(iconirocologo.$$.fragment, local);
|
|
4731
|
+
current = false;
|
|
4732
|
+
},
|
|
4733
|
+
d(detaching) {
|
|
4734
|
+
destroy_component(iconirocologo, detaching);
|
|
4735
|
+
if (detaching) detach(t0);
|
|
4736
|
+
if (detaching) detach(h1);
|
|
4737
|
+
}
|
|
4738
|
+
};
|
|
4739
|
+
}
|
|
4740
|
+
|
|
4741
|
+
// (38:2) {#if title == null}
|
|
4742
|
+
function create_if_block$1(ctx) {
|
|
4743
|
+
let irocologo;
|
|
4744
|
+
let current;
|
|
4745
|
+
irocologo = new IrocoLogo({ props: { width: "10em", height: "10em" } });
|
|
4746
|
+
|
|
4747
|
+
return {
|
|
4748
|
+
c() {
|
|
4749
|
+
create_component(irocologo.$$.fragment);
|
|
4750
|
+
},
|
|
4751
|
+
m(target, anchor) {
|
|
4752
|
+
mount_component(irocologo, target, anchor);
|
|
4753
|
+
current = true;
|
|
4754
|
+
},
|
|
4755
|
+
p: noop,
|
|
4756
|
+
i(local) {
|
|
4757
|
+
if (current) return;
|
|
4758
|
+
transition_in(irocologo.$$.fragment, local);
|
|
4759
|
+
current = true;
|
|
4760
|
+
},
|
|
4761
|
+
o(local) {
|
|
4762
|
+
transition_out(irocologo.$$.fragment, local);
|
|
4763
|
+
current = false;
|
|
4764
|
+
},
|
|
4765
|
+
d(detaching) {
|
|
4766
|
+
destroy_component(irocologo, detaching);
|
|
4767
|
+
}
|
|
4768
|
+
};
|
|
4769
|
+
}
|
|
4770
|
+
|
|
4514
4771
|
function create_fragment$5(ctx) {
|
|
4515
4772
|
let div1;
|
|
4516
4773
|
let div0;
|
|
4517
|
-
let
|
|
4774
|
+
let current_block_type_index;
|
|
4775
|
+
let if_block0;
|
|
4518
4776
|
let t0;
|
|
4519
|
-
let h10;
|
|
4520
|
-
let t1;
|
|
4521
|
-
let t2;
|
|
4522
4777
|
let button;
|
|
4523
4778
|
let iconburger;
|
|
4524
|
-
let
|
|
4525
|
-
let
|
|
4779
|
+
let t1;
|
|
4780
|
+
let t2;
|
|
4526
4781
|
let div3;
|
|
4527
4782
|
let div2;
|
|
4528
|
-
let
|
|
4529
|
-
let
|
|
4530
|
-
let
|
|
4531
|
-
let t6;
|
|
4532
|
-
let t7;
|
|
4783
|
+
let current_block_type_index_1;
|
|
4784
|
+
let if_block2;
|
|
4785
|
+
let t3;
|
|
4533
4786
|
let navbar;
|
|
4534
4787
|
let current;
|
|
4535
4788
|
let mounted;
|
|
4536
4789
|
let dispose;
|
|
4537
|
-
|
|
4790
|
+
const if_block_creators = [create_if_block_2, create_else_block_1];
|
|
4791
|
+
const if_blocks = [];
|
|
4792
|
+
|
|
4793
|
+
function select_block_type(ctx, dirty) {
|
|
4794
|
+
if (/*title*/ ctx[2] == null) return 0;
|
|
4795
|
+
return 1;
|
|
4796
|
+
}
|
|
4797
|
+
|
|
4798
|
+
current_block_type_index = select_block_type(ctx);
|
|
4799
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
4538
4800
|
iconburger = new IconBurger({ props: { width: "3em", height: "3em" } });
|
|
4539
|
-
let
|
|
4540
|
-
|
|
4801
|
+
let if_block1 = /*showMenu*/ ctx[3] && create_if_block_1(ctx);
|
|
4802
|
+
const if_block_creators_1 = [create_if_block$1, create_else_block$1];
|
|
4803
|
+
const if_blocks_1 = [];
|
|
4804
|
+
|
|
4805
|
+
function select_block_type_1(ctx, dirty) {
|
|
4806
|
+
if (/*title*/ ctx[2] == null) return 0;
|
|
4807
|
+
return 1;
|
|
4808
|
+
}
|
|
4809
|
+
|
|
4810
|
+
current_block_type_index_1 = select_block_type_1(ctx);
|
|
4811
|
+
if_block2 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
|
|
4541
4812
|
|
|
4542
4813
|
navbar = new NavBar({
|
|
4543
4814
|
props: {
|
|
@@ -4550,52 +4821,38 @@ function create_fragment$5(ctx) {
|
|
|
4550
4821
|
c() {
|
|
4551
4822
|
div1 = element("div");
|
|
4552
4823
|
div0 = element("div");
|
|
4553
|
-
|
|
4824
|
+
if_block0.c();
|
|
4554
4825
|
t0 = space();
|
|
4555
|
-
h10 = element("h1");
|
|
4556
|
-
t1 = text(/*title*/ ctx[2]);
|
|
4557
|
-
t2 = space();
|
|
4558
4826
|
button = element("button");
|
|
4559
4827
|
create_component(iconburger.$$.fragment);
|
|
4560
|
-
|
|
4561
|
-
if (
|
|
4562
|
-
|
|
4828
|
+
t1 = space();
|
|
4829
|
+
if (if_block1) if_block1.c();
|
|
4830
|
+
t2 = space();
|
|
4563
4831
|
div3 = element("div");
|
|
4564
4832
|
div2 = element("div");
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
h11 = element("h1");
|
|
4568
|
-
t6 = text(/*title*/ ctx[2]);
|
|
4569
|
-
t7 = space();
|
|
4833
|
+
if_block2.c();
|
|
4834
|
+
t3 = space();
|
|
4570
4835
|
create_component(navbar.$$.fragment);
|
|
4571
|
-
attr(h10, "class", "svelte-lqwgm1");
|
|
4572
4836
|
attr(div0, "class", "navigation--mobile__title-container svelte-lqwgm1");
|
|
4573
4837
|
attr(button, "class", "navigation--mobile__button svelte-lqwgm1");
|
|
4574
4838
|
attr(div1, "class", "navigation--mobile svelte-lqwgm1");
|
|
4575
|
-
attr(h11, "class", "svelte-lqwgm1");
|
|
4576
4839
|
attr(div2, "class", "navigation__title-container svelte-lqwgm1");
|
|
4577
4840
|
attr(div3, "class", "navigation svelte-lqwgm1");
|
|
4578
4841
|
},
|
|
4579
4842
|
m(target, anchor) {
|
|
4580
4843
|
insert(target, div1, anchor);
|
|
4581
4844
|
append(div1, div0);
|
|
4582
|
-
|
|
4583
|
-
append(
|
|
4584
|
-
append(div0, h10);
|
|
4585
|
-
append(h10, t1);
|
|
4586
|
-
append(div1, t2);
|
|
4845
|
+
if_blocks[current_block_type_index].m(div0, null);
|
|
4846
|
+
append(div1, t0);
|
|
4587
4847
|
append(div1, button);
|
|
4588
4848
|
mount_component(iconburger, button, null);
|
|
4589
|
-
append(div1,
|
|
4590
|
-
if (
|
|
4591
|
-
insert(target,
|
|
4849
|
+
append(div1, t1);
|
|
4850
|
+
if (if_block1) if_block1.m(div1, null);
|
|
4851
|
+
insert(target, t2, anchor);
|
|
4592
4852
|
insert(target, div3, anchor);
|
|
4593
4853
|
append(div3, div2);
|
|
4594
|
-
|
|
4595
|
-
append(
|
|
4596
|
-
append(div2, h11);
|
|
4597
|
-
append(h11, t6);
|
|
4598
|
-
append(div3, t7);
|
|
4854
|
+
if_blocks_1[current_block_type_index_1].m(div2, null);
|
|
4855
|
+
append(div3, t3);
|
|
4599
4856
|
mount_component(navbar, div3, null);
|
|
4600
4857
|
current = true;
|
|
4601
4858
|
|
|
@@ -4605,32 +4862,81 @@ function create_fragment$5(ctx) {
|
|
|
4605
4862
|
}
|
|
4606
4863
|
},
|
|
4607
4864
|
p(ctx, [dirty]) {
|
|
4608
|
-
|
|
4865
|
+
let previous_block_index = current_block_type_index;
|
|
4866
|
+
current_block_type_index = select_block_type(ctx);
|
|
4867
|
+
|
|
4868
|
+
if (current_block_type_index === previous_block_index) {
|
|
4869
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
4870
|
+
} else {
|
|
4871
|
+
group_outros();
|
|
4872
|
+
|
|
4873
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
4874
|
+
if_blocks[previous_block_index] = null;
|
|
4875
|
+
});
|
|
4876
|
+
|
|
4877
|
+
check_outros();
|
|
4878
|
+
if_block0 = if_blocks[current_block_type_index];
|
|
4879
|
+
|
|
4880
|
+
if (!if_block0) {
|
|
4881
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
4882
|
+
if_block0.c();
|
|
4883
|
+
} else {
|
|
4884
|
+
if_block0.p(ctx, dirty);
|
|
4885
|
+
}
|
|
4886
|
+
|
|
4887
|
+
transition_in(if_block0, 1);
|
|
4888
|
+
if_block0.m(div0, null);
|
|
4889
|
+
}
|
|
4609
4890
|
|
|
4610
4891
|
if (/*showMenu*/ ctx[3]) {
|
|
4611
|
-
if (
|
|
4612
|
-
|
|
4892
|
+
if (if_block1) {
|
|
4893
|
+
if_block1.p(ctx, dirty);
|
|
4613
4894
|
|
|
4614
4895
|
if (dirty & /*showMenu*/ 8) {
|
|
4615
|
-
transition_in(
|
|
4896
|
+
transition_in(if_block1, 1);
|
|
4616
4897
|
}
|
|
4617
4898
|
} else {
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
transition_in(
|
|
4621
|
-
|
|
4899
|
+
if_block1 = create_if_block_1(ctx);
|
|
4900
|
+
if_block1.c();
|
|
4901
|
+
transition_in(if_block1, 1);
|
|
4902
|
+
if_block1.m(div1, null);
|
|
4622
4903
|
}
|
|
4623
|
-
} else if (
|
|
4904
|
+
} else if (if_block1) {
|
|
4624
4905
|
group_outros();
|
|
4625
4906
|
|
|
4626
|
-
transition_out(
|
|
4627
|
-
|
|
4907
|
+
transition_out(if_block1, 1, 1, () => {
|
|
4908
|
+
if_block1 = null;
|
|
4628
4909
|
});
|
|
4629
4910
|
|
|
4630
4911
|
check_outros();
|
|
4631
4912
|
}
|
|
4632
4913
|
|
|
4633
|
-
|
|
4914
|
+
let previous_block_index_1 = current_block_type_index_1;
|
|
4915
|
+
current_block_type_index_1 = select_block_type_1(ctx);
|
|
4916
|
+
|
|
4917
|
+
if (current_block_type_index_1 === previous_block_index_1) {
|
|
4918
|
+
if_blocks_1[current_block_type_index_1].p(ctx, dirty);
|
|
4919
|
+
} else {
|
|
4920
|
+
group_outros();
|
|
4921
|
+
|
|
4922
|
+
transition_out(if_blocks_1[previous_block_index_1], 1, 1, () => {
|
|
4923
|
+
if_blocks_1[previous_block_index_1] = null;
|
|
4924
|
+
});
|
|
4925
|
+
|
|
4926
|
+
check_outros();
|
|
4927
|
+
if_block2 = if_blocks_1[current_block_type_index_1];
|
|
4928
|
+
|
|
4929
|
+
if (!if_block2) {
|
|
4930
|
+
if_block2 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
|
|
4931
|
+
if_block2.c();
|
|
4932
|
+
} else {
|
|
4933
|
+
if_block2.p(ctx, dirty);
|
|
4934
|
+
}
|
|
4935
|
+
|
|
4936
|
+
transition_in(if_block2, 1);
|
|
4937
|
+
if_block2.m(div2, null);
|
|
4938
|
+
}
|
|
4939
|
+
|
|
4634
4940
|
const navbar_changes = {};
|
|
4635
4941
|
if (dirty & /*navigationItems*/ 1) navbar_changes.navigationItems = /*navigationItems*/ ctx[0];
|
|
4636
4942
|
if (dirty & /*type*/ 2) navbar_changes.type = /*type*/ ctx[1];
|
|
@@ -4638,29 +4944,29 @@ function create_fragment$5(ctx) {
|
|
|
4638
4944
|
},
|
|
4639
4945
|
i(local) {
|
|
4640
4946
|
if (current) return;
|
|
4641
|
-
transition_in(
|
|
4947
|
+
transition_in(if_block0);
|
|
4642
4948
|
transition_in(iconburger.$$.fragment, local);
|
|
4643
|
-
transition_in(
|
|
4644
|
-
transition_in(
|
|
4949
|
+
transition_in(if_block1);
|
|
4950
|
+
transition_in(if_block2);
|
|
4645
4951
|
transition_in(navbar.$$.fragment, local);
|
|
4646
4952
|
current = true;
|
|
4647
4953
|
},
|
|
4648
4954
|
o(local) {
|
|
4649
|
-
transition_out(
|
|
4955
|
+
transition_out(if_block0);
|
|
4650
4956
|
transition_out(iconburger.$$.fragment, local);
|
|
4651
|
-
transition_out(
|
|
4652
|
-
transition_out(
|
|
4957
|
+
transition_out(if_block1);
|
|
4958
|
+
transition_out(if_block2);
|
|
4653
4959
|
transition_out(navbar.$$.fragment, local);
|
|
4654
4960
|
current = false;
|
|
4655
4961
|
},
|
|
4656
4962
|
d(detaching) {
|
|
4657
4963
|
if (detaching) detach(div1);
|
|
4658
|
-
|
|
4964
|
+
if_blocks[current_block_type_index].d();
|
|
4659
4965
|
destroy_component(iconburger);
|
|
4660
|
-
if (
|
|
4661
|
-
if (detaching) detach(
|
|
4966
|
+
if (if_block1) if_block1.d();
|
|
4967
|
+
if (detaching) detach(t2);
|
|
4662
4968
|
if (detaching) detach(div3);
|
|
4663
|
-
|
|
4969
|
+
if_blocks_1[current_block_type_index_1].d();
|
|
4664
4970
|
destroy_component(navbar);
|
|
4665
4971
|
mounted = false;
|
|
4666
4972
|
dispose();
|
|
@@ -4672,7 +4978,7 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
4672
4978
|
|
|
4673
4979
|
let { navigationItems } = $$props;
|
|
4674
4980
|
let { type = "topbar" } = $$props;
|
|
4675
|
-
let { title } = $$props;
|
|
4981
|
+
let { title = null } = $$props;
|
|
4676
4982
|
let showMenu = false;
|
|
4677
4983
|
const click_handler = () => $$invalidate(3, showMenu = true);
|
|
4678
4984
|
const click_link_handler = () => $$invalidate(3, showMenu = false);
|
|
@@ -5431,4 +5737,19 @@ class Alert extends SvelteComponent {
|
|
|
5431
5737
|
}
|
|
5432
5738
|
}
|
|
5433
5739
|
|
|
5434
|
-
|
|
5740
|
+
class NavigationItem {
|
|
5741
|
+
constructor(name, hrefOrCallback) {
|
|
5742
|
+
this.hrefOrCallback = hrefOrCallback;
|
|
5743
|
+
this.name = name;
|
|
5744
|
+
}
|
|
5745
|
+
isButton() {
|
|
5746
|
+
return typeof this.hrefOrCallback === 'function';
|
|
5747
|
+
}
|
|
5748
|
+
}
|
|
5749
|
+
var ButtonKind;
|
|
5750
|
+
(function (ButtonKind) {
|
|
5751
|
+
ButtonKind["REGULAR"] = "regular";
|
|
5752
|
+
ButtonKind["DANGER"] = "danger";
|
|
5753
|
+
})(ButtonKind || (ButtonKind = {}));
|
|
5754
|
+
|
|
5755
|
+
export { Alert, Button, ButtonKind, DataTable, Icon, IconFloppyDisk, IconInfo, IconIrocoLogo, IconMastodon, IconMoreSign as IconMore, IconTrashCan, IrocoLogo, Loader, NavBar, Navigation, NavigationItem, NumberInput, RadioButton, TextInput };
|