@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.
- 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
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { n as r, C as d } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as h } from "./component.styles.DMSLciL5.js";
|
|
3
|
-
import { c as y } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { L as u } from "./i18n.BUW7B9hr.js";
|
|
5
|
-
import { w as g } from "./watch.BCJD77bD.js";
|
|
6
|
-
import { i as v, x as p } from "./lit-element.jLBm65_O.js";
|
|
7
|
-
import { e as b } from "./query.BBf1UFkC.js";
|
|
8
|
-
import { e as x } from "./class-map.BiVq-cVR.js";
|
|
9
|
-
import { o as f } from "./if-defined.BRoBj_Rp.js";
|
|
10
|
-
import { n as w } from "./when.Dr1es41R.js";
|
|
11
|
-
var m = /* @__PURE__ */ ((o) => (o.Eager = "eager", o.Lazy = "lazy", o))(m || {});
|
|
12
|
-
const _ = v`
|
|
13
|
-
:host {
|
|
14
|
-
--background-color: #f5f5f5;
|
|
15
|
-
|
|
16
|
-
display: block;
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: var(--height, 500px);
|
|
19
|
-
isolation: isolate;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.iframe {
|
|
23
|
-
position: relative;
|
|
24
|
-
display: block;
|
|
25
|
-
height: 100%;
|
|
26
|
-
width: 100%;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.iframe--empty::before {
|
|
30
|
-
align-items: center;
|
|
31
|
-
background-color: #000000;
|
|
32
|
-
color: #ffffff;
|
|
33
|
-
content: attr(data-empty-text);
|
|
34
|
-
display: flex;
|
|
35
|
-
font-family: var(--cx-font-sans);
|
|
36
|
-
font-size: var(--cx-font-size-large);
|
|
37
|
-
font-weight: var(--cx-font-weight-semibold);
|
|
38
|
-
height: 100%;
|
|
39
|
-
justify-content: center;
|
|
40
|
-
line-height: 1;
|
|
41
|
-
position: absolute;
|
|
42
|
-
text-align: center;
|
|
43
|
-
text-shadow: 0.05em 0.05em 0.1em #000;
|
|
44
|
-
vertical-align: middle;
|
|
45
|
-
width: 100%;
|
|
46
|
-
z-index: 1;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.iframe__overlay {
|
|
50
|
-
background-color: transparent;
|
|
51
|
-
display: none;
|
|
52
|
-
height: 100%;
|
|
53
|
-
left: 0;
|
|
54
|
-
position: absolute;
|
|
55
|
-
top: 0;
|
|
56
|
-
width: 100%;
|
|
57
|
-
z-index: 1;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.iframe__view {
|
|
61
|
-
background-color: var(--background-color);
|
|
62
|
-
border-radius: var(--cx-border-radius-small);
|
|
63
|
-
border: none;
|
|
64
|
-
display: block;
|
|
65
|
-
height: 100%;
|
|
66
|
-
width: 100%;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.iframe__spinner {
|
|
70
|
-
--track-width: 6px;
|
|
71
|
-
|
|
72
|
-
font-size: 4rem;
|
|
73
|
-
position: absolute;
|
|
74
|
-
top: 50%;
|
|
75
|
-
left: 50%;
|
|
76
|
-
transform: translate(-50%, -50%);
|
|
77
|
-
z-index: 2;
|
|
78
|
-
}
|
|
79
|
-
`;
|
|
80
|
-
var z = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, t = (o, a, l, s) => {
|
|
81
|
-
for (var i = s > 1 ? void 0 : s ? $(a, l) : a, n = o.length - 1, c; n >= 0; n--)
|
|
82
|
-
(c = o[n]) && (i = (s ? c(a, l, i) : c(i)) || i);
|
|
83
|
-
return s && i && z(a, l, i), i;
|
|
84
|
-
};
|
|
85
|
-
let e = class extends d {
|
|
86
|
-
constructor() {
|
|
87
|
-
super(...arguments), this.localize = new u(this), this.src = "", this.iframeTitle = "Embedded content", this.iframeLoading = m.Lazy, this.allow = "", this.sandbox = "", this.referrerPolicy = "", this.canFullscreen = !1, this.loading = !1;
|
|
88
|
-
}
|
|
89
|
-
async handleCanFullscreenChange() {
|
|
90
|
-
await this.updateComplete, this.iframe && (this.iframe.src = "", this.iframe.src = this.src);
|
|
91
|
-
}
|
|
92
|
-
render() {
|
|
93
|
-
return p`
|
|
94
|
-
<div
|
|
95
|
-
part="base"
|
|
96
|
-
data-empty-text=${this.localize.term("noSourceUrlProvided")}
|
|
97
|
-
class=${x({
|
|
98
|
-
iframe: !0,
|
|
99
|
-
"iframe--empty": !this.src && !this.loading
|
|
100
|
-
})}
|
|
101
|
-
>
|
|
102
|
-
${w(
|
|
103
|
-
this.loading,
|
|
104
|
-
() => p`<cx-spinner class="iframe__spinner"></cx-spinner>`
|
|
105
|
-
)}
|
|
106
|
-
<div part="overlay" class="iframe__overlay" aria-hidden="true"></div>
|
|
107
|
-
<iframe
|
|
108
|
-
part="view"
|
|
109
|
-
class="iframe__view"
|
|
110
|
-
allow=${f(this.allow || void 0)}
|
|
111
|
-
loading=${this.iframeLoading}
|
|
112
|
-
referrerpolicy=${f(this.referrerPolicy || void 0)}
|
|
113
|
-
sandbox=${f(this.sandbox || void 0)}
|
|
114
|
-
src=${this.src}
|
|
115
|
-
title=${this.iframeTitle}
|
|
116
|
-
?allowfullscreen=${this.canFullscreen}
|
|
117
|
-
></iframe>
|
|
118
|
-
</div>
|
|
119
|
-
`;
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
e.styles = [h, _];
|
|
123
|
-
e.dependencies = {};
|
|
124
|
-
t([
|
|
125
|
-
b("iframe")
|
|
126
|
-
], e.prototype, "iframe", 2);
|
|
127
|
-
t([
|
|
128
|
-
r({ reflect: !0, type: String })
|
|
129
|
-
], e.prototype, "src", 2);
|
|
130
|
-
t([
|
|
131
|
-
r({ attribute: "iframe-title", reflect: !0, type: String })
|
|
132
|
-
], e.prototype, "iframeTitle", 2);
|
|
133
|
-
t([
|
|
134
|
-
r({ attribute: "iframe-loading", reflect: !0, type: String })
|
|
135
|
-
], e.prototype, "iframeLoading", 2);
|
|
136
|
-
t([
|
|
137
|
-
r({ reflect: !0, type: String })
|
|
138
|
-
], e.prototype, "allow", 2);
|
|
139
|
-
t([
|
|
140
|
-
r({ reflect: !0, type: String })
|
|
141
|
-
], e.prototype, "sandbox", 2);
|
|
142
|
-
t([
|
|
143
|
-
r({ attribute: "referrer-policy", reflect: !0, type: String })
|
|
144
|
-
], e.prototype, "referrerPolicy", 2);
|
|
145
|
-
t([
|
|
146
|
-
r({ attribute: "can-fullscreen", reflect: !0, type: Boolean })
|
|
147
|
-
], e.prototype, "canFullscreen", 2);
|
|
148
|
-
t([
|
|
149
|
-
r({ reflect: !0, type: Boolean })
|
|
150
|
-
], e.prototype, "loading", 2);
|
|
151
|
-
t([
|
|
152
|
-
g("canFullscreen")
|
|
153
|
-
], e.prototype, "handleCanFullscreenChange", 1);
|
|
154
|
-
e = t([
|
|
155
|
-
y("cx-iframe")
|
|
156
|
-
], e);
|
|
157
|
-
export {
|
|
158
|
-
e as C,
|
|
159
|
-
m as a
|
|
160
|
-
};
|
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
import { n as s, C as x } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as m } from "./component.styles.DMSLciL5.js";
|
|
3
|
-
import { c as v } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { L as g } from "./i18n.BUW7B9hr.js";
|
|
5
|
-
import { w as d } from "./watch.BCJD77bD.js";
|
|
6
|
-
import { i as b, x as h } from "./lit-element.jLBm65_O.js";
|
|
7
|
-
import { r as f } from "./state.CSDxrqLd.js";
|
|
8
|
-
import { e as _ } from "./query.BBf1UFkC.js";
|
|
9
|
-
import { e as y } from "./class-map.BiVq-cVR.js";
|
|
10
|
-
import { n as u } from "./when.Dr1es41R.js";
|
|
11
|
-
import k from "../components/icon.js";
|
|
12
|
-
import w from "../components/space.js";
|
|
13
|
-
var r = /* @__PURE__ */ ((t) => (t.Left = "left", t.Right = "right", t))(r || {});
|
|
14
|
-
const C = b`
|
|
15
|
-
:host {
|
|
16
|
-
display: block;
|
|
17
|
-
user-select: none;
|
|
18
|
-
-webkit-user-select: none;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
:host(:focus) {
|
|
22
|
-
outline: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.option {
|
|
26
|
-
position: relative;
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
font-family: var(--cx-font-sans);
|
|
30
|
-
font-size: var(--cx-font-size-small);
|
|
31
|
-
font-weight: var(--option-font-weight, var(--cx-font-weight-regular));
|
|
32
|
-
line-height: var(--cx-line-height-large);
|
|
33
|
-
letter-spacing: var(--cx-letter-spacing-normal);
|
|
34
|
-
color: var(--option-color, var(--cx-color-neutral-700));
|
|
35
|
-
padding: var(--cx-spacing-x-small) var(--cx-spacing-medium)
|
|
36
|
-
var(--cx-spacing-x-small) var(--cx-spacing-x-small);
|
|
37
|
-
transition: var(--cx-transition-fast) fill;
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.option:not(.option--show-check) {
|
|
42
|
-
padding-inline: var(--cx-spacing-small);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.option--hover:not(.option--current):not(.option--disabled) {
|
|
46
|
-
background-color: var(--cx-menu-item-background-color-hover);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.option--current,
|
|
50
|
-
.option--current.option--disabled {
|
|
51
|
-
background-color: var(--cx-menu-item-background-color-hover);
|
|
52
|
-
opacity: 1;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.option--selected {
|
|
56
|
-
color: var(--option-selected-color, var(--cx-color-primary));
|
|
57
|
-
font-weight: var(
|
|
58
|
-
--option-selected-font-weight,
|
|
59
|
-
var(--cx-font-weight-regular)
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.option--disabled {
|
|
64
|
-
outline: none;
|
|
65
|
-
opacity: 0.5;
|
|
66
|
-
cursor: default;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.option__content {
|
|
70
|
-
flex: 1;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.option__label {
|
|
74
|
-
flex: 1 1 auto;
|
|
75
|
-
display: inline-block;
|
|
76
|
-
line-height: var(--cx-line-height-medium);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.option .option__check {
|
|
80
|
-
flex: 0 0 auto;
|
|
81
|
-
display: flex;
|
|
82
|
-
align-items: center;
|
|
83
|
-
justify-content: center;
|
|
84
|
-
visibility: hidden;
|
|
85
|
-
padding-inline-end: var(--cx-spacing-2x-small);
|
|
86
|
-
display: none;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.option--show-check .option__check {
|
|
90
|
-
display: block;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.option--show-check.option--selected .option__check {
|
|
94
|
-
visibility: visible;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.option__help-text {
|
|
98
|
-
color: var(--option-help-text-color, var(--cx-color-neutral-600));
|
|
99
|
-
font-weight: var(
|
|
100
|
-
--option-help-text-font-weight,
|
|
101
|
-
var(--cx-font-weight-regular)
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.option--selected .option__content .option__help-text {
|
|
106
|
-
color: var(--option-selected-help-text-color, var(--cx-color-primary));
|
|
107
|
-
font-weight: var(
|
|
108
|
-
--option-selected-help-text-font-weight,
|
|
109
|
-
var(--cx-font-weight-regular)
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.option__prefix,
|
|
114
|
-
.option__suffix {
|
|
115
|
-
flex: 0 0 auto;
|
|
116
|
-
display: flex;
|
|
117
|
-
align-items: center;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.option__prefix::slotted(*) {
|
|
121
|
-
margin-inline-end: var(--cx-spacing-x-small);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.option__suffix::slotted(*) {
|
|
125
|
-
margin-inline-start: var(--cx-spacing-x-small);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.option__prefix {
|
|
129
|
-
align-self: var(--prefix-alignment, center);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.option__suffix {
|
|
133
|
-
align-self: var(--suffix-alignment, center);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.option__check {
|
|
137
|
-
align-self: var(--check-alignment, center);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@media (forced-colors: active) {
|
|
141
|
-
:host(:hover:not([aria-disabled='true'])) .option {
|
|
142
|
-
outline: dashed 1px SelectedItem;
|
|
143
|
-
outline-offset: -1px;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
`;
|
|
147
|
-
var L = Object.defineProperty, E = Object.getOwnPropertyDescriptor, o = (t, a, i, l) => {
|
|
148
|
-
for (var n = l > 1 ? void 0 : l ? E(a, i) : a, c = t.length - 1, p; c >= 0; c--)
|
|
149
|
-
(p = t[c]) && (n = (l ? p(a, i, n) : p(n)) || n);
|
|
150
|
-
return l && n && L(a, i, n), n;
|
|
151
|
-
};
|
|
152
|
-
let e = class extends x {
|
|
153
|
-
constructor() {
|
|
154
|
-
super(...arguments), this.localize = new g(this), this.current = !1, this.selected = !1, this.hasHover = !1, this.value = "", this.disabled = !1, this.showCheck = !1, this.checkPlacement = r.Left;
|
|
155
|
-
}
|
|
156
|
-
connectedCallback() {
|
|
157
|
-
super.connectedCallback(), this.setAttribute("role", "option"), this.setAttribute("aria-selected", "false");
|
|
158
|
-
}
|
|
159
|
-
handleDefaultSlotChange() {
|
|
160
|
-
const t = this.getTextLabel();
|
|
161
|
-
if (typeof this.cachedTextLabel > "u") {
|
|
162
|
-
this.cachedTextLabel = t;
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
t !== this.cachedTextLabel && (this.cachedTextLabel = t, this.emit("slotchange", {
|
|
166
|
-
bubbles: !0,
|
|
167
|
-
cancelable: !1,
|
|
168
|
-
composed: !1
|
|
169
|
-
}));
|
|
170
|
-
}
|
|
171
|
-
handleMouseEnter() {
|
|
172
|
-
this.hasHover = !0;
|
|
173
|
-
}
|
|
174
|
-
handleMouseLeave() {
|
|
175
|
-
this.hasHover = !1;
|
|
176
|
-
}
|
|
177
|
-
handleDisabledChange() {
|
|
178
|
-
this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
|
|
179
|
-
}
|
|
180
|
-
handleSelectedChange() {
|
|
181
|
-
this.setAttribute("aria-selected", this.selected ? "true" : "false");
|
|
182
|
-
}
|
|
183
|
-
handleValueChange() {
|
|
184
|
-
typeof this.value != "string" && (this.value = String(this.value)), this.value.includes(" ") && (console.error(
|
|
185
|
-
"Option values cannot include a space. All spaces have been replaced with underscores.",
|
|
186
|
-
this
|
|
187
|
-
), this.value = this.value.replace(/ /g, "_"));
|
|
188
|
-
}
|
|
189
|
-
/** Returns a plain text label based on the option's content. */
|
|
190
|
-
getTextLabel() {
|
|
191
|
-
const t = this.childNodes;
|
|
192
|
-
let a = "";
|
|
193
|
-
return [...t].forEach((i) => {
|
|
194
|
-
i.nodeType === Node.ELEMENT_NODE && (i.hasAttribute("slot") || (a += i.textContent)), i.nodeType === Node.TEXT_NODE && (a += i.textContent);
|
|
195
|
-
}), a.trim();
|
|
196
|
-
}
|
|
197
|
-
render() {
|
|
198
|
-
return h`
|
|
199
|
-
<div
|
|
200
|
-
part="base"
|
|
201
|
-
class=${y({
|
|
202
|
-
option: !0,
|
|
203
|
-
"option--current": this.current,
|
|
204
|
-
"option--disabled": this.disabled,
|
|
205
|
-
"option--hover": this.hasHover,
|
|
206
|
-
"option--selected": this.selected,
|
|
207
|
-
"option--show-check": this.showCheck
|
|
208
|
-
})}
|
|
209
|
-
@mouseenter=${this.handleMouseEnter}
|
|
210
|
-
@mouseleave=${this.handleMouseLeave}
|
|
211
|
-
>
|
|
212
|
-
${u(
|
|
213
|
-
this.checkPlacement === r.Left,
|
|
214
|
-
() => h`<cx-icon
|
|
215
|
-
part="checked-icon"
|
|
216
|
-
class="option__check"
|
|
217
|
-
name="check"
|
|
218
|
-
library="system"
|
|
219
|
-
aria-hidden="true"
|
|
220
|
-
></cx-icon> `
|
|
221
|
-
)}
|
|
222
|
-
<slot part="prefix" name="prefix" class="option__prefix"></slot>
|
|
223
|
-
<cx-space
|
|
224
|
-
part="content"
|
|
225
|
-
class="option__content"
|
|
226
|
-
direction="vertical"
|
|
227
|
-
spacing="3x-small"
|
|
228
|
-
>
|
|
229
|
-
<slot
|
|
230
|
-
part="label"
|
|
231
|
-
class="option__label"
|
|
232
|
-
@slotchange=${this.handleDefaultSlotChange}
|
|
233
|
-
></slot>
|
|
234
|
-
<slot
|
|
235
|
-
part="help-text"
|
|
236
|
-
name="help-text"
|
|
237
|
-
class="option__help-text"
|
|
238
|
-
></slot>
|
|
239
|
-
</cx-space>
|
|
240
|
-
<slot part="suffix" name="suffix" class="option__suffix"></slot>
|
|
241
|
-
${u(
|
|
242
|
-
this.checkPlacement === r.Right,
|
|
243
|
-
() => h`<cx-icon
|
|
244
|
-
part="checked-icon"
|
|
245
|
-
class="option__check"
|
|
246
|
-
name="check"
|
|
247
|
-
library="system"
|
|
248
|
-
aria-hidden="true"
|
|
249
|
-
></cx-icon> `
|
|
250
|
-
)}
|
|
251
|
-
</div>
|
|
252
|
-
`;
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
e.styles = [m, C];
|
|
256
|
-
e.dependencies = { "cx-icon": k, "cx-space": w };
|
|
257
|
-
o([
|
|
258
|
-
_(".option__label")
|
|
259
|
-
], e.prototype, "defaultSlot", 2);
|
|
260
|
-
o([
|
|
261
|
-
f()
|
|
262
|
-
], e.prototype, "current", 2);
|
|
263
|
-
o([
|
|
264
|
-
f()
|
|
265
|
-
], e.prototype, "selected", 2);
|
|
266
|
-
o([
|
|
267
|
-
f()
|
|
268
|
-
], e.prototype, "hasHover", 2);
|
|
269
|
-
o([
|
|
270
|
-
s({ reflect: !0 })
|
|
271
|
-
], e.prototype, "value", 2);
|
|
272
|
-
o([
|
|
273
|
-
s({ reflect: !0, type: Boolean })
|
|
274
|
-
], e.prototype, "disabled", 2);
|
|
275
|
-
o([
|
|
276
|
-
s({ attribute: "show-check", reflect: !0, type: Boolean })
|
|
277
|
-
], e.prototype, "showCheck", 2);
|
|
278
|
-
o([
|
|
279
|
-
s({ attribute: "check-placement", reflect: !0, type: String })
|
|
280
|
-
], e.prototype, "checkPlacement", 2);
|
|
281
|
-
o([
|
|
282
|
-
d("disabled")
|
|
283
|
-
], e.prototype, "handleDisabledChange", 1);
|
|
284
|
-
o([
|
|
285
|
-
d("selected")
|
|
286
|
-
], e.prototype, "handleSelectedChange", 1);
|
|
287
|
-
o([
|
|
288
|
-
d("value")
|
|
289
|
-
], e.prototype, "handleValueChange", 1);
|
|
290
|
-
e = o([
|
|
291
|
-
v("cx-option")
|
|
292
|
-
], e);
|
|
293
|
-
export {
|
|
294
|
-
e as C,
|
|
295
|
-
r as a
|
|
296
|
-
};
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { n as f, C as v } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c } from "./component.styles.DMSLciL5.js";
|
|
3
|
-
import { c as d } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { i as m, x as i } from "./lit-element.jLBm65_O.js";
|
|
5
|
-
var t = /* @__PURE__ */ ((e) => (e.Body1 = "body1", e.Body2 = "body2", e.Body3 = "body3", e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.Small = "small", e))(t || {});
|
|
6
|
-
const x = m`
|
|
7
|
-
:host {
|
|
8
|
-
--color: inherit;
|
|
9
|
-
--font-family: var(--cx-font-sans);
|
|
10
|
-
--font-style: normal;
|
|
11
|
-
|
|
12
|
-
line-height: var(--cx-line-height-large);
|
|
13
|
-
display: block;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:host::part(base) {
|
|
17
|
-
-webkit-font-smoothing: antialiased;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.heading,
|
|
21
|
-
.body,
|
|
22
|
-
.small {
|
|
23
|
-
color: var(--color);
|
|
24
|
-
font-weight: var(--cx-font-weight);
|
|
25
|
-
font-family: var(--font-family);
|
|
26
|
-
font-style: var(--font-style);
|
|
27
|
-
letter-spacing: var(--letter-spacing, var(--cx-letter-spacing-normal));
|
|
28
|
-
margin-block-start: 0;
|
|
29
|
-
margin-block-end: 0;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.heading-1 {
|
|
33
|
-
font-size: var(--font-size, var(--cx-font-size-3x-large));
|
|
34
|
-
font-weight: var(--font-weight, var(--cx-font-weight-semibold));
|
|
35
|
-
line-height: var(--line-height, var(--cx-line-height-3x-large));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.heading-2 {
|
|
39
|
-
font-size: var(--font-size, var(--cx-font-size-2x-large));
|
|
40
|
-
font-weight: var(--font-weight, var(--cx-font-weight-semibold));
|
|
41
|
-
line-height: var(--line-height, var(--cx-line-height-3x-large));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.heading-3 {
|
|
45
|
-
font-size: var(--font-size, var(--cx-font-size-x-large));
|
|
46
|
-
font-weight: var(--font-weight, var(--cx-font-weight-semibold));
|
|
47
|
-
line-height: var(--line-height, var(--cx-line-height-2x-large));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.heading-4 {
|
|
51
|
-
font-size: var(--font-size, var(--cx-font-size-large));
|
|
52
|
-
font-weight: var(--font-weight, var(--cx-font-weight-semibold));
|
|
53
|
-
line-height: var(--line-height, var(--cx-line-height-x-large));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.heading-5 {
|
|
57
|
-
font-size: var(--font-size, var(--cx-font-size-medium));
|
|
58
|
-
font-weight: var(--font-weight, var(--cx-font-weight-semibold));
|
|
59
|
-
line-height: var(--line-height, var(--cx-line-height-large));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.heading-6 {
|
|
63
|
-
font-size: var(--font-size, var(--cx-font-size-small));
|
|
64
|
-
font-weight: var(--font-weight, var(--cx-font-weight-semibold));
|
|
65
|
-
line-height: var(--line-height, var(--cx-line-height-medium));
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.body-1 {
|
|
69
|
-
font-size: var(--font-size, var(--cx-font-size-medium-large));
|
|
70
|
-
font-weight: var(--font-weight, var(--cx-font-weight-regular));
|
|
71
|
-
line-height: var(--line-height, var(--cx-line-height-x-large));
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.body-2 {
|
|
75
|
-
font-size: var(--font-size, var(--cx-font-size-medium));
|
|
76
|
-
font-weight: var(--font-weight, var(--cx-font-weight-regular));
|
|
77
|
-
line-height: var(--line-height, var(--cx-line-height-large));
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.body-3 {
|
|
81
|
-
font-size: var(--font-size, var(--cx-font-size-small));
|
|
82
|
-
font-weight: var(--font-weight, var(--cx-font-weight-regular));
|
|
83
|
-
line-height: var(--line-height, var(--cx-line-height-medium));
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.small {
|
|
87
|
-
font-size: var(--font-size, var(--cx-font-size-x-small));
|
|
88
|
-
font-weight: var(--font-weight, var(--cx-font-weight-regular));
|
|
89
|
-
line-height: var(--line-height, var(--cx-line-height-small));
|
|
90
|
-
}
|
|
91
|
-
`;
|
|
92
|
-
var b = Object.defineProperty, w = Object.getOwnPropertyDescriptor, g = (e, n, o, r) => {
|
|
93
|
-
for (var a = r > 1 ? void 0 : r ? w(n, o) : n, l = e.length - 1, h; l >= 0; l--)
|
|
94
|
-
(h = e[l]) && (a = (r ? h(n, o, a) : h(a)) || a);
|
|
95
|
-
return r && a && b(n, o, a), a;
|
|
96
|
-
};
|
|
97
|
-
let s = class extends v {
|
|
98
|
-
constructor() {
|
|
99
|
-
super(...arguments), this.variant = t.Body1;
|
|
100
|
-
}
|
|
101
|
-
render() {
|
|
102
|
-
switch (this.variant) {
|
|
103
|
-
case t.Body1:
|
|
104
|
-
return i`<p part="base" class="body body-1"><slot></slot></p>`;
|
|
105
|
-
case t.Body2:
|
|
106
|
-
return i`<p part="base" class="body body-2"><slot></slot></p>`;
|
|
107
|
-
case t.Body3:
|
|
108
|
-
return i`<p part="base" class="body body-3"><slot></slot></p>`;
|
|
109
|
-
case t.Small:
|
|
110
|
-
return i`<small part="base" class="small"><slot></slot></small>`;
|
|
111
|
-
case t.H1:
|
|
112
|
-
return i`<h1 part="base" class="heading heading-1">
|
|
113
|
-
<slot></slot>
|
|
114
|
-
</h1>`;
|
|
115
|
-
case t.H2:
|
|
116
|
-
return i`<h2 part="base" class="heading heading-2">
|
|
117
|
-
<slot></slot>
|
|
118
|
-
</h2>`;
|
|
119
|
-
case t.H3:
|
|
120
|
-
return i`<h3 part="base" class="heading heading-3">
|
|
121
|
-
<slot></slot>
|
|
122
|
-
</h3>`;
|
|
123
|
-
case t.H4:
|
|
124
|
-
return i`<h4 part="base" class="heading heading-4">
|
|
125
|
-
<slot></slot>
|
|
126
|
-
</h4>`;
|
|
127
|
-
case t.H5:
|
|
128
|
-
return i`<h5 part="base" class="heading heading-5">
|
|
129
|
-
<slot></slot>
|
|
130
|
-
</h5>`;
|
|
131
|
-
case t.H6:
|
|
132
|
-
return i`<h6 part="base" class="heading heading-6">
|
|
133
|
-
<slot></slot>
|
|
134
|
-
</h6>`;
|
|
135
|
-
}
|
|
136
|
-
return i`<p part="base" class="body body-2"><slot></slot></p>`;
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
s.styles = [c, x];
|
|
140
|
-
g([
|
|
141
|
-
f({ type: String })
|
|
142
|
-
], s.prototype, "variant", 2);
|
|
143
|
-
s = g([
|
|
144
|
-
d("cx-typography")
|
|
145
|
-
], s);
|
|
146
|
-
export {
|
|
147
|
-
s as C,
|
|
148
|
-
t as T
|
|
149
|
-
};
|