@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,112 @@
|
|
|
1
|
+
import { ElementBase } from "./elementBase.ts";
|
|
2
|
+
import { createListboxKeyNav } from "./listboxKeyNav.ts";
|
|
3
|
+
export interface WuiTreeNode {
|
|
4
|
+
id?: string | number | null;
|
|
5
|
+
label?: string | number | null;
|
|
6
|
+
icon?: string | null;
|
|
7
|
+
badge?: string | number | null;
|
|
8
|
+
badgeTone?: string | null;
|
|
9
|
+
children?: WuiTreeNode[];
|
|
10
|
+
hasChildren?: boolean;
|
|
11
|
+
expanded?: boolean;
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
type LoadChildren = (node: WuiTreeNode) => Promise<WuiTreeNode[]>;
|
|
16
|
+
type Selection = "none" | "single" | "multiple";
|
|
17
|
+
type CheckState = "checked" | "unchecked" | "mixed";
|
|
18
|
+
interface TreeModelNode {
|
|
19
|
+
id: string;
|
|
20
|
+
raw: WuiTreeNode;
|
|
21
|
+
parent: TreeModelNode | null;
|
|
22
|
+
level: number;
|
|
23
|
+
seq: number;
|
|
24
|
+
label: string;
|
|
25
|
+
icon: string | null;
|
|
26
|
+
badge: string | null;
|
|
27
|
+
badgeTone: string | null;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
hasChildren: boolean;
|
|
30
|
+
children: TreeModelNode[] | null;
|
|
31
|
+
expanded: boolean;
|
|
32
|
+
loading: boolean;
|
|
33
|
+
failed: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare class WuiTree extends ElementBase {
|
|
36
|
+
_uid: string;
|
|
37
|
+
_seq: number;
|
|
38
|
+
_roots: TreeModelNode[];
|
|
39
|
+
_byId: Map<string, TreeModelNode>;
|
|
40
|
+
_prev: Map<string, TreeModelNode> | null;
|
|
41
|
+
_staged: {
|
|
42
|
+
ids: string[];
|
|
43
|
+
checks: string[];
|
|
44
|
+
} | null;
|
|
45
|
+
_els: Map<string, {
|
|
46
|
+
li: HTMLLIElement;
|
|
47
|
+
row: HTMLDivElement;
|
|
48
|
+
}>;
|
|
49
|
+
_checked: Set<string>;
|
|
50
|
+
_selected: string | null;
|
|
51
|
+
_focusId: string | null;
|
|
52
|
+
_loader: LoadChildren | null;
|
|
53
|
+
_list: HTMLUListElement | null;
|
|
54
|
+
_live: HTMLDivElement | null;
|
|
55
|
+
_ready: boolean;
|
|
56
|
+
_nav: ReturnType<typeof createListboxKeyNav>;
|
|
57
|
+
_onKeyDown: (e: KeyboardEvent) => void;
|
|
58
|
+
_onClick: (e: MouseEvent) => void;
|
|
59
|
+
_onFocusIn: (e: FocusEvent) => void;
|
|
60
|
+
static get observedAttributes(): string[];
|
|
61
|
+
constructor();
|
|
62
|
+
connectedCallback(): void;
|
|
63
|
+
disconnectedCallback(): void;
|
|
64
|
+
attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
|
|
65
|
+
get nodes(): WuiTreeNode[];
|
|
66
|
+
set nodes(list: WuiTreeNode[] | null | undefined);
|
|
67
|
+
get selection(): Selection;
|
|
68
|
+
set selection(v: string);
|
|
69
|
+
get selected(): string | null;
|
|
70
|
+
set selected(id: string | number | null | undefined);
|
|
71
|
+
get values(): string[];
|
|
72
|
+
set values(ids: (string | number)[] | null | undefined);
|
|
73
|
+
get loadChildren(): LoadChildren | null;
|
|
74
|
+
set loadChildren(fn: LoadChildren | null | undefined);
|
|
75
|
+
get loadUrl(): string | null;
|
|
76
|
+
set loadUrl(v: string | null | undefined);
|
|
77
|
+
get name(): string | null;
|
|
78
|
+
set name(v: string | null | undefined);
|
|
79
|
+
get loadingText(): string;
|
|
80
|
+
set loadingText(v: string | null | undefined);
|
|
81
|
+
get errorText(): string;
|
|
82
|
+
set errorText(v: string | null | undefined);
|
|
83
|
+
_readScript(): WuiTreeNode[] | null;
|
|
84
|
+
_adoptAll(rawList: WuiTreeNode[]): void;
|
|
85
|
+
_adoptStaged(rawList: WuiTreeNode[], parent: TreeModelNode | null, level: number): TreeModelNode[];
|
|
86
|
+
_adopt(rawList: WuiTreeNode[], parent: TreeModelNode | null, level: number): TreeModelNode[];
|
|
87
|
+
_passChecksDown(n: TreeModelNode): void;
|
|
88
|
+
_loadOpenNodes(): void;
|
|
89
|
+
_isBranch(n: TreeModelNode): boolean;
|
|
90
|
+
_visible(): TreeModelNode[];
|
|
91
|
+
_state(n: TreeModelNode): CheckState;
|
|
92
|
+
_setChecked(n: TreeModelNode, on: boolean): void;
|
|
93
|
+
_nodeFrom(target: EventTarget | null): TreeModelNode | null;
|
|
94
|
+
_emit(name: string, detail: unknown): void;
|
|
95
|
+
_announce(text: string): void;
|
|
96
|
+
_setRoving(n: TreeModelNode): void;
|
|
97
|
+
_focusNode(n: TreeModelNode | undefined): void;
|
|
98
|
+
_activate(n: TreeModelNode): void;
|
|
99
|
+
_enabledLeaves(n: TreeModelNode): TreeModelNode[];
|
|
100
|
+
_toggleCheck(n: TreeModelNode): void;
|
|
101
|
+
_toggleExpand(n: TreeModelNode): void;
|
|
102
|
+
_expand(n: TreeModelNode): void;
|
|
103
|
+
_load(n: TreeModelNode): Promise<void>;
|
|
104
|
+
_fetchChildren(n: TreeModelNode): Promise<WuiTreeNode[]>;
|
|
105
|
+
_handleClick(e: MouseEvent): void;
|
|
106
|
+
_handleKeyDown(e: KeyboardEvent): void;
|
|
107
|
+
_syncForm(): void;
|
|
108
|
+
_render(): void;
|
|
109
|
+
_buildLevel(nodes: TreeModelNode[]): HTMLLIElement[];
|
|
110
|
+
_buildItem(n: TreeModelNode, posInSet: number, setSize: number): HTMLLIElement;
|
|
111
|
+
}
|
|
112
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <wui-truncate>: shows the full text of a clipped `.wui-truncate-text` child. React AppTruncate and
|
|
3
|
+
* Razor <app-truncate> render the element around the clipped span; when the text really is cut
|
|
4
|
+
* (by width or by line count) the element sets `data-wui-tip` to the whole text, which the theme
|
|
5
|
+
* draws as a tooltip on hover and keyboard focus, and makes itself focusable so a keyboard user
|
|
6
|
+
* can reach it. Text that fits gets neither. It re-measures when the box resizes or the text
|
|
7
|
+
* changes, and on hover.
|
|
8
|
+
*/
|
|
9
|
+
import { ElementBase } from "./elementBase.ts";
|
|
10
|
+
export declare class WuiTruncate extends ElementBase {
|
|
11
|
+
_measure: () => void;
|
|
12
|
+
_resize: ResizeObserver | null;
|
|
13
|
+
_mutation: MutationObserver | null;
|
|
14
|
+
_ownTabindex: boolean;
|
|
15
|
+
constructor();
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
measure(): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ElementBase } from "./elementBase.ts";
|
|
2
|
+
export declare const WHATS_NEW_READ_EVENT = "wui-whats-new-read";
|
|
3
|
+
export declare class WuiWhatsNew extends ElementBase {
|
|
4
|
+
_doc: Document | null;
|
|
5
|
+
_stored: string;
|
|
6
|
+
_observer: MutationObserver | null;
|
|
7
|
+
_onTriggerClick: () => void;
|
|
8
|
+
_onKeyDown: (e: KeyboardEvent) => void;
|
|
9
|
+
_onPointerDown: (e: PointerEvent) => void;
|
|
10
|
+
static get observedAttributes(): string[];
|
|
11
|
+
constructor();
|
|
12
|
+
get isOpen(): boolean;
|
|
13
|
+
get _trigger(): HTMLElement | null;
|
|
14
|
+
get _panel(): HTMLElement | null;
|
|
15
|
+
get _dot(): HTMLElement | null;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
19
|
+
open(): void;
|
|
20
|
+
close(returnFocus: boolean): void;
|
|
21
|
+
_place(): void;
|
|
22
|
+
_entries(): {
|
|
23
|
+
entry: HTMLElement;
|
|
24
|
+
date: string;
|
|
25
|
+
}[];
|
|
26
|
+
_newest(): string;
|
|
27
|
+
_seenPoint(): string;
|
|
28
|
+
_refresh(): void;
|
|
29
|
+
_markRead(): void;
|
|
30
|
+
_storage(): {
|
|
31
|
+
store: Storage;
|
|
32
|
+
key: string;
|
|
33
|
+
} | null;
|
|
34
|
+
_load(): string;
|
|
35
|
+
_save(date: string): void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ElementBase } from "./elementBase.ts";
|
|
2
|
+
import { type StepStatus } from "./stepperHeader.ts";
|
|
3
|
+
type BeforeNext = (index: number) => boolean | Promise<boolean>;
|
|
4
|
+
type FocusKey = {
|
|
5
|
+
attr: string;
|
|
6
|
+
value: string | null;
|
|
7
|
+
};
|
|
8
|
+
export declare class WuiWizard extends ElementBase {
|
|
9
|
+
_active: number;
|
|
10
|
+
_skipped: Set<number>;
|
|
11
|
+
_invalid: Set<number>;
|
|
12
|
+
_finished: boolean;
|
|
13
|
+
_rendered: boolean;
|
|
14
|
+
_reflecting: boolean;
|
|
15
|
+
_beforeNext: BeforeNext | null;
|
|
16
|
+
_header: HTMLElement;
|
|
17
|
+
_footer: HTMLElement;
|
|
18
|
+
_chromeInserted: boolean;
|
|
19
|
+
_topBar: HTMLElement | null;
|
|
20
|
+
_onTopBarClick: (e: MouseEvent) => void;
|
|
21
|
+
_onHeaderClick?: (e: MouseEvent) => void;
|
|
22
|
+
_onFooterClick?: (e: MouseEvent) => void;
|
|
23
|
+
_known: HTMLElement[];
|
|
24
|
+
_observer: MutationObserver | null;
|
|
25
|
+
_glyphs: Element | null;
|
|
26
|
+
_glyphObserver: MutationObserver | null;
|
|
27
|
+
static get observedAttributes(): string[];
|
|
28
|
+
constructor();
|
|
29
|
+
get active(): number;
|
|
30
|
+
set active(v: string | number);
|
|
31
|
+
/** A gate run before advancing on Next: `(index) => boolean | Promise<boolean>`. */
|
|
32
|
+
get beforeNext(): BeforeNext | null;
|
|
33
|
+
set beforeNext(fn: BeforeNext | null | undefined);
|
|
34
|
+
/**
|
|
35
|
+
* The `<wui-wizard-step>` panels, in order. Underscore-prefixed (internal): a public
|
|
36
|
+
* getter-only accessor would throw if React ever set `steps` as an element property, so
|
|
37
|
+
* the step set is exposed only as the `steps` React prop / `<app-wizard-step>` children.
|
|
38
|
+
*/
|
|
39
|
+
get _steps(): HTMLElement[];
|
|
40
|
+
/** Rebuild the header + footer without moving panels, for a changed step set. */
|
|
41
|
+
refresh(): void;
|
|
42
|
+
connectedCallback(): void;
|
|
43
|
+
disconnectedCallback(): void;
|
|
44
|
+
attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
|
|
45
|
+
render(): void;
|
|
46
|
+
_renderChrome(): void;
|
|
47
|
+
/** The attribute and value naming the chrome control that holds focus, so a redraw can hand focus back. */
|
|
48
|
+
_focusedControl(): FocusKey | null;
|
|
49
|
+
_restoreFocus(focused: FocusKey | null): void;
|
|
50
|
+
_syncTopBar(steps: HTMLElement[]): void;
|
|
51
|
+
_clampActive(steps: HTMLElement[]): void;
|
|
52
|
+
/**
|
|
53
|
+
* Bring the index-keyed state (active, skipped, invalid) onto the live step set by element
|
|
54
|
+
* identity. A no-op when the set is unchanged since the last render. Returns the live steps.
|
|
55
|
+
*/
|
|
56
|
+
_reconcileSteps(): HTMLElement[];
|
|
57
|
+
_placeChrome(steps: HTMLElement[]): void;
|
|
58
|
+
_onStepsMutated(): void;
|
|
59
|
+
_syncPanels(steps: HTMLElement[]): void;
|
|
60
|
+
_stepStatus(step: Element | undefined, i: number): StepStatus;
|
|
61
|
+
_headerHtml(steps: HTMLElement[]): string;
|
|
62
|
+
_footerHtml(steps: HTMLElement[]): string;
|
|
63
|
+
_wire(): void;
|
|
64
|
+
/** The wrapper's pre-styled glyph for `name`, else the linear one. */
|
|
65
|
+
_glyph(name: string): string;
|
|
66
|
+
_watchGlyphs(): void;
|
|
67
|
+
_renderHeader(): void;
|
|
68
|
+
_teardown(): void;
|
|
69
|
+
_stepTo(index: number): void;
|
|
70
|
+
_back(): void;
|
|
71
|
+
_next(): Promise<void>;
|
|
72
|
+
_skip(): void;
|
|
73
|
+
_flagInvalid(i: number): void;
|
|
74
|
+
_finish(): void;
|
|
75
|
+
_go(index: number, reason: string): void;
|
|
76
|
+
_reflectActive(index: number): void;
|
|
77
|
+
}
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export interface ReanchorHost {
|
|
2
|
+
_reanchor?: (() => void) | null;
|
|
3
|
+
_reanchorScroll?: ((e: Event) => void) | null;
|
|
4
|
+
}
|
|
5
|
+
export type ReanchoredElement = {
|
|
6
|
+
_reanchor: () => void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Anchor `panel` to `trigger`, flipping above it when there is not enough room below.
|
|
10
|
+
*
|
|
11
|
+
* @param trigger the control the panel belongs to
|
|
12
|
+
* @param panel the floating panel, already visible so it can be measured
|
|
13
|
+
* @param opts `matchWidth`, `clampHeight`, `alignEnd`, `below` and `beside`, each optional and false by default.
|
|
14
|
+
* `below` never flips above, for a panel pinned open by an attribute: whether it flips depends on
|
|
15
|
+
* the viewport at upgrade time, so the same markup would open differently on each page.
|
|
16
|
+
* `matchWidth` ties the panel to the trigger's width: right for a menu that reads as part of
|
|
17
|
+
* its control, wrong for a calendar with its own natural size. This is a MINIMUM, not a lock:
|
|
18
|
+
* the panel is at least as wide as the trigger but grows to fit its content, so a narrow
|
|
19
|
+
* control can't force long option labels to wrap (capped to the viewport). A wide-enough
|
|
20
|
+
* control still gets an exactly-flush menu.
|
|
21
|
+
*
|
|
22
|
+
* `clampHeight` caps the panel to whichever side (above/below) the flip above picked, so a
|
|
23
|
+
* panel taller than that side's room shrinks to fit and scrolls internally instead of running
|
|
24
|
+
* past the fold unreachable (see the module doc). Opt-in: a panel that already owns an inner
|
|
25
|
+
* scroll region for its variable-length content (an options list inside a fixed-height shell)
|
|
26
|
+
* would otherwise get its OUTER box clamped too, clipping that inner list instead of the
|
|
27
|
+
* outer box growing to fit it, a regression for a shape this flag isn't meant to touch. Use
|
|
28
|
+
* it only where the panel's own top-level box is the thing that needs to fit and scroll,
|
|
29
|
+
* e.g. a full calendar grid with no inner scroll container.
|
|
30
|
+
*
|
|
31
|
+
* `alignEnd` lines the panel's right edge up with the trigger's right edge instead of its left
|
|
32
|
+
* edge: right for a panel opened by a control at the end of a row, such as a filter button. When
|
|
33
|
+
* the panel doesn't fit to the left of the trigger's end, it aligns to the trigger's start instead.
|
|
34
|
+
* The left edge stays 8 px or more from the viewport's left edge even when the panel is wider than
|
|
35
|
+
* the viewport.
|
|
36
|
+
*
|
|
37
|
+
* `beside` places the panel to the right of the trigger, top-aligned with it, and flips it to the
|
|
38
|
+
* left when the right side would overflow. It keeps the panel inside the viewport vertically and
|
|
39
|
+
* sets `data-side` to "end" or "start" for the side it chose. For a submenu opened from its row.
|
|
40
|
+
*/
|
|
41
|
+
export declare function anchorOverlay(trigger: Pick<HTMLElement, "getBoundingClientRect"> | null, panel: HTMLElement | null, opts?: {
|
|
42
|
+
matchWidth?: boolean;
|
|
43
|
+
clampHeight?: boolean;
|
|
44
|
+
alignEnd?: boolean;
|
|
45
|
+
below?: boolean;
|
|
46
|
+
beside?: boolean;
|
|
47
|
+
}): void;
|
|
48
|
+
/**
|
|
49
|
+
* Keep an open panel anchored while the page moves under it.
|
|
50
|
+
*
|
|
51
|
+
* A fixed panel is positioned once, at open, against coordinates that stop being true the
|
|
52
|
+
* moment anything scrolls or the window resizes — so it detaches from its control and floats
|
|
53
|
+
* over unrelated content. `scroll` is listened for in the CAPTURE phase because scroll does
|
|
54
|
+
* not bubble: a control inside a scrolling table or modal body would otherwise never be told.
|
|
55
|
+
*
|
|
56
|
+
* Here rather than in each element for the same reason `anchorOverlay` is: four copies of a
|
|
57
|
+
* rule is four chances to diverge. The specific trap is that `removeEventListener` only
|
|
58
|
+
* matches when the capture flag matches — pass `true` on add and forget it on remove and the
|
|
59
|
+
* listener silently survives, so every re-wire stacks another one onto a global event.
|
|
60
|
+
*
|
|
61
|
+
* Capture also sees scroll events the panel dispatches on ITSELF (its own clampHeight
|
|
62
|
+
* calendar, an option list), because capture walks every descendant regardless of bubbling.
|
|
63
|
+
* Repositioning against one of those recomputes the same (unchanged) trigger rect while
|
|
64
|
+
* fighting the gesture that produced it, and for a clampHeight panel it re-measures with
|
|
65
|
+
* `style.maxHeight` momentarily cleared, which resets `scrollTop` to 0 on every tick: the
|
|
66
|
+
* panel LOOKS scrollable but every scroll snaps back. Skip reposition when the host is in the
|
|
67
|
+
* scroll's event path; only a scroll OUTSIDE it (the page, a modal body, a scrolling table)
|
|
68
|
+
* means the trigger itself may have moved.
|
|
69
|
+
*
|
|
70
|
+
* @param host the custom element, which owns the handler for its lifetime
|
|
71
|
+
* @param reposition called on scroll/resize; decides for itself whether it is open
|
|
72
|
+
*/
|
|
73
|
+
export declare function bindReanchor(host: ReanchorHost & EventTarget, reposition: () => void): void;
|
|
74
|
+
/** Release what {@link bindReanchor} added. Safe to call when nothing is bound. */
|
|
75
|
+
export declare function unbindReanchor(host: (ReanchorHost & EventTarget) | null | undefined): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An image URL is option DATA (it can come from an API), so only a web or root-relative URL,
|
|
3
|
+
* or an inline raster image, may reach `src`. Anything else renders the initials alone.
|
|
4
|
+
*/
|
|
5
|
+
export declare const safeImageUrl: (url: unknown) => string;
|
|
6
|
+
/** The avatar face for an option, or "" when it has neither a usable photo nor initials. */
|
|
7
|
+
export declare const avatarHtml: (o: {
|
|
8
|
+
avatar?: unknown;
|
|
9
|
+
initials?: string | null;
|
|
10
|
+
}, sizeClass?: string) => string;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** Phone cameras save HEIC; the browser decides whether it can open one (see avatarUnreadableMessage). */
|
|
2
|
+
export declare const AVATAR_ACCEPT = "image/jpeg,image/png,image/webp,image/heic,image/heif,.heic,.heif";
|
|
3
|
+
/** The limit on the photo the person CHOOSES; the saved crop is far smaller. */
|
|
4
|
+
export declare const AVATAR_MAX_SIZE_MB = 10;
|
|
5
|
+
/** Width and height of the saved square, in px. */
|
|
6
|
+
export declare const AVATAR_OUTPUT_SIZE = 512;
|
|
7
|
+
/** Asked of the canvas; a browser that cannot encode WebP hands back PNG, and the file is named for it. */
|
|
8
|
+
export declare const AVATAR_OUTPUT_TYPE = "image/webp";
|
|
9
|
+
/** The two live previews in the crop dialog, in px. */
|
|
10
|
+
export declare const AVATAR_PREVIEW_SIZES: number[];
|
|
11
|
+
export declare const AVATAR_TEXT: {
|
|
12
|
+
dialogTitle: string;
|
|
13
|
+
dialogSubtitle: string;
|
|
14
|
+
save: string;
|
|
15
|
+
cancel: string;
|
|
16
|
+
choose: string;
|
|
17
|
+
change: string;
|
|
18
|
+
camera: string;
|
|
19
|
+
remove: string;
|
|
20
|
+
unreadable: string;
|
|
21
|
+
heicUnreadable: string;
|
|
22
|
+
cropFailed: string;
|
|
23
|
+
};
|
|
24
|
+
/** Is this a HEIC/HEIF photo? Windows reports an empty type for one, so the name decides then. */
|
|
25
|
+
export declare function isHeicFile(file: {
|
|
26
|
+
name?: string;
|
|
27
|
+
type?: string;
|
|
28
|
+
} | null): boolean;
|
|
29
|
+
/** What to say when the crop element cannot decode the chosen photo. */
|
|
30
|
+
export declare function avatarUnreadableMessage(file: {
|
|
31
|
+
name?: string;
|
|
32
|
+
type?: string;
|
|
33
|
+
} | null): string;
|
|
34
|
+
/**
|
|
35
|
+
* The options both pickers pass to <wui-image-crop>.toFile(): the original's name, WebP, and the
|
|
36
|
+
* exact square size. A size that is not a positive whole number takes the default.
|
|
37
|
+
*
|
|
38
|
+
* @param file the original photo, or null
|
|
39
|
+
* @param outputSize the square size in px
|
|
40
|
+
*/
|
|
41
|
+
export declare function avatarCropOptions(file: {
|
|
42
|
+
name?: string;
|
|
43
|
+
} | null, outputSize?: number): {
|
|
44
|
+
name: string;
|
|
45
|
+
type: string;
|
|
46
|
+
size: number;
|
|
47
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const APP_BUTTON_MARKER: string;
|
|
2
|
+
/**
|
|
3
|
+
* @param tone an AppButton tone; an unknown one throws, because it is a library bug.
|
|
4
|
+
* @param variant an AppButton variant; an unknown one throws, because it is a library bug.
|
|
5
|
+
* @param size
|
|
6
|
+
* @returns e.g. "btn btn-ghost-primary btn-sm"
|
|
7
|
+
*/
|
|
8
|
+
export declare function buttonClass(tone?: string, variant?: string, size?: "sm" | "md" | "lg"): string;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { normalizeEvents } from "./calendarModel.ts";
|
|
2
|
+
export type ViewName = "month" | "week" | "day" | "list";
|
|
3
|
+
type NormalizedEvent = ReturnType<typeof normalizeEvents>[number];
|
|
4
|
+
interface RangeState {
|
|
5
|
+
view: ViewName;
|
|
6
|
+
title: string;
|
|
7
|
+
start: string;
|
|
8
|
+
end: string;
|
|
9
|
+
date: string;
|
|
10
|
+
}
|
|
11
|
+
interface MountOptions {
|
|
12
|
+
view: ViewName;
|
|
13
|
+
date?: string;
|
|
14
|
+
timeZone?: string;
|
|
15
|
+
firstDay: number;
|
|
16
|
+
emptyText: string;
|
|
17
|
+
fetchEvents: (range: {
|
|
18
|
+
start: string;
|
|
19
|
+
end: string;
|
|
20
|
+
view: ViewName;
|
|
21
|
+
}) => Promise<NormalizedEvent[]>;
|
|
22
|
+
onEventClick: (event: NormalizedEvent, native: MouseEvent | KeyboardEvent) => boolean;
|
|
23
|
+
navigate?: (url: string) => void;
|
|
24
|
+
onDateClick: (info: {
|
|
25
|
+
date: string;
|
|
26
|
+
time: string | null;
|
|
27
|
+
allDay: boolean;
|
|
28
|
+
}) => void;
|
|
29
|
+
onRange: (state: RangeState) => void;
|
|
30
|
+
onLoading: (loading: boolean) => void;
|
|
31
|
+
}
|
|
32
|
+
export interface CalendarEngine {
|
|
33
|
+
setView(view: ViewName): void;
|
|
34
|
+
gotoDate(day: string): void;
|
|
35
|
+
next(): void;
|
|
36
|
+
prev(): void;
|
|
37
|
+
today(): void;
|
|
38
|
+
refetch(): void;
|
|
39
|
+
setFirstDay(day: number): void;
|
|
40
|
+
setTimeZone(timeZone: string): void;
|
|
41
|
+
resize(): void;
|
|
42
|
+
state(): RangeState | null;
|
|
43
|
+
hasDay(day: string): boolean;
|
|
44
|
+
setCursor(day: string | undefined): boolean;
|
|
45
|
+
labelDays(label: (day: string) => string, fallback: string): void;
|
|
46
|
+
focusDay(day: string): boolean;
|
|
47
|
+
dispose(): void;
|
|
48
|
+
}
|
|
49
|
+
export declare const isViewName: (value: string | undefined) => value is ViewName;
|
|
50
|
+
/**
|
|
51
|
+
* Draw a calendar in `container`.
|
|
52
|
+
*
|
|
53
|
+
* @param container Where the calendar goes.
|
|
54
|
+
* @param options
|
|
55
|
+
* @param options.view The first view.
|
|
56
|
+
* @param options.date The day to open on (`YYYY-MM-DD` in that zone); today when omitted.
|
|
57
|
+
* @param options.timeZone IANA zone the dates of the calendar are in; India Standard Time when omitted.
|
|
58
|
+
* @param options.firstDay The weekday a week starts on, 0 = Sunday to 6 = Saturday.
|
|
59
|
+
* @param options.emptyText What a list of no events says.
|
|
60
|
+
* @param options.fetchEvents Normalized events for the range (days; `end` is the first day not shown) and the view it is shown in.
|
|
61
|
+
* @param options.onEventClick Return true to stop the event's own link.
|
|
62
|
+
* @param options.navigate Called to open the link of a stacked event; defaults to window.location.assign.
|
|
63
|
+
* @param options.onDateClick
|
|
64
|
+
* @param options.onRange The visible period changed.
|
|
65
|
+
* @param options.onLoading
|
|
66
|
+
*/
|
|
67
|
+
export declare function mountCalendar(container: HTMLElement, options: MountOptions): CalendarEngine;
|
|
68
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const MONTHS: string[];
|
|
2
|
+
export declare const WEEKDAYS: string[];
|
|
3
|
+
/**
|
|
4
|
+
* The weekday a calendar's week starts on, 0 = Sunday to 6 = Saturday: the element's own
|
|
5
|
+
* `first-day` attribute, else the theme's `--wui-first-day` token (inherited, so a product, a
|
|
6
|
+
* page or a section sets it once), else Monday.
|
|
7
|
+
*/
|
|
8
|
+
export declare const firstWeekday: (el: Element) => number;
|
|
9
|
+
/** Pad a number to two digits for use in ISO date strings. */
|
|
10
|
+
export declare const pad: (n: number) => string;
|
|
11
|
+
/** Format a date as an ISO 8601 yyyy-mm-dd string. */
|
|
12
|
+
export declare const toIso: (y: number, m: number, d: number) => string;
|
|
13
|
+
/**
|
|
14
|
+
* Parse an ISO 8601 yyyy-mm-dd string into { y, m, d }.
|
|
15
|
+
* Month is 0-indexed (0 = January).
|
|
16
|
+
* Returns null if the string is invalid or falsy.
|
|
17
|
+
*/
|
|
18
|
+
export declare const parseIso: (s: string | null | undefined) => {
|
|
19
|
+
y: number;
|
|
20
|
+
m: number;
|
|
21
|
+
d: number;
|
|
22
|
+
} | null;
|
|
23
|
+
export declare const DISPLAY_FORMAT = "dd-MMM-yyyy";
|
|
24
|
+
/**
|
|
25
|
+
* Format an ISO date string as a human-readable label. `format` is built from the tokens
|
|
26
|
+
* yyyy, MMMM, MMM, MM, dd and d; anything else is kept as written. The default is the Webority
|
|
27
|
+
* date format "dd-MMM-yyyy" (e.g., "04-Aug-2026").
|
|
28
|
+
* Returns an empty string if the ISO string is invalid.
|
|
29
|
+
*/
|
|
30
|
+
export declare const fmt: (iso: string | null | undefined, format?: string | null) => string;
|
|
31
|
+
/** Return the number of days in the given (y, m) pair. Month is 0-indexed. */
|
|
32
|
+
export declare const daysIn: (y: number, m: number) => number;
|
|
33
|
+
/**
|
|
34
|
+
* Normalize an out-of-range month back into a valid (y, m) pair.
|
|
35
|
+
* Months < 0 roll back into the previous year(s); months > 11 roll forward.
|
|
36
|
+
*/
|
|
37
|
+
export declare const clampMonth: (y: number, m: number) => {
|
|
38
|
+
y: number;
|
|
39
|
+
m: number;
|
|
40
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare const CALENDAR_VIEWS: string[];
|
|
2
|
+
export declare const CALENDAR_TONES: string[];
|
|
3
|
+
/** Below this width of the element itself, a calendar that was given no view opens as a list. */
|
|
4
|
+
export declare const NARROW_PX = 576;
|
|
5
|
+
/**
|
|
6
|
+
* A date or date-time as a wall-clock string in `timeZone`: `YYYY-MM-DD` for a day, `YYYY-MM-DDTHH:mm:ss`
|
|
7
|
+
* for a moment. Takes those two forms, an ISO instant (`Z` or an offset) and epoch milliseconds.
|
|
8
|
+
* A day and a date-time with no offset are already wall-clock times and come back as written. Returns
|
|
9
|
+
* null for anything else.
|
|
10
|
+
*/
|
|
11
|
+
export declare function toWallClock(value: unknown, timeZone?: string): string | null;
|
|
12
|
+
/** Whether `value` is a real `YYYY-MM-DD` day. */
|
|
13
|
+
export declare const isIsoDate: (value: unknown) => boolean;
|
|
14
|
+
/** The day `days` after `iso` (before, when negative). */
|
|
15
|
+
export declare const addDays: (iso: string, days: number) => string;
|
|
16
|
+
/** The same day-of-month `months` later, held to the last day of a shorter month. */
|
|
17
|
+
export declare function addMonths(iso: string, months: number): string;
|
|
18
|
+
/** The first day of the week holding `iso`, for weeks that start on `firstDay` (0 = Sunday, 1 = Monday). */
|
|
19
|
+
export declare function weekStart(iso: string, firstDay?: number): string;
|
|
20
|
+
/** `Sunday, 4 October 2026`, for a screen reader. */
|
|
21
|
+
export declare function longDate(iso: string): string;
|
|
22
|
+
/** `10:30 am` from `HH:mm` or `HH:mm:ss`. */
|
|
23
|
+
export declare function clockTime(time: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* The day a key moves to from `iso` in `view`, or null when the key does nothing there. Arrows
|
|
26
|
+
* step a day (a week up or down in the month), Home and End go to the first and last day of the
|
|
27
|
+
* week (weeks start on `firstDay`, 0 = Sunday, 1 = Monday), Page Up and Page Down to the previous
|
|
28
|
+
* and next month (week, in a week view; day, in a day view).
|
|
29
|
+
*/
|
|
30
|
+
export declare function stepDate(iso: string, key: string, view: string | null, firstDay?: number): string | null;
|
|
31
|
+
/** The keys `stepDate` can answer for. */
|
|
32
|
+
export declare const STEP_KEYS: string[];
|
|
33
|
+
/**
|
|
34
|
+
* The URL an events endpoint is asked: `start` and `end` as `YYYY-MM-DD` days in the calendar's zone, `end` being the
|
|
35
|
+
* first day not shown (the same convention as a half-open range), and, when given, `view` (month,
|
|
36
|
+
* week, day or list). Existing query parameters stay.
|
|
37
|
+
*/
|
|
38
|
+
export declare function eventsUrl(base: string, start: string, end: string, view?: string): string;
|
|
39
|
+
/** Only web and mail links, and relative ones, become an event's link. */
|
|
40
|
+
export declare function isSafeUrl(value: unknown): value is string;
|
|
41
|
+
/** Warn once when `value` is outside `allowed`; nullish means omitted and passes. */
|
|
42
|
+
export declare function checkValue(name: string, value: unknown, allowed: readonly unknown[]): void;
|
|
43
|
+
export interface CalendarStack {
|
|
44
|
+
count: number;
|
|
45
|
+
url: string;
|
|
46
|
+
label: string;
|
|
47
|
+
}
|
|
48
|
+
export type CalendarWireEvent = Record<string, unknown>;
|
|
49
|
+
export interface CalendarEvent {
|
|
50
|
+
id: string | null;
|
|
51
|
+
title: string;
|
|
52
|
+
start: string;
|
|
53
|
+
end: string | null;
|
|
54
|
+
allDay: boolean;
|
|
55
|
+
tone: string;
|
|
56
|
+
url: string | null;
|
|
57
|
+
stack: CalendarStack | null;
|
|
58
|
+
raw: CalendarWireEvent;
|
|
59
|
+
}
|
|
60
|
+
export type NormalizeEventResult = {
|
|
61
|
+
event: CalendarEvent;
|
|
62
|
+
problem?: undefined;
|
|
63
|
+
} | {
|
|
64
|
+
event?: undefined;
|
|
65
|
+
problem: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* One wire event ({ id, title, start, end, allDay, tone, url, stack }) in the form the calendar draws:
|
|
69
|
+
* dates as wall-clock strings in `timeZone`, `raw` being the event exactly as it was given (it comes back in
|
|
70
|
+
* the click event). Returns { event } or { problem } (a sentence naming what is wrong).
|
|
71
|
+
*/
|
|
72
|
+
export declare function normalizeEvent(raw: unknown, timeZone?: string): NormalizeEventResult;
|
|
73
|
+
/** Normalize a list of wire events, reporting each one that cannot be drawn and drawing the rest. */
|
|
74
|
+
export declare function normalizeEvents(list: unknown, timeZone?: string): CalendarEvent[];
|
|
75
|
+
/** The label a screen reader hears for an event. */
|
|
76
|
+
export declare function eventLabel(event: CalendarEvent): string;
|
|
77
|
+
/** The detail of `wui-calendar:event-click`: the event as it was given. */
|
|
78
|
+
export declare const eventDetail: (event: CalendarEvent) => CalendarWireEvent;
|
package/types/chart.d.ts
ADDED