@alegendstale/holly-components 2.0.9 → 2.0.10
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/custom-elements.json +1926 -927
- package/dist/components/responsive-svg/responsive-svg.d.ts +4 -4
- package/dist/components/responsive-svg/responsive-svg.d.ts.map +1 -1
- package/dist/components/responsive-svg/responsive-svg.js +68 -67
- package/dist/controllers/ResponsiveController.d.ts.map +1 -0
- package/dist/controllers/StyleController.d.ts +12 -0
- package/dist/controllers/StyleController.d.ts.map +1 -0
- package/dist/controllers/StyleController.js +20 -0
- package/dist/decorators/ExposeParts.d.ts +6 -0
- package/dist/decorators/ExposeParts.d.ts.map +1 -0
- package/dist/decorators/ExposeParts.js +39 -0
- package/dist/node_modules/style-observer/src/element-style-observer.js +214 -0
- package/dist/node_modules/style-observer/src/rendered-observer.js +46 -0
- package/dist/node_modules/style-observer/src/style-observer.js +98 -0
- package/dist/node_modules/style-observer/src/util/Bug.js +36 -0
- package/dist/node_modules/style-observer/src/util/MultiWeakMap.js +20 -0
- package/dist/node_modules/style-observer/src/util/adopt-css.js +15 -0
- package/dist/node_modules/style-observer/src/util/bugs/adopted-style-sheet.js +28 -0
- package/dist/node_modules/style-observer/src/util/bugs/transitionrun-loop.js +15 -0
- package/dist/node_modules/style-observer/src/util/bugs/unregistered-transition.js +14 -0
- package/dist/node_modules/style-observer/src/util/gentle-register-property.js +41 -0
- package/dist/node_modules/style-observer/src/util/is-registered-property.js +15 -0
- package/dist/node_modules/style-observer/src/util.js +61 -0
- package/package.json +15 -5
- package/dist/utils/ResponsiveController.d.ts.map +0 -1
- /package/dist/{utils → controllers}/ResponsiveController.d.ts +0 -0
- /package/dist/{utils → controllers}/ResponsiveController.js +0 -0
package/custom-elements.json
CHANGED
|
@@ -2,6 +2,157 @@
|
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"readme": "",
|
|
4
4
|
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "dist/controllers/ResponsiveController.js",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "class",
|
|
11
|
+
"description": "",
|
|
12
|
+
"name": "h",
|
|
13
|
+
"members": [
|
|
14
|
+
{
|
|
15
|
+
"kind": "method",
|
|
16
|
+
"name": "hostConnected"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"kind": "method",
|
|
20
|
+
"name": "hostDisconnected"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"kind": "field",
|
|
24
|
+
"name": "isMobile",
|
|
25
|
+
"type": {
|
|
26
|
+
"text": "boolean"
|
|
27
|
+
},
|
|
28
|
+
"default": "!1"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"kind": "field",
|
|
32
|
+
"name": "mediaQueryList"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"kind": "field",
|
|
36
|
+
"name": "handleMediaQueryChange"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"exports": [
|
|
42
|
+
{
|
|
43
|
+
"kind": "js",
|
|
44
|
+
"name": "ResponsiveController",
|
|
45
|
+
"declaration": {
|
|
46
|
+
"name": "h",
|
|
47
|
+
"module": "dist/controllers/ResponsiveController.js"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"kind": "javascript-module",
|
|
54
|
+
"path": "dist/controllers/StyleController.js",
|
|
55
|
+
"declarations": [
|
|
56
|
+
{
|
|
57
|
+
"kind": "class",
|
|
58
|
+
"description": "",
|
|
59
|
+
"name": "l",
|
|
60
|
+
"members": [
|
|
61
|
+
{
|
|
62
|
+
"kind": "method",
|
|
63
|
+
"name": "hostConnected"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"kind": "method",
|
|
67
|
+
"name": "hostDisconnected"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"kind": "field",
|
|
71
|
+
"name": "host",
|
|
72
|
+
"default": "s"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"kind": "field",
|
|
76
|
+
"name": "property",
|
|
77
|
+
"default": "t"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"kind": "field",
|
|
81
|
+
"name": "callback",
|
|
82
|
+
"default": "e"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"kind": "field",
|
|
86
|
+
"name": "value",
|
|
87
|
+
"type": {
|
|
88
|
+
"text": "string"
|
|
89
|
+
},
|
|
90
|
+
"default": "\"\""
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"exports": [
|
|
96
|
+
{
|
|
97
|
+
"kind": "js",
|
|
98
|
+
"name": "StyleController",
|
|
99
|
+
"declaration": {
|
|
100
|
+
"name": "l",
|
|
101
|
+
"module": "dist/controllers/StyleController.js"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"kind": "javascript-module",
|
|
108
|
+
"path": "dist/decorators/condCustomElement.js",
|
|
109
|
+
"declarations": [
|
|
110
|
+
{
|
|
111
|
+
"kind": "function",
|
|
112
|
+
"name": "o",
|
|
113
|
+
"parameters": [
|
|
114
|
+
{
|
|
115
|
+
"name": "t"
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"exports": [
|
|
121
|
+
{
|
|
122
|
+
"kind": "js",
|
|
123
|
+
"name": "condCustomElement",
|
|
124
|
+
"declaration": {
|
|
125
|
+
"name": "o",
|
|
126
|
+
"module": "dist/decorators/condCustomElement.js"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"kind": "javascript-module",
|
|
133
|
+
"path": "dist/decorators/ExposeParts.js",
|
|
134
|
+
"declarations": [
|
|
135
|
+
{
|
|
136
|
+
"kind": "function",
|
|
137
|
+
"name": "l",
|
|
138
|
+
"parameters": [
|
|
139
|
+
{
|
|
140
|
+
"name": "o"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"exports": [
|
|
146
|
+
{
|
|
147
|
+
"kind": "js",
|
|
148
|
+
"name": "exposeParts",
|
|
149
|
+
"declaration": {
|
|
150
|
+
"name": "l",
|
|
151
|
+
"module": "dist/decorators/ExposeParts.js"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
5
156
|
{
|
|
6
157
|
"kind": "javascript-module",
|
|
7
158
|
"path": "dist/utils/basicUtils.js",
|
|
@@ -520,115 +671,193 @@
|
|
|
520
671
|
},
|
|
521
672
|
{
|
|
522
673
|
"kind": "javascript-module",
|
|
523
|
-
"path": "
|
|
674
|
+
"path": "src/decorators/condCustomElement.ts",
|
|
524
675
|
"declarations": [
|
|
525
676
|
{
|
|
526
|
-
"kind": "
|
|
527
|
-
"
|
|
528
|
-
"
|
|
529
|
-
"members": [
|
|
530
|
-
{
|
|
531
|
-
"kind": "method",
|
|
532
|
-
"name": "hostConnected"
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"kind": "method",
|
|
536
|
-
"name": "hostDisconnected"
|
|
537
|
-
},
|
|
677
|
+
"kind": "function",
|
|
678
|
+
"name": "condCustomElement",
|
|
679
|
+
"parameters": [
|
|
538
680
|
{
|
|
539
|
-
"
|
|
540
|
-
"name": "isMobile",
|
|
681
|
+
"name": "tagName",
|
|
541
682
|
"type": {
|
|
542
|
-
"text": "
|
|
683
|
+
"text": "string"
|
|
543
684
|
},
|
|
544
|
-
"
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
"kind": "field",
|
|
548
|
-
"name": "mediaQueryList"
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
"kind": "field",
|
|
552
|
-
"name": "handleMediaQueryChange"
|
|
685
|
+
"description": "The tag name of the custom element to define."
|
|
553
686
|
}
|
|
554
|
-
]
|
|
687
|
+
],
|
|
688
|
+
"description": "Registers a new custom element if it doesn't already exist."
|
|
555
689
|
}
|
|
556
690
|
],
|
|
557
691
|
"exports": [
|
|
558
692
|
{
|
|
559
693
|
"kind": "js",
|
|
560
|
-
"name": "
|
|
694
|
+
"name": "condCustomElement",
|
|
561
695
|
"declaration": {
|
|
562
|
-
"name": "
|
|
563
|
-
"module": "
|
|
696
|
+
"name": "condCustomElement",
|
|
697
|
+
"module": "src/decorators/condCustomElement.ts"
|
|
564
698
|
}
|
|
565
699
|
}
|
|
566
700
|
]
|
|
567
701
|
},
|
|
568
702
|
{
|
|
569
703
|
"kind": "javascript-module",
|
|
570
|
-
"path": "
|
|
704
|
+
"path": "src/decorators/ExposeParts.ts",
|
|
571
705
|
"declarations": [
|
|
572
706
|
{
|
|
573
707
|
"kind": "function",
|
|
574
|
-
"name": "
|
|
708
|
+
"name": "exposeParts",
|
|
575
709
|
"parameters": [
|
|
576
710
|
{
|
|
577
|
-
"name": "
|
|
711
|
+
"name": "partMap",
|
|
712
|
+
"type": {
|
|
713
|
+
"text": "PartMap[]"
|
|
714
|
+
}
|
|
578
715
|
}
|
|
579
|
-
]
|
|
716
|
+
],
|
|
717
|
+
"description": "Property decorator that exposes parts and updates them when the property changes."
|
|
580
718
|
}
|
|
581
719
|
],
|
|
582
720
|
"exports": [
|
|
583
721
|
{
|
|
584
722
|
"kind": "js",
|
|
585
|
-
"name": "
|
|
723
|
+
"name": "exposeParts",
|
|
586
724
|
"declaration": {
|
|
587
|
-
"name": "
|
|
588
|
-
"module": "
|
|
725
|
+
"name": "exposeParts",
|
|
726
|
+
"module": "src/decorators/ExposeParts.ts"
|
|
589
727
|
}
|
|
590
728
|
}
|
|
591
729
|
]
|
|
592
730
|
},
|
|
593
731
|
{
|
|
594
732
|
"kind": "javascript-module",
|
|
595
|
-
"path": "src/
|
|
733
|
+
"path": "src/controllers/ResponsiveController.ts",
|
|
596
734
|
"declarations": [
|
|
597
735
|
{
|
|
598
|
-
"kind": "
|
|
599
|
-
"
|
|
600
|
-
"
|
|
736
|
+
"kind": "class",
|
|
737
|
+
"description": "",
|
|
738
|
+
"name": "ResponsiveController",
|
|
739
|
+
"members": [
|
|
601
740
|
{
|
|
602
|
-
"
|
|
741
|
+
"kind": "field",
|
|
742
|
+
"name": "isMobile",
|
|
603
743
|
"type": {
|
|
604
|
-
"text": "
|
|
744
|
+
"text": "boolean"
|
|
605
745
|
},
|
|
606
|
-
"
|
|
746
|
+
"default": "false"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"kind": "field",
|
|
750
|
+
"name": "host",
|
|
751
|
+
"type": {
|
|
752
|
+
"text": "ReactiveControllerHost"
|
|
753
|
+
},
|
|
754
|
+
"privacy": "private"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"kind": "field",
|
|
758
|
+
"name": "mediaQueryList",
|
|
759
|
+
"type": {
|
|
760
|
+
"text": "MediaQueryList"
|
|
761
|
+
},
|
|
762
|
+
"privacy": "private"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"kind": "field",
|
|
766
|
+
"name": "handleMediaQueryChange",
|
|
767
|
+
"type": {
|
|
768
|
+
"text": "(event: MediaQueryListEvent) => void"
|
|
769
|
+
},
|
|
770
|
+
"privacy": "private"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"kind": "method",
|
|
774
|
+
"name": "hostConnected",
|
|
775
|
+
"return": {
|
|
776
|
+
"type": {
|
|
777
|
+
"text": "void"
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"kind": "method",
|
|
783
|
+
"name": "hostDisconnected",
|
|
784
|
+
"return": {
|
|
785
|
+
"type": {
|
|
786
|
+
"text": "void"
|
|
787
|
+
}
|
|
788
|
+
}
|
|
607
789
|
}
|
|
608
|
-
]
|
|
609
|
-
"description": "Registers a new custom element if it doesn't already exist."
|
|
790
|
+
]
|
|
610
791
|
}
|
|
611
792
|
],
|
|
612
793
|
"exports": [
|
|
613
794
|
{
|
|
614
795
|
"kind": "js",
|
|
615
|
-
"name": "
|
|
796
|
+
"name": "ResponsiveController",
|
|
616
797
|
"declaration": {
|
|
617
|
-
"name": "
|
|
618
|
-
"module": "src/
|
|
798
|
+
"name": "ResponsiveController",
|
|
799
|
+
"module": "src/controllers/ResponsiveController.ts"
|
|
619
800
|
}
|
|
620
801
|
}
|
|
621
802
|
]
|
|
622
803
|
},
|
|
623
804
|
{
|
|
624
805
|
"kind": "javascript-module",
|
|
625
|
-
"path": "src/
|
|
806
|
+
"path": "src/controllers/StyleController.ts",
|
|
626
807
|
"declarations": [
|
|
627
808
|
{
|
|
628
|
-
"kind": "
|
|
629
|
-
"
|
|
630
|
-
"
|
|
631
|
-
|
|
809
|
+
"kind": "class",
|
|
810
|
+
"description": "",
|
|
811
|
+
"name": "StyleController",
|
|
812
|
+
"members": [
|
|
813
|
+
{
|
|
814
|
+
"kind": "field",
|
|
815
|
+
"name": "observer",
|
|
816
|
+
"type": {
|
|
817
|
+
"text": "StyleObserver | undefined"
|
|
818
|
+
},
|
|
819
|
+
"privacy": "private"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"kind": "field",
|
|
823
|
+
"name": "value",
|
|
824
|
+
"type": {
|
|
825
|
+
"text": "string"
|
|
826
|
+
},
|
|
827
|
+
"privacy": "public",
|
|
828
|
+
"default": "''"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"kind": "method",
|
|
832
|
+
"name": "hostConnected"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"kind": "method",
|
|
836
|
+
"name": "hostDisconnected"
|
|
837
|
+
}
|
|
838
|
+
]
|
|
839
|
+
}
|
|
840
|
+
],
|
|
841
|
+
"exports": [
|
|
842
|
+
{
|
|
843
|
+
"kind": "js",
|
|
844
|
+
"name": "StyleController",
|
|
845
|
+
"declaration": {
|
|
846
|
+
"name": "StyleController",
|
|
847
|
+
"module": "src/controllers/StyleController.ts"
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
]
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"kind": "javascript-module",
|
|
854
|
+
"path": "src/utils/basicUtils.ts",
|
|
855
|
+
"declarations": [
|
|
856
|
+
{
|
|
857
|
+
"kind": "function",
|
|
858
|
+
"name": "getModifiedSettings",
|
|
859
|
+
"parameters": [
|
|
860
|
+
{
|
|
632
861
|
"name": "settings",
|
|
633
862
|
"type": {
|
|
634
863
|
"text": "PaletteSettings"
|
|
@@ -1292,79 +1521,6 @@
|
|
|
1292
1521
|
}
|
|
1293
1522
|
]
|
|
1294
1523
|
},
|
|
1295
|
-
{
|
|
1296
|
-
"kind": "javascript-module",
|
|
1297
|
-
"path": "src/utils/ResponsiveController.ts",
|
|
1298
|
-
"declarations": [
|
|
1299
|
-
{
|
|
1300
|
-
"kind": "class",
|
|
1301
|
-
"description": "",
|
|
1302
|
-
"name": "ResponsiveController",
|
|
1303
|
-
"members": [
|
|
1304
|
-
{
|
|
1305
|
-
"kind": "field",
|
|
1306
|
-
"name": "isMobile",
|
|
1307
|
-
"type": {
|
|
1308
|
-
"text": "boolean"
|
|
1309
|
-
},
|
|
1310
|
-
"default": "false"
|
|
1311
|
-
},
|
|
1312
|
-
{
|
|
1313
|
-
"kind": "field",
|
|
1314
|
-
"name": "host",
|
|
1315
|
-
"type": {
|
|
1316
|
-
"text": "ReactiveControllerHost"
|
|
1317
|
-
},
|
|
1318
|
-
"privacy": "private"
|
|
1319
|
-
},
|
|
1320
|
-
{
|
|
1321
|
-
"kind": "field",
|
|
1322
|
-
"name": "mediaQueryList",
|
|
1323
|
-
"type": {
|
|
1324
|
-
"text": "MediaQueryList"
|
|
1325
|
-
},
|
|
1326
|
-
"privacy": "private"
|
|
1327
|
-
},
|
|
1328
|
-
{
|
|
1329
|
-
"kind": "field",
|
|
1330
|
-
"name": "handleMediaQueryChange",
|
|
1331
|
-
"type": {
|
|
1332
|
-
"text": "(event: MediaQueryListEvent) => void"
|
|
1333
|
-
},
|
|
1334
|
-
"privacy": "private"
|
|
1335
|
-
},
|
|
1336
|
-
{
|
|
1337
|
-
"kind": "method",
|
|
1338
|
-
"name": "hostConnected",
|
|
1339
|
-
"return": {
|
|
1340
|
-
"type": {
|
|
1341
|
-
"text": "void"
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
},
|
|
1345
|
-
{
|
|
1346
|
-
"kind": "method",
|
|
1347
|
-
"name": "hostDisconnected",
|
|
1348
|
-
"return": {
|
|
1349
|
-
"type": {
|
|
1350
|
-
"text": "void"
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
]
|
|
1355
|
-
}
|
|
1356
|
-
],
|
|
1357
|
-
"exports": [
|
|
1358
|
-
{
|
|
1359
|
-
"kind": "js",
|
|
1360
|
-
"name": "ResponsiveController",
|
|
1361
|
-
"declaration": {
|
|
1362
|
-
"name": "ResponsiveController",
|
|
1363
|
-
"module": "src/utils/ResponsiveController.ts"
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
]
|
|
1367
|
-
},
|
|
1368
1524
|
{
|
|
1369
1525
|
"kind": "javascript-module",
|
|
1370
1526
|
"path": "dist/components/absolute-container/absolute-container.js",
|
|
@@ -1407,48 +1563,6 @@
|
|
|
1407
1563
|
}
|
|
1408
1564
|
]
|
|
1409
1565
|
},
|
|
1410
|
-
{
|
|
1411
|
-
"kind": "javascript-module",
|
|
1412
|
-
"path": "dist/components/bottom-sheet/bottom-sheet.js",
|
|
1413
|
-
"declarations": [
|
|
1414
|
-
{
|
|
1415
|
-
"kind": "variable",
|
|
1416
|
-
"name": "o",
|
|
1417
|
-
"default": "class extends c { constructor() { super(...arguments), this.open = !1, this.nonmodal = !1, this.dragging = !1, this.scrolling = !1, this.snapPoints = [], this.defaultSnap = NaN, this.emitter = new d(), this.startY = 0, this.startHeight = 0, this.previousTouch = null, this.lastScrollTop = 0; } set height(t) { const e = Math.min(Math.max(t, 0), 100); this.emitter.emit(\"snapped\", this.isSnapped(e), this.shadowRoot?.activeElement), isFinite(t) ? this.style.setProperty(\"--height\", `${Math.round(e)}dvh`) : this.style.setProperty(\"--height\", \"fit-content\"); } get height() { return parseInt(this.style.getPropertyValue(\"--height\")); } connectedCallback() { super.connectedCallback(); const t = this.snapPoints.length === 2 ? 0 : 1; this.defaultSnap = this.snapPoints.length > 0 ? isNaN(this.defaultSnap) ? this.snapPoints[Math.round(this.snapPoints.length / 2) - t] : this.defaultSnap : NaN, this.emitter.on(\"snapped\", this.onSnapped.bind(this)), requestAnimationFrame(() => { this.showSheet(this.open); }); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return requestAnimationFrame(() => { this.setDialog(this.open); }), g` <dialog @click=${(t) => { t.stopPropagation(), this.toggleSheet(); }} > <button id=\"handle\" part=\"__handle\" @pointerdown=${this.pointerDown} @pointermove=${this.pointerMove} @pointerup=${this.pointerUp} @click=${(t) => { t.stopPropagation(); }} > ⸻ </button> <div id='content' part=\"__content\" tabindex='0' @touchstart=${this.touchDown} @touchend=${this.touchUp} @touchmove=${this.touchMove} @scroll=${this.contentScroll} @touchcancel=${(t) => { console.warn(\"User Agent touchcancelled the event.\", t.target); }} @dragstart=${(t) => { t.preventDefault(); }} @click=${(t) => { t.stopPropagation(); }} > <slot></slot> </div> </dialog> `; } /** * Find closest point index to target in array */ closestSnapPointIndex(t, e) { return t.reduce((i, n, s) => Math.abs(n - e) < Math.abs(t[i] - e) ? s : i, 0); } /** * Sets sheet height to the closest snap * @param height percentage */ setSnap(t) { if (this.snapPoints.length === 0) return; const e = this.snapPoints[this.closestSnapPointIndex(this.snapPoints, t)]; e === this.snapPoints[0] && this.showSheet(!1), this.height = e; } /** * @returns Whether sheet is snapped to a snap point */ isSnapped(t) { return this.snapPoints.some((e) => e === Math.round(t)); } /** * Sets the display state of the sheet */ showSheet(t) { this.open = t, this.height = isNaN(this.defaultSnap) ? 1 / 0 : this.defaultSnap, this.setOverscroll(t), this.setDialog(t); } /** * Toggles the display state of the sheet */ toggleSheet() { this.showSheet(!this.open); } /** * Remove overscroll to prevent mobile browsers from refreshing during drag */ setOverscroll(t) { const e = document.querySelector(\"html\"), i = document.querySelector(\"body\"), n = t ? \"none\" : \"unset\"; e && e.style.setProperty(\"overscroll-behavior-block\", n), i && i.style.setProperty(\"overscroll-behavior-block\", n); } setDialog(t) { t && !this.dialog.open ? this.nonmodal ? this.dialog.show() : this.dialog.showModal() : t && this.dialog.open ? this.nonmodal && this.modalDialog ? (this.dialog.close(), this.dialog.show()) : !this.nonmodal && this.nonModalDialog && (this.dialog.close(), this.dialog.showModal()) : this.dialog.close(); } touchDown(t) { t.target instanceof HTMLElement && (this.startY = t.touches[0].pageY, this.startHeight = this.height); } touchMove(t) { if (!(t.target instanceof HTMLElement)) return; const e = t.touches[0]; let i = NaN; this.previousTouch && (i = e.pageY - this.previousTouch.pageY), this.previousTouch = e; let n = this.startY - t.touches[0].pageY; const s = this.startHeight + n / window.innerHeight * 100; !this.scrolling && this.dragging ? this.height = s : this.scrolling && this.dragging || this.scrolling && !this.dragging ? t.target.focus({ preventScroll: !0 }) : !this.scrolling && !this.dragging && (i >= 0 ? this.height = Math.min(s, this.defaultSnap || this.snapPoints[this.snapPoints.length - 1]) : t.target.focus({ preventScroll: !0 })); } touchUp(t) { t.target instanceof HTMLElement && (this.previousTouch = null, this.setSnap(this.height)); } pointerDown(t) { t.target instanceof HTMLElement && (t.target.setPointerCapture(t.pointerId), this.startY = t.pageY, this.startHeight = this.height); } pointerMove(t) { if (!(t.target instanceof HTMLElement && t.target.hasPointerCapture(t.pointerId)) || !t.isPrimary) return; t.preventDefault(); let e = this.startY - t.pageY; const i = this.startHeight + e / window.innerHeight * 100; t.target.id === \"handle\" && (this.height = i); } pointerUp(t) { t.target instanceof HTMLElement && (t.target.releasePointerCapture(t.pointerId), this.setSnap(this.height)); } onSnapped(t, e) { this.dragging = !t; } contentScroll(t) { if (!(t.target instanceof HTMLElement && t.target.id === \"content\")) return; const e = t.target.scrollTop; this.scrolling = e !== this.lastScrollTop, this.lastScrollTop = e, e === 0 && (this.scrolling = !1); } }"
|
|
1418
|
-
}
|
|
1419
|
-
],
|
|
1420
|
-
"exports": [
|
|
1421
|
-
{
|
|
1422
|
-
"kind": "js",
|
|
1423
|
-
"name": "BottomSheet",
|
|
1424
|
-
"declaration": {
|
|
1425
|
-
"name": "o",
|
|
1426
|
-
"module": "dist/components/bottom-sheet/bottom-sheet.js"
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
]
|
|
1430
|
-
},
|
|
1431
|
-
{
|
|
1432
|
-
"kind": "javascript-module",
|
|
1433
|
-
"path": "dist/components/bottom-sheet/bottom-sheet.styles.js",
|
|
1434
|
-
"declarations": [
|
|
1435
|
-
{
|
|
1436
|
-
"kind": "variable",
|
|
1437
|
-
"name": "e",
|
|
1438
|
-
"default": "o` :host { contain: content; overscroll-behavior-block: none; --height: fit-content; } :host([dragging]) dialog { #content { cursor: grabbing; /* Important! Prevents mobile browsers from reclaiming PointerMove event on touch devices */ touch-action: none; /* Prevent weird scrollbar movement on mobile when dragging */ overflow-y: hidden; } } :host(:not([dragging])) dialog { /* Only animate if not dragging */ transition-property: overlay opacity display; transition-duration: 0.25s; transition-behavior: allow-discrete; &::backdrop { transition-property: overlay opacity display; transition-duration: 0.25s; transition-behavior: allow-discrete; } #content { /* Allow scroll */ touch-action: pan-y; } } dialog { display: none; opacity: 0; translate: 0 var(--height); height: var(--height); min-height: 0; max-height: 100%; min-width: 100%; max-width: 100%; flex-direction: column; box-sizing: border-box; padding: 0; border: 0; background-color: light-dark(#d9d9d9, #1c1c1c); /* Important! Removes default browser styling, allowing bottom to work */ inset: unset; bottom: 0; left: 0; overflow-y: hidden; /* Important! Prevents mobile browsers from reclaiming PointerMove event on touch devices */ touch-action: none; /* Prevent weird scrollbar movement on mobile when dragging */ overflow-y: hidden; &[open] { display: flex; opacity: 1; translate: 0 0; &::backdrop { opacity: 0.8; } } &::backdrop { background: black; opacity: 0; } } @starting-style { dialog[open] { opacity: 0; translate: 0 var(--height); &::backdrop { opacity: 0; } } } #handle { display: block; position: sticky; top: 0; background: transparent; border: 0; cursor: grabbing; min-height: 35px; user-select: none; touch-action: none; } div { /* display: contents; */ overflow-y: auto; scrollbar-width: none; box-sizing: border-box; min-height: 100%; min-width: 100%; } ::slotted(*) { /* Prevent slotted items from taking pointer events */ /* pointer-events: none; */ } `"
|
|
1439
|
-
}
|
|
1440
|
-
],
|
|
1441
|
-
"exports": [
|
|
1442
|
-
{
|
|
1443
|
-
"kind": "js",
|
|
1444
|
-
"name": "default",
|
|
1445
|
-
"declaration": {
|
|
1446
|
-
"name": "e",
|
|
1447
|
-
"module": "dist/components/bottom-sheet/bottom-sheet.styles.js"
|
|
1448
|
-
}
|
|
1449
|
-
}
|
|
1450
|
-
]
|
|
1451
|
-
},
|
|
1452
1566
|
{
|
|
1453
1567
|
"kind": "javascript-module",
|
|
1454
1568
|
"path": "dist/components/canvas/canvas-base.js",
|
|
@@ -1533,48 +1647,6 @@
|
|
|
1533
1647
|
}
|
|
1534
1648
|
]
|
|
1535
1649
|
},
|
|
1536
|
-
{
|
|
1537
|
-
"kind": "javascript-module",
|
|
1538
|
-
"path": "dist/components/carousel-scroller/carousel-scroller.js",
|
|
1539
|
-
"declarations": [
|
|
1540
|
-
{
|
|
1541
|
-
"kind": "variable",
|
|
1542
|
-
"name": "i",
|
|
1543
|
-
"default": "class extends c { constructor() { super(), this.slotChildren = [], this.emitter = new m(), this._currentSlide = 0, this.debouncers = /* @__PURE__ */ new WeakMap(), this.emitter.on(\"slotsLoaded\", (e) => { this.slotChildren = e; }); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return d` <div class=\"container\"> <button @click=${this.scrollToPrevSlide}><</button> <button @click=${this.scrollToNextSlide}>></button> <div> <slot @slotchange=${this.slotChange}></slot> </div> </div> `; } /** Gets the current slide. * @returns HTMLElement */ getCurrentSlide() { return this.slotChildren[this._currentSlide - 1]; } /** Scrolls to the slide before the current slide. */ scrollToPrevSlide() { this._currentSlide = this._currentSlide === 0 ? this._currentSlide = this.slotChildren.length - 1 : this._currentSlide - 1, this.slotChildren.at(this._currentSlide)?.scrollIntoView({ behavior: \"smooth\", block: \"nearest\" }); } /** Scrolls to the slide after the current slide. */ scrollToNextSlide() { this._currentSlide = this._currentSlide === this.slotChildren.length - 1 ? 0 : this._currentSlide + 1, this.slotChildren.at(this._currentSlide)?.scrollIntoView({ behavior: \"smooth\", block: \"nearest\" }); } /** @internal */ slotChange() { const e = Array.from( this.slotEl.assignedElements().map((r) => r) ); clearTimeout(this.debouncers.get(this.slotEl)); const s = setTimeout( () => this.emitter.emit(\"slotsLoaded\", e), 100 ); this.debouncers.set(this.slotEl, s); } }"
|
|
1544
|
-
}
|
|
1545
|
-
],
|
|
1546
|
-
"exports": [
|
|
1547
|
-
{
|
|
1548
|
-
"kind": "js",
|
|
1549
|
-
"name": "CarouselScroller",
|
|
1550
|
-
"declaration": {
|
|
1551
|
-
"name": "i",
|
|
1552
|
-
"module": "dist/components/carousel-scroller/carousel-scroller.js"
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
]
|
|
1556
|
-
},
|
|
1557
|
-
{
|
|
1558
|
-
"kind": "javascript-module",
|
|
1559
|
-
"path": "dist/components/carousel-scroller/carousel-scroller.styles.js",
|
|
1560
|
-
"declarations": [
|
|
1561
|
-
{
|
|
1562
|
-
"kind": "variable",
|
|
1563
|
-
"name": "o",
|
|
1564
|
-
"default": "r` :host { --padding: 40px; --margin: 80px; } .container { width: 600px; height: 400px; margin: 20px; border-radius: 20px; overflow: hidden; position: relative; & > button { position: absolute; width: var(--padding); height: calc(var(--padding) * 2); z-index: 1; background-color: #00000080; border: none; bottom: calc(50% - var(--padding)); font-size: 32px; &:hover { background-color: #6352b880; } &:nth-child(1) { left: 0; border-top-right-radius: 314px; border-bottom-right-radius: 314px; } &:nth-child(2) { right: 0; border-top-left-radius: 314px; border-bottom-left-radius: 314px; } } & > div { display: flex; overflow-x: scroll; position: relative; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--padding); } ::slotted(*) { display: flex; flex-direction: column; justify-content: center; min-height: calc(400px - var(--margin)); min-width: calc(600px - var(--margin)); max-height: calc(400px - var(--margin)); max-width: calc(600px - var(--margin)); background: white; scroll-snap-align: center; padding: calc(var(--margin) / 2); } } `"
|
|
1565
|
-
}
|
|
1566
|
-
],
|
|
1567
|
-
"exports": [
|
|
1568
|
-
{
|
|
1569
|
-
"kind": "js",
|
|
1570
|
-
"name": "default",
|
|
1571
|
-
"declaration": {
|
|
1572
|
-
"name": "o",
|
|
1573
|
-
"module": "dist/components/carousel-scroller/carousel-scroller.styles.js"
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1576
|
-
]
|
|
1577
|
-
},
|
|
1578
1650
|
{
|
|
1579
1651
|
"kind": "javascript-module",
|
|
1580
1652
|
"path": "dist/components/color-palette/color-palette-utils.js",
|
|
@@ -1785,81 +1857,33 @@
|
|
|
1785
1857
|
},
|
|
1786
1858
|
{
|
|
1787
1859
|
"kind": "javascript-module",
|
|
1788
|
-
"path": "dist/components/
|
|
1860
|
+
"path": "dist/components/bottom-sheet/bottom-sheet.js",
|
|
1789
1861
|
"declarations": [
|
|
1790
1862
|
{
|
|
1791
1863
|
"kind": "variable",
|
|
1792
|
-
"name": "
|
|
1793
|
-
"
|
|
1794
|
-
"text": "array"
|
|
1795
|
-
},
|
|
1796
|
-
"default": "[ \"none\", \"xMinYMin\", \"xMidYMin\", \"xMaxYMin\", \"xMinYMid\", \"xMidYMid\", \"xMaxYMid\", \"xMinYMax\", \"xMidYMax\", \"xMaxYMax\" ]"
|
|
1797
|
-
},
|
|
1798
|
-
{
|
|
1799
|
-
"kind": "variable",
|
|
1800
|
-
"name": "A",
|
|
1801
|
-
"type": {
|
|
1802
|
-
"text": "array"
|
|
1803
|
-
},
|
|
1804
|
-
"default": "[\"meet\", \"slice\"]"
|
|
1805
|
-
},
|
|
1806
|
-
{
|
|
1807
|
-
"kind": "variable",
|
|
1808
|
-
"name": "M",
|
|
1809
|
-
"type": {
|
|
1810
|
-
"text": "array"
|
|
1811
|
-
},
|
|
1812
|
-
"default": "[ ...l, ...l.flatMap((t) => A.map((e) => `${t} ${e}`)) ]"
|
|
1813
|
-
},
|
|
1814
|
-
{
|
|
1815
|
-
"kind": "variable",
|
|
1816
|
-
"name": "p",
|
|
1817
|
-
"default": "class extends g { constructor() { super(...arguments), this.autofit = !1, this.svgColors = !1, this.viewBox = { x: 0, y: 0, width: 0, height: 0 }; } set svg(t) { const e = t instanceof SVGElement || x(t) ? t : u(t); e instanceof Element && !(e instanceof SVGElement) || (this._svg = e); } get svg() { return this._svg ?? \"\"; } set preserveAspectRatio(t) { this._preserveAspectRatio = t; } get preserveAspectRatio() { if (this._preserveAspectRatio == null && this.svg instanceof SVGElement) { const t = this.svg.getAttribute(\"preserveAspectRatio\") || \"\"; if (R(t)) return t; } return this._preserveAspectRatio || \"xMidYMid meet\"; } // For classes inheriting from responsive-svg (e.g. draw-svg) svgClasses() { return {}; } willUpdate(t) { if (super.willUpdate(t), this.svg instanceof SVGElement) { const e = this.getViewBoxSize(this.svg), i = this.svg.getAttribute(\"width\"), o = this.svg.getAttribute(\"height\"); this.viewBox = e ?? { x: 0, y: 0, width: Number(i) || 0, height: Number(o) || 0 }; } else { const e = this.style.getPropertyValue(\"--svg-width\"), i = this.style.getPropertyValue(\"--svg-height\"); this.viewBox = { x: 0, y: 0, width: parseFloat(e) || 0, height: parseFloat(i) || 0 }; } } render() { const t = this.viewBox, e = this.preserveAspectRatio, i = this.svgClasses(); if (typeof this.svg == \"string\") return c`<p style=\"font-size: initial;\">⚠️ SVG Error</p>`; if (this.svg instanceof SVGElement) { const s = this.svg.cloneNode(!0); return this.applyPartToPaths(s, \"__path\"), o(Array.from(s.children), t); } else return o(this.svg, t); function o(s, r) { if (s) return c` <svg part=\"__svg\" class=${m(i)} style=${f({ \"--svg-width-fallback\": `${r.width}em`, \"--svg-height-fallback\": `${r.height}em` })} viewBox=\"${r.x} ${r.y} ${r.width} ${r.height}\" preserveAspectRatio=${e} xmlns=\"http://www.w3.org/2000/svg\" > ${s} </svg> `; } } /** Applies a part name to all paths in the given element. */ applyPartToPaths(t, e) { if (t instanceof Element) { t.tagName.toLowerCase() === \"path\" && t.setAttribute(\"part\", e); for (const i of Array.from(t.children)) this.applyPartToPaths(i, e); } } /** * Gets the viewBox dimensions from an SVG element. * @param svg The SVG to get the attribute from. * @returns The SVG viewBox x, y, width, and height */ getViewBoxSize(t) { const e = t.getAttribute(\"viewBox\")?.split(\" \"); return e ? { x: +e[0], y: +e[1], width: +e[2], height: +e[3] } : null; } }"
|
|
1864
|
+
"name": "o",
|
|
1865
|
+
"default": "class extends c { constructor() { super(...arguments), this.open = !1, this.nonmodal = !1, this.dragging = !1, this.scrolling = !1, this.snapPoints = [], this.defaultSnap = NaN, this.emitter = new d(), this.startY = 0, this.startHeight = 0, this.previousTouch = null, this.lastScrollTop = 0; } set height(t) { const e = Math.min(Math.max(t, 0), 100); this.emitter.emit(\"snapped\", this.isSnapped(e), this.shadowRoot?.activeElement), isFinite(t) ? this.style.setProperty(\"--height\", `${Math.round(e)}dvh`) : this.style.setProperty(\"--height\", \"fit-content\"); } get height() { return parseInt(this.style.getPropertyValue(\"--height\")); } connectedCallback() { super.connectedCallback(); const t = this.snapPoints.length === 2 ? 0 : 1; this.defaultSnap = this.snapPoints.length > 0 ? isNaN(this.defaultSnap) ? this.snapPoints[Math.round(this.snapPoints.length / 2) - t] : this.defaultSnap : NaN, this.emitter.on(\"snapped\", this.onSnapped.bind(this)), requestAnimationFrame(() => { this.showSheet(this.open); }); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return requestAnimationFrame(() => { this.setDialog(this.open); }), g` <dialog @click=${(t) => { t.stopPropagation(), this.toggleSheet(); }} > <button id=\"handle\" part=\"__handle\" @pointerdown=${this.pointerDown} @pointermove=${this.pointerMove} @pointerup=${this.pointerUp} @click=${(t) => { t.stopPropagation(); }} > ⸻ </button> <div id='content' part=\"__content\" tabindex='0' @touchstart=${this.touchDown} @touchend=${this.touchUp} @touchmove=${this.touchMove} @scroll=${this.contentScroll} @touchcancel=${(t) => { console.warn(\"User Agent touchcancelled the event.\", t.target); }} @dragstart=${(t) => { t.preventDefault(); }} @click=${(t) => { t.stopPropagation(); }} > <slot></slot> </div> </dialog> `; } /** * Find closest point index to target in array */ closestSnapPointIndex(t, e) { return t.reduce((i, n, s) => Math.abs(n - e) < Math.abs(t[i] - e) ? s : i, 0); } /** * Sets sheet height to the closest snap * @param height percentage */ setSnap(t) { if (this.snapPoints.length === 0) return; const e = this.snapPoints[this.closestSnapPointIndex(this.snapPoints, t)]; e === this.snapPoints[0] && this.showSheet(!1), this.height = e; } /** * @returns Whether sheet is snapped to a snap point */ isSnapped(t) { return this.snapPoints.some((e) => e === Math.round(t)); } /** * Sets the display state of the sheet */ showSheet(t) { this.open = t, this.height = isNaN(this.defaultSnap) ? 1 / 0 : this.defaultSnap, this.setOverscroll(t), this.setDialog(t); } /** * Toggles the display state of the sheet */ toggleSheet() { this.showSheet(!this.open); } /** * Remove overscroll to prevent mobile browsers from refreshing during drag */ setOverscroll(t) { const e = document.querySelector(\"html\"), i = document.querySelector(\"body\"), n = t ? \"none\" : \"unset\"; e && e.style.setProperty(\"overscroll-behavior-block\", n), i && i.style.setProperty(\"overscroll-behavior-block\", n); } setDialog(t) { t && !this.dialog.open ? this.nonmodal ? this.dialog.show() : this.dialog.showModal() : t && this.dialog.open ? this.nonmodal && this.modalDialog ? (this.dialog.close(), this.dialog.show()) : !this.nonmodal && this.nonModalDialog && (this.dialog.close(), this.dialog.showModal()) : this.dialog.close(); } touchDown(t) { t.target instanceof HTMLElement && (this.startY = t.touches[0].pageY, this.startHeight = this.height); } touchMove(t) { if (!(t.target instanceof HTMLElement)) return; const e = t.touches[0]; let i = NaN; this.previousTouch && (i = e.pageY - this.previousTouch.pageY), this.previousTouch = e; let n = this.startY - t.touches[0].pageY; const s = this.startHeight + n / window.innerHeight * 100; !this.scrolling && this.dragging ? this.height = s : this.scrolling && this.dragging || this.scrolling && !this.dragging ? t.target.focus({ preventScroll: !0 }) : !this.scrolling && !this.dragging && (i >= 0 ? this.height = Math.min(s, this.defaultSnap || this.snapPoints[this.snapPoints.length - 1]) : t.target.focus({ preventScroll: !0 })); } touchUp(t) { t.target instanceof HTMLElement && (this.previousTouch = null, this.setSnap(this.height)); } pointerDown(t) { t.target instanceof HTMLElement && (t.target.setPointerCapture(t.pointerId), this.startY = t.pageY, this.startHeight = this.height); } pointerMove(t) { if (!(t.target instanceof HTMLElement && t.target.hasPointerCapture(t.pointerId)) || !t.isPrimary) return; t.preventDefault(); let e = this.startY - t.pageY; const i = this.startHeight + e / window.innerHeight * 100; t.target.id === \"handle\" && (this.height = i); } pointerUp(t) { t.target instanceof HTMLElement && (t.target.releasePointerCapture(t.pointerId), this.setSnap(this.height)); } onSnapped(t, e) { this.dragging = !t; } contentScroll(t) { if (!(t.target instanceof HTMLElement && t.target.id === \"content\")) return; const e = t.target.scrollTop; this.scrolling = e !== this.lastScrollTop, this.lastScrollTop = e, e === 0 && (this.scrolling = !1); } }"
|
|
1818
1866
|
}
|
|
1819
1867
|
],
|
|
1820
1868
|
"exports": [
|
|
1821
1869
|
{
|
|
1822
1870
|
"kind": "js",
|
|
1823
|
-
"name": "
|
|
1824
|
-
"declaration": {
|
|
1825
|
-
"name": "p",
|
|
1826
|
-
"module": "dist/components/responsive-svg/responsive-svg.js"
|
|
1827
|
-
}
|
|
1828
|
-
},
|
|
1829
|
-
{
|
|
1830
|
-
"kind": "js",
|
|
1831
|
-
"name": "preserveAspectRatioAlignOptions",
|
|
1832
|
-
"declaration": {
|
|
1833
|
-
"name": "l",
|
|
1834
|
-
"module": "dist/components/responsive-svg/responsive-svg.js"
|
|
1835
|
-
}
|
|
1836
|
-
},
|
|
1837
|
-
{
|
|
1838
|
-
"kind": "js",
|
|
1839
|
-
"name": "preserveAspectRatioOptions",
|
|
1840
|
-
"declaration": {
|
|
1841
|
-
"name": "M",
|
|
1842
|
-
"module": "dist/components/responsive-svg/responsive-svg.js"
|
|
1843
|
-
}
|
|
1844
|
-
},
|
|
1845
|
-
{
|
|
1846
|
-
"kind": "js",
|
|
1847
|
-
"name": "preserveAspectRatioSpacingOptions",
|
|
1871
|
+
"name": "BottomSheet",
|
|
1848
1872
|
"declaration": {
|
|
1849
|
-
"name": "
|
|
1850
|
-
"module": "dist/components/
|
|
1873
|
+
"name": "o",
|
|
1874
|
+
"module": "dist/components/bottom-sheet/bottom-sheet.js"
|
|
1851
1875
|
}
|
|
1852
1876
|
}
|
|
1853
1877
|
]
|
|
1854
1878
|
},
|
|
1855
1879
|
{
|
|
1856
1880
|
"kind": "javascript-module",
|
|
1857
|
-
"path": "dist/components/
|
|
1881
|
+
"path": "dist/components/bottom-sheet/bottom-sheet.styles.js",
|
|
1858
1882
|
"declarations": [
|
|
1859
1883
|
{
|
|
1860
1884
|
"kind": "variable",
|
|
1861
|
-
"name": "
|
|
1862
|
-
"default": "
|
|
1885
|
+
"name": "e",
|
|
1886
|
+
"default": "o` :host { contain: content; overscroll-behavior-block: none; --height: fit-content; } :host([dragging]) dialog { #content { cursor: grabbing; /* Important! Prevents mobile browsers from reclaiming PointerMove event on touch devices */ touch-action: none; /* Prevent weird scrollbar movement on mobile when dragging */ overflow-y: hidden; } } :host(:not([dragging])) dialog { /* Only animate if not dragging */ transition-property: overlay opacity display; transition-duration: 0.25s; transition-behavior: allow-discrete; &::backdrop { transition-property: overlay opacity display; transition-duration: 0.25s; transition-behavior: allow-discrete; } #content { /* Allow scroll */ touch-action: pan-y; } } dialog { display: none; opacity: 0; translate: 0 var(--height); height: var(--height); min-height: 0; max-height: 100%; min-width: 100%; max-width: 100%; flex-direction: column; box-sizing: border-box; padding: 0; border: 0; background-color: light-dark(#d9d9d9, #1c1c1c); /* Important! Removes default browser styling, allowing bottom to work */ inset: unset; bottom: 0; left: 0; overflow-y: hidden; /* Important! Prevents mobile browsers from reclaiming PointerMove event on touch devices */ touch-action: none; /* Prevent weird scrollbar movement on mobile when dragging */ overflow-y: hidden; &[open] { display: flex; opacity: 1; translate: 0 0; &::backdrop { opacity: 0.8; } } &::backdrop { background: black; opacity: 0; } } @starting-style { dialog[open] { opacity: 0; translate: 0 var(--height); &::backdrop { opacity: 0; } } } #handle { display: block; position: sticky; top: 0; background: transparent; border: 0; cursor: grabbing; min-height: 35px; user-select: none; touch-action: none; } div { /* display: contents; */ overflow-y: auto; scrollbar-width: none; box-sizing: border-box; min-height: 100%; min-width: 100%; } ::slotted(*) { /* Prevent slotted items from taking pointer events */ /* pointer-events: none; */ } `"
|
|
1863
1887
|
}
|
|
1864
1888
|
],
|
|
1865
1889
|
"exports": [
|
|
@@ -1867,8 +1891,50 @@
|
|
|
1867
1891
|
"kind": "js",
|
|
1868
1892
|
"name": "default",
|
|
1869
1893
|
"declaration": {
|
|
1870
|
-
"name": "
|
|
1871
|
-
"module": "dist/components/
|
|
1894
|
+
"name": "e",
|
|
1895
|
+
"module": "dist/components/bottom-sheet/bottom-sheet.styles.js"
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
]
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
"kind": "javascript-module",
|
|
1902
|
+
"path": "dist/components/carousel-scroller/carousel-scroller.js",
|
|
1903
|
+
"declarations": [
|
|
1904
|
+
{
|
|
1905
|
+
"kind": "variable",
|
|
1906
|
+
"name": "i",
|
|
1907
|
+
"default": "class extends c { constructor() { super(), this.slotChildren = [], this.emitter = new m(), this._currentSlide = 0, this.debouncers = /* @__PURE__ */ new WeakMap(), this.emitter.on(\"slotsLoaded\", (e) => { this.slotChildren = e; }); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return d` <div class=\"container\"> <button @click=${this.scrollToPrevSlide}><</button> <button @click=${this.scrollToNextSlide}>></button> <div> <slot @slotchange=${this.slotChange}></slot> </div> </div> `; } /** Gets the current slide. * @returns HTMLElement */ getCurrentSlide() { return this.slotChildren[this._currentSlide - 1]; } /** Scrolls to the slide before the current slide. */ scrollToPrevSlide() { this._currentSlide = this._currentSlide === 0 ? this._currentSlide = this.slotChildren.length - 1 : this._currentSlide - 1, this.slotChildren.at(this._currentSlide)?.scrollIntoView({ behavior: \"smooth\", block: \"nearest\" }); } /** Scrolls to the slide after the current slide. */ scrollToNextSlide() { this._currentSlide = this._currentSlide === this.slotChildren.length - 1 ? 0 : this._currentSlide + 1, this.slotChildren.at(this._currentSlide)?.scrollIntoView({ behavior: \"smooth\", block: \"nearest\" }); } /** @internal */ slotChange() { const e = Array.from( this.slotEl.assignedElements().map((r) => r) ); clearTimeout(this.debouncers.get(this.slotEl)); const s = setTimeout( () => this.emitter.emit(\"slotsLoaded\", e), 100 ); this.debouncers.set(this.slotEl, s); } }"
|
|
1908
|
+
}
|
|
1909
|
+
],
|
|
1910
|
+
"exports": [
|
|
1911
|
+
{
|
|
1912
|
+
"kind": "js",
|
|
1913
|
+
"name": "CarouselScroller",
|
|
1914
|
+
"declaration": {
|
|
1915
|
+
"name": "i",
|
|
1916
|
+
"module": "dist/components/carousel-scroller/carousel-scroller.js"
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
]
|
|
1920
|
+
},
|
|
1921
|
+
{
|
|
1922
|
+
"kind": "javascript-module",
|
|
1923
|
+
"path": "dist/components/carousel-scroller/carousel-scroller.styles.js",
|
|
1924
|
+
"declarations": [
|
|
1925
|
+
{
|
|
1926
|
+
"kind": "variable",
|
|
1927
|
+
"name": "o",
|
|
1928
|
+
"default": "r` :host { --padding: 40px; --margin: 80px; } .container { width: 600px; height: 400px; margin: 20px; border-radius: 20px; overflow: hidden; position: relative; & > button { position: absolute; width: var(--padding); height: calc(var(--padding) * 2); z-index: 1; background-color: #00000080; border: none; bottom: calc(50% - var(--padding)); font-size: 32px; &:hover { background-color: #6352b880; } &:nth-child(1) { left: 0; border-top-right-radius: 314px; border-bottom-right-radius: 314px; } &:nth-child(2) { right: 0; border-top-left-radius: 314px; border-bottom-left-radius: 314px; } } & > div { display: flex; overflow-x: scroll; position: relative; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--padding); } ::slotted(*) { display: flex; flex-direction: column; justify-content: center; min-height: calc(400px - var(--margin)); min-width: calc(600px - var(--margin)); max-height: calc(400px - var(--margin)); max-width: calc(600px - var(--margin)); background: white; scroll-snap-align: center; padding: calc(var(--margin) / 2); } } `"
|
|
1929
|
+
}
|
|
1930
|
+
],
|
|
1931
|
+
"exports": [
|
|
1932
|
+
{
|
|
1933
|
+
"kind": "js",
|
|
1934
|
+
"name": "default",
|
|
1935
|
+
"declaration": {
|
|
1936
|
+
"name": "o",
|
|
1937
|
+
"module": "dist/components/carousel-scroller/carousel-scroller.styles.js"
|
|
1872
1938
|
}
|
|
1873
1939
|
}
|
|
1874
1940
|
]
|
|
@@ -1915,6 +1981,96 @@
|
|
|
1915
1981
|
}
|
|
1916
1982
|
]
|
|
1917
1983
|
},
|
|
1984
|
+
{
|
|
1985
|
+
"kind": "javascript-module",
|
|
1986
|
+
"path": "dist/components/responsive-svg/responsive-svg.js",
|
|
1987
|
+
"declarations": [
|
|
1988
|
+
{
|
|
1989
|
+
"kind": "variable",
|
|
1990
|
+
"name": "v",
|
|
1991
|
+
"type": {
|
|
1992
|
+
"text": "array"
|
|
1993
|
+
},
|
|
1994
|
+
"default": "[ \"none\", \"xMinYMin\", \"xMidYMin\", \"xMaxYMin\", \"xMinYMid\", \"xMidYMid\", \"xMaxYMid\", \"xMinYMax\", \"xMidYMax\", \"xMaxYMax\" ]"
|
|
1995
|
+
},
|
|
1996
|
+
{
|
|
1997
|
+
"kind": "variable",
|
|
1998
|
+
"name": "S",
|
|
1999
|
+
"type": {
|
|
2000
|
+
"text": "array"
|
|
2001
|
+
},
|
|
2002
|
+
"default": "[\"meet\", \"slice\"]"
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
"kind": "variable",
|
|
2006
|
+
"name": "R",
|
|
2007
|
+
"type": {
|
|
2008
|
+
"text": "array"
|
|
2009
|
+
},
|
|
2010
|
+
"default": "[ ...v, ...v.flatMap((t) => S.map((e) => `${t} ${e}`)) ]"
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
"kind": "variable",
|
|
2014
|
+
"name": "n",
|
|
2015
|
+
"default": "class extends g { constructor() { super(...arguments), this.autofit = !1, this.svgColors = !1, this.viewBox = { x: 0, y: 0, width: 0, height: 0 }, this._widthController = new c(this, \"--svg-width\", (t) => { this.viewBox = { ...this.viewBox, width: parseFloat(t) || 0 }; }), this._heightController = new c(this, \"--svg-height\", (t) => { this.viewBox = { ...this.viewBox, height: parseFloat(t) || 0 }; }); } set svg(t) { const e = t instanceof SVGElement || w(t) ? t : x(t); e instanceof Element && !(e instanceof SVGElement) || (this._svg = e); } get svg() { return this._svg ?? \"\"; } set preserveAspectRatio(t) { this._preserveAspectRatio = t; } get preserveAspectRatio() { if (this._preserveAspectRatio == null && this.svg instanceof SVGElement) { const t = this.svg.getAttribute(\"preserveAspectRatio\") || \"\"; if (B(t)) return t; } return this._preserveAspectRatio || \"xMidYMid meet\"; } // For classes inheriting from responsive-svg (e.g. draw-svg) svgClasses() { return {}; } connectedCallback() { if (super.connectedCallback(), this.svg instanceof SVGElement) { const t = this.getViewBoxSize(this.svg), e = parseFloat(this.svg.getAttribute(\"width\") || \"0\"), r = parseFloat(this.svg.getAttribute(\"height\") || \"0\"); this.viewBox = { x: t?.x ?? 0, y: t?.y ?? 0, width: this.viewBox.width || (t?.width ?? e), height: this.viewBox.height || (t?.height ?? r) }; } } render() { const t = this.viewBox, e = this.preserveAspectRatio, r = this.svgClasses(); if (t.height === 0 || t.width === 0) return l`<p style=\"font-size: initial;\">⚠️ SVG ViewBox</p>`; if (typeof this.svg == \"string\") return l`<p style=\"font-size: initial;\">⚠️ SVG Error</p>`; if (this.svg instanceof SVGElement) { const s = this.svg.cloneNode(!0); return o(Array.from(s.children), t); } else return o(this.svg, t); function o(s, i) { if (s) return l` <svg class=${u(r)} style=${m({ \"--svg-width-fallback\": `${i.width}em`, \"--svg-height-fallback\": `${i.height}em` })} viewBox=\"${i.x} ${i.y} ${i.width} ${i.height}\" preserveAspectRatio=${e} xmlns=\"http://www.w3.org/2000/svg\" > ${s} </svg> `; } } /** * Gets the viewBox dimensions from an SVG element. * @param svg The SVG to get the attribute from. * @returns The SVG viewBox x, y, width, and height */ getViewBoxSize(t) { const e = t.getAttribute(\"viewBox\")?.split(\" \"); return e ? { x: +e[0], y: +e[1], width: +e[2], height: +e[3] } : null; } }"
|
|
2016
|
+
}
|
|
2017
|
+
],
|
|
2018
|
+
"exports": [
|
|
2019
|
+
{
|
|
2020
|
+
"kind": "js",
|
|
2021
|
+
"name": "ResponsiveSvg",
|
|
2022
|
+
"declaration": {
|
|
2023
|
+
"name": "n",
|
|
2024
|
+
"module": "dist/components/responsive-svg/responsive-svg.js"
|
|
2025
|
+
}
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
"kind": "js",
|
|
2029
|
+
"name": "preserveAspectRatioAlignOptions",
|
|
2030
|
+
"declaration": {
|
|
2031
|
+
"name": "v",
|
|
2032
|
+
"module": "dist/components/responsive-svg/responsive-svg.js"
|
|
2033
|
+
}
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
"kind": "js",
|
|
2037
|
+
"name": "preserveAspectRatioOptions",
|
|
2038
|
+
"declaration": {
|
|
2039
|
+
"name": "R",
|
|
2040
|
+
"module": "dist/components/responsive-svg/responsive-svg.js"
|
|
2041
|
+
}
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
"kind": "js",
|
|
2045
|
+
"name": "preserveAspectRatioSpacingOptions",
|
|
2046
|
+
"declaration": {
|
|
2047
|
+
"name": "S",
|
|
2048
|
+
"module": "dist/components/responsive-svg/responsive-svg.js"
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
]
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
"kind": "javascript-module",
|
|
2055
|
+
"path": "dist/components/responsive-svg/responsive-svg.styles.js",
|
|
2056
|
+
"declarations": [
|
|
2057
|
+
{
|
|
2058
|
+
"kind": "variable",
|
|
2059
|
+
"name": "s",
|
|
2060
|
+
"default": "t` :host { display: block; --scale: 1; } :host([autofit]), :host([autofit]) svg { width: 100%; height: 100%; } /* Size scaling based on font-size */ :host(:not([autofit])) { /* Removes extra space from under SVG */ display: flex; } :host(:not([autofit])) svg { /* Allow SVG to be manipulated by font size */ display: inline-block; /* Change SVG size using font-size */ font-size: inherit; /* Remove extra vertical space in inline element reserved for character descenders */ vertical-align: top; width: calc(var(--svg-width, var(--svg-width-fallback)) / 100 * var(--scale)); height: calc(var(--svg-height, var(--svg-height-fallback)) / 100 * var(--scale)); } :host(:not([svgColors])) svg { /* Inherit fill to bypass default */ fill: inherit; } :host(:not([svgColors])) path { fill: inherit; stroke: inherit; } svg { max-width: 100%; max-height: 100%; } `"
|
|
2061
|
+
}
|
|
2062
|
+
],
|
|
2063
|
+
"exports": [
|
|
2064
|
+
{
|
|
2065
|
+
"kind": "js",
|
|
2066
|
+
"name": "default",
|
|
2067
|
+
"declaration": {
|
|
2068
|
+
"name": "s",
|
|
2069
|
+
"module": "dist/components/responsive-svg/responsive-svg.styles.js"
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
]
|
|
2073
|
+
},
|
|
1918
2074
|
{
|
|
1919
2075
|
"kind": "javascript-module",
|
|
1920
2076
|
"path": "dist/components/tool-tip/tool-tip.js",
|
|
@@ -3168,99 +3324,218 @@
|
|
|
3168
3324
|
},
|
|
3169
3325
|
{
|
|
3170
3326
|
"kind": "javascript-module",
|
|
3171
|
-
"path": "src/components/
|
|
3172
|
-
"declarations": [
|
|
3173
|
-
|
|
3174
|
-
"kind": "variable",
|
|
3175
|
-
"name": "defaultSettings",
|
|
3176
|
-
"type": {
|
|
3177
|
-
"text": "ColorPaletteSettings"
|
|
3178
|
-
},
|
|
3179
|
-
"default": "{ noticeDuration: 10000, errorPulse: true, aliasMode: AliasMode.Both, corners: true, stabilizeWhileEditing: true, reloadDelay: 5, copyFormat: CopyFormat.Raw, height: 150, width: 700, direction: Direction.Column, gradient: false, preventHover: false, hideText: false, override: false }"
|
|
3180
|
-
},
|
|
3327
|
+
"path": "src/components/carousel-scroller/carousel-scroller.styles.ts",
|
|
3328
|
+
"declarations": [],
|
|
3329
|
+
"exports": [
|
|
3181
3330
|
{
|
|
3182
|
-
"kind": "
|
|
3183
|
-
"name": "
|
|
3184
|
-
"
|
|
3185
|
-
|
|
3331
|
+
"kind": "js",
|
|
3332
|
+
"name": "default",
|
|
3333
|
+
"declaration": {
|
|
3334
|
+
"module": "src/components/carousel-scroller/carousel-scroller.styles.ts"
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3337
|
+
]
|
|
3338
|
+
},
|
|
3339
|
+
{
|
|
3340
|
+
"kind": "javascript-module",
|
|
3341
|
+
"path": "src/components/carousel-scroller/carousel-scroller.ts",
|
|
3342
|
+
"declarations": [
|
|
3186
3343
|
{
|
|
3187
3344
|
"kind": "class",
|
|
3188
|
-
"description": "",
|
|
3189
|
-
"name": "
|
|
3190
|
-
"
|
|
3345
|
+
"description": "A carousel which can have any number of slides, and rotates circularly.",
|
|
3346
|
+
"name": "CarouselScroller",
|
|
3347
|
+
"cssProperties": [
|
|
3191
3348
|
{
|
|
3192
|
-
"kind": "field",
|
|
3193
|
-
"name": "status",
|
|
3194
3349
|
"type": {
|
|
3195
|
-
"text": "
|
|
3350
|
+
"text": "<length>"
|
|
3196
3351
|
},
|
|
3197
|
-
"
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
"superclass": {
|
|
3201
|
-
"name": "Error",
|
|
3202
|
-
"module": "src/components/color-palette/color-palette-utils.ts"
|
|
3203
|
-
}
|
|
3204
|
-
},
|
|
3205
|
-
{
|
|
3206
|
-
"kind": "function",
|
|
3207
|
-
"name": "parseSettings",
|
|
3208
|
-
"return": {
|
|
3209
|
-
"type": {
|
|
3210
|
-
"text": ""
|
|
3211
|
-
}
|
|
3212
|
-
},
|
|
3213
|
-
"parameters": [
|
|
3352
|
+
"description": "The size of the scroller padding.",
|
|
3353
|
+
"name": "--padding"
|
|
3354
|
+
},
|
|
3214
3355
|
{
|
|
3215
|
-
"name": "input",
|
|
3216
3356
|
"type": {
|
|
3217
|
-
"text": "
|
|
3357
|
+
"text": "<length>"
|
|
3218
3358
|
},
|
|
3219
|
-
"description": "
|
|
3359
|
+
"description": "The size of the scroller margin.",
|
|
3360
|
+
"name": "--margin"
|
|
3220
3361
|
}
|
|
3221
3362
|
],
|
|
3222
|
-
"
|
|
3223
|
-
},
|
|
3224
|
-
{
|
|
3225
|
-
"kind": "function",
|
|
3226
|
-
"name": "parseColors",
|
|
3227
|
-
"return": {
|
|
3228
|
-
"type": {
|
|
3229
|
-
"text": ""
|
|
3230
|
-
}
|
|
3231
|
-
},
|
|
3232
|
-
"parameters": [
|
|
3363
|
+
"members": [
|
|
3233
3364
|
{
|
|
3234
|
-
"
|
|
3365
|
+
"kind": "field",
|
|
3366
|
+
"name": "slotEl",
|
|
3235
3367
|
"type": {
|
|
3236
|
-
"text": "
|
|
3368
|
+
"text": "HTMLSlotElement"
|
|
3237
3369
|
},
|
|
3238
|
-
"
|
|
3370
|
+
"privacy": "protected",
|
|
3371
|
+
"description": "The items that will be used as slides."
|
|
3239
3372
|
},
|
|
3240
3373
|
{
|
|
3241
|
-
"
|
|
3374
|
+
"kind": "field",
|
|
3375
|
+
"name": "slotChildren",
|
|
3242
3376
|
"type": {
|
|
3243
|
-
"text": "
|
|
3244
|
-
}
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
{
|
|
3250
|
-
"kind": "function",
|
|
3251
|
-
"name": "calcColorsAndSettings",
|
|
3252
|
-
"parameters": [
|
|
3377
|
+
"text": "HTMLElement[]"
|
|
3378
|
+
},
|
|
3379
|
+
"privacy": "protected",
|
|
3380
|
+
"default": "[]",
|
|
3381
|
+
"description": "The slides being used."
|
|
3382
|
+
},
|
|
3253
3383
|
{
|
|
3254
|
-
"
|
|
3384
|
+
"kind": "field",
|
|
3385
|
+
"name": "emitter",
|
|
3255
3386
|
"type": {
|
|
3256
|
-
"text": "
|
|
3257
|
-
}
|
|
3387
|
+
"text": "EventEmitter<EventMap>"
|
|
3388
|
+
},
|
|
3389
|
+
"privacy": "public",
|
|
3390
|
+
"default": "new EventEmitter<EventMap>()",
|
|
3391
|
+
"description": "Public way to subscribe to events."
|
|
3258
3392
|
},
|
|
3259
3393
|
{
|
|
3260
|
-
"
|
|
3261
|
-
"
|
|
3262
|
-
|
|
3263
|
-
|
|
3394
|
+
"kind": "method",
|
|
3395
|
+
"name": "getCurrentSlide",
|
|
3396
|
+
"privacy": "public",
|
|
3397
|
+
"description": "Gets the current slide.",
|
|
3398
|
+
"return": {
|
|
3399
|
+
"type": {
|
|
3400
|
+
"text": ""
|
|
3401
|
+
}
|
|
3402
|
+
}
|
|
3403
|
+
},
|
|
3404
|
+
{
|
|
3405
|
+
"kind": "method",
|
|
3406
|
+
"name": "scrollToPrevSlide",
|
|
3407
|
+
"privacy": "public",
|
|
3408
|
+
"description": "Scrolls to the slide before the current slide."
|
|
3409
|
+
},
|
|
3410
|
+
{
|
|
3411
|
+
"kind": "method",
|
|
3412
|
+
"name": "scrollToNextSlide",
|
|
3413
|
+
"privacy": "public",
|
|
3414
|
+
"description": "Scrolls to the slide after the current slide."
|
|
3415
|
+
}
|
|
3416
|
+
],
|
|
3417
|
+
"superclass": {
|
|
3418
|
+
"name": "LitElement",
|
|
3419
|
+
"package": "lit"
|
|
3420
|
+
},
|
|
3421
|
+
"tagName": "carousel-scroller",
|
|
3422
|
+
"customElement": true
|
|
3423
|
+
}
|
|
3424
|
+
],
|
|
3425
|
+
"exports": [
|
|
3426
|
+
{
|
|
3427
|
+
"kind": "js",
|
|
3428
|
+
"name": "CarouselScroller",
|
|
3429
|
+
"declaration": {
|
|
3430
|
+
"name": "CarouselScroller",
|
|
3431
|
+
"module": "src/components/carousel-scroller/carousel-scroller.ts"
|
|
3432
|
+
}
|
|
3433
|
+
},
|
|
3434
|
+
{
|
|
3435
|
+
"kind": "custom-element-definition",
|
|
3436
|
+
"name": "carousel-scroller",
|
|
3437
|
+
"declaration": {
|
|
3438
|
+
"name": "CarouselScroller",
|
|
3439
|
+
"module": "src/components/carousel-scroller/carousel-scroller.ts"
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
]
|
|
3443
|
+
},
|
|
3444
|
+
{
|
|
3445
|
+
"kind": "javascript-module",
|
|
3446
|
+
"path": "src/components/color-palette/color-palette-utils.ts",
|
|
3447
|
+
"declarations": [
|
|
3448
|
+
{
|
|
3449
|
+
"kind": "variable",
|
|
3450
|
+
"name": "defaultSettings",
|
|
3451
|
+
"type": {
|
|
3452
|
+
"text": "ColorPaletteSettings"
|
|
3453
|
+
},
|
|
3454
|
+
"default": "{ noticeDuration: 10000, errorPulse: true, aliasMode: AliasMode.Both, corners: true, stabilizeWhileEditing: true, reloadDelay: 5, copyFormat: CopyFormat.Raw, height: 150, width: 700, direction: Direction.Column, gradient: false, preventHover: false, hideText: false, override: false }"
|
|
3455
|
+
},
|
|
3456
|
+
{
|
|
3457
|
+
"kind": "variable",
|
|
3458
|
+
"name": "urlRegex",
|
|
3459
|
+
"default": "/(?:https:\\/\\/www\\.|http:\\/\\/www\\.|https:\\/\\/|http:\\/\\/)?[a-zA-Z0-9]{2,}(?:\\.[a-zA-Z0-9]{2,})(?:\\.[a-zA-Z0-9]{2,})?\\/(?:palette\\/)?([a-zA-Z0-9-]{2,})/"
|
|
3460
|
+
},
|
|
3461
|
+
{
|
|
3462
|
+
"kind": "class",
|
|
3463
|
+
"description": "",
|
|
3464
|
+
"name": "PaletteError",
|
|
3465
|
+
"members": [
|
|
3466
|
+
{
|
|
3467
|
+
"kind": "field",
|
|
3468
|
+
"name": "status",
|
|
3469
|
+
"type": {
|
|
3470
|
+
"text": "Status"
|
|
3471
|
+
},
|
|
3472
|
+
"default": "status"
|
|
3473
|
+
}
|
|
3474
|
+
],
|
|
3475
|
+
"superclass": {
|
|
3476
|
+
"name": "Error",
|
|
3477
|
+
"module": "src/components/color-palette/color-palette-utils.ts"
|
|
3478
|
+
}
|
|
3479
|
+
},
|
|
3480
|
+
{
|
|
3481
|
+
"kind": "function",
|
|
3482
|
+
"name": "parseSettings",
|
|
3483
|
+
"return": {
|
|
3484
|
+
"type": {
|
|
3485
|
+
"text": ""
|
|
3486
|
+
}
|
|
3487
|
+
},
|
|
3488
|
+
"parameters": [
|
|
3489
|
+
{
|
|
3490
|
+
"name": "input",
|
|
3491
|
+
"type": {
|
|
3492
|
+
"text": "string"
|
|
3493
|
+
},
|
|
3494
|
+
"description": "settings from codeblock"
|
|
3495
|
+
}
|
|
3496
|
+
],
|
|
3497
|
+
"description": "Parses input & extracts settings"
|
|
3498
|
+
},
|
|
3499
|
+
{
|
|
3500
|
+
"kind": "function",
|
|
3501
|
+
"name": "parseColors",
|
|
3502
|
+
"return": {
|
|
3503
|
+
"type": {
|
|
3504
|
+
"text": ""
|
|
3505
|
+
}
|
|
3506
|
+
},
|
|
3507
|
+
"parameters": [
|
|
3508
|
+
{
|
|
3509
|
+
"name": "input",
|
|
3510
|
+
"type": {
|
|
3511
|
+
"text": "string[]"
|
|
3512
|
+
},
|
|
3513
|
+
"description": "colors from codeblock"
|
|
3514
|
+
},
|
|
3515
|
+
{
|
|
3516
|
+
"name": "override",
|
|
3517
|
+
"type": {
|
|
3518
|
+
"text": "boolean"
|
|
3519
|
+
}
|
|
3520
|
+
}
|
|
3521
|
+
],
|
|
3522
|
+
"description": "Parses input & extracts colors based on color space or URL"
|
|
3523
|
+
},
|
|
3524
|
+
{
|
|
3525
|
+
"kind": "function",
|
|
3526
|
+
"name": "calcColorsAndSettings",
|
|
3527
|
+
"parameters": [
|
|
3528
|
+
{
|
|
3529
|
+
"name": "input",
|
|
3530
|
+
"type": {
|
|
3531
|
+
"text": "string"
|
|
3532
|
+
}
|
|
3533
|
+
},
|
|
3534
|
+
{
|
|
3535
|
+
"name": "pluginSettings",
|
|
3536
|
+
"type": {
|
|
3537
|
+
"text": "ColorPaletteSettings"
|
|
3538
|
+
}
|
|
3264
3539
|
}
|
|
3265
3540
|
],
|
|
3266
3541
|
"description": "Calculates colors and settings based on codeblock contents"
|
|
@@ -3758,218 +4033,128 @@
|
|
|
3758
4033
|
},
|
|
3759
4034
|
{
|
|
3760
4035
|
"kind": "javascript-module",
|
|
3761
|
-
"path": "src/components/
|
|
4036
|
+
"path": "src/components/draw-svg/draw-svg.styles.ts",
|
|
3762
4037
|
"declarations": [],
|
|
3763
4038
|
"exports": [
|
|
3764
4039
|
{
|
|
3765
4040
|
"kind": "js",
|
|
3766
4041
|
"name": "default",
|
|
3767
4042
|
"declaration": {
|
|
3768
|
-
"module": "src/components/
|
|
4043
|
+
"module": "src/components/draw-svg/draw-svg.styles.ts"
|
|
3769
4044
|
}
|
|
3770
4045
|
}
|
|
3771
4046
|
]
|
|
3772
4047
|
},
|
|
3773
4048
|
{
|
|
3774
4049
|
"kind": "javascript-module",
|
|
3775
|
-
"path": "src/components/
|
|
4050
|
+
"path": "src/components/draw-svg/draw-svg.ts",
|
|
3776
4051
|
"declarations": [
|
|
3777
4052
|
{
|
|
3778
4053
|
"kind": "class",
|
|
3779
|
-
"description": "
|
|
3780
|
-
"name": "
|
|
3781
|
-
"
|
|
4054
|
+
"description": "Animates the provided SVG paths as if they were being drawn.",
|
|
4055
|
+
"name": "DrawSvg",
|
|
4056
|
+
"members": [
|
|
3782
4057
|
{
|
|
4058
|
+
"kind": "field",
|
|
4059
|
+
"name": "isIntersecting",
|
|
3783
4060
|
"type": {
|
|
3784
|
-
"text": "
|
|
4061
|
+
"text": "boolean"
|
|
3785
4062
|
},
|
|
3786
|
-
"
|
|
3787
|
-
"
|
|
4063
|
+
"privacy": "public",
|
|
4064
|
+
"default": "false",
|
|
4065
|
+
"description": "Whether the SVG is intersecting with the client viewport. Useful for determining when to animate."
|
|
4066
|
+
},
|
|
4067
|
+
{
|
|
4068
|
+
"kind": "method",
|
|
4069
|
+
"name": "svgClasses",
|
|
4070
|
+
"privacy": "protected",
|
|
4071
|
+
"return": {
|
|
4072
|
+
"type": {
|
|
4073
|
+
"text": "{}"
|
|
4074
|
+
}
|
|
4075
|
+
},
|
|
4076
|
+
"inheritedFrom": {
|
|
4077
|
+
"name": "ResponsiveSvg",
|
|
4078
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4079
|
+
}
|
|
3788
4080
|
},
|
|
3789
4081
|
{
|
|
4082
|
+
"kind": "field",
|
|
4083
|
+
"name": "emitter",
|
|
3790
4084
|
"type": {
|
|
3791
|
-
"text": "<
|
|
4085
|
+
"text": "EventEmitter<EventMap>"
|
|
3792
4086
|
},
|
|
3793
|
-
"
|
|
3794
|
-
"
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
"members": [
|
|
4087
|
+
"privacy": "public",
|
|
4088
|
+
"default": "new EventEmitter()",
|
|
4089
|
+
"description": "Public way to subscribe to events."
|
|
4090
|
+
},
|
|
3798
4091
|
{
|
|
3799
4092
|
"kind": "field",
|
|
3800
|
-
"name": "
|
|
4093
|
+
"name": "autofit",
|
|
3801
4094
|
"type": {
|
|
3802
|
-
"text": "
|
|
4095
|
+
"text": "boolean"
|
|
3803
4096
|
},
|
|
3804
|
-
"
|
|
3805
|
-
"description": "The
|
|
4097
|
+
"default": "false",
|
|
4098
|
+
"description": "The SVG will attempt to fill its container.",
|
|
4099
|
+
"attribute": "autofit",
|
|
4100
|
+
"reflects": true,
|
|
4101
|
+
"inheritedFrom": {
|
|
4102
|
+
"name": "ResponsiveSvg",
|
|
4103
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4104
|
+
}
|
|
3806
4105
|
},
|
|
3807
4106
|
{
|
|
3808
4107
|
"kind": "field",
|
|
3809
|
-
"name": "
|
|
4108
|
+
"name": "svgColors",
|
|
3810
4109
|
"type": {
|
|
3811
|
-
"text": "
|
|
4110
|
+
"text": "boolean"
|
|
3812
4111
|
},
|
|
3813
|
-
"
|
|
3814
|
-
"
|
|
3815
|
-
"
|
|
4112
|
+
"default": "false",
|
|
4113
|
+
"description": "Use the colors from the SVG input.",
|
|
4114
|
+
"attribute": "svgColors",
|
|
4115
|
+
"reflects": true,
|
|
4116
|
+
"inheritedFrom": {
|
|
4117
|
+
"name": "ResponsiveSvg",
|
|
4118
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4119
|
+
}
|
|
3816
4120
|
},
|
|
3817
4121
|
{
|
|
3818
4122
|
"kind": "field",
|
|
3819
|
-
"name": "
|
|
4123
|
+
"name": "svg",
|
|
4124
|
+
"description": "The SVG to responsively size.\r\nMust use a property expression (.) to set",
|
|
3820
4125
|
"type": {
|
|
3821
|
-
"text": "
|
|
4126
|
+
"text": "SVGElement | TemplateResult<2> | string"
|
|
3822
4127
|
},
|
|
3823
|
-
"
|
|
3824
|
-
"
|
|
3825
|
-
|
|
4128
|
+
"attribute": "svg",
|
|
4129
|
+
"inheritedFrom": {
|
|
4130
|
+
"name": "ResponsiveSvg",
|
|
4131
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4132
|
+
}
|
|
3826
4133
|
},
|
|
3827
4134
|
{
|
|
3828
|
-
"kind": "
|
|
3829
|
-
"name": "
|
|
3830
|
-
"
|
|
3831
|
-
"
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
4135
|
+
"kind": "field",
|
|
4136
|
+
"name": "preserveAspectRatio",
|
|
4137
|
+
"description": "Set whether SVG preserves its aspect ratio alignment or spacing.",
|
|
4138
|
+
"type": {
|
|
4139
|
+
"text": "PreserveAspectRatio"
|
|
4140
|
+
},
|
|
4141
|
+
"default": "xMidYMid meet",
|
|
4142
|
+
"attribute": "preserveAspectRatio",
|
|
4143
|
+
"reflects": true,
|
|
4144
|
+
"inheritedFrom": {
|
|
4145
|
+
"name": "ResponsiveSvg",
|
|
4146
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3836
4147
|
}
|
|
3837
4148
|
},
|
|
3838
|
-
{
|
|
3839
|
-
"kind": "method",
|
|
3840
|
-
"name": "scrollToPrevSlide",
|
|
3841
|
-
"privacy": "public",
|
|
3842
|
-
"description": "Scrolls to the slide before the current slide."
|
|
3843
|
-
},
|
|
3844
|
-
{
|
|
3845
|
-
"kind": "method",
|
|
3846
|
-
"name": "scrollToNextSlide",
|
|
3847
|
-
"privacy": "public",
|
|
3848
|
-
"description": "Scrolls to the slide after the current slide."
|
|
3849
|
-
}
|
|
3850
|
-
],
|
|
3851
|
-
"superclass": {
|
|
3852
|
-
"name": "LitElement",
|
|
3853
|
-
"package": "lit"
|
|
3854
|
-
},
|
|
3855
|
-
"tagName": "carousel-scroller",
|
|
3856
|
-
"customElement": true
|
|
3857
|
-
}
|
|
3858
|
-
],
|
|
3859
|
-
"exports": [
|
|
3860
|
-
{
|
|
3861
|
-
"kind": "js",
|
|
3862
|
-
"name": "CarouselScroller",
|
|
3863
|
-
"declaration": {
|
|
3864
|
-
"name": "CarouselScroller",
|
|
3865
|
-
"module": "src/components/carousel-scroller/carousel-scroller.ts"
|
|
3866
|
-
}
|
|
3867
|
-
},
|
|
3868
|
-
{
|
|
3869
|
-
"kind": "custom-element-definition",
|
|
3870
|
-
"name": "carousel-scroller",
|
|
3871
|
-
"declaration": {
|
|
3872
|
-
"name": "CarouselScroller",
|
|
3873
|
-
"module": "src/components/carousel-scroller/carousel-scroller.ts"
|
|
3874
|
-
}
|
|
3875
|
-
}
|
|
3876
|
-
]
|
|
3877
|
-
},
|
|
3878
|
-
{
|
|
3879
|
-
"kind": "javascript-module",
|
|
3880
|
-
"path": "src/components/draw-svg/draw-svg.styles.ts",
|
|
3881
|
-
"declarations": [],
|
|
3882
|
-
"exports": [
|
|
3883
|
-
{
|
|
3884
|
-
"kind": "js",
|
|
3885
|
-
"name": "default",
|
|
3886
|
-
"declaration": {
|
|
3887
|
-
"module": "src/components/draw-svg/draw-svg.styles.ts"
|
|
3888
|
-
}
|
|
3889
|
-
}
|
|
3890
|
-
]
|
|
3891
|
-
},
|
|
3892
|
-
{
|
|
3893
|
-
"kind": "javascript-module",
|
|
3894
|
-
"path": "src/components/draw-svg/draw-svg.ts",
|
|
3895
|
-
"declarations": [
|
|
3896
|
-
{
|
|
3897
|
-
"kind": "class",
|
|
3898
|
-
"description": "Animates the provided SVG paths as if they were being drawn.",
|
|
3899
|
-
"name": "DrawSvg",
|
|
3900
|
-
"members": [
|
|
3901
4149
|
{
|
|
3902
4150
|
"kind": "field",
|
|
3903
|
-
"name": "
|
|
4151
|
+
"name": "viewBox",
|
|
3904
4152
|
"type": {
|
|
3905
|
-
"text": "
|
|
4153
|
+
"text": "ViewBox"
|
|
3906
4154
|
},
|
|
3907
|
-
"privacy": "public",
|
|
3908
|
-
"default": "false",
|
|
3909
|
-
"description": "Whether the SVG is intersecting with the client viewport. Useful for determining when to animate."
|
|
3910
|
-
},
|
|
3911
|
-
{
|
|
3912
|
-
"kind": "method",
|
|
3913
|
-
"name": "svgClasses",
|
|
3914
4155
|
"privacy": "protected",
|
|
3915
|
-
"
|
|
3916
|
-
|
|
3917
|
-
"text": "{}"
|
|
3918
|
-
}
|
|
3919
|
-
},
|
|
3920
|
-
"inheritedFrom": {
|
|
3921
|
-
"name": "ResponsiveSvg",
|
|
3922
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3923
|
-
}
|
|
3924
|
-
},
|
|
3925
|
-
{
|
|
3926
|
-
"kind": "field",
|
|
3927
|
-
"name": "emitter",
|
|
3928
|
-
"type": {
|
|
3929
|
-
"text": "EventEmitter<EventMap>"
|
|
3930
|
-
},
|
|
3931
|
-
"privacy": "public",
|
|
3932
|
-
"default": "new EventEmitter()",
|
|
3933
|
-
"description": "Public way to subscribe to events."
|
|
3934
|
-
},
|
|
3935
|
-
{
|
|
3936
|
-
"kind": "field",
|
|
3937
|
-
"name": "autofit",
|
|
3938
|
-
"type": {
|
|
3939
|
-
"text": "boolean"
|
|
3940
|
-
},
|
|
3941
|
-
"default": "false",
|
|
3942
|
-
"description": "The SVG will attempt to fill its container.",
|
|
3943
|
-
"attribute": "autofit",
|
|
3944
|
-
"reflects": true,
|
|
3945
|
-
"inheritedFrom": {
|
|
3946
|
-
"name": "ResponsiveSvg",
|
|
3947
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3948
|
-
}
|
|
3949
|
-
},
|
|
3950
|
-
{
|
|
3951
|
-
"kind": "field",
|
|
3952
|
-
"name": "svgColors",
|
|
3953
|
-
"type": {
|
|
3954
|
-
"text": "boolean"
|
|
3955
|
-
},
|
|
3956
|
-
"default": "false",
|
|
3957
|
-
"description": "Use the colors from the SVG input.",
|
|
3958
|
-
"attribute": "svgColors",
|
|
3959
|
-
"reflects": true,
|
|
3960
|
-
"inheritedFrom": {
|
|
3961
|
-
"name": "ResponsiveSvg",
|
|
3962
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3963
|
-
}
|
|
3964
|
-
},
|
|
3965
|
-
{
|
|
3966
|
-
"kind": "field",
|
|
3967
|
-
"name": "svg",
|
|
3968
|
-
"description": "The SVG to responsively size.\r\nMust use a property expression (.) to set",
|
|
3969
|
-
"type": {
|
|
3970
|
-
"text": "SVGElement | TemplateResult<2> | string"
|
|
3971
|
-
},
|
|
3972
|
-
"attribute": "svg",
|
|
4156
|
+
"default": "{ x: 0, y: 0, width: 0, height: 0 }",
|
|
4157
|
+
"description": "The viewBox dimensions the SVG will use.",
|
|
3973
4158
|
"inheritedFrom": {
|
|
3974
4159
|
"name": "ResponsiveSvg",
|
|
3975
4160
|
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
@@ -3977,14 +4162,9 @@
|
|
|
3977
4162
|
},
|
|
3978
4163
|
{
|
|
3979
4164
|
"kind": "field",
|
|
3980
|
-
"name": "
|
|
3981
|
-
"
|
|
3982
|
-
"
|
|
3983
|
-
"text": "PreserveAspectRatio"
|
|
3984
|
-
},
|
|
3985
|
-
"default": "xMidYMid meet",
|
|
3986
|
-
"attribute": "preserveAspectRatio",
|
|
3987
|
-
"reflects": true,
|
|
4165
|
+
"name": "_widthController",
|
|
4166
|
+
"privacy": "private",
|
|
4167
|
+
"default": "new StyleController(this, '--svg-width', (val) => { this.viewBox = { ...this.viewBox, width: parseFloat(val) || 0 } })",
|
|
3988
4168
|
"inheritedFrom": {
|
|
3989
4169
|
"name": "ResponsiveSvg",
|
|
3990
4170
|
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
@@ -3992,37 +4172,9 @@
|
|
|
3992
4172
|
},
|
|
3993
4173
|
{
|
|
3994
4174
|
"kind": "field",
|
|
3995
|
-
"name": "
|
|
3996
|
-
"type": {
|
|
3997
|
-
"text": "ViewBox"
|
|
3998
|
-
},
|
|
3999
|
-
"privacy": "protected",
|
|
4000
|
-
"default": "{ x: 0, y: 0, width: 0, height: 0 }",
|
|
4001
|
-
"description": "The viewBox dimensions the SVG will use.",
|
|
4002
|
-
"inheritedFrom": {
|
|
4003
|
-
"name": "ResponsiveSvg",
|
|
4004
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4005
|
-
}
|
|
4006
|
-
},
|
|
4007
|
-
{
|
|
4008
|
-
"kind": "method",
|
|
4009
|
-
"name": "applyPartToPaths",
|
|
4175
|
+
"name": "_heightController",
|
|
4010
4176
|
"privacy": "private",
|
|
4011
|
-
"
|
|
4012
|
-
{
|
|
4013
|
-
"name": "element",
|
|
4014
|
-
"type": {
|
|
4015
|
-
"text": "Element"
|
|
4016
|
-
}
|
|
4017
|
-
},
|
|
4018
|
-
{
|
|
4019
|
-
"name": "partValue",
|
|
4020
|
-
"type": {
|
|
4021
|
-
"text": "string"
|
|
4022
|
-
}
|
|
4023
|
-
}
|
|
4024
|
-
],
|
|
4025
|
-
"description": "Applies a part name to all paths in the given element.",
|
|
4177
|
+
"default": "new StyleController(this, '--svg-height', (val) => { this.viewBox = { ...this.viewBox, height: parseFloat(val) || 0 } })",
|
|
4026
4178
|
"inheritedFrom": {
|
|
4027
4179
|
"name": "ResponsiveSvg",
|
|
4028
4180
|
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
@@ -4369,24 +4521,16 @@
|
|
|
4369
4521
|
"privacy": "protected"
|
|
4370
4522
|
},
|
|
4371
4523
|
{
|
|
4372
|
-
"kind": "
|
|
4373
|
-
"name": "
|
|
4524
|
+
"kind": "field",
|
|
4525
|
+
"name": "_widthController",
|
|
4374
4526
|
"privacy": "private",
|
|
4375
|
-
"
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
{
|
|
4383
|
-
"name": "partValue",
|
|
4384
|
-
"type": {
|
|
4385
|
-
"text": "string"
|
|
4386
|
-
}
|
|
4387
|
-
}
|
|
4388
|
-
],
|
|
4389
|
-
"description": "Applies a part name to all paths in the given element."
|
|
4527
|
+
"default": "new StyleController(this, '--svg-width', (val) => { this.viewBox = { ...this.viewBox, width: parseFloat(val) || 0 } })"
|
|
4528
|
+
},
|
|
4529
|
+
{
|
|
4530
|
+
"kind": "field",
|
|
4531
|
+
"name": "_heightController",
|
|
4532
|
+
"privacy": "private",
|
|
4533
|
+
"default": "new StyleController(this, '--svg-height', (val) => { this.viewBox = { ...this.viewBox, height: parseFloat(val) || 0 } })"
|
|
4390
4534
|
},
|
|
4391
4535
|
{
|
|
4392
4536
|
"kind": "method",
|
|
@@ -4921,225 +5065,1136 @@
|
|
|
4921
5065
|
},
|
|
4922
5066
|
{
|
|
4923
5067
|
"kind": "javascript-module",
|
|
4924
|
-
"path": "dist/
|
|
4925
|
-
"declarations": [
|
|
4926
|
-
{
|
|
4927
|
-
"kind": "variable",
|
|
4928
|
-
"name": "s",
|
|
4929
|
-
"default": "class extends y { constructor() { super(...arguments), this.colors = [], this.editMode = !1, this.copyFormat = v.copyFormat, this.reorder = !1, this.emitter = new C(); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return c` ${this.reorder ? this.reorderItems() : this.menuItems()} `; } /** Renders the menu items. */ menuItems() { const i = { colors: this.colors, settings: this.settings }; return c` <menu> <li> <button @click=${(t) => { t.stopPropagation(), this.reorder = !this.reorder; }} > ${r(E)} <span>Reorder</span> </button> </li> <li> <button @click=${() => { this.emitter.emit(\"openEditor\"); }} > ${r(P)} <span>Edit Mode</span> </button> </li> ${// Only show toggle edit mode option when palette is not a gradient this.settings?.gradient ? d : c` <li> <button @click=${() => { this.emitter.emit(\"editMode\", !this.editMode); }} > ${r(k)} <span>Quick Edit</span> ${this.editMode ? r(M) : d} </button> </li> `} <hr> <li> <button @click=${() => { const t = this.colors.map((o) => { const e = u(o).rgb(); return `rgb(${e[0]}, ${e[1]}, ${e[2]})`; }); this.emitter.emit(\"change\", t); }} > ${r(h)} <span>Convert to RGB</span> </button> </li> <li> <button @click=${() => { const t = this.colors.map((o) => { const e = u(o).hsl(); return `hsl(${e[0]} ${e[1]}% ${e[2]}%)`; }); this.emitter.emit(\"change\", t); }} > ${r(h)} <span>Convert to HSL</span> </button> </li> <li> <button @click=${() => { const t = this.colors.map((o) => u(o).hex(2)); this.emitter.emit(\"change\", t); }} > ${r(h)} <span>Convert to HEX</span> </button> </li> <hr> <li> <button @click=${async () => { await b(JSON.stringify(i), this.copyFormat), this.emitter.emit(\"change\", []); }} > ${r(O)} <span>Cut</span> </button> </li> <li> <button @click=${async () => { await b(JSON.stringify(i), this.copyFormat); }} > ${r(w)} <span>Copy</span> </button> </li> </menu> `; } /** Renders the reorder items. */ reorderItems() { const i = (t) => { t instanceof _ && (t.emitter.clear(), t.emitter.on(\"submit\", (o) => { this.emitter.emit(\"change\", o), this.reorder = !1; })); }; return c` <color-palette-reorder .colors=${this.colors} ${S(i)} > </color-palette-reorder> `; } }"
|
|
4930
|
-
}
|
|
4931
|
-
],
|
|
4932
|
-
"exports": [
|
|
4933
|
-
{
|
|
4934
|
-
"kind": "js",
|
|
4935
|
-
"name": "ColorPaletteMenu",
|
|
4936
|
-
"declaration": {
|
|
4937
|
-
"name": "s",
|
|
4938
|
-
"module": "dist/components/color-palette/menu/color-palette-menu.js"
|
|
4939
|
-
}
|
|
4940
|
-
}
|
|
4941
|
-
]
|
|
4942
|
-
},
|
|
4943
|
-
{
|
|
4944
|
-
"kind": "javascript-module",
|
|
4945
|
-
"path": "dist/components/color-palette/menu/color-palette-menu.styles.js",
|
|
4946
|
-
"declarations": [
|
|
4947
|
-
{
|
|
4948
|
-
"kind": "variable",
|
|
4949
|
-
"name": "t",
|
|
4950
|
-
"default": "r` :host { display: block; } menu { display: grid; grid-template-columns: 1fr; padding: 0.5rem; margin: 0; border-radius: 5px; color: rgb(245, 245, 245); background-color: #222222; } li { display: grid; grid-template-columns: subgrid; list-style: none; } button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; justify-items: flex-start; column-gap: 0.5rem; background-color: inherit; color: inherit; border: none; cursor: pointer; padding: 4px 8px; text-wrap: nowrap; &:hover { background-color: #323232; } span { font-size: 14px; } } hr { width: 95%; border-color: rgb(45, 45, 45); } `"
|
|
4951
|
-
}
|
|
4952
|
-
],
|
|
4953
|
-
"exports": [
|
|
4954
|
-
{
|
|
4955
|
-
"kind": "js",
|
|
4956
|
-
"name": "default",
|
|
4957
|
-
"declaration": {
|
|
4958
|
-
"name": "t",
|
|
4959
|
-
"module": "dist/components/color-palette/menu/color-palette-menu.styles.js"
|
|
4960
|
-
}
|
|
4961
|
-
}
|
|
4962
|
-
]
|
|
4963
|
-
},
|
|
4964
|
-
{
|
|
4965
|
-
"kind": "javascript-module",
|
|
4966
|
-
"path": "dist/components/color-palette/menu/color-palette-reorder.js",
|
|
4967
|
-
"declarations": [
|
|
4968
|
-
{
|
|
4969
|
-
"kind": "variable",
|
|
4970
|
-
"name": "o",
|
|
4971
|
-
"default": "class extends m { constructor() { super(...arguments), this.colors = [], this.emitter = new y(); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return c` <menu> ${x( Object.keys(i), (r) => c` <button @click=${(s) => { this.selectOption(r); }} > <span>${r}</span> </button> ` )} </menu> `; } /** Reorders the palette colors based on the selected option. */ selectOption(r) { const s = this.colors.map((e) => u(e)); let a = []; switch (r) { case \"Hue\": a = s.sort((e, t) => e.hue() - t.hue()).map((e) => e.hex()); break; case \"Saturation\": a = s.sort((e, t) => e.saturation() - t.saturation()).map((e) => e.hex()); break; case \"Lightness\": a = s.sort((e, t) => e.lightness() - t.lightness()).map((e) => e.hex()); break; case \"Red\": a = s.sort((e, t) => e.red() - t.red()).map((e) => e.hex()); break; case \"Green\": a = s.sort((e, t) => e.green() - t.green()).map((e) => e.hex()); break; case \"Blue\": a = s.sort((e, t) => e.blue() - t.blue()).map((e) => e.hex()); break; case \"Alpha\": a = s.sort((e, t) => e.alpha() - t.alpha()).map((e) => e.hex()); break; } this.emitter.emit(\"submit\", a); } }"
|
|
4972
|
-
}
|
|
4973
|
-
],
|
|
4974
|
-
"exports": [
|
|
4975
|
-
{
|
|
4976
|
-
"kind": "js",
|
|
4977
|
-
"name": "ColorPaletteReorder",
|
|
4978
|
-
"declaration": {
|
|
4979
|
-
"name": "o",
|
|
4980
|
-
"module": "dist/components/color-palette/menu/color-palette-reorder.js"
|
|
4981
|
-
}
|
|
4982
|
-
}
|
|
4983
|
-
]
|
|
4984
|
-
},
|
|
4985
|
-
{
|
|
4986
|
-
"kind": "javascript-module",
|
|
4987
|
-
"path": "dist/components/color-palette/menu/color-palette-reorder.styles.js",
|
|
5068
|
+
"path": "dist/node_modules/style-observer/src/element-style-observer.js",
|
|
4988
5069
|
"declarations": [
|
|
4989
5070
|
{
|
|
4990
|
-
"kind": "
|
|
4991
|
-
"
|
|
4992
|
-
"
|
|
4993
|
-
|
|
5071
|
+
"kind": "class",
|
|
5072
|
+
"description": "",
|
|
5073
|
+
"name": "O",
|
|
5074
|
+
"members": [
|
|
5075
|
+
{
|
|
5076
|
+
"kind": "field",
|
|
5077
|
+
"name": "propertyNames",
|
|
5078
|
+
"description": "Get the names of all properties currently being observed.",
|
|
5079
|
+
"type": {
|
|
5080
|
+
"text": "string[]"
|
|
5081
|
+
},
|
|
5082
|
+
"readonly": true
|
|
5083
|
+
},
|
|
5084
|
+
{
|
|
5085
|
+
"kind": "field",
|
|
5086
|
+
"name": "target",
|
|
5087
|
+
"description": "The element being observed.",
|
|
5088
|
+
"type": {
|
|
5089
|
+
"text": "Element"
|
|
5090
|
+
},
|
|
5091
|
+
"default": "t"
|
|
5092
|
+
},
|
|
5093
|
+
{
|
|
5094
|
+
"kind": "field",
|
|
5095
|
+
"name": "callback",
|
|
5096
|
+
"description": "The callback to call when the element's style changes.",
|
|
5097
|
+
"type": {
|
|
5098
|
+
"text": "StyleObserverCallback"
|
|
5099
|
+
},
|
|
5100
|
+
"default": "r"
|
|
5101
|
+
},
|
|
5102
|
+
{
|
|
5103
|
+
"kind": "field",
|
|
5104
|
+
"name": "options",
|
|
5105
|
+
"description": "The observer options.",
|
|
5106
|
+
"type": {
|
|
5107
|
+
"text": "StyleObserverOptions"
|
|
5108
|
+
},
|
|
5109
|
+
"default": "{ properties: [], ...s }"
|
|
5110
|
+
},
|
|
5111
|
+
{
|
|
5112
|
+
"kind": "field",
|
|
5113
|
+
"name": "#t",
|
|
5114
|
+
"privacy": "private",
|
|
5115
|
+
"type": {
|
|
5116
|
+
"text": "boolean"
|
|
5117
|
+
},
|
|
5118
|
+
"default": "!1",
|
|
5119
|
+
"description": "Whether the observer has been initialized."
|
|
5120
|
+
},
|
|
5121
|
+
{
|
|
5122
|
+
"kind": "method",
|
|
5123
|
+
"name": "#s",
|
|
5124
|
+
"privacy": "private",
|
|
5125
|
+
"description": "Called the first time observe() is called to initialize the target."
|
|
5126
|
+
},
|
|
5127
|
+
{
|
|
5128
|
+
"kind": "method",
|
|
5129
|
+
"name": "resolveOptions",
|
|
5130
|
+
"parameters": [
|
|
5131
|
+
{
|
|
5132
|
+
"name": "t"
|
|
5133
|
+
}
|
|
5134
|
+
]
|
|
5135
|
+
},
|
|
5136
|
+
{
|
|
5137
|
+
"kind": "method",
|
|
5138
|
+
"name": "handleEvent",
|
|
5139
|
+
"parameters": [
|
|
5140
|
+
{
|
|
5141
|
+
"name": "t"
|
|
5142
|
+
},
|
|
5143
|
+
{
|
|
5144
|
+
"name": "event",
|
|
5145
|
+
"optional": true,
|
|
5146
|
+
"type": {
|
|
5147
|
+
"text": "TransitionEvent"
|
|
5148
|
+
}
|
|
5149
|
+
}
|
|
5150
|
+
],
|
|
5151
|
+
"description": "Handle a potential property change",
|
|
5152
|
+
"privacy": "private"
|
|
5153
|
+
},
|
|
5154
|
+
{
|
|
5155
|
+
"kind": "method",
|
|
5156
|
+
"name": "observe",
|
|
5157
|
+
"parameters": [
|
|
5158
|
+
{
|
|
5159
|
+
"name": "t"
|
|
5160
|
+
},
|
|
5161
|
+
{
|
|
5162
|
+
"name": "properties",
|
|
5163
|
+
"type": {
|
|
5164
|
+
"text": "string | string[]"
|
|
5165
|
+
}
|
|
5166
|
+
}
|
|
5167
|
+
],
|
|
5168
|
+
"description": "Observe the target for changes to one or more CSS properties.",
|
|
5169
|
+
"return": {
|
|
5170
|
+
"type": {
|
|
5171
|
+
"text": "void"
|
|
5172
|
+
}
|
|
5173
|
+
}
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
"kind": "method",
|
|
5177
|
+
"name": "updateTransitionProperties",
|
|
5178
|
+
"description": "Update the `--style-observer-transition` property to include all observed properties."
|
|
5179
|
+
},
|
|
5180
|
+
{
|
|
5181
|
+
"kind": "field",
|
|
5182
|
+
"name": "#e",
|
|
5183
|
+
"privacy": "private",
|
|
5184
|
+
"type": {
|
|
5185
|
+
"text": "string | undefined"
|
|
5186
|
+
}
|
|
5187
|
+
},
|
|
5188
|
+
{
|
|
5189
|
+
"kind": "method",
|
|
5190
|
+
"name": "updateTransition",
|
|
5191
|
+
"parameters": [
|
|
5192
|
+
{
|
|
5193
|
+
"name": "{ firstTime: t }",
|
|
5194
|
+
"default": "{}"
|
|
5195
|
+
},
|
|
5196
|
+
{
|
|
5197
|
+
"name": "options",
|
|
5198
|
+
"type": {
|
|
5199
|
+
"text": "@param {boolean} [options.firstTime] - Whether this is the first time the transition is being set.\n "
|
|
5200
|
+
}
|
|
5201
|
+
}
|
|
5202
|
+
],
|
|
5203
|
+
"description": "Update the target's transition property or refresh it if it was overwritten."
|
|
5204
|
+
},
|
|
5205
|
+
{
|
|
5206
|
+
"kind": "field",
|
|
5207
|
+
"name": "_isHost",
|
|
5208
|
+
"description": "Whether the target has an open shadow root (and the modern adoptedStyleSheets API is supported).",
|
|
5209
|
+
"type": {
|
|
5210
|
+
"text": "boolean"
|
|
5211
|
+
},
|
|
5212
|
+
"privacy": "private",
|
|
5213
|
+
"readonly": true
|
|
5214
|
+
},
|
|
5215
|
+
{
|
|
5216
|
+
"kind": "field",
|
|
5217
|
+
"name": "_shadowSheet",
|
|
5218
|
+
"description": "Shadow style sheet. Only used if _isHost is true.",
|
|
5219
|
+
"type": {
|
|
5220
|
+
"text": "CSSStyleSheet | undefined"
|
|
5221
|
+
},
|
|
5222
|
+
"privacy": "private"
|
|
5223
|
+
},
|
|
5224
|
+
{
|
|
5225
|
+
"kind": "field",
|
|
5226
|
+
"name": "_styles",
|
|
5227
|
+
"type": {
|
|
5228
|
+
"text": "Record<string, string>"
|
|
5229
|
+
},
|
|
5230
|
+
"default": "{}",
|
|
5231
|
+
"description": "Any styles we've set on the target, for any reason.",
|
|
5232
|
+
"privacy": "private"
|
|
5233
|
+
},
|
|
5234
|
+
{
|
|
5235
|
+
"kind": "method",
|
|
5236
|
+
"name": "setProperty",
|
|
5237
|
+
"parameters": [
|
|
5238
|
+
{
|
|
5239
|
+
"name": "t"
|
|
5240
|
+
},
|
|
5241
|
+
{
|
|
5242
|
+
"name": "r"
|
|
5243
|
+
},
|
|
5244
|
+
{
|
|
5245
|
+
"name": "s"
|
|
5246
|
+
},
|
|
5247
|
+
{
|
|
5248
|
+
"name": "property",
|
|
5249
|
+
"type": {
|
|
5250
|
+
"text": "string"
|
|
5251
|
+
}
|
|
5252
|
+
},
|
|
5253
|
+
{
|
|
5254
|
+
"name": "value",
|
|
5255
|
+
"type": {
|
|
5256
|
+
"text": "string"
|
|
5257
|
+
}
|
|
5258
|
+
},
|
|
5259
|
+
{
|
|
5260
|
+
"name": "priority",
|
|
5261
|
+
"optional": true,
|
|
5262
|
+
"type": {
|
|
5263
|
+
"text": "string"
|
|
5264
|
+
}
|
|
5265
|
+
}
|
|
5266
|
+
],
|
|
5267
|
+
"description": "Set a CSS property on the target.",
|
|
5268
|
+
"return": {
|
|
5269
|
+
"type": {
|
|
5270
|
+
"text": "void"
|
|
5271
|
+
}
|
|
5272
|
+
}
|
|
5273
|
+
},
|
|
5274
|
+
{
|
|
5275
|
+
"kind": "method",
|
|
5276
|
+
"name": "getProperty",
|
|
5277
|
+
"parameters": [
|
|
5278
|
+
{
|
|
5279
|
+
"name": "t"
|
|
5280
|
+
},
|
|
5281
|
+
{
|
|
5282
|
+
"name": "property",
|
|
5283
|
+
"type": {
|
|
5284
|
+
"text": "string"
|
|
5285
|
+
}
|
|
5286
|
+
}
|
|
5287
|
+
],
|
|
5288
|
+
"description": "Get a CSS property from the target.",
|
|
5289
|
+
"return": {
|
|
5290
|
+
"type": {
|
|
5291
|
+
"text": "string"
|
|
5292
|
+
}
|
|
5293
|
+
}
|
|
5294
|
+
},
|
|
5295
|
+
{
|
|
5296
|
+
"kind": "method",
|
|
5297
|
+
"name": "unobserve",
|
|
5298
|
+
"parameters": [
|
|
5299
|
+
{
|
|
5300
|
+
"name": "t"
|
|
5301
|
+
},
|
|
5302
|
+
{
|
|
5303
|
+
"description": "Properties to stop observing. Defaults to all observed properties.",
|
|
5304
|
+
"name": "properties",
|
|
5305
|
+
"optional": true,
|
|
5306
|
+
"type": {
|
|
5307
|
+
"text": "string | string[]"
|
|
5308
|
+
}
|
|
5309
|
+
}
|
|
5310
|
+
],
|
|
5311
|
+
"description": "Stop observing a target for changes to one or more CSS properties.",
|
|
5312
|
+
"return": {
|
|
5313
|
+
"type": {
|
|
5314
|
+
"text": "void"
|
|
5315
|
+
}
|
|
5316
|
+
}
|
|
5317
|
+
},
|
|
5318
|
+
{
|
|
5319
|
+
"kind": "field",
|
|
5320
|
+
"name": "all",
|
|
5321
|
+
"static": true,
|
|
5322
|
+
"default": "new d()",
|
|
5323
|
+
"description": "All instances ever observed by this class."
|
|
5324
|
+
},
|
|
5325
|
+
{
|
|
5326
|
+
"kind": "field",
|
|
5327
|
+
"name": "renderedObserver",
|
|
5328
|
+
"default": "new g((i) => { this.propertyNames.length > 0 && this.handleEvent(); })"
|
|
5329
|
+
},
|
|
5330
|
+
{
|
|
5331
|
+
"kind": "field"
|
|
5332
|
+
}
|
|
5333
|
+
]
|
|
5334
|
+
},
|
|
5335
|
+
{
|
|
5336
|
+
"kind": "function",
|
|
5337
|
+
"name": "c",
|
|
5338
|
+
"parameters": [
|
|
5339
|
+
{
|
|
5340
|
+
"name": "o"
|
|
5341
|
+
}
|
|
5342
|
+
]
|
|
5343
|
+
}
|
|
5344
|
+
],
|
|
5345
|
+
"exports": [
|
|
5346
|
+
{
|
|
5347
|
+
"kind": "js",
|
|
5348
|
+
"name": "default",
|
|
5349
|
+
"declaration": {
|
|
5350
|
+
"name": "O",
|
|
5351
|
+
"module": "dist/node_modules/style-observer/src/element-style-observer.js"
|
|
5352
|
+
}
|
|
5353
|
+
},
|
|
5354
|
+
{
|
|
5355
|
+
"kind": "js",
|
|
5356
|
+
"name": "resolveOptions",
|
|
5357
|
+
"declaration": {
|
|
5358
|
+
"name": "c",
|
|
5359
|
+
"module": "dist/node_modules/style-observer/src/element-style-observer.js"
|
|
5360
|
+
}
|
|
5361
|
+
}
|
|
5362
|
+
]
|
|
5363
|
+
},
|
|
5364
|
+
{
|
|
5365
|
+
"kind": "javascript-module",
|
|
5366
|
+
"path": "dist/node_modules/style-observer/src/rendered-observer.js",
|
|
5367
|
+
"declarations": [
|
|
5368
|
+
{
|
|
5369
|
+
"kind": "class",
|
|
5370
|
+
"description": "",
|
|
5371
|
+
"name": "c",
|
|
5372
|
+
"members": [
|
|
5373
|
+
{
|
|
5374
|
+
"kind": "field",
|
|
5375
|
+
"name": "#e",
|
|
5376
|
+
"privacy": "private",
|
|
5377
|
+
"default": "new Set()",
|
|
5378
|
+
"description": "All currently observed targets",
|
|
5379
|
+
"type": {
|
|
5380
|
+
"text": "WeakSet<Element>"
|
|
5381
|
+
}
|
|
5382
|
+
},
|
|
5383
|
+
{
|
|
5384
|
+
"kind": "field",
|
|
5385
|
+
"name": "#t",
|
|
5386
|
+
"privacy": "private",
|
|
5387
|
+
"default": "new WeakMap()",
|
|
5388
|
+
"description": "Documents to IntersectionObserver instances",
|
|
5389
|
+
"type": {
|
|
5390
|
+
"text": "WeakMap<Document, IntersectionObserver>"
|
|
5391
|
+
}
|
|
5392
|
+
},
|
|
5393
|
+
{
|
|
5394
|
+
"kind": "method",
|
|
5395
|
+
"name": "observe",
|
|
5396
|
+
"parameters": [
|
|
5397
|
+
{
|
|
5398
|
+
"name": "e"
|
|
5399
|
+
},
|
|
5400
|
+
{
|
|
5401
|
+
"description": "The element to observe.",
|
|
5402
|
+
"name": "element",
|
|
5403
|
+
"type": {
|
|
5404
|
+
"text": "Element"
|
|
5405
|
+
}
|
|
5406
|
+
}
|
|
5407
|
+
],
|
|
5408
|
+
"description": "Begin observing the presence of an element."
|
|
5409
|
+
},
|
|
5410
|
+
{
|
|
5411
|
+
"kind": "method",
|
|
5412
|
+
"name": "unobserve",
|
|
5413
|
+
"parameters": [
|
|
5414
|
+
{
|
|
5415
|
+
"name": "e"
|
|
5416
|
+
},
|
|
5417
|
+
{
|
|
5418
|
+
"description": "The element to stop observing. If not provided, all targets will be unobserved.",
|
|
5419
|
+
"name": "element",
|
|
5420
|
+
"optional": true,
|
|
5421
|
+
"type": {
|
|
5422
|
+
"text": "Element"
|
|
5423
|
+
}
|
|
5424
|
+
}
|
|
5425
|
+
],
|
|
5426
|
+
"description": "Stop observing the presence of an element."
|
|
5427
|
+
},
|
|
5428
|
+
{
|
|
5429
|
+
"kind": "field",
|
|
5430
|
+
"name": "callback",
|
|
5431
|
+
"default": "e"
|
|
5432
|
+
}
|
|
5433
|
+
]
|
|
5434
|
+
}
|
|
5435
|
+
],
|
|
5436
|
+
"exports": [
|
|
5437
|
+
{
|
|
5438
|
+
"kind": "js",
|
|
5439
|
+
"name": "default",
|
|
5440
|
+
"declaration": {
|
|
5441
|
+
"name": "c",
|
|
5442
|
+
"module": "dist/node_modules/style-observer/src/rendered-observer.js"
|
|
5443
|
+
}
|
|
5444
|
+
}
|
|
5445
|
+
]
|
|
5446
|
+
},
|
|
5447
|
+
{
|
|
5448
|
+
"kind": "javascript-module",
|
|
5449
|
+
"path": "dist/node_modules/style-observer/src/style-observer.js",
|
|
5450
|
+
"declarations": [
|
|
5451
|
+
{
|
|
5452
|
+
"kind": "class",
|
|
5453
|
+
"description": "",
|
|
5454
|
+
"name": "p",
|
|
5455
|
+
"members": [
|
|
5456
|
+
{
|
|
5457
|
+
"kind": "field",
|
|
5458
|
+
"name": "elementObservers",
|
|
5459
|
+
"default": "new WeakMap()",
|
|
5460
|
+
"type": {
|
|
5461
|
+
"text": "WeakMap<Element, ElementStyleObserver>"
|
|
5462
|
+
}
|
|
5463
|
+
},
|
|
5464
|
+
{
|
|
5465
|
+
"kind": "method",
|
|
5466
|
+
"name": "changed",
|
|
5467
|
+
"parameters": [
|
|
5468
|
+
{
|
|
5469
|
+
"name": "t"
|
|
5470
|
+
}
|
|
5471
|
+
],
|
|
5472
|
+
"type": {
|
|
5473
|
+
"text": "StyleObserverCallback"
|
|
5474
|
+
}
|
|
5475
|
+
},
|
|
5476
|
+
{
|
|
5477
|
+
"kind": "method",
|
|
5478
|
+
"name": "observe",
|
|
5479
|
+
"parameters": [
|
|
5480
|
+
{
|
|
5481
|
+
"name": "t"
|
|
5482
|
+
}
|
|
5483
|
+
],
|
|
5484
|
+
"description": "Observe one or more targets for changes to one or more CSS properties."
|
|
5485
|
+
},
|
|
5486
|
+
{
|
|
5487
|
+
"kind": "method",
|
|
5488
|
+
"name": "unobserve",
|
|
5489
|
+
"parameters": [
|
|
5490
|
+
{
|
|
5491
|
+
"name": "t"
|
|
5492
|
+
}
|
|
5493
|
+
],
|
|
5494
|
+
"description": "Stop observing one or more targets for changes to one or more CSS properties."
|
|
5495
|
+
},
|
|
5496
|
+
{
|
|
5497
|
+
"kind": "method",
|
|
5498
|
+
"name": "updateTransition",
|
|
5499
|
+
"parameters": [
|
|
5500
|
+
{
|
|
5501
|
+
"name": "t"
|
|
5502
|
+
},
|
|
5503
|
+
{
|
|
5504
|
+
"name": "targets",
|
|
5505
|
+
"type": {
|
|
5506
|
+
"text": "Element | Element[]"
|
|
5507
|
+
}
|
|
5508
|
+
}
|
|
5509
|
+
],
|
|
5510
|
+
"description": "Update the transition for one or more targets.",
|
|
5511
|
+
"return": {
|
|
5512
|
+
"type": {
|
|
5513
|
+
"text": "void"
|
|
5514
|
+
}
|
|
5515
|
+
}
|
|
5516
|
+
},
|
|
5517
|
+
{
|
|
5518
|
+
"kind": "field",
|
|
5519
|
+
"name": "callback",
|
|
5520
|
+
"default": "t"
|
|
5521
|
+
},
|
|
5522
|
+
{
|
|
5523
|
+
"kind": "field"
|
|
5524
|
+
},
|
|
5525
|
+
{
|
|
5526
|
+
"kind": "field",
|
|
5527
|
+
"name": "targets",
|
|
5528
|
+
"type": {
|
|
5529
|
+
"text": "array"
|
|
5530
|
+
},
|
|
5531
|
+
"default": "[]"
|
|
5532
|
+
},
|
|
5533
|
+
{
|
|
5534
|
+
"kind": "field",
|
|
5535
|
+
"name": "target"
|
|
5536
|
+
},
|
|
5537
|
+
{
|
|
5538
|
+
"kind": "field",
|
|
5539
|
+
"name": "options",
|
|
5540
|
+
"default": "[...n(o), ...n(t)]",
|
|
5541
|
+
"type": {
|
|
5542
|
+
"text": "array"
|
|
5543
|
+
}
|
|
5544
|
+
}
|
|
5545
|
+
]
|
|
5546
|
+
}
|
|
5547
|
+
],
|
|
5548
|
+
"exports": [
|
|
5549
|
+
{
|
|
5550
|
+
"kind": "js",
|
|
5551
|
+
"name": "default",
|
|
5552
|
+
"declaration": {
|
|
5553
|
+
"name": "p",
|
|
5554
|
+
"module": "dist/node_modules/style-observer/src/style-observer.js"
|
|
5555
|
+
}
|
|
5556
|
+
}
|
|
5557
|
+
]
|
|
5558
|
+
},
|
|
5559
|
+
{
|
|
5560
|
+
"kind": "javascript-module",
|
|
5561
|
+
"path": "dist/node_modules/style-observer/src/util.js",
|
|
5562
|
+
"declarations": [
|
|
5563
|
+
{
|
|
5564
|
+
"kind": "function",
|
|
5565
|
+
"name": "c",
|
|
5566
|
+
"parameters": [
|
|
5567
|
+
{
|
|
5568
|
+
"name": "e"
|
|
5569
|
+
}
|
|
5570
|
+
]
|
|
5571
|
+
},
|
|
5572
|
+
{
|
|
5573
|
+
"kind": "function",
|
|
5574
|
+
"name": "h",
|
|
5575
|
+
"parameters": [
|
|
5576
|
+
{
|
|
5577
|
+
"name": "e"
|
|
5578
|
+
}
|
|
5579
|
+
]
|
|
5580
|
+
},
|
|
5581
|
+
{
|
|
5582
|
+
"kind": "function",
|
|
5583
|
+
"name": "m",
|
|
5584
|
+
"parameters": [
|
|
5585
|
+
{
|
|
5586
|
+
"name": "e"
|
|
5587
|
+
}
|
|
5588
|
+
]
|
|
5589
|
+
},
|
|
5590
|
+
{
|
|
5591
|
+
"kind": "function",
|
|
5592
|
+
"name": "u",
|
|
5593
|
+
"parameters": [
|
|
5594
|
+
{
|
|
5595
|
+
"name": "e"
|
|
5596
|
+
}
|
|
5597
|
+
]
|
|
5598
|
+
},
|
|
5599
|
+
{
|
|
5600
|
+
"kind": "function",
|
|
5601
|
+
"name": "d",
|
|
5602
|
+
"parameters": [
|
|
5603
|
+
{
|
|
5604
|
+
"name": "e"
|
|
5605
|
+
},
|
|
5606
|
+
{
|
|
5607
|
+
"name": "t"
|
|
5608
|
+
}
|
|
5609
|
+
]
|
|
5610
|
+
},
|
|
5611
|
+
{
|
|
5612
|
+
"kind": "function",
|
|
5613
|
+
"name": "a",
|
|
5614
|
+
"parameters": [
|
|
5615
|
+
{
|
|
5616
|
+
"name": "e"
|
|
5617
|
+
}
|
|
5618
|
+
]
|
|
5619
|
+
}
|
|
5620
|
+
],
|
|
5621
|
+
"exports": [
|
|
5622
|
+
{
|
|
5623
|
+
"kind": "js",
|
|
5624
|
+
"name": "getLonghands",
|
|
5625
|
+
"declaration": {
|
|
5626
|
+
"name": "m",
|
|
5627
|
+
"module": "dist/node_modules/style-observer/src/util.js"
|
|
5628
|
+
}
|
|
5629
|
+
},
|
|
5630
|
+
{
|
|
5631
|
+
"kind": "js",
|
|
5632
|
+
"name": "getTimesFor",
|
|
5633
|
+
"declaration": {
|
|
5634
|
+
"name": "d",
|
|
5635
|
+
"module": "dist/node_modules/style-observer/src/util.js"
|
|
5636
|
+
}
|
|
5637
|
+
},
|
|
5638
|
+
{
|
|
5639
|
+
"kind": "js",
|
|
5640
|
+
"name": "parseTimes",
|
|
5641
|
+
"declaration": {
|
|
5642
|
+
"name": "u",
|
|
5643
|
+
"module": "dist/node_modules/style-observer/src/util.js"
|
|
5644
|
+
}
|
|
5645
|
+
},
|
|
5646
|
+
{
|
|
5647
|
+
"kind": "js",
|
|
5648
|
+
"name": "splitCommas",
|
|
5649
|
+
"declaration": {
|
|
5650
|
+
"name": "a",
|
|
5651
|
+
"module": "dist/node_modules/style-observer/src/util.js"
|
|
5652
|
+
}
|
|
5653
|
+
},
|
|
5654
|
+
{
|
|
5655
|
+
"kind": "js",
|
|
5656
|
+
"name": "toArray",
|
|
5657
|
+
"declaration": {
|
|
5658
|
+
"name": "c",
|
|
5659
|
+
"module": "dist/node_modules/style-observer/src/util.js"
|
|
5660
|
+
}
|
|
5661
|
+
},
|
|
5662
|
+
{
|
|
5663
|
+
"kind": "js",
|
|
5664
|
+
"name": "wait",
|
|
5665
|
+
"declaration": {
|
|
5666
|
+
"name": "h",
|
|
5667
|
+
"module": "dist/node_modules/style-observer/src/util.js"
|
|
5668
|
+
}
|
|
5669
|
+
}
|
|
5670
|
+
]
|
|
5671
|
+
},
|
|
5672
|
+
{
|
|
5673
|
+
"kind": "javascript-module",
|
|
5674
|
+
"path": "dist/components/color-palette/menu/color-palette-menu.js",
|
|
5675
|
+
"declarations": [
|
|
5676
|
+
{
|
|
5677
|
+
"kind": "variable",
|
|
5678
|
+
"name": "s",
|
|
5679
|
+
"default": "class extends y { constructor() { super(...arguments), this.colors = [], this.editMode = !1, this.copyFormat = v.copyFormat, this.reorder = !1, this.emitter = new C(); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return c` ${this.reorder ? this.reorderItems() : this.menuItems()} `; } /** Renders the menu items. */ menuItems() { const i = { colors: this.colors, settings: this.settings }; return c` <menu> <li> <button @click=${(t) => { t.stopPropagation(), this.reorder = !this.reorder; }} > ${r(E)} <span>Reorder</span> </button> </li> <li> <button @click=${() => { this.emitter.emit(\"openEditor\"); }} > ${r(P)} <span>Edit Mode</span> </button> </li> ${// Only show toggle edit mode option when palette is not a gradient this.settings?.gradient ? d : c` <li> <button @click=${() => { this.emitter.emit(\"editMode\", !this.editMode); }} > ${r(k)} <span>Quick Edit</span> ${this.editMode ? r(M) : d} </button> </li> `} <hr> <li> <button @click=${() => { const t = this.colors.map((o) => { const e = u(o).rgb(); return `rgb(${e[0]}, ${e[1]}, ${e[2]})`; }); this.emitter.emit(\"change\", t); }} > ${r(h)} <span>Convert to RGB</span> </button> </li> <li> <button @click=${() => { const t = this.colors.map((o) => { const e = u(o).hsl(); return `hsl(${e[0]} ${e[1]}% ${e[2]}%)`; }); this.emitter.emit(\"change\", t); }} > ${r(h)} <span>Convert to HSL</span> </button> </li> <li> <button @click=${() => { const t = this.colors.map((o) => u(o).hex(2)); this.emitter.emit(\"change\", t); }} > ${r(h)} <span>Convert to HEX</span> </button> </li> <hr> <li> <button @click=${async () => { await b(JSON.stringify(i), this.copyFormat), this.emitter.emit(\"change\", []); }} > ${r(O)} <span>Cut</span> </button> </li> <li> <button @click=${async () => { await b(JSON.stringify(i), this.copyFormat); }} > ${r(w)} <span>Copy</span> </button> </li> </menu> `; } /** Renders the reorder items. */ reorderItems() { const i = (t) => { t instanceof _ && (t.emitter.clear(), t.emitter.on(\"submit\", (o) => { this.emitter.emit(\"change\", o), this.reorder = !1; })); }; return c` <color-palette-reorder .colors=${this.colors} ${S(i)} > </color-palette-reorder> `; } }"
|
|
5680
|
+
}
|
|
5681
|
+
],
|
|
5682
|
+
"exports": [
|
|
5683
|
+
{
|
|
5684
|
+
"kind": "js",
|
|
5685
|
+
"name": "ColorPaletteMenu",
|
|
5686
|
+
"declaration": {
|
|
5687
|
+
"name": "s",
|
|
5688
|
+
"module": "dist/components/color-palette/menu/color-palette-menu.js"
|
|
5689
|
+
}
|
|
5690
|
+
}
|
|
5691
|
+
]
|
|
5692
|
+
},
|
|
5693
|
+
{
|
|
5694
|
+
"kind": "javascript-module",
|
|
5695
|
+
"path": "dist/components/color-palette/menu/color-palette-menu.styles.js",
|
|
5696
|
+
"declarations": [
|
|
5697
|
+
{
|
|
5698
|
+
"kind": "variable",
|
|
5699
|
+
"name": "t",
|
|
5700
|
+
"default": "r` :host { display: block; } menu { display: grid; grid-template-columns: 1fr; padding: 0.5rem; margin: 0; border-radius: 5px; color: rgb(245, 245, 245); background-color: #222222; } li { display: grid; grid-template-columns: subgrid; list-style: none; } button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; justify-items: flex-start; column-gap: 0.5rem; background-color: inherit; color: inherit; border: none; cursor: pointer; padding: 4px 8px; text-wrap: nowrap; &:hover { background-color: #323232; } span { font-size: 14px; } } hr { width: 95%; border-color: rgb(45, 45, 45); } `"
|
|
5701
|
+
}
|
|
5702
|
+
],
|
|
5703
|
+
"exports": [
|
|
5704
|
+
{
|
|
5705
|
+
"kind": "js",
|
|
5706
|
+
"name": "default",
|
|
5707
|
+
"declaration": {
|
|
5708
|
+
"name": "t",
|
|
5709
|
+
"module": "dist/components/color-palette/menu/color-palette-menu.styles.js"
|
|
5710
|
+
}
|
|
5711
|
+
}
|
|
5712
|
+
]
|
|
5713
|
+
},
|
|
5714
|
+
{
|
|
5715
|
+
"kind": "javascript-module",
|
|
5716
|
+
"path": "dist/components/color-palette/menu/color-palette-reorder.js",
|
|
5717
|
+
"declarations": [
|
|
5718
|
+
{
|
|
5719
|
+
"kind": "variable",
|
|
5720
|
+
"name": "o",
|
|
5721
|
+
"default": "class extends m { constructor() { super(...arguments), this.colors = [], this.emitter = new y(); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return c` <menu> ${x( Object.keys(i), (r) => c` <button @click=${(s) => { this.selectOption(r); }} > <span>${r}</span> </button> ` )} </menu> `; } /** Reorders the palette colors based on the selected option. */ selectOption(r) { const s = this.colors.map((e) => u(e)); let a = []; switch (r) { case \"Hue\": a = s.sort((e, t) => e.hue() - t.hue()).map((e) => e.hex()); break; case \"Saturation\": a = s.sort((e, t) => e.saturation() - t.saturation()).map((e) => e.hex()); break; case \"Lightness\": a = s.sort((e, t) => e.lightness() - t.lightness()).map((e) => e.hex()); break; case \"Red\": a = s.sort((e, t) => e.red() - t.red()).map((e) => e.hex()); break; case \"Green\": a = s.sort((e, t) => e.green() - t.green()).map((e) => e.hex()); break; case \"Blue\": a = s.sort((e, t) => e.blue() - t.blue()).map((e) => e.hex()); break; case \"Alpha\": a = s.sort((e, t) => e.alpha() - t.alpha()).map((e) => e.hex()); break; } this.emitter.emit(\"submit\", a); } }"
|
|
5722
|
+
}
|
|
5723
|
+
],
|
|
5724
|
+
"exports": [
|
|
5725
|
+
{
|
|
5726
|
+
"kind": "js",
|
|
5727
|
+
"name": "ColorPaletteReorder",
|
|
5728
|
+
"declaration": {
|
|
5729
|
+
"name": "o",
|
|
5730
|
+
"module": "dist/components/color-palette/menu/color-palette-reorder.js"
|
|
5731
|
+
}
|
|
5732
|
+
}
|
|
5733
|
+
]
|
|
5734
|
+
},
|
|
5735
|
+
{
|
|
5736
|
+
"kind": "javascript-module",
|
|
5737
|
+
"path": "dist/components/color-palette/menu/color-palette-reorder.styles.js",
|
|
5738
|
+
"declarations": [
|
|
5739
|
+
{
|
|
5740
|
+
"kind": "variable",
|
|
5741
|
+
"name": "n",
|
|
5742
|
+
"default": "o` :host { display: block; } menu { display: flex; flex-direction: column; gap: 0.5rem; background-color: rgb(27, 27, 27); padding: 0.5rem; border-radius: 5px; button { color: rgb(245, 245, 245); background-color: transparent; border: none; padding: 4px 12px; cursor: pointer; &:hover { background-color: rgb(75, 75, 75); } span { font-size: 14px; } } } `"
|
|
5743
|
+
}
|
|
5744
|
+
],
|
|
5745
|
+
"exports": [
|
|
5746
|
+
{
|
|
5747
|
+
"kind": "js",
|
|
5748
|
+
"name": "default",
|
|
5749
|
+
"declaration": {
|
|
5750
|
+
"name": "n",
|
|
5751
|
+
"module": "dist/components/color-palette/menu/color-palette-reorder.styles.js"
|
|
5752
|
+
}
|
|
5753
|
+
}
|
|
5754
|
+
]
|
|
5755
|
+
},
|
|
5756
|
+
{
|
|
5757
|
+
"kind": "javascript-module",
|
|
5758
|
+
"path": "src/components/color-palette/component/color-palette-component.styles.ts",
|
|
5759
|
+
"declarations": [],
|
|
5760
|
+
"exports": [
|
|
5761
|
+
{
|
|
5762
|
+
"kind": "js",
|
|
5763
|
+
"name": "default",
|
|
5764
|
+
"declaration": {
|
|
5765
|
+
"module": "src/components/color-palette/component/color-palette-component.styles.ts"
|
|
5766
|
+
}
|
|
5767
|
+
}
|
|
5768
|
+
]
|
|
5769
|
+
},
|
|
5770
|
+
{
|
|
5771
|
+
"kind": "javascript-module",
|
|
5772
|
+
"path": "src/components/color-palette/component/color-palette-component.ts",
|
|
5773
|
+
"declarations": [
|
|
5774
|
+
{
|
|
5775
|
+
"kind": "class",
|
|
5776
|
+
"description": "color-palette components combined.",
|
|
5777
|
+
"name": "ColorPaletteComponent",
|
|
5778
|
+
"members": [
|
|
5779
|
+
{
|
|
5780
|
+
"kind": "field",
|
|
5781
|
+
"name": "palette",
|
|
5782
|
+
"type": {
|
|
5783
|
+
"text": "ColorPalette"
|
|
5784
|
+
},
|
|
5785
|
+
"privacy": "public",
|
|
5786
|
+
"description": "The color palette."
|
|
5787
|
+
},
|
|
5788
|
+
{
|
|
5789
|
+
"kind": "field",
|
|
5790
|
+
"name": "absolute",
|
|
5791
|
+
"type": {
|
|
5792
|
+
"text": "AbsoluteContainer"
|
|
5793
|
+
},
|
|
5794
|
+
"privacy": "public",
|
|
5795
|
+
"description": "The color-palette-editor wrapper."
|
|
5796
|
+
},
|
|
5797
|
+
{
|
|
5798
|
+
"kind": "field",
|
|
5799
|
+
"name": "colors",
|
|
5800
|
+
"type": {
|
|
5801
|
+
"text": "string[]"
|
|
5802
|
+
},
|
|
5803
|
+
"privacy": "public",
|
|
5804
|
+
"default": "[]",
|
|
5805
|
+
"description": "The palette colors.",
|
|
5806
|
+
"attribute": "colors"
|
|
5807
|
+
},
|
|
5808
|
+
{
|
|
5809
|
+
"kind": "field",
|
|
5810
|
+
"name": "settings",
|
|
5811
|
+
"type": {
|
|
5812
|
+
"text": "PaletteSettings"
|
|
5813
|
+
},
|
|
5814
|
+
"privacy": "public",
|
|
5815
|
+
"default": "{ height: defaultSettings.height, width: defaultSettings.width, direction: defaultSettings.direction, gradient: defaultSettings.gradient, preventHover: defaultSettings.preventHover, hideText: defaultSettings.hideText, override: defaultSettings.override, aliases: [] }",
|
|
5816
|
+
"description": "The palette settings.",
|
|
5817
|
+
"attribute": "settings"
|
|
5818
|
+
},
|
|
5819
|
+
{
|
|
5820
|
+
"kind": "field",
|
|
5821
|
+
"name": "editMode",
|
|
5822
|
+
"type": {
|
|
5823
|
+
"text": "boolean"
|
|
5824
|
+
},
|
|
5825
|
+
"privacy": "public",
|
|
5826
|
+
"default": "false",
|
|
5827
|
+
"description": "Whether the palette is in edit mode.",
|
|
5828
|
+
"attribute": "editMode"
|
|
5829
|
+
},
|
|
5830
|
+
{
|
|
5831
|
+
"kind": "field",
|
|
5832
|
+
"name": "isMobile",
|
|
5833
|
+
"type": {
|
|
5834
|
+
"text": "boolean"
|
|
5835
|
+
},
|
|
5836
|
+
"privacy": "protected",
|
|
5837
|
+
"default": "false",
|
|
5838
|
+
"description": "Whether the screen is mobile sized."
|
|
5839
|
+
}
|
|
5840
|
+
],
|
|
5841
|
+
"attributes": [
|
|
5842
|
+
{
|
|
5843
|
+
"name": "colors",
|
|
5844
|
+
"type": {
|
|
5845
|
+
"text": "string[]"
|
|
5846
|
+
},
|
|
5847
|
+
"default": "[]",
|
|
5848
|
+
"description": "The palette colors.",
|
|
5849
|
+
"fieldName": "colors"
|
|
5850
|
+
},
|
|
5851
|
+
{
|
|
5852
|
+
"name": "settings",
|
|
5853
|
+
"type": {
|
|
5854
|
+
"text": "PaletteSettings"
|
|
5855
|
+
},
|
|
5856
|
+
"default": "{ height: defaultSettings.height, width: defaultSettings.width, direction: defaultSettings.direction, gradient: defaultSettings.gradient, preventHover: defaultSettings.preventHover, hideText: defaultSettings.hideText, override: defaultSettings.override, aliases: [] }",
|
|
5857
|
+
"description": "The palette settings.",
|
|
5858
|
+
"fieldName": "settings"
|
|
5859
|
+
},
|
|
5860
|
+
{
|
|
5861
|
+
"name": "editMode",
|
|
5862
|
+
"type": {
|
|
5863
|
+
"text": "boolean"
|
|
5864
|
+
},
|
|
5865
|
+
"default": "false",
|
|
5866
|
+
"description": "Whether the palette is in edit mode.",
|
|
5867
|
+
"fieldName": "editMode"
|
|
5868
|
+
}
|
|
5869
|
+
],
|
|
5870
|
+
"superclass": {
|
|
5871
|
+
"name": "LitElement",
|
|
5872
|
+
"package": "lit"
|
|
5873
|
+
},
|
|
5874
|
+
"tagName": "color-palette-component",
|
|
5875
|
+
"customElement": true
|
|
5876
|
+
}
|
|
5877
|
+
],
|
|
5878
|
+
"exports": [
|
|
5879
|
+
{
|
|
5880
|
+
"kind": "js",
|
|
5881
|
+
"name": "ColorPaletteComponent",
|
|
5882
|
+
"declaration": {
|
|
5883
|
+
"name": "ColorPaletteComponent",
|
|
5884
|
+
"module": "src/components/color-palette/component/color-palette-component.ts"
|
|
5885
|
+
}
|
|
5886
|
+
},
|
|
5887
|
+
{
|
|
5888
|
+
"kind": "custom-element-definition",
|
|
5889
|
+
"name": "color-palette-component",
|
|
5890
|
+
"declaration": {
|
|
5891
|
+
"name": "ColorPaletteComponent",
|
|
5892
|
+
"module": "src/components/color-palette/component/color-palette-component.ts"
|
|
5893
|
+
}
|
|
5894
|
+
}
|
|
5895
|
+
]
|
|
5896
|
+
},
|
|
5897
|
+
{
|
|
5898
|
+
"kind": "javascript-module",
|
|
5899
|
+
"path": "src/components/color-palette/editor/color-palette-editor.styles.ts",
|
|
5900
|
+
"declarations": [],
|
|
5901
|
+
"exports": [
|
|
5902
|
+
{
|
|
5903
|
+
"kind": "js",
|
|
5904
|
+
"name": "default",
|
|
5905
|
+
"declaration": {
|
|
5906
|
+
"module": "src/components/color-palette/editor/color-palette-editor.styles.ts"
|
|
5907
|
+
}
|
|
5908
|
+
}
|
|
5909
|
+
]
|
|
5910
|
+
},
|
|
5911
|
+
{
|
|
5912
|
+
"kind": "javascript-module",
|
|
5913
|
+
"path": "src/components/color-palette/editor/color-palette-editor.ts",
|
|
5914
|
+
"declarations": [
|
|
5915
|
+
{
|
|
5916
|
+
"kind": "class",
|
|
5917
|
+
"description": "An editor which can assist in modifying new or existing color palettes.",
|
|
5918
|
+
"name": "ColorPaletteEditor",
|
|
5919
|
+
"cssProperties": [
|
|
5920
|
+
{
|
|
5921
|
+
"type": {
|
|
5922
|
+
"text": "<color>"
|
|
5923
|
+
},
|
|
5924
|
+
"description": "The call to action background color.",
|
|
5925
|
+
"name": "--cta-background"
|
|
5926
|
+
}
|
|
5927
|
+
],
|
|
5928
|
+
"members": [
|
|
5929
|
+
{
|
|
5930
|
+
"kind": "field",
|
|
5931
|
+
"name": "palette",
|
|
5932
|
+
"type": {
|
|
5933
|
+
"text": "HTMLDivElement"
|
|
5934
|
+
},
|
|
5935
|
+
"privacy": "public",
|
|
5936
|
+
"description": "The wrapper element."
|
|
5937
|
+
},
|
|
5938
|
+
{
|
|
5939
|
+
"kind": "field",
|
|
5940
|
+
"name": "colors",
|
|
5941
|
+
"type": {
|
|
5942
|
+
"text": "string[]"
|
|
5943
|
+
},
|
|
5944
|
+
"privacy": "public",
|
|
5945
|
+
"default": "[]",
|
|
5946
|
+
"description": "The palette colors to be edited.",
|
|
5947
|
+
"attribute": "colors"
|
|
5948
|
+
},
|
|
5949
|
+
{
|
|
5950
|
+
"kind": "field",
|
|
5951
|
+
"name": "settings",
|
|
5952
|
+
"type": {
|
|
5953
|
+
"text": "PaletteSettings"
|
|
5954
|
+
},
|
|
5955
|
+
"privacy": "public",
|
|
5956
|
+
"default": "{ height: defaultSettings.height, width: defaultSettings.width, direction: defaultSettings.direction, gradient: defaultSettings.gradient, preventHover: defaultSettings.preventHover, hideText: defaultSettings.hideText, override: defaultSettings.override, aliases: [] }",
|
|
5957
|
+
"description": "The palette settings to be edited.",
|
|
5958
|
+
"attribute": "settings"
|
|
5959
|
+
},
|
|
5960
|
+
{
|
|
5961
|
+
"kind": "field",
|
|
5962
|
+
"name": "selectedInput",
|
|
5963
|
+
"type": {
|
|
5964
|
+
"text": "SelectedInput"
|
|
5965
|
+
},
|
|
5966
|
+
"privacy": "public",
|
|
5967
|
+
"description": "The editing input that will be used.",
|
|
5968
|
+
"attribute": "selectedInput",
|
|
5969
|
+
"reflects": true
|
|
5970
|
+
},
|
|
5971
|
+
{
|
|
5972
|
+
"kind": "field",
|
|
5973
|
+
"name": "combination",
|
|
5974
|
+
"type": {
|
|
5975
|
+
"text": "Combination"
|
|
5976
|
+
},
|
|
5977
|
+
"privacy": "public",
|
|
5978
|
+
"description": "The color theory combination used when generating colors.",
|
|
5979
|
+
"attribute": "combination"
|
|
5980
|
+
},
|
|
5981
|
+
{
|
|
5982
|
+
"kind": "field",
|
|
5983
|
+
"name": "baseColor",
|
|
5984
|
+
"type": {
|
|
5985
|
+
"text": "ReturnType<typeof colorsea> | undefined"
|
|
5986
|
+
},
|
|
5987
|
+
"privacy": "public",
|
|
5988
|
+
"description": "The base color used when generating colors.",
|
|
5989
|
+
"attribute": "baseColor"
|
|
5990
|
+
},
|
|
5991
|
+
{
|
|
5992
|
+
"kind": "field",
|
|
5993
|
+
"name": "emitter",
|
|
5994
|
+
"type": {
|
|
5995
|
+
"text": "EventEmitter<EventMap>"
|
|
5996
|
+
},
|
|
5997
|
+
"privacy": "public",
|
|
5998
|
+
"default": "new EventEmitter<EventMap>()",
|
|
5999
|
+
"description": "Public way to subscribe to events."
|
|
6000
|
+
},
|
|
6001
|
+
{
|
|
6002
|
+
"kind": "method",
|
|
6003
|
+
"name": "renderSettings",
|
|
6004
|
+
"privacy": "private",
|
|
6005
|
+
"description": "Renders the settings fields."
|
|
6006
|
+
},
|
|
6007
|
+
{
|
|
6008
|
+
"kind": "method",
|
|
6009
|
+
"name": "pickerOption",
|
|
6010
|
+
"privacy": "private",
|
|
6011
|
+
"description": "Renders the picker option."
|
|
6012
|
+
},
|
|
6013
|
+
{
|
|
6014
|
+
"kind": "method",
|
|
6015
|
+
"name": "generateOption",
|
|
6016
|
+
"privacy": "private",
|
|
6017
|
+
"description": "Renders the generate option."
|
|
6018
|
+
},
|
|
6019
|
+
{
|
|
6020
|
+
"kind": "method",
|
|
6021
|
+
"name": "imageOption",
|
|
6022
|
+
"privacy": "private",
|
|
6023
|
+
"description": "Renders the image option."
|
|
6024
|
+
},
|
|
6025
|
+
{
|
|
6026
|
+
"kind": "method",
|
|
6027
|
+
"name": "urlOption",
|
|
6028
|
+
"privacy": "private",
|
|
6029
|
+
"description": "Renders the URL option."
|
|
6030
|
+
}
|
|
6031
|
+
],
|
|
6032
|
+
"attributes": [
|
|
6033
|
+
{
|
|
6034
|
+
"name": "colors",
|
|
6035
|
+
"type": {
|
|
6036
|
+
"text": "string[]"
|
|
6037
|
+
},
|
|
6038
|
+
"default": "[]",
|
|
6039
|
+
"description": "The palette colors to be edited.",
|
|
6040
|
+
"fieldName": "colors"
|
|
6041
|
+
},
|
|
6042
|
+
{
|
|
6043
|
+
"name": "settings",
|
|
6044
|
+
"type": {
|
|
6045
|
+
"text": "PaletteSettings"
|
|
6046
|
+
},
|
|
6047
|
+
"default": "{ height: defaultSettings.height, width: defaultSettings.width, direction: defaultSettings.direction, gradient: defaultSettings.gradient, preventHover: defaultSettings.preventHover, hideText: defaultSettings.hideText, override: defaultSettings.override, aliases: [] }",
|
|
6048
|
+
"description": "The palette settings to be edited.",
|
|
6049
|
+
"fieldName": "settings"
|
|
6050
|
+
},
|
|
6051
|
+
{
|
|
6052
|
+
"name": "selectedInput",
|
|
6053
|
+
"type": {
|
|
6054
|
+
"text": "SelectedInput"
|
|
6055
|
+
},
|
|
6056
|
+
"description": "The editing input that will be used.",
|
|
6057
|
+
"fieldName": "selectedInput"
|
|
6058
|
+
},
|
|
6059
|
+
{
|
|
6060
|
+
"name": "combination",
|
|
6061
|
+
"type": {
|
|
6062
|
+
"text": "Combination"
|
|
6063
|
+
},
|
|
6064
|
+
"description": "The color theory combination used when generating colors.",
|
|
6065
|
+
"fieldName": "combination"
|
|
6066
|
+
},
|
|
6067
|
+
{
|
|
6068
|
+
"name": "baseColor",
|
|
6069
|
+
"type": {
|
|
6070
|
+
"text": "ReturnType<typeof colorsea> | undefined"
|
|
6071
|
+
},
|
|
6072
|
+
"description": "The base color used when generating colors.",
|
|
6073
|
+
"fieldName": "baseColor"
|
|
6074
|
+
}
|
|
6075
|
+
],
|
|
6076
|
+
"superclass": {
|
|
6077
|
+
"name": "LitElement",
|
|
6078
|
+
"package": "lit"
|
|
6079
|
+
},
|
|
6080
|
+
"tagName": "color-palette-editor",
|
|
6081
|
+
"customElement": true
|
|
6082
|
+
}
|
|
4994
6083
|
],
|
|
4995
6084
|
"exports": [
|
|
4996
6085
|
{
|
|
4997
6086
|
"kind": "js",
|
|
4998
|
-
"name": "
|
|
6087
|
+
"name": "ColorPaletteEditor",
|
|
4999
6088
|
"declaration": {
|
|
5000
|
-
"name": "
|
|
5001
|
-
"module": "
|
|
6089
|
+
"name": "ColorPaletteEditor",
|
|
6090
|
+
"module": "src/components/color-palette/editor/color-palette-editor.ts"
|
|
6091
|
+
}
|
|
6092
|
+
},
|
|
6093
|
+
{
|
|
6094
|
+
"kind": "custom-element-definition",
|
|
6095
|
+
"name": "color-palette-editor",
|
|
6096
|
+
"declaration": {
|
|
6097
|
+
"name": "ColorPaletteEditor",
|
|
6098
|
+
"module": "src/components/color-palette/editor/color-palette-editor.ts"
|
|
5002
6099
|
}
|
|
5003
6100
|
}
|
|
5004
6101
|
]
|
|
5005
6102
|
},
|
|
5006
6103
|
{
|
|
5007
6104
|
"kind": "javascript-module",
|
|
5008
|
-
"path": "src/components/color-palette/
|
|
6105
|
+
"path": "src/components/color-palette/editor/settings-item.styles.ts",
|
|
5009
6106
|
"declarations": [],
|
|
5010
6107
|
"exports": [
|
|
5011
6108
|
{
|
|
5012
6109
|
"kind": "js",
|
|
5013
6110
|
"name": "default",
|
|
5014
6111
|
"declaration": {
|
|
5015
|
-
"module": "src/components/color-palette/
|
|
6112
|
+
"module": "src/components/color-palette/editor/settings-item.styles.ts"
|
|
5016
6113
|
}
|
|
5017
6114
|
}
|
|
5018
6115
|
]
|
|
5019
6116
|
},
|
|
5020
6117
|
{
|
|
5021
6118
|
"kind": "javascript-module",
|
|
5022
|
-
"path": "src/components/color-palette/
|
|
6119
|
+
"path": "src/components/color-palette/editor/settings-item.ts",
|
|
5023
6120
|
"declarations": [
|
|
5024
6121
|
{
|
|
5025
6122
|
"kind": "class",
|
|
5026
|
-
"description": "
|
|
5027
|
-
"name": "
|
|
5028
|
-
"
|
|
5029
|
-
{
|
|
5030
|
-
"kind": "field",
|
|
5031
|
-
"name": "palette",
|
|
5032
|
-
"type": {
|
|
5033
|
-
"text": "ColorPalette"
|
|
5034
|
-
},
|
|
5035
|
-
"privacy": "public",
|
|
5036
|
-
"description": "The color palette."
|
|
5037
|
-
},
|
|
5038
|
-
{
|
|
5039
|
-
"kind": "field",
|
|
5040
|
-
"name": "absolute",
|
|
5041
|
-
"type": {
|
|
5042
|
-
"text": "AbsoluteContainer"
|
|
5043
|
-
},
|
|
5044
|
-
"privacy": "public",
|
|
5045
|
-
"description": "The color-palette-editor wrapper."
|
|
5046
|
-
},
|
|
6123
|
+
"description": "The settings item using inside of the editor.",
|
|
6124
|
+
"name": "SettingItem",
|
|
6125
|
+
"slots": [
|
|
5047
6126
|
{
|
|
5048
|
-
"
|
|
5049
|
-
"name": "
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
"privacy": "public",
|
|
5054
|
-
"default": "[]",
|
|
5055
|
-
"description": "The palette colors.",
|
|
5056
|
-
"attribute": "colors"
|
|
5057
|
-
},
|
|
6127
|
+
"description": "The setting.",
|
|
6128
|
+
"name": ""
|
|
6129
|
+
}
|
|
6130
|
+
],
|
|
6131
|
+
"members": [
|
|
5058
6132
|
{
|
|
5059
6133
|
"kind": "field",
|
|
5060
|
-
"name": "
|
|
6134
|
+
"name": "name",
|
|
5061
6135
|
"type": {
|
|
5062
|
-
"text": "
|
|
6136
|
+
"text": "string"
|
|
5063
6137
|
},
|
|
5064
6138
|
"privacy": "public",
|
|
5065
|
-
"default": "
|
|
5066
|
-
"description": "The
|
|
5067
|
-
"attribute": "
|
|
6139
|
+
"default": "''",
|
|
6140
|
+
"description": "The name of the setting.",
|
|
6141
|
+
"attribute": "name"
|
|
5068
6142
|
},
|
|
5069
6143
|
{
|
|
5070
6144
|
"kind": "field",
|
|
5071
|
-
"name": "
|
|
6145
|
+
"name": "description",
|
|
5072
6146
|
"type": {
|
|
5073
|
-
"text": "
|
|
6147
|
+
"text": "string"
|
|
5074
6148
|
},
|
|
5075
6149
|
"privacy": "public",
|
|
5076
|
-
"default": "
|
|
5077
|
-
"description": "
|
|
5078
|
-
"attribute": "
|
|
5079
|
-
},
|
|
5080
|
-
{
|
|
5081
|
-
"kind": "field",
|
|
5082
|
-
"name": "isMobile",
|
|
5083
|
-
"type": {
|
|
5084
|
-
"text": "boolean"
|
|
5085
|
-
},
|
|
5086
|
-
"privacy": "protected",
|
|
5087
|
-
"default": "false",
|
|
5088
|
-
"description": "Whether the screen is mobile sized."
|
|
6150
|
+
"default": "''",
|
|
6151
|
+
"description": "The description of the setting.",
|
|
6152
|
+
"attribute": "description"
|
|
5089
6153
|
}
|
|
5090
6154
|
],
|
|
5091
6155
|
"attributes": [
|
|
5092
6156
|
{
|
|
5093
|
-
"name": "
|
|
5094
|
-
"type": {
|
|
5095
|
-
"text": "string[]"
|
|
5096
|
-
},
|
|
5097
|
-
"default": "[]",
|
|
5098
|
-
"description": "The palette colors.",
|
|
5099
|
-
"fieldName": "colors"
|
|
5100
|
-
},
|
|
5101
|
-
{
|
|
5102
|
-
"name": "settings",
|
|
6157
|
+
"name": "name",
|
|
5103
6158
|
"type": {
|
|
5104
|
-
"text": "
|
|
6159
|
+
"text": "string"
|
|
5105
6160
|
},
|
|
5106
|
-
"default": "
|
|
5107
|
-
"description": "The
|
|
5108
|
-
"fieldName": "
|
|
6161
|
+
"default": "''",
|
|
6162
|
+
"description": "The name of the setting.",
|
|
6163
|
+
"fieldName": "name"
|
|
5109
6164
|
},
|
|
5110
6165
|
{
|
|
5111
|
-
"name": "
|
|
6166
|
+
"name": "description",
|
|
5112
6167
|
"type": {
|
|
5113
|
-
"text": "
|
|
6168
|
+
"text": "string"
|
|
5114
6169
|
},
|
|
5115
|
-
"default": "
|
|
5116
|
-
"description": "
|
|
5117
|
-
"fieldName": "
|
|
6170
|
+
"default": "''",
|
|
6171
|
+
"description": "The description of the setting.",
|
|
6172
|
+
"fieldName": "description"
|
|
5118
6173
|
}
|
|
5119
6174
|
],
|
|
5120
6175
|
"superclass": {
|
|
5121
6176
|
"name": "LitElement",
|
|
5122
6177
|
"package": "lit"
|
|
5123
6178
|
},
|
|
5124
|
-
"tagName": "
|
|
6179
|
+
"tagName": "setting-item",
|
|
5125
6180
|
"customElement": true
|
|
5126
6181
|
}
|
|
5127
6182
|
],
|
|
5128
6183
|
"exports": [
|
|
5129
6184
|
{
|
|
5130
6185
|
"kind": "js",
|
|
5131
|
-
"name": "
|
|
6186
|
+
"name": "SettingItem",
|
|
5132
6187
|
"declaration": {
|
|
5133
|
-
"name": "
|
|
5134
|
-
"module": "src/components/color-palette/
|
|
6188
|
+
"name": "SettingItem",
|
|
6189
|
+
"module": "src/components/color-palette/editor/settings-item.ts"
|
|
5135
6190
|
}
|
|
5136
6191
|
},
|
|
5137
6192
|
{
|
|
5138
6193
|
"kind": "custom-element-definition",
|
|
5139
|
-
"name": "
|
|
6194
|
+
"name": "setting-item",
|
|
5140
6195
|
"declaration": {
|
|
5141
|
-
"name": "
|
|
5142
|
-
"module": "src/components/color-palette/
|
|
6196
|
+
"name": "SettingItem",
|
|
6197
|
+
"module": "src/components/color-palette/editor/settings-item.ts"
|
|
5143
6198
|
}
|
|
5144
6199
|
}
|
|
5145
6200
|
]
|
|
@@ -6075,308 +7130,252 @@
|
|
|
6075
7130
|
},
|
|
6076
7131
|
{
|
|
6077
7132
|
"kind": "javascript-module",
|
|
6078
|
-
"path": "
|
|
6079
|
-
"declarations": [
|
|
7133
|
+
"path": "dist/node_modules/style-observer/src/util/adopt-css.js",
|
|
7134
|
+
"declarations": [
|
|
7135
|
+
{
|
|
7136
|
+
"kind": "function",
|
|
7137
|
+
"name": "n",
|
|
7138
|
+
"parameters": [
|
|
7139
|
+
{
|
|
7140
|
+
"name": "l"
|
|
7141
|
+
},
|
|
7142
|
+
{
|
|
7143
|
+
"name": "e",
|
|
7144
|
+
"default": "globalThis.document"
|
|
7145
|
+
}
|
|
7146
|
+
]
|
|
7147
|
+
}
|
|
7148
|
+
],
|
|
6080
7149
|
"exports": [
|
|
6081
7150
|
{
|
|
6082
7151
|
"kind": "js",
|
|
6083
7152
|
"name": "default",
|
|
6084
7153
|
"declaration": {
|
|
6085
|
-
"
|
|
7154
|
+
"name": "n",
|
|
7155
|
+
"module": "dist/node_modules/style-observer/src/util/adopt-css.js"
|
|
6086
7156
|
}
|
|
6087
7157
|
}
|
|
6088
7158
|
]
|
|
6089
7159
|
},
|
|
6090
7160
|
{
|
|
6091
7161
|
"kind": "javascript-module",
|
|
6092
|
-
"path": "
|
|
7162
|
+
"path": "dist/node_modules/style-observer/src/util/Bug.js",
|
|
6093
7163
|
"declarations": [
|
|
6094
7164
|
{
|
|
6095
7165
|
"kind": "class",
|
|
6096
|
-
"description": "
|
|
6097
|
-
"name": "
|
|
6098
|
-
"cssProperties": [
|
|
6099
|
-
{
|
|
6100
|
-
"type": {
|
|
6101
|
-
"text": "<color>"
|
|
6102
|
-
},
|
|
6103
|
-
"description": "The call to action background color.",
|
|
6104
|
-
"name": "--cta-background"
|
|
6105
|
-
}
|
|
6106
|
-
],
|
|
7166
|
+
"description": "",
|
|
7167
|
+
"name": "t",
|
|
6107
7168
|
"members": [
|
|
6108
7169
|
{
|
|
6109
|
-
"kind": "field",
|
|
6110
|
-
"name": "
|
|
6111
|
-
"
|
|
6112
|
-
"text": "HTMLDivElement"
|
|
6113
|
-
},
|
|
6114
|
-
"privacy": "public",
|
|
6115
|
-
"description": "The wrapper element."
|
|
6116
|
-
},
|
|
6117
|
-
{
|
|
6118
|
-
"kind": "field",
|
|
6119
|
-
"name": "colors",
|
|
6120
|
-
"type": {
|
|
6121
|
-
"text": "string[]"
|
|
6122
|
-
},
|
|
6123
|
-
"privacy": "public",
|
|
6124
|
-
"default": "[]",
|
|
6125
|
-
"description": "The palette colors to be edited.",
|
|
6126
|
-
"attribute": "colors"
|
|
6127
|
-
},
|
|
6128
|
-
{
|
|
6129
|
-
"kind": "field",
|
|
6130
|
-
"name": "settings",
|
|
6131
|
-
"type": {
|
|
6132
|
-
"text": "PaletteSettings"
|
|
6133
|
-
},
|
|
6134
|
-
"privacy": "public",
|
|
6135
|
-
"default": "{ height: defaultSettings.height, width: defaultSettings.width, direction: defaultSettings.direction, gradient: defaultSettings.gradient, preventHover: defaultSettings.preventHover, hideText: defaultSettings.hideText, override: defaultSettings.override, aliases: [] }",
|
|
6136
|
-
"description": "The palette settings to be edited.",
|
|
6137
|
-
"attribute": "settings"
|
|
6138
|
-
},
|
|
6139
|
-
{
|
|
6140
|
-
"kind": "field",
|
|
6141
|
-
"name": "selectedInput",
|
|
6142
|
-
"type": {
|
|
6143
|
-
"text": "SelectedInput"
|
|
6144
|
-
},
|
|
6145
|
-
"privacy": "public",
|
|
6146
|
-
"description": "The editing input that will be used.",
|
|
6147
|
-
"attribute": "selectedInput",
|
|
6148
|
-
"reflects": true
|
|
7170
|
+
"kind": "field",
|
|
7171
|
+
"name": "#t",
|
|
7172
|
+
"privacy": "private"
|
|
6149
7173
|
},
|
|
6150
7174
|
{
|
|
6151
7175
|
"kind": "field",
|
|
6152
|
-
"name": "
|
|
6153
|
-
"
|
|
6154
|
-
"text": "Combination"
|
|
6155
|
-
},
|
|
6156
|
-
"privacy": "public",
|
|
6157
|
-
"description": "The color theory combination used when generating colors.",
|
|
6158
|
-
"attribute": "combination"
|
|
7176
|
+
"name": "#e",
|
|
7177
|
+
"privacy": "private"
|
|
6159
7178
|
},
|
|
6160
7179
|
{
|
|
6161
7180
|
"kind": "field",
|
|
6162
|
-
"name": "
|
|
6163
|
-
"
|
|
6164
|
-
|
|
6165
|
-
},
|
|
6166
|
-
"privacy": "public",
|
|
6167
|
-
"description": "The base color used when generating colors.",
|
|
6168
|
-
"attribute": "baseColor"
|
|
7181
|
+
"name": "valuePending",
|
|
7182
|
+
"description": "Get whether the bug is present or not, or a promise that will resolve to this value when detection is complete.",
|
|
7183
|
+
"readonly": true
|
|
6169
7184
|
},
|
|
6170
7185
|
{
|
|
6171
7186
|
"kind": "field",
|
|
6172
|
-
"name": "
|
|
7187
|
+
"name": "value",
|
|
7188
|
+
"description": "Synchronously get either whether the bug is present (if already detected or detection is sync)\nor kick off detection and return the initial value if detection is async",
|
|
7189
|
+
"readonly": true
|
|
7190
|
+
},
|
|
7191
|
+
{
|
|
7192
|
+
"kind": "field",
|
|
7193
|
+
"name": "all",
|
|
6173
7194
|
"type": {
|
|
6174
|
-
"text": "
|
|
7195
|
+
"text": "object"
|
|
6175
7196
|
},
|
|
6176
|
-
"
|
|
6177
|
-
"default": "
|
|
6178
|
-
"description": "Public way to subscribe to events."
|
|
7197
|
+
"static": true,
|
|
7198
|
+
"default": "{}"
|
|
6179
7199
|
},
|
|
6180
7200
|
{
|
|
6181
7201
|
"kind": "method",
|
|
6182
|
-
"name": "
|
|
6183
|
-
"
|
|
6184
|
-
"description": "Renders the settings fields."
|
|
7202
|
+
"name": "detectAll",
|
|
7203
|
+
"static": true
|
|
6185
7204
|
},
|
|
6186
7205
|
{
|
|
6187
|
-
"kind": "
|
|
6188
|
-
"name": "
|
|
6189
|
-
"
|
|
6190
|
-
"description": "Renders the picker option."
|
|
7206
|
+
"kind": "field",
|
|
7207
|
+
"name": "name",
|
|
7208
|
+
"default": "e"
|
|
6191
7209
|
},
|
|
6192
7210
|
{
|
|
6193
|
-
"kind": "
|
|
6194
|
-
"name": "
|
|
6195
|
-
"privacy": "private",
|
|
6196
|
-
"description": "Renders the generate option."
|
|
7211
|
+
"kind": "field",
|
|
7212
|
+
"name": "initialValue"
|
|
6197
7213
|
},
|
|
6198
7214
|
{
|
|
6199
|
-
"kind": "
|
|
6200
|
-
"name": "
|
|
6201
|
-
"
|
|
6202
|
-
"description": "Renders the image option."
|
|
7215
|
+
"kind": "field",
|
|
7216
|
+
"name": "detect",
|
|
7217
|
+
"default": "s"
|
|
6203
7218
|
},
|
|
6204
7219
|
{
|
|
6205
|
-
"kind": "
|
|
6206
|
-
"
|
|
6207
|
-
"privacy": "private",
|
|
6208
|
-
"description": "Renders the URL option."
|
|
7220
|
+
"kind": "field",
|
|
7221
|
+
"default": "this"
|
|
6209
7222
|
}
|
|
6210
|
-
]
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
7223
|
+
]
|
|
7224
|
+
}
|
|
7225
|
+
],
|
|
7226
|
+
"exports": [
|
|
7227
|
+
{
|
|
7228
|
+
"kind": "js",
|
|
7229
|
+
"name": "default",
|
|
7230
|
+
"declaration": {
|
|
7231
|
+
"name": "t",
|
|
7232
|
+
"module": "dist/node_modules/style-observer/src/util/Bug.js"
|
|
7233
|
+
}
|
|
7234
|
+
}
|
|
7235
|
+
]
|
|
7236
|
+
},
|
|
7237
|
+
{
|
|
7238
|
+
"kind": "javascript-module",
|
|
7239
|
+
"path": "dist/node_modules/style-observer/src/util/gentle-register-property.js",
|
|
7240
|
+
"declarations": [
|
|
7241
|
+
{
|
|
7242
|
+
"kind": "function",
|
|
7243
|
+
"name": "f",
|
|
7244
|
+
"parameters": [
|
|
6230
7245
|
{
|
|
6231
|
-
"name": "
|
|
6232
|
-
"type": {
|
|
6233
|
-
"text": "SelectedInput"
|
|
6234
|
-
},
|
|
6235
|
-
"description": "The editing input that will be used.",
|
|
6236
|
-
"fieldName": "selectedInput"
|
|
7246
|
+
"name": "t"
|
|
6237
7247
|
},
|
|
6238
7248
|
{
|
|
6239
|
-
"name": "
|
|
6240
|
-
"
|
|
6241
|
-
"text": "Combination"
|
|
6242
|
-
},
|
|
6243
|
-
"description": "The color theory combination used when generating colors.",
|
|
6244
|
-
"fieldName": "combination"
|
|
7249
|
+
"name": "n",
|
|
7250
|
+
"default": "{}"
|
|
6245
7251
|
},
|
|
6246
7252
|
{
|
|
6247
|
-
"name": "
|
|
6248
|
-
"
|
|
6249
|
-
"text": "ReturnType<typeof colorsea> | undefined"
|
|
6250
|
-
},
|
|
6251
|
-
"description": "The base color used when generating colors.",
|
|
6252
|
-
"fieldName": "baseColor"
|
|
7253
|
+
"name": "r",
|
|
7254
|
+
"default": "globalThis.document"
|
|
6253
7255
|
}
|
|
6254
|
-
]
|
|
6255
|
-
"superclass": {
|
|
6256
|
-
"name": "LitElement",
|
|
6257
|
-
"package": "lit"
|
|
6258
|
-
},
|
|
6259
|
-
"tagName": "color-palette-editor",
|
|
6260
|
-
"customElement": true
|
|
7256
|
+
]
|
|
6261
7257
|
}
|
|
6262
7258
|
],
|
|
6263
7259
|
"exports": [
|
|
6264
7260
|
{
|
|
6265
7261
|
"kind": "js",
|
|
6266
|
-
"name": "
|
|
6267
|
-
"declaration": {
|
|
6268
|
-
"name": "ColorPaletteEditor",
|
|
6269
|
-
"module": "src/components/color-palette/editor/color-palette-editor.ts"
|
|
6270
|
-
}
|
|
6271
|
-
},
|
|
6272
|
-
{
|
|
6273
|
-
"kind": "custom-element-definition",
|
|
6274
|
-
"name": "color-palette-editor",
|
|
7262
|
+
"name": "default",
|
|
6275
7263
|
"declaration": {
|
|
6276
|
-
"name": "
|
|
6277
|
-
"module": "
|
|
7264
|
+
"name": "f",
|
|
7265
|
+
"module": "dist/node_modules/style-observer/src/util/gentle-register-property.js"
|
|
6278
7266
|
}
|
|
6279
7267
|
}
|
|
6280
7268
|
]
|
|
6281
7269
|
},
|
|
6282
7270
|
{
|
|
6283
7271
|
"kind": "javascript-module",
|
|
6284
|
-
"path": "
|
|
6285
|
-
"declarations": [
|
|
7272
|
+
"path": "dist/node_modules/style-observer/src/util/is-registered-property.js",
|
|
7273
|
+
"declarations": [
|
|
7274
|
+
{
|
|
7275
|
+
"kind": "function",
|
|
7276
|
+
"name": "n",
|
|
7277
|
+
"parameters": [
|
|
7278
|
+
{
|
|
7279
|
+
"name": "t"
|
|
7280
|
+
},
|
|
7281
|
+
{
|
|
7282
|
+
"name": "l",
|
|
7283
|
+
"default": "globalThis.document"
|
|
7284
|
+
}
|
|
7285
|
+
]
|
|
7286
|
+
}
|
|
7287
|
+
],
|
|
6286
7288
|
"exports": [
|
|
6287
7289
|
{
|
|
6288
7290
|
"kind": "js",
|
|
6289
7291
|
"name": "default",
|
|
6290
7292
|
"declaration": {
|
|
6291
|
-
"
|
|
7293
|
+
"name": "n",
|
|
7294
|
+
"module": "dist/node_modules/style-observer/src/util/is-registered-property.js"
|
|
6292
7295
|
}
|
|
6293
7296
|
}
|
|
6294
7297
|
]
|
|
6295
7298
|
},
|
|
6296
7299
|
{
|
|
6297
7300
|
"kind": "javascript-module",
|
|
6298
|
-
"path": "
|
|
7301
|
+
"path": "dist/node_modules/style-observer/src/util/MultiWeakMap.js",
|
|
6299
7302
|
"declarations": [
|
|
6300
7303
|
{
|
|
6301
7304
|
"kind": "class",
|
|
6302
|
-
"description": "
|
|
6303
|
-
"name": "
|
|
6304
|
-
"slots": [
|
|
6305
|
-
{
|
|
6306
|
-
"description": "The setting.",
|
|
6307
|
-
"name": ""
|
|
6308
|
-
}
|
|
6309
|
-
],
|
|
7305
|
+
"description": "",
|
|
7306
|
+
"name": "r",
|
|
6310
7307
|
"members": [
|
|
6311
7308
|
{
|
|
6312
|
-
"kind": "
|
|
6313
|
-
"name": "
|
|
6314
|
-
"
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
7309
|
+
"kind": "method",
|
|
7310
|
+
"name": "has",
|
|
7311
|
+
"parameters": [
|
|
7312
|
+
{
|
|
7313
|
+
"name": "e"
|
|
7314
|
+
},
|
|
7315
|
+
{
|
|
7316
|
+
"name": "s"
|
|
7317
|
+
}
|
|
7318
|
+
]
|
|
6321
7319
|
},
|
|
6322
7320
|
{
|
|
6323
|
-
"kind": "
|
|
6324
|
-
"name": "
|
|
6325
|
-
"
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
],
|
|
6334
|
-
"attributes": [
|
|
6335
|
-
{
|
|
6336
|
-
"name": "name",
|
|
6337
|
-
"type": {
|
|
6338
|
-
"text": "string"
|
|
6339
|
-
},
|
|
6340
|
-
"default": "''",
|
|
6341
|
-
"description": "The name of the setting.",
|
|
6342
|
-
"fieldName": "name"
|
|
7321
|
+
"kind": "method",
|
|
7322
|
+
"name": "add",
|
|
7323
|
+
"parameters": [
|
|
7324
|
+
{
|
|
7325
|
+
"name": "e"
|
|
7326
|
+
},
|
|
7327
|
+
{
|
|
7328
|
+
"name": "s"
|
|
7329
|
+
}
|
|
7330
|
+
]
|
|
6343
7331
|
},
|
|
6344
7332
|
{
|
|
6345
|
-
"
|
|
6346
|
-
"
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
7333
|
+
"kind": "method",
|
|
7334
|
+
"name": "delete",
|
|
7335
|
+
"parameters": [
|
|
7336
|
+
{
|
|
7337
|
+
"name": "e"
|
|
7338
|
+
},
|
|
7339
|
+
{
|
|
7340
|
+
"name": "s"
|
|
7341
|
+
}
|
|
7342
|
+
]
|
|
6352
7343
|
}
|
|
6353
7344
|
],
|
|
6354
7345
|
"superclass": {
|
|
6355
|
-
"name": "
|
|
6356
|
-
"
|
|
6357
|
-
}
|
|
6358
|
-
"tagName": "setting-item",
|
|
6359
|
-
"customElement": true
|
|
7346
|
+
"name": "WeakMap",
|
|
7347
|
+
"module": "dist/node_modules/style-observer/src/util/MultiWeakMap.js"
|
|
7348
|
+
}
|
|
6360
7349
|
}
|
|
6361
7350
|
],
|
|
6362
7351
|
"exports": [
|
|
6363
7352
|
{
|
|
6364
7353
|
"kind": "js",
|
|
6365
|
-
"name": "
|
|
6366
|
-
"declaration": {
|
|
6367
|
-
"name": "SettingItem",
|
|
6368
|
-
"module": "src/components/color-palette/editor/settings-item.ts"
|
|
6369
|
-
}
|
|
6370
|
-
},
|
|
6371
|
-
{
|
|
6372
|
-
"kind": "custom-element-definition",
|
|
6373
|
-
"name": "setting-item",
|
|
7354
|
+
"name": "default",
|
|
6374
7355
|
"declaration": {
|
|
6375
|
-
"name": "
|
|
6376
|
-
"module": "
|
|
7356
|
+
"name": "r",
|
|
7357
|
+
"module": "dist/node_modules/style-observer/src/util/MultiWeakMap.js"
|
|
6377
7358
|
}
|
|
6378
7359
|
}
|
|
6379
7360
|
]
|
|
7361
|
+
},
|
|
7362
|
+
{
|
|
7363
|
+
"kind": "javascript-module",
|
|
7364
|
+
"path": "dist/node_modules/style-observer/src/util/bugs/adopted-style-sheet.js",
|
|
7365
|
+
"declarations": [],
|
|
7366
|
+
"exports": []
|
|
7367
|
+
},
|
|
7368
|
+
{
|
|
7369
|
+
"kind": "javascript-module",
|
|
7370
|
+
"path": "dist/node_modules/style-observer/src/util/bugs/transitionrun-loop.js",
|
|
7371
|
+
"declarations": [],
|
|
7372
|
+
"exports": []
|
|
7373
|
+
},
|
|
7374
|
+
{
|
|
7375
|
+
"kind": "javascript-module",
|
|
7376
|
+
"path": "dist/node_modules/style-observer/src/util/bugs/unregistered-transition.js",
|
|
7377
|
+
"declarations": [],
|
|
7378
|
+
"exports": []
|
|
6380
7379
|
}
|
|
6381
7380
|
]
|
|
6382
7381
|
}
|