@orangelogic/design-system 2.78.0 → 2.79.0-ci.2

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,5 +1,5 @@
1
1
  import { n as l, C as g } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
- import { c as y } from "../chunks/component.styles.DMSLciL5.js";
2
+ import { c as y } from "../chunks/component.styles.CRO4Odto.js";
3
3
  import { c as b } from "../chunks/custom-element.L4WJXn1j.js";
4
4
  import { L as f } from "../chunks/i18n.BUW7B9hr.js";
5
5
  import { c as _ } from "../chunks/math.DqTA6ya4.js";
@@ -13,204 +13,73 @@ import { c as w } from "../chunks/repeat.DbF2p5ae.js";
13
13
  import { o as m } from "../chunks/style-map.llVFPd__.js";
14
14
  import { o as d } from "../chunks/unsafe-html.Dff7-rCx.js";
15
15
  import M from "./icon.js";
16
- const H = x`
17
- :host {
18
- --symbol-color: var(--cx-color-neutral-300);
19
- --symbol-color-active: var(--cx-color-warning-500);
20
- --symbol-size: 1.2rem;
21
- --symbol-container-size: 40px;
22
- --symbol-spacing: var(--cx-spacing-3x-small);
23
-
24
- display: inline-flex;
25
- }
26
-
27
- :host([variant='outlined']) {
28
- --symbol-size: var(--cx-font-size-x-large);
29
- --symbol-color: var(--cx-color-neutral-600);
30
- --symbol-color-active: var(--cx-color-neutral-600);
31
- }
32
-
33
- .rating {
34
- position: relative;
35
- display: inline-flex;
36
- border-radius: var(--cx-border-radius-small);
37
- vertical-align: middle;
38
- }
39
-
40
- .rating:focus {
41
- outline: none;
42
- }
43
-
44
- .rating:focus-visible {
45
- outline: var(--cx-focus-ring);
46
- outline-offset: var(--cx-focus-ring-offset);
47
- }
48
-
49
- .rating__symbols {
50
- display: inline-flex;
51
- position: relative;
52
- line-height: 0;
53
- color: var(--symbol-color);
54
- white-space: nowrap;
55
- cursor: pointer;
56
- }
57
-
58
- .rating__symbols > * {
59
- padding: var(--symbol-spacing);
60
- }
61
-
62
- .rating__symbol--active,
63
- .rating__partial--filled {
64
- color: var(--symbol-color-active);
65
- }
66
-
67
- .rating__partial-symbol-container {
68
- position: relative;
69
- }
70
-
71
- .rating__partial--filled {
72
- position: absolute;
73
- top: var(--symbol-spacing);
74
- left: var(--symbol-spacing);
75
- }
76
-
77
- .rating__symbol {
78
- transition: var(--cx-transition-fast) scale;
79
- pointer-events: none;
80
- }
81
-
82
- .rating__symbol cx-icon {
83
- --font-size: var(--symbol-size);
84
- }
85
-
86
- .rating__symbol--hover {
87
- scale: 1.2;
88
- }
89
-
90
- .rating--disabled .rating__symbols,
91
- .rating--readonly .rating__symbols {
92
- cursor: default;
93
- }
94
-
95
- .rating--disabled .rating__symbol--hover,
96
- .rating--readonly .rating__symbol--hover {
97
- scale: none;
98
- }
99
-
100
- .rating--disabled {
101
- opacity: 0.5;
102
- }
103
-
104
- .rating--disabled .rating__symbols {
105
- cursor: default;
106
- }
107
-
108
- /* Forced colors mode */
109
- @media (forced-colors: active) {
110
- .rating__symbol--active {
111
- color: SelectedItem;
112
- }
113
- }
114
-
115
- /** Outlined */
116
- .rating--outlined .rating__symbol {
117
- border: var(--cx-input-border-width) solid var(--cx-input-border-color);
118
- width: var(--symbol-container-size);
119
- height: var(--symbol-container-size);
120
- display: flex;
121
- align-items: center;
122
- justify-content: center;
123
- }
124
-
125
- .rating--outlined .rating__partial--filled {
126
- top: unset;
127
- left: unset;
128
- }
129
-
130
- .rating--outlined .rating__symbol:not(:first-child) {
131
- border-left: none;
132
- }
133
-
134
- .rating--outlined .rating__symbol:first-child {
135
- border-top-left-radius: var(--cx-border-radius-small);
136
- border-bottom-left-radius: var(--cx-border-radius-small);
137
- }
138
-
139
- .rating--outlined .rating__symbol:last-child {
140
- border-top-right-radius: var(--cx-border-radius-small);
141
- border-bottom-right-radius: var(--cx-border-radius-small);
142
- }
143
-
144
- .rating--outlined .rating__symbol--hover {
145
- scale: 1;
146
- }
147
- `;
148
- var C = Object.defineProperty, P = Object.getOwnPropertyDescriptor, a = (e, o, i, s) => {
149
- for (var t = s > 1 ? void 0 : s ? P(o, i) : o, n = e.length - 1, h; n >= 0; n--)
150
- (h = e[n]) && (t = (s ? h(o, i, t) : h(t)) || t);
151
- return s && t && C(o, i, t), t;
16
+ const H = x`:host{--symbol-color:var(--cx-color-neutral-300);--symbol-color-active:var(--cx-color-warning-500);--symbol-size:1.2rem;--symbol-container-size:40px;--symbol-spacing:var(--cx-spacing-3x-small);display:inline-flex}:host([variant=outlined]){--symbol-size:var(--cx-font-size-x-large);--symbol-color:var(--cx-color-neutral-600);--symbol-color-active:var(--cx-color-neutral-600)}.rating{border-radius:var(--cx-border-radius-small);vertical-align:middle;display:inline-flex;position:relative}.rating:focus{outline:none}.rating:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.rating__symbols{color:var(--symbol-color);white-space:nowrap;cursor:pointer;line-height:0;display:inline-flex;position:relative}.rating__symbols>*{padding:var(--symbol-spacing)}.rating__symbol--active,.rating__partial--filled{color:var(--symbol-color-active)}.rating__partial-symbol-container{position:relative}.rating__partial--filled{top:var(--symbol-spacing);left:var(--symbol-spacing);position:absolute}.rating__symbol{transition:var(--cx-transition-fast) scale;pointer-events:none}.rating__symbol cx-icon{--font-size:var(--symbol-size)}.rating__symbol--hover{scale:1.2}.rating--disabled .rating__symbols,.rating--readonly .rating__symbols{cursor:default}.rating--disabled .rating__symbol--hover,.rating--readonly .rating__symbol--hover{scale:none}.rating--disabled{opacity:.5}.rating--disabled .rating__symbols{cursor:default}@media (forced-colors:active){.rating__symbol--active{color:selecteditem}}.rating--outlined .rating__symbol{border:var(--cx-input-border-width) solid var(--cx-input-border-color);width:var(--symbol-container-size);height:var(--symbol-container-size);justify-content:center;align-items:center;display:flex}.rating--outlined .rating__partial--filled{top:unset;left:unset}.rating--outlined .rating__symbol:not(:first-child){border-left:none}.rating--outlined .rating__symbol:first-child{border-top-left-radius:var(--cx-border-radius-small);border-bottom-left-radius:var(--cx-border-radius-small)}.rating--outlined .rating__symbol:last-child{border-top-right-radius:var(--cx-border-radius-small);border-bottom-right-radius:var(--cx-border-radius-small)}.rating--outlined .rating__symbol--hover{scale:1}`;
17
+ var C = Object.defineProperty, P = Object.getOwnPropertyDescriptor, a = (t, o, i, s) => {
18
+ for (var e = s > 1 ? void 0 : s ? P(o, i) : o, n = t.length - 1, h; n >= 0; n--)
19
+ (h = t[n]) && (e = (s ? h(o, i, e) : h(e)) || e);
20
+ return s && e && C(o, i, e), e;
152
21
  };
153
22
  let r = class extends g {
154
23
  constructor() {
155
- super(...arguments), this.localize = new f(this), this.hoverValue = 0, this.isHovering = !1, this.label = "", this.value = 0, this.max = 5, this.precision = 1, this.readonly = !1, this.disabled = !1, this.variant = "default", this.getSymbol = (e, o = !1) => this.variant !== "outlined" ? '<cx-icon name="star"></cx-icon>' : o ? '<cx-icon name="star" variant="filled"></cx-icon>' : '<cx-icon name="star"></cx-icon>';
24
+ super(...arguments), this.localize = new f(this), this.hoverValue = 0, this.isHovering = !1, this.label = "", this.value = 0, this.max = 5, this.precision = 1, this.readonly = !1, this.disabled = !1, this.variant = "default", this.getSymbol = (t, o = !1) => this.variant !== "outlined" ? '<cx-icon name="star"></cx-icon>' : o ? '<cx-icon name="star" variant="filled"></cx-icon>' : '<cx-icon name="star"></cx-icon>';
156
25
  }
157
- getValueFromMousePosition(e) {
158
- return this.getValueFromXCoordinate(e.clientX);
26
+ getValueFromMousePosition(t) {
27
+ return this.getValueFromXCoordinate(t.clientX);
159
28
  }
160
- getValueFromTouchPosition(e) {
161
- return this.getValueFromXCoordinate(e.touches[0].clientX);
29
+ getValueFromTouchPosition(t) {
30
+ return this.getValueFromXCoordinate(t.touches[0].clientX);
162
31
  }
163
- getValueFromXCoordinate(e) {
164
- const o = this.localize.dir() === "rtl", { left: i, right: s, width: t } = this.rating.getBoundingClientRect(), n = o ? this.roundToPrecision(
165
- (s - e) / t * this.max,
32
+ getValueFromXCoordinate(t) {
33
+ const o = this.localize.dir() === "rtl", { left: i, right: s, width: e } = this.rating.getBoundingClientRect(), n = o ? this.roundToPrecision(
34
+ (s - t) / e * this.max,
166
35
  this.precision
167
36
  ) : this.roundToPrecision(
168
- (e - i) / t * this.max,
37
+ (t - i) / e * this.max,
169
38
  this.precision
170
39
  );
171
40
  return _(n, 0, this.max);
172
41
  }
173
- handleClick(e) {
174
- this.disabled || (this.setValue(this.getValueFromMousePosition(e)), this.emit("cx-change"));
42
+ handleClick(t) {
43
+ this.disabled || (this.setValue(this.getValueFromMousePosition(t)), this.emit("cx-change"));
175
44
  }
176
- setValue(e) {
177
- this.disabled || this.readonly || (this.value = e === this.value ? 0 : e, this.isHovering = !1);
45
+ setValue(t) {
46
+ this.disabled || this.readonly || (this.value = t === this.value ? 0 : t, this.isHovering = !1);
178
47
  }
179
- handleKeyDown(e) {
48
+ handleKeyDown(t) {
180
49
  const o = this.localize.dir() === "ltr", i = this.localize.dir() === "rtl", s = this.value;
181
50
  if (!(this.disabled || this.readonly)) {
182
- if (e.key === "ArrowDown" || o && e.key === "ArrowLeft" || i && e.key === "ArrowRight") {
183
- const t = e.shiftKey ? 1 : this.precision;
184
- this.value = Math.max(0, this.value - t), e.preventDefault();
51
+ if (t.key === "ArrowDown" || o && t.key === "ArrowLeft" || i && t.key === "ArrowRight") {
52
+ const e = t.shiftKey ? 1 : this.precision;
53
+ this.value = Math.max(0, this.value - e), t.preventDefault();
185
54
  }
186
- if (e.key === "ArrowUp" || o && e.key === "ArrowRight" || i && e.key === "ArrowLeft") {
187
- const t = e.shiftKey ? 1 : this.precision;
188
- this.value = Math.min(this.max, this.value + t), e.preventDefault();
55
+ if (t.key === "ArrowUp" || o && t.key === "ArrowRight" || i && t.key === "ArrowLeft") {
56
+ const e = t.shiftKey ? 1 : this.precision;
57
+ this.value = Math.min(this.max, this.value + e), t.preventDefault();
189
58
  }
190
- e.key === "Home" && (this.value = 0, e.preventDefault()), e.key === "End" && (this.value = this.max, e.preventDefault()), this.value !== s && this.emit("cx-change");
59
+ t.key === "Home" && (this.value = 0, t.preventDefault()), t.key === "End" && (this.value = this.max, t.preventDefault()), this.value !== s && this.emit("cx-change");
191
60
  }
192
61
  }
193
- handleMouseEnter(e) {
194
- this.isHovering = !0, this.hoverValue = this.getValueFromMousePosition(e);
62
+ handleMouseEnter(t) {
63
+ this.isHovering = !0, this.hoverValue = this.getValueFromMousePosition(t);
195
64
  }
196
- handleMouseMove(e) {
197
- this.hoverValue = this.getValueFromMousePosition(e);
65
+ handleMouseMove(t) {
66
+ this.hoverValue = this.getValueFromMousePosition(t);
198
67
  }
199
68
  handleMouseLeave() {
200
69
  this.isHovering = !1;
201
70
  }
202
- handleTouchStart(e) {
203
- this.isHovering = !0, this.hoverValue = this.getValueFromTouchPosition(e), e.preventDefault();
71
+ handleTouchStart(t) {
72
+ this.isHovering = !0, this.hoverValue = this.getValueFromTouchPosition(t), t.preventDefault();
204
73
  }
205
- handleTouchMove(e) {
206
- this.hoverValue = this.getValueFromTouchPosition(e);
74
+ handleTouchMove(t) {
75
+ this.hoverValue = this.getValueFromTouchPosition(t);
207
76
  }
208
- handleTouchEnd(e) {
209
- this.isHovering = !1, this.setValue(this.hoverValue), this.emit("cx-change"), e.preventDefault();
77
+ handleTouchEnd(t) {
78
+ this.isHovering = !1, this.setValue(this.hoverValue), this.emit("cx-change"), t.preventDefault();
210
79
  }
211
- roundToPrecision(e, o = 0.5) {
80
+ roundToPrecision(t, o = 0.5) {
212
81
  const i = 1 / o;
213
- return Math.ceil(e * i) / i;
82
+ return Math.ceil(t * i) / i;
214
83
  }
215
84
  handleHoverValueChange() {
216
85
  this.emit("cx-hover", {
@@ -229,86 +98,37 @@ let r = class extends g {
229
98
  });
230
99
  }
231
100
  /** Sets focus on the rating. */
232
- focus(e) {
233
- this.rating.focus(e);
101
+ focus(t) {
102
+ this.rating.focus(t);
234
103
  }
235
104
  /** Removes focus from the rating. */
236
105
  blur() {
237
106
  this.rating.blur();
238
107
  }
239
108
  render() {
240
- const e = this.localize.dir() === "rtl", o = Array.from(Array(this.max).keys());
109
+ const t = this.localize.dir() === "rtl", o = Array.from(Array(this.max).keys());
241
110
  let i = 0;
242
- return this.disabled || this.readonly ? i = this.value : i = this.isHovering ? this.hoverValue : this.value, c`
243
- <div
244
- part="base"
245
- class=${u({
111
+ return this.disabled || this.readonly ? i = this.value : i = this.isHovering ? this.hoverValue : this.value, c`<div part="base" class=${u({
246
112
  rating: !0,
247
113
  "rating--disabled": this.disabled,
248
114
  "rating--outlined": this.variant === "outlined",
249
115
  "rating--readonly": this.readonly,
250
- "rating--rtl": e
251
- })}
252
- role="slider"
253
- aria-label=${this.label}
254
- aria-disabled=${this.disabled ? "true" : "false"}
255
- aria-readonly=${this.readonly ? "true" : "false"}
256
- aria-valuenow=${this.value}
257
- aria-valuemin="0"
258
- aria-valuemax=${this.max}
259
- tabindex=${this.disabled ? "-1" : "0"}
260
- @click=${this.handleClick}
261
- @keydown=${this.handleKeyDown}
262
- @mouseenter=${this.handleMouseEnter}
263
- @touchstart=${this.handleTouchStart}
264
- @mouseleave=${this.handleMouseLeave}
265
- @touchend=${this.handleTouchEnd}
266
- @mousemove=${this.handleMouseMove}
267
- @touchmove=${this.handleTouchMove}
268
- >
269
- <span class="rating__symbols">
270
- ${w(o, (s, t) => i > t && i < t + 1 ? c`
271
- <span
272
- class=${u({
116
+ "rating--rtl": t
117
+ })} role="slider" aria-label=${this.label} aria-disabled=${this.disabled ? "true" : "false"} aria-readonly=${this.readonly ? "true" : "false"} aria-valuenow=${this.value} aria-valuemin="0" aria-valuemax=${this.max} tabindex=${this.disabled ? "-1" : "0"} @click=${this.handleClick} @keydown=${this.handleKeyDown} @mouseenter=${this.handleMouseEnter} @touchstart=${this.handleTouchStart} @mouseleave=${this.handleMouseLeave} @touchend=${this.handleTouchEnd} @mousemove=${this.handleMouseMove} @touchmove=${this.handleTouchMove}><span class="rating__symbols">${w(o, (s, e) => i > e && i < e + 1 ? c`<span class=${u({
273
118
  "rating__partial-symbol-container": !0,
274
119
  rating__symbol: !0,
275
- "rating__symbol--hover": this.isHovering && Math.ceil(i) === t + 1
276
- })}
277
- role="presentation"
278
- >
279
- <div
280
- style=${m({
281
- clipPath: e ? `inset(0 ${(i - t) * 100}% 0 0)` : `inset(0 0 0 ${(i - t) * 100}%)`
282
- })}
283
- >
284
- ${d(this.getSymbol(t + 1, !1))}
285
- </div>
286
- <div
287
- class="rating__partial--filled"
288
- style=${m({
289
- clipPath: e ? `inset(0 0 0 ${100 - (i - t) * 100}%)` : `inset(0 ${100 - (i - t) * 100}% 0 0)`
290
- })}
291
- >
292
- ${d(this.getSymbol(t + 1, !0))}
293
- </div>
294
- </span>
295
- ` : c`
296
- <span
297
- class=${u({
120
+ "rating__symbol--hover": this.isHovering && Math.ceil(i) === e + 1
121
+ })} role="presentation"><div style=${m({
122
+ clipPath: t ? `inset(0 ${(i - e) * 100}% 0 0)` : `inset(0 0 0 ${(i - e) * 100}%)`
123
+ })}>${d(this.getSymbol(e + 1, !1))}</div><div class="rating__partial--filled" style=${m({
124
+ clipPath: t ? `inset(0 0 0 ${100 - (i - e) * 100}%)` : `inset(0 ${100 - (i - e) * 100}% 0 0)`
125
+ })}>${d(this.getSymbol(e + 1, !0))}</div></span>` : c`<span class=${u({
298
126
  rating__symbol: !0,
299
- "rating__symbol--active": i >= t + 1,
300
- "rating__symbol--hover": this.isHovering && Math.ceil(i) === t + 1
301
- })}
302
- role="presentation"
303
- >
304
- ${d(
305
- this.getSymbol(t + 1, i >= t + 1)
306
- )}
307
- </span>
308
- `)}
309
- </span>
310
- </div>
311
- `;
127
+ "rating__symbol--active": i >= e + 1,
128
+ "rating__symbol--hover": this.isHovering && Math.ceil(i) === e + 1
129
+ })} role="presentation">${d(
130
+ this.getSymbol(e + 1, i >= e + 1)
131
+ )}</span>`)}</span></div>`;
312
132
  }
313
133
  };
314
134
  r.styles = [y, H];
@@ -1,20 +1,10 @@
1
1
  import { n as l, C as h } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
- import { c as p } from "../chunks/component.styles.DMSLciL5.js";
2
+ import { c as p } from "../chunks/component.styles.CRO4Odto.js";
3
3
  import { c as v } from "../chunks/custom-element.L4WJXn1j.js";
4
4
  import { L as d } from "../chunks/i18n.BUW7B9hr.js";
5
5
  import { i as f, x as y } from "../chunks/lit-element.jLBm65_O.js";
6
6
  import { r as c } from "../chunks/state.CSDxrqLd.js";
7
- const T = f`
8
- :host {
9
- display: contents;
10
- }
11
-
12
- .relative-time {
13
- color: var(--cx-relative-time-color, inherit);
14
- font-size: var(--cx-relative-time-font-size, inherit);
15
- font-weight: var(--cx-relative-time-font-weight, inherit);
16
- }
17
- `;
7
+ const T = f`:host{display:contents}.relative-time{color:var(--cx-relative-time-color,inherit);font-size:var(--cx-relative-time-font-size,inherit);font-weight:var(--cx-relative-time-font-weight,inherit)}`;
18
8
  var x = Object.defineProperty, w = Object.getOwnPropertyDescriptor, a = (o, t, i, s) => {
19
9
  for (var n = s > 1 ? void 0 : s ? w(t, i) : t, r = o.length - 1, u; r >= 0; r--)
20
10
  (u = o[r]) && (n = (s ? u(t, i, n) : u(n)) || n);
@@ -1,13 +1,9 @@
1
1
  import { n as h, C as c } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
- import { c as d } from "../chunks/component.styles.DMSLciL5.js";
2
+ import { c as d } from "../chunks/component.styles.CRO4Odto.js";
3
3
  import { c as b } from "../chunks/custom-element.L4WJXn1j.js";
4
4
  import { w as p } from "../chunks/watch.BCJD77bD.js";
5
5
  import { i as v, x as m } from "../chunks/lit-element.jLBm65_O.js";
6
- const f = v`
7
- :host {
8
- display: contents;
9
- }
10
- `;
6
+ const f = v`:host{display:contents}`;
11
7
  var u = Object.defineProperty, O = Object.getOwnPropertyDescriptor, n = (s, r, e, i) => {
12
8
  for (var t = i > 1 ? void 0 : i ? O(r, e) : r, l = s.length - 1, a; l >= 0; l--)
13
9
  (a = s[l]) && (t = (i ? a(r, e, t) : a(t)) || t);
@@ -48,7 +44,7 @@ let o = class extends c {
48
44
  this.disabled ? this.stopObserver() : this.startObserver();
49
45
  }
50
46
  render() {
51
- return m` <slot @slotchange=${this.handleSlotChange}></slot> `;
47
+ return m`<slot @slotchange=${this.handleSlotChange}></slot>`;
52
48
  }
53
49
  };
54
50
  o.styles = [d, f];