@orangelogic/design-system 2.162.0 → 2.164.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/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
- package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
- package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
- package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
- package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
- package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
- package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
- package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
- package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
- package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
- package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
- package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
- package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
- package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
- package/library/chunks/Slice.BVI8rfHI.js +34 -0
- package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
- package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
- package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
- package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
- package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
- package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
- package/library/chunks/_baseEach.DQk0As2f.js +32 -0
- package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
- package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
- package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
- package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
- package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
- package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
- package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
- package/library/chunks/arc.xqNd6x9S.js +84 -0
- package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
- package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.0q_MQOYh.js} +691 -635
- package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
- package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
- package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
- package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
- package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
- package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
- package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
- package/library/chunks/channel.s_XjcUYI.js +5 -0
- package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
- package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
- package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
- package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
- package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
- package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
- package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
- package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
- package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
- package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
- package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
- package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
- package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
- package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.ChP9amU9.js} +2576 -2723
- package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
- package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
- package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
- package/library/chunks/constant.BQ4UJ-kW.js +12 -0
- package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
- package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
- package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
- package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
- package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
- package/library/chunks/debounce.Bv1rtE8D.js +55 -0
- package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
- package/library/chunks/descending.AD5n-tFs.js +10 -0
- package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
- package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
- package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
- package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
- package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
- package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
- package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.Cng07M-1.js} +7 -7
- package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
- package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
- package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
- package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
- package/library/chunks/flow.aZRVH3p1.js +1304 -0
- package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
- package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dw1ZKZAq.js} +160 -140
- package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
- package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
- package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
- package/library/chunks/graph.XHMI5hta.js +653 -0
- package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
- package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
- package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
- package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
- package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
- package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
- package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
- package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
- package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
- package/library/chunks/index.BDn1QW8J.js +167 -0
- package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
- package/library/chunks/index.thKLME8E.js +77 -0
- package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
- package/library/chunks/init.DjUOC4st.js +16 -0
- package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
- package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
- package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
- package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
- package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
- package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
- package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
- package/library/chunks/katex.DoRnZ_sp.js +11682 -0
- package/library/chunks/layout.DZcMFKol.js +1446 -0
- package/library/chunks/line.DP-iSN_J.js +157 -0
- package/library/chunks/linear.TNHhsH1m.js +215 -0
- package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
- package/library/chunks/map.DJnohTgl.js +18 -0
- package/library/chunks/markdown.I1AJG75v.js +4180 -0
- package/library/chunks/math.D2lKC7md.js +22 -0
- package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
- package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
- package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
- package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
- package/library/chunks/ordinal.bqVaUip-.js +61 -0
- package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
- package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
- package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
- package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
- package/library/chunks/position-picker.DjnhxIKF.js +4 -0
- package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
- package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
- package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
- package/library/chunks/range.DdOGybNB.js +9 -0
- package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
- package/library/chunks/sankey.BR94A-8L.js +294 -0
- package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
- package/library/chunks/select.C6_sM3Pr.js +7 -0
- package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
- package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
- package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
- package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
- package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
- package/library/chunks/step.almIqwJ6.js +51 -0
- package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
- package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
- package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
- package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
- package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
- package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
- package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
- package/library/chunks/toNumber.MuDz8DgU.js +31 -0
- package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
- package/library/chunks/{toast.TDU3wVhq.js → toast.CXEAfCvN.js} +1 -1
- package/library/chunks/transformation.8uLv6uwG.js +264 -0
- package/library/chunks/{tree.C2dPd6gt.js → tree.vn5sHbdt.js} +123 -117
- package/library/chunks/value.BXEGBVFV.js +44 -0
- package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
- package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
- package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
- package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
- package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
- package/library/chunks/xy.BO6U5QrZ.js +294 -0
- package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
- package/library/components/alert.js +2 -2
- package/library/components/am-chart.js +3 -3
- package/library/components/animated-image.js +2 -2
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +8 -7
- package/library/components/atoms.js +29 -29
- package/library/components/audio.js +3 -3
- package/library/components/avatar.js +2 -2
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb-item.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +3 -3
- package/library/components/checkbox.js +195 -18
- package/library/components/color-picker.js +4 -4
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +3 -3
- package/library/components/copy-button.js +2 -2
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/cropper.js +4 -4
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +2 -2
- package/library/components/dialog.js +3 -3
- package/library/components/diff.js +1 -1
- package/library/components/divider.js +1 -1
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +3 -3
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +6 -6
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +350 -374
- package/library/components/folder-select.js +5 -5
- package/library/components/format-time.js +2 -2
- package/library/components/grid-item.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/icon.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +2 -2
- package/library/components/image.js +3 -3
- package/library/components/include.js +1 -1
- package/library/components/input.js +3 -3
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +11 -2704
- package/library/components/masonry.js +76 -73
- package/library/components/menu-item.js +2 -2
- package/library/components/molecules.js +3 -3
- package/library/components/mutation-observer.js +1 -1
- package/library/components/option.js +3 -3
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- package/library/components/position-picker.js +25 -25
- package/library/components/qr-code.js +1 -1
- package/library/components/radio-button.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/radio.js +2 -2
- package/library/components/range.js +1 -1
- package/library/components/rating.js +2 -2
- package/library/components/resize-observer.js +1 -1
- package/library/components/select.js +3 -3
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.js +3 -3
- package/library/components/size-input-group.js +3 -3
- package/library/components/split-panel.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 +4 -4
- package/library/components/tab-panel.js +1 -1
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +1 -1
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +4 -4
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +122327 -120686
- package/library/components/video.js +2 -2
- package/library/package.json +2 -1
- package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
- package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
- package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
- package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
- package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
- package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
- package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
- package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
- package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
- package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
- package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
- package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
- package/library/packages/types/src/asset-link-format.d.ts +19 -0
- package/library/packages/types/src/markdown-viewer.d.ts +12 -0
- package/library/packages/types/src/tree-item.d.ts +12 -0
- package/library/react-web-component.d.ts +86 -8
- package/library/utils.js +64 -65
- package/package.json +2 -1
- package/library/chunks/Slice.C5lVu2g_.js +0 -120
- package/library/chunks/_baseXor.VohG8cOH.js +0 -116
- package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
- package/library/chunks/checkbox.3i2j3PHc.js +0 -198
- package/library/chunks/content-builder.BU8X7I6V.js +0 -60
- package/library/chunks/debounce.C_J-9zJi.js +0 -82
- package/library/chunks/flow.hz0UDjCb.js +0 -1594
- package/library/chunks/index.DU0XUO4k.js +0 -176
- package/library/chunks/transformation.D1alV_s4.js +0 -189
- package/library/chunks/xy.BNgyrwGD.js +0 -333
|
@@ -1,94 +1,70 @@
|
|
|
1
|
-
import { C as tt } from "../chunks/icon.
|
|
1
|
+
import { C as tt } from "../chunks/icon.D5iM9wXS.js";
|
|
2
2
|
import et from "./line-clamp.js";
|
|
3
|
-
import { C as mt, s as _t, a as ft, b as dt } from "../chunks/tree.
|
|
4
|
-
import { n as
|
|
3
|
+
import { C as mt, s as _t, a as ft, b as dt } from "../chunks/tree.vn5sHbdt.js";
|
|
4
|
+
import { n as l, C as W } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
5
5
|
import { c as st } from "../chunks/component.styles.CRO4Odto.js";
|
|
6
6
|
import { c as q } from "../chunks/custom-element.L4WJXn1j.js";
|
|
7
7
|
import { L as G } from "../chunks/i18n.Bchq8v1d.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a as St, w as z, p as Ct } from "../chunks/watch.DJF5K-8U.js";
|
|
9
9
|
import { p as R } from "../chunks/string.BhJ0Zogu.js";
|
|
10
|
-
import { x as o, i as ot, E as
|
|
10
|
+
import { x as o, i as ot, E as wt } from "../chunks/lit-element.jLBm65_O.js";
|
|
11
11
|
import { r as h } from "../chunks/state.CSDxrqLd.js";
|
|
12
12
|
import { e as P } from "../chunks/query.BBf1UFkC.js";
|
|
13
|
-
import { e as
|
|
14
|
-
import { c as
|
|
13
|
+
import { e as S } from "../chunks/class-map.BiVq-cVR.js";
|
|
14
|
+
import { c as F } from "../chunks/repeat.CFjcER6_.js";
|
|
15
15
|
import { n as p } from "../chunks/when.Dr1es41R.js";
|
|
16
|
-
import { b as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { C as
|
|
20
|
-
import
|
|
16
|
+
import { b as At } from "../chunks/_baseEach.DQk0As2f.js";
|
|
17
|
+
import { b as Dt } from "../chunks/_baseIteratee.sC2wLi2m.js";
|
|
18
|
+
import Tt from "./avatar.js";
|
|
19
|
+
import { C as zt } from "../chunks/button.DGyqdBou.js";
|
|
20
|
+
import { C as Pt } from "../chunks/dialog.05FgdLBZ.js";
|
|
21
|
+
import Et from "./divider.js";
|
|
21
22
|
import nt from "./format-bytes.js";
|
|
22
|
-
import { C as vt } from "../chunks/icon-button.
|
|
23
|
-
import { C as
|
|
24
|
-
import { C as Ut } from "../chunks/option.
|
|
23
|
+
import { C as vt } from "../chunks/icon-button.BwmMJ0bI.js";
|
|
24
|
+
import { C as Lt } from "../chunks/input.DOorVTYZ.js";
|
|
25
|
+
import { C as Ut } from "../chunks/option.DyNR1vzy.js";
|
|
25
26
|
import yt from "./relative-time.js";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import { C as
|
|
30
|
-
import
|
|
27
|
+
import Ft from "./select.js";
|
|
28
|
+
import Rt from "./space.js";
|
|
29
|
+
import kt from "./tab.js";
|
|
30
|
+
import { C as Ot } from "../chunks/tab-group.1Y71_aN8.js";
|
|
31
|
+
import Nt from "./tab-panel.js";
|
|
31
32
|
import bt from "./tooltip.js";
|
|
32
33
|
import { C as rt } from "../chunks/typography.IqHbnd3C.js";
|
|
33
|
-
import { C as jt } from "../chunks/confirm-popover.
|
|
34
|
-
import { d as
|
|
35
|
-
import {
|
|
34
|
+
import { C as jt } from "../chunks/confirm-popover.D8mdy6KG.js";
|
|
35
|
+
import { d as Bt } from "../chunks/debounce.DaHuiSGU.js";
|
|
36
|
+
import { c as Z } from "../chunks/number.Cx2ncfJJ.js";
|
|
36
37
|
import { i as X, b as pt } from "../chunks/url.Bd5rq4G0.js";
|
|
37
|
-
import {
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
import { a as Mt, i as Vt } from "../chunks/isArrayLikeObject.D7afXo-f.js";
|
|
39
|
+
import { b as Ht } from "../chunks/_baseXor.DixEm6JQ.js";
|
|
40
|
+
import Wt from "./progress-bar.js";
|
|
41
|
+
import qt from "./spinner.js";
|
|
42
|
+
import { o as Gt } from "../chunks/style-map.llVFPd__.js";
|
|
43
|
+
import { r as Yt } from "../chunks/choose.BTbF6BAn.js";
|
|
44
|
+
function Kt(t, e, a, i) {
|
|
45
|
+
for (var s = -1, r = t == null ? 0 : t.length; ++s < r; ) {
|
|
46
|
+
var d = t[s];
|
|
47
|
+
e(i, d, a(d), t);
|
|
46
48
|
}
|
|
47
49
|
return i;
|
|
48
50
|
}
|
|
49
|
-
function
|
|
50
|
-
return function(
|
|
51
|
-
|
|
52
|
-
var b = l[++s];
|
|
53
|
-
if (a(n[b], b, n) === !1)
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
return e;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
var Jt = Xt();
|
|
60
|
-
function Qt(t, e) {
|
|
61
|
-
return t && Jt(t, e, St);
|
|
62
|
-
}
|
|
63
|
-
function te(t, e) {
|
|
64
|
-
return function(a, i) {
|
|
65
|
-
if (a == null)
|
|
66
|
-
return a;
|
|
67
|
-
if (!Ct(a))
|
|
68
|
-
return t(a, i);
|
|
69
|
-
for (var s = a.length, n = -1, l = Object(a); ++n < s && i(l[n], n, l) !== !1; )
|
|
70
|
-
;
|
|
71
|
-
return a;
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
var ee = te(Qt);
|
|
75
|
-
function se(t, e, a, i) {
|
|
76
|
-
return ee(t, function(s, n, l) {
|
|
77
|
-
e(i, s, a(s), l);
|
|
51
|
+
function Zt(t, e, a, i) {
|
|
52
|
+
return At(t, function(s, r, d) {
|
|
53
|
+
e(i, s, a(s), d);
|
|
78
54
|
}), i;
|
|
79
55
|
}
|
|
80
|
-
function
|
|
56
|
+
function Xt(t, e) {
|
|
81
57
|
return function(a, i) {
|
|
82
|
-
var s =
|
|
83
|
-
return s(a, t,
|
|
58
|
+
var s = St(a) ? Kt : Zt, r = e ? e() : {};
|
|
59
|
+
return s(a, t, Dt(i), r);
|
|
84
60
|
};
|
|
85
61
|
}
|
|
86
|
-
var
|
|
62
|
+
var Jt = Xt(function(t, e, a) {
|
|
87
63
|
t[a ? 0 : 1].push(e);
|
|
88
64
|
}, function() {
|
|
89
65
|
return [[], []];
|
|
90
66
|
});
|
|
91
|
-
const
|
|
67
|
+
const Qt = {
|
|
92
68
|
error: "Upload error",
|
|
93
69
|
loaded: "Up-to-date",
|
|
94
70
|
loading: "Syncing"
|
|
@@ -97,7 +73,7 @@ const oe = {
|
|
|
97
73
|
PINNED: "pinned",
|
|
98
74
|
RECENT: "recent",
|
|
99
75
|
UPLOADS: "uploads"
|
|
100
|
-
}, J = 20,
|
|
76
|
+
}, J = 20, te = {
|
|
101
77
|
GET_CONTENT: "/webapi/extensibility/integrations/contentBrowserSDK/getcontent_4bw_v1"
|
|
102
78
|
}, w = {
|
|
103
79
|
ASSET_PATH: "Document.AssetPath",
|
|
@@ -107,7 +83,7 @@ const oe = {
|
|
|
107
83
|
HAS_BROWSER_CHILDREN: "Document.HasBrowserChildren",
|
|
108
84
|
PARENT_FOLDER_IDENTIFIER: "Document.ParentRecordID",
|
|
109
85
|
TITLE_WITH_FALLBACK: "CoreField.TitleWithFallback"
|
|
110
|
-
}, M = "GB", Q = 1e3, N = 6e4,
|
|
86
|
+
}, M = "GB", Q = 1e3, N = 6e4, ee = ["album", "story", "project", "merchandise"], ht = (t) => {
|
|
111
87
|
const e = /* @__PURE__ */ new Date(), a = new Date(
|
|
112
88
|
e.getFullYear(),
|
|
113
89
|
e.getMonth(),
|
|
@@ -117,43 +93,43 @@ const oe = {
|
|
|
117
93
|
e.getMonth(),
|
|
118
94
|
e.getDate() + 1
|
|
119
95
|
).getTime();
|
|
120
|
-
return
|
|
121
|
-
t.toSorted((s,
|
|
96
|
+
return Jt(
|
|
97
|
+
t.toSorted((s, r) => r.uploadTimestamp - s.uploadTimestamp),
|
|
122
98
|
(s) => s.uploadTimestamp >= a && s.uploadTimestamp < i
|
|
123
99
|
);
|
|
124
|
-
},
|
|
100
|
+
}, se = ({
|
|
125
101
|
excludesRecordIDs: t,
|
|
126
102
|
searchText: e
|
|
127
103
|
}) => {
|
|
128
104
|
let a = "";
|
|
129
105
|
e?.trim() && (a = `Story_Title:${e}`);
|
|
130
106
|
let i = "";
|
|
131
|
-
t?.length && (i = t.map((
|
|
107
|
+
t?.length && (i = t.map((r) => `RecordID:NOT ${r}`).join(" AND "));
|
|
132
108
|
let s = a ? ` AND (${[a].filter(Boolean).join(" OR ")})` : "";
|
|
133
109
|
return i && (s = `${s} AND (${i})`), `(MediaType:Story OR MediaType:Album)${s}`;
|
|
134
|
-
},
|
|
110
|
+
}, ie = 10, $t = async ({
|
|
135
111
|
excludes: t = [],
|
|
136
112
|
folderId: e,
|
|
137
113
|
folderPath: a = [],
|
|
138
114
|
folderPathsSet: i,
|
|
139
|
-
limit: s =
|
|
140
|
-
searchText:
|
|
141
|
-
seeThru:
|
|
115
|
+
limit: s = ie,
|
|
116
|
+
searchText: r,
|
|
117
|
+
seeThru: d,
|
|
142
118
|
siteUrl: x,
|
|
143
|
-
start:
|
|
119
|
+
start: C = 0,
|
|
144
120
|
token: g
|
|
145
121
|
}) => {
|
|
146
122
|
if (!x)
|
|
147
123
|
return { data: [], totalCount: 0 };
|
|
148
124
|
let m = x;
|
|
149
125
|
m.endsWith("/") && (m = m.slice(0, -1));
|
|
150
|
-
const D =
|
|
126
|
+
const D = te.GET_CONTENT, y = [
|
|
151
127
|
["Token", g],
|
|
152
128
|
[
|
|
153
129
|
"extraFilters",
|
|
154
|
-
|
|
130
|
+
se({
|
|
155
131
|
excludesRecordIDs: t,
|
|
156
|
-
searchText:
|
|
132
|
+
searchText: r
|
|
157
133
|
})
|
|
158
134
|
],
|
|
159
135
|
["fields", w.ASSET_PATH],
|
|
@@ -164,63 +140,63 @@ const oe = {
|
|
|
164
140
|
["fields", w.PARENT_FOLDER_IDENTIFIER],
|
|
165
141
|
["fields", w.CHILD_COUNT],
|
|
166
142
|
["objectRecordID", e],
|
|
167
|
-
["seeThru",
|
|
143
|
+
["seeThru", r?.trim() || d ? "true" : "false"],
|
|
168
144
|
["limit", s.toString()],
|
|
169
|
-
["start",
|
|
170
|
-
],
|
|
171
|
-
y.forEach(([
|
|
172
|
-
|
|
145
|
+
["start", C.toString()]
|
|
146
|
+
], U = new URL(`${m}${D}`);
|
|
147
|
+
y.forEach(([I, E]) => {
|
|
148
|
+
U.searchParams.append(I, E);
|
|
173
149
|
});
|
|
174
|
-
const O = await fetch(
|
|
150
|
+
const O = await fetch(U.toString(), {
|
|
175
151
|
headers: {
|
|
176
152
|
Authorization: `Bearer ${g}`
|
|
177
153
|
},
|
|
178
154
|
method: "GET"
|
|
179
155
|
});
|
|
180
156
|
if (!O.ok) {
|
|
181
|
-
const
|
|
182
|
-
throw
|
|
157
|
+
const I = new Error();
|
|
158
|
+
throw I.message = "Failed to fetch", I;
|
|
183
159
|
}
|
|
184
160
|
const Y = await O.json();
|
|
185
161
|
let K = /* @__PURE__ */ new Set();
|
|
186
|
-
i && (K =
|
|
187
|
-
const ct = Y.contentItems?.map((
|
|
162
|
+
i && (K = ne(i));
|
|
163
|
+
const ct = Y.contentItems?.map((I) => {
|
|
188
164
|
let E = V(
|
|
189
|
-
|
|
165
|
+
I.fields,
|
|
190
166
|
w.TITLE_WITH_FALLBACK
|
|
191
|
-
) ?? "",
|
|
167
|
+
) ?? "", B = oe(
|
|
192
168
|
(V(
|
|
193
|
-
|
|
169
|
+
I.fields,
|
|
194
170
|
w.ASSET_PATH
|
|
195
171
|
) ?? "").replace(/^Root\//i, "")
|
|
196
172
|
) || E;
|
|
197
173
|
if (i) {
|
|
198
|
-
if (i.has(
|
|
199
|
-
const lt =
|
|
200
|
-
|
|
174
|
+
if (i.has(B)) {
|
|
175
|
+
const lt = B.split("/"), It = lt.pop();
|
|
176
|
+
B = `${lt.join("/")}/${I.recordID}-${It}`, E = `${I.recordID}-${E}`;
|
|
201
177
|
}
|
|
202
|
-
|
|
178
|
+
r?.trim() && K.has(E) && (E = B), i.add(B), K.add(E);
|
|
203
179
|
}
|
|
204
180
|
return {
|
|
205
181
|
childCount: Number(
|
|
206
182
|
V(
|
|
207
|
-
|
|
183
|
+
I.fields,
|
|
208
184
|
w.CHILD_COUNT
|
|
209
185
|
) ?? 0
|
|
210
186
|
),
|
|
211
187
|
children: [],
|
|
212
188
|
docType: V(
|
|
213
|
-
|
|
189
|
+
I.fields,
|
|
214
190
|
w.DOC_TYPE
|
|
215
191
|
) ?? "",
|
|
216
|
-
fullPath:
|
|
192
|
+
fullPath: B,
|
|
217
193
|
hasChildren: V(
|
|
218
|
-
|
|
194
|
+
I.fields,
|
|
219
195
|
w.HAS_BROWSER_CHILDREN
|
|
220
196
|
) === "1",
|
|
221
|
-
id:
|
|
197
|
+
id: I.recordID,
|
|
222
198
|
parentFolderIdentifier: V(
|
|
223
|
-
|
|
199
|
+
I.fields,
|
|
224
200
|
w.PARENT_FOLDER_IDENTIFIER
|
|
225
201
|
) ?? "",
|
|
226
202
|
parents: [],
|
|
@@ -236,10 +212,10 @@ function V(t, e) {
|
|
|
236
212
|
);
|
|
237
213
|
return i ? t[i] : void 0;
|
|
238
214
|
}
|
|
239
|
-
const at = "-",
|
|
215
|
+
const at = "-", b = (t) => {
|
|
240
216
|
const e = t.split(at), a = e.pop() ?? "", i = e.join(at);
|
|
241
217
|
return { id: a, path: i };
|
|
242
|
-
},
|
|
218
|
+
}, j = ({ id: t, path: e }) => [e, t].join(at), ae = (t) => {
|
|
243
219
|
const e = t.split(".");
|
|
244
220
|
return e.length > 1 ? e.pop() ?? "" : "";
|
|
245
221
|
}, ut = (t) => {
|
|
@@ -249,24 +225,24 @@ const at = "-", $ = (t) => {
|
|
|
249
225
|
let a = e?.trim();
|
|
250
226
|
const i = e ? e.split("/").length : 0;
|
|
251
227
|
return (t ? t.length : 0) >= i && (a = t.join("/") ?? ""), a;
|
|
252
|
-
},
|
|
228
|
+
}, oe = (t) => t.split("/").map((e) => e.trim()).join("/"), ne = (t) => {
|
|
253
229
|
const e = /* @__PURE__ */ new Set();
|
|
254
230
|
for (const a of t) {
|
|
255
231
|
const i = a.split("/"), s = i[i.length - 1];
|
|
256
232
|
s && e.add(s);
|
|
257
233
|
}
|
|
258
234
|
return e;
|
|
259
|
-
},
|
|
235
|
+
}, re = (t, e) => {
|
|
260
236
|
const a = t.split("/"), i = e.split("/");
|
|
261
237
|
return a.slice(0, i.length + 1).join("/");
|
|
262
238
|
};
|
|
263
239
|
function xt(t) {
|
|
264
240
|
return t.toSorted((e, a) => a.uploadTimestamp - e.uploadTimestamp);
|
|
265
241
|
}
|
|
266
|
-
var
|
|
267
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
268
|
-
(
|
|
269
|
-
return i && s &&
|
|
242
|
+
var ce = Object.defineProperty, le = Object.getOwnPropertyDescriptor, A = (t, e, a, i) => {
|
|
243
|
+
for (var s = i > 1 ? void 0 : i ? le(e, a) : e, r = t.length - 1, d; r >= 0; r--)
|
|
244
|
+
(d = t[r]) && (s = (i ? d(e, a, s) : d(s)) || s);
|
|
245
|
+
return i && s && ce(e, a, s), s;
|
|
270
246
|
};
|
|
271
247
|
let f = class extends W {
|
|
272
248
|
constructor() {
|
|
@@ -299,8 +275,8 @@ let f = class extends W {
|
|
|
299
275
|
});
|
|
300
276
|
if (this.data = e, this.totalCount = a, await this.updateComplete, this.closest("cx-tree")?.initTreeItems(), !this.treeItem.selected && !this.treeItem.indeterminate) {
|
|
301
277
|
let i = !0, s = !0;
|
|
302
|
-
for (const
|
|
303
|
-
|
|
278
|
+
for (const r of this.treeItem.getChildrenItems())
|
|
279
|
+
r.selected ? (_t(r, !0, "multiple"), s = !1) : i = !1;
|
|
304
280
|
this.treeItem.indeterminate = !i && !s;
|
|
305
281
|
}
|
|
306
282
|
};
|
|
@@ -334,55 +310,55 @@ let f = class extends W {
|
|
|
334
310
|
if (await this.updateComplete, !this.treeItem)
|
|
335
311
|
return;
|
|
336
312
|
let t = !1;
|
|
337
|
-
const e = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), i = gt(this.folder?.path ?? [], this.folder?.fullPath ?? ""), s = [...this.currentRootIDsSet],
|
|
313
|
+
const e = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), i = gt(this.folder?.path ?? [], this.folder?.fullPath ?? ""), s = [...this.currentRootIDsSet], r = (g, m) => {
|
|
338
314
|
g.forEach((D) => {
|
|
339
|
-
const y =
|
|
315
|
+
const y = b(D);
|
|
340
316
|
if (!y.path.trim() || !y.id.trim())
|
|
341
317
|
return !1;
|
|
342
|
-
const
|
|
343
|
-
i &&
|
|
318
|
+
const U = R(y.path), O = R(i);
|
|
319
|
+
i && U.startsWith(O) && U !== O && m.add(re(y.path, i));
|
|
344
320
|
});
|
|
345
321
|
};
|
|
346
|
-
|
|
347
|
-
let
|
|
348
|
-
const m =
|
|
322
|
+
r(this.removedIDs, a), r(s, e);
|
|
323
|
+
let d = !!s.some((g) => {
|
|
324
|
+
const m = b(g);
|
|
349
325
|
if (!m.path.trim() || !m.id.trim())
|
|
350
326
|
return !1;
|
|
351
|
-
const D =
|
|
327
|
+
const D = j({
|
|
352
328
|
id: this.folder?.id ?? "",
|
|
353
329
|
path: i
|
|
354
|
-
}), y = R(m.path),
|
|
330
|
+
}), y = R(m.path), U = R(i), O = m.id === this.folder?.id, Y = !this.removedIDs.includes(D) && U.startsWith(y);
|
|
355
331
|
return O || Y;
|
|
356
332
|
});
|
|
357
333
|
const x = this.folder?.childCount && e.size === this.folder?.childCount;
|
|
358
334
|
if (this.folder?.childCount && a.size === this.folder?.childCount) {
|
|
359
335
|
this.currentRootIDsSet.delete(
|
|
360
|
-
|
|
336
|
+
j({
|
|
361
337
|
id: this.folder?.id ?? "",
|
|
362
338
|
path: i
|
|
363
339
|
})
|
|
364
340
|
);
|
|
365
341
|
const g = this.parentElement?.parentElement;
|
|
366
|
-
g && g instanceof f && g.syncBoxes(),
|
|
367
|
-
} else if (!
|
|
342
|
+
g && g instanceof f && g.syncBoxes(), d = !1;
|
|
343
|
+
} else if (!d)
|
|
368
344
|
if (x) {
|
|
369
345
|
this.currentRootIDsSet.add(
|
|
370
|
-
|
|
346
|
+
j({
|
|
371
347
|
id: this.folder?.id ?? "",
|
|
372
348
|
path: i
|
|
373
349
|
})
|
|
374
350
|
);
|
|
375
351
|
const g = this.parentElement?.parentElement;
|
|
376
|
-
g && g instanceof f && g.syncBoxes(),
|
|
352
|
+
g && g instanceof f && g.syncBoxes(), d = !0;
|
|
377
353
|
} else e.size > 0 && (t = !0);
|
|
378
|
-
|
|
354
|
+
d ? (t = a.size > 0, this.treeItem.selected = !0) : (t = e.size > 0, this.treeItem.selected = !1, await this.treeItem.updateComplete), t ? (this.treeItem.selected = !1, await this.treeItem.updateComplete, this.treeItem.indeterminate = !0) : this.treeItem.indeterminate = !1;
|
|
379
355
|
}
|
|
380
356
|
render() {
|
|
381
357
|
const t = gt(this.folder?.path ?? [], this.folder?.fullPath ?? "");
|
|
382
|
-
return o`<cx-tree-item aria-label=${this.folder?.title ?? ""} class=${
|
|
358
|
+
return o`<cx-tree-item aria-label=${this.folder?.title ?? ""} class=${S({
|
|
383
359
|
"folder-tree__item": !0,
|
|
384
360
|
selectable: !0
|
|
385
|
-
})} data-id=${this.folder?.id} data-path=${t} ?lazy=${this.folder?.hasChildren && this.data === null} @cx-lazy-load=${this.onLazyLoad}><div class="folder-tree__label"><cx-icon class="folder-tree__icon" name="folder"></cx-icon><cx-line-clamp lines="1" class="folder-tree__label__value">${this.folder?.title}</cx-line-clamp></div>${
|
|
361
|
+
})} data-id=${this.folder?.id} data-path=${t} ?lazy=${this.folder?.hasChildren && this.data === null} @cx-lazy-load=${this.onLazyLoad}><div class="folder-tree__label"><cx-icon class="folder-tree__icon" name="folder"></cx-icon><cx-line-clamp lines="1" class="folder-tree__label__value">${this.folder?.title}</cx-line-clamp></div>${F(
|
|
386
362
|
this.data ?? [],
|
|
387
363
|
(e) => e.id,
|
|
388
364
|
(e) => o`<cx-folder-item slot="children" .folder=${e} .siteUrl=${this.siteUrl} .token=${this.token} .removedIDs=${this.removedIDs} .currentRootIDsSet=${this.currentRootIDsSet} .folderPathsSet=${this.folderPathsSet}></cx-folder-item>`
|
|
@@ -403,32 +379,32 @@ A([
|
|
|
403
379
|
P("cx-tree-item")
|
|
404
380
|
], f.prototype, "treeItem", 2);
|
|
405
381
|
A([
|
|
406
|
-
|
|
382
|
+
l({
|
|
407
383
|
attribute: "site-url",
|
|
408
384
|
reflect: !0,
|
|
409
385
|
type: String
|
|
410
386
|
})
|
|
411
387
|
], f.prototype, "siteUrl", 2);
|
|
412
388
|
A([
|
|
413
|
-
|
|
389
|
+
l({ reflect: !0, type: String })
|
|
414
390
|
], f.prototype, "token", 2);
|
|
415
391
|
A([
|
|
416
|
-
|
|
392
|
+
l({ attribute: "search-text", reflect: !0, type: String })
|
|
417
393
|
], f.prototype, "searchText", 2);
|
|
418
394
|
A([
|
|
419
|
-
|
|
395
|
+
l({ type: Object })
|
|
420
396
|
], f.prototype, "folder", 2);
|
|
421
397
|
A([
|
|
422
|
-
|
|
398
|
+
l({
|
|
423
399
|
attribute: "current-root-ids-set",
|
|
424
400
|
type: Object
|
|
425
401
|
})
|
|
426
402
|
], f.prototype, "currentRootIDsSet", 2);
|
|
427
403
|
A([
|
|
428
|
-
|
|
404
|
+
l({ attribute: "folder-paths-set", type: Object })
|
|
429
405
|
], f.prototype, "folderPathsSet", 2);
|
|
430
406
|
A([
|
|
431
|
-
|
|
407
|
+
l({
|
|
432
408
|
attribute: "removed-ids",
|
|
433
409
|
converter: {
|
|
434
410
|
fromAttribute: (t) => t.split(" "),
|
|
@@ -452,11 +428,11 @@ A([
|
|
|
452
428
|
f = A([
|
|
453
429
|
q("cx-folder-item")
|
|
454
430
|
], f);
|
|
455
|
-
const
|
|
456
|
-
var
|
|
457
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
458
|
-
(
|
|
459
|
-
return i && s &&
|
|
431
|
+
const de = ot`.folder-tree{flex:1;overflow:auto}.folder-tree:not(.selectable){max-height:200px}.folder-tree__item::part(label){width:100%;overflow:hidden}.folder-tree__icon{font-size:var(--cx-font-size-large);color:var(--cx-color-neutral-600)}.folder-tree__label{gap:var(--cx-spacing-x-small);width:100%;line-height:var(--cx-line-height-medium);display:flex;overflow:hidden}.folder-tree__label__value{--tooltip-max-width:min(80vw, 640px);flex-grow:1;flex-shrink:1;overflow:hidden}.load-more-button{margin-left:calc(1em + var(--cx-spacing-x-small) + 1rem + var(--cx-spacing-x-small) * 2)}.load-more-button cx-button{line-height:var(--cx-line-height-small)}`;
|
|
432
|
+
var pe = Object.defineProperty, he = Object.getOwnPropertyDescriptor, $ = (t, e, a, i) => {
|
|
433
|
+
for (var s = i > 1 ? void 0 : i ? he(e, a) : e, r = t.length - 1, d; r >= 0; r--)
|
|
434
|
+
(d = t[r]) && (s = (i ? d(e, a, s) : d(s)) || s);
|
|
435
|
+
return i && s && pe(e, a, s), s;
|
|
460
436
|
};
|
|
461
437
|
let v = class extends W {
|
|
462
438
|
constructor() {
|
|
@@ -472,7 +448,7 @@ let v = class extends W {
|
|
|
472
448
|
resetTree() {
|
|
473
449
|
this.currentRootIDsSet = new Set(this.rootIDs), this.tree.querySelectorAll("cx-folder-item").forEach((t) => {
|
|
474
450
|
t.selected = this.currentRootIDsSet.has(
|
|
475
|
-
|
|
451
|
+
j({
|
|
476
452
|
id: t.id,
|
|
477
453
|
path: t.dataset.path ?? ""
|
|
478
454
|
})
|
|
@@ -483,7 +459,7 @@ let v = class extends W {
|
|
|
483
459
|
const e = t.target, a = e.dataset.id ?? "", i = e.dataset.path ?? "";
|
|
484
460
|
if (await e.updateComplete, !a.trim() || !i.trim())
|
|
485
461
|
return;
|
|
486
|
-
const s =
|
|
462
|
+
const s = j({
|
|
487
463
|
id: a,
|
|
488
464
|
path: i
|
|
489
465
|
});
|
|
@@ -491,29 +467,29 @@ let v = class extends W {
|
|
|
491
467
|
if (e.selected) {
|
|
492
468
|
if (!this.currentRootIDsSet.has(s)) {
|
|
493
469
|
dt(e, "multiple"), this.currentRootIDsSet.add(s);
|
|
494
|
-
for (const
|
|
495
|
-
!
|
|
496
|
-
|
|
497
|
-
id:
|
|
498
|
-
path:
|
|
470
|
+
for (const r of e.getChildrenItems())
|
|
471
|
+
!r.id.trim() || !r.dataset.path?.trim() || this.currentRootIDsSet.add(
|
|
472
|
+
j({
|
|
473
|
+
id: r.id,
|
|
474
|
+
path: r.dataset.path ?? ""
|
|
499
475
|
})
|
|
500
476
|
);
|
|
501
477
|
}
|
|
502
478
|
this.removedIDs = this.removedIDs.filter(
|
|
503
|
-
(
|
|
479
|
+
(r) => r !== s && !b(r).path.startsWith(i + "/")
|
|
504
480
|
);
|
|
505
481
|
} else
|
|
506
482
|
this.removedIDs.push(s), this.currentRootIDsSet.has(s) && (this.currentRootIDsSet.delete(s), dt(e, "multiple"));
|
|
507
|
-
[...this.currentRootIDsSet].forEach((
|
|
508
|
-
const
|
|
509
|
-
|
|
483
|
+
[...this.currentRootIDsSet].forEach((r) => {
|
|
484
|
+
const d = R(i), x = b(r).path, C = R(x);
|
|
485
|
+
C.startsWith(d) && C !== d && (e.selected || this.currentRootIDsSet.delete(r));
|
|
510
486
|
}), this.currentRootIDsSet = new Set(this.currentRootIDsSet);
|
|
511
487
|
}
|
|
512
488
|
}
|
|
513
489
|
render() {
|
|
514
|
-
return o`<div class="folder-tree selectable"><cx-tree class=${
|
|
490
|
+
return o`<div class="folder-tree selectable"><cx-tree class=${S({
|
|
515
491
|
selectable: !0
|
|
516
|
-
})} @cx-selected-change=${this.handleSelectedChange} selection="multiple" disabled-auto-expand disabled-sync-checkboxes>${
|
|
492
|
+
})} @cx-selected-change=${this.handleSelectedChange} selection="multiple" disabled-auto-expand disabled-sync-checkboxes>${F(
|
|
517
493
|
this.folders,
|
|
518
494
|
(t) => t.id,
|
|
519
495
|
(t) => this.renderFolder(t)
|
|
@@ -524,62 +500,62 @@ let v = class extends W {
|
|
|
524
500
|
)}</cx-tree></div>`;
|
|
525
501
|
}
|
|
526
502
|
};
|
|
527
|
-
v.styles = [st,
|
|
503
|
+
v.styles = [st, de];
|
|
528
504
|
v.dependencies = {
|
|
529
505
|
"cx-folder-item": f,
|
|
530
506
|
"cx-tree": ft
|
|
531
507
|
};
|
|
532
|
-
|
|
508
|
+
$([
|
|
533
509
|
P("cx-tree")
|
|
534
510
|
], v.prototype, "tree", 2);
|
|
535
|
-
|
|
536
|
-
|
|
511
|
+
$([
|
|
512
|
+
l({ attribute: "site-url", reflect: !0, type: String })
|
|
537
513
|
], v.prototype, "siteUrl", 2);
|
|
538
|
-
|
|
539
|
-
|
|
514
|
+
$([
|
|
515
|
+
l({ attribute: "bearer-token", reflect: !0, type: String })
|
|
540
516
|
], v.prototype, "bearerToken", 2);
|
|
541
|
-
|
|
542
|
-
|
|
517
|
+
$([
|
|
518
|
+
l({ attribute: "token", reflect: !0, type: String })
|
|
543
519
|
], v.prototype, "token", 2);
|
|
544
|
-
|
|
545
|
-
|
|
520
|
+
$([
|
|
521
|
+
l({ attribute: "search-text", reflect: !0, type: String })
|
|
546
522
|
], v.prototype, "searchText", 2);
|
|
547
|
-
|
|
548
|
-
|
|
523
|
+
$([
|
|
524
|
+
l({ type: Array })
|
|
549
525
|
], v.prototype, "folders", 2);
|
|
550
|
-
|
|
551
|
-
|
|
526
|
+
$([
|
|
527
|
+
l({ attribute: "root-ids", reflect: !0, type: Array })
|
|
552
528
|
], v.prototype, "rootIDs", 2);
|
|
553
|
-
|
|
554
|
-
|
|
529
|
+
$([
|
|
530
|
+
l({ attribute: "total-count", reflect: !0, type: Number })
|
|
555
531
|
], v.prototype, "totalCount", 2);
|
|
556
|
-
|
|
557
|
-
|
|
532
|
+
$([
|
|
533
|
+
l({ attribute: "load-more", type: Function })
|
|
558
534
|
], v.prototype, "loadMore", 2);
|
|
559
|
-
|
|
560
|
-
|
|
535
|
+
$([
|
|
536
|
+
l({ attribute: "is-loading", reflect: !0, type: Boolean })
|
|
561
537
|
], v.prototype, "isLoading", 2);
|
|
562
|
-
|
|
563
|
-
|
|
538
|
+
$([
|
|
539
|
+
l({ attribute: "folder-paths-set", type: Object })
|
|
564
540
|
], v.prototype, "folderPathsSet", 2);
|
|
565
|
-
|
|
541
|
+
$([
|
|
566
542
|
h()
|
|
567
543
|
], v.prototype, "removedIDs", 2);
|
|
568
|
-
|
|
544
|
+
$([
|
|
569
545
|
h()
|
|
570
546
|
], v.prototype, "currentRootIDsSet", 2);
|
|
571
|
-
|
|
547
|
+
$([
|
|
572
548
|
z("rootIDs")
|
|
573
549
|
], v.prototype, "handleRootIDsChange", 1);
|
|
574
|
-
v =
|
|
550
|
+
v = $([
|
|
575
551
|
q("cx-folder-tree")
|
|
576
552
|
], v);
|
|
577
|
-
var it =
|
|
578
|
-
return Ht(
|
|
579
|
-
}), _ = /* @__PURE__ */ ((t) => (t.Canceled = "CANCELED", t.Failed = "FAILED", t.InProgress = "INPROGRESS", t.PendingComplete = "PENDINGCOMPLETE", t.Success = "SUCCESS", t))(_ || {}),
|
|
580
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
581
|
-
(
|
|
582
|
-
return i && s &&
|
|
553
|
+
var it = Mt(function(t) {
|
|
554
|
+
return Ht(Ct(t, Vt));
|
|
555
|
+
}), _ = /* @__PURE__ */ ((t) => (t.Canceled = "CANCELED", t.Failed = "FAILED", t.InProgress = "INPROGRESS", t.PendingComplete = "PENDINGCOMPLETE", t.Success = "SUCCESS", t))(_ || {}), ue = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, k = (t, e, a, i) => {
|
|
556
|
+
for (var s = i > 1 ? void 0 : i ? ge(e, a) : e, r = t.length - 1, d; r >= 0; r--)
|
|
557
|
+
(d = t[r]) && (s = (i ? d(e, a, s) : d(s)) || s);
|
|
558
|
+
return i && s && ue(e, a, s), s;
|
|
583
559
|
};
|
|
584
560
|
let T = class extends W {
|
|
585
561
|
constructor() {
|
|
@@ -617,7 +593,7 @@ let T = class extends W {
|
|
|
617
593
|
</cx-line-clamp></cx-typography></div>`;
|
|
618
594
|
}
|
|
619
595
|
render() {
|
|
620
|
-
return o`<div class="file-on-demand-pinned-status">${
|
|
596
|
+
return o`<div class="file-on-demand-pinned-status">${Yt(this.uploadStatus, [
|
|
621
597
|
[_.Success, this.renderSuccess.bind(this)],
|
|
622
598
|
[_.Failed, this.renderFailed.bind(this)],
|
|
623
599
|
[_.InProgress, this.renderInProgress.bind(this)],
|
|
@@ -634,40 +610,40 @@ T.dependencies = {
|
|
|
634
610
|
"cx-typography": rt
|
|
635
611
|
};
|
|
636
612
|
k([
|
|
637
|
-
|
|
613
|
+
l({
|
|
638
614
|
attribute: "upload-status",
|
|
639
615
|
type: String
|
|
640
616
|
})
|
|
641
617
|
], T.prototype, "uploadStatus", 2);
|
|
642
618
|
k([
|
|
643
|
-
|
|
619
|
+
l({ type: Number })
|
|
644
620
|
], T.prototype, "size", 2);
|
|
645
621
|
k([
|
|
646
|
-
|
|
622
|
+
l({
|
|
647
623
|
attribute: "remaining-size",
|
|
648
624
|
type: Number
|
|
649
625
|
})
|
|
650
626
|
], T.prototype, "remainingSize", 2);
|
|
651
627
|
k([
|
|
652
|
-
|
|
628
|
+
l({
|
|
653
629
|
attribute: "is-folder",
|
|
654
630
|
type: Boolean
|
|
655
631
|
})
|
|
656
632
|
], T.prototype, "isFolder", 2);
|
|
657
633
|
k([
|
|
658
|
-
|
|
634
|
+
l({
|
|
659
635
|
attribute: "children-count",
|
|
660
636
|
type: Number
|
|
661
637
|
})
|
|
662
638
|
], T.prototype, "childrenCount", 2);
|
|
663
639
|
k([
|
|
664
|
-
|
|
640
|
+
l({
|
|
665
641
|
attribute: "assets-count",
|
|
666
642
|
type: Number
|
|
667
643
|
})
|
|
668
644
|
], T.prototype, "assetsCount", 2);
|
|
669
645
|
k([
|
|
670
|
-
|
|
646
|
+
l({
|
|
671
647
|
attribute: "upload-error-message",
|
|
672
648
|
type: String
|
|
673
649
|
})
|
|
@@ -675,11 +651,11 @@ k([
|
|
|
675
651
|
T = k([
|
|
676
652
|
q("cx-file-on-demand-pinned-status")
|
|
677
653
|
], T);
|
|
678
|
-
const
|
|
679
|
-
var
|
|
680
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
681
|
-
(
|
|
682
|
-
return i && s &&
|
|
654
|
+
const xe = ot`:host{--cx-asset-thumbnail-width:56px;padding:var(--cx-spacing-2x-small) var(--cx-spacing-small);display:block}.asset{max-height:var(--asset-height);gap:var(--cx-spacing-small);display:flex}:host(:hover){background-color:var(--cx-input-filled-background-color-hover)}.asset__description{flex-direction:column;flex:1;justify-content:center;width:0;display:flex}.asset__description__label{display:flex}.asset__description__label__text{flex-grow:1;flex-shrink:1;overflow:hidden}.asset__description__status{color:var(--cx-color-neutral-500);line-height:var(--cx-line-height-medium)}.asset__actions{justify-content:flex-end;align-items:center;min-width:64px;display:flex}.asset:hover .asset__actions{visibility:visible;opacity:1}.asset__actions{visibility:hidden;opacity:0}.asset__actions__spinner{min-height:var(--cx-input-height-medium);min-width:var(--cx-input-height-medium);justify-content:center;align-items:center;display:flex}.asset__actions__spinner::part(base){flex-grow:0}.asset__thumbnail{width:var(--cx-asset-thumbnail-width);height:var(--asset-height);background-color:var(--cx-color-neutral-100);border-radius:var(--cx-border-radius-medium);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.asset__thumbnail--placeholder{background-color:var(--cx-color-primary-50)}.asset__thumbnail--folder{background-color:var(--cx-color-neutral-100)}.asset__thumbnail__image{height:100%;max-width:var(--cx-asset-thumbnail-width);object-fit:cover;flex-shrink:0}.asset__thumbnail__icon{--font-size:38px;color:var(--cx-color-primary-400);display:none}.asset__folder__icon{--font-size:var(--cx-font-size-x-large);color:var(--cx-color-neutral-600)}.asset__thumbnail__extension{bottom:var(--cx-spacing-3x-small);width:26px;color:var(--cx-color-primary-50);display:none;position:absolute;left:50%;transform:translate(-50%)}.asset__thumbnail__extension__line-clamp{text-align:center;width:100%}.asset__thumbnail__extension__text{text-transform:uppercase;flex-grow:1;flex-shrink:1;display:contents;overflow:hidden}.asset__thumbnail--placeholder .asset__thumbnail__image{display:none}.asset__thumbnail--placeholder .asset__thumbnail__icon,.asset__thumbnail--placeholder .asset__thumbnail__extension{display:flex}cx-progress-bar{--height:4px;--indicator-color:var(--color);--track-color:var(--cx-color-neutral-300);z-index:0}.progress{align-items:center;gap:var(--cx-spacing-2x-small);width:100%;margin-top:var(--cx-spacing-3x-small);display:flex}.syncing-progress,.completed-progress,.failed-progress,.canceled-progress{margin-top:var(--cx-spacing-2x-small)}.progress *{white-space:nowrap}.progress cx-icon{--font-size:var(--cx-font-size-medium)}.progress cx-typography::part(base){line-height:var(--cx-font-size-medium)}.uploading-progress.in-progress cx-icon{color:var(--cx-color-primary-500)}.uploading-progress.paused cx-icon{color:var(--cx-color-warning-500)}.syncing-progress cx-icon{color:var(--cx-color-warning)}.completed-progress cx-icon{color:var(--cx-color-success)}.failed-progress cx-icon,.failed-progress__text{color:var(--cx-color-danger);cursor:help}.canceled-progress cx-icon{color:var(--cx-color-neutral-600)}.file-on-demand-pinned-status__success cx-icon{color:var(--cx-color-success-500)}.file-on-demand-pinned-status__in-progress cx-icon{color:var(--cx-color-primary-500)}.file-on-demand-pinned-status__failed cx-icon{color:var(--cx-color-warning-600)}.file-on-demand-pinned-status__failed .pinned-status__text{cursor:help}.file-on-demand-pinned-status__canceled cx-icon{color:var(--cx-color-neutral-500)}`;
|
|
655
|
+
var me = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, H = (t, e, a, i) => {
|
|
656
|
+
for (var s = i > 1 ? void 0 : i ? _e(e, a) : e, r = t.length - 1, d; r >= 0; r--)
|
|
657
|
+
(d = t[r]) && (s = (i ? d(e, a, s) : d(s)) || s);
|
|
658
|
+
return i && s && me(e, a, s), s;
|
|
683
659
|
};
|
|
684
660
|
let L = class extends W {
|
|
685
661
|
constructor() {
|
|
@@ -701,7 +677,7 @@ let L = class extends W {
|
|
|
701
677
|
return this.listType === u.PINNED;
|
|
702
678
|
}
|
|
703
679
|
get isFolder() {
|
|
704
|
-
return
|
|
680
|
+
return ee.includes((this.asset.docType ?? "").toLowerCase());
|
|
705
681
|
}
|
|
706
682
|
get thumbnailUrl() {
|
|
707
683
|
return this.asset.thumbnail?.trim() ?? "";
|
|
@@ -807,11 +783,11 @@ let L = class extends W {
|
|
|
807
783
|
remainingTime: a,
|
|
808
784
|
size: i = 0,
|
|
809
785
|
timestamp: s = Date.now(),
|
|
810
|
-
uploadErrorMessage:
|
|
811
|
-
uploadStatus:
|
|
786
|
+
uploadErrorMessage: r,
|
|
787
|
+
uploadStatus: d = _.InProgress
|
|
812
788
|
}) {
|
|
813
|
-
const x = i > 0 ? e * 100 / i : 0,
|
|
814
|
-
"in-progress":
|
|
789
|
+
const x = i > 0 ? e * 100 / i : 0, C = d === _.InProgress ? x : 100, g = o`<div class=${S({
|
|
790
|
+
"in-progress": d === _.InProgress,
|
|
815
791
|
paused: t,
|
|
816
792
|
progress: !0,
|
|
817
793
|
"uploading-progress": !0
|
|
@@ -823,23 +799,23 @@ let L = class extends W {
|
|
|
823
799
|
<cx-relative-time format="narrow" numeric="always" date=${new Date(Date.now() + (a ?? 0))} sync sync-interval=${N}></cx-relative-time>`
|
|
824
800
|
)}</cx-line-clamp></cx-typography></div>`, m = o`<div class="progress syncing-progress"><cx-icon name="cached"></cx-icon><cx-typography variant="small"><cx-line-clamp lines="1">${this.localize.term("syncing")} ‧
|
|
825
801
|
<cx-relative-time format="narrow" numeric="always" date=${new Date(s)} sync sync-interval=${N}></cx-relative-time></cx-line-clamp></cx-typography></div>`, D = o`<div class="progress completed-progress"><cx-icon name="check"></cx-icon><cx-typography variant="small"><cx-line-clamp lines="1">${this.localize.term("readyToUse")} ‧
|
|
826
|
-
<cx-relative-time format="narrow" numeric="always" date=${new Date(s)} sync sync-interval=${N}></cx-relative-time></cx-line-clamp></cx-typography></div>`, y = o`<div class="progress failed-progress"><cx-typography variant="small"><cx-line-clamp lines="1"><cx-tooltip content=${
|
|
827
|
-
</span></cx-tooltip><cx-relative-time format="narrow" numeric="always" date=${new Date(s)} sync sync-interval=${N}></cx-relative-time></cx-line-clamp></cx-typography></div>`,
|
|
802
|
+
<cx-relative-time format="narrow" numeric="always" date=${new Date(s)} sync sync-interval=${N}></cx-relative-time></cx-line-clamp></cx-typography></div>`, y = o`<div class="progress failed-progress"><cx-typography variant="small"><cx-line-clamp lines="1"><cx-tooltip content=${r || this.localize.term("uploadFailed")}><span class="failed-progress__text">${this.localize.term("uploadFailed")} ‧
|
|
803
|
+
</span></cx-tooltip><cx-relative-time format="narrow" numeric="always" date=${new Date(s)} sync sync-interval=${N}></cx-relative-time></cx-line-clamp></cx-typography></div>`, U = o`<div class="progress canceled-progress"><cx-icon name="cancel"></cx-icon><cx-typography variant="small"><cx-line-clamp lines="1">${this.localize.term("canceled")} ‧
|
|
828
804
|
<cx-relative-time format="narrow" numeric="always" date=${new Date(s)} sync sync-interval=${N}></cx-relative-time></cx-line-clamp></cx-typography></div>`;
|
|
829
805
|
return o`
|
|
830
806
|
${p(
|
|
831
|
-
|
|
832
|
-
() => o`<cx-progress-bar style=${
|
|
807
|
+
d === _.InProgress,
|
|
808
|
+
() => o`<cx-progress-bar style=${Gt({
|
|
833
809
|
"--color": t ? "var(--cx-color-warning-500)" : "var(--cx-color-primary-500)"
|
|
834
|
-
})} .value=${
|
|
810
|
+
})} .value=${C.toFixed(0)} class="progress-bar"></cx-progress-bar>${g}`
|
|
835
811
|
)}
|
|
836
812
|
${p(
|
|
837
|
-
|
|
813
|
+
d === _.PendingComplete,
|
|
838
814
|
() => m
|
|
839
815
|
)}
|
|
840
|
-
${p(
|
|
841
|
-
${p(
|
|
842
|
-
${p(
|
|
816
|
+
${p(d === _.Success, () => D)}
|
|
817
|
+
${p(d === _.Failed, () => y)}
|
|
818
|
+
${p(d === _.Canceled, () => U)}
|
|
843
819
|
`;
|
|
844
820
|
}
|
|
845
821
|
renderUploadingStatus() {
|
|
@@ -862,10 +838,10 @@ let L = class extends W {
|
|
|
862
838
|
return this.isFolder ? this.listType === u.FAVORITES ? o`<cx-icon class="asset__folder__icon" name="folder_special"></cx-icon>` : o`<cx-icon class="asset__folder__icon" name="topic"></cx-icon>` : o`${p(
|
|
863
839
|
!!this.thumbnailUrl,
|
|
864
840
|
() => o`<img alt=${this.asset.fileName} class="asset__thumbnail__image" src=${this.thumbnailUrl} @error=${this.handleImgError} @load=${this.handleImgLoad}>`
|
|
865
|
-
)}<cx-icon class="asset__thumbnail__icon" name="insert_drive_file" variant="filled"></cx-icon><div class="asset__thumbnail__extension"><cx-line-clamp class="asset__thumbnail__extension__line-clamp" lines="1"><cx-typography class="asset__thumbnail__extension__text" variant="small">${
|
|
841
|
+
)}<cx-icon class="asset__thumbnail__icon" name="insert_drive_file" variant="filled"></cx-icon><div class="asset__thumbnail__extension"><cx-line-clamp class="asset__thumbnail__extension__line-clamp" lines="1"><cx-typography class="asset__thumbnail__extension__text" variant="small">${ae(this.asset.fileName)}</cx-typography></cx-line-clamp></div>`;
|
|
866
842
|
}
|
|
867
843
|
renderThumbnail() {
|
|
868
|
-
return o`<div class=${
|
|
844
|
+
return o`<div class=${S({
|
|
869
845
|
asset__thumbnail: !0,
|
|
870
846
|
"asset__thumbnail--folder": this.isFolder,
|
|
871
847
|
"asset__thumbnail--placeholder": this.showThumbnailPlaceholder
|
|
@@ -919,30 +895,30 @@ let L = class extends W {
|
|
|
919
895
|
${p(this.showPinnedActions, () => this.renderPinnedActions())}</div></div>`;
|
|
920
896
|
}
|
|
921
897
|
};
|
|
922
|
-
L.styles = [st,
|
|
898
|
+
L.styles = [st, xe];
|
|
923
899
|
L.dependencies = {
|
|
924
900
|
"cx-file-on-demand-pinned-status": T,
|
|
925
901
|
"cx-format-bytes": nt,
|
|
926
902
|
"cx-icon": tt,
|
|
927
903
|
"cx-icon-button": vt,
|
|
928
904
|
"cx-line-clamp": et,
|
|
929
|
-
"cx-progress-bar":
|
|
905
|
+
"cx-progress-bar": Wt,
|
|
930
906
|
"cx-relative-time": yt,
|
|
931
|
-
"cx-spinner":
|
|
907
|
+
"cx-spinner": qt,
|
|
932
908
|
"cx-tooltip": bt,
|
|
933
909
|
"cx-typography": rt
|
|
934
910
|
};
|
|
935
911
|
H([
|
|
936
|
-
|
|
912
|
+
l({ type: Object })
|
|
937
913
|
], L.prototype, "asset", 2);
|
|
938
914
|
H([
|
|
939
|
-
|
|
915
|
+
l({
|
|
940
916
|
attribute: "list-type",
|
|
941
917
|
type: String
|
|
942
918
|
})
|
|
943
919
|
], L.prototype, "listType", 2);
|
|
944
920
|
H([
|
|
945
|
-
|
|
921
|
+
l({
|
|
946
922
|
attribute: "favorite-in-progress-assets",
|
|
947
923
|
converter: {
|
|
948
924
|
fromAttribute: (t) => t.split(" ").filter(Boolean),
|
|
@@ -952,7 +928,7 @@ H([
|
|
|
952
928
|
})
|
|
953
929
|
], L.prototype, "favoriteInProgressAssets", 2);
|
|
954
930
|
H([
|
|
955
|
-
|
|
931
|
+
l({
|
|
956
932
|
attribute: "pin-in-progress-assets",
|
|
957
933
|
converter: {
|
|
958
934
|
fromAttribute: (t) => t.split(" ").filter(Boolean),
|
|
@@ -967,13 +943,13 @@ H([
|
|
|
967
943
|
L = H([
|
|
968
944
|
q("cx-file-on-demand-asset")
|
|
969
945
|
], L);
|
|
970
|
-
const
|
|
971
|
-
var
|
|
972
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
973
|
-
(
|
|
974
|
-
return i && s &&
|
|
946
|
+
const fe = ot`:host{--asset-height:40px;color:var(--cx-color-neutral-900);--cx-button-text-transform:none;--tooltip-max-width:min(80vw, 640px);height:100%;display:block}.container{height:100%;display:block}.container--user-interaction-blocked{pointer-events:none;user-select:none}.loading-overlay{background-color:var(--cx-color-neutral-50);opacity:.8;width:100%;height:100%;z-index:var(--cx-z-index-tooltip);justify-content:center;align-items:center;display:flex;position:absolute;top:0;left:0}.assets,.welcome{flex-direction:column;height:100%;display:flex}.assets-list__tab-group .empty-icon{color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-3x-large)}cx-tab{line-height:var(--cx-line-height-large)}.assets-list__tab-group cx-tab{width:25%}.settings__tab-group cx-tab{width:50%}cx-tab::part(base){justify-content:center;display:flex}cx-tab::part(label){text-align:center}cx-tab-panel{--padding:0 0 var(--cx-spacing-x-small) 0}cx-icon[slot=prefix]{font-size:var(--cx-font-size-large)}.error-message{color:var(--cx-color-danger);min-height:1ch}.welcome{padding:var(--cx-spacing-x-large) var(--cx-spacing-medium) var(--cx-spacing-medium) var(--cx-spacing-medium);justify-content:center;align-items:center;gap:var(--cx-spacing-x-large)}.welcome__message{justify-content:center;align-items:center;gap:var(--cx-spacing-x-small);flex-direction:column;display:flex}.welcome__actions{justify-content:center;gap:var(--cx-spacing-x-small);flex-direction:column;width:100%;display:flex}.welcome__connect-button,.welcome__cancel-connection-button,.welcome__input{width:100%}.welcome__connect-button--disabled::part(base){cursor:help}.welcome .error-message{text-align:center}.header{background-color:var(--cx-color-neutral-50);padding:var(--cx-spacing-x-small) var(--cx-spacing-small);justify-content:space-between;line-height:1;display:flex}.header__user{align-items:center;gap:var(--cx-spacing-x-small);display:flex;overflow:hidden}.header__username{display:flex;overflow:hidden}.header__username__text{flex-grow:1;flex-shrink:1;overflow:hidden}.header__avatar{--size:24px}.header__actions{min-width:fit-content}.settings__version__badge::part(base){width:var(--cx-spacing-x-small);padding:0}.assets-list{flex:1;height:0}.assets-list__tab-group,.assets-list__tab-group::part(base),.assets-list__tab-group::part(body),.assets-list__tab-group cx-tab-panel,.assets-list__tab-group cx-tab-panel::part(base){height:100%;overflow:hidden}.assets-list__tab-group .assets-list__tab-group__empty-message{justify-content:center;align-items:center;gap:var(--cx-spacing-medium);font-size:var(--cx-font-size-x-large);padding:var(--cx-spacing-large) 0;text-align:center;flex-direction:column;display:flex}.assets-list__tab-group .assets-list__tab-group__empty-message:not(.favorites-empty){margin-top:40px}.assets-list__tab-group .recent__list,.assets-list__tab-group .favorites__list,.assets-list__tab-group .uploads__list,.assets-list__tab-group .pinned__list{height:100%;padding:0 0 var(--cx-spacing-x-small) 0;flex-direction:column;display:flex;overflow:hidden auto}.favorites-tab-panel__content,.pinned-tab-panel__content{flex-direction:column;height:100%;display:flex}.favorites__sync-time{justify-content:center;align-items:center;display:flex}.assets-list__tab-group .favorites__list,.assets-list__tab-group .pinned__list{flex:1;height:0}.recent__other.empty,.uploads__other.empty,.recent__today.empty,.uploads__today.empty{display:none}.status-footer{padding:0 var(--cx-spacing-small) var(--cx-spacing-small) var(--cx-spacing-small);gap:var(--cx-spacing-2x-small);flex-direction:column;display:flex}.status-footer cx-typography,.status-footer cx-line-clamp{line-height:1}.status-footer .cache-usage,.status-footer .connected-url,.status-footer .connection-status,.status-footer .asset-index-sync-status{justify-content:space-between;align-items:center;display:flex}.status-footer .label{color:var(--cx-color-neutral-600)}.status-footer__divider{--spacing:0;margin-bottom:var(--cx-spacing-small)}.connected-url .label{white-space:nowrap}.connected-url .value-line-clamp{padding:0 var(--cx-spacing-2x-small)}.connected-url .value::part(base){font-weight:var(--cx-font-weight-medium);color:var(--cx-color-neutral-900)}.cache-usage__warning-icon{color:var(--cx-color-warning-500)}.status-footer .cache-usage .label{color:var(--cx-color-neutral-600)}.connection-status__value{justify-content:center;align-items:center;gap:var(--cx-spacing-2x-small);cursor:help;display:flex}.connection-status__value cx-typography{display:inline-flex}.connection-status__value cx-typography::part(base){text-transform:capitalize;font-weight:var(--cx-font-weight-medium)}.connection-status--excellent .connection-status__value{color:var(--cx-color-success)}.connection-status--good .connection-status__value{color:var(--cx-color-warning)}.connection-status--bad .connection-status__value{color:var(--cx-color-danger)}.connection-status cx-icon{font-size:var(--cx-font-size-medium)}.asset-index-sync-status .value{justify-content:center;align-items:center;gap:var(--cx-spacing-2x-small);display:flex}.asset-index-sync-status .value cx-typography{display:inline-flex}.asset-index-sync-status .value cx-typography::part(base){text-transform:capitalize;font-weight:var(--cx-font-weight-medium)}.asset-index-sync-status--loaded .value{color:var(--cx-color-success)}.asset-index-sync-status--loading .value{color:var(--cx-color-warning)}.asset-index-sync-status--error .value{color:var(--cx-color-danger)}.asset-index-sync-status cx-icon{font-size:var(--cx-font-size-medium)}.uploads__list .asset-group__label{justify-content:space-between;align-items:center;display:flex}.asset-group__clear-button::part(base){color:var(--cx-color-primary-500);font-size:var(--cx-font-size-x-small)}.asset-group__label{padding:var(--cx-spacing-x-small) var(--cx-spacing-small);color:var(--cx-color-neutral-400);line-height:var(--cx-line-height-large)}.settings{height:100%}.settings .error-message{text-align:center}.settings__form{flex-direction:column;height:100%;display:flex}.settings__tab-group{flex:1;height:0}.settings__tab-group::part(base),.settings__tab-group::part(body){height:100%;overflow:hidden}.settings__tab-group cx-tab-panel{padding:var(--cx-spacing-medium) var(--cx-spacing-large) var(--cx-spacing-large) var(--cx-spacing-large);height:100%;overflow-y:auto}.settings-group{gap:var(--cx-spacing-x-small);flex-direction:column;display:flex}.settings__general,.settings__advanced{gap:calc(var(--cx-spacing-small) * 2);flex-direction:column;display:flex}.settings__footer{border-top:1px solid var(--cx-color-neutral-200);padding:var(--cx-spacing-x-small) var(--cx-spacing-small);justify-content:flex-end;display:flex}.settings__footer__actions{gap:var(--cx-spacing-x-small);display:flex}.settings__connection-url{justify-content:space-between;display:flex}.settings__connection-url__value{padding:0 var(--cx-spacing-small);flex-grow:1;flex-shrink:1;overflow:hidden}.settings__software__version{gap:var(--cx-spacing-small);flex-direction:column;display:flex}.settings__software__version__value{justify-content:space-between;align-items:center;gap:var(--cx-spacing-2x-small);display:flex}.settings__software__version__value__text{flex-grow:1;flex-shrink:1;overflow:hidden}.settings__software__version__install-button{flex-shrink:0}.settings__about{text-align:center;color:var(--cx-color-neutral-500)}.settings__disconnect-button{width:100%}.settings__disconnect-button::part(base),.settings__disconnect-button cx-icon{color:var(--cx-color-danger)}.settings__cache__size{gap:var(--cx-spacing-medium);flex-direction:column;display:flex}.settings__cache__input{gap:var(--cx-spacing-medium);flex-direction:row;display:flex}.settings__cache__size cx-input{flex:1}.settings__cache__input .size-unit{color:var(--cx-color-neutral-700)}.settings__cache__location{gap:var(--cx-spacing-small);flex-direction:column;display:flex}.settings__cache__location__label,.settings__cache__size__label{--color:var(--cx-color-neutral-600)}.settings__cache__location__value{justify-content:space-between;align-items:center;display:flex}.settings__cache__location__value__text{padding:0 var(--cx-spacing-small);flex-grow:1;flex-shrink:1;overflow:hidden}.settings__cache__location__actions{flex-wrap:nowrap}.settings__cache__location__change-button{flex-shrink:0}cx-tree-item:not(.selectable){--selected-color:var(--cx-color-neutral-700)}cx-tree-item:not(:hover):not(.selectable)::part(item){background-color:unset;color:var(--cx-color-neutral-700)}.folder-tree{flex:1;overflow:auto}.folder-tree:not(.selectable){max-height:200px}.folder-tree__item::part(label){width:100%;overflow:hidden}.folder-tree__icon{font-size:var(--cx-font-size-large);color:var(--cx-color-neutral-600)}.folder-tree__label{gap:var(--cx-spacing-x-small);width:100%;line-height:var(--cx-line-height-medium);display:flex;overflow:hidden}.folder-tree__label__value{flex-grow:1;flex-shrink:1;overflow:hidden}.select-folders-popup::part(body){gap:var(--cx-spacing-medium);flex-direction:column;display:flex;overflow:hidden}.select-folders-popup .selectable-folder-tree{flex:1;overflow:auto}.select-folders-popup__actions{justify-content:flex-end;display:flex}`;
|
|
947
|
+
var ve = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, c = (t, e, a, i) => {
|
|
948
|
+
for (var s = i > 1 ? void 0 : i ? ye(e, a) : e, r = t.length - 1, d; r >= 0; r--)
|
|
949
|
+
(d = t[r]) && (s = (i ? d(e, a, s) : d(s)) || s);
|
|
950
|
+
return i && s && ve(e, a, s), s;
|
|
975
951
|
};
|
|
976
|
-
let
|
|
952
|
+
let n = class extends W {
|
|
977
953
|
constructor() {
|
|
978
954
|
super(...arguments), this.localize = new G(this), this.connectionEstablished = !1, this.connectionStatus = "excellent", this.connectionStatusTooltip = "", this.assetIndexSyncStatus = "loading", this.userAvatarUrl = "", this.username = "", this.recentAssets = { assets: [], hasMore: !1 }, this.favoriteAssets = { assets: [], hasMore: !1 }, this.favoritesLastSync = Date.now(), this.favoriteInProgressAssets = [], this.pinInProgressAssets = [], this.uploadingAssets = { assets: [], hasMore: !1 }, this.pinnedAssets = { assets: [], hasMore: !1 }, this.availableFolderIdentifiers = [], this.isLoading = !1, this.settings = {
|
|
979
955
|
cacheLocation: "Default",
|
|
@@ -1017,8 +993,8 @@ let r = class extends W {
|
|
|
1017
993
|
start: s,
|
|
1018
994
|
token: this.token
|
|
1019
995
|
});
|
|
1020
|
-
} catch (
|
|
1021
|
-
|
|
996
|
+
} catch (r) {
|
|
997
|
+
r instanceof Error && r.message === "Failed to fetch" && this.emit("cx-renew-token");
|
|
1022
998
|
}
|
|
1023
999
|
return {
|
|
1024
1000
|
data: this.availableFolderIdentifiers,
|
|
@@ -1253,17 +1229,17 @@ let r = class extends W {
|
|
|
1253
1229
|
renderRecentAssets() {
|
|
1254
1230
|
const t = o`<div class="recent-empty assets-list__tab-group__empty-message"><cx-icon class="empty-icon" name="explore"></cx-icon><cx-typography variant="body2">${this.localize.term("allViewedAssetsWillBeVisibleHere")}</cx-typography></div>`, [e, a] = ht(
|
|
1255
1231
|
this.recentAssets.assets
|
|
1256
|
-
), i = o`<div class="recent__list" @scroll=${this.requestMoreRecentAssets}><div class=${
|
|
1232
|
+
), i = o`<div class="recent__list" @scroll=${this.requestMoreRecentAssets}><div class=${S({
|
|
1257
1233
|
empty: e.length === 0,
|
|
1258
1234
|
recent__today: !0
|
|
1259
|
-
})} data-testid="recent__today"><div class="asset-group__label"><cx-typography variant="small">${this.localize.term("today")}</cx-typography></div>${
|
|
1235
|
+
})} data-testid="recent__today"><div class="asset-group__label"><cx-typography variant="small">${this.localize.term("today")}</cx-typography></div>${F(
|
|
1260
1236
|
e,
|
|
1261
1237
|
(s) => s.recordId,
|
|
1262
1238
|
(s) => this.renderAsset(s, u.RECENT)
|
|
1263
|
-
)}</div><div class=${
|
|
1239
|
+
)}</div><div class=${S({
|
|
1264
1240
|
empty: a.length === 0,
|
|
1265
1241
|
recent__other: !0
|
|
1266
|
-
})}><div class="asset-group__label"><cx-typography variant="small">${this.localize.term("allOther")}</cx-typography></div>${
|
|
1242
|
+
})}><div class="asset-group__label"><cx-typography variant="small">${this.localize.term("allOther")}</cx-typography></div>${F(
|
|
1267
1243
|
a,
|
|
1268
1244
|
(s) => s.recordId,
|
|
1269
1245
|
(s) => this.renderAsset(s, u.RECENT)
|
|
@@ -1275,7 +1251,7 @@ let r = class extends W {
|
|
|
1275
1251
|
)}</cx-tab-panel>`;
|
|
1276
1252
|
}
|
|
1277
1253
|
renderFavoriteAssets() {
|
|
1278
|
-
const t = o`<div class="favorites-empty assets-list__tab-group__empty-message"><cx-icon class="empty-icon" name="star"></cx-icon><cx-typography variant="body2">${this.localize.term("allFavoriteAssetsWillBeVisibleHere")}</cx-typography></div>`, e = xt(this.favoriteAssets.assets), a = o`<div class="favorites__list" @scroll=${this.requestMoreFavoriteAssets}>${
|
|
1254
|
+
const t = o`<div class="favorites-empty assets-list__tab-group__empty-message"><cx-icon class="empty-icon" name="star"></cx-icon><cx-typography variant="body2">${this.localize.term("allFavoriteAssetsWillBeVisibleHere")}</cx-typography></div>`, e = xt(this.favoriteAssets.assets), a = o`<div class="favorites__list" @scroll=${this.requestMoreFavoriteAssets}>${F(
|
|
1279
1255
|
e,
|
|
1280
1256
|
(i) => i.recordId,
|
|
1281
1257
|
(i) => this.renderAsset(i, u.FAVORITES)
|
|
@@ -1293,20 +1269,20 @@ let r = class extends W {
|
|
|
1293
1269
|
renderUploadingAssets() {
|
|
1294
1270
|
const t = o`<div class="uploads-empty assets-list__tab-group__empty-message"><cx-icon class="empty-icon" name="arrow_upward"></cx-icon><cx-typography variant="body2">${this.localize.term("allAssetUploadsWillBeVisibleHere")}</cx-typography></div>`, [e, a] = ht(
|
|
1295
1271
|
this.uploadingAssets.assets
|
|
1296
|
-
), i = o`<div class="uploads__list" @scroll=${this.requestMoreUploadingAssets}><div class=${
|
|
1272
|
+
), i = o`<div class="uploads__list" @scroll=${this.requestMoreUploadingAssets}><div class=${S({
|
|
1297
1273
|
empty: e.length === 0,
|
|
1298
1274
|
recent__today: !0
|
|
1299
|
-
})} data-testid="uploads__today"><div class="asset-group__label"><cx-typography variant="small">${this.localize.term("today")}</cx-typography>${p(e.length > 0, () => this.renderClearUploadButton())}</div>${
|
|
1275
|
+
})} data-testid="uploads__today"><div class="asset-group__label"><cx-typography variant="small">${this.localize.term("today")}</cx-typography>${p(e.length > 0, () => this.renderClearUploadButton())}</div>${F(
|
|
1300
1276
|
e,
|
|
1301
1277
|
(s) => s.recordId,
|
|
1302
1278
|
(s) => this.renderAsset(s, u.UPLOADS)
|
|
1303
|
-
)}</div><div class=${
|
|
1279
|
+
)}</div><div class=${S({
|
|
1304
1280
|
empty: a.length === 0,
|
|
1305
1281
|
uploads__other: !0
|
|
1306
1282
|
})}><div class="asset-group__label"><cx-typography variant="small">${this.localize.term("allOther")}</cx-typography>${p(
|
|
1307
1283
|
e.length === 0 && a.length > 0,
|
|
1308
1284
|
() => this.renderClearUploadButton()
|
|
1309
|
-
)}</div>${
|
|
1285
|
+
)}</div>${F(
|
|
1310
1286
|
a,
|
|
1311
1287
|
(s) => s.recordId,
|
|
1312
1288
|
(s) => this.renderAsset(s, u.UPLOADS)
|
|
@@ -1318,7 +1294,7 @@ let r = class extends W {
|
|
|
1318
1294
|
)}</cx-tab-panel>`;
|
|
1319
1295
|
}
|
|
1320
1296
|
renderPinnedAssets() {
|
|
1321
|
-
const t = o`<div class="pinned-empty assets-list__tab-group__empty-message"><cx-icon class="empty-icon" name="keep"></cx-icon><cx-typography variant="body2">${this.localize.term("allPinnedAssetsWillBeVisibleHere")}</cx-typography></div>`, e = xt(this.pinnedAssets.assets), a = o`<div class="pinned__list" @scroll=${this.requestMorePinnedAssets}>${
|
|
1297
|
+
const t = o`<div class="pinned-empty assets-list__tab-group__empty-message"><cx-icon class="empty-icon" name="keep"></cx-icon><cx-typography variant="body2">${this.localize.term("allPinnedAssetsWillBeVisibleHere")}</cx-typography></div>`, e = xt(this.pinnedAssets.assets), a = o`<div class="pinned__list" @scroll=${this.requestMorePinnedAssets}>${F(
|
|
1322
1298
|
e,
|
|
1323
1299
|
(i) => i.recordId,
|
|
1324
1300
|
(i) => this.renderAsset(i, u.PINNED)
|
|
@@ -1368,45 +1344,45 @@ let r = class extends W {
|
|
|
1368
1344
|
this.isAddingRootIDs = !0, await this.updateComplete, this.searchText = "";
|
|
1369
1345
|
const s = this.rootIDs.filter((x) => {
|
|
1370
1346
|
if (!this.folderTree.shadowRoot?.querySelector(
|
|
1371
|
-
`[data-id="${
|
|
1347
|
+
`[data-id="${b(x).id}"]`
|
|
1372
1348
|
))
|
|
1373
1349
|
return !0;
|
|
1374
|
-
}),
|
|
1350
|
+
}), r = /* @__PURE__ */ new Set([
|
|
1375
1351
|
...this.folderTree.currentRootIDs,
|
|
1376
1352
|
...s
|
|
1377
1353
|
]);
|
|
1378
|
-
for (const x of
|
|
1379
|
-
const
|
|
1380
|
-
(m) => R(
|
|
1354
|
+
for (const x of r) {
|
|
1355
|
+
const C = R(b(x).path), g = this.folderTree.removedIDs.filter(
|
|
1356
|
+
(m) => R(b(m).path).startsWith(C)
|
|
1381
1357
|
);
|
|
1382
1358
|
if (g.length > 0) {
|
|
1383
1359
|
const { totalCount: m } = await this.fetchFolders({
|
|
1384
|
-
excludes: g.map((y) =>
|
|
1385
|
-
folderId:
|
|
1360
|
+
excludes: g.map((y) => b(y).id),
|
|
1361
|
+
folderId: b(x).id,
|
|
1386
1362
|
start: 0
|
|
1387
1363
|
}), { data: D } = await this.fetchFolders({
|
|
1388
|
-
excludes: g.map((y) =>
|
|
1389
|
-
folderId:
|
|
1364
|
+
excludes: g.map((y) => b(y).id),
|
|
1365
|
+
folderId: b(x).id,
|
|
1390
1366
|
limit: m || 10,
|
|
1391
1367
|
start: 0
|
|
1392
1368
|
});
|
|
1393
1369
|
D.forEach((y) => {
|
|
1394
|
-
|
|
1395
|
-
|
|
1370
|
+
r.add(
|
|
1371
|
+
j({ id: y.id, path: y.fullPath })
|
|
1396
1372
|
);
|
|
1397
|
-
}),
|
|
1373
|
+
}), r.delete(x);
|
|
1398
1374
|
}
|
|
1399
1375
|
}
|
|
1400
|
-
const
|
|
1401
|
-
this.updateActiveFolderIdentifiers(
|
|
1402
|
-
(x) => [...
|
|
1403
|
-
const g =
|
|
1404
|
-
return
|
|
1376
|
+
const d = Array.from(r);
|
|
1377
|
+
this.updateActiveFolderIdentifiers(d), this.removedIds = d.filter(
|
|
1378
|
+
(x) => [...d].some((C) => {
|
|
1379
|
+
const g = b(x), m = b(C), D = R(m.path);
|
|
1380
|
+
return C !== x && g.path.startsWith(D);
|
|
1405
1381
|
})
|
|
1406
1382
|
), e(), this.isAddingRootIDs = !1;
|
|
1407
1383
|
}, i = (s) => {
|
|
1408
|
-
const
|
|
1409
|
-
this.searchText = (
|
|
1384
|
+
const r = s.target;
|
|
1385
|
+
this.searchText = (r.value ?? "").trim();
|
|
1410
1386
|
};
|
|
1411
1387
|
return o`<cx-dialog class="select-folders-popup" no-header @cx-after-hide=${e} .boundary=${this.container}><cx-input autofocus clearable @cx-input=${i} value=${this.searchText} placeholder=${this.localize.term("search")}><cx-icon name="search" slot="prefix"></cx-icon></cx-input>${this.renderSelectableFolderTree()}<div class="select-folders-popup__actions"><cx-button ?loading=${this.isAddingRootIDs} variant="primary" @click=${a}>${this.localize.term("add")}</cx-button></div></cx-dialog><cx-button data-testid="settings__select-folders-button" @click=${t}><cx-icon name="folder" slot="prefix"></cx-icon>${this.localize.term("selectFolders")}</cx-button>`;
|
|
1412
1388
|
}
|
|
@@ -1416,24 +1392,24 @@ let r = class extends W {
|
|
|
1416
1392
|
}
|
|
1417
1393
|
renderRootFolderTree() {
|
|
1418
1394
|
if (!this.rootIDs.length)
|
|
1419
|
-
return
|
|
1395
|
+
return wt;
|
|
1420
1396
|
const t = this.rootIDs.filter(
|
|
1421
1397
|
(i) => !this.removedIds.includes(i)
|
|
1422
1398
|
), e = (i) => {
|
|
1423
1399
|
this.updateActiveFolderIdentifiers(
|
|
1424
1400
|
t.filter(
|
|
1425
|
-
(s) =>
|
|
1401
|
+
(s) => b(s).id !== i
|
|
1426
1402
|
)
|
|
1427
1403
|
), this.folderTree.rootIDs = this.rootIDs, this.folderTree.resetTree();
|
|
1428
1404
|
}, a = (i) => {
|
|
1429
|
-
const { id: s, path:
|
|
1405
|
+
const { id: s, path: r } = b(i), d = () => {
|
|
1430
1406
|
e(s);
|
|
1431
1407
|
};
|
|
1432
|
-
return o`<cx-tree-item data-id=${s} class=${
|
|
1408
|
+
return o`<cx-tree-item data-id=${s} class=${S({
|
|
1433
1409
|
"folder-tree__item": !0
|
|
1434
|
-
})}><div class="folder-tree__label"><cx-icon class="folder-tree__icon" name="folder"></cx-icon><cx-line-clamp lines="1" class="folder-tree__label__value">${
|
|
1410
|
+
})}><div class="folder-tree__label"><cx-icon class="folder-tree__icon" name="folder"></cx-icon><cx-line-clamp lines="1" class="folder-tree__label__value">${r}</cx-line-clamp></div><cx-tooltip slot="actions" content=${this.localize.term("removeFolder", 1)} hoist><cx-icon-button @click=${d} name="close"></cx-icon-button></cx-tooltip></cx-tree-item>`;
|
|
1435
1411
|
};
|
|
1436
|
-
return o`<div data-testid="root-folder-tree" class="folder-tree"><cx-tree selection="none">${
|
|
1412
|
+
return o`<div data-testid="root-folder-tree" class="folder-tree"><cx-tree selection="none">${F(
|
|
1437
1413
|
t,
|
|
1438
1414
|
(i) => i,
|
|
1439
1415
|
(i) => a(i)
|
|
@@ -1530,18 +1506,18 @@ let r = class extends W {
|
|
|
1530
1506
|
case "error":
|
|
1531
1507
|
return o`<cx-icon variant="filled" name="error"></cx-icon>`;
|
|
1532
1508
|
}
|
|
1533
|
-
}, i = o`<div class=${
|
|
1509
|
+
}, i = o`<div class=${S({
|
|
1534
1510
|
"connection-status": !0,
|
|
1535
1511
|
"connection-status--bad": this.connectionStatus === "bad",
|
|
1536
1512
|
"connection-status--excellent": this.connectionStatus === "excellent",
|
|
1537
1513
|
"connection-status--good": this.connectionStatus === "good"
|
|
1538
1514
|
})}><cx-typography class="label" variant="small">${this.localize.term("connection")}</cx-typography><cx-tooltip class="connection-status__tooltip" content=${this.connectionStatusTooltip} hoist ?disabled=${!this.connectionStatusTooltip.trim()}><div class="connection-status__value"><cx-typography variant="small">${this.connectionStatus}</cx-typography>${e()}</div></cx-tooltip></div>`, s = this.settings.cacheUsage >= this.settings.cacheSize;
|
|
1539
|
-
return o`<cx-divider class="status-footer__divider"></cx-divider><div class="status-footer"><div class="connected-url"><cx-typography class="label" variant="small">${this.localize.term("connectedTo")}</cx-typography><cx-line-clamp class="value-line-clamp" lines="1"><cx-typography class="value" variant="small">${this.settings.config.siteUrl}</cx-typography></cx-line-clamp></div>${i}<div class=${
|
|
1515
|
+
return o`<cx-divider class="status-footer__divider"></cx-divider><div class="status-footer"><div class="connected-url"><cx-typography class="label" variant="small">${this.localize.term("connectedTo")}</cx-typography><cx-line-clamp class="value-line-clamp" lines="1"><cx-typography class="value" variant="small">${this.settings.config.siteUrl}</cx-typography></cx-line-clamp></div>${i}<div class=${S({
|
|
1540
1516
|
"asset-index-sync-status": !0,
|
|
1541
1517
|
"asset-index-sync-status--error": this.assetIndexSyncStatus === "error",
|
|
1542
1518
|
"asset-index-sync-status--loaded": this.assetIndexSyncStatus === "loaded",
|
|
1543
1519
|
"asset-index-sync-status--loading": this.assetIndexSyncStatus === "loading"
|
|
1544
|
-
})}><cx-typography class="label" variant="small">${this.localize.term("assetIndexSync")}</cx-typography><div class="value"><cx-typography variant="small">${
|
|
1520
|
+
})}><cx-typography class="label" variant="small">${this.localize.term("assetIndexSync")}</cx-typography><div class="value"><cx-typography variant="small">${Qt[this.assetIndexSyncStatus]}</cx-typography>${a()}</div></div><div class="cache-usage"><cx-typography class="label" variant="small">${this.localize.term("cache")}</cx-typography><cx-tooltip ?disabled=${!s} content=${this.localize.term("cacheUsageWarning")}><cx-space spacing="3x-small"><cx-line-clamp class="value-line-clamp" lines="1"><cx-typography class="value" variant="small"><cx-format-bytes value=${this.settings.cacheUsage}></cx-format-bytes>
|
|
1545
1521
|
/
|
|
1546
1522
|
<cx-format-bytes value=${this.settings.cacheSize}></cx-format-bytes></cx-typography></cx-line-clamp>${p(s, () => o`<cx-icon class="cache-usage__warning-icon" name="warning" variant="filled"></cx-icon>`)}</cx-space></cx-tooltip></div>${p(this.assetIndexSyncStatus === "error", () => t)}</div>`;
|
|
1547
1523
|
}
|
|
@@ -1551,10 +1527,10 @@ let r = class extends W {
|
|
|
1551
1527
|
X(e) || (this.validConnectionUrl = !1);
|
|
1552
1528
|
}
|
|
1553
1529
|
renderWelcomeView() {
|
|
1554
|
-
return o`<div class="welcome"><div class="welcome__message"><cx-typography variant="h5">${this.localize.term("welcomeToFileOnDemand")}</cx-typography><cx-typography variant="body3">${this.localize.term("enterYourSiteUrlToConnect")}</cx-typography></div><form class="welcome__actions" @submit=${this.connect}><cx-input aria-label=${this.localize.term("connectionURLInput")} class="welcome__input" placeholder="Ex: https://cortex.orangelogic.com/" value=${this.settings.config.siteUrl} @cx-input=${this.handleConnectionURLInput}></cx-input><cx-tooltip class="welcome__connect-button__tooltip" ?disabled=${this.siteUrl.trim() && this.validConnectionUrl} content=${this.siteUrl.trim() ? this.localize.term("pleaseEnterAValidUrl") : this.localize.term("connectionCannotBeEmpty")}><cx-button type="submit" ?loading=${this.isConnecting} variant="primary" class=${
|
|
1530
|
+
return o`<div class="welcome"><div class="welcome__message"><cx-typography variant="h5">${this.localize.term("welcomeToFileOnDemand")}</cx-typography><cx-typography variant="body3">${this.localize.term("enterYourSiteUrlToConnect")}</cx-typography></div><form class="welcome__actions" @submit=${this.connect}><cx-input aria-label=${this.localize.term("connectionURLInput")} class="welcome__input" placeholder="Ex: https://cortex.orangelogic.com/" value=${this.settings.config.siteUrl} @cx-input=${this.handleConnectionURLInput}></cx-input><cx-tooltip class="welcome__connect-button__tooltip" ?disabled=${this.siteUrl.trim() && this.validConnectionUrl} content=${this.siteUrl.trim() ? this.localize.term("pleaseEnterAValidUrl") : this.localize.term("connectionCannotBeEmpty")}><cx-button type="submit" ?loading=${this.isConnecting} variant="primary" class=${S({
|
|
1555
1531
|
"welcome__connect-button": !0,
|
|
1556
1532
|
"welcome__connect-button--disabled": !this.siteUrl.trim() || !this.validConnectionUrl
|
|
1557
|
-
})} ?disabled=${!this.siteUrl.trim() || !this.validConnectionUrl}>${this.localize.term("connect")}</cx-button></cx-tooltip><cx-button type="button" ?loading=${this.isCancellingConnection} variant="text" class=${
|
|
1533
|
+
})} ?disabled=${!this.siteUrl.trim() || !this.validConnectionUrl}>${this.localize.term("connect")}</cx-button></cx-tooltip><cx-button type="button" ?loading=${this.isCancellingConnection} variant="text" class=${S({
|
|
1558
1534
|
"welcome__cancel-connection-button": !0
|
|
1559
1535
|
})} ?disabled=${!this.isConnecting} @click=${this.cancelConnection}>${this.localize.term("cancel")}</cx-button><cx-typography class="error-message" variant="body3">${p(
|
|
1560
1536
|
this.connectError,
|
|
@@ -1569,7 +1545,7 @@ let r = class extends W {
|
|
|
1569
1545
|
return o`<div class="loading-overlay"><cx-spinner></cx-spinner></div>`;
|
|
1570
1546
|
}
|
|
1571
1547
|
render() {
|
|
1572
|
-
return o`<div class=${
|
|
1548
|
+
return o`<div class=${S({
|
|
1573
1549
|
container: !0,
|
|
1574
1550
|
"container--connected": this.connectionEstablished,
|
|
1575
1551
|
"container--user-interaction-blocked": this.userInteractionBlocked
|
|
@@ -1578,27 +1554,27 @@ let r = class extends W {
|
|
|
1578
1554
|
}
|
|
1579
1555
|
// #endregion
|
|
1580
1556
|
};
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
"cx-avatar":
|
|
1584
|
-
"cx-button":
|
|
1557
|
+
n.styles = fe;
|
|
1558
|
+
n.dependencies = {
|
|
1559
|
+
"cx-avatar": Tt,
|
|
1560
|
+
"cx-button": zt,
|
|
1585
1561
|
"cx-confirm-popover": jt,
|
|
1586
|
-
"cx-dialog":
|
|
1587
|
-
"cx-divider":
|
|
1562
|
+
"cx-dialog": Pt,
|
|
1563
|
+
"cx-divider": Et,
|
|
1588
1564
|
"cx-file-on-demand-asset": L,
|
|
1589
1565
|
"cx-folder-tree": v,
|
|
1590
1566
|
"cx-format-bytes": nt,
|
|
1591
1567
|
"cx-icon": tt,
|
|
1592
1568
|
"cx-icon-button": vt,
|
|
1593
|
-
"cx-input":
|
|
1569
|
+
"cx-input": Lt,
|
|
1594
1570
|
"cx-line-clamp": et,
|
|
1595
1571
|
"cx-option": Ut,
|
|
1596
1572
|
"cx-relative-time": yt,
|
|
1597
|
-
"cx-select":
|
|
1598
|
-
"cx-space":
|
|
1599
|
-
"cx-tab":
|
|
1600
|
-
"cx-tab-group":
|
|
1601
|
-
"cx-tab-panel":
|
|
1573
|
+
"cx-select": Ft,
|
|
1574
|
+
"cx-space": Rt,
|
|
1575
|
+
"cx-tab": kt,
|
|
1576
|
+
"cx-tab-group": Ot,
|
|
1577
|
+
"cx-tab-panel": Nt,
|
|
1602
1578
|
"cx-tooltip": bt,
|
|
1603
1579
|
"cx-tree": ft,
|
|
1604
1580
|
"cx-tree-item": mt,
|
|
@@ -1606,88 +1582,88 @@ r.dependencies = {
|
|
|
1606
1582
|
};
|
|
1607
1583
|
c([
|
|
1608
1584
|
P(".container")
|
|
1609
|
-
],
|
|
1585
|
+
], n.prototype, "container", 2);
|
|
1610
1586
|
c([
|
|
1611
1587
|
P("cx-folder-tree")
|
|
1612
|
-
],
|
|
1588
|
+
], n.prototype, "folderTree", 2);
|
|
1613
1589
|
c([
|
|
1614
1590
|
P("cx-dialog")
|
|
1615
|
-
],
|
|
1591
|
+
], n.prototype, "dialog", 2);
|
|
1616
1592
|
c([
|
|
1617
1593
|
P(".recent__list")
|
|
1618
|
-
],
|
|
1594
|
+
], n.prototype, "recentAssetsList", 2);
|
|
1619
1595
|
c([
|
|
1620
1596
|
P(".favorites__list")
|
|
1621
|
-
],
|
|
1597
|
+
], n.prototype, "favoritesAssetsList", 2);
|
|
1622
1598
|
c([
|
|
1623
1599
|
P(".uploads__list")
|
|
1624
|
-
],
|
|
1600
|
+
], n.prototype, "uploadsAssetsList", 2);
|
|
1625
1601
|
c([
|
|
1626
1602
|
P(".pinned__list")
|
|
1627
|
-
],
|
|
1603
|
+
], n.prototype, "pinnedAssetsList", 2);
|
|
1628
1604
|
c([
|
|
1629
1605
|
P(".assets-list__tab-group")
|
|
1630
|
-
],
|
|
1606
|
+
], n.prototype, "assetsListTabGroup", 2);
|
|
1631
1607
|
c([
|
|
1632
1608
|
P(".settings__cache__location__value__text")
|
|
1633
|
-
],
|
|
1609
|
+
], n.prototype, "cacheLocationValueText", 2);
|
|
1634
1610
|
c([
|
|
1635
|
-
|
|
1611
|
+
l({
|
|
1636
1612
|
attribute: "connection-established",
|
|
1637
1613
|
type: Boolean
|
|
1638
1614
|
})
|
|
1639
|
-
],
|
|
1615
|
+
], n.prototype, "connectionEstablished", 2);
|
|
1640
1616
|
c([
|
|
1641
|
-
|
|
1617
|
+
l({
|
|
1642
1618
|
attribute: "connection-status",
|
|
1643
1619
|
reflect: !0,
|
|
1644
1620
|
type: String
|
|
1645
1621
|
})
|
|
1646
|
-
],
|
|
1622
|
+
], n.prototype, "connectionStatus", 2);
|
|
1647
1623
|
c([
|
|
1648
|
-
|
|
1624
|
+
l({
|
|
1649
1625
|
attribute: "connection-status-tooltip",
|
|
1650
1626
|
type: String
|
|
1651
1627
|
})
|
|
1652
|
-
],
|
|
1628
|
+
], n.prototype, "connectionStatusTooltip", 2);
|
|
1653
1629
|
c([
|
|
1654
|
-
|
|
1630
|
+
l({
|
|
1655
1631
|
attribute: "asset-index-sync-status",
|
|
1656
1632
|
reflect: !0,
|
|
1657
1633
|
type: String
|
|
1658
1634
|
})
|
|
1659
|
-
],
|
|
1635
|
+
], n.prototype, "assetIndexSyncStatus", 2);
|
|
1660
1636
|
c([
|
|
1661
|
-
|
|
1637
|
+
l({
|
|
1662
1638
|
attribute: "user-avatar-url",
|
|
1663
1639
|
type: String
|
|
1664
1640
|
})
|
|
1665
|
-
],
|
|
1641
|
+
], n.prototype, "userAvatarUrl", 2);
|
|
1666
1642
|
c([
|
|
1667
|
-
|
|
1643
|
+
l({
|
|
1668
1644
|
type: String
|
|
1669
1645
|
})
|
|
1670
|
-
],
|
|
1646
|
+
], n.prototype, "username", 2);
|
|
1671
1647
|
c([
|
|
1672
|
-
|
|
1648
|
+
l({
|
|
1673
1649
|
attribute: "recent-assets",
|
|
1674
1650
|
type: Object
|
|
1675
1651
|
})
|
|
1676
|
-
],
|
|
1652
|
+
], n.prototype, "recentAssets", 2);
|
|
1677
1653
|
c([
|
|
1678
|
-
|
|
1654
|
+
l({
|
|
1679
1655
|
attribute: "favorite-assets",
|
|
1680
1656
|
type: Object
|
|
1681
1657
|
})
|
|
1682
|
-
],
|
|
1658
|
+
], n.prototype, "favoriteAssets", 2);
|
|
1683
1659
|
c([
|
|
1684
|
-
|
|
1660
|
+
l({
|
|
1685
1661
|
attribute: "favorite-last-sync",
|
|
1686
1662
|
type: Number
|
|
1687
1663
|
})
|
|
1688
|
-
],
|
|
1664
|
+
], n.prototype, "favoritesLastSync", 2);
|
|
1689
1665
|
c([
|
|
1690
|
-
|
|
1666
|
+
l({
|
|
1691
1667
|
attribute: "favorite-in-progress-assets",
|
|
1692
1668
|
converter: {
|
|
1693
1669
|
fromAttribute: (t) => t.split(" ").filter(Boolean),
|
|
@@ -1695,9 +1671,9 @@ c([
|
|
|
1695
1671
|
},
|
|
1696
1672
|
type: String
|
|
1697
1673
|
})
|
|
1698
|
-
],
|
|
1674
|
+
], n.prototype, "favoriteInProgressAssets", 2);
|
|
1699
1675
|
c([
|
|
1700
|
-
|
|
1676
|
+
l({
|
|
1701
1677
|
attribute: "pin-in-progress-assets",
|
|
1702
1678
|
converter: {
|
|
1703
1679
|
fromAttribute: (t) => t.split(" ").filter(Boolean),
|
|
@@ -1705,170 +1681,170 @@ c([
|
|
|
1705
1681
|
},
|
|
1706
1682
|
type: String
|
|
1707
1683
|
})
|
|
1708
|
-
],
|
|
1684
|
+
], n.prototype, "pinInProgressAssets", 2);
|
|
1709
1685
|
c([
|
|
1710
|
-
|
|
1686
|
+
l({
|
|
1711
1687
|
attribute: "uploading-assets",
|
|
1712
1688
|
type: Object
|
|
1713
1689
|
})
|
|
1714
|
-
],
|
|
1690
|
+
], n.prototype, "uploadingAssets", 2);
|
|
1715
1691
|
c([
|
|
1716
|
-
|
|
1692
|
+
l({
|
|
1717
1693
|
attribute: "pinned-assets",
|
|
1718
1694
|
type: Object
|
|
1719
1695
|
})
|
|
1720
|
-
],
|
|
1696
|
+
], n.prototype, "pinnedAssets", 2);
|
|
1721
1697
|
c([
|
|
1722
1698
|
h()
|
|
1723
|
-
],
|
|
1699
|
+
], n.prototype, "availableFolderIdentifiers", 2);
|
|
1724
1700
|
c([
|
|
1725
1701
|
h()
|
|
1726
|
-
],
|
|
1702
|
+
], n.prototype, "isLoading", 2);
|
|
1727
1703
|
c([
|
|
1728
|
-
|
|
1704
|
+
l({
|
|
1729
1705
|
attribute: "settings",
|
|
1730
1706
|
type: Object
|
|
1731
1707
|
})
|
|
1732
|
-
],
|
|
1708
|
+
], n.prototype, "settings", 2);
|
|
1733
1709
|
c([
|
|
1734
|
-
|
|
1735
|
-
],
|
|
1710
|
+
l({ attribute: "pick-cache-location", type: Function })
|
|
1711
|
+
], n.prototype, "pickCacheLocation", 2);
|
|
1736
1712
|
c([
|
|
1737
|
-
|
|
1713
|
+
l({
|
|
1738
1714
|
attribute: "has-new-version",
|
|
1739
1715
|
type: Boolean
|
|
1740
1716
|
})
|
|
1741
|
-
],
|
|
1717
|
+
], n.prototype, "hasNewVersion", 2);
|
|
1742
1718
|
c([
|
|
1743
|
-
|
|
1719
|
+
l({
|
|
1744
1720
|
attribute: "about-content",
|
|
1745
1721
|
type: String
|
|
1746
1722
|
})
|
|
1747
|
-
],
|
|
1723
|
+
], n.prototype, "aboutContent", 2);
|
|
1748
1724
|
c([
|
|
1749
|
-
|
|
1750
|
-
],
|
|
1725
|
+
l({ type: String })
|
|
1726
|
+
], n.prototype, "token", 2);
|
|
1751
1727
|
c([
|
|
1752
|
-
|
|
1728
|
+
l({
|
|
1753
1729
|
attribute: "user-interaction-blocked",
|
|
1754
1730
|
type: Boolean
|
|
1755
1731
|
})
|
|
1756
|
-
],
|
|
1732
|
+
], n.prototype, "userInteractionBlocked", 2);
|
|
1757
1733
|
c([
|
|
1758
|
-
|
|
1734
|
+
l({
|
|
1759
1735
|
attribute: "is-connecting",
|
|
1760
1736
|
type: Boolean
|
|
1761
1737
|
})
|
|
1762
|
-
],
|
|
1738
|
+
], n.prototype, "isConnecting", 2);
|
|
1763
1739
|
c([
|
|
1764
|
-
|
|
1740
|
+
l({
|
|
1765
1741
|
attribute: "is-cancelling-connection",
|
|
1766
1742
|
type: Boolean
|
|
1767
1743
|
})
|
|
1768
|
-
],
|
|
1744
|
+
], n.prototype, "isCancellingConnection", 2);
|
|
1769
1745
|
c([
|
|
1770
|
-
|
|
1746
|
+
l({
|
|
1771
1747
|
attribute: "is-disconnecting",
|
|
1772
1748
|
type: Boolean
|
|
1773
1749
|
})
|
|
1774
|
-
],
|
|
1750
|
+
], n.prototype, "isDisconnecting", 2);
|
|
1775
1751
|
c([
|
|
1776
|
-
|
|
1752
|
+
l({
|
|
1777
1753
|
attribute: "is-upgrading",
|
|
1778
1754
|
type: Boolean
|
|
1779
1755
|
})
|
|
1780
|
-
],
|
|
1756
|
+
], n.prototype, "isUpgrading", 2);
|
|
1781
1757
|
c([
|
|
1782
1758
|
h()
|
|
1783
|
-
],
|
|
1759
|
+
], n.prototype, "isSettingsOpened", 2);
|
|
1784
1760
|
c([
|
|
1785
1761
|
h()
|
|
1786
|
-
],
|
|
1762
|
+
], n.prototype, "rootIDs", 2);
|
|
1787
1763
|
c([
|
|
1788
1764
|
h()
|
|
1789
|
-
],
|
|
1765
|
+
], n.prototype, "_activeFoldersMode", 2);
|
|
1790
1766
|
c([
|
|
1791
1767
|
h()
|
|
1792
|
-
],
|
|
1768
|
+
], n.prototype, "removedIds", 2);
|
|
1793
1769
|
c([
|
|
1794
1770
|
h()
|
|
1795
|
-
],
|
|
1771
|
+
], n.prototype, "cacheSize", 2);
|
|
1796
1772
|
c([
|
|
1797
1773
|
h()
|
|
1798
|
-
],
|
|
1774
|
+
], n.prototype, "cacheLocation", 2);
|
|
1799
1775
|
c([
|
|
1800
1776
|
h()
|
|
1801
|
-
],
|
|
1777
|
+
], n.prototype, "proxyTypes", 2);
|
|
1802
1778
|
c([
|
|
1803
1779
|
h()
|
|
1804
|
-
],
|
|
1780
|
+
], n.prototype, "siteUrl", 2);
|
|
1805
1781
|
c([
|
|
1806
1782
|
h()
|
|
1807
|
-
],
|
|
1783
|
+
], n.prototype, "isRecentAssetsLoading", 2);
|
|
1808
1784
|
c([
|
|
1809
1785
|
h()
|
|
1810
|
-
],
|
|
1786
|
+
], n.prototype, "isFavoriteAssetsLoading", 2);
|
|
1811
1787
|
c([
|
|
1812
1788
|
h()
|
|
1813
|
-
],
|
|
1789
|
+
], n.prototype, "isUploadingAssetsLoading", 2);
|
|
1814
1790
|
c([
|
|
1815
1791
|
h()
|
|
1816
|
-
],
|
|
1792
|
+
], n.prototype, "isPinnedAssetsLoading", 2);
|
|
1817
1793
|
c([
|
|
1818
1794
|
h()
|
|
1819
|
-
],
|
|
1795
|
+
], n.prototype, "connectError", 2);
|
|
1820
1796
|
c([
|
|
1821
1797
|
h()
|
|
1822
|
-
],
|
|
1798
|
+
], n.prototype, "disconnectError", 2);
|
|
1823
1799
|
c([
|
|
1824
1800
|
h()
|
|
1825
|
-
],
|
|
1801
|
+
], n.prototype, "upgradeError", 2);
|
|
1826
1802
|
c([
|
|
1827
1803
|
h()
|
|
1828
|
-
],
|
|
1804
|
+
], n.prototype, "totalCount", 2);
|
|
1829
1805
|
c([
|
|
1830
1806
|
h()
|
|
1831
|
-
],
|
|
1807
|
+
], n.prototype, "folderPathsSet", 2);
|
|
1832
1808
|
c([
|
|
1833
1809
|
h()
|
|
1834
|
-
],
|
|
1810
|
+
], n.prototype, "validConnectionUrl", 2);
|
|
1835
1811
|
c([
|
|
1836
1812
|
h()
|
|
1837
|
-
],
|
|
1813
|
+
], n.prototype, "isAddingRootIDs", 2);
|
|
1838
1814
|
c([
|
|
1839
1815
|
z(["connectionEstablished", "token"])
|
|
1840
|
-
],
|
|
1816
|
+
], n.prototype, "fetchData", 1);
|
|
1841
1817
|
c([
|
|
1842
1818
|
z(["connectionEstablished"])
|
|
1843
|
-
],
|
|
1819
|
+
], n.prototype, "showRecentTab", 1);
|
|
1844
1820
|
c([
|
|
1845
1821
|
z("settings")
|
|
1846
|
-
],
|
|
1822
|
+
], n.prototype, "updateSettingsStates", 1);
|
|
1847
1823
|
c([
|
|
1848
1824
|
z("recentAssets")
|
|
1849
|
-
],
|
|
1825
|
+
], n.prototype, "onRecentAssetsChanged", 1);
|
|
1850
1826
|
c([
|
|
1851
1827
|
z("pinnedAssets")
|
|
1852
|
-
],
|
|
1828
|
+
], n.prototype, "onPinnedAssetsChanged", 1);
|
|
1853
1829
|
c([
|
|
1854
1830
|
z("favoriteAssets")
|
|
1855
|
-
],
|
|
1831
|
+
], n.prototype, "onFavoriteAssetsChanged", 1);
|
|
1856
1832
|
c([
|
|
1857
1833
|
z("uploadingAssets")
|
|
1858
|
-
],
|
|
1834
|
+
], n.prototype, "onUploadingAssetsChanged", 1);
|
|
1859
1835
|
c([
|
|
1860
1836
|
h()
|
|
1861
|
-
],
|
|
1837
|
+
], n.prototype, "searchText", 2);
|
|
1862
1838
|
c([
|
|
1863
1839
|
z(["searchText"]),
|
|
1864
|
-
|
|
1865
|
-
],
|
|
1840
|
+
Bt(200)
|
|
1841
|
+
], n.prototype, "onSearch", 1);
|
|
1866
1842
|
c([
|
|
1867
1843
|
z("cacheLocation")
|
|
1868
|
-
],
|
|
1869
|
-
|
|
1844
|
+
], n.prototype, "handleCacheLocationChange", 1);
|
|
1845
|
+
n = c([
|
|
1870
1846
|
q("cx-file-on-demand")
|
|
1871
|
-
],
|
|
1847
|
+
], n);
|
|
1872
1848
|
export {
|
|
1873
|
-
|
|
1849
|
+
n as default
|
|
1874
1850
|
};
|