@orangelogic/design-system 2.78.0 → 2.79.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.
Files changed (184) hide show
  1. package/library/chunks/{AxisLabelRadial.BTpA5dYy.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.hIO71GLG.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.w9C0GR9v.js → CandlestickSeries.CkXGtRWE.js} +2 -2
  4. package/library/chunks/{Circle.tOnnO-F-.js → Circle.DBa5Ok8V.js} +1 -1
  5. package/library/chunks/{ColumnSeries.Ckz75x1M.js → ColumnSeries.DGazbfza.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.CCMTJT7K.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
  7. package/library/chunks/{EditableLabel.DPmicdjK.js → EditableLabel.BWeq6fgX.js} +1 -1
  8. package/library/chunks/{Gradient.BrDBLm8v.js → Gradient.CdcsPIru.js} +1 -1
  9. package/library/chunks/{LinearGradient.CxfXxvMw.js → LinearGradient.B1z9AGUt.js} +2 -2
  10. package/library/chunks/{Picture.BNASYM-P.js → Picture.YSPC0l0Q.js} +1 -1
  11. package/library/chunks/{Polygon.Dr-GV2hn.js → Polygon.BwMvXN2H.js} +1 -1
  12. package/library/chunks/{ProgressPie.4mPA6xqm.js → ProgressPie.DlCwXN17.js} +5 -5
  13. package/library/chunks/{RadialLabel.HfsGiN4x.js → RadialLabel.DyVOf2K8.js} +1 -1
  14. package/library/chunks/{Scrollbar.Bgg-RhjP.js → Scrollbar.BdZVb_Z-.js} +1 -1
  15. package/library/chunks/{Slice.Dm56LTKj.js → Slice.DiEswWa6.js} +1 -1
  16. package/library/chunks/{Slider.FKJwoPq2.js → Slider.C20No2z5.js} +1 -1
  17. package/library/chunks/{SpriteResizer.-qJDgug8.js → SpriteResizer.DFnmcy0h.js} +1 -1
  18. package/library/chunks/{Triangle.BECgi7mc.js → Triangle.BaOef7HV.js} +1 -1
  19. package/library/chunks/{ZoomTools.cgwuIB0e.js → ZoomTools.D5JPehoL.js} +1 -1
  20. package/library/chunks/{am-chart.oZVBmpnn.js → am-chart.H2jnOzFc.js} +253 -261
  21. package/library/chunks/{animation.DU8t6mrk.js → animation.7ifl4x2S.js} +3 -7
  22. package/library/chunks/{button.DS64Tr8Z.js → button.B-ktz-w4.js} +7 -40
  23. package/library/chunks/button.styles.CKqn956w.js +5 -0
  24. package/library/chunks/{color-swatch-group.C7T6-sY7.js → color-swatch-group.DvllHUil.js} +46 -216
  25. package/library/chunks/{color-swatch.BuUP5yG4.js → color-swatch.Bx-HOp9f.js} +18 -202
  26. package/library/chunks/{colorPicker.C4w_vDjh.js → colorPicker.06n6P3aK.js} +5 -5
  27. package/library/chunks/component.styles.CRO4Odto.js +5 -0
  28. package/library/chunks/confirm-popover.BbHneK19.js +121 -0
  29. package/library/chunks/{cropper.D1lO3pl-.js → cropper.DTokTzP9.js} +2533 -2904
  30. package/library/chunks/{dialog.BdXQkCKY.js → dialog.B1nzoJak.js} +40 -251
  31. package/library/chunks/dot-pagination.C26bQ3vy.js +204 -0
  32. package/library/chunks/{exporting.BdjsEGF8.js → exporting.Chnl3UWi.js} +2 -2
  33. package/library/chunks/file-on-demand.D_Mia7M9.js +1956 -0
  34. package/library/chunks/{flow.D0FqdfOy.js → flow.D2CqFQa7.js} +5 -5
  35. package/library/chunks/{folder-select.B2qxSKA5.js → folder-select.DOsefkAC.js} +20 -226
  36. package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
  37. package/library/chunks/{gantt.DfUM7Gvb.js → gantt.DSHD2gjO.js} +8 -8
  38. package/library/chunks/header.D68fIfe2.js +170 -0
  39. package/library/chunks/{hierarchy.5kfBCoGt.js → hierarchy.DwVsMmsP.js} +5 -5
  40. package/library/chunks/icon-button.BuhCp--_.js +149 -0
  41. package/library/chunks/iframe.BQFZQMTe.js +73 -0
  42. package/library/chunks/{image.DHBgKeJp.js → image.4eLWAZ3-.js} +16 -272
  43. package/library/chunks/{index.BkoLctE9.js → index.C9khsiad.js} +17 -17
  44. package/library/chunks/{json.BjaT7cyo.js → json.zyETMOw-.js} +3 -3
  45. package/library/chunks/{list-editor.DluUZa06.js → list-editor.DNa6ROgr.js} +45 -360
  46. package/library/chunks/{map.DbgNAGxD.js → map.CqM2O6LB.js} +2 -2
  47. package/library/chunks/option.DljDoFx4.js +123 -0
  48. package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
  49. package/library/chunks/{pagination.g4zErKN2.js → pagination.BiRyMwhM.js} +45 -141
  50. package/library/chunks/{percent.DO4FjAdu.js → percent.DuQwbCCg.js} +3 -3
  51. package/library/chunks/{radar.Dd5fJVMg.js → radar.FpYl3UH5.js} +4 -4
  52. package/library/chunks/{sliceGrouper.DA3aeuJ-.js → sliceGrouper.BsE7fGMt.js} +1 -1
  53. package/library/chunks/{stock.BfI5MUyK.js → stock.BR-ag4Pt.js} +9 -9
  54. package/library/chunks/{tab-group.Dg6a82ei.js → tab-group.9HbDE1AF.js} +30 -581
  55. package/library/chunks/{table.CcqrVieF.js → table.B8LpbiGE.js} +192 -2133
  56. package/library/chunks/{timeline.BxMLjB5J.js → timeline.DkzkmgEM.js} +5 -5
  57. package/library/chunks/{tree.OXvhEOjS.js → tree.q7xRVYyh.js} +31 -399
  58. package/library/chunks/typography.DJC_UXgs.js +52 -0
  59. package/library/chunks/{venn.CxFupTb9.js → venn.D739bOV3.js} +1 -1
  60. package/library/chunks/{wc.ThQubbN2.js → wc.DzW311D-.js} +1 -1
  61. package/library/chunks/{xy.q6e68du3.js → xy.DCRDfTsa.js} +10 -10
  62. package/library/components/alert.js +9 -177
  63. package/library/components/am-chart.js +2 -2
  64. package/library/components/animated-image.js +12 -100
  65. package/library/components/animation.js +2 -2
  66. package/library/components/array-line-clamp.js +7 -88
  67. package/library/components/asset-link-format.js +48 -626
  68. package/library/components/atoms.js +17 -17
  69. package/library/components/avatar.js +5 -94
  70. package/library/components/badge.js +11 -139
  71. package/library/components/bicolor-picker.js +4 -23
  72. package/library/components/border-input-group.js +4 -25
  73. package/library/components/breadcrumb-item.js +24 -155
  74. package/library/components/breadcrumb.js +3 -21
  75. package/library/components/button-group.js +3 -28
  76. package/library/components/button.js +3 -3
  77. package/library/components/card.js +4 -126
  78. package/library/components/checkbox.js +11 -252
  79. package/library/components/color-picker.js +54 -725
  80. package/library/components/color-swatch-group.js +5 -5
  81. package/library/components/color-swatch.js +3 -3
  82. package/library/components/confirm-popover.js +5 -5
  83. package/library/components/copy-button.js +9 -254
  84. package/library/components/corner-position-input-group.js +4 -57
  85. package/library/components/cropper.js +2 -2
  86. package/library/components/details.js +6 -152
  87. package/library/components/dialog.js +4 -4
  88. package/library/components/divider.js +5 -67
  89. package/library/components/dot-pagination.js +2 -2
  90. package/library/components/dot-status.js +25 -95
  91. package/library/components/drawer.js +8 -239
  92. package/library/components/dropdown.js +47 -149
  93. package/library/components/dynamic-select.js +7 -72
  94. package/library/components/e-chart.js +6 -49
  95. package/library/components/element-clamp.js +5 -78
  96. package/library/components/file-on-demand.js +9 -9
  97. package/library/components/folder-select.js +3 -3
  98. package/library/components/format-date.js +2 -6
  99. package/library/components/format-time.js +2 -12
  100. package/library/components/grid-item.js +4 -171
  101. package/library/components/grid.js +5 -41
  102. package/library/components/header.js +2 -2
  103. package/library/components/icon-button.js +2 -2
  104. package/library/components/icon.js +8 -2448
  105. package/library/components/iframe.js +2 -2
  106. package/library/components/image-comparer.js +7 -127
  107. package/library/components/image.js +2 -2
  108. package/library/components/include.js +2 -6
  109. package/library/components/input-group.js +4 -29
  110. package/library/components/input.js +21 -715
  111. package/library/components/line-clamp.js +7 -83
  112. package/library/components/list-editor.js +7 -7
  113. package/library/components/markdown.js +1 -3
  114. package/library/components/masonry.js +22 -221
  115. package/library/components/menu-item.js +9 -309
  116. package/library/components/menu-label.js +3 -20
  117. package/library/components/menu-section.js +3 -17
  118. package/library/components/menu.js +4 -112
  119. package/library/components/molecules.js +5 -5
  120. package/library/components/mutation-observer.js +2 -6
  121. package/library/components/option.js +2 -2
  122. package/library/components/organisms.js +2 -2
  123. package/library/components/padding-input-group.js +5 -16
  124. package/library/components/pagination.js +5 -5
  125. package/library/components/popup.js +204 -538
  126. package/library/components/position-picker.js +3 -93
  127. package/library/components/progress-bar.js +18 -135
  128. package/library/components/progress-ring.js +3 -94
  129. package/library/components/qr-code.js +4 -16
  130. package/library/components/radio-button.js +4 -24
  131. package/library/components/radio-card.js +7 -175
  132. package/library/components/radio-group.js +20 -151
  133. package/library/components/radio.js +13 -170
  134. package/library/components/range.js +120 -657
  135. package/library/components/rating.js +56 -236
  136. package/library/components/relative-time.js +2 -12
  137. package/library/components/resize-observer.js +3 -7
  138. package/library/components/select.js +225 -933
  139. package/library/components/shadow-input-group.js +5 -24
  140. package/library/components/share-option-list.js +18 -310
  141. package/library/components/sidebar.js +14 -220
  142. package/library/components/size-input-group.js +10 -75
  143. package/library/components/skeleton.js +7 -80
  144. package/library/components/space.js +6 -143
  145. package/library/components/spinner.js +6 -75
  146. package/library/components/split-panel.js +16 -123
  147. package/library/components/step.js +21 -272
  148. package/library/components/stepper-wizard.js +9 -43
  149. package/library/components/stepper.js +16 -33
  150. package/library/components/switch.js +11 -274
  151. package/library/components/tab-group.js +4 -4
  152. package/library/components/tab-panel.js +4 -31
  153. package/library/components/tab.js +9 -255
  154. package/library/components/table.js +6 -6
  155. package/library/components/tag.js +14 -165
  156. package/library/components/textarea.js +14 -363
  157. package/library/components/timecode.js +4 -23
  158. package/library/components/tooltip.js +8 -92
  159. package/library/components/tree-item.js +2 -2
  160. package/library/components/tree.js +2 -2
  161. package/library/components/typeface.js +18 -117
  162. package/library/components/types.js +777 -12001
  163. package/library/components/typography.js +2 -2
  164. package/library/components/video.js +3522 -5919
  165. package/library/components/visually-hidden.js +3 -15
  166. package/library/package.json +4 -1
  167. package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
  168. package/library/packages/atoms/src/components/select/select.d.ts +11 -0
  169. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
  170. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
  171. package/library/packages/types/src/table.d.ts +2 -0
  172. package/library/react-web-component.d.ts +7 -3
  173. package/package.json +4 -1
  174. package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
  175. package/library/chunks/component.styles.DMSLciL5.js +0 -71
  176. package/library/chunks/confirm-popover.BNjRvnN0.js +0 -288
  177. package/library/chunks/dot-pagination.CIVxMAAS.js +0 -325
  178. package/library/chunks/file-on-demand.BTTdth3o.js +0 -3802
  179. package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
  180. package/library/chunks/header.m7v3M94Z.js +0 -777
  181. package/library/chunks/icon-button.C3eqeQl9.js +0 -683
  182. package/library/chunks/iframe.CNEyWhcM.js +0 -160
  183. package/library/chunks/option.Csqefux_.js +0 -296
  184. package/library/chunks/typography.oDzoLbZS.js +0 -149
@@ -3,7 +3,7 @@ import l from "./input-group.js";
3
3
  import m from "./space.js";
4
4
  import { n as h, C as x } from "../chunks/lib-cortex-element.CVMmyPMC.js";
5
5
  import f from "./bicolor-picker.js";
6
- import { c as d } from "../chunks/component.styles.DMSLciL5.js";
6
+ import { c as d } from "../chunks/component.styles.CRO4Odto.js";
7
7
  import { c as g } from "../chunks/custom-element.L4WJXn1j.js";
8
8
  import { i as v, x as c } from "../chunks/lit-element.jLBm65_O.js";
9
9
  import { c as b } from "../chunks/repeat.DbF2p5ae.js";
@@ -52,37 +52,18 @@ let i = class extends x {
52
52
  });
53
53
  }
54
54
  render() {
55
- return c`<cx-space spacing="x-small" wrap="nowrap" align-items="end">
56
- <cx-input-group @cx-change=${this.handleInputChange}>
57
- ${b(
55
+ return c`<cx-space spacing="x-small" wrap="nowrap" align-items="end"><cx-input-group @cx-change=${this.handleInputChange}>${b(
58
56
  ["X", "Y", "Blur", "Spread"],
59
57
  (r) => r,
60
- (r, e) => c`<cx-input
61
- data-index=${e}
62
- id=${r}
63
- label=${r}
64
- value=${this.value[e] ?? ""}
65
- mask="numpx"
66
- .maskBlocks=${{
58
+ (r, e) => c`<cx-input data-index=${e} id=${r} label=${r} value=${this.value[e] ?? ""} mask="numpx" .maskBlocks=${{
67
59
  num: {
68
60
  mask: Number,
69
61
  min: r === "Blur" ? 0 : -1 / 0,
70
62
  scale: 0,
71
63
  thousandsSeparator: ""
72
64
  }
73
- }}
74
- .form=${this.closest("form")}
75
- >
76
- </cx-input>`
77
- )}
78
- </cx-input-group>
79
- <cx-bicolor-picker
80
- part="border-color"
81
- value=${`${this.value[4] ?? ""} ${this.value[5] ?? ""}`}
82
- .form=${this.closest("form")}
83
- @cx-bicolor-picker-change=${this.handleBicolorPickerChange}
84
- ></cx-bicolor-picker>
85
- </cx-space>`;
65
+ }} .form=${this.closest("form")}></cx-input>`
66
+ )}</cx-input-group><cx-bicolor-picker part="border-color" value=${`${this.value[4] ?? ""} ${this.value[5] ?? ""}`} .form=${this.closest("form")} @cx-bicolor-picker-change=${this.handleBicolorPickerChange}></cx-bicolor-picker></cx-space>`;
86
67
  }
87
68
  };
88
69
  i.styles = [d, $];
@@ -1,7 +1,7 @@
1
1
  import _ from "./icon.js";
2
2
  import I from "./resize-observer.js";
3
3
  import { n as h, C as P } from "../chunks/lib-cortex-element.CVMmyPMC.js";
4
- import { c as C } from "../chunks/component.styles.DMSLciL5.js";
4
+ import { c as C } from "../chunks/component.styles.CRO4Odto.js";
5
5
  import { c as O } from "../chunks/animate.El-MpOws.js";
6
6
  import { c as w } from "../chunks/custom-element.L4WJXn1j.js";
7
7
  import { L as E } from "../chunks/i18n.BUW7B9hr.js";
@@ -17,7 +17,7 @@ import { c as M } from "../chunks/repeat.DbF2p5ae.js";
17
17
  import { o as k } from "../chunks/style-map.llVFPd__.js";
18
18
  import { n as $ } from "../chunks/when.Dr1es41R.js";
19
19
  import T from "./tooltip.js";
20
- import { C as A } from "../chunks/typography.oDzoLbZS.js";
20
+ import { C as A } from "../chunks/typography.DJC_UXgs.js";
21
21
  import { H as R } from "../chunks/slot.j5oheLJC.js";
22
22
  const N = (e, t) => {
23
23
  let i = 0;
@@ -68,49 +68,7 @@ if (!U) {
68
68
  }
69
69
  );
70
70
  }
71
- const D = z`
72
- :host {
73
- display: block;
74
- }
75
-
76
- .share-option-list-item {
77
- align-items: center;
78
- cursor: pointer;
79
- display: flex;
80
- flex-direction: column;
81
- gap: var(--cx-spacing-3x-small);
82
- justify-content: center;
83
- }
84
-
85
- .share-option-list-item--disabled {
86
- cursor: not-allowed;
87
- pointer-events: none;
88
- opacity: 0.5;
89
- }
90
-
91
- .share-option-list-item__icon {
92
- align-items: center;
93
- border-radius: var(--cx-border-radius-medium);
94
- border: 1px solid var(--cx-color-neutral-200);
95
- display: flex;
96
- height: var(--item-size, 3.5rem);
97
- justify-content: center;
98
- width: var(--item-size, 3.5rem);
99
- }
100
-
101
- .share-option-list-item--selected .share-option-list-item__icon {
102
- border-color: var(--cx-color-primary);
103
- }
104
-
105
- .share-option-list-item__icon cx-icon {
106
- --font-size: var(--item-font-size, 2rem);
107
- }
108
-
109
- .share-option-list-item--selected .share-option-list-item__label {
110
- --color: var(--cx-color-primary);
111
- --font-weight: var(--cx-font-weight-semibold);
112
- }
113
- `;
71
+ const D = z`:host{display:block}.share-option-list-item{cursor:pointer;align-items:center;gap:var(--cx-spacing-3x-small);flex-direction:column;justify-content:center;display:flex}.share-option-list-item--disabled{cursor:not-allowed;pointer-events:none;opacity:.5}.share-option-list-item__icon{border-radius:var(--cx-border-radius-medium);border:1px solid var(--cx-color-neutral-200);height:var(--item-size,3.5rem);width:var(--item-size,3.5rem);justify-content:center;align-items:center;display:flex}.share-option-list-item--selected .share-option-list-item__icon{border-color:var(--cx-color-primary)}.share-option-list-item__icon cx-icon{--font-size:var(--item-font-size,2rem)}.share-option-list-item--selected .share-option-list-item__label{--color:var(--cx-color-primary);--font-weight:var(--cx-font-weight-semibold)}`;
114
72
  var B = Object.defineProperty, j = Object.getOwnPropertyDescriptor, p = (e, t, i, s) => {
115
73
  for (var o = s > 1 ? void 0 : s ? j(t, i) : t, n = e.length - 1, r; n >= 0; n--)
116
74
  (r = e[n]) && (o = (s ? r(t, i, o) : r(o)) || o);
@@ -138,31 +96,15 @@ let d = class extends P {
138
96
  }
139
97
  render() {
140
98
  const e = this.hasSlotController.test("[default]");
141
- return g`<div
142
- part="base"
143
- class=${u({
99
+ return g`<div part="base" class=${u({
144
100
  "share-option-list-item": !0,
145
101
  "share-option-list-item--disabled": this.disabled,
146
102
  "share-option-list-item--selected": this.selected
147
- })}
148
- @click=${this.handleClick}
149
- >
150
- <cx-tooltip
151
- content=${this.tooltip}
152
- ?disabled=${this.disabled || !e}
153
- >
154
- <div class="share-option-list-item__icon">
155
- ${$(
103
+ })} @click=${this.handleClick}><cx-tooltip content=${this.tooltip} ?disabled=${this.disabled || !e}><div class="share-option-list-item__icon">${$(
156
104
  this.isSVG,
157
105
  () => g`<cx-icon src=${this.processedIcon}></cx-icon>`,
158
106
  () => g`<cx-icon name=${this.icon}></cx-icon>`
159
- )}
160
- </div>
161
- <cx-typography class="share-option-list-item__label" variant="small">
162
- <slot></slot>
163
- </cx-typography>
164
- </cx-tooltip>
165
- </div>`;
107
+ )}</div><cx-typography class="share-option-list-item__label" variant="small"><slot></slot></cx-typography></cx-tooltip></div>`;
166
108
  }
167
109
  };
168
110
  d.styles = [C, D];
@@ -195,173 +137,7 @@ p([
195
137
  d = p([
196
138
  w("cx-share-option-list-item")
197
139
  ], d);
198
- const V = z`
199
- :host {
200
- --border: none;
201
- --border-radius: var(--cx-border-radius-small);
202
- --height: 100%;
203
- --item-size: 3.5rem;
204
- --item-font-size: 2rem;
205
- --scroll-hint: 0px;
206
- --slide-gap: var(--cx-spacing-medium, 1rem);
207
-
208
- display: flex;
209
- height: var(--height);
210
- width: 100%;
211
- }
212
-
213
- .share-option-list {
214
- display: grid;
215
- gap: var(--cx-spacing-medium);
216
- align-items: center;
217
- min-height: 100%;
218
- min-width: 100%;
219
- position: relative;
220
- }
221
-
222
- .share-option-list--horizontal {
223
- grid-template-columns: minmax(2rem, max-content) 1fr minmax(
224
- 2rem,
225
- max-content
226
- );
227
- grid-template-areas: '. slides .';
228
- }
229
-
230
- .share-option-list--vertical {
231
- grid-template-rows: minmax(2rem, max-content) 1fr minmax(2rem, max-content);
232
- grid-template-areas:
233
- '.'
234
- 'slides'
235
- '.';
236
- }
237
-
238
- .share-option-list__placeholder {
239
- grid-area: slides;
240
- width: 100%;
241
- height: 100%;
242
- position: absolute;
243
- opacity: 0;
244
- pointer-events: none;
245
- z-index: -1;
246
- top: 0;
247
- left: 0;
248
- }
249
-
250
- .share-option-list__slides {
251
- grid-area: slides;
252
- display: grid;
253
- height: 100%;
254
- width: min(100%, var(--width));
255
- align-items: center;
256
- overflow: auto;
257
- overscroll-behavior-x: contain;
258
- scrollbar-width: none;
259
- border-radius: var(--cx-border-radius-small);
260
- justify-self: start;
261
-
262
- --slide-size: calc(
263
- (100% - (var(--slides-per-page) - 1) * var(--slide-gap)) /
264
- var(--slides-per-page)
265
- );
266
- }
267
-
268
- .share-option-list__slides--horizontal {
269
- grid-auto-flow: column;
270
- grid-auto-columns: var(--slide-size);
271
- grid-auto-rows: 100%;
272
- column-gap: var(--slide-gap);
273
- scroll-snap-type: x mandatory;
274
- scroll-padding-inline: var(--scroll-hint);
275
- padding-inline: var(--scroll-hint);
276
- overflow-y: hidden;
277
- }
278
-
279
- .share-option-list__slides--vertical {
280
- grid-auto-flow: row;
281
- grid-auto-columns: 100%;
282
- grid-auto-rows: var(--slide-size);
283
- row-gap: var(--slide-gap);
284
- scroll-snap-type: y mandatory;
285
- scroll-padding-block: var(--scroll-hint);
286
- padding-block: var(--scroll-hint);
287
- overflow-x: hidden;
288
- }
289
-
290
- .share-option-list__navigation {
291
- --font-size: var(--cx-font-size-x-large);
292
-
293
- align-items: center;
294
- display: flex;
295
- font-size: var(--font-size);
296
- justify-content: space-between;
297
- position: absolute;
298
- z-index: 1;
299
- }
300
-
301
- .share-option-list__navigation--horizontal {
302
- height: 0;
303
- left: 0;
304
- transform: translateY(-50%);
305
- width: 100%;
306
- padding: 0 var(--cx-spacing-small);
307
- }
308
-
309
- .share-option-list__navigation--vertical {
310
- flex-direction: column;
311
- height: 100%;
312
- left: 50%;
313
- top: 0;
314
- transform: translateX(-50%);
315
- width: 0;
316
- padding: var(--cx-spacing-small) 0;
317
- }
318
-
319
- .share-option-list__navigation-button {
320
- flex: 0 0 auto;
321
- display: flex;
322
- align-items: center;
323
- background: transparent;
324
- border: none;
325
- border-radius: var(--cx-border-radius-circle);
326
- font-size: inherit;
327
- color: var(--cx-color-neutral-600);
328
- padding: 0;
329
- cursor: pointer;
330
- transition: var(--cx-transition-medium) color;
331
- appearance: none;
332
- }
333
-
334
- .share-option-list__navigation-button--disabled {
335
- opacity: 0.5;
336
- cursor: default;
337
- }
338
-
339
- .share-option-list__navigation-button--disabled::part(base) {
340
- pointer-events: none;
341
- }
342
-
343
- .share-option-list__navigation-button--hidden {
344
- opacity: 0;
345
- pointer-events: none;
346
- }
347
-
348
- .share-option-list__navigation-button--previous {
349
- grid-column: 1;
350
- grid-row: 1;
351
- }
352
-
353
- .share-option-list__navigation-button--next {
354
- grid-column: 3;
355
- grid-row: 1;
356
- }
357
-
358
- /* Focus styles */
359
- .share-option-list__slides:focus-visible,
360
- .share-option-list__navigation-button:focus-visible {
361
- outline: var(--cx-focus-ring);
362
- outline-offset: var(--cx-focus-ring-offset);
363
- }
364
- `;
140
+ const V = z`:host{--border:none;--border-radius:var(--cx-border-radius-small);--height:100%;--item-size:3.5rem;--item-font-size:2rem;--scroll-hint:0px;--slide-gap:var(--cx-spacing-medium,1rem);height:var(--height);width:100%;display:flex}.share-option-list{gap:var(--cx-spacing-medium);align-items:center;min-width:100%;min-height:100%;display:grid;position:relative}.share-option-list--horizontal{grid-template-columns:minmax(2rem,max-content) 1fr minmax(2rem,max-content);grid-template-areas:".slides."}.share-option-list--vertical{grid-template-rows:minmax(2rem,max-content) 1fr minmax(2rem,max-content);grid-template-areas:".""slides""."}.share-option-list__placeholder{opacity:0;pointer-events:none;z-index:-1;grid-area:slides;width:100%;height:100%;position:absolute;top:0;left:0}.share-option-list__slides{height:100%;width:min(100%, var(--width));overscroll-behavior-x:contain;scrollbar-width:none;border-radius:var(--cx-border-radius-small);--slide-size:calc((100% - (var(--slides-per-page) - 1) * var(--slide-gap)) / var(--slides-per-page));grid-area:slides;justify-self:start;align-items:center;display:grid;overflow:auto}.share-option-list__slides--horizontal{grid-auto-flow:column;grid-auto-columns:var(--slide-size);column-gap:var(--slide-gap);scroll-snap-type:x mandatory;scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint);grid-auto-rows:100%;overflow-y:hidden}.share-option-list__slides--vertical{grid-auto-columns:100%;grid-auto-flow:row;grid-auto-rows:var(--slide-size);row-gap:var(--slide-gap);scroll-snap-type:y mandatory;scroll-padding-block:var(--scroll-hint);padding-block:var(--scroll-hint);overflow-x:hidden}.share-option-list__navigation{--font-size:var(--cx-font-size-x-large);font-size:var(--font-size);z-index:1;justify-content:space-between;align-items:center;display:flex;position:absolute}.share-option-list__navigation--horizontal{width:100%;height:0;padding:0 var(--cx-spacing-small);left:0;transform:translateY(-50%)}.share-option-list__navigation--vertical{width:0;height:100%;padding:var(--cx-spacing-small) 0;flex-direction:column;top:0;left:50%;transform:translate(-50%)}.share-option-list__navigation-button{border-radius:var(--cx-border-radius-circle);font-size:inherit;color:var(--cx-color-neutral-600);cursor:pointer;transition:var(--cx-transition-medium) color;appearance:none;background:0 0;border:none;flex:none;align-items:center;padding:0;display:flex}.share-option-list__navigation-button--disabled{opacity:.5;cursor:default}.share-option-list__navigation-button--disabled::part(base){pointer-events:none}.share-option-list__navigation-button--hidden{opacity:0;pointer-events:none}.share-option-list__navigation-button--previous{grid-area:1/1}.share-option-list__navigation-button--next{grid-area:1/3}.share-option-list__slides:focus-visible,.share-option-list__navigation-button:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}`;
365
141
  var G = Object.defineProperty, H = Object.getOwnPropertyDescriptor, a = (e, t, i, s) => {
366
142
  for (var o = s > 1 ? void 0 : s ? H(t, i) : t, n = e.length - 1, r; n >= 0; n--)
367
143
  (r = e[n]) && (o = (s ? r(t, i, o) : r(o)) || o);
@@ -591,111 +367,43 @@ let l = class extends P {
591
367
  }
592
368
  render() {
593
369
  const { scrolling: e } = this, t = this.canScrollPrev(), i = this.canScrollNext(), s = this.localize.dir() === "ltr", o = getComputedStyle(this).getPropertyValue("--item-size"), n = getComputedStyle(this).getPropertyValue("--slide-gap");
594
- return g`
595
- <cx-resize-observer @cx-resize=${this.calculateSlidesPerPage}>
596
- <div
597
- part="base"
598
- class=${u({
370
+ return g`<cx-resize-observer @cx-resize=${this.calculateSlidesPerPage}><div part="base" class=${u({
599
371
  "share-option-list": !0,
600
372
  "share-option-list--empty": this.data.length === 0,
601
373
  "share-option-list--horizontal": this.orientation === "horizontal",
602
374
  "share-option-list--vertical": this.orientation === "vertical"
603
- })}
604
- @cx-share-option-list-item-selected=${this.handleShareOptionListItemSelected}
605
- >
606
- <div class="share-option-list__placeholder"></div>
607
- <div
608
- id="scroll-container"
609
- part="scroll-container"
610
- class=${u({
375
+ })} @cx-share-option-list-item-selected=${this.handleShareOptionListItemSelected}><div class="share-option-list__placeholder"></div><div id="scroll-container" part="scroll-container" class=${u({
611
376
  "share-option-list__slides": !0,
612
377
  "share-option-list__slides--horizontal": this.orientation === "horizontal",
613
378
  "share-option-list__slides--vertical": this.orientation === "vertical"
614
- })}
615
- style=${k({
379
+ })} style=${k({
616
380
  "--slides-per-page": this.calculatedSlidesPerPage,
617
381
  "--width": `calc(${this.calculatedSlidesPerPage} * ${o} + (${this.calculatedSlidesPerPage - 1} * ${n}))`
618
- })}
619
- aria-busy=${e ? "true" : "false"}
620
- aria-atomic="true"
621
- tabindex="0"
622
- @keydown=${this.handleKeyDown}
623
- @scroll=${this.handleScroll}
624
- @scrollend=${this.handleScrollEnd}
625
- >
626
- ${M(
382
+ })} aria-busy=${e ? "true" : "false"} aria-atomic="true" tabindex="0" @keydown=${this.handleKeyDown} @scroll=${this.handleScroll} @scrollend=${this.handleScrollEnd}>${M(
627
383
  this.data,
628
384
  (r) => r.id,
629
- (r, c) => g`<cx-share-option-list-item
630
- data-index=${c}
631
- value=${r.id}
632
- icon=${r.icon}
633
- tooltip=${r.tooltip}
634
- ?disabled=${r.disabled}
635
- ?selected=${r.id === this.selectedItem}
636
- >
637
- ${r.name}
638
- </cx-share-option-list-item>`
639
- )}
640
- </div>
641
-
642
- <slot hidden></slot>
643
-
644
- ${$(
385
+ (r, c) => g`<cx-share-option-list-item data-index=${c} value=${r.id} icon=${r.icon} tooltip=${r.tooltip} ?disabled=${r.disabled} ?selected=${r.id === this.selectedItem}>${r.name}</cx-share-option-list-item>`
386
+ )}</div><slot hidden></slot>${$(
645
387
  this.navigation === "arrows" || this.navigation === "both",
646
388
  () => {
647
389
  let r = s ? "chevron_left" : "chevron_right", c = s ? "chevron_right" : "chevron_left";
648
- return this.orientation === "vertical" && (r = "expand_less", c = "expand_more"), g`
649
- <div
650
- part="navigation"
651
- class=${u({
390
+ return this.orientation === "vertical" && (r = "expand_less", c = "expand_more"), g`<div part="navigation" class=${u({
652
391
  "share-option-list__navigation": !0,
653
392
  "share-option-list__navigation--horizontal": this.orientation === "horizontal",
654
393
  "share-option-list__navigation--vertical": this.orientation === "vertical"
655
- })}
656
- >
657
- <button
658
- part="navigation-button navigation-button--previous"
659
- class=${u({
394
+ })}><button part="navigation-button navigation-button--previous" class=${u({
660
395
  "share-option-list__navigation-button": !0,
661
396
  "share-option-list__navigation-button--disabled": !t,
662
397
  "share-option-list__navigation-button--hidden": !t,
663
398
  "share-option-list__navigation-button--previous": !0
664
- })}
665
- aria-label=${this.localize.term("previousSlide")}
666
- aria-controls="scroll-container"
667
- aria-disabled=${String(!t)}
668
- @click=${t ? this.handlePreviousButtonClick : null}
669
- >
670
- <slot name="previous-icon">
671
- <cx-icon name=${r}></cx-icon>
672
- </slot>
673
- </button>
674
-
675
- <button
676
- part="navigation-button navigation-button--next"
677
- class=${u({
399
+ })} aria-label=${this.localize.term("previousSlide")} aria-controls="scroll-container" aria-disabled=${String(!t)} @click=${t ? this.handlePreviousButtonClick : null}><slot name="previous-icon"><cx-icon name=${r}></cx-icon></slot></button><button part="navigation-button navigation-button--next" class=${u({
678
400
  "share-option-list__navigation-button": !0,
679
401
  "share-option-list__navigation-button--disabled": !i,
680
402
  "share-option-list__navigation-button--hidden": !i,
681
403
  "share-option-list__navigation-button--next": !0
682
- })}
683
- aria-label=${this.localize.term("nextSlide")}
684
- aria-controls="scroll-container"
685
- aria-disabled=${String(!i)}
686
- @click=${i ? this.handleNextButtonClick : null}
687
- >
688
- <slot name="next-icon">
689
- <cx-icon name=${c}></cx-icon>
690
- </slot>
691
- </button>
692
- </div>
693
- `;
404
+ })} aria-label=${this.localize.term("nextSlide")} aria-controls="scroll-container" aria-disabled=${String(!i)} @click=${i ? this.handleNextButtonClick : null}><slot name="next-icon"><cx-icon name=${c}></cx-icon></slot></button></div>`;
694
405
  }
695
- )}
696
- </div>
697
- </cx-resize-observer>
698
- `;
406
+ )}</div></cx-resize-observer>`;
699
407
  }
700
408
  };
701
409
  l.styles = [C, V];