@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,64 @@
|
|
|
1
|
+
import { ElementBase } from "./elementBase.ts";
|
|
2
|
+
/** The words the element says on its own. */
|
|
3
|
+
export declare const CAROUSEL_TEXT: Readonly<{
|
|
4
|
+
slide: (n: number, total: number) => string;
|
|
5
|
+
status: (first: number, last: number, total: number) => string;
|
|
6
|
+
dot: "Go to slide";
|
|
7
|
+
pause: "Pause";
|
|
8
|
+
play: "Play";
|
|
9
|
+
}>;
|
|
10
|
+
export declare class WuiCarousel extends ElementBase {
|
|
11
|
+
_page: number;
|
|
12
|
+
_pages: number;
|
|
13
|
+
_perView: number;
|
|
14
|
+
_paused: boolean;
|
|
15
|
+
_hover: boolean;
|
|
16
|
+
_focus: boolean;
|
|
17
|
+
_timer: ReturnType<typeof setTimeout> | null;
|
|
18
|
+
_settleTimer: ReturnType<typeof setTimeout> | null;
|
|
19
|
+
_status: string;
|
|
20
|
+
_ready: boolean;
|
|
21
|
+
_motion: MediaQueryList | null;
|
|
22
|
+
_mutations: MutationObserver | null;
|
|
23
|
+
_resizer: ResizeObserver | null;
|
|
24
|
+
_doc: Document | null;
|
|
25
|
+
_track: HTMLElement | null;
|
|
26
|
+
_onClick: (e: MouseEvent) => void;
|
|
27
|
+
_onKeyDown: (e: KeyboardEvent) => void;
|
|
28
|
+
_onScroll: () => void;
|
|
29
|
+
_onEnter: () => void;
|
|
30
|
+
_onLeave: () => void;
|
|
31
|
+
_onFocusIn: () => void;
|
|
32
|
+
_onFocusOut: (e: FocusEvent) => void;
|
|
33
|
+
_onVisibility: () => void;
|
|
34
|
+
_onMotion: () => void;
|
|
35
|
+
_tick: () => void;
|
|
36
|
+
static get observedAttributes(): string[];
|
|
37
|
+
constructor();
|
|
38
|
+
connectedCallback(): void;
|
|
39
|
+
disconnectedCallback(): void;
|
|
40
|
+
attributeChangedCallback(): void;
|
|
41
|
+
/** Whether the user stopped the autoplay with the pause control. */
|
|
42
|
+
get paused(): boolean;
|
|
43
|
+
set paused(value: unknown);
|
|
44
|
+
next(): void;
|
|
45
|
+
prev(): void;
|
|
46
|
+
goTo(page: unknown): void;
|
|
47
|
+
_interval(): number;
|
|
48
|
+
_slides(): HTMLElement[];
|
|
49
|
+
_playing(): boolean;
|
|
50
|
+
_hold({ hover, focus }: {
|
|
51
|
+
hover?: boolean;
|
|
52
|
+
focus?: boolean;
|
|
53
|
+
}): void;
|
|
54
|
+
_click(e: MouseEvent): void;
|
|
55
|
+
_key(e: KeyboardEvent): void;
|
|
56
|
+
_perViewNow(): number;
|
|
57
|
+
_start(page: number): number;
|
|
58
|
+
_label(): number;
|
|
59
|
+
_refresh(): void;
|
|
60
|
+
_settle(): void;
|
|
61
|
+
_go(page: number): void;
|
|
62
|
+
_render(announce: boolean): void;
|
|
63
|
+
_sync(): void;
|
|
64
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { ChartTheme } from "./chartAdapter.ts";
|
|
2
|
+
import { mountChart } from "./chartAdapter.ts";
|
|
3
|
+
import { type NormalizedSpec, type NormalizeResult } from "./chartSpec.ts";
|
|
4
|
+
import { ElementBase } from "./elementBase.ts";
|
|
5
|
+
type ChartState = "ready" | "loading" | "empty" | "error";
|
|
6
|
+
type ChartEngine = ReturnType<typeof mountChart>;
|
|
7
|
+
type Focus = {
|
|
8
|
+
series: number;
|
|
9
|
+
index: number;
|
|
10
|
+
};
|
|
11
|
+
type ChartParts = {
|
|
12
|
+
legend: HTMLDivElement;
|
|
13
|
+
surface: HTMLDivElement;
|
|
14
|
+
canvas: HTMLDivElement;
|
|
15
|
+
state: HTMLDivElement;
|
|
16
|
+
tableWrap: HTMLDivElement;
|
|
17
|
+
summary: HTMLParagraphElement;
|
|
18
|
+
live: HTMLDivElement;
|
|
19
|
+
};
|
|
20
|
+
export declare class WuiChart extends ElementBase {
|
|
21
|
+
uid: string;
|
|
22
|
+
_spec: unknown;
|
|
23
|
+
_normal: NormalizeResult | null;
|
|
24
|
+
_hidden: Set<string>;
|
|
25
|
+
_focus: Focus | null;
|
|
26
|
+
_awaitingSpec: boolean;
|
|
27
|
+
_parts: ChartParts | null;
|
|
28
|
+
_theme: ChartTheme | null;
|
|
29
|
+
_width: number | null;
|
|
30
|
+
_visible: boolean;
|
|
31
|
+
_resizeObserver: ResizeObserver | null;
|
|
32
|
+
_intersection: IntersectionObserver | null;
|
|
33
|
+
_engine: ChartEngine | null;
|
|
34
|
+
_drawn: boolean;
|
|
35
|
+
_drawnType: string | null;
|
|
36
|
+
_announcedReady: boolean;
|
|
37
|
+
_legendSignature: string | null;
|
|
38
|
+
_tableSpec: NormalizedSpec | null;
|
|
39
|
+
static get observedAttributes(): string[];
|
|
40
|
+
constructor();
|
|
41
|
+
get spec(): unknown;
|
|
42
|
+
set spec(v: unknown);
|
|
43
|
+
get view(): "chart" | "table";
|
|
44
|
+
set view(v: string | null | undefined);
|
|
45
|
+
connectedCallback(): void;
|
|
46
|
+
disconnectedCallback(): void;
|
|
47
|
+
attributeChangedCallback(_name: string, oldValue: string | null, newValue: string | null): void;
|
|
48
|
+
/** The data as CSV text (every row; see chartSpec.toCsv). Empty when there is no drawable spec. */
|
|
49
|
+
toCsv(): string;
|
|
50
|
+
/** The chart as a PNG data URL at twice its size, on the surface colour. Empty without a drawable spec. */
|
|
51
|
+
toPng(): string;
|
|
52
|
+
/** Download the CSV, named after the title unless `name` is given. */
|
|
53
|
+
exportCsv(name?: string): void;
|
|
54
|
+
/** Download the PNG, named after the title unless `name` is given. */
|
|
55
|
+
exportPng(name?: string): void;
|
|
56
|
+
_readScript(): unknown;
|
|
57
|
+
_normalized(): NormalizeResult;
|
|
58
|
+
_build(): void;
|
|
59
|
+
_size(spec: NormalizedSpec): {
|
|
60
|
+
width: number;
|
|
61
|
+
height: number;
|
|
62
|
+
};
|
|
63
|
+
_update(): void;
|
|
64
|
+
_renderState(state: ChartState, message: string | null | undefined, height: string, live: boolean): void;
|
|
65
|
+
_colour(spec: NormalizedSpec, index: number): string | undefined;
|
|
66
|
+
_renderLegend(spec: NormalizedSpec | null, show: boolean): void;
|
|
67
|
+
_renderTable(spec: NormalizedSpec): void;
|
|
68
|
+
_draw(): void;
|
|
69
|
+
_themeChanged(): void;
|
|
70
|
+
_resized(): void;
|
|
71
|
+
_toggle(key: string | null | undefined): void;
|
|
72
|
+
_onKey(e: KeyboardEvent): void;
|
|
73
|
+
_announce(text: string): void;
|
|
74
|
+
_clearFocus(): void;
|
|
75
|
+
_select(seriesIndex: number, dataIndex: number): void;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementBase } from "./elementBase.ts";
|
|
2
|
+
export declare class WuiCodeBlock extends ElementBase {
|
|
3
|
+
private readonly _title;
|
|
4
|
+
private readonly _view;
|
|
5
|
+
private readonly _codeEl;
|
|
6
|
+
private readonly _copyIcon;
|
|
7
|
+
private readonly _copyText;
|
|
8
|
+
private _chrome;
|
|
9
|
+
private _copied;
|
|
10
|
+
private _observer;
|
|
11
|
+
private _timer;
|
|
12
|
+
private _cancelFrame;
|
|
13
|
+
constructor();
|
|
14
|
+
static get observedAttributes(): string[];
|
|
15
|
+
connectedCallback(): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
17
|
+
attributeChangedCallback(): void;
|
|
18
|
+
_source(): Element | undefined;
|
|
19
|
+
_code(): string;
|
|
20
|
+
_schedule(): void;
|
|
21
|
+
_cancelPending(): void;
|
|
22
|
+
_render(): void;
|
|
23
|
+
_build(doc: Document): void;
|
|
24
|
+
_bar(doc: Document): HTMLDivElement;
|
|
25
|
+
_setCopied(copied: boolean): void;
|
|
26
|
+
_copyLabel(): string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <wui-command-palette>: the keyboard and pointer behaviour of a "search and jump" list.
|
|
3
|
+
*
|
|
4
|
+
* Like <wui-dock>, this element renders no markup of its own. The wrappers (React
|
|
5
|
+
* AppCommandPalette, Razor <app-command-palette>) author the input, the grouped listbox and
|
|
6
|
+
* the footer, because item icons and trailing text can be arbitrary nodes. The overlay is the
|
|
7
|
+
* library's modal on both surfaces, which already owns Escape, the backdrop, the focus trap
|
|
8
|
+
* and returning focus, so none of that lives here. This element only:
|
|
9
|
+
*
|
|
10
|
+
* - keeps one ACTIVE option: `aria-selected="true"` on it, `aria-activedescendant` on the
|
|
11
|
+
* combobox input. Focus never leaves the input, so the options are not focusable.
|
|
12
|
+
* - moves it with ArrowUp / ArrowDown across every group, wrapping at both ends, and
|
|
13
|
+
* scrolls it into view. A disabled option (`aria-disabled="true"`) stays listed but is
|
|
14
|
+
* never active, skipped by the arrow keys, and ignored by Enter, click and the pointer.
|
|
15
|
+
* - lets the pointer set it (mousemove, not mouseenter, so a list scrolling under a still
|
|
16
|
+
* pointer does not steal it).
|
|
17
|
+
* - marks keyboard use: `data-keyboard` on the element while an arrow key chose the active
|
|
18
|
+
* option, cleared when the pointer picks one, when the first result takes over (a new query
|
|
19
|
+
* or list), and when the modal closes. The theme draws the keyboard ring only under it.
|
|
20
|
+
* - selects on Enter or click: dispatches a cancelable `wui-command-palette:select` event
|
|
21
|
+
* with `{ key, groupKey, id }`. If nothing cancels it and the option carries `data-href`,
|
|
22
|
+
* the page navigates there (the server-rendered path).
|
|
23
|
+
*
|
|
24
|
+
* The wrapper calls `refresh()` after it changes the options. A query that differs from the
|
|
25
|
+
* one seen at the last refresh moves the active option back to the first result. Under the
|
|
26
|
+
* same query, an option the user chose (arrow keys or pointer) is kept while it still exists;
|
|
27
|
+
* an option that was only active by default follows the list, so results arriving late for
|
|
28
|
+
* the same query make their first row the one Enter picks.
|
|
29
|
+
*
|
|
30
|
+
* With the `filter` attribute the element also filters the options itself, on their
|
|
31
|
+
* `data-label`, as the user types: for a server-rendered list with no script of its own.
|
|
32
|
+
* Each option also matches on its `data-keywords` (space-separated), the same way as its label.
|
|
33
|
+
* Matching text in each label is wrapped in <mark> unless `highlight="false"`, groups left
|
|
34
|
+
* with no match are hidden, and the `.wui-cmd-empty` status region shows `empty-text`.
|
|
35
|
+
* Without `filter` the caller filters and renders the emphasis itself.
|
|
36
|
+
*
|
|
37
|
+
* With `group-filter` (which needs `filter`) the markup's `.wui-cmd-tabs` strip picks one
|
|
38
|
+
* group: each `[data-group-tab]` button carries a group's `data-group-key`, and the empty value
|
|
39
|
+
* is All. Tab and Shift+Tab in the input cycle the strip while focus stays in the input. The
|
|
40
|
+
* pick resets when the query changes, and the strip is hidden on a nested page, where the
|
|
41
|
+
* groups are not the root's.
|
|
42
|
+
*
|
|
43
|
+
* Nested pages. An option with `data-opens="<page key>"` opens a page instead of acting. The
|
|
44
|
+
* current page is a path of `{ key, label }`, shown by the element in the wrappers' empty
|
|
45
|
+
* `.wui-cmd-crumbs` bar (Back button, trail). Opening a page, Back, a click on a trail entry
|
|
46
|
+
* and Backspace in an empty input all dispatch a cancelable `wui-command-palette:navigate`
|
|
47
|
+
* with `{ path }`. A caller that owns the path (React) sets the `path` attribute (JSON) and
|
|
48
|
+
* cancels the event; otherwise the element keeps the path itself, and with `.wui-cmd-page`
|
|
49
|
+
* containers (`data-page`, `data-label`) in the markup it shows only the current page's options
|
|
50
|
+
* (the root options when the path is empty). Every navigation clears the search. The path
|
|
51
|
+
* resets when the enclosing Bootstrap modal closes.
|
|
52
|
+
*
|
|
53
|
+
* Recents. With `recents-key` (a localStorage key; make it per user), each chosen option is
|
|
54
|
+
* remembered by its `data-group-key` and `data-key`, newest first, up to `recents-limit`
|
|
55
|
+
* (default 5). While the search is empty on the root page, the element copies the remembered
|
|
56
|
+
* options that still exist into the wrappers' empty `.wui-cmd-recents` container, under a
|
|
57
|
+
* `recents-label` heading (default "Recent"), so they are listed first. A copy keeps its
|
|
58
|
+
* original's `data-group-key`, `data-key` and `data-href`, so choosing it does what the
|
|
59
|
+
* original does. A page-opening or disabled option is never remembered.
|
|
60
|
+
*/
|
|
61
|
+
import { ElementBase } from "./elementBase.ts";
|
|
62
|
+
interface PathEntry {
|
|
63
|
+
key: string;
|
|
64
|
+
label: string;
|
|
65
|
+
}
|
|
66
|
+
interface RecentEntry {
|
|
67
|
+
g: string;
|
|
68
|
+
k: string;
|
|
69
|
+
}
|
|
70
|
+
export declare class WuiCommandPalette extends ElementBase {
|
|
71
|
+
_path: PathEntry[];
|
|
72
|
+
_group: string | null;
|
|
73
|
+
_crumbSig: string | null;
|
|
74
|
+
_modal: Element | null;
|
|
75
|
+
_recentsId: string;
|
|
76
|
+
_onModalHidden: () => void;
|
|
77
|
+
_activeId: string | null;
|
|
78
|
+
_lastQuery: string | null;
|
|
79
|
+
_lastIds: string | null;
|
|
80
|
+
_userChose: boolean;
|
|
81
|
+
_onKeyDown: (e: KeyboardEvent) => void;
|
|
82
|
+
_onClick: (e: MouseEvent) => void;
|
|
83
|
+
_onMouseDown: (e: MouseEvent) => void;
|
|
84
|
+
_onMouseMove: (e: MouseEvent) => void;
|
|
85
|
+
_onInput: (e: Event) => void;
|
|
86
|
+
static get observedAttributes(): string[];
|
|
87
|
+
constructor();
|
|
88
|
+
connectedCallback(): void;
|
|
89
|
+
disconnectedCallback(): void;
|
|
90
|
+
attributeChangedCallback(name: string): void;
|
|
91
|
+
get filter(): boolean;
|
|
92
|
+
set filter(v: boolean);
|
|
93
|
+
get highlight(): boolean;
|
|
94
|
+
set highlight(v: boolean);
|
|
95
|
+
get emptyText(): string;
|
|
96
|
+
set emptyText(v: string | null | undefined);
|
|
97
|
+
/**
|
|
98
|
+
* Re-read the options after the wrapper changed them. Keeps the active option while the
|
|
99
|
+
* query is unchanged and it is still listed, and either the user chose it or the listed
|
|
100
|
+
* options are the same as last time. Otherwise activates the first result.
|
|
101
|
+
*/
|
|
102
|
+
refresh(): void;
|
|
103
|
+
_input(): HTMLInputElement | null;
|
|
104
|
+
_optionFrom(target: EventTarget | null, includeDisabled?: boolean): HTMLElement | null;
|
|
105
|
+
_isDisabled(opt: Element): boolean;
|
|
106
|
+
_isHidden(opt: HTMLElement): boolean;
|
|
107
|
+
_selectableOptions(): HTMLElement[];
|
|
108
|
+
_setActive(opt: HTMLElement | null, scroll: boolean): void;
|
|
109
|
+
_move(step: number): void;
|
|
110
|
+
_setKeyboard(on: boolean): void;
|
|
111
|
+
_handleKeyDown(e: KeyboardEvent): void;
|
|
112
|
+
_select(opt: HTMLElement): void;
|
|
113
|
+
_open(pageKey: string): void;
|
|
114
|
+
_goTo(path: PathEntry[]): void;
|
|
115
|
+
_tabs(): HTMLElement[];
|
|
116
|
+
_groupActive(): boolean;
|
|
117
|
+
_pickGroup(groupKey: string | null): void;
|
|
118
|
+
_cycleGroup(step: number): void;
|
|
119
|
+
_syncTabs(): void;
|
|
120
|
+
_restart(): void;
|
|
121
|
+
_reset(): void;
|
|
122
|
+
_readPath(): void;
|
|
123
|
+
_renderCrumbs(): void;
|
|
124
|
+
_recentsHost(): HTMLElement | null;
|
|
125
|
+
_realOptions(): HTMLElement[];
|
|
126
|
+
_recentEntries(): RecentEntry[];
|
|
127
|
+
_recentsLimit(): number;
|
|
128
|
+
_remember(opt: HTMLElement): void;
|
|
129
|
+
_renderRecents(): void;
|
|
130
|
+
_inScope(opt: HTMLElement, paged: boolean): boolean;
|
|
131
|
+
_navigate(href: string): void;
|
|
132
|
+
_applyFilter(): void;
|
|
133
|
+
_teardown(): void;
|
|
134
|
+
}
|
|
135
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type CommentIntent } from "./commentText.ts";
|
|
2
|
+
import { ElementBase } from "./elementBase.ts";
|
|
3
|
+
import type { HttpKind } from "./server/wuiHttp.ts";
|
|
4
|
+
import { WuiMentionInput } from "./WuiMentionInput.ts";
|
|
5
|
+
type CommentPerson = {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
src?: string;
|
|
10
|
+
};
|
|
11
|
+
type CommentFields = {
|
|
12
|
+
commentId?: string | null;
|
|
13
|
+
parentId?: string | null;
|
|
14
|
+
body?: string;
|
|
15
|
+
emoji?: string | null;
|
|
16
|
+
};
|
|
17
|
+
type CommentRequest = CommentFields & {
|
|
18
|
+
intent: CommentIntent;
|
|
19
|
+
};
|
|
20
|
+
type PersistOutcome = {
|
|
21
|
+
ok: true;
|
|
22
|
+
html: string | null;
|
|
23
|
+
} | {
|
|
24
|
+
ok: false;
|
|
25
|
+
kind: HttpKind;
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
export declare class WuiCommentThread extends ElementBase {
|
|
29
|
+
private _wired;
|
|
30
|
+
private _busy;
|
|
31
|
+
private _peopleProp;
|
|
32
|
+
private _pickerFor;
|
|
33
|
+
private _onDocClick;
|
|
34
|
+
private _repositionPicker;
|
|
35
|
+
private _openers?;
|
|
36
|
+
submit?: (request: CommentRequest) => Promise<unknown>;
|
|
37
|
+
constructor();
|
|
38
|
+
connectedCallback(): void;
|
|
39
|
+
disconnectedCallback(): void;
|
|
40
|
+
/** The people every mention box offers: [{ value, label, description?, src? }]. */
|
|
41
|
+
get people(): CommentPerson[];
|
|
42
|
+
set people(list: CommentPerson[]);
|
|
43
|
+
_handPeople(box: WuiMentionInput | null): void;
|
|
44
|
+
_applyComposerPlaceholder(box: WuiMentionInput | null): void;
|
|
45
|
+
_reactionChoices(): readonly string[];
|
|
46
|
+
_onClick(e: MouseEvent): void;
|
|
47
|
+
_onKeyDown(e: KeyboardEvent): void;
|
|
48
|
+
_onSubmitKey(e: Event): void;
|
|
49
|
+
_openReply(comment: Element | null, opener: HTMLElement): void;
|
|
50
|
+
_openEditor(comment: Element | null, opener: HTMLElement): void;
|
|
51
|
+
_fillSlot(slot: HTMLElement, { label, placeholder, value, send, opener, }: {
|
|
52
|
+
label: string;
|
|
53
|
+
placeholder: string;
|
|
54
|
+
value: string;
|
|
55
|
+
send: string;
|
|
56
|
+
opener: HTMLElement;
|
|
57
|
+
}): void;
|
|
58
|
+
_button(tone: string, variant: string, size: "sm" | "md" | "lg", action: string, text: string): HTMLButtonElement;
|
|
59
|
+
_closeSlot(slot: HTMLElement | null, restoreFocus: boolean): void;
|
|
60
|
+
_askDelete(comment: Element | null): void;
|
|
61
|
+
_closeConfirm(comment: Element | null, restoreFocus: boolean): void;
|
|
62
|
+
_openPicker(comment: Element | null, button: HTMLElement): void;
|
|
63
|
+
_closePicker(restoreFocus: boolean): void;
|
|
64
|
+
_react(comment: Element, emoji: string | null): void;
|
|
65
|
+
_sendFrom(button: HTMLElement): void;
|
|
66
|
+
_send(intent: CommentIntent, fields: CommentFields, { comment, scope, form }: {
|
|
67
|
+
comment?: Element | null;
|
|
68
|
+
scope: Element;
|
|
69
|
+
form?: HTMLElement;
|
|
70
|
+
}): Promise<void>;
|
|
71
|
+
_persist(request: CommentRequest): Promise<PersistOutcome>;
|
|
72
|
+
_swapItems(html: string): void;
|
|
73
|
+
_restoreFocus(intent: CommentIntent, fields: CommentFields, form: HTMLElement | undefined): void;
|
|
74
|
+
_showError(scope: ParentNode | null | undefined, message: string | null): void;
|
|
75
|
+
_announce(message: string | null): void;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ElementBase } from "./elementBase.ts";
|
|
2
|
+
type Category = "analytics" | "functional" | "marketing";
|
|
3
|
+
type Choice = Record<Category, boolean>;
|
|
4
|
+
export declare class WuiConsentBanner extends ElementBase {
|
|
5
|
+
_uid: string;
|
|
6
|
+
_preferences: Choice;
|
|
7
|
+
_settings: boolean;
|
|
8
|
+
_onDocumentClick: (e: MouseEvent) => void;
|
|
9
|
+
_tourWatch: MutationObserver | null;
|
|
10
|
+
_roomObserver: ResizeObserver | null;
|
|
11
|
+
_onWindowResize: () => void;
|
|
12
|
+
_rendered?: boolean;
|
|
13
|
+
static get observedAttributes(): string[];
|
|
14
|
+
constructor();
|
|
15
|
+
get position(): "bottom-left" | "bottom-right" | "bar";
|
|
16
|
+
set position(v: unknown);
|
|
17
|
+
get standalone(): boolean;
|
|
18
|
+
set standalone(v: unknown);
|
|
19
|
+
get preview(): boolean;
|
|
20
|
+
set preview(v: unknown);
|
|
21
|
+
get heading(): string;
|
|
22
|
+
set heading(v: unknown);
|
|
23
|
+
get description(): string;
|
|
24
|
+
set description(v: unknown);
|
|
25
|
+
get policyHref(): string;
|
|
26
|
+
set policyHref(v: unknown);
|
|
27
|
+
get policyLabel(): string;
|
|
28
|
+
set policyLabel(v: unknown);
|
|
29
|
+
get analyticsDescription(): string;
|
|
30
|
+
set analyticsDescription(v: unknown);
|
|
31
|
+
get functionalDescription(): string;
|
|
32
|
+
set functionalDescription(v: unknown);
|
|
33
|
+
get marketingDescription(): string;
|
|
34
|
+
set marketingDescription(v: unknown);
|
|
35
|
+
/** The optional categories shown, in display order. Unknown names are ignored; none known means all. */
|
|
36
|
+
get categories(): Category[];
|
|
37
|
+
set categories(v: string[] | string | null | undefined);
|
|
38
|
+
/** The current choice. The host sets it; the switches start from it when settings open. A category not shown reads false. */
|
|
39
|
+
get preferences(): {
|
|
40
|
+
[name: string]: boolean;
|
|
41
|
+
};
|
|
42
|
+
set preferences(v: Partial<Record<Category, unknown>> | null | undefined);
|
|
43
|
+
/** True while the banner is showing. Read-only: use open()/close(). */
|
|
44
|
+
get isOpen(): boolean;
|
|
45
|
+
connectedCallback(): void;
|
|
46
|
+
disconnectedCallback(): void;
|
|
47
|
+
_syncTour(): void;
|
|
48
|
+
attributeChangedCallback(): void;
|
|
49
|
+
render(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Show the banner. `settings: true` opens straight into the per-category switches, the way
|
|
52
|
+
* a "Cookie settings" link should; `focus: true` moves focus into it, which only a deliberate
|
|
53
|
+
* reopen should do: never the first show on page load.
|
|
54
|
+
*/
|
|
55
|
+
open({ settings, focus }?: {
|
|
56
|
+
settings?: boolean;
|
|
57
|
+
focus?: boolean;
|
|
58
|
+
}): void;
|
|
59
|
+
close(): void;
|
|
60
|
+
_trackRoom(): void;
|
|
61
|
+
_untrackRoom(): void;
|
|
62
|
+
_reserveRoom(): void;
|
|
63
|
+
_root(): ShadowRoot | this;
|
|
64
|
+
_panel(): HTMLElement | null;
|
|
65
|
+
_requirePanel(): HTMLElement;
|
|
66
|
+
_wire(): void;
|
|
67
|
+
_save(choice: Choice): void;
|
|
68
|
+
_choiceForShown(granted: boolean): Choice;
|
|
69
|
+
_switchValues(): Choice;
|
|
70
|
+
_applyPreferences(): void;
|
|
71
|
+
_showSettings(on: boolean): void;
|
|
72
|
+
}
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ElementBase } from "./elementBase.ts";
|
|
2
|
+
import { type ListboxKeyNav } from "./listboxKeyNav.ts";
|
|
3
|
+
export declare class WuiContextMenu extends ElementBase {
|
|
4
|
+
_region: Element | null;
|
|
5
|
+
_origin: Element | null;
|
|
6
|
+
_returnFocus: HTMLElement | SVGElement | null;
|
|
7
|
+
_press: {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
timer: ReturnType<typeof setTimeout>;
|
|
11
|
+
} | null;
|
|
12
|
+
_swallowClick: boolean;
|
|
13
|
+
_navPanel: HTMLElement | null;
|
|
14
|
+
_nav: ListboxKeyNav;
|
|
15
|
+
_onContextMenu: (e: MouseEvent) => void;
|
|
16
|
+
_onContextMenuCapture: (e: MouseEvent) => void;
|
|
17
|
+
_onDocKeyDown: (e: KeyboardEvent) => void;
|
|
18
|
+
_onDocClick: (e: MouseEvent) => void;
|
|
19
|
+
_onPointerDown: (e: PointerEvent) => void;
|
|
20
|
+
_onPressMove: (e: PointerEvent) => void;
|
|
21
|
+
_onPressEnd: () => void;
|
|
22
|
+
_onClickCapture: (e: MouseEvent) => void;
|
|
23
|
+
_onKeyDown: (e: KeyboardEvent) => void;
|
|
24
|
+
_onClick: (e: MouseEvent) => void;
|
|
25
|
+
_onInput: (e: Event) => void;
|
|
26
|
+
_onMouseMove: (e: MouseEvent) => void;
|
|
27
|
+
_onDismiss: (e: Event) => void;
|
|
28
|
+
_onPointerDownCapture: (e: PointerEvent) => void;
|
|
29
|
+
static get observedAttributes(): string[];
|
|
30
|
+
constructor();
|
|
31
|
+
connectedCallback(): void;
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
attributeChangedCallback(name: string): void;
|
|
34
|
+
get target(): string | null;
|
|
35
|
+
set target(v: string | null | undefined);
|
|
36
|
+
get disabled(): boolean;
|
|
37
|
+
set disabled(v: boolean);
|
|
38
|
+
get isOpen(): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Show the menu with its top-left corner at the viewport point (x, y), moved as needed to stay
|
|
41
|
+
* on screen. Closes any other open menu first. Fires `wui-context-menu:beforeopen` first; a
|
|
42
|
+
* cancel leaves the menu closed and returns false.
|
|
43
|
+
* @param x
|
|
44
|
+
* @param y
|
|
45
|
+
* @param opts `keyboard` puts focus on the first row instead of on the panel.
|
|
46
|
+
* @returns whether the menu is shown
|
|
47
|
+
*/
|
|
48
|
+
open(x: number, y: number, { region, origin, trigger, keyboard, }?: {
|
|
49
|
+
region?: Element;
|
|
50
|
+
origin?: Element | null;
|
|
51
|
+
trigger?: HTMLElement | null;
|
|
52
|
+
keyboard?: boolean;
|
|
53
|
+
}): boolean;
|
|
54
|
+
_syncOpen(): void;
|
|
55
|
+
_regionRect(region: Element): {
|
|
56
|
+
left: number;
|
|
57
|
+
top: number;
|
|
58
|
+
} | null;
|
|
59
|
+
/** Hide the menu and every submenu in it. `restoreFocus` returns focus to what held it when the menu opened. */
|
|
60
|
+
close(restoreFocus?: boolean): void;
|
|
61
|
+
_panel(): HTMLElement | null;
|
|
62
|
+
_inPanel(node: EventTarget | null): boolean;
|
|
63
|
+
_rowsOf(panel: HTMLElement | null): HTMLElement[];
|
|
64
|
+
_isDisabled(item: Element): boolean;
|
|
65
|
+
_regionFor(node: EventTarget | null): Element | null;
|
|
66
|
+
_triggerFor(node: EventTarget | null): {
|
|
67
|
+
trigger: HTMLElement;
|
|
68
|
+
region: Element;
|
|
69
|
+
} | null;
|
|
70
|
+
_isKeyEcho(): boolean;
|
|
71
|
+
_handleContextMenu(e: MouseEvent): void;
|
|
72
|
+
_handleDocKeyDown(e: KeyboardEvent): void;
|
|
73
|
+
_handleDocClick(e: MouseEvent): void;
|
|
74
|
+
_handlePointerDown(e: PointerEvent): void;
|
|
75
|
+
_cancelPress(): void;
|
|
76
|
+
_handleMenuKey(e: KeyboardEvent): void;
|
|
77
|
+
_handleSearchKey(e: KeyboardEvent, input: Element): void;
|
|
78
|
+
_step(panel: HTMLElement, item: HTMLElement | null, step: number): void;
|
|
79
|
+
_subOf(item: HTMLElement): HTMLElement | null;
|
|
80
|
+
_openSubOf(panel: HTMLElement): HTMLElement | null;
|
|
81
|
+
_openSub(sub: HTMLElement, focusFirst: boolean): void;
|
|
82
|
+
_closeSub(sub: HTMLElement): void;
|
|
83
|
+
_closeSubByKey(sub: HTMLElement): void;
|
|
84
|
+
_setSub(sub: HTMLElement, open: boolean): void;
|
|
85
|
+
_filter(sub: HTMLElement, text: string): void;
|
|
86
|
+
_handleInput(e: Event): void;
|
|
87
|
+
_decorate(panel: HTMLElement): void;
|
|
88
|
+
_handleClick(e: MouseEvent): void;
|
|
89
|
+
_teardown(): void;
|
|
90
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <wui-data-table>: the scroller of a data table (it carries `.table-wrap`) with resizable and pinned
|
|
3
|
+
* columns, and on Razor grouped and virtual rows. React AppDataTable and Razor <app-data-table>
|
|
4
|
+
* render it in place of the plain wrap once one of those features is on.
|
|
5
|
+
*
|
|
6
|
+
* - `resizable`: each header cell but the last gets a drag handle (React renders its own; on Razor
|
|
7
|
+
* one is added). Drag, or focus it and press the arrow keys (Shift for bigger steps, Home to undo).
|
|
8
|
+
* The table then lays out at fixed widths measured from its rows; the last column takes what is
|
|
9
|
+
* left. With `view-key` the widths are remembered in this browser.
|
|
10
|
+
* - Pinned columns: a header cell with `data-pin="start"` or `"end"` stays put while the table
|
|
11
|
+
* scrolls sideways. This measures the offsets onto the table (`--wui-pin-start-<n>`) and, on rows
|
|
12
|
+
* that lack them, adds the pin classes and offset reference React renders itself.
|
|
13
|
+
* - `group-by="<data-key>"` (Razor): rows are gathered under a header row per value of that column
|
|
14
|
+
* (or a row's own `data-group`), in first-seen order, with a collapse toggle and a count.
|
|
15
|
+
* - `virtual` (Razor): only the rows in view, plus a margin, are laid out; the others are hidden
|
|
16
|
+
* between two spacer rows sized to them. Needs a height cap (the theme's `.wui-table-scroll`).
|
|
17
|
+
*/
|
|
18
|
+
import { virtualRange } from "./dataTable.ts";
|
|
19
|
+
import { ElementBase } from "./elementBase.ts";
|
|
20
|
+
interface DragState {
|
|
21
|
+
th: HTMLTableCellElement;
|
|
22
|
+
x: number;
|
|
23
|
+
from: number;
|
|
24
|
+
dir: number;
|
|
25
|
+
moved: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare class WuiDataTable extends ElementBase {
|
|
28
|
+
_frame: number;
|
|
29
|
+
_headDirty: boolean;
|
|
30
|
+
_rowsDirty: boolean;
|
|
31
|
+
_frozenSig: string | null;
|
|
32
|
+
_natural: number[];
|
|
33
|
+
_widths: Record<string, number>;
|
|
34
|
+
_collapsed: Set<string | undefined>;
|
|
35
|
+
_groupOrder: string[];
|
|
36
|
+
_items: HTMLTableRowElement[];
|
|
37
|
+
_range: ReturnType<typeof virtualRange> | null;
|
|
38
|
+
_drag: DragState | null;
|
|
39
|
+
_userSized: boolean;
|
|
40
|
+
_swallowClick: boolean;
|
|
41
|
+
_mo: MutationObserver | null;
|
|
42
|
+
_ro: ResizeObserver | null;
|
|
43
|
+
_fonts: FontFaceSet | null;
|
|
44
|
+
_onPointerDown: (e: PointerEvent) => void;
|
|
45
|
+
_onKeyDown: (e: KeyboardEvent) => void;
|
|
46
|
+
_onClick: (e: MouseEvent) => void;
|
|
47
|
+
_onDblClick: (e: MouseEvent) => void;
|
|
48
|
+
_onScroll: () => void;
|
|
49
|
+
_onFonts: () => void;
|
|
50
|
+
_top: HTMLTableRowElement | null;
|
|
51
|
+
_bottom: HTMLTableRowElement | null;
|
|
52
|
+
_rowHeight: number;
|
|
53
|
+
constructor();
|
|
54
|
+
connectedCallback(): void;
|
|
55
|
+
disconnectedCallback(): void;
|
|
56
|
+
/** Re-reads the table now: after a page script changed its header or rows outside a mutation. */
|
|
57
|
+
refresh(): void;
|
|
58
|
+
get _table(): HTMLTableElement | null;
|
|
59
|
+
_headCells(table: HTMLTableElement): HTMLTableCellElement[];
|
|
60
|
+
_schedule(): void;
|
|
61
|
+
_mutated(records: MutationRecord[]): void;
|
|
62
|
+
_run(): void;
|
|
63
|
+
_pins(table: HTMLTableElement, stamp: boolean): void;
|
|
64
|
+
_setVar(table: HTMLElement, name: string, px: number): void;
|
|
65
|
+
_resizable(cells: HTMLTableCellElement[]): boolean[];
|
|
66
|
+
_handles(table: HTMLTableElement): void;
|
|
67
|
+
_hasRows(table: HTMLTableElement): boolean;
|
|
68
|
+
_signature(cells: HTMLTableCellElement[]): string;
|
|
69
|
+
_layout(table: HTMLTableElement): void;
|
|
70
|
+
_applyRemembered(cells: HTMLTableCellElement[]): void;
|
|
71
|
+
_freeze(table: HTMLTableElement, cells: HTMLTableCellElement[], sig: string): void;
|
|
72
|
+
_setWidth(th: HTMLTableCellElement, px: unknown): number;
|
|
73
|
+
_handleValue(handle: Element, px: number): void;
|
|
74
|
+
_fitTable(table: HTMLTableElement, cells: HTMLTableCellElement[]): void;
|
|
75
|
+
_ensureFrozen(table: HTMLTableElement): HTMLTableCellElement[];
|
|
76
|
+
_resizeTo(th: HTMLTableCellElement, px: number, remember: boolean): void;
|
|
77
|
+
_remember(th: HTMLTableCellElement): void;
|
|
78
|
+
_reset(th: HTMLTableCellElement | null): void;
|
|
79
|
+
_rtl(): boolean;
|
|
80
|
+
_startDrag(e: PointerEvent): void;
|
|
81
|
+
_key(e: KeyboardEvent): void;
|
|
82
|
+
_click(e: MouseEvent): void;
|
|
83
|
+
_group(table: HTMLTableElement): void;
|
|
84
|
+
_groupRow(doc: Document, key: string): HTMLTableRowElement;
|
|
85
|
+
_showGroup(header: HTMLTableRowElement | null, open: boolean): void;
|
|
86
|
+
_spacer(body: HTMLTableSectionElement, row: HTMLTableRowElement | null): HTMLTableRowElement;
|
|
87
|
+
_virtual(table: HTMLTableElement, recollect: boolean): void;
|
|
88
|
+
_measureRow(table: HTMLTableElement): number;
|
|
89
|
+
}
|
|
90
|
+
export {};
|