@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,3460 @@
|
|
|
1
|
+
import { i as at, n as f, C as rt, x as F, c as ut } from "../chunks/custom-element.fmLrnDZr.js";
|
|
2
|
+
import { c as lt } from "../chunks/component.styles.DtouHn2g.js";
|
|
3
|
+
import { f as ot } from "../chunks/form-control.styles.j0hNjZTU.js";
|
|
4
|
+
import { d as ht } from "../chunks/default-value.BrNrMtnz.js";
|
|
5
|
+
import { F as pt } from "../chunks/form.BFLbw9Rz.js";
|
|
6
|
+
import { L as ct } from "../chunks/i18n.C6c6_pqI.js";
|
|
7
|
+
import { H as dt } from "../chunks/slot.DJLm4Dig.js";
|
|
8
|
+
import { w as T } from "../chunks/watch.BCJD77bD.js";
|
|
9
|
+
import { r as j } from "../chunks/state.Dt9F_SuS.js";
|
|
10
|
+
import { e as K } from "../chunks/query.BBf1UFkC.js";
|
|
11
|
+
import { e as z } from "../chunks/class-map.DqNfBvJI.js";
|
|
12
|
+
import { o as _ } from "../chunks/if-defined.CKupVaWs.js";
|
|
13
|
+
import { l as ft } from "../chunks/live.DCdtYl87.js";
|
|
14
|
+
import { n as mt } from "../chunks/when.Dr1es41R.js";
|
|
15
|
+
import gt from "./icon.js";
|
|
16
|
+
function w(a) {
|
|
17
|
+
return typeof a == "string" || a instanceof String;
|
|
18
|
+
}
|
|
19
|
+
function Y(a) {
|
|
20
|
+
var t;
|
|
21
|
+
return typeof a == "object" && a != null && (a == null || (t = a.constructor) == null ? void 0 : t.name) === "Object";
|
|
22
|
+
}
|
|
23
|
+
function X(a, t) {
|
|
24
|
+
return Array.isArray(t) ? X(a, (e, i) => t.includes(i)) : Object.entries(a).reduce((e, i) => {
|
|
25
|
+
let [s, n] = i;
|
|
26
|
+
return t(n, s) && (e[s] = n), e;
|
|
27
|
+
}, {});
|
|
28
|
+
}
|
|
29
|
+
const h = {
|
|
30
|
+
NONE: "NONE",
|
|
31
|
+
LEFT: "LEFT",
|
|
32
|
+
FORCE_LEFT: "FORCE_LEFT",
|
|
33
|
+
RIGHT: "RIGHT",
|
|
34
|
+
FORCE_RIGHT: "FORCE_RIGHT"
|
|
35
|
+
};
|
|
36
|
+
function _t(a) {
|
|
37
|
+
switch (a) {
|
|
38
|
+
case h.LEFT:
|
|
39
|
+
return h.FORCE_LEFT;
|
|
40
|
+
case h.RIGHT:
|
|
41
|
+
return h.FORCE_RIGHT;
|
|
42
|
+
default:
|
|
43
|
+
return a;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function U(a) {
|
|
47
|
+
return a.replace(/([.*+?^=!:${}()|[\]/\\])/g, "\\$1");
|
|
48
|
+
}
|
|
49
|
+
function D(a, t) {
|
|
50
|
+
if (t === a) return !0;
|
|
51
|
+
const e = Array.isArray(t), i = Array.isArray(a);
|
|
52
|
+
let s;
|
|
53
|
+
if (e && i) {
|
|
54
|
+
if (t.length != a.length) return !1;
|
|
55
|
+
for (s = 0; s < t.length; s++) if (!D(t[s], a[s])) return !1;
|
|
56
|
+
return !0;
|
|
57
|
+
}
|
|
58
|
+
if (e != i) return !1;
|
|
59
|
+
if (t && a && typeof t == "object" && typeof a == "object") {
|
|
60
|
+
const n = t instanceof Date, r = a instanceof Date;
|
|
61
|
+
if (n && r) return t.getTime() == a.getTime();
|
|
62
|
+
if (n != r) return !1;
|
|
63
|
+
const u = t instanceof RegExp, l = a instanceof RegExp;
|
|
64
|
+
if (u && l) return t.toString() == a.toString();
|
|
65
|
+
if (u != l) return !1;
|
|
66
|
+
const c = Object.keys(t);
|
|
67
|
+
for (s = 0; s < c.length; s++) if (!Object.prototype.hasOwnProperty.call(a, c[s])) return !1;
|
|
68
|
+
for (s = 0; s < c.length; s++) if (!D(a[c[s]], t[c[s]])) return !1;
|
|
69
|
+
return !0;
|
|
70
|
+
} else if (t && a && typeof t == "function" && typeof a == "function")
|
|
71
|
+
return t.toString() === a.toString();
|
|
72
|
+
return !1;
|
|
73
|
+
}
|
|
74
|
+
class kt {
|
|
75
|
+
/** Current input value */
|
|
76
|
+
/** Current cursor position */
|
|
77
|
+
/** Old input value */
|
|
78
|
+
/** Old selection */
|
|
79
|
+
constructor(t) {
|
|
80
|
+
for (Object.assign(this, t); this.value.slice(0, this.startChangePos) !== this.oldValue.slice(0, this.startChangePos); )
|
|
81
|
+
--this.oldSelection.start;
|
|
82
|
+
if (this.insertedCount)
|
|
83
|
+
for (; this.value.slice(this.cursorPos) !== this.oldValue.slice(this.oldSelection.end); )
|
|
84
|
+
this.value.length - this.cursorPos < this.oldValue.length - this.oldSelection.end ? ++this.oldSelection.end : ++this.cursorPos;
|
|
85
|
+
}
|
|
86
|
+
/** Start changing position */
|
|
87
|
+
get startChangePos() {
|
|
88
|
+
return Math.min(this.cursorPos, this.oldSelection.start);
|
|
89
|
+
}
|
|
90
|
+
/** Inserted symbols count */
|
|
91
|
+
get insertedCount() {
|
|
92
|
+
return this.cursorPos - this.startChangePos;
|
|
93
|
+
}
|
|
94
|
+
/** Inserted symbols */
|
|
95
|
+
get inserted() {
|
|
96
|
+
return this.value.substr(this.startChangePos, this.insertedCount);
|
|
97
|
+
}
|
|
98
|
+
/** Removed symbols count */
|
|
99
|
+
get removedCount() {
|
|
100
|
+
return Math.max(this.oldSelection.end - this.startChangePos || // for Delete
|
|
101
|
+
this.oldValue.length - this.value.length, 0);
|
|
102
|
+
}
|
|
103
|
+
/** Removed symbols */
|
|
104
|
+
get removed() {
|
|
105
|
+
return this.oldValue.substr(this.startChangePos, this.removedCount);
|
|
106
|
+
}
|
|
107
|
+
/** Unchanged head symbols */
|
|
108
|
+
get head() {
|
|
109
|
+
return this.value.substring(0, this.startChangePos);
|
|
110
|
+
}
|
|
111
|
+
/** Unchanged tail symbols */
|
|
112
|
+
get tail() {
|
|
113
|
+
return this.value.substring(this.startChangePos + this.insertedCount);
|
|
114
|
+
}
|
|
115
|
+
/** Remove direction */
|
|
116
|
+
get removeDirection() {
|
|
117
|
+
return !this.removedCount || this.insertedCount ? h.NONE : (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) && // if not range removed (event with backspace)
|
|
118
|
+
this.oldSelection.end === this.oldSelection.start ? h.RIGHT : h.LEFT;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function d(a, t) {
|
|
122
|
+
return new d.InputMask(a, t);
|
|
123
|
+
}
|
|
124
|
+
function W(a) {
|
|
125
|
+
if (a == null) throw new Error("mask property should be defined");
|
|
126
|
+
return a instanceof RegExp ? d.MaskedRegExp : w(a) ? d.MaskedPattern : a === Date ? d.MaskedDate : a === Number ? d.MaskedNumber : Array.isArray(a) || a === Array ? d.MaskedDynamic : d.Masked && a.prototype instanceof d.Masked ? a : d.Masked && a instanceof d.Masked ? a.constructor : a instanceof Function ? d.MaskedFunction : (console.warn("Mask not found for mask", a), d.Masked);
|
|
127
|
+
}
|
|
128
|
+
function I(a) {
|
|
129
|
+
if (!a) throw new Error("Options in not defined");
|
|
130
|
+
if (d.Masked) {
|
|
131
|
+
if (a.prototype instanceof d.Masked) return {
|
|
132
|
+
mask: a
|
|
133
|
+
};
|
|
134
|
+
const {
|
|
135
|
+
mask: t = void 0,
|
|
136
|
+
...e
|
|
137
|
+
} = a instanceof d.Masked ? {
|
|
138
|
+
mask: a
|
|
139
|
+
} : Y(a) && a.mask instanceof d.Masked ? a : {};
|
|
140
|
+
if (t) {
|
|
141
|
+
const i = t.mask;
|
|
142
|
+
return {
|
|
143
|
+
...X(t, (s, n) => !n.startsWith("_")),
|
|
144
|
+
mask: t.constructor,
|
|
145
|
+
_mask: i,
|
|
146
|
+
...e
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return Y(a) ? {
|
|
151
|
+
...a
|
|
152
|
+
} : {
|
|
153
|
+
mask: a
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function A(a) {
|
|
157
|
+
if (d.Masked && a instanceof d.Masked) return a;
|
|
158
|
+
const t = I(a), e = W(t.mask);
|
|
159
|
+
if (!e) throw new Error("Masked class is not found for provided mask " + t.mask + ", appropriate module needs to be imported manually before creating mask.");
|
|
160
|
+
return t.mask === e && delete t.mask, t._mask && (t.mask = t._mask, delete t._mask), new e(t);
|
|
161
|
+
}
|
|
162
|
+
d.createMask = A;
|
|
163
|
+
class q {
|
|
164
|
+
/** */
|
|
165
|
+
/** */
|
|
166
|
+
/** */
|
|
167
|
+
/** Safely returns selection start */
|
|
168
|
+
get selectionStart() {
|
|
169
|
+
let t;
|
|
170
|
+
try {
|
|
171
|
+
t = this._unsafeSelectionStart;
|
|
172
|
+
} catch {
|
|
173
|
+
}
|
|
174
|
+
return t ?? this.value.length;
|
|
175
|
+
}
|
|
176
|
+
/** Safely returns selection end */
|
|
177
|
+
get selectionEnd() {
|
|
178
|
+
let t;
|
|
179
|
+
try {
|
|
180
|
+
t = this._unsafeSelectionEnd;
|
|
181
|
+
} catch {
|
|
182
|
+
}
|
|
183
|
+
return t ?? this.value.length;
|
|
184
|
+
}
|
|
185
|
+
/** Safely sets element selection */
|
|
186
|
+
select(t, e) {
|
|
187
|
+
if (!(t == null || e == null || t === this.selectionStart && e === this.selectionEnd))
|
|
188
|
+
try {
|
|
189
|
+
this._unsafeSelect(t, e);
|
|
190
|
+
} catch {
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
/** */
|
|
194
|
+
get isActive() {
|
|
195
|
+
return !1;
|
|
196
|
+
}
|
|
197
|
+
/** */
|
|
198
|
+
/** */
|
|
199
|
+
/** */
|
|
200
|
+
}
|
|
201
|
+
d.MaskElement = q;
|
|
202
|
+
const Z = 90, vt = 89;
|
|
203
|
+
class R extends q {
|
|
204
|
+
/** HTMLElement to use mask on */
|
|
205
|
+
constructor(t) {
|
|
206
|
+
super(), this.input = t, this._onKeydown = this._onKeydown.bind(this), this._onInput = this._onInput.bind(this), this._onBeforeinput = this._onBeforeinput.bind(this), this._onCompositionEnd = this._onCompositionEnd.bind(this);
|
|
207
|
+
}
|
|
208
|
+
get rootElement() {
|
|
209
|
+
var t, e, i;
|
|
210
|
+
return (t = (e = (i = this.input).getRootNode) == null ? void 0 : e.call(i)) != null ? t : document;
|
|
211
|
+
}
|
|
212
|
+
/** Is element in focus */
|
|
213
|
+
get isActive() {
|
|
214
|
+
return this.input === this.rootElement.activeElement;
|
|
215
|
+
}
|
|
216
|
+
/** Binds HTMLElement events to mask internal events */
|
|
217
|
+
bindEvents(t) {
|
|
218
|
+
this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", t.drop), this.input.addEventListener("click", t.click), this.input.addEventListener("focus", t.focus), this.input.addEventListener("blur", t.commit), this._handlers = t;
|
|
219
|
+
}
|
|
220
|
+
_onKeydown(t) {
|
|
221
|
+
if (this._handlers.redo && (t.keyCode === Z && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode === vt && t.ctrlKey))
|
|
222
|
+
return t.preventDefault(), this._handlers.redo(t);
|
|
223
|
+
if (this._handlers.undo && t.keyCode === Z && (t.metaKey || t.ctrlKey))
|
|
224
|
+
return t.preventDefault(), this._handlers.undo(t);
|
|
225
|
+
t.isComposing || this._handlers.selectionChange(t);
|
|
226
|
+
}
|
|
227
|
+
_onBeforeinput(t) {
|
|
228
|
+
if (t.inputType === "historyUndo" && this._handlers.undo)
|
|
229
|
+
return t.preventDefault(), this._handlers.undo(t);
|
|
230
|
+
if (t.inputType === "historyRedo" && this._handlers.redo)
|
|
231
|
+
return t.preventDefault(), this._handlers.redo(t);
|
|
232
|
+
}
|
|
233
|
+
_onCompositionEnd(t) {
|
|
234
|
+
this._handlers.input(t);
|
|
235
|
+
}
|
|
236
|
+
_onInput(t) {
|
|
237
|
+
t.isComposing || this._handlers.input(t);
|
|
238
|
+
}
|
|
239
|
+
/** Unbinds HTMLElement events to mask internal events */
|
|
240
|
+
unbindEvents() {
|
|
241
|
+
this.input.removeEventListener("keydown", this._onKeydown), this.input.removeEventListener("input", this._onInput), this.input.removeEventListener("beforeinput", this._onBeforeinput), this.input.removeEventListener("compositionend", this._onCompositionEnd), this.input.removeEventListener("drop", this._handlers.drop), this.input.removeEventListener("click", this._handlers.click), this.input.removeEventListener("focus", this._handlers.focus), this.input.removeEventListener("blur", this._handlers.commit), this._handlers = {};
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
d.HTMLMaskElement = R;
|
|
245
|
+
class xt extends R {
|
|
246
|
+
/** InputElement to use mask on */
|
|
247
|
+
constructor(t) {
|
|
248
|
+
super(t), this.input = t;
|
|
249
|
+
}
|
|
250
|
+
/** Returns InputElement selection start */
|
|
251
|
+
get _unsafeSelectionStart() {
|
|
252
|
+
return this.input.selectionStart != null ? this.input.selectionStart : this.value.length;
|
|
253
|
+
}
|
|
254
|
+
/** Returns InputElement selection end */
|
|
255
|
+
get _unsafeSelectionEnd() {
|
|
256
|
+
return this.input.selectionEnd;
|
|
257
|
+
}
|
|
258
|
+
/** Sets InputElement selection */
|
|
259
|
+
_unsafeSelect(t, e) {
|
|
260
|
+
this.input.setSelectionRange(t, e);
|
|
261
|
+
}
|
|
262
|
+
get value() {
|
|
263
|
+
return this.input.value;
|
|
264
|
+
}
|
|
265
|
+
set value(t) {
|
|
266
|
+
this.input.value = t;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
d.HTMLMaskElement = R;
|
|
270
|
+
class J extends R {
|
|
271
|
+
/** Returns HTMLElement selection start */
|
|
272
|
+
get _unsafeSelectionStart() {
|
|
273
|
+
const t = this.rootElement, e = t.getSelection && t.getSelection(), i = e && e.anchorOffset, s = e && e.focusOffset;
|
|
274
|
+
return s == null || i == null || i < s ? i : s;
|
|
275
|
+
}
|
|
276
|
+
/** Returns HTMLElement selection end */
|
|
277
|
+
get _unsafeSelectionEnd() {
|
|
278
|
+
const t = this.rootElement, e = t.getSelection && t.getSelection(), i = e && e.anchorOffset, s = e && e.focusOffset;
|
|
279
|
+
return s == null || i == null || i > s ? i : s;
|
|
280
|
+
}
|
|
281
|
+
/** Sets HTMLElement selection */
|
|
282
|
+
_unsafeSelect(t, e) {
|
|
283
|
+
if (!this.rootElement.createRange) return;
|
|
284
|
+
const i = this.rootElement.createRange();
|
|
285
|
+
i.setStart(this.input.firstChild || this.input, t), i.setEnd(this.input.lastChild || this.input, e);
|
|
286
|
+
const s = this.rootElement, n = s.getSelection && s.getSelection();
|
|
287
|
+
n && (n.removeAllRanges(), n.addRange(i));
|
|
288
|
+
}
|
|
289
|
+
/** HTMLElement value */
|
|
290
|
+
get value() {
|
|
291
|
+
return this.input.textContent || "";
|
|
292
|
+
}
|
|
293
|
+
set value(t) {
|
|
294
|
+
this.input.textContent = t;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
d.HTMLContenteditableMaskElement = J;
|
|
298
|
+
class O {
|
|
299
|
+
constructor() {
|
|
300
|
+
this.states = [], this.currentIndex = 0;
|
|
301
|
+
}
|
|
302
|
+
get currentState() {
|
|
303
|
+
return this.states[this.currentIndex];
|
|
304
|
+
}
|
|
305
|
+
get isEmpty() {
|
|
306
|
+
return this.states.length === 0;
|
|
307
|
+
}
|
|
308
|
+
push(t) {
|
|
309
|
+
this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(t), this.states.length > O.MAX_LENGTH && this.states.shift(), this.currentIndex = this.states.length - 1;
|
|
310
|
+
}
|
|
311
|
+
go(t) {
|
|
312
|
+
return this.currentIndex = Math.min(Math.max(this.currentIndex + t, 0), this.states.length - 1), this.currentState;
|
|
313
|
+
}
|
|
314
|
+
undo() {
|
|
315
|
+
return this.go(-1);
|
|
316
|
+
}
|
|
317
|
+
redo() {
|
|
318
|
+
return this.go(1);
|
|
319
|
+
}
|
|
320
|
+
clear() {
|
|
321
|
+
this.states.length = 0, this.currentIndex = 0;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
O.MAX_LENGTH = 100;
|
|
325
|
+
class bt {
|
|
326
|
+
/**
|
|
327
|
+
View element
|
|
328
|
+
*/
|
|
329
|
+
/** Internal {@link Masked} model */
|
|
330
|
+
constructor(t, e) {
|
|
331
|
+
this.el = t instanceof q ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new J(t) : new xt(t), this.masked = A(e), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new O(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
|
|
332
|
+
}
|
|
333
|
+
maskEquals(t) {
|
|
334
|
+
var e;
|
|
335
|
+
return t == null || ((e = this.masked) == null ? void 0 : e.maskEquals(t));
|
|
336
|
+
}
|
|
337
|
+
/** Masked */
|
|
338
|
+
get mask() {
|
|
339
|
+
return this.masked.mask;
|
|
340
|
+
}
|
|
341
|
+
set mask(t) {
|
|
342
|
+
if (this.maskEquals(t)) return;
|
|
343
|
+
if (!(t instanceof d.Masked) && this.masked.constructor === W(t)) {
|
|
344
|
+
this.masked.updateOptions({
|
|
345
|
+
mask: t
|
|
346
|
+
});
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
const e = t instanceof d.Masked ? t : A({
|
|
350
|
+
mask: t
|
|
351
|
+
});
|
|
352
|
+
e.unmaskedValue = this.masked.unmaskedValue, this.masked = e;
|
|
353
|
+
}
|
|
354
|
+
/** Raw value */
|
|
355
|
+
get value() {
|
|
356
|
+
return this._value;
|
|
357
|
+
}
|
|
358
|
+
set value(t) {
|
|
359
|
+
this.value !== t && (this.masked.value = t, this.updateControl("auto"));
|
|
360
|
+
}
|
|
361
|
+
/** Unmasked value */
|
|
362
|
+
get unmaskedValue() {
|
|
363
|
+
return this._unmaskedValue;
|
|
364
|
+
}
|
|
365
|
+
set unmaskedValue(t) {
|
|
366
|
+
this.unmaskedValue !== t && (this.masked.unmaskedValue = t, this.updateControl("auto"));
|
|
367
|
+
}
|
|
368
|
+
/** Raw input value */
|
|
369
|
+
get rawInputValue() {
|
|
370
|
+
return this._rawInputValue;
|
|
371
|
+
}
|
|
372
|
+
set rawInputValue(t) {
|
|
373
|
+
this.rawInputValue !== t && (this.masked.rawInputValue = t, this.updateControl(), this.alignCursor());
|
|
374
|
+
}
|
|
375
|
+
/** Typed unmasked value */
|
|
376
|
+
get typedValue() {
|
|
377
|
+
return this.masked.typedValue;
|
|
378
|
+
}
|
|
379
|
+
set typedValue(t) {
|
|
380
|
+
this.masked.typedValueEquals(t) || (this.masked.typedValue = t, this.updateControl("auto"));
|
|
381
|
+
}
|
|
382
|
+
/** Display value */
|
|
383
|
+
get displayValue() {
|
|
384
|
+
return this.masked.displayValue;
|
|
385
|
+
}
|
|
386
|
+
/** Starts listening to element events */
|
|
387
|
+
_bindEvents() {
|
|
388
|
+
this.el.bindEvents({
|
|
389
|
+
selectionChange: this._saveSelection,
|
|
390
|
+
input: this._onInput,
|
|
391
|
+
drop: this._onDrop,
|
|
392
|
+
click: this._onClick,
|
|
393
|
+
focus: this._onFocus,
|
|
394
|
+
commit: this._onChange,
|
|
395
|
+
undo: this._onUndo,
|
|
396
|
+
redo: this._onRedo
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
/** Stops listening to element events */
|
|
400
|
+
_unbindEvents() {
|
|
401
|
+
this.el && this.el.unbindEvents();
|
|
402
|
+
}
|
|
403
|
+
/** Fires custom event */
|
|
404
|
+
_fireEvent(t, e) {
|
|
405
|
+
const i = this._listeners[t];
|
|
406
|
+
i && i.forEach((s) => s(e));
|
|
407
|
+
}
|
|
408
|
+
/** Current selection start */
|
|
409
|
+
get selectionStart() {
|
|
410
|
+
return this._cursorChanging ? this._changingCursorPos : this.el.selectionStart;
|
|
411
|
+
}
|
|
412
|
+
/** Current cursor position */
|
|
413
|
+
get cursorPos() {
|
|
414
|
+
return this._cursorChanging ? this._changingCursorPos : this.el.selectionEnd;
|
|
415
|
+
}
|
|
416
|
+
set cursorPos(t) {
|
|
417
|
+
!this.el || !this.el.isActive || (this.el.select(t, t), this._saveSelection());
|
|
418
|
+
}
|
|
419
|
+
/** Stores current selection */
|
|
420
|
+
_saveSelection() {
|
|
421
|
+
this.displayValue !== this.el.value && console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."), this._selection = {
|
|
422
|
+
start: this.selectionStart,
|
|
423
|
+
end: this.cursorPos
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
/** Syncronizes model value from view */
|
|
427
|
+
updateValue() {
|
|
428
|
+
this.masked.value = this.el.value, this._value = this.masked.value, this._unmaskedValue = this.masked.unmaskedValue, this._rawInputValue = this.masked.rawInputValue;
|
|
429
|
+
}
|
|
430
|
+
/** Syncronizes view from model value, fires change events */
|
|
431
|
+
updateControl(t) {
|
|
432
|
+
const e = this.masked.unmaskedValue, i = this.masked.value, s = this.masked.rawInputValue, n = this.displayValue, r = this.unmaskedValue !== e || this.value !== i || this._rawInputValue !== s;
|
|
433
|
+
this._unmaskedValue = e, this._value = i, this._rawInputValue = s, this.el.value !== n && (this.el.value = n), t === "auto" ? this.alignCursor() : t != null && (this.cursorPos = t), r && this._fireChangeEvents(), !this._historyChanging && (r || this.history.isEmpty) && this.history.push({
|
|
434
|
+
unmaskedValue: e,
|
|
435
|
+
selection: {
|
|
436
|
+
start: this.selectionStart,
|
|
437
|
+
end: this.cursorPos
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
/** Updates options with deep equal check, recreates {@link Masked} model if mask type changes */
|
|
442
|
+
updateOptions(t) {
|
|
443
|
+
const {
|
|
444
|
+
mask: e,
|
|
445
|
+
...i
|
|
446
|
+
} = t, s = !this.maskEquals(e), n = this.masked.optionsIsChanged(i);
|
|
447
|
+
s && (this.mask = e), n && this.masked.updateOptions(i), (s || n) && this.updateControl();
|
|
448
|
+
}
|
|
449
|
+
/** Updates cursor */
|
|
450
|
+
updateCursor(t) {
|
|
451
|
+
t != null && (this.cursorPos = t, this._delayUpdateCursor(t));
|
|
452
|
+
}
|
|
453
|
+
/** Delays cursor update to support mobile browsers */
|
|
454
|
+
_delayUpdateCursor(t) {
|
|
455
|
+
this._abortUpdateCursor(), this._changingCursorPos = t, this._cursorChanging = setTimeout(() => {
|
|
456
|
+
this.el && (this.cursorPos = this._changingCursorPos, this._abortUpdateCursor());
|
|
457
|
+
}, 10);
|
|
458
|
+
}
|
|
459
|
+
/** Fires custom events */
|
|
460
|
+
_fireChangeEvents() {
|
|
461
|
+
this._fireEvent("accept", this._inputEvent), this.masked.isComplete && this._fireEvent("complete", this._inputEvent);
|
|
462
|
+
}
|
|
463
|
+
/** Aborts delayed cursor update */
|
|
464
|
+
_abortUpdateCursor() {
|
|
465
|
+
this._cursorChanging && (clearTimeout(this._cursorChanging), delete this._cursorChanging);
|
|
466
|
+
}
|
|
467
|
+
/** Aligns cursor to nearest available position */
|
|
468
|
+
alignCursor() {
|
|
469
|
+
this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, h.LEFT));
|
|
470
|
+
}
|
|
471
|
+
/** Aligns cursor only if selection is empty */
|
|
472
|
+
alignCursorFriendly() {
|
|
473
|
+
this.selectionStart === this.cursorPos && this.alignCursor();
|
|
474
|
+
}
|
|
475
|
+
/** Adds listener on custom event */
|
|
476
|
+
on(t, e) {
|
|
477
|
+
return this._listeners[t] || (this._listeners[t] = []), this._listeners[t].push(e), this;
|
|
478
|
+
}
|
|
479
|
+
/** Removes custom event listener */
|
|
480
|
+
off(t, e) {
|
|
481
|
+
if (!this._listeners[t]) return this;
|
|
482
|
+
if (!e)
|
|
483
|
+
return delete this._listeners[t], this;
|
|
484
|
+
const i = this._listeners[t].indexOf(e);
|
|
485
|
+
return i >= 0 && this._listeners[t].splice(i, 1), this;
|
|
486
|
+
}
|
|
487
|
+
/** Handles view input event */
|
|
488
|
+
_onInput(t) {
|
|
489
|
+
this._inputEvent = t, this._abortUpdateCursor();
|
|
490
|
+
const e = new kt({
|
|
491
|
+
// new state
|
|
492
|
+
value: this.el.value,
|
|
493
|
+
cursorPos: this.cursorPos,
|
|
494
|
+
// old state
|
|
495
|
+
oldValue: this.displayValue,
|
|
496
|
+
oldSelection: this._selection
|
|
497
|
+
}), i = this.masked.rawInputValue, s = this.masked.splice(e.startChangePos, e.removed.length, e.inserted, e.removeDirection, {
|
|
498
|
+
input: !0,
|
|
499
|
+
raw: !0
|
|
500
|
+
}).offset, n = i === this.masked.rawInputValue ? e.removeDirection : h.NONE;
|
|
501
|
+
let r = this.masked.nearestInputPos(e.startChangePos + s, n);
|
|
502
|
+
n !== h.NONE && (r = this.masked.nearestInputPos(r, h.NONE)), this.updateControl(r), delete this._inputEvent;
|
|
503
|
+
}
|
|
504
|
+
/** Handles view change event and commits model value */
|
|
505
|
+
_onChange() {
|
|
506
|
+
this.displayValue !== this.el.value && this.updateValue(), this.masked.doCommit(), this.updateControl(), this._saveSelection();
|
|
507
|
+
}
|
|
508
|
+
/** Handles view drop event, prevents by default */
|
|
509
|
+
_onDrop(t) {
|
|
510
|
+
t.preventDefault(), t.stopPropagation();
|
|
511
|
+
}
|
|
512
|
+
/** Restore last selection on focus */
|
|
513
|
+
_onFocus(t) {
|
|
514
|
+
this.alignCursorFriendly();
|
|
515
|
+
}
|
|
516
|
+
/** Restore last selection on focus */
|
|
517
|
+
_onClick(t) {
|
|
518
|
+
this.alignCursorFriendly();
|
|
519
|
+
}
|
|
520
|
+
_onUndo() {
|
|
521
|
+
this._applyHistoryState(this.history.undo());
|
|
522
|
+
}
|
|
523
|
+
_onRedo() {
|
|
524
|
+
this._applyHistoryState(this.history.redo());
|
|
525
|
+
}
|
|
526
|
+
_applyHistoryState(t) {
|
|
527
|
+
t && (this._historyChanging = !0, this.unmaskedValue = t.unmaskedValue, this.el.select(t.selection.start, t.selection.end), this._saveSelection(), this._historyChanging = !1);
|
|
528
|
+
}
|
|
529
|
+
/** Unbind view events and removes element reference */
|
|
530
|
+
destroy() {
|
|
531
|
+
this._unbindEvents(), this._listeners.length = 0, delete this.el;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
d.InputMask = bt;
|
|
535
|
+
class m {
|
|
536
|
+
/** Inserted symbols */
|
|
537
|
+
/** Additional offset if any changes occurred before tail */
|
|
538
|
+
/** Raw inserted is used by dynamic mask */
|
|
539
|
+
/** Can skip chars */
|
|
540
|
+
static normalize(t) {
|
|
541
|
+
return Array.isArray(t) ? t : [t, new m()];
|
|
542
|
+
}
|
|
543
|
+
constructor(t) {
|
|
544
|
+
Object.assign(this, {
|
|
545
|
+
inserted: "",
|
|
546
|
+
rawInserted: "",
|
|
547
|
+
tailShift: 0,
|
|
548
|
+
skip: !1
|
|
549
|
+
}, t);
|
|
550
|
+
}
|
|
551
|
+
/** Aggregate changes */
|
|
552
|
+
aggregate(t) {
|
|
553
|
+
return this.inserted += t.inserted, this.rawInserted += t.rawInserted, this.tailShift += t.tailShift, this.skip = this.skip || t.skip, this;
|
|
554
|
+
}
|
|
555
|
+
/** Total offset considering all changes */
|
|
556
|
+
get offset() {
|
|
557
|
+
return this.tailShift + this.inserted.length;
|
|
558
|
+
}
|
|
559
|
+
get consumed() {
|
|
560
|
+
return !!this.rawInserted || this.skip;
|
|
561
|
+
}
|
|
562
|
+
equals(t) {
|
|
563
|
+
return this.inserted === t.inserted && this.tailShift === t.tailShift && this.rawInserted === t.rawInserted && this.skip === t.skip;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
d.ChangeDetails = m;
|
|
567
|
+
class y {
|
|
568
|
+
/** Tail value as string */
|
|
569
|
+
/** Tail start position */
|
|
570
|
+
/** Start position */
|
|
571
|
+
constructor(t, e, i) {
|
|
572
|
+
t === void 0 && (t = ""), e === void 0 && (e = 0), this.value = t, this.from = e, this.stop = i;
|
|
573
|
+
}
|
|
574
|
+
toString() {
|
|
575
|
+
return this.value;
|
|
576
|
+
}
|
|
577
|
+
extend(t) {
|
|
578
|
+
this.value += String(t);
|
|
579
|
+
}
|
|
580
|
+
appendTo(t) {
|
|
581
|
+
return t.append(this.toString(), {
|
|
582
|
+
tail: !0
|
|
583
|
+
}).aggregate(t._appendPlaceholder());
|
|
584
|
+
}
|
|
585
|
+
get state() {
|
|
586
|
+
return {
|
|
587
|
+
value: this.value,
|
|
588
|
+
from: this.from,
|
|
589
|
+
stop: this.stop
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
set state(t) {
|
|
593
|
+
Object.assign(this, t);
|
|
594
|
+
}
|
|
595
|
+
unshift(t) {
|
|
596
|
+
if (!this.value.length || t != null && this.from >= t) return "";
|
|
597
|
+
const e = this.value[0];
|
|
598
|
+
return this.value = this.value.slice(1), e;
|
|
599
|
+
}
|
|
600
|
+
shift() {
|
|
601
|
+
if (!this.value.length) return "";
|
|
602
|
+
const t = this.value[this.value.length - 1];
|
|
603
|
+
return this.value = this.value.slice(0, -1), t;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
class v {
|
|
607
|
+
/** */
|
|
608
|
+
/** */
|
|
609
|
+
/** Transforms value before mask processing */
|
|
610
|
+
/** Transforms each char before mask processing */
|
|
611
|
+
/** Validates if value is acceptable */
|
|
612
|
+
/** Does additional processing at the end of editing */
|
|
613
|
+
/** Format typed value to string */
|
|
614
|
+
/** Parse string to get typed value */
|
|
615
|
+
/** Enable characters overwriting */
|
|
616
|
+
/** */
|
|
617
|
+
/** */
|
|
618
|
+
/** */
|
|
619
|
+
/** */
|
|
620
|
+
constructor(t) {
|
|
621
|
+
this._value = "", this._update({
|
|
622
|
+
...v.DEFAULTS,
|
|
623
|
+
...t
|
|
624
|
+
}), this._initialized = !0;
|
|
625
|
+
}
|
|
626
|
+
/** Sets and applies new options */
|
|
627
|
+
updateOptions(t) {
|
|
628
|
+
this.optionsIsChanged(t) && this.withValueRefresh(this._update.bind(this, t));
|
|
629
|
+
}
|
|
630
|
+
/** Sets new options */
|
|
631
|
+
_update(t) {
|
|
632
|
+
Object.assign(this, t);
|
|
633
|
+
}
|
|
634
|
+
/** Mask state */
|
|
635
|
+
get state() {
|
|
636
|
+
return {
|
|
637
|
+
_value: this.value,
|
|
638
|
+
_rawInputValue: this.rawInputValue
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
set state(t) {
|
|
642
|
+
this._value = t._value;
|
|
643
|
+
}
|
|
644
|
+
/** Resets value */
|
|
645
|
+
reset() {
|
|
646
|
+
this._value = "";
|
|
647
|
+
}
|
|
648
|
+
get value() {
|
|
649
|
+
return this._value;
|
|
650
|
+
}
|
|
651
|
+
set value(t) {
|
|
652
|
+
this.resolve(t, {
|
|
653
|
+
input: !0
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
/** Resolve new value */
|
|
657
|
+
resolve(t, e) {
|
|
658
|
+
e === void 0 && (e = {
|
|
659
|
+
input: !0
|
|
660
|
+
}), this.reset(), this.append(t, e, ""), this.doCommit();
|
|
661
|
+
}
|
|
662
|
+
get unmaskedValue() {
|
|
663
|
+
return this.value;
|
|
664
|
+
}
|
|
665
|
+
set unmaskedValue(t) {
|
|
666
|
+
this.resolve(t, {});
|
|
667
|
+
}
|
|
668
|
+
get typedValue() {
|
|
669
|
+
return this.parse ? this.parse(this.value, this) : this.unmaskedValue;
|
|
670
|
+
}
|
|
671
|
+
set typedValue(t) {
|
|
672
|
+
this.format ? this.value = this.format(t, this) : this.unmaskedValue = String(t);
|
|
673
|
+
}
|
|
674
|
+
/** Value that includes raw user input */
|
|
675
|
+
get rawInputValue() {
|
|
676
|
+
return this.extractInput(0, this.displayValue.length, {
|
|
677
|
+
raw: !0
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
set rawInputValue(t) {
|
|
681
|
+
this.resolve(t, {
|
|
682
|
+
raw: !0
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
get displayValue() {
|
|
686
|
+
return this.value;
|
|
687
|
+
}
|
|
688
|
+
get isComplete() {
|
|
689
|
+
return !0;
|
|
690
|
+
}
|
|
691
|
+
get isFilled() {
|
|
692
|
+
return this.isComplete;
|
|
693
|
+
}
|
|
694
|
+
/** Finds nearest input position in direction */
|
|
695
|
+
nearestInputPos(t, e) {
|
|
696
|
+
return t;
|
|
697
|
+
}
|
|
698
|
+
totalInputPositions(t, e) {
|
|
699
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), Math.min(this.displayValue.length, e - t);
|
|
700
|
+
}
|
|
701
|
+
/** Extracts value in range considering flags */
|
|
702
|
+
extractInput(t, e, i) {
|
|
703
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), this.displayValue.slice(t, e);
|
|
704
|
+
}
|
|
705
|
+
/** Extracts tail in range */
|
|
706
|
+
extractTail(t, e) {
|
|
707
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new y(this.extractInput(t, e), t);
|
|
708
|
+
}
|
|
709
|
+
/** Appends tail */
|
|
710
|
+
appendTail(t) {
|
|
711
|
+
return w(t) && (t = new y(String(t))), t.appendTo(this);
|
|
712
|
+
}
|
|
713
|
+
/** Appends char */
|
|
714
|
+
_appendCharRaw(t, e) {
|
|
715
|
+
return t ? (this._value += t, new m({
|
|
716
|
+
inserted: t,
|
|
717
|
+
rawInserted: t
|
|
718
|
+
})) : new m();
|
|
719
|
+
}
|
|
720
|
+
/** Appends char */
|
|
721
|
+
_appendChar(t, e, i) {
|
|
722
|
+
e === void 0 && (e = {});
|
|
723
|
+
const s = this.state;
|
|
724
|
+
let n;
|
|
725
|
+
if ([t, n] = this.doPrepareChar(t, e), t && (n = n.aggregate(this._appendCharRaw(t, e)), !n.rawInserted && this.autofix === "pad")) {
|
|
726
|
+
const r = this.state;
|
|
727
|
+
this.state = s;
|
|
728
|
+
let u = this.pad(e);
|
|
729
|
+
const l = this._appendCharRaw(t, e);
|
|
730
|
+
u = u.aggregate(l), l.rawInserted || u.equals(n) ? n = u : this.state = r;
|
|
731
|
+
}
|
|
732
|
+
if (n.inserted) {
|
|
733
|
+
let r, u = this.doValidate(e) !== !1;
|
|
734
|
+
if (u && i != null) {
|
|
735
|
+
const l = this.state;
|
|
736
|
+
if (this.overwrite === !0) {
|
|
737
|
+
r = i.state;
|
|
738
|
+
for (let g = 0; g < n.rawInserted.length; ++g)
|
|
739
|
+
i.unshift(this.displayValue.length - n.tailShift);
|
|
740
|
+
}
|
|
741
|
+
let c = this.appendTail(i);
|
|
742
|
+
if (u = c.rawInserted.length === i.toString().length, !(u && c.inserted) && this.overwrite === "shift") {
|
|
743
|
+
this.state = l, r = i.state;
|
|
744
|
+
for (let g = 0; g < n.rawInserted.length; ++g)
|
|
745
|
+
i.shift();
|
|
746
|
+
c = this.appendTail(i), u = c.rawInserted.length === i.toString().length;
|
|
747
|
+
}
|
|
748
|
+
u && c.inserted && (this.state = l);
|
|
749
|
+
}
|
|
750
|
+
u || (n = new m(), this.state = s, i && r && (i.state = r));
|
|
751
|
+
}
|
|
752
|
+
return n;
|
|
753
|
+
}
|
|
754
|
+
/** Appends optional placeholder at the end */
|
|
755
|
+
_appendPlaceholder() {
|
|
756
|
+
return new m();
|
|
757
|
+
}
|
|
758
|
+
/** Appends optional eager placeholder at the end */
|
|
759
|
+
_appendEager() {
|
|
760
|
+
return new m();
|
|
761
|
+
}
|
|
762
|
+
/** Appends symbols considering flags */
|
|
763
|
+
append(t, e, i) {
|
|
764
|
+
if (!w(t)) throw new Error("value should be string");
|
|
765
|
+
const s = w(i) ? new y(String(i)) : i;
|
|
766
|
+
e != null && e.tail && (e._beforeTailState = this.state);
|
|
767
|
+
let n;
|
|
768
|
+
[t, n] = this.doPrepare(t, e);
|
|
769
|
+
for (let r = 0; r < t.length; ++r) {
|
|
770
|
+
const u = this._appendChar(t[r], e, s);
|
|
771
|
+
if (!u.rawInserted && !this.doSkipInvalid(t[r], e, s)) break;
|
|
772
|
+
n.aggregate(u);
|
|
773
|
+
}
|
|
774
|
+
return (this.eager === !0 || this.eager === "append") && e != null && e.input && t && n.aggregate(this._appendEager()), s != null && (n.tailShift += this.appendTail(s).tailShift), n;
|
|
775
|
+
}
|
|
776
|
+
remove(t, e) {
|
|
777
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), this._value = this.displayValue.slice(0, t) + this.displayValue.slice(e), new m();
|
|
778
|
+
}
|
|
779
|
+
/** Calls function and reapplies current value */
|
|
780
|
+
withValueRefresh(t) {
|
|
781
|
+
if (this._refreshing || !this._initialized) return t();
|
|
782
|
+
this._refreshing = !0;
|
|
783
|
+
const e = this.rawInputValue, i = this.value, s = t();
|
|
784
|
+
return this.rawInputValue = e, this.value && this.value !== i && i.indexOf(this.value) === 0 && (this.append(i.slice(this.displayValue.length), {}, ""), this.doCommit()), delete this._refreshing, s;
|
|
785
|
+
}
|
|
786
|
+
runIsolated(t) {
|
|
787
|
+
if (this._isolated || !this._initialized) return t(this);
|
|
788
|
+
this._isolated = !0;
|
|
789
|
+
const e = this.state, i = t(this);
|
|
790
|
+
return this.state = e, delete this._isolated, i;
|
|
791
|
+
}
|
|
792
|
+
doSkipInvalid(t, e, i) {
|
|
793
|
+
return !!this.skipInvalid;
|
|
794
|
+
}
|
|
795
|
+
/** Prepares string before mask processing */
|
|
796
|
+
doPrepare(t, e) {
|
|
797
|
+
return e === void 0 && (e = {}), m.normalize(this.prepare ? this.prepare(t, this, e) : t);
|
|
798
|
+
}
|
|
799
|
+
/** Prepares each char before mask processing */
|
|
800
|
+
doPrepareChar(t, e) {
|
|
801
|
+
return e === void 0 && (e = {}), m.normalize(this.prepareChar ? this.prepareChar(t, this, e) : t);
|
|
802
|
+
}
|
|
803
|
+
/** Validates if value is acceptable */
|
|
804
|
+
doValidate(t) {
|
|
805
|
+
return (!this.validate || this.validate(this.value, this, t)) && (!this.parent || this.parent.doValidate(t));
|
|
806
|
+
}
|
|
807
|
+
/** Does additional processing at the end of editing */
|
|
808
|
+
doCommit() {
|
|
809
|
+
this.commit && this.commit(this.value, this);
|
|
810
|
+
}
|
|
811
|
+
splice(t, e, i, s, n) {
|
|
812
|
+
i === void 0 && (i = ""), s === void 0 && (s = h.NONE), n === void 0 && (n = {
|
|
813
|
+
input: !0
|
|
814
|
+
});
|
|
815
|
+
const r = t + e, u = this.extractTail(r), l = this.eager === !0 || this.eager === "remove";
|
|
816
|
+
let c;
|
|
817
|
+
l && (s = _t(s), c = this.extractInput(0, r, {
|
|
818
|
+
raw: !0
|
|
819
|
+
}));
|
|
820
|
+
let g = t;
|
|
821
|
+
const k = new m();
|
|
822
|
+
if (s !== h.NONE && (g = this.nearestInputPos(t, e > 1 && t !== 0 && !l ? h.NONE : s), k.tailShift = g - t), k.aggregate(this.remove(g)), l && s !== h.NONE && c === this.rawInputValue)
|
|
823
|
+
if (s === h.FORCE_LEFT) {
|
|
824
|
+
let b;
|
|
825
|
+
for (; c === this.rawInputValue && (b = this.displayValue.length); )
|
|
826
|
+
k.aggregate(new m({
|
|
827
|
+
tailShift: -1
|
|
828
|
+
})).aggregate(this.remove(b - 1));
|
|
829
|
+
} else s === h.FORCE_RIGHT && u.unshift();
|
|
830
|
+
return k.aggregate(this.append(i, n, u));
|
|
831
|
+
}
|
|
832
|
+
maskEquals(t) {
|
|
833
|
+
return this.mask === t;
|
|
834
|
+
}
|
|
835
|
+
optionsIsChanged(t) {
|
|
836
|
+
return !D(this, t);
|
|
837
|
+
}
|
|
838
|
+
typedValueEquals(t) {
|
|
839
|
+
const e = this.typedValue;
|
|
840
|
+
return t === e || v.EMPTY_VALUES.includes(t) && v.EMPTY_VALUES.includes(e) || (this.format ? this.format(t, this) === this.format(this.typedValue, this) : !1);
|
|
841
|
+
}
|
|
842
|
+
pad(t) {
|
|
843
|
+
return new m();
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
v.DEFAULTS = {
|
|
847
|
+
skipInvalid: !0
|
|
848
|
+
};
|
|
849
|
+
v.EMPTY_VALUES = [void 0, null, ""];
|
|
850
|
+
d.Masked = v;
|
|
851
|
+
class B {
|
|
852
|
+
/** */
|
|
853
|
+
constructor(t, e) {
|
|
854
|
+
t === void 0 && (t = []), e === void 0 && (e = 0), this.chunks = t, this.from = e;
|
|
855
|
+
}
|
|
856
|
+
toString() {
|
|
857
|
+
return this.chunks.map(String).join("");
|
|
858
|
+
}
|
|
859
|
+
extend(t) {
|
|
860
|
+
if (!String(t)) return;
|
|
861
|
+
t = w(t) ? new y(String(t)) : t;
|
|
862
|
+
const e = this.chunks[this.chunks.length - 1], i = e && // if stops are same or tail has no stop
|
|
863
|
+
(e.stop === t.stop || t.stop == null) && // if tail chunk goes just after last chunk
|
|
864
|
+
t.from === e.from + e.toString().length;
|
|
865
|
+
if (t instanceof y)
|
|
866
|
+
i ? e.extend(t.toString()) : this.chunks.push(t);
|
|
867
|
+
else if (t instanceof B) {
|
|
868
|
+
if (t.stop == null) {
|
|
869
|
+
let s;
|
|
870
|
+
for (; t.chunks.length && t.chunks[0].stop == null; )
|
|
871
|
+
s = t.chunks.shift(), s.from += t.from, this.extend(s);
|
|
872
|
+
}
|
|
873
|
+
t.toString() && (t.stop = t.blockIndex, this.chunks.push(t));
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
appendTo(t) {
|
|
877
|
+
if (!(t instanceof d.MaskedPattern))
|
|
878
|
+
return new y(this.toString()).appendTo(t);
|
|
879
|
+
const e = new m();
|
|
880
|
+
for (let i = 0; i < this.chunks.length; ++i) {
|
|
881
|
+
const s = this.chunks[i], n = t._mapPosToBlock(t.displayValue.length), r = s.stop;
|
|
882
|
+
let u;
|
|
883
|
+
if (r != null && // if block not found or stop is behind lastBlock
|
|
884
|
+
(!n || n.index <= r) && ((s instanceof B || // for continuous block also check if stop is exist
|
|
885
|
+
t._stops.indexOf(r) >= 0) && e.aggregate(t._appendPlaceholder(r)), u = s instanceof B && t._blocks[r]), u) {
|
|
886
|
+
const l = u.appendTail(s);
|
|
887
|
+
e.aggregate(l);
|
|
888
|
+
const c = s.toString().slice(l.rawInserted.length);
|
|
889
|
+
c && e.aggregate(t.append(c, {
|
|
890
|
+
tail: !0
|
|
891
|
+
}));
|
|
892
|
+
} else
|
|
893
|
+
e.aggregate(t.append(s.toString(), {
|
|
894
|
+
tail: !0
|
|
895
|
+
}));
|
|
896
|
+
}
|
|
897
|
+
return e;
|
|
898
|
+
}
|
|
899
|
+
get state() {
|
|
900
|
+
return {
|
|
901
|
+
chunks: this.chunks.map((t) => t.state),
|
|
902
|
+
from: this.from,
|
|
903
|
+
stop: this.stop,
|
|
904
|
+
blockIndex: this.blockIndex
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
set state(t) {
|
|
908
|
+
const {
|
|
909
|
+
chunks: e,
|
|
910
|
+
...i
|
|
911
|
+
} = t;
|
|
912
|
+
Object.assign(this, i), this.chunks = e.map((s) => {
|
|
913
|
+
const n = "chunks" in s ? new B() : new y();
|
|
914
|
+
return n.state = s, n;
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
unshift(t) {
|
|
918
|
+
if (!this.chunks.length || t != null && this.from >= t) return "";
|
|
919
|
+
const e = t != null ? t - this.from : t;
|
|
920
|
+
let i = 0;
|
|
921
|
+
for (; i < this.chunks.length; ) {
|
|
922
|
+
const s = this.chunks[i], n = s.unshift(e);
|
|
923
|
+
if (s.toString()) {
|
|
924
|
+
if (!n) break;
|
|
925
|
+
++i;
|
|
926
|
+
} else
|
|
927
|
+
this.chunks.splice(i, 1);
|
|
928
|
+
if (n) return n;
|
|
929
|
+
}
|
|
930
|
+
return "";
|
|
931
|
+
}
|
|
932
|
+
shift() {
|
|
933
|
+
if (!this.chunks.length) return "";
|
|
934
|
+
let t = this.chunks.length - 1;
|
|
935
|
+
for (; 0 <= t; ) {
|
|
936
|
+
const e = this.chunks[t], i = e.shift();
|
|
937
|
+
if (e.toString()) {
|
|
938
|
+
if (!i) break;
|
|
939
|
+
--t;
|
|
940
|
+
} else
|
|
941
|
+
this.chunks.splice(t, 1);
|
|
942
|
+
if (i) return i;
|
|
943
|
+
}
|
|
944
|
+
return "";
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
class Ct {
|
|
948
|
+
constructor(t, e) {
|
|
949
|
+
this.masked = t, this._log = [];
|
|
950
|
+
const {
|
|
951
|
+
offset: i,
|
|
952
|
+
index: s
|
|
953
|
+
} = t._mapPosToBlock(e) || (e < 0 ? (
|
|
954
|
+
// first
|
|
955
|
+
{
|
|
956
|
+
index: 0,
|
|
957
|
+
offset: 0
|
|
958
|
+
}
|
|
959
|
+
) : (
|
|
960
|
+
// last
|
|
961
|
+
{
|
|
962
|
+
index: this.masked._blocks.length,
|
|
963
|
+
offset: 0
|
|
964
|
+
}
|
|
965
|
+
));
|
|
966
|
+
this.offset = i, this.index = s, this.ok = !1;
|
|
967
|
+
}
|
|
968
|
+
get block() {
|
|
969
|
+
return this.masked._blocks[this.index];
|
|
970
|
+
}
|
|
971
|
+
get pos() {
|
|
972
|
+
return this.masked._blockStartPos(this.index) + this.offset;
|
|
973
|
+
}
|
|
974
|
+
get state() {
|
|
975
|
+
return {
|
|
976
|
+
index: this.index,
|
|
977
|
+
offset: this.offset,
|
|
978
|
+
ok: this.ok
|
|
979
|
+
};
|
|
980
|
+
}
|
|
981
|
+
set state(t) {
|
|
982
|
+
Object.assign(this, t);
|
|
983
|
+
}
|
|
984
|
+
pushState() {
|
|
985
|
+
this._log.push(this.state);
|
|
986
|
+
}
|
|
987
|
+
popState() {
|
|
988
|
+
const t = this._log.pop();
|
|
989
|
+
return t && (this.state = t), t;
|
|
990
|
+
}
|
|
991
|
+
bindBlock() {
|
|
992
|
+
this.block || (this.index < 0 && (this.index = 0, this.offset = 0), this.index >= this.masked._blocks.length && (this.index = this.masked._blocks.length - 1, this.offset = this.block.displayValue.length));
|
|
993
|
+
}
|
|
994
|
+
_pushLeft(t) {
|
|
995
|
+
for (this.pushState(), this.bindBlock(); 0 <= this.index; --this.index, this.offset = ((e = this.block) == null ? void 0 : e.displayValue.length) || 0) {
|
|
996
|
+
var e;
|
|
997
|
+
if (t()) return this.ok = !0;
|
|
998
|
+
}
|
|
999
|
+
return this.ok = !1;
|
|
1000
|
+
}
|
|
1001
|
+
_pushRight(t) {
|
|
1002
|
+
for (this.pushState(), this.bindBlock(); this.index < this.masked._blocks.length; ++this.index, this.offset = 0)
|
|
1003
|
+
if (t()) return this.ok = !0;
|
|
1004
|
+
return this.ok = !1;
|
|
1005
|
+
}
|
|
1006
|
+
pushLeftBeforeFilled() {
|
|
1007
|
+
return this._pushLeft(() => {
|
|
1008
|
+
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, h.FORCE_LEFT), this.offset !== 0))
|
|
1009
|
+
return !0;
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
pushLeftBeforeInput() {
|
|
1013
|
+
return this._pushLeft(() => {
|
|
1014
|
+
if (!this.block.isFixed)
|
|
1015
|
+
return this.offset = this.block.nearestInputPos(this.offset, h.LEFT), !0;
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
pushLeftBeforeRequired() {
|
|
1019
|
+
return this._pushLeft(() => {
|
|
1020
|
+
if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
|
|
1021
|
+
return this.offset = this.block.nearestInputPos(this.offset, h.LEFT), !0;
|
|
1022
|
+
});
|
|
1023
|
+
}
|
|
1024
|
+
pushRightBeforeFilled() {
|
|
1025
|
+
return this._pushRight(() => {
|
|
1026
|
+
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, h.FORCE_RIGHT), this.offset !== this.block.value.length))
|
|
1027
|
+
return !0;
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
pushRightBeforeInput() {
|
|
1031
|
+
return this._pushRight(() => {
|
|
1032
|
+
if (!this.block.isFixed)
|
|
1033
|
+
return this.offset = this.block.nearestInputPos(this.offset, h.NONE), !0;
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
pushRightBeforeRequired() {
|
|
1037
|
+
return this._pushRight(() => {
|
|
1038
|
+
if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
|
|
1039
|
+
return this.offset = this.block.nearestInputPos(this.offset, h.NONE), !0;
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
class Q {
|
|
1044
|
+
/** */
|
|
1045
|
+
/** */
|
|
1046
|
+
/** */
|
|
1047
|
+
/** */
|
|
1048
|
+
/** */
|
|
1049
|
+
/** */
|
|
1050
|
+
constructor(t) {
|
|
1051
|
+
Object.assign(this, t), this._value = "", this.isFixed = !0;
|
|
1052
|
+
}
|
|
1053
|
+
get value() {
|
|
1054
|
+
return this._value;
|
|
1055
|
+
}
|
|
1056
|
+
get unmaskedValue() {
|
|
1057
|
+
return this.isUnmasking ? this.value : "";
|
|
1058
|
+
}
|
|
1059
|
+
get rawInputValue() {
|
|
1060
|
+
return this._isRawInput ? this.value : "";
|
|
1061
|
+
}
|
|
1062
|
+
get displayValue() {
|
|
1063
|
+
return this.value;
|
|
1064
|
+
}
|
|
1065
|
+
reset() {
|
|
1066
|
+
this._isRawInput = !1, this._value = "";
|
|
1067
|
+
}
|
|
1068
|
+
remove(t, e) {
|
|
1069
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this._value.length), this._value = this._value.slice(0, t) + this._value.slice(e), this._value || (this._isRawInput = !1), new m();
|
|
1070
|
+
}
|
|
1071
|
+
nearestInputPos(t, e) {
|
|
1072
|
+
e === void 0 && (e = h.NONE);
|
|
1073
|
+
const i = 0, s = this._value.length;
|
|
1074
|
+
switch (e) {
|
|
1075
|
+
case h.LEFT:
|
|
1076
|
+
case h.FORCE_LEFT:
|
|
1077
|
+
return i;
|
|
1078
|
+
case h.NONE:
|
|
1079
|
+
case h.RIGHT:
|
|
1080
|
+
case h.FORCE_RIGHT:
|
|
1081
|
+
default:
|
|
1082
|
+
return s;
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
totalInputPositions(t, e) {
|
|
1086
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this._value.length), this._isRawInput ? e - t : 0;
|
|
1087
|
+
}
|
|
1088
|
+
extractInput(t, e, i) {
|
|
1089
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this._value.length), i === void 0 && (i = {}), i.raw && this._isRawInput && this._value.slice(t, e) || "";
|
|
1090
|
+
}
|
|
1091
|
+
get isComplete() {
|
|
1092
|
+
return !0;
|
|
1093
|
+
}
|
|
1094
|
+
get isFilled() {
|
|
1095
|
+
return !!this._value;
|
|
1096
|
+
}
|
|
1097
|
+
_appendChar(t, e) {
|
|
1098
|
+
if (e === void 0 && (e = {}), this.isFilled) return new m();
|
|
1099
|
+
const i = this.eager === !0 || this.eager === "append", n = this.char === t && (this.isUnmasking || e.input || e.raw) && (!e.raw || !i) && !e.tail, r = new m({
|
|
1100
|
+
inserted: this.char,
|
|
1101
|
+
rawInserted: n ? this.char : ""
|
|
1102
|
+
});
|
|
1103
|
+
return this._value = this.char, this._isRawInput = n && (e.raw || e.input), r;
|
|
1104
|
+
}
|
|
1105
|
+
_appendEager() {
|
|
1106
|
+
return this._appendChar(this.char, {
|
|
1107
|
+
tail: !0
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
_appendPlaceholder() {
|
|
1111
|
+
const t = new m();
|
|
1112
|
+
return this.isFilled || (this._value = t.inserted = this.char), t;
|
|
1113
|
+
}
|
|
1114
|
+
extractTail() {
|
|
1115
|
+
return new y("");
|
|
1116
|
+
}
|
|
1117
|
+
appendTail(t) {
|
|
1118
|
+
return w(t) && (t = new y(String(t))), t.appendTo(this);
|
|
1119
|
+
}
|
|
1120
|
+
append(t, e, i) {
|
|
1121
|
+
const s = this._appendChar(t[0], e);
|
|
1122
|
+
return i != null && (s.tailShift += this.appendTail(i).tailShift), s;
|
|
1123
|
+
}
|
|
1124
|
+
doCommit() {
|
|
1125
|
+
}
|
|
1126
|
+
get state() {
|
|
1127
|
+
return {
|
|
1128
|
+
_value: this._value,
|
|
1129
|
+
_rawInputValue: this.rawInputValue
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
set state(t) {
|
|
1133
|
+
this._value = t._value, this._isRawInput = !!t._rawInputValue;
|
|
1134
|
+
}
|
|
1135
|
+
pad(t) {
|
|
1136
|
+
return this._appendPlaceholder();
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
class M {
|
|
1140
|
+
/** */
|
|
1141
|
+
/** */
|
|
1142
|
+
/** */
|
|
1143
|
+
/** */
|
|
1144
|
+
/** */
|
|
1145
|
+
/** */
|
|
1146
|
+
/** */
|
|
1147
|
+
/** */
|
|
1148
|
+
constructor(t) {
|
|
1149
|
+
const {
|
|
1150
|
+
parent: e,
|
|
1151
|
+
isOptional: i,
|
|
1152
|
+
placeholderChar: s,
|
|
1153
|
+
displayChar: n,
|
|
1154
|
+
lazy: r,
|
|
1155
|
+
eager: u,
|
|
1156
|
+
...l
|
|
1157
|
+
} = t;
|
|
1158
|
+
this.masked = A(l), Object.assign(this, {
|
|
1159
|
+
parent: e,
|
|
1160
|
+
isOptional: i,
|
|
1161
|
+
placeholderChar: s,
|
|
1162
|
+
displayChar: n,
|
|
1163
|
+
lazy: r,
|
|
1164
|
+
eager: u
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
reset() {
|
|
1168
|
+
this.isFilled = !1, this.masked.reset();
|
|
1169
|
+
}
|
|
1170
|
+
remove(t, e) {
|
|
1171
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.value.length), t === 0 && e >= 1 ? (this.isFilled = !1, this.masked.remove(t, e)) : new m();
|
|
1172
|
+
}
|
|
1173
|
+
get value() {
|
|
1174
|
+
return this.masked.value || (this.isFilled && !this.isOptional ? this.placeholderChar : "");
|
|
1175
|
+
}
|
|
1176
|
+
get unmaskedValue() {
|
|
1177
|
+
return this.masked.unmaskedValue;
|
|
1178
|
+
}
|
|
1179
|
+
get rawInputValue() {
|
|
1180
|
+
return this.masked.rawInputValue;
|
|
1181
|
+
}
|
|
1182
|
+
get displayValue() {
|
|
1183
|
+
return this.masked.value && this.displayChar || this.value;
|
|
1184
|
+
}
|
|
1185
|
+
get isComplete() {
|
|
1186
|
+
return !!this.masked.value || this.isOptional;
|
|
1187
|
+
}
|
|
1188
|
+
_appendChar(t, e) {
|
|
1189
|
+
if (e === void 0 && (e = {}), this.isFilled) return new m();
|
|
1190
|
+
const i = this.masked.state;
|
|
1191
|
+
let s = this.masked._appendChar(t, this.currentMaskFlags(e));
|
|
1192
|
+
return s.inserted && this.doValidate(e) === !1 && (s = new m(), this.masked.state = i), !s.inserted && !this.isOptional && !this.lazy && !e.input && (s.inserted = this.placeholderChar), s.skip = !s.inserted && !this.isOptional, this.isFilled = !!s.inserted, s;
|
|
1193
|
+
}
|
|
1194
|
+
append(t, e, i) {
|
|
1195
|
+
return this.masked.append(t, this.currentMaskFlags(e), i);
|
|
1196
|
+
}
|
|
1197
|
+
_appendPlaceholder() {
|
|
1198
|
+
return this.isFilled || this.isOptional ? new m() : (this.isFilled = !0, new m({
|
|
1199
|
+
inserted: this.placeholderChar
|
|
1200
|
+
}));
|
|
1201
|
+
}
|
|
1202
|
+
_appendEager() {
|
|
1203
|
+
return new m();
|
|
1204
|
+
}
|
|
1205
|
+
extractTail(t, e) {
|
|
1206
|
+
return this.masked.extractTail(t, e);
|
|
1207
|
+
}
|
|
1208
|
+
appendTail(t) {
|
|
1209
|
+
return this.masked.appendTail(t);
|
|
1210
|
+
}
|
|
1211
|
+
extractInput(t, e, i) {
|
|
1212
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.value.length), this.masked.extractInput(t, e, i);
|
|
1213
|
+
}
|
|
1214
|
+
nearestInputPos(t, e) {
|
|
1215
|
+
e === void 0 && (e = h.NONE);
|
|
1216
|
+
const i = 0, s = this.value.length, n = Math.min(Math.max(t, i), s);
|
|
1217
|
+
switch (e) {
|
|
1218
|
+
case h.LEFT:
|
|
1219
|
+
case h.FORCE_LEFT:
|
|
1220
|
+
return this.isComplete ? n : i;
|
|
1221
|
+
case h.RIGHT:
|
|
1222
|
+
case h.FORCE_RIGHT:
|
|
1223
|
+
return this.isComplete ? n : s;
|
|
1224
|
+
case h.NONE:
|
|
1225
|
+
default:
|
|
1226
|
+
return n;
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
totalInputPositions(t, e) {
|
|
1230
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.value.length), this.value.slice(t, e).length;
|
|
1231
|
+
}
|
|
1232
|
+
doValidate(t) {
|
|
1233
|
+
return this.masked.doValidate(this.currentMaskFlags(t)) && (!this.parent || this.parent.doValidate(this.currentMaskFlags(t)));
|
|
1234
|
+
}
|
|
1235
|
+
doCommit() {
|
|
1236
|
+
this.masked.doCommit();
|
|
1237
|
+
}
|
|
1238
|
+
get state() {
|
|
1239
|
+
return {
|
|
1240
|
+
_value: this.value,
|
|
1241
|
+
_rawInputValue: this.rawInputValue,
|
|
1242
|
+
masked: this.masked.state,
|
|
1243
|
+
isFilled: this.isFilled
|
|
1244
|
+
};
|
|
1245
|
+
}
|
|
1246
|
+
set state(t) {
|
|
1247
|
+
this.masked.state = t.masked, this.isFilled = t.isFilled;
|
|
1248
|
+
}
|
|
1249
|
+
currentMaskFlags(t) {
|
|
1250
|
+
var e;
|
|
1251
|
+
return {
|
|
1252
|
+
...t,
|
|
1253
|
+
_beforeTailState: (t == null || (e = t._beforeTailState) == null ? void 0 : e.masked) || t?._beforeTailState
|
|
1254
|
+
};
|
|
1255
|
+
}
|
|
1256
|
+
pad(t) {
|
|
1257
|
+
return new m();
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
M.DEFAULT_DEFINITIONS = {
|
|
1261
|
+
0: /\d/,
|
|
1262
|
+
a: /[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,
|
|
1263
|
+
// http://stackoverflow.com/a/22075070
|
|
1264
|
+
"*": /./
|
|
1265
|
+
};
|
|
1266
|
+
class yt extends v {
|
|
1267
|
+
/** */
|
|
1268
|
+
/** Enable characters overwriting */
|
|
1269
|
+
/** */
|
|
1270
|
+
/** */
|
|
1271
|
+
/** */
|
|
1272
|
+
updateOptions(t) {
|
|
1273
|
+
super.updateOptions(t);
|
|
1274
|
+
}
|
|
1275
|
+
_update(t) {
|
|
1276
|
+
const e = t.mask;
|
|
1277
|
+
e && (t.validate = (i) => i.search(e) >= 0), super._update(t);
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
d.MaskedRegExp = yt;
|
|
1281
|
+
class x extends v {
|
|
1282
|
+
/** */
|
|
1283
|
+
/** */
|
|
1284
|
+
/** Single char for empty input */
|
|
1285
|
+
/** Single char for filled input */
|
|
1286
|
+
/** Show placeholder only when needed */
|
|
1287
|
+
/** Enable characters overwriting */
|
|
1288
|
+
/** */
|
|
1289
|
+
/** */
|
|
1290
|
+
/** */
|
|
1291
|
+
constructor(t) {
|
|
1292
|
+
super({
|
|
1293
|
+
...x.DEFAULTS,
|
|
1294
|
+
...t,
|
|
1295
|
+
definitions: Object.assign({}, M.DEFAULT_DEFINITIONS, t?.definitions)
|
|
1296
|
+
});
|
|
1297
|
+
}
|
|
1298
|
+
updateOptions(t) {
|
|
1299
|
+
super.updateOptions(t);
|
|
1300
|
+
}
|
|
1301
|
+
_update(t) {
|
|
1302
|
+
t.definitions = Object.assign({}, this.definitions, t.definitions), super._update(t), this._rebuildMask();
|
|
1303
|
+
}
|
|
1304
|
+
_rebuildMask() {
|
|
1305
|
+
const t = this.definitions;
|
|
1306
|
+
this._blocks = [], this.exposeBlock = void 0, this._stops = [], this._maskedBlocks = {};
|
|
1307
|
+
const e = this.mask;
|
|
1308
|
+
if (!e || !t) return;
|
|
1309
|
+
let i = !1, s = !1;
|
|
1310
|
+
for (let n = 0; n < e.length; ++n) {
|
|
1311
|
+
if (this.blocks) {
|
|
1312
|
+
const c = e.slice(n), g = Object.keys(this.blocks).filter((b) => c.indexOf(b) === 0);
|
|
1313
|
+
g.sort((b, S) => S.length - b.length);
|
|
1314
|
+
const k = g[0];
|
|
1315
|
+
if (k) {
|
|
1316
|
+
const {
|
|
1317
|
+
expose: b,
|
|
1318
|
+
repeat: S,
|
|
1319
|
+
...nt
|
|
1320
|
+
} = I(this.blocks[k]), G = {
|
|
1321
|
+
lazy: this.lazy,
|
|
1322
|
+
eager: this.eager,
|
|
1323
|
+
placeholderChar: this.placeholderChar,
|
|
1324
|
+
displayChar: this.displayChar,
|
|
1325
|
+
overwrite: this.overwrite,
|
|
1326
|
+
autofix: this.autofix,
|
|
1327
|
+
...nt,
|
|
1328
|
+
repeat: S,
|
|
1329
|
+
parent: this
|
|
1330
|
+
}, $ = S != null ? new d.RepeatBlock(
|
|
1331
|
+
G
|
|
1332
|
+
/* TODO */
|
|
1333
|
+
) : A(G);
|
|
1334
|
+
$ && (this._blocks.push($), b && (this.exposeBlock = $), this._maskedBlocks[k] || (this._maskedBlocks[k] = []), this._maskedBlocks[k].push(this._blocks.length - 1)), n += k.length - 1;
|
|
1335
|
+
continue;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
let r = e[n], u = r in t;
|
|
1339
|
+
if (r === x.STOP_CHAR) {
|
|
1340
|
+
this._stops.push(this._blocks.length);
|
|
1341
|
+
continue;
|
|
1342
|
+
}
|
|
1343
|
+
if (r === "{" || r === "}") {
|
|
1344
|
+
i = !i;
|
|
1345
|
+
continue;
|
|
1346
|
+
}
|
|
1347
|
+
if (r === "[" || r === "]") {
|
|
1348
|
+
s = !s;
|
|
1349
|
+
continue;
|
|
1350
|
+
}
|
|
1351
|
+
if (r === x.ESCAPE_CHAR) {
|
|
1352
|
+
if (++n, r = e[n], !r) break;
|
|
1353
|
+
u = !1;
|
|
1354
|
+
}
|
|
1355
|
+
const l = u ? new M({
|
|
1356
|
+
isOptional: s,
|
|
1357
|
+
lazy: this.lazy,
|
|
1358
|
+
eager: this.eager,
|
|
1359
|
+
placeholderChar: this.placeholderChar,
|
|
1360
|
+
displayChar: this.displayChar,
|
|
1361
|
+
...I(t[r]),
|
|
1362
|
+
parent: this
|
|
1363
|
+
}) : new Q({
|
|
1364
|
+
char: r,
|
|
1365
|
+
eager: this.eager,
|
|
1366
|
+
isUnmasking: i
|
|
1367
|
+
});
|
|
1368
|
+
this._blocks.push(l);
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
get state() {
|
|
1372
|
+
return {
|
|
1373
|
+
...super.state,
|
|
1374
|
+
_blocks: this._blocks.map((t) => t.state)
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
set state(t) {
|
|
1378
|
+
if (!t) {
|
|
1379
|
+
this.reset();
|
|
1380
|
+
return;
|
|
1381
|
+
}
|
|
1382
|
+
const {
|
|
1383
|
+
_blocks: e,
|
|
1384
|
+
...i
|
|
1385
|
+
} = t;
|
|
1386
|
+
this._blocks.forEach((s, n) => s.state = e[n]), super.state = i;
|
|
1387
|
+
}
|
|
1388
|
+
reset() {
|
|
1389
|
+
super.reset(), this._blocks.forEach((t) => t.reset());
|
|
1390
|
+
}
|
|
1391
|
+
get isComplete() {
|
|
1392
|
+
return this.exposeBlock ? this.exposeBlock.isComplete : this._blocks.every((t) => t.isComplete);
|
|
1393
|
+
}
|
|
1394
|
+
get isFilled() {
|
|
1395
|
+
return this._blocks.every((t) => t.isFilled);
|
|
1396
|
+
}
|
|
1397
|
+
get isFixed() {
|
|
1398
|
+
return this._blocks.every((t) => t.isFixed);
|
|
1399
|
+
}
|
|
1400
|
+
get isOptional() {
|
|
1401
|
+
return this._blocks.every((t) => t.isOptional);
|
|
1402
|
+
}
|
|
1403
|
+
doCommit() {
|
|
1404
|
+
this._blocks.forEach((t) => t.doCommit()), super.doCommit();
|
|
1405
|
+
}
|
|
1406
|
+
get unmaskedValue() {
|
|
1407
|
+
return this.exposeBlock ? this.exposeBlock.unmaskedValue : this._blocks.reduce((t, e) => t += e.unmaskedValue, "");
|
|
1408
|
+
}
|
|
1409
|
+
set unmaskedValue(t) {
|
|
1410
|
+
if (this.exposeBlock) {
|
|
1411
|
+
const e = this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length);
|
|
1412
|
+
this.exposeBlock.unmaskedValue = t, this.appendTail(e), this.doCommit();
|
|
1413
|
+
} else super.unmaskedValue = t;
|
|
1414
|
+
}
|
|
1415
|
+
get value() {
|
|
1416
|
+
return this.exposeBlock ? this.exposeBlock.value : (
|
|
1417
|
+
// TODO return _value when not in change?
|
|
1418
|
+
this._blocks.reduce((t, e) => t += e.value, "")
|
|
1419
|
+
);
|
|
1420
|
+
}
|
|
1421
|
+
set value(t) {
|
|
1422
|
+
if (this.exposeBlock) {
|
|
1423
|
+
const e = this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length);
|
|
1424
|
+
this.exposeBlock.value = t, this.appendTail(e), this.doCommit();
|
|
1425
|
+
} else super.value = t;
|
|
1426
|
+
}
|
|
1427
|
+
get typedValue() {
|
|
1428
|
+
return this.exposeBlock ? this.exposeBlock.typedValue : super.typedValue;
|
|
1429
|
+
}
|
|
1430
|
+
set typedValue(t) {
|
|
1431
|
+
if (this.exposeBlock) {
|
|
1432
|
+
const e = this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length);
|
|
1433
|
+
this.exposeBlock.typedValue = t, this.appendTail(e), this.doCommit();
|
|
1434
|
+
} else super.typedValue = t;
|
|
1435
|
+
}
|
|
1436
|
+
get displayValue() {
|
|
1437
|
+
return this._blocks.reduce((t, e) => t += e.displayValue, "");
|
|
1438
|
+
}
|
|
1439
|
+
appendTail(t) {
|
|
1440
|
+
return super.appendTail(t).aggregate(this._appendPlaceholder());
|
|
1441
|
+
}
|
|
1442
|
+
_appendEager() {
|
|
1443
|
+
var t;
|
|
1444
|
+
const e = new m();
|
|
1445
|
+
let i = (t = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : t.index;
|
|
1446
|
+
if (i == null) return e;
|
|
1447
|
+
this._blocks[i].isFilled && ++i;
|
|
1448
|
+
for (let s = i; s < this._blocks.length; ++s) {
|
|
1449
|
+
const n = this._blocks[s]._appendEager();
|
|
1450
|
+
if (!n.inserted) break;
|
|
1451
|
+
e.aggregate(n);
|
|
1452
|
+
}
|
|
1453
|
+
return e;
|
|
1454
|
+
}
|
|
1455
|
+
_appendCharRaw(t, e) {
|
|
1456
|
+
e === void 0 && (e = {});
|
|
1457
|
+
const i = this._mapPosToBlock(this.displayValue.length), s = new m();
|
|
1458
|
+
if (!i) return s;
|
|
1459
|
+
for (let r = i.index, u; u = this._blocks[r]; ++r) {
|
|
1460
|
+
var n;
|
|
1461
|
+
const l = u._appendChar(t, {
|
|
1462
|
+
...e,
|
|
1463
|
+
_beforeTailState: (n = e._beforeTailState) == null || (n = n._blocks) == null ? void 0 : n[r]
|
|
1464
|
+
});
|
|
1465
|
+
if (s.aggregate(l), l.consumed) break;
|
|
1466
|
+
}
|
|
1467
|
+
return s;
|
|
1468
|
+
}
|
|
1469
|
+
extractTail(t, e) {
|
|
1470
|
+
t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length);
|
|
1471
|
+
const i = new B();
|
|
1472
|
+
return t === e || this._forEachBlocksInRange(t, e, (s, n, r, u) => {
|
|
1473
|
+
const l = s.extractTail(r, u);
|
|
1474
|
+
l.stop = this._findStopBefore(n), l.from = this._blockStartPos(n), l instanceof B && (l.blockIndex = n), i.extend(l);
|
|
1475
|
+
}), i;
|
|
1476
|
+
}
|
|
1477
|
+
extractInput(t, e, i) {
|
|
1478
|
+
if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), i === void 0 && (i = {}), t === e) return "";
|
|
1479
|
+
let s = "";
|
|
1480
|
+
return this._forEachBlocksInRange(t, e, (n, r, u, l) => {
|
|
1481
|
+
s += n.extractInput(u, l, i);
|
|
1482
|
+
}), s;
|
|
1483
|
+
}
|
|
1484
|
+
_findStopBefore(t) {
|
|
1485
|
+
let e;
|
|
1486
|
+
for (let i = 0; i < this._stops.length; ++i) {
|
|
1487
|
+
const s = this._stops[i];
|
|
1488
|
+
if (s <= t) e = s;
|
|
1489
|
+
else break;
|
|
1490
|
+
}
|
|
1491
|
+
return e;
|
|
1492
|
+
}
|
|
1493
|
+
/** Appends placeholder depending on laziness */
|
|
1494
|
+
_appendPlaceholder(t) {
|
|
1495
|
+
const e = new m();
|
|
1496
|
+
if (this.lazy && t == null) return e;
|
|
1497
|
+
const i = this._mapPosToBlock(this.displayValue.length);
|
|
1498
|
+
if (!i) return e;
|
|
1499
|
+
const s = i.index, n = t ?? this._blocks.length;
|
|
1500
|
+
return this._blocks.slice(s, n).forEach((r) => {
|
|
1501
|
+
if (!r.lazy || t != null) {
|
|
1502
|
+
var u;
|
|
1503
|
+
e.aggregate(r._appendPlaceholder((u = r._blocks) == null ? void 0 : u.length));
|
|
1504
|
+
}
|
|
1505
|
+
}), e;
|
|
1506
|
+
}
|
|
1507
|
+
/** Finds block in pos */
|
|
1508
|
+
_mapPosToBlock(t) {
|
|
1509
|
+
let e = "";
|
|
1510
|
+
for (let i = 0; i < this._blocks.length; ++i) {
|
|
1511
|
+
const s = this._blocks[i], n = e.length;
|
|
1512
|
+
if (e += s.displayValue, t <= e.length)
|
|
1513
|
+
return {
|
|
1514
|
+
index: i,
|
|
1515
|
+
offset: t - n
|
|
1516
|
+
};
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
_blockStartPos(t) {
|
|
1520
|
+
return this._blocks.slice(0, t).reduce((e, i) => e += i.displayValue.length, 0);
|
|
1521
|
+
}
|
|
1522
|
+
_forEachBlocksInRange(t, e, i) {
|
|
1523
|
+
e === void 0 && (e = this.displayValue.length);
|
|
1524
|
+
const s = this._mapPosToBlock(t);
|
|
1525
|
+
if (s) {
|
|
1526
|
+
const n = this._mapPosToBlock(e), r = n && s.index === n.index, u = s.offset, l = n && r ? n.offset : this._blocks[s.index].displayValue.length;
|
|
1527
|
+
if (i(this._blocks[s.index], s.index, u, l), n && !r) {
|
|
1528
|
+
for (let c = s.index + 1; c < n.index; ++c)
|
|
1529
|
+
i(this._blocks[c], c, 0, this._blocks[c].displayValue.length);
|
|
1530
|
+
i(this._blocks[n.index], n.index, 0, n.offset);
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
remove(t, e) {
|
|
1535
|
+
t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length);
|
|
1536
|
+
const i = super.remove(t, e);
|
|
1537
|
+
return this._forEachBlocksInRange(t, e, (s, n, r, u) => {
|
|
1538
|
+
i.aggregate(s.remove(r, u));
|
|
1539
|
+
}), i;
|
|
1540
|
+
}
|
|
1541
|
+
nearestInputPos(t, e) {
|
|
1542
|
+
if (e === void 0 && (e = h.NONE), !this._blocks.length) return 0;
|
|
1543
|
+
const i = new Ct(this, t);
|
|
1544
|
+
if (e === h.NONE)
|
|
1545
|
+
return i.pushRightBeforeInput() || (i.popState(), i.pushLeftBeforeInput()) ? i.pos : this.displayValue.length;
|
|
1546
|
+
if (e === h.LEFT || e === h.FORCE_LEFT) {
|
|
1547
|
+
if (e === h.LEFT) {
|
|
1548
|
+
if (i.pushRightBeforeFilled(), i.ok && i.pos === t) return t;
|
|
1549
|
+
i.popState();
|
|
1550
|
+
}
|
|
1551
|
+
if (i.pushLeftBeforeInput(), i.pushLeftBeforeRequired(), i.pushLeftBeforeFilled(), e === h.LEFT) {
|
|
1552
|
+
if (i.pushRightBeforeInput(), i.pushRightBeforeRequired(), i.ok && i.pos <= t || (i.popState(), i.ok && i.pos <= t)) return i.pos;
|
|
1553
|
+
i.popState();
|
|
1554
|
+
}
|
|
1555
|
+
return i.ok ? i.pos : e === h.FORCE_LEFT ? 0 : (i.popState(), i.ok || (i.popState(), i.ok) ? i.pos : 0);
|
|
1556
|
+
}
|
|
1557
|
+
return e === h.RIGHT || e === h.FORCE_RIGHT ? (i.pushRightBeforeInput(), i.pushRightBeforeRequired(), i.pushRightBeforeFilled() ? i.pos : e === h.FORCE_RIGHT ? this.displayValue.length : (i.popState(), i.ok || (i.popState(), i.ok) ? i.pos : this.nearestInputPos(t, h.LEFT))) : t;
|
|
1558
|
+
}
|
|
1559
|
+
totalInputPositions(t, e) {
|
|
1560
|
+
t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length);
|
|
1561
|
+
let i = 0;
|
|
1562
|
+
return this._forEachBlocksInRange(t, e, (s, n, r, u) => {
|
|
1563
|
+
i += s.totalInputPositions(r, u);
|
|
1564
|
+
}), i;
|
|
1565
|
+
}
|
|
1566
|
+
/** Get block by name */
|
|
1567
|
+
maskedBlock(t) {
|
|
1568
|
+
return this.maskedBlocks(t)[0];
|
|
1569
|
+
}
|
|
1570
|
+
/** Get all blocks by name */
|
|
1571
|
+
maskedBlocks(t) {
|
|
1572
|
+
const e = this._maskedBlocks[t];
|
|
1573
|
+
return e ? e.map((i) => this._blocks[i]) : [];
|
|
1574
|
+
}
|
|
1575
|
+
pad(t) {
|
|
1576
|
+
const e = new m();
|
|
1577
|
+
return this._forEachBlocksInRange(0, this.displayValue.length, (i) => e.aggregate(i.pad(t))), e;
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
x.DEFAULTS = {
|
|
1581
|
+
...v.DEFAULTS,
|
|
1582
|
+
lazy: !0,
|
|
1583
|
+
placeholderChar: "_"
|
|
1584
|
+
};
|
|
1585
|
+
x.STOP_CHAR = "`";
|
|
1586
|
+
x.ESCAPE_CHAR = "\\";
|
|
1587
|
+
x.InputDefinition = M;
|
|
1588
|
+
x.FixedDefinition = Q;
|
|
1589
|
+
d.MaskedPattern = x;
|
|
1590
|
+
class V extends x {
|
|
1591
|
+
/**
|
|
1592
|
+
Optionally sets max length of pattern.
|
|
1593
|
+
Used when pattern length is longer then `to` param length. Pads zeros at start in this case.
|
|
1594
|
+
*/
|
|
1595
|
+
/** Min bound */
|
|
1596
|
+
/** Max bound */
|
|
1597
|
+
get _matchFrom() {
|
|
1598
|
+
return this.maxLength - String(this.from).length;
|
|
1599
|
+
}
|
|
1600
|
+
constructor(t) {
|
|
1601
|
+
super(t);
|
|
1602
|
+
}
|
|
1603
|
+
updateOptions(t) {
|
|
1604
|
+
super.updateOptions(t);
|
|
1605
|
+
}
|
|
1606
|
+
_update(t) {
|
|
1607
|
+
const {
|
|
1608
|
+
to: e = this.to || 0,
|
|
1609
|
+
from: i = this.from || 0,
|
|
1610
|
+
maxLength: s = this.maxLength || 0,
|
|
1611
|
+
autofix: n = this.autofix,
|
|
1612
|
+
...r
|
|
1613
|
+
} = t;
|
|
1614
|
+
this.to = e, this.from = i, this.maxLength = Math.max(String(e).length, s), this.autofix = n;
|
|
1615
|
+
const u = String(this.from).padStart(this.maxLength, "0"), l = String(this.to).padStart(this.maxLength, "0");
|
|
1616
|
+
let c = 0;
|
|
1617
|
+
for (; c < l.length && l[c] === u[c]; ) ++c;
|
|
1618
|
+
r.mask = l.slice(0, c).replace(/0/g, "\\0") + "0".repeat(this.maxLength - c), super._update(r);
|
|
1619
|
+
}
|
|
1620
|
+
get isComplete() {
|
|
1621
|
+
return super.isComplete && !!this.value;
|
|
1622
|
+
}
|
|
1623
|
+
boundaries(t) {
|
|
1624
|
+
let e = "", i = "";
|
|
1625
|
+
const [, s, n] = t.match(/^(\D*)(\d*)(\D*)/) || [];
|
|
1626
|
+
return n && (e = "0".repeat(s.length) + n, i = "9".repeat(s.length) + n), e = e.padEnd(this.maxLength, "0"), i = i.padEnd(this.maxLength, "9"), [e, i];
|
|
1627
|
+
}
|
|
1628
|
+
doPrepareChar(t, e) {
|
|
1629
|
+
e === void 0 && (e = {});
|
|
1630
|
+
let i;
|
|
1631
|
+
return [t, i] = super.doPrepareChar(t.replace(/\D/g, ""), e), t || (i.skip = !this.isComplete), [t, i];
|
|
1632
|
+
}
|
|
1633
|
+
_appendCharRaw(t, e) {
|
|
1634
|
+
if (e === void 0 && (e = {}), !this.autofix || this.value.length + 1 > this.maxLength) return super._appendCharRaw(t, e);
|
|
1635
|
+
const i = String(this.from).padStart(this.maxLength, "0"), s = String(this.to).padStart(this.maxLength, "0"), [n, r] = this.boundaries(this.value + t);
|
|
1636
|
+
return Number(r) < this.from ? super._appendCharRaw(i[this.value.length], e) : Number(n) > this.to ? !e.tail && this.autofix === "pad" && this.value.length + 1 < this.maxLength ? super._appendCharRaw(i[this.value.length], e).aggregate(this._appendCharRaw(t, e)) : super._appendCharRaw(s[this.value.length], e) : super._appendCharRaw(t, e);
|
|
1637
|
+
}
|
|
1638
|
+
doValidate(t) {
|
|
1639
|
+
const e = this.value;
|
|
1640
|
+
if (e.search(/[^0]/) === -1 && e.length <= this._matchFrom) return !0;
|
|
1641
|
+
const [s, n] = this.boundaries(e);
|
|
1642
|
+
return this.from <= Number(n) && Number(s) <= this.to && super.doValidate(t);
|
|
1643
|
+
}
|
|
1644
|
+
pad(t) {
|
|
1645
|
+
const e = new m();
|
|
1646
|
+
if (this.value.length === this.maxLength) return e;
|
|
1647
|
+
const i = this.value, s = this.maxLength - this.value.length;
|
|
1648
|
+
if (s) {
|
|
1649
|
+
this.reset();
|
|
1650
|
+
for (let n = 0; n < s; ++n)
|
|
1651
|
+
e.aggregate(super._appendCharRaw("0", t));
|
|
1652
|
+
i.split("").forEach((n) => this._appendCharRaw(n));
|
|
1653
|
+
}
|
|
1654
|
+
return e;
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
d.MaskedRange = V;
|
|
1658
|
+
const Et = "d{.}`m{.}`Y";
|
|
1659
|
+
class E extends x {
|
|
1660
|
+
static extractPatternOptions(t) {
|
|
1661
|
+
const {
|
|
1662
|
+
mask: e,
|
|
1663
|
+
pattern: i,
|
|
1664
|
+
...s
|
|
1665
|
+
} = t;
|
|
1666
|
+
return {
|
|
1667
|
+
...s,
|
|
1668
|
+
mask: w(e) ? e : i
|
|
1669
|
+
};
|
|
1670
|
+
}
|
|
1671
|
+
/** Pattern mask for date according to {@link MaskedDate#format} */
|
|
1672
|
+
/** Start date */
|
|
1673
|
+
/** End date */
|
|
1674
|
+
/** Format typed value to string */
|
|
1675
|
+
/** Parse string to get typed value */
|
|
1676
|
+
constructor(t) {
|
|
1677
|
+
super(E.extractPatternOptions({
|
|
1678
|
+
...E.DEFAULTS,
|
|
1679
|
+
...t
|
|
1680
|
+
}));
|
|
1681
|
+
}
|
|
1682
|
+
updateOptions(t) {
|
|
1683
|
+
super.updateOptions(t);
|
|
1684
|
+
}
|
|
1685
|
+
_update(t) {
|
|
1686
|
+
const {
|
|
1687
|
+
mask: e,
|
|
1688
|
+
pattern: i,
|
|
1689
|
+
blocks: s,
|
|
1690
|
+
...n
|
|
1691
|
+
} = {
|
|
1692
|
+
...E.DEFAULTS,
|
|
1693
|
+
...t
|
|
1694
|
+
}, r = Object.assign({}, E.GET_DEFAULT_BLOCKS());
|
|
1695
|
+
t.min && (r.Y.from = t.min.getFullYear()), t.max && (r.Y.to = t.max.getFullYear()), t.min && t.max && r.Y.from === r.Y.to && (r.m.from = t.min.getMonth() + 1, r.m.to = t.max.getMonth() + 1, r.m.from === r.m.to && (r.d.from = t.min.getDate(), r.d.to = t.max.getDate())), Object.assign(r, this.blocks, s), super._update({
|
|
1696
|
+
...n,
|
|
1697
|
+
mask: w(e) ? e : i,
|
|
1698
|
+
blocks: r
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
doValidate(t) {
|
|
1702
|
+
const e = this.date;
|
|
1703
|
+
return super.doValidate(t) && (!this.isComplete || this.isDateExist(this.value) && e != null && (this.min == null || this.min <= e) && (this.max == null || e <= this.max));
|
|
1704
|
+
}
|
|
1705
|
+
/** Checks if date is exists */
|
|
1706
|
+
isDateExist(t) {
|
|
1707
|
+
return this.format(this.parse(t, this), this).indexOf(t) >= 0;
|
|
1708
|
+
}
|
|
1709
|
+
/** Parsed Date */
|
|
1710
|
+
get date() {
|
|
1711
|
+
return this.typedValue;
|
|
1712
|
+
}
|
|
1713
|
+
set date(t) {
|
|
1714
|
+
this.typedValue = t;
|
|
1715
|
+
}
|
|
1716
|
+
get typedValue() {
|
|
1717
|
+
return this.isComplete ? super.typedValue : null;
|
|
1718
|
+
}
|
|
1719
|
+
set typedValue(t) {
|
|
1720
|
+
super.typedValue = t;
|
|
1721
|
+
}
|
|
1722
|
+
maskEquals(t) {
|
|
1723
|
+
return t === Date || super.maskEquals(t);
|
|
1724
|
+
}
|
|
1725
|
+
optionsIsChanged(t) {
|
|
1726
|
+
return super.optionsIsChanged(E.extractPatternOptions(t));
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
E.GET_DEFAULT_BLOCKS = () => ({
|
|
1730
|
+
d: {
|
|
1731
|
+
mask: V,
|
|
1732
|
+
from: 1,
|
|
1733
|
+
to: 31,
|
|
1734
|
+
maxLength: 2
|
|
1735
|
+
},
|
|
1736
|
+
m: {
|
|
1737
|
+
mask: V,
|
|
1738
|
+
from: 1,
|
|
1739
|
+
to: 12,
|
|
1740
|
+
maxLength: 2
|
|
1741
|
+
},
|
|
1742
|
+
Y: {
|
|
1743
|
+
mask: V,
|
|
1744
|
+
from: 1900,
|
|
1745
|
+
to: 9999
|
|
1746
|
+
}
|
|
1747
|
+
});
|
|
1748
|
+
E.DEFAULTS = {
|
|
1749
|
+
...x.DEFAULTS,
|
|
1750
|
+
mask: Date,
|
|
1751
|
+
pattern: Et,
|
|
1752
|
+
format: (a, t) => {
|
|
1753
|
+
if (!a) return "";
|
|
1754
|
+
const e = String(a.getDate()).padStart(2, "0"), i = String(a.getMonth() + 1).padStart(2, "0"), s = a.getFullYear();
|
|
1755
|
+
return [e, i, s].join(".");
|
|
1756
|
+
},
|
|
1757
|
+
parse: (a, t) => {
|
|
1758
|
+
const [e, i, s] = a.split(".").map(Number);
|
|
1759
|
+
return new Date(s, i - 1, e);
|
|
1760
|
+
}
|
|
1761
|
+
};
|
|
1762
|
+
d.MaskedDate = E;
|
|
1763
|
+
class L extends v {
|
|
1764
|
+
constructor(t) {
|
|
1765
|
+
super({
|
|
1766
|
+
...L.DEFAULTS,
|
|
1767
|
+
...t
|
|
1768
|
+
}), this.currentMask = void 0;
|
|
1769
|
+
}
|
|
1770
|
+
updateOptions(t) {
|
|
1771
|
+
super.updateOptions(t);
|
|
1772
|
+
}
|
|
1773
|
+
_update(t) {
|
|
1774
|
+
super._update(t), "mask" in t && (this.exposeMask = void 0, this.compiledMasks = Array.isArray(t.mask) ? t.mask.map((e) => {
|
|
1775
|
+
const {
|
|
1776
|
+
expose: i,
|
|
1777
|
+
...s
|
|
1778
|
+
} = I(e), n = A({
|
|
1779
|
+
overwrite: this._overwrite,
|
|
1780
|
+
eager: this._eager,
|
|
1781
|
+
skipInvalid: this._skipInvalid,
|
|
1782
|
+
...s
|
|
1783
|
+
});
|
|
1784
|
+
return i && (this.exposeMask = n), n;
|
|
1785
|
+
}) : []);
|
|
1786
|
+
}
|
|
1787
|
+
_appendCharRaw(t, e) {
|
|
1788
|
+
e === void 0 && (e = {});
|
|
1789
|
+
const i = this._applyDispatch(t, e);
|
|
1790
|
+
return this.currentMask && i.aggregate(this.currentMask._appendChar(t, this.currentMaskFlags(e))), i;
|
|
1791
|
+
}
|
|
1792
|
+
_applyDispatch(t, e, i) {
|
|
1793
|
+
t === void 0 && (t = ""), e === void 0 && (e = {}), i === void 0 && (i = "");
|
|
1794
|
+
const s = e.tail && e._beforeTailState != null ? e._beforeTailState._value : this.value, n = this.rawInputValue, r = e.tail && e._beforeTailState != null ? e._beforeTailState._rawInputValue : n, u = n.slice(r.length), l = this.currentMask, c = new m(), g = l?.state;
|
|
1795
|
+
return this.currentMask = this.doDispatch(t, {
|
|
1796
|
+
...e
|
|
1797
|
+
}, i), this.currentMask && (this.currentMask !== l ? (this.currentMask.reset(), r && (this.currentMask.append(r, {
|
|
1798
|
+
raw: !0
|
|
1799
|
+
}), c.tailShift = this.currentMask.value.length - s.length), u && (c.tailShift += this.currentMask.append(u, {
|
|
1800
|
+
raw: !0,
|
|
1801
|
+
tail: !0
|
|
1802
|
+
}).tailShift)) : g && (this.currentMask.state = g)), c;
|
|
1803
|
+
}
|
|
1804
|
+
_appendPlaceholder() {
|
|
1805
|
+
const t = this._applyDispatch();
|
|
1806
|
+
return this.currentMask && t.aggregate(this.currentMask._appendPlaceholder()), t;
|
|
1807
|
+
}
|
|
1808
|
+
_appendEager() {
|
|
1809
|
+
const t = this._applyDispatch();
|
|
1810
|
+
return this.currentMask && t.aggregate(this.currentMask._appendEager()), t;
|
|
1811
|
+
}
|
|
1812
|
+
appendTail(t) {
|
|
1813
|
+
const e = new m();
|
|
1814
|
+
return t && e.aggregate(this._applyDispatch("", {}, t)), e.aggregate(this.currentMask ? this.currentMask.appendTail(t) : super.appendTail(t));
|
|
1815
|
+
}
|
|
1816
|
+
currentMaskFlags(t) {
|
|
1817
|
+
var e, i;
|
|
1818
|
+
return {
|
|
1819
|
+
...t,
|
|
1820
|
+
_beforeTailState: ((e = t._beforeTailState) == null ? void 0 : e.currentMaskRef) === this.currentMask && ((i = t._beforeTailState) == null ? void 0 : i.currentMask) || t._beforeTailState
|
|
1821
|
+
};
|
|
1822
|
+
}
|
|
1823
|
+
doDispatch(t, e, i) {
|
|
1824
|
+
return e === void 0 && (e = {}), i === void 0 && (i = ""), this.dispatch(t, this, e, i);
|
|
1825
|
+
}
|
|
1826
|
+
doValidate(t) {
|
|
1827
|
+
return super.doValidate(t) && (!this.currentMask || this.currentMask.doValidate(this.currentMaskFlags(t)));
|
|
1828
|
+
}
|
|
1829
|
+
doPrepare(t, e) {
|
|
1830
|
+
e === void 0 && (e = {});
|
|
1831
|
+
let [i, s] = super.doPrepare(t, e);
|
|
1832
|
+
if (this.currentMask) {
|
|
1833
|
+
let n;
|
|
1834
|
+
[i, n] = super.doPrepare(i, this.currentMaskFlags(e)), s = s.aggregate(n);
|
|
1835
|
+
}
|
|
1836
|
+
return [i, s];
|
|
1837
|
+
}
|
|
1838
|
+
doPrepareChar(t, e) {
|
|
1839
|
+
e === void 0 && (e = {});
|
|
1840
|
+
let [i, s] = super.doPrepareChar(t, e);
|
|
1841
|
+
if (this.currentMask) {
|
|
1842
|
+
let n;
|
|
1843
|
+
[i, n] = super.doPrepareChar(i, this.currentMaskFlags(e)), s = s.aggregate(n);
|
|
1844
|
+
}
|
|
1845
|
+
return [i, s];
|
|
1846
|
+
}
|
|
1847
|
+
reset() {
|
|
1848
|
+
var t;
|
|
1849
|
+
(t = this.currentMask) == null || t.reset(), this.compiledMasks.forEach((e) => e.reset());
|
|
1850
|
+
}
|
|
1851
|
+
get value() {
|
|
1852
|
+
return this.exposeMask ? this.exposeMask.value : this.currentMask ? this.currentMask.value : "";
|
|
1853
|
+
}
|
|
1854
|
+
set value(t) {
|
|
1855
|
+
this.exposeMask ? (this.exposeMask.value = t, this.currentMask = this.exposeMask, this._applyDispatch()) : super.value = t;
|
|
1856
|
+
}
|
|
1857
|
+
get unmaskedValue() {
|
|
1858
|
+
return this.exposeMask ? this.exposeMask.unmaskedValue : this.currentMask ? this.currentMask.unmaskedValue : "";
|
|
1859
|
+
}
|
|
1860
|
+
set unmaskedValue(t) {
|
|
1861
|
+
this.exposeMask ? (this.exposeMask.unmaskedValue = t, this.currentMask = this.exposeMask, this._applyDispatch()) : super.unmaskedValue = t;
|
|
1862
|
+
}
|
|
1863
|
+
get typedValue() {
|
|
1864
|
+
return this.exposeMask ? this.exposeMask.typedValue : this.currentMask ? this.currentMask.typedValue : "";
|
|
1865
|
+
}
|
|
1866
|
+
set typedValue(t) {
|
|
1867
|
+
if (this.exposeMask) {
|
|
1868
|
+
this.exposeMask.typedValue = t, this.currentMask = this.exposeMask, this._applyDispatch();
|
|
1869
|
+
return;
|
|
1870
|
+
}
|
|
1871
|
+
let e = String(t);
|
|
1872
|
+
this.currentMask && (this.currentMask.typedValue = t, e = this.currentMask.unmaskedValue), this.unmaskedValue = e;
|
|
1873
|
+
}
|
|
1874
|
+
get displayValue() {
|
|
1875
|
+
return this.currentMask ? this.currentMask.displayValue : "";
|
|
1876
|
+
}
|
|
1877
|
+
get isComplete() {
|
|
1878
|
+
var t;
|
|
1879
|
+
return !!((t = this.currentMask) != null && t.isComplete);
|
|
1880
|
+
}
|
|
1881
|
+
get isFilled() {
|
|
1882
|
+
var t;
|
|
1883
|
+
return !!((t = this.currentMask) != null && t.isFilled);
|
|
1884
|
+
}
|
|
1885
|
+
remove(t, e) {
|
|
1886
|
+
const i = new m();
|
|
1887
|
+
return this.currentMask && i.aggregate(this.currentMask.remove(t, e)).aggregate(this._applyDispatch()), i;
|
|
1888
|
+
}
|
|
1889
|
+
get state() {
|
|
1890
|
+
var t;
|
|
1891
|
+
return {
|
|
1892
|
+
...super.state,
|
|
1893
|
+
_rawInputValue: this.rawInputValue,
|
|
1894
|
+
compiledMasks: this.compiledMasks.map((e) => e.state),
|
|
1895
|
+
currentMaskRef: this.currentMask,
|
|
1896
|
+
currentMask: (t = this.currentMask) == null ? void 0 : t.state
|
|
1897
|
+
};
|
|
1898
|
+
}
|
|
1899
|
+
set state(t) {
|
|
1900
|
+
const {
|
|
1901
|
+
compiledMasks: e,
|
|
1902
|
+
currentMaskRef: i,
|
|
1903
|
+
currentMask: s,
|
|
1904
|
+
...n
|
|
1905
|
+
} = t;
|
|
1906
|
+
e && this.compiledMasks.forEach((r, u) => r.state = e[u]), i != null && (this.currentMask = i, this.currentMask.state = s), super.state = n;
|
|
1907
|
+
}
|
|
1908
|
+
extractInput(t, e, i) {
|
|
1909
|
+
return this.currentMask ? this.currentMask.extractInput(t, e, i) : "";
|
|
1910
|
+
}
|
|
1911
|
+
extractTail(t, e) {
|
|
1912
|
+
return this.currentMask ? this.currentMask.extractTail(t, e) : super.extractTail(t, e);
|
|
1913
|
+
}
|
|
1914
|
+
doCommit() {
|
|
1915
|
+
this.currentMask && this.currentMask.doCommit(), super.doCommit();
|
|
1916
|
+
}
|
|
1917
|
+
nearestInputPos(t, e) {
|
|
1918
|
+
return this.currentMask ? this.currentMask.nearestInputPos(t, e) : super.nearestInputPos(t, e);
|
|
1919
|
+
}
|
|
1920
|
+
get overwrite() {
|
|
1921
|
+
return this.currentMask ? this.currentMask.overwrite : this._overwrite;
|
|
1922
|
+
}
|
|
1923
|
+
set overwrite(t) {
|
|
1924
|
+
this._overwrite = t;
|
|
1925
|
+
}
|
|
1926
|
+
get eager() {
|
|
1927
|
+
return this.currentMask ? this.currentMask.eager : this._eager;
|
|
1928
|
+
}
|
|
1929
|
+
set eager(t) {
|
|
1930
|
+
this._eager = t;
|
|
1931
|
+
}
|
|
1932
|
+
get skipInvalid() {
|
|
1933
|
+
return this.currentMask ? this.currentMask.skipInvalid : this._skipInvalid;
|
|
1934
|
+
}
|
|
1935
|
+
set skipInvalid(t) {
|
|
1936
|
+
this._skipInvalid = t;
|
|
1937
|
+
}
|
|
1938
|
+
get autofix() {
|
|
1939
|
+
return this.currentMask ? this.currentMask.autofix : this._autofix;
|
|
1940
|
+
}
|
|
1941
|
+
set autofix(t) {
|
|
1942
|
+
this._autofix = t;
|
|
1943
|
+
}
|
|
1944
|
+
maskEquals(t) {
|
|
1945
|
+
return Array.isArray(t) ? this.compiledMasks.every((e, i) => {
|
|
1946
|
+
if (!t[i]) return;
|
|
1947
|
+
const {
|
|
1948
|
+
mask: s,
|
|
1949
|
+
...n
|
|
1950
|
+
} = t[i];
|
|
1951
|
+
return D(e, n) && e.maskEquals(s);
|
|
1952
|
+
}) : super.maskEquals(t);
|
|
1953
|
+
}
|
|
1954
|
+
typedValueEquals(t) {
|
|
1955
|
+
var e;
|
|
1956
|
+
return !!((e = this.currentMask) != null && e.typedValueEquals(t));
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
L.DEFAULTS = {
|
|
1960
|
+
...v.DEFAULTS,
|
|
1961
|
+
dispatch: (a, t, e, i) => {
|
|
1962
|
+
if (!t.compiledMasks.length) return;
|
|
1963
|
+
const s = t.rawInputValue, n = t.compiledMasks.map((r, u) => {
|
|
1964
|
+
const l = t.currentMask === r, c = l ? r.displayValue.length : r.nearestInputPos(r.displayValue.length, h.FORCE_LEFT);
|
|
1965
|
+
return r.rawInputValue !== s ? (r.reset(), r.append(s, {
|
|
1966
|
+
raw: !0
|
|
1967
|
+
})) : l || r.remove(c), r.append(a, t.currentMaskFlags(e)), r.appendTail(i), {
|
|
1968
|
+
index: u,
|
|
1969
|
+
weight: r.rawInputValue.length,
|
|
1970
|
+
totalInputPositions: r.totalInputPositions(0, Math.max(c, r.nearestInputPos(r.displayValue.length, h.FORCE_LEFT)))
|
|
1971
|
+
};
|
|
1972
|
+
});
|
|
1973
|
+
return n.sort((r, u) => u.weight - r.weight || u.totalInputPositions - r.totalInputPositions), t.compiledMasks[n[0].index];
|
|
1974
|
+
}
|
|
1975
|
+
};
|
|
1976
|
+
d.MaskedDynamic = L;
|
|
1977
|
+
class N extends x {
|
|
1978
|
+
constructor(t) {
|
|
1979
|
+
super({
|
|
1980
|
+
...N.DEFAULTS,
|
|
1981
|
+
...t
|
|
1982
|
+
});
|
|
1983
|
+
}
|
|
1984
|
+
updateOptions(t) {
|
|
1985
|
+
super.updateOptions(t);
|
|
1986
|
+
}
|
|
1987
|
+
_update(t) {
|
|
1988
|
+
const {
|
|
1989
|
+
enum: e,
|
|
1990
|
+
...i
|
|
1991
|
+
} = t;
|
|
1992
|
+
if (e) {
|
|
1993
|
+
const s = e.map((u) => u.length), n = Math.min(...s), r = Math.max(...s) - n;
|
|
1994
|
+
i.mask = "*".repeat(n), r && (i.mask += "[" + "*".repeat(r) + "]"), this.enum = e;
|
|
1995
|
+
}
|
|
1996
|
+
super._update(i);
|
|
1997
|
+
}
|
|
1998
|
+
_appendCharRaw(t, e) {
|
|
1999
|
+
e === void 0 && (e = {});
|
|
2000
|
+
const i = Math.min(this.nearestInputPos(0, h.FORCE_RIGHT), this.value.length), s = this.enum.filter((n) => this.matchValue(n, this.unmaskedValue + t, i));
|
|
2001
|
+
if (s.length) {
|
|
2002
|
+
s.length === 1 && this._forEachBlocksInRange(0, this.value.length, (r, u) => {
|
|
2003
|
+
const l = s[0][u];
|
|
2004
|
+
u >= this.value.length || l === r.value || (r.reset(), r._appendChar(l, e));
|
|
2005
|
+
});
|
|
2006
|
+
const n = super._appendCharRaw(s[0][this.value.length], e);
|
|
2007
|
+
return s.length === 1 && s[0].slice(this.unmaskedValue.length).split("").forEach((r) => n.aggregate(super._appendCharRaw(r))), n;
|
|
2008
|
+
}
|
|
2009
|
+
return new m({
|
|
2010
|
+
skip: !this.isComplete
|
|
2011
|
+
});
|
|
2012
|
+
}
|
|
2013
|
+
extractTail(t, e) {
|
|
2014
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new y("", t);
|
|
2015
|
+
}
|
|
2016
|
+
remove(t, e) {
|
|
2017
|
+
if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), t === e) return new m();
|
|
2018
|
+
const i = Math.min(super.nearestInputPos(0, h.FORCE_RIGHT), this.value.length);
|
|
2019
|
+
let s;
|
|
2020
|
+
for (s = t; s >= 0 && !(this.enum.filter((u) => this.matchValue(u, this.value.slice(i, s), i)).length > 1); --s)
|
|
2021
|
+
;
|
|
2022
|
+
const n = super.remove(s, e);
|
|
2023
|
+
return n.tailShift += s - t, n;
|
|
2024
|
+
}
|
|
2025
|
+
get isComplete() {
|
|
2026
|
+
return this.enum.indexOf(this.value) >= 0;
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
N.DEFAULTS = {
|
|
2030
|
+
...x.DEFAULTS,
|
|
2031
|
+
matchValue: (a, t, e) => a.indexOf(t, e) === e
|
|
2032
|
+
};
|
|
2033
|
+
d.MaskedEnum = N;
|
|
2034
|
+
class At extends v {
|
|
2035
|
+
/** */
|
|
2036
|
+
/** Enable characters overwriting */
|
|
2037
|
+
/** */
|
|
2038
|
+
/** */
|
|
2039
|
+
/** */
|
|
2040
|
+
updateOptions(t) {
|
|
2041
|
+
super.updateOptions(t);
|
|
2042
|
+
}
|
|
2043
|
+
_update(t) {
|
|
2044
|
+
super._update({
|
|
2045
|
+
...t,
|
|
2046
|
+
validate: t.mask
|
|
2047
|
+
});
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
d.MaskedFunction = At;
|
|
2051
|
+
var tt;
|
|
2052
|
+
class C extends v {
|
|
2053
|
+
/** Single char */
|
|
2054
|
+
/** Single char */
|
|
2055
|
+
/** Array of single chars */
|
|
2056
|
+
/** */
|
|
2057
|
+
/** */
|
|
2058
|
+
/** Digits after point */
|
|
2059
|
+
/** Flag to remove leading and trailing zeros in the end of editing */
|
|
2060
|
+
/** Flag to pad trailing zeros after point in the end of editing */
|
|
2061
|
+
/** Enable characters overwriting */
|
|
2062
|
+
/** */
|
|
2063
|
+
/** */
|
|
2064
|
+
/** */
|
|
2065
|
+
/** Format typed value to string */
|
|
2066
|
+
/** Parse string to get typed value */
|
|
2067
|
+
constructor(t) {
|
|
2068
|
+
super({
|
|
2069
|
+
...C.DEFAULTS,
|
|
2070
|
+
...t
|
|
2071
|
+
});
|
|
2072
|
+
}
|
|
2073
|
+
updateOptions(t) {
|
|
2074
|
+
super.updateOptions(t);
|
|
2075
|
+
}
|
|
2076
|
+
_update(t) {
|
|
2077
|
+
super._update(t), this._updateRegExps();
|
|
2078
|
+
}
|
|
2079
|
+
_updateRegExps() {
|
|
2080
|
+
const t = "^" + (this.allowNegative ? "[+|\\-]?" : ""), e = "\\d*", i = (this.scale ? "(" + U(this.radix) + "\\d{0," + this.scale + "})?" : "") + "$";
|
|
2081
|
+
this._numberRegExp = new RegExp(t + e + i), this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(U).join("") + "]", "g"), this._thousandsSeparatorRegExp = new RegExp(U(this.thousandsSeparator), "g");
|
|
2082
|
+
}
|
|
2083
|
+
_removeThousandsSeparators(t) {
|
|
2084
|
+
return t.replace(this._thousandsSeparatorRegExp, "");
|
|
2085
|
+
}
|
|
2086
|
+
_insertThousandsSeparators(t) {
|
|
2087
|
+
const e = t.split(this.radix);
|
|
2088
|
+
return e[0] = e[0].replace(/\B(?=(\d{3})+(?!\d))/g, this.thousandsSeparator), e.join(this.radix);
|
|
2089
|
+
}
|
|
2090
|
+
doPrepareChar(t, e) {
|
|
2091
|
+
e === void 0 && (e = {});
|
|
2092
|
+
const [i, s] = super.doPrepareChar(this._removeThousandsSeparators(this.scale && this.mapToRadix.length && /*
|
|
2093
|
+
radix should be mapped when
|
|
2094
|
+
1) input is done from keyboard = flags.input && flags.raw
|
|
2095
|
+
2) unmasked value is set = !flags.input && !flags.raw
|
|
2096
|
+
and should not be mapped when
|
|
2097
|
+
1) value is set = flags.input && !flags.raw
|
|
2098
|
+
2) raw value is set = !flags.input && flags.raw
|
|
2099
|
+
*/
|
|
2100
|
+
(e.input && e.raw || !e.input && !e.raw) ? t.replace(this._mapToRadixRegExp, this.radix) : t), e);
|
|
2101
|
+
return t && !i && (s.skip = !0), i && !this.allowPositive && !this.value && i !== "-" && s.aggregate(this._appendChar("-")), [i, s];
|
|
2102
|
+
}
|
|
2103
|
+
_separatorsCount(t, e) {
|
|
2104
|
+
e === void 0 && (e = !1);
|
|
2105
|
+
let i = 0;
|
|
2106
|
+
for (let s = 0; s < t; ++s)
|
|
2107
|
+
this._value.indexOf(this.thousandsSeparator, s) === s && (++i, e && (t += this.thousandsSeparator.length));
|
|
2108
|
+
return i;
|
|
2109
|
+
}
|
|
2110
|
+
_separatorsCountFromSlice(t) {
|
|
2111
|
+
return t === void 0 && (t = this._value), this._separatorsCount(this._removeThousandsSeparators(t).length, !0);
|
|
2112
|
+
}
|
|
2113
|
+
extractInput(t, e, i) {
|
|
2114
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), [t, e] = this._adjustRangeWithSeparators(t, e), this._removeThousandsSeparators(super.extractInput(t, e, i));
|
|
2115
|
+
}
|
|
2116
|
+
_appendCharRaw(t, e) {
|
|
2117
|
+
e === void 0 && (e = {});
|
|
2118
|
+
const i = e.tail && e._beforeTailState ? e._beforeTailState._value : this._value, s = this._separatorsCountFromSlice(i);
|
|
2119
|
+
this._value = this._removeThousandsSeparators(this.value);
|
|
2120
|
+
const n = this._value;
|
|
2121
|
+
this._value += t;
|
|
2122
|
+
const r = this.number;
|
|
2123
|
+
let u = !isNaN(r), l = !1;
|
|
2124
|
+
if (u) {
|
|
2125
|
+
let b;
|
|
2126
|
+
this.min != null && this.min < 0 && this.number < this.min && (b = this.min), this.max != null && this.max > 0 && this.number > this.max && (b = this.max), b != null && (this.autofix ? (this._value = this.format(b, this).replace(C.UNMASKED_RADIX, this.radix), l || (l = n === this._value && !e.tail)) : u = !1), u && (u = !!this._value.match(this._numberRegExp));
|
|
2127
|
+
}
|
|
2128
|
+
let c;
|
|
2129
|
+
u ? c = new m({
|
|
2130
|
+
inserted: this._value.slice(n.length),
|
|
2131
|
+
rawInserted: l ? "" : t,
|
|
2132
|
+
skip: l
|
|
2133
|
+
}) : (this._value = n, c = new m()), this._value = this._insertThousandsSeparators(this._value);
|
|
2134
|
+
const g = e.tail && e._beforeTailState ? e._beforeTailState._value : this._value, k = this._separatorsCountFromSlice(g);
|
|
2135
|
+
return c.tailShift += (k - s) * this.thousandsSeparator.length, c;
|
|
2136
|
+
}
|
|
2137
|
+
_findSeparatorAround(t) {
|
|
2138
|
+
if (this.thousandsSeparator) {
|
|
2139
|
+
const e = t - this.thousandsSeparator.length + 1, i = this.value.indexOf(this.thousandsSeparator, e);
|
|
2140
|
+
if (i <= t) return i;
|
|
2141
|
+
}
|
|
2142
|
+
return -1;
|
|
2143
|
+
}
|
|
2144
|
+
_adjustRangeWithSeparators(t, e) {
|
|
2145
|
+
const i = this._findSeparatorAround(t);
|
|
2146
|
+
i >= 0 && (t = i);
|
|
2147
|
+
const s = this._findSeparatorAround(e);
|
|
2148
|
+
return s >= 0 && (e = s + this.thousandsSeparator.length), [t, e];
|
|
2149
|
+
}
|
|
2150
|
+
remove(t, e) {
|
|
2151
|
+
t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), [t, e] = this._adjustRangeWithSeparators(t, e);
|
|
2152
|
+
const i = this.value.slice(0, t), s = this.value.slice(e), n = this._separatorsCount(i.length);
|
|
2153
|
+
this._value = this._insertThousandsSeparators(this._removeThousandsSeparators(i + s));
|
|
2154
|
+
const r = this._separatorsCountFromSlice(i);
|
|
2155
|
+
return new m({
|
|
2156
|
+
tailShift: (r - n) * this.thousandsSeparator.length
|
|
2157
|
+
});
|
|
2158
|
+
}
|
|
2159
|
+
nearestInputPos(t, e) {
|
|
2160
|
+
if (!this.thousandsSeparator) return t;
|
|
2161
|
+
switch (e) {
|
|
2162
|
+
case h.NONE:
|
|
2163
|
+
case h.LEFT:
|
|
2164
|
+
case h.FORCE_LEFT: {
|
|
2165
|
+
const i = this._findSeparatorAround(t - 1);
|
|
2166
|
+
if (i >= 0) {
|
|
2167
|
+
const s = i + this.thousandsSeparator.length;
|
|
2168
|
+
if (t < s || this.value.length <= s || e === h.FORCE_LEFT)
|
|
2169
|
+
return i;
|
|
2170
|
+
}
|
|
2171
|
+
break;
|
|
2172
|
+
}
|
|
2173
|
+
case h.RIGHT:
|
|
2174
|
+
case h.FORCE_RIGHT: {
|
|
2175
|
+
const i = this._findSeparatorAround(t);
|
|
2176
|
+
if (i >= 0)
|
|
2177
|
+
return i + this.thousandsSeparator.length;
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
return t;
|
|
2181
|
+
}
|
|
2182
|
+
doCommit() {
|
|
2183
|
+
if (this.value) {
|
|
2184
|
+
const t = this.number;
|
|
2185
|
+
let e = t;
|
|
2186
|
+
this.min != null && (e = Math.max(e, this.min)), this.max != null && (e = Math.min(e, this.max)), e !== t && (this.unmaskedValue = this.format(e, this));
|
|
2187
|
+
let i = this.value;
|
|
2188
|
+
this.normalizeZeros && (i = this._normalizeZeros(i)), this.padFractionalZeros && this.scale > 0 && (i = this._padFractionalZeros(i)), this._value = i;
|
|
2189
|
+
}
|
|
2190
|
+
super.doCommit();
|
|
2191
|
+
}
|
|
2192
|
+
_normalizeZeros(t) {
|
|
2193
|
+
const e = this._removeThousandsSeparators(t).split(this.radix);
|
|
2194
|
+
return e[0] = e[0].replace(/^(\D*)(0*)(\d*)/, (i, s, n, r) => s + r), t.length && !/\d$/.test(e[0]) && (e[0] = e[0] + "0"), e.length > 1 && (e[1] = e[1].replace(/0*$/, ""), e[1].length || (e.length = 1)), this._insertThousandsSeparators(e.join(this.radix));
|
|
2195
|
+
}
|
|
2196
|
+
_padFractionalZeros(t) {
|
|
2197
|
+
if (!t) return t;
|
|
2198
|
+
const e = t.split(this.radix);
|
|
2199
|
+
return e.length < 2 && e.push(""), e[1] = e[1].padEnd(this.scale, "0"), e.join(this.radix);
|
|
2200
|
+
}
|
|
2201
|
+
doSkipInvalid(t, e, i) {
|
|
2202
|
+
e === void 0 && (e = {});
|
|
2203
|
+
const s = this.scale === 0 && t !== this.thousandsSeparator && (t === this.radix || t === C.UNMASKED_RADIX || this.mapToRadix.includes(t));
|
|
2204
|
+
return super.doSkipInvalid(t, e, i) && !s;
|
|
2205
|
+
}
|
|
2206
|
+
get unmaskedValue() {
|
|
2207
|
+
return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix, C.UNMASKED_RADIX);
|
|
2208
|
+
}
|
|
2209
|
+
set unmaskedValue(t) {
|
|
2210
|
+
super.unmaskedValue = t;
|
|
2211
|
+
}
|
|
2212
|
+
get typedValue() {
|
|
2213
|
+
return this.parse(this.unmaskedValue, this);
|
|
2214
|
+
}
|
|
2215
|
+
set typedValue(t) {
|
|
2216
|
+
this.rawInputValue = this.format(t, this).replace(C.UNMASKED_RADIX, this.radix);
|
|
2217
|
+
}
|
|
2218
|
+
/** Parsed Number */
|
|
2219
|
+
get number() {
|
|
2220
|
+
return this.typedValue;
|
|
2221
|
+
}
|
|
2222
|
+
set number(t) {
|
|
2223
|
+
this.typedValue = t;
|
|
2224
|
+
}
|
|
2225
|
+
get allowNegative() {
|
|
2226
|
+
return this.min != null && this.min < 0 || this.max != null && this.max < 0;
|
|
2227
|
+
}
|
|
2228
|
+
get allowPositive() {
|
|
2229
|
+
return this.min != null && this.min > 0 || this.max != null && this.max > 0;
|
|
2230
|
+
}
|
|
2231
|
+
typedValueEquals(t) {
|
|
2232
|
+
return (super.typedValueEquals(t) || C.EMPTY_VALUES.includes(t) && C.EMPTY_VALUES.includes(this.typedValue)) && !(t === 0 && this.value === "");
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
tt = C;
|
|
2236
|
+
C.UNMASKED_RADIX = ".";
|
|
2237
|
+
C.EMPTY_VALUES = [...v.EMPTY_VALUES, 0];
|
|
2238
|
+
C.DEFAULTS = {
|
|
2239
|
+
...v.DEFAULTS,
|
|
2240
|
+
mask: Number,
|
|
2241
|
+
radix: ",",
|
|
2242
|
+
thousandsSeparator: "",
|
|
2243
|
+
mapToRadix: [tt.UNMASKED_RADIX],
|
|
2244
|
+
min: Number.MIN_SAFE_INTEGER,
|
|
2245
|
+
max: Number.MAX_SAFE_INTEGER,
|
|
2246
|
+
scale: 2,
|
|
2247
|
+
normalizeZeros: !0,
|
|
2248
|
+
padFractionalZeros: !1,
|
|
2249
|
+
parse: Number,
|
|
2250
|
+
format: (a) => a.toLocaleString("en-US", {
|
|
2251
|
+
useGrouping: !1,
|
|
2252
|
+
maximumFractionDigits: 20
|
|
2253
|
+
})
|
|
2254
|
+
};
|
|
2255
|
+
d.MaskedNumber = C;
|
|
2256
|
+
const P = {
|
|
2257
|
+
MASKED: "value",
|
|
2258
|
+
UNMASKED: "unmaskedValue",
|
|
2259
|
+
TYPED: "typedValue"
|
|
2260
|
+
};
|
|
2261
|
+
function et(a, t, e) {
|
|
2262
|
+
t === void 0 && (t = P.MASKED), e === void 0 && (e = P.MASKED);
|
|
2263
|
+
const i = A(a);
|
|
2264
|
+
return (s) => i.runIsolated((n) => (n[t] = s, n[e]));
|
|
2265
|
+
}
|
|
2266
|
+
function Ft(a, t, e, i) {
|
|
2267
|
+
return et(t, e, i)(a);
|
|
2268
|
+
}
|
|
2269
|
+
d.PIPE_TYPE = P;
|
|
2270
|
+
d.createPipe = et;
|
|
2271
|
+
d.pipe = Ft;
|
|
2272
|
+
class wt extends x {
|
|
2273
|
+
get repeatFrom() {
|
|
2274
|
+
var t;
|
|
2275
|
+
return (t = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? t : 0;
|
|
2276
|
+
}
|
|
2277
|
+
get repeatTo() {
|
|
2278
|
+
var t;
|
|
2279
|
+
return (t = Array.isArray(this.repeat) ? this.repeat[1] : this.repeat) != null ? t : 1 / 0;
|
|
2280
|
+
}
|
|
2281
|
+
constructor(t) {
|
|
2282
|
+
super(t);
|
|
2283
|
+
}
|
|
2284
|
+
updateOptions(t) {
|
|
2285
|
+
super.updateOptions(t);
|
|
2286
|
+
}
|
|
2287
|
+
_update(t) {
|
|
2288
|
+
var e, i, s;
|
|
2289
|
+
const {
|
|
2290
|
+
repeat: n,
|
|
2291
|
+
...r
|
|
2292
|
+
} = I(t);
|
|
2293
|
+
this._blockOpts = Object.assign({}, this._blockOpts, r);
|
|
2294
|
+
const u = A(this._blockOpts);
|
|
2295
|
+
this.repeat = (e = (i = n ?? u.repeat) != null ? i : this.repeat) != null ? e : 1 / 0, super._update({
|
|
2296
|
+
mask: "m".repeat(Math.max(this.repeatTo === 1 / 0 && ((s = this._blocks) == null ? void 0 : s.length) || 0, this.repeatFrom)),
|
|
2297
|
+
blocks: {
|
|
2298
|
+
m: u
|
|
2299
|
+
},
|
|
2300
|
+
eager: u.eager,
|
|
2301
|
+
overwrite: u.overwrite,
|
|
2302
|
+
skipInvalid: u.skipInvalid,
|
|
2303
|
+
lazy: u.lazy,
|
|
2304
|
+
placeholderChar: u.placeholderChar,
|
|
2305
|
+
displayChar: u.displayChar
|
|
2306
|
+
});
|
|
2307
|
+
}
|
|
2308
|
+
_allocateBlock(t) {
|
|
2309
|
+
if (t < this._blocks.length) return this._blocks[t];
|
|
2310
|
+
if (this.repeatTo === 1 / 0 || this._blocks.length < this.repeatTo)
|
|
2311
|
+
return this._blocks.push(A(this._blockOpts)), this.mask += "m", this._blocks[this._blocks.length - 1];
|
|
2312
|
+
}
|
|
2313
|
+
_appendCharRaw(t, e) {
|
|
2314
|
+
e === void 0 && (e = {});
|
|
2315
|
+
const i = new m();
|
|
2316
|
+
for (
|
|
2317
|
+
let l = (s = (n = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : n.index) != null ? s : Math.max(this._blocks.length - 1, 0), c, g;
|
|
2318
|
+
// try to get a block or
|
|
2319
|
+
// try to allocate a new block if not allocated already
|
|
2320
|
+
c = (r = this._blocks[l]) != null ? r : g = !g && this._allocateBlock(l);
|
|
2321
|
+
++l
|
|
2322
|
+
) {
|
|
2323
|
+
var s, n, r, u;
|
|
2324
|
+
const k = c._appendChar(t, {
|
|
2325
|
+
...e,
|
|
2326
|
+
_beforeTailState: (u = e._beforeTailState) == null || (u = u._blocks) == null ? void 0 : u[l]
|
|
2327
|
+
});
|
|
2328
|
+
if (k.skip && g) {
|
|
2329
|
+
this._blocks.pop(), this.mask = this.mask.slice(1);
|
|
2330
|
+
break;
|
|
2331
|
+
}
|
|
2332
|
+
if (i.aggregate(k), k.consumed) break;
|
|
2333
|
+
}
|
|
2334
|
+
return i;
|
|
2335
|
+
}
|
|
2336
|
+
_trimEmptyTail(t, e) {
|
|
2337
|
+
var i, s;
|
|
2338
|
+
t === void 0 && (t = 0);
|
|
2339
|
+
const n = Math.max(((i = this._mapPosToBlock(t)) == null ? void 0 : i.index) || 0, this.repeatFrom, 0);
|
|
2340
|
+
let r;
|
|
2341
|
+
e != null && (r = (s = this._mapPosToBlock(e)) == null ? void 0 : s.index), r == null && (r = this._blocks.length - 1);
|
|
2342
|
+
let u = 0;
|
|
2343
|
+
for (let l = r; n <= l && !this._blocks[l].unmaskedValue; --l, ++u)
|
|
2344
|
+
;
|
|
2345
|
+
u && (this._blocks.splice(r - u + 1, u), this.mask = this.mask.slice(u));
|
|
2346
|
+
}
|
|
2347
|
+
reset() {
|
|
2348
|
+
super.reset(), this._trimEmptyTail();
|
|
2349
|
+
}
|
|
2350
|
+
remove(t, e) {
|
|
2351
|
+
t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length);
|
|
2352
|
+
const i = super.remove(t, e);
|
|
2353
|
+
return this._trimEmptyTail(t, e), i;
|
|
2354
|
+
}
|
|
2355
|
+
totalInputPositions(t, e) {
|
|
2356
|
+
return t === void 0 && (t = 0), e == null && this.repeatTo === 1 / 0 ? 1 / 0 : super.totalInputPositions(t, e);
|
|
2357
|
+
}
|
|
2358
|
+
get state() {
|
|
2359
|
+
return super.state;
|
|
2360
|
+
}
|
|
2361
|
+
set state(t) {
|
|
2362
|
+
this._blocks.length = t._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = t;
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
d.RepeatBlock = wt;
|
|
2366
|
+
try {
|
|
2367
|
+
globalThis.IMask = d;
|
|
2368
|
+
} catch {
|
|
2369
|
+
}
|
|
2370
|
+
const Bt = at`
|
|
2371
|
+
:host {
|
|
2372
|
+
display: block;
|
|
2373
|
+
line-height: normal;
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
:host([data-user-invalid])::part(base) {
|
|
2377
|
+
border-color: var(--cx-input-invalid-border-color);
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
:host([data-user-invalid]:focus-within)::part(base) {
|
|
2381
|
+
border-color: var(--cx-input-invalid-border-color);
|
|
2382
|
+
box-shadow: var(--cx-input-invalid-shadow);
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
.input {
|
|
2386
|
+
flex: 1 1 auto;
|
|
2387
|
+
display: inline-flex;
|
|
2388
|
+
align-items: stretch;
|
|
2389
|
+
justify-content: start;
|
|
2390
|
+
position: relative;
|
|
2391
|
+
width: 100%;
|
|
2392
|
+
font-family: var(--cx-input-font-family);
|
|
2393
|
+
font-weight: var(--cx-input-font-weight);
|
|
2394
|
+
letter-spacing: var(--cx-input-letter-spacing);
|
|
2395
|
+
vertical-align: middle;
|
|
2396
|
+
overflow: hidden;
|
|
2397
|
+
cursor: text;
|
|
2398
|
+
transition:
|
|
2399
|
+
var(--cx-transition-fast) color,
|
|
2400
|
+
var(--cx-transition-fast) border,
|
|
2401
|
+
var(--cx-transition-fast) box-shadow,
|
|
2402
|
+
var(--cx-transition-fast) background-color;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
/* Standard inputs */
|
|
2406
|
+
.input--standard {
|
|
2407
|
+
background-color: var(--cx-input-background-color);
|
|
2408
|
+
border: solid var(--cx-input-border-width) var(--cx-input-border-color);
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2411
|
+
.input--standard:hover:not(.input--disabled) {
|
|
2412
|
+
background-color: var(--cx-input-background-color-hover);
|
|
2413
|
+
border-color: var(--cx-input-border-color-hover);
|
|
2414
|
+
}
|
|
2415
|
+
|
|
2416
|
+
.input--standard.input--focused:not(.input--disabled) {
|
|
2417
|
+
background-color: var(--cx-input-background-color-focus);
|
|
2418
|
+
border-color: var(--cx-input-border-color-focus);
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
.input--standard.input--focused:not(.input--disabled) .input__control {
|
|
2422
|
+
color: var(--cx-input-color-focus);
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
.input--standard.input--disabled {
|
|
2426
|
+
background-color: var(--cx-input-background-color-disabled);
|
|
2427
|
+
border-color: var(--cx-input-border-color-disabled);
|
|
2428
|
+
opacity: 0.5;
|
|
2429
|
+
cursor: default;
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
.input--standard.input--disabled .input__control {
|
|
2433
|
+
color: var(--cx-input-color-disabled);
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
.input--standard.input--disabled .input__control::placeholder {
|
|
2437
|
+
color: var(--cx-input-placeholder-color-disabled);
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
/* Filled inputs */
|
|
2441
|
+
.input--filled {
|
|
2442
|
+
border: none;
|
|
2443
|
+
background-color: var(--cx-input-filled-background-color);
|
|
2444
|
+
color: var(--cx-input-color);
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
.input--filled:hover:not(.input--disabled) {
|
|
2448
|
+
background-color: var(--cx-input-filled-background-color-hover);
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
.input--filled.input--focused:not(.input--disabled) {
|
|
2452
|
+
background-color: var(--cx-input-filled-background-color-focus);
|
|
2453
|
+
outline: var(--cx-focus-ring);
|
|
2454
|
+
outline-offset: var(--cx-focus-ring-offset);
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
.input--filled.input--disabled {
|
|
2458
|
+
background-color: var(--cx-input-filled-background-color-disabled);
|
|
2459
|
+
opacity: 0.5;
|
|
2460
|
+
cursor: default;
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
.input__control {
|
|
2464
|
+
font: inherit;
|
|
2465
|
+
min-width: 0;
|
|
2466
|
+
color: var(--cx-input-color);
|
|
2467
|
+
border: none;
|
|
2468
|
+
background: inherit;
|
|
2469
|
+
box-shadow: none;
|
|
2470
|
+
padding: 0;
|
|
2471
|
+
margin: 0;
|
|
2472
|
+
cursor: inherit;
|
|
2473
|
+
-webkit-appearance: none;
|
|
2474
|
+
line-height: var(--cx-line-height-medium);
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
.form-control--has-label .input__control {
|
|
2478
|
+
padding-top: var(--cx-spacing-x-small);
|
|
2479
|
+
padding-bottom: var(--cx-spacing-2x-small);
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
.input__control::-webkit-search-decoration,
|
|
2483
|
+
.input__control::-webkit-search-cancel-button,
|
|
2484
|
+
.input__control::-webkit-search-results-button,
|
|
2485
|
+
.input__control::-webkit-search-results-decoration {
|
|
2486
|
+
-webkit-appearance: none;
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
.input__control:-webkit-autofill,
|
|
2490
|
+
.input__control:-webkit-autofill:hover,
|
|
2491
|
+
.input__control:-webkit-autofill:focus,
|
|
2492
|
+
.input__control:-webkit-autofill:active {
|
|
2493
|
+
box-shadow: 0 0 0 var(--cx-input-height-large)
|
|
2494
|
+
var(--cx-input-background-color-hover) inset !important;
|
|
2495
|
+
-webkit-text-fill-color: var(--cx-color-primary-500);
|
|
2496
|
+
caret-color: var(--cx-input-color);
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
.input--filled .input__control:-webkit-autofill,
|
|
2500
|
+
.input--filled .input__control:-webkit-autofill:hover,
|
|
2501
|
+
.input--filled .input__control:-webkit-autofill:focus,
|
|
2502
|
+
.input--filled .input__control:-webkit-autofill:active {
|
|
2503
|
+
box-shadow: 0 0 0 var(--cx-input-height-large)
|
|
2504
|
+
var(--cx-input-filled-background-color) inset !important;
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
.input__control::placeholder {
|
|
2508
|
+
color: var(--cx-input-placeholder-color);
|
|
2509
|
+
user-select: none;
|
|
2510
|
+
-webkit-user-select: none;
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
.input:hover:not(.input--disabled) .input__control {
|
|
2514
|
+
color: var(--cx-input-color-hover);
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
.input__control:focus {
|
|
2518
|
+
outline: none;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
.input__prefix,
|
|
2522
|
+
.input__suffix {
|
|
2523
|
+
display: inline-flex;
|
|
2524
|
+
flex: 0 0 auto;
|
|
2525
|
+
align-items: center;
|
|
2526
|
+
cursor: default;
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
.input__prefix ::slotted(cx-icon),
|
|
2530
|
+
.input__suffix ::slotted(cx-icon) {
|
|
2531
|
+
color: var(--cx-input-icon-color);
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
.input__character-count {
|
|
2535
|
+
display: flex;
|
|
2536
|
+
align-items: center;
|
|
2537
|
+
justify-content: flex-end;
|
|
2538
|
+
color: var(--cx-input-suffix-color, var(--cx-input-color));
|
|
2539
|
+
font-size: var(--cx-input-font-size);
|
|
2540
|
+
font-weight: var(--cx-input-font-weight);
|
|
2541
|
+
letter-spacing: var(--cx-input-letter-spacing);
|
|
2542
|
+
line-height: var(--cx-input-line-height);
|
|
2543
|
+
padding-inline-end: var(--cx-spacing-x-small);
|
|
2544
|
+
padding-top: var(--cx-spacing-2x-small);
|
|
2545
|
+
white-space: nowrap;
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
/*
|
|
2549
|
+
* Size modifiers
|
|
2550
|
+
*/
|
|
2551
|
+
|
|
2552
|
+
.input--small {
|
|
2553
|
+
border-radius: var(--cx-input-border-radius-small);
|
|
2554
|
+
font-size: var(--cx-input-font-size-small);
|
|
2555
|
+
min-height: var(--cx-input-height-small);
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
.input--small .input__control {
|
|
2559
|
+
padding-left: var(--cx-input-spacing-small);
|
|
2560
|
+
padding-right: var(--cx-input-spacing-small);
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
.input--small .input__clear,
|
|
2564
|
+
.input--small .input__password-toggle {
|
|
2565
|
+
width: calc(1em + var(--cx-spacing-x-small) * 2);
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
.input--small .input__prefix ::slotted(*) {
|
|
2569
|
+
margin-inline-start: var(--cx-spacing-x-small);
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
.input--small .input__suffix ::slotted(*) {
|
|
2573
|
+
margin-inline-end: var(--cx-spacing-x-small);
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2576
|
+
.input--small .input__control--file {
|
|
2577
|
+
gap: calc(var(--cx-input-spacing-small) / 2);
|
|
2578
|
+
padding-top: var(--cx-spacing-x-small);
|
|
2579
|
+
padding-bottom: var(--cx-spacing-x-small);
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
.input--medium {
|
|
2583
|
+
border-radius: var(--cx-input-border-radius-medium);
|
|
2584
|
+
font-size: var(--cx-input-font-size-small);
|
|
2585
|
+
min-height: var(--cx-input-height-medium);
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
.input--medium .input__control {
|
|
2589
|
+
padding-left: var(--cx-input-spacing-medium);
|
|
2590
|
+
padding-right: var(--cx-input-spacing-medium);
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
.input--medium .input__clear,
|
|
2594
|
+
.input--medium .input__password-toggle {
|
|
2595
|
+
width: calc(1em + var(--cx-spacing-x-small) * 2);
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2598
|
+
.input--medium .input__prefix ::slotted(*) {
|
|
2599
|
+
margin-inline-start: var(--cx-spacing-x-small);
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
.input--medium .input__suffix ::slotted(*) {
|
|
2603
|
+
margin-inline-end: var(--cx-spacing-x-small);
|
|
2604
|
+
}
|
|
2605
|
+
|
|
2606
|
+
.input--medium .input__control--file {
|
|
2607
|
+
gap: calc(var(--cx-input-spacing-medium) / 2);
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
.input--large {
|
|
2611
|
+
border-radius: var(--cx-input-border-radius-large);
|
|
2612
|
+
font-size: var(--cx-input-font-size-small);
|
|
2613
|
+
min-height: var(--cx-input-height-large);
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
.input--large .input__control {
|
|
2617
|
+
padding-left: var(--cx-input-spacing-large);
|
|
2618
|
+
padding-right: var(--cx-input-spacing-large);
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
.input--large .input__clear,
|
|
2622
|
+
.input--large .input__password-toggle {
|
|
2623
|
+
width: calc(1em + var(--cx-input-spacing-small) * 2);
|
|
2624
|
+
}
|
|
2625
|
+
|
|
2626
|
+
.input--large .input__prefix ::slotted(*) {
|
|
2627
|
+
margin-inline-start: var(--cx-input-spacing-small);
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
.input--large .input__suffix ::slotted(*) {
|
|
2631
|
+
margin-inline-end: var(--cx-input-spacing-small);
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
.input--large .input__control--file {
|
|
2635
|
+
gap: calc(var(--cx-input-spacing-large) / 2);
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
.input--button-only {
|
|
2639
|
+
padding: 0;
|
|
2640
|
+
border: 0;
|
|
2641
|
+
align-items: center;
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
.input--button-only .input__control--file {
|
|
2645
|
+
padding: 0;
|
|
2646
|
+
border: 0;
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2649
|
+
.input--button-only .input-container {
|
|
2650
|
+
display: none;
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2653
|
+
/*
|
|
2654
|
+
* Pill modifier
|
|
2655
|
+
*/
|
|
2656
|
+
|
|
2657
|
+
.input--pill.input--small {
|
|
2658
|
+
border-radius: var(--cx-input-height-small);
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
.input--pill.input--medium {
|
|
2662
|
+
border-radius: var(--cx-input-height-medium);
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
.input--pill.input--large {
|
|
2666
|
+
border-radius: var(--cx-input-height-large);
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
/*
|
|
2670
|
+
* Clearable + Password Toggle
|
|
2671
|
+
*/
|
|
2672
|
+
|
|
2673
|
+
.input__clear,
|
|
2674
|
+
.input__password-toggle {
|
|
2675
|
+
display: inline-flex;
|
|
2676
|
+
align-items: center;
|
|
2677
|
+
justify-content: center;
|
|
2678
|
+
font-size: inherit;
|
|
2679
|
+
color: var(--cx-input-icon-color);
|
|
2680
|
+
border: none;
|
|
2681
|
+
background: none;
|
|
2682
|
+
padding: 0;
|
|
2683
|
+
transition: var(--cx-transition-fast) color;
|
|
2684
|
+
cursor: pointer;
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
.input__clear:hover,
|
|
2688
|
+
.input__password-toggle:hover {
|
|
2689
|
+
color: var(--cx-input-icon-color-hover);
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
.input__clear:focus,
|
|
2693
|
+
.input__password-toggle:focus {
|
|
2694
|
+
outline: none;
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
/* Don't show the browser's password toggle in Edge */
|
|
2698
|
+
::-ms-reveal {
|
|
2699
|
+
display: none;
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2702
|
+
/* Hide the built-in number spinner */
|
|
2703
|
+
.input--no-spin-buttons input[type='number']::-webkit-outer-spin-button,
|
|
2704
|
+
.input--no-spin-buttons input[type='number']::-webkit-inner-spin-button {
|
|
2705
|
+
-webkit-appearance: none;
|
|
2706
|
+
display: none;
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
.input--no-spin-buttons input[type='number'] {
|
|
2710
|
+
-moz-appearance: textfield;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
input[type='file'] {
|
|
2714
|
+
display: none;
|
|
2715
|
+
}
|
|
2716
|
+
|
|
2717
|
+
/*
|
|
2718
|
+
* Adapt label to be inside input
|
|
2719
|
+
*/
|
|
2720
|
+
|
|
2721
|
+
.input-container {
|
|
2722
|
+
position: relative;
|
|
2723
|
+
display: inline-flex;
|
|
2724
|
+
flex-direction: column;
|
|
2725
|
+
justify-content: center;
|
|
2726
|
+
flex: 1;
|
|
2727
|
+
width: 0;
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
.form-control__label {
|
|
2731
|
+
position: relative;
|
|
2732
|
+
-webkit-transition: transform 0.2s ease-in-out;
|
|
2733
|
+
-moz-transition: transform 0.2s ease-in-out;
|
|
2734
|
+
transition: transform 0.2s ease-in-out;
|
|
2735
|
+
pointer-events: none;
|
|
2736
|
+
width: fit-content;
|
|
2737
|
+
line-height: 1; /* use line-height: 1 for easier transform calculation */
|
|
2738
|
+
text-transform: var(--cx-input-label-text-transform, none);
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
/* when empty with no placeholder (initial state), transform label to vertical center
|
|
2742
|
+
= (input height - label height) / 2
|
|
2743
|
+
*/
|
|
2744
|
+
.form-control--has-label .input--small .form-control__label {
|
|
2745
|
+
padding: 0 var(--cx-input-spacing-small);
|
|
2746
|
+
transform: translateY(
|
|
2747
|
+
calc(
|
|
2748
|
+
(
|
|
2749
|
+
var(--cx-input-height-small) +
|
|
2750
|
+
1.25rem - var(--cx-input-font-size-small)
|
|
2751
|
+
) /
|
|
2752
|
+
2
|
|
2753
|
+
)
|
|
2754
|
+
);
|
|
2755
|
+
margin: 0;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
.form-control--has-label .input--medium .form-control__label {
|
|
2759
|
+
padding: 0 var(--cx-input-spacing-medium);
|
|
2760
|
+
transform: translateY(
|
|
2761
|
+
calc(
|
|
2762
|
+
(
|
|
2763
|
+
var(--cx-input-height-medium) +
|
|
2764
|
+
1rem - var(--cx-input-font-size-medium)
|
|
2765
|
+
) /
|
|
2766
|
+
2
|
|
2767
|
+
)
|
|
2768
|
+
);
|
|
2769
|
+
margin: 0;
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
.form-control--has-label .input--large .form-control__label {
|
|
2773
|
+
padding: 0 var(--cx-input-spacing-large);
|
|
2774
|
+
transform: translateY(
|
|
2775
|
+
calc(
|
|
2776
|
+
(
|
|
2777
|
+
var(--cx-input-height-large) +
|
|
2778
|
+
1rem - var(--cx-input-font-size-large)
|
|
2779
|
+
) /
|
|
2780
|
+
2
|
|
2781
|
+
)
|
|
2782
|
+
);
|
|
2783
|
+
margin: 0;
|
|
2784
|
+
}
|
|
2785
|
+
|
|
2786
|
+
/* Increase input height if there's a label */
|
|
2787
|
+
.form-control--has-label .input--small,
|
|
2788
|
+
.form-control--file .input--small {
|
|
2789
|
+
min-height: calc(var(--cx-input-height-small) + 1rem);
|
|
2790
|
+
}
|
|
2791
|
+
.form-control--has-label .input--medium,
|
|
2792
|
+
.form-control--file .input--medium {
|
|
2793
|
+
min-height: calc(var(--cx-input-height-medium) + 1rem);
|
|
2794
|
+
}
|
|
2795
|
+
.form-control--has-label .input--large,
|
|
2796
|
+
.form-control--file .input--large {
|
|
2797
|
+
min-height: calc(var(--cx-input-height-large) + 1rem);
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
/* When focused or not empty, transform label to top
|
|
2801
|
+
Instead of 0, use var(--cx-spacing-2x-small) to have a distance from top
|
|
2802
|
+
*/
|
|
2803
|
+
.form-control--has-label .input--focused .form-control__label,
|
|
2804
|
+
.form-control--has-label .input--has-placeholder .form-control__label,
|
|
2805
|
+
.form-control--has-label .input:not(.input--empty) .form-control__label {
|
|
2806
|
+
transform: translateY(
|
|
2807
|
+
calc(var(--cx-spacing-2x-small) + var(--cx-spacing-3x-small))
|
|
2808
|
+
); /* distance from top */
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
.input__control--file {
|
|
2812
|
+
display: flex;
|
|
2813
|
+
flex-direction: row;
|
|
2814
|
+
align-items: center;
|
|
2815
|
+
margin-block: 0;
|
|
2816
|
+
text-align: start !important;
|
|
2817
|
+
width: 100%;
|
|
2818
|
+
height: 100%;
|
|
2819
|
+
}
|
|
2820
|
+
|
|
2821
|
+
.input__control--file span {
|
|
2822
|
+
flex: 1 1 auto;
|
|
2823
|
+
text-overflow: ellipsis;
|
|
2824
|
+
overflow: hidden;
|
|
2825
|
+
white-space: nowrap;
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
/*
|
|
2829
|
+
* Input groups support a variety of input types (e.g. inputs with tooltips, inputs as dropdown triggers, etc.).
|
|
2830
|
+
* This means inputs aren't always direct descendants of the input group, thus we can't target them with the
|
|
2831
|
+
* ::slotted selector. To work around this, the input group component does some magic to add these special classes to
|
|
2832
|
+
* inputs and we style them here instead.
|
|
2833
|
+
*/
|
|
2834
|
+
|
|
2835
|
+
:host(
|
|
2836
|
+
[data-cx-input-group__input--first]:not(
|
|
2837
|
+
[data-cx-input-group__input--last]
|
|
2838
|
+
)
|
|
2839
|
+
)
|
|
2840
|
+
.input {
|
|
2841
|
+
border-start-end-radius: 0;
|
|
2842
|
+
border-end-end-radius: 0;
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
:host([data-cx-input-group__input--inner]) .input {
|
|
2846
|
+
border-radius: 0;
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
:host(
|
|
2850
|
+
[data-cx-input-group__input--last]:not(
|
|
2851
|
+
[data-cx-input-group__input--first]
|
|
2852
|
+
)
|
|
2853
|
+
)
|
|
2854
|
+
.input {
|
|
2855
|
+
border-start-start-radius: 0;
|
|
2856
|
+
border-end-start-radius: 0;
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
/* All except the first */
|
|
2860
|
+
:host([data-cx-input-group__input]:not([data-cx-input-group__input--first])) {
|
|
2861
|
+
margin-inline-start: calc(-1 * var(--cx-input-border-width));
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
/* Bump hovered, focused, and checked inputs up so their focus ring isn't clipped */
|
|
2865
|
+
:host([data-cx-input-group__input--hover]) {
|
|
2866
|
+
z-index: 1;
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2869
|
+
/* Focus and checked are always on top */
|
|
2870
|
+
:host([data-cx-input-group__input--focus]),
|
|
2871
|
+
:host([data-cx-input-group__input][checked]) {
|
|
2872
|
+
z-index: 2;
|
|
2873
|
+
}
|
|
2874
|
+
`;
|
|
2875
|
+
var It = Object.defineProperty, St = Object.getOwnPropertyDescriptor, it = (a) => {
|
|
2876
|
+
throw TypeError(a);
|
|
2877
|
+
}, p = (a, t, e, i) => {
|
|
2878
|
+
for (var s = i > 1 ? void 0 : i ? St(t, e) : t, n = a.length - 1, r; n >= 0; n--)
|
|
2879
|
+
(r = a[n]) && (s = (i ? r(t, e, s) : r(s)) || s);
|
|
2880
|
+
return i && s && It(t, e, s), s;
|
|
2881
|
+
}, Vt = (a, t, e) => t.has(a) || it("Cannot " + e), Dt = (a, t, e) => (Vt(a, t, "read from private field"), e ? e.call(a) : t.get(a)), Mt = (a, t, e) => t.has(a) ? it("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(a) : t.set(a, e), H, st;
|
|
2882
|
+
let o = class extends rt {
|
|
2883
|
+
constructor() {
|
|
2884
|
+
super(), Mt(this, H), this.formControlController = new pt(this, {
|
|
2885
|
+
assumeInteractionOn: ["cx-input"]
|
|
2886
|
+
}), this.hasSlotController = new dt(
|
|
2887
|
+
this,
|
|
2888
|
+
"help-text",
|
|
2889
|
+
"label"
|
|
2890
|
+
), this.localize = new ct(this), this.hasFocus = !1, this.maskInstance = null, this.containerClicked = !1, this.title = "", this.__numberInput = Object.assign(
|
|
2891
|
+
document.createElement("input"),
|
|
2892
|
+
{
|
|
2893
|
+
type: "number"
|
|
2894
|
+
}
|
|
2895
|
+
), this.__dateInput = Object.assign(
|
|
2896
|
+
document.createElement("input"),
|
|
2897
|
+
{
|
|
2898
|
+
type: "date"
|
|
2899
|
+
}
|
|
2900
|
+
), this.type = "text", this.name = "", this.value = "", this.unmaskedValue = "", this.defaultValue = "", this.size = "medium", this.filled = !1, this.pill = !1, this.label = "", this.helpText = "", this.clearable = !1, this.disabled = !1, this.placeholder = "", this.readonly = !1, this.passwordToggle = !1, this.passwordVisible = !1, this.noSpinButtons = !1, this.form = void 0, this.required = !1, this.showLength = !1, this.autocomplete = "off", this.autoFocus = !1, this.spellCheck = !0, this.maskPlaceholder = "_", this.maskLazy = !1, this.maskOverwrite = !1, this.maskBlocks = void 0, this.variant = "default", this.fileButtonLabel = "Choose file", this.buttonOnly = !1, this.fileResultLabel = (a) => {
|
|
2901
|
+
let t = "No file chosen";
|
|
2902
|
+
return a?.length && (a.length === 1 ? t = a[0].name : a.length > 1 && (t = `${a.length} files`)), t;
|
|
2903
|
+
}, this.handleMaskAccept = this.handleMaskAccept.bind(this);
|
|
2904
|
+
}
|
|
2905
|
+
// #endregion
|
|
2906
|
+
//
|
|
2907
|
+
// NOTE: We use an in-memory input for these getters/setters instead of the one in the template because the properties
|
|
2908
|
+
// can be set before the component is rendered.
|
|
2909
|
+
//
|
|
2910
|
+
/**
|
|
2911
|
+
* Gets or sets the current value as a `Date` object. Returns `null` if the value can't be converted. This will use the native `<input type="{{type}}">` implementation and may result in an error.
|
|
2912
|
+
*/
|
|
2913
|
+
get valueAsDate() {
|
|
2914
|
+
return this.__dateInput.type = this.type, this.__dateInput.value = this.value, this.input?.valueAsDate || this.__dateInput.valueAsDate;
|
|
2915
|
+
}
|
|
2916
|
+
set valueAsDate(a) {
|
|
2917
|
+
this.__dateInput.type = this.type, this.__dateInput.valueAsDate = a, this.value = this.__dateInput.value;
|
|
2918
|
+
}
|
|
2919
|
+
/** Gets or sets the current value as a number. Returns `NaN` if the value can't be converted. */
|
|
2920
|
+
get valueAsNumber() {
|
|
2921
|
+
return this.__numberInput.value = this.value, this.input?.valueAsNumber || this.__numberInput.valueAsNumber;
|
|
2922
|
+
}
|
|
2923
|
+
set valueAsNumber(a) {
|
|
2924
|
+
this.__numberInput.valueAsNumber = a, this.value = this.__numberInput.value;
|
|
2925
|
+
}
|
|
2926
|
+
/** Gets the validity state object */
|
|
2927
|
+
get validity() {
|
|
2928
|
+
return this.input.validity;
|
|
2929
|
+
}
|
|
2930
|
+
/** Gets the validation message */
|
|
2931
|
+
get validationMessage() {
|
|
2932
|
+
return this.input.validationMessage;
|
|
2933
|
+
}
|
|
2934
|
+
connectedCallback() {
|
|
2935
|
+
super.connectedCallback(), this.initMaskInstance();
|
|
2936
|
+
}
|
|
2937
|
+
runFirstUpdated() {
|
|
2938
|
+
this.formControlController.updateValidity(), this.initMaskInstance();
|
|
2939
|
+
}
|
|
2940
|
+
disconnectedCallback() {
|
|
2941
|
+
super.disconnectedCallback(), this.maskInstance?.off("accept", this.handleMaskAccept), this.maskInstance?.destroy();
|
|
2942
|
+
}
|
|
2943
|
+
async initMaskInstance() {
|
|
2944
|
+
if (await this.updateComplete, this.maskInstance && (this.maskInstance.off("accept", this.handleMaskAccept), this.maskInstance.destroy(), this.maskInstance = null), this.mask && this.input) {
|
|
2945
|
+
const a = {
|
|
2946
|
+
blocks: this.maskBlocks,
|
|
2947
|
+
lazy: this.maskLazy,
|
|
2948
|
+
mask: this.mask,
|
|
2949
|
+
overwrite: this.maskOverwrite,
|
|
2950
|
+
placeholderChar: this.maskPlaceholder
|
|
2951
|
+
};
|
|
2952
|
+
this.maskInstance = d(this.input, a);
|
|
2953
|
+
const t = this.value;
|
|
2954
|
+
this.value = this.maskInstance.value, this.unmaskedValue = this.maskInstance.unmaskedValue, t !== this.value && this.emit("cx-change"), this.maskInstance.on("accept", this.handleMaskAccept);
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
handleBlur() {
|
|
2958
|
+
if (this.containerClicked) {
|
|
2959
|
+
this.containerClicked = !1, this.focus();
|
|
2960
|
+
return;
|
|
2961
|
+
}
|
|
2962
|
+
this.hasFocus = !1, this.emit("cx-blur");
|
|
2963
|
+
}
|
|
2964
|
+
handleChange() {
|
|
2965
|
+
this.value = this.input.value, this.emit("cx-change");
|
|
2966
|
+
}
|
|
2967
|
+
handleClearClick(a) {
|
|
2968
|
+
a.preventDefault(), this.value !== "" && (this.value = "", this.emit("cx-clear"), this.emit("cx-input"), this.emit("cx-change")), this.input.focus();
|
|
2969
|
+
}
|
|
2970
|
+
handleFocus() {
|
|
2971
|
+
this.hasFocus = !0, this.emit("cx-focus");
|
|
2972
|
+
}
|
|
2973
|
+
// Two different handlers for input with and without mask.
|
|
2974
|
+
// handleMaskAccept is registered to this.maskInstance inside firstUpdated()
|
|
2975
|
+
handleMaskAccept() {
|
|
2976
|
+
this.maskInstance && (this.value = this.maskInstance.value, this.unmaskedValue = this.maskInstance.unmaskedValue, this.formControlController.updateValidity(), this.emit("cx-input"));
|
|
2977
|
+
}
|
|
2978
|
+
// handleInput is registered to the input element inside render()
|
|
2979
|
+
handleInput() {
|
|
2980
|
+
this.maskInstance || (this.value = this.input.value, this.unmaskedValue = this.input.value, this.formControlController.updateValidity(), this.emit("cx-input"));
|
|
2981
|
+
}
|
|
2982
|
+
handleInvalid(a) {
|
|
2983
|
+
this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(a);
|
|
2984
|
+
}
|
|
2985
|
+
handleKeyDown(a) {
|
|
2986
|
+
const t = a.metaKey || a.ctrlKey || a.shiftKey || a.altKey;
|
|
2987
|
+
a.key === "Enter" && !t && setTimeout(() => {
|
|
2988
|
+
!a.defaultPrevented && !a.isComposing && this.formControlController.submit();
|
|
2989
|
+
}), a.ctrlKey && a.key === "a" && this.input.select(), this.emit("cx-keydown", { detail: { event: a, value: this.value } });
|
|
2990
|
+
}
|
|
2991
|
+
handlePasswordToggle() {
|
|
2992
|
+
this.passwordVisible = !this.passwordVisible;
|
|
2993
|
+
}
|
|
2994
|
+
handleFileButtonClick() {
|
|
2995
|
+
this.input.click();
|
|
2996
|
+
}
|
|
2997
|
+
handleContainerMouseDown(a) {
|
|
2998
|
+
const t = a.composedPath();
|
|
2999
|
+
t.includes(this.inputContainer) && !t.includes(this.input) ? (this.containerClicked = !0, this.focus()) : this.containerClicked = !1;
|
|
3000
|
+
}
|
|
3001
|
+
handleDisabledChange() {
|
|
3002
|
+
this.formControlController.setValidity(this.disabled);
|
|
3003
|
+
}
|
|
3004
|
+
handleStepChange() {
|
|
3005
|
+
this.input.step = String(this.step), this.formControlController.updateValidity();
|
|
3006
|
+
}
|
|
3007
|
+
async handleValueChange() {
|
|
3008
|
+
await this.updateComplete, this.formControlController.updateValidity(), this.maskInstance?.el && this.value !== this.maskInstance?.value && this.maskInstance.updateValue();
|
|
3009
|
+
}
|
|
3010
|
+
/** Sets focus on the input. */
|
|
3011
|
+
focus(a) {
|
|
3012
|
+
this.input.focus(a);
|
|
3013
|
+
}
|
|
3014
|
+
/** Removes focus from the input. */
|
|
3015
|
+
blur() {
|
|
3016
|
+
this.input.blur();
|
|
3017
|
+
}
|
|
3018
|
+
/** Selects all the text in the input. */
|
|
3019
|
+
select() {
|
|
3020
|
+
this.input.select();
|
|
3021
|
+
}
|
|
3022
|
+
/** Sets the start and end positions of the text selection (0-based). */
|
|
3023
|
+
setSelectionRange(a, t, e = "none") {
|
|
3024
|
+
this.input.setSelectionRange(
|
|
3025
|
+
a,
|
|
3026
|
+
t,
|
|
3027
|
+
e
|
|
3028
|
+
);
|
|
3029
|
+
}
|
|
3030
|
+
/** Replaces a range of text with a new string. */
|
|
3031
|
+
setRangeText(a, t, e, i = "preserve") {
|
|
3032
|
+
const s = t ?? this.input.selectionStart, n = e ?? this.input.selectionEnd;
|
|
3033
|
+
this.input.setRangeText(
|
|
3034
|
+
a,
|
|
3035
|
+
s,
|
|
3036
|
+
n,
|
|
3037
|
+
i
|
|
3038
|
+
), this.value !== this.input.value && (this.value = this.input.value);
|
|
3039
|
+
}
|
|
3040
|
+
/** Displays the browser picker for an input element (only works if the browser supports it for the input type). */
|
|
3041
|
+
showPicker() {
|
|
3042
|
+
"showPicker" in HTMLInputElement.prototype && this.input.showPicker();
|
|
3043
|
+
}
|
|
3044
|
+
/** Increments the value of a numeric input type by the value of the step attribute. */
|
|
3045
|
+
stepUp() {
|
|
3046
|
+
this.input.stepUp(), this.value !== this.input.value && (this.value = this.input.value);
|
|
3047
|
+
}
|
|
3048
|
+
/** Decrements the value of a numeric input type by the value of the step attribute. */
|
|
3049
|
+
stepDown() {
|
|
3050
|
+
this.input.stepDown(), this.value !== this.input.value && (this.value = this.input.value);
|
|
3051
|
+
}
|
|
3052
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
3053
|
+
checkValidity() {
|
|
3054
|
+
return this.input.checkValidity();
|
|
3055
|
+
}
|
|
3056
|
+
/** Gets the associated form, if one exists. */
|
|
3057
|
+
getForm() {
|
|
3058
|
+
return this.formControlController.getForm();
|
|
3059
|
+
}
|
|
3060
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
3061
|
+
reportValidity() {
|
|
3062
|
+
return this.input.reportValidity();
|
|
3063
|
+
}
|
|
3064
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
3065
|
+
setCustomValidity(a) {
|
|
3066
|
+
this.input.setCustomValidity(a), this.formControlController.updateValidity();
|
|
3067
|
+
}
|
|
3068
|
+
render() {
|
|
3069
|
+
const a = this.hasSlotController.test("label"), t = this.hasSlotController.test("help-text"), e = this.label ? !0 : !!a, i = this.helpText ? !0 : !!t, n = this.clearable && !this.disabled && !this.readonly && (typeof this.value == "number" || this.value.length > 0), r = typeof this.fileResultLabel == "function" ? this.fileResultLabel(Dt(this, H, st)) : this.fileResultLabel;
|
|
3070
|
+
return F`
|
|
3071
|
+
<div
|
|
3072
|
+
part="form-control"
|
|
3073
|
+
class=${z({
|
|
3074
|
+
"form-control": !0,
|
|
3075
|
+
"form-control--file": this.type === "file",
|
|
3076
|
+
"form-control--has-help-text": i,
|
|
3077
|
+
"form-control--has-label": e,
|
|
3078
|
+
"form-control--large": this.size === "large",
|
|
3079
|
+
"form-control--medium": this.size === "medium",
|
|
3080
|
+
"form-control--small": this.size === "small"
|
|
3081
|
+
})}
|
|
3082
|
+
>
|
|
3083
|
+
<div part="form-control-input" class="form-control-input">
|
|
3084
|
+
<div
|
|
3085
|
+
part="base"
|
|
3086
|
+
class=${z({
|
|
3087
|
+
input: !0,
|
|
3088
|
+
"input--button-only": this.buttonOnly,
|
|
3089
|
+
"input--disabled": this.disabled,
|
|
3090
|
+
"input--empty": !this.value,
|
|
3091
|
+
"input--filled": this.filled,
|
|
3092
|
+
"input--focused": this.hasFocus,
|
|
3093
|
+
"input--has-placeholder": !!this.placeholder,
|
|
3094
|
+
"input--large": this.size === "large",
|
|
3095
|
+
"input--medium": this.size === "medium",
|
|
3096
|
+
"input--no-spin-buttons": this.noSpinButtons,
|
|
3097
|
+
// States
|
|
3098
|
+
"input--pill": this.pill,
|
|
3099
|
+
"input--small": this.size === "small",
|
|
3100
|
+
"input--standard": !this.filled
|
|
3101
|
+
})}
|
|
3102
|
+
>
|
|
3103
|
+
<span part="prefix" class="input__prefix">
|
|
3104
|
+
<slot name="prefix"></slot>
|
|
3105
|
+
</span>
|
|
3106
|
+
|
|
3107
|
+
<span
|
|
3108
|
+
class="input-container"
|
|
3109
|
+
@mousedown=${this.handleContainerMouseDown}
|
|
3110
|
+
>
|
|
3111
|
+
<label
|
|
3112
|
+
part="form-control-label"
|
|
3113
|
+
class=${z({
|
|
3114
|
+
"form-control__label": !0,
|
|
3115
|
+
"form-control__label--empty": !this.value
|
|
3116
|
+
})}
|
|
3117
|
+
for="input"
|
|
3118
|
+
aria-hidden=${e ? "false" : "true"}
|
|
3119
|
+
>
|
|
3120
|
+
<slot name="label" part="label">${this.label}</slot>
|
|
3121
|
+
</label>
|
|
3122
|
+
<input
|
|
3123
|
+
part="input"
|
|
3124
|
+
id="input"
|
|
3125
|
+
class="input__control"
|
|
3126
|
+
type=${this.type === "password" && this.passwordVisible ? "text" : this.type}
|
|
3127
|
+
title=${this.title}
|
|
3128
|
+
aria-label=${_(this.ariaLabel)}
|
|
3129
|
+
name=${_(this.name)}
|
|
3130
|
+
?disabled=${this.disabled}
|
|
3131
|
+
?readonly=${this.readonly}
|
|
3132
|
+
?required=${this.required}
|
|
3133
|
+
placeholder=${_(this.placeholder)}
|
|
3134
|
+
minlength=${_(this.minlength)}
|
|
3135
|
+
maxlength=${_(this.maxlength)}
|
|
3136
|
+
min=${_(this.min)}
|
|
3137
|
+
max=${_(this.max)}
|
|
3138
|
+
step=${_(this.step)}
|
|
3139
|
+
autocapitalize=${_(this.autocapitalize)}
|
|
3140
|
+
autocomplete=${_(this.autocomplete)}
|
|
3141
|
+
autocorrect=${_(this.autoCorrect)}
|
|
3142
|
+
?autofocus=${this.autoFocus}
|
|
3143
|
+
spellcheck=${this.spellCheck}
|
|
3144
|
+
pattern=${_(this.pattern)}
|
|
3145
|
+
enterkeyhint=${_(this.enterKeyHint)}
|
|
3146
|
+
inputmode=${_(this.inputMode)}
|
|
3147
|
+
aria-describedby="help-text"
|
|
3148
|
+
.value=${ft(this.value)}
|
|
3149
|
+
@change=${this.handleChange}
|
|
3150
|
+
@input=${this.handleInput}
|
|
3151
|
+
@invalid=${this.handleInvalid}
|
|
3152
|
+
@keydown=${this.handleKeyDown}
|
|
3153
|
+
@focus=${this.handleFocus}
|
|
3154
|
+
@blur=${this.handleBlur}
|
|
3155
|
+
accept=${_(this.accept)}
|
|
3156
|
+
?multiple=${this.multiple}
|
|
3157
|
+
/>
|
|
3158
|
+
${this.type === "file" && !this.buttonOnly ? F`<div
|
|
3159
|
+
class="input__control input__control--file"
|
|
3160
|
+
part="file-control"
|
|
3161
|
+
@click=${this.handleFileButtonClick}
|
|
3162
|
+
>
|
|
3163
|
+
<slot name="file-button">
|
|
3164
|
+
<cx-button
|
|
3165
|
+
part="file-button"
|
|
3166
|
+
variant=${_(this.variant)}
|
|
3167
|
+
size=${_(this.size)}
|
|
3168
|
+
?disabled=${this.disabled}
|
|
3169
|
+
>${this.fileButtonLabel}</cx-button
|
|
3170
|
+
>
|
|
3171
|
+
</slot>
|
|
3172
|
+
<span part="file-result">${r}</span>
|
|
3173
|
+
</div>` : ""}
|
|
3174
|
+
</span>
|
|
3175
|
+
${this.type === "file" && this.buttonOnly ? F` <div
|
|
3176
|
+
class="input__control input__control--file"
|
|
3177
|
+
part="file-control"
|
|
3178
|
+
@click=${this.handleFileButtonClick}
|
|
3179
|
+
>
|
|
3180
|
+
<slot name="file-button">
|
|
3181
|
+
<cx-button
|
|
3182
|
+
part="file-button"
|
|
3183
|
+
variant=${_(this.variant)}
|
|
3184
|
+
size=${_(this.size)}
|
|
3185
|
+
?disabled=${this.disabled}
|
|
3186
|
+
>${this.fileButtonLabel}</cx-button
|
|
3187
|
+
>
|
|
3188
|
+
</slot>
|
|
3189
|
+
</div>` : ""}
|
|
3190
|
+
${n ? F`
|
|
3191
|
+
<button
|
|
3192
|
+
part="clear-button"
|
|
3193
|
+
class="input__clear"
|
|
3194
|
+
type="button"
|
|
3195
|
+
aria-label=${this.localize.term("clearEntry")}
|
|
3196
|
+
@click=${this.handleClearClick}
|
|
3197
|
+
tabindex="-1"
|
|
3198
|
+
>
|
|
3199
|
+
<slot name="clear-icon">
|
|
3200
|
+
<cx-icon name="close"></cx-icon>
|
|
3201
|
+
</slot>
|
|
3202
|
+
</button>
|
|
3203
|
+
` : ""}
|
|
3204
|
+
${this.passwordToggle && !this.disabled ? F`
|
|
3205
|
+
<button
|
|
3206
|
+
part="password-toggle-button"
|
|
3207
|
+
class="input__password-toggle"
|
|
3208
|
+
type="button"
|
|
3209
|
+
aria-label=${this.localize.term(
|
|
3210
|
+
this.passwordVisible ? "hidePassword" : "showPassword"
|
|
3211
|
+
)}
|
|
3212
|
+
@click=${this.handlePasswordToggle}
|
|
3213
|
+
tabindex="-1"
|
|
3214
|
+
>
|
|
3215
|
+
${this.passwordVisible ? F`
|
|
3216
|
+
<slot name="show-password-icon">
|
|
3217
|
+
<cx-icon
|
|
3218
|
+
name="visibility_off"
|
|
3219
|
+
library="system"
|
|
3220
|
+
></cx-icon>
|
|
3221
|
+
</slot>
|
|
3222
|
+
` : F`
|
|
3223
|
+
<slot name="hide-password-icon">
|
|
3224
|
+
<cx-icon
|
|
3225
|
+
name="visibility"
|
|
3226
|
+
library="system"
|
|
3227
|
+
></cx-icon>
|
|
3228
|
+
</slot>
|
|
3229
|
+
`}
|
|
3230
|
+
</button>
|
|
3231
|
+
` : ""}
|
|
3232
|
+
|
|
3233
|
+
<span part="suffix" class="input__suffix">
|
|
3234
|
+
<slot name="suffix"></slot>
|
|
3235
|
+
</span>
|
|
3236
|
+
</div>
|
|
3237
|
+
${mt(this.showLength, () => F`
|
|
3238
|
+
<div part="character-count" class="input__character-count">
|
|
3239
|
+
${[
|
|
3240
|
+
this.minlength && `${this.minlength} /`,
|
|
3241
|
+
this.value.length,
|
|
3242
|
+
this.maxlength && `/ ${this.maxlength}`
|
|
3243
|
+
].filter(Boolean).join(" ")}
|
|
3244
|
+
</div>
|
|
3245
|
+
`)}
|
|
3246
|
+
</div>
|
|
3247
|
+
<div
|
|
3248
|
+
part="form-control-help-text"
|
|
3249
|
+
id="help-text"
|
|
3250
|
+
class="form-control__help-text"
|
|
3251
|
+
aria-hidden=${i ? "false" : "true"}
|
|
3252
|
+
>
|
|
3253
|
+
<slot name="help-text">${this.helpText}</slot>
|
|
3254
|
+
</div>
|
|
3255
|
+
</div>
|
|
3256
|
+
`;
|
|
3257
|
+
}
|
|
3258
|
+
};
|
|
3259
|
+
H = /* @__PURE__ */ new WeakSet();
|
|
3260
|
+
st = function() {
|
|
3261
|
+
return this.input?.files;
|
|
3262
|
+
};
|
|
3263
|
+
o.styles = [
|
|
3264
|
+
lt,
|
|
3265
|
+
ot,
|
|
3266
|
+
Bt
|
|
3267
|
+
];
|
|
3268
|
+
o.dependencies = { "cx-icon": gt };
|
|
3269
|
+
p([
|
|
3270
|
+
K(".input__control")
|
|
3271
|
+
], o.prototype, "input", 2);
|
|
3272
|
+
p([
|
|
3273
|
+
K(".input-container")
|
|
3274
|
+
], o.prototype, "inputContainer", 2);
|
|
3275
|
+
p([
|
|
3276
|
+
K(".form-control__label")
|
|
3277
|
+
], o.prototype, "labelElement", 2);
|
|
3278
|
+
p([
|
|
3279
|
+
j()
|
|
3280
|
+
], o.prototype, "hasFocus", 2);
|
|
3281
|
+
p([
|
|
3282
|
+
j()
|
|
3283
|
+
], o.prototype, "maskInstance", 2);
|
|
3284
|
+
p([
|
|
3285
|
+
j()
|
|
3286
|
+
], o.prototype, "containerClicked", 2);
|
|
3287
|
+
p([
|
|
3288
|
+
f()
|
|
3289
|
+
], o.prototype, "title", 2);
|
|
3290
|
+
p([
|
|
3291
|
+
f({ reflect: !0 })
|
|
3292
|
+
], o.prototype, "type", 2);
|
|
3293
|
+
p([
|
|
3294
|
+
f()
|
|
3295
|
+
], o.prototype, "name", 2);
|
|
3296
|
+
p([
|
|
3297
|
+
f()
|
|
3298
|
+
], o.prototype, "value", 2);
|
|
3299
|
+
p([
|
|
3300
|
+
f({ attribute: "unmasked-value", reflect: !0, type: String })
|
|
3301
|
+
], o.prototype, "unmaskedValue", 2);
|
|
3302
|
+
p([
|
|
3303
|
+
ht()
|
|
3304
|
+
], o.prototype, "defaultValue", 2);
|
|
3305
|
+
p([
|
|
3306
|
+
f({ reflect: !0 })
|
|
3307
|
+
], o.prototype, "size", 2);
|
|
3308
|
+
p([
|
|
3309
|
+
f({ reflect: !0, type: Boolean })
|
|
3310
|
+
], o.prototype, "filled", 2);
|
|
3311
|
+
p([
|
|
3312
|
+
f({ reflect: !0, type: Boolean })
|
|
3313
|
+
], o.prototype, "pill", 2);
|
|
3314
|
+
p([
|
|
3315
|
+
f()
|
|
3316
|
+
], o.prototype, "label", 2);
|
|
3317
|
+
p([
|
|
3318
|
+
f({ attribute: "help-text" })
|
|
3319
|
+
], o.prototype, "helpText", 2);
|
|
3320
|
+
p([
|
|
3321
|
+
f({ type: Boolean })
|
|
3322
|
+
], o.prototype, "clearable", 2);
|
|
3323
|
+
p([
|
|
3324
|
+
f({ reflect: !0, type: Boolean })
|
|
3325
|
+
], o.prototype, "disabled", 2);
|
|
3326
|
+
p([
|
|
3327
|
+
f()
|
|
3328
|
+
], o.prototype, "placeholder", 2);
|
|
3329
|
+
p([
|
|
3330
|
+
f({ reflect: !0, type: Boolean })
|
|
3331
|
+
], o.prototype, "readonly", 2);
|
|
3332
|
+
p([
|
|
3333
|
+
f({ attribute: "password-toggle", type: Boolean })
|
|
3334
|
+
], o.prototype, "passwordToggle", 2);
|
|
3335
|
+
p([
|
|
3336
|
+
f({ attribute: "password-visible", type: Boolean })
|
|
3337
|
+
], o.prototype, "passwordVisible", 2);
|
|
3338
|
+
p([
|
|
3339
|
+
f({ attribute: "no-spin-buttons", type: Boolean })
|
|
3340
|
+
], o.prototype, "noSpinButtons", 2);
|
|
3341
|
+
p([
|
|
3342
|
+
f({ reflect: !1 })
|
|
3343
|
+
], o.prototype, "form", 2);
|
|
3344
|
+
p([
|
|
3345
|
+
f({ reflect: !0, type: Boolean })
|
|
3346
|
+
], o.prototype, "required", 2);
|
|
3347
|
+
p([
|
|
3348
|
+
f()
|
|
3349
|
+
], o.prototype, "pattern", 2);
|
|
3350
|
+
p([
|
|
3351
|
+
f({ type: Number })
|
|
3352
|
+
], o.prototype, "minlength", 2);
|
|
3353
|
+
p([
|
|
3354
|
+
f({ type: Number })
|
|
3355
|
+
], o.prototype, "maxlength", 2);
|
|
3356
|
+
p([
|
|
3357
|
+
f({ attribute: "show-length", type: Boolean })
|
|
3358
|
+
], o.prototype, "showLength", 2);
|
|
3359
|
+
p([
|
|
3360
|
+
f()
|
|
3361
|
+
], o.prototype, "min", 2);
|
|
3362
|
+
p([
|
|
3363
|
+
f()
|
|
3364
|
+
], o.prototype, "max", 2);
|
|
3365
|
+
p([
|
|
3366
|
+
f()
|
|
3367
|
+
], o.prototype, "step", 2);
|
|
3368
|
+
p([
|
|
3369
|
+
f({ attribute: "autocapitalize", reflect: !0, type: String })
|
|
3370
|
+
], o.prototype, "autoCapitalize", 2);
|
|
3371
|
+
p([
|
|
3372
|
+
f({ attribute: "autocorrect", reflect: !0, type: String })
|
|
3373
|
+
], o.prototype, "autoCorrect", 2);
|
|
3374
|
+
p([
|
|
3375
|
+
f()
|
|
3376
|
+
], o.prototype, "autocomplete", 2);
|
|
3377
|
+
p([
|
|
3378
|
+
f({ attribute: "autofocus", type: Boolean })
|
|
3379
|
+
], o.prototype, "autoFocus", 2);
|
|
3380
|
+
p([
|
|
3381
|
+
f({ attribute: "enterkeyhint", reflect: !0, type: String })
|
|
3382
|
+
], o.prototype, "enterKeyHint", 2);
|
|
3383
|
+
p([
|
|
3384
|
+
f({
|
|
3385
|
+
attribute: "spellcheck",
|
|
3386
|
+
converter: {
|
|
3387
|
+
// Allow "true|false" attribute values but keep the property boolean
|
|
3388
|
+
fromAttribute: (a) => !(!a || a === "false"),
|
|
3389
|
+
toAttribute: (a) => a ? "true" : "false"
|
|
3390
|
+
},
|
|
3391
|
+
reflect: !0,
|
|
3392
|
+
type: Boolean
|
|
3393
|
+
})
|
|
3394
|
+
], o.prototype, "spellCheck", 2);
|
|
3395
|
+
p([
|
|
3396
|
+
f({ attribute: "inputmode", reflect: !0, type: String })
|
|
3397
|
+
], o.prototype, "inputMode", 2);
|
|
3398
|
+
p([
|
|
3399
|
+
f()
|
|
3400
|
+
], o.prototype, "mask", 2);
|
|
3401
|
+
p([
|
|
3402
|
+
f({ attribute: "mask-placeholder" })
|
|
3403
|
+
], o.prototype, "maskPlaceholder", 2);
|
|
3404
|
+
p([
|
|
3405
|
+
f({ attribute: "mask-lazy", type: Boolean })
|
|
3406
|
+
], o.prototype, "maskLazy", 2);
|
|
3407
|
+
p([
|
|
3408
|
+
f({
|
|
3409
|
+
attribute: "mask-overwrite",
|
|
3410
|
+
converter: {
|
|
3411
|
+
fromAttribute: (a) => a === "shift" ? a : a !== void 0,
|
|
3412
|
+
toAttribute: (a) => a
|
|
3413
|
+
}
|
|
3414
|
+
})
|
|
3415
|
+
], o.prototype, "maskOverwrite", 2);
|
|
3416
|
+
p([
|
|
3417
|
+
f({ attribute: "mask-blocks", type: Object })
|
|
3418
|
+
], o.prototype, "maskBlocks", 2);
|
|
3419
|
+
p([
|
|
3420
|
+
f()
|
|
3421
|
+
], o.prototype, "accept", 2);
|
|
3422
|
+
p([
|
|
3423
|
+
f({ type: Boolean })
|
|
3424
|
+
], o.prototype, "multiple", 2);
|
|
3425
|
+
p([
|
|
3426
|
+
f({ reflect: !0 })
|
|
3427
|
+
], o.prototype, "variant", 2);
|
|
3428
|
+
p([
|
|
3429
|
+
f({ attribute: "file-button-label" })
|
|
3430
|
+
], o.prototype, "fileButtonLabel", 2);
|
|
3431
|
+
p([
|
|
3432
|
+
f({ attribute: "button-only", type: Boolean })
|
|
3433
|
+
], o.prototype, "buttonOnly", 2);
|
|
3434
|
+
p([
|
|
3435
|
+
f({ attribute: "file-result-label" })
|
|
3436
|
+
], o.prototype, "fileResultLabel", 2);
|
|
3437
|
+
p([
|
|
3438
|
+
T(
|
|
3439
|
+
["mask", "maskBlocks", "maskLazy", "maskOverwrite", "maskPlaceholder"],
|
|
3440
|
+
{
|
|
3441
|
+
deepCompare: !0,
|
|
3442
|
+
waitUntilFirstUpdate: !0
|
|
3443
|
+
}
|
|
3444
|
+
)
|
|
3445
|
+
], o.prototype, "initMaskInstance", 1);
|
|
3446
|
+
p([
|
|
3447
|
+
T("disabled", { waitUntilFirstUpdate: !0 })
|
|
3448
|
+
], o.prototype, "handleDisabledChange", 1);
|
|
3449
|
+
p([
|
|
3450
|
+
T("step", { waitUntilFirstUpdate: !0 })
|
|
3451
|
+
], o.prototype, "handleStepChange", 1);
|
|
3452
|
+
p([
|
|
3453
|
+
T("value", { waitUntilFirstUpdate: !0 })
|
|
3454
|
+
], o.prototype, "handleValueChange", 1);
|
|
3455
|
+
o = p([
|
|
3456
|
+
ut("cx-input")
|
|
3457
|
+
], o);
|
|
3458
|
+
export {
|
|
3459
|
+
o as default
|
|
3460
|
+
};
|