@orangelogic/design-system 3.69.0 → 3.71.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-link-format.Dc3DkBm6.js → asset-link-format.TGRmDDv4.js} +3 -3
- package/library/chunks/{bicolor-picker.DLit8i5-.js → bicolor-picker.B_VAZjuh.js} +1 -1
- package/library/chunks/{block-width.CloTv8Nc.js → block-width.yw878pcU.js} +21 -21
- package/library/chunks/{border-input-group.DAbtCm-7.js → border-input-group.xRq1PEcA.js} +2 -2
- package/library/chunks/{color-picker.DIwN3_iC.js → color-picker.B6pXgpRC.js} +4 -4
- package/library/chunks/{color-swatch-group.AJ5xpLiw.js → color-swatch-group.D5cHzHGk.js} +6 -6
- package/library/chunks/{config-manager.Dga8yCuU.js → config-manager.p5syZtil.js} +18 -18
- package/library/chunks/{configs-controller._AG3aEMg.js → configs-controller.DI0t1bwN.js} +4 -4
- package/library/chunks/{confirm-popover.P9_d33nF.js → confirm-popover.CAMfvSCb.js} +2 -2
- package/library/chunks/{corner-position-input-group.B8e7wxWC.js → corner-position-input-group.CjfX25_1.js} +2 -2
- package/library/chunks/{cropper.D4ymxgab.js → cropper.D5Vh9xD_.js} +10 -12
- package/library/chunks/{dialog.DVLWODoq.js → dialog.CfbeRoZl.js} +471 -460
- package/library/chunks/{document-viewer.yYXbimVT.js → document-viewer.BufAh9e4.js} +4 -4
- package/library/chunks/{drawer.CO5T5Y3N.js → drawer.DdZl0Tae.js} +37 -26
- package/library/chunks/{dropdown.BOrWTz9h.js → dropdown.BYtpn4Jt.js} +2 -2
- package/library/chunks/{dynamic-select.DNYE60j1.js → dynamic-select.Bce10oMm.js} +1 -1
- package/library/chunks/{file-on-demand.BchdFD1S.js → file-on-demand.CmUnaee8.js} +5 -5
- package/library/chunks/{folder-select.DmhVucHZ.js → folder-select.RcqCzJ0G.js} +2 -2
- package/library/chunks/{input.Fmdh6pnf.js → input.w9KQVNnx.js} +1 -0
- package/library/chunks/{menu.BOAxSXuT.js → menu.EBYRr4cO.js} +1 -1
- package/library/chunks/{padding-input-group.E8trRZI5.js → padding-input-group.BTjH4scb.js} +1 -1
- package/library/chunks/{pagination.2kAQwMrS.js → pagination.D_Q1y6JJ.js} +2 -2
- package/library/chunks/{select.xDcOCLTR.js → select.DALWjdGQ.js} +1 -1
- package/library/chunks/{shadow-input-group.Cw3yDItr.js → shadow-input-group.BIK6HMvI.js} +2 -2
- package/library/chunks/{size-input-group.C16sezUf.js → size-input-group.DUusMYTq.js} +2 -2
- package/library/chunks/{src.dACFJV5g.js → src.Z27TJkT3.js} +12 -12
- package/library/chunks/step.BOokySSD.js +96 -0
- package/library/chunks/{stepper-wizard.BnRJXduo.js → stepper-wizard.D5qlGmL7.js} +8 -5
- package/library/chunks/{stepper.fAZR0Kj_.js → stepper.OkhIGgAJ.js} +1 -1
- package/library/chunks/{tab-group.BG1rclh_.js → tab-group.CcMSN8AD.js} +2 -2
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +13 -13
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/confirm-popover.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/cropper.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/input.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +11 -11
- package/library/components/organisms.js +3 -3
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/types.js +30 -30
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/dialog/dialog.d.ts +9 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +9 -0
- package/library/packages/atoms/src/components/input/input.d.ts +4 -1
- package/library/packages/atoms/src/components/menu/menu.d.ts +2 -0
- package/library/packages/atoms/src/components/step/step.d.ts +5 -0
- package/library/packages/molecules/src/cropper/react/ReactCrop/ReactCrop.d.ts +1 -1
- package/library/packages/molecules/src/stepper-wizard/stepper-wizard.d.ts +4 -0
- package/library/react-web-component.d.ts +9 -1
- package/package.json +1 -1
- package/library/chunks/step.DbrSxSnw.js +0 -93
|
@@ -17,12 +17,12 @@ import { t as tooltip_default } from "./tooltip.fZNjia6Z.js";
|
|
|
17
17
|
import { t as resize_observer_default } from "./resize-observer.D9EHlnZI.js";
|
|
18
18
|
import { a as ObjectFit } from "./src.BJhIYoMP.js";
|
|
19
19
|
import { t as typography_default } from "./typography.B0mkhqTB.js";
|
|
20
|
-
import { t as dropdown_default } from "./dropdown.
|
|
20
|
+
import { t as dropdown_default } from "./dropdown.BYtpn4Jt.js";
|
|
21
21
|
import { t as focusWhenVisible } from "./focus-when-visible.DKscgyKo.js";
|
|
22
|
-
import { t as input_default } from "./input.
|
|
23
|
-
import { t as menu_default } from "./menu.
|
|
22
|
+
import { t as input_default } from "./input.w9KQVNnx.js";
|
|
23
|
+
import { t as menu_default } from "./menu.EBYRr4cO.js";
|
|
24
24
|
import { t as menu_item_default } from "./menu-item.DcN5ujBQ.js";
|
|
25
|
-
import { t as drawer_default } from "./drawer.
|
|
25
|
+
import { t as drawer_default } from "./drawer.DdZl0Tae.js";
|
|
26
26
|
import { t as progress_bar_default } from "./progress-bar.BJfkoZ6G.js";
|
|
27
27
|
import { fetchCortexApi } from "../utils.js";
|
|
28
28
|
import { a as require_react, n as w, r as require_client, t as require_jsx_runtime } from "./jsx-runtime.BqxT1jD6.js";
|
|
@@ -12,25 +12,26 @@ import { r as _, t as v } from "./animation-registry.DKd2AOcC.js";
|
|
|
12
12
|
import { t as y } from "./icon-button.Dd-oDRfX.js";
|
|
13
13
|
import { t as b } from "./if-defined.B29V_rEp.js";
|
|
14
14
|
import { t as x } from "./when.BUskJLtZ.js";
|
|
15
|
-
import {
|
|
16
|
-
import { t as w } from "./
|
|
17
|
-
import { t as T } from "./
|
|
15
|
+
import { t as S } from "./focus-when-visible.DKscgyKo.js";
|
|
16
|
+
import { r as C, t as w } from "./scroll.CEH_a4pm.js";
|
|
17
|
+
import { t as T } from "./modal.CrMcpGz2.js";
|
|
18
|
+
import { t as E } from "./capitalize.BT_EavGy.js";
|
|
18
19
|
//#region ../../packages/atoms/src/components/drawer/drawer.styles.ts
|
|
19
|
-
var
|
|
20
|
+
var D = t`: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__header__content{flex:auto}.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);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__description{font-family:var(--font-family);font-size:var(--cx-font-size-small);color:var(--cx-color-neutral-700)}.drawer__description ::slotted(*){margin:0}.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--contained.drawer--ignore-parent-width.drawer--open{width:0;overflow:visible}.drawer--ignore-parent-width .drawer__panel{max-width:none}.drawer__overlay--disabled{display:none}@media (forced-colors:active){.drawer__panel{border:solid 1px var(--cx-color-neutral-0)}}`, O = 2e3, k = class extends o {
|
|
20
21
|
constructor(...e) {
|
|
21
|
-
super(...e), this.hasSlotController = new m(this, "description", "footer"), this.localize = new p(this), this.modal = new
|
|
22
|
+
super(...e), this.hasSlotController = new m(this, "description", "footer"), this.localize = new p(this), this.modal = new T(this), this.cancelDeferredInitialFocus = null, this.isClosing = !1, this.open = !1, this.label = "", this.placement = "end", this.contained = !1, this.ignoreParentWidth = !1, this.noHeader = !1, this.variant = "overlay", this.noCloseButton = !1, this.handleDocumentKeyDown = (e) => {
|
|
22
23
|
this.contained || e.key === "Escape" && this.modal.isActive() && this.open && (e.stopImmediatePropagation(), this.requestClose("keyboard"));
|
|
23
24
|
}, this.handleDocumentPointerDown = (e) => {
|
|
24
25
|
this.open && this.contained && this.ignoreParentWidth && (e.composedPath().includes(this.panel) || this.requestClose("overlay"));
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
|
-
static #e = this.styles = [c,
|
|
28
|
+
static #e = this.styles = [c, D];
|
|
28
29
|
static #t = this.dependencies = { "cx-icon-button": y };
|
|
29
30
|
connectedUpdatedCallback() {
|
|
30
|
-
this.drawer.hidden = !this.open, this.open && (this.addOpenListeners(), this.contained || (this.modal.activate(),
|
|
31
|
+
this.drawer.hidden = !this.open, this.open && (this.addOpenListeners(), this.contained || (this.modal.activate(), w(this)));
|
|
31
32
|
}
|
|
32
33
|
disconnectedCallback() {
|
|
33
|
-
super.disconnectedCallback(), this.modal.deactivate(), this.originalTrigger = null,
|
|
34
|
+
super.disconnectedCallback(), this.clearDeferredInitialFocus(), this.modal.deactivate(), this.originalTrigger = null, C(this), this.removeOpenListeners();
|
|
34
35
|
}
|
|
35
36
|
willUpdate(e) {
|
|
36
37
|
super.willUpdate(e), e.has("open") && (e.get("open") && !this.open ? this.isClosing = !0 : this.open && (this.isClosing = !1));
|
|
@@ -58,17 +59,17 @@ var E = t`:host{--size:25rem;--header-spacing:var(--cx-spacing-large);--body-spa
|
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
61
|
async handleOpenChange() {
|
|
61
|
-
if (this.open) {
|
|
62
|
-
this.emit("cx-show"), this.addOpenListeners(), this.originalTrigger = document.activeElement, this.contained || (this.modal.activate(),
|
|
62
|
+
if (this.clearDeferredInitialFocus(), this.open) {
|
|
63
|
+
this.emit("cx-show"), this.addOpenListeners(), this.originalTrigger = document.activeElement, this.contained || (this.modal.activate(), w(this));
|
|
63
64
|
let e = this.querySelector("[autofocus]");
|
|
64
65
|
e && e.removeAttribute("autofocus"), await Promise.all([u(this.drawer), u(this.overlay)]), this.drawer.hidden = !1, requestAnimationFrame(() => {
|
|
65
|
-
this.emit("cx-initial-focus", { cancelable: !0 }).defaultPrevented || (e
|
|
66
|
+
this.emit("cx-initial-focus", { cancelable: !0 }).defaultPrevented || this.focusInitialTarget(e ?? this.panel), e && e.setAttribute("autofocus", "");
|
|
66
67
|
});
|
|
67
|
-
let t = v(this, `drawer.show${
|
|
68
|
+
let t = v(this, `drawer.show${E(this.placement)}`, { dir: this.localize.dir() }), n = v(this, "drawer.overlay.show", { dir: this.localize.dir() });
|
|
68
69
|
await Promise.all([l(this.panel, t.keyframes, t.options), this.contained ? Promise.resolve() : l(this.overlay, n.keyframes, n.options)]), this.emit("cx-after-show");
|
|
69
70
|
} else {
|
|
70
|
-
this.emit("cx-hide"), this.removeOpenListeners(), this.contained || (this.modal.deactivate(),
|
|
71
|
-
let e = v(this, `drawer.hide${
|
|
71
|
+
this.emit("cx-hide"), this.removeOpenListeners(), this.contained || (this.modal.deactivate(), C(this)), await Promise.all([u(this.drawer), u(this.overlay)]);
|
|
72
|
+
let e = v(this, `drawer.hide${E(this.placement)}`, { dir: this.localize.dir() }), t = v(this, "drawer.overlay.hide", { dir: this.localize.dir() });
|
|
72
73
|
await Promise.all([(this.contained ? Promise.resolve() : l(this.overlay, t.keyframes, t.options)).then(() => {
|
|
73
74
|
this.overlay.hidden = !0;
|
|
74
75
|
}), l(this.panel, e.keyframes, e.options).then(() => {
|
|
@@ -79,7 +80,7 @@ var E = t`:host{--size:25rem;--header-spacing:var(--cx-spacing-large);--body-spa
|
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
82
|
handleNoModalChange() {
|
|
82
|
-
this.open && !this.contained && (this.modal.activate(),
|
|
83
|
+
this.open && !this.contained && (this.modal.activate(), w(this)), this.open && this.contained && (this.modal.deactivate(), C(this));
|
|
83
84
|
}
|
|
84
85
|
async show() {
|
|
85
86
|
if (!this.open) return this.open = !0, d(this, "cx-after-show");
|
|
@@ -93,6 +94,16 @@ var E = t`:host{--size:25rem;--header-spacing:var(--cx-spacing-large);--body-spa
|
|
|
93
94
|
handleCloseButtonClick() {
|
|
94
95
|
this.requestClose("close-button");
|
|
95
96
|
}
|
|
97
|
+
focusInitialTarget(e) {
|
|
98
|
+
if (this.clearDeferredInitialFocus(), typeof e.checkVisibility != "function" || e.checkVisibility({ visibilityProperty: !0 })) {
|
|
99
|
+
e.focus({ preventScroll: !0 });
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
this.cancelDeferredInitialFocus = S(e, O);
|
|
103
|
+
}
|
|
104
|
+
clearDeferredInitialFocus() {
|
|
105
|
+
this.cancelDeferredInitialFocus?.(), this.cancelDeferredInitialFocus = null;
|
|
106
|
+
}
|
|
96
107
|
render() {
|
|
97
108
|
let t = this.variant === "persistent";
|
|
98
109
|
return e`<div part="base" class=${g({
|
|
@@ -114,39 +125,39 @@ var E = t`:host{--size:25rem;--header-spacing:var(--cx-spacing-large);--body-spa
|
|
|
114
125
|
})} @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 ? "" : e`<header part="header" class="drawer__header"><div class="drawer__header__content"><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 : ""}</slot></h2>${x(this.hasSlotController.test("description"), () => e`<div part="description" class="drawer__description"><slot name="description"></slot></div>`)}</div><div part="header-actions" class="drawer__header-actions"><slot name="header-actions"></slot>${x(!this.noCloseButton, () => e`<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>`)}</div></header>`}<slot part="body" class="drawer__body"></slot><footer part="footer" class="drawer__footer"><slot name="footer"></slot></footer></div></div>`;
|
|
115
126
|
}
|
|
116
127
|
};
|
|
117
|
-
i([s(".drawer"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)],
|
|
128
|
+
i([s(".drawer"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], k.prototype, "drawer", void 0), i([s(".drawer__panel"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], k.prototype, "panel", void 0), i([s(".drawer__overlay"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], k.prototype, "overlay", void 0), i([r(), a("design:type", Object)], k.prototype, "isClosing", void 0), i([n({
|
|
118
129
|
reflect: !0,
|
|
119
130
|
type: Boolean
|
|
120
|
-
}), a("design:type", Object)],
|
|
131
|
+
}), a("design:type", Object)], k.prototype, "open", void 0), i([n({ reflect: !0 }), a("design:type", Object)], k.prototype, "label", void 0), i([n({ reflect: !0 }), a("design:type", String)], k.prototype, "placement", void 0), i([n({
|
|
121
132
|
reflect: !0,
|
|
122
133
|
type: Boolean
|
|
123
|
-
}), a("design:type", Object)],
|
|
134
|
+
}), a("design:type", Object)], k.prototype, "contained", void 0), i([n({
|
|
124
135
|
attribute: "ignore-parent-width",
|
|
125
136
|
reflect: !0,
|
|
126
137
|
type: Boolean
|
|
127
|
-
}), a("design:type", Object)],
|
|
138
|
+
}), a("design:type", Object)], k.prototype, "ignoreParentWidth", void 0), i([n({
|
|
128
139
|
attribute: "no-header",
|
|
129
140
|
reflect: !0,
|
|
130
141
|
type: Boolean
|
|
131
|
-
}), a("design:type", Object)],
|
|
142
|
+
}), a("design:type", Object)], k.prototype, "noHeader", void 0), i([n({
|
|
132
143
|
reflect: !0,
|
|
133
144
|
type: String
|
|
134
|
-
}), a("design:type", Object)],
|
|
145
|
+
}), a("design:type", Object)], k.prototype, "variant", void 0), i([n({
|
|
135
146
|
attribute: "no-close-button",
|
|
136
147
|
reflect: !0,
|
|
137
148
|
type: Boolean
|
|
138
|
-
}), a("design:type", Object)],
|
|
149
|
+
}), a("design:type", Object)], k.prototype, "noCloseButton", void 0), i([
|
|
139
150
|
h("open", { waitUntilFirstUpdate: !0 }),
|
|
140
151
|
a("design:type", Function),
|
|
141
152
|
a("design:paramtypes", []),
|
|
142
153
|
a("design:returntype", Promise)
|
|
143
|
-
],
|
|
154
|
+
], k.prototype, "handleOpenChange", null), i([
|
|
144
155
|
h("contained", { waitUntilFirstUpdate: !0 }),
|
|
145
156
|
a("design:type", Function),
|
|
146
157
|
a("design:paramtypes", []),
|
|
147
158
|
a("design:returntype", void 0)
|
|
148
|
-
],
|
|
149
|
-
var
|
|
159
|
+
], k.prototype, "handleNoModalChange", null), k = i([f("cx-drawer")], k);
|
|
160
|
+
var A = k;
|
|
150
161
|
_("drawer.showTop", {
|
|
151
162
|
keyframes: [{
|
|
152
163
|
opacity: 0,
|
|
@@ -286,4 +297,4 @@ _("drawer.showTop", {
|
|
|
286
297
|
options: { duration: 250 }
|
|
287
298
|
});
|
|
288
299
|
//#endregion
|
|
289
|
-
export {
|
|
300
|
+
export { A as t };
|
|
@@ -13,8 +13,8 @@ import { r as _, t as v } from "./animation-registry.DKd2AOcC.js";
|
|
|
13
13
|
import { t as y } from "./if-defined.B29V_rEp.js";
|
|
14
14
|
import { t as b } from "./focus-when-visible.DKscgyKo.js";
|
|
15
15
|
import { t as x } from "./tabbable.Bflg1dha.js";
|
|
16
|
-
import { t as S } from "./input.
|
|
17
|
-
import { t as C } from "./menu.
|
|
16
|
+
import { t as S } from "./input.w9KQVNnx.js";
|
|
17
|
+
import { t as C } from "./menu.EBYRr4cO.js";
|
|
18
18
|
import { t as w } from "./textarea.BgWdR_7D.js";
|
|
19
19
|
//#region ../../packages/utils/src/custom-element/escapable-overlays.ts
|
|
20
20
|
var T = [], E = class {
|
|
@@ -13,7 +13,7 @@ import { t as h } from "./button.Cgunf6cP.js";
|
|
|
13
13
|
import { t as g } from "./debounce.Ci-xdsHE.js";
|
|
14
14
|
import { t as _ } from "./repeat.CKv9FPlC.js";
|
|
15
15
|
import { n as v, t as y } from "./option.DckbOkYC.js";
|
|
16
|
-
import { t as b } from "./select.
|
|
16
|
+
import { t as b } from "./select.DALWjdGQ.js";
|
|
17
17
|
import { t as x } from "./map.ByDuLduF.js";
|
|
18
18
|
import { t as S } from "./keyed.zYwdaCfO.js";
|
|
19
19
|
import { t as C } from "./_baseIteratee.DWc2-Bvm.js";
|
|
@@ -20,21 +20,21 @@ import { t as S } from "./number.CNp5LKkv.js";
|
|
|
20
20
|
import { t as C } from "./typography.B0mkhqTB.js";
|
|
21
21
|
import { t as ie } from "./avatar.Ce0OZHBT.js";
|
|
22
22
|
import { t as w } from "./repeat.CKv9FPlC.js";
|
|
23
|
-
import { t as ae } from "./input.
|
|
23
|
+
import { t as ae } from "./input.w9KQVNnx.js";
|
|
24
24
|
import { t as oe } from "./option.DckbOkYC.js";
|
|
25
25
|
import { t as se } from "./space.Dd8jezXK.js";
|
|
26
|
-
import { t as ce } from "./select.
|
|
26
|
+
import { t as ce } from "./select.DALWjdGQ.js";
|
|
27
27
|
import { t as le } from "./tab.CyEGqvGj.js";
|
|
28
|
-
import { t as T } from "./tab-group.
|
|
28
|
+
import { t as T } from "./tab-group.CcMSN8AD.js";
|
|
29
29
|
import { t as ue } from "./tab-panel.BxeoKuSv.js";
|
|
30
|
-
import { t as E } from "./dialog.
|
|
30
|
+
import { t as E } from "./dialog.CfbeRoZl.js";
|
|
31
31
|
import { t as de } from "./divider.CqSNZCU8.js";
|
|
32
32
|
import { t as fe } from "./progress-bar.BJfkoZ6G.js";
|
|
33
33
|
import { o as D, u as O } from "./url.CZO_DV8Y.js";
|
|
34
34
|
import k from "../components/format-bytes.js";
|
|
35
35
|
import { t as pe } from "./relative-time.BSSaZxeD.js";
|
|
36
36
|
import { a as A, i as me, n as he, t as j } from "./tree.BJ6AVr2e.js";
|
|
37
|
-
import { t as ge } from "./confirm-popover.
|
|
37
|
+
import { t as ge } from "./confirm-popover.CAMfvSCb.js";
|
|
38
38
|
import { t as _e } from "./_baseIteratee.DWc2-Bvm.js";
|
|
39
39
|
import { t as ve } from "./choose.C2vpqhLc.js";
|
|
40
40
|
import { t as ye } from "./_baseXor.Ca5K0ORC.js";
|
|
@@ -16,9 +16,9 @@ import { t as x } from "./debounce.Ci-xdsHE.js";
|
|
|
16
16
|
import { t as S } from "./line-clamp.QYln-UUK.js";
|
|
17
17
|
import { t as C } from "./tag.DJEoemdS.js";
|
|
18
18
|
import { t as w } from "./repeat.CKv9FPlC.js";
|
|
19
|
-
import { t as T } from "./input.
|
|
19
|
+
import { t as T } from "./input.w9KQVNnx.js";
|
|
20
20
|
import { t as E } from "./space.Dd8jezXK.js";
|
|
21
|
-
import { t as D } from "./select.
|
|
21
|
+
import { t as D } from "./select.DALWjdGQ.js";
|
|
22
22
|
import { t as O } from "./template.Cyvih0XQ.js";
|
|
23
23
|
import { n as k } from "./asset-link-format.DhdgEsA0.js";
|
|
24
24
|
import { a as A, i as j } from "./tree.BJ6AVr2e.js";
|
|
@@ -2240,6 +2240,7 @@ i([s(".input__control"), a("design:type", typeof HTMLInputElement > "u" ? Object
|
|
|
2240
2240
|
type: String
|
|
2241
2241
|
}), a("design:type", String)], $.prototype, "autoCorrect", void 0), i([n(), a("design:type", Object)], $.prototype, "autocomplete", void 0), i([n({
|
|
2242
2242
|
attribute: "autofocus",
|
|
2243
|
+
reflect: !0,
|
|
2243
2244
|
type: Boolean
|
|
2244
2245
|
}), a("design:type", Boolean)], $.prototype, "autoFocus", void 0), i([n({
|
|
2245
2246
|
attribute: "enterkeyhint",
|
|
@@ -9,7 +9,7 @@ import { r as f, t as p } from "./menu-item.DcN5ujBQ.js";
|
|
|
9
9
|
//#region ../../packages/types/src/menu.ts
|
|
10
10
|
var m = /* @__PURE__ */ function(e) {
|
|
11
11
|
return e.Default = "default", e.Multiple = "multiple", e;
|
|
12
|
-
}({}), h = t`:host{background:var(--cx-panel-background-color);border:solid var(--cx-panel-border-width) var(--cx-panel-border-color);border-radius:var(--cx-panel-border-radius,var(--cx-border-radius-large));padding:var(--cx-panel-padding,var(--cx-spacing-x-small) 0);--divider-color:var(--cx-panel-border-color);--divider-width:var(--cx-panel-border-width);--divider-spacing:var(--cx-spacing-x-small);display:block;position:relative;overflow:auto}:host([horizontal]){padding:0 var(--cx-spacing-x-small);flex-wrap:wrap;justify-content:space-between;display:flex}::slotted(cx-divider){--color:var(--divider-color);--width:var(--divider-width);--spacing:var(--divider-spacing)}::slotted([data-alternating-grouping]):before{content:" ";background-color:var(--divider-color);margin:var(--divider-spacing) 0;height:var(--divider-width);display:block}::slotted([data-alternating-grouping=horizontal]):before{height:100%;margin:0 var(--divider-spacing);width:var(--divider-width);display:inline-block}:host([horizontal]) ::slotted(cx-menu-section){flex-wrap:wrap;justify-content:space-between;display:flex}:host([horizontal]) ::slotted(cx-menu-item){display:flex}:host([variant=multiple]){position:relative;overflow:hidden}:host([variant=multiple]) ::slotted(cx-menu[name]){opacity:0;pointer-events:none;transition:opacity var(--cx-transition-fast) ease-in-out, transform var(--cx-transition-medium) ease-in-out;border:none;top:0;left:0;transform:translate(-50%);position:absolute!important}:host([variant=multiple]) ::slotted(cx-menu[active]){opacity:1;pointer-events:auto;transform:translate(0)}.back__button::part(checked-icon),.back__button::part(submenu-icon){display:none}.back__divider{--spacing:var(--
|
|
12
|
+
}({}), h = t`:host{background:var(--cx-panel-background-color);border:solid var(--cx-panel-border-width) var(--cx-panel-border-color);border-radius:var(--cx-panel-border-radius,var(--cx-border-radius-large));padding:var(--cx-panel-padding,var(--cx-spacing-x-small) 0);--divider-color:var(--cx-panel-border-color);--divider-width:var(--cx-panel-border-width);--divider-spacing:var(--cx-menu-divider-spacing,var(--cx-spacing-x-small));display:block;position:relative;overflow:auto}:host([horizontal]){padding:0 var(--cx-spacing-x-small);flex-wrap:wrap;justify-content:space-between;display:flex}::slotted(cx-divider){--color:var(--divider-color);--width:var(--divider-width);--spacing:var(--divider-spacing)}::slotted([data-alternating-grouping]):before{content:" ";background-color:var(--divider-color);margin:var(--divider-spacing) 0;height:var(--divider-width);display:block}::slotted([data-alternating-grouping=horizontal]):before{height:100%;margin:0 var(--divider-spacing);width:var(--divider-width);display:inline-block}:host([horizontal]) ::slotted(cx-menu-section){flex-wrap:wrap;justify-content:space-between;display:flex}:host([horizontal]) ::slotted(cx-menu-item){display:flex}:host([variant=multiple]){position:relative;overflow:hidden}:host([variant=multiple]) ::slotted(cx-menu[name]){opacity:0;pointer-events:none;transition:opacity var(--cx-transition-fast) ease-in-out, transform var(--cx-transition-medium) ease-in-out;border:none;top:0;left:0;transform:translate(-50%);position:absolute!important}:host([variant=multiple]) ::slotted(cx-menu[active]){opacity:1;pointer-events:auto;transform:translate(0)}.back__button::part(checked-icon),.back__button::part(submenu-icon){display:none}.back__divider{--spacing:var(--divider-spacing)}`, g;
|
|
13
13
|
function _(e) {
|
|
14
14
|
return e.tagName.toLowerCase() === "cx-menu" && e instanceof v && e.getAttribute("role") === "menu" && !e.inert;
|
|
15
15
|
}
|
|
@@ -3,7 +3,7 @@ import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
|
|
|
3
3
|
import { t as o } from "./component.styles.0xM1ZmBs.js";
|
|
4
4
|
import { t as s } from "./custom-element.BEMYNDK1.js";
|
|
5
5
|
import { t as c } from "./repeat.CKv9FPlC.js";
|
|
6
|
-
import { t as l } from "./input.
|
|
6
|
+
import { t as l } from "./input.w9KQVNnx.js";
|
|
7
7
|
import { t as u } from "./parse.CDrJ-NY7.js";
|
|
8
8
|
import { t as d } from "./input-group.Dmd8XcxL.js";
|
|
9
9
|
//#region ../../packages/molecules/src/padding-input-group/padding-input-group.styles.ts
|
|
@@ -12,10 +12,10 @@ import { t as g } from "./tooltip.fZNjia6Z.js";
|
|
|
12
12
|
import { t as _ } from "./typography.B0mkhqTB.js";
|
|
13
13
|
import { t as v } from "./math.od1DVmRk.js";
|
|
14
14
|
import { t as y } from "./repeat.CKv9FPlC.js";
|
|
15
|
-
import { t as b } from "./input.
|
|
15
|
+
import { t as b } from "./input.w9KQVNnx.js";
|
|
16
16
|
import { t as x } from "./option.DckbOkYC.js";
|
|
17
17
|
import { t as S } from "./space.Dd8jezXK.js";
|
|
18
|
-
import { t as C } from "./select.
|
|
18
|
+
import { t as C } from "./select.DALWjdGQ.js";
|
|
19
19
|
//#region ../../packages/types/src/pagination.ts
|
|
20
20
|
var w = /* @__PURE__ */ function(e) {
|
|
21
21
|
return e.Both = "both", e.Pages = "pages", e.Rows = "rows", e;
|
|
@@ -379,7 +379,7 @@ var F = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
|
|
|
379
379
|
"select__display-input--large": this.size === "large",
|
|
380
380
|
"select__display-input--medium": this.size === "medium",
|
|
381
381
|
"select__display-input--small": this.size === "small"
|
|
382
|
-
})} type="text" placeholder=${this.placeholder} .disabled=${this.disabled} ?readonly=${this.inputBehavior === "none" && !this.allowFreetext} .value=${this.displayLabel} autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded=${this.open ? "true" : "false"} aria-haspopup="listbox" aria-label=${r ? void 0 : this.dataset.label} aria-labelledby="label" aria-disabled=${this.disabled ? "true" : "false"} aria-describedby="help-text" role="combobox" tabindex="0" @focus=${this.handleFocus} @input=${this.handleInput} @blur=${this.handleBlur}></span><input class="select__value-input" type="text" ?disabled=${this.disabled} ?required=${this.required} .value=${Array.isArray(this.value) ? this.value.join(", ") : this.value} tabindex="-1" aria-hidden="true" @focus=${this.focus} @invalid=${this.handleInvalid}>${x(this.loading, () => e`<cx-spinner part="spinner" role="status" aria-live="polite"></cx-spinner>`)}
|
|
382
|
+
})} type="text" placeholder=${c ? "" : this.placeholder} .disabled=${this.disabled} ?readonly=${this.inputBehavior === "none" && !this.allowFreetext} .value=${this.displayLabel} autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded=${this.open ? "true" : "false"} aria-haspopup="listbox" aria-label=${r ? void 0 : this.dataset.label} aria-labelledby="label" aria-disabled=${this.disabled ? "true" : "false"} aria-describedby="help-text" role="combobox" tabindex="0" @focus=${this.handleFocus} @input=${this.handleInput} @blur=${this.handleBlur}></span><input class="select__value-input" type="text" ?disabled=${this.disabled} ?required=${this.required} .value=${Array.isArray(this.value) ? this.value.join(", ") : this.value} tabindex="-1" aria-hidden="true" @focus=${this.focus} @invalid=${this.handleInvalid}>${x(this.loading, () => e`<cx-spinner part="spinner" role="status" aria-live="polite"></cx-spinner>`)}
|
|
383
383
|
${x(a, () => e`<button part="clear-button" class="select__clear" type="button" aria-label=${this.localize.term("clearEntry")} @mousedown=${this.handleClearMouseDown} @click=${this.handleClearClick} tabindex="-1"><slot name="clear-icon"><cx-icon name="cancel"></cx-icon></slot></button>`)}<slot name="suffix" part="suffix" class="select__suffix"></slot><slot name="expand-icon" part="expand-icon" class="select__expand-icon"><cx-icon name="arrow_drop_down"></cx-icon></slot></div><div id="listbox" role="listbox" aria-expanded=${this.open ? "true" : "false"} ?hidden=${!this.open || this.disabled} aria-multiselectable=${this.multiple ? "true" : "false"} aria-labelledby="label" part="listbox" class="select__listbox" tabindex="-1" @mouseup=${this.handleOptionClick} @slotchange=${this.handleDefaultSlotChange}><slot></slot>${x(this.shouldShowNoOptionsMessage, () => e`<cx-typography variant="body3" class="select__no-options" role="option">${this.noOptionText}</cx-typography>`)}</div></cx-popup></div><div part="form-control-help-text" id="help-text" class="form-control__help-text" aria-hidden=${i ? "false" : "true"}><slot name="help-text">${this.helpText}</slot></div></div>`;
|
|
384
384
|
}
|
|
385
385
|
};
|
|
@@ -3,10 +3,10 @@ import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
|
|
|
3
3
|
import { t as o } from "./component.styles.0xM1ZmBs.js";
|
|
4
4
|
import { t as s } from "./custom-element.BEMYNDK1.js";
|
|
5
5
|
import { t as c } from "./repeat.CKv9FPlC.js";
|
|
6
|
-
import { t as l } from "./input.
|
|
6
|
+
import { t as l } from "./input.w9KQVNnx.js";
|
|
7
7
|
import { t as u } from "./space.Dd8jezXK.js";
|
|
8
8
|
import { t as d } from "./input-group.Dmd8XcxL.js";
|
|
9
|
-
import { t as f } from "./bicolor-picker.
|
|
9
|
+
import { t as f } from "./bicolor-picker.B_VAZjuh.js";
|
|
10
10
|
//#region ../../packages/molecules/src/shadow-input-group/shadow-input-group.styles.ts
|
|
11
11
|
var p = t``, m = class extends a {
|
|
12
12
|
constructor(...e) {
|
|
@@ -9,9 +9,9 @@ import { t as f } from "./icon-button.Dd-oDRfX.js";
|
|
|
9
9
|
import { t as p } from "./when.BUskJLtZ.js";
|
|
10
10
|
import { t as m } from "./tooltip.fZNjia6Z.js";
|
|
11
11
|
import { t as h } from "./default-value.opqQgoRT.js";
|
|
12
|
-
import { t as g } from "./input.
|
|
12
|
+
import { t as g } from "./input.w9KQVNnx.js";
|
|
13
13
|
import { t as _ } from "./space.Dd8jezXK.js";
|
|
14
|
-
import { t as v } from "./select.
|
|
14
|
+
import { t as v } from "./select.DALWjdGQ.js";
|
|
15
15
|
//#region ../../packages/types/src/size-input-group.ts
|
|
16
16
|
var y = /* @__PURE__ */ function(e) {
|
|
17
17
|
return e.Percentage = "percentage", e.Pixel = "pixel", e;
|
|
@@ -23,28 +23,28 @@ import "./breadcrumb-item.nHAFmgtO.js";
|
|
|
23
23
|
import "./button-group.CPfXrqyq.js";
|
|
24
24
|
import "./card.3c-X4hqR.js";
|
|
25
25
|
import "./checkbox.aFoOxk2j.js";
|
|
26
|
-
import "./dropdown.
|
|
27
|
-
import "./input.
|
|
28
|
-
import "./menu.
|
|
26
|
+
import "./dropdown.BYtpn4Jt.js";
|
|
27
|
+
import "./input.w9KQVNnx.js";
|
|
28
|
+
import "./menu.EBYRr4cO.js";
|
|
29
29
|
import "./menu-item.DcN5ujBQ.js";
|
|
30
30
|
import "./textarea.BgWdR_7D.js";
|
|
31
31
|
import "./option.DckbOkYC.js";
|
|
32
32
|
import "./space.Dd8jezXK.js";
|
|
33
|
-
import "./select.
|
|
33
|
+
import "./select.DALWjdGQ.js";
|
|
34
34
|
import "./tab.CyEGqvGj.js";
|
|
35
|
-
import "./tab-group.
|
|
35
|
+
import "./tab-group.CcMSN8AD.js";
|
|
36
36
|
import "./tab-panel.BxeoKuSv.js";
|
|
37
37
|
import "./visually-hidden.Bv3SInZp.js";
|
|
38
|
-
import "./color-picker.
|
|
38
|
+
import "./color-picker.B6pXgpRC.js";
|
|
39
39
|
import "./copy-button.B4Q_8B50.js";
|
|
40
40
|
import "./date-calendar.Dc3XKO0t.js";
|
|
41
41
|
import "./details.BacO3ROq.js";
|
|
42
|
-
import "./dialog.
|
|
42
|
+
import "./dialog.CfbeRoZl.js";
|
|
43
43
|
import "./divider.CqSNZCU8.js";
|
|
44
44
|
import "./diff.DAFtnzhM.js";
|
|
45
|
-
import "./drawer.
|
|
45
|
+
import "./drawer.DdZl0Tae.js";
|
|
46
46
|
import "./progress-bar.BJfkoZ6G.js";
|
|
47
|
-
import "./document-viewer.
|
|
47
|
+
import "./document-viewer.BufAh9e4.js";
|
|
48
48
|
import "./image.WBQUoc3j.js";
|
|
49
49
|
import "./skeleton.BtwugOTG.js";
|
|
50
50
|
import "./dot-pagination.CH4nRyA8.js";
|
|
@@ -67,7 +67,7 @@ import "./markdown.C1P0ctPs.js";
|
|
|
67
67
|
import "./menu-label.B-FOyfAX.js";
|
|
68
68
|
import "./menu-section.BzzA6L5E.js";
|
|
69
69
|
import "./mutation-observer.CD5prBIP.js";
|
|
70
|
-
import "./pagination.
|
|
70
|
+
import "./pagination.D_Q1y6JJ.js";
|
|
71
71
|
import "./progress-ring.BSfnNF9M.js";
|
|
72
72
|
import "./qr-code.SwjFPrvB.js";
|
|
73
73
|
import "./radio.DhPbmKbQ.js";
|
|
@@ -78,8 +78,8 @@ import "./range.20iIQxEz.js";
|
|
|
78
78
|
import "./rating.BgUId4FT.js";
|
|
79
79
|
import "./relative-time.BSSaZxeD.js";
|
|
80
80
|
import "./split-panel.CVyqM2Dr.js";
|
|
81
|
-
import "./step.
|
|
82
|
-
import "./stepper.
|
|
81
|
+
import "./step.BOokySSD.js";
|
|
82
|
+
import "./stepper.OkhIGgAJ.js";
|
|
83
83
|
import "./switch.CBho2RVW.js";
|
|
84
84
|
import "./timecode.DME2imtx.js";
|
|
85
85
|
import "./tree.BJ6AVr2e.js";
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { c as e, d as t } from "./lit.CyJqR2kf.js";
|
|
2
|
+
import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
|
|
3
|
+
import { t as o } from "./query.B1yi7t71.js";
|
|
4
|
+
import { t as s } from "./component.styles.0xM1ZmBs.js";
|
|
5
|
+
import { t as c } from "./custom-element.BEMYNDK1.js";
|
|
6
|
+
import { t as l } from "./class-map.D8nsNOVJ.js";
|
|
7
|
+
import { t as u } from "./when.BUskJLtZ.js";
|
|
8
|
+
import { t as d } from "./icon.CeQpEaQz.js";
|
|
9
|
+
import { t as f } from "./style-map.DPGQIxip.js";
|
|
10
|
+
import { t as p } from "./tooltip.fZNjia6Z.js";
|
|
11
|
+
import { t as m } from "./line-clamp.QYln-UUK.js";
|
|
12
|
+
import { t as h } from "./progress-bar.BJfkoZ6G.js";
|
|
13
|
+
//#region ../../packages/atoms/src/components/step/step.styles.ts
|
|
14
|
+
var g = t`:host{--color:var(--color);flex:calc(100% / var(--columns) + var(--cx-spacing-small));margin-left:calc(-1 * var(--cx-spacing-small))}:host([round]){max-width:100%;margin-left:0}:host(:not([round])){flex-direction:column;display:flex}:host(:not([round])) .step-wrapper{flex-direction:column;flex:1;display:flex}:host(:not([round])) .step{flex:1}.step{font-family:var(--cx-font-sans);gap:var(--cx-spacing-x-small);width:100%;display:flex}.step__arrow{padding-top:var(--cx-spacing-x-small);padding-bottom:var(--cx-spacing-x-small);padding-left:var(--cx-spacing-x-large);padding-right:var(--cx-spacing-medium);background-color:var(--cx-color-neutral-100);cursor:pointer;clip-path:polygon(calc(100% - var(--cx-spacing-medium)) 0%, 100% 50%, calc(100% - var(--cx-spacing-medium)) 100%, 0% 100%, var(--cx-spacing-medium) 50%, 0% 0%);align-items:center;width:100%;display:inline-flex;position:relative}.step--first .step__arrow{clip-path:polygon(calc(100% - var(--cx-spacing-medium)) 0%, 100% 50%, calc(100% - var(--cx-spacing-medium)) 100%, 0% 100%, 0 50%, 0% 0%);border-top-left-radius:var(--cx-border-radius-large);border-bottom-left-radius:var(--cx-border-radius-large);padding-left:var(--cx-spacing-small)}.step--last .step__arrow{clip-path:polygon(100% 0, 100% 50%, 100% 100%, 0% 100%, var(--cx-spacing-medium) 50%, 0% 0%);border-top-right-radius:var(--cx-border-radius-large);border-bottom-right-radius:var(--cx-border-radius-large)}.step--first.step--last .step__arrow{clip-path:polygon(100% 0%,100% 50%,100% 100%,0% 100%,0 50%,0% 0%)}.step--active .step__arrow{background-color:light-dark(color-mix(in srgb, var(--color) 15%, white),color-mix(in srgb, var(--color) 30%, var(--cx-color-neutral-0)));cursor:default}.step--completed .step__arrow{background-color:var(--cx-color-neutral-50)}.step--disabled .step__arrow,.step--readonly .step__arrow{cursor:default}.step--disabled.step--has-description .step__arrow,.step--readonly.step--has-description .step__arrow,.step--active.step--has-description .step__arrow{cursor:help}.step__circle{background-color:color-mix(in srgb, var(--color) 15%, white);border:2px solid var(--color);border-radius:var(--cx-border-radius-circle);color:var(--color);font-weight:var(--cx-font-weight-semibold);flex:0 0 32px;justify-content:center;align-items:center;height:32px;display:flex;& cx-icon{font-size:var(--cx-font-size-medium)}}.step--round.step--active .step__circle,.step--round.step--completed .step__circle{background-color:var(--color);color:var(--cx-color-neutral-0)}.step--round.step--disabled .step__circle{background-color:var(--cx-color-neutral-0);border-color:var(--cx-color-neutral-400);color:var(--cx-color-neutral-400)}.step--round.step--error .step__circle{background-color:var(--cx-color-danger);border-color:var(--cx-color-danger);color:var(--cx-color-neutral-0)}.step__content{align-items:center;gap:var(--cx-spacing-x-small);max-width:100%;display:flex;position:relative}.step--round .step__content{flex-direction:column;justify-content:center;align-items:flex-start;gap:0}.step__content__prefix::slotted(cx-icon),.step__content__label{color:var(--cx-color-neutral-700);font-size:var(--cx-font-size-medium)}.step--active .step__content__label,.step--active .step__content__help-text,.step--active .step__content__prefix::slotted(cx-icon),.step--round.step--completed .step__content__label,.step--round.step--completed .step__content__help-text{color:var(--text-color,var(--color))}.step--disabled .step__content__label,.step--disabled .step__content__help-text,.step--disabled .step__content__prefix::slotted(cx-icon){color:var(--cx-color-neutral-400)}.step--error .step__content__label,.step--error .step__content__help-text{color:var(--cx-color-danger)}.step--round .step__content__progress{justify-content:center;align-items:center;gap:var(--cx-spacing-small);min-width:120px;line-height:1;display:flex}.step--round .step__content__progress__text{color:var(--color)}.step--round.step__content__help-text{color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-small);line-height:1}.step__line{background-color:var(--color);height:2rem;margin:var(--cx-spacing-medium) calc(32px / 2) 0;flex:1;width:2px}.step--last~.step__line{display:none}cx-progress-bar{--height:8px;flex:1}`, _ = class extends a {
|
|
15
|
+
static #e = this.styles = [s, g];
|
|
16
|
+
static #t = this.dependencies = {
|
|
17
|
+
"cx-icon": d,
|
|
18
|
+
"cx-line-clamp": m,
|
|
19
|
+
"cx-progress-bar": h,
|
|
20
|
+
"cx-tooltip": p
|
|
21
|
+
};
|
|
22
|
+
constructor() {
|
|
23
|
+
super(), this.active = !1, this.completed = !1, this.disabled = !1, this.readonly = !1, this.error = !1, this.index = 0, this.last = !1, this.helpText = "", this.progress = 0, this.color = "var(--cx-color-primary)", this.textColor = "", this.round = !1, this.description = "", this.labelLines = 2, this.renderDefaultStep = this.renderDefaultStep.bind(this), this.renderRoundStep = this.renderRoundStep.bind(this);
|
|
24
|
+
}
|
|
25
|
+
handleClick() {
|
|
26
|
+
this.disabled || this.active || this.readonly || this.emit("cx-step-select", { detail: { id: this.dataset.id } });
|
|
27
|
+
}
|
|
28
|
+
renderDefaultStep() {
|
|
29
|
+
return e`<div class="step__arrow"><div class="step__content"><slot name="prefix" class="step__content__prefix"></slot><cx-line-clamp .lines=${this.labelLines}><slot class="step__content__label"></slot></cx-line-clamp></div></div>`;
|
|
30
|
+
}
|
|
31
|
+
renderRoundStep() {
|
|
32
|
+
return e`<div class="step__circle">${this.completed ? e`<cx-icon name="check"></cx-icon>` : e`<div class="step__circle__number">${this.index + 1}</div>`}</div><div class="step__content"><slot class="step__content__label"></slot>${u(this.progress && this.progress > 0, () => e`<div class="step__content__progress"><cx-progress-bar value=${this.progress}></cx-progress-bar><div class="step__content__progress__text">${this.progress}%</div></div>`, () => e`
|
|
33
|
+
${u(this.helpText, () => e`<div class="step__content__help-text">${this.helpText}</div>`)}
|
|
34
|
+
`)}</div>`;
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return e`<cx-tooltip ?disabled=${!this.description.trim()} .content=${this.description} hoist><div class="step-wrapper" style=${f({
|
|
38
|
+
"--color": this.color,
|
|
39
|
+
"--text-color": this.textColor || this.color
|
|
40
|
+
})}><div part="base" aria-label="step" role="button" class=${l({
|
|
41
|
+
step: !0,
|
|
42
|
+
"step--active": this.active,
|
|
43
|
+
"step--completed": this.completed,
|
|
44
|
+
"step--disabled": this.disabled,
|
|
45
|
+
"step--error": this.error,
|
|
46
|
+
"step--first": this.index === 0,
|
|
47
|
+
"step--has-description": !!this.description.trim(),
|
|
48
|
+
"step--last": this.last,
|
|
49
|
+
"step--readonly": this.readonly,
|
|
50
|
+
"step--round": this.round
|
|
51
|
+
})} @click=${this.handleClick}>${u(this.round, this.renderRoundStep, this.renderDefaultStep)}</div>${u(this.round, () => e`<div class="step__line"></div>`)}</div></cx-tooltip>`;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
r([o("div[part=\"base\"]"), i("design:type", typeof HTMLDivElement > "u" ? Object : HTMLDivElement)], _.prototype, "step", void 0), r([n({
|
|
55
|
+
reflect: !0,
|
|
56
|
+
type: Boolean
|
|
57
|
+
}), i("design:type", Boolean)], _.prototype, "active", void 0), r([n({
|
|
58
|
+
reflect: !0,
|
|
59
|
+
type: Boolean
|
|
60
|
+
}), i("design:type", Boolean)], _.prototype, "completed", void 0), r([n({
|
|
61
|
+
reflect: !0,
|
|
62
|
+
type: Boolean
|
|
63
|
+
}), i("design:type", Boolean)], _.prototype, "disabled", void 0), r([n({
|
|
64
|
+
reflect: !0,
|
|
65
|
+
type: Boolean
|
|
66
|
+
}), i("design:type", Boolean)], _.prototype, "readonly", void 0), r([n({
|
|
67
|
+
reflect: !0,
|
|
68
|
+
type: Boolean
|
|
69
|
+
}), i("design:type", Boolean)], _.prototype, "error", void 0), r([n({ type: Number }), i("design:type", Number)], _.prototype, "index", void 0), r([n({ type: Boolean }), i("design:type", Boolean)], _.prototype, "last", void 0), r([n({
|
|
70
|
+
attribute: "help-text",
|
|
71
|
+
reflect: !0,
|
|
72
|
+
type: String
|
|
73
|
+
}), i("design:type", String)], _.prototype, "helpText", void 0), r([n({
|
|
74
|
+
reflect: !0,
|
|
75
|
+
type: Number
|
|
76
|
+
}), i("design:type", Number)], _.prototype, "progress", void 0), r([n({
|
|
77
|
+
reflect: !0,
|
|
78
|
+
type: String
|
|
79
|
+
}), i("design:type", String)], _.prototype, "color", void 0), r([n({
|
|
80
|
+
attribute: "text-color",
|
|
81
|
+
reflect: !0,
|
|
82
|
+
type: String
|
|
83
|
+
}), i("design:type", String)], _.prototype, "textColor", void 0), r([n({
|
|
84
|
+
reflect: !0,
|
|
85
|
+
type: Boolean
|
|
86
|
+
}), i("design:type", Boolean)], _.prototype, "round", void 0), r([n({
|
|
87
|
+
attribute: "description",
|
|
88
|
+
reflect: !0,
|
|
89
|
+
type: String
|
|
90
|
+
}), i("design:type", String)], _.prototype, "description", void 0), r([n({
|
|
91
|
+
attribute: "label-lines",
|
|
92
|
+
type: Number
|
|
93
|
+
}), i("design:type", Number)], _.prototype, "labelLines", void 0), _ = r([c("cx-step"), i("design:paramtypes", [])], _);
|
|
94
|
+
var v = _;
|
|
95
|
+
//#endregion
|
|
96
|
+
export { v as t };
|
|
@@ -7,12 +7,12 @@ import { t as l } from "./icon.CeQpEaQz.js";
|
|
|
7
7
|
import { t as u } from "./style-map.DPGQIxip.js";
|
|
8
8
|
import { t as d } from "./resize-observer.D9EHlnZI.js";
|
|
9
9
|
import { t as f } from "./repeat.CKv9FPlC.js";
|
|
10
|
-
import { t as p } from "./step.
|
|
11
|
-
import { t as m } from "./stepper.
|
|
10
|
+
import { t as p } from "./step.BOokySSD.js";
|
|
11
|
+
import { t as m } from "./stepper.OkhIGgAJ.js";
|
|
12
12
|
//#region ../../packages/molecules/src/stepper-wizard/stepper-wizard.styles.ts
|
|
13
13
|
var h = t`:host{display:block}`, g = class extends a {
|
|
14
14
|
constructor(...e) {
|
|
15
|
-
super(...e), this.data = [], this.maxWidth = 280, this.minWidth = 178, this.disabled = !1;
|
|
15
|
+
super(...e), this.data = [], this.maxWidth = 280, this.minWidth = 178, this.disabled = !1, this.labelLines = 2;
|
|
16
16
|
}
|
|
17
17
|
static #e = this.styles = [o, h];
|
|
18
18
|
static #t = this.dependencies = {
|
|
@@ -33,7 +33,7 @@ var h = t`:host{display:block}`, g = class extends a {
|
|
|
33
33
|
this.requestUpdate("columnCount");
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return e`<cx-resize-observer @cx-resize=${this.handleResize}><div><cx-stepper items-per-row=${this.columnCount}>${f(this.data, (e) => e.id, (t) => e`<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} .textColor=${t.textColor ?? ""} .description=${t.description ?? ""} style=${u({
|
|
36
|
+
return e`<cx-resize-observer @cx-resize=${this.handleResize}><div><cx-stepper items-per-row=${this.columnCount}>${f(this.data, (e) => e.id, (t) => e`<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} .textColor=${t.textColor ?? ""} .description=${t.description ?? ""} .labelLines=${this.labelLines} style=${u({
|
|
37
37
|
maxWidth: `${this.maxWidth}px`,
|
|
38
38
|
minWidth: `${this.minWidth}px`
|
|
39
39
|
})}>${c(t.state === "Done", () => e`<cx-icon slot="prefix" variant="filled" name="check_circle"></cx-icon>`, () => e`${c(t.icon, () => e`<cx-icon slot="prefix" variant=${t.iconVariant || "outlined"} name=${t.icon}></cx-icon>`)}`)}
|
|
@@ -51,7 +51,10 @@ r([n({ type: Array }), i("design:type", Array)], g.prototype, "data", void 0), r
|
|
|
51
51
|
}), i("design:type", Number)], g.prototype, "minWidth", void 0), r([n({
|
|
52
52
|
reflect: !0,
|
|
53
53
|
type: Boolean
|
|
54
|
-
}), i("design:type", Boolean)], g.prototype, "disabled", void 0),
|
|
54
|
+
}), i("design:type", Boolean)], g.prototype, "disabled", void 0), r([n({
|
|
55
|
+
attribute: "label-lines",
|
|
56
|
+
type: Number
|
|
57
|
+
}), i("design:type", Number)], g.prototype, "labelLines", void 0), g = r([s("cx-stepper-wizard")], g);
|
|
55
58
|
var _ = g;
|
|
56
59
|
//#endregion
|
|
57
60
|
export { _ as t };
|
|
@@ -6,7 +6,7 @@ import { t as c } from "./custom-element.BEMYNDK1.js";
|
|
|
6
6
|
import { t as l } from "./watch.Ub5r8btz.js";
|
|
7
7
|
import { t as u } from "./class-map.D8nsNOVJ.js";
|
|
8
8
|
import { t as d } from "./style-map.DPGQIxip.js";
|
|
9
|
-
import { t as f } from "./step.
|
|
9
|
+
import { t as f } from "./step.BOokySSD.js";
|
|
10
10
|
//#region ../../packages/atoms/src/components/stepper/stepper.styles.ts
|
|
11
11
|
var p = t`.stepper{row-gap:var(--cx-spacing-2x-small);flex-wrap:wrap;max-width:100%;display:flex}.stepper--vertical{flex-direction:column}`, m = class extends a {
|
|
12
12
|
constructor(...e) {
|
|
@@ -14,8 +14,8 @@ import { t as _ } from "./style-map.DPGQIxip.js";
|
|
|
14
14
|
import { t as v } from "./button.Cgunf6cP.js";
|
|
15
15
|
import { d as y } from "./dom.BsVeSE01.js";
|
|
16
16
|
import { t as b } from "./resize-observer.D9EHlnZI.js";
|
|
17
|
-
import { t as x } from "./dropdown.
|
|
18
|
-
import { t as S } from "./menu.
|
|
17
|
+
import { t as x } from "./dropdown.BYtpn4Jt.js";
|
|
18
|
+
import { t as S } from "./menu.EBYRr4cO.js";
|
|
19
19
|
import { t as C } from "./menu-item.DcN5ujBQ.js";
|
|
20
20
|
import { n as w } from "./scroll.CEH_a4pm.js";
|
|
21
21
|
import { t as T } from "./tab.CyEGqvGj.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/asset-link-format.
|
|
1
|
+
import { t as e } from "../chunks/asset-link-format.TGRmDDv4.js";
|
|
2
2
|
export { e as default };
|