@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,19 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
1
|
+
import { n, C } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as k } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { a as d, s as p } from "../chunks/animate.El-MpOws.js";
|
|
4
|
+
import { c as z } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
5
|
import { w as v } from "../chunks/event.mFzZi4sr.js";
|
|
5
|
-
import { L as
|
|
6
|
-
import { M as
|
|
7
|
-
import { l as
|
|
8
|
-
import { H as
|
|
9
|
-
import { w as _ } from "../chunks/watch.
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import A from "
|
|
16
|
-
|
|
6
|
+
import { L as O } from "../chunks/i18n.DrzK7TPf.js";
|
|
7
|
+
import { M as $ } from "../chunks/modal.U1QltQKe.js";
|
|
8
|
+
import { l as m, u as w } from "../chunks/scroll.xtO5yojm.js";
|
|
9
|
+
import { H as B } from "../chunks/slot.j5oheLJC.js";
|
|
10
|
+
import { w as _ } from "../chunks/watch.q1sEjPWL.js";
|
|
11
|
+
import { i as P, x as y } from "../chunks/lit-element.jLBm65_O.js";
|
|
12
|
+
import { r as S } from "../chunks/state.CSDxrqLd.js";
|
|
13
|
+
import { e as u } from "../chunks/query.BBf1UFkC.js";
|
|
14
|
+
import { e as g } from "../chunks/class-map.BiVq-cVR.js";
|
|
15
|
+
import { o as b } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
16
|
+
import { n as A } from "../chunks/when.Dr1es41R.js";
|
|
17
|
+
import { c as x } from "../chunks/capitalize.WSkCXkNE.js";
|
|
18
|
+
import { s as i, g as c } from "../chunks/animation-registry.HmpwNuGH.js";
|
|
19
|
+
import q from "./icon-button.js";
|
|
20
|
+
const D = P`
|
|
17
21
|
:host {
|
|
18
22
|
--size: 25rem;
|
|
19
23
|
--header-spacing: var(--cx-spacing-large);
|
|
@@ -194,32 +198,37 @@ const q = C`
|
|
|
194
198
|
}
|
|
195
199
|
}
|
|
196
200
|
`;
|
|
197
|
-
var
|
|
198
|
-
for (var s = l > 1 ? void 0 : l ?
|
|
199
|
-
(f = e[
|
|
200
|
-
return l && s &&
|
|
201
|
+
var L = Object.defineProperty, E = Object.getOwnPropertyDescriptor, a = (e, o, r, l) => {
|
|
202
|
+
for (var s = l > 1 ? void 0 : l ? E(o, r) : o, h = e.length - 1, f; h >= 0; h--)
|
|
203
|
+
(f = e[h]) && (s = (l ? f(o, r, s) : f(s)) || s);
|
|
204
|
+
return l && s && L(o, r, s), s;
|
|
201
205
|
};
|
|
202
|
-
let t = class extends
|
|
206
|
+
let t = class extends C {
|
|
203
207
|
constructor() {
|
|
204
|
-
super(...arguments), this.hasSlotController = new
|
|
208
|
+
super(...arguments), this.hasSlotController = new B(this, "footer"), this.localize = new O(this), this.modal = new $(this), this.isClosing = !1, this.open = !1, this.label = "", this.placement = "end", this.contained = !1, this.noHeader = !1, this.variant = "overlay", this.noCloseButton = !1, this.handleDocumentKeyDown = (e) => {
|
|
205
209
|
this.contained || e.key === "Escape" && this.modal.isActive() && this.open && (e.stopImmediatePropagation(), this.requestClose("keyboard"));
|
|
206
210
|
};
|
|
207
211
|
}
|
|
208
212
|
connectedUpdatedCallback() {
|
|
209
|
-
this.drawer.hidden = !this.open, this.open && (this.addOpenListeners(), this.contained || (this.modal.activate(),
|
|
213
|
+
this.drawer.hidden = !this.open, this.open && (this.addOpenListeners(), this.contained || (this.modal.activate(), m(this)));
|
|
210
214
|
}
|
|
211
215
|
disconnectedCallback() {
|
|
212
|
-
super.disconnectedCallback(),
|
|
216
|
+
super.disconnectedCallback(), w(this), this.removeOpenListeners();
|
|
217
|
+
}
|
|
218
|
+
willUpdate(e) {
|
|
219
|
+
if (super.willUpdate(e), !e.has("open"))
|
|
220
|
+
return;
|
|
221
|
+
e.get("open") && !this.open ? this.isClosing = !0 : this.open && (this.isClosing = !1);
|
|
213
222
|
}
|
|
214
223
|
requestClose(e) {
|
|
215
224
|
if (this.emit("cx-request-close", {
|
|
216
225
|
cancelable: !0,
|
|
217
226
|
detail: { source: e }
|
|
218
227
|
}).defaultPrevented) {
|
|
219
|
-
const r =
|
|
228
|
+
const r = c(this, "drawer.denyClose", {
|
|
220
229
|
dir: this.localize.dir()
|
|
221
230
|
});
|
|
222
|
-
|
|
231
|
+
d(this.panel, r.keyframes, r.options);
|
|
223
232
|
return;
|
|
224
233
|
}
|
|
225
234
|
this.hide();
|
|
@@ -232,11 +241,11 @@ let t = class extends k {
|
|
|
232
241
|
}
|
|
233
242
|
async handleOpenChange() {
|
|
234
243
|
if (this.open) {
|
|
235
|
-
this.emit("cx-show"), this.addOpenListeners(), this.originalTrigger = document.activeElement, this.contained || (this.modal.activate(),
|
|
244
|
+
this.emit("cx-show"), this.addOpenListeners(), this.originalTrigger = document.activeElement, this.contained || (this.modal.activate(), m(this));
|
|
236
245
|
const e = this.querySelector("[autofocus]");
|
|
237
246
|
e && e.removeAttribute("autofocus"), await Promise.all([
|
|
238
|
-
|
|
239
|
-
|
|
247
|
+
p(this.drawer),
|
|
248
|
+
p(this.overlay)
|
|
240
249
|
]), this.drawer.hidden = !1, requestAnimationFrame(() => {
|
|
241
250
|
this.emit("cx-initial-focus", {
|
|
242
251
|
cancelable: !0
|
|
@@ -244,59 +253,59 @@ let t = class extends k {
|
|
|
244
253
|
preventScroll: !0
|
|
245
254
|
}) : this.panel.focus({ preventScroll: !0 })), e && e.setAttribute("autofocus", "");
|
|
246
255
|
});
|
|
247
|
-
const o =
|
|
256
|
+
const o = c(
|
|
248
257
|
this,
|
|
249
258
|
`drawer.show${x(this.placement)}`,
|
|
250
259
|
{
|
|
251
260
|
dir: this.localize.dir()
|
|
252
261
|
}
|
|
253
|
-
), r =
|
|
262
|
+
), r = c(this, "drawer.overlay.show", {
|
|
254
263
|
dir: this.localize.dir()
|
|
255
264
|
});
|
|
256
265
|
await Promise.all([
|
|
257
|
-
|
|
258
|
-
this.contained ? Promise.resolve() :
|
|
266
|
+
d(this.panel, o.keyframes, o.options),
|
|
267
|
+
this.contained ? Promise.resolve() : d(
|
|
259
268
|
this.overlay,
|
|
260
269
|
r.keyframes,
|
|
261
270
|
r.options
|
|
262
271
|
)
|
|
263
272
|
]), this.emit("cx-after-show");
|
|
264
273
|
} else {
|
|
265
|
-
this.emit("cx-hide"), this.removeOpenListeners(), this.contained || (this.modal.deactivate(),
|
|
266
|
-
|
|
267
|
-
|
|
274
|
+
this.emit("cx-hide"), this.removeOpenListeners(), this.contained || (this.modal.deactivate(), w(this)), await Promise.all([
|
|
275
|
+
p(this.drawer),
|
|
276
|
+
p(this.overlay)
|
|
268
277
|
]);
|
|
269
|
-
const e =
|
|
278
|
+
const e = c(
|
|
270
279
|
this,
|
|
271
280
|
`drawer.hide${x(this.placement)}`,
|
|
272
281
|
{
|
|
273
282
|
dir: this.localize.dir()
|
|
274
283
|
}
|
|
275
|
-
), o =
|
|
284
|
+
), o = c(this, "drawer.overlay.hide", {
|
|
276
285
|
dir: this.localize.dir()
|
|
277
286
|
});
|
|
278
287
|
await Promise.all([
|
|
279
|
-
(this.contained ? Promise.resolve() :
|
|
288
|
+
(this.contained ? Promise.resolve() : d(
|
|
280
289
|
this.overlay,
|
|
281
290
|
o.keyframes,
|
|
282
291
|
o.options
|
|
283
292
|
)).then(() => {
|
|
284
293
|
this.overlay.hidden = !0;
|
|
285
294
|
}),
|
|
286
|
-
|
|
295
|
+
d(
|
|
287
296
|
this.panel,
|
|
288
297
|
e.keyframes,
|
|
289
298
|
e.options
|
|
290
299
|
).then(() => {
|
|
291
300
|
this.panel.hidden = !0;
|
|
292
301
|
})
|
|
293
|
-
]), this.drawer.hidden = !0, this.overlay.hidden = !1, this.panel.hidden = !1;
|
|
302
|
+
]), this.drawer.hidden = !0, this.isClosing = !1, this.overlay.hidden = !1, this.panel.hidden = !1;
|
|
294
303
|
const r = this.originalTrigger;
|
|
295
304
|
typeof r?.focus == "function" && setTimeout(() => r.focus()), this.emit("cx-after-hide");
|
|
296
305
|
}
|
|
297
306
|
}
|
|
298
307
|
handleNoModalChange() {
|
|
299
|
-
this.open && !this.contained && (this.modal.activate(),
|
|
308
|
+
this.open && !this.contained && (this.modal.activate(), m(this)), this.open && this.contained && (this.modal.deactivate(), w(this));
|
|
300
309
|
}
|
|
301
310
|
/** Shows the drawer. */
|
|
302
311
|
async show() {
|
|
@@ -316,7 +325,7 @@ let t = class extends k {
|
|
|
316
325
|
}
|
|
317
326
|
render() {
|
|
318
327
|
const e = this.variant === "persistent";
|
|
319
|
-
return
|
|
328
|
+
return y`
|
|
320
329
|
<div
|
|
321
330
|
part="base"
|
|
322
331
|
class=${g({
|
|
@@ -326,7 +335,7 @@ let t = class extends k {
|
|
|
326
335
|
"drawer--end": this.placement === "end",
|
|
327
336
|
"drawer--fixed": !this.contained,
|
|
328
337
|
"drawer--has-footer": this.hasSlotController.test("footer"),
|
|
329
|
-
"drawer--open": this.open,
|
|
338
|
+
"drawer--open": this.open || this.isClosing,
|
|
330
339
|
"drawer--persistent": e,
|
|
331
340
|
"drawer--rtl": this.localize.dir() === "rtl",
|
|
332
341
|
"drawer--start": this.placement === "start",
|
|
@@ -353,7 +362,7 @@ let t = class extends k {
|
|
|
353
362
|
aria-labelledby=${b(this.noHeader ? void 0 : "title")}
|
|
354
363
|
tabindex="0"
|
|
355
364
|
>
|
|
356
|
-
${this.noHeader ? "" :
|
|
365
|
+
${this.noHeader ? "" : y`
|
|
357
366
|
<header part="header" class="drawer__header">
|
|
358
367
|
<h2 part="title" class="drawer__title" id="title">
|
|
359
368
|
<!-- If there's no label, use an invisible character to prevent the header from collapsing -->
|
|
@@ -363,9 +372,9 @@ let t = class extends k {
|
|
|
363
372
|
</h2>
|
|
364
373
|
<div part="header-actions" class="drawer__header-actions">
|
|
365
374
|
<slot name="header-actions"></slot>
|
|
366
|
-
${
|
|
375
|
+
${A(
|
|
367
376
|
!this.noCloseButton,
|
|
368
|
-
() =>
|
|
377
|
+
() => y`<cx-icon-button
|
|
369
378
|
part="close-button"
|
|
370
379
|
exportparts="base:close-button__base"
|
|
371
380
|
class="drawer__close"
|
|
@@ -388,17 +397,20 @@ let t = class extends k {
|
|
|
388
397
|
`;
|
|
389
398
|
}
|
|
390
399
|
};
|
|
391
|
-
t.styles = [
|
|
392
|
-
t.dependencies = { "cx-icon-button":
|
|
400
|
+
t.styles = [k, D];
|
|
401
|
+
t.dependencies = { "cx-icon-button": q };
|
|
393
402
|
a([
|
|
394
|
-
|
|
403
|
+
u(".drawer")
|
|
395
404
|
], t.prototype, "drawer", 2);
|
|
396
405
|
a([
|
|
397
|
-
|
|
406
|
+
u(".drawer__panel")
|
|
398
407
|
], t.prototype, "panel", 2);
|
|
399
408
|
a([
|
|
400
|
-
|
|
409
|
+
u(".drawer__overlay")
|
|
401
410
|
], t.prototype, "overlay", 2);
|
|
411
|
+
a([
|
|
412
|
+
S()
|
|
413
|
+
], t.prototype, "isClosing", 2);
|
|
402
414
|
a([
|
|
403
415
|
n({ reflect: !0, type: Boolean })
|
|
404
416
|
], t.prototype, "open", 2);
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import { s as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { n as s, C as w } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as b } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { s as c, a as u } from "../chunks/animate.El-MpOws.js";
|
|
4
|
+
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
+
import { w as m } from "../chunks/event.mFzZi4sr.js";
|
|
6
|
+
import { L as v } from "../chunks/i18n.DrzK7TPf.js";
|
|
7
|
+
import { H as k } from "../chunks/slot.j5oheLJC.js";
|
|
8
|
+
import { g as f } from "../chunks/tabbable.CcMz3mIL.js";
|
|
9
|
+
import { w as E } from "../chunks/watch.q1sEjPWL.js";
|
|
10
|
+
import { i as C, x as D } from "../chunks/lit-element.jLBm65_O.js";
|
|
9
11
|
import { e as h } from "../chunks/query.BBf1UFkC.js";
|
|
10
|
-
import { e as T } from "../chunks/class-map.
|
|
11
|
-
import { o as O } from "../chunks/if-defined.
|
|
12
|
+
import { e as T } from "../chunks/class-map.BiVq-cVR.js";
|
|
13
|
+
import { o as O } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
14
|
+
import { s as y, g } from "../chunks/animation-registry.HmpwNuGH.js";
|
|
12
15
|
import _ from "./input.js";
|
|
13
16
|
import d from "./menu.js";
|
|
14
|
-
import
|
|
17
|
+
import L from "./popup.js";
|
|
15
18
|
import S from "./textarea.js";
|
|
16
|
-
const A =
|
|
19
|
+
const A = C`
|
|
17
20
|
:host {
|
|
18
21
|
display: inline-block;
|
|
19
22
|
--panel-padding: 0px;
|
|
@@ -85,9 +88,9 @@ var K = Object.defineProperty, P = Object.getOwnPropertyDescriptor, n = (e, t, o
|
|
|
85
88
|
(l = e[p]) && (r = (a ? l(t, o, r) : l(r)) || r);
|
|
86
89
|
return a && r && K(t, o, r), r;
|
|
87
90
|
};
|
|
88
|
-
let i = class extends
|
|
91
|
+
let i = class extends w {
|
|
89
92
|
constructor() {
|
|
90
|
-
super(), this.localize = new
|
|
93
|
+
super(), this.localize = new v(this), this.hasSlotController = new k(this, "[default]"), this.open = !1, this.placement = "bottom-start", this.disabled = !1, this.stayOpenOnSelect = !1, this.distance = 0, this.skidding = 0, this.hoist = !1, this.sync = void 0, this.autoWidthFactor = 1, this.ignoredKeys = [], this.noFlip = !1, this.flipPadding = 10, this.handleKeyDown = this.handleKeyDown.bind(this), this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.handlePanelSelect = this.handlePanelSelect.bind(this);
|
|
91
94
|
}
|
|
92
95
|
connectedUpdatedCallback() {
|
|
93
96
|
this.containingElement ??= this, this.panel.hidden = !this.open || !this.hasSlotController.test("[default]"), this.open && (this.addOpenListeners(), this.popup.active = !0);
|
|
@@ -156,7 +159,7 @@ let i = class extends b {
|
|
|
156
159
|
const t = this.trigger.assignedElements({
|
|
157
160
|
flatten: !0
|
|
158
161
|
}).find(
|
|
159
|
-
(a) =>
|
|
162
|
+
(a) => f(a).start
|
|
160
163
|
);
|
|
161
164
|
let o;
|
|
162
165
|
if (t) {
|
|
@@ -176,7 +179,7 @@ let i = class extends b {
|
|
|
176
179
|
const t = this.trigger.assignedElements({
|
|
177
180
|
flatten: !0
|
|
178
181
|
}).find(
|
|
179
|
-
(a) =>
|
|
182
|
+
(a) => f(a).start
|
|
180
183
|
);
|
|
181
184
|
let o;
|
|
182
185
|
if (t) {
|
|
@@ -195,12 +198,12 @@ let i = class extends b {
|
|
|
195
198
|
/** Shows the dropdown panel. */
|
|
196
199
|
async show() {
|
|
197
200
|
if (!this.open)
|
|
198
|
-
return this.open = !0, await this.updateComplete,
|
|
201
|
+
return this.open = !0, await this.updateComplete, m(this, "cx-after-show");
|
|
199
202
|
}
|
|
200
203
|
/** Hides the dropdown panel */
|
|
201
204
|
async hide() {
|
|
202
205
|
if (this.open)
|
|
203
|
-
return this.open = !1,
|
|
206
|
+
return this.open = !1, m(this, "cx-after-hide");
|
|
204
207
|
}
|
|
205
208
|
/**
|
|
206
209
|
* Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu
|
|
@@ -224,24 +227,24 @@ let i = class extends b {
|
|
|
224
227
|
}
|
|
225
228
|
if (this.updateAccessibleTrigger(), this.open && this.hasSlotController.test("[default]")) {
|
|
226
229
|
this.emit("cx-show"), this.addOpenListeners(), await c(this), this.panel.hidden = !1, this.popup.active = !0;
|
|
227
|
-
const { keyframes: e, options: t } =
|
|
230
|
+
const { keyframes: e, options: t } = g(this, "dropdown.show", {
|
|
228
231
|
dir: this.localize.dir()
|
|
229
232
|
});
|
|
230
|
-
await
|
|
233
|
+
await u(this.popup.popup, e, t), this.emit("cx-after-show"), this.panel.assignedElements().forEach(async (o) => {
|
|
231
234
|
o instanceof d && o.variant === "multiple" && (await o.updateComplete, o.adjustMenuSize(0));
|
|
232
235
|
});
|
|
233
236
|
} else {
|
|
234
237
|
this.emit("cx-hide"), this.removeOpenListeners(), await c(this);
|
|
235
|
-
const { keyframes: e, options: t } =
|
|
238
|
+
const { keyframes: e, options: t } = g(this, "dropdown.hide", {
|
|
236
239
|
dir: this.localize.dir()
|
|
237
240
|
});
|
|
238
|
-
await
|
|
241
|
+
await u(this.popup.popup, e, t), this.panel.hidden = !0, this.popup.active = !1, this.emit("cx-after-hide"), this.panel.assignedElements().forEach(async (o) => {
|
|
239
242
|
o instanceof d && o.variant === "multiple" && o.resetActiveMenu();
|
|
240
243
|
});
|
|
241
244
|
}
|
|
242
245
|
}
|
|
243
246
|
render() {
|
|
244
|
-
return
|
|
247
|
+
return D`
|
|
245
248
|
<cx-popup
|
|
246
249
|
part="base"
|
|
247
250
|
exportparts="popup:base__popup"
|
|
@@ -283,7 +286,7 @@ let i = class extends b {
|
|
|
283
286
|
`;
|
|
284
287
|
}
|
|
285
288
|
};
|
|
286
|
-
i.styles = [
|
|
289
|
+
i.styles = [b, A];
|
|
287
290
|
i.dependencies = { "cx-popup": L };
|
|
288
291
|
n([
|
|
289
292
|
h(".dropdown")
|
|
@@ -341,10 +344,10 @@ n([
|
|
|
341
344
|
s({ attribute: "flip-padding", type: Number })
|
|
342
345
|
], i.prototype, "flipPadding", 2);
|
|
343
346
|
n([
|
|
344
|
-
|
|
347
|
+
E("open", { waitUntilFirstUpdate: !0 })
|
|
345
348
|
], i.prototype, "handleOpenChange", 1);
|
|
346
349
|
i = n([
|
|
347
|
-
|
|
350
|
+
x("cx-dropdown")
|
|
348
351
|
], i);
|
|
349
352
|
y("dropdown.show", {
|
|
350
353
|
keyframes: [
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { C as m } from "../chunks/button.
|
|
1
|
+
import { C as m } from "../chunks/button.P71VJ5xh.js";
|
|
2
2
|
import y from "./icon-button.js";
|
|
3
|
-
import { C as l, a as b } from "../chunks/option.
|
|
4
|
-
import
|
|
5
|
-
import { n as o, C as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { C as l, a as b } from "../chunks/option.D1u5-cTt.js";
|
|
4
|
+
import g from "./select.js";
|
|
5
|
+
import { n as o, C as $ } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
|
+
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
7
|
+
import { d as v } from "../chunks/debounce.DaHuiSGU.js";
|
|
8
|
+
import { L as O } from "../chunks/i18n.DrzK7TPf.js";
|
|
9
|
+
import { w as f } from "../chunks/watch.q1sEjPWL.js";
|
|
10
|
+
import { x as h } from "../chunks/lit-element.jLBm65_O.js";
|
|
11
|
+
import { r as p } from "../chunks/state.CSDxrqLd.js";
|
|
10
12
|
import { e as w } from "../chunks/query.BBf1UFkC.js";
|
|
11
|
-
import { c as C } from "../chunks/repeat.
|
|
13
|
+
import { c as C } from "../chunks/repeat.DbF2p5ae.js";
|
|
12
14
|
import { n as d } from "../chunks/when.Dr1es41R.js";
|
|
13
|
-
import { b as B, a as S } from "../chunks/_baseUniq.
|
|
15
|
+
import { b as B, a as S } from "../chunks/_baseUniq.Df-fLIBx.js";
|
|
14
16
|
function E(i, r) {
|
|
15
17
|
return i && i.length ? B(i, S(r)) : [];
|
|
16
18
|
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { n as a, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as w } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { s as d, a as c, b as m } from "../chunks/animate.El-MpOws.js";
|
|
4
|
+
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
+
import { w as u } from "../chunks/event.mFzZi4sr.js";
|
|
6
|
+
import { L as v } from "../chunks/i18n.DrzK7TPf.js";
|
|
7
|
+
import { w as y } from "../chunks/watch.q1sEjPWL.js";
|
|
8
|
+
import { i as C, x as f } from "../chunks/lit-element.jLBm65_O.js";
|
|
9
|
+
import { r as k } from "../chunks/state.CSDxrqLd.js";
|
|
8
10
|
import { e as E } from "../chunks/query.BBf1UFkC.js";
|
|
9
|
-
import { e as H } from "../chunks/class-map.
|
|
10
|
-
import {
|
|
11
|
-
|
|
11
|
+
import { e as H } from "../chunks/class-map.BiVq-cVR.js";
|
|
12
|
+
import { a as p, g } from "../chunks/animation-registry.HmpwNuGH.js";
|
|
13
|
+
import { C as B } from "../chunks/button.P71VJ5xh.js";
|
|
14
|
+
const T = C`
|
|
12
15
|
:host {
|
|
13
16
|
display: block;
|
|
14
17
|
overflow: hidden;
|
|
@@ -69,9 +72,9 @@ var z = Object.defineProperty, O = Object.getOwnPropertyDescriptor, n = (e, t, i
|
|
|
69
72
|
(l = e[h]) && (s = (r ? l(t, i, s) : l(s)) || s);
|
|
70
73
|
return r && s && z(t, i, s), s;
|
|
71
74
|
};
|
|
72
|
-
let o = class extends
|
|
75
|
+
let o = class extends b {
|
|
73
76
|
constructor() {
|
|
74
|
-
super(), this.localize = new
|
|
77
|
+
super(), this.localize = new v(this), this.open = !1, this.disabled = !1, this.elements = 0, this.root = "", this.animation = !1, this.showMore = !1, this.showMoreText = "View more...", this.showLessText = "View less...", this.rerenderEvent = "", this.showButton = !1, this.handleChange = this.handleChange.bind(this);
|
|
75
78
|
}
|
|
76
79
|
connectedCallback() {
|
|
77
80
|
super.connectedCallback(), this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -132,17 +135,17 @@ let o = class extends w {
|
|
|
132
135
|
return;
|
|
133
136
|
}
|
|
134
137
|
if (this.animation) {
|
|
135
|
-
await
|
|
136
|
-
const { keyframes: t, options: i } =
|
|
138
|
+
await d(this.body);
|
|
139
|
+
const { keyframes: t, options: i } = g(
|
|
137
140
|
this.body,
|
|
138
141
|
"element-clamp.show",
|
|
139
142
|
{
|
|
140
143
|
dir: this.localize.dir()
|
|
141
144
|
}
|
|
142
145
|
);
|
|
143
|
-
await
|
|
146
|
+
await c(
|
|
144
147
|
this.body,
|
|
145
|
-
|
|
148
|
+
m(t, this.body.scrollHeight),
|
|
146
149
|
i
|
|
147
150
|
);
|
|
148
151
|
}
|
|
@@ -153,17 +156,17 @@ let o = class extends w {
|
|
|
153
156
|
return;
|
|
154
157
|
}
|
|
155
158
|
if (this.animation) {
|
|
156
|
-
await
|
|
157
|
-
const { keyframes: i, options: r } =
|
|
159
|
+
await d(this.body);
|
|
160
|
+
const { keyframes: i, options: r } = g(
|
|
158
161
|
this.body,
|
|
159
162
|
"element-clamp.hide",
|
|
160
163
|
{
|
|
161
164
|
dir: this.localize.dir()
|
|
162
165
|
}
|
|
163
166
|
);
|
|
164
|
-
await
|
|
167
|
+
await c(
|
|
165
168
|
this.body,
|
|
166
|
-
|
|
169
|
+
m(i, this.body.scrollHeight),
|
|
167
170
|
r
|
|
168
171
|
);
|
|
169
172
|
}
|
|
@@ -174,16 +177,16 @@ let o = class extends w {
|
|
|
174
177
|
/** Shows the details. */
|
|
175
178
|
async show() {
|
|
176
179
|
if (!(this.open || this.disabled))
|
|
177
|
-
return this.open = !0,
|
|
180
|
+
return this.open = !0, u(this, "cx-after-show");
|
|
178
181
|
}
|
|
179
182
|
/** Hides the details */
|
|
180
183
|
async hide() {
|
|
181
184
|
if (!(!this.open || this.disabled))
|
|
182
|
-
return this.open = !1,
|
|
185
|
+
return this.open = !1, u(this, "cx-after-hide");
|
|
183
186
|
}
|
|
184
187
|
render() {
|
|
185
188
|
const e = this.localize.dir() === "rtl", t = this.open ? this.showLessText : this.showMoreText;
|
|
186
|
-
return
|
|
189
|
+
return f`
|
|
187
190
|
<div
|
|
188
191
|
part="base"
|
|
189
192
|
class=${H({
|
|
@@ -195,7 +198,7 @@ let o = class extends w {
|
|
|
195
198
|
@click=${this.showMore ? void 0 : this.handleClick}
|
|
196
199
|
>
|
|
197
200
|
<slot part="content" id="content" class="element-clamp__content"></slot>
|
|
198
|
-
${this.showButton ?
|
|
201
|
+
${this.showButton ? f`<cx-button
|
|
199
202
|
part="toggler"
|
|
200
203
|
size="small"
|
|
201
204
|
variant="text"
|
|
@@ -209,7 +212,7 @@ let o = class extends w {
|
|
|
209
212
|
`;
|
|
210
213
|
}
|
|
211
214
|
};
|
|
212
|
-
o.styles = [
|
|
215
|
+
o.styles = [w, T];
|
|
213
216
|
o.dependencies = {
|
|
214
217
|
"cx-button": B
|
|
215
218
|
};
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as K } from "../chunks/file-on-demand.B2jNilAj.js";
|
|
2
2
|
import "./avatar.js";
|
|
3
|
-
import "../chunks/button.
|
|
4
|
-
import "../chunks/dialog.
|
|
3
|
+
import "../chunks/button.P71VJ5xh.js";
|
|
4
|
+
import "../chunks/dialog.C_75RVVz.js";
|
|
5
5
|
import "./divider.js";
|
|
6
6
|
import "./format-bytes.js";
|
|
7
7
|
import "./icon.js";
|
|
8
8
|
import "./icon-button.js";
|
|
9
9
|
import "./input.js";
|
|
10
10
|
import "./line-clamp.js";
|
|
11
|
-
import "../chunks/option.
|
|
12
|
-
import "./progress-bar.js";
|
|
11
|
+
import "../chunks/option.D1u5-cTt.js";
|
|
13
12
|
import "./relative-time.js";
|
|
14
|
-
import "
|
|
13
|
+
import "./select.js";
|
|
15
14
|
import "./space.js";
|
|
16
15
|
import "./tab.js";
|
|
17
|
-
import "../chunks/tab-group.
|
|
16
|
+
import "../chunks/tab-group.DxSlcWK0.js";
|
|
18
17
|
import "./tab-panel.js";
|
|
19
18
|
import "./tooltip.js";
|
|
20
|
-
import "../chunks/tree.
|
|
21
|
-
import "../chunks/typography.
|
|
22
|
-
import "../chunks/
|
|
23
|
-
import "../chunks/confirm-popover.
|
|
24
|
-
import "../chunks/
|
|
25
|
-
import "../chunks/
|
|
26
|
-
import "../chunks/
|
|
19
|
+
import "../chunks/tree.CNbrP8cY.js";
|
|
20
|
+
import "../chunks/typography.oDzoLbZS.js";
|
|
21
|
+
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
22
|
+
import "../chunks/confirm-popover.C1uA36JR.js";
|
|
23
|
+
import "../chunks/custom-element.L4WJXn1j.js";
|
|
24
|
+
import "../chunks/debounce.DaHuiSGU.js";
|
|
25
|
+
import "../chunks/i18n.DrzK7TPf.js";
|
|
26
|
+
import "../chunks/watch.q1sEjPWL.js";
|
|
27
27
|
import "../chunks/number.CjNxU7Xs.js";
|
|
28
|
-
import "../chunks/string.
|
|
29
|
-
import "../chunks/
|
|
28
|
+
import "../chunks/string.Cp_XNbnV.js";
|
|
29
|
+
import "../chunks/url.LjsR2sB5.js";
|
|
30
|
+
import "../chunks/lit-element.jLBm65_O.js";
|
|
31
|
+
import "../chunks/state.CSDxrqLd.js";
|
|
30
32
|
import "../chunks/query.BBf1UFkC.js";
|
|
31
|
-
import "../chunks/class-map.
|
|
32
|
-
import "../chunks/repeat.
|
|
33
|
-
import "../chunks/style-map.CZovMmo_.js";
|
|
33
|
+
import "../chunks/class-map.BiVq-cVR.js";
|
|
34
|
+
import "../chunks/repeat.DbF2p5ae.js";
|
|
34
35
|
import "../chunks/when.Dr1es41R.js";
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
+
K as default
|
|
37
38
|
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import "./icon.js";
|
|
2
2
|
import "./input.js";
|
|
3
|
-
import "
|
|
4
|
-
import "../chunks/tree.
|
|
5
|
-
import "../chunks/
|
|
6
|
-
import { C } from "../chunks/folder-select.
|
|
7
|
-
import "../chunks/component.styles.
|
|
8
|
-
import "../chunks/
|
|
9
|
-
import "../chunks/
|
|
10
|
-
import "../chunks/
|
|
11
|
-
import "../chunks/
|
|
3
|
+
import "./select.js";
|
|
4
|
+
import "../chunks/tree.CNbrP8cY.js";
|
|
5
|
+
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
|
+
import { C as c } from "../chunks/folder-select.CSEQxIXF.js";
|
|
7
|
+
import "../chunks/component.styles.DMSLciL5.js";
|
|
8
|
+
import "../chunks/custom-element.L4WJXn1j.js";
|
|
9
|
+
import "../chunks/i18n.DrzK7TPf.js";
|
|
10
|
+
import "../chunks/watch.q1sEjPWL.js";
|
|
11
|
+
import "../chunks/endpoints.B7lcoc1N.js";
|
|
12
|
+
import "../chunks/lit-element.jLBm65_O.js";
|
|
13
|
+
import "../chunks/state.CSDxrqLd.js";
|
|
12
14
|
import "../chunks/query.BBf1UFkC.js";
|
|
13
15
|
import "../chunks/choose.BTbF6BAn.js";
|
|
14
16
|
export {
|
|
15
|
-
|
|
17
|
+
c as default
|
|
16
18
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { C as u, n as p
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { C as u, n as p } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as h } from "../chunks/custom-element.L4WJXn1j.js";
|
|
3
|
+
import { L as m } from "../chunks/i18n.DrzK7TPf.js";
|
|
4
|
+
var c = Object.defineProperty, f = Object.getOwnPropertyDescriptor, l = (a, r, s, e) => {
|
|
5
|
+
for (var t = e > 1 ? void 0 : e ? f(r, s) : r, i = a.length - 1, n; i >= 0; i--)
|
|
6
|
+
(n = a[i]) && (t = (e ? n(r, s, t) : n(t)) || t);
|
|
7
|
+
return e && t && c(r, s, t), t;
|
|
7
8
|
};
|
|
8
9
|
let o = class extends u {
|
|
9
10
|
constructor() {
|
|
10
|
-
super(...arguments), this.localize = new
|
|
11
|
+
super(...arguments), this.localize = new m(this), this.value = 0, this.unit = "byte", this.display = "short";
|
|
11
12
|
}
|
|
12
13
|
render() {
|
|
13
14
|
if (isNaN(this.value))
|
|
14
15
|
return "";
|
|
15
|
-
const a = ["", "kilo", "mega", "giga", "tera"],
|
|
16
|
+
const a = ["", "kilo", "mega", "giga", "tera"], r = ["", "kilo", "mega", "giga", "tera", "peta"], s = this.unit === "bit" ? a : r, e = Math.max(
|
|
16
17
|
0,
|
|
17
|
-
Math.min(Math.floor(Math.log10(this.value) / 3),
|
|
18
|
-
), t =
|
|
18
|
+
Math.min(Math.floor(Math.log10(this.value) / 3), s.length - 1)
|
|
19
|
+
), t = s[e] + this.unit, i = parseFloat(
|
|
19
20
|
(this.value / Math.pow(1e3, e)).toPrecision(3)
|
|
20
21
|
);
|
|
21
22
|
return this.localize.number(i, {
|