@orangelogic/design-system 2.60.0 → 2.61.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/apps/cortex/src/types.d.ts +2 -0
- package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
- package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
- package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
- package/library/chunks/animate.El-MpOws.js +37 -0
- package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
- package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
- package/library/chunks/array.DCtvHiLS.js +81 -0
- package/library/chunks/asset.CG_yXtWK.js +288 -0
- package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
- package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
- package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
- package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
- package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
- package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
- package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
- package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
- package/library/chunks/color.vLD2sNTs.js +164 -0
- package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
- package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
- package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
- package/library/chunks/converters.DkDtLstb.js +11 -0
- package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
- package/library/chunks/custom-element.L4WJXn1j.js +14 -0
- package/library/chunks/debounce.DaHuiSGU.js +15 -0
- package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
- package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
- package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
- package/library/chunks/dom.CZrJ64Dm.js +92 -0
- package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
- package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
- package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
- package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
- package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
- package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
- package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
- package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
- package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
- package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
- package/library/chunks/identity.ByMq8VxU.js +6 -0
- package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
- package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
- package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
- package/library/chunks/image.mbpyiQpQ.js +82 -0
- package/library/chunks/index.S0wy3rzm.js +373 -0
- package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
- package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
- package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
- package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
- package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
- package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
- package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
- package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
- package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
- package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
- package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
- package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
- package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
- package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
- package/library/chunks/responsive.CA6dcNiM.js +17 -0
- package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
- package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
- package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
- package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
- package/library/chunks/string.Cp_XNbnV.js +160 -0
- package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
- package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
- package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
- package/library/chunks/template.CsJd8Pb_.js +20 -0
- package/library/chunks/time.D_uFZqqe.js +118 -0
- package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
- package/library/chunks/toast.BXNbwZV8.js +25 -0
- package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
- package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
- package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
- package/library/chunks/url.LjsR2sB5.js +15 -0
- package/library/chunks/user-agent.D9aPuOyL.js +4 -0
- package/library/chunks/watch.q1sEjPWL.js +501 -0
- package/library/components/alert.js +38 -35
- package/library/components/animated-image.js +25 -23
- package/library/components/animation.js +7 -5
- package/library/components/array-line-clamp.d.ts +3 -0
- package/library/components/array-line-clamp.js +195 -0
- package/library/components/asset-link-format.js +223 -212
- package/library/components/atoms.js +164 -162
- package/library/components/avatar.js +28 -26
- package/library/components/badge.js +10 -8
- package/library/components/bicolor-picker.js +21 -19
- package/library/components/border-input-group.js +11 -9
- package/library/components/breadcrumb-item.js +14 -12
- package/library/components/breadcrumb.js +24 -22
- package/library/components/button-group.js +26 -24
- package/library/components/button.js +14 -13
- package/library/components/card.js +28 -19
- package/library/components/checkbox.js +29 -23
- package/library/components/color-picker.js +19 -17
- package/library/components/color-swatch-group.js +20 -17
- package/library/components/color-swatch.js +16 -13
- package/library/components/confirm-popover.js +11 -9
- package/library/components/copy-button.js +15 -13
- package/library/components/corner-position-input-group.js +13 -11
- package/library/components/cortex-element.d.ts +3 -0
- package/library/components/cortex-element.js +5 -0
- package/library/components/cropper.js +7 -5
- package/library/components/details.js +23 -20
- package/library/components/dialog.js +19 -16
- package/library/components/divider.js +13 -11
- package/library/components/dot-pagination.js +11 -9
- package/library/components/dot-status.js +10 -8
- package/library/components/drawer.js +63 -51
- package/library/components/dropdown.js +29 -26
- package/library/components/dynamic-select.js +12 -10
- package/library/components/element-clamp.js +28 -25
- package/library/components/file-on-demand.js +21 -20
- package/library/components/folder-select.js +12 -10
- package/library/components/format-bytes.js +11 -10
- package/library/components/format-date.js +11 -9
- package/library/components/format-number.js +16 -15
- package/library/components/format-time.js +118 -9
- package/library/components/grid-item.js +48 -46
- package/library/components/grid.js +31 -29
- package/library/components/header.js +10 -9
- package/library/components/hub-connection.js +6 -5
- package/library/components/icon-button.js +20 -18
- package/library/components/icon.js +17 -15
- package/library/components/iframe.js +10 -8
- package/library/components/image-comparer.js +27 -25
- package/library/components/image.js +14 -11
- package/library/components/include.js +26 -24
- package/library/components/input-group.js +15 -13
- package/library/components/input.js +23 -21
- package/library/components/line-clamp.js +12 -10
- package/library/components/list-editor.js +17 -15
- package/library/components/markdown.js +80 -78
- package/library/components/masonry.js +46 -44
- package/library/components/menu-item.js +151 -136
- package/library/components/menu-label.js +15 -13
- package/library/components/menu-section.js +18 -16
- package/library/components/menu.js +10 -8
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +12 -10
- package/library/components/option.js +10 -8
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +30 -28
- package/library/components/pagination.js +14 -12
- package/library/components/popup.js +3296 -9
- package/library/components/position-picker.js +12 -10
- package/library/components/progress-bar.js +13 -11
- package/library/components/progress-ring.js +15 -13
- package/library/components/qr-code.js +54 -52
- package/library/components/radio-button.js +19 -17
- package/library/components/radio-card.js +14 -12
- package/library/components/radio-group.js +20 -18
- package/library/components/radio.js +15 -13
- package/library/components/range.js +25 -23
- package/library/components/rating.js +17 -15
- package/library/components/relative-time.js +16 -14
- package/library/components/resize-observer.js +21 -19
- package/library/components/select.js +1442 -25
- package/library/components/shadow-input-group.js +19 -17
- package/library/components/share-option-list.js +20 -18
- package/library/components/sidebar.js +14 -12
- package/library/components/size-input-group.js +35 -33
- package/library/components/skeleton.js +12 -10
- package/library/components/space.js +12 -10
- package/library/components/spinner.js +17 -15
- package/library/components/split-panel.js +15 -13
- package/library/components/step.js +18 -16
- package/library/components/stepper-wizard.js +11 -9
- package/library/components/stepper.js +13 -11
- package/library/components/switch.js +21 -19
- package/library/components/tab-group.js +15 -13
- package/library/components/tab-panel.js +20 -18
- package/library/components/tab.js +18 -16
- package/library/components/table.js +69 -67
- package/library/components/tag.js +11 -9
- package/library/components/textarea.js +20 -18
- package/library/components/timecode.js +98 -8
- package/library/components/tooltip.js +24 -21
- package/library/components/tree-item.js +14 -11
- package/library/components/tree.js +12 -10
- package/library/components/typeface.js +13 -11
- package/library/components/types.js +15487 -15444
- package/library/components/typography.js +6 -4
- package/library/components/video.js +13 -11
- package/library/components/visually-hidden.js +15 -13
- package/library/events.d.ts +1 -0
- package/library/events.js +1 -0
- package/library/package.json +11 -2
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
- package/library/packages/atoms/src/components/include/include.d.ts +1 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
- package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
- package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +6 -2
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
- package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
- package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
- package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
- package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
- package/library/packages/services/src/api/folder/folder.d.ts +4 -8
- package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
- package/library/packages/types/src/file-on-demand.d.ts +4 -0
- package/library/packages/types/src/folder-select.d.ts +9 -2
- package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
- package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
- package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
- package/library/packages/utils/src/font/font.d.ts +26 -0
- package/library/packages/utils/src/font/index.d.ts +1 -0
- package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
- package/library/packages/utils/src/history-manager/index.d.ts +1 -0
- package/library/packages/utils/src/index.d.ts +45 -0
- package/library/packages/utils/src/template/index.d.ts +1 -0
- package/library/packages/utils/src/template/template.d.ts +3 -0
- package/library/react-web-component.d.ts +418 -360
- package/library/utils.d.ts +1 -0
- package/library/utils.js +180 -0
- package/package.json +11 -2
- package/library/chunks/animation-registry.DavRkTTr.js +0 -69
- package/library/chunks/asset.Ba-CxnNM.js +0 -309
- package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
- package/library/chunks/dom.C0OFx7ND.js +0 -78
- package/library/chunks/format-time.BW6-ZWCX.js +0 -226
- package/library/chunks/isObjectLike.z36Fu426.js +0 -34
- package/library/chunks/popup._w5T7x8f.js +0 -3307
- package/library/chunks/select.DfO4de04.js +0 -1441
- package/library/chunks/string.BCk3SmdZ.js +0 -144
- package/library/chunks/timecode.D7XTiQ_3.js +0 -105
- package/library/chunks/watch.BCJD77bD.js +0 -547
- package/library/packages/events/src/cx-load-more.d.ts +0 -8
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import u from "./input.js";
|
|
2
2
|
import l from "./input-group.js";
|
|
3
3
|
import m from "./space.js";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { c as
|
|
7
|
-
import { c as
|
|
8
|
-
|
|
4
|
+
import { n as h, C as x } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
5
|
+
import f from "./bicolor-picker.js";
|
|
6
|
+
import { c as d } from "../chunks/component.styles.DMSLciL5.js";
|
|
7
|
+
import { c as g } from "../chunks/custom-element.L4WJXn1j.js";
|
|
8
|
+
import { i as v, x as c } from "../chunks/lit-element.jLBm65_O.js";
|
|
9
|
+
import { c as b } from "../chunks/repeat.DbF2p5ae.js";
|
|
10
|
+
const $ = v``;
|
|
9
11
|
var C = Object.defineProperty, w = Object.getOwnPropertyDescriptor, p = (r, e, o, t) => {
|
|
10
|
-
for (var a = t > 1 ? void 0 : t ? w(e, o) : e, n = r.length - 1,
|
|
11
|
-
(
|
|
12
|
+
for (var a = t > 1 ? void 0 : t ? w(e, o) : e, n = r.length - 1, s; n >= 0; n--)
|
|
13
|
+
(s = r[n]) && (a = (t ? s(e, o, a) : s(a)) || a);
|
|
12
14
|
return t && a && C(e, o, a), a;
|
|
13
15
|
};
|
|
14
|
-
let
|
|
16
|
+
let i = class extends x {
|
|
15
17
|
constructor() {
|
|
16
18
|
super(...arguments), this.value = [
|
|
17
19
|
"0",
|
|
@@ -83,15 +85,15 @@ let s = class extends d {
|
|
|
83
85
|
</cx-space>`;
|
|
84
86
|
}
|
|
85
87
|
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"cx-bi-color-picker":
|
|
88
|
+
i.styles = [d, $];
|
|
89
|
+
i.dependencies = {
|
|
90
|
+
"cx-bi-color-picker": f,
|
|
89
91
|
"cx-input": u,
|
|
90
92
|
"cx-input-group": l,
|
|
91
93
|
"cx-space": m
|
|
92
94
|
};
|
|
93
95
|
p([
|
|
94
|
-
|
|
96
|
+
h({
|
|
95
97
|
converter: {
|
|
96
98
|
fromAttribute: (r) => {
|
|
97
99
|
const e = (r ?? "").split(" ");
|
|
@@ -108,10 +110,10 @@ p([
|
|
|
108
110
|
},
|
|
109
111
|
type: String
|
|
110
112
|
})
|
|
111
|
-
],
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
],
|
|
113
|
+
], i.prototype, "value", 2);
|
|
114
|
+
i = p([
|
|
115
|
+
g("cx-shadow-input-group")
|
|
116
|
+
], i);
|
|
115
117
|
export {
|
|
116
|
-
|
|
118
|
+
i as default
|
|
117
119
|
};
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import _ from "./icon.js";
|
|
2
2
|
import I from "./resize-observer.js";
|
|
3
|
-
import {
|
|
4
|
-
import { c as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { n as h, C as P } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
4
|
+
import { c as C } from "../chunks/component.styles.DMSLciL5.js";
|
|
5
|
+
import { c as O } from "../chunks/animate.El-MpOws.js";
|
|
6
|
+
import { c as w } from "../chunks/custom-element.L4WJXn1j.js";
|
|
7
|
+
import { L as E } from "../chunks/i18n.DrzK7TPf.js";
|
|
7
8
|
import { c as b } from "../chunks/math.DqTA6ya4.js";
|
|
8
|
-
import { w as m } from "../chunks/watch.
|
|
9
|
-
import { c as x } from "../chunks/dom.
|
|
10
|
-
import {
|
|
9
|
+
import { w as m } from "../chunks/watch.q1sEjPWL.js";
|
|
10
|
+
import { c as x } from "../chunks/dom.CZrJ64Dm.js";
|
|
11
|
+
import { i as z, x as g } from "../chunks/lit-element.jLBm65_O.js";
|
|
12
|
+
import { r as v } from "../chunks/state.CSDxrqLd.js";
|
|
11
13
|
import { t as L } from "../chunks/event-options.CYHYGOd8.js";
|
|
12
14
|
import { e as S } from "../chunks/query.BBf1UFkC.js";
|
|
13
|
-
import { e as u } from "../chunks/class-map.
|
|
14
|
-
import { c as M } from "../chunks/repeat.
|
|
15
|
-
import { o as k } from "../chunks/style-map.
|
|
15
|
+
import { e as u } from "../chunks/class-map.BiVq-cVR.js";
|
|
16
|
+
import { c as M } from "../chunks/repeat.DbF2p5ae.js";
|
|
17
|
+
import { o as k } from "../chunks/style-map.llVFPd__.js";
|
|
16
18
|
import { n as $ } from "../chunks/when.Dr1es41R.js";
|
|
17
19
|
import T from "./tooltip.js";
|
|
18
|
-
import { C as A } from "../chunks/typography.
|
|
19
|
-
import { H as R } from "../chunks/slot.
|
|
20
|
+
import { C as A } from "../chunks/typography.oDzoLbZS.js";
|
|
21
|
+
import { H as R } from "../chunks/slot.j5oheLJC.js";
|
|
20
22
|
const N = (e, t) => {
|
|
21
23
|
let i = 0;
|
|
22
24
|
return function(...s) {
|
|
@@ -66,7 +68,7 @@ if (!U) {
|
|
|
66
68
|
}
|
|
67
69
|
);
|
|
68
70
|
}
|
|
69
|
-
const D =
|
|
71
|
+
const D = z`
|
|
70
72
|
:host {
|
|
71
73
|
display: block;
|
|
72
74
|
}
|
|
@@ -114,7 +116,7 @@ var B = Object.defineProperty, j = Object.getOwnPropertyDescriptor, p = (e, t, i
|
|
|
114
116
|
(r = e[n]) && (o = (s ? r(t, i, o) : r(o)) || o);
|
|
115
117
|
return s && o && B(t, i, o), o;
|
|
116
118
|
};
|
|
117
|
-
let d = class extends
|
|
119
|
+
let d = class extends P {
|
|
118
120
|
constructor() {
|
|
119
121
|
super(...arguments), this.hasSlotController = new R(this, "[default]"), this.disabled = !1, this.icon = "", this.tooltip = "", this.selected = !1, this.value = "", this.processedIcon = "";
|
|
120
122
|
}
|
|
@@ -163,7 +165,7 @@ let d = class extends C {
|
|
|
163
165
|
</div>`;
|
|
164
166
|
}
|
|
165
167
|
};
|
|
166
|
-
d.styles = [
|
|
168
|
+
d.styles = [C, D];
|
|
167
169
|
d.dependencies = {
|
|
168
170
|
"cx-icon": _,
|
|
169
171
|
"cx-tooltip": T,
|
|
@@ -193,7 +195,7 @@ p([
|
|
|
193
195
|
d = p([
|
|
194
196
|
w("cx-share-option-list-item")
|
|
195
197
|
], d);
|
|
196
|
-
const V =
|
|
198
|
+
const V = z`
|
|
197
199
|
:host {
|
|
198
200
|
--border: none;
|
|
199
201
|
--border-radius: var(--cx-border-radius-small);
|
|
@@ -365,7 +367,7 @@ var G = Object.defineProperty, H = Object.getOwnPropertyDescriptor, a = (e, t, i
|
|
|
365
367
|
(r = e[n]) && (o = (s ? r(t, i, o) : r(o)) || o);
|
|
366
368
|
return s && o && G(t, i, o), o;
|
|
367
369
|
};
|
|
368
|
-
let l = class extends
|
|
370
|
+
let l = class extends P {
|
|
369
371
|
constructor() {
|
|
370
372
|
super(...arguments), this.data = [], this.navigation = void 0, this.orientation = "horizontal", this.slidesPerPage = 1, this.slidesPerMove = 1, this.selectedItem = "", this.currentSlide = 0, this.activeSlide = 0, this.scrolling = !1, this.calculatedSlidesPerPage = 0, this.localize = new E(this), this.pendingSlideChange = !1, this.slideObserver = null, this.slidesCache = null, this.handleSlotChange = (e) => {
|
|
371
373
|
this.invalidateSlidesCache(), e.some(
|
|
@@ -696,7 +698,7 @@ let l = class extends C {
|
|
|
696
698
|
`;
|
|
697
699
|
}
|
|
698
700
|
};
|
|
699
|
-
l.styles = [
|
|
701
|
+
l.styles = [C, V];
|
|
700
702
|
l.dependencies = {
|
|
701
703
|
"cx-icon": _,
|
|
702
704
|
"cx-resize-observer": I,
|
|
@@ -2,15 +2,17 @@ import b from "./divider.js";
|
|
|
2
2
|
import v from "./icon.js";
|
|
3
3
|
import u from "./icon-button.js";
|
|
4
4
|
import _ from "./resize-observer.js";
|
|
5
|
-
import {
|
|
6
|
-
import { c as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { n, C as m } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
|
+
import { c as f } from "../chunks/component.styles.DMSLciL5.js";
|
|
7
|
+
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
8
|
+
import { d as y } from "../chunks/drag.DXEXVXPv.js";
|
|
9
|
+
import { H as C } from "../chunks/slot.j5oheLJC.js";
|
|
10
|
+
import { w as g } from "../chunks/watch.q1sEjPWL.js";
|
|
11
|
+
import { i as z, E as h, x as l } from "../chunks/lit-element.jLBm65_O.js";
|
|
12
|
+
import { r as w } from "../chunks/state.CSDxrqLd.js";
|
|
11
13
|
import { e as $ } from "../chunks/query.BBf1UFkC.js";
|
|
12
|
-
import { e as p } from "../chunks/class-map.
|
|
13
|
-
const k =
|
|
14
|
+
import { e as p } from "../chunks/class-map.BiVq-cVR.js";
|
|
15
|
+
const k = z`
|
|
14
16
|
/* Host styles */
|
|
15
17
|
:host {
|
|
16
18
|
display: block;
|
|
@@ -182,9 +184,9 @@ var S = Object.defineProperty, D = Object.getOwnPropertyDescriptor, r = (e, o, t
|
|
|
182
184
|
(c = e[d]) && (s = (a ? c(o, t, s) : c(s)) || s);
|
|
183
185
|
return a && s && S(o, t, s), s;
|
|
184
186
|
};
|
|
185
|
-
let i = class extends
|
|
187
|
+
let i = class extends m {
|
|
186
188
|
constructor() {
|
|
187
|
-
super(), this.side = "left", this.open = !1, this.collapsible = !1, this.resizable = !1, this.state = "idle", this.hasSlotController = new
|
|
189
|
+
super(), this.side = "left", this.open = !1, this.collapsible = !1, this.resizable = !1, this.state = "idle", this.hasSlotController = new C(this, "header"), this.handleSizeChange = this.handleSizeChange.bind(this);
|
|
188
190
|
}
|
|
189
191
|
handleStateChange() {
|
|
190
192
|
this.state === "dragging" ? document.body.style.cursor = "col-resize" : document.body.style.cursor = "";
|
|
@@ -196,7 +198,7 @@ let i = class extends f {
|
|
|
196
198
|
super.connectedCallback(), this.slot === "left" ? this.side = "left" : this.slot === "right" && (this.side = "right"), this.collapsible || (this.open = !0);
|
|
197
199
|
}
|
|
198
200
|
handleDrag(e) {
|
|
199
|
-
this.resizable && (e.cancelable && e.preventDefault(), this.state = "dragging",
|
|
201
|
+
this.resizable && (e.cancelable && e.preventDefault(), this.state = "dragging", y(this, {
|
|
200
202
|
initialEvent: e,
|
|
201
203
|
onMove: (o) => {
|
|
202
204
|
let t = o;
|
|
@@ -283,7 +285,7 @@ let i = class extends f {
|
|
|
283
285
|
</div>`;
|
|
284
286
|
}
|
|
285
287
|
};
|
|
286
|
-
i.styles = [
|
|
288
|
+
i.styles = [f, k];
|
|
287
289
|
i.dependencies = {
|
|
288
290
|
"cx-divider": b,
|
|
289
291
|
"cx-icon": v,
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import x from "./icon-button.js";
|
|
2
2
|
import d from "./input.js";
|
|
3
|
-
import
|
|
3
|
+
import g from "./select.js";
|
|
4
4
|
import v from "./space.js";
|
|
5
5
|
import k from "./tooltip.js";
|
|
6
|
-
import {
|
|
7
|
-
import { c as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { n as u, C as P } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
7
|
+
import { c as $ } from "../chunks/component.styles.DMSLciL5.js";
|
|
8
|
+
import { c as b } from "../chunks/custom-element.L4WJXn1j.js";
|
|
9
|
+
import { d as _ } from "../chunks/default-value.COZopaet.js";
|
|
10
|
+
import { L as y } from "../chunks/i18n.DrzK7TPf.js";
|
|
11
|
+
import { w as V } from "../chunks/watch.q1sEjPWL.js";
|
|
12
|
+
import { i as w, x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
13
|
+
import { r as c } from "../chunks/state.CSDxrqLd.js";
|
|
12
14
|
import { e as m } from "../chunks/query.BBf1UFkC.js";
|
|
13
|
-
import { n as
|
|
15
|
+
import { n as f } from "../chunks/when.Dr1es41R.js";
|
|
14
16
|
var i = /* @__PURE__ */ ((t) => (t.Percentage = "percentage", t.Pixel = "pixel", t))(i || {});
|
|
15
|
-
const z =
|
|
17
|
+
const z = w`
|
|
16
18
|
:host {
|
|
17
19
|
display: block;
|
|
18
20
|
width: 100%;
|
|
@@ -23,14 +25,14 @@ const z = P`
|
|
|
23
25
|
flex: 1;
|
|
24
26
|
}
|
|
25
27
|
`;
|
|
26
|
-
var C = Object.defineProperty, R = Object.getOwnPropertyDescriptor, s = (t, e,
|
|
27
|
-
for (var l = n > 1 ? void 0 : n ? R(e,
|
|
28
|
-
(p = t[o]) && (l = (n ? p(e,
|
|
29
|
-
return n && l && C(e,
|
|
28
|
+
var C = Object.defineProperty, R = Object.getOwnPropertyDescriptor, s = (t, e, r, n) => {
|
|
29
|
+
for (var l = n > 1 ? void 0 : n ? R(e, r) : e, o = t.length - 1, p; o >= 0; o--)
|
|
30
|
+
(p = t[o]) && (l = (n ? p(e, r, l) : p(l)) || l);
|
|
31
|
+
return n && l && C(e, r, l), l;
|
|
30
32
|
};
|
|
31
|
-
let a = class extends
|
|
33
|
+
let a = class extends P {
|
|
32
34
|
constructor() {
|
|
33
|
-
super(...arguments), this.localize = new
|
|
35
|
+
super(...arguments), this.localize = new y(this), this.value = ["100%", "100%"], this.defaultPixelValue = ["0px", "0px"], this.keepRatio = !1, this.canSetUnit = !1, this.canSetAspectRatio = !1, this.useMask = !1, this.unit = i.Percentage, this.defaultUnit = i.Percentage, this.fallbackValue = ["100%", ""], this.name = "", this.defaultValue = ["100%", ""];
|
|
34
36
|
}
|
|
35
37
|
get mask() {
|
|
36
38
|
return this.useMask ? this.unit === i.Pixel ? "numpx" : "num%" : "num";
|
|
@@ -43,15 +45,15 @@ let a = class extends $ {
|
|
|
43
45
|
}
|
|
44
46
|
handleWidthInput(t) {
|
|
45
47
|
t.stopPropagation();
|
|
46
|
-
const e = t.target,
|
|
48
|
+
const e = t.target, r = [...this.value], n = e.value, l = !Number.isNaN(parseFloat(n));
|
|
47
49
|
let o = "";
|
|
48
|
-
this.useMask ? o = l ? n : "0" : this.unit === i.Percentage ? o = l ? `${n}%` : "0%" : o = l ? `${n}px` : "0px",
|
|
50
|
+
this.useMask ? o = l ? n : "0" : this.unit === i.Percentage ? o = l ? `${n}%` : "0%" : o = l ? `${n}px` : "0px", r[0] = o, this.keepRatio && this.unit === i.Pixel && (r[1] = (parseFloat(o) / this.defaultAspectRatio).toFixed(0) + "px", this.heightInput.requestUpdate()), this.value = r, this.emit("cx-change");
|
|
49
51
|
}
|
|
50
52
|
handleHeightInput(t) {
|
|
51
53
|
t.stopPropagation();
|
|
52
|
-
const e = t.target,
|
|
54
|
+
const e = t.target, r = [...this.value], n = e.value, l = !Number.isNaN(parseFloat(n));
|
|
53
55
|
let o = "";
|
|
54
|
-
this.useMask ? o = l ? n : "0" : this.unit === i.Percentage ? o = l ? `${n}%` : "0%" : o = l ? `${n}px` : "0px",
|
|
56
|
+
this.useMask ? o = l ? n : "0" : this.unit === i.Percentage ? o = l ? `${n}%` : "0%" : o = l ? `${n}px` : "0px", r[1] = o, this.keepRatio && this.unit === i.Pixel && (r[0] = (parseFloat(o) * this.defaultAspectRatio).toFixed(0) + "px", this.widthInput.requestUpdate()), this.value = r, this.emit("cx-change");
|
|
55
57
|
}
|
|
56
58
|
handleUnitChange(t) {
|
|
57
59
|
t.stopPropagation();
|
|
@@ -93,7 +95,7 @@ let a = class extends $ {
|
|
|
93
95
|
@cx-change=${this.handleInputChange}
|
|
94
96
|
@cx-input=${this.handleWidthInput}
|
|
95
97
|
></cx-input>
|
|
96
|
-
${
|
|
98
|
+
${f(
|
|
97
99
|
this.unit === i.Pixel && this.canSetAspectRatio,
|
|
98
100
|
() => h`
|
|
99
101
|
<cx-icon-button
|
|
@@ -129,7 +131,7 @@ let a = class extends $ {
|
|
|
129
131
|
@cx-input=${this.handleHeightInput}
|
|
130
132
|
></cx-input>
|
|
131
133
|
</cx-tooltip>
|
|
132
|
-
${
|
|
134
|
+
${f(
|
|
133
135
|
this.canSetUnit,
|
|
134
136
|
() => h`
|
|
135
137
|
<cx-select
|
|
@@ -148,9 +150,9 @@ let a = class extends $ {
|
|
|
148
150
|
</cx-space>`;
|
|
149
151
|
}
|
|
150
152
|
};
|
|
151
|
-
a.styles = [
|
|
153
|
+
a.styles = [$, z];
|
|
152
154
|
a.dependencies = {
|
|
153
|
-
"cx-icon-button":
|
|
155
|
+
"cx-icon-button": x,
|
|
154
156
|
"cx-input": d,
|
|
155
157
|
"cx-select": g,
|
|
156
158
|
"cx-space": v,
|
|
@@ -166,7 +168,7 @@ s([
|
|
|
166
168
|
m(".size-input-group__unit")
|
|
167
169
|
], a.prototype, "unitSelect", 2);
|
|
168
170
|
s([
|
|
169
|
-
|
|
171
|
+
u({
|
|
170
172
|
converter: {
|
|
171
173
|
fromAttribute: (t) => {
|
|
172
174
|
const e = (t ?? "").split(" ");
|
|
@@ -178,7 +180,7 @@ s([
|
|
|
178
180
|
})
|
|
179
181
|
], a.prototype, "value", 2);
|
|
180
182
|
s([
|
|
181
|
-
|
|
183
|
+
u({
|
|
182
184
|
attribute: "default-pixel-value",
|
|
183
185
|
converter: {
|
|
184
186
|
fromAttribute: (t) => {
|
|
@@ -192,16 +194,16 @@ s([
|
|
|
192
194
|
})
|
|
193
195
|
], a.prototype, "defaultPixelValue", 2);
|
|
194
196
|
s([
|
|
195
|
-
|
|
197
|
+
u({ attribute: "keep-ratio", reflect: !0, type: Boolean })
|
|
196
198
|
], a.prototype, "keepRatio", 2);
|
|
197
199
|
s([
|
|
198
|
-
|
|
200
|
+
u({ attribute: "can-set-unit", reflect: !0, type: Boolean })
|
|
199
201
|
], a.prototype, "canSetUnit", 2);
|
|
200
202
|
s([
|
|
201
|
-
|
|
203
|
+
u({ attribute: "can-set-aspect-ratio", reflect: !0, type: Boolean })
|
|
202
204
|
], a.prototype, "canSetAspectRatio", 2);
|
|
203
205
|
s([
|
|
204
|
-
|
|
206
|
+
u({ attribute: "use-mask", reflect: !0, type: Boolean })
|
|
205
207
|
], a.prototype, "useMask", 2);
|
|
206
208
|
s([
|
|
207
209
|
c()
|
|
@@ -213,13 +215,13 @@ s([
|
|
|
213
215
|
c()
|
|
214
216
|
], a.prototype, "fallbackValue", 2);
|
|
215
217
|
s([
|
|
216
|
-
|
|
218
|
+
u()
|
|
217
219
|
], a.prototype, "name", 2);
|
|
218
220
|
s([
|
|
219
|
-
|
|
221
|
+
_()
|
|
220
222
|
], a.prototype, "defaultValue", 2);
|
|
221
223
|
s([
|
|
222
|
-
|
|
224
|
+
V("value")
|
|
223
225
|
], a.prototype, "handleValueChange", 1);
|
|
224
226
|
a = s([
|
|
225
227
|
b("cx-size-input-group")
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { n as c, C as d } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as p } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as u } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { i as f, x as m } from "../chunks/lit-element.jLBm65_O.js";
|
|
5
|
+
import { e as v } from "../chunks/class-map.BiVq-cVR.js";
|
|
6
|
+
const h = f`
|
|
5
7
|
:host {
|
|
6
8
|
--border-radius: var(--cx-border-radius-pill);
|
|
7
9
|
--color: var(--cx-color-neutral-200);
|
|
@@ -73,15 +75,15 @@ var k = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, l = (a, o, s
|
|
|
73
75
|
(i = a[n]) && (e = (r ? i(o, s, e) : i(e)) || e);
|
|
74
76
|
return r && e && k(o, s, e), e;
|
|
75
77
|
};
|
|
76
|
-
let t = class extends
|
|
78
|
+
let t = class extends d {
|
|
77
79
|
constructor() {
|
|
78
80
|
super(...arguments), this.effect = "none";
|
|
79
81
|
}
|
|
80
82
|
render() {
|
|
81
|
-
return
|
|
83
|
+
return m`
|
|
82
84
|
<div
|
|
83
85
|
part="base"
|
|
84
|
-
class=${
|
|
86
|
+
class=${v({
|
|
85
87
|
skeleton: !0,
|
|
86
88
|
"skeleton--pulse": this.effect === "pulse",
|
|
87
89
|
"skeleton--sheen": this.effect === "sheen"
|
|
@@ -92,12 +94,12 @@ let t = class extends p {
|
|
|
92
94
|
`;
|
|
93
95
|
}
|
|
94
96
|
};
|
|
95
|
-
t.styles = [
|
|
97
|
+
t.styles = [p, h];
|
|
96
98
|
l([
|
|
97
|
-
|
|
99
|
+
c()
|
|
98
100
|
], t.prototype, "effect", 2);
|
|
99
101
|
t = l([
|
|
100
|
-
|
|
102
|
+
u("cx-skeleton")
|
|
101
103
|
], t);
|
|
102
104
|
export {
|
|
103
105
|
t as default
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
|
|
1
|
+
import { n as a, C as g } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as l } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as m } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { i as f, x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
5
|
+
const u = f`
|
|
4
6
|
:host {
|
|
5
7
|
display: flex;
|
|
6
8
|
flex-direction: var(--spacing-container-direction, horizontal);
|
|
@@ -138,20 +140,20 @@ const u = g`
|
|
|
138
140
|
width: 100%;
|
|
139
141
|
}
|
|
140
142
|
`;
|
|
141
|
-
var y = Object.defineProperty, x = Object.getOwnPropertyDescriptor, e = (p, i,
|
|
142
|
-
for (var n = s > 1 ? void 0 : s ? x(i,
|
|
143
|
-
(o = p[
|
|
144
|
-
return s && n && y(i,
|
|
143
|
+
var y = Object.defineProperty, x = Object.getOwnPropertyDescriptor, e = (p, i, r, s) => {
|
|
144
|
+
for (var n = s > 1 ? void 0 : s ? x(i, r) : i, c = p.length - 1, o; c >= 0; c--)
|
|
145
|
+
(o = p[c]) && (n = (s ? o(i, r, n) : o(n)) || n);
|
|
146
|
+
return s && n && y(i, r, n), n;
|
|
145
147
|
};
|
|
146
|
-
let t = class extends
|
|
148
|
+
let t = class extends g {
|
|
147
149
|
constructor() {
|
|
148
150
|
super(...arguments), this.block = !1, this.direction = "horizontal", this.spacing = "medium", this.wrap = "wrap", this.justifyContent = "normal", this.alignItems = "normal";
|
|
149
151
|
}
|
|
150
152
|
render() {
|
|
151
|
-
return
|
|
153
|
+
return h`<slot part="base"></slot>`;
|
|
152
154
|
}
|
|
153
155
|
};
|
|
154
|
-
t.styles = [
|
|
156
|
+
t.styles = [l, u];
|
|
155
157
|
e([
|
|
156
158
|
a({ reflect: !0, type: Boolean })
|
|
157
159
|
], t.prototype, "block", 2);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { C as c } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as l } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as m } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { L as p } from "../chunks/i18n.DrzK7TPf.js";
|
|
5
|
+
import { i as d, x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
|
+
const f = d`
|
|
5
7
|
:host {
|
|
6
8
|
--track-width: 2px;
|
|
7
9
|
--track-color: rgb(128 128 128 / 25%);
|
|
@@ -61,17 +63,17 @@ const f = c`
|
|
|
61
63
|
}
|
|
62
64
|
}
|
|
63
65
|
`;
|
|
64
|
-
var g = Object.getOwnPropertyDescriptor, k = (
|
|
65
|
-
for (var r =
|
|
66
|
-
(
|
|
66
|
+
var g = Object.getOwnPropertyDescriptor, k = (a, s, n, o) => {
|
|
67
|
+
for (var r = o > 1 ? void 0 : o ? g(s, n) : s, e = a.length - 1, i; e >= 0; e--)
|
|
68
|
+
(i = a[e]) && (r = i(r) || r);
|
|
67
69
|
return r;
|
|
68
70
|
};
|
|
69
|
-
let
|
|
71
|
+
let t = class extends c {
|
|
70
72
|
constructor() {
|
|
71
|
-
super(...arguments), this.localize = new
|
|
73
|
+
super(...arguments), this.localize = new p(this);
|
|
72
74
|
}
|
|
73
75
|
render() {
|
|
74
|
-
return
|
|
76
|
+
return h`
|
|
75
77
|
<svg
|
|
76
78
|
part="base"
|
|
77
79
|
class="spinner"
|
|
@@ -84,10 +86,10 @@ let a = class extends l {
|
|
|
84
86
|
`;
|
|
85
87
|
}
|
|
86
88
|
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
],
|
|
89
|
+
t.styles = [l, f];
|
|
90
|
+
t = k([
|
|
91
|
+
m("cx-spinner")
|
|
92
|
+
], t);
|
|
91
93
|
export {
|
|
92
|
-
|
|
94
|
+
t as default
|
|
93
95
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { n, C as v } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as m } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as u } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { d as g } from "../chunks/drag.DXEXVXPv.js";
|
|
5
|
+
import { L as f } from "../chunks/i18n.DrzK7TPf.js";
|
|
5
6
|
import { c as p } from "../chunks/math.DqTA6ya4.js";
|
|
6
|
-
import { w as c } from "../chunks/watch.
|
|
7
|
+
import { w as c } from "../chunks/watch.q1sEjPWL.js";
|
|
8
|
+
import { i as y, x } from "../chunks/lit-element.jLBm65_O.js";
|
|
7
9
|
import { e as b } from "../chunks/query.BBf1UFkC.js";
|
|
8
|
-
import { o as w } from "../chunks/if-defined.
|
|
9
|
-
const P =
|
|
10
|
+
import { o as w } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
11
|
+
const P = y`
|
|
10
12
|
:host {
|
|
11
13
|
--divider-color: var(--cx-panel-border-color);
|
|
12
14
|
--divider-color-hover: var(--cx-color-neutral-300);
|
|
@@ -99,9 +101,9 @@ var z = Object.defineProperty, C = Object.getOwnPropertyDescriptor, s = (i, t, o
|
|
|
99
101
|
(l = i[h]) && (e = (a ? l(t, o, e) : l(e)) || e);
|
|
100
102
|
return a && e && z(t, o, e), e;
|
|
101
103
|
};
|
|
102
|
-
let r = class extends
|
|
104
|
+
let r = class extends v {
|
|
103
105
|
constructor() {
|
|
104
|
-
super(...arguments), this.localize = new
|
|
106
|
+
super(...arguments), this.localize = new f(this), this.position = 50, this.vertical = !1, this.disabled = !1, this.state = "idle", this.snapThreshold = 12;
|
|
105
107
|
}
|
|
106
108
|
runFirstUpdated() {
|
|
107
109
|
this.detectSize(), this.cachedPositionInPixels = this.percentageToPixels(this.position);
|
|
@@ -126,7 +128,7 @@ let r = class extends u {
|
|
|
126
128
|
}
|
|
127
129
|
handleDrag(i) {
|
|
128
130
|
const t = this.localize.dir() === "rtl";
|
|
129
|
-
this.disabled || (i.cancelable && i.preventDefault(), this.state = "dragging",
|
|
131
|
+
this.disabled || (i.cancelable && i.preventDefault(), this.state = "dragging", g(this, {
|
|
130
132
|
initialEvent: i,
|
|
131
133
|
onMove: (o, a) => {
|
|
132
134
|
let e = this.vertical ? a : o;
|
|
@@ -191,7 +193,7 @@ let r = class extends u {
|
|
|
191
193
|
calc(100% - var(--divider-width))
|
|
192
194
|
)
|
|
193
195
|
`, e = "auto";
|
|
194
|
-
return this.primary === "end" ? o && !this.vertical ? this.style[i] = `${a} var(--divider-width) ${e}` : this.style[i] = `${e} var(--divider-width) ${a}` : o && !this.vertical ? this.style[i] = `${e} var(--divider-width) ${a}` : this.style[i] = `${a} var(--divider-width) ${e}`, this.style[t] = "",
|
|
196
|
+
return this.primary === "end" ? o && !this.vertical ? this.style[i] = `${a} var(--divider-width) ${e}` : this.style[i] = `${e} var(--divider-width) ${a}` : o && !this.vertical ? this.style[i] = `${e} var(--divider-width) ${a}` : this.style[i] = `${a} var(--divider-width) ${e}`, this.style[t] = "", x`
|
|
195
197
|
<slot name="start" part="panel start" class="start"></slot>
|
|
196
198
|
|
|
197
199
|
<div
|
|
@@ -214,7 +216,7 @@ let r = class extends u {
|
|
|
214
216
|
`;
|
|
215
217
|
}
|
|
216
218
|
};
|
|
217
|
-
r.styles = [
|
|
219
|
+
r.styles = [m, P];
|
|
218
220
|
s([
|
|
219
221
|
b(".divider")
|
|
220
222
|
], r.prototype, "divider", 2);
|
|
@@ -255,7 +257,7 @@ s([
|
|
|
255
257
|
c("vertical")
|
|
256
258
|
], r.prototype, "handleVerticalChange", 1);
|
|
257
259
|
r = s([
|
|
258
|
-
|
|
260
|
+
u("cx-split-panel")
|
|
259
261
|
], r);
|
|
260
262
|
export {
|
|
261
263
|
r as default
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { n as r, C as _ } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as x } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as u } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { i as m, x as o } from "../chunks/lit-element.jLBm65_O.js";
|
|
5
|
+
import { e as h } from "../chunks/query.BBf1UFkC.js";
|
|
6
|
+
import { e as v } from "../chunks/class-map.BiVq-cVR.js";
|
|
7
|
+
import { o as f } from "../chunks/style-map.llVFPd__.js";
|
|
6
8
|
import { n as l } from "../chunks/when.Dr1es41R.js";
|
|
7
|
-
import
|
|
9
|
+
import g from "./icon.js";
|
|
8
10
|
import b from "./line-clamp.js";
|
|
9
11
|
import y from "./progress-bar.js";
|
|
10
12
|
import w from "./tooltip.js";
|
|
11
|
-
const $ =
|
|
13
|
+
const $ = m`
|
|
12
14
|
:host {
|
|
13
15
|
--color: var(--color);
|
|
14
16
|
|
|
@@ -221,12 +223,12 @@ const $ = _`
|
|
|
221
223
|
flex: 1;
|
|
222
224
|
}
|
|
223
225
|
`;
|
|
224
|
-
var S = Object.defineProperty, C = Object.getOwnPropertyDescriptor, t = (d, i,
|
|
225
|
-
for (var s = c > 1 ? void 0 : c ? C(i,
|
|
226
|
-
(n = d[
|
|
227
|
-
return c && s && S(i,
|
|
226
|
+
var S = Object.defineProperty, C = Object.getOwnPropertyDescriptor, t = (d, i, p, c) => {
|
|
227
|
+
for (var s = c > 1 ? void 0 : c ? C(i, p) : i, a = d.length - 1, n; a >= 0; a--)
|
|
228
|
+
(n = d[a]) && (s = (c ? n(i, p, s) : n(s)) || s);
|
|
229
|
+
return c && s && S(i, p, s), s;
|
|
228
230
|
};
|
|
229
|
-
let e = class extends
|
|
231
|
+
let e = class extends _ {
|
|
230
232
|
constructor() {
|
|
231
233
|
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.round = !1, this.description = "", this.renderDefaultStep = this.renderDefaultStep.bind(this), this.renderRoundStep = this.renderRoundStep.bind(this);
|
|
232
234
|
}
|
|
@@ -276,7 +278,7 @@ let e = class extends x {
|
|
|
276
278
|
hoist
|
|
277
279
|
>
|
|
278
280
|
<div
|
|
279
|
-
style=${
|
|
281
|
+
style=${f({
|
|
280
282
|
"--color": this.color
|
|
281
283
|
})}
|
|
282
284
|
>
|
|
@@ -306,15 +308,15 @@ let e = class extends x {
|
|
|
306
308
|
`;
|
|
307
309
|
}
|
|
308
310
|
};
|
|
309
|
-
e.styles = [
|
|
311
|
+
e.styles = [x, $];
|
|
310
312
|
e.dependencies = {
|
|
311
|
-
"cx-icon":
|
|
313
|
+
"cx-icon": g,
|
|
312
314
|
"cx-line-clamp": b,
|
|
313
315
|
"cx-progress-bar": y,
|
|
314
316
|
"cx-tooltip": w
|
|
315
317
|
};
|
|
316
318
|
t([
|
|
317
|
-
|
|
319
|
+
h('div[part="base"]')
|
|
318
320
|
], e.prototype, "step", 2);
|
|
319
321
|
t([
|
|
320
322
|
r({ reflect: !0, type: Boolean })
|