@orangelogic/design-system 2.19.0-pr77202.21
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 +5 -0
- package/library/assets/content-builder.css +1 -0
- package/library/assets/design-system.css +1 -0
- package/library/assets/outlined.css +1 -0
- package/library/assets/rounded.css +1 -0
- package/library/assets/sharp.css +1 -0
- package/library/atoms.d.ts +1 -0
- package/library/chunks/DeviceOrientationControls.CCdbZgfJ.js +29 -0
- package/library/chunks/OrbitControls.CLHBWz99.js +270 -0
- package/library/chunks/VRControls.js_g1t8t.js +25 -0
- package/library/chunks/VREffect.DBiEtV6k.js +113 -0
- package/library/chunks/_baseUniq.BUihBa8c.js +202 -0
- package/library/chunks/_commonjsHelpers.ByX85dGu.js +33 -0
- package/library/chunks/animation-registry.DavRkTTr.js +69 -0
- package/library/chunks/animation.DPqSuC7g.js +999 -0
- package/library/chunks/asset-link-format.BSRDqHg7.js +6 -0
- package/library/chunks/asset-link-format.CNLtOgSn.js +2900 -0
- package/library/chunks/base.D76d76ww.js +9 -0
- package/library/chunks/browser.Va59Ix3P.js +82 -0
- package/library/chunks/button.G_W-dK6b.js +292 -0
- package/library/chunks/button.styles.CRh5_Ev4.js +718 -0
- package/library/chunks/capitalize.CNStXZBq.js +41 -0
- package/library/chunks/choose.BTbF6BAn.js +12 -0
- package/library/chunks/class-map.DqNfBvJI.js +32 -0
- package/library/chunks/color-swatch-group.fL5ADbZF.js +568 -0
- package/library/chunks/color-swatch.JL7CbNRm.js +558 -0
- package/library/chunks/component.styles.DtouHn2g.js +71 -0
- package/library/chunks/confirm-popover.DwSAxWFi.js +286 -0
- package/library/chunks/cropper.3qRm5dEe.js +28660 -0
- package/library/chunks/custom-element.fmLrnDZr.js +682 -0
- package/library/chunks/debounce.DZNkg8Q5.js +11 -0
- package/library/chunks/default-value.BrNrMtnz.js +15 -0
- package/library/chunks/dialog.upIZWR3x.js +1998 -0
- package/library/chunks/directive-helpers.D78ZFDYN.js +37 -0
- package/library/chunks/directive.oAbCiebi.js +27 -0
- package/library/chunks/dom.DcrKFR2q.js +67 -0
- package/library/chunks/dot-pagination.EWl_NO9m.js +323 -0
- package/library/chunks/drag.DXEXVXPv.js +18 -0
- package/library/chunks/endpoints.3oM4-c57.js +2380 -0
- package/library/chunks/event-options.CYHYGOd8.js +14 -0
- package/library/chunks/event.mFzZi4sr.js +11 -0
- package/library/chunks/file-on-demand.Cb4mtesb.js +3396 -0
- package/library/chunks/flow.gcpXucZv.js +508 -0
- package/library/chunks/folder-select.BsbsjikP.js +719 -0
- package/library/chunks/form-control.styles.j0hNjZTU.js +67 -0
- package/library/chunks/form.BFLbw9Rz.js +193 -0
- package/library/chunks/guard.L-Ctqt3S.js +24 -0
- package/library/chunks/header.CzGjJnha.js +775 -0
- package/library/chunks/hub-connection.BiLljnv2.js +1875 -0
- package/library/chunks/i18n.C6c6_pqI.js +836 -0
- package/library/chunks/if-defined.CKupVaWs.js +10 -0
- package/library/chunks/iframe.CVP0aR9K.js +158 -0
- package/library/chunks/image.CRcv0x3Z.js +1276 -0
- package/library/chunks/index.C1chwzNp.js +710 -0
- package/library/chunks/index.Cpamj0jB.js +10 -0
- package/library/chunks/isObjectLike.z36Fu426.js +34 -0
- package/library/chunks/isSymbol.L0C2ND_U.js +8 -0
- package/library/chunks/list-editor.BPUsGMW-.js +356 -0
- package/library/chunks/live.DCdtYl87.js +30 -0
- package/library/chunks/map.D8heArFD.js +14 -0
- package/library/chunks/math.DqTA6ya4.js +7 -0
- package/library/chunks/menu-item.HK2A6RqD.js +775 -0
- package/library/chunks/modal.BqNLxgs1.js +81 -0
- package/library/chunks/number.eX2EGPvy.js +83 -0
- package/library/chunks/option.pgg_ZoHY.js +294 -0
- package/library/chunks/overlay-scrollbar.styles.B1VCLkfA.js +711 -0
- package/library/chunks/pagination.y5oqoPVr.js +4 -0
- package/library/chunks/query-all.i3PyvTUQ.js +15 -0
- package/library/chunks/query-async.CTgXGyQ5.js +14 -0
- package/library/chunks/query.BBf1UFkC.js +31 -0
- package/library/chunks/repeat.B1pVpmRx.js +61 -0
- package/library/chunks/scroll.DwPiX2Ox.js +54 -0
- package/library/chunks/select.DMdl1Kdd.js +1442 -0
- package/library/chunks/slot.DJLm4Dig.js +50 -0
- package/library/chunks/sortable.esm.oSzf6C5Q.js +1260 -0
- package/library/chunks/state.Dt9F_SuS.js +12 -0
- package/library/chunks/static.kLXgh3Gq.js +31 -0
- package/library/chunks/string.yyVPNus8.js +676 -0
- package/library/chunks/style-map.lEJHEwk3.js +35 -0
- package/library/chunks/tab-group.3F6gRchD.js +1071 -0
- package/library/chunks/tabbable.CcMz3mIL.js +63 -0
- package/library/chunks/table.BarE1-gL.js +18567 -0
- package/library/chunks/timecode.C9Yc2sWq.js +98 -0
- package/library/chunks/toString.CL_lYXbK.js +26 -0
- package/library/chunks/tree.5Cb85J9q.js +1226 -0
- package/library/chunks/typography.trna8y2b.js +147 -0
- package/library/chunks/unsafe-html.BpqikVtf.js +26 -0
- package/library/chunks/watch.BCJD77bD.js +547 -0
- package/library/chunks/when.Dr1es41R.js +11 -0
- package/library/components/alert.d.ts +3 -0
- package/library/components/alert.js +349 -0
- package/library/components/animated-image.d.ts +3 -0
- package/library/components/animated-image.js +156 -0
- package/library/components/animation.d.ts +3 -0
- package/library/components/animation.js +8 -0
- package/library/components/asset-link-format.d.ts +3 -0
- package/library/components/asset-link-format.js +16 -0
- package/library/components/atoms.js +170 -0
- package/library/components/avatar.d.ts +3 -0
- package/library/components/avatar.js +153 -0
- package/library/components/badge.d.ts +3 -0
- package/library/components/badge.js +177 -0
- package/library/components/bicolor-picker.d.ts +3 -0
- package/library/components/bicolor-picker.js +89 -0
- package/library/components/border-input-group.d.ts +3 -0
- package/library/components/border-input-group.js +90 -0
- package/library/components/breadcrumb-item.d.ts +3 -0
- package/library/components/breadcrumb-item.js +206 -0
- package/library/components/breadcrumb.d.ts +3 -0
- package/library/components/breadcrumb.js +74 -0
- package/library/components/button-group.d.ts +3 -0
- package/library/components/button-group.js +96 -0
- package/library/components/button.d.ts +3 -0
- package/library/components/button.js +19 -0
- package/library/components/card.d.ts +3 -0
- package/library/components/card.js +162 -0
- package/library/components/checkbox.d.ts +3 -0
- package/library/components/checkbox.js +376 -0
- package/library/components/color-picker.d.ts +3 -0
- package/library/components/color-picker.js +1411 -0
- package/library/components/color-swatch-group.d.ts +3 -0
- package/library/components/color-swatch-group.js +22 -0
- package/library/components/color-swatch.d.ts +3 -0
- package/library/components/color-swatch.js +21 -0
- package/library/components/confirm-popover.d.ts +3 -0
- package/library/components/confirm-popover.js +13 -0
- package/library/components/copy-button.d.ts +3 -0
- package/library/components/copy-button.js +448 -0
- package/library/components/corner-position-input-group.d.ts +3 -0
- package/library/components/corner-position-input-group.js +144 -0
- package/library/components/cropper.d.ts +3 -0
- package/library/components/cropper.js +10 -0
- package/library/components/details.d.ts +3 -0
- package/library/components/details.js +278 -0
- package/library/components/dialog.d.ts +3 -0
- package/library/components/dialog.js +23 -0
- package/library/components/divider.d.ts +3 -0
- package/library/components/divider.js +91 -0
- package/library/components/dot-pagination.d.ts +3 -0
- package/library/components/dot-pagination.js +17 -0
- package/library/components/drawer.d.ts +3 -0
- package/library/components/drawer.js +518 -0
- package/library/components/dropdown.d.ts +3 -0
- package/library/components/dropdown.js +368 -0
- package/library/components/dynamic-select.d.ts +3 -0
- package/library/components/dynamic-select.js +333 -0
- package/library/components/element-clamp.d.ts +3 -0
- package/library/components/element-clamp.js +263 -0
- package/library/components/file-on-demand.d.ts +3 -0
- package/library/components/file-on-demand.js +37 -0
- package/library/components/folder-select.d.ts +3 -0
- package/library/components/folder-select.js +16 -0
- package/library/components/fonts.js +8 -0
- package/library/components/format-bytes.d.ts +3 -0
- package/library/components/format-bytes.js +42 -0
- package/library/components/format-date.d.ts +3 -0
- package/library/components/format-date.js +75 -0
- package/library/components/format-number.d.ts +3 -0
- package/library/components/format-number.js +61 -0
- package/library/components/grid-item.d.ts +3 -0
- package/library/components/grid-item.js +247 -0
- package/library/components/grid.d.ts +3 -0
- package/library/components/grid.js +118 -0
- package/library/components/header.d.ts +3 -0
- package/library/components/header.js +14 -0
- package/library/components/hub-connection.d.ts +3 -0
- package/library/components/hub-connection.js +7 -0
- package/library/components/icon-button.d.ts +3 -0
- package/library/components/icon-button.js +676 -0
- package/library/components/icon.d.ts +3 -0
- package/library/components/icon.js +2486 -0
- package/library/components/iframe.d.ts +3 -0
- package/library/components/iframe.js +12 -0
- package/library/components/image-comparer.d.ts +3 -0
- package/library/components/image-comparer.js +197 -0
- package/library/components/image.d.ts +3 -0
- package/library/components/image.js +21 -0
- package/library/components/include.d.ts +3 -0
- package/library/components/include.js +76 -0
- package/library/components/input-group.d.ts +3 -0
- package/library/components/input-group.js +91 -0
- package/library/components/input.d.ts +3 -0
- package/library/components/input.js +3460 -0
- package/library/components/line-clamp.d.ts +3 -0
- package/library/components/line-clamp.js +218 -0
- package/library/components/list-editor.d.ts +3 -0
- package/library/components/list-editor.js +24 -0
- package/library/components/markdown.d.ts +3 -0
- package/library/components/markdown.js +2706 -0
- package/library/components/masonry.d.ts +3 -0
- package/library/components/masonry.js +401 -0
- package/library/components/menu-item.d.ts +3 -0
- package/library/components/menu-item.js +15 -0
- package/library/components/menu-label.d.ts +3 -0
- package/library/components/menu-label.js +37 -0
- package/library/components/menu-section.d.ts +3 -0
- package/library/components/menu-section.js +64 -0
- package/library/components/menu.d.ts +3 -0
- package/library/components/menu.js +427 -0
- package/library/components/molecules.js +38 -0
- package/library/components/mutation-observer.d.ts +3 -0
- package/library/components/mutation-observer.js +100 -0
- package/library/components/option.d.ts +3 -0
- package/library/components/option.js +14 -0
- package/library/components/organisms.js +8 -0
- package/library/components/padding-input-group.d.ts +3 -0
- package/library/components/padding-input-group.js +103 -0
- package/library/components/pagination.d.ts +3 -0
- package/library/components/pagination.js +338 -0
- package/library/components/popup.d.ts +3 -0
- package/library/components/popup.js +3299 -0
- package/library/components/position-picker.d.ts +3 -0
- package/library/components/position-picker.js +132 -0
- package/library/components/progress-bar.d.ts +3 -0
- package/library/components/progress-bar.js +160 -0
- package/library/components/progress-ring.d.ts +3 -0
- package/library/components/progress-ring.js +137 -0
- package/library/components/qr-code.d.ts +3 -0
- package/library/components/qr-code.js +610 -0
- package/library/components/radio-button.d.ts +3 -0
- package/library/components/radio-button.js +151 -0
- package/library/components/radio-card.d.ts +3 -0
- package/library/components/radio-card.js +262 -0
- package/library/components/radio-group.d.ts +3 -0
- package/library/components/radio-group.js +339 -0
- package/library/components/radio.d.ts +3 -0
- package/library/components/radio.js +248 -0
- package/library/components/range.d.ts +3 -0
- package/library/components/range.js +1333 -0
- package/library/components/rating.d.ts +3 -0
- package/library/components/rating.js +361 -0
- package/library/components/relative-time.d.ts +3 -0
- package/library/components/relative-time.js +87 -0
- package/library/components/resize-observer.d.ts +3 -0
- package/library/components/resize-observer.js +64 -0
- package/library/components/select.d.ts +3 -0
- package/library/components/select.js +27 -0
- package/library/components/shadow-input-group.d.ts +3 -0
- package/library/components/shadow-input-group.js +115 -0
- package/library/components/share-option-list.d.ts +3 -0
- package/library/components/share-option-list.js +765 -0
- package/library/components/sidebar.d.ts +3 -0
- package/library/components/sidebar.js +303 -0
- package/library/components/size-input-group.d.ts +3 -0
- package/library/components/size-input-group.js +229 -0
- package/library/components/skeleton.d.ts +3 -0
- package/library/components/skeleton.js +104 -0
- package/library/components/space.d.ts +3 -0
- package/library/components/space.js +178 -0
- package/library/components/spinner.d.ts +3 -0
- package/library/components/spinner.js +93 -0
- package/library/components/split-panel.d.ts +3 -0
- package/library/components/split-panel.js +259 -0
- package/library/components/step.d.ts +3 -0
- package/library/components/step.js +360 -0
- package/library/components/stepper-wizard.d.ts +3 -0
- package/library/components/stepper-wizard.js +109 -0
- package/library/components/stepper.d.ts +3 -0
- package/library/components/stepper.js +71 -0
- package/library/components/switch.d.ts +3 -0
- package/library/components/switch.js +433 -0
- package/library/components/tab-group.d.ts +3 -0
- package/library/components/tab-group.js +24 -0
- package/library/components/tab-panel.d.ts +3 -0
- package/library/components/tab-panel.js +70 -0
- package/library/components/tab.d.ts +3 -0
- package/library/components/tab.js +204 -0
- package/library/components/table.d.ts +3 -0
- package/library/components/table.js +69 -0
- package/library/components/tag.d.ts +3 -0
- package/library/components/tag.js +217 -0
- package/library/components/textarea.d.ts +3 -0
- package/library/components/textarea.js +618 -0
- package/library/components/timecode.d.ts +3 -0
- package/library/components/timecode.js +10 -0
- package/library/components/tooltip.d.ts +3 -0
- package/library/components/tooltip.js +268 -0
- package/library/components/tree-item.d.ts +3 -0
- package/library/components/tree-item.js +18 -0
- package/library/components/tree.d.ts +3 -0
- package/library/components/tree.js +14 -0
- package/library/components/typeface.d.ts +3 -0
- package/library/components/typeface.js +203 -0
- package/library/components/types.js +156620 -0
- package/library/components/typography.d.ts +3 -0
- package/library/components/typography.js +6 -0
- package/library/components/video.d.ts +3 -0
- package/library/components/video.js +49614 -0
- package/library/components/visually-hidden.d.ts +3 -0
- package/library/components/visually-hidden.js +32 -0
- package/library/css/ol-base.css +200 -0
- package/library/css/ol-dark.css +152 -0
- package/library/css/ol-light.css +153 -0
- package/library/fonts.d.ts +1 -0
- package/library/molecules.d.ts +1 -0
- package/library/organisms.d.ts +1 -0
- package/library/package.json +40 -0
- package/library/packages/atoms/src/animations/attention_seekers/bounce.d.ts +16 -0
- package/library/packages/atoms/src/animations/attention_seekers/flash.d.ts +4 -0
- package/library/packages/atoms/src/animations/attention_seekers/headShake.d.ts +4 -0
- package/library/packages/atoms/src/animations/attention_seekers/heartBeat.d.ts +4 -0
- package/library/packages/atoms/src/animations/attention_seekers/jello.d.ts +4 -0
- package/library/packages/atoms/src/animations/attention_seekers/pulse.d.ts +4 -0
- package/library/packages/atoms/src/animations/attention_seekers/rubberBand.d.ts +4 -0
- package/library/packages/atoms/src/animations/attention_seekers/shake.d.ts +4 -0
- package/library/packages/atoms/src/animations/attention_seekers/shakeX.d.ts +4 -0
- package/library/packages/atoms/src/animations/attention_seekers/shakeY.d.ts +4 -0
- package/library/packages/atoms/src/animations/attention_seekers/swing.d.ts +4 -0
- package/library/packages/atoms/src/animations/attention_seekers/tada.d.ts +4 -0
- package/library/packages/atoms/src/animations/attention_seekers/wobble.d.ts +4 -0
- package/library/packages/atoms/src/animations/back_entrances/backInDown.d.ts +5 -0
- package/library/packages/atoms/src/animations/back_entrances/backInLeft.d.ts +5 -0
- package/library/packages/atoms/src/animations/back_entrances/backInRight.d.ts +5 -0
- package/library/packages/atoms/src/animations/back_entrances/backInUp.d.ts +5 -0
- package/library/packages/atoms/src/animations/back_exits/backOutDown.d.ts +5 -0
- package/library/packages/atoms/src/animations/back_exits/backOutLeft.d.ts +5 -0
- package/library/packages/atoms/src/animations/back_exits/backOutRight.d.ts +5 -0
- package/library/packages/atoms/src/animations/back_exits/backOutUp.d.ts +5 -0
- package/library/packages/atoms/src/animations/bouncing_entrances/bounceIn.d.ts +16 -0
- package/library/packages/atoms/src/animations/bouncing_entrances/bounceInDown.d.ts +16 -0
- package/library/packages/atoms/src/animations/bouncing_entrances/bounceInLeft.d.ts +16 -0
- package/library/packages/atoms/src/animations/bouncing_entrances/bounceInRight.d.ts +16 -0
- package/library/packages/atoms/src/animations/bouncing_entrances/bounceInUp.d.ts +16 -0
- package/library/packages/atoms/src/animations/bouncing_exits/bounceOut.d.ts +9 -0
- package/library/packages/atoms/src/animations/bouncing_exits/bounceOutDown.d.ts +9 -0
- package/library/packages/atoms/src/animations/bouncing_exits/bounceOutLeft.d.ts +5 -0
- package/library/packages/atoms/src/animations/bouncing_exits/bounceOutRight.d.ts +5 -0
- package/library/packages/atoms/src/animations/bouncing_exits/bounceOutUp.d.ts +9 -0
- package/library/packages/atoms/src/animations/easings/easings.d.ts +31 -0
- package/library/packages/atoms/src/animations/fading_entrances/fadeIn.d.ts +4 -0
- package/library/packages/atoms/src/animations/fading_entrances/fadeInBottomLeft.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_entrances/fadeInBottomRight.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_entrances/fadeInDown.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_entrances/fadeInDownBig.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_entrances/fadeInLeft.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_entrances/fadeInLeftBig.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_entrances/fadeInRight.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_entrances/fadeInRightBig.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_entrances/fadeInTopLeft.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_entrances/fadeInTopRight.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_entrances/fadeInUp.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_entrances/fadeInUpBig.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_exits/fadeOut.d.ts +4 -0
- package/library/packages/atoms/src/animations/fading_exits/fadeOutBottomLeft.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_exits/fadeOutBottomRight.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_exits/fadeOutDown.d.ts +9 -0
- package/library/packages/atoms/src/animations/fading_exits/fadeOutDownBig.d.ts +9 -0
- package/library/packages/atoms/src/animations/fading_exits/fadeOutLeft.d.ts +9 -0
- package/library/packages/atoms/src/animations/fading_exits/fadeOutLeftBig.d.ts +9 -0
- package/library/packages/atoms/src/animations/fading_exits/fadeOutRight.d.ts +9 -0
- package/library/packages/atoms/src/animations/fading_exits/fadeOutRightBig.d.ts +9 -0
- package/library/packages/atoms/src/animations/fading_exits/fadeOutTopLeft.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_exits/fadeOutTopRight.d.ts +5 -0
- package/library/packages/atoms/src/animations/fading_exits/fadeOutUp.d.ts +9 -0
- package/library/packages/atoms/src/animations/fading_exits/fadeOutUpBig.d.ts +9 -0
- package/library/packages/atoms/src/animations/flippers/flip.d.ts +5 -0
- package/library/packages/atoms/src/animations/flippers/flipInX.d.ts +21 -0
- package/library/packages/atoms/src/animations/flippers/flipInY.d.ts +21 -0
- package/library/packages/atoms/src/animations/flippers/flipOutX.d.ts +9 -0
- package/library/packages/atoms/src/animations/flippers/flipOutY.d.ts +9 -0
- package/library/packages/atoms/src/animations/index.d.ts +99 -0
- package/library/packages/atoms/src/animations/lightspeed/lightSpeedInLeft.d.ts +9 -0
- package/library/packages/atoms/src/animations/lightspeed/lightSpeedInRight.d.ts +9 -0
- package/library/packages/atoms/src/animations/lightspeed/lightSpeedOutLeft.d.ts +9 -0
- package/library/packages/atoms/src/animations/lightspeed/lightSpeedOutRight.d.ts +9 -0
- package/library/packages/atoms/src/animations/rotating_entrances/rotateIn.d.ts +5 -0
- package/library/packages/atoms/src/animations/rotating_entrances/rotateInDownLeft.d.ts +5 -0
- package/library/packages/atoms/src/animations/rotating_entrances/rotateInDownRight.d.ts +5 -0
- package/library/packages/atoms/src/animations/rotating_entrances/rotateInUpLeft.d.ts +5 -0
- package/library/packages/atoms/src/animations/rotating_entrances/rotateInUpRight.d.ts +5 -0
- package/library/packages/atoms/src/animations/rotating_exits/rotateOut.d.ts +9 -0
- package/library/packages/atoms/src/animations/rotating_exits/rotateOutDownLeft.d.ts +9 -0
- package/library/packages/atoms/src/animations/rotating_exits/rotateOutDownRight.d.ts +9 -0
- package/library/packages/atoms/src/animations/rotating_exits/rotateOutUpLeft.d.ts +9 -0
- package/library/packages/atoms/src/animations/rotating_exits/rotateOutUpRight.d.ts +9 -0
- package/library/packages/atoms/src/animations/sliding_entrances/slideInDown.d.ts +9 -0
- package/library/packages/atoms/src/animations/sliding_entrances/slideInLeft.d.ts +9 -0
- package/library/packages/atoms/src/animations/sliding_entrances/slideInRight.d.ts +9 -0
- package/library/packages/atoms/src/animations/sliding_entrances/slideInUp.d.ts +9 -0
- package/library/packages/atoms/src/animations/sliding_exits/slideOutDown.d.ts +9 -0
- package/library/packages/atoms/src/animations/sliding_exits/slideOutLeft.d.ts +9 -0
- package/library/packages/atoms/src/animations/sliding_exits/slideOutRight.d.ts +9 -0
- package/library/packages/atoms/src/animations/sliding_exits/slideOutUp.d.ts +9 -0
- package/library/packages/atoms/src/animations/specials/hinge.d.ts +21 -0
- package/library/packages/atoms/src/animations/specials/jackInTheBox.d.ts +16 -0
- package/library/packages/atoms/src/animations/specials/rollIn.d.ts +5 -0
- package/library/packages/atoms/src/animations/specials/rollOut.d.ts +9 -0
- package/library/packages/atoms/src/animations/zooming_entrances/zoomIn.d.ts +9 -0
- package/library/packages/atoms/src/animations/zooming_entrances/zoomInDown.d.ts +6 -0
- package/library/packages/atoms/src/animations/zooming_entrances/zoomInLeft.d.ts +6 -0
- package/library/packages/atoms/src/animations/zooming_entrances/zoomInRight.d.ts +6 -0
- package/library/packages/atoms/src/animations/zooming_entrances/zoomInUp.d.ts +6 -0
- package/library/packages/atoms/src/animations/zooming_exits/zoomOut.d.ts +9 -0
- package/library/packages/atoms/src/animations/zooming_exits/zoomOutDown.d.ts +6 -0
- package/library/packages/atoms/src/animations/zooming_exits/zoomOutLeft.d.ts +5 -0
- package/library/packages/atoms/src/animations/zooming_exits/zoomOutRight.d.ts +5 -0
- package/library/packages/atoms/src/animations/zooming_exits/zoomOutUp.d.ts +6 -0
- package/library/packages/atoms/src/components/alert/alert.d.ts +85 -0
- package/library/packages/atoms/src/components/alert/alert.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/animated-image/animated-image.d.ts +44 -0
- package/library/packages/atoms/src/components/animated-image/animated-image.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/animation/animation.d.ts +95 -0
- package/library/packages/atoms/src/components/animation/animation.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/animation/animations.d.ts +6 -0
- package/library/packages/atoms/src/components/avatar/avatar.d.ts +47 -0
- package/library/packages/atoms/src/components/avatar/avatar.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/badge/badge.d.ts +27 -0
- package/library/packages/atoms/src/components/badge/badge.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/breadcrumb/breadcrumb.d.ts +38 -0
- package/library/packages/atoms/src/components/breadcrumb/breadcrumb.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/breadcrumb-item/breadcrumb-item.d.ts +42 -0
- package/library/packages/atoms/src/components/breadcrumb-item/breadcrumb-item.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/button/button.d.ts +157 -0
- package/library/packages/atoms/src/components/button/button.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/button-group/button-group.d.ts +31 -0
- package/library/packages/atoms/src/components/button-group/button-group.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/card/card.d.ts +42 -0
- package/library/packages/atoms/src/components/card/card.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +98 -0
- package/library/packages/atoms/src/components/checkbox/checkbox.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +247 -0
- package/library/packages/atoms/src/components/color-picker/color-picker.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/copy-button/copy-button.d.ts +110 -0
- package/library/packages/atoms/src/components/copy-button/copy-button.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/details/details.d.ts +65 -0
- package/library/packages/atoms/src/components/details/details.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/dialog/dialog.d.ts +156 -0
- package/library/packages/atoms/src/components/dialog/dialog.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/divider/divider.d.ts +32 -0
- package/library/packages/atoms/src/components/divider/divider.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/dot-pagination/dot-pagination.d.ts +94 -0
- package/library/packages/atoms/src/components/dot-pagination/dot-pagination.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +121 -0
- package/library/packages/atoms/src/components/drawer/drawer.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +127 -0
- package/library/packages/atoms/src/components/dropdown/dropdown.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/element-clamp/element-clamp.d.ts +88 -0
- package/library/packages/atoms/src/components/element-clamp/element-clamp.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/format-bytes/format-bytes.d.ts +20 -0
- package/library/packages/atoms/src/components/format-date/format-date.d.ts +46 -0
- package/library/packages/atoms/src/components/format-number/format-number.d.ts +38 -0
- package/library/packages/atoms/src/components/grid/grid.d.ts +40 -0
- package/library/packages/atoms/src/components/grid/grid.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/grid-item/grid-item.d.ts +49 -0
- package/library/packages/atoms/src/components/grid-item/grid-item.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/header/header.d.ts +77 -0
- package/library/packages/atoms/src/components/header/header.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/hub-connection/hub-connection.d.ts +55 -0
- package/library/packages/atoms/src/components/icon/font-awesome.style.d.ts +2 -0
- package/library/packages/atoms/src/components/icon/icon.d.ts +40 -0
- package/library/packages/atoms/src/components/icon/icon.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +102 -0
- package/library/packages/atoms/src/components/icon-button/icon-button.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/iframe/iframe.d.ts +60 -0
- package/library/packages/atoms/src/components/iframe/iframe.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/image/image.d.ts +171 -0
- package/library/packages/atoms/src/components/image/image.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/image-comparer/image-comparer.d.ts +49 -0
- package/library/packages/atoms/src/components/image-comparer/image-comparer.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/include/include.d.ts +35 -0
- package/library/packages/atoms/src/components/include/include.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/include/request.d.ts +8 -0
- package/library/packages/atoms/src/components/input/input.d.ts +248 -0
- package/library/packages/atoms/src/components/input/input.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/input-group/input-group.d.ts +30 -0
- package/library/packages/atoms/src/components/input-group/input-group.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/line-clamp/line-clamp.d.ts +88 -0
- package/library/packages/atoms/src/components/line-clamp/line-clamp.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/markdown/markdown.d.ts +51 -0
- package/library/packages/atoms/src/components/markdown/parser.d.ts +14 -0
- package/library/packages/atoms/src/components/menu/menu.d.ts +77 -0
- package/library/packages/atoms/src/components/menu/menu.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +105 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/menu-item/submenu-controller.d.ts +43 -0
- package/library/packages/atoms/src/components/menu-label/menu-label.d.ts +19 -0
- package/library/packages/atoms/src/components/menu-label/menu-label.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/menu-section/menu-section.d.ts +33 -0
- package/library/packages/atoms/src/components/menu-section/menu-section.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/mutation-observer/mutation-observer.d.ts +48 -0
- package/library/packages/atoms/src/components/mutation-observer/mutation-observer.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/option/option.d.ts +69 -0
- package/library/packages/atoms/src/components/option/option.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +94 -0
- package/library/packages/atoms/src/components/pagination/pagination.style.d.ts +2 -0
- package/library/packages/atoms/src/components/popup/overlay/AbstractOverlay.d.ts +73 -0
- package/library/packages/atoms/src/components/popup/overlay/ClickController.d.ts +15 -0
- package/library/packages/atoms/src/components/popup/overlay/HoverController.d.ts +21 -0
- package/library/packages/atoms/src/components/popup/overlay/InteractionController.d.ts +39 -0
- package/library/packages/atoms/src/components/popup/overlay/LongpressController.d.ts +22 -0
- package/library/packages/atoms/src/components/popup/overlay/Overlay.d.ts +137 -0
- package/library/packages/atoms/src/components/popup/overlay/OverlayDialog.d.ts +5 -0
- package/library/packages/atoms/src/components/popup/overlay/OverlayNoPopover.d.ts +5 -0
- package/library/packages/atoms/src/components/popup/overlay/OverlayPopover.d.ts +5 -0
- package/library/packages/atoms/src/components/popup/overlay/OverlayStack.d.ts +45 -0
- package/library/packages/atoms/src/components/popup/overlay/PlacementController.d.ts +41 -0
- package/library/packages/atoms/src/components/popup/overlay/VirtualTrigger.d.ts +7 -0
- package/library/packages/atoms/src/components/popup/overlay/events.d.ts +24 -0
- package/library/packages/atoms/src/components/popup/overlay/lib/base.d.ts +23 -0
- package/library/packages/atoms/src/components/popup/overlay/lib/reactive-controllers.d.ts +24 -0
- package/library/packages/atoms/src/components/popup/overlay/lib/shared.d.ts +15 -0
- package/library/packages/atoms/src/components/popup/overlay/overlay-timer.d.ts +22 -0
- package/library/packages/atoms/src/components/popup/overlay/overlay.component.d.ts +7 -0
- package/library/packages/atoms/src/components/popup/overlay/overlay.style.d.ts +2 -0
- package/library/packages/atoms/src/components/popup/overlay/slottable-request-event.d.ts +12 -0
- package/library/packages/atoms/src/components/popup/overlay/strategies.d.ts +9 -0
- package/library/packages/atoms/src/components/popup/popup.d.ts +184 -0
- package/library/packages/atoms/src/components/popup/popup.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/progress-bar/progress-bar.d.ts +35 -0
- package/library/packages/atoms/src/components/progress-bar/progress-bar.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/progress-ring/progress-ring.d.ts +35 -0
- package/library/packages/atoms/src/components/progress-ring/progress-ring.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/qr-code/qr-code.d.ts +38 -0
- package/library/packages/atoms/src/components/qr-code/qr-code.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/radio/radio.d.ts +56 -0
- package/library/packages/atoms/src/components/radio/radio.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/radio/radio.svg.d.ts +1 -0
- package/library/packages/atoms/src/components/radio-button/radio-button.d.ts +69 -0
- package/library/packages/atoms/src/components/radio-button/radio-button.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/radio-card/radio-card.d.ts +68 -0
- package/library/packages/atoms/src/components/radio-card/radio-card.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/radio-group/radio-group.d.ts +95 -0
- package/library/packages/atoms/src/components/radio-group/radio-group.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/range/range.d.ts +287 -0
- package/library/packages/atoms/src/components/range/range.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/range/range.utils.d.ts +48 -0
- package/library/packages/atoms/src/components/rating/rating.d.ts +78 -0
- package/library/packages/atoms/src/components/rating/rating.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/relative-time/relative-time.d.ts +43 -0
- package/library/packages/atoms/src/components/resize-observer/resize-observer.d.ts +33 -0
- package/library/packages/atoms/src/components/resize-observer/resize-observer.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/select/select.d.ts +372 -0
- package/library/packages/atoms/src/components/select/select.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/skeleton/skeleton.d.ts +27 -0
- package/library/packages/atoms/src/components/skeleton/skeleton.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/space/space.d.ts +51 -0
- package/library/packages/atoms/src/components/space/space.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/spinner/spinner.d.ts +23 -0
- package/library/packages/atoms/src/components/spinner/spinner.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/split-panel/split-panel.d.ts +78 -0
- package/library/packages/atoms/src/components/split-panel/split-panel.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/step/step.d.ts +88 -0
- package/library/packages/atoms/src/components/step/step.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/stepper/stepper.d.ts +35 -0
- package/library/packages/atoms/src/components/stepper/stepper.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/switch/switch.d.ts +92 -0
- package/library/packages/atoms/src/components/switch/switch.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/tab/tab.d.ts +51 -0
- package/library/packages/atoms/src/components/tab/tab.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +176 -0
- package/library/packages/atoms/src/components/tab-group/tab-group.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/tab-panel/tab-panel.d.ts +29 -0
- package/library/packages/atoms/src/components/tab-panel/tab-panel.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/table/components/index.d.ts +2 -0
- package/library/packages/atoms/src/components/table/components/table-row-actions/table-row-actions-dropdown.d.ts +39 -0
- package/library/packages/atoms/src/components/table/components/table-row-actions/table-row-actions.d.ts +45 -0
- package/library/packages/atoms/src/components/table/components/table-row-actions/table-row-actions.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +79 -0
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/table/modules/HoverMenu.d.ts +13 -0
- package/library/packages/atoms/src/components/table/table.d.ts +622 -0
- package/library/packages/atoms/src/components/table/table.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/table/table.utils.d.ts +19 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/ColumnManager.d.ts +70 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/CoreFeature.d.ts +59 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/FooterManager.d.ts +22 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/Module.d.ts +46 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/RowManager.d.ts +140 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/Tabulator.d.ts +120 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/TabulatorFull.d.ts +52 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/cell/Cell.d.ts +62 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/cell/CellComponent.d.ts +23 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/column/Column.d.ts +128 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/column/ColumnComponent.d.ts +28 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/column/defaults/options.d.ts +19 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/defaults/options.d.ts +4 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/modules/core.d.ts +3 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/modules/optional.d.ts +38 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/rendering/Renderer.d.ts +42 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/rendering/renderers/BasicHorizontal.d.ts +8 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/rendering/renderers/BasicVertical.d.ts +14 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/rendering/renderers/VirtualDomHorizontal.d.ts +57 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/rendering/renderers/VirtualDomVertical.d.ts +43 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/row/PseudoRow.d.ts +19 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/row/Row.d.ts +69 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/row/RowComponent.d.ts +26 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/Alert.d.ts +14 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/ComponentFunctionBinder.d.ts +9 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DataLoader.d.ts +34 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DependencyRegistry.d.ts +13 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DeprecationAdvisor.d.ts +10 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/ExternalEventBus.d.ts +18 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/Helpers.d.ts +9 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/InteractionMonitor.d.ts +26 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/InternalEventBus.d.ts +22 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/ModuleBinder.d.ts +43 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/OptionsList.d.ts +10 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/Popup.d.ts +49 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/TableRegistry.d.ts +12 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/index.d.ts +14 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Accessibility/Accessibility.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Accessor/Accessor.d.ts +18 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Accessor/defaults/accessors.d.ts +4 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +41 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/defaults/config.d.ts +4 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/defaults/contentTypeFormatters.d.ts +4 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/defaults/urlGenerator.d.ts +3 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Clipboard/Clipboard.d.ts +35 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Clipboard/defaults/pasteActions.d.ts +5 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Clipboard/defaults/pasteParsers.d.ts +4 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Clipboard/extensions/extensions.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Clipboard/extensions/keybindings/actions.d.ts +5 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Clipboard/extensions/keybindings/bindings.d.ts +3 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/ColumnCalcs/CalcComponent.d.ts +13 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/ColumnCalcs/ColumnCalcs.d.ts +67 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/ColumnCalcs/defaults/calculations.d.ts +5 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Comms/Comms.d.ts +12 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/DataTree/DataTree.d.ts +59 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Download/Download.d.ts +19 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Download/defaults/downloaders/csv.d.ts +6 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Download/defaults/downloaders/html.d.ts +6 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Download/defaults/downloaders/json.d.ts +6 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Download/defaults/downloaders/jsonLines.d.ts +6 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Download/defaults/downloaders/pdf.d.ts +6 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Download/defaults/downloaders/xlsx.d.ts +6 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Download/defaults/downloaders.d.ts +6 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +57 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +115 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors/adaptable.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors/date.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors/datetime.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors/input.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors/list.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors/number.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors/progress.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors/range.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors/star.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors/textarea.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors/tickCross.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors/time.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/defaults/editors.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/inputMask.d.ts +9 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Export/Export.d.ts +61 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Export/ExportColumn.d.ts +10 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Export/ExportRow.d.ts +12 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Export/defaults/columnLookups.d.ts +6 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Export/defaults/rowLookups.d.ts +6 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/Filter.d.ts +86 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/defaults/filters.d.ts +5 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/Format.d.ts +44 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/adaptable.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/array.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/buttonCross.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/buttonTick.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/color.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/datetime.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/datetimediff.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/handle.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/html.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/image.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/json.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/link.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/lookup.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/money.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/plaintext.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/progress.d.ts +10 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/rownum.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/star.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/tag.d.ts +17 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/textarea.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/tickCross.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/toggle.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters/traffic.d.ts +9 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Format/defaults/formatters.d.ts +50 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +34 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/FrozenRows/FrozenRows.d.ts +22 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/Group.d.ts +83 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupComponent.d.ts +21 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupRows.d.ts +69 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/History/History.d.ts +50 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/History/defaults/redoers.d.ts +22 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/History/defaults/undoers.d.ts +22 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/History/extensions/extensions.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/History/extensions/keybindings/actions.d.ts +5 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/History/extensions/keybindings/bindings.d.ts +2 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/HtmlTableImport/HtmlTableImport.d.ts +17 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Import/Import.d.ts +29 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Import/defaults/importers/array.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Import/defaults/importers/csv.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Import/defaults/importers/json.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Import/defaults/importers/xlsx.d.ts +5 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Import/defaults/importers.d.ts +11 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Interaction/Interaction.d.ts +37 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Keybindings/Keybindings.d.ts +38 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Keybindings/defaults/actions.d.ts +5 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Keybindings/defaults/bindings.d.ts +13 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Layout/Layout.d.ts +17 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Layout/defaults/modes/fitColumns.d.ts +4 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Layout/defaults/modes/fitData.d.ts +4 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Layout/defaults/modes/fitDataGeneral.d.ts +4 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Layout/defaults/modes/fitDataStretch.d.ts +4 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Layout/defaults/modes.d.ts +13 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Localize/Localize.d.ts +26 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Localize/defaults/langs.d.ts +37 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Menu/Menu.d.ts +23 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/MoveColumns/MoveColumns.d.ts +31 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/MoveRows/MoveRows.d.ts +62 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/MoveRows/defaults/receivers.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/MoveRows/defaults/senders.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Mutator/Mutator.d.ts +24 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Mutator/defaults/mutators.d.ts +2 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Page/Page.d.ts +63 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Persistence/Persistence.d.ts +43 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Persistence/defaults/readers.d.ts +5 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Persistence/defaults/writers.d.ts +5 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/PlaceholderRow/PlaceholderRow.d.ts +29 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Popup/Popup.d.ts +19 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Print/Print.d.ts +16 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/ReactiveData/ReactiveData.d.ts +22 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +33 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/ResizeRows/ResizeRows.d.ts +18 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/ResizeTable/ResizeTable.d.ts +24 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/ResponsiveLayout/ResponsiveLayout.d.ts +37 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/ResponsiveLayout/extensions/extensions.d.ts +10 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/ResponsiveLayout/extensions/formatters/responsiveCollapse.d.ts +3 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/SelectRange/Range.d.ts +59 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/SelectRange/RangeComponent.d.ts +27 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/SelectRange/SelectRange.d.ts +121 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/SelectRange/extensions/clipboard/pasteActions.d.ts +4 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/SelectRange/extensions/clipboard/pasteParsers.d.ts +4 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/SelectRange/extensions/export/columnLookups.d.ts +6 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/SelectRange/extensions/export/rowLookups.d.ts +4 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/SelectRange/extensions/extensions.d.ts +36 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/SelectRange/extensions/keybindings/actions.d.ts +5 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/SelectRange/extensions/keybindings/bindings.d.ts +15 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/SelectRow/SelectRow.d.ts +41 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/SelectRow/extensions/extensions.d.ts +10 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/SelectRow/extensions/formatters/rowSelection.d.ts +5 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Sort/Sort.d.ts +39 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Sort/defaults/sorters/alphanum.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Sort/defaults/sorters/array.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Sort/defaults/sorters/boolean.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Sort/defaults/sorters/date.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Sort/defaults/sorters/datetime.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Sort/defaults/sorters/exists.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Sort/defaults/sorters/number.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Sort/defaults/sorters/string.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Sort/defaults/sorters/time.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Sort/defaults/sorters.d.ts +22 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Spreadsheet/GridCalculator.d.ts +13 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Spreadsheet/Sheet.d.ts +50 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Spreadsheet/SheetComponent.d.ts +18 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Spreadsheet/Spreadsheet.d.ts +44 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Tooltip/Tooltip.d.ts +18 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Validate/Validate.d.ts +36 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Validate/defaults/validators.d.ts +18 -0
- package/library/packages/atoms/src/components/tag/tag.d.ts +40 -0
- package/library/packages/atoms/src/components/tag/tag.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/textarea/textarea.d.ts +138 -0
- package/library/packages/atoms/src/components/textarea/textarea.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/timecode/timecode.d.ts +39 -0
- package/library/packages/atoms/src/components/timecode/timecode.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/tooltip/tooltip.d.ts +111 -0
- package/library/packages/atoms/src/components/tooltip/tooltip.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +150 -0
- package/library/packages/atoms/src/components/tree/tree.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +197 -0
- package/library/packages/atoms/src/components/tree-item/tree-item.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/tree-item/tree-item.utils.d.ts +29 -0
- package/library/packages/atoms/src/components/typography/typography.d.ts +23 -0
- package/library/packages/atoms/src/components/typography/typography.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/video/video.constants.d.ts +2 -0
- package/library/packages/atoms/src/components/video/video.d.ts +139 -0
- package/library/packages/atoms/src/components/video/video.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/video/videojs/videojs-vr-172.d.ts +11 -0
- package/library/packages/atoms/src/components/visually-hidden/visually-hidden.d.ts +24 -0
- package/library/packages/atoms/src/components/visually-hidden/visually-hidden.styles.d.ts +2 -0
- package/library/packages/atoms/src/index.d.ts +80 -0
- package/library/packages/atoms/src/utilities/animation-registry.d.ts +24 -0
- package/library/packages/atoms/src/utilities/animation.d.ts +1 -0
- package/library/packages/atoms/src/utilities/styles.d.ts +2 -0
- package/library/packages/atoms/src/utilities/type-check.d.ts +6 -0
- package/library/packages/base/src/cortex-element.d.ts +59 -0
- package/library/packages/base/src/cortex-light-element.d.ts +12 -0
- package/library/packages/base/src/highlightable-element.d.ts +76 -0
- package/library/packages/base/src/resizable-element.d.ts +38 -0
- package/library/packages/data/src/icons.json.d.ts +161323 -0
- package/library/packages/events/src/cx-3d-viewer-config-switch-toggle.d.ts +8 -0
- package/library/packages/events/src/cx-3d-viewer-control-animation-seek.d.ts +8 -0
- package/library/packages/events/src/cx-3d-viewer-control-fullscreen-request.d.ts +8 -0
- package/library/packages/events/src/cx-3d-viewer-control-play-button-toggle.d.ts +6 -0
- package/library/packages/events/src/cx-3d-viewer-control-replay-click.d.ts +6 -0
- package/library/packages/events/src/cx-3d-viewer-control-reset-position-click.d.ts +6 -0
- package/library/packages/events/src/cx-3d-viewer-select.d.ts +9 -0
- package/library/packages/events/src/cx-add.d.ts +6 -0
- package/library/packages/events/src/cx-after-collapse.d.ts +6 -0
- package/library/packages/events/src/cx-after-expand.d.ts +6 -0
- package/library/packages/events/src/cx-after-hide.d.ts +6 -0
- package/library/packages/events/src/cx-after-show.d.ts +6 -0
- package/library/packages/events/src/cx-asset-data-display-slot-change.d.ts +6 -0
- package/library/packages/events/src/cx-asset-picker-delete.d.ts +6 -0
- package/library/packages/events/src/cx-asset-picker-select.d.ts +8 -0
- package/library/packages/events/src/cx-asset-request-status.d.ts +9 -0
- package/library/packages/events/src/cx-bento-resize.d.ts +8 -0
- package/library/packages/events/src/cx-bicolor-picker-change.d.ts +8 -0
- package/library/packages/events/src/cx-blur.d.ts +6 -0
- package/library/packages/events/src/cx-border-input-group-change.d.ts +8 -0
- package/library/packages/events/src/cx-cancel-connection.d.ts +8 -0
- package/library/packages/events/src/cx-cancel-upload.d.ts +8 -0
- package/library/packages/events/src/cx-cancel.d.ts +6 -0
- package/library/packages/events/src/cx-change.d.ts +6 -0
- package/library/packages/events/src/cx-clear-cache.d.ts +6 -0
- package/library/packages/events/src/cx-clear.d.ts +6 -0
- package/library/packages/events/src/cx-close.d.ts +6 -0
- package/library/packages/events/src/cx-collapse.d.ts +6 -0
- package/library/packages/events/src/cx-color-swatch-picker-add.d.ts +8 -0
- package/library/packages/events/src/cx-color-swatch-picker-edit.d.ts +8 -0
- package/library/packages/events/src/cx-column-group-scroll.d.ts +6 -0
- package/library/packages/events/src/cx-column-resizable-change.d.ts +6 -0
- package/library/packages/events/src/cx-column-scroll.d.ts +6 -0
- package/library/packages/events/src/cx-columns-display-change.d.ts +8 -0
- package/library/packages/events/src/cx-comment-mention-select.d.ts +12 -0
- package/library/packages/events/src/cx-connect.d.ts +8 -0
- package/library/packages/events/src/cx-connected.d.ts +6 -0
- package/library/packages/events/src/cx-content-builder-gallery-change.d.ts +10 -0
- package/library/packages/events/src/cx-content-builder-page-change.d.ts +9 -0
- package/library/packages/events/src/cx-content-builder-page-delete.d.ts +6 -0
- package/library/packages/events/src/cx-copy.d.ts +8 -0
- package/library/packages/events/src/cx-corner-position-input-group-change.d.ts +12 -0
- package/library/packages/events/src/cx-disconnect.d.ts +8 -0
- package/library/packages/events/src/cx-dot-pagination-change.d.ts +8 -0
- package/library/packages/events/src/cx-dot-pagination-focus.d.ts +6 -0
- package/library/packages/events/src/cx-download-format-picker-delete.d.ts +6 -0
- package/library/packages/events/src/cx-download-format-picker-select.d.ts +6 -0
- package/library/packages/events/src/cx-download-format-request-status.d.ts +9 -0
- package/library/packages/events/src/cx-drag-end.d.ts +6 -0
- package/library/packages/events/src/cx-drag-start.d.ts +6 -0
- package/library/packages/events/src/cx-enter.d.ts +9 -0
- package/library/packages/events/src/cx-error.d.ts +8 -0
- package/library/packages/events/src/cx-expand.d.ts +6 -0
- package/library/packages/events/src/cx-export-settings.d.ts +6 -0
- package/library/packages/events/src/cx-finish.d.ts +6 -0
- package/library/packages/events/src/cx-focus.d.ts +6 -0
- package/library/packages/events/src/cx-gallery-chunk-request.d.ts +8 -0
- package/library/packages/events/src/cx-gallery-config-save.d.ts +9 -0
- package/library/packages/events/src/cx-gallery-item-click.d.ts +8 -0
- package/library/packages/events/src/cx-gallery-item-config.d.ts +11 -0
- package/library/packages/events/src/cx-gallery-item-delete.d.ts +9 -0
- package/library/packages/events/src/cx-gallery-item-move-left.d.ts +9 -0
- package/library/packages/events/src/cx-gallery-item-move-right.d.ts +9 -0
- package/library/packages/events/src/cx-gallery-item-open-config.d.ts +8 -0
- package/library/packages/events/src/cx-gallery-item-select.d.ts +11 -0
- package/library/packages/events/src/cx-hide.d.ts +6 -0
- package/library/packages/events/src/cx-hover.d.ts +9 -0
- package/library/packages/events/src/cx-image-click.d.ts +15 -0
- package/library/packages/events/src/cx-import-settings.d.ts +6 -0
- package/library/packages/events/src/cx-initial-focus.d.ts +6 -0
- package/library/packages/events/src/cx-input.d.ts +6 -0
- package/library/packages/events/src/cx-invalid.d.ts +6 -0
- package/library/packages/events/src/cx-invoked.d.ts +6 -0
- package/library/packages/events/src/cx-keydown.d.ts +6 -0
- package/library/packages/events/src/cx-lazy-change.d.ts +6 -0
- package/library/packages/events/src/cx-lazy-load.d.ts +6 -0
- package/library/packages/events/src/cx-list-editor-change.d.ts +8 -0
- package/library/packages/events/src/cx-load-more.d.ts +8 -0
- package/library/packages/events/src/cx-load.d.ts +6 -0
- package/library/packages/events/src/cx-mark-favorite.d.ts +8 -0
- package/library/packages/events/src/cx-masonry-select.d.ts +11 -0
- package/library/packages/events/src/cx-mount-request-asset.d.ts +6 -0
- package/library/packages/events/src/cx-mutation.d.ts +8 -0
- package/library/packages/events/src/cx-open-cache-location.d.ts +6 -0
- package/library/packages/events/src/cx-open-drive.d.ts +24 -0
- package/library/packages/events/src/cx-open-search.d.ts +6 -0
- package/library/packages/events/src/cx-padding-input-group-change.d.ts +8 -0
- package/library/packages/events/src/cx-page-change.d.ts +8 -0
- package/library/packages/events/src/cx-page-outline-headings-count.d.ts +8 -0
- package/library/packages/events/src/cx-page-outline-item-click.d.ts +8 -0
- package/library/packages/events/src/cx-page-size-change.d.ts +8 -0
- package/library/packages/events/src/cx-pause-upload.d.ts +8 -0
- package/library/packages/events/src/cx-ready.d.ts +6 -0
- package/library/packages/events/src/cx-refresh.d.ts +6 -0
- package/library/packages/events/src/cx-register-tag.d.ts +8 -0
- package/library/packages/events/src/cx-remove.d.ts +6 -0
- package/library/packages/events/src/cx-renew-token.d.ts +6 -0
- package/library/packages/events/src/cx-reorder.d.ts +15 -0
- package/library/packages/events/src/cx-reposition.d.ts +6 -0
- package/library/packages/events/src/cx-request-close.d.ts +9 -0
- package/library/packages/events/src/cx-resize.d.ts +8 -0
- package/library/packages/events/src/cx-resume-upload.d.ts +8 -0
- package/library/packages/events/src/cx-retry-upload.d.ts +8 -0
- package/library/packages/events/src/cx-save-settings.d.ts +10 -0
- package/library/packages/events/src/cx-save.d.ts +6 -0
- package/library/packages/events/src/cx-sb-button-click.d.ts +14 -0
- package/library/packages/events/src/cx-search.d.ts +8 -0
- package/library/packages/events/src/cx-select.d.ts +8 -0
- package/library/packages/events/src/cx-selected-change.d.ts +8 -0
- package/library/packages/events/src/cx-selection-change.d.ts +8 -0
- package/library/packages/events/src/cx-shadow-input-group-change.d.ts +8 -0
- package/library/packages/events/src/cx-show.d.ts +6 -0
- package/library/packages/events/src/cx-slide-change.d.ts +9 -0
- package/library/packages/events/src/cx-start.d.ts +6 -0
- package/library/packages/events/src/cx-swatch-add.d.ts +6 -0
- package/library/packages/events/src/cx-tab-hide.d.ts +8 -0
- package/library/packages/events/src/cx-tab-show.d.ts +8 -0
- package/library/packages/events/src/cx-table-advanced-search-click.d.ts +6 -0
- package/library/packages/events/src/cx-table-export.d.ts +10 -0
- package/library/packages/events/src/cx-table-row-action-click.d.ts +14 -0
- package/library/packages/events/src/cx-time-based-change.d.ts +8 -0
- package/library/packages/events/src/cx-time-update.d.ts +8 -0
- package/library/packages/events/src/cx-typeface-change.d.ts +6 -0
- package/library/packages/events/src/cx-typeface-download.d.ts +6 -0
- package/library/packages/events/src/cx-unmark-favorite.d.ts +8 -0
- package/library/packages/events/src/cx-video-click.d.ts +15 -0
- package/library/packages/events/src/cx-view-logs.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +127 -0
- package/library/packages/molecules/src/3d-viewer/3d-viewer.constants.d.ts +28 -0
- package/library/packages/molecules/src/3d-viewer/3d-viewer.d.ts +206 -0
- package/library/packages/molecules/src/3d-viewer/3d-viewer.styles.d.ts +2 -0
- package/library/packages/molecules/src/3d-viewer/components/3d-viewer-config/3d-viewer-config.d.ts +76 -0
- package/library/packages/molecules/src/3d-viewer/components/3d-viewer-config/3d-viewer-config.styles.d.ts +2 -0
- package/library/packages/molecules/src/3d-viewer/components/3d-viewer-control/3d-viewer-control.d.ts +80 -0
- package/library/packages/molecules/src/3d-viewer/components/3d-viewer-control/3d-viewer-control.styles.d.ts +2 -0
- package/library/packages/molecules/src/3d-viewer/controllers/animation-controller.d.ts +90 -0
- package/library/packages/molecules/src/3d-viewer/controllers/camera-controller.d.ts +75 -0
- package/library/packages/molecules/src/3d-viewer/controllers/environment-controller.d.ts +65 -0
- package/library/packages/molecules/src/3d-viewer/controllers/lighting-controller.d.ts +39 -0
- package/library/packages/molecules/src/3d-viewer/controllers/model-controller.d.ts +75 -0
- package/library/packages/molecules/src/3d-viewer/controllers/scene-controller.d.ts +94 -0
- package/library/packages/molecules/src/3d-viewer/controllers/scene-effects.d.ts +92 -0
- package/library/packages/molecules/src/asset-data-display/asset-data-display.d.ts +56 -0
- package/library/packages/molecules/src/asset-data-display/asset-data-display.styles.d.ts +2 -0
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +67 -0
- package/library/packages/molecules/src/asset-picker/asset-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/bicolor-picker/bicolor-picker.d.ts +22 -0
- package/library/packages/molecules/src/bicolor-picker/bicolor-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/border-input-group/border-input-group.d.ts +24 -0
- package/library/packages/molecules/src/border-input-group/border-input-group.styles.d.ts +2 -0
- package/library/packages/molecules/src/color-swatch/color-swatch.d.ts +136 -0
- package/library/packages/molecules/src/color-swatch/color-swatch.styles.d.ts +2 -0
- package/library/packages/molecules/src/confirm-popover/confirm-popover.d.ts +81 -0
- package/library/packages/molecules/src/confirm-popover/confirm-popover.style.d.ts +2 -0
- package/library/packages/molecules/src/corner-position-input-group/corner-position-input-group.d.ts +39 -0
- package/library/packages/molecules/src/corner-position-input-group/corner-position-input-group.styles.d.ts +2 -0
- package/library/packages/molecules/src/cropper/cropper.d.ts +59 -0
- package/library/packages/molecules/src/cropper/cropper.styles.d.ts +2 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +37 -0
- package/library/packages/molecules/src/cropper/react/ReactCrop/ReactCrop.d.ts +140 -0
- package/library/packages/molecules/src/cropper/react/ReactCrop/index.d.ts +4 -0
- package/library/packages/molecules/src/cropper/react/ReactCrop/types.d.ts +17 -0
- package/library/packages/molecules/src/cropper/react/ReactCrop/utils.d.ts +26 -0
- package/library/packages/molecules/src/dashboard-iframe/dashboard-iframe.d.ts +61 -0
- package/library/packages/molecules/src/dashboard-iframe/dashboard-iframe.styles.d.ts +2 -0
- package/library/packages/molecules/src/data-tab-group/data-tab-group.d.ts +35 -0
- package/library/packages/molecules/src/data-tab-group/data-tab-group.styles.d.ts +2 -0
- package/library/packages/molecules/src/details-group/details-group.d.ts +26 -0
- package/library/packages/molecules/src/details-group/details-group.styles.d.ts +2 -0
- package/library/packages/molecules/src/docs-example/docs-example.d.ts +76 -0
- package/library/packages/molecules/src/docs-example/docs-example.style.d.ts +2 -0
- package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +72 -0
- package/library/packages/molecules/src/download-format-picker/download-format-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +209 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +42 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +55 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +54 -0
- package/library/packages/molecules/src/folder-select/folder-select.styles.d.ts +2 -0
- package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +157 -0
- package/library/packages/molecules/src/gallery-item/gallery-item.styles.d.ts +2 -0
- package/library/packages/molecules/src/graph-view/graph-view.d.ts +99 -0
- package/library/packages/molecules/src/graph-view/graph-view.styles.d.ts +2 -0
- package/library/packages/molecules/src/graph-view/react/GraphView.d.ts +17 -0
- package/library/packages/molecules/src/graph-view/react/components/ArrayClamp.d.ts +9 -0
- package/library/packages/molecules/src/graph-view/react/components/CustomControls.d.ts +5 -0
- package/library/packages/molecules/src/graph-view/react/components/CustomEdge.d.ts +4 -0
- package/library/packages/molecules/src/graph-view/react/components/CustomNode.d.ts +12 -0
- package/library/packages/molecules/src/graph-view/react/components/EdgeMenu.d.ts +7 -0
- package/library/packages/molecules/src/graph-view/react/components/GhostNode.d.ts +7 -0
- package/library/packages/molecules/src/graph-view/react/components/Loader.d.ts +5 -0
- package/library/packages/molecules/src/graph-view/react/components/SelfDecorEdge.d.ts +4 -0
- package/library/packages/molecules/src/graph-view/react/components/TemporaryEdge.d.ts +4 -0
- package/library/packages/molecules/src/graph-view/react/components/index.d.ts +7 -0
- package/library/packages/molecules/src/graph-view/react/constant.d.ts +51 -0
- package/library/packages/molecules/src/graph-view/react/context.d.ts +20 -0
- package/library/packages/molecules/src/graph-view/react/getSmoothstepEdge.d.ts +44 -0
- package/library/packages/molecules/src/graph-view/react/helpers/countRectanglesCrossed.d.ts +14 -0
- package/library/packages/molecules/src/graph-view/react/helpers/edgeLabelPosition.d.ts +41 -0
- package/library/packages/molecules/src/graph-view/react/helpers/edgeLayout.d.ts +42 -0
- package/library/packages/molecules/src/graph-view/react/helpers/generateSelfDecorEdge.d.ts +3 -0
- package/library/packages/molecules/src/graph-view/react/helpers/placeAlongThePath.d.ts +20 -0
- package/library/packages/molecules/src/graph-view/react/hooks/index.d.ts +1 -0
- package/library/packages/molecules/src/graph-view/react/hooks/useEdge.d.ts +29 -0
- package/library/packages/molecules/src/graph-view/react/index.d.ts +4 -0
- package/library/packages/molecules/src/graph-view/react/utils.d.ts +58 -0
- package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +80 -0
- package/library/packages/molecules/src/icon-picker/icon-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/index.d.ts +33 -0
- package/library/packages/molecules/src/library-index.d.ts +18 -0
- package/library/packages/molecules/src/list-editor/list-editor.d.ts +67 -0
- package/library/packages/molecules/src/list-editor/list-editor.styles.d.ts +2 -0
- package/library/packages/molecules/src/masonry/masonry.d.ts +91 -0
- package/library/packages/molecules/src/masonry/masonry.styles.d.ts +2 -0
- package/library/packages/molecules/src/padding-input-group/padding-input-group.d.ts +20 -0
- package/library/packages/molecules/src/padding-input-group/padding-input-group.styles.d.ts +2 -0
- package/library/packages/molecules/src/page-outline/page-outline.d.ts +104 -0
- package/library/packages/molecules/src/page-outline/page-outline.styles.d.ts +2 -0
- package/library/packages/molecules/src/position-picker/position-picker.d.ts +30 -0
- package/library/packages/molecules/src/position-picker/position-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/search-box/search-box.d.ts +107 -0
- package/library/packages/molecules/src/search-box/search-box.styles.d.ts +2 -0
- package/library/packages/molecules/src/shadow-input-group/shadow-input-group.d.ts +25 -0
- package/library/packages/molecules/src/shadow-input-group/shadow-input-group.styles.d.ts +2 -0
- package/library/packages/molecules/src/share-option-list/components/share-option-list-item.d.ts +30 -0
- package/library/packages/molecules/src/share-option-list/components/share-option-list-item.styles.d.ts +2 -0
- package/library/packages/molecules/src/share-option-list/share-option-list.d.ts +122 -0
- package/library/packages/molecules/src/share-option-list/share-option-list.styles.d.ts +2 -0
- package/library/packages/molecules/src/sidebar/sidebar.d.ts +85 -0
- package/library/packages/molecules/src/sidebar/sidebar.styles.d.ts +2 -0
- package/library/packages/molecules/src/size-input-group/size-input-group.d.ts +54 -0
- package/library/packages/molecules/src/size-input-group/size-input-group.styles.d.ts +2 -0
- package/library/packages/molecules/src/stepper-wizard/stepper-wizard.d.ts +32 -0
- package/library/packages/molecules/src/stepper-wizard/stepper-wizard.styles.d.ts +2 -0
- package/library/packages/molecules/src/storybook/storybook.d.ts +60 -0
- package/library/packages/molecules/src/storybook/storybook.styles.d.ts +2 -0
- package/library/packages/molecules/src/typeface/typeface.d.ts +72 -0
- package/library/packages/molecules/src/typeface/typeface.styles.d.ts +2 -0
- package/library/packages/molecules/src/view-and-sort/view-and-sort.d.ts +62 -0
- package/library/packages/molecules/src/view-and-sort/view-and-sort.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +292 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.utils.d.ts +10 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +205 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-extension/asset-link-format-extension.d.ts +49 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-extension/asset-link-format-extension.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-proxy/asset-link-format-proxy.d.ts +96 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-proxy/asset-link-format-proxy.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.d.ts +87 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-resize/asset-link-format-resize.d.ts +164 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-resize/asset-link-format-resize.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +80 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-metadata/asset-link-format-metadata.d.ts +69 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-metadata/asset-link-format-metadata.styles.d.ts +2 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +241 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.styles.d.ts +2 -0
- package/library/packages/organisms/src/carousel/autoplay-controller.d.ts +21 -0
- package/library/packages/organisms/src/carousel/carousel.d.ts +371 -0
- package/library/packages/organisms/src/carousel/carousel.styles.d.ts +2 -0
- package/library/packages/organisms/src/chatbot/chatbot.constants.d.ts +8 -0
- package/library/packages/organisms/src/chatbot/chatbot.d.ts +129 -0
- package/library/packages/organisms/src/chatbot/chatbot.style.d.ts +2 -0
- package/library/packages/organisms/src/chatbot/chatbot.utils.d.ts +26 -0
- package/library/packages/organisms/src/chatbot/components/chatbot-footer/chatbot-footer.d.ts +34 -0
- package/library/packages/organisms/src/chatbot/components/chatbot-footer/chatbot-footer.style.d.ts +2 -0
- package/library/packages/organisms/src/chatbot/components/chatbot-popup/chatbot-popup.d.ts +29 -0
- package/library/packages/organisms/src/chatbot/components/chatbot-popup/chatbot-popup.style.d.ts +2 -0
- package/library/packages/organisms/src/cluster-management/cluster-management.d.ts +104 -0
- package/library/packages/organisms/src/cluster-management/cluster-management.style.d.ts +2 -0
- package/library/packages/organisms/src/cluster-management/components/cluster-management-service.d.ts +44 -0
- package/library/packages/organisms/src/cluster-management/components/cluster-management-service.style.d.ts +2 -0
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.constants.d.ts +116 -0
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.d.ts +114 -0
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.styles.d.ts +2 -0
- package/library/packages/organisms/src/comment/comment.d.ts +121 -0
- package/library/packages/organisms/src/comment/comment.extensions.d.ts +9 -0
- package/library/packages/organisms/src/comment/comment.styles.d.ts +2 -0
- package/library/packages/organisms/src/comment/components/comment-mention/comment-mention.d.ts +44 -0
- package/library/packages/organisms/src/comment/components/comment-mention/comment-mention.styles.d.ts +2 -0
- package/library/packages/organisms/src/comment/components/comment-menu/comment-menu.d.ts +88 -0
- package/library/packages/organisms/src/comment/components/comment-menu/comment-menu.styles.d.ts +2 -0
- package/library/packages/organisms/src/comment/extensions/bullet-list.d.ts +2 -0
- package/library/packages/organisms/src/comment/extensions/google.d.ts +7 -0
- package/library/packages/organisms/src/comment/extensions/index.d.ts +2 -0
- package/library/packages/organisms/src/comment/extensions/link.d.ts +2 -0
- package/library/packages/organisms/src/comment/extensions/mention.d.ts +82 -0
- package/library/packages/organisms/src/comment/extensions/ordered-list.d.ts +2 -0
- package/library/packages/organisms/src/comment/extensions/time.d.ts +63 -0
- package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +129 -0
- package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/components/block-picker/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.constants.d.ts +57 -0
- package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.d.ts +147 -0
- package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/components/color-swatch-picker/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +315 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/components/config-form/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +194 -0
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.utils.d.ts +12 -0
- package/library/packages/organisms/src/content-builder/components/config-manager/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/folder-picker/folder-picker.d.ts +69 -0
- package/library/packages/organisms/src/content-builder/components/folder-picker/folder-picker.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/components/folder-picker/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.d.ts +109 -0
- package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +132 -0
- package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/components/page-picker/page-picker.d.ts +65 -0
- package/library/packages/organisms/src/content-builder/components/page-picker/page-picker.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +13 -0
- package/library/packages/organisms/src/content-builder/configs/analytics.d.ts +13 -0
- package/library/packages/organisms/src/content-builder/configs/button.d.ts +35 -0
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +45 -0
- package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +16 -0
- package/library/packages/organisms/src/content-builder/configs/column-group.d.ts +13 -0
- package/library/packages/organisms/src/content-builder/configs/column.d.ts +15 -0
- package/library/packages/organisms/src/content-builder/configs/divider.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/configs/font-kit.d.ts +25 -0
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +48 -0
- package/library/packages/organisms/src/content-builder/configs/header.d.ts +18 -0
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +52 -0
- package/library/packages/organisms/src/content-builder/configs/index.d.ts +17 -0
- package/library/packages/organisms/src/content-builder/configs/rich-text.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/configs/search-box.d.ts +16 -0
- package/library/packages/organisms/src/content-builder/configs/tab-group.d.ts +17 -0
- package/library/packages/organisms/src/content-builder/configs/text.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +47 -0
- package/library/packages/organisms/src/content-builder/configsController.d.ts +410 -0
- package/library/packages/organisms/src/content-builder/content-builder-config.d.ts +59 -0
- package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +32 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +293 -0
- package/library/packages/organisms/src/content-builder/content-builder.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +12 -0
- package/library/packages/organisms/src/content-builder/plugins/accordion.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/analytics.d.ts +15 -0
- package/library/packages/organisms/src/content-builder/plugins/button.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/carousel.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/color-swatches.d.ts +15 -0
- package/library/packages/organisms/src/content-builder/plugins/column-group.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/column.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/core.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/plugins/custom-frame.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/divider.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/font-kit.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/header.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/image.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/index.d.ts +21 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/bubble-menu.d.ts +70 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/index.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/anchor-dialog.d.ts +35 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/image-dialog.d.ts +97 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/image-dialog.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/index.d.ts +3 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.d.ts +231 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/select-with-tooltip.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/special-char-dialog.d.ts +45 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/special-char-dialog.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/table-dialog.d.ts +58 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/table-dialog.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-code-block-toolbar/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-code-block-toolbar/rte-code-block-toolbar.d.ts +28 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-code-block-toolbar/rte-code-block-toolbar.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/rte-image-viewer.d.ts +67 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/rte-image-viewer.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-table-generator/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-table-generator/rte-table-generator.d.ts +23 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-table-generator/rte-table-generator.styles.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/constant.d.ts +48 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/anchor/index.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/aside-block/index.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/blockquote/index.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/bullet-list/index.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/CodeBlock.d.ts +44 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/CodeBlockPrism.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/PrismPlugin.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/index.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/div/index.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/document/commands.d.ts +15 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/document/index.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/font-size/index.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/heading/index.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/highlight/index.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/image/convertSrcToBlob.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/image/index.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/index.d.ts +17 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/inline-class/index.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/line-height/index.d.ts +9 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/link/helpers/autolink.d.ts +9 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/link/helpers/clickHandler.d.ts +8 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/link/helpers/isValidUrl.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/link/helpers/pasteHandler.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/link/index.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/list-item/commands.d.ts +3 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/list-item/index.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/ordered-list/index.d.ts +8 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/other-elements/index.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/other-styles/index.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/paragraph/index.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/placeholder/index.d.ts +61 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/table/cellselection.d.ts +23 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/table/columnResizing.d.ts +13 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/table/commands.d.ts +19 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/table/copyPaste.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/table/createCell.d.ts +3 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/table/createTable.d.ts +3 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/table/fixTables.d.ts +3 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/table/getTableNodeTypes.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/table/index.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/table/input.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/table/rowResizing.d.ts +27 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/table/tableEditing.d.ts +32 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/table/utils.d.ts +24 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/text-align/index.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/text-style/index.d.ts +17 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/index.d.ts +13 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/toolbar.d.ts +10 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/convertColorToHex.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/extendClassStyle.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/getImageNaturalWidthHeight.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/getSelectedCells.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/getStyles.d.ts +21 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/isAbsolute.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/isValidAnchorId.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/isValidImageUrl.d.ts +3 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/link.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/parseBooleanString.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/parseBorderProperty.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/processAnchorLink.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/textblockTypeInputRuleNoDelete.d.ts +3 -0
- package/library/packages/organisms/src/content-builder/plugins/search-box.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/tab-group.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/text.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/toolbar.d.ts +10 -0
- package/library/packages/organisms/src/content-builder/plugins/video.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/wrapper-container.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +125 -0
- package/library/packages/organisms/src/downloader/data/core/WorkerProxy.d.ts +50 -0
- package/library/packages/organisms/src/downloader/data/core/worker/PortManager.d.ts +13 -0
- package/library/packages/organisms/src/downloader/data/core/worker/Requests.d.ts +66 -0
- package/library/packages/organisms/src/downloader/data/core/worker/Responses.d.ts +49 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/DownloadManager.d.ts +130 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/api/DownloadApiClient.d.ts +18 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/api/index.d.ts +3 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/db/ConcurrencyError.d.ts +3 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/db/DownloadChunksRepository.d.ts +42 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/db/DownloadDatabase.d.ts +45 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/db/DownloadFilesRepository.d.ts +119 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/db/DownloadTransactionsRepository.d.ts +38 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/db/index.d.ts +6 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/event/EventHub.d.ts +8 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/event/index.d.ts +3 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/storage/DiskStorage.d.ts +43 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/storage/IndexedDBStorage.d.ts +33 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/storage/index.d.ts +4 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/utilities/DatabaseLocker.d.ts +14 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/utilities/Logger.d.ts +9 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/utilities/Retrier.d.ts +8 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/utilities/UserPromptService.d.ts +5 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/utilities/WebLocker.d.ts +12 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/utilities/index.d.ts +6 -0
- package/library/packages/organisms/src/downloader/data/core/worker/background/BackgroundJob.d.ts +19 -0
- package/library/packages/organisms/src/downloader/data/core/worker/background/ChunkDownloader.d.ts +53 -0
- package/library/packages/organisms/src/downloader/data/core/worker/background/DownloadObserver.d.ts +18 -0
- package/library/packages/organisms/src/downloader/data/core/worker/background/DownloadSpeedMonitor.d.ts +25 -0
- package/library/packages/organisms/src/downloader/data/core/worker/background/FileChunkAssembler.d.ts +29 -0
- package/library/packages/organisms/src/downloader/data/core/worker/background/FileChunkSplitter.d.ts +23 -0
- package/library/packages/organisms/src/downloader/data/core/worker/background/LockBreaker.d.ts +15 -0
- package/library/packages/organisms/src/downloader/data/core/worker/background/ServerProcessingFileWatcher.d.ts +29 -0
- package/library/packages/organisms/src/downloader/data/core/worker/background/TransactionFilesFetcher.d.ts +33 -0
- package/library/packages/organisms/src/downloader/data/core/worker/background/index.d.ts +11 -0
- package/library/packages/organisms/src/downloader/data/core/worker/events/Event.d.ts +5 -0
- package/library/packages/organisms/src/downloader/data/core/worker/events/EventHandler.d.ts +16 -0
- package/library/packages/organisms/src/downloader/data/core/worker/events/index.d.ts +6 -0
- package/library/packages/organisms/src/downloader/data/core/worker/external/IDownloadApiClient.d.ts +60 -0
- package/library/packages/organisms/src/downloader/data/core/worker/external/index.d.ts +4 -0
- package/library/packages/organisms/src/downloader/data/core/worker/models/BaseModel.d.ts +11 -0
- package/library/packages/organisms/src/downloader/data/core/worker/models/DownloadChunk.d.ts +42 -0
- package/library/packages/organisms/src/downloader/data/core/worker/models/DownloadFile.d.ts +170 -0
- package/library/packages/organisms/src/downloader/data/core/worker/models/DownloadTransaction.d.ts +28 -0
- package/library/packages/organisms/src/downloader/data/core/worker/models/index.d.ts +5 -0
- package/library/packages/organisms/src/downloader/data/core/worker/storage/index.d.ts +34 -0
- package/library/packages/organisms/src/downloader/data/core/worker/utilities/FilePathFixer.d.ts +17 -0
- package/library/packages/organisms/src/downloader/data/core/worker/utilities/IUserPromptService.d.ts +27 -0
- package/library/packages/organisms/src/downloader/data/core/worker/utilities/index.d.ts +18 -0
- package/library/packages/organisms/src/downloader/downloader.constants.d.ts +34 -0
- package/library/packages/organisms/src/downloader/downloader.d.ts +211 -0
- package/library/packages/organisms/src/downloader/downloader.style.d.ts +2 -0
- package/library/packages/organisms/src/downloader/downloader.utils.d.ts +7 -0
- package/library/packages/organisms/src/file-on-demand/components/folder-item/folder-item.d.ts +53 -0
- package/library/packages/organisms/src/file-on-demand/components/folder-tree/folder-tree.d.ts +39 -0
- package/library/packages/organisms/src/file-on-demand/components/folder-tree/folder-tree.style.d.ts +2 -0
- package/library/packages/organisms/src/file-on-demand/components/index.d.ts +2 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +34 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +267 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.style.d.ts +2 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +52 -0
- package/library/packages/organisms/src/index.d.ts +15 -0
- package/library/packages/organisms/src/library-index.d.ts +3 -0
- package/library/packages/organisms/src/multi-select/components/board/board.d.ts +116 -0
- package/library/packages/organisms/src/multi-select/components/board/board.styles.d.ts +2 -0
- package/library/packages/organisms/src/multi-select/components/board/board.utils.d.ts +2 -0
- package/library/packages/organisms/src/multi-select/components/board-list-item/board-list-item.d.ts +49 -0
- package/library/packages/organisms/src/multi-select/components/board-list-item/board-list-item.styles.d.ts +2 -0
- package/library/packages/organisms/src/multi-select/multi-select.d.ts +85 -0
- package/library/packages/organisms/src/multi-select/multi-select.styles.d.ts +2 -0
- package/library/packages/organisms/src/multi-select/multi-select.utils.d.ts +3 -0
- package/library/packages/organisms/src/template-switcher/template-switcher-example.data.d.ts +5 -0
- package/library/packages/organisms/src/template-switcher/template-switcher.d.ts +51 -0
- package/library/packages/organisms/src/template-switcher/template-switcher.icons.d.ts +7 -0
- package/library/packages/organisms/src/text-to-speech/extensions/Break/break.d.ts +4 -0
- package/library/packages/organisms/src/text-to-speech/extensions/Break/index.d.ts +4 -0
- package/library/packages/organisms/src/text-to-speech/extensions/BubbleMenu/bubble-menu.d.ts +68 -0
- package/library/packages/organisms/src/text-to-speech/extensions/BubbleMenu/index.d.ts +4 -0
- package/library/packages/organisms/src/text-to-speech/extensions/CleanPaste/cleanPaste.d.ts +3 -0
- package/library/packages/organisms/src/text-to-speech/extensions/CleanPaste/index.d.ts +4 -0
- package/library/packages/organisms/src/text-to-speech/extensions/Selection/index.d.ts +4 -0
- package/library/packages/organisms/src/text-to-speech/extensions/Selection/selection.d.ts +3 -0
- package/library/packages/organisms/src/text-to-speech/extensions/Tune/index.d.ts +1 -0
- package/library/packages/organisms/src/text-to-speech/extensions/Tune/tune.d.ts +7 -0
- package/library/packages/organisms/src/text-to-speech/text-to-speech.api.d.ts +10 -0
- package/library/packages/organisms/src/text-to-speech/text-to-speech.constants.d.ts +232 -0
- package/library/packages/organisms/src/text-to-speech/text-to-speech.d.ts +156 -0
- package/library/packages/organisms/src/text-to-speech/text-to-speech.data.d.ts +3 -0
- package/library/packages/organisms/src/text-to-speech/text-to-speech.extensions.d.ts +16 -0
- package/library/packages/organisms/src/text-to-speech/text-to-speech.styles.d.ts +2 -0
- package/library/packages/organisms/src/text-to-speech/text-to-speech.utils.d.ts +52 -0
- package/library/packages/organisms/src/video-chapters-manager/video-chapters-manager.d.ts +71 -0
- package/library/packages/organisms/src/video-chapters-manager/video-chapters-manager.styles.d.ts +2 -0
- package/library/packages/organisms/src/video-chapters-manager/video-chapters-manager.utils.d.ts +25 -0
- package/library/packages/organisms/src/video-editor/components/video-editor-timeline/video-editor-timeline.d.ts +64 -0
- package/library/packages/organisms/src/video-editor/components/video-editor-timeline/video-editor-timeline.styles.d.ts +2 -0
- package/library/packages/organisms/src/video-editor/components/video-editor-toolbar/video-editor-toolbar.d.ts +84 -0
- package/library/packages/organisms/src/video-editor/components/video-editor-toolbar/video-editor-toolbar.styles.d.ts +2 -0
- package/library/packages/organisms/src/video-editor/components/video-editor-track/video-editor-track.d.ts +44 -0
- package/library/packages/organisms/src/video-editor/components/video-editor-track/video-editor-track.styles.d.ts +2 -0
- package/library/packages/organisms/src/video-editor/components/video-editor-tracks/video-editor-tracks.d.ts +65 -0
- package/library/packages/organisms/src/video-editor/components/video-editor-tracks/video-editor-tracks.styles.d.ts +2 -0
- package/library/packages/organisms/src/video-editor/video-editor.d.ts +102 -0
- package/library/packages/organisms/src/video-editor/video-editor.styles.d.ts +2 -0
- package/library/packages/services/src/api/api.d.ts +2 -0
- package/library/packages/services/src/api/asset/asset.d.ts +60 -0
- package/library/packages/services/src/api/asset/index.d.ts +1 -0
- package/library/packages/services/src/api/autocomplete/autocomplete.d.ts +8 -0
- package/library/packages/services/src/api/autocomplete/index.d.ts +1 -0
- package/library/packages/services/src/api/chapter/chapter.d.ts +7 -0
- package/library/packages/services/src/api/cms5/cms5.d.ts +29 -0
- package/library/packages/services/src/api/cms5/index.d.ts +1 -0
- package/library/packages/services/src/api/dashboard/dashboard.d.ts +7 -0
- package/library/packages/services/src/api/dashboard/index.d.ts +1 -0
- package/library/packages/services/src/api/endpoints.d.ts +49 -0
- package/library/packages/services/src/api/folder/folder.d.ts +26 -0
- package/library/packages/services/src/api/folder/folder.types.d.ts +16 -0
- package/library/packages/services/src/api/folder/index.d.ts +1 -0
- package/library/packages/services/src/api/metadata/index.d.ts +1 -0
- package/library/packages/services/src/api/metadata/metadata.d.ts +3 -0
- package/library/packages/services/src/api/teamspace/index.d.ts +1 -0
- package/library/packages/services/src/api/teamspace/teamspace.d.ts +23 -0
- package/library/packages/services/src/global-styles/global-styles.d.ts +2 -0
- package/library/packages/styles/src/component.styles.d.ts +2 -0
- package/library/packages/styles/src/form-control.styles.d.ts +2 -0
- package/library/packages/styles/src/overlay-scrollbar.styles.d.ts +2 -0
- package/library/packages/styles/src/prosemirror.styles.d.ts +2 -0
- package/library/packages/styles/src/resizable-component.styles.d.ts +2 -0
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +13 -0
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +40 -0
- package/library/packages/types/src/3d-viewer.d.ts +32 -0
- package/library/packages/types/src/asset-click-action.d.ts +23 -0
- package/library/packages/types/src/asset-data-display.d.ts +5 -0
- package/library/packages/types/src/asset-link-format.d.ts +85 -0
- package/library/packages/types/src/bento-grid.d.ts +18 -0
- package/library/packages/types/src/button.d.ts +16 -0
- package/library/packages/types/src/chatbot.d.ts +30 -0
- package/library/packages/types/src/color-picker.d.ts +49 -0
- package/library/packages/types/src/color-swatch-group.d.ts +11 -0
- package/library/packages/types/src/color-swatch.d.ts +15 -0
- package/library/packages/types/src/column.d.ts +10 -0
- package/library/packages/types/src/confirm-popover.d.ts +11 -0
- package/library/packages/types/src/content-builder.d.ts +264 -0
- package/library/packages/types/src/dialog.d.ts +6 -0
- package/library/packages/types/src/downloader.d.ts +44 -0
- package/library/packages/types/src/file-on-demand.d.ts +67 -0
- package/library/packages/types/src/folder-select.d.ts +28 -0
- package/library/packages/types/src/font-kit.d.ts +22 -0
- package/library/packages/types/src/gallery-item.d.ts +38 -0
- package/library/packages/types/src/gallery.d.ts +40 -0
- package/library/packages/types/src/header.d.ts +14 -0
- package/library/packages/types/src/highlightable-element.d.ts +29 -0
- package/library/packages/types/src/iframe.d.ts +4 -0
- package/library/packages/types/src/image.d.ts +4 -0
- package/library/packages/types/src/index.d.ts +58 -0
- package/library/packages/types/src/masonry.d.ts +21 -0
- package/library/packages/types/src/option.d.ts +4 -0
- package/library/packages/types/src/page-outline.d.ts +9 -0
- package/library/packages/types/src/pagination.d.ts +5 -0
- package/library/packages/types/src/position-picker.d.ts +11 -0
- package/library/packages/types/src/resizable-element.d.ts +4 -0
- package/library/packages/types/src/sb-button.d.ts +6 -0
- package/library/packages/types/src/search-box.d.ts +10 -0
- package/library/packages/types/src/size-input-group.d.ts +4 -0
- package/library/packages/types/src/tab-group.d.ts +27 -0
- package/library/packages/types/src/table.d.ts +2931 -0
- package/library/packages/types/src/text-to-speech.d.ts +42 -0
- package/library/packages/types/src/typography.d.ts +12 -0
- package/library/packages/types/src/video-editor.d.ts +52 -0
- package/library/packages/utils/src/actions/asset-click.d.ts +9 -0
- package/library/packages/utils/src/array/array.d.ts +92 -0
- package/library/packages/utils/src/browser/browser.d.ts +13 -0
- package/library/packages/utils/src/color/color.d.ts +77 -0
- package/library/packages/utils/src/custom-element/active-elements.d.ts +15 -0
- package/library/packages/utils/src/custom-element/animate.d.ts +22 -0
- package/library/packages/utils/src/custom-element/converters.d.ts +5 -0
- package/library/packages/utils/src/custom-element/custom-element.d.ts +39 -0
- package/library/packages/utils/src/custom-element/debounce.d.ts +1 -0
- package/library/packages/utils/src/custom-element/default-value.d.ts +3 -0
- package/library/packages/utils/src/custom-element/drag.d.ts +15 -0
- package/library/packages/utils/src/custom-element/event.d.ts +2 -0
- package/library/packages/utils/src/custom-element/form.d.ts +79 -0
- package/library/packages/utils/src/custom-element/i18n-utils.d.ts +70 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +691 -0
- package/library/packages/utils/src/custom-element/math.d.ts +2 -0
- package/library/packages/utils/src/custom-element/modal.d.ts +25 -0
- package/library/packages/utils/src/custom-element/offset.d.ts +11 -0
- package/library/packages/utils/src/custom-element/popup.d.ts +10 -0
- package/library/packages/utils/src/custom-element/scroll.d.ts +11 -0
- package/library/packages/utils/src/custom-element/scrollend-polyfill.d.ts +1 -0
- package/library/packages/utils/src/custom-element/slot.d.ts +24 -0
- package/library/packages/utils/src/custom-element/tabbable.d.ts +9 -0
- package/library/packages/utils/src/custom-element/user-agent.d.ts +1 -0
- package/library/packages/utils/src/custom-element/watch.d.ts +28 -0
- package/library/packages/utils/src/dom/dom.d.ts +30 -0
- package/library/packages/utils/src/event/event.d.ts +1 -0
- package/library/packages/utils/src/fetch/fetchCortex.d.ts +3 -0
- package/library/packages/utils/src/form/form.d.ts +12 -0
- package/library/packages/utils/src/function/function.d.ts +1 -0
- package/library/packages/utils/src/gsap/gsap.d.ts +1 -0
- package/library/packages/utils/src/image/image.d.ts +28 -0
- package/library/packages/utils/src/number/number.d.ts +32 -0
- package/library/packages/utils/src/object/object.d.ts +4 -0
- package/library/packages/utils/src/parse/parse.d.ts +4 -0
- package/library/packages/utils/src/responsive/responsive.d.ts +11 -0
- package/library/packages/utils/src/storage/storage.d.ts +2 -0
- package/library/packages/utils/src/string/string.d.ts +117 -0
- package/library/packages/utils/src/toast/toast.d.ts +5 -0
- package/library/packages/utils/src/translations/en.d.ts +4 -0
- package/library/packages/utils/src/url/url.d.ts +6 -0
- package/library/packages/utils/src/video/video.d.ts +20 -0
- package/library/react-web-component.d.ts +7808 -0
- package/library/react-web-component.js +1 -0
- package/library/types.d.ts +4 -0
- package/package.json +40 -0
|
@@ -0,0 +1,2900 @@
|
|
|
1
|
+
import { c as bt } from "./cropper.3qRm5dEe.js";
|
|
2
|
+
import { C as U } from "./button.G_W-dK6b.js";
|
|
3
|
+
import E from "../components/space.js";
|
|
4
|
+
import { C as W } from "./typography.trna8y2b.js";
|
|
5
|
+
import { i as D, n as l, C as I, x as A, c as T } from "./custom-element.fmLrnDZr.js";
|
|
6
|
+
import { h as C, a as X, b as kt } from "./endpoints.3oM4-c57.js";
|
|
7
|
+
import { c as O } from "./component.styles.DtouHn2g.js";
|
|
8
|
+
import { T as c, U as o } from "./asset-link-format.BSRDqHg7.js";
|
|
9
|
+
import { L as N } from "./i18n.C6c6_pqI.js";
|
|
10
|
+
import { w as k } from "./watch.BCJD77bD.js";
|
|
11
|
+
import { s as lt, c as ct } from "./number.eX2EGPvy.js";
|
|
12
|
+
import { r as v } from "./state.Dt9F_SuS.js";
|
|
13
|
+
import { n as at } from "./when.Dr1es41R.js";
|
|
14
|
+
import j from "../components/details.js";
|
|
15
|
+
import At from "../components/divider.js";
|
|
16
|
+
import B from "../components/icon.js";
|
|
17
|
+
import ot from "../components/icon-button.js";
|
|
18
|
+
import rt from "../components/input.js";
|
|
19
|
+
import { C as tt } from "./option.pgg_ZoHY.js";
|
|
20
|
+
import { C as et } from "./select.DMdl1Kdd.js";
|
|
21
|
+
import { e as G } from "./query.BBf1UFkC.js";
|
|
22
|
+
import { c as Q } from "./repeat.B1pVpmRx.js";
|
|
23
|
+
import { o as P } from "./style-map.lEJHEwk3.js";
|
|
24
|
+
import zt from "../components/tooltip.js";
|
|
25
|
+
import Ct from "../components/button-group.js";
|
|
26
|
+
import $t from "../components/checkbox.js";
|
|
27
|
+
const Rt = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin;
|
|
28
|
+
function _t(t, e, i, s = Rt) {
|
|
29
|
+
const a = new URL(s + "/" + t);
|
|
30
|
+
return Array.isArray(i) ? i.forEach((h) => {
|
|
31
|
+
h[1] && a.searchParams.append(h[0], h[1]);
|
|
32
|
+
}) : i && Object.keys(i).forEach((h) => {
|
|
33
|
+
i[h] && a.searchParams.append(h, i[h]);
|
|
34
|
+
}), fetch(a, e);
|
|
35
|
+
}
|
|
36
|
+
const pt = (t, e) => {
|
|
37
|
+
try {
|
|
38
|
+
window.Matrix3?.ShowNotification && window.Matrix3.ShowNotification(
|
|
39
|
+
t,
|
|
40
|
+
e ? {
|
|
41
|
+
notificationType: e.notificationType
|
|
42
|
+
} : void 0
|
|
43
|
+
);
|
|
44
|
+
} catch {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
}, dt = "CoreField.LargeSizePreview", ut = "CoreField.DocType", Mt = "Document.Title", Pt = "Document.CaptionLong", gt = "Document.FileExtension", mt = "CoreField.FileSize", ft = "CoreField.Identifier", xt = "CoreField.Keywords", yt = "CoreField.MaxHeight", St = "CoreField.MaxWidth", wt = "Document.RecordID", vt = "CoreField.DocSubType", Ft = "CoreField.TitleWithFallback", Z = "CoreField.OriginalFileName", K = "CoreField.UpdatedFileName", J = "CoreField.OriginalPreview";
|
|
48
|
+
function Ht(t) {
|
|
49
|
+
return !t || Object.keys(t).length === 0 ? {} : Object.entries(t).reduce(
|
|
50
|
+
(e, [i, s]) => !s || s.length === 0 ? e : i === "Types" ? {
|
|
51
|
+
...e,
|
|
52
|
+
SubtypeCriteria: s
|
|
53
|
+
} : {
|
|
54
|
+
...e,
|
|
55
|
+
FacetFilters: {
|
|
56
|
+
...e.FacetFilters,
|
|
57
|
+
[i]: s
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
async function Et({
|
|
64
|
+
assetId: t,
|
|
65
|
+
extension: e,
|
|
66
|
+
format: i,
|
|
67
|
+
siteUrl: s,
|
|
68
|
+
token: a,
|
|
69
|
+
transformations: h,
|
|
70
|
+
useSession: r
|
|
71
|
+
}) {
|
|
72
|
+
try {
|
|
73
|
+
return (await C.request({
|
|
74
|
+
baseURL: s,
|
|
75
|
+
method: "GET",
|
|
76
|
+
params: {
|
|
77
|
+
SourceAssetFormat: i,
|
|
78
|
+
SourceAssetRecordID: t,
|
|
79
|
+
TargetExtension: e,
|
|
80
|
+
Token: a,
|
|
81
|
+
Transformations: h,
|
|
82
|
+
UseSession: r || void 0
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* https://link.orangelogic.com/Tasks/41S1XH
|
|
86
|
+
*/
|
|
87
|
+
timeout: 3e5,
|
|
88
|
+
// 5 minutes
|
|
89
|
+
url: X.GET_TRANSFORM_ASSET_LINK
|
|
90
|
+
})).data;
|
|
91
|
+
} catch {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
async function Fe({
|
|
96
|
+
extraFields: t,
|
|
97
|
+
recordIds: e
|
|
98
|
+
}) {
|
|
99
|
+
if (!Array.isArray(e) || e.length === 0)
|
|
100
|
+
return { facets: [], items: [], totalCount: 0 };
|
|
101
|
+
const i = t?.filter((s) => s && typeof s == "string") ?? [];
|
|
102
|
+
try {
|
|
103
|
+
return (await C.request({
|
|
104
|
+
method: "GET",
|
|
105
|
+
params: {
|
|
106
|
+
ExtraFilters: `RecordID:${e.join(" OR ")}`,
|
|
107
|
+
Fields: [
|
|
108
|
+
...i,
|
|
109
|
+
J,
|
|
110
|
+
K,
|
|
111
|
+
Z,
|
|
112
|
+
Mt,
|
|
113
|
+
Pt
|
|
114
|
+
],
|
|
115
|
+
SeeThru: !0
|
|
116
|
+
},
|
|
117
|
+
paramsSerializer: {
|
|
118
|
+
indexes: null
|
|
119
|
+
},
|
|
120
|
+
responseType: "json",
|
|
121
|
+
transformResponse: [
|
|
122
|
+
...Array.isArray(C.defaults.transformResponse) ? C.defaults.transformResponse : [],
|
|
123
|
+
(a) => {
|
|
124
|
+
const h = a.contentItems?.map((r) => {
|
|
125
|
+
let p = r.fields[K] ?? "";
|
|
126
|
+
return p === "" && (p = r.fields[Z] ?? ""), {
|
|
127
|
+
name: p,
|
|
128
|
+
originalUrl: r.fields[J] ?? "",
|
|
129
|
+
recordId: r.recordID,
|
|
130
|
+
...i.reduce(
|
|
131
|
+
(m, u) => (m[u] = r.fields[u] ?? "", m),
|
|
132
|
+
{}
|
|
133
|
+
)
|
|
134
|
+
};
|
|
135
|
+
}) ?? [];
|
|
136
|
+
return h.sort((r, p) => {
|
|
137
|
+
const m = e.indexOf(r.recordId), u = e.indexOf(p.recordId);
|
|
138
|
+
return m - u;
|
|
139
|
+
}), {
|
|
140
|
+
facets: a.facets,
|
|
141
|
+
items: h,
|
|
142
|
+
totalCount: a.totalCount
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
url: X.GET_CONTENT_V1
|
|
147
|
+
})).data;
|
|
148
|
+
} catch {
|
|
149
|
+
return {
|
|
150
|
+
facets: [],
|
|
151
|
+
items: [],
|
|
152
|
+
totalCount: 0
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
async function He({
|
|
157
|
+
extraFields: t,
|
|
158
|
+
folderId: e,
|
|
159
|
+
limit: i,
|
|
160
|
+
limitedDocTypes: s,
|
|
161
|
+
searchTerm: a,
|
|
162
|
+
seeThrough: h,
|
|
163
|
+
selectedFacets: r,
|
|
164
|
+
sortOrder: p,
|
|
165
|
+
start: m
|
|
166
|
+
}) {
|
|
167
|
+
const u = (t?.filter((x) => x && typeof x == "string") ?? []).map((x) => x.replace("%20", " "));
|
|
168
|
+
try {
|
|
169
|
+
return (await C.request({
|
|
170
|
+
method: "GET",
|
|
171
|
+
params: {
|
|
172
|
+
Fields: [
|
|
173
|
+
...u,
|
|
174
|
+
Ft,
|
|
175
|
+
dt,
|
|
176
|
+
J,
|
|
177
|
+
xt,
|
|
178
|
+
St,
|
|
179
|
+
yt,
|
|
180
|
+
mt,
|
|
181
|
+
ut,
|
|
182
|
+
vt,
|
|
183
|
+
ft,
|
|
184
|
+
gt,
|
|
185
|
+
wt,
|
|
186
|
+
Z,
|
|
187
|
+
K
|
|
188
|
+
],
|
|
189
|
+
Limit: i,
|
|
190
|
+
LimitedToDocTypes: s.length > 0 ? s : void 0,
|
|
191
|
+
ObjectRecordID: e,
|
|
192
|
+
OrderBy: p || void 0,
|
|
193
|
+
SearchTerm: a || void 0,
|
|
194
|
+
SeeThru: h,
|
|
195
|
+
Start: m,
|
|
196
|
+
...Ht(r)
|
|
197
|
+
},
|
|
198
|
+
paramsSerializer: {
|
|
199
|
+
indexes: null
|
|
200
|
+
},
|
|
201
|
+
responseType: "json",
|
|
202
|
+
transformResponse: [
|
|
203
|
+
...Array.isArray(C.defaults.transformResponse) ? C.defaults.transformResponse : [],
|
|
204
|
+
(y) => ({
|
|
205
|
+
facets: y.facets,
|
|
206
|
+
items: y.contentItems?.map((n) => {
|
|
207
|
+
let z = n.fields[gt] ?? "", M = n.fields[K] ?? "";
|
|
208
|
+
return z && !z.startsWith(".") && (z = "." + z), M === "" && (M = n.fields[Z] ?? ""), {
|
|
209
|
+
docSubType: n.fields[vt] ?? "",
|
|
210
|
+
docType: n.fields[ut] ?? "",
|
|
211
|
+
extension: z,
|
|
212
|
+
height: n.fields[yt] ?? "0",
|
|
213
|
+
id: n.recordID,
|
|
214
|
+
identifier: n.fields[ft] ?? "",
|
|
215
|
+
imageUrl: n.fields[dt] ?? "",
|
|
216
|
+
name: M ?? "",
|
|
217
|
+
originalUrl: n.fields[J] ?? "",
|
|
218
|
+
recordId: n.fields[wt] ?? "",
|
|
219
|
+
size: n.fields[mt] ?? "0 MB",
|
|
220
|
+
tags: n.fields[xt] ?? "",
|
|
221
|
+
width: n.fields[St] ?? "0",
|
|
222
|
+
...u.reduce(
|
|
223
|
+
(Y, nt) => (Y[nt] = n.fields[nt] ?? "", Y),
|
|
224
|
+
{}
|
|
225
|
+
)
|
|
226
|
+
};
|
|
227
|
+
}) ?? [],
|
|
228
|
+
totalCount: y.totalCount
|
|
229
|
+
})
|
|
230
|
+
],
|
|
231
|
+
url: X.GET_CONTENT_V2
|
|
232
|
+
})).data;
|
|
233
|
+
} catch {
|
|
234
|
+
return {
|
|
235
|
+
facets: [],
|
|
236
|
+
items: [],
|
|
237
|
+
totalCount: 0
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
async function Wt({
|
|
242
|
+
autoCropMode: t,
|
|
243
|
+
cropHeight: e,
|
|
244
|
+
cropWidth: i,
|
|
245
|
+
imageUrl: s,
|
|
246
|
+
useSession: a
|
|
247
|
+
}) {
|
|
248
|
+
try {
|
|
249
|
+
return (await C.request({
|
|
250
|
+
method: "GET",
|
|
251
|
+
params: {
|
|
252
|
+
AutoCropMode: t,
|
|
253
|
+
CropHeight: e,
|
|
254
|
+
CropWidth: i,
|
|
255
|
+
ImageUrl: s && new URL(s, window.location.origin).href,
|
|
256
|
+
UseSession: a || void 0
|
|
257
|
+
},
|
|
258
|
+
responseType: "json",
|
|
259
|
+
timeout: 3e5,
|
|
260
|
+
// 5 minutes
|
|
261
|
+
transformResponse: [
|
|
262
|
+
...Array.isArray(C.defaults.transformResponse) ? C.defaults.transformResponse : [],
|
|
263
|
+
(r) => ({
|
|
264
|
+
height: r.cropHeight,
|
|
265
|
+
width: r.cropWidth,
|
|
266
|
+
x: r.cropX,
|
|
267
|
+
y: r.cropY
|
|
268
|
+
})
|
|
269
|
+
],
|
|
270
|
+
url: X.GET_CROP_ZONE_SUGGESTION
|
|
271
|
+
})).data;
|
|
272
|
+
} catch {
|
|
273
|
+
return null;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
async function Ee({
|
|
277
|
+
siteUrl: t
|
|
278
|
+
} = {}) {
|
|
279
|
+
try {
|
|
280
|
+
return (await C.request({
|
|
281
|
+
baseURL: t,
|
|
282
|
+
method: "GET",
|
|
283
|
+
responseType: "json",
|
|
284
|
+
transformResponse: [
|
|
285
|
+
...Array.isArray(C.defaults.transformResponse) ? C.defaults.transformResponse : [],
|
|
286
|
+
(i) => !i || typeof i != "object" ? {
|
|
287
|
+
formatsByDocType: {
|
|
288
|
+
Audio: {},
|
|
289
|
+
Image: {},
|
|
290
|
+
Multimedia: {},
|
|
291
|
+
Video: {}
|
|
292
|
+
}
|
|
293
|
+
} : {
|
|
294
|
+
formatsByDocType: i.formatsByDocType ?? {}
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
url: kt
|
|
298
|
+
})).data;
|
|
299
|
+
} catch {
|
|
300
|
+
return { formatsByDocType: {} };
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
async function We(t, e) {
|
|
304
|
+
const i = new FormData();
|
|
305
|
+
i.append("InputStream", t);
|
|
306
|
+
const s = await _t(
|
|
307
|
+
X.UPLOAD_AND_GET_RESPONSE,
|
|
308
|
+
{
|
|
309
|
+
body: i,
|
|
310
|
+
method: "POST"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
ByPassPermissionCheck: "true",
|
|
314
|
+
ClientFileName: t.name,
|
|
315
|
+
FolderRecordID: e?.imageUploadFolderID || ""
|
|
316
|
+
}
|
|
317
|
+
), a = s ? await s.json() : null;
|
|
318
|
+
return a ? a.downloadLink === "" ? (pt(e?.errorUploadMessage || "", {
|
|
319
|
+
notificationType: "error"
|
|
320
|
+
}), "") : a.downloadLink : (pt(e?.errorUploadMessage || "", {
|
|
321
|
+
notificationType: "error"
|
|
322
|
+
}), "");
|
|
323
|
+
}
|
|
324
|
+
const Dt = D`
|
|
325
|
+
.asset-link-format__details {
|
|
326
|
+
--header-padding: var(--cx-spacing-small) var(--cx-spacing-medium);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.asset-link-format__details::part(icon) {
|
|
330
|
+
width: var(--cx-font-size-3x-large);
|
|
331
|
+
height: var(--cx-font-size-3x-large);
|
|
332
|
+
display: flex;
|
|
333
|
+
align-items: center;
|
|
334
|
+
justify-content: center;
|
|
335
|
+
background-color: var(--cx-color-neutral-100);
|
|
336
|
+
border-radius: var(--cx-border-radius-large);
|
|
337
|
+
color: var(--cx-color-neutral-600);
|
|
338
|
+
font-size: var(--cx-font-size-large);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.asset-link-format__details::part(input-label) {
|
|
342
|
+
color: var(--cx-color-neutral-400);
|
|
343
|
+
margin-inline-start: var(--cx-spacing-small);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.asset-link-format__header {
|
|
347
|
+
padding: var(--cx-spacing-medium);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.asset-link-format__section-header {
|
|
351
|
+
padding: 0 var(--cx-spacing-medium);
|
|
352
|
+
border-top: solid 1px var(--cx-color-neutral-200);
|
|
353
|
+
background-color: var(--cx-color-neutral-50);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.asset-link-format__undo {
|
|
357
|
+
--color: var(--cx-color-primary);
|
|
358
|
+
--background-color: transparent;
|
|
359
|
+
}
|
|
360
|
+
`;
|
|
361
|
+
function st({
|
|
362
|
+
asset: t,
|
|
363
|
+
baseUrl: e,
|
|
364
|
+
extension: i,
|
|
365
|
+
parameters: s,
|
|
366
|
+
transformations: a,
|
|
367
|
+
useSession: h = ""
|
|
368
|
+
}) {
|
|
369
|
+
let r = e;
|
|
370
|
+
a && a.length > 0 && (r += "/t/");
|
|
371
|
+
const p = a?.findLast(
|
|
372
|
+
(u) => u.key === c.Quality
|
|
373
|
+
);
|
|
374
|
+
p && (a = [
|
|
375
|
+
...a?.filter(
|
|
376
|
+
(u) => u.key !== c.Quality
|
|
377
|
+
) || [],
|
|
378
|
+
p
|
|
379
|
+
]), a?.forEach(({ key: u, value: x }) => {
|
|
380
|
+
if (u === c.Resize) {
|
|
381
|
+
const y = [
|
|
382
|
+
...[
|
|
383
|
+
{
|
|
384
|
+
key: "re_w_",
|
|
385
|
+
value: Math.round(x.width ?? 0)
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
key: "re_h_",
|
|
389
|
+
value: Math.round(x.height ?? 0)
|
|
390
|
+
}
|
|
391
|
+
].filter((n) => n.value !== void 0).map((n) => ({
|
|
392
|
+
key: n.key,
|
|
393
|
+
value: Math.round(Number(n.value))
|
|
394
|
+
})),
|
|
395
|
+
{
|
|
396
|
+
key: "re_rm_",
|
|
397
|
+
value: "stretch"
|
|
398
|
+
}
|
|
399
|
+
];
|
|
400
|
+
y.forEach(({ key: n, value: z }, M) => {
|
|
401
|
+
r += `${n}${z}${M < y.length - 1 ? "," : ""}`;
|
|
402
|
+
}), r += "/";
|
|
403
|
+
}
|
|
404
|
+
if (u === c.Crop) {
|
|
405
|
+
const y = [
|
|
406
|
+
...[
|
|
407
|
+
{
|
|
408
|
+
key: "c_",
|
|
409
|
+
value: x.mode
|
|
410
|
+
},
|
|
411
|
+
...x.disabledSize ? [] : [
|
|
412
|
+
{
|
|
413
|
+
key: "c_w_",
|
|
414
|
+
value: Math.round(x.width ?? 0)
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
key: "c_h_",
|
|
418
|
+
value: Math.round(x.height ?? 0)
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
key: "c_x_",
|
|
422
|
+
value: Math.round(x.x ?? 0)
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
key: "c_y_",
|
|
426
|
+
value: Math.round(x.y ?? 0)
|
|
427
|
+
}
|
|
428
|
+
]
|
|
429
|
+
].filter((n) => n.value !== void 0 && n.value !== null).map((n) => ({
|
|
430
|
+
key: n.key,
|
|
431
|
+
value: n.value
|
|
432
|
+
})),
|
|
433
|
+
{
|
|
434
|
+
key: "c_whu_",
|
|
435
|
+
value: "pixel"
|
|
436
|
+
}
|
|
437
|
+
];
|
|
438
|
+
y.forEach(({ key: n, value: z }, M) => {
|
|
439
|
+
const Y = ["c_w_", "c_h_", "c_x_", "c_y_"].includes(n);
|
|
440
|
+
r += `${n}${Y ? Math.round(Number(z)) : z}${M < y.length - 1 ? "," : ""}`;
|
|
441
|
+
}), r += "/";
|
|
442
|
+
}
|
|
443
|
+
if (u === c.Rotate && ([
|
|
444
|
+
{
|
|
445
|
+
key: "r_a_",
|
|
446
|
+
value: x.rotation
|
|
447
|
+
}
|
|
448
|
+
].filter((n) => n.value !== void 0).map((n) => ({
|
|
449
|
+
key: n.key,
|
|
450
|
+
value: Math.round(Number(n.value))
|
|
451
|
+
})).forEach(({ key: n, value: z }) => {
|
|
452
|
+
r += `${n}${z}`;
|
|
453
|
+
}), r += "/"), u === c.Quality) {
|
|
454
|
+
const y = [
|
|
455
|
+
{
|
|
456
|
+
key: "q_level_",
|
|
457
|
+
value: x.quality
|
|
458
|
+
}
|
|
459
|
+
].filter((n) => n.value !== void 0).map((n) => ({
|
|
460
|
+
key: n.key,
|
|
461
|
+
value: Math.round(Number(n.value))
|
|
462
|
+
}));
|
|
463
|
+
y.forEach(({ key: n, value: z }, M) => {
|
|
464
|
+
r += `${n}${z}${M < y.length - 1 ? "," : ""}`;
|
|
465
|
+
}), r += "/";
|
|
466
|
+
}
|
|
467
|
+
if (u === c.Metadata) {
|
|
468
|
+
const y = [
|
|
469
|
+
{
|
|
470
|
+
key: "fl_keep_metadata",
|
|
471
|
+
value: x.keepMetadata
|
|
472
|
+
}
|
|
473
|
+
].filter((n) => n.value !== void 0).map((n) => ({ key: n.key, value: n.value }));
|
|
474
|
+
y.forEach(({ key: n }, z) => {
|
|
475
|
+
r += `${n}${z < y.length - 1 ? "," : ""}`;
|
|
476
|
+
}), r += "/";
|
|
477
|
+
}
|
|
478
|
+
}), i && (r += `${t?.identifier}${i}`);
|
|
479
|
+
const m = [];
|
|
480
|
+
return s && s.length > 0 && s.forEach(({ key: u, value: x }) => {
|
|
481
|
+
m.push(
|
|
482
|
+
`${encodeURIComponent(u.trim())}=${encodeURIComponent(x.trim())}`
|
|
483
|
+
);
|
|
484
|
+
}), m.length > 0 && (r += `?${m.join("&")}`), r.endsWith("/") && (r = r.slice(0, -1)), r;
|
|
485
|
+
}
|
|
486
|
+
const It = D`
|
|
487
|
+
cx-details::part(base) {
|
|
488
|
+
border-bottom-width: 0;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
cx-space {
|
|
492
|
+
width: 100%;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
cx-space cx-input {
|
|
496
|
+
flex: 1;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.crop__unit-select {
|
|
500
|
+
width: 120px;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.crop__input-group {
|
|
504
|
+
display: flex;
|
|
505
|
+
flex: 1;
|
|
506
|
+
}
|
|
507
|
+
`;
|
|
508
|
+
var Tt = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, S = (t, e, i, s) => {
|
|
509
|
+
for (var a = s > 1 ? void 0 : s ? Ot(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
510
|
+
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
511
|
+
return s && a && Tt(e, i, a), a;
|
|
512
|
+
};
|
|
513
|
+
let g = class extends I {
|
|
514
|
+
constructor() {
|
|
515
|
+
super(...arguments), this.localize = new N(this), this.open = !1, this.width = 0, this.height = 0, this.maxWidth = 0, this.maxHeight = 0, this.ratioWidth = 1, this.ratioHeight = 1, this.percentageWidth = 0, this.percentageHeight = 0, this.unit = o.Pixel, this.disabledApply = !1, this.lastAppliedSetting = {
|
|
516
|
+
[o.Pixel]: {
|
|
517
|
+
height: 0,
|
|
518
|
+
percentageHeight: 100,
|
|
519
|
+
percentageWidth: 100,
|
|
520
|
+
unit: o.Pixel,
|
|
521
|
+
width: 0,
|
|
522
|
+
x: 0,
|
|
523
|
+
y: 0
|
|
524
|
+
},
|
|
525
|
+
[o.AspectRatio]: {
|
|
526
|
+
height: 1,
|
|
527
|
+
percentageHeight: 100,
|
|
528
|
+
percentageWidth: 100,
|
|
529
|
+
unit: o.AspectRatio,
|
|
530
|
+
width: 1,
|
|
531
|
+
x: 0,
|
|
532
|
+
y: 0
|
|
533
|
+
}
|
|
534
|
+
}, this.loading = !1, this.cropModes = [], this.focusModes = [], this.focusMode = "manual", this.cropMode = "free", this.keepAspectRatio = !1, this.invalidWidth = !1, this.invalidHeight = !1, this.aspectRatio = 0;
|
|
535
|
+
}
|
|
536
|
+
get selectedMode() {
|
|
537
|
+
return this.cropModes.find((t) => t.value === this.cropMode);
|
|
538
|
+
}
|
|
539
|
+
async handleCropModeChange() {
|
|
540
|
+
if (typeof this.cropMode == "string" && /^\d+:\d+$/.test(this.cropMode)) {
|
|
541
|
+
const [t, e] = this.cropMode.split(":").map(Number);
|
|
542
|
+
this.aspectRatio = t / e;
|
|
543
|
+
return;
|
|
544
|
+
}
|
|
545
|
+
if (this.keepAspectRatio) {
|
|
546
|
+
if (this.unit === o.Pixel && this.width && this.height) {
|
|
547
|
+
this.aspectRatio = this.width / this.height;
|
|
548
|
+
return;
|
|
549
|
+
} else if (this.unit === o.AspectRatio && this.ratioWidth && this.ratioHeight) {
|
|
550
|
+
this.aspectRatio = this.ratioWidth / this.ratioHeight;
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
if (this.maxWidth && this.maxHeight) {
|
|
555
|
+
this.aspectRatio = this.maxWidth / this.maxHeight;
|
|
556
|
+
return;
|
|
557
|
+
}
|
|
558
|
+
this.aspectRatio = 1;
|
|
559
|
+
}
|
|
560
|
+
async handleOpenChange() {
|
|
561
|
+
this.cropMode = "free", await this.updateComplete, this.open || (this.width = this.lastAppliedSetting[o.Pixel].width, this.height = this.lastAppliedSetting[o.Pixel].height, this.unit = o.Pixel, this.emit("cx-asset-link-format-crop-change", {
|
|
562
|
+
detail: {
|
|
563
|
+
height: this.lastAppliedSetting[o.Pixel].height,
|
|
564
|
+
keepAspectRatio: this.keepAspectRatio,
|
|
565
|
+
unit: o.Pixel,
|
|
566
|
+
width: this.lastAppliedSetting[o.Pixel].width
|
|
567
|
+
}
|
|
568
|
+
}));
|
|
569
|
+
}
|
|
570
|
+
handleWidthChange(t) {
|
|
571
|
+
if (!t.target.value) {
|
|
572
|
+
this.invalidWidth = !0;
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
this.invalidWidth = !1;
|
|
576
|
+
let e = Number(t.target.value);
|
|
577
|
+
this.unit === o.Pixel && (e = Math.max(Math.min(e, this.maxWidth), 1)), t.target.value = e.toString();
|
|
578
|
+
let i = this.unit === o.Pixel ? this.height : this.ratioHeight, s = !1;
|
|
579
|
+
this.keepAspectRatio && (i = Math.round(e / this.aspectRatio), this.unit === o.Pixel && i > this.maxHeight && (i = this.maxHeight, s = !0)), this.invalidHeight = !1, this.emit("cx-asset-link-format-crop-change", {
|
|
580
|
+
detail: {
|
|
581
|
+
breakAspectRatio: s,
|
|
582
|
+
height: i,
|
|
583
|
+
keepAspectRatio: this.keepAspectRatio,
|
|
584
|
+
unit: this.unit,
|
|
585
|
+
width: e
|
|
586
|
+
}
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
handleHeightChange(t) {
|
|
590
|
+
if (!t.target.value) {
|
|
591
|
+
this.invalidHeight = !0;
|
|
592
|
+
return;
|
|
593
|
+
}
|
|
594
|
+
this.invalidHeight = !1;
|
|
595
|
+
let e = Number(t.target.value);
|
|
596
|
+
this.unit === o.Pixel && (e = Math.max(Math.min(e, this.maxHeight), 1)), t.target.value = e.toString();
|
|
597
|
+
let i = this.unit === o.Pixel ? this.width : this.ratioWidth, s = !1;
|
|
598
|
+
this.keepAspectRatio && (i = Math.round(e * this.aspectRatio), this.unit === o.Pixel && i > this.maxWidth && (i = this.maxWidth, s = !0)), this.invalidWidth = !1, this.emit("cx-asset-link-format-crop-change", {
|
|
599
|
+
detail: {
|
|
600
|
+
breakAspectRatio: s,
|
|
601
|
+
height: e,
|
|
602
|
+
keepAspectRatio: this.keepAspectRatio,
|
|
603
|
+
unit: this.unit,
|
|
604
|
+
width: i
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
onCropModeChange(t) {
|
|
609
|
+
const e = t.target.value, i = this.cropModes.find((s) => s.value === e)?.auto;
|
|
610
|
+
if (e === "free")
|
|
611
|
+
this.selectedMode?.auto && this.emit("cx-asset-link-format-crop-change", {
|
|
612
|
+
detail: {
|
|
613
|
+
height: this.lastAppliedSetting[o.Pixel].height,
|
|
614
|
+
keepAspectRatio: !1,
|
|
615
|
+
silent: !0,
|
|
616
|
+
unit: o.Pixel,
|
|
617
|
+
width: this.lastAppliedSetting[o.Pixel].width
|
|
618
|
+
}
|
|
619
|
+
});
|
|
620
|
+
else if (!i) {
|
|
621
|
+
const [s, a] = e.split(":").map(Number);
|
|
622
|
+
if (this.unit === o.Pixel) {
|
|
623
|
+
const { height: h, width: r } = bt(
|
|
624
|
+
this.maxWidth,
|
|
625
|
+
this.maxHeight,
|
|
626
|
+
s,
|
|
627
|
+
a
|
|
628
|
+
);
|
|
629
|
+
this.emit("cx-asset-link-format-crop-change", {
|
|
630
|
+
detail: {
|
|
631
|
+
height: h,
|
|
632
|
+
keepAspectRatio: !0,
|
|
633
|
+
silent: !0,
|
|
634
|
+
unit: o.Pixel,
|
|
635
|
+
width: r
|
|
636
|
+
}
|
|
637
|
+
});
|
|
638
|
+
} else
|
|
639
|
+
this.emit("cx-asset-link-format-crop-change", {
|
|
640
|
+
detail: {
|
|
641
|
+
height: a,
|
|
642
|
+
keepAspectRatio: !0,
|
|
643
|
+
silent: !0,
|
|
644
|
+
unit: o.AspectRatio,
|
|
645
|
+
width: s
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
this.emit("cx-asset-link-format-crop-mode-change", {
|
|
650
|
+
detail: {
|
|
651
|
+
mode: e
|
|
652
|
+
}
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
onFocusModeChange(t) {
|
|
656
|
+
const e = t.target.value;
|
|
657
|
+
this.emit("cx-asset-link-format-crop-focus-mode-change", {
|
|
658
|
+
detail: {
|
|
659
|
+
mode: e
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* Handles the change of the unit of measurement for the crop settings.
|
|
665
|
+
* When the unit is changed to Aspect Ratio, it emits an event with the last applied settings for Aspect Ratio.
|
|
666
|
+
* When the unit is changed to Pixels, it emits an event with the last applied settings for Pixels.
|
|
667
|
+
* This allows the parent component to update the crop settings accordingly.
|
|
668
|
+
*/
|
|
669
|
+
onUnitChange(t) {
|
|
670
|
+
t.target.value === o.AspectRatio ? this.emit("cx-asset-link-format-crop-change", {
|
|
671
|
+
detail: {
|
|
672
|
+
height: this.lastAppliedSetting[o.AspectRatio].height,
|
|
673
|
+
keepAspectRatio: this.keepAspectRatio,
|
|
674
|
+
unit: o.AspectRatio,
|
|
675
|
+
width: this.lastAppliedSetting[o.AspectRatio].width
|
|
676
|
+
}
|
|
677
|
+
}) : this.emit("cx-asset-link-format-crop-change", {
|
|
678
|
+
detail: {
|
|
679
|
+
height: this.lastAppliedSetting[o.Pixel].height,
|
|
680
|
+
keepAspectRatio: this.keepAspectRatio,
|
|
681
|
+
unit: o.Pixel,
|
|
682
|
+
width: this.lastAppliedSetting[o.Pixel].width
|
|
683
|
+
}
|
|
684
|
+
}), this.emit("cx-asset-link-format-crop-mode-change", {
|
|
685
|
+
detail: {
|
|
686
|
+
mode: "free"
|
|
687
|
+
}
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
handleInputChange(t) {
|
|
691
|
+
t.stopPropagation(), this.emit("cx-asset-link-format-crop-changed");
|
|
692
|
+
}
|
|
693
|
+
handleApply() {
|
|
694
|
+
this.loading || this.emit("cx-asset-link-format-crop-apply", {
|
|
695
|
+
detail: {
|
|
696
|
+
height: this.height,
|
|
697
|
+
unit: this.unit,
|
|
698
|
+
width: this.width
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* Handles showing the details section.
|
|
704
|
+
* This method prevents the event from propagating if the target is not the base element, such as tooltips, select dropdowns, or other interactive elements inside the details.
|
|
705
|
+
* This ensures that the details section is only shown when the user interacts with the base element.
|
|
706
|
+
*/
|
|
707
|
+
onShowDetails(t) {
|
|
708
|
+
t.target !== this.base && t.stopPropagation();
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Handles hiding the details section.
|
|
712
|
+
* This method prevents the event from propagating if the target is not the base element, such as tooltips, select dropdowns, or other interactive elements inside the details.
|
|
713
|
+
* This ensures that the details section is only hidden when the user interacts with the base element.
|
|
714
|
+
*/
|
|
715
|
+
onHideDetails(t) {
|
|
716
|
+
t.target !== this.base && t.stopPropagation();
|
|
717
|
+
}
|
|
718
|
+
handleAspectRatioClick() {
|
|
719
|
+
this.keepAspectRatio && this.cropMode !== "free" && this.emit("cx-asset-link-format-crop-mode-change", {
|
|
720
|
+
detail: {
|
|
721
|
+
mode: "free"
|
|
722
|
+
}
|
|
723
|
+
}), this.emit("cx-asset-link-format-crop-change", {
|
|
724
|
+
detail: {
|
|
725
|
+
height: this.unit === o.Pixel ? this.height : this.ratioHeight,
|
|
726
|
+
keepAspectRatio: !this.keepAspectRatio,
|
|
727
|
+
unit: this.unit,
|
|
728
|
+
width: this.unit === o.Pixel ? this.width : this.ratioWidth
|
|
729
|
+
}
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
render() {
|
|
733
|
+
const t = this.cropModes.filter((i) => !i.auto), e = this.cropModes.filter((i) => i.auto);
|
|
734
|
+
return A`<cx-details
|
|
735
|
+
class="details"
|
|
736
|
+
?open=${this.open}
|
|
737
|
+
@cx-show=${this.onShowDetails}
|
|
738
|
+
@cx-hide=${this.onHideDetails}
|
|
739
|
+
>
|
|
740
|
+
<cx-space slot="summary" align-items="center">
|
|
741
|
+
<div part="icon">
|
|
742
|
+
<cx-icon name="crop"></cx-icon>
|
|
743
|
+
</div>
|
|
744
|
+
<cx-typography variant="body2">
|
|
745
|
+
${this.localize.term("crop")}
|
|
746
|
+
</cx-typography>
|
|
747
|
+
</cx-space>
|
|
748
|
+
<cx-space direction="vertical" spacing="small">
|
|
749
|
+
<cx-select
|
|
750
|
+
data-testid="cx-asset-link-format-crop-mode"
|
|
751
|
+
value=${this.cropMode}
|
|
752
|
+
hoist
|
|
753
|
+
style=${P({
|
|
754
|
+
width: "100%"
|
|
755
|
+
})}
|
|
756
|
+
@cx-change=${this.onCropModeChange}
|
|
757
|
+
?disabled=${this.loading}
|
|
758
|
+
>
|
|
759
|
+
${Q(
|
|
760
|
+
t,
|
|
761
|
+
(i) => i.value,
|
|
762
|
+
({ label: i, value: s }) => A`<cx-option value=${s}>${i}</cx-option>`
|
|
763
|
+
)}
|
|
764
|
+
${at(
|
|
765
|
+
e.length > 0,
|
|
766
|
+
() => A`<cx-divider></cx-divider>
|
|
767
|
+
<small>${this.localize.term("autoCropping")}</small>`
|
|
768
|
+
)}
|
|
769
|
+
${Q(
|
|
770
|
+
e,
|
|
771
|
+
(i) => i.value,
|
|
772
|
+
({ label: i, value: s }) => A`<cx-option value=${s}>${i}</cx-option>`
|
|
773
|
+
)}
|
|
774
|
+
</cx-select>
|
|
775
|
+
<cx-space spacing="small">
|
|
776
|
+
<div class="crop__input-group">
|
|
777
|
+
<cx-input
|
|
778
|
+
data-testid="cx-asset-link-format-crop-width"
|
|
779
|
+
placeholder=${this.localize.term("width")}
|
|
780
|
+
type="number"
|
|
781
|
+
step="1"
|
|
782
|
+
value=${this.unit === o.Pixel ? this.width.toString() : this.ratioWidth.toString()}
|
|
783
|
+
@cx-change=${this.handleInputChange}
|
|
784
|
+
@cx-input=${this.handleWidthChange}
|
|
785
|
+
required
|
|
786
|
+
?disabled=${this.loading}
|
|
787
|
+
>
|
|
788
|
+
<cx-typography slot="prefix" variant="body3" part="input-label">
|
|
789
|
+
W
|
|
790
|
+
</cx-typography>
|
|
791
|
+
</cx-input>
|
|
792
|
+
<cx-icon-button
|
|
793
|
+
data-testid="cx-asset-link-format-crop-aspect-ratio"
|
|
794
|
+
name=${this.keepAspectRatio ? "insert_link" : "link_off"}
|
|
795
|
+
@click=${this.handleAspectRatioClick}
|
|
796
|
+
style=${P({
|
|
797
|
+
color: this.keepAspectRatio ? "var(--cx-color-primary)" : void 0
|
|
798
|
+
})}
|
|
799
|
+
?disabled=${this.loading}
|
|
800
|
+
></cx-icon-button>
|
|
801
|
+
<cx-input
|
|
802
|
+
data-testid="cx-asset-link-format-crop-height"
|
|
803
|
+
placeholder=${this.localize.term("height")}
|
|
804
|
+
type="number"
|
|
805
|
+
step="1"
|
|
806
|
+
value=${this.unit === o.Pixel ? this.height.toString() : this.ratioHeight.toString()}
|
|
807
|
+
?disabled=${this.loading}
|
|
808
|
+
@cx-change=${this.handleInputChange}
|
|
809
|
+
@cx-input=${this.handleHeightChange}
|
|
810
|
+
required
|
|
811
|
+
>
|
|
812
|
+
<cx-typography slot="prefix" variant="body3" part="input-label">
|
|
813
|
+
H
|
|
814
|
+
</cx-typography>
|
|
815
|
+
</cx-input>
|
|
816
|
+
</div>
|
|
817
|
+
<cx-select
|
|
818
|
+
data-testid="cx-asset-link-format-crop-unit"
|
|
819
|
+
value=${this.unit}
|
|
820
|
+
hoist
|
|
821
|
+
class="crop__unit-select"
|
|
822
|
+
?disabled=${this.loading}
|
|
823
|
+
@cx-change=${this.onUnitChange}
|
|
824
|
+
>
|
|
825
|
+
<cx-option value=${o.Pixel}>
|
|
826
|
+
${this.localize.term("pixels")}
|
|
827
|
+
</cx-option>
|
|
828
|
+
<cx-option value=${o.AspectRatio}>
|
|
829
|
+
${this.localize.term("aspectRatio")}
|
|
830
|
+
</cx-option>
|
|
831
|
+
</cx-select>
|
|
832
|
+
</cx-space>
|
|
833
|
+
${at(
|
|
834
|
+
this.focusModes.length > 0,
|
|
835
|
+
() => A`
|
|
836
|
+
<cx-select
|
|
837
|
+
data-testid="cx-asset-link-format-crop-focus-mode"
|
|
838
|
+
value=${this.focusMode}
|
|
839
|
+
hoist
|
|
840
|
+
style=${P({
|
|
841
|
+
width: "100%"
|
|
842
|
+
})}
|
|
843
|
+
@cx-change=${this.onFocusModeChange}
|
|
844
|
+
?disabled=${this.loading || this.selectedMode?.disabledSize}
|
|
845
|
+
>
|
|
846
|
+
${Q(
|
|
847
|
+
this.focusModes,
|
|
848
|
+
(i) => i.value,
|
|
849
|
+
({ label: i, value: s }) => A`<cx-option value=${s}>${i}</cx-option>`
|
|
850
|
+
)}
|
|
851
|
+
</cx-select>
|
|
852
|
+
`
|
|
853
|
+
)}
|
|
854
|
+
<cx-button
|
|
855
|
+
data-testid="cx-asset-link-format-crop-apply"
|
|
856
|
+
variant="primary"
|
|
857
|
+
?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth}
|
|
858
|
+
?loading=${this.loading}
|
|
859
|
+
style=${P({
|
|
860
|
+
marginLeft: "auto"
|
|
861
|
+
})}
|
|
862
|
+
@click=${this.handleApply}
|
|
863
|
+
>
|
|
864
|
+
${this.localize.term("apply")}
|
|
865
|
+
</cx-button>
|
|
866
|
+
</cx-space>
|
|
867
|
+
</cx-details>`;
|
|
868
|
+
}
|
|
869
|
+
};
|
|
870
|
+
g.styles = [O, It];
|
|
871
|
+
g.dependencies = {
|
|
872
|
+
"cx-button": U,
|
|
873
|
+
"cx-details": j,
|
|
874
|
+
"cx-divider": At,
|
|
875
|
+
"cx-icon": B,
|
|
876
|
+
"cx-icon-button": ot,
|
|
877
|
+
"cx-input": rt,
|
|
878
|
+
"cx-option": tt,
|
|
879
|
+
"cx-select": et,
|
|
880
|
+
"cx-space": E,
|
|
881
|
+
"cx-typography": W
|
|
882
|
+
};
|
|
883
|
+
S([
|
|
884
|
+
G(".details")
|
|
885
|
+
], g.prototype, "base", 2);
|
|
886
|
+
S([
|
|
887
|
+
l({ reflect: !0, type: Boolean })
|
|
888
|
+
], g.prototype, "open", 2);
|
|
889
|
+
S([
|
|
890
|
+
l({ reflect: !0, type: Number })
|
|
891
|
+
], g.prototype, "width", 2);
|
|
892
|
+
S([
|
|
893
|
+
l({ reflect: !0, type: Number })
|
|
894
|
+
], g.prototype, "height", 2);
|
|
895
|
+
S([
|
|
896
|
+
l({ attribute: "max-width", reflect: !0, type: Number })
|
|
897
|
+
], g.prototype, "maxWidth", 2);
|
|
898
|
+
S([
|
|
899
|
+
l({ attribute: "max-height", reflect: !0, type: Number })
|
|
900
|
+
], g.prototype, "maxHeight", 2);
|
|
901
|
+
S([
|
|
902
|
+
l({ attribute: "ratio-width", reflect: !0, type: Number })
|
|
903
|
+
], g.prototype, "ratioWidth", 2);
|
|
904
|
+
S([
|
|
905
|
+
l({ attribute: "ratio-height", reflect: !0, type: Number })
|
|
906
|
+
], g.prototype, "ratioHeight", 2);
|
|
907
|
+
S([
|
|
908
|
+
l({ attribute: "percentage-width", reflect: !0, type: Number })
|
|
909
|
+
], g.prototype, "percentageWidth", 2);
|
|
910
|
+
S([
|
|
911
|
+
l({ attribute: "percentage-height", reflect: !0, type: Number })
|
|
912
|
+
], g.prototype, "percentageHeight", 2);
|
|
913
|
+
S([
|
|
914
|
+
l({ reflect: !0, type: String })
|
|
915
|
+
], g.prototype, "unit", 2);
|
|
916
|
+
S([
|
|
917
|
+
l({ attribute: "disabled-apply", reflect: !0, type: Boolean })
|
|
918
|
+
], g.prototype, "disabledApply", 2);
|
|
919
|
+
S([
|
|
920
|
+
l({ attribute: "last-applied-setting", reflect: !1, type: Object })
|
|
921
|
+
], g.prototype, "lastAppliedSetting", 2);
|
|
922
|
+
S([
|
|
923
|
+
l({ reflect: !0, type: Boolean })
|
|
924
|
+
], g.prototype, "loading", 2);
|
|
925
|
+
S([
|
|
926
|
+
l({ attribute: "crop-modes", reflect: !1, type: Array })
|
|
927
|
+
], g.prototype, "cropModes", 2);
|
|
928
|
+
S([
|
|
929
|
+
l({ attribute: "focus-modes", reflect: !1, type: Object })
|
|
930
|
+
], g.prototype, "focusModes", 2);
|
|
931
|
+
S([
|
|
932
|
+
l({ attribute: "focus-mode", reflect: !0, type: String })
|
|
933
|
+
], g.prototype, "focusMode", 2);
|
|
934
|
+
S([
|
|
935
|
+
l({ attribute: "crop-mode", reflect: !0, type: String })
|
|
936
|
+
], g.prototype, "cropMode", 2);
|
|
937
|
+
S([
|
|
938
|
+
l({ attribute: "keep-aspect-ratio", reflect: !0, type: Boolean })
|
|
939
|
+
], g.prototype, "keepAspectRatio", 2);
|
|
940
|
+
S([
|
|
941
|
+
v()
|
|
942
|
+
], g.prototype, "invalidWidth", 2);
|
|
943
|
+
S([
|
|
944
|
+
v()
|
|
945
|
+
], g.prototype, "invalidHeight", 2);
|
|
946
|
+
S([
|
|
947
|
+
v()
|
|
948
|
+
], g.prototype, "aspectRatio", 2);
|
|
949
|
+
S([
|
|
950
|
+
k("cropMode", { waitUntilFirstUpdate: !0 }),
|
|
951
|
+
k("maxWidth", { waitUntilFirstUpdate: !0 }),
|
|
952
|
+
k("maxHeight", { waitUntilFirstUpdate: !0 }),
|
|
953
|
+
k("keepAspectRatio")
|
|
954
|
+
], g.prototype, "handleCropModeChange", 1);
|
|
955
|
+
S([
|
|
956
|
+
k("open")
|
|
957
|
+
], g.prototype, "handleOpenChange", 1);
|
|
958
|
+
g = S([
|
|
959
|
+
T("cx-asset-link-format-crop")
|
|
960
|
+
], g);
|
|
961
|
+
const Nt = D`
|
|
962
|
+
.extension {
|
|
963
|
+
padding: var(--cx-spacing-small) var(--cx-spacing-medium);
|
|
964
|
+
border: solid 1px var(--cx-color-neutral-200);
|
|
965
|
+
background-color: var(--cx-color-neutral-0);
|
|
966
|
+
|
|
967
|
+
cx-select {
|
|
968
|
+
flex: 1;
|
|
969
|
+
width: 100%;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
`;
|
|
973
|
+
var Lt = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, ht = (t, e, i, s) => {
|
|
974
|
+
for (var a = s > 1 ? void 0 : s ? Ut(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
975
|
+
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
976
|
+
return s && a && Lt(e, i, a), a;
|
|
977
|
+
};
|
|
978
|
+
let L = class extends I {
|
|
979
|
+
constructor() {
|
|
980
|
+
super(...arguments), this.localize = new N(this), this.value = "", this.items = [];
|
|
981
|
+
}
|
|
982
|
+
handleExtensionChange(t) {
|
|
983
|
+
const e = t.target.value;
|
|
984
|
+
this.emit("cx-asset-link-format-extension-change", {
|
|
985
|
+
detail: e
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
render() {
|
|
989
|
+
return A`
|
|
990
|
+
<cx-space direction="vertical" spacing="small" class="extension">
|
|
991
|
+
<cx-typography variant="body2">
|
|
992
|
+
${this.localize.term("extension")}
|
|
993
|
+
</cx-typography>
|
|
994
|
+
<cx-select
|
|
995
|
+
data-label=${this.localize.term("extension")}
|
|
996
|
+
data-testid="cx-asset-link-format-extension-select"
|
|
997
|
+
value=${this.value}
|
|
998
|
+
hoist
|
|
999
|
+
@cx-change=${this.handleExtensionChange}
|
|
1000
|
+
>
|
|
1001
|
+
${Q(
|
|
1002
|
+
this.items,
|
|
1003
|
+
(t) => t.value,
|
|
1004
|
+
(t) => A`
|
|
1005
|
+
<cx-option value=${t.value}>${t.displayName}</cx-option>
|
|
1006
|
+
`
|
|
1007
|
+
)}
|
|
1008
|
+
</cx-select>
|
|
1009
|
+
</cx-space>
|
|
1010
|
+
`;
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
L.styles = [O, Nt];
|
|
1014
|
+
L.dependencies = {
|
|
1015
|
+
"cx-option": tt,
|
|
1016
|
+
"cx-select": et,
|
|
1017
|
+
"cx-space": E,
|
|
1018
|
+
"cx-typography": W
|
|
1019
|
+
};
|
|
1020
|
+
ht([
|
|
1021
|
+
l({ reflect: !0, type: String })
|
|
1022
|
+
], L.prototype, "value", 2);
|
|
1023
|
+
ht([
|
|
1024
|
+
l({ reflect: !1, type: Array })
|
|
1025
|
+
], L.prototype, "items", 2);
|
|
1026
|
+
L = ht([
|
|
1027
|
+
T("cx-asset-link-format-extension")
|
|
1028
|
+
], L);
|
|
1029
|
+
const qt = D`
|
|
1030
|
+
cx-details::part(base) {
|
|
1031
|
+
border-bottom-width: 0;
|
|
1032
|
+
}
|
|
1033
|
+
`;
|
|
1034
|
+
var Vt = Object.defineProperty, jt = Object.getOwnPropertyDescriptor, F = (t, e, i, s) => {
|
|
1035
|
+
for (var a = s > 1 ? void 0 : s ? jt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
1036
|
+
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
1037
|
+
return s && a && Vt(e, i, a), a;
|
|
1038
|
+
};
|
|
1039
|
+
let $ = class extends I {
|
|
1040
|
+
constructor() {
|
|
1041
|
+
super(...arguments), this.localize = new N(this), this.open = !1, this.value = "", this.items = [], this.loading = !1, this.scopedValue = "";
|
|
1042
|
+
}
|
|
1043
|
+
handleValueChange() {
|
|
1044
|
+
this.scopedValue = this.value;
|
|
1045
|
+
}
|
|
1046
|
+
handleOpenChange() {
|
|
1047
|
+
this.open || (this.scopedValue = this.value);
|
|
1048
|
+
}
|
|
1049
|
+
handleProxyChange(t) {
|
|
1050
|
+
const e = t.target.value;
|
|
1051
|
+
this.scopedValue = e;
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* Handles the application of the selected proxy format.
|
|
1055
|
+
* This method emits a custom event with the selected proxy format when the "Apply" button is clicked.
|
|
1056
|
+
* It prevents further actions if the component is currently loading.
|
|
1057
|
+
*/
|
|
1058
|
+
handleApply() {
|
|
1059
|
+
if (this.loading)
|
|
1060
|
+
return;
|
|
1061
|
+
const t = this.items.find(
|
|
1062
|
+
(e) => e.id === this.scopedValue
|
|
1063
|
+
);
|
|
1064
|
+
t && this.emit("cx-asset-link-format-proxy-change", {
|
|
1065
|
+
detail: t
|
|
1066
|
+
});
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Handles showing the details section.
|
|
1070
|
+
* This method prevents the event from propagating if the target is not the base element, such as tooltips, select dropdowns, or other interactive elements inside the details.
|
|
1071
|
+
* This ensures that the details section is only shown when the user interacts with the base element.
|
|
1072
|
+
*/
|
|
1073
|
+
onShowDetails(t) {
|
|
1074
|
+
t.target !== this.base && t.stopPropagation();
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* Handles hiding the details section.
|
|
1078
|
+
* This method prevents the event from propagating if the target is not the base element, such as tooltips, select dropdowns, or other interactive elements inside the details.
|
|
1079
|
+
* This ensures that the details section is only hidden when the user interacts with the base element.
|
|
1080
|
+
*/
|
|
1081
|
+
onHideDetails(t) {
|
|
1082
|
+
t.target !== this.base && t.stopPropagation();
|
|
1083
|
+
}
|
|
1084
|
+
render() {
|
|
1085
|
+
return A`
|
|
1086
|
+
<cx-details
|
|
1087
|
+
class="details"
|
|
1088
|
+
?open=${this.open}
|
|
1089
|
+
@cx-show=${this.onShowDetails}
|
|
1090
|
+
@cx-hide=${this.onHideDetails}
|
|
1091
|
+
>
|
|
1092
|
+
<cx-space slot="summary" align-items="center">
|
|
1093
|
+
<div part="icon">
|
|
1094
|
+
<cx-icon name="photo_size_select_large"></cx-icon>
|
|
1095
|
+
</div>
|
|
1096
|
+
<cx-typography variant="body2">
|
|
1097
|
+
${this.localize.term("format")}
|
|
1098
|
+
</cx-typography>
|
|
1099
|
+
</cx-space>
|
|
1100
|
+
<cx-space direction="vertical" spacing="small" class="format">
|
|
1101
|
+
<cx-select
|
|
1102
|
+
data-label=${this.localize.term("imageFormat")}
|
|
1103
|
+
data-testid="cx-asset-link-format-proxy-select"
|
|
1104
|
+
value=${this.scopedValue}
|
|
1105
|
+
hoist
|
|
1106
|
+
@cx-change=${this.handleProxyChange}
|
|
1107
|
+
?disabled=${this.loading}
|
|
1108
|
+
>
|
|
1109
|
+
${Q(
|
|
1110
|
+
this.items,
|
|
1111
|
+
(t) => t.id,
|
|
1112
|
+
(t) => A`
|
|
1113
|
+
<cx-option value=${t.id}>${t.proxyLabel}</cx-option>
|
|
1114
|
+
`
|
|
1115
|
+
)}
|
|
1116
|
+
</cx-select>
|
|
1117
|
+
<cx-button
|
|
1118
|
+
data-testid="cx-asset-link-format-proxy-apply"
|
|
1119
|
+
variant="primary"
|
|
1120
|
+
style=${P({
|
|
1121
|
+
"margin-left": "auto"
|
|
1122
|
+
})}
|
|
1123
|
+
?disabled=${this.scopedValue === this.value}
|
|
1124
|
+
?loading=${this.loading}
|
|
1125
|
+
@click=${this.handleApply}
|
|
1126
|
+
>
|
|
1127
|
+
${this.localize.term("apply")}
|
|
1128
|
+
</cx-button>
|
|
1129
|
+
</cx-space>
|
|
1130
|
+
</cx-details>
|
|
1131
|
+
`;
|
|
1132
|
+
}
|
|
1133
|
+
};
|
|
1134
|
+
$.styles = [O, qt];
|
|
1135
|
+
$.dependencies = {
|
|
1136
|
+
"cx-button": U,
|
|
1137
|
+
"cx-details": j,
|
|
1138
|
+
"cx-icon": B,
|
|
1139
|
+
"cx-option": tt,
|
|
1140
|
+
"cx-select": et,
|
|
1141
|
+
"cx-space": E,
|
|
1142
|
+
"cx-typography": W
|
|
1143
|
+
};
|
|
1144
|
+
F([
|
|
1145
|
+
G(".details")
|
|
1146
|
+
], $.prototype, "base", 2);
|
|
1147
|
+
F([
|
|
1148
|
+
l({ reflect: !0, type: Boolean })
|
|
1149
|
+
], $.prototype, "open", 2);
|
|
1150
|
+
F([
|
|
1151
|
+
l({ reflect: !0, type: String })
|
|
1152
|
+
], $.prototype, "value", 2);
|
|
1153
|
+
F([
|
|
1154
|
+
l({ reflect: !1, type: Array })
|
|
1155
|
+
], $.prototype, "items", 2);
|
|
1156
|
+
F([
|
|
1157
|
+
l({ reflect: !0, type: Boolean })
|
|
1158
|
+
], $.prototype, "loading", 2);
|
|
1159
|
+
F([
|
|
1160
|
+
v()
|
|
1161
|
+
], $.prototype, "scopedValue", 2);
|
|
1162
|
+
F([
|
|
1163
|
+
k("value")
|
|
1164
|
+
], $.prototype, "handleValueChange", 1);
|
|
1165
|
+
F([
|
|
1166
|
+
k("open", { waitUntilFirstUpdate: !0 })
|
|
1167
|
+
], $.prototype, "handleOpenChange", 1);
|
|
1168
|
+
$ = F([
|
|
1169
|
+
T("cx-asset-link-format-proxy")
|
|
1170
|
+
], $);
|
|
1171
|
+
const Bt = D`
|
|
1172
|
+
cx-details::part(base) {
|
|
1173
|
+
border-bottom-width: 0;
|
|
1174
|
+
}
|
|
1175
|
+
`;
|
|
1176
|
+
var Gt = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, q = (t, e, i, s) => {
|
|
1177
|
+
for (var a = s > 1 ? void 0 : s ? Qt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
1178
|
+
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
1179
|
+
return s && a && Gt(e, i, a), a;
|
|
1180
|
+
};
|
|
1181
|
+
let R = class extends I {
|
|
1182
|
+
constructor() {
|
|
1183
|
+
super(...arguments), this.localize = new N(this), this.open = !1, this.value = 100, this.loading = !1, this.scopedValue = 100;
|
|
1184
|
+
}
|
|
1185
|
+
/**
|
|
1186
|
+
* A computed property that checks if the current quality value is invalid.
|
|
1187
|
+
* The value is considered invalid if it is not a number, less than 1, greater than 100, or equal to the current value.
|
|
1188
|
+
* @return {boolean} True if the value is invalid, false otherwise.
|
|
1189
|
+
*/
|
|
1190
|
+
get invalidValue() {
|
|
1191
|
+
return isNaN(Number(this.scopedValue)) || Number(this.scopedValue) < 1 || Number(this.scopedValue) > 100 || this.value === this.scopedValue;
|
|
1192
|
+
}
|
|
1193
|
+
handleValueChange() {
|
|
1194
|
+
this.scopedValue = this.value;
|
|
1195
|
+
}
|
|
1196
|
+
handleQualityChange(t) {
|
|
1197
|
+
const e = t.target.value;
|
|
1198
|
+
this.scopedValue = Number(e);
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* Handles the application of the input quality.
|
|
1202
|
+
* This method emits a custom event with the input quality when the "Apply" button is clicked.
|
|
1203
|
+
* It prevents further actions if the component is currently loading.
|
|
1204
|
+
*/
|
|
1205
|
+
handleApply() {
|
|
1206
|
+
this.loading || this.emit("cx-asset-link-format-quality-change", {
|
|
1207
|
+
detail: Number(this.scopedValue)
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
* Handles showing the details section.
|
|
1212
|
+
* This method prevents the event from propagating if the target is not the base element, such as tooltips, select dropdowns, or other interactive elements inside the details.
|
|
1213
|
+
* This ensures that the details section is only shown when the user interacts with the base element.
|
|
1214
|
+
*/
|
|
1215
|
+
onShowDetails(t) {
|
|
1216
|
+
t.target !== this.base && t.stopPropagation();
|
|
1217
|
+
}
|
|
1218
|
+
/**
|
|
1219
|
+
* Handles hiding the details section.
|
|
1220
|
+
* This method prevents the event from propagating if the target is not the base element, such as tooltips, select dropdowns, or other interactive elements inside the details.
|
|
1221
|
+
* This ensures that the details section is only hidden when the user interacts with the base element.
|
|
1222
|
+
*/
|
|
1223
|
+
onHideDetails(t) {
|
|
1224
|
+
t.target !== this.base && t.stopPropagation();
|
|
1225
|
+
}
|
|
1226
|
+
render() {
|
|
1227
|
+
return A`
|
|
1228
|
+
<cx-details
|
|
1229
|
+
class="details"
|
|
1230
|
+
?open=${this.open}
|
|
1231
|
+
@cx-show=${this.onShowDetails}
|
|
1232
|
+
@cx-hide=${this.onHideDetails}
|
|
1233
|
+
>
|
|
1234
|
+
<cx-space slot="summary" align-items="center">
|
|
1235
|
+
<div class="details__summary__icon">
|
|
1236
|
+
<div part="icon">
|
|
1237
|
+
<cx-icon name="blur_on"></cx-icon>
|
|
1238
|
+
</div>
|
|
1239
|
+
</div>
|
|
1240
|
+
<cx-typography variant="body2">
|
|
1241
|
+
${this.localize.term("quality")}
|
|
1242
|
+
</cx-typography>
|
|
1243
|
+
</cx-space>
|
|
1244
|
+
<cx-space spacing="small">
|
|
1245
|
+
<cx-tooltip
|
|
1246
|
+
data-testid="cx-asset-link-format-quality-tooltip"
|
|
1247
|
+
content=${this.localize.term("qualityHelpText")}
|
|
1248
|
+
hoist
|
|
1249
|
+
>
|
|
1250
|
+
<cx-input
|
|
1251
|
+
data-testid="cx-asset-link-format-quality"
|
|
1252
|
+
class="details__checkbox"
|
|
1253
|
+
type="number"
|
|
1254
|
+
value=${this.scopedValue}
|
|
1255
|
+
min="0"
|
|
1256
|
+
max="100"
|
|
1257
|
+
step="1"
|
|
1258
|
+
style=${P({
|
|
1259
|
+
flex: "1"
|
|
1260
|
+
})}
|
|
1261
|
+
@cx-input=${this.handleQualityChange}
|
|
1262
|
+
>
|
|
1263
|
+
</cx-input>
|
|
1264
|
+
</cx-tooltip>
|
|
1265
|
+
<cx-button
|
|
1266
|
+
data-testid="cx-asset-link-format-quality-apply"
|
|
1267
|
+
variant="primary"
|
|
1268
|
+
?disabled=${this.invalidValue}
|
|
1269
|
+
?loading=${this.loading}
|
|
1270
|
+
@click=${this.handleApply}
|
|
1271
|
+
>
|
|
1272
|
+
${this.localize.term("apply")}
|
|
1273
|
+
</cx-button>
|
|
1274
|
+
</cx-space>
|
|
1275
|
+
</cx-details>
|
|
1276
|
+
`;
|
|
1277
|
+
}
|
|
1278
|
+
};
|
|
1279
|
+
R.styles = [O, Bt];
|
|
1280
|
+
R.dependencies = {
|
|
1281
|
+
"cx-button": U,
|
|
1282
|
+
"cx-details": j,
|
|
1283
|
+
"cx-icon": B,
|
|
1284
|
+
"cx-input": rt,
|
|
1285
|
+
"cx-space": E,
|
|
1286
|
+
"cx-tooltip": zt,
|
|
1287
|
+
"cx-typography": W
|
|
1288
|
+
};
|
|
1289
|
+
q([
|
|
1290
|
+
G(".details")
|
|
1291
|
+
], R.prototype, "base", 2);
|
|
1292
|
+
q([
|
|
1293
|
+
l({ reflect: !0, type: Boolean })
|
|
1294
|
+
], R.prototype, "open", 2);
|
|
1295
|
+
q([
|
|
1296
|
+
l({ reflect: !0, type: Number })
|
|
1297
|
+
], R.prototype, "value", 2);
|
|
1298
|
+
q([
|
|
1299
|
+
l({ reflect: !0, type: Boolean })
|
|
1300
|
+
], R.prototype, "loading", 2);
|
|
1301
|
+
q([
|
|
1302
|
+
v()
|
|
1303
|
+
], R.prototype, "scopedValue", 2);
|
|
1304
|
+
q([
|
|
1305
|
+
k("value")
|
|
1306
|
+
], R.prototype, "handleValueChange", 1);
|
|
1307
|
+
R = q([
|
|
1308
|
+
T("cx-asset-link-format-quality")
|
|
1309
|
+
], R);
|
|
1310
|
+
const Xt = D`
|
|
1311
|
+
cx-details::part(base) {
|
|
1312
|
+
border-bottom-width: 0;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
cx-space {
|
|
1316
|
+
width: 100%;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
cx-space cx-input {
|
|
1320
|
+
flex: 1;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.resize__unit-select {
|
|
1324
|
+
width: 120px;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
.resize__input-group {
|
|
1328
|
+
display: flex;
|
|
1329
|
+
flex: 1;
|
|
1330
|
+
}
|
|
1331
|
+
`;
|
|
1332
|
+
var Yt = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, b = (t, e, i, s) => {
|
|
1333
|
+
for (var a = s > 1 ? void 0 : s ? Zt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
1334
|
+
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
1335
|
+
return s && a && Yt(e, i, a), a;
|
|
1336
|
+
};
|
|
1337
|
+
let w = class extends I {
|
|
1338
|
+
constructor() {
|
|
1339
|
+
super(...arguments), this.localize = new N(this), this.open = !1, this.width = 0, this.height = 0, this.maxWidth = 0, this.maxHeight = 0, this.ratioWidth = 1, this.ratioHeight = 1, this.unit = o.Pixel, this.lastAppliedSetting = {
|
|
1340
|
+
[o.Pixel]: { height: 0, width: 0 },
|
|
1341
|
+
[o.AspectRatio]: { height: 1, width: 1 }
|
|
1342
|
+
}, this.loading = !1, this.keepAspectRatio = !1, this.invalidWidth = !1, this.invalidHeight = !1, this.aspectRatio = 0;
|
|
1343
|
+
}
|
|
1344
|
+
/**
|
|
1345
|
+
* A computed property that checks if the current resize settings match the last applied settings.
|
|
1346
|
+
* This is used to disable the apply button when no changes have been made.
|
|
1347
|
+
* @returns {boolean} True if the current settings match the last applied settings, false otherwise.
|
|
1348
|
+
*/
|
|
1349
|
+
get disabledApply() {
|
|
1350
|
+
return this.lastAppliedSetting[this.unit].width === this.width && this.lastAppliedSetting[this.unit].height === this.height;
|
|
1351
|
+
}
|
|
1352
|
+
async handleCropModeChange() {
|
|
1353
|
+
if (this.keepAspectRatio) {
|
|
1354
|
+
if (this.unit === o.Pixel && this.width && this.height) {
|
|
1355
|
+
this.aspectRatio = this.width / this.height;
|
|
1356
|
+
return;
|
|
1357
|
+
} else if (this.unit === o.AspectRatio && this.ratioWidth && this.ratioHeight) {
|
|
1358
|
+
this.aspectRatio = this.ratioWidth / this.ratioHeight;
|
|
1359
|
+
return;
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
if (this.maxWidth && this.maxHeight) {
|
|
1363
|
+
this.aspectRatio = this.maxWidth / this.maxHeight;
|
|
1364
|
+
return;
|
|
1365
|
+
}
|
|
1366
|
+
this.aspectRatio = 1;
|
|
1367
|
+
}
|
|
1368
|
+
async handleOpenChange() {
|
|
1369
|
+
await this.updateComplete, this.open || (this.width = this.lastAppliedSetting[o.Pixel].width, this.height = this.lastAppliedSetting[o.Pixel].height, this.unit = o.Pixel, this.emit("cx-asset-link-format-resize-change", {
|
|
1370
|
+
detail: {
|
|
1371
|
+
height: this.lastAppliedSetting[o.Pixel].height,
|
|
1372
|
+
keepAspectRatio: this.keepAspectRatio,
|
|
1373
|
+
unit: o.Pixel,
|
|
1374
|
+
width: this.lastAppliedSetting[o.Pixel].width
|
|
1375
|
+
}
|
|
1376
|
+
}));
|
|
1377
|
+
}
|
|
1378
|
+
handleWidthChange(t) {
|
|
1379
|
+
if (!t.target.value) {
|
|
1380
|
+
this.invalidWidth = !0;
|
|
1381
|
+
return;
|
|
1382
|
+
}
|
|
1383
|
+
this.invalidWidth = !1;
|
|
1384
|
+
let e = Number(t.target.value);
|
|
1385
|
+
this.unit === o.Pixel && (e = Math.max(Math.min(e, this.maxWidth), 1)), t.target.value = e.toString();
|
|
1386
|
+
let i = this.unit === o.Pixel ? this.height : this.ratioHeight;
|
|
1387
|
+
this.keepAspectRatio && (i = Math.min(
|
|
1388
|
+
Math.round(e / this.aspectRatio),
|
|
1389
|
+
this.maxHeight
|
|
1390
|
+
), this.invalidHeight = !1), this.emit("cx-asset-link-format-resize-change", {
|
|
1391
|
+
detail: {
|
|
1392
|
+
height: i,
|
|
1393
|
+
keepAspectRatio: this.keepAspectRatio,
|
|
1394
|
+
unit: this.unit,
|
|
1395
|
+
width: e
|
|
1396
|
+
}
|
|
1397
|
+
});
|
|
1398
|
+
}
|
|
1399
|
+
handleHeightChange(t) {
|
|
1400
|
+
if (!t.target.value) {
|
|
1401
|
+
this.invalidHeight = !0;
|
|
1402
|
+
return;
|
|
1403
|
+
}
|
|
1404
|
+
this.invalidHeight = !1;
|
|
1405
|
+
let e = Number(t.target.value);
|
|
1406
|
+
this.unit === o.Pixel && (e = Math.max(Math.min(e, this.maxHeight), 1)), t.target.value = e.toString();
|
|
1407
|
+
let i = this.unit === o.Pixel ? this.width : this.ratioWidth;
|
|
1408
|
+
this.keepAspectRatio && (i = Math.min(
|
|
1409
|
+
Math.round(e * this.aspectRatio),
|
|
1410
|
+
this.maxWidth
|
|
1411
|
+
), this.invalidWidth = !1), this.emit("cx-asset-link-format-resize-change", {
|
|
1412
|
+
detail: {
|
|
1413
|
+
height: e,
|
|
1414
|
+
keepAspectRatio: this.keepAspectRatio,
|
|
1415
|
+
unit: this.unit,
|
|
1416
|
+
width: i
|
|
1417
|
+
}
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
onUnitChange(t) {
|
|
1421
|
+
t.target.value === o.AspectRatio ? this.emit("cx-asset-link-format-resize-change", {
|
|
1422
|
+
detail: {
|
|
1423
|
+
height: this.lastAppliedSetting[o.AspectRatio].height,
|
|
1424
|
+
keepAspectRatio: this.keepAspectRatio,
|
|
1425
|
+
unit: o.AspectRatio,
|
|
1426
|
+
width: this.lastAppliedSetting[o.AspectRatio].width
|
|
1427
|
+
}
|
|
1428
|
+
}) : this.emit("cx-asset-link-format-resize-change", {
|
|
1429
|
+
detail: {
|
|
1430
|
+
height: this.lastAppliedSetting[o.Pixel].height,
|
|
1431
|
+
keepAspectRatio: this.keepAspectRatio,
|
|
1432
|
+
unit: o.Pixel,
|
|
1433
|
+
width: this.lastAppliedSetting[o.Pixel].width
|
|
1434
|
+
}
|
|
1435
|
+
});
|
|
1436
|
+
}
|
|
1437
|
+
handleApply() {
|
|
1438
|
+
this.loading || this.emit("cx-asset-link-format-resize-apply", {
|
|
1439
|
+
detail: {
|
|
1440
|
+
height: this.height,
|
|
1441
|
+
unit: this.unit,
|
|
1442
|
+
width: this.width
|
|
1443
|
+
}
|
|
1444
|
+
});
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* Handles showing the details section.
|
|
1448
|
+
* This method prevents the event from propagating if the target is not the base element, such as tooltips, select dropdowns, or other interactive elements inside the details.
|
|
1449
|
+
* This ensures that the details section is only shown when the user interacts with the base element.
|
|
1450
|
+
*/
|
|
1451
|
+
onShowDetails(t) {
|
|
1452
|
+
t.target !== this.base && t.stopPropagation();
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Handles hiding the details section.
|
|
1456
|
+
* This method prevents the event from propagating if the target is not the base element, such as tooltips, select dropdowns, or other interactive elements inside the details.
|
|
1457
|
+
* This ensures that the details section is only hidden when the user interacts with the base element.
|
|
1458
|
+
*/
|
|
1459
|
+
onHideDetails(t) {
|
|
1460
|
+
t.target !== this.base && t.stopPropagation();
|
|
1461
|
+
}
|
|
1462
|
+
handleAspectRatioClick() {
|
|
1463
|
+
this.emit("cx-asset-link-format-resize-change", {
|
|
1464
|
+
detail: {
|
|
1465
|
+
height: this.unit === o.Pixel ? this.height : this.ratioHeight,
|
|
1466
|
+
keepAspectRatio: !this.keepAspectRatio,
|
|
1467
|
+
unit: this.unit,
|
|
1468
|
+
width: this.unit === o.Pixel ? this.width : this.ratioWidth
|
|
1469
|
+
}
|
|
1470
|
+
});
|
|
1471
|
+
}
|
|
1472
|
+
render() {
|
|
1473
|
+
return A`<cx-details
|
|
1474
|
+
class="details"
|
|
1475
|
+
?open=${this.open}
|
|
1476
|
+
@cx-show=${this.onShowDetails}
|
|
1477
|
+
@cx-hide=${this.onHideDetails}
|
|
1478
|
+
>
|
|
1479
|
+
<cx-space slot="summary" align-items="center">
|
|
1480
|
+
<div part="icon">
|
|
1481
|
+
<cx-icon name="aspect_ratio"></cx-icon>
|
|
1482
|
+
</div>
|
|
1483
|
+
<cx-typography variant="body2">
|
|
1484
|
+
${this.localize.term("resize")}
|
|
1485
|
+
</cx-typography>
|
|
1486
|
+
</cx-space>
|
|
1487
|
+
<cx-space direction="vertical" spacing="small">
|
|
1488
|
+
<cx-space spacing="small">
|
|
1489
|
+
<div class="resize__input-group">
|
|
1490
|
+
<cx-input
|
|
1491
|
+
data-testid="cx-asset-link-format-resize-width"
|
|
1492
|
+
placeholder=${this.localize.term("width")}
|
|
1493
|
+
type="number"
|
|
1494
|
+
step="1"
|
|
1495
|
+
value=${this.unit === o.Pixel ? this.width.toString() : this.ratioWidth.toString()}
|
|
1496
|
+
@cx-input=${this.handleWidthChange}
|
|
1497
|
+
required
|
|
1498
|
+
?disabled=${this.loading}
|
|
1499
|
+
>
|
|
1500
|
+
<cx-typography slot="prefix" variant="body3" part="input-label">
|
|
1501
|
+
W
|
|
1502
|
+
</cx-typography>
|
|
1503
|
+
</cx-input>
|
|
1504
|
+
<cx-icon-button
|
|
1505
|
+
data-testid="cx-asset-link-format-resize-aspect-ratio"
|
|
1506
|
+
name=${this.keepAspectRatio ? "insert_link" : "link_off"}
|
|
1507
|
+
@click=${this.handleAspectRatioClick}
|
|
1508
|
+
style=${P({
|
|
1509
|
+
color: this.keepAspectRatio ? "var(--cx-color-primary)" : void 0
|
|
1510
|
+
})}
|
|
1511
|
+
?disabled=${this.loading}
|
|
1512
|
+
></cx-icon-button>
|
|
1513
|
+
<cx-input
|
|
1514
|
+
data-testid="cx-asset-link-format-resize-height"
|
|
1515
|
+
placeholder=${this.localize.term("height")}
|
|
1516
|
+
type="number"
|
|
1517
|
+
step="1"
|
|
1518
|
+
value=${this.unit === o.Pixel ? this.height.toString() : this.ratioHeight.toString()}
|
|
1519
|
+
@cx-input=${this.handleHeightChange}
|
|
1520
|
+
required
|
|
1521
|
+
?disabled=${this.loading}
|
|
1522
|
+
>
|
|
1523
|
+
<cx-typography slot="prefix" variant="body3" part="input-label">
|
|
1524
|
+
H
|
|
1525
|
+
</cx-typography>
|
|
1526
|
+
</cx-input>
|
|
1527
|
+
</div>
|
|
1528
|
+
<cx-select
|
|
1529
|
+
data-testid="cx-asset-link-format-resize-unit"
|
|
1530
|
+
value=${this.unit}
|
|
1531
|
+
hoist
|
|
1532
|
+
class="resize__unit-select"
|
|
1533
|
+
@cx-change=${this.onUnitChange}
|
|
1534
|
+
>
|
|
1535
|
+
<cx-option value=${o.Pixel}>
|
|
1536
|
+
${this.localize.term("pixels")}
|
|
1537
|
+
</cx-option>
|
|
1538
|
+
<cx-option value=${o.AspectRatio}>
|
|
1539
|
+
${this.localize.term("aspectRatio")}
|
|
1540
|
+
</cx-option>
|
|
1541
|
+
</cx-select>
|
|
1542
|
+
</cx-space>
|
|
1543
|
+
<cx-button
|
|
1544
|
+
data-testid="cx-asset-link-format-resize-apply"
|
|
1545
|
+
variant="primary"
|
|
1546
|
+
?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth}
|
|
1547
|
+
?loading=${this.loading}
|
|
1548
|
+
style=${P({
|
|
1549
|
+
marginLeft: "auto"
|
|
1550
|
+
})}
|
|
1551
|
+
@click=${this.handleApply}
|
|
1552
|
+
>
|
|
1553
|
+
${this.localize.term("apply")}
|
|
1554
|
+
</cx-button>
|
|
1555
|
+
</cx-space>
|
|
1556
|
+
</cx-details>`;
|
|
1557
|
+
}
|
|
1558
|
+
};
|
|
1559
|
+
w.styles = [O, Xt];
|
|
1560
|
+
w.dependencies = {
|
|
1561
|
+
"cx-button": U,
|
|
1562
|
+
"cx-details": j,
|
|
1563
|
+
"cx-icon": B,
|
|
1564
|
+
"cx-icon-button": ot,
|
|
1565
|
+
"cx-input": rt,
|
|
1566
|
+
"cx-option": tt,
|
|
1567
|
+
"cx-select": et,
|
|
1568
|
+
"cx-space": E,
|
|
1569
|
+
"cx-typography": W
|
|
1570
|
+
};
|
|
1571
|
+
b([
|
|
1572
|
+
G(".details")
|
|
1573
|
+
], w.prototype, "base", 2);
|
|
1574
|
+
b([
|
|
1575
|
+
l({ reflect: !0, type: Boolean })
|
|
1576
|
+
], w.prototype, "open", 2);
|
|
1577
|
+
b([
|
|
1578
|
+
l({ reflect: !0, type: Number })
|
|
1579
|
+
], w.prototype, "width", 2);
|
|
1580
|
+
b([
|
|
1581
|
+
l({ reflect: !0, type: Number })
|
|
1582
|
+
], w.prototype, "height", 2);
|
|
1583
|
+
b([
|
|
1584
|
+
l({ attribute: "max-width", reflect: !0, type: Number })
|
|
1585
|
+
], w.prototype, "maxWidth", 2);
|
|
1586
|
+
b([
|
|
1587
|
+
l({ attribute: "max-height", reflect: !0, type: Number })
|
|
1588
|
+
], w.prototype, "maxHeight", 2);
|
|
1589
|
+
b([
|
|
1590
|
+
l({ attribute: "ratio-width", reflect: !0, type: Number })
|
|
1591
|
+
], w.prototype, "ratioWidth", 2);
|
|
1592
|
+
b([
|
|
1593
|
+
l({ attribute: "ratio-height", reflect: !0, type: Number })
|
|
1594
|
+
], w.prototype, "ratioHeight", 2);
|
|
1595
|
+
b([
|
|
1596
|
+
l({ reflect: !0, type: String })
|
|
1597
|
+
], w.prototype, "unit", 2);
|
|
1598
|
+
b([
|
|
1599
|
+
l({ attribute: "last-applied-setting", reflect: !1, type: Object })
|
|
1600
|
+
], w.prototype, "lastAppliedSetting", 2);
|
|
1601
|
+
b([
|
|
1602
|
+
l({ reflect: !0, type: Boolean })
|
|
1603
|
+
], w.prototype, "loading", 2);
|
|
1604
|
+
b([
|
|
1605
|
+
l({ attribute: "keep-aspect-ratio", reflect: !0, type: Boolean })
|
|
1606
|
+
], w.prototype, "keepAspectRatio", 2);
|
|
1607
|
+
b([
|
|
1608
|
+
v()
|
|
1609
|
+
], w.prototype, "invalidWidth", 2);
|
|
1610
|
+
b([
|
|
1611
|
+
v()
|
|
1612
|
+
], w.prototype, "invalidHeight", 2);
|
|
1613
|
+
b([
|
|
1614
|
+
v()
|
|
1615
|
+
], w.prototype, "aspectRatio", 2);
|
|
1616
|
+
b([
|
|
1617
|
+
k("cropMode", { waitUntilFirstUpdate: !0 }),
|
|
1618
|
+
k("maxWidth", { waitUntilFirstUpdate: !0 }),
|
|
1619
|
+
k("maxHeight", { waitUntilFirstUpdate: !0 }),
|
|
1620
|
+
k("keepAspectRatio")
|
|
1621
|
+
], w.prototype, "handleCropModeChange", 1);
|
|
1622
|
+
b([
|
|
1623
|
+
k("open")
|
|
1624
|
+
], w.prototype, "handleOpenChange", 1);
|
|
1625
|
+
w = b([
|
|
1626
|
+
T("cx-asset-link-format-resize")
|
|
1627
|
+
], w);
|
|
1628
|
+
const Kt = D`
|
|
1629
|
+
cx-details::part(base) {
|
|
1630
|
+
border-bottom-width: 0;
|
|
1631
|
+
}
|
|
1632
|
+
`;
|
|
1633
|
+
var Jt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, V = (t, e, i, s) => {
|
|
1634
|
+
for (var a = s > 1 ? void 0 : s ? te(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
1635
|
+
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
1636
|
+
return s && a && Jt(e, i, a), a;
|
|
1637
|
+
};
|
|
1638
|
+
let _ = class extends I {
|
|
1639
|
+
constructor() {
|
|
1640
|
+
super(...arguments), this.localize = new N(this), this.open = !1, this.value = 0, this.loading = !1, this.invalidValue = !1;
|
|
1641
|
+
}
|
|
1642
|
+
handleOpenChange() {
|
|
1643
|
+
this.open || this.emit("cx-asset-link-format-rotation-change", {
|
|
1644
|
+
detail: 0
|
|
1645
|
+
});
|
|
1646
|
+
}
|
|
1647
|
+
handleRotationChange(t) {
|
|
1648
|
+
const e = t.target.value;
|
|
1649
|
+
e ? this.invalidValue = !1 : this.invalidValue = !0;
|
|
1650
|
+
const i = lt(Number(e));
|
|
1651
|
+
(Number(e) > 360 || Number(e) < -360) && (t.target.value = i.toString()), this.emit("cx-asset-link-format-rotation-change", {
|
|
1652
|
+
detail: i
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
handleButtonClick(t) {
|
|
1656
|
+
this.emit("cx-asset-link-format-rotation-change", {
|
|
1657
|
+
detail: lt(t)
|
|
1658
|
+
});
|
|
1659
|
+
}
|
|
1660
|
+
handleClockwiseClick() {
|
|
1661
|
+
this.handleButtonClick(this.value + 90);
|
|
1662
|
+
}
|
|
1663
|
+
handleCounterClockwiseClick() {
|
|
1664
|
+
this.handleButtonClick(this.value - 90);
|
|
1665
|
+
}
|
|
1666
|
+
/**
|
|
1667
|
+
* Handles the application of the input rotation.
|
|
1668
|
+
* This method emits a custom event with the input rotation when the "Apply" button is clicked.
|
|
1669
|
+
* It prevents further actions if the component is currently loading.
|
|
1670
|
+
*/
|
|
1671
|
+
handleApply() {
|
|
1672
|
+
this.invalidValue || this.value === 360 || this.value === -360 || this.loading || this.emit("cx-asset-link-format-rotation-apply", {
|
|
1673
|
+
detail: this.value
|
|
1674
|
+
});
|
|
1675
|
+
}
|
|
1676
|
+
render() {
|
|
1677
|
+
return A`
|
|
1678
|
+
<cx-details class="details" ?open=${this.open}>
|
|
1679
|
+
<cx-space slot="summary" align-items="center">
|
|
1680
|
+
<div part="icon">
|
|
1681
|
+
<cx-icon name="rotate_90_degrees_cw"></cx-icon>
|
|
1682
|
+
</div>
|
|
1683
|
+
<cx-typography variant="body2">Rotate</cx-typography>
|
|
1684
|
+
</cx-space>
|
|
1685
|
+
<cx-space spacing="small">
|
|
1686
|
+
<cx-button-group label=${this.localize.term("history")}>
|
|
1687
|
+
<cx-icon-button
|
|
1688
|
+
data-testid="cx-asset-link-format-rotation-ccw"
|
|
1689
|
+
name="rotate_90_degrees_ccw"
|
|
1690
|
+
label=${this.localize.term("undo")}
|
|
1691
|
+
outline
|
|
1692
|
+
size="small"
|
|
1693
|
+
?disabled=${this.loading || this.value === -360}
|
|
1694
|
+
@click=${this.handleCounterClockwiseClick}
|
|
1695
|
+
>
|
|
1696
|
+
</cx-icon-button>
|
|
1697
|
+
<cx-icon-button
|
|
1698
|
+
data-testid="cx-asset-link-format-rotation-cw"
|
|
1699
|
+
name="rotate_90_degrees_cw"
|
|
1700
|
+
label=${this.localize.term("redo")}
|
|
1701
|
+
outline
|
|
1702
|
+
size="small"
|
|
1703
|
+
?disabled=${this.loading || this.value === 360}
|
|
1704
|
+
@click=${this.handleClockwiseClick}
|
|
1705
|
+
>
|
|
1706
|
+
</cx-icon-button>
|
|
1707
|
+
</cx-button-group>
|
|
1708
|
+
<cx-input
|
|
1709
|
+
data-testid="cx-asset-link-format-rotation"
|
|
1710
|
+
value=${this.invalidValue ? "" : this.value.toString()}
|
|
1711
|
+
placeholder="0"
|
|
1712
|
+
type="number"
|
|
1713
|
+
min="-360"
|
|
1714
|
+
max="360"
|
|
1715
|
+
?disabled=${this.loading}
|
|
1716
|
+
style=${P({
|
|
1717
|
+
flex: "none",
|
|
1718
|
+
width: "80px"
|
|
1719
|
+
})}
|
|
1720
|
+
@cx-input=${this.handleRotationChange}
|
|
1721
|
+
step="1"
|
|
1722
|
+
></cx-input>
|
|
1723
|
+
<cx-button
|
|
1724
|
+
data-testid="cx-asset-link-format-rotation-apply"
|
|
1725
|
+
variant="primary"
|
|
1726
|
+
?disabled=${this.value === 360 || this.value === -360 || this.invalidValue}
|
|
1727
|
+
?loading=${this.loading}
|
|
1728
|
+
@click=${this.handleApply}
|
|
1729
|
+
>
|
|
1730
|
+
${this.localize.term("apply")}
|
|
1731
|
+
</cx-button>
|
|
1732
|
+
</cx-space>
|
|
1733
|
+
</cx-details>
|
|
1734
|
+
`;
|
|
1735
|
+
}
|
|
1736
|
+
};
|
|
1737
|
+
_.styles = [O, Kt];
|
|
1738
|
+
_.dependencies = {
|
|
1739
|
+
"cx-button": U,
|
|
1740
|
+
"cx-button-group": Ct,
|
|
1741
|
+
"cx-details": j,
|
|
1742
|
+
"cx-icon": B,
|
|
1743
|
+
"cx-icon-button": ot,
|
|
1744
|
+
"cx-space": E,
|
|
1745
|
+
"cx-typography": W
|
|
1746
|
+
};
|
|
1747
|
+
V([
|
|
1748
|
+
G(".details")
|
|
1749
|
+
], _.prototype, "base", 2);
|
|
1750
|
+
V([
|
|
1751
|
+
l({ reflect: !0, type: Boolean })
|
|
1752
|
+
], _.prototype, "open", 2);
|
|
1753
|
+
V([
|
|
1754
|
+
l({ reflect: !0, type: Number })
|
|
1755
|
+
], _.prototype, "value", 2);
|
|
1756
|
+
V([
|
|
1757
|
+
l({ reflect: !0, type: Boolean })
|
|
1758
|
+
], _.prototype, "loading", 2);
|
|
1759
|
+
V([
|
|
1760
|
+
v()
|
|
1761
|
+
], _.prototype, "invalidValue", 2);
|
|
1762
|
+
V([
|
|
1763
|
+
k("open", { waitUntilFirstUpdate: !0 })
|
|
1764
|
+
], _.prototype, "handleOpenChange", 1);
|
|
1765
|
+
_ = V([
|
|
1766
|
+
T("cx-asset-link-format-rotation")
|
|
1767
|
+
], _);
|
|
1768
|
+
const ee = D`
|
|
1769
|
+
cx-details::part(base) {
|
|
1770
|
+
border-bottom-width: 0;
|
|
1771
|
+
}
|
|
1772
|
+
`;
|
|
1773
|
+
var ie = Object.defineProperty, se = Object.getOwnPropertyDescriptor, it = (t, e, i, s) => {
|
|
1774
|
+
for (var a = s > 1 ? void 0 : s ? se(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
1775
|
+
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
1776
|
+
return s && a && ie(e, i, a), a;
|
|
1777
|
+
};
|
|
1778
|
+
let H = class extends I {
|
|
1779
|
+
constructor() {
|
|
1780
|
+
super(...arguments), this.localize = new N(this), this.open = !1, this.value = !1;
|
|
1781
|
+
}
|
|
1782
|
+
handleApply(t) {
|
|
1783
|
+
this.emit("cx-asset-link-format-metadata-change", {
|
|
1784
|
+
detail: t.target.checked
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1787
|
+
/**
|
|
1788
|
+
* Handles showing the details section.
|
|
1789
|
+
* This method prevents the event from propagating if the target is not the base element, such as tooltips, select dropdowns, or other interactive elements inside the details.
|
|
1790
|
+
* This ensures that the details section is only shown when the user interacts with the base element.
|
|
1791
|
+
*/
|
|
1792
|
+
onShowDetails(t) {
|
|
1793
|
+
t.target !== this.base && t.stopPropagation();
|
|
1794
|
+
}
|
|
1795
|
+
/**
|
|
1796
|
+
* Handles hiding the details section.
|
|
1797
|
+
* This method prevents the event from propagating if the target is not the base element, such as tooltips, select dropdowns, or other interactive elements inside the details.
|
|
1798
|
+
* This ensures that the details section is only hidden when the user interacts with the base element.
|
|
1799
|
+
*/
|
|
1800
|
+
onHideDetails(t) {
|
|
1801
|
+
t.target !== this.base && t.stopPropagation();
|
|
1802
|
+
}
|
|
1803
|
+
render() {
|
|
1804
|
+
return A`
|
|
1805
|
+
<cx-details
|
|
1806
|
+
class="details"
|
|
1807
|
+
?open=${this.open}
|
|
1808
|
+
@cx-show=${this.onShowDetails}
|
|
1809
|
+
@cx-hide=${this.onHideDetails}
|
|
1810
|
+
>
|
|
1811
|
+
<cx-space slot="summary" align-items="center">
|
|
1812
|
+
<div class="details__summary__icon">
|
|
1813
|
+
<div part="icon">
|
|
1814
|
+
<cx-icon name="short_text"></cx-icon>
|
|
1815
|
+
</div>
|
|
1816
|
+
</div>
|
|
1817
|
+
<cx-typography variant="body2">
|
|
1818
|
+
${this.localize.term("metadata")}
|
|
1819
|
+
</cx-typography>
|
|
1820
|
+
</cx-space>
|
|
1821
|
+
<cx-space spacing="small">
|
|
1822
|
+
<cx-tooltip
|
|
1823
|
+
data-testid="cx-asset-link-format-metadata-tooltip"
|
|
1824
|
+
content=${this.localize.term("metadataHelpText")}
|
|
1825
|
+
hoist
|
|
1826
|
+
>
|
|
1827
|
+
<cx-checkbox
|
|
1828
|
+
data-testid="cx-asset-link-format-metadata"
|
|
1829
|
+
class="details__checkbox"
|
|
1830
|
+
?checked=${this.value}
|
|
1831
|
+
@cx-change=${this.handleApply}
|
|
1832
|
+
>
|
|
1833
|
+
${this.localize.term("preserveMetadata")}
|
|
1834
|
+
</cx-checkbox>
|
|
1835
|
+
</cx-tooltip>
|
|
1836
|
+
</cx-space>
|
|
1837
|
+
</cx-details>
|
|
1838
|
+
`;
|
|
1839
|
+
}
|
|
1840
|
+
};
|
|
1841
|
+
H.styles = [O, ee];
|
|
1842
|
+
H.dependencies = {
|
|
1843
|
+
"cx-button": U,
|
|
1844
|
+
"cx-checkbox": $t,
|
|
1845
|
+
"cx-details": j,
|
|
1846
|
+
"cx-icon": B,
|
|
1847
|
+
"cx-space": E,
|
|
1848
|
+
"cx-tooltip": zt,
|
|
1849
|
+
"cx-typography": W
|
|
1850
|
+
};
|
|
1851
|
+
it([
|
|
1852
|
+
G(".details")
|
|
1853
|
+
], H.prototype, "base", 2);
|
|
1854
|
+
it([
|
|
1855
|
+
l({ reflect: !0, type: Boolean })
|
|
1856
|
+
], H.prototype, "open", 2);
|
|
1857
|
+
it([
|
|
1858
|
+
l({ reflect: !0, type: Boolean })
|
|
1859
|
+
], H.prototype, "value", 2);
|
|
1860
|
+
H = it([
|
|
1861
|
+
T("cx-asset-link-format-metadata")
|
|
1862
|
+
], H);
|
|
1863
|
+
var ae = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, f = (t, e, i, s) => {
|
|
1864
|
+
for (var a = s > 1 ? void 0 : s ? oe(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
1865
|
+
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
1866
|
+
return s && a && ae(e, i, a), a;
|
|
1867
|
+
};
|
|
1868
|
+
let d = class extends I {
|
|
1869
|
+
constructor() {
|
|
1870
|
+
super(), this.localize = new N(this), this.baseUrl = void 0, this.accessToken = void 0, this.asset = void 0, this.cropModes = [
|
|
1871
|
+
{
|
|
1872
|
+
label: "Free",
|
|
1873
|
+
value: "free"
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
label: "Widescreen (16:9)",
|
|
1877
|
+
value: "16:9"
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
label: "Phone (9:16)",
|
|
1881
|
+
value: "9:16"
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
label: "Presentation (4:3)",
|
|
1885
|
+
value: "4:3"
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
label: "Square (1:1)",
|
|
1889
|
+
value: "1:1"
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
label: "Landscape (3:2)",
|
|
1893
|
+
value: "3:2"
|
|
1894
|
+
},
|
|
1895
|
+
{
|
|
1896
|
+
label: "Portrait (2:3)",
|
|
1897
|
+
value: "2:3"
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
auto: !0,
|
|
1901
|
+
disabledSize: !0,
|
|
1902
|
+
label: "Azure AI",
|
|
1903
|
+
value: "AzureAI"
|
|
1904
|
+
}
|
|
1905
|
+
], this.focusModes = [
|
|
1906
|
+
{
|
|
1907
|
+
label: "Manual focus",
|
|
1908
|
+
value: "manual"
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
label: "Center focus",
|
|
1912
|
+
value: "center"
|
|
1913
|
+
},
|
|
1914
|
+
{
|
|
1915
|
+
auto: !0,
|
|
1916
|
+
label: "Optical focus",
|
|
1917
|
+
value: "Optical"
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
auto: !0,
|
|
1921
|
+
label: "Google AI",
|
|
1922
|
+
value: "GoogleAI"
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
auto: !0,
|
|
1926
|
+
label: "Smart Swatch",
|
|
1927
|
+
value: "SmartSwatch"
|
|
1928
|
+
}
|
|
1929
|
+
], this.extensions = [], this.proxies = void 0, this.forCropper = void 0, this.useSession = "", this.transformations = [], this.selectedProxy = "", this.useCustomExtension = !1, this.lastImageSize = {
|
|
1930
|
+
height: 0,
|
|
1931
|
+
width: 0
|
|
1932
|
+
}, this.activeSetting = "cx-asset-link-format-proxy", this.selectedFormat = void 0, this.resizeSize = {
|
|
1933
|
+
height: 0,
|
|
1934
|
+
keepAspectRatio: !0,
|
|
1935
|
+
ratioHeight: 1,
|
|
1936
|
+
ratioWidth: 1,
|
|
1937
|
+
unit: o.Pixel,
|
|
1938
|
+
width: 0
|
|
1939
|
+
}, this.cropSize = {
|
|
1940
|
+
cropMode: "free",
|
|
1941
|
+
focusMode: "manual",
|
|
1942
|
+
height: 0,
|
|
1943
|
+
keepAspectRatio: !0,
|
|
1944
|
+
percentageHeight: 0,
|
|
1945
|
+
percentageWidth: 0,
|
|
1946
|
+
ratioHeight: 1,
|
|
1947
|
+
ratioWidth: 1,
|
|
1948
|
+
unit: o.Pixel,
|
|
1949
|
+
width: 0,
|
|
1950
|
+
x: 0,
|
|
1951
|
+
y: 0
|
|
1952
|
+
}, this.rotation = 0, this.defaultSize = {
|
|
1953
|
+
height: 0,
|
|
1954
|
+
width: 0
|
|
1955
|
+
}, this.cropperElement = null, this.parameters = [], this.loading = !1, this.lastAction = void 0, this.frozenIndex = void 0, this.apiGetTransformAssetLink = Et, this.apiGetCropFocusMode = Wt, this.onCropComplete = this.onCropComplete.bind(this), this.onCropDragStart = this.onCropDragStart.bind(this);
|
|
1956
|
+
}
|
|
1957
|
+
/**
|
|
1958
|
+
* Checks if the crop apply button should be disabled.
|
|
1959
|
+
* This is determined by comparing the current crop size with the last crop size.
|
|
1960
|
+
* If the current crop size is equal to the last crop size, the button is disabled.
|
|
1961
|
+
* @return {boolean} - Returns true if the crop apply button should be disabled, false otherwise.
|
|
1962
|
+
*/
|
|
1963
|
+
get disabledCropApply() {
|
|
1964
|
+
const t = [
|
|
1965
|
+
"height",
|
|
1966
|
+
"percentageHeight",
|
|
1967
|
+
"percentageWidth",
|
|
1968
|
+
"unit",
|
|
1969
|
+
"width",
|
|
1970
|
+
"x",
|
|
1971
|
+
"y"
|
|
1972
|
+
];
|
|
1973
|
+
for (const e of t)
|
|
1974
|
+
if (this.cropSize[e] !== this.lastCropSize[this.cropSize.unit][e])
|
|
1975
|
+
return !1;
|
|
1976
|
+
return !0;
|
|
1977
|
+
}
|
|
1978
|
+
/**
|
|
1979
|
+
* Returns the list of formats available for the asset link.
|
|
1980
|
+
* This is derived from the `proxies` property, filtering out any proxies that have a `cdnName`.
|
|
1981
|
+
*/
|
|
1982
|
+
get formats() {
|
|
1983
|
+
return this.proxies?.filter((t) => !t.cdnName) || [];
|
|
1984
|
+
}
|
|
1985
|
+
get imageSize() {
|
|
1986
|
+
return {
|
|
1987
|
+
height: this.selectedFormat?.height ?? 0,
|
|
1988
|
+
width: this.selectedFormat?.width ?? 0
|
|
1989
|
+
};
|
|
1990
|
+
}
|
|
1991
|
+
/**
|
|
1992
|
+
* Returns the last crop size based on the transformations applied to the asset link.
|
|
1993
|
+
* This is calculated by iterating through the transformations and applying the last crop, resize, or rotate transformation to the default size of the asset.
|
|
1994
|
+
* It returns an object with the last crop size in both pixel and aspect ratio units.
|
|
1995
|
+
*/
|
|
1996
|
+
get lastCropSize() {
|
|
1997
|
+
const t = ct(
|
|
1998
|
+
this.lastImageSize.width,
|
|
1999
|
+
this.lastImageSize.height
|
|
2000
|
+
);
|
|
2001
|
+
return {
|
|
2002
|
+
[o.AspectRatio]: {
|
|
2003
|
+
height: t.height,
|
|
2004
|
+
percentageHeight: 100,
|
|
2005
|
+
percentageWidth: 100,
|
|
2006
|
+
unit: o.AspectRatio,
|
|
2007
|
+
width: t.width,
|
|
2008
|
+
x: 0,
|
|
2009
|
+
y: 0
|
|
2010
|
+
},
|
|
2011
|
+
[o.Pixel]: {
|
|
2012
|
+
height: this.lastImageSize.height,
|
|
2013
|
+
percentageHeight: 100,
|
|
2014
|
+
percentageWidth: 100,
|
|
2015
|
+
unit: o.Pixel,
|
|
2016
|
+
width: this.lastImageSize.width,
|
|
2017
|
+
x: 0,
|
|
2018
|
+
y: 0
|
|
2019
|
+
}
|
|
2020
|
+
};
|
|
2021
|
+
}
|
|
2022
|
+
/**
|
|
2023
|
+
* Returns the last resize size based on the transformations applied to the asset link.
|
|
2024
|
+
* This is calculated by iterating through the transformations and applying the last crop, resize, or rotate transformation to the default size of the asset.
|
|
2025
|
+
* It returns an object with the last resize size in both pixel and aspect ratio units.
|
|
2026
|
+
*/
|
|
2027
|
+
get lastResizeSize() {
|
|
2028
|
+
const t = ct(
|
|
2029
|
+
this.lastImageSize.width,
|
|
2030
|
+
this.lastImageSize.height
|
|
2031
|
+
);
|
|
2032
|
+
return {
|
|
2033
|
+
[o.AspectRatio]: {
|
|
2034
|
+
height: t.height,
|
|
2035
|
+
unit: o.AspectRatio,
|
|
2036
|
+
width: t.width
|
|
2037
|
+
},
|
|
2038
|
+
[o.Pixel]: {
|
|
2039
|
+
height: this.lastImageSize.height,
|
|
2040
|
+
unit: o.Pixel,
|
|
2041
|
+
width: this.lastImageSize.width
|
|
2042
|
+
}
|
|
2043
|
+
};
|
|
2044
|
+
}
|
|
2045
|
+
/**
|
|
2046
|
+
* Returns the transformation string for the asset link.
|
|
2047
|
+
*/
|
|
2048
|
+
get transformationString() {
|
|
2049
|
+
return st({
|
|
2050
|
+
asset: this.asset,
|
|
2051
|
+
baseUrl: "",
|
|
2052
|
+
parameters: this.parameters,
|
|
2053
|
+
transformations: this.transformations,
|
|
2054
|
+
useSession: this.useSession
|
|
2055
|
+
}).replace(/\/t\//g, "");
|
|
2056
|
+
}
|
|
2057
|
+
disconnectedCallback() {
|
|
2058
|
+
super.disconnectedCallback(), this.cropperElement && (this.cropperElement.removeEventListener(
|
|
2059
|
+
"cx-cropper-crop-complete",
|
|
2060
|
+
this.onCropComplete
|
|
2061
|
+
), this.cropperElement.removeEventListener(
|
|
2062
|
+
"cx-cropper-crop-drag-start",
|
|
2063
|
+
this.onCropDragStart
|
|
2064
|
+
));
|
|
2065
|
+
}
|
|
2066
|
+
updated(t) {
|
|
2067
|
+
if (t.has("forCropper") && this.handleCropperSelectorChange(), t.has("asset") && this.handleAssetChange(), t.has("proxies") && this.handleProxiesChange(), t.has("activeSetting") && this.handleActiveSettingChange(), t.has("selectedFormat") && this.handleSelectedFormatChange(), t.has("resizeSize") && this.handleResizeSizeChange(), t.has("cropSize") && this.handleCropSizeChange(), t.has("rotation") && this.handleRotationChange(), t.has("cropperElement") && this.handleCropperElementChange(), t.has("selectedFormat")) {
|
|
2068
|
+
if (!this.asset || !this.selectedFormat || this.selectedFormat.extension === t.get("selectedFormat")?.extension)
|
|
2069
|
+
return;
|
|
2070
|
+
const e = this.proxies?.find(
|
|
2071
|
+
(s) => s.id === this.selectedProxy
|
|
2072
|
+
);
|
|
2073
|
+
this.loading = !0, this.apiGetTransformAssetLink({
|
|
2074
|
+
assetId: this.asset.id,
|
|
2075
|
+
extension: this.selectedFormat.extension,
|
|
2076
|
+
format: e?.proxyName ?? "",
|
|
2077
|
+
token: this.accessToken,
|
|
2078
|
+
transformations: this.transformationString,
|
|
2079
|
+
useSession: this.useSession
|
|
2080
|
+
}).then((s) => {
|
|
2081
|
+
this.loading = !1, !(!s?.relativePath || !this.selectedFormat) && (this.lastAction === c.Rotate && (this.rotation = 0), this.lastAction = void 0, this.lastImageSize = {
|
|
2082
|
+
height: s.height,
|
|
2083
|
+
width: s.width
|
|
2084
|
+
}, this.selectedFormat = {
|
|
2085
|
+
...this.selectedFormat,
|
|
2086
|
+
height: s.height,
|
|
2087
|
+
url: s.relativePath,
|
|
2088
|
+
width: s.width
|
|
2089
|
+
/**
|
|
2090
|
+
* For local development uses the base URL to construct the full URL.
|
|
2091
|
+
* url: `${this.baseUrl}/${response.relativePath}`,
|
|
2092
|
+
*/
|
|
2093
|
+
});
|
|
2094
|
+
});
|
|
2095
|
+
const i = st({
|
|
2096
|
+
asset: this.asset,
|
|
2097
|
+
baseUrl: "",
|
|
2098
|
+
extension: this.selectedFormat.extension,
|
|
2099
|
+
parameters: this.parameters,
|
|
2100
|
+
transformations: this.transformations,
|
|
2101
|
+
useSession: this.useSession
|
|
2102
|
+
});
|
|
2103
|
+
this.emit("cx-asset-link-format-change", {
|
|
2104
|
+
detail: i
|
|
2105
|
+
});
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
getCropSize() {
|
|
2109
|
+
return this.cropSize;
|
|
2110
|
+
}
|
|
2111
|
+
freezeTransformations() {
|
|
2112
|
+
this.frozenIndex = this.transformations.length - 1;
|
|
2113
|
+
}
|
|
2114
|
+
async handleTransformationsChange() {
|
|
2115
|
+
if (await this.updateComplete, !this.asset || !this.selectedFormat)
|
|
2116
|
+
return;
|
|
2117
|
+
const t = this.proxies?.find(
|
|
2118
|
+
(a) => a.id === this.selectedProxy
|
|
2119
|
+
);
|
|
2120
|
+
this.loading = !0;
|
|
2121
|
+
const e = await this.apiGetTransformAssetLink({
|
|
2122
|
+
assetId: this.asset.id,
|
|
2123
|
+
extension: this.selectedFormat.extension,
|
|
2124
|
+
format: t?.proxyName ?? "",
|
|
2125
|
+
token: this.accessToken,
|
|
2126
|
+
transformations: this.transformationString,
|
|
2127
|
+
useSession: this.useSession
|
|
2128
|
+
});
|
|
2129
|
+
if (this.loading = !1, !e?.relativePath || !this.selectedFormat)
|
|
2130
|
+
return;
|
|
2131
|
+
this.lastImageSize = {
|
|
2132
|
+
height: e.height,
|
|
2133
|
+
width: e.width
|
|
2134
|
+
}, this.resizeSize = {
|
|
2135
|
+
height: e.height,
|
|
2136
|
+
keepAspectRatio: !0,
|
|
2137
|
+
ratioHeight: 1,
|
|
2138
|
+
ratioWidth: 1,
|
|
2139
|
+
unit: o.Pixel,
|
|
2140
|
+
width: e.width
|
|
2141
|
+
}, this.cropSize = {
|
|
2142
|
+
cropMode: "free",
|
|
2143
|
+
focusMode: "manual",
|
|
2144
|
+
height: e.height,
|
|
2145
|
+
keepAspectRatio: this.cropSize.keepAspectRatio,
|
|
2146
|
+
percentageHeight: 100,
|
|
2147
|
+
percentageWidth: 100,
|
|
2148
|
+
ratioHeight: 1,
|
|
2149
|
+
ratioWidth: 1,
|
|
2150
|
+
unit: o.Pixel,
|
|
2151
|
+
width: e.width,
|
|
2152
|
+
x: 0,
|
|
2153
|
+
y: 0
|
|
2154
|
+
}, this.lastAction === c.Rotate && (this.rotation = 0), this.lastAction = void 0;
|
|
2155
|
+
const i = this.transformations.some(
|
|
2156
|
+
(a) => a.key === c.Metadata
|
|
2157
|
+
);
|
|
2158
|
+
this.selectedFormat = {
|
|
2159
|
+
...this.selectedFormat,
|
|
2160
|
+
height: e.height,
|
|
2161
|
+
keepMetadata: i,
|
|
2162
|
+
url: e.relativePath,
|
|
2163
|
+
width: e.width
|
|
2164
|
+
/**
|
|
2165
|
+
* For local development uses the base URL to construct the full URL.
|
|
2166
|
+
* url: `${this.baseUrl}/${response.relativePath}`,
|
|
2167
|
+
*/
|
|
2168
|
+
};
|
|
2169
|
+
const s = st({
|
|
2170
|
+
asset: this.asset,
|
|
2171
|
+
baseUrl: "",
|
|
2172
|
+
extension: this.selectedFormat.extension,
|
|
2173
|
+
parameters: this.parameters,
|
|
2174
|
+
transformations: this.transformations,
|
|
2175
|
+
useSession: this.useSession
|
|
2176
|
+
});
|
|
2177
|
+
this.emit("cx-asset-link-format-change", {
|
|
2178
|
+
detail: s
|
|
2179
|
+
});
|
|
2180
|
+
}
|
|
2181
|
+
handleCropperElementChange() {
|
|
2182
|
+
this.cropperElement && (this.cropperElement.resizer = this.resizeSize, this.cropperElement.cropper = this.cropSize, this.cropperElement.rotation = this.rotation, this.cropperElement.disabled = this.activeSetting !== "cx-asset-link-format-crop", this.cropperElement.addEventListener(
|
|
2183
|
+
"cx-cropper-crop-complete",
|
|
2184
|
+
this.onCropComplete
|
|
2185
|
+
), this.cropperElement.addEventListener(
|
|
2186
|
+
"cx-cropper-crop-drag-start",
|
|
2187
|
+
this.onCropDragStart
|
|
2188
|
+
), this.cropperElement.loadable = !0);
|
|
2189
|
+
}
|
|
2190
|
+
handleCropperSelectorChange() {
|
|
2191
|
+
this.forCropper && (this.cropperElement = document.getElementById(this.forCropper));
|
|
2192
|
+
}
|
|
2193
|
+
handleAssetChange() {
|
|
2194
|
+
if (!this.asset)
|
|
2195
|
+
return;
|
|
2196
|
+
this.freezeTransformations(), this.asset.width && this.asset.height && (this.defaultSize = {
|
|
2197
|
+
height: Number.parseInt(this.asset.height, 10),
|
|
2198
|
+
width: Number.parseInt(this.asset.width, 10)
|
|
2199
|
+
});
|
|
2200
|
+
const t = this.transformations.findLast(
|
|
2201
|
+
(e) => e.key === c.Quality
|
|
2202
|
+
);
|
|
2203
|
+
this.selectedFormat = {
|
|
2204
|
+
extension: this.asset.extension,
|
|
2205
|
+
height: this.defaultSize.height,
|
|
2206
|
+
keepMetadata: !1,
|
|
2207
|
+
originalUrl: this.asset.originalUrl,
|
|
2208
|
+
quality: t?.value?.quality || 100,
|
|
2209
|
+
rotation: 0,
|
|
2210
|
+
url: this.asset.imageUrl,
|
|
2211
|
+
width: this.defaultSize.width,
|
|
2212
|
+
x: 0,
|
|
2213
|
+
y: 0
|
|
2214
|
+
}, this.resizeSize = {
|
|
2215
|
+
...this.resizeSize,
|
|
2216
|
+
height: this.defaultSize.height,
|
|
2217
|
+
width: this.defaultSize.width
|
|
2218
|
+
}, this.cropSize = {
|
|
2219
|
+
cropMode: "free",
|
|
2220
|
+
focusMode: "manual",
|
|
2221
|
+
height: this.defaultSize.height,
|
|
2222
|
+
keepAspectRatio: !0,
|
|
2223
|
+
percentageHeight: 100,
|
|
2224
|
+
percentageWidth: 100,
|
|
2225
|
+
ratioHeight: 1,
|
|
2226
|
+
ratioWidth: 1,
|
|
2227
|
+
unit: o.Pixel,
|
|
2228
|
+
width: this.defaultSize.width,
|
|
2229
|
+
x: 0,
|
|
2230
|
+
y: 0
|
|
2231
|
+
}, this.rotation = 0, this.parameters = [], this.activeSetting = "cx-asset-link-format-proxy", this.selectedProxy || (this.selectedProxy = this.proxies && this.proxies.length > 0 ? this.proxies[0].id : "");
|
|
2232
|
+
}
|
|
2233
|
+
handleProxiesChange() {
|
|
2234
|
+
!this.proxies || this.proxies.length === 0 || (!this.selectedProxy || !this.proxies.some((t) => t.id === this.selectedProxy)) && (this.selectedProxy = this.proxies[0].id);
|
|
2235
|
+
}
|
|
2236
|
+
async handleSelectedProxyChange(t) {
|
|
2237
|
+
if (!this.asset || !this.selectedProxy)
|
|
2238
|
+
return;
|
|
2239
|
+
const e = this.proxies?.find(
|
|
2240
|
+
(s) => s.id === this.selectedProxy
|
|
2241
|
+
);
|
|
2242
|
+
if (!e || !this.selectedFormat)
|
|
2243
|
+
return;
|
|
2244
|
+
e.proxyName === "TRX" && (e.formatHeight = Number(this.asset.height), e.formatWidth = Number(this.asset.width));
|
|
2245
|
+
const i = this.proxies?.find((s) => s.id === t);
|
|
2246
|
+
i && (this.asset && i.proxyName === "TRX" && (i.formatHeight = Number(this.asset.height), i.formatWidth = Number(this.asset.width)), this.transformations = this.transformations.map((s) => {
|
|
2247
|
+
if (s.key === c.Crop) {
|
|
2248
|
+
const a = s.value, h = a.width / i.formatWidth * e.formatWidth, r = a.height / i.formatHeight * e.formatHeight, p = a.x / i.formatWidth * e.formatWidth, m = a.y / i.formatHeight * e.formatHeight;
|
|
2249
|
+
return {
|
|
2250
|
+
...s,
|
|
2251
|
+
value: {
|
|
2252
|
+
height: r,
|
|
2253
|
+
width: h,
|
|
2254
|
+
x: p,
|
|
2255
|
+
y: m
|
|
2256
|
+
}
|
|
2257
|
+
};
|
|
2258
|
+
}
|
|
2259
|
+
if (s.key === c.Resize) {
|
|
2260
|
+
const a = s.value, h = a.width / i.formatWidth * e.formatWidth, r = a.height / i.formatHeight * e.formatHeight;
|
|
2261
|
+
return {
|
|
2262
|
+
...s,
|
|
2263
|
+
value: {
|
|
2264
|
+
height: r,
|
|
2265
|
+
width: h
|
|
2266
|
+
}
|
|
2267
|
+
};
|
|
2268
|
+
}
|
|
2269
|
+
return s;
|
|
2270
|
+
})), this.defaultSize = {
|
|
2271
|
+
height: e.formatHeight || this.defaultSize.height,
|
|
2272
|
+
width: e.formatWidth || this.defaultSize.width
|
|
2273
|
+
}, this.selectedFormat = {
|
|
2274
|
+
...this.selectedFormat,
|
|
2275
|
+
height: this.defaultSize.height,
|
|
2276
|
+
width: this.defaultSize.width
|
|
2277
|
+
}, await this.updateComplete, this.cropSize = {
|
|
2278
|
+
cropMode: "free",
|
|
2279
|
+
focusMode: "manual",
|
|
2280
|
+
height: this.lastCropSize[o.Pixel].height,
|
|
2281
|
+
keepAspectRatio: !0,
|
|
2282
|
+
percentageHeight: 100,
|
|
2283
|
+
percentageWidth: 100,
|
|
2284
|
+
ratioHeight: 1,
|
|
2285
|
+
ratioWidth: 1,
|
|
2286
|
+
unit: o.Pixel,
|
|
2287
|
+
width: this.lastCropSize[o.Pixel].width,
|
|
2288
|
+
x: 0,
|
|
2289
|
+
y: 0
|
|
2290
|
+
}, this.resizeSize = {
|
|
2291
|
+
height: this.lastResizeSize[o.Pixel].height,
|
|
2292
|
+
keepAspectRatio: !0,
|
|
2293
|
+
ratioHeight: 1,
|
|
2294
|
+
ratioWidth: 1,
|
|
2295
|
+
unit: o.Pixel,
|
|
2296
|
+
width: this.lastResizeSize[o.Pixel].width
|
|
2297
|
+
};
|
|
2298
|
+
}
|
|
2299
|
+
async handleLoadingChange() {
|
|
2300
|
+
this.cropperElement && (this.cropperElement.loading = this.loading);
|
|
2301
|
+
}
|
|
2302
|
+
handleSelectedFormatChange() {
|
|
2303
|
+
!this.cropperElement || !this.selectedFormat?.url || (this.cropperElement.image = this.selectedFormat);
|
|
2304
|
+
}
|
|
2305
|
+
handleResizeSizeChange() {
|
|
2306
|
+
this.cropperElement && (this.cropperElement.resizer = this.resizeSize);
|
|
2307
|
+
}
|
|
2308
|
+
handleCropSizeChange() {
|
|
2309
|
+
this.cropperElement && (this.cropperElement.cropper = this.cropSize);
|
|
2310
|
+
}
|
|
2311
|
+
handleRotationChange() {
|
|
2312
|
+
this.cropperElement && (this.cropperElement.rotation = this.rotation);
|
|
2313
|
+
}
|
|
2314
|
+
handleActiveSettingChange() {
|
|
2315
|
+
this.cropperElement && (this.resizeSize = {
|
|
2316
|
+
height: this.lastResizeSize[o.Pixel].height,
|
|
2317
|
+
keepAspectRatio: !0,
|
|
2318
|
+
ratioHeight: 1,
|
|
2319
|
+
ratioWidth: 1,
|
|
2320
|
+
unit: o.Pixel,
|
|
2321
|
+
width: this.lastResizeSize[o.Pixel].width
|
|
2322
|
+
}, this.cropperElement.disabled = this.activeSetting !== "cx-asset-link-format-crop");
|
|
2323
|
+
}
|
|
2324
|
+
async handleRequestAutoCropSuggestion({
|
|
2325
|
+
cropMode: t,
|
|
2326
|
+
focusMode: e,
|
|
2327
|
+
height: i,
|
|
2328
|
+
keepAspectRatio: s,
|
|
2329
|
+
percentageHeight: a,
|
|
2330
|
+
percentageWidth: h,
|
|
2331
|
+
ratioHeight: r,
|
|
2332
|
+
ratioWidth: p,
|
|
2333
|
+
unit: m,
|
|
2334
|
+
useCropMode: u,
|
|
2335
|
+
width: x
|
|
2336
|
+
}) {
|
|
2337
|
+
if (!this.selectedFormat?.url || e === "manual")
|
|
2338
|
+
return;
|
|
2339
|
+
this.loading = !0, this.lastAction = c.Crop;
|
|
2340
|
+
const y = await this.apiGetCropFocusMode({
|
|
2341
|
+
autoCropMode: e,
|
|
2342
|
+
cropHeight: i,
|
|
2343
|
+
cropWidth: x,
|
|
2344
|
+
imageUrl: this.selectedFormat.url
|
|
2345
|
+
});
|
|
2346
|
+
if (y) {
|
|
2347
|
+
let n = a, z = h;
|
|
2348
|
+
i || (n = y.height * 100 / this.selectedFormat.height), x || (z = y.width * 100 / this.selectedFormat.width), this.cropSize = {
|
|
2349
|
+
...this.cropSize,
|
|
2350
|
+
height: y.height,
|
|
2351
|
+
percentageHeight: n ?? this.cropSize.percentageHeight,
|
|
2352
|
+
percentageWidth: z ?? this.cropSize.percentageWidth,
|
|
2353
|
+
width: y.width,
|
|
2354
|
+
x: y.x * 100 / this.selectedFormat.width,
|
|
2355
|
+
y: y.y * 100 / this.selectedFormat.height,
|
|
2356
|
+
...u ? {
|
|
2357
|
+
cropMode: e,
|
|
2358
|
+
focusMode: "manual",
|
|
2359
|
+
keepAspectRatio: !1
|
|
2360
|
+
} : {
|
|
2361
|
+
cropMode: t ?? this.cropSize.cropMode,
|
|
2362
|
+
focusMode: e
|
|
2363
|
+
},
|
|
2364
|
+
keepAspectRatio: s ?? this.cropSize.keepAspectRatio,
|
|
2365
|
+
ratioHeight: r ?? this.cropSize.ratioHeight,
|
|
2366
|
+
ratioWidth: p ?? this.cropSize.ratioWidth,
|
|
2367
|
+
unit: m ?? this.cropSize.unit
|
|
2368
|
+
};
|
|
2369
|
+
}
|
|
2370
|
+
this.loading = !1, this.lastAction = void 0;
|
|
2371
|
+
}
|
|
2372
|
+
async onCropComplete(t) {
|
|
2373
|
+
const { croppedArea: e } = t.detail, {
|
|
2374
|
+
height: i,
|
|
2375
|
+
width: s,
|
|
2376
|
+
x: a,
|
|
2377
|
+
y: h
|
|
2378
|
+
} = e, r = this.cropSize.percentageWidth !== s, p = this.cropSize.percentageHeight !== i;
|
|
2379
|
+
let m = this.cropSize.height, u = this.cropSize.width;
|
|
2380
|
+
r && (u = Math.round(s * this.selectedFormat.width / 100)), p && (m = Math.round(
|
|
2381
|
+
i * this.selectedFormat.height / 100
|
|
2382
|
+
));
|
|
2383
|
+
const x = this.cropSize.focusMode;
|
|
2384
|
+
this.focusModes.find(
|
|
2385
|
+
(n) => n.value === x
|
|
2386
|
+
)?.auto && this.selectedFormat?.url && this.cropperElement ? await this.handleRequestAutoCropSuggestion({
|
|
2387
|
+
focusMode: x,
|
|
2388
|
+
height: m,
|
|
2389
|
+
percentageHeight: i,
|
|
2390
|
+
percentageWidth: s,
|
|
2391
|
+
width: u
|
|
2392
|
+
}) : this.cropSize = {
|
|
2393
|
+
...this.cropSize,
|
|
2394
|
+
height: m,
|
|
2395
|
+
percentageHeight: i,
|
|
2396
|
+
percentageWidth: s,
|
|
2397
|
+
width: u,
|
|
2398
|
+
x: a,
|
|
2399
|
+
y: h
|
|
2400
|
+
};
|
|
2401
|
+
}
|
|
2402
|
+
onCropDragStart() {
|
|
2403
|
+
let t = this.cropSize.cropMode;
|
|
2404
|
+
const e = this.cropModes.find(
|
|
2405
|
+
(i) => i.value === t
|
|
2406
|
+
)?.auto;
|
|
2407
|
+
(this.cropSize.focusMode !== "manual" || e) && (e && (t = "free"), this.cropSize = {
|
|
2408
|
+
...this.cropSize,
|
|
2409
|
+
cropMode: t,
|
|
2410
|
+
focusMode: "manual"
|
|
2411
|
+
});
|
|
2412
|
+
}
|
|
2413
|
+
onDetailsShow(t) {
|
|
2414
|
+
const e = t.target;
|
|
2415
|
+
e.shadowRoot?.querySelector(".details") && (this.activeSetting = e.localName);
|
|
2416
|
+
}
|
|
2417
|
+
onDetailsHide(t) {
|
|
2418
|
+
this.activeSetting === t.target.localName && (this.activeSetting = "");
|
|
2419
|
+
}
|
|
2420
|
+
onProxyChange(t) {
|
|
2421
|
+
const e = t.detail;
|
|
2422
|
+
this.lastAction = c.Proxy, this.selectedProxy = e.id;
|
|
2423
|
+
}
|
|
2424
|
+
async onCropModeChange(t) {
|
|
2425
|
+
const { mode: e } = t.detail;
|
|
2426
|
+
if (this.cropModes.find((s) => s.value === e)?.auto)
|
|
2427
|
+
await this.handleRequestAutoCropSuggestion({
|
|
2428
|
+
focusMode: e,
|
|
2429
|
+
useCropMode: !0
|
|
2430
|
+
});
|
|
2431
|
+
else {
|
|
2432
|
+
const s = this.focusModes.find(
|
|
2433
|
+
(m) => m.value === this.cropSize.focusMode
|
|
2434
|
+
)?.auto;
|
|
2435
|
+
let a = this.cropSize.keepAspectRatio, h = this.cropSize.focusMode, r = this.cropSize.x, p = this.cropSize.y;
|
|
2436
|
+
e === "free" ? (a = !1, h = "manual") : this.cropSize.unit === o.Pixel && !s && (r = 0, p = 0), s ? await this.handleRequestAutoCropSuggestion({
|
|
2437
|
+
cropMode: e,
|
|
2438
|
+
focusMode: h,
|
|
2439
|
+
height: this.cropSize.height,
|
|
2440
|
+
keepAspectRatio: a,
|
|
2441
|
+
width: this.cropSize.width
|
|
2442
|
+
}) : this.cropSize = {
|
|
2443
|
+
...this.cropSize,
|
|
2444
|
+
cropMode: e,
|
|
2445
|
+
focusMode: h,
|
|
2446
|
+
keepAspectRatio: a,
|
|
2447
|
+
x: r,
|
|
2448
|
+
y: p
|
|
2449
|
+
};
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
onCropFocusModeChange(t) {
|
|
2453
|
+
const { mode: e } = t.detail;
|
|
2454
|
+
this.focusModes.find((s) => s.value === e)?.auto && this.selectedFormat?.url ? this.handleRequestAutoCropSuggestion({
|
|
2455
|
+
focusMode: e,
|
|
2456
|
+
height: this.cropSize.height,
|
|
2457
|
+
width: this.cropSize.width
|
|
2458
|
+
}) : this.cropSize = {
|
|
2459
|
+
...this.cropSize,
|
|
2460
|
+
focusMode: e
|
|
2461
|
+
};
|
|
2462
|
+
}
|
|
2463
|
+
async onCropChange(t) {
|
|
2464
|
+
const e = this.cropSize.unit;
|
|
2465
|
+
if (t.detail.unit === o.AspectRatio) {
|
|
2466
|
+
const i = t.detail.width / t.detail.height, s = Math.min(
|
|
2467
|
+
Math.max(Math.round(this.cropSize.height * i), 1),
|
|
2468
|
+
this.resizeSize.width
|
|
2469
|
+
), a = Math.min(
|
|
2470
|
+
Math.max(Math.round(s / i), 1),
|
|
2471
|
+
this.resizeSize.height
|
|
2472
|
+
), h = a * 100 / this.selectedFormat.height, r = s * 100 / this.selectedFormat.width;
|
|
2473
|
+
let p = this.cropSize.x, m = this.cropSize.y;
|
|
2474
|
+
p + r > 100 && (p = 100 - r), m + h > 100 && (m = 100 - h);
|
|
2475
|
+
let u = this.cropSize.cropMode;
|
|
2476
|
+
this.cropModes.find(
|
|
2477
|
+
(y) => y.value === u
|
|
2478
|
+
)?.auto && (u = "free"), t.detail.silent ? (this.cropSize.height = a, this.cropSize.keepAspectRatio = t.detail.keepAspectRatio, this.cropSize.percentageHeight = h, this.cropSize.percentageWidth = r, this.cropSize.ratioHeight = t.detail.height, this.cropSize.ratioWidth = t.detail.width, this.cropSize.unit = o.AspectRatio, this.cropSize.width = s) : this.cropSize = {
|
|
2479
|
+
...this.cropSize,
|
|
2480
|
+
cropMode: u,
|
|
2481
|
+
height: a,
|
|
2482
|
+
keepAspectRatio: t.detail.keepAspectRatio,
|
|
2483
|
+
percentageHeight: h,
|
|
2484
|
+
percentageWidth: r,
|
|
2485
|
+
ratioHeight: t.detail.height,
|
|
2486
|
+
ratioWidth: t.detail.width,
|
|
2487
|
+
unit: o.AspectRatio,
|
|
2488
|
+
width: s,
|
|
2489
|
+
x: p,
|
|
2490
|
+
y: m
|
|
2491
|
+
};
|
|
2492
|
+
} else {
|
|
2493
|
+
const i = this.selectedFormat ? t.detail.height * 100 / this.selectedFormat.height : 100, s = this.selectedFormat ? t.detail.width * 100 / this.selectedFormat.width : 100;
|
|
2494
|
+
let a = this.cropSize.x, h = this.cropSize.y;
|
|
2495
|
+
a + s > 100 && (a = 100 - s), h + i > 100 && (h = 100 - i);
|
|
2496
|
+
let r = this.cropSize.cropMode;
|
|
2497
|
+
const p = this.cropModes.find(
|
|
2498
|
+
(m) => m.value === r
|
|
2499
|
+
)?.auto;
|
|
2500
|
+
(t.detail.breakAspectRatio || p) && (r = "free"), t.detail.silent ? (this.cropSize.cropMode = r, this.cropSize.height = t.detail.height, this.cropSize.keepAspectRatio = t.detail.keepAspectRatio, this.cropSize.percentageHeight = i, this.cropSize.percentageWidth = s, this.cropSize.unit = o.Pixel, this.cropSize.width = t.detail.width, this.cropSize.x = a, this.cropSize.y = h) : this.cropSize = {
|
|
2501
|
+
...this.cropSize,
|
|
2502
|
+
cropMode: r,
|
|
2503
|
+
height: t.detail.height,
|
|
2504
|
+
keepAspectRatio: t.detail.keepAspectRatio,
|
|
2505
|
+
percentageHeight: i,
|
|
2506
|
+
percentageWidth: s,
|
|
2507
|
+
unit: o.Pixel,
|
|
2508
|
+
width: t.detail.width,
|
|
2509
|
+
x: a,
|
|
2510
|
+
y: h
|
|
2511
|
+
};
|
|
2512
|
+
}
|
|
2513
|
+
e !== this.cropSize.unit && (this.cropSize = {
|
|
2514
|
+
...this.cropSize,
|
|
2515
|
+
cropMode: "free"
|
|
2516
|
+
}, this.onCropChanged());
|
|
2517
|
+
}
|
|
2518
|
+
async onCropChanged() {
|
|
2519
|
+
this.focusModes.find(
|
|
2520
|
+
(e) => e.value === this.cropSize.focusMode
|
|
2521
|
+
)?.auto && await this.handleRequestAutoCropSuggestion({
|
|
2522
|
+
focusMode: this.cropSize.focusMode,
|
|
2523
|
+
height: this.cropSize.height,
|
|
2524
|
+
width: this.cropSize.width
|
|
2525
|
+
});
|
|
2526
|
+
}
|
|
2527
|
+
onCropApply(t) {
|
|
2528
|
+
const { height: e, mode: i, unit: s, width: a } = t.detail;
|
|
2529
|
+
if (this.lastAction = c.Crop, !(!this.cropperElement || !this.selectedFormat))
|
|
2530
|
+
if (e && a && s) {
|
|
2531
|
+
let h = a, r = e;
|
|
2532
|
+
if (s === o.AspectRatio && (h = this.cropSize.percentageWidth * this.selectedFormat.width / 100, r = this.cropSize.percentageHeight * this.selectedFormat.height / 100), i)
|
|
2533
|
+
this.transformations = [
|
|
2534
|
+
...this.transformations,
|
|
2535
|
+
{
|
|
2536
|
+
key: c.Crop,
|
|
2537
|
+
value: {
|
|
2538
|
+
height: r,
|
|
2539
|
+
mode: i,
|
|
2540
|
+
width: h
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2543
|
+
];
|
|
2544
|
+
else {
|
|
2545
|
+
const p = this.cropSize.x / 100 * this.selectedFormat.width, m = this.cropSize.y / 100 * this.selectedFormat.height;
|
|
2546
|
+
this.transformations = [
|
|
2547
|
+
...this.transformations,
|
|
2548
|
+
{
|
|
2549
|
+
key: c.Crop,
|
|
2550
|
+
value: {
|
|
2551
|
+
height: r,
|
|
2552
|
+
unit: s,
|
|
2553
|
+
width: h,
|
|
2554
|
+
x: p,
|
|
2555
|
+
y: m
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
];
|
|
2559
|
+
}
|
|
2560
|
+
} else i && (this.transformations = [
|
|
2561
|
+
...this.transformations,
|
|
2562
|
+
{
|
|
2563
|
+
key: c.Crop,
|
|
2564
|
+
value: {
|
|
2565
|
+
mode: i
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2568
|
+
]);
|
|
2569
|
+
}
|
|
2570
|
+
onResizeChange(t) {
|
|
2571
|
+
if (t.detail.unit === o.AspectRatio) {
|
|
2572
|
+
const e = t.detail.width / t.detail.height, i = Math.max(
|
|
2573
|
+
Math.round(this.lastResizeSize[o.Pixel].height * e),
|
|
2574
|
+
1
|
|
2575
|
+
), s = Math.max(Math.round(i / e), 1);
|
|
2576
|
+
this.resizeSize = {
|
|
2577
|
+
...this.resizeSize,
|
|
2578
|
+
height: s,
|
|
2579
|
+
keepAspectRatio: t.detail.keepAspectRatio,
|
|
2580
|
+
ratioHeight: t.detail.height,
|
|
2581
|
+
ratioWidth: t.detail.width,
|
|
2582
|
+
unit: t.detail.unit,
|
|
2583
|
+
width: i
|
|
2584
|
+
};
|
|
2585
|
+
} else
|
|
2586
|
+
this.resizeSize = {
|
|
2587
|
+
...this.resizeSize,
|
|
2588
|
+
height: Math.max(t.detail.height, 1),
|
|
2589
|
+
keepAspectRatio: t.detail.keepAspectRatio,
|
|
2590
|
+
unit: t.detail.unit,
|
|
2591
|
+
width: Math.max(t.detail.width, 1)
|
|
2592
|
+
};
|
|
2593
|
+
}
|
|
2594
|
+
onResizeApply(t) {
|
|
2595
|
+
if (!this.selectedFormat)
|
|
2596
|
+
return;
|
|
2597
|
+
const { height: e, unit: i, width: s } = t.detail;
|
|
2598
|
+
this.lastAction = c.Resize;
|
|
2599
|
+
const a = this.selectedFormat.width || this.defaultSize.width, h = this.selectedFormat.height || this.defaultSize.height;
|
|
2600
|
+
let r = s, p = e;
|
|
2601
|
+
this.resizeSize.unit !== i ? (r = a, p = h) : i === o.AspectRatio && (r = Math.round(s / e * h), p = h), this.transformations = [
|
|
2602
|
+
...this.transformations,
|
|
2603
|
+
{
|
|
2604
|
+
key: c.Resize,
|
|
2605
|
+
value: {
|
|
2606
|
+
height: p,
|
|
2607
|
+
unit: i,
|
|
2608
|
+
width: r
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2611
|
+
];
|
|
2612
|
+
}
|
|
2613
|
+
onRotationChange(t) {
|
|
2614
|
+
this.rotation = t.detail;
|
|
2615
|
+
}
|
|
2616
|
+
onRotationApply(t) {
|
|
2617
|
+
if (!this.selectedFormat)
|
|
2618
|
+
return;
|
|
2619
|
+
const e = t.detail;
|
|
2620
|
+
this.lastAction = c.Rotate, this.transformations = [
|
|
2621
|
+
...this.transformations,
|
|
2622
|
+
{
|
|
2623
|
+
key: c.Rotate,
|
|
2624
|
+
value: {
|
|
2625
|
+
rotation: e
|
|
2626
|
+
}
|
|
2627
|
+
}
|
|
2628
|
+
];
|
|
2629
|
+
}
|
|
2630
|
+
onQualityChange(t) {
|
|
2631
|
+
if (!this.selectedFormat)
|
|
2632
|
+
return;
|
|
2633
|
+
const e = t.detail;
|
|
2634
|
+
this.selectedFormat.quality = e, this.lastAction = c.Quality, this.transformations = [
|
|
2635
|
+
...this.transformations,
|
|
2636
|
+
{
|
|
2637
|
+
key: c.Quality,
|
|
2638
|
+
value: {
|
|
2639
|
+
quality: e
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
];
|
|
2643
|
+
}
|
|
2644
|
+
onMetadataChange(t) {
|
|
2645
|
+
if (!this.selectedFormat)
|
|
2646
|
+
return;
|
|
2647
|
+
const e = t.detail;
|
|
2648
|
+
this.selectedFormat = {
|
|
2649
|
+
...this.selectedFormat,
|
|
2650
|
+
keepMetadata: e
|
|
2651
|
+
}, e ? this.transformations = [
|
|
2652
|
+
...this.transformations.filter(
|
|
2653
|
+
(i) => i.key !== c.Metadata
|
|
2654
|
+
),
|
|
2655
|
+
{
|
|
2656
|
+
key: c.Metadata,
|
|
2657
|
+
value: {
|
|
2658
|
+
keepMetadata: e
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
] : this.transformations = this.transformations.filter(
|
|
2662
|
+
(i) => i.key !== c.Metadata
|
|
2663
|
+
);
|
|
2664
|
+
}
|
|
2665
|
+
onExtensionChange(t) {
|
|
2666
|
+
if (!this.selectedFormat)
|
|
2667
|
+
return;
|
|
2668
|
+
const e = t.detail;
|
|
2669
|
+
this.selectedFormat = {
|
|
2670
|
+
...this.selectedFormat,
|
|
2671
|
+
extension: e
|
|
2672
|
+
};
|
|
2673
|
+
}
|
|
2674
|
+
handleUndo() {
|
|
2675
|
+
this.transformations = this.transformations.slice(0, -1);
|
|
2676
|
+
const t = this.transformations.findLast(
|
|
2677
|
+
(e) => e.key === c.Quality
|
|
2678
|
+
)?.value?.quality;
|
|
2679
|
+
this.selectedFormat && (this.selectedFormat = {
|
|
2680
|
+
...this.selectedFormat,
|
|
2681
|
+
quality: t ?? 100
|
|
2682
|
+
});
|
|
2683
|
+
}
|
|
2684
|
+
render() {
|
|
2685
|
+
return A`<div
|
|
2686
|
+
class="asset-link-format"
|
|
2687
|
+
@cx-show=${this.onDetailsShow}
|
|
2688
|
+
@cx-hide=${this.onDetailsHide}
|
|
2689
|
+
>
|
|
2690
|
+
<cx-space
|
|
2691
|
+
class="asset-link-format__section-header"
|
|
2692
|
+
direction="horizontal"
|
|
2693
|
+
spacing="small"
|
|
2694
|
+
align-items="center"
|
|
2695
|
+
justify-content="space-between"
|
|
2696
|
+
>
|
|
2697
|
+
<cx-typography variant="body3">
|
|
2698
|
+
${this.localize.term("transformations")}
|
|
2699
|
+
</cx-typography>
|
|
2700
|
+
<cx-button
|
|
2701
|
+
class="asset-link-format__undo"
|
|
2702
|
+
variant="custom"
|
|
2703
|
+
?disabled=${this.transformations.length === 0 || this.frozenIndex !== void 0 && this.frozenIndex >= this.transformations.length - 1}
|
|
2704
|
+
@click=${this.handleUndo}
|
|
2705
|
+
>
|
|
2706
|
+
${this.localize.term("undo")}
|
|
2707
|
+
</cx-button>
|
|
2708
|
+
</cx-space>
|
|
2709
|
+
<cx-asset-link-format-proxy
|
|
2710
|
+
class="asset-link-format__details"
|
|
2711
|
+
?open=${this.activeSetting === "cx-asset-link-format-proxy"}
|
|
2712
|
+
.items=${this.formats}
|
|
2713
|
+
.value=${this.selectedProxy}
|
|
2714
|
+
?loading=${this.loading && this.lastAction === c.Proxy}
|
|
2715
|
+
@cx-asset-link-format-proxy-change=${this.onProxyChange}
|
|
2716
|
+
></cx-asset-link-format-proxy>
|
|
2717
|
+
<cx-asset-link-format-crop
|
|
2718
|
+
class="asset-link-format__details"
|
|
2719
|
+
?open=${this.activeSetting === "cx-asset-link-format-crop"}
|
|
2720
|
+
?disabled-apply=${this.disabledCropApply}
|
|
2721
|
+
?loading=${this.loading && this.lastAction === c.Crop}
|
|
2722
|
+
?keep-aspect-ratio=${this.cropSize.keepAspectRatio}
|
|
2723
|
+
focus-mode=${this.cropSize.focusMode}
|
|
2724
|
+
crop-mode=${this.cropSize.cropMode}
|
|
2725
|
+
width=${this.cropSize.width}
|
|
2726
|
+
height=${this.cropSize.height}
|
|
2727
|
+
max-width=${this.lastResizeSize[o.Pixel].width}
|
|
2728
|
+
max-height=${this.lastResizeSize[o.Pixel].height}
|
|
2729
|
+
percentage-width=${this.cropSize.percentageWidth}
|
|
2730
|
+
percentage-height=${this.cropSize.percentageHeight}
|
|
2731
|
+
ratio-width=${this.cropSize.ratioWidth}
|
|
2732
|
+
ratio-height=${this.cropSize.ratioHeight}
|
|
2733
|
+
unit=${this.cropSize.unit}
|
|
2734
|
+
.lastAppliedSetting=${this.lastCropSize}
|
|
2735
|
+
.cropModes=${this.cropModes}
|
|
2736
|
+
.focusModes=${this.focusModes}
|
|
2737
|
+
@cx-asset-link-format-crop-mode-change=${this.onCropModeChange}
|
|
2738
|
+
@cx-asset-link-format-crop-focus-mode-change=${this.onCropFocusModeChange}
|
|
2739
|
+
@cx-asset-link-format-crop-change=${this.onCropChange}
|
|
2740
|
+
@cx-asset-link-format-crop-changed=${this.onCropChanged}
|
|
2741
|
+
@cx-asset-link-format-crop-apply=${this.onCropApply}
|
|
2742
|
+
></cx-asset-link-format-crop>
|
|
2743
|
+
<cx-asset-link-format-resize
|
|
2744
|
+
class="asset-link-format__details"
|
|
2745
|
+
?open=${this.activeSetting === "cx-asset-link-format-resize"}
|
|
2746
|
+
?loading=${this.loading && this.lastAction === c.Resize}
|
|
2747
|
+
?keep-aspect-ratio=${this.resizeSize.keepAspectRatio}
|
|
2748
|
+
width=${this.resizeSize.width}
|
|
2749
|
+
height=${this.resizeSize.height}
|
|
2750
|
+
max-width=${this.imageSize.width}
|
|
2751
|
+
max-height=${this.imageSize.height}
|
|
2752
|
+
ratio-width=${this.resizeSize.ratioWidth}
|
|
2753
|
+
ratio-height=${this.resizeSize.ratioHeight}
|
|
2754
|
+
unit=${this.resizeSize.unit}
|
|
2755
|
+
.lastAppliedSetting=${this.lastResizeSize}
|
|
2756
|
+
@cx-asset-link-format-resize-change=${this.onResizeChange}
|
|
2757
|
+
@cx-asset-link-format-resize-apply=${this.onResizeApply}
|
|
2758
|
+
></cx-asset-link-format-resize>
|
|
2759
|
+
<cx-asset-link-format-rotation
|
|
2760
|
+
class="asset-link-format__details"
|
|
2761
|
+
?loading=${this.loading && this.lastAction === c.Rotate}
|
|
2762
|
+
?open=${this.activeSetting === "cx-asset-link-format-rotation"}
|
|
2763
|
+
value=${this.rotation}
|
|
2764
|
+
@cx-asset-link-format-rotation-change=${this.onRotationChange}
|
|
2765
|
+
@cx-asset-link-format-rotation-apply=${this.onRotationApply}
|
|
2766
|
+
></cx-asset-link-format-rotation>
|
|
2767
|
+
<cx-asset-link-format-quality
|
|
2768
|
+
class="asset-link-format__details"
|
|
2769
|
+
?loading=${this.loading && this.lastAction === c.Quality}
|
|
2770
|
+
?open=${this.activeSetting === "cx-asset-link-format-quality"}
|
|
2771
|
+
value=${this.selectedFormat?.quality ?? 100}
|
|
2772
|
+
@cx-asset-link-format-quality-change=${this.onQualityChange}
|
|
2773
|
+
></cx-asset-link-format-quality>
|
|
2774
|
+
<cx-asset-link-format-metadata
|
|
2775
|
+
class="asset-link-format__details"
|
|
2776
|
+
?open=${this.activeSetting === "cx-asset-link-format-metadata"}
|
|
2777
|
+
.value=${this.selectedFormat?.keepMetadata ?? !1}
|
|
2778
|
+
@cx-asset-link-format-metadata-change=${this.onMetadataChange}
|
|
2779
|
+
>
|
|
2780
|
+
</cx-asset-link-format-metadata>
|
|
2781
|
+
${at(
|
|
2782
|
+
this.useCustomExtension,
|
|
2783
|
+
() => A`
|
|
2784
|
+
<cx-asset-link-format-extension
|
|
2785
|
+
.items=${this.extensions}
|
|
2786
|
+
value=${this.selectedFormat?.extension ?? ""}
|
|
2787
|
+
@cx-asset-link-format-extension-change=${this.onExtensionChange}
|
|
2788
|
+
></cx-asset-link-format-extension>
|
|
2789
|
+
`
|
|
2790
|
+
)}
|
|
2791
|
+
</div>`;
|
|
2792
|
+
}
|
|
2793
|
+
};
|
|
2794
|
+
d.styles = [O, Dt];
|
|
2795
|
+
d.dependencies = {
|
|
2796
|
+
"cx-asset-link-format-crop": g,
|
|
2797
|
+
"cx-asset-link-format-extension": L,
|
|
2798
|
+
"cx-asset-link-format-metadata": H,
|
|
2799
|
+
"cx-asset-link-format-proxy": $,
|
|
2800
|
+
"cx-asset-link-format-quality": R,
|
|
2801
|
+
"cx-asset-link-format-resize": w,
|
|
2802
|
+
"cx-asset-link-format-rotation": _,
|
|
2803
|
+
"cx-button": U,
|
|
2804
|
+
"cx-space": E,
|
|
2805
|
+
"cx-typography": W
|
|
2806
|
+
};
|
|
2807
|
+
f([
|
|
2808
|
+
l({ attribute: "base-url", reflect: !0, type: String })
|
|
2809
|
+
], d.prototype, "baseUrl", 2);
|
|
2810
|
+
f([
|
|
2811
|
+
l({ attribute: "access-token", reflect: !1, type: String })
|
|
2812
|
+
], d.prototype, "accessToken", 2);
|
|
2813
|
+
f([
|
|
2814
|
+
l({ reflect: !1, type: Object })
|
|
2815
|
+
], d.prototype, "asset", 2);
|
|
2816
|
+
f([
|
|
2817
|
+
l({ attribute: "crop-modes", reflect: !1, type: Array })
|
|
2818
|
+
], d.prototype, "cropModes", 2);
|
|
2819
|
+
f([
|
|
2820
|
+
l({ attribute: "focus-modes", reflect: !1, type: Object })
|
|
2821
|
+
], d.prototype, "focusModes", 2);
|
|
2822
|
+
f([
|
|
2823
|
+
l({ reflect: !1, type: Array })
|
|
2824
|
+
], d.prototype, "extensions", 2);
|
|
2825
|
+
f([
|
|
2826
|
+
l({ reflect: !1, type: Array })
|
|
2827
|
+
], d.prototype, "proxies", 2);
|
|
2828
|
+
f([
|
|
2829
|
+
l({ attribute: "for-cropper", reflect: !0, type: String })
|
|
2830
|
+
], d.prototype, "forCropper", 2);
|
|
2831
|
+
f([
|
|
2832
|
+
l({ attribute: "use-session", reflect: !0, type: String })
|
|
2833
|
+
], d.prototype, "useSession", 2);
|
|
2834
|
+
f([
|
|
2835
|
+
l({ reflect: !1, type: Array })
|
|
2836
|
+
], d.prototype, "transformations", 2);
|
|
2837
|
+
f([
|
|
2838
|
+
l({ attribute: "selected-proxy", reflect: !0, type: String })
|
|
2839
|
+
], d.prototype, "selectedProxy", 2);
|
|
2840
|
+
f([
|
|
2841
|
+
l({ attribute: "use-custom-extension", reflect: !0, type: Boolean })
|
|
2842
|
+
], d.prototype, "useCustomExtension", 2);
|
|
2843
|
+
f([
|
|
2844
|
+
l({ attribute: "last-image-size", reflect: !1, type: Object })
|
|
2845
|
+
], d.prototype, "lastImageSize", 2);
|
|
2846
|
+
f([
|
|
2847
|
+
v()
|
|
2848
|
+
], d.prototype, "activeSetting", 2);
|
|
2849
|
+
f([
|
|
2850
|
+
v()
|
|
2851
|
+
], d.prototype, "selectedFormat", 2);
|
|
2852
|
+
f([
|
|
2853
|
+
v()
|
|
2854
|
+
], d.prototype, "resizeSize", 2);
|
|
2855
|
+
f([
|
|
2856
|
+
v()
|
|
2857
|
+
], d.prototype, "cropSize", 2);
|
|
2858
|
+
f([
|
|
2859
|
+
v()
|
|
2860
|
+
], d.prototype, "rotation", 2);
|
|
2861
|
+
f([
|
|
2862
|
+
v()
|
|
2863
|
+
], d.prototype, "defaultSize", 2);
|
|
2864
|
+
f([
|
|
2865
|
+
v()
|
|
2866
|
+
], d.prototype, "cropperElement", 2);
|
|
2867
|
+
f([
|
|
2868
|
+
v()
|
|
2869
|
+
], d.prototype, "parameters", 2);
|
|
2870
|
+
f([
|
|
2871
|
+
v()
|
|
2872
|
+
], d.prototype, "loading", 2);
|
|
2873
|
+
f([
|
|
2874
|
+
v()
|
|
2875
|
+
], d.prototype, "lastAction", 2);
|
|
2876
|
+
f([
|
|
2877
|
+
v()
|
|
2878
|
+
], d.prototype, "frozenIndex", 2);
|
|
2879
|
+
f([
|
|
2880
|
+
k(["transformations"])
|
|
2881
|
+
], d.prototype, "handleTransformationsChange", 1);
|
|
2882
|
+
f([
|
|
2883
|
+
k("selectedProxy")
|
|
2884
|
+
], d.prototype, "handleSelectedProxyChange", 1);
|
|
2885
|
+
f([
|
|
2886
|
+
k("loading")
|
|
2887
|
+
], d.prototype, "handleLoadingChange", 1);
|
|
2888
|
+
d = f([
|
|
2889
|
+
T("cx-asset-link-format")
|
|
2890
|
+
], d);
|
|
2891
|
+
export {
|
|
2892
|
+
d as C,
|
|
2893
|
+
dt as D,
|
|
2894
|
+
Fe as a,
|
|
2895
|
+
Ee as b,
|
|
2896
|
+
He as c,
|
|
2897
|
+
_t as f,
|
|
2898
|
+
pt as t,
|
|
2899
|
+
We as u
|
|
2900
|
+
};
|