q2-tecton-elements 1.7.0 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/click-elsewhere.cjs.entry.js +1 -1
- package/dist/cjs/{index-be50b180.js → index-56373ad4.js} +0 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{patch-657e579c.js → patch-9ecad880.js} +1 -1
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-btn.cjs.entry.js +2 -2
- package/dist/cjs/q2-calendar.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-carousel.cjs.entry.js +3 -2
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-input_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-loading-element.cjs.entry.js +2 -2
- package/dist/cjs/q2-loading.cjs.entry.js +2 -2
- package/dist/cjs/q2-loc.cjs.entry.js +1 -1
- package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
- package/dist/cjs/q2-option.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio.cjs.entry.js +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +1 -1
- package/dist/cjs/q2-select.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-tecton-elements.cjs.js +2 -2
- package/dist/cjs/{shapes-505602da.js → shapes-8ec3a001.js} +1 -1
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -5
- package/dist/collection/components/q2-btn/styles.css +8 -4
- package/dist/collection/components/q2-carousel/index.js +2 -1
- package/dist/collection/components/q2-input/styles.css +2 -2
- package/dist/collection/components/tecton-tab-pane/index.js +1 -4
- package/dist/esm/click-elsewhere.entry.js +1 -1
- package/dist/esm/{index-2cf5b316.js → index-06403810.js} +0 -3
- package/dist/esm/loader.mjs +2 -2
- package/dist/esm/{patch-c7cf2bf0.js → patch-580829e4.js} +1 -1
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-btn.entry.js +2 -2
- package/dist/esm/q2-calendar.entry.js +1 -1
- package/dist/esm/q2-carousel-pane.entry.js +1 -1
- package/dist/esm/q2-carousel.entry.js +3 -2
- package/dist/esm/q2-checkbox-group.entry.js +1 -1
- package/dist/esm/q2-checkbox.entry.js +1 -1
- package/dist/esm/q2-dropdown-item.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +1 -1
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-input_2.entry.js +2 -2
- package/dist/esm/q2-loading-element.entry.js +2 -2
- package/dist/esm/q2-loading.entry.js +2 -2
- package/dist/esm/q2-loc.entry.js +1 -1
- package/dist/esm/q2-optgroup.entry.js +1 -1
- package/dist/esm/q2-option.entry.js +1 -1
- package/dist/esm/q2-radio-group.entry.js +1 -1
- package/dist/esm/q2-radio.entry.js +1 -1
- package/dist/esm/q2-section.entry.js +1 -1
- package/dist/esm/q2-select.entry.js +1 -1
- package/dist/esm/q2-tab-container.entry.js +1 -1
- package/dist/esm/q2-tab-pane.entry.js +1 -1
- package/dist/esm/q2-tecton-elements.mjs +2 -2
- package/dist/esm/{shapes-22743a2e.js → shapes-ac99fc8e.js} +1 -1
- package/dist/esm/tecton-tab-pane.entry.js +2 -5
- package/dist/esm-es5/click-elsewhere.entry.js +1 -1
- package/dist/esm-es5/{index-2cf5b316.js → index-06403810.js} +0 -3
- package/dist/esm-es5/loader.mjs +2 -2
- package/dist/esm-es5/{patch-c7cf2bf0.js → patch-580829e4.js} +1 -1
- package/dist/esm-es5/q2-avatar.entry.js +1 -1
- package/dist/esm-es5/q2-btn.entry.js +2 -2
- package/dist/esm-es5/q2-calendar.entry.js +1 -1
- package/dist/esm-es5/q2-carousel-pane.entry.js +1 -1
- package/dist/esm-es5/q2-carousel.entry.js +22 -21
- package/dist/esm-es5/q2-checkbox-group.entry.js +1 -1
- package/dist/esm-es5/q2-checkbox.entry.js +1 -1
- package/dist/esm-es5/q2-dropdown-item.entry.js +1 -1
- package/dist/esm-es5/q2-dropdown.entry.js +1 -1
- package/dist/esm-es5/q2-editable-field.entry.js +1 -1
- package/dist/esm-es5/q2-icon.entry.js +1 -1
- package/dist/esm-es5/q2-input_2.entry.js +2 -2
- package/dist/esm-es5/q2-loading-element.entry.js +2 -2
- package/dist/esm-es5/q2-loading.entry.js +2 -2
- package/dist/esm-es5/q2-loc.entry.js +1 -1
- package/dist/esm-es5/q2-optgroup.entry.js +1 -1
- package/dist/esm-es5/q2-option.entry.js +1 -1
- package/dist/esm-es5/q2-radio-group.entry.js +1 -1
- package/dist/esm-es5/q2-radio.entry.js +1 -1
- package/dist/esm-es5/q2-section.entry.js +1 -1
- package/dist/esm-es5/q2-select.entry.js +1 -1
- package/dist/esm-es5/q2-tab-container.entry.js +1 -1
- package/dist/esm-es5/q2-tab-pane.entry.js +1 -1
- package/dist/esm-es5/q2-tecton-elements.mjs +2 -2
- package/dist/esm-es5/{shapes-22743a2e.js → shapes-ac99fc8e.js} +1 -1
- package/dist/esm-es5/tecton-tab-pane.entry.js +2 -5
- package/dist/q2-tecton-elements/{p-b77c44d8.entry.js → p-135f4804.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-1b41293f.system.js +1 -0
- package/dist/q2-tecton-elements/p-1eef32a4.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-5e42f064.entry.js → p-2071c411.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-155f128e.entry.js → p-2588a203.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-dab8af84.system.js → p-2b69fdec.system.js} +1 -1
- package/dist/q2-tecton-elements/{p-96c822c0.entry.js → p-368f6eee.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-4e9bddff.system.entry.js → p-3de63622.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-461fa475.system.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-1ec8d895.entry.js → p-468eac5b.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-7c5f369b.system.js → p-46e098a0.system.js} +1 -1
- package/dist/q2-tecton-elements/{p-cf264915.system.entry.js → p-49b41bc3.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-5fc0f14e.system.entry.js → p-5a12123a.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-5eedfdaa.system.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-7c458786.js → p-5f9033b7.js} +1 -1
- package/dist/q2-tecton-elements/{p-138f4664.system.entry.js → p-64a8d69f.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-e0222475.system.entry.js → p-66594d66.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-3bf460fa.system.entry.js → p-66c9c34a.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-a889e5c5.entry.js → p-7bf0790c.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-ef636076.system.entry.js → p-7c49e5c9.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-dc93889e.entry.js → p-7ece132e.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-81281673.system.entry.js → p-80262c20.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-fb03a13a.system.entry.js → p-824c4b15.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-9d937757.system.entry.js → p-82ce1d2d.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-1e56039e.entry.js → p-84b6dc77.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-dc4da29b.js → p-885ad5bb.js} +1 -1
- package/dist/q2-tecton-elements/{p-8ff0262e.system.entry.js → p-8896cf51.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-de5c863c.entry.js → p-8b502a4f.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-9ef361c6.system.entry.js → p-93945d57.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-4d9af2f2.entry.js → p-94944dd4.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-ff564e17.system.js → p-94a26b0f.system.js} +1 -1
- package/dist/q2-tecton-elements/{p-6b0e355a.entry.js → p-967e5b17.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-a25c5c2a.entry.js → p-99d5142f.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-998aebfd.entry.js → p-a06f247c.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-80c7370e.entry.js → p-a7831802.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-18cc9b11.system.entry.js → p-ad806b56.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-1f969a1e.entry.js → p-b0d0f85d.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-41e845be.entry.js → p-b3b046f3.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-b5ebb4cb.js +1 -0
- package/dist/q2-tecton-elements/{p-8590c8ca.system.entry.js → p-bbef2e56.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-7444d144.entry.js → p-c39e81d3.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-5b3de2b4.system.entry.js → p-c3cd3986.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-8ccafdd2.entry.js → p-c3d24f40.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-c88975f8.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-571d4322.system.entry.js → p-dada189b.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-eb04d225.system.entry.js → p-db3ade12.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-75b07dbe.system.entry.js → p-ebc8a18d.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-93ae4d91.entry.js → p-ed186964.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-b40f0193.system.entry.js → p-f1717e3c.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-fa553db9.system.entry.js → p-f248c3db.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-a3b2f1f0.entry.js → p-f581de2f.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-47eb20b3.entry.js → p-f61719e3.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-8384c233.entry.js → p-f7f06773.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-7a760a7d.system.entry.js → p-f84615a7.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-7c5dda37.entry.js → p-fc1cb83d.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-fc9ea618.system.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-ebe32c57.system.entry.js → p-fcc00d73.system.entry.js} +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/q2-tecton-elements/q2-tecton-elements.js +1 -1
- package/dist/types/components/tecton-tab-pane/index.d.ts +0 -1
- package/dist/types/workspace/workspace/{Tecton_tecton-production_master → _tecton-production_release_1.7.x}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +0 -0
- package/package.json +2 -2
- package/dist/q2-tecton-elements/p-07168e58.js +0 -1
- package/dist/q2-tecton-elements/p-2ee68ebd.system.entry.js +0 -1
- package/dist/q2-tecton-elements/p-77709e11.system.entry.js +0 -1
- package/dist/q2-tecton-elements/p-b3260e11.system.entry.js +0 -1
- package/dist/q2-tecton-elements/p-d2848f01.entry.js +0 -1
- package/dist/q2-tecton-elements/p-dd5225a3.system.js +0 -1
- package/dist/q2-tecton-elements/p-eefc686c.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as e,H as a,g as t}from"./p-
|
|
1
|
+
import{r,h as e,H as a,g as t}from"./p-b5ebb4cb.js";const o=class{constructor(e){r(this,e),this.generatePaneClass=r=>"q2-carousel-pane swiper-slide q2-carousel-pane-"+r}get currentPaneIndex(){return Array.prototype.indexOf.call(this.hostElement.parentElement.children,this.hostElement)}loc(r,e){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(r,e):r}render(){return e(a,{class:this.generatePaneClass(this.currentPaneIndex),tabIndex:"0","aria-hidden":this.hideFromScreenReader,"aria-label":this.label},e("article",{class:"q2-carousel-pane-main-content"},e("slot",null),e("span",{class:"sr-only item-count"},this.loc("tecton.element.carousel.itemDescription",[(this.currentPaneIndex+1).toString()]),this.loc("tecton.element.carousel.collectionDescription",[(this.siblingCount||0).toString()]))))}get hostElement(){return t(this)}};o.style="q2-carousel .swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition:all .2s;transition:all .2s}.q2-carousel-pane .q2-carousel-pane-main-content{-webkit-box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.25);box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.25);background-color:var(---tct-carousel-background-color, var(--tct-white, var(--app-white, #ffffff)));border:var(--tct-carousel-pane-border-width, 1px) solid var(--tct-carousel-pane-border-color, var(--tct-gray-11, var(--app-gray-11, var(--tct-gray-l1, var(--app-gray-l1,#cccccc)))));border-radius:var(--tct-carousel-pane-border-radius, 8px);padding:var(--tct-carousel-pane-padding, .5rem .5rem .5rem .5rem);min-height:10em}q2-carousel-pane.q2-carousel-pane:focus{-webkit-box-shadow:none;box-shadow:none}.q2-carousel-pane:focus .q2-carousel-pane-main-content{outline:none;-webkit-box-shadow:0 0 0 2px #33B4FF;box-shadow:0 0 0 2px #33B4FF;}.q2-carousel-pane .q2-carousel-pane-main-content:hover{cursor:-webkit-grab;cursor:grab}";export{o as q2_carousel_pane}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,g as s}from"./p-
|
|
1
|
+
import{r as t,c as e,h as i,g as s}from"./p-b5ebb4cb.js";import{c as a}from"./p-1d4bf5ef.js";const n=class{constructor(i){t(this,i),this.change=e(this,"change",7),this.hasYieldedHeader=!1,this.guid=a(),this.animating=!1,this.titleId="q2-section-title-"+this.guid,this.contentId="q2-section-content-"+this.guid,this.onHeaderClick=()=>{this.collapsible&&this.change.emit({expanded:!this.expanded})},this.onAnimationStart=()=>{this.collapsible&&(this.animating=!1,this.endAnimation(),this.animating=!0,this.resizerFn=setInterval(this.resizeIframe,5))},this.onAnimationEnd=()=>{this.setContentWrapperHeight(this.expanded?"auto":"0px"),this.animating=!1,setTimeout(()=>{this.endAnimation()},1e3)},this.endAnimation=()=>{this.resizerFn&&clearInterval(this.resizerFn)},this.addHeaderSlotListener=()=>{if(this.headerSlot)return void this.headerSlot.addEventListener("slotchange",this.onHeaderSlotChange);const t=new MutationObserver(this.onHeaderSlotChange);t.observe(this.headerSlotWrapper,{childList:!0}),this.headerSlotMutationObserver=t},this.removeHeaderSlotListener=()=>{this.headerSlot?this.headerSlot.removeEventListener("slotchange",this.onHeaderSlotChange):this.headerSlotMutationObserver.disconnect()},this.onHeaderSlotChange=()=>{const t=this.headerSlot?this.headerSlot.assignedNodes().length>0:this.headerSlotWrapper.children.length>0;this.hasYieldedHeader!==t&&(this.hasYieldedHeader=!!t)},this.addContentSlotListener=()=>{if(this.contentSlot)return void this.contentSlot.addEventListener("slotchange",this.resizeIframe);const t=new MutationObserver(this.resizeIframe);t.observe(this.contentContainer,{childList:!0,subtree:!0}),this.contentSlotMutationObserver=t},this.removeContentSlotListener=()=>{this.contentSlot?this.contentSlot.removeEventListener("slotchange",this.resizeIframe):this.contentSlotMutationObserver.disconnect()}}loc(t,e){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(t,e):t}resizeIframe(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()}componentDidLoad(){this.onHeaderSlotChange(),this.addHeaderSlotListener(),this.addContentSlotListener()}disconnectedCallback(){this.removeHeaderSlotListener(),this.removeContentSlotListener()}get wrapperClasses(){return`q2-section-wrapper${this.collapsible?" collapsible":""}${this.expanded||!this.collapsible?" expanded":" collapsed"}${this.label||this.hasYieldedHeader?" has-header":""}${this.animating?" animate":""}`}get btnAriaLabel(){const t=this.label&&this.loc(this.label)||"";return this.expanded?`${this.loc("tecton.element.section.collapse")} ${t}`:`${this.loc("tecton.element.section.expand")} ${t}`}get slottedContentHeight(){return(this.contentContainer.offsetHeight||0)+"px"}get contentWrapper(){return this.hostElement.shadowRoot.querySelector(".q2-section-content-wrapper")}get contentContainer(){return this.hostElement.shadowRoot.querySelector(".q2-section-content")}get headerSlotWrapper(){return this.hostElement.shadowRoot.querySelector(".q2-section-header-slot-wrapper")}get headerSlot(){return this.hostElement.shadowRoot.querySelector('slot[name="q2-section-header"]')}get contentSlot(){return this.hostElement.shadowRoot.querySelector(".q2-section-content slot")}defaultChangeHandler(t){t.target===this.hostElement&&!this.hostElement.onchange&&t.detail&&(this.expanded=t.detail.expanded)}expandedObserver(){this.collapsible&&(this.animating=!1,this.endAnimation(),this.animating=!0),this.setContentWrapperHeight(this.slottedContentHeight)}collapsibleObserver(){this.setContentWrapperHeight(this.slottedContentHeight)}setContentWrapperHeight(t){this.collapsible&&this.contentHeight!==t&&(this.contentHeight=t,this.contentWrapper.style.setProperty("height",this.contentHeight))}render(){return i("section",{class:this.wrapperClasses},i("div",{class:"q2-section-header"},i("div",{class:"q2-section-header-content",id:this.titleId,onClick:this.onHeaderClick},!this.hasYieldedHeader&&this.label?i("h2",{class:"title"},this.loc(this.label)):"",i("div",{class:"q2-section-header-slot-wrapper"},i("slot",{name:"q2-section-header"}))),this.collapsible&&!this.noCollapseIcon?i("q2-btn",{class:"q2-section-content-toggle "+(this.expanded?"expanded":"collapsed"),ariaLabel:this.btnAriaLabel,ariaExpanded:!!this.expanded,ariaControls:this.contentId,ariaHasPopup:!0,"test-id":"toggleButton",icon:!0,onClick:this.onHeaderClick},i("q2-icon",{type:"chevron-up",class:"toggle-icon"})):""),i("div",{class:"q2-section-content-wrapper",id:this.contentId,"aria-labelledby":this.titleId,role:"region",onAnimationStart:this.onAnimationStart,onAnimationEnd:this.onAnimationEnd},i("div",{class:"q2-section-content"},i("slot",null))))}get hostElement(){return s(this)}static get watchers(){return{expanded:["expandedObserver"],collapsible:["collapsibleObserver"]}}};n.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}@-webkit-keyframes expandVertical{0%{height:0}}@keyframes expandVertical{0%{height:0}}@-webkit-keyframes collapseVertical{100%{height:0}}@keyframes collapseVertical{100%{height:0}}:host{display:block;background-color:var(--tct-section-bg, var(--t-section-bg, var(--tct-white, var(--app-white, #ffffff))));color:var(--tct-section-font-color, var(--t-section-font-color, #2e2e2e));border-radius:var(--tct-section-border-radius, var(--t-section-border-radius, 3px));margin:var(--tct-scale-3, var(--app-scale-3, 15px))}@media screen and (max-width: 767px){:host{margin:var(--tct-scale-3, var(--app-scale-3, 15px)) 0}}.q2-section-wrapper{display:block;padding:var(--tct-scale-1, var(--app-scale-1, 5px)) 0}.q2-section-wrapper:hover{-webkit-box-shadow:var(--tct-section-wrapper-hover-box-shadow, inherit);box-shadow:var(--tct-section-wrapper-hover-box-shadow, inherit)}.q2-section-header{padding:0 var(--tct-scale-3, var(--app-scale-3, 15px));display:-ms-flexbox;display:flex}.has-header .q2-section-header{min-height:44px}.q2-section-header-content{-ms-flex:1 1 100%;flex:1 1 100%;min-width:0;-ms-flex-item-align:center;align-self:center}.collapsible .q2-section-header-content{cursor:pointer}.title{margin:0;font-size:20px;font-weight:600;text-transform:uppercase;letter-spacing:0.5px}.toggle-icon{-webkit-transition:-webkit-transform var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:-webkit-transform var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:transform var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:transform var(--tct-tween-1, var(--app-tween-1, 0.2s ease)), -webkit-transform var(--tct-tween-1, var(--app-tween-1, 0.2s ease))}.collapsed .toggle-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.q2-section-content-wrapper{height:auto}.q2-section-content{padding:var(--tct-scale-2, var(--app-scale-2, 10px))\n var(--tct-scale-3, var(--app-scale-3, 15px))}.expanded.animate .q2-section-content-wrapper{-webkit-animation:expandVertical var(--tct-tween-2, var(--app-tween-2, 0.4s ease)) forwards;animation:expandVertical var(--tct-tween-2, var(--app-tween-2, 0.4s ease)) forwards}.collapsed .q2-section-content-wrapper{height:0;-webkit-animation:collapseVertical 0s forwards;animation:collapseVertical 0s forwards;-webkit-animation-duration:0;animation-duration:0;padding-top:0;visibility:hidden;overflow:hidden}.collapsed.animate .q2-section-content-wrapper{-webkit-animation:collapseVertical var(--tct-tween-1, var(--app-tween-1, 0.2s ease)) forwards;animation:collapseVertical var(--tct-tween-1, var(--app-tween-1, 0.2s ease)) forwards}.animate .q2-section-content-wrapper{overflow:hidden}";export{n as q2_section}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<i;t++)for(var s=arguments[t],l=0,r=s.length;l<r;l++,o++)n[o]=s[l];return n};System.register(["./p-dab8af84.system.js","./p-4576db15.system.js"],(function(e){"use strict";var t,i,n,o,s;return{setters:[function(e){t=e.r;i=e.c;n=e.h;o=e.g},function(e){s=e.c}],execute:function(){var l="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.q2-element-dropdown{display:none;position:absolute;background-color:var(--app-white);color:var(--t-font-color);left:0;width:100%;z-index:100;margin-top:1px;-webkit-box-shadow:var(--app-shadow-1);box-shadow:var(--app-shadow-1);height:0;overflow:hidden;opacity:0;visibility:hidden;-webkit-transition:opacity var(--app-tween-1);transition:opacity var(--app-tween-1);border-radius:var(--tct-dropdown-element-br, 0)}.q2-element-dropdown.sizable{display:block;height:auto}.dropdown-open .q2-element-dropdown{display:block;height:auto;overflow:auto;opacity:1;visibility:visible;margin-bottom:var(--app-scale-2)}:host([alignment='right']) .q2-element-dropdown{left:auto;right:0}:host{display:block;margin-top:var(--tct-select-margin-top, var(--app-scale-4, 30px));margin-bottom:var(--tct-select-margin-bottom, var(--app-scale-4, 30px))}.q2-select-container{position:relative;display:block}.q2-select-input{margin:0}.custom-display-content{position:absolute;bottom:0;left:calc(var(--tct-scale-2, var(--app-scale-2, 10px)) + 1px);height:44px;width:calc(100% - 34px - var(--tct-scale-3, var(--app-scale-3, 15px)));overflow:hidden;cursor:pointer;-webkit-transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease));transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease))}.custom-display-content:not([hidden]){display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.is-searchable.is-focused .custom-display-content,.is-searchable .custom-display-content:active{left:calc(var(--tct-scale-3, var(--app-scale-3, 15px)) + 1px)}.has-error .custom-display-content{width:calc(100% - 68px - var(--tct-scale-3, var(--app-scale-3, 15px)))}.dropdown-open .q2-select-dropdown{overflow-y:auto;max-height:300px}.multi-select-header{padding:var(--tct-scale-1, var(--app-scale-1, 5px))\n var(--tct-scale-2, var(--app-scale-2, 10px))}.show-all-options{margin-right:var(--tct-scale-1, var(--app-scale-1, 5px));margin-left:var(--tct-scale-2, var(--app-scale-2, 10px))}";var r=e("q2_select",function(){function e(e){var n=this;t(this,e);this.change=i(this,"change",7);this.input=i(this,"input",7);this.selectedOptions=[];this.disabled=false;this.multiple=false;this.searchable=false;this.multilineOptions=false;this.optional=false;this.dropdownOpen=false;this.onlyShowingSelected=false;this.hasCustomDisplay=false;this.inputFocused=false;this.scheduledAfterRender=[];this.keyStore={queue:[],lastPressedAt:new Date};this.guid=s();this.dropdownId="q2-select-dropdown-"+this.guid;this.onMutationObserved=function(){var e=n.hostElement.querySelector(".custom-display-content");var t=n.hostElement.shadowRoot.querySelector('slot[name="q2-select-display"]');var i=!!t?t.assignedNodes().length>0:e.children.length>0;if(n.hasCustomDisplay!==i){n.hasCustomDisplay=i}if(n.multiple){n.updateMultipleOptionAttrs();return}n.updateSingleOptionAttrs();var o=n.optionElements[n.activeIndex];if(!o||o.id!==n.activeOptionId){n.activeIndex=n.getDefaultActiveIndex();n.setActiveOption()}};this.searchAndFocus=function(e){var t=function(){var e=(n.activeIndex||0)+1;var t=n.optionElements.map((function(e,t){return{element:e,index:t}}));return __spreadArrays(t.slice(e),t.slice(0,e))};var i=function(){var t=new Date;if(t.getTime()-n.keyStore.lastPressedAt.getTime()>1e3){n.keyStore.queue=[]}if(n.keyStore.queue.length!==1||n.keyStore.queue[0]!==e){n.keyStore.queue.push(e)}n.keyStore.lastPressedAt=t};var o=function(e){return e.find((function(e){return!e.element.disabled&&e.element.display.replace(/\s/g,"").match(new RegExp("^"+n.keyStore.queue.join(""),"i"))}))};var s=function(e){var t=e.element,i=e.index;if(n.dropdownOpen||n.multiple){n.openDropdownWithActiveElement(i)}else{n.activeIndex=i;n.change.emit({value:t.value})}};i();var l=o(t());if(l){s(l)}};this.inputClickHandler=function(e){e.stopPropagation();n.toggleDropdown();n.focusInput()};this.inputInputHandler=function(e){e.stopPropagation();if(!n.dropdownOpen){n.openDropdownWithoutActiveElement()}n.searchText=e.detail.value;n.input.emit({query:e.detail.value})};this.inputKeydownHandler=function(e){if(e.key==="Enter"&&n.dropdownOpen){e.preventDefault();var t=n.hostElement.querySelector('[option-id="'+n.activeOptionId+'"]');t&&!t.disabled&&n.selectOption(t.value)}if(["Escape","Esc"].includes(e.key)){n.closeDropdown();n.focusInput()}if(e.key==="Tab"){if(n.dropdownOpen&&n.searchable&&e.shiftKey){e.preventDefault();n.focusInput()}else{n.dropdownOpen&&!n.multiple&&e.preventDefault()}}};this.inputFocusHandler=function(){n.inputFocused=true};this.inputBlurHandler=function(){n.inputFocused=false};this.inputChangeHandler=function(e){e.stopPropagation()};this.showAllOptionTabKeyDown=function(e){if(e.key==="Tab"&&!e.shiftKey&&n.selectedOptionsCount===0){e.preventDefault()}};this.showSelectedOptionTabKeyDown=function(e){if(e.key==="Tab"&&!e.shiftKey){e.preventDefault()}};this.clickedElsewhere=function(e){var t=e.target;if(t.localName==="click-elsewhere"){e.stopPropagation();if(n.dropdownOpen){n.closeDropdown()}}};this.showSelectedOptions=function(){n.onlyShowingSelected=true;n.optionElements.forEach((function(e){e._multiSelectHidden=!e.selected}))};this.showAllOptions=function(){n.onlyShowingSelected=false;n.optionElements.forEach((function(e){e._multiSelectHidden=false}))};this.onCustomDisplayClick=function(e){e.stopPropagation();n.focusInput();n.toggleDropdown()}}e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};e.prototype.resizeIframe=function(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()};e.prototype.getDefaultActiveIndex=function(){var e=this.optionElements.findIndex((function(e){return e.selected}));return e>-1?e:0};e.prototype.setActiveOption=function(){var e=this;if(!this.dropdownOpen){return}this.optionElements.forEach((function(t,i){if(e.activeIndex===i){t.active=true;e.activeOptionId=t.optionId}else{t.active=false}}))};e.prototype.setFocusedOption=function(){var e=this.optionElements[this.activeIndex].shadowRoot.querySelector("div");e.dispatchEvent(new FocusEvent("focus"));e.focus()};e.prototype.calculateMultiSelectSelectedDisplay=function(){var e=this;if(this.selectedOptions.length===1){var t=this.optionElements.find((function(t){return t.value===e.selectedOptions[0]}));return t&&t.display&&this.loc(t.display)||t&&t.value||this.selectedOptions[0]}else if(this.selectedOptions.length>1){return this.loc("tecton.element.select.multiDisplay",[this.selectedOptions.length])}else{return""}};e.prototype.calculateSingleSelectSelectedDisplay=function(){var e=this;var t=this.optionElements.find((function(t){return e.value===t.value}));return t&&t.display&&this.loc(t.display)||this.value||""};Object.defineProperty(e.prototype,"selectedDisplay",{get:function(){if(this.hasCustomDisplay&&!this.searchText){return""}if(this.searchable&&this.dropdownOpen){return this.searchText||""}return this.multiple?this.calculateMultiSelectSelectedDisplay():this.calculateSingleSelectSelectedDisplay()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedOptionsCount",{get:function(){return this.selectedOptions.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"optionElements",{get:function(){return Array.from(this.hostElement.querySelectorAll("q2-option"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"wrapperClasses",{get:function(){var e=this.dropdownOpen&&" dropdown-open"||"";var t=Array.isArray(this.errors)&&this.errors.length>0?" has-error":"";var i=this.inputFocused?" is-focused":"";var n=this.searchable?" is-searchable":"";return"q2-select-container"+e+t+i+n},enumerable:false,configurable:true});e.prototype.updateSingleOptionAttrs=function(){var e=this;this.optionElements.forEach((function(t,i){t.selected=e.value===t.value;t.optionId="q2-select-"+e.guid+"-option-"+i;t.multiline=e.multilineOptions}))};e.prototype.updateMultipleOptionAttrs=function(){var e=this;if(this.selectedOptions.length===0){this.onlyShowingSelected=false}this.optionElements.forEach((function(t,i){t.selected=e.selectedOptions.includes(t.value);t._multiSelectHidden=e.onlyShowingSelected?!t.selected:false;t.optionId="q2-select-"+e.guid+"-option-"+i;t.multiline=e.multilineOptions}))};e.prototype.selectOption=function(e){if(this.multiple){var t=this.selectedOptions.includes(e);if(t){this.change.emit({selectedOptions:this.selectedOptions.filter((function(t){return t!==e}))})}else{this.change.emit({selectedOptions:__spreadArrays(this.selectedOptions,[e])})}}else{this.change.emit({value:e});this.closeDropdown();this.focusInput()}};e.prototype.scrollToActiveOption=function(){var e=this.optionElements[this.activeIndex];e&&e.scrollIntoView({block:"nearest"})};e.prototype.openDropdownWithoutActiveElement=function(){this.activeIndex=undefined;this.setActiveOption();this.dropdownOpen=true;this.scheduledAfterRender.push(this.resizeIframe)};e.prototype.openDropdownWithActiveElement=function(e){var t=this;this.activeIndex=e;this.dropdownOpen=true;this.setActiveOption();this.scheduledAfterRender.push((function(){if(!t.searchable){t.setFocusedOption()}t.scrollToActiveOption();t.resizeIframe()}))};e.prototype.closeDropdown=function(){this.dropdownOpen=false;if(this.searchText){this.searchText="";this.input.emit({query:""})}this.scheduledAfterRender.push(this.resizeIframe)};e.prototype.toggleDropdown=function(){if(this.disabled){return}if(this.searchable){if(!this.dropdownOpen){this.openDropdownWithoutActiveElement()}}else{if(this.dropdownOpen){this.closeDropdown()}else{this.openDropdownWithoutActiveElement()}}};e.prototype.adjustActiveOptionAndScroll=function(e){this.activeIndex+=e;this.setActiveOption();if(!this.searchable){this.setFocusedOption()}this.scrollToActiveOption()};e.prototype.setDefaultActiveElement=function(){this.activeIndex=this.getDefaultActiveIndex();this.setActiveOption();if(!this.searchable){this.setFocusedOption()}};e.prototype.focusInput=function(){var e=this.hostElement.shadowRoot.querySelector("q2-input");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.getNextVisibleIndex=function(e){var t=this.activeIndex+e;while(t>=0&&t<=this.optionElements.length-1){var i=window.getComputedStyle(this.optionElements[t]),n=i.display,o=i.visibility;if(n!=="none"&&o!=="hidden"){return t}t=t+e}return-1};e.prototype.componentDidLoad=function(){var e=new MutationObserver(this.onMutationObserved);e.observe(this.hostElement,{childList:true,subtree:true});this.mutationObserver=e;this.onMutationObserved()};e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.scheduledAfterRender.forEach((function(e){return e()}));e.scheduledAfterRender=[]}),25)};e.prototype.disconnectedCallback=function(){if(this.mutationObserver){this.mutationObserver.disconnect();this.mutationObserver=null}};e.prototype.valueUpdated=function(){if(this.multiple){return}this.updateSingleOptionAttrs()};e.prototype.selectedOptionsUpdated=function(){if(!this.multiple){return}this.updateMultipleOptionAttrs()};e.prototype.multilineOptionsChanged=function(e,t){var i=this;if(e===t){return}this.optionElements.forEach((function(e){e.multiline=i.multilineOptions}))};e.prototype.onHostElementChange=function(e){if(e.target===this.hostElement&&!this.hostElement.onchange){if(this.multiple){this.selectedOptions=e.detail.selectedOptions}else{this.value=e.detail.value}}};e.prototype.onHostElementInput=function(e){if(this.searchable&&e.target===this.hostElement&&!this.hostElement.oninput){var t=this.optionElements;var i=e.detail.query.trim().toLowerCase();t.forEach((function(e){if(i===""){e.style.display=""}else{var t=e.display,n=t===void 0?"":t,o=e.innerText,s=o===void 0?"":o;var l=n.toLowerCase().includes(i)||s.toLowerCase().includes(i);e.style.display=l?"":"none"}}))}};e.prototype.clickHandler=function(e){var t=e.target;if(t.localName!=="q2-option"||t.disabled){return}this.selectOption(t.value)};e.prototype.keydownHandler=function(e){if(e.key==="Enter"&&this.dropdownOpen){e.preventDefault();var t=this.hostElement.querySelector('[option-id="'+this.activeOptionId+'"]');t&&!t.disabled&&this.selectOption(t.value)}else if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();if(this.dropdownOpen){if(this.activeIndex>0){var i=this.getNextVisibleIndex(-1);if(i>-1){this.adjustActiveOptionAndScroll(i-this.activeIndex)}}else if(this.activeIndex!==0){this.setDefaultActiveElement()}}else{this.openDropdownWithActiveElement(this.getDefaultActiveIndex())}}else if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();if(this.dropdownOpen){if(this.activeIndex<this.optionElements.length-1){var i=this.getNextVisibleIndex(1);if(i>-1){this.adjustActiveOptionAndScroll(i-this.activeIndex)}}else if(!this.activeIndex){this.setDefaultActiveElement()}}else{this.openDropdownWithActiveElement(this.getDefaultActiveIndex())}}else if(["Escape","Esc"].includes(e.key)){this.closeDropdown();this.focusInput()}else if(e.key==="Tab"){if(this.dropdownOpen&&this.searchable&&e.shiftKey){e.preventDefault();this.focusInput()}else{this.dropdownOpen&&!this.multiple&&e.preventDefault()}}else if(!this.searchable&&e.key.match(/^[a-zA-Z0-9]$/)){this.searchAndFocus(e.key)}};e.prototype.render=function(){var e=this;return n("click-elsewhere",{class:this.wrapperClasses,onChange:this.clickedElsewhere},n("q2-input",{class:"q2-select-input",label:this.label&&this.loc(this.label)||"",value:this.selectedDisplay,errors:Array.isArray(this.errors)&&this.errors.length>0&&this.errors.map((function(t){return e.loc(t)}))||this.invalid&&["tecton.element.select.invalid"]||[],disabled:this.disabled,optional:this.optional,ariaLabel:!this.label&&this.ariaLabel&&this.loc(this.ariaLabel)||"",ariaExpanded:this.dropdownOpen,ariaOwns:this.dropdownId,ariaHaspopup:"listbox",role:this.searchable?"combobox":null,pseudo:!this.searchable,"test-id":"toggleDropdown","hide-messages":true,iconRight:"chevron-down",onClick:this.inputClickHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeydownHandler,onFocus:this.inputFocusHandler,onBlur:this.inputBlurHandler,onChange:this.inputChangeHandler}),n("div",{class:"custom-display-content",hidden:!this.hasCustomDisplay||!!this.searchText,onClick:this.onCustomDisplayClick},n("slot",{name:"q2-select-display"})),this.optionsDropdown())};e.prototype.optionsDropdown=function(){return n("div",{class:"q2-select-dropdown q2-element-dropdown"},this.multiple?this.visibilityToggle():"",n("div",{class:"q2-select-options",id:this.dropdownId},n("slot",null)))};e.prototype.visibilityToggle=function(){return n("div",{class:"multi-select-header"},this.loc("tecton.element.select.multiHeader.showing"),n("q2-btn",{class:"option-toggle show-all-options"+(this.onlyShowingSelected?"":" selected"),badge:true,"test-id":"allOptionsButton",onClick:this.showAllOptions,onKeyDown:this.showAllOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.all")),n("q2-btn",{class:"option-toggle show-selected-options"+(this.onlyShowingSelected?" selected":""),disabled:this.selectedOptions.length===0,badge:true,"test-id":"selectedOptionsButton",onClick:this.showSelectedOptions,onKeyDown:this.showSelectedOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.selected",[this.selectedOptionsCount])))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueUpdated"],selectedOptions:["selectedOptionsUpdated"],multilineOptions:["multilineOptionsChanged"]}},enumerable:false,configurable:true});return e}());r.style=l}}}));
|
|
1
|
+
var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<i;t++)for(var s=arguments[t],l=0,r=s.length;l<r;l++,o++)n[o]=s[l];return n};System.register(["./p-2b69fdec.system.js","./p-4576db15.system.js"],(function(e){"use strict";var t,i,n,o,s;return{setters:[function(e){t=e.r;i=e.c;n=e.h;o=e.g},function(e){s=e.c}],execute:function(){var l="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.q2-element-dropdown{display:none;position:absolute;background-color:var(--app-white);color:var(--t-font-color);left:0;width:100%;z-index:100;margin-top:1px;-webkit-box-shadow:var(--app-shadow-1);box-shadow:var(--app-shadow-1);height:0;overflow:hidden;opacity:0;visibility:hidden;-webkit-transition:opacity var(--app-tween-1);transition:opacity var(--app-tween-1);border-radius:var(--tct-dropdown-element-br, 0)}.q2-element-dropdown.sizable{display:block;height:auto}.dropdown-open .q2-element-dropdown{display:block;height:auto;overflow:auto;opacity:1;visibility:visible;margin-bottom:var(--app-scale-2)}:host([alignment='right']) .q2-element-dropdown{left:auto;right:0}:host{display:block;margin-top:var(--tct-select-margin-top, var(--app-scale-4, 30px));margin-bottom:var(--tct-select-margin-bottom, var(--app-scale-4, 30px))}.q2-select-container{position:relative;display:block}.q2-select-input{margin:0}.custom-display-content{position:absolute;bottom:0;left:calc(var(--tct-scale-2, var(--app-scale-2, 10px)) + 1px);height:44px;width:calc(100% - 34px - var(--tct-scale-3, var(--app-scale-3, 15px)));overflow:hidden;cursor:pointer;-webkit-transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease));transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease))}.custom-display-content:not([hidden]){display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.is-searchable.is-focused .custom-display-content,.is-searchable .custom-display-content:active{left:calc(var(--tct-scale-3, var(--app-scale-3, 15px)) + 1px)}.has-error .custom-display-content{width:calc(100% - 68px - var(--tct-scale-3, var(--app-scale-3, 15px)))}.dropdown-open .q2-select-dropdown{overflow-y:auto;max-height:300px}.multi-select-header{padding:var(--tct-scale-1, var(--app-scale-1, 5px))\n var(--tct-scale-2, var(--app-scale-2, 10px))}.show-all-options{margin-right:var(--tct-scale-1, var(--app-scale-1, 5px));margin-left:var(--tct-scale-2, var(--app-scale-2, 10px))}";var r=e("q2_select",function(){function e(e){var n=this;t(this,e);this.change=i(this,"change",7);this.input=i(this,"input",7);this.selectedOptions=[];this.disabled=false;this.multiple=false;this.searchable=false;this.multilineOptions=false;this.optional=false;this.dropdownOpen=false;this.onlyShowingSelected=false;this.hasCustomDisplay=false;this.inputFocused=false;this.scheduledAfterRender=[];this.keyStore={queue:[],lastPressedAt:new Date};this.guid=s();this.dropdownId="q2-select-dropdown-"+this.guid;this.onMutationObserved=function(){var e=n.hostElement.querySelector(".custom-display-content");var t=n.hostElement.shadowRoot.querySelector('slot[name="q2-select-display"]');var i=!!t?t.assignedNodes().length>0:e.children.length>0;if(n.hasCustomDisplay!==i){n.hasCustomDisplay=i}if(n.multiple){n.updateMultipleOptionAttrs();return}n.updateSingleOptionAttrs();var o=n.optionElements[n.activeIndex];if(!o||o.id!==n.activeOptionId){n.activeIndex=n.getDefaultActiveIndex();n.setActiveOption()}};this.searchAndFocus=function(e){var t=function(){var e=(n.activeIndex||0)+1;var t=n.optionElements.map((function(e,t){return{element:e,index:t}}));return __spreadArrays(t.slice(e),t.slice(0,e))};var i=function(){var t=new Date;if(t.getTime()-n.keyStore.lastPressedAt.getTime()>1e3){n.keyStore.queue=[]}if(n.keyStore.queue.length!==1||n.keyStore.queue[0]!==e){n.keyStore.queue.push(e)}n.keyStore.lastPressedAt=t};var o=function(e){return e.find((function(e){return!e.element.disabled&&e.element.display.replace(/\s/g,"").match(new RegExp("^"+n.keyStore.queue.join(""),"i"))}))};var s=function(e){var t=e.element,i=e.index;if(n.dropdownOpen||n.multiple){n.openDropdownWithActiveElement(i)}else{n.activeIndex=i;n.change.emit({value:t.value})}};i();var l=o(t());if(l){s(l)}};this.inputClickHandler=function(e){e.stopPropagation();n.toggleDropdown();n.focusInput()};this.inputInputHandler=function(e){e.stopPropagation();if(!n.dropdownOpen){n.openDropdownWithoutActiveElement()}n.searchText=e.detail.value;n.input.emit({query:e.detail.value})};this.inputKeydownHandler=function(e){if(e.key==="Enter"&&n.dropdownOpen){e.preventDefault();var t=n.hostElement.querySelector('[option-id="'+n.activeOptionId+'"]');t&&!t.disabled&&n.selectOption(t.value)}if(["Escape","Esc"].includes(e.key)){n.closeDropdown();n.focusInput()}if(e.key==="Tab"){if(n.dropdownOpen&&n.searchable&&e.shiftKey){e.preventDefault();n.focusInput()}else{n.dropdownOpen&&!n.multiple&&e.preventDefault()}}};this.inputFocusHandler=function(){n.inputFocused=true};this.inputBlurHandler=function(){n.inputFocused=false};this.inputChangeHandler=function(e){e.stopPropagation()};this.showAllOptionTabKeyDown=function(e){if(e.key==="Tab"&&!e.shiftKey&&n.selectedOptionsCount===0){e.preventDefault()}};this.showSelectedOptionTabKeyDown=function(e){if(e.key==="Tab"&&!e.shiftKey){e.preventDefault()}};this.clickedElsewhere=function(e){var t=e.target;if(t.localName==="click-elsewhere"){e.stopPropagation();if(n.dropdownOpen){n.closeDropdown()}}};this.showSelectedOptions=function(){n.onlyShowingSelected=true;n.optionElements.forEach((function(e){e._multiSelectHidden=!e.selected}))};this.showAllOptions=function(){n.onlyShowingSelected=false;n.optionElements.forEach((function(e){e._multiSelectHidden=false}))};this.onCustomDisplayClick=function(e){e.stopPropagation();n.focusInput();n.toggleDropdown()}}e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};e.prototype.resizeIframe=function(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()};e.prototype.getDefaultActiveIndex=function(){var e=this.optionElements.findIndex((function(e){return e.selected}));return e>-1?e:0};e.prototype.setActiveOption=function(){var e=this;if(!this.dropdownOpen){return}this.optionElements.forEach((function(t,i){if(e.activeIndex===i){t.active=true;e.activeOptionId=t.optionId}else{t.active=false}}))};e.prototype.setFocusedOption=function(){var e=this.optionElements[this.activeIndex].shadowRoot.querySelector("div");e.dispatchEvent(new FocusEvent("focus"));e.focus()};e.prototype.calculateMultiSelectSelectedDisplay=function(){var e=this;if(this.selectedOptions.length===1){var t=this.optionElements.find((function(t){return t.value===e.selectedOptions[0]}));return t&&t.display&&this.loc(t.display)||t&&t.value||this.selectedOptions[0]}else if(this.selectedOptions.length>1){return this.loc("tecton.element.select.multiDisplay",[this.selectedOptions.length])}else{return""}};e.prototype.calculateSingleSelectSelectedDisplay=function(){var e=this;var t=this.optionElements.find((function(t){return e.value===t.value}));return t&&t.display&&this.loc(t.display)||this.value||""};Object.defineProperty(e.prototype,"selectedDisplay",{get:function(){if(this.hasCustomDisplay&&!this.searchText){return""}if(this.searchable&&this.dropdownOpen){return this.searchText||""}return this.multiple?this.calculateMultiSelectSelectedDisplay():this.calculateSingleSelectSelectedDisplay()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedOptionsCount",{get:function(){return this.selectedOptions.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"optionElements",{get:function(){return Array.from(this.hostElement.querySelectorAll("q2-option"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"wrapperClasses",{get:function(){var e=this.dropdownOpen&&" dropdown-open"||"";var t=Array.isArray(this.errors)&&this.errors.length>0?" has-error":"";var i=this.inputFocused?" is-focused":"";var n=this.searchable?" is-searchable":"";return"q2-select-container"+e+t+i+n},enumerable:false,configurable:true});e.prototype.updateSingleOptionAttrs=function(){var e=this;this.optionElements.forEach((function(t,i){t.selected=e.value===t.value;t.optionId="q2-select-"+e.guid+"-option-"+i;t.multiline=e.multilineOptions}))};e.prototype.updateMultipleOptionAttrs=function(){var e=this;if(this.selectedOptions.length===0){this.onlyShowingSelected=false}this.optionElements.forEach((function(t,i){t.selected=e.selectedOptions.includes(t.value);t._multiSelectHidden=e.onlyShowingSelected?!t.selected:false;t.optionId="q2-select-"+e.guid+"-option-"+i;t.multiline=e.multilineOptions}))};e.prototype.selectOption=function(e){if(this.multiple){var t=this.selectedOptions.includes(e);if(t){this.change.emit({selectedOptions:this.selectedOptions.filter((function(t){return t!==e}))})}else{this.change.emit({selectedOptions:__spreadArrays(this.selectedOptions,[e])})}}else{this.change.emit({value:e});this.closeDropdown();this.focusInput()}};e.prototype.scrollToActiveOption=function(){var e=this.optionElements[this.activeIndex];e&&e.scrollIntoView({block:"nearest"})};e.prototype.openDropdownWithoutActiveElement=function(){this.activeIndex=undefined;this.setActiveOption();this.dropdownOpen=true;this.scheduledAfterRender.push(this.resizeIframe)};e.prototype.openDropdownWithActiveElement=function(e){var t=this;this.activeIndex=e;this.dropdownOpen=true;this.setActiveOption();this.scheduledAfterRender.push((function(){if(!t.searchable){t.setFocusedOption()}t.scrollToActiveOption();t.resizeIframe()}))};e.prototype.closeDropdown=function(){this.dropdownOpen=false;if(this.searchText){this.searchText="";this.input.emit({query:""})}this.scheduledAfterRender.push(this.resizeIframe)};e.prototype.toggleDropdown=function(){if(this.disabled){return}if(this.searchable){if(!this.dropdownOpen){this.openDropdownWithoutActiveElement()}}else{if(this.dropdownOpen){this.closeDropdown()}else{this.openDropdownWithoutActiveElement()}}};e.prototype.adjustActiveOptionAndScroll=function(e){this.activeIndex+=e;this.setActiveOption();if(!this.searchable){this.setFocusedOption()}this.scrollToActiveOption()};e.prototype.setDefaultActiveElement=function(){this.activeIndex=this.getDefaultActiveIndex();this.setActiveOption();if(!this.searchable){this.setFocusedOption()}};e.prototype.focusInput=function(){var e=this.hostElement.shadowRoot.querySelector("q2-input");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.getNextVisibleIndex=function(e){var t=this.activeIndex+e;while(t>=0&&t<=this.optionElements.length-1){var i=window.getComputedStyle(this.optionElements[t]),n=i.display,o=i.visibility;if(n!=="none"&&o!=="hidden"){return t}t=t+e}return-1};e.prototype.componentDidLoad=function(){var e=new MutationObserver(this.onMutationObserved);e.observe(this.hostElement,{childList:true,subtree:true});this.mutationObserver=e;this.onMutationObserved()};e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.scheduledAfterRender.forEach((function(e){return e()}));e.scheduledAfterRender=[]}),25)};e.prototype.disconnectedCallback=function(){if(this.mutationObserver){this.mutationObserver.disconnect();this.mutationObserver=null}};e.prototype.valueUpdated=function(){if(this.multiple){return}this.updateSingleOptionAttrs()};e.prototype.selectedOptionsUpdated=function(){if(!this.multiple){return}this.updateMultipleOptionAttrs()};e.prototype.multilineOptionsChanged=function(e,t){var i=this;if(e===t){return}this.optionElements.forEach((function(e){e.multiline=i.multilineOptions}))};e.prototype.onHostElementChange=function(e){if(e.target===this.hostElement&&!this.hostElement.onchange){if(this.multiple){this.selectedOptions=e.detail.selectedOptions}else{this.value=e.detail.value}}};e.prototype.onHostElementInput=function(e){if(this.searchable&&e.target===this.hostElement&&!this.hostElement.oninput){var t=this.optionElements;var i=e.detail.query.trim().toLowerCase();t.forEach((function(e){if(i===""){e.style.display=""}else{var t=e.display,n=t===void 0?"":t,o=e.innerText,s=o===void 0?"":o;var l=n.toLowerCase().includes(i)||s.toLowerCase().includes(i);e.style.display=l?"":"none"}}))}};e.prototype.clickHandler=function(e){var t=e.target;if(t.localName!=="q2-option"||t.disabled){return}this.selectOption(t.value)};e.prototype.keydownHandler=function(e){if(e.key==="Enter"&&this.dropdownOpen){e.preventDefault();var t=this.hostElement.querySelector('[option-id="'+this.activeOptionId+'"]');t&&!t.disabled&&this.selectOption(t.value)}else if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();if(this.dropdownOpen){if(this.activeIndex>0){var i=this.getNextVisibleIndex(-1);if(i>-1){this.adjustActiveOptionAndScroll(i-this.activeIndex)}}else if(this.activeIndex!==0){this.setDefaultActiveElement()}}else{this.openDropdownWithActiveElement(this.getDefaultActiveIndex())}}else if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();if(this.dropdownOpen){if(this.activeIndex<this.optionElements.length-1){var i=this.getNextVisibleIndex(1);if(i>-1){this.adjustActiveOptionAndScroll(i-this.activeIndex)}}else if(!this.activeIndex){this.setDefaultActiveElement()}}else{this.openDropdownWithActiveElement(this.getDefaultActiveIndex())}}else if(["Escape","Esc"].includes(e.key)){this.closeDropdown();this.focusInput()}else if(e.key==="Tab"){if(this.dropdownOpen&&this.searchable&&e.shiftKey){e.preventDefault();this.focusInput()}else{this.dropdownOpen&&!this.multiple&&e.preventDefault()}}else if(!this.searchable&&e.key.match(/^[a-zA-Z0-9]$/)){this.searchAndFocus(e.key)}};e.prototype.render=function(){var e=this;return n("click-elsewhere",{class:this.wrapperClasses,onChange:this.clickedElsewhere},n("q2-input",{class:"q2-select-input",label:this.label&&this.loc(this.label)||"",value:this.selectedDisplay,errors:Array.isArray(this.errors)&&this.errors.length>0&&this.errors.map((function(t){return e.loc(t)}))||this.invalid&&["tecton.element.select.invalid"]||[],disabled:this.disabled,optional:this.optional,ariaLabel:!this.label&&this.ariaLabel&&this.loc(this.ariaLabel)||"",ariaExpanded:this.dropdownOpen,ariaOwns:this.dropdownId,ariaHaspopup:"listbox",role:this.searchable?"combobox":null,pseudo:!this.searchable,"test-id":"toggleDropdown","hide-messages":true,iconRight:"chevron-down",onClick:this.inputClickHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeydownHandler,onFocus:this.inputFocusHandler,onBlur:this.inputBlurHandler,onChange:this.inputChangeHandler}),n("div",{class:"custom-display-content",hidden:!this.hasCustomDisplay||!!this.searchText,onClick:this.onCustomDisplayClick},n("slot",{name:"q2-select-display"})),this.optionsDropdown())};e.prototype.optionsDropdown=function(){return n("div",{class:"q2-select-dropdown q2-element-dropdown"},this.multiple?this.visibilityToggle():"",n("div",{class:"q2-select-options",id:this.dropdownId},n("slot",null)))};e.prototype.visibilityToggle=function(){return n("div",{class:"multi-select-header"},this.loc("tecton.element.select.multiHeader.showing"),n("q2-btn",{class:"option-toggle show-all-options"+(this.onlyShowingSelected?"":" selected"),badge:true,"test-id":"allOptionsButton",onClick:this.showAllOptions,onKeyDown:this.showAllOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.all")),n("q2-btn",{class:"option-toggle show-selected-options"+(this.onlyShowingSelected?" selected":""),disabled:this.selectedOptions.length===0,badge:true,"test-id":"selectedOptionsButton",onClick:this.showSelectedOptions,onKeyDown:this.showSelectedOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.selected",[this.selectedOptionsCount])))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueUpdated"],selectedOptions:["selectedOptionsUpdated"],multilineOptions:["multilineOptionsChanged"]}},enumerable:false,configurable:true});return e}());r.style=l}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,g as i}from"./p-
|
|
1
|
+
import{r as t,c as s,g as i}from"./p-b5ebb4cb.js";const e=class{constructor(i){t(this,i),this.change=s(this,"change",7),this.mouseEventList=["mousedown","dragstart","touchstart"],this.isCurrentlyFocused=!1,this.mouseHandler=t=>{const s=this.shadowContains(this.findActiveElement()),i=this.shadowContains(this.shadowEventTarget(t))||this.originatesInSlots(t.target);if(!i&&(this.isCurrentlyFocused||s))return this.isCurrentlyFocused=!1,void this.change.emit();this.isCurrentlyFocused=i||s},this.windowBlurHandler=()=>{if(this.findActiveElement()===document.body&&this.isCurrentlyFocused)return this.isCurrentlyFocused=!1,void this.change.emit()}}componentWillLoad(){this.mouseEventList.forEach(t=>{document.addEventListener(t,this.mouseHandler)}),window.addEventListener("blur",this.windowBlurHandler)}disconnectedCallback(){this.mouseEventList.forEach(t=>{document.removeEventListener(t,this.mouseHandler)}),window.removeEventListener("blur",this.windowBlurHandler)}findActiveElement(){let t=document.activeElement;for(;;){if(!t||!t.shadowRoot)return t;t=t.shadowRoot.activeElement}}shadowEventTarget(t){return t.composedPath()[0]||t.target}shadowContains(t){for(;;){if(t===this.hostElement)return!0;if(!t)return!1;t=t.parentNode||t.host}}originatesInSlots(t){const s=this.hostElement.querySelectorAll("slot");for(let i=0;i<s.length;i++){const e=s[i],h=e&&e.assignedNodes&&e.assignedNodes()||this.hostElement.childNodes;for(let s=0;s<h.length;s++)if(h[s].contains(t))return!0}return!1}get hostElement(){return i(this)}};export{e as click_elsewhere}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as i}from"./p-
|
|
1
|
+
import{r as o,h as i}from"./p-b5ebb4cb.js";const n=class{constructor(i){o(this,i)}render(){return i("div",{id:`tab-pane-${this.guid}-${this.index}`,class:"tab-pane"+(this.selected?"":" hidden"),role:"tabpanel",tabindex:"-1","aria-expanded":""+!!this.selected,"aria-hidden":""+!this.selected,"aria-labelledby":`tab-${this.guid}-${this.index}`},i("slot",null))}};n.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.tab-pane[aria-hidden='true']{display:none}.tab-pane:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}";export{n as q2_tab_pane}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e="q2-tecton-elements";let t,n,l,o=!1,s=!1,c=!1,i=!1,r=!1;const a="undefined"!=typeof window?window:{},f=a.CSS,u=a.document||{head:{}},d={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},p=(()=>(u.head.attachShadow+"").indexOf("[native")>-1)(),$=e=>Promise.resolve(e),b=(()=>{try{return new CSSStyleSheet,!0}catch(e){}return!1})(),m=(e,t,n)=>{n&&n.map(([n,l,o])=>{const s=h(e,n),c=w(t,o),i=y(n);d.ael(s,l,c,i),(t.o=t.o||[]).push(()=>d.rel(s,l,c,i))})},w=(e,t)=>n=>{256&e.t?e.s[t](n):(e.i=e.i||[]).push([t,n])},h=(e,t)=>8&t?a:e,y=e=>0!=(2&e),g="http://www.w3.org/1999/xlink",v=new WeakMap,_=e=>"sc-"+e.u,j={},k=e=>"object"==(e=typeof e)||"function"===e,O="undefined"!=typeof Deno,S=!(O||"undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),C=(O&&Deno,S?process:O&&Deno,S?process:O&&Deno,(e,t,...n)=>{let l=null,o=null,s=!1,c=!1,i=[];const r=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!k(l))&&(l+=""),s&&c?i[i.length-1].p+=l:i.push(s?M(null,l):l),c=s)};if(r(n),t){t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}const a=M(e,null);return a.$=t,i.length>0&&(a.m=i),a.h=o,a}),M=(e,t)=>({t:0,g:e,p:t,v:null,m:null,$:null,h:null}),R={},q=(e,t,n,l,o,s)=>{if(n!==l){let i=de(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,o=D(n),s=D(l);t.remove(...o.filter(e=>e&&!s.includes(e))),t.add(...s.filter(e=>e&&!o.includes(e)))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if(i||"o"!==t[0]||"n"!==t[1]){const a=k(l);if((i||a&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(c){}let f=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(g,t):e.removeAttribute(t)):(!i||4&s||o)&&!a&&(l=!0===l?"":l,f?e.setAttributeNS(g,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):de(a,r)?r.slice(2):r[2]+t.slice(3),n&&d.rel(e,t,n,!1),l&&d.ael(e,t,l,!1)}},x=/\s/,D=e=>e?e.split(x):[],T=(e,t,n,l)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,s=e&&e.$||j,c=t.$||j;for(l in s)l in c||q(o,l,s[l],void 0,n,t.t);for(l in c)q(o,l,s[l],c[l],n,t.t)},L=(e,s,r,a)=>{let f,d,p,$=s.m[r],b=0;if(o||(c=!0,"slot"===$.g&&(t&&a.classList.add(t+"-s"),$.t|=$.m?2:1)),null!==$.p)f=$.v=u.createTextNode($.p);else if(1&$.t)f=$.v=u.createTextNode("");else{if(i||(i="svg"===$.g),f=$.v=u.createElementNS(i?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&$.t?"slot-fb":$.g),i&&"foreignObject"===$.g&&(i=!1),T(null,$,i),null!=t&&f["s-si"]!==t&&f.classList.add(f["s-si"]=t),$.m)for(b=0;b<$.m.length;++b)d=L(e,$,b,f),d&&f.appendChild(d);"svg"===$.g?i=!1:"foreignObject"===f.tagName&&(i=!0)}return f["s-hn"]=l,3&$.t&&(f["s-sr"]=!0,f["s-cr"]=n,f["s-sn"]=$.h||"",p=e&&e.m&&e.m[r],p&&p.g===$.g&&e.v&&P(e.v,!1)),f},P=(e,t)=>{d.t|=1;const n=e.childNodes;for(let o=n.length-1;o>=0;o--){const e=n[o];e["s-hn"]!==l&&e["s-ol"]&&(A(e).insertBefore(e,W(e)),e["s-ol"].remove(),e["s-ol"]=void 0,c=!0),t&&P(e,t)}d.t&=-2},E=(e,t,n,o,s,c)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===l&&(r=r.shadowRoot);s<=c;++s)o[s]&&(i=L(null,n,s,e),i&&(o[s].v=i,r.insertBefore(i,W(t))))},N=(e,t,n,l,o)=>{for(;t<=n;++t)(l=e[t])&&(s=!0,(o=l.v)["s-ol"]?o["s-ol"].remove():P(o,!0),o.remove())},U=(e,t)=>e.g===t.g&&("slot"!==e.g||e.h===t.h),W=e=>e&&e["s-ol"]||e,A=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,F=(e,t)=>{const n=t.v=e.v,l=e.m,o=t.m,s=t.g,c=t.p;let r;null===c?(i="svg"===s||"foreignObject"!==s&&i,"slot"===s||T(e,t,i),null!==l&&null!==o?((e,t,n,l)=>{let o,s=0,c=0,i=t.length-1,r=t[0],a=t[i],f=l.length-1,u=l[0],d=l[f];for(;s<=i&&c<=f;)null==r?r=t[++s]:null==a?a=t[--i]:null==u?u=l[++c]:null==d?d=l[--f]:U(r,u)?(F(r,u),r=t[++s],u=l[++c]):U(a,d)?(F(a,d),a=t[--i],d=l[--f]):U(r,d)?("slot"!==r.g&&"slot"!==d.g||P(r.v.parentNode,!1),F(r,d),e.insertBefore(r.v,a.v.nextSibling),r=t[++s],d=l[--f]):U(a,u)?("slot"!==r.g&&"slot"!==d.g||P(a.v.parentNode,!1),F(a,u),e.insertBefore(a.v,r.v),a=t[--i],u=l[++c]):(o=L(t&&t[c],n,c,e),u=l[++c],o&&A(r.v).insertBefore(o,W(r.v)));s>i?E(e,null==l[f+1]?null:l[f+1].v,n,l,c,f):c>f&&N(t,s,i)})(n,l,t,o):null!==o?(null!==e.p&&(n.textContent=""),E(n,null,t,o,0,o.length-1)):null!==l&&N(l,0,l.length-1),i&&"svg"===s&&(i=!1)):(r=n["s-cr"])?r.parentNode.textContent=c:e.p!==c&&(n.data=c)},H=e=>{let t,n,l,o,s,c,i=e.childNodes;for(n=0,l=i.length;n<l;n++)if(t=i[n],1===t.nodeType){if(t["s-sr"])for(s=t["s-sn"],t.hidden=!1,o=0;o<l;o++)if(i[o]["s-hn"]!==t["s-hn"])if(c=i[o].nodeType,""!==s){if(1===c&&s===i[o].getAttribute("slot")){t.hidden=!0;break}}else if(1===c||3===c&&""!==i[o].textContent.trim()){t.hidden=!0;break}H(t)}},V=[],z=e=>{let t,n,l,o,c,i,r=0,a=e.childNodes,f=a.length;for(;r<f;r++){if(t=a[r],t["s-sr"]&&(n=t["s-cr"]))for(l=n.parentNode.childNodes,o=t["s-sn"],i=l.length-1;i>=0;i--)n=l[i],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(B(n,o)?(c=V.find(e=>e._===n),s=!0,n["s-sn"]=n["s-sn"]||o,c?c.j=t:V.push({j:t,_:n}),n["s-sr"]&&V.map(e=>{B(e._,n["s-sn"])&&(c=V.find(e=>e._===n),c&&!e.j&&(e.j=c.j))})):V.some(e=>e._===n)||V.push({_:n}));1===t.nodeType&&z(t)}},B=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,G=e=>ae(e).k,I=(e,t,n)=>{const l=G(e);return{emit:e=>J(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},J=(e,t,n)=>{const l=d.ce(t,n);return e.dispatchEvent(l),l},K=(e,t)=>{t&&!e.O&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.O=t))},Q=(e,t)=>{if(e.t|=16,!(4&e.t))return K(e,e.S),je(()=>X(e,t));e.t|=512},X=(e,t)=>{const n=e.s;let l;return t&&(e.t|=256,e.i&&(e.i.map(([e,t])=>ne(n,e,t)),e.i=null),l=ne(n,"componentWillLoad")),le(l,()=>Y(e,n,t))},Y=(e,i,r)=>{const a=e.k,f=a["s-rc"];r&&(e=>{const t=e.C,n=e.k,l=t.t,o=((e,t)=>{let n=_(t),l=me.get(n);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let t,o=v.get(e=e.head||e);o||v.set(e,o=new Set),o.has(n)||(t=u.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(p&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);((e,i)=>{const r=e.k,a=e.C,f=e.M||M(null,null),$=(e=>e&&e.g===R)(i)?i:C(null,null,i);if(l=r.tagName,a.R&&($.$=$.$||{},a.R.map(([e,t])=>$.$[t]=r[e])),$.g=null,$.t|=4,e.M=$,$.v=f.v=r.shadowRoot||r,t=r["s-sc"],n=r["s-cr"],o=p&&0!=(1&a.t),s=!1,F(f,$),d.t|=1,c){let e,t,n,l,o,s;z($.v);let c=0;for(;c<V.length;c++)e=V[c],t=e._,t["s-ol"]||(n=u.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(c=0;c<V.length;c++)if(e=V[c],t=e._,e.j){for(l=e.j.parentNode,o=e.j.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}s&&H($.v),d.t&=-2,V.length=0})(e,Z(e,i)),f&&(f.map(e=>e()),a["s-rc"]=void 0);{const t=a["s-p"],n=()=>ee(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},Z=(e,t)=>{try{t=t.render&&t.render(),e.t&=-17,e.t|=2}catch(n){pe(n)}return t},ee=e=>{const t=e.k,n=e.s,l=e.S;ne(n,"componentDidRender"),64&e.t||(e.t|=64,oe(t),ne(n,"componentDidLoad"),e.q(t),l||te()),e.O&&(e.O(),e.O=void 0),512&e.t&&_e(()=>Q(e,!1)),e.t&=-517},te=()=>{oe(u.documentElement),_e(()=>J(a,"appload",{detail:{namespace:"q2-tecton-elements"}}))},ne=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(l){pe(l)}},le=(e,t)=>e&&e.then?e.then(t):t(),oe=e=>e.setAttribute("stencil-hydrated",""),se=(e,t,n)=>{if(t.D){e.watchers&&(t.T=e.watchers);const l=Object.entries(t.D),o=e.prototype;if(l.map(([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,e,{get(){return((e,t)=>ae(this).L.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=ae(e),s=o.L.get(t),c=o.t,i=o.s;if(n=((e,t)=>null==e||k(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.D[t][0]),!(8&c&&void 0!==s||n===s)&&(o.L.set(t,n),i)){if(l.T&&128&c){const e=l.T[t];e&&e.map(e=>{try{i[e](n,s,t)}catch(l){pe(l)}})}2==(18&c)&&Q(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})}),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){d.jmp(()=>{const t=n.get(e);this[t]=(null!==l||"boolean"!=typeof this[t])&&l})},e.observedAttributes=l.filter(([e,t])=>15&t[0]).map(([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.R.push([e,o]),o})}}return e},ce=e=>{ne(e,"connectedCallback")},ie=(e,t={})=>{const n=[],l=t.exclude||[],o=a.customElements,s=u.head,c=s.querySelector("meta[charset]"),i=u.createElement("style"),r=[];let f,$=!0;Object.assign(d,t),d.l=new URL(t.resourcesUrl||"./",u.baseURI).href,e.map(e=>e[1].map(t=>{const s={t:t[0],u:t[1],D:t[2],P:t[3]};s.D=t[2],s.P=t[3],s.R=[],s.T={},!p&&1&s.t&&(s.t|=8);const c=s.u,i=class extends HTMLElement{constructor(e){super(e),ue(e=this,s),1&s.t&&(p?e.attachShadow({mode:"open"}):"shadowRoot"in e||(e.shadowRoot=e))}connectedCallback(){f&&(clearTimeout(f),f=null),$?r.push(this):d.jmp(()=>(e=>{if(0==(1&d.t)){const t=ae(e),n=t.C,l=()=>{};if(1&t.t)m(e,t,n.P),ce(t.s);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=u.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){K(t,t.S=n);break}}n.D&&Object.entries(n.D).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),_e(()=>(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=be(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.T=o.watchers,se(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(i){pe(i)}t.t&=-9,t.t|=128,e(),ce(t.s)}if(o.style){let e=o.style;const t=_(n);if(!me.has(t)){const l=()=>{};8&n.t&&(e=await __sc_import_q2_tecton_elements("./p-b5961b8f.js").then(n=>n.scopeCss(e,t,!1))),((e,t,n)=>{let l=me.get(e);b&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,me.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.S,c=()=>Q(t,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,t,n))}l()}})(this))}disconnectedCallback(){d.jmp(()=>(()=>{if(0==(1&d.t)){const e=ae(this),t=e.s;e.o&&(e.o.map(e=>e()),e.o=void 0),ne(t,"disconnectedCallback")}})())}forceUpdate(){(()=>{{const e=ae(this);e.k.isConnected&&2==(18&e.t)&&Q(e,!1)}})()}componentOnReady(){return ae(this).N}};s.U=e[0],l.includes(c)||o.get(c)||(n.push(c),o.define(c,se(i,s,1)))})),i.innerHTML=n+"{visibility:hidden}[stencil-hydrated]{visibility:inherit}",i.setAttribute("data-styles",""),s.insertBefore(i,c?c.nextSibling:s.firstChild),$=!1,r.length?r.map(e=>e.connectedCallback()):d.jmp(()=>f=setTimeout(te,30))},re=new WeakMap,ae=e=>re.get(e),fe=(e,t)=>re.set(t.s=e,t),ue=(e,t)=>{const n={t:0,k:e,C:t,L:new Map};return n.N=new Promise(e=>n.q=e),e["s-p"]=[],e["s-rc"]=[],m(e,n,t.P),re.set(e,n)},de=(e,t)=>t in e,pe=e=>console.error(e),$e=new Map,be=e=>{const t=e.u.replace(/-/g,"_"),n=e.U,l=$e.get(n);return l?l[t]:__sc_import_q2_tecton_elements(`./${n}.entry.js`).then(e=>($e.set(n,e),e[t]),pe)},me=new Map,we=[],he=[],ye=(e,t)=>n=>{e.push(n),r||(r=!0,t&&4&d.t?_e(ve):d.raf(ve))},ge=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){pe(t)}e.length=0},ve=()=>{ge(we),ge(he),(r=we.length>0)&&d.raf(ve)},_e=e=>$().then(e),je=ye(he,!0);export{f as C,R as H,e as N,$ as a,ie as b,I as c,u as d,G as g,C as h,d as p,fe as r,a as w}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2b69fdec.system.js"],(function(t){"use strict";var a,r,e;return{setters:[function(t){a=t.r;r=t.h;e=t.g}],execute:function(){var i="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.avatar-img{-o-object-fit:cover;object-fit:cover;height:var(--tct-avatar-img-height, 44px);width:var(--tct-avatar-img-width, 44px);border-radius:var(--tct-avatar-img-br, 50%)}.avatar-initials{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:var(--tct-avatar-height, 44px);width:var(--tct-avatar-width, 44px);background-color:var(--tct-avatar-bg,#9e9e9e);color:var(--tct-avatar-color, #ffffff);font-size:var(--tct-avatar-font-size, 20px);font-weight:var(--tct-avatar-font-weight, 200);border-radius:var(--tct-avatar-br, 50%)}.fallback{height:var(--tct-avatar-fallback-height, 44px);width:var(--tct-avatar-fallback-width, 44px);border-radius:var(--tct-avatar-fallback-br, 50%)}";var o=t("q2_avatar",function(){function t(t){var r=this;a(this,t);this.badSrc=false;this.onError=function(){r.badSrc=true}}t.prototype.srcDidUpdate=function(){this.badSrc=false};t.prototype.getInitials=function(t){var a=t.split(" ");var r=a[0][0];var e=a[a.length-1][0];var i=(""+r+e).toUpperCase();return i};t.prototype.render=function(){return r("div",null,this.src&&!this.badSrc?r("img",{class:"avatar-img","test-id":"userImage",src:this.src,onError:this.onError}):"",this.name&&(!this.src||this.badSrc)?r("div",{"test-id":"userInitials",class:"avatar-initials"},this.getInitials(this.name)):"",!this.name&&(!this.src||this.badSrc)?r("img",{"test-id":"fallbackImage",class:"fallback",src:"https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png"}):"")};Object.defineProperty(t.prototype,"el",{get:function(){return e(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{src:["srcDidUpdate"]}},enumerable:false,configurable:true});return t}());o.style=i}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as i}from"./p-
|
|
1
|
+
import{r as o,h as i}from"./p-b5ebb4cb.js";const n=class{constructor(i){o(this,i)}loc(o,i){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(o,i):o}render(){return i("span",null,this.value&&this.loc(this.value,this.substitutions)||"")}};n.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{display:inline}";export{n as q2_loc}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2b69fdec.system.js"],(function(e){"use strict";var t,r,n,o;return{setters:[function(e){t=e.r;r=e.h;n=e.H;o=e.g}],execute:function(){var a="q2-carousel .swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition:all .2s;transition:all .2s}.q2-carousel-pane .q2-carousel-pane-main-content{-webkit-box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.25);box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.25);background-color:var(---tct-carousel-background-color, var(--tct-white, var(--app-white, #ffffff)));border:var(--tct-carousel-pane-border-width, 1px) solid var(--tct-carousel-pane-border-color, var(--tct-gray-11, var(--app-gray-11, var(--tct-gray-l1, var(--app-gray-l1,#cccccc)))));border-radius:var(--tct-carousel-pane-border-radius, 8px);padding:var(--tct-carousel-pane-padding, .5rem .5rem .5rem .5rem);min-height:10em}q2-carousel-pane.q2-carousel-pane:focus{-webkit-box-shadow:none;box-shadow:none}.q2-carousel-pane:focus .q2-carousel-pane-main-content{outline:none;-webkit-box-shadow:0 0 0 2px #33B4FF;box-shadow:0 0 0 2px #33B4FF;}.q2-carousel-pane .q2-carousel-pane-main-content:hover{cursor:-webkit-grab;cursor:grab}";var s=e("q2_carousel_pane",function(){function e(e){t(this,e);this.generatePaneClass=function(e){return"q2-carousel-pane swiper-slide q2-carousel-pane-"+e}}Object.defineProperty(e.prototype,"currentPaneIndex",{get:function(){return Array.prototype.indexOf.call(this.hostElement.parentElement.children,this.hostElement)},enumerable:false,configurable:true});e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};e.prototype.render=function(){return r(n,{class:this.generatePaneClass(this.currentPaneIndex),tabIndex:"0","aria-hidden":this.hideFromScreenReader,"aria-label":this.label},r("article",{class:"q2-carousel-pane-main-content"},r("slot",null),r("span",{class:"sr-only item-count"},this.loc("tecton.element.carousel.itemDescription",[(this.currentPaneIndex+1).toString()]),this.loc("tecton.element.carousel.collectionDescription",[(this.siblingCount||0).toString()]))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());s.style=a}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as i}from"./p-
|
|
1
|
+
import{r as e,h as i}from"./p-b5ebb4cb.js";import{s as t}from"./p-5f9033b7.js";const r=class{constructor(t){e(this,t),this.halfCircleSpinner=()=>i("div",{class:"q2-loading-animation half-circle-spinner","aria-label":this.localizedAriaLabel},i("div",{class:"circle circle-1"}),i("div",{class:"circle circle-2"})),this.spinner=()=>this.halfCircleSpinner(),this.skeletonLoader=()=>i("div",{class:"q2-loading-skeleton","aria-label":this.localizedAriaLabel},"custom"===this.shape?i("slot",null):this.skeletonShape,i("div",{class:"q2-loading-skeleton-shimmer"}))}get loader(){const e={default:this.spinner,spinner:this.spinner,skeleton:this.skeletonLoader};return e[this.type]||e.default}get modifiersSet(){if("skeleton"===this.type&&this.modifiers)return new Set(this.modifiers.split("-"))}get countsArray(){if("skeleton"===this.type&&this.counts)return this.counts.split("x").map(Number)}get skeletonShape(){var e,i;return null!==(i=null===(e=t[this.shape])||void 0===e?void 0:e.call(t,this.countsArray,this.modifiersSet))&&void 0!==i?i:""}get spinnerShape(){const e={default:this.halfCircleSpinner,"half-circle":this.halfCircleSpinner};return e[this.type]||e.default}get localizedAriaLabel(){return this.loc(this.ariaLabel||"tecton.element.loading.ariaLabel")}loc(e,i){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,i):e}render(){return this.loader()}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.flex{display:-ms-flexbox;display:flex}.flex-center{-ms-flex-pack:center;justify-content:center}.flex-left{-ms-flex-pack:start;justify-content:flex-start}.flex-right{-ms-flex-pack:end;justify-content:flex-end}.flex-v-center{-ms-flex-align:center;align-items:center}.no-margin{margin:0}:host{display:block}:host([inline]),:host([modifiers*='inline']){display:inline-block}:host([hidden]){display:none}:host(:not([inline]):not([modifiers*='inline'])){font-size:var(--tct-loading-spinner-size, var(--tct-scale-5, var(--app-scale-5, 60px)))}.q2-loading-animation{height:1em;width:1em}.half-circle-spinner,.half-circle-spinner *{-webkit-box-sizing:border-box;box-sizing:border-box}.half-circle-spinner{border-radius:100%;position:relative}.half-circle-spinner .circle{position:absolute;width:100%;height:100%;border-radius:100%;border:calc(1em / 12) solid transparent}.half-circle-spinner .circle.circle-1{border-top-color:var(--tct-loading-primary-color, var(--t-loading-primary-color, #2e2e2e));-webkit-animation:half-circle-spinner-animation 1s infinite;animation:half-circle-spinner-animation 1s infinite}.half-circle-spinner .circle.circle-2{border-bottom-color:var(\n --tct-loading-secondary-color,\n var(--t-loading-secondary-color, #cccccc)\n );-webkit-animation:half-circle-spinner-animation 1s infinite alternate;animation:half-circle-spinner-animation 1s infinite alternate}@-webkit-keyframes half-circle-spinner-animation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes half-circle-spinner-animation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.q2-loading-skeleton{position:relative;width:100%;height:100%;overflow:hidden;--q2-loading-skeleton-shimmer-color:var(--tct-loading-skeleton-shimmer-color, rgba(255, 255, 255, 0.5));--q2-loading-skeleton-vertical-gap:var(--tct-loading-skeleton-vertical-gap, var(--tct-scale-2, 10px));--q2-loading-skeleton-horizontal-gap:var(--tct-loading-skeleton-horizontal-gap, var(--tct-scale-2, 10px))}.q2-loading-skeleton-shimmer{position:absolute;width:1rem;height:100%;top:0;left:-100px;-webkit-animation:skeletonShimmer 3s ease-in-out infinite;animation:skeletonShimmer 3s ease-in-out infinite;background-color:var(--q2-loading-skeleton-shimmer-color);-webkit-box-shadow:0 0 25px 20px var(--q2-loading-skeleton-shimmer-color);box-shadow:0 0 25px 20px var(--q2-loading-skeleton-shimmer-color);-webkit-transform:rotate(10deg);transform:rotate(10deg)}.skeleton-shape:not(.no-margin){margin:var(--tct-loading-skeleton-vertical-gap, var(--tct-scale-2, 10px))\n var(--tct-loading-skeleton-horizontal-gap, var(--tct-scale-2, 10px))}.skeleton-shape.circle,.skeleton-shape.rectangle{background-color:var(--tct-loading-skeleton-element-bg, var(--tct-gray-l3, #f2f2f2))}.skeleton-shape.circle{border-radius:50%}.flex .rectangle{-ms-flex-positive:1;flex-grow:1}.skeleton-table-row .rectangle{margin:var(--q2-loading-skeleton-vertical-gap) var(--q2-loading-skeleton-horizontal-gap)}.skeleton-table-row .rectangle:not(:first-child):not(:last-child){-ms-flex-positive:2;flex-grow:2}.skeleton-table-row-border .skeleton-shape{margin:0 var(--q2-loading-skeleton-horizontal-gap)}.form{-ms-flex-wrap:wrap;flex-wrap:wrap}.form .field{margin:var(--q2-loading-skeleton-vertical-gap) 0}.form.columns-1 .field{-ms-flex-preferred-size:100%;flex-basis:100%}.form.columns-2 .field{-ms-flex-preferred-size:50%;flex-basis:50%}.form.columns-3 .field{-ms-flex-preferred-size:33.3333%;flex-basis:33.3333%}.form.columns-4 .field{-ms-flex-preferred-size:25%;flex-basis:25%}.form.columns-5 .field{-ms-flex-preferred-size:20%;flex-basis:20%}.text .rectangle{margin-bottom:0}.text .header.center{margin:0 auto}.text .header.right{margin-left:auto}.text .header{height:1.5rem}.text .header.smaller{height:1rem}.detailed-item{-ms-flex-wrap:wrap;flex-wrap:wrap}.detailed-item.right{-ms-flex-flow:row-reverse;flex-flow:row-reverse}.detailed-item-image{-ms-flex:0 0 auto;flex:0 0 auto;display:-ms-inline-flexbox;display:inline-flex}.center .detailed-item-image{-ms-flex-preferred-size:100%;flex-basis:100%;display:-ms-flexbox;display:flex}.detailed-item-image .rectangle{-ms-flex-positive:0;flex-grow:0}.detailed-item-text>div{width:100%}.detailed-item-text{-ms-flex:1 1 auto;flex:1 1 auto}.detailed-item-text .text{margin-top:0;margin-bottom:0}.label-value{-ms-flex-wrap:wrap;flex-wrap:wrap}.label-value .rectangle{-ms-flex-preferred-size:calc(50% - 2 * var(--q2-loading-skeleton-horizontal-gap));flex-basis:calc(50% - 2 * var(--q2-loading-skeleton-horizontal-gap))}@-webkit-keyframes skeletonShimmer{0%{left:-100px;opacity:1}70%{opacity:1}100%{left:800px;opacity:0}}@keyframes skeletonShimmer{0%{left:-100px;opacity:1}70%{opacity:1}100%{left:800px;opacity:0}}";export{r as q2_loading}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,g as i}from"./p-b5ebb4cb.js";const o=class{constructor(e){t(this,e),this._showForm=this.showForm,this.onIFrameLoad=t=>{const e=t.target;e.contentWindow&&e.contentWindow.postMessage(`[iFrameSizer]${this.moduleId}:0:false:false:32:true:true:null:documentElementOffset`,"*")}}get iframeTitle(){return this.moduleId.split(".").slice(-2).join("-")}componentDidRender(){const t=this.hostElement.shadowRoot.querySelector("form");t&&t.parentElement&&(t.submit(),this._showForm=!1)}selectedObserver(){this._showForm=this.showForm}render(){return e("div",{id:`tab-pane-${this.guid}-${this.index}`,class:"tab-pane"+(this.selected?"":" hidden"),role:"tabpanel",tabindex:"-1","aria-expanded":""+!!this.selected,"aria-hidden":""+!this.selected,"aria-labelledby":`tab-${this.guid}-${this.index}`},this.selected&&void 0!==this.provided&&!this.provided&&e("div",null,e("slot",{name:"loading-wrapper"}),e("iframe",{hidden:!0,name:this.moduleId,scrolling:"no",src:this.showForm&&this.authPayload.length?"":this.url||"","data-module-id":this.moduleId,style:this.minHeight?{minHeight:this.minHeight}:null,onLoad:this.onIFrameLoad,title:this.iframeTitle,allow:"geolocation; camera"}),this._showForm&&this.authPayload?e("form",{hidden:!0,method:"post",action:this.url,target:this.moduleId,encType:"multipart/form-data"},this.authPayload.map(t=>e("input",{type:"hidden",value:t.value,name:t.key}))):""),e("div",{class:"slot-wrapper",hidden:this.selected&&void 0!==this.provided&&!this.provided},e("slot",null)))}get hostElement(){return i(this)}static get watchers(){return{selected:["selectedObserver"]}}};o.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.tab-pane[aria-hidden='true']{display:none}.tab-pane:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}.loading-wrapper{height:44px;width:100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.loading-wrapper:not([hidden]){display:-ms-flexbox;display:flex}iframe{width:100%;height:auto;overflow-y:hidden;border:none}iframe:not([hidden]){display:inline-block}.slot-wrapper:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}";export{o as tecton_tab_pane}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2b69fdec.system.js","./p-4576db15.system.js"],(function(t){"use strict";var e,o,n,r,i;return{setters:[function(t){e=t.r;o=t.c;n=t.h;r=t.g},function(t){i=t.c}],execute:function(){var a="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{margin-top:var(--tct-scale-2, var(--app-scale-2, 10px))}fieldset{padding:var(--tct-input-error-padding, 0);margin:0;border:0}fieldset.has-error{border-color:var(--tct-input-error-border-color, var(--const-stoplight-alert, #c30000));border-width:1px;border-style:solid;border-radius:var(--tct-border-radius-1, var(--app-border-radius-1, 2px));position:relative}fieldset.has-error .error-icon-container{top:8px;right:8px;position:absolute;width:40%;text-align:right;background:-webkit-gradient(linear, left top, right top, from(transparent), to(white));background:linear-gradient(to right, transparent, white)}fieldset.has-error legend+div.error-icon-container.no-label{top:28px}.group-legend{font-weight:600}legend.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0}.optional-tag{margin-left:var(\n --tct-input-label-optional-margin-left,\n var(--tct-scale-1, var(--app-scale-1, 5px))\n );color:var(\n --tct-input-label-optional-font-color,\n var(--tct-a11y-color, var(--t-a11y-gray-color, var(--tct-gray-7, var(--app-gray-7, var(--tct-gray-d1, var(--app-gray-d1, #666666))))))\n );font-size:var(--tct-input-label-optional-font-size, 12px);font-weight:var(--tct-input-label-optional-font-weight, 400)}.flexed{margin:0;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flexed.left{-ms-flex-pack:left;justify-content:left}";var s=t("q2_checkbox_group",function(){function t(t){var n=this;e(this,t);this.change=o(this,"change",7);this.disabled=false;this.optional=false;this.hasError=false;this.id="checkbox-group-"+i();this.onMutationObserved=function(){n.valueUpdated();n.disabledUpdated()};this.onInnerCheckboxChange=function(t){t.stopImmediatePropagation();var e={};n.checkboxElements.forEach((function(t){e[t.value]=!!t.checked}));n.change.emit(e)}}t.prototype.loc=function(t,e){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(t,e):t};Object.defineProperty(t.prototype,"checkboxElements",{get:function(){return Array.from(this.hostElement.querySelectorAll("q2-checkbox"))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"protectedValue",{get:function(){return this.value||{}},enumerable:false,configurable:true});t.prototype.componentDidLoad=function(){var t=new MutationObserver(this.onMutationObserved);t.observe(this.hostElement,{childList:true});this.mutationObserver=t;this.onMutationObserved()};t.prototype.disconnectedCallback=function(){if(this.mutationObserver){this.mutationObserver.disconnect();this.mutationObserver=null}};t.prototype.valueUpdated=function(){var t=this;this.checkboxElements.forEach((function(e){if(t.protectedValue.hasOwnProperty(e.value)){e.checked=t.value[e.value]}}))};t.prototype.disabledUpdated=function(){var t=this;this.checkboxElements.forEach((function(e){e.groupDisabled=t.disabled}))};t.prototype.onHostElementChange=function(t){if(t.target===this.hostElement&&!this.hostElement.onchange){this.value=t.detail}};t.prototype.render=function(){return n("div",null,this.label||this.optional?n("div",{class:"group-legend"},this.label&&this.loc(this.label),this.optional?n("span",{class:"optional-tag"},this.loc("tecton.element.input.optional")):""):"",n("fieldset",{class:"q2-checkbox-fieldset "+(this.hasError?"has-error":""),onChange:this.onInnerCheckboxChange,"aria-required":""+!this.optional},this.label||this.optional?n("legend",{class:"sr-only"},this.label&&this.loc(this.label),this.optional?n("span",{class:"optional-tag"},this.loc("tecton.element.input.optional")):""):"",this.hasError?n("div",{class:"error-icon-container "+(this.label||this.optional?"":"no-label")},n("q2-icon",{class:"h(4) w(4) mrg-b(2)",type:"error"})):"",this.inputDom()))};t.prototype.inputDom=function(){return n("slot",null)};Object.defineProperty(t.prototype,"hostElement",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueUpdated"],disabled:["disabledUpdated"]}},enumerable:false,configurable:true});return t}());s.style=a}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2b69fdec.system.js","./p-46e098a0.system.js"],(function(e){"use strict";var t,i,r;return{setters:[function(e){t=e.r;i=e.h},function(e){r=e.s}],execute:function(){var n="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.flex{display:-ms-flexbox;display:flex}.flex-center{-ms-flex-pack:center;justify-content:center}.flex-left{-ms-flex-pack:start;justify-content:flex-start}.flex-right{-ms-flex-pack:end;justify-content:flex-end}.flex-v-center{-ms-flex-align:center;align-items:center}.no-margin{margin:0}:host{display:block}:host([inline]),:host([modifiers*='inline']){display:inline-block}:host([hidden]){display:none}:host(:not([inline]):not([modifiers*='inline'])){font-size:var(--tct-loading-spinner-size, var(--tct-scale-5, var(--app-scale-5, 60px)))}.q2-loading-animation{height:1em;width:1em}.half-circle-spinner,.half-circle-spinner *{-webkit-box-sizing:border-box;box-sizing:border-box}.half-circle-spinner{border-radius:100%;position:relative}.half-circle-spinner .circle{position:absolute;width:100%;height:100%;border-radius:100%;border:calc(1em / 12) solid transparent}.half-circle-spinner .circle.circle-1{border-top-color:var(--tct-loading-primary-color, var(--t-loading-primary-color, #2e2e2e));-webkit-animation:half-circle-spinner-animation 1s infinite;animation:half-circle-spinner-animation 1s infinite}.half-circle-spinner .circle.circle-2{border-bottom-color:var(\n --tct-loading-secondary-color,\n var(--t-loading-secondary-color, #cccccc)\n );-webkit-animation:half-circle-spinner-animation 1s infinite alternate;animation:half-circle-spinner-animation 1s infinite alternate}@-webkit-keyframes half-circle-spinner-animation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes half-circle-spinner-animation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.q2-loading-skeleton{position:relative;width:100%;height:100%;overflow:hidden;--q2-loading-skeleton-shimmer-color:var(--tct-loading-skeleton-shimmer-color, rgba(255, 255, 255, 0.5));--q2-loading-skeleton-vertical-gap:var(--tct-loading-skeleton-vertical-gap, var(--tct-scale-2, 10px));--q2-loading-skeleton-horizontal-gap:var(--tct-loading-skeleton-horizontal-gap, var(--tct-scale-2, 10px))}.q2-loading-skeleton-shimmer{position:absolute;width:1rem;height:100%;top:0;left:-100px;-webkit-animation:skeletonShimmer 3s ease-in-out infinite;animation:skeletonShimmer 3s ease-in-out infinite;background-color:var(--q2-loading-skeleton-shimmer-color);-webkit-box-shadow:0 0 25px 20px var(--q2-loading-skeleton-shimmer-color);box-shadow:0 0 25px 20px var(--q2-loading-skeleton-shimmer-color);-webkit-transform:rotate(10deg);transform:rotate(10deg)}.skeleton-shape:not(.no-margin){margin:var(--tct-loading-skeleton-vertical-gap, var(--tct-scale-2, 10px))\n var(--tct-loading-skeleton-horizontal-gap, var(--tct-scale-2, 10px))}.skeleton-shape.circle,.skeleton-shape.rectangle{background-color:var(--tct-loading-skeleton-element-bg, var(--tct-gray-l3, #f2f2f2))}.skeleton-shape.circle{border-radius:50%}.flex .rectangle{-ms-flex-positive:1;flex-grow:1}.skeleton-table-row .rectangle{margin:var(--q2-loading-skeleton-vertical-gap) var(--q2-loading-skeleton-horizontal-gap)}.skeleton-table-row .rectangle:not(:first-child):not(:last-child){-ms-flex-positive:2;flex-grow:2}.skeleton-table-row-border .skeleton-shape{margin:0 var(--q2-loading-skeleton-horizontal-gap)}.form{-ms-flex-wrap:wrap;flex-wrap:wrap}.form .field{margin:var(--q2-loading-skeleton-vertical-gap) 0}.form.columns-1 .field{-ms-flex-preferred-size:100%;flex-basis:100%}.form.columns-2 .field{-ms-flex-preferred-size:50%;flex-basis:50%}.form.columns-3 .field{-ms-flex-preferred-size:33.3333%;flex-basis:33.3333%}.form.columns-4 .field{-ms-flex-preferred-size:25%;flex-basis:25%}.form.columns-5 .field{-ms-flex-preferred-size:20%;flex-basis:20%}.text .rectangle{margin-bottom:0}.text .header.center{margin:0 auto}.text .header.right{margin-left:auto}.text .header{height:1.5rem}.text .header.smaller{height:1rem}.detailed-item{-ms-flex-wrap:wrap;flex-wrap:wrap}.detailed-item.right{-ms-flex-flow:row-reverse;flex-flow:row-reverse}.detailed-item-image{-ms-flex:0 0 auto;flex:0 0 auto;display:-ms-inline-flexbox;display:inline-flex}.center .detailed-item-image{-ms-flex-preferred-size:100%;flex-basis:100%;display:-ms-flexbox;display:flex}.detailed-item-image .rectangle{-ms-flex-positive:0;flex-grow:0}.detailed-item-text>div{width:100%}.detailed-item-text{-ms-flex:1 1 auto;flex:1 1 auto}.detailed-item-text .text{margin-top:0;margin-bottom:0}.label-value{-ms-flex-wrap:wrap;flex-wrap:wrap}.label-value .rectangle{-ms-flex-preferred-size:calc(50% - 2 * var(--q2-loading-skeleton-horizontal-gap));flex-basis:calc(50% - 2 * var(--q2-loading-skeleton-horizontal-gap))}@-webkit-keyframes skeletonShimmer{0%{left:-100px;opacity:1}70%{opacity:1}100%{left:800px;opacity:0}}@keyframes skeletonShimmer{0%{left:-100px;opacity:1}70%{opacity:1}100%{left:800px;opacity:0}}";var o=e("q2_loading",function(){function e(e){var r=this;t(this,e);this.halfCircleSpinner=function(){return i("div",{class:"q2-loading-animation half-circle-spinner","aria-label":r.localizedAriaLabel},i("div",{class:"circle circle-1"}),i("div",{class:"circle circle-2"}))};this.spinner=function(){return r.halfCircleSpinner()};this.skeletonLoader=function(){return i("div",{class:"q2-loading-skeleton","aria-label":r.localizedAriaLabel},r.shape==="custom"?i("slot",null):r.skeletonShape,i("div",{class:"q2-loading-skeleton-shimmer"}))}}Object.defineProperty(e.prototype,"loader",{get:function(){var e={default:this.spinner,spinner:this.spinner,skeleton:this.skeletonLoader};return e[this.type]||e["default"]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"modifiersSet",{get:function(){if(this.type!=="skeleton"||!this.modifiers){return undefined}return new Set(this.modifiers.split("-"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"countsArray",{get:function(){if(this.type!=="skeleton"||!this.counts){return undefined}return this.counts.split("x").map(Number)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"skeletonShape",{get:function(){var e,t;return(t=(e=r[this.shape])===null||e===void 0?void 0:e.call(r,this.countsArray,this.modifiersSet))!==null&&t!==void 0?t:""},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"spinnerShape",{get:function(){var e={default:this.halfCircleSpinner,"half-circle":this.halfCircleSpinner};return e[this.type]||e["default"]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"localizedAriaLabel",{get:function(){return this.loc(this.ariaLabel||"tecton.element.loading.ariaLabel")},enumerable:false,configurable:true});e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};e.prototype.render=function(){return this.loader()};return e}());o.style=n}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2b69fdec.system.js","./p-4576db15.system.js"],(function(t){"use strict";var e,o,i,n,r;return{setters:[function(t){e=t.r;o=t.c;i=t.h;n=t.g},function(t){r=t.c}],execute:function(){var a="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{margin-top:var(--tct-scale-2, var(--app-scale-2, 10px))}fieldset{padding:0;margin:0;border:0}fieldset.has-error{border-color:var(--tct-input-error-border-color, var(--const-stoplight-alert, #c30000));border-width:1px;border-style:solid;border-radius:var(--tct-border-radius-1, var(--app-border-radius-1, 2px));position:relative}fieldset.has-error .error-icon-container{top:8px;right:8px;position:absolute;width:40%;text-align:right;background:-webkit-gradient(linear, left top, right top, from(transparent), to(white));background:linear-gradient(to right, transparent, white)}fieldset.has-error legend+div.error-icon-container.no-label{top:28px}.group-legend{font-weight:600}legend.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0}.optional-tag{margin-left:var(\n --tct-input-label-optional-margin-left,\n var(--tct-scale-1, var(--app-scale-1, 5px))\n );color:var(\n --tct-input-label-optional-font-color,\n var(--tct-a11y-color, var(--t-a11y-gray-color, #767676))\n );font-size:var(--tct-input-label-optional-font-size, 12px);font-weight:var(--tct-input-label-optional-font-weight, 400)}.flexed{margin:0;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.flexed.left{-ms-flex-pack:left;justify-content:left}";var l=t("q2_radio_group",function(){function t(t){var i=this;e(this,t);this.change=o(this,"change",7);this.disabled=false;this.tileAlignment="center";this.hasError=false;this.id="radio-group-"+r();this.onMutationObserved=function(){i.valueUpdated();i.nameUpdated();i.disabledUpdated();i.tileLayoutUpdated()};this.onInnerRadioChange=function(t){t.stopImmediatePropagation();i.change.emit({value:t.detail.value})}}t.prototype.loc=function(t,e){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(t,e):t};Object.defineProperty(t.prototype,"radioElements",{get:function(){return Array.from(this.hostElement.querySelectorAll("q2-radio"))},enumerable:false,configurable:true});t.prototype.componentDidLoad=function(){var t=new MutationObserver(this.onMutationObserved);t.observe(this.hostElement,{childList:true});this.mutationObserver=t;this.onMutationObserved()};t.prototype.valueUpdated=function(){var t=this;this.radioElements.forEach((function(e){e.checked=t.value===e.value}))};t.prototype.nameUpdated=function(){var t=this;this.radioElements.forEach((function(e){e.name=t.name||t.id}))};t.prototype.disabledUpdated=function(){var t=this;this.radioElements.forEach((function(e){e.groupDisabled=t.disabled}))};t.prototype.tileLayoutUpdated=function(){var t=this;this.radioElements.forEach((function(e){e.groupTileLayout=t.tilelayout}))};t.prototype.onHostElementChange=function(t){if(t.target===this.hostElement){if(!this.hostElement.onchange){this.value=t.detail.value}}};t.prototype.render=function(){return i("div",null,this.label||this.optional?i("div",{class:"group-legend"},this.label&&this.loc(this.label),this.optional?i("span",{class:"optional-tag"},this.loc("tecton.element.input.optional")):""):"",i("fieldset",{class:"q2-radio-fieldset "+(this.hasError?"has-error":""),onChange:this.onInnerRadioChange,"aria-required":""+!this.optional},this.label||this.optional?i("legend",{class:"sr-only"},this.label&&this.loc(this.label),this.optional?i("span",{class:"optional-tag"},this.loc("tecton.element.input.optional")):""):"",this.hasError?i("div",{class:"error-icon-container "+(this.label||this.optional?"":"no-label")},i("q2-icon",{class:"h(4) w(4) mrg-b(2)",type:"error"})):"",this.inputDom()))};t.prototype.inputDom=function(){if(this.tilelayout){return i("div",{class:this.tileAlignment==="left"?"flexed left":"flexed"},i("slot",null))}else{return i("slot",null)}};Object.defineProperty(t.prototype,"hostElement",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueUpdated"],name:["nameUpdated"],disabled:["disabledUpdated"],tilelayout:["tileLayoutUpdated"]}},enumerable:false,configurable:true});return t}());l.style=a}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,g as e}from"./p-07168e58.js";import{c as h}from"./p-1d4bf5ef.js";const o=class{constructor(s){t(this,s),this.change=i(this,"change",7),this.input=i(this,"input",7),this.selectedOptions=[],this.disabled=!1,this.multiple=!1,this.searchable=!1,this.multilineOptions=!1,this.optional=!1,this.dropdownOpen=!1,this.onlyShowingSelected=!1,this.hasCustomDisplay=!1,this.inputFocused=!1,this.scheduledAfterRender=[],this.keyStore={queue:[],lastPressedAt:new Date},this.guid=h(),this.dropdownId="q2-select-dropdown-"+this.guid,this.onMutationObserved=()=>{const t=this.hostElement.querySelector(".custom-display-content"),i=this.hostElement.shadowRoot.querySelector('slot[name="q2-select-display"]'),s=i?i.assignedNodes().length>0:t.children.length>0;if(this.hasCustomDisplay!==s&&(this.hasCustomDisplay=s),this.multiple)return void this.updateMultipleOptionAttrs();this.updateSingleOptionAttrs();const e=this.optionElements[this.activeIndex];e&&e.id===this.activeOptionId||(this.activeIndex=this.getDefaultActiveIndex(),this.setActiveOption())},this.searchAndFocus=t=>{(()=>{const i=new Date;i.getTime()-this.keyStore.lastPressedAt.getTime()>1e3&&(this.keyStore.queue=[]),1===this.keyStore.queue.length&&this.keyStore.queue[0]===t||this.keyStore.queue.push(t),this.keyStore.lastPressedAt=i})();const i=(t=>t.find(t=>!t.element.disabled&&t.element.display.replace(/\s/g,"").match(new RegExp("^"+this.keyStore.queue.join(""),"i"))))((()=>{const t=(this.activeIndex||0)+1,i=this.optionElements.map((t,i)=>({element:t,index:i}));return[...i.slice(t),...i.slice(0,t)]})());i&&(({element:t,index:i})=>{this.dropdownOpen||this.multiple?this.openDropdownWithActiveElement(i):(this.activeIndex=i,this.change.emit({value:t.value}))})(i)},this.inputClickHandler=t=>{t.stopPropagation(),this.toggleDropdown(),this.focusInput()},this.inputInputHandler=t=>{t.stopPropagation(),this.dropdownOpen||this.openDropdownWithoutActiveElement(),this.searchText=t.detail.value,this.input.emit({query:t.detail.value})},this.inputKeydownHandler=t=>{if("Enter"===t.key&&this.dropdownOpen){t.preventDefault();const i=this.hostElement.querySelector(`[option-id="${this.activeOptionId}"]`);i&&!i.disabled&&this.selectOption(i.value)}["Escape","Esc"].includes(t.key)&&(this.closeDropdown(),this.focusInput()),"Tab"===t.key&&(this.dropdownOpen&&this.searchable&&t.shiftKey?(t.preventDefault(),this.focusInput()):this.dropdownOpen&&!this.multiple&&t.preventDefault())},this.inputFocusHandler=()=>{this.inputFocused=!0},this.inputBlurHandler=()=>{this.inputFocused=!1},this.inputChangeHandler=t=>{t.stopPropagation()},this.showAllOptionTabKeyDown=t=>{"Tab"!==t.key||t.shiftKey||0!==this.selectedOptionsCount||t.preventDefault()},this.showSelectedOptionTabKeyDown=t=>{"Tab"!==t.key||t.shiftKey||t.preventDefault()},this.clickedElsewhere=t=>{"click-elsewhere"===t.target.localName&&(t.stopPropagation(),this.dropdownOpen&&this.closeDropdown())},this.showSelectedOptions=()=>{this.onlyShowingSelected=!0,this.optionElements.forEach(t=>{t._multiSelectHidden=!t.selected})},this.showAllOptions=()=>{this.onlyShowingSelected=!1,this.optionElements.forEach(t=>{t._multiSelectHidden=!1})},this.onCustomDisplayClick=t=>{t.stopPropagation(),this.focusInput(),this.toggleDropdown()}}loc(t,i){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(t,i):t}resizeIframe(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()}getDefaultActiveIndex(){const t=this.optionElements.findIndex(t=>t.selected);return t>-1?t:0}setActiveOption(){this.dropdownOpen&&this.optionElements.forEach((t,i)=>{this.activeIndex===i?(t.active=!0,this.activeOptionId=t.optionId):t.active=!1})}setFocusedOption(){const t=this.optionElements[this.activeIndex].shadowRoot.querySelector("div");t.dispatchEvent(new FocusEvent("focus")),t.focus()}calculateMultiSelectSelectedDisplay(){if(1===this.selectedOptions.length){const t=this.optionElements.find(t=>t.value===this.selectedOptions[0]);return t&&t.display&&this.loc(t.display)||t&&t.value||this.selectedOptions[0]}return this.selectedOptions.length>1?this.loc("tecton.element.select.multiDisplay",[this.selectedOptions.length]):""}calculateSingleSelectSelectedDisplay(){const t=this.optionElements.find(t=>this.value===t.value);return t&&t.display&&this.loc(t.display)||this.value||""}get selectedDisplay(){return this.hasCustomDisplay&&!this.searchText?"":this.searchable&&this.dropdownOpen?this.searchText||"":this.multiple?this.calculateMultiSelectSelectedDisplay():this.calculateSingleSelectSelectedDisplay()}get selectedOptionsCount(){return this.selectedOptions.length}get optionElements(){return Array.from(this.hostElement.querySelectorAll("q2-option"))}get wrapperClasses(){return`q2-select-container${this.dropdownOpen?" dropdown-open":""}${Array.isArray(this.errors)&&this.errors.length>0?" has-error":""}${this.inputFocused?" is-focused":""}${this.searchable?" is-searchable":""}`}updateSingleOptionAttrs(){this.optionElements.forEach((t,i)=>{t.selected=this.value===t.value,t.optionId=`q2-select-${this.guid}-option-${i}`,t.multiline=this.multilineOptions})}updateMultipleOptionAttrs(){0===this.selectedOptions.length&&(this.onlyShowingSelected=!1),this.optionElements.forEach((t,i)=>{t.selected=this.selectedOptions.includes(t.value),t._multiSelectHidden=!!this.onlyShowingSelected&&!t.selected,t.optionId=`q2-select-${this.guid}-option-${i}`,t.multiline=this.multilineOptions})}selectOption(t){if(this.multiple){const i=this.selectedOptions.includes(t);this.change.emit(i?{selectedOptions:this.selectedOptions.filter(i=>i!==t)}:{selectedOptions:[...this.selectedOptions,t]})}else this.change.emit({value:t}),this.closeDropdown(),this.focusInput()}scrollToActiveOption(){const t=this.optionElements[this.activeIndex];t&&t.scrollIntoView({block:"nearest"})}openDropdownWithoutActiveElement(){this.activeIndex=void 0,this.setActiveOption(),this.dropdownOpen=!0,this.scheduledAfterRender.push(this.resizeIframe)}openDropdownWithActiveElement(t){this.activeIndex=t,this.dropdownOpen=!0,this.setActiveOption(),this.scheduledAfterRender.push(()=>{this.searchable||this.setFocusedOption(),this.scrollToActiveOption(),this.resizeIframe()})}closeDropdown(){this.dropdownOpen=!1,this.searchText&&(this.searchText="",this.input.emit({query:""})),this.scheduledAfterRender.push(this.resizeIframe)}toggleDropdown(){this.disabled||(this.searchable?this.dropdownOpen||this.openDropdownWithoutActiveElement():this.dropdownOpen?this.closeDropdown():this.openDropdownWithoutActiveElement())}adjustActiveOptionAndScroll(t){this.activeIndex+=t,this.setActiveOption(),this.searchable||this.setFocusedOption(),this.scrollToActiveOption()}setDefaultActiveElement(){this.activeIndex=this.getDefaultActiveIndex(),this.setActiveOption(),this.searchable||this.setFocusedOption()}focusInput(){const t=this.hostElement.shadowRoot.querySelector("q2-input");t&&t.dispatchEvent(new FocusEvent("focus"))}getNextVisibleIndex(t){let i=this.activeIndex+t;for(;i>=0&&i<=this.optionElements.length-1;){const{display:s,visibility:e}=window.getComputedStyle(this.optionElements[i]);if("none"!==s&&"hidden"!==e)return i;i+=t}return-1}componentDidLoad(){const t=new MutationObserver(this.onMutationObserved);t.observe(this.hostElement,{childList:!0,subtree:!0}),this.mutationObserver=t,this.onMutationObserved()}componentDidRender(){setTimeout(()=>{this.scheduledAfterRender.forEach(t=>t()),this.scheduledAfterRender=[]},25)}disconnectedCallback(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null)}valueUpdated(){this.multiple||this.updateSingleOptionAttrs()}selectedOptionsUpdated(){this.multiple&&this.updateMultipleOptionAttrs()}multilineOptionsChanged(t,i){t!==i&&this.optionElements.forEach(t=>{t.multiline=this.multilineOptions})}onHostElementChange(t){t.target!==this.hostElement||this.hostElement.onchange||(this.multiple?this.selectedOptions=t.detail.selectedOptions:this.value=t.detail.value)}onHostElementInput(t){if(this.searchable&&t.target===this.hostElement&&!this.hostElement.oninput){const i=this.optionElements,s=t.detail.query.trim().toLowerCase();i.forEach(t=>{if(""===s)t.style.display="";else{let{display:i="",innerText:e=""}=t,h=i.toLowerCase().includes(s)||e.toLowerCase().includes(s);t.style.display=h?"":"none"}})}}clickHandler(t){const i=t.target;"q2-option"!==i.localName||i.disabled||this.selectOption(i.value)}keydownHandler(t){if("Enter"===t.key&&this.dropdownOpen){t.preventDefault();const i=this.hostElement.querySelector(`[option-id="${this.activeOptionId}"]`);i&&!i.disabled&&this.selectOption(i.value)}else if(["ArrowUp","Up"].includes(t.key))if(t.preventDefault(),this.dropdownOpen)if(this.activeIndex>0){const t=this.getNextVisibleIndex(-1);t>-1&&this.adjustActiveOptionAndScroll(t-this.activeIndex)}else 0!==this.activeIndex&&this.setDefaultActiveElement();else this.openDropdownWithActiveElement(this.getDefaultActiveIndex());else if(["ArrowDown","Down"].includes(t.key))if(t.preventDefault(),this.dropdownOpen)if(this.activeIndex<this.optionElements.length-1){const t=this.getNextVisibleIndex(1);t>-1&&this.adjustActiveOptionAndScroll(t-this.activeIndex)}else this.activeIndex||this.setDefaultActiveElement();else this.openDropdownWithActiveElement(this.getDefaultActiveIndex());else["Escape","Esc"].includes(t.key)?(this.closeDropdown(),this.focusInput()):"Tab"===t.key?this.dropdownOpen&&this.searchable&&t.shiftKey?(t.preventDefault(),this.focusInput()):this.dropdownOpen&&!this.multiple&&t.preventDefault():!this.searchable&&t.key.match(/^[a-zA-Z0-9]$/)&&this.searchAndFocus(t.key)}render(){return s("click-elsewhere",{class:this.wrapperClasses,onChange:this.clickedElsewhere},s("q2-input",{class:"q2-select-input",label:this.label&&this.loc(this.label)||"",value:this.selectedDisplay,errors:Array.isArray(this.errors)&&this.errors.length>0&&this.errors.map(t=>this.loc(t))||this.invalid&&["tecton.element.select.invalid"]||[],disabled:this.disabled,optional:this.optional,ariaLabel:!this.label&&this.ariaLabel&&this.loc(this.ariaLabel)||"",ariaExpanded:this.dropdownOpen,ariaOwns:this.dropdownId,ariaHaspopup:"listbox",role:this.searchable?"combobox":null,pseudo:!this.searchable,"test-id":"toggleDropdown","hide-messages":!0,iconRight:"chevron-down",onClick:this.inputClickHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeydownHandler,onFocus:this.inputFocusHandler,onBlur:this.inputBlurHandler,onChange:this.inputChangeHandler}),s("div",{class:"custom-display-content",hidden:!this.hasCustomDisplay||!!this.searchText,onClick:this.onCustomDisplayClick},s("slot",{name:"q2-select-display"})),this.optionsDropdown())}optionsDropdown(){return s("div",{class:"q2-select-dropdown q2-element-dropdown"},this.multiple?this.visibilityToggle():"",s("div",{class:"q2-select-options",id:this.dropdownId},s("slot",null)))}visibilityToggle(){return s("div",{class:"multi-select-header"},this.loc("tecton.element.select.multiHeader.showing"),s("q2-btn",{class:"option-toggle show-all-options"+(this.onlyShowingSelected?"":" selected"),badge:!0,"test-id":"allOptionsButton",onClick:this.showAllOptions,onKeyDown:this.showAllOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.all")),s("q2-btn",{class:"option-toggle show-selected-options"+(this.onlyShowingSelected?" selected":""),disabled:0===this.selectedOptions.length,badge:!0,"test-id":"selectedOptionsButton",onClick:this.showSelectedOptions,onKeyDown:this.showSelectedOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.selected",[this.selectedOptionsCount])))}get hostElement(){return e(this)}static get watchers(){return{value:["valueUpdated"],selectedOptions:["selectedOptionsUpdated"],multilineOptions:["multilineOptionsChanged"]}}};o.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.q2-element-dropdown{display:none;position:absolute;background-color:var(--app-white);color:var(--t-font-color);left:0;width:100%;z-index:100;margin-top:1px;-webkit-box-shadow:var(--app-shadow-1);box-shadow:var(--app-shadow-1);height:0;overflow:hidden;opacity:0;visibility:hidden;-webkit-transition:opacity var(--app-tween-1);transition:opacity var(--app-tween-1);border-radius:var(--tct-dropdown-element-br, 0)}.q2-element-dropdown.sizable{display:block;height:auto}.dropdown-open .q2-element-dropdown{display:block;height:auto;overflow:auto;opacity:1;visibility:visible;margin-bottom:var(--app-scale-2)}:host([alignment='right']) .q2-element-dropdown{left:auto;right:0}:host{display:block;margin-top:var(--tct-select-margin-top, var(--app-scale-4, 30px));margin-bottom:var(--tct-select-margin-bottom, var(--app-scale-4, 30px))}.q2-select-container{position:relative;display:block}.q2-select-input{margin:0}.custom-display-content{position:absolute;bottom:0;left:calc(var(--tct-scale-2, var(--app-scale-2, 10px)) + 1px);height:44px;width:calc(100% - 34px - var(--tct-scale-3, var(--app-scale-3, 15px)));overflow:hidden;cursor:pointer;-webkit-transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease));transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease))}.custom-display-content:not([hidden]){display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.is-searchable.is-focused .custom-display-content,.is-searchable .custom-display-content:active{left:calc(var(--tct-scale-3, var(--app-scale-3, 15px)) + 1px)}.has-error .custom-display-content{width:calc(100% - 68px - var(--tct-scale-3, var(--app-scale-3, 15px)))}.dropdown-open .q2-select-dropdown{overflow-y:auto;max-height:300px}.multi-select-header{padding:var(--tct-scale-1, var(--app-scale-1, 5px))\n var(--tct-scale-2, var(--app-scale-2, 10px))}.show-all-options{margin-right:var(--tct-scale-1, var(--app-scale-1, 5px));margin-left:var(--tct-scale-2, var(--app-scale-2, 10px))}";export{o as q2_select}
|
|
1
|
+
import{r as t,c as i,h as s,g as e}from"./p-b5ebb4cb.js";import{c as h}from"./p-1d4bf5ef.js";const o=class{constructor(s){t(this,s),this.change=i(this,"change",7),this.input=i(this,"input",7),this.selectedOptions=[],this.disabled=!1,this.multiple=!1,this.searchable=!1,this.multilineOptions=!1,this.optional=!1,this.dropdownOpen=!1,this.onlyShowingSelected=!1,this.hasCustomDisplay=!1,this.inputFocused=!1,this.scheduledAfterRender=[],this.keyStore={queue:[],lastPressedAt:new Date},this.guid=h(),this.dropdownId="q2-select-dropdown-"+this.guid,this.onMutationObserved=()=>{const t=this.hostElement.querySelector(".custom-display-content"),i=this.hostElement.shadowRoot.querySelector('slot[name="q2-select-display"]'),s=i?i.assignedNodes().length>0:t.children.length>0;if(this.hasCustomDisplay!==s&&(this.hasCustomDisplay=s),this.multiple)return void this.updateMultipleOptionAttrs();this.updateSingleOptionAttrs();const e=this.optionElements[this.activeIndex];e&&e.id===this.activeOptionId||(this.activeIndex=this.getDefaultActiveIndex(),this.setActiveOption())},this.searchAndFocus=t=>{(()=>{const i=new Date;i.getTime()-this.keyStore.lastPressedAt.getTime()>1e3&&(this.keyStore.queue=[]),1===this.keyStore.queue.length&&this.keyStore.queue[0]===t||this.keyStore.queue.push(t),this.keyStore.lastPressedAt=i})();const i=(t=>t.find(t=>!t.element.disabled&&t.element.display.replace(/\s/g,"").match(new RegExp("^"+this.keyStore.queue.join(""),"i"))))((()=>{const t=(this.activeIndex||0)+1,i=this.optionElements.map((t,i)=>({element:t,index:i}));return[...i.slice(t),...i.slice(0,t)]})());i&&(({element:t,index:i})=>{this.dropdownOpen||this.multiple?this.openDropdownWithActiveElement(i):(this.activeIndex=i,this.change.emit({value:t.value}))})(i)},this.inputClickHandler=t=>{t.stopPropagation(),this.toggleDropdown(),this.focusInput()},this.inputInputHandler=t=>{t.stopPropagation(),this.dropdownOpen||this.openDropdownWithoutActiveElement(),this.searchText=t.detail.value,this.input.emit({query:t.detail.value})},this.inputKeydownHandler=t=>{if("Enter"===t.key&&this.dropdownOpen){t.preventDefault();const i=this.hostElement.querySelector(`[option-id="${this.activeOptionId}"]`);i&&!i.disabled&&this.selectOption(i.value)}["Escape","Esc"].includes(t.key)&&(this.closeDropdown(),this.focusInput()),"Tab"===t.key&&(this.dropdownOpen&&this.searchable&&t.shiftKey?(t.preventDefault(),this.focusInput()):this.dropdownOpen&&!this.multiple&&t.preventDefault())},this.inputFocusHandler=()=>{this.inputFocused=!0},this.inputBlurHandler=()=>{this.inputFocused=!1},this.inputChangeHandler=t=>{t.stopPropagation()},this.showAllOptionTabKeyDown=t=>{"Tab"!==t.key||t.shiftKey||0!==this.selectedOptionsCount||t.preventDefault()},this.showSelectedOptionTabKeyDown=t=>{"Tab"!==t.key||t.shiftKey||t.preventDefault()},this.clickedElsewhere=t=>{"click-elsewhere"===t.target.localName&&(t.stopPropagation(),this.dropdownOpen&&this.closeDropdown())},this.showSelectedOptions=()=>{this.onlyShowingSelected=!0,this.optionElements.forEach(t=>{t._multiSelectHidden=!t.selected})},this.showAllOptions=()=>{this.onlyShowingSelected=!1,this.optionElements.forEach(t=>{t._multiSelectHidden=!1})},this.onCustomDisplayClick=t=>{t.stopPropagation(),this.focusInput(),this.toggleDropdown()}}loc(t,i){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(t,i):t}resizeIframe(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()}getDefaultActiveIndex(){const t=this.optionElements.findIndex(t=>t.selected);return t>-1?t:0}setActiveOption(){this.dropdownOpen&&this.optionElements.forEach((t,i)=>{this.activeIndex===i?(t.active=!0,this.activeOptionId=t.optionId):t.active=!1})}setFocusedOption(){const t=this.optionElements[this.activeIndex].shadowRoot.querySelector("div");t.dispatchEvent(new FocusEvent("focus")),t.focus()}calculateMultiSelectSelectedDisplay(){if(1===this.selectedOptions.length){const t=this.optionElements.find(t=>t.value===this.selectedOptions[0]);return t&&t.display&&this.loc(t.display)||t&&t.value||this.selectedOptions[0]}return this.selectedOptions.length>1?this.loc("tecton.element.select.multiDisplay",[this.selectedOptions.length]):""}calculateSingleSelectSelectedDisplay(){const t=this.optionElements.find(t=>this.value===t.value);return t&&t.display&&this.loc(t.display)||this.value||""}get selectedDisplay(){return this.hasCustomDisplay&&!this.searchText?"":this.searchable&&this.dropdownOpen?this.searchText||"":this.multiple?this.calculateMultiSelectSelectedDisplay():this.calculateSingleSelectSelectedDisplay()}get selectedOptionsCount(){return this.selectedOptions.length}get optionElements(){return Array.from(this.hostElement.querySelectorAll("q2-option"))}get wrapperClasses(){return`q2-select-container${this.dropdownOpen?" dropdown-open":""}${Array.isArray(this.errors)&&this.errors.length>0?" has-error":""}${this.inputFocused?" is-focused":""}${this.searchable?" is-searchable":""}`}updateSingleOptionAttrs(){this.optionElements.forEach((t,i)=>{t.selected=this.value===t.value,t.optionId=`q2-select-${this.guid}-option-${i}`,t.multiline=this.multilineOptions})}updateMultipleOptionAttrs(){0===this.selectedOptions.length&&(this.onlyShowingSelected=!1),this.optionElements.forEach((t,i)=>{t.selected=this.selectedOptions.includes(t.value),t._multiSelectHidden=!!this.onlyShowingSelected&&!t.selected,t.optionId=`q2-select-${this.guid}-option-${i}`,t.multiline=this.multilineOptions})}selectOption(t){if(this.multiple){const i=this.selectedOptions.includes(t);this.change.emit(i?{selectedOptions:this.selectedOptions.filter(i=>i!==t)}:{selectedOptions:[...this.selectedOptions,t]})}else this.change.emit({value:t}),this.closeDropdown(),this.focusInput()}scrollToActiveOption(){const t=this.optionElements[this.activeIndex];t&&t.scrollIntoView({block:"nearest"})}openDropdownWithoutActiveElement(){this.activeIndex=void 0,this.setActiveOption(),this.dropdownOpen=!0,this.scheduledAfterRender.push(this.resizeIframe)}openDropdownWithActiveElement(t){this.activeIndex=t,this.dropdownOpen=!0,this.setActiveOption(),this.scheduledAfterRender.push(()=>{this.searchable||this.setFocusedOption(),this.scrollToActiveOption(),this.resizeIframe()})}closeDropdown(){this.dropdownOpen=!1,this.searchText&&(this.searchText="",this.input.emit({query:""})),this.scheduledAfterRender.push(this.resizeIframe)}toggleDropdown(){this.disabled||(this.searchable?this.dropdownOpen||this.openDropdownWithoutActiveElement():this.dropdownOpen?this.closeDropdown():this.openDropdownWithoutActiveElement())}adjustActiveOptionAndScroll(t){this.activeIndex+=t,this.setActiveOption(),this.searchable||this.setFocusedOption(),this.scrollToActiveOption()}setDefaultActiveElement(){this.activeIndex=this.getDefaultActiveIndex(),this.setActiveOption(),this.searchable||this.setFocusedOption()}focusInput(){const t=this.hostElement.shadowRoot.querySelector("q2-input");t&&t.dispatchEvent(new FocusEvent("focus"))}getNextVisibleIndex(t){let i=this.activeIndex+t;for(;i>=0&&i<=this.optionElements.length-1;){const{display:s,visibility:e}=window.getComputedStyle(this.optionElements[i]);if("none"!==s&&"hidden"!==e)return i;i+=t}return-1}componentDidLoad(){const t=new MutationObserver(this.onMutationObserved);t.observe(this.hostElement,{childList:!0,subtree:!0}),this.mutationObserver=t,this.onMutationObserved()}componentDidRender(){setTimeout(()=>{this.scheduledAfterRender.forEach(t=>t()),this.scheduledAfterRender=[]},25)}disconnectedCallback(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null)}valueUpdated(){this.multiple||this.updateSingleOptionAttrs()}selectedOptionsUpdated(){this.multiple&&this.updateMultipleOptionAttrs()}multilineOptionsChanged(t,i){t!==i&&this.optionElements.forEach(t=>{t.multiline=this.multilineOptions})}onHostElementChange(t){t.target!==this.hostElement||this.hostElement.onchange||(this.multiple?this.selectedOptions=t.detail.selectedOptions:this.value=t.detail.value)}onHostElementInput(t){if(this.searchable&&t.target===this.hostElement&&!this.hostElement.oninput){const i=this.optionElements,s=t.detail.query.trim().toLowerCase();i.forEach(t=>{if(""===s)t.style.display="";else{let{display:i="",innerText:e=""}=t,h=i.toLowerCase().includes(s)||e.toLowerCase().includes(s);t.style.display=h?"":"none"}})}}clickHandler(t){const i=t.target;"q2-option"!==i.localName||i.disabled||this.selectOption(i.value)}keydownHandler(t){if("Enter"===t.key&&this.dropdownOpen){t.preventDefault();const i=this.hostElement.querySelector(`[option-id="${this.activeOptionId}"]`);i&&!i.disabled&&this.selectOption(i.value)}else if(["ArrowUp","Up"].includes(t.key))if(t.preventDefault(),this.dropdownOpen)if(this.activeIndex>0){const t=this.getNextVisibleIndex(-1);t>-1&&this.adjustActiveOptionAndScroll(t-this.activeIndex)}else 0!==this.activeIndex&&this.setDefaultActiveElement();else this.openDropdownWithActiveElement(this.getDefaultActiveIndex());else if(["ArrowDown","Down"].includes(t.key))if(t.preventDefault(),this.dropdownOpen)if(this.activeIndex<this.optionElements.length-1){const t=this.getNextVisibleIndex(1);t>-1&&this.adjustActiveOptionAndScroll(t-this.activeIndex)}else this.activeIndex||this.setDefaultActiveElement();else this.openDropdownWithActiveElement(this.getDefaultActiveIndex());else["Escape","Esc"].includes(t.key)?(this.closeDropdown(),this.focusInput()):"Tab"===t.key?this.dropdownOpen&&this.searchable&&t.shiftKey?(t.preventDefault(),this.focusInput()):this.dropdownOpen&&!this.multiple&&t.preventDefault():!this.searchable&&t.key.match(/^[a-zA-Z0-9]$/)&&this.searchAndFocus(t.key)}render(){return s("click-elsewhere",{class:this.wrapperClasses,onChange:this.clickedElsewhere},s("q2-input",{class:"q2-select-input",label:this.label&&this.loc(this.label)||"",value:this.selectedDisplay,errors:Array.isArray(this.errors)&&this.errors.length>0&&this.errors.map(t=>this.loc(t))||this.invalid&&["tecton.element.select.invalid"]||[],disabled:this.disabled,optional:this.optional,ariaLabel:!this.label&&this.ariaLabel&&this.loc(this.ariaLabel)||"",ariaExpanded:this.dropdownOpen,ariaOwns:this.dropdownId,ariaHaspopup:"listbox",role:this.searchable?"combobox":null,pseudo:!this.searchable,"test-id":"toggleDropdown","hide-messages":!0,iconRight:"chevron-down",onClick:this.inputClickHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeydownHandler,onFocus:this.inputFocusHandler,onBlur:this.inputBlurHandler,onChange:this.inputChangeHandler}),s("div",{class:"custom-display-content",hidden:!this.hasCustomDisplay||!!this.searchText,onClick:this.onCustomDisplayClick},s("slot",{name:"q2-select-display"})),this.optionsDropdown())}optionsDropdown(){return s("div",{class:"q2-select-dropdown q2-element-dropdown"},this.multiple?this.visibilityToggle():"",s("div",{class:"q2-select-options",id:this.dropdownId},s("slot",null)))}visibilityToggle(){return s("div",{class:"multi-select-header"},this.loc("tecton.element.select.multiHeader.showing"),s("q2-btn",{class:"option-toggle show-all-options"+(this.onlyShowingSelected?"":" selected"),badge:!0,"test-id":"allOptionsButton",onClick:this.showAllOptions,onKeyDown:this.showAllOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.all")),s("q2-btn",{class:"option-toggle show-selected-options"+(this.onlyShowingSelected?" selected":""),disabled:0===this.selectedOptions.length,badge:!0,"test-id":"selectedOptionsButton",onClick:this.showSelectedOptions,onKeyDown:this.showSelectedOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.selected",[this.selectedOptionsCount])))}get hostElement(){return e(this)}static get watchers(){return{value:["valueUpdated"],selectedOptions:["selectedOptionsUpdated"],multilineOptions:["multilineOptionsChanged"]}}};o.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.q2-element-dropdown{display:none;position:absolute;background-color:var(--app-white);color:var(--t-font-color);left:0;width:100%;z-index:100;margin-top:1px;-webkit-box-shadow:var(--app-shadow-1);box-shadow:var(--app-shadow-1);height:0;overflow:hidden;opacity:0;visibility:hidden;-webkit-transition:opacity var(--app-tween-1);transition:opacity var(--app-tween-1);border-radius:var(--tct-dropdown-element-br, 0)}.q2-element-dropdown.sizable{display:block;height:auto}.dropdown-open .q2-element-dropdown{display:block;height:auto;overflow:auto;opacity:1;visibility:visible;margin-bottom:var(--app-scale-2)}:host([alignment='right']) .q2-element-dropdown{left:auto;right:0}:host{display:block;margin-top:var(--tct-select-margin-top, var(--app-scale-4, 30px));margin-bottom:var(--tct-select-margin-bottom, var(--app-scale-4, 30px))}.q2-select-container{position:relative;display:block}.q2-select-input{margin:0}.custom-display-content{position:absolute;bottom:0;left:calc(var(--tct-scale-2, var(--app-scale-2, 10px)) + 1px);height:44px;width:calc(100% - 34px - var(--tct-scale-3, var(--app-scale-3, 15px)));overflow:hidden;cursor:pointer;-webkit-transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease));transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease))}.custom-display-content:not([hidden]){display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.is-searchable.is-focused .custom-display-content,.is-searchable .custom-display-content:active{left:calc(var(--tct-scale-3, var(--app-scale-3, 15px)) + 1px)}.has-error .custom-display-content{width:calc(100% - 68px - var(--tct-scale-3, var(--app-scale-3, 15px)))}.dropdown-open .q2-select-dropdown{overflow-y:auto;max-height:300px}.multi-select-header{padding:var(--tct-scale-1, var(--app-scale-1, 5px))\n var(--tct-scale-2, var(--app-scale-2, 10px))}.show-all-options{margin-right:var(--tct-scale-1, var(--app-scale-1, 5px));margin-left:var(--tct-scale-2, var(--app-scale-2, 10px))}";export{o as q2_select}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2b69fdec.system.js"],(function(e){"use strict";var t,i;return{setters:[function(e){t=e.r;i=e.h}],execute:function(){var n="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.tab-pane[aria-hidden='true']{display:none}.tab-pane:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}";var o=e("q2_tab_pane",function(){function e(e){t(this,e)}e.prototype.render=function(){return i("div",{id:"tab-pane-"+this.guid+"-"+this.index,class:"tab-pane"+(this.selected?"":" hidden"),role:"tabpanel",tabindex:"-1","aria-expanded":""+!!this.selected,"aria-hidden":""+!this.selected,"aria-labelledby":"tab-"+this.guid+"-"+this.index},i("slot",null))};return e}());o.style=n}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2b69fdec.system.js"],(function(e){"use strict";var t,i,n,a;return{setters:[function(e){t=e.r;i=e.c;n=e.h;a=e.g}],execute:function(){var o="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{display:inline-block;max-width:100%}.q2-editable-field-wrapper:not([hidden]){display:-ms-flexbox;display:flex}.q2-editable-field-wrapper.editing{-ms-flex-align:end;align-items:flex-end}q2-input,.text-wrapper{margin:0 var(--tct-scale-2, var(--app-scale-2, 10px)) 0 0}q2-input{-ms-flex:1 0 auto;flex:1 0 auto;min-width:170px}.text-wrapper{-ms-flex:0 auto;flex:0 auto;-ms-flex-item-align:center;align-self:center;display:inline-block}:host([truncated]) .text-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}q2-btn{-ms-flex:0 0 44px;flex:0 0 44px}dl{margin:var(--tct-scale-0, var(--app-scale-0, 0))}dt{font-weight:600}dd{margin-left:var(--tct-scale-0, var(--app-scale-0, 0));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";var s=e("q2_editable_field",function(){function e(e){var n=this;t(this,e);this.input=i(this,"input",7);this.change=i(this,"change",7);this.value="";this.editing=false;this.label="";this.scheduledAfterRender=[];this.inputInput=function(e){e.stopPropagation();n.input.emit(e.detail);n.formattedValue=e.detail.formattedValue;n.innerValue=e.detail.value};this.inputChange=function(e){e.stopPropagation()};this.inputKeyDown=function(e){if(e.key==="Escape"||e.key==="Esc"){e.preventDefault();n.cancelClick();return}if(e.key==="Enter"){e.preventDefault();n.saveClick();return}};this.inputClick=function(e){e.stopPropagation()};this.saveClick=function(e){e&&e.stopPropagation();var t=n.hostElement.shadowRoot.querySelector("q2-input").value;n.change.emit({editing:false,name:"save",value:n.innerValue||t,formattedValue:n.formattedValue||t})};this.editClick=function(e){e.stopPropagation();n.change.emit({editing:true,name:"edit"})};this.cancelClick=function(e){e&&e.stopPropagation();n.change.emit({editing:false,name:"cancel"})}}e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};Object.defineProperty(e.prototype,"locLabel",{get:function(){return this.label&&this.loc(this.label)||""},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"locAriaLabel",{get:function(){return!this.label&&this.ariaLabel&&this.loc(this.ariaLabel)||undefined},enumerable:false,configurable:true});e.prototype.componentDidRender=function(){this.scheduledAfterRender.forEach((function(e){return e()}));this.scheduledAfterRender=[]};e.prototype.observesEditing=function(e,t){var i=this;if(e===t){return}if(e){this.scheduledAfterRender.push((function(){i.hostElement.shadowRoot.querySelector("q2-input").dispatchEvent(new FocusEvent("focus"))}))}else{this.scheduledAfterRender.push((function(){i.hostElement.shadowRoot.querySelector(".begin-edit").dispatchEvent(new FocusEvent("focus"))}))}};Object.defineProperty(e.prototype,"wrapperClass",{get:function(){return"q2-editable-field-wrapper "+(this.editing?"editing":"")},enumerable:false,configurable:true});e.prototype.onHostElementChange=function(e){if(event.target===this.hostElement&&!this.hostElement.onchange){if(e.detail.name==="save"){this.value=e.detail.value}this.editing=e.detail.editing}};e.prototype.render=function(){return n("div",null,this.generateEditStateDOM(),this.generateReadStateDOM())};e.prototype.generateEditStateDOM=function(){var e=this;return n("div",{class:this.wrapperClass,hidden:!this.editing},n("q2-input",{label:this.locLabel,ariaLabel:this.locAriaLabel,value:this.value,hints:Array.isArray(this.hints)&&this.hints.map((function(t){return e.loc(t)}))||undefined,errors:Array.isArray(this.errors)&&this.errors.map((function(t){return e.loc(t)}))||undefined,type:this.type,formatModifier:this.formatModifier,maxlength:this.maxlength,"test-id":"editableInput",onInput:this.inputInput,onChange:this.inputChange,onKeyDown:this.inputKeyDown,onClick:this.inputClick}),n("q2-btn",{class:"cancel-edit",icon:true,ariaLabel:this.loc("tecton.element.editableField.cancel")+" "+(this.locLabel||this.locAriaLabel||""),"test-id":"cancelButton",onClick:this.cancelClick},n("q2-icon",{type:"close"})),n("q2-btn",{class:"save-edit",icon:true,ariaLabel:this.loc("tecton.element.editableField.save")+" "+(this.locLabel||this.locAriaLabel||""),"test-id":"saveButton",onClick:this.saveClick},n("q2-icon",{type:"checkmark"})))};e.prototype.generateReadStateDOM=function(){if(this.persistentLabel&&this.locLabel){return n("div",{class:this.wrapperClass,hidden:this.editing},n("dl",null,n("dt",{class:"read-state-label"},this.locLabel),n("dd",null,n("span",{class:"text-wrapper"},this.value),this.generateEditBtn())))}return n("div",{class:this.wrapperClass,hidden:this.editing},n("div",{class:"text-wrapper"},this.value),this.generateEditBtn())};e.prototype.generateEditBtn=function(){return n("q2-btn",{class:"begin-edit",icon:true,ariaLabel:this.loc("tecton.element.editableField.edit")+" "+(this.locLabel||this.locAriaLabel||""),"test-id":"editButton",onClick:this.editClick},n("q2-icon",{type:"edit"}))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{editing:["observesEditing"]}},enumerable:false,configurable:true});return e}());s.style=o}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as a,h as e,g as o}from"./p-
|
|
1
|
+
import{r as t,c as a,h as e,g as o}from"./p-b5ebb4cb.js";import{c as r}from"./p-1d4bf5ef.js";const i=class{constructor(e){t(this,e),this.change=a(this,"change",7),this.disabled=!1,this.checked=!1,this.groupDisabled=!1,this.groupTileLayout=!1,this.id="radio-"+r(),this.inputChange=t=>{t.stopPropagation(),this.change.emit({value:this.value})}}loc(t,a){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(t,a):t}get computedAriaLabel(){return!this.label&&this.ariaLabel&&this.loc(this.ariaLabel)||void 0}onHostClick(t){this.disabled&&t.stopImmediatePropagation()}render(){return e("div",{class:this.groupTileLayout?"radio-tile":"radio-container"},e("input",{class:"sr",id:this.id,type:"radio",name:this.name,value:this.value,disabled:this.disabled||this.groupDisabled,checked:this.checked,"aria-label":this.computedAriaLabel,onChange:this.inputChange,"test-id":"q2RadioInnerRadioBox"}),e("label",{class:"radio-label",htmlFor:this.id,"test-id":"radioButton"},!this.groupTileLayout&&e("svg",{width:"18",height:"18",viewBox:"0 0 18 18",focusable:"false"},e("circle",{stroke:"none",fill:"none",cx:"9",cy:"9",r:"8"}),e("circle",{stroke:"none",fill:"none",cx:"9",cy:"9",r:"4"})),e("div",{class:"q2-radio-label-content"},this.label&&this.loc(this.label)||"",e("slot",null))))}get hostElement(){return o(this)}};i.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}q2-radio{margin-top:var(--tct-radio-margin-vertical, var(--tct-scale-2, 10px));margin-right:var(--tct-radio-margin-horizontal, var(--tct-scale-3, 15px));display:block}q2-radio .radio-container{margin-bottom:var(--tct-radio-margin-vertical, var(--tct-scale-2, 10px))}q2-radio .radio-container svg{border-radius:50%;-webkit-transition:-webkit-box-shadow var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:-webkit-box-shadow var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:box-shadow var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:box-shadow var(--tct-tween-1, var(--app-tween-1, 0.2s ease)), -webkit-box-shadow var(--tct-tween-1, var(--app-tween-1, 0.2s ease));outline:0;margin:2px var(--tct-scale-1, var(--app-scale-1, 5px)) 2px 2px}q2-radio .radio-container circle:nth-child(1){stroke-width:2;stroke:var(--tct-radio-stroke-color, var(--tct-gray-11, var(--app-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc)))))}q2-radio .radio-container input:focus~label.radio-label svg{-webkit-box-shadow:var(--tct-global-focus, var(--const-global-focus, 0 0 0 2px #33b4ff));box-shadow:var(--tct-global-focus, var(--const-global-focus, 0 0 0 2px #33b4ff))}q2-radio .radio-container input:checked~label.radio-label circle:nth-child(1){background-color:var(--tct-radio-checked-bg, transparent);stroke:var(\n --tct-radio-checked-stroke-color,\n var(--tct-radio-stroke-color, var(--tct-gray-11, var(--app-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc)))))\n )}q2-radio input:checked+label .q2-radio-label-content{font-weight:var(--tct-checkbox-selected-font-weight, 600);letter-spacing:var(--tct-checkbox-selected-letter-spacing, 0.25)}q2-radio .radio-container input:focus~label.radio-label circle:nth-child(1){stroke:var(\n --tct-radio-focus-stroke-color,\n var(--tct-checkbox-check-stroke-color, var(--t-checkbox-fill, #2e2e2e))\n )}q2-radio .radio-container input:checked~label.radio-label circle:nth-child(2){fill:var(\n --tct-radio-checked-fill,\n var(--tct-checkbox-check-stroke-color, var(--t-checkbox-fill, #2e2e2e))\n )}q2-radio .radio-tile input:disabled~label.radio-label,q2-radio .radio-container input:disabled~label.radio-label{cursor:not-allowed;opacity:var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))}q2-radio .radio-container label.radio-label{font-weight:var(--tct-radio-font-weight, var(--tct-checkbox-font-weight, 400));display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;cursor:pointer;margin-right:1rem}q2-radio .radio-tile{-ms-flex-preferred-size:100px;flex-basis:100px;-ms-flex-positive:0;flex-grow:0;-ms-flex-wrap:wrap;flex-wrap:wrap}q2-radio .radio-tile label{-ms-flex-align:center;align-items:center;border-radius:3px;border:2px solid var(--tct-radio-stroke-color, var(--tct-gray-11, var(--app-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc)))));cursor:pointer;display:block;padding:1rem;position:relative;text-align:center;-webkit-transition:border-color var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:border-color var(--tct-tween-1, var(--app-tween-1, 0.2s ease));white-space:nowrap}q2-radio .radio-tile input:focus+label{border-color:#0079c1;-webkit-box-shadow:var(--tct-global-focus, var(--const-global-focus, 0 0 0 2px #33b4ff));box-shadow:var(--tct-global-focus, var(--const-global-focus, 0 0 0 2px #33b4ff))}q2-radio .radio-tile input:checked+label{border-color:var(--tct-checkbox-check-stroke-color, var(--t-checkbox-fill, #2e2e2e));-webkit-box-shadow:inset 0 0 0 2px #ffffff;box-shadow:inset 0 0 0 2px #ffffff}q2-radio .radio-tile input:checked+label:after{border-bottom-width:3px;border-bottom:5px solid #0079c1;border-left-width:5px;border-left:8px solid transparent;border-right-width:5px;border-right:8px solid transparent;bottom:0;content:'';height:0;left:50%;margin-left:-5px;position:absolute;width:0}";export{i as q2_radio}
|