@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.
- package/library/chunks/{AxisLabelRadial.BTpA5dYy.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
- package/library/chunks/{BaseColumnSeries.hIO71GLG.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
- package/library/chunks/{CandlestickSeries.w9C0GR9v.js → CandlestickSeries.CkXGtRWE.js} +2 -2
- package/library/chunks/{Circle.tOnnO-F-.js → Circle.DBa5Ok8V.js} +1 -1
- package/library/chunks/{ColumnSeries.Ckz75x1M.js → ColumnSeries.DGazbfza.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CCMTJT7K.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
- package/library/chunks/{EditableLabel.DPmicdjK.js → EditableLabel.BWeq6fgX.js} +1 -1
- package/library/chunks/{Gradient.BrDBLm8v.js → Gradient.CdcsPIru.js} +1 -1
- package/library/chunks/{LinearGradient.CxfXxvMw.js → LinearGradient.B1z9AGUt.js} +2 -2
- package/library/chunks/{Picture.BNASYM-P.js → Picture.YSPC0l0Q.js} +1 -1
- package/library/chunks/{Polygon.Dr-GV2hn.js → Polygon.BwMvXN2H.js} +1 -1
- package/library/chunks/{ProgressPie.4mPA6xqm.js → ProgressPie.DlCwXN17.js} +5 -5
- package/library/chunks/{RadialLabel.HfsGiN4x.js → RadialLabel.DyVOf2K8.js} +1 -1
- package/library/chunks/{Scrollbar.Bgg-RhjP.js → Scrollbar.BdZVb_Z-.js} +1 -1
- package/library/chunks/{Slice.Dm56LTKj.js → Slice.DiEswWa6.js} +1 -1
- package/library/chunks/{Slider.FKJwoPq2.js → Slider.C20No2z5.js} +1 -1
- package/library/chunks/{SpriteResizer.-qJDgug8.js → SpriteResizer.DFnmcy0h.js} +1 -1
- package/library/chunks/{Triangle.BECgi7mc.js → Triangle.BaOef7HV.js} +1 -1
- package/library/chunks/{ZoomTools.cgwuIB0e.js → ZoomTools.D5JPehoL.js} +1 -1
- package/library/chunks/{am-chart.oZVBmpnn.js → am-chart.H2jnOzFc.js} +253 -261
- package/library/chunks/{animation.DU8t6mrk.js → animation.7ifl4x2S.js} +3 -7
- package/library/chunks/{button.DS64Tr8Z.js → button.B-ktz-w4.js} +7 -40
- package/library/chunks/button.styles.CKqn956w.js +5 -0
- package/library/chunks/{color-swatch-group.C7T6-sY7.js → color-swatch-group.DvllHUil.js} +46 -216
- package/library/chunks/{color-swatch.BuUP5yG4.js → color-swatch.Bx-HOp9f.js} +18 -202
- package/library/chunks/{colorPicker.C4w_vDjh.js → colorPicker.06n6P3aK.js} +5 -5
- package/library/chunks/component.styles.CRO4Odto.js +5 -0
- package/library/chunks/confirm-popover.BbHneK19.js +121 -0
- package/library/chunks/{cropper.D1lO3pl-.js → cropper.DTokTzP9.js} +2533 -2904
- package/library/chunks/{dialog.BdXQkCKY.js → dialog.B1nzoJak.js} +40 -251
- package/library/chunks/dot-pagination.C26bQ3vy.js +204 -0
- package/library/chunks/{exporting.BdjsEGF8.js → exporting.Chnl3UWi.js} +2 -2
- package/library/chunks/file-on-demand.D_Mia7M9.js +1956 -0
- package/library/chunks/{flow.D0FqdfOy.js → flow.D2CqFQa7.js} +5 -5
- package/library/chunks/{folder-select.B2qxSKA5.js → folder-select.DOsefkAC.js} +20 -226
- package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
- package/library/chunks/{gantt.DfUM7Gvb.js → gantt.DSHD2gjO.js} +8 -8
- package/library/chunks/header.D68fIfe2.js +170 -0
- package/library/chunks/{hierarchy.5kfBCoGt.js → hierarchy.DwVsMmsP.js} +5 -5
- package/library/chunks/icon-button.BuhCp--_.js +149 -0
- package/library/chunks/iframe.BQFZQMTe.js +73 -0
- package/library/chunks/{image.DHBgKeJp.js → image.4eLWAZ3-.js} +16 -272
- package/library/chunks/{index.BkoLctE9.js → index.C9khsiad.js} +17 -17
- package/library/chunks/{json.BjaT7cyo.js → json.zyETMOw-.js} +3 -3
- package/library/chunks/{list-editor.DluUZa06.js → list-editor.DNa6ROgr.js} +45 -360
- package/library/chunks/{map.DbgNAGxD.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/option.DljDoFx4.js +123 -0
- package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
- package/library/chunks/{pagination.g4zErKN2.js → pagination.BiRyMwhM.js} +45 -141
- package/library/chunks/{percent.DO4FjAdu.js → percent.DuQwbCCg.js} +3 -3
- package/library/chunks/{radar.Dd5fJVMg.js → radar.FpYl3UH5.js} +4 -4
- package/library/chunks/{sliceGrouper.DA3aeuJ-.js → sliceGrouper.BsE7fGMt.js} +1 -1
- package/library/chunks/{stock.BfI5MUyK.js → stock.BR-ag4Pt.js} +9 -9
- package/library/chunks/{tab-group.Dg6a82ei.js → tab-group.9HbDE1AF.js} +30 -581
- package/library/chunks/{table.CcqrVieF.js → table.B8LpbiGE.js} +192 -2133
- package/library/chunks/{timeline.BxMLjB5J.js → timeline.DkzkmgEM.js} +5 -5
- package/library/chunks/{tree.OXvhEOjS.js → tree.q7xRVYyh.js} +31 -399
- package/library/chunks/typography.DJC_UXgs.js +52 -0
- package/library/chunks/{venn.CxFupTb9.js → venn.D739bOV3.js} +1 -1
- package/library/chunks/{wc.ThQubbN2.js → wc.DzW311D-.js} +1 -1
- package/library/chunks/{xy.q6e68du3.js → xy.DCRDfTsa.js} +10 -10
- package/library/components/alert.js +9 -177
- package/library/components/am-chart.js +2 -2
- package/library/components/animated-image.js +12 -100
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +7 -88
- package/library/components/asset-link-format.js +48 -626
- package/library/components/atoms.js +17 -17
- package/library/components/avatar.js +5 -94
- package/library/components/badge.js +11 -139
- package/library/components/bicolor-picker.js +4 -23
- package/library/components/border-input-group.js +4 -25
- package/library/components/breadcrumb-item.js +24 -155
- package/library/components/breadcrumb.js +3 -21
- package/library/components/button-group.js +3 -28
- package/library/components/button.js +3 -3
- package/library/components/card.js +4 -126
- package/library/components/checkbox.js +11 -252
- package/library/components/color-picker.js +54 -725
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +5 -5
- package/library/components/copy-button.js +9 -254
- package/library/components/corner-position-input-group.js +4 -57
- package/library/components/cropper.js +2 -2
- package/library/components/details.js +6 -152
- package/library/components/dialog.js +4 -4
- package/library/components/divider.js +5 -67
- package/library/components/dot-pagination.js +2 -2
- package/library/components/dot-status.js +25 -95
- package/library/components/drawer.js +8 -239
- package/library/components/dropdown.js +47 -149
- package/library/components/dynamic-select.js +7 -72
- package/library/components/e-chart.js +6 -49
- package/library/components/element-clamp.js +5 -78
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +3 -3
- package/library/components/format-date.js +2 -6
- package/library/components/format-time.js +2 -12
- package/library/components/grid-item.js +4 -171
- package/library/components/grid.js +5 -41
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/icon.js +8 -2448
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +7 -127
- package/library/components/image.js +2 -2
- package/library/components/include.js +2 -6
- package/library/components/input-group.js +4 -29
- package/library/components/input.js +21 -715
- package/library/components/line-clamp.js +7 -83
- package/library/components/list-editor.js +7 -7
- package/library/components/markdown.js +1 -3
- package/library/components/masonry.js +22 -221
- package/library/components/menu-item.js +9 -309
- package/library/components/menu-label.js +3 -20
- package/library/components/menu-section.js +3 -17
- package/library/components/menu.js +4 -112
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +2 -6
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +5 -16
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +204 -538
- package/library/components/position-picker.js +3 -93
- package/library/components/progress-bar.js +18 -135
- package/library/components/progress-ring.js +3 -94
- package/library/components/qr-code.js +4 -16
- package/library/components/radio-button.js +4 -24
- package/library/components/radio-card.js +7 -175
- package/library/components/radio-group.js +20 -151
- package/library/components/radio.js +13 -170
- package/library/components/range.js +120 -657
- package/library/components/rating.js +56 -236
- package/library/components/relative-time.js +2 -12
- package/library/components/resize-observer.js +3 -7
- package/library/components/select.js +225 -933
- package/library/components/shadow-input-group.js +5 -24
- package/library/components/share-option-list.js +18 -310
- package/library/components/sidebar.js +14 -220
- package/library/components/size-input-group.js +10 -75
- package/library/components/skeleton.js +7 -80
- package/library/components/space.js +6 -143
- package/library/components/spinner.js +6 -75
- package/library/components/split-panel.js +16 -123
- package/library/components/step.js +21 -272
- package/library/components/stepper-wizard.js +9 -43
- package/library/components/stepper.js +16 -33
- package/library/components/switch.js +11 -274
- package/library/components/tab-group.js +4 -4
- package/library/components/tab-panel.js +4 -31
- package/library/components/tab.js +9 -255
- package/library/components/table.js +6 -6
- package/library/components/tag.js +14 -165
- package/library/components/textarea.js +14 -363
- package/library/components/timecode.js +4 -23
- package/library/components/tooltip.js +8 -92
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +18 -117
- package/library/components/types.js +777 -12001
- package/library/components/typography.js +2 -2
- package/library/components/video.js +3522 -5919
- package/library/components/visually-hidden.js +3 -15
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
- package/library/packages/types/src/table.d.ts +2 -0
- package/library/react-web-component.d.ts +7 -3
- package/package.json +4 -1
- package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
- package/library/chunks/component.styles.DMSLciL5.js +0 -71
- package/library/chunks/confirm-popover.BNjRvnN0.js +0 -288
- package/library/chunks/dot-pagination.CIVxMAAS.js +0 -325
- package/library/chunks/file-on-demand.BTTdth3o.js +0 -3802
- package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
- package/library/chunks/header.m7v3M94Z.js +0 -777
- package/library/chunks/icon-button.C3eqeQl9.js +0 -683
- package/library/chunks/iframe.CNEyWhcM.js +0 -160
- package/library/chunks/option.Csqefux_.js +0 -296
- package/library/chunks/typography.oDzoLbZS.js +0 -149
|
@@ -2,9 +2,9 @@ import v from "../components/copy-button.js";
|
|
|
2
2
|
import f from "../components/line-clamp.js";
|
|
3
3
|
import w from "../components/resize-observer.js";
|
|
4
4
|
import b from "../components/space.js";
|
|
5
|
-
import { C as _ } from "./typography.
|
|
5
|
+
import { C as _ } from "./typography.DJC_UXgs.js";
|
|
6
6
|
import { n as a, C as k } from "./lib-cortex-element.CVMmyPMC.js";
|
|
7
|
-
import { c as F } from "./component.styles.
|
|
7
|
+
import { c as F } from "./component.styles.CRO4Odto.js";
|
|
8
8
|
import { c as n, C as h, H as $, l as z } from "./color.vLD2sNTs.js";
|
|
9
9
|
import { c as O } from "./custom-element.L4WJXn1j.js";
|
|
10
10
|
import { d as W } from "./debounce.DaHuiSGU.js";
|
|
@@ -19,102 +19,7 @@ import { c as U } from "./repeat.DbF2p5ae.js";
|
|
|
19
19
|
import { o as l } from "./style-map.llVFPd__.js";
|
|
20
20
|
import { n as E } from "./when.Dr1es41R.js";
|
|
21
21
|
var p = /* @__PURE__ */ ((o) => (o.Circle = "circle", o.GridItem = "grid-item", o.Oval = "oval", o))(p || {});
|
|
22
|
-
const S = G
|
|
23
|
-
:host {
|
|
24
|
-
display: block;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.color-swatch {
|
|
28
|
-
border: 1px solid var(--cx-color-neutral-200);
|
|
29
|
-
display: flex;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
align-items: center;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.color-swatch:focus-visible {
|
|
35
|
-
outline: var(--cx-focus-ring);
|
|
36
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.color-swatch--circle {
|
|
40
|
-
aspect-ratio: 1 / 1;
|
|
41
|
-
height: auto;
|
|
42
|
-
width: var(--swatch-size, 350px);
|
|
43
|
-
min-width: var(--swatch-size, 230px);
|
|
44
|
-
max-width: 100%;
|
|
45
|
-
border-radius: var(--cx-border-radius-circle);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.color-swatch--oval {
|
|
49
|
-
height: var(--swatch-size, 350px);
|
|
50
|
-
width: 100%;
|
|
51
|
-
border-radius: calc(var(--swatch-size, 350px) / 2);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.color-swatch--grid {
|
|
55
|
-
width: 100%;
|
|
56
|
-
height: var(--swatch-size, 300px);
|
|
57
|
-
min-width: var(--swatch-grid-min-width, 165px);
|
|
58
|
-
border-radius: var(--cx-border-radius-x-large);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.color-swatch__content {
|
|
62
|
-
max-height: 100%;
|
|
63
|
-
padding: var(--swatch-content-padding, 0);
|
|
64
|
-
justify-content: space-between;
|
|
65
|
-
gap: var(--cx-spacing-medium);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.color-swatch--circle > .color-swatch__content {
|
|
69
|
-
max-width: 75%;
|
|
70
|
-
min-width: 50%;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.color-swatch--oval > .color-swatch__content {
|
|
74
|
-
max-width: 85%;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.color-swatch--grid > .color-swatch__content {
|
|
78
|
-
height: 100%;
|
|
79
|
-
width: 100%;
|
|
80
|
-
padding: var(--cx-spacing-large) var(--cx-spacing-medium);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.color-swatch__key::part(base) {
|
|
84
|
-
min-width: 50px;
|
|
85
|
-
height: 100%;
|
|
86
|
-
vertical-align: middle;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.color-swatch__key[variant='small']::part(base) {
|
|
90
|
-
display: inline-block;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.color-swatch__copy-button::part(button) {
|
|
94
|
-
min-height: fit-content;
|
|
95
|
-
height: fit-content;
|
|
96
|
-
border-width: 0 !important;
|
|
97
|
-
background: transparent !important;
|
|
98
|
-
padding: 0;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.color-swatch__copy-button::part(label) {
|
|
102
|
-
height: fit-content;
|
|
103
|
-
padding: 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.color-swatch__value {
|
|
107
|
-
text-transform: none;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.color-swatch__value::part(base) {
|
|
111
|
-
word-break: break-word;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.color-swatch__value-wrapper {
|
|
115
|
-
text-align: left;
|
|
116
|
-
}
|
|
117
|
-
`;
|
|
22
|
+
const S = G`:host{display:block}.color-swatch{border:1px solid var(--cx-color-neutral-200);justify-content:center;align-items:center;display:flex}.color-swatch:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.color-swatch--circle{aspect-ratio:1;height:auto;width:var(--swatch-size,350px);min-width:var(--swatch-size,230px);border-radius:var(--cx-border-radius-circle);max-width:100%}.color-swatch--oval{height:var(--swatch-size,350px);border-radius:calc(var(--swatch-size,350px) / 2);width:100%}.color-swatch--grid{width:100%;height:var(--swatch-size,300px);min-width:var(--swatch-grid-min-width,165px);border-radius:var(--cx-border-radius-x-large)}.color-swatch__content{max-height:100%;padding:var(--swatch-content-padding,0);justify-content:space-between;gap:var(--cx-spacing-medium)}.color-swatch--circle>.color-swatch__content{min-width:50%;max-width:75%}.color-swatch--oval>.color-swatch__content{max-width:85%}.color-swatch--grid>.color-swatch__content{width:100%;height:100%;padding:var(--cx-spacing-large) var(--cx-spacing-medium)}.color-swatch__key::part(base){vertical-align:middle;min-width:50px;height:100%}.color-swatch__key[variant=small]::part(base){display:inline-block}.color-swatch__copy-button::part(button){height:fit-content;min-height:fit-content;padding:0;background:0 0!important;border-width:0!important}.color-swatch__copy-button::part(label){height:fit-content;padding:0}.color-swatch__value{text-transform:none}.color-swatch__value::part(base){word-break:break-word}.color-swatch__value-wrapper{text-align:left}`;
|
|
118
23
|
var V = Object.defineProperty, B = Object.getOwnPropertyDescriptor, e = (o, r, y, d) => {
|
|
119
24
|
for (var s = d > 1 ? void 0 : d ? B(r, y) : r, C = o.length - 1, m; C >= 0; C--)
|
|
120
25
|
(m = o[C]) && (s = (d ? m(r, y, s) : m(s)) || s);
|
|
@@ -186,125 +91,36 @@ let t = class extends k {
|
|
|
186
91
|
{ key: "CMYK", value: this.cmyk },
|
|
187
92
|
{ key: "PMS", value: this.pms }
|
|
188
93
|
].filter((r) => this.showCodes.includes(r.key));
|
|
189
|
-
return u
|
|
190
|
-
<cx-resize-observer @cx-resize=${this.handleResize}>
|
|
191
|
-
<div
|
|
192
|
-
part="base"
|
|
193
|
-
tabindex=${x(this.canFocusContainer ? "0" : void 0)}
|
|
194
|
-
class=${g({
|
|
94
|
+
return u`<cx-resize-observer @cx-resize=${this.handleResize}><div part="base" tabindex=${x(this.canFocusContainer ? "0" : void 0)} class=${g({
|
|
195
95
|
"color-swatch": !0,
|
|
196
96
|
"color-swatch--circle": this.variant === p.Circle,
|
|
197
97
|
"color-swatch--grid": this.variant === p.GridItem,
|
|
198
98
|
"color-swatch--oval": this.variant === p.Oval
|
|
199
|
-
})}
|
|
200
|
-
style=${l({
|
|
99
|
+
})} style=${l({
|
|
201
100
|
backgroundColor: this.backgroundColor
|
|
202
|
-
})}
|
|
203
|
-
@focusin=${this.handleFocusIn}
|
|
204
|
-
@focusout=${this.handleFocusOut}
|
|
205
|
-
>
|
|
206
|
-
<cx-space
|
|
207
|
-
part="content"
|
|
208
|
-
direction="vertical"
|
|
209
|
-
class="color-swatch__content"
|
|
210
|
-
>
|
|
211
|
-
<cx-typography
|
|
212
|
-
variant="h5"
|
|
213
|
-
part="name"
|
|
214
|
-
style=${l({
|
|
101
|
+
})} @focusin=${this.handleFocusIn} @focusout=${this.handleFocusOut}><cx-space part="content" direction="vertical" class="color-swatch__content"><cx-typography variant="h5" part="name" style=${l({
|
|
215
102
|
"--color": this.textColor
|
|
216
|
-
})}
|
|
217
|
-
>
|
|
218
|
-
${this.name}
|
|
219
|
-
</cx-typography>
|
|
220
|
-
<cx-space
|
|
221
|
-
direction="vertical"
|
|
222
|
-
spacing=${this.rowGap}
|
|
223
|
-
part="content"
|
|
224
|
-
>
|
|
225
|
-
${U(
|
|
103
|
+
})}>${this.name}</cx-typography><cx-space direction="vertical" spacing=${this.rowGap} part="content">${U(
|
|
226
104
|
o,
|
|
227
105
|
(r) => r.key,
|
|
228
|
-
(r) => u`<cx-space
|
|
229
|
-
direction="horizontal"
|
|
230
|
-
align-items="center"
|
|
231
|
-
spacing="small"
|
|
232
|
-
part="item"
|
|
233
|
-
wrap="nowrap"
|
|
234
|
-
>
|
|
235
|
-
<cx-typography
|
|
236
|
-
variant=${this.textVariant}
|
|
237
|
-
class="color-swatch__key"
|
|
238
|
-
part="key"
|
|
239
|
-
style=${l({
|
|
106
|
+
(r) => u`<cx-space direction="horizontal" align-items="center" spacing="small" part="item" wrap="nowrap"><cx-typography variant=${this.textVariant} class="color-swatch__key" part="key" style=${l({
|
|
240
107
|
"--color": this.textColor
|
|
241
|
-
})}
|
|
242
|
-
>
|
|
243
|
-
${r.key}
|
|
244
|
-
</cx-typography>
|
|
245
|
-
${E(
|
|
108
|
+
})}>${r.key}</cx-typography>${E(
|
|
246
109
|
this.canCopy && r.value !== "",
|
|
247
|
-
() => u
|
|
248
|
-
<cx-copy-button
|
|
249
|
-
part="copy-button"
|
|
250
|
-
tabindex=${x(
|
|
110
|
+
() => u`<cx-copy-button part="copy-button" tabindex=${x(
|
|
251
111
|
this.canFocusCodeOnly ? void 0 : "-1"
|
|
252
|
-
)}
|
|
253
|
-
class="color-swatch__copy-button"
|
|
254
|
-
copy-label=${this.localize.term("clickToCopy")}
|
|
255
|
-
focus-copy-label=${this.localize.term(
|
|
112
|
+
)} class="color-swatch__copy-button" copy-label=${this.localize.term("clickToCopy")} focus-copy-label=${this.localize.term(
|
|
256
113
|
"pressEnterOrCtrlCToCopy"
|
|
257
|
-
)}
|
|
258
|
-
label=${`${r.key} ${r.value}`}
|
|
259
|
-
no-icon
|
|
260
|
-
value=${r.value}
|
|
261
|
-
>
|
|
262
|
-
<cx-line-clamp
|
|
263
|
-
lines=${this.lineClamp}
|
|
264
|
-
disabled-tooltip
|
|
265
|
-
class=${g({
|
|
114
|
+
)} label=${`${r.key} ${r.value}`} no-icon value=${r.value}><cx-line-clamp lines=${this.lineClamp} disabled-tooltip class=${g({
|
|
266
115
|
"color-swatch__value-wrapper": !0
|
|
267
|
-
})}
|
|
268
|
-
>
|
|
269
|
-
<cx-typography
|
|
270
|
-
variant=${this.textVariant}
|
|
271
|
-
style=${l({
|
|
116
|
+
})}><cx-typography variant=${this.textVariant} style=${l({
|
|
272
117
|
"--color": this.textColor
|
|
273
|
-
})}
|
|
274
|
-
|
|
275
|
-
part="value"
|
|
276
|
-
>
|
|
277
|
-
${r.value}
|
|
278
|
-
</cx-typography>
|
|
279
|
-
</cx-line-clamp>
|
|
280
|
-
</cx-copy-button>
|
|
281
|
-
`,
|
|
282
|
-
() => u`
|
|
283
|
-
<cx-line-clamp
|
|
284
|
-
lines=${this.lineClamp}
|
|
285
|
-
disabled-tooltip
|
|
286
|
-
class="color-swatch__value-wrapper"
|
|
287
|
-
>
|
|
288
|
-
<cx-typography
|
|
289
|
-
variant=${this.textVariant}
|
|
290
|
-
style=${l({
|
|
118
|
+
})} class="color-swatch__value" part="value">${r.value}</cx-typography></cx-line-clamp></cx-copy-button>`,
|
|
119
|
+
() => u`<cx-line-clamp lines=${this.lineClamp} disabled-tooltip class="color-swatch__value-wrapper"><cx-typography variant=${this.textVariant} style=${l({
|
|
291
120
|
"--color": this.textColor
|
|
292
|
-
})}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
>
|
|
296
|
-
${r.value}
|
|
297
|
-
</cx-typography>
|
|
298
|
-
</cx-line-clamp>
|
|
299
|
-
`
|
|
300
|
-
)}
|
|
301
|
-
</cx-space>`
|
|
302
|
-
)}
|
|
303
|
-
</cx-space>
|
|
304
|
-
</cx-space>
|
|
305
|
-
</div>
|
|
306
|
-
</cx-resize-observer>
|
|
307
|
-
`;
|
|
121
|
+
})} class="color-swatch__value" part="value">${r.value}</cx-typography></cx-line-clamp>`
|
|
122
|
+
)}</cx-space>`
|
|
123
|
+
)}</cx-space></cx-space></div></cx-resize-observer>`;
|
|
308
124
|
}
|
|
309
125
|
};
|
|
310
126
|
t.styles = [F, S];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as L, q as i, R as m, d as s, x as c, H as A, C as h, w as g, L as R, T, B as y, G as _, b, s as G, c as S, a as x, f as p, bx as D, by as P } from "./am-chart.
|
|
2
|
-
import { L as k } from "./LinearGradient.
|
|
3
|
-
import { C as M } from "./Circle.
|
|
4
|
-
import { E as H } from "./EditableLabel.
|
|
5
|
-
import { S as B } from "./Slider.
|
|
1
|
+
import { D as L, q as i, R as m, d as s, x as c, H as A, C as h, w as g, L as R, T, B as y, G as _, b, s as G, c as S, a as x, f as p, bx as D, by as P } from "./am-chart.H2jnOzFc.js";
|
|
2
|
+
import { L as k } from "./LinearGradient.B1z9AGUt.js";
|
|
3
|
+
import { C as M } from "./Circle.DBa5Ok8V.js";
|
|
4
|
+
import { E as H } from "./EditableLabel.BWeq6fgX.js";
|
|
5
|
+
import { S as B } from "./Slider.C20No2z5.js";
|
|
6
6
|
class O extends L {
|
|
7
7
|
setupDefaultRules() {
|
|
8
8
|
super.setupDefaultRules();
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { i as t } from "./lit-element.jLBm65_O.js";
|
|
2
|
+
const o = t`:host{box-sizing:border-box}:host *,:host :before,:host :after{box-sizing:inherit}[hidden],:not(:defined):not(video-js){display:initial;visibility:hidden!important;border:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important}::-webkit-scrollbar{width:17px;height:17px}::-webkit-scrollbar-button:decrement{height:0}::-webkit-scrollbar-button:increment{height:0}::-webkit-scrollbar-button:decrement:horizontal{width:0}::-webkit-scrollbar-button:increment:horizontal{width:0}::-webkit-scrollbar-thumb{background:var(--cx-color-neutral-400);background-clip:padding-box;border:7px solid #0000;border-radius:13px}::-webkit-scrollbar-thumb:hover{background:var(--cx-color-neutral-500);background-clip:padding-box;border:4px solid #0000}::-webkit-scrollbar-thumb{min-height:50px}::-webkit-scrollbar-button:vertical:start:increment,::-webkit-scrollbar-button:vertical:end:decrement,::-webkit-scrollbar-button:horizontal:start:increment,::-webkit-scrollbar-button:horizontal:end:decrement{display:none}`;
|
|
3
|
+
export {
|
|
4
|
+
o as c
|
|
5
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { C as _ } from "./button.B-ktz-w4.js";
|
|
2
|
+
import { C as u, D as h } from "./dialog.B1nzoJak.js";
|
|
3
|
+
import g from "../components/dropdown.js";
|
|
4
|
+
import { C as x } from "./typography.DJC_UXgs.js";
|
|
5
|
+
import { n as e, C as b } from "./lib-cortex-element.CVMmyPMC.js";
|
|
6
|
+
import { c as y } from "./component.styles.CRO4Odto.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`.confirm-popover--dropdown .confirm-popover__dropdown-content{padding:var(--cx-spacing-medium);text-align:center;flex-direction:column;width:max-content;display:flex}.confirm-popover cx-divider{--spacing:var(--cx-spacing-medium)}.confirm-popover .confirm-popover__actions{gap:var(--cx-spacing-medium);display:flex}.confirm-popover--dialog{--width:var(--confirm-popover-dialog-width)}.confirm-popover__actions--direction-horizontal{flex-direction:row}.confirm-popover__actions--direction-horizontal-reverse{flex-direction:row-reverse}.confirm-popover__actions--direction-horizontal.confirm-popover__actions--alignment-end,.confirm-popover__actions--direction-horizontal-reverse.confirm-popover__actions--alignment-start{justify-content:flex-end}.confirm-popover__actions--direction-horizontal.confirm-popover__actions--alignment-start,.confirm-popover__actions--direction-horizontal-reverse.confirm-popover__actions--alignment-end{justify-content:flex-start}.confirm-popover__actions--direction-horizontal.confirm-popover__actions--alignment-center,.confirm-popover__actions--direction-horizontal-reverse.confirm-popover__actions--alignment-center{justify-content:center}.confirm-popover__actions--direction-vertical{flex-direction:column}.confirm-popover__actions--direction-vertical-reverse{flex-direction:column-reverse}.confirm-popover__actions--direction-vertical.confirm-popover__actions--alignment-start,.confirm-popover__actions--direction-vertical-reverse.confirm-popover__actions--alignment-start{align-items:flex-start}.confirm-popover__actions--direction-vertical.confirm-popover__actions--alignment-end,.confirm-popover__actions--direction-vertical-reverse.confirm-popover__actions--alignment-end{align-items:flex-end}.confirm-popover__actions--direction-vertical.confirm-popover__actions--alignment-center,.confirm-popover__actions--direction-vertical-reverse.confirm-popover__actions--alignment-center{align-items:center}.confirm-popover--dropdown .confirm-popover__actions{margin-top:var(--cx-spacing-small);justify-content:center}.confirm-popover__confirm-button{--background-color:var(--confirm-button-background-color,var(--cx-color-danger));--color:var(--confirm-button-color,var(--cx-color-neutral-0))}.confirm-popover__cancel-button{--background-color:var(--cancel-button-background-color,var(--cx-color-primary-500));--color:var(--cancel-button-color,var(--cx-color-neutral-0))}`;
|
|
14
|
+
var C = Object.defineProperty, D = Object.getOwnPropertyDescriptor, r = (t, n, s, c) => {
|
|
15
|
+
for (var i = c > 1 ? void 0 : c ? D(n, s) : n, p = t.length - 1, l; p >= 0; p--)
|
|
16
|
+
(l = t[p]) && (i = (c ? l(n, s, i) : l(i)) || i);
|
|
17
|
+
return c && i && C(n, s, i), i;
|
|
18
|
+
};
|
|
19
|
+
let o = class extends b {
|
|
20
|
+
constructor() {
|
|
21
|
+
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;
|
|
22
|
+
}
|
|
23
|
+
get open() {
|
|
24
|
+
return this.variant === "dialog" ? this.dialog.open : this.dropdown.open;
|
|
25
|
+
}
|
|
26
|
+
hide() {
|
|
27
|
+
this.variant === "dialog" ? this.dialog.hide() : this.dropdown.hide();
|
|
28
|
+
}
|
|
29
|
+
show() {
|
|
30
|
+
this.variant === "dialog" ? this.dialog.show() : this.dropdown.show();
|
|
31
|
+
}
|
|
32
|
+
confirm() {
|
|
33
|
+
this.emit("cx-confirm").defaultPrevented || this.hide();
|
|
34
|
+
}
|
|
35
|
+
cancel() {
|
|
36
|
+
this.emit("cx-cancel").defaultPrevented || this.hide();
|
|
37
|
+
}
|
|
38
|
+
handleSlotClick() {
|
|
39
|
+
if (this.disabled) {
|
|
40
|
+
this.confirm();
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
this.variant === "dialog" && (this.dialog.open ? this.dialog.hide() : this.dialog.show());
|
|
44
|
+
}
|
|
45
|
+
renderSlot() {
|
|
46
|
+
return d`<slot class="confirm-popover__trigger" name="trigger" slot="trigger" @click=${this.handleSlotClick}></slot>`;
|
|
47
|
+
}
|
|
48
|
+
renderDialog() {
|
|
49
|
+
return d`${this.renderSlot()}<cx-dialog part="dialog" label=${this.dialogLabel || this.localize.term("confirm")} divider-position=${this.dividerPosition} .boundary=${this.boundary} class=${a({
|
|
50
|
+
"confirm-popover": !0,
|
|
51
|
+
"confirm-popover--dialog": !0
|
|
52
|
+
})}><cx-typography variant="body2">${this.message}</cx-typography><div part="actions" class=${a({
|
|
53
|
+
"confirm-popover__actions": !0,
|
|
54
|
+
[`confirm-popover__actions--direction-${this.buttonsDirection}`]: !0,
|
|
55
|
+
[`confirm-popover__actions--alignment-${this.buttonsAlignment}`]: !0
|
|
56
|
+
})} slot="footer"><cx-button part="confirm-button" class="confirm-popover__confirm-button" @click=${this.confirm} variant="custom">${this.confirmText || this.localize.term("confirm")}</cx-button><cx-button part="cancel-button" class="confirm-popover__cancel-button" @click=${this.cancel} variant="custom">${this.cancelText || this.localize.term("cancel")}</cx-button></div><div part="footer" class="confirm-popover__footer"><slot name="footer"></slot></div></cx-dialog>`;
|
|
57
|
+
}
|
|
58
|
+
renderDropdown() {
|
|
59
|
+
return d`<cx-dropdown part="dropdown" class=${a({
|
|
60
|
+
"confirm-popover": !0,
|
|
61
|
+
"confirm-popover--dropdown": !0
|
|
62
|
+
})} no-header ?disabled=${this.disabled} ?hoist=${!this.boundary || this.boundary === document.body}>${this.renderSlot()}<div class="confirm-popover__dropdown-content"><cx-typography variant="body2">${this.message}</cx-typography><div part="actions" class=${a({
|
|
63
|
+
"confirm-popover__actions": !0,
|
|
64
|
+
[`confirm-popover__actions--direction-${this.buttonsDirection}`]: !0
|
|
65
|
+
/** Dropdown variant alignment is always center */
|
|
66
|
+
})} slot="footer"><cx-button part="confirm-button" class="confirm-popover__confirm-button" @click=${this.confirm} variant="custom">${this.confirmText || this.localize.term("confirm")}</cx-button><cx-button part="cancel-button" class="confirm-popover__cancel-button" @click=${this.cancel} variant="custom">${this.cancelText || this.localize.term("cancel")}</cx-button></div><div part="footer" class="confirm-popover__footer" slot="footer"><slot name="footer"></slot></div></div></cx-dropdown>`;
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
return this.variant === "dialog" ? this.renderDialog() : this.renderDropdown();
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
o.styles = [y, S];
|
|
73
|
+
o.dependencies = {
|
|
74
|
+
"cx-button": _,
|
|
75
|
+
"cx-dialog": u,
|
|
76
|
+
"cx-dropdown": g,
|
|
77
|
+
"cx-typography": x
|
|
78
|
+
};
|
|
79
|
+
r([
|
|
80
|
+
m("cx-dropdown")
|
|
81
|
+
], o.prototype, "dropdown", 2);
|
|
82
|
+
r([
|
|
83
|
+
m("cx-dialog")
|
|
84
|
+
], o.prototype, "dialog", 2);
|
|
85
|
+
r([
|
|
86
|
+
e({ reflect: !0, type: String })
|
|
87
|
+
], o.prototype, "message", 2);
|
|
88
|
+
r([
|
|
89
|
+
e({ reflect: !0, type: Boolean })
|
|
90
|
+
], o.prototype, "disabled", 2);
|
|
91
|
+
r([
|
|
92
|
+
e({ attribute: "buttons-direction", reflect: !0, type: String })
|
|
93
|
+
], o.prototype, "buttonsDirection", 2);
|
|
94
|
+
r([
|
|
95
|
+
e({ attribute: "buttons-alignment", reflect: !0, type: String })
|
|
96
|
+
], o.prototype, "buttonsAlignment", 2);
|
|
97
|
+
r([
|
|
98
|
+
e({ attribute: "divider-position", reflect: !0, type: String })
|
|
99
|
+
], o.prototype, "dividerPosition", 2);
|
|
100
|
+
r([
|
|
101
|
+
e({ attribute: "dialog-label", reflect: !0, type: String })
|
|
102
|
+
], o.prototype, "dialogLabel", 2);
|
|
103
|
+
r([
|
|
104
|
+
e({ attribute: "confirm-text", reflect: !0, type: String })
|
|
105
|
+
], o.prototype, "confirmText", 2);
|
|
106
|
+
r([
|
|
107
|
+
e({ attribute: "cancel-text", reflect: !0, type: String })
|
|
108
|
+
], o.prototype, "cancelText", 2);
|
|
109
|
+
r([
|
|
110
|
+
e({ reflect: !0 })
|
|
111
|
+
], o.prototype, "variant", 2);
|
|
112
|
+
r([
|
|
113
|
+
e({ type: Object })
|
|
114
|
+
], o.prototype, "boundary", 2);
|
|
115
|
+
o = r([
|
|
116
|
+
w("cx-confirm-popover")
|
|
117
|
+
], o);
|
|
118
|
+
export {
|
|
119
|
+
o as C,
|
|
120
|
+
f as a
|
|
121
|
+
};
|