@webority/ui-elements 0.149.0 → 0.152.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/WuiCarousel-DthhDxH-.js +1 -0
- package/dist/WuiCodeBlock-DHpmEskS.js +1 -0
- package/dist/WuiCommandPalette-DqHh4lH6.js +2 -0
- package/dist/WuiCommentThread-BmRsl0K1.js +1 -0
- package/dist/WuiConsentBanner-Bm7tT3_5.js +1 -0
- package/dist/WuiContextMenu-sPTmEEVn.js +1 -0
- package/dist/WuiDataTable-B4BYCd_s.js +1 -0
- package/dist/WuiDatePicker-DLEsnzqG.js +31 -0
- package/dist/WuiDateRange-9Xqs5nvv.js +25 -0
- package/dist/WuiDock-d5abaLkL.js +1 -0
- package/dist/WuiDrawer-B3YFmxl2.js +1 -0
- package/dist/WuiHoverCard-CE3dHKaM.js +1 -0
- package/dist/WuiImageCrop-ChvH8GKb.js +17 -0
- package/dist/WuiInlineEdit-BlBuWkHG.js +1 -0
- package/dist/WuiLeadPopup-YN4YCbOe.js +382 -0
- package/dist/WuiLightbox-C2A14vHx.js +1 -0
- package/dist/WuiMarkdown-BXY0QKaO.js +4 -0
- package/dist/WuiMentionInput-8Xjkzdqg.js +1 -0
- package/dist/WuiNavigationMenu-CZ3XhFam.js +1 -0
- package/dist/WuiNotificationCenter-ClkCTUnp.js +1 -0
- package/dist/WuiOnboardingChecklist-Cx-TgpBY.js +1 -0
- package/dist/WuiOrgTree-DzeLFQxy.js +1 -0
- package/dist/{WuiOtp-BqWijfNj.js → WuiOtp-DonxSwVn.js} +2 -2
- package/dist/WuiOverflow-B0wA6aDe.js +1 -0
- package/dist/WuiPhone-BVNVerap.js +16 -0
- package/dist/WuiRating-DLVduJZ_.js +1 -0
- package/dist/WuiRecordPager-7HVGoFlP.js +1 -0
- package/dist/WuiRelativeTime-DyeUQOQ8.js +1 -0
- package/dist/WuiResizable-DQZdQVCz.js +1 -0
- package/dist/WuiRollingNumber-sfgNzaP0.js +1 -0
- package/dist/WuiSavedViews-UaiP6YNG.js +1 -0
- package/dist/WuiSelect-DBPre2oe.js +9 -0
- package/dist/WuiShortcuts-D3rWkaOm.js +1 -0
- package/dist/WuiShowMore-CvdNQXrA.js +1 -0
- package/dist/WuiSlider-D33Y3_t9.js +51 -0
- package/dist/WuiSortable-CBLMNRuZ.js +1 -0
- package/dist/WuiTimePicker-DOodgU2O.js +9 -0
- package/dist/WuiTour-Cx61ijsm.js +1 -0
- package/dist/WuiTree-0Yqu199O.js +1 -0
- package/dist/WuiTruncate-C2WV1-NN.js +1 -0
- package/dist/WuiWhatsNew-dLGyA4g1.js +1 -0
- package/dist/WuiWizardStep-Cencr-mT.js +1 -0
- package/dist/{anchorOverlay-DDrc2k6y.js → anchorOverlay-CXnWfezA.js} +1 -1
- package/dist/buttonClass-GtEi8hAY.js +1 -0
- package/dist/calendarMath-D6UUgYTD.js +1 -0
- package/dist/chips-Dony2fgq.js +2 -0
- package/dist/commentText-BnX7rA2-.js +1 -0
- package/dist/{countries-CvmZ2xpG.js → countries-DQL9nAUt.js} +1 -1
- package/dist/country-x5lqC5Xu.js +1 -0
- package/dist/customRule-Chp7YwFb.js +1 -0
- package/dist/dataTable-B-7oAeii.js +1 -0
- package/dist/dom-Do1pAA12.js +1 -0
- package/dist/drawerDiscard-C0yRSl1I.js +1 -0
- package/dist/elementBase-Cxeyx0tU.js +1 -0
- package/dist/elements/carousel.js +1 -1
- package/dist/elements/code-block.js +1 -1
- package/dist/elements/command-palette.js +1 -1
- package/dist/elements/comment-thread.js +1 -1
- package/dist/elements/consent-banner.js +1 -1
- package/dist/elements/context-menu.js +1 -1
- package/dist/elements/data-table.js +1 -1
- package/dist/elements/date-range.js +1 -1
- package/dist/elements/datepicker.js +1 -1
- package/dist/elements/dock.js +1 -1
- package/dist/elements/drawer.js +1 -1
- package/dist/elements/filter-popover.js +1 -1
- package/dist/elements/hover-card.js +1 -1
- package/dist/elements/image-crop.js +1 -1
- package/dist/elements/inline-edit.js +1 -1
- package/dist/elements/kanban.js +1 -1
- package/dist/elements/lead-popup.js +1 -1
- package/dist/elements/lightbox.js +1 -1
- package/dist/elements/markdown.js +1 -1
- package/dist/elements/mention-input.js +1 -1
- package/dist/elements/navigation-menu.js +1 -1
- package/dist/elements/notification-center.js +1 -1
- package/dist/elements/onboarding-checklist.js +1 -1
- package/dist/elements/org-tree.js +1 -1
- package/dist/elements/otp.js +1 -1
- package/dist/elements/overflow.js +1 -1
- package/dist/elements/phone.js +1 -1
- package/dist/elements/rating.js +1 -1
- package/dist/elements/record-pager.js +1 -1
- package/dist/elements/relative-time.js +1 -1
- package/dist/elements/resizable.js +1 -1
- package/dist/elements/rolling-number.js +1 -1
- package/dist/elements/saved-views.js +1 -1
- package/dist/elements/select.js +1 -1
- package/dist/elements/shortcuts.js +1 -1
- package/dist/elements/show-more.js +1 -1
- package/dist/elements/slider.js +1 -1
- package/dist/elements/sortable.js +1 -1
- package/dist/elements/status-icon.js +1 -1
- package/dist/elements/timepicker.js +1 -1
- package/dist/elements/tour.js +1 -1
- package/dist/elements/tree.js +1 -1
- package/dist/elements/truncate.js +1 -1
- package/dist/elements/whats-new.js +1 -1
- package/dist/elements/wizard.js +1 -1
- package/dist/{fileViewerImage-CLzN49Fd.js → fileViewerImage-Bt1jeArm.js} +2 -2
- package/dist/fileViewerMedia-Bp1uHJvC.js +1 -0
- package/dist/{fileViewerPdf-6MAAzmCM.js → fileViewerPdf-CdaDuaRJ.js} +11 -11
- package/dist/fileViewerUi-ResPjO1o.js +1 -0
- package/dist/filterPopover-D8BOb-Hz.js +1 -0
- package/dist/formMirror-9IpSgeZb.js +1 -0
- package/dist/formatters-ljfITOZ3.js +1 -0
- package/dist/helpers.js +1 -1
- package/dist/iconGlyphs.g-DPqoOoXy.js +1 -0
- package/dist/inlineEditText-CsLCQbcg.js +1 -0
- package/dist/kanban-Dz8m-17x.js +1 -0
- package/dist/kanbanModel-C2IOPJ8L.js +1 -0
- package/dist/listQuery.js +1 -1
- package/dist/listboxKeyNav-4LeEjKq6.js +1 -0
- package/dist/loader-ByHAB1wi.js +1 -0
- package/dist/mentionText-BJsw_opZ.js +1 -0
- package/dist/{notificationDays-dNQZGLlB.js → notificationDays-BIWczft0.js} +1 -1
- package/dist/{optionLabel-CLemms21.js → optionLabel-4xjXWy74.js} +1 -1
- package/dist/recents-CmLLdV8O.js +1 -0
- package/dist/relativeTime-BahImc8F.js +1 -0
- package/dist/search-C8xIzt6h.js +1 -0
- package/dist/server.js +1 -1
- package/dist/shortcutKeys-COVLox98.js +1 -0
- package/dist/{statusIcons-Dt2ZVJyk.js → statusIcons-CRtqA_1C.js} +2 -2
- package/dist/themeTransition-9LQC6fx8.js +1 -0
- package/dist/tourSeenStore-z0Y_Znzx.js +1 -0
- package/dist/ui-calendar.global.js +1 -1
- package/dist/ui-calendar.js +1 -1
- package/dist/ui-chart.global.js +15 -15
- package/dist/ui-chart.js +13 -13
- package/dist/ui-consent-banner.global.js +1 -1
- package/dist/ui-elements/carousel.global.js +1 -1
- package/dist/ui-elements/code-block.global.js +1 -1
- package/dist/ui-elements/command-palette.global.js +2 -2
- package/dist/ui-elements/comment-thread.global.js +1 -1
- package/dist/ui-elements/consent-banner.global.js +1 -1
- package/dist/ui-elements/context-menu.global.js +1 -1
- package/dist/ui-elements/date-range.global.js +4 -4
- package/dist/ui-elements/drawer.global.js +1 -1
- package/dist/ui-elements/glyphs.global.js +1 -0
- package/dist/ui-elements/image-crop.global.js +2 -2
- package/dist/ui-elements/inline-edit.global.js +1 -1
- package/dist/ui-elements/kanban.global.js +1 -1
- package/dist/ui-elements/lead-popup.global.js +3 -3
- package/dist/ui-elements/lightbox.global.js +1 -1
- package/dist/ui-elements/markdown.global.js +2 -2
- package/dist/ui-elements/org-tree.global.js +1 -1
- package/dist/ui-elements/phone.global.js +9 -9
- package/dist/ui-elements/resizable.global.js +1 -1
- package/dist/ui-elements/saved-views.global.js +1 -1
- package/dist/ui-elements/select-chips.global.js +2 -2
- package/dist/ui-elements/select-recents.global.js +1 -1
- package/dist/ui-elements/select-search.global.js +1 -1
- package/dist/ui-elements/slider.global.js +2 -2
- package/dist/ui-elements/sortable.global.js +1 -1
- package/dist/ui-elements/status-icon.global.js +2 -2
- package/dist/ui-elements/timepicker.global.js +2 -2
- package/dist/ui-elements/tour.global.js +1 -1
- package/dist/ui-elements/tree.global.js +1 -1
- package/dist/ui-elements/wizard.global.js +1 -1
- package/dist/ui-elements.global.js +19 -19
- package/dist/ui-elements.js +1 -1
- package/dist/ui-file-viewer.global.js +11 -11
- package/dist/ui-file-viewer.js +1 -1
- package/dist/ui-lead-popup.global.js +1 -1
- package/dist/ui-phone.global.js +8 -8
- package/dist/ui-rich-text.global.js +57 -57
- package/dist/ui-rich-text.js +56 -56
- package/dist/ui-tour.global.js +1 -1
- package/dist/wuiHttp-DGbD7Fra.js +1 -0
- package/dist/{zone-D82f-GU_.js → zone-BR02ZkHF.js} +1 -1
- package/package.json +208 -55
- package/types/WuiCalendar.d.ts +69 -0
- package/types/WuiCarousel.d.ts +64 -0
- package/types/WuiChart.d.ts +77 -0
- package/types/WuiCodeBlock.d.ts +27 -0
- package/types/WuiCommandPalette.d.ts +135 -0
- package/types/WuiCommentThread.d.ts +77 -0
- package/types/WuiConsentBanner.d.ts +73 -0
- package/types/WuiContextMenu.d.ts +90 -0
- package/types/WuiDataTable.d.ts +90 -0
- package/types/WuiDatePicker.d.ts +59 -0
- package/types/WuiDateRange.d.ts +61 -0
- package/types/WuiDock.d.ts +20 -0
- package/types/WuiDrawer.d.ts +65 -0
- package/types/WuiFileViewer.d.ts +111 -0
- package/types/WuiHoverCard.d.ts +29 -0
- package/types/WuiImageCrop.d.ts +119 -0
- package/types/WuiInlineEdit.d.ts +65 -0
- package/types/WuiLeadPopup.d.ts +83 -0
- package/types/WuiLightbox.d.ts +80 -0
- package/types/WuiMarkdown.d.ts +85 -0
- package/types/WuiMentionInput.d.ts +112 -0
- package/types/WuiNavigationMenu.d.ts +29 -0
- package/types/WuiNotificationCenter.d.ts +34 -0
- package/types/WuiOnboardingChecklist.d.ts +34 -0
- package/types/WuiOrgTree.d.ts +50 -0
- package/types/WuiOtp.d.ts +32 -0
- package/types/WuiOverflow.d.ts +29 -0
- package/types/WuiPhone.d.ts +37 -0
- package/types/WuiRating.d.ts +17 -0
- package/types/WuiRecordPager.d.ts +9 -0
- package/types/WuiRelativeTime.d.ts +17 -0
- package/types/WuiResizable.d.ts +79 -0
- package/types/WuiRichText.d.ts +45 -0
- package/types/WuiRollingNumber.d.ts +27 -0
- package/types/WuiSavedViews.d.ts +41 -0
- package/types/WuiSelect.d.ts +147 -0
- package/types/WuiShortcuts.d.ts +31 -0
- package/types/WuiShowMore.d.ts +16 -0
- package/types/WuiSlider.d.ts +126 -0
- package/types/WuiSortable.d.ts +127 -0
- package/types/WuiTimePicker.d.ts +68 -0
- package/types/WuiTour.d.ts +117 -0
- package/types/WuiTree.d.ts +112 -0
- package/types/WuiTruncate.d.ts +19 -0
- package/types/WuiWhatsNew.d.ts +36 -0
- package/types/WuiWizard.d.ts +78 -0
- package/types/WuiWizardStep.d.ts +5 -0
- package/types/anchorOverlay.d.ts +75 -0
- package/types/avatarHtml.d.ts +10 -0
- package/types/avatarPicker.d.ts +47 -0
- package/types/buttonClass.d.ts +8 -0
- package/types/calendar.d.ts +3 -0
- package/types/calendarAdapter.d.ts +68 -0
- package/types/calendarMath.d.ts +40 -0
- package/types/calendarModel.d.ts +78 -0
- package/types/chart.d.ts +4 -0
- package/types/chartAdapter.d.ts +160 -0
- package/types/chartSpec.d.ts +382 -0
- package/types/codeHighlight.d.ts +25 -0
- package/types/collapsibleSearch.d.ts +7 -0
- package/types/commandShortcut.d.ts +12 -0
- package/types/commentText.d.ts +40 -0
- package/types/consentBannerGlobal.d.ts +1 -0
- package/types/consentBannerStandalone.d.ts +2 -0
- package/types/copyText.d.ts +10 -0
- package/types/countries.d.ts +3 -0
- package/types/currency.d.ts +6 -0
- package/types/dataTable.d.ts +159 -0
- package/types/datePresets.d.ts +19 -0
- package/types/defaultCountry.d.ts +3 -0
- package/types/defineElement.d.ts +6 -0
- package/types/devWarn.d.ts +2 -0
- package/types/dom.d.ts +8 -0
- package/types/drawerSnap.d.ts +24 -0
- package/types/elementBase.d.ts +2 -0
- package/types/elementRegistry.d.ts +5 -0
- package/types/elements/carousel.d.ts +2 -0
- package/types/elements/code-block.d.ts +2 -0
- package/types/elements/command-palette.d.ts +2 -0
- package/types/elements/comment-thread.d.ts +4 -0
- package/types/elements/consent-banner.d.ts +2 -0
- package/types/elements/context-menu.d.ts +2 -0
- package/types/elements/data-table.d.ts +3 -0
- package/types/elements/date-range.d.ts +2 -0
- package/types/elements/datepicker.d.ts +2 -0
- package/types/elements/dock.d.ts +2 -0
- package/types/elements/drawer.d.ts +2 -0
- package/types/elements/filter-popover.d.ts +2 -0
- package/types/elements/hover-card.d.ts +2 -0
- package/types/elements/image-crop.d.ts +2 -0
- package/types/elements/inline-edit.d.ts +3 -0
- package/types/elements/kanban.d.ts +2 -0
- package/types/elements/lead-popup.d.ts +2 -0
- package/types/elements/lightbox.d.ts +2 -0
- package/types/elements/markdown.d.ts +2 -0
- package/types/elements/mention-input.d.ts +3 -5
- package/types/elements/navigation-menu.d.ts +2 -0
- package/types/elements/notification-center.d.ts +2 -0
- package/types/elements/onboarding-checklist.d.ts +2 -0
- package/types/elements/org-tree.d.ts +2 -0
- package/types/elements/otp.d.ts +2 -0
- package/types/elements/overflow.d.ts +2 -0
- package/types/elements/phone.d.ts +2 -0
- package/types/elements/rating.d.ts +2 -0
- package/types/elements/record-pager.d.ts +2 -0
- package/types/elements/relative-time.d.ts +3 -0
- package/types/elements/resizable.d.ts +2 -0
- package/types/elements/rolling-number.d.ts +2 -0
- package/types/elements/saved-views.d.ts +2 -0
- package/types/elements/select.d.ts +2 -0
- package/types/elements/shortcuts.d.ts +2 -0
- package/types/elements/show-more.d.ts +2 -0
- package/types/elements/slider.d.ts +2 -0
- package/types/elements/sortable.d.ts +2 -0
- package/types/elements/status-icon.d.ts +1 -0
- package/types/elements/timepicker.d.ts +2 -0
- package/types/elements/tour.d.ts +1 -6
- package/types/elements/tree.d.ts +2 -0
- package/types/elements/truncate.d.ts +2 -0
- package/types/elements/whats-new.d.ts +2 -0
- package/types/elements/wizard.d.ts +3 -0
- package/types/fieldState.d.ts +4 -0
- package/types/fileDrop.d.ts +31 -0
- package/types/fileValidation.d.ts +47 -0
- package/types/fileViewer.d.ts +3 -0
- package/types/fileViewerImage.d.ts +69 -0
- package/types/fileViewerMedia.d.ts +62 -0
- package/types/fileViewerPdf.d.ts +214 -0
- package/types/fileViewerSearch.d.ts +55 -0
- package/types/fileViewerUi.d.ts +33 -0
- package/types/filterPopover.d.ts +55 -0
- package/types/focusOrigin.d.ts +3 -0
- package/types/formMirror.d.ts +22 -0
- package/types/formatters.d.ts +124 -0
- package/types/global/chunks.d.ts +12 -0
- package/types/global/core.d.ts +57 -0
- package/types/global/glyphs.d.ts +10 -0
- package/types/global/loader.d.ts +16 -0
- package/types/global/parts/glyphs.d.ts +1 -0
- package/types/global/parts/select-chips.d.ts +1 -0
- package/types/global/parts/select-country.d.ts +1 -0
- package/types/global/parts/select-recents.d.ts +1 -0
- package/types/global/parts/select-search.d.ts +1 -0
- package/types/global/shared.d.ts +56 -0
- package/types/globals.d.ts +238 -0
- package/types/helpers.d.ts +29 -3
- package/types/iconGlyphs.g.d.ts +7 -0
- package/types/iconGlyphsCore.g.d.ts +1 -0
- package/types/iconGlyphsLazy.g.d.ts +1 -0
- package/types/imageCrop.d.ts +75 -0
- package/types/index.d.ts +54 -0
- package/types/inlineEditText.d.ts +47 -0
- package/types/inputMask.d.ts +70 -0
- package/types/kanban.d.ts +157 -0
- package/types/kanbanModel.d.ts +77 -0
- package/types/leadPopupGlobal.d.ts +1 -0
- package/types/leadPopupStandalone.d.ts +2 -0
- package/types/listQuery.d.ts +87 -0
- package/types/listboxKeyNav.d.ts +63 -0
- package/types/mentionText.d.ts +45 -0
- package/types/navReveal.d.ts +1 -0
- package/types/notificationDays.d.ts +50 -0
- package/types/optionLabel.d.ts +27 -0
- package/types/overlayRelease.d.ts +12 -0
- package/types/pageBarBulk.d.ts +4 -0
- package/types/passwordRules.d.ts +50 -0
- package/types/phoneData.d.ts +1 -0
- package/types/phoneLib.d.ts +15 -0
- package/types/phoneLibGlobal.d.ts +3 -0
- package/types/razor-js/modules/api.d.ts +36 -0
- package/types/razor-js/modules/avatars.d.ts +1 -0
- package/types/razor-js/modules/buttons.d.ts +1 -0
- package/types/razor-js/modules/dropZones.d.ts +2 -0
- package/types/razor-js/modules/fileHelpers.d.ts +16 -0
- package/types/razor-js/modules/filePickers.d.ts +6 -0
- package/types/razor-js/modules/filterBars.d.ts +1 -0
- package/types/razor-js/modules/imagePickers.d.ts +1 -0
- package/types/razor-js/modules/inputs.d.ts +10 -0
- package/types/razor-js/modules/look.d.ts +6 -0
- package/types/razor-js/modules/overlays.d.ts +5 -0
- package/types/razor-js/modules/pageListeners.d.ts +1 -0
- package/types/razor-js/modules/popovers.d.ts +1 -0
- package/types/razor-js/modules/serverBridge.d.ts +13 -0
- package/types/razor-js/modules/shared.d.ts +15 -0
- package/types/razor-js/modules/shell.d.ts +1 -0
- package/types/razor-js/modules/splitView.d.ts +2 -0
- package/types/razor-js/modules/tables.d.ts +9 -0
- package/types/razor-js/modules/tabs.d.ts +1 -0
- package/types/razor-js/modules/themeCopy.d.ts +2 -0
- package/types/razor-js/modules/toast.d.ts +3 -0
- package/types/razor-js/modules/validation.d.ts +11 -0
- package/types/razor-js/modules/widgets.d.ts +10 -0
- package/types/razor-js/webority-ui.d.ts +51 -0
- package/types/relativeTime.d.ts +10 -0
- package/types/richText.d.ts +2 -0
- package/types/richTextAdapter.d.ts +54 -0
- package/types/richTextIcons.d.ts +1 -0
- package/types/rowDrop.d.ts +12 -0
- package/types/scrollEdges.d.ts +10 -0
- package/types/select/chips.d.ts +2 -0
- package/types/select/country.d.ts +2 -0
- package/types/select/customRule.d.ts +3 -0
- package/types/select/list.d.ts +32 -0
- package/types/select/option.d.ts +21 -0
- package/types/select/part.d.ts +103 -0
- package/types/select/partRegistry.d.ts +7 -0
- package/types/select/parts.d.ts +1 -0
- package/types/select/partsGlobal.d.ts +4 -0
- package/types/select/recents.d.ts +2 -0
- package/types/select/remote.d.ts +2 -0
- package/types/select/search.d.ts +5 -0
- package/types/server/drawerDiscard.d.ts +9 -0
- package/types/server/index.d.ts +9 -0
- package/types/server/remoteModal.d.ts +96 -0
- package/types/server/serverActions.d.ts +33 -0
- package/types/server/serverTable.d.ts +48 -0
- package/types/server/shellParts.d.ts +24 -0
- package/types/server/toastAction.d.ts +7 -0
- package/types/server/toastHeader.d.ts +8 -0
- package/types/server/unsavedChanges.d.ts +17 -0
- package/types/server/wuiHttp.d.ts +86 -0
- package/types/shortcutKeys.d.ts +59 -0
- package/types/statusIconImages.d.ts +1 -0
- package/types/statusIcons.d.ts +12 -0
- package/types/stepperHeader.d.ts +31 -0
- package/types/submitOnce.d.ts +3 -0
- package/types/tableSelect.d.ts +34 -0
- package/types/textMatch.d.ts +9 -0
- package/types/themeTransition.d.ts +88 -0
- package/types/toastTypes.d.ts +20 -0
- package/types/tokenCommit.d.ts +13 -0
- package/types/tourAdvance.d.ts +51 -0
- package/types/tourEnd.d.ts +17 -0
- package/types/tourGlobal.d.ts +4 -0
- package/types/tourIsolated.d.ts +2 -0
- package/types/tourMedia.d.ts +19 -0
- package/types/tourMotion.d.ts +20 -0
- package/types/tourOpenMark.d.ts +1 -0
- package/types/tourPlacement.d.ts +24 -0
- package/types/tourProgress.d.ts +29 -0
- package/types/tourSeenStore.d.ts +12 -0
- package/types/zone.d.ts +24 -0
- package/types/zoneCountries.g.d.ts +1 -0
- package/dist/WuiCarousel-C2NWcFxr.js +0 -1
- package/dist/WuiCodeBlock-CCCJwsk5.js +0 -1
- package/dist/WuiCommandPalette-Bfrbocu6.js +0 -2
- package/dist/WuiCommentThread-Dx3vvBWp.js +0 -1
- package/dist/WuiConsentBanner-jkeRiC1_.js +0 -1
- package/dist/WuiContextMenu-KXD8TFfy.js +0 -1
- package/dist/WuiDataTable-DAxAegnG.js +0 -1
- package/dist/WuiDatePicker-kEyyILbM.js +0 -31
- package/dist/WuiDateRange-B05PsdJ3.js +0 -25
- package/dist/WuiDock-Bd2ijOaJ.js +0 -1
- package/dist/WuiDrawer-SkxcDhgf.js +0 -1
- package/dist/WuiHoverCard-Bqapy8Is.js +0 -1
- package/dist/WuiImageCrop-DzzzPagi.js +0 -17
- package/dist/WuiInlineEdit-BqgKfVMy.js +0 -1
- package/dist/WuiLeadPopup-Dwmg7coE.js +0 -382
- package/dist/WuiLightbox-DCTE3ULH.js +0 -1
- package/dist/WuiMarkdown-D5vm4sp4.js +0 -4
- package/dist/WuiMentionInput-Bi3VQoKo.js +0 -1
- package/dist/WuiNavigationMenu-DmH3waKW.js +0 -1
- package/dist/WuiNotificationCenter-DawJRGBc.js +0 -1
- package/dist/WuiOnboardingChecklist-DXUETu1h.js +0 -1
- package/dist/WuiOrgTree-DuaBtFl9.js +0 -1
- package/dist/WuiOverflow-DP3qEbDp.js +0 -1
- package/dist/WuiPhone-CFne_6XG.js +0 -16
- package/dist/WuiRating-DhhqYj5Z.js +0 -1
- package/dist/WuiRecordPager-BOaFcs_W.js +0 -1
- package/dist/WuiRelativeTime-BG6rgUhw.js +0 -1
- package/dist/WuiResizable-mt9EMhjQ.js +0 -1
- package/dist/WuiRollingNumber-CF3H6l7t.js +0 -1
- package/dist/WuiSavedViews-BMBQUv2K.js +0 -1
- package/dist/WuiSelect-oSJPev4N.js +0 -9
- package/dist/WuiShortcuts-BEvFCIu9.js +0 -1
- package/dist/WuiShowMore-D3VHRZJg.js +0 -1
- package/dist/WuiSlider-2kB__6zU.js +0 -51
- package/dist/WuiSortable-r5iZtzM1.js +0 -1
- package/dist/WuiTimePicker-DqqZPv0T.js +0 -9
- package/dist/WuiTour-B-V1PZnw.js +0 -1
- package/dist/WuiTree-B3cnH1PG.js +0 -1
- package/dist/WuiTruncate-DyDQWMBu.js +0 -1
- package/dist/WuiWhatsNew-B5jK2zwZ.js +0 -1
- package/dist/WuiWizardStep-CIYuIp4a.js +0 -1
- package/dist/buttonClass-Yk0Fwgs6.js +0 -1
- package/dist/calendarMath-BC2wGCD-.js +0 -1
- package/dist/chips-DbhCYoAp.js +0 -2
- package/dist/country-3uo7no9r.js +0 -1
- package/dist/customRule-BE7CusA3.js +0 -1
- package/dist/dataTable-BoyxeUL4.js +0 -1
- package/dist/drawerDiscard-D6YgF59q.js +0 -1
- package/dist/elementBase-DV9IZZCu.js +0 -1
- package/dist/fileViewerMedia-BQ0lVXy9.js +0 -1
- package/dist/fileViewerUi-DQH6_B1a.js +0 -1
- package/dist/filterPopover-DniNyLWI.js +0 -1
- package/dist/formMirror-BMQTenSi.js +0 -1
- package/dist/formatters-Ba0CvsTs.js +0 -1
- package/dist/iconGlyphs.g-BlwTSNXS.js +0 -1
- package/dist/kanban-BtgxVDE-.js +0 -1
- package/dist/listboxKeyNav-DMIvs9d6.js +0 -1
- package/dist/loader-Dw3IkGM0.js +0 -1
- package/dist/recents-BzN7j9kV.js +0 -1
- package/dist/search-CdAH8NGK.js +0 -1
- package/dist/shortcutKeys-CvxSh3bV.js +0 -1
- package/dist/themeTransition-rHRVbhHB.js +0 -1
- package/dist/wuiHttp-BuaTcumE.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as anchorOverlay from "../anchorOverlay.ts";
|
|
2
|
+
import * as buttonClass from "../buttonClass.ts";
|
|
3
|
+
import * as calendarMath from "../calendarMath.ts";
|
|
4
|
+
import * as copyText from "../copyText.ts";
|
|
5
|
+
import * as dataTable from "../dataTable.ts";
|
|
6
|
+
import * as defineElement from "../defineElement.ts";
|
|
7
|
+
import * as devWarn from "../devWarn.ts";
|
|
8
|
+
import * as elementBase from "../elementBase.ts";
|
|
9
|
+
import * as fieldState from "../fieldState.ts";
|
|
10
|
+
import * as formatters from "../formatters.ts";
|
|
11
|
+
import * as formMirror from "../formMirror.ts";
|
|
12
|
+
import * as iconGlyphs from "../iconGlyphs.g.ts";
|
|
13
|
+
import * as listboxKeyNav from "../listboxKeyNav.ts";
|
|
14
|
+
import * as mentionText from "../mentionText.ts";
|
|
15
|
+
import * as notificationDays from "../notificationDays.ts";
|
|
16
|
+
import * as optionLabel from "../optionLabel.ts";
|
|
17
|
+
import * as selectList from "../select/list.ts";
|
|
18
|
+
import * as partRegistry from "../select/partRegistry.ts";
|
|
19
|
+
import * as selectRemote from "../select/remote.ts";
|
|
20
|
+
import * as wuiHttp from "../server/wuiHttp.ts";
|
|
21
|
+
import * as stepperHeader from "../stepperHeader.ts";
|
|
22
|
+
import * as tableSelect from "../tableSelect.ts";
|
|
23
|
+
import * as textMatch from "../textMatch.ts";
|
|
24
|
+
import * as WuiSelect from "../WuiSelect.ts";
|
|
25
|
+
import * as zone from "../zone.ts";
|
|
26
|
+
import * as glyphs from "./glyphs.ts";
|
|
27
|
+
import * as loader from "./loader.ts";
|
|
28
|
+
export declare const SHARED_MODULES: Readonly<{
|
|
29
|
+
anchorOverlay: typeof anchorOverlay;
|
|
30
|
+
buttonClass: typeof buttonClass;
|
|
31
|
+
calendarMath: typeof calendarMath;
|
|
32
|
+
copyText: typeof copyText;
|
|
33
|
+
dataTable: typeof dataTable;
|
|
34
|
+
defineElement: typeof defineElement;
|
|
35
|
+
devWarn: typeof devWarn;
|
|
36
|
+
elementBase: typeof elementBase;
|
|
37
|
+
fieldState: typeof fieldState;
|
|
38
|
+
formatters: typeof formatters;
|
|
39
|
+
formMirror: typeof formMirror;
|
|
40
|
+
glyphs: typeof glyphs;
|
|
41
|
+
iconGlyphs: typeof iconGlyphs;
|
|
42
|
+
listboxKeyNav: typeof listboxKeyNav;
|
|
43
|
+
loader: typeof loader;
|
|
44
|
+
mentionText: typeof mentionText;
|
|
45
|
+
notificationDays: typeof notificationDays;
|
|
46
|
+
optionLabel: typeof optionLabel;
|
|
47
|
+
partRegistry: typeof partRegistry;
|
|
48
|
+
selectList: typeof selectList;
|
|
49
|
+
selectRemote: typeof selectRemote;
|
|
50
|
+
stepperHeader: typeof stepperHeader;
|
|
51
|
+
tableSelect: typeof tableSelect;
|
|
52
|
+
textMatch: typeof textMatch;
|
|
53
|
+
wuiHttp: typeof wuiHttp;
|
|
54
|
+
WuiSelect: typeof WuiSelect;
|
|
55
|
+
zone: typeof zone;
|
|
56
|
+
}>;
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import type { WuiFilterPopover } from "./filterPopover.ts";
|
|
2
|
+
import type { WuiKanban } from "./kanban.ts";
|
|
3
|
+
import type { WuiStatusIcon } from "./statusIcons.ts";
|
|
4
|
+
import type { WuiTourStep } from "./tourGlobal.ts";
|
|
5
|
+
import type { WuiCalendar } from "./WuiCalendar.ts";
|
|
6
|
+
import type { WuiCarousel } from "./WuiCarousel.ts";
|
|
7
|
+
import type { WuiChart } from "./WuiChart.ts";
|
|
8
|
+
import type { WuiCodeBlock } from "./WuiCodeBlock.ts";
|
|
9
|
+
import type { WuiCommandPalette } from "./WuiCommandPalette.ts";
|
|
10
|
+
import type { WuiCommentThread } from "./WuiCommentThread.ts";
|
|
11
|
+
import type { WuiConsentBanner } from "./WuiConsentBanner.ts";
|
|
12
|
+
import type { WuiContextMenu } from "./WuiContextMenu.ts";
|
|
13
|
+
import type { WuiDataTable } from "./WuiDataTable.ts";
|
|
14
|
+
import type { WuiDatePicker } from "./WuiDatePicker.ts";
|
|
15
|
+
import type { WuiDateRange } from "./WuiDateRange.ts";
|
|
16
|
+
import type { WuiDock } from "./WuiDock.ts";
|
|
17
|
+
import type { WuiDrawer } from "./WuiDrawer.ts";
|
|
18
|
+
import type { WuiFileViewer } from "./WuiFileViewer.ts";
|
|
19
|
+
import type { WuiHoverCard } from "./WuiHoverCard.ts";
|
|
20
|
+
import type { WuiImageCrop } from "./WuiImageCrop.ts";
|
|
21
|
+
import type { WuiInlineEdit } from "./WuiInlineEdit.ts";
|
|
22
|
+
import type { WuiLeadPopup } from "./WuiLeadPopup.ts";
|
|
23
|
+
import type { WuiLightbox } from "./WuiLightbox.ts";
|
|
24
|
+
import type { WuiMarkdown } from "./WuiMarkdown.ts";
|
|
25
|
+
import type { WuiMentionInput } from "./WuiMentionInput.ts";
|
|
26
|
+
import type { WuiNavigationMenu } from "./WuiNavigationMenu.ts";
|
|
27
|
+
import type { WuiNotificationCenter } from "./WuiNotificationCenter.ts";
|
|
28
|
+
import type { WuiOnboardingChecklist } from "./WuiOnboardingChecklist.ts";
|
|
29
|
+
import type { WuiOrgTree } from "./WuiOrgTree.ts";
|
|
30
|
+
import type { WuiOtp } from "./WuiOtp.ts";
|
|
31
|
+
import type { WuiOverflow } from "./WuiOverflow.ts";
|
|
32
|
+
import type { WuiPhone } from "./WuiPhone.ts";
|
|
33
|
+
import type { WuiRating } from "./WuiRating.ts";
|
|
34
|
+
import type { WuiRecordPager } from "./WuiRecordPager.ts";
|
|
35
|
+
import type { WuiRelativeTime } from "./WuiRelativeTime.ts";
|
|
36
|
+
import type { WuiResizable } from "./WuiResizable.ts";
|
|
37
|
+
import type { WuiRichText } from "./WuiRichText.ts";
|
|
38
|
+
import type { WuiRollingNumber } from "./WuiRollingNumber.ts";
|
|
39
|
+
import type { WuiSavedViews } from "./WuiSavedViews.ts";
|
|
40
|
+
import type { WuiSelect } from "./WuiSelect.ts";
|
|
41
|
+
import type { WuiShortcuts } from "./WuiShortcuts.ts";
|
|
42
|
+
import type { WuiShowMore } from "./WuiShowMore.ts";
|
|
43
|
+
import type { WuiSlider } from "./WuiSlider.ts";
|
|
44
|
+
import type { WuiSortable } from "./WuiSortable.ts";
|
|
45
|
+
import type { WuiTimePicker } from "./WuiTimePicker.ts";
|
|
46
|
+
import type { WuiTour } from "./WuiTour.ts";
|
|
47
|
+
import type { WuiTree } from "./WuiTree.ts";
|
|
48
|
+
import type { WuiTruncate } from "./WuiTruncate.ts";
|
|
49
|
+
import type { WuiWhatsNew } from "./WuiWhatsNew.ts";
|
|
50
|
+
import type { WuiWizard } from "./WuiWizard.ts";
|
|
51
|
+
import type { WuiWizardStep } from "./WuiWizardStep.ts";
|
|
52
|
+
export interface WuiElementTagMap {
|
|
53
|
+
"wui-calendar": WuiCalendar;
|
|
54
|
+
"wui-carousel": WuiCarousel;
|
|
55
|
+
"wui-chart": WuiChart;
|
|
56
|
+
"wui-code-block": WuiCodeBlock;
|
|
57
|
+
"wui-command-palette": WuiCommandPalette;
|
|
58
|
+
"wui-comment-thread": WuiCommentThread;
|
|
59
|
+
"wui-consent-banner": WuiConsentBanner;
|
|
60
|
+
"wui-context-menu": WuiContextMenu;
|
|
61
|
+
"wui-data-table": WuiDataTable;
|
|
62
|
+
"wui-datepicker": WuiDatePicker;
|
|
63
|
+
"wui-date-range": WuiDateRange;
|
|
64
|
+
"wui-dock": WuiDock;
|
|
65
|
+
"wui-drawer": WuiDrawer;
|
|
66
|
+
"wui-file-viewer": WuiFileViewer;
|
|
67
|
+
"wui-filter-popover": WuiFilterPopover;
|
|
68
|
+
"wui-hover-card": WuiHoverCard;
|
|
69
|
+
"wui-image-crop": WuiImageCrop;
|
|
70
|
+
"wui-inline-edit": WuiInlineEdit;
|
|
71
|
+
"wui-kanban": WuiKanban;
|
|
72
|
+
"wui-lead-popup": WuiLeadPopup;
|
|
73
|
+
"wui-lightbox": WuiLightbox;
|
|
74
|
+
"wui-markdown": WuiMarkdown;
|
|
75
|
+
"wui-mention-input": WuiMentionInput;
|
|
76
|
+
"wui-navigation-menu": WuiNavigationMenu;
|
|
77
|
+
"wui-notification-center": WuiNotificationCenter;
|
|
78
|
+
"wui-onboarding-checklist": WuiOnboardingChecklist;
|
|
79
|
+
"wui-org-tree": WuiOrgTree;
|
|
80
|
+
"wui-otp": WuiOtp;
|
|
81
|
+
"wui-overflow": WuiOverflow;
|
|
82
|
+
"wui-phone": WuiPhone;
|
|
83
|
+
"wui-rating": WuiRating;
|
|
84
|
+
"wui-record-pager": WuiRecordPager;
|
|
85
|
+
"wui-relative-time": WuiRelativeTime;
|
|
86
|
+
"wui-resizable": WuiResizable;
|
|
87
|
+
"wui-rich-text": WuiRichText;
|
|
88
|
+
"wui-rolling-number": WuiRollingNumber;
|
|
89
|
+
"wui-saved-views": WuiSavedViews;
|
|
90
|
+
"wui-select": WuiSelect;
|
|
91
|
+
"wui-shortcuts": WuiShortcuts;
|
|
92
|
+
"wui-show-more": WuiShowMore;
|
|
93
|
+
"wui-slider": WuiSlider;
|
|
94
|
+
"wui-sortable": WuiSortable;
|
|
95
|
+
"wui-status-icon": WuiStatusIcon;
|
|
96
|
+
"wui-timepicker": WuiTimePicker;
|
|
97
|
+
"wui-tour": WuiTour;
|
|
98
|
+
"wui-tour-step": WuiTourStep;
|
|
99
|
+
"wui-tree": WuiTree;
|
|
100
|
+
"wui-truncate": WuiTruncate;
|
|
101
|
+
"wui-whats-new": WuiWhatsNew;
|
|
102
|
+
"wui-wizard": WuiWizard;
|
|
103
|
+
"wui-wizard-step": WuiWizardStep;
|
|
104
|
+
}
|
|
105
|
+
export interface BootstrapComponent<Instance, Options> {
|
|
106
|
+
new (element: Element | string, config?: Options): Instance;
|
|
107
|
+
getInstance(element: Element): Instance | null;
|
|
108
|
+
getOrCreateInstance(element: Element, config?: Options): Instance;
|
|
109
|
+
readonly EVENT_KEY: string;
|
|
110
|
+
}
|
|
111
|
+
export interface BootstrapModalInstance {
|
|
112
|
+
show(): void;
|
|
113
|
+
hide(): void;
|
|
114
|
+
toggle(): void;
|
|
115
|
+
handleUpdate(): void;
|
|
116
|
+
dispose(): void;
|
|
117
|
+
}
|
|
118
|
+
export interface BootstrapModalOptions {
|
|
119
|
+
backdrop?: boolean | "static";
|
|
120
|
+
focus?: boolean;
|
|
121
|
+
keyboard?: boolean;
|
|
122
|
+
}
|
|
123
|
+
export interface BootstrapTipInstance {
|
|
124
|
+
tip?: HTMLElement | null;
|
|
125
|
+
show(): void;
|
|
126
|
+
hide(): void;
|
|
127
|
+
toggle(): void;
|
|
128
|
+
update(): void;
|
|
129
|
+
dispose(): void;
|
|
130
|
+
setContent(content: Record<string, string | Element | null>): void;
|
|
131
|
+
}
|
|
132
|
+
export interface BootstrapTipOptions {
|
|
133
|
+
animation?: boolean;
|
|
134
|
+
boundary?: string | Element;
|
|
135
|
+
container?: string | Element | false;
|
|
136
|
+
content?: string | Element | (() => string | Element);
|
|
137
|
+
customClass?: string;
|
|
138
|
+
delay?: number | {
|
|
139
|
+
show: number;
|
|
140
|
+
hide: number;
|
|
141
|
+
};
|
|
142
|
+
fallbackPlacements?: string[];
|
|
143
|
+
html?: boolean;
|
|
144
|
+
offset?: [number, number] | string;
|
|
145
|
+
placement?: "auto" | "top" | "bottom" | "left" | "right";
|
|
146
|
+
popperConfig?: object | ((defaults: {
|
|
147
|
+
modifiers?: unknown[];
|
|
148
|
+
}) => object);
|
|
149
|
+
sanitize?: boolean;
|
|
150
|
+
selector?: string | false;
|
|
151
|
+
template?: string;
|
|
152
|
+
title?: string | Element | (() => string | Element);
|
|
153
|
+
trigger?: string;
|
|
154
|
+
}
|
|
155
|
+
export interface BootstrapDropdownInstance {
|
|
156
|
+
show(): void;
|
|
157
|
+
hide(): void;
|
|
158
|
+
toggle(): void;
|
|
159
|
+
update(): void;
|
|
160
|
+
dispose(): void;
|
|
161
|
+
}
|
|
162
|
+
export interface BootstrapTabInstance {
|
|
163
|
+
show(): void;
|
|
164
|
+
dispose(): void;
|
|
165
|
+
}
|
|
166
|
+
export type BootstrapTabOptions = Record<string, never>;
|
|
167
|
+
export interface WuiBootstrap {
|
|
168
|
+
Modal: BootstrapComponent<BootstrapModalInstance, BootstrapModalOptions>;
|
|
169
|
+
Tooltip: BootstrapComponent<BootstrapTipInstance, BootstrapTipOptions>;
|
|
170
|
+
Popover: BootstrapComponent<BootstrapTipInstance, BootstrapTipOptions> & {
|
|
171
|
+
Default: {
|
|
172
|
+
template: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
Dropdown: BootstrapComponent<BootstrapDropdownInstance, object>;
|
|
176
|
+
Tab: BootstrapComponent<BootstrapTabInstance, BootstrapTabOptions>;
|
|
177
|
+
}
|
|
178
|
+
export interface WuiEventMap {
|
|
179
|
+
"wui:shell:collapse": CustomEvent<{
|
|
180
|
+
collapsed: boolean;
|
|
181
|
+
}>;
|
|
182
|
+
"wui:shell:nav-fold": CustomEvent<{
|
|
183
|
+
key: string | undefined;
|
|
184
|
+
folded: boolean;
|
|
185
|
+
}>;
|
|
186
|
+
"wui:notifications:loaded": CustomEvent<{
|
|
187
|
+
unread: number;
|
|
188
|
+
}>;
|
|
189
|
+
"wui:search:select": CustomEvent<{
|
|
190
|
+
href: string;
|
|
191
|
+
}>;
|
|
192
|
+
"wui:teardown": CustomEvent<null>;
|
|
193
|
+
search: CustomEvent<{
|
|
194
|
+
query: string;
|
|
195
|
+
seq: number;
|
|
196
|
+
}>;
|
|
197
|
+
}
|
|
198
|
+
declare global {
|
|
199
|
+
interface HTMLElementTagNameMap extends WuiElementTagMap {
|
|
200
|
+
}
|
|
201
|
+
interface HTMLElementEventMap extends WuiEventMap {
|
|
202
|
+
}
|
|
203
|
+
interface DocumentEventMap extends WuiEventMap {
|
|
204
|
+
}
|
|
205
|
+
var bootstrap: WuiBootstrap | undefined;
|
|
206
|
+
var WeborityUiElements: typeof import("./global/core.ts") & Partial<typeof import("./elements/carousel.ts")> & Partial<typeof import("./elements/code-block.ts")> & Partial<typeof import("./elements/command-palette.ts")> & Partial<typeof import("./elements/comment-thread.ts")> & Partial<typeof import("./elements/consent-banner.ts")> & Partial<typeof import("./elements/context-menu.ts")> & Partial<typeof import("./elements/date-range.ts")> & Partial<typeof import("./elements/drawer.ts")> & Partial<typeof import("./elements/image-crop.ts")> & Partial<typeof import("./elements/inline-edit.ts")> & Partial<typeof import("./elements/kanban.ts")> & Partial<typeof import("./elements/lead-popup.ts")> & Partial<typeof import("./elements/lightbox.ts")> & Partial<typeof import("./elements/org-tree.ts")> & Partial<typeof import("./elements/markdown.ts")> & Partial<typeof import("./elements/phone.ts")> & Partial<typeof import("./global/parts/select-country.ts")> & Partial<typeof import("./elements/resizable.ts")> & Partial<typeof import("./elements/saved-views.ts")> & Partial<typeof import("./global/parts/select-chips.ts")> & Partial<typeof import("./global/parts/select-recents.ts")> & Partial<typeof import("./global/parts/select-search.ts")> & Partial<typeof import("./elements/slider.ts")> & Partial<typeof import("./elements/sortable.ts")> & Partial<typeof import("./elements/status-icon.ts")> & Partial<typeof import("./elements/timepicker.ts")> & Partial<typeof import("./elements/tour.ts")> & Partial<typeof import("./elements/tree.ts")> & Partial<typeof import("./elements/wizard.ts")>;
|
|
207
|
+
var WeborityFileViewer: typeof import("./fileViewer.ts") | undefined;
|
|
208
|
+
var WeborityChart: typeof import("./chart.ts") | undefined;
|
|
209
|
+
var WeborityCalendar: typeof import("./calendar.ts") | undefined;
|
|
210
|
+
var WeborityRichText: typeof import("./richText.ts") | undefined;
|
|
211
|
+
var WeborityTour: typeof import("./tourGlobal.ts") | undefined;
|
|
212
|
+
var WeborityLeadPopup: typeof import("./leadPopupGlobal.ts") | undefined;
|
|
213
|
+
var WeborityConsentBanner: typeof import("./consentBannerGlobal.ts") | undefined;
|
|
214
|
+
var WeborityPublicForms: {
|
|
215
|
+
session: () => Promise<{
|
|
216
|
+
token: string;
|
|
217
|
+
formStamp: string;
|
|
218
|
+
}>;
|
|
219
|
+
mintToken: (action: string) => Promise<string>;
|
|
220
|
+
} | undefined;
|
|
221
|
+
interface WuiHost {
|
|
222
|
+
refresh(root?: Document | Element): void;
|
|
223
|
+
toast(message: string, opts?: import("./toastTypes.ts").ToastOptions): HTMLElement | null;
|
|
224
|
+
modal: {
|
|
225
|
+
open(id: string): void;
|
|
226
|
+
close(id: string): void;
|
|
227
|
+
load(url: string, options?: Parameters<typeof import("./server/remoteModal.ts").loadRemoteModal>[1]): ReturnType<typeof import("./server/remoteModal.ts").loadRemoteModal>;
|
|
228
|
+
};
|
|
229
|
+
tour: {
|
|
230
|
+
seenStore: {
|
|
231
|
+
isSeen(tourId: string): Promise<boolean>;
|
|
232
|
+
markSeen(tourId: string, outcome: "finished" | "skipped"): Promise<void>;
|
|
233
|
+
} | null;
|
|
234
|
+
start(id: string): unknown;
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
var WUI: WuiHost | undefined;
|
|
238
|
+
}
|
package/types/helpers.d.ts
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
export { AVATAR_ACCEPT, AVATAR_MAX_SIZE_MB, AVATAR_OUTPUT_SIZE, AVATAR_OUTPUT_TYPE, AVATAR_PREVIEW_SIZES, AVATAR_TEXT, avatarCropOptions, avatarUnreadableMessage, isHeicFile, } from "./avatarPicker.ts";
|
|
2
|
+
export { COMMAND_SHORTCUT_ATTRIBUTE, initCommandShortcuts, isCommandChord } from "./commandShortcut.ts";
|
|
3
|
+
export { COMMENT_INTENTS, COMMENT_REACTIONS, COMMENT_TEXT, type CommentIntent } from "./commentText.ts";
|
|
4
|
+
export { COPY_FEEDBACK_MS, copyTextToClipboard } from "./copyText.ts";
|
|
5
|
+
export { CURRENCY_SYMBOLS, currencyPrefix, DEFAULT_CURRENCY, isCurrencyCode } from "./currency.ts";
|
|
6
|
+
export { COLUMN_MAX_WIDTH, COLUMN_MIN_WIDTH, clampColumnWidth, DATA_TABLE_TEXT, groupCount, groupItems, identityCell, measureRows, PIN_AT_VAR, PIN_SIDES, pinAtValue, pinClasses, pinOffsetVar, planPins, playRowMoves, RESIZE_STEP, RESIZE_STEP_LARGE, ROW_HEIGHTS, ROW_MOVE_LIMIT, ROW_MOVE_MS, ROW_SAVE_ATTR, ROW_SAVE_ERROR_CLASS, ROW_SAVE_STATES, readColumnWidths, rowLabel, rowOrderChanged, saveOutcomeText, setRowSaveState, settledRows, VIRTUAL_OVERSCAN, virtualRange, writeColumnWidths, } from "./dataTable.ts";
|
|
7
|
+
export { isElementDefined, whenElementDefined } from "./elementRegistry.ts";
|
|
8
|
+
export { acceptDroppedFiles, attachFileDrop } from "./fileDrop.ts";
|
|
9
|
+
export { acceptLabel, DEFAULT_IMAGE_ACCEPT, DEFAULT_MAX_SIZE_MB, formatFileSize, isImageFile, isImageOnlyAccept, isPdfFile, matchesAccept, validateFile, } from "./fileValidation.ts";
|
|
10
|
+
export { CURRENCIES, DATE_PATTERNS, DURATION_UNITS, EMPTY_VALUE, FORMAT_STYLES, formatCompact, formatCurrency, formatDate, formatDateTime, formatDuration, formatNumber, formatPercent, formatValue, IST_TIME_ZONE, MONEY_UNITS, timeZoneLabel, toInstant, } from "./formatters.ts";
|
|
11
|
+
export { glyphSvg } from "./iconGlyphs.g.ts";
|
|
12
|
+
export { INLINE_EDIT_SAVED_MS, INLINE_EDIT_TEXT, INLINE_EDIT_TYPES, type InlineEditFailedDetail, type InlineEditOption, type InlineEditSavedDetail, type InlineEditTextConfig, type InlineEditTextResult, type InlineEditType, inlineEditText, } from "./inlineEditText.ts";
|
|
13
|
+
export { attachInputMask, formatMasked, initInputMasks, isMaskPattern, MASK_INPUT_TYPES, MASK_NAMES, maskedPostValue, postedMasked, rawMasked, resolveMask, } from "./inputMask.ts";
|
|
14
|
+
export { KANBAN_DRAG_THRESHOLD_PX, KANBAN_LONG_PRESS_MS, KANBAN_PHONE_QUERY, KANBAN_STORAGE_PREFIX, KANBAN_SUMMARY_FORMATS, KANBAN_TEXT, KANBAN_TONES, kanbanCardLabel, kanbanOverflow, kanbanStorageKey, kanbanSummaryFormat, kanbanVisibleLimit, readKanbanCollapsed, type SummaryFormat, sumKanbanValues, writeKanbanCollapsed, } from "./kanbanModel.ts";
|
|
15
|
+
export { MENTION_ID_PATTERN, type MentionPart, type MentionSpan, mentionedIds, mentionLabel, mentionTextFromValue, mentionValueFromText, parseMentionValue, } from "./mentionText.ts";
|
|
16
|
+
export { revealActiveNavItem } from "./navReveal.ts";
|
|
17
|
+
export { groupNotificationsByDay, NOTIFICATION_COUNT_CAP, NOTIFICATION_TEXT, notificationCountText, notificationDayHeading, notificationTime, notificationTriggerLabel, notificationUnreadAnnouncement, } from "./notificationDays.ts";
|
|
18
|
+
export { withTrustedLabel } from "./optionLabel.ts";
|
|
19
|
+
export { buildPasswordRules, DEFAULT_PASSWORD_RULES, DEFAULT_REQUIREMENTS_TITLE, evaluatePassword, type PasswordRuleResult, passwordSatisfies, } from "./passwordRules.ts";
|
|
20
|
+
export { formatRelativeTime, RELATIVE_LIMIT_DAYS, relativeTimeTitle } from "./relativeTime.ts";
|
|
21
|
+
export { attachRowDrag, syncTargets } from "./rowDrop.ts";
|
|
22
|
+
export { attachScrollEdges, initScrollEdges, SCROLL_EDGE_SELECTOR } from "./scrollEdges.ts";
|
|
23
|
+
export { ariaKeyShortcuts, inShortcutScope, isTypingTarget, LIST_KEYS, moveFocus, runShortcut, SELECT_KEY, SHORTCUT_EVENT, SHORTCUT_SCOPE_ATTRIBUTE, SHORTCUT_TEXT, SHORTCUTS_OFF_ATTRIBUTE, shortcutKey, shortcutName, shortcutsOff, } from "./shortcutKeys.ts";
|
|
24
|
+
export { deriveStepStatus, stepperHeaderItems } from "./stepperHeader.ts";
|
|
25
|
+
export { initSubmitOnce, SUBMIT_ONCE_ATTRIBUTE } from "./submitOnce.ts";
|
|
26
|
+
export { matchSegments } from "./textMatch.ts";
|
|
27
|
+
export { applyTheme, DEFAULT_THEME_EFFECT, DEFAULT_THEME_STORAGE_KEY, nextTheme, readStoredTheme, resolveTheme, storeTheme, THEME_CHANGE_EVENT, THEME_EFFECT_DURATION, THEME_EFFECTS, THEME_MODES, THEME_SWITCHING_CLASS, themeBootScript, themeKeyframes, transitionTheme, watchSystemTheme, } from "./themeTransition.ts";
|
|
28
|
+
export { createLocalSeenStore } from "./tourSeenStore.ts";
|
|
29
|
+
export { isTimeZone, todayIn, wallClockOf, zoneOffsetMs, zoneParts } from "./zone.ts";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const GLYPHS: Record<string, string>;
|
|
2
|
+
export declare const iconNames: string[];
|
|
3
|
+
/** The library's single icon SVG emitter — identical markup to Razor's IconMarkup.Render. */
|
|
4
|
+
export declare function glyphSvg(name: string, { size, className }?: {
|
|
5
|
+
size?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
}): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CORE_GLYPHS: Readonly<Record<string, string>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LAZY_GLYPHS: Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
interface Rect {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
w: number;
|
|
5
|
+
h: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const MIN_ZOOM: number;
|
|
8
|
+
export declare const MAX_ZOOM: number;
|
|
9
|
+
export declare const MAX_OUTPUT_SIDE: number;
|
|
10
|
+
/** A positive aspect ratio (width / height), or null for a free crop. */
|
|
11
|
+
export declare function parseAspect(value: unknown): number | null;
|
|
12
|
+
/** The largest rect of the given aspect that fits the image, centred. Free keeps the whole image. */
|
|
13
|
+
export declare function baseRect(nw: number, nh: number, aspect: number | null): Rect;
|
|
14
|
+
/** Keep the rect inside the image without changing its size. */
|
|
15
|
+
export declare function clampRect(rect: Rect, nw: number, nh: number): Rect;
|
|
16
|
+
export declare function moveRect(rect: Rect, dx: number, dy: number, nw: number, nh: number): Rect;
|
|
17
|
+
/** The smallest allowed side, in natural pixels. */
|
|
18
|
+
export declare function minSide(nw: number, nh: number): number;
|
|
19
|
+
/** Zoom = how many times smaller than the base rect the crop is. */
|
|
20
|
+
export declare function zoomOf(rect: Rect, base: Rect): number;
|
|
21
|
+
/**
|
|
22
|
+
* The most the frame can be zoomed in. A free crop can already be smaller than a quarter of the
|
|
23
|
+
* base, so the cap never sits below where the frame is: zoom in then holds it, never enlarges it.
|
|
24
|
+
*/
|
|
25
|
+
export declare function maxZoomFor(rect: Rect, base: Rect): number;
|
|
26
|
+
/** Resize about the rect's centre so its width is base.w / zoom, keeping its own aspect. */
|
|
27
|
+
export declare function setZoom(rect: Rect, base: Rect, zoom: number, nw: number, nh: number): Rect;
|
|
28
|
+
export declare const CORNERS: string[];
|
|
29
|
+
/** Drag one corner of a free crop to the natural-pixel point (px, py); the opposite corner stays. */
|
|
30
|
+
export declare function resizeCorner(rect: Rect, corner: string, px: number, py: number, nw: number, nh: number): Rect;
|
|
31
|
+
/** Canvas size for a rect: its own pixels, scaled down only when the longest side is past the cap. */
|
|
32
|
+
export declare function outputSize(rect: Rect, maxSide?: number): {
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Canvas size when the caller asks for an exact longest side: a small crop is scaled UP to it, so
|
|
38
|
+
* an avatar is always the size the product stores, however far the person zoomed in.
|
|
39
|
+
*/
|
|
40
|
+
export declare function exactOutputSize(rect: Rect, side: number): {
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
};
|
|
44
|
+
export declare const ROTATIONS: number[];
|
|
45
|
+
/** The image's size once turned by `rotation` degrees: a quarter turn swaps the sides. */
|
|
46
|
+
export declare function rotatedSize(w: number, h: number, rotation: number): {
|
|
47
|
+
w: number;
|
|
48
|
+
h: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* The same crop after the image turns a quarter clockwise. `nw` x `nh` is the image BEFORE the
|
|
52
|
+
* turn; a natural point (x, y) lands on (nh - y, x), so the frame keeps covering the same pixels.
|
|
53
|
+
*/
|
|
54
|
+
export declare function rotateRectClockwise(rect: Rect, nw: number, nh: number): Rect;
|
|
55
|
+
/** "96, 48" or "96 48" as whole positive pixel sizes; anything else is dropped. */
|
|
56
|
+
export declare function parsePreviewSizes(value: unknown): number[];
|
|
57
|
+
/** Same type when a canvas can encode it, otherwise PNG (a GIF or AVIF is flattened to one frame). */
|
|
58
|
+
export declare function outputType(type: unknown): string;
|
|
59
|
+
/** The picked file's name with the extension that matches the output type. */
|
|
60
|
+
export declare function outputName(name: unknown, type: string): string;
|
|
61
|
+
/**
|
|
62
|
+
* Encode within a byte limit. `encode(width, height, type, quality)` resolves a Blob (or null).
|
|
63
|
+
* Lossy types step the quality down first, then every type shrinks the canvas; the last attempt is
|
|
64
|
+
* returned even when still over, so the caller's own size validation reports it in the usual words.
|
|
65
|
+
*/
|
|
66
|
+
export declare function encodeWithinLimit<T extends {
|
|
67
|
+
size: number;
|
|
68
|
+
type?: string;
|
|
69
|
+
}>(encode: (width: number, height: number, type: string, quality: number | undefined) => Promise<T | null>, { width, height, type, maxBytes }: {
|
|
70
|
+
width: number;
|
|
71
|
+
height: number;
|
|
72
|
+
type: string;
|
|
73
|
+
maxBytes: number;
|
|
74
|
+
}): Promise<T | null>;
|
|
75
|
+
export {};
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { WuiKanban } from "./kanban.ts";
|
|
2
|
+
import { WuiStatusIcon } from "./statusIcons.ts";
|
|
3
|
+
import { WuiCarousel } from "./WuiCarousel.ts";
|
|
4
|
+
import { WuiCodeBlock } from "./WuiCodeBlock.ts";
|
|
5
|
+
import { WuiCommandPalette } from "./WuiCommandPalette.ts";
|
|
6
|
+
import { WuiCommentThread } from "./WuiCommentThread.ts";
|
|
7
|
+
import { WuiConsentBanner } from "./WuiConsentBanner.ts";
|
|
8
|
+
import { WuiContextMenu } from "./WuiContextMenu.ts";
|
|
9
|
+
import { WuiDataTable } from "./WuiDataTable.ts";
|
|
10
|
+
import { WuiDatePicker } from "./WuiDatePicker.ts";
|
|
11
|
+
import { WuiDateRange } from "./WuiDateRange.ts";
|
|
12
|
+
import { WuiDock } from "./WuiDock.ts";
|
|
13
|
+
import { WuiDrawer } from "./WuiDrawer.ts";
|
|
14
|
+
import { WuiHoverCard } from "./WuiHoverCard.ts";
|
|
15
|
+
import { WuiImageCrop } from "./WuiImageCrop.ts";
|
|
16
|
+
import { WuiInlineEdit } from "./WuiInlineEdit.ts";
|
|
17
|
+
import { WuiLeadPopup } from "./WuiLeadPopup.ts";
|
|
18
|
+
import { WuiLightbox } from "./WuiLightbox.ts";
|
|
19
|
+
import { WuiMarkdown } from "./WuiMarkdown.ts";
|
|
20
|
+
import { WuiMentionInput } from "./WuiMentionInput.ts";
|
|
21
|
+
import { WuiNavigationMenu } from "./WuiNavigationMenu.ts";
|
|
22
|
+
import { WuiNotificationCenter } from "./WuiNotificationCenter.ts";
|
|
23
|
+
import { WuiOnboardingChecklist } from "./WuiOnboardingChecklist.ts";
|
|
24
|
+
import { WuiOrgTree } from "./WuiOrgTree.ts";
|
|
25
|
+
import { WuiOtp } from "./WuiOtp.ts";
|
|
26
|
+
import { WuiOverflow } from "./WuiOverflow.ts";
|
|
27
|
+
import { WuiPhone } from "./WuiPhone.ts";
|
|
28
|
+
import { WuiRating } from "./WuiRating.ts";
|
|
29
|
+
import { WuiRecordPager } from "./WuiRecordPager.ts";
|
|
30
|
+
import { WuiRelativeTime } from "./WuiRelativeTime.ts";
|
|
31
|
+
import { WuiResizable } from "./WuiResizable.ts";
|
|
32
|
+
import { WuiRollingNumber } from "./WuiRollingNumber.ts";
|
|
33
|
+
import { WuiSavedViews } from "./WuiSavedViews.ts";
|
|
34
|
+
import { WuiSelect } from "./WuiSelect.ts";
|
|
35
|
+
import { WuiShortcuts } from "./WuiShortcuts.ts";
|
|
36
|
+
import { WuiShowMore } from "./WuiShowMore.ts";
|
|
37
|
+
import { WuiSlider } from "./WuiSlider.ts";
|
|
38
|
+
import { WuiSortable } from "./WuiSortable.ts";
|
|
39
|
+
import { WuiTimePicker } from "./WuiTimePicker.ts";
|
|
40
|
+
import { WuiTour } from "./WuiTour.ts";
|
|
41
|
+
import { WuiTree } from "./WuiTree.ts";
|
|
42
|
+
import { WuiTruncate } from "./WuiTruncate.ts";
|
|
43
|
+
import { WuiWhatsNew } from "./WuiWhatsNew.ts";
|
|
44
|
+
import { WuiWizard } from "./WuiWizard.ts";
|
|
45
|
+
import { WuiWizardStep } from "./WuiWizardStep.ts";
|
|
46
|
+
export declare function defineWeborityElements(): void;
|
|
47
|
+
export { formatCompact, formatCurrency, formatDate, formatDateTime, formatNumber, formatPercent, formatValue, } from "./formatters.ts";
|
|
48
|
+
export type { WuiElementTagMap } from "./globals.ts";
|
|
49
|
+
export { ROW_DROP_EVENT } from "./rowDrop.ts";
|
|
50
|
+
export { DISCARD_EVENT } from "./server/drawerDiscard.ts";
|
|
51
|
+
export { SHORTCUT_EVENT } from "./shortcutKeys.ts";
|
|
52
|
+
export { THEME_CHANGE_EVENT } from "./themeTransition.ts";
|
|
53
|
+
export { WHATS_NEW_READ_EVENT } from "./WuiWhatsNew.ts";
|
|
54
|
+
export { WuiCarousel, WuiCodeBlock, WuiCommandPalette, WuiCommentThread, WuiConsentBanner, WuiContextMenu, WuiDataTable, WuiDatePicker, WuiDateRange, WuiDock, WuiDrawer, WuiHoverCard, WuiImageCrop, WuiInlineEdit, WuiKanban, WuiLeadPopup, WuiLightbox, WuiMarkdown, WuiMentionInput, WuiNavigationMenu, WuiNotificationCenter, WuiOnboardingChecklist, WuiOrgTree, WuiOtp, WuiOverflow, WuiPhone, WuiRating, WuiRecordPager, WuiRelativeTime, WuiResizable, WuiRollingNumber, WuiSavedViews, WuiSelect, WuiShortcuts, WuiShowMore, WuiSlider, WuiSortable, WuiStatusIcon, WuiTimePicker, WuiTour, WuiTree, WuiTruncate, WuiWhatsNew, WuiWizard, WuiWizardStep, };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** The controls an inline edit can turn into. */
|
|
2
|
+
export declare const INLINE_EDIT_TYPES: readonly ["text", "number", "select", "date", "textarea"];
|
|
3
|
+
export type InlineEditType = (typeof INLINE_EDIT_TYPES)[number];
|
|
4
|
+
/** How long the saved tick stays after a save. */
|
|
5
|
+
export declare const INLINE_EDIT_SAVED_MS = 2000;
|
|
6
|
+
export interface InlineEditOption {
|
|
7
|
+
value: unknown;
|
|
8
|
+
label?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface InlineEditTextConfig {
|
|
11
|
+
type?: string;
|
|
12
|
+
options?: InlineEditOption[];
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface InlineEditTextResult {
|
|
16
|
+
text: string;
|
|
17
|
+
empty: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface InlineEditSavedDetail {
|
|
20
|
+
value: string;
|
|
21
|
+
previous: string;
|
|
22
|
+
}
|
|
23
|
+
export interface InlineEditFailedDetail {
|
|
24
|
+
value: string;
|
|
25
|
+
previous: string;
|
|
26
|
+
kind: string;
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
/** The words the element says on its own. The Razor tag helper renders the same `edit` and `readOnly` text. */
|
|
30
|
+
export declare const INLINE_EDIT_TEXT: Readonly<{
|
|
31
|
+
edit: (label: string) => string;
|
|
32
|
+
readOnly: (label: string) => string;
|
|
33
|
+
saved: (label: string) => string;
|
|
34
|
+
notSaved: (label: string, reason: string) => string;
|
|
35
|
+
failed: Readonly<{
|
|
36
|
+
forbidden: "You do not have permission to change this.";
|
|
37
|
+
client: "This could not be saved. Refresh the page and try again.";
|
|
38
|
+
validation: "This value was not accepted. Check it and try again.";
|
|
39
|
+
server: "Something went wrong on our side, so this was not saved. Try again in a moment.";
|
|
40
|
+
network: "Could not reach the server, so this was not saved. Check your connection and try again.";
|
|
41
|
+
}>;
|
|
42
|
+
}>;
|
|
43
|
+
/**
|
|
44
|
+
* The text a value reads as before any custom rendering: the placeholder (or the house hyphen)
|
|
45
|
+
* when empty, a date as dd-MMM-yyyy, a select value as its option's label.
|
|
46
|
+
*/
|
|
47
|
+
export declare function inlineEditText(value: unknown, { type, options, placeholder }?: InlineEditTextConfig): InlineEditTextResult;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
jQuery?: {
|
|
4
|
+
validator?: {
|
|
5
|
+
prototype: ValidatorPrototype;
|
|
6
|
+
};
|
|
7
|
+
} | undefined;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
interface ValidatorPrototype {
|
|
11
|
+
elementValue(element: HTMLElement): string;
|
|
12
|
+
wuiMaskHook?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface MaskSpec {
|
|
15
|
+
inputMode: string;
|
|
16
|
+
normalize?: ((text: string) => string) | undefined;
|
|
17
|
+
post: (raw: string, formatted: string) => string;
|
|
18
|
+
message: string;
|
|
19
|
+
extract(text: string): string;
|
|
20
|
+
layout(raw: string): {
|
|
21
|
+
text: string;
|
|
22
|
+
isRaw: boolean[];
|
|
23
|
+
};
|
|
24
|
+
isValid(raw: string): boolean;
|
|
25
|
+
}
|
|
26
|
+
/** The input types a mask can format; a number or email input discards formatted text. */
|
|
27
|
+
export declare const MASK_INPUT_TYPES: Set<string>;
|
|
28
|
+
/** The named masks, in the order they are documented. */
|
|
29
|
+
export declare const MASK_NAMES: string[];
|
|
30
|
+
/**
|
|
31
|
+
* True when `mask` is written as a pattern: it contains a 9, A or * symbol and is not a named mask
|
|
32
|
+
* in other case (`PAN` and `Aadhaar` hold an A, and are misspelt names, never patterns).
|
|
33
|
+
*/
|
|
34
|
+
export declare const isMaskPattern: (mask: unknown) => boolean;
|
|
35
|
+
/** The compiled mask for a name or pattern, or null when `mask` is an unknown name. */
|
|
36
|
+
export declare function resolveMask(mask: unknown): MaskSpec | null;
|
|
37
|
+
/** The raw characters of `value` under `mask`, or `value` unchanged when `mask` does not resolve. */
|
|
38
|
+
export declare function rawMasked(mask: unknown, value: unknown): string;
|
|
39
|
+
/**
|
|
40
|
+
* The value a form posts for `value` under `mask`: the raw characters, except the `date` mask, which
|
|
41
|
+
* is ISO yyyy-MM-dd once complete. `value` is unchanged when `mask` does not resolve.
|
|
42
|
+
*/
|
|
43
|
+
export declare function postedMasked(mask: unknown, value: unknown): string;
|
|
44
|
+
/** `value` (raw or already formatted) laid out under `mask`; unchanged when `mask` does not resolve. */
|
|
45
|
+
export declare function formatMasked(mask: unknown, value: unknown): string;
|
|
46
|
+
/** The value `el` posts under its mask, or undefined when `el` carries none (or posts it formatted). */
|
|
47
|
+
export declare const maskedPostValue: (el: HTMLElement) => string | undefined;
|
|
48
|
+
interface AttachOptions {
|
|
49
|
+
mask?: string | undefined;
|
|
50
|
+
postFormatted?: boolean;
|
|
51
|
+
onChange?: (raw: string, formatted: string) => void;
|
|
52
|
+
onInvalidChange?: (message: string) => void;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Mask a text input in place and return the function that removes the mask again.
|
|
56
|
+
*
|
|
57
|
+
* @param el a text-like input (text, tel, search, url, password)
|
|
58
|
+
* @param options
|
|
59
|
+
* @param options.mask a named mask or a pattern
|
|
60
|
+
* @param [options.postFormatted=false] post the formatted value instead of the raw one
|
|
61
|
+
* @param [options.onChange] called when the raw value changes
|
|
62
|
+
* @param [options.onInvalidChange] called with the message to show the
|
|
63
|
+
* person ("" to clear) once the field has been left or a submit was tried; without it the message is
|
|
64
|
+
* shown on the field in the DOM
|
|
65
|
+
* @returns
|
|
66
|
+
*/
|
|
67
|
+
export declare function attachInputMask(el: HTMLInputElement, { mask, postFormatted, onChange, onInvalidChange }?: AttachOptions): () => void;
|
|
68
|
+
/** Attach every `input[data-app-mask]` under `root` once, and keep wiring the ones added later; the Razor behaviour layer's entry point. */
|
|
69
|
+
export declare function initInputMasks(root?: ParentNode): void;
|
|
70
|
+
export {};
|