@alegendstale/holly-components 2.0.10 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/custom-elements.json
CHANGED
|
@@ -669,65 +669,6 @@
|
|
|
669
669
|
}
|
|
670
670
|
]
|
|
671
671
|
},
|
|
672
|
-
{
|
|
673
|
-
"kind": "javascript-module",
|
|
674
|
-
"path": "src/decorators/condCustomElement.ts",
|
|
675
|
-
"declarations": [
|
|
676
|
-
{
|
|
677
|
-
"kind": "function",
|
|
678
|
-
"name": "condCustomElement",
|
|
679
|
-
"parameters": [
|
|
680
|
-
{
|
|
681
|
-
"name": "tagName",
|
|
682
|
-
"type": {
|
|
683
|
-
"text": "string"
|
|
684
|
-
},
|
|
685
|
-
"description": "The tag name of the custom element to define."
|
|
686
|
-
}
|
|
687
|
-
],
|
|
688
|
-
"description": "Registers a new custom element if it doesn't already exist."
|
|
689
|
-
}
|
|
690
|
-
],
|
|
691
|
-
"exports": [
|
|
692
|
-
{
|
|
693
|
-
"kind": "js",
|
|
694
|
-
"name": "condCustomElement",
|
|
695
|
-
"declaration": {
|
|
696
|
-
"name": "condCustomElement",
|
|
697
|
-
"module": "src/decorators/condCustomElement.ts"
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
]
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
"kind": "javascript-module",
|
|
704
|
-
"path": "src/decorators/ExposeParts.ts",
|
|
705
|
-
"declarations": [
|
|
706
|
-
{
|
|
707
|
-
"kind": "function",
|
|
708
|
-
"name": "exposeParts",
|
|
709
|
-
"parameters": [
|
|
710
|
-
{
|
|
711
|
-
"name": "partMap",
|
|
712
|
-
"type": {
|
|
713
|
-
"text": "PartMap[]"
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
],
|
|
717
|
-
"description": "Property decorator that exposes parts and updates them when the property changes."
|
|
718
|
-
}
|
|
719
|
-
],
|
|
720
|
-
"exports": [
|
|
721
|
-
{
|
|
722
|
-
"kind": "js",
|
|
723
|
-
"name": "exposeParts",
|
|
724
|
-
"declaration": {
|
|
725
|
-
"name": "exposeParts",
|
|
726
|
-
"module": "src/decorators/ExposeParts.ts"
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
]
|
|
730
|
-
},
|
|
731
672
|
{
|
|
732
673
|
"kind": "javascript-module",
|
|
733
674
|
"path": "src/controllers/ResponsiveController.ts",
|
|
@@ -849,6 +790,65 @@
|
|
|
849
790
|
}
|
|
850
791
|
]
|
|
851
792
|
},
|
|
793
|
+
{
|
|
794
|
+
"kind": "javascript-module",
|
|
795
|
+
"path": "src/decorators/condCustomElement.ts",
|
|
796
|
+
"declarations": [
|
|
797
|
+
{
|
|
798
|
+
"kind": "function",
|
|
799
|
+
"name": "condCustomElement",
|
|
800
|
+
"parameters": [
|
|
801
|
+
{
|
|
802
|
+
"name": "tagName",
|
|
803
|
+
"type": {
|
|
804
|
+
"text": "string"
|
|
805
|
+
},
|
|
806
|
+
"description": "The tag name of the custom element to define."
|
|
807
|
+
}
|
|
808
|
+
],
|
|
809
|
+
"description": "Registers a new custom element if it doesn't already exist."
|
|
810
|
+
}
|
|
811
|
+
],
|
|
812
|
+
"exports": [
|
|
813
|
+
{
|
|
814
|
+
"kind": "js",
|
|
815
|
+
"name": "condCustomElement",
|
|
816
|
+
"declaration": {
|
|
817
|
+
"name": "condCustomElement",
|
|
818
|
+
"module": "src/decorators/condCustomElement.ts"
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
]
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"kind": "javascript-module",
|
|
825
|
+
"path": "src/decorators/ExposeParts.ts",
|
|
826
|
+
"declarations": [
|
|
827
|
+
{
|
|
828
|
+
"kind": "function",
|
|
829
|
+
"name": "exposeParts",
|
|
830
|
+
"parameters": [
|
|
831
|
+
{
|
|
832
|
+
"name": "partMap",
|
|
833
|
+
"type": {
|
|
834
|
+
"text": "PartMap[]"
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
],
|
|
838
|
+
"description": "Property decorator that exposes parts and updates them when the property changes."
|
|
839
|
+
}
|
|
840
|
+
],
|
|
841
|
+
"exports": [
|
|
842
|
+
{
|
|
843
|
+
"kind": "js",
|
|
844
|
+
"name": "exposeParts",
|
|
845
|
+
"declaration": {
|
|
846
|
+
"name": "exposeParts",
|
|
847
|
+
"module": "src/decorators/ExposeParts.ts"
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
]
|
|
851
|
+
},
|
|
852
852
|
{
|
|
853
853
|
"kind": "javascript-module",
|
|
854
854
|
"path": "src/utils/basicUtils.ts",
|
|
@@ -1563,6 +1563,48 @@
|
|
|
1563
1563
|
}
|
|
1564
1564
|
]
|
|
1565
1565
|
},
|
|
1566
|
+
{
|
|
1567
|
+
"kind": "javascript-module",
|
|
1568
|
+
"path": "dist/components/bottom-sheet/bottom-sheet.js",
|
|
1569
|
+
"declarations": [
|
|
1570
|
+
{
|
|
1571
|
+
"kind": "variable",
|
|
1572
|
+
"name": "o",
|
|
1573
|
+
"default": "class extends c { constructor() { super(...arguments), this.open = !1, this.nonmodal = !1, this.dragging = !1, this.scrolling = !1, this.snapPoints = [], this.defaultSnap = NaN, this.emitter = new d(), this.startY = 0, this.startHeight = 0, this.previousTouch = null, this.lastScrollTop = 0; } set height(t) { const e = Math.min(Math.max(t, 0), 100); this.emitter.emit(\"snapped\", this.isSnapped(e), this.shadowRoot?.activeElement), isFinite(t) ? this.style.setProperty(\"--height\", `${Math.round(e)}dvh`) : this.style.setProperty(\"--height\", \"fit-content\"); } get height() { return parseInt(this.style.getPropertyValue(\"--height\")); } connectedCallback() { super.connectedCallback(); const t = this.snapPoints.length === 2 ? 0 : 1; this.defaultSnap = this.snapPoints.length > 0 ? isNaN(this.defaultSnap) ? this.snapPoints[Math.round(this.snapPoints.length / 2) - t] : this.defaultSnap : NaN, this.emitter.on(\"snapped\", this.onSnapped.bind(this)), requestAnimationFrame(() => { this.showSheet(this.open); }); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return requestAnimationFrame(() => { this.setDialog(this.open); }), g` <dialog @click=${(t) => { t.stopPropagation(), this.toggleSheet(); }} > <button id=\"handle\" part=\"__handle\" @pointerdown=${this.pointerDown} @pointermove=${this.pointerMove} @pointerup=${this.pointerUp} @click=${(t) => { t.stopPropagation(); }} > ⸻ </button> <div id='content' part=\"__content\" tabindex='0' @touchstart=${this.touchDown} @touchend=${this.touchUp} @touchmove=${this.touchMove} @scroll=${this.contentScroll} @touchcancel=${(t) => { console.warn(\"User Agent touchcancelled the event.\", t.target); }} @dragstart=${(t) => { t.preventDefault(); }} @click=${(t) => { t.stopPropagation(); }} > <slot></slot> </div> </dialog> `; } /** * Find closest point index to target in array */ closestSnapPointIndex(t, e) { return t.reduce((i, n, s) => Math.abs(n - e) < Math.abs(t[i] - e) ? s : i, 0); } /** * Sets sheet height to the closest snap * @param height percentage */ setSnap(t) { if (this.snapPoints.length === 0) return; const e = this.snapPoints[this.closestSnapPointIndex(this.snapPoints, t)]; e === this.snapPoints[0] && this.showSheet(!1), this.height = e; } /** * @returns Whether sheet is snapped to a snap point */ isSnapped(t) { return this.snapPoints.some((e) => e === Math.round(t)); } /** * Sets the display state of the sheet */ showSheet(t) { this.open = t, this.height = isNaN(this.defaultSnap) ? 1 / 0 : this.defaultSnap, this.setOverscroll(t), this.setDialog(t); } /** * Toggles the display state of the sheet */ toggleSheet() { this.showSheet(!this.open); } /** * Remove overscroll to prevent mobile browsers from refreshing during drag */ setOverscroll(t) { const e = document.querySelector(\"html\"), i = document.querySelector(\"body\"), n = t ? \"none\" : \"unset\"; e && e.style.setProperty(\"overscroll-behavior-block\", n), i && i.style.setProperty(\"overscroll-behavior-block\", n); } setDialog(t) { t && !this.dialog.open ? this.nonmodal ? this.dialog.show() : this.dialog.showModal() : t && this.dialog.open ? this.nonmodal && this.modalDialog ? (this.dialog.close(), this.dialog.show()) : !this.nonmodal && this.nonModalDialog && (this.dialog.close(), this.dialog.showModal()) : this.dialog.close(); } touchDown(t) { t.target instanceof HTMLElement && (this.startY = t.touches[0].pageY, this.startHeight = this.height); } touchMove(t) { if (!(t.target instanceof HTMLElement)) return; const e = t.touches[0]; let i = NaN; this.previousTouch && (i = e.pageY - this.previousTouch.pageY), this.previousTouch = e; let n = this.startY - t.touches[0].pageY; const s = this.startHeight + n / window.innerHeight * 100; !this.scrolling && this.dragging ? this.height = s : this.scrolling && this.dragging || this.scrolling && !this.dragging ? t.target.focus({ preventScroll: !0 }) : !this.scrolling && !this.dragging && (i >= 0 ? this.height = Math.min(s, this.defaultSnap || this.snapPoints[this.snapPoints.length - 1]) : t.target.focus({ preventScroll: !0 })); } touchUp(t) { t.target instanceof HTMLElement && (this.previousTouch = null, this.setSnap(this.height)); } pointerDown(t) { t.target instanceof HTMLElement && (t.target.setPointerCapture(t.pointerId), this.startY = t.pageY, this.startHeight = this.height); } pointerMove(t) { if (!(t.target instanceof HTMLElement && t.target.hasPointerCapture(t.pointerId)) || !t.isPrimary) return; t.preventDefault(); let e = this.startY - t.pageY; const i = this.startHeight + e / window.innerHeight * 100; t.target.id === \"handle\" && (this.height = i); } pointerUp(t) { t.target instanceof HTMLElement && (t.target.releasePointerCapture(t.pointerId), this.setSnap(this.height)); } onSnapped(t, e) { this.dragging = !t; } contentScroll(t) { if (!(t.target instanceof HTMLElement && t.target.id === \"content\")) return; const e = t.target.scrollTop; this.scrolling = e !== this.lastScrollTop, this.lastScrollTop = e, e === 0 && (this.scrolling = !1); } }"
|
|
1574
|
+
}
|
|
1575
|
+
],
|
|
1576
|
+
"exports": [
|
|
1577
|
+
{
|
|
1578
|
+
"kind": "js",
|
|
1579
|
+
"name": "BottomSheet",
|
|
1580
|
+
"declaration": {
|
|
1581
|
+
"name": "o",
|
|
1582
|
+
"module": "dist/components/bottom-sheet/bottom-sheet.js"
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
]
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
"kind": "javascript-module",
|
|
1589
|
+
"path": "dist/components/bottom-sheet/bottom-sheet.styles.js",
|
|
1590
|
+
"declarations": [
|
|
1591
|
+
{
|
|
1592
|
+
"kind": "variable",
|
|
1593
|
+
"name": "e",
|
|
1594
|
+
"default": "o` :host { contain: content; overscroll-behavior-block: none; --height: fit-content; } :host([dragging]) dialog { #content { cursor: grabbing; /* Important! Prevents mobile browsers from reclaiming PointerMove event on touch devices */ touch-action: none; /* Prevent weird scrollbar movement on mobile when dragging */ overflow-y: hidden; } } :host(:not([dragging])) dialog { /* Only animate if not dragging */ transition-property: overlay opacity display; transition-duration: 0.25s; transition-behavior: allow-discrete; &::backdrop { transition-property: overlay opacity display; transition-duration: 0.25s; transition-behavior: allow-discrete; } #content { /* Allow scroll */ touch-action: pan-y; } } dialog { display: none; opacity: 0; translate: 0 var(--height); height: var(--height); min-height: 0; max-height: 100%; min-width: 100%; max-width: 100%; flex-direction: column; box-sizing: border-box; padding: 0; border: 0; background-color: light-dark(#d9d9d9, #1c1c1c); /* Important! Removes default browser styling, allowing bottom to work */ inset: unset; bottom: 0; left: 0; overflow-y: hidden; /* Important! Prevents mobile browsers from reclaiming PointerMove event on touch devices */ touch-action: none; /* Prevent weird scrollbar movement on mobile when dragging */ overflow-y: hidden; &[open] { display: flex; opacity: 1; translate: 0 0; &::backdrop { opacity: 0.8; } } &::backdrop { background: black; opacity: 0; } } @starting-style { dialog[open] { opacity: 0; translate: 0 var(--height); &::backdrop { opacity: 0; } } } #handle { display: block; position: sticky; top: 0; background: transparent; border: 0; cursor: grabbing; min-height: 35px; user-select: none; touch-action: none; } div { /* display: contents; */ overflow-y: auto; scrollbar-width: none; box-sizing: border-box; min-height: 100%; min-width: 100%; } ::slotted(*) { /* Prevent slotted items from taking pointer events */ /* pointer-events: none; */ } `"
|
|
1595
|
+
}
|
|
1596
|
+
],
|
|
1597
|
+
"exports": [
|
|
1598
|
+
{
|
|
1599
|
+
"kind": "js",
|
|
1600
|
+
"name": "default",
|
|
1601
|
+
"declaration": {
|
|
1602
|
+
"name": "e",
|
|
1603
|
+
"module": "dist/components/bottom-sheet/bottom-sheet.styles.js"
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
]
|
|
1607
|
+
},
|
|
1566
1608
|
{
|
|
1567
1609
|
"kind": "javascript-module",
|
|
1568
1610
|
"path": "dist/components/canvas/canvas-base.js",
|
|
@@ -1855,48 +1897,6 @@
|
|
|
1855
1897
|
}
|
|
1856
1898
|
]
|
|
1857
1899
|
},
|
|
1858
|
-
{
|
|
1859
|
-
"kind": "javascript-module",
|
|
1860
|
-
"path": "dist/components/bottom-sheet/bottom-sheet.js",
|
|
1861
|
-
"declarations": [
|
|
1862
|
-
{
|
|
1863
|
-
"kind": "variable",
|
|
1864
|
-
"name": "o",
|
|
1865
|
-
"default": "class extends c { constructor() { super(...arguments), this.open = !1, this.nonmodal = !1, this.dragging = !1, this.scrolling = !1, this.snapPoints = [], this.defaultSnap = NaN, this.emitter = new d(), this.startY = 0, this.startHeight = 0, this.previousTouch = null, this.lastScrollTop = 0; } set height(t) { const e = Math.min(Math.max(t, 0), 100); this.emitter.emit(\"snapped\", this.isSnapped(e), this.shadowRoot?.activeElement), isFinite(t) ? this.style.setProperty(\"--height\", `${Math.round(e)}dvh`) : this.style.setProperty(\"--height\", \"fit-content\"); } get height() { return parseInt(this.style.getPropertyValue(\"--height\")); } connectedCallback() { super.connectedCallback(); const t = this.snapPoints.length === 2 ? 0 : 1; this.defaultSnap = this.snapPoints.length > 0 ? isNaN(this.defaultSnap) ? this.snapPoints[Math.round(this.snapPoints.length / 2) - t] : this.defaultSnap : NaN, this.emitter.on(\"snapped\", this.onSnapped.bind(this)), requestAnimationFrame(() => { this.showSheet(this.open); }); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return requestAnimationFrame(() => { this.setDialog(this.open); }), g` <dialog @click=${(t) => { t.stopPropagation(), this.toggleSheet(); }} > <button id=\"handle\" part=\"__handle\" @pointerdown=${this.pointerDown} @pointermove=${this.pointerMove} @pointerup=${this.pointerUp} @click=${(t) => { t.stopPropagation(); }} > ⸻ </button> <div id='content' part=\"__content\" tabindex='0' @touchstart=${this.touchDown} @touchend=${this.touchUp} @touchmove=${this.touchMove} @scroll=${this.contentScroll} @touchcancel=${(t) => { console.warn(\"User Agent touchcancelled the event.\", t.target); }} @dragstart=${(t) => { t.preventDefault(); }} @click=${(t) => { t.stopPropagation(); }} > <slot></slot> </div> </dialog> `; } /** * Find closest point index to target in array */ closestSnapPointIndex(t, e) { return t.reduce((i, n, s) => Math.abs(n - e) < Math.abs(t[i] - e) ? s : i, 0); } /** * Sets sheet height to the closest snap * @param height percentage */ setSnap(t) { if (this.snapPoints.length === 0) return; const e = this.snapPoints[this.closestSnapPointIndex(this.snapPoints, t)]; e === this.snapPoints[0] && this.showSheet(!1), this.height = e; } /** * @returns Whether sheet is snapped to a snap point */ isSnapped(t) { return this.snapPoints.some((e) => e === Math.round(t)); } /** * Sets the display state of the sheet */ showSheet(t) { this.open = t, this.height = isNaN(this.defaultSnap) ? 1 / 0 : this.defaultSnap, this.setOverscroll(t), this.setDialog(t); } /** * Toggles the display state of the sheet */ toggleSheet() { this.showSheet(!this.open); } /** * Remove overscroll to prevent mobile browsers from refreshing during drag */ setOverscroll(t) { const e = document.querySelector(\"html\"), i = document.querySelector(\"body\"), n = t ? \"none\" : \"unset\"; e && e.style.setProperty(\"overscroll-behavior-block\", n), i && i.style.setProperty(\"overscroll-behavior-block\", n); } setDialog(t) { t && !this.dialog.open ? this.nonmodal ? this.dialog.show() : this.dialog.showModal() : t && this.dialog.open ? this.nonmodal && this.modalDialog ? (this.dialog.close(), this.dialog.show()) : !this.nonmodal && this.nonModalDialog && (this.dialog.close(), this.dialog.showModal()) : this.dialog.close(); } touchDown(t) { t.target instanceof HTMLElement && (this.startY = t.touches[0].pageY, this.startHeight = this.height); } touchMove(t) { if (!(t.target instanceof HTMLElement)) return; const e = t.touches[0]; let i = NaN; this.previousTouch && (i = e.pageY - this.previousTouch.pageY), this.previousTouch = e; let n = this.startY - t.touches[0].pageY; const s = this.startHeight + n / window.innerHeight * 100; !this.scrolling && this.dragging ? this.height = s : this.scrolling && this.dragging || this.scrolling && !this.dragging ? t.target.focus({ preventScroll: !0 }) : !this.scrolling && !this.dragging && (i >= 0 ? this.height = Math.min(s, this.defaultSnap || this.snapPoints[this.snapPoints.length - 1]) : t.target.focus({ preventScroll: !0 })); } touchUp(t) { t.target instanceof HTMLElement && (this.previousTouch = null, this.setSnap(this.height)); } pointerDown(t) { t.target instanceof HTMLElement && (t.target.setPointerCapture(t.pointerId), this.startY = t.pageY, this.startHeight = this.height); } pointerMove(t) { if (!(t.target instanceof HTMLElement && t.target.hasPointerCapture(t.pointerId)) || !t.isPrimary) return; t.preventDefault(); let e = this.startY - t.pageY; const i = this.startHeight + e / window.innerHeight * 100; t.target.id === \"handle\" && (this.height = i); } pointerUp(t) { t.target instanceof HTMLElement && (t.target.releasePointerCapture(t.pointerId), this.setSnap(this.height)); } onSnapped(t, e) { this.dragging = !t; } contentScroll(t) { if (!(t.target instanceof HTMLElement && t.target.id === \"content\")) return; const e = t.target.scrollTop; this.scrolling = e !== this.lastScrollTop, this.lastScrollTop = e, e === 0 && (this.scrolling = !1); } }"
|
|
1866
|
-
}
|
|
1867
|
-
],
|
|
1868
|
-
"exports": [
|
|
1869
|
-
{
|
|
1870
|
-
"kind": "js",
|
|
1871
|
-
"name": "BottomSheet",
|
|
1872
|
-
"declaration": {
|
|
1873
|
-
"name": "o",
|
|
1874
|
-
"module": "dist/components/bottom-sheet/bottom-sheet.js"
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
]
|
|
1878
|
-
},
|
|
1879
|
-
{
|
|
1880
|
-
"kind": "javascript-module",
|
|
1881
|
-
"path": "dist/components/bottom-sheet/bottom-sheet.styles.js",
|
|
1882
|
-
"declarations": [
|
|
1883
|
-
{
|
|
1884
|
-
"kind": "variable",
|
|
1885
|
-
"name": "e",
|
|
1886
|
-
"default": "o` :host { contain: content; overscroll-behavior-block: none; --height: fit-content; } :host([dragging]) dialog { #content { cursor: grabbing; /* Important! Prevents mobile browsers from reclaiming PointerMove event on touch devices */ touch-action: none; /* Prevent weird scrollbar movement on mobile when dragging */ overflow-y: hidden; } } :host(:not([dragging])) dialog { /* Only animate if not dragging */ transition-property: overlay opacity display; transition-duration: 0.25s; transition-behavior: allow-discrete; &::backdrop { transition-property: overlay opacity display; transition-duration: 0.25s; transition-behavior: allow-discrete; } #content { /* Allow scroll */ touch-action: pan-y; } } dialog { display: none; opacity: 0; translate: 0 var(--height); height: var(--height); min-height: 0; max-height: 100%; min-width: 100%; max-width: 100%; flex-direction: column; box-sizing: border-box; padding: 0; border: 0; background-color: light-dark(#d9d9d9, #1c1c1c); /* Important! Removes default browser styling, allowing bottom to work */ inset: unset; bottom: 0; left: 0; overflow-y: hidden; /* Important! Prevents mobile browsers from reclaiming PointerMove event on touch devices */ touch-action: none; /* Prevent weird scrollbar movement on mobile when dragging */ overflow-y: hidden; &[open] { display: flex; opacity: 1; translate: 0 0; &::backdrop { opacity: 0.8; } } &::backdrop { background: black; opacity: 0; } } @starting-style { dialog[open] { opacity: 0; translate: 0 var(--height); &::backdrop { opacity: 0; } } } #handle { display: block; position: sticky; top: 0; background: transparent; border: 0; cursor: grabbing; min-height: 35px; user-select: none; touch-action: none; } div { /* display: contents; */ overflow-y: auto; scrollbar-width: none; box-sizing: border-box; min-height: 100%; min-width: 100%; } ::slotted(*) { /* Prevent slotted items from taking pointer events */ /* pointer-events: none; */ } `"
|
|
1887
|
-
}
|
|
1888
|
-
],
|
|
1889
|
-
"exports": [
|
|
1890
|
-
{
|
|
1891
|
-
"kind": "js",
|
|
1892
|
-
"name": "default",
|
|
1893
|
-
"declaration": {
|
|
1894
|
-
"name": "e",
|
|
1895
|
-
"module": "dist/components/bottom-sheet/bottom-sheet.styles.js"
|
|
1896
|
-
}
|
|
1897
|
-
}
|
|
1898
|
-
]
|
|
1899
|
-
},
|
|
1900
1900
|
{
|
|
1901
1901
|
"kind": "javascript-module",
|
|
1902
1902
|
"path": "dist/components/carousel-scroller/carousel-scroller.js",
|
|
@@ -1987,7 +1987,7 @@
|
|
|
1987
1987
|
"declarations": [
|
|
1988
1988
|
{
|
|
1989
1989
|
"kind": "variable",
|
|
1990
|
-
"name": "
|
|
1990
|
+
"name": "l",
|
|
1991
1991
|
"type": {
|
|
1992
1992
|
"text": "array"
|
|
1993
1993
|
},
|
|
@@ -1995,7 +1995,7 @@
|
|
|
1995
1995
|
},
|
|
1996
1996
|
{
|
|
1997
1997
|
"kind": "variable",
|
|
1998
|
-
"name": "
|
|
1998
|
+
"name": "B",
|
|
1999
1999
|
"type": {
|
|
2000
2000
|
"text": "array"
|
|
2001
2001
|
},
|
|
@@ -2007,12 +2007,12 @@
|
|
|
2007
2007
|
"type": {
|
|
2008
2008
|
"text": "array"
|
|
2009
2009
|
},
|
|
2010
|
-
"default": "[ ...
|
|
2010
|
+
"default": "[ ...l, ...l.flatMap((t) => B.map((e) => `${t} ${e}`)) ]"
|
|
2011
2011
|
},
|
|
2012
2012
|
{
|
|
2013
2013
|
"kind": "variable",
|
|
2014
|
-
"name": "
|
|
2015
|
-
"default": "class extends
|
|
2014
|
+
"name": "o",
|
|
2015
|
+
"default": "class extends c { constructor() { super(...arguments), this.autofit = !1, this.svgColors = !1, this.viewBox = { x: 0, y: 0, width: 0, height: 0 }, this._widthController = new g(this, \"--svg-width\", (t) => { const e = parseFloat(t); isNaN(e) || e <= 0 || (this.viewBox = { ...this.viewBox, width: e || 0 }); }), this._heightController = new g(this, \"--svg-height\", (t) => { const e = parseFloat(t); isNaN(e) || e <= 0 || (this.viewBox = { ...this.viewBox, height: e || 0 }); }); } set svg(t) { let e; if (typeof t == \"string\") { const s = m(t); if (!(s instanceof SVGElement)) return; e = s; } else e = t; if (e instanceof SVGElement) { const s = this.getViewBoxSize(e), r = parseFloat(e.getAttribute(\"width\") || \"0\"), i = parseFloat(e.getAttribute(\"height\") || \"0\"); this.viewBox = { x: s?.x ?? 0, y: s?.y ?? 0, width: s?.width || r || this.viewBox.width, height: s?.height || i || this.viewBox.height }; } this._svg = e; } get svg() { return this._svg ?? \"\"; } set preserveAspectRatio(t) { this._preserveAspectRatio = t; } get preserveAspectRatio() { if (this._preserveAspectRatio == null && this.svg instanceof SVGElement) { const t = this.svg.getAttribute(\"preserveAspectRatio\") || \"\"; if (_(t)) return t; } return this._preserveAspectRatio || \"xMidYMid meet\"; } // For classes inheriting from responsive-svg (e.g. draw-svg) svgClasses() { return {}; } render() { const t = this.viewBox, e = this.preserveAspectRatio, s = this.svgClasses(); if (t.height === 0 || t.width === 0) return v`<p style=\"font-size: initial;\">⚠️ SVG ViewBox</p>`; if (typeof this.svg == \"string\") return v`<p style=\"font-size: initial;\">⚠️ SVG Error</p>`; const r = this.svg instanceof SVGElement ? Array.from(this.svg.cloneNode(!0).childNodes) : this.svg; return v` <svg class=${u(s)} style=${w({ \"--svg-width-fallback\": `${t.width}em`, \"--svg-height-fallback\": `${t.height}em` })} viewBox=\"${t.x} ${t.y} ${t.width} ${t.height}\" preserveAspectRatio=${e} xmlns=\"http://www.w3.org/2000/svg\" > ${r} </svg> `; } /** * Gets the viewBox dimensions from an SVG element. * @param svg The SVG to get the attribute from. * @returns The SVG viewBox x, y, width, and height */ getViewBoxSize(t) { const e = t.getAttribute(\"viewBox\")?.split(\" \"); return e ? { x: +e[0], y: +e[1], width: +e[2], height: +e[3] } : null; } }"
|
|
2016
2016
|
}
|
|
2017
2017
|
],
|
|
2018
2018
|
"exports": [
|
|
@@ -2020,7 +2020,7 @@
|
|
|
2020
2020
|
"kind": "js",
|
|
2021
2021
|
"name": "ResponsiveSvg",
|
|
2022
2022
|
"declaration": {
|
|
2023
|
-
"name": "
|
|
2023
|
+
"name": "o",
|
|
2024
2024
|
"module": "dist/components/responsive-svg/responsive-svg.js"
|
|
2025
2025
|
}
|
|
2026
2026
|
},
|
|
@@ -2028,7 +2028,7 @@
|
|
|
2028
2028
|
"kind": "js",
|
|
2029
2029
|
"name": "preserveAspectRatioAlignOptions",
|
|
2030
2030
|
"declaration": {
|
|
2031
|
-
"name": "
|
|
2031
|
+
"name": "l",
|
|
2032
2032
|
"module": "dist/components/responsive-svg/responsive-svg.js"
|
|
2033
2033
|
}
|
|
2034
2034
|
},
|
|
@@ -2044,7 +2044,7 @@
|
|
|
2044
2044
|
"kind": "js",
|
|
2045
2045
|
"name": "preserveAspectRatioSpacingOptions",
|
|
2046
2046
|
"declaration": {
|
|
2047
|
-
"name": "
|
|
2047
|
+
"name": "B",
|
|
2048
2048
|
"module": "dist/components/responsive-svg/responsive-svg.js"
|
|
2049
2049
|
}
|
|
2050
2050
|
}
|
|
@@ -3443,37 +3443,375 @@
|
|
|
3443
3443
|
},
|
|
3444
3444
|
{
|
|
3445
3445
|
"kind": "javascript-module",
|
|
3446
|
-
"path": "src/components/
|
|
3447
|
-
"declarations": [
|
|
3448
|
-
|
|
3449
|
-
"kind": "variable",
|
|
3450
|
-
"name": "defaultSettings",
|
|
3451
|
-
"type": {
|
|
3452
|
-
"text": "ColorPaletteSettings"
|
|
3453
|
-
},
|
|
3454
|
-
"default": "{ noticeDuration: 10000, errorPulse: true, aliasMode: AliasMode.Both, corners: true, stabilizeWhileEditing: true, reloadDelay: 5, copyFormat: CopyFormat.Raw, height: 150, width: 700, direction: Direction.Column, gradient: false, preventHover: false, hideText: false, override: false }"
|
|
3455
|
-
},
|
|
3446
|
+
"path": "src/components/draw-svg/draw-svg.styles.ts",
|
|
3447
|
+
"declarations": [],
|
|
3448
|
+
"exports": [
|
|
3456
3449
|
{
|
|
3457
|
-
"kind": "
|
|
3458
|
-
"name": "
|
|
3459
|
-
"
|
|
3460
|
-
|
|
3450
|
+
"kind": "js",
|
|
3451
|
+
"name": "default",
|
|
3452
|
+
"declaration": {
|
|
3453
|
+
"module": "src/components/draw-svg/draw-svg.styles.ts"
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
]
|
|
3457
|
+
},
|
|
3458
|
+
{
|
|
3459
|
+
"kind": "javascript-module",
|
|
3460
|
+
"path": "src/components/draw-svg/draw-svg.ts",
|
|
3461
|
+
"declarations": [
|
|
3461
3462
|
{
|
|
3462
3463
|
"kind": "class",
|
|
3463
|
-
"description": "",
|
|
3464
|
-
"name": "
|
|
3464
|
+
"description": "Animates the provided SVG paths as if they were being drawn.",
|
|
3465
|
+
"name": "DrawSvg",
|
|
3465
3466
|
"members": [
|
|
3466
3467
|
{
|
|
3467
3468
|
"kind": "field",
|
|
3468
|
-
"name": "
|
|
3469
|
+
"name": "isIntersecting",
|
|
3469
3470
|
"type": {
|
|
3470
|
-
"text": "
|
|
3471
|
+
"text": "boolean"
|
|
3471
3472
|
},
|
|
3472
|
-
"
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3473
|
+
"privacy": "public",
|
|
3474
|
+
"default": "false",
|
|
3475
|
+
"description": "Whether the SVG is intersecting with the client viewport. Useful for determining when to animate."
|
|
3476
|
+
},
|
|
3477
|
+
{
|
|
3478
|
+
"kind": "method",
|
|
3479
|
+
"name": "svgClasses",
|
|
3480
|
+
"privacy": "protected",
|
|
3481
|
+
"return": {
|
|
3482
|
+
"type": {
|
|
3483
|
+
"text": "{}"
|
|
3484
|
+
}
|
|
3485
|
+
},
|
|
3486
|
+
"inheritedFrom": {
|
|
3487
|
+
"name": "ResponsiveSvg",
|
|
3488
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3489
|
+
}
|
|
3490
|
+
},
|
|
3491
|
+
{
|
|
3492
|
+
"kind": "field",
|
|
3493
|
+
"name": "emitter",
|
|
3494
|
+
"type": {
|
|
3495
|
+
"text": "EventEmitter<EventMap>"
|
|
3496
|
+
},
|
|
3497
|
+
"privacy": "public",
|
|
3498
|
+
"default": "new EventEmitter()",
|
|
3499
|
+
"description": "Public way to subscribe to events."
|
|
3500
|
+
},
|
|
3501
|
+
{
|
|
3502
|
+
"kind": "field",
|
|
3503
|
+
"name": "autofit",
|
|
3504
|
+
"type": {
|
|
3505
|
+
"text": "boolean"
|
|
3506
|
+
},
|
|
3507
|
+
"default": "false",
|
|
3508
|
+
"description": "The SVG will attempt to fill its container.",
|
|
3509
|
+
"attribute": "autofit",
|
|
3510
|
+
"reflects": true,
|
|
3511
|
+
"inheritedFrom": {
|
|
3512
|
+
"name": "ResponsiveSvg",
|
|
3513
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3514
|
+
}
|
|
3515
|
+
},
|
|
3516
|
+
{
|
|
3517
|
+
"kind": "field",
|
|
3518
|
+
"name": "svgColors",
|
|
3519
|
+
"type": {
|
|
3520
|
+
"text": "boolean"
|
|
3521
|
+
},
|
|
3522
|
+
"default": "false",
|
|
3523
|
+
"description": "Use the colors from the SVG input.",
|
|
3524
|
+
"attribute": "svgColors",
|
|
3525
|
+
"reflects": true,
|
|
3526
|
+
"inheritedFrom": {
|
|
3527
|
+
"name": "ResponsiveSvg",
|
|
3528
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3529
|
+
}
|
|
3530
|
+
},
|
|
3531
|
+
{
|
|
3532
|
+
"kind": "field",
|
|
3533
|
+
"name": "svg",
|
|
3534
|
+
"description": "The SVG to responsively size.\r\nMust use a property expression (.) to set",
|
|
3535
|
+
"type": {
|
|
3536
|
+
"text": "SVGElement | TemplateResult<2> | string"
|
|
3537
|
+
},
|
|
3538
|
+
"attribute": "svg",
|
|
3539
|
+
"inheritedFrom": {
|
|
3540
|
+
"name": "ResponsiveSvg",
|
|
3541
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3542
|
+
}
|
|
3543
|
+
},
|
|
3544
|
+
{
|
|
3545
|
+
"kind": "field",
|
|
3546
|
+
"name": "preserveAspectRatio",
|
|
3547
|
+
"description": "Set whether SVG preserves its aspect ratio alignment or spacing.",
|
|
3548
|
+
"type": {
|
|
3549
|
+
"text": "PreserveAspectRatio"
|
|
3550
|
+
},
|
|
3551
|
+
"default": "xMidYMid meet",
|
|
3552
|
+
"attribute": "preserveAspectRatio",
|
|
3553
|
+
"reflects": true,
|
|
3554
|
+
"inheritedFrom": {
|
|
3555
|
+
"name": "ResponsiveSvg",
|
|
3556
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3557
|
+
}
|
|
3558
|
+
},
|
|
3559
|
+
{
|
|
3560
|
+
"kind": "field",
|
|
3561
|
+
"name": "viewBox",
|
|
3562
|
+
"type": {
|
|
3563
|
+
"text": "ViewBox"
|
|
3564
|
+
},
|
|
3565
|
+
"privacy": "protected",
|
|
3566
|
+
"default": "{ x: 0, y: 0, width: 0, height: 0 }",
|
|
3567
|
+
"description": "The viewBox dimensions the SVG will use.",
|
|
3568
|
+
"inheritedFrom": {
|
|
3569
|
+
"name": "ResponsiveSvg",
|
|
3570
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3571
|
+
}
|
|
3572
|
+
},
|
|
3573
|
+
{
|
|
3574
|
+
"kind": "field",
|
|
3575
|
+
"name": "_widthController",
|
|
3576
|
+
"privacy": "private",
|
|
3577
|
+
"default": "new StyleController(this, '--svg-width', (val) => { const width = parseFloat(val); if(isNaN(width) || width <= 0) return; this.viewBox = { ...this.viewBox, width: width || 0 }; })",
|
|
3578
|
+
"inheritedFrom": {
|
|
3579
|
+
"name": "ResponsiveSvg",
|
|
3580
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3581
|
+
}
|
|
3582
|
+
},
|
|
3583
|
+
{
|
|
3584
|
+
"kind": "field",
|
|
3585
|
+
"name": "_heightController",
|
|
3586
|
+
"privacy": "private",
|
|
3587
|
+
"default": "new StyleController(this, '--svg-height', (val) => { const height = parseFloat(val); if(isNaN(height) || height <= 0) return; this.viewBox = { ...this.viewBox, height: height || 0 }; })",
|
|
3588
|
+
"inheritedFrom": {
|
|
3589
|
+
"name": "ResponsiveSvg",
|
|
3590
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3591
|
+
}
|
|
3592
|
+
},
|
|
3593
|
+
{
|
|
3594
|
+
"kind": "method",
|
|
3595
|
+
"name": "getViewBoxSize",
|
|
3596
|
+
"privacy": "public",
|
|
3597
|
+
"return": {
|
|
3598
|
+
"type": {
|
|
3599
|
+
"text": ""
|
|
3600
|
+
}
|
|
3601
|
+
},
|
|
3602
|
+
"parameters": [
|
|
3603
|
+
{
|
|
3604
|
+
"name": "svg",
|
|
3605
|
+
"type": {
|
|
3606
|
+
"text": "SVGElement"
|
|
3607
|
+
},
|
|
3608
|
+
"description": "The SVG to get the attribute from."
|
|
3609
|
+
}
|
|
3610
|
+
],
|
|
3611
|
+
"description": "Gets the viewBox dimensions from an SVG element.",
|
|
3612
|
+
"inheritedFrom": {
|
|
3613
|
+
"name": "ResponsiveSvg",
|
|
3614
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3615
|
+
}
|
|
3616
|
+
}
|
|
3617
|
+
],
|
|
3618
|
+
"events": [
|
|
3619
|
+
{
|
|
3620
|
+
"type": {
|
|
3621
|
+
"text": "boolean"
|
|
3622
|
+
},
|
|
3623
|
+
"description": "Emits when the component enters or leaves the viewport.",
|
|
3624
|
+
"name": "intersection"
|
|
3625
|
+
}
|
|
3626
|
+
],
|
|
3627
|
+
"superclass": {
|
|
3628
|
+
"name": "ResponsiveSvg",
|
|
3629
|
+
"module": "/src/components/responsive-svg/responsive-svg.js"
|
|
3630
|
+
},
|
|
3631
|
+
"tagName": "draw-svg",
|
|
3632
|
+
"customElement": true,
|
|
3633
|
+
"cssParts": [
|
|
3634
|
+
{
|
|
3635
|
+
"description": "Styles the SVG element.",
|
|
3636
|
+
"name": "__svg",
|
|
3637
|
+
"inheritedFrom": {
|
|
3638
|
+
"name": "ResponsiveSvg",
|
|
3639
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3640
|
+
}
|
|
3641
|
+
},
|
|
3642
|
+
{
|
|
3643
|
+
"description": "Styles all child path elements of the SVG.",
|
|
3644
|
+
"name": "__path",
|
|
3645
|
+
"inheritedFrom": {
|
|
3646
|
+
"name": "ResponsiveSvg",
|
|
3647
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3648
|
+
}
|
|
3649
|
+
}
|
|
3650
|
+
],
|
|
3651
|
+
"cssProperties": [
|
|
3652
|
+
{
|
|
3653
|
+
"type": {
|
|
3654
|
+
"text": "<length> (em)"
|
|
3655
|
+
},
|
|
3656
|
+
"description": "Controls the width of the SVG. (Expects em value)",
|
|
3657
|
+
"name": "--svg-width",
|
|
3658
|
+
"inheritedFrom": {
|
|
3659
|
+
"name": "ResponsiveSvg",
|
|
3660
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3661
|
+
}
|
|
3662
|
+
},
|
|
3663
|
+
{
|
|
3664
|
+
"type": {
|
|
3665
|
+
"text": "<length> (em)"
|
|
3666
|
+
},
|
|
3667
|
+
"description": "Controls the height of the SVG. (Expects em value)",
|
|
3668
|
+
"name": "--svg-height",
|
|
3669
|
+
"inheritedFrom": {
|
|
3670
|
+
"name": "ResponsiveSvg",
|
|
3671
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3672
|
+
}
|
|
3673
|
+
},
|
|
3674
|
+
{
|
|
3675
|
+
"type": {
|
|
3676
|
+
"text": "<length> (em)"
|
|
3677
|
+
},
|
|
3678
|
+
"description": "Set by the component as a fallback in case --svg-width is not defined.",
|
|
3679
|
+
"name": "--svg-width-fallback",
|
|
3680
|
+
"inheritedFrom": {
|
|
3681
|
+
"name": "ResponsiveSvg",
|
|
3682
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3683
|
+
}
|
|
3684
|
+
},
|
|
3685
|
+
{
|
|
3686
|
+
"type": {
|
|
3687
|
+
"text": "<length> (em)"
|
|
3688
|
+
},
|
|
3689
|
+
"description": "Set by the component as a fallback in case --svg-height is not defined.",
|
|
3690
|
+
"name": "--svg-height-fallback",
|
|
3691
|
+
"inheritedFrom": {
|
|
3692
|
+
"name": "ResponsiveSvg",
|
|
3693
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3694
|
+
}
|
|
3695
|
+
},
|
|
3696
|
+
{
|
|
3697
|
+
"type": {
|
|
3698
|
+
"text": "number"
|
|
3699
|
+
},
|
|
3700
|
+
"description": "Controls the scale of the SVG when sized relative to font-size.",
|
|
3701
|
+
"name": "--scale",
|
|
3702
|
+
"inheritedFrom": {
|
|
3703
|
+
"name": "ResponsiveSvg",
|
|
3704
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3705
|
+
}
|
|
3706
|
+
}
|
|
3707
|
+
],
|
|
3708
|
+
"attributes": [
|
|
3709
|
+
{
|
|
3710
|
+
"name": "autofit",
|
|
3711
|
+
"type": {
|
|
3712
|
+
"text": "boolean"
|
|
3713
|
+
},
|
|
3714
|
+
"default": "false",
|
|
3715
|
+
"description": "The SVG will attempt to fill its container.",
|
|
3716
|
+
"fieldName": "autofit",
|
|
3717
|
+
"inheritedFrom": {
|
|
3718
|
+
"name": "ResponsiveSvg",
|
|
3719
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3720
|
+
}
|
|
3721
|
+
},
|
|
3722
|
+
{
|
|
3723
|
+
"name": "svgColors",
|
|
3724
|
+
"type": {
|
|
3725
|
+
"text": "boolean"
|
|
3726
|
+
},
|
|
3727
|
+
"default": "false",
|
|
3728
|
+
"description": "Use the colors from the SVG input.",
|
|
3729
|
+
"fieldName": "svgColors",
|
|
3730
|
+
"inheritedFrom": {
|
|
3731
|
+
"name": "ResponsiveSvg",
|
|
3732
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3733
|
+
}
|
|
3734
|
+
},
|
|
3735
|
+
{
|
|
3736
|
+
"name": "svg",
|
|
3737
|
+
"description": "The SVG to responsively size.\r\nMust use a property expression (.) to set",
|
|
3738
|
+
"type": {
|
|
3739
|
+
"text": "SVGElement | TemplateResult<2> | string"
|
|
3740
|
+
},
|
|
3741
|
+
"fieldName": "svg",
|
|
3742
|
+
"inheritedFrom": {
|
|
3743
|
+
"name": "ResponsiveSvg",
|
|
3744
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3745
|
+
}
|
|
3746
|
+
},
|
|
3747
|
+
{
|
|
3748
|
+
"name": "preserveAspectRatio",
|
|
3749
|
+
"description": "Set whether SVG preserves its aspect ratio alignment or spacing.",
|
|
3750
|
+
"type": {
|
|
3751
|
+
"text": "PreserveAspectRatio"
|
|
3752
|
+
},
|
|
3753
|
+
"default": "xMidYMid meet",
|
|
3754
|
+
"fieldName": "preserveAspectRatio",
|
|
3755
|
+
"inheritedFrom": {
|
|
3756
|
+
"name": "ResponsiveSvg",
|
|
3757
|
+
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
3758
|
+
}
|
|
3759
|
+
}
|
|
3760
|
+
]
|
|
3761
|
+
}
|
|
3762
|
+
],
|
|
3763
|
+
"exports": [
|
|
3764
|
+
{
|
|
3765
|
+
"kind": "js",
|
|
3766
|
+
"name": "DrawSvg",
|
|
3767
|
+
"declaration": {
|
|
3768
|
+
"name": "DrawSvg",
|
|
3769
|
+
"module": "src/components/draw-svg/draw-svg.ts"
|
|
3770
|
+
}
|
|
3771
|
+
},
|
|
3772
|
+
{
|
|
3773
|
+
"kind": "custom-element-definition",
|
|
3774
|
+
"name": "draw-svg",
|
|
3775
|
+
"declaration": {
|
|
3776
|
+
"name": "DrawSvg",
|
|
3777
|
+
"module": "src/components/draw-svg/draw-svg.ts"
|
|
3778
|
+
}
|
|
3779
|
+
}
|
|
3780
|
+
]
|
|
3781
|
+
},
|
|
3782
|
+
{
|
|
3783
|
+
"kind": "javascript-module",
|
|
3784
|
+
"path": "src/components/color-palette/color-palette-utils.ts",
|
|
3785
|
+
"declarations": [
|
|
3786
|
+
{
|
|
3787
|
+
"kind": "variable",
|
|
3788
|
+
"name": "defaultSettings",
|
|
3789
|
+
"type": {
|
|
3790
|
+
"text": "ColorPaletteSettings"
|
|
3791
|
+
},
|
|
3792
|
+
"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 }"
|
|
3793
|
+
},
|
|
3794
|
+
{
|
|
3795
|
+
"kind": "variable",
|
|
3796
|
+
"name": "urlRegex",
|
|
3797
|
+
"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,})/"
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
"kind": "class",
|
|
3801
|
+
"description": "",
|
|
3802
|
+
"name": "PaletteError",
|
|
3803
|
+
"members": [
|
|
3804
|
+
{
|
|
3805
|
+
"kind": "field",
|
|
3806
|
+
"name": "status",
|
|
3807
|
+
"type": {
|
|
3808
|
+
"text": "Status"
|
|
3809
|
+
},
|
|
3810
|
+
"default": "status"
|
|
3811
|
+
}
|
|
3812
|
+
],
|
|
3813
|
+
"superclass": {
|
|
3814
|
+
"name": "Error",
|
|
3477
3815
|
"module": "src/components/color-palette/color-palette-utils.ts"
|
|
3478
3816
|
}
|
|
3479
3817
|
},
|
|
@@ -3618,753 +3956,415 @@
|
|
|
3618
3956
|
{
|
|
3619
3957
|
"type": {
|
|
3620
3958
|
"text": "<length>"
|
|
3621
|
-
},
|
|
3622
|
-
"description": "The height of the palette.",
|
|
3623
|
-
"name": "--palette-height"
|
|
3624
|
-
},
|
|
3625
|
-
{
|
|
3626
|
-
"type": {
|
|
3627
|
-
"text": "<length>"
|
|
3628
|
-
},
|
|
3629
|
-
"description": "The width of the palette.",
|
|
3630
|
-
"name": "--palette-width"
|
|
3631
|
-
},
|
|
3632
|
-
{
|
|
3633
|
-
"type": {
|
|
3634
|
-
"text": "<color>"
|
|
3635
|
-
},
|
|
3636
|
-
"description": "The background color of the palette.",
|
|
3637
|
-
"name": "--palette-background-color"
|
|
3638
|
-
},
|
|
3639
|
-
{
|
|
3640
|
-
"type": {
|
|
3641
|
-
"text": "<color>"
|
|
3642
|
-
},
|
|
3643
|
-
"description": "The color of the palette.",
|
|
3644
|
-
"name": "--palette-color"
|
|
3645
|
-
},
|
|
3646
|
-
{
|
|
3647
|
-
"type": {
|
|
3648
|
-
"text": "<length>"
|
|
3649
|
-
},
|
|
3650
|
-
"description": "The flex size for palette items.",
|
|
3651
|
-
"name": "--palette-column-flex-basis"
|
|
3652
|
-
},
|
|
3653
|
-
{
|
|
3654
|
-
"type": {
|
|
3655
|
-
"text": "<length>"
|
|
3656
|
-
},
|
|
3657
|
-
"description": "The radius of the palette corners.",
|
|
3658
|
-
"name": "--palette-corners"
|
|
3659
|
-
}
|
|
3660
|
-
],
|
|
3661
|
-
"members": [
|
|
3662
|
-
{
|
|
3663
|
-
"kind": "field",
|
|
3664
|
-
"name": "editMode",
|
|
3665
|
-
"description": "Whether the palette can be edited.",
|
|
3666
|
-
"type": {
|
|
3667
|
-
"text": "boolean"
|
|
3668
|
-
},
|
|
3669
|
-
"default": "false",
|
|
3670
|
-
"attribute": "editMode"
|
|
3671
|
-
},
|
|
3672
|
-
{
|
|
3673
|
-
"kind": "field",
|
|
3674
|
-
"name": "colors",
|
|
3675
|
-
"type": {
|
|
3676
|
-
"text": "string[]"
|
|
3677
|
-
},
|
|
3678
|
-
"privacy": "public",
|
|
3679
|
-
"default": "[]",
|
|
3680
|
-
"description": "The input colors the palette will display.",
|
|
3681
|
-
"attribute": "colors",
|
|
3682
|
-
"reflects": true
|
|
3683
|
-
},
|
|
3684
|
-
{
|
|
3685
|
-
"kind": "field",
|
|
3686
|
-
"name": "height",
|
|
3687
|
-
"type": {
|
|
3688
|
-
"text": "number"
|
|
3689
|
-
},
|
|
3690
|
-
"privacy": "public",
|
|
3691
|
-
"description": "The height of the palette.",
|
|
3692
|
-
"default": "150",
|
|
3693
|
-
"attribute": "height",
|
|
3694
|
-
"reflects": true
|
|
3695
|
-
},
|
|
3696
|
-
{
|
|
3697
|
-
"kind": "field",
|
|
3698
|
-
"name": "width",
|
|
3699
|
-
"type": {
|
|
3700
|
-
"text": "number"
|
|
3701
|
-
},
|
|
3702
|
-
"privacy": "public",
|
|
3703
|
-
"description": "The width of the palette.",
|
|
3704
|
-
"default": "700",
|
|
3705
|
-
"attribute": "width",
|
|
3706
|
-
"reflects": true
|
|
3707
|
-
},
|
|
3708
|
-
{
|
|
3709
|
-
"kind": "field",
|
|
3710
|
-
"name": "direction",
|
|
3711
|
-
"type": {
|
|
3712
|
-
"text": "Direction"
|
|
3713
|
-
},
|
|
3714
|
-
"privacy": "public",
|
|
3715
|
-
"description": "The direction the palette colors will face.",
|
|
3716
|
-
"default": "column",
|
|
3717
|
-
"attribute": "direction",
|
|
3718
|
-
"reflects": true
|
|
3719
|
-
},
|
|
3720
|
-
{
|
|
3721
|
-
"kind": "field",
|
|
3722
|
-
"name": "gradient",
|
|
3723
|
-
"type": {
|
|
3724
|
-
"text": "boolean"
|
|
3725
|
-
},
|
|
3726
|
-
"privacy": "public",
|
|
3727
|
-
"default": "false",
|
|
3728
|
-
"description": "Whether the colors will appear as a gradient.",
|
|
3729
|
-
"attribute": "gradient",
|
|
3730
|
-
"reflects": true
|
|
3731
|
-
},
|
|
3732
|
-
{
|
|
3733
|
-
"kind": "field",
|
|
3734
|
-
"name": "preventHover",
|
|
3735
|
-
"type": {
|
|
3736
|
-
"text": "boolean"
|
|
3737
|
-
},
|
|
3738
|
-
"privacy": "public",
|
|
3739
|
-
"default": "false",
|
|
3740
|
-
"description": "Whether hovering over the palette is allowed.",
|
|
3741
|
-
"attribute": "preventHover",
|
|
3742
|
-
"reflects": true
|
|
3743
|
-
},
|
|
3744
|
-
{
|
|
3745
|
-
"kind": "field",
|
|
3746
|
-
"name": "hideText",
|
|
3747
|
-
"type": {
|
|
3748
|
-
"text": "boolean"
|
|
3749
|
-
},
|
|
3750
|
-
"privacy": "public",
|
|
3751
|
-
"default": "false",
|
|
3752
|
-
"description": "Whether the text on each color is shown.",
|
|
3753
|
-
"attribute": "hideText",
|
|
3754
|
-
"reflects": true
|
|
3755
|
-
},
|
|
3756
|
-
{
|
|
3757
|
-
"kind": "field",
|
|
3758
|
-
"name": "override",
|
|
3759
|
-
"type": {
|
|
3760
|
-
"text": "boolean"
|
|
3761
|
-
},
|
|
3762
|
-
"privacy": "public",
|
|
3763
|
-
"default": "false",
|
|
3764
|
-
"description": "Whether the input bypasses validation checks.",
|
|
3765
|
-
"attribute": "override",
|
|
3766
|
-
"reflects": true
|
|
3767
|
-
},
|
|
3768
|
-
{
|
|
3769
|
-
"kind": "field",
|
|
3770
|
-
"name": "aliases",
|
|
3771
|
-
"type": {
|
|
3772
|
-
"text": "string[]"
|
|
3773
|
-
},
|
|
3774
|
-
"privacy": "public",
|
|
3775
|
-
"default": "[]",
|
|
3776
|
-
"description": "The aliases for each color.",
|
|
3777
|
-
"attribute": "aliases",
|
|
3778
|
-
"reflects": true
|
|
3779
|
-
},
|
|
3780
|
-
{
|
|
3781
|
-
"kind": "field",
|
|
3782
|
-
"name": "maxWidth",
|
|
3783
|
-
"type": {
|
|
3784
|
-
"text": "number"
|
|
3785
|
-
},
|
|
3786
|
-
"privacy": "public",
|
|
3787
|
-
"default": "0",
|
|
3788
|
-
"description": "The maximum width of the container. (So that the palette doesn't expand past its bounds)",
|
|
3789
|
-
"attribute": "maxWidth"
|
|
3790
|
-
},
|
|
3791
|
-
{
|
|
3792
|
-
"kind": "field",
|
|
3793
|
-
"name": "settings",
|
|
3794
|
-
"privacy": "public",
|
|
3795
|
-
"description": "Helper accessor for settings",
|
|
3796
|
-
"type": {
|
|
3797
|
-
"text": "PaletteSettings"
|
|
3798
|
-
}
|
|
3799
|
-
},
|
|
3800
|
-
{
|
|
3801
|
-
"kind": "field",
|
|
3802
|
-
"name": "status",
|
|
3803
|
-
"type": {
|
|
3804
|
-
"text": "Status"
|
|
3805
|
-
},
|
|
3806
|
-
"privacy": "public",
|
|
3807
|
-
"description": "The current status of the palette."
|
|
3808
|
-
},
|
|
3809
|
-
{
|
|
3810
|
-
"kind": "field",
|
|
3811
|
-
"name": "emitter",
|
|
3812
|
-
"type": {
|
|
3813
|
-
"text": "EventEmitter<EventMap>"
|
|
3814
|
-
},
|
|
3815
|
-
"privacy": "public",
|
|
3816
|
-
"default": "new EventEmitter<EventMap>()",
|
|
3817
|
-
"description": "Public way to subscribe to events."
|
|
3818
|
-
},
|
|
3819
|
-
{
|
|
3820
|
-
"kind": "field",
|
|
3821
|
-
"name": "pluginSettings",
|
|
3822
|
-
"type": {
|
|
3823
|
-
"text": "ColorPaletteSettings"
|
|
3824
|
-
},
|
|
3825
|
-
"default": "defaultSettings",
|
|
3826
|
-
"description": "Extended settings",
|
|
3827
|
-
"attribute": "pluginSettings"
|
|
3828
|
-
},
|
|
3829
|
-
{
|
|
3830
|
-
"kind": "method",
|
|
3831
|
-
"name": "setStatusAndColors",
|
|
3832
|
-
"description": "Sets the current status and parses colors."
|
|
3833
|
-
},
|
|
3834
|
-
{
|
|
3835
|
-
"kind": "method",
|
|
3836
|
-
"name": "getPaletteWidth",
|
|
3837
|
-
"privacy": "public",
|
|
3838
|
-
"return": {
|
|
3839
|
-
"type": {
|
|
3840
|
-
"text": ""
|
|
3841
|
-
}
|
|
3842
|
-
}
|
|
3959
|
+
},
|
|
3960
|
+
"description": "The height of the palette.",
|
|
3961
|
+
"name": "--palette-height"
|
|
3843
3962
|
},
|
|
3844
3963
|
{
|
|
3845
|
-
"
|
|
3846
|
-
|
|
3847
|
-
"privacy": "protected",
|
|
3848
|
-
"return": {
|
|
3849
|
-
"type": {
|
|
3850
|
-
"text": "TemplateResult | typeof nothing"
|
|
3851
|
-
}
|
|
3964
|
+
"type": {
|
|
3965
|
+
"text": "<length>"
|
|
3852
3966
|
},
|
|
3853
|
-
"description": "
|
|
3967
|
+
"description": "The width of the palette.",
|
|
3968
|
+
"name": "--palette-width"
|
|
3854
3969
|
},
|
|
3855
3970
|
{
|
|
3856
|
-
"
|
|
3857
|
-
|
|
3858
|
-
"privacy": "protected",
|
|
3859
|
-
"return": {
|
|
3860
|
-
"type": {
|
|
3861
|
-
"text": "TemplateResult"
|
|
3862
|
-
}
|
|
3971
|
+
"type": {
|
|
3972
|
+
"text": "<color>"
|
|
3863
3973
|
},
|
|
3864
|
-
"description": "
|
|
3974
|
+
"description": "The background color of the palette.",
|
|
3975
|
+
"name": "--palette-background-color"
|
|
3865
3976
|
},
|
|
3866
3977
|
{
|
|
3867
|
-
"
|
|
3868
|
-
|
|
3869
|
-
"privacy": "protected",
|
|
3870
|
-
"return": {
|
|
3871
|
-
"type": {
|
|
3872
|
-
"text": "TemplateResult"
|
|
3873
|
-
}
|
|
3978
|
+
"type": {
|
|
3979
|
+
"text": "<color>"
|
|
3874
3980
|
},
|
|
3875
|
-
"description": "
|
|
3981
|
+
"description": "The color of the palette.",
|
|
3982
|
+
"name": "--palette-color"
|
|
3876
3983
|
},
|
|
3877
3984
|
{
|
|
3878
|
-
"
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
"
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
"name": "message",
|
|
3891
|
-
"default": "''"
|
|
3892
|
-
}
|
|
3893
|
-
],
|
|
3894
|
-
"description": "Create invalid palette based on palette status."
|
|
3985
|
+
"type": {
|
|
3986
|
+
"text": "<length>"
|
|
3987
|
+
},
|
|
3988
|
+
"description": "The flex size for palette items.",
|
|
3989
|
+
"name": "--palette-column-flex-basis"
|
|
3990
|
+
},
|
|
3991
|
+
{
|
|
3992
|
+
"type": {
|
|
3993
|
+
"text": "<length>"
|
|
3994
|
+
},
|
|
3995
|
+
"description": "The radius of the palette corners.",
|
|
3996
|
+
"name": "--palette-corners"
|
|
3895
3997
|
}
|
|
3896
3998
|
],
|
|
3897
|
-
"
|
|
3999
|
+
"members": [
|
|
3898
4000
|
{
|
|
4001
|
+
"kind": "field",
|
|
3899
4002
|
"name": "editMode",
|
|
3900
4003
|
"description": "Whether the palette can be edited.",
|
|
3901
4004
|
"type": {
|
|
3902
4005
|
"text": "boolean"
|
|
3903
4006
|
},
|
|
3904
4007
|
"default": "false",
|
|
3905
|
-
"
|
|
4008
|
+
"attribute": "editMode"
|
|
3906
4009
|
},
|
|
3907
4010
|
{
|
|
4011
|
+
"kind": "field",
|
|
3908
4012
|
"name": "colors",
|
|
3909
4013
|
"type": {
|
|
3910
4014
|
"text": "string[]"
|
|
3911
4015
|
},
|
|
4016
|
+
"privacy": "public",
|
|
3912
4017
|
"default": "[]",
|
|
3913
4018
|
"description": "The input colors the palette will display.",
|
|
3914
|
-
"
|
|
4019
|
+
"attribute": "colors",
|
|
4020
|
+
"reflects": true
|
|
3915
4021
|
},
|
|
3916
4022
|
{
|
|
4023
|
+
"kind": "field",
|
|
3917
4024
|
"name": "height",
|
|
3918
4025
|
"type": {
|
|
3919
4026
|
"text": "number"
|
|
3920
4027
|
},
|
|
4028
|
+
"privacy": "public",
|
|
3921
4029
|
"description": "The height of the palette.",
|
|
3922
4030
|
"default": "150",
|
|
3923
|
-
"
|
|
4031
|
+
"attribute": "height",
|
|
4032
|
+
"reflects": true
|
|
3924
4033
|
},
|
|
3925
4034
|
{
|
|
4035
|
+
"kind": "field",
|
|
3926
4036
|
"name": "width",
|
|
3927
4037
|
"type": {
|
|
3928
4038
|
"text": "number"
|
|
3929
4039
|
},
|
|
4040
|
+
"privacy": "public",
|
|
3930
4041
|
"description": "The width of the palette.",
|
|
3931
4042
|
"default": "700",
|
|
3932
|
-
"
|
|
4043
|
+
"attribute": "width",
|
|
4044
|
+
"reflects": true
|
|
3933
4045
|
},
|
|
3934
4046
|
{
|
|
4047
|
+
"kind": "field",
|
|
3935
4048
|
"name": "direction",
|
|
3936
4049
|
"type": {
|
|
3937
4050
|
"text": "Direction"
|
|
3938
4051
|
},
|
|
4052
|
+
"privacy": "public",
|
|
3939
4053
|
"description": "The direction the palette colors will face.",
|
|
3940
4054
|
"default": "column",
|
|
3941
|
-
"
|
|
4055
|
+
"attribute": "direction",
|
|
4056
|
+
"reflects": true
|
|
3942
4057
|
},
|
|
3943
4058
|
{
|
|
4059
|
+
"kind": "field",
|
|
3944
4060
|
"name": "gradient",
|
|
3945
4061
|
"type": {
|
|
3946
4062
|
"text": "boolean"
|
|
3947
4063
|
},
|
|
4064
|
+
"privacy": "public",
|
|
3948
4065
|
"default": "false",
|
|
3949
4066
|
"description": "Whether the colors will appear as a gradient.",
|
|
3950
|
-
"
|
|
4067
|
+
"attribute": "gradient",
|
|
4068
|
+
"reflects": true
|
|
3951
4069
|
},
|
|
3952
4070
|
{
|
|
4071
|
+
"kind": "field",
|
|
3953
4072
|
"name": "preventHover",
|
|
3954
4073
|
"type": {
|
|
3955
4074
|
"text": "boolean"
|
|
3956
4075
|
},
|
|
4076
|
+
"privacy": "public",
|
|
3957
4077
|
"default": "false",
|
|
3958
4078
|
"description": "Whether hovering over the palette is allowed.",
|
|
3959
|
-
"
|
|
4079
|
+
"attribute": "preventHover",
|
|
4080
|
+
"reflects": true
|
|
3960
4081
|
},
|
|
3961
4082
|
{
|
|
4083
|
+
"kind": "field",
|
|
3962
4084
|
"name": "hideText",
|
|
3963
4085
|
"type": {
|
|
3964
4086
|
"text": "boolean"
|
|
3965
4087
|
},
|
|
4088
|
+
"privacy": "public",
|
|
3966
4089
|
"default": "false",
|
|
3967
4090
|
"description": "Whether the text on each color is shown.",
|
|
3968
|
-
"
|
|
4091
|
+
"attribute": "hideText",
|
|
4092
|
+
"reflects": true
|
|
3969
4093
|
},
|
|
3970
4094
|
{
|
|
4095
|
+
"kind": "field",
|
|
3971
4096
|
"name": "override",
|
|
3972
4097
|
"type": {
|
|
3973
4098
|
"text": "boolean"
|
|
3974
4099
|
},
|
|
4100
|
+
"privacy": "public",
|
|
3975
4101
|
"default": "false",
|
|
3976
4102
|
"description": "Whether the input bypasses validation checks.",
|
|
3977
|
-
"
|
|
4103
|
+
"attribute": "override",
|
|
4104
|
+
"reflects": true
|
|
3978
4105
|
},
|
|
3979
4106
|
{
|
|
4107
|
+
"kind": "field",
|
|
3980
4108
|
"name": "aliases",
|
|
3981
4109
|
"type": {
|
|
3982
4110
|
"text": "string[]"
|
|
3983
4111
|
},
|
|
4112
|
+
"privacy": "public",
|
|
3984
4113
|
"default": "[]",
|
|
3985
4114
|
"description": "The aliases for each color.",
|
|
3986
|
-
"
|
|
4115
|
+
"attribute": "aliases",
|
|
4116
|
+
"reflects": true
|
|
3987
4117
|
},
|
|
3988
4118
|
{
|
|
4119
|
+
"kind": "field",
|
|
3989
4120
|
"name": "maxWidth",
|
|
3990
4121
|
"type": {
|
|
3991
4122
|
"text": "number"
|
|
3992
4123
|
},
|
|
4124
|
+
"privacy": "public",
|
|
3993
4125
|
"default": "0",
|
|
3994
4126
|
"description": "The maximum width of the container. (So that the palette doesn't expand past its bounds)",
|
|
3995
|
-
"
|
|
3996
|
-
},
|
|
3997
|
-
{
|
|
3998
|
-
"name": "pluginSettings",
|
|
3999
|
-
"type": {
|
|
4000
|
-
"text": "ColorPaletteSettings"
|
|
4001
|
-
},
|
|
4002
|
-
"default": "defaultSettings",
|
|
4003
|
-
"description": "Extended settings",
|
|
4004
|
-
"fieldName": "pluginSettings"
|
|
4005
|
-
}
|
|
4006
|
-
],
|
|
4007
|
-
"superclass": {
|
|
4008
|
-
"name": "LitElement",
|
|
4009
|
-
"package": "lit"
|
|
4010
|
-
},
|
|
4011
|
-
"tagName": "color-palette",
|
|
4012
|
-
"customElement": true
|
|
4013
|
-
}
|
|
4014
|
-
],
|
|
4015
|
-
"exports": [
|
|
4016
|
-
{
|
|
4017
|
-
"kind": "js",
|
|
4018
|
-
"name": "ColorPalette",
|
|
4019
|
-
"declaration": {
|
|
4020
|
-
"name": "ColorPalette",
|
|
4021
|
-
"module": "src/components/color-palette/color-palette.ts"
|
|
4022
|
-
}
|
|
4023
|
-
},
|
|
4024
|
-
{
|
|
4025
|
-
"kind": "custom-element-definition",
|
|
4026
|
-
"name": "color-palette",
|
|
4027
|
-
"declaration": {
|
|
4028
|
-
"name": "ColorPalette",
|
|
4029
|
-
"module": "src/components/color-palette/color-palette.ts"
|
|
4030
|
-
}
|
|
4031
|
-
}
|
|
4032
|
-
]
|
|
4033
|
-
},
|
|
4034
|
-
{
|
|
4035
|
-
"kind": "javascript-module",
|
|
4036
|
-
"path": "src/components/draw-svg/draw-svg.styles.ts",
|
|
4037
|
-
"declarations": [],
|
|
4038
|
-
"exports": [
|
|
4039
|
-
{
|
|
4040
|
-
"kind": "js",
|
|
4041
|
-
"name": "default",
|
|
4042
|
-
"declaration": {
|
|
4043
|
-
"module": "src/components/draw-svg/draw-svg.styles.ts"
|
|
4044
|
-
}
|
|
4045
|
-
}
|
|
4046
|
-
]
|
|
4047
|
-
},
|
|
4048
|
-
{
|
|
4049
|
-
"kind": "javascript-module",
|
|
4050
|
-
"path": "src/components/draw-svg/draw-svg.ts",
|
|
4051
|
-
"declarations": [
|
|
4052
|
-
{
|
|
4053
|
-
"kind": "class",
|
|
4054
|
-
"description": "Animates the provided SVG paths as if they were being drawn.",
|
|
4055
|
-
"name": "DrawSvg",
|
|
4056
|
-
"members": [
|
|
4057
|
-
{
|
|
4058
|
-
"kind": "field",
|
|
4059
|
-
"name": "isIntersecting",
|
|
4060
|
-
"type": {
|
|
4061
|
-
"text": "boolean"
|
|
4062
|
-
},
|
|
4063
|
-
"privacy": "public",
|
|
4064
|
-
"default": "false",
|
|
4065
|
-
"description": "Whether the SVG is intersecting with the client viewport. Useful for determining when to animate."
|
|
4066
|
-
},
|
|
4067
|
-
{
|
|
4068
|
-
"kind": "method",
|
|
4069
|
-
"name": "svgClasses",
|
|
4070
|
-
"privacy": "protected",
|
|
4071
|
-
"return": {
|
|
4072
|
-
"type": {
|
|
4073
|
-
"text": "{}"
|
|
4074
|
-
}
|
|
4075
|
-
},
|
|
4076
|
-
"inheritedFrom": {
|
|
4077
|
-
"name": "ResponsiveSvg",
|
|
4078
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4079
|
-
}
|
|
4127
|
+
"attribute": "maxWidth"
|
|
4080
4128
|
},
|
|
4081
4129
|
{
|
|
4082
4130
|
"kind": "field",
|
|
4083
|
-
"name": "
|
|
4084
|
-
"type": {
|
|
4085
|
-
"text": "EventEmitter<EventMap>"
|
|
4086
|
-
},
|
|
4131
|
+
"name": "settings",
|
|
4087
4132
|
"privacy": "public",
|
|
4088
|
-
"
|
|
4089
|
-
"
|
|
4090
|
-
|
|
4091
|
-
{
|
|
4092
|
-
"kind": "field",
|
|
4093
|
-
"name": "autofit",
|
|
4094
|
-
"type": {
|
|
4095
|
-
"text": "boolean"
|
|
4096
|
-
},
|
|
4097
|
-
"default": "false",
|
|
4098
|
-
"description": "The SVG will attempt to fill its container.",
|
|
4099
|
-
"attribute": "autofit",
|
|
4100
|
-
"reflects": true,
|
|
4101
|
-
"inheritedFrom": {
|
|
4102
|
-
"name": "ResponsiveSvg",
|
|
4103
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4104
|
-
}
|
|
4105
|
-
},
|
|
4106
|
-
{
|
|
4107
|
-
"kind": "field",
|
|
4108
|
-
"name": "svgColors",
|
|
4109
|
-
"type": {
|
|
4110
|
-
"text": "boolean"
|
|
4111
|
-
},
|
|
4112
|
-
"default": "false",
|
|
4113
|
-
"description": "Use the colors from the SVG input.",
|
|
4114
|
-
"attribute": "svgColors",
|
|
4115
|
-
"reflects": true,
|
|
4116
|
-
"inheritedFrom": {
|
|
4117
|
-
"name": "ResponsiveSvg",
|
|
4118
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4119
|
-
}
|
|
4120
|
-
},
|
|
4121
|
-
{
|
|
4122
|
-
"kind": "field",
|
|
4123
|
-
"name": "svg",
|
|
4124
|
-
"description": "The SVG to responsively size.\r\nMust use a property expression (.) to set",
|
|
4125
|
-
"type": {
|
|
4126
|
-
"text": "SVGElement | TemplateResult<2> | string"
|
|
4127
|
-
},
|
|
4128
|
-
"attribute": "svg",
|
|
4129
|
-
"inheritedFrom": {
|
|
4130
|
-
"name": "ResponsiveSvg",
|
|
4131
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4133
|
+
"description": "Helper accessor for settings",
|
|
4134
|
+
"type": {
|
|
4135
|
+
"text": "PaletteSettings"
|
|
4132
4136
|
}
|
|
4133
4137
|
},
|
|
4134
4138
|
{
|
|
4135
4139
|
"kind": "field",
|
|
4136
|
-
"name": "
|
|
4137
|
-
"description": "Set whether SVG preserves its aspect ratio alignment or spacing.",
|
|
4140
|
+
"name": "status",
|
|
4138
4141
|
"type": {
|
|
4139
|
-
"text": "
|
|
4142
|
+
"text": "Status"
|
|
4140
4143
|
},
|
|
4141
|
-
"
|
|
4142
|
-
"
|
|
4143
|
-
"reflects": true,
|
|
4144
|
-
"inheritedFrom": {
|
|
4145
|
-
"name": "ResponsiveSvg",
|
|
4146
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4147
|
-
}
|
|
4144
|
+
"privacy": "public",
|
|
4145
|
+
"description": "The current status of the palette."
|
|
4148
4146
|
},
|
|
4149
4147
|
{
|
|
4150
4148
|
"kind": "field",
|
|
4151
|
-
"name": "
|
|
4149
|
+
"name": "emitter",
|
|
4152
4150
|
"type": {
|
|
4153
|
-
"text": "
|
|
4151
|
+
"text": "EventEmitter<EventMap>"
|
|
4154
4152
|
},
|
|
4155
|
-
"privacy": "
|
|
4156
|
-
"default": "
|
|
4157
|
-
"description": "
|
|
4158
|
-
"inheritedFrom": {
|
|
4159
|
-
"name": "ResponsiveSvg",
|
|
4160
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4161
|
-
}
|
|
4153
|
+
"privacy": "public",
|
|
4154
|
+
"default": "new EventEmitter<EventMap>()",
|
|
4155
|
+
"description": "Public way to subscribe to events."
|
|
4162
4156
|
},
|
|
4163
4157
|
{
|
|
4164
4158
|
"kind": "field",
|
|
4165
|
-
"name": "
|
|
4166
|
-
"
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4159
|
+
"name": "pluginSettings",
|
|
4160
|
+
"type": {
|
|
4161
|
+
"text": "ColorPaletteSettings"
|
|
4162
|
+
},
|
|
4163
|
+
"default": "defaultSettings",
|
|
4164
|
+
"description": "Extended settings",
|
|
4165
|
+
"attribute": "pluginSettings"
|
|
4172
4166
|
},
|
|
4173
4167
|
{
|
|
4174
|
-
"kind": "
|
|
4175
|
-
"name": "
|
|
4176
|
-
"
|
|
4177
|
-
"default": "new StyleController(this, '--svg-height', (val) => { this.viewBox = { ...this.viewBox, height: parseFloat(val) || 0 } })",
|
|
4178
|
-
"inheritedFrom": {
|
|
4179
|
-
"name": "ResponsiveSvg",
|
|
4180
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4181
|
-
}
|
|
4168
|
+
"kind": "method",
|
|
4169
|
+
"name": "setStatusAndColors",
|
|
4170
|
+
"description": "Sets the current status and parses colors."
|
|
4182
4171
|
},
|
|
4183
4172
|
{
|
|
4184
4173
|
"kind": "method",
|
|
4185
|
-
"name": "
|
|
4174
|
+
"name": "getPaletteWidth",
|
|
4186
4175
|
"privacy": "public",
|
|
4187
4176
|
"return": {
|
|
4188
4177
|
"type": {
|
|
4189
4178
|
"text": ""
|
|
4190
4179
|
}
|
|
4180
|
+
}
|
|
4181
|
+
},
|
|
4182
|
+
{
|
|
4183
|
+
"kind": "method",
|
|
4184
|
+
"name": "createPalette",
|
|
4185
|
+
"privacy": "protected",
|
|
4186
|
+
"return": {
|
|
4187
|
+
"type": {
|
|
4188
|
+
"text": "TemplateResult | typeof nothing"
|
|
4189
|
+
}
|
|
4190
|
+
},
|
|
4191
|
+
"description": "Creates a color palette or gradient palette depending on settings."
|
|
4192
|
+
},
|
|
4193
|
+
{
|
|
4194
|
+
"kind": "method",
|
|
4195
|
+
"name": "createColors",
|
|
4196
|
+
"privacy": "protected",
|
|
4197
|
+
"return": {
|
|
4198
|
+
"type": {
|
|
4199
|
+
"text": "TemplateResult"
|
|
4200
|
+
}
|
|
4201
|
+
},
|
|
4202
|
+
"description": "Create a color palette."
|
|
4203
|
+
},
|
|
4204
|
+
{
|
|
4205
|
+
"kind": "method",
|
|
4206
|
+
"name": "createGradient",
|
|
4207
|
+
"privacy": "protected",
|
|
4208
|
+
"return": {
|
|
4209
|
+
"type": {
|
|
4210
|
+
"text": "TemplateResult"
|
|
4211
|
+
}
|
|
4191
4212
|
},
|
|
4213
|
+
"description": "Create a gradient palette."
|
|
4214
|
+
},
|
|
4215
|
+
{
|
|
4216
|
+
"kind": "method",
|
|
4217
|
+
"name": "createInvalidPalette",
|
|
4218
|
+
"privacy": "protected",
|
|
4192
4219
|
"parameters": [
|
|
4193
4220
|
{
|
|
4194
|
-
"name": "
|
|
4221
|
+
"name": "type",
|
|
4195
4222
|
"type": {
|
|
4196
|
-
"text": "
|
|
4223
|
+
"text": "Status"
|
|
4197
4224
|
},
|
|
4198
|
-
"description": "
|
|
4225
|
+
"description": "Palette status type"
|
|
4226
|
+
},
|
|
4227
|
+
{
|
|
4228
|
+
"name": "message",
|
|
4229
|
+
"default": "''"
|
|
4199
4230
|
}
|
|
4200
4231
|
],
|
|
4201
|
-
"description": "
|
|
4202
|
-
"inheritedFrom": {
|
|
4203
|
-
"name": "ResponsiveSvg",
|
|
4204
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4205
|
-
}
|
|
4232
|
+
"description": "Create invalid palette based on palette status."
|
|
4206
4233
|
}
|
|
4207
4234
|
],
|
|
4208
|
-
"
|
|
4235
|
+
"attributes": [
|
|
4209
4236
|
{
|
|
4237
|
+
"name": "editMode",
|
|
4238
|
+
"description": "Whether the palette can be edited.",
|
|
4210
4239
|
"type": {
|
|
4211
4240
|
"text": "boolean"
|
|
4212
4241
|
},
|
|
4213
|
-
"
|
|
4214
|
-
"
|
|
4215
|
-
}
|
|
4216
|
-
],
|
|
4217
|
-
"superclass": {
|
|
4218
|
-
"name": "ResponsiveSvg",
|
|
4219
|
-
"module": "/src/components/responsive-svg/responsive-svg.js"
|
|
4220
|
-
},
|
|
4221
|
-
"tagName": "draw-svg",
|
|
4222
|
-
"customElement": true,
|
|
4223
|
-
"cssParts": [
|
|
4224
|
-
{
|
|
4225
|
-
"description": "Styles the SVG element.",
|
|
4226
|
-
"name": "__svg",
|
|
4227
|
-
"inheritedFrom": {
|
|
4228
|
-
"name": "ResponsiveSvg",
|
|
4229
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4230
|
-
}
|
|
4242
|
+
"default": "false",
|
|
4243
|
+
"fieldName": "editMode"
|
|
4231
4244
|
},
|
|
4232
4245
|
{
|
|
4233
|
-
"
|
|
4234
|
-
"
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
"cssProperties": [
|
|
4246
|
+
"name": "colors",
|
|
4247
|
+
"type": {
|
|
4248
|
+
"text": "string[]"
|
|
4249
|
+
},
|
|
4250
|
+
"default": "[]",
|
|
4251
|
+
"description": "The input colors the palette will display.",
|
|
4252
|
+
"fieldName": "colors"
|
|
4253
|
+
},
|
|
4242
4254
|
{
|
|
4255
|
+
"name": "height",
|
|
4243
4256
|
"type": {
|
|
4244
|
-
"text": "
|
|
4257
|
+
"text": "number"
|
|
4245
4258
|
},
|
|
4246
|
-
"description": "
|
|
4247
|
-
"
|
|
4248
|
-
"
|
|
4249
|
-
"name": "ResponsiveSvg",
|
|
4250
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4251
|
-
}
|
|
4259
|
+
"description": "The height of the palette.",
|
|
4260
|
+
"default": "150",
|
|
4261
|
+
"fieldName": "height"
|
|
4252
4262
|
},
|
|
4253
4263
|
{
|
|
4264
|
+
"name": "width",
|
|
4254
4265
|
"type": {
|
|
4255
|
-
"text": "
|
|
4266
|
+
"text": "number"
|
|
4256
4267
|
},
|
|
4257
|
-
"description": "
|
|
4258
|
-
"
|
|
4259
|
-
"
|
|
4260
|
-
"name": "ResponsiveSvg",
|
|
4261
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4262
|
-
}
|
|
4268
|
+
"description": "The width of the palette.",
|
|
4269
|
+
"default": "700",
|
|
4270
|
+
"fieldName": "width"
|
|
4263
4271
|
},
|
|
4264
4272
|
{
|
|
4273
|
+
"name": "direction",
|
|
4265
4274
|
"type": {
|
|
4266
|
-
"text": "
|
|
4275
|
+
"text": "Direction"
|
|
4267
4276
|
},
|
|
4268
|
-
"description": "
|
|
4269
|
-
"
|
|
4270
|
-
"
|
|
4271
|
-
"name": "ResponsiveSvg",
|
|
4272
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4273
|
-
}
|
|
4277
|
+
"description": "The direction the palette colors will face.",
|
|
4278
|
+
"default": "column",
|
|
4279
|
+
"fieldName": "direction"
|
|
4274
4280
|
},
|
|
4275
4281
|
{
|
|
4282
|
+
"name": "gradient",
|
|
4276
4283
|
"type": {
|
|
4277
|
-
"text": "
|
|
4284
|
+
"text": "boolean"
|
|
4278
4285
|
},
|
|
4279
|
-
"
|
|
4280
|
-
"
|
|
4281
|
-
"
|
|
4282
|
-
"name": "ResponsiveSvg",
|
|
4283
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4284
|
-
}
|
|
4286
|
+
"default": "false",
|
|
4287
|
+
"description": "Whether the colors will appear as a gradient.",
|
|
4288
|
+
"fieldName": "gradient"
|
|
4285
4289
|
},
|
|
4286
4290
|
{
|
|
4291
|
+
"name": "preventHover",
|
|
4287
4292
|
"type": {
|
|
4288
|
-
"text": "
|
|
4293
|
+
"text": "boolean"
|
|
4289
4294
|
},
|
|
4290
|
-
"
|
|
4291
|
-
"
|
|
4292
|
-
"
|
|
4293
|
-
|
|
4294
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4295
|
-
}
|
|
4296
|
-
}
|
|
4297
|
-
],
|
|
4298
|
-
"attributes": [
|
|
4295
|
+
"default": "false",
|
|
4296
|
+
"description": "Whether hovering over the palette is allowed.",
|
|
4297
|
+
"fieldName": "preventHover"
|
|
4298
|
+
},
|
|
4299
4299
|
{
|
|
4300
|
-
"name": "
|
|
4300
|
+
"name": "hideText",
|
|
4301
4301
|
"type": {
|
|
4302
4302
|
"text": "boolean"
|
|
4303
4303
|
},
|
|
4304
4304
|
"default": "false",
|
|
4305
|
-
"description": "
|
|
4306
|
-
"fieldName": "
|
|
4307
|
-
"inheritedFrom": {
|
|
4308
|
-
"name": "ResponsiveSvg",
|
|
4309
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4310
|
-
}
|
|
4305
|
+
"description": "Whether the text on each color is shown.",
|
|
4306
|
+
"fieldName": "hideText"
|
|
4311
4307
|
},
|
|
4312
4308
|
{
|
|
4313
|
-
"name": "
|
|
4309
|
+
"name": "override",
|
|
4314
4310
|
"type": {
|
|
4315
4311
|
"text": "boolean"
|
|
4316
4312
|
},
|
|
4317
4313
|
"default": "false",
|
|
4318
|
-
"description": "
|
|
4319
|
-
"fieldName": "
|
|
4320
|
-
"inheritedFrom": {
|
|
4321
|
-
"name": "ResponsiveSvg",
|
|
4322
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4323
|
-
}
|
|
4314
|
+
"description": "Whether the input bypasses validation checks.",
|
|
4315
|
+
"fieldName": "override"
|
|
4324
4316
|
},
|
|
4325
4317
|
{
|
|
4326
|
-
"name": "
|
|
4327
|
-
"description": "The SVG to responsively size.\r\nMust use a property expression (.) to set",
|
|
4318
|
+
"name": "aliases",
|
|
4328
4319
|
"type": {
|
|
4329
|
-
"text": "
|
|
4320
|
+
"text": "string[]"
|
|
4330
4321
|
},
|
|
4331
|
-
"
|
|
4332
|
-
"
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4322
|
+
"default": "[]",
|
|
4323
|
+
"description": "The aliases for each color.",
|
|
4324
|
+
"fieldName": "aliases"
|
|
4325
|
+
},
|
|
4326
|
+
{
|
|
4327
|
+
"name": "maxWidth",
|
|
4328
|
+
"type": {
|
|
4329
|
+
"text": "number"
|
|
4330
|
+
},
|
|
4331
|
+
"default": "0",
|
|
4332
|
+
"description": "The maximum width of the container. (So that the palette doesn't expand past its bounds)",
|
|
4333
|
+
"fieldName": "maxWidth"
|
|
4336
4334
|
},
|
|
4337
4335
|
{
|
|
4338
|
-
"name": "
|
|
4339
|
-
"description": "Set whether SVG preserves its aspect ratio alignment or spacing.",
|
|
4336
|
+
"name": "pluginSettings",
|
|
4340
4337
|
"type": {
|
|
4341
|
-
"text": "
|
|
4338
|
+
"text": "ColorPaletteSettings"
|
|
4342
4339
|
},
|
|
4343
|
-
"default": "
|
|
4344
|
-
"
|
|
4345
|
-
"
|
|
4346
|
-
"name": "ResponsiveSvg",
|
|
4347
|
-
"module": "src/components/responsive-svg/responsive-svg.ts"
|
|
4348
|
-
}
|
|
4340
|
+
"default": "defaultSettings",
|
|
4341
|
+
"description": "Extended settings",
|
|
4342
|
+
"fieldName": "pluginSettings"
|
|
4349
4343
|
}
|
|
4350
|
-
]
|
|
4344
|
+
],
|
|
4345
|
+
"superclass": {
|
|
4346
|
+
"name": "LitElement",
|
|
4347
|
+
"package": "lit"
|
|
4348
|
+
},
|
|
4349
|
+
"tagName": "color-palette",
|
|
4350
|
+
"customElement": true
|
|
4351
4351
|
}
|
|
4352
4352
|
],
|
|
4353
4353
|
"exports": [
|
|
4354
4354
|
{
|
|
4355
4355
|
"kind": "js",
|
|
4356
|
-
"name": "
|
|
4356
|
+
"name": "ColorPalette",
|
|
4357
4357
|
"declaration": {
|
|
4358
|
-
"name": "
|
|
4359
|
-
"module": "src/components/
|
|
4358
|
+
"name": "ColorPalette",
|
|
4359
|
+
"module": "src/components/color-palette/color-palette.ts"
|
|
4360
4360
|
}
|
|
4361
4361
|
},
|
|
4362
4362
|
{
|
|
4363
4363
|
"kind": "custom-element-definition",
|
|
4364
|
-
"name": "
|
|
4364
|
+
"name": "color-palette",
|
|
4365
4365
|
"declaration": {
|
|
4366
|
-
"name": "
|
|
4367
|
-
"module": "src/components/
|
|
4366
|
+
"name": "ColorPalette",
|
|
4367
|
+
"module": "src/components/color-palette/color-palette.ts"
|
|
4368
4368
|
}
|
|
4369
4369
|
}
|
|
4370
4370
|
]
|
|
@@ -4524,13 +4524,13 @@
|
|
|
4524
4524
|
"kind": "field",
|
|
4525
4525
|
"name": "_widthController",
|
|
4526
4526
|
"privacy": "private",
|
|
4527
|
-
"default": "new StyleController(this, '--svg-width', (val) => { this.viewBox = { ...this.viewBox, width:
|
|
4527
|
+
"default": "new StyleController(this, '--svg-width', (val) => { const width = parseFloat(val); if(isNaN(width) || width <= 0) return; this.viewBox = { ...this.viewBox, width: width || 0 }; })"
|
|
4528
4528
|
},
|
|
4529
4529
|
{
|
|
4530
4530
|
"kind": "field",
|
|
4531
4531
|
"name": "_heightController",
|
|
4532
4532
|
"privacy": "private",
|
|
4533
|
-
"default": "new StyleController(this, '--svg-height', (val) => { this.viewBox = { ...this.viewBox, height:
|
|
4533
|
+
"default": "new StyleController(this, '--svg-height', (val) => { const height = parseFloat(val); if(isNaN(height) || height <= 0) return; this.viewBox = { ...this.viewBox, height: height || 0 }; })"
|
|
4534
4534
|
},
|
|
4535
4535
|
{
|
|
4536
4536
|
"kind": "method",
|
|
@@ -5063,6 +5063,90 @@
|
|
|
5063
5063
|
}
|
|
5064
5064
|
]
|
|
5065
5065
|
},
|
|
5066
|
+
{
|
|
5067
|
+
"kind": "javascript-module",
|
|
5068
|
+
"path": "dist/components/color-palette/menu/color-palette-menu.js",
|
|
5069
|
+
"declarations": [
|
|
5070
|
+
{
|
|
5071
|
+
"kind": "variable",
|
|
5072
|
+
"name": "s",
|
|
5073
|
+
"default": "class extends y { constructor() { super(...arguments), this.colors = [], this.editMode = !1, this.copyFormat = v.copyFormat, this.reorder = !1, this.emitter = new C(); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return c` ${this.reorder ? this.reorderItems() : this.menuItems()} `; } /** Renders the menu items. */ menuItems() { const i = { colors: this.colors, settings: this.settings }; return c` <menu> <li> <button @click=${(t) => { t.stopPropagation(), this.reorder = !this.reorder; }} > ${r(E)} <span>Reorder</span> </button> </li> <li> <button @click=${() => { this.emitter.emit(\"openEditor\"); }} > ${r(P)} <span>Edit Mode</span> </button> </li> ${// Only show toggle edit mode option when palette is not a gradient this.settings?.gradient ? d : c` <li> <button @click=${() => { this.emitter.emit(\"editMode\", !this.editMode); }} > ${r(k)} <span>Quick Edit</span> ${this.editMode ? r(M) : d} </button> </li> `} <hr> <li> <button @click=${() => { const t = this.colors.map((o) => { const e = u(o).rgb(); return `rgb(${e[0]}, ${e[1]}, ${e[2]})`; }); this.emitter.emit(\"change\", t); }} > ${r(h)} <span>Convert to RGB</span> </button> </li> <li> <button @click=${() => { const t = this.colors.map((o) => { const e = u(o).hsl(); return `hsl(${e[0]} ${e[1]}% ${e[2]}%)`; }); this.emitter.emit(\"change\", t); }} > ${r(h)} <span>Convert to HSL</span> </button> </li> <li> <button @click=${() => { const t = this.colors.map((o) => u(o).hex(2)); this.emitter.emit(\"change\", t); }} > ${r(h)} <span>Convert to HEX</span> </button> </li> <hr> <li> <button @click=${async () => { await b(JSON.stringify(i), this.copyFormat), this.emitter.emit(\"change\", []); }} > ${r(O)} <span>Cut</span> </button> </li> <li> <button @click=${async () => { await b(JSON.stringify(i), this.copyFormat); }} > ${r(w)} <span>Copy</span> </button> </li> </menu> `; } /** Renders the reorder items. */ reorderItems() { const i = (t) => { t instanceof _ && (t.emitter.clear(), t.emitter.on(\"submit\", (o) => { this.emitter.emit(\"change\", o), this.reorder = !1; })); }; return c` <color-palette-reorder .colors=${this.colors} ${S(i)} > </color-palette-reorder> `; } }"
|
|
5074
|
+
}
|
|
5075
|
+
],
|
|
5076
|
+
"exports": [
|
|
5077
|
+
{
|
|
5078
|
+
"kind": "js",
|
|
5079
|
+
"name": "ColorPaletteMenu",
|
|
5080
|
+
"declaration": {
|
|
5081
|
+
"name": "s",
|
|
5082
|
+
"module": "dist/components/color-palette/menu/color-palette-menu.js"
|
|
5083
|
+
}
|
|
5084
|
+
}
|
|
5085
|
+
]
|
|
5086
|
+
},
|
|
5087
|
+
{
|
|
5088
|
+
"kind": "javascript-module",
|
|
5089
|
+
"path": "dist/components/color-palette/menu/color-palette-menu.styles.js",
|
|
5090
|
+
"declarations": [
|
|
5091
|
+
{
|
|
5092
|
+
"kind": "variable",
|
|
5093
|
+
"name": "t",
|
|
5094
|
+
"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); } `"
|
|
5095
|
+
}
|
|
5096
|
+
],
|
|
5097
|
+
"exports": [
|
|
5098
|
+
{
|
|
5099
|
+
"kind": "js",
|
|
5100
|
+
"name": "default",
|
|
5101
|
+
"declaration": {
|
|
5102
|
+
"name": "t",
|
|
5103
|
+
"module": "dist/components/color-palette/menu/color-palette-menu.styles.js"
|
|
5104
|
+
}
|
|
5105
|
+
}
|
|
5106
|
+
]
|
|
5107
|
+
},
|
|
5108
|
+
{
|
|
5109
|
+
"kind": "javascript-module",
|
|
5110
|
+
"path": "dist/components/color-palette/menu/color-palette-reorder.js",
|
|
5111
|
+
"declarations": [
|
|
5112
|
+
{
|
|
5113
|
+
"kind": "variable",
|
|
5114
|
+
"name": "o",
|
|
5115
|
+
"default": "class extends m { constructor() { super(...arguments), this.colors = [], this.emitter = new y(); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return c` <menu> ${x( Object.keys(i), (r) => c` <button @click=${(s) => { this.selectOption(r); }} > <span>${r}</span> </button> ` )} </menu> `; } /** Reorders the palette colors based on the selected option. */ selectOption(r) { const s = this.colors.map((e) => u(e)); let a = []; switch (r) { case \"Hue\": a = s.sort((e, t) => e.hue() - t.hue()).map((e) => e.hex()); break; case \"Saturation\": a = s.sort((e, t) => e.saturation() - t.saturation()).map((e) => e.hex()); break; case \"Lightness\": a = s.sort((e, t) => e.lightness() - t.lightness()).map((e) => e.hex()); break; case \"Red\": a = s.sort((e, t) => e.red() - t.red()).map((e) => e.hex()); break; case \"Green\": a = s.sort((e, t) => e.green() - t.green()).map((e) => e.hex()); break; case \"Blue\": a = s.sort((e, t) => e.blue() - t.blue()).map((e) => e.hex()); break; case \"Alpha\": a = s.sort((e, t) => e.alpha() - t.alpha()).map((e) => e.hex()); break; } this.emitter.emit(\"submit\", a); } }"
|
|
5116
|
+
}
|
|
5117
|
+
],
|
|
5118
|
+
"exports": [
|
|
5119
|
+
{
|
|
5120
|
+
"kind": "js",
|
|
5121
|
+
"name": "ColorPaletteReorder",
|
|
5122
|
+
"declaration": {
|
|
5123
|
+
"name": "o",
|
|
5124
|
+
"module": "dist/components/color-palette/menu/color-palette-reorder.js"
|
|
5125
|
+
}
|
|
5126
|
+
}
|
|
5127
|
+
]
|
|
5128
|
+
},
|
|
5129
|
+
{
|
|
5130
|
+
"kind": "javascript-module",
|
|
5131
|
+
"path": "dist/components/color-palette/menu/color-palette-reorder.styles.js",
|
|
5132
|
+
"declarations": [
|
|
5133
|
+
{
|
|
5134
|
+
"kind": "variable",
|
|
5135
|
+
"name": "n",
|
|
5136
|
+
"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; } } } `"
|
|
5137
|
+
}
|
|
5138
|
+
],
|
|
5139
|
+
"exports": [
|
|
5140
|
+
{
|
|
5141
|
+
"kind": "js",
|
|
5142
|
+
"name": "default",
|
|
5143
|
+
"declaration": {
|
|
5144
|
+
"name": "n",
|
|
5145
|
+
"module": "dist/components/color-palette/menu/color-palette-reorder.styles.js"
|
|
5146
|
+
}
|
|
5147
|
+
}
|
|
5148
|
+
]
|
|
5149
|
+
},
|
|
5066
5150
|
{
|
|
5067
5151
|
"kind": "javascript-module",
|
|
5068
5152
|
"path": "dist/node_modules/style-observer/src/element-style-observer.js",
|
|
@@ -5671,128 +5755,185 @@
|
|
|
5671
5755
|
},
|
|
5672
5756
|
{
|
|
5673
5757
|
"kind": "javascript-module",
|
|
5674
|
-
"path": "
|
|
5675
|
-
"declarations": [
|
|
5676
|
-
{
|
|
5677
|
-
"kind": "variable",
|
|
5678
|
-
"name": "s",
|
|
5679
|
-
"default": "class extends y { constructor() { super(...arguments), this.colors = [], this.editMode = !1, this.copyFormat = v.copyFormat, this.reorder = !1, this.emitter = new C(); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return c` ${this.reorder ? this.reorderItems() : this.menuItems()} `; } /** Renders the menu items. */ menuItems() { const i = { colors: this.colors, settings: this.settings }; return c` <menu> <li> <button @click=${(t) => { t.stopPropagation(), this.reorder = !this.reorder; }} > ${r(E)} <span>Reorder</span> </button> </li> <li> <button @click=${() => { this.emitter.emit(\"openEditor\"); }} > ${r(P)} <span>Edit Mode</span> </button> </li> ${// Only show toggle edit mode option when palette is not a gradient this.settings?.gradient ? d : c` <li> <button @click=${() => { this.emitter.emit(\"editMode\", !this.editMode); }} > ${r(k)} <span>Quick Edit</span> ${this.editMode ? r(M) : d} </button> </li> `} <hr> <li> <button @click=${() => { const t = this.colors.map((o) => { const e = u(o).rgb(); return `rgb(${e[0]}, ${e[1]}, ${e[2]})`; }); this.emitter.emit(\"change\", t); }} > ${r(h)} <span>Convert to RGB</span> </button> </li> <li> <button @click=${() => { const t = this.colors.map((o) => { const e = u(o).hsl(); return `hsl(${e[0]} ${e[1]}% ${e[2]}%)`; }); this.emitter.emit(\"change\", t); }} > ${r(h)} <span>Convert to HSL</span> </button> </li> <li> <button @click=${() => { const t = this.colors.map((o) => u(o).hex(2)); this.emitter.emit(\"change\", t); }} > ${r(h)} <span>Convert to HEX</span> </button> </li> <hr> <li> <button @click=${async () => { await b(JSON.stringify(i), this.copyFormat), this.emitter.emit(\"change\", []); }} > ${r(O)} <span>Cut</span> </button> </li> <li> <button @click=${async () => { await b(JSON.stringify(i), this.copyFormat); }} > ${r(w)} <span>Copy</span> </button> </li> </menu> `; } /** Renders the reorder items. */ reorderItems() { const i = (t) => { t instanceof _ && (t.emitter.clear(), t.emitter.on(\"submit\", (o) => { this.emitter.emit(\"change\", o), this.reorder = !1; })); }; return c` <color-palette-reorder .colors=${this.colors} ${S(i)} > </color-palette-reorder> `; } }"
|
|
5680
|
-
}
|
|
5681
|
-
],
|
|
5682
|
-
"exports": [
|
|
5683
|
-
{
|
|
5684
|
-
"kind": "js",
|
|
5685
|
-
"name": "ColorPaletteMenu",
|
|
5686
|
-
"declaration": {
|
|
5687
|
-
"name": "s",
|
|
5688
|
-
"module": "dist/components/color-palette/menu/color-palette-menu.js"
|
|
5689
|
-
}
|
|
5690
|
-
}
|
|
5691
|
-
]
|
|
5692
|
-
},
|
|
5693
|
-
{
|
|
5694
|
-
"kind": "javascript-module",
|
|
5695
|
-
"path": "dist/components/color-palette/menu/color-palette-menu.styles.js",
|
|
5696
|
-
"declarations": [
|
|
5697
|
-
{
|
|
5698
|
-
"kind": "variable",
|
|
5699
|
-
"name": "t",
|
|
5700
|
-
"default": "r` :host { display: block; } menu { display: grid; grid-template-columns: 1fr; padding: 0.5rem; margin: 0; border-radius: 5px; color: rgb(245, 245, 245); background-color: #222222; } li { display: grid; grid-template-columns: subgrid; list-style: none; } button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; justify-items: flex-start; column-gap: 0.5rem; background-color: inherit; color: inherit; border: none; cursor: pointer; padding: 4px 8px; text-wrap: nowrap; &:hover { background-color: #323232; } span { font-size: 14px; } } hr { width: 95%; border-color: rgb(45, 45, 45); } `"
|
|
5701
|
-
}
|
|
5702
|
-
],
|
|
5758
|
+
"path": "src/components/color-palette/component/color-palette-component.styles.ts",
|
|
5759
|
+
"declarations": [],
|
|
5703
5760
|
"exports": [
|
|
5704
5761
|
{
|
|
5705
5762
|
"kind": "js",
|
|
5706
5763
|
"name": "default",
|
|
5707
5764
|
"declaration": {
|
|
5708
|
-
"
|
|
5709
|
-
"module": "dist/components/color-palette/menu/color-palette-menu.styles.js"
|
|
5765
|
+
"module": "src/components/color-palette/component/color-palette-component.styles.ts"
|
|
5710
5766
|
}
|
|
5711
5767
|
}
|
|
5712
5768
|
]
|
|
5713
5769
|
},
|
|
5714
5770
|
{
|
|
5715
5771
|
"kind": "javascript-module",
|
|
5716
|
-
"path": "
|
|
5772
|
+
"path": "src/components/color-palette/component/color-palette-component.ts",
|
|
5717
5773
|
"declarations": [
|
|
5718
5774
|
{
|
|
5719
|
-
"kind": "
|
|
5720
|
-
"
|
|
5721
|
-
"
|
|
5775
|
+
"kind": "class",
|
|
5776
|
+
"description": "color-palette components combined.",
|
|
5777
|
+
"name": "ColorPaletteComponent",
|
|
5778
|
+
"members": [
|
|
5779
|
+
{
|
|
5780
|
+
"kind": "field",
|
|
5781
|
+
"name": "palette",
|
|
5782
|
+
"type": {
|
|
5783
|
+
"text": "ColorPalette"
|
|
5784
|
+
},
|
|
5785
|
+
"privacy": "public",
|
|
5786
|
+
"description": "The color palette."
|
|
5787
|
+
},
|
|
5788
|
+
{
|
|
5789
|
+
"kind": "field",
|
|
5790
|
+
"name": "absolute",
|
|
5791
|
+
"type": {
|
|
5792
|
+
"text": "AbsoluteContainer"
|
|
5793
|
+
},
|
|
5794
|
+
"privacy": "public",
|
|
5795
|
+
"description": "The color-palette-editor wrapper."
|
|
5796
|
+
},
|
|
5797
|
+
{
|
|
5798
|
+
"kind": "field",
|
|
5799
|
+
"name": "colors",
|
|
5800
|
+
"type": {
|
|
5801
|
+
"text": "string[]"
|
|
5802
|
+
},
|
|
5803
|
+
"privacy": "public",
|
|
5804
|
+
"default": "[]",
|
|
5805
|
+
"description": "The palette colors.",
|
|
5806
|
+
"attribute": "colors"
|
|
5807
|
+
},
|
|
5808
|
+
{
|
|
5809
|
+
"kind": "field",
|
|
5810
|
+
"name": "settings",
|
|
5811
|
+
"type": {
|
|
5812
|
+
"text": "PaletteSettings"
|
|
5813
|
+
},
|
|
5814
|
+
"privacy": "public",
|
|
5815
|
+
"default": "{ height: defaultSettings.height, width: defaultSettings.width, direction: defaultSettings.direction, gradient: defaultSettings.gradient, preventHover: defaultSettings.preventHover, hideText: defaultSettings.hideText, override: defaultSettings.override, aliases: [] }",
|
|
5816
|
+
"description": "The palette settings.",
|
|
5817
|
+
"attribute": "settings"
|
|
5818
|
+
},
|
|
5819
|
+
{
|
|
5820
|
+
"kind": "field",
|
|
5821
|
+
"name": "editMode",
|
|
5822
|
+
"type": {
|
|
5823
|
+
"text": "boolean"
|
|
5824
|
+
},
|
|
5825
|
+
"privacy": "public",
|
|
5826
|
+
"default": "false",
|
|
5827
|
+
"description": "Whether the palette is in edit mode.",
|
|
5828
|
+
"attribute": "editMode"
|
|
5829
|
+
},
|
|
5830
|
+
{
|
|
5831
|
+
"kind": "field",
|
|
5832
|
+
"name": "isMobile",
|
|
5833
|
+
"type": {
|
|
5834
|
+
"text": "boolean"
|
|
5835
|
+
},
|
|
5836
|
+
"privacy": "protected",
|
|
5837
|
+
"default": "false",
|
|
5838
|
+
"description": "Whether the screen is mobile sized."
|
|
5839
|
+
}
|
|
5840
|
+
],
|
|
5841
|
+
"attributes": [
|
|
5842
|
+
{
|
|
5843
|
+
"name": "colors",
|
|
5844
|
+
"type": {
|
|
5845
|
+
"text": "string[]"
|
|
5846
|
+
},
|
|
5847
|
+
"default": "[]",
|
|
5848
|
+
"description": "The palette colors.",
|
|
5849
|
+
"fieldName": "colors"
|
|
5850
|
+
},
|
|
5851
|
+
{
|
|
5852
|
+
"name": "settings",
|
|
5853
|
+
"type": {
|
|
5854
|
+
"text": "PaletteSettings"
|
|
5855
|
+
},
|
|
5856
|
+
"default": "{ height: defaultSettings.height, width: defaultSettings.width, direction: defaultSettings.direction, gradient: defaultSettings.gradient, preventHover: defaultSettings.preventHover, hideText: defaultSettings.hideText, override: defaultSettings.override, aliases: [] }",
|
|
5857
|
+
"description": "The palette settings.",
|
|
5858
|
+
"fieldName": "settings"
|
|
5859
|
+
},
|
|
5860
|
+
{
|
|
5861
|
+
"name": "editMode",
|
|
5862
|
+
"type": {
|
|
5863
|
+
"text": "boolean"
|
|
5864
|
+
},
|
|
5865
|
+
"default": "false",
|
|
5866
|
+
"description": "Whether the palette is in edit mode.",
|
|
5867
|
+
"fieldName": "editMode"
|
|
5868
|
+
}
|
|
5869
|
+
],
|
|
5870
|
+
"superclass": {
|
|
5871
|
+
"name": "LitElement",
|
|
5872
|
+
"package": "lit"
|
|
5873
|
+
},
|
|
5874
|
+
"tagName": "color-palette-component",
|
|
5875
|
+
"customElement": true
|
|
5722
5876
|
}
|
|
5723
5877
|
],
|
|
5724
5878
|
"exports": [
|
|
5725
5879
|
{
|
|
5726
5880
|
"kind": "js",
|
|
5727
|
-
"name": "
|
|
5881
|
+
"name": "ColorPaletteComponent",
|
|
5728
5882
|
"declaration": {
|
|
5729
|
-
"name": "
|
|
5730
|
-
"module": "
|
|
5883
|
+
"name": "ColorPaletteComponent",
|
|
5884
|
+
"module": "src/components/color-palette/component/color-palette-component.ts"
|
|
5731
5885
|
}
|
|
5732
|
-
}
|
|
5733
|
-
]
|
|
5734
|
-
},
|
|
5735
|
-
{
|
|
5736
|
-
"kind": "javascript-module",
|
|
5737
|
-
"path": "dist/components/color-palette/menu/color-palette-reorder.styles.js",
|
|
5738
|
-
"declarations": [
|
|
5739
|
-
{
|
|
5740
|
-
"kind": "variable",
|
|
5741
|
-
"name": "n",
|
|
5742
|
-
"default": "o` :host { display: block; } menu { display: flex; flex-direction: column; gap: 0.5rem; background-color: rgb(27, 27, 27); padding: 0.5rem; border-radius: 5px; button { color: rgb(245, 245, 245); background-color: transparent; border: none; padding: 4px 12px; cursor: pointer; &:hover { background-color: rgb(75, 75, 75); } span { font-size: 14px; } } } `"
|
|
5743
|
-
}
|
|
5744
|
-
],
|
|
5745
|
-
"exports": [
|
|
5886
|
+
},
|
|
5746
5887
|
{
|
|
5747
|
-
"kind": "
|
|
5748
|
-
"name": "
|
|
5888
|
+
"kind": "custom-element-definition",
|
|
5889
|
+
"name": "color-palette-component",
|
|
5749
5890
|
"declaration": {
|
|
5750
|
-
"name": "
|
|
5751
|
-
"module": "
|
|
5891
|
+
"name": "ColorPaletteComponent",
|
|
5892
|
+
"module": "src/components/color-palette/component/color-palette-component.ts"
|
|
5752
5893
|
}
|
|
5753
5894
|
}
|
|
5754
5895
|
]
|
|
5755
5896
|
},
|
|
5756
5897
|
{
|
|
5757
5898
|
"kind": "javascript-module",
|
|
5758
|
-
"path": "src/components/color-palette/
|
|
5899
|
+
"path": "src/components/color-palette/editor/color-palette-editor.styles.ts",
|
|
5759
5900
|
"declarations": [],
|
|
5760
5901
|
"exports": [
|
|
5761
5902
|
{
|
|
5762
5903
|
"kind": "js",
|
|
5763
5904
|
"name": "default",
|
|
5764
5905
|
"declaration": {
|
|
5765
|
-
"module": "src/components/color-palette/
|
|
5906
|
+
"module": "src/components/color-palette/editor/color-palette-editor.styles.ts"
|
|
5766
5907
|
}
|
|
5767
5908
|
}
|
|
5768
5909
|
]
|
|
5769
5910
|
},
|
|
5770
5911
|
{
|
|
5771
5912
|
"kind": "javascript-module",
|
|
5772
|
-
"path": "src/components/color-palette/
|
|
5913
|
+
"path": "src/components/color-palette/editor/color-palette-editor.ts",
|
|
5773
5914
|
"declarations": [
|
|
5774
5915
|
{
|
|
5775
5916
|
"kind": "class",
|
|
5776
|
-
"description": "color
|
|
5777
|
-
"name": "
|
|
5778
|
-
"
|
|
5917
|
+
"description": "An editor which can assist in modifying new or existing color palettes.",
|
|
5918
|
+
"name": "ColorPaletteEditor",
|
|
5919
|
+
"cssProperties": [
|
|
5779
5920
|
{
|
|
5780
|
-
"kind": "field",
|
|
5781
|
-
"name": "palette",
|
|
5782
5921
|
"type": {
|
|
5783
|
-
"text": "
|
|
5922
|
+
"text": "<color>"
|
|
5784
5923
|
},
|
|
5785
|
-
"
|
|
5786
|
-
"
|
|
5787
|
-
}
|
|
5924
|
+
"description": "The call to action background color.",
|
|
5925
|
+
"name": "--cta-background"
|
|
5926
|
+
}
|
|
5927
|
+
],
|
|
5928
|
+
"members": [
|
|
5788
5929
|
{
|
|
5789
5930
|
"kind": "field",
|
|
5790
|
-
"name": "
|
|
5931
|
+
"name": "palette",
|
|
5791
5932
|
"type": {
|
|
5792
|
-
"text": "
|
|
5933
|
+
"text": "HTMLDivElement"
|
|
5793
5934
|
},
|
|
5794
5935
|
"privacy": "public",
|
|
5795
|
-
"description": "The
|
|
5936
|
+
"description": "The wrapper element."
|
|
5796
5937
|
},
|
|
5797
5938
|
{
|
|
5798
5939
|
"kind": "field",
|
|
@@ -5802,7 +5943,7 @@
|
|
|
5802
5943
|
},
|
|
5803
5944
|
"privacy": "public",
|
|
5804
5945
|
"default": "[]",
|
|
5805
|
-
"description": "The palette colors.",
|
|
5946
|
+
"description": "The palette colors to be edited.",
|
|
5806
5947
|
"attribute": "colors"
|
|
5807
5948
|
},
|
|
5808
5949
|
{
|
|
@@ -5813,127 +5954,282 @@
|
|
|
5813
5954
|
},
|
|
5814
5955
|
"privacy": "public",
|
|
5815
5956
|
"default": "{ height: defaultSettings.height, width: defaultSettings.width, direction: defaultSettings.direction, gradient: defaultSettings.gradient, preventHover: defaultSettings.preventHover, hideText: defaultSettings.hideText, override: defaultSettings.override, aliases: [] }",
|
|
5816
|
-
"description": "The palette settings.",
|
|
5957
|
+
"description": "The palette settings to be edited.",
|
|
5817
5958
|
"attribute": "settings"
|
|
5818
5959
|
},
|
|
5819
5960
|
{
|
|
5820
5961
|
"kind": "field",
|
|
5821
|
-
"name": "
|
|
5962
|
+
"name": "selectedInput",
|
|
5822
5963
|
"type": {
|
|
5823
|
-
"text": "
|
|
5964
|
+
"text": "SelectedInput"
|
|
5824
5965
|
},
|
|
5825
5966
|
"privacy": "public",
|
|
5826
|
-
"
|
|
5827
|
-
"
|
|
5828
|
-
"
|
|
5967
|
+
"description": "The editing input that will be used.",
|
|
5968
|
+
"attribute": "selectedInput",
|
|
5969
|
+
"reflects": true
|
|
5829
5970
|
},
|
|
5830
5971
|
{
|
|
5831
5972
|
"kind": "field",
|
|
5832
|
-
"name": "
|
|
5973
|
+
"name": "combination",
|
|
5833
5974
|
"type": {
|
|
5834
|
-
"text": "
|
|
5975
|
+
"text": "Combination"
|
|
5835
5976
|
},
|
|
5836
|
-
"privacy": "
|
|
5837
|
-
"
|
|
5838
|
-
"
|
|
5977
|
+
"privacy": "public",
|
|
5978
|
+
"description": "The color theory combination used when generating colors.",
|
|
5979
|
+
"attribute": "combination"
|
|
5980
|
+
},
|
|
5981
|
+
{
|
|
5982
|
+
"kind": "field",
|
|
5983
|
+
"name": "baseColor",
|
|
5984
|
+
"type": {
|
|
5985
|
+
"text": "ReturnType<typeof colorsea> | undefined"
|
|
5986
|
+
},
|
|
5987
|
+
"privacy": "public",
|
|
5988
|
+
"description": "The base color used when generating colors.",
|
|
5989
|
+
"attribute": "baseColor"
|
|
5990
|
+
},
|
|
5991
|
+
{
|
|
5992
|
+
"kind": "field",
|
|
5993
|
+
"name": "emitter",
|
|
5994
|
+
"type": {
|
|
5995
|
+
"text": "EventEmitter<EventMap>"
|
|
5996
|
+
},
|
|
5997
|
+
"privacy": "public",
|
|
5998
|
+
"default": "new EventEmitter<EventMap>()",
|
|
5999
|
+
"description": "Public way to subscribe to events."
|
|
6000
|
+
},
|
|
6001
|
+
{
|
|
6002
|
+
"kind": "method",
|
|
6003
|
+
"name": "renderSettings",
|
|
6004
|
+
"privacy": "private",
|
|
6005
|
+
"description": "Renders the settings fields."
|
|
6006
|
+
},
|
|
6007
|
+
{
|
|
6008
|
+
"kind": "method",
|
|
6009
|
+
"name": "pickerOption",
|
|
6010
|
+
"privacy": "private",
|
|
6011
|
+
"description": "Renders the picker option."
|
|
6012
|
+
},
|
|
6013
|
+
{
|
|
6014
|
+
"kind": "method",
|
|
6015
|
+
"name": "generateOption",
|
|
6016
|
+
"privacy": "private",
|
|
6017
|
+
"description": "Renders the generate option."
|
|
6018
|
+
},
|
|
6019
|
+
{
|
|
6020
|
+
"kind": "method",
|
|
6021
|
+
"name": "imageOption",
|
|
6022
|
+
"privacy": "private",
|
|
6023
|
+
"description": "Renders the image option."
|
|
6024
|
+
},
|
|
6025
|
+
{
|
|
6026
|
+
"kind": "method",
|
|
6027
|
+
"name": "urlOption",
|
|
6028
|
+
"privacy": "private",
|
|
6029
|
+
"description": "Renders the URL option."
|
|
6030
|
+
}
|
|
6031
|
+
],
|
|
6032
|
+
"attributes": [
|
|
6033
|
+
{
|
|
6034
|
+
"name": "colors",
|
|
6035
|
+
"type": {
|
|
6036
|
+
"text": "string[]"
|
|
6037
|
+
},
|
|
6038
|
+
"default": "[]",
|
|
6039
|
+
"description": "The palette colors to be edited.",
|
|
6040
|
+
"fieldName": "colors"
|
|
6041
|
+
},
|
|
6042
|
+
{
|
|
6043
|
+
"name": "settings",
|
|
6044
|
+
"type": {
|
|
6045
|
+
"text": "PaletteSettings"
|
|
6046
|
+
},
|
|
6047
|
+
"default": "{ height: defaultSettings.height, width: defaultSettings.width, direction: defaultSettings.direction, gradient: defaultSettings.gradient, preventHover: defaultSettings.preventHover, hideText: defaultSettings.hideText, override: defaultSettings.override, aliases: [] }",
|
|
6048
|
+
"description": "The palette settings to be edited.",
|
|
6049
|
+
"fieldName": "settings"
|
|
6050
|
+
},
|
|
6051
|
+
{
|
|
6052
|
+
"name": "selectedInput",
|
|
6053
|
+
"type": {
|
|
6054
|
+
"text": "SelectedInput"
|
|
6055
|
+
},
|
|
6056
|
+
"description": "The editing input that will be used.",
|
|
6057
|
+
"fieldName": "selectedInput"
|
|
6058
|
+
},
|
|
6059
|
+
{
|
|
6060
|
+
"name": "combination",
|
|
6061
|
+
"type": {
|
|
6062
|
+
"text": "Combination"
|
|
6063
|
+
},
|
|
6064
|
+
"description": "The color theory combination used when generating colors.",
|
|
6065
|
+
"fieldName": "combination"
|
|
6066
|
+
},
|
|
6067
|
+
{
|
|
6068
|
+
"name": "baseColor",
|
|
6069
|
+
"type": {
|
|
6070
|
+
"text": "ReturnType<typeof colorsea> | undefined"
|
|
6071
|
+
},
|
|
6072
|
+
"description": "The base color used when generating colors.",
|
|
6073
|
+
"fieldName": "baseColor"
|
|
6074
|
+
}
|
|
6075
|
+
],
|
|
6076
|
+
"superclass": {
|
|
6077
|
+
"name": "LitElement",
|
|
6078
|
+
"package": "lit"
|
|
6079
|
+
},
|
|
6080
|
+
"tagName": "color-palette-editor",
|
|
6081
|
+
"customElement": true
|
|
6082
|
+
}
|
|
6083
|
+
],
|
|
6084
|
+
"exports": [
|
|
6085
|
+
{
|
|
6086
|
+
"kind": "js",
|
|
6087
|
+
"name": "ColorPaletteEditor",
|
|
6088
|
+
"declaration": {
|
|
6089
|
+
"name": "ColorPaletteEditor",
|
|
6090
|
+
"module": "src/components/color-palette/editor/color-palette-editor.ts"
|
|
6091
|
+
}
|
|
6092
|
+
},
|
|
6093
|
+
{
|
|
6094
|
+
"kind": "custom-element-definition",
|
|
6095
|
+
"name": "color-palette-editor",
|
|
6096
|
+
"declaration": {
|
|
6097
|
+
"name": "ColorPaletteEditor",
|
|
6098
|
+
"module": "src/components/color-palette/editor/color-palette-editor.ts"
|
|
6099
|
+
}
|
|
6100
|
+
}
|
|
6101
|
+
]
|
|
6102
|
+
},
|
|
6103
|
+
{
|
|
6104
|
+
"kind": "javascript-module",
|
|
6105
|
+
"path": "src/components/color-palette/editor/settings-item.styles.ts",
|
|
6106
|
+
"declarations": [],
|
|
6107
|
+
"exports": [
|
|
6108
|
+
{
|
|
6109
|
+
"kind": "js",
|
|
6110
|
+
"name": "default",
|
|
6111
|
+
"declaration": {
|
|
6112
|
+
"module": "src/components/color-palette/editor/settings-item.styles.ts"
|
|
6113
|
+
}
|
|
6114
|
+
}
|
|
6115
|
+
]
|
|
6116
|
+
},
|
|
6117
|
+
{
|
|
6118
|
+
"kind": "javascript-module",
|
|
6119
|
+
"path": "src/components/color-palette/editor/settings-item.ts",
|
|
6120
|
+
"declarations": [
|
|
6121
|
+
{
|
|
6122
|
+
"kind": "class",
|
|
6123
|
+
"description": "The settings item using inside of the editor.",
|
|
6124
|
+
"name": "SettingItem",
|
|
6125
|
+
"slots": [
|
|
6126
|
+
{
|
|
6127
|
+
"description": "The setting.",
|
|
6128
|
+
"name": ""
|
|
6129
|
+
}
|
|
6130
|
+
],
|
|
6131
|
+
"members": [
|
|
6132
|
+
{
|
|
6133
|
+
"kind": "field",
|
|
6134
|
+
"name": "name",
|
|
6135
|
+
"type": {
|
|
6136
|
+
"text": "string"
|
|
6137
|
+
},
|
|
6138
|
+
"privacy": "public",
|
|
6139
|
+
"default": "''",
|
|
6140
|
+
"description": "The name of the setting.",
|
|
6141
|
+
"attribute": "name"
|
|
6142
|
+
},
|
|
6143
|
+
{
|
|
6144
|
+
"kind": "field",
|
|
6145
|
+
"name": "description",
|
|
6146
|
+
"type": {
|
|
6147
|
+
"text": "string"
|
|
6148
|
+
},
|
|
6149
|
+
"privacy": "public",
|
|
6150
|
+
"default": "''",
|
|
6151
|
+
"description": "The description of the setting.",
|
|
6152
|
+
"attribute": "description"
|
|
5839
6153
|
}
|
|
5840
6154
|
],
|
|
5841
6155
|
"attributes": [
|
|
5842
6156
|
{
|
|
5843
|
-
"name": "
|
|
5844
|
-
"type": {
|
|
5845
|
-
"text": "string[]"
|
|
5846
|
-
},
|
|
5847
|
-
"default": "[]",
|
|
5848
|
-
"description": "The palette colors.",
|
|
5849
|
-
"fieldName": "colors"
|
|
5850
|
-
},
|
|
5851
|
-
{
|
|
5852
|
-
"name": "settings",
|
|
6157
|
+
"name": "name",
|
|
5853
6158
|
"type": {
|
|
5854
|
-
"text": "
|
|
6159
|
+
"text": "string"
|
|
5855
6160
|
},
|
|
5856
|
-
"default": "
|
|
5857
|
-
"description": "The
|
|
5858
|
-
"fieldName": "
|
|
6161
|
+
"default": "''",
|
|
6162
|
+
"description": "The name of the setting.",
|
|
6163
|
+
"fieldName": "name"
|
|
5859
6164
|
},
|
|
5860
6165
|
{
|
|
5861
|
-
"name": "
|
|
6166
|
+
"name": "description",
|
|
5862
6167
|
"type": {
|
|
5863
|
-
"text": "
|
|
6168
|
+
"text": "string"
|
|
5864
6169
|
},
|
|
5865
|
-
"default": "
|
|
5866
|
-
"description": "
|
|
5867
|
-
"fieldName": "
|
|
6170
|
+
"default": "''",
|
|
6171
|
+
"description": "The description of the setting.",
|
|
6172
|
+
"fieldName": "description"
|
|
5868
6173
|
}
|
|
5869
6174
|
],
|
|
5870
6175
|
"superclass": {
|
|
5871
6176
|
"name": "LitElement",
|
|
5872
6177
|
"package": "lit"
|
|
5873
6178
|
},
|
|
5874
|
-
"tagName": "
|
|
6179
|
+
"tagName": "setting-item",
|
|
5875
6180
|
"customElement": true
|
|
5876
6181
|
}
|
|
5877
6182
|
],
|
|
5878
6183
|
"exports": [
|
|
5879
6184
|
{
|
|
5880
6185
|
"kind": "js",
|
|
5881
|
-
"name": "
|
|
6186
|
+
"name": "SettingItem",
|
|
5882
6187
|
"declaration": {
|
|
5883
|
-
"name": "
|
|
5884
|
-
"module": "src/components/color-palette/
|
|
6188
|
+
"name": "SettingItem",
|
|
6189
|
+
"module": "src/components/color-palette/editor/settings-item.ts"
|
|
5885
6190
|
}
|
|
5886
6191
|
},
|
|
5887
6192
|
{
|
|
5888
6193
|
"kind": "custom-element-definition",
|
|
5889
|
-
"name": "
|
|
6194
|
+
"name": "setting-item",
|
|
5890
6195
|
"declaration": {
|
|
5891
|
-
"name": "
|
|
5892
|
-
"module": "src/components/color-palette/
|
|
6196
|
+
"name": "SettingItem",
|
|
6197
|
+
"module": "src/components/color-palette/editor/settings-item.ts"
|
|
5893
6198
|
}
|
|
5894
6199
|
}
|
|
5895
6200
|
]
|
|
5896
6201
|
},
|
|
5897
6202
|
{
|
|
5898
6203
|
"kind": "javascript-module",
|
|
5899
|
-
"path": "src/components/color-palette/
|
|
6204
|
+
"path": "src/components/color-palette/menu/color-palette-menu.styles.ts",
|
|
5900
6205
|
"declarations": [],
|
|
5901
6206
|
"exports": [
|
|
5902
6207
|
{
|
|
5903
6208
|
"kind": "js",
|
|
5904
6209
|
"name": "default",
|
|
5905
6210
|
"declaration": {
|
|
5906
|
-
"module": "src/components/color-palette/
|
|
6211
|
+
"module": "src/components/color-palette/menu/color-palette-menu.styles.ts"
|
|
5907
6212
|
}
|
|
5908
6213
|
}
|
|
5909
6214
|
]
|
|
5910
6215
|
},
|
|
5911
6216
|
{
|
|
5912
6217
|
"kind": "javascript-module",
|
|
5913
|
-
"path": "src/components/color-palette/
|
|
6218
|
+
"path": "src/components/color-palette/menu/color-palette-menu.ts",
|
|
5914
6219
|
"declarations": [
|
|
5915
6220
|
{
|
|
5916
6221
|
"kind": "class",
|
|
5917
|
-
"description": "
|
|
5918
|
-
"name": "
|
|
5919
|
-
"cssProperties": [
|
|
5920
|
-
{
|
|
5921
|
-
"type": {
|
|
5922
|
-
"text": "<color>"
|
|
5923
|
-
},
|
|
5924
|
-
"description": "The call to action background color.",
|
|
5925
|
-
"name": "--cta-background"
|
|
5926
|
-
}
|
|
5927
|
-
],
|
|
6222
|
+
"description": "A context menu for color-palette.",
|
|
6223
|
+
"name": "ColorPaletteMenu",
|
|
5928
6224
|
"members": [
|
|
5929
6225
|
{
|
|
5930
6226
|
"kind": "field",
|
|
5931
|
-
"name": "
|
|
6227
|
+
"name": "absolute",
|
|
5932
6228
|
"type": {
|
|
5933
|
-
"text": "
|
|
6229
|
+
"text": "AbsoluteContainer"
|
|
5934
6230
|
},
|
|
5935
6231
|
"privacy": "public",
|
|
5936
|
-
"description": "The
|
|
6232
|
+
"description": "The absolute-container wrapping the menu."
|
|
5937
6233
|
},
|
|
5938
6234
|
{
|
|
5939
6235
|
"kind": "field",
|
|
@@ -5943,50 +6239,49 @@
|
|
|
5943
6239
|
},
|
|
5944
6240
|
"privacy": "public",
|
|
5945
6241
|
"default": "[]",
|
|
5946
|
-
"description": "The palette colors
|
|
6242
|
+
"description": "The settings palette colors.",
|
|
5947
6243
|
"attribute": "colors"
|
|
5948
6244
|
},
|
|
5949
6245
|
{
|
|
5950
6246
|
"kind": "field",
|
|
5951
6247
|
"name": "settings",
|
|
5952
6248
|
"type": {
|
|
5953
|
-
"text": "PaletteSettings"
|
|
6249
|
+
"text": "Partial<PaletteSettings> | undefined"
|
|
5954
6250
|
},
|
|
5955
6251
|
"privacy": "public",
|
|
5956
|
-
"
|
|
5957
|
-
"description": "The palette settings to be edited.",
|
|
6252
|
+
"description": "The selected palette settings.",
|
|
5958
6253
|
"attribute": "settings"
|
|
5959
6254
|
},
|
|
5960
6255
|
{
|
|
5961
6256
|
"kind": "field",
|
|
5962
|
-
"name": "
|
|
6257
|
+
"name": "editMode",
|
|
5963
6258
|
"type": {
|
|
5964
|
-
"text": "
|
|
6259
|
+
"text": "Boolean"
|
|
5965
6260
|
},
|
|
5966
6261
|
"privacy": "public",
|
|
5967
|
-
"
|
|
5968
|
-
"
|
|
5969
|
-
"
|
|
6262
|
+
"default": "false",
|
|
6263
|
+
"description": "The selected palette edit mode status.",
|
|
6264
|
+
"attribute": "editMode"
|
|
5970
6265
|
},
|
|
5971
6266
|
{
|
|
5972
6267
|
"kind": "field",
|
|
5973
|
-
"name": "
|
|
6268
|
+
"name": "copyFormat",
|
|
5974
6269
|
"type": {
|
|
5975
|
-
"text": "
|
|
6270
|
+
"text": "CopyFormat"
|
|
5976
6271
|
},
|
|
5977
6272
|
"privacy": "public",
|
|
5978
|
-
"description": "
|
|
5979
|
-
"attribute": "
|
|
6273
|
+
"description": "Determines if copying takes the raw value or just the colors.",
|
|
6274
|
+
"attribute": "copyFormat"
|
|
5980
6275
|
},
|
|
5981
6276
|
{
|
|
5982
6277
|
"kind": "field",
|
|
5983
|
-
"name": "
|
|
6278
|
+
"name": "reorder",
|
|
5984
6279
|
"type": {
|
|
5985
|
-
"text": "
|
|
6280
|
+
"text": "boolean"
|
|
5986
6281
|
},
|
|
5987
|
-
"privacy": "
|
|
5988
|
-
"
|
|
5989
|
-
"
|
|
6282
|
+
"privacy": "protected",
|
|
6283
|
+
"default": "false",
|
|
6284
|
+
"description": "Whether reorder state is active."
|
|
5990
6285
|
},
|
|
5991
6286
|
{
|
|
5992
6287
|
"kind": "field",
|
|
@@ -6000,33 +6295,15 @@
|
|
|
6000
6295
|
},
|
|
6001
6296
|
{
|
|
6002
6297
|
"kind": "method",
|
|
6003
|
-
"name": "
|
|
6004
|
-
"privacy": "
|
|
6005
|
-
"description": "Renders the
|
|
6006
|
-
},
|
|
6007
|
-
{
|
|
6008
|
-
"kind": "method",
|
|
6009
|
-
"name": "pickerOption",
|
|
6010
|
-
"privacy": "private",
|
|
6011
|
-
"description": "Renders the picker option."
|
|
6012
|
-
},
|
|
6013
|
-
{
|
|
6014
|
-
"kind": "method",
|
|
6015
|
-
"name": "generateOption",
|
|
6016
|
-
"privacy": "private",
|
|
6017
|
-
"description": "Renders the generate option."
|
|
6018
|
-
},
|
|
6019
|
-
{
|
|
6020
|
-
"kind": "method",
|
|
6021
|
-
"name": "imageOption",
|
|
6022
|
-
"privacy": "private",
|
|
6023
|
-
"description": "Renders the image option."
|
|
6298
|
+
"name": "menuItems",
|
|
6299
|
+
"privacy": "protected",
|
|
6300
|
+
"description": "Renders the menu items."
|
|
6024
6301
|
},
|
|
6025
6302
|
{
|
|
6026
6303
|
"kind": "method",
|
|
6027
|
-
"name": "
|
|
6028
|
-
"privacy": "
|
|
6029
|
-
"description": "Renders the
|
|
6304
|
+
"name": "reorderItems",
|
|
6305
|
+
"privacy": "protected",
|
|
6306
|
+
"description": "Renders the reorder items."
|
|
6030
6307
|
}
|
|
6031
6308
|
],
|
|
6032
6309
|
"attributes": [
|
|
@@ -6036,165 +6313,164 @@
|
|
|
6036
6313
|
"text": "string[]"
|
|
6037
6314
|
},
|
|
6038
6315
|
"default": "[]",
|
|
6039
|
-
"description": "The palette colors
|
|
6316
|
+
"description": "The settings palette colors.",
|
|
6040
6317
|
"fieldName": "colors"
|
|
6041
6318
|
},
|
|
6042
6319
|
{
|
|
6043
6320
|
"name": "settings",
|
|
6044
6321
|
"type": {
|
|
6045
|
-
"text": "PaletteSettings"
|
|
6322
|
+
"text": "Partial<PaletteSettings> | undefined"
|
|
6046
6323
|
},
|
|
6047
|
-
"
|
|
6048
|
-
"description": "The palette settings to be edited.",
|
|
6324
|
+
"description": "The selected palette settings.",
|
|
6049
6325
|
"fieldName": "settings"
|
|
6050
6326
|
},
|
|
6051
6327
|
{
|
|
6052
|
-
"name": "
|
|
6053
|
-
"type": {
|
|
6054
|
-
"text": "SelectedInput"
|
|
6055
|
-
},
|
|
6056
|
-
"description": "The editing input that will be used.",
|
|
6057
|
-
"fieldName": "selectedInput"
|
|
6058
|
-
},
|
|
6059
|
-
{
|
|
6060
|
-
"name": "combination",
|
|
6328
|
+
"name": "editMode",
|
|
6061
6329
|
"type": {
|
|
6062
|
-
"text": "
|
|
6330
|
+
"text": "Boolean"
|
|
6063
6331
|
},
|
|
6064
|
-
"
|
|
6065
|
-
"
|
|
6332
|
+
"default": "false",
|
|
6333
|
+
"description": "The selected palette edit mode status.",
|
|
6334
|
+
"fieldName": "editMode"
|
|
6066
6335
|
},
|
|
6067
6336
|
{
|
|
6068
|
-
"name": "
|
|
6337
|
+
"name": "copyFormat",
|
|
6069
6338
|
"type": {
|
|
6070
|
-
"text": "
|
|
6339
|
+
"text": "CopyFormat"
|
|
6071
6340
|
},
|
|
6072
|
-
"description": "
|
|
6073
|
-
"fieldName": "
|
|
6341
|
+
"description": "Determines if copying takes the raw value or just the colors.",
|
|
6342
|
+
"fieldName": "copyFormat"
|
|
6074
6343
|
}
|
|
6075
6344
|
],
|
|
6076
6345
|
"superclass": {
|
|
6077
6346
|
"name": "LitElement",
|
|
6078
6347
|
"package": "lit"
|
|
6079
6348
|
},
|
|
6080
|
-
"tagName": "color-palette-
|
|
6349
|
+
"tagName": "color-palette-menu",
|
|
6081
6350
|
"customElement": true
|
|
6082
6351
|
}
|
|
6083
6352
|
],
|
|
6084
6353
|
"exports": [
|
|
6085
6354
|
{
|
|
6086
6355
|
"kind": "js",
|
|
6087
|
-
"name": "
|
|
6356
|
+
"name": "ColorPaletteMenu",
|
|
6088
6357
|
"declaration": {
|
|
6089
|
-
"name": "
|
|
6090
|
-
"module": "src/components/color-palette/
|
|
6358
|
+
"name": "ColorPaletteMenu",
|
|
6359
|
+
"module": "src/components/color-palette/menu/color-palette-menu.ts"
|
|
6091
6360
|
}
|
|
6092
6361
|
},
|
|
6093
6362
|
{
|
|
6094
6363
|
"kind": "custom-element-definition",
|
|
6095
|
-
"name": "color-palette-
|
|
6364
|
+
"name": "color-palette-menu",
|
|
6096
6365
|
"declaration": {
|
|
6097
|
-
"name": "
|
|
6098
|
-
"module": "src/components/color-palette/
|
|
6366
|
+
"name": "ColorPaletteMenu",
|
|
6367
|
+
"module": "src/components/color-palette/menu/color-palette-menu.ts"
|
|
6099
6368
|
}
|
|
6100
6369
|
}
|
|
6101
6370
|
]
|
|
6102
6371
|
},
|
|
6103
6372
|
{
|
|
6104
6373
|
"kind": "javascript-module",
|
|
6105
|
-
"path": "src/components/color-palette/
|
|
6374
|
+
"path": "src/components/color-palette/menu/color-palette-reorder.styles.ts",
|
|
6106
6375
|
"declarations": [],
|
|
6107
6376
|
"exports": [
|
|
6108
6377
|
{
|
|
6109
6378
|
"kind": "js",
|
|
6110
6379
|
"name": "default",
|
|
6111
6380
|
"declaration": {
|
|
6112
|
-
"module": "src/components/color-palette/
|
|
6381
|
+
"module": "src/components/color-palette/menu/color-palette-reorder.styles.ts"
|
|
6113
6382
|
}
|
|
6114
6383
|
}
|
|
6115
6384
|
]
|
|
6116
6385
|
},
|
|
6117
6386
|
{
|
|
6118
6387
|
"kind": "javascript-module",
|
|
6119
|
-
"path": "src/components/color-palette/
|
|
6388
|
+
"path": "src/components/color-palette/menu/color-palette-reorder.ts",
|
|
6120
6389
|
"declarations": [
|
|
6121
6390
|
{
|
|
6122
6391
|
"kind": "class",
|
|
6123
|
-
"description": "
|
|
6124
|
-
"name": "
|
|
6125
|
-
"slots": [
|
|
6126
|
-
{
|
|
6127
|
-
"description": "The setting.",
|
|
6128
|
-
"name": ""
|
|
6129
|
-
}
|
|
6130
|
-
],
|
|
6392
|
+
"description": "A companion UI to color-palette-menu for when the client selects reorder.",
|
|
6393
|
+
"name": "ColorPaletteReorder",
|
|
6131
6394
|
"members": [
|
|
6132
6395
|
{
|
|
6133
6396
|
"kind": "field",
|
|
6134
|
-
"name": "
|
|
6397
|
+
"name": "absolute",
|
|
6135
6398
|
"type": {
|
|
6136
|
-
"text": "
|
|
6399
|
+
"text": "AbsoluteContainer"
|
|
6137
6400
|
},
|
|
6138
6401
|
"privacy": "public",
|
|
6139
|
-
"
|
|
6140
|
-
"description": "The name of the setting.",
|
|
6141
|
-
"attribute": "name"
|
|
6402
|
+
"description": "The absolute container wrapping the reorder component."
|
|
6142
6403
|
},
|
|
6143
6404
|
{
|
|
6144
6405
|
"kind": "field",
|
|
6145
|
-
"name": "
|
|
6406
|
+
"name": "colors",
|
|
6146
6407
|
"type": {
|
|
6147
|
-
"text": "string"
|
|
6408
|
+
"text": "string[]"
|
|
6148
6409
|
},
|
|
6149
6410
|
"privacy": "public",
|
|
6150
|
-
"default": "
|
|
6151
|
-
"description": "The
|
|
6152
|
-
"attribute": "
|
|
6153
|
-
}
|
|
6154
|
-
],
|
|
6155
|
-
"attributes": [
|
|
6411
|
+
"default": "[]",
|
|
6412
|
+
"description": "The colors that can be reordered.",
|
|
6413
|
+
"attribute": "colors"
|
|
6414
|
+
},
|
|
6156
6415
|
{
|
|
6157
|
-
"
|
|
6416
|
+
"kind": "field",
|
|
6417
|
+
"name": "emitter",
|
|
6158
6418
|
"type": {
|
|
6159
|
-
"text": "
|
|
6419
|
+
"text": "EventEmitter<EventMap>"
|
|
6160
6420
|
},
|
|
6161
|
-
"
|
|
6162
|
-
"
|
|
6163
|
-
"
|
|
6421
|
+
"privacy": "public",
|
|
6422
|
+
"default": "new EventEmitter<EventMap>()",
|
|
6423
|
+
"description": "Public way to subscribe to events."
|
|
6164
6424
|
},
|
|
6165
6425
|
{
|
|
6166
|
-
"
|
|
6426
|
+
"kind": "method",
|
|
6427
|
+
"name": "selectOption",
|
|
6428
|
+
"privacy": "protected",
|
|
6429
|
+
"parameters": [
|
|
6430
|
+
{
|
|
6431
|
+
"name": "item",
|
|
6432
|
+
"type": {
|
|
6433
|
+
"text": "Reorder"
|
|
6434
|
+
}
|
|
6435
|
+
}
|
|
6436
|
+
],
|
|
6437
|
+
"description": "Reorders the palette colors based on the selected option."
|
|
6438
|
+
}
|
|
6439
|
+
],
|
|
6440
|
+
"attributes": [
|
|
6441
|
+
{
|
|
6442
|
+
"name": "colors",
|
|
6167
6443
|
"type": {
|
|
6168
|
-
"text": "string"
|
|
6444
|
+
"text": "string[]"
|
|
6169
6445
|
},
|
|
6170
|
-
"default": "
|
|
6171
|
-
"description": "The
|
|
6172
|
-
"fieldName": "
|
|
6446
|
+
"default": "[]",
|
|
6447
|
+
"description": "The colors that can be reordered.",
|
|
6448
|
+
"fieldName": "colors"
|
|
6173
6449
|
}
|
|
6174
6450
|
],
|
|
6175
6451
|
"superclass": {
|
|
6176
6452
|
"name": "LitElement",
|
|
6177
6453
|
"package": "lit"
|
|
6178
6454
|
},
|
|
6179
|
-
"tagName": "
|
|
6455
|
+
"tagName": "color-palette-reorder",
|
|
6180
6456
|
"customElement": true
|
|
6181
6457
|
}
|
|
6182
6458
|
],
|
|
6183
6459
|
"exports": [
|
|
6184
6460
|
{
|
|
6185
6461
|
"kind": "js",
|
|
6186
|
-
"name": "
|
|
6462
|
+
"name": "ColorPaletteReorder",
|
|
6187
6463
|
"declaration": {
|
|
6188
|
-
"name": "
|
|
6189
|
-
"module": "src/components/color-palette/
|
|
6464
|
+
"name": "ColorPaletteReorder",
|
|
6465
|
+
"module": "src/components/color-palette/menu/color-palette-reorder.ts"
|
|
6190
6466
|
}
|
|
6191
6467
|
},
|
|
6192
6468
|
{
|
|
6193
6469
|
"kind": "custom-element-definition",
|
|
6194
|
-
"name": "
|
|
6470
|
+
"name": "color-palette-reorder",
|
|
6195
6471
|
"declaration": {
|
|
6196
|
-
"name": "
|
|
6197
|
-
"module": "src/components/color-palette/
|
|
6472
|
+
"name": "ColorPaletteReorder",
|
|
6473
|
+
"module": "src/components/color-palette/menu/color-palette-reorder.ts"
|
|
6198
6474
|
}
|
|
6199
6475
|
}
|
|
6200
6476
|
]
|
|
@@ -6633,308 +6909,100 @@
|
|
|
6633
6909
|
"name": "color",
|
|
6634
6910
|
"type": {
|
|
6635
6911
|
"text": "string"
|
|
6636
|
-
},
|
|
6637
|
-
"privacy": "public",
|
|
6638
|
-
"default": "''",
|
|
6639
|
-
"description": "The color the item will display.",
|
|
6640
|
-
"attribute": "color"
|
|
6641
|
-
},
|
|
6642
|
-
{
|
|
6643
|
-
"kind": "field",
|
|
6644
|
-
"name": "alias",
|
|
6645
|
-
"type": {
|
|
6646
|
-
"text": "string"
|
|
6647
|
-
},
|
|
6648
|
-
"privacy": "public",
|
|
6649
|
-
"default": "''",
|
|
6650
|
-
"description": "The alias for the color.",
|
|
6651
|
-
"attribute": "alias"
|
|
6652
|
-
},
|
|
6653
|
-
{
|
|
6654
|
-
"kind": "field",
|
|
6655
|
-
"name": "aliasMode",
|
|
6656
|
-
"type": {
|
|
6657
|
-
"text": "AliasMode"
|
|
6658
|
-
},
|
|
6659
|
-
"privacy": "public",
|
|
6660
|
-
"description": "How the alias will display.",
|
|
6661
|
-
"attribute": "aliasMode"
|
|
6662
|
-
},
|
|
6663
|
-
{
|
|
6664
|
-
"kind": "field",
|
|
6665
|
-
"name": "direction",
|
|
6666
|
-
"type": {
|
|
6667
|
-
"text": "Direction"
|
|
6668
|
-
},
|
|
6669
|
-
"privacy": "public",
|
|
6670
|
-
"description": "The direction the palette wants the item to display.",
|
|
6671
|
-
"attribute": "direction",
|
|
6672
|
-
"reflects": true
|
|
6673
|
-
},
|
|
6674
|
-
{
|
|
6675
|
-
"kind": "field",
|
|
6676
|
-
"name": "editMode",
|
|
6677
|
-
"type": {
|
|
6678
|
-
"text": "boolean"
|
|
6679
|
-
},
|
|
6680
|
-
"privacy": "public",
|
|
6681
|
-
"default": "false",
|
|
6682
|
-
"description": "Whether the item is being edited.",
|
|
6683
|
-
"attribute": "editMode",
|
|
6684
|
-
"reflects": true
|
|
6685
|
-
},
|
|
6686
|
-
{
|
|
6687
|
-
"kind": "field",
|
|
6688
|
-
"name": "height",
|
|
6689
|
-
"type": {
|
|
6690
|
-
"text": "number"
|
|
6691
|
-
},
|
|
6692
|
-
"privacy": "public",
|
|
6693
|
-
"description": "The height of the item.",
|
|
6694
|
-
"attribute": "height"
|
|
6695
|
-
},
|
|
6696
|
-
{
|
|
6697
|
-
"kind": "field",
|
|
6698
|
-
"name": "preventHover",
|
|
6699
|
-
"type": {
|
|
6700
|
-
"text": "boolean"
|
|
6701
|
-
},
|
|
6702
|
-
"privacy": "public",
|
|
6703
|
-
"default": "false",
|
|
6704
|
-
"description": "Whether hovering over the item is permitted.",
|
|
6705
|
-
"attribute": "preventHover",
|
|
6706
|
-
"reflects": true
|
|
6707
|
-
},
|
|
6708
|
-
{
|
|
6709
|
-
"kind": "field",
|
|
6710
|
-
"name": "hideText",
|
|
6711
|
-
"type": {
|
|
6712
|
-
"text": "boolean"
|
|
6713
|
-
},
|
|
6714
|
-
"privacy": "public",
|
|
6715
|
-
"default": "false",
|
|
6716
|
-
"description": "Whether the text on the item is hidden.",
|
|
6717
|
-
"attribute": "hideText",
|
|
6718
|
-
"reflects": true
|
|
6719
|
-
},
|
|
6720
|
-
{
|
|
6721
|
-
"kind": "field",
|
|
6722
|
-
"name": "colorCount",
|
|
6723
|
-
"type": {
|
|
6724
|
-
"text": "number"
|
|
6725
|
-
},
|
|
6726
|
-
"privacy": "public",
|
|
6727
|
-
"default": "0",
|
|
6728
|
-
"description": "The total number of colors the palette expects.",
|
|
6729
|
-
"attribute": "colorCount"
|
|
6730
|
-
},
|
|
6731
|
-
{
|
|
6732
|
-
"kind": "field",
|
|
6733
|
-
"name": "emitter",
|
|
6734
|
-
"type": {
|
|
6735
|
-
"text": "EventEmitter<EventMap>"
|
|
6736
|
-
},
|
|
6737
|
-
"privacy": "public",
|
|
6738
|
-
"default": "new EventEmitter<EventMap>()",
|
|
6739
|
-
"description": "Public way to subscribe to events."
|
|
6740
|
-
},
|
|
6741
|
-
{
|
|
6742
|
-
"kind": "method",
|
|
6743
|
-
"name": "content",
|
|
6744
|
-
"privacy": "protected",
|
|
6745
|
-
"description": "Renders the content"
|
|
6746
|
-
}
|
|
6747
|
-
],
|
|
6748
|
-
"attributes": [
|
|
6749
|
-
{
|
|
6750
|
-
"name": "color",
|
|
6751
|
-
"type": {
|
|
6752
|
-
"text": "string"
|
|
6753
|
-
},
|
|
6754
|
-
"default": "''",
|
|
6755
|
-
"description": "The color the item will display.",
|
|
6756
|
-
"fieldName": "color"
|
|
6757
|
-
},
|
|
6758
|
-
{
|
|
6759
|
-
"name": "alias",
|
|
6760
|
-
"type": {
|
|
6761
|
-
"text": "string"
|
|
6762
|
-
},
|
|
6763
|
-
"default": "''",
|
|
6764
|
-
"description": "The alias for the color.",
|
|
6765
|
-
"fieldName": "alias"
|
|
6766
|
-
},
|
|
6767
|
-
{
|
|
6768
|
-
"name": "aliasMode",
|
|
6769
|
-
"type": {
|
|
6770
|
-
"text": "AliasMode"
|
|
6771
|
-
},
|
|
6772
|
-
"description": "How the alias will display.",
|
|
6773
|
-
"fieldName": "aliasMode"
|
|
6774
|
-
},
|
|
6775
|
-
{
|
|
6776
|
-
"name": "direction",
|
|
6777
|
-
"type": {
|
|
6778
|
-
"text": "Direction"
|
|
6779
|
-
},
|
|
6780
|
-
"description": "The direction the palette wants the item to display.",
|
|
6781
|
-
"fieldName": "direction"
|
|
6782
|
-
},
|
|
6783
|
-
{
|
|
6784
|
-
"name": "editMode",
|
|
6785
|
-
"type": {
|
|
6786
|
-
"text": "boolean"
|
|
6787
|
-
},
|
|
6788
|
-
"default": "false",
|
|
6789
|
-
"description": "Whether the item is being edited.",
|
|
6790
|
-
"fieldName": "editMode"
|
|
6791
|
-
},
|
|
6792
|
-
{
|
|
6793
|
-
"name": "height",
|
|
6794
|
-
"type": {
|
|
6795
|
-
"text": "number"
|
|
6796
|
-
},
|
|
6797
|
-
"description": "The height of the item.",
|
|
6798
|
-
"fieldName": "height"
|
|
6799
|
-
},
|
|
6800
|
-
{
|
|
6801
|
-
"name": "preventHover",
|
|
6802
|
-
"type": {
|
|
6803
|
-
"text": "boolean"
|
|
6804
|
-
},
|
|
6805
|
-
"default": "false",
|
|
6806
|
-
"description": "Whether hovering over the item is permitted.",
|
|
6807
|
-
"fieldName": "preventHover"
|
|
6808
|
-
},
|
|
6809
|
-
{
|
|
6810
|
-
"name": "hideText",
|
|
6811
|
-
"type": {
|
|
6812
|
-
"text": "boolean"
|
|
6813
|
-
},
|
|
6814
|
-
"default": "false",
|
|
6815
|
-
"description": "Whether the text on the item is hidden.",
|
|
6816
|
-
"fieldName": "hideText"
|
|
6817
|
-
},
|
|
6818
|
-
{
|
|
6819
|
-
"name": "colorCount",
|
|
6820
|
-
"type": {
|
|
6821
|
-
"text": "number"
|
|
6822
|
-
},
|
|
6823
|
-
"default": "0",
|
|
6824
|
-
"description": "The total number of colors the palette expects.",
|
|
6825
|
-
"fieldName": "colorCount"
|
|
6826
|
-
}
|
|
6827
|
-
],
|
|
6828
|
-
"superclass": {
|
|
6829
|
-
"name": "LitElement",
|
|
6830
|
-
"package": "lit"
|
|
6831
|
-
},
|
|
6832
|
-
"tagName": "color-palette-item",
|
|
6833
|
-
"customElement": true
|
|
6834
|
-
}
|
|
6835
|
-
],
|
|
6836
|
-
"exports": [
|
|
6837
|
-
{
|
|
6838
|
-
"kind": "js",
|
|
6839
|
-
"name": "ColorPaletteItem",
|
|
6840
|
-
"declaration": {
|
|
6841
|
-
"name": "ColorPaletteItem",
|
|
6842
|
-
"module": "src/components/color-palette/item/color-palette-item.ts"
|
|
6843
|
-
}
|
|
6844
|
-
},
|
|
6845
|
-
{
|
|
6846
|
-
"kind": "custom-element-definition",
|
|
6847
|
-
"name": "color-palette-item",
|
|
6848
|
-
"declaration": {
|
|
6849
|
-
"name": "ColorPaletteItem",
|
|
6850
|
-
"module": "src/components/color-palette/item/color-palette-item.ts"
|
|
6851
|
-
}
|
|
6852
|
-
}
|
|
6853
|
-
]
|
|
6854
|
-
},
|
|
6855
|
-
{
|
|
6856
|
-
"kind": "javascript-module",
|
|
6857
|
-
"path": "src/components/color-palette/menu/color-palette-menu.styles.ts",
|
|
6858
|
-
"declarations": [],
|
|
6859
|
-
"exports": [
|
|
6860
|
-
{
|
|
6861
|
-
"kind": "js",
|
|
6862
|
-
"name": "default",
|
|
6863
|
-
"declaration": {
|
|
6864
|
-
"module": "src/components/color-palette/menu/color-palette-menu.styles.ts"
|
|
6865
|
-
}
|
|
6866
|
-
}
|
|
6867
|
-
]
|
|
6868
|
-
},
|
|
6869
|
-
{
|
|
6870
|
-
"kind": "javascript-module",
|
|
6871
|
-
"path": "src/components/color-palette/menu/color-palette-menu.ts",
|
|
6872
|
-
"declarations": [
|
|
6873
|
-
{
|
|
6874
|
-
"kind": "class",
|
|
6875
|
-
"description": "A context menu for color-palette.",
|
|
6876
|
-
"name": "ColorPaletteMenu",
|
|
6877
|
-
"members": [
|
|
6912
|
+
},
|
|
6913
|
+
"privacy": "public",
|
|
6914
|
+
"default": "''",
|
|
6915
|
+
"description": "The color the item will display.",
|
|
6916
|
+
"attribute": "color"
|
|
6917
|
+
},
|
|
6878
6918
|
{
|
|
6879
6919
|
"kind": "field",
|
|
6880
|
-
"name": "
|
|
6920
|
+
"name": "alias",
|
|
6881
6921
|
"type": {
|
|
6882
|
-
"text": "
|
|
6922
|
+
"text": "string"
|
|
6883
6923
|
},
|
|
6884
6924
|
"privacy": "public",
|
|
6885
|
-
"
|
|
6925
|
+
"default": "''",
|
|
6926
|
+
"description": "The alias for the color.",
|
|
6927
|
+
"attribute": "alias"
|
|
6886
6928
|
},
|
|
6887
6929
|
{
|
|
6888
6930
|
"kind": "field",
|
|
6889
|
-
"name": "
|
|
6931
|
+
"name": "aliasMode",
|
|
6890
6932
|
"type": {
|
|
6891
|
-
"text": "
|
|
6933
|
+
"text": "AliasMode"
|
|
6892
6934
|
},
|
|
6893
6935
|
"privacy": "public",
|
|
6894
|
-
"
|
|
6895
|
-
"
|
|
6896
|
-
"attribute": "colors"
|
|
6936
|
+
"description": "How the alias will display.",
|
|
6937
|
+
"attribute": "aliasMode"
|
|
6897
6938
|
},
|
|
6898
6939
|
{
|
|
6899
6940
|
"kind": "field",
|
|
6900
|
-
"name": "
|
|
6941
|
+
"name": "direction",
|
|
6901
6942
|
"type": {
|
|
6902
|
-
"text": "
|
|
6943
|
+
"text": "Direction"
|
|
6903
6944
|
},
|
|
6904
6945
|
"privacy": "public",
|
|
6905
|
-
"description": "The
|
|
6906
|
-
"attribute": "
|
|
6946
|
+
"description": "The direction the palette wants the item to display.",
|
|
6947
|
+
"attribute": "direction",
|
|
6948
|
+
"reflects": true
|
|
6907
6949
|
},
|
|
6908
6950
|
{
|
|
6909
6951
|
"kind": "field",
|
|
6910
6952
|
"name": "editMode",
|
|
6911
6953
|
"type": {
|
|
6912
|
-
"text": "
|
|
6954
|
+
"text": "boolean"
|
|
6913
6955
|
},
|
|
6914
6956
|
"privacy": "public",
|
|
6915
6957
|
"default": "false",
|
|
6916
|
-
"description": "
|
|
6917
|
-
"attribute": "editMode"
|
|
6958
|
+
"description": "Whether the item is being edited.",
|
|
6959
|
+
"attribute": "editMode",
|
|
6960
|
+
"reflects": true
|
|
6918
6961
|
},
|
|
6919
6962
|
{
|
|
6920
6963
|
"kind": "field",
|
|
6921
|
-
"name": "
|
|
6964
|
+
"name": "height",
|
|
6922
6965
|
"type": {
|
|
6923
|
-
"text": "
|
|
6966
|
+
"text": "number"
|
|
6924
6967
|
},
|
|
6925
6968
|
"privacy": "public",
|
|
6926
|
-
"description": "
|
|
6927
|
-
"attribute": "
|
|
6969
|
+
"description": "The height of the item.",
|
|
6970
|
+
"attribute": "height"
|
|
6928
6971
|
},
|
|
6929
6972
|
{
|
|
6930
6973
|
"kind": "field",
|
|
6931
|
-
"name": "
|
|
6974
|
+
"name": "preventHover",
|
|
6932
6975
|
"type": {
|
|
6933
6976
|
"text": "boolean"
|
|
6934
6977
|
},
|
|
6935
|
-
"privacy": "
|
|
6978
|
+
"privacy": "public",
|
|
6936
6979
|
"default": "false",
|
|
6937
|
-
"description": "Whether
|
|
6980
|
+
"description": "Whether hovering over the item is permitted.",
|
|
6981
|
+
"attribute": "preventHover",
|
|
6982
|
+
"reflects": true
|
|
6983
|
+
},
|
|
6984
|
+
{
|
|
6985
|
+
"kind": "field",
|
|
6986
|
+
"name": "hideText",
|
|
6987
|
+
"type": {
|
|
6988
|
+
"text": "boolean"
|
|
6989
|
+
},
|
|
6990
|
+
"privacy": "public",
|
|
6991
|
+
"default": "false",
|
|
6992
|
+
"description": "Whether the text on the item is hidden.",
|
|
6993
|
+
"attribute": "hideText",
|
|
6994
|
+
"reflects": true
|
|
6995
|
+
},
|
|
6996
|
+
{
|
|
6997
|
+
"kind": "field",
|
|
6998
|
+
"name": "colorCount",
|
|
6999
|
+
"type": {
|
|
7000
|
+
"text": "number"
|
|
7001
|
+
},
|
|
7002
|
+
"privacy": "public",
|
|
7003
|
+
"default": "0",
|
|
7004
|
+
"description": "The total number of colors the palette expects.",
|
|
7005
|
+
"attribute": "colorCount"
|
|
6938
7006
|
},
|
|
6939
7007
|
{
|
|
6940
7008
|
"kind": "field",
|
|
@@ -6948,182 +7016,114 @@
|
|
|
6948
7016
|
},
|
|
6949
7017
|
{
|
|
6950
7018
|
"kind": "method",
|
|
6951
|
-
"name": "
|
|
6952
|
-
"privacy": "protected",
|
|
6953
|
-
"description": "Renders the menu items."
|
|
6954
|
-
},
|
|
6955
|
-
{
|
|
6956
|
-
"kind": "method",
|
|
6957
|
-
"name": "reorderItems",
|
|
7019
|
+
"name": "content",
|
|
6958
7020
|
"privacy": "protected",
|
|
6959
|
-
"description": "Renders the
|
|
7021
|
+
"description": "Renders the content"
|
|
6960
7022
|
}
|
|
6961
7023
|
],
|
|
6962
7024
|
"attributes": [
|
|
6963
7025
|
{
|
|
6964
|
-
"name": "
|
|
7026
|
+
"name": "color",
|
|
6965
7027
|
"type": {
|
|
6966
|
-
"text": "string
|
|
7028
|
+
"text": "string"
|
|
6967
7029
|
},
|
|
6968
|
-
"default": "
|
|
6969
|
-
"description": "The
|
|
6970
|
-
"fieldName": "
|
|
7030
|
+
"default": "''",
|
|
7031
|
+
"description": "The color the item will display.",
|
|
7032
|
+
"fieldName": "color"
|
|
6971
7033
|
},
|
|
6972
7034
|
{
|
|
6973
|
-
"name": "
|
|
7035
|
+
"name": "alias",
|
|
6974
7036
|
"type": {
|
|
6975
|
-
"text": "
|
|
7037
|
+
"text": "string"
|
|
6976
7038
|
},
|
|
6977
|
-
"
|
|
6978
|
-
"
|
|
7039
|
+
"default": "''",
|
|
7040
|
+
"description": "The alias for the color.",
|
|
7041
|
+
"fieldName": "alias"
|
|
6979
7042
|
},
|
|
6980
7043
|
{
|
|
6981
|
-
"name": "
|
|
7044
|
+
"name": "aliasMode",
|
|
6982
7045
|
"type": {
|
|
6983
|
-
"text": "
|
|
7046
|
+
"text": "AliasMode"
|
|
6984
7047
|
},
|
|
6985
|
-
"
|
|
6986
|
-
"
|
|
6987
|
-
"fieldName": "editMode"
|
|
7048
|
+
"description": "How the alias will display.",
|
|
7049
|
+
"fieldName": "aliasMode"
|
|
6988
7050
|
},
|
|
6989
7051
|
{
|
|
6990
|
-
"name": "
|
|
7052
|
+
"name": "direction",
|
|
6991
7053
|
"type": {
|
|
6992
|
-
"text": "
|
|
7054
|
+
"text": "Direction"
|
|
6993
7055
|
},
|
|
6994
|
-
"description": "
|
|
6995
|
-
"fieldName": "
|
|
6996
|
-
}
|
|
6997
|
-
],
|
|
6998
|
-
"superclass": {
|
|
6999
|
-
"name": "LitElement",
|
|
7000
|
-
"package": "lit"
|
|
7001
|
-
},
|
|
7002
|
-
"tagName": "color-palette-menu",
|
|
7003
|
-
"customElement": true
|
|
7004
|
-
}
|
|
7005
|
-
],
|
|
7006
|
-
"exports": [
|
|
7007
|
-
{
|
|
7008
|
-
"kind": "js",
|
|
7009
|
-
"name": "ColorPaletteMenu",
|
|
7010
|
-
"declaration": {
|
|
7011
|
-
"name": "ColorPaletteMenu",
|
|
7012
|
-
"module": "src/components/color-palette/menu/color-palette-menu.ts"
|
|
7013
|
-
}
|
|
7014
|
-
},
|
|
7015
|
-
{
|
|
7016
|
-
"kind": "custom-element-definition",
|
|
7017
|
-
"name": "color-palette-menu",
|
|
7018
|
-
"declaration": {
|
|
7019
|
-
"name": "ColorPaletteMenu",
|
|
7020
|
-
"module": "src/components/color-palette/menu/color-palette-menu.ts"
|
|
7021
|
-
}
|
|
7022
|
-
}
|
|
7023
|
-
]
|
|
7024
|
-
},
|
|
7025
|
-
{
|
|
7026
|
-
"kind": "javascript-module",
|
|
7027
|
-
"path": "src/components/color-palette/menu/color-palette-reorder.styles.ts",
|
|
7028
|
-
"declarations": [],
|
|
7029
|
-
"exports": [
|
|
7030
|
-
{
|
|
7031
|
-
"kind": "js",
|
|
7032
|
-
"name": "default",
|
|
7033
|
-
"declaration": {
|
|
7034
|
-
"module": "src/components/color-palette/menu/color-palette-reorder.styles.ts"
|
|
7035
|
-
}
|
|
7036
|
-
}
|
|
7037
|
-
]
|
|
7038
|
-
},
|
|
7039
|
-
{
|
|
7040
|
-
"kind": "javascript-module",
|
|
7041
|
-
"path": "src/components/color-palette/menu/color-palette-reorder.ts",
|
|
7042
|
-
"declarations": [
|
|
7043
|
-
{
|
|
7044
|
-
"kind": "class",
|
|
7045
|
-
"description": "A companion UI to color-palette-menu for when the client selects reorder.",
|
|
7046
|
-
"name": "ColorPaletteReorder",
|
|
7047
|
-
"members": [
|
|
7056
|
+
"description": "The direction the palette wants the item to display.",
|
|
7057
|
+
"fieldName": "direction"
|
|
7058
|
+
},
|
|
7048
7059
|
{
|
|
7049
|
-
"
|
|
7050
|
-
"name": "absolute",
|
|
7060
|
+
"name": "editMode",
|
|
7051
7061
|
"type": {
|
|
7052
|
-
"text": "
|
|
7062
|
+
"text": "boolean"
|
|
7053
7063
|
},
|
|
7054
|
-
"
|
|
7055
|
-
"description": "
|
|
7064
|
+
"default": "false",
|
|
7065
|
+
"description": "Whether the item is being edited.",
|
|
7066
|
+
"fieldName": "editMode"
|
|
7056
7067
|
},
|
|
7057
7068
|
{
|
|
7058
|
-
"
|
|
7059
|
-
"name": "colors",
|
|
7069
|
+
"name": "height",
|
|
7060
7070
|
"type": {
|
|
7061
|
-
"text": "
|
|
7071
|
+
"text": "number"
|
|
7062
7072
|
},
|
|
7063
|
-
"
|
|
7064
|
-
"
|
|
7065
|
-
"description": "The colors that can be reordered.",
|
|
7066
|
-
"attribute": "colors"
|
|
7073
|
+
"description": "The height of the item.",
|
|
7074
|
+
"fieldName": "height"
|
|
7067
7075
|
},
|
|
7068
7076
|
{
|
|
7069
|
-
"
|
|
7070
|
-
"name": "emitter",
|
|
7077
|
+
"name": "preventHover",
|
|
7071
7078
|
"type": {
|
|
7072
|
-
"text": "
|
|
7079
|
+
"text": "boolean"
|
|
7073
7080
|
},
|
|
7074
|
-
"
|
|
7075
|
-
"
|
|
7076
|
-
"
|
|
7081
|
+
"default": "false",
|
|
7082
|
+
"description": "Whether hovering over the item is permitted.",
|
|
7083
|
+
"fieldName": "preventHover"
|
|
7077
7084
|
},
|
|
7078
7085
|
{
|
|
7079
|
-
"
|
|
7080
|
-
"
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
}
|
|
7088
|
-
}
|
|
7089
|
-
],
|
|
7090
|
-
"description": "Reorders the palette colors based on the selected option."
|
|
7091
|
-
}
|
|
7092
|
-
],
|
|
7093
|
-
"attributes": [
|
|
7086
|
+
"name": "hideText",
|
|
7087
|
+
"type": {
|
|
7088
|
+
"text": "boolean"
|
|
7089
|
+
},
|
|
7090
|
+
"default": "false",
|
|
7091
|
+
"description": "Whether the text on the item is hidden.",
|
|
7092
|
+
"fieldName": "hideText"
|
|
7093
|
+
},
|
|
7094
7094
|
{
|
|
7095
|
-
"name": "
|
|
7095
|
+
"name": "colorCount",
|
|
7096
7096
|
"type": {
|
|
7097
|
-
"text": "
|
|
7097
|
+
"text": "number"
|
|
7098
7098
|
},
|
|
7099
|
-
"default": "
|
|
7100
|
-
"description": "The colors
|
|
7101
|
-
"fieldName": "
|
|
7099
|
+
"default": "0",
|
|
7100
|
+
"description": "The total number of colors the palette expects.",
|
|
7101
|
+
"fieldName": "colorCount"
|
|
7102
7102
|
}
|
|
7103
7103
|
],
|
|
7104
7104
|
"superclass": {
|
|
7105
7105
|
"name": "LitElement",
|
|
7106
7106
|
"package": "lit"
|
|
7107
7107
|
},
|
|
7108
|
-
"tagName": "color-palette-
|
|
7108
|
+
"tagName": "color-palette-item",
|
|
7109
7109
|
"customElement": true
|
|
7110
7110
|
}
|
|
7111
7111
|
],
|
|
7112
7112
|
"exports": [
|
|
7113
7113
|
{
|
|
7114
7114
|
"kind": "js",
|
|
7115
|
-
"name": "
|
|
7115
|
+
"name": "ColorPaletteItem",
|
|
7116
7116
|
"declaration": {
|
|
7117
|
-
"name": "
|
|
7118
|
-
"module": "src/components/color-palette/
|
|
7117
|
+
"name": "ColorPaletteItem",
|
|
7118
|
+
"module": "src/components/color-palette/item/color-palette-item.ts"
|
|
7119
7119
|
}
|
|
7120
7120
|
},
|
|
7121
7121
|
{
|
|
7122
7122
|
"kind": "custom-element-definition",
|
|
7123
|
-
"name": "color-palette-
|
|
7123
|
+
"name": "color-palette-item",
|
|
7124
7124
|
"declaration": {
|
|
7125
|
-
"name": "
|
|
7126
|
-
"module": "src/components/color-palette/
|
|
7125
|
+
"name": "ColorPaletteItem",
|
|
7126
|
+
"module": "src/components/color-palette/item/color-palette-item.ts"
|
|
7127
7127
|
}
|
|
7128
7128
|
}
|
|
7129
7129
|
]
|