@orangelogic/design-system 2.48.0 → 2.49.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/{amazon_s3.BB3xCgkt.js → amazon_s3.DeaMdPPn.js} +1 -1
- package/library/chunks/{animation.DPqSuC7g.js → animation.B7d72NVK.js} +2 -2
- package/library/chunks/{button.DQ1SyxmK.js → button.DCaz7tVb.js} +39 -33
- package/library/chunks/{button.styles.CRh5_Ev4.js → button.styles.C8AIO8fd.js} +1 -1
- package/library/chunks/{chatbot.D37AAQvv.js → chatbot.sm4Rph1v.js} +2 -2
- package/library/chunks/{class-map.DqNfBvJI.js → class-map.CoZTSvbM.js} +1 -1
- package/library/chunks/{color-swatch-group.DN7t4a6b.js → color-swatch-group.18TICCVX.js} +16 -13
- package/library/chunks/{color-swatch.CyN0Rfwc.js → color-swatch.BVFmLzfK.js} +9 -9
- package/library/chunks/{component.styles.DtouHn2g.js → component.styles.CI-v8BZa.js} +1 -1
- package/library/chunks/{confirm-popover.CFrckJqd.js → confirm-popover.BvRVjl2b.js} +6 -6
- package/library/chunks/{cropper.CfSeVI5y.js → cropper.aA0v16xS.js} +3 -3
- package/library/chunks/{custom-element.fmLrnDZr.js → custom-element.vnXBMQxc.js} +17 -11
- package/library/chunks/{default-value.BrNrMtnz.js → default-value.CIKAvD5l.js} +1 -1
- package/library/chunks/{dialog.B1-k8d10.js → dialog.Cj9XqgFc.js} +26 -23
- package/library/chunks/{directive-helpers.D78ZFDYN.js → directive-helpers.DBHob-_L.js} +1 -1
- package/library/chunks/{dom.DDszM5Cy.js → dom.CaZCTJCL.js} +1 -1
- package/library/chunks/{dot-pagination.Ci2f-RDI.js → dot-pagination.Bl8K-G8Q.js} +5 -5
- package/library/chunks/{file-on-demand.DKBPqNSf.js → file-on-demand.BQR4rKDc.js} +15 -15
- package/library/chunks/{folder-select.BY9NfYq8.js → folder-select.ez3fKPUF.js} +10 -10
- package/library/chunks/{form-control.styles.j0hNjZTU.js → form-control.styles.NE2Q-quE.js} +1 -1
- package/library/chunks/{form.BY8-x3IU.js → form.DycFDdkp.js} +1 -1
- package/library/chunks/{guard.L-Ctqt3S.js → guard.BDP4A85K.js} +1 -1
- package/library/chunks/{header.55H9vN7t.js → header.BZiLoNKd.js} +8 -8
- package/library/chunks/{hub-connection.BiLljnv2.js → hub-connection.CxfaT11o.js} +2 -2
- package/library/chunks/{if-defined.CKupVaWs.js → if-defined.MfEgpxEN.js} +1 -1
- package/library/chunks/{iframe.BYMxR3Sc.js → iframe.BULqQVyL.js} +4 -4
- package/library/chunks/{image.qBD2O7kA.js → image.CRz6QPaa.js} +42 -39
- package/library/chunks/{list-editor.BT8jyXOn.js → list-editor.c__KOqBj.js} +11 -11
- package/library/chunks/{live.DCdtYl87.js → live.LdB9xEhp.js} +2 -2
- package/library/chunks/{mailchimp.ZMIYWF8f.js → mailchimp.BjbPJfd-.js} +1 -1
- package/library/chunks/{option.DrGgLWa5.js → option.Bx0TQ3Aw.js} +4 -4
- package/library/chunks/{orangelogic.B9VE3Ocx.js → orangelogic.BgbQXkBv.js} +1 -1
- package/library/chunks/{overlayscrollbars.BhATcEys.js → overlayscrollbars.aFuRG5Rs.js} +1 -1
- package/library/chunks/{popup.dmeEbJcf.js → popup.DjWAljHx.js} +99 -99
- package/library/chunks/{ref.BDmlFGTP.js → ref.BaCjlzLO.js} +2 -2
- package/library/chunks/{repeat.B1pVpmRx.js → repeat.CauKaXyy.js} +2 -2
- package/library/chunks/{select.Bc4UXmFy.js → select.kCK7Ljie.js} +11 -11
- package/library/chunks/{state.Dt9F_SuS.js → state.Cw55xXlb.js} +1 -1
- package/library/chunks/{static.kLXgh3Gq.js → static.BjNkqt7_.js} +1 -1
- package/library/chunks/{style-map.lEJHEwk3.js → style-map.CZovMmo_.js} +1 -1
- package/library/chunks/{tab-group.BHNXl1XO.js → tab-group.D5JZyPZM.js} +8 -8
- package/library/chunks/{table.CNDxXSQ-.js → table.D_DSVLyS.js} +11 -11
- package/library/chunks/{timecode.DYwU2oVN.js → timecode.D4_FNCCI.js} +4 -4
- package/library/chunks/{tree.CwqbM4ad.js → tree.DmH2Ckn-.js} +22 -21
- package/library/chunks/{typography.trna8y2b.js → typography.BFpl0WMA.js} +2 -2
- package/library/chunks/{unsafe-html.BpqikVtf.js → unsafe-html.DyO9_Rsq.js} +1 -1
- package/library/components/alert.js +4 -4
- package/library/components/animated-image.js +3 -3
- package/library/components/animation.js +3 -3
- package/library/components/asset-link-format.js +89 -80
- package/library/components/atoms.js +18 -18
- package/library/components/avatar.js +4 -4
- package/library/components/badge.js +3 -3
- package/library/components/bicolor-picker.js +3 -3
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb-item.js +5 -5
- package/library/components/breadcrumb.js +2 -2
- package/library/components/button-group.js +3 -3
- package/library/components/button.js +9 -9
- package/library/components/card.js +3 -3
- package/library/components/checkbox.js +9 -9
- package/library/components/color-picker.js +10 -10
- package/library/components/color-swatch-group.js +13 -13
- package/library/components/color-swatch.js +10 -10
- package/library/components/confirm-popover.js +7 -7
- package/library/components/copy-button.js +4 -4
- package/library/components/corner-position-input-group.js +4 -4
- package/library/components/cropper.js +4 -4
- package/library/components/details.js +7 -4
- package/library/components/dialog.js +9 -9
- package/library/components/divider.js +2 -2
- package/library/components/dot-pagination.js +6 -6
- package/library/components/dot-status.js +3 -3
- package/library/components/drawer.js +11 -11
- package/library/components/dropdown.js +7 -10
- package/library/components/dynamic-select.js +7 -7
- package/library/components/element-clamp.js +5 -5
- package/library/components/file-on-demand.js +15 -15
- package/library/components/folder-select.js +6 -6
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +3 -3
- package/library/components/grid-item.js +3 -3
- package/library/components/grid.js +4 -4
- package/library/components/header.js +6 -6
- package/library/components/hub-connection.js +3 -3
- package/library/components/icon-button.js +15 -12
- package/library/components/icon.js +8 -8
- package/library/components/iframe.js +5 -5
- package/library/components/image-comparer.js +4 -4
- package/library/components/image.js +8 -8
- package/library/components/include.js +2 -2
- package/library/components/input-group.js +3 -3
- package/library/components/input.js +25 -25
- package/library/components/line-clamp.js +5 -5
- package/library/components/list-editor.js +11 -11
- package/library/components/markdown.js +3 -3
- package/library/components/masonry.js +43 -43
- package/library/components/menu-item.js +10 -8
- package/library/components/menu-label.js +2 -2
- package/library/components/menu-section.js +2 -2
- package/library/components/menu.js +3 -3
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +2 -2
- package/library/components/option.js +5 -5
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +3 -3
- package/library/components/pagination.js +9 -9
- package/library/components/popup.js +4 -4
- package/library/components/position-picker.js +2 -2
- package/library/components/progress-bar.js +5 -5
- package/library/components/progress-ring.js +3 -3
- package/library/components/qr-code.js +3 -3
- package/library/components/radio-button.js +7 -7
- package/library/components/radio-card.js +4 -4
- package/library/components/radio-group.js +8 -8
- package/library/components/radio.js +4 -4
- package/library/components/range.js +13 -13
- package/library/components/rating.js +7 -7
- package/library/components/relative-time.js +2 -2
- package/library/components/resize-observer.js +2 -2
- package/library/components/select.js +12 -12
- package/library/components/shadow-input-group.js +3 -3
- package/library/components/share-option-list.js +17 -17
- package/library/components/sidebar.js +4 -4
- package/library/components/size-input-group.js +5 -5
- package/library/components/skeleton.js +3 -3
- package/library/components/space.js +2 -2
- package/library/components/spinner.js +2 -2
- package/library/components/split-panel.js +19 -16
- package/library/components/step.js +4 -4
- package/library/components/stepper-wizard.js +4 -4
- package/library/components/stepper.js +4 -4
- package/library/components/switch.js +9 -9
- package/library/components/tab-group.js +9 -9
- package/library/components/tab-panel.js +3 -3
- package/library/components/tab.js +3 -3
- package/library/components/table.js +6 -6
- package/library/components/tag.js +3 -3
- package/library/components/textarea.js +9 -9
- package/library/components/timecode.js +5 -5
- package/library/components/tooltip.js +25 -22
- package/library/components/tree-item.js +7 -7
- package/library/components/tree.js +4 -4
- package/library/components/typeface.js +5 -5
- package/library/components/types.js +2900 -2890
- package/library/components/typography.js +3 -3
- package/library/components/video.js +8 -5
- package/library/components/visually-hidden.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/button/button.d.ts +4 -0
- package/library/packages/atoms/src/components/details/details.d.ts +1 -0
- package/library/packages/atoms/src/components/dialog/dialog.d.ts +1 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +1 -1
- package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +1 -2
- package/library/packages/atoms/src/components/header/header.d.ts +1 -1
- package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +3 -1
- package/library/packages/atoms/src/components/image/image.d.ts +1 -0
- package/library/packages/atoms/src/components/input/input.d.ts +1 -1
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +1 -1
- package/library/packages/atoms/src/components/popup/popup.d.ts +1 -1
- package/library/packages/atoms/src/components/split-panel/split-panel.d.ts +1 -0
- package/library/packages/atoms/src/components/tooltip/tooltip.d.ts +1 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +1 -1
- package/library/packages/atoms/src/components/video/video.d.ts +1 -0
- package/library/packages/base/src/cortex-element.d.ts +2 -0
- package/library/packages/molecules/src/3d-viewer/3d-viewer.d.ts +1 -5
- package/library/packages/molecules/src/3d-viewer/components/3d-viewer-config/3d-viewer-config.d.ts +1 -1
- package/library/packages/molecules/src/masonry/masonry.d.ts +1 -1
- package/library/packages/molecules/src/page-outline/page-outline.d.ts +1 -1
- package/library/packages/molecules/src/search-box/search-box.d.ts +1 -0
- package/library/packages/molecules/src/share-option-list/share-option-list.d.ts +2 -2
- package/library/packages/molecules/src/view-and-sort/view-and-sort.d.ts +1 -1
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +1 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +1 -1
- package/library/packages/organisms/src/carousel/carousel.d.ts +2 -1
- package/library/packages/organisms/src/cluster-management/cluster-management.d.ts +1 -0
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.d.ts +1 -0
- package/library/packages/organisms/src/comment/components/comment-menu/comment-menu.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +1 -2
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/rte-image-viewer.d.ts +1 -0
- package/library/packages/organisms/src/video-editor/components/video-editor-timeline/video-editor-timeline.d.ts +1 -0
- package/library/packages/organisms/src/video-editor/components/video-editor-track/video-editor-track.d.ts +1 -1
- package/library/packages/organisms/src/video-editor/components/video-editor-tracks/video-editor-tracks.d.ts +1 -1
- package/library/packages/organisms/src/video-editor/video-editor.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import G from "../components/icon.js";
|
|
2
2
|
import Z from "../components/input.js";
|
|
3
|
-
import { C as J } from "./select.
|
|
4
|
-
import { C as x, a as K } from "./tree.
|
|
5
|
-
import { n as r, C as I, x as f, c as w, i as X } from "./custom-element.
|
|
3
|
+
import { C as J } from "./select.kCK7Ljie.js";
|
|
4
|
+
import { C as x, a as K } from "./tree.DmH2Ckn-.js";
|
|
5
|
+
import { n as r, C as I, x as f, c as w, i as X } from "./custom-element.vnXBMQxc.js";
|
|
6
6
|
import { h as k, F as Y, b as A } from "./endpoints.BgyupJys.js";
|
|
7
|
-
import { c as R } from "./component.styles.
|
|
7
|
+
import { c as R } from "./component.styles.CI-v8BZa.js";
|
|
8
8
|
import { L as V } from "./i18n.CXUGdxzx.js";
|
|
9
9
|
import { w as m } from "./watch.BCJD77bD.js";
|
|
10
|
-
import { r as y } from "./state.
|
|
10
|
+
import { r as y } from "./state.Cw55xXlb.js";
|
|
11
11
|
import { e as B } from "./query.BBf1UFkC.js";
|
|
12
12
|
import { r as ee } from "./choose.BTbF6BAn.js";
|
|
13
|
-
import { C as q } from "./button.
|
|
14
|
-
import { d as te } from "./popup.
|
|
15
|
-
import { o as S } from "./if-defined.
|
|
16
|
-
import { c as W } from "./repeat.
|
|
13
|
+
import { C as q } from "./button.DCaz7tVb.js";
|
|
14
|
+
import { d as te } from "./popup.DjWAljHx.js";
|
|
15
|
+
import { o as S } from "./if-defined.MfEgpxEN.js";
|
|
16
|
+
import { c as W } from "./repeat.CauKaXyy.js";
|
|
17
17
|
import { n as O } from "./when.Dr1es41R.js";
|
|
18
18
|
import re from "../components/line-clamp.js";
|
|
19
19
|
import se from "../components/space.js";
|
|
20
20
|
import { M } from "./asset-link-format.BSRDqHg7.js";
|
|
21
|
-
import { e as ae } from "./class-map.
|
|
21
|
+
import { e as ae } from "./class-map.CoZTSvbM.js";
|
|
22
22
|
var v = /* @__PURE__ */ ((e) => (e.CortexPath = "Document.CortexPath", e.DocType = "CoreField.DocType", e.HasBrowserChildren = "Document.HasBrowserChildren", e.RepresentativeAssetId = "Document.DocumentDirectRepresentativeRID", e.TitleWithFallback = "CoreField.TitleWithFallback", e))(v || {});
|
|
23
23
|
const le = 50;
|
|
24
24
|
async function U({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as m } from "./dom.
|
|
1
|
+
import { s as m } from "./dom.CaZCTJCL.js";
|
|
2
2
|
const n = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakSet(), f = /* @__PURE__ */ new WeakMap();
|
|
3
3
|
class v {
|
|
4
4
|
constructor(e, s) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import k from "../components/copy-button.js";
|
|
2
|
-
import { i as u, n as c, C as b, c as x } from "./custom-element.
|
|
3
|
-
import { c as v } from "./component.styles.
|
|
2
|
+
import { i as u, n as c, C as b, c as x } from "./custom-element.vnXBMQxc.js";
|
|
3
|
+
import { c as v } from "./component.styles.CI-v8BZa.js";
|
|
4
4
|
import { L as y } from "./i18n.CXUGdxzx.js";
|
|
5
5
|
import { w } from "./watch.BCJD77bD.js";
|
|
6
6
|
import { e as m } from "./query.BBf1UFkC.js";
|
|
7
|
-
import { e as g } from "./class-map.
|
|
8
|
-
import { o as P } from "./style-map.
|
|
7
|
+
import { e as g } from "./class-map.CoZTSvbM.js";
|
|
8
|
+
import { o as P } from "./style-map.CZovMmo_.js";
|
|
9
9
|
import { n as z } from "./when.Dr1es41R.js";
|
|
10
|
-
import { i as l, u as h } from "./static.
|
|
10
|
+
import { i as l, u as h } from "./static.BjNkqt7_.js";
|
|
11
11
|
const C = u`
|
|
12
12
|
.column-resize-handle {
|
|
13
13
|
background-color: var(--editor-table-resize-handle-color);
|
|
@@ -639,12 +639,12 @@ let o = class extends b {
|
|
|
639
639
|
return this.hasAnchorLink && (this.anchorLink || this.textContent?.trim().replace(/\s+/g, "-").toLowerCase()) || "";
|
|
640
640
|
}
|
|
641
641
|
runFirstUpdated() {
|
|
642
|
-
|
|
642
|
+
setTimeout(() => {
|
|
643
643
|
this.scrollToAnchor();
|
|
644
644
|
}, 200);
|
|
645
645
|
}
|
|
646
|
-
|
|
647
|
-
|
|
646
|
+
runConnectedCallback() {
|
|
647
|
+
this.addEventListener("click", this.handleClick), this.setAttribute("role", "heading"), this.hasAnchorLink && (this.ownerWindow.addEventListener("hashchange", this.scrollToAnchor), this.ownerWindow.addEventListener(
|
|
648
648
|
"cx-cms5-page-ready",
|
|
649
649
|
this.handleCMS5PageReady,
|
|
650
650
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as K, n as T, c as X } from "./custom-element.
|
|
1
|
+
import { C as K, n as T, c as X } from "./custom-element.vnXBMQxc.js";
|
|
2
2
|
import { w as J } from "./watch.BCJD77bD.js";
|
|
3
|
-
import { r as F } from "./state.
|
|
3
|
+
import { r as F } from "./state.Cw55xXlb.js";
|
|
4
4
|
class v extends Error {
|
|
5
5
|
/** Constructs a new instance of {@link @microsoft/signalr.HttpError}.
|
|
6
6
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as d, n as r, C as h, x as p, c as y } from "./custom-element.
|
|
2
|
-
import { c as u } from "./component.styles.
|
|
1
|
+
import { i as d, n as r, C as h, x as p, c as y } from "./custom-element.vnXBMQxc.js";
|
|
2
|
+
import { c as u } from "./component.styles.CI-v8BZa.js";
|
|
3
3
|
import { L as g } from "./i18n.CXUGdxzx.js";
|
|
4
4
|
import { w as v } from "./watch.BCJD77bD.js";
|
|
5
5
|
import { e as b } from "./query.BBf1UFkC.js";
|
|
6
|
-
import { e as x } from "./class-map.
|
|
7
|
-
import { o as f } from "./if-defined.
|
|
6
|
+
import { e as x } from "./class-map.CoZTSvbM.js";
|
|
7
|
+
import { o as f } from "./if-defined.MfEgpxEN.js";
|
|
8
8
|
import { n as w } from "./when.Dr1es41R.js";
|
|
9
9
|
var m = /* @__PURE__ */ ((a) => (a.Eager = "eager", a.Lazy = "lazy", a))(m || {});
|
|
10
10
|
const _ = d`
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { C as Le, n as c, x as T, i as se, E as Re, c as He } from "./custom-element.
|
|
2
|
-
import { r as H } from "./state.
|
|
3
|
-
import { e as
|
|
1
|
+
import { C as Le, n as c, x as T, i as se, E as Re, c as He } from "./custom-element.vnXBMQxc.js";
|
|
2
|
+
import { r as H } from "./state.Cw55xXlb.js";
|
|
3
|
+
import { e as X } from "./query.BBf1UFkC.js";
|
|
4
4
|
import { E as $e, b as de, a as We } from "./index.Cpamj0jB.js";
|
|
5
|
-
import { c as Ae } from "./component.styles.
|
|
6
|
-
import { C as Oe, d as Me } from "./popup.
|
|
5
|
+
import { c as Ae } from "./component.styles.CI-v8BZa.js";
|
|
6
|
+
import { C as Oe, d as Me } from "./popup.DjWAljHx.js";
|
|
7
7
|
import { L as De } from "./i18n.CXUGdxzx.js";
|
|
8
|
-
import { w as
|
|
9
|
-
import { e as j } from "./class-map.
|
|
10
|
-
import { o as je } from "./if-defined.
|
|
11
|
-
import { o as Te } from "./style-map.
|
|
8
|
+
import { w as q } from "./watch.BCJD77bD.js";
|
|
9
|
+
import { e as j } from "./class-map.CoZTSvbM.js";
|
|
10
|
+
import { o as je } from "./if-defined.MfEgpxEN.js";
|
|
11
|
+
import { o as Te } from "./style-map.CZovMmo_.js";
|
|
12
12
|
import { n as V } from "./when.Dr1es41R.js";
|
|
13
13
|
import Be from "../components/icon.js";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
14
|
+
import Ze from "../components/resize-observer.js";
|
|
15
|
+
import Ie from "../components/skeleton.js";
|
|
16
16
|
import Ne from "../components/space.js";
|
|
17
17
|
var Pe = /* @__PURE__ */ ((e) => (e.Bottom = "bottom", e.BottomCenter = "bottom-center", e.BottomLeft = "bottom-left", e.BottomRight = "bottom-right", e.CenterCenter = "center-center", e.CenterLeft = "center-left", e.CenterRight = "center-right", e.Left = "left", e.Right = "right", e.Top = "top", e.TopCenter = "top-center", e.TopLeft = "top-left", e.TopRight = "top-right", e))(Pe || {}), Y = /* @__PURE__ */ ((e) => (e.Jump = "jump", e.None = "none", e.TextReveal = "text-reveal", e.Zoom = "zoom", e))(Y || {}), ge = /* @__PURE__ */ ((e) => (e.PopOut = "pop-out", e.WithinBorders = "within-borders", e))(ge || {}), ue = /* @__PURE__ */ ((e) => (e.Fade = "fade", e.Slide = "slide", e))(ue || {}), ne = /* @__PURE__ */ ((e) => (e.Auto = "auto", e.Fixed = "fixed", e))(ne || {}), Ve = Object.defineProperty, E = (e, t, o, h) => {
|
|
18
18
|
for (var r = void 0, g = e.length - 1, p; g >= 0; g--)
|
|
@@ -52,7 +52,7 @@ class S extends Le {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
E([
|
|
55
|
-
|
|
55
|
+
X("slot")
|
|
56
56
|
], S.prototype, "slotEl");
|
|
57
57
|
E([
|
|
58
58
|
c({ attribute: "has-event", reflect: !0, type: Boolean })
|
|
@@ -169,7 +169,7 @@ class A extends S {
|
|
|
169
169
|
event: t
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
|
-
const
|
|
172
|
+
const Z = ($) => {
|
|
173
173
|
g = Number(C.width) + (o ? r.x - $.pageX : $.pageX - r.x), p = Number(C.height) + (h ? r.y - $.pageY : $.pageY - r.y), this.keepRatio && (p >= g / this.ratio && (p = g / this.ratio), g >= p * this.ratio && (g = p * this.ratio));
|
|
174
174
|
let f = g, v = p;
|
|
175
175
|
if (this.keepRatio) {
|
|
@@ -182,7 +182,7 @@ class A extends S {
|
|
|
182
182
|
height: Math.round(v),
|
|
183
183
|
width: Math.round(f)
|
|
184
184
|
}, this.keepRatio ? (this.minHeight && this.resizeSize.height < this.minHeight && (this.resizeSize.height = this.minHeight, this.resizeSize.width = Math.round(this.minHeight * this.ratio)), this.minWidth && this.resizeSize.width < this.minWidth && (this.resizeSize.width = this.minWidth, this.resizeSize.height = Math.round(this.minWidth / this.ratio))) : (this.minHeight && this.resizeSize.height < this.minHeight && (this.resizeSize.height = this.minHeight), this.minWidth && this.resizeSize.width < this.minWidth && (this.resizeSize.width = this.minWidth));
|
|
185
|
-
},
|
|
185
|
+
}, I = ($) => {
|
|
186
186
|
if (g > 0 && p > 0) {
|
|
187
187
|
let f = g, v = p;
|
|
188
188
|
if (this.keepRatio) {
|
|
@@ -203,13 +203,13 @@ class A extends S {
|
|
|
203
203
|
}
|
|
204
204
|
}), this.ownerDocument.defaultView?.removeEventListener(
|
|
205
205
|
"mousemove",
|
|
206
|
-
|
|
206
|
+
Z
|
|
207
207
|
);
|
|
208
208
|
};
|
|
209
209
|
this.ownerDocument.defaultView?.addEventListener(
|
|
210
210
|
"mousemove",
|
|
211
|
-
|
|
212
|
-
), this.ownerDocument.defaultView?.addEventListener("mouseup",
|
|
211
|
+
Z
|
|
212
|
+
), this.ownerDocument.defaultView?.addEventListener("mouseup", I, {
|
|
213
213
|
once: !0
|
|
214
214
|
});
|
|
215
215
|
}
|
|
@@ -247,7 +247,7 @@ class A extends S {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
O([
|
|
250
|
-
|
|
250
|
+
X('[part="base"]')
|
|
251
251
|
], A.prototype, "containingElement");
|
|
252
252
|
O([
|
|
253
253
|
c({ reflect: !0, type: String })
|
|
@@ -335,9 +335,9 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
335
335
|
}, Ye = function(t) {
|
|
336
336
|
var o = document.createElement("div");
|
|
337
337
|
return o.classList.add("medium-zoom-overlay"), o.style.background = t, o;
|
|
338
|
-
},
|
|
339
|
-
var o = t.getBoundingClientRect(), h = o.top, r = o.left, g = o.width, p = o.height, C = t.cloneNode(),
|
|
340
|
-
return C.removeAttribute("id"), C.style.position = "absolute", C.style.top = h +
|
|
338
|
+
}, qe = function(t) {
|
|
339
|
+
var o = t.getBoundingClientRect(), h = o.top, r = o.left, g = o.width, p = o.height, C = t.cloneNode(), Z = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, I = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
|
|
340
|
+
return C.removeAttribute("id"), C.style.position = "absolute", C.style.top = h + Z + "px", C.style.left = r + I + "px", C.style.width = g + "px", C.style.height = p + "px", C.style.transform = "", C;
|
|
341
341
|
}, F = function(t, o) {
|
|
342
342
|
var h = B({
|
|
343
343
|
bubbles: !1,
|
|
@@ -348,7 +348,7 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
348
348
|
return new CustomEvent(t, h);
|
|
349
349
|
var r = document.createEvent("CustomEvent");
|
|
350
350
|
return r.initCustomEvent(t, h.bubbles, h.cancelable, h.detail), r;
|
|
351
|
-
},
|
|
351
|
+
}, Xe = function e(t) {
|
|
352
352
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, h = window.Promise || function(a) {
|
|
353
353
|
function n() {
|
|
354
354
|
}
|
|
@@ -379,10 +379,10 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
379
379
|
detail: { zoom: b }
|
|
380
380
|
}));
|
|
381
381
|
}), b;
|
|
382
|
-
},
|
|
382
|
+
}, Z = function() {
|
|
383
383
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
384
384
|
return e(B({}, d, a));
|
|
385
|
-
},
|
|
385
|
+
}, I = function() {
|
|
386
386
|
for (var a = arguments.length, n = Array(a), u = 0; u < a; u++)
|
|
387
387
|
n[u] = arguments[u];
|
|
388
388
|
var z = n.reduce(function(s, w) {
|
|
@@ -475,7 +475,7 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
475
475
|
}
|
|
476
476
|
if (i.original.dispatchEvent(F("medium-zoom:open", {
|
|
477
477
|
detail: { zoom: b }
|
|
478
|
-
})), he = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, N = !0, i.zoomed =
|
|
478
|
+
})), he = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, N = !0, i.zoomed = qe(i.original), document.body.appendChild(J), d.template) {
|
|
479
479
|
var W = ee(d.template) ? d.template : document.querySelector(d.template);
|
|
480
480
|
i.template = document.createElement("div"), i.template.appendChild(W.content.cloneNode(!0)), document.body.appendChild(i.template);
|
|
481
481
|
}
|
|
@@ -527,7 +527,7 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
527
527
|
template: null
|
|
528
528
|
// If the selector is omitted, it's replaced by the options
|
|
529
529
|
};
|
|
530
|
-
Object.prototype.toString.call(t) === "[object Object]" ? d = t : (t || typeof t == "string") &&
|
|
530
|
+
Object.prototype.toString.call(t) === "[object Object]" ? d = t : (t || typeof t == "string") && I(t), d = B({
|
|
531
531
|
margin: 0,
|
|
532
532
|
background: "#fff",
|
|
533
533
|
scrollOffset: 40,
|
|
@@ -541,8 +541,8 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
541
541
|
close: y,
|
|
542
542
|
toggle: R,
|
|
543
543
|
update: C,
|
|
544
|
-
clone:
|
|
545
|
-
attach:
|
|
544
|
+
clone: Z,
|
|
545
|
+
attach: I,
|
|
546
546
|
detach: $,
|
|
547
547
|
on: f,
|
|
548
548
|
off: v,
|
|
@@ -980,6 +980,9 @@ let l = class extends A {
|
|
|
980
980
|
runFirstUpdated() {
|
|
981
981
|
this.theme = this.getTheme();
|
|
982
982
|
}
|
|
983
|
+
runConnectedCallback() {
|
|
984
|
+
this.hasUpdated && this.requestUpdate("canZoom");
|
|
985
|
+
}
|
|
983
986
|
disconnectedCallback() {
|
|
984
987
|
super.disconnectedCallback(), this.zoom && this.zoom.detach();
|
|
985
988
|
}
|
|
@@ -1014,7 +1017,7 @@ let l = class extends A {
|
|
|
1014
1017
|
this.isLoaded = !1, this.isError = !1;
|
|
1015
1018
|
}
|
|
1016
1019
|
async initZoom() {
|
|
1017
|
-
this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom =
|
|
1020
|
+
this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = Xe(this.zoomImageElement, {
|
|
1018
1021
|
background: "light-dark(rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.8))",
|
|
1019
1022
|
margin: 0,
|
|
1020
1023
|
scrollOffset: 0
|
|
@@ -1183,18 +1186,18 @@ l.styles = [Ae, _e, Qe];
|
|
|
1183
1186
|
l.dependencies = {
|
|
1184
1187
|
"cx-icon": Be,
|
|
1185
1188
|
"cx-popup": Oe,
|
|
1186
|
-
"cx-resize-observer":
|
|
1187
|
-
"cx-skeleton":
|
|
1189
|
+
"cx-resize-observer": Ze,
|
|
1190
|
+
"cx-skeleton": Ie,
|
|
1188
1191
|
"cx-space": Ne
|
|
1189
1192
|
};
|
|
1190
1193
|
m([
|
|
1191
|
-
|
|
1194
|
+
X(".image")
|
|
1192
1195
|
], l.prototype, "imageElement", 2);
|
|
1193
1196
|
m([
|
|
1194
|
-
|
|
1197
|
+
X(".zoom-image")
|
|
1195
1198
|
], l.prototype, "zoomImageElement", 2);
|
|
1196
1199
|
m([
|
|
1197
|
-
|
|
1200
|
+
X(".highlighter")
|
|
1198
1201
|
], l.prototype, "highlighterElement", 2);
|
|
1199
1202
|
m([
|
|
1200
1203
|
H()
|
|
@@ -1248,15 +1251,15 @@ m([
|
|
|
1248
1251
|
H()
|
|
1249
1252
|
], l.prototype, "parsedAltDarkMode", 2);
|
|
1250
1253
|
m([
|
|
1251
|
-
|
|
1252
|
-
|
|
1254
|
+
q("isLoaded"),
|
|
1255
|
+
q("canZoom", { waitUntilFirstUpdate: !0 })
|
|
1253
1256
|
], l.prototype, "handleCanZoomChange", 1);
|
|
1254
1257
|
m([
|
|
1255
|
-
|
|
1258
|
+
q("objectFit", { waitUntilFirstUpdate: !0 })
|
|
1256
1259
|
], l.prototype, "handleObjectFitChange", 1);
|
|
1257
1260
|
m([
|
|
1258
|
-
|
|
1259
|
-
|
|
1261
|
+
q("src"),
|
|
1262
|
+
q("srcDarkMode")
|
|
1260
1263
|
], l.prototype, "handleSrcChange", 1);
|
|
1261
1264
|
m([
|
|
1262
1265
|
Me(100)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as _ } from "./button.
|
|
2
|
-
import { C as z } from "./dialog.
|
|
1
|
+
import { C as _ } from "./button.DCaz7tVb.js";
|
|
2
|
+
import { C as z } from "./dialog.Cj9XqgFc.js";
|
|
3
3
|
import M from "../components/grid.js";
|
|
4
4
|
import q from "../components/grid-item.js";
|
|
5
5
|
import C from "../components/input.js";
|
|
@@ -7,22 +7,22 @@ import T from "../components/line-clamp.js";
|
|
|
7
7
|
import R from "../components/radio.js";
|
|
8
8
|
import O from "../components/radio-group.js";
|
|
9
9
|
import $ from "../components/space.js";
|
|
10
|
-
import { C as P, H as k } from "./table.
|
|
11
|
-
import { C as I } from "./typography.
|
|
12
|
-
import { i as A, n, C as w, x as l, c as E } from "./custom-element.
|
|
13
|
-
import { c as D } from "./component.styles.
|
|
14
|
-
import { d as F } from "./popup.
|
|
10
|
+
import { C as P, H as k } from "./table.D_DSVLyS.js";
|
|
11
|
+
import { C as I } from "./typography.BFpl0WMA.js";
|
|
12
|
+
import { i as A, n, C as w, x as l, c as E } from "./custom-element.vnXBMQxc.js";
|
|
13
|
+
import { c as D } from "./component.styles.CI-v8BZa.js";
|
|
14
|
+
import { d as F } from "./popup.DjWAljHx.js";
|
|
15
15
|
import { L as S } from "./i18n.CXUGdxzx.js";
|
|
16
16
|
import { w as g } from "./watch.BCJD77bD.js";
|
|
17
|
-
import { r as x } from "./state.
|
|
17
|
+
import { r as x } from "./state.Cw55xXlb.js";
|
|
18
18
|
import { e as b } from "./query.BBf1UFkC.js";
|
|
19
19
|
import { r as j } from "./choose.BTbF6BAn.js";
|
|
20
|
-
import { e as L } from "./class-map.
|
|
21
|
-
import { c as y } from "./repeat.
|
|
20
|
+
import { e as L } from "./class-map.CoZTSvbM.js";
|
|
21
|
+
import { c as y } from "./repeat.CauKaXyy.js";
|
|
22
22
|
import { n as m } from "./when.Dr1es41R.js";
|
|
23
23
|
import { t as B } from "./toString.CL_lYXbK.js";
|
|
24
24
|
import H from "../components/icon-button.js";
|
|
25
|
-
import { C as N } from "./image.
|
|
25
|
+
import { C as N } from "./image.CRz6QPaa.js";
|
|
26
26
|
import { t as U, a as G, D as v } from "./asset.Ba-CxnNM.js";
|
|
27
27
|
import { a as V } from "./index.Cpamj0jB.js";
|
|
28
28
|
import { A as u } from "./content-builder.UlVFSATk.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as n, E as s } from "./custom-element.
|
|
1
|
+
import { T as n, E as s } from "./custom-element.vnXBMQxc.js";
|
|
2
2
|
import { e as T, i as f, t } from "./directive.oAbCiebi.js";
|
|
3
|
-
import { f as l, m as p } from "./directive-helpers.
|
|
3
|
+
import { f as l, m as p } from "./directive-helpers.DBHob-_L.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2020 Google LLC
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as x, n as r, C as v, x as h, c as m } from "./custom-element.
|
|
2
|
-
import { c as g } from "./component.styles.
|
|
1
|
+
import { i as x, n as r, C as v, x as h, c as m } from "./custom-element.vnXBMQxc.js";
|
|
2
|
+
import { c as g } from "./component.styles.CI-v8BZa.js";
|
|
3
3
|
import { L as b } from "./i18n.CXUGdxzx.js";
|
|
4
4
|
import { w as d } from "./watch.BCJD77bD.js";
|
|
5
|
-
import { r as f } from "./state.
|
|
5
|
+
import { r as f } from "./state.Cw55xXlb.js";
|
|
6
6
|
import { e as _ } from "./query.BBf1UFkC.js";
|
|
7
|
-
import { e as y } from "./class-map.
|
|
7
|
+
import { e as y } from "./class-map.CoZTSvbM.js";
|
|
8
8
|
import { n as u } from "./when.Dr1es41R.js";
|
|
9
9
|
import k from "../components/icon.js";
|
|
10
10
|
import w from "../components/space.js";
|