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
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2b69fdec.system.js","./p-46e098a0.system.js"],(function(e){"use strict";var t,r;return{setters:[function(e){t=e.r},function(e){r=e.a}],execute:function(){var n="q2-loading-element{display:block}.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%}";var a=e("q2_loading_element",function(){function e(e){t(this,e)}Object.defineProperty(e.prototype,"shapeMarkup",{get:function(){return r[this.shape]?r[this.shape]({width:this.width,height:this.height,borderRadius:this.borderRadius}):""},enumerable:false,configurable:true});e.prototype.render=function(){return this.shapeMarkup};return e}());a.style=n}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2b69fdec.system.js"],(function(e){"use strict";var t,n,r,i;return{setters:[function(e){t=e.r;n=e.c;r=e.h;i=e.g}],execute:function(){
|
|
2
2
|
//! moment.js
|
|
3
3
|
//! version : 2.27.0
|
|
4
4
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,g as o}from"./p-07168e58.js";import{c as a}from"./p-1d4bf5ef.js";var r,n=(function(t){t.exports={polyfill:function(){var t=window,i=document;if(!("scrollBehavior"in i.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var e=t.HTMLElement||t.Element,o={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:e.prototype.scroll||n,scrollIntoView:e.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,r=function(t){return new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(t)}(t.navigator.userAgent)?1:0;t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==s(arguments[0])?d.call(t,i.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):o.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(s(arguments[0])?o.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):d.call(t,i.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},e.prototype.scroll=e.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==s(arguments[0])){var t=arguments[0].left,i=arguments[0].top;d.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===i?this.scrollTop:~~i)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},e.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==s(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},e.prototype.scrollIntoView=function(){if(!0!==s(arguments[0])){var e=v(this),a=e.getBoundingClientRect(),r=this.getBoundingClientRect();e!==i.body?(d.call(this,e,e.scrollLeft+r.left-a.left,e.scrollTop+r.top-a.top),"fixed"!==t.getComputedStyle(e).position&&t.scrollBy({left:a.left,top:a.top,behavior:"smooth"})):t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function n(t,i){this.scrollLeft=t,this.scrollTop=i}function s(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function l(t,i){return"Y"===i?t.clientHeight+r<t.scrollHeight:"X"===i?t.clientWidth+r<t.scrollWidth:void 0}function c(i,e){var o=t.getComputedStyle(i,null)["overflow"+e];return"auto"===o||"scroll"===o}function h(t){var i=l(t,"Y")&&c(t,"Y"),e=l(t,"X")&&c(t,"X");return i||e}function v(t){for(;t!==i.body&&!1===h(t);)t=t.parentNode||t.host;return t}function d(e,r,s){var l,c,h,v,d=a();e===i.body?(l=t,c=t.scrollX||t.pageXOffset,h=t.scrollY||t.pageYOffset,v=o.scroll):(l=e,c=e.scrollLeft,h=e.scrollTop,v=n),function i(e){var o,r,n,s=(a()-e.startTime)/468;s=s>1?1:s,o=.5*(1-Math.cos(Math.PI*s)),e.method.call(e.scrollable,r=e.startX+(e.x-e.startX)*o,n=e.startY+(e.y-e.startY)*o),r===e.x&&n===e.y||t.requestAnimationFrame(i.bind(t,e))}({scrollable:l,method:v,startTime:d,startX:c,startY:h,x:r,y:s})}}}}(r={path:void 0,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),r.exports);const s=navigator.userAgent.toLowerCase(),l=s.includes("safari")&&!s.includes("chrome"),c=s.includes("firefox");l&&(n.polyfill(),window.__forceSmoothScrollPolyfill__=!0);const h=class{constructor(e){t(this,e),this.change=i(this,"change",7),this.settled=i(this,"settled",7),this.guid=a(),this.scheduledAfterRender=[],this.lastScrolled=new Date(null).getTime(),this.hasLeft=!1,this.hasRight=!1,this.updateTabData=()=>{this.updateTabPaneProps(),this.setTabs()},this.updateTabPaneProps=()=>{this.tabPanes.forEach((t,i)=>{t.selected=t.value===this.selectedTabValue,t.guid=this.guid,t.index=i})},this.setTabs=()=>{this.tabs=this.tabPanes.map(({label:t,value:i})=>({label:t&&this.loc(t)||"",value:i}))},this.onTabClick=t=>{this.change.emit({value:t.target.dataset.value})},this.onTabKeyDown=t=>{const i=t.target.dataset.value;if("ArrowRight"!==t.key&&"Right"!==t.key){if("ArrowLeft"!==t.key&&"Left"!==t.key)return"Space"===t.code||"Enter"===t.code?(t.preventDefault(),void this.change.emit({value:i})):void 0;this.moveToAdjacentTab(i,"prev")}else this.moveToAdjacentTab(i,"next")},this.moveToAdjacentTab=(t,i)=>{let e=this.tabs.map(({value:t})=>t).indexOf(t),o="next"===i?Math.min(e+1,this.tabs.length-1):Math.max(e-1,0);if(e!==o){const t=this.moveFocus(o);this.tabList.scrollWidth>this.tabList.clientWidth&&(0!==o&&o!==this.tabs.length-1?this.scrollByKeyboard(i,t):this.onTabScroll(i))}},this.moveFocus=t=>{const i=this.hostElement.shadowRoot.querySelector(`.tab-list a[data-value="${this.tabs[t].value}"]`);return i.focus({preventScroll:!0}),i},this.calculateKeyboardScroll=(t,i)=>{const{left:e}=this.tabList.getBoundingClientRect(),{left:o}=i.getBoundingClientRect();let a=0;return"next"===t&&o+i.clientWidth>e+this.tabList.clientWidth+46?a=this.tabList.scrollLeft+46+(o+i.clientWidth)-(e+this.tabList.clientWidth):"prev"===t&&o+46<e&&(a=this.tabList.scrollLeft-46+(o-e)),a},this.scrollByKeyboard=(t,i)=>{const e=this.calculateKeyboardScroll(t,i);0!==e&&(this.tabList.scroll({left:e,behavior:"smooth"}),setTimeout(()=>this.onTabScroll(),100))},this.calculateTabScroll=({direction:t,scrollWidth:i,clientWidth:e,scrollLeft:o})=>{const a=o+({prev:-1,next:1}[t]||0)*Math.round(.5*e);return{newScrollLeft:a,hasLeft:a>0,hasRight:i>e+a}},this.onTabScroll=t=>{const i=(new Date).getTime();if(i-this.lastScrolled<50)return;if(this.lastScrolled=i,!this.tabList)return;let{scrollWidth:e,clientWidth:o,scrollLeft:a}=this.tabList;const{newScrollLeft:r,hasLeft:n,hasRight:s}=this.calculateTabScroll({direction:t,scrollWidth:e,clientWidth:o,scrollLeft:a});this.hasLeft=n,this.hasRight=s,t&&this.tabList.scroll({left:r,behavior:"smooth"})}}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()}get tabPanes(){const t=this.hostElement.querySelectorAll("q2-tab-pane, tecton-tab-pane");return 0===t.length?[]:Array.from(t).filter(t=>t.name===this.name)}get selectedTabValue(){return this.value||this.tabPanes[0].value||""}get tabList(){return this.hostElement.shadowRoot.querySelector(".tab-list")}defaultChangeHandler(t){t.target!==this.hostElement||this.hostElement.onchange||(this.value=t.detail.value)}onResize(){this.onTabScroll()}onFocus(){if(c){const t=this.tabs.findIndex(t=>t.value===this.selectedTabValue);this.moveFocus(t)}}componentWillLoad(){const t=new MutationObserver(this.updateTabData);t.observe(this.hostElement,{childList:!0,attributes:!0}),this.mutationObserver=t,this.updateTabData()}componentDidRender(){this.scheduledAfterRender.forEach(t=>t()),this.scheduledAfterRender=[],this.settled.emit(),this.onTabScroll()}disconnectedCallback(){this.mutationObserver.disconnect(),this.mutationObserver=null}valueObserver(){this.updateTabData(),this.scheduledAfterRender.push(this.resizeIframe)}nameObserver(){this.updateTabData()}render(){return e("div",{class:"tab-container"},e("ul",{class:"tab-list",role:"tablist"},this.hasLeft&&e("li",{role:"presentation",class:"nav nav-left",onClick:()=>this.onTabScroll("prev")},e("div",{class:"arrow-container"},e("a",null,e("q2-icon",{type:"chevron-left"})))),this.tabs.map((t,i)=>this.generateTab(t,i)),this.hasRight&&e("li",{role:"presentation",class:"nav nav-right",onClick:()=>this.onTabScroll("next")},e("div",{class:"arrow-container"},e("a",null,e("q2-icon",{type:"chevron-right"}))))),e("div",{class:"tab-content"},e("slot",null)))}generateTab(t,i){const{label:o,value:a}=t,r=this.selectedTabValue===a;return e("li",{role:"presentation"},e("a",{id:`tab-${this.guid}-${i}`,href:"javascript://","data-value":a,"test-id":"tabLink",tabIndex:r?0:-1,role:"tab","aria-selected":""+r,"aria-controls":`tab-pane-${this.guid}-${i}`,onClick:this.onTabClick,onKeyDown:this.onTabKeyDown},o))}get hostElement(){return o(this)}static get watchers(){return{value:["valueObserver"],name:["nameObserver"]}}};h.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-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.tab-list{padding:0;display:-ms-flexbox;display:flex;margin:0;list-style:none;border-bottom:1px solid\n var(--tct-tab-container-border-color, var(--tct-gray-11, var(--app-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc)))));white-space:nowrap;overflow-x:hidden;-ms-flex-align:center;align-items:center}.tab-list li.nav{position:absolute;height:44px;width:46px}.tab-list li.nav-left{left:-15px;background:-webkit-gradient(linear, left top, right top, color-stop(60%, var(--tct-section-bg, var(--t-section-bg, #ffffff))), to(rgba(255,255,255,0)));background:linear-gradient(to right, var(--tct-section-bg, var(--t-section-bg, #ffffff)) 60%, rgba(255,255,255,0))}.tab-list li.nav-right{right:-15px;background:-webkit-gradient(linear, right top, left top, color-stop(60%, var(--tct-section-bg, var(--t-section-bg, #ffffff))), to(rgba(255,255,255,0)));background:linear-gradient(to left, var(--tct-section-bg, var(--t-section-bg, #ffffff)) 60%, rgba(255,255,255,0))}.tab-list li.nav .arrow-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:inherit;width:inherit;cursor:pointer}.tab-list li.nav .arrow-container a{padding:0;margin:0;height:inherit;width:inherit;border-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.tab-list li.nav .arrow-container a q2-icon{width:19px;height:19px}.tab-list a{width:var(--tct-tab-hover-width, var(--t-tab-hover-width, 100%));text-align:center;text-decoration:none;padding:var(--tct-scale-2, var(--app-scale-2, 10px));margin:var(--tct-scale-1, var(--app-scale-1, 5px)) var(--tct-scale-1, var(--app-scale-1, 5px))\n 0;color:var(--tct-tab-inactive-color, var(--t-tab-inactive, inherit));font-size:var(--tct-tab-font-size, var(--t-tab-font-size, 17px));border-bottom:3px solid transparent;display:block;-webkit-transition:color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n border-color var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n border-color var(--tct-tween-1, var(--app-tween-1, 0.2s ease))}:host([type='section']) .tab-list a{font-size:inherit;padding:var(--tct-scale-2, var(--app-scale-2, 10px))\n var(--tct-scale-1, var(--app-scale-1, 5px))}@media screen and (max-width: 767px){.tab-list a{font-size:inherit;padding:var(--tct-scale-2, var(--app-scale-2, 10px))\n var(--tct-scale-1, var(--app-scale-1, 5px))}}.tab-list a:hover{color:var(--tct-tab-active-color, var(--t-tab-active, #2e2e2e));background-color:var(--tct-tab-hover-bg-color, var(--t-tab-hover-bg-color, inherit));width:var(--tct-tab-hover-width, var(--t-tab-hover-width, 100%))}.tab-list a[aria-selected='true']{color:var(--tct-tab-active-color, var(--t-tab-active, #2e2e2e));border-color:currentColor;width:var(--tct-tab-active-width, var(--t-tab-active-width, 100%));background-color:var(--tct-tab-active-bg-color, var(--t-tab-active-bg-color, inherit))}:host([color='alt']) .tab-list a{color:var(--tct-tab-alt-inactive-color, var(--t-tab-alt-inactive, inherit))}:host([color='alt']) .tab-list a:hover,:host([color='alt']) .tab-list a[aria-selected='true']{color:var(--tct-tab-alt-active-color, var(--t-tab-alt-active, inherit))}.tab-content{padding:var(--tct-scale-2, var(--app-scale-2, 10px)) 0}.tab-content:focus{outline:none;-webkit-box-shadow:none;box-shadow:none}";export{h as q2_tab_container}
|
|
1
|
+
import{r as t,c as i,h as e,g as o}from"./p-b5ebb4cb.js";import{c as a}from"./p-1d4bf5ef.js";var r,n=(function(t){t.exports={polyfill:function(){var t=window,i=document;if(!("scrollBehavior"in i.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var e=t.HTMLElement||t.Element,o={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:e.prototype.scroll||n,scrollIntoView:e.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,r=function(t){return new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(t)}(t.navigator.userAgent)?1:0;t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==s(arguments[0])?d.call(t,i.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):o.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(s(arguments[0])?o.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):d.call(t,i.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},e.prototype.scroll=e.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==s(arguments[0])){var t=arguments[0].left,i=arguments[0].top;d.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===i?this.scrollTop:~~i)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},e.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==s(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},e.prototype.scrollIntoView=function(){if(!0!==s(arguments[0])){var e=v(this),a=e.getBoundingClientRect(),r=this.getBoundingClientRect();e!==i.body?(d.call(this,e,e.scrollLeft+r.left-a.left,e.scrollTop+r.top-a.top),"fixed"!==t.getComputedStyle(e).position&&t.scrollBy({left:a.left,top:a.top,behavior:"smooth"})):t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function n(t,i){this.scrollLeft=t,this.scrollTop=i}function s(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function l(t,i){return"Y"===i?t.clientHeight+r<t.scrollHeight:"X"===i?t.clientWidth+r<t.scrollWidth:void 0}function c(i,e){var o=t.getComputedStyle(i,null)["overflow"+e];return"auto"===o||"scroll"===o}function h(t){var i=l(t,"Y")&&c(t,"Y"),e=l(t,"X")&&c(t,"X");return i||e}function v(t){for(;t!==i.body&&!1===h(t);)t=t.parentNode||t.host;return t}function d(e,r,s){var l,c,h,v,d=a();e===i.body?(l=t,c=t.scrollX||t.pageXOffset,h=t.scrollY||t.pageYOffset,v=o.scroll):(l=e,c=e.scrollLeft,h=e.scrollTop,v=n),function i(e){var o,r,n,s=(a()-e.startTime)/468;s=s>1?1:s,o=.5*(1-Math.cos(Math.PI*s)),e.method.call(e.scrollable,r=e.startX+(e.x-e.startX)*o,n=e.startY+(e.y-e.startY)*o),r===e.x&&n===e.y||t.requestAnimationFrame(i.bind(t,e))}({scrollable:l,method:v,startTime:d,startX:c,startY:h,x:r,y:s})}}}}(r={path:void 0,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),r.exports);const s=navigator.userAgent.toLowerCase(),l=s.includes("safari")&&!s.includes("chrome"),c=s.includes("firefox");l&&(n.polyfill(),window.__forceSmoothScrollPolyfill__=!0);const h=class{constructor(e){t(this,e),this.change=i(this,"change",7),this.settled=i(this,"settled",7),this.guid=a(),this.scheduledAfterRender=[],this.lastScrolled=new Date(null).getTime(),this.hasLeft=!1,this.hasRight=!1,this.updateTabData=()=>{this.updateTabPaneProps(),this.setTabs()},this.updateTabPaneProps=()=>{this.tabPanes.forEach((t,i)=>{t.selected=t.value===this.selectedTabValue,t.guid=this.guid,t.index=i})},this.setTabs=()=>{this.tabs=this.tabPanes.map(({label:t,value:i})=>({label:t&&this.loc(t)||"",value:i}))},this.onTabClick=t=>{this.change.emit({value:t.target.dataset.value})},this.onTabKeyDown=t=>{const i=t.target.dataset.value;if("ArrowRight"!==t.key&&"Right"!==t.key){if("ArrowLeft"!==t.key&&"Left"!==t.key)return"Space"===t.code||"Enter"===t.code?(t.preventDefault(),void this.change.emit({value:i})):void 0;this.moveToAdjacentTab(i,"prev")}else this.moveToAdjacentTab(i,"next")},this.moveToAdjacentTab=(t,i)=>{let e=this.tabs.map(({value:t})=>t).indexOf(t),o="next"===i?Math.min(e+1,this.tabs.length-1):Math.max(e-1,0);if(e!==o){const t=this.moveFocus(o);this.tabList.scrollWidth>this.tabList.clientWidth&&(0!==o&&o!==this.tabs.length-1?this.scrollByKeyboard(i,t):this.onTabScroll(i))}},this.moveFocus=t=>{const i=this.hostElement.shadowRoot.querySelector(`.tab-list a[data-value="${this.tabs[t].value}"]`);return i.focus({preventScroll:!0}),i},this.calculateKeyboardScroll=(t,i)=>{const{left:e}=this.tabList.getBoundingClientRect(),{left:o}=i.getBoundingClientRect();let a=0;return"next"===t&&o+i.clientWidth>e+this.tabList.clientWidth+46?a=this.tabList.scrollLeft+46+(o+i.clientWidth)-(e+this.tabList.clientWidth):"prev"===t&&o+46<e&&(a=this.tabList.scrollLeft-46+(o-e)),a},this.scrollByKeyboard=(t,i)=>{const e=this.calculateKeyboardScroll(t,i);0!==e&&(this.tabList.scroll({left:e,behavior:"smooth"}),setTimeout(()=>this.onTabScroll(),100))},this.calculateTabScroll=({direction:t,scrollWidth:i,clientWidth:e,scrollLeft:o})=>{const a=o+({prev:-1,next:1}[t]||0)*Math.round(.5*e);return{newScrollLeft:a,hasLeft:a>0,hasRight:i>e+a}},this.onTabScroll=t=>{const i=(new Date).getTime();if(i-this.lastScrolled<50)return;if(this.lastScrolled=i,!this.tabList)return;let{scrollWidth:e,clientWidth:o,scrollLeft:a}=this.tabList;const{newScrollLeft:r,hasLeft:n,hasRight:s}=this.calculateTabScroll({direction:t,scrollWidth:e,clientWidth:o,scrollLeft:a});this.hasLeft=n,this.hasRight=s,t&&this.tabList.scroll({left:r,behavior:"smooth"})}}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()}get tabPanes(){const t=this.hostElement.querySelectorAll("q2-tab-pane, tecton-tab-pane");return 0===t.length?[]:Array.from(t).filter(t=>t.name===this.name)}get selectedTabValue(){return this.value||this.tabPanes[0].value||""}get tabList(){return this.hostElement.shadowRoot.querySelector(".tab-list")}defaultChangeHandler(t){t.target!==this.hostElement||this.hostElement.onchange||(this.value=t.detail.value)}onResize(){this.onTabScroll()}onFocus(){if(c){const t=this.tabs.findIndex(t=>t.value===this.selectedTabValue);this.moveFocus(t)}}componentWillLoad(){const t=new MutationObserver(this.updateTabData);t.observe(this.hostElement,{childList:!0,attributes:!0}),this.mutationObserver=t,this.updateTabData()}componentDidRender(){this.scheduledAfterRender.forEach(t=>t()),this.scheduledAfterRender=[],this.settled.emit(),this.onTabScroll()}disconnectedCallback(){this.mutationObserver.disconnect(),this.mutationObserver=null}valueObserver(){this.updateTabData(),this.scheduledAfterRender.push(this.resizeIframe)}nameObserver(){this.updateTabData()}render(){return e("div",{class:"tab-container"},e("ul",{class:"tab-list",role:"tablist"},this.hasLeft&&e("li",{role:"presentation",class:"nav nav-left",onClick:()=>this.onTabScroll("prev")},e("div",{class:"arrow-container"},e("a",null,e("q2-icon",{type:"chevron-left"})))),this.tabs.map((t,i)=>this.generateTab(t,i)),this.hasRight&&e("li",{role:"presentation",class:"nav nav-right",onClick:()=>this.onTabScroll("next")},e("div",{class:"arrow-container"},e("a",null,e("q2-icon",{type:"chevron-right"}))))),e("div",{class:"tab-content"},e("slot",null)))}generateTab(t,i){const{label:o,value:a}=t,r=this.selectedTabValue===a;return e("li",{role:"presentation"},e("a",{id:`tab-${this.guid}-${i}`,href:"javascript://","data-value":a,"test-id":"tabLink",tabIndex:r?0:-1,role:"tab","aria-selected":""+r,"aria-controls":`tab-pane-${this.guid}-${i}`,onClick:this.onTabClick,onKeyDown:this.onTabKeyDown},o))}get hostElement(){return o(this)}static get watchers(){return{value:["valueObserver"],name:["nameObserver"]}}};h.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-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.tab-list{padding:0;display:-ms-flexbox;display:flex;margin:0;list-style:none;border-bottom:1px solid\n var(--tct-tab-container-border-color, var(--tct-gray-11, var(--app-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc)))));white-space:nowrap;overflow-x:hidden;-ms-flex-align:center;align-items:center}.tab-list li.nav{position:absolute;height:44px;width:46px}.tab-list li.nav-left{left:-15px;background:-webkit-gradient(linear, left top, right top, color-stop(60%, var(--tct-section-bg, var(--t-section-bg, #ffffff))), to(rgba(255,255,255,0)));background:linear-gradient(to right, var(--tct-section-bg, var(--t-section-bg, #ffffff)) 60%, rgba(255,255,255,0))}.tab-list li.nav-right{right:-15px;background:-webkit-gradient(linear, right top, left top, color-stop(60%, var(--tct-section-bg, var(--t-section-bg, #ffffff))), to(rgba(255,255,255,0)));background:linear-gradient(to left, var(--tct-section-bg, var(--t-section-bg, #ffffff)) 60%, rgba(255,255,255,0))}.tab-list li.nav .arrow-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:inherit;width:inherit;cursor:pointer}.tab-list li.nav .arrow-container a{padding:0;margin:0;height:inherit;width:inherit;border-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.tab-list li.nav .arrow-container a q2-icon{width:19px;height:19px}.tab-list a{width:var(--tct-tab-hover-width, var(--t-tab-hover-width, 100%));text-align:center;text-decoration:none;padding:var(--tct-scale-2, var(--app-scale-2, 10px));margin:var(--tct-scale-1, var(--app-scale-1, 5px)) var(--tct-scale-1, var(--app-scale-1, 5px))\n 0;color:var(--tct-tab-inactive-color, var(--t-tab-inactive, inherit));font-size:var(--tct-tab-font-size, var(--t-tab-font-size, 17px));border-bottom:3px solid transparent;display:block;-webkit-transition:color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n border-color var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n border-color var(--tct-tween-1, var(--app-tween-1, 0.2s ease))}:host([type='section']) .tab-list a{font-size:inherit;padding:var(--tct-scale-2, var(--app-scale-2, 10px))\n var(--tct-scale-1, var(--app-scale-1, 5px))}@media screen and (max-width: 767px){.tab-list a{font-size:inherit;padding:var(--tct-scale-2, var(--app-scale-2, 10px))\n var(--tct-scale-1, var(--app-scale-1, 5px))}}.tab-list a:hover{color:var(--tct-tab-active-color, var(--t-tab-active, #2e2e2e));background-color:var(--tct-tab-hover-bg-color, var(--t-tab-hover-bg-color, inherit));width:var(--tct-tab-hover-width, var(--t-tab-hover-width, 100%))}.tab-list a[aria-selected='true']{color:var(--tct-tab-active-color, var(--t-tab-active, #2e2e2e));border-color:currentColor;width:var(--tct-tab-active-width, var(--t-tab-active-width, 100%));background-color:var(--tct-tab-active-bg-color, var(--t-tab-active-bg-color, inherit))}:host([color='alt']) .tab-list a{color:var(--tct-tab-alt-inactive-color, var(--t-tab-alt-inactive, inherit))}:host([color='alt']) .tab-list a:hover,:host([color='alt']) .tab-list a[aria-selected='true']{color:var(--tct-tab-alt-active-color, var(--t-tab-alt-active, inherit))}.tab-content{padding:var(--tct-scale-2, var(--app-scale-2, 10px)) 0}.tab-content:focus{outline:none;-webkit-box-shadow:none;box-shadow:none}";export{h as q2_tab_container}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2b69fdec.system.js","./p-4576db15.system.js"],(function(e){"use strict";var t,a,o,r,i;return{setters:[function(e){t=e.r;a=e.c;o=e.h;r=e.g},function(e){i=e.c}],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}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}";var c=e("q2_radio",function(){function e(e){var o=this;t(this,e);this.change=a(this,"change",7);this.disabled=false;this.checked=false;this.groupDisabled=false;this.groupTileLayout=false;this.id="radio-"+i();this.inputChange=function(e){e.stopPropagation();o.change.emit({value:o.value})}}e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};Object.defineProperty(e.prototype,"computedAriaLabel",{get:function(){return!this.label&&this.ariaLabel&&this.loc(this.ariaLabel)||undefined},enumerable:false,configurable:true});e.prototype.onHostClick=function(e){if(this.disabled){e.stopImmediatePropagation()}};e.prototype.render=function(){return o("div",{class:this.groupTileLayout?"radio-tile":"radio-container"},o("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"}),o("label",{class:"radio-label",htmlFor:this.id,"test-id":"radioButton"},!this.groupTileLayout&&o("svg",{width:"18",height:"18",viewBox:"0 0 18 18",focusable:"false"},o("circle",{stroke:"none",fill:"none",cx:"9",cy:"9",r:"8"}),o("circle",{stroke:"none",fill:"none",cx:"9",cy:"9",r:"4"})),o("div",{class:"q2-radio-label-content"},this.label&&this.loc(this.label)||"",o("slot",null))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());c.style=n}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2b69fdec.system.js","./p-4576db15.system.js"],(function(e){"use strict";var t,n,o,i,a;return{setters:[function(e){t=e.r;n=e.c;o=e.h;i=e.g},function(e){a=e.c}],execute:function(){var r="*{-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}";var s=e("q2_section",function(){function e(e){var o=this;t(this,e);this.change=n(this,"change",7);this.hasYieldedHeader=false;this.guid=a();this.animating=false;this.titleId="q2-section-title-"+this.guid;this.contentId="q2-section-content-"+this.guid;this.onHeaderClick=function(){o.collapsible&&o.change.emit({expanded:!o.expanded})};this.onAnimationStart=function(){if(o.collapsible){o.animating=false;o.endAnimation();o.animating=true;o.resizerFn=setInterval(o.resizeIframe,5)}};this.onAnimationEnd=function(){var e=o.expanded?"auto":"0px";o.setContentWrapperHeight(e);o.animating=false;setTimeout((function(){o.endAnimation()}),1e3)};this.endAnimation=function(){o.resizerFn&&clearInterval(o.resizerFn)};this.addHeaderSlotListener=function(){if(o.headerSlot){o.headerSlot.addEventListener("slotchange",o.onHeaderSlotChange);return}var e=new MutationObserver(o.onHeaderSlotChange);e.observe(o.headerSlotWrapper,{childList:true});o.headerSlotMutationObserver=e};this.removeHeaderSlotListener=function(){if(o.headerSlot){o.headerSlot.removeEventListener("slotchange",o.onHeaderSlotChange);return}o.headerSlotMutationObserver.disconnect()};this.onHeaderSlotChange=function(){var e=o.headerSlot?o.headerSlot.assignedNodes().length>0:o.headerSlotWrapper.children.length>0;if(o.hasYieldedHeader!==e){o.hasYieldedHeader=!!e}};this.addContentSlotListener=function(){if(o.contentSlot){o.contentSlot.addEventListener("slotchange",o.resizeIframe);return}var e=new MutationObserver(o.resizeIframe);e.observe(o.contentContainer,{childList:true,subtree:true});o.contentSlotMutationObserver=e};this.removeContentSlotListener=function(){if(o.contentSlot){o.contentSlot.removeEventListener("slotchange",o.resizeIframe);return}o.contentSlotMutationObserver.disconnect()}}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.componentDidLoad=function(){this.onHeaderSlotChange();this.addHeaderSlotListener();this.addContentSlotListener()};e.prototype.disconnectedCallback=function(){this.removeHeaderSlotListener();this.removeContentSlotListener()};Object.defineProperty(e.prototype,"wrapperClasses",{get:function(){var e=!!this.label||this.hasYieldedHeader;var t=this.collapsible?" collapsible":"";var n=this.expanded||!this.collapsible?" expanded":" collapsed";var o=e?" has-header":"";var i=this.animating?" animate":"";return"q2-section-wrapper"+t+n+o+i},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"btnAriaLabel",{get:function(){var e=this.label&&this.loc(this.label)||"";return this.expanded?this.loc("tecton.element.section.collapse")+" "+e:this.loc("tecton.element.section.expand")+" "+e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"slottedContentHeight",{get:function(){var e=this.contentContainer;return(e.offsetHeight||0)+"px"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"contentWrapper",{get:function(){return this.hostElement.shadowRoot.querySelector(".q2-section-content-wrapper")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"contentContainer",{get:function(){return this.hostElement.shadowRoot.querySelector(".q2-section-content")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"headerSlotWrapper",{get:function(){return this.hostElement.shadowRoot.querySelector(".q2-section-header-slot-wrapper")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"headerSlot",{get:function(){return this.hostElement.shadowRoot.querySelector('slot[name="q2-section-header"]')},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"contentSlot",{get:function(){return this.hostElement.shadowRoot.querySelector(".q2-section-content slot")},enumerable:false,configurable:true});e.prototype.defaultChangeHandler=function(e){if(e.target===this.hostElement&&!this.hostElement.onchange&&!!e.detail){this.expanded=e.detail.expanded}};e.prototype.expandedObserver=function(){if(this.collapsible){this.animating=false;this.endAnimation();this.animating=true}this.setContentWrapperHeight(this.slottedContentHeight)};e.prototype.collapsibleObserver=function(){this.setContentWrapperHeight(this.slottedContentHeight)};e.prototype.setContentWrapperHeight=function(e){if(this.collapsible&&this.contentHeight!==e){this.contentHeight=e;this.contentWrapper.style.setProperty("height",this.contentHeight)}};e.prototype.render=function(){return o("section",{class:this.wrapperClasses},o("div",{class:"q2-section-header"},o("div",{class:"q2-section-header-content",id:this.titleId,onClick:this.onHeaderClick},!this.hasYieldedHeader&&!!this.label?o("h2",{class:"title"},this.loc(this.label)):"",o("div",{class:"q2-section-header-slot-wrapper"},o("slot",{name:"q2-section-header"}))),this.collapsible&&!this.noCollapseIcon?o("q2-btn",{class:"q2-section-content-toggle "+(this.expanded?"expanded":"collapsed"),ariaLabel:this.btnAriaLabel,ariaExpanded:!!this.expanded,ariaControls:this.contentId,ariaHasPopup:true,"test-id":"toggleButton",icon:true,onClick:this.onHeaderClick},o("q2-icon",{type:"chevron-up",class:"toggle-icon"})):""),o("div",{class:"q2-section-content-wrapper",id:this.contentId,"aria-labelledby":this.titleId,role:"region",onAnimationStart:this.onAnimationStart,onAnimationEnd:this.onAnimationEnd},o("div",{class:"q2-section-content"},o("slot",null))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{expanded:["expandedObserver"],collapsible:["collapsibleObserver"]}},enumerable:false,configurable:true});return e}());s.style=r}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2b69fdec.system.js"],(function(o){"use strict";var n,t;return{setters:[function(o){n=o.r;t=o.h}],execute:function(){var e="*{-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}";var i=o("q2_loc",function(){function o(o){n(this,o)}o.prototype.loc=function(o,n){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(o,n):o};o.prototype.render=function(){return t("span",null,this.value&&this.loc(this.value,this.substitutions)||"")};return o}());i.style=e}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,g as o}from"./p-
|
|
1
|
+
import{r as t,c as e,h as i,g as o}from"./p-b5ebb4cb.js";import{c as r}from"./p-1d4bf5ef.js";const n=class{constructor(i){t(this,i),this.change=e(this,"change",7),this.disabled=!1,this.optional=!1,this.hasError=!1,this.id="checkbox-group-"+r(),this.onMutationObserved=()=>{this.valueUpdated(),this.disabledUpdated()},this.onInnerCheckboxChange=t=>{t.stopImmediatePropagation();const e={};this.checkboxElements.forEach(t=>{e[t.value]=!!t.checked}),this.change.emit(e)}}loc(t,e){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(t,e):t}get checkboxElements(){return Array.from(this.hostElement.querySelectorAll("q2-checkbox"))}get protectedValue(){return this.value||{}}componentDidLoad(){const t=new MutationObserver(this.onMutationObserved);t.observe(this.hostElement,{childList:!0}),this.mutationObserver=t,this.onMutationObserved()}disconnectedCallback(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null)}valueUpdated(){this.checkboxElements.forEach(t=>{this.protectedValue.hasOwnProperty(t.value)&&(t.checked=this.value[t.value])})}disabledUpdated(){this.checkboxElements.forEach(t=>{t.groupDisabled=this.disabled})}onHostElementChange(t){t.target!==this.hostElement||this.hostElement.onchange||(this.value=t.detail)}render(){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-checkbox-fieldset "+(this.hasError?"has-error":""),onChange:this.onInnerCheckboxChange,"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()))}inputDom(){return i("slot",null)}get hostElement(){return o(this)}static get watchers(){return{value:["valueUpdated"],disabled:["disabledUpdated"]}}};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{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}";export{n as q2_checkbox_group}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,p as o,w as t,a as n,d as s,N as r}from"./p-
|
|
1
|
+
import{C as e,p as o,w as t,a as n,d as s,N as r}from"./p-b5ebb4cb.js";const a="undefined"!=typeof Deno,c=!(a||"undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),p=(a&&Deno,c?process:a&&Deno,c?process:a&&Deno,()=>e&&e.supports&&e.supports("color","var(--c)")?n():__sc_import_q2_tecton_elements("./p-24fc4ba9.js").then(()=>(o.o=t.__cssshim)?(!1).i():0)),i=()=>{o.o=t.__cssshim;const e=Array.from(s.querySelectorAll("script")).find(e=>RegExp(`/${r}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===r),a=e["data-opts"]||{};return"onbeforeload"in e&&!history.scrollRestoration?{then(){}}:(a.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,t.location.href)).href,l(a.resourcesUrl,e),t.customElements?n(a):__sc_import_q2_tecton_elements("./p-46109683.js").then(()=>a))},l=(e,o)=>{const n="__sc_import_"+r.replace(/\s|-/g,"_");try{t[n]=Function("w","return import(w);//"+Math.random())}catch(a){const r=new Map;t[n]=a=>{const c=new URL(a,e).href;let p=r.get(c);if(!p){const e=s.createElement("script");e.type="module",e.crossOrigin=o.crossOrigin,e.src=URL.createObjectURL(new Blob([`import * as m from '${c}'; window.${n}.m = m;`],{type:"application/javascript"})),p=new Promise(o=>{e.onload=()=>{o(t[n].m),e.remove()}}),r.set(c,p),s.head.appendChild(e)}return p}}};export{p as a,i as p}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-dab8af84.system.js","./p-4576db15.system.js"],(function(e){"use strict";var t,o,c,r,a;return{setters:[function(e){t=e.r;o=e.c;c=e.h;r=e.g},function(e){a=e.c}],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}:host{display:block;padding:var(--tct-checkbox-vertical-padding, var(--tct-scale-2, var(--app-scale-2, 10px))) 0}label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;--q2-checkbox-outer-stroke-color:var(\n --tct-checkbox-outer-stroke-color,\n var(--tct-gray-11, var(--app-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))\n );--q2-checkbox-outer-fill-color:var(\n --tct-checkbox-outer-fill-color,\n var(--tct-white, var(--app-white, #ffffff))\n );--q2-checkbox-favorite-fill:var(\n --tct-checkbox-favorite-fill-color,\n var(--tct-stoplight-warning, var(--const-stoplight-warning, #f0b400))\n );--q2-checkbox-checked-color:var(\n --tct-checkbox-check-stroke-color,\n var(--t-checkbox-fill, var(--tct-gray-5, var(--app-gray-5, var(--tct-gray-d2, var(--app-gray-d2, #404040)))))\n )}input:disabled+label{opacity:var(\n --tct-checkbox-disabled-opacity,\n var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))\n )}.checkbox-icon{height:var(--tct-checkbox-size, 20px);width:var(--tct-checkbox-size, 20px);border-radius:var(\n --tct-checkbox-outer-border-radius,\n var(--tct-border-radius-1, var(--app-border-radius-1, 3px))\n );stroke:var(--q2-checkbox-outer-stroke-color);color:var(--q2-checkbox-outer-stroke-color);--t-icon-stroke-primary:var(--q2-checkbox-outer-stroke-color);stroke-width:var(--tct-checkbox-outer-stroke-width, 2);fill:var(--q2-checkbox-outer-fill-color);-ms-flex-negative:0;flex-shrink:0}input:focus+label .checkbox-icon{-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))}.checkbox-fill{stroke:var(--q2-checkbox-checked-color)}input:checked+label .checkbox-icon{fill:var(--tct-checkbox-checked-outer-fill-color, var(--q2-checkbox-outer-fill-color));stroke:var(--tct-checkbox-checked-outer-stroke-color, var(--q2-checkbox-outer-stroke-color))}input:focus+label .checkbox-icon{stroke:var(--tct-checkbox-focused-outer-stroke-color, var(--q2-checkbox-checked-color))}.checked-fill{stroke-width:var(--tct-checkbox-check-stroke-width, 2.5);stroke-linecap:round;stroke-linejoin:round}.indeterminate-fill{stroke-width:var(--tct-checkbox-indeterminate-stroke-width, 3.5)}.q2-checkbox-label-content{font-weight:var(--tct-checkbox-font-weight, 400);-ms-flex:1 1 auto;flex:1 1 auto;width:calc(\n 100% - var(--tct-checkbox-size, 20px) - var(--tct-scale-2, var(--app-scale-2, 10px))\n )}input:checked+label .q2-checkbox-label-content{font-weight:var(--tct-checkbox-selected-font-weight, 600);letter-spacing:var(--tct-checkbox-selected-letter-spacing, 0.25)}:host([type='favorite']) .checkbox-icon{--tct-icon-stroke-width:var(--tct-checkbox-favorite-stroke-width, 2.5);width:var(--tct-checkbox-size, 20px);height:var(--tct-checkbox-size, 20px);-webkit-transition:fill var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n stroke var(--tct-tween-2, var(--app-tween-2, 0.4s ease));transition:fill var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n stroke var(--tct-tween-2, var(--app-tween-2, 0.4s ease))}:host([type='favorite']) input:focus+label .checkbox-icon{color:var(--q2-checkbox-favorite-fill);--tct-icon-stroke-primary:var(--q2-checkbox-favorite-fill)}:host([type='favorite']) input:checked+label .checkbox-icon{color:var(--q2-checkbox-favorite-fill);--t-icon-stroke-primary:var(--q2-checkbox-favorite-fill);--tct-icon-stroke-primary:var(--q2-checkbox-favorite-fill);fill:var(--q2-checkbox-favorite-fill);--tct-icon-stroke-width:1;-webkit-transition:fill var(--tct-tween-1, var(--app-tween-1, 0.2s ease)),\n color var(--tct-tween-1, var(--app-tween-1, 0.2s ease)),\n stroke var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:fill var(--tct-tween-1, var(--app-tween-1, 0.2s ease)),\n color var(--tct-tween-1, var(--app-tween-1, 0.2s ease)),\n stroke var(--tct-tween-1, var(--app-tween-1, 0.2s ease))}:host([alignment='right']) label,:host([type='toggle']:not([alignment='left'])) label{-ms-flex-flow:row-reverse;flex-flow:row-reverse}.checkbox-icon,:host([type='toggle'][alignment='left']) .toggle-svg{margin-right:var(--tct-scale-2, var(--app-scale-2, 10px));margin-left:0}:host([alignment='right']) .checkbox-icon,.toggle-svg{margin-right:0;margin-left:var(--tct-scale-2, var(--app-scale-2, 10px))}:host([type='toggle']) .toggle-svg{height:30px;width:46px;position:relative}:host([type='toggle']) .toggle-track,:host([type='toggle']) .toggle-indicator{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host([type='toggle']) .toggle-track{fill:var(--tct-checkbox-toggle-track-color, var(--tct-gray-11, var(--app-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc)))));height:14px;width:46px}:host([type='toggle']) input:checked+label .toggle-track{fill:var(--tct-checkbox-toggle-checked-color, var(--q2-checkbox-checked-color));opacity:0.5}:host([type='toggle']) .toggle-indicator{-webkit-transition:left var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:left var(--tct-tween-1, var(--app-tween-1, 0.2s ease));height:30px;width:30px;left:0;border-radius:50%}:host([type='toggle']) input:checked+label .toggle-indicator{left:21px}:host([type='toggle']) .toggle-circle{fill:var(--tct-checkbox-toggle-circle-color, var(--tct-gray-9, var(--app-gray-9, var(--tct-gray, var(--app-gray, #999999)))))}:host([type='toggle']) input:checked+label .toggle-circle{fill:var(--tct-checkbox-toggle-checked-color, var(--q2-checkbox-checked-color))}:host([type='toggle']) input:checked+label .off,:host([type='toggle']) input:not(:checked)+label .on{opacity:0}:host([type='toggle']) input:focus+label .toggle-circle{stroke:var(--tct-checkbox-toggle-checked-color, var(--q2-checkbox-checked-color));stroke-width:10px;stroke-opacity:0.5}:host([type='toggle']) input:not(:checked):focus+label .toggle-circle{stroke:var(--tct-checkbox-toggle-circle-color, var(--tct-gray-9, var(--app-gray-9, var(--tct-gray, var(--app-gray, #999999)))))}:host([type='toggle']) .checked-fill{stroke:var(--tct-checkbox-toggle-icon-stroke, var(--tct-white, var(--app-white, #ffffff)));-webkit-transition:opacity var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:opacity var(--tct-tween-1, var(--app-tween-1, 0.2s ease))}:host([type='toggle']) input:checked+label .checked-fill{stroke:var(--tct-checkbox-toggle-checked-icon-stroke, var(--t-checkbox-text, var(--tct-white, var(--app-white, #ffffff))))}";var l=e("q2_checkbox",function(){function e(e){var c=this;t(this,e);this.change=o(this,"change",7);this.checked=false;this.id="checkbox-"+a();this.onInputChange=function(e){e.stopPropagation();c.change.emit({value:e.target.value,checked:e.target.checked})}}e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};Object.defineProperty(e.prototype,"computedAriaLabel",{get:function(){return!this.label&&this.ariaLabel&&this.loc(this.ariaLabel)||undefined},enumerable:false,configurable:true});e.prototype.defaultChangeHandler=function(e){if(e.target===this.hostElement&&!this.hostElement.onchange&&!!e.detail){this.checked=e.detail.checked}};e.prototype.render=function(){return c("div",{class:"checkbox-container"},c("input",{id:this.id,type:"checkbox",checked:this.indeterminate||this.checked||false,disabled:!!this.disabled||!!this.groupDisabled,class:"sr",value:this.value,name:this.name||this.id,"aria-label":this.computedAriaLabel,onChange:this.onInputChange,"test-id":"q2CheckboxInnerCheckBox"}),c("label",{htmlFor:this.id,"test-id":"checkboxButton"},this.generateCheckboxSVG(),c("div",{class:"q2-checkbox-label-content"},this.label&&this.loc(this.label)||"",c("slot",null))))};e.prototype.generateCheckboxSVG=function(){if(this.type==="favorite"){return c("q2-icon",{type:"star",class:"checkbox-icon"})}if(this.type==="toggle"){return this.generateToggleSVG()}return c("svg",{"aria-hidden":"true",width:"20",height:"20",viewBox:"0 0 20 20",class:"checkbox-icon",focusable:"false"},c("rect",{fill:"none",x:"1",y:"1",width:"18",height:"18",rx:"3"}),(this.checked||this.indeterminate)&&this.generateCheckBoxSVGFill())};e.prototype.generateCheckBoxSVGFill=function(){if(this.indeterminate){return c("line",{class:"checkbox-fill indeterminate-fill",x1:"4",y1:"10",x2:"16",y2:"10"})}return c("polyline",{class:"checkbox-fill checked-fill",points:"5 11 8.5 14.5 15 6"})};e.prototype.generateToggleSVG=function(){return c("div",{class:"toggle-svg"},c("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 46 14",class:"toggle-track"},c("rect",{width:"36",height:"14",rx:"7",x:"5"})),c("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 30 30",class:"toggle-indicator"},c("circle",{class:"toggle-circle",width:"20",height:"20",cx:"15",cy:"15",r:"10"}),c("line",{class:"off checked-fill",x1:"12",y1:"18",x2:"18",y2:"12"}),c("line",{class:"off checked-fill",x1:"12",y1:"12",x2:"18",y2:"18"}),c("polyline",{class:"on checked-fill",points:"11,16 14,19 18,12 14,19"})))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());l.style=i}}}));
|
|
1
|
+
System.register(["./p-2b69fdec.system.js","./p-4576db15.system.js"],(function(e){"use strict";var t,o,c,r,a;return{setters:[function(e){t=e.r;o=e.c;c=e.h;r=e.g},function(e){a=e.c}],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}:host{display:block;padding:var(--tct-checkbox-vertical-padding, var(--tct-scale-2, var(--app-scale-2, 10px))) 0}label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;--q2-checkbox-outer-stroke-color:var(\n --tct-checkbox-outer-stroke-color,\n var(--tct-gray-11, var(--app-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))\n );--q2-checkbox-outer-fill-color:var(\n --tct-checkbox-outer-fill-color,\n var(--tct-white, var(--app-white, #ffffff))\n );--q2-checkbox-favorite-fill:var(\n --tct-checkbox-favorite-fill-color,\n var(--tct-stoplight-warning, var(--const-stoplight-warning, #f0b400))\n );--q2-checkbox-checked-color:var(\n --tct-checkbox-check-stroke-color,\n var(--t-checkbox-fill, var(--tct-gray-5, var(--app-gray-5, var(--tct-gray-d2, var(--app-gray-d2, #404040)))))\n )}input:disabled+label{opacity:var(\n --tct-checkbox-disabled-opacity,\n var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))\n )}.checkbox-icon{height:var(--tct-checkbox-size, 20px);width:var(--tct-checkbox-size, 20px);border-radius:var(\n --tct-checkbox-outer-border-radius,\n var(--tct-border-radius-1, var(--app-border-radius-1, 3px))\n );stroke:var(--q2-checkbox-outer-stroke-color);color:var(--q2-checkbox-outer-stroke-color);--t-icon-stroke-primary:var(--q2-checkbox-outer-stroke-color);stroke-width:var(--tct-checkbox-outer-stroke-width, 2);fill:var(--q2-checkbox-outer-fill-color);-ms-flex-negative:0;flex-shrink:0}input:focus+label .checkbox-icon{-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))}.checkbox-fill{stroke:var(--q2-checkbox-checked-color)}input:checked+label .checkbox-icon{fill:var(--tct-checkbox-checked-outer-fill-color, var(--q2-checkbox-outer-fill-color));stroke:var(--tct-checkbox-checked-outer-stroke-color, var(--q2-checkbox-outer-stroke-color))}input:focus+label .checkbox-icon{stroke:var(--tct-checkbox-focused-outer-stroke-color, var(--q2-checkbox-checked-color))}.checked-fill{stroke-width:var(--tct-checkbox-check-stroke-width, 2.5);stroke-linecap:round;stroke-linejoin:round}.indeterminate-fill{stroke-width:var(--tct-checkbox-indeterminate-stroke-width, 3.5)}.q2-checkbox-label-content{font-weight:var(--tct-checkbox-font-weight, 400);-ms-flex:1 1 auto;flex:1 1 auto;width:calc(\n 100% - var(--tct-checkbox-size, 20px) - var(--tct-scale-2, var(--app-scale-2, 10px))\n )}input:checked+label .q2-checkbox-label-content{font-weight:var(--tct-checkbox-selected-font-weight, 600);letter-spacing:var(--tct-checkbox-selected-letter-spacing, 0.25)}:host([type='favorite']) .checkbox-icon{--tct-icon-stroke-width:var(--tct-checkbox-favorite-stroke-width, 2.5);width:var(--tct-checkbox-size, 20px);height:var(--tct-checkbox-size, 20px);-webkit-transition:fill var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n stroke var(--tct-tween-2, var(--app-tween-2, 0.4s ease));transition:fill var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n stroke var(--tct-tween-2, var(--app-tween-2, 0.4s ease))}:host([type='favorite']) input:focus+label .checkbox-icon{color:var(--q2-checkbox-favorite-fill);--tct-icon-stroke-primary:var(--q2-checkbox-favorite-fill)}:host([type='favorite']) input:checked+label .checkbox-icon{color:var(--q2-checkbox-favorite-fill);--t-icon-stroke-primary:var(--q2-checkbox-favorite-fill);--tct-icon-stroke-primary:var(--q2-checkbox-favorite-fill);fill:var(--q2-checkbox-favorite-fill);--tct-icon-stroke-width:1;-webkit-transition:fill var(--tct-tween-1, var(--app-tween-1, 0.2s ease)),\n color var(--tct-tween-1, var(--app-tween-1, 0.2s ease)),\n stroke var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:fill var(--tct-tween-1, var(--app-tween-1, 0.2s ease)),\n color var(--tct-tween-1, var(--app-tween-1, 0.2s ease)),\n stroke var(--tct-tween-1, var(--app-tween-1, 0.2s ease))}:host([alignment='right']) label,:host([type='toggle']:not([alignment='left'])) label{-ms-flex-flow:row-reverse;flex-flow:row-reverse}.checkbox-icon,:host([type='toggle'][alignment='left']) .toggle-svg{margin-right:var(--tct-scale-2, var(--app-scale-2, 10px));margin-left:0}:host([alignment='right']) .checkbox-icon,.toggle-svg{margin-right:0;margin-left:var(--tct-scale-2, var(--app-scale-2, 10px))}:host([type='toggle']) .toggle-svg{height:30px;width:46px;position:relative}:host([type='toggle']) .toggle-track,:host([type='toggle']) .toggle-indicator{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host([type='toggle']) .toggle-track{fill:var(--tct-checkbox-toggle-track-color, var(--tct-gray-11, var(--app-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc)))));height:14px;width:46px}:host([type='toggle']) input:checked+label .toggle-track{fill:var(--tct-checkbox-toggle-checked-color, var(--q2-checkbox-checked-color));opacity:0.5}:host([type='toggle']) .toggle-indicator{-webkit-transition:left var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:left var(--tct-tween-1, var(--app-tween-1, 0.2s ease));height:30px;width:30px;left:0;border-radius:50%}:host([type='toggle']) input:checked+label .toggle-indicator{left:21px}:host([type='toggle']) .toggle-circle{fill:var(--tct-checkbox-toggle-circle-color, var(--tct-gray-9, var(--app-gray-9, var(--tct-gray, var(--app-gray, #999999)))))}:host([type='toggle']) input:checked+label .toggle-circle{fill:var(--tct-checkbox-toggle-checked-color, var(--q2-checkbox-checked-color))}:host([type='toggle']) input:checked+label .off,:host([type='toggle']) input:not(:checked)+label .on{opacity:0}:host([type='toggle']) input:focus+label .toggle-circle{stroke:var(--tct-checkbox-toggle-checked-color, var(--q2-checkbox-checked-color));stroke-width:10px;stroke-opacity:0.5}:host([type='toggle']) input:not(:checked):focus+label .toggle-circle{stroke:var(--tct-checkbox-toggle-circle-color, var(--tct-gray-9, var(--app-gray-9, var(--tct-gray, var(--app-gray, #999999)))))}:host([type='toggle']) .checked-fill{stroke:var(--tct-checkbox-toggle-icon-stroke, var(--tct-white, var(--app-white, #ffffff)));-webkit-transition:opacity var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:opacity var(--tct-tween-1, var(--app-tween-1, 0.2s ease))}:host([type='toggle']) input:checked+label .checked-fill{stroke:var(--tct-checkbox-toggle-checked-icon-stroke, var(--t-checkbox-text, var(--tct-white, var(--app-white, #ffffff))))}";var l=e("q2_checkbox",function(){function e(e){var c=this;t(this,e);this.change=o(this,"change",7);this.checked=false;this.id="checkbox-"+a();this.onInputChange=function(e){e.stopPropagation();c.change.emit({value:e.target.value,checked:e.target.checked})}}e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};Object.defineProperty(e.prototype,"computedAriaLabel",{get:function(){return!this.label&&this.ariaLabel&&this.loc(this.ariaLabel)||undefined},enumerable:false,configurable:true});e.prototype.defaultChangeHandler=function(e){if(e.target===this.hostElement&&!this.hostElement.onchange&&!!e.detail){this.checked=e.detail.checked}};e.prototype.render=function(){return c("div",{class:"checkbox-container"},c("input",{id:this.id,type:"checkbox",checked:this.indeterminate||this.checked||false,disabled:!!this.disabled||!!this.groupDisabled,class:"sr",value:this.value,name:this.name||this.id,"aria-label":this.computedAriaLabel,onChange:this.onInputChange,"test-id":"q2CheckboxInnerCheckBox"}),c("label",{htmlFor:this.id,"test-id":"checkboxButton"},this.generateCheckboxSVG(),c("div",{class:"q2-checkbox-label-content"},this.label&&this.loc(this.label)||"",c("slot",null))))};e.prototype.generateCheckboxSVG=function(){if(this.type==="favorite"){return c("q2-icon",{type:"star",class:"checkbox-icon"})}if(this.type==="toggle"){return this.generateToggleSVG()}return c("svg",{"aria-hidden":"true",width:"20",height:"20",viewBox:"0 0 20 20",class:"checkbox-icon",focusable:"false"},c("rect",{fill:"none",x:"1",y:"1",width:"18",height:"18",rx:"3"}),(this.checked||this.indeterminate)&&this.generateCheckBoxSVGFill())};e.prototype.generateCheckBoxSVGFill=function(){if(this.indeterminate){return c("line",{class:"checkbox-fill indeterminate-fill",x1:"4",y1:"10",x2:"16",y2:"10"})}return c("polyline",{class:"checkbox-fill checked-fill",points:"5 11 8.5 14.5 15 6"})};e.prototype.generateToggleSVG=function(){return c("div",{class:"toggle-svg"},c("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 46 14",class:"toggle-track"},c("rect",{width:"36",height:"14",rx:"7",x:"5"})),c("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 30 30",class:"toggle-indicator"},c("circle",{class:"toggle-circle",width:"20",height:"20",cx:"15",cy:"15",r:"10"}),c("line",{class:"off checked-fill",x1:"12",y1:"18",x2:"18",y2:"12"}),c("line",{class:"off checked-fill",x1:"12",y1:"12",x2:"18",y2:"18"}),c("polyline",{class:"on checked-fill",points:"11,16 14,19 18,12 14,19"})))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());l.style=i}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,g as e}from"./p-
|
|
1
|
+
import{r as t,h as o,g as e}from"./p-b5ebb4cb.js";import{c as i}from"./p-1d4bf5ef.js";const r=class{constructor(o){t(this,o),this.disabled=!1,this.hidden=!1,this.guid=i(),this.setHidden=()=>{this.hidden=this.options.every(t=>t.hidden||t._multiSelectHidden)}}componentWillLoad(){const t=new MutationObserver(this.setHidden);t.observe(this.hostElement,{childList:!0,attributes:!0,subtree:!0}),this.mutationObserver=t,this.setHidden(),this.disabledWatcher(this.disabled)}disconnectedCallback(){this.mutationObserver.disconnect(),this.mutationObserver=null}get headerId(){return"q2-optgroup-header-"+this.guid}get options(){return Array.from(this.hostElement.querySelectorAll("q2-option"))}loc(t,o){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(t,o):t}disabledWatcher(t){this.options.forEach(o=>{o.disabledGroup=!!t})}render(){return o("div",{class:"q2-optgroup-container",hidden:this.hidden,"aria-labelledby":this.headerId,role:"group"},o("div",{class:"q2-optgroup-header",id:this.headerId},this.label&&this.loc(this.label)||""),o("div",{class:"q2-optgroup-options"},o("slot",null)))}get hostElement(){return e(this)}static get watchers(){return{disabled:["disabledWatcher"]}}};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}:host{display:block}.q2-optgroup-header{background-color:var(\n --tct-optgroup-header-bg,\n var(--tct-gray-13, var(--app-gray-13, var(--tct-gray-l2, var(--app-gray-l2, #e6e6e6))))\n );padding:var(--tct-scale-1, var(--app-scale-1, 5px))\n var(--tct-scale-2, var(--app-scale-2, 10px));font-weight:var(--tct-optgroup-header-font-weight, 600);text-transform:var(--tct-optgroup-header-text-transform, uppercase);}";export{r as q2_optgroup}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-2b69fdec.system.js"],(function(t){"use strict";var e,o,i;return{setters:[function(t){e=t.r;o=t.h;i=t.g}],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}:host{display:block}.q2-option-container{--q2-option-selected-icon-size:var(\n --tct-option-selected-icon-size,\n var(--tct-scale-3, var(--app-scale-3, 15px))\n )}.q2-option-container:not([hidden]){padding:var(--tct-scale-2, var(--app-scale-2, 10px));min-height:44px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer}.q2-option-container[aria-disabled='true']{cursor:not-allowed;opacity:var(--tct-disabled-opacity, var(--app-disabled-opacity, 0.4))}.q2-option-container:not([aria-disabled='true']):hover,:host([active]) .q2-option-container,:host(:focus) .q2-option-container{background-color:var(--tct-option-active-bg, var(--tct-gray-14, var(--app-gray-14, var(--tct-gray-l3, var(--app-gray-l3, #f2f2f2)))));color:var(--tct-option-active-font-color, inherit)}.q2-option-selection{-ms-flex:0 0 var(--q2-option-selected-icon-size);flex:0 0 var(--q2-option-selected-icon-size);margin-right:var(--tct-scale-1, var(--app-scale-1, 5px))}.q2-option-selection-icon{width:var(--q2-option-selected-icon-size);height:var(--q2-option-selected-icon-size)}.q2-option-content{-ms-flex:1 1 auto;flex:1 1 auto}:host(:not([multiline])) .q2-option-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}";var s=t("q2_option",function(){function t(t){var o=this;e(this,t);this._multiSelectHidden=false;this.onOptionClick=function(t){t.stopImmediatePropagation();var e=o.disabled||o.disabledGroup;!e&&o.hostElement.dispatchEvent(new MouseEvent("click",{bubbles:true}))}}t.prototype.render=function(){return o("div",{role:"option","aria-selected":""+this.selected,"aria-disabled":""+(this.disabledGroup||this.disabled||false),id:this.optionId,hidden:this._multiSelectHidden||this.hidden||false,class:"q2-option-container",tabindex:"0",onClick:this.onOptionClick},o("div",{class:"q2-option-selection"},this.selected?o("q2-icon",{type:"checkmark",class:"q2-option-selection-icon"}):""),o("div",{class:"q2-option-content"},o("slot",null)))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());s.style=n}}}));
|