@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,76 +1,14 @@
|
|
|
1
1
|
import { n as c, C as d } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as p } from "../chunks/component.styles.
|
|
2
|
+
import { c as p } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as v } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { w as h } from "../chunks/watch.BCJD77bD.js";
|
|
5
5
|
import { i as b, x as g } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
6
|
import { n as f } from "../chunks/when.Dr1es41R.js";
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
--color: var(--cx-panel-border-color);
|
|
10
|
-
--label-color: var(--cx-color-neutral-600);
|
|
11
|
-
--label-font-size: var(--cx-font-size-small);
|
|
12
|
-
--width: var(--cx-panel-border-width);
|
|
13
|
-
--spacing: var(--cx-spacing-medium);
|
|
14
|
-
--border-style: solid;
|
|
15
|
-
--padding: var(--spacing);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Horizontal divider
|
|
20
|
-
*/
|
|
21
|
-
:host(:not([vertical])) {
|
|
22
|
-
display: block;
|
|
23
|
-
width: 100%;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:host(:not([vertical]):not([use-padding])) {
|
|
27
|
-
padding: var(--spacing) 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.divider__label {
|
|
31
|
-
display: block;
|
|
32
|
-
text-align: center;
|
|
33
|
-
margin-bottom: var(--cx-spacing-2x-small);
|
|
34
|
-
color: var(--label-color);
|
|
35
|
-
font-size: var(--label-font-size);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:host(:not([vertical]))::after {
|
|
39
|
-
display: block;
|
|
40
|
-
content: ' ';
|
|
41
|
-
border-top: var(--border-style) var(--width) var(--color);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Vertical divider
|
|
46
|
-
*/
|
|
47
|
-
:host([vertical]) {
|
|
48
|
-
display: inline-block;
|
|
49
|
-
height: 100%;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:host([vertical]:not([use-padding])) {
|
|
53
|
-
padding: 0 var(--spacing);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:host([vertical])::after {
|
|
57
|
-
display: inline-block;
|
|
58
|
-
content: ' ';
|
|
59
|
-
height: 100%;
|
|
60
|
-
border-left: var(--border-style) var(--width) var(--color);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Apply use-padding
|
|
65
|
-
*/
|
|
66
|
-
:host([use-padding]) {
|
|
67
|
-
padding: var(--padding);
|
|
68
|
-
}
|
|
69
|
-
`;
|
|
70
|
-
var m = Object.defineProperty, y = Object.getOwnPropertyDescriptor, r = (a, l, i, o) => {
|
|
7
|
+
const m = b`:host{--color:var(--cx-panel-border-color);--label-color:var(--cx-color-neutral-600);--label-font-size:var(--cx-font-size-small);--width:var(--cx-panel-border-width);--spacing:var(--cx-spacing-medium);--border-style:solid;--padding:var(--spacing)}:host(:not([vertical])){width:100%;display:block}:host(:not([vertical]):not([use-padding])){padding:var(--spacing) 0}.divider__label{text-align:center;margin-bottom:var(--cx-spacing-2x-small);color:var(--label-color);font-size:var(--label-font-size);display:block}:host(:not([vertical])):after{content:" ";border-top:var(--border-style) var(--width) var(--color);display:block}:host([vertical]){height:100%;display:inline-block}:host([vertical]:not([use-padding])){padding:0 var(--spacing)}:host([vertical]):after{content:" ";border-left:var(--border-style) var(--width) var(--color);height:100%;display:inline-block}:host([use-padding]){padding:var(--padding)}`;
|
|
8
|
+
var u = Object.defineProperty, y = Object.getOwnPropertyDescriptor, r = (a, l, i, o) => {
|
|
71
9
|
for (var e = o > 1 ? void 0 : o ? y(l, i) : l, s = a.length - 1, n; s >= 0; s--)
|
|
72
10
|
(n = a[s]) && (e = (o ? n(l, i, e) : n(e)) || e);
|
|
73
|
-
return o && e &&
|
|
11
|
+
return o && e && u(l, i, e), e;
|
|
74
12
|
};
|
|
75
13
|
let t = class extends d {
|
|
76
14
|
constructor() {
|
|
@@ -93,7 +31,7 @@ let t = class extends d {
|
|
|
93
31
|
);
|
|
94
32
|
}
|
|
95
33
|
};
|
|
96
|
-
t.styles = [p,
|
|
34
|
+
t.styles = [p, m];
|
|
97
35
|
r([
|
|
98
36
|
c({ reflect: !0, type: Boolean })
|
|
99
37
|
], t.prototype, "vertical", 2);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import "../chunks/component.styles.
|
|
2
|
+
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import "../chunks/index.Cpamj0jB.js";
|
|
4
4
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import "../chunks/i18n.BUW7B9hr.js";
|
|
@@ -13,7 +13,7 @@ import "../chunks/if-defined.BRoBj_Rp.js";
|
|
|
13
13
|
import "../chunks/map.D8heArFD.js";
|
|
14
14
|
import "../chunks/when.Dr1es41R.js";
|
|
15
15
|
import "./tooltip.js";
|
|
16
|
-
import { C as g } from "../chunks/dot-pagination.
|
|
16
|
+
import { C as g } from "../chunks/dot-pagination.C26bQ3vy.js";
|
|
17
17
|
export {
|
|
18
18
|
g as default
|
|
19
19
|
};
|
|
@@ -1,78 +1,16 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { c as m } from "../chunks/component.styles.
|
|
1
|
+
import { n as a, C as p } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as m } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as h } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { i as f, x as v } from "../chunks/lit-element.jLBm65_O.js";
|
|
5
5
|
import { e as x } from "../chunks/class-map.BiVq-cVR.js";
|
|
6
|
-
var n = /* @__PURE__ */ ((
|
|
7
|
-
const y = f
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
:host([size='small']) {
|
|
16
|
-
--dot-size: var(--cx-font-size-small);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
:host([size='medium']) {
|
|
20
|
-
--dot-size: var(--cx-font-size-medium);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
:host([size='large']) {
|
|
24
|
-
--dot-size: var(--cx-font-size-large);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.dot-status {
|
|
28
|
-
width: var(--dot-size, var(--cx-font-size-medium));
|
|
29
|
-
height: var(--dot-size, var(--cx-font-size-medium));
|
|
30
|
-
border-radius: 50%;
|
|
31
|
-
background-color: var(--dot-color, var(--cx-color-neutral-300));
|
|
32
|
-
flex-shrink: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* Status modifiers */
|
|
36
|
-
:host([status='idle']) {
|
|
37
|
-
--dot-color: var(--cx-color-neutral-300);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:host([status='busy']) {
|
|
41
|
-
--dot-color: var(--cx-color-warning);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
:host([status='success']) {
|
|
45
|
-
--dot-color: var(--cx-color-success);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
:host([status='error']) {
|
|
49
|
-
--dot-color: var(--cx-color-danger);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* Pulse animation */
|
|
53
|
-
.dot-status--pulse {
|
|
54
|
-
--pulse-color: var(--dot-color, var(--cx-color-neutral-300));
|
|
55
|
-
animation: pulse 1.5s infinite;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@keyframes pulse {
|
|
59
|
-
0% {
|
|
60
|
-
box-shadow: 0 0 0 0 var(--pulse-color);
|
|
61
|
-
}
|
|
62
|
-
70% {
|
|
63
|
-
box-shadow: 0 0 0 0.5rem transparent;
|
|
64
|
-
}
|
|
65
|
-
100% {
|
|
66
|
-
box-shadow: 0 0 0 0 transparent;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
`;
|
|
70
|
-
var b = Object.defineProperty, z = Object.getOwnPropertyDescriptor, r = (s, o, i, a) => {
|
|
71
|
-
for (var t = a > 1 ? void 0 : a ? z(o, i) : o, c = s.length - 1, u; c >= 0; c--)
|
|
72
|
-
(u = s[c]) && (t = (a ? u(o, i, t) : u(t)) || t);
|
|
73
|
-
return a && t && b(o, i, t), t;
|
|
6
|
+
var n = /* @__PURE__ */ ((e) => (e.Busy = "busy", e.Error = "error", e.Idle = "idle", e.Success = "success", e))(n || {}), d = /* @__PURE__ */ ((e) => (e.Large = "large", e.Medium = "medium", e.Small = "small", e))(d || {});
|
|
7
|
+
const y = f`:host{cursor:pointer;justify-content:center;align-items:center;display:inline-flex}:host([size=small]){--dot-size:var(--cx-font-size-small)}:host([size=medium]){--dot-size:var(--cx-font-size-medium)}:host([size=large]){--dot-size:var(--cx-font-size-large)}.dot-status{width:var(--dot-size,var(--cx-font-size-medium));height:var(--dot-size,var(--cx-font-size-medium));background-color:var(--dot-color,var(--cx-color-neutral-300));border-radius:50%;flex-shrink:0}:host([status=idle]){--dot-color:var(--cx-color-neutral-300)}:host([status=busy]){--dot-color:var(--cx-color-warning)}:host([status=success]){--dot-color:var(--cx-color-success)}:host([status=error]){--dot-color:var(--cx-color-danger)}.dot-status--pulse{--pulse-color:var(--dot-color,var(--cx-color-neutral-300));animation:1.5s infinite pulse}@keyframes pulse{0%{box-shadow:0 0 0 0 var(--pulse-color)}70%{box-shadow:0 0 0 .5rem #0000}to{box-shadow:0 0 #0000}}`;
|
|
8
|
+
var b = Object.defineProperty, z = Object.getOwnPropertyDescriptor, r = (e, o, i, l) => {
|
|
9
|
+
for (var t = l > 1 ? void 0 : l ? z(o, i) : o, c = e.length - 1, u; c >= 0; c--)
|
|
10
|
+
(u = e[c]) && (t = (l ? u(o, i, t) : u(t)) || t);
|
|
11
|
+
return l && t && b(o, i, t), t;
|
|
74
12
|
};
|
|
75
|
-
let
|
|
13
|
+
let s = class extends p {
|
|
76
14
|
constructor() {
|
|
77
15
|
super(...arguments), this.status = n.Idle, this.size = d.Medium, this.pulse = !1, this.label = "";
|
|
78
16
|
}
|
|
@@ -82,38 +20,30 @@ let e = class extends p {
|
|
|
82
20
|
});
|
|
83
21
|
}
|
|
84
22
|
render() {
|
|
85
|
-
const
|
|
86
|
-
return v
|
|
87
|
-
<span
|
|
88
|
-
part="base"
|
|
89
|
-
role="status"
|
|
90
|
-
aria-label=${s}
|
|
91
|
-
class=${x({
|
|
23
|
+
const e = this.label || this.status;
|
|
24
|
+
return v`<span part="base" role="status" aria-label=${e} class=${x({
|
|
92
25
|
"dot-status": !0,
|
|
93
26
|
"dot-status--pulse": this.pulse
|
|
94
|
-
})}
|
|
95
|
-
@click=${this.handleClick}
|
|
96
|
-
></span>
|
|
97
|
-
`;
|
|
27
|
+
})} @click=${this.handleClick}></span>`;
|
|
98
28
|
}
|
|
99
29
|
};
|
|
100
|
-
|
|
101
|
-
|
|
30
|
+
s.styles = [m, y];
|
|
31
|
+
s.dependencies = {};
|
|
102
32
|
r([
|
|
103
|
-
|
|
104
|
-
],
|
|
33
|
+
a({ reflect: !0, type: String })
|
|
34
|
+
], s.prototype, "status", 2);
|
|
105
35
|
r([
|
|
106
|
-
|
|
107
|
-
],
|
|
36
|
+
a({ reflect: !0, type: String })
|
|
37
|
+
], s.prototype, "size", 2);
|
|
108
38
|
r([
|
|
109
|
-
|
|
110
|
-
],
|
|
39
|
+
a({ reflect: !0, type: Boolean })
|
|
40
|
+
], s.prototype, "pulse", 2);
|
|
111
41
|
r([
|
|
112
|
-
|
|
113
|
-
],
|
|
114
|
-
|
|
42
|
+
a({ reflect: !0 })
|
|
43
|
+
], s.prototype, "label", 2);
|
|
44
|
+
s = r([
|
|
115
45
|
h("cx-dot-status")
|
|
116
|
-
],
|
|
46
|
+
], s);
|
|
117
47
|
export {
|
|
118
|
-
|
|
48
|
+
s as default
|
|
119
49
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n, C } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as k } from "../chunks/component.styles.
|
|
2
|
+
import { c as k } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { a as d, s as p } from "../chunks/animate.El-MpOws.js";
|
|
4
4
|
import { c as z } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import { w as v } from "../chunks/event.mFzZi4sr.js";
|
|
@@ -16,188 +16,8 @@ import { o as b } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
|
16
16
|
import { n as A } from "../chunks/when.Dr1es41R.js";
|
|
17
17
|
import { c as x } from "../chunks/capitalize.CNStXZBq.js";
|
|
18
18
|
import { s as i, g as c } from "../chunks/animation-registry.HmpwNuGH.js";
|
|
19
|
-
import { C as q } from "../chunks/icon-button.
|
|
20
|
-
const D = P
|
|
21
|
-
:host {
|
|
22
|
-
--size: 25rem;
|
|
23
|
-
--header-spacing: var(--cx-spacing-large);
|
|
24
|
-
--body-spacing: var(--cx-spacing-large);
|
|
25
|
-
--footer-spacing: var(--cx-spacing-large);
|
|
26
|
-
--font-family: var(--cx-font-sans);
|
|
27
|
-
|
|
28
|
-
display: contents;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.drawer {
|
|
32
|
-
top: 0;
|
|
33
|
-
inset-inline-start: 0;
|
|
34
|
-
width: 0;
|
|
35
|
-
height: 0;
|
|
36
|
-
pointer-events: none;
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.drawer--open {
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: 100%;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.drawer--persistent.drawer--open {
|
|
46
|
-
width: var(--size);
|
|
47
|
-
min-width: var(--size);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.drawer--contained {
|
|
51
|
-
position: absolute;
|
|
52
|
-
z-index: initial;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.drawer--persistent {
|
|
56
|
-
position: relative;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.drawer--fixed {
|
|
60
|
-
position: fixed;
|
|
61
|
-
z-index: var(--cx-z-index-drawer);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.drawer__panel {
|
|
65
|
-
position: absolute;
|
|
66
|
-
display: flex;
|
|
67
|
-
flex-direction: column;
|
|
68
|
-
z-index: 2;
|
|
69
|
-
max-width: 100%;
|
|
70
|
-
max-height: 100%;
|
|
71
|
-
background-color: var(--cx-panel-background-color);
|
|
72
|
-
box-shadow: var(--cx-shadow-large);
|
|
73
|
-
overflow: auto;
|
|
74
|
-
pointer-events: all;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.drawer__panel:focus {
|
|
78
|
-
outline: none;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.drawer--top .drawer__panel {
|
|
82
|
-
top: 0;
|
|
83
|
-
inset-inline-end: auto;
|
|
84
|
-
bottom: auto;
|
|
85
|
-
inset-inline-start: 0;
|
|
86
|
-
width: 100%;
|
|
87
|
-
height: var(--size);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.drawer--end .drawer__panel {
|
|
91
|
-
top: 0;
|
|
92
|
-
inset-inline-end: 0;
|
|
93
|
-
bottom: auto;
|
|
94
|
-
inset-inline-start: auto;
|
|
95
|
-
width: var(--size);
|
|
96
|
-
height: 100%;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.drawer--bottom .drawer__panel {
|
|
100
|
-
top: auto;
|
|
101
|
-
inset-inline-end: auto;
|
|
102
|
-
bottom: 0;
|
|
103
|
-
inset-inline-start: 0;
|
|
104
|
-
width: 100%;
|
|
105
|
-
height: var(--size);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.drawer--start .drawer__panel {
|
|
109
|
-
top: 0;
|
|
110
|
-
inset-inline-end: auto;
|
|
111
|
-
bottom: auto;
|
|
112
|
-
inset-inline-start: 0;
|
|
113
|
-
width: var(--size);
|
|
114
|
-
height: 100%;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.drawer__header {
|
|
118
|
-
display: flex;
|
|
119
|
-
gap: var(--cx-spacing-small);
|
|
120
|
-
padding: var(--header-spacing);
|
|
121
|
-
border-bottom: solid 1px var(--cx-input-border-color);
|
|
122
|
-
font-family: var(--font-family);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.drawer__title {
|
|
126
|
-
flex: 1 1 auto;
|
|
127
|
-
font: inherit;
|
|
128
|
-
font-size: var(--cx-font-size-large);
|
|
129
|
-
font-weight: var(--cx-font-weight-semibold);
|
|
130
|
-
line-height: var(--cx-line-height-medium);
|
|
131
|
-
margin: 0;
|
|
132
|
-
display: flex;
|
|
133
|
-
align-items: center;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.drawer__header-actions {
|
|
137
|
-
flex-shrink: 0;
|
|
138
|
-
display: flex;
|
|
139
|
-
flex-wrap: wrap;
|
|
140
|
-
justify-content: end;
|
|
141
|
-
gap: var(--cx-spacing-2x-small);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.drawer__header-actions cx-icon-button,
|
|
145
|
-
.drawer__header-actions ::slotted(cx-icon-button) {
|
|
146
|
-
flex: 0 0 auto;
|
|
147
|
-
display: flex;
|
|
148
|
-
align-items: center;
|
|
149
|
-
font-size: var(--cx-font-size-medium);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.drawer__body {
|
|
153
|
-
flex: 1 1 auto;
|
|
154
|
-
display: block;
|
|
155
|
-
padding: var(--body-spacing);
|
|
156
|
-
overflow: auto;
|
|
157
|
-
-webkit-overflow-scrolling: touch;
|
|
158
|
-
font-family: var(--font-family);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.drawer__footer {
|
|
162
|
-
text-align: right;
|
|
163
|
-
padding: var(--footer-spacing);
|
|
164
|
-
font-family: var(--font-family);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.drawer__footer ::slotted(cx-button:not(:last-of-type)) {
|
|
168
|
-
margin-inline-end: var(--cx-spacing-x-small);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.drawer:not(.drawer--has-footer) .drawer__footer {
|
|
172
|
-
display: none;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.drawer__overlay {
|
|
176
|
-
display: block;
|
|
177
|
-
position: fixed;
|
|
178
|
-
top: 0;
|
|
179
|
-
right: 0;
|
|
180
|
-
bottom: 0;
|
|
181
|
-
left: 0;
|
|
182
|
-
background-color: var(--cx-overlay-background-color);
|
|
183
|
-
pointer-events: all;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.drawer--contained .drawer__overlay {
|
|
187
|
-
opacity: 0;
|
|
188
|
-
position: absolute;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.drawer__overlay--disabled {
|
|
192
|
-
display: none;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
@media (forced-colors: active) {
|
|
196
|
-
.drawer__panel {
|
|
197
|
-
border: solid 1px var(--cx-color-neutral-0);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
`;
|
|
19
|
+
import { C as q } from "../chunks/icon-button.BuhCp--_.js";
|
|
20
|
+
const D = P`:host{--size:25rem;--header-spacing:var(--cx-spacing-large);--body-spacing:var(--cx-spacing-large);--footer-spacing:var(--cx-spacing-large);--font-family:var(--cx-font-sans);display:contents}.drawer{top:0;pointer-events:none;width:0;height:0;inset-inline-start:0;overflow:hidden}.drawer--open{width:100%;height:100%}.drawer--persistent.drawer--open{width:var(--size);min-width:var(--size)}.drawer--contained{z-index:initial;position:absolute}.drawer--persistent{position:relative}.drawer--fixed{z-index:var(--cx-z-index-drawer);position:fixed}.drawer__panel{z-index:2;background-color:var(--cx-panel-background-color);max-width:100%;max-height:100%;box-shadow:var(--cx-shadow-large);pointer-events:all;flex-direction:column;display:flex;position:absolute;overflow:auto}.drawer__panel:focus{outline:none}.drawer--top .drawer__panel{top:0;inset-inline-end:auto;bottom:auto;width:100%;height:var(--size);inset-inline-start:0}.drawer--end .drawer__panel{top:0;inset-inline-end:0;bottom:auto;width:var(--size);height:100%;inset-inline-start:auto}.drawer--bottom .drawer__panel{top:auto;inset-inline-end:auto;bottom:0;width:100%;height:var(--size);inset-inline-start:0}.drawer--start .drawer__panel{top:0;inset-inline-end:auto;bottom:auto;width:var(--size);height:100%;inset-inline-start:0}.drawer__header{gap:var(--cx-spacing-small);padding:var(--header-spacing);border-bottom:solid 1px var(--cx-input-border-color);font-family:var(--font-family);display:flex}.drawer__title{font:inherit;font-size:var(--cx-font-size-large);font-weight:var(--cx-font-weight-semibold);line-height:var(--cx-line-height-medium);flex:auto;align-items:center;margin:0;display:flex}.drawer__header-actions{justify-content:end;gap:var(--cx-spacing-2x-small);flex-wrap:wrap;flex-shrink:0;display:flex}.drawer__header-actions cx-icon-button,.drawer__header-actions ::slotted(cx-icon-button){font-size:var(--cx-font-size-medium);flex:none;align-items:center;display:flex}.drawer__body{padding:var(--body-spacing);-webkit-overflow-scrolling:touch;font-family:var(--font-family);flex:auto;display:block;overflow:auto}.drawer__footer{text-align:right;padding:var(--footer-spacing);font-family:var(--font-family)}.drawer__footer ::slotted(cx-button:not(:last-of-type)){margin-inline-end:var(--cx-spacing-x-small)}.drawer:not(.drawer--has-footer) .drawer__footer{display:none}.drawer__overlay{background-color:var(--cx-overlay-background-color);pointer-events:all;display:block;position:fixed;inset:0}.drawer--contained .drawer__overlay{opacity:0;position:absolute}.drawer__overlay--disabled{display:none}@media (forced-colors:active){.drawer__panel{border:solid 1px var(--cx-color-neutral-0)}}`;
|
|
201
21
|
var L = Object.defineProperty, E = Object.getOwnPropertyDescriptor, a = (e, o, r, l) => {
|
|
202
22
|
for (var s = l > 1 ? void 0 : l ? E(o, r) : o, h = e.length - 1, f; h >= 0; h--)
|
|
203
23
|
(f = e[h]) && (s = (l ? f(o, r, s) : f(s)) || s);
|
|
@@ -325,10 +145,7 @@ let t = class extends C {
|
|
|
325
145
|
}
|
|
326
146
|
render() {
|
|
327
147
|
const e = this.variant === "persistent";
|
|
328
|
-
return y
|
|
329
|
-
<div
|
|
330
|
-
part="base"
|
|
331
|
-
class=${g({
|
|
148
|
+
return y`<div part="base" class=${g({
|
|
332
149
|
drawer: !0,
|
|
333
150
|
"drawer--bottom": this.placement === "bottom",
|
|
334
151
|
"drawer--contained": this.contained,
|
|
@@ -340,61 +157,13 @@ let t = class extends C {
|
|
|
340
157
|
"drawer--rtl": this.localize.dir() === "rtl",
|
|
341
158
|
"drawer--start": this.placement === "start",
|
|
342
159
|
"drawer--top": this.placement === "top"
|
|
343
|
-
})}
|
|
344
|
-
>
|
|
345
|
-
<div
|
|
346
|
-
part="overlay"
|
|
347
|
-
class=${g({
|
|
160
|
+
})}><div part="overlay" class=${g({
|
|
348
161
|
drawer__overlay: !0,
|
|
349
162
|
"drawer__overlay--disabled": e
|
|
350
|
-
})}
|
|
351
|
-
@click=${this.handleOverlayClick}
|
|
352
|
-
tabindex="-1"
|
|
353
|
-
></div>
|
|
354
|
-
|
|
355
|
-
<div
|
|
356
|
-
part="panel"
|
|
357
|
-
class="drawer__panel"
|
|
358
|
-
role="dialog"
|
|
359
|
-
aria-modal="true"
|
|
360
|
-
aria-hidden=${this.open ? "false" : "true"}
|
|
361
|
-
aria-label=${b(this.noHeader ? this.label : void 0)}
|
|
362
|
-
aria-labelledby=${b(this.noHeader ? void 0 : "title")}
|
|
363
|
-
tabindex="0"
|
|
364
|
-
>
|
|
365
|
-
${this.noHeader ? "" : y`
|
|
366
|
-
<header part="header" class="drawer__header">
|
|
367
|
-
<h2 part="title" class="drawer__title" id="title">
|
|
368
|
-
<!-- If there's no label, use an invisible character to prevent the header from collapsing -->
|
|
369
|
-
<slot name="label">
|
|
370
|
-
${this.label.length > 0 ? this.label : "\uFEFF"}
|
|
371
|
-
</slot>
|
|
372
|
-
</h2>
|
|
373
|
-
<div part="header-actions" class="drawer__header-actions">
|
|
374
|
-
<slot name="header-actions"></slot>
|
|
375
|
-
${A(
|
|
163
|
+
})} @click=${this.handleOverlayClick} tabindex="-1"></div><div part="panel" class="drawer__panel" role="dialog" aria-modal="true" aria-hidden=${this.open ? "false" : "true"} aria-label=${b(this.noHeader ? this.label : void 0)} aria-labelledby=${b(this.noHeader ? void 0 : "title")} tabindex="0">${this.noHeader ? "" : y`<header part="header" class="drawer__header"><h2 part="title" class="drawer__title" id="title"><!-- If there's no label, use an invisible character to prevent the header from collapsing --><slot name="label">${this.label.length > 0 ? this.label : "\uFEFF"}</slot></h2><div part="header-actions" class="drawer__header-actions"><slot name="header-actions"></slot>${A(
|
|
376
164
|
!this.noCloseButton,
|
|
377
|
-
() => y`<cx-icon-button
|
|
378
|
-
|
|
379
|
-
exportparts="base:close-button__base"
|
|
380
|
-
class="drawer__close"
|
|
381
|
-
name="close"
|
|
382
|
-
label=${this.localize.term("close")}
|
|
383
|
-
@click=${this.handleCloseButtonClick}
|
|
384
|
-
></cx-icon-button>`
|
|
385
|
-
)}
|
|
386
|
-
</div>
|
|
387
|
-
</header>
|
|
388
|
-
`}
|
|
389
|
-
|
|
390
|
-
<slot part="body" class="drawer__body"></slot>
|
|
391
|
-
|
|
392
|
-
<footer part="footer" class="drawer__footer">
|
|
393
|
-
<slot name="footer"></slot>
|
|
394
|
-
</footer>
|
|
395
|
-
</div>
|
|
396
|
-
</div>
|
|
397
|
-
`;
|
|
165
|
+
() => y`<cx-icon-button part="close-button" exportparts="base:close-button__base" class="drawer__close" name="close" label=${this.localize.term("close")} @click=${this.handleCloseButtonClick}></cx-icon-button>`
|
|
166
|
+
)}</div></header>`}<slot part="body" class="drawer__body"></slot><footer part="footer" class="drawer__footer"><slot name="footer"></slot></footer></div></div>`;
|
|
398
167
|
}
|
|
399
168
|
};
|
|
400
169
|
t.styles = [k, D];
|