@orangelogic/design-system 2.100.0 → 2.102.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/{asset.CKtT9q4k.js → asset.CtL7ACp7.js} +1 -1
- package/library/chunks/{color-swatch-group.Cfn8EGfK.js → color-swatch-group.C6c53two.js} +3 -3
- package/library/chunks/{color-swatch.BUwHT5Cx.js → color-swatch.GsiCvj1n.js} +1 -1
- package/library/chunks/{confirm-popover.BMGnWZnC.js → confirm-popover.PiSCZY6-.js} +1 -1
- package/library/chunks/debounce.CIEhztrj.js +97 -0
- package/library/chunks/{dialog._xvAZqaE.js → dialog.BTU6B2_4.js} +9 -10
- package/library/chunks/event.BeKOsirN.js +46 -0
- package/library/chunks/{file-on-demand.CIjtKP0H.js → file-on-demand.DCxabV6T.js} +4 -4
- package/library/chunks/{folder-select.D4Ft0qRc.js → folder-select.BM7yeAsU.js} +2 -2
- package/library/chunks/{image.BnB-fJ8g.js → image.D207g003.js} +1 -1
- package/library/chunks/{list-editor.B_mnvgtZ.js → list-editor.CMakbQyU.js} +182 -184
- package/library/chunks/{table.D4HIzy47.js → table.Cm-ynClk.js} +977 -962
- package/library/chunks/transformation.Dir8s_wm.js +151 -0
- package/library/chunks/{tree.Hh8WCK7l.js → tree.DAiWVFiY.js} +91 -80
- package/library/components/alert.js +7 -8
- package/library/components/asset-link-format.js +867 -672
- package/library/components/atoms.js +4 -4
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +4 -4
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +2 -2
- package/library/components/details.js +1 -2
- package/library/components/dialog.js +3 -4
- package/library/components/drawer.js +83 -73
- package/library/components/dropdown.js +7 -8
- package/library/components/dynamic-select.js +1 -1
- package/library/components/element-clamp.js +1 -2
- package/library/components/file-on-demand.js +5 -5
- package/library/components/folder-select.js +2 -2
- package/library/components/image.js +2 -2
- package/library/components/line-clamp.js +4 -5
- package/library/components/list-editor.js +4 -4
- package/library/components/masonry.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/organisms.js +2 -2
- package/library/components/popup.js +73 -74
- package/library/components/range.js +1 -1
- package/library/components/select.js +1 -2
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +6 -6
- package/library/components/table.js +1 -1
- package/library/components/tag.js +44 -31
- package/library/components/tooltip.js +1 -2
- package/library/components/tree-item.js +4 -3
- package/library/components/tree.js +1 -1
- package/library/components/types.js +760 -765
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +8 -0
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +11 -1
- package/library/packages/atoms/src/components/tag/tag.d.ts +11 -1
- package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +10 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +8 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +4 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.d.ts +4 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-resize/asset-link-format-resize.d.ts +4 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +2 -1
- package/library/packages/types/src/asset-link-format.d.ts +2 -0
- package/library/packages/types/src/content-builder.d.ts +5 -1
- package/library/packages/types/src/tag.d.ts +1 -0
- package/library/packages/utils/src/transformation/transformation.d.ts +4 -1
- package/library/react-web-component.d.ts +19 -3
- package/library/utils.js +138 -140
- package/package.json +1 -1
- package/library/chunks/animate.El-MpOws.js +0 -37
- package/library/chunks/browser.BHOCIF_A.js +0 -84
- package/library/chunks/debounce.DaHuiSGU.js +0 -15
- package/library/chunks/event.mFzZi4sr.js +0 -11
- package/library/chunks/transformation.Cqz3hPaQ.js +0 -144
|
@@ -1,32 +1,42 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { c as
|
|
3
|
-
import { c as
|
|
4
|
-
import { L as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import b from "
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { n as i, C as p } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as u } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
+
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { L as h } from "../chunks/i18n.DK1uYlJT.js";
|
|
5
|
+
import { H as v } from "../chunks/slot.j5oheLJC.js";
|
|
6
|
+
import { i as d, x as m } from "../chunks/lit-element.jLBm65_O.js";
|
|
7
|
+
import { e as f } from "../chunks/class-map.BiVq-cVR.js";
|
|
8
|
+
import { C as b } from "../chunks/icon-button.CN0NGNQx.js";
|
|
9
|
+
import _ from "./line-clamp.js";
|
|
10
|
+
const n = 1, y = d`:host{display:inline-block}.tag{white-space:nowrap;-webkit-user-select:none;user-select:none;border:1px solid;align-items:center;line-height:1;display:flex}.tag__content{min-width:0}.tag--has-prefix .tag__prefix,.tag--has-suffix .tag__suffix{flex:none;align-items:center;display:inline-flex}.tag--has-prefix .tag__prefix{margin-inline-end:var(--cx-spacing-x-small)}.tag--has-suffix .tag__suffix{margin-inline-start:var(--cx-spacing-x-small)}.tag__remove::part(base){color:inherit;padding:0}.tag--primary{background-color:var(--cx-color-primary-50);border-color:var(--cx-color-primary-300);color:var(--cx-color-primary-800)}.tag--primary:active>cx-icon-button{color:var(--cx-color-primary)}.tag--success{background-color:var(--cx-color-success-50);border-color:var(--cx-color-success-200);color:var(--cx-color-success-800)}.tag--success:active>cx-icon-button{color:var(--cx-color-success)}.tag--neutral{background-color:var(--cx-color-neutral-50);border-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral-800)}.tag--neutral:active>cx-icon-button{color:var(--cx-color-neutral-600)}.tag--warning{background-color:var(--cx-color-warning-50);border-color:var(--cx-color-warning-200);color:var(--cx-color-warning-800)}.tag--warning:active>cx-icon-button{color:var(--cx-color-warning)}.tag--danger{background-color:var(--cx-color-danger-50);border-color:var(--cx-color-danger-200);color:var(--cx-color-danger-800)}.tag--danger:active>cx-icon-button{color:var(--cx-color-danger)}.tag--small{font-size:var(--cx-button-font-size-small);height:calc(var(--cx-input-height-small) * .8);line-height:calc(var(--cx-input-height-small) - var(--cx-input-border-width) * 2);border-radius:var(--cx-input-border-radius-small);padding:0 var(--cx-spacing-x-small)}.tag--medium{font-size:var(--cx-button-font-size-medium);height:calc(var(--cx-input-height-medium) * .8);line-height:calc(var(--cx-input-height-medium) - var(--cx-input-border-width) * 2);border-radius:var(--cx-input-border-radius-medium);padding:0 var(--cx-spacing-small)}.tag--large{font-size:var(--cx-button-font-size-large);height:calc(var(--cx-input-height-large) * .8);line-height:calc(var(--cx-input-height-large) - var(--cx-input-border-width) * 2);border-radius:var(--cx-input-border-radius-large);padding:0 var(--cx-spacing-medium)}.tag--small .tag__remove::part(icon){--font-size:var(--cx-font-size-small)}.tag--medium .tag__remove::part(icon){--font-size:var(--cx-font-size-medium)}.tag--large .tag__remove::part(icon){--font-size:var(--cx-font-size-large)}.tag--pill{border-radius:var(--cx-border-radius-pill)}.tag--removable{padding-inline-end:0}.tag--multiline{white-space:normal;height:auto;padding-block:var(--cx-spacing-2x-small);align-items:flex-start}.tag--multiline.tag--small{line-height:var(--cx-line-height-small)}.tag--multiline.tag--medium{line-height:var(--cx-line-height-medium)}.tag--multiline.tag--large{line-height:var(--cx-line-height-large)}`;
|
|
11
|
+
var w = Object.defineProperty, z = Object.getOwnPropertyDescriptor, t = (e, o, c, l) => {
|
|
12
|
+
for (var a = l > 1 ? void 0 : l ? z(o, c) : o, s = e.length - 1, g; s >= 0; s--)
|
|
13
|
+
(g = e[s]) && (a = (l ? g(o, c, a) : g(a)) || a);
|
|
14
|
+
return l && a && w(o, c, a), a;
|
|
14
15
|
};
|
|
15
|
-
let r = class extends
|
|
16
|
+
let r = class extends p {
|
|
16
17
|
constructor() {
|
|
17
|
-
super(...arguments), this.localize = new
|
|
18
|
+
super(...arguments), this.localize = new h(this), this.hasSlotController = new v(
|
|
19
|
+
this,
|
|
20
|
+
"prefix",
|
|
21
|
+
"suffix"
|
|
22
|
+
), this.variant = "neutral", this.size = "medium", this.pill = !1, this.removable = !1, this.lines = n;
|
|
18
23
|
}
|
|
19
24
|
handleRemoveClick() {
|
|
20
25
|
this.emit("cx-remove");
|
|
21
26
|
}
|
|
22
27
|
render() {
|
|
23
|
-
|
|
28
|
+
const e = Number.isFinite(this.lines) ? Math.max(n, Math.trunc(this.lines)) : n;
|
|
29
|
+
return m`<span part="base" class=${f({
|
|
24
30
|
tag: !0,
|
|
25
31
|
"tag--danger": this.variant === "danger",
|
|
32
|
+
// Slots
|
|
33
|
+
"tag--has-prefix": this.hasSlotController.test("prefix"),
|
|
34
|
+
"tag--has-suffix": this.hasSlotController.test("suffix"),
|
|
26
35
|
"tag--large": this.size === "large",
|
|
27
36
|
"tag--medium": this.size === "medium",
|
|
28
|
-
"tag--neutral": this.variant === "neutral",
|
|
29
37
|
// Modifiers
|
|
38
|
+
"tag--multiline": e > n,
|
|
39
|
+
"tag--neutral": this.variant === "neutral",
|
|
30
40
|
"tag--pill": this.pill,
|
|
31
41
|
"tag--primary": this.variant === "primary",
|
|
32
42
|
"tag--removable": this.removable,
|
|
@@ -35,28 +45,31 @@ let r = class extends m {
|
|
|
35
45
|
"tag--success": this.variant === "success",
|
|
36
46
|
"tag--text": this.variant === "text",
|
|
37
47
|
"tag--warning": this.variant === "warning"
|
|
38
|
-
})}><cx-line-clamp class="tag__content" lines
|
|
48
|
+
})}><slot name="prefix" part="prefix" class="tag__prefix"></slot><cx-line-clamp class="tag__content" lines=${e}><slot part="content"></slot></cx-line-clamp><slot name="suffix" part="suffix" class="tag__suffix"></slot>${this.removable ? m`<cx-icon-button part="remove-button" exportparts="base:remove-button__base" name="close" label=${this.localize.term("remove")} class="tag__remove" @click=${this.handleRemoveClick} tabindex="-1"></cx-icon-button>` : ""}</span>`;
|
|
39
49
|
}
|
|
40
50
|
};
|
|
41
|
-
r.styles = [
|
|
51
|
+
r.styles = [u, y];
|
|
42
52
|
r.dependencies = {
|
|
43
|
-
"cx-icon-button":
|
|
44
|
-
"cx-line-clamp":
|
|
53
|
+
"cx-icon-button": b,
|
|
54
|
+
"cx-line-clamp": _
|
|
45
55
|
};
|
|
46
|
-
|
|
47
|
-
|
|
56
|
+
t([
|
|
57
|
+
i({ reflect: !0 })
|
|
48
58
|
], r.prototype, "variant", 2);
|
|
49
|
-
|
|
50
|
-
|
|
59
|
+
t([
|
|
60
|
+
i({ reflect: !0 })
|
|
51
61
|
], r.prototype, "size", 2);
|
|
52
|
-
|
|
53
|
-
|
|
62
|
+
t([
|
|
63
|
+
i({ reflect: !0, type: Boolean })
|
|
54
64
|
], r.prototype, "pill", 2);
|
|
55
|
-
|
|
56
|
-
|
|
65
|
+
t([
|
|
66
|
+
i({ type: Boolean })
|
|
57
67
|
], r.prototype, "removable", 2);
|
|
58
|
-
|
|
59
|
-
|
|
68
|
+
t([
|
|
69
|
+
i({ type: Number })
|
|
70
|
+
], r.prototype, "lines", 2);
|
|
71
|
+
r = t([
|
|
72
|
+
x("cx-tag")
|
|
60
73
|
], r);
|
|
61
74
|
export {
|
|
62
75
|
r as default
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { n as i, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as g } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
-
import { p as c, s as u, a as m } from "../chunks/
|
|
3
|
+
import { p as c, s as u, a as m, w as y } from "../chunks/event.BeKOsirN.js";
|
|
4
4
|
import { c as w } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
-
import { w as y } from "../chunks/event.mFzZi4sr.js";
|
|
6
5
|
import { L as x } from "../chunks/i18n.DK1uYlJT.js";
|
|
7
6
|
import { w as l } from "../chunks/watch.BCJD77bD.js";
|
|
8
7
|
import { i as C, x as k } from "../chunks/lit-element.jLBm65_O.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
-
import "../chunks/
|
|
3
|
+
import "../chunks/event.BeKOsirN.js";
|
|
4
4
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import "../chunks/i18n.DK1uYlJT.js";
|
|
6
6
|
import "../chunks/watch.BCJD77bD.js";
|
|
@@ -14,8 +14,9 @@ import "../chunks/when.Dr1es41R.js";
|
|
|
14
14
|
import "../chunks/animation-registry.HmpwNuGH.js";
|
|
15
15
|
import "./checkbox.js";
|
|
16
16
|
import "./icon.js";
|
|
17
|
+
import "./line-clamp.js";
|
|
17
18
|
import "./spinner.js";
|
|
18
|
-
import { C as
|
|
19
|
+
import { C as k } from "../chunks/tree.DAiWVFiY.js";
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
k as default
|
|
21
22
|
};
|
|
@@ -4,7 +4,7 @@ import "../chunks/custom-element.L4WJXn1j.js";
|
|
|
4
4
|
import "../chunks/i18n.DK1uYlJT.js";
|
|
5
5
|
import "../chunks/math.DqTA6ya4.js";
|
|
6
6
|
import "../chunks/watch.BCJD77bD.js";
|
|
7
|
-
import { a as y, b, s as f, c as x } from "../chunks/tree.
|
|
7
|
+
import { a as y, b, s as f, c as x } from "../chunks/tree.DAiWVFiY.js";
|
|
8
8
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
9
9
|
import "../chunks/state.CSDxrqLd.js";
|
|
10
10
|
import "../chunks/query.BBf1UFkC.js";
|