@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
|
@@ -3,17 +3,13 @@ import m from "./resize-observer.js";
|
|
|
3
3
|
import x from "./step.js";
|
|
4
4
|
import f from "./stepper.js";
|
|
5
5
|
import { n as d, C as u } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
|
-
import { c as b } from "../chunks/component.styles.
|
|
6
|
+
import { c as b } from "../chunks/component.styles.CRO4Odto.js";
|
|
7
7
|
import { c as $ } from "../chunks/custom-element.L4WJXn1j.js";
|
|
8
8
|
import { i as v, x as a } from "../chunks/lit-element.jLBm65_O.js";
|
|
9
9
|
import { c as y } from "../chunks/repeat.DbF2p5ae.js";
|
|
10
10
|
import { o as W } from "../chunks/style-map.llVFPd__.js";
|
|
11
11
|
import { n as l } from "../chunks/when.Dr1es41R.js";
|
|
12
|
-
const C = v
|
|
13
|
-
:host {
|
|
14
|
-
display: block;
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
12
|
+
const C = v`:host{display:block}`;
|
|
17
13
|
var z = Object.defineProperty, w = Object.getOwnPropertyDescriptor, c = (t, r, n, o) => {
|
|
18
14
|
for (var e = o > 1 ? void 0 : o ? w(r, n) : r, p = t.length - 1, s; p >= 0; p--)
|
|
19
15
|
(s = t[p]) && (e = (o ? s(r, n, e) : s(e)) || e);
|
|
@@ -36,52 +32,22 @@ let i = class extends u {
|
|
|
36
32
|
this.requestUpdate("columnCount");
|
|
37
33
|
}
|
|
38
34
|
render() {
|
|
39
|
-
return a
|
|
40
|
-
<cx-resize-observer @cx-resize=${this.handleResize}>
|
|
41
|
-
<div>
|
|
42
|
-
<cx-stepper items-per-row=${this.columnCount}>
|
|
43
|
-
${y(
|
|
35
|
+
return a`<cx-resize-observer @cx-resize=${this.handleResize}><div><cx-stepper items-per-row=${this.columnCount}>${y(
|
|
44
36
|
this.data,
|
|
45
37
|
(t) => t.id,
|
|
46
|
-
(t) => a`<cx-step
|
|
47
|
-
slot="step"
|
|
48
|
-
data-id=${t.id}
|
|
49
|
-
.completed=${t.state === "Done"}
|
|
50
|
-
.disabled=${this.disabled || t.state === "Disabled"}
|
|
51
|
-
.readonly=${t.readonly}
|
|
52
|
-
.active=${t.state === "Active"}
|
|
53
|
-
.color=${t.color}
|
|
54
|
-
.description=${t.description ?? ""}
|
|
55
|
-
style=${W({
|
|
38
|
+
(t) => a`<cx-step slot="step" data-id=${t.id} .completed=${t.state === "Done"} .disabled=${this.disabled || t.state === "Disabled"} .readonly=${t.readonly} .active=${t.state === "Active"} .color=${t.color} .description=${t.description ?? ""} style=${W({
|
|
56
39
|
maxWidth: `${this.maxWidth}px`,
|
|
57
40
|
minWidth: `${this.minWidth}px`
|
|
58
|
-
})}
|
|
59
|
-
>
|
|
60
|
-
${l(
|
|
41
|
+
})}>${l(
|
|
61
42
|
t.state === "Done",
|
|
62
|
-
() => a
|
|
63
|
-
<cx-icon
|
|
64
|
-
slot="prefix"
|
|
65
|
-
variant="filled"
|
|
66
|
-
name="check_circle"
|
|
67
|
-
></cx-icon>
|
|
68
|
-
`,
|
|
43
|
+
() => a`<cx-icon slot="prefix" variant="filled" name="check_circle"></cx-icon>`,
|
|
69
44
|
() => a`${l(
|
|
70
45
|
t.icon,
|
|
71
|
-
() => a`<cx-icon
|
|
72
|
-
slot="prefix"
|
|
73
|
-
variant=${t.iconVariant || "outlined"}
|
|
74
|
-
name=${t.icon}
|
|
75
|
-
></cx-icon>`
|
|
46
|
+
() => a`<cx-icon slot="prefix" variant=${t.iconVariant || "outlined"} name=${t.icon}></cx-icon>`
|
|
76
47
|
)}`
|
|
77
48
|
)}
|
|
78
|
-
${t.name}
|
|
79
|
-
|
|
80
|
-
)}
|
|
81
|
-
</cx-stepper>
|
|
82
|
-
</div>
|
|
83
|
-
</cx-resize-observer>
|
|
84
|
-
`;
|
|
49
|
+
${t.name}</cx-step>`
|
|
50
|
+
)}</cx-stepper></div></cx-resize-observer>`;
|
|
85
51
|
}
|
|
86
52
|
};
|
|
87
53
|
i.styles = [b, C];
|
|
@@ -1,57 +1,40 @@
|
|
|
1
1
|
import { n, C as c } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as m } from "../chunks/component.styles.
|
|
2
|
+
import { c as m } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as f } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { w as u } from "../chunks/watch.BCJD77bD.js";
|
|
5
|
-
import { i as
|
|
5
|
+
import { i as h, x as d } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
6
|
import { e as x } from "../chunks/query.BBf1UFkC.js";
|
|
7
7
|
import { e as v } from "../chunks/class-map.BiVq-cVR.js";
|
|
8
|
-
import { o as
|
|
9
|
-
import
|
|
10
|
-
const y =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
row-gap: var(--cx-spacing-2x-small);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.stepper--vertical {
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
/* gap: var(--cx-spacing-medium); */
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
23
|
-
var S = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (o, t, s, p) => {
|
|
24
|
-
for (var r = p > 1 ? void 0 : p ? b(t, s) : t, a = o.length - 1, l; a >= 0; a--)
|
|
25
|
-
(l = o[a]) && (r = (p ? l(t, s, r) : l(r)) || r);
|
|
26
|
-
return p && r && S(t, s, r), r;
|
|
8
|
+
import { o as w } from "../chunks/style-map.llVFPd__.js";
|
|
9
|
+
import g from "./step.js";
|
|
10
|
+
const y = h`.stepper{row-gap:var(--cx-spacing-2x-small);flex-wrap:wrap;max-width:100%;display:flex}.stepper--vertical{flex-direction:column}`;
|
|
11
|
+
var S = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (s, t, o, p) => {
|
|
12
|
+
for (var r = p > 1 ? void 0 : p ? b(t, o) : t, a = s.length - 1, l; a >= 0; a--)
|
|
13
|
+
(l = s[a]) && (r = (p ? l(t, o, r) : l(r)) || r);
|
|
14
|
+
return p && r && S(t, o, r), r;
|
|
27
15
|
};
|
|
28
16
|
let e = class extends c {
|
|
29
17
|
constructor() {
|
|
30
18
|
super(...arguments), this.direction = "horizontal", this.itemsPerRow = 5;
|
|
31
19
|
}
|
|
32
20
|
handleSlotChange() {
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
t.setAttribute("index",
|
|
21
|
+
const s = this.stepSlot.assignedElements();
|
|
22
|
+
s.forEach((t, o) => {
|
|
23
|
+
t.setAttribute("index", o.toString()), this.direction === "vertical" ? t.setAttribute("round", "") : t.removeAttribute("round"), o === s.length - 1 && t.setAttribute("last", "");
|
|
36
24
|
});
|
|
37
25
|
}
|
|
38
26
|
render() {
|
|
39
|
-
return
|
|
40
|
-
class=${v({
|
|
27
|
+
return d`<div class=${v({
|
|
41
28
|
stepper: !0,
|
|
42
29
|
"stepper--vertical": this.direction === "vertical"
|
|
43
|
-
})}
|
|
44
|
-
style=${g({
|
|
30
|
+
})} style=${w({
|
|
45
31
|
"--columns": Math.max(this.itemsPerRow, 1).toString()
|
|
46
|
-
})}
|
|
47
|
-
>
|
|
48
|
-
<slot name="step" @slotchange=${this.handleSlotChange}></slot>
|
|
49
|
-
</div>`;
|
|
32
|
+
})}><slot name="step" @slotchange=${this.handleSlotChange}></slot></div>`;
|
|
50
33
|
}
|
|
51
34
|
};
|
|
52
35
|
e.styles = [m, y];
|
|
53
36
|
e.dependencies = {
|
|
54
|
-
"cx-step":
|
|
37
|
+
"cx-step": g
|
|
55
38
|
};
|
|
56
39
|
i([
|
|
57
40
|
x('slot[name="step"]')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as r, C as p } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as m } from "../chunks/component.styles.
|
|
3
|
-
import { f } from "../chunks/form-control.styles.
|
|
2
|
+
import { c as m } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
+
import { f } from "../chunks/form-control.styles.CaGWmeAS.js";
|
|
4
4
|
import { c as v } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import { d as w } from "../chunks/default-value.COZopaet.js";
|
|
6
6
|
import { F as b } from "../chunks/form.DgwYWi0O.js";
|
|
@@ -8,220 +8,11 @@ import { H as x } from "../chunks/slot.j5oheLJC.js";
|
|
|
8
8
|
import { w as u } from "../chunks/watch.BCJD77bD.js";
|
|
9
9
|
import { i as _, x as n } from "../chunks/lit-element.jLBm65_O.js";
|
|
10
10
|
import { r as g } from "../chunks/state.CSDxrqLd.js";
|
|
11
|
-
import { e as
|
|
11
|
+
import { e as y } from "../chunks/query.BBf1UFkC.js";
|
|
12
12
|
import { e as d } from "../chunks/class-map.BiVq-cVR.js";
|
|
13
|
-
import { o as
|
|
14
|
-
import { l as
|
|
15
|
-
const
|
|
16
|
-
:host {
|
|
17
|
-
display: inline-block;
|
|
18
|
-
--thumb-color: var(--cx-color-neutral-0);
|
|
19
|
-
--thumb-offset: 4px;
|
|
20
|
-
--control-color: var(--cx-color-neutral-300);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
:host([size='small']) {
|
|
24
|
-
--height: var(--cx-toggle-size-small);
|
|
25
|
-
--thumb-size: calc(var(--cx-toggle-size-small) - var(--thumb-offset));
|
|
26
|
-
--width: calc(var(--height) * 1.75);
|
|
27
|
-
|
|
28
|
-
font-size: var(--cx-input-font-size-small);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
:host([size='medium']) {
|
|
32
|
-
--height: var(--cx-toggle-size-medium);
|
|
33
|
-
--thumb-size: calc(var(--cx-toggle-size-medium) - var(--thumb-offset));
|
|
34
|
-
--width: calc(var(--height) * 1.6);
|
|
35
|
-
|
|
36
|
-
font-size: var(--cx-input-font-size-small);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
:host([size='large']) {
|
|
40
|
-
--height: var(--cx-toggle-size-large);
|
|
41
|
-
--thumb-size: calc(var(--cx-toggle-size-large) - var(--thumb-offset));
|
|
42
|
-
--width: calc(var(--height) * 1.6);
|
|
43
|
-
|
|
44
|
-
font-size: var(--cx-input-font-size-small);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.switch {
|
|
48
|
-
position: relative;
|
|
49
|
-
display: inline-flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
font-family: var(--cx-input-font-family);
|
|
52
|
-
font-size: inherit;
|
|
53
|
-
font-weight: var(--cx-input-font-weight);
|
|
54
|
-
color: var(--cx-input-label-color);
|
|
55
|
-
vertical-align: middle;
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.switch__control {
|
|
60
|
-
flex: 0 0 auto;
|
|
61
|
-
position: relative;
|
|
62
|
-
display: inline-flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
justify-content: center;
|
|
65
|
-
width: var(--width);
|
|
66
|
-
height: var(--height);
|
|
67
|
-
background-color: var(--control-color);
|
|
68
|
-
border: solid var(--cx-input-border-width) var(--control-color);
|
|
69
|
-
border-radius: var(--height);
|
|
70
|
-
transition:
|
|
71
|
-
var(--cx-transition-fast) border-color,
|
|
72
|
-
var(--cx-transition-fast) background-color;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.switch__control .switch__thumb {
|
|
76
|
-
display: inline-flex;
|
|
77
|
-
align-items: center;
|
|
78
|
-
justify-content: center;
|
|
79
|
-
width: var(--thumb-size);
|
|
80
|
-
height: var(--thumb-size);
|
|
81
|
-
background-color: var(--thumb-color);
|
|
82
|
-
border-radius: 50%;
|
|
83
|
-
border: solid var(--cx-input-border-width) var(--control-color);
|
|
84
|
-
transition:
|
|
85
|
-
var(--cx-transition-fast) translate ease,
|
|
86
|
-
var(--cx-transition-fast) background-color,
|
|
87
|
-
var(--cx-transition-fast) border-color,
|
|
88
|
-
var(--cx-transition-fast) box-shadow;
|
|
89
|
-
transform: translateX(calc((var(--width) - var(--height)) / -2));
|
|
90
|
-
}
|
|
91
|
-
@supports (translate: 0px) {
|
|
92
|
-
.switch__control .switch__thumb {
|
|
93
|
-
translate: calc((var(--width) - var(--height)) / -2);
|
|
94
|
-
transform: none;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.switch__input {
|
|
99
|
-
position: absolute;
|
|
100
|
-
opacity: 0;
|
|
101
|
-
padding: 0;
|
|
102
|
-
margin: 0;
|
|
103
|
-
pointer-events: none;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/* Hover */
|
|
107
|
-
.switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover {
|
|
108
|
-
background-color: var(--control-color);
|
|
109
|
-
border-color: var(--control-color);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.switch:not(.switch--checked):not(.switch--disabled)
|
|
113
|
-
.switch__control:hover
|
|
114
|
-
.switch__thumb {
|
|
115
|
-
background-color: var(--thumb-color);
|
|
116
|
-
border-color: var(--control-color);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/* Focus */
|
|
120
|
-
.switch:not(.switch--disabled)
|
|
121
|
-
.switch__input:focus-visible
|
|
122
|
-
~ .switch__control {
|
|
123
|
-
background-color: var(--control-color);
|
|
124
|
-
border-color: var(--control-color);
|
|
125
|
-
outline: var(--cx-focus-ring);
|
|
126
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/* Checked */
|
|
130
|
-
.switch--checked .switch__control {
|
|
131
|
-
background-color: var(--cx-color-primary);
|
|
132
|
-
border-color: var(--cx-color-primary);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.switch--checked .switch__control .switch__thumb {
|
|
136
|
-
background-color: var(--thumb-color);
|
|
137
|
-
border-color: var(--cx-color-primary);
|
|
138
|
-
transform: translateX(calc((var(--width) - var(--height)) / 2));
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
@supports (translate: 0px) {
|
|
142
|
-
.switch--checked .switch__control .switch__thumb {
|
|
143
|
-
translate: calc((var(--width) - var(--height)) / 2);
|
|
144
|
-
transform: none;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/* Checked + hover */
|
|
149
|
-
.switch.switch--checked:not(.switch--disabled) .switch__control:hover {
|
|
150
|
-
background-color: var(--cx-color-primary-500);
|
|
151
|
-
border-color: var(--cx-color-primary-500);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.switch.switch--checked:not(.switch--disabled)
|
|
155
|
-
.switch__control:hover
|
|
156
|
-
.switch__thumb {
|
|
157
|
-
background-color: var(--thumb-color);
|
|
158
|
-
border-color: var(--cx-color-primary-500);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/* Checked + focus */
|
|
162
|
-
.switch.switch--checked:not(.switch--disabled)
|
|
163
|
-
.switch__input:focus-visible
|
|
164
|
-
~ .switch__control {
|
|
165
|
-
background-color: var(--cx-color-primary-500);
|
|
166
|
-
border-color: var(--cx-color-primary-500);
|
|
167
|
-
outline: var(--cx-focus-ring);
|
|
168
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/* Disabled */
|
|
172
|
-
.switch--disabled {
|
|
173
|
-
opacity: 0.5;
|
|
174
|
-
cursor: default;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.switch__label {
|
|
178
|
-
display: inline-block;
|
|
179
|
-
line-height: var(--height);
|
|
180
|
-
margin-inline-start: 0.5em;
|
|
181
|
-
user-select: none;
|
|
182
|
-
-webkit-user-select: none;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
:host([required]) .switch__label::after {
|
|
186
|
-
color: var(--cx-input-required-content-color);
|
|
187
|
-
content: var(--cx-input-required-content);
|
|
188
|
-
margin-inline-start: var(--cx-input-required-content-offset);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
@media (forced-colors: active) {
|
|
192
|
-
.switch.switch--checked:not(.switch--disabled)
|
|
193
|
-
.switch__control:hover
|
|
194
|
-
.switch__thumb,
|
|
195
|
-
.switch--checked .switch__control .switch__thumb {
|
|
196
|
-
background-color: ButtonText;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.switch__icon {
|
|
201
|
-
user-select: none;
|
|
202
|
-
font-size: var(--cx-input-font-size-large);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.switch:not(.switch--checked) .switch__icon {
|
|
206
|
-
color: var(--control-color);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.switch.switch--checked .switch__icon {
|
|
210
|
-
color: var(--cx-color-primary);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
:host([size='small']) .switch__icon {
|
|
214
|
-
font-size: var(--cx-font-size-x-small);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
:host([size='medium']) .switch__icon {
|
|
218
|
-
font-size: var(--cx-font-size-small);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
:host([size='large']) .switch__icon {
|
|
222
|
-
font-size: var(--cx-font-size-medium);
|
|
223
|
-
}
|
|
224
|
-
`;
|
|
13
|
+
import { o as k } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
14
|
+
import { l as z } from "../chunks/live.SCz6M8Gs.js";
|
|
15
|
+
const C = _`:host{--thumb-color:var(--cx-color-neutral-0);--thumb-offset:4px;--control-color:var(--cx-color-neutral-300);display:inline-block}:host([size=small]){--height:var(--cx-toggle-size-small);--thumb-size:calc(var(--cx-toggle-size-small) - var(--thumb-offset));--width:calc(var(--height) * 1.75);font-size:var(--cx-input-font-size-small)}:host([size=medium]){--height:var(--cx-toggle-size-medium);--thumb-size:calc(var(--cx-toggle-size-medium) - var(--thumb-offset));--width:calc(var(--height) * 1.6);font-size:var(--cx-input-font-size-small)}:host([size=large]){--height:var(--cx-toggle-size-large);--thumb-size:calc(var(--cx-toggle-size-large) - var(--thumb-offset));--width:calc(var(--height) * 1.6);font-size:var(--cx-input-font-size-small)}.switch{font-family:var(--cx-input-font-family);font-size:inherit;font-weight:var(--cx-input-font-weight);color:var(--cx-input-label-color);vertical-align:middle;cursor:pointer;align-items:center;display:inline-flex;position:relative}.switch__control{width:var(--width);height:var(--height);background-color:var(--control-color);border:solid var(--cx-input-border-width) var(--control-color);border-radius:var(--height);transition:var(--cx-transition-fast) border-color, var(--cx-transition-fast) background-color;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.switch__control .switch__thumb{width:var(--thumb-size);height:var(--thumb-size);background-color:var(--thumb-color);border:solid var(--cx-input-border-width) var(--control-color);transition:var(--cx-transition-fast) translate ease, var(--cx-transition-fast) background-color, var(--cx-transition-fast) border-color, var(--cx-transition-fast) box-shadow;transform:translateX(calc((var(--width) - var(--height)) / -2));border-radius:50%;justify-content:center;align-items:center;display:inline-flex}@supports (translate:0px){.switch__control .switch__thumb{translate:calc((var(--width) - var(--height)) / -2);transform:none}}.switch__input{opacity:0;pointer-events:none;margin:0;padding:0;position:absolute}.switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover{background-color:var(--control-color);border-color:var(--control-color)}.switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover .switch__thumb{background-color:var(--thumb-color);border-color:var(--control-color)}.switch:not(.switch--disabled) .switch__input:focus-visible~.switch__control{background-color:var(--control-color);border-color:var(--control-color);outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.switch--checked .switch__control{background-color:var(--cx-color-primary);border-color:var(--cx-color-primary)}.switch--checked .switch__control .switch__thumb{background-color:var(--thumb-color);border-color:var(--cx-color-primary);transform:translateX(calc((var(--width) - var(--height)) / 2))}@supports (translate:0px){.switch--checked .switch__control .switch__thumb{translate:calc((var(--width) - var(--height)) / 2);transform:none}}.switch.switch--checked:not(.switch--disabled) .switch__control:hover{background-color:var(--cx-color-primary-500);border-color:var(--cx-color-primary-500)}.switch.switch--checked:not(.switch--disabled) .switch__control:hover .switch__thumb{background-color:var(--thumb-color);border-color:var(--cx-color-primary-500)}.switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible~.switch__control{background-color:var(--cx-color-primary-500);border-color:var(--cx-color-primary-500);outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.switch--disabled{opacity:.5;cursor:default}.switch__label{line-height:var(--height);-webkit-user-select:none;user-select:none;margin-inline-start:.5em;display:inline-block}:host([required]) .switch__label:after{color:var(--cx-input-required-content-color);content:var(--cx-input-required-content);margin-inline-start:var(--cx-input-required-content-offset)}@media (forced-colors:active){.switch.switch--checked:not(.switch--disabled) .switch__control:hover .switch__thumb,.switch--checked .switch__control .switch__thumb{background-color:buttontext}}.switch__icon{user-select:none;font-size:var(--cx-input-font-size-large)}.switch:not(.switch--checked) .switch__icon{color:var(--control-color)}.switch.switch--checked .switch__icon{color:var(--cx-color-primary)}:host([size=small]) .switch__icon{font-size:var(--cx-font-size-x-small)}:host([size=medium]) .switch__icon{font-size:var(--cx-font-size-small)}:host([size=large]) .switch__icon{font-size:var(--cx-font-size-medium)}`;
|
|
225
16
|
var $ = Object.defineProperty, F = Object.getOwnPropertyDescriptor, o = (t, i, l, s) => {
|
|
226
17
|
for (var c = s > 1 ? void 0 : s ? F(i, l) : i, a = t.length - 1, h; a >= 0; a--)
|
|
227
18
|
(h = t[a]) && (c = (s ? h(i, l, c) : h(c)) || c);
|
|
@@ -306,19 +97,13 @@ let e = class extends p {
|
|
|
306
97
|
}
|
|
307
98
|
render() {
|
|
308
99
|
const t = this.hasSlotController.test("help-text"), i = this.helpText ? !0 : !!t;
|
|
309
|
-
return n
|
|
310
|
-
<div
|
|
311
|
-
class=${d({
|
|
100
|
+
return n`<div class=${d({
|
|
312
101
|
"form-control": !0,
|
|
313
102
|
"form-control--has-help-text": i,
|
|
314
103
|
"form-control--large": this.size === "large",
|
|
315
104
|
"form-control--medium": this.size === "medium",
|
|
316
105
|
"form-control--small": this.size === "small"
|
|
317
|
-
})}
|
|
318
|
-
>
|
|
319
|
-
<label
|
|
320
|
-
part="base"
|
|
321
|
-
class=${d({
|
|
106
|
+
})}><label part="base" class=${d({
|
|
322
107
|
switch: !0,
|
|
323
108
|
"switch--checked": this.checked,
|
|
324
109
|
"switch--disabled": this.disabled,
|
|
@@ -326,64 +111,16 @@ let e = class extends p {
|
|
|
326
111
|
"switch--large": this.size === "large",
|
|
327
112
|
"switch--medium": this.size === "medium",
|
|
328
113
|
"switch--small": this.size === "small"
|
|
329
|
-
})}
|
|
330
|
-
>
|
|
331
|
-
<input
|
|
332
|
-
class="switch__input"
|
|
333
|
-
type="checkbox"
|
|
334
|
-
title=${this.title}
|
|
335
|
-
name=${this.name}
|
|
336
|
-
.value=${y(this.value)}
|
|
337
|
-
.checked=${C(this.checked)}
|
|
338
|
-
.disabled=${this.disabled}
|
|
339
|
-
.required=${this.required}
|
|
340
|
-
role="switch"
|
|
341
|
-
aria-checked=${this.checked ? "true" : "false"}
|
|
342
|
-
@click=${this.handleClick}
|
|
343
|
-
@input=${this.handleInput}
|
|
344
|
-
@invalid=${this.handleInvalid}
|
|
345
|
-
@blur=${this.handleBlur}
|
|
346
|
-
@focus=${this.handleFocus}
|
|
347
|
-
@keydown=${this.handleKeyDown}
|
|
348
|
-
/>
|
|
349
|
-
<span part="control" class="switch__control">
|
|
350
|
-
<span part="thumb" class="switch__thumb">
|
|
351
|
-
${this.showIcon ? this.checked ? n`<cx-icon
|
|
352
|
-
part="checked-icon"
|
|
353
|
-
class="switch__icon"
|
|
354
|
-
name="check"
|
|
355
|
-
></cx-icon>` : n`<cx-icon
|
|
356
|
-
part="unchecked-icon"
|
|
357
|
-
class="switch__icon"
|
|
358
|
-
name="close"
|
|
359
|
-
></cx-icon>` : ""}
|
|
360
|
-
</span>
|
|
361
|
-
</span>
|
|
362
|
-
|
|
363
|
-
<div part="label" class="switch__label">
|
|
364
|
-
<slot></slot>
|
|
365
|
-
</div>
|
|
366
|
-
</label>
|
|
367
|
-
|
|
368
|
-
<div
|
|
369
|
-
aria-hidden=${i ? "false" : "true"}
|
|
370
|
-
class="form-control__help-text"
|
|
371
|
-
id="help-text"
|
|
372
|
-
part="form-control-help-text"
|
|
373
|
-
>
|
|
374
|
-
<slot name="help-text">${this.helpText}</slot>
|
|
375
|
-
</div>
|
|
376
|
-
</div>
|
|
377
|
-
`;
|
|
114
|
+
})}><input class="switch__input" type="checkbox" title=${this.title} name=${this.name} .value=${k(this.value)} .checked=${z(this.checked)} .disabled=${this.disabled} .required=${this.required} role="switch" aria-checked=${this.checked ? "true" : "false"} @click=${this.handleClick} @input=${this.handleInput} @invalid=${this.handleInvalid} @blur=${this.handleBlur} @focus=${this.handleFocus} @keydown=${this.handleKeyDown}><span part="control" class="switch__control"><span part="thumb" class="switch__thumb">${this.showIcon ? this.checked ? n`<cx-icon part="checked-icon" class="switch__icon" name="check"></cx-icon>` : n`<cx-icon part="unchecked-icon" class="switch__icon" name="close"></cx-icon>` : ""}</span></span><div part="label" class="switch__label"><slot></slot></div></label><div aria-hidden=${i ? "false" : "true"} class="form-control__help-text" id="help-text" part="form-control-help-text"><slot name="help-text">${this.helpText}</slot></div></div>`;
|
|
378
115
|
}
|
|
379
116
|
};
|
|
380
117
|
e.styles = [
|
|
381
118
|
m,
|
|
382
119
|
f,
|
|
383
|
-
|
|
120
|
+
C
|
|
384
121
|
];
|
|
385
122
|
o([
|
|
386
|
-
|
|
123
|
+
y('input[type="checkbox"]')
|
|
387
124
|
], e.prototype, "input", 2);
|
|
388
125
|
o([
|
|
389
126
|
g()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./resize-observer.js";
|
|
2
2
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
3
|
-
import "../chunks/component.styles.
|
|
4
|
-
import { C as A } from "../chunks/tab-group.
|
|
3
|
+
import "../chunks/component.styles.CRO4Odto.js";
|
|
4
|
+
import { C as A } from "../chunks/tab-group.9HbDE1AF.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
6
6
|
import "../chunks/i18n.BUW7B9hr.js";
|
|
7
7
|
import "../chunks/scroll.xtO5yojm.js";
|
|
@@ -18,9 +18,9 @@ import "../chunks/guard.D4axKaMo.js";
|
|
|
18
18
|
import "../chunks/map.D8heArFD.js";
|
|
19
19
|
import "../chunks/style-map.llVFPd__.js";
|
|
20
20
|
import "../chunks/when.Dr1es41R.js";
|
|
21
|
-
import "../chunks/button.
|
|
21
|
+
import "../chunks/button.B-ktz-w4.js";
|
|
22
22
|
import "./dropdown.js";
|
|
23
|
-
import "../chunks/icon-button.
|
|
23
|
+
import "../chunks/icon-button.BuhCp--_.js";
|
|
24
24
|
import "./menu.js";
|
|
25
25
|
import "./menu-item.js";
|
|
26
26
|
import "./tab.js";
|
|
@@ -1,32 +1,10 @@
|
|
|
1
1
|
import { n as p, C as c } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as h } from "../chunks/component.styles.
|
|
2
|
+
import { c as h } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as m } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { w as d } from "../chunks/watch.BCJD77bD.js";
|
|
5
5
|
import { i as v, x as f } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
6
|
import { e as u } from "../chunks/class-map.BiVq-cVR.js";
|
|
7
|
-
const b = v
|
|
8
|
-
:host {
|
|
9
|
-
--padding: 0;
|
|
10
|
-
|
|
11
|
-
display: none;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
::slotted(cx-column) {
|
|
15
|
-
padding: var(--cx-spacing-3x-small);
|
|
16
|
-
min-height: max(var(--min-height), 24px);
|
|
17
|
-
max-height: var(--max-height, 100%);
|
|
18
|
-
overflow: auto;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
:host([active]) {
|
|
22
|
-
display: block;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.tab-panel {
|
|
26
|
-
display: block;
|
|
27
|
-
padding: var(--padding);
|
|
28
|
-
}
|
|
29
|
-
`;
|
|
7
|
+
const b = v`:host{--padding:0;display:none}::slotted(cx-column){padding:var(--cx-spacing-3x-small);min-height:max(var(--min-height), 24px);max-height:var(--max-height,100%);overflow:auto}:host([active]){display:block}.tab-panel{padding:var(--padding);display:block}`;
|
|
30
8
|
var x = Object.defineProperty, g = Object.getOwnPropertyDescriptor, s = (l, a, i, r) => {
|
|
31
9
|
for (var t = r > 1 ? void 0 : r ? g(a, i) : a, o = l.length - 1, n; o >= 0; o--)
|
|
32
10
|
(n = l[o]) && (t = (r ? n(a, i, t) : n(t)) || t);
|
|
@@ -43,15 +21,10 @@ let y = 0, e = class extends c {
|
|
|
43
21
|
this.setAttribute("aria-hidden", this.active ? "false" : "true");
|
|
44
22
|
}
|
|
45
23
|
render() {
|
|
46
|
-
return f
|
|
47
|
-
<slot
|
|
48
|
-
part="base"
|
|
49
|
-
class=${u({
|
|
24
|
+
return f`<slot part="base" class=${u({
|
|
50
25
|
"tab-panel": !0,
|
|
51
26
|
"tab-panel--active": this.active
|
|
52
|
-
})}
|
|
53
|
-
></slot>
|
|
54
|
-
`;
|
|
27
|
+
})}></slot>`;
|
|
55
28
|
}
|
|
56
29
|
};
|
|
57
30
|
e.styles = [h, b];
|