@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
@@ -1,188 +1,40 @@
1
- import { n as r, C as z } from "./lib-cortex-element.CVMmyPMC.js";
2
- import { c as S } from "./component.styles.DMSLciL5.js";
3
- import { O, C as D, H, z as B, o as L } from "./overlayscrollbars.XhGWx9Zk.js";
1
+ import { n as r, C as k } from "./lib-cortex-element.CVMmyPMC.js";
2
+ import { c as S } from "./component.styles.CRO4Odto.js";
3
+ import { O, C as D, H, z as B, o as $ } from "./overlayscrollbars.BMav4RQ4.js";
4
4
  import { a as c, s as p } from "./animate.El-MpOws.js";
5
- import { c as P } from "./custom-element.L4WJXn1j.js";
5
+ import { c as A } from "./custom-element.L4WJXn1j.js";
6
6
  import { w as x } from "./event.mFzZi4sr.js";
7
- import { L as $ } from "./i18n.BUW7B9hr.js";
8
- import { M as A } from "./modal.U1QltQKe.js";
7
+ import { L } from "./i18n.BUW7B9hr.js";
8
+ import { M as P } from "./modal.U1QltQKe.js";
9
9
  import { l as w, u as _ } from "./scroll.xtO5yojm.js";
10
10
  import { H as E } from "./slot.j5oheLJC.js";
11
- import { w as k } from "./watch.BCJD77bD.js";
11
+ import { w as z } from "./watch.BCJD77bD.js";
12
12
  import { i as R, x as y, E as W } from "./lit-element.jLBm65_O.js";
13
- import { r as g } from "./state.CSDxrqLd.js";
14
- import { e as m } from "./query.BBf1UFkC.js";
13
+ import { r as m } from "./state.CSDxrqLd.js";
14
+ import { e as g } from "./query.BBf1UFkC.js";
15
15
  import { e as v } from "./class-map.BiVq-cVR.js";
16
16
  import { o as C } from "./if-defined.BRoBj_Rp.js";
17
17
  import { o as q } from "./style-map.llVFPd__.js";
18
18
  import { n as b } from "./when.Dr1es41R.js";
19
19
  import { s as u, g as h } from "./animation-registry.HmpwNuGH.js";
20
20
  import F from "../components/divider.js";
21
- import { C as I } from "./icon-button.C3eqeQl9.js";
22
- import T from "../components/popup.js";
21
+ import { C as I } from "./icon-button.BuhCp--_.js";
22
+ import U from "../components/popup.js";
23
23
  var l = /* @__PURE__ */ ((e) => (e.Both = "both", e.Footer = "footer", e.Header = "header", e.None = "none", e))(l || {});
24
- const U = R`
25
- :host {
26
- --width: 31rem;
27
- --header-spacing: var(--cx-spacing-small) var(--cx-spacing-large);
28
- --body-spacing: var(--cx-spacing-medium) var(--cx-spacing-large);
29
- --divider-spacing: 0;
30
- --footer-spacing: var(--cx-spacing-medium);
31
- --max-width: 100%;
32
- --max-height: 100%;
33
- --overlay-background-color: var(--cx-overlay-background-color);
34
-
35
- display: contents;
36
- }
37
-
38
- .dialog {
39
- display: flex;
40
- align-items: center;
41
- justify-content: center;
42
- }
43
-
44
- .dialog--absolute {
45
- position: absolute;
46
- }
47
-
48
- .dialog__panel {
49
- display: flex;
50
- flex-direction: column;
51
- width: var(--width);
52
- height: var(--dialog-height, auto);
53
- background-color: var(--cx-panel-background-color);
54
- border-radius: var(--cx-border-radius-medium);
55
- box-shadow: var(--cx-shadow-x-large);
56
- overflow: hidden;
57
- max-width: calc(var(--max-width) - var(--cx-spacing-2x-large));
58
- max-height: calc(var(--max-height) - var(--cx-spacing-2x-large));
59
- }
60
-
61
- .dialog__panel:focus {
62
- outline: none;
63
- }
64
-
65
- /* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */
66
- @media screen and (max-width: 420px) {
67
- .dialog__panel {
68
- max-height: 80vh;
69
- }
70
- }
71
-
72
- .dialog--open .dialog__panel {
73
- display: flex;
74
- opacity: 1;
75
- }
76
-
77
- .dialog__header {
78
- flex: 0 0 auto;
79
- display: flex;
80
- padding: var(--header-spacing);
81
- }
82
-
83
- .dialog__header-divider,
84
- .dialog__footer-divider {
85
- --spacing: 0;
86
- padding: var(--divider-spacing);
87
- }
88
-
89
- .dialog__title {
90
- display: flex;
91
- align-items: center;
92
- flex: 1 1 auto;
93
- font: inherit;
94
- font-family: var(--cx-font-sans);
95
- font-size: var(--cx-font-size-large);
96
- font-weight: var(--cx-font-weight-regular);
97
- line-height: var(--cx-line-height-large);
98
- margin: 0;
99
- }
100
-
101
- .dialog__header-actions {
102
- flex-shrink: 0;
103
- display: flex;
104
- flex-wrap: wrap;
105
- justify-content: end;
106
- gap: var(--cx-spacing-2x-small);
107
- }
108
-
109
- .dialog__header-actions cx-icon-button,
110
- .dialog__header-actions ::slotted(cx-icon-button) {
111
- flex: 0 0 auto;
112
- display: flex;
113
- align-items: center;
114
- font-size: var(--cx-font-size-3x-large);
115
- }
116
-
117
- .dialog__body {
118
- flex: 1 1 auto;
119
- display: block;
120
- padding: var(--body-spacing);
121
- overflow: auto;
122
- -webkit-overflow-scrolling: touch;
123
- font-size: var(--cx-font-size-medium);
124
- font-weight: var(--cx-font-weight-regular);
125
- line-height: var(--cx-line-height-small);
126
- position: relative;
127
- /* https://link.orangelogic.com/Tasks/41SL03 */
128
- z-index: 2;
129
- }
130
-
131
- .dialog--overlay-scrollbar .dialog__body {
132
- display: flex;
133
- flex-direction: column;
134
- }
135
-
136
- .dialog__footer {
137
- flex: 0 0 auto;
138
- text-align: right;
139
- padding: var(--footer-spacing);
140
- position: relative;
141
- z-index: 1;
142
- }
143
-
144
- .dialog__footer ::slotted(cx-button:not(:first-of-type)) {
145
- margin-inline-start: var(--cx-spacing-x-small);
146
- }
147
-
148
- .dialog:not(.dialog--has-footer) .dialog__footer {
149
- display: none;
150
- }
151
-
152
- @media (forced-colors: active) {
153
- .dialog__panel {
154
- border: solid 1px var(--cx-color-neutral-0);
155
- }
156
- }
157
-
158
- .dialog__overlay {
159
- display: flex;
160
- align-items: center;
161
- justify-content: center;
162
- background-color: var(--overlay-background-color);
163
- opacity: 0;
164
- pointer-events: none;
165
- z-index: 1;
166
- }
167
-
168
- .dialog--open .dialog__overlay {
169
- opacity: 1;
170
- pointer-events: auto;
171
- }
172
- `;
173
- var j = Object.defineProperty, M = Object.getOwnPropertyDescriptor, i = (e, o, a, n) => {
174
- for (var s = n > 1 ? void 0 : n ? M(o, a) : o, d = e.length - 1, f; d >= 0; d--)
24
+ const j = R`:host{--width:31rem;--header-spacing:var(--cx-spacing-small) var(--cx-spacing-large);--body-spacing:var(--cx-spacing-medium) var(--cx-spacing-large);--divider-spacing:0;--footer-spacing:var(--cx-spacing-medium);--max-width:100%;--max-height:100%;--overlay-background-color:var(--cx-overlay-background-color);display:contents}.dialog{justify-content:center;align-items:center;display:flex}.dialog--absolute{position:absolute}.dialog__panel{width:var(--width);height:var(--dialog-height,auto);background-color:var(--cx-panel-background-color);border-radius:var(--cx-border-radius-medium);box-shadow:var(--cx-shadow-x-large);max-width:calc(var(--max-width) - var(--cx-spacing-2x-large));max-height:calc(var(--max-height) - var(--cx-spacing-2x-large));flex-direction:column;display:flex;overflow:hidden}.dialog__panel:focus{outline:none}@media screen and (width<=420px){.dialog__panel{max-height:80vh}}.dialog--open .dialog__panel{opacity:1;display:flex}.dialog__header{padding:var(--header-spacing);flex:none;display:flex}.dialog__header-divider,.dialog__footer-divider{--spacing:0;padding:var(--divider-spacing)}.dialog__title{font:inherit;font-family:var(--cx-font-sans);font-size:var(--cx-font-size-large);font-weight:var(--cx-font-weight-regular);line-height:var(--cx-line-height-large);flex:auto;align-items:center;margin:0;display:flex}.dialog__header-actions{justify-content:end;gap:var(--cx-spacing-2x-small);flex-wrap:wrap;flex-shrink:0;display:flex}.dialog__header-actions cx-icon-button,.dialog__header-actions ::slotted(cx-icon-button){font-size:var(--cx-font-size-3x-large);flex:none;align-items:center;display:flex}.dialog__body{padding:var(--body-spacing);-webkit-overflow-scrolling:touch;font-size:var(--cx-font-size-medium);font-weight:var(--cx-font-weight-regular);line-height:var(--cx-line-height-small);z-index:2;flex:auto;display:block;position:relative;overflow:auto}.dialog--overlay-scrollbar .dialog__body{flex-direction:column;display:flex}.dialog__footer{text-align:right;padding:var(--footer-spacing);z-index:1;flex:none;position:relative}.dialog__footer ::slotted(cx-button:not(:first-of-type)){margin-inline-start:var(--cx-spacing-x-small)}.dialog:not(.dialog--has-footer) .dialog__footer{display:none}@media (forced-colors:active){.dialog__panel{border:solid 1px var(--cx-color-neutral-0)}}.dialog__overlay{background-color:var(--overlay-background-color);opacity:0;pointer-events:none;z-index:1;justify-content:center;align-items:center;display:flex}.dialog--open .dialog__overlay{opacity:1;pointer-events:auto}`;
25
+ var M = Object.defineProperty, T = Object.getOwnPropertyDescriptor, i = (e, o, a, n) => {
26
+ for (var s = n > 1 ? void 0 : n ? T(o, a) : o, d = e.length - 1, f; d >= 0; d--)
175
27
  (f = e[d]) && (s = (n ? f(o, a, s) : f(s)) || s);
176
- return n && s && j(o, a, s), s;
28
+ return n && s && M(o, a, s), s;
177
29
  };
178
30
  O.plugin({
179
31
  ClickScroll: B,
180
32
  ScrollbarsHiding: H,
181
33
  SizeObserver: D
182
34
  });
183
- let t = class extends z {
35
+ let t = class extends k {
184
36
  constructor() {
185
- super(), this.hasSlotController = new E(this, "footer"), this.localize = new $(this), this.modal = new A(this), this.open = !1, this.label = "", this.noHeader = !1, this.boundary = document.body, this.dividerPosition = l.Header, this.useOverlayScrollbar = !1, this.overlayScrollbarAutoHide = "scroll", this.overlayScrollbarAutoHideDelay = 1e3, this.disableOverlayClick = !1, this.stayOpenOutsideClick = !1, this.strategy = "fixed", this.osInstance = null, this.boundaryObserver = null, this.boundarySize = {
37
+ super(), this.hasSlotController = new E(this, "footer"), this.localize = new L(this), this.modal = new P(this), this.open = !1, this.label = "", this.noHeader = !1, this.boundary = document.body, this.dividerPosition = l.Header, this.useOverlayScrollbar = !1, this.overlayScrollbarAutoHide = "scroll", this.overlayScrollbarAutoHideDelay = 1e3, this.disableOverlayClick = !1, this.stayOpenOutsideClick = !1, this.strategy = "fixed", this.osInstance = null, this.boundaryObserver = null, this.boundarySize = {
186
38
  height: 0,
187
39
  width: 0
188
40
  }, this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.preventBoundaryDialogClose = this.preventBoundaryDialogClose.bind(this), this.handleWindowResize = this.handleWindowResize.bind(this);
@@ -364,122 +216,59 @@ let t = class extends z {
364
216
  return this.open = !1, x(this, "cx-after-hide");
365
217
  }
366
218
  render() {
367
- return y`
368
- <cx-popup
369
- part="base"
370
- ?active=${this.open}
371
- strategy=${this.strategy === "overlay" ? "overlay" : "fixed"}
372
- class=${v({
219
+ return y`<cx-popup part="base" ?active=${this.open} strategy=${this.strategy === "overlay" ? "overlay" : "fixed"} class=${v({
373
220
  popup: !0
374
- })}
375
- placement="center"
376
- >
377
- <div
378
- class=${v({
221
+ })} placement="center"><div class=${v({
379
222
  dialog: !0,
380
223
  "dialog--has-footer": this.hasSlotController.test("footer"),
381
224
  "dialog--open": this.open,
382
225
  "dialog--overlay-scrollbar": this.useOverlayScrollbar
383
- })}
384
- >
385
- <div
386
- part="overlay"
387
- class=${v({
226
+ })}><div part="overlay" class=${v({
388
227
  dialog__overlay: !0
389
- })}
390
- tabindex="-1"
391
- style=${q({
228
+ })} tabindex="-1" style=${q({
392
229
  height: `${this.boundarySize.height}px`,
393
230
  width: `${this.boundarySize.width}px`
394
- })}
395
- >
396
- <div
397
- part="panel"
398
- class="dialog__panel"
399
- role="dialog"
400
- aria-modal="true"
401
- aria-hidden=${this.open ? "false" : "true"}
402
- aria-label=${C(this.noHeader ? this.label : void 0)}
403
- aria-labelledby=${C(this.noHeader ? void 0 : "title")}
404
- tabindex="-1"
405
- >
406
- ${b(
231
+ })}><div part="panel" class="dialog__panel" role="dialog" aria-modal="true" aria-hidden=${this.open ? "false" : "true"} aria-label=${C(this.noHeader ? this.label : void 0)} aria-labelledby=${C(this.noHeader ? void 0 : "title")} tabindex="-1">${b(
407
232
  this.noHeader,
408
233
  () => W,
409
- () => y`
410
- <header part="header" class="dialog__header">
411
- <h2 part="title" class="dialog__title" id="title">
412
- <slot name="label">
413
- ${this.label.length > 0 ? this.label : "\uFEFF"}
414
- </slot>
415
- </h2>
416
- <div part="header-actions" class="dialog__header-actions">
417
- <slot name="header-actions"></slot>
418
- <cx-icon-button
419
- part="close-button"
420
- exportparts="base:close-button__base"
421
- class="dialog__close"
422
- name="close"
423
- label=${this.localize.term("close")}
424
- @click=${this.handleCloseButtonClick}
425
- ></cx-icon-button>
426
- </div>
427
- </header>
428
- ${b(
234
+ () => y`<header part="header" class="dialog__header"><h2 part="title" class="dialog__title" id="title"><slot name="label">${this.label.length > 0 ? this.label : "\uFEFF"}</slot></h2><div part="header-actions" class="dialog__header-actions"><slot name="header-actions"></slot><cx-icon-button part="close-button" exportparts="base:close-button__base" class="dialog__close" name="close" label=${this.localize.term("close")} @click=${this.handleCloseButtonClick}></cx-icon-button></div></header>${b(
429
235
  [
430
236
  l.Header,
431
237
  l.Both
432
238
  ].includes(this.dividerPosition),
433
- () => y`
434
- <cx-divider class="dialog__header-divider"></cx-divider>
435
- `
239
+ () => y`<cx-divider class="dialog__header-divider"></cx-divider>`
436
240
  )}
437
241
  `
438
- )}
439
- <!-- The tabindex="-1" is here because the body is technically scrollable if overflowing.
242
+ )}<!-- The tabindex="-1" is here because the body is technically scrollable if overflowing.
440
243
  However, if there's no focusable elements inside, you won't actually be able to scroll it via keyboard.
441
244
  Previously this was just a <slot>, but tabindex="-1" on the slot causes children to not be focusable.
442
- https://github.com/shoelace-style/shoelace/issues/1753#issuecomment-1836803277 -->
443
- <div part="body" class="dialog__body" tabindex="-1">
444
- <slot></slot>
445
- </div>
446
- ${b(
245
+ https://github.com/shoelace-style/shoelace/issues/1753#issuecomment-1836803277 --><div part="body" class="dialog__body" tabindex="-1"><slot></slot></div>${b(
447
246
  [
448
247
  l.Footer,
449
248
  l.Both
450
249
  ].includes(this.dividerPosition),
451
- () => y`
452
- <cx-divider class="dialog__footer-divider"></cx-divider>
453
- `
454
- )}
455
- <footer part="footer" class="dialog__footer">
456
- <slot name="footer"></slot>
457
- </footer>
458
- </div>
459
- </div>
460
- </div>
461
- </cx-popup>
462
- `;
250
+ () => y`<cx-divider class="dialog__footer-divider"></cx-divider>`
251
+ )}<footer part="footer" class="dialog__footer"><slot name="footer"></slot></footer></div></div></div></cx-popup>`;
463
252
  }
464
253
  };
465
254
  t.styles = [
466
255
  S,
467
- L,
468
- U
256
+ $,
257
+ j
469
258
  ];
470
259
  t.dependencies = {
471
260
  "cx-divider": F,
472
261
  "cx-icon-button": I,
473
- "cx-popup": T
262
+ "cx-popup": U
474
263
  };
475
264
  i([
476
- m(".popup")
265
+ g(".popup")
477
266
  ], t.prototype, "popup", 2);
478
267
  i([
479
- m(".dialog__panel")
268
+ g(".dialog__panel")
480
269
  ], t.prototype, "panel", 2);
481
270
  i([
482
- m(".dialog__body")
271
+ g(".dialog__body")
483
272
  ], t.prototype, "body", 2);
484
273
  i([
485
274
  r({ reflect: !0, type: Boolean })
@@ -535,22 +324,22 @@ i([
535
324
  r({ reflect: !0 })
536
325
  ], t.prototype, "strategy", 2);
537
326
  i([
538
- g()
327
+ m()
539
328
  ], t.prototype, "overlay", 2);
540
329
  i([
541
- g()
330
+ m()
542
331
  ], t.prototype, "boundaryObserver", 2);
543
332
  i([
544
- g()
333
+ m()
545
334
  ], t.prototype, "boundarySize", 2);
546
335
  i([
547
- k(["boundary"], { waitUntilFirstUpdate: !0 })
336
+ z(["boundary"], { waitUntilFirstUpdate: !0 })
548
337
  ], t.prototype, "updatePopupAnchor", 1);
549
338
  i([
550
- k("open", { waitUntilFirstUpdate: !0 })
339
+ z("open", { waitUntilFirstUpdate: !0 })
551
340
  ], t.prototype, "handleOpenChange", 1);
552
341
  t = i([
553
- P("cx-dialog")
342
+ A("cx-dialog")
554
343
  ], t);
555
344
  u("dialog.show", {
556
345
  keyframes: [
@@ -0,0 +1,204 @@
1
+ import { n as s, C as P } from "./lib-cortex-element.CVMmyPMC.js";
2
+ import { c as z } from "./component.styles.CRO4Odto.js";
3
+ import { O as C } from "./index.Cpamj0jB.js";
4
+ import { c as F } from "./custom-element.L4WJXn1j.js";
5
+ import { L as S } from "./i18n.BUW7B9hr.js";
6
+ import { w as f } from "./watch.BCJD77bD.js";
7
+ import { i as O, x as y } from "./lit-element.jLBm65_O.js";
8
+ import { r as j } from "./state.CSDxrqLd.js";
9
+ import { e as K } from "./query.BBf1UFkC.js";
10
+ import { r as H } from "./query-all.i3PyvTUQ.js";
11
+ import { e as L } from "./class-map.BiVq-cVR.js";
12
+ import { o as E } from "./if-defined.BRoBj_Rp.js";
13
+ import { o as D } from "./map.D8heArFD.js";
14
+ import { n as w } from "./when.Dr1es41R.js";
15
+ import T from "../components/tooltip.js";
16
+ const B = O`:host{display:inline-block}:host([orientation=vertical]){height:100%}:host([orientation=vertical]) .dot-pagination{flex-direction:column;height:100%}.dot-pagination{justify-content:center;gap:var(--cx-spacing-small);flex-wrap:wrap;display:flex}.dot-pagination__dot{cursor:pointer;border-radius:var(--cx-border-radius-circle);width:var(--cx-spacing-small);height:var(--cx-spacing-small);background:0 0;background-color:var(--cx-color-neutral-300);border:0;margin:0;padding:0;display:block}.dot-pagination__dot--active{background-color:var(--cx-color-neutral-500)}.dot-pagination__dot--transitioning{cursor:default;opacity:.5}.dot-pagination__ellipsis{color:var(--cx-color-neutral-400);font-size:var(--cx-font-size-small);font-weight:var(--cx-font-weight-medium);user-select:none;min-width:var(--cx-spacing-small);height:var(--cx-spacing-small);justify-content:center;align-items:center;display:flex}.dot-pagination__dot:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}@media (width<=640px){.dot-pagination{gap:var(--cx-spacing-x-small);padding:var(--cx-spacing-medium)}}@media (prefers-contrast:high){.dot-pagination__dot{border:1px solid var(--cx-color-neutral-600)}.dot-pagination__dot--active{border-color:var(--cx-color-neutral-700)}}@media (prefers-reduced-motion:reduce){.dot-pagination__dot{transition:none}}`;
17
+ var R = Object.defineProperty, V = Object.getOwnPropertyDescriptor, i = (t, n, e, c) => {
18
+ for (var l = c > 1 ? void 0 : c ? V(n, e) : n, r = t.length - 1, a; r >= 0; r--)
19
+ (a = t[r]) && (l = (c ? a(n, e, l) : a(l)) || l);
20
+ return c && l && R(n, e, l), l;
21
+ };
22
+ let o = class extends P {
23
+ constructor() {
24
+ super(...arguments), this.localize = new S(this), this.activeIndex = 0, this.totalItemsCount = 0, this.visibleItemsCount = 1, this.step = 1, this.centerDots = 5, this.frontDots = 3, this.backDots = 3, this.loop = !1, this.orientation = C.Horizontal, this.transitioning = !1, this.tooltipPlacement = void 0, this.tooltipDescription = void 0, this.description = void 0, this.controlIds = [], this.dots = {
25
+ back: [],
26
+ backEllipsis: !1,
27
+ center: [],
28
+ front: [],
29
+ frontEllipsis: !1
30
+ };
31
+ }
32
+ calculateDots() {
33
+ const {
34
+ activeIndex: t,
35
+ backDots: n,
36
+ centerDots: e,
37
+ frontDots: c,
38
+ loop: l,
39
+ step: r,
40
+ totalItemsCount: a,
41
+ visibleItemsCount: p
42
+ } = this, U = a % p !== 0 ? Math.ceil(a / p) * p : a, m = l ? U : a, I = m - a, $ = l ? m : m - (p - r), M = I >= r ? $ - I : $, g = a > 0 ? Math.max(1, Math.ceil(M / r)) : 0, v = Math.floor(e / 2), _ = Math.floor(t / r), d = {
43
+ back: [],
44
+ backEllipsis: !1,
45
+ center: [],
46
+ front: [],
47
+ frontEllipsis: !1
48
+ }, N = c + e + n, x = l ? m : Math.max(0, m - p);
49
+ if (g <= N)
50
+ d.front = Array.from(
51
+ { length: g },
52
+ (u, h) => Math.min(h * r, x)
53
+ );
54
+ else {
55
+ d.frontEllipsis = _ > c + v, d.backEllipsis = _ < g - n - v - 1, d.front = Array.from(
56
+ { length: c },
57
+ (k, b) => Math.min(b * r, x)
58
+ ), d.back = Array.from(
59
+ { length: n },
60
+ (k, b) => Math.min((g - n + b) * r, x)
61
+ );
62
+ let u, h;
63
+ d.frontEllipsis ? d.backEllipsis ? (u = _ - v, h = u + e) : (h = g - n, u = h - e) : (u = c, h = u + e), d.center = Array.from({ length: h - u }, (k, b) => {
64
+ const A = (u + b) * r;
65
+ return Math.min(A, x);
66
+ });
67
+ }
68
+ this.dots = d;
69
+ }
70
+ /**
71
+ * Carousel focus active item when key is pressed from pagination
72
+ */
73
+ focus() {
74
+ this.activeDot?.focus();
75
+ }
76
+ handleDotClick(t) {
77
+ const n = t.currentTarget, e = Number(n.dataset.index);
78
+ e === this.activeIndex || isNaN(e) || (this.activeIndex = e, this.emit("cx-dot-pagination-change", {
79
+ detail: {
80
+ active: e
81
+ }
82
+ }));
83
+ }
84
+ handleKeyDown(t) {
85
+ const n = t.target;
86
+ if (t.key === "Enter" || t.key === " ") {
87
+ t.preventDefault(), n.click();
88
+ return;
89
+ }
90
+ const e = this.orientation === C.Horizontal, c = e ? ["ArrowRight"] : ["ArrowDown"], l = e ? ["ArrowLeft"] : ["ArrowUp"];
91
+ if (![...c, ...l].includes(t.key))
92
+ return;
93
+ t.preventDefault(), t.stopPropagation();
94
+ const r = Array.from(this.allDots), a = r.indexOf(n);
95
+ if (a === -1)
96
+ return;
97
+ let p = c.includes(t.key) ? a + 1 : a - 1;
98
+ this.loop ? p = (p + r.length) % r.length : p = Math.max(0, Math.min(p, r.length - 1)), r[p]?.focus();
99
+ }
100
+ handleFocus() {
101
+ this.emit("cx-dot-pagination-focus");
102
+ }
103
+ renderEllipsis() {
104
+ return y`<span part="ellipsis" class="dot-pagination__ellipsis" aria-hidden="true">
105
+ •••
106
+ </span>`;
107
+ }
108
+ renderDot(t) {
109
+ const n = t + 1, e = y`<button part="dot${this.activeIndex === t ? " dot--active" : ""}" class=${L({
110
+ "dot-pagination__dot": !0,
111
+ "dot-pagination__dot--active": t === this.activeIndex,
112
+ "dot-pagination__dot--transitioning": this.transitioning
113
+ })} role="tab" type="button" aria-selected=${t === this.activeIndex ? "true" : "false"} aria-label=${this.localize.term("slideNum", n)} aria-controls=${E(this.controlIds[t])} tabindex="0" data-index=${t} ?disabled=${this.transitioning} @click=${this.handleDotClick} @keydown=${this.handleKeyDown} @focus=${this.handleFocus}></button>`;
114
+ return w(
115
+ this.tooltipPlacement,
116
+ () => y`<cx-tooltip content=${this.tooltipDescription || t + 1} placement=${this.tooltipPlacement}>${e}</cx-tooltip>`,
117
+ () => e
118
+ );
119
+ }
120
+ render() {
121
+ return y`<div part="base" class="dot-pagination" role="tablist" aria-roledescription=${E(this.description || void 0)} aria-label=${this.localize.term("pagination")}>${D(this.dots.front, (t) => this.renderDot(t))}
122
+ ${w(this.dots.frontEllipsis, () => this.renderEllipsis())}
123
+ ${D(this.dots.center, (t) => this.renderDot(t))}
124
+ ${w(this.dots.backEllipsis, () => this.renderEllipsis())}
125
+ ${D(this.dots.back, (t) => this.renderDot(t))}</div>`;
126
+ }
127
+ };
128
+ o.styles = [z, B];
129
+ o.dependencies = { "cx-tooltip": T };
130
+ i([
131
+ K(".dot-pagination__dot--active")
132
+ ], o.prototype, "activeDot", 2);
133
+ i([
134
+ H(".dot-pagination__dot")
135
+ ], o.prototype, "allDots", 2);
136
+ i([
137
+ s({ attribute: "active-index", reflect: !0, type: Number })
138
+ ], o.prototype, "activeIndex", 2);
139
+ i([
140
+ s({ attribute: "total-items-count", reflect: !0, type: Number })
141
+ ], o.prototype, "totalItemsCount", 2);
142
+ i([
143
+ s({ attribute: "visible-items-count", reflect: !0, type: Number })
144
+ ], o.prototype, "visibleItemsCount", 2);
145
+ i([
146
+ s({ reflect: !0, type: Number })
147
+ ], o.prototype, "step", 2);
148
+ i([
149
+ s({ attribute: "center-dots", reflect: !0, type: Number })
150
+ ], o.prototype, "centerDots", 2);
151
+ i([
152
+ s({ attribute: "front-dots", reflect: !0, type: Number })
153
+ ], o.prototype, "frontDots", 2);
154
+ i([
155
+ s({ attribute: "back-dots", reflect: !0, type: Number })
156
+ ], o.prototype, "backDots", 2);
157
+ i([
158
+ s({ reflect: !0, type: Boolean })
159
+ ], o.prototype, "loop", 2);
160
+ i([
161
+ s({ reflect: !0, type: String })
162
+ ], o.prototype, "orientation", 2);
163
+ i([
164
+ s({ reflect: !0, type: Boolean })
165
+ ], o.prototype, "transitioning", 2);
166
+ i([
167
+ s({ attribute: "tooltip-placement", reflect: !0, type: String })
168
+ ], o.prototype, "tooltipPlacement", 2);
169
+ i([
170
+ s({ attribute: "tooltip-description", reflect: !0, type: String })
171
+ ], o.prototype, "tooltipDescription", 2);
172
+ i([
173
+ s({ reflect: !0, type: String })
174
+ ], o.prototype, "description", 2);
175
+ i([
176
+ s({
177
+ attribute: "control-ids",
178
+ converter: {
179
+ fromAttribute: (t) => t?.split(" ") ?? [],
180
+ toAttribute: (t) => t.join(" ")
181
+ },
182
+ reflect: !0
183
+ })
184
+ ], o.prototype, "controlIds", 2);
185
+ i([
186
+ j()
187
+ ], o.prototype, "dots", 2);
188
+ i([
189
+ f("centerDots", { waitUntilFirstUpdate: !0 }),
190
+ f("frontDots", { waitUntilFirstUpdate: !0 }),
191
+ f("backDots", { waitUntilFirstUpdate: !0 }),
192
+ f("activeIndex", { waitUntilFirstUpdate: !0 }),
193
+ f("step", { waitUntilFirstUpdate: !0 }),
194
+ f("visibleItemsCount", { waitUntilFirstUpdate: !0 }),
195
+ f("loop", { waitUntilFirstUpdate: !0 }),
196
+ f("totalItemsCount")
197
+ ], o.prototype, "calculateDots", 1);
198
+ o = i([
199
+ F("cx-dot-pagination")
200
+ ], o);
201
+ export {
202
+ o as C,
203
+ B as d
204
+ };
@@ -1,5 +1,5 @@
1
- import { E as F, a7 as V, z as O, _ as f, e as S, a8 as H, a9 as z, aa as D, a as W, ab as N, f as U, ac as x, ad as I, ae as J, M as q, s as G, c as w, g as K, af as j, ag as Q, ah as $, ai as Y, C as Z, x as T } from "./am-chart.oZVBmpnn.js";
2
- import { P as tt } from "./Picture.BNASYM-P.js";
1
+ import { E as F, a7 as V, z as O, _ as f, e as S, a8 as H, a9 as z, aa as D, a as W, ab as N, f as U, ac as x, ad as I, ae as J, M as q, s as G, c as w, g as K, af as j, ag as Q, ah as $, ai as Y, C as Z, x as T } from "./am-chart.H2jnOzFc.js";
2
+ import { P as tt } from "./Picture.YSPC0l0Q.js";
3
3
  let L;
4
4
  function et() {
5
5
  return f(this, void 0, void 0, function* () {