@vokril/ui-solid 0.5.0 → 0.8.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/CHANGELOG.md +65 -0
- package/README.md +20 -1
- package/dist/AttributeGrid-Bnn1w5XX.cjs +1 -0
- package/dist/AttributeGrid-DJdW32LQ.js +320 -0
- package/dist/CommandPalette-BBDBVARB.cjs +2 -0
- package/dist/CommandPalette-e6FePgys.js +3950 -0
- package/dist/{DateRangePicker-jnZfDhQA.js → DateRangePicker-BcqoUao4.js} +4 -4
- package/dist/{DateRangePicker-CHrwr34H.cjs → DateRangePicker-DHI3SNna.cjs} +1 -1
- package/dist/{GuidedTour-DHgMaTVv.js → GuidedTour-B-BXe3ul.js} +2239 -2223
- package/dist/{GuidedTour-B-67TJlO.cjs → GuidedTour-c7XiyOmE.cjs} +7 -7
- package/dist/{IconPicker-C_gAGvo0.cjs → IconPicker-D2dZK0n3.cjs} +1 -1
- package/dist/{IconPicker-BxofGXCS.js → IconPicker-Fd2IE2Dm.js} +2 -2
- package/dist/Input-BEnk4FCF.cjs +1 -0
- package/dist/Input-PZ5wRvPx.js +227 -0
- package/dist/{Modal-BmtEt5Yo.js → Modal-CsiV55WW.js} +1 -1
- package/dist/{Modal-BSSY6C3D.cjs → Modal-DpDHzCWT.cjs} +1 -1
- package/dist/{Popover-Cg8LZCYo.js → Popover-C3dFuObM.js} +49 -45
- package/dist/Popover-Dbi7L860.cjs +1 -0
- package/dist/{SearchableSelect-ByCRBEZI.js → SearchableSelect-C6KL7e42.js} +2 -2
- package/dist/{SearchableSelect-9pgcO5JS.cjs → SearchableSelect-zT8XNpmt.cjs} +1 -1
- package/dist/{StatusBarNotificationBell-DpTaPcoW.cjs → StatusBarNotificationBell-2bIRvg2s.cjs} +1 -1
- package/dist/{StatusBarNotificationBell-Czirj1Df.js → StatusBarNotificationBell-B5knnCWK.js} +5 -5
- package/dist/{Stepper-CrTxBpDL.js → Stepper-B26aF0bA.js} +1 -1
- package/dist/{Stepper-C3dnwwiV.cjs → Stepper-Bl8P6HJx.cjs} +1 -1
- package/dist/Textarea-BUxibzkR.js +42 -0
- package/dist/Textarea-BunKEY68.cjs +1 -0
- package/dist/{ToggleButton-CFvMUndy.cjs → ToggleButton-DuKoI5PE.cjs} +1 -1
- package/dist/{ToggleButton-DBWFnm_R.js → ToggleButton-DwvUV2en.js} +6 -6
- package/dist/base.css +0 -1
- package/dist/{createResizableSidebar-uf_OJsjO.js → createResizableSidebar-B22SKv9b.js} +1 -1
- package/dist/{createResizableSidebar-DVATOkMf.cjs → createResizableSidebar-C3I0HSwo.cjs} +1 -1
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +2 -2
- package/dist/{dialogFocusRestore-DKxaV82N.js → dialogFocusRestore-B4ggeVAM.js} +1 -1
- package/dist/{dialogFocusRestore-BAF8QM6v.cjs → dialogFocusRestore-BcMPrbig.cjs} +1 -1
- package/dist/format-Dih0q9gm.cjs +1 -0
- package/dist/{format-Dd946oS-.js → format-UGlMj0HW.js} +91 -88
- package/dist/forms/formFieldContext.d.cts +15 -0
- package/dist/forms/formFieldContext.d.ts +15 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +41 -40
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.d.cts +1 -0
- package/dist/grid/index.d.ts +1 -0
- package/dist/grid/index.js +7 -6
- package/dist/grid/resultTabToolbarClasses.d.cts +47 -0
- package/dist/grid/resultTabToolbarClasses.d.ts +47 -0
- package/dist/iconScale.module-C3O0bxfp.js +13 -0
- package/dist/iconScale.module-CzmKG1rf.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1106 -1008
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +2 -2
- package/dist/overlay/DropdownMenu.d.cts +15 -1
- package/dist/overlay/DropdownMenu.d.ts +15 -1
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -0
- package/dist/overlay/index.d.ts +2 -0
- package/dist/overlay/index.js +132 -122
- package/dist/overlay/menu/MenuParts.d.cts +121 -0
- package/dist/overlay/menu/MenuParts.d.ts +121 -0
- package/dist/overlay/menu/index.d.cts +2 -0
- package/dist/overlay/menu/index.d.ts +2 -0
- package/dist/overlay/menu/menuSurfaceClasses.d.cts +28 -0
- package/dist/overlay/menu/menuSurfaceClasses.d.ts +28 -0
- package/dist/overlay/overlayStack.d.cts +6 -0
- package/dist/overlay/overlayStack.d.ts +6 -0
- package/dist/overlay/panelClasses.d.cts +50 -0
- package/dist/overlay/panelClasses.d.ts +50 -0
- package/dist/overlay/popover/PopoverPanel.d.cts +103 -0
- package/dist/overlay/popover/PopoverPanel.d.ts +103 -0
- package/dist/overlay/popover/index.d.cts +2 -0
- package/dist/overlay/popover/index.d.ts +2 -0
- package/dist/overlay/popover/popoverFocusNavigation.d.cts +6 -2
- package/dist/overlay/popover/popoverFocusNavigation.d.ts +6 -2
- package/dist/overlay-stack/index.cjs +1 -1
- package/dist/overlay-stack/index.js +1 -1
- package/dist/overlayStack-DvGdPMdq.js +203 -0
- package/dist/overlayStack-DvKYN7SD.cjs +1 -0
- package/dist/server/AttributeGrid-BCYNwNjw.js +281 -0
- package/dist/server/AttributeGrid-BVAQshm3.cjs +1 -0
- package/dist/server/CommandPalette-4RCiBlmz.js +3210 -0
- package/dist/server/CommandPalette-Dd8AW-WZ.cjs +1 -0
- package/dist/server/{DateRangePicker-BK2Ul2uy.js → DateRangePicker-TW0Dy4u6.js} +4 -4
- package/dist/server/{DateRangePicker-s-I_rNUK.cjs → DateRangePicker-sX2m4194.cjs} +1 -1
- package/dist/server/{GuidedTour-BvDY-xaZ.js → GuidedTour-Bc7SqDXY.js} +756 -740
- package/dist/server/{GuidedTour-zesfTSmE.cjs → GuidedTour-DvMqeZIU.cjs} +8 -8
- package/dist/server/{IconPicker-Bw8tZjCl.cjs → IconPicker-Bat7VYeo.cjs} +1 -1
- package/dist/server/{IconPicker-BCUZcq-i.js → IconPicker-Dw4tbosO.js} +2 -2
- package/dist/server/Input-CjvD8w18.cjs +1 -0
- package/dist/server/Input-DaEN2JJd.js +127 -0
- package/dist/server/{Modal-CM54uXRu.js → Modal-Jf89av-C.js} +2 -2
- package/dist/server/{Modal-R86Fb2mX.cjs → Modal-W2cb3Xrx.cjs} +1 -1
- package/dist/server/{Popover-CTnX42Jq.js → Popover-BRU2E-ek.js} +17 -13
- package/dist/server/Popover-C2VwtQyu.cjs +1 -0
- package/dist/server/{SearchableSelect-Cog_rb31.js → SearchableSelect-0dP7bp0a.js} +2 -2
- package/dist/server/{SearchableSelect-fofn1Bjg.cjs → SearchableSelect-nMecJAYS.cjs} +1 -1
- package/dist/server/{StatusBarNotificationBell-Mh81s2kG.js → StatusBarNotificationBell-Bk9ETGFK.js} +5 -5
- package/dist/server/{StatusBarNotificationBell-COaYD8sz.cjs → StatusBarNotificationBell-t7B7rSrd.cjs} +1 -1
- package/dist/server/{Stepper-BdOBuNco.js → Stepper-CJIoTXSv.js} +1 -1
- package/dist/server/{Stepper-DqwKOszc.cjs → Stepper-RFkjF_fm.cjs} +1 -1
- package/dist/server/Textarea-BQf2lL59.cjs +1 -0
- package/dist/server/Textarea-BTH48NET.js +37 -0
- package/dist/server/{ToggleButton-B0YuAGY4.js → ToggleButton-BAhucFQT.js} +6 -6
- package/dist/server/{ToggleButton-CbX1kbpI.cjs → ToggleButton-D9IXRIdl.cjs} +1 -1
- package/dist/server/{createResizableSidebar-D28fY_SX.cjs → createResizableSidebar-BymQA2Fs.cjs} +1 -1
- package/dist/server/{createResizableSidebar-BfTFOM7v.js → createResizableSidebar-IcXBM-BE.js} +1 -1
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +2 -2
- package/dist/server/{dialogFocusRestore-DKxaV82N.js → dialogFocusRestore-B4ggeVAM.js} +1 -1
- package/dist/server/{dialogFocusRestore-BAF8QM6v.cjs → dialogFocusRestore-BcMPrbig.cjs} +1 -1
- package/dist/server/format-CW_FVfq2.js +385 -0
- package/dist/server/format-x-8syaS2.cjs +1 -0
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +41 -40
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +7 -6
- package/dist/server/iconScale.module-C3O0bxfp.js +13 -0
- package/dist/server/iconScale.module-CzmKG1rf.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +1442 -1344
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +2 -2
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +131 -121
- package/dist/server/overlay-stack/index.cjs +1 -1
- package/dist/server/overlay-stack/index.js +1 -1
- package/dist/server/overlayStack-DvGdPMdq.js +203 -0
- package/dist/server/overlayStack-DvKYN7SD.cjs +1 -0
- package/dist/server/{useFloatingDropdown-HD3G-ECb.js → useFloatingDropdown-BN4J092P.js} +1 -1
- package/dist/server/{useFloatingDropdown-vYQiMh6N.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
- package/dist/solid/forms/Checkbox.jsx +5 -2
- package/dist/solid/forms/Input.jsx +5 -2
- package/dist/solid/forms/Textarea.jsx +5 -2
- package/dist/solid/forms/formFieldContext.js +7 -0
- package/dist/solid/grid/index.js +1 -0
- package/dist/solid/grid/resultTabToolbarClasses.js +33 -0
- package/dist/solid/index.js +1 -0
- package/dist/solid/overlay/DropdownMenu.jsx +48 -26
- package/dist/solid/overlay/DropdownMenu.module.css.js +1 -7
- package/dist/solid/overlay/index.js +2 -0
- package/dist/solid/overlay/menu/MenuParts.jsx +140 -0
- package/dist/solid/overlay/menu/MenuParts.module.css.js +34 -0
- package/dist/solid/overlay/menu/index.js +2 -0
- package/dist/solid/overlay/menu/menuSurfaceClasses.js +16 -0
- package/dist/solid/overlay/overlayStack.js +10 -3
- package/dist/solid/overlay/panelClasses.js +29 -0
- package/dist/solid/overlay/popover/Popover.jsx +1 -1
- package/dist/solid/overlay/popover/PopoverPanel.jsx +95 -0
- package/dist/solid/overlay/popover/PopoverPanel.module.css.js +22 -0
- package/dist/solid/overlay/popover/index.js +1 -0
- package/dist/solid/overlay/popover/popoverFocusNavigation.js +7 -1
- package/dist/solid/styles/detachedLayout.module.css.js +8 -0
- package/dist/solid/styles/detachedLayoutClasses.js +8 -0
- package/dist/solid/styles/hljsTheme.module.css.js +4 -0
- package/dist/solid/styles/hljsThemeClasses.js +4 -0
- package/dist/solid/styles/iconScaleClasses.js +11 -0
- package/dist/solid/styles/index.js +5 -0
- package/dist/solid/styles/menuSurface.module.css.js +17 -0
- package/dist/solid/styles/recordTable.module.css.js +6 -0
- package/dist/solid/styles/recordTableClasses.js +6 -0
- package/dist/solid/styles/widgetChrome.module.css.js +13 -0
- package/dist/solid/styles/widgetChromeClasses.js +13 -0
- package/dist/solid/widgets/index.js +1 -0
- package/dist/solid/widgets/settingsFieldClasses.js +26 -0
- package/dist/style.css +2 -2
- package/dist/styles/detachedLayoutClasses.d.cts +17 -0
- package/dist/styles/detachedLayoutClasses.d.ts +17 -0
- package/dist/styles/hljsThemeClasses.d.cts +11 -0
- package/dist/styles/hljsThemeClasses.d.ts +11 -0
- package/dist/styles/iconScaleClasses.d.cts +19 -0
- package/dist/styles/iconScaleClasses.d.ts +19 -0
- package/dist/styles/index.d.cts +5 -0
- package/dist/styles/index.d.ts +5 -0
- package/dist/styles/recordTableClasses.d.cts +17 -0
- package/dist/styles/recordTableClasses.d.ts +17 -0
- package/dist/styles/widgetChromeClasses.d.cts +31 -0
- package/dist/styles/widgetChromeClasses.d.ts +31 -0
- package/dist/theme.css +1 -1
- package/dist/tokens/tokens.css +1 -1
- package/dist/ui.css +1 -1
- package/dist/{useFloatingDropdown-CaQNfmfZ.js → useFloatingDropdown-CfPEYRut.js} +1 -1
- package/dist/{useFloatingDropdown-BKckfuUv.cjs → useFloatingDropdown-DcU7ozDg.cjs} +1 -1
- package/dist/widgets/index.d.cts +1 -0
- package/dist/widgets/index.d.ts +1 -0
- package/dist/widgets/settingsFieldClasses.d.cts +41 -0
- package/dist/widgets/settingsFieldClasses.d.ts +41 -0
- package/package.json +1 -1
- package/dist/AttributeGrid-BUyv-hUX.js +0 -260
- package/dist/AttributeGrid-Tk8KJx8e.cjs +0 -1
- package/dist/CommandPalette-CIAqAbBE.cjs +0 -2
- package/dist/CommandPalette-l_vmlEnR.js +0 -3371
- package/dist/Input-BqiQPUxA.js +0 -215
- package/dist/Input-BrxV_Xcb.cjs +0 -1
- package/dist/Popover-B8ozGuDX.cjs +0 -1
- package/dist/Textarea-CXFZz3Oe.js +0 -36
- package/dist/Textarea-vl5fZzJa.cjs +0 -1
- package/dist/format-aHRZi12I.cjs +0 -1
- package/dist/iconScale.module-BA7n9qSH.cjs +0 -1
- package/dist/iconScale.module-Cw_Yn8O6.js +0 -10
- package/dist/overlayStack-BZR1emYS.cjs +0 -1
- package/dist/overlayStack-ND6EQZlX.js +0 -196
- package/dist/server/AttributeGrid-CSidAjfz.cjs +0 -1
- package/dist/server/AttributeGrid-D6b2qQS9.js +0 -221
- package/dist/server/CommandPalette-9dL9DSG8.js +0 -2704
- package/dist/server/CommandPalette-Q296oZjU.cjs +0 -1
- package/dist/server/Input-Cxwc5CK4.js +0 -115
- package/dist/server/Input-k-IAQ5Wp.cjs +0 -1
- package/dist/server/Popover-BkZ9n6TA.cjs +0 -1
- package/dist/server/Textarea-DAoq3wWf.cjs +0 -1
- package/dist/server/Textarea-D_1mHXTj.js +0 -31
- package/dist/server/format-BWHKiXRe.cjs +0 -1
- package/dist/server/format-BubrMUMq.js +0 -382
- package/dist/server/iconScale.module-BA7n9qSH.cjs +0 -1
- package/dist/server/iconScale.module-Cw_Yn8O6.js +0 -10
- package/dist/server/overlayStack-BZR1emYS.cjs +0 -1
- package/dist/server/overlayStack-ND6EQZlX.js +0 -196
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("solid-js/web"),M=require("./Input-BEnk4FCF.cjs"),u=require("solid-js"),P=require("./dialogFocusRestore-BcMPrbig.cjs"),I=require("./windowRegistry-CGvOBUsw.cjs"),j=require("./Kbd-BDZklpw9.cjs"),_=require("./tooltipCoordinator-y5YP3tsJ.cjs"),G=require("./keys-BeeC5_RZ.cjs"),J=require("./prefersReducedMotion-BQp-Q4UR.cjs"),W=require("./Modal-DpDHzCWT.cjs"),Q="vk_root_w-T1s",Z="vk_disabled_kl1Jx",ee="vk_box_mOCAD",te="vk_checked_YZgPy",oe="vk_control_748Lw",ie="vk_input_Ysj9i",ne="vk_indicator_lYKVu",re="vk_label_jB-PM",p={root:Q,disabled:Z,box:ee,checked:te,control:oe,input:ie,indicator:ne,label:re};function Y(e,r,l,c,a,...h){const v=[];e&&v.push(e),c&&r&&v.push(r),a&&l&&v.push(l);for(const o of h)o!==void 0&&o!==""&&v.push(o);return v.join(" ")}var le=t.template("<span>"),ae=t.template("<label><span><input type=checkbox><span aria-hidden=true><span>");function se(e){const r=M.useFormFieldAria();return(()=>{var l=ae(),c=l.firstChild,a=c.firstChild,h=a.nextSibling,v=h.firstChild;return a.addEventListener("change",o=>{const m=o.currentTarget;e.onChange(m.checked),m.indeterminate=!!e.indeterminate}),t.use(o=>u.createRenderEffect(()=>{o.indeterminate=!!e.indeterminate}),a),t.insert(l,t.createComponent(u.Show,{get when(){return e.children!==void 0},get children(){var o=le();return t.insert(o,()=>e.children),t.effect(()=>t.className(o,p.label)),o}}),null),t.effect(o=>{var m=Y(p.root,p.checked,p.disabled,e.checked||!!e.indeterminate,!!e.disabled,e.class),d=p.control,w=e.id,f=`${p.input} ${e.inputClass??""}`,y=e.disabled,L=r==null?void 0:r.describedBy(),g=e.ariaLabel,E=M.nativeControlLabelledBy(r,{ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabelledBy}),C=`${p.box} ${e.boxClass??""}`,T=p.indicator;return m!==o.e&&t.className(l,o.e=m),d!==o.t&&t.className(c,o.t=d),w!==o.a&&t.setAttribute(a,"id",o.a=w),f!==o.o&&t.className(a,o.o=f),y!==o.i&&(a.disabled=o.i=y),L!==o.n&&t.setAttribute(a,"aria-describedby",o.n=L),g!==o.s&&t.setAttribute(a,"aria-label",o.s=g),E!==o.h&&t.setAttribute(a,"aria-labelledby",o.h=E),C!==o.r&&t.className(h,o.r=C),T!==o.d&&t.className(v,o.d=T),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0}),t.effect(()=>a.checked=e.checked),l})()}const ce="vk_trigger_--BjF",de="vk_tooltip_eJQhN",ue="vk_hostTooltip_vLrNc",he="vk_tooltipInner_AyPkl",k={trigger:ce,tooltip:de,hostTooltip:ue,tooltipInner:he},H=12,R=16,O=8,N=620;function $(e){const r=e.tooltipWidth??N,l=e.tooltipWidth===void 0?e.viewportWidth:e.viewportWidth-O,c=Math.min(e.pointerX+H,l-r),a=Math.max(O,c),h=e.pointerY+R,v=e.tooltipHeight??0,o=e.viewportHeight===void 0?h:Math.max(O,e.viewportHeight-v-O),m=e.aboveY===void 0?h:e.aboveY-v-R,d=e.viewportHeight!==void 0&&h>o?Math.max(O,Math.min(m,o)):Math.max(O,Math.min(h,o));return{left:a,top:d}}var ve=t.template("<span>"),me=t.template("<div><span>"),fe=t.template("<div role=tooltip>");const ge=1e3,Te=180;function be(e){const r=u.createUniqueId(),[l,c]=u.createSignal(!1),[a,h]=u.createSignal({x:0,y:0}),[v,o]=u.createSignal(),[m,d]=u.createSignal({width:0,height:0}),[w,f]=u.createSignal(!1);let y,L,g,E;const C=()=>I.getWindow(g),T=()=>{y!==void 0&&(C().clearTimeout(y),y=void 0)},S=()=>{L!==void 0&&(C().clearTimeout(L),L=void 0)},x=()=>{S(),L=C().setTimeout(()=>{c(!1),_.tooltipCoordinator.recordTooltipHidden()},Te)},q=i=>{if(!e.content)return;S();const n=i.clientX,s=i.clientY;T(),_.tooltipCoordinator.activeTooltip()&&_.tooltipCoordinator.hideTooltip();const b=_.tooltipCoordinator.isWarm()?0:e.delayMs??ge;y=C().setTimeout(()=>{h({x:n,y:s}),o(s),c(!0),_.tooltipCoordinator.recordTooltipShown()},b)},B=i=>{l()||h({x:i.clientX,y:i.clientY})},X=()=>{T(),l()&&x()},U=()=>{S()},V=()=>{x()},z=()=>{if(!e.content)return;S(),T(),_.tooltipCoordinator.activeTooltip()&&_.tooltipCoordinator.hideTooltip();const i=g==null?void 0:g.getBoundingClientRect();i&&(h({x:i.left,y:i.bottom}),o(i.top)),c(!0),_.tooltipCoordinator.recordTooltipShown()},K=()=>{T(),l()&&x()};return u.createEffect(()=>{_.tooltipCoordinator.activeTooltip()&&l()&&(c(!1),T())}),u.createEffect(()=>{if(!l())return;const i=()=>{c(!1)},n=b=>{G.isKey(b,"Escape")&&(b.stopPropagation(),b.stopImmediatePropagation(),T(),c(!1),_.tooltipCoordinator.dismissAll())},s=I.getWindow(g);s.addEventListener("scroll",i,!0),s.addEventListener("resize",i),s.addEventListener("keydown",n,!0),u.onCleanup(()=>{s.removeEventListener("scroll",i,!0),s.removeEventListener("resize",i),s.removeEventListener("keydown",n,!0)})}),u.onCleanup(()=>{T(),S()}),[(()=>{var i=ve();return i.$$focusout=K,i.$$focusin=z,i.addEventListener("mouseleave",X),i.$$mousemove=B,i.addEventListener("mouseenter",q),t.use(n=>{g=n;const s=n.querySelector('button, a[href], input, select, textarea, [tabindex]:not([tabindex="-1"])');f(s!==null)},i),t.insert(i,()=>e.children),t.effect(n=>{var s=k.trigger,b=w()?void 0:0,F=l()?r:void 0;return s!==n.e&&t.className(i,n.e=s),b!==n.t&&t.setAttribute(i,"tabindex",n.t=b),F!==n.a&&t.setAttribute(i,"aria-describedby",n.a=F),n},{e:void 0,t:void 0,a:void 0}),i})(),t.createComponent(u.Show,{get when(){return t.memo(()=>!!l())()&&e.content},get children(){return t.createComponent(P.OverlayPortal,{type:"tooltip",get mount(){return I.getWindow(g).document.body},element:()=>E,idPrefix:"hover-tooltip",get children(){var i=fe();return i.addEventListener("mouseleave",V),i.addEventListener("mouseenter",U),t.use(n=>{E=n;const s=n.getBoundingClientRect();d({width:s.width,height:s.height})},i),t.setAttribute(i,"id",r),t.insert(i,t.createComponent(u.Show,{get when(){return e.shortcut},get fallback(){return e.content},get children(){var n=me(),s=n.firstChild;return t.insert(s,()=>e.content),t.insert(n,t.createComponent(j.Kbd,{size:"xs",get shortcut(){return e.shortcut}}),null),t.effect(()=>t.className(n,k.tooltipInner)),n}})),t.effect(n=>{var s=k.tooltip,b=(()=>{const F=v(),D=$({pointerX:a().x,pointerY:a().y,viewportWidth:C().innerWidth,viewportHeight:C().innerHeight,tooltipWidth:m().width,tooltipHeight:m().height,...F!==void 0?{aboveY:F}:{}});return{top:`${D.top}px`,left:`${D.left}px`}})();return s!==n.e&&t.className(i,n.e=s),n.t=t.style(i,b,n.t),n},{e:void 0,t:void 0}),i}})}})]}t.delegateEvents(["mousemove","focusin","focusout"]);function _e(e){let r=null,l=null,c=null,a=null;const h=()=>{var d;a!==null&&((d=e.ownerDocument().defaultView)==null||d.cancelAnimationFrame(a),a=null)},v=()=>{h(),c==null||c(),c=null},o=d=>{r=d,l??(l=e.ownerDocument().activeElement)};u.createEffect(u.on(()=>e.open(),(d,w)=>{if(d){r!==null&&c===null&&(c=J.neutralizeBackground(r)),h();const f=e.ownerDocument().defaultView;r!==null&&f!==null&&(a=f.requestAnimationFrame(()=>{a=null,e.open()&&(r==null||r.focus())}));return}w===!0&&(v(),P.restoreFocusTo(l),l=null,r=null)}));const m=d=>{var f;const w=W.resolveDialogShellKeyIntent(d.key,{confirmOnEnter:!1});if(w==="dismiss"){if(((f=e.dismissDisabled)==null?void 0:f.call(e))===!0)return;d.stopPropagation(),e.onDismiss();return}w==="trap"&&r!==null&&W.trapTabFocusWithin(r,d)};return u.onCleanup(()=>{v(),P.restoreFocusTo(l),l=null,r=null}),{captureDialog:o,handleKeyDown:m}}function A(){try{return new Intl.DateTimeFormat().resolvedOptions().locale}catch{return"en-US"}}function we(e,r){return e.toLocaleDateString(A(),r)}function Ce(e,r){return e.toLocaleString(A(),r)}exports.Checkbox=se;exports.HoverTooltip=be;exports.TOOLTIP_CURSOR_OFFSET_X=H;exports.TOOLTIP_CURSOR_OFFSET_Y=R;exports.TOOLTIP_MAX_FOOTPRINT_X=N;exports.TOOLTIP_VIEWPORT_MARGIN=O;exports.buildSelectionItemClass=Y;exports.computeTooltipPointerPosition=$;exports.createDialogShellFocus=_e;exports.formatDate=we;exports.formatDateTime=Ce;exports.styles=k;exports.systemFormatLocale=A;
|
|
@@ -1,51 +1,54 @@
|
|
|
1
|
-
import { use as
|
|
2
|
-
import { u as te } from "./Input-
|
|
3
|
-
import { createRenderEffect as
|
|
4
|
-
import { O as
|
|
1
|
+
import { use as B, insert as p, createComponent as D, effect as F, className as w, setAttribute as x, template as P, style as Q, memo as Z, delegateEvents as ee } from "solid-js/web";
|
|
2
|
+
import { u as te, n as oe } from "./Input-PZ5wRvPx.js";
|
|
3
|
+
import { createRenderEffect as ie, Show as M, createUniqueId as ne, createSignal as I, createEffect as W, onCleanup as A, on as re } from "solid-js";
|
|
4
|
+
import { O as le, r as X } from "./dialogFocusRestore-B4ggeVAM.js";
|
|
5
5
|
import { b as Y } from "./windowRegistry-Bk5lXIVd.js";
|
|
6
|
-
import { K as
|
|
6
|
+
import { K as ae } from "./Kbd-DF6Tvp8V.js";
|
|
7
7
|
import { t as b } from "./tooltipCoordinator-GV0L9lXH.js";
|
|
8
|
-
import { i as
|
|
9
|
-
import { n as
|
|
10
|
-
import { r as
|
|
11
|
-
const
|
|
12
|
-
root:
|
|
13
|
-
disabled:
|
|
14
|
-
box:
|
|
15
|
-
checked:
|
|
16
|
-
control:
|
|
17
|
-
input:
|
|
18
|
-
indicator:
|
|
19
|
-
label:
|
|
8
|
+
import { i as se } from "./keys-Bfgdfak_.js";
|
|
9
|
+
import { n as ce } from "./prefersReducedMotion-B2mMn01s.js";
|
|
10
|
+
import { r as de, t as ue } from "./Modal-CsiV55WW.js";
|
|
11
|
+
const ve = "vk_root_w-T1s", he = "vk_disabled_kl1Jx", me = "vk_box_mOCAD", fe = "vk_checked_YZgPy", ge = "vk_control_748Lw", be = "vk_input_Ysj9i", Te = "vk_indicator_lYKVu", _e = "vk_label_jB-PM", y = {
|
|
12
|
+
root: ve,
|
|
13
|
+
disabled: he,
|
|
14
|
+
box: me,
|
|
15
|
+
checked: fe,
|
|
16
|
+
control: ge,
|
|
17
|
+
input: be,
|
|
18
|
+
indicator: Te,
|
|
19
|
+
label: _e
|
|
20
20
|
};
|
|
21
|
-
function
|
|
21
|
+
function we(e, n, r, s, l, ...d) {
|
|
22
22
|
const u = [];
|
|
23
23
|
e && u.push(e), s && n && u.push(n), l && r && u.push(r);
|
|
24
24
|
for (const t of d)
|
|
25
25
|
t !== void 0 && t !== "" && u.push(t);
|
|
26
26
|
return u.join(" ");
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
function
|
|
28
|
+
var ye = /* @__PURE__ */ P("<span>"), Le = /* @__PURE__ */ P("<label><span><input type=checkbox><span aria-hidden=true><span>");
|
|
29
|
+
function Ve(e) {
|
|
30
30
|
const n = te();
|
|
31
31
|
return (() => {
|
|
32
|
-
var r =
|
|
32
|
+
var r = Le(), s = r.firstChild, l = s.firstChild, d = l.nextSibling, u = d.firstChild;
|
|
33
33
|
return l.addEventListener("change", (t) => {
|
|
34
34
|
const v = t.currentTarget;
|
|
35
35
|
e.onChange(v.checked), v.indeterminate = !!e.indeterminate;
|
|
36
|
-
}),
|
|
36
|
+
}), B((t) => ie(() => {
|
|
37
37
|
t.indeterminate = !!e.indeterminate;
|
|
38
|
-
}), l), p(r, D(
|
|
38
|
+
}), l), p(r, D(M, {
|
|
39
39
|
get when() {
|
|
40
40
|
return e.children !== void 0;
|
|
41
41
|
},
|
|
42
42
|
get children() {
|
|
43
|
-
var t =
|
|
43
|
+
var t = ye();
|
|
44
44
|
return p(t, () => e.children), F(() => w(t, y.label)), t;
|
|
45
45
|
}
|
|
46
46
|
}), null), F((t) => {
|
|
47
|
-
var v =
|
|
48
|
-
|
|
47
|
+
var v = we(y.root, y.checked, y.disabled, e.checked || !!e.indeterminate, !!e.disabled, e.class), c = y.control, T = e.id, h = `${y.input} ${e.inputClass ?? ""}`, L = e.disabled, k = n == null ? void 0 : n.describedBy(), m = e.ariaLabel, O = oe(n, {
|
|
48
|
+
ariaLabel: e.ariaLabel,
|
|
49
|
+
ariaLabelledBy: e.ariaLabelledBy
|
|
50
|
+
}), _ = `${y.box} ${e.boxClass ?? ""}`, f = y.indicator;
|
|
51
|
+
return v !== t.e && w(r, t.e = v), c !== t.t && w(s, t.t = c), T !== t.a && x(l, "id", t.a = T), h !== t.o && w(l, t.o = h), L !== t.i && (l.disabled = t.i = L), k !== t.n && x(l, "aria-describedby", t.n = k), m !== t.s && x(l, "aria-label", t.s = m), O !== t.h && x(l, "aria-labelledby", t.h = O), _ !== t.r && w(d, t.r = _), f !== t.d && w(u, t.d = f), t;
|
|
49
52
|
}, {
|
|
50
53
|
e: void 0,
|
|
51
54
|
t: void 0,
|
|
@@ -60,48 +63,48 @@ function Ke(e) {
|
|
|
60
63
|
}), F(() => l.checked = e.checked), r;
|
|
61
64
|
})();
|
|
62
65
|
}
|
|
63
|
-
const ke = "vk_trigger_--BjF", xe = "vk_tooltip_eJQhN", Ee = "vk_hostTooltip_vLrNc",
|
|
66
|
+
const ke = "vk_trigger_--BjF", xe = "vk_tooltip_eJQhN", Ee = "vk_hostTooltip_vLrNc", pe = "vk_tooltipInner_AyPkl", $ = {
|
|
64
67
|
trigger: ke,
|
|
65
68
|
tooltip: xe,
|
|
66
69
|
hostTooltip: Ee,
|
|
67
|
-
tooltipInner:
|
|
68
|
-
},
|
|
69
|
-
function
|
|
70
|
-
const n = e.tooltipWidth ??
|
|
71
|
-
e.pointerX +
|
|
70
|
+
tooltipInner: pe
|
|
71
|
+
}, Fe = 12, z = 16, E = 8, Oe = 620;
|
|
72
|
+
function Ce(e) {
|
|
73
|
+
const n = e.tooltipWidth ?? Oe, r = e.tooltipWidth === void 0 ? e.viewportWidth : e.viewportWidth - E, s = Math.min(
|
|
74
|
+
e.pointerX + Fe,
|
|
72
75
|
r - n
|
|
73
|
-
), l = Math.max(
|
|
74
|
-
|
|
75
|
-
e.viewportHeight - u -
|
|
76
|
-
), v = e.aboveY === void 0 ? d : e.aboveY - u - z, c = e.viewportHeight !== void 0 && d > t ? Math.max(
|
|
76
|
+
), l = Math.max(E, s), d = e.pointerY + z, u = e.tooltipHeight ?? 0, t = e.viewportHeight === void 0 ? d : Math.max(
|
|
77
|
+
E,
|
|
78
|
+
e.viewportHeight - u - E
|
|
79
|
+
), v = e.aboveY === void 0 ? d : e.aboveY - u - z, c = e.viewportHeight !== void 0 && d > t ? Math.max(E, Math.min(v, t)) : Math.max(E, Math.min(d, t));
|
|
77
80
|
return { left: l, top: c };
|
|
78
81
|
}
|
|
79
|
-
var Se = /* @__PURE__ */ P("<span>"),
|
|
80
|
-
const
|
|
81
|
-
function
|
|
82
|
-
const n =
|
|
82
|
+
var Se = /* @__PURE__ */ P("<span>"), Ie = /* @__PURE__ */ P("<div><span>"), De = /* @__PURE__ */ P("<div role=tooltip>");
|
|
83
|
+
const Pe = 1e3, He = 180;
|
|
84
|
+
function Ne(e) {
|
|
85
|
+
const n = ne(), [r, s] = I(!1), [l, d] = I({
|
|
83
86
|
x: 0,
|
|
84
87
|
y: 0
|
|
85
88
|
}), [u, t] = I(), [v, c] = I({
|
|
86
89
|
width: 0,
|
|
87
90
|
height: 0
|
|
88
91
|
}), [T, h] = I(!1);
|
|
89
|
-
let
|
|
92
|
+
let L, k, m, O;
|
|
90
93
|
const _ = () => Y(m), f = () => {
|
|
94
|
+
L !== void 0 && (_().clearTimeout(L), L = void 0);
|
|
95
|
+
}, C = () => {
|
|
91
96
|
k !== void 0 && (_().clearTimeout(k), k = void 0);
|
|
92
|
-
}, S = () => {
|
|
93
|
-
x !== void 0 && (_().clearTimeout(x), x = void 0);
|
|
94
97
|
}, H = () => {
|
|
95
|
-
|
|
98
|
+
C(), k = _().setTimeout(() => {
|
|
96
99
|
s(!1), b.recordTooltipHidden();
|
|
97
|
-
},
|
|
100
|
+
}, He);
|
|
98
101
|
}, V = (o) => {
|
|
99
102
|
if (!e.content) return;
|
|
100
|
-
|
|
103
|
+
C();
|
|
101
104
|
const i = o.clientX, a = o.clientY;
|
|
102
105
|
f(), b.activeTooltip() && b.hideTooltip();
|
|
103
|
-
const g = b.isWarm() ? 0 : e.delayMs ??
|
|
104
|
-
|
|
106
|
+
const g = b.isWarm() ? 0 : e.delayMs ?? Pe;
|
|
107
|
+
L = _().setTimeout(() => {
|
|
105
108
|
d({
|
|
106
109
|
x: i,
|
|
107
110
|
y: a
|
|
@@ -115,12 +118,12 @@ function Ve(e) {
|
|
|
115
118
|
}, U = () => {
|
|
116
119
|
f(), r() && H();
|
|
117
120
|
}, j = () => {
|
|
118
|
-
|
|
121
|
+
C();
|
|
119
122
|
}, q = () => {
|
|
120
123
|
H();
|
|
121
124
|
}, G = () => {
|
|
122
125
|
if (!e.content) return;
|
|
123
|
-
|
|
126
|
+
C(), f(), b.activeTooltip() && b.hideTooltip();
|
|
124
127
|
const o = m == null ? void 0 : m.getBoundingClientRect();
|
|
125
128
|
o && (d({
|
|
126
129
|
x: o.left,
|
|
@@ -129,40 +132,40 @@ function Ve(e) {
|
|
|
129
132
|
}, J = () => {
|
|
130
133
|
f(), r() && H();
|
|
131
134
|
};
|
|
132
|
-
return
|
|
135
|
+
return W(() => {
|
|
133
136
|
b.activeTooltip() && r() && (s(!1), f());
|
|
134
|
-
}),
|
|
137
|
+
}), W(() => {
|
|
135
138
|
if (!r()) return;
|
|
136
139
|
const o = () => {
|
|
137
140
|
s(!1);
|
|
138
141
|
}, i = (g) => {
|
|
139
|
-
|
|
142
|
+
se(g, "Escape") && (g.stopPropagation(), g.stopImmediatePropagation(), f(), s(!1), b.dismissAll());
|
|
140
143
|
}, a = Y(m);
|
|
141
|
-
a.addEventListener("scroll", o, !0), a.addEventListener("resize", o), a.addEventListener("keydown", i, !0),
|
|
144
|
+
a.addEventListener("scroll", o, !0), a.addEventListener("resize", o), a.addEventListener("keydown", i, !0), A(() => {
|
|
142
145
|
a.removeEventListener("scroll", o, !0), a.removeEventListener("resize", o), a.removeEventListener("keydown", i, !0);
|
|
143
146
|
});
|
|
144
|
-
}),
|
|
145
|
-
f(),
|
|
147
|
+
}), A(() => {
|
|
148
|
+
f(), C();
|
|
146
149
|
}), [(() => {
|
|
147
150
|
var o = Se();
|
|
148
|
-
return o.$$focusout = J, o.$$focusin = G, o.addEventListener("mouseleave", U), o.$$mousemove = N, o.addEventListener("mouseenter", V),
|
|
151
|
+
return o.$$focusout = J, o.$$focusin = G, o.addEventListener("mouseleave", U), o.$$mousemove = N, o.addEventListener("mouseenter", V), B((i) => {
|
|
149
152
|
m = i;
|
|
150
153
|
const a = i.querySelector('button, a[href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
151
154
|
h(a !== null);
|
|
152
155
|
}, o), p(o, () => e.children), F((i) => {
|
|
153
|
-
var a = $.trigger, g = T() ? void 0 : 0,
|
|
154
|
-
return a !== i.e && w(o, i.e = a), g !== i.t &&
|
|
156
|
+
var a = $.trigger, g = T() ? void 0 : 0, S = r() ? n : void 0;
|
|
157
|
+
return a !== i.e && w(o, i.e = a), g !== i.t && x(o, "tabindex", i.t = g), S !== i.a && x(o, "aria-describedby", i.a = S), i;
|
|
155
158
|
}, {
|
|
156
159
|
e: void 0,
|
|
157
160
|
t: void 0,
|
|
158
161
|
a: void 0
|
|
159
162
|
}), o;
|
|
160
|
-
})(), D(
|
|
163
|
+
})(), D(M, {
|
|
161
164
|
get when() {
|
|
162
165
|
return Z(() => !!r())() && e.content;
|
|
163
166
|
},
|
|
164
167
|
get children() {
|
|
165
|
-
return D(
|
|
168
|
+
return D(le, {
|
|
166
169
|
type: "tooltip",
|
|
167
170
|
get mount() {
|
|
168
171
|
return Y(m).document.body;
|
|
@@ -170,15 +173,15 @@ function Ve(e) {
|
|
|
170
173
|
element: () => O,
|
|
171
174
|
idPrefix: "hover-tooltip",
|
|
172
175
|
get children() {
|
|
173
|
-
var o =
|
|
174
|
-
return o.addEventListener("mouseleave", q), o.addEventListener("mouseenter", j),
|
|
176
|
+
var o = De();
|
|
177
|
+
return o.addEventListener("mouseleave", q), o.addEventListener("mouseenter", j), B((i) => {
|
|
175
178
|
O = i;
|
|
176
179
|
const a = i.getBoundingClientRect();
|
|
177
180
|
c({
|
|
178
181
|
width: a.width,
|
|
179
182
|
height: a.height
|
|
180
183
|
});
|
|
181
|
-
}, o),
|
|
184
|
+
}, o), x(o, "id", n), p(o, D(M, {
|
|
182
185
|
get when() {
|
|
183
186
|
return e.shortcut;
|
|
184
187
|
},
|
|
@@ -186,8 +189,8 @@ function Ve(e) {
|
|
|
186
189
|
return e.content;
|
|
187
190
|
},
|
|
188
191
|
get children() {
|
|
189
|
-
var i =
|
|
190
|
-
return p(a, () => e.content), p(i, D(
|
|
192
|
+
var i = Ie(), a = i.firstChild;
|
|
193
|
+
return p(a, () => e.content), p(i, D(ae, {
|
|
191
194
|
size: "xs",
|
|
192
195
|
get shortcut() {
|
|
193
196
|
return e.shortcut;
|
|
@@ -196,15 +199,15 @@ function Ve(e) {
|
|
|
196
199
|
}
|
|
197
200
|
})), F((i) => {
|
|
198
201
|
var a = $.tooltip, g = (() => {
|
|
199
|
-
const
|
|
202
|
+
const S = u(), R = Ce({
|
|
200
203
|
pointerX: l().x,
|
|
201
204
|
pointerY: l().y,
|
|
202
205
|
viewportWidth: _().innerWidth,
|
|
203
206
|
viewportHeight: _().innerHeight,
|
|
204
207
|
tooltipWidth: v().width,
|
|
205
208
|
tooltipHeight: v().height,
|
|
206
|
-
...
|
|
207
|
-
aboveY:
|
|
209
|
+
...S !== void 0 ? {
|
|
210
|
+
aboveY: S
|
|
208
211
|
} : {}
|
|
209
212
|
});
|
|
210
213
|
return {
|
|
@@ -223,7 +226,7 @@ function Ve(e) {
|
|
|
223
226
|
})];
|
|
224
227
|
}
|
|
225
228
|
ee(["mousemove", "focusin", "focusout"]);
|
|
226
|
-
function
|
|
229
|
+
function Ue(e) {
|
|
227
230
|
let n = null, r = null, s = null, l = null;
|
|
228
231
|
const d = () => {
|
|
229
232
|
var c;
|
|
@@ -233,12 +236,12 @@ function Ne(e) {
|
|
|
233
236
|
}, t = (c) => {
|
|
234
237
|
n = c, r ?? (r = e.ownerDocument().activeElement);
|
|
235
238
|
};
|
|
236
|
-
|
|
237
|
-
|
|
239
|
+
W(
|
|
240
|
+
re(
|
|
238
241
|
() => e.open(),
|
|
239
242
|
(c, T) => {
|
|
240
243
|
if (c) {
|
|
241
|
-
n !== null && s === null && (s =
|
|
244
|
+
n !== null && s === null && (s = ce(n)), d();
|
|
242
245
|
const h = e.ownerDocument().defaultView;
|
|
243
246
|
n !== null && h !== null && (l = h.requestAnimationFrame(() => {
|
|
244
247
|
l = null, e.open() && (n == null || n.focus());
|
|
@@ -251,7 +254,7 @@ function Ne(e) {
|
|
|
251
254
|
);
|
|
252
255
|
const v = (c) => {
|
|
253
256
|
var h;
|
|
254
|
-
const T =
|
|
257
|
+
const T = de(c.key, {
|
|
255
258
|
confirmOnEnter: !1
|
|
256
259
|
});
|
|
257
260
|
if (T === "dismiss") {
|
|
@@ -259,9 +262,9 @@ function Ne(e) {
|
|
|
259
262
|
c.stopPropagation(), e.onDismiss();
|
|
260
263
|
return;
|
|
261
264
|
}
|
|
262
|
-
T === "trap" && n !== null &&
|
|
265
|
+
T === "trap" && n !== null && ue(n, c);
|
|
263
266
|
};
|
|
264
|
-
return
|
|
267
|
+
return A(() => {
|
|
265
268
|
u(), X(r), r = null, n = null;
|
|
266
269
|
}), { captureDialog: t, handleKeyDown: v };
|
|
267
270
|
}
|
|
@@ -272,24 +275,24 @@ function K() {
|
|
|
272
275
|
return "en-US";
|
|
273
276
|
}
|
|
274
277
|
}
|
|
275
|
-
function
|
|
278
|
+
function je(e, n) {
|
|
276
279
|
return e.toLocaleDateString(K(), n);
|
|
277
280
|
}
|
|
278
|
-
function
|
|
281
|
+
function qe(e, n) {
|
|
279
282
|
return e.toLocaleString(K(), n);
|
|
280
283
|
}
|
|
281
284
|
export {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
+
Ve as C,
|
|
286
|
+
Ne as H,
|
|
287
|
+
Fe as T,
|
|
285
288
|
z as a,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
289
|
+
we as b,
|
|
290
|
+
Oe as c,
|
|
291
|
+
E as d,
|
|
292
|
+
Ce as e,
|
|
293
|
+
Ue as f,
|
|
294
|
+
je as g,
|
|
292
295
|
$ as h,
|
|
293
|
-
|
|
296
|
+
qe as i,
|
|
294
297
|
K as s
|
|
295
298
|
};
|
|
@@ -14,6 +14,12 @@ export interface FormFieldAria {
|
|
|
14
14
|
readonly hasError?: (() => boolean) | undefined;
|
|
15
15
|
/** Whether the field is marked as required. */
|
|
16
16
|
readonly required?: boolean | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the field draws a `<label>` around its control, which names a native input inside
|
|
19
|
+
* it. Default true (`FormField`); a field that lays the label out beside the control sets it
|
|
20
|
+
* to false, and native inputs then point `aria-labelledby` at the label.
|
|
21
|
+
*/
|
|
22
|
+
readonly wrapsControlInLabel?: boolean | undefined;
|
|
17
23
|
}
|
|
18
24
|
export declare const FormFieldAriaProvider: import("solid-js").ContextProviderComponent<FormFieldAria | undefined>;
|
|
19
25
|
/**
|
|
@@ -21,3 +27,12 @@ export declare const FormFieldAriaProvider: import("solid-js").ContextProviderCo
|
|
|
21
27
|
* a `FormField` (every control here is also used standalone).
|
|
22
28
|
*/
|
|
23
29
|
export declare function useFormFieldAria(): FormFieldAria | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* `aria-labelledby` for a native control (input, textarea, checkbox): the caller's own, else the
|
|
32
|
+
* field's label when the field does not wrap the control in a `<label>` and the caller gave no
|
|
33
|
+
* `aria-label`.
|
|
34
|
+
*/
|
|
35
|
+
export declare function nativeControlLabelledBy(field: FormFieldAria | undefined, own: {
|
|
36
|
+
readonly ariaLabel: string | undefined;
|
|
37
|
+
readonly ariaLabelledBy: string | undefined;
|
|
38
|
+
}): string | undefined;
|
|
@@ -14,6 +14,12 @@ export interface FormFieldAria {
|
|
|
14
14
|
readonly hasError?: (() => boolean) | undefined;
|
|
15
15
|
/** Whether the field is marked as required. */
|
|
16
16
|
readonly required?: boolean | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the field draws a `<label>` around its control, which names a native input inside
|
|
19
|
+
* it. Default true (`FormField`); a field that lays the label out beside the control sets it
|
|
20
|
+
* to false, and native inputs then point `aria-labelledby` at the label.
|
|
21
|
+
*/
|
|
22
|
+
readonly wrapsControlInLabel?: boolean | undefined;
|
|
17
23
|
}
|
|
18
24
|
export declare const FormFieldAriaProvider: import("solid-js").ContextProviderComponent<FormFieldAria | undefined>;
|
|
19
25
|
/**
|
|
@@ -21,3 +27,12 @@ export declare const FormFieldAriaProvider: import("solid-js").ContextProviderCo
|
|
|
21
27
|
* a `FormField` (every control here is also used standalone).
|
|
22
28
|
*/
|
|
23
29
|
export declare function useFormFieldAria(): FormFieldAria | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* `aria-labelledby` for a native control (input, textarea, checkbox): the caller's own, else the
|
|
32
|
+
* field's label when the field does not wrap the control in a `<label>` and the caller gave no
|
|
33
|
+
* `aria-label`.
|
|
34
|
+
*/
|
|
35
|
+
export declare function nativeControlLabelledBy(field: FormFieldAria | undefined, own: {
|
|
36
|
+
readonly ariaLabel: string | undefined;
|
|
37
|
+
readonly ariaLabelledBy: string | undefined;
|
|
38
|
+
}): string | undefined;
|
package/dist/forms/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../Button-X8QR6llv.cjs"),e=require("../ToggleButton-DuKoI5PE.cjs"),r=require("../Input-BEnk4FCF.cjs"),a=require("../format-Dih0q9gm.cjs"),n=require("../Textarea-BunKEY68.cjs"),l=require("../CopyButton-3cX5MHAf.cjs"),t=require("../SearchableSelect-zT8XNpmt.cjs"),c=require("../IconPicker-D2dZK0n3.cjs"),o=require("../DateRangePicker-DHI3SNna.cjs");exports.Button=i.Button;exports.ButtonGroup=e.ButtonGroup;exports.Combobox=e.Combobox;exports.DatePicker=e.DatePicker;exports.DateTimePicker=e.DateTimePicker;exports.Dropzone=e.Dropzone;exports.FilePickerButton=e.FilePickerButton;exports.FormField=e.FormField;exports.HiddenFileInput=e.HiddenFileInput;exports.MultiSearchableSelect=e.MultiSearchableSelect;exports.NumberInput=e.NumberInput;exports.PasswordInput=e.PasswordInput;exports.Picker=e.Picker;exports.RadioGroup=e.RadioGroup;exports.SearchField=e.SearchInput;exports.SearchInput=e.SearchInput;exports.SegmentedControl=e.SegmentedControl;exports.Slider=e.Slider;exports.SplitButton=e.SplitButton;exports.TagInput=e.TagInput;exports.Toggle=e.Toggle;exports.ToggleButton=e.ToggleButton;exports.clampToRange=e.clampToRange;exports.evaluatePassword=e.evaluatePassword;exports.formatFileSize=e.formatFileSize;exports.isFileAccepted=e.isFileAccepted;exports.nextOptionIndex=e.nextOptionIndex;exports.parseNumericInput=e.parseNumericInput;exports.FormFieldAriaProvider=r.FormFieldAriaProvider;exports.Input=r.Input;exports.PressableSurface=r.PressableSurface;exports.nativeControlLabelledBy=r.nativeControlLabelledBy;exports.useFormFieldAria=r.useFormFieldAria;exports.Checkbox=a.Checkbox;exports.buildSelectionItemClass=a.buildSelectionItemClass;exports.Textarea=n.Textarea;exports.CopyButton=l.CopyButton;exports.LISTBOX_NAVIGATION_KEYS=t.LISTBOX_NAVIGATION_KEYS;exports.SearchableSelect=t.SearchableSelect;exports.clampHighlightToOptions=t.clampHighlightToOptions;exports.firstSelectableIndex=t.firstSelectableIndex;exports.lastSelectableIndex=t.lastSelectableIndex;exports.nextSelectableIndex=t.nextSelectableIndex;exports.resolveHighlightForKey=t.resolveHighlightForKey;exports.IconPicker=c.IconPicker;exports.DateRangePicker=o.DateRangePicker;exports.endOfDay=o.endOfDay;exports.pickDayState=o.pickDayState;exports.startOfDay=o.startOfDay;
|
package/dist/forms/index.js
CHANGED
|
@@ -1,59 +1,60 @@
|
|
|
1
1
|
import { B as s } from "../Button-BZWXPn8y.js";
|
|
2
|
-
import { B as
|
|
3
|
-
import { F as
|
|
4
|
-
import { C as z, b as K } from "../format-
|
|
5
|
-
import { T as
|
|
6
|
-
import { C as
|
|
7
|
-
import { L as
|
|
8
|
-
import { I as
|
|
9
|
-
import { D as
|
|
2
|
+
import { B as o, C as r, D as l, a as i, b as n, F as p, c, H as u, M as m, N as d, P as S, d as x, R as I, S as f, S as b, e as F, f as g, g as P, T, h, i as B, j as k, k as C, l as D, m as y, n as O, p as A } from "../ToggleButton-DwvUV2en.js";
|
|
3
|
+
import { F as v, I as H, P as R, n as G, u as L } from "../Input-PZ5wRvPx.js";
|
|
4
|
+
import { C as z, b as K } from "../format-UGlMj0HW.js";
|
|
5
|
+
import { T as _ } from "../Textarea-BUxibzkR.js";
|
|
6
|
+
import { C as E } from "../CopyButton-D3dIRRnn.js";
|
|
7
|
+
import { L as X, S as Y, c as q, f as J, l as Q, n as U, r as W } from "../SearchableSelect-C6KL7e42.js";
|
|
8
|
+
import { I as $ } from "../IconPicker-Fd2IE2Dm.js";
|
|
9
|
+
import { D as ae, e as se, p as te, s as oe } from "../DateRangePicker-BcqoUao4.js";
|
|
10
10
|
export {
|
|
11
11
|
s as Button,
|
|
12
|
-
|
|
12
|
+
o as ButtonGroup,
|
|
13
13
|
z as Checkbox,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
r as Combobox,
|
|
15
|
+
E as CopyButton,
|
|
16
|
+
l as DatePicker,
|
|
17
|
+
ae as DateRangePicker,
|
|
18
|
+
i as DateTimePicker,
|
|
19
19
|
n as Dropzone,
|
|
20
20
|
p as FilePickerButton,
|
|
21
21
|
c as FormField,
|
|
22
|
-
|
|
22
|
+
v as FormFieldAriaProvider,
|
|
23
23
|
u as HiddenFileInput,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
$ as IconPicker,
|
|
25
|
+
H as Input,
|
|
26
|
+
X as LISTBOX_NAVIGATION_KEYS,
|
|
27
27
|
m as MultiSearchableSelect,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
d as NumberInput,
|
|
29
|
+
S as PasswordInput,
|
|
30
30
|
x as Picker,
|
|
31
|
-
|
|
31
|
+
R as PressableSurface,
|
|
32
32
|
I as RadioGroup,
|
|
33
33
|
f as SearchField,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
b as SearchInput,
|
|
35
|
+
Y as SearchableSelect,
|
|
36
|
+
F as SegmentedControl,
|
|
37
37
|
g as Slider,
|
|
38
38
|
P as SplitButton,
|
|
39
39
|
T as TagInput,
|
|
40
|
-
|
|
40
|
+
_ as Textarea,
|
|
41
41
|
h as Toggle,
|
|
42
|
-
|
|
42
|
+
B as ToggleButton,
|
|
43
43
|
K as buildSelectionItemClass,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
q as clampHighlightToOptions,
|
|
45
|
+
k as clampToRange,
|
|
46
|
+
se as endOfDay,
|
|
47
|
+
C as evaluatePassword,
|
|
48
|
+
J as firstSelectableIndex,
|
|
49
|
+
D as formatFileSize,
|
|
50
|
+
y as isFileAccepted,
|
|
51
|
+
Q as lastSelectableIndex,
|
|
52
|
+
G as nativeControlLabelledBy,
|
|
53
|
+
O as nextOptionIndex,
|
|
54
|
+
U as nextSelectableIndex,
|
|
54
55
|
A as parseNumericInput,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
te as pickDayState,
|
|
57
|
+
W as resolveHighlightForKey,
|
|
58
|
+
oe as startOfDay,
|
|
59
|
+
L as useFormFieldAria
|
|
59
60
|
};
|
package/dist/grid/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../AttributeGrid-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../AttributeGrid-Bnn1w5XX.cjs");exports.AttributeGrid=e.AttributeGrid;exports.Pagination=e.Pagination;exports.ToolbarSearchRow=e.ToolbarSearchRow;exports.ToolbarSearchToggle=e.ToolbarSearchToggle;exports.pageSizeOptionLabel=e.pageSizeOptionLabel;exports.resultTabToolbarClasses=e.resultTabToolbarClasses;
|
package/dist/grid/index.d.cts
CHANGED
package/dist/grid/index.d.ts
CHANGED
package/dist/grid/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as r, P as e, T as s, a as l, p as t, r as b } from "../AttributeGrid-DJdW32LQ.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
r as AttributeGrid,
|
|
4
|
+
e as Pagination,
|
|
5
|
+
s as ToolbarSearchRow,
|
|
6
|
+
l as ToolbarSearchToggle,
|
|
7
|
+
t as pageSizeOptionLabel,
|
|
8
|
+
b as resultTabToolbarClasses
|
|
8
9
|
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The class names of the result tab toolbar, the strip of view buttons, sort badges, filter field
|
|
3
|
+
* and trailing settings buttons above a result grid. The package draws only its filter field
|
|
4
|
+
* ({@link ToolbarSearchField}); a host that draws the rest of the strip, or a settings button that
|
|
5
|
+
* should match it, puts these classes on its own elements, next to its own class when it adds to
|
|
6
|
+
* them (a host stylesheet cannot `composes` from the package).
|
|
7
|
+
*
|
|
8
|
+
* The rules are unlayered and load with the package's stylesheet, before the host's own CSS, so an
|
|
9
|
+
* unlayered host rule of the same specificity on the same element wins. Some are descendant rules
|
|
10
|
+
* (`segmentedCapsule` › `toolbarBtn`), so both elements take their class from this map.
|
|
11
|
+
*/
|
|
12
|
+
export interface ResultTabToolbarClasses {
|
|
13
|
+
readonly toolbar: string;
|
|
14
|
+
readonly toolbarHorizontal: string;
|
|
15
|
+
readonly toolbarHorizontalBottom: string;
|
|
16
|
+
readonly toolbarVertical: string;
|
|
17
|
+
readonly toolbarVerticalRight: string;
|
|
18
|
+
/** The clip that holds the view buttons while they collapse to icons. */
|
|
19
|
+
readonly toolbarViewClip: string;
|
|
20
|
+
readonly toolbarScrollRoot: string;
|
|
21
|
+
readonly toolbarScrollViewport: string;
|
|
22
|
+
readonly toolbarScrollTrack: string;
|
|
23
|
+
readonly toolbarScrollRootVertical: string;
|
|
24
|
+
readonly toolbarScrollViewportVertical: string;
|
|
25
|
+
readonly toolbarScrollTrackVertical: string;
|
|
26
|
+
readonly segmentedCapsule: string;
|
|
27
|
+
readonly toolbarBtn: string;
|
|
28
|
+
readonly toolbarBtnActive: string;
|
|
29
|
+
readonly toolbarBtnIconOnly: string;
|
|
30
|
+
readonly toolbarIcon: string;
|
|
31
|
+
/** Pushes the trailing buttons to the far edge. */
|
|
32
|
+
readonly toolbarSpacer: string;
|
|
33
|
+
/** A trailing icon button (settings, refresh, more actions). */
|
|
34
|
+
readonly toolbarSettingsBtn: string;
|
|
35
|
+
readonly sortBadgePill: string;
|
|
36
|
+
readonly sortBadgeBtn: string;
|
|
37
|
+
readonly sortBadgeIcon: string;
|
|
38
|
+
readonly sortBadgeLabel: string;
|
|
39
|
+
readonly sortBadgeClearBtn: string;
|
|
40
|
+
readonly sortBadgeClearIcon: string;
|
|
41
|
+
readonly filterInputContainer: string;
|
|
42
|
+
readonly filterSearchIcon: string;
|
|
43
|
+
readonly filterInput: string;
|
|
44
|
+
readonly filterClearBtn: string;
|
|
45
|
+
readonly filterClearIcon: string;
|
|
46
|
+
}
|
|
47
|
+
export declare const resultTabToolbarClasses: ResultTabToolbarClasses;
|