@redvars/peacock 4.6.0 → 4.7.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/accordion-item.js +54 -35
- package/dist/accordion-item.js.map +1 -1
- package/dist/accordion.js +9 -9
- package/dist/accordion.js.map +1 -1
- package/dist/agent.js +1937 -0
- package/dist/agent.js.map +1 -0
- package/dist/ai-badge.js +5 -8
- package/dist/ai-badge.js.map +1 -1
- package/dist/ai-summary.js +5 -8
- package/dist/ai-summary.js.map +1 -1
- package/dist/alert.js +6 -9
- package/dist/alert.js.map +1 -1
- package/dist/anchor-nav.js +6 -9
- package/dist/anchor-nav.js.map +1 -1
- package/dist/announce-Cqen_7FM.js +45 -0
- package/dist/announce-Cqen_7FM.js.map +1 -0
- package/dist/app-bar.js +5 -8
- package/dist/app-bar.js.map +1 -1
- package/dist/app-shell.js +6 -9
- package/dist/app-shell.js.map +1 -1
- package/dist/assistant-panel.js +5 -8
- package/dist/assistant-panel.js.map +1 -1
- package/dist/assistant-step.js +4 -7
- package/dist/assistant-step.js.map +1 -1
- package/dist/assistant-steps.js +5 -8
- package/dist/assistant-steps.js.map +1 -1
- package/dist/{attachable-controller-DofeyflD.js → attachable-controller-seKf2eqC.js} +2 -2
- package/dist/{attachable-controller-DofeyflD.js.map → attachable-controller-seKf2eqC.js.map} +1 -1
- package/dist/avatar-group.js +5 -8
- package/dist/avatar-group.js.map +1 -1
- package/dist/avatar.js +6 -9
- package/dist/avatar.js.map +1 -1
- package/dist/badge.js +5 -8
- package/dist/badge.js.map +1 -1
- package/dist/banner.js +6 -9
- package/dist/banner.js.map +1 -1
- package/dist/{base-button-9tGu5RSC.js → base-button-CkV2vtVA.js} +2 -3
- package/dist/base-button-CkV2vtVA.js.map +1 -0
- package/dist/bottom-sheet.js +7 -10
- package/dist/bottom-sheet.js.map +1 -1
- package/dist/breadcrumb-item.js +7 -10
- package/dist/breadcrumb-item.js.map +1 -1
- package/dist/breadcrumb.js +7 -10
- package/dist/breadcrumb.js.map +1 -1
- package/dist/{ButtonConstants-CahP2_NA.js → button-constants-CahP2_NA.js} +1 -1
- package/dist/button-constants-CahP2_NA.js.map +1 -0
- package/dist/button-group.js +16 -17
- package/dist/button-group.js.map +1 -1
- package/dist/button.js +237 -16
- package/dist/button.js.map +1 -1
- package/dist/calendar-column-view.js +7 -10
- package/dist/calendar-column-view.js.map +1 -1
- package/dist/{calendar-header-DVrfThwr.js → calendar-header-CXz48-1c.js} +2 -2
- package/dist/{calendar-header-DVrfThwr.js.map → calendar-header-CXz48-1c.js.map} +1 -1
- package/dist/calendar-month-view.js +7 -10
- package/dist/calendar-month-view.js.map +1 -1
- package/dist/calendar-timeline.js +8 -11
- package/dist/calendar-timeline.js.map +1 -1
- package/dist/calendar.js +7 -10
- package/dist/calendar.js.map +1 -1
- package/dist/{canvas-base-BjiU3Ecl.js → canvas-base-BnbNbzej.js} +15 -15
- package/dist/canvas-base-BnbNbzej.js.map +1 -0
- package/dist/card-content.js +3 -6
- package/dist/card-content.js.map +1 -1
- package/dist/card.js +8 -11
- package/dist/card.js.map +1 -1
- package/dist/carousel.js +7 -10
- package/dist/carousel.js.map +1 -1
- package/dist/{cartesian-chart-iE3cmeGF.js → cartesian-chart-C8qKDXo8.js} +4 -4
- package/dist/{cartesian-chart-iE3cmeGF.js.map → cartesian-chart-C8qKDXo8.js.map} +1 -1
- package/dist/cb-divider.js +5 -8
- package/dist/cb-divider.js.map +1 -1
- package/dist/cb-group.js +9 -12
- package/dist/cb-group.js.map +1 -1
- package/dist/cb-rule.js +6 -6
- package/dist/chart-area.js +9 -12
- package/dist/chart-area.js.map +1 -1
- package/dist/chart-bar.js +9 -12
- package/dist/chart-bar.js.map +1 -1
- package/dist/{chart-base-CDyVDmz7.js → chart-base-BpQMZZsw.js} +6 -6
- package/dist/{chart-base-CDyVDmz7.js.map → chart-base-BpQMZZsw.js.map} +1 -1
- package/dist/chart-doughnut.js +8 -11
- package/dist/chart-doughnut.js.map +1 -1
- package/dist/chart-line.js +9 -12
- package/dist/chart-line.js.map +1 -1
- package/dist/chart-pie.js +8 -11
- package/dist/chart-pie.js.map +1 -1
- package/dist/chat-event.js +4 -7
- package/dist/chat-event.js.map +1 -1
- package/dist/chat-message.js +6 -9
- package/dist/chat-message.js.map +1 -1
- package/dist/chat-thread.js +5 -8
- package/dist/chat-thread.js.map +1 -1
- package/dist/checkbox-group.js +11 -14
- package/dist/checkbox-group.js.map +1 -1
- package/dist/checkbox.js +50 -32
- package/dist/checkbox.js.map +1 -1
- package/dist/chip-set.js +8 -11
- package/dist/chip-set.js.map +1 -1
- package/dist/chip.js +11 -14
- package/dist/chip.js.map +1 -1
- package/dist/circular-progress.js +8 -11
- package/dist/circular-progress.js.map +1 -1
- package/dist/citation.js +5 -8
- package/dist/citation.js.map +1 -1
- package/dist/{class-map-NDIkZErE.js → class-map-DN-g_e4M.js} +2 -2
- package/dist/{class-map-NDIkZErE.js.map → class-map-DN-g_e4M.js.map} +1 -1
- package/dist/clock.js +4 -7
- package/dist/clock.js.map +1 -1
- package/dist/code-editor.js +67 -20
- package/dist/code-editor.js.map +1 -1
- package/dist/code-group.js +5 -8
- package/dist/code-group.js.map +1 -1
- package/dist/code-highlighter.js +7 -10
- package/dist/code-highlighter.js.map +1 -1
- package/dist/color-field.js +13 -13
- package/dist/color-field.js.map +1 -1
- package/dist/color-picker.js +6 -9
- package/dist/color-picker.js.map +1 -1
- package/dist/{coming-soon-BbkKjSbP.js → coming-soon-D3KYDcUT.js} +2 -2
- package/dist/{coming-soon-BbkKjSbP.js.map → coming-soon-D3KYDcUT.js.map} +1 -1
- package/dist/command-palette.js +8 -11
- package/dist/command-palette.js.map +1 -1
- package/dist/comment-composer.js +13 -16
- package/dist/comment-composer.js.map +1 -1
- package/dist/condition-builder.js +10 -13
- package/dist/condition-builder.js.map +1 -1
- package/dist/{cb-group-base-CWctDJvy.js → condition-group-base-1g9O6qDB.js} +31 -34
- package/dist/condition-group-base-1g9O6qDB.js.map +1 -0
- package/dist/{cb-group-base-2Ps2CnBz.js → condition-group-base-NcvOY-Zv.js} +2 -2
- package/dist/condition-group-base-NcvOY-Zv.js.map +1 -0
- package/dist/confirm-dialog.js +7 -10
- package/dist/confirm-dialog.js.map +1 -1
- package/dist/container.js +5 -8
- package/dist/container.js.map +1 -1
- package/dist/copy-button.js +6 -10
- package/dist/copy-button.js.map +1 -1
- package/dist/currency-field.js +11 -12
- package/dist/currency-field.js.map +1 -1
- package/dist/custom-elements-jsdocs.json +1225 -1565
- package/dist/custom-elements.json +99273 -96538
- package/dist/{datasource-DxEA6jHW.js → datasource-C1SmuuOZ.js} +2 -2
- package/dist/{datasource-DxEA6jHW.js.map → datasource-C1SmuuOZ.js.map} +1 -1
- package/dist/date-field.js +14 -15
- package/dist/date-field.js.map +1 -1
- package/dist/{date-DPQOY8Zd.js → date-hLvScHFM.js} +2 -2
- package/dist/{date-DPQOY8Zd.js.map → date-hLvScHFM.js.map} +1 -1
- package/dist/date-picker.js +7 -10
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-field.js +14 -15
- package/dist/date-range-field.js.map +1 -1
- package/dist/datetime-field.js +13 -14
- package/dist/datetime-field.js.map +1 -1
- package/dist/define-element-DwIWgY_Y.js +2364 -0
- package/dist/define-element-DwIWgY_Y.js.map +1 -0
- package/dist/{delegate-Bw2wdPFP.js → delegate-BhEozvyn.js} +2 -2
- package/dist/{delegate-Bw2wdPFP.js.map → delegate-BhEozvyn.js.map} +1 -1
- package/dist/dependency-map.js +9 -12
- package/dist/dependency-map.js.map +1 -1
- package/dist/description-item.js +5 -8
- package/dist/description-item.js.map +1 -1
- package/dist/description-list.js +5 -8
- package/dist/description-list.js.map +1 -1
- package/dist/diagram-controls.js +6 -9
- package/dist/diagram-controls.js.map +1 -1
- package/dist/{diagram-D2aM93kf.js → diagram-hv7hCgzx.js} +9 -12
- package/dist/diagram-hv7hCgzx.js.map +1 -0
- package/dist/diagram-minimap.js +5 -8
- package/dist/diagram-minimap.js.map +1 -1
- package/dist/diagram.js +8 -8
- package/dist/diff-viewer.js +6 -9
- package/dist/diff-viewer.js.map +1 -1
- package/dist/{directive-helpers-Bx3mu42O.js → directive-helpers-DeGn4TbT.js} +2 -2
- package/dist/{directive-helpers-Bx3mu42O.js.map → directive-helpers-DeGn4TbT.js.map} +1 -1
- package/dist/discussion-activity.js +5 -8
- package/dist/discussion-activity.js.map +1 -1
- package/dist/discussion-comment.js +7 -11
- package/dist/discussion-comment.js.map +1 -1
- package/dist/{discussion-time-DqykqvNy.js → discussion-time-Bghw_Adc.js} +2 -2
- package/dist/{discussion-time-DqykqvNy.js.map → discussion-time-Bghw_Adc.js.map} +1 -1
- package/dist/discussion.js +14 -17
- package/dist/discussion.js.map +1 -1
- package/dist/divider.js +6 -9
- package/dist/divider.js.map +1 -1
- package/dist/{document-editor-BS6al7Hq.js → document-editor-CZBlz3ai.js} +12 -15
- package/dist/document-editor-CZBlz3ai.js.map +1 -0
- package/dist/document-editor.js +8 -8
- package/dist/draft-card.js +5 -8
- package/dist/draft-card.js.map +1 -1
- package/dist/dropdown-button.js +56 -30
- package/dist/dropdown-button.js.map +1 -1
- package/dist/elevation.js +3 -6
- package/dist/elevation.js.map +1 -1
- package/dist/{empty-MArzZMl4.js → empty-DEhaDrWj.js} +2 -2
- package/dist/{empty-MArzZMl4.js.map → empty-DEhaDrWj.js.map} +1 -1
- package/dist/{empty-cart-RTR3HBYT.js → empty-cart-BHaNZ2lY.js} +2 -2
- package/dist/{empty-cart-RTR3HBYT.js.map → empty-cart-BHaNZ2lY.js.map} +1 -1
- package/dist/{empty-inbox-TkdPARS5.js → empty-inbox-CJJaz9E6.js} +2 -2
- package/dist/{empty-inbox-TkdPARS5.js.map → empty-inbox-CJJaz9E6.js.map} +1 -1
- package/dist/erd.js +9 -12
- package/dist/erd.js.map +1 -1
- package/dist/{error-MDLh6Iqt.js → error-BemWzRq8.js} +2 -2
- package/dist/{error-MDLh6Iqt.js.map → error-BemWzRq8.js.map} +1 -1
- package/dist/{event-manager-DYfeN3VE.js → event-manager-BRD5ndh1.js} +2 -2
- package/dist/{event-manager-DYfeN3VE.js.map → event-manager-BRD5ndh1.js.map} +1 -1
- package/dist/fab.js +12 -15
- package/dist/fab.js.map +1 -1
- package/dist/{BaseField-DOCmylob.js → field-base-D9lh_aNl.js} +106 -21
- package/dist/field-base-D9lh_aNl.js.map +1 -0
- package/dist/field.js +6 -9
- package/dist/field.js.map +1 -1
- package/dist/fieldset.js +5 -8
- package/dist/fieldset.js.map +1 -1
- package/dist/file-upload.js +10 -13
- package/dist/file-upload.js.map +1 -1
- package/dist/filter-bar.js +9 -12
- package/dist/filter-bar.js.map +1 -1
- package/dist/flow.js +10 -13
- package/dist/flow.js.map +1 -1
- package/dist/focus-ring.js +5 -8
- package/dist/focus-ring.js.map +1 -1
- package/dist/{form-associated-BHbg72PG.js → form-associated-CZ4StgI6.js} +2 -3
- package/dist/{form-associated-BHbg72PG.js.map → form-associated-CZ4StgI6.js.map} +1 -1
- package/dist/{form-submitter-BIFqZ0wq.js → form-submitter-D16XUqJu.js} +3 -3
- package/dist/{form-submitter-BIFqZ0wq.js.map → form-submitter-D16XUqJu.js.map} +1 -1
- package/dist/form.js +7 -10
- package/dist/form.js.map +1 -1
- package/dist/{generative-view-DsSOPf26.js → generative-view-DYBvSwd_.js} +5 -8
- package/dist/generative-view-DYBvSwd_.js.map +1 -0
- package/dist/generative-view.js +3 -3
- package/dist/grid.js +4 -7
- package/dist/grid.js.map +1 -1
- package/dist/{highlight-Be0wu7kh.js → highlight-Do-Syp3T.js} +6 -9
- package/dist/highlight-Do-Syp3T.js.map +1 -0
- package/dist/highlight.js +4 -4
- package/dist/hover-card.js +4 -7
- package/dist/hover-card.js.map +1 -1
- package/dist/html-editor.js +13 -16
- package/dist/html-editor.js.map +1 -1
- package/dist/{hyperlink-DycWPKwU.js → hyperlink-DFN9NWCO.js} +2 -3
- package/dist/{hyperlink-DycWPKwU.js.map → hyperlink-DFN9NWCO.js.map} +1 -1
- package/dist/icon-button.js +12 -15
- package/dist/icon-button.js.map +1 -1
- package/dist/icon.js +8 -11
- package/dist/icon.js.map +1 -1
- package/dist/{if-defined-D9DEJR_6.js → if-defined-2i6tzDo8.js} +2 -2
- package/dist/{if-defined-D9DEJR_6.js.map → if-defined-2i6tzDo8.js.map} +1 -1
- package/dist/{illustration-DQ-_sz1l.js → illustration-C5AFfmfu.js} +24 -27
- package/dist/illustration-C5AFfmfu.js.map +1 -0
- package/dist/illustration.js +4 -4
- package/dist/image.js +5 -8
- package/dist/image.js.map +1 -1
- package/dist/{index-V2ozemrR.js → index-Bag4vtx-.js} +5 -5
- package/dist/{index-V2ozemrR.js.map → index-Bag4vtx-.js.map} +1 -1
- package/dist/{index-BnzqYRhq.js → index-CTEt3LtO.js} +6 -6
- package/dist/{index-BnzqYRhq.js.map → index-CTEt3LtO.js.map} +1 -1
- package/dist/{index-JdgBct78.js → index-DK3fREuj.js} +6 -6
- package/dist/{index-JdgBct78.js.map → index-DK3fREuj.js.map} +1 -1
- package/dist/index.js +133 -131
- package/dist/index.js.map +1 -1
- package/dist/{indicator-navigation-item-BsQE3kUr.js → indicator-navigation-item-BG0TrdDE.js} +6 -5
- package/dist/indicator-navigation-item-BG0TrdDE.js.map +1 -0
- package/dist/inline-edit.js +6 -9
- package/dist/inline-edit.js.map +1 -1
- package/dist/{BaseInput-Cv03GZLu.js → input-base-u60DF-pm.js} +21 -14
- package/dist/input-base-u60DF-pm.js.map +1 -0
- package/dist/input.js +609 -32
- package/dist/input.js.map +1 -1
- package/dist/item.js +5 -8
- package/dist/item.js.map +1 -1
- package/dist/json-viewer.js +8 -12
- package/dist/json-viewer.js.map +1 -1
- package/dist/kanban.js +7 -10
- package/dist/kanban.js.map +1 -1
- package/dist/kbd.js +4 -7
- package/dist/kbd.js.map +1 -1
- package/dist/linear-progress.js +8 -11
- package/dist/linear-progress.js.map +1 -1
- package/dist/link-button.js +9 -12
- package/dist/link-button.js.map +1 -1
- package/dist/link.js +6 -9
- package/dist/link.js.map +1 -1
- package/dist/list-item.js +9 -12
- package/dist/list-item.js.map +1 -1
- package/dist/list.js +10 -14
- package/dist/list.js.map +1 -1
- package/dist/listbox-option.js +5 -8
- package/dist/listbox-option.js.map +1 -1
- package/dist/listbox.js +8 -11
- package/dist/listbox.js.map +1 -1
- package/dist/{IndividualComponent-BK7XZjE2.js → lit-element-CKa37m3w.js} +2 -55
- package/dist/lit-element-CKa37m3w.js.map +1 -0
- package/dist/{live-D_5OfuGD.js → live-gbwOCSod.js} +3 -3
- package/dist/{live-D_5OfuGD.js.map → live-gbwOCSod.js.map} +1 -1
- package/dist/loader-full.js +87 -84
- package/dist/loader-full.js.map +1 -1
- package/dist/loader.js +83 -81
- package/dist/loader.js.map +1 -1
- package/dist/{maintenance-BZw7mQ0A.js → maintenance-tErBUSEw.js} +2 -2
- package/dist/{maintenance-BZw7mQ0A.js.map → maintenance-tErBUSEw.js.map} +1 -1
- package/dist/markdown-editor.js +13 -16
- package/dist/markdown-editor.js.map +1 -1
- package/dist/markdown.js +4 -7
- package/dist/markdown.js.map +1 -1
- package/dist/mention-input.js +13 -13
- package/dist/mention-input.js.map +1 -1
- package/dist/menu-item.js +44 -27
- package/dist/menu-item.js.map +1 -1
- package/dist/menu.js +13 -14
- package/dist/menu.js.map +1 -1
- package/dist/{modal-B78gUfEO.js → modal-Dds0rXAG.js} +2 -2
- package/dist/{modal-B78gUfEO.js.map → modal-Dds0rXAG.js.map} +1 -1
- package/dist/modal.js +56 -39
- package/dist/modal.js.map +1 -1
- package/dist/{NativeHyperlinkMixin-WdY0fM-H.js → native-hyperlink-mixin-DClKAwRB.js} +2 -3
- package/dist/native-hyperlink-mixin-DClKAwRB.js.map +1 -0
- package/dist/navigation-bar-item.js +8 -11
- package/dist/navigation-bar-item.js.map +1 -1
- package/dist/navigation-bar.js +8 -11
- package/dist/navigation-bar.js.map +1 -1
- package/dist/navigation-drawer-group.js +6 -9
- package/dist/navigation-drawer-group.js.map +1 -1
- package/dist/navigation-drawer-item.js +7 -10
- package/dist/navigation-drawer-item.js.map +1 -1
- package/dist/navigation-drawer.js +7 -10
- package/dist/navigation-drawer.js.map +1 -1
- package/dist/{navigation-item-base-5ljwtLG_.js → navigation-item-base-HiLyp0Jy.js} +6 -6
- package/dist/navigation-item-base-HiLyp0Jy.js.map +1 -0
- package/dist/navigation-rail-item.js +8 -11
- package/dist/navigation-rail-item.js.map +1 -1
- package/dist/navigation-rail.js +8 -11
- package/dist/navigation-rail.js.map +1 -1
- package/dist/{no-access-DOmzxO0C.js → no-access-D3L12uhZ.js} +2 -2
- package/dist/{no-access-DOmzxO0C.js.map → no-access-D3L12uhZ.js.map} +1 -1
- package/dist/{no-files-_DUjcOnS.js → no-files--1GlOwIi.js} +2 -2
- package/dist/{no-files-_DUjcOnS.js.map → no-files--1GlOwIi.js.map} +1 -1
- package/dist/{no-messages-W3p58prD.js → no-messages-RHcmrW_n.js} +2 -2
- package/dist/{no-messages-W3p58prD.js.map → no-messages-RHcmrW_n.js.map} +1 -1
- package/dist/{no-notifications-Egym20FL.js → no-notifications-3gareJzA.js} +2 -2
- package/dist/{no-notifications-Egym20FL.js.map → no-notifications-3gareJzA.js.map} +1 -1
- package/dist/{no-results-Czha8DJZ.js → no-results-RWt23viO.js} +2 -2
- package/dist/{no-results-Czha8DJZ.js.map → no-results-RWt23viO.js.map} +1 -1
- package/dist/{no-team-DdNiPdaJ.js → no-team-25HWP4Fw.js} +2 -2
- package/dist/{no-team-DdNiPdaJ.js.map → no-team-25HWP4Fw.js.map} +1 -1
- package/dist/{not-found-DYazH-nz.js → not-found-BUGJAd3z.js} +2 -2
- package/dist/{not-found-DYazH-nz.js.map → not-found-BUGJAd3z.js.map} +1 -1
- package/dist/notification-center.js +9 -12
- package/dist/notification-center.js.map +1 -1
- package/dist/notification-manager.js +8 -11
- package/dist/notification-manager.js.map +1 -1
- package/dist/number-counter.js +5 -8
- package/dist/number-counter.js.map +1 -1
- package/dist/number-field.js +25 -17
- package/dist/number-field.js.map +1 -1
- package/dist/{offline-C3W_TN1c.js → offline-BUqjpgON.js} +2 -2
- package/dist/{offline-C3W_TN1c.js.map → offline-BUqjpgON.js.map} +1 -1
- package/dist/option.js +11 -11
- package/dist/option.js.map +1 -1
- package/dist/page-header.js +6 -9
- package/dist/page-header.js.map +1 -1
- package/dist/pagination.js +5 -8
- package/dist/pagination.js.map +1 -1
- package/dist/panel.js +5 -8
- package/dist/panel.js.map +1 -1
- package/dist/password-field.js +11 -12
- package/dist/password-field.js.map +1 -1
- package/dist/password-rules.js +6 -9
- package/dist/password-rules.js.map +1 -1
- package/dist/phone-field.js +12 -14
- package/dist/phone-field.js.map +1 -1
- package/dist/{picker-field-BiM3iXAQ.js → picker-field-base-C33dJ4iZ.js} +17 -17
- package/dist/picker-field-base-C33dJ4iZ.js.map +1 -0
- package/dist/pin-input.js +14 -15
- package/dist/pin-input.js.map +1 -1
- package/dist/platform-DHfE4Fvo.js +954 -0
- package/dist/platform-DHfE4Fvo.js.map +1 -0
- package/dist/popover-content.js +5 -8
- package/dist/popover-content.js.map +1 -1
- package/dist/popover.js +4 -7
- package/dist/popover.js.map +1 -1
- package/dist/presence-indicator.js +6 -9
- package/dist/presence-indicator.js.map +1 -1
- package/dist/{base-progress-CqsyiVOV.js → progress-base-BhJK__VP.js} +12 -12
- package/dist/{base-progress-CqsyiVOV.js.map → progress-base-BhJK__VP.js.map} +1 -1
- package/dist/prompt-input.js +13 -16
- package/dist/prompt-input.js.map +1 -1
- package/dist/property-Dn3pvFDo.js +52 -0
- package/dist/property-Dn3pvFDo.js.map +1 -0
- package/dist/radio-group.js +7 -10
- package/dist/radio-group.js.map +1 -1
- package/dist/radio.js +49 -31
- package/dist/radio.js.map +1 -1
- package/dist/{range-utils-vgG1SJ2o.js → range-utils-Cw7ZRoWX.js} +2 -2
- package/dist/range-utils-Cw7ZRoWX.js.map +1 -0
- package/dist/rating.js +11 -14
- package/dist/rating.js.map +1 -1
- package/dist/redvars-loader.js +5 -8
- package/dist/redvars-loader.js.map +1 -1
- package/dist/relative-time.js +4 -7
- package/dist/relative-time.js.map +1 -1
- package/dist/{repeat-D_ERDRYT.js → repeat-D6FogcKA.js} +3 -3
- package/dist/{repeat-D_ERDRYT.js.map → repeat-D6FogcKA.js.map} +1 -1
- package/dist/resizable-panels.js +6 -9
- package/dist/resizable-panels.js.map +1 -1
- package/dist/{rich-text-input-BCZ46UF8.js → rich-text-input-base-SrsPvc-j.js} +33 -33
- package/dist/rich-text-input-base-SrsPvc-j.js.map +1 -0
- package/dist/ripple.js +7 -10
- package/dist/ripple.js.map +1 -1
- package/dist/{sanitize-svg-zWrzQaZj.js → sanitize-svg-CULgPfeE.js} +2 -2
- package/dist/{sanitize-svg-zWrzQaZj.js.map → sanitize-svg-CULgPfeE.js.map} +1 -1
- package/dist/{schema-D0PCeIEA.js → schema-poFmQ9Kg.js} +2 -2
- package/dist/{schema-D0PCeIEA.js.map → schema-poFmQ9Kg.js.map} +1 -1
- package/dist/scroll-area.js +6 -9
- package/dist/scroll-area.js.map +1 -1
- package/dist/search.js +12 -15
- package/dist/search.js.map +1 -1
- package/dist/segmented-button-group.js +7 -10
- package/dist/segmented-button-group.js.map +1 -1
- package/dist/segmented-button.js +6 -9
- package/dist/segmented-button.js.map +1 -1
- package/dist/select.js +103 -19
- package/dist/select.js.map +1 -1
- package/dist/{server-error-CaExaWmH.js → server-error-C7x8CCtT.js} +2 -2
- package/dist/{server-error-CaExaWmH.js.map → server-error-C7x8CCtT.js.map} +1 -1
- package/dist/shipped-icons.js +1 -1
- package/dist/side-sheet.js +5 -8
- package/dist/side-sheet.js.map +1 -1
- package/dist/signature-pad.js +10 -13
- package/dist/signature-pad.js.map +1 -1
- package/dist/site-footer-group.js +4 -7
- package/dist/site-footer-group.js.map +1 -1
- package/dist/site-footer.js +6 -9
- package/dist/site-footer.js.map +1 -1
- package/dist/site-header.js +7 -10
- package/dist/site-header.js.map +1 -1
- package/dist/site-nav-group.js +4 -7
- package/dist/site-nav-group.js.map +1 -1
- package/dist/site-nav-link.js +7 -10
- package/dist/site-nav-link.js.map +1 -1
- package/dist/site-nav-menu.js +6 -9
- package/dist/site-nav-menu.js.map +1 -1
- package/dist/skeleton.js +4 -7
- package/dist/skeleton.js.map +1 -1
- package/dist/{slash-controller-DAsDquPA.js → slash-controller-DwL0nkqv.js} +4 -4
- package/dist/{slash-controller-DAsDquPA.js.map → slash-controller-DwL0nkqv.js.map} +1 -1
- package/dist/slider.js +11 -14
- package/dist/slider.js.map +1 -1
- package/dist/snackbar.js +10 -14
- package/dist/snackbar.js.map +1 -1
- package/dist/{sparkle-BmtM0vbq.js → sparkle-DbxCXWsC.js} +2 -2
- package/dist/{sparkle-BmtM0vbq.js.map → sparkle-DbxCXWsC.js.map} +1 -1
- package/dist/sparkline.js +6 -9
- package/dist/sparkline.js.map +1 -1
- package/dist/split-button.js +41 -25
- package/dist/split-button.js.map +1 -1
- package/dist/src/__internal/agent/choice-surface.d.ts +23 -0
- package/dist/src/__internal/agent/toggle-surface.d.ts +34 -0
- package/dist/src/__internal/agent/value-surface.d.ts +13 -0
- package/dist/src/__internal/ai/suggestion-controller.d.ts +2 -0
- package/dist/src/__internal/aria/aria.d.ts +1 -1
- package/dist/src/__internal/diagram/canvas-base.d.ts +1 -1
- package/dist/src/{input/BaseField.d.ts → __internal/field-base.d.ts} +22 -3
- package/dist/src/__internal/indicator-navigation-item.d.ts +1 -1
- package/dist/src/{input/BaseInput.d.ts → __internal/input-base.d.ts} +10 -5
- package/dist/src/__internal/mixins/field.d.ts +2 -2
- package/dist/src/__internal/mixins/{NativeHyperlinkMixin.d.ts → native-hyperlink-mixin.d.ts} +1 -1
- package/dist/src/__internal/navigation-item-base.d.ts +1 -1
- package/dist/src/__internal/{picker-field.d.ts → picker-field-base.d.ts} +3 -3
- package/dist/src/__internal/rich-text/{rich-text-input.d.ts → rich-text-input-base.d.ts} +2 -2
- package/dist/src/__internal/toggle-base.d.ts +9 -2
- package/dist/src/accordion/accordion-item.d.ts +5 -0
- package/dist/src/agent.d.ts +8 -0
- package/dist/src/button/base-button/base-button.d.ts +1 -1
- package/dist/src/button/button/button.d.ts +10 -51
- package/dist/src/button/icon-button/icon-button.d.ts +1 -1
- package/dist/src/button/index.d.ts +1 -1
- package/dist/src/button/link-button/link-button.d.ts +1 -1
- package/dist/src/card/card.d.ts +1 -1
- package/dist/src/checkbox/checkbox.d.ts +3 -0
- package/dist/src/checkbox-group/checkbox-group.d.ts +2 -2
- package/dist/src/chip/chip-set/chip-set.d.ts +2 -2
- package/dist/src/clock/clock.d.ts +1 -1
- package/dist/src/code-editor/code-editor.d.ts +5 -5
- package/dist/src/color-field/color-field.d.ts +3 -3
- package/dist/src/comment-composer/comment-composer.d.ts +2 -2
- package/dist/src/condition-builder/cb-group.d.ts +2 -2
- package/dist/src/condition-builder/cb-types.d.ts +3 -3
- package/dist/src/condition-builder/condition-builder.d.ts +2 -2
- package/dist/src/condition-builder/{cb-group-base.d.ts → condition-group-base.d.ts} +1 -1
- package/dist/src/copy-button/copy-button.d.ts +1 -1
- package/dist/src/currency-field/currency-field.d.ts +3 -3
- package/dist/src/date-field/date-field.d.ts +2 -2
- package/dist/src/date-field/range-utils.d.ts +1 -1
- package/dist/src/date-range-field/date-range-field.d.ts +2 -2
- package/dist/src/datetime-field/datetime-field.d.ts +2 -2
- package/dist/src/dependency-map/dependency-map.d.ts +2 -2
- package/dist/src/diagram/diagram.d.ts +2 -2
- package/dist/src/dropdown-button/dropdown-button.d.ts +5 -0
- package/dist/src/erd/erd.d.ts +2 -2
- package/dist/src/file-upload/file-upload.d.ts +2 -2
- package/dist/src/html-editor/html-editor.d.ts +2 -2
- package/dist/src/index.d.ts +208 -156
- package/dist/src/input/input.d.ts +10 -3
- package/dist/src/link/link.d.ts +1 -1
- package/dist/src/listbox/listbox.d.ts +2 -2
- package/dist/src/markdown-editor/markdown-editor.d.ts +2 -2
- package/dist/src/mention-input/mention-input.d.ts +3 -3
- package/dist/src/menu/menu-item/menu-item.d.ts +3 -0
- package/dist/src/modal/modal.d.ts +3 -0
- package/dist/src/number-field/number-field.d.ts +5 -3
- package/dist/src/password-field/password-field.d.ts +3 -3
- package/dist/src/phone-field/phone-field.d.ts +3 -3
- package/dist/src/pin-input/pin-input.d.ts +3 -3
- package/dist/src/progress/circular-progress/circular-progress.d.ts +2 -2
- package/dist/src/progress/linear-progress/linear-progress.d.ts +2 -2
- package/dist/src/progress/{base-progress.d.ts → progress-base.d.ts} +2 -2
- package/dist/src/prompt-input/prompt-input.d.ts +2 -2
- package/dist/src/radio/radio.d.ts +4 -1
- package/dist/src/rating/rating.d.ts +2 -2
- package/dist/src/search/search.d.ts +2 -2
- package/dist/src/select/select.d.ts +9 -2
- package/dist/src/signature-pad/signature-pad.d.ts +2 -2
- package/dist/src/slider/slider.d.ts +2 -2
- package/dist/src/split-button/split-button.d.ts +3 -0
- package/dist/src/stepper/step.d.ts +6 -0
- package/dist/src/switch/switch.d.ts +3 -0
- package/dist/src/tabs/tab.d.ts +6 -0
- package/dist/src/textarea/textarea.d.ts +3 -3
- package/dist/src/time-field/time-field.d.ts +2 -2
- package/dist/src/transfer-list/transfer-list.d.ts +2 -2
- package/dist/src/tree-chart/tree-chart.d.ts +2 -2
- package/dist/src/url-field/url-field.d.ts +3 -3
- package/dist/src/workflow/workflow.d.ts +2 -2
- package/dist/stack.js +4 -7
- package/dist/stack.js.map +1 -1
- package/dist/stat.js +5 -8
- package/dist/stat.js.map +1 -1
- package/dist/{state-BCeDVCI9.js → state-Bz6ycyYM.js} +2 -2
- package/dist/{state-BCeDVCI9.js.map → state-Bz6ycyYM.js.map} +1 -1
- package/dist/status-indicator.js +4 -7
- package/dist/status-indicator.js.map +1 -1
- package/dist/step.js +38 -19
- package/dist/step.js.map +1 -1
- package/dist/stepper.js +9 -9
- package/dist/stepper.js.map +1 -1
- package/dist/{style-map-CHOg6N_R.js → style-map-D1ZICebN.js} +2 -2
- package/dist/{style-map-CHOg6N_R.js.map → style-map-D1ZICebN.js.map} +1 -1
- package/dist/sub-menu.js +12 -12
- package/dist/sub-menu.js.map +1 -1
- package/dist/{success-CTqRKz2U.js → success-Dqol3Xwz.js} +2 -2
- package/dist/{success-CTqRKz2U.js.map → success-Dqol3Xwz.js.map} +1 -1
- package/dist/{suggestion-controller-7YRQqkaI.js → suggestion-controller-DhXsD9gH.js} +6 -2
- package/dist/suggestion-controller-DhXsD9gH.js.map +1 -0
- package/dist/svg.js +8 -11
- package/dist/svg.js.map +1 -1
- package/dist/switch.js +42 -24
- package/dist/switch.js.map +1 -1
- package/dist/tab-group.js +9 -9
- package/dist/tab-group.js.map +1 -1
- package/dist/tab-panel.js +4 -7
- package/dist/tab-panel.js.map +1 -1
- package/dist/tab.js +44 -21
- package/dist/tab.js.map +1 -1
- package/dist/table.js +10 -13
- package/dist/table.js.map +1 -1
- package/dist/tabs.js +13 -14
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +5 -8
- package/dist/tag.js.map +1 -1
- package/dist/test/ui-sdk-agent.test.d.ts +1 -0
- package/dist/textarea.js +12 -13
- package/dist/textarea.js.map +1 -1
- package/dist/time-field.js +13 -14
- package/dist/time-field.js.map +1 -1
- package/dist/time-picker.js +7 -10
- package/dist/time-picker.js.map +1 -1
- package/dist/timeline-item.js +4 -7
- package/dist/timeline-item.js.map +1 -1
- package/dist/timeline.js +4 -7
- package/dist/timeline.js.map +1 -1
- package/dist/{toggle-base-BtjRAZ5z.js → toggle-base-DP3PSXbf.js} +22 -10
- package/dist/toggle-base-DP3PSXbf.js.map +1 -0
- package/dist/toggle-surface-CkMdGtyR.js +164 -0
- package/dist/toggle-surface-CkMdGtyR.js.map +1 -0
- package/dist/toolbar.js +5 -8
- package/dist/toolbar.js.map +1 -1
- package/dist/tooltip.js +4 -7
- package/dist/tooltip.js.map +1 -1
- package/dist/tour.js +6 -9
- package/dist/tour.js.map +1 -1
- package/dist/transfer-list.js +13 -16
- package/dist/transfer-list.js.map +1 -1
- package/dist/tree-chart.js +9 -12
- package/dist/tree-chart.js.map +1 -1
- package/dist/tree-item.js +5 -8
- package/dist/tree-item.js.map +1 -1
- package/dist/tree.js +5 -8
- package/dist/tree.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typing-indicator.js +4 -7
- package/dist/typing-indicator.js.map +1 -1
- package/dist/{unsafe-html-Cy_JqoPT.js → unsafe-html-DPx6fCQn.js} +2 -2
- package/dist/{unsafe-html-Cy_JqoPT.js.map → unsafe-html-DPx6fCQn.js.map} +1 -1
- package/dist/{upload-BvrrKboG.js → upload-AgGMlvXZ.js} +2 -2
- package/dist/{upload-BvrrKboG.js.map → upload-AgGMlvXZ.js.map} +1 -1
- package/dist/url-field.js +11 -12
- package/dist/url-field.js.map +1 -1
- package/dist/user-menu.js +5 -8
- package/dist/user-menu.js.map +1 -1
- package/dist/{video-DPjOBk6I.js → video-DgtGGvrk.js} +7 -10
- package/dist/video-DgtGGvrk.js.map +1 -0
- package/dist/video.js +5 -5
- package/dist/virtual-list.js +7 -10
- package/dist/virtual-list.js.map +1 -1
- package/dist/{welcome-CFqBHGa5.js → welcome-Ba4SYcRr.js} +2 -2
- package/dist/{welcome-CFqBHGa5.js.map → welcome-Ba4SYcRr.js.map} +1 -1
- package/dist/workflow-timeline.js +5 -8
- package/dist/workflow-timeline.js.map +1 -1
- package/dist/workflow.js +8 -12
- package/dist/workflow.js.map +1 -1
- package/dist/workspace-switcher.js +6 -9
- package/dist/workspace-switcher.js.map +1 -1
- package/package.json +11 -5
- package/src/__internal/agent/choice-surface.ts +88 -0
- package/src/__internal/agent/toggle-surface.ts +233 -0
- package/src/__internal/agent/value-surface.ts +76 -0
- package/src/__internal/ai/suggestion-controller.ts +5 -0
- package/src/__internal/diagram/canvas-base.ts +1 -1
- package/src/{input/BaseField.ts → __internal/field-base.ts} +51 -3
- package/src/__internal/indicator-navigation-item.ts +1 -1
- package/src/{input/BaseInput.ts → __internal/input-base.ts} +9 -1
- package/src/__internal/mixins/field.ts +2 -2
- package/src/__internal/mixins/{NativeHyperlinkMixin.ts → native-hyperlink-mixin.ts} +1 -1
- package/src/__internal/navigation-item-base.ts +1 -1
- package/src/__internal/{picker-field.scss → picker-field-base.scss} +2 -2
- package/src/__internal/{picker-field.ts → picker-field-base.ts} +3 -3
- package/src/__internal/rich-text/editor-chrome.scss +1 -1
- package/src/__internal/rich-text/{rich-text-input.ts → rich-text-input-base.ts} +3 -3
- package/src/__internal/toggle-base.ts +16 -5
- package/src/accordion/accordion-item.ts +53 -28
- package/src/accordion/accordion.ts +0 -2
- package/src/agent.ts +17 -0
- package/src/ai-badge/ai-badge.ts +0 -2
- package/src/ai-summary/ai-summary.ts +0 -2
- package/src/alert/alert.ts +0 -2
- package/src/anchor-nav/anchor-nav.ts +0 -2
- package/src/app-bar/app-bar.ts +0 -2
- package/src/app-shell/app-shell.ts +0 -2
- package/src/assistant-panel/assistant-panel.ts +0 -2
- package/src/assistant-steps/assistant-step.ts +0 -2
- package/src/assistant-steps/assistant-steps.ts +0 -2
- package/src/avatar/avatar.ts +0 -2
- package/src/avatar-group/avatar-group.ts +0 -2
- package/src/badge/badge.ts +0 -2
- package/src/banner/banner.ts +0 -2
- package/src/bottom-sheet/bottom-sheet.ts +0 -2
- package/src/breadcrumb/breadcrumb/breadcrumb.ts +0 -2
- package/src/breadcrumb/breadcrumb-item/breadcrumb-item.ts +0 -2
- package/src/button/base-button/base-button.ts +1 -1
- package/src/button/button/button.scss +5 -0
- package/src/button/button/button.ts +34 -8
- package/src/button/button-group/button-group.ts +0 -2
- package/src/button/fab/fab.ts +1 -3
- package/src/button/icon-button/icon-button.ts +2 -4
- package/src/button/index.ts +1 -1
- package/src/button/link-button/link-button.ts +2 -4
- package/src/calendar/calendar-column-view.ts +0 -2
- package/src/calendar/calendar-month-view.ts +0 -2
- package/src/calendar/calendar.ts +0 -2
- package/src/calendar-timeline/calendar-timeline.ts +0 -2
- package/src/card/card-content.ts +0 -2
- package/src/card/card.ts +1 -3
- package/src/carousel/carousel.ts +0 -2
- package/src/chart-area/chart-area.ts +0 -2
- package/src/chart-bar/chart-bar.ts +0 -2
- package/src/chart-doughnut/chart-doughnut.ts +0 -2
- package/src/chart-line/chart-line.ts +0 -2
- package/src/chart-pie/chart-pie.ts +0 -2
- package/src/chat-message/chat-message.ts +0 -2
- package/src/chat-thread/chat-event.ts +0 -2
- package/src/chat-thread/chat-thread.ts +0 -2
- package/src/checkbox/checkbox.ts +46 -28
- package/src/checkbox-group/checkbox-group.ts +2 -4
- package/src/chip/chip/chip.ts +1 -3
- package/src/chip/chip-set/chip-set.ts +2 -4
- package/src/chip/tag/tag.ts +0 -2
- package/src/citation/citation.ts +0 -2
- package/src/clock/clock.ts +1 -3
- package/src/code-editor/code-editor.scss +70 -1
- package/src/code-editor/code-editor.ts +15 -9
- package/src/code-highlighter/code-group.ts +0 -2
- package/src/code-highlighter/code-highlighter.ts +0 -2
- package/src/color-field/color-field.ts +4 -5
- package/src/color-picker/color-picker.ts +0 -2
- package/src/command-palette/command-palette.ts +0 -2
- package/src/comment-composer/comment-composer.ts +3 -5
- package/src/components.manifest.json +1406 -0
- package/src/condition-builder/cb-divider.ts +0 -2
- package/src/condition-builder/cb-group.ts +3 -5
- package/src/condition-builder/cb-rule.ts +10 -11
- package/src/condition-builder/cb-types.ts +3 -3
- package/src/condition-builder/condition-builder.ts +3 -5
- package/src/condition-builder/{cb-group-base.ts → condition-group-base.ts} +7 -7
- package/src/confirm-dialog/confirm-dialog.ts +1 -3
- package/src/container/container.ts +0 -2
- package/src/copy-button/copy-button.ts +1 -3
- package/src/currency-field/currency-field.ts +3 -5
- package/src/date-field/date-field.scss +1 -1
- package/src/date-field/date-field.ts +4 -4
- package/src/date-field/range-utils.ts +1 -1
- package/src/date-picker/date-picker.ts +0 -2
- package/src/date-range-field/date-range-field.scss +1 -1
- package/src/date-range-field/date-range-field.ts +4 -4
- package/src/datetime-field/datetime-field.scss +1 -1
- package/src/datetime-field/datetime-field.ts +4 -4
- package/src/dependency-map/dependency-map.ts +2 -4
- package/src/description-list/description-item.ts +0 -2
- package/src/description-list/description-list.ts +0 -2
- package/src/diagram/diagram.ts +2 -4
- package/src/diagram/flow.ts +0 -2
- package/src/diagram-controls/diagram-controls.ts +0 -2
- package/src/diagram-minimap/diagram-minimap.ts +0 -2
- package/src/diff-viewer/diff-viewer.ts +0 -2
- package/src/discussion/discussion-activity.ts +0 -2
- package/src/discussion/discussion-comment.ts +0 -2
- package/src/discussion/discussion.ts +0 -2
- package/src/divider/divider.ts +0 -2
- package/src/document-editor/document-editor.ts +0 -2
- package/src/draft-card/draft-card.ts +0 -2
- package/src/dropdown-button/dropdown-button.ts +49 -23
- package/src/elevation/elevation.ts +0 -2
- package/src/erd/erd.ts +2 -4
- package/src/field/field.ts +0 -2
- package/src/fieldset/fieldset.ts +0 -2
- package/src/file-upload/file-upload.ts +3 -5
- package/src/filter-bar/filter-bar.ts +0 -2
- package/src/focus-ring/focus-ring.ts +0 -2
- package/src/form/form.ts +0 -2
- package/src/generative-view/generative-view.ts +0 -2
- package/src/grid/grid.ts +0 -2
- package/src/highlight/highlight.ts +0 -2
- package/src/hover-card/hover-card.ts +0 -2
- package/src/html-editor/html-editor.ts +3 -5
- package/src/icon/icon.ts +0 -2
- package/src/illustration/illustration.ts +0 -2
- package/src/image/image.ts +0 -2
- package/src/index.ts +287 -199
- package/src/inline-edit/inline-edit.ts +0 -2
- package/src/input/input.scss +8 -0
- package/src/input/input.ts +36 -25
- package/src/item/item.ts +0 -2
- package/src/json-viewer/json-viewer.ts +0 -2
- package/src/kanban/kanban.ts +0 -2
- package/src/kbd/kbd.ts +0 -2
- package/src/link/link.ts +1 -3
- package/src/list/list-item.ts +0 -2
- package/src/list/list.ts +0 -2
- package/src/listbox/listbox-option.ts +0 -2
- package/src/listbox/listbox.ts +2 -4
- package/src/loader.ts +47 -49
- package/src/markdown/markdown.ts +0 -2
- package/src/markdown-editor/markdown-editor.ts +3 -5
- package/src/mention-input/mention-input.ts +4 -5
- package/src/menu/menu/menu.ts +0 -2
- package/src/menu/menu-item/menu-item.ts +40 -22
- package/src/menu/sub-menu/sub-menu.ts +0 -2
- package/src/modal/modal.ts +57 -41
- package/src/navigation-bar/navigation-bar-item.ts +0 -2
- package/src/navigation-bar/navigation-bar.ts +0 -2
- package/src/navigation-drawer/navigation-drawer-group.ts +0 -2
- package/src/navigation-drawer/navigation-drawer-item.ts +0 -2
- package/src/navigation-drawer/navigation-drawer.ts +0 -2
- package/src/navigation-rail/navigation-rail-item.ts +0 -2
- package/src/navigation-rail/navigation-rail.ts +0 -2
- package/src/notification-center/notification-center.ts +0 -2
- package/src/notification-manager/notification-manager.ts +0 -2
- package/src/number-counter/number-counter.ts +0 -2
- package/src/number-field/number-field.ts +12 -5
- package/src/page-header/page-header.ts +0 -2
- package/src/pagination/pagination.ts +0 -2
- package/src/password-field/password-field.ts +3 -5
- package/src/password-rules/password-rules.ts +0 -2
- package/src/phone-field/phone-field.ts +3 -5
- package/src/pin-input/pin-input.ts +4 -6
- package/src/popover/popover-content.ts +0 -2
- package/src/popover/popover.ts +0 -2
- package/src/presence-indicator/presence-indicator.ts +0 -2
- package/src/progress/circular-progress/circular-progress.ts +2 -4
- package/src/progress/linear-progress/linear-progress.ts +2 -4
- package/src/progress/{base-progress.ts → progress-base.ts} +1 -1
- package/src/prompt-input/prompt-input.ts +3 -5
- package/src/radio/radio-group.ts +0 -2
- package/src/radio/radio.ts +36 -16
- package/src/rating/rating.ts +3 -5
- package/src/redvars-loader/redvars-loader.ts +0 -2
- package/src/relative-time/relative-time.ts +0 -2
- package/src/resizable-panels/panel.ts +0 -2
- package/src/resizable-panels/resizable-panels.ts +0 -2
- package/src/ripple/ripple.ts +0 -2
- package/src/scroll-area/scroll-area.ts +0 -2
- package/src/search/search.ts +3 -5
- package/src/segmented-button/segmented-button-group.ts +0 -2
- package/src/segmented-button/segmented-button.ts +0 -2
- package/src/select/option.ts +0 -2
- package/src/select/select.ts +49 -5
- package/src/side-sheet/side-sheet.ts +0 -2
- package/src/signature-pad/signature-pad.ts +3 -5
- package/src/site-footer/site-footer-group.ts +0 -2
- package/src/site-footer/site-footer.ts +0 -2
- package/src/site-header/site-header.ts +0 -2
- package/src/site-header/site-nav-group.ts +0 -2
- package/src/site-header/site-nav-link.ts +0 -2
- package/src/site-header/site-nav-menu.ts +0 -2
- package/src/skeleton/skeleton.ts +0 -2
- package/src/slider/slider.ts +3 -5
- package/src/snackbar/snackbar.ts +0 -2
- package/src/sparkline/sparkline.ts +0 -2
- package/src/split-button/split-button.ts +34 -19
- package/src/stack/stack.ts +0 -2
- package/src/stat/stat.ts +0 -2
- package/src/status-indicator/status-indicator.ts +0 -2
- package/src/stepper/step.ts +33 -12
- package/src/stepper/stepper.ts +0 -2
- package/src/svg/svg.ts +0 -2
- package/src/switch/switch.ts +31 -13
- package/src/table/table.ts +0 -2
- package/src/tabs/tab-group.ts +0 -2
- package/src/tabs/tab-panel.ts +0 -2
- package/src/tabs/tab.ts +40 -14
- package/src/tabs/tabs.ts +0 -2
- package/src/textarea/textarea.ts +3 -5
- package/src/time-field/time-field.scss +1 -1
- package/src/time-field/time-field.ts +4 -4
- package/src/time-picker/time-picker.ts +0 -2
- package/src/timeline/timeline-item.ts +0 -2
- package/src/timeline/timeline.ts +0 -2
- package/src/toolbar/toolbar.ts +0 -2
- package/src/tooltip/tooltip.ts +0 -2
- package/src/tour/tour.ts +0 -2
- package/src/transfer-list/transfer-list.ts +3 -5
- package/src/tree/tree-item.ts +0 -2
- package/src/tree/tree.ts +0 -2
- package/src/tree-chart/tree-chart.ts +2 -4
- package/src/typing-indicator/typing-indicator.ts +0 -2
- package/src/url-field/url-field.ts +3 -5
- package/src/user-menu/user-menu.ts +0 -2
- package/src/video/video.ts +0 -2
- package/src/virtual-list/virtual-list.ts +0 -2
- package/src/workflow/workflow.ts +2 -4
- package/src/workflow-timeline/workflow-timeline.ts +0 -2
- package/src/workspace-switcher/workspace-switcher.ts +0 -2
- package/dist/BaseField-DOCmylob.js.map +0 -1
- package/dist/BaseInput-Cv03GZLu.js.map +0 -1
- package/dist/ButtonConstants-CahP2_NA.js.map +0 -1
- package/dist/IndividualComponent-BK7XZjE2.js.map +0 -1
- package/dist/NativeHyperlinkMixin-WdY0fM-H.js.map +0 -1
- package/dist/base-button-9tGu5RSC.js.map +0 -1
- package/dist/canvas-base-BjiU3Ecl.js.map +0 -1
- package/dist/cb-group-base-2Ps2CnBz.js.map +0 -1
- package/dist/cb-group-base-CWctDJvy.js.map +0 -1
- package/dist/diagram-D2aM93kf.js.map +0 -1
- package/dist/document-editor-BS6al7Hq.js.map +0 -1
- package/dist/generative-view-DsSOPf26.js.map +0 -1
- package/dist/highlight-Be0wu7kh.js.map +0 -1
- package/dist/illustration-DQ-_sz1l.js.map +0 -1
- package/dist/indicator-navigation-item-BsQE3kUr.js.map +0 -1
- package/dist/navigation-item-base-5ljwtLG_.js.map +0 -1
- package/dist/picker-field-BiM3iXAQ.js.map +0 -1
- package/dist/property-B2TG3KEE.js +0 -10
- package/dist/property-B2TG3KEE.js.map +0 -1
- package/dist/range-utils-vgG1SJ2o.js.map +0 -1
- package/dist/rich-text-input-BCZ46UF8.js.map +0 -1
- package/dist/src/IndividualComponent.d.ts +0 -9
- package/dist/suggestion-controller-7YRQqkaI.js.map +0 -1
- package/dist/toggle-base-BtjRAZ5z.js.map +0 -1
- package/dist/video-DPjOBk6I.js.map +0 -1
- package/src/IndividualComponent.ts +0 -10
- /package/dist/src/__internal/mixins/{MixinConstructor.d.ts → mixin-constructor.d.ts} +0 -0
- /package/dist/src/button/{ButtonConstants.d.ts → button-constants.d.ts} +0 -0
- /package/dist/src/button/{ButtonTypes.d.ts → button-types.d.ts} +0 -0
- /package/dist/src/clock/{ClockController.d.ts → clock-controller.d.ts} +0 -0
- /package/dist/src/{CssLoader.d.ts → css-loader.d.ts} +0 -0
- /package/dist/src/{LoaderUtils.d.ts → loader-utils.d.ts} +0 -0
- /package/src/__internal/mixins/{MixinConstructor.ts → mixin-constructor.ts} +0 -0
- /package/src/button/{ButtonConstants.ts → button-constants.ts} +0 -0
- /package/src/button/{ButtonTypes.ts → button-types.ts} +0 -0
- /package/src/clock/{ClockController.ts → clock-controller.ts} +0 -0
- /package/src/condition-builder/{cb-group-base.scss → condition-group-base.scss} +0 -0
- /package/src/{CssLoader.ts → css-loader.ts} +0 -0
- /package/src/{LoaderUtils.ts → loader-utils.ts} +0 -0
|
@@ -0,0 +1,954 @@
|
|
|
1
|
+
// src/foundation/kernel/order.ts
|
|
2
|
+
var following = 4;
|
|
3
|
+
var isAfter = (node, later) => !!(node.compareDocumentPosition(later) & following);
|
|
4
|
+
var documentOrder = (a, b) => isAfter(a, b) ? -1 : 1;
|
|
5
|
+
var walkFrom = 16;
|
|
6
|
+
var walkPerEntry = 32;
|
|
7
|
+
function inDocumentOrder(entries) {
|
|
8
|
+
let container = entries.length < walkFrom ? null : entries[0].el.parentNode;
|
|
9
|
+
while (container && !entries.every(({ el }) => container.contains(el))) {
|
|
10
|
+
container = container.parentNode;
|
|
11
|
+
}
|
|
12
|
+
if (container) {
|
|
13
|
+
const byElement = new Map(
|
|
14
|
+
entries.map((entry) => [entry.el, entry])
|
|
15
|
+
);
|
|
16
|
+
const sorted = [];
|
|
17
|
+
const walker = entries[0].el.ownerDocument.createTreeWalker(container, 1);
|
|
18
|
+
let budget = entries.length * walkPerEntry;
|
|
19
|
+
for (let node = container; node && budget--; node = walker.nextNode()) {
|
|
20
|
+
const entry = byElement.get(node);
|
|
21
|
+
if (entry && sorted.push(entry) === entries.length) {
|
|
22
|
+
return sorted;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return entries.sort((a, b) => documentOrder(a.el, b.el));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// src/foundation/forms/form.ts
|
|
30
|
+
var internalsOf = /* @__PURE__ */ new WeakMap();
|
|
31
|
+
var focusOf = /* @__PURE__ */ new WeakMap();
|
|
32
|
+
function focusWith(el, focus) {
|
|
33
|
+
focusOf.set(el, focus);
|
|
34
|
+
return () => {
|
|
35
|
+
if (focusOf.get(el) === focus) {
|
|
36
|
+
focusOf.delete(el);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function focusControl(el) {
|
|
41
|
+
const focus = focusOf.get(el);
|
|
42
|
+
if (focus) {
|
|
43
|
+
focus();
|
|
44
|
+
} else {
|
|
45
|
+
el.focus();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
var focusing = /* @__PURE__ */ new WeakSet();
|
|
49
|
+
function claimInvalidFocus(el, form) {
|
|
50
|
+
const owner = form ?? el.ownerDocument;
|
|
51
|
+
if (focusing.has(owner)) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
focusing.add(owner);
|
|
55
|
+
setTimeout(() => focusing.delete(owner));
|
|
56
|
+
focusControl(el);
|
|
57
|
+
}
|
|
58
|
+
function attachFormInternals(el, internals, bind) {
|
|
59
|
+
internalsOf.set(el, { internals, bind });
|
|
60
|
+
}
|
|
61
|
+
var validityListeners = /* @__PURE__ */ new Set();
|
|
62
|
+
function validityChanged(el) {
|
|
63
|
+
validityListeners.forEach((listener) => listener(el));
|
|
64
|
+
}
|
|
65
|
+
function fieldsetDisabled(el) {
|
|
66
|
+
for (let node = el.parentElement; node; node = node.parentElement) {
|
|
67
|
+
if (!(node instanceof HTMLFieldSetElement) || !node.disabled) {
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
const legend = node.querySelector(":scope > legend");
|
|
71
|
+
if (!legend?.contains(el)) {
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
var moves = /* @__PURE__ */ new WeakMap();
|
|
78
|
+
function watchFieldsets(el, onChange) {
|
|
79
|
+
let disabled;
|
|
80
|
+
let observer;
|
|
81
|
+
let active = true;
|
|
82
|
+
const check = () => {
|
|
83
|
+
if (observer) {
|
|
84
|
+
observer.disconnect();
|
|
85
|
+
for (let node = el.parentElement; node?.closest("fieldset"); node = node.parentElement) {
|
|
86
|
+
observer.observe(node, {
|
|
87
|
+
childList: true,
|
|
88
|
+
attributeFilter: ["disabled"]
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const now = fieldsetDisabled(el);
|
|
93
|
+
if (now !== disabled) {
|
|
94
|
+
onChange(disabled = now);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const watch = () => {
|
|
98
|
+
if (!active) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
if (typeof MutationObserver !== "undefined") {
|
|
102
|
+
observer = new MutationObserver(check);
|
|
103
|
+
}
|
|
104
|
+
check();
|
|
105
|
+
moves.set(el, check);
|
|
106
|
+
};
|
|
107
|
+
if (el.isConnected) {
|
|
108
|
+
watch();
|
|
109
|
+
} else {
|
|
110
|
+
queueMicrotask(watch);
|
|
111
|
+
}
|
|
112
|
+
return () => {
|
|
113
|
+
active = false;
|
|
114
|
+
observer?.disconnect();
|
|
115
|
+
moves.delete(el);
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
var elementMoved = (el) => moves.get(el)?.();
|
|
119
|
+
var isDisabled = (state) => state.disabled || state.formDisabled;
|
|
120
|
+
var watchFormDisabled = (el, store) => watchFieldsets(el, (formDisabled) => store.set({ formDisabled }));
|
|
121
|
+
var isDisabledElement = (el) => el.matches(":disabled") || el.getAttribute("aria-disabled") === "true";
|
|
122
|
+
var labelCount = globalThis[/* @__PURE__ */ Symbol.for("ui-sdk.label-ids@1")] ??= { count: 0 };
|
|
123
|
+
function labelsOf(el) {
|
|
124
|
+
const labels = [];
|
|
125
|
+
const around = el.closest("label");
|
|
126
|
+
if (around?.control === el) {
|
|
127
|
+
labels.push(around);
|
|
128
|
+
}
|
|
129
|
+
if (el.id) {
|
|
130
|
+
const root = el.getRootNode();
|
|
131
|
+
root.querySelectorAll(`label[for="${CSS.escape(el.id)}"]`).forEach((label) => {
|
|
132
|
+
if (label !== around && label.control === el) {
|
|
133
|
+
labels.push(label);
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
return labels.sort(documentOrder);
|
|
138
|
+
}
|
|
139
|
+
function labelledBy(el, findLabels, watch = el) {
|
|
140
|
+
let written;
|
|
141
|
+
const update = () => {
|
|
142
|
+
const current = el.getAttribute("aria-labelledby");
|
|
143
|
+
if (el.hasAttribute("aria-label") || current !== null && current !== written) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
const labels = findLabels();
|
|
147
|
+
for (const label of labels) {
|
|
148
|
+
if (!label.id) {
|
|
149
|
+
label.id = `ui-sdk-label-${++labelCount.count}`;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
const ids = labels.map((label) => label.id).join(" ");
|
|
153
|
+
if (!ids) {
|
|
154
|
+
if (written !== void 0) {
|
|
155
|
+
el.removeAttribute("aria-labelledby");
|
|
156
|
+
}
|
|
157
|
+
written = void 0;
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
written = ids;
|
|
161
|
+
if (current !== ids) {
|
|
162
|
+
el.setAttribute("aria-labelledby", ids);
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
queueMicrotask(update);
|
|
166
|
+
watch.addEventListener("focusin", update);
|
|
167
|
+
return () => watch.removeEventListener("focusin", update);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// src/foundation/kernel/details.ts
|
|
171
|
+
var programmaticReasons = /* @__PURE__ */ new Set([
|
|
172
|
+
"image-load",
|
|
173
|
+
"image-error",
|
|
174
|
+
"imperative",
|
|
175
|
+
"item-removed",
|
|
176
|
+
"unmount",
|
|
177
|
+
"reset",
|
|
178
|
+
"restore",
|
|
179
|
+
"timeout",
|
|
180
|
+
"resize",
|
|
181
|
+
"page-hide"
|
|
182
|
+
]);
|
|
183
|
+
var cause;
|
|
184
|
+
function resolveSource(reason, eventSource) {
|
|
185
|
+
if (cause === "agent") {
|
|
186
|
+
return cause;
|
|
187
|
+
}
|
|
188
|
+
if (programmaticReasons.has(reason)) {
|
|
189
|
+
return "programmatic";
|
|
190
|
+
}
|
|
191
|
+
if (eventSource) {
|
|
192
|
+
const source = eventSource();
|
|
193
|
+
return source === "programmatic" && cause ? cause : source;
|
|
194
|
+
}
|
|
195
|
+
return cause ?? "programmatic";
|
|
196
|
+
}
|
|
197
|
+
function withSource(source, run) {
|
|
198
|
+
const outer = cause;
|
|
199
|
+
cause = source;
|
|
200
|
+
try {
|
|
201
|
+
return run();
|
|
202
|
+
} finally {
|
|
203
|
+
cause = outer;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
function createDetails(given, source, cancelable = true) {
|
|
207
|
+
if (!cancelable) {
|
|
208
|
+
return { ...given, source };
|
|
209
|
+
}
|
|
210
|
+
let canceled = false;
|
|
211
|
+
return {
|
|
212
|
+
...given,
|
|
213
|
+
source,
|
|
214
|
+
cancel: () => {
|
|
215
|
+
canceled = true;
|
|
216
|
+
},
|
|
217
|
+
get canceled() {
|
|
218
|
+
return canceled;
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// src/foundation/kernel/keep.ts
|
|
224
|
+
var lifecycles = /* @__PURE__ */ new WeakMap();
|
|
225
|
+
var making;
|
|
226
|
+
function whileDestroying(run) {
|
|
227
|
+
try {
|
|
228
|
+
run();
|
|
229
|
+
} finally {
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
function withLifecycle(make) {
|
|
233
|
+
const outer = making;
|
|
234
|
+
const lifecycle = { starts: [] };
|
|
235
|
+
making = lifecycle;
|
|
236
|
+
let instance;
|
|
237
|
+
try {
|
|
238
|
+
instance = make();
|
|
239
|
+
} finally {
|
|
240
|
+
making = outer;
|
|
241
|
+
}
|
|
242
|
+
lifecycles.set(instance, lifecycle);
|
|
243
|
+
if (outer) {
|
|
244
|
+
outer.starts.push(() => {
|
|
245
|
+
keep(instance);
|
|
246
|
+
return () => release(instance);
|
|
247
|
+
});
|
|
248
|
+
} else if (typeof document !== "undefined") {
|
|
249
|
+
keep(instance);
|
|
250
|
+
}
|
|
251
|
+
return instance;
|
|
252
|
+
}
|
|
253
|
+
function whenKept(start) {
|
|
254
|
+
if (making) {
|
|
255
|
+
making.starts.push(start);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
function extendLifecycle(instance, run) {
|
|
259
|
+
const outer = making;
|
|
260
|
+
const added = { starts: [] };
|
|
261
|
+
making = added;
|
|
262
|
+
try {
|
|
263
|
+
run();
|
|
264
|
+
} finally {
|
|
265
|
+
making = outer;
|
|
266
|
+
}
|
|
267
|
+
const lifecycle = lifecycles.get(instance);
|
|
268
|
+
if (!lifecycle) {
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
lifecycle.starts.push(...added.starts);
|
|
272
|
+
for (const start of lifecycle.stops ? added.starts : []) {
|
|
273
|
+
const stop = start();
|
|
274
|
+
if (stop) {
|
|
275
|
+
lifecycle.stops.push(stop);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
function keep(instance) {
|
|
280
|
+
const lifecycle = lifecycles.get(instance);
|
|
281
|
+
if (!lifecycle || lifecycle.stops) {
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
const stops = lifecycle.stops = [];
|
|
285
|
+
for (const start of lifecycle.starts) {
|
|
286
|
+
const stop = start();
|
|
287
|
+
if (stop) {
|
|
288
|
+
stops.push(stop);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
function release(instance) {
|
|
293
|
+
const lifecycle = lifecycles.get(instance);
|
|
294
|
+
const stops = lifecycle?.stops;
|
|
295
|
+
if (!stops) {
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
lifecycle.stops = void 0;
|
|
299
|
+
stops.forEach((stop) => stop());
|
|
300
|
+
}
|
|
301
|
+
function discard(instance) {
|
|
302
|
+
release(instance);
|
|
303
|
+
lifecycles.delete(instance);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// src/foundation/kernel/after-bind.ts
|
|
307
|
+
var pending = /* @__PURE__ */ new Set();
|
|
308
|
+
function afterBind(write) {
|
|
309
|
+
pending.add(write);
|
|
310
|
+
queueMicrotask(() => {
|
|
311
|
+
if (pending.delete(write)) {
|
|
312
|
+
write();
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// src/foundation/platform/style.ts
|
|
318
|
+
var adopted = () => globalThis[/* @__PURE__ */ Symbol.for("ui-sdk.styles@1")] ??= /* @__PURE__ */ new WeakMap();
|
|
319
|
+
var nonces = /* @__PURE__ */ new WeakMap();
|
|
320
|
+
function pageNonce(doc) {
|
|
321
|
+
if (nonces.has(doc)) {
|
|
322
|
+
return nonces.get(doc);
|
|
323
|
+
}
|
|
324
|
+
let meta;
|
|
325
|
+
for (let at = doc; at && !meta; at = at.defaultView?.frameElement?.ownerDocument) {
|
|
326
|
+
meta = at.head?.querySelector('meta[property="csp-nonce"]');
|
|
327
|
+
}
|
|
328
|
+
const nonce = meta ? meta.nonce || meta.getAttribute("nonce") || "" : null;
|
|
329
|
+
nonces.set(doc, nonce);
|
|
330
|
+
return nonce;
|
|
331
|
+
}
|
|
332
|
+
function writeStyle(doc, id, css) {
|
|
333
|
+
if (!doc.head) {
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
const view = doc.defaultView;
|
|
337
|
+
if (pageNonce(doc) === "" && view && "adoptedStyleSheets" in doc) {
|
|
338
|
+
adoptStyle(doc, view, id, css);
|
|
339
|
+
} else {
|
|
340
|
+
appendStyle(doc, id, css);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
var styleText = /* @__PURE__ */ new WeakMap();
|
|
344
|
+
function appendStyle(doc, id, css) {
|
|
345
|
+
const existing = doc.getElementById(id);
|
|
346
|
+
if (existing) {
|
|
347
|
+
if (styleText.get(existing) === css) {
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
if (existing.textContent !== css) {
|
|
351
|
+
existing.textContent = css;
|
|
352
|
+
}
|
|
353
|
+
styleText.set(existing, css);
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
const style = doc.createElement("style");
|
|
357
|
+
style.id = id;
|
|
358
|
+
const nonce = pageNonce(doc);
|
|
359
|
+
if (nonce) {
|
|
360
|
+
style.nonce = nonce;
|
|
361
|
+
}
|
|
362
|
+
style.textContent = css;
|
|
363
|
+
styleText.set(style, css);
|
|
364
|
+
const ours = doc.head.querySelectorAll(':scope > style[id^="ui-sdk-"]');
|
|
365
|
+
if (ours.length) {
|
|
366
|
+
ours[ours.length - 1].after(style);
|
|
367
|
+
} else {
|
|
368
|
+
doc.head.prepend(style);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
function adoptStyle(doc, view, id, css) {
|
|
372
|
+
let sheets = adopted().get(doc);
|
|
373
|
+
if (!sheets) {
|
|
374
|
+
adopted().set(doc, sheets = /* @__PURE__ */ new Map());
|
|
375
|
+
}
|
|
376
|
+
let entry = sheets.get(id);
|
|
377
|
+
if (!entry) {
|
|
378
|
+
sheets.set(id, entry = { sheet: new view.CSSStyleSheet(), css: "" });
|
|
379
|
+
}
|
|
380
|
+
if (entry.css !== css) {
|
|
381
|
+
entry.sheet.replaceSync(css);
|
|
382
|
+
entry.css = css;
|
|
383
|
+
}
|
|
384
|
+
if (!doc.adoptedStyleSheets.includes(entry.sheet)) {
|
|
385
|
+
doc.adoptedStyleSheets = [...doc.adoptedStyleSheets, entry.sheet];
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
function enforceHidden(doc) {
|
|
389
|
+
writeStyle(
|
|
390
|
+
doc,
|
|
391
|
+
"ui-sdk-hidden",
|
|
392
|
+
'@layer ui-sdk { :where([data-slot][hidden]:not([hidden="until-found"])) { display: none !important } }'
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
// src/foundation/kernel/events.ts
|
|
397
|
+
function on(target, type, listener, options) {
|
|
398
|
+
target.addEventListener(type, listener, options);
|
|
399
|
+
return () => target.removeEventListener(type, listener, options);
|
|
400
|
+
}
|
|
401
|
+
function isComposing(event) {
|
|
402
|
+
const key = "nativeEvent" in event ? event.nativeEvent : event;
|
|
403
|
+
return key.isComposing === true || key.keyCode === 229;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
// src/foundation/kernel/store.ts
|
|
407
|
+
var changedInPlace = /* @__PURE__ */ new WeakSet();
|
|
408
|
+
function sameValue(a, b) {
|
|
409
|
+
if (Object.is(a, b)) {
|
|
410
|
+
return true;
|
|
411
|
+
}
|
|
412
|
+
if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) {
|
|
413
|
+
return false;
|
|
414
|
+
}
|
|
415
|
+
if (changedInPlace.has(a) || changedInPlace.has(b)) {
|
|
416
|
+
return false;
|
|
417
|
+
}
|
|
418
|
+
return a.every((item, index) => Object.is(item, b[index]));
|
|
419
|
+
}
|
|
420
|
+
function createStore(initial, live) {
|
|
421
|
+
let state = initial;
|
|
422
|
+
let renders2 = 0;
|
|
423
|
+
let writes2 = 0;
|
|
424
|
+
let followed;
|
|
425
|
+
let merged;
|
|
426
|
+
let reading = false;
|
|
427
|
+
let viewed;
|
|
428
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
429
|
+
const skipping = /* @__PURE__ */ new Map();
|
|
430
|
+
let fanout;
|
|
431
|
+
const store = {
|
|
432
|
+
get() {
|
|
433
|
+
return viewed ?? withFollowed();
|
|
434
|
+
},
|
|
435
|
+
// `delivered` marks keys `follow` already delivers, which parts that read
|
|
436
|
+
// them through the framework skip.
|
|
437
|
+
set(patch, delivered = false) {
|
|
438
|
+
if (followed && !delivered && !reading) {
|
|
439
|
+
const over = withFollowed();
|
|
440
|
+
if (over !== state) {
|
|
441
|
+
const rest = { ...over };
|
|
442
|
+
for (const key in patch) {
|
|
443
|
+
delete rest[key];
|
|
444
|
+
}
|
|
445
|
+
store.set(rest, true);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
const changed = [];
|
|
449
|
+
for (const key in patch) {
|
|
450
|
+
if (!sameValue(state[key], patch[key])) {
|
|
451
|
+
changed.push(key);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
if (!changed.length) {
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
const previous = state;
|
|
458
|
+
state = { ...state, ...patch };
|
|
459
|
+
const liveOnly = changed.every((key) => live.includes(key));
|
|
460
|
+
notify(changed, previous, liveOnly, delivered);
|
|
461
|
+
},
|
|
462
|
+
subscribe(listener) {
|
|
463
|
+
listeners.add(listener);
|
|
464
|
+
return () => {
|
|
465
|
+
listeners.delete(listener);
|
|
466
|
+
};
|
|
467
|
+
},
|
|
468
|
+
// The listeners of parts that select values, which `kernel/selects.ts` installs once.
|
|
469
|
+
setFanout(next) {
|
|
470
|
+
fanout = next;
|
|
471
|
+
},
|
|
472
|
+
// Keys `get()` reads from `read` from now on, ahead of `set`, like a
|
|
473
|
+
// framework's props it hands over from an effect. `read` gets the state
|
|
474
|
+
// the store holds.
|
|
475
|
+
follow(read) {
|
|
476
|
+
followed = read;
|
|
477
|
+
},
|
|
478
|
+
// Runs `read` with `get()` returning `next`, for state derived from state
|
|
479
|
+
// the store doesn't hold yet, like what the framework is rendering.
|
|
480
|
+
view(next, read) {
|
|
481
|
+
const before = viewed;
|
|
482
|
+
viewed = next;
|
|
483
|
+
try {
|
|
484
|
+
return read();
|
|
485
|
+
} finally {
|
|
486
|
+
viewed = before;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
function withFollowed() {
|
|
491
|
+
if (!followed || reading) {
|
|
492
|
+
return state;
|
|
493
|
+
}
|
|
494
|
+
reading = true;
|
|
495
|
+
let over;
|
|
496
|
+
try {
|
|
497
|
+
over = followed(state);
|
|
498
|
+
} finally {
|
|
499
|
+
reading = false;
|
|
500
|
+
}
|
|
501
|
+
if (!over) {
|
|
502
|
+
return state;
|
|
503
|
+
}
|
|
504
|
+
if (merged?.state === state && merged.over === over) {
|
|
505
|
+
return merged.result;
|
|
506
|
+
}
|
|
507
|
+
let result = state;
|
|
508
|
+
for (const key in over) {
|
|
509
|
+
if (!sameValue(state[key], over[key])) {
|
|
510
|
+
result = { ...state, ...over };
|
|
511
|
+
break;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
merged = { state, over, result };
|
|
515
|
+
return result;
|
|
516
|
+
}
|
|
517
|
+
function notify(changed, previous, liveOnly, delivered) {
|
|
518
|
+
if (!liveOnly) {
|
|
519
|
+
renders2++;
|
|
520
|
+
}
|
|
521
|
+
if (!delivered) {
|
|
522
|
+
writes2++;
|
|
523
|
+
}
|
|
524
|
+
const run = (listener) => listener(liveOnly, delivered, changed);
|
|
525
|
+
listeners.forEach(run);
|
|
526
|
+
for (const [skip, group] of skipping) {
|
|
527
|
+
if (!changed.length || changed.some((key) => !Object.hasOwn(skip, key))) {
|
|
528
|
+
group.forEach(run);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
fanout?.(changed, previous, run);
|
|
532
|
+
}
|
|
533
|
+
held.set(store, {
|
|
534
|
+
state: () => state,
|
|
535
|
+
renders: () => renders2,
|
|
536
|
+
writes: () => writes2,
|
|
537
|
+
touch: () => notify([], state, false, false),
|
|
538
|
+
skipping
|
|
539
|
+
});
|
|
540
|
+
return store;
|
|
541
|
+
}
|
|
542
|
+
var held = /* @__PURE__ */ new WeakMap();
|
|
543
|
+
function subscribeSkipping(store, skip, listener) {
|
|
544
|
+
return join(held.get(store).skipping, skip, listener);
|
|
545
|
+
}
|
|
546
|
+
function join(groups, group, listener) {
|
|
547
|
+
let members = groups.get(group);
|
|
548
|
+
if (!members) {
|
|
549
|
+
groups.set(group, members = /* @__PURE__ */ new Set());
|
|
550
|
+
}
|
|
551
|
+
members.add(listener);
|
|
552
|
+
return () => {
|
|
553
|
+
members.delete(listener);
|
|
554
|
+
if (!members.size && groups.get(group) === members) {
|
|
555
|
+
groups.delete(group);
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
var heldState = (store) => held.get(store).state();
|
|
560
|
+
var renders = (store) => held.get(store).renders();
|
|
561
|
+
var standFor = (owner, store) => {
|
|
562
|
+
held.set(owner, held.get(store));
|
|
563
|
+
};
|
|
564
|
+
var touch = (store) => held.get(store).touch();
|
|
565
|
+
|
|
566
|
+
// src/foundation/kernel/part.ts
|
|
567
|
+
var ownerOf = (part) => part.owner;
|
|
568
|
+
var definitionOf = (part) => ownerOf(part).slots[part.slot];
|
|
569
|
+
var view = (part, props) => ({
|
|
570
|
+
id: part.id,
|
|
571
|
+
key: part.key,
|
|
572
|
+
props,
|
|
573
|
+
api: part.api
|
|
574
|
+
});
|
|
575
|
+
var context = (part, props = part.props) => ({
|
|
576
|
+
el: part.el,
|
|
577
|
+
id: part.id,
|
|
578
|
+
key: part.key,
|
|
579
|
+
props,
|
|
580
|
+
store: part.store,
|
|
581
|
+
api: part.api
|
|
582
|
+
});
|
|
583
|
+
function lease(part) {
|
|
584
|
+
const { parts } = part.owner;
|
|
585
|
+
const mapKey = `${part.slot}:${part.key}`;
|
|
586
|
+
if (!parts.has(mapKey)) {
|
|
587
|
+
parts.set(mapKey, part);
|
|
588
|
+
}
|
|
589
|
+
part.leases++;
|
|
590
|
+
let held2 = true;
|
|
591
|
+
return () => {
|
|
592
|
+
if (!held2) {
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
held2 = false;
|
|
596
|
+
if (--part.leases) {
|
|
597
|
+
return;
|
|
598
|
+
}
|
|
599
|
+
const { owner } = part;
|
|
600
|
+
if (!owner.released.length) {
|
|
601
|
+
queueMicrotask(() => sweep(owner));
|
|
602
|
+
}
|
|
603
|
+
owner.released.push(part);
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
function provisional(part) {
|
|
607
|
+
const { owner } = part;
|
|
608
|
+
if (!owner.released.length) {
|
|
609
|
+
queueMicrotask(() => sweep(owner));
|
|
610
|
+
}
|
|
611
|
+
owner.released.push(part);
|
|
612
|
+
}
|
|
613
|
+
function sweep(owner) {
|
|
614
|
+
for (const part of owner.released) {
|
|
615
|
+
const mapKey = `${part.slot}:${part.key}`;
|
|
616
|
+
if (!part.leases && owner.parts.get(mapKey) === part) {
|
|
617
|
+
owner.parts.delete(mapKey);
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
owner.released = [];
|
|
621
|
+
}
|
|
622
|
+
function attrs(part, props = part.props, state = part.store.get()) {
|
|
623
|
+
const definition = definitionOf(part);
|
|
624
|
+
const context2 = view(part, props);
|
|
625
|
+
const own = definition.attrs?.(state, context2);
|
|
626
|
+
const declared = definition.role;
|
|
627
|
+
const role = typeof declared === "function" ? declared(state, context2) : declared;
|
|
628
|
+
const { name } = ownerOf(part);
|
|
629
|
+
const result = {
|
|
630
|
+
"data-slot": part.slot === "root" ? name : `${name}-${part.slot}`,
|
|
631
|
+
...declared === void 0 ? void 0 : { role },
|
|
632
|
+
...own
|
|
633
|
+
};
|
|
634
|
+
if (declared !== void 0) {
|
|
635
|
+
result.role = role;
|
|
636
|
+
}
|
|
637
|
+
return aliased(part, result);
|
|
638
|
+
}
|
|
639
|
+
var authorOwned = /* @__PURE__ */ new Set([
|
|
640
|
+
"aria-label",
|
|
641
|
+
"aria-labelledby",
|
|
642
|
+
"aria-description",
|
|
643
|
+
"title",
|
|
644
|
+
"autocomplete",
|
|
645
|
+
"autocapitalize",
|
|
646
|
+
"autocorrect",
|
|
647
|
+
"spellcheck",
|
|
648
|
+
"inputmode",
|
|
649
|
+
"enterkeyhint"
|
|
650
|
+
]);
|
|
651
|
+
var madeLabel = (value) => typeof value === "string" && value.split(/\s+/).every((id) => id.startsWith("ui-sdk-"));
|
|
652
|
+
function partState(part, props = part.props, state = part.store.get()) {
|
|
653
|
+
return definitionOf(part).state?.(state, view(part, props)) ?? {};
|
|
654
|
+
}
|
|
655
|
+
function present(part, props = part.props, state = part.store.get()) {
|
|
656
|
+
return definitionOf(part).present?.(state, view(part, props)) ?? true;
|
|
657
|
+
}
|
|
658
|
+
function conditional(part) {
|
|
659
|
+
return definitionOf(part).present !== void 0;
|
|
660
|
+
}
|
|
661
|
+
var selectedKeys = (part, props = part.props) => definitionOf(part).selects?.selection(part, props) ?? "";
|
|
662
|
+
var skipNone = {};
|
|
663
|
+
function subscribe(part, listener, props = part.props) {
|
|
664
|
+
const narrowed = definitionOf(part).selects;
|
|
665
|
+
const cleanups = [
|
|
666
|
+
lease(part),
|
|
667
|
+
narrowed ? narrowed.subscribe(part, listener, props) : subscribeSkipping(part.store, skipNone, listener)
|
|
668
|
+
];
|
|
669
|
+
return () => cleanups.forEach((cleanup) => cleanup());
|
|
670
|
+
}
|
|
671
|
+
function handlers(part) {
|
|
672
|
+
const { on: events, press: activate } = definitionOf(part);
|
|
673
|
+
const result = {};
|
|
674
|
+
for (const type in events) {
|
|
675
|
+
const handler = events[type];
|
|
676
|
+
result[type] = (event) => {
|
|
677
|
+
if (event.defaultPrevented || composing(event)) {
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
ownerOf(part).sleeping?.wake();
|
|
681
|
+
handler(event, context(part));
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
if (typeof activate === "function" && !result.click) {
|
|
685
|
+
result.click = (event) => {
|
|
686
|
+
if (!event.defaultPrevented) {
|
|
687
|
+
ownerOf(part).sleeping?.wake();
|
|
688
|
+
activate(context(part), event);
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
return result;
|
|
693
|
+
}
|
|
694
|
+
function propsRendered(part) {
|
|
695
|
+
part.propsListeners?.forEach((listener) => listener());
|
|
696
|
+
}
|
|
697
|
+
var hidingSlots = /* @__PURE__ */ new WeakMap();
|
|
698
|
+
function canHide(part) {
|
|
699
|
+
const definition = definitionOf(part);
|
|
700
|
+
let hides = hidingSlots.get(definition);
|
|
701
|
+
if (hides === void 0) {
|
|
702
|
+
hides = !!definition.attrs && "hidden" in definition.attrs(part.store.get(), view(part, part.props));
|
|
703
|
+
hidingSlots.set(definition, hides);
|
|
704
|
+
}
|
|
705
|
+
return hides;
|
|
706
|
+
}
|
|
707
|
+
function bind(part, el, host = { by: "core" }) {
|
|
708
|
+
const kept = part;
|
|
709
|
+
const { parts } = kept.owner;
|
|
710
|
+
const mapKey = `${part.slot}:${part.key}`;
|
|
711
|
+
if (!part.el && (parts.get(mapKey) ?? kept) === kept) {
|
|
712
|
+
parts.delete(mapKey);
|
|
713
|
+
parts.set(mapKey, kept);
|
|
714
|
+
}
|
|
715
|
+
const binding = {};
|
|
716
|
+
part.el = el;
|
|
717
|
+
kept.binding = binding;
|
|
718
|
+
const cleanups = [lease(kept)];
|
|
719
|
+
if (canHide(part)) {
|
|
720
|
+
enforceHidden(el.ownerDocument);
|
|
721
|
+
}
|
|
722
|
+
for (const [type, handler] of Object.entries(handlers(part))) {
|
|
723
|
+
if (host.by === "core" || host.attaches !== "all" && !host.attaches.includes(type)) {
|
|
724
|
+
cleanups.push(on(el, type, handler));
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
const definition = definitionOf(part);
|
|
728
|
+
if (definition.live) {
|
|
729
|
+
cleanups.push(definition.live.attach(part, el));
|
|
730
|
+
}
|
|
731
|
+
if (host.by === "framework" && definition.direct) {
|
|
732
|
+
cleanups.push(definition.direct.attach(part, el));
|
|
733
|
+
}
|
|
734
|
+
const early = definition.asleep?.(el, part);
|
|
735
|
+
if (early) {
|
|
736
|
+
cleanups.push(early);
|
|
737
|
+
}
|
|
738
|
+
const late = () => {
|
|
739
|
+
const cleanup = definition.bind?.(el, part);
|
|
740
|
+
if (cleanup) {
|
|
741
|
+
cleanups.push(cleanup);
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
const { sleeping } = kept.owner;
|
|
745
|
+
if (sleeping && definition.bind) {
|
|
746
|
+
sleeping.binds.add(late);
|
|
747
|
+
cleanups.push(() => sleeping.binds.delete(late));
|
|
748
|
+
} else {
|
|
749
|
+
late();
|
|
750
|
+
}
|
|
751
|
+
if (definition.attrs && typeof MutationObserver !== "undefined") {
|
|
752
|
+
cleanups.push(followId(kept, el));
|
|
753
|
+
}
|
|
754
|
+
return () => {
|
|
755
|
+
cleanups.forEach((cleanup) => cleanup());
|
|
756
|
+
if (kept.binding !== binding) {
|
|
757
|
+
return;
|
|
758
|
+
}
|
|
759
|
+
part.el = kept.binding = void 0;
|
|
760
|
+
if (kept.own !== void 0) {
|
|
761
|
+
readIdLater(kept);
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
var connect = (part, el) => definitionOf(part).connect?.(el) ?? (() => {
|
|
766
|
+
});
|
|
767
|
+
var references = [
|
|
768
|
+
"aria-activedescendant",
|
|
769
|
+
"aria-controls",
|
|
770
|
+
"aria-describedby",
|
|
771
|
+
"aria-details",
|
|
772
|
+
"aria-errormessage",
|
|
773
|
+
"aria-flowto",
|
|
774
|
+
"aria-labelledby",
|
|
775
|
+
"aria-owns",
|
|
776
|
+
"for",
|
|
777
|
+
"headers"
|
|
778
|
+
];
|
|
779
|
+
var madeId = (part) => definitionOf(part).attrs?.(
|
|
780
|
+
part.store.get(),
|
|
781
|
+
view(part, { ...part.props, id: void 0 })
|
|
782
|
+
).id;
|
|
783
|
+
function aliased(part, attrs2) {
|
|
784
|
+
const { owner } = part;
|
|
785
|
+
if (!owner.named?.size || !references.some((name) => attrs2[name])) {
|
|
786
|
+
return attrs2;
|
|
787
|
+
}
|
|
788
|
+
const aliases = aliasesOf(owner, part.store);
|
|
789
|
+
if (!aliases.size) {
|
|
790
|
+
return attrs2;
|
|
791
|
+
}
|
|
792
|
+
const result = { ...attrs2 };
|
|
793
|
+
for (const name of references) {
|
|
794
|
+
const ids = result[name];
|
|
795
|
+
if (ids) {
|
|
796
|
+
result[name] = ids.split(" ").map((id) => aliases.get(id) ?? id).join(" ");
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
return result;
|
|
800
|
+
}
|
|
801
|
+
function aliasesOf(owner, store) {
|
|
802
|
+
const version = renders(store);
|
|
803
|
+
if (owner.aliases?.version === version) {
|
|
804
|
+
return owner.aliases.map;
|
|
805
|
+
}
|
|
806
|
+
const map = /* @__PURE__ */ new Map();
|
|
807
|
+
for (const part of owner.named) {
|
|
808
|
+
const made = madeId(part);
|
|
809
|
+
if (made !== void 0 && made !== part.own) {
|
|
810
|
+
map.set(made, part.own);
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
owner.aliases = { version, map };
|
|
814
|
+
return map;
|
|
815
|
+
}
|
|
816
|
+
function followId(part, el) {
|
|
817
|
+
if (el.hasAttribute("id") || part.own !== void 0) {
|
|
818
|
+
readIdLater(part);
|
|
819
|
+
}
|
|
820
|
+
const observer = new MutationObserver(() => readIdLater(part));
|
|
821
|
+
observer.observe(el, { attributeFilter: ["id"] });
|
|
822
|
+
return () => observer.disconnect();
|
|
823
|
+
}
|
|
824
|
+
function readIdLater(part) {
|
|
825
|
+
const { owner } = part;
|
|
826
|
+
if (!owner.unread) {
|
|
827
|
+
owner.unread = /* @__PURE__ */ new Set();
|
|
828
|
+
afterBind(() => readIds(owner, part.store));
|
|
829
|
+
}
|
|
830
|
+
owner.unread.add(part);
|
|
831
|
+
}
|
|
832
|
+
function readIds(owner, store) {
|
|
833
|
+
const parts = owner.unread;
|
|
834
|
+
owner.unread = void 0;
|
|
835
|
+
let renamed = owner.renamed === true;
|
|
836
|
+
owner.renamed = void 0;
|
|
837
|
+
for (const part of parts) {
|
|
838
|
+
renamed = rename(part, part.el && idOf(part.el)) || renamed;
|
|
839
|
+
}
|
|
840
|
+
if (renamed) {
|
|
841
|
+
touch(store);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
var idOf = (el) => el.localName === "form" ? el.getAttribute("id") : el.id;
|
|
845
|
+
function rename(part, id) {
|
|
846
|
+
const made = madeId(part);
|
|
847
|
+
const own = id && id !== made ? id : void 0;
|
|
848
|
+
if (own === part.own) {
|
|
849
|
+
return false;
|
|
850
|
+
}
|
|
851
|
+
const { owner } = part;
|
|
852
|
+
part.own = own;
|
|
853
|
+
owner.named ??= /* @__PURE__ */ new Set();
|
|
854
|
+
if (own === void 0) {
|
|
855
|
+
owner.named.delete(part);
|
|
856
|
+
} else {
|
|
857
|
+
owner.named.add(part);
|
|
858
|
+
}
|
|
859
|
+
owner.aliases = void 0;
|
|
860
|
+
return made !== void 0;
|
|
861
|
+
}
|
|
862
|
+
function composing(event) {
|
|
863
|
+
return (event.type === "keydown" || event.type === "keyup") && isComposing(event);
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
// src/foundation/kernel/watchers.ts
|
|
867
|
+
var watchers = {};
|
|
868
|
+
var earlier = /* @__PURE__ */ new Set();
|
|
869
|
+
var watchLater = /* @__PURE__ */ new WeakMap();
|
|
870
|
+
function watchWhileKept(instance, parts, definition) {
|
|
871
|
+
let unwatch;
|
|
872
|
+
let waiting;
|
|
873
|
+
const untrack = () => {
|
|
874
|
+
unwatch?.();
|
|
875
|
+
unwatch = void 0;
|
|
876
|
+
if (waiting) {
|
|
877
|
+
earlier.delete(waiting);
|
|
878
|
+
}
|
|
879
|
+
waiting = void 0;
|
|
880
|
+
};
|
|
881
|
+
whenKept(() => {
|
|
882
|
+
if (watchers.add) {
|
|
883
|
+
unwatch = watchers.add(instance, parts, definition);
|
|
884
|
+
} else if (typeof document !== "undefined") {
|
|
885
|
+
earlier.add(waiting = new WeakRef(instance));
|
|
886
|
+
watchLater.set(
|
|
887
|
+
instance,
|
|
888
|
+
() => unwatch = watchers.add?.(instance, parts, definition)
|
|
889
|
+
);
|
|
890
|
+
if (earlier.size % 1e3 === 0) {
|
|
891
|
+
for (const old of earlier) {
|
|
892
|
+
if (!old.deref()) {
|
|
893
|
+
earlier.delete(old);
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
return untrack;
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
function watchEarlier() {
|
|
902
|
+
for (const ref of earlier) {
|
|
903
|
+
earlier.delete(ref);
|
|
904
|
+
const instance = ref.deref();
|
|
905
|
+
if (instance) {
|
|
906
|
+
watchLater.get(instance)?.();
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
// src/foundation/platform/env.ts
|
|
912
|
+
var isBrowser = typeof window !== "undefined" && typeof document !== "undefined";
|
|
913
|
+
|
|
914
|
+
// src/foundation/platform/platform.ts
|
|
915
|
+
function supportsTopLayer() {
|
|
916
|
+
return isBrowser && typeof HTMLElement.prototype.showPopover === "function";
|
|
917
|
+
}
|
|
918
|
+
function portalTarget(container) {
|
|
919
|
+
if (container) {
|
|
920
|
+
return container;
|
|
921
|
+
}
|
|
922
|
+
if (isBrowser && !supportsTopLayer()) {
|
|
923
|
+
return document.body;
|
|
924
|
+
}
|
|
925
|
+
return null;
|
|
926
|
+
}
|
|
927
|
+
function composedHops(node) {
|
|
928
|
+
const hops = [node];
|
|
929
|
+
let at = node;
|
|
930
|
+
while (at) {
|
|
931
|
+
const next = at.assignedSlot ?? at.parentNode ?? at.host;
|
|
932
|
+
if (next && next !== at.parentNode) {
|
|
933
|
+
hops.push(next);
|
|
934
|
+
}
|
|
935
|
+
at = next;
|
|
936
|
+
}
|
|
937
|
+
return hops;
|
|
938
|
+
}
|
|
939
|
+
function composedClosest(node, selector) {
|
|
940
|
+
for (const hop of composedHops(node)) {
|
|
941
|
+
const found = hop.closest?.(selector);
|
|
942
|
+
if (found) {
|
|
943
|
+
return found;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
return null;
|
|
947
|
+
}
|
|
948
|
+
var apple;
|
|
949
|
+
function isApple() {
|
|
950
|
+
return apple ??= isBrowser && /Mac|iPhone|iPad|iPod/.test(navigator.platform || navigator.userAgent);
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export { resolveSource as A, authorOwned as B, madeLabel as C, references as D, focusWith as E, labelledBy as F, validityChanged as G, claimInvalidFocus as H, labelsOf as I, elementMoved as J, inDocumentOrder as K, selectedKeys as L, subscribe as M, connect as N, present as O, attrs as P, conditional as Q, bind as R, portalTarget as S, writeStyle as T, attachFormInternals as U, watchFormDisabled as a, watchers as b, composedClosest as c, watchEarlier as d, isDisabledElement as e, isApple as f, watchFieldsets as g, whenKept as h, isDisabled as i, join as j, withLifecycle as k, createStore as l, standFor as m, watchWhileKept as n, on as o, partState as p, discard as q, renders as r, sameValue as s, whileDestroying as t, heldState as u, provisional as v, withSource as w, propsRendered as x, extendLifecycle as y, createDetails as z };
|
|
954
|
+
//# sourceMappingURL=platform-DHfE4Fvo.js.map
|