@orangelogic/design-system 2.78.0 → 2.79.0-ci.2
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/{AxisLabelRadial.BTpA5dYy.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
- package/library/chunks/{BaseColumnSeries.hIO71GLG.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
- package/library/chunks/{CandlestickSeries.w9C0GR9v.js → CandlestickSeries.CkXGtRWE.js} +2 -2
- package/library/chunks/{Circle.tOnnO-F-.js → Circle.DBa5Ok8V.js} +1 -1
- package/library/chunks/{ColumnSeries.Ckz75x1M.js → ColumnSeries.DGazbfza.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CCMTJT7K.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
- package/library/chunks/{EditableLabel.DPmicdjK.js → EditableLabel.BWeq6fgX.js} +1 -1
- package/library/chunks/{Gradient.BrDBLm8v.js → Gradient.CdcsPIru.js} +1 -1
- package/library/chunks/{LinearGradient.CxfXxvMw.js → LinearGradient.B1z9AGUt.js} +2 -2
- package/library/chunks/{Picture.BNASYM-P.js → Picture.YSPC0l0Q.js} +1 -1
- package/library/chunks/{Polygon.Dr-GV2hn.js → Polygon.BwMvXN2H.js} +1 -1
- package/library/chunks/{ProgressPie.4mPA6xqm.js → ProgressPie.DlCwXN17.js} +5 -5
- package/library/chunks/{RadialLabel.HfsGiN4x.js → RadialLabel.DyVOf2K8.js} +1 -1
- package/library/chunks/{Scrollbar.Bgg-RhjP.js → Scrollbar.BdZVb_Z-.js} +1 -1
- package/library/chunks/{Slice.Dm56LTKj.js → Slice.DiEswWa6.js} +1 -1
- package/library/chunks/{Slider.FKJwoPq2.js → Slider.C20No2z5.js} +1 -1
- package/library/chunks/{SpriteResizer.-qJDgug8.js → SpriteResizer.DFnmcy0h.js} +1 -1
- package/library/chunks/{Triangle.BECgi7mc.js → Triangle.BaOef7HV.js} +1 -1
- package/library/chunks/{ZoomTools.cgwuIB0e.js → ZoomTools.D5JPehoL.js} +1 -1
- package/library/chunks/{am-chart.oZVBmpnn.js → am-chart.H2jnOzFc.js} +253 -261
- package/library/chunks/{animation.DU8t6mrk.js → animation.7ifl4x2S.js} +3 -7
- package/library/chunks/{button.DS64Tr8Z.js → button.B-ktz-w4.js} +7 -40
- package/library/chunks/button.styles.CKqn956w.js +5 -0
- package/library/chunks/{color-swatch-group.C7T6-sY7.js → color-swatch-group.DvllHUil.js} +46 -216
- package/library/chunks/{color-swatch.BuUP5yG4.js → color-swatch.Bx-HOp9f.js} +18 -202
- package/library/chunks/{colorPicker.C4w_vDjh.js → colorPicker.06n6P3aK.js} +5 -5
- package/library/chunks/component.styles.CRO4Odto.js +5 -0
- package/library/chunks/confirm-popover.BbHneK19.js +121 -0
- package/library/chunks/{cropper.D1lO3pl-.js → cropper.DTokTzP9.js} +2533 -2904
- package/library/chunks/{dialog.BdXQkCKY.js → dialog.B1nzoJak.js} +40 -251
- package/library/chunks/dot-pagination.C26bQ3vy.js +204 -0
- package/library/chunks/{exporting.BdjsEGF8.js → exporting.Chnl3UWi.js} +2 -2
- package/library/chunks/file-on-demand.D_Mia7M9.js +1956 -0
- package/library/chunks/{flow.D0FqdfOy.js → flow.D2CqFQa7.js} +5 -5
- package/library/chunks/{folder-select.B2qxSKA5.js → folder-select.DOsefkAC.js} +20 -226
- package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
- package/library/chunks/{gantt.DfUM7Gvb.js → gantt.DSHD2gjO.js} +8 -8
- package/library/chunks/header.D68fIfe2.js +170 -0
- package/library/chunks/{hierarchy.5kfBCoGt.js → hierarchy.DwVsMmsP.js} +5 -5
- package/library/chunks/icon-button.BuhCp--_.js +149 -0
- package/library/chunks/iframe.BQFZQMTe.js +73 -0
- package/library/chunks/{image.DHBgKeJp.js → image.4eLWAZ3-.js} +16 -272
- package/library/chunks/{index.BkoLctE9.js → index.C9khsiad.js} +17 -17
- package/library/chunks/{json.BjaT7cyo.js → json.zyETMOw-.js} +3 -3
- package/library/chunks/{list-editor.DluUZa06.js → list-editor.DNa6ROgr.js} +45 -360
- package/library/chunks/{map.DbgNAGxD.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/option.DljDoFx4.js +123 -0
- package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
- package/library/chunks/{pagination.g4zErKN2.js → pagination.BiRyMwhM.js} +45 -141
- package/library/chunks/{percent.DO4FjAdu.js → percent.DuQwbCCg.js} +3 -3
- package/library/chunks/{radar.Dd5fJVMg.js → radar.FpYl3UH5.js} +4 -4
- package/library/chunks/{sliceGrouper.DA3aeuJ-.js → sliceGrouper.BsE7fGMt.js} +1 -1
- package/library/chunks/{stock.BfI5MUyK.js → stock.BR-ag4Pt.js} +9 -9
- package/library/chunks/{tab-group.Dg6a82ei.js → tab-group.9HbDE1AF.js} +30 -581
- package/library/chunks/{table.CcqrVieF.js → table.B8LpbiGE.js} +192 -2133
- package/library/chunks/{timeline.BxMLjB5J.js → timeline.DkzkmgEM.js} +5 -5
- package/library/chunks/{tree.OXvhEOjS.js → tree.q7xRVYyh.js} +31 -399
- package/library/chunks/typography.DJC_UXgs.js +52 -0
- package/library/chunks/{venn.CxFupTb9.js → venn.D739bOV3.js} +1 -1
- package/library/chunks/{wc.ThQubbN2.js → wc.DzW311D-.js} +1 -1
- package/library/chunks/{xy.q6e68du3.js → xy.DCRDfTsa.js} +10 -10
- package/library/components/alert.js +9 -177
- package/library/components/am-chart.js +2 -2
- package/library/components/animated-image.js +12 -100
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +7 -88
- package/library/components/asset-link-format.js +48 -626
- package/library/components/atoms.js +17 -17
- package/library/components/avatar.js +5 -94
- package/library/components/badge.js +11 -139
- package/library/components/bicolor-picker.js +4 -23
- package/library/components/border-input-group.js +4 -25
- package/library/components/breadcrumb-item.js +24 -155
- package/library/components/breadcrumb.js +3 -21
- package/library/components/button-group.js +3 -28
- package/library/components/button.js +3 -3
- package/library/components/card.js +4 -126
- package/library/components/checkbox.js +11 -252
- package/library/components/color-picker.js +54 -725
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +5 -5
- package/library/components/copy-button.js +9 -254
- package/library/components/corner-position-input-group.js +4 -57
- package/library/components/cropper.js +2 -2
- package/library/components/details.js +6 -152
- package/library/components/dialog.js +4 -4
- package/library/components/divider.js +5 -67
- package/library/components/dot-pagination.js +2 -2
- package/library/components/dot-status.js +25 -95
- package/library/components/drawer.js +8 -239
- package/library/components/dropdown.js +47 -149
- package/library/components/dynamic-select.js +7 -72
- package/library/components/e-chart.js +6 -49
- package/library/components/element-clamp.js +5 -78
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +3 -3
- package/library/components/format-date.js +2 -6
- package/library/components/format-time.js +2 -12
- package/library/components/grid-item.js +4 -171
- package/library/components/grid.js +5 -41
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/icon.js +8 -2448
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +7 -127
- package/library/components/image.js +2 -2
- package/library/components/include.js +2 -6
- package/library/components/input-group.js +4 -29
- package/library/components/input.js +21 -715
- package/library/components/line-clamp.js +7 -83
- package/library/components/list-editor.js +7 -7
- package/library/components/markdown.js +1 -3
- package/library/components/masonry.js +22 -221
- package/library/components/menu-item.js +9 -309
- package/library/components/menu-label.js +3 -20
- package/library/components/menu-section.js +3 -17
- package/library/components/menu.js +4 -112
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +2 -6
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +5 -16
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +204 -538
- package/library/components/position-picker.js +3 -93
- package/library/components/progress-bar.js +18 -135
- package/library/components/progress-ring.js +3 -94
- package/library/components/qr-code.js +4 -16
- package/library/components/radio-button.js +4 -24
- package/library/components/radio-card.js +7 -175
- package/library/components/radio-group.js +20 -151
- package/library/components/radio.js +13 -170
- package/library/components/range.js +120 -657
- package/library/components/rating.js +56 -236
- package/library/components/relative-time.js +2 -12
- package/library/components/resize-observer.js +3 -7
- package/library/components/select.js +225 -933
- package/library/components/shadow-input-group.js +5 -24
- package/library/components/share-option-list.js +18 -310
- package/library/components/sidebar.js +14 -220
- package/library/components/size-input-group.js +10 -75
- package/library/components/skeleton.js +7 -80
- package/library/components/space.js +6 -143
- package/library/components/spinner.js +6 -75
- package/library/components/split-panel.js +16 -123
- package/library/components/step.js +21 -272
- package/library/components/stepper-wizard.js +9 -43
- package/library/components/stepper.js +16 -33
- package/library/components/switch.js +11 -274
- package/library/components/tab-group.js +4 -4
- package/library/components/tab-panel.js +4 -31
- package/library/components/tab.js +9 -255
- package/library/components/table.js +6 -6
- package/library/components/tag.js +14 -165
- package/library/components/textarea.js +14 -363
- package/library/components/timecode.js +4 -23
- package/library/components/tooltip.js +8 -92
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +18 -117
- package/library/components/types.js +777 -12001
- package/library/components/typography.js +2 -2
- package/library/components/video.js +3522 -5919
- package/library/components/visually-hidden.js +3 -15
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
- package/library/packages/types/src/table.d.ts +2 -0
- package/library/react-web-component.d.ts +7 -3
- package/package.json +4 -1
- package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
- package/library/chunks/component.styles.DMSLciL5.js +0 -71
- package/library/chunks/confirm-popover.BNjRvnN0.js +0 -288
- package/library/chunks/dot-pagination.CIVxMAAS.js +0 -325
- package/library/chunks/file-on-demand.BTTdth3o.js +0 -3802
- package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
- package/library/chunks/header.m7v3M94Z.js +0 -777
- package/library/chunks/icon-button.C3eqeQl9.js +0 -683
- package/library/chunks/iframe.CNEyWhcM.js +0 -160
- package/library/chunks/option.Csqefux_.js +0 -296
- package/library/chunks/typography.oDzoLbZS.js +0 -149
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { n as r, C as g } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as p } from "./component.styles.CRO4Odto.js";
|
|
3
|
+
import { c as h } from "./custom-element.L4WJXn1j.js";
|
|
4
|
+
import { L as m } from "./i18n.BUW7B9hr.js";
|
|
5
|
+
import { r as f } from "./state.CSDxrqLd.js";
|
|
6
|
+
import { e as v } from "./query.BBf1UFkC.js";
|
|
7
|
+
import { e as y } from "./class-map.BiVq-cVR.js";
|
|
8
|
+
import { o as c } from "./if-defined.BRoBj_Rp.js";
|
|
9
|
+
import { n as k } from "./when.Dr1es41R.js";
|
|
10
|
+
import { i as d, u as b } from "./static.UA3G1Deq.js";
|
|
11
|
+
import _ from "../components/icon.js";
|
|
12
|
+
import w from "../components/spinner.js";
|
|
13
|
+
import { i as z } from "./lit-element.jLBm65_O.js";
|
|
14
|
+
var x = /* @__PURE__ */ ((o) => (o.Large = "large", o.Medium = "medium", o.Small = "small", o.XLarge = "x-large", o))(x || {});
|
|
15
|
+
const $ = z`:host{color:var(--cx-color-neutral-600);--group-divider-color:#80808054;display:inline-block}.icon-button{border-radius:var(--cx-border-radius-medium);font-size:inherit;color:inherit;padding:var(--cx-spacing-x-small);cursor:pointer;transition:var(--cx-transition-x-fast) color;background:0 0;border:none;flex:none;align-items:center;display:flex;position:relative}.icon-button:focus{outline:none}.icon-button--disabled{opacity:.5;cursor:default}.icon-button:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.icon-button__icon{pointer-events:none;margin:auto}.icon-button--small{font-size:var(--cx-font-size-x-small);padding:var(--cx-spacing-2x-small);min-height:var(--cx-input-height-small);min-width:var(--cx-input-height-small)}.icon-button--medium{font-size:var(--cx-font-size-large);padding:var(--cx-spacing-2x-small);min-height:var(--cx-input-height-medium);min-width:var(--cx-input-height-medium)}.icon-button--large{font-size:var(--cx-font-size-large);padding:var(--cx-spacing-x-small);min-height:var(--cx-input-height-large);min-width:var(--cx-input-width-large)}.icon-button--x-large{font-size:var(--cx-font-size-large);padding:var(--cx-spacing-small);min-height:var(--cx-input-height-x-large);min-width:var(--cx-input-height-x-large)}.icon-button.icon-button--default{background-color:var(--cx-color-neutral-100);border-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral)}.icon-button.icon-button--default:hover:not(.icon-button--disabled),.icon-button.icon-button--default.icon-button--focused:not(.icon-button--disabled){background-color:var(--cx-color-neutral-200);border-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral)}.icon-button.icon-button--default:active:not(.icon-button--disabled){background-color:var(--cx-color-neutral-300);border-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral)}.icon-button.icon-button--primary{background-color:var(--cx-color-primary);border-color:var(--cx-color-primary);color:var(--cx-color-neutral-0)}.icon-button.icon-button--primary:hover:not(.icon-button--disabled),.icon-button.icon-button--primary.icon-button--focused:not(.icon-button--disabled){background-color:var(--cx-color-primary-500);border-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.icon-button.icon-button--primary:active:not(.icon-button--disabled){background-color:var(--cx-color-primary-700);border-color:var(--cx-color-primary-700);color:var(--cx-color-neutral-0)}.icon-button.icon-button--success{background-color:var(--cx-color-success);border-color:var(--cx-color-success);color:var(--cx-color-neutral-0)}.icon-button.icon-button--success:hover:not(.icon-button--disabled),.icon-button.icon-button--success.icon-button--focused:not(.icon-button--disabled){background-color:var(--cx-color-success-500);border-color:var(--cx-color-success-500);color:var(--cx-color-neutral-0)}.icon-button.icon-button--success:active:not(.icon-button--disabled){background-color:var(--cx-color-success-700);border-color:var(--cx-color-success-700);color:var(--cx-color-neutral-0)}.icon-button.icon-button--warning{background-color:var(--cx-color-warning);border-color:var(--cx-color-warning);color:var(--cx-color-neutral-0)}.icon-button.icon-button--warning:hover:not(.icon-button--disabled),.icon-button.icon-button--warning.icon-button--focused:not(.icon-button--disabled){background-color:var(--cx-color-warning-500);border-color:var(--cx-color-warning-500);color:var(--cx-color-neutral-0)}.icon-button.icon-button--warning:active:not(.icon-button--disabled){background-color:var(--cx-color-warning-700);border-color:var(--cx-color-warning-700);color:var(--cx-color-neutral-0)}.icon-button.icon-button--danger{background-color:var(--cx-color-danger);border-color:var(--cx-color-danger);color:var(--cx-color-neutral-0)}.icon-button.icon-button--danger:hover:not(.icon-button--disabled),.icon-button.icon-button--danger.icon-button--focused:not(.icon-button--disabled){background-color:var(--cx-color-danger-500);border-color:var(--cx-color-danger-500);color:var(--cx-color-neutral-0)}.icon-button.icon-button--danger:active:not(.icon-button--disabled){background-color:var(--cx-color-danger-700);border-color:var(--cx-color-danger-700);color:var(--cx-color-neutral-0)}.icon-button.icon-button--custom,.icon-button.icon-button--custom:hover:not(.icon-button--disabled),.icon-button.icon-button--custom.icon-button--focused:not(.icon-button--disabled),.icon-button.icon-button--custom:active:not(.icon-button--disabled){background-color:var(--background-color);border-color:var(--background-color);color:var(--color)}.icon-button--outline{border:solid var(--cx-input-border-width);border-color:var(--cx-input-border-color);background:0 0}.icon-button--outline.icon-button--default{border-color:var(--cx-input-border-color);color:var(--cx-color-neutral)}.icon-button--outline.icon-button--default:hover:not(.icon-button--disabled),.icon-button--outline.icon-button--default.icon-button--focused:not(.icon-button--disabled),.icon-button--outline.icon-button--default.icon-button--checked:not(.icon-button--disabled){border-color:var(--cx-color-neutral-300);background-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral)}.icon-button--outline.icon-button--default:active:not(.icon-button--disabled){border-color:var(--cx-color-neutral-300);background-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral)}.icon-button--outline.icon-button--primary{border-color:var(--cx-color-primary);color:var(--cx-color-primary)}.icon-button--outline.icon-button--primary:hover:not(.icon-button--disabled),.icon-button--outline.icon-button--primary.icon-button--focused:not(.icon-button--disabled),.icon-button--outline.icon-button--primary.icon-button--checked:not(.icon-button--disabled){background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.icon-button--outline.icon-button--primary:active:not(.icon-button--disabled){border-color:var(--cx-color-primary-700);background-color:var(--cx-color-primary-700);color:var(--cx-color-neutral-0)}.icon-button--outline.icon-button--success{border-color:var(--cx-color-success);color:var(--cx-color-success)}.icon-button--outline.icon-button--success:hover:not(.icon-button--disabled),.icon-button--outline.icon-button--success.icon-button--focused:not(.icon-button--disabled),.icon-button--outline.icon-button--success.icon-button--checked:not(.icon-button--disabled){background-color:var(--cx-color-success-500);color:var(--cx-color-neutral-0)}.icon-button--outline.icon-button--success:active:not(.icon-button--disabled){border-color:var(--cx-color-success);background-color:var(--cx-color-success);color:var(--cx-color-neutral-0)}.icon-button--outline.icon-button--warning{border-color:var(--cx-color-warning);color:var(--cx-color-warning)}.icon-button--outline.icon-button--warning:hover:not(.icon-button--disabled),.icon-button--outline.icon-button--warning.icon-button--focused:not(.icon-button--disabled),.icon-button--outline.icon-button--warning.icon-button--checked:not(.icon-button--disabled){background-color:var(--cx-color-warning-500);color:var(--cx-color-neutral-0)}.icon-button--outline.icon-button--warning:active:not(.icon-button--disabled){border-color:var(--cx-color-warning-700);background-color:var(--cx-color-warning-700);color:var(--cx-color-neutral-0)}.icon-button--outline.icon-button--danger{border-color:var(--cx-color-danger);color:var(--cx-color-danger)}.icon-button--outline.icon-button--danger:hover:not(.icon-button--disabled),.icon-button--outline.icon-button--danger.icon-button--focused:not(.icon-button--disabled),.icon-button--outline.icon-button--danger.icon-button--checked:not(.icon-button--disabled){background-color:var(--cx-color-danger-500);color:var(--cx-color-neutral-0)}.icon-button--outline.icon-button--danger:active:not(.icon-button--disabled){border-color:var(--cx-color-danger-700);background-color:var(--cx-color-danger-700);color:var(--cx-color-neutral-0)}.icon-button--tertiary{color:var(--cx-color-neutral);background-color:#0000;border-color:#0000}.icon-button--tertiary:hover:not(.icon-button--disabled),.icon-button--tertiary.icon-button--focused:not(.icon-button--disabled){background-color:var(--cx-color-neutral-100);color:var(--cx-color-neutral);border-color:#0000}.icon-button--tertiary:focus-visible:not(.icon-button--disabled){background-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral);border-color:#0000}.icon-button--tertiary:active:not(.icon-button--disabled){background-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral);border-color:#0000}.icon-button--circle{border-radius:var(--cx-border-radius-circle)}:host([data-cx-button-group__button--first]:not([data-cx-button-group__button--last])) .icon-button{border-start-end-radius:0;border-end-end-radius:0}:host([data-cx-button-group__button--inner]) .icon-button{border-radius:0}:host([data-cx-button-group__button--last]:not([data-cx-button-group__button--first])) .icon-button{border-start-start-radius:0;border-end-start-radius:0}:host([data-cx-button-group__button]:not([data-cx-button-group__button--first])){margin-inline-start:calc(-1 * var(--cx-input-border-width))}:host([data-cx-button-group__button]:not([data-cx-button-group__button--first],[data-cx-button-group__button--radio],[variant=default]):not(:hover)) .icon-button:after{content:"";top:0;inset-inline-start:0;border-left:solid 1px var(--group-divider-color);mix-blend-mode:multiply;position:absolute;bottom:0}:host([data-cx-button-group__button--hover]){z-index:1}:host([data-cx-button-group__button--focus]),:host([data-cx-button-group__button][checked]){z-index:2}.icon-button ::slotted(cx-badge){pointer-events:none;translate:50% -50%;top:0!important;left:unset!important;position:absolute!important;right:0!important}.icon-button--rtl ::slotted(cx-badge){left:0;right:auto;translate:-50% -50%}.icon-button--small ::slotted(cx-badge){--padding:.1em .32em;--font-size:var(--cx-font-size-x-small)}.icon-button--medium ::slotted(cx-badge){--font-size:var(--cx-font-size-small)}.icon-button--large ::slotted(cx-badge),.icon-button--x-large ::slotted(cx-badge){--font-size:var(--cx-font-size-medium)}.icon-button__icon-container{justify-content:center;align-items:center;width:100%;height:100%;line-height:1;display:flex;position:relative}.icon-button--loading{cursor:wait;position:relative}.icon-button--loading cx-spinner{--indicator-color:currentColor;width:1em;height:1em;font-size:1em;position:absolute;top:calc(50% - .5em);left:calc(50% - .5em)}`;
|
|
16
|
+
var C = Object.defineProperty, S = Object.getOwnPropertyDescriptor, n = (o, i, l, a) => {
|
|
17
|
+
for (var e = a > 1 ? void 0 : a ? S(i, l) : i, u = o.length - 1, s; u >= 0; u--)
|
|
18
|
+
(s = o[u]) && (e = (a ? s(i, l, e) : s(e)) || e);
|
|
19
|
+
return a && e && C(i, l, e), e;
|
|
20
|
+
};
|
|
21
|
+
let t = class extends g {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments), this.localize = new m(this), this.hasFocus = !1, this.variant = "outlined", this.buttonVariant = "text", this.label = "", this.disabled = !1, this.loading = !1, this.iconClass = "", this.size = x.Medium, this.outline = !1, this.circle = !1;
|
|
24
|
+
}
|
|
25
|
+
connectedUpdatedCallback() {
|
|
26
|
+
this.syncStyles(), this.styleObserver = new MutationObserver(() => this.syncStyles()), this.styleObserver.observe(this, {
|
|
27
|
+
attributeFilter: ["style"],
|
|
28
|
+
attributes: !0
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
disconnectedCallback() {
|
|
32
|
+
super.disconnectedCallback(), this.styleObserver?.disconnect();
|
|
33
|
+
}
|
|
34
|
+
syncStyles() {
|
|
35
|
+
const o = this.style.fontSize;
|
|
36
|
+
o && this.button && (this.icon.style.setProperty("--font-size", o), this.button.style.fontSize = "inherit", this.style.fontSize = "");
|
|
37
|
+
}
|
|
38
|
+
handleBlur() {
|
|
39
|
+
this.hasFocus = !1, this.emit("cx-blur");
|
|
40
|
+
}
|
|
41
|
+
handleFocus() {
|
|
42
|
+
this.hasFocus = !0, this.emit("cx-focus");
|
|
43
|
+
}
|
|
44
|
+
handleClick(o) {
|
|
45
|
+
this.disabled && (o.preventDefault(), o.stopPropagation());
|
|
46
|
+
}
|
|
47
|
+
/** Simulates a click on the icon button. */
|
|
48
|
+
click() {
|
|
49
|
+
this.button.click();
|
|
50
|
+
}
|
|
51
|
+
/** Sets focus on the icon button. */
|
|
52
|
+
focus(o) {
|
|
53
|
+
this.button.focus(o);
|
|
54
|
+
}
|
|
55
|
+
/** Removes focus from the icon button. */
|
|
56
|
+
blur() {
|
|
57
|
+
this.button.blur();
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
const o = !!this.href, i = o ? d`a` : d`button`;
|
|
61
|
+
return b`<${i} part="base" class=${y({
|
|
62
|
+
"icon-button": !0,
|
|
63
|
+
"icon-button--circle": this.circle,
|
|
64
|
+
"icon-button--custom": !!this.src,
|
|
65
|
+
"icon-button--danger": this.buttonVariant === "danger",
|
|
66
|
+
"icon-button--default": this.buttonVariant === "default" || this.buttonVariant === "neutral",
|
|
67
|
+
"icon-button--disabled": !o && this.disabled,
|
|
68
|
+
"icon-button--focused": this.hasFocus,
|
|
69
|
+
"icon-button--large": this.size === "large",
|
|
70
|
+
"icon-button--loading": this.loading,
|
|
71
|
+
"icon-button--medium": this.size === "medium",
|
|
72
|
+
"icon-button--outline": this.outline,
|
|
73
|
+
"icon-button--primary": this.buttonVariant === "primary",
|
|
74
|
+
"icon-button--rtl": this.localize.dir() === "rtl",
|
|
75
|
+
"icon-button--small": this.size === "small",
|
|
76
|
+
"icon-button--success": this.buttonVariant === "success",
|
|
77
|
+
"icon-button--tertiary": this.buttonVariant === "tertiary",
|
|
78
|
+
"icon-button--text": this.buttonVariant === "text",
|
|
79
|
+
"icon-button--warning": this.buttonVariant === "warning",
|
|
80
|
+
"icon-button--x-large": this.size === "x-large"
|
|
81
|
+
})} ?disabled=${c(o ? void 0 : this.disabled)} type=${c(o ? void 0 : "button")} href=${c(o ? this.href : void 0)} target=${c(o ? this.target : void 0)} download=${c(o ? this.download : void 0)} rel=${c(
|
|
82
|
+
o && this.target ? "noreferrer noopener" : void 0
|
|
83
|
+
)} role=${c(o ? void 0 : "button")} aria-disabled=${this.disabled || this.loading ? "true" : "false"} aria-label=${this.label} tabindex=${this.disabled || this.loading ? "-1" : "0"} aria-busy=${this.loading ? "true" : "false"} @blur=${this.handleBlur} @focus=${this.handleFocus} @click=${this.handleClick}><div class="icon-button__icon-container">${k(
|
|
84
|
+
this.loading,
|
|
85
|
+
() => b`<cx-spinner part="spinner" role="status" aria-live="polite"></cx-spinner>`,
|
|
86
|
+
() => b`<cx-icon class="icon-button__icon" icon-class=${c(this.iconClass)} name=${c(this.name)} variant=${this.variant} src=${c(this.src)} aria-hidden="true" part="icon"></cx-icon>`
|
|
87
|
+
)}<slot name="badge"></slot></div></${i}>`;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
t.styles = [p, $];
|
|
91
|
+
t.dependencies = { "cx-icon": _, "cx-spinner": w };
|
|
92
|
+
n([
|
|
93
|
+
v(".icon-button")
|
|
94
|
+
], t.prototype, "button", 2);
|
|
95
|
+
n([
|
|
96
|
+
v(".icon-button__icon")
|
|
97
|
+
], t.prototype, "icon", 2);
|
|
98
|
+
n([
|
|
99
|
+
f()
|
|
100
|
+
], t.prototype, "hasFocus", 2);
|
|
101
|
+
n([
|
|
102
|
+
r()
|
|
103
|
+
], t.prototype, "name", 2);
|
|
104
|
+
n([
|
|
105
|
+
r({ type: String })
|
|
106
|
+
], t.prototype, "variant", 2);
|
|
107
|
+
n([
|
|
108
|
+
r({ attribute: "button-variant", reflect: !0, type: String })
|
|
109
|
+
], t.prototype, "buttonVariant", 2);
|
|
110
|
+
n([
|
|
111
|
+
r()
|
|
112
|
+
], t.prototype, "src", 2);
|
|
113
|
+
n([
|
|
114
|
+
r()
|
|
115
|
+
], t.prototype, "href", 2);
|
|
116
|
+
n([
|
|
117
|
+
r()
|
|
118
|
+
], t.prototype, "target", 2);
|
|
119
|
+
n([
|
|
120
|
+
r()
|
|
121
|
+
], t.prototype, "download", 2);
|
|
122
|
+
n([
|
|
123
|
+
r()
|
|
124
|
+
], t.prototype, "label", 2);
|
|
125
|
+
n([
|
|
126
|
+
r({ reflect: !0, type: Boolean })
|
|
127
|
+
], t.prototype, "disabled", 2);
|
|
128
|
+
n([
|
|
129
|
+
r({ reflect: !0, type: Boolean })
|
|
130
|
+
], t.prototype, "loading", 2);
|
|
131
|
+
n([
|
|
132
|
+
r({ attribute: "icon-class", type: String })
|
|
133
|
+
], t.prototype, "iconClass", 2);
|
|
134
|
+
n([
|
|
135
|
+
r({ reflect: !0 })
|
|
136
|
+
], t.prototype, "size", 2);
|
|
137
|
+
n([
|
|
138
|
+
r({ reflect: !0, type: Boolean })
|
|
139
|
+
], t.prototype, "outline", 2);
|
|
140
|
+
n([
|
|
141
|
+
r({ reflect: !0, type: Boolean })
|
|
142
|
+
], t.prototype, "circle", 2);
|
|
143
|
+
t = n([
|
|
144
|
+
h("cx-icon-button")
|
|
145
|
+
], t);
|
|
146
|
+
export {
|
|
147
|
+
t as C,
|
|
148
|
+
x as I
|
|
149
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { n as r, C as d } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as h } from "./component.styles.CRO4Odto.js";
|
|
3
|
+
import { c as y } from "./custom-element.L4WJXn1j.js";
|
|
4
|
+
import { L as u } from "./i18n.BUW7B9hr.js";
|
|
5
|
+
import { w as g } from "./watch.BCJD77bD.js";
|
|
6
|
+
import { i as v, x as p } from "./lit-element.jLBm65_O.js";
|
|
7
|
+
import { e as b } from "./query.BBf1UFkC.js";
|
|
8
|
+
import { e as x } from "./class-map.BiVq-cVR.js";
|
|
9
|
+
import { o as f } from "./if-defined.BRoBj_Rp.js";
|
|
10
|
+
import { n as w } from "./when.Dr1es41R.js";
|
|
11
|
+
var m = /* @__PURE__ */ ((o) => (o.Eager = "eager", o.Lazy = "lazy", o))(m || {});
|
|
12
|
+
const _ = v`:host{--background-color:#f5f5f5;width:100%;height:var(--height,500px);isolation:isolate;display:block}.iframe{width:100%;height:100%;display:block;position:relative}.iframe--empty:before{color:#fff;content:attr(data-empty-text);font-family:var(--cx-font-sans);font-size:var(--cx-font-size-large);font-weight:var(--cx-font-weight-semibold);text-align:center;text-shadow:.05em .05em .1em #000;vertical-align:middle;z-index:1;background-color:#000;justify-content:center;align-items:center;width:100%;height:100%;line-height:1;display:flex;position:absolute}.iframe__overlay{z-index:1;background-color:#0000;width:100%;height:100%;display:none;position:absolute;top:0;left:0}.iframe__view{background-color:var(--background-color);border-radius:var(--cx-border-radius-small);border:none;width:100%;height:100%;display:block}.iframe__spinner{--track-width:6px;z-index:2;font-size:4rem;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}`;
|
|
13
|
+
var z = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, t = (o, a, s, l) => {
|
|
14
|
+
for (var i = l > 1 ? void 0 : l ? $(a, s) : a, n = o.length - 1, c; n >= 0; n--)
|
|
15
|
+
(c = o[n]) && (i = (l ? c(a, s, i) : c(i)) || i);
|
|
16
|
+
return l && i && z(a, s, i), i;
|
|
17
|
+
};
|
|
18
|
+
let e = class extends d {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments), this.localize = new u(this), this.src = "", this.iframeTitle = "Embedded content", this.iframeLoading = m.Lazy, this.allow = "", this.sandbox = "", this.referrerPolicy = "", this.canFullscreen = !1, this.loading = !1;
|
|
21
|
+
}
|
|
22
|
+
async handleCanFullscreenChange() {
|
|
23
|
+
await this.updateComplete, this.iframe && (this.iframe.src = "", this.iframe.src = this.src);
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return p`<div part="base" data-empty-text=${this.localize.term("noSourceUrlProvided")} class=${x({
|
|
27
|
+
iframe: !0,
|
|
28
|
+
"iframe--empty": !this.src && !this.loading
|
|
29
|
+
})}>${w(
|
|
30
|
+
this.loading,
|
|
31
|
+
() => p`<cx-spinner class="iframe__spinner"></cx-spinner>`
|
|
32
|
+
)}<div part="overlay" class="iframe__overlay" aria-hidden="true"></div><iframe part="view" class="iframe__view" allow=${f(this.allow || void 0)} loading=${this.iframeLoading} referrerpolicy=${f(this.referrerPolicy || void 0)} sandbox=${f(this.sandbox || void 0)} src=${this.src} title=${this.iframeTitle} ?allowfullscreen=${this.canFullscreen}></iframe></div>`;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
e.styles = [h, _];
|
|
36
|
+
e.dependencies = {};
|
|
37
|
+
t([
|
|
38
|
+
b("iframe")
|
|
39
|
+
], e.prototype, "iframe", 2);
|
|
40
|
+
t([
|
|
41
|
+
r({ reflect: !0, type: String })
|
|
42
|
+
], e.prototype, "src", 2);
|
|
43
|
+
t([
|
|
44
|
+
r({ attribute: "iframe-title", reflect: !0, type: String })
|
|
45
|
+
], e.prototype, "iframeTitle", 2);
|
|
46
|
+
t([
|
|
47
|
+
r({ attribute: "iframe-loading", reflect: !0, type: String })
|
|
48
|
+
], e.prototype, "iframeLoading", 2);
|
|
49
|
+
t([
|
|
50
|
+
r({ reflect: !0, type: String })
|
|
51
|
+
], e.prototype, "allow", 2);
|
|
52
|
+
t([
|
|
53
|
+
r({ reflect: !0, type: String })
|
|
54
|
+
], e.prototype, "sandbox", 2);
|
|
55
|
+
t([
|
|
56
|
+
r({ attribute: "referrer-policy", reflect: !0, type: String })
|
|
57
|
+
], e.prototype, "referrerPolicy", 2);
|
|
58
|
+
t([
|
|
59
|
+
r({ attribute: "can-fullscreen", reflect: !0, type: Boolean })
|
|
60
|
+
], e.prototype, "canFullscreen", 2);
|
|
61
|
+
t([
|
|
62
|
+
r({ reflect: !0, type: Boolean })
|
|
63
|
+
], e.prototype, "loading", 2);
|
|
64
|
+
t([
|
|
65
|
+
g("canFullscreen")
|
|
66
|
+
], e.prototype, "handleCanFullscreenChange", 1);
|
|
67
|
+
e = t([
|
|
68
|
+
y("cx-iframe")
|
|
69
|
+
], e);
|
|
70
|
+
export {
|
|
71
|
+
e as C,
|
|
72
|
+
m as a
|
|
73
|
+
};
|
|
@@ -3,7 +3,7 @@ import { C as Re, n as m } from "./lib-cortex-element.CVMmyPMC.js";
|
|
|
3
3
|
import { r as H } from "./state.CSDxrqLd.js";
|
|
4
4
|
import { e as X } from "./query.BBf1UFkC.js";
|
|
5
5
|
import { E as He, b as de, a as $e } from "./index.Cpamj0jB.js";
|
|
6
|
-
import { c as We } from "./component.styles.
|
|
6
|
+
import { c as We } from "./component.styles.CRO4Odto.js";
|
|
7
7
|
import { c as Ae } from "./custom-element.L4WJXn1j.js";
|
|
8
8
|
import { d as Oe } from "./debounce.DaHuiSGU.js";
|
|
9
9
|
import { L as Me } from "./i18n.BUW7B9hr.js";
|
|
@@ -229,24 +229,7 @@ class A extends S {
|
|
|
229
229
|
this.handleResizeDragging(t, !1, !1);
|
|
230
230
|
}
|
|
231
231
|
renderResizer() {
|
|
232
|
-
return T
|
|
233
|
-
<div
|
|
234
|
-
class="resizer resizer--top-left"
|
|
235
|
-
@mousedown=${this.handleResizeDraggingTopLeft}
|
|
236
|
-
></div>
|
|
237
|
-
<div
|
|
238
|
-
class="resizer resizer--top-right"
|
|
239
|
-
@mousedown=${this.handleResizeDraggingTopRight}
|
|
240
|
-
></div>
|
|
241
|
-
<div
|
|
242
|
-
class="resizer resizer--bottom-left"
|
|
243
|
-
@mousedown=${this.handleResizeDraggingBottomLeft}
|
|
244
|
-
></div>
|
|
245
|
-
<div
|
|
246
|
-
class="resizer resizer--bottom-right"
|
|
247
|
-
@mousedown=${this.handleResizeDraggingBottomRight}
|
|
248
|
-
></div>
|
|
249
|
-
`;
|
|
232
|
+
return T`<div class="resizer resizer--top-left" @mousedown=${this.handleResizeDraggingTopLeft}></div><div class="resizer resizer--top-right" @mousedown=${this.handleResizeDraggingTopRight}></div><div class="resizer resizer--bottom-left" @mousedown=${this.handleResizeDraggingBottomLeft}></div><div class="resizer resizer--bottom-right" @mousedown=${this.handleResizeDraggingBottomRight}></div>`;
|
|
250
233
|
}
|
|
251
234
|
}
|
|
252
235
|
O([
|
|
@@ -276,39 +259,7 @@ O([
|
|
|
276
259
|
O([
|
|
277
260
|
H()
|
|
278
261
|
], A.prototype, "resizeSize");
|
|
279
|
-
const _e = se
|
|
280
|
-
.resizer {
|
|
281
|
-
background-color: var(--cx-color-primary);
|
|
282
|
-
width: 8px;
|
|
283
|
-
height: 8px;
|
|
284
|
-
position: absolute;
|
|
285
|
-
z-index: 100;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.resizer--top-left {
|
|
289
|
-
top: calc(-1px - var(--border-width, 0px));
|
|
290
|
-
left: calc(-1px - var(--border-width, 0px));
|
|
291
|
-
cursor: nw-resize;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.resizer--top-right {
|
|
295
|
-
top: calc(-1px - var(--border-width, 0px));
|
|
296
|
-
right: calc(-1px - var(--border-width, 0px));
|
|
297
|
-
cursor: ne-resize;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.resizer--bottom-left {
|
|
301
|
-
bottom: calc(-1px - var(--border-width, 0px));
|
|
302
|
-
left: calc(-1px - var(--border-width, 0px));
|
|
303
|
-
cursor: sw-resize;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.resizer--bottom-right {
|
|
307
|
-
bottom: calc(-1px - var(--border-width, 0px));
|
|
308
|
-
right: calc(-1px - var(--border-width, 0px));
|
|
309
|
-
cursor: se-resize;
|
|
310
|
-
}
|
|
311
|
-
`;
|
|
262
|
+
const _e = se`.resizer{background-color:var(--cx-color-primary);z-index:100;width:8px;height:8px;position:absolute}.resizer--top-left{top:calc(-1px - var(--border-width,0px));left:calc(-1px - var(--border-width,0px));cursor:nw-resize}.resizer--top-right{top:calc(-1px - var(--border-width,0px));right:calc(-1px - var(--border-width,0px));cursor:ne-resize}.resizer--bottom-left{bottom:calc(-1px - var(--border-width,0px));left:calc(-1px - var(--border-width,0px));cursor:sw-resize}.resizer--bottom-right{bottom:calc(-1px - var(--border-width,0px));right:calc(-1px - var(--border-width,0px));cursor:se-resize}`;
|
|
312
263
|
var U = /* @__PURE__ */ ((e) => (e.Automatic = "automatic", e.Manual = "manual", e))(U || {});
|
|
313
264
|
/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */
|
|
314
265
|
var B = Object.assign || function(e) {
|
|
@@ -565,129 +516,7 @@ function Ke(e, t) {
|
|
|
565
516
|
}
|
|
566
517
|
var Je = ".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";
|
|
567
518
|
Ke(Je);
|
|
568
|
-
const Ge = se`
|
|
569
|
-
:host([effect='jump']) .container,
|
|
570
|
-
:host([effect='text-reveal']) .container,
|
|
571
|
-
:host([effect='zoom']) .container {
|
|
572
|
-
overflow: initial;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
:host([effect='jump']) .highlighter {
|
|
576
|
-
transition:
|
|
577
|
-
all var(--transition-duration, 0.5s) var(--easing, linear),
|
|
578
|
-
transform var(--transition-transform-duration, 0.5s) var(--easing, linear);
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
:host([effect='jump']) .highlighter:hover {
|
|
582
|
-
transform: translateY(
|
|
583
|
-
calc(var(--highlightable-item-effect-jump-distance, 0) * -1)
|
|
584
|
-
);
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
.highlighter--effect-text-reveal,
|
|
588
|
-
:host([effect='zoom']) .highlighter--zoom-style-within-borders {
|
|
589
|
-
overflow: hidden;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
:host([effect='zoom'][zoom-style='pop-out']) .highlighter:hover {
|
|
593
|
-
z-index: 3;
|
|
594
|
-
animation: none;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
:host([effect='zoom'][zoom-style='pop-out']) .highlighter:not(:hover) {
|
|
598
|
-
animation: drop-z var(--transition-transform-duration) forwards;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
@keyframes drop-z {
|
|
602
|
-
0% {
|
|
603
|
-
z-index: 2;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
99% {
|
|
607
|
-
z-index: 2;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
100% {
|
|
611
|
-
z-index: 0;
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
.highlighter--can-hover:hover::after,
|
|
616
|
-
.highlighter--selected::after,
|
|
617
|
-
.highlighter--color-overlay::after {
|
|
618
|
-
content: '';
|
|
619
|
-
position: absolute;
|
|
620
|
-
pointer-events: none;
|
|
621
|
-
width: 100%;
|
|
622
|
-
height: 100%;
|
|
623
|
-
top: 0;
|
|
624
|
-
left: 0;
|
|
625
|
-
transition: all var(--transition-duration, 0.5s) var(--easing, linear);
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
.highlighter--can-hover:hover::after,
|
|
629
|
-
.highlighter--selected::after {
|
|
630
|
-
outline: 2px solid var(--cx-color-primary);
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
.highlighter--border:hover .image {
|
|
634
|
-
border-color: var(
|
|
635
|
-
--highlightable-item-highlight-border-color,
|
|
636
|
-
var(--cx-color-primary)
|
|
637
|
-
);
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
.highlighter--color-overlay::after {
|
|
641
|
-
border-radius: var(--border-radius, none);
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
.highlighter--color-overlay:hover::after {
|
|
645
|
-
background-color: var(
|
|
646
|
-
--highlightable-item-highlight-color-overlay-color,
|
|
647
|
-
transparent
|
|
648
|
-
);
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
.highlighter--drop-shadow:hover .image {
|
|
652
|
-
box-shadow: var(--highlightable-item-highlight-drop-shadow, none);
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
.highlighter--background:hover .highlightable-item {
|
|
656
|
-
--content-background-color: var(
|
|
657
|
-
--highlightable-item-highlight-background,
|
|
658
|
-
transparent
|
|
659
|
-
);
|
|
660
|
-
--highlightable-item-background-color: var(
|
|
661
|
-
--highlightable-item-highlight-background,
|
|
662
|
-
transparent
|
|
663
|
-
);
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
.highlighter--opacity {
|
|
667
|
-
opacity: var(--highlightable-item-highlight-opacity, 1);
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
:host([effect='zoom'][zoom-style='within-borders']) .highlighter .image,
|
|
671
|
-
:host([effect='zoom'][zoom-style='pop-out']) .highlighter {
|
|
672
|
-
transition: transform var(--transition-transform-duration, 0.5s)
|
|
673
|
-
var(--easing, linear);
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
:host([effect='zoom'][zoom-style='within-borders']) .highlighter:hover .image,
|
|
677
|
-
:host([effect='zoom'][zoom-style='pop-out']) .highlighter:hover {
|
|
678
|
-
transform: scale(var(--highlightable-item-effect-zoom-scale, 1));
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
.highlightable-item {
|
|
682
|
-
transition:
|
|
683
|
-
background-color var(--transition-duration, 0.5s) var(--easing, linear),
|
|
684
|
-
border-color var(--transition-duration, 0.5s) var(--easing, linear),
|
|
685
|
-
box-shadow var(--transition-duration, 0.5s) var(--easing, linear),
|
|
686
|
-
opacity var(--transition-duration, 0.5s) var(--easing, linear),
|
|
687
|
-
transform var(--transition-transform-duration, 0.5s) var(--easing, linear),
|
|
688
|
-
visibility var(--transition-duration, 0.5s) var(--easing, linear);
|
|
689
|
-
}
|
|
690
|
-
`, Qe = se`
|
|
519
|
+
const Ge = se`:host([effect=jump]) .container,:host([effect=text-reveal]) .container,:host([effect=zoom]) .container{overflow:initial}:host([effect=jump]) .highlighter{transition:all var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=jump]) .highlighter:hover{transform:translateY(calc(var(--highlightable-item-effect-jump-distance,0) * -1))}.highlighter--effect-text-reveal,:host([effect=zoom]) .highlighter--zoom-style-within-borders{overflow:hidden}:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{z-index:3;animation:none}:host([effect=zoom][zoom-style=pop-out]) .highlighter:not(:hover){animation:drop-z var(--transition-transform-duration) forwards}@keyframes drop-z{0%{z-index:2}99%{z-index:2}to{z-index:0}}.highlighter--can-hover:hover:after,.highlighter--selected:after,.highlighter--color-overlay:after{content:"";pointer-events:none;width:100%;height:100%;transition:all var(--transition-duration,.5s) var(--easing,linear);position:absolute;top:0;left:0}.highlighter--can-hover:hover:after,.highlighter--selected:after{outline:2px solid var(--cx-color-primary)}.highlighter--border:hover .image{border-color:var(--highlightable-item-highlight-border-color,var(--cx-color-primary))}.highlighter--color-overlay:after{border-radius:var(--border-radius,none)}.highlighter--color-overlay:hover:after{background-color:var(--highlightable-item-highlight-color-overlay-color,transparent)}.highlighter--drop-shadow:hover .image{box-shadow:var(--highlightable-item-highlight-drop-shadow,none)}.highlighter--background:hover .highlightable-item{--content-background-color:var(--highlightable-item-highlight-background,transparent);--highlightable-item-background-color:var(--highlightable-item-highlight-background,transparent)}.highlighter--opacity{opacity:var(--highlightable-item-highlight-opacity,1)}:host([effect=zoom][zoom-style=within-borders]) .highlighter .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter{transition:transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=zoom][zoom-style=within-borders]) .highlighter:hover .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{transform:scale(var(--highlightable-item-effect-zoom-scale,1))}.highlightable-item{transition:background-color var(--transition-duration,.5s) var(--easing,linear), border-color var(--transition-duration,.5s) var(--easing,linear), box-shadow var(--transition-duration,.5s) var(--easing,linear), opacity var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear), visibility var(--transition-duration,.5s) var(--easing,linear)}`, Qe = se`
|
|
691
520
|
:host {
|
|
692
521
|
--justify-content: flex-start;
|
|
693
522
|
--border-radius: 0px;
|
|
@@ -1066,123 +895,38 @@ let l = class extends A {
|
|
|
1066
895
|
}
|
|
1067
896
|
renderContent() {
|
|
1068
897
|
const e = this.currentSrc, t = this.currentAltValue;
|
|
1069
|
-
return T
|
|
1070
|
-
<div
|
|
1071
|
-
part="content"
|
|
1072
|
-
slot="anchor"
|
|
1073
|
-
class=${j(this.highlighterClass)}
|
|
1074
|
-
>
|
|
1075
|
-
<img
|
|
1076
|
-
part="image"
|
|
1077
|
-
class=${j(this.imageClass)}
|
|
1078
|
-
src=${e || this.placeholder}
|
|
1079
|
-
alt=${t}
|
|
1080
|
-
aria-label=${t}
|
|
1081
|
-
crossorigin="anonymous"
|
|
1082
|
-
@load=${this.handleLoad}
|
|
1083
|
-
@error=${this.handleError}
|
|
1084
|
-
loading=${this.htmlLoading}
|
|
1085
|
-
/>
|
|
1086
|
-
</div>
|
|
1087
|
-
`;
|
|
898
|
+
return T`<div part="content" slot="anchor" class=${j(this.highlighterClass)}><img part="image" class=${j(this.imageClass)} src=${e || this.placeholder} alt=${t} aria-label=${t} crossorigin="anonymous" @load=${this.handleLoad} @error=${this.handleError} loading=${this.htmlLoading}></div>`;
|
|
1088
899
|
}
|
|
1089
900
|
render() {
|
|
1090
901
|
const e = this.hasZoomAction, t = this.currentAltValue, o = !this.currentSrc && !this.placeholder;
|
|
1091
|
-
return T`<div
|
|
1092
|
-
part="base"
|
|
1093
|
-
class=${j({
|
|
902
|
+
return T`<div part="base" class=${j({
|
|
1094
903
|
container: !0,
|
|
1095
904
|
"container--empty": o,
|
|
1096
905
|
"container--loading": this.loading,
|
|
1097
906
|
"container--resizing": this.resizable && this.isResizeActive
|
|
1098
|
-
})}
|
|
1099
|
-
style=${je({
|
|
907
|
+
})} style=${je({
|
|
1100
908
|
"--easing": this.easeCSSVariable
|
|
1101
|
-
})}
|
|
1102
|
-
data-empty-label=${this.localize.term("emptyImage")}
|
|
1103
|
-
@click=${this.startResizing}
|
|
1104
|
-
@keydown=${this.handleKeyDown}
|
|
1105
|
-
>
|
|
1106
|
-
<cx-resize-observer @cx-resize=${this.handleResize}>
|
|
1107
|
-
<div
|
|
1108
|
-
part="highlighter"
|
|
1109
|
-
tabindex=${De(this.highlighterTabindex)}
|
|
1110
|
-
role=${this.highlighterRole}
|
|
1111
|
-
aria-label=${t}
|
|
1112
|
-
aria-roledescription=${this.localize.term("image")}
|
|
1113
|
-
class=${j(o ? {} : this.getHighlighterClass())}
|
|
1114
|
-
@click=${this.handleClickAction}
|
|
1115
|
-
@mouseenter=${this.handleMouseEnter}
|
|
1116
|
-
@mouseleave=${this.handleMouseLeave}
|
|
1117
|
-
@blur=${this.handleBlur}
|
|
1118
|
-
>
|
|
1119
|
-
${V(
|
|
909
|
+
})} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${De(this.highlighterTabindex)} role=${this.highlighterRole} aria-label=${t} aria-roledescription=${this.localize.term("image")} class=${j(o ? {} : this.getHighlighterClass())} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${V(
|
|
1120
910
|
o,
|
|
1121
911
|
() => Le,
|
|
1122
912
|
() => V(
|
|
1123
913
|
this.effect === Y.Jump || this.effect === Y.Zoom,
|
|
1124
|
-
() => T
|
|
1125
|
-
<cx-popup
|
|
1126
|
-
class="popup-container"
|
|
1127
|
-
strategy="absolute"
|
|
1128
|
-
active
|
|
1129
|
-
placement="center"
|
|
1130
|
-
sync="both"
|
|
1131
|
-
>
|
|
1132
|
-
${this.renderContent()}
|
|
1133
|
-
</cx-popup>
|
|
1134
|
-
`,
|
|
914
|
+
() => T`<cx-popup class="popup-container" strategy="absolute" active placement="center" sync="both">${this.renderContent()}</cx-popup>`,
|
|
1135
915
|
() => this.renderContent()
|
|
1136
916
|
)
|
|
1137
|
-
)}
|
|
1138
|
-
<div class="zoom-image-container">
|
|
1139
|
-
${V(
|
|
917
|
+
)}<div class="zoom-image-container">${V(
|
|
1140
918
|
e,
|
|
1141
|
-
() => T`<img
|
|
1142
|
-
part="zoom-image"
|
|
1143
|
-
class=${j({
|
|
919
|
+
() => T`<img part="zoom-image" class=${j({
|
|
1144
920
|
"zoom-image": !0,
|
|
1145
921
|
"zoom-image--hidden": !this.isZoomed
|
|
1146
|
-
})}
|
|
1147
|
-
|
|
1148
|
-
alt=""
|
|
1149
|
-
aria-hidden="true"
|
|
1150
|
-
decoding="async"
|
|
1151
|
-
draggable="false"
|
|
1152
|
-
crossorigin="anonymous"
|
|
1153
|
-
/>`
|
|
1154
|
-
)}
|
|
1155
|
-
</div>
|
|
1156
|
-
${V(
|
|
922
|
+
})} src=${this.currentSrc || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin="anonymous">`
|
|
923
|
+
)}</div>${V(
|
|
1157
924
|
this.skeleton && !this.isLoaded && !this.isError || this.loading,
|
|
1158
|
-
() => T
|
|
1159
|
-
<slot name="skeleton" part="skeleton">
|
|
1160
|
-
<div
|
|
1161
|
-
class=${j({
|
|
925
|
+
() => T`<slot name="skeleton" part="skeleton"><div class=${j({
|
|
1162
926
|
skeleton: !0
|
|
1163
|
-
})}
|
|
1164
|
-
>
|
|
1165
|
-
<cx-skeleton effect="sheen"></cx-skeleton>
|
|
1166
|
-
</div>
|
|
1167
|
-
</slot>
|
|
1168
|
-
`
|
|
927
|
+
})}><cx-skeleton effect="sheen"></cx-skeleton></div></slot>`
|
|
1169
928
|
)}
|
|
1170
|
-
${V(this.isError && this.fallback, () => T
|
|
1171
|
-
<slot name="fallback" part="fallback">
|
|
1172
|
-
<cx-space
|
|
1173
|
-
class=${j({ fallback: !0 })}
|
|
1174
|
-
direction="column"
|
|
1175
|
-
align-items="center"
|
|
1176
|
-
justify-content="center"
|
|
1177
|
-
>
|
|
1178
|
-
<cx-icon name="hide_image" part="fallback-icon"> </cx-icon>
|
|
1179
|
-
</cx-space>
|
|
1180
|
-
</slot>
|
|
1181
|
-
`)}
|
|
1182
|
-
</div>
|
|
1183
|
-
</cx-resize-observer>
|
|
1184
|
-
${V(this.resizable && this.isResizeActive, () => this.renderResizer())}
|
|
1185
|
-
</div>`;
|
|
929
|
+
${V(this.isError && this.fallback, () => T`<slot name="fallback" part="fallback"><cx-space class=${j({ fallback: !0 })} direction="column" align-items="center" justify-content="center"><cx-icon name="hide_image" part="fallback-icon"> </cx-icon></cx-space></slot>`)}</div></cx-resize-observer>${V(this.resizable && this.isResizeActive, () => this.renderResizer())}</div>`;
|
|
1186
930
|
}
|
|
1187
931
|
};
|
|
1188
932
|
l.styles = [We, _e, Qe];
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { G as A, r as T, C as b, b as H, L as X, T as Y, R as Z, m as I, aw as j, a as N, f as k, x as y, H as J, ak as x, e as q, h as V, j as z, E as B } from "./am-chart.
|
|
2
|
-
import { ay as it, aJ as rt, B as ot, aT as nt, aS as ht, aE as lt, al as ct, az as gt, ae as dt, a2 as pt, aM as mt, ag as ft, aN as ut, aA as yt, aB as _t, aO as xt, aC as Ct, an as wt, aL as Pt, M as kt, aP as bt, P as Nt, aK as Lt, aD as Dt, w as Tt, a8 as vt, aF as Mt, J as Rt, S as Gt, n as St, aR as Ot, D as Wt, aG as Ft, aI as Ht, aH as It, d as At, aQ as Vt, q as zt, ax as Bt } from "./am-chart.
|
|
3
|
-
import { B as Xt, E as Yt, L as Zt, M as jt, S as Jt } from "./SpriteResizer
|
|
4
|
-
import { L as K } from "./ProgressPie.
|
|
5
|
-
import { C as Kt, a as Qt, N as Ut, O as $t, P as te } from "./ProgressPie.
|
|
6
|
-
import { C as se } from "./Circle.
|
|
7
|
-
import { P as ie } from "./Polygon.
|
|
8
|
-
import { a as oe, Z as ne } from "./ZoomTools.
|
|
9
|
-
import { L as Q } from "./LinearGradient.
|
|
10
|
-
import { E as le } from "./EditableLabel.
|
|
11
|
-
import { P as ge } from "./Picture.
|
|
12
|
-
import { R as pe, a as me } from "./RadialLabel.
|
|
13
|
-
import { T as ue } from "./Triangle.
|
|
14
|
-
import { S as _e } from "./Scrollbar.
|
|
15
|
-
import { S as Ce } from "./Slider.
|
|
16
|
-
import { S as Pe } from "./Slice.
|
|
17
|
-
import { G as E } from "./Gradient.
|
|
1
|
+
import { G as A, r as T, C as b, b as H, L as X, T as Y, R as Z, m as I, aw as j, a as N, f as k, x as y, H as J, ak as x, e as q, h as V, j as z, E as B } from "./am-chart.H2jnOzFc.js";
|
|
2
|
+
import { ay as it, aJ as rt, B as ot, aT as nt, aS as ht, aE as lt, al as ct, az as gt, ae as dt, a2 as pt, aM as mt, ag as ft, aN as ut, aA as yt, aB as _t, aO as xt, aC as Ct, an as wt, aL as Pt, M as kt, aP as bt, P as Nt, aK as Lt, aD as Dt, w as Tt, a8 as vt, aF as Mt, J as Rt, S as Gt, n as St, aR as Ot, D as Wt, aG as Ft, aI as Ht, aH as It, d as At, aQ as Vt, q as zt, ax as Bt } from "./am-chart.H2jnOzFc.js";
|
|
3
|
+
import { B as Xt, E as Yt, L as Zt, M as jt, S as Jt } from "./SpriteResizer.DFnmcy0h.js";
|
|
4
|
+
import { L as K } from "./ProgressPie.DlCwXN17.js";
|
|
5
|
+
import { C as Kt, a as Qt, N as Ut, O as $t, P as te } from "./ProgressPie.DlCwXN17.js";
|
|
6
|
+
import { C as se } from "./Circle.DBa5Ok8V.js";
|
|
7
|
+
import { P as ie } from "./Polygon.BwMvXN2H.js";
|
|
8
|
+
import { a as oe, Z as ne } from "./ZoomTools.D5JPehoL.js";
|
|
9
|
+
import { L as Q } from "./LinearGradient.B1z9AGUt.js";
|
|
10
|
+
import { E as le } from "./EditableLabel.BWeq6fgX.js";
|
|
11
|
+
import { P as ge } from "./Picture.YSPC0l0Q.js";
|
|
12
|
+
import { R as pe, a as me } from "./RadialLabel.DyVOf2K8.js";
|
|
13
|
+
import { T as ue } from "./Triangle.BaOef7HV.js";
|
|
14
|
+
import { S as _e } from "./Scrollbar.BdZVb_Z-.js";
|
|
15
|
+
import { S as Ce } from "./Slider.C20No2z5.js";
|
|
16
|
+
import { S as Pe } from "./Slice.DiEswWa6.js";
|
|
17
|
+
import { G as E } from "./Gradient.CdcsPIru.js";
|
|
18
18
|
class v extends A {
|
|
19
19
|
_beforeChanged() {
|
|
20
20
|
super._beforeChanged(), (this.isDirty("radius") || this.isDirty("innerRadius") || this.isDirty("spikes")) && (this._clear = !0);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as d, ab as z, e as p, aL as y, y as c, T as o, az as b, f as S, P as m, bq as u, a as O, a9 as x, z as h } from "./am-chart.
|
|
2
|
-
import { bs as C } from "./am-chart.
|
|
3
|
-
import { G as k } from "./Gradient.
|
|
1
|
+
import { E as d, ab as z, e as p, aL as y, y as c, T as o, az as b, f as S, P as m, bq as u, a as O, a9 as x, z as h } from "./am-chart.H2jnOzFc.js";
|
|
2
|
+
import { bs as C } from "./am-chart.H2jnOzFc.js";
|
|
3
|
+
import { G as k } from "./Gradient.CdcsPIru.js";
|
|
4
4
|
class _ extends d {
|
|
5
5
|
constructor() {
|
|
6
6
|
super(...arguments), this._refs = {};
|