@orangelogic/design-system 2.60.0 → 2.61.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/apps/cortex/src/types.d.ts +2 -0
- package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
- package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
- package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
- package/library/chunks/animate.El-MpOws.js +37 -0
- package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
- package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
- package/library/chunks/array.DCtvHiLS.js +81 -0
- package/library/chunks/asset.CG_yXtWK.js +288 -0
- package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
- package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
- package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
- package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
- package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
- package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
- package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
- package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
- package/library/chunks/color.vLD2sNTs.js +164 -0
- package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
- package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
- package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
- package/library/chunks/converters.DkDtLstb.js +11 -0
- package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
- package/library/chunks/custom-element.L4WJXn1j.js +14 -0
- package/library/chunks/debounce.DaHuiSGU.js +15 -0
- package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
- package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
- package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
- package/library/chunks/dom.CZrJ64Dm.js +92 -0
- package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
- package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
- package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
- package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
- package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
- package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
- package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
- package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
- package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
- package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
- package/library/chunks/identity.ByMq8VxU.js +6 -0
- package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
- package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
- package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
- package/library/chunks/image.mbpyiQpQ.js +82 -0
- package/library/chunks/index.S0wy3rzm.js +373 -0
- package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
- package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
- package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
- package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
- package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
- package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
- package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
- package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
- package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
- package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
- package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
- package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
- package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
- package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
- package/library/chunks/responsive.CA6dcNiM.js +17 -0
- package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
- package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
- package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
- package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
- package/library/chunks/string.Cp_XNbnV.js +160 -0
- package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
- package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
- package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
- package/library/chunks/template.CsJd8Pb_.js +20 -0
- package/library/chunks/time.D_uFZqqe.js +118 -0
- package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
- package/library/chunks/toast.BXNbwZV8.js +25 -0
- package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
- package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
- package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
- package/library/chunks/url.LjsR2sB5.js +15 -0
- package/library/chunks/user-agent.D9aPuOyL.js +4 -0
- package/library/chunks/watch.q1sEjPWL.js +501 -0
- package/library/components/alert.js +38 -35
- package/library/components/animated-image.js +25 -23
- package/library/components/animation.js +7 -5
- package/library/components/array-line-clamp.d.ts +3 -0
- package/library/components/array-line-clamp.js +195 -0
- package/library/components/asset-link-format.js +223 -212
- package/library/components/atoms.js +164 -162
- package/library/components/avatar.js +28 -26
- package/library/components/badge.js +10 -8
- package/library/components/bicolor-picker.js +21 -19
- package/library/components/border-input-group.js +11 -9
- package/library/components/breadcrumb-item.js +14 -12
- package/library/components/breadcrumb.js +24 -22
- package/library/components/button-group.js +26 -24
- package/library/components/button.js +14 -13
- package/library/components/card.js +28 -19
- package/library/components/checkbox.js +29 -23
- package/library/components/color-picker.js +19 -17
- package/library/components/color-swatch-group.js +20 -17
- package/library/components/color-swatch.js +16 -13
- package/library/components/confirm-popover.js +11 -9
- package/library/components/copy-button.js +15 -13
- package/library/components/corner-position-input-group.js +13 -11
- package/library/components/cortex-element.d.ts +3 -0
- package/library/components/cortex-element.js +5 -0
- package/library/components/cropper.js +7 -5
- package/library/components/details.js +23 -20
- package/library/components/dialog.js +19 -16
- package/library/components/divider.js +13 -11
- package/library/components/dot-pagination.js +11 -9
- package/library/components/dot-status.js +10 -8
- package/library/components/drawer.js +63 -51
- package/library/components/dropdown.js +29 -26
- package/library/components/dynamic-select.js +12 -10
- package/library/components/element-clamp.js +28 -25
- package/library/components/file-on-demand.js +21 -20
- package/library/components/folder-select.js +12 -10
- package/library/components/format-bytes.js +11 -10
- package/library/components/format-date.js +11 -9
- package/library/components/format-number.js +16 -15
- package/library/components/format-time.js +118 -9
- package/library/components/grid-item.js +48 -46
- package/library/components/grid.js +31 -29
- package/library/components/header.js +10 -9
- package/library/components/hub-connection.js +6 -5
- package/library/components/icon-button.js +20 -18
- package/library/components/icon.js +17 -15
- package/library/components/iframe.js +10 -8
- package/library/components/image-comparer.js +27 -25
- package/library/components/image.js +14 -11
- package/library/components/include.js +26 -24
- package/library/components/input-group.js +15 -13
- package/library/components/input.js +23 -21
- package/library/components/line-clamp.js +12 -10
- package/library/components/list-editor.js +17 -15
- package/library/components/markdown.js +80 -78
- package/library/components/masonry.js +46 -44
- package/library/components/menu-item.js +151 -136
- package/library/components/menu-label.js +15 -13
- package/library/components/menu-section.js +18 -16
- package/library/components/menu.js +10 -8
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +12 -10
- package/library/components/option.js +10 -8
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +30 -28
- package/library/components/pagination.js +14 -12
- package/library/components/popup.js +3296 -9
- package/library/components/position-picker.js +12 -10
- package/library/components/progress-bar.js +13 -11
- package/library/components/progress-ring.js +15 -13
- package/library/components/qr-code.js +54 -52
- package/library/components/radio-button.js +19 -17
- package/library/components/radio-card.js +14 -12
- package/library/components/radio-group.js +20 -18
- package/library/components/radio.js +15 -13
- package/library/components/range.js +25 -23
- package/library/components/rating.js +17 -15
- package/library/components/relative-time.js +16 -14
- package/library/components/resize-observer.js +21 -19
- package/library/components/select.js +1442 -25
- package/library/components/shadow-input-group.js +19 -17
- package/library/components/share-option-list.js +20 -18
- package/library/components/sidebar.js +14 -12
- package/library/components/size-input-group.js +35 -33
- package/library/components/skeleton.js +12 -10
- package/library/components/space.js +12 -10
- package/library/components/spinner.js +17 -15
- package/library/components/split-panel.js +15 -13
- package/library/components/step.js +18 -16
- package/library/components/stepper-wizard.js +11 -9
- package/library/components/stepper.js +13 -11
- package/library/components/switch.js +21 -19
- package/library/components/tab-group.js +15 -13
- package/library/components/tab-panel.js +20 -18
- package/library/components/tab.js +18 -16
- package/library/components/table.js +69 -67
- package/library/components/tag.js +11 -9
- package/library/components/textarea.js +20 -18
- package/library/components/timecode.js +98 -8
- package/library/components/tooltip.js +24 -21
- package/library/components/tree-item.js +14 -11
- package/library/components/tree.js +12 -10
- package/library/components/typeface.js +13 -11
- package/library/components/types.js +15487 -15444
- package/library/components/typography.js +6 -4
- package/library/components/video.js +13 -11
- package/library/components/visually-hidden.js +15 -13
- package/library/events.d.ts +1 -0
- package/library/events.js +1 -0
- package/library/package.json +11 -2
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
- package/library/packages/atoms/src/components/include/include.d.ts +1 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
- package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
- package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +6 -2
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
- package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
- package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
- package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
- package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
- package/library/packages/services/src/api/folder/folder.d.ts +4 -8
- package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
- package/library/packages/types/src/file-on-demand.d.ts +4 -0
- package/library/packages/types/src/folder-select.d.ts +9 -2
- package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
- package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
- package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
- package/library/packages/utils/src/font/font.d.ts +26 -0
- package/library/packages/utils/src/font/index.d.ts +1 -0
- package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
- package/library/packages/utils/src/history-manager/index.d.ts +1 -0
- package/library/packages/utils/src/index.d.ts +45 -0
- package/library/packages/utils/src/template/index.d.ts +1 -0
- package/library/packages/utils/src/template/template.d.ts +3 -0
- package/library/react-web-component.d.ts +418 -360
- package/library/utils.d.ts +1 -0
- package/library/utils.js +180 -0
- package/package.json +11 -2
- package/library/chunks/animation-registry.DavRkTTr.js +0 -69
- package/library/chunks/asset.Ba-CxnNM.js +0 -309
- package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
- package/library/chunks/dom.C0OFx7ND.js +0 -78
- package/library/chunks/format-time.BW6-ZWCX.js +0 -226
- package/library/chunks/isObjectLike.z36Fu426.js +0 -34
- package/library/chunks/popup._w5T7x8f.js +0 -3307
- package/library/chunks/select.DfO4de04.js +0 -1441
- package/library/chunks/string.BCk3SmdZ.js +0 -144
- package/library/chunks/timecode.D7XTiQ_3.js +0 -105
- package/library/chunks/watch.BCJD77bD.js +0 -547
- package/library/packages/events/src/cx-load-more.d.ts +0 -8
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { n as a, C as k } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as S } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as w } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { d as x, L as C } from "../chunks/i18n.DrzK7TPf.js";
|
|
5
|
+
import { H as _, g as M } from "../chunks/slot.j5oheLJC.js";
|
|
6
|
+
import { w as f } from "../chunks/watch.q1sEjPWL.js";
|
|
7
|
+
import { i as L, x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
8
|
import { e as d } from "../chunks/query.BBf1UFkC.js";
|
|
7
|
-
import { e as
|
|
8
|
-
import { o as m } from "../chunks/if-defined.
|
|
9
|
+
import { e as b } from "../chunks/class-map.BiVq-cVR.js";
|
|
10
|
+
import { o as m } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
9
11
|
import P from "./icon.js";
|
|
10
|
-
import
|
|
12
|
+
import E from "./popup.js";
|
|
11
13
|
import z from "./spinner.js";
|
|
12
|
-
import { e as D, n as R } from "../chunks/ref.
|
|
13
|
-
const $ =
|
|
14
|
+
import { e as D, n as R } from "../chunks/ref.bzeTdX0K.js";
|
|
15
|
+
const $ = L`
|
|
14
16
|
:host {
|
|
15
17
|
--submenu-offset: -2px;
|
|
16
18
|
--prefix-font-size: var(--cx-font-size-small);
|
|
@@ -53,7 +55,8 @@ const $ = k`
|
|
|
53
55
|
|
|
54
56
|
.menu-item.menu-item--disabled .menu-item__label,
|
|
55
57
|
.menu-item.menu-item--disabled .menu-item__prefix,
|
|
56
|
-
.menu-item.menu-item--disabled .menu-item__chevron
|
|
58
|
+
.menu-item.menu-item--disabled .menu-item__chevron,
|
|
59
|
+
.menu-item.menu-item--disabled .menu-item__check {
|
|
57
60
|
opacity: 0.5;
|
|
58
61
|
}
|
|
59
62
|
|
|
@@ -197,6 +200,10 @@ const $ = k`
|
|
|
197
200
|
margin-right: var(--cx-spacing-2x-small);
|
|
198
201
|
}
|
|
199
202
|
|
|
203
|
+
.menu-item .menu-item__check--always-show {
|
|
204
|
+
visibility: visible;
|
|
205
|
+
}
|
|
206
|
+
|
|
200
207
|
.menu-item .menu-item__chevron {
|
|
201
208
|
display: var(--submenu-icon-display, flex);
|
|
202
209
|
}
|
|
@@ -235,8 +242,8 @@ const $ = k`
|
|
|
235
242
|
}
|
|
236
243
|
`;
|
|
237
244
|
class T {
|
|
238
|
-
constructor(e,
|
|
239
|
-
this.popupRef = D(), this.parent = null, this.enableSubmenuTimer = -1, this.isHorizontalMenu = !1, this.isConnected = !1, this.isPopupConnected = !1, this.skidding = 0, this.submenuOpenDelay = 100, (this.host = e).addController(this), this.hasSlotController =
|
|
245
|
+
constructor(e, n) {
|
|
246
|
+
this.popupRef = D(), this.parent = null, this.enableSubmenuTimer = -1, this.isHorizontalMenu = !1, this.isConnected = !1, this.isPopupConnected = !1, this.skidding = 0, this.submenuOpenDelay = 100, (this.host = e).addController(this), this.hasSlotController = n, this.handleMouseMove = this.handleMouseMove.bind(this), this.handleMouseOver = this.handleMouseOver.bind(this), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleClick = this.handleClick.bind(this), this.handleSubmenuIconClick = this.handleSubmenuIconClick.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.handleMouseLeave = this.handleMouseLeave.bind(this), this.handlePopupMouseover = this.handlePopupMouseover.bind(this), this.handlePopupReposition = this.handlePopupReposition.bind(this);
|
|
240
247
|
}
|
|
241
248
|
get popup() {
|
|
242
249
|
return this.popupRef.value;
|
|
@@ -283,10 +290,10 @@ class T {
|
|
|
283
290
|
}
|
|
284
291
|
// Set the safe triangle cursor position
|
|
285
292
|
handleMouseMove(e) {
|
|
286
|
-
const
|
|
293
|
+
const n = getComputedStyle(this.host).direction === "rtl" || this.popupRef.value?.dataset.currentPlacement?.startsWith("left");
|
|
287
294
|
this.host.style.setProperty(
|
|
288
295
|
"--safe-triangle-cursor-x",
|
|
289
|
-
`${e.clientX + (
|
|
296
|
+
`${e.clientX + (n ? 1 : 0)}px`
|
|
290
297
|
), this.host.style.setProperty(
|
|
291
298
|
"--safe-triangle-cursor-y",
|
|
292
299
|
`${e.clientY}px`
|
|
@@ -296,32 +303,32 @@ class T {
|
|
|
296
303
|
this.hasSlotController.test("submenu") && this.enableSubmenu();
|
|
297
304
|
}
|
|
298
305
|
handleSubmenuEntry(e) {
|
|
299
|
-
const
|
|
300
|
-
if (!
|
|
306
|
+
const n = this.host.renderRoot.querySelector("slot[name='submenu']");
|
|
307
|
+
if (!n) {
|
|
301
308
|
console.error(
|
|
302
309
|
"Cannot activate a submenu if no corresponding menuitem can be found.",
|
|
303
310
|
this
|
|
304
311
|
);
|
|
305
312
|
return;
|
|
306
313
|
}
|
|
307
|
-
let
|
|
308
|
-
for (const
|
|
309
|
-
if (
|
|
314
|
+
let i = null;
|
|
315
|
+
for (const r of n.assignedElements())
|
|
316
|
+
if (i = r.querySelectorAll("cx-menu-item, [role^='menuitem']"), i.length !== 0)
|
|
310
317
|
break;
|
|
311
|
-
if (!
|
|
318
|
+
if (!i || i.length === 0) {
|
|
312
319
|
this.host.lazy && (e.preventDefault(), e.stopPropagation(), this.enableSubmenu(!1));
|
|
313
320
|
return;
|
|
314
321
|
}
|
|
315
|
-
|
|
316
|
-
for (let
|
|
317
|
-
|
|
318
|
-
this.popupRef.value && (e.preventDefault(), e.stopPropagation(), this.popupRef.value.active ?
|
|
319
|
-
|
|
322
|
+
i[0].setAttribute("tabindex", "0");
|
|
323
|
+
for (let r = 1; r !== i.length; ++r)
|
|
324
|
+
i[r].setAttribute("tabindex", "-1");
|
|
325
|
+
this.popupRef.value && (e.preventDefault(), e.stopPropagation(), this.popupRef.value.active ? i[0] instanceof HTMLElement && i[0].focus() : (this.enableSubmenu(!1), this.popupRef.value.addEventListener("cx-opened", () => {
|
|
326
|
+
i[0] instanceof HTMLElement && i[0].focus();
|
|
320
327
|
}), this.host.requestUpdate()));
|
|
321
328
|
}
|
|
322
329
|
// Focus on the first menu-item of a submenu.
|
|
323
330
|
handleKeyDown(e) {
|
|
324
|
-
const
|
|
331
|
+
const n = () => {
|
|
325
332
|
e.preventDefault(), e.stopPropagation(), this.host.focus(), this.disableSubmenu();
|
|
326
333
|
};
|
|
327
334
|
switch (e.key) {
|
|
@@ -334,11 +341,11 @@ class T {
|
|
|
334
341
|
break;
|
|
335
342
|
}
|
|
336
343
|
case "ArrowLeft": {
|
|
337
|
-
e.target !== this.host && !this.isHorizontalMenu &&
|
|
344
|
+
e.target !== this.host && !this.isHorizontalMenu && n();
|
|
338
345
|
break;
|
|
339
346
|
}
|
|
340
347
|
case "ArrowUp": {
|
|
341
|
-
e.target !== this.host && this.isHorizontalMenu &&
|
|
348
|
+
e.target !== this.host && this.isHorizontalMenu && n();
|
|
342
349
|
break;
|
|
343
350
|
}
|
|
344
351
|
case "ArrowRight": {
|
|
@@ -358,8 +365,8 @@ class T {
|
|
|
358
365
|
e.preventDefault(), e.stopPropagation(), this.isExpanded() ? this.disableSubmenu() : this.enableSubmenu();
|
|
359
366
|
}
|
|
360
367
|
handleDocumentMouseDown(e) {
|
|
361
|
-
const
|
|
362
|
-
this.host && !
|
|
368
|
+
const n = e.composedPath();
|
|
369
|
+
this.host && !n.includes(this.host) && this.disableSubmenu();
|
|
363
370
|
}
|
|
364
371
|
// Close this submenu on focus outside of the parent or any descendants.
|
|
365
372
|
handleMouseLeave(e) {
|
|
@@ -371,19 +378,19 @@ class T {
|
|
|
371
378
|
}
|
|
372
379
|
// Set the safe triangle values for the submenu when the position changes
|
|
373
380
|
handlePopupReposition() {
|
|
374
|
-
const
|
|
375
|
-
if (!
|
|
381
|
+
const n = this.host.renderRoot.querySelector("slot[name='submenu']")?.assignedElements({ flatten: !0 }).filter((p) => p.localName === "cx-menu")[0], i = getComputedStyle(this.host).direction === "rtl" || this.popupRef.value?.dataset.currentPlacement?.startsWith("left");
|
|
382
|
+
if (!n)
|
|
376
383
|
return;
|
|
377
|
-
const { height:
|
|
384
|
+
const { height: r, left: l, top: u, width: c } = n.getBoundingClientRect();
|
|
378
385
|
this.host.style.setProperty(
|
|
379
386
|
"--safe-triangle-submenu-start-x",
|
|
380
|
-
`${
|
|
387
|
+
`${i ? l + c : l}px`
|
|
381
388
|
), this.host.style.setProperty("--safe-triangle-submenu-start-y", `${u}px`), this.host.style.setProperty(
|
|
382
389
|
"--safe-triangle-submenu-end-x",
|
|
383
|
-
`${
|
|
390
|
+
`${i ? l + c : l}px`
|
|
384
391
|
), this.host.style.setProperty(
|
|
385
392
|
"--safe-triangle-submenu-end-y",
|
|
386
|
-
`${u +
|
|
393
|
+
`${u + r}px`
|
|
387
394
|
);
|
|
388
395
|
}
|
|
389
396
|
setSubmenuState(e) {
|
|
@@ -403,11 +410,11 @@ class T {
|
|
|
403
410
|
updateSkidding() {
|
|
404
411
|
if (!this.host.parentElement?.computedStyleMap)
|
|
405
412
|
return;
|
|
406
|
-
const e = this.host.parentElement.computedStyleMap(),
|
|
413
|
+
const e = this.host.parentElement.computedStyleMap(), n = x(this.host) === "rtl", i = this.host.submenuPlacement ?? (n ? "left-start" : "right-start"), r = i.startsWith("left") || i.startsWith("right");
|
|
407
414
|
let l = [];
|
|
408
|
-
|
|
415
|
+
r && (i.endsWith("-start") ? l = ["padding-top", "border-top-width", "margin-top"] : i.endsWith("-end") && (l = ["padding-bottom", "border-bottom-width", "margin-bottom"]));
|
|
409
416
|
const u = l.reduce((c, p) => {
|
|
410
|
-
const
|
|
417
|
+
const v = e.get(p) ?? new CSSUnitValue(0, "px"), g = (v instanceof CSSUnitValue ? v : new CSSUnitValue(0, "px")).to("px"), y = i.endsWith("-end") ? 1 : -1;
|
|
411
418
|
return c + g.value * y;
|
|
412
419
|
}, 0);
|
|
413
420
|
this.skidding = u;
|
|
@@ -416,14 +423,14 @@ class T {
|
|
|
416
423
|
return this.popupRef.value ? this.popupRef.value.active : !1;
|
|
417
424
|
}
|
|
418
425
|
renderSubmenu() {
|
|
419
|
-
const e =
|
|
426
|
+
const e = x(this.host) === "rtl";
|
|
420
427
|
if (!this.hasSlotController.test("submenu"))
|
|
421
428
|
return null;
|
|
422
|
-
const
|
|
429
|
+
const n = this.host.submenuPlacement ?? (e ? "left-start" : "right-start");
|
|
423
430
|
return h`
|
|
424
431
|
<cx-popup
|
|
425
432
|
${R(this.popupRef)}
|
|
426
|
-
placement=${
|
|
433
|
+
placement=${n}
|
|
427
434
|
anchor="anchor"
|
|
428
435
|
part="submenu-popup"
|
|
429
436
|
flip
|
|
@@ -441,14 +448,14 @@ class T {
|
|
|
441
448
|
`;
|
|
442
449
|
}
|
|
443
450
|
}
|
|
444
|
-
var O = Object.defineProperty,
|
|
445
|
-
for (var
|
|
446
|
-
(u = o[l]) && (
|
|
447
|
-
return
|
|
451
|
+
var O = Object.defineProperty, I = Object.getOwnPropertyDescriptor, s = (o, e, n, i) => {
|
|
452
|
+
for (var r = i > 1 ? void 0 : i ? I(e, n) : e, l = o.length - 1, u; l >= 0; l--)
|
|
453
|
+
(u = o[l]) && (r = (i ? u(e, n, r) : u(r)) || r);
|
|
454
|
+
return i && r && O(e, n, r), r;
|
|
448
455
|
};
|
|
449
|
-
let
|
|
456
|
+
let t = class extends k {
|
|
450
457
|
constructor() {
|
|
451
|
-
super(), this.type = "normal", this.submenuTrigger = "both", this.checked = !1, this.value = "", this.href = "", this.rel = "noreferrer noopener", this.loading = !1, this.disabled = !1, this.active = !1, this.readonly = !1, this.menu = "", this.lazy = !1, this.localize = new
|
|
458
|
+
super(), this.type = "normal", this.submenuTrigger = "both", this.checked = !1, this.value = "", this.href = "", this.rel = "noreferrer noopener", this.loading = !1, this.disabled = !1, this.active = !1, this.readonly = !1, this.menu = "", this.alwaysShowCheckedIcon = !1, this.lazy = !1, this.localize = new C(this), this.hasSlotController = new _(
|
|
452
459
|
this,
|
|
453
460
|
"submenu",
|
|
454
461
|
"submenu-icon"
|
|
@@ -466,9 +473,7 @@ let i = class extends S {
|
|
|
466
473
|
});
|
|
467
474
|
}
|
|
468
475
|
disconnectedCallback() {
|
|
469
|
-
super.disconnectedCallback(), this.removeEventListener("click", this.handleHostClick), this.removeEventListener("mouseover", this.handleMouseOver), document.removeEventListener("wheel", this.handleDocumentWheel
|
|
470
|
-
passive: !1
|
|
471
|
-
});
|
|
476
|
+
super.disconnectedCallback(), this.removeEventListener("click", this.handleHostClick), this.removeEventListener("mouseover", this.handleMouseOver), document.removeEventListener("wheel", this.handleDocumentWheel);
|
|
472
477
|
}
|
|
473
478
|
handleDefaultSlotChange() {
|
|
474
479
|
const o = this.getTextLabel();
|
|
@@ -509,18 +514,18 @@ let i = class extends S {
|
|
|
509
514
|
}
|
|
510
515
|
/** Returns a text label based on the contents of the menu item's default slot. */
|
|
511
516
|
getTextLabel() {
|
|
512
|
-
return
|
|
517
|
+
return M(this.defaultSlot);
|
|
513
518
|
}
|
|
514
519
|
isSubmenu() {
|
|
515
520
|
return this.hasSlotController.test("submenu") || !!this.menu.trim();
|
|
516
521
|
}
|
|
517
522
|
renderBase(o) {
|
|
518
|
-
const e = !!this.href,
|
|
523
|
+
const e = !!this.href, n = this.localize.dir() === "rtl", i = this.submenuController.isExpanded();
|
|
519
524
|
return e ? h`
|
|
520
525
|
<a
|
|
521
526
|
id="anchor"
|
|
522
527
|
part="base"
|
|
523
|
-
class=${
|
|
528
|
+
class=${b({
|
|
524
529
|
"menu-item": !0,
|
|
525
530
|
"menu-item--active": this.active,
|
|
526
531
|
"menu-item--checkbox": this.type === "checkbox",
|
|
@@ -528,8 +533,8 @@ let i = class extends S {
|
|
|
528
533
|
"menu-item--disabled": this.disabled,
|
|
529
534
|
"menu-item--has-submenu": this.isSubmenu(),
|
|
530
535
|
"menu-item--loading": this.loading,
|
|
531
|
-
"menu-item--rtl":
|
|
532
|
-
"menu-item--submenu-expanded":
|
|
536
|
+
"menu-item--rtl": n,
|
|
537
|
+
"menu-item--submenu-expanded": i
|
|
533
538
|
})}
|
|
534
539
|
aria-haspopup=${this.isSubmenu()}
|
|
535
540
|
href=${m(this.href)}
|
|
@@ -546,7 +551,7 @@ let i = class extends S {
|
|
|
546
551
|
<div
|
|
547
552
|
id="anchor"
|
|
548
553
|
part="base"
|
|
549
|
-
class=${
|
|
554
|
+
class=${b({
|
|
550
555
|
"menu-item": !0,
|
|
551
556
|
"menu-item--active": this.active,
|
|
552
557
|
"menu-item--checkbox": this.type === "checkbox",
|
|
@@ -554,8 +559,8 @@ let i = class extends S {
|
|
|
554
559
|
"menu-item--disabled": this.disabled,
|
|
555
560
|
"menu-item--has-submenu": this.isSubmenu(),
|
|
556
561
|
"menu-item--loading": this.loading,
|
|
557
|
-
"menu-item--rtl":
|
|
558
|
-
"menu-item--submenu-expanded":
|
|
562
|
+
"menu-item--rtl": n,
|
|
563
|
+
"menu-item--submenu-expanded": i
|
|
559
564
|
})}
|
|
560
565
|
aria-haspopup=${this.isSubmenu()}
|
|
561
566
|
aria-label=${this.getTextLabel()}
|
|
@@ -568,9 +573,16 @@ let i = class extends S {
|
|
|
568
573
|
const o = this.localize.dir() === "rtl";
|
|
569
574
|
let e;
|
|
570
575
|
return this.submenuPlacement && (this.submenuPlacement.startsWith("top") || this.submenuPlacement.startsWith("bottom")) ? e = "keyboard_arrow_down" : e = o ? "chevron_left" : "chevron_right", this.renderBase(h`
|
|
571
|
-
<
|
|
576
|
+
<slot
|
|
577
|
+
part="checked-icon"
|
|
578
|
+
name="checked-icon"
|
|
579
|
+
class=${b({
|
|
580
|
+
"menu-item__check": !0,
|
|
581
|
+
"menu-item__check--always-show": this.alwaysShowCheckedIcon
|
|
582
|
+
})}
|
|
583
|
+
>
|
|
572
584
|
<cx-icon name="check"></cx-icon>
|
|
573
|
-
</
|
|
585
|
+
</slot>
|
|
574
586
|
|
|
575
587
|
<slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
|
|
576
588
|
|
|
@@ -596,87 +608,90 @@ let i = class extends S {
|
|
|
596
608
|
`);
|
|
597
609
|
}
|
|
598
610
|
};
|
|
599
|
-
|
|
600
|
-
|
|
611
|
+
t.styles = [S, $];
|
|
612
|
+
t.dependencies = {
|
|
601
613
|
"cx-icon": P,
|
|
602
614
|
"cx-popup": E,
|
|
603
615
|
"cx-spinner": z
|
|
604
616
|
};
|
|
605
|
-
|
|
617
|
+
s([
|
|
606
618
|
d("slot:not([name])")
|
|
607
|
-
],
|
|
608
|
-
|
|
619
|
+
], t.prototype, "defaultSlot", 2);
|
|
620
|
+
s([
|
|
609
621
|
d("a#anchor", !0)
|
|
610
|
-
],
|
|
611
|
-
|
|
622
|
+
], t.prototype, "anchor", 2);
|
|
623
|
+
s([
|
|
612
624
|
d(".menu-item")
|
|
613
|
-
],
|
|
614
|
-
|
|
625
|
+
], t.prototype, "menuItem", 2);
|
|
626
|
+
s([
|
|
615
627
|
d(".menu-item__chevron")
|
|
616
|
-
],
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
],
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
],
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
],
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
],
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
],
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
],
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
],
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
],
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
],
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
],
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
],
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
],
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
],
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
],
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
],
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
],
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
],
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
],
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
],
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
],
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
],
|
|
628
|
+
], t.prototype, "submenuIcon", 2);
|
|
629
|
+
s([
|
|
630
|
+
a()
|
|
631
|
+
], t.prototype, "type", 2);
|
|
632
|
+
s([
|
|
633
|
+
a({ attribute: "submenu-trigger" })
|
|
634
|
+
], t.prototype, "submenuTrigger", 2);
|
|
635
|
+
s([
|
|
636
|
+
a({ reflect: !0, type: Boolean })
|
|
637
|
+
], t.prototype, "checked", 2);
|
|
638
|
+
s([
|
|
639
|
+
a()
|
|
640
|
+
], t.prototype, "value", 2);
|
|
641
|
+
s([
|
|
642
|
+
a()
|
|
643
|
+
], t.prototype, "href", 2);
|
|
644
|
+
s([
|
|
645
|
+
a()
|
|
646
|
+
], t.prototype, "target", 2);
|
|
647
|
+
s([
|
|
648
|
+
a()
|
|
649
|
+
], t.prototype, "rel", 2);
|
|
650
|
+
s([
|
|
651
|
+
a()
|
|
652
|
+
], t.prototype, "download", 2);
|
|
653
|
+
s([
|
|
654
|
+
a({ reflect: !0, type: Boolean })
|
|
655
|
+
], t.prototype, "loading", 2);
|
|
656
|
+
s([
|
|
657
|
+
a({ reflect: !0, type: Boolean })
|
|
658
|
+
], t.prototype, "disabled", 2);
|
|
659
|
+
s([
|
|
660
|
+
a({ reflect: !0, type: Boolean })
|
|
661
|
+
], t.prototype, "active", 2);
|
|
662
|
+
s([
|
|
663
|
+
a({ reflect: !0, type: Boolean })
|
|
664
|
+
], t.prototype, "readonly", 2);
|
|
665
|
+
s([
|
|
666
|
+
a({ attribute: "flip-boundary", type: Object })
|
|
667
|
+
], t.prototype, "flipBoundary", 2);
|
|
668
|
+
s([
|
|
669
|
+
a({ attribute: "shift-boundary", type: Object })
|
|
670
|
+
], t.prototype, "shiftBoundary", 2);
|
|
671
|
+
s([
|
|
672
|
+
a({ reflect: !0 })
|
|
673
|
+
], t.prototype, "menu", 2);
|
|
674
|
+
s([
|
|
675
|
+
a({ attribute: "always-show-checked-icon", reflect: !0, type: Boolean })
|
|
676
|
+
], t.prototype, "alwaysShowCheckedIcon", 2);
|
|
677
|
+
s([
|
|
678
|
+
a({ attribute: "submenu-placement" })
|
|
679
|
+
], t.prototype, "submenuPlacement", 2);
|
|
680
|
+
s([
|
|
681
|
+
a({ reflect: !0, type: Boolean })
|
|
682
|
+
], t.prototype, "lazy", 2);
|
|
683
|
+
s([
|
|
684
|
+
f("checked")
|
|
685
|
+
], t.prototype, "handleCheckedChange", 1);
|
|
686
|
+
s([
|
|
687
|
+
f("disabled")
|
|
688
|
+
], t.prototype, "handleDisabledChange", 1);
|
|
689
|
+
s([
|
|
690
|
+
f("type")
|
|
691
|
+
], t.prototype, "handleTypeChange", 1);
|
|
692
|
+
t = s([
|
|
693
|
+
w("cx-menu-item")
|
|
694
|
+
], t);
|
|
680
695
|
export {
|
|
681
|
-
|
|
696
|
+
t as default
|
|
682
697
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
|
|
1
|
+
import { C as c } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as i } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as m } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { i as p, x } from "../chunks/lit-element.jLBm65_O.js";
|
|
5
|
+
const f = p`
|
|
4
6
|
:host {
|
|
5
7
|
display: block;
|
|
6
8
|
}
|
|
@@ -18,20 +20,20 @@ const u = c`
|
|
|
18
20
|
-webkit-user-select: none;
|
|
19
21
|
}
|
|
20
22
|
`;
|
|
21
|
-
var
|
|
22
|
-
for (var e =
|
|
23
|
-
(
|
|
23
|
+
var u = Object.getOwnPropertyDescriptor, v = (r, s, o, a) => {
|
|
24
|
+
for (var e = a > 1 ? void 0 : a ? u(s, o) : s, t = r.length - 1, n; t >= 0; t--)
|
|
25
|
+
(n = r[t]) && (e = n(e) || e);
|
|
24
26
|
return e;
|
|
25
27
|
};
|
|
26
|
-
let
|
|
28
|
+
let l = class extends c {
|
|
27
29
|
render() {
|
|
28
|
-
return
|
|
30
|
+
return x` <slot part="base" class="menu-label"></slot> `;
|
|
29
31
|
}
|
|
30
32
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
],
|
|
33
|
+
l.styles = [i, f];
|
|
34
|
+
l = v([
|
|
35
|
+
m("cx-menu-label")
|
|
36
|
+
], l);
|
|
35
37
|
export {
|
|
36
|
-
|
|
38
|
+
l as default
|
|
37
39
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { n as u, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as m } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as h } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { i as p, E as d, x as c } from "../chunks/lit-element.jLBm65_O.js";
|
|
5
|
+
import { e as f } from "../chunks/query.BBf1UFkC.js";
|
|
6
|
+
import v from "./menu-label.js";
|
|
7
|
+
const C = p`
|
|
6
8
|
:host {
|
|
7
9
|
display: block;
|
|
8
10
|
}
|
|
@@ -15,12 +17,12 @@ const C = u`
|
|
|
15
17
|
display: none;
|
|
16
18
|
}
|
|
17
19
|
`;
|
|
18
|
-
var y = Object.defineProperty, x = Object.getOwnPropertyDescriptor, a = (
|
|
19
|
-
for (var e = l > 1 ? void 0 : l ? x(t,
|
|
20
|
-
(o =
|
|
21
|
-
return l && e && y(t,
|
|
20
|
+
var y = Object.defineProperty, x = Object.getOwnPropertyDescriptor, a = (n, t, r, l) => {
|
|
21
|
+
for (var e = l > 1 ? void 0 : l ? x(t, r) : t, i = n.length - 1, o; i >= 0; i--)
|
|
22
|
+
(o = n[i]) && (e = (l ? o(t, r, e) : o(e)) || e);
|
|
23
|
+
return l && e && y(t, r, e), e;
|
|
22
24
|
};
|
|
23
|
-
let s = class extends
|
|
25
|
+
let s = class extends b {
|
|
24
26
|
constructor() {
|
|
25
27
|
super(...arguments), this.label = "", this.mutationObserver = null;
|
|
26
28
|
}
|
|
@@ -41,23 +43,23 @@ let s = class extends h {
|
|
|
41
43
|
}
|
|
42
44
|
render() {
|
|
43
45
|
return c`
|
|
44
|
-
${this.label.length > 0 ? c`<cx-menu-label part="label">${this.label}</cx-menu-label>` :
|
|
46
|
+
${this.label.length > 0 ? c`<cx-menu-label part="label">${this.label}</cx-menu-label>` : d}
|
|
45
47
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
46
48
|
`;
|
|
47
49
|
}
|
|
48
50
|
};
|
|
49
|
-
s.styles = [
|
|
51
|
+
s.styles = [m, C];
|
|
50
52
|
s.dependencies = {
|
|
51
|
-
"cx-menu-label":
|
|
53
|
+
"cx-menu-label": v
|
|
52
54
|
};
|
|
53
55
|
a([
|
|
54
|
-
|
|
56
|
+
f("slot")
|
|
55
57
|
], s.prototype, "defaultSlot", 2);
|
|
56
58
|
a([
|
|
57
|
-
|
|
59
|
+
u({ type: String })
|
|
58
60
|
], s.prototype, "label", 2);
|
|
59
61
|
s = a([
|
|
60
|
-
|
|
62
|
+
h("cx-menu-section")
|
|
61
63
|
], s);
|
|
62
64
|
export {
|
|
63
65
|
s as default
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { n as c, C as f } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as p } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as b } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { L as g } from "../chunks/i18n.DrzK7TPf.js";
|
|
5
|
+
import { i as v, x as d } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
|
+
import { r as y } from "../chunks/state.CSDxrqLd.js";
|
|
5
7
|
import { e as w } from "../chunks/query.BBf1UFkC.js";
|
|
6
8
|
import { n as x } from "../chunks/when.Dr1es41R.js";
|
|
7
9
|
import M from "./menu-item.js";
|
|
8
|
-
const k =
|
|
10
|
+
const k = v`
|
|
9
11
|
:host {
|
|
10
12
|
display: block;
|
|
11
13
|
position: relative;
|
|
@@ -100,9 +102,9 @@ var A = Object.defineProperty, I = Object.getOwnPropertyDescriptor, u = (e, t, r
|
|
|
100
102
|
function m(e) {
|
|
101
103
|
return e.tagName.toLowerCase() === "cx-menu" && e instanceof l && e.getAttribute("role") === "menu";
|
|
102
104
|
}
|
|
103
|
-
let l = class extends
|
|
105
|
+
let l = class extends f {
|
|
104
106
|
constructor() {
|
|
105
|
-
super(...arguments), this.localize = new
|
|
107
|
+
super(...arguments), this.localize = new g(this), this.horizontal = !1, this.variant = "default", this.active = !1, this.name = "", this.back = "", this.default = !1, this.bubbleKeyDown = !1, this.ignoredKeys = [], this.disabledTabLoop = !1, this.resizeObserver = null, this.slotMutationObserver = null;
|
|
106
108
|
}
|
|
107
109
|
connectedCallback() {
|
|
108
110
|
super.connectedCallback(), this.setAttribute("role", "menu"), this.slotMutationObserver = new MutationObserver(() => this.handleSlotChange()), this.slotMutationObserver.observe(this, {
|
|
@@ -378,7 +380,7 @@ let l = class extends p {
|
|
|
378
380
|
></slot>`;
|
|
379
381
|
}
|
|
380
382
|
};
|
|
381
|
-
l.styles = [
|
|
383
|
+
l.styles = [p, k];
|
|
382
384
|
u([
|
|
383
385
|
w("slot")
|
|
384
386
|
], l.prototype, "defaultSlot", 2);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { default as e } from "./bicolor-picker.js";
|
|
2
2
|
import { default as a } from "./border-input-group.js";
|
|
3
|
-
import { C as p } from "../chunks/color-swatch.
|
|
4
|
-
import { C } from "../chunks/confirm-popover.
|
|
3
|
+
import { C as p } from "../chunks/color-swatch.Bpb_hW2H.js";
|
|
4
|
+
import { C } from "../chunks/confirm-popover.C1uA36JR.js";
|
|
5
5
|
import { default as u } from "./corner-position-input-group.js";
|
|
6
|
-
import { C as m } from "../chunks/cropper.
|
|
6
|
+
import { C as m } from "../chunks/cropper.BraEEykE.js";
|
|
7
7
|
import { default as i } from "./dynamic-select.js";
|
|
8
|
-
import { C as c } from "../chunks/folder-select.
|
|
9
|
-
import { C as P } from "../chunks/list-editor.
|
|
8
|
+
import { C as c } from "../chunks/folder-select.CSEQxIXF.js";
|
|
9
|
+
import { C as P } from "../chunks/list-editor.CrLntuM7.js";
|
|
10
10
|
import { default as I } from "./masonry.js";
|
|
11
11
|
import { default as y } from "./padding-input-group.js";
|
|
12
12
|
import { default as w } from "./position-picker.js";
|