@orangelogic/design-system 4.52.0 → 4.54.0
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/library/chunks/{abnfDiagram-N423BO3Z.BdDkSL0S.js → abnfDiagram-N423BO3Z.H1zwr_k6.js} +3 -3
- package/library/chunks/{architectureDiagram-T3A2C74G.BPW98p0m.js → architectureDiagram-T3A2C74G.AxjW1Pvo.js} +5 -5
- package/library/chunks/{array-line-clamp.DKxxZlon.js → array-line-clamp.B0CgDqAd.js} +2 -2
- package/library/chunks/{asset-link-format.B_gS4nTL.js → asset-link-format.B0bxKsRR.js} +9 -9
- package/library/chunks/{bicolor-picker.YUjpxOEl.js → bicolor-picker.DB9EVS8f.js} +1 -1
- package/library/chunks/{block-width.BDpJyD-F.js → block-width.DPq3qimI.js} +35 -35
- package/library/chunks/{blockDiagram-VBNYF7ZC.2el4_mfU.js → blockDiagram-VBNYF7ZC.BA5YJ5tg.js} +6 -6
- package/library/chunks/{border-input-group.D5V40_dV.js → border-input-group.fjG64WIi.js} +2 -2
- package/library/chunks/{button.DnOMjl_G.js → button.BnTohvSe.js} +1 -1
- package/library/chunks/{c4Diagram-5PPSVZJV.CB1meuC0.js → c4Diagram-5PPSVZJV.B1weqOqz.js} +3 -3
- package/library/chunks/{channel.Df7qi9B0.js → channel.Bqlqmufs.js} +1 -1
- package/library/chunks/{checkbox.aFoOxk2j.js → checkbox.BdSpQlwf.js} +1 -1
- package/library/chunks/{chunk-2GRJ4B5K.gGaxW0lA.js → chunk-2GRJ4B5K.BOBf1_FX.js} +1 -1
- package/library/chunks/{chunk-4I5QYGJK.BfgT5lel.js → chunk-4I5QYGJK.DfO_P7bO.js} +1 -1
- package/library/chunks/{chunk-5RXB4S5H.CF2ZeQiS.js → chunk-5RXB4S5H.oisV3Q1b.js} +5 -5
- package/library/chunks/{chunk-6Q2QTUOP.BKuPYCzj.js → chunk-6Q2QTUOP.ByglL7sM.js} +2 -2
- package/library/chunks/{chunk-7Z6QIM7H.ChD5saA-.js → chunk-7Z6QIM7H.BXSFN_6B.js} +6 -6
- package/library/chunks/{chunk-GF5L2VYU.D7Kyf8tv.js → chunk-GF5L2VYU.BBRVN_Sz.js} +5 -5
- package/library/chunks/{chunk-I66GZJ75.H0-SV6eJ.js → chunk-I66GZJ75.lUTR0Zxp.js} +1 -1
- package/library/chunks/{chunk-JQJVKLGR.vSmZrVfn.js → chunk-JQJVKLGR.dOAJ_eec.js} +7 -7
- package/library/chunks/{chunk-KBJHAD2P.BFtv98WB.js → chunk-KBJHAD2P.Bfz5cQAa.js} +1 -1
- package/library/chunks/{chunk-NSK5VX7P.CigvU-YZ.js → chunk-NSK5VX7P.BkWzMz1o.js} +1 -1
- package/library/chunks/{chunk-QR6OTTB3.DXgKvg29.js → chunk-QR6OTTB3.DyBl4spZ.js} +6 -6
- package/library/chunks/{chunk-UBXNYLIW.Cwnmh6rE.js → chunk-UBXNYLIW.BjkOeuJd.js} +2 -2
- package/library/chunks/{chunk-W5SLKNZC.BGc7e7pD.js → chunk-W5SLKNZC.DzlXmWcA.js} +1 -1
- package/library/chunks/{chunk-WRU74C26.DI6bT2w6.js → chunk-WRU74C26.BDl8PZFV.js} +3 -3
- package/library/chunks/{classDiagram-JCYQIIEL.64BYmngb.js → classDiagram-JCYQIIEL.P36yteOv.js} +12 -12
- package/library/chunks/{classDiagram-v2-OCEON4UE.BZauU1et.js → classDiagram-v2-OCEON4UE.C05djrx3.js} +12 -12
- package/library/chunks/{color-picker.B6zsp9q3.js → color-picker.DkbU0_4f.js} +8 -8
- package/library/chunks/{color-swatch-group.C-4jpi7T.js → color-swatch-group.D99_BsTs.js} +28 -28
- package/library/chunks/{color-swatch.Biz89VJr.js → color-swatch.CvynJPeG.js} +1 -1
- package/library/chunks/{config-manager.D4XcNU1d.js → config-manager.C-RYOYzN.js} +27 -27
- package/library/chunks/{configs-controller.C8z7oMRd.js → configs-controller.kn8RjF1m.js} +19 -19
- package/library/chunks/{confirm-popover.UUhlXSDu.js → confirm-popover.buH5MWGz.js} +3 -3
- package/library/chunks/{corner-position-input-group.vhSOueRn.js → corner-position-input-group.C76I7S9W.js} +3 -3
- package/library/chunks/{cynefinDiagram-MW4NZA55.DcUv6X--.js → cynefinDiagram-MW4NZA55.CN3dX-zy.js} +3 -3
- package/library/chunks/{dagre-VZM6K2ZE.REv4K_Qj.js → dagre-VZM6K2ZE.DpSsP2YW.js} +8 -8
- package/library/chunks/{diagram-7IWD3JNH.C6XfUay-.js → diagram-7IWD3JNH.C3K0gCHG.js} +4 -4
- package/library/chunks/{diagram-B4RE2ZJO.Bp-nT294.js → diagram-B4RE2ZJO.BULgC23C.js} +2 -2
- package/library/chunks/{diagram-LBJQPF4R.DM8MEbI5.js → diagram-LBJQPF4R.BmYYTkym.js} +3 -3
- package/library/chunks/{diagram-Q27KOJAE.DYhFE9pI.js → diagram-Q27KOJAE.Bj5ayV3p.js} +5 -5
- package/library/chunks/{diagram-UB23O5K3.BONLndDU.js → diagram-UB23O5K3.Bu_lTx_A.js} +3 -3
- package/library/chunks/{dialog.BKSCSk0r.js → dialog.DprCsbFG.js} +1 -1
- package/library/chunks/{diff.DZjfy2VU.js → diff.Bmdpmpvo.js} +1 -1
- package/library/chunks/{document-viewer.DVV4HsLS.js → document-viewer.B82zT0Zq.js} +5 -5
- package/library/chunks/{dom.BsVeSE01.js → dom.BLHsooDR.js} +1 -1
- package/library/chunks/{drawer.BEXLFfil.js → drawer.Ba0CKg86.js} +1 -1
- package/library/chunks/{dropdown.CcjP36wF.js → dropdown.EJbgwPgi.js} +3 -3
- package/library/chunks/{dynamic-select.DmTXLyzH.js → dynamic-select.3VAXf0Tb.js} +3 -3
- package/library/chunks/{ebnfDiagram-BXEA7PRR.vgCVWkh_.js → ebnfDiagram-BXEA7PRR.Cg96HHIs.js} +3 -3
- package/library/chunks/{element-clamp.CwFlUOET.js → element-clamp.M1QI20RB.js} +1 -1
- package/library/chunks/{erDiagram-JOGREHBK.l02-sIjI.js → erDiagram-JOGREHBK.CrJ962th.js} +11 -11
- package/library/chunks/{file-on-demand.CLwTe72F.js → file-on-demand.CftwNAbV.js} +11 -11
- package/library/chunks/flowDiagram-UKHOOZJN.Bj_loY7-.js +16 -0
- package/library/chunks/{folder-select.BF1l6Zah.js → folder-select.D8VOcyyD.js} +15 -15
- package/library/chunks/{form.JYXtmwQ2.js → form.D_eBa3AQ.js} +1 -1
- package/library/chunks/{ganttDiagram-PKOTCBZU.CD-H_noy.js → ganttDiagram-PKOTCBZU.D216_p5R.js} +2 -2
- package/library/chunks/{gitGraphDiagram-DS77QQ5N.eu4pijfq.js → gitGraphDiagram-DS77QQ5N.BGTaYiUE.js} +2 -2
- package/library/chunks/{infoDiagram-6WML65LV.Xm33NlcD.js → infoDiagram-6WML65LV.BHVojFJh.js} +2 -2
- package/library/chunks/{input.D1UkXp3F.js → input.Cqg_VUUU.js} +1 -1
- package/library/chunks/{ishikawaDiagram-WSZJBQD7.B-DjIT2K.js → ishikawaDiagram-WSZJBQD7.nZsYnPcQ.js} +3 -3
- package/library/chunks/{journeyDiagram-NVQOT4AX.ByuFaAO4.js → journeyDiagram-NVQOT4AX.BXUxAk98.js} +2 -2
- package/library/chunks/{kanban-definition-27J2QSJJ.BEAgE6i7.js → kanban-definition-27J2QSJJ.Bg8-oEtc.js} +8 -8
- package/library/chunks/{katex.DaGFosgJ.js → katex.BqirFtOb.js} +1 -1
- package/library/chunks/katex.KcI9vfm6.js +21947 -0
- package/library/chunks/{line-clamp.COXyDBRB.js → line-clamp.DfbWHPf2.js} +1 -1
- package/library/chunks/{markdown.Evcme-Lw.js → markdown.DX6E6sHb.js} +187 -100
- package/library/chunks/{mermaid.core.CUTdrxBG.js → mermaid.core.m1JI7kDY.js} +48 -48
- package/library/chunks/{mindmap-definition-FAOFIHXS.rbw_pav-.js → mindmap-definition-FAOFIHXS.DwjOzYq5.js} +10 -10
- package/library/chunks/{modal.775mgCbW.js → modal.eB-mqL-y.js} +1 -1
- package/library/chunks/option.g339be2v.js +136 -0
- package/library/chunks/{padding-input-group.CGDq3Cct.js → padding-input-group.B0hKvaQw.js} +1 -1
- package/library/chunks/{pagination.Mr-XiQBd.js → pagination.C1a6I0Np.js} +4 -4
- package/library/chunks/{pegDiagram-VL7TDLO6.BAxarQjC.js → pegDiagram-VL7TDLO6.BaVddVr3.js} +3 -3
- package/library/chunks/{pieDiagram-7S7Q4E2Y.Du6akIPM.js → pieDiagram-7S7Q4E2Y.lZiCqBKs.js} +3 -3
- package/library/chunks/{position-picker.DzRyAx7a.js → position-picker.ZNQJCQeD.js} +1 -1
- package/library/chunks/{quadrantDiagram-CIZ2JOQS.0LTMJXU8.js → quadrantDiagram-CIZ2JOQS.DswnHa_z.js} +1 -1
- package/library/chunks/{radio-card.jROctGtI.js → radio-card.DIbQQQHJ.js} +1 -1
- package/library/chunks/{radio-group.DSnDDjKe.js → radio-group.CHlxPcrs.js} +1 -1
- package/library/chunks/{railroadDiagram-AXF67PYL.BU5cQCmX.js → railroadDiagram-AXF67PYL.RYtWvnP4.js} +3 -3
- package/library/chunks/{range.CQzHuhd9.js → range.BbymfcRB.js} +1 -1
- package/library/chunks/{requirementDiagram-LRYGKXZP.BM4tLaE8.js → requirementDiagram-LRYGKXZP.BhxZAEJL.js} +10 -10
- package/library/chunks/{sankeyDiagram-W5VNT64P.r2kIOMLC.js → sankeyDiagram-W5VNT64P.Dk8npZSg.js} +1 -1
- package/library/chunks/{select.CEgt2ciT.js → select.jh554mmg.js} +151 -99
- package/library/chunks/{sequenceDiagram-SI44F4Z6.CJ50A-EW.js → sequenceDiagram-SI44F4Z6.BNjBc769.js} +4 -4
- package/library/chunks/{shadow-input-group.DTEIzl1s.js → shadow-input-group.CVVmDUWM.js} +2 -2
- package/library/chunks/{share-option-list.CdQeYk-I.js → share-option-list.DJhjvLt5.js} +1 -1
- package/library/chunks/sidebar.DvMb2Ug6.js +120 -0
- package/library/chunks/{size-input-group.DtldCuqS.js → size-input-group.CS5sCYFS.js} +2 -2
- package/library/chunks/{src.BjEmxalH.js → src.CcXIUp6p.js} +29 -29
- package/library/chunks/{src.BJpSLSUr.js → src.DY4Vfem2.js} +3 -3
- package/library/chunks/{stateDiagram-OKZ733FA.DZ7h0fa_.js → stateDiagram-OKZ733FA.DkiIgxjd.js} +12 -12
- package/library/chunks/{stateDiagram-v2-UEYNNEHI.BhaYePWf.js → stateDiagram-v2-UEYNNEHI.oVj_Ex1_.js} +12 -12
- package/library/chunks/{step.BlnWLzqI.js → step.QBmFqnA4.js} +1 -1
- package/library/chunks/{stepper-wizard.t7enm9Uz.js → stepper-wizard.D0zrSaVI.js} +2 -2
- package/library/chunks/{stepper.DzhUPTLW.js → stepper.BBZ3Sunl.js} +1 -1
- package/library/chunks/{string.DAuTpyw8.js → string.9yahdkB8.js} +39 -1
- package/library/chunks/{swimlanes-SLNWSIFB.B31m3AJi.js → swimlanes-SLNWSIFB.DKU7qXJ7.js} +8 -8
- package/library/chunks/{swimlanesDiagram-ULZ7WXOC.DkcvdPqC.js → swimlanesDiagram-ULZ7WXOC.DYwYMO_K.js} +12 -12
- package/library/chunks/{switch.CBho2RVW.js → switch.BM9msK5T.js} +1 -1
- package/library/chunks/{tab-group.DIVmzKse.js → tab-group.DkF7nLim.js} +4 -4
- package/library/chunks/{tab.C0oUx7MY.js → tab.ACKD6jJ8.js} +1 -1
- package/library/chunks/{tabbable.Bflg1dha.js → tabbable.BSwpOHdm.js} +1 -1
- package/library/chunks/{tag.B2S21_nF.js → tag.uwkILLDo.js} +1 -1
- package/library/chunks/{textarea.BgWdR_7D.js → textarea.CHSZI8vt.js} +1 -1
- package/library/chunks/{timecode.DME2imtx.js → timecode.DjI1OTXD.js} +1 -1
- package/library/chunks/{timeline-definition-Z64GVDOM.CNKRW4xi.js → timeline-definition-Z64GVDOM.agRZ87Zs.js} +3 -3
- package/library/chunks/{tree.Bq4vAQ6w.js → tree.Dc1p0HOj.js} +11 -5
- package/library/chunks/{typeface.Dr9m4SZE.js → typeface.DacggLTX.js} +1 -1
- package/library/chunks/{vennDiagram-T6HMQDX7.CObwvEEr.js → vennDiagram-T6HMQDX7.Cd9lVObe.js} +3 -3
- package/library/chunks/{wardleyDiagram-T6FBY63Y.BTL3nwWJ.js → wardleyDiagram-T6FBY63Y.yCklp5Oa.js} +3 -3
- package/library/chunks/{xychartDiagram-ELKLHX3M.DMDlz8tK.js → xychartDiagram-ELKLHX3M.CLuRN0XK.js} +5 -5
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +33 -33
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/button.js +1 -1
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/color-swatch.js +1 -1
- package/library/components/confirm-popover.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/diff.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/molecules.js +15 -15
- package/library/components/option.js +1 -1
- package/library/components/organisms.js +3 -3
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/tab.js +1 -1
- package/library/components/tag.js +1 -1
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +12630 -12630
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/markdown/markdown.d.ts +12 -3
- package/library/packages/atoms/src/components/markdown/parser.d.ts +7 -2
- package/library/packages/atoms/src/components/option/option.d.ts +15 -2
- package/library/packages/atoms/src/components/select/select.d.ts +23 -2
- package/library/packages/molecules/src/sidebar/sidebar.d.ts +16 -2
- package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +1 -1
- package/library/packages/types/src/markdown.d.ts +5 -0
- package/library/packages/types/src/sidebar.d.ts +2 -0
- package/library/packages/utils/src/string/string.d.ts +20 -0
- package/library/react-web-component.d.ts +26 -2
- package/library/utils.js +26 -26
- package/package.json +1 -1
- package/library/chunks/flowDiagram-UKHOOZJN.BoFivhJR.js +0 -16
- package/library/chunks/option.Da60zYvc.js +0 -100
- package/library/chunks/sidebar.CwAW3KaC.js +0 -100
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { c as e, d as t, r as n } from "./lit.CyJqR2kf.js";
|
|
2
|
-
import { a as r, i, n as a, r as o, t as s } from "./cortex-element.DTrNUtdr.js";
|
|
3
|
-
import { t as c } from "./query.B1yi7t71.js";
|
|
4
|
-
import { t as l } from "./component.styles.0xM1ZmBs.js";
|
|
5
|
-
import { t as u } from "./custom-element.BEMYNDK1.js";
|
|
6
|
-
import { t as d } from "./slot.CZUlACxT.js";
|
|
7
|
-
import { t as f } from "./watch.Ub5r8btz.js";
|
|
8
|
-
import { t as p } from "./class-map.D8nsNOVJ.js";
|
|
9
|
-
import { t as m } from "./icon-button.BAUsYiQh.js";
|
|
10
|
-
import { t as h } from "./icon.CeQpEaQz.js";
|
|
11
|
-
import { t as g } from "./resize-observer.D9EHlnZI.js";
|
|
12
|
-
import { t as _ } from "./drag.s0AcVpKh.js";
|
|
13
|
-
import { t as v } from "./divider.CqSNZCU8.js";
|
|
14
|
-
//#region ../../packages/molecules/src/sidebar/sidebar.styles.ts
|
|
15
|
-
var y = t`:host{--_background-color:var(--background-color,var(--cx-color-neutral-0));--_hint-color:var(--hint-color,var(--cx-color-primary-300));--closed-width:0px;display:block}.sidebar{grid-template-rows:100%;grid-template-areas:"main";display:grid;position:relative}.sidebar,.group--opened,.group--closed,.group_content,.open_trigger{height:100%}.group--opened,.group--closed{grid-area:main}.sidebar__header{padding:var(--cx-spacing-x-small) var(--cx-spacing-small);position:relative}.sidebar--no-header .sidebar__header{display:none}.content{padding:var(--cx-spacing-small);padding-bottom:var(--cx-spacing-small);flex-grow:1}.sidebar__divider{--spacing:6px;position:absolute;top:0}.sidebar__divider:hover{--color:var(--_hint-color);cursor:col-resize}.sidebar--not-resizable .sidebar__divider{cursor:default;pointer-events:none}.sidebar--not-resizable .sidebar__divider:hover{--color:inherit;cursor:default}.sidebar--left .sidebar__divider{right:calc(0px - var(--spacing))}.sidebar--right .sidebar__divider{left:calc(0px - var(--spacing))}.close_trigger{visibility:hidden;top:max(calc(var(--header-height) / 2), 32px);position:absolute;transform:translateY(-50%)}.close_trigger>cx-icon-button::part(base){background-color:var(--cx-color-neutral-0)}.sidebar--left .close_trigger{right:0;transform:translate(50%,-50%)}.sidebar--right .close_trigger{left:0;transform:translate(-50%,-50%)}.sidebar--opened:hover .close_trigger{visibility:visible}.open_trigger{padding:var(--cx-spacing-medium);cursor:pointer;background-color:var(--_background-color);position:relative}.open_trigger_hint{--spacing:0;position:absolute;top:0;right:0}.open_trigger:hover .open_trigger_hint{--color:var(--_hint-color)}.group_container{overflow-x:clip}.group--opened,.group--closed{flex-direction:column;display:flex}.group--closed{width:var(--closed-width)}.group_content{background-color:var(--_background-color);contain:inline-size;overflow:clip auto}.group--opened .group_content{width:var(--size);min-width:var(--min-width);max-width:var(--max-width)}.sidebar--opened .group--opened{visibility:visible}.sidebar--opened .group--closed{visibility:hidden;width:0}.sidebar:not(.sidebar--opened) .group--closed{visibility:visible}.sidebar:not(.sidebar--opened) .group--opened{contain:inline-size;visibility:hidden;width:0}`, b = class extends s {
|
|
16
|
-
static #e = this.styles = [l, y];
|
|
17
|
-
static #t = this.dependencies = {
|
|
18
|
-
"cx-divider": v,
|
|
19
|
-
"cx-icon": h,
|
|
20
|
-
"cx-icon-button": m,
|
|
21
|
-
"cx-resize-observer": g
|
|
22
|
-
};
|
|
23
|
-
handleStateChange() {
|
|
24
|
-
this.state === "dragging" ? document.body.style.cursor = "col-resize" : document.body.style.cursor = "";
|
|
25
|
-
}
|
|
26
|
-
handleCollapsibleChange() {
|
|
27
|
-
this.collapsible || (this.open = !0);
|
|
28
|
-
}
|
|
29
|
-
constructor() {
|
|
30
|
-
super(), this.side = "left", this.open = !1, this.collapsible = !1, this.resizable = !1, this.state = "idle", this.hasSlotController = new d(this, "header"), this.handleSizeChange = this.handleSizeChange.bind(this);
|
|
31
|
-
}
|
|
32
|
-
connectedCallback() {
|
|
33
|
-
super.connectedCallback(), this.slot === "left" ? this.side = "left" : this.slot === "right" && (this.side = "right"), this.collapsible || (this.open = !0);
|
|
34
|
-
}
|
|
35
|
-
handleDrag(e) {
|
|
36
|
-
this.resizable && (e.cancelable && e.preventDefault(), this.state = "dragging", _(this, {
|
|
37
|
-
initialEvent: e,
|
|
38
|
-
onMove: (e) => {
|
|
39
|
-
let t = e;
|
|
40
|
-
this.side === "right" && (t = this.getBoundingClientRect().width - e), t = Math.max(0, t), this.style.setProperty("--size", `${t}px`);
|
|
41
|
-
},
|
|
42
|
-
onStop: this.handleSizeChange
|
|
43
|
-
}));
|
|
44
|
-
}
|
|
45
|
-
handleSizeChange() {
|
|
46
|
-
this.state = "idle", requestAnimationFrame(() => {
|
|
47
|
-
let e = this.getBoundingClientRect().width;
|
|
48
|
-
this.style.setProperty("--size", `${e}px`), this.emit("cx-after-resize", { detail: {
|
|
49
|
-
side: this.side,
|
|
50
|
-
size: e
|
|
51
|
-
} });
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
handleResize() {
|
|
55
|
-
this.style.setProperty("--header-height", `${this.header.getBoundingClientRect().height}px`);
|
|
56
|
-
}
|
|
57
|
-
handleCloseTriggerClick() {
|
|
58
|
-
this.collapsible && (this.open = !1);
|
|
59
|
-
}
|
|
60
|
-
handleOpenTriggerClick() {
|
|
61
|
-
this.collapsible && (this.open = !0);
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
let t = this.hasSlotController.test("header");
|
|
65
|
-
return e`<div part="base" class=${p({
|
|
66
|
-
sidebar: !0,
|
|
67
|
-
"sidebar--left": this.side === "left",
|
|
68
|
-
"sidebar--no-header": !t,
|
|
69
|
-
"sidebar--not-resizable": !this.resizable,
|
|
70
|
-
"sidebar--opened": this.open,
|
|
71
|
-
"sidebar--right": this.side === "right"
|
|
72
|
-
})}><div class=${p({
|
|
73
|
-
"group--closed": !this.open,
|
|
74
|
-
"group--opened": this.open
|
|
75
|
-
})}><div class="group_content"><cx-resize-observer @cx-resize=${this.handleResize}><div part="header" class="sidebar__header"><slot name="header"></slot></div></cx-resize-observer>${t ? e`<cx-divider style="--spacing:0"></cx-divider>` : n}<div part="content" class="content"><slot></slot></div></div><cx-divider class="sidebar__divider" vertical @mousedown=${this.handleDrag} @touchstart=${this.handleDrag}></cx-divider>${this.collapsible ? e`<div class="close_trigger" @click=${this.handleCloseTriggerClick}><cx-icon-button outline size="small" name=${this.side === "right" ? "keyboard_double_arrow_right" : "keyboard_double_arrow_left"}></cx-icon-button></div>` : n}</div>${this.collapsible ? e`<div class="group--closed"><div class="group_content"><div class="open_trigger" @click=${this.handleOpenTriggerClick}><slot name="open_trigger"><cx-icon name=${this.side === "right" ? "keyboard_double_arrow_left" : "keyboard_double_arrow_right"}></cx-icon></slot><cx-divider class="open_trigger_hint" vertical></cx-divider></div></div></div>` : n}</div>`;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
a([c(".sidebar__header"), o("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], b.prototype, "header", void 0), a([r({ reflect: !0 }), o("design:type", Object)], b.prototype, "side", void 0), a([r({
|
|
79
|
-
reflect: !0,
|
|
80
|
-
type: Boolean
|
|
81
|
-
}), o("design:type", Object)], b.prototype, "open", void 0), a([r({
|
|
82
|
-
reflect: !0,
|
|
83
|
-
type: Boolean
|
|
84
|
-
}), o("design:type", Object)], b.prototype, "collapsible", void 0), a([r({
|
|
85
|
-
reflect: !0,
|
|
86
|
-
type: Boolean
|
|
87
|
-
}), o("design:type", Object)], b.prototype, "resizable", void 0), a([i(), o("design:type", String)], b.prototype, "state", void 0), a([
|
|
88
|
-
f("state"),
|
|
89
|
-
o("design:type", Function),
|
|
90
|
-
o("design:paramtypes", []),
|
|
91
|
-
o("design:returntype", void 0)
|
|
92
|
-
], b.prototype, "handleStateChange", null), a([
|
|
93
|
-
f("collapsible"),
|
|
94
|
-
o("design:type", Function),
|
|
95
|
-
o("design:paramtypes", []),
|
|
96
|
-
o("design:returntype", void 0)
|
|
97
|
-
], b.prototype, "handleCollapsibleChange", null), b = a([u("cx-sidebar"), o("design:paramtypes", [])], b);
|
|
98
|
-
var x = b;
|
|
99
|
-
//#endregion
|
|
100
|
-
export { x as t };
|