@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,71 +0,0 @@
1
- import { i as t } from "./lit-element.jLBm65_O.js";
2
- const o = t`
3
- :host {
4
- box-sizing: border-box;
5
- }
6
-
7
- :host *,
8
- :host *::before,
9
- :host *::after {
10
- box-sizing: inherit;
11
- }
12
-
13
- [hidden],
14
- :not(:defined):not(video-js) {
15
- display: initial;
16
- visibility: hidden !important;
17
- width: 0 !important;
18
- height: 0 !important;
19
- padding: 0 !important;
20
- margin: 0 !important;
21
- border: none !important;
22
- }
23
-
24
- ::-webkit-scrollbar {
25
- width: 17px;
26
- height: 17px;
27
- }
28
-
29
- ::-webkit-scrollbar-button:decrement {
30
- height: 0;
31
- }
32
-
33
- ::-webkit-scrollbar-button:increment {
34
- height: 0;
35
- }
36
-
37
- ::-webkit-scrollbar-button:decrement:horizontal {
38
- width: 0;
39
- }
40
-
41
- ::-webkit-scrollbar-button:increment:horizontal {
42
- width: 0;
43
- }
44
-
45
- ::-webkit-scrollbar-thumb {
46
- border-radius: 13px;
47
- background: var(--cx-color-neutral-400);
48
- background-clip: padding-box;
49
- border: 7px solid rgba(0, 0, 0, 0);
50
- }
51
-
52
- ::-webkit-scrollbar-thumb:hover {
53
- background: var(--cx-color-neutral-500);
54
- background-clip: padding-box;
55
- border: 4px solid rgba(0, 0, 0, 0);
56
- }
57
-
58
- ::-webkit-scrollbar-thumb {
59
- min-height: 50px;
60
- }
61
-
62
- ::-webkit-scrollbar-button:vertical:start:increment,
63
- ::-webkit-scrollbar-button:vertical:end:decrement,
64
- ::-webkit-scrollbar-button:horizontal:start:increment,
65
- ::-webkit-scrollbar-button:horizontal:end:decrement {
66
- display: none;
67
- }
68
- `;
69
- export {
70
- o as c
71
- };
@@ -1,288 +0,0 @@
1
- import { C as _ } from "./button.DS64Tr8Z.js";
2
- import { C as u, D as h } from "./dialog.BdXQkCKY.js";
3
- import g from "../components/dropdown.js";
4
- import { C as x } from "./typography.oDzoLbZS.js";
5
- import { n as e, C as b } from "./lib-cortex-element.CVMmyPMC.js";
6
- import { c as y } from "./component.styles.DMSLciL5.js";
7
- import { c as w } from "./custom-element.L4WJXn1j.js";
8
- import { L as $ } from "./i18n.BUW7B9hr.js";
9
- import { i as z, x as d } from "./lit-element.jLBm65_O.js";
10
- import { e as m } from "./query.BBf1UFkC.js";
11
- import { e as a } from "./class-map.BiVq-cVR.js";
12
- var f = /* @__PURE__ */ ((t) => (t.Horizontal = "horizontal", t.HorizontalReverse = "horizontal-reverse", t.Vertical = "vertical", t.VerticalReverse = "vertical-reverse", t))(f || {}), v = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Start = "start", t))(v || {});
13
- const S = z`
14
- .confirm-popover--dropdown .confirm-popover__dropdown-content {
15
- display: flex;
16
- flex-direction: column;
17
- padding: var(--cx-spacing-medium);
18
- width: max-content;
19
- text-align: center;
20
- }
21
-
22
- .confirm-popover cx-divider {
23
- --spacing: var(--cx-spacing-medium);
24
- }
25
-
26
- .confirm-popover .confirm-popover__actions {
27
- display: flex;
28
- gap: var(--cx-spacing-medium);
29
- }
30
-
31
- .confirm-popover--dialog {
32
- --width: var(--confirm-popover-dialog-width);
33
- }
34
-
35
- /** Horizontal direction */
36
- .confirm-popover__actions--direction-horizontal {
37
- flex-direction: row;
38
- }
39
-
40
- .confirm-popover__actions--direction-horizontal-reverse {
41
- flex-direction: row-reverse;
42
- }
43
-
44
- .confirm-popover__actions--direction-horizontal.confirm-popover__actions--alignment-end,
45
- .confirm-popover__actions--direction-horizontal-reverse.confirm-popover__actions--alignment-start {
46
- justify-content: flex-end;
47
- }
48
-
49
- .confirm-popover__actions--direction-horizontal.confirm-popover__actions--alignment-start,
50
- .confirm-popover__actions--direction-horizontal-reverse.confirm-popover__actions--alignment-end {
51
- justify-content: flex-start;
52
- }
53
-
54
- .confirm-popover__actions--direction-horizontal.confirm-popover__actions--alignment-center,
55
- .confirm-popover__actions--direction-horizontal-reverse.confirm-popover__actions--alignment-center {
56
- justify-content: center;
57
- }
58
-
59
- /** Vertical direction */
60
- .confirm-popover__actions--direction-vertical {
61
- flex-direction: column;
62
- }
63
-
64
- .confirm-popover__actions--direction-vertical-reverse {
65
- flex-direction: column-reverse;
66
- }
67
-
68
- .confirm-popover__actions--direction-vertical.confirm-popover__actions--alignment-start,
69
- .confirm-popover__actions--direction-vertical-reverse.confirm-popover__actions--alignment-start {
70
- align-items: flex-start;
71
- }
72
-
73
- .confirm-popover__actions--direction-vertical.confirm-popover__actions--alignment-end,
74
- .confirm-popover__actions--direction-vertical-reverse.confirm-popover__actions--alignment-end {
75
- align-items: flex-end;
76
- }
77
-
78
- .confirm-popover__actions--direction-vertical.confirm-popover__actions--alignment-center,
79
- .confirm-popover__actions--direction-vertical-reverse.confirm-popover__actions--alignment-center {
80
- align-items: center;
81
- }
82
-
83
- /** Dropdown variant */
84
- .confirm-popover--dropdown .confirm-popover__actions {
85
- justify-content: center;
86
- margin-top: var(--cx-spacing-small);
87
- }
88
-
89
- /** Buttons */
90
- .confirm-popover__confirm-button {
91
- --background-color: var(
92
- --confirm-button-background-color,
93
- var(--cx-color-danger)
94
- );
95
- --color: var(--confirm-button-color, var(--cx-color-neutral-0));
96
- }
97
-
98
- .confirm-popover__cancel-button {
99
- --background-color: var(
100
- --cancel-button-background-color,
101
- var(--cx-color-primary-500)
102
- );
103
- --color: var(--cancel-button-color, var(--cx-color-neutral-0));
104
- }
105
- `;
106
- var D = Object.defineProperty, C = Object.getOwnPropertyDescriptor, r = (t, n, s, c) => {
107
- for (var i = c > 1 ? void 0 : c ? C(n, s) : n, p = t.length - 1, l; p >= 0; p--)
108
- (l = t[p]) && (i = (c ? l(n, s, i) : l(i)) || i);
109
- return c && i && D(n, s, i), i;
110
- };
111
- let o = class extends b {
112
- constructor() {
113
- super(...arguments), this.localize = new $(this), this.message = "", this.disabled = !1, this.buttonsDirection = f.Horizontal, this.buttonsAlignment = v.End, this.dividerPosition = h.Header, this.dialogLabel = "", this.confirmText = "", this.cancelText = "", this.variant = "dropdown", this.boundary = document.body;
114
- }
115
- get open() {
116
- return this.variant === "dialog" ? this.dialog.open : this.dropdown.open;
117
- }
118
- hide() {
119
- this.variant === "dialog" ? this.dialog.hide() : this.dropdown.hide();
120
- }
121
- show() {
122
- this.variant === "dialog" ? this.dialog.show() : this.dropdown.show();
123
- }
124
- confirm() {
125
- this.emit("cx-confirm").defaultPrevented || this.hide();
126
- }
127
- cancel() {
128
- this.emit("cx-cancel").defaultPrevented || this.hide();
129
- }
130
- handleSlotClick() {
131
- if (this.disabled) {
132
- this.confirm();
133
- return;
134
- }
135
- this.variant === "dialog" && (this.dialog.open ? this.dialog.hide() : this.dialog.show());
136
- }
137
- renderSlot() {
138
- return d`<slot
139
- class="confirm-popover__trigger"
140
- name="trigger"
141
- slot="trigger"
142
- @click=${this.handleSlotClick}
143
- ></slot>`;
144
- }
145
- renderDialog() {
146
- return d`${this.renderSlot()}
147
- <cx-dialog
148
- part="dialog"
149
- label=${this.dialogLabel || this.localize.term("confirm")}
150
- divider-position=${this.dividerPosition}
151
- .boundary=${this.boundary}
152
- class=${a({
153
- "confirm-popover": !0,
154
- "confirm-popover--dialog": !0
155
- })}
156
- >
157
- <cx-typography variant="body2">${this.message}</cx-typography>
158
- <div
159
- part="actions"
160
- class=${a({
161
- "confirm-popover__actions": !0,
162
- [`confirm-popover__actions--direction-${this.buttonsDirection}`]: !0,
163
- [`confirm-popover__actions--alignment-${this.buttonsAlignment}`]: !0
164
- })}
165
- slot="footer"
166
- >
167
- <cx-button
168
- part="confirm-button"
169
- class="confirm-popover__confirm-button"
170
- @click=${this.confirm}
171
- variant="custom"
172
- >
173
- ${this.confirmText || this.localize.term("confirm")}
174
- </cx-button>
175
- <cx-button
176
- part="cancel-button"
177
- class="confirm-popover__cancel-button"
178
- @click=${this.cancel}
179
- variant="custom"
180
- >
181
- ${this.cancelText || this.localize.term("cancel")}
182
- </cx-button>
183
- </div>
184
- <div part="footer" class="confirm-popover__footer">
185
- <slot name="footer"></slot>
186
- </div>
187
- </cx-dialog>`;
188
- }
189
- renderDropdown() {
190
- return d`<cx-dropdown
191
- part="dropdown"
192
- class=${a({
193
- "confirm-popover": !0,
194
- "confirm-popover--dropdown": !0
195
- })}
196
- no-header
197
- ?disabled=${this.disabled}
198
- ?hoist=${!this.boundary || this.boundary === document.body}
199
- >
200
- ${this.renderSlot()}
201
- <div class="confirm-popover__dropdown-content">
202
- <cx-typography variant="body2">${this.message}</cx-typography>
203
- <div
204
- part="actions"
205
- class=${a({
206
- "confirm-popover__actions": !0,
207
- [`confirm-popover__actions--direction-${this.buttonsDirection}`]: !0
208
- /** Dropdown variant alignment is always center */
209
- })}
210
- slot="footer"
211
- >
212
- <cx-button
213
- part="confirm-button"
214
- class="confirm-popover__confirm-button"
215
- @click=${this.confirm}
216
- variant="custom"
217
- >
218
- ${this.confirmText || this.localize.term("confirm")}
219
- </cx-button>
220
- <cx-button
221
- part="cancel-button"
222
- class="confirm-popover__cancel-button"
223
- @click=${this.cancel}
224
- variant="custom"
225
- >
226
- ${this.cancelText || this.localize.term("cancel")}
227
- </cx-button>
228
- </div>
229
- <div part="footer" class="confirm-popover__footer" slot="footer">
230
- <slot name="footer"></slot>
231
- </div>
232
- </div>
233
- </cx-dropdown>`;
234
- }
235
- render() {
236
- return this.variant === "dialog" ? this.renderDialog() : this.renderDropdown();
237
- }
238
- };
239
- o.styles = [y, S];
240
- o.dependencies = {
241
- "cx-button": _,
242
- "cx-dialog": u,
243
- "cx-dropdown": g,
244
- "cx-typography": x
245
- };
246
- r([
247
- m("cx-dropdown")
248
- ], o.prototype, "dropdown", 2);
249
- r([
250
- m("cx-dialog")
251
- ], o.prototype, "dialog", 2);
252
- r([
253
- e({ reflect: !0, type: String })
254
- ], o.prototype, "message", 2);
255
- r([
256
- e({ reflect: !0, type: Boolean })
257
- ], o.prototype, "disabled", 2);
258
- r([
259
- e({ attribute: "buttons-direction", reflect: !0, type: String })
260
- ], o.prototype, "buttonsDirection", 2);
261
- r([
262
- e({ attribute: "buttons-alignment", reflect: !0, type: String })
263
- ], o.prototype, "buttonsAlignment", 2);
264
- r([
265
- e({ attribute: "divider-position", reflect: !0, type: String })
266
- ], o.prototype, "dividerPosition", 2);
267
- r([
268
- e({ attribute: "dialog-label", reflect: !0, type: String })
269
- ], o.prototype, "dialogLabel", 2);
270
- r([
271
- e({ attribute: "confirm-text", reflect: !0, type: String })
272
- ], o.prototype, "confirmText", 2);
273
- r([
274
- e({ attribute: "cancel-text", reflect: !0, type: String })
275
- ], o.prototype, "cancelText", 2);
276
- r([
277
- e({ reflect: !0 })
278
- ], o.prototype, "variant", 2);
279
- r([
280
- e({ type: Object })
281
- ], o.prototype, "boundary", 2);
282
- o = r([
283
- w("cx-confirm-popover")
284
- ], o);
285
- export {
286
- o as C,
287
- f as a
288
- };
@@ -1,325 +0,0 @@
1
- import { n as a, C as P } from "./lib-cortex-element.CVMmyPMC.js";
2
- import { c as F } from "./component.styles.DMSLciL5.js";
3
- import { O as C } from "./index.Cpamj0jB.js";
4
- import { c as z } from "./custom-element.L4WJXn1j.js";
5
- import { L as S } from "./i18n.BUW7B9hr.js";
6
- import { w as m } 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 H } from "./query.BBf1UFkC.js";
10
- import { r as K } 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 R from "../components/tooltip.js";
16
- const T = O`
17
- :host {
18
- display: inline-block;
19
- }
20
-
21
- :host([orientation='vertical']) {
22
- height: 100%;
23
- }
24
-
25
- :host([orientation='vertical']) .dot-pagination {
26
- flex-direction: column;
27
- height: 100%;
28
- }
29
-
30
- .dot-pagination {
31
- display: flex;
32
- flex-wrap: wrap;
33
- justify-content: center;
34
- gap: var(--cx-spacing-small);
35
- }
36
-
37
- .dot-pagination__dot {
38
- display: block;
39
- cursor: pointer;
40
- background: none;
41
- border: 0;
42
- border-radius: var(--cx-border-radius-circle);
43
- width: var(--cx-spacing-small);
44
- height: var(--cx-spacing-small);
45
- background-color: var(--cx-color-neutral-300);
46
- padding: 0;
47
- margin: 0;
48
- }
49
-
50
- .dot-pagination__dot--active {
51
- background-color: var(--cx-color-neutral-500);
52
- }
53
-
54
- .dot-pagination__dot--transitioning {
55
- cursor: default;
56
- opacity: 0.5;
57
- }
58
-
59
- .dot-pagination__ellipsis {
60
- color: var(--cx-color-neutral-400);
61
- font-size: var(--cx-font-size-small);
62
- font-weight: var(--cx-font-weight-medium);
63
- user-select: none;
64
- display: flex;
65
- align-items: center;
66
- justify-content: center;
67
- min-width: var(--cx-spacing-small);
68
- height: var(--cx-spacing-small);
69
- }
70
-
71
- /* Focus styles */
72
- .dot-pagination__dot:focus-visible {
73
- outline: var(--cx-focus-ring);
74
- outline-offset: var(--cx-focus-ring-offset);
75
- }
76
-
77
- /* Responsive adjustments */
78
- @media (max-width: 640px) {
79
- .dot-pagination {
80
- gap: var(--cx-spacing-x-small);
81
- padding: var(--cx-spacing-medium);
82
- }
83
- }
84
-
85
- /* High contrast mode support */
86
- @media (prefers-contrast: high) {
87
- .dot-pagination__dot {
88
- border: 1px solid var(--cx-color-neutral-600);
89
- }
90
-
91
- .dot-pagination__dot--active {
92
- border-color: var(--cx-color-neutral-700);
93
- }
94
- }
95
-
96
- /* Reduced motion support */
97
- @media (prefers-reduced-motion: reduce) {
98
- .dot-pagination__dot {
99
- transition: none;
100
- }
101
- }
102
- `;
103
- var B = Object.defineProperty, V = Object.getOwnPropertyDescriptor, i = (t, n, e, c) => {
104
- for (var l = c > 1 ? void 0 : c ? V(n, e) : n, r = t.length - 1, s; r >= 0; r--)
105
- (s = t[r]) && (l = (c ? s(n, e, l) : s(l)) || l);
106
- return c && l && B(n, e, l), l;
107
- };
108
- let o = class extends P {
109
- constructor() {
110
- 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 = {
111
- back: [],
112
- backEllipsis: !1,
113
- center: [],
114
- front: [],
115
- frontEllipsis: !1
116
- };
117
- }
118
- calculateDots() {
119
- const {
120
- activeIndex: t,
121
- backDots: n,
122
- centerDots: e,
123
- frontDots: c,
124
- loop: l,
125
- step: r,
126
- totalItemsCount: s,
127
- visibleItemsCount: p
128
- } = this, U = s % p !== 0 ? Math.ceil(s / p) * p : s, f = l ? U : s, I = f - s, $ = l ? f : f - (p - r), M = I >= r ? $ - I : $, g = s > 0 ? Math.max(1, Math.ceil(M / r)) : 0, v = Math.floor(e / 2), _ = Math.floor(t / r), d = {
129
- back: [],
130
- backEllipsis: !1,
131
- center: [],
132
- front: [],
133
- frontEllipsis: !1
134
- }, N = c + e + n, x = l ? f : Math.max(0, f - p);
135
- if (g <= N)
136
- d.front = Array.from(
137
- { length: g },
138
- (u, h) => Math.min(h * r, x)
139
- );
140
- else {
141
- d.frontEllipsis = _ > c + v, d.backEllipsis = _ < g - n - v - 1, d.front = Array.from(
142
- { length: c },
143
- (k, b) => Math.min(b * r, x)
144
- ), d.back = Array.from(
145
- { length: n },
146
- (k, b) => Math.min((g - n + b) * r, x)
147
- );
148
- let u, h;
149
- 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) => {
150
- const A = (u + b) * r;
151
- return Math.min(A, x);
152
- });
153
- }
154
- this.dots = d;
155
- }
156
- /**
157
- * Carousel focus active item when key is pressed from pagination
158
- */
159
- focus() {
160
- this.activeDot?.focus();
161
- }
162
- handleDotClick(t) {
163
- const n = t.currentTarget, e = Number(n.dataset.index);
164
- e === this.activeIndex || isNaN(e) || (this.activeIndex = e, this.emit("cx-dot-pagination-change", {
165
- detail: {
166
- active: e
167
- }
168
- }));
169
- }
170
- handleKeyDown(t) {
171
- const n = t.target;
172
- if (t.key === "Enter" || t.key === " ") {
173
- t.preventDefault(), n.click();
174
- return;
175
- }
176
- const e = this.orientation === C.Horizontal, c = e ? ["ArrowRight"] : ["ArrowDown"], l = e ? ["ArrowLeft"] : ["ArrowUp"];
177
- if (![...c, ...l].includes(t.key))
178
- return;
179
- t.preventDefault(), t.stopPropagation();
180
- const r = Array.from(this.allDots), s = r.indexOf(n);
181
- if (s === -1)
182
- return;
183
- let p = c.includes(t.key) ? s + 1 : s - 1;
184
- this.loop ? p = (p + r.length) % r.length : p = Math.max(0, Math.min(p, r.length - 1)), r[p]?.focus();
185
- }
186
- handleFocus() {
187
- this.emit("cx-dot-pagination-focus");
188
- }
189
- renderEllipsis() {
190
- return y`
191
- <span part="ellipsis" class="dot-pagination__ellipsis" aria-hidden="true">
192
- •••
193
- </span>
194
- `;
195
- }
196
- renderDot(t) {
197
- const n = t + 1, e = y`
198
- <button
199
- part="dot${this.activeIndex === t ? " dot--active" : ""}"
200
- class=${L({
201
- "dot-pagination__dot": !0,
202
- "dot-pagination__dot--active": t === this.activeIndex,
203
- "dot-pagination__dot--transitioning": this.transitioning
204
- })}
205
- role="tab"
206
- type="button"
207
- aria-selected=${t === this.activeIndex ? "true" : "false"}
208
- aria-label=${this.localize.term("slideNum", n)}
209
- aria-controls=${E(this.controlIds[t])}
210
- tabindex="0"
211
- data-index=${t}
212
- ?disabled=${this.transitioning}
213
- @click=${this.handleDotClick}
214
- @keydown=${this.handleKeyDown}
215
- @focus=${this.handleFocus}
216
- ></button>
217
- `;
218
- return w(
219
- this.tooltipPlacement,
220
- () => y`
221
- <cx-tooltip
222
- content=${this.tooltipDescription || t + 1}
223
- placement=${this.tooltipPlacement}
224
- >
225
- ${e}
226
- </cx-tooltip>
227
- `,
228
- () => e
229
- );
230
- }
231
- render() {
232
- return y`
233
- <div
234
- part="base"
235
- class="dot-pagination"
236
- role="tablist"
237
- aria-roledescription=${E(this.description || void 0)}
238
- aria-label=${this.localize.term("pagination")}
239
- >
240
- ${D(this.dots.front, (t) => this.renderDot(t))}
241
- ${w(this.dots.frontEllipsis, () => this.renderEllipsis())}
242
- ${D(this.dots.center, (t) => this.renderDot(t))}
243
- ${w(this.dots.backEllipsis, () => this.renderEllipsis())}
244
- ${D(this.dots.back, (t) => this.renderDot(t))}
245
- </div>
246
- `;
247
- }
248
- };
249
- o.styles = [F, T];
250
- o.dependencies = { "cx-tooltip": R };
251
- i([
252
- H(".dot-pagination__dot--active")
253
- ], o.prototype, "activeDot", 2);
254
- i([
255
- K(".dot-pagination__dot")
256
- ], o.prototype, "allDots", 2);
257
- i([
258
- a({ attribute: "active-index", reflect: !0, type: Number })
259
- ], o.prototype, "activeIndex", 2);
260
- i([
261
- a({ attribute: "total-items-count", reflect: !0, type: Number })
262
- ], o.prototype, "totalItemsCount", 2);
263
- i([
264
- a({ attribute: "visible-items-count", reflect: !0, type: Number })
265
- ], o.prototype, "visibleItemsCount", 2);
266
- i([
267
- a({ reflect: !0, type: Number })
268
- ], o.prototype, "step", 2);
269
- i([
270
- a({ attribute: "center-dots", reflect: !0, type: Number })
271
- ], o.prototype, "centerDots", 2);
272
- i([
273
- a({ attribute: "front-dots", reflect: !0, type: Number })
274
- ], o.prototype, "frontDots", 2);
275
- i([
276
- a({ attribute: "back-dots", reflect: !0, type: Number })
277
- ], o.prototype, "backDots", 2);
278
- i([
279
- a({ reflect: !0, type: Boolean })
280
- ], o.prototype, "loop", 2);
281
- i([
282
- a({ reflect: !0, type: String })
283
- ], o.prototype, "orientation", 2);
284
- i([
285
- a({ reflect: !0, type: Boolean })
286
- ], o.prototype, "transitioning", 2);
287
- i([
288
- a({ attribute: "tooltip-placement", reflect: !0, type: String })
289
- ], o.prototype, "tooltipPlacement", 2);
290
- i([
291
- a({ attribute: "tooltip-description", reflect: !0, type: String })
292
- ], o.prototype, "tooltipDescription", 2);
293
- i([
294
- a({ reflect: !0, type: String })
295
- ], o.prototype, "description", 2);
296
- i([
297
- a({
298
- attribute: "control-ids",
299
- converter: {
300
- fromAttribute: (t) => t?.split(" ") ?? [],
301
- toAttribute: (t) => t.join(" ")
302
- },
303
- reflect: !0
304
- })
305
- ], o.prototype, "controlIds", 2);
306
- i([
307
- j()
308
- ], o.prototype, "dots", 2);
309
- i([
310
- m("centerDots", { waitUntilFirstUpdate: !0 }),
311
- m("frontDots", { waitUntilFirstUpdate: !0 }),
312
- m("backDots", { waitUntilFirstUpdate: !0 }),
313
- m("activeIndex", { waitUntilFirstUpdate: !0 }),
314
- m("step", { waitUntilFirstUpdate: !0 }),
315
- m("visibleItemsCount", { waitUntilFirstUpdate: !0 }),
316
- m("loop", { waitUntilFirstUpdate: !0 }),
317
- m("totalItemsCount")
318
- ], o.prototype, "calculateDots", 1);
319
- o = i([
320
- z("cx-dot-pagination")
321
- ], o);
322
- export {
323
- o as C,
324
- T as d
325
- };