@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
|
@@ -3,7 +3,7 @@ import { c as O } from "./component.styles.CRO4Odto.js";
|
|
|
3
3
|
import { c as U } from "./custom-element.L4WJXn1j.js";
|
|
4
4
|
import { L as N } from "./i18n.Bchq8v1d.js";
|
|
5
5
|
import { c as X } from "./math.DuKzLacZ.js";
|
|
6
|
-
import { w as b } from "./watch.
|
|
6
|
+
import { w as b } from "./watch.DJF5K-8U.js";
|
|
7
7
|
import { i as R, x as m, E as T } from "./lit-element.jLBm65_O.js";
|
|
8
8
|
import { r as g } from "./state.CSDxrqLd.js";
|
|
9
9
|
import { e as f } from "./query.BBf1UFkC.js";
|
|
@@ -13,58 +13,58 @@ import { o as _ } from "./if-defined.BRoBj_Rp.js";
|
|
|
13
13
|
import { l as j } from "./live.DCegntDo.js";
|
|
14
14
|
import { n as y } from "./when.Dr1es41R.js";
|
|
15
15
|
import { g as $, s as G } from "./animation-registry.HmpwNuGH.js";
|
|
16
|
-
import
|
|
17
|
-
import { C as V } from "./icon.
|
|
16
|
+
import K from "../components/checkbox.js";
|
|
17
|
+
import { C as V } from "./icon.D5iM9wXS.js";
|
|
18
18
|
import W from "../components/line-clamp.js";
|
|
19
19
|
import Y from "../components/spinner.js";
|
|
20
20
|
import { i as J } from "./browser.BHOCIF_A.js";
|
|
21
21
|
import { S as Q } from "./sortable.esm.oSzf6C5Q.js";
|
|
22
22
|
import { v as ee } from "./v4.CKZ6klMF.js";
|
|
23
23
|
function te(e, t, i) {
|
|
24
|
-
let
|
|
25
|
-
return function(...
|
|
26
|
-
const
|
|
27
|
-
|
|
24
|
+
let a;
|
|
25
|
+
return function(...r) {
|
|
26
|
+
const n = this, d = function() {
|
|
27
|
+
a = null, e.apply(n, r);
|
|
28
28
|
};
|
|
29
|
-
|
|
29
|
+
a && clearTimeout(a), a = window.setTimeout(d, t);
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
const ie = R`:host{--selected-color:var(--cx-color-primary-600);--selected-background-color:var(--cx-color-primary-50);--hover-background-color:var(--cx-menu-item-background-color-hover);--active-background-color:var(--cx-color-neutral-200);--item-padding:var(--cx-spacing-2x-small) var(--cx-spacing-x-small);outline:0;display:block}:host(:focus-visible) .tree-item{outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}[hidden]{display:none!important}slot:not([name])::slotted(cx-icon){margin-inline-end:var(--cx-spacing-x-small)}.tree-item{color:var(--cx-color-neutral);cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:stretch;display:flex;position:relative}.tree-item__checkbox{margin-inline-end:var(--cx-spacing-x-small)}.tree-item__expand-button,.tree-item__checkbox,.tree-item__label{font-family:var(--cx-font-sans);font-size:var(--cx-tree-item-font-size,var(--cx-font-size-small));font-weight:var(--cx-tree-item-font-weight,var(--cx-font-weight-medium));line-height:var(--cx-tree-item-line-height,var(--cx-line-height-large));letter-spacing:var(--cx-tree-item-letter-spacing,var(--cx-letter-spacing-normal))}.tree-item__checkbox::part(base){align-items:center;display:flex}.tree-item__checkbox::part(label){margin-inline-start:0}.tree-item__indentation{flex-shrink:0;width:1em;display:block}.tree-item__expand-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tree-item__expand-button{box-sizing:content-box;color:var(--cx-color-neutral-500);cursor:pointer;min-width:max(1em,1rem);min-height:max(1em,1rem);transition:var(--cx-transition-medium) rotate ease;flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.tree-item--expanded .tree-item__expand-button{rotate:90deg}.tree-item--expanded.tree-item--rtl .tree-item__expand-button{rotate:-90deg}.tree-item--expanded slot[name=expand-icon],.tree-item:not(.tree-item--expanded) slot[name=collapse-icon]{display:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item .tree-item__expand-icon-slot{color:var(--selected-color)}.tree-item:not(.tree-item--has-expand-button) .tree-item__expand-icon-slot{visibility:hidden;opacity:0;pointer-events:none}.tree-item__expand-button--visible{cursor:pointer}.tree-item__item{border-radius:var(--cx-border-radius-large);padding:var(--item-padding,var(--cx-spacing-x-small) var(--cx-spacing-small));transition:var(--cx-transition-x-fast) background-color ease;align-items:center;display:flex}.tree-item__item:hover{background-color:var(--hover-background-color)}.tree-item__item:active{background-color:var(--active-background-color)}.tree-item--disabled .tree-item__item{opacity:.5;cursor:default;outline:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{background-color:var(--selected-background-color);color:var(--selected-color)}:host(:not([aria-disabled=true])) .tree-item__expand-button{color:var(--cx-color-neutral)}:host(:not([aria-disabled=true])) .tree-item--selected,:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__expand-button,:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){color:var(--cx-color-neutral-0)}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){--hover-background-color:var(--cx-color-neutral-0)}.tree-item__label{align-items:center;display:flex}.tree-item__actions{font-size:var(--cx-font-size-medium);align-items:center;width:fit-content;margin-inline-start:auto;display:flex}.tree-item__actions::slotted(*){visibility:hidden;opacity:0;transition:var(--cx-transition-x-fast) visibility, var(--cx-transition-x-fast) opacity ease}.tree-item__item:hover .tree-item__actions::slotted(*){visibility:visible;opacity:1}@supports not (overlay:auto){.tree-item__actions::slotted(cx-dropdown[open]){visibility:visible;opacity:1}}.tree-item__children{font-size:calc(1em + var(--indent-size,var(--cx-spacing-medium)));gap:var(--children-gap,0);flex-direction:column;display:flex}@media (forced-colors:active){:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{outline:1px dashed selecteditem}}::slotted(cx-tree-item){--hover-background-color:inherit;--active-background-color:inherit;--selected-background-color:inherit;--selected-color:inherit}:host([data-dragging]){position:relative}:host([data-dragging=inside]){background-color:var(--cx-color-primary-400)}:host([data-dragging=before]):before{content:"";border-top:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;top:0;left:0}:host([data-dragging=after]):before{content:"";border-bottom:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;bottom:0;left:0}`, w = "tree-sortable", C = 0.2, P = (e) => e == null;
|
|
33
|
-
function
|
|
32
|
+
const ie = R`:host{--selected-color:var(--cx-color-primary-600);--selected-background-color:var(--cx-color-primary-50);--hover-background-color:var(--cx-menu-item-background-color-hover);--active-background-color:var(--cx-color-neutral-200);--item-padding:var(--cx-spacing-2x-small) var(--cx-spacing-x-small);outline:0;display:block}:host(:focus-visible) .tree-item{outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}[hidden]{display:none!important}slot:not([name])::slotted(cx-icon){margin-inline-end:var(--cx-spacing-x-small)}.tree-item{color:var(--cx-color-neutral-900);cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:stretch;display:flex;position:relative}.tree-item__checkbox{margin-inline-end:var(--cx-spacing-x-small)}.tree-item__expand-button,.tree-item__checkbox,.tree-item__label{font-family:var(--cx-font-sans);font-size:var(--cx-tree-item-font-size,var(--cx-font-size-small));font-weight:var(--cx-tree-item-font-weight,var(--cx-font-weight-medium));line-height:var(--cx-tree-item-line-height,var(--cx-line-height-large));letter-spacing:var(--cx-tree-item-letter-spacing,var(--cx-letter-spacing-normal))}.tree-item__checkbox::part(base){align-items:center;display:flex}.tree-item__checkbox::part(label){margin-inline-start:0}.tree-item__indentation{flex-shrink:0;width:1em;display:block}.tree-item__expand-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tree-item__expand-button{box-sizing:content-box;color:var(--cx-color-neutral-500);cursor:pointer;min-width:max(1em,1rem);min-height:max(1em,1rem);transition:var(--cx-transition-medium) rotate ease;flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.tree-item--expanded .tree-item__expand-button{rotate:90deg}.tree-item--expanded.tree-item--rtl .tree-item__expand-button{rotate:-90deg}.tree-item--expanded slot[name=expand-icon],.tree-item:not(.tree-item--expanded) slot[name=collapse-icon]{display:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item .tree-item__expand-icon-slot{color:var(--selected-color)}.tree-item:not(.tree-item--has-expand-button) .tree-item__expand-icon-slot{visibility:hidden;opacity:0;pointer-events:none}.tree-item__expand-button--visible{cursor:pointer}.tree-item__item{border-radius:var(--cx-border-radius-large);padding:var(--item-padding,var(--cx-spacing-x-small) var(--cx-spacing-small));transition:var(--cx-transition-x-fast) background-color ease;align-items:center;display:flex}.tree-item__item:hover{background-color:var(--hover-background-color)}.tree-item__item:active{background-color:var(--active-background-color)}.tree-item--disabled .tree-item__item{opacity:.5;cursor:default;outline:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{background-color:var(--selected-background-color);color:var(--selected-color)}:host(:not([aria-disabled=true])) .tree-item__expand-button{color:var(--cx-color-neutral)}:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected,:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__expand-button,:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){color:var(--cx-color-neutral-0)}:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){--hover-background-color:var(--cx-color-neutral-0)}.tree-item__label{align-items:center;display:flex}.tree-item__actions{font-size:var(--cx-font-size-medium);align-items:center;width:fit-content;margin-inline-start:auto;display:flex}.tree-item__actions::slotted(*){visibility:hidden;opacity:0;transition:var(--cx-transition-x-fast) visibility, var(--cx-transition-x-fast) opacity ease}.tree-item__item:hover .tree-item__actions::slotted(*){visibility:visible;opacity:1}@supports not (overlay:auto){.tree-item__actions::slotted(cx-dropdown[open]){visibility:visible;opacity:1}}.tree-item__children{font-size:calc(1em + var(--indent-size,var(--cx-spacing-medium)));gap:var(--children-gap,0);flex-direction:column;display:flex}@media (forced-colors:active){:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{outline:1px dashed selecteditem}}::slotted(cx-tree-item){--hover-background-color:inherit;--active-background-color:inherit;--selected-background-color:inherit;--selected-color:inherit}:host([variant=text]){--selected-background-color:transparent;--selected-color:inherit;--hover-background-color:transparent;--active-background-color:transparent;--hover-color:var(--cx-color-primary)}:host([variant=text]:not([aria-disabled=true])) .tree-item__item:hover{color:var(--hover-color)}:host([data-dragging]){position:relative}:host([data-dragging=inside]){background-color:var(--cx-color-primary-400)}:host([data-dragging=before]):before{content:"";border-top:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;top:0;left:0}:host([data-dragging=after]):before{content:"";border-bottom:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;bottom:0;left:0}`, w = "tree-sortable", C = 0.2, P = (e) => e == null;
|
|
33
|
+
function ae() {
|
|
34
34
|
function e() {
|
|
35
35
|
}
|
|
36
36
|
let t = null;
|
|
37
37
|
return e.prototype = {
|
|
38
38
|
dragOver({
|
|
39
39
|
cancel: i,
|
|
40
|
-
target:
|
|
40
|
+
target: a
|
|
41
41
|
}) {
|
|
42
|
-
if (t && (t.el.removeAttribute("data-dragging"), t = null), !["CX-TREE-ITEM", "CX-TREE"].includes(
|
|
42
|
+
if (t && (t.el.removeAttribute("data-dragging"), t = null), !["CX-TREE-ITEM", "CX-TREE"].includes(a.tagName) || a.hasAttribute("no-drag")) {
|
|
43
43
|
i();
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
dragOverValid({
|
|
48
48
|
activeSortable: i,
|
|
49
|
-
cancel:
|
|
50
|
-
changed:
|
|
51
|
-
completed:
|
|
49
|
+
cancel: a,
|
|
50
|
+
changed: r,
|
|
51
|
+
completed: n,
|
|
52
52
|
dragEl: d,
|
|
53
53
|
originalEvent: u,
|
|
54
54
|
putSortable: x,
|
|
55
55
|
target: p
|
|
56
56
|
}) {
|
|
57
57
|
if (t = null, !i || !i.options[w] || !i.options.getDropZone || P(i.options.insertBeforeZonePercentage) || P(i.options.insertAfterZonePercentage) || !["CX-TREE-ITEM", "CX-TREE"].includes(p.tagName) || p.hasAttribute("no-drag")) {
|
|
58
|
-
|
|
58
|
+
a();
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
const k = i.options.getDropZone(p);
|
|
62
62
|
if (!k) {
|
|
63
|
-
|
|
63
|
+
a();
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
|
-
const A = k.getBoundingClientRect(), B = (u.clientY - A.top) / A.height,
|
|
67
|
-
|
|
66
|
+
const A = k.getBoundingClientRect(), B = (u.clientY - A.top) / A.height, S = x || this.sortable;
|
|
67
|
+
S.captureAnimationState(), S !== i && i.captureAnimationState();
|
|
68
68
|
const q = p.parentNode;
|
|
69
69
|
if (d && q)
|
|
70
70
|
if (B < i.options.insertBeforeZonePercentage)
|
|
@@ -81,7 +81,7 @@ function ne() {
|
|
|
81
81
|
}, p.setAttribute("data-dragging", "after");
|
|
82
82
|
else {
|
|
83
83
|
if (p.hasAttribute("no-drag-inside")) {
|
|
84
|
-
|
|
84
|
+
r(), n(!0), a();
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
87
|
t = {
|
|
@@ -90,16 +90,16 @@ function ne() {
|
|
|
90
90
|
position: 0
|
|
91
91
|
}, p.setAttribute("data-dragging", "inside");
|
|
92
92
|
}
|
|
93
|
-
if (
|
|
94
|
-
|
|
93
|
+
if (S.animateAll(), S !== i && i.animateAll(), t)
|
|
94
|
+
r(), n(!0), a();
|
|
95
95
|
else
|
|
96
96
|
return !0;
|
|
97
97
|
},
|
|
98
98
|
dragStart({
|
|
99
99
|
cancel: i,
|
|
100
|
-
dragEl:
|
|
100
|
+
dragEl: a
|
|
101
101
|
}) {
|
|
102
|
-
if (
|
|
102
|
+
if (a && !o.isTreeItem(a)) {
|
|
103
103
|
i();
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
@@ -114,15 +114,15 @@ function ne() {
|
|
|
114
114
|
pluginName: w
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
class
|
|
117
|
+
class v extends Q {
|
|
118
118
|
constructor(t, i) {
|
|
119
119
|
super(t, i);
|
|
120
120
|
}
|
|
121
121
|
static create(t, i = {}) {
|
|
122
|
-
return new
|
|
122
|
+
return new v(t, i);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
v.mount(new ae());
|
|
126
126
|
const M = (e) => ({
|
|
127
127
|
...e,
|
|
128
128
|
animation: 100,
|
|
@@ -143,10 +143,10 @@ const M = (e) => ({
|
|
|
143
143
|
[w]: !0,
|
|
144
144
|
swapThreshold: C
|
|
145
145
|
});
|
|
146
|
-
var
|
|
147
|
-
for (var
|
|
148
|
-
(d = e[
|
|
149
|
-
return
|
|
146
|
+
var ne = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, s = (e, t, i, a) => {
|
|
147
|
+
for (var r = a > 1 ? void 0 : a ? oe(t, i) : t, n = e.length - 1, d; n >= 0; n--)
|
|
148
|
+
(d = e[n]) && (r = (a ? d(t, i, r) : d(r)) || r);
|
|
149
|
+
return a && r && ne(t, i, r), r;
|
|
150
150
|
};
|
|
151
151
|
let o = class extends F {
|
|
152
152
|
constructor() {
|
|
@@ -271,7 +271,7 @@ let o = class extends F {
|
|
|
271
271
|
this.removeEventListener("dragstart", this.onDragStart), this.sortableInstance && (this.sortableInstance.destroy(), this.sortableInstance = null);
|
|
272
272
|
}
|
|
273
273
|
initSortable() {
|
|
274
|
-
this.addEventListener("dragstart", this.onDragStart), this.focusable || this.setAttribute("tabindex", "-1"), this.sortableInstance =
|
|
274
|
+
this.addEventListener("dragstart", this.onDragStart), this.focusable || this.setAttribute("tabindex", "-1"), this.sortableInstance = v.create(this, {
|
|
275
275
|
...M({
|
|
276
276
|
group: this.sortableGroup,
|
|
277
277
|
onAdd: this.handleSortableUpdate,
|
|
@@ -348,133 +348,136 @@ o.dependencies = {
|
|
|
348
348
|
"cx-line-clamp": W,
|
|
349
349
|
"cx-spinner": Y
|
|
350
350
|
};
|
|
351
|
-
|
|
351
|
+
s([
|
|
352
352
|
f("slot:not([name])")
|
|
353
353
|
], o.prototype, "defaultSlot", 2);
|
|
354
|
-
|
|
354
|
+
s([
|
|
355
355
|
f("slot[name=children]")
|
|
356
356
|
], o.prototype, "childrenSlot", 2);
|
|
357
|
-
|
|
357
|
+
s([
|
|
358
358
|
f(".tree-item__item")
|
|
359
359
|
], o.prototype, "itemElement", 2);
|
|
360
|
-
|
|
360
|
+
s([
|
|
361
361
|
f(".tree-item__children")
|
|
362
362
|
], o.prototype, "childrenContainer", 2);
|
|
363
|
-
|
|
363
|
+
s([
|
|
364
364
|
f(".tree-item__expand-button slot")
|
|
365
365
|
], o.prototype, "expandButtonSlot", 2);
|
|
366
|
-
|
|
366
|
+
s([
|
|
367
367
|
l({ reflect: !0, type: Boolean })
|
|
368
368
|
], o.prototype, "expanded", 2);
|
|
369
|
-
|
|
369
|
+
s([
|
|
370
370
|
l({ reflect: !0, type: Boolean })
|
|
371
371
|
], o.prototype, "selected", 2);
|
|
372
|
-
|
|
372
|
+
s([
|
|
373
373
|
l({ reflect: !0, type: Boolean })
|
|
374
374
|
], o.prototype, "disabled", 2);
|
|
375
|
-
|
|
375
|
+
s([
|
|
376
376
|
l({ reflect: !0, type: Boolean })
|
|
377
377
|
], o.prototype, "readonly", 2);
|
|
378
|
-
|
|
378
|
+
s([
|
|
379
379
|
l({ reflect: !0, type: Boolean })
|
|
380
380
|
], o.prototype, "lazy", 2);
|
|
381
|
-
|
|
381
|
+
s([
|
|
382
382
|
l()
|
|
383
383
|
], o.prototype, "href", 2);
|
|
384
|
-
|
|
384
|
+
s([
|
|
385
385
|
l()
|
|
386
386
|
], o.prototype, "target", 2);
|
|
387
|
-
|
|
387
|
+
s([
|
|
388
388
|
l()
|
|
389
389
|
], o.prototype, "rel", 2);
|
|
390
|
-
|
|
390
|
+
s([
|
|
391
391
|
l()
|
|
392
392
|
], o.prototype, "download", 2);
|
|
393
|
-
|
|
393
|
+
s([
|
|
394
394
|
l({ attribute: "itemid", reflect: !0, type: String })
|
|
395
395
|
], o.prototype, "itemId", 2);
|
|
396
|
-
|
|
396
|
+
s([
|
|
397
397
|
l({ reflect: !0, type: Boolean })
|
|
398
398
|
], o.prototype, "sortable", 2);
|
|
399
|
-
|
|
399
|
+
s([
|
|
400
400
|
l({ attribute: "no-drag", reflect: !0, type: Boolean })
|
|
401
401
|
], o.prototype, "noDrag", 2);
|
|
402
|
-
|
|
402
|
+
s([
|
|
403
403
|
l({ attribute: "no-select", reflect: !0, type: Boolean })
|
|
404
404
|
], o.prototype, "noSelect", 2);
|
|
405
|
-
|
|
405
|
+
s([
|
|
406
406
|
l({ attribute: "no-drag-inside", reflect: !0, type: Boolean })
|
|
407
407
|
], o.prototype, "noDragInside", 2);
|
|
408
|
-
|
|
408
|
+
s([
|
|
409
409
|
l({ attribute: "sortable-group", type: String })
|
|
410
410
|
], o.prototype, "sortableGroup", 2);
|
|
411
|
-
|
|
411
|
+
s([
|
|
412
412
|
l({
|
|
413
413
|
attribute: "expand-button-placement",
|
|
414
414
|
reflect: !0,
|
|
415
415
|
type: String
|
|
416
416
|
})
|
|
417
417
|
], o.prototype, "expandButtonPlacement", 2);
|
|
418
|
-
|
|
418
|
+
s([
|
|
419
419
|
l({ attribute: "no-forward-expand-button-placement", type: Boolean })
|
|
420
420
|
], o.prototype, "noForwardExpandButtonPlacement", 2);
|
|
421
|
-
|
|
421
|
+
s([
|
|
422
|
+
l({ reflect: !0, type: String })
|
|
423
|
+
], o.prototype, "variant", 2);
|
|
424
|
+
s([
|
|
422
425
|
l({
|
|
423
426
|
attribute: "disabled-sync-checkboxes",
|
|
424
427
|
reflect: !0,
|
|
425
428
|
type: Boolean
|
|
426
429
|
})
|
|
427
430
|
], o.prototype, "disabledSyncCheckboxes", 2);
|
|
428
|
-
|
|
431
|
+
s([
|
|
429
432
|
l({
|
|
430
433
|
attribute: "partial-sync-checkboxes",
|
|
431
434
|
reflect: !0,
|
|
432
435
|
type: Boolean
|
|
433
436
|
})
|
|
434
437
|
], o.prototype, "partialSyncCheckboxes", 2);
|
|
435
|
-
|
|
438
|
+
s([
|
|
436
439
|
l({ attribute: "previously-selected", reflect: !0, type: Boolean })
|
|
437
440
|
], o.prototype, "previouslySelected", 2);
|
|
438
|
-
|
|
441
|
+
s([
|
|
439
442
|
l({ reflect: !0, type: Boolean })
|
|
440
443
|
], o.prototype, "focusable", 2);
|
|
441
|
-
|
|
444
|
+
s([
|
|
442
445
|
l({ attribute: "max-lines", type: Number })
|
|
443
446
|
], o.prototype, "maxLines", 2);
|
|
444
|
-
|
|
447
|
+
s([
|
|
445
448
|
g()
|
|
446
449
|
], o.prototype, "indeterminate", 2);
|
|
447
|
-
|
|
450
|
+
s([
|
|
448
451
|
g()
|
|
449
452
|
], o.prototype, "isLeaf", 2);
|
|
450
|
-
|
|
453
|
+
s([
|
|
451
454
|
g()
|
|
452
455
|
], o.prototype, "loading", 2);
|
|
453
|
-
|
|
456
|
+
s([
|
|
454
457
|
g()
|
|
455
458
|
], o.prototype, "selectable", 2);
|
|
456
|
-
|
|
459
|
+
s([
|
|
457
460
|
g()
|
|
458
461
|
], o.prototype, "sortableInstance", 2);
|
|
459
|
-
|
|
462
|
+
s([
|
|
460
463
|
b("loading", { waitUntilFirstUpdate: !0 })
|
|
461
464
|
], o.prototype, "handleLoadingChange", 1);
|
|
462
|
-
|
|
465
|
+
s([
|
|
463
466
|
b("disabled")
|
|
464
467
|
], o.prototype, "handleDisabledChange", 1);
|
|
465
|
-
|
|
468
|
+
s([
|
|
466
469
|
b("selected")
|
|
467
470
|
], o.prototype, "handleSelectedChange", 1);
|
|
468
|
-
|
|
471
|
+
s([
|
|
469
472
|
b("expanded", { waitUntilFirstUpdate: !0 })
|
|
470
473
|
], o.prototype, "handleExpandedChange", 1);
|
|
471
|
-
|
|
474
|
+
s([
|
|
472
475
|
b("expanded", { waitUntilFirstUpdate: !0 })
|
|
473
476
|
], o.prototype, "handleExpandAnimation", 1);
|
|
474
|
-
|
|
477
|
+
s([
|
|
475
478
|
b("lazy", { waitUntilFirstUpdate: !0 })
|
|
476
479
|
], o.prototype, "handleLazyChange", 1);
|
|
477
|
-
o =
|
|
480
|
+
o = s([
|
|
478
481
|
U("cx-tree-item")
|
|
479
482
|
], o);
|
|
480
483
|
G("tree-item.expand", {
|
|
@@ -491,20 +494,20 @@ G("tree-item.collapse", {
|
|
|
491
494
|
],
|
|
492
495
|
options: { duration: 200, easing: "cubic-bezier(0.4, 0.0, 0.2, 1)" }
|
|
493
496
|
});
|
|
494
|
-
const
|
|
495
|
-
var
|
|
496
|
-
for (var
|
|
497
|
-
(d = e[
|
|
498
|
-
return
|
|
497
|
+
const re = R`:host{--indent-guide-color:var(--cx-color-neutral-200);--indent-guide-offset:0;--indent-guide-style:solid;--indent-guide-width:0;--indent-size:var(--cx-spacing-large);font-size:0;display:block}:host::part(children){gap:var(--children-gap,0);flex-direction:column;display:flex}:host([dragging]) ::slotted(cx-tree-item){--hover-background-color:transparent!important;--active-background-color:transparent!important;--selected-background-color:transparent!important}`;
|
|
498
|
+
var se = Object.defineProperty, le = Object.getOwnPropertyDescriptor, h = (e, t, i, a) => {
|
|
499
|
+
for (var r = a > 1 ? void 0 : a ? le(t, i) : t, n = e.length - 1, d; n >= 0; n--)
|
|
500
|
+
(d = e[n]) && (r = (a ? d(t, i, r) : d(r)) || r);
|
|
501
|
+
return a && r && se(t, i, r), r;
|
|
499
502
|
};
|
|
500
503
|
function H(e) {
|
|
501
504
|
const t = e.getChildrenItems({ includeDisabled: !1 });
|
|
502
505
|
if (t.length) {
|
|
503
|
-
const i = t.every((d) => d.selected),
|
|
506
|
+
const i = t.every((d) => d.selected), a = t.every(
|
|
504
507
|
(d) => !d.selected && !d.indeterminate
|
|
505
508
|
);
|
|
506
|
-
let
|
|
507
|
-
(!i && !
|
|
509
|
+
let r = !1, n = !1;
|
|
510
|
+
(!i && !a || e.partialSyncCheckboxes && (i || a && e.previouslySelected)) && (r = !0), e.partialSyncCheckboxes ? n = i && !r : n = i, e.indeterminate = r, e.selected = n;
|
|
508
511
|
}
|
|
509
512
|
}
|
|
510
513
|
function Z(e, t = "single") {
|
|
@@ -512,14 +515,14 @@ function Z(e, t = "single") {
|
|
|
512
515
|
o.isTreeItem(i) && !i.disabledSyncCheckboxes && t === "multiple" && (H(i), Z(i, t));
|
|
513
516
|
}
|
|
514
517
|
function I(e, t = !1, i = "single") {
|
|
515
|
-
function
|
|
516
|
-
if (!(!(
|
|
517
|
-
for (const
|
|
518
|
-
|
|
519
|
-
t && H(
|
|
518
|
+
function a(r) {
|
|
519
|
+
if (!(!(r instanceof o) && r.getAttribute("role") !== "treeitem")) {
|
|
520
|
+
for (const n of r.getChildrenItems())
|
|
521
|
+
n.selected = t ? r.selected || n.selected : !n.disabled && !n.readonly && r.selected, a(n);
|
|
522
|
+
t && H(r);
|
|
520
523
|
}
|
|
521
524
|
}
|
|
522
|
-
!e.disabledSyncCheckboxes && i === "multiple" && (e.partialSyncCheckboxes && (e.selected ? e.previouslySelected = !0 : e.previouslySelected = !1),
|
|
525
|
+
!e.disabledSyncCheckboxes && i === "multiple" && (e.partialSyncCheckboxes && (e.selected ? e.previouslySelected = !0 : e.previouslySelected = !1), a(e)), Z(e, i);
|
|
523
526
|
}
|
|
524
527
|
let c = class extends F {
|
|
525
528
|
constructor() {
|
|
@@ -555,10 +558,10 @@ let c = class extends F {
|
|
|
555
558
|
getExpandButtonIcon(e) {
|
|
556
559
|
const i = (e === "expand" ? this.expandedIconSlot : this.collapsedIconSlot)?.assignedElements({ flatten: !0 })[0];
|
|
557
560
|
if (i) {
|
|
558
|
-
const
|
|
559
|
-
return [
|
|
560
|
-
(
|
|
561
|
-
),
|
|
561
|
+
const a = i.cloneNode(!0);
|
|
562
|
+
return [a, ...a.querySelectorAll("[id]")].forEach(
|
|
563
|
+
(r) => r.removeAttribute("id")
|
|
564
|
+
), a.setAttribute("data-default", ""), a.slot = `${e}-icon`, a;
|
|
562
565
|
}
|
|
563
566
|
return null;
|
|
564
567
|
}
|
|
@@ -566,9 +569,9 @@ let c = class extends F {
|
|
|
566
569
|
* Initializes new items by setting the `selectable` property and the expanded/collapsed icons if any
|
|
567
570
|
*/
|
|
568
571
|
initTreeItem(e) {
|
|
569
|
-
this.noForwardExpandButtonPlacement || (e.expandButtonPlacement = this.expandButtonPlacement), e.selectable = this.selection === "multiple", e.focusable = this.focusable, ["expand", "collapse"].filter((t) => !!this.querySelector(`[slot="${t}-icon"]`)).forEach((t) => {
|
|
570
|
-
const i = e.querySelector(`[slot="${t}-icon"]`),
|
|
571
|
-
|
|
572
|
+
this.noForwardExpandButtonPlacement || (e.expandButtonPlacement = this.expandButtonPlacement), e.variant = this.variant, e.selectable = this.selection === "multiple", e.focusable = this.focusable, ["expand", "collapse"].filter((t) => !!this.querySelector(`[slot="${t}-icon"]`)).forEach((t) => {
|
|
573
|
+
const i = e.querySelector(`[slot="${t}-icon"]`), a = this.getExpandButtonIcon(t);
|
|
574
|
+
a && (i === null ? e.append(a) : i.hasAttribute("data-default") && i.replaceWith(a));
|
|
572
575
|
}), this.sortable ? (e.sortable = !0, e.sortableGroup = this.getSortableGroup(), this.noDragInside && (e.noDragInside = !0)) : e.sortable = !1;
|
|
573
576
|
}
|
|
574
577
|
initTreeItems() {
|
|
@@ -578,10 +581,10 @@ let c = class extends F {
|
|
|
578
581
|
for (const t of e) {
|
|
579
582
|
const i = [...t.addedNodes].filter(
|
|
580
583
|
o.isTreeItem
|
|
581
|
-
),
|
|
584
|
+
), a = [...t.removedNodes].filter(
|
|
582
585
|
o.isTreeItem
|
|
583
586
|
);
|
|
584
|
-
i.forEach(this.initTreeItem), this.lastFocusedItem &&
|
|
587
|
+
i.forEach(this.initTreeItem), this.lastFocusedItem && a.includes(this.lastFocusedItem) && (this.lastFocusedItem = null);
|
|
585
588
|
}
|
|
586
589
|
}
|
|
587
590
|
/**
|
|
@@ -591,21 +594,21 @@ let c = class extends F {
|
|
|
591
594
|
* @param isSingleSelect - Optional flag to force the item to be selected and unselect all other items.
|
|
592
595
|
*/
|
|
593
596
|
async selectItem(e, t = !1) {
|
|
594
|
-
const i = [...this.selectedItems],
|
|
597
|
+
const i = [...this.selectedItems], a = this.getAllTreeItems();
|
|
595
598
|
if (this.selection === "multiple")
|
|
596
599
|
t && await Promise.all(
|
|
597
|
-
|
|
598
|
-
|
|
600
|
+
a.map(async (n) => {
|
|
601
|
+
n.selected = !1, n.indeterminate = !1, n.previouslySelected = !1, await n.updateComplete;
|
|
599
602
|
})
|
|
600
603
|
), e.selected = t || !e.selected, e.lazy && !this.disabledAutoExpand && (e.expanded = !0), I(e, !1, this.selection);
|
|
601
604
|
else if ((this.selection === "single" || e.isLeaf) && !e.noSelect)
|
|
602
|
-
for (const
|
|
603
|
-
|
|
605
|
+
for (const n of a)
|
|
606
|
+
n.selected = n === e;
|
|
604
607
|
else (this.selection === "leaf" || e.noSelect) && (e.expanded = !e.expanded);
|
|
605
608
|
if (e.noSelect)
|
|
606
609
|
return;
|
|
607
|
-
const
|
|
608
|
-
(i.length !==
|
|
610
|
+
const r = this.selectedItems;
|
|
611
|
+
(i.length !== r.length || r.some((n) => !i.includes(n)) || this.forceOnChange || t) && Promise.all(r.map((n) => n.updateComplete)).then(() => {
|
|
609
612
|
this.emit("cx-selection-change", {
|
|
610
613
|
/**
|
|
611
614
|
* Use this.selectedItems instead of nextSelection because
|
|
@@ -635,36 +638,36 @@ let c = class extends F {
|
|
|
635
638
|
"Enter",
|
|
636
639
|
" "
|
|
637
640
|
].includes(e.key) || e.composedPath().some(
|
|
638
|
-
(
|
|
639
|
-
|
|
641
|
+
(r) => ["input", "textarea"].includes(
|
|
642
|
+
r?.tagName?.toLowerCase()
|
|
640
643
|
)
|
|
641
644
|
))
|
|
642
645
|
return;
|
|
643
|
-
const t = this.getFocusableItems(), i = this.localize.dir() === "ltr",
|
|
646
|
+
const t = this.getFocusableItems(), i = this.localize.dir() === "ltr", a = this.localize.dir() === "rtl";
|
|
644
647
|
if (t.length > 0) {
|
|
645
648
|
e.preventDefault();
|
|
646
|
-
const
|
|
649
|
+
const r = t.findIndex((x) => x.matches(":focus")), n = t[r], d = (x) => {
|
|
647
650
|
const p = t[X(x, 0, t.length - 1)];
|
|
648
651
|
this.focusItem(p);
|
|
649
652
|
}, u = (x) => {
|
|
650
|
-
|
|
653
|
+
n.expanded = x;
|
|
651
654
|
};
|
|
652
|
-
e.key === "ArrowDown" ? d(
|
|
655
|
+
e.key === "ArrowDown" ? d(r + 1) : e.key === "ArrowUp" ? d(r - 1) : i && e.key === "ArrowRight" || a && e.key === "ArrowLeft" ? !n || n.disabled || n.readonly || n.expanded || n.isLeaf && !n.lazy ? d(r + 1) : u(!0) : i && e.key === "ArrowLeft" || a && e.key === "ArrowRight" ? !n || n.disabled || n.readonly || n.isLeaf || !n.expanded ? d(r - 1) : u(!1) : e.key === "Home" ? d(0) : e.key === "End" ? d(t.length - 1) : (e.key === "Enter" || e.key === " ") && !n.disabled && !n.readonly && this.selectItem(n);
|
|
653
656
|
}
|
|
654
657
|
}
|
|
655
658
|
handleClick(e) {
|
|
656
|
-
const t = e.composedPath(), i = e.target,
|
|
659
|
+
const t = e.composedPath(), i = e.target, a = i.closest("cx-tree-item"), r = e.composedPath().some(
|
|
657
660
|
(u) => u?.classList?.contains("tree-item__expand-button")
|
|
658
|
-
),
|
|
661
|
+
), n = e.composedPath().some(
|
|
659
662
|
(u) => u?.classList?.contains("tree-item__actions")
|
|
660
663
|
);
|
|
661
|
-
if (!
|
|
664
|
+
if (!a || a.disabled || a.readonly || i !== this.clickTarget)
|
|
662
665
|
return;
|
|
663
666
|
const d = !t.find(
|
|
664
667
|
(u) => u.tagName?.toLowerCase() === "cx-checkbox"
|
|
665
668
|
);
|
|
666
|
-
|
|
667
|
-
|
|
669
|
+
r && a.showExpandButton ? a.expanded = !a.expanded : n || this.selectItem(
|
|
670
|
+
a,
|
|
668
671
|
d && this.labelSelectSingle && this.selection === "multiple"
|
|
669
672
|
);
|
|
670
673
|
}
|
|
@@ -731,7 +734,7 @@ let c = class extends F {
|
|
|
731
734
|
this.removeAttribute("dragging");
|
|
732
735
|
}
|
|
733
736
|
initSortable() {
|
|
734
|
-
this.addEventListener("cx-drag-start", this.handleSortableStart), this.addEventListener("cx-drag-end", this.handleSortableEnd), this.sortableInstance =
|
|
737
|
+
this.addEventListener("cx-drag-start", this.handleSortableStart), this.addEventListener("cx-drag-end", this.handleSortableEnd), this.sortableInstance = v.create(this, {
|
|
735
738
|
...M({
|
|
736
739
|
group: this.getSortableGroup(),
|
|
737
740
|
onAdd: this.handleSortableUpdate,
|
|
@@ -778,15 +781,15 @@ let c = class extends F {
|
|
|
778
781
|
return e.filter((i) => {
|
|
779
782
|
if (i.disabled || i.readonly)
|
|
780
783
|
return !1;
|
|
781
|
-
const
|
|
782
|
-
return
|
|
784
|
+
const a = i.parentElement?.closest("[role=treeitem]");
|
|
785
|
+
return a instanceof o ? (a && (!a.expanded || a.loading || t.has(a)) && t.add(i), !t.has(i)) : !0;
|
|
783
786
|
});
|
|
784
787
|
}
|
|
785
788
|
render() {
|
|
786
789
|
return m`<div part="base" class="tree" @click=${this.handleClick} @keydown=${this.handleKeyDown} @mousedown=${this.handleMouseDown}><slot part="children" @slotchange=${this.handleSlotChange}></slot><span hidden aria-hidden="true"><slot name="expand-icon"></slot></span><span hidden aria-hidden="true"><slot name="collapse-icon"></slot></span></div>`;
|
|
787
790
|
}
|
|
788
791
|
};
|
|
789
|
-
c.styles = [O,
|
|
792
|
+
c.styles = [O, re];
|
|
790
793
|
h([
|
|
791
794
|
f("slot:not([name])")
|
|
792
795
|
], c.prototype, "defaultSlot", 2);
|
|
@@ -824,6 +827,9 @@ h([
|
|
|
824
827
|
h([
|
|
825
828
|
l({ attribute: "no-forward-expand-button-placement", type: Boolean })
|
|
826
829
|
], c.prototype, "noForwardExpandButtonPlacement", 2);
|
|
830
|
+
h([
|
|
831
|
+
l({ reflect: !0, type: String })
|
|
832
|
+
], c.prototype, "variant", 2);
|
|
827
833
|
h([
|
|
828
834
|
l({ attribute: "force-on-change", type: Boolean })
|
|
829
835
|
], c.prototype, "forceOnChange", 2);
|
|
@@ -840,7 +846,7 @@ h([
|
|
|
840
846
|
g()
|
|
841
847
|
], c.prototype, "sortableInstance", 2);
|
|
842
848
|
h([
|
|
843
|
-
b("sortable")
|
|
849
|
+
b(["sortable", "variant"])
|
|
844
850
|
], c.prototype, "initTreeItems", 1);
|
|
845
851
|
h([
|
|
846
852
|
b("selection")
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { c as y, i as u, a, b as p, d as c } from "./index.CrhRU5m8.js";
|
|
2
|
+
function g(r, n) {
|
|
3
|
+
n || (n = []);
|
|
4
|
+
var e = r ? Math.min(n.length, r.length) : 0, i = n.slice(), t;
|
|
5
|
+
return function(f) {
|
|
6
|
+
for (t = 0; t < e; ++t) i[t] = r[t] * (1 - f) + n[t] * f;
|
|
7
|
+
return i;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function m(r) {
|
|
11
|
+
return ArrayBuffer.isView(r) && !(r instanceof DataView);
|
|
12
|
+
}
|
|
13
|
+
function A(r, n) {
|
|
14
|
+
var e = n ? n.length : 0, i = r ? Math.min(e, r.length) : 0, t = new Array(i), f = new Array(e), o;
|
|
15
|
+
for (o = 0; o < i; ++o) t[o] = l(r[o], n[o]);
|
|
16
|
+
for (; o < e; ++o) f[o] = n[o];
|
|
17
|
+
return function(s) {
|
|
18
|
+
for (o = 0; o < i; ++o) f[o] = t[o](s);
|
|
19
|
+
return f;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function h(r, n) {
|
|
23
|
+
var e = /* @__PURE__ */ new Date();
|
|
24
|
+
return r = +r, n = +n, function(i) {
|
|
25
|
+
return e.setTime(r * (1 - i) + n * i), e;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function v(r, n) {
|
|
29
|
+
var e = {}, i = {}, t;
|
|
30
|
+
(r === null || typeof r != "object") && (r = {}), (n === null || typeof n != "object") && (n = {});
|
|
31
|
+
for (t in n)
|
|
32
|
+
t in r ? e[t] = l(r[t], n[t]) : i[t] = n[t];
|
|
33
|
+
return function(f) {
|
|
34
|
+
for (t in e) i[t] = e[t](f);
|
|
35
|
+
return i;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function l(r, n) {
|
|
39
|
+
var e = typeof n, i;
|
|
40
|
+
return n == null || e === "boolean" ? y(n) : (e === "number" ? u : e === "string" ? (i = c(n)) ? (n = i, a) : p : n instanceof c ? a : n instanceof Date ? h : m(n) ? g : Array.isArray(n) ? A : typeof n.valueOf != "function" && typeof n.toString != "function" || isNaN(n) ? v : u)(r, n);
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
l as i
|
|
44
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as ge, x as Y,
|
|
2
|
-
import "./index.
|
|
1
|
+
import { D as ge, x as Y, aj as ve, q as $, J as ie, C as K, G as Q, L as U, T as j, m as ee, b as xe, e as k, b4 as ye, _ as te, a as ne, v as de } from "./am-chart.Cr-vMjcY.js";
|
|
2
|
+
import "./index.CrhRU5m8.js";
|
|
3
3
|
class ce extends ge {
|
|
4
4
|
setupDefaultRules() {
|
|
5
5
|
super.setupDefaultRules();
|