luxen-ui 0.1.2 → 0.2.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/cdn/custom-elements.json +293 -224
- package/cdn/elements/dialog/dialog.d.ts +1 -0
- package/cdn/elements/dialog/dialog.d.ts.map +1 -1
- package/cdn/elements/dialog/dialog.js.map +1 -1
- package/cdn/elements/dialog/dialog.styles.js +1 -1
- package/cdn/elements/dialog/dialog.styles.js.map +1 -1
- package/cdn/elements/input-stepper/input-stepper.d.ts +3 -0
- package/cdn/elements/input-stepper/input-stepper.d.ts.map +1 -1
- package/cdn/elements/input-stepper/input-stepper.js.map +1 -1
- package/cdn/elements/popover/popover.d.ts +3 -1
- package/cdn/elements/popover/popover.d.ts.map +1 -1
- package/cdn/elements/popover/popover.js +2 -2
- package/cdn/elements/popover/popover.js.map +1 -1
- package/cdn/shared/controllers/popover.d.ts +1 -0
- package/cdn/shared/controllers/popover.d.ts.map +1 -1
- package/cdn/shared/controllers/popover.js +1 -1
- package/cdn/shared/controllers/popover.js.map +1 -1
- package/cdn/styles/elements/input-stepper/default.css +19 -16
- package/cdn/styles/elements/input-stepper/rounded.css +14 -11
- package/dist/css/elements/input-stepper/default.css +19 -16
- package/dist/css/elements/input-stepper/rounded.css +14 -11
- package/dist/custom-elements.json +293 -224
- package/dist/elements/dialog/dialog.css +4 -3
- package/dist/elements/dialog/dialog.d.ts +1 -0
- package/dist/elements/dialog/dialog.d.ts.map +1 -1
- package/dist/elements/dialog/dialog.js +1 -0
- package/dist/elements/input-stepper/input-stepper.d.ts +3 -0
- package/dist/elements/input-stepper/input-stepper.d.ts.map +1 -1
- package/dist/elements/input-stepper/input-stepper.js +3 -0
- package/dist/elements/popover/popover.css +7 -2
- package/dist/elements/popover/popover.d.ts +3 -1
- package/dist/elements/popover/popover.d.ts.map +1 -1
- package/dist/elements/popover/popover.js +15 -4
- package/dist/shared/controllers/popover.d.ts +1 -0
- package/dist/shared/controllers/popover.d.ts.map +1 -1
- package/dist/shared/controllers/popover.js +2 -1
- package/package.json +3 -2
package/cdn/custom-elements.json
CHANGED
|
@@ -2294,7 +2294,7 @@
|
|
|
2294
2294
|
{
|
|
2295
2295
|
"kind": "variable",
|
|
2296
2296
|
"name": "u",
|
|
2297
|
-
"default": "class extends i{constructor(...t){super(...t),this._popoverId=e(`popover`),this._floating=new c(this,{getTriggerElement:()=>this._trigger,getFloatingElement:()=>this._popoverEl,getArrowElement:()=>this._arrowEl,onPlacementChange:e=>{this.dataset.placement=e}}),this.#e=``,this.#t=`bottom`,this.#n=8,this.#r=!1,this.#i=!1,this.#a=`click`,this._onPointerEnter=()=>{this._hasTrigger(`hover`)&&(this._floating.cleanupSafePolygon(),this.show())},this._onPointerLeave=e=>{!this._hasTrigger(`hover`)||!this.open||this._floating.handlePointerLeave(e,()=>this.hide())},this._onFocusIn=()=>{this._hasTrigger(`focus`)&&this.show()},this._onFocusOut=()=>{this._hasTrigger(`focus`)&&this.hide()},this._onClick=()=>{this._hasTrigger(`click`)&&this.toggle()},this._onKeyDown=e=>{this.open&&e.key===`Escape`&&(e.stopPropagation(),this.hide())},this._onToggle=e=>{e.newState===`closed`&&this.open&&(this.open=!1)}}static{this.styles=[s,l]}#e;get for(){return this.#e}set for(e){this.#e=e}#t;get placement(){return this.#t}set placement(e){this.#t=e}#n;get distance(){return this.#n}set distance(e){this.#n=e}#r;get open(){return this.#r}set open(e){this.#r=e}#i;get withoutArrow(){return this.#i}set withoutArrow(e){this.#i=e}#a;get
|
|
2297
|
+
"default": "class extends i{constructor(...t){super(...t),this._popoverId=e(`popover`),this._floating=new c(this,{getTriggerElement:()=>this._trigger,getFloatingElement:()=>this._popoverEl,getArrowElement:()=>this._arrowEl,onPlacementChange:e=>{this.dataset.placement=e}}),this.#e=``,this.#t=`bottom`,this.#n=8,this.#r=!1,this.#i=!1,this.#a=!1,this.#o=`click`,this._onPointerEnter=()=>{this._hasTrigger(`hover`)&&(this._floating.cleanupSafePolygon(),this.show())},this._onPointerLeave=e=>{!this._hasTrigger(`hover`)||!this.open||this._floating.handlePointerLeave(e,()=>this.hide())},this._onFocusIn=()=>{this._hasTrigger(`focus`)&&this.show()},this._onFocusOut=()=>{this._hasTrigger(`focus`)&&this.hide()},this._onClick=()=>{this._hasTrigger(`click`)&&this.toggle()},this._onKeyDown=e=>{this.open&&e.key===`Escape`&&(e.stopPropagation(),this.hide())},this._onToggle=e=>{e.newState===`closed`&&this.open&&(this.open=!1)}}static{this.styles=[s,l]}#e;get for(){return this.#e}set for(e){this.#e=e}#t;get placement(){return this.#t}set placement(e){this.#t=e}#n;get distance(){return this.#n}set distance(e){this.#n=e}#r;get open(){return this.#r}set open(e){this.#r=e}#i;get withoutArrow(){return this.#i}set withoutArrow(e){this.#i=e}#a;get fullWidth(){return this.#a}set fullWidth(e){this.#a=e}#o;get trigger(){return this.#o}set trigger(e){this.#o=e}_hasTrigger(e){return this.trigger.split(` `).includes(e)}get _trigger(){return this.for?this.getRootNode().getElementById(this.for):null}get _popoverEl(){return this.shadowRoot.querySelector(`[popover]`)}get _arrowEl(){return this.withoutArrow?null:this.shadowRoot.querySelector(`i`)}_getDuration(e){let t=parseFloat(getComputedStyle(this).getPropertyValue(e));return Number.isNaN(t)?150:t}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>this._addTriggerListeners())}disconnectedCallback(){super.disconnectedCallback(),this._removeTriggerListeners()}updated(e){e.has(`open`)&&this._handleOpenChange(),e.has(`for`)&&(this._removeTriggerListeners(e.get(`for`)),this._addTriggerListeners())}show(){this.open||=!0}hide(){this.open&&=!1}toggle(){this.open=!this.open}async _handleOpenChange(){let e=this._popoverEl;if(!e)return;let t={placement:this.placement,distance:this.distance,fullWidth:this.fullWidth};if(this.open){if(e.showPopover(),await this._floating.updatePosition(t),!this.open)return;await this._floating.animateShow(e,this._getDuration(`--show-duration`)),this._floating.startPositioning(t),this._trigger?.setAttribute(`aria-expanded`,`true`),this._trigger?.setAttribute(`aria-controls`,this._popoverId)}else this._floating.stopPositioning(),this._floating.cleanupSafePolygon(),this._trigger?.setAttribute(`aria-expanded`,`false`),this._trigger?.removeAttribute(`aria-controls`),await this._floating.animateHide(e,this._getDuration(`--hide-duration`)),e.matches(`:popover-open`)&&e.hidePopover()}_addTriggerListeners(){this._floating.addTriggerListeners({onPointerEnter:this._onPointerEnter,onPointerLeave:this._onPointerLeave,onFocusIn:this._onFocusIn,onFocusOut:this._onFocusOut,onClick:this._onClick,onKeyDown:this._onKeyDown})}_removeTriggerListeners(e){let t=e?this.getRootNode().getElementById(e):void 0;this._floating.removeTriggerListeners(t)}render(){return n` <div id=${this._popoverId} popover=\"auto\" part=\"body\" @toggle=${this._onToggle} > ${this.withoutArrow?r:n` <i part=\"arrow\" role=\"presentation\" ></i> `} <slot></slot> </div> `}}"
|
|
2298
2298
|
}
|
|
2299
2299
|
],
|
|
2300
2300
|
"exports": [
|
|
@@ -2544,7 +2544,7 @@
|
|
|
2544
2544
|
{
|
|
2545
2545
|
"kind": "variable",
|
|
2546
2546
|
"name": "Je",
|
|
2547
|
-
"default": "class{constructor(e,t){this._currentPlacement=``,this._host=e,this._config=t,e.addController(this)}hostConnected(){}hostDisconnected(){this.stopPositioning(),this.cleanupSafePolygon(),this.removeTriggerListeners()}get currentPlacement(){return this._currentPlacement}async updatePosition(e){let t=this._config.getTriggerElement(),n=this._config.getFloatingElement(),r=this._config.getArrowElement();if(!t||!n)return;let i=[Re(e.distance),Be(),ze(),...r?[Ve({element:r,padding:8})]:[]],{x:a,y:o,placement:s,middlewareData:c}=await He(t,n,{placement:e.placement,strategy:`fixed`,middleware:i});if(Object.assign(n.style,{position:`fixed`,left
|
|
2547
|
+
"default": "class{constructor(e,t){this._currentPlacement=``,this._host=e,this._config=t,e.addController(this)}hostConnected(){}hostDisconnected(){this.stopPositioning(),this.cleanupSafePolygon(),this.removeTriggerListeners()}get currentPlacement(){return this._currentPlacement}async updatePosition(e){let t=this._config.getTriggerElement(),n=this._config.getFloatingElement(),r=this._config.getArrowElement();if(!t||!n)return;let i=[Re(e.distance),Be(),ze(),...r?[Ve({element:r,padding:8})]:[]],{x:a,y:o,placement:s,middlewareData:c}=await He(t,n,{placement:e.placement,strategy:`fixed`,middleware:i});if(Object.assign(n.style,{position:`fixed`,left:e.fullWidth?`0px`:`${a}px`,top:`${o}px`,width:e.fullWidth?`100vw`:``}),s!==this._currentPlacement&&(this._currentPlacement=s,this._config.onPlacementChange?.(s)),c.arrow&&r){let{x:e,y:t}=c.arrow,n=Ke[s.split(`-`)[0]];Object.assign(r.style,{left:e==null?``:`${e}px`,top:t==null?``:`${t}px`,[n]:`${-r.offsetWidth/2}px`})}}startPositioning(e){let t=this._config.getTriggerElement(),n=this._config.getFloatingElement();!t||!n||(this._cleanupAutoUpdate?.(),this._cleanupAutoUpdate=Le(t,n,()=>this.updatePosition(e)))}stopPositioning(){this._cleanupAutoUpdate?.(),this._cleanupAutoUpdate=void 0}handlePointerLeave(e,t){let n=this._config.getFloatingElement(),r=this._config.getTriggerElement();if(!n||!r){t();return}let i=e.clientX,a=e.clientY,o=e=>{let{clientX:o,clientY:c}=e,l=[o,c],u=n.getBoundingClientRect(),d=r.getBoundingClientRect(),f=this._currentPlacement.split(`-`)[0];if(!We(l,u)&&!We(l,d)){if(f===`top`&&a>=d.bottom-1||f===`bottom`&&a<=d.top+1||f===`left`&&i>=d.right-1||f===`right`&&i<=d.left+1){s(),t();return}Ue(l,Ge(i,a,u,d,this._currentPlacement))||(s(),t())}},s=()=>{document.removeEventListener(`pointermove`,o)};document.addEventListener(`pointermove`,o),this._cleanupSafePolygon?.(),this._cleanupSafePolygon=s}cleanupSafePolygon(){this._cleanupSafePolygon?.(),this._cleanupSafePolygon=void 0}addTriggerListeners(e){let t=this._config.getTriggerElement();t&&(this._handlers=e,this._triggerElement=t,e.onPointerEnter&&t.addEventListener(`pointerenter`,e.onPointerEnter),e.onPointerLeave&&t.addEventListener(`pointerleave`,e.onPointerLeave),e.onFocusIn&&t.addEventListener(`focusin`,e.onFocusIn),e.onFocusOut&&t.addEventListener(`focusout`,e.onFocusOut),e.onClick&&t.addEventListener(`click`,e.onClick),e.onKeyDown&&t.addEventListener(`keydown`,e.onKeyDown))}removeTriggerListeners(e){let t=e??this._triggerElement,n=this._handlers;!t||!n||(n.onPointerEnter&&t.removeEventListener(`pointerenter`,n.onPointerEnter),n.onPointerLeave&&t.removeEventListener(`pointerleave`,n.onPointerLeave),n.onFocusIn&&t.removeEventListener(`focusin`,n.onFocusIn),n.onFocusOut&&t.removeEventListener(`focusout`,n.onFocusOut),n.onClick&&t.removeEventListener(`click`,n.onClick),n.onKeyDown&&t.removeEventListener(`keydown`,n.onKeyDown),e||(this._handlers=void 0,this._triggerElement=void 0))}async animateShow(e,t,n){let r=qe?.matches?0:t;e.getAnimations().forEach(e=>e.cancel()),e.animate(n??[{opacity:0,scale:.96},{opacity:1,scale:1}],{duration:r,fill:`forwards`})}async animateHide(e,t,n){let r=qe?.matches?0:t;await e.animate(n??[{opacity:1,scale:1},{opacity:0,scale:.96}],{duration:r,fill:`forwards`}).finished}}"
|
|
2548
2548
|
}
|
|
2549
2549
|
],
|
|
2550
2550
|
"exports": [
|
|
@@ -3251,6 +3251,10 @@
|
|
|
3251
3251
|
"description": "Dialog border radius. Default `6px`.",
|
|
3252
3252
|
"name": "--border-radius"
|
|
3253
3253
|
},
|
|
3254
|
+
{
|
|
3255
|
+
"description": "Padding applied to the header, footer, and inline-padding of the body. Default `1.5rem`. Set to `0` to remove all internal spacing (e.g. for edge-to-edge media).",
|
|
3256
|
+
"name": "--padding"
|
|
3257
|
+
},
|
|
3254
3258
|
{
|
|
3255
3259
|
"description": "Open transition duration. Default `200ms`.",
|
|
3256
3260
|
"name": "--show-duration"
|
|
@@ -3644,6 +3648,14 @@
|
|
|
3644
3648
|
"module": "src/html/elements/dialog/dialog.ts"
|
|
3645
3649
|
}
|
|
3646
3650
|
},
|
|
3651
|
+
{
|
|
3652
|
+
"description": "Padding applied to the header, footer, and inline-padding of the body. Default `1.5rem`. Set to `0` to remove all internal spacing (e.g. for edge-to-edge media).",
|
|
3653
|
+
"name": "--padding",
|
|
3654
|
+
"inheritedFrom": {
|
|
3655
|
+
"name": "LuxenDialog",
|
|
3656
|
+
"module": "src/html/elements/dialog/dialog.ts"
|
|
3657
|
+
}
|
|
3658
|
+
},
|
|
3647
3659
|
{
|
|
3648
3660
|
"description": "Backdrop blur amount (any CSS length). Default `0` (no blur). Set to e.g. `4px` for a subtle frost.",
|
|
3649
3661
|
"name": "--backdrop-blur",
|
|
@@ -4700,6 +4712,16 @@
|
|
|
4700
4712
|
"kind": "class",
|
|
4701
4713
|
"description": "A stepper control that enhances a native `<input type=\"number\">` with\ndecrement/increment buttons and an optional animated number track.",
|
|
4702
4714
|
"name": "LuxenInputStepper",
|
|
4715
|
+
"cssProperties": [
|
|
4716
|
+
{
|
|
4717
|
+
"description": "Border color of the stepper container (default appearance) and of each button (rounded appearance). Defaults to `--l-color-border`.",
|
|
4718
|
+
"name": "--border-color"
|
|
4719
|
+
},
|
|
4720
|
+
{
|
|
4721
|
+
"description": "Border radius of the stepper container (default appearance). Defaults to `--radius-md`.",
|
|
4722
|
+
"name": "--border-radius"
|
|
4723
|
+
}
|
|
4724
|
+
],
|
|
4703
4725
|
"members": [
|
|
4704
4726
|
{
|
|
4705
4727
|
"kind": "method",
|
|
@@ -4965,7 +4987,7 @@
|
|
|
4965
4987
|
},
|
|
4966
4988
|
{
|
|
4967
4989
|
"description": "Border radius. Default `8px`.",
|
|
4968
|
-
"name": "--radius"
|
|
4990
|
+
"name": "--border-radius"
|
|
4969
4991
|
},
|
|
4970
4992
|
{
|
|
4971
4993
|
"description": "Maximum width. Default `320px`.",
|
|
@@ -5030,6 +5052,11 @@
|
|
|
5030
5052
|
"name": "withoutArrow",
|
|
5031
5053
|
"description": "Hide the directional arrow."
|
|
5032
5054
|
},
|
|
5055
|
+
{
|
|
5056
|
+
"kind": "field",
|
|
5057
|
+
"name": "fullWidth",
|
|
5058
|
+
"description": "Stretch the popover to the viewport width. Useful for mega menus."
|
|
5059
|
+
},
|
|
5033
5060
|
{
|
|
5034
5061
|
"kind": "field",
|
|
5035
5062
|
"name": "trigger",
|
|
@@ -8968,6 +8995,10 @@
|
|
|
8968
8995
|
"description": "Dialog border radius. Default `6px`.",
|
|
8969
8996
|
"name": "--border-radius"
|
|
8970
8997
|
},
|
|
8998
|
+
{
|
|
8999
|
+
"description": "Padding applied to the header, footer, and inline-padding of the body. Default `1.5rem`. Set to `0` to remove all internal spacing (e.g. for edge-to-edge media).",
|
|
9000
|
+
"name": "--padding"
|
|
9001
|
+
},
|
|
8971
9002
|
{
|
|
8972
9003
|
"description": "Open transition duration. Default `200ms`.",
|
|
8973
9004
|
"name": "--show-duration"
|
|
@@ -9448,6 +9479,14 @@
|
|
|
9448
9479
|
"module": "src/html/elements/dialog/dialog.ts"
|
|
9449
9480
|
}
|
|
9450
9481
|
},
|
|
9482
|
+
{
|
|
9483
|
+
"description": "Padding applied to the header, footer, and inline-padding of the body. Default `1.5rem`. Set to `0` to remove all internal spacing (e.g. for edge-to-edge media).",
|
|
9484
|
+
"name": "--padding",
|
|
9485
|
+
"inheritedFrom": {
|
|
9486
|
+
"name": "LuxenDialog",
|
|
9487
|
+
"module": "src/html/elements/dialog/dialog.ts"
|
|
9488
|
+
}
|
|
9489
|
+
},
|
|
9451
9490
|
{
|
|
9452
9491
|
"description": "Backdrop blur amount (any CSS length). Default `0` (no blur). Set to e.g. `4px` for a subtle frost.",
|
|
9453
9492
|
"name": "--backdrop-blur",
|
|
@@ -10780,6 +10819,16 @@
|
|
|
10780
10819
|
"kind": "class",
|
|
10781
10820
|
"description": "A stepper control that enhances a native `<input type=\"number\">` with\ndecrement/increment buttons and an optional animated number track.",
|
|
10782
10821
|
"name": "LuxenInputStepper",
|
|
10822
|
+
"cssProperties": [
|
|
10823
|
+
{
|
|
10824
|
+
"description": "Border color of the stepper container (default appearance) and of each button (rounded appearance). Defaults to `--l-color-border`.",
|
|
10825
|
+
"name": "--border-color"
|
|
10826
|
+
},
|
|
10827
|
+
{
|
|
10828
|
+
"description": "Border radius of the stepper container (default appearance). Defaults to `--radius-md`.",
|
|
10829
|
+
"name": "--border-radius"
|
|
10830
|
+
}
|
|
10831
|
+
],
|
|
10783
10832
|
"members": [
|
|
10784
10833
|
{
|
|
10785
10834
|
"kind": "field",
|
|
@@ -11175,7 +11224,7 @@
|
|
|
11175
11224
|
},
|
|
11176
11225
|
{
|
|
11177
11226
|
"description": "Border radius. Default `8px`.",
|
|
11178
|
-
"name": "--radius"
|
|
11227
|
+
"name": "--border-radius"
|
|
11179
11228
|
},
|
|
11180
11229
|
{
|
|
11181
11230
|
"description": "Maximum width. Default `320px`.",
|
|
@@ -11278,6 +11327,17 @@
|
|
|
11278
11327
|
"attribute": "without-arrow",
|
|
11279
11328
|
"reflects": true
|
|
11280
11329
|
},
|
|
11330
|
+
{
|
|
11331
|
+
"kind": "field",
|
|
11332
|
+
"name": "fullWidth",
|
|
11333
|
+
"type": {
|
|
11334
|
+
"text": "boolean"
|
|
11335
|
+
},
|
|
11336
|
+
"default": "false",
|
|
11337
|
+
"description": "Stretch the popover to the viewport width. Useful for mega menus.",
|
|
11338
|
+
"attribute": "full-width",
|
|
11339
|
+
"reflects": true
|
|
11340
|
+
},
|
|
11281
11341
|
{
|
|
11282
11342
|
"kind": "field",
|
|
11283
11343
|
"name": "trigger",
|
|
@@ -11496,6 +11556,15 @@
|
|
|
11496
11556
|
"description": "Hide the directional arrow.",
|
|
11497
11557
|
"fieldName": "withoutArrow"
|
|
11498
11558
|
},
|
|
11559
|
+
{
|
|
11560
|
+
"name": "full-width",
|
|
11561
|
+
"type": {
|
|
11562
|
+
"text": "boolean"
|
|
11563
|
+
},
|
|
11564
|
+
"default": "false",
|
|
11565
|
+
"description": "Stretch the popover to the viewport width. Useful for mega menus.",
|
|
11566
|
+
"fieldName": "fullWidth"
|
|
11567
|
+
},
|
|
11499
11568
|
{
|
|
11500
11569
|
"name": "trigger",
|
|
11501
11570
|
"type": {
|
|
@@ -13786,6 +13855,226 @@
|
|
|
13786
13855
|
}
|
|
13787
13856
|
]
|
|
13788
13857
|
},
|
|
13858
|
+
{
|
|
13859
|
+
"kind": "javascript-module",
|
|
13860
|
+
"path": "src/html/shared/controllers/popover.ts",
|
|
13861
|
+
"declarations": [
|
|
13862
|
+
{
|
|
13863
|
+
"kind": "class",
|
|
13864
|
+
"description": "",
|
|
13865
|
+
"name": "PopoverController",
|
|
13866
|
+
"members": [
|
|
13867
|
+
{
|
|
13868
|
+
"kind": "field",
|
|
13869
|
+
"name": "_host",
|
|
13870
|
+
"type": {
|
|
13871
|
+
"text": "ReactiveControllerHost & HTMLElement"
|
|
13872
|
+
},
|
|
13873
|
+
"privacy": "private",
|
|
13874
|
+
"default": "host"
|
|
13875
|
+
},
|
|
13876
|
+
{
|
|
13877
|
+
"kind": "field",
|
|
13878
|
+
"name": "_config",
|
|
13879
|
+
"type": {
|
|
13880
|
+
"text": "PopoverControllerConfig"
|
|
13881
|
+
},
|
|
13882
|
+
"privacy": "private",
|
|
13883
|
+
"default": "config"
|
|
13884
|
+
},
|
|
13885
|
+
{
|
|
13886
|
+
"kind": "field",
|
|
13887
|
+
"name": "_cleanupAutoUpdate",
|
|
13888
|
+
"type": {
|
|
13889
|
+
"text": "() => void | undefined"
|
|
13890
|
+
},
|
|
13891
|
+
"privacy": "private"
|
|
13892
|
+
},
|
|
13893
|
+
{
|
|
13894
|
+
"kind": "field",
|
|
13895
|
+
"name": "_cleanupSafePolygon",
|
|
13896
|
+
"type": {
|
|
13897
|
+
"text": "() => void | undefined"
|
|
13898
|
+
},
|
|
13899
|
+
"privacy": "private"
|
|
13900
|
+
},
|
|
13901
|
+
{
|
|
13902
|
+
"kind": "field",
|
|
13903
|
+
"name": "_handlers",
|
|
13904
|
+
"type": {
|
|
13905
|
+
"text": "TriggerHandlers | undefined"
|
|
13906
|
+
},
|
|
13907
|
+
"privacy": "private"
|
|
13908
|
+
},
|
|
13909
|
+
{
|
|
13910
|
+
"kind": "field",
|
|
13911
|
+
"name": "_triggerElement",
|
|
13912
|
+
"type": {
|
|
13913
|
+
"text": "HTMLElement | null | undefined"
|
|
13914
|
+
},
|
|
13915
|
+
"privacy": "private"
|
|
13916
|
+
},
|
|
13917
|
+
{
|
|
13918
|
+
"kind": "field",
|
|
13919
|
+
"name": "_currentPlacement",
|
|
13920
|
+
"type": {
|
|
13921
|
+
"text": "string"
|
|
13922
|
+
},
|
|
13923
|
+
"privacy": "private",
|
|
13924
|
+
"default": "''"
|
|
13925
|
+
},
|
|
13926
|
+
{
|
|
13927
|
+
"kind": "method",
|
|
13928
|
+
"name": "hostConnected"
|
|
13929
|
+
},
|
|
13930
|
+
{
|
|
13931
|
+
"kind": "method",
|
|
13932
|
+
"name": "hostDisconnected"
|
|
13933
|
+
},
|
|
13934
|
+
{
|
|
13935
|
+
"kind": "field",
|
|
13936
|
+
"name": "currentPlacement",
|
|
13937
|
+
"readonly": true
|
|
13938
|
+
},
|
|
13939
|
+
{
|
|
13940
|
+
"kind": "method",
|
|
13941
|
+
"name": "updatePosition",
|
|
13942
|
+
"parameters": [
|
|
13943
|
+
{
|
|
13944
|
+
"name": "options",
|
|
13945
|
+
"type": {
|
|
13946
|
+
"text": "PositionOptions"
|
|
13947
|
+
}
|
|
13948
|
+
}
|
|
13949
|
+
]
|
|
13950
|
+
},
|
|
13951
|
+
{
|
|
13952
|
+
"kind": "method",
|
|
13953
|
+
"name": "startPositioning",
|
|
13954
|
+
"parameters": [
|
|
13955
|
+
{
|
|
13956
|
+
"name": "options",
|
|
13957
|
+
"type": {
|
|
13958
|
+
"text": "PositionOptions"
|
|
13959
|
+
}
|
|
13960
|
+
}
|
|
13961
|
+
]
|
|
13962
|
+
},
|
|
13963
|
+
{
|
|
13964
|
+
"kind": "method",
|
|
13965
|
+
"name": "stopPositioning"
|
|
13966
|
+
},
|
|
13967
|
+
{
|
|
13968
|
+
"kind": "method",
|
|
13969
|
+
"name": "handlePointerLeave",
|
|
13970
|
+
"parameters": [
|
|
13971
|
+
{
|
|
13972
|
+
"name": "e",
|
|
13973
|
+
"type": {
|
|
13974
|
+
"text": "PointerEvent"
|
|
13975
|
+
}
|
|
13976
|
+
},
|
|
13977
|
+
{
|
|
13978
|
+
"name": "onHide",
|
|
13979
|
+
"type": {
|
|
13980
|
+
"text": "() => void"
|
|
13981
|
+
}
|
|
13982
|
+
}
|
|
13983
|
+
]
|
|
13984
|
+
},
|
|
13985
|
+
{
|
|
13986
|
+
"kind": "method",
|
|
13987
|
+
"name": "cleanupSafePolygon"
|
|
13988
|
+
},
|
|
13989
|
+
{
|
|
13990
|
+
"kind": "method",
|
|
13991
|
+
"name": "addTriggerListeners",
|
|
13992
|
+
"parameters": [
|
|
13993
|
+
{
|
|
13994
|
+
"name": "handlers",
|
|
13995
|
+
"type": {
|
|
13996
|
+
"text": "TriggerHandlers"
|
|
13997
|
+
}
|
|
13998
|
+
}
|
|
13999
|
+
]
|
|
14000
|
+
},
|
|
14001
|
+
{
|
|
14002
|
+
"kind": "method",
|
|
14003
|
+
"name": "removeTriggerListeners",
|
|
14004
|
+
"parameters": [
|
|
14005
|
+
{
|
|
14006
|
+
"name": "triggerOverride",
|
|
14007
|
+
"optional": true,
|
|
14008
|
+
"type": {
|
|
14009
|
+
"text": "HTMLElement | null"
|
|
14010
|
+
}
|
|
14011
|
+
}
|
|
14012
|
+
]
|
|
14013
|
+
},
|
|
14014
|
+
{
|
|
14015
|
+
"kind": "method",
|
|
14016
|
+
"name": "animateShow",
|
|
14017
|
+
"parameters": [
|
|
14018
|
+
{
|
|
14019
|
+
"name": "el",
|
|
14020
|
+
"type": {
|
|
14021
|
+
"text": "HTMLElement"
|
|
14022
|
+
}
|
|
14023
|
+
},
|
|
14024
|
+
{
|
|
14025
|
+
"name": "duration",
|
|
14026
|
+
"type": {
|
|
14027
|
+
"text": "number"
|
|
14028
|
+
}
|
|
14029
|
+
},
|
|
14030
|
+
{
|
|
14031
|
+
"name": "keyframes",
|
|
14032
|
+
"optional": true,
|
|
14033
|
+
"type": {
|
|
14034
|
+
"text": "Keyframe[]"
|
|
14035
|
+
}
|
|
14036
|
+
}
|
|
14037
|
+
]
|
|
14038
|
+
},
|
|
14039
|
+
{
|
|
14040
|
+
"kind": "method",
|
|
14041
|
+
"name": "animateHide",
|
|
14042
|
+
"parameters": [
|
|
14043
|
+
{
|
|
14044
|
+
"name": "el",
|
|
14045
|
+
"type": {
|
|
14046
|
+
"text": "HTMLElement"
|
|
14047
|
+
}
|
|
14048
|
+
},
|
|
14049
|
+
{
|
|
14050
|
+
"name": "duration",
|
|
14051
|
+
"type": {
|
|
14052
|
+
"text": "number"
|
|
14053
|
+
}
|
|
14054
|
+
},
|
|
14055
|
+
{
|
|
14056
|
+
"name": "keyframes",
|
|
14057
|
+
"optional": true,
|
|
14058
|
+
"type": {
|
|
14059
|
+
"text": "Keyframe[]"
|
|
14060
|
+
}
|
|
14061
|
+
}
|
|
14062
|
+
]
|
|
14063
|
+
}
|
|
14064
|
+
]
|
|
14065
|
+
}
|
|
14066
|
+
],
|
|
14067
|
+
"exports": [
|
|
14068
|
+
{
|
|
14069
|
+
"kind": "js",
|
|
14070
|
+
"name": "PopoverController",
|
|
14071
|
+
"declaration": {
|
|
14072
|
+
"name": "PopoverController",
|
|
14073
|
+
"module": "src/html/shared/controllers/popover.ts"
|
|
14074
|
+
}
|
|
14075
|
+
}
|
|
14076
|
+
]
|
|
14077
|
+
},
|
|
13789
14078
|
{
|
|
13790
14079
|
"kind": "javascript-module",
|
|
13791
14080
|
"path": "src/html/elements/tree-item/index.ts",
|
|
@@ -14192,226 +14481,6 @@
|
|
|
14192
14481
|
}
|
|
14193
14482
|
]
|
|
14194
14483
|
},
|
|
14195
|
-
{
|
|
14196
|
-
"kind": "javascript-module",
|
|
14197
|
-
"path": "src/html/shared/controllers/popover.ts",
|
|
14198
|
-
"declarations": [
|
|
14199
|
-
{
|
|
14200
|
-
"kind": "class",
|
|
14201
|
-
"description": "",
|
|
14202
|
-
"name": "PopoverController",
|
|
14203
|
-
"members": [
|
|
14204
|
-
{
|
|
14205
|
-
"kind": "field",
|
|
14206
|
-
"name": "_host",
|
|
14207
|
-
"type": {
|
|
14208
|
-
"text": "ReactiveControllerHost & HTMLElement"
|
|
14209
|
-
},
|
|
14210
|
-
"privacy": "private",
|
|
14211
|
-
"default": "host"
|
|
14212
|
-
},
|
|
14213
|
-
{
|
|
14214
|
-
"kind": "field",
|
|
14215
|
-
"name": "_config",
|
|
14216
|
-
"type": {
|
|
14217
|
-
"text": "PopoverControllerConfig"
|
|
14218
|
-
},
|
|
14219
|
-
"privacy": "private",
|
|
14220
|
-
"default": "config"
|
|
14221
|
-
},
|
|
14222
|
-
{
|
|
14223
|
-
"kind": "field",
|
|
14224
|
-
"name": "_cleanupAutoUpdate",
|
|
14225
|
-
"type": {
|
|
14226
|
-
"text": "() => void | undefined"
|
|
14227
|
-
},
|
|
14228
|
-
"privacy": "private"
|
|
14229
|
-
},
|
|
14230
|
-
{
|
|
14231
|
-
"kind": "field",
|
|
14232
|
-
"name": "_cleanupSafePolygon",
|
|
14233
|
-
"type": {
|
|
14234
|
-
"text": "() => void | undefined"
|
|
14235
|
-
},
|
|
14236
|
-
"privacy": "private"
|
|
14237
|
-
},
|
|
14238
|
-
{
|
|
14239
|
-
"kind": "field",
|
|
14240
|
-
"name": "_handlers",
|
|
14241
|
-
"type": {
|
|
14242
|
-
"text": "TriggerHandlers | undefined"
|
|
14243
|
-
},
|
|
14244
|
-
"privacy": "private"
|
|
14245
|
-
},
|
|
14246
|
-
{
|
|
14247
|
-
"kind": "field",
|
|
14248
|
-
"name": "_triggerElement",
|
|
14249
|
-
"type": {
|
|
14250
|
-
"text": "HTMLElement | null | undefined"
|
|
14251
|
-
},
|
|
14252
|
-
"privacy": "private"
|
|
14253
|
-
},
|
|
14254
|
-
{
|
|
14255
|
-
"kind": "field",
|
|
14256
|
-
"name": "_currentPlacement",
|
|
14257
|
-
"type": {
|
|
14258
|
-
"text": "string"
|
|
14259
|
-
},
|
|
14260
|
-
"privacy": "private",
|
|
14261
|
-
"default": "''"
|
|
14262
|
-
},
|
|
14263
|
-
{
|
|
14264
|
-
"kind": "method",
|
|
14265
|
-
"name": "hostConnected"
|
|
14266
|
-
},
|
|
14267
|
-
{
|
|
14268
|
-
"kind": "method",
|
|
14269
|
-
"name": "hostDisconnected"
|
|
14270
|
-
},
|
|
14271
|
-
{
|
|
14272
|
-
"kind": "field",
|
|
14273
|
-
"name": "currentPlacement",
|
|
14274
|
-
"readonly": true
|
|
14275
|
-
},
|
|
14276
|
-
{
|
|
14277
|
-
"kind": "method",
|
|
14278
|
-
"name": "updatePosition",
|
|
14279
|
-
"parameters": [
|
|
14280
|
-
{
|
|
14281
|
-
"name": "options",
|
|
14282
|
-
"type": {
|
|
14283
|
-
"text": "PositionOptions"
|
|
14284
|
-
}
|
|
14285
|
-
}
|
|
14286
|
-
]
|
|
14287
|
-
},
|
|
14288
|
-
{
|
|
14289
|
-
"kind": "method",
|
|
14290
|
-
"name": "startPositioning",
|
|
14291
|
-
"parameters": [
|
|
14292
|
-
{
|
|
14293
|
-
"name": "options",
|
|
14294
|
-
"type": {
|
|
14295
|
-
"text": "PositionOptions"
|
|
14296
|
-
}
|
|
14297
|
-
}
|
|
14298
|
-
]
|
|
14299
|
-
},
|
|
14300
|
-
{
|
|
14301
|
-
"kind": "method",
|
|
14302
|
-
"name": "stopPositioning"
|
|
14303
|
-
},
|
|
14304
|
-
{
|
|
14305
|
-
"kind": "method",
|
|
14306
|
-
"name": "handlePointerLeave",
|
|
14307
|
-
"parameters": [
|
|
14308
|
-
{
|
|
14309
|
-
"name": "e",
|
|
14310
|
-
"type": {
|
|
14311
|
-
"text": "PointerEvent"
|
|
14312
|
-
}
|
|
14313
|
-
},
|
|
14314
|
-
{
|
|
14315
|
-
"name": "onHide",
|
|
14316
|
-
"type": {
|
|
14317
|
-
"text": "() => void"
|
|
14318
|
-
}
|
|
14319
|
-
}
|
|
14320
|
-
]
|
|
14321
|
-
},
|
|
14322
|
-
{
|
|
14323
|
-
"kind": "method",
|
|
14324
|
-
"name": "cleanupSafePolygon"
|
|
14325
|
-
},
|
|
14326
|
-
{
|
|
14327
|
-
"kind": "method",
|
|
14328
|
-
"name": "addTriggerListeners",
|
|
14329
|
-
"parameters": [
|
|
14330
|
-
{
|
|
14331
|
-
"name": "handlers",
|
|
14332
|
-
"type": {
|
|
14333
|
-
"text": "TriggerHandlers"
|
|
14334
|
-
}
|
|
14335
|
-
}
|
|
14336
|
-
]
|
|
14337
|
-
},
|
|
14338
|
-
{
|
|
14339
|
-
"kind": "method",
|
|
14340
|
-
"name": "removeTriggerListeners",
|
|
14341
|
-
"parameters": [
|
|
14342
|
-
{
|
|
14343
|
-
"name": "triggerOverride",
|
|
14344
|
-
"optional": true,
|
|
14345
|
-
"type": {
|
|
14346
|
-
"text": "HTMLElement | null"
|
|
14347
|
-
}
|
|
14348
|
-
}
|
|
14349
|
-
]
|
|
14350
|
-
},
|
|
14351
|
-
{
|
|
14352
|
-
"kind": "method",
|
|
14353
|
-
"name": "animateShow",
|
|
14354
|
-
"parameters": [
|
|
14355
|
-
{
|
|
14356
|
-
"name": "el",
|
|
14357
|
-
"type": {
|
|
14358
|
-
"text": "HTMLElement"
|
|
14359
|
-
}
|
|
14360
|
-
},
|
|
14361
|
-
{
|
|
14362
|
-
"name": "duration",
|
|
14363
|
-
"type": {
|
|
14364
|
-
"text": "number"
|
|
14365
|
-
}
|
|
14366
|
-
},
|
|
14367
|
-
{
|
|
14368
|
-
"name": "keyframes",
|
|
14369
|
-
"optional": true,
|
|
14370
|
-
"type": {
|
|
14371
|
-
"text": "Keyframe[]"
|
|
14372
|
-
}
|
|
14373
|
-
}
|
|
14374
|
-
]
|
|
14375
|
-
},
|
|
14376
|
-
{
|
|
14377
|
-
"kind": "method",
|
|
14378
|
-
"name": "animateHide",
|
|
14379
|
-
"parameters": [
|
|
14380
|
-
{
|
|
14381
|
-
"name": "el",
|
|
14382
|
-
"type": {
|
|
14383
|
-
"text": "HTMLElement"
|
|
14384
|
-
}
|
|
14385
|
-
},
|
|
14386
|
-
{
|
|
14387
|
-
"name": "duration",
|
|
14388
|
-
"type": {
|
|
14389
|
-
"text": "number"
|
|
14390
|
-
}
|
|
14391
|
-
},
|
|
14392
|
-
{
|
|
14393
|
-
"name": "keyframes",
|
|
14394
|
-
"optional": true,
|
|
14395
|
-
"type": {
|
|
14396
|
-
"text": "Keyframe[]"
|
|
14397
|
-
}
|
|
14398
|
-
}
|
|
14399
|
-
]
|
|
14400
|
-
}
|
|
14401
|
-
]
|
|
14402
|
-
}
|
|
14403
|
-
],
|
|
14404
|
-
"exports": [
|
|
14405
|
-
{
|
|
14406
|
-
"kind": "js",
|
|
14407
|
-
"name": "PopoverController",
|
|
14408
|
-
"declaration": {
|
|
14409
|
-
"name": "PopoverController",
|
|
14410
|
-
"module": "src/html/shared/controllers/popover.ts"
|
|
14411
|
-
}
|
|
14412
|
-
}
|
|
14413
|
-
]
|
|
14414
|
-
},
|
|
14415
14484
|
{
|
|
14416
14485
|
"kind": "javascript-module",
|
|
14417
14486
|
"path": "src/html/shared/styles/host.styles.ts",
|
|
@@ -18,6 +18,7 @@ import { LuxenElement } from '../../shared/luxen-element';
|
|
|
18
18
|
*
|
|
19
19
|
* @cssproperty --width - Dialog width. Default `31rem`.
|
|
20
20
|
* @cssproperty --border-radius - Dialog border radius. Default `6px`.
|
|
21
|
+
* @cssproperty --padding - Padding applied to the header, footer, and inline-padding of the body. Default `1.5rem`. Set to `0` to remove all internal spacing (e.g. for edge-to-edge media).
|
|
21
22
|
* @cssproperty --show-duration - Open transition duration. Default `200ms`.
|
|
22
23
|
* @cssproperty --hide-duration - Close transition duration. Default `200ms`.
|
|
23
24
|
* @cssproperty --backdrop - Backdrop color.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/html/elements/dialog/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAwB1D
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/html/elements/dialog/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAwB1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,WAAY,SAAQ,YAAY;IAC3C,MAAM,CAAC,MAAM,4BAAwB;IAErC,2CAA2C;IAE3C,KAAK,SAAM;IAEX,kCAAkC;IAElC,IAAI,UAAS;IAEb,0CAA0C;IAE1C,YAAY,UAAS;IAGrB,MAAM,EAAG,iBAAiB,CAAC;IAE3B,OAAO,CAAC,gBAAgB,CAA4B;IAEpD,OAAO,CAAC,gBAAgB,CAEtB;IAIF,iBAAiB;IAKjB,oBAAoB;IAKpB,YAAY;IASZ,OAAO,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC;IA0BrC,OAAO,CAAC,UAAU;IAclB,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,cAAc;IAetB,OAAO,CAAC,eAAe,CAAC,CAAY;IAEpC,OAAO,CAAC,aAAa;YAcP,UAAU;IAUxB,OAAO,CAAC,qBAAqB;IAK7B,MAAM;CAoBP"}
|