@orangelogic/design-system 2.207.0 → 2.209.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.
@@ -17451,7 +17451,7 @@ const getRndInteger = (l, t) => Math.floor(Math.random() * (t - l + 1)) + l, are
17451
17451
  [t]
17452
17452
  ), M = reactExports.useCallback(() => {
17453
17453
  const G = u.current?.querySelector("cx-menu-item[checked]");
17454
- G && (u.current?.setCurrentItem(G), Z.current?.(), Z.current = focusWhenVisible(G));
17454
+ G && (Z.current?.(), Z.current = focusWhenVisible(G));
17455
17455
  }, []), o = reactExports.useCallback(
17456
17456
  (G) => {
17457
17457
  l || N.current?.open || G.key !== "Enter" && G.key !== " " || (G.preventDefault(), N.current?.show());
@@ -1,5 +1,5 @@
1
- import x from "../components/copy-button.js";
2
- import { n as l, C as b } from "./lib-cortex-element.CVMmyPMC.js";
1
+ import b from "../components/copy-button.js";
2
+ import { n as l, C as x } from "./lib-cortex-element.CVMmyPMC.js";
3
3
  import { c as k } from "./component.styles.CRO4Odto.js";
4
4
  import { i as p } from "./lit-element.jLBm65_O.js";
5
5
  import { c as v } from "./custom-element.L4WJXn1j.js";
@@ -9,7 +9,7 @@ import { e as m } from "./query.BBf1UFkC.js";
9
9
  import { e as u } from "./class-map.BiVq-cVR.js";
10
10
  import { o as P } from "./style-map.llVFPd__.js";
11
11
  import { n as M } from "./when.Dr1es41R.js";
12
- import { i as c, u as g } from "./static.UA3G1Deq.js";
12
+ import { i as s, u as g } from "./static.UA3G1Deq.js";
13
13
  const z = p`insert,span[format]{background-color:var(--cx-color-success-200)}delete{background-color:var(--cx-color-neutral-200);text-decoration:line-through}annotate{background-color:var(--cx-color-warning-200)}.ProseMirror figure[data-track*=deletion] [data-node-type=figure],.ProseMirror cx-rich-text-code-block[data-track*=deletion],.ProseMirror cx-rich-text-image-viewer[data-track*=deletion]{border:3px solid var(--cx-color-neutral);position:relative}.ProseMirror figure[data-track*=deletion] [data-node-type=figure]:after,.ProseMirror cx-rich-text-code-block[data-track*=deletion]:after,.ProseMirror cx-rich-text-image-viewer[data-track*=deletion]:after{content:"";box-sizing:border-box;pointer-events:none;background-image:repeating-linear-gradient(45deg, var(--cx-color-neutral), var(--cx-color-neutral) 10px, #fff 10px, #fff 20px);opacity:.4;width:100%;height:100%;position:absolute;top:0;left:0}.ProseMirror figure[data-track*=insertion] [data-node-type=figure],.ProseMirror cx-rich-text-code-block[data-track*=insertion],.ProseMirror cx-rich-text-image-viewer[data-track*=insertion]{border:3px solid var(--cx-color-success)}.ProseMirror figure[data-track*=annotation] [data-node-type=figure],.ProseMirror cx-rich-text-code-block[data-track*=annotation],.ProseMirror cx-rich-text-image-viewer[data-track*=annotation]{border:3px solid var(--cx-color-warning-200)}`, C = p`
14
14
  .column-resize-handle {
15
15
  background-color: var(--editor-table-resize-handle-color);
@@ -73,29 +73,21 @@ const z = p`insert,span[format]{background-color:var(--cx-color-success-200)}del
73
73
  list-style: none;
74
74
  }
75
75
 
76
- /* Scale the number/bullet marker with the item's font (matches the content-builder text block's */
77
- .ProseMirror li::marker {
78
- font-size: var(--font-size);
79
- }
80
-
81
76
  /* Highlight the full link range when the cursor is inside it. */
82
77
  .ProseMirror .link--active {
83
78
  background-color: var(--cx-color-primary-100);
84
79
  border-radius: var(--cx-border-radius-x-small);
85
80
  }
86
81
 
87
- /* Keep a hyperlink's underline attached to superscript/subscript text. */
88
- .ProseMirror a:has(:is(sub, sup)) {
89
- text-decoration: none;
90
- }
91
-
92
- .ProseMirror a :is(sub, sup) {
93
- text-decoration: underline;
94
- }
95
-
82
+ /* Sits just above the table. TableView.updateButtonPosition() overrides top/transform
83
+ to drop it below the table when there is not enough room above; without this default
84
+ the absolute box falls back to its static position, which is already below the table,
85
+ so the handle rendered under every table instead of over it. */
96
86
  .ProseMirror .tableWrapper .floating-button {
97
87
  opacity: 0;
98
88
  position: absolute;
89
+ top: 0;
90
+ transform: translateY(-100%);
99
91
  transition: opacity 0.2s ease-in-out;
100
92
  }
101
93
 
@@ -226,13 +218,49 @@ const z = p`insert,span[format]{background-color:var(--cx-color-success-200)}del
226
218
  z-index: 2;
227
219
  }
228
220
 
221
+ /* Tiptap injects these into document.head, which never reaches this shadow root, so the
222
+ caret placed before or after a block rendered as an invisible 0px box. */
223
+ .ProseMirror-gapcursor {
224
+ display: none;
225
+ pointer-events: none;
226
+ position: absolute;
227
+ margin: 0;
228
+ }
229
+
230
+ .ProseMirror-gapcursor::after {
231
+ content: '';
232
+ display: block;
233
+ position: absolute;
234
+ top: -2px;
235
+ width: 20px;
236
+ border-top: 1px solid var(--cx-color-neutral-900);
237
+ animation: prosemirror-cursor-blink 1.1s steps(2, start) infinite;
238
+ }
239
+
240
+ .ProseMirror-focused .ProseMirror-gapcursor {
241
+ display: block;
242
+ }
243
+
244
+ @keyframes prosemirror-cursor-blink {
245
+ to {
246
+ visibility: hidden;
247
+ }
248
+ }
249
+
229
250
  .ProseMirror table td,
230
251
  .ProseMirror table th {
231
- border: 1px dashed var(--cx-color-neutral-400);
232
252
  min-width: 1rem;
233
253
  position: relative;
234
254
  }
235
255
 
256
+ /* Authoring guide only: a dashed outline so borderless cells stay visible while editing.
257
+ Read-only surfaces must render the table exactly as the saved HTML describes it,
258
+ otherwise the editor shows borders the preview does not. */
259
+ .ProseMirror[contenteditable='true'] table td,
260
+ .ProseMirror[contenteditable='true'] table th {
261
+ border: 1px dashed var(--cx-color-neutral-400);
262
+ }
263
+
236
264
  .ProseMirror table[data-align='center'] {
237
265
  margin-left: auto;
238
266
  margin-right: auto;
@@ -565,10 +593,10 @@ const z = p`insert,span[format]{background-color:var(--cx-color-success-200)}del
565
593
  `;
566
594
  var t = /* @__PURE__ */ ((e) => (e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e))(t || {}), f = /* @__PURE__ */ ((e) => (e.Center = "center", e.Justify = "justify", e.Left = "left", e.Right = "right", e))(f || {});
567
595
  const H = p`:host{--color:light-dark(#000,#fff);--line-height:1.5;--text-align:left;--padding:0;width:100%;display:block}:host([alignment=center]) .container{--text-align:center;justify-content:center}:host([alignment=right]) .container{--text-align:right;flex-direction:row-reverse}:host([alignment=left]) .container{--text-align:left;justify-content:flex-start}:host([alignment=justify]) .container{--text-align:justify;justify-content:flex-start}.container{padding:var(--padding,0px);flex-direction:row;align-items:center;display:flex}.container ::slotted(p),.container p{line-height:var(--line-height,1.5);word-wrap:break-word}.heading{color:var(--color);font-family:var(--font-family), var(--cx-font-sans);font-style:var(--font-style,normal);text-align:var(--text-align,left);max-width:100%;min-height:calc(var(--line-height,1) * 1em);flex:auto;min-height:1lh;margin-block:0}.container.container--has-copy-button .heading{flex:none;max-width:calc(100% - 32px)}.copy-button{opacity:0;transition:opacity var(--cx-transition-fast);color:var(--cx-color-neutral-600);pointer-events:none;user-select:none;line-height:0}.container:hover .copy-button,.copy-button:focus-within{opacity:1;pointer-events:auto;user-select:auto}.heading-1{font-size:var(--cx-font-size-3x-large);font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-3x-large))}.heading-2{font-size:var(--cx-font-size-2x-large);font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-3x-large))}.heading-3{font-size:var(--cx-font-size-x-large);font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-2x-large))}.heading-4{font-size:var(--cx-font-size-large);font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-x-large))}.heading-5{font-size:var(--cx-font-size-medium);font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-large))}.heading-6{font-size:var(--cx-font-size-small);font-weight:var(--font-weight,var(--cx-font-weight-semibold));line-height:var(--line-height,var(--cx-line-height-medium))}:host([custom-line-height]) .heading{line-height:unset}`;
568
- var L = Object.defineProperty, A = Object.getOwnPropertyDescriptor, n = (e, r, a, s) => {
569
- for (var i = s > 1 ? void 0 : s ? A(r, a) : r, h = e.length - 1, d; h >= 0; h--)
570
- (d = e[h]) && (i = (s ? d(r, a, i) : d(i)) || i);
571
- return s && i && L(r, a, i), i;
596
+ var L = Object.defineProperty, A = Object.getOwnPropertyDescriptor, n = (e, r, a, c) => {
597
+ for (var i = c > 1 ? void 0 : c ? A(r, a) : r, d = e.length - 1, h; d >= 0; d--)
598
+ (h = e[d]) && (i = (c ? h(r, a, i) : h(i)) || i);
599
+ return c && i && L(r, a, i), i;
572
600
  };
573
601
  const S = {
574
602
  [t.H1]: "heading-1",
@@ -578,14 +606,14 @@ const S = {
578
606
  [t.H5]: "heading-5",
579
607
  [t.H6]: "heading-6"
580
608
  }, T = {
581
- [t.H1]: c`h1`,
582
- [t.H2]: c`h2`,
583
- [t.H3]: c`h3`,
584
- [t.H4]: c`h4`,
585
- [t.H5]: c`h5`,
586
- [t.H6]: c`h6`
609
+ [t.H1]: s`h1`,
610
+ [t.H2]: s`h2`,
611
+ [t.H3]: s`h3`,
612
+ [t.H4]: s`h4`,
613
+ [t.H5]: s`h5`,
614
+ [t.H6]: s`h6`
587
615
  };
588
- let o = class extends b {
616
+ let o = class extends x {
589
617
  constructor() {
590
618
  super(), this.localize = new w(this), this.variant = t.H6, this.fontSize = void 0, this.hasAnchorLink = !1, this.anchorLink = "", this.alignment = f.Left, this.disabledCopyButton = !1, this.customLineHeight = !1, this.cms5PageReadyTimeout = null, this.scrollToAnchor = () => {
591
619
  const e = this.getAnchorID();
@@ -683,7 +711,7 @@ o.styles = [
683
711
  H
684
712
  ];
685
713
  o.dependencies = {
686
- "cx-copy-button": x
714
+ "cx-copy-button": b
687
715
  };
688
716
  n([
689
717
  m("slot")
@@ -20,7 +20,7 @@ import { default as W } from "./details.js";
20
20
  import { default as Y } from "./diff.js";
21
21
  import { C as _ } from "../chunks/dialog.B6hZ7fvn.js";
22
22
  import { default as oe } from "./divider.js";
23
- import { C as ae } from "../chunks/document-viewer.CfH1u-Ds.js";
23
+ import { C as ae } from "../chunks/document-viewer.CgSEgZ5S.js";
24
24
  import { C as xe } from "../chunks/dot-pagination.BqGFeFXK.js";
25
25
  import { default as me } from "./dot-status.js";
26
26
  import { default as pe } from "./drawer.js";
@@ -33,7 +33,7 @@ import { default as Se } from "./format-number.js";
33
33
  import { default as De } from "./format-time.js";
34
34
  import { default as we } from "./grid.js";
35
35
  import { default as he } from "./grid-item.js";
36
- import { C as Pe } from "../chunks/header.Dkkj1ztq.js";
36
+ import { C as Pe } from "../chunks/header.DcEskmXD.js";
37
37
  import { C as Me } from "../chunks/hub-connection.BtevPWYb.js";
38
38
  import { f } from "../chunks/icon.CpHbi8tH.js";
39
39
  import { C as Fe } from "../chunks/icon.CpHbi8tH.js";
@@ -1,5 +1,5 @@
1
1
  import "../chunks/resizable-component.styles.CAfXABBc.js";
2
- import { C as b } from "../chunks/document-viewer.CfH1u-Ds.js";
2
+ import { C as b } from "../chunks/document-viewer.CgSEgZ5S.js";
3
3
  import "../chunks/component.styles.CRO4Odto.js";
4
4
  import "../chunks/index.Cpamj0jB.js";
5
5
  import "../chunks/custom-element.L4WJXn1j.js";
@@ -9,22 +9,22 @@ import { a as m } from "../chunks/tabbable.BwnZBHrm.js";
9
9
  import { w as D } from "../chunks/watch.DJF5K-8U.js";
10
10
  import { i as k, x as T } from "../chunks/lit-element.jLBm65_O.js";
11
11
  import { e as h } from "../chunks/query.BBf1UFkC.js";
12
- import { e as O } from "../chunks/class-map.BiVq-cVR.js";
13
- import { o as _ } from "../chunks/if-defined.BRoBj_Rp.js";
12
+ import { e as L } from "../chunks/class-map.BiVq-cVR.js";
13
+ import { o as O } from "../chunks/if-defined.BRoBj_Rp.js";
14
14
  import { s as y, g as f } from "../chunks/animation-registry.HmpwNuGH.js";
15
- import { C as L } from "../chunks/input.33UmFGqR.js";
16
- import d from "./menu.js";
17
- import S from "./popup.js";
18
- import A from "./textarea.js";
19
- const $ = k`:host{--panel-padding:0px;--panel-overflow:auto;display:inline-block}.dropdown::part(popup){z-index:var(--cx-z-index-dropdown)}.dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}.dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}.dropdown[data-current-placement^=left]::part(popup){transform-origin:100%}.dropdown[data-current-placement^=right]::part(popup){transform-origin:0}.dropdown__trigger{display:var(--trigger-display,block)}.dropdown__panel{padding:var(--panel-padding);background-color:var(--cx-panel-background-color);border:var(--cx-panel-border-width) solid var(--cx-panel-border-color);font-family:var(--cx-font-sans);font-size:var(--cx-font-size-medium);font-weight:var(--cx-font-weight-regular);box-shadow:var(--cx-shadow-large);border-radius:var(--cx-border-radius-large);pointer-events:none;max-height:min(var(--auto-size-available-height), var(--max-height,var(--auto-size-available-height)));overflow:var(--panel-overflow,auto);display:block}.dropdown--open .dropdown__panel{pointer-events:all}::slotted(cx-menu){border:none;max-width:min(100%, var(--auto-size-available-width))!important}.dropdown__trigger::slotted(cx-tooltip){line-height:1;display:inline-block}`;
20
- var K = Object.defineProperty, F = Object.getOwnPropertyDescriptor, n = (e, t, i, a) => {
21
- for (var r = a > 1 ? void 0 : a ? F(t, i) : t, p = e.length - 1, l; p >= 0; p--)
22
- (l = e[p]) && (r = (a ? l(t, i, r) : l(r)) || r);
23
- return a && r && K(t, i, r), r;
15
+ import { C as _ } from "../chunks/input.33UmFGqR.js";
16
+ import l from "./menu.js";
17
+ import F from "./popup.js";
18
+ import S from "./textarea.js";
19
+ const A = k`:host{--panel-padding:0px;--panel-overflow:auto;display:inline-block}.dropdown::part(popup){z-index:var(--cx-z-index-dropdown)}.dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}.dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}.dropdown[data-current-placement^=left]::part(popup){transform-origin:100%}.dropdown[data-current-placement^=right]::part(popup){transform-origin:0}.dropdown__trigger{display:var(--trigger-display,block)}.dropdown__panel{padding:var(--panel-padding);background-color:var(--cx-panel-background-color);border:var(--cx-panel-border-width) solid var(--cx-panel-border-color);font-family:var(--cx-font-sans);font-size:var(--cx-font-size-medium);font-weight:var(--cx-font-weight-regular);box-shadow:var(--cx-shadow-large);border-radius:var(--cx-border-radius-large);pointer-events:none;max-height:min(var(--auto-size-available-height), var(--max-height,var(--auto-size-available-height)));overflow:var(--panel-overflow,auto);display:block}.dropdown--open .dropdown__panel{pointer-events:all}::slotted(cx-menu){border:none;max-width:min(100%, var(--auto-size-available-width))!important}.dropdown__trigger::slotted(cx-tooltip){line-height:1;display:inline-block}`;
20
+ var $ = Object.defineProperty, K = Object.getOwnPropertyDescriptor, o = (e, t, i, a) => {
21
+ for (var r = a > 1 ? void 0 : a ? K(t, i) : t, p = e.length - 1, d; p >= 0; p--)
22
+ (d = e[p]) && (r = (a ? d(t, i, r) : d(r)) || r);
23
+ return a && r && $(t, i, r), r;
24
24
  };
25
- let o = class extends w {
25
+ let n = class extends w {
26
26
  constructor() {
27
- super(), this.localize = new C(this), this.hasSlotController = new E(this, "[default]"), this.pendingFocusCancel = null, this.open = !1, this.placement = "bottom-start", this.disabled = !1, this.stayOpenOnSelect = !1, this.distance = 0, this.skidding = 0, this.hoist = !1, this.sync = void 0, this.autoWidthFactor = 1, this.ignoredKeys = [], this.noFlip = !1, this.flipPadding = 10, this.handleKeyDown = this.handleKeyDown.bind(this), this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.handlePanelSelect = this.handlePanelSelect.bind(this);
27
+ super(), this.localize = new C(this), this.hasSlotController = new E(this, "[default]"), this.pendingFocusCancel = null, this.open = !1, this.placement = "bottom-start", this.disabled = !1, this.stayOpenOnSelect = !1, this.distance = 0, this.skidding = 0, this.hoist = !1, this.sync = void 0, this.autoWidthFactor = 1, this.ignoredKeys = [], this.noFlip = !1, this.flipPadding = 10, this.handleKeyDown = this.handleKeyDown.bind(this), this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.handleDocumentFocusIn = this.handleDocumentFocusIn.bind(this), this.handlePanelSelect = this.handlePanelSelect.bind(this);
28
28
  }
29
29
  /**
30
30
  * When hoisted, floating-ui still measures available space against the trigger's real overflow ancestors (e.g. a
@@ -58,17 +58,21 @@ let o = class extends w {
58
58
  const t = e.composedPath();
59
59
  this.containingElement && !t.includes(this.containingElement) && this.hide();
60
60
  }
61
+ handleDocumentFocusIn(e) {
62
+ const t = e.composedPath();
63
+ this.containingElement && !t.includes(this.containingElement) && this.hide();
64
+ }
61
65
  handlePanelSelect(e) {
62
66
  const t = e.target;
63
67
  !this.stayOpenOnSelect && t.tagName.toLowerCase() === "cx-menu" && (this.hide(), this.focusOnTrigger());
64
68
  }
65
69
  async handleTriggerClick() {
66
70
  this.open ? (this.hide(), this.panel.assignedElements().forEach(async (e) => {
67
- e instanceof d && e.variant === "multiple" && e.resetActiveMenu();
71
+ e instanceof l && e.variant === "multiple" && e.resetActiveMenu();
68
72
  })) : (this.show(), this.focusOnTrigger());
69
73
  }
70
74
  handleTriggerKeyDown(e) {
71
- if (this.disabled || this.ignoredKeys.includes(e.key) || e.key === " " && (e.target instanceof L || e.target instanceof A || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) || !["ArrowDown", "ArrowUp", "Home", "End", "Enter", " "].includes(
75
+ if (this.disabled || this.ignoredKeys.includes(e.key) || e.key === " " && (e.target instanceof _ || e.target instanceof S || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) || !["ArrowDown", "ArrowUp", "Home", "End", "Enter", " "].includes(
72
76
  e.key
73
77
  ))
74
78
  return;
@@ -158,10 +162,10 @@ let o = class extends w {
158
162
  addOpenListeners() {
159
163
  this.panel.addEventListener("cx-select", this.handlePanelSelect), "CloseWatcher" in globalThis ? (this.closeWatcher?.destroy(), this.closeWatcher = new CloseWatcher(), this.closeWatcher.onclose = () => {
160
164
  this.hide(), this.focusOnTrigger();
161
- }) : this.panel.addEventListener("keydown", this.handleKeyDown), document.addEventListener("keydown", this.handleDocumentKeyDown), document.addEventListener("mousedown", this.handleDocumentMouseDown);
165
+ }) : this.panel.addEventListener("keydown", this.handleKeyDown), document.addEventListener("keydown", this.handleDocumentKeyDown), document.addEventListener("mousedown", this.handleDocumentMouseDown), document.addEventListener("focusin", this.handleDocumentFocusIn);
162
166
  }
163
167
  removeOpenListeners() {
164
- this.panel && (this.panel.removeEventListener("cx-select", this.handlePanelSelect), this.panel.removeEventListener("keydown", this.handleKeyDown)), document.removeEventListener("keydown", this.handleDocumentKeyDown), document.removeEventListener("mousedown", this.handleDocumentMouseDown), this.closeWatcher?.destroy();
168
+ this.panel && (this.panel.removeEventListener("cx-select", this.handlePanelSelect), this.panel.removeEventListener("keydown", this.handleKeyDown)), document.removeEventListener("keydown", this.handleDocumentKeyDown), document.removeEventListener("mousedown", this.handleDocumentMouseDown), document.removeEventListener("focusin", this.handleDocumentFocusIn), this.closeWatcher?.destroy();
165
169
  }
166
170
  async handleOpenChange() {
167
171
  if (this.disabled) {
@@ -174,7 +178,7 @@ let o = class extends w {
174
178
  dir: this.localize.dir()
175
179
  });
176
180
  await g(this.popup.popup, e, t), this.emit("cx-after-show"), this.panel.assignedElements().forEach(async (i) => {
177
- i instanceof d && i.variant === "multiple" && (await i.updateComplete, i.adjustMenuSize(0));
181
+ i instanceof l && i.variant === "multiple" && (await i.updateComplete, i.adjustMenuSize(0));
178
182
  });
179
183
  } else {
180
184
  this.pendingFocusCancel?.(), this.pendingFocusCancel = null, this.emit("cx-hide"), this.removeOpenListeners(), await u(this);
@@ -182,59 +186,59 @@ let o = class extends w {
182
186
  dir: this.localize.dir()
183
187
  });
184
188
  await g(this.popup.popup, e, t), this.panel.hidden = !0, this.popup.active = !1, this.emit("cx-after-hide"), this.panel.assignedElements().forEach(async (i) => {
185
- i instanceof d && i.variant === "multiple" && i.resetActiveMenu();
189
+ i instanceof l && i.variant === "multiple" && i.resetActiveMenu();
186
190
  });
187
191
  }
188
192
  }
189
193
  render() {
190
- return T`<cx-popup part="base" exportparts="popup:base__popup" id="dropdown" placement=${this.placement} distance=${this.distance} skidding=${this.skidding} strategy=${this.hoist ? "overlay" : "absolute"} ?flip=${!this.noFlip} shift auto-size="both" auto-size-padding="10" .autoSizeBoundary=${this.hoistBoundary} .flipBoundary=${this.hoistBoundary} .shiftBoundary=${this.hoistBoundary} flip-padding=${this.flipPadding} sync=${_(this.sync ? this.sync : void 0)} class=${O({
194
+ return T`<cx-popup part="base" exportparts="popup:base__popup" id="dropdown" placement=${this.placement} distance=${this.distance} skidding=${this.skidding} strategy=${this.hoist ? "overlay" : "absolute"} ?flip=${!this.noFlip} shift auto-size="both" auto-size-padding="10" .autoSizeBoundary=${this.hoistBoundary} .flipBoundary=${this.hoistBoundary} .shiftBoundary=${this.hoistBoundary} flip-padding=${this.flipPadding} sync=${O(this.sync ? this.sync : void 0)} class=${L({
191
195
  dropdown: !0,
192
196
  "dropdown--open": this.open
193
197
  })} auto-width-factor=${this.autoWidthFactor}><slot name="trigger" slot="anchor" part="trigger" class="dropdown__trigger" @click=${this.handleTriggerClick} @keydown=${this.handleTriggerKeyDown} @keyup=${this.handleTriggerKeyUp} @slotchange=${this.handleTriggerSlotChange}></slot><div aria-hidden=${this.open && this.hasSlotController.test("[default]") ? "false" : "true"} aria-labelledby="dropdown"><slot part="panel" class="dropdown__panel"></slot></div></cx-popup>`;
194
198
  }
195
199
  };
196
- o.styles = [b, $];
197
- o.dependencies = { "cx-popup": S };
198
- n([
200
+ n.styles = [b, A];
201
+ n.dependencies = { "cx-popup": F };
202
+ o([
199
203
  h(".dropdown")
200
- ], o.prototype, "popup", 2);
201
- n([
204
+ ], n.prototype, "popup", 2);
205
+ o([
202
206
  h(".dropdown__trigger")
203
- ], o.prototype, "trigger", 2);
204
- n([
207
+ ], n.prototype, "trigger", 2);
208
+ o([
205
209
  h(".dropdown__panel")
206
- ], o.prototype, "panel", 2);
207
- n([
210
+ ], n.prototype, "panel", 2);
211
+ o([
208
212
  s({ reflect: !0, type: Boolean })
209
- ], o.prototype, "open", 2);
210
- n([
213
+ ], n.prototype, "open", 2);
214
+ o([
211
215
  s({ reflect: !0 })
212
- ], o.prototype, "placement", 2);
213
- n([
216
+ ], n.prototype, "placement", 2);
217
+ o([
214
218
  s({ reflect: !0, type: Boolean })
215
- ], o.prototype, "disabled", 2);
216
- n([
219
+ ], n.prototype, "disabled", 2);
220
+ o([
217
221
  s({ attribute: "stay-open-on-select", reflect: !0, type: Boolean })
218
- ], o.prototype, "stayOpenOnSelect", 2);
219
- n([
222
+ ], n.prototype, "stayOpenOnSelect", 2);
223
+ o([
220
224
  s({ attribute: "containing-element" })
221
- ], o.prototype, "containingElement", 2);
222
- n([
225
+ ], n.prototype, "containingElement", 2);
226
+ o([
223
227
  s({ type: Number })
224
- ], o.prototype, "distance", 2);
225
- n([
228
+ ], n.prototype, "distance", 2);
229
+ o([
226
230
  s({ type: Number })
227
- ], o.prototype, "skidding", 2);
228
- n([
231
+ ], n.prototype, "skidding", 2);
232
+ o([
229
233
  s({ type: Boolean })
230
- ], o.prototype, "hoist", 2);
231
- n([
234
+ ], n.prototype, "hoist", 2);
235
+ o([
232
236
  s({ reflect: !0 })
233
- ], o.prototype, "sync", 2);
234
- n([
237
+ ], n.prototype, "sync", 2);
238
+ o([
235
239
  s({ attribute: "auto-width-factor" })
236
- ], o.prototype, "autoWidthFactor", 2);
237
- n([
240
+ ], n.prototype, "autoWidthFactor", 2);
241
+ o([
238
242
  s({
239
243
  attribute: "ignored-keys",
240
244
  converter: {
@@ -243,19 +247,19 @@ n([
243
247
  },
244
248
  type: String
245
249
  })
246
- ], o.prototype, "ignoredKeys", 2);
247
- n([
250
+ ], n.prototype, "ignoredKeys", 2);
251
+ o([
248
252
  s({ attribute: "no-flip", reflect: !0, type: Boolean })
249
- ], o.prototype, "noFlip", 2);
250
- n([
253
+ ], n.prototype, "noFlip", 2);
254
+ o([
251
255
  s({ attribute: "flip-padding", type: Number })
252
- ], o.prototype, "flipPadding", 2);
253
- n([
256
+ ], n.prototype, "flipPadding", 2);
257
+ o([
254
258
  D("open", { waitUntilFirstUpdate: !0 })
255
- ], o.prototype, "handleOpenChange", 1);
256
- o = n([
259
+ ], n.prototype, "handleOpenChange", 1);
260
+ n = o([
257
261
  v("cx-dropdown")
258
- ], o);
262
+ ], n);
259
263
  y("dropdown.show", {
260
264
  keyframes: [
261
265
  { opacity: 0, scale: 0.9 },
@@ -271,5 +275,5 @@ y("dropdown.hide", {
271
275
  options: { duration: 100, easing: "ease" }
272
276
  });
273
277
  export {
274
- o as default
278
+ n as default
275
279
  };
@@ -1,7 +1,7 @@
1
1
  import "./copy-button.js";
2
2
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
3
3
  import "../chunks/component.styles.CRO4Odto.js";
4
- import { C as x } from "../chunks/header.Dkkj1ztq.js";
4
+ import { C as x } from "../chunks/header.DcEskmXD.js";
5
5
  import "../chunks/custom-element.L4WJXn1j.js";
6
6
  import "../chunks/i18n.DbXTTLXx.js";
7
7
  import "../chunks/watch.DJF5K-8U.js";
@@ -352,7 +352,7 @@ let i = class extends w {
352
352
  "menu-item--loading": this.loading,
353
353
  "menu-item--rtl": t,
354
354
  "menu-item--submenu-expanded": s
355
- })} aria-haspopup=${this.isSubmenu()} href=${m(this.href)} target=${m(this.target)} download=${m(this.download)} rel=${m(this.rel)} aria-label=${this.getTextLabel()} ?inert=${this.disabled} @click=${this.handleAnchorClick}>${o}</a>` : h`<div id="anchor" part="base" class=${v({
355
+ })} aria-haspopup=${this.isSubmenu()} href=${m(this.href)} target=${m(this.target)} download=${m(this.download)} rel=${m(this.rel)} tabindex="-1" aria-label=${this.getTextLabel()} ?inert=${this.disabled} @click=${this.handleAnchorClick}>${o}</a>` : h`<div id="anchor" part="base" class=${v({
356
356
  "menu-item": !0,
357
357
  "menu-item--active": this.active,
358
358
  "menu-item--checkbox": this.type === "checkbox",