@orangelogic/design-system 2.161.0 → 2.163.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.CUPqX8XL.js → asset-link-format.BdB6fQA_.js} +194 -194
- 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.Dg5avknJ.js → color-swatch-group.w5DMzNco.js} +2433 -2647
- 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/{content-builder.BU8X7I6V.js → content-builder.BX4pHujE.js} +1 -1
- 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.gyH0NGM5.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.Dh4SX0eU.js} +5 -5
- 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/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.C5Ir5yKA.js} +1 -1
- package/library/chunks/transformation.D1alV_s4.js +189 -0
- package/library/chunks/{tree.C2dPd6gt.js → tree.Dvnw_4vz.js} +3 -3
- 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 +5 -5
- 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 +3 -3
- 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 +3 -3
- 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/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 +122526 -120875
- 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/hybrid/table-core/src/tabulator-tables/modules/Page/Page.d.ts +6 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Validate/Validate.d.ts +6 -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/pdf-viewer-toolbar/pdf-viewer-toolbar.d.ts +1 -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/markdown-viewer.d.ts +12 -0
- package/library/packages/types/src/pdf-viewer-toolbar.d.ts +4 -3
- package/library/packages/utils/src/transformation/transformation.d.ts +8 -0
- package/library/react-web-component.d.ts +72 -6
- package/library/utils.js +9 -8
- package/package.json +2 -1
- package/library/chunks/Slice.C5lVu2g_.js +0 -120
- package/library/chunks/_baseXor.VohG8cOH.js +0 -116
- package/library/chunks/checkbox.3i2j3PHc.js +0 -198
- 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.BDmd3kER.js +0 -163
- package/library/chunks/xy.BNgyrwGD.js +0 -333
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { n as r, C as k } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as f } from "./component.styles.CRO4Odto.js";
|
|
3
|
-
import { f as v } from "./form-control.styles.CaGWmeAS.js";
|
|
4
|
-
import { c as g } from "./custom-element.L4WJXn1j.js";
|
|
5
|
-
import { d as y } from "./default-value.COZopaet.js";
|
|
6
|
-
import { F as _ } from "./form.CP9KLGjF.js";
|
|
7
|
-
import { H as C } from "./slot.j5oheLJC.js";
|
|
8
|
-
import { w as u } from "./watch.DOt4Mabe.js";
|
|
9
|
-
import { i as w, x as n } from "./lit-element.jLBm65_O.js";
|
|
10
|
-
import { r as $ } from "./state.CSDxrqLd.js";
|
|
11
|
-
import { e as z } from "./query.BBf1UFkC.js";
|
|
12
|
-
import { e as d } from "./class-map.BiVq-cVR.js";
|
|
13
|
-
import { o as p } from "./if-defined.BRoBj_Rp.js";
|
|
14
|
-
import { l as b } from "./live.DCegntDo.js";
|
|
15
|
-
import { n as F } from "./when.Dr1es41R.js";
|
|
16
|
-
import { C as V } from "./icon.mxNZ85k0.js";
|
|
17
|
-
var x = /* @__PURE__ */ ((e) => (e.Large = "large", e.Medium = "medium", e.Small = "small", e))(x || {}), m = /* @__PURE__ */ ((e) => (e.Bottom = "bottom", e.Left = "left", e.Right = "right", e.Top = "top", e))(m || {});
|
|
18
|
-
const H = w`:host([disabled]){pointer-events:none}:host{white-space:normal;padding:var(--checkbox-padding,0);margin:var(--checkbox-margin,0);display:inline-block}:host([data-user-invalid])::part(control){border-color:var(--cx-input-invalid-border-color)}:host([data-user-invalid])::part(label){color:var(--cx-input-invalid-color)}:host([data-user-invalid])::part(control){outline:none}:host(:focus-within[data-user-invalid])::part(control){border-color:var(--cx-input-invalid-border-color);box-shadow:var(--cx-input-invalid-shadow)}.checkbox{font-family:var(--cx-input-font-family);font-weight:var(--cx-input-font-weight);color:var(--label-color,var(--cx-color-neutral));vertical-align:middle;cursor:pointer;box-sizing:border-box;align-items:flex-start;gap:var(--checkbox-label-gap,var(--cx-spacing-x-small));display:inline-flex;position:relative}.checkbox--label-left{flex-direction:row-reverse}.checkbox--label-top{flex-direction:column-reverse;align-items:flex-start}.checkbox--label-bottom{flex-direction:column;align-items:flex-start}.checkbox--small{--toggle-size:var(--cx-toggle-size-small);font-size:var(--cx-input-font-size-small)}.checkbox--medium{--toggle-size:var(--cx-toggle-size-medium);font-size:var(--cx-input-font-size-small)}.checkbox--large{--toggle-size:var(--cx-toggle-size-large);font-size:var(--cx-input-font-size-small)}.form-control{flex-direction:column;display:flex}.checkbox__control{width:var(--toggle-size);height:var(--toggle-size);border:solid var(--cx-input-border-width) var(--cx-input-border-color);border-radius:var(--cx-border-radius-small);background-color:var(--cx-input-background-color);color:var(--cx-color-neutral-0);transition:var(--cx-transition-fast) border-color, var(--cx-transition-fast) background-color, var(--cx-transition-fast) color, var(--cx-transition-fast) box-shadow;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.checkbox__input{opacity:0;pointer-events:none;margin:0;padding:0;position:absolute}.checkbox__checked-icon,.checkbox__indeterminate-icon{display:inline-flex}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--checkbox-checked-color,var(--cx-input-border-color-hover));background-color:var(--checkbox-hover-color,var(--cx-input-background-color-hover))}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.checkbox--checked .checkbox__control{border-color:var(--checkbox-checked-color,var(--cx-color-primary));background-color:var(--checkbox-checked-color,var(--cx-color-primary))}.checkbox--indeterminate .checkbox__control{border-color:var(--checkbox-indeterminate-color,var(--cx-color-primary));background-color:var(--checkbox-indeterminate-color,var(--cx-color-primary))}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--checkbox-hover-color,var(--checkbox-checked-color,var(--cx-color-primary-500)));background-color:var(--checkbox-hover-color,var(--checkbox-checked-color,var(--cx-color-primary-500)))}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.checkbox--disabled{opacity:.5;cursor:default}.checkbox--disabled:not(.checkbox--checked):not(.checkbox--indeterminate) .checkbox__control{background-color:var(--cx-checkbox-disabled-background,var(--cx-input-background-color));border-color:var(--cx-checkbox-disabled-border-color,var(--cx-input-border-color))}.checkbox__label{width:var(--label-width,auto);color:var(--label-color,var(--cx-color-neutral));font:var(--label-font,var(--cx-font-label-small));line-height:var(--toggle-size);-webkit-user-select:none;user-select:none;text-transform:var(--cx-checkbox-label-text-transform,none);white-space:var(--cx-checkbox-label-white-space,normal);pointer-events:none;display:inline-block}.form-control__help-text{font:var(--help-text-font,var(--cx-font-label-x-small));color:var(--help-text-color,var(--cx-color-neutral-600))}:host([required]) .checkbox__label:after{color:var(--cx-input-required-content-color);content:var(--cx-input-required-content);margin-inline-start:var(--cx-input-required-content-offset)}`;
|
|
19
|
-
var S = Object.defineProperty, q = Object.getOwnPropertyDescriptor, o = (e, c, l, a) => {
|
|
20
|
-
for (var i = a > 1 ? void 0 : a ? q(c, l) : c, s = e.length - 1, h; s >= 0; s--)
|
|
21
|
-
(h = e[s]) && (i = (a ? h(c, l, i) : h(i)) || i);
|
|
22
|
-
return a && i && S(c, l, i), i;
|
|
23
|
-
};
|
|
24
|
-
let t = class extends k {
|
|
25
|
-
constructor() {
|
|
26
|
-
super(...arguments), this.formControlController = new _(this, {
|
|
27
|
-
// eslint-disable-next-line
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
defaultValue: (e) => e.defaultChecked,
|
|
30
|
-
// eslint-disable-next-line
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
setValue: (e, c) => e.checked = c,
|
|
33
|
-
// eslint-disable-next-line
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
value: (e) => e.checked ? e.value || "on" : void 0
|
|
36
|
-
}), this.hasSlotController = new C(this, "help-text"), this.hasFocus = !1, this.title = "", this.name = "", this.size = x.Medium, this.disabled = !1, this.checked = !1, this.indeterminate = !1, this.defaultChecked = !1, this.form = void 0, this.required = !1, this.helpText = "", this.labelPlacement = m.Right, this.ariaLabel = null;
|
|
37
|
-
}
|
|
38
|
-
/** Gets the validity state object */
|
|
39
|
-
get validity() {
|
|
40
|
-
return this.input.validity;
|
|
41
|
-
}
|
|
42
|
-
/** Gets the validation message */
|
|
43
|
-
get validationMessage() {
|
|
44
|
-
return this.input.validationMessage;
|
|
45
|
-
}
|
|
46
|
-
runFirstUpdated() {
|
|
47
|
-
this.formControlController.updateValidity();
|
|
48
|
-
}
|
|
49
|
-
connectedCallback() {
|
|
50
|
-
super.connectedCallback(), this.addEventListener("click", this.handleHostClick, {
|
|
51
|
-
capture: !0
|
|
52
|
-
}), this.addEventListener("keydown", this.handleHostKeydown, {
|
|
53
|
-
capture: !0
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
handleHostKeydown(e) {
|
|
57
|
-
e.key === " " && (e.preventDefault(), this.click());
|
|
58
|
-
}
|
|
59
|
-
handleHostClick(e) {
|
|
60
|
-
if (e.composedPath().includes(this.input)) {
|
|
61
|
-
e.stopPropagation();
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
this.input.click();
|
|
65
|
-
}
|
|
66
|
-
handleChange() {
|
|
67
|
-
this.checked = !this.checked, this.indeterminate = !1, this.emit("cx-input"), this.emit("cx-change");
|
|
68
|
-
}
|
|
69
|
-
handleBlur() {
|
|
70
|
-
this.hasFocus = !1, this.emit("cx-blur");
|
|
71
|
-
}
|
|
72
|
-
handleInvalid(e) {
|
|
73
|
-
this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(e);
|
|
74
|
-
}
|
|
75
|
-
handleFocus() {
|
|
76
|
-
this.hasFocus = !0, this.emit("cx-focus");
|
|
77
|
-
}
|
|
78
|
-
handleDisabledChange() {
|
|
79
|
-
this.formControlController.setValidity(this.disabled);
|
|
80
|
-
}
|
|
81
|
-
handleStateChange() {
|
|
82
|
-
this.input.checked = this.checked, this.input.indeterminate = this.indeterminate, this.formControlController.updateValidity();
|
|
83
|
-
}
|
|
84
|
-
/** Sets focus on the checkbox. */
|
|
85
|
-
focus(e) {
|
|
86
|
-
this.input.focus(e);
|
|
87
|
-
}
|
|
88
|
-
/** Removes focus from the checkbox. */
|
|
89
|
-
blur() {
|
|
90
|
-
this.input.blur();
|
|
91
|
-
}
|
|
92
|
-
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
93
|
-
checkValidity() {
|
|
94
|
-
return this.input.checkValidity();
|
|
95
|
-
}
|
|
96
|
-
/** Gets the associated form, if one exists. */
|
|
97
|
-
getForm() {
|
|
98
|
-
return this.formControlController.getForm();
|
|
99
|
-
}
|
|
100
|
-
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
101
|
-
reportValidity() {
|
|
102
|
-
return this.input.reportValidity();
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear
|
|
106
|
-
* the custom validation message, call this method with an empty string.
|
|
107
|
-
*/
|
|
108
|
-
setCustomValidity(e) {
|
|
109
|
-
this.input.setCustomValidity(e), this.formControlController.updateValidity();
|
|
110
|
-
}
|
|
111
|
-
disconnectedCallback() {
|
|
112
|
-
super.disconnectedCallback(), this.removeEventListener("click", this.handleHostClick, { capture: !0 }), this.removeEventListener("keydown", this.handleHostKeydown, { capture: !0 });
|
|
113
|
-
}
|
|
114
|
-
render() {
|
|
115
|
-
const e = this.hasSlotController.test("help-text"), c = this.helpText ? !0 : !!e, l = this.hasSlotController.test("[default]");
|
|
116
|
-
return n`<div class=${d({
|
|
117
|
-
"form-control": !0,
|
|
118
|
-
[`form-control--${this.size}`]: !0,
|
|
119
|
-
"form-control--has-help-text": c
|
|
120
|
-
})}><div part="base" class=${d({
|
|
121
|
-
checkbox: !0,
|
|
122
|
-
"checkbox--checked": this.checked,
|
|
123
|
-
"checkbox--disabled": this.disabled,
|
|
124
|
-
"checkbox--focused": this.hasFocus,
|
|
125
|
-
"checkbox--indeterminate": this.indeterminate,
|
|
126
|
-
[`checkbox--label-${this.labelPlacement}`]: !0,
|
|
127
|
-
[`checkbox--${this.size}`]: !0
|
|
128
|
-
})}><input id="checkbox" aria-label=${p(this.ariaLabel?.trim() || void 0)} class="checkbox__input" type="checkbox" title=${this.title} name=${this.name} .value=${p(this.value)} .indeterminate=${b(this.indeterminate)} .checked=${b(this.checked)} .disabled=${this.disabled} .required=${this.required} aria-checked=${this.indeterminate ? "mixed" : this.checked ? "true" : "false"} aria-describedby="help-text" @change=${this.handleChange} @invalid=${this.handleInvalid} @blur=${this.handleBlur} @focus=${this.handleFocus}><span part="control${this.checked ? " control--checked" : ""}${this.indeterminate ? " control--indeterminate" : ""}" class="checkbox__control">${this.checked ? n`<slot name="checked-icon"><cx-icon part="checked-icon" class="checkbox__checked-icon" name="check"></cx-icon></slot>` : ""}
|
|
129
|
-
${!this.checked && this.indeterminate ? n`<slot name="indeterminate-icon"><cx-icon part="indeterminate-icon" class="checkbox__indeterminate-icon" name="remove"></cx-icon></slot>` : ""}</span>${F(
|
|
130
|
-
l,
|
|
131
|
-
() => n`<label for="checkbox" part="label" class="checkbox__label"><slot></slot></label>`
|
|
132
|
-
)}</div><div aria-hidden=${c ? "false" : "true"} class="form-control__help-text" id="help-text" part="form-control-help-text"><slot name="help-text">${this.helpText}</slot></div></div>`;
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
t.styles = [
|
|
136
|
-
f,
|
|
137
|
-
v,
|
|
138
|
-
H
|
|
139
|
-
];
|
|
140
|
-
t.dependencies = { "cx-icon": V };
|
|
141
|
-
o([
|
|
142
|
-
z('input[type="checkbox"]')
|
|
143
|
-
], t.prototype, "input", 2);
|
|
144
|
-
o([
|
|
145
|
-
$()
|
|
146
|
-
], t.prototype, "hasFocus", 2);
|
|
147
|
-
o([
|
|
148
|
-
r()
|
|
149
|
-
], t.prototype, "title", 2);
|
|
150
|
-
o([
|
|
151
|
-
r()
|
|
152
|
-
], t.prototype, "name", 2);
|
|
153
|
-
o([
|
|
154
|
-
r()
|
|
155
|
-
], t.prototype, "value", 2);
|
|
156
|
-
o([
|
|
157
|
-
r({ reflect: !0 })
|
|
158
|
-
], t.prototype, "size", 2);
|
|
159
|
-
o([
|
|
160
|
-
r({ reflect: !0, type: Boolean })
|
|
161
|
-
], t.prototype, "disabled", 2);
|
|
162
|
-
o([
|
|
163
|
-
r({ reflect: !0, type: Boolean })
|
|
164
|
-
], t.prototype, "checked", 2);
|
|
165
|
-
o([
|
|
166
|
-
r({ reflect: !0, type: Boolean })
|
|
167
|
-
], t.prototype, "indeterminate", 2);
|
|
168
|
-
o([
|
|
169
|
-
y("checked")
|
|
170
|
-
], t.prototype, "defaultChecked", 2);
|
|
171
|
-
o([
|
|
172
|
-
r({ reflect: !1 })
|
|
173
|
-
], t.prototype, "form", 2);
|
|
174
|
-
o([
|
|
175
|
-
r({ reflect: !0, type: Boolean })
|
|
176
|
-
], t.prototype, "required", 2);
|
|
177
|
-
o([
|
|
178
|
-
r({ attribute: "help-text" })
|
|
179
|
-
], t.prototype, "helpText", 2);
|
|
180
|
-
o([
|
|
181
|
-
r({ attribute: "label-placement", reflect: !0 })
|
|
182
|
-
], t.prototype, "labelPlacement", 2);
|
|
183
|
-
o([
|
|
184
|
-
r({ attribute: "aria-label", reflect: !0, type: String })
|
|
185
|
-
], t.prototype, "ariaLabel", 2);
|
|
186
|
-
o([
|
|
187
|
-
u("disabled", { waitUntilFirstUpdate: !0 })
|
|
188
|
-
], t.prototype, "handleDisabledChange", 1);
|
|
189
|
-
o([
|
|
190
|
-
u(["checked", "indeterminate"], { waitUntilFirstUpdate: !0 })
|
|
191
|
-
], t.prototype, "handleStateChange", 1);
|
|
192
|
-
t = o([
|
|
193
|
-
g("cx-checkbox")
|
|
194
|
-
], t);
|
|
195
|
-
export {
|
|
196
|
-
t as C,
|
|
197
|
-
x as a
|
|
198
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { r as L, a as v } from "./isObjectLike.z36Fu426.js";
|
|
2
|
-
import { i as M } from "./isSymbol.L0C2ND_U.js";
|
|
3
|
-
var h = function() {
|
|
4
|
-
return L.Date.now();
|
|
5
|
-
}, N = /\s/;
|
|
6
|
-
function B(n) {
|
|
7
|
-
for (var r = n.length; r-- && N.test(n.charAt(r)); )
|
|
8
|
-
;
|
|
9
|
-
return r;
|
|
10
|
-
}
|
|
11
|
-
var R = /^\s+/;
|
|
12
|
-
function $(n) {
|
|
13
|
-
return n && n.slice(0, B(n) + 1).replace(R, "");
|
|
14
|
-
}
|
|
15
|
-
var k = NaN, F = /^[-+]0x[0-9a-f]+$/i, _ = /^0b[01]+$/i, j = /^0o[0-7]+$/i, D = parseInt;
|
|
16
|
-
function S(n) {
|
|
17
|
-
if (typeof n == "number")
|
|
18
|
-
return n;
|
|
19
|
-
if (M(n))
|
|
20
|
-
return k;
|
|
21
|
-
if (v(n)) {
|
|
22
|
-
var r = typeof n.valueOf == "function" ? n.valueOf() : n;
|
|
23
|
-
n = v(r) ? r + "" : r;
|
|
24
|
-
}
|
|
25
|
-
if (typeof n != "string")
|
|
26
|
-
return n === 0 ? n : +n;
|
|
27
|
-
n = $(n);
|
|
28
|
-
var t = _.test(n);
|
|
29
|
-
return t || j.test(n) ? D(n.slice(2), t ? 2 : 8) : F.test(n) ? k : +n;
|
|
30
|
-
}
|
|
31
|
-
var H = "Expected a function", P = Math.max, U = Math.min;
|
|
32
|
-
function z(n, r, t) {
|
|
33
|
-
var u, o, l, s, i, f, c = 0, p = !1, d = !1, T = !0;
|
|
34
|
-
if (typeof n != "function")
|
|
35
|
-
throw new TypeError(H);
|
|
36
|
-
r = S(r) || 0, v(t) && (p = !!t.leading, d = "maxWait" in t, l = d ? P(S(t.maxWait) || 0, r) : l, T = "trailing" in t ? !!t.trailing : T);
|
|
37
|
-
function x(e) {
|
|
38
|
-
var a = u, m = o;
|
|
39
|
-
return u = o = void 0, c = e, s = n.apply(m, a), s;
|
|
40
|
-
}
|
|
41
|
-
function W(e) {
|
|
42
|
-
return c = e, i = setTimeout(g, r), p ? x(e) : s;
|
|
43
|
-
}
|
|
44
|
-
function O(e) {
|
|
45
|
-
var a = e - f, m = e - c, E = r - a;
|
|
46
|
-
return d ? U(E, l - m) : E;
|
|
47
|
-
}
|
|
48
|
-
function y(e) {
|
|
49
|
-
var a = e - f, m = e - c;
|
|
50
|
-
return f === void 0 || a >= r || a < 0 || d && m >= l;
|
|
51
|
-
}
|
|
52
|
-
function g() {
|
|
53
|
-
var e = h();
|
|
54
|
-
if (y(e))
|
|
55
|
-
return b(e);
|
|
56
|
-
i = setTimeout(g, O(e));
|
|
57
|
-
}
|
|
58
|
-
function b(e) {
|
|
59
|
-
return i = void 0, T && u ? x(e) : (u = o = void 0, s);
|
|
60
|
-
}
|
|
61
|
-
function A() {
|
|
62
|
-
i !== void 0 && clearTimeout(i), c = 0, u = f = o = i = void 0;
|
|
63
|
-
}
|
|
64
|
-
function C() {
|
|
65
|
-
return i === void 0 ? s : b(h());
|
|
66
|
-
}
|
|
67
|
-
function I() {
|
|
68
|
-
var e = h(), a = y(e);
|
|
69
|
-
if (u = arguments, o = this, f = e, a) {
|
|
70
|
-
if (i === void 0)
|
|
71
|
-
return W(f);
|
|
72
|
-
if (d)
|
|
73
|
-
return clearTimeout(i), i = setTimeout(g, r), x(f);
|
|
74
|
-
}
|
|
75
|
-
return i === void 0 && (i = setTimeout(g, r)), s;
|
|
76
|
-
}
|
|
77
|
-
return I.cancel = A, I.flush = C, I;
|
|
78
|
-
}
|
|
79
|
-
export {
|
|
80
|
-
z as d,
|
|
81
|
-
S as t
|
|
82
|
-
};
|