@iroco/ui 0.11.1 → 0.13.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/containers.scss +2 -2
- package/lib/index.js +324 -119
- package/lib/index.min.js +3 -3
- package/lib/index.mjs +324 -120
- package/lib/index.mjs.css +83 -80
- package/package.json +1 -1
- package/src/IconMastodon.svelte +13 -0
- package/src/NavBar.svelte +154 -0
- package/src/Navigation.svelte +17 -13
- package/src/index.ts +2 -1
- package/src/SideBar.svelte +0 -103
package/lib/index.js
CHANGED
|
@@ -175,6 +175,37 @@
|
|
|
175
175
|
e.initCustomEvent(type, false, false, detail);
|
|
176
176
|
return e;
|
|
177
177
|
}
|
|
178
|
+
class HtmlTag {
|
|
179
|
+
constructor(anchor = null) {
|
|
180
|
+
this.a = anchor;
|
|
181
|
+
this.e = this.n = null;
|
|
182
|
+
}
|
|
183
|
+
m(html, target, anchor = null) {
|
|
184
|
+
if (!this.e) {
|
|
185
|
+
this.e = element(target.nodeName);
|
|
186
|
+
this.t = target;
|
|
187
|
+
this.h(html);
|
|
188
|
+
}
|
|
189
|
+
this.i(anchor);
|
|
190
|
+
}
|
|
191
|
+
h(html) {
|
|
192
|
+
this.e.innerHTML = html;
|
|
193
|
+
this.n = Array.from(this.e.childNodes);
|
|
194
|
+
}
|
|
195
|
+
i(anchor) {
|
|
196
|
+
for (let i = 0; i < this.n.length; i += 1) {
|
|
197
|
+
insert(this.t, this.n[i], anchor);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
p(html) {
|
|
201
|
+
this.d();
|
|
202
|
+
this.h(html);
|
|
203
|
+
this.i(this.a);
|
|
204
|
+
}
|
|
205
|
+
d() {
|
|
206
|
+
this.n.forEach(detach);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
178
209
|
|
|
179
210
|
let current_component;
|
|
180
211
|
function set_current_component(component) {
|
|
@@ -472,25 +503,25 @@
|
|
|
472
503
|
|
|
473
504
|
/* src/Button.svelte generated by Svelte v3.38.2 */
|
|
474
505
|
|
|
475
|
-
function create_fragment$
|
|
506
|
+
function create_fragment$h(ctx) {
|
|
476
507
|
let button;
|
|
477
508
|
let button_class_value;
|
|
478
509
|
let current;
|
|
479
510
|
let mounted;
|
|
480
511
|
let dispose;
|
|
481
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
482
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
512
|
+
const default_slot_template = /*#slots*/ ctx[8].default;
|
|
513
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[7], null);
|
|
483
514
|
|
|
484
515
|
return {
|
|
485
516
|
c() {
|
|
486
517
|
button = element("button");
|
|
487
518
|
if (default_slot) default_slot.c();
|
|
488
|
-
attr(button, "id", /*id*/ ctx[
|
|
489
|
-
attr(button, "class", button_class_value = "" + (null_to_empty(`iroco-ui-button iroco-ui-button--${/*size*/ ctx[
|
|
490
|
-
attr(button, "type", /*type*/ ctx[
|
|
491
|
-
button.disabled = /*disabled*/ ctx[
|
|
492
|
-
toggle_class(button, "disabled", /*disabled*/ ctx[
|
|
493
|
-
toggle_class(button, "rounded", /*rounded*/ ctx[
|
|
519
|
+
attr(button, "id", /*id*/ ctx[6]);
|
|
520
|
+
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-cdmkz4"));
|
|
521
|
+
attr(button, "type", /*type*/ ctx[1]);
|
|
522
|
+
button.disabled = /*disabled*/ ctx[2];
|
|
523
|
+
toggle_class(button, "disabled", /*disabled*/ ctx[2]);
|
|
524
|
+
toggle_class(button, "rounded", /*rounded*/ ctx[5]);
|
|
494
525
|
},
|
|
495
526
|
m(target, anchor) {
|
|
496
527
|
insert(target, button, anchor);
|
|
@@ -499,42 +530,43 @@
|
|
|
499
530
|
default_slot.m(button, null);
|
|
500
531
|
}
|
|
501
532
|
|
|
533
|
+
/*button_binding*/ ctx[10](button);
|
|
502
534
|
current = true;
|
|
503
535
|
|
|
504
536
|
if (!mounted) {
|
|
505
|
-
dispose = listen(button, "click", /*click_handler*/ ctx[
|
|
537
|
+
dispose = listen(button, "click", /*click_handler*/ ctx[9]);
|
|
506
538
|
mounted = true;
|
|
507
539
|
}
|
|
508
540
|
},
|
|
509
541
|
p(ctx, [dirty]) {
|
|
510
542
|
if (default_slot) {
|
|
511
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
512
|
-
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[
|
|
543
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 128)) {
|
|
544
|
+
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[7], dirty, null, null);
|
|
513
545
|
}
|
|
514
546
|
}
|
|
515
547
|
|
|
516
|
-
if (!current || dirty & /*id*/
|
|
517
|
-
attr(button, "id", /*id*/ ctx[
|
|
548
|
+
if (!current || dirty & /*id*/ 64) {
|
|
549
|
+
attr(button, "id", /*id*/ ctx[6]);
|
|
518
550
|
}
|
|
519
551
|
|
|
520
|
-
if (!current || dirty & /*size, kind*/
|
|
552
|
+
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-cdmkz4"))) {
|
|
521
553
|
attr(button, "class", button_class_value);
|
|
522
554
|
}
|
|
523
555
|
|
|
524
|
-
if (!current || dirty & /*type*/
|
|
525
|
-
attr(button, "type", /*type*/ ctx[
|
|
556
|
+
if (!current || dirty & /*type*/ 2) {
|
|
557
|
+
attr(button, "type", /*type*/ ctx[1]);
|
|
526
558
|
}
|
|
527
559
|
|
|
528
|
-
if (!current || dirty & /*disabled*/
|
|
529
|
-
button.disabled = /*disabled*/ ctx[
|
|
560
|
+
if (!current || dirty & /*disabled*/ 4) {
|
|
561
|
+
button.disabled = /*disabled*/ ctx[2];
|
|
530
562
|
}
|
|
531
563
|
|
|
532
|
-
if (dirty & /*size, kind, disabled*/
|
|
533
|
-
toggle_class(button, "disabled", /*disabled*/ ctx[
|
|
564
|
+
if (dirty & /*size, kind, disabled*/ 28) {
|
|
565
|
+
toggle_class(button, "disabled", /*disabled*/ ctx[2]);
|
|
534
566
|
}
|
|
535
567
|
|
|
536
|
-
if (dirty & /*size, kind, rounded*/
|
|
537
|
-
toggle_class(button, "rounded", /*rounded*/ ctx[
|
|
568
|
+
if (dirty & /*size, kind, rounded*/ 56) {
|
|
569
|
+
toggle_class(button, "rounded", /*rounded*/ ctx[5]);
|
|
538
570
|
}
|
|
539
571
|
},
|
|
540
572
|
i(local) {
|
|
@@ -549,13 +581,14 @@
|
|
|
549
581
|
d(detaching) {
|
|
550
582
|
if (detaching) detach(button);
|
|
551
583
|
if (default_slot) default_slot.d(detaching);
|
|
584
|
+
/*button_binding*/ ctx[10](null);
|
|
552
585
|
mounted = false;
|
|
553
586
|
dispose();
|
|
554
587
|
}
|
|
555
588
|
};
|
|
556
589
|
}
|
|
557
590
|
|
|
558
|
-
function instance$
|
|
591
|
+
function instance$g($$self, $$props, $$invalidate) {
|
|
559
592
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
560
593
|
let { type = "button" } = $$props;
|
|
561
594
|
let { disabled = false } = $$props;
|
|
@@ -563,42 +596,64 @@
|
|
|
563
596
|
let { size = "regular" } = $$props;
|
|
564
597
|
let { rounded = false } = $$props;
|
|
565
598
|
let { id } = $$props;
|
|
599
|
+
let { node } = $$props;
|
|
566
600
|
|
|
567
601
|
function click_handler(event) {
|
|
568
602
|
bubble($$self, event);
|
|
569
603
|
}
|
|
570
604
|
|
|
605
|
+
function button_binding($$value) {
|
|
606
|
+
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
607
|
+
node = $$value;
|
|
608
|
+
$$invalidate(0, node);
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
|
|
571
612
|
$$self.$$set = $$props => {
|
|
572
|
-
if ("type" in $$props) $$invalidate(
|
|
573
|
-
if ("disabled" in $$props) $$invalidate(
|
|
574
|
-
if ("kind" in $$props) $$invalidate(
|
|
575
|
-
if ("size" in $$props) $$invalidate(
|
|
576
|
-
if ("rounded" in $$props) $$invalidate(
|
|
577
|
-
if ("id" in $$props) $$invalidate(
|
|
578
|
-
if ("
|
|
613
|
+
if ("type" in $$props) $$invalidate(1, type = $$props.type);
|
|
614
|
+
if ("disabled" in $$props) $$invalidate(2, disabled = $$props.disabled);
|
|
615
|
+
if ("kind" in $$props) $$invalidate(3, kind = $$props.kind);
|
|
616
|
+
if ("size" in $$props) $$invalidate(4, size = $$props.size);
|
|
617
|
+
if ("rounded" in $$props) $$invalidate(5, rounded = $$props.rounded);
|
|
618
|
+
if ("id" in $$props) $$invalidate(6, id = $$props.id);
|
|
619
|
+
if ("node" in $$props) $$invalidate(0, node = $$props.node);
|
|
620
|
+
if ("$$scope" in $$props) $$invalidate(7, $$scope = $$props.$$scope);
|
|
579
621
|
};
|
|
580
622
|
|
|
581
|
-
return [
|
|
623
|
+
return [
|
|
624
|
+
node,
|
|
625
|
+
type,
|
|
626
|
+
disabled,
|
|
627
|
+
kind,
|
|
628
|
+
size,
|
|
629
|
+
rounded,
|
|
630
|
+
id,
|
|
631
|
+
$$scope,
|
|
632
|
+
slots,
|
|
633
|
+
click_handler,
|
|
634
|
+
button_binding
|
|
635
|
+
];
|
|
582
636
|
}
|
|
583
637
|
|
|
584
638
|
class Button extends SvelteComponent {
|
|
585
639
|
constructor(options) {
|
|
586
640
|
super();
|
|
587
641
|
|
|
588
|
-
init(this, options, instance$
|
|
589
|
-
type:
|
|
590
|
-
disabled:
|
|
591
|
-
kind:
|
|
592
|
-
size:
|
|
593
|
-
rounded:
|
|
594
|
-
id:
|
|
642
|
+
init(this, options, instance$g, create_fragment$h, safe_not_equal, {
|
|
643
|
+
type: 1,
|
|
644
|
+
disabled: 2,
|
|
645
|
+
kind: 3,
|
|
646
|
+
size: 4,
|
|
647
|
+
rounded: 5,
|
|
648
|
+
id: 6,
|
|
649
|
+
node: 0
|
|
595
650
|
});
|
|
596
651
|
}
|
|
597
652
|
}
|
|
598
653
|
|
|
599
654
|
/* src/TextInput.svelte generated by Svelte v3.38.2 */
|
|
600
655
|
|
|
601
|
-
function
|
|
656
|
+
function create_if_block_2(ctx) {
|
|
602
657
|
let label_1;
|
|
603
658
|
let t;
|
|
604
659
|
|
|
@@ -626,40 +681,103 @@
|
|
|
626
681
|
};
|
|
627
682
|
}
|
|
628
683
|
|
|
629
|
-
// (
|
|
684
|
+
// (41:1) {#if error != null}
|
|
630
685
|
function create_if_block$4(ctx) {
|
|
631
686
|
let p;
|
|
632
|
-
|
|
633
|
-
|
|
687
|
+
|
|
688
|
+
function select_block_type(ctx, dirty) {
|
|
689
|
+
if (/*htmlError*/ ctx[5]) return create_if_block_1$1;
|
|
690
|
+
return create_else_block$1;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
let current_block_type = select_block_type(ctx);
|
|
694
|
+
let if_block = current_block_type(ctx);
|
|
634
695
|
|
|
635
696
|
return {
|
|
636
697
|
c() {
|
|
637
698
|
p = element("p");
|
|
638
|
-
|
|
699
|
+
if_block.c();
|
|
639
700
|
attr(p, "data-testid", "error");
|
|
640
701
|
attr(p, "class", "error svelte-11iawkb");
|
|
641
702
|
},
|
|
642
703
|
m(target, anchor) {
|
|
643
704
|
insert(target, p, anchor);
|
|
644
|
-
|
|
705
|
+
if_block.m(p, null);
|
|
645
706
|
},
|
|
646
707
|
p(ctx, dirty) {
|
|
647
|
-
if (
|
|
708
|
+
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
709
|
+
if_block.p(ctx, dirty);
|
|
710
|
+
} else {
|
|
711
|
+
if_block.d(1);
|
|
712
|
+
if_block = current_block_type(ctx);
|
|
713
|
+
|
|
714
|
+
if (if_block) {
|
|
715
|
+
if_block.c();
|
|
716
|
+
if_block.m(p, null);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
648
719
|
},
|
|
649
720
|
d(detaching) {
|
|
650
721
|
if (detaching) detach(p);
|
|
722
|
+
if_block.d();
|
|
651
723
|
}
|
|
652
724
|
};
|
|
653
725
|
}
|
|
654
726
|
|
|
655
|
-
|
|
727
|
+
// (45:3) {:else}
|
|
728
|
+
function create_else_block$1(ctx) {
|
|
729
|
+
let t_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
|
|
730
|
+
let t;
|
|
731
|
+
|
|
732
|
+
return {
|
|
733
|
+
c() {
|
|
734
|
+
t = text(t_value);
|
|
735
|
+
},
|
|
736
|
+
m(target, anchor) {
|
|
737
|
+
insert(target, t, anchor);
|
|
738
|
+
},
|
|
739
|
+
p(ctx, dirty) {
|
|
740
|
+
if (dirty & /*error*/ 16 && t_value !== (t_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "")) set_data(t, t_value);
|
|
741
|
+
},
|
|
742
|
+
d(detaching) {
|
|
743
|
+
if (detaching) detach(t);
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
// (43:3) {#if htmlError}
|
|
749
|
+
function create_if_block_1$1(ctx) {
|
|
750
|
+
let html_tag;
|
|
751
|
+
let raw_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
|
|
752
|
+
let html_anchor;
|
|
753
|
+
|
|
754
|
+
return {
|
|
755
|
+
c() {
|
|
756
|
+
html_anchor = empty();
|
|
757
|
+
html_tag = new HtmlTag(html_anchor);
|
|
758
|
+
},
|
|
759
|
+
m(target, anchor) {
|
|
760
|
+
html_tag.m(raw_value, target, anchor);
|
|
761
|
+
insert(target, html_anchor, anchor);
|
|
762
|
+
},
|
|
763
|
+
p(ctx, dirty) {
|
|
764
|
+
if (dirty & /*error*/ 16 && raw_value !== (raw_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "")) html_tag.p(raw_value);
|
|
765
|
+
},
|
|
766
|
+
d(detaching) {
|
|
767
|
+
if (detaching) detach(html_anchor);
|
|
768
|
+
if (detaching) html_tag.d();
|
|
769
|
+
}
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
function create_fragment$g(ctx) {
|
|
656
774
|
let div;
|
|
657
775
|
let t0;
|
|
658
776
|
let input;
|
|
659
777
|
let t1;
|
|
660
778
|
let mounted;
|
|
661
779
|
let dispose;
|
|
662
|
-
let if_block0 = /*label*/ ctx[2] &&
|
|
780
|
+
let if_block0 = /*label*/ ctx[2] && create_if_block_2(ctx);
|
|
663
781
|
let if_block1 = /*error*/ ctx[4] != null && create_if_block$4(ctx);
|
|
664
782
|
|
|
665
783
|
return {
|
|
@@ -673,11 +791,11 @@
|
|
|
673
791
|
attr(input, "id", /*id*/ ctx[1]);
|
|
674
792
|
attr(input, "type", "text");
|
|
675
793
|
attr(input, "placeholder", /*placeholder*/ ctx[3]);
|
|
676
|
-
input.readOnly = /*readonly*/ ctx[
|
|
794
|
+
input.readOnly = /*readonly*/ ctx[8];
|
|
677
795
|
attr(input, "class", "svelte-11iawkb");
|
|
678
|
-
toggle_class(input, "border", /*border*/ ctx[
|
|
796
|
+
toggle_class(input, "border", /*border*/ ctx[9]);
|
|
679
797
|
toggle_class(input, "error", /*error*/ ctx[4] !== null);
|
|
680
|
-
toggle_class(input, "readonlyInput", /*readonly*/ ctx[
|
|
798
|
+
toggle_class(input, "readonlyInput", /*readonly*/ ctx[8] == true);
|
|
681
799
|
attr(div, "class", "iroco-ui-input svelte-11iawkb");
|
|
682
800
|
},
|
|
683
801
|
m(target, anchor) {
|
|
@@ -691,15 +809,15 @@
|
|
|
691
809
|
|
|
692
810
|
if (!mounted) {
|
|
693
811
|
dispose = [
|
|
694
|
-
listen(input, "input", /*input_handler*/ ctx[
|
|
695
|
-
listen(input, "input", /*input_input_handler*/ ctx[
|
|
812
|
+
listen(input, "input", /*input_handler*/ ctx[13]),
|
|
813
|
+
listen(input, "input", /*input_input_handler*/ ctx[14]),
|
|
696
814
|
listen(input, "focus", function () {
|
|
697
|
-
if (is_function(/*onFocus*/ ctx[
|
|
815
|
+
if (is_function(/*onFocus*/ ctx[6])) /*onFocus*/ ctx[6].apply(this, arguments);
|
|
698
816
|
}),
|
|
699
817
|
listen(input, "blur", function () {
|
|
700
|
-
if (is_function(/*onBlur*/ ctx[
|
|
818
|
+
if (is_function(/*onBlur*/ ctx[7])) /*onBlur*/ ctx[7].apply(this, arguments);
|
|
701
819
|
}),
|
|
702
|
-
action_destroyer(/*typeAction*/ ctx[
|
|
820
|
+
action_destroyer(/*typeAction*/ ctx[10].call(null, input))
|
|
703
821
|
];
|
|
704
822
|
|
|
705
823
|
mounted = true;
|
|
@@ -712,7 +830,7 @@
|
|
|
712
830
|
if (if_block0) {
|
|
713
831
|
if_block0.p(ctx, dirty);
|
|
714
832
|
} else {
|
|
715
|
-
if_block0 =
|
|
833
|
+
if_block0 = create_if_block_2(ctx);
|
|
716
834
|
if_block0.c();
|
|
717
835
|
if_block0.m(div, t0);
|
|
718
836
|
}
|
|
@@ -729,24 +847,24 @@
|
|
|
729
847
|
attr(input, "placeholder", /*placeholder*/ ctx[3]);
|
|
730
848
|
}
|
|
731
849
|
|
|
732
|
-
if (dirty & /*readonly*/
|
|
733
|
-
input.readOnly = /*readonly*/ ctx[
|
|
850
|
+
if (dirty & /*readonly*/ 256) {
|
|
851
|
+
input.readOnly = /*readonly*/ ctx[8];
|
|
734
852
|
}
|
|
735
853
|
|
|
736
854
|
if (dirty & /*value*/ 1 && input.value !== /*value*/ ctx[0]) {
|
|
737
855
|
set_input_value(input, /*value*/ ctx[0]);
|
|
738
856
|
}
|
|
739
857
|
|
|
740
|
-
if (dirty & /*border*/
|
|
741
|
-
toggle_class(input, "border", /*border*/ ctx[
|
|
858
|
+
if (dirty & /*border*/ 512) {
|
|
859
|
+
toggle_class(input, "border", /*border*/ ctx[9]);
|
|
742
860
|
}
|
|
743
861
|
|
|
744
862
|
if (dirty & /*error*/ 16) {
|
|
745
863
|
toggle_class(input, "error", /*error*/ ctx[4] !== null);
|
|
746
864
|
}
|
|
747
865
|
|
|
748
|
-
if (dirty & /*readonly*/
|
|
749
|
-
toggle_class(input, "readonlyInput", /*readonly*/ ctx[
|
|
866
|
+
if (dirty & /*readonly*/ 256) {
|
|
867
|
+
toggle_class(input, "readonlyInput", /*readonly*/ ctx[8] == true);
|
|
750
868
|
}
|
|
751
869
|
|
|
752
870
|
if (/*error*/ ctx[4] != null) {
|
|
@@ -774,7 +892,7 @@
|
|
|
774
892
|
};
|
|
775
893
|
}
|
|
776
894
|
|
|
777
|
-
function instance$
|
|
895
|
+
function instance$f($$self, $$props, $$invalidate) {
|
|
778
896
|
var { TextType } = $$props;
|
|
779
897
|
|
|
780
898
|
(function (TextType) {
|
|
@@ -788,6 +906,7 @@
|
|
|
788
906
|
let { label = null } = $$props;
|
|
789
907
|
let { placeholder } = $$props;
|
|
790
908
|
let { error = null } = $$props;
|
|
909
|
+
let { htmlError = false } = $$props;
|
|
791
910
|
let { value = null } = $$props;
|
|
792
911
|
let { onFocus } = $$props;
|
|
793
912
|
let { onBlur } = $$props;
|
|
@@ -808,17 +927,18 @@
|
|
|
808
927
|
}
|
|
809
928
|
|
|
810
929
|
$$self.$$set = $$props => {
|
|
811
|
-
if ("TextType" in $$props) $$invalidate(
|
|
930
|
+
if ("TextType" in $$props) $$invalidate(11, TextType = $$props.TextType);
|
|
812
931
|
if ("id" in $$props) $$invalidate(1, id = $$props.id);
|
|
813
|
-
if ("type" in $$props) $$invalidate(
|
|
932
|
+
if ("type" in $$props) $$invalidate(12, type = $$props.type);
|
|
814
933
|
if ("label" in $$props) $$invalidate(2, label = $$props.label);
|
|
815
934
|
if ("placeholder" in $$props) $$invalidate(3, placeholder = $$props.placeholder);
|
|
816
935
|
if ("error" in $$props) $$invalidate(4, error = $$props.error);
|
|
936
|
+
if ("htmlError" in $$props) $$invalidate(5, htmlError = $$props.htmlError);
|
|
817
937
|
if ("value" in $$props) $$invalidate(0, value = $$props.value);
|
|
818
|
-
if ("onFocus" in $$props) $$invalidate(
|
|
819
|
-
if ("onBlur" in $$props) $$invalidate(
|
|
820
|
-
if ("readonly" in $$props) $$invalidate(
|
|
821
|
-
if ("border" in $$props) $$invalidate(
|
|
938
|
+
if ("onFocus" in $$props) $$invalidate(6, onFocus = $$props.onFocus);
|
|
939
|
+
if ("onBlur" in $$props) $$invalidate(7, onBlur = $$props.onBlur);
|
|
940
|
+
if ("readonly" in $$props) $$invalidate(8, readonly = $$props.readonly);
|
|
941
|
+
if ("border" in $$props) $$invalidate(9, border = $$props.border);
|
|
822
942
|
};
|
|
823
943
|
|
|
824
944
|
return [
|
|
@@ -827,6 +947,7 @@
|
|
|
827
947
|
label,
|
|
828
948
|
placeholder,
|
|
829
949
|
error,
|
|
950
|
+
htmlError,
|
|
830
951
|
onFocus,
|
|
831
952
|
onBlur,
|
|
832
953
|
readonly,
|
|
@@ -843,25 +964,26 @@
|
|
|
843
964
|
constructor(options) {
|
|
844
965
|
super();
|
|
845
966
|
|
|
846
|
-
init(this, options, instance$
|
|
847
|
-
TextType:
|
|
967
|
+
init(this, options, instance$f, create_fragment$g, safe_not_equal, {
|
|
968
|
+
TextType: 11,
|
|
848
969
|
id: 1,
|
|
849
|
-
type:
|
|
970
|
+
type: 12,
|
|
850
971
|
label: 2,
|
|
851
972
|
placeholder: 3,
|
|
852
973
|
error: 4,
|
|
974
|
+
htmlError: 5,
|
|
853
975
|
value: 0,
|
|
854
|
-
onFocus:
|
|
855
|
-
onBlur:
|
|
856
|
-
readonly:
|
|
857
|
-
border:
|
|
976
|
+
onFocus: 6,
|
|
977
|
+
onBlur: 7,
|
|
978
|
+
readonly: 8,
|
|
979
|
+
border: 9
|
|
858
980
|
});
|
|
859
981
|
}
|
|
860
982
|
}
|
|
861
983
|
|
|
862
984
|
/* src/RadioButton.svelte generated by Svelte v3.38.2 */
|
|
863
985
|
|
|
864
|
-
function create_fragment$
|
|
986
|
+
function create_fragment$f(ctx) {
|
|
865
987
|
let label_1;
|
|
866
988
|
let input;
|
|
867
989
|
let t0;
|
|
@@ -957,7 +1079,7 @@
|
|
|
957
1079
|
};
|
|
958
1080
|
}
|
|
959
1081
|
|
|
960
|
-
function instance$
|
|
1082
|
+
function instance$e($$self, $$props, $$invalidate) {
|
|
961
1083
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
962
1084
|
const label = "";
|
|
963
1085
|
let { value } = $$props;
|
|
@@ -1008,7 +1130,7 @@
|
|
|
1008
1130
|
constructor(options) {
|
|
1009
1131
|
super();
|
|
1010
1132
|
|
|
1011
|
-
init(this, options, instance$
|
|
1133
|
+
init(this, options, instance$e, create_fragment$f, safe_not_equal, {
|
|
1012
1134
|
label: 5,
|
|
1013
1135
|
value: 2,
|
|
1014
1136
|
group: 0,
|
|
@@ -1077,7 +1199,7 @@
|
|
|
1077
1199
|
};
|
|
1078
1200
|
}
|
|
1079
1201
|
|
|
1080
|
-
function create_fragment$
|
|
1202
|
+
function create_fragment$e(ctx) {
|
|
1081
1203
|
let div;
|
|
1082
1204
|
let t0;
|
|
1083
1205
|
let input;
|
|
@@ -1184,7 +1306,7 @@
|
|
|
1184
1306
|
};
|
|
1185
1307
|
}
|
|
1186
1308
|
|
|
1187
|
-
function instance$
|
|
1309
|
+
function instance$d($$self, $$props, $$invalidate) {
|
|
1188
1310
|
const omit_props_names = ["id","label","placeholder","error","value","min","max"];
|
|
1189
1311
|
let $$restProps = compute_rest_props($$props, omit_props_names);
|
|
1190
1312
|
let { id } = $$props;
|
|
@@ -1234,7 +1356,7 @@
|
|
|
1234
1356
|
constructor(options) {
|
|
1235
1357
|
super();
|
|
1236
1358
|
|
|
1237
|
-
init(this, options, instance$
|
|
1359
|
+
init(this, options, instance$d, create_fragment$e, safe_not_equal, {
|
|
1238
1360
|
id: 1,
|
|
1239
1361
|
label: 2,
|
|
1240
1362
|
placeholder: 3,
|
|
@@ -3688,7 +3810,7 @@
|
|
|
3688
3810
|
};
|
|
3689
3811
|
}
|
|
3690
3812
|
|
|
3691
|
-
function create_fragment$
|
|
3813
|
+
function create_fragment$d(ctx) {
|
|
3692
3814
|
let if_block_anchor;
|
|
3693
3815
|
let if_block = /*icon*/ ctx[3] && create_if_block$2(ctx);
|
|
3694
3816
|
|
|
@@ -3724,7 +3846,7 @@
|
|
|
3724
3846
|
};
|
|
3725
3847
|
}
|
|
3726
3848
|
|
|
3727
|
-
function instance$
|
|
3849
|
+
function instance$c($$self, $$props, $$invalidate) {
|
|
3728
3850
|
let { name } = $$props;
|
|
3729
3851
|
let { stroke } = $$props;
|
|
3730
3852
|
let { strokeWidth } = $$props;
|
|
@@ -3758,7 +3880,7 @@
|
|
|
3758
3880
|
constructor(options) {
|
|
3759
3881
|
super();
|
|
3760
3882
|
|
|
3761
|
-
init(this, options, instance$
|
|
3883
|
+
init(this, options, instance$c, create_fragment$d, safe_not_equal, {
|
|
3762
3884
|
name: 4,
|
|
3763
3885
|
stroke: 5,
|
|
3764
3886
|
strokeWidth: 6,
|
|
@@ -3771,7 +3893,7 @@
|
|
|
3771
3893
|
|
|
3772
3894
|
/* src/IconIrocoLogo.svelte generated by Svelte v3.38.2 */
|
|
3773
3895
|
|
|
3774
|
-
function create_fragment$
|
|
3896
|
+
function create_fragment$c(ctx) {
|
|
3775
3897
|
let svg;
|
|
3776
3898
|
let path0;
|
|
3777
3899
|
let path1;
|
|
@@ -3813,7 +3935,7 @@
|
|
|
3813
3935
|
};
|
|
3814
3936
|
}
|
|
3815
3937
|
|
|
3816
|
-
function instance$
|
|
3938
|
+
function instance$b($$self, $$props, $$invalidate) {
|
|
3817
3939
|
let { width = "5rem" } = $$props;
|
|
3818
3940
|
let { height = "5rem" } = $$props;
|
|
3819
3941
|
|
|
@@ -3828,13 +3950,13 @@
|
|
|
3828
3950
|
class IconIrocoLogo extends SvelteComponent {
|
|
3829
3951
|
constructor(options) {
|
|
3830
3952
|
super();
|
|
3831
|
-
init(this, options, instance$
|
|
3953
|
+
init(this, options, instance$b, create_fragment$c, safe_not_equal, { width: 0, height: 1 });
|
|
3832
3954
|
}
|
|
3833
3955
|
}
|
|
3834
3956
|
|
|
3835
3957
|
/* src/Loader.svelte generated by Svelte v3.38.2 */
|
|
3836
3958
|
|
|
3837
|
-
function create_fragment$
|
|
3959
|
+
function create_fragment$b(ctx) {
|
|
3838
3960
|
let div;
|
|
3839
3961
|
let iconirocologo;
|
|
3840
3962
|
let current;
|
|
@@ -3871,13 +3993,13 @@
|
|
|
3871
3993
|
class Loader extends SvelteComponent {
|
|
3872
3994
|
constructor(options) {
|
|
3873
3995
|
super();
|
|
3874
|
-
init(this, options, null, create_fragment$
|
|
3996
|
+
init(this, options, null, create_fragment$b, safe_not_equal, {});
|
|
3875
3997
|
}
|
|
3876
3998
|
}
|
|
3877
3999
|
|
|
3878
4000
|
/* src/IconInfo.svelte generated by Svelte v3.38.2 */
|
|
3879
4001
|
|
|
3880
|
-
function create_fragment$
|
|
4002
|
+
function create_fragment$a(ctx) {
|
|
3881
4003
|
let svg;
|
|
3882
4004
|
let path;
|
|
3883
4005
|
|
|
@@ -3918,7 +4040,7 @@
|
|
|
3918
4040
|
};
|
|
3919
4041
|
}
|
|
3920
4042
|
|
|
3921
|
-
function instance$
|
|
4043
|
+
function instance$a($$self, $$props, $$invalidate) {
|
|
3922
4044
|
let { width = "5rem" } = $$props;
|
|
3923
4045
|
let { height = "5rem" } = $$props;
|
|
3924
4046
|
|
|
@@ -3933,7 +4055,78 @@
|
|
|
3933
4055
|
class IconInfo extends SvelteComponent {
|
|
3934
4056
|
constructor(options) {
|
|
3935
4057
|
super();
|
|
3936
|
-
init(this, options, instance$
|
|
4058
|
+
init(this, options, instance$a, create_fragment$a, safe_not_equal, { width: 0, height: 1 });
|
|
4059
|
+
}
|
|
4060
|
+
}
|
|
4061
|
+
|
|
4062
|
+
/* src/IconMastodon.svelte generated by Svelte v3.38.2 */
|
|
4063
|
+
|
|
4064
|
+
function create_fragment$9(ctx) {
|
|
4065
|
+
let svg;
|
|
4066
|
+
let title;
|
|
4067
|
+
let t;
|
|
4068
|
+
let path;
|
|
4069
|
+
|
|
4070
|
+
return {
|
|
4071
|
+
c() {
|
|
4072
|
+
svg = svg_element("svg");
|
|
4073
|
+
title = svg_element("title");
|
|
4074
|
+
t = text("Mastodon");
|
|
4075
|
+
path = svg_element("path");
|
|
4076
|
+
attr(path, "d", "M23.193 7.88c0-5.207-3.411-6.733-3.411-6.733C18.062.357 15.108.025 12.041 0h-.076c-3.069.025-6.02.357-7.74 1.147 0 0-3.412 1.526-3.412 6.732 0 1.193-.023 2.619.015 4.13.124 5.092.934 10.11 5.641 11.355 2.17.574 4.034.695 5.536.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.13.54c-2.165-.075-4.449-.234-4.799-2.892a5.5 5.5 0 0 1-.048-.745s2.125.52 4.818.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.508.475-6.508zm-4.024 6.709h-2.497v-6.12c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.313v3.349h-2.484v-3.35c0-1.537-.602-2.313-1.802-2.313-1.085 0-1.628.655-1.628 1.945v6.119H4.831V8.285c0-1.29.328-2.314.987-3.07.68-.759 1.57-1.147 2.674-1.147 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.305z");
|
|
4077
|
+
attr(path, "fill", /*fill*/ ctx[2]);
|
|
4078
|
+
attr(svg, "width", /*width*/ ctx[0]);
|
|
4079
|
+
attr(svg, "height", /*height*/ ctx[1]);
|
|
4080
|
+
attr(svg, "role", "img");
|
|
4081
|
+
attr(svg, "viewBox", "0 0 24 24");
|
|
4082
|
+
attr(svg, "class", "icon-mastodon");
|
|
4083
|
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
4084
|
+
},
|
|
4085
|
+
m(target, anchor) {
|
|
4086
|
+
insert(target, svg, anchor);
|
|
4087
|
+
append(svg, title);
|
|
4088
|
+
append(title, t);
|
|
4089
|
+
append(svg, path);
|
|
4090
|
+
},
|
|
4091
|
+
p(ctx, [dirty]) {
|
|
4092
|
+
if (dirty & /*fill*/ 4) {
|
|
4093
|
+
attr(path, "fill", /*fill*/ ctx[2]);
|
|
4094
|
+
}
|
|
4095
|
+
|
|
4096
|
+
if (dirty & /*width*/ 1) {
|
|
4097
|
+
attr(svg, "width", /*width*/ ctx[0]);
|
|
4098
|
+
}
|
|
4099
|
+
|
|
4100
|
+
if (dirty & /*height*/ 2) {
|
|
4101
|
+
attr(svg, "height", /*height*/ ctx[1]);
|
|
4102
|
+
}
|
|
4103
|
+
},
|
|
4104
|
+
i: noop,
|
|
4105
|
+
o: noop,
|
|
4106
|
+
d(detaching) {
|
|
4107
|
+
if (detaching) detach(svg);
|
|
4108
|
+
}
|
|
4109
|
+
};
|
|
4110
|
+
}
|
|
4111
|
+
|
|
4112
|
+
function instance$9($$self, $$props, $$invalidate) {
|
|
4113
|
+
let { width = "5em" } = $$props;
|
|
4114
|
+
let { height = "5em" } = $$props;
|
|
4115
|
+
let { fill = "currentColor" } = $$props;
|
|
4116
|
+
|
|
4117
|
+
$$self.$$set = $$props => {
|
|
4118
|
+
if ("width" in $$props) $$invalidate(0, width = $$props.width);
|
|
4119
|
+
if ("height" in $$props) $$invalidate(1, height = $$props.height);
|
|
4120
|
+
if ("fill" in $$props) $$invalidate(2, fill = $$props.fill);
|
|
4121
|
+
};
|
|
4122
|
+
|
|
4123
|
+
return [width, height, fill];
|
|
4124
|
+
}
|
|
4125
|
+
|
|
4126
|
+
class IconMastodon extends SvelteComponent {
|
|
4127
|
+
constructor(options) {
|
|
4128
|
+
super();
|
|
4129
|
+
init(this, options, instance$9, create_fragment$9, safe_not_equal, { width: 0, height: 1, fill: 2 });
|
|
3937
4130
|
}
|
|
3938
4131
|
}
|
|
3939
4132
|
|
|
@@ -4002,16 +4195,15 @@
|
|
|
4002
4195
|
|
|
4003
4196
|
function get_each_context$1(ctx, list, i) {
|
|
4004
4197
|
const child_ctx = ctx.slice();
|
|
4005
|
-
child_ctx[6] = list[i]
|
|
4006
|
-
child_ctx[7] = list[i].name;
|
|
4198
|
+
child_ctx[6] = list[i];
|
|
4007
4199
|
return child_ctx;
|
|
4008
4200
|
}
|
|
4009
4201
|
|
|
4010
|
-
// (
|
|
4202
|
+
// (23:2) {#each navigationItems as item}
|
|
4011
4203
|
function create_each_block$1(ctx) {
|
|
4012
4204
|
let li;
|
|
4013
4205
|
let a;
|
|
4014
|
-
let t0_value = /*
|
|
4206
|
+
let t0_value = /*item*/ ctx[6].name + "";
|
|
4015
4207
|
let t0;
|
|
4016
4208
|
let a_href_value;
|
|
4017
4209
|
let t1;
|
|
@@ -4019,7 +4211,7 @@
|
|
|
4019
4211
|
let dispose;
|
|
4020
4212
|
|
|
4021
4213
|
function click_handler_1() {
|
|
4022
|
-
return /*click_handler_1*/ ctx[4](/*
|
|
4214
|
+
return /*click_handler_1*/ ctx[4](/*item*/ ctx[6]);
|
|
4023
4215
|
}
|
|
4024
4216
|
|
|
4025
4217
|
return {
|
|
@@ -4028,10 +4220,14 @@
|
|
|
4028
4220
|
a = element("a");
|
|
4029
4221
|
t0 = text(t0_value);
|
|
4030
4222
|
t1 = space();
|
|
4031
|
-
|
|
4032
|
-
attr(a, "
|
|
4033
|
-
|
|
4034
|
-
|
|
4223
|
+
|
|
4224
|
+
attr(a, "href", a_href_value = typeof /*item*/ ctx[6].hrefOrCallback === "string"
|
|
4225
|
+
? /*item*/ ctx[6].hrefOrCallback
|
|
4226
|
+
: "#");
|
|
4227
|
+
|
|
4228
|
+
attr(a, "class", "svelte-12quws1");
|
|
4229
|
+
attr(li, "class", "account__sidebar__item svelte-12quws1");
|
|
4230
|
+
toggle_class(li, "active", /*active*/ ctx[1] === /*item*/ ctx[6].name);
|
|
4035
4231
|
},
|
|
4036
4232
|
m(target, anchor) {
|
|
4037
4233
|
insert(target, li, anchor);
|
|
@@ -4046,14 +4242,16 @@
|
|
|
4046
4242
|
},
|
|
4047
4243
|
p(new_ctx, dirty) {
|
|
4048
4244
|
ctx = new_ctx;
|
|
4049
|
-
if (dirty & /*navigationItems*/ 1 && t0_value !== (t0_value = /*
|
|
4245
|
+
if (dirty & /*navigationItems*/ 1 && t0_value !== (t0_value = /*item*/ ctx[6].name + "")) set_data(t0, t0_value);
|
|
4050
4246
|
|
|
4051
|
-
if (dirty & /*navigationItems*/ 1 && a_href_value !== (a_href_value = /*
|
|
4247
|
+
if (dirty & /*navigationItems*/ 1 && a_href_value !== (a_href_value = typeof /*item*/ ctx[6].hrefOrCallback === "string"
|
|
4248
|
+
? /*item*/ ctx[6].hrefOrCallback
|
|
4249
|
+
: "#")) {
|
|
4052
4250
|
attr(a, "href", a_href_value);
|
|
4053
4251
|
}
|
|
4054
4252
|
|
|
4055
4253
|
if (dirty & /*active, navigationItems*/ 3) {
|
|
4056
|
-
toggle_class(li, "active", /*active*/ ctx[1] === /*
|
|
4254
|
+
toggle_class(li, "active", /*active*/ ctx[1] === /*item*/ ctx[6].name);
|
|
4057
4255
|
}
|
|
4058
4256
|
},
|
|
4059
4257
|
d(detaching) {
|
|
@@ -4093,10 +4291,10 @@
|
|
|
4093
4291
|
each_blocks[i].c();
|
|
4094
4292
|
}
|
|
4095
4293
|
|
|
4096
|
-
attr(button, "class", "account__sidebar__close svelte-
|
|
4097
|
-
attr(ul, "class", "account__sidebar__item_container svelte-
|
|
4294
|
+
attr(button, "class", "account__sidebar__close svelte-12quws1");
|
|
4295
|
+
attr(ul, "class", "account__sidebar__item_container svelte-12quws1");
|
|
4098
4296
|
attr(nav, "data-testid", "sidebar");
|
|
4099
|
-
attr(nav, "class", "account__sidebar svelte-
|
|
4297
|
+
attr(nav, "class", "account__sidebar svelte-12quws1");
|
|
4100
4298
|
},
|
|
4101
4299
|
m(target, anchor) {
|
|
4102
4300
|
insert(target, nav, anchor);
|
|
@@ -4165,8 +4363,14 @@
|
|
|
4165
4363
|
let active;
|
|
4166
4364
|
const dispatch = createEventDispatcher();
|
|
4167
4365
|
|
|
4168
|
-
const handleClickLink =
|
|
4169
|
-
$$invalidate(1, active =
|
|
4366
|
+
const handleClickLink = menuItem => {
|
|
4367
|
+
$$invalidate(1, active = menuItem.name);
|
|
4368
|
+
|
|
4369
|
+
if (typeof menuItem.hrefOrCallback === "function") {
|
|
4370
|
+
menuItem.hrefOrCallback();
|
|
4371
|
+
return false; // to avoid calling href
|
|
4372
|
+
}
|
|
4373
|
+
|
|
4170
4374
|
dispatch("click_link");
|
|
4171
4375
|
};
|
|
4172
4376
|
|
|
@@ -4174,7 +4378,7 @@
|
|
|
4174
4378
|
bubble($$self, event);
|
|
4175
4379
|
}
|
|
4176
4380
|
|
|
4177
|
-
const click_handler_1 =
|
|
4381
|
+
const click_handler_1 = item => handleClickLink(item);
|
|
4178
4382
|
|
|
4179
4383
|
$$self.$$set = $$props => {
|
|
4180
4384
|
if ("navigationItems" in $$props) $$invalidate(0, navigationItems = $$props.navigationItems);
|
|
@@ -4350,13 +4554,13 @@
|
|
|
4350
4554
|
t6 = text(/*title*/ ctx[1]);
|
|
4351
4555
|
t7 = space();
|
|
4352
4556
|
create_component(sidebar.$$.fragment);
|
|
4353
|
-
attr(h10, "class", "svelte-
|
|
4354
|
-
attr(div0, "class", "account__navigation--mobile__title-container svelte-
|
|
4355
|
-
attr(button, "class", "account__navigation--mobile__button svelte-
|
|
4356
|
-
attr(div1, "class", "account__navigation--mobile svelte-
|
|
4357
|
-
attr(h11, "class", "svelte-
|
|
4358
|
-
attr(div2, "class", "account__navigation__title-container svelte-
|
|
4359
|
-
attr(div3, "class", "account__navigation svelte-
|
|
4557
|
+
attr(h10, "class", "svelte-1uu9ytm");
|
|
4558
|
+
attr(div0, "class", "account__navigation--mobile__title-container svelte-1uu9ytm");
|
|
4559
|
+
attr(button, "class", "account__navigation--mobile__button svelte-1uu9ytm");
|
|
4560
|
+
attr(div1, "class", "account__navigation--mobile svelte-1uu9ytm");
|
|
4561
|
+
attr(h11, "class", "svelte-1uu9ytm");
|
|
4562
|
+
attr(div2, "class", "account__navigation__title-container svelte-1uu9ytm");
|
|
4563
|
+
attr(div3, "class", "account__navigation svelte-1uu9ytm");
|
|
4360
4564
|
},
|
|
4361
4565
|
m(target, anchor) {
|
|
4362
4566
|
insert(target, div1, anchor);
|
|
@@ -5215,6 +5419,7 @@
|
|
|
5215
5419
|
exports.Icon = Icon;
|
|
5216
5420
|
exports.IconFloppyDisk = IconFloppyDisk;
|
|
5217
5421
|
exports.IconInfo = IconInfo;
|
|
5422
|
+
exports.IconMastodon = IconMastodon;
|
|
5218
5423
|
exports.IconMore = IconMoreSign;
|
|
5219
5424
|
exports.IconTrashCan = IconTrashCan;
|
|
5220
5425
|
exports.Loader = Loader;
|