@orangelogic/design-system 2.78.0 → 2.79.0-ci.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/{AxisLabelRadial.BTpA5dYy.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
- package/library/chunks/{BaseColumnSeries.hIO71GLG.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
- package/library/chunks/{CandlestickSeries.w9C0GR9v.js → CandlestickSeries.CkXGtRWE.js} +2 -2
- package/library/chunks/{Circle.tOnnO-F-.js → Circle.DBa5Ok8V.js} +1 -1
- package/library/chunks/{ColumnSeries.Ckz75x1M.js → ColumnSeries.DGazbfza.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CCMTJT7K.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
- package/library/chunks/{EditableLabel.DPmicdjK.js → EditableLabel.BWeq6fgX.js} +1 -1
- package/library/chunks/{Gradient.BrDBLm8v.js → Gradient.CdcsPIru.js} +1 -1
- package/library/chunks/{LinearGradient.CxfXxvMw.js → LinearGradient.B1z9AGUt.js} +2 -2
- package/library/chunks/{Picture.BNASYM-P.js → Picture.YSPC0l0Q.js} +1 -1
- package/library/chunks/{Polygon.Dr-GV2hn.js → Polygon.BwMvXN2H.js} +1 -1
- package/library/chunks/{ProgressPie.4mPA6xqm.js → ProgressPie.DlCwXN17.js} +5 -5
- package/library/chunks/{RadialLabel.HfsGiN4x.js → RadialLabel.DyVOf2K8.js} +1 -1
- package/library/chunks/{Scrollbar.Bgg-RhjP.js → Scrollbar.BdZVb_Z-.js} +1 -1
- package/library/chunks/{Slice.Dm56LTKj.js → Slice.DiEswWa6.js} +1 -1
- package/library/chunks/{Slider.FKJwoPq2.js → Slider.C20No2z5.js} +1 -1
- package/library/chunks/{SpriteResizer.-qJDgug8.js → SpriteResizer.DFnmcy0h.js} +1 -1
- package/library/chunks/{Triangle.BECgi7mc.js → Triangle.BaOef7HV.js} +1 -1
- package/library/chunks/{ZoomTools.cgwuIB0e.js → ZoomTools.D5JPehoL.js} +1 -1
- package/library/chunks/{am-chart.oZVBmpnn.js → am-chart.H2jnOzFc.js} +253 -261
- package/library/chunks/{animation.DU8t6mrk.js → animation.7ifl4x2S.js} +3 -7
- package/library/chunks/{button.DS64Tr8Z.js → button.B-ktz-w4.js} +7 -40
- package/library/chunks/button.styles.CKqn956w.js +5 -0
- package/library/chunks/{color-swatch-group.C7T6-sY7.js → color-swatch-group.DvllHUil.js} +46 -216
- package/library/chunks/{color-swatch.BuUP5yG4.js → color-swatch.Bx-HOp9f.js} +18 -202
- package/library/chunks/{colorPicker.C4w_vDjh.js → colorPicker.06n6P3aK.js} +5 -5
- package/library/chunks/component.styles.CRO4Odto.js +5 -0
- package/library/chunks/confirm-popover.BbHneK19.js +121 -0
- package/library/chunks/{cropper.D1lO3pl-.js → cropper.DTokTzP9.js} +2533 -2904
- package/library/chunks/{dialog.BdXQkCKY.js → dialog.B1nzoJak.js} +40 -251
- package/library/chunks/dot-pagination.C26bQ3vy.js +204 -0
- package/library/chunks/{exporting.BdjsEGF8.js → exporting.Chnl3UWi.js} +2 -2
- package/library/chunks/file-on-demand.D_Mia7M9.js +1956 -0
- package/library/chunks/{flow.D0FqdfOy.js → flow.D2CqFQa7.js} +5 -5
- package/library/chunks/{folder-select.B2qxSKA5.js → folder-select.DOsefkAC.js} +20 -226
- package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
- package/library/chunks/{gantt.DfUM7Gvb.js → gantt.DSHD2gjO.js} +8 -8
- package/library/chunks/header.D68fIfe2.js +170 -0
- package/library/chunks/{hierarchy.5kfBCoGt.js → hierarchy.DwVsMmsP.js} +5 -5
- package/library/chunks/icon-button.BuhCp--_.js +149 -0
- package/library/chunks/iframe.BQFZQMTe.js +73 -0
- package/library/chunks/{image.DHBgKeJp.js → image.4eLWAZ3-.js} +16 -272
- package/library/chunks/{index.BkoLctE9.js → index.C9khsiad.js} +17 -17
- package/library/chunks/{json.BjaT7cyo.js → json.zyETMOw-.js} +3 -3
- package/library/chunks/{list-editor.DluUZa06.js → list-editor.DNa6ROgr.js} +45 -360
- package/library/chunks/{map.DbgNAGxD.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/option.DljDoFx4.js +123 -0
- package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
- package/library/chunks/{pagination.g4zErKN2.js → pagination.BiRyMwhM.js} +45 -141
- package/library/chunks/{percent.DO4FjAdu.js → percent.DuQwbCCg.js} +3 -3
- package/library/chunks/{radar.Dd5fJVMg.js → radar.FpYl3UH5.js} +4 -4
- package/library/chunks/{sliceGrouper.DA3aeuJ-.js → sliceGrouper.BsE7fGMt.js} +1 -1
- package/library/chunks/{stock.BfI5MUyK.js → stock.BR-ag4Pt.js} +9 -9
- package/library/chunks/{tab-group.Dg6a82ei.js → tab-group.9HbDE1AF.js} +30 -581
- package/library/chunks/{table.CcqrVieF.js → table.B8LpbiGE.js} +192 -2133
- package/library/chunks/{timeline.BxMLjB5J.js → timeline.DkzkmgEM.js} +5 -5
- package/library/chunks/{tree.OXvhEOjS.js → tree.q7xRVYyh.js} +31 -399
- package/library/chunks/typography.DJC_UXgs.js +52 -0
- package/library/chunks/{venn.CxFupTb9.js → venn.D739bOV3.js} +1 -1
- package/library/chunks/{wc.ThQubbN2.js → wc.DzW311D-.js} +1 -1
- package/library/chunks/{xy.q6e68du3.js → xy.DCRDfTsa.js} +10 -10
- package/library/components/alert.js +9 -177
- package/library/components/am-chart.js +2 -2
- package/library/components/animated-image.js +12 -100
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +7 -88
- package/library/components/asset-link-format.js +48 -626
- package/library/components/atoms.js +17 -17
- package/library/components/avatar.js +5 -94
- package/library/components/badge.js +11 -139
- package/library/components/bicolor-picker.js +4 -23
- package/library/components/border-input-group.js +4 -25
- package/library/components/breadcrumb-item.js +24 -155
- package/library/components/breadcrumb.js +3 -21
- package/library/components/button-group.js +3 -28
- package/library/components/button.js +3 -3
- package/library/components/card.js +4 -126
- package/library/components/checkbox.js +11 -252
- package/library/components/color-picker.js +54 -725
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +5 -5
- package/library/components/copy-button.js +9 -254
- package/library/components/corner-position-input-group.js +4 -57
- package/library/components/cropper.js +2 -2
- package/library/components/details.js +6 -152
- package/library/components/dialog.js +4 -4
- package/library/components/divider.js +5 -67
- package/library/components/dot-pagination.js +2 -2
- package/library/components/dot-status.js +25 -95
- package/library/components/drawer.js +8 -239
- package/library/components/dropdown.js +47 -149
- package/library/components/dynamic-select.js +7 -72
- package/library/components/e-chart.js +6 -49
- package/library/components/element-clamp.js +5 -78
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +3 -3
- package/library/components/format-date.js +2 -6
- package/library/components/format-time.js +2 -12
- package/library/components/grid-item.js +4 -171
- package/library/components/grid.js +5 -41
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/icon.js +8 -2448
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +7 -127
- package/library/components/image.js +2 -2
- package/library/components/include.js +2 -6
- package/library/components/input-group.js +4 -29
- package/library/components/input.js +21 -715
- package/library/components/line-clamp.js +7 -83
- package/library/components/list-editor.js +7 -7
- package/library/components/markdown.js +1 -3
- package/library/components/masonry.js +22 -221
- package/library/components/menu-item.js +9 -309
- package/library/components/menu-label.js +3 -20
- package/library/components/menu-section.js +3 -17
- package/library/components/menu.js +4 -112
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +2 -6
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +5 -16
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +204 -538
- package/library/components/position-picker.js +3 -93
- package/library/components/progress-bar.js +18 -135
- package/library/components/progress-ring.js +3 -94
- package/library/components/qr-code.js +4 -16
- package/library/components/radio-button.js +4 -24
- package/library/components/radio-card.js +7 -175
- package/library/components/radio-group.js +20 -151
- package/library/components/radio.js +13 -170
- package/library/components/range.js +120 -657
- package/library/components/rating.js +56 -236
- package/library/components/relative-time.js +2 -12
- package/library/components/resize-observer.js +3 -7
- package/library/components/select.js +225 -933
- package/library/components/shadow-input-group.js +5 -24
- package/library/components/share-option-list.js +18 -310
- package/library/components/sidebar.js +14 -220
- package/library/components/size-input-group.js +10 -75
- package/library/components/skeleton.js +7 -80
- package/library/components/space.js +6 -143
- package/library/components/spinner.js +6 -75
- package/library/components/split-panel.js +16 -123
- package/library/components/step.js +21 -272
- package/library/components/stepper-wizard.js +9 -43
- package/library/components/stepper.js +16 -33
- package/library/components/switch.js +11 -274
- package/library/components/tab-group.js +4 -4
- package/library/components/tab-panel.js +4 -31
- package/library/components/tab.js +9 -255
- package/library/components/table.js +6 -6
- package/library/components/tag.js +14 -165
- package/library/components/textarea.js +14 -363
- package/library/components/timecode.js +4 -23
- package/library/components/tooltip.js +8 -92
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +18 -117
- package/library/components/types.js +777 -12001
- package/library/components/typography.js +2 -2
- package/library/components/video.js +3522 -5919
- package/library/components/visually-hidden.js +3 -15
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
- package/library/packages/types/src/table.d.ts +2 -0
- package/library/react-web-component.d.ts +7 -3
- package/package.json +4 -1
- package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
- package/library/chunks/component.styles.DMSLciL5.js +0 -71
- package/library/chunks/confirm-popover.BNjRvnN0.js +0 -288
- package/library/chunks/dot-pagination.CIVxMAAS.js +0 -325
- package/library/chunks/file-on-demand.BTTdth3o.js +0 -3802
- package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
- package/library/chunks/header.m7v3M94Z.js +0 -777
- package/library/chunks/icon-button.C3eqeQl9.js +0 -683
- package/library/chunks/iframe.CNEyWhcM.js +0 -160
- package/library/chunks/option.Csqefux_.js +0 -296
- package/library/chunks/typography.oDzoLbZS.js +0 -149
|
@@ -1,45 +1,15 @@
|
|
|
1
|
-
import "../chunks/button.
|
|
1
|
+
import "../chunks/button.B-ktz-w4.js";
|
|
2
2
|
import "./tooltip.js";
|
|
3
3
|
import "./resize-observer.js";
|
|
4
4
|
import { n as r, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
5
|
-
import { c as g } from "../chunks/component.styles.
|
|
5
|
+
import { c as g } from "../chunks/component.styles.CRO4Odto.js";
|
|
6
6
|
import { i as f } from "../chunks/browser.BHOCIF_A.js";
|
|
7
7
|
import { c as w } from "../chunks/custom-element.L4WJXn1j.js";
|
|
8
8
|
import { d as x } from "../chunks/debounce.DaHuiSGU.js";
|
|
9
9
|
import { i as v, x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
10
10
|
import { r as u } from "../chunks/state.CSDxrqLd.js";
|
|
11
11
|
import { e as m } from "../chunks/query.BBf1UFkC.js";
|
|
12
|
-
const C = v
|
|
13
|
-
:host {
|
|
14
|
-
--toggler-color: var(--cx-color-primary);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.content {
|
|
18
|
-
display: block;
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
text-overflow: ellipsis;
|
|
21
|
-
white-space: normal;
|
|
22
|
-
display: -webkit-box;
|
|
23
|
-
-webkit-box-orient: vertical;
|
|
24
|
-
overflow-wrap: break-word;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.toggler {
|
|
28
|
-
display: block;
|
|
29
|
-
margin-top: var(cx--spacing-2x-small);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.toggler::part(base) {
|
|
33
|
-
color: var(--toggler-color);
|
|
34
|
-
font-weight: var(--cx-font-weight-medium);
|
|
35
|
-
text-transform: none;
|
|
36
|
-
width: auto;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.toggler::part(label) {
|
|
40
|
-
padding-left: 0;
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
12
|
+
const C = v`:host{--toggler-color:var(--cx-color-primary)}.content{text-overflow:ellipsis;white-space:normal;overflow-wrap:break-word;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.toggler{margin-top:var(--cx-spacing-2x-small);display:block}.toggler::part(base){color:var(--toggler-color);font-weight:var(--cx-font-weight-medium);text-transform:none;width:auto}.toggler::part(label){padding-left:0}`;
|
|
43
13
|
var T = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, e = (i, s, n, a) => {
|
|
44
14
|
for (var l = a > 1 ? void 0 : a ? $(s, n) : s, o = i.length - 1, p; o >= 0; o--)
|
|
45
15
|
(p = i[o]) && (l = (a ? p(s, n, l) : p(l)) || l);
|
|
@@ -112,59 +82,13 @@ let t = class extends b {
|
|
|
112
82
|
this.open = !this.open;
|
|
113
83
|
}
|
|
114
84
|
render() {
|
|
115
|
-
const i = h
|
|
116
|
-
<div part="base">
|
|
117
|
-
<cx-resize-observer @cx-resize=${this.handleResize}>
|
|
118
|
-
<span
|
|
119
|
-
class="content"
|
|
120
|
-
part="content"
|
|
121
|
-
style="-webkit-line-clamp: ${this.lines}"
|
|
122
|
-
>
|
|
123
|
-
<slot></slot>
|
|
124
|
-
</span>
|
|
125
|
-
</cx-resize-observer>
|
|
126
|
-
</div>
|
|
127
|
-
`;
|
|
85
|
+
const i = h`<div part="base"><cx-resize-observer @cx-resize=${this.handleResize}><span class="content" part="content" style="-webkit-line-clamp: ${this.lines}"><slot></slot></span></cx-resize-observer></div>`;
|
|
128
86
|
let s = null;
|
|
129
|
-
return this.isClamped && (s = h`<cx-button
|
|
130
|
-
part="toggler"
|
|
131
|
-
size="small"
|
|
132
|
-
variant="text"
|
|
133
|
-
class="toggler"
|
|
134
|
-
title=""
|
|
135
|
-
@click=${this.toggleShowingMore}
|
|
136
|
-
>
|
|
137
|
-
${this.open ? this.showLessText : this.showMoreText}
|
|
138
|
-
</cx-button>`), this.showMore ? h`
|
|
87
|
+
return this.isClamped && (s = h`<cx-button part="toggler" size="small" variant="text" class="toggler" @click=${this.toggleShowingMore}>${this.open ? this.showLessText : this.showMoreText}</cx-button>`), this.showMore ? h`
|
|
139
88
|
${this.open && this.calculated ? h`<slot></slot>` : i}
|
|
140
89
|
${s}
|
|
141
|
-
` : this.disabledTooltip ? i : this.tooltip ? h`
|
|
142
|
-
|
|
143
|
-
part="tooltip"
|
|
144
|
-
class="tooltip"
|
|
145
|
-
content=${this.tooltip}
|
|
146
|
-
hoist
|
|
147
|
-
?disabled-hover-bridge=${this.disabledHoverBridge}
|
|
148
|
-
.flipBoundary=${this.flipBoundary}
|
|
149
|
-
.shiftBoundary=${this.shiftBoundary}
|
|
150
|
-
placement=${this.placement}
|
|
151
|
-
@cx-after-hide=${f() ? this.handleTooltipAfterHide : null}
|
|
152
|
-
>${i}
|
|
153
|
-
</cx-tooltip>
|
|
154
|
-
` : h`
|
|
155
|
-
${this.isClamped ? h` <cx-tooltip
|
|
156
|
-
part="tooltip"
|
|
157
|
-
class="tooltip"
|
|
158
|
-
content=${this.tooltipContent}
|
|
159
|
-
hoist
|
|
160
|
-
?disabled-hover-bridge=${this.disabledHoverBridge}
|
|
161
|
-
.flipBoundary=${this.flipBoundary}
|
|
162
|
-
.shiftBoundary=${this.shiftBoundary}
|
|
163
|
-
placement=${this.placement}
|
|
164
|
-
@cx-after-hide=${f() ? this.handleTooltipAfterHide : null}
|
|
165
|
-
>
|
|
166
|
-
${i}
|
|
167
|
-
</cx-tooltip>` : i}
|
|
90
|
+
` : this.disabledTooltip ? i : this.tooltip ? h`<cx-tooltip part="tooltip" class="tooltip" content=${this.tooltip} hoist ?disabled-hover-bridge=${this.disabledHoverBridge} .flipBoundary=${this.flipBoundary} .shiftBoundary=${this.shiftBoundary} placement=${this.placement} @cx-after-hide=${f() ? this.handleTooltipAfterHide : null}>${i}</cx-tooltip>` : h`
|
|
91
|
+
${this.isClamped ? h`<cx-tooltip part="tooltip" class="tooltip" content=${this.tooltipContent} hoist ?disabled-hover-bridge=${this.disabledHoverBridge} .flipBoundary=${this.flipBoundary} .shiftBoundary=${this.shiftBoundary} placement=${this.placement} @cx-after-hide=${f() ? this.handleTooltipAfterHide : null}>${i}</cx-tooltip>` : i}
|
|
168
92
|
`;
|
|
169
93
|
}
|
|
170
94
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import "../chunks/button.
|
|
2
|
-
import "../chunks/dialog.
|
|
1
|
+
import "../chunks/button.B-ktz-w4.js";
|
|
2
|
+
import "../chunks/dialog.B1nzoJak.js";
|
|
3
3
|
import "./grid.js";
|
|
4
4
|
import "./grid-item.js";
|
|
5
5
|
import "./input.js";
|
|
6
6
|
import "./line-clamp.js";
|
|
7
|
-
import "../chunks/option.
|
|
7
|
+
import "../chunks/option.DljDoFx4.js";
|
|
8
8
|
import "./radio.js";
|
|
9
9
|
import "./radio-group.js";
|
|
10
10
|
import "./select.js";
|
|
11
11
|
import "./space.js";
|
|
12
|
-
import "../chunks/table.
|
|
13
|
-
import "../chunks/typography.
|
|
12
|
+
import "../chunks/table.B8LpbiGE.js";
|
|
13
|
+
import "../chunks/typography.DJC_UXgs.js";
|
|
14
14
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
15
15
|
import "./dynamic-select.js";
|
|
16
|
-
import "../chunks/component.styles.
|
|
16
|
+
import "../chunks/component.styles.CRO4Odto.js";
|
|
17
17
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
18
18
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
19
19
|
import "../chunks/i18n.BUW7B9hr.js";
|
|
20
20
|
import "../chunks/watch.BCJD77bD.js";
|
|
21
|
-
import { c as E, C as F } from "../chunks/list-editor.
|
|
21
|
+
import { c as E, C as F } from "../chunks/list-editor.DNa6ROgr.js";
|
|
22
22
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
23
23
|
import "../chunks/state.CSDxrqLd.js";
|
|
24
24
|
import "../chunks/query.BBf1UFkC.js";
|
|
@@ -2649,9 +2649,7 @@ let M = class extends at {
|
|
|
2649
2649
|
qe(this, re, ke).call(this), this.markdown && (this.rendered = de(this, H).parse(this.markdown));
|
|
2650
2650
|
}
|
|
2651
2651
|
render() {
|
|
2652
|
-
return rt
|
|
2653
|
-
<div class=${this.classname}>${it(this.rendered)}</div>
|
|
2654
|
-
`;
|
|
2652
|
+
return rt`<div class=${this.classname}>${it(this.rendered)}</div>`;
|
|
2655
2653
|
}
|
|
2656
2654
|
updated() {
|
|
2657
2655
|
this.liveScript && Gt(this), this.emit("cx-ready");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _ from "./grid.js";
|
|
2
2
|
import f from "./grid-item.js";
|
|
3
|
-
import { C as v } from "../chunks/icon-button.
|
|
4
|
-
import { C as S } from "../chunks/image.
|
|
3
|
+
import { C as v } from "../chunks/icon-button.BuhCp--_.js";
|
|
4
|
+
import { C as S } from "../chunks/image.4eLWAZ3-.js";
|
|
5
5
|
import $ from "./space.js";
|
|
6
6
|
import C from "./tooltip.js";
|
|
7
7
|
import { n, C as w } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
8
|
-
import { c as I } from "../chunks/component.styles.
|
|
8
|
+
import { c as I } from "../chunks/component.styles.CRO4Odto.js";
|
|
9
9
|
import { a as u } from "../chunks/index.Cpamj0jB.js";
|
|
10
10
|
import { c as k } from "../chunks/custom-element.L4WJXn1j.js";
|
|
11
11
|
import { w as U } from "../chunks/watch.BCJD77bD.js";
|
|
@@ -19,132 +19,7 @@ import { o as g } from "../chunks/style-map.llVFPd__.js";
|
|
|
19
19
|
import { n as y } from "../chunks/when.Dr1es41R.js";
|
|
20
20
|
import { S as j } from "../chunks/sortable.esm.oSzf6C5Q.js";
|
|
21
21
|
var c = /* @__PURE__ */ ((t) => (t.Masonry = "masonry", t.Standard = "standard", t))(c || {});
|
|
22
|
-
const D = A
|
|
23
|
-
:host {
|
|
24
|
-
--actions-background-color: var(--cx-color-neutral-100);
|
|
25
|
-
--border-radius: 0px;
|
|
26
|
-
--item-border-radius: var(--cx-border-radius-medium);
|
|
27
|
-
--padding: 0px;
|
|
28
|
-
--width: 100%;
|
|
29
|
-
--height: auto;
|
|
30
|
-
|
|
31
|
-
display: block;
|
|
32
|
-
width: var(--width, 100%);
|
|
33
|
-
height: var(--height, 100%);
|
|
34
|
-
overflow: auto;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/* #region Spacing */
|
|
38
|
-
:host([spacing='3x-small']) {
|
|
39
|
-
--spacing-container-gap: var(--cx-spacing-3x-small);
|
|
40
|
-
}
|
|
41
|
-
:host([spacing='2x-small']) {
|
|
42
|
-
--spacing-container-gap: var(--cx-spacing-2x-small);
|
|
43
|
-
}
|
|
44
|
-
:host([spacing='x-small']) {
|
|
45
|
-
--spacing-container-gap: var(--cx-spacing-x-small);
|
|
46
|
-
}
|
|
47
|
-
:host([spacing='small']) {
|
|
48
|
-
--spacing-container-gap: var(--cx-spacing-small);
|
|
49
|
-
}
|
|
50
|
-
:host([spacing='medium']) {
|
|
51
|
-
--spacing-container-gap: var(--cx-spacing-medium);
|
|
52
|
-
}
|
|
53
|
-
:host([spacing='large']) {
|
|
54
|
-
--spacing-container-gap: var(--cx-spacing-large);
|
|
55
|
-
}
|
|
56
|
-
:host([spacing='x-large']) {
|
|
57
|
-
--spacing-container-gap: var(--cx-spacing-x-large);
|
|
58
|
-
}
|
|
59
|
-
:host([spacing='2x-large']) {
|
|
60
|
-
--spacing-container-gap: var(--cx-spacing-2x-large);
|
|
61
|
-
}
|
|
62
|
-
:host([spacing='3x-large']) {
|
|
63
|
-
--spacing-container-gap: var(--cx-spacing-3x-large);
|
|
64
|
-
}
|
|
65
|
-
:host([spacing='4x-large']) {
|
|
66
|
-
--spacing-container-gap: var(--cx-spacing-4x-large);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/* #endregion */
|
|
70
|
-
|
|
71
|
-
.masonry-list {
|
|
72
|
-
column-gap: var(--spacing-container-gap);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.masonry-list__item {
|
|
76
|
-
display: block;
|
|
77
|
-
position: relative;
|
|
78
|
-
border-radius: var(--item-border-radius);
|
|
79
|
-
overflow: hidden;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.masonry-list__item--error::before {
|
|
83
|
-
content: '';
|
|
84
|
-
position: absolute;
|
|
85
|
-
top: 0;
|
|
86
|
-
left: 0;
|
|
87
|
-
width: 100%;
|
|
88
|
-
height: 100%;
|
|
89
|
-
border: 2px solid var(--cx-color-danger);
|
|
90
|
-
border-radius: var(--item-border-radius);
|
|
91
|
-
z-index: 1;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.container--masonry .masonry-list__item {
|
|
95
|
-
margin-bottom: var(--spacing-container-gap);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.container--standard cx-grid-item::part(base) {
|
|
99
|
-
height: 100%;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.masonry-list__item__image {
|
|
103
|
-
height: 100%;
|
|
104
|
-
width: 100%;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.masonry-list__item__actions {
|
|
108
|
-
position: absolute;
|
|
109
|
-
left: 0;
|
|
110
|
-
bottom: 0;
|
|
111
|
-
width: 100%;
|
|
112
|
-
opacity: 0;
|
|
113
|
-
transition: opacity var(--cx-transition-fast) ease-in-out;
|
|
114
|
-
z-index: 10;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.masonry-list__item__actions::before {
|
|
118
|
-
content: '';
|
|
119
|
-
position: absolute;
|
|
120
|
-
top: 0;
|
|
121
|
-
left: 0;
|
|
122
|
-
width: 100%;
|
|
123
|
-
height: 100%;
|
|
124
|
-
background-color: var(--actions-background-color);
|
|
125
|
-
opacity: 0.5;
|
|
126
|
-
pointer-events: none;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.masonry-list__item:hover .masonry-list__item__actions {
|
|
130
|
-
opacity: 1;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.masonry-list__item__action {
|
|
134
|
-
position: relative;
|
|
135
|
-
flex: 1 1 auto;
|
|
136
|
-
z-index: 5;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.masonry-list__item__action::part(base) {
|
|
140
|
-
border-radius: 0;
|
|
141
|
-
width: 100%;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.container--sortable .masonry-list__item {
|
|
145
|
-
cursor: move;
|
|
146
|
-
}
|
|
147
|
-
`;
|
|
22
|
+
const D = A`:host{--actions-background-color:var(--cx-color-neutral-100);--border-radius:0px;--item-border-radius:var(--cx-border-radius-medium);--padding:0px;--width:100%;--height:auto;width:var(--width,100%);height:var(--height,100%);display:block;overflow:auto}:host([spacing="3x-small"]){--spacing-container-gap:var(--cx-spacing-3x-small)}:host([spacing="2x-small"]){--spacing-container-gap:var(--cx-spacing-2x-small)}:host([spacing=x-small]){--spacing-container-gap:var(--cx-spacing-x-small)}:host([spacing=small]){--spacing-container-gap:var(--cx-spacing-small)}:host([spacing=medium]){--spacing-container-gap:var(--cx-spacing-medium)}:host([spacing=large]){--spacing-container-gap:var(--cx-spacing-large)}:host([spacing=x-large]){--spacing-container-gap:var(--cx-spacing-x-large)}:host([spacing="2x-large"]){--spacing-container-gap:var(--cx-spacing-2x-large)}:host([spacing="3x-large"]){--spacing-container-gap:var(--cx-spacing-3x-large)}:host([spacing="4x-large"]){--spacing-container-gap:var(--cx-spacing-4x-large)}.masonry-list{column-gap:var(--spacing-container-gap)}.masonry-list__item{border-radius:var(--item-border-radius);display:block;position:relative;overflow:hidden}.masonry-list__item--error:before{content:"";border:2px solid var(--cx-color-danger);border-radius:var(--item-border-radius);z-index:1;width:100%;height:100%;position:absolute;top:0;left:0}.container--masonry .masonry-list__item{margin-bottom:var(--spacing-container-gap)}.container--standard cx-grid-item::part(base){height:100%}.masonry-list__item__image{width:100%;height:100%}.masonry-list__item__actions{opacity:0;width:100%;transition:opacity var(--cx-transition-fast) ease-in-out;z-index:10;position:absolute;bottom:0;left:0}.masonry-list__item__actions:before{content:"";background-color:var(--actions-background-color);opacity:.5;pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0}.masonry-list__item:hover .masonry-list__item__actions{opacity:1}.masonry-list__item__action{z-index:5;flex:auto;position:relative}.masonry-list__item__action::part(base){border-radius:0;width:100%}.container--sortable .masonry-list__item{cursor:move}`;
|
|
148
23
|
var K = Object.defineProperty, z = Object.getOwnPropertyDescriptor, e = (t, i, a, s) => {
|
|
149
24
|
for (var l = s > 1 ? void 0 : s ? z(i, a) : i, d = t.length - 1, p; d >= 0; d--)
|
|
150
25
|
(p = t[d]) && (l = (s ? p(i, a, l) : p(l)) || l);
|
|
@@ -216,135 +91,61 @@ let r = class extends w {
|
|
|
216
91
|
detail: { item: t }
|
|
217
92
|
});
|
|
218
93
|
};
|
|
219
|
-
return o
|
|
220
|
-
<cx-icon-button
|
|
221
|
-
class="masonry-list__item__action"
|
|
222
|
-
name=${b(a.icon)}
|
|
223
|
-
src=${b(a.src)}
|
|
224
|
-
@click=${s}
|
|
225
|
-
size="small"
|
|
226
|
-
style=${g({
|
|
94
|
+
return o`<cx-icon-button class="masonry-list__item__action" name=${b(a.icon)} src=${b(a.src)} @click=${s} size="small" style=${g({
|
|
227
95
|
color: a.color
|
|
228
|
-
})}
|
|
229
|
-
></cx-icon-button>
|
|
230
|
-
`;
|
|
96
|
+
})}></cx-icon-button>`;
|
|
231
97
|
};
|
|
232
|
-
return o`<cx-space
|
|
233
|
-
class="masonry-list__item__actions"
|
|
234
|
-
direction="horizontal"
|
|
235
|
-
spacing="x-small"
|
|
236
|
-
justify-content="space-around"
|
|
237
|
-
>
|
|
238
|
-
${m(
|
|
98
|
+
return o`<cx-space class="masonry-list__item__actions" direction="horizontal" spacing="x-small" justify-content="space-around">${m(
|
|
239
99
|
this.actions,
|
|
240
100
|
(a) => a.event,
|
|
241
|
-
(a) => a.tooltip ? o`<cx-tooltip content=${a.tooltip}
|
|
242
|
-
|
|
243
|
-
</cx-tooltip>` : i(a)
|
|
244
|
-
)}
|
|
245
|
-
</cx-space>`;
|
|
101
|
+
(a) => a.tooltip ? o`<cx-tooltip content=${a.tooltip}>${i(a)}</cx-tooltip>` : i(a)
|
|
102
|
+
)}</cx-space>`;
|
|
246
103
|
}
|
|
247
104
|
renderMasonry() {
|
|
248
|
-
return o`<div
|
|
249
|
-
class="masonry-list"
|
|
250
|
-
style=${g({
|
|
105
|
+
return o`<div class="masonry-list" style=${g({
|
|
251
106
|
"column-count": this.cols
|
|
252
|
-
})}
|
|
253
|
-
part="list"
|
|
254
|
-
>
|
|
255
|
-
${m(
|
|
107
|
+
})} part="list">${m(
|
|
256
108
|
this.data,
|
|
257
109
|
(t) => t[this.idKey],
|
|
258
110
|
(t) => {
|
|
259
111
|
const i = (a) => {
|
|
260
112
|
this.handleItemClick(a, t);
|
|
261
113
|
};
|
|
262
|
-
return o`<div
|
|
263
|
-
data-id=${t[this.idKey]}
|
|
264
|
-
class=${h({
|
|
114
|
+
return o`<div data-id=${t[this.idKey]} class=${h({
|
|
265
115
|
"masonry-list__item": !0,
|
|
266
116
|
"masonry-list__item--error": t.hasError ?? !1
|
|
267
|
-
})}
|
|
268
|
-
part="item"
|
|
269
|
-
@click=${i}
|
|
270
|
-
>
|
|
271
|
-
<cx-image
|
|
272
|
-
part="image"
|
|
273
|
-
class="masonry-list__item__image"
|
|
274
|
-
alt=${t.alt || ""}
|
|
275
|
-
src=${t.src}
|
|
276
|
-
object-fit=${t.objectFit || u.Cover}
|
|
277
|
-
?loading=${t.loading}
|
|
278
|
-
>
|
|
279
|
-
</cx-image>
|
|
280
|
-
${y(this.actions.length > 0, () => this.renderActions(t))}
|
|
281
|
-
</div>`;
|
|
117
|
+
})} part="item" @click=${i}><cx-image part="image" class="masonry-list__item__image" alt=${t.alt || ""} src=${t.src} object-fit=${t.objectFit || u.Cover} ?loading=${t.loading}></cx-image>${y(this.actions.length > 0, () => this.renderActions(t))}</div>`;
|
|
282
118
|
}
|
|
283
|
-
)}
|
|
284
|
-
</div>`;
|
|
119
|
+
)}</div>`;
|
|
285
120
|
}
|
|
286
121
|
renderStandard() {
|
|
287
|
-
return o`<cx-grid
|
|
288
|
-
columns=${this.cols}
|
|
289
|
-
spacing="var(--cx-spacing-${this.spacing})"
|
|
290
|
-
use-flex-gap
|
|
291
|
-
class="masonry-list"
|
|
292
|
-
part="list"
|
|
293
|
-
>
|
|
294
|
-
${m(
|
|
122
|
+
return o`<cx-grid columns=${this.cols} spacing="var(--cx-spacing-${this.spacing})" use-flex-gap class="masonry-list" part="list">${m(
|
|
295
123
|
this.data,
|
|
296
124
|
(t) => t[this.idKey],
|
|
297
125
|
(t) => {
|
|
298
126
|
const i = (a) => {
|
|
299
127
|
this.handleItemClick(a, t);
|
|
300
128
|
};
|
|
301
|
-
return o`<cx-grid-item xs="1"
|
|
302
|
-
<div
|
|
303
|
-
class=${h({
|
|
129
|
+
return o`<cx-grid-item xs="1"><div class=${h({
|
|
304
130
|
"masonry-list__item": !0,
|
|
305
131
|
"masonry-list__item--error": t.hasError ?? !1
|
|
306
|
-
})}
|
|
307
|
-
style=${g({
|
|
132
|
+
})} style=${g({
|
|
308
133
|
height: this.rowHeight
|
|
309
|
-
})}
|
|
310
|
-
part="item"
|
|
311
|
-
@click=${i}
|
|
312
|
-
data-id=${t[this.idKey]}
|
|
313
|
-
>
|
|
314
|
-
<cx-image
|
|
315
|
-
part="image"
|
|
316
|
-
class="masonry-list__item__image"
|
|
317
|
-
alt=${t.alt || ""}
|
|
318
|
-
src=${t.src}
|
|
319
|
-
width="100%"
|
|
320
|
-
height="100%"
|
|
321
|
-
object-fit=${t.objectFit || u.Cover}
|
|
322
|
-
?loading=${t.loading}
|
|
323
|
-
>
|
|
324
|
-
</cx-image>
|
|
325
|
-
${y(this.actions.length > 0, () => this.renderActions(t))}
|
|
326
|
-
</div>
|
|
327
|
-
</cx-grid-item>`;
|
|
134
|
+
})} part="item" @click=${i} data-id=${t[this.idKey]}><cx-image part="image" class="masonry-list__item__image" alt=${t.alt || ""} src=${t.src} width="100%" height="100%" object-fit=${t.objectFit || u.Cover} ?loading=${t.loading}></cx-image>${y(this.actions.length > 0, () => this.renderActions(t))}</div></cx-grid-item>`;
|
|
328
135
|
}
|
|
329
|
-
)}
|
|
330
|
-
</cx-grid>`;
|
|
136
|
+
)}</cx-grid>`;
|
|
331
137
|
}
|
|
332
138
|
render() {
|
|
333
|
-
return o`<div
|
|
334
|
-
part="base"
|
|
335
|
-
class=${h({
|
|
139
|
+
return o`<div part="base" class=${h({
|
|
336
140
|
container: !0,
|
|
337
141
|
"container--masonry": this.variant === c.Masonry,
|
|
338
142
|
"container--sortable": this.sortable,
|
|
339
143
|
"container--standard": this.variant === c.Standard
|
|
340
|
-
})}
|
|
341
|
-
>
|
|
342
|
-
${y(
|
|
144
|
+
})}>${y(
|
|
343
145
|
this.variant === c.Masonry,
|
|
344
146
|
() => this.renderMasonry(),
|
|
345
147
|
() => this.renderStandard()
|
|
346
|
-
)}
|
|
347
|
-
</div>`;
|
|
148
|
+
)}</div>`;
|
|
348
149
|
}
|
|
349
150
|
};
|
|
350
151
|
r.styles = [I, D];
|