@webority/ui-elements 0.149.0 → 0.150.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-By-u3c5S.js +1 -0
- package/dist/WuiConsentBanner-Bm7tT3_5.js +1 -0
- package/dist/WuiContextMenu-sPTmEEVn.js +1 -0
- package/dist/WuiDataTable-D8UW2DMH.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-r55qgh8A.js +1 -0
- package/dist/WuiLeadPopup-YN4YCbOe.js +382 -0
- package/dist/WuiLightbox-D7Nf1SbH.js +1 -0
- package/dist/WuiMarkdown-N96OX-To.js +4 -0
- package/dist/WuiMentionInput-BFB57FZI.js +1 -0
- package/dist/WuiNavigationMenu-CZ3XhFam.js +1 -0
- package/dist/WuiNotificationCenter-C6e13nCh.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-CeLUmJR-.js +1 -0
- package/dist/WuiPhone-rtex3VDC.js +16 -0
- package/dist/WuiRating-DLVduJZ_.js +1 -0
- package/dist/WuiRecordPager-7HVGoFlP.js +1 -0
- package/dist/WuiRelativeTime-RdC80Zii.js +1 -0
- package/dist/WuiResizable-DQZdQVCz.js +1 -0
- package/dist/WuiRollingNumber-YRMeRCGW.js +1 -0
- package/dist/WuiSavedViews-DtyAoZKb.js +1 -0
- package/dist/WuiSelect-D9ABfsdZ.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-CrIFLmSK.js +1 -0
- package/dist/WuiTree-ZD9GGmtg.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-2yXiMhK4.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-D23oUOhU.js +1 -0
- package/dist/dom-Do1pAA12.js +1 -0
- package/dist/drawerDiscard-CUN8L47U.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-tzF4DDq7.js} +2 -2
- package/dist/fileViewerMedia-Bp1uHJvC.js +1 -0
- package/dist/{fileViewerPdf-6MAAzmCM.js → fileViewerPdf-BLMhF8NT.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-C3V6M5zV.js +1 -0
- package/dist/helpers.js +1 -1
- package/dist/iconGlyphs.g-DPqoOoXy.js +1 -0
- package/dist/inlineEditText-H7Pr8IU9.js +1 -0
- package/dist/kanban-CJ587-XT.js +1 -0
- package/dist/kanbanModel-BdqSa1lJ.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-BKVW7xYD.js} +1 -1
- package/dist/{optionLabel-CLemms21.js → optionLabel-4xjXWy74.js} +1 -1
- package/dist/recents-CmLLdV8O.js +1 -0
- package/dist/relativeTime-YTAOONRy.js +1 -0
- package/dist/search-BXcvm716.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 +18 -18
- 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-523iN_RF.js +1 -0
- package/dist/{zone-D82f-GU_.js → zone-BR02ZkHF.js} +1 -1
- package/package.json +207 -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 +138 -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 +119 -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 +33 -0
- package/types/razor-js/modules/avatars.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 +9 -0
- package/types/razor-js/webority-ui.d.ts +48 -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,16 @@
|
|
|
1
|
+
export declare const validate: (file: File, accept: string, maxSizeMb: number) => string | null;
|
|
2
|
+
export declare const maxSizeOf: (raw: string | undefined) => number;
|
|
3
|
+
export declare const isImage: (file: File | undefined) => boolean;
|
|
4
|
+
export declare const isPdf: (file: File | undefined) => boolean;
|
|
5
|
+
export declare const el: <E extends Element>(parent: ParentNode, selector: string, type: abstract new (...args: never[]) => E) => E;
|
|
6
|
+
export declare const formatFileSize: (bytes: number) => string;
|
|
7
|
+
export declare const syncFilesToInput: (input: HTMLInputElement, picked: File[]) => void;
|
|
8
|
+
export declare const createUrlCache: (isImageFn: (file: File) => boolean) => {
|
|
9
|
+
urlFor(file: File): string | null;
|
|
10
|
+
revoke(file: File): void;
|
|
11
|
+
clear(): void;
|
|
12
|
+
};
|
|
13
|
+
export declare const buildAttachListItem: (file: File, { url, onRemove }: {
|
|
14
|
+
url: string | null;
|
|
15
|
+
onRemove: () => void;
|
|
16
|
+
}) => HTMLDivElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initFilterBars: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initImagePickers: (root?: Document | Element) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const initNumberInputs: (root?: Document | Element) => void;
|
|
2
|
+
export declare const initPasswordToggles: (root?: Document | Element) => void;
|
|
3
|
+
export declare const initPasswordRequirements: (root?: Document | Element) => void;
|
|
4
|
+
export declare const initConfirmPhrases: (root?: Document | Element) => void;
|
|
5
|
+
export declare const initClearables: (root?: Document | Element) => void;
|
|
6
|
+
export declare const initSearch: (root?: Document | Element) => void;
|
|
7
|
+
export declare const initSegmented: (root?: Document | Element) => void;
|
|
8
|
+
export declare const initCounters: (root?: Document | Element) => void;
|
|
9
|
+
export declare const initAutosize: (root?: Document | Element) => void;
|
|
10
|
+
export declare const initValidatorMirrors: () => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const initOverlayFocus: () => void;
|
|
2
|
+
export declare const initModalInert: () => void;
|
|
3
|
+
export declare const initCommandPalettes: () => void;
|
|
4
|
+
export declare const initDropdownScrollClose: () => void;
|
|
5
|
+
export declare const initDisabledDropdownItems: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare const chartOf: (node: Element) => import("../../WuiChart").WuiChart | null | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initPopoversAndTooltips: (root?: Document | Element) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const initServerTables: (root?: Document | Element) => void;
|
|
2
|
+
export declare const initRemoteModals: (root?: Document | Element) => void;
|
|
3
|
+
export declare const initServerActions: (root?: Document | Element) => void;
|
|
4
|
+
export declare const initInputMasks: (root?: Document | Element) => void;
|
|
5
|
+
export declare const initScrollEdges: (root?: Document | Element) => void;
|
|
6
|
+
export declare const initShellParts: (root?: Document | Element) => void;
|
|
7
|
+
export declare const initUnsavedChanges: (root?: Document | Element) => void;
|
|
8
|
+
export declare const initDrawerDiscard: (root?: Document | Element) => void;
|
|
9
|
+
export declare const initCollapsibleSearch: (root?: Document | Element) => void;
|
|
10
|
+
export declare const initPageBarBulk: (root?: Document | Element) => void;
|
|
11
|
+
export declare const initRowDrag: (root?: Document | Element) => void;
|
|
12
|
+
export declare const initSubmitOnce: (root?: Document | Element) => void;
|
|
13
|
+
export declare const initCommandShortcuts: (root?: Document | Element) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const ready: (fn: () => void) => void;
|
|
2
|
+
export declare const qsa: <E extends HTMLElement>(root: ParentNode, selector: string, type: abstract new (...args: never[]) => E) => E[];
|
|
3
|
+
export declare const onTeardown: (node: Element, release: () => void) => void;
|
|
4
|
+
export declare const plainPopoverTitle: (bs: {
|
|
5
|
+
Popover?: {
|
|
6
|
+
Default?: {
|
|
7
|
+
template?: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}) => void;
|
|
11
|
+
export declare const wuiIcon: (name: string, size?: number) => string;
|
|
12
|
+
export declare const fadeOutError: (node: Element) => void;
|
|
13
|
+
export declare const setFieldError: (host: HTMLElement | null, message: string, { errorClassEl }?: {
|
|
14
|
+
errorClassEl?: Element;
|
|
15
|
+
}) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initShell: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const initSelectableTables: (root?: ParentNode) => void;
|
|
2
|
+
export declare const initSortableTables: (root?: ParentNode) => void;
|
|
3
|
+
export declare const initTableToolbars: () => void;
|
|
4
|
+
export declare const markRowLinks: (root?: ParentNode) => void;
|
|
5
|
+
export declare const labelStackedTables: (root?: ParentNode) => void;
|
|
6
|
+
export declare const initColumnMenus: (root?: ParentNode) => void;
|
|
7
|
+
export declare const initRowLinks: () => void;
|
|
8
|
+
export declare const initClippedNameTitles: () => void;
|
|
9
|
+
export declare const initCompareScrollEdges: (root?: ParentNode) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initTabs: (root?: ParentNode) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const initErrorSummaryOrder: (root?: ParentNode) => void;
|
|
2
|
+
export declare const initErrorSummaries: () => void;
|
|
3
|
+
export declare const initServerFieldErrors: () => void;
|
|
4
|
+
interface ErrorSummaryItem {
|
|
5
|
+
field?: string;
|
|
6
|
+
message: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const showErrorSummary: (form: HTMLFormElement, errors: readonly ErrorSummaryItem[] | null | undefined, opts?: {
|
|
9
|
+
title?: string;
|
|
10
|
+
}) => HTMLElement | null;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const initChipRemove: (root?: ParentNode) => void;
|
|
2
|
+
export declare const initActionIconFiles: () => void;
|
|
3
|
+
export declare const initRepeaterSubmit: () => void;
|
|
4
|
+
export declare const initWorkspaceSwitchers: (root?: ParentNode) => void;
|
|
5
|
+
export declare const initBannerDismiss: (root?: ParentNode) => void;
|
|
6
|
+
export declare const initCardClose: (root?: ParentNode) => void;
|
|
7
|
+
export declare const initAccordions: (root?: ParentNode) => void;
|
|
8
|
+
export declare const initVibrateTaps: () => void;
|
|
9
|
+
export declare const initDataStyles: (root?: ParentNode) => void;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import "./modules/pageListeners.ts";
|
|
2
|
+
import { dismissAllToasts, toast } from "./modules/toast.ts";
|
|
3
|
+
import { showErrorSummary } from "./modules/validation.ts";
|
|
4
|
+
declare const refresh: (root?: Document | Element) => void;
|
|
5
|
+
declare const wui: {
|
|
6
|
+
modal: {
|
|
7
|
+
open: (id: string) => void;
|
|
8
|
+
close: (id: string) => void;
|
|
9
|
+
load: (url: string, options?: import("./modules/api.ts").RemoteOptions) => Promise<import("../server/remoteModal.ts").ModalHandle>;
|
|
10
|
+
};
|
|
11
|
+
drawer: {
|
|
12
|
+
load: (url: string, options?: import("./modules/api.ts").RemoteOptions) => Promise<import("../server/remoteModal.ts").ModalHandle>;
|
|
13
|
+
};
|
|
14
|
+
pane: {
|
|
15
|
+
load: (url: string, options?: import("./modules/api.ts").RemoteOptions) => Promise<import("../server/remoteModal.ts").ModalHandle>;
|
|
16
|
+
close: (target: string | Element) => void;
|
|
17
|
+
};
|
|
18
|
+
tour: {
|
|
19
|
+
seenStore: import("./modules/api.ts").TourSeenStore | null;
|
|
20
|
+
start: (id: string) => unknown;
|
|
21
|
+
};
|
|
22
|
+
table: {
|
|
23
|
+
get: (target: string | Element) => import("../server/serverTable.ts").ServerTableHandle;
|
|
24
|
+
};
|
|
25
|
+
shell: {
|
|
26
|
+
get: (target?: string | Element) => import("../server/shellParts.ts").ShellHandle;
|
|
27
|
+
};
|
|
28
|
+
filePicker: {
|
|
29
|
+
setLoading: (target: string | Element, on: boolean) => void;
|
|
30
|
+
};
|
|
31
|
+
unsaved: {
|
|
32
|
+
reset: (target: string | Element) => void;
|
|
33
|
+
};
|
|
34
|
+
toast: typeof toast;
|
|
35
|
+
dismissAllToasts: typeof dismissAllToasts;
|
|
36
|
+
showErrorSummary: typeof showErrorSummary;
|
|
37
|
+
look: {
|
|
38
|
+
apply: (file: unknown) => string;
|
|
39
|
+
fromAddress: (url: string) => Promise<string>;
|
|
40
|
+
};
|
|
41
|
+
refresh: typeof refresh;
|
|
42
|
+
};
|
|
43
|
+
export type WuiApi = typeof wui;
|
|
44
|
+
declare global {
|
|
45
|
+
interface WuiHost extends WuiApi {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** A time further than this from now reads as its date (DD-MMM-YYYY), not as a count. */
|
|
2
|
+
export declare const RELATIVE_LIMIT_DAYS: number;
|
|
3
|
+
/**
|
|
4
|
+
* "just now", "5 minutes ago", "in 2 hours", "3 days ago"; a week or more away it is the date
|
|
5
|
+
* (04-Oct-2026). `value` is anything `toInstant` takes; a missing or unreadable one is "-".
|
|
6
|
+
* A bare "YYYY-MM-DD" is midnight IST, so pass a full instant when the hour matters.
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatRelativeTime(value: unknown, now?: number): string;
|
|
9
|
+
/** The exact time for the tooltip: "04-Oct-2026 14:05 IST", or "-" when the value is unreadable. */
|
|
10
|
+
export declare function relativeTimeTitle(value: unknown): string;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type StarterKitOptions } from "@tiptap/starter-kit";
|
|
2
|
+
type HeadingLevel = NonNullable<Exclude<StarterKitOptions["heading"], false | undefined>["levels"]>[number];
|
|
3
|
+
export declare const HEADING_LEVELS: HeadingLevel[];
|
|
4
|
+
export declare const LINK_PROTOCOLS: string[];
|
|
5
|
+
export interface CreateEditorOptions {
|
|
6
|
+
/** Where the editable surface is mounted. */
|
|
7
|
+
element: HTMLElement;
|
|
8
|
+
/** The starting value, in `format`. */
|
|
9
|
+
content: string;
|
|
10
|
+
format: "html" | "markdown";
|
|
11
|
+
/** Read on every empty-state paint. */
|
|
12
|
+
placeholder: () => string;
|
|
13
|
+
editable: boolean;
|
|
14
|
+
/** Set on the editable surface (role, aria-*). */
|
|
15
|
+
attributes: Record<string, string>;
|
|
16
|
+
/** The document changed. */
|
|
17
|
+
onChange: () => void;
|
|
18
|
+
/** The caret, selection or active marks changed. */
|
|
19
|
+
onSelection: () => void;
|
|
20
|
+
onBlur: () => void;
|
|
21
|
+
}
|
|
22
|
+
export interface EditorState {
|
|
23
|
+
bold: boolean;
|
|
24
|
+
italic: boolean;
|
|
25
|
+
code: boolean;
|
|
26
|
+
heading2: boolean;
|
|
27
|
+
heading3: boolean;
|
|
28
|
+
bulletList: boolean;
|
|
29
|
+
orderedList: boolean;
|
|
30
|
+
blockquote: boolean;
|
|
31
|
+
codeBlock: boolean;
|
|
32
|
+
link: boolean;
|
|
33
|
+
undo: boolean;
|
|
34
|
+
redo: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface EditorHandle {
|
|
37
|
+
getValue(): string;
|
|
38
|
+
setValue(value: string | null | undefined): void;
|
|
39
|
+
setEditable(value: boolean): void;
|
|
40
|
+
setAttributes(next: Record<string, string>): void;
|
|
41
|
+
refreshPlaceholder(): void;
|
|
42
|
+
focus(): void;
|
|
43
|
+
isEmpty(): boolean;
|
|
44
|
+
run(action: string): boolean;
|
|
45
|
+
state(): EditorState;
|
|
46
|
+
linkHref(): string;
|
|
47
|
+
setLink(raw: unknown): boolean;
|
|
48
|
+
removeLink(): boolean;
|
|
49
|
+
destroy(): void;
|
|
50
|
+
}
|
|
51
|
+
export declare function normalizeHref(raw: unknown): string;
|
|
52
|
+
export declare const ACTION_NAMES: string[];
|
|
53
|
+
export declare function createEditor({ element, content, format, placeholder, editable, attributes, onChange, onSelection, onBlur, }: CreateEditorOptions): EditorHandle;
|
|
54
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RICH_TEXT_ICONS: Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const ROW_DROP_EVENT = "wui:row-drop";
|
|
2
|
+
export declare const DROP_OVER_CLASS = "is-drop-over";
|
|
3
|
+
export declare const ROW_DRAG_TYPE = "application/x-wui-rows";
|
|
4
|
+
type DragKeys = (string | undefined)[];
|
|
5
|
+
export declare function tickedKeys(root: Element): DragKeys;
|
|
6
|
+
/** Make the rows of `root` draggable onto drop targets. Returns the function that removes the listeners. */
|
|
7
|
+
export declare function attachRowDrag(root: HTMLElement): () => void;
|
|
8
|
+
/** Label the drop targets under `doc` for the current selection. Idempotent. */
|
|
9
|
+
export declare function syncTargets(doc?: ParentNode): void;
|
|
10
|
+
/** Wire every `data-wui-row-drag` table under `root` and label the drop targets. Idempotent. */
|
|
11
|
+
export declare function initRowDrag(root?: ParentNode & Node): void;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Every table scroller the edge cue applies to: the library's data table and Bootstrap's responsive wrappers. */
|
|
2
|
+
export declare const SCROLL_EDGE_SELECTOR = ".table-wrap, .table-responsive, [class*=\"table-responsive-\"]";
|
|
3
|
+
/**
|
|
4
|
+
* Track one scroller's overflow edges until the returned detach is called.
|
|
5
|
+
* @param el The scroll container.
|
|
6
|
+
* @returns Detach: removes the listeners and the attributes.
|
|
7
|
+
*/
|
|
8
|
+
export declare function attachScrollEdges(el: HTMLElement): () => void;
|
|
9
|
+
/** Track every table scroller under `root` once, and keep tracking the ones added later; the Razor behaviour layer's entry point. */
|
|
10
|
+
export declare function initScrollEdges(root?: ParentNode): void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { SelectOption } from "./option.ts";
|
|
2
|
+
type ActionRow = {
|
|
3
|
+
position: "top" | "bottom";
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
type Recents = {
|
|
8
|
+
label: string;
|
|
9
|
+
options: SelectOption[];
|
|
10
|
+
} | null;
|
|
11
|
+
/**
|
|
12
|
+
* The options whose label, description or meta contains the query, ignoring case. An empty query keeps every option.
|
|
13
|
+
*/
|
|
14
|
+
export declare function filterOptions(options: SelectOption[], query: string): SelectOption[];
|
|
15
|
+
/**
|
|
16
|
+
* Draws the listbox. Rows are filtered by `query`; a part that owns filtering passes "" and its own rows.
|
|
17
|
+
* The empty row shows when no option row or action row is drawn, or when status is "empty"; the loading
|
|
18
|
+
* row replaces it while status is "loading", and the hint row replaces it while status is "hint".
|
|
19
|
+
* `recents` draws a heading, its rows and a divider above the full list.
|
|
20
|
+
* @param listEl the listbox (.wui-select-options); its id prefixes each row id
|
|
21
|
+
*/
|
|
22
|
+
export declare function renderOptions(listEl: HTMLElement, options: SelectOption[], view?: {
|
|
23
|
+
selected?: string[];
|
|
24
|
+
query?: string;
|
|
25
|
+
status?: "idle" | "loading" | "empty" | "hint";
|
|
26
|
+
emptyText?: string;
|
|
27
|
+
searchingText?: string;
|
|
28
|
+
hintText?: string;
|
|
29
|
+
actionRow?: ActionRow[];
|
|
30
|
+
recents?: Recents;
|
|
31
|
+
}): void;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** One row of a select list, in every mode. */
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
/** second line under the label */
|
|
6
|
+
description?: string;
|
|
7
|
+
/** trailing text at the row's end (a code, a dial code) */
|
|
8
|
+
meta?: string;
|
|
9
|
+
/** the grey group label the row sits under */
|
|
10
|
+
group?: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
avatar?: string;
|
|
13
|
+
initials?: string;
|
|
14
|
+
/** ISO 3166 alpha-2 code, drawn as .wui-flag-<iso> (country mode) */
|
|
15
|
+
flag?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
disabledHint?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const MODES: readonly string[];
|
|
20
|
+
/** true where the value is a list (multiple, tag) */
|
|
21
|
+
export declare const isListMode: (mode: string) => boolean;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { SelectOption } from "./option.ts";
|
|
2
|
+
export interface SelectRefs {
|
|
3
|
+
/** the bordered trigger (.wui-select-control) */
|
|
4
|
+
control: HTMLElement;
|
|
5
|
+
/** the value area inside the control (.wui-select-value) */
|
|
6
|
+
value: HTMLElement;
|
|
7
|
+
/** the popup (.wui-select-menu) */
|
|
8
|
+
menu: HTMLElement;
|
|
9
|
+
/** the listbox (.wui-select-options) */
|
|
10
|
+
list: HTMLElement;
|
|
11
|
+
/** the input inside the in-menu search wrapper (.wui-select-search), or null */
|
|
12
|
+
search: HTMLInputElement | null;
|
|
13
|
+
/** the inline draft input in tag mode (.wui-select-draft), or null; created by the chips part */
|
|
14
|
+
input: HTMLInputElement | null;
|
|
15
|
+
}
|
|
16
|
+
/** What the host offers a part. Every member is on the WuiSelect instance itself. */
|
|
17
|
+
export interface SelectHost {
|
|
18
|
+
/** "single" | "multiple" | "search" | "tag" | "country" */
|
|
19
|
+
mode: "single" | "multiple" | "search" | "tag" | "country";
|
|
20
|
+
/** string, or string[] in multiple and tag */
|
|
21
|
+
value: string | string[];
|
|
22
|
+
/** the current option list (property, declared children, or a part's) */
|
|
23
|
+
options: SelectOption[];
|
|
24
|
+
/** the current search or draft text, "" when none */
|
|
25
|
+
_query: string;
|
|
26
|
+
/** the search or draft text changed: runs the query through the parts, then redraws the list */
|
|
27
|
+
_onQueryChange: (query: string) => void;
|
|
28
|
+
/** a script-side loader (search and tag suggestions), or null */
|
|
29
|
+
loadOptions: ((query: string, opts: {
|
|
30
|
+
signal: AbortSignal;
|
|
31
|
+
}) => Promise<SelectOption[]>) | null;
|
|
32
|
+
/**
|
|
33
|
+
* a script-side check for custom entries, run after `pattern`: true accepts, a non-empty string
|
|
34
|
+
* refuses with that message, anything else refuses with `invalid-message`
|
|
35
|
+
*/
|
|
36
|
+
validate: ((value: string) => unknown) | null;
|
|
37
|
+
/** sets the value, syncs the form mirror, re-renders the value area and list, dispatches "change" with detail { isCustom } */
|
|
38
|
+
commit: (value: string | string[], meta?: {
|
|
39
|
+
isCustom: boolean;
|
|
40
|
+
}) => void;
|
|
41
|
+
/** replaces the option list a part supplies (search results, the country dataset); re-renders the list; never closes the menu */
|
|
42
|
+
setPartOptions: (list: SelectOption[]) => void;
|
|
43
|
+
/**
|
|
44
|
+
* shows the loading row (searching-text), the empty row (empty-text), the hint row (hint-text,
|
|
45
|
+
* default "Type to search…", shown while the query is shorter than min-chars), or none
|
|
46
|
+
*/
|
|
47
|
+
setStatus: (status: "idle" | "loading" | "empty" | "hint") => void;
|
|
48
|
+
renderList: () => void;
|
|
49
|
+
openMenu: () => void;
|
|
50
|
+
closeMenu: (opts?: {
|
|
51
|
+
focusControl?: boolean;
|
|
52
|
+
}) => void;
|
|
53
|
+
/** the message under the control (.wui-select-error), null clears */
|
|
54
|
+
setError: (message: string | null) => void;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A mode part. Every hook but mount and teardown is optional; the host runs its own behaviour when a
|
|
58
|
+
* hook is absent or returns false.
|
|
59
|
+
*/
|
|
60
|
+
export interface SelectPart {
|
|
61
|
+
/**
|
|
62
|
+
* options.carry hands back the draft and search text a remount is replacing, so the new part restores them
|
|
63
|
+
* without a remote search; the host passes it on every mount
|
|
64
|
+
*/
|
|
65
|
+
mount: (host: HTMLElement & SelectHost, refs: SelectRefs, options?: {
|
|
66
|
+
carry?: {
|
|
67
|
+
draft: string;
|
|
68
|
+
query: string;
|
|
69
|
+
};
|
|
70
|
+
}) => void;
|
|
71
|
+
/** runs before the list's keyboard handling; true when the part handled the key */
|
|
72
|
+
onKey?: (e: KeyboardEvent) => boolean;
|
|
73
|
+
/** the search or draft text changed; true when the part owns filtering (it fetches and calls setPartOptions) */
|
|
74
|
+
onQuery?: (query: string) => boolean;
|
|
75
|
+
/** the host's option list changed; a search answered by the page ends its loading row */
|
|
76
|
+
onOptions?: () => void;
|
|
77
|
+
/** a row was chosen; true when the part committed it (list modes toggle and keep the menu open) */
|
|
78
|
+
onPick?: (option: SelectOption, meta?: {
|
|
79
|
+
isCustom: boolean;
|
|
80
|
+
}) => boolean;
|
|
81
|
+
/** draw the value area (chips); true when drawn, else the host draws the single value text */
|
|
82
|
+
renderValue?: () => boolean;
|
|
83
|
+
/**
|
|
84
|
+
* an extra row: tag's "Create '{text}'" at the top, search's "Add '{query}'" at the bottom; picking it calls onPick with { value, label } and meta isCustom
|
|
85
|
+
*/
|
|
86
|
+
actionRow?: (query: string) => {
|
|
87
|
+
position: "top" | "bottom";
|
|
88
|
+
label: string;
|
|
89
|
+
value: string;
|
|
90
|
+
} | null;
|
|
91
|
+
/** the menu opened (search: min-chars 0 loads the first page; a query cut off by a disconnect re-runs) */
|
|
92
|
+
onOpen?: () => void;
|
|
93
|
+
/** focus left the control; true when the part handled it (allow-custom commits a valid draft) */
|
|
94
|
+
onBlur?: () => boolean;
|
|
95
|
+
/**
|
|
96
|
+
* the rows of recently chosen options drawn above the list while the search box is empty, with their heading; null for none
|
|
97
|
+
*/
|
|
98
|
+
recents?: (options: SelectOption[]) => {
|
|
99
|
+
label: string;
|
|
100
|
+
options: SelectOption[];
|
|
101
|
+
} | null;
|
|
102
|
+
teardown: () => void;
|
|
103
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function importSelectPart(key: string): Promise<unknown>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SelectPart } from "./part.ts";
|
|
2
|
+
export type SearchPart = SelectPart & Required<Pick<SelectPart, "onQuery" | "onOpen" | "onBlur" | "onPick" | "actionRow" | "renderValue">> & {
|
|
3
|
+
onOptions: () => void;
|
|
4
|
+
};
|
|
5
|
+
export default function createSearchPart(): SearchPart;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const DISCARD_TEXT: Readonly<{
|
|
2
|
+
question: string;
|
|
3
|
+
discard: string;
|
|
4
|
+
keep: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const DISCARD_EVENT: string;
|
|
7
|
+
export declare function createDiscardPrompt(doc: Document, text: string | null): HTMLDivElement;
|
|
8
|
+
/** Wire the discard guard once per document; the Razor behaviour layer calls it on load and refresh. */
|
|
9
|
+
export declare function initDrawerDiscard(root?: Document | Element): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { createDiscardPrompt, DISCARD_EVENT, DISCARD_TEXT, initDrawerDiscard } from "./drawerDiscard.ts";
|
|
2
|
+
export { closeRemotePane, initRemoteModals, loadRemoteDrawer, loadRemoteModal, loadRemotePane } from "./remoteModal.ts";
|
|
3
|
+
export { CONFIRM_DIALOG_ID, CONFIRM_TONES, confirmAction, FLASH_STORAGE_KEY, FLASH_VARIANTS, initServerActions, SERVER_ACTION_TEXT, } from "./serverActions.ts";
|
|
4
|
+
export { getServerTable, initServerTables } from "./serverTable.ts";
|
|
5
|
+
export { getShell, initShellParts } from "./shellParts.ts";
|
|
6
|
+
export { runToastAction, showResultToast, TOAST_ACTION_MS } from "./toastAction.ts";
|
|
7
|
+
export { parseToastAction, TOAST_ACTION_METHODS } from "./toastHeader.ts";
|
|
8
|
+
export { formValues, initUnsavedChanges, resetUnsavedChanges, UNSAVED_TEXT } from "./unsavedChanges.ts";
|
|
9
|
+
export { CSRF_META_NAME, classifyStatus, configureCsrf, createRequestQueue, DEFAULT_CSRF_HEADER, HTTP_KINDS, readCsrf, WUI_HEADERS, wuiFetch, } from "./wuiHttp.ts";
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
type SizeName = "sm" | "md" | "lg" | "xl";
|
|
2
|
+
type TextKey = "loading" | "close" | "retry" | "errorTitle" | "forbidden" | "client" | "server" | "network" | "submitFailed" | "invalid";
|
|
3
|
+
type Container = "modal" | "drawer" | "pane";
|
|
4
|
+
type Detail = Record<string, unknown>;
|
|
5
|
+
type CloseStatus = "success" | "dismissed";
|
|
6
|
+
type FetchOutcome = "loaded" | "error" | "aborted" | "session";
|
|
7
|
+
type SizeSpec = {
|
|
8
|
+
fullscreen: true;
|
|
9
|
+
} | {
|
|
10
|
+
fullscreen?: false;
|
|
11
|
+
px: number;
|
|
12
|
+
};
|
|
13
|
+
interface SessionClose {
|
|
14
|
+
status: CloseStatus;
|
|
15
|
+
detail: Detail | null;
|
|
16
|
+
}
|
|
17
|
+
export interface ModalHandle {
|
|
18
|
+
el: HTMLElement;
|
|
19
|
+
close: () => void;
|
|
20
|
+
reload: () => Promise<FetchOutcome>;
|
|
21
|
+
closed: Promise<SessionClose>;
|
|
22
|
+
}
|
|
23
|
+
export interface RemoteOptions {
|
|
24
|
+
size?: string | number;
|
|
25
|
+
title?: string;
|
|
26
|
+
staticBackdrop?: boolean;
|
|
27
|
+
placement?: string;
|
|
28
|
+
container?: Container;
|
|
29
|
+
trigger?: HTMLElement | null;
|
|
30
|
+
target?: Element | string | null;
|
|
31
|
+
method?: string;
|
|
32
|
+
body?: BodyInit;
|
|
33
|
+
signal?: AbortSignal;
|
|
34
|
+
onSuccess?: (detail: Detail, handle: ModalHandle) => void;
|
|
35
|
+
navigate?: (url: string) => void;
|
|
36
|
+
}
|
|
37
|
+
/** Id of the shared dialog `load()` creates on first use. */
|
|
38
|
+
export declare const REMOTE_SHELL_ID: string;
|
|
39
|
+
/** Id of the shared drawer `loadRemoteDrawer()` creates on first use. */
|
|
40
|
+
export declare const REMOTE_DRAWER_ID: string;
|
|
41
|
+
/** Drawer widths, identical to the wui-drawer sizes in _drawer.scss. */
|
|
42
|
+
export declare const DRAWER_SIZE_PX: Readonly<Record<SizeName, number>>;
|
|
43
|
+
/** Shell class of a fullscreen modal; the same class React's AppModal puts on its shell. */
|
|
44
|
+
export declare const FULLSCREEN_CLASS: string;
|
|
45
|
+
/** Card max-widths, identical to ModalSize.cs and React's SIZE_PX. */
|
|
46
|
+
export declare const MODAL_SIZE_PX: Readonly<Record<SizeName, number>>;
|
|
47
|
+
/** The words the dialog shows on its own. */
|
|
48
|
+
export declare const REMOTE_MODAL_TEXT: Readonly<Record<TextKey, string>>;
|
|
49
|
+
/**
|
|
50
|
+
* A size as the shell applies it: `{ fullscreen: true }` or `{ px }`. Empty is null (no opinion).
|
|
51
|
+
* An unknown value throws: the vocabulary is sm | md | lg | xl | fullscreen | a positive px number.
|
|
52
|
+
*/
|
|
53
|
+
export declare function resolveModalSize(size: string | number | null | undefined): SizeSpec | null;
|
|
54
|
+
/** A drawer size as the shell applies it: sm | md | lg | xl are drawer widths, or a positive px number. Empty is null. */
|
|
55
|
+
export declare function resolveDrawerSize(size: string | number | null | undefined): SizeSpec | null;
|
|
56
|
+
export declare function wrapTab(shell: HTMLElement, e: KeyboardEvent): void;
|
|
57
|
+
/** Wire the remote modal shells and the delegated trigger under `root`. */
|
|
58
|
+
export declare function initRemoteModals(root?: Document | Element): void;
|
|
59
|
+
/**
|
|
60
|
+
* Load `url` into the shared remote modal.
|
|
61
|
+
*
|
|
62
|
+
* @param {string} url Fragment URL (a page handler answering `this.ModalPartial(...)`).
|
|
63
|
+
* @param {{ size?: 'sm'|'md'|'lg'|'xl'|'fullscreen'|number, title?: string,
|
|
64
|
+
* staticBackdrop?: boolean (defaults to true: Escape and an outside click leave it open; false lets them close it),
|
|
65
|
+
* placement?: 'center'|'top', trigger?: Element, method?: string, body?: BodyInit, signal?: AbortSignal,
|
|
66
|
+
* onSuccess?: (detail: object, handle: object) => void, navigate?: (url: string) => void }} [options]
|
|
67
|
+
* @returns {Promise<{ el: HTMLElement, close: () => void, reload: () => Promise<string>,
|
|
68
|
+
* closed: Promise<{ status: 'success'|'dismissed', detail: object|null }> }>}
|
|
69
|
+
*/
|
|
70
|
+
export declare function loadRemoteModal(url: string, options?: RemoteOptions): Promise<ModalHandle>;
|
|
71
|
+
/**
|
|
72
|
+
* Load `url` into the shared remote drawer: the same fragment, submit and answers as
|
|
73
|
+
* `loadRemoteModal`, docked to the end edge. `WUI.drawer.load`.
|
|
74
|
+
*
|
|
75
|
+
* @param {string} url Fragment URL (a page handler answering `this.ModalPartial(...)`).
|
|
76
|
+
* @param {{ size?: 'sm'|'md'|'lg'|'xl'|number, title?: string,
|
|
77
|
+
* staticBackdrop?: boolean (defaults to true: Escape and an outside click leave it open; false lets them close it), trigger?: Element,
|
|
78
|
+
* method?: string, body?: BodyInit, signal?: AbortSignal, onSuccess?: (detail: object, handle: object) => void,
|
|
79
|
+
* navigate?: (url: string) => void }} [options]
|
|
80
|
+
*/
|
|
81
|
+
export declare function loadRemoteDrawer(url: string, options?: RemoteOptions): Promise<ModalHandle>;
|
|
82
|
+
/** Selector of an in-page pane host (<app-detail-pane>); pane widths are the page's, so it has no size vocabulary. */
|
|
83
|
+
export declare const REMOTE_PANE_HOST: string;
|
|
84
|
+
/**
|
|
85
|
+
* Load `url` into the in-page pane `options.target` (an element or selector carrying data-wui-pane-host):
|
|
86
|
+
* the same fragment, submit protocol and answers as loadRemoteModal, with no backdrop.
|
|
87
|
+
* @param {string} url
|
|
88
|
+
* @param {{ target: Element|string, trigger?: Element, method?: string, body?: BodyInit, signal?: AbortSignal,
|
|
89
|
+
* onSuccess?: (detail: object, handle: object) => void, navigate?: (url: string) => void }} options
|
|
90
|
+
* @returns {Promise<{ el: HTMLElement, close: () => void, reload: () => Promise<string>,
|
|
91
|
+
* closed: Promise<{ status: 'success'|'dismissed', detail: object|null }> }>}
|
|
92
|
+
*/
|
|
93
|
+
export declare function loadRemotePane(url: string, options?: RemoteOptions): Promise<ModalHandle>;
|
|
94
|
+
/** Close the pane `target` (element or selector); a closed pane is left as it is. */
|
|
95
|
+
export declare function closeRemotePane(target: Element | string | null | undefined): void;
|
|
96
|
+
export {};
|