@ecopages/radiant-ui 0.1.0-rc.7 → 0.1.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.
Files changed (238) hide show
  1. package/README.md +11 -3
  2. package/dist/components/ui/alert/alert.d.ts +2 -4
  3. package/dist/components/ui/alert/alert.script.d.ts +25 -15
  4. package/dist/components/ui/autocomplete/autocomplete.css +1 -2
  5. package/dist/components/ui/autocomplete/autocomplete.d.ts +8 -3
  6. package/dist/components/ui/autocomplete/autocomplete.script.d.ts +29 -4
  7. package/dist/components/ui/avatar/avatar.css +10 -8
  8. package/dist/components/ui/avatar/avatar.d.ts +3 -1
  9. package/dist/components/ui/breadcrumb/breadcrumb.d.ts +11 -11
  10. package/dist/components/ui/breadcrumb/breadcrumb.script.d.ts +10 -10
  11. package/dist/components/ui/calendar/calendar.css +10 -5
  12. package/dist/components/ui/calendar/calendar.script.d.ts +24 -21
  13. package/dist/components/ui/calendar/index.js +1 -1
  14. package/dist/components/ui/calendar/index.js.map +3 -3
  15. package/dist/components/ui/carousel/carousel-autoplay.d.ts +22 -0
  16. package/dist/components/ui/carousel/carousel-swipe.d.ts +17 -0
  17. package/dist/components/ui/carousel/carousel-window.d.ts +63 -0
  18. package/dist/components/ui/carousel/carousel.css +71 -18
  19. package/dist/components/ui/carousel/carousel.d.ts +8 -4
  20. package/dist/components/ui/carousel/carousel.script.d.ts +73 -40
  21. package/dist/components/ui/carousel/index.js +1 -1
  22. package/dist/components/ui/carousel/index.js.map +4 -4
  23. package/dist/components/ui/checkbox/checkbox.d.ts +11 -0
  24. package/dist/components/ui/checkbox/checkbox.script.d.ts +31 -8
  25. package/dist/components/ui/checkbox/index.js +1 -1
  26. package/dist/components/ui/checkbox/index.js.map +4 -4
  27. package/dist/components/ui/checkbox-group/checkbox-group.d.ts +4 -2
  28. package/dist/components/ui/checkbox-group/checkbox-group.script.d.ts +39 -20
  29. package/dist/components/ui/checkbox-group/index.js +1 -1
  30. package/dist/components/ui/checkbox-group/index.js.map +4 -4
  31. package/dist/components/ui/combobox/combobox.css +9 -1
  32. package/dist/components/ui/combobox/combobox.d.ts +12 -4
  33. package/dist/components/ui/combobox/combobox.script.d.ts +74 -25
  34. package/dist/components/ui/combobox/index.d.ts +2 -2
  35. package/dist/components/ui/combobox/index.js +1 -1
  36. package/dist/components/ui/combobox/index.js.map +4 -4
  37. package/dist/components/ui/cycle-toggle/cycle-toggle.d.ts +6 -2
  38. package/dist/components/ui/cycle-toggle/cycle-toggle.script.d.ts +35 -4
  39. package/dist/components/ui/cycle-toggle/index.js +1 -1
  40. package/dist/components/ui/cycle-toggle/index.js.map +3 -3
  41. package/dist/components/ui/date-field/date-field.css +13 -17
  42. package/dist/components/ui/date-field/date-field.d.ts +10 -8
  43. package/dist/components/ui/date-field/date-field.script.d.ts +35 -52
  44. package/dist/components/ui/date-field/index.js +1 -1
  45. package/dist/components/ui/date-field/index.js.map +4 -4
  46. package/dist/components/ui/date-input/date-input-segment-dom.d.ts +24 -0
  47. package/dist/components/ui/date-input/date-input.css +50 -0
  48. package/dist/components/ui/date-input/date-input.d.ts +8 -0
  49. package/dist/components/ui/date-input/date-input.script.d.ts +137 -0
  50. package/dist/components/ui/date-input/index.d.ts +2 -0
  51. package/dist/components/ui/date-input/index.js +2 -0
  52. package/dist/components/ui/date-input/index.js.map +7 -0
  53. package/dist/components/ui/date-range-picker/date-range-picker.css +18 -19
  54. package/dist/components/ui/date-range-picker/date-range-picker.d.ts +11 -9
  55. package/dist/components/ui/date-range-picker/date-range-picker.script.d.ts +42 -51
  56. package/dist/components/ui/date-range-picker/index.js +1 -1
  57. package/dist/components/ui/date-range-picker/index.js.map +4 -4
  58. package/dist/components/ui/dialog/dialog.css +18 -14
  59. package/dist/components/ui/dialog/dialog.d.ts +6 -0
  60. package/dist/components/ui/dialog/dialog.script.d.ts +43 -10
  61. package/dist/components/ui/dialog/index.js +1 -1
  62. package/dist/components/ui/dialog/index.js.map +4 -4
  63. package/dist/components/ui/disclosure/disclosure-group.script.d.ts +19 -3
  64. package/dist/components/ui/disclosure/disclosure.css +3 -6
  65. package/dist/components/ui/disclosure/disclosure.d.ts +23 -7
  66. package/dist/components/ui/disclosure/disclosure.script.d.ts +31 -7
  67. package/dist/components/ui/disclosure/index.d.ts +1 -1
  68. package/dist/components/ui/disclosure/index.js +1 -1
  69. package/dist/components/ui/disclosure/index.js.map +4 -4
  70. package/dist/components/ui/field/field-description.d.ts +1 -0
  71. package/dist/components/ui/field/field-error.d.ts +2 -2
  72. package/dist/components/ui/field/field.d.ts +4 -4
  73. package/dist/components/ui/field/field.script.d.ts +54 -24
  74. package/dist/components/ui/field/index.js +1 -1
  75. package/dist/components/ui/field/index.js.map +4 -4
  76. package/dist/components/ui/form/control-protocol.d.ts +38 -1
  77. package/dist/components/ui/form/form-context.d.ts +3 -0
  78. package/dist/components/ui/form/form.d.ts +6 -0
  79. package/dist/components/ui/form/form.script.d.ts +29 -12
  80. package/dist/components/ui/form/index.d.ts +2 -1
  81. package/dist/components/ui/form/index.js +1 -1
  82. package/dist/components/ui/form/index.js.map +4 -4
  83. package/dist/components/ui/grid/grid.d.ts +4 -3
  84. package/dist/components/ui/grid/grid.script.d.ts +19 -11
  85. package/dist/components/ui/hover-card/hover-card.css +12 -101
  86. package/dist/components/ui/hover-card/hover-card.d.ts +7 -2
  87. package/dist/components/ui/hover-card/hover-card.script.d.ts +36 -5
  88. package/dist/components/ui/hover-card/index.js +1 -1
  89. package/dist/components/ui/hover-card/index.js.map +4 -4
  90. package/dist/components/ui/input/index.js +1 -1
  91. package/dist/components/ui/input/index.js.map +4 -4
  92. package/dist/components/ui/input/input.css +1 -1
  93. package/dist/components/ui/knob/index.js +1 -1
  94. package/dist/components/ui/knob/index.js.map +3 -3
  95. package/dist/components/ui/knob/knob.css +6 -1
  96. package/dist/components/ui/knob/knob.d.ts +4 -4
  97. package/dist/components/ui/knob/knob.script.d.ts +55 -20
  98. package/dist/components/ui/label/index.js +1 -1
  99. package/dist/components/ui/label/index.js.map +4 -4
  100. package/dist/components/ui/label/label.d.ts +2 -1
  101. package/dist/components/ui/listbox/index.d.ts +2 -2
  102. package/dist/components/ui/listbox/index.js +1 -1
  103. package/dist/components/ui/listbox/index.js.map +4 -4
  104. package/dist/components/ui/listbox/listbox.css +14 -0
  105. package/dist/components/ui/listbox/listbox.d.ts +16 -2
  106. package/dist/components/ui/listbox/listbox.script.d.ts +55 -12
  107. package/dist/components/ui/menu-button/index.js +1 -1
  108. package/dist/components/ui/menu-button/index.js.map +4 -4
  109. package/dist/components/ui/menu-button/menu-button.d.ts +2 -2
  110. package/dist/components/ui/menu-button/menu-button.script.d.ts +30 -27
  111. package/dist/components/ui/menubar/index.js +1 -1
  112. package/dist/components/ui/menubar/index.js.map +4 -4
  113. package/dist/components/ui/menubar/menubar.script.d.ts +41 -15
  114. package/dist/components/ui/meter/index.js +1 -1
  115. package/dist/components/ui/meter/index.js.map +3 -3
  116. package/dist/components/ui/meter/meter.css +27 -2
  117. package/dist/components/ui/meter/meter.script.d.ts +19 -14
  118. package/dist/components/ui/navigation-menu/index.d.ts +1 -1
  119. package/dist/components/ui/navigation-menu/index.js +1 -1
  120. package/dist/components/ui/navigation-menu/index.js.map +4 -4
  121. package/dist/components/ui/navigation-menu/navigation-menu.css +32 -34
  122. package/dist/components/ui/navigation-menu/navigation-menu.d.ts +34 -5
  123. package/dist/components/ui/navigation-menu/navigation-menu.script.d.ts +93 -12
  124. package/dist/components/ui/number-field/index.js +1 -1
  125. package/dist/components/ui/number-field/index.js.map +4 -4
  126. package/dist/components/ui/number-field/number-field.css +1 -1
  127. package/dist/components/ui/number-field/number-field.d.ts +8 -19
  128. package/dist/components/ui/number-field/number-field.script.d.ts +30 -9
  129. package/dist/components/ui/pagination/index.d.ts +1 -1
  130. package/dist/components/ui/pagination/index.js +1 -1
  131. package/dist/components/ui/pagination/index.js.map +3 -3
  132. package/dist/components/ui/pagination/pagination.css +50 -13
  133. package/dist/components/ui/pagination/pagination.d.ts +33 -9
  134. package/dist/components/ui/pagination/pagination.script.d.ts +29 -9
  135. package/dist/components/ui/popover/index.js +1 -1
  136. package/dist/components/ui/popover/index.js.map +4 -4
  137. package/dist/components/ui/popover/popover.d.ts +17 -1
  138. package/dist/components/ui/popover/popover.script.d.ts +57 -9
  139. package/dist/components/ui/radio-group/index.js +1 -1
  140. package/dist/components/ui/radio-group/index.js.map +4 -4
  141. package/dist/components/ui/radio-group/radio-group.d.ts +2 -2
  142. package/dist/components/ui/radio-group/radio-group.script.d.ts +35 -16
  143. package/dist/components/ui/select/index.d.ts +2 -2
  144. package/dist/components/ui/select/index.js +1 -1
  145. package/dist/components/ui/select/index.js.map +4 -4
  146. package/dist/components/ui/select/select.css +8 -6
  147. package/dist/components/ui/select/select.d.ts +18 -9
  148. package/dist/components/ui/select/select.script.d.ts +74 -26
  149. package/dist/components/ui/shared/calendar-popover-behavior.d.ts +27 -0
  150. package/dist/components/ui/shared/control-toggle.css +8 -4
  151. package/dist/components/ui/shared/field-label.d.ts +5 -0
  152. package/dist/components/ui/shared/listbox-host-controller.d.ts +41 -0
  153. package/dist/components/ui/shared/listbox-option.d.ts +4 -0
  154. package/dist/components/ui/shared/multi-value.d.ts +23 -1
  155. package/dist/components/ui/shared/numeric-range.d.ts +8 -0
  156. package/dist/components/ui/shared/popover.css +10 -99
  157. package/dist/components/ui/sidebar/index.d.ts +2 -1
  158. package/dist/components/ui/sidebar/index.js +1 -1
  159. package/dist/components/ui/sidebar/index.js.map +4 -4
  160. package/dist/components/ui/sidebar/sidebar-trigger.d.ts +12 -0
  161. package/dist/components/ui/sidebar/sidebar-trigger.script.d.ts +52 -31
  162. package/dist/components/ui/sidebar/sidebar.css +67 -61
  163. package/dist/components/ui/sidebar/sidebar.d.ts +9 -4
  164. package/dist/components/ui/sidebar/sidebar.script.d.ts +42 -20
  165. package/dist/components/ui/slider/index.js +1 -1
  166. package/dist/components/ui/slider/index.js.map +4 -4
  167. package/dist/components/ui/slider/slider.css +5 -5
  168. package/dist/components/ui/slider/slider.d.ts +20 -10
  169. package/dist/components/ui/slider/slider.script.d.ts +103 -27
  170. package/dist/components/ui/switch/index.js +1 -1
  171. package/dist/components/ui/switch/index.js.map +4 -4
  172. package/dist/components/ui/switch/switch.css +28 -22
  173. package/dist/components/ui/switch/switch.d.ts +13 -0
  174. package/dist/components/ui/switch/switch.script.d.ts +34 -8
  175. package/dist/components/ui/table/index.js +1 -1
  176. package/dist/components/ui/table/index.js.map +4 -4
  177. package/dist/components/ui/table/table.d.ts +9 -7
  178. package/dist/components/ui/table/table.script.d.ts +55 -12
  179. package/dist/components/ui/tabs/tabs.css +18 -12
  180. package/dist/components/ui/tabs/tabs.d.ts +7 -4
  181. package/dist/components/ui/tabs/tabs.script.d.ts +39 -9
  182. package/dist/components/ui/tag-group/index.js +1 -1
  183. package/dist/components/ui/tag-group/index.js.map +4 -4
  184. package/dist/components/ui/tag-group/tag-group.d.ts +19 -7
  185. package/dist/components/ui/tag-group/tag-group.script.d.ts +58 -10
  186. package/dist/components/ui/textarea/index.js +1 -1
  187. package/dist/components/ui/textarea/index.js.map +4 -4
  188. package/dist/components/ui/textarea/textarea.css +1 -1
  189. package/dist/components/ui/toast/index.js +1 -1
  190. package/dist/components/ui/toast/index.js.map +4 -4
  191. package/dist/components/ui/toast/toast.css +35 -32
  192. package/dist/components/ui/toast/toast.script.d.ts +17 -31
  193. package/dist/components/ui/toast/toaster.script.d.ts +24 -12
  194. package/dist/components/ui/toc/toc.script.d.ts +19 -8
  195. package/dist/components/ui/toolbar/toolbar.d.ts +5 -0
  196. package/dist/components/ui/toolbar/toolbar.script.d.ts +24 -4
  197. package/dist/components/ui/tooltip/index.js +1 -1
  198. package/dist/components/ui/tooltip/index.js.map +4 -4
  199. package/dist/components/ui/tooltip/tooltip.css +14 -94
  200. package/dist/components/ui/tooltip/tooltip.d.ts +7 -0
  201. package/dist/components/ui/tooltip/tooltip.script.d.ts +36 -6
  202. package/dist/components/ui/tree/tree.d.ts +4 -3
  203. package/dist/components/ui/tree/tree.script.d.ts +28 -15
  204. package/dist/components/ui/treegrid/treegrid.d.ts +5 -3
  205. package/dist/components/ui/treegrid/treegrid.script.d.ts +33 -14
  206. package/dist/components/ui/window-splitter/index.d.ts +1 -1
  207. package/dist/components/ui/window-splitter/index.js +1 -1
  208. package/dist/components/ui/window-splitter/index.js.map +3 -3
  209. package/dist/components/ui/window-splitter/window-splitter.d.ts +10 -1
  210. package/dist/components/ui/window-splitter/window-splitter.script.d.ts +26 -8
  211. package/dist/index.d.ts +2 -0
  212. package/dist/index.js +1 -1
  213. package/dist/index.js.map +4 -4
  214. package/dist/lib/icons/check.d.ts +3 -0
  215. package/dist/lib/icons/chevron-down.d.ts +0 -1
  216. package/dist/lib/icons/index.d.ts +2 -0
  217. package/dist/lib/icons/x.d.ts +5 -0
  218. package/dist/lib/intl-date/index.d.ts +4 -2
  219. package/dist/lib/intl-date/segment-editing.d.ts +34 -0
  220. package/dist/lib/intl-date/segments.d.ts +26 -4
  221. package/dist/lib/non-empty.d.ts +6 -0
  222. package/dist/lib/unique-id.d.ts +11 -0
  223. package/dist/lib/viewport/breakpoints.d.ts +6 -0
  224. package/dist/lib/viewport/mobile-layout.d.ts +15 -0
  225. package/dist/styles/primitives.css +14 -11
  226. package/dist/styles/radiant-ui-core.css +10 -0
  227. package/dist/styles/radiant-ui.css +40 -11
  228. package/dist/styles/style-dependencies.json +38 -13
  229. package/dist/styles/styles.css +485 -252
  230. package/dist/styles/tailwind.css +40 -101
  231. package/dist/styles/tokens/presets/colors/aurora.css +2 -0
  232. package/dist/styles/tokens/presets/colors/basalt.css +2 -0
  233. package/dist/styles/tokens/presets/colors/ember.css +2 -0
  234. package/dist/styles/tokens/presets/colors/glacier.css +2 -0
  235. package/dist/styles/tokens/semantic.css +1 -0
  236. package/dist/styles/tokens/system.css +11 -3
  237. package/dist/styles/tokens/typography/default.css +8 -0
  238. package/package.json +27 -13
@@ -1,2 +1,2 @@
1
- import{RadiantElement as wt,bound as bt,customElement as Pt,event as At,onEvent as _t,onUpdated as Vt,prop as O,query as Et}from"@ecopages/radiant";var nt,at,ot,st,lt,ut,ct,pt,ht,dt,ft,mt,vt,gt;function zt(e,t,r,o,q,B){var b,s,V,k,T,L,E,X=Symbol.metadata||Symbol.for("Symbol.metadata"),Y=Object.defineProperty,R=Object.create,$=[R(null),R(null)],G=t.length;function z(i,d,p){return function(n,a){d&&(a=n,n=e);for(var f=0;f<i.length;f++)a=i[f].apply(n,p?[a]:[]);return p?a:n}}function g(i,d,p,n){if(typeof i!="function"&&(n||i!==void 0))throw new TypeError(d+" must "+(p||"be")+" a function"+(n?"":" or undefined"));return i}function J(i,d,p,n,a,f,w,h,m,v,Z){function U(u){if(!Z(u))throw new TypeError("Attempted to access private element on non-instance")}var C=[].concat(d[0]),H=d[3],I=!w,S=a===1,F=a===3,N=a===4,j=a===2;function M(u,_,it){return function(P,rt){return _&&(rt=P,P=i),it&&it(P),l[u].call(P,rt)}}if(!I){var l={},W=[],y=F?"get":N||S?"set":"value";if(m?(v||S?l={get:yt(function(){return H(this)},n,"get"),set:function(u){d[4](this,u)}}:l[y]=H,v||yt(l[y],n,j?"":y)):v||(l=Object.getOwnPropertyDescriptor(i,n)),!v&&!m){if((s=$[+h][n])&&(s^a)!==7)throw Error("Decorating two elements with the same name ("+l[y].name+") is not supported yet");$[+h][n]=a<3?1:a}}for(var c=i,D=C.length-1;D>=0;D-=p?2:1){var tt=g(C[D],"A decorator","be",!0),et=p?C[D-1]:void 0,K={},x={kind:["field","accessor","method","getter","setter","class"][a],name:n,metadata:b,addInitializer:function(u,_){if(u.v)throw new TypeError("attempted to call addInitializer after decoration was finished");g(_,"An initializer","be",!0),f.push(_)}.bind(null,K)};if(I)s=tt.call(et,c,x),K.v=1,g(s,"class decorators","return")&&(c=s);else if(x.static=h,x.private=m,s=x.access={has:m?Z.bind():function(u){return n in u}},N||(s.get=m?j?function(u){return U(u),l.value}:M("get",0,U):function(u){return u[n]}),j||F||(s.set=m?M("set",0,U):function(u,_){u[n]=_}),c=tt.call(et,S?{get:l.get,set:l.set}:l[y],x),K.v=1,S){if(typeof c=="object"&&c)(s=g(c.get,"accessor.get"))&&(l.get=s),(s=g(c.set,"accessor.set"))&&(l.set=s),(s=g(c.init,"accessor.init"))&&W.unshift(s);else if(c!==void 0)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else g(c,(v?"field":"method")+" decorators","return")&&(v?W.unshift(c):l[y]=c)}return a<2&&w.push(z(W,h,1),z(f,h,0)),v||I||(m?S?w.splice(-1,0,M("get",h),M("set",h)):w.push(j?l[y]:g.call.bind(l[y])):Y(i,n,l)),c}function Q(i){return Y(i,X,{configurable:!0,enumerable:!0,value:b})}return B!==void 0&&(b=B[X]),b=R(b??null),T=[],L=function(i){i&&T.push(z(i))},E=function(i,d){for(var p=0;p<r.length;p++){var n=r[p],a=n[1],f=7&a;if((8&a)==i&&!f==d){var w=n[2],h=!!n[3],m=16&a;J(i?e:e.prototype,n,m,h?"#"+w:jt(w),f,f<2?[]:i?k=k||[]:V=V||[],T,!!i,h,d,i&&h?function(v){return Dt(v)===e}:q)}}},E(8,0),E(0,0),E(8,1),E(0,1),L(V),L(k),s=T,G||Q(e),{e:s,get c(){var i=[];return G&&[Q(e=J(e,[t],o,e.name,5,i)),z(i,1)]}}}function jt(e){var t=Mt(e,"string");return typeof t=="symbol"?t:t+""}function Mt(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yt(e,t,r){typeof t=="symbol"&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:r?r+" "+t:t})}catch{}return e}function Dt(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(e!==null?typeof e:"null"));return e}var xt,St=class extends wt{static{({e:[ot,st,lt,ut,ct,pt,ht,dt,ft,mt,vt,gt,nt],c:[xt,at]}=zt(this,[Pt("rui-window-splitter")],[[O({type:Number,reflect:!0,defaultValue:50}),0,"value"],[O({type:String,defaultValue:"horizontal"}),0,"orientation"],[O({type:String,defaultValue:"Split view"}),0,"label"],[Et({ref:"primary"}),0,"primaryTarget"],[Et({ref:"separator"}),0,"separatorTarget"],[At({name:"rui-splitter-change",bubbles:!0,composed:!0}),0,"changeEvent"],[Vt(["value","orientation","label"]),2,"onPropsUpdated"],[_t({ref:"separator",type:"keydown"}),2,"onKeydown"],[_t({ref:"separator",type:"pointerdown"}),2,"onPointerDown"],[bt,2,"onPointerMove"],[bt,2,"onPointerUp"]],0,void 0,wt))}value=(nt(this),ot(this));orientation=(st(this),lt(this));label=(ut(this),ct(this));primaryTarget=(pt(this),ht(this));separatorTarget=(dt(this),ft(this));changeEvent=(mt(this),vt(this));dragging=(gt(this),!1);onConnected(){this.syncSeparatorPresentation(),this.applySize()}disconnectedCallback(){document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),super.disconnectedCallback()}onPropsUpdated(){this.syncSeparatorPresentation(),this.applySize()}syncSeparatorPresentation(){let t=this.separatorTarget,r=this.querySelector('[data-ref="root"]');if(!t||!r)return;let o=this.orientation!=="vertical";r.classList.toggle("rui-window-splitter--horizontal",o),r.classList.toggle("rui-window-splitter--vertical",!o),t.setAttribute("aria-orientation",o?"vertical":"horizontal"),t.setAttribute("aria-valuenow",String(this.value)),t.setAttribute("aria-valuemin","20"),t.setAttribute("aria-valuemax","80"),t.setAttribute("aria-label",this.label)}applySize(){if(!this.primaryTarget)return;let t=`${Math.min(80,Math.max(20,this.value))}%`;this.orientation==="vertical"?(this.primaryTarget.style.height=t,this.primaryTarget.style.width=""):(this.primaryTarget.style.width=t,this.primaryTarget.style.height="")}onKeydown(t){let r=t.shiftKey?10:2,o=this.orientation!=="vertical";o&&t.key==="ArrowLeft"||!o&&t.key==="ArrowUp"?(t.preventDefault(),this.updateValue(Math.max(20,this.value-r))):o&&t.key==="ArrowRight"||!o&&t.key==="ArrowDown"?(t.preventDefault(),this.updateValue(Math.min(80,this.value+r))):t.key==="Home"?(t.preventDefault(),this.updateValue(20)):t.key==="End"&&(t.preventDefault(),this.updateValue(80))}updateValue(t){t!==this.value&&(this.value=t,this.changeEvent.emit({value:t}))}onPointerDown(t){this.dragging=!0,this.separatorTarget.setPointerCapture(t.pointerId),document.addEventListener("pointermove",this.onPointerMove),document.addEventListener("pointerup",this.onPointerUp)}onPointerMove(t){if(!this.dragging)return;let r=this.getBoundingClientRect();this.orientation==="vertical"?this.updateValue(Math.min(80,Math.max(20,(t.clientY-r.top)/r.height*100))):this.updateValue(Math.min(80,Math.max(20,(t.clientX-r.left)/r.width*100)))}onPointerUp(){this.dragging=!1,document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp)}static{at()}};import{jsx as A,jsxs as kt}from"@ecopages/jsx/jsx-runtime";function Tt(...e){return e.filter(Boolean).join(" ")}function Lt({primary:e,secondary:t,orientation:r="horizontal",...o}){return A("rui-window-splitter",{...o,orientation:r,children:kt("div",{class:Tt("rui-window-splitter",r!=="vertical"?"rui-window-splitter--horizontal":"rui-window-splitter--vertical"),"data-ref":"root",children:[A("div",{"data-ref":"primary",class:"rui-window-splitter__pane",children:e}),A("div",{"data-ref":"separator",class:"rui-window-splitter__separator",role:"separator",tabindex:0}),A("div",{"data-ref":"secondary",class:"rui-window-splitter__pane",children:t})]})})}export{Lt as RuiWindowSplitter,xt as RuiWindowSplitterElement};
1
+ import{RadiantElement as Et,bindTo as q,bound as St,customElement as jt,event as Vt,onEvent as xt,onUpdated as kt,prop as B,query as It}from"@ecopages/radiant";var lt,ut,pt,ct,dt,ht,ft,mt,vt,gt,yt,wt,_t,bt;function Wt(e,t,n,p,$,G){var T,a,j,V,M,k,S,J=Symbol.metadata||Symbol.for("Symbol.metadata"),N=Object.defineProperty,O=Object.create,Q=[O(null),O(null)],Z=t.length;function D(r,h,c){return function(i,o){h&&(o=i,i=e);for(var f=0;f<r.length;f++)o=r[f].apply(i,c?[o]:[]);return c?o:i}}function g(r,h,c,i){if(typeof r!="function"&&(i||r!==void 0))throw new TypeError(h+" must "+(c||"be")+" a function"+(i?"":" or undefined"));return r}function H(r,h,c,i,o,f,b,d,m,v,tt){function U(l){if(!tt(l))throw new TypeError("Attempted to access private element on non-instance")}var A=[].concat(h[0]),et=h[3],C=!b,x=o===1,rt=o===3,it=o===4,P=o===2;function W(l,E,at){return function(L,st){return E&&(st=L,L=r),at&&at(L),s[l].call(L,st)}}if(!C){var s={},K=[],y=rt?"get":it||x?"set":"value";if(m?(v||x?s={get:Tt(function(){return et(this)},i,"get"),set:function(l){h[4](this,l)}}:s[y]=et,v||Tt(s[y],i,P?"":y)):v||(s=Object.getOwnPropertyDescriptor(r,i)),!v&&!m){if((a=Q[+d][i])&&(a^o)!==7)throw Error("Decorating two elements with the same name ("+s[y].name+") is not supported yet");Q[+d][i]=o<3?1:o}}for(var u=r,z=A.length-1;z>=0;z-=c?2:1){var nt=g(A[z],"A decorator","be",!0),ot=c?A[z-1]:void 0,X={},I={kind:["field","accessor","method","getter","setter","class"][o],name:i,metadata:T,addInitializer:function(l,E){if(l.v)throw new TypeError("attempted to call addInitializer after decoration was finished");g(E,"An initializer","be",!0),f.push(E)}.bind(null,X)};if(C)a=nt.call(ot,u,I),X.v=1,g(a,"class decorators","return")&&(u=a);else if(I.static=d,I.private=m,a=I.access={has:m?tt.bind():function(l){return i in l}},it||(a.get=m?P?function(l){return U(l),s.value}:W("get",0,U):function(l){return l[i]}),P||rt||(a.set=m?W("set",0,U):function(l,E){l[i]=E}),u=nt.call(ot,x?{get:s.get,set:s.set}:s[y],I),X.v=1,x){if(typeof u=="object"&&u)(a=g(u.get,"accessor.get"))&&(s.get=a),(a=g(u.set,"accessor.set"))&&(s.set=a),(a=g(u.init,"accessor.init"))&&K.unshift(a);else if(u!==void 0)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else g(u,(v?"field":"method")+" decorators","return")&&(v?K.unshift(u):s[y]=u)}return o<2&&b.push(D(K,d,1),D(f,d,0)),v||C||(m?x?b.splice(-1,0,W("get",d),W("set",d)):b.push(P?s[y]:g.call.bind(s[y])):N(r,i,s)),u}function F(r){return N(r,J,{configurable:!0,enumerable:!0,value:T})}return G!==void 0&&(T=G[J]),T=O(T??null),M=[],k=function(r){r&&M.push(D(r))},S=function(r,h){for(var c=0;c<n.length;c++){var i=n[c],o=i[1],f=7&o;if((8&o)==r&&!f==h){var b=i[2],d=!!i[3],m=16&o;H(r?e:e.prototype,i,m,d?"#"+b:zt(b),f,f<2?[]:r?V=V||[]:j=j||[],M,!!r,d,h,r&&d?function(v){return Rt(v)===e}:$)}}},S(8,0),S(0,0),S(8,1),S(0,1),k(j),k(V),a=M,Z||F(e),{e:a,get c(){var r=[];return Z&&[F(e=H(e,[t],p,e.name,5,r)),D(r,1)]}}}function zt(e){var t=Lt(e,"string");return typeof t=="symbol"?t:t+""}function Lt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var p=n.call(e,t||"default");if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tt(e,t,n){typeof t=="symbol"&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch{}return e}function Rt(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(e!==null?typeof e:"null"));return e}var w=20,_=80;function Y(e){return e!=="vertical"}var Dt,Mt=class extends Et{static{({e:[pt,ct,dt,ht,ft,mt,vt,gt,yt,wt,_t,bt,lt],c:[Dt,ut]}=Wt(this,[jt("rui-window-splitter")],[[[B({type:Number,reflect:!0,defaultValue:50}),q({ref:"separator",attr:"aria-valuenow"})],0,"value"],[[B({type:String,defaultValue:"horizontal"}),q({ref:"separator",attr:"aria-orientation",map:t=>Y(t)?"vertical":"horizontal"})],0,"orientation"],[[B({type:String,defaultValue:"Split view"}),q({ref:"separator",attr:"aria-label"})],0,"label"],[It({ref:"primary"}),0,"primaryTarget"],[It({ref:"separator"}),0,"separatorTarget"],[Vt({name:"rui-splitter-change",bubbles:!0,composed:!0}),0,"changeEvent"],[kt(["value","orientation"]),2,"onPropsUpdated"],[xt({ref:"separator",type:"keydown"}),2,"onKeydown"],[xt({ref:"separator",type:"pointerdown"}),2,"onPointerDown"],[St,2,"onPointerMove"],[St,2,"onPointerUp"]],0,void 0,Et))}value=(lt(this),pt(this));orientation=(ct(this),dt(this));label=(ht(this),ft(this));primaryTarget=(mt(this),vt(this));separatorTarget=(gt(this),yt(this));changeEvent=(wt(this),_t(this));dragging=(bt(this),!1);onConnected(){this.syncSeparatorPresentation(),this.applySize()}disconnectedCallback(){document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),super.disconnectedCallback()}onPropsUpdated(){this.syncSeparatorPresentation(),this.applySize()}syncSeparatorPresentation(){let t=this.querySelector('[data-ref="root"]');if(!t)return;let n=Y(this.orientation);t.classList.toggle("rui-window-splitter--horizontal",n),t.classList.toggle("rui-window-splitter--vertical",!n)}applySize(){if(!this.primaryTarget)return;let t=`${Math.min(_,Math.max(w,this.value))}%`;this.orientation==="vertical"?(this.primaryTarget.style.height=t,this.primaryTarget.style.width=""):(this.primaryTarget.style.width=t,this.primaryTarget.style.height="")}onKeydown(t){let n=t.shiftKey?10:2,p=Y(this.orientation);p&&t.key==="ArrowLeft"||!p&&t.key==="ArrowUp"?(t.preventDefault(),this.updateValue(Math.max(w,this.value-n))):p&&t.key==="ArrowRight"||!p&&t.key==="ArrowDown"?(t.preventDefault(),this.updateValue(Math.min(_,this.value+n))):t.key==="Home"?(t.preventDefault(),this.updateValue(w)):t.key==="End"&&(t.preventDefault(),this.updateValue(_))}updateValue(t){t!==this.value&&(this.value=t,this.changeEvent.emit({value:t}))}onPointerDown(t){this.dragging=!0,this.separatorTarget.setPointerCapture(t.pointerId),document.addEventListener("pointermove",this.onPointerMove),document.addEventListener("pointerup",this.onPointerUp)}onPointerMove(t){if(!this.dragging)return;let n=this.getBoundingClientRect();this.orientation==="vertical"?this.updateValue(Math.min(_,Math.max(w,(t.clientY-n.top)/n.height*100))):this.updateValue(Math.min(_,Math.max(w,(t.clientX-n.left)/n.width*100)))}onPointerUp(){this.dragging=!1,document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp)}static{ut()}};import{jsx as R,jsxs as Ot}from"@ecopages/jsx/jsx-runtime";function Pt(...e){return e.filter(Boolean).join(" ")}function Ut({primary:e,secondary:t,orientation:n="horizontal",...p}){return R("rui-window-splitter",{...p,orientation:n,children:Ot("div",{class:Pt("rui-window-splitter",n!=="vertical"?"rui-window-splitter--horizontal":"rui-window-splitter--vertical"),"data-ref":"root",children:[R("div",{"data-ref":"primary",class:"rui-window-splitter__pane",children:e}),R("div",{"data-ref":"separator",class:"rui-window-splitter__separator",role:"separator",tabindex:0,"aria-valuemin":w,"aria-valuemax":_}),R("div",{"data-ref":"secondary",class:"rui-window-splitter__pane",children:t})]})})}export{Ut as RuiWindowSplitter,Dt as RuiWindowSplitterElement,_ as WINDOW_SPLITTER_MAX,w as WINDOW_SPLITTER_MIN};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/components/ui/window-splitter/window-splitter.script.tsx", "../../../../src/components/ui/window-splitter/window-splitter.tsx", "../../../../src/lib/cx.ts"],
4
- "sourcesContent": ["let _initProto, _initClass, _init_value, _init_extra_value, _init_orientation, _init_extra_orientation, _init_label, _init_extra_label, _init_primaryTarget, _init_extra_primaryTarget, _init_separatorTarget, _init_extra_separatorTarget, _init_changeEvent, _init_extra_changeEvent;\nfunction _applyDecs(e, t, n, r, o, i) { var a, c, u, s, f, l, p, d = Symbol.metadata || Symbol.for(\"Symbol.metadata\"), m = Object.defineProperty, h = Object.create, y = [h(null), h(null)], v = t.length; function g(t, n, r) { return function (o, i) { n && (i = o, o = e); for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); return r ? i : o; }; } function b(e, t, n, r) { if (\"function\" != typeof e && (r || void 0 !== e)) throw new TypeError(t + \" must \" + (n || \"be\") + \" a function\" + (r ? \"\" : \" or undefined\")); return e; } function applyDec(e, t, n, r, o, i, u, s, f, l, p) { function d(e) { if (!p(e)) throw new TypeError(\"Attempted to access private element on non-instance\"); } var h = [].concat(t[0]), v = t[3], w = !u, D = 1 === o, S = 3 === o, j = 4 === o, E = 2 === o; function I(t, n, r) { return function (o, i) { return n && (i = o, o = e), r && r(o), P[t].call(o, i); }; } if (!w) { var P = {}, k = [], F = S ? \"get\" : j || D ? \"set\" : \"value\"; if (f ? (l || D ? P = { get: _setFunctionName(function () { return v(this); }, r, \"get\"), set: function (e) { t[4](this, e); } } : P[F] = v, l || _setFunctionName(P[F], r, E ? \"\" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { if ((c = y[+s][r]) && 7 !== (c ^ o)) throw Error(\"Decorating two elements with the same name (\" + P[F].name + \") is not supported yet\"); y[+s][r] = o < 3 ? 1 : o; } } for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { var T = b(h[O], \"A decorator\", \"be\", !0), z = n ? h[O - 1] : void 0, A = {}, H = { kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"class\"][o], name: r, metadata: a, addInitializer: function (e, t) { if (e.v) throw new TypeError(\"attempted to call addInitializer after decoration was finished\"); b(t, \"An initializer\", \"be\", !0), i.push(t); }.bind(null, A) }; if (w) c = T.call(z, N, H), A.v = 1, b(c, \"class decorators\", \"return\") && (N = c);else if (H.static = s, H.private = f, c = H.access = { has: f ? p.bind() : function (e) { return r in e; } }, j || (c.get = f ? E ? function (e) { return d(e), P.value; } : I(\"get\", 0, d) : function (e) { return e[r]; }), E || S || (c.set = f ? I(\"set\", 0, d) : function (e, t) { e[r] = t; }), N = T.call(z, D ? { get: P.get, set: P.set } : P[F], H), A.v = 1, D) { if (\"object\" == typeof N && N) (c = b(N.get, \"accessor.get\")) && (P.get = c), (c = b(N.set, \"accessor.set\")) && (P.set = c), (c = b(N.init, \"accessor.init\")) && k.unshift(c);else if (void 0 !== N) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or undefined\"); } else b(N, (l ? \"field\" : \"method\") + \" decorators\", \"return\") && (l ? k.unshift(N) : P[F] = N); } return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I(\"get\", s), I(\"set\", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; } function w(e) { return m(e, d, { configurable: !0, enumerable: !0, value: a }); } return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function (e) { e && f.push(g(e)); }, p = function (t, r) { for (var i = 0; i < n.length; i++) { var a = n[i], c = a[1], l = 7 & c; if ((8 & c) == t && !l == r) { var p = a[2], d = !!a[3], m = 16 & c; applyDec(t ? e : e.prototype, a, m, d ? \"#\" + p : _toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { return _checkInRHS(t) === e; } : o); } } }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { e: c, get c() { var n = []; return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; } }; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _setFunctionName(e, t, n) { \"symbol\" == typeof t && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\"); try { Object.defineProperty(e, \"name\", { configurable: !0, value: n ? n + \" \" + t : t }); } catch (e) {} return e; }\nfunction _checkInRHS(e) { if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? typeof e : \"null\")); return e; }\nimport { RadiantElement, bound, customElement, event, onEvent, onUpdated, prop, query } from \"@ecopages/radiant\";\nlet _RuiWindowSplitter;\nclass RuiWindowSplitter extends RadiantElement {\n static {\n ({\n e: [_init_value, _init_extra_value, _init_orientation, _init_extra_orientation, _init_label, _init_extra_label, _init_primaryTarget, _init_extra_primaryTarget, _init_separatorTarget, _init_extra_separatorTarget, _init_changeEvent, _init_extra_changeEvent, _initProto],\n c: [_RuiWindowSplitter, _initClass]\n } = _applyDecs(this, [customElement(\"rui-window-splitter\")], [[prop({\n type: Number,\n reflect: true,\n defaultValue: 50\n }), 0, \"value\"], [prop({\n type: String,\n defaultValue: \"horizontal\"\n }), 0, \"orientation\"], [prop({\n type: String,\n defaultValue: \"Split view\"\n }), 0, \"label\"], [query({\n ref: \"primary\"\n }), 0, \"primaryTarget\"], [query({\n ref: \"separator\"\n }), 0, \"separatorTarget\"], [event({\n name: \"rui-splitter-change\",\n bubbles: true,\n composed: true\n }), 0, \"changeEvent\"], [onUpdated([\"value\", \"orientation\", \"label\"]), 2, \"onPropsUpdated\"], [onEvent({\n ref: \"separator\",\n type: \"keydown\"\n }), 2, \"onKeydown\"], [onEvent({\n ref: \"separator\",\n type: \"pointerdown\"\n }), 2, \"onPointerDown\"], [bound, 2, \"onPointerMove\"], [bound, 2, \"onPointerUp\"]], 0, void 0, RadiantElement));\n }\n value = (_initProto(this), _init_value(this));\n orientation = (_init_extra_value(this), _init_orientation(this));\n label = (_init_extra_orientation(this), _init_label(this));\n primaryTarget = (_init_extra_label(this), _init_primaryTarget(this));\n separatorTarget = (_init_extra_primaryTarget(this), _init_separatorTarget(this));\n changeEvent = (_init_extra_separatorTarget(this), _init_changeEvent(this));\n dragging = (_init_extra_changeEvent(this), false);\n onConnected() {\n this.syncSeparatorPresentation();\n this.applySize();\n }\n disconnectedCallback() {\n document.removeEventListener(\"pointermove\", this.onPointerMove);\n document.removeEventListener(\"pointerup\", this.onPointerUp);\n super.disconnectedCallback();\n }\n onPropsUpdated() {\n this.syncSeparatorPresentation();\n this.applySize();\n }\n syncSeparatorPresentation() {\n const separator = this.separatorTarget;\n const root = this.querySelector('[data-ref=\"root\"]');\n if (!separator || !root) {\n return;\n }\n const horizontal = this.orientation !== \"vertical\";\n root.classList.toggle(\"rui-window-splitter--horizontal\", horizontal);\n root.classList.toggle(\"rui-window-splitter--vertical\", !horizontal);\n separator.setAttribute(\"aria-orientation\", horizontal ? \"vertical\" : \"horizontal\");\n separator.setAttribute(\"aria-valuenow\", String(this.value));\n separator.setAttribute(\"aria-valuemin\", \"20\");\n separator.setAttribute(\"aria-valuemax\", \"80\");\n separator.setAttribute(\"aria-label\", this.label);\n }\n applySize() {\n if (!this.primaryTarget) return;\n const size = `${Math.min(80, Math.max(20, this.value))}%`;\n if (this.orientation === \"vertical\") {\n this.primaryTarget.style.height = size;\n this.primaryTarget.style.width = \"\";\n } else {\n this.primaryTarget.style.width = size;\n this.primaryTarget.style.height = \"\";\n }\n }\n onKeydown(event2) {\n const delta = event2.shiftKey ? 10 : 2;\n const horizontal = this.orientation !== \"vertical\";\n if (horizontal && event2.key === \"ArrowLeft\" || !horizontal && event2.key === \"ArrowUp\") {\n event2.preventDefault();\n this.updateValue(Math.max(20, this.value - delta));\n } else if (horizontal && event2.key === \"ArrowRight\" || !horizontal && event2.key === \"ArrowDown\") {\n event2.preventDefault();\n this.updateValue(Math.min(80, this.value + delta));\n } else if (event2.key === \"Home\") {\n event2.preventDefault();\n this.updateValue(20);\n } else if (event2.key === \"End\") {\n event2.preventDefault();\n this.updateValue(80);\n }\n }\n updateValue(next) {\n if (next === this.value) return;\n this.value = next;\n this.changeEvent.emit({\n value: next\n });\n }\n onPointerDown(event2) {\n this.dragging = true;\n this.separatorTarget.setPointerCapture(event2.pointerId);\n document.addEventListener(\"pointermove\", this.onPointerMove);\n document.addEventListener(\"pointerup\", this.onPointerUp);\n }\n onPointerMove(event2) {\n if (!this.dragging) return;\n const rect = this.getBoundingClientRect();\n if (this.orientation === \"vertical\") {\n this.updateValue(Math.min(80, Math.max(20, (event2.clientY - rect.top) / rect.height * 100)));\n } else {\n this.updateValue(Math.min(80, Math.max(20, (event2.clientX - rect.left) / rect.width * 100)));\n }\n }\n onPointerUp() {\n this.dragging = false;\n document.removeEventListener(\"pointermove\", this.onPointerMove);\n document.removeEventListener(\"pointerup\", this.onPointerUp);\n }\n static {\n _initClass();\n }\n}\nexport { _RuiWindowSplitter as RuiWindowSplitter };", "import { jsx, jsxs } from \"@ecopages/jsx/jsx-runtime\";\nimport { cx } from \"@/lib/cx\";\nimport \"./window-splitter.script\";\nexport function RuiWindowSplitter({\n primary,\n secondary,\n orientation = \"horizontal\",\n ...props\n}) {\n const horizontal = orientation !== \"vertical\";\n return /* @__PURE__ */jsx(\"rui-window-splitter\", {\n ...props,\n orientation,\n children: /* @__PURE__ */jsxs(\"div\", {\n class: cx(\"rui-window-splitter\", horizontal ? \"rui-window-splitter--horizontal\" : \"rui-window-splitter--vertical\"),\n \"data-ref\": \"root\",\n children: [/* @__PURE__ */jsx(\"div\", {\n \"data-ref\": \"primary\",\n class: \"rui-window-splitter__pane\",\n children: primary\n }), /* @__PURE__ */jsx(\"div\", {\n \"data-ref\": \"separator\",\n class: \"rui-window-splitter__separator\",\n role: \"separator\",\n tabindex: 0\n }), /* @__PURE__ */jsx(\"div\", {\n \"data-ref\": \"secondary\",\n class: \"rui-window-splitter__pane\",\n children: secondary\n })]\n })\n });\n}", "export function cx(...parts) {\n return parts.filter(Boolean).join(\" \");\n}"],
5
- "mappings": "AAMA,OAAS,kBAAAA,GAAgB,SAAAC,GAAO,iBAAAC,GAAe,SAAAC,GAAO,WAAAC,GAAS,aAAAC,GAAW,QAAAC,EAAM,SAAAC,OAAa,o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AW,GAChB,SAAS,oBAAoB,cAAe,KAAK,aAAa,EAC9D,SAAS,oBAAoB,YAAa,KAAK,WAAW,CAC5D,CACA,MAAO,CACL/D,GAAW,CACb,CACF,ECpIA,OAAS,OAAAgE,EAAK,QAAAC,OAAY,4BCAnB,SAASC,MAAMC,EAAO,CAC3B,OAAOA,EAAM,OAAO,OAAO,EAAE,KAAK,GAAG,CACvC,CDCO,SAASC,GAAkB,CAChC,QAAAC,EACA,UAAAC,EACA,YAAAC,EAAc,aACd,GAAGC,CACL,EAAG,CAED,OAAsBC,EAAI,sBAAuB,CAC/C,GAAGD,EACH,YAAAD,EACA,SAAyBG,GAAK,MAAO,CACnC,MAAOC,GAAG,sBALKJ,IAAgB,WAKe,kCAAoC,+BAA+B,EACjH,WAAY,OACZ,SAAU,CAAgBE,EAAI,MAAO,CACnC,WAAY,UACZ,MAAO,4BACP,SAAUJ,CACZ,CAAC,EAAkBI,EAAI,MAAO,CAC5B,WAAY,YACZ,MAAO,iCACP,KAAM,YACN,SAAU,CACZ,CAAC,EAAkBA,EAAI,MAAO,CAC5B,WAAY,YACZ,MAAO,4BACP,SAAUH,CACZ,CAAC,CAAC,CACJ,CAAC,CACH,CAAC,CACH",
6
- "names": ["RadiantElement", "bound", "customElement", "event", "onEvent", "onUpdated", "prop", "query", "_initProto", "_initClass", "_init_value", "_init_extra_value", "_init_orientation", "_init_extra_orientation", "_init_label", "_init_extra_label", "_init_primaryTarget", "_init_extra_primaryTarget", "_init_separatorTarget", "_init_extra_separatorTarget", "_init_changeEvent", "_init_extra_changeEvent", "_applyDecs", "n", "r", "o", "i", "a", "c", "u", "s", "f", "l", "p", "d", "m", "h", "y", "v", "g", "t", "b", "e", "applyDec", "w", "D", "S", "j", "E", "I", "P", "k", "F", "_setFunctionName", "N", "O", "T", "z", "A", "H", "_toPropertyKey", "_checkInRHS", "_toPrimitive", "_RuiWindowSplitter", "RuiWindowSplitter", "separator", "root", "horizontal", "size", "event2", "delta", "next", "rect", "jsx", "jsxs", "cx", "parts", "RuiWindowSplitter", "primary", "secondary", "orientation", "props", "jsx", "jsxs", "cx"]
4
+ "sourcesContent": ["let _initProto, _initClass, _init_value, _init_extra_value, _init_orientation, _init_extra_orientation, _init_label, _init_extra_label, _init_primaryTarget, _init_extra_primaryTarget, _init_separatorTarget, _init_extra_separatorTarget, _init_changeEvent, _init_extra_changeEvent;\nfunction _applyDecs(e, t, n, r, o, i) { var a, c, u, s, f, l, p, d = Symbol.metadata || Symbol.for(\"Symbol.metadata\"), m = Object.defineProperty, h = Object.create, y = [h(null), h(null)], v = t.length; function g(t, n, r) { return function (o, i) { n && (i = o, o = e); for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); return r ? i : o; }; } function b(e, t, n, r) { if (\"function\" != typeof e && (r || void 0 !== e)) throw new TypeError(t + \" must \" + (n || \"be\") + \" a function\" + (r ? \"\" : \" or undefined\")); return e; } function applyDec(e, t, n, r, o, i, u, s, f, l, p) { function d(e) { if (!p(e)) throw new TypeError(\"Attempted to access private element on non-instance\"); } var h = [].concat(t[0]), v = t[3], w = !u, D = 1 === o, S = 3 === o, j = 4 === o, E = 2 === o; function I(t, n, r) { return function (o, i) { return n && (i = o, o = e), r && r(o), P[t].call(o, i); }; } if (!w) { var P = {}, k = [], F = S ? \"get\" : j || D ? \"set\" : \"value\"; if (f ? (l || D ? P = { get: _setFunctionName(function () { return v(this); }, r, \"get\"), set: function (e) { t[4](this, e); } } : P[F] = v, l || _setFunctionName(P[F], r, E ? \"\" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { if ((c = y[+s][r]) && 7 !== (c ^ o)) throw Error(\"Decorating two elements with the same name (\" + P[F].name + \") is not supported yet\"); y[+s][r] = o < 3 ? 1 : o; } } for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { var T = b(h[O], \"A decorator\", \"be\", !0), z = n ? h[O - 1] : void 0, A = {}, H = { kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"class\"][o], name: r, metadata: a, addInitializer: function (e, t) { if (e.v) throw new TypeError(\"attempted to call addInitializer after decoration was finished\"); b(t, \"An initializer\", \"be\", !0), i.push(t); }.bind(null, A) }; if (w) c = T.call(z, N, H), A.v = 1, b(c, \"class decorators\", \"return\") && (N = c);else if (H.static = s, H.private = f, c = H.access = { has: f ? p.bind() : function (e) { return r in e; } }, j || (c.get = f ? E ? function (e) { return d(e), P.value; } : I(\"get\", 0, d) : function (e) { return e[r]; }), E || S || (c.set = f ? I(\"set\", 0, d) : function (e, t) { e[r] = t; }), N = T.call(z, D ? { get: P.get, set: P.set } : P[F], H), A.v = 1, D) { if (\"object\" == typeof N && N) (c = b(N.get, \"accessor.get\")) && (P.get = c), (c = b(N.set, \"accessor.set\")) && (P.set = c), (c = b(N.init, \"accessor.init\")) && k.unshift(c);else if (void 0 !== N) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or undefined\"); } else b(N, (l ? \"field\" : \"method\") + \" decorators\", \"return\") && (l ? k.unshift(N) : P[F] = N); } return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I(\"get\", s), I(\"set\", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; } function w(e) { return m(e, d, { configurable: !0, enumerable: !0, value: a }); } return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function (e) { e && f.push(g(e)); }, p = function (t, r) { for (var i = 0; i < n.length; i++) { var a = n[i], c = a[1], l = 7 & c; if ((8 & c) == t && !l == r) { var p = a[2], d = !!a[3], m = 16 & c; applyDec(t ? e : e.prototype, a, m, d ? \"#\" + p : _toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { return _checkInRHS(t) === e; } : o); } } }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { e: c, get c() { var n = []; return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; } }; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _setFunctionName(e, t, n) { \"symbol\" == typeof t && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\"); try { Object.defineProperty(e, \"name\", { configurable: !0, value: n ? n + \" \" + t : t }); } catch (e) {} return e; }\nfunction _checkInRHS(e) { if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? typeof e : \"null\")); return e; }\nimport { RadiantElement, bindTo, bound, customElement, event, onEvent, onUpdated, prop, query } from \"@ecopages/radiant\";\nexport const WINDOW_SPLITTER_MIN = 20;\nexport const WINDOW_SPLITTER_MAX = 80;\nfunction isHorizontalSplit(orientation) {\n return orientation !== \"vertical\";\n}\nlet _RuiWindowSplitter;\nclass RuiWindowSplitter extends RadiantElement {\n static {\n ({\n e: [_init_value, _init_extra_value, _init_orientation, _init_extra_orientation, _init_label, _init_extra_label, _init_primaryTarget, _init_extra_primaryTarget, _init_separatorTarget, _init_extra_separatorTarget, _init_changeEvent, _init_extra_changeEvent, _initProto],\n c: [_RuiWindowSplitter, _initClass]\n } = _applyDecs(this, [customElement(\"rui-window-splitter\")], [[[prop({\n type: Number,\n reflect: true,\n defaultValue: 50\n }), bindTo({\n ref: \"separator\",\n attr: \"aria-valuenow\"\n })], 0, \"value\"], [[prop({\n type: String,\n defaultValue: \"horizontal\"\n }), bindTo({\n ref: \"separator\",\n attr: \"aria-orientation\",\n map: orientation => isHorizontalSplit(orientation) ? \"vertical\" : \"horizontal\"\n })], 0, \"orientation\"], [[prop({\n type: String,\n defaultValue: \"Split view\"\n }), bindTo({\n ref: \"separator\",\n attr: \"aria-label\"\n })], 0, \"label\"], [query({\n ref: \"primary\"\n }), 0, \"primaryTarget\"], [query({\n ref: \"separator\"\n }), 0, \"separatorTarget\"], [event({\n name: \"rui-splitter-change\",\n bubbles: true,\n composed: true\n }), 0, \"changeEvent\"], [onUpdated([\"value\", \"orientation\"]), 2, \"onPropsUpdated\"], [onEvent({\n ref: \"separator\",\n type: \"keydown\"\n }), 2, \"onKeydown\"], [onEvent({\n ref: \"separator\",\n type: \"pointerdown\"\n }), 2, \"onPointerDown\"], [bound, 2, \"onPointerMove\"], [bound, 2, \"onPointerUp\"]], 0, void 0, RadiantElement));\n }\n value = (_initProto(this), _init_value(this));\n orientation = (_init_extra_value(this), _init_orientation(this));\n label = (_init_extra_orientation(this), _init_label(this));\n primaryTarget = (_init_extra_label(this), _init_primaryTarget(this));\n separatorTarget = (_init_extra_primaryTarget(this), _init_separatorTarget(this));\n changeEvent = (_init_extra_separatorTarget(this), _init_changeEvent(this));\n dragging = (_init_extra_changeEvent(this), false);\n onConnected() {\n this.syncSeparatorPresentation();\n this.applySize();\n }\n disconnectedCallback() {\n document.removeEventListener(\"pointermove\", this.onPointerMove);\n document.removeEventListener(\"pointerup\", this.onPointerUp);\n super.disconnectedCallback();\n }\n onPropsUpdated() {\n this.syncSeparatorPresentation();\n this.applySize();\n }\n syncSeparatorPresentation() {\n const root = this.querySelector('[data-ref=\"root\"]');\n if (!root) {\n return;\n }\n const horizontal = isHorizontalSplit(this.orientation);\n root.classList.toggle(\"rui-window-splitter--horizontal\", horizontal);\n root.classList.toggle(\"rui-window-splitter--vertical\", !horizontal);\n }\n applySize() {\n if (!this.primaryTarget) return;\n const size = `${Math.min(WINDOW_SPLITTER_MAX, Math.max(WINDOW_SPLITTER_MIN, this.value))}%`;\n if (this.orientation === \"vertical\") {\n this.primaryTarget.style.height = size;\n this.primaryTarget.style.width = \"\";\n } else {\n this.primaryTarget.style.width = size;\n this.primaryTarget.style.height = \"\";\n }\n }\n onKeydown(event2) {\n const delta = event2.shiftKey ? 10 : 2;\n const horizontal = isHorizontalSplit(this.orientation);\n if (horizontal && event2.key === \"ArrowLeft\" || !horizontal && event2.key === \"ArrowUp\") {\n event2.preventDefault();\n this.updateValue(Math.max(WINDOW_SPLITTER_MIN, this.value - delta));\n } else if (horizontal && event2.key === \"ArrowRight\" || !horizontal && event2.key === \"ArrowDown\") {\n event2.preventDefault();\n this.updateValue(Math.min(WINDOW_SPLITTER_MAX, this.value + delta));\n } else if (event2.key === \"Home\") {\n event2.preventDefault();\n this.updateValue(WINDOW_SPLITTER_MIN);\n } else if (event2.key === \"End\") {\n event2.preventDefault();\n this.updateValue(WINDOW_SPLITTER_MAX);\n }\n }\n updateValue(next) {\n if (next === this.value) return;\n this.value = next;\n this.changeEvent.emit({\n value: next\n });\n }\n onPointerDown(event2) {\n this.dragging = true;\n this.separatorTarget.setPointerCapture(event2.pointerId);\n document.addEventListener(\"pointermove\", this.onPointerMove);\n document.addEventListener(\"pointerup\", this.onPointerUp);\n }\n onPointerMove(event2) {\n if (!this.dragging) return;\n const rect = this.getBoundingClientRect();\n if (this.orientation === \"vertical\") {\n this.updateValue(Math.min(WINDOW_SPLITTER_MAX, Math.max(WINDOW_SPLITTER_MIN, (event2.clientY - rect.top) / rect.height * 100)));\n } else {\n this.updateValue(Math.min(WINDOW_SPLITTER_MAX, Math.max(WINDOW_SPLITTER_MIN, (event2.clientX - rect.left) / rect.width * 100)));\n }\n }\n onPointerUp() {\n this.dragging = false;\n document.removeEventListener(\"pointermove\", this.onPointerMove);\n document.removeEventListener(\"pointerup\", this.onPointerUp);\n }\n static {\n _initClass();\n }\n}\nexport { _RuiWindowSplitter as RuiWindowSplitter };", "import { jsx, jsxs } from \"@ecopages/jsx/jsx-runtime\";\nimport { cx } from \"@/lib/cx\";\nimport { WINDOW_SPLITTER_MAX, WINDOW_SPLITTER_MIN } from \"./window-splitter.script\";\nimport \"./window-splitter.script\";\nexport function RuiWindowSplitter({\n primary,\n secondary,\n orientation = \"horizontal\",\n ...props\n}) {\n const horizontal = orientation !== \"vertical\";\n return /* @__PURE__ */jsx(\"rui-window-splitter\", {\n ...props,\n orientation,\n children: /* @__PURE__ */jsxs(\"div\", {\n class: cx(\"rui-window-splitter\", horizontal ? \"rui-window-splitter--horizontal\" : \"rui-window-splitter--vertical\"),\n \"data-ref\": \"root\",\n children: [/* @__PURE__ */jsx(\"div\", {\n \"data-ref\": \"primary\",\n class: \"rui-window-splitter__pane\",\n children: primary\n }), /* @__PURE__ */jsx(\"div\", {\n \"data-ref\": \"separator\",\n class: \"rui-window-splitter__separator\",\n role: \"separator\",\n tabindex: 0,\n \"aria-valuemin\": WINDOW_SPLITTER_MIN,\n \"aria-valuemax\": WINDOW_SPLITTER_MAX\n }), /* @__PURE__ */jsx(\"div\", {\n \"data-ref\": \"secondary\",\n class: \"rui-window-splitter__pane\",\n children: secondary\n })]\n })\n });\n}", "export function cx(...parts) {\n return parts.filter(Boolean).join(\" \");\n}"],
5
+ "mappings": "AAMA,OAAS,kBAAAA,GAAgB,UAAAC,EAAQ,SAAAC,GAAO,iBAAAC,GAAe,SAAAC,GAAO,WAAAC,GAAS,aAAAC,GAAW,QAAAC,EAAM,SAAAC,OAAa,oBANrG,IAAIC,GAAYC,GAAYC,GAAaC,GAAmBC,GAAmBC,GAAyBC,GAAaC,GAAmBC,GAAqBC,GAA2BC,GAAuBC,GAA6BC,GAAmBC,GAC/P,SAASC,GAAW,EAAG,EAAG,EAAGC,EAAGC,EAAGC,EAAG,CAAE,IAAIC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAI,OAAO,UAAY,OAAO,IAAI,iBAAiB,EAAGC,EAAI,OAAO,eAAgBC,EAAI,OAAO,OAAQC,EAAI,CAACD,EAAE,IAAI,EAAGA,EAAE,IAAI,CAAC,EAAGE,EAAI,EAAE,OAAQ,SAASC,EAAEC,EAAGC,EAAGjB,EAAG,CAAE,OAAO,SAAUC,EAAGC,EAAG,CAAEe,IAAMf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GAAK,MAAO,CACnC,MAAOC,GAAG,sBALKJ,IAAgB,WAKe,kCAAoC,+BAA+B,EACjH,WAAY,OACZ,SAAU,CAAgBE,EAAI,MAAO,CACnC,WAAY,UACZ,MAAO,4BACP,SAAUJ,CACZ,CAAC,EAAkBI,EAAI,MAAO,CAC5B,WAAY,YACZ,MAAO,iCACP,KAAM,YACN,SAAU,EACV,gBAAiBG,EACjB,gBAAiBC,CACnB,CAAC,EAAkBJ,EAAI,MAAO,CAC5B,WAAY,YACZ,MAAO,4BACP,SAAUH,CACZ,CAAC,CAAC,CACJ,CAAC,CACH,CAAC,CACH",
6
+ "names": ["RadiantElement", "bindTo", "bound", "customElement", "event", "onEvent", "onUpdated", "prop", "query", "_initProto", "_initClass", "_init_value", "_init_extra_value", "_init_orientation", "_init_extra_orientation", "_init_label", "_init_extra_label", "_init_primaryTarget", "_init_extra_primaryTarget", "_init_separatorTarget", "_init_extra_separatorTarget", "_init_changeEvent", "_init_extra_changeEvent", "_applyDecs", "r", "o", "i", "a", "c", "u", "s", "f", "l", "p", "d", "m", "h", "y", "v", "g", "t", "n", "b", "e", "applyDec", "w", "D", "S", "j", "E", "I", "P", "k", "F", "_setFunctionName", "N", "O", "T", "z", "A", "H", "_toPropertyKey", "_checkInRHS", "_toPrimitive", "WINDOW_SPLITTER_MIN", "WINDOW_SPLITTER_MAX", "isHorizontalSplit", "orientation", "_RuiWindowSplitter", "RuiWindowSplitter", "root", "horizontal", "size", "event2", "delta", "next", "rect", "jsx", "jsxs", "cx", "parts", "RuiWindowSplitter", "primary", "secondary", "orientation", "props", "jsx", "jsxs", "cx", "WINDOW_SPLITTER_MIN", "WINDOW_SPLITTER_MAX"]
7
7
  }
@@ -1,6 +1,15 @@
1
1
  import type { JsxCustomElementAttributes, JsxRenderable } from '@ecopages/jsx';
2
- import type { RuiWindowSplitter as RuiWindowSplitterElement, RuiWindowSplitterProps } from './window-splitter.script';
2
+ import { type RuiWindowSplitter as RuiWindowSplitterElement, type RuiWindowSplitterProps } from './window-splitter.script';
3
3
  import './window-splitter.script';
4
+ /**
5
+ * Window splitter view with `primary` and `secondary` pane props.
6
+ *
7
+ * @cssclass rui-window-splitter - Root surface (`[data-ref="root"]`).
8
+ * @cssclass rui-window-splitter--horizontal - Side-by-side panes.
9
+ * @cssclass rui-window-splitter--vertical - Stacked panes.
10
+ * @cssclass rui-window-splitter__pane - A pane region (`[data-ref="primary"]` / `[data-ref="secondary"]`).
11
+ * @cssclass rui-window-splitter__separator - Focusable separator (`[data-ref="separator"]`).
12
+ */
4
13
  export declare function RuiWindowSplitter({ primary, secondary, orientation, ...props }: JsxCustomElementAttributes<RuiWindowSplitterElement, RuiWindowSplitterProps> & {
5
14
  primary: JsxRenderable;
6
15
  secondary: JsxRenderable;
@@ -10,12 +10,33 @@ export type RuiWindowSplitterProps = {
10
10
  export type RuiWindowSplitterChangeDetail = {
11
11
  value: number;
12
12
  };
13
+ /** Minimum primary pane size as a percentage. */
14
+ export declare const WINDOW_SPLITTER_MIN = 20;
15
+ /** Maximum primary pane size as a percentage. */
16
+ export declare const WINDOW_SPLITTER_MAX = 80;
13
17
  /**
14
- * `<rui-window-splitter>` — a movable separator between two panes.
18
+ * `<rui-window-splitter>` — movable separator between two panes.
19
+ *
20
+ * The custom element is a behavior host: it does not render the composed tree.
21
+ * Import the script and place light-DOM children that match the contract below,
22
+ * or use the `RuiWindowSplitter` view helper which stamps the same targets.
15
23
  *
16
24
  * Implements the APG Window Splitter pattern with a focusable separator that
17
- * adjusts pane size via arrow keys and pointer drag. `value` and `orientation`
18
- * are reactive props.
25
+ * adjusts pane size via arrow keys and pointer drag.
26
+ *
27
+ * ## Light-DOM contract
28
+ *
29
+ * Required:
30
+ * - `[data-ref="root"]` — layout root. Host toggles `rui-window-splitter--horizontal` /
31
+ * `rui-window-splitter--vertical` from `orientation`.
32
+ * - `[data-ref="primary"]` — first pane. Host sets inline `width` or `height` from `value` (clamped 20–80).
33
+ * - `[data-ref="separator"]` — draggable handle. Host sets `aria-orientation`, `aria-valuenow`,
34
+ * and `aria-label`. The view seeds `role="separator"`, `tabIndex="0"`, `aria-valuemin`, and `aria-valuemax`.
35
+ * - `[data-ref="secondary"]` — second pane (sibling after the separator; not queried directly).
36
+ *
37
+ * Do not set `aria-valuenow`, `aria-orientation`, or primary pane `width` / `height` — the host owns those.
38
+ *
39
+ * Nested hosts: none.
19
40
  *
20
41
  * @summary Resizable two-pane split with keyboard and pointer control.
21
42
  *
@@ -29,11 +50,8 @@ export type RuiWindowSplitterChangeDetail = {
29
50
  *
30
51
  * @fires rui-splitter-change - Emitted with `{ value }` when the separator moves.
31
52
  *
32
- * @cssclass rui-window-splitter - Root surface.
33
- * @cssclass rui-window-splitter--horizontal - Side-by-side panes.
34
- * @cssclass rui-window-splitter--vertical - Stacked panes.
35
- * @cssclass rui-window-splitter__pane - A pane region.
36
- * @cssclass rui-window-splitter__separator - Focusable separator (`role="separator"`).
53
+ * @remarks
54
+ * Minimum tree: `[data-ref="root"]` > primary + separator + secondary. BEM classes live on the view.
37
55
  */
38
56
  export declare class RuiWindowSplitter extends RadiantElement {
39
57
  value: number;
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  */
5
5
  export { withDefaultAriaLabel } from './aria';
6
6
  export { cx } from './lib/cx';
7
+ export * from './lib/icons';
7
8
  export * from './components/ui/alert';
8
9
  export * from './components/ui/autocomplete';
9
10
  export * from './components/ui/avatar';
@@ -20,6 +21,7 @@ export * from './components/ui/chip-list';
20
21
  export * from './components/ui/combobox';
21
22
  export * from './components/ui/cycle-toggle';
22
23
  export * from './components/ui/date-field';
24
+ export * from './components/ui/date-input';
23
25
  export * from './components/ui/date-range-picker';
24
26
  export * from './components/ui/dialog';
25
27
  export * from './components/ui/disclosure';