@pb33f/cowboy-components 0.14.1 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_baseUniq-Co8RB71y.cjs → _baseUniq-CcxAQehO.cjs} +1 -1
- package/dist/{_baseUniq-CcG8uZM_.js → _baseUniq-D4rJF50w.js} +1 -1
- package/dist/{arc-CZ9OyfV-.js → arc-BBcL5DDo.js} +2 -2
- package/dist/{arc-D5LG9aVl.cjs → arc-DRXUQifE.cjs} +1 -1
- package/dist/{architecture-YZFGNWBL-CuyaOcgJ.cjs → architecture-YZFGNWBL-3WXQ3I4D.cjs} +1 -1
- package/dist/{architecture-YZFGNWBL-ne59NWt0.js → architecture-YZFGNWBL-6bXiGt6C.js} +1 -1
- package/dist/{architectureDiagram-Q4EWVU46-CxErVIKm.cjs → architectureDiagram-Q4EWVU46-BTMeQ3OF.cjs} +1 -1
- package/dist/{architectureDiagram-Q4EWVU46-ibaXfmmT.js → architectureDiagram-Q4EWVU46-DUvNnA5F.js} +4 -4
- package/dist/{blockDiagram-DXYQGD6D-D5vqojm8.js → blockDiagram-DXYQGD6D-DC7S-9ly.js} +6 -6
- package/dist/{blockDiagram-DXYQGD6D-iFIpSW7Y.cjs → blockDiagram-DXYQGD6D-DKjoamdG.cjs} +1 -1
- package/dist/{c4Diagram-AHTNJAMY-Av_INk2v.cjs → c4Diagram-AHTNJAMY-1cZN1b1j.cjs} +1 -1
- package/dist/{c4Diagram-AHTNJAMY-B7t5p6jA.js → c4Diagram-AHTNJAMY-C2HM5L5y.js} +2 -2
- package/dist/{change-list-item-Bu_mPv-k.js → change-list-item-BRSBlaLu.js} +348 -350
- package/dist/{change-list-item-4xBSo3-U.cjs → change-list-item-Dy1GNFQ8.cjs} +91 -91
- package/dist/{channel-BvR-WhLo.js → channel-BKDLVUWb.js} +1 -1
- package/dist/{channel-DO31wbvk.cjs → channel-BlCJ7xlY.cjs} +1 -1
- package/dist/{chunk-4BX2VUAB-DQ4rU_AZ.js → chunk-4BX2VUAB-CnfyXlfw.js} +1 -1
- package/dist/{chunk-4BX2VUAB-DHdTrTTD.cjs → chunk-4BX2VUAB-NW_XCCwP.cjs} +1 -1
- package/dist/{chunk-4TB4RGXK-BlskfrH8.cjs → chunk-4TB4RGXK-BJ99eS9b.cjs} +1 -1
- package/dist/{chunk-4TB4RGXK-BK_uuzSP.js → chunk-4TB4RGXK-gKPXAguU.js} +5 -5
- package/dist/{chunk-55IACEB6-BauZDeFH.js → chunk-55IACEB6-CU9_jSXF.js} +1 -1
- package/dist/{chunk-55IACEB6-CRJ5yCrP.cjs → chunk-55IACEB6-DDpMGjZ2.cjs} +1 -1
- package/dist/{chunk-EDXVE4YY-BrlRuHp3.cjs → chunk-EDXVE4YY-_kGe71HQ.cjs} +1 -1
- package/dist/{chunk-EDXVE4YY-DPpXfrr8.js → chunk-EDXVE4YY-hC5XWKZE.js} +1 -1
- package/dist/{chunk-FMBD7UC4-CtyzUnzx.js → chunk-FMBD7UC4-B3Zm2tua.js} +1 -1
- package/dist/{chunk-FMBD7UC4-0x38b8wg.cjs → chunk-FMBD7UC4-BeU0NsyZ.cjs} +1 -1
- package/dist/{chunk-OYMX7WX6-DU4Zqa7r.cjs → chunk-OYMX7WX6-BS0iw8z2.cjs} +1 -1
- package/dist/{chunk-OYMX7WX6-U53KZXxw.js → chunk-OYMX7WX6-N_-WeqFw.js} +3 -3
- package/dist/{chunk-QZHKN3VN-Dyhr8mWm.cjs → chunk-QZHKN3VN-BXMAYBIS.cjs} +1 -1
- package/dist/{chunk-QZHKN3VN-BhntY1rB.js → chunk-QZHKN3VN-mAIfp7aM.js} +1 -1
- package/dist/{chunk-YZCP3GAM--UtgfYoK.js → chunk-YZCP3GAM-BA9Cb_dj.js} +1 -1
- package/dist/{chunk-YZCP3GAM-B_2rYHHe.cjs → chunk-YZCP3GAM-yP8Rfi4-.cjs} +1 -1
- package/dist/{classDiagram-v2-HSJHXN6E-DX5nDbg5.js → classDiagram-6PBFFD2Q-DmBjAksk.js} +2 -2
- package/dist/{classDiagram-6PBFFD2Q-w916JDya.cjs → classDiagram-6PBFFD2Q-SGFXmgLD.cjs} +1 -1
- package/dist/{classDiagram-6PBFFD2Q-DX5nDbg5.js → classDiagram-v2-HSJHXN6E-DmBjAksk.js} +2 -2
- package/dist/{classDiagram-v2-HSJHXN6E-w916JDya.cjs → classDiagram-v2-HSJHXN6E-SGFXmgLD.cjs} +1 -1
- package/dist/clone-HA7BKYTg.cjs +1 -0
- package/dist/{clone-DFz4YXr3.js → clone-txbrtOfE.js} +1 -1
- package/dist/components/bundle-toolbar/bundle-toolbar.d.ts +0 -1
- package/dist/components/bundle-toolbar/bundle-toolbar.js +1 -3
- package/dist/components/editor/editor.js +114 -18
- package/dist/components/premium-gate/premium-gate.d.ts +1 -0
- package/dist/components/premium-gate/premium-gate.js +6 -0
- package/dist/components/rodeo/roundup.d.ts +7 -0
- package/dist/components/rodeo/roundup.js +40 -0
- package/dist/components/rodeo/user-detail.js +6 -3
- package/dist/components/the-doctor/doctor-editor-panel.css.js +67 -30
- package/dist/components/the-doctor/doctor-editor-panel.d.ts +1 -0
- package/dist/components/the-doctor/doctor-editor-panel.js +9 -1
- package/dist/components/the-doctor/doctor-navigator-panel.css.js +1 -0
- package/dist/components/the-doctor/doctor-sidebar-panel.d.ts +4 -1
- package/dist/components/the-doctor/doctor-sidebar-panel.js +18 -3
- package/dist/components/the-doctor/printing-press-docs-pending.css.d.ts +2 -0
- package/dist/components/the-doctor/printing-press-docs-pending.css.js +47 -0
- package/dist/components/the-doctor/printing-press-docs-pending.d.ts +12 -0
- package/dist/components/the-doctor/printing-press-docs-pending.js +41 -0
- package/dist/components/the-doctor/printing-press-docs-unavailable.css.d.ts +2 -0
- package/dist/components/the-doctor/printing-press-docs-unavailable.css.js +34 -0
- package/dist/components/the-doctor/printing-press-docs-unavailable.d.ts +12 -0
- package/dist/components/the-doctor/printing-press-docs-unavailable.js +35 -0
- package/dist/components/the-doctor/printing-press-export-controls.css.d.ts +2 -0
- package/dist/components/the-doctor/printing-press-export-controls.css.js +26 -0
- package/dist/components/the-doctor/printing-press-export-controls.d.ts +16 -0
- package/dist/components/the-doctor/printing-press-export-controls.js +75 -0
- package/dist/components/the-doctor/the-doctor.css.js +101 -8
- package/dist/components/the-doctor/the-doctor.d.ts +54 -2
- package/dist/components/the-doctor/the-doctor.js +603 -23
- package/dist/components/workspaces/workspace-view.d.ts +1 -5
- package/dist/components/workspaces/workspace-view.js +4 -11
- package/dist/controllers/diagnostic-controller.d.ts +2 -0
- package/dist/controllers/diagnostic-controller.js +40 -1
- package/dist/controllers/node-clicker-controller.d.ts +2 -3
- package/dist/controllers/spec-controller.js +1 -1
- package/dist/controllers/workspace-controller.d.ts +1 -2
- package/dist/controllers/workspace-controller.js +2 -2
- package/dist/{cose-bilkent-S5V4N54A-DcUKlxlF.js → cose-bilkent-S5V4N54A-DBJqJbCC.js} +2 -2
- package/dist/{cose-bilkent-S5V4N54A-CKHB3cR8.cjs → cose-bilkent-S5V4N54A-DKrIstpT.cjs} +1 -1
- package/dist/{cowboy-components-CxawaKWM.js → cowboy-components-BkbVjFUn.js} +12442 -12772
- package/dist/{cowboy-components-CjgqXqkM.cjs → cowboy-components-CC8oMHf-.cjs} +1517 -1637
- package/dist/{dagre-KV5264BT-Nl_VfI8a.js → dagre-KV5264BT-6ivm8x2F.js} +5 -5
- package/dist/{dagre-KV5264BT-B2JWO01l.cjs → dagre-KV5264BT-DcOLPle_.cjs} +1 -1
- package/dist/{diagram-5BDNPKRD-TI1X3fNz.js → diagram-5BDNPKRD-D8TDw4p9.js} +4 -4
- package/dist/{diagram-5BDNPKRD-BKI_3vWy.cjs → diagram-5BDNPKRD-blWzHQZ7.cjs} +1 -1
- package/dist/{diagram-G4DWMVQ6-CFqOAmuK.js → diagram-G4DWMVQ6-Dn6dxIqX.js} +4 -4
- package/dist/{diagram-G4DWMVQ6-DFBdN4sf.cjs → diagram-G4DWMVQ6-fvPAIer2.cjs} +1 -1
- package/dist/{diagram-MMDJMWI5-CFuTCrVQ.cjs → diagram-MMDJMWI5-DsAWXLaB.cjs} +1 -1
- package/dist/{diagram-MMDJMWI5-BSsV2xaN.js → diagram-MMDJMWI5-DxjVFVuv.js} +3 -3
- package/dist/{diagram-TYMM5635-CrgW2ZZO.cjs → diagram-TYMM5635-B4DB8EDE.cjs} +1 -1
- package/dist/{diagram-TYMM5635-BP1f-EB_.js → diagram-TYMM5635-BmR3CaLC.js} +3 -3
- package/dist/{erDiagram-SMLLAGMA-rVfyZdO4.js → erDiagram-SMLLAGMA-CYtgB5bQ.js} +4 -4
- package/dist/{erDiagram-SMLLAGMA-C3caLNRz.cjs → erDiagram-SMLLAGMA-DgaR7ydl.cjs} +1 -1
- package/dist/events/doctor.d.ts +2 -0
- package/dist/events/doctor.js +2 -0
- package/dist/{flowDiagram-DWJPFMVM-DqFXC8zL.js → flowDiagram-DWJPFMVM-BnkLG0fX.js} +6 -6
- package/dist/{flowDiagram-DWJPFMVM-Ce_HVRt5.cjs → flowDiagram-DWJPFMVM-lSCRydu7.cjs} +1 -1
- package/dist/{ganttDiagram-T4ZO3ILL-HHFgf8w4.cjs → ganttDiagram-T4ZO3ILL-CV7stMVQ.cjs} +1 -1
- package/dist/{ganttDiagram-T4ZO3ILL-BmNOX7yf.js → ganttDiagram-T4ZO3ILL-DDbZ3aVk.js} +3 -3
- package/dist/{gitGraph-7Q5UKJZL-kCDkIMWc.js → gitGraph-7Q5UKJZL-Bh_-qrDd.js} +1 -1
- package/dist/{gitGraph-7Q5UKJZL-DgndfdDH.cjs → gitGraph-7Q5UKJZL-C48W9r-6.cjs} +1 -1
- package/dist/{gitGraphDiagram-UUTBAWPF-C-Ahhj_h.js → gitGraphDiagram-UUTBAWPF-7dOdrwvn.js} +4 -4
- package/dist/{gitGraphDiagram-UUTBAWPF-DaVjvjth.cjs → gitGraphDiagram-UUTBAWPF-BFDetPjA.cjs} +1 -1
- package/dist/{graph-Dfys1tzR.js → graph-BEwWEKyK.js} +2 -2
- package/dist/{graph-DyZUkQBU.cjs → graph-CMqpo-tH.cjs} +1 -1
- package/dist/{info-OMHHGYJF-Cb_sFFZS.cjs → info-OMHHGYJF-tWjJ6Rfi.cjs} +1 -1
- package/dist/info-OMHHGYJF-yksB7HGd.js +5 -0
- package/dist/{infoDiagram-42DDH7IO-C09CiT2v.cjs → infoDiagram-42DDH7IO-B-zDHJLg.cjs} +1 -1
- package/dist/{infoDiagram-42DDH7IO-BP_YOQpC.js → infoDiagram-42DDH7IO-CbGARbXr.js} +2 -2
- package/dist/interfaces/doctor-interfaces.d.ts +10 -2
- package/dist/{ishikawaDiagram-UXIWVN3A-DwW6fn0e.js → ishikawaDiagram-UXIWVN3A-DQSJwN_Z.js} +1 -1
- package/dist/{ishikawaDiagram-UXIWVN3A-CjAoGU0v.cjs → ishikawaDiagram-UXIWVN3A-qVeMqm60.cjs} +1 -1
- package/dist/{journeyDiagram-VCZTEJTY-Bk7z4VA2.js → journeyDiagram-VCZTEJTY-CG--P4FG.js} +4 -4
- package/dist/{journeyDiagram-VCZTEJTY-CZnSwt6p.cjs → journeyDiagram-VCZTEJTY-CHaChybV.cjs} +1 -1
- package/dist/{kanban-definition-6JOO6SKY-BiN4nM1i.js → kanban-definition-6JOO6SKY-Buc_IGxV.js} +2 -2
- package/dist/{kanban-definition-6JOO6SKY-DZF8xgYV.cjs → kanban-definition-6JOO6SKY-C7CBEjZ_.cjs} +1 -1
- package/dist/{layout-BDanDonD.js → layout-CKSgi94P.js} +4 -4
- package/dist/{layout-rTQtAIwn.cjs → layout-CLgC5_hw.cjs} +1 -1
- package/dist/{linear-CuHSYSeN.cjs → linear-BfsPvbL_.cjs} +1 -1
- package/dist/{linear-DFB2dCGq.js → linear-BkA_W1oB.js} +1 -1
- package/dist/{mermaid-parser.core-CCHvxUQl.js → mermaid-parser.core-BMlbf7rO.js} +13 -13
- package/dist/{mermaid-parser.core-fjh_cn2l.cjs → mermaid-parser.core-luq90wBd.cjs} +2 -2
- package/dist/{min-rDRC9KDF.js → min-CVydceyS.js} +2 -2
- package/dist/{min-h6fs1hPk.cjs → min-Q2bX8h_x.cjs} +1 -1
- package/dist/{mindmap-definition-QFDTVHPH-CZMHHnKO.js → mindmap-definition-QFDTVHPH-DOvuLetv.js} +3 -3
- package/dist/{mindmap-definition-QFDTVHPH-BbUJ3LHd.cjs → mindmap-definition-QFDTVHPH-znF9YoVM.cjs} +1 -1
- package/dist/model/api-response.d.ts +1 -0
- package/dist/model/feature-flags.d.ts +1 -0
- package/dist/model/feature-flags.js +1 -0
- package/dist/model/roundup-stats.d.ts +7 -0
- package/dist/{packet-4T2RLAQJ-Bl5gBk4Q.js → packet-4T2RLAQJ-1cYABjJF.js} +1 -1
- package/dist/{packet-4T2RLAQJ-BRTuQgpj.cjs → packet-4T2RLAQJ-DXCBVGay.cjs} +1 -1
- package/dist/{pie-ZZUOXDRM-BbZyrtOg.cjs → pie-ZZUOXDRM-Bd5PsUhQ.cjs} +1 -1
- package/dist/pie-ZZUOXDRM-cNX2KOuy.js +5 -0
- package/dist/{pieDiagram-DEJITSTG-BNTE6R98.js → pieDiagram-DEJITSTG-DhMF4gRo.js} +5 -5
- package/dist/{pieDiagram-DEJITSTG-BpiMiYGL.cjs → pieDiagram-DEJITSTG-Pt_uCJhK.cjs} +1 -1
- package/dist/{quadrantDiagram-34T5L4WZ-JjtOrhxB.js → quadrantDiagram-34T5L4WZ-AM3AGl4y.js} +2 -2
- package/dist/{quadrantDiagram-34T5L4WZ-DODOOGae.cjs → quadrantDiagram-34T5L4WZ-DYMJdqM0.cjs} +1 -1
- package/dist/radar-PYXPWWZC-B1JaCxpR.js +5 -0
- package/dist/{radar-PYXPWWZC-CSH1N71W.cjs → radar-PYXPWWZC-vHL8avm6.cjs} +1 -1
- package/dist/{requirementDiagram-MS252O5E-CwV2UGNb.js → requirementDiagram-MS252O5E-6YPm5TWd.js} +3 -3
- package/dist/{requirementDiagram-MS252O5E-CjMpy00l.cjs → requirementDiagram-MS252O5E-Bx9DltXy.cjs} +1 -1
- package/dist/{sankeyDiagram-XADWPNL6-BzayPzy0.cjs → sankeyDiagram-XADWPNL6-DbrWa1O_.cjs} +1 -1
- package/dist/{sankeyDiagram-XADWPNL6-rri4GWAM.js → sankeyDiagram-XADWPNL6-Djyd85aw.js} +1 -1
- package/dist/{sequenceDiagram-FGHM5R23-BwBriXF1.js → sequenceDiagram-FGHM5R23-B-n2cTwl.js} +3 -3
- package/dist/{sequenceDiagram-FGHM5R23-D-YegsL-.cjs → sequenceDiagram-FGHM5R23-DAb44NgC.cjs} +1 -1
- package/dist/services/linting-service.d.ts +1 -0
- package/dist/services/linting-service.js +3 -0
- package/dist/services/printing-press-service.d.ts +27 -0
- package/dist/services/printing-press-service.js +125 -0
- package/dist/{stateDiagram-FHFEXIEX-Cq2H2XQO.cjs → stateDiagram-FHFEXIEX-BYBTQ_pK.cjs} +1 -1
- package/dist/{stateDiagram-FHFEXIEX-jfwjGp1O.js → stateDiagram-FHFEXIEX-_XKcbiJh.js} +5 -5
- package/dist/{stateDiagram-v2-QKLJ7IA2-Bw4Xgr7w.js → stateDiagram-v2-QKLJ7IA2-B9GVD-oD.js} +2 -2
- package/dist/{stateDiagram-v2-QKLJ7IA2-DKL73VEs.cjs → stateDiagram-v2-QKLJ7IA2-Bok2OiPQ.cjs} +1 -1
- package/dist/{timeline-definition-GMOUNBTQ-CpABxKM5.js → timeline-definition-GMOUNBTQ-BWw9gtnV.js} +2 -2
- package/dist/{timeline-definition-GMOUNBTQ-DP1yCayj.cjs → timeline-definition-GMOUNBTQ-BoEUyzb6.cjs} +1 -1
- package/dist/{treeView-SZITEDCU-BtaLEQ3S.js → treeView-SZITEDCU-BeYLCd-q.js} +1 -1
- package/dist/{treeView-SZITEDCU-BizNBkAv.cjs → treeView-SZITEDCU-D33mqIWv.cjs} +1 -1
- package/dist/{treemap-W4RFUUIX-Cbbx2tbB.cjs → treemap-W4RFUUIX-CRpxSKWx.cjs} +1 -1
- package/dist/{treemap-W4RFUUIX-CmVVUeZj.js → treemap-W4RFUUIX-D_S9Y3yp.js} +1 -1
- package/dist/{vennDiagram-DHZGUBPP-Dv3ZX8SJ.cjs → vennDiagram-DHZGUBPP-BPRTzpYw.cjs} +1 -1
- package/dist/{vennDiagram-DHZGUBPP-C0edoxsg.js → vennDiagram-DHZGUBPP-Cc0seIj8.js} +1 -1
- package/dist/{wardley-RL74JXVD-BndLe7vL.cjs → wardley-RL74JXVD-DkU-i349.cjs} +1 -1
- package/dist/{wardley-RL74JXVD-DdQvN9q5.js → wardley-RL74JXVD-osjJIQZA.js} +1 -1
- package/dist/{wardleyDiagram-NUSXRM2D-DCChf1Y2.js → wardleyDiagram-NUSXRM2D-Ci85jUQ0.js} +3 -3
- package/dist/{wardleyDiagram-NUSXRM2D-DpluOG7a.cjs → wardleyDiagram-NUSXRM2D-D-zT1fG0.cjs} +1 -1
- package/dist/{xychartDiagram-5P7HB3ND-B7y6-7BP.cjs → xychartDiagram-5P7HB3ND-DElLnXxW.cjs} +1 -1
- package/dist/{xychartDiagram-5P7HB3ND-BWvz1AY8.js → xychartDiagram-5P7HB3ND-jPkDnp93.js} +3 -3
- package/package.json +1 -1
- package/dist/clone-D_c-FYGd.cjs +0 -1
- package/dist/info-OMHHGYJF-KL9K6Ofp.js +0 -5
- package/dist/pie-ZZUOXDRM-CpENjo0C.js +0 -5
- package/dist/radar-PYXPWWZC-BiAwm-jb.js +0 -5
|
@@ -49,6 +49,14 @@ let RodeoRoundup = class RodeoRoundup extends LitElement {
|
|
|
49
49
|
this.numGitHubRepositories = stats.gitHubRepositories;
|
|
50
50
|
this.numTimelines = stats.timelines;
|
|
51
51
|
this.numSpecChanges = stats.specChanges;
|
|
52
|
+
// docs
|
|
53
|
+
this.numDocsGenerated = stats.docsGenerated;
|
|
54
|
+
this.numDocsActive = stats.docsActive;
|
|
55
|
+
this.numDocsEphemeral = stats.docsEphemeral;
|
|
56
|
+
this.numDocsExpired = stats.docsExpired;
|
|
57
|
+
this.numDocsZipExports = stats.docsZipExports;
|
|
58
|
+
this.numDocsTarGzExports = stats.docsTarGzExports;
|
|
59
|
+
this.numDocsArchiveDownloads = stats.docsArchiveDownloads;
|
|
52
60
|
// cache
|
|
53
61
|
this.cachedAt = stats.cachedAt;
|
|
54
62
|
});
|
|
@@ -115,6 +123,17 @@ let RodeoRoundup = class RodeoRoundup extends LitElement {
|
|
|
115
123
|
<pb33f-rodeo-statistic title="Spec Changes" value="${this.numSpecChanges}"></pb33f-rodeo-statistic>
|
|
116
124
|
</div>
|
|
117
125
|
|
|
126
|
+
<div class="section-label">Docs</div>
|
|
127
|
+
<div class="roundup">
|
|
128
|
+
<pb33f-rodeo-statistic title="Generated" value="${this.numDocsGenerated}"></pb33f-rodeo-statistic>
|
|
129
|
+
<pb33f-rodeo-statistic title="Active" value="${this.numDocsActive}"></pb33f-rodeo-statistic>
|
|
130
|
+
<pb33f-rodeo-statistic title="Ephemeral" value="${this.numDocsEphemeral}"></pb33f-rodeo-statistic>
|
|
131
|
+
<pb33f-rodeo-statistic title="Expired" value="${this.numDocsExpired}"></pb33f-rodeo-statistic>
|
|
132
|
+
<pb33f-rodeo-statistic title="Zip Exports" value="${this.numDocsZipExports}"></pb33f-rodeo-statistic>
|
|
133
|
+
<pb33f-rodeo-statistic title="Tarball Exports" value="${this.numDocsTarGzExports}"></pb33f-rodeo-statistic>
|
|
134
|
+
<pb33f-rodeo-statistic title="Archive Downloads" value="${this.numDocsArchiveDownloads}"></pb33f-rodeo-statistic>
|
|
135
|
+
</div>
|
|
136
|
+
|
|
118
137
|
<div class="emulator">
|
|
119
138
|
${this.terminalEmulator}
|
|
120
139
|
</div>
|
|
@@ -216,6 +235,27 @@ __decorate([
|
|
|
216
235
|
__decorate([
|
|
217
236
|
property({ type: Number })
|
|
218
237
|
], RodeoRoundup.prototype, "numSpecChanges", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
property({ type: Number })
|
|
240
|
+
], RodeoRoundup.prototype, "numDocsGenerated", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
property({ type: Number })
|
|
243
|
+
], RodeoRoundup.prototype, "numDocsActive", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
property({ type: Number })
|
|
246
|
+
], RodeoRoundup.prototype, "numDocsEphemeral", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
property({ type: Number })
|
|
249
|
+
], RodeoRoundup.prototype, "numDocsExpired", void 0);
|
|
250
|
+
__decorate([
|
|
251
|
+
property({ type: Number })
|
|
252
|
+
], RodeoRoundup.prototype, "numDocsZipExports", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
property({ type: Number })
|
|
255
|
+
], RodeoRoundup.prototype, "numDocsTarGzExports", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
property({ type: Number })
|
|
258
|
+
], RodeoRoundup.prototype, "numDocsArchiveDownloads", void 0);
|
|
219
259
|
__decorate([
|
|
220
260
|
property({ type: Number })
|
|
221
261
|
], RodeoRoundup.prototype, "cachedAt", void 0);
|
|
@@ -4,13 +4,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { html, LitElement } from "lit";
|
|
7
|
+
import { html, LitElement, nothing } from "lit";
|
|
8
8
|
import { customElement, property, state } from "lit/decorators.js";
|
|
9
9
|
import { RodeoUserUpdated, RodeoUserBlockToggled, RodeoLoadTransactions, RodeoLoadEvents, RodeoLoadAuditLog, RodeoPageTransactions, RodeoPageEvents, RodeoPageAuditLog } from "../../events/rodeo.js";
|
|
10
10
|
import userDetailCss from "./user-detail.css.js";
|
|
11
11
|
import badgesCss from "../../css/badges.css.js";
|
|
12
12
|
import buttonCss from "../../css/button.css.js";
|
|
13
13
|
import formsCss from "../../css/forms.css.js";
|
|
14
|
+
import { showApiKeyFeatures } from "../../model/feature-flags.js";
|
|
14
15
|
let RodeoUserDetail = class RodeoUserDetail extends LitElement {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
@@ -403,8 +404,10 @@ let RodeoUserDetail = class RodeoUserDetail extends LitElement {
|
|
|
403
404
|
${this.renderAuthRecords()}
|
|
404
405
|
${this.renderWalletTransactions()}
|
|
405
406
|
${this.renderEvents()}
|
|
406
|
-
${
|
|
407
|
-
|
|
407
|
+
${showApiKeyFeatures ? html `
|
|
408
|
+
${this.renderAPIKeys()}
|
|
409
|
+
${this.renderAuditLog()}
|
|
410
|
+
` : nothing}
|
|
408
411
|
`;
|
|
409
412
|
}
|
|
410
413
|
};
|
|
@@ -148,6 +148,11 @@ export default css `
|
|
|
148
148
|
|
|
149
149
|
sl-tab-group::part(tabs) {
|
|
150
150
|
height: 30px;
|
|
151
|
+
overflow: visible;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
sl-tab-group::part(nav) {
|
|
155
|
+
overflow: visible;
|
|
151
156
|
}
|
|
152
157
|
|
|
153
158
|
sl-tab-group::part(body) {
|
|
@@ -168,42 +173,74 @@ export default css `
|
|
|
168
173
|
letter-spacing: 0.05em;
|
|
169
174
|
}
|
|
170
175
|
|
|
171
|
-
.tab
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.workspace-icon {
|
|
176
|
-
font-size: 1.25rem;
|
|
176
|
+
.api-docs-tab::part(base) {
|
|
177
|
+
overflow: visible;
|
|
177
178
|
}
|
|
178
179
|
|
|
179
|
-
.
|
|
180
|
-
|
|
180
|
+
.api-docs-tab-label {
|
|
181
|
+
display: inline-flex;
|
|
182
|
+
align-items: flex-start;
|
|
183
|
+
gap: 0.4rem;
|
|
184
|
+
line-height: 1;
|
|
181
185
|
}
|
|
182
186
|
|
|
183
|
-
.
|
|
184
|
-
|
|
187
|
+
.api-docs-tab-text {
|
|
188
|
+
align-self: center;
|
|
185
189
|
}
|
|
186
190
|
|
|
187
|
-
.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
191
|
+
.api-docs-new-badge {
|
|
192
|
+
display: inline-flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
justify-content: center;
|
|
195
|
+
padding: 2px var(--global-padding);
|
|
196
|
+
border: 1px solid var(--terminal-text);
|
|
197
|
+
background: var(--background-color);
|
|
198
|
+
color: var(--terminal-text);
|
|
199
|
+
font-size: 0.7rem;
|
|
200
|
+
line-height: 1;
|
|
201
|
+
letter-spacing: 0.05em;
|
|
202
|
+
pointer-events: none;
|
|
203
|
+
text-transform: uppercase;
|
|
200
204
|
}
|
|
201
205
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
.tab.hidden {
|
|
207
|
+
display: none;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.workspace-icon {
|
|
211
|
+
font-size: 1.25rem;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.workspace-icon::part(base) {
|
|
215
|
+
padding: 0;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.workspace-icon.active {
|
|
219
|
+
color: var(--primary-color);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.main-view {
|
|
223
|
+
position: relative;
|
|
224
|
+
width: 100%;
|
|
225
|
+
height: calc(100vh - 120px);
|
|
226
|
+
overflow: auto;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
sl-badge::part(base) {
|
|
230
|
+
width: 10px;
|
|
231
|
+
padding: 0;
|
|
232
|
+
margin-left: 5px;
|
|
233
|
+
margin-top: 2px;
|
|
234
|
+
height: 10px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
::slotted([slot="spec-editor"]),
|
|
238
|
+
::slotted([slot="ruleset-editor"]),
|
|
239
|
+
::slotted([slot="explorer"]),
|
|
240
|
+
::slotted([slot="docs"]),
|
|
241
|
+
::slotted([slot="workspaces"]) {
|
|
242
|
+
flex: 1;
|
|
243
|
+
width: 100%;
|
|
244
|
+
min-height: 0;
|
|
245
|
+
}
|
|
209
246
|
`;
|
|
@@ -32,6 +32,7 @@ export declare class DoctorEditorPanel extends LitElement {
|
|
|
32
32
|
private handleSettingsClick;
|
|
33
33
|
private renderDiagnoseButton;
|
|
34
34
|
private renderRulesetPulse;
|
|
35
|
+
private renderApiDocsTabLabel;
|
|
35
36
|
render(): import("lit-html").TemplateResult<1>;
|
|
36
37
|
}
|
|
37
38
|
declare global {
|
|
@@ -78,6 +78,14 @@ let DoctorEditorPanel = class DoctorEditorPanel extends LitElement {
|
|
|
78
78
|
}
|
|
79
79
|
return html `<sl-badge pulse></sl-badge>`;
|
|
80
80
|
}
|
|
81
|
+
renderApiDocsTabLabel() {
|
|
82
|
+
return html `
|
|
83
|
+
<span class="api-docs-tab-label">
|
|
84
|
+
<span class="api-docs-tab-text">API Docs</span>
|
|
85
|
+
<span class="api-docs-new-badge" part="api-docs-new-badge">new</span>
|
|
86
|
+
</span>
|
|
87
|
+
`;
|
|
88
|
+
}
|
|
81
89
|
render() {
|
|
82
90
|
const hideDiagnose = this.autoDiagnose || !this.showDiagnosisButton;
|
|
83
91
|
return html `
|
|
@@ -120,7 +128,7 @@ let DoctorEditorPanel = class DoctorEditorPanel extends LitElement {
|
|
|
120
128
|
<sl-tab slot="nav" panel="explorer" class="tab">Explorer</sl-tab>
|
|
121
129
|
<sl-tab slot="nav" panel="tardis" class="tab">History</sl-tab>
|
|
122
130
|
<sl-tab slot="nav" panel="ruleset" class="tab">Ruleset ${this.renderRulesetPulse()}</sl-tab>
|
|
123
|
-
<sl-tab slot="nav" panel="docs" class="tab"
|
|
131
|
+
<sl-tab slot="nav" panel="docs" class="tab api-docs-tab">${this.renderApiDocsTabLabel()}</sl-tab>
|
|
124
132
|
|
|
125
133
|
<sl-tab-panel name="spec" class="tab-panel">
|
|
126
134
|
<div class="main-view">
|
|
@@ -6,10 +6,12 @@ import '@shoelace-style/shoelace/dist/components/icon-button/icon-button.js';
|
|
|
6
6
|
import '@shoelace-style/shoelace/dist/components/tooltip/tooltip.js';
|
|
7
7
|
import '@shoelace-style/shoelace/dist/components/button/button.js';
|
|
8
8
|
import { SlTabGroup } from '@shoelace-style/shoelace';
|
|
9
|
+
import type { TabShowOptions } from '../../interfaces/doctor-interfaces.js';
|
|
9
10
|
export declare const SidebarTabChanged = "doctor-sidebar-tab-changed";
|
|
10
11
|
export declare const SidebarCollapseToggled = "doctor-sidebar-collapse-toggled";
|
|
11
12
|
export interface SidebarTabChangedEvent {
|
|
12
13
|
name: string;
|
|
14
|
+
focusPanel: boolean;
|
|
13
15
|
}
|
|
14
16
|
export declare class DoctorSidebarPanel extends LitElement {
|
|
15
17
|
static styles: import("lit").CSSResult[];
|
|
@@ -18,10 +20,11 @@ export declare class DoctorSidebarPanel extends LitElement {
|
|
|
18
20
|
toolsEditorHasContent: boolean;
|
|
19
21
|
collapsed: boolean;
|
|
20
22
|
tabGroup?: SlTabGroup;
|
|
23
|
+
private nextTabShowOptions;
|
|
21
24
|
private handleTabShow;
|
|
22
25
|
private handleCollapseToggle;
|
|
23
26
|
private handleToolsCompare;
|
|
24
|
-
showTab(panel: string): void;
|
|
27
|
+
showTab(panel: string, options?: TabShowOptions): void;
|
|
25
28
|
render(): import("lit-html").TemplateResult<1>;
|
|
26
29
|
}
|
|
27
30
|
declare global {
|
|
@@ -26,8 +26,10 @@ let DoctorSidebarPanel = class DoctorSidebarPanel extends LitElement {
|
|
|
26
26
|
this.collapsed = false;
|
|
27
27
|
}
|
|
28
28
|
handleTabShow(event) {
|
|
29
|
+
const focusPanel = this.nextTabShowOptions?.focusPanel ?? true;
|
|
30
|
+
this.nextTabShowOptions = undefined;
|
|
29
31
|
this.dispatchEvent(new CustomEvent(SidebarTabChanged, {
|
|
30
|
-
detail: { name: event.detail.name },
|
|
32
|
+
detail: { name: event.detail.name, focusPanel },
|
|
31
33
|
bubbles: true,
|
|
32
34
|
composed: true
|
|
33
35
|
}));
|
|
@@ -46,8 +48,21 @@ let DoctorSidebarPanel = class DoctorSidebarPanel extends LitElement {
|
|
|
46
48
|
composed: true
|
|
47
49
|
}));
|
|
48
50
|
}
|
|
49
|
-
showTab(panel) {
|
|
50
|
-
this.tabGroup
|
|
51
|
+
showTab(panel, options = {}) {
|
|
52
|
+
if (!this.tabGroup) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const activeTab = this.tabGroup.querySelector('sl-tab[active]');
|
|
56
|
+
if (activeTab?.getAttribute('panel') === panel) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
this.nextTabShowOptions = options;
|
|
60
|
+
this.tabGroup.show(panel);
|
|
61
|
+
window.setTimeout(() => {
|
|
62
|
+
if (this.nextTabShowOptions === options) {
|
|
63
|
+
this.nextTabShowOptions = undefined;
|
|
64
|
+
}
|
|
65
|
+
}, 0);
|
|
51
66
|
}
|
|
52
67
|
render() {
|
|
53
68
|
return html `
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export default css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
min-height: 0;
|
|
9
|
+
background: var(--background-color);
|
|
10
|
+
color: var(--primary-color);
|
|
11
|
+
font-family: var(--font-stack-mono), monospace;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.printing-press-docs-pending {
|
|
15
|
+
display: grid;
|
|
16
|
+
place-items: center;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
height: 100%;
|
|
19
|
+
width: 100%;
|
|
20
|
+
min-height: 0;
|
|
21
|
+
padding: 48px;
|
|
22
|
+
background: var(--background-color);
|
|
23
|
+
color: var(--primary-color);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.printing-press-docs-pending-content {
|
|
27
|
+
width: min(560px, 100%);
|
|
28
|
+
text-align: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
h1 {
|
|
32
|
+
margin: 0 0 40px;
|
|
33
|
+
color: var(--primary-color);
|
|
34
|
+
font-family: var(--font-stack-bold), monospace;
|
|
35
|
+
font-size: var(--h1-size);
|
|
36
|
+
font-weight: normal;
|
|
37
|
+
line-height: 1.15;
|
|
38
|
+
letter-spacing: 0;
|
|
39
|
+
word-spacing: var(--header-spacing);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
pb33f-indeterminate-loader {
|
|
43
|
+
display: block;
|
|
44
|
+
width: 100%;
|
|
45
|
+
margin: 0;
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../indeterminate-loader/indeterminate-loader.js";
|
|
3
|
+
export declare class PrintingPressDocsPending extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
heading: string;
|
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
+
}
|
|
8
|
+
declare global {
|
|
9
|
+
interface HTMLElementTagNameMap {
|
|
10
|
+
"pb33f-printing-press-docs-pending": PrintingPressDocsPending;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import "../indeterminate-loader/indeterminate-loader.js";
|
|
10
|
+
import printingPressDocsPendingCss from "./printing-press-docs-pending.css.js";
|
|
11
|
+
let PrintingPressDocsPending = class PrintingPressDocsPending extends LitElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.heading = "[ printing ]";
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return html `
|
|
18
|
+
<section class="printing-press-docs-pending" aria-live="polite" aria-busy="true">
|
|
19
|
+
<div class="printing-press-docs-pending-content">
|
|
20
|
+
<h1>${this.heading}</h1>
|
|
21
|
+
<pb33f-indeterminate-loader
|
|
22
|
+
constantFlow
|
|
23
|
+
active
|
|
24
|
+
height="40"
|
|
25
|
+
blockSize="14"
|
|
26
|
+
speed="1"
|
|
27
|
+
aria-label="Printing API docs">
|
|
28
|
+
</pb33f-indeterminate-loader>
|
|
29
|
+
</div>
|
|
30
|
+
</section>
|
|
31
|
+
`;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
PrintingPressDocsPending.styles = [printingPressDocsPendingCss];
|
|
35
|
+
__decorate([
|
|
36
|
+
property({ type: String })
|
|
37
|
+
], PrintingPressDocsPending.prototype, "heading", void 0);
|
|
38
|
+
PrintingPressDocsPending = __decorate([
|
|
39
|
+
customElement("pb33f-printing-press-docs-pending")
|
|
40
|
+
], PrintingPressDocsPending);
|
|
41
|
+
export { PrintingPressDocsPending };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export default css `
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
height: 100%;
|
|
6
|
+
min-height: 0;
|
|
7
|
+
background: var(--background-color);
|
|
8
|
+
color: var(--tertiary-color);
|
|
9
|
+
font-family: var(--font-stack-mono), monospace;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.docs-unavailable {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
width: min(800px, calc(100% - 48px));
|
|
15
|
+
margin: 100px auto 0;
|
|
16
|
+
text-align: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
h1 {
|
|
20
|
+
margin: 0;
|
|
21
|
+
color: var(--error-color);
|
|
22
|
+
font-size: 1.75rem;
|
|
23
|
+
line-height: 1.25;
|
|
24
|
+
letter-spacing: 0;
|
|
25
|
+
text-transform: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
p {
|
|
29
|
+
margin: 40px 0;
|
|
30
|
+
color: var(--tertiary-color);
|
|
31
|
+
font-size: 1rem;
|
|
32
|
+
line-height: 1.45;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class PrintingPressDocsUnavailable extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult[];
|
|
4
|
+
heading: string;
|
|
5
|
+
detail: string;
|
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
+
}
|
|
8
|
+
declare global {
|
|
9
|
+
interface HTMLElementTagNameMap {
|
|
10
|
+
"pb33f-printing-press-docs-unavailable": PrintingPressDocsUnavailable;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import printingPressDocsUnavailableCss from "./printing-press-docs-unavailable.css.js";
|
|
10
|
+
let PrintingPressDocsUnavailable = class PrintingPressDocsUnavailable extends LitElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.heading = "[ documentation unavailable ]";
|
|
14
|
+
this.detail = "Printing Press could not render the current docs.";
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return html `
|
|
18
|
+
<section class="docs-unavailable" role="alert" aria-live="polite">
|
|
19
|
+
<h1>${this.heading}</h1>
|
|
20
|
+
<p>${this.detail}</p>
|
|
21
|
+
</section>
|
|
22
|
+
`;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
PrintingPressDocsUnavailable.styles = [printingPressDocsUnavailableCss];
|
|
26
|
+
__decorate([
|
|
27
|
+
property({ type: String })
|
|
28
|
+
], PrintingPressDocsUnavailable.prototype, "heading", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
property({ type: String })
|
|
31
|
+
], PrintingPressDocsUnavailable.prototype, "detail", void 0);
|
|
32
|
+
PrintingPressDocsUnavailable = __decorate([
|
|
33
|
+
customElement("pb33f-printing-press-docs-unavailable")
|
|
34
|
+
], PrintingPressDocsUnavailable);
|
|
35
|
+
export { PrintingPressDocsUnavailable };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export default css `
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.printing-press-export-controls {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 4px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.action-button {
|
|
15
|
+
color: var(--primary-color);
|
|
16
|
+
font-size: 1rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.action-button::part(base) {
|
|
20
|
+
padding: 2px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.action-button::part(base):hover {
|
|
24
|
+
color: var(--font-color);
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import '@shoelace-style/shoelace/dist/components/icon-button/icon-button.js';
|
|
3
|
+
import '@shoelace-style/shoelace/dist/components/tooltip/tooltip.js';
|
|
4
|
+
import '../premium-gate/premium-gate.js';
|
|
5
|
+
export declare class PrintingPressExportControls extends LitElement {
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
private handleDocsZipExport;
|
|
9
|
+
private handleDocsTarballExport;
|
|
10
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElementTagNameMap {
|
|
14
|
+
"pb33f-printing-press-export-controls": PrintingPressExportControls;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import '@shoelace-style/shoelace/dist/components/icon-button/icon-button.js';
|
|
10
|
+
import '@shoelace-style/shoelace/dist/components/tooltip/tooltip.js';
|
|
11
|
+
import '../premium-gate/premium-gate.js';
|
|
12
|
+
import tooltipCss from "../../css/tooltip.css.js";
|
|
13
|
+
import { PrintingPressTarballExportRequested, PrintingPressZipExportRequested } from "../../events/doctor.js";
|
|
14
|
+
import printingPressExportControlsCss from "./printing-press-export-controls.css.js";
|
|
15
|
+
let PrintingPressExportControls = class PrintingPressExportControls extends LitElement {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.disabled = false;
|
|
19
|
+
}
|
|
20
|
+
handleDocsZipExport() {
|
|
21
|
+
if (this.disabled) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
this.dispatchEvent(new CustomEvent(PrintingPressZipExportRequested, {
|
|
25
|
+
bubbles: true,
|
|
26
|
+
composed: true
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
handleDocsTarballExport() {
|
|
30
|
+
if (this.disabled) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
this.dispatchEvent(new CustomEvent(PrintingPressTarballExportRequested, {
|
|
34
|
+
bubbles: true,
|
|
35
|
+
composed: true
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
return html `
|
|
40
|
+
<pb33f-premium-gate
|
|
41
|
+
require-credits="10"
|
|
42
|
+
feature-name="Export API Docs"
|
|
43
|
+
feature-explanation="Exporting generated API docs creates a portable archive of your private documentation.">
|
|
44
|
+
<div class="printing-press-export-controls">
|
|
45
|
+
<sl-tooltip content="Download docs zip">
|
|
46
|
+
<sl-icon-button
|
|
47
|
+
name="download"
|
|
48
|
+
class="action-button"
|
|
49
|
+
?disabled=${this.disabled}
|
|
50
|
+
@click=${this.handleDocsZipExport}
|
|
51
|
+
aria-label="Download generated documentation as a zip archive">
|
|
52
|
+
</sl-icon-button>
|
|
53
|
+
</sl-tooltip>
|
|
54
|
+
<sl-tooltip content="Download docs tarball">
|
|
55
|
+
<sl-icon-button
|
|
56
|
+
name="archive"
|
|
57
|
+
class="action-button"
|
|
58
|
+
?disabled=${this.disabled}
|
|
59
|
+
@click=${this.handleDocsTarballExport}
|
|
60
|
+
aria-label="Download generated documentation as a tarball">
|
|
61
|
+
</sl-icon-button>
|
|
62
|
+
</sl-tooltip>
|
|
63
|
+
</div>
|
|
64
|
+
</pb33f-premium-gate>
|
|
65
|
+
`;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
PrintingPressExportControls.styles = [tooltipCss, printingPressExportControlsCss];
|
|
69
|
+
__decorate([
|
|
70
|
+
property({ type: Boolean })
|
|
71
|
+
], PrintingPressExportControls.prototype, "disabled", void 0);
|
|
72
|
+
PrintingPressExportControls = __decorate([
|
|
73
|
+
customElement("pb33f-printing-press-export-controls")
|
|
74
|
+
], PrintingPressExportControls);
|
|
75
|
+
export { PrintingPressExportControls };
|