@alegendstale/holly-components 4.0.5 → 4.0.7

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.
@@ -15,10 +15,10 @@
15
15
  "exports": [
16
16
  {
17
17
  "kind": "js",
18
- "name": "PaletteChangeEvent",
18
+ "name": "*",
19
19
  "declaration": {
20
- "name": "PaletteChangeEvent",
21
- "module": "./events/palette-change.js"
20
+ "name": "*",
21
+ "module": "src/events/events.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -174,6 +174,12 @@
174
174
  }
175
175
  ]
176
176
  },
177
+ {
178
+ "kind": "javascript-module",
179
+ "path": "dist/events/events.js",
180
+ "declarations": [],
181
+ "exports": []
182
+ },
177
183
  {
178
184
  "kind": "javascript-module",
179
185
  "path": "dist/events/palette-change.js",
@@ -902,6 +908,21 @@
902
908
  }
903
909
  ]
904
910
  },
911
+ {
912
+ "kind": "javascript-module",
913
+ "path": "src/events/events.ts",
914
+ "declarations": [],
915
+ "exports": [
916
+ {
917
+ "kind": "js",
918
+ "name": "PaletteChangeEvent",
919
+ "declaration": {
920
+ "name": "PaletteChangeEvent",
921
+ "module": "./palette-change.js"
922
+ }
923
+ }
924
+ ]
925
+ },
905
926
  {
906
927
  "kind": "javascript-module",
907
928
  "path": "src/events/palette-change.ts",
@@ -3547,941 +3568,941 @@
3547
3568
  },
3548
3569
  {
3549
3570
  "kind": "javascript-module",
3550
- "path": "src/components/draw-svg/draw-svg.styles.ts",
3571
+ "path": "src/components/color-palette/color-palette-utils.ts",
3572
+ "declarations": [
3573
+ {
3574
+ "kind": "variable",
3575
+ "name": "defaultSettings",
3576
+ "type": {
3577
+ "text": "ColorPaletteSettings"
3578
+ },
3579
+ "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 }"
3580
+ },
3581
+ {
3582
+ "kind": "variable",
3583
+ "name": "urlRegex",
3584
+ "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,})/"
3585
+ },
3586
+ {
3587
+ "kind": "class",
3588
+ "description": "",
3589
+ "name": "PaletteError",
3590
+ "members": [
3591
+ {
3592
+ "kind": "field",
3593
+ "name": "status",
3594
+ "type": {
3595
+ "text": "Status"
3596
+ },
3597
+ "default": "status"
3598
+ }
3599
+ ],
3600
+ "superclass": {
3601
+ "name": "Error",
3602
+ "module": "src/components/color-palette/color-palette-utils.ts"
3603
+ }
3604
+ },
3605
+ {
3606
+ "kind": "function",
3607
+ "name": "parseSettings",
3608
+ "return": {
3609
+ "type": {
3610
+ "text": ""
3611
+ }
3612
+ },
3613
+ "parameters": [
3614
+ {
3615
+ "name": "input",
3616
+ "type": {
3617
+ "text": "string"
3618
+ },
3619
+ "description": "settings from codeblock"
3620
+ }
3621
+ ],
3622
+ "description": "Parses input & extracts settings"
3623
+ },
3624
+ {
3625
+ "kind": "function",
3626
+ "name": "parseColors",
3627
+ "return": {
3628
+ "type": {
3629
+ "text": ""
3630
+ }
3631
+ },
3632
+ "parameters": [
3633
+ {
3634
+ "name": "input",
3635
+ "type": {
3636
+ "text": "string[]"
3637
+ },
3638
+ "description": "colors from codeblock"
3639
+ },
3640
+ {
3641
+ "name": "override",
3642
+ "type": {
3643
+ "text": "boolean"
3644
+ }
3645
+ }
3646
+ ],
3647
+ "description": "Parses input & extracts colors based on color space or URL"
3648
+ },
3649
+ {
3650
+ "kind": "function",
3651
+ "name": "calcColorsAndSettings",
3652
+ "parameters": [
3653
+ {
3654
+ "name": "input",
3655
+ "type": {
3656
+ "text": "string"
3657
+ }
3658
+ },
3659
+ {
3660
+ "name": "pluginSettings",
3661
+ "type": {
3662
+ "text": "ColorPaletteSettings"
3663
+ }
3664
+ }
3665
+ ],
3666
+ "description": "Calculates colors and settings based on codeblock contents"
3667
+ }
3668
+ ],
3669
+ "exports": [
3670
+ {
3671
+ "kind": "js",
3672
+ "name": "defaultSettings",
3673
+ "declaration": {
3674
+ "name": "defaultSettings",
3675
+ "module": "src/components/color-palette/color-palette-utils.ts"
3676
+ }
3677
+ },
3678
+ {
3679
+ "kind": "js",
3680
+ "name": "urlRegex",
3681
+ "declaration": {
3682
+ "name": "urlRegex",
3683
+ "module": "src/components/color-palette/color-palette-utils.ts"
3684
+ }
3685
+ },
3686
+ {
3687
+ "kind": "js",
3688
+ "name": "PaletteError",
3689
+ "declaration": {
3690
+ "name": "PaletteError",
3691
+ "module": "src/components/color-palette/color-palette-utils.ts"
3692
+ }
3693
+ },
3694
+ {
3695
+ "kind": "js",
3696
+ "name": "parseSettings",
3697
+ "declaration": {
3698
+ "name": "parseSettings",
3699
+ "module": "src/components/color-palette/color-palette-utils.ts"
3700
+ }
3701
+ },
3702
+ {
3703
+ "kind": "js",
3704
+ "name": "parseColors",
3705
+ "declaration": {
3706
+ "name": "parseColors",
3707
+ "module": "src/components/color-palette/color-palette-utils.ts"
3708
+ }
3709
+ },
3710
+ {
3711
+ "kind": "js",
3712
+ "name": "calcColorsAndSettings",
3713
+ "declaration": {
3714
+ "name": "calcColorsAndSettings",
3715
+ "module": "src/components/color-palette/color-palette-utils.ts"
3716
+ }
3717
+ }
3718
+ ]
3719
+ },
3720
+ {
3721
+ "kind": "javascript-module",
3722
+ "path": "src/components/color-palette/color-palette.styles.ts",
3551
3723
  "declarations": [],
3552
3724
  "exports": [
3553
3725
  {
3554
3726
  "kind": "js",
3555
3727
  "name": "default",
3556
3728
  "declaration": {
3557
- "module": "src/components/draw-svg/draw-svg.styles.ts"
3729
+ "module": "src/components/color-palette/color-palette.styles.ts"
3558
3730
  }
3559
3731
  }
3560
3732
  ]
3561
3733
  },
3562
3734
  {
3563
3735
  "kind": "javascript-module",
3564
- "path": "src/components/draw-svg/draw-svg.ts",
3736
+ "path": "src/components/color-palette/color-palette.ts",
3565
3737
  "declarations": [
3566
3738
  {
3567
3739
  "kind": "class",
3568
- "description": "Animates the provided SVG paths as if they were being drawn.",
3569
- "name": "DrawSvg",
3570
- "members": [
3740
+ "description": "A component which can display colors in various ways.",
3741
+ "name": "ColorPalette",
3742
+ "cssProperties": [
3571
3743
  {
3572
- "kind": "field",
3573
- "name": "isIntersecting",
3574
3744
  "type": {
3575
- "text": "boolean"
3745
+ "text": "<length>"
3576
3746
  },
3577
- "privacy": "public",
3578
- "default": "false",
3579
- "description": "Whether the SVG is intersecting with the client viewport. Useful for determining when to animate."
3747
+ "description": "The height of the palette.",
3748
+ "name": "--palette-height"
3580
3749
  },
3581
3750
  {
3582
- "kind": "method",
3583
- "name": "svgClasses",
3584
- "privacy": "protected",
3585
- "return": {
3586
- "type": {
3587
- "text": "{}"
3588
- }
3751
+ "type": {
3752
+ "text": "<length>"
3589
3753
  },
3590
- "inheritedFrom": {
3591
- "name": "ResponsiveSvg",
3592
- "module": "src/components/responsive-svg/responsive-svg.ts"
3593
- }
3754
+ "description": "The width of the palette.",
3755
+ "name": "--palette-width"
3594
3756
  },
3595
3757
  {
3596
- "kind": "field",
3597
- "name": "autofit",
3598
3758
  "type": {
3599
- "text": "boolean"
3759
+ "text": "<color>"
3600
3760
  },
3601
- "default": "false",
3602
- "description": "The SVG will attempt to fill its container.",
3603
- "attribute": "autofit",
3604
- "reflects": true,
3605
- "inheritedFrom": {
3606
- "name": "ResponsiveSvg",
3607
- "module": "src/components/responsive-svg/responsive-svg.ts"
3608
- }
3761
+ "description": "The background color of the palette.",
3762
+ "name": "--palette-background-color"
3609
3763
  },
3610
3764
  {
3611
- "kind": "field",
3612
- "name": "svgColors",
3613
3765
  "type": {
3614
- "text": "boolean"
3766
+ "text": "<color>"
3615
3767
  },
3616
- "default": "false",
3617
- "description": "Use the colors from the SVG input.",
3618
- "attribute": "svgColors",
3619
- "reflects": true,
3620
- "inheritedFrom": {
3621
- "name": "ResponsiveSvg",
3622
- "module": "src/components/responsive-svg/responsive-svg.ts"
3623
- }
3768
+ "description": "The color of the palette.",
3769
+ "name": "--palette-color"
3624
3770
  },
3625
3771
  {
3626
- "kind": "field",
3627
- "name": "svg",
3628
- "description": "The SVG to responsively size.\r\nMust use a property expression (.) to set",
3629
3772
  "type": {
3630
- "text": "SVGElement | TemplateResult<2> | string"
3773
+ "text": "<length>"
3631
3774
  },
3632
- "attribute": "svg",
3633
- "inheritedFrom": {
3634
- "name": "ResponsiveSvg",
3635
- "module": "src/components/responsive-svg/responsive-svg.ts"
3636
- }
3775
+ "description": "The flex size for palette items.",
3776
+ "name": "--palette-column-flex-basis"
3637
3777
  },
3638
3778
  {
3639
- "kind": "field",
3640
- "name": "preserveAspectRatio",
3641
- "description": "Set whether SVG preserves its aspect ratio alignment or spacing.",
3642
3779
  "type": {
3643
- "text": "PreserveAspectRatio"
3780
+ "text": "<length>"
3644
3781
  },
3645
- "default": "xMidYMid meet",
3646
- "attribute": "preserveAspectRatio",
3647
- "reflects": true,
3648
- "inheritedFrom": {
3649
- "name": "ResponsiveSvg",
3650
- "module": "src/components/responsive-svg/responsive-svg.ts"
3651
- }
3652
- },
3782
+ "description": "The radius of the palette corners.",
3783
+ "name": "--palette-corners"
3784
+ }
3785
+ ],
3786
+ "members": [
3653
3787
  {
3654
3788
  "kind": "field",
3655
- "name": "viewBox",
3789
+ "name": "_tooltip",
3656
3790
  "type": {
3657
- "text": "ViewBox"
3791
+ "text": "ToolTip"
3658
3792
  },
3659
- "privacy": "protected",
3660
- "default": "{ x: 0, y: 0, width: 0, height: 0 }",
3661
- "description": "The viewBox dimensions the SVG will use.",
3662
- "inheritedFrom": {
3663
- "name": "ResponsiveSvg",
3664
- "module": "src/components/responsive-svg/responsive-svg.ts"
3665
- }
3666
- },
3667
- {
3668
- "kind": "field",
3669
- "name": "_widthController",
3670
- "privacy": "private",
3671
- "default": "new StyleController(this, '--svg-width', (val) => { const width = parseFloat(val); if(isNaN(width) || width <= 0) return; this.viewBox = { ...this.viewBox, width: width || 0 }; })",
3672
- "inheritedFrom": {
3673
- "name": "ResponsiveSvg",
3674
- "module": "src/components/responsive-svg/responsive-svg.ts"
3675
- }
3793
+ "privacy": "private"
3676
3794
  },
3677
3795
  {
3678
3796
  "kind": "field",
3679
- "name": "_heightController",
3680
- "privacy": "private",
3681
- "default": "new StyleController(this, '--svg-height', (val) => { const height = parseFloat(val); if(isNaN(height) || height <= 0) return; this.viewBox = { ...this.viewBox, height: height || 0 }; })",
3682
- "inheritedFrom": {
3683
- "name": "ResponsiveSvg",
3684
- "module": "src/components/responsive-svg/responsive-svg.ts"
3685
- }
3686
- },
3687
- {
3688
- "kind": "method",
3689
- "name": "getViewBoxSize",
3690
- "privacy": "public",
3691
- "return": {
3692
- "type": {
3693
- "text": ""
3694
- }
3695
- },
3696
- "parameters": [
3697
- {
3698
- "name": "svg",
3699
- "type": {
3700
- "text": "SVGElement"
3701
- },
3702
- "description": "The SVG to get the attribute from."
3703
- }
3704
- ],
3705
- "description": "Gets the viewBox dimensions from an SVG element.",
3706
- "inheritedFrom": {
3707
- "name": "ResponsiveSvg",
3708
- "module": "src/components/responsive-svg/responsive-svg.ts"
3709
- }
3710
- }
3711
- ],
3712
- "events": [
3713
- {
3797
+ "name": "editMode",
3798
+ "description": "Whether the palette can be edited.",
3714
3799
  "type": {
3715
3800
  "text": "boolean"
3716
3801
  },
3717
- "description": "Emits when the component enters or leaves the viewport.",
3718
- "name": "intersection"
3719
- }
3720
- ],
3721
- "superclass": {
3722
- "name": "ResponsiveSvg",
3723
- "module": "/src/components/responsive-svg/responsive-svg.js"
3724
- },
3725
- "tagName": "draw-svg",
3726
- "customElement": true,
3727
- "cssParts": [
3728
- {
3729
- "description": "Styles the SVG element.",
3730
- "name": "__svg",
3731
- "inheritedFrom": {
3732
- "name": "ResponsiveSvg",
3733
- "module": "src/components/responsive-svg/responsive-svg.ts"
3734
- }
3802
+ "default": "false",
3803
+ "attribute": "editMode"
3735
3804
  },
3736
3805
  {
3737
- "description": "Styles all child path elements of the SVG.",
3738
- "name": "__path",
3739
- "inheritedFrom": {
3740
- "name": "ResponsiveSvg",
3741
- "module": "src/components/responsive-svg/responsive-svg.ts"
3742
- }
3743
- }
3744
- ],
3745
- "cssProperties": [
3746
- {
3806
+ "kind": "field",
3807
+ "name": "colors",
3747
3808
  "type": {
3748
- "text": "<length> (em)"
3809
+ "text": "string[]"
3749
3810
  },
3750
- "description": "Controls the width of the SVG. (Expects em value)",
3751
- "name": "--svg-width",
3752
- "inheritedFrom": {
3753
- "name": "ResponsiveSvg",
3754
- "module": "src/components/responsive-svg/responsive-svg.ts"
3755
- }
3811
+ "privacy": "public",
3812
+ "default": "[]",
3813
+ "description": "The input colors the palette will display.",
3814
+ "attribute": "colors",
3815
+ "reflects": true
3756
3816
  },
3757
3817
  {
3818
+ "kind": "field",
3819
+ "name": "height",
3758
3820
  "type": {
3759
- "text": "<length> (em)"
3821
+ "text": "number"
3760
3822
  },
3761
- "description": "Controls the height of the SVG. (Expects em value)",
3762
- "name": "--svg-height",
3763
- "inheritedFrom": {
3764
- "name": "ResponsiveSvg",
3765
- "module": "src/components/responsive-svg/responsive-svg.ts"
3766
- }
3823
+ "privacy": "public",
3824
+ "description": "The height of the palette.",
3825
+ "default": "150",
3826
+ "attribute": "height",
3827
+ "reflects": true
3767
3828
  },
3768
3829
  {
3830
+ "kind": "field",
3831
+ "name": "width",
3769
3832
  "type": {
3770
- "text": "<length> (em)"
3833
+ "text": "number"
3771
3834
  },
3772
- "description": "Set by the component as a fallback in case --svg-width is not defined.",
3773
- "name": "--svg-width-fallback",
3774
- "inheritedFrom": {
3775
- "name": "ResponsiveSvg",
3776
- "module": "src/components/responsive-svg/responsive-svg.ts"
3777
- }
3835
+ "privacy": "public",
3836
+ "description": "The width of the palette.",
3837
+ "default": "700",
3838
+ "attribute": "width",
3839
+ "reflects": true
3778
3840
  },
3779
3841
  {
3842
+ "kind": "field",
3843
+ "name": "direction",
3780
3844
  "type": {
3781
- "text": "<length> (em)"
3845
+ "text": "Direction"
3782
3846
  },
3783
- "description": "Set by the component as a fallback in case --svg-height is not defined.",
3784
- "name": "--svg-height-fallback",
3785
- "inheritedFrom": {
3786
- "name": "ResponsiveSvg",
3787
- "module": "src/components/responsive-svg/responsive-svg.ts"
3788
- }
3847
+ "privacy": "public",
3848
+ "description": "The direction the palette colors will face.",
3849
+ "default": "column",
3850
+ "attribute": "direction",
3851
+ "reflects": true
3789
3852
  },
3790
3853
  {
3791
- "type": {
3792
- "text": "number"
3793
- },
3794
- "description": "Controls the scale of the SVG when sized relative to font-size.",
3795
- "name": "--scale",
3796
- "inheritedFrom": {
3797
- "name": "ResponsiveSvg",
3798
- "module": "src/components/responsive-svg/responsive-svg.ts"
3799
- }
3800
- }
3801
- ],
3802
- "attributes": [
3803
- {
3804
- "name": "autofit",
3854
+ "kind": "field",
3855
+ "name": "gradient",
3805
3856
  "type": {
3806
3857
  "text": "boolean"
3807
3858
  },
3859
+ "privacy": "public",
3808
3860
  "default": "false",
3809
- "description": "The SVG will attempt to fill its container.",
3810
- "fieldName": "autofit",
3811
- "inheritedFrom": {
3812
- "name": "ResponsiveSvg",
3813
- "module": "src/components/responsive-svg/responsive-svg.ts"
3814
- }
3861
+ "description": "Whether the colors will appear as a gradient.",
3862
+ "attribute": "gradient",
3863
+ "reflects": true
3815
3864
  },
3816
3865
  {
3817
- "name": "svgColors",
3866
+ "kind": "field",
3867
+ "name": "preventHover",
3818
3868
  "type": {
3819
3869
  "text": "boolean"
3820
3870
  },
3871
+ "privacy": "public",
3821
3872
  "default": "false",
3822
- "description": "Use the colors from the SVG input.",
3823
- "fieldName": "svgColors",
3824
- "inheritedFrom": {
3825
- "name": "ResponsiveSvg",
3826
- "module": "src/components/responsive-svg/responsive-svg.ts"
3827
- }
3873
+ "description": "Whether hovering over the palette is allowed.",
3874
+ "attribute": "preventHover",
3875
+ "reflects": true
3828
3876
  },
3829
3877
  {
3830
- "name": "svg",
3831
- "description": "The SVG to responsively size.\r\nMust use a property expression (.) to set",
3878
+ "kind": "field",
3879
+ "name": "hideText",
3832
3880
  "type": {
3833
- "text": "SVGElement | TemplateResult<2> | string"
3881
+ "text": "boolean"
3834
3882
  },
3835
- "fieldName": "svg",
3836
- "inheritedFrom": {
3837
- "name": "ResponsiveSvg",
3838
- "module": "src/components/responsive-svg/responsive-svg.ts"
3839
- }
3883
+ "privacy": "public",
3884
+ "default": "false",
3885
+ "description": "Whether the text on each color is shown.",
3886
+ "attribute": "hideText",
3887
+ "reflects": true
3840
3888
  },
3841
- {
3842
- "name": "preserveAspectRatio",
3843
- "description": "Set whether SVG preserves its aspect ratio alignment or spacing.",
3844
- "type": {
3845
- "text": "PreserveAspectRatio"
3846
- },
3847
- "default": "xMidYMid meet",
3848
- "fieldName": "preserveAspectRatio",
3849
- "inheritedFrom": {
3850
- "name": "ResponsiveSvg",
3851
- "module": "src/components/responsive-svg/responsive-svg.ts"
3852
- }
3853
- }
3854
- ]
3855
- }
3856
- ],
3857
- "exports": [
3858
- {
3859
- "kind": "js",
3860
- "name": "DrawSvg",
3861
- "declaration": {
3862
- "name": "DrawSvg",
3863
- "module": "src/components/draw-svg/draw-svg.ts"
3864
- }
3865
- },
3866
- {
3867
- "kind": "custom-element-definition",
3868
- "name": "draw-svg",
3869
- "declaration": {
3870
- "name": "DrawSvg",
3871
- "module": "src/components/draw-svg/draw-svg.ts"
3872
- }
3873
- }
3874
- ]
3875
- },
3876
- {
3877
- "kind": "javascript-module",
3878
- "path": "src/components/color-palette/color-palette-utils.ts",
3879
- "declarations": [
3880
- {
3881
- "kind": "variable",
3882
- "name": "defaultSettings",
3883
- "type": {
3884
- "text": "ColorPaletteSettings"
3885
- },
3886
- "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 }"
3887
- },
3888
- {
3889
- "kind": "variable",
3890
- "name": "urlRegex",
3891
- "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,})/"
3892
- },
3893
- {
3894
- "kind": "class",
3895
- "description": "",
3896
- "name": "PaletteError",
3897
- "members": [
3898
3889
  {
3899
3890
  "kind": "field",
3900
- "name": "status",
3901
- "type": {
3902
- "text": "Status"
3903
- },
3904
- "default": "status"
3905
- }
3906
- ],
3907
- "superclass": {
3908
- "name": "Error",
3909
- "module": "src/components/color-palette/color-palette-utils.ts"
3910
- }
3911
- },
3912
- {
3913
- "kind": "function",
3914
- "name": "parseSettings",
3915
- "return": {
3916
- "type": {
3917
- "text": ""
3918
- }
3919
- },
3920
- "parameters": [
3921
- {
3922
- "name": "input",
3891
+ "name": "override",
3923
3892
  "type": {
3924
- "text": "string"
3893
+ "text": "boolean"
3925
3894
  },
3926
- "description": "settings from codeblock"
3927
- }
3928
- ],
3929
- "description": "Parses input & extracts settings"
3930
- },
3931
- {
3932
- "kind": "function",
3933
- "name": "parseColors",
3934
- "return": {
3935
- "type": {
3936
- "text": ""
3937
- }
3938
- },
3939
- "parameters": [
3895
+ "privacy": "public",
3896
+ "default": "false",
3897
+ "description": "Whether the input bypasses validation checks.",
3898
+ "attribute": "override",
3899
+ "reflects": true
3900
+ },
3940
3901
  {
3941
- "name": "input",
3902
+ "kind": "field",
3903
+ "name": "aliases",
3942
3904
  "type": {
3943
3905
  "text": "string[]"
3944
3906
  },
3945
- "description": "colors from codeblock"
3907
+ "privacy": "public",
3908
+ "default": "[]",
3909
+ "description": "The aliases for each color.",
3910
+ "attribute": "aliases",
3911
+ "reflects": true
3946
3912
  },
3947
3913
  {
3948
- "name": "override",
3949
- "type": {
3950
- "text": "boolean"
3951
- }
3952
- }
3953
- ],
3954
- "description": "Parses input & extracts colors based on color space or URL"
3955
- },
3956
- {
3957
- "kind": "function",
3958
- "name": "calcColorsAndSettings",
3959
- "parameters": [
3960
- {
3961
- "name": "input",
3914
+ "kind": "field",
3915
+ "name": "maxWidth",
3962
3916
  "type": {
3963
- "text": "string"
3964
- }
3917
+ "text": "number"
3918
+ },
3919
+ "privacy": "public",
3920
+ "default": "0",
3921
+ "description": "The maximum width of the container. (So that the palette doesn't expand past its bounds)",
3922
+ "attribute": "maxWidth"
3965
3923
  },
3966
3924
  {
3967
- "name": "pluginSettings",
3925
+ "kind": "field",
3926
+ "name": "settings",
3927
+ "privacy": "public",
3928
+ "description": "Helper accessor for settings",
3968
3929
  "type": {
3969
- "text": "ColorPaletteSettings"
3930
+ "text": "PaletteSettings"
3970
3931
  }
3971
- }
3972
- ],
3973
- "description": "Calculates colors and settings based on codeblock contents"
3974
- }
3975
- ],
3976
- "exports": [
3977
- {
3978
- "kind": "js",
3979
- "name": "defaultSettings",
3980
- "declaration": {
3981
- "name": "defaultSettings",
3982
- "module": "src/components/color-palette/color-palette-utils.ts"
3983
- }
3984
- },
3985
- {
3986
- "kind": "js",
3987
- "name": "urlRegex",
3988
- "declaration": {
3989
- "name": "urlRegex",
3990
- "module": "src/components/color-palette/color-palette-utils.ts"
3991
- }
3992
- },
3993
- {
3994
- "kind": "js",
3995
- "name": "PaletteError",
3996
- "declaration": {
3997
- "name": "PaletteError",
3998
- "module": "src/components/color-palette/color-palette-utils.ts"
3999
- }
4000
- },
4001
- {
4002
- "kind": "js",
4003
- "name": "parseSettings",
4004
- "declaration": {
4005
- "name": "parseSettings",
4006
- "module": "src/components/color-palette/color-palette-utils.ts"
4007
- }
4008
- },
4009
- {
4010
- "kind": "js",
4011
- "name": "parseColors",
4012
- "declaration": {
4013
- "name": "parseColors",
4014
- "module": "src/components/color-palette/color-palette-utils.ts"
4015
- }
4016
- },
4017
- {
4018
- "kind": "js",
4019
- "name": "calcColorsAndSettings",
4020
- "declaration": {
4021
- "name": "calcColorsAndSettings",
4022
- "module": "src/components/color-palette/color-palette-utils.ts"
4023
- }
4024
- }
4025
- ]
4026
- },
4027
- {
4028
- "kind": "javascript-module",
4029
- "path": "src/components/color-palette/color-palette.styles.ts",
4030
- "declarations": [],
4031
- "exports": [
4032
- {
4033
- "kind": "js",
4034
- "name": "default",
4035
- "declaration": {
4036
- "module": "src/components/color-palette/color-palette.styles.ts"
4037
- }
4038
- }
4039
- ]
4040
- },
4041
- {
4042
- "kind": "javascript-module",
4043
- "path": "src/components/color-palette/color-palette.ts",
4044
- "declarations": [
4045
- {
4046
- "kind": "class",
4047
- "description": "A component which can display colors in various ways.",
4048
- "name": "ColorPalette",
4049
- "cssProperties": [
3932
+ },
4050
3933
  {
3934
+ "kind": "field",
3935
+ "name": "status",
4051
3936
  "type": {
4052
- "text": "<length>"
3937
+ "text": "Status"
4053
3938
  },
4054
- "description": "The height of the palette.",
4055
- "name": "--palette-height"
3939
+ "privacy": "public",
3940
+ "description": "The current status of the palette."
4056
3941
  },
4057
3942
  {
3943
+ "kind": "field",
3944
+ "name": "pluginSettings",
4058
3945
  "type": {
4059
- "text": "<length>"
3946
+ "text": "ColorPaletteSettings"
4060
3947
  },
4061
- "description": "The width of the palette.",
4062
- "name": "--palette-width"
3948
+ "default": "defaultSettings",
3949
+ "description": "Extended settings",
3950
+ "attribute": "pluginSettings"
4063
3951
  },
4064
3952
  {
4065
- "type": {
4066
- "text": "<color>"
4067
- },
4068
- "description": "The background color of the palette.",
4069
- "name": "--palette-background-color"
3953
+ "kind": "method",
3954
+ "name": "setStatusAndColors",
3955
+ "description": "Sets the current status and parses colors."
4070
3956
  },
4071
3957
  {
4072
- "type": {
4073
- "text": "<color>"
3958
+ "kind": "method",
3959
+ "name": "getPaletteWidth",
3960
+ "privacy": "public",
3961
+ "return": {
3962
+ "type": {
3963
+ "text": ""
3964
+ }
3965
+ }
3966
+ },
3967
+ {
3968
+ "kind": "method",
3969
+ "name": "createPalette",
3970
+ "privacy": "protected",
3971
+ "return": {
3972
+ "type": {
3973
+ "text": "TemplateResult | typeof nothing"
3974
+ }
4074
3975
  },
4075
- "description": "The color of the palette.",
4076
- "name": "--palette-color"
3976
+ "description": "Creates a color palette or gradient palette depending on settings."
4077
3977
  },
4078
3978
  {
4079
- "type": {
4080
- "text": "<length>"
3979
+ "kind": "method",
3980
+ "name": "createColors",
3981
+ "privacy": "protected",
3982
+ "return": {
3983
+ "type": {
3984
+ "text": "TemplateResult"
3985
+ }
4081
3986
  },
4082
- "description": "The flex size for palette items.",
4083
- "name": "--palette-column-flex-basis"
3987
+ "description": "Create a color palette."
4084
3988
  },
4085
3989
  {
4086
- "type": {
4087
- "text": "<length>"
3990
+ "kind": "method",
3991
+ "name": "createGradient",
3992
+ "privacy": "protected",
3993
+ "return": {
3994
+ "type": {
3995
+ "text": "TemplateResult"
3996
+ }
4088
3997
  },
4089
- "description": "The radius of the palette corners.",
4090
- "name": "--palette-corners"
3998
+ "description": "Create a gradient palette."
3999
+ },
4000
+ {
4001
+ "kind": "method",
4002
+ "name": "createInvalidPalette",
4003
+ "privacy": "protected",
4004
+ "parameters": [
4005
+ {
4006
+ "name": "type",
4007
+ "type": {
4008
+ "text": "Status"
4009
+ },
4010
+ "description": "Palette status type"
4011
+ },
4012
+ {
4013
+ "name": "message",
4014
+ "default": "''"
4015
+ }
4016
+ ],
4017
+ "description": "Create invalid palette based on palette status."
4091
4018
  }
4092
4019
  ],
4093
- "members": [
4020
+ "events": [
4094
4021
  {
4095
- "kind": "field",
4096
- "name": "_tooltip",
4022
+ "name": "notice",
4097
4023
  "type": {
4098
- "text": "ToolTip"
4024
+ "text": "string"
4099
4025
  },
4100
- "privacy": "private"
4026
+ "description": "Emits a user-facing notice."
4101
4027
  },
4102
4028
  {
4103
- "kind": "field",
4029
+ "type": {
4030
+ "text": "PaletteChangeEvent"
4031
+ }
4032
+ },
4033
+ {
4034
+ "type": {
4035
+ "text": "boolean"
4036
+ },
4037
+ "description": "Emits a change in editMode.",
4038
+ "name": "edit-mode"
4039
+ },
4040
+ {
4041
+ "description": "Emits a change in palette colors or settings.",
4042
+ "name": "palette-change"
4043
+ }
4044
+ ],
4045
+ "attributes": [
4046
+ {
4104
4047
  "name": "editMode",
4105
4048
  "description": "Whether the palette can be edited.",
4106
4049
  "type": {
4107
4050
  "text": "boolean"
4108
4051
  },
4109
4052
  "default": "false",
4110
- "attribute": "editMode"
4053
+ "fieldName": "editMode"
4111
4054
  },
4112
4055
  {
4113
- "kind": "field",
4114
4056
  "name": "colors",
4115
4057
  "type": {
4116
4058
  "text": "string[]"
4117
4059
  },
4118
- "privacy": "public",
4119
4060
  "default": "[]",
4120
4061
  "description": "The input colors the palette will display.",
4121
- "attribute": "colors",
4122
- "reflects": true
4062
+ "fieldName": "colors"
4123
4063
  },
4124
4064
  {
4125
- "kind": "field",
4126
4065
  "name": "height",
4127
4066
  "type": {
4128
4067
  "text": "number"
4129
4068
  },
4130
- "privacy": "public",
4131
4069
  "description": "The height of the palette.",
4132
4070
  "default": "150",
4133
- "attribute": "height",
4134
- "reflects": true
4071
+ "fieldName": "height"
4135
4072
  },
4136
4073
  {
4137
- "kind": "field",
4138
4074
  "name": "width",
4139
4075
  "type": {
4140
4076
  "text": "number"
4141
4077
  },
4142
- "privacy": "public",
4143
4078
  "description": "The width of the palette.",
4144
4079
  "default": "700",
4145
- "attribute": "width",
4146
- "reflects": true
4080
+ "fieldName": "width"
4147
4081
  },
4148
4082
  {
4149
- "kind": "field",
4150
4083
  "name": "direction",
4151
4084
  "type": {
4152
4085
  "text": "Direction"
4153
4086
  },
4154
- "privacy": "public",
4155
4087
  "description": "The direction the palette colors will face.",
4156
4088
  "default": "column",
4157
- "attribute": "direction",
4158
- "reflects": true
4089
+ "fieldName": "direction"
4159
4090
  },
4160
4091
  {
4161
- "kind": "field",
4162
4092
  "name": "gradient",
4163
4093
  "type": {
4164
4094
  "text": "boolean"
4165
4095
  },
4166
- "privacy": "public",
4167
4096
  "default": "false",
4168
4097
  "description": "Whether the colors will appear as a gradient.",
4169
- "attribute": "gradient",
4170
- "reflects": true
4098
+ "fieldName": "gradient"
4171
4099
  },
4172
4100
  {
4173
- "kind": "field",
4174
4101
  "name": "preventHover",
4175
4102
  "type": {
4176
4103
  "text": "boolean"
4177
4104
  },
4178
- "privacy": "public",
4179
4105
  "default": "false",
4180
4106
  "description": "Whether hovering over the palette is allowed.",
4181
- "attribute": "preventHover",
4182
- "reflects": true
4107
+ "fieldName": "preventHover"
4183
4108
  },
4184
4109
  {
4185
- "kind": "field",
4186
4110
  "name": "hideText",
4187
4111
  "type": {
4188
4112
  "text": "boolean"
4189
4113
  },
4190
- "privacy": "public",
4191
4114
  "default": "false",
4192
4115
  "description": "Whether the text on each color is shown.",
4193
- "attribute": "hideText",
4194
- "reflects": true
4116
+ "fieldName": "hideText"
4195
4117
  },
4196
4118
  {
4197
- "kind": "field",
4198
4119
  "name": "override",
4199
4120
  "type": {
4200
4121
  "text": "boolean"
4201
4122
  },
4202
- "privacy": "public",
4203
4123
  "default": "false",
4204
4124
  "description": "Whether the input bypasses validation checks.",
4205
- "attribute": "override",
4206
- "reflects": true
4125
+ "fieldName": "override"
4207
4126
  },
4208
4127
  {
4209
- "kind": "field",
4210
4128
  "name": "aliases",
4211
4129
  "type": {
4212
4130
  "text": "string[]"
4213
4131
  },
4214
- "privacy": "public",
4215
4132
  "default": "[]",
4216
4133
  "description": "The aliases for each color.",
4217
- "attribute": "aliases",
4218
- "reflects": true
4134
+ "fieldName": "aliases"
4135
+ },
4136
+ {
4137
+ "name": "maxWidth",
4138
+ "type": {
4139
+ "text": "number"
4140
+ },
4141
+ "default": "0",
4142
+ "description": "The maximum width of the container. (So that the palette doesn't expand past its bounds)",
4143
+ "fieldName": "maxWidth"
4144
+ },
4145
+ {
4146
+ "name": "pluginSettings",
4147
+ "type": {
4148
+ "text": "ColorPaletteSettings"
4149
+ },
4150
+ "default": "defaultSettings",
4151
+ "description": "Extended settings",
4152
+ "fieldName": "pluginSettings"
4153
+ }
4154
+ ],
4155
+ "superclass": {
4156
+ "name": "LitElement",
4157
+ "package": "lit"
4158
+ },
4159
+ "tagName": "color-palette",
4160
+ "customElement": true
4161
+ }
4162
+ ],
4163
+ "exports": [
4164
+ {
4165
+ "kind": "js",
4166
+ "name": "ColorPalette",
4167
+ "declaration": {
4168
+ "name": "ColorPalette",
4169
+ "module": "src/components/color-palette/color-palette.ts"
4170
+ }
4171
+ },
4172
+ {
4173
+ "kind": "custom-element-definition",
4174
+ "name": "color-palette",
4175
+ "declaration": {
4176
+ "name": "ColorPalette",
4177
+ "module": "src/components/color-palette/color-palette.ts"
4178
+ }
4179
+ }
4180
+ ]
4181
+ },
4182
+ {
4183
+ "kind": "javascript-module",
4184
+ "path": "src/components/draw-svg/draw-svg.styles.ts",
4185
+ "declarations": [],
4186
+ "exports": [
4187
+ {
4188
+ "kind": "js",
4189
+ "name": "default",
4190
+ "declaration": {
4191
+ "module": "src/components/draw-svg/draw-svg.styles.ts"
4192
+ }
4193
+ }
4194
+ ]
4195
+ },
4196
+ {
4197
+ "kind": "javascript-module",
4198
+ "path": "src/components/draw-svg/draw-svg.ts",
4199
+ "declarations": [
4200
+ {
4201
+ "kind": "class",
4202
+ "description": "Animates the provided SVG paths as if they were being drawn.",
4203
+ "name": "DrawSvg",
4204
+ "members": [
4205
+ {
4206
+ "kind": "field",
4207
+ "name": "isIntersecting",
4208
+ "type": {
4209
+ "text": "boolean"
4210
+ },
4211
+ "privacy": "public",
4212
+ "default": "false",
4213
+ "description": "Whether the SVG is intersecting with the client viewport. Useful for determining when to animate."
4214
+ },
4215
+ {
4216
+ "kind": "method",
4217
+ "name": "svgClasses",
4218
+ "privacy": "protected",
4219
+ "return": {
4220
+ "type": {
4221
+ "text": "{}"
4222
+ }
4223
+ },
4224
+ "inheritedFrom": {
4225
+ "name": "ResponsiveSvg",
4226
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4227
+ }
4219
4228
  },
4220
4229
  {
4221
4230
  "kind": "field",
4222
- "name": "maxWidth",
4231
+ "name": "autofit",
4223
4232
  "type": {
4224
- "text": "number"
4233
+ "text": "boolean"
4225
4234
  },
4226
- "privacy": "public",
4227
- "default": "0",
4228
- "description": "The maximum width of the container. (So that the palette doesn't expand past its bounds)",
4229
- "attribute": "maxWidth"
4235
+ "default": "false",
4236
+ "description": "The SVG will attempt to fill its container.",
4237
+ "attribute": "autofit",
4238
+ "reflects": true,
4239
+ "inheritedFrom": {
4240
+ "name": "ResponsiveSvg",
4241
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4242
+ }
4230
4243
  },
4231
4244
  {
4232
4245
  "kind": "field",
4233
- "name": "settings",
4234
- "privacy": "public",
4235
- "description": "Helper accessor for settings",
4246
+ "name": "svgColors",
4236
4247
  "type": {
4237
- "text": "PaletteSettings"
4248
+ "text": "boolean"
4249
+ },
4250
+ "default": "false",
4251
+ "description": "Use the colors from the SVG input.",
4252
+ "attribute": "svgColors",
4253
+ "reflects": true,
4254
+ "inheritedFrom": {
4255
+ "name": "ResponsiveSvg",
4256
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4238
4257
  }
4239
4258
  },
4240
4259
  {
4241
4260
  "kind": "field",
4242
- "name": "status",
4261
+ "name": "svg",
4262
+ "description": "The SVG to responsively size.\r\nMust use a property expression (.) to set",
4243
4263
  "type": {
4244
- "text": "Status"
4264
+ "text": "SVGElement | TemplateResult<2> | string"
4245
4265
  },
4246
- "privacy": "public",
4247
- "description": "The current status of the palette."
4266
+ "attribute": "svg",
4267
+ "inheritedFrom": {
4268
+ "name": "ResponsiveSvg",
4269
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4270
+ }
4248
4271
  },
4249
4272
  {
4250
4273
  "kind": "field",
4251
- "name": "pluginSettings",
4274
+ "name": "preserveAspectRatio",
4275
+ "description": "Set whether SVG preserves its aspect ratio alignment or spacing.",
4252
4276
  "type": {
4253
- "text": "ColorPaletteSettings"
4277
+ "text": "PreserveAspectRatio"
4254
4278
  },
4255
- "default": "defaultSettings",
4256
- "description": "Extended settings",
4257
- "attribute": "pluginSettings"
4258
- },
4259
- {
4260
- "kind": "method",
4261
- "name": "setStatusAndColors",
4262
- "description": "Sets the current status and parses colors."
4279
+ "default": "xMidYMid meet",
4280
+ "attribute": "preserveAspectRatio",
4281
+ "reflects": true,
4282
+ "inheritedFrom": {
4283
+ "name": "ResponsiveSvg",
4284
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4285
+ }
4263
4286
  },
4264
4287
  {
4265
- "kind": "method",
4266
- "name": "getPaletteWidth",
4267
- "privacy": "public",
4268
- "return": {
4269
- "type": {
4270
- "text": ""
4271
- }
4288
+ "kind": "field",
4289
+ "name": "viewBox",
4290
+ "type": {
4291
+ "text": "ViewBox"
4292
+ },
4293
+ "privacy": "protected",
4294
+ "default": "{ x: 0, y: 0, width: 0, height: 0 }",
4295
+ "description": "The viewBox dimensions the SVG will use.",
4296
+ "inheritedFrom": {
4297
+ "name": "ResponsiveSvg",
4298
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4272
4299
  }
4273
4300
  },
4274
4301
  {
4275
- "kind": "method",
4276
- "name": "createPalette",
4277
- "privacy": "protected",
4278
- "return": {
4279
- "type": {
4280
- "text": "TemplateResult | typeof nothing"
4281
- }
4282
- },
4283
- "description": "Creates a color palette or gradient palette depending on settings."
4302
+ "kind": "field",
4303
+ "name": "_widthController",
4304
+ "privacy": "private",
4305
+ "default": "new StyleController(this, '--svg-width', (val) => { const width = parseFloat(val); if(isNaN(width) || width <= 0) return; this.viewBox = { ...this.viewBox, width: width || 0 }; })",
4306
+ "inheritedFrom": {
4307
+ "name": "ResponsiveSvg",
4308
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4309
+ }
4284
4310
  },
4285
4311
  {
4286
- "kind": "method",
4287
- "name": "createColors",
4288
- "privacy": "protected",
4289
- "return": {
4290
- "type": {
4291
- "text": "TemplateResult"
4292
- }
4293
- },
4294
- "description": "Create a color palette."
4312
+ "kind": "field",
4313
+ "name": "_heightController",
4314
+ "privacy": "private",
4315
+ "default": "new StyleController(this, '--svg-height', (val) => { const height = parseFloat(val); if(isNaN(height) || height <= 0) return; this.viewBox = { ...this.viewBox, height: height || 0 }; })",
4316
+ "inheritedFrom": {
4317
+ "name": "ResponsiveSvg",
4318
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4319
+ }
4295
4320
  },
4296
4321
  {
4297
4322
  "kind": "method",
4298
- "name": "createGradient",
4299
- "privacy": "protected",
4323
+ "name": "getViewBoxSize",
4324
+ "privacy": "public",
4300
4325
  "return": {
4301
4326
  "type": {
4302
- "text": "TemplateResult"
4327
+ "text": ""
4303
4328
  }
4304
4329
  },
4305
- "description": "Create a gradient palette."
4306
- },
4307
- {
4308
- "kind": "method",
4309
- "name": "createInvalidPalette",
4310
- "privacy": "protected",
4311
4330
  "parameters": [
4312
4331
  {
4313
- "name": "type",
4332
+ "name": "svg",
4314
4333
  "type": {
4315
- "text": "Status"
4334
+ "text": "SVGElement"
4316
4335
  },
4317
- "description": "Palette status type"
4318
- },
4319
- {
4320
- "name": "message",
4321
- "default": "''"
4336
+ "description": "The SVG to get the attribute from."
4322
4337
  }
4323
4338
  ],
4324
- "description": "Create invalid palette based on palette status."
4339
+ "description": "Gets the viewBox dimensions from an SVG element.",
4340
+ "inheritedFrom": {
4341
+ "name": "ResponsiveSvg",
4342
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4343
+ }
4325
4344
  }
4326
4345
  ],
4327
4346
  "events": [
4328
- {
4329
- "name": "notice",
4330
- "type": {
4331
- "text": "string"
4332
- },
4333
- "description": "Emits a user-facing notice."
4334
- },
4335
- {
4336
- "type": {
4337
- "text": "PaletteChangeEvent"
4338
- }
4339
- },
4340
4347
  {
4341
4348
  "type": {
4342
4349
  "text": "boolean"
4343
4350
  },
4344
- "description": "Emits a change in editMode.",
4345
- "name": "edit-mode"
4346
- },
4347
- {
4348
- "description": "Emits a change in palette colors or settings.",
4349
- "name": "palette-change"
4351
+ "description": "Emits when the component enters or leaves the viewport.",
4352
+ "name": "intersection"
4350
4353
  }
4351
4354
  ],
4352
- "attributes": [
4353
- {
4354
- "name": "editMode",
4355
- "description": "Whether the palette can be edited.",
4356
- "type": {
4357
- "text": "boolean"
4358
- },
4359
- "default": "false",
4360
- "fieldName": "editMode"
4361
- },
4355
+ "superclass": {
4356
+ "name": "ResponsiveSvg",
4357
+ "module": "/src/components/responsive-svg/responsive-svg.js"
4358
+ },
4359
+ "tagName": "draw-svg",
4360
+ "customElement": true,
4361
+ "cssParts": [
4362
4362
  {
4363
- "name": "colors",
4364
- "type": {
4365
- "text": "string[]"
4366
- },
4367
- "default": "[]",
4368
- "description": "The input colors the palette will display.",
4369
- "fieldName": "colors"
4363
+ "description": "Styles the SVG element.",
4364
+ "name": "__svg",
4365
+ "inheritedFrom": {
4366
+ "name": "ResponsiveSvg",
4367
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4368
+ }
4370
4369
  },
4371
4370
  {
4372
- "name": "height",
4373
- "type": {
4374
- "text": "number"
4375
- },
4376
- "description": "The height of the palette.",
4377
- "default": "150",
4378
- "fieldName": "height"
4379
- },
4371
+ "description": "Styles all child path elements of the SVG.",
4372
+ "name": "__path",
4373
+ "inheritedFrom": {
4374
+ "name": "ResponsiveSvg",
4375
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4376
+ }
4377
+ }
4378
+ ],
4379
+ "cssProperties": [
4380
4380
  {
4381
- "name": "width",
4382
4381
  "type": {
4383
- "text": "number"
4382
+ "text": "<length> (em)"
4384
4383
  },
4385
- "description": "The width of the palette.",
4386
- "default": "700",
4387
- "fieldName": "width"
4384
+ "description": "Controls the width of the SVG. (Expects em value)",
4385
+ "name": "--svg-width",
4386
+ "inheritedFrom": {
4387
+ "name": "ResponsiveSvg",
4388
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4389
+ }
4388
4390
  },
4389
4391
  {
4390
- "name": "direction",
4391
4392
  "type": {
4392
- "text": "Direction"
4393
+ "text": "<length> (em)"
4393
4394
  },
4394
- "description": "The direction the palette colors will face.",
4395
- "default": "column",
4396
- "fieldName": "direction"
4395
+ "description": "Controls the height of the SVG. (Expects em value)",
4396
+ "name": "--svg-height",
4397
+ "inheritedFrom": {
4398
+ "name": "ResponsiveSvg",
4399
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4400
+ }
4397
4401
  },
4398
4402
  {
4399
- "name": "gradient",
4400
4403
  "type": {
4401
- "text": "boolean"
4404
+ "text": "<length> (em)"
4402
4405
  },
4403
- "default": "false",
4404
- "description": "Whether the colors will appear as a gradient.",
4405
- "fieldName": "gradient"
4406
+ "description": "Set by the component as a fallback in case --svg-width is not defined.",
4407
+ "name": "--svg-width-fallback",
4408
+ "inheritedFrom": {
4409
+ "name": "ResponsiveSvg",
4410
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4411
+ }
4406
4412
  },
4407
4413
  {
4408
- "name": "preventHover",
4409
4414
  "type": {
4410
- "text": "boolean"
4415
+ "text": "<length> (em)"
4411
4416
  },
4412
- "default": "false",
4413
- "description": "Whether hovering over the palette is allowed.",
4414
- "fieldName": "preventHover"
4417
+ "description": "Set by the component as a fallback in case --svg-height is not defined.",
4418
+ "name": "--svg-height-fallback",
4419
+ "inheritedFrom": {
4420
+ "name": "ResponsiveSvg",
4421
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4422
+ }
4415
4423
  },
4416
4424
  {
4417
- "name": "hideText",
4418
4425
  "type": {
4419
- "text": "boolean"
4426
+ "text": "number"
4420
4427
  },
4421
- "default": "false",
4422
- "description": "Whether the text on each color is shown.",
4423
- "fieldName": "hideText"
4424
- },
4428
+ "description": "Controls the scale of the SVG when sized relative to font-size.",
4429
+ "name": "--scale",
4430
+ "inheritedFrom": {
4431
+ "name": "ResponsiveSvg",
4432
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4433
+ }
4434
+ }
4435
+ ],
4436
+ "attributes": [
4425
4437
  {
4426
- "name": "override",
4438
+ "name": "autofit",
4427
4439
  "type": {
4428
4440
  "text": "boolean"
4429
4441
  },
4430
4442
  "default": "false",
4431
- "description": "Whether the input bypasses validation checks.",
4432
- "fieldName": "override"
4443
+ "description": "The SVG will attempt to fill its container.",
4444
+ "fieldName": "autofit",
4445
+ "inheritedFrom": {
4446
+ "name": "ResponsiveSvg",
4447
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4448
+ }
4433
4449
  },
4434
4450
  {
4435
- "name": "aliases",
4451
+ "name": "svgColors",
4436
4452
  "type": {
4437
- "text": "string[]"
4453
+ "text": "boolean"
4438
4454
  },
4439
- "default": "[]",
4440
- "description": "The aliases for each color.",
4441
- "fieldName": "aliases"
4455
+ "default": "false",
4456
+ "description": "Use the colors from the SVG input.",
4457
+ "fieldName": "svgColors",
4458
+ "inheritedFrom": {
4459
+ "name": "ResponsiveSvg",
4460
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4461
+ }
4442
4462
  },
4443
4463
  {
4444
- "name": "maxWidth",
4464
+ "name": "svg",
4465
+ "description": "The SVG to responsively size.\r\nMust use a property expression (.) to set",
4445
4466
  "type": {
4446
- "text": "number"
4467
+ "text": "SVGElement | TemplateResult<2> | string"
4447
4468
  },
4448
- "default": "0",
4449
- "description": "The maximum width of the container. (So that the palette doesn't expand past its bounds)",
4450
- "fieldName": "maxWidth"
4469
+ "fieldName": "svg",
4470
+ "inheritedFrom": {
4471
+ "name": "ResponsiveSvg",
4472
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4473
+ }
4451
4474
  },
4452
4475
  {
4453
- "name": "pluginSettings",
4476
+ "name": "preserveAspectRatio",
4477
+ "description": "Set whether SVG preserves its aspect ratio alignment or spacing.",
4454
4478
  "type": {
4455
- "text": "ColorPaletteSettings"
4479
+ "text": "PreserveAspectRatio"
4456
4480
  },
4457
- "default": "defaultSettings",
4458
- "description": "Extended settings",
4459
- "fieldName": "pluginSettings"
4481
+ "default": "xMidYMid meet",
4482
+ "fieldName": "preserveAspectRatio",
4483
+ "inheritedFrom": {
4484
+ "name": "ResponsiveSvg",
4485
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4486
+ }
4460
4487
  }
4461
- ],
4462
- "superclass": {
4463
- "name": "LitElement",
4464
- "package": "lit"
4465
- },
4466
- "tagName": "color-palette",
4467
- "customElement": true
4488
+ ]
4468
4489
  }
4469
4490
  ],
4470
4491
  "exports": [
4471
4492
  {
4472
4493
  "kind": "js",
4473
- "name": "ColorPalette",
4494
+ "name": "DrawSvg",
4474
4495
  "declaration": {
4475
- "name": "ColorPalette",
4476
- "module": "src/components/color-palette/color-palette.ts"
4496
+ "name": "DrawSvg",
4497
+ "module": "src/components/draw-svg/draw-svg.ts"
4477
4498
  }
4478
4499
  },
4479
4500
  {
4480
4501
  "kind": "custom-element-definition",
4481
- "name": "color-palette",
4502
+ "name": "draw-svg",
4482
4503
  "declaration": {
4483
- "name": "ColorPalette",
4484
- "module": "src/components/color-palette/color-palette.ts"
4504
+ "name": "DrawSvg",
4505
+ "module": "src/components/draw-svg/draw-svg.ts"
4485
4506
  }
4486
4507
  }
4487
4508
  ]
@@ -5098,33 +5119,33 @@
5098
5119
  },
5099
5120
  {
5100
5121
  "kind": "javascript-module",
5101
- "path": "dist/components/color-palette/menu/color-palette-menu.js",
5122
+ "path": "dist/components/color-palette/item/color-palette-item-edit.js",
5102
5123
  "declarations": [
5103
5124
  {
5104
5125
  "kind": "variable",
5105
5126
  "name": "s",
5106
- "default": "class extends b { constructor() { super(...arguments), this.colors = [], this.editMode = !1, this.copyFormat = v.copyFormat, this.reorder = !1; } render() { return a` ${this.reorder ? this.reorderItems() : this.menuItems()} `; } /** Renders the menu items. */ menuItems() { const n = { colors: this.colors, settings: this.settings }; return a` <menu> <li> <button @click=${(t) => { t.stopPropagation(), this.reorder = !this.reorder; }} > ${r(g)} <span>Reorder</span> </button> </li> <li> <button @click=${() => { this.dispatchEvent(new Event(\"open-editor\")); }} > ${r(E)} <span>Edit Mode</span> </button> </li> ${// Only show toggle edit mode option when palette is not a gradient this.settings?.gradient ? $ : a` <li> <button @click=${() => { this.dispatchEvent(new CustomEvent(\"edit-mode\", { detail: !this.editMode })); }} > ${r(C)} <span>Quick Edit</span> ${this.editMode ? r(w) : $} </button> </li> `} <hr> <li> <button @click=${() => { const t = this.colors.map((e) => { const o = d(e).rgb(); return `rgb(${o[0]}, ${o[1]}, ${o[2]})`; }); this.dispatchEvent(new p({ colors: t })); }} > ${r(u)} <span>Convert to RGB</span> </button> </li> <li> <button @click=${() => { const t = this.colors.map((e) => { const o = d(e).hsl(); return `hsl(${o[0]} ${o[1]}% ${o[2]}%)`; }); this.dispatchEvent(new p({ colors: t })); }} > ${r(u)} <span>Convert to HSL</span> </button> </li> <li> <button @click=${() => { const t = this.colors.map((e) => d(e).hex(2)); this.dispatchEvent(new p({ colors: t })); }} > ${r(u)} <span>Convert to HEX</span> </button> </li> <hr> <li> <button @click=${async () => { await y(JSON.stringify(n), this.copyFormat), this.dispatchEvent(new p({ colors: [] })); }} > ${r(P)} <span>Cut</span> </button> </li> <li> <button @click=${async () => { await y(JSON.stringify(n), this.copyFormat); }} > ${r(O)} <span>Copy</span> </button> </li> </menu> `; } /** Renders the reorder items. */ reorderItems() { return a` <color-palette-reorder .colors=${this.colors} @palette-change=${(n) => { this.dispatchEvent(new p({ colors: n.detail.colors })), this.reorder = !1; }} > </color-palette-reorder> `; } }"
5127
+ "default": "class extends n { constructor() { super(...arguments), this.stabilizeWhileEditing = !1, this._storedAlias = \"\"; } /** Renders the content. */ content() { return p` <input value=${this.alias || this.color} @pointerdown=${(t) => { t.target instanceof HTMLInputElement && (t.stopPropagation(), this._storedAlias = t.target.value, t.target.value = \"\", t.target.focus()); }} @contextmenu=${(t) => { t.target instanceof HTMLInputElement && (t.stopPropagation(), t.preventDefault(), t.target.value = this.color.toUpperCase(), this.alias = \"\", t.target.blur()); }} @keypress=${(t) => { t.target instanceof HTMLInputElement && t.key === \"Enter\" && t.target.blur(); }} @focusout=${(t) => { t.target instanceof HTMLInputElement && (t.target.value.trim() === \"\" ? t.target.value = this._storedAlias : t.target.value !== this.color && (this.alias = t.target.value), this.dispatchEvent(new CustomEvent(\"alias\", { detail: this.alias }))); }} > <button id='trash' title='Remove' @click=${(t) => this.dispatchEvent(new Event(\"trash\", t))} > ${c(h)} </button> `; } }"
5107
5128
  }
5108
5129
  ],
5109
5130
  "exports": [
5110
5131
  {
5111
5132
  "kind": "js",
5112
- "name": "ColorPaletteMenu",
5133
+ "name": "ColorPaletteItemEdit",
5113
5134
  "declaration": {
5114
5135
  "name": "s",
5115
- "module": "dist/components/color-palette/menu/color-palette-menu.js"
5136
+ "module": "dist/components/color-palette/item/color-palette-item-edit.js"
5116
5137
  }
5117
5138
  }
5118
5139
  ]
5119
5140
  },
5120
5141
  {
5121
5142
  "kind": "javascript-module",
5122
- "path": "dist/components/color-palette/menu/color-palette-menu.styles.js",
5143
+ "path": "dist/components/color-palette/item/color-palette-item-edit.styles.js",
5123
5144
  "declarations": [
5124
5145
  {
5125
5146
  "kind": "variable",
5126
- "name": "t",
5127
- "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); } `"
5147
+ "name": "e",
5148
+ "default": "o` :host([stabilizeWhileEditing]:hover) { flex-basis: 0 !important; } :host(:not([stabilizeWhileEditing])) #container { display: none; } :host(:not([stabilizeWhileEditing]):hover) #container { display: flex; } #container { input { color: var(--palette-item-color); font-size: var(--palette-item-font-size); font-weight: bold; user-select: none; border: none; background-color: transparent; field-sizing: content; min-width: 2rem; max-width: 5rem; cursor: pointer; text-align: center; } /* Color Trash Button */ #trash { background-color: var(--palette-item-background-color); color: var(--palette-item-color); box-shadow: rgba(0, 0, 0, 0.35) 0px -50px 20px -28px inset; cursor: pointer; border: none; border-radius: 5px; padding: 4px 12px; &:hover { background-color: rgb(75, 75, 75); } svg { width: 18px; height: 18px; } } } `"
5128
5149
  }
5129
5150
  ],
5130
5151
  "exports": [
@@ -5132,41 +5153,41 @@
5132
5153
  "kind": "js",
5133
5154
  "name": "default",
5134
5155
  "declaration": {
5135
- "name": "t",
5136
- "module": "dist/components/color-palette/menu/color-palette-menu.styles.js"
5156
+ "name": "e",
5157
+ "module": "dist/components/color-palette/item/color-palette-item-edit.styles.js"
5137
5158
  }
5138
5159
  }
5139
5160
  ]
5140
5161
  },
5141
5162
  {
5142
5163
  "kind": "javascript-module",
5143
- "path": "dist/components/color-palette/menu/color-palette-reorder.js",
5164
+ "path": "dist/components/color-palette/item/color-palette-item.js",
5144
5165
  "declarations": [
5145
5166
  {
5146
5167
  "kind": "variable",
5147
- "name": "o",
5148
- "default": "class extends m { constructor() { super(...arguments), this.colors = []; } render() { return l` <menu> ${f( Object.keys(c), (r) => l` <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) => h(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.dispatchEvent(new v({ colors: a })); } }"
5168
+ "name": "t",
5169
+ "default": "class extends d { constructor() { super(...arguments), this.color = \"\", this.alias = \"\", this.aliasMode = c.aliasMode, this.direction = c.direction, this.editMode = !1, this.height = c.height, this.preventHover = !1, this.hideText = !1, this.colorCount = 0; } render() { return this.style.setProperty(\"--palette-item-background-color\", this.color), this.style.setProperty(\"--palette-item-color\", f(this.color)), this.style.setProperty(\"--palette-item-font-size\", `${g(this.colorCount)}px`), p` <div id='container' @click=${(i) => this.dispatchEvent(new Event(\"select\", i))} > ${this.content()} </div> `; } /** Renders the content */ content() { const i = this.aliasMode === u.Both || this.alias == null || this.alias.trim() === \"\"; return p` ${i ? p`<span id='text'>${this.color.trim().toUpperCase()}</span>` : y} ${this.alias !== \"\" ? p` <span id=\"alias\">${this.alias}</span> ` : y} `; } }"
5149
5170
  }
5150
5171
  ],
5151
5172
  "exports": [
5152
5173
  {
5153
5174
  "kind": "js",
5154
- "name": "ColorPaletteReorder",
5175
+ "name": "ColorPaletteItem",
5155
5176
  "declaration": {
5156
- "name": "o",
5157
- "module": "dist/components/color-palette/menu/color-palette-reorder.js"
5177
+ "name": "t",
5178
+ "module": "dist/components/color-palette/item/color-palette-item.js"
5158
5179
  }
5159
5180
  }
5160
5181
  ]
5161
5182
  },
5162
5183
  {
5163
5184
  "kind": "javascript-module",
5164
- "path": "dist/components/color-palette/menu/color-palette-reorder.styles.js",
5185
+ "path": "dist/components/color-palette/item/color-palette-item.styles.js",
5165
5186
  "declarations": [
5166
5187
  {
5167
5188
  "kind": "variable",
5168
- "name": "n",
5169
- "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; } } } `"
5189
+ "name": "o",
5190
+ "default": "e` :host { --palette-item-background-color: #000000; --palette-item-color: #ffffff; --palette-item-font-size: 16px; display: flex; flex: 1; transition: all 0.1s ease-in-out; background-color: var(--palette-item-background-color); color: var(--palette-item-color); } /* Animation Size */ :host(:not([preventHover]):hover) { flex-basis: var(--palette-column-flex-basis); } :host([direction='column']:not([preventHover]):hover) { flex-basis: 80px; } /* Hover States */ :host(:not([preventHover])) #container > span { display: none; } :host(:not([preventHover]):hover) #container > span { display: block; } :host([hideText]) #container > span { display: none; } :host([hideText]:hover) #container > span { display: none; } /* Container Directions */ :host([direction='column']) > #container { display: flex; flex-direction: column; justify-content: center; } :host([direction='row']) > #container { display: flex; justify-content: center; } :host([direction='row'][editMode]) > #container { display: grid; grid-template-columns: 1fr 1fr; } #container { flex: 1; gap: 3%; *:first-child { justify-self: flex-end; align-self: center; } *:last-child { justify-self: flex-start; align-self: center; } span { display: block; text-align: center; font-size: 100%; font-weight: bold; user-select: none; } } `"
5170
5191
  }
5171
5192
  ],
5172
5193
  "exports": [
@@ -5174,41 +5195,41 @@
5174
5195
  "kind": "js",
5175
5196
  "name": "default",
5176
5197
  "declaration": {
5177
- "name": "n",
5178
- "module": "dist/components/color-palette/menu/color-palette-reorder.styles.js"
5198
+ "name": "o",
5199
+ "module": "dist/components/color-palette/item/color-palette-item.styles.js"
5179
5200
  }
5180
5201
  }
5181
5202
  ]
5182
5203
  },
5183
5204
  {
5184
5205
  "kind": "javascript-module",
5185
- "path": "dist/components/color-palette/item/color-palette-item-edit.js",
5206
+ "path": "dist/components/color-palette/menu/color-palette-menu.js",
5186
5207
  "declarations": [
5187
5208
  {
5188
5209
  "kind": "variable",
5189
5210
  "name": "s",
5190
- "default": "class extends n { constructor() { super(...arguments), this.stabilizeWhileEditing = !1, this._storedAlias = \"\"; } /** Renders the content. */ content() { return p` <input value=${this.alias || this.color} @pointerdown=${(t) => { t.target instanceof HTMLInputElement && (t.stopPropagation(), this._storedAlias = t.target.value, t.target.value = \"\", t.target.focus()); }} @contextmenu=${(t) => { t.target instanceof HTMLInputElement && (t.stopPropagation(), t.preventDefault(), t.target.value = this.color.toUpperCase(), this.alias = \"\", t.target.blur()); }} @keypress=${(t) => { t.target instanceof HTMLInputElement && t.key === \"Enter\" && t.target.blur(); }} @focusout=${(t) => { t.target instanceof HTMLInputElement && (t.target.value.trim() === \"\" ? t.target.value = this._storedAlias : t.target.value !== this.color && (this.alias = t.target.value), this.dispatchEvent(new CustomEvent(\"alias\", { detail: this.alias }))); }} > <button id='trash' title='Remove' @click=${(t) => this.dispatchEvent(new Event(\"trash\", t))} > ${c(h)} </button> `; } }"
5211
+ "default": "class extends b { constructor() { super(...arguments), this.colors = [], this.editMode = !1, this.copyFormat = v.copyFormat, this.reorder = !1; } render() { return a` ${this.reorder ? this.reorderItems() : this.menuItems()} `; } /** Renders the menu items. */ menuItems() { const n = { colors: this.colors, settings: this.settings }; return a` <menu> <li> <button @click=${(t) => { t.stopPropagation(), this.reorder = !this.reorder; }} > ${r(g)} <span>Reorder</span> </button> </li> <li> <button @click=${() => { this.dispatchEvent(new Event(\"open-editor\")); }} > ${r(E)} <span>Edit Mode</span> </button> </li> ${// Only show toggle edit mode option when palette is not a gradient this.settings?.gradient ? $ : a` <li> <button @click=${() => { this.dispatchEvent(new CustomEvent(\"edit-mode\", { detail: !this.editMode })); }} > ${r(C)} <span>Quick Edit</span> ${this.editMode ? r(w) : $} </button> </li> `} <hr> <li> <button @click=${() => { const t = this.colors.map((e) => { const o = d(e).rgb(); return `rgb(${o[0]}, ${o[1]}, ${o[2]})`; }); this.dispatchEvent(new p({ colors: t })); }} > ${r(u)} <span>Convert to RGB</span> </button> </li> <li> <button @click=${() => { const t = this.colors.map((e) => { const o = d(e).hsl(); return `hsl(${o[0]} ${o[1]}% ${o[2]}%)`; }); this.dispatchEvent(new p({ colors: t })); }} > ${r(u)} <span>Convert to HSL</span> </button> </li> <li> <button @click=${() => { const t = this.colors.map((e) => d(e).hex(2)); this.dispatchEvent(new p({ colors: t })); }} > ${r(u)} <span>Convert to HEX</span> </button> </li> <hr> <li> <button @click=${async () => { await y(JSON.stringify(n), this.copyFormat), this.dispatchEvent(new p({ colors: [] })); }} > ${r(P)} <span>Cut</span> </button> </li> <li> <button @click=${async () => { await y(JSON.stringify(n), this.copyFormat); }} > ${r(O)} <span>Copy</span> </button> </li> </menu> `; } /** Renders the reorder items. */ reorderItems() { return a` <color-palette-reorder .colors=${this.colors} @palette-change=${(n) => { this.dispatchEvent(new p({ colors: n.detail.colors })), this.reorder = !1; }} > </color-palette-reorder> `; } }"
5191
5212
  }
5192
5213
  ],
5193
5214
  "exports": [
5194
5215
  {
5195
5216
  "kind": "js",
5196
- "name": "ColorPaletteItemEdit",
5217
+ "name": "ColorPaletteMenu",
5197
5218
  "declaration": {
5198
5219
  "name": "s",
5199
- "module": "dist/components/color-palette/item/color-palette-item-edit.js"
5220
+ "module": "dist/components/color-palette/menu/color-palette-menu.js"
5200
5221
  }
5201
5222
  }
5202
5223
  ]
5203
5224
  },
5204
5225
  {
5205
5226
  "kind": "javascript-module",
5206
- "path": "dist/components/color-palette/item/color-palette-item-edit.styles.js",
5227
+ "path": "dist/components/color-palette/menu/color-palette-menu.styles.js",
5207
5228
  "declarations": [
5208
5229
  {
5209
5230
  "kind": "variable",
5210
- "name": "e",
5211
- "default": "o` :host([stabilizeWhileEditing]:hover) { flex-basis: 0 !important; } :host(:not([stabilizeWhileEditing])) #container { display: none; } :host(:not([stabilizeWhileEditing]):hover) #container { display: flex; } #container { input { color: var(--palette-item-color); font-size: var(--palette-item-font-size); font-weight: bold; user-select: none; border: none; background-color: transparent; field-sizing: content; min-width: 2rem; max-width: 5rem; cursor: pointer; text-align: center; } /* Color Trash Button */ #trash { background-color: var(--palette-item-background-color); color: var(--palette-item-color); box-shadow: rgba(0, 0, 0, 0.35) 0px -50px 20px -28px inset; cursor: pointer; border: none; border-radius: 5px; padding: 4px 12px; &:hover { background-color: rgb(75, 75, 75); } svg { width: 18px; height: 18px; } } } `"
5231
+ "name": "t",
5232
+ "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); } `"
5212
5233
  }
5213
5234
  ],
5214
5235
  "exports": [
@@ -5216,41 +5237,41 @@
5216
5237
  "kind": "js",
5217
5238
  "name": "default",
5218
5239
  "declaration": {
5219
- "name": "e",
5220
- "module": "dist/components/color-palette/item/color-palette-item-edit.styles.js"
5240
+ "name": "t",
5241
+ "module": "dist/components/color-palette/menu/color-palette-menu.styles.js"
5221
5242
  }
5222
5243
  }
5223
5244
  ]
5224
5245
  },
5225
5246
  {
5226
5247
  "kind": "javascript-module",
5227
- "path": "dist/components/color-palette/item/color-palette-item.js",
5248
+ "path": "dist/components/color-palette/menu/color-palette-reorder.js",
5228
5249
  "declarations": [
5229
5250
  {
5230
5251
  "kind": "variable",
5231
- "name": "t",
5232
- "default": "class extends d { constructor() { super(...arguments), this.color = \"\", this.alias = \"\", this.aliasMode = c.aliasMode, this.direction = c.direction, this.editMode = !1, this.height = c.height, this.preventHover = !1, this.hideText = !1, this.colorCount = 0; } render() { return this.style.setProperty(\"--palette-item-background-color\", this.color), this.style.setProperty(\"--palette-item-color\", f(this.color)), this.style.setProperty(\"--palette-item-font-size\", `${g(this.colorCount)}px`), p` <div id='container' @click=${(i) => this.dispatchEvent(new Event(\"select\", i))} > ${this.content()} </div> `; } /** Renders the content */ content() { const i = this.aliasMode === u.Both || this.alias == null || this.alias.trim() === \"\"; return p` ${i ? p`<span id='text'>${this.color.trim().toUpperCase()}</span>` : y} ${this.alias !== \"\" ? p` <span id=\"alias\">${this.alias}</span> ` : y} `; } }"
5252
+ "name": "o",
5253
+ "default": "class extends m { constructor() { super(...arguments), this.colors = []; } render() { return l` <menu> ${f( Object.keys(c), (r) => l` <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) => h(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.dispatchEvent(new v({ colors: a })); } }"
5233
5254
  }
5234
5255
  ],
5235
5256
  "exports": [
5236
5257
  {
5237
5258
  "kind": "js",
5238
- "name": "ColorPaletteItem",
5259
+ "name": "ColorPaletteReorder",
5239
5260
  "declaration": {
5240
- "name": "t",
5241
- "module": "dist/components/color-palette/item/color-palette-item.js"
5261
+ "name": "o",
5262
+ "module": "dist/components/color-palette/menu/color-palette-reorder.js"
5242
5263
  }
5243
5264
  }
5244
5265
  ]
5245
5266
  },
5246
5267
  {
5247
5268
  "kind": "javascript-module",
5248
- "path": "dist/components/color-palette/item/color-palette-item.styles.js",
5269
+ "path": "dist/components/color-palette/menu/color-palette-reorder.styles.js",
5249
5270
  "declarations": [
5250
5271
  {
5251
5272
  "kind": "variable",
5252
- "name": "o",
5253
- "default": "e` :host { --palette-item-background-color: #000000; --palette-item-color: #ffffff; --palette-item-font-size: 16px; display: flex; flex: 1; transition: all 0.1s ease-in-out; background-color: var(--palette-item-background-color); color: var(--palette-item-color); } /* Animation Size */ :host(:not([preventHover]):hover) { flex-basis: var(--palette-column-flex-basis); } :host([direction='column']:not([preventHover]):hover) { flex-basis: 80px; } /* Hover States */ :host(:not([preventHover])) #container > span { display: none; } :host(:not([preventHover]):hover) #container > span { display: block; } :host([hideText]) #container > span { display: none; } :host([hideText]:hover) #container > span { display: none; } /* Container Directions */ :host([direction='column']) > #container { display: flex; flex-direction: column; justify-content: center; } :host([direction='row']) > #container { display: flex; justify-content: center; } :host([direction='row'][editMode]) > #container { display: grid; grid-template-columns: 1fr 1fr; } #container { flex: 1; gap: 3%; *:first-child { justify-self: flex-end; align-self: center; } *:last-child { justify-self: flex-start; align-self: center; } span { display: block; text-align: center; font-size: 100%; font-weight: bold; user-select: none; } } `"
5273
+ "name": "n",
5274
+ "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; } } } `"
5254
5275
  }
5255
5276
  ],
5256
5277
  "exports": [
@@ -5258,8 +5279,8 @@
5258
5279
  "kind": "js",
5259
5280
  "name": "default",
5260
5281
  "declaration": {
5261
- "name": "o",
5262
- "module": "dist/components/color-palette/item/color-palette-item.styles.js"
5282
+ "name": "n",
5283
+ "module": "dist/components/color-palette/menu/color-palette-reorder.styles.js"
5263
5284
  }
5264
5285
  }
5265
5286
  ]
@@ -7252,275 +7273,416 @@
7252
7273
  }
7253
7274
  },
7254
7275
  {
7255
- "description": "Emits a change in palette colors.",
7276
+ "description": "Emits a change in palette colors.",
7277
+ "name": "palette-change"
7278
+ }
7279
+ ],
7280
+ "attributes": [
7281
+ {
7282
+ "name": "colors",
7283
+ "type": {
7284
+ "text": "string[]"
7285
+ },
7286
+ "default": "[]",
7287
+ "description": "The colors that can be reordered.",
7288
+ "fieldName": "colors"
7289
+ }
7290
+ ],
7291
+ "superclass": {
7292
+ "name": "LitElement",
7293
+ "package": "lit"
7294
+ },
7295
+ "tagName": "color-palette-reorder",
7296
+ "customElement": true
7297
+ }
7298
+ ],
7299
+ "exports": [
7300
+ {
7301
+ "kind": "js",
7302
+ "name": "ColorPaletteReorder",
7303
+ "declaration": {
7304
+ "name": "ColorPaletteReorder",
7305
+ "module": "src/components/color-palette/menu/color-palette-reorder.ts"
7306
+ }
7307
+ },
7308
+ {
7309
+ "kind": "custom-element-definition",
7310
+ "name": "color-palette-reorder",
7311
+ "declaration": {
7312
+ "name": "ColorPaletteReorder",
7313
+ "module": "src/components/color-palette/menu/color-palette-reorder.ts"
7314
+ }
7315
+ }
7316
+ ]
7317
+ },
7318
+ {
7319
+ "kind": "javascript-module",
7320
+ "path": "src/components/color-palette/editor/options/picker-generate.ts",
7321
+ "declarations": [
7322
+ {
7323
+ "kind": "class",
7324
+ "description": "Generates new colors upon user request for color-palette-editor.",
7325
+ "name": "PickerGenerate",
7326
+ "members": [
7327
+ {
7328
+ "kind": "field",
7329
+ "name": "settings",
7330
+ "type": {
7331
+ "text": "PaletteSettings"
7332
+ },
7333
+ "privacy": "public",
7334
+ "default": "{ height: defaultSettings.height, width: defaultSettings.width, direction: defaultSettings.direction, gradient: defaultSettings.gradient, preventHover: defaultSettings.preventHover, hideText: defaultSettings.hideText, override: defaultSettings.override, aliases: [] }",
7335
+ "description": "The palette settings to be edited.",
7336
+ "attribute": "settings"
7337
+ },
7338
+ {
7339
+ "kind": "field",
7340
+ "name": "combination",
7341
+ "type": {
7342
+ "text": "Combination"
7343
+ },
7344
+ "privacy": "public",
7345
+ "description": "The color theory combination used when generating colors.",
7346
+ "attribute": "combination"
7347
+ },
7348
+ {
7349
+ "kind": "field",
7350
+ "name": "baseColor",
7351
+ "type": {
7352
+ "text": "ReturnType<typeof colorsea> | undefined"
7353
+ },
7354
+ "privacy": "public",
7355
+ "description": "The base color used when generating colors.",
7356
+ "attribute": "baseColor"
7357
+ }
7358
+ ],
7359
+ "events": [
7360
+ {
7361
+ "type": {
7362
+ "text": "PaletteChangeEvent"
7363
+ }
7364
+ },
7365
+ {
7366
+ "description": "Emitted when new colors have been generated.",
7256
7367
  "name": "palette-change"
7257
7368
  }
7258
7369
  ],
7259
7370
  "attributes": [
7260
7371
  {
7261
- "name": "colors",
7372
+ "name": "settings",
7262
7373
  "type": {
7263
- "text": "string[]"
7374
+ "text": "PaletteSettings"
7264
7375
  },
7265
- "default": "[]",
7266
- "description": "The colors that can be reordered.",
7267
- "fieldName": "colors"
7376
+ "default": "{ height: defaultSettings.height, width: defaultSettings.width, direction: defaultSettings.direction, gradient: defaultSettings.gradient, preventHover: defaultSettings.preventHover, hideText: defaultSettings.hideText, override: defaultSettings.override, aliases: [] }",
7377
+ "description": "The palette settings to be edited.",
7378
+ "fieldName": "settings"
7379
+ },
7380
+ {
7381
+ "name": "combination",
7382
+ "type": {
7383
+ "text": "Combination"
7384
+ },
7385
+ "description": "The color theory combination used when generating colors.",
7386
+ "fieldName": "combination"
7387
+ },
7388
+ {
7389
+ "name": "baseColor",
7390
+ "type": {
7391
+ "text": "ReturnType<typeof colorsea> | undefined"
7392
+ },
7393
+ "description": "The base color used when generating colors.",
7394
+ "fieldName": "baseColor"
7268
7395
  }
7269
7396
  ],
7270
7397
  "superclass": {
7271
7398
  "name": "LitElement",
7272
7399
  "package": "lit"
7273
7400
  },
7274
- "tagName": "color-palette-reorder",
7401
+ "tagName": "picker-generate",
7275
7402
  "customElement": true
7276
7403
  }
7277
7404
  ],
7278
7405
  "exports": [
7279
7406
  {
7280
7407
  "kind": "js",
7281
- "name": "ColorPaletteReorder",
7408
+ "name": "PickerGenerate",
7282
7409
  "declaration": {
7283
- "name": "ColorPaletteReorder",
7284
- "module": "src/components/color-palette/menu/color-palette-reorder.ts"
7410
+ "name": "PickerGenerate",
7411
+ "module": "src/components/color-palette/editor/options/picker-generate.ts"
7285
7412
  }
7286
7413
  },
7287
7414
  {
7288
7415
  "kind": "custom-element-definition",
7289
- "name": "color-palette-reorder",
7290
- "declaration": {
7291
- "name": "ColorPaletteReorder",
7292
- "module": "src/components/color-palette/menu/color-palette-reorder.ts"
7293
- }
7294
- }
7295
- ]
7296
- },
7297
- {
7298
- "kind": "javascript-module",
7299
- "path": "dist/node_modules/style-observer/src/util/adopt-css.js",
7300
- "declarations": [
7301
- {
7302
- "kind": "function",
7303
- "name": "n",
7304
- "parameters": [
7305
- {
7306
- "name": "l"
7307
- },
7308
- {
7309
- "name": "e",
7310
- "default": "globalThis.document"
7311
- }
7312
- ]
7313
- }
7314
- ],
7315
- "exports": [
7316
- {
7317
- "kind": "js",
7318
- "name": "default",
7416
+ "name": "picker-generate",
7319
7417
  "declaration": {
7320
- "name": "n",
7321
- "module": "dist/node_modules/style-observer/src/util/adopt-css.js"
7418
+ "name": "PickerGenerate",
7419
+ "module": "src/components/color-palette/editor/options/picker-generate.ts"
7322
7420
  }
7323
7421
  }
7324
7422
  ]
7325
7423
  },
7326
7424
  {
7327
7425
  "kind": "javascript-module",
7328
- "path": "dist/node_modules/style-observer/src/util/Bug.js",
7426
+ "path": "src/components/color-palette/editor/options/picker-image.ts",
7329
7427
  "declarations": [
7330
7428
  {
7331
7429
  "kind": "class",
7332
- "description": "",
7333
- "name": "t",
7430
+ "description": "Lets users choose an image to take colors from for color-palette-editor.",
7431
+ "name": "PickerImage",
7334
7432
  "members": [
7335
7433
  {
7336
7434
  "kind": "field",
7337
- "name": "#t",
7435
+ "name": "_canvas",
7436
+ "type": {
7437
+ "text": "CanvasImage"
7438
+ },
7338
7439
  "privacy": "private"
7339
7440
  },
7340
7441
  {
7341
7442
  "kind": "field",
7342
- "name": "#e",
7443
+ "name": "_tooltip",
7444
+ "type": {
7445
+ "text": "ToolTip"
7446
+ },
7343
7447
  "privacy": "private"
7344
7448
  },
7345
7449
  {
7346
7450
  "kind": "field",
7347
- "name": "valuePending",
7348
- "description": "Get whether the bug is present or not, or a promise that will resolve to this value when detection is complete.",
7349
- "readonly": true
7451
+ "name": "_urlInput",
7452
+ "type": {
7453
+ "text": "HTMLInputElement"
7454
+ },
7455
+ "privacy": "private"
7350
7456
  },
7351
7457
  {
7352
7458
  "kind": "field",
7353
- "name": "value",
7354
- "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",
7355
- "readonly": true
7459
+ "name": "_fileInput",
7460
+ "type": {
7461
+ "text": "HTMLInputElement"
7462
+ },
7463
+ "privacy": "private"
7356
7464
  },
7357
7465
  {
7358
7466
  "kind": "field",
7359
- "name": "all",
7467
+ "name": "width",
7360
7468
  "type": {
7361
- "text": "object"
7469
+ "text": "number"
7362
7470
  },
7363
- "static": true,
7364
- "default": "{}"
7471
+ "privacy": "public",
7472
+ "default": "0",
7473
+ "description": "The width of the canvas.",
7474
+ "attribute": "width"
7365
7475
  },
7366
7476
  {
7367
- "kind": "method",
7368
- "name": "detectAll",
7369
- "static": true
7477
+ "kind": "field",
7478
+ "name": "height",
7479
+ "type": {
7480
+ "text": "number"
7481
+ },
7482
+ "privacy": "public",
7483
+ "default": "0",
7484
+ "description": "The height of the canvas.",
7485
+ "attribute": "height"
7370
7486
  },
7371
7487
  {
7372
7488
  "kind": "field",
7373
- "name": "name",
7374
- "default": "e"
7489
+ "name": "_fileURL",
7490
+ "type": {
7491
+ "text": "string"
7492
+ },
7493
+ "privacy": "private",
7494
+ "default": "''",
7495
+ "description": "The user input file URL (if there is one)."
7375
7496
  },
7376
7497
  {
7377
7498
  "kind": "field",
7378
- "name": "initialValue"
7499
+ "name": "_count",
7500
+ "type": {
7501
+ "text": "number"
7502
+ },
7503
+ "privacy": "private",
7504
+ "default": "8",
7505
+ "description": "The number of colors the retrieve from the image."
7379
7506
  },
7380
7507
  {
7381
- "kind": "field",
7382
- "name": "detect",
7383
- "default": "s"
7508
+ "kind": "method",
7509
+ "name": "_onFileChange",
7510
+ "privacy": "private",
7511
+ "parameters": [
7512
+ {
7513
+ "name": "e",
7514
+ "type": {
7515
+ "text": "Event"
7516
+ }
7517
+ }
7518
+ ]
7384
7519
  },
7385
7520
  {
7386
- "kind": "field",
7387
- "default": "this"
7521
+ "kind": "method",
7522
+ "name": "_updatePalette",
7523
+ "privacy": "private"
7388
7524
  }
7389
- ]
7525
+ ],
7526
+ "events": [
7527
+ {
7528
+ "name": "select",
7529
+ "type": {
7530
+ "text": "CustomEvent"
7531
+ },
7532
+ "description": "Emitted when a color on the canvas has been selected."
7533
+ },
7534
+ {
7535
+ "type": {
7536
+ "text": "PaletteChangeEvent"
7537
+ }
7538
+ },
7539
+ {
7540
+ "description": "Emitted when new colors have been chosen.",
7541
+ "name": "palette-change"
7542
+ }
7543
+ ],
7544
+ "attributes": [
7545
+ {
7546
+ "name": "width",
7547
+ "type": {
7548
+ "text": "number"
7549
+ },
7550
+ "default": "0",
7551
+ "description": "The width of the canvas.",
7552
+ "fieldName": "width"
7553
+ },
7554
+ {
7555
+ "name": "height",
7556
+ "type": {
7557
+ "text": "number"
7558
+ },
7559
+ "default": "0",
7560
+ "description": "The height of the canvas.",
7561
+ "fieldName": "height"
7562
+ }
7563
+ ],
7564
+ "superclass": {
7565
+ "name": "LitElement",
7566
+ "package": "lit"
7567
+ },
7568
+ "tagName": "picker-image",
7569
+ "customElement": true
7390
7570
  }
7391
7571
  ],
7392
7572
  "exports": [
7393
7573
  {
7394
7574
  "kind": "js",
7395
- "name": "default",
7575
+ "name": "PickerImage",
7396
7576
  "declaration": {
7397
- "name": "t",
7398
- "module": "dist/node_modules/style-observer/src/util/Bug.js"
7577
+ "name": "PickerImage",
7578
+ "module": "src/components/color-palette/editor/options/picker-image.ts"
7579
+ }
7580
+ },
7581
+ {
7582
+ "kind": "custom-element-definition",
7583
+ "name": "picker-image",
7584
+ "declaration": {
7585
+ "name": "PickerImage",
7586
+ "module": "src/components/color-palette/editor/options/picker-image.ts"
7399
7587
  }
7400
7588
  }
7401
7589
  ]
7402
7590
  },
7403
7591
  {
7404
7592
  "kind": "javascript-module",
7405
- "path": "dist/node_modules/style-observer/src/util/gentle-register-property.js",
7593
+ "path": "src/components/color-palette/editor/options/picker-manual.ts",
7406
7594
  "declarations": [
7407
7595
  {
7408
- "kind": "function",
7409
- "name": "f",
7410
- "parameters": [
7411
- {
7412
- "name": "t"
7413
- },
7414
- {
7415
- "name": "n",
7416
- "default": "{}"
7417
- },
7596
+ "kind": "class",
7597
+ "description": "Allows users to manually choose colors for color-palette-editor.",
7598
+ "name": "PickerManual",
7599
+ "members": [],
7600
+ "events": [
7418
7601
  {
7419
- "name": "r",
7420
- "default": "globalThis.document"
7602
+ "name": "change",
7603
+ "type": {
7604
+ "text": "string"
7605
+ },
7606
+ "description": "Emitted when a new color has been selected."
7421
7607
  }
7422
- ]
7608
+ ],
7609
+ "superclass": {
7610
+ "name": "LitElement",
7611
+ "package": "lit"
7612
+ },
7613
+ "tagName": "picker-manual",
7614
+ "customElement": true
7423
7615
  }
7424
7616
  ],
7425
7617
  "exports": [
7426
7618
  {
7427
7619
  "kind": "js",
7428
- "name": "default",
7620
+ "name": "PickerManual",
7429
7621
  "declaration": {
7430
- "name": "f",
7431
- "module": "dist/node_modules/style-observer/src/util/gentle-register-property.js"
7622
+ "name": "PickerManual",
7623
+ "module": "src/components/color-palette/editor/options/picker-manual.ts"
7432
7624
  }
7433
- }
7434
- ]
7435
- },
7436
- {
7437
- "kind": "javascript-module",
7438
- "path": "dist/node_modules/style-observer/src/util/is-registered-property.js",
7439
- "declarations": [
7440
- {
7441
- "kind": "function",
7442
- "name": "n",
7443
- "parameters": [
7444
- {
7445
- "name": "t"
7446
- },
7447
- {
7448
- "name": "l",
7449
- "default": "globalThis.document"
7450
- }
7451
- ]
7452
- }
7453
- ],
7454
- "exports": [
7625
+ },
7455
7626
  {
7456
- "kind": "js",
7457
- "name": "default",
7627
+ "kind": "custom-element-definition",
7628
+ "name": "picker-manual",
7458
7629
  "declaration": {
7459
- "name": "n",
7460
- "module": "dist/node_modules/style-observer/src/util/is-registered-property.js"
7630
+ "name": "PickerManual",
7631
+ "module": "src/components/color-palette/editor/options/picker-manual.ts"
7461
7632
  }
7462
7633
  }
7463
7634
  ]
7464
7635
  },
7465
7636
  {
7466
7637
  "kind": "javascript-module",
7467
- "path": "dist/node_modules/style-observer/src/util/MultiWeakMap.js",
7638
+ "path": "src/components/color-palette/editor/options/picker-url.ts",
7468
7639
  "declarations": [
7469
7640
  {
7470
7641
  "kind": "class",
7471
- "description": "",
7472
- "name": "r",
7642
+ "description": "Selects colors from a user provided URL for color-palette-editor.",
7643
+ "name": "PickerUrl",
7473
7644
  "members": [
7474
7645
  {
7475
- "kind": "method",
7476
- "name": "has",
7477
- "parameters": [
7478
- {
7479
- "name": "e"
7480
- },
7481
- {
7482
- "name": "s"
7483
- }
7484
- ]
7485
- },
7486
- {
7487
- "kind": "method",
7488
- "name": "add",
7489
- "parameters": [
7490
- {
7491
- "name": "e"
7492
- },
7493
- {
7494
- "name": "s"
7495
- }
7496
- ]
7497
- },
7646
+ "kind": "field",
7647
+ "name": "_input",
7648
+ "type": {
7649
+ "text": "HTMLInputElement"
7650
+ },
7651
+ "privacy": "private"
7652
+ }
7653
+ ],
7654
+ "events": [
7498
7655
  {
7499
- "kind": "method",
7500
- "name": "delete",
7501
- "parameters": [
7502
- {
7503
- "name": "e"
7504
- },
7505
- {
7506
- "name": "s"
7507
- }
7508
- ]
7656
+ "name": "change",
7657
+ "type": {
7658
+ "text": "string[]"
7659
+ },
7660
+ "description": "Emits the colors gathered from the URL."
7509
7661
  }
7510
7662
  ],
7511
7663
  "superclass": {
7512
- "name": "WeakMap",
7513
- "module": "dist/node_modules/style-observer/src/util/MultiWeakMap.js"
7514
- }
7664
+ "name": "LitElement",
7665
+ "package": "lit"
7666
+ },
7667
+ "tagName": "picker-url",
7668
+ "customElement": true
7515
7669
  }
7516
7670
  ],
7517
7671
  "exports": [
7518
7672
  {
7519
7673
  "kind": "js",
7520
- "name": "default",
7674
+ "name": "PickerUrl",
7521
7675
  "declaration": {
7522
- "name": "r",
7523
- "module": "dist/node_modules/style-observer/src/util/MultiWeakMap.js"
7676
+ "name": "PickerUrl",
7677
+ "module": "src/components/color-palette/editor/options/picker-url.ts"
7678
+ }
7679
+ },
7680
+ {
7681
+ "kind": "custom-element-definition",
7682
+ "name": "picker-url",
7683
+ "declaration": {
7684
+ "name": "PickerUrl",
7685
+ "module": "src/components/color-palette/editor/options/picker-url.ts"
7524
7686
  }
7525
7687
  }
7526
7688
  ]
@@ -7611,372 +7773,231 @@
7611
7773
  },
7612
7774
  {
7613
7775
  "kind": "javascript-module",
7614
- "path": "src/components/color-palette/editor/options/picker-generate.ts",
7776
+ "path": "dist/node_modules/style-observer/src/util/adopt-css.js",
7615
7777
  "declarations": [
7616
7778
  {
7617
- "kind": "class",
7618
- "description": "Generates new colors upon user request for color-palette-editor.",
7619
- "name": "PickerGenerate",
7620
- "members": [
7621
- {
7622
- "kind": "field",
7623
- "name": "settings",
7624
- "type": {
7625
- "text": "PaletteSettings"
7626
- },
7627
- "privacy": "public",
7628
- "default": "{ height: defaultSettings.height, width: defaultSettings.width, direction: defaultSettings.direction, gradient: defaultSettings.gradient, preventHover: defaultSettings.preventHover, hideText: defaultSettings.hideText, override: defaultSettings.override, aliases: [] }",
7629
- "description": "The palette settings to be edited.",
7630
- "attribute": "settings"
7631
- },
7632
- {
7633
- "kind": "field",
7634
- "name": "combination",
7635
- "type": {
7636
- "text": "Combination"
7637
- },
7638
- "privacy": "public",
7639
- "description": "The color theory combination used when generating colors.",
7640
- "attribute": "combination"
7641
- },
7642
- {
7643
- "kind": "field",
7644
- "name": "baseColor",
7645
- "type": {
7646
- "text": "ReturnType<typeof colorsea> | undefined"
7647
- },
7648
- "privacy": "public",
7649
- "description": "The base color used when generating colors.",
7650
- "attribute": "baseColor"
7651
- }
7652
- ],
7653
- "events": [
7654
- {
7655
- "type": {
7656
- "text": "PaletteChangeEvent"
7657
- }
7658
- },
7659
- {
7660
- "description": "Emitted when new colors have been generated.",
7661
- "name": "palette-change"
7662
- }
7663
- ],
7664
- "attributes": [
7665
- {
7666
- "name": "settings",
7667
- "type": {
7668
- "text": "PaletteSettings"
7669
- },
7670
- "default": "{ height: defaultSettings.height, width: defaultSettings.width, direction: defaultSettings.direction, gradient: defaultSettings.gradient, preventHover: defaultSettings.preventHover, hideText: defaultSettings.hideText, override: defaultSettings.override, aliases: [] }",
7671
- "description": "The palette settings to be edited.",
7672
- "fieldName": "settings"
7673
- },
7779
+ "kind": "function",
7780
+ "name": "n",
7781
+ "parameters": [
7674
7782
  {
7675
- "name": "combination",
7676
- "type": {
7677
- "text": "Combination"
7678
- },
7679
- "description": "The color theory combination used when generating colors.",
7680
- "fieldName": "combination"
7783
+ "name": "l"
7681
7784
  },
7682
7785
  {
7683
- "name": "baseColor",
7684
- "type": {
7685
- "text": "ReturnType<typeof colorsea> | undefined"
7686
- },
7687
- "description": "The base color used when generating colors.",
7688
- "fieldName": "baseColor"
7786
+ "name": "e",
7787
+ "default": "globalThis.document"
7689
7788
  }
7690
- ],
7691
- "superclass": {
7692
- "name": "LitElement",
7693
- "package": "lit"
7694
- },
7695
- "tagName": "picker-generate",
7696
- "customElement": true
7789
+ ]
7697
7790
  }
7698
7791
  ],
7699
7792
  "exports": [
7700
7793
  {
7701
7794
  "kind": "js",
7702
- "name": "PickerGenerate",
7703
- "declaration": {
7704
- "name": "PickerGenerate",
7705
- "module": "src/components/color-palette/editor/options/picker-generate.ts"
7706
- }
7707
- },
7708
- {
7709
- "kind": "custom-element-definition",
7710
- "name": "picker-generate",
7795
+ "name": "default",
7711
7796
  "declaration": {
7712
- "name": "PickerGenerate",
7713
- "module": "src/components/color-palette/editor/options/picker-generate.ts"
7797
+ "name": "n",
7798
+ "module": "dist/node_modules/style-observer/src/util/adopt-css.js"
7714
7799
  }
7715
7800
  }
7716
7801
  ]
7717
7802
  },
7718
7803
  {
7719
7804
  "kind": "javascript-module",
7720
- "path": "src/components/color-palette/editor/options/picker-image.ts",
7805
+ "path": "dist/node_modules/style-observer/src/util/Bug.js",
7721
7806
  "declarations": [
7722
7807
  {
7723
7808
  "kind": "class",
7724
- "description": "Lets users choose an image to take colors from for color-palette-editor.",
7725
- "name": "PickerImage",
7809
+ "description": "",
7810
+ "name": "t",
7726
7811
  "members": [
7727
7812
  {
7728
7813
  "kind": "field",
7729
- "name": "_canvas",
7730
- "type": {
7731
- "text": "CanvasImage"
7732
- },
7733
- "privacy": "private"
7734
- },
7735
- {
7736
- "kind": "field",
7737
- "name": "_tooltip",
7738
- "type": {
7739
- "text": "ToolTip"
7740
- },
7741
- "privacy": "private"
7742
- },
7743
- {
7744
- "kind": "field",
7745
- "name": "_urlInput",
7746
- "type": {
7747
- "text": "HTMLInputElement"
7748
- },
7749
- "privacy": "private"
7750
- },
7751
- {
7752
- "kind": "field",
7753
- "name": "_fileInput",
7754
- "type": {
7755
- "text": "HTMLInputElement"
7756
- },
7814
+ "name": "#t",
7757
7815
  "privacy": "private"
7758
7816
  },
7759
7817
  {
7760
- "kind": "field",
7761
- "name": "width",
7762
- "type": {
7763
- "text": "number"
7764
- },
7765
- "privacy": "public",
7766
- "default": "0",
7767
- "description": "The width of the canvas.",
7768
- "attribute": "width"
7818
+ "kind": "field",
7819
+ "name": "#e",
7820
+ "privacy": "private"
7769
7821
  },
7770
7822
  {
7771
7823
  "kind": "field",
7772
- "name": "height",
7773
- "type": {
7774
- "text": "number"
7775
- },
7776
- "privacy": "public",
7777
- "default": "0",
7778
- "description": "The height of the canvas.",
7779
- "attribute": "height"
7824
+ "name": "valuePending",
7825
+ "description": "Get whether the bug is present or not, or a promise that will resolve to this value when detection is complete.",
7826
+ "readonly": true
7780
7827
  },
7781
7828
  {
7782
7829
  "kind": "field",
7783
- "name": "_fileURL",
7784
- "type": {
7785
- "text": "string"
7786
- },
7787
- "privacy": "private",
7788
- "default": "''",
7789
- "description": "The user input file URL (if there is one)."
7830
+ "name": "value",
7831
+ "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",
7832
+ "readonly": true
7790
7833
  },
7791
7834
  {
7792
7835
  "kind": "field",
7793
- "name": "_count",
7836
+ "name": "all",
7794
7837
  "type": {
7795
- "text": "number"
7838
+ "text": "object"
7796
7839
  },
7797
- "privacy": "private",
7798
- "default": "8",
7799
- "description": "The number of colors the retrieve from the image."
7840
+ "static": true,
7841
+ "default": "{}"
7800
7842
  },
7801
7843
  {
7802
7844
  "kind": "method",
7803
- "name": "_onFileChange",
7804
- "privacy": "private",
7805
- "parameters": [
7806
- {
7807
- "name": "e",
7808
- "type": {
7809
- "text": "Event"
7810
- }
7811
- }
7812
- ]
7845
+ "name": "detectAll",
7846
+ "static": true
7813
7847
  },
7814
7848
  {
7815
- "kind": "method",
7816
- "name": "_updatePalette",
7817
- "privacy": "private"
7818
- }
7819
- ],
7820
- "events": [
7821
- {
7822
- "name": "select",
7823
- "type": {
7824
- "text": "CustomEvent"
7825
- },
7826
- "description": "Emitted when a color on the canvas has been selected."
7849
+ "kind": "field",
7850
+ "name": "name",
7851
+ "default": "e"
7827
7852
  },
7828
7853
  {
7829
- "type": {
7830
- "text": "PaletteChangeEvent"
7831
- }
7854
+ "kind": "field",
7855
+ "name": "initialValue"
7832
7856
  },
7833
7857
  {
7834
- "description": "Emitted when new colors have been chosen.",
7835
- "name": "palette-change"
7836
- }
7837
- ],
7838
- "attributes": [
7839
- {
7840
- "name": "width",
7841
- "type": {
7842
- "text": "number"
7843
- },
7844
- "default": "0",
7845
- "description": "The width of the canvas.",
7846
- "fieldName": "width"
7858
+ "kind": "field",
7859
+ "name": "detect",
7860
+ "default": "s"
7847
7861
  },
7848
7862
  {
7849
- "name": "height",
7850
- "type": {
7851
- "text": "number"
7852
- },
7853
- "default": "0",
7854
- "description": "The height of the canvas.",
7855
- "fieldName": "height"
7863
+ "kind": "field",
7864
+ "default": "this"
7856
7865
  }
7857
- ],
7858
- "superclass": {
7859
- "name": "LitElement",
7860
- "package": "lit"
7861
- },
7862
- "tagName": "picker-image",
7863
- "customElement": true
7866
+ ]
7864
7867
  }
7865
7868
  ],
7866
7869
  "exports": [
7867
7870
  {
7868
7871
  "kind": "js",
7869
- "name": "PickerImage",
7870
- "declaration": {
7871
- "name": "PickerImage",
7872
- "module": "src/components/color-palette/editor/options/picker-image.ts"
7873
- }
7874
- },
7875
- {
7876
- "kind": "custom-element-definition",
7877
- "name": "picker-image",
7872
+ "name": "default",
7878
7873
  "declaration": {
7879
- "name": "PickerImage",
7880
- "module": "src/components/color-palette/editor/options/picker-image.ts"
7874
+ "name": "t",
7875
+ "module": "dist/node_modules/style-observer/src/util/Bug.js"
7881
7876
  }
7882
7877
  }
7883
7878
  ]
7884
7879
  },
7885
7880
  {
7886
7881
  "kind": "javascript-module",
7887
- "path": "src/components/color-palette/editor/options/picker-manual.ts",
7882
+ "path": "dist/node_modules/style-observer/src/util/gentle-register-property.js",
7888
7883
  "declarations": [
7889
7884
  {
7890
- "kind": "class",
7891
- "description": "Allows users to manually choose colors for color-palette-editor.",
7892
- "name": "PickerManual",
7893
- "members": [],
7894
- "events": [
7885
+ "kind": "function",
7886
+ "name": "f",
7887
+ "parameters": [
7895
7888
  {
7896
- "name": "change",
7897
- "type": {
7898
- "text": "string"
7899
- },
7900
- "description": "Emitted when a new color has been selected."
7889
+ "name": "t"
7890
+ },
7891
+ {
7892
+ "name": "n",
7893
+ "default": "{}"
7894
+ },
7895
+ {
7896
+ "name": "r",
7897
+ "default": "globalThis.document"
7901
7898
  }
7902
- ],
7903
- "superclass": {
7904
- "name": "LitElement",
7905
- "package": "lit"
7906
- },
7907
- "tagName": "picker-manual",
7908
- "customElement": true
7899
+ ]
7909
7900
  }
7910
7901
  ],
7911
7902
  "exports": [
7912
7903
  {
7913
7904
  "kind": "js",
7914
- "name": "PickerManual",
7905
+ "name": "default",
7915
7906
  "declaration": {
7916
- "name": "PickerManual",
7917
- "module": "src/components/color-palette/editor/options/picker-manual.ts"
7907
+ "name": "f",
7908
+ "module": "dist/node_modules/style-observer/src/util/gentle-register-property.js"
7918
7909
  }
7919
- },
7910
+ }
7911
+ ]
7912
+ },
7913
+ {
7914
+ "kind": "javascript-module",
7915
+ "path": "dist/node_modules/style-observer/src/util/is-registered-property.js",
7916
+ "declarations": [
7920
7917
  {
7921
- "kind": "custom-element-definition",
7922
- "name": "picker-manual",
7918
+ "kind": "function",
7919
+ "name": "n",
7920
+ "parameters": [
7921
+ {
7922
+ "name": "t"
7923
+ },
7924
+ {
7925
+ "name": "l",
7926
+ "default": "globalThis.document"
7927
+ }
7928
+ ]
7929
+ }
7930
+ ],
7931
+ "exports": [
7932
+ {
7933
+ "kind": "js",
7934
+ "name": "default",
7923
7935
  "declaration": {
7924
- "name": "PickerManual",
7925
- "module": "src/components/color-palette/editor/options/picker-manual.ts"
7936
+ "name": "n",
7937
+ "module": "dist/node_modules/style-observer/src/util/is-registered-property.js"
7926
7938
  }
7927
7939
  }
7928
7940
  ]
7929
7941
  },
7930
7942
  {
7931
7943
  "kind": "javascript-module",
7932
- "path": "src/components/color-palette/editor/options/picker-url.ts",
7944
+ "path": "dist/node_modules/style-observer/src/util/MultiWeakMap.js",
7933
7945
  "declarations": [
7934
7946
  {
7935
7947
  "kind": "class",
7936
- "description": "Selects colors from a user provided URL for color-palette-editor.",
7937
- "name": "PickerUrl",
7948
+ "description": "",
7949
+ "name": "r",
7938
7950
  "members": [
7939
7951
  {
7940
- "kind": "field",
7941
- "name": "_input",
7942
- "type": {
7943
- "text": "HTMLInputElement"
7944
- },
7945
- "privacy": "private"
7946
- }
7947
- ],
7948
- "events": [
7952
+ "kind": "method",
7953
+ "name": "has",
7954
+ "parameters": [
7955
+ {
7956
+ "name": "e"
7957
+ },
7958
+ {
7959
+ "name": "s"
7960
+ }
7961
+ ]
7962
+ },
7949
7963
  {
7950
- "name": "change",
7951
- "type": {
7952
- "text": "string[]"
7953
- },
7954
- "description": "Emits the colors gathered from the URL."
7964
+ "kind": "method",
7965
+ "name": "add",
7966
+ "parameters": [
7967
+ {
7968
+ "name": "e"
7969
+ },
7970
+ {
7971
+ "name": "s"
7972
+ }
7973
+ ]
7974
+ },
7975
+ {
7976
+ "kind": "method",
7977
+ "name": "delete",
7978
+ "parameters": [
7979
+ {
7980
+ "name": "e"
7981
+ },
7982
+ {
7983
+ "name": "s"
7984
+ }
7985
+ ]
7955
7986
  }
7956
7987
  ],
7957
7988
  "superclass": {
7958
- "name": "LitElement",
7959
- "package": "lit"
7960
- },
7961
- "tagName": "picker-url",
7962
- "customElement": true
7989
+ "name": "WeakMap",
7990
+ "module": "dist/node_modules/style-observer/src/util/MultiWeakMap.js"
7991
+ }
7963
7992
  }
7964
7993
  ],
7965
7994
  "exports": [
7966
7995
  {
7967
7996
  "kind": "js",
7968
- "name": "PickerUrl",
7969
- "declaration": {
7970
- "name": "PickerUrl",
7971
- "module": "src/components/color-palette/editor/options/picker-url.ts"
7972
- }
7973
- },
7974
- {
7975
- "kind": "custom-element-definition",
7976
- "name": "picker-url",
7997
+ "name": "default",
7977
7998
  "declaration": {
7978
- "name": "PickerUrl",
7979
- "module": "src/components/color-palette/editor/options/picker-url.ts"
7999
+ "name": "r",
8000
+ "module": "dist/node_modules/style-observer/src/util/MultiWeakMap.js"
7980
8001
  }
7981
8002
  }
7982
8003
  ]