@ionic/core 8.7.8-dev.11761831339.1f84c484 → 8.7.8-dev.11761836444.1981623a
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/components/ion-accordion.js +43 -22
- package/dist/cjs/ion-accordion_2.cjs.entry.js +42 -21
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion.js +43 -22
- package/dist/docs.json +1 -1
- package/dist/esm/ion-accordion_2.entry.js +42 -21
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-22f43409.entry.js +4 -0
- package/dist/types/components/accordion/accordion.d.ts +10 -6
- package/hydrate/index.js +43 -22
- package/hydrate/index.mjs +43 -22
- package/package.json +1 -1
- package/dist/ionic/p-ba592b03.entry.js +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import{r as o,e as t,h as i,d as n,g as e,c as a,f as s}from"./p-C8IsBmNU.js";import{g as r,r as d,f as c,m as h,t as l}from"./p-CTfR9YZG.js";import{l as p}from"./p-DV3sJJW8.js";import{b as u}from"./p-BFvmZNyx.js";const g=class{constructor(i){o(this,i),this.updateListener=o=>{var t,i;const n=null!==(i=null===(t=o.detail)||void 0===t?void 0:t.initial)&&void 0!==i&&i;n||(this.hasInteracted=!0),this.updateState(n)},this.state=1,this.isNext=!1,this.isPrevious=!1,this.hasInteracted=!1,this.hasEverBeenExpanded=!1,this.value="ion-accordion-"+x++,this.disabled=!1,this.readonly=!1,this.toggleIcon=p,this.toggleIconSlot="end",this.setItemDefaults=()=>{const o=this.getSlottedHeaderIonItem();o&&(o.button=!0,o.detail=!1,void 0===o.lines&&(o.lines="full"))},this.getSlottedHeaderIonItem=()=>{const{headerEl:o}=this;if(!o)return;const t=o.querySelector("slot");return t&&void 0!==t.assignedElements?t.assignedElements().find((o=>"ION-ITEM"===o.tagName)):void 0},this.setAria=(o=!1)=>{const t=this.getSlottedHeaderIonItem();if(!t)return;const i=r(t).querySelector("button");i&&i.setAttribute("aria-expanded",`${o}`)},this.slotToggleIcon=()=>{const o=this.getSlottedHeaderIonItem();if(!o)return;const{toggleIconSlot:t,toggleIcon:i}=this;if(o.querySelector(".ion-accordion-toggle-icon"))return;const n=document.createElement("ion-icon");n.slot=t,n.lazy=!1,n.classList.add("ion-accordion-toggle-icon"),n.icon=i,n.setAttribute("aria-hidden","true"),o.appendChild(n)},this.expandAccordion=(o=!1)=>{const{contentEl:t,contentElWrapper:i}=this;if(o||void 0===t||void 0===i)return this.state=4,void(this.hasEverBeenExpanded=!0);4!==this.state&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.hasEverBeenExpanded=!0,this.shouldAnimate()?d((()=>{this.state=8,this.currentRaf=d((async()=>{const o=i.offsetHeight,n=l(t,2e3);t.style.setProperty("max-height",`${o}px`),await n,this.state=4,t.style.removeProperty("max-height")}))})):this.state=4)},this.collapseAccordion=(o=!1)=>{const{contentEl:t}=this;o||void 0===t?this.state=1:1!==this.state&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?this.currentRaf=d((async()=>{t.style.setProperty("max-height",`${t.offsetHeight}px`),d((async()=>{const o=l(t,2e3);this.state=2,await o,this.state=1,t.style.removeProperty("max-height")}))})):this.state=1)},this.shouldAnimate=()=>!(!this.hasInteracted||!this.hasEverBeenExpanded)&&("undefined"!=typeof window&&(!matchMedia("(prefers-reduced-motion: reduce)").matches&&!(!t.get("animated",!0)||this.accordionGroupEl&&!this.accordionGroupEl.animated))),this.updateState=async(o=!1)=>{const t=this.accordionGroupEl,i=this.value;if(!t)return;const n=t.value;if(Array.isArray(n)?n.includes(i):n===i)this.expandAccordion(o),this.isNext=this.isPrevious=!1;else{this.collapseAccordion(o);const t=this.getNextSibling(),i=null==t?void 0:t.value;void 0!==i&&(this.isPrevious=Array.isArray(n)?n.includes(i):n===i);const e=this.getPreviousSibling(),a=null==e?void 0:e.value;void 0!==a&&(this.isNext=Array.isArray(n)?n.includes(a):n===a)}},this.getNextSibling=()=>{if(!this.el)return;const o=this.el.nextElementSibling;return"ION-ACCORDION"===(null==o?void 0:o.tagName)?o:void 0},this.getPreviousSibling=()=>{if(!this.el)return;const o=this.el.previousElementSibling;return"ION-ACCORDION"===(null==o?void 0:o.tagName)?o:void 0}}valueChanged(){this.updateState()}connectedCallback(){var o;const t=this.accordionGroupEl=null===(o=this.el)||void 0===o?void 0:o.closest("ion-accordion-group");t&&(this.updateState(!0),c(t,"ionValueChange",this.updateListener))}disconnectedCallback(){const o=this.accordionGroupEl;o&&h(o,"ionValueChange",this.updateListener)}componentDidLoad(){this.setItemDefaults(),this.slotToggleIcon(),d((()=>{this.setAria(4===this.state||8===this.state)}))}toggleExpanded(){const{accordionGroupEl:o,disabled:t,readonly:i,value:n,state:e}=this;t||i||(this.hasInteracted=!0,!o)||o.requestAccordionToggle(n,1===e||2===e)}render(){const{disabled:o,readonly:t}=this,e=u(this),a=4===this.state||8===this.state,s=a?"header expanded":"header",r=a?"content expanded":"content";return this.setAria(a),i(n,{key:"cea1e33c18d788fc1d4ed7f62fc2d2eac823b3db",class:{[e]:!0,"accordion-expanding":8===this.state,"accordion-expanded":4===this.state,"accordion-collapsing":2===this.state,"accordion-collapsed":1===this.state,"accordion-next":this.isNext,"accordion-previous":this.isPrevious,"accordion-disabled":o,"accordion-readonly":t,"accordion-animated":this.shouldAnimate()}},i("div",{key:"47bd62c4777b5981233c7323c7e6a5cbc1793f08",onClick:()=>this.toggleExpanded(),id:"header",part:s,"aria-controls":"content",ref:o=>this.headerEl=o},i("slot",{key:"eb62780ae8e3eda8a1bbca0bc01cc66e6b64fc62",name:"header"})),i("div",{key:"e99c196a3300b6d2f2f7d436e072f6c2d1ba93e2",id:"content",part:r,role:"region","aria-labelledby":"header",ref:o=>this.contentEl=o},i("div",{key:"8bd97889dee898dd34500270c3e05754d28fde06",id:"content-wrapper",ref:o=>this.contentElWrapper=o},i("slot",{key:"4a140b338677b9f852a59926a2369b081ae2aa02",name:"content"}))))}static get delegatesFocus(){return!0}get el(){return e(this)}static get watchers(){return{value:["valueChanged"]}}};let x=0;g.style={ios:":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}:host(.accordion-next) ::slotted(ion-item[slot=header]){--border-width:0.55px 0px 0.55px 0px}",md:":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}"};const m=class{constructor(t){o(this,t),this.ionChange=a(this,"ionChange",7),this.ionValueChange=a(this,"ionValueChange",7),this.animated=!0,this.disabled=!1,this.readonly=!1,this.expand="compact",this.hasEmittedInitialValue=!1,this.isUserInitiatedChange=!1}valueChanged(){this.emitValueChange(!1,this.isUserInitiatedChange),this.isUserInitiatedChange=!1}async disabledChanged(){const{disabled:o}=this,t=await this.getAccordions();for(const i of t)i.disabled=o}async readonlyChanged(){const{readonly:o}=this,t=await this.getAccordions();for(const i of t)i.readonly=o}async onKeydown(o){const t=document.activeElement;if(!t)return;if(!t.closest('ion-accordion [slot="header"]'))return;const i="ION-ACCORDION"===t.tagName?t:t.closest("ion-accordion");if(!i)return;if(i.closest("ion-accordion-group")!==this.el)return;const n=await this.getAccordions(),e=n.findIndex((o=>o===i));if(-1===e)return;let a;"ArrowDown"===o.key?a=this.findNextAccordion(n,e):"ArrowUp"===o.key?a=this.findPreviousAccordion(n,e):"Home"===o.key?a=n[0]:"End"===o.key&&(a=n[n.length-1]),void 0!==a&&a!==t&&a.focus()}async componentDidLoad(){this.disabled&&this.disabledChanged(),this.readonly&&this.readonlyChanged(),this.hasEmittedInitialValue||this.emitValueChange(!0)}setValue(o){this.isUserInitiatedChange=!0;const t=this.value=o;this.ionChange.emit({value:t})}async requestAccordionToggle(o,t){const{multiple:i,value:n,readonly:e,disabled:a}=this;if(!e&&!a)if(t)if(i){const t=null!=n?n:[],i=Array.isArray(t)?t:[t];void 0===i.find((t=>t===o))&&void 0!==o&&this.setValue([...i,o])}else this.setValue(o);else if(i){const t=null!=n?n:[],i=Array.isArray(t)?t:[t];this.setValue(i.filter((t=>t!==o)))}else this.setValue(void 0)}findNextAccordion(o,t){const i=o[t+1];return void 0===i?o[0]:i}findPreviousAccordion(o,t){const i=o[t-1];return void 0===i?o[o.length-1]:i}async getAccordions(){return Array.from(this.el.querySelectorAll(":scope > ion-accordion"))}emitValueChange(o,t=!1){const{value:i,multiple:n}=this;!n&&Array.isArray(i)&&s(`[ion-accordion-group] - An array of values was passed, but multiple is "false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".\n\n Value Passed: [${i.map((o=>`'${o}'`)).join(", ")}]\n`,this.el),this.ionValueChange.emit({value:i,initial:o||!this.hasEmittedInitialValue&&void 0!==i&&!t}),void 0!==i&&(this.hasEmittedInitialValue=!0)}render(){const{disabled:o,readonly:t,expand:e}=this,a=u(this);return i(n,{key:"fd64cd203e2c8acdfc266005f372e26c29853847",class:{[a]:!0,"accordion-group-disabled":o,"accordion-group-readonly":t,[`accordion-group-expand-${e}`]:!0},role:"presentation"},i("slot",{key:"bdd9f419fc6e20f5de6f0f52ac93af7ec9a380ef"}))}get el(){return e(this)}static get watchers(){return{value:["valueChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"]}}};m.style={ios:":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){border-bottom:none}",md:":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion){-webkit-box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){margin-left:0;margin-right:0;margin-top:16px;margin-bottom:16px;border-radius:6px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-previous){border-end-end-radius:6px;border-end-start-radius:6px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-next){border-start-start-radius:6px;border-start-end-radius:6px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion):first-of-type{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}"};export{g as ion_accordion,m as ion_accordion_group}
|
|
@@ -30,12 +30,17 @@ export declare class Accordion implements ComponentInterface {
|
|
|
30
30
|
isNext: boolean;
|
|
31
31
|
isPrevious: boolean;
|
|
32
32
|
/**
|
|
33
|
-
* Tracks whether
|
|
34
|
-
* Animations are disabled until
|
|
35
|
-
* This prevents the accordion from animating when it
|
|
36
|
-
* expanded or collapsed on initial load.
|
|
33
|
+
* Tracks whether a user-initiated interaction has occurred.
|
|
34
|
+
* Animations are disabled until the first interaction happens.
|
|
35
|
+
* This prevents the accordion from animating when it's programmatically
|
|
36
|
+
* set to an expanded or collapsed state on initial load.
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
hasInteracted: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Tracks if this accordion has ever been expanded.
|
|
41
|
+
* Used to prevent the first expansion from animating.
|
|
42
|
+
*/
|
|
43
|
+
private hasEverBeenExpanded;
|
|
39
44
|
/**
|
|
40
45
|
* The value of the accordion. Defaults to an autogenerated
|
|
41
46
|
* value.
|
|
@@ -65,7 +70,6 @@ export declare class Accordion implements ComponentInterface {
|
|
|
65
70
|
connectedCallback(): void;
|
|
66
71
|
disconnectedCallback(): void;
|
|
67
72
|
componentDidLoad(): void;
|
|
68
|
-
componentDidRender(): void;
|
|
69
73
|
private setItemDefaults;
|
|
70
74
|
private getSlottedHeaderIonItem;
|
|
71
75
|
private setAria;
|
package/hydrate/index.js
CHANGED
|
@@ -4045,18 +4045,31 @@ class Accordion {
|
|
|
4045
4045
|
this.updateListener = (ev) => {
|
|
4046
4046
|
var _a, _b;
|
|
4047
4047
|
const initialUpdate = (_b = (_a = ev.detail) === null || _a === void 0 ? void 0 : _a.initial) !== null && _b !== void 0 ? _b : false;
|
|
4048
|
+
/**
|
|
4049
|
+
* If this is not an initial update (meaning it's from a user interaction
|
|
4050
|
+
* or programmatic call after load), mark that we've had an interaction.
|
|
4051
|
+
* This enables animations for this and future updates.
|
|
4052
|
+
*/
|
|
4053
|
+
if (!initialUpdate) {
|
|
4054
|
+
this.hasInteracted = true;
|
|
4055
|
+
}
|
|
4048
4056
|
this.updateState(initialUpdate);
|
|
4049
4057
|
};
|
|
4050
4058
|
this.state = 1 /* AccordionState.Collapsed */;
|
|
4051
4059
|
this.isNext = false;
|
|
4052
4060
|
this.isPrevious = false;
|
|
4053
4061
|
/**
|
|
4054
|
-
* Tracks whether
|
|
4055
|
-
* Animations are disabled until
|
|
4056
|
-
* This prevents the accordion from animating when it
|
|
4057
|
-
* expanded or collapsed on initial load.
|
|
4062
|
+
* Tracks whether a user-initiated interaction has occurred.
|
|
4063
|
+
* Animations are disabled until the first interaction happens.
|
|
4064
|
+
* This prevents the accordion from animating when it's programmatically
|
|
4065
|
+
* set to an expanded or collapsed state on initial load.
|
|
4066
|
+
*/
|
|
4067
|
+
this.hasInteracted = false;
|
|
4068
|
+
/**
|
|
4069
|
+
* Tracks if this accordion has ever been expanded.
|
|
4070
|
+
* Used to prevent the first expansion from animating.
|
|
4058
4071
|
*/
|
|
4059
|
-
this.
|
|
4072
|
+
this.hasEverBeenExpanded = false;
|
|
4060
4073
|
/**
|
|
4061
4074
|
* The value of the accordion. Defaults to an autogenerated
|
|
4062
4075
|
* value.
|
|
@@ -4165,6 +4178,11 @@ class Accordion {
|
|
|
4165
4178
|
const { contentEl, contentElWrapper } = this;
|
|
4166
4179
|
if (initialUpdate || contentEl === undefined || contentElWrapper === undefined) {
|
|
4167
4180
|
this.state = 4 /* AccordionState.Expanded */;
|
|
4181
|
+
/**
|
|
4182
|
+
* Mark that this accordion has been expanded at least once.
|
|
4183
|
+
* Do this even on initial expansion so future interactions animate.
|
|
4184
|
+
*/
|
|
4185
|
+
this.hasEverBeenExpanded = true;
|
|
4168
4186
|
return;
|
|
4169
4187
|
}
|
|
4170
4188
|
if (this.state === 4 /* AccordionState.Expanded */) {
|
|
@@ -4173,6 +4191,11 @@ class Accordion {
|
|
|
4173
4191
|
if (this.currentRaf !== undefined) {
|
|
4174
4192
|
cancelAnimationFrame(this.currentRaf);
|
|
4175
4193
|
}
|
|
4194
|
+
/**
|
|
4195
|
+
* Mark that this accordion has been expanded at least once.
|
|
4196
|
+
* This allows subsequent expansions to animate.
|
|
4197
|
+
*/
|
|
4198
|
+
this.hasEverBeenExpanded = true;
|
|
4176
4199
|
if (this.shouldAnimate()) {
|
|
4177
4200
|
raf(() => {
|
|
4178
4201
|
this.state = 8 /* AccordionState.Expanding */;
|
|
@@ -4228,11 +4251,15 @@ class Accordion {
|
|
|
4228
4251
|
*/
|
|
4229
4252
|
this.shouldAnimate = () => {
|
|
4230
4253
|
/**
|
|
4231
|
-
* Don't animate until after the first
|
|
4254
|
+
* Don't animate until after the first user interaction.
|
|
4232
4255
|
* This prevents animations on initial load when accordions
|
|
4233
|
-
* start in an expanded or collapsed state.
|
|
4256
|
+
* start in an expanded or collapsed state programmatically.
|
|
4257
|
+
*
|
|
4258
|
+
* Additionally, don't animate the very first expansion even if
|
|
4259
|
+
* hasInteracted is true. This handles edge cases like React StrictMode
|
|
4260
|
+
* where effects run twice and might incorrectly mark as interacted.
|
|
4234
4261
|
*/
|
|
4235
|
-
if (!this.
|
|
4262
|
+
if (!this.hasInteracted || !this.hasEverBeenExpanded) {
|
|
4236
4263
|
return false;
|
|
4237
4264
|
}
|
|
4238
4265
|
if (typeof window === 'undefined') {
|
|
@@ -4339,21 +4366,15 @@ class Accordion {
|
|
|
4339
4366
|
this.setAria(expanded);
|
|
4340
4367
|
});
|
|
4341
4368
|
}
|
|
4342
|
-
componentDidRender() {
|
|
4343
|
-
/**
|
|
4344
|
-
* After the first render completes, mark that we've rendered.
|
|
4345
|
-
* Setting this state property triggers a re-render, at which point
|
|
4346
|
-
* animations will be enabled. This ensures animations are disabled
|
|
4347
|
-
* only for the initial render, avoiding unwanted animations on load.
|
|
4348
|
-
*/
|
|
4349
|
-
if (!this.hasRendered) {
|
|
4350
|
-
this.hasRendered = true;
|
|
4351
|
-
}
|
|
4352
|
-
}
|
|
4353
4369
|
toggleExpanded() {
|
|
4354
4370
|
const { accordionGroupEl, disabled, readonly, value, state } = this;
|
|
4355
4371
|
if (disabled || readonly)
|
|
4356
4372
|
return;
|
|
4373
|
+
/**
|
|
4374
|
+
* Mark that the user has interacted with the accordion.
|
|
4375
|
+
* This enables animations for all future state changes.
|
|
4376
|
+
*/
|
|
4377
|
+
this.hasInteracted = true;
|
|
4357
4378
|
if (accordionGroupEl) {
|
|
4358
4379
|
/**
|
|
4359
4380
|
* Because the accordion group may or may
|
|
@@ -4374,7 +4395,7 @@ class Accordion {
|
|
|
4374
4395
|
const headerPart = expanded ? 'header expanded' : 'header';
|
|
4375
4396
|
const contentPart = expanded ? 'content expanded' : 'content';
|
|
4376
4397
|
this.setAria(expanded);
|
|
4377
|
-
return (hAsync(Host, { key: '
|
|
4398
|
+
return (hAsync(Host, { key: 'cea1e33c18d788fc1d4ed7f62fc2d2eac823b3db', class: {
|
|
4378
4399
|
[mode]: true,
|
|
4379
4400
|
'accordion-expanding': this.state === 8 /* AccordionState.Expanding */,
|
|
4380
4401
|
'accordion-expanded': this.state === 4 /* AccordionState.Expanded */,
|
|
@@ -4385,7 +4406,7 @@ class Accordion {
|
|
|
4385
4406
|
'accordion-disabled': disabled,
|
|
4386
4407
|
'accordion-readonly': readonly,
|
|
4387
4408
|
'accordion-animated': this.shouldAnimate(),
|
|
4388
|
-
} }, hAsync("div", { key: '
|
|
4409
|
+
} }, hAsync("div", { key: '47bd62c4777b5981233c7323c7e6a5cbc1793f08', onClick: () => this.toggleExpanded(), id: "header", part: headerPart, "aria-controls": "content", ref: (headerEl) => (this.headerEl = headerEl) }, hAsync("slot", { key: 'eb62780ae8e3eda8a1bbca0bc01cc66e6b64fc62', name: "header" })), hAsync("div", { key: 'e99c196a3300b6d2f2f7d436e072f6c2d1ba93e2', id: "content", part: contentPart, role: "region", "aria-labelledby": "header", ref: (contentEl) => (this.contentEl = contentEl) }, hAsync("div", { key: '8bd97889dee898dd34500270c3e05754d28fde06', id: "content-wrapper", ref: (contentElWrapper) => (this.contentElWrapper = contentElWrapper) }, hAsync("slot", { key: '4a140b338677b9f852a59926a2369b081ae2aa02', name: "content" })))));
|
|
4389
4410
|
}
|
|
4390
4411
|
static get delegatesFocus() { return true; }
|
|
4391
4412
|
get el() { return getElement(this); }
|
|
@@ -4408,7 +4429,7 @@ class Accordion {
|
|
|
4408
4429
|
"state": [32],
|
|
4409
4430
|
"isNext": [32],
|
|
4410
4431
|
"isPrevious": [32],
|
|
4411
|
-
"
|
|
4432
|
+
"hasInteracted": [32]
|
|
4412
4433
|
},
|
|
4413
4434
|
"$listeners$": undefined,
|
|
4414
4435
|
"$lazyBundleId$": "-",
|
package/hydrate/index.mjs
CHANGED
|
@@ -4043,18 +4043,31 @@ class Accordion {
|
|
|
4043
4043
|
this.updateListener = (ev) => {
|
|
4044
4044
|
var _a, _b;
|
|
4045
4045
|
const initialUpdate = (_b = (_a = ev.detail) === null || _a === void 0 ? void 0 : _a.initial) !== null && _b !== void 0 ? _b : false;
|
|
4046
|
+
/**
|
|
4047
|
+
* If this is not an initial update (meaning it's from a user interaction
|
|
4048
|
+
* or programmatic call after load), mark that we've had an interaction.
|
|
4049
|
+
* This enables animations for this and future updates.
|
|
4050
|
+
*/
|
|
4051
|
+
if (!initialUpdate) {
|
|
4052
|
+
this.hasInteracted = true;
|
|
4053
|
+
}
|
|
4046
4054
|
this.updateState(initialUpdate);
|
|
4047
4055
|
};
|
|
4048
4056
|
this.state = 1 /* AccordionState.Collapsed */;
|
|
4049
4057
|
this.isNext = false;
|
|
4050
4058
|
this.isPrevious = false;
|
|
4051
4059
|
/**
|
|
4052
|
-
* Tracks whether
|
|
4053
|
-
* Animations are disabled until
|
|
4054
|
-
* This prevents the accordion from animating when it
|
|
4055
|
-
* expanded or collapsed on initial load.
|
|
4060
|
+
* Tracks whether a user-initiated interaction has occurred.
|
|
4061
|
+
* Animations are disabled until the first interaction happens.
|
|
4062
|
+
* This prevents the accordion from animating when it's programmatically
|
|
4063
|
+
* set to an expanded or collapsed state on initial load.
|
|
4064
|
+
*/
|
|
4065
|
+
this.hasInteracted = false;
|
|
4066
|
+
/**
|
|
4067
|
+
* Tracks if this accordion has ever been expanded.
|
|
4068
|
+
* Used to prevent the first expansion from animating.
|
|
4056
4069
|
*/
|
|
4057
|
-
this.
|
|
4070
|
+
this.hasEverBeenExpanded = false;
|
|
4058
4071
|
/**
|
|
4059
4072
|
* The value of the accordion. Defaults to an autogenerated
|
|
4060
4073
|
* value.
|
|
@@ -4163,6 +4176,11 @@ class Accordion {
|
|
|
4163
4176
|
const { contentEl, contentElWrapper } = this;
|
|
4164
4177
|
if (initialUpdate || contentEl === undefined || contentElWrapper === undefined) {
|
|
4165
4178
|
this.state = 4 /* AccordionState.Expanded */;
|
|
4179
|
+
/**
|
|
4180
|
+
* Mark that this accordion has been expanded at least once.
|
|
4181
|
+
* Do this even on initial expansion so future interactions animate.
|
|
4182
|
+
*/
|
|
4183
|
+
this.hasEverBeenExpanded = true;
|
|
4166
4184
|
return;
|
|
4167
4185
|
}
|
|
4168
4186
|
if (this.state === 4 /* AccordionState.Expanded */) {
|
|
@@ -4171,6 +4189,11 @@ class Accordion {
|
|
|
4171
4189
|
if (this.currentRaf !== undefined) {
|
|
4172
4190
|
cancelAnimationFrame(this.currentRaf);
|
|
4173
4191
|
}
|
|
4192
|
+
/**
|
|
4193
|
+
* Mark that this accordion has been expanded at least once.
|
|
4194
|
+
* This allows subsequent expansions to animate.
|
|
4195
|
+
*/
|
|
4196
|
+
this.hasEverBeenExpanded = true;
|
|
4174
4197
|
if (this.shouldAnimate()) {
|
|
4175
4198
|
raf(() => {
|
|
4176
4199
|
this.state = 8 /* AccordionState.Expanding */;
|
|
@@ -4226,11 +4249,15 @@ class Accordion {
|
|
|
4226
4249
|
*/
|
|
4227
4250
|
this.shouldAnimate = () => {
|
|
4228
4251
|
/**
|
|
4229
|
-
* Don't animate until after the first
|
|
4252
|
+
* Don't animate until after the first user interaction.
|
|
4230
4253
|
* This prevents animations on initial load when accordions
|
|
4231
|
-
* start in an expanded or collapsed state.
|
|
4254
|
+
* start in an expanded or collapsed state programmatically.
|
|
4255
|
+
*
|
|
4256
|
+
* Additionally, don't animate the very first expansion even if
|
|
4257
|
+
* hasInteracted is true. This handles edge cases like React StrictMode
|
|
4258
|
+
* where effects run twice and might incorrectly mark as interacted.
|
|
4232
4259
|
*/
|
|
4233
|
-
if (!this.
|
|
4260
|
+
if (!this.hasInteracted || !this.hasEverBeenExpanded) {
|
|
4234
4261
|
return false;
|
|
4235
4262
|
}
|
|
4236
4263
|
if (typeof window === 'undefined') {
|
|
@@ -4337,21 +4364,15 @@ class Accordion {
|
|
|
4337
4364
|
this.setAria(expanded);
|
|
4338
4365
|
});
|
|
4339
4366
|
}
|
|
4340
|
-
componentDidRender() {
|
|
4341
|
-
/**
|
|
4342
|
-
* After the first render completes, mark that we've rendered.
|
|
4343
|
-
* Setting this state property triggers a re-render, at which point
|
|
4344
|
-
* animations will be enabled. This ensures animations are disabled
|
|
4345
|
-
* only for the initial render, avoiding unwanted animations on load.
|
|
4346
|
-
*/
|
|
4347
|
-
if (!this.hasRendered) {
|
|
4348
|
-
this.hasRendered = true;
|
|
4349
|
-
}
|
|
4350
|
-
}
|
|
4351
4367
|
toggleExpanded() {
|
|
4352
4368
|
const { accordionGroupEl, disabled, readonly, value, state } = this;
|
|
4353
4369
|
if (disabled || readonly)
|
|
4354
4370
|
return;
|
|
4371
|
+
/**
|
|
4372
|
+
* Mark that the user has interacted with the accordion.
|
|
4373
|
+
* This enables animations for all future state changes.
|
|
4374
|
+
*/
|
|
4375
|
+
this.hasInteracted = true;
|
|
4355
4376
|
if (accordionGroupEl) {
|
|
4356
4377
|
/**
|
|
4357
4378
|
* Because the accordion group may or may
|
|
@@ -4372,7 +4393,7 @@ class Accordion {
|
|
|
4372
4393
|
const headerPart = expanded ? 'header expanded' : 'header';
|
|
4373
4394
|
const contentPart = expanded ? 'content expanded' : 'content';
|
|
4374
4395
|
this.setAria(expanded);
|
|
4375
|
-
return (hAsync(Host, { key: '
|
|
4396
|
+
return (hAsync(Host, { key: 'cea1e33c18d788fc1d4ed7f62fc2d2eac823b3db', class: {
|
|
4376
4397
|
[mode]: true,
|
|
4377
4398
|
'accordion-expanding': this.state === 8 /* AccordionState.Expanding */,
|
|
4378
4399
|
'accordion-expanded': this.state === 4 /* AccordionState.Expanded */,
|
|
@@ -4383,7 +4404,7 @@ class Accordion {
|
|
|
4383
4404
|
'accordion-disabled': disabled,
|
|
4384
4405
|
'accordion-readonly': readonly,
|
|
4385
4406
|
'accordion-animated': this.shouldAnimate(),
|
|
4386
|
-
} }, hAsync("div", { key: '
|
|
4407
|
+
} }, hAsync("div", { key: '47bd62c4777b5981233c7323c7e6a5cbc1793f08', onClick: () => this.toggleExpanded(), id: "header", part: headerPart, "aria-controls": "content", ref: (headerEl) => (this.headerEl = headerEl) }, hAsync("slot", { key: 'eb62780ae8e3eda8a1bbca0bc01cc66e6b64fc62', name: "header" })), hAsync("div", { key: 'e99c196a3300b6d2f2f7d436e072f6c2d1ba93e2', id: "content", part: contentPart, role: "region", "aria-labelledby": "header", ref: (contentEl) => (this.contentEl = contentEl) }, hAsync("div", { key: '8bd97889dee898dd34500270c3e05754d28fde06', id: "content-wrapper", ref: (contentElWrapper) => (this.contentElWrapper = contentElWrapper) }, hAsync("slot", { key: '4a140b338677b9f852a59926a2369b081ae2aa02', name: "content" })))));
|
|
4387
4408
|
}
|
|
4388
4409
|
static get delegatesFocus() { return true; }
|
|
4389
4410
|
get el() { return getElement(this); }
|
|
@@ -4406,7 +4427,7 @@ class Accordion {
|
|
|
4406
4427
|
"state": [32],
|
|
4407
4428
|
"isNext": [32],
|
|
4408
4429
|
"isPrevious": [32],
|
|
4409
|
-
"
|
|
4430
|
+
"hasInteracted": [32]
|
|
4410
4431
|
},
|
|
4411
4432
|
"$listeners$": undefined,
|
|
4412
4433
|
"$lazyBundleId$": "-",
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{r as o,e as t,h as i,d as n,g as e,c as a,f as s}from"./p-C8IsBmNU.js";import{g as r,r as d,f as c,m as h,t as l}from"./p-CTfR9YZG.js";import{l as p}from"./p-DV3sJJW8.js";import{b as u}from"./p-BFvmZNyx.js";const g=class{constructor(i){o(this,i),this.updateListener=o=>{var t,i;const n=null!==(i=null===(t=o.detail)||void 0===t?void 0:t.initial)&&void 0!==i&&i;this.updateState(n)},this.state=1,this.isNext=!1,this.isPrevious=!1,this.hasRendered=!1,this.value="ion-accordion-"+x++,this.disabled=!1,this.readonly=!1,this.toggleIcon=p,this.toggleIconSlot="end",this.setItemDefaults=()=>{const o=this.getSlottedHeaderIonItem();o&&(o.button=!0,o.detail=!1,void 0===o.lines&&(o.lines="full"))},this.getSlottedHeaderIonItem=()=>{const{headerEl:o}=this;if(!o)return;const t=o.querySelector("slot");return t&&void 0!==t.assignedElements?t.assignedElements().find((o=>"ION-ITEM"===o.tagName)):void 0},this.setAria=(o=!1)=>{const t=this.getSlottedHeaderIonItem();if(!t)return;const i=r(t).querySelector("button");i&&i.setAttribute("aria-expanded",`${o}`)},this.slotToggleIcon=()=>{const o=this.getSlottedHeaderIonItem();if(!o)return;const{toggleIconSlot:t,toggleIcon:i}=this;if(o.querySelector(".ion-accordion-toggle-icon"))return;const n=document.createElement("ion-icon");n.slot=t,n.lazy=!1,n.classList.add("ion-accordion-toggle-icon"),n.icon=i,n.setAttribute("aria-hidden","true"),o.appendChild(n)},this.expandAccordion=(o=!1)=>{const{contentEl:t,contentElWrapper:i}=this;o||void 0===t||void 0===i?this.state=4:4!==this.state&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?d((()=>{this.state=8,this.currentRaf=d((async()=>{const o=i.offsetHeight,n=l(t,2e3);t.style.setProperty("max-height",`${o}px`),await n,this.state=4,t.style.removeProperty("max-height")}))})):this.state=4)},this.collapseAccordion=(o=!1)=>{const{contentEl:t}=this;o||void 0===t?this.state=1:1!==this.state&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?this.currentRaf=d((async()=>{t.style.setProperty("max-height",`${t.offsetHeight}px`),d((async()=>{const o=l(t,2e3);this.state=2,await o,this.state=1,t.style.removeProperty("max-height")}))})):this.state=1)},this.shouldAnimate=()=>!!this.hasRendered&&("undefined"!=typeof window&&(!matchMedia("(prefers-reduced-motion: reduce)").matches&&!(!t.get("animated",!0)||this.accordionGroupEl&&!this.accordionGroupEl.animated))),this.updateState=async(o=!1)=>{const t=this.accordionGroupEl,i=this.value;if(!t)return;const n=t.value;if(Array.isArray(n)?n.includes(i):n===i)this.expandAccordion(o),this.isNext=this.isPrevious=!1;else{this.collapseAccordion(o);const t=this.getNextSibling(),i=null==t?void 0:t.value;void 0!==i&&(this.isPrevious=Array.isArray(n)?n.includes(i):n===i);const e=this.getPreviousSibling(),a=null==e?void 0:e.value;void 0!==a&&(this.isNext=Array.isArray(n)?n.includes(a):n===a)}},this.getNextSibling=()=>{if(!this.el)return;const o=this.el.nextElementSibling;return"ION-ACCORDION"===(null==o?void 0:o.tagName)?o:void 0},this.getPreviousSibling=()=>{if(!this.el)return;const o=this.el.previousElementSibling;return"ION-ACCORDION"===(null==o?void 0:o.tagName)?o:void 0}}valueChanged(){this.updateState()}connectedCallback(){var o;const t=this.accordionGroupEl=null===(o=this.el)||void 0===o?void 0:o.closest("ion-accordion-group");t&&(this.updateState(!0),c(t,"ionValueChange",this.updateListener))}disconnectedCallback(){const o=this.accordionGroupEl;o&&h(o,"ionValueChange",this.updateListener)}componentDidLoad(){this.setItemDefaults(),this.slotToggleIcon(),d((()=>{this.setAria(4===this.state||8===this.state)}))}componentDidRender(){this.hasRendered||(this.hasRendered=!0)}toggleExpanded(){const{accordionGroupEl:o,disabled:t,readonly:i,value:n,state:e}=this;t||i||!o||o.requestAccordionToggle(n,1===e||2===e)}render(){const{disabled:o,readonly:t}=this,e=u(this),a=4===this.state||8===this.state,s=a?"header expanded":"header",r=a?"content expanded":"content";return this.setAria(a),i(n,{key:"7a1b3d2826dd701dc9f440c856dc41b95e518796",class:{[e]:!0,"accordion-expanding":8===this.state,"accordion-expanded":4===this.state,"accordion-collapsing":2===this.state,"accordion-collapsed":1===this.state,"accordion-next":this.isNext,"accordion-previous":this.isPrevious,"accordion-disabled":o,"accordion-readonly":t,"accordion-animated":this.shouldAnimate()}},i("div",{key:"6d88ed234058d21af9c490780753ce4879e20ff0",onClick:()=>this.toggleExpanded(),id:"header",part:s,"aria-controls":"content",ref:o=>this.headerEl=o},i("slot",{key:"c9dbd253cf4cee7d4b68c289a2b4c728307d7fad",name:"header"})),i("div",{key:"ab8352f1376f9b4d81580d6ad56954021252c0e6",id:"content",part:r,role:"region","aria-labelledby":"header",ref:o=>this.contentEl=o},i("div",{key:"f4050ed3256ecd9ad4dc8e2fee2dc41618b94140",id:"content-wrapper",ref:o=>this.contentElWrapper=o},i("slot",{key:"96bfcd6b48a8339e41b73af1c087aa00c6dcc20d",name:"content"}))))}static get delegatesFocus(){return!0}get el(){return e(this)}static get watchers(){return{value:["valueChanged"]}}};let x=0;g.style={ios:":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}:host(.accordion-next) ::slotted(ion-item[slot=header]){--border-width:0.55px 0px 0.55px 0px}",md:":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}"};const m=class{constructor(t){o(this,t),this.ionChange=a(this,"ionChange",7),this.ionValueChange=a(this,"ionValueChange",7),this.animated=!0,this.disabled=!1,this.readonly=!1,this.expand="compact",this.hasEmittedInitialValue=!1,this.isUserInitiatedChange=!1}valueChanged(){this.emitValueChange(!1,this.isUserInitiatedChange),this.isUserInitiatedChange=!1}async disabledChanged(){const{disabled:o}=this,t=await this.getAccordions();for(const i of t)i.disabled=o}async readonlyChanged(){const{readonly:o}=this,t=await this.getAccordions();for(const i of t)i.readonly=o}async onKeydown(o){const t=document.activeElement;if(!t)return;if(!t.closest('ion-accordion [slot="header"]'))return;const i="ION-ACCORDION"===t.tagName?t:t.closest("ion-accordion");if(!i)return;if(i.closest("ion-accordion-group")!==this.el)return;const n=await this.getAccordions(),e=n.findIndex((o=>o===i));if(-1===e)return;let a;"ArrowDown"===o.key?a=this.findNextAccordion(n,e):"ArrowUp"===o.key?a=this.findPreviousAccordion(n,e):"Home"===o.key?a=n[0]:"End"===o.key&&(a=n[n.length-1]),void 0!==a&&a!==t&&a.focus()}async componentDidLoad(){this.disabled&&this.disabledChanged(),this.readonly&&this.readonlyChanged(),this.hasEmittedInitialValue||this.emitValueChange(!0)}setValue(o){this.isUserInitiatedChange=!0;const t=this.value=o;this.ionChange.emit({value:t})}async requestAccordionToggle(o,t){const{multiple:i,value:n,readonly:e,disabled:a}=this;if(!e&&!a)if(t)if(i){const t=null!=n?n:[],i=Array.isArray(t)?t:[t];void 0===i.find((t=>t===o))&&void 0!==o&&this.setValue([...i,o])}else this.setValue(o);else if(i){const t=null!=n?n:[],i=Array.isArray(t)?t:[t];this.setValue(i.filter((t=>t!==o)))}else this.setValue(void 0)}findNextAccordion(o,t){const i=o[t+1];return void 0===i?o[0]:i}findPreviousAccordion(o,t){const i=o[t-1];return void 0===i?o[o.length-1]:i}async getAccordions(){return Array.from(this.el.querySelectorAll(":scope > ion-accordion"))}emitValueChange(o,t=!1){const{value:i,multiple:n}=this;!n&&Array.isArray(i)&&s(`[ion-accordion-group] - An array of values was passed, but multiple is "false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".\n\n Value Passed: [${i.map((o=>`'${o}'`)).join(", ")}]\n`,this.el),this.ionValueChange.emit({value:i,initial:o||!this.hasEmittedInitialValue&&void 0!==i&&!t}),void 0!==i&&(this.hasEmittedInitialValue=!0)}render(){const{disabled:o,readonly:t,expand:e}=this,a=u(this);return i(n,{key:"fd64cd203e2c8acdfc266005f372e26c29853847",class:{[a]:!0,"accordion-group-disabled":o,"accordion-group-readonly":t,[`accordion-group-expand-${e}`]:!0},role:"presentation"},i("slot",{key:"bdd9f419fc6e20f5de6f0f52ac93af7ec9a380ef"}))}get el(){return e(this)}static get watchers(){return{value:["valueChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"]}}};m.style={ios:":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){border-bottom:none}",md:":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion){-webkit-box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){margin-left:0;margin-right:0;margin-top:16px;margin-bottom:16px;border-radius:6px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-previous){border-end-end-radius:6px;border-end-start-radius:6px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-next){border-start-start-radius:6px;border-start-end-radius:6px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion):first-of-type{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}"};export{g as ion_accordion,m as ion_accordion_group}
|