blip-ds 1.288.0 → 1.288.2
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/blip-ds/bds-accordion-body.entry.js +1 -1
- package/dist/blip-ds/bds-accordion-body.system.entry.js +1 -1
- package/dist/blip-ds/bds-accordion-group.entry.js +1 -1
- package/dist/blip-ds/bds-accordion-group.system.entry.js +1 -1
- package/dist/blip-ds/bds-accordion-header.entry.js +1 -1
- package/dist/blip-ds/bds-accordion-header.system.entry.js +1 -1
- package/dist/blip-ds/bds-accordion.entry.js +1 -1
- package/dist/blip-ds/bds-accordion.system.entry.js +1 -1
- package/dist/blip-ds/bds-autocomplete.entry.js +1 -1
- package/dist/blip-ds/bds-autocomplete.system.entry.js +1 -1
- package/dist/blip-ds/bds-carousel-item.entry.js +1 -1
- package/dist/blip-ds/bds-carousel-item.system.entry.js +1 -1
- package/dist/blip-ds/bds-carousel.entry.js +46 -14
- package/dist/blip-ds/bds-carousel.system.entry.js +1 -1
- package/dist/blip-ds/bds-datepicker.entry.js +1 -1
- package/dist/blip-ds/bds-datepicker.system.entry.js +1 -1
- package/dist/blip-ds/bds-dropdown.entry.js +1 -1
- package/dist/blip-ds/bds-dropdown.system.entry.js +1 -1
- package/dist/blip-ds/bds-illustration.entry.js +1 -1
- package/dist/blip-ds/bds-illustration.system.entry.js +1 -1
- package/dist/blip-ds/bds-menu.entry.js +1 -1
- package/dist/blip-ds/bds-menu.system.entry.js +1 -1
- package/dist/blip-ds/bds-pagination.entry.js +1 -1
- package/dist/blip-ds/bds-pagination.system.entry.js +1 -1
- package/dist/blip-ds/bds-select-chips.entry.js +1 -1
- package/dist/blip-ds/bds-select-chips.system.entry.js +1 -1
- package/dist/blip-ds/bds-select.entry.js +1 -1
- package/dist/blip-ds/bds-select.system.entry.js +1 -1
- package/dist/blip-ds/blip-ds.esm.js +1 -1
- package/dist/blip-ds/blip-ds.system.js +1 -1
- package/dist/blip-ds/{p-3c75fd7e.system.entry.js → p-156fa894.system.entry.js} +1 -1
- package/dist/blip-ds/p-1f547018.js +1 -0
- package/dist/blip-ds/p-25d12c97.entry.js +1 -0
- package/dist/blip-ds/{p-ea1d5ff1.entry.js → p-2eb4fe82.entry.js} +1 -1
- package/dist/blip-ds/p-3106a0e6.entry.js +1 -0
- package/dist/blip-ds/p-38589718.system.entry.js +1 -0
- package/dist/blip-ds/p-3ee2c114.system.entry.js +1 -0
- package/dist/blip-ds/p-4f1e0809.system.entry.js +1 -0
- package/dist/blip-ds/{p-92b6d661.entry.js → p-5d2583d1.entry.js} +1 -1
- package/dist/blip-ds/{p-3e32a251.system.entry.js → p-63932058.system.entry.js} +1 -1
- package/dist/blip-ds/p-713babc8.entry.js +1 -0
- package/dist/blip-ds/{p-89d349c8.entry.js → p-7e29f528.entry.js} +1 -1
- package/dist/blip-ds/{p-a92626cb.system.entry.js → p-86ca5839.system.entry.js} +1 -1
- package/dist/blip-ds/{p-cea0b3a5.entry.js → p-8e75f1ed.entry.js} +1 -1
- package/dist/blip-ds/{p-3d7486c5.system.entry.js → p-92ad328f.system.entry.js} +1 -1
- package/dist/blip-ds/p-9673d9c7.system.js +1 -0
- package/dist/blip-ds/p-98789b55.system.entry.js +1 -0
- package/dist/blip-ds/p-9ff90629.system.entry.js +1 -0
- package/dist/blip-ds/p-a0aef969.entry.js +1 -0
- package/dist/blip-ds/{p-0443b578.entry.js → p-a34b8d81.entry.js} +1 -1
- package/dist/blip-ds/p-a39ef3b8.system.js +1 -1
- package/dist/blip-ds/{p-24f2e21f.system.entry.js → p-b978db05.system.entry.js} +1 -1
- package/dist/blip-ds/{p-b775bf6a.system.entry.js → p-bf0f6779.system.entry.js} +1 -1
- package/dist/blip-ds/p-bfd3f5c6.entry.js +1 -0
- package/dist/blip-ds/{p-ae4bc5e6.entry.js → p-c05c489b.entry.js} +1 -1
- package/dist/blip-ds/{p-c6ec9291.entry.js → p-d6888644.entry.js} +1 -1
- package/dist/blip-ds/p-d949ad6c.entry.js +1 -0
- package/dist/blip-ds/{p-ef8298cd.system.entry.js → p-e54bb8f0.system.entry.js} +1 -1
- package/dist/blip-ds/p-f011f6ff.system.entry.js +1 -0
- package/dist/blip-ds/p-f33d0917.entry.js +1 -0
- package/dist/blip-ds/{p-43aaf137.system.entry.js → p-fab2dd94.system.entry.js} +1 -1
- package/dist/blip-ds/position-element-9f3c6406.system.js +1 -0
- package/dist/blip-ds/{position-element-0bab6f68.js → position-element-c161d4f3.js} +6 -1
- package/dist/cjs/bds-accordion-body.cjs.entry.js +1 -1
- package/dist/cjs/bds-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/bds-accordion-header.cjs.entry.js +1 -1
- package/dist/cjs/bds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/bds-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/bds-carousel-item.cjs.entry.js +1 -1
- package/dist/cjs/bds-carousel.cjs.entry.js +46 -14
- package/dist/cjs/bds-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/bds-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/bds-illustration.cjs.entry.js +1 -1
- package/dist/cjs/{bds-loading-bar_2.cjs.entry.js → bds-loading-bar_3.cjs.entry.js} +31 -0
- package/dist/cjs/bds-menu.cjs.entry.js +1 -1
- package/dist/cjs/bds-pagination.cjs.entry.js +1 -1
- package/dist/cjs/bds-select-chips.cjs.entry.js +1 -1
- package/dist/cjs/bds-select.cjs.entry.js +1 -1
- package/dist/cjs/blip-ds.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{position-element-44d8a678.js → position-element-ba87e676.js} +6 -0
- package/dist/collection/components/accordion/accordion.css +6 -1
- package/dist/collection/components/carousel/carousel-item.js +1 -1
- package/dist/collection/components/carousel/carousel.css +11 -2
- package/dist/collection/components/carousel/carousel.js +105 -14
- package/dist/collection/utils/position-element.js +5 -0
- package/dist/esm/bds-accordion-body.entry.js +1 -1
- package/dist/esm/bds-accordion-group.entry.js +1 -1
- package/dist/esm/bds-accordion-header.entry.js +1 -1
- package/dist/esm/bds-accordion.entry.js +1 -1
- package/dist/esm/bds-autocomplete.entry.js +1 -1
- package/dist/esm/bds-carousel-item.entry.js +1 -1
- package/dist/esm/bds-carousel.entry.js +46 -14
- package/dist/esm/bds-datepicker.entry.js +1 -1
- package/dist/esm/bds-dropdown.entry.js +1 -1
- package/dist/esm/bds-illustration.entry.js +1 -1
- package/dist/esm/{bds-loading-bar_2.entry.js → bds-loading-bar_3.entry.js} +31 -1
- package/dist/esm/bds-menu.entry.js +1 -1
- package/dist/esm/bds-pagination.entry.js +1 -1
- package/dist/esm/bds-select-chips.entry.js +1 -1
- package/dist/esm/bds-select.entry.js +1 -1
- package/dist/esm/blip-ds.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{position-element-0bab6f68.js → position-element-a0847485.js} +6 -1
- package/dist/esm/{position-element-aa884d56.js → position-element-c161d4f3.js} +6 -1
- package/dist/esm-es5/bds-accordion-body.entry.js +1 -1
- package/dist/esm-es5/bds-accordion-group.entry.js +1 -1
- package/dist/esm-es5/bds-accordion-header.entry.js +1 -1
- package/dist/esm-es5/bds-accordion.entry.js +1 -1
- package/dist/esm-es5/bds-autocomplete.entry.js +1 -1
- package/dist/esm-es5/bds-carousel-item.entry.js +1 -1
- package/dist/esm-es5/bds-carousel.entry.js +1 -1
- package/dist/esm-es5/bds-datepicker.entry.js +1 -1
- package/dist/esm-es5/bds-dropdown.entry.js +1 -1
- package/dist/esm-es5/bds-loading-bar_3.entry.js +1 -0
- package/dist/esm-es5/bds-menu.entry.js +1 -1
- package/dist/esm-es5/bds-pagination.entry.js +1 -1
- package/dist/esm-es5/bds-select-chips.entry.js +1 -1
- package/dist/esm-es5/bds-select.entry.js +1 -1
- package/dist/esm-es5/blip-ds.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/position-element-a0847485.js +1 -0
- package/dist/types/components/carousel/carousel.d.ts +11 -0
- package/dist/types/components.d.ts +17 -0
- package/dist/types/utils/position-element.d.ts +1 -0
- package/package.json +1 -1
- package/dist/blip-ds/p-01cedd54.system.entry.js +0 -1
- package/dist/blip-ds/p-0220cb76.entry.js +0 -1
- package/dist/blip-ds/p-265f509b.system.entry.js +0 -1
- package/dist/blip-ds/p-3602aa3d.entry.js +0 -1
- package/dist/blip-ds/p-5338974a.system.js +0 -1
- package/dist/blip-ds/p-5478295a.system.entry.js +0 -1
- package/dist/blip-ds/p-5a845f1f.entry.js +0 -1
- package/dist/blip-ds/p-6fe05db8.entry.js +0 -1
- package/dist/blip-ds/p-71a9750c.entry.js +0 -1
- package/dist/blip-ds/p-78807dc6.js +0 -1
- package/dist/blip-ds/p-85c15648.entry.js +0 -1
- package/dist/blip-ds/p-ac1e93b0.system.entry.js +0 -1
- package/dist/blip-ds/p-da04de5b.system.entry.js +0 -1
- package/dist/blip-ds/p-da78999e.entry.js +0 -1
- package/dist/blip-ds/p-df9fe6a8.system.entry.js +0 -1
- package/dist/blip-ds/p-e90ffbff.entry.js +0 -1
- package/dist/blip-ds/p-ecee6492.system.entry.js +0 -1
- package/dist/blip-ds/position-element-fb34981f.system.js +0 -1
- package/dist/esm-es5/bds-loading-bar_2.entry.js +0 -1
- package/dist/esm-es5/bds-skeleton.entry.js +0 -1
- package/dist/esm-es5/position-element-aa884d56.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-06929dd0.js';
|
|
2
2
|
|
|
3
|
-
const accordionCss = ".accordion_header{display:
|
|
3
|
+
const accordionCss = ".accordion_header{display:-ms-flexbox;display:flex;grid-auto-flow:column;gap:24px;-ms-flex-pack:start;justify-content:start;-ms-flex-align:center;align-items:center;padding:24px;padding-right:56px;position:relative;color:var(--color-content-default, #454545);cursor:pointer}.accordion_header::before{content:\"\";position:absolute;inset:0;z-index:0}.accordion_header slot{display:-ms-flexbox;display:flex;width:100%;-ms-flex-negative:99999;flex-shrink:99999}.accordion_header *{position:relative;z-index:1}.accordion_header:hover::before{background-color:var(--color-content-default, #454545);opacity:0.08}.accordion_header .accButton{position:absolute;right:24px;top:calc(50% - 16px);border-radius:8px;contain:inherit;-webkit-transition:height 0.5s, all 0.3s;-moz-transition:height 0.5s, all 0.3s;transition:height 0.5s, all 0.3s;z-index:1}.accordion_header .accButton__isopen{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.accordion_header .accButton::before{content:\"\";position:absolute;inset:-4px;border:2px solid transparent;border-radius:4px}.accordion_header .accButton:focus-visible{outline:none}.accordion_header .accButton:focus-visible::before{border-color:var(--color-focus, #c226fb)}.accordion_header .accButton:hover{background-color:var(--color-surface-1, #f6f6f6)}.accordion_header .accButton:active{background-color:var(--color-surface-1, #f6f6f6)}.accordion_body{height:0;overflow:hidden;border-bottom:none;-webkit-transition:height 0.5s;-moz-transition:height 0.5s;transition:height 0.5s}.accordion_body::-webkit-scrollbar{width:16px;background-color:transparent}.accordion_body::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.accordion_body_isOpen{overflow:overlay}.accordion_body_divisor{border-bottom:1px solid var(--color-border-1, #c9c9c9)}.accordion_body .container{padding:8px 24px 48px;position:relative;color:var(--color-content-default, #454545)}";
|
|
4
4
|
|
|
5
5
|
const AccordionBody = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,o){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function a(t){try{s(o.next(t))}catch(e){i(e)}}function c(t){try{s(o["throw"](t))}catch(e){i(e)}}function s(t){t.done?n(t.value):r(t.value).then(a,c)}s((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(n=0)),n)try{if(o=1,r&&(i=c[0]&2?r["return"]:c[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;if(r=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;r=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1];i=c;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(c);break}if(i[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(s){c=[6,s];r=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./index-0425c4de.system.js"],(function(t){"use strict";var e,n;return{setters:[function(t){e=t.r;n=t.h}],execute:function(){var o='.accordion_header{display:
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,o){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function a(t){try{s(o.next(t))}catch(e){i(e)}}function c(t){try{s(o["throw"](t))}catch(e){i(e)}}function s(t){t.done?n(t.value):r(t.value).then(a,c)}s((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(n=0)),n)try{if(o=1,r&&(i=c[0]&2?r["return"]:c[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;if(r=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;r=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1];i=c;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(c);break}if(i[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(s){c=[6,s];r=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./index-0425c4de.system.js"],(function(t){"use strict";var e,n;return{setters:[function(t){e=t.r;n=t.h}],execute:function(){var o='.accordion_header{display:-ms-flexbox;display:flex;grid-auto-flow:column;gap:24px;-ms-flex-pack:start;justify-content:start;-ms-flex-align:center;align-items:center;padding:24px;padding-right:56px;position:relative;color:var(--color-content-default, #454545);cursor:pointer}.accordion_header::before{content:"";position:absolute;inset:0;z-index:0}.accordion_header slot{display:-ms-flexbox;display:flex;width:100%;-ms-flex-negative:99999;flex-shrink:99999}.accordion_header *{position:relative;z-index:1}.accordion_header:hover::before{background-color:var(--color-content-default, #454545);opacity:0.08}.accordion_header .accButton{position:absolute;right:24px;top:calc(50% - 16px);border-radius:8px;contain:inherit;-webkit-transition:height 0.5s, all 0.3s;-moz-transition:height 0.5s, all 0.3s;transition:height 0.5s, all 0.3s;z-index:1}.accordion_header .accButton__isopen{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.accordion_header .accButton::before{content:"";position:absolute;inset:-4px;border:2px solid transparent;border-radius:4px}.accordion_header .accButton:focus-visible{outline:none}.accordion_header .accButton:focus-visible::before{border-color:var(--color-focus, #c226fb)}.accordion_header .accButton:hover{background-color:var(--color-surface-1, #f6f6f6)}.accordion_header .accButton:active{background-color:var(--color-surface-1, #f6f6f6)}.accordion_body{height:0;overflow:hidden;border-bottom:none;-webkit-transition:height 0.5s;-moz-transition:height 0.5s;transition:height 0.5s}.accordion_body::-webkit-scrollbar{width:16px;background-color:transparent}.accordion_body::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.accordion_body_isOpen{overflow:overlay}.accordion_body_divisor{border-bottom:1px solid var(--color-border-1, #c9c9c9)}.accordion_body .container{padding:8px 24px 48px;position:relative;color:var(--color-content-default, #454545)}';var r=t("bds_accordion_body",function(){function t(t){var n=this;e(this,t);this.container=null;this.refContainer=function(t){n.container=t};this.isOpen=false;this.isOpenAftAnimation=false;this.heightContainer=undefined;this.numberElement=null;this.hasDivisor=true;this.dataTest=null}t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.isOpen=!this.isOpen;return[2]}))}))};t.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.isOpen=true;return[2]}))}))};t.prototype.close=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.isOpen=false;return[2]}))}))};t.prototype.divisor=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.hasDivisor=t;return[2]}))}))};t.prototype.isOpenChanged=function(){var t=this;this.heightContainer=this.isOpen?this.container.offsetHeight:0;if(this.isOpen){setTimeout((function(){t.isOpenAftAnimation=!t.isOpenAftAnimation}),500)}else{this.isOpenAftAnimation=!this.isOpenAftAnimation}};t.prototype.render=function(){var t=this;return n("div",{class:{accordion_body:true,accordion_body_divisor:this.hasDivisor,accordion_body_isOpen:this.isOpenAftAnimation},style:{height:"".concat(this.heightContainer,"px")},"data-test":this.dataTest},n("div",{class:"container",ref:function(e){return t.refContainer(e)}},n("slot",null)))};Object.defineProperty(t,"watchers",{get:function(){return{isOpen:["isOpenChanged"]}},enumerable:false,configurable:true});return t}());r.style=o}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, e as createEvent, h, g as getElement } from './index-06929dd0.js';
|
|
2
2
|
|
|
3
|
-
const accordionCss = ".accordion_header{display:
|
|
3
|
+
const accordionCss = ".accordion_header{display:-ms-flexbox;display:flex;grid-auto-flow:column;gap:24px;-ms-flex-pack:start;justify-content:start;-ms-flex-align:center;align-items:center;padding:24px;padding-right:56px;position:relative;color:var(--color-content-default, #454545);cursor:pointer}.accordion_header::before{content:\"\";position:absolute;inset:0;z-index:0}.accordion_header slot{display:-ms-flexbox;display:flex;width:100%;-ms-flex-negative:99999;flex-shrink:99999}.accordion_header *{position:relative;z-index:1}.accordion_header:hover::before{background-color:var(--color-content-default, #454545);opacity:0.08}.accordion_header .accButton{position:absolute;right:24px;top:calc(50% - 16px);border-radius:8px;contain:inherit;-webkit-transition:height 0.5s, all 0.3s;-moz-transition:height 0.5s, all 0.3s;transition:height 0.5s, all 0.3s;z-index:1}.accordion_header .accButton__isopen{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.accordion_header .accButton::before{content:\"\";position:absolute;inset:-4px;border:2px solid transparent;border-radius:4px}.accordion_header .accButton:focus-visible{outline:none}.accordion_header .accButton:focus-visible::before{border-color:var(--color-focus, #c226fb)}.accordion_header .accButton:hover{background-color:var(--color-surface-1, #f6f6f6)}.accordion_header .accButton:active{background-color:var(--color-surface-1, #f6f6f6)}.accordion_body{height:0;overflow:hidden;border-bottom:none;-webkit-transition:height 0.5s;-moz-transition:height 0.5s;transition:height 0.5s}.accordion_body::-webkit-scrollbar{width:16px;background-color:transparent}.accordion_body::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.accordion_body_isOpen{overflow:overlay}.accordion_body_divisor{border-bottom:1px solid var(--color-border-1, #c9c9c9)}.accordion_body .container{padding:8px 24px 48px;position:relative;color:var(--color-content-default, #454545)}";
|
|
4
4
|
|
|
5
5
|
const AccordionGroup = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(o,e,t,r){function n(o){return o instanceof t?o:new t((function(e){e(o)}))}return new(t||(t=Promise))((function(t,i){function c(o){try{s(r.next(o))}catch(e){i(e)}}function a(o){try{s(r["throw"](o))}catch(e){i(e)}}function s(o){o.done?t(o.value):n(o.value).then(c,a)}s((r=r.apply(o,e||[])).next())}))};var __generator=this&&this.__generator||function(o,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(o){return function(e){return s([o,e])}}function s(a){if(r)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(t=0)),t)try{if(r=1,n&&(i=a[0]&2?n["return"]:a[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;if(n=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;n=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){t.label=a[1];break}if(a[0]===6&&t.label<i[1]){t.label=i[1];i=a;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(a);break}if(i[2])t.ops.pop();t.trys.pop();continue}a=e.call(o,t)}catch(s){a=[6,s];n=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./index-0425c4de.system.js"],(function(o){"use strict";var e,t,r,n;return{setters:[function(o){e=o.r;t=o.e;r=o.h;n=o.g}],execute:function(){var i='.accordion_header{display:
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(o,e,t,r){function n(o){return o instanceof t?o:new t((function(e){e(o)}))}return new(t||(t=Promise))((function(t,i){function c(o){try{s(r.next(o))}catch(e){i(e)}}function a(o){try{s(r["throw"](o))}catch(e){i(e)}}function s(o){o.done?t(o.value):n(o.value).then(c,a)}s((r=r.apply(o,e||[])).next())}))};var __generator=this&&this.__generator||function(o,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(o){return function(e){return s([o,e])}}function s(a){if(r)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(t=0)),t)try{if(r=1,n&&(i=a[0]&2?n["return"]:a[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;if(n=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;n=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){t.label=a[1];break}if(a[0]===6&&t.label<i[1]){t.label=i[1];i=a;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(a);break}if(i[2])t.ops.pop();t.trys.pop();continue}a=e.call(o,t)}catch(s){a=[6,s];n=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./index-0425c4de.system.js"],(function(o){"use strict";var e,t,r,n;return{setters:[function(o){e=o.r;t=o.e;r=o.h;n=o.g}],execute:function(){var i='.accordion_header{display:-ms-flexbox;display:flex;grid-auto-flow:column;gap:24px;-ms-flex-pack:start;justify-content:start;-ms-flex-align:center;align-items:center;padding:24px;padding-right:56px;position:relative;color:var(--color-content-default, #454545);cursor:pointer}.accordion_header::before{content:"";position:absolute;inset:0;z-index:0}.accordion_header slot{display:-ms-flexbox;display:flex;width:100%;-ms-flex-negative:99999;flex-shrink:99999}.accordion_header *{position:relative;z-index:1}.accordion_header:hover::before{background-color:var(--color-content-default, #454545);opacity:0.08}.accordion_header .accButton{position:absolute;right:24px;top:calc(50% - 16px);border-radius:8px;contain:inherit;-webkit-transition:height 0.5s, all 0.3s;-moz-transition:height 0.5s, all 0.3s;transition:height 0.5s, all 0.3s;z-index:1}.accordion_header .accButton__isopen{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.accordion_header .accButton::before{content:"";position:absolute;inset:-4px;border:2px solid transparent;border-radius:4px}.accordion_header .accButton:focus-visible{outline:none}.accordion_header .accButton:focus-visible::before{border-color:var(--color-focus, #c226fb)}.accordion_header .accButton:hover{background-color:var(--color-surface-1, #f6f6f6)}.accordion_header .accButton:active{background-color:var(--color-surface-1, #f6f6f6)}.accordion_body{height:0;overflow:hidden;border-bottom:none;-webkit-transition:height 0.5s;-moz-transition:height 0.5s;transition:height 0.5s}.accordion_body::-webkit-scrollbar{width:16px;background-color:transparent}.accordion_body::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.accordion_body_isOpen{overflow:overlay}.accordion_body_divisor{border-bottom:1px solid var(--color-border-1, #c9c9c9)}.accordion_body .container{padding:8px 24px 48px;position:relative;color:var(--color-content-default, #454545)}';var c=o("bds_accordion_group",function(){function o(o){e(this,o);this.bdsAccordionCloseAll=t(this,"bdsAccordionCloseAll",7);this.bdsAccordionOpenAll=t(this,"bdsAccordionOpenAll",7);this.accordionsElement=null;this.collapse="single";this.divisor=true}o.prototype.closeAll=function(o){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){this.bdsAccordionCloseAll.emit();for(e=0;e<this.accordionsElement.length;e++){if(this.collapse!="multiple"){if(o!=e)this.accordionsElement[e].close()}else{this.accordionsElement[e].close()}}return[2]}))}))};o.prototype.openAll=function(o){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){this.bdsAccordionOpenAll.emit();for(e=0;e<this.accordionsElement.length;e++){if(this.collapse!="multiple"){if(o!=e)this.accordionsElement[e].open()}else{this.accordionsElement[e].open()}}return[2]}))}))};o.prototype.componentWillRender=function(){this.accordionsElement=this.element.getElementsByTagName("bds-accordion");for(var o=0;o<this.accordionsElement.length;o++){this.accordionsElement[o].reciveNumber(o);this.accordionsElement[o].divisor=this.divisor}};o.prototype.render=function(){return r("div",{class:"accordion_group"},r("slot",null))};Object.defineProperty(o.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return o}());c.style=i}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-06929dd0.js';
|
|
2
2
|
|
|
3
|
-
const accordionCss = ".accordion_header{display:
|
|
3
|
+
const accordionCss = ".accordion_header{display:-ms-flexbox;display:flex;grid-auto-flow:column;gap:24px;-ms-flex-pack:start;justify-content:start;-ms-flex-align:center;align-items:center;padding:24px;padding-right:56px;position:relative;color:var(--color-content-default, #454545);cursor:pointer}.accordion_header::before{content:\"\";position:absolute;inset:0;z-index:0}.accordion_header slot{display:-ms-flexbox;display:flex;width:100%;-ms-flex-negative:99999;flex-shrink:99999}.accordion_header *{position:relative;z-index:1}.accordion_header:hover::before{background-color:var(--color-content-default, #454545);opacity:0.08}.accordion_header .accButton{position:absolute;right:24px;top:calc(50% - 16px);border-radius:8px;contain:inherit;-webkit-transition:height 0.5s, all 0.3s;-moz-transition:height 0.5s, all 0.3s;transition:height 0.5s, all 0.3s;z-index:1}.accordion_header .accButton__isopen{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.accordion_header .accButton::before{content:\"\";position:absolute;inset:-4px;border:2px solid transparent;border-radius:4px}.accordion_header .accButton:focus-visible{outline:none}.accordion_header .accButton:focus-visible::before{border-color:var(--color-focus, #c226fb)}.accordion_header .accButton:hover{background-color:var(--color-surface-1, #f6f6f6)}.accordion_header .accButton:active{background-color:var(--color-surface-1, #f6f6f6)}.accordion_body{height:0;overflow:hidden;border-bottom:none;-webkit-transition:height 0.5s;-moz-transition:height 0.5s;transition:height 0.5s}.accordion_body::-webkit-scrollbar{width:16px;background-color:transparent}.accordion_body::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.accordion_body_isOpen{overflow:overlay}.accordion_body_divisor{border-bottom:1px solid var(--color-border-1, #c9c9c9)}.accordion_body .container{padding:8px 24px 48px;position:relative;color:var(--color-content-default, #454545)}";
|
|
4
4
|
|
|
5
5
|
const AccordionHeader = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,o,n){function r(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(e){i(e)}}function c(t){try{s(n["throw"](t))}catch(e){i(e)}}function s(t){t.done?o(t.value):r(t.value).then(a,c)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(o=0)),o)try{if(n=1,r&&(i=c[0]&2?r["return"]:c[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;if(r=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:o.label++;return{value:c[1],done:false};case 5:o.label++;r=c[1];c=[0];continue;case 7:c=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){o=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(c[0]===6&&o.label<i[1]){o.label=i[1];i=c;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(c);break}if(i[2])o.ops.pop();o.trys.pop();continue}c=e.call(t,o)}catch(s){c=[6,s];r=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./index-0425c4de.system.js"],(function(t){"use strict";var e,o,n;return{setters:[function(t){e=t.r;o=t.h;n=t.g}],execute:function(){var r='.accordion_header{display:
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,o,n){function r(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(e){i(e)}}function c(t){try{s(n["throw"](t))}catch(e){i(e)}}function s(t){t.done?o(t.value):r(t.value).then(a,c)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(o=0)),o)try{if(n=1,r&&(i=c[0]&2?r["return"]:c[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;if(r=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:o.label++;return{value:c[1],done:false};case 5:o.label++;r=c[1];c=[0];continue;case 7:c=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){o=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(c[0]===6&&o.label<i[1]){o.label=i[1];i=c;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(c);break}if(i[2])o.ops.pop();o.trys.pop();continue}c=e.call(t,o)}catch(s){c=[6,s];r=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./index-0425c4de.system.js"],(function(t){"use strict";var e,o,n;return{setters:[function(t){e=t.r;o=t.h;n=t.g}],execute:function(){var r='.accordion_header{display:-ms-flexbox;display:flex;grid-auto-flow:column;gap:24px;-ms-flex-pack:start;justify-content:start;-ms-flex-align:center;align-items:center;padding:24px;padding-right:56px;position:relative;color:var(--color-content-default, #454545);cursor:pointer}.accordion_header::before{content:"";position:absolute;inset:0;z-index:0}.accordion_header slot{display:-ms-flexbox;display:flex;width:100%;-ms-flex-negative:99999;flex-shrink:99999}.accordion_header *{position:relative;z-index:1}.accordion_header:hover::before{background-color:var(--color-content-default, #454545);opacity:0.08}.accordion_header .accButton{position:absolute;right:24px;top:calc(50% - 16px);border-radius:8px;contain:inherit;-webkit-transition:height 0.5s, all 0.3s;-moz-transition:height 0.5s, all 0.3s;transition:height 0.5s, all 0.3s;z-index:1}.accordion_header .accButton__isopen{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.accordion_header .accButton::before{content:"";position:absolute;inset:-4px;border:2px solid transparent;border-radius:4px}.accordion_header .accButton:focus-visible{outline:none}.accordion_header .accButton:focus-visible::before{border-color:var(--color-focus, #c226fb)}.accordion_header .accButton:hover{background-color:var(--color-surface-1, #f6f6f6)}.accordion_header .accButton:active{background-color:var(--color-surface-1, #f6f6f6)}.accordion_body{height:0;overflow:hidden;border-bottom:none;-webkit-transition:height 0.5s;-moz-transition:height 0.5s;transition:height 0.5s}.accordion_body::-webkit-scrollbar{width:16px;background-color:transparent}.accordion_body::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.accordion_body_isOpen{overflow:overlay}.accordion_body_divisor{border-bottom:1px solid var(--color-border-1, #c9c9c9)}.accordion_body .container{padding:8px 24px 48px;position:relative;color:var(--color-content-default, #454545)}';var i=t("bds_accordion_header",function(){function t(t){var o=this;e(this,t);this.accordionElement=null;this.toggleHeader=function(){var t;(t=o.accordionElement)===null||t===void 0?void 0:t.toggle()};this.isOpen=false;this.btToggleIsfocus=false;this.numberElement=null;this.accordionTitle=null;this.icon=null;this.avatarName=null;this.avatarThumb=null;this.dataTest=null}t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.isOpen=!this.isOpen;return[2]}))}))};t.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.isOpen=true;return[2]}))}))};t.prototype.close=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.isOpen=false;return[2]}))}))};t.prototype.componentWillRender=function(){this.accordionElement=this.element.parentElement};t.prototype.handleKeyDown=function(t){var e;if(t.key=="Enter"){(e=this.accordionElement)===null||e===void 0?void 0:e.toggle()}};t.prototype.render=function(){return o("div",{onClick:this.toggleHeader,class:{accordion_header:true},"data-test":this.dataTest},this.avatarName||this.avatarThumb?o("bds-avatar",{name:this.avatarName,thumbnail:this.avatarThumb,size:"extra-small"}):this.icon&&o("bds-icon",{size:"x-large",name:this.icon,color:"inherit"}),this.accordionTitle&&o("bds-typo",{bold:"bold",variant:"fs-16","line-height":"double"},this.accordionTitle),o("slot",null),o("bds-icon",{class:{accButton:true,accButton__isopen:this.isOpen,accButton__isfocus:this.btToggleIsfocus},size:"x-large",name:"arrow-down",color:"inherit",tabindex:"0",onKeyDown:this.handleKeyDown.bind(this)}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());i.style=r}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, e as createEvent, h, g as getElement } from './index-06929dd0.js';
|
|
2
2
|
|
|
3
|
-
const accordionCss = ".accordion_header{display:
|
|
3
|
+
const accordionCss = ".accordion_header{display:-ms-flexbox;display:flex;grid-auto-flow:column;gap:24px;-ms-flex-pack:start;justify-content:start;-ms-flex-align:center;align-items:center;padding:24px;padding-right:56px;position:relative;color:var(--color-content-default, #454545);cursor:pointer}.accordion_header::before{content:\"\";position:absolute;inset:0;z-index:0}.accordion_header slot{display:-ms-flexbox;display:flex;width:100%;-ms-flex-negative:99999;flex-shrink:99999}.accordion_header *{position:relative;z-index:1}.accordion_header:hover::before{background-color:var(--color-content-default, #454545);opacity:0.08}.accordion_header .accButton{position:absolute;right:24px;top:calc(50% - 16px);border-radius:8px;contain:inherit;-webkit-transition:height 0.5s, all 0.3s;-moz-transition:height 0.5s, all 0.3s;transition:height 0.5s, all 0.3s;z-index:1}.accordion_header .accButton__isopen{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.accordion_header .accButton::before{content:\"\";position:absolute;inset:-4px;border:2px solid transparent;border-radius:4px}.accordion_header .accButton:focus-visible{outline:none}.accordion_header .accButton:focus-visible::before{border-color:var(--color-focus, #c226fb)}.accordion_header .accButton:hover{background-color:var(--color-surface-1, #f6f6f6)}.accordion_header .accButton:active{background-color:var(--color-surface-1, #f6f6f6)}.accordion_body{height:0;overflow:hidden;border-bottom:none;-webkit-transition:height 0.5s;-moz-transition:height 0.5s;transition:height 0.5s}.accordion_body::-webkit-scrollbar{width:16px;background-color:transparent}.accordion_body::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.accordion_body_isOpen{overflow:overlay}.accordion_body_divisor{border-bottom:1px solid var(--color-border-1, #c9c9c9)}.accordion_body .container{padding:8px 24px 48px;position:relative;color:var(--color-content-default, #454545)}";
|
|
4
4
|
|
|
5
5
|
const Accordion = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,o,n){function
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function c(e){try{s(n.next(e))}catch(t){r(t)}}function a(e){try{s(n["throw"](e))}catch(t){r(t)}}function s(e){e.done?o(e.value):i(e.value).then(c,a)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,i,r,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(e){return function(t){return s([e,t])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(o=0)),o)try{if(n=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;i=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(r=o.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(a[0]===6&&o.label<r[1]){o.label=r[1];r=a;break}if(r&&o.label<r[2]){o.label=r[2];o.ops.push(a);break}if(r[2])o.ops.pop();o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s];i=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./index-0425c4de.system.js"],(function(e){"use strict";var t,o,n,i;return{setters:[function(e){t=e.r;o=e.e;n=e.h;i=e.g}],execute:function(){var r='.accordion_header{display:-ms-flexbox;display:flex;grid-auto-flow:column;gap:24px;-ms-flex-pack:start;justify-content:start;-ms-flex-align:center;align-items:center;padding:24px;padding-right:56px;position:relative;color:var(--color-content-default, #454545);cursor:pointer}.accordion_header::before{content:"";position:absolute;inset:0;z-index:0}.accordion_header slot{display:-ms-flexbox;display:flex;width:100%;-ms-flex-negative:99999;flex-shrink:99999}.accordion_header *{position:relative;z-index:1}.accordion_header:hover::before{background-color:var(--color-content-default, #454545);opacity:0.08}.accordion_header .accButton{position:absolute;right:24px;top:calc(50% - 16px);border-radius:8px;contain:inherit;-webkit-transition:height 0.5s, all 0.3s;-moz-transition:height 0.5s, all 0.3s;transition:height 0.5s, all 0.3s;z-index:1}.accordion_header .accButton__isopen{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.accordion_header .accButton::before{content:"";position:absolute;inset:-4px;border:2px solid transparent;border-radius:4px}.accordion_header .accButton:focus-visible{outline:none}.accordion_header .accButton:focus-visible::before{border-color:var(--color-focus, #c226fb)}.accordion_header .accButton:hover{background-color:var(--color-surface-1, #f6f6f6)}.accordion_header .accButton:active{background-color:var(--color-surface-1, #f6f6f6)}.accordion_body{height:0;overflow:hidden;border-bottom:none;-webkit-transition:height 0.5s;-moz-transition:height 0.5s;transition:height 0.5s}.accordion_body::-webkit-scrollbar{width:16px;background-color:transparent}.accordion_body::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.accordion_body_isOpen{overflow:overlay}.accordion_body_divisor{border-bottom:1px solid var(--color-border-1, #c9c9c9)}.accordion_body .container{padding:8px 24px 48px;position:relative;color:var(--color-content-default, #454545)}';var c=e("bds_accordion",function(){function e(e){t(this,e);this.bdsToggle=o(this,"bdsToggle",7);this.bdsAccordionOpen=o(this,"bdsAccordionOpen",7);this.bdsAccordionClose=o(this,"bdsAccordionClose",7);this.accGroup=null;this.accheaders=null;this.accBodies=null;this.isOpen=false;this.numberElement=null;this.condition=false;this.startOpen=false;this.divisor=true}e.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.isOpen=!this.isOpen;this.bdsToggle.emit({value:this.isOpen});return[2]}))}))};e.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.isOpen=true;return[2]}))}))};e.prototype.close=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(o){(e=this.accheaders)===null||e===void 0?void 0:e.close();(t=this.accBodies)===null||t===void 0?void 0:t.close();this.isOpen=false;return[2]}))}))};e.prototype.notStart=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.startOpen=false;return[2]}))}))};e.prototype.reciveNumber=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.numberElement=e;return[2]}))}))};e.prototype.isOpenChanged=function(e){var t,o,n,i,r,c,a;if(this.accGroup.collapse=="single"&&this.condition===false){(t=this.accheaders)===null||t===void 0?void 0:t.toggle();(o=this.accBodies)===null||o===void 0?void 0:o.toggle();(n=this.accGroup)===null||n===void 0?void 0:n.closeAll(this.numberElement)}else{if(e){(i=this.accheaders)===null||i===void 0?void 0:i.open();(r=this.accBodies)===null||r===void 0?void 0:r.open();this.bdsAccordionOpen.emit()}else{(c=this.accheaders)===null||c===void 0?void 0:c.close();(a=this.accBodies)===null||a===void 0?void 0:a.close();this.bdsAccordionClose.emit()}}this.condition=false};e.prototype.componentWillLoad=function(){this.accGroup=this.element.parentElement.tagName=="BDS-ACCORDION-GROUP"&&this.element.parentElement;this.accheaders=this.element.children[0];this.accBodies=this.element.children[1];var e=this.element.querySelector("bds-accordion-body");if(e){e.divisor(this.divisor)}if(this.startOpen===true){this.condition=true;this.isOpen=true}};e.prototype.render=function(){return n("div",{class:"accordion_group"},n("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{isOpen:["isOpenChanged"]}},enumerable:false,configurable:true});return e}());c.style=r}}}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-06929dd0.js';
|
|
2
|
-
import { g as getScrollParent, p as positionAbsoluteElement } from './position-element-
|
|
2
|
+
import { g as getScrollParent, p as positionAbsoluteElement } from './position-element-c161d4f3.js';
|
|
3
3
|
|
|
4
4
|
const autocompleteCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;width:100%;max-width:100%;max-height:100%}:host input,:host textarea{-webkit-box-shadow:inherit;box-shadow:inherit}:host input::-webkit-input-placeholder,:host textarea::-webkit-input-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input::-moz-placeholder,:host textarea::-moz-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input:-ms-input-placeholder,:host textarea:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input::-ms-input-placeholder,:host textarea::-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input::placeholder,:host textarea::placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input::-webkit-input-placeholder,:host textarea::-webkit-input-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}.input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:8px 4px 9px 12px;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%}.input .bds-icon{position:relative;z-index:1}.input--state-primary{border:1px solid var(--color-border-1, #c9c9c9);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary .input__icon{position:relative}.input--state-primary .input__icon::before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-hover, rgba(0, 0, 0, 0.08));z-index:0;border-radius:8px}.input--state-primary:hover{border:1px solid var(--color-primary, #1e6bf1);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary.input--pressed{border:1px solid var(--color-primary, #1e6bf1);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px var(--color-info, #80e3eb);box-shadow:0 0 0 2px var(--color-info, #80e3eb)}.input--state-primary.input--pressed .input__icon .bds-icon{color:var(--color-primary, #1e6bf1)}.input--state-primary .input__container__label{color:var(--color-content-default, #454545)}.input--state-primary .input__container__label--pressed bds-typo{color:var(--color-primary, #1e6bf1)}.input--state-primary .input__container__text{caret-color:var(--color-primary, #1e6bf1);color:var(--color-content-default, #454545)}.input--state-primary .input__container__text:-moz-placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-primary .input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input--state-primary .input__container__text:placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-danger{border:1px solid var(--color-delete, #e60f0f);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger .input__icon{position:relative}.input--state-danger .input__icon::before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-surface-negative, #ffd6d6);z-index:0;opacity:50%;border-radius:8px}.input--state-danger:hover{border:1px solid var(--color-negative, #e60f0f);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger.input--pressed{border:1px solid var(--color-negative, #e60f0f);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px var(--color-error, #f99f9f);box-shadow:0 0 0 2px var(--color-error, #f99f9f)}.input--state-danger.input--pressed .input__icon .bds-icon{color:var(--color-negative, #e60f0f)}.input--state-danger .input__container__label{color:var(--color-delete, #e60f0f)}.input--state-danger .input__container__label--pressed bds-typo{color:var(--color-negative, #e60f0f)}.input--state-danger .input__container__text{caret-color:var(--color-negative, #e60f0f);color:var(--color-content-default, #454545)}.input--state-danger .input__container__text:-moz-placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-danger .input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input--state-danger .input__container__text:placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-success{border:1px solid var(--color-border-1, #c9c9c9);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-success .input__icon{position:relative}.input--state-success .input__icon::before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-surface-positive, #d3f4e5);z-index:0;border-radius:8px}.input--state-success:hover{border:1px solid var(--color-positive, #10603b);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-success.input--pressed{border:1px solid var(--color-positive, #10603b);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px var(--color-success, #84ebbc);box-shadow:0 0 0 2px var(--color-success, #84ebbc)}.input--state-success.input--pressed .input__icon .bds-icon{color:var(--color-positive, #10603b)}.input--state-success .input__container__label{color:var(--color-content-default, #454545)}.input--state-success .input__container__label--pressed bds-typo{color:var(--color-positive, #10603b)}.input--state-success .input__container__text{caret-color:var(--color-positive, #10603b);color:var(--color-content-default, #454545)}.input--state-success .input__container__text:-moz-placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-success .input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input--state-success .input__container__text:placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-disabled{opacity:50%;pointer-events:none;cursor:not-allowed}.input--state-disabled .input__icon{position:relative}.input--state-disabled .input__icon::before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-hover, rgba(0, 0, 0, 0.08));z-index:0;opacity:50%;border-radius:8px}.input .icon-success{color:var(--color-positive, #10603b);margin-left:4px}.input--label{padding:7px 4px 8px 12px}.input__icon{cursor:inherit;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:8px;margin-right:8px;padding:2.5px}.input__icon--large{padding:4px}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.input__container__wrapper__chips{display:inline;max-height:100px;overflow:auto}.input__container__wrapper__chips::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__wrapper__chips::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:\"Nunito Sans\", \"Carbona\", \"Tahoma\", \"Helvetica\", \"Arial\", sans-serif;font-size:0.875rem;line-height:150%;resize:none;cursor:inherit}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__text::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__container__text::-webkit-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::-moz-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__message{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;height:20px;margin:3.7px 2.5px;-webkit-transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);color:var(--color-content-disable, #636363);word-break:break-word;height:auto;min-height:20px}.input__message bds-typo{margin-top:0px;-ms-flex-item-align:self-start;align-self:self-start}.input__message__icon{display:-ms-flexbox;display:flex;padding-right:4px;margin-top:0px;padding-top:2px}.input__message--danger .bds-icon{color:var(--color-negative, #e60f0f)}.input__message--danger .input__message__text{color:var(--color-negative, #e60f0f)}.input__message--success .input__message__icon .bds-icon{color:var(--color-positive, #10603b)}.input__message--success .input__message__text{color:var(--color-content-default, #454545)}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__text::-webkit-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::-moz-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:8px}.input__container__wrapper .inside-input-left{display:inline}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:\"Nunito Sans\", \"Carbona\", \"Tahoma\", \"Helvetica\", \"Arial\", sans-serif;font-size:0.875rem;line-height:150%;width:100%;resize:none;cursor:inherit;-ms-flex-negative:99999;flex-shrink:99999}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text__chips{width:auto;min-width:216px;max-width:216px}:host{display:block}.select{position:relative;outline:none;overflow:hidden}.select__icon{color:var(--color-content-ghost, #8c8c8c);display:-ms-flexbox;display:flex}.select__icon bds-icon{margin-left:10px}.select .icon-hidden{visibility:hidden}.select__options{display:grid;background:var(--color-surface-0, #ffffff);width:100%;max-height:200px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:absolute;left:0;border-radius:8px;-webkit-box-shadow:0px 8px 4px -4px var(--color-shadow-0, rgba(0, 0, 0, 0.04)), 0px 12px 12px -4px var(--color-shadow-1, rgba(0, 0, 0, 0.16));box-shadow:0px 8px 4px -4px var(--color-shadow-0, rgba(0, 0, 0, 0.04)), 0px 12px 12px -4px var(--color-shadow-1, rgba(0, 0, 0, 0.16));overflow-y:auto;z-index:2;pointer-events:none;opacity:0}.select__options::-webkit-scrollbar{width:16px;background-color:transparent}.select__options::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.select__options ::slotted(*){display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.select__options .selection-title{-ms-flex-order:-2;order:-2;width:100%;padding:8px 16px;-webkit-box-sizing:border-box;box-sizing:border-box}.select__options .select-all{-ms-flex-order:-3;order:-3;padding:8px 8px 8px 12px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;gap:8px;-ms-flex-align:center;align-items:center;outline:none;-ms-flex-direction:row;flex-direction:row}.select__options .content-divisor{display:block;width:100%;height:1px;background-color:var(--color-surface-1, #f6f6f6)}.select__options .content-divisor .divisor{display:block;margin:0 16px;height:1px;background-color:var(--color-border-2, #e0e0e0)}.select__options .load-spinner{background-color:var(--color-surface-1, #f6f6f6);height:200px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.select__options--open{opacity:1;pointer-events:auto}.select__options--position-top{bottom:calc(100% + 4px)}.select__options--position-bottom{top:calc(100% + 4px)}.select__options .options-checked{-ms-flex-order:-1;order:-1}";
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,i,o){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function r(e){try{a(o.next(e))}catch(t){s(t)}}function l(e){try{a(o["throw"](e))}catch(t){s(t)}}function a(e){e.done?i(e.value):n(e.value).then(r,l)}a((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,n,s,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(e){return function(t){return a([e,t])}}function a(l){if(o)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(i=0)),i)try{if(o=1,n&&(s=l[0]&2?n["return"]:l[0]?n["throw"]||((s=n["return"])&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;if(n=0,s)l=[l[0]&2,s.value];switch(l[0]){case 0:case 1:s=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;n=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){i.label=l[1];break}if(l[0]===6&&i.label<s[1]){i.label=s[1];s=l;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(l);break}if(s[2])i.ops.pop();i.trys.pop();continue}l=t.call(e,i)}catch(a){l=[6,a];n=0}finally{o=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./index-0425c4de.system.js","./position-element-fb34981f.system.js"],(function(e){"use strict";var t,i,o,n,s,r,l;return{setters:[function(e){t=e.r;i=e.e;o=e.h;n=e.f;s=e.g},function(e){r=e.g;l=e.p}],execute:function(){var a=':host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;width:100%;max-width:100%;max-height:100%}:host input,:host textarea{-webkit-box-shadow:inherit;box-shadow:inherit}:host input::-webkit-input-placeholder,:host textarea::-webkit-input-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input::-moz-placeholder,:host textarea::-moz-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input:-ms-input-placeholder,:host textarea:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input::-ms-input-placeholder,:host textarea::-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input::placeholder,:host textarea::placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input::-webkit-input-placeholder,:host textarea::-webkit-input-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}.input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:8px 4px 9px 12px;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%}.input .bds-icon{position:relative;z-index:1}.input--state-primary{border:1px solid var(--color-border-1, #c9c9c9);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary .input__icon{position:relative}.input--state-primary .input__icon::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-hover, rgba(0, 0, 0, 0.08));z-index:0;border-radius:8px}.input--state-primary:hover{border:1px solid var(--color-primary, #1e6bf1);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary.input--pressed{border:1px solid var(--color-primary, #1e6bf1);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px var(--color-info, #80e3eb);box-shadow:0 0 0 2px var(--color-info, #80e3eb)}.input--state-primary.input--pressed .input__icon .bds-icon{color:var(--color-primary, #1e6bf1)}.input--state-primary .input__container__label{color:var(--color-content-default, #454545)}.input--state-primary .input__container__label--pressed bds-typo{color:var(--color-primary, #1e6bf1)}.input--state-primary .input__container__text{caret-color:var(--color-primary, #1e6bf1);color:var(--color-content-default, #454545)}.input--state-primary .input__container__text:-moz-placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-primary .input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input--state-primary .input__container__text:placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-danger{border:1px solid var(--color-delete, #e60f0f);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger .input__icon{position:relative}.input--state-danger .input__icon::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-surface-negative, #ffd6d6);z-index:0;opacity:50%;border-radius:8px}.input--state-danger:hover{border:1px solid var(--color-negative, #e60f0f);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger.input--pressed{border:1px solid var(--color-negative, #e60f0f);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px var(--color-error, #f99f9f);box-shadow:0 0 0 2px var(--color-error, #f99f9f)}.input--state-danger.input--pressed .input__icon .bds-icon{color:var(--color-negative, #e60f0f)}.input--state-danger .input__container__label{color:var(--color-delete, #e60f0f)}.input--state-danger .input__container__label--pressed bds-typo{color:var(--color-negative, #e60f0f)}.input--state-danger .input__container__text{caret-color:var(--color-negative, #e60f0f);color:var(--color-content-default, #454545)}.input--state-danger .input__container__text:-moz-placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-danger .input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input--state-danger .input__container__text:placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-success{border:1px solid var(--color-border-1, #c9c9c9);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-success .input__icon{position:relative}.input--state-success .input__icon::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-surface-positive, #d3f4e5);z-index:0;border-radius:8px}.input--state-success:hover{border:1px solid var(--color-positive, #10603b);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-success.input--pressed{border:1px solid var(--color-positive, #10603b);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px var(--color-success, #84ebbc);box-shadow:0 0 0 2px var(--color-success, #84ebbc)}.input--state-success.input--pressed .input__icon .bds-icon{color:var(--color-positive, #10603b)}.input--state-success .input__container__label{color:var(--color-content-default, #454545)}.input--state-success .input__container__label--pressed bds-typo{color:var(--color-positive, #10603b)}.input--state-success .input__container__text{caret-color:var(--color-positive, #10603b);color:var(--color-content-default, #454545)}.input--state-success .input__container__text:-moz-placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-success .input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input--state-success .input__container__text:placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-disabled{opacity:50%;pointer-events:none;cursor:not-allowed}.input--state-disabled .input__icon{position:relative}.input--state-disabled .input__icon::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-hover, rgba(0, 0, 0, 0.08));z-index:0;opacity:50%;border-radius:8px}.input .icon-success{color:var(--color-positive, #10603b);margin-left:4px}.input--label{padding:7px 4px 8px 12px}.input__icon{cursor:inherit;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:8px;margin-right:8px;padding:2.5px}.input__icon--large{padding:4px}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.input__container__wrapper__chips{display:inline;max-height:100px;overflow:auto}.input__container__wrapper__chips::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__wrapper__chips::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:"Nunito Sans", "Carbona", "Tahoma", "Helvetica", "Arial", sans-serif;font-size:0.875rem;line-height:150%;resize:none;cursor:inherit}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__text::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__container__text::-webkit-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::-moz-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__message{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;height:20px;margin:3.7px 2.5px;-webkit-transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);color:var(--color-content-disable, #636363);word-break:break-word;height:auto;min-height:20px}.input__message bds-typo{margin-top:0px;-ms-flex-item-align:self-start;align-self:self-start}.input__message__icon{display:-ms-flexbox;display:flex;padding-right:4px;margin-top:0px;padding-top:2px}.input__message--danger .bds-icon{color:var(--color-negative, #e60f0f)}.input__message--danger .input__message__text{color:var(--color-negative, #e60f0f)}.input__message--success .input__message__icon .bds-icon{color:var(--color-positive, #10603b)}.input__message--success .input__message__text{color:var(--color-content-default, #454545)}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__text::-webkit-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::-moz-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:8px}.input__container__wrapper .inside-input-left{display:inline}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:"Nunito Sans", "Carbona", "Tahoma", "Helvetica", "Arial", sans-serif;font-size:0.875rem;line-height:150%;width:100%;resize:none;cursor:inherit;-ms-flex-negative:99999;flex-shrink:99999}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text__chips{width:auto;min-width:216px;max-width:216px}:host{display:block}.select{position:relative;outline:none;overflow:hidden}.select__icon{color:var(--color-content-ghost, #8c8c8c);display:-ms-flexbox;display:flex}.select__icon bds-icon{margin-left:10px}.select .icon-hidden{visibility:hidden}.select__options{display:grid;background:var(--color-surface-0, #ffffff);width:100%;max-height:200px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:absolute;left:0;border-radius:8px;-webkit-box-shadow:0px 8px 4px -4px var(--color-shadow-0, rgba(0, 0, 0, 0.04)), 0px 12px 12px -4px var(--color-shadow-1, rgba(0, 0, 0, 0.16));box-shadow:0px 8px 4px -4px var(--color-shadow-0, rgba(0, 0, 0, 0.04)), 0px 12px 12px -4px var(--color-shadow-1, rgba(0, 0, 0, 0.16));overflow-y:auto;z-index:2;pointer-events:none;opacity:0}.select__options::-webkit-scrollbar{width:16px;background-color:transparent}.select__options::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.select__options ::slotted(*){display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.select__options .selection-title{-ms-flex-order:-2;order:-2;width:100%;padding:8px 16px;-webkit-box-sizing:border-box;box-sizing:border-box}.select__options .select-all{-ms-flex-order:-3;order:-3;padding:8px 8px 8px 12px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;gap:8px;-ms-flex-align:center;align-items:center;outline:none;-ms-flex-direction:row;flex-direction:row}.select__options .content-divisor{display:block;width:100%;height:1px;background-color:var(--color-surface-1, #f6f6f6)}.select__options .content-divisor .divisor{display:block;margin:0 16px;height:1px;background-color:var(--color-border-2, #e0e0e0)}.select__options .load-spinner{background-color:var(--color-surface-1, #f6f6f6);height:200px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.select__options--open{opacity:1;pointer-events:auto}.select__options--position-top{bottom:calc(100% + 4px)}.select__options--position-bottom{top:calc(100% + 4px)}.select__options .options-checked{-ms-flex-order:-1;order:-1}';var c=e("bds_autocomplete",function(){function e(e){var o=this;t(this,e);this.bdsChange=i(this,"bdsChange",7);this.bdsSelectedChange=i(this,"bdsSelectedChange",7);this.bdsMultiselectedChange=i(this,"bdsMultiselectedChange",7);this.bdsInput=i(this,"bdsInput",7);this.bdsCancel=i(this,"bdsCancel",7);this.bdsFocus=i(this,"bdsFocus",7);this.bdsBlur=i(this,"bdsBlur",7);this.refDropdown=function(e){o.dropElement=e};this.refIconDrop=function(e){o.iconDropElement=e};this.refCheckAllInput=function(e){o.checkAllInput=e};this.onFocus=function(){o.isFocused=true;o.isPressed=true;o.bdsFocus.emit()};this.onFocusout=function(){if(!o.isOpen){o.nativeInput.value=o.getText()}};this.onBlur=function(){var e;o.bdsBlur.emit();o.isPressed=false;if(!o.isOpen){o.isFocused=false;o.nativeInput.value=o.getText();o.cleanInputSelection()}if(o.selectionType=="multiple"&&((e=o.checkedOptions)===null||e===void 0?void 0:e.length)>0)o.getTextMultiselect(o.checkedOptions)};this.onClickWrapper=function(){o.onFocus();o.toggle();if(o.nativeInput){o.nativeInput.focus()}};this.toggle=function(){if(!o.disabled){o.isOpen=!o.isOpen}};this.getTextFromOption=function(e){var t,i;if((e===null||e===void 0?void 0:e.status)||(e===null||e===void 0?void 0:e.bulkOption)){if(o.internalOptions){var n=o.internalOptions.find((function(t){return t.value==e.value}));if(n){return n.label}}return e.querySelector("#bds-typo-label-".concat(o.value)).textContent}return(e===null||e===void 0?void 0:e.titleText)?e.titleText:(i=(t=e===null||e===void 0?void 0:e.textContent)===null||t===void 0?void 0:t.trim())!==null&&i!==void 0?i:""};this.getText=function(){var e=o.childOptions.find((function(e){return e.value==o.value}));return o.getTextFromOption(e)};this.getTextMultiselect=function(e){var t=(e===null||e===void 0?void 0:e.length)>0&&"".concat(e===null||e===void 0?void 0:e.length," selecionados");o.textMultiselect=t};this.handlerMultiselect=function(){o.updateListChecked(o.childOptions);o.nativeInput.value="";o.value=undefined;o.resetFilterOptions();if(o.childOptions.length!=o.checkedOptions.length){setTimeout((function(){o.checkAllInput.checked=false}),10)}};this.handleCheckAll=function(e){var t=e.detail.checked;for(var i=0,n=o.childOptions;i<n.length;i++){var s=n[i];if(t){s.toMark()}else{s.markOff()}}setTimeout((function(){o.updateListChecked(o.childOptions)}),10)};this.updateListChecked=function(e){for(var t=0,i=e;t<i.length;t++){var n=i[t];n.checked?n.classList.add("option-checked"):n.classList.remove("option-checked")}var s=Array.from(e).filter((function(e){return e.checked==true}));var r=s.map((function(e){return{value:e.value,label:e.textContent,checked:e.checked}}));o.checkedOptions=r};this.handler=function(e){var t=e.detail.value;o.value=t;o.toggle()};this.cleanInputSelection=function(){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!!this.disabled)return[3,2];this.value="";this.nativeInput.value="";this.isOpen=false;this.bdsCancel.emit({value:""});return[4,this.resetFilterOptions()];case 1:e.sent();e.label=2;case 2:return[2]}}))}))};this.changedInputValue=function(e){return __awaiter(o,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:t=e.target;if(t){this.value=t.value||""}this.bdsInput.emit(e);if(!this.nativeInput.value)return[3,2];return[4,this.filterOptions(this.nativeInput.value)];case 1:i.sent();return[3,5];case 2:this.value="";if(!this.isOpen)return[3,4];return[4,this.resetFilterOptions()];case 3:i.sent();return[3,5];case 4:this.setTimeoutFilter();i.label=5;case 5:if(this.isOpen===false){this.value=this.getSelectedValue();this.setTimeoutFilter()}return[2]}}))}))};this.intoView=null;this.isPressed=false;this.isOpen=false;this.text="";this.textMultiselect="";this.placeholderState=this.placeholder;this.internalOptions=undefined;this.cloneOptions=undefined;this.checkedOptions=undefined;this.isFocused=false;this.validationDanger=false;this.validationMesage="";this.options=undefined;this.value=undefined;this.selected=undefined;this.danger=false;this.success=false;this.disabled=false;this.searchOnlyTitle=true;this.label="";this.icon="";this.placeholder="";this.helperMessage="";this.errorMessage="";this.successMessage="";this.optionsPosition="auto";this.clearIconOnFocus=false;this.dataTest=null;this.loading=false;this.selectionType="single";this.selectionTitle=""}e.prototype.isOpenChanged=function(e){if(this.positionHeightDrop=="bottom"){this.iconDropElement.name=this.isOpen?"arrow-up":"arrow-down"}else{this.iconDropElement.name=this.isOpen?"arrow-down":"arrow-up"}if(e)if(this.optionsPosition!="auto"){this.setDefaultPlacement(this.optionsPosition)}else{this.validatePositionDrop()}};e.prototype.itemSelectedChanged=function(){this.bdsSelectedChange.emit(this.selected)};e.prototype.valueChanged=function(){this.bdsChange.emit({value:this.value==null?this.value:this.value.toString()});for(var e=0,t=this.childOptions;e<t.length;e++){var i=t[e];i.selected=this.value===i.value}this.selected=this.childOptionSelected;this.text=this.getText()};e.prototype.handleWindow=function(e){if(!this.el.contains(e.target)){this.isOpen=false}};e.prototype.changeCheckedOptions=function(){var e;this.placeholderState=this.selectionType==="multiple"?((e=this.checkedOptions)===null||e===void 0?void 0:e.length)===0||this.checkedOptions===null?this.placeholder:"":this.placeholder;this.getTextMultiselect(this.checkedOptions);this.bdsMultiselectedChange.emit({value:this.checkedOptions})};e.prototype.parseOptions=function(){if(this.options){this.resetFilterOptions();try{this.internalOptions=typeof this.options==="string"?JSON.parse(this.options):this.options}catch(e){this.internalOptions=[]}}};e.prototype.changeSelectionType=function(){if(!this.options){for(var e=0,t=this.childOptions;e<t.length;e++){var i=t[e];if(this.selectionType==="multiple"){i.typeOption="checkbox";i.addEventListener("optionChecked",this.handlerMultiselect)}else{i.typeOption="default";i.selected=this.value===i.value;i.addEventListener("optionSelected",this.handler)}}}};e.prototype.componentWillLoad=function(){this.intoView=r(this.el);this.options&&this.parseOptions()};e.prototype.componentDidLoad=function(){if(!this.options){for(var e=0,t=this.childOptions;e<t.length;e++){var i=t[e];if(this.selectionType==="multiple"){i.typeOption="checkbox";i.addEventListener("optionChecked",this.handlerMultiselect)}else{i.typeOption="default";i.selected=this.value===i.value;i.addEventListener("optionSelected",this.handler)}}}this.text=this.getText();if(this.optionsPosition!="auto"){this.setDefaultPlacement(this.optionsPosition)}else{this.validatePositionDrop()}};e.prototype.setDefaultPlacement=function(e){if(e=="bottom"){this.dropElement.classList.add("select__options--position-bottom");this.iconDropElement.name="arrow-down"}else{this.dropElement.classList.add("select__options--position-top");this.iconDropElement.name="arrow-up"}};e.prototype.validatePositionDrop=function(){var e=l({actionElement:this.el,changedElement:this.dropElement,intoView:this.intoView});this.positionHeightDrop=e.y;if(e.y=="bottom"){this.dropElement.classList.add("select__options--position-bottom");this.iconDropElement.name="arrow-down"}else{this.dropElement.classList.add("select__options--position-top");this.iconDropElement.name="arrow-up"}};Object.defineProperty(e.prototype,"childOptions",{get:function(){return this.options?Array.from(this.el.shadowRoot.querySelectorAll("bds-select-option")):Array.from(this.el.querySelectorAll("bds-select-option"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"childOptionSelected",{get:function(){return this.options?Array.from(this.el.shadowRoot.querySelectorAll("bds-select-option")).find((function(e){return e.selected})):Array.from(this.el.querySelectorAll("bds-select-option")).find((function(e){return e.selected}))},enumerable:false,configurable:true});e.prototype.keyPressWrapper=function(e){var t,i,o,n;switch(e.key){case"Enter":this.toggle();break;case"ArrowDown":if(!this.disabled){this.isOpen=true}if(this.childOptionSelected){this.value=(t=this.childOptionSelected.nextSibling)===null||t===void 0?void 0:t.value;return}this.value=(i=this.el.firstElementChild)===null||i===void 0?void 0:i.value;break;case"ArrowUp":if(this.childOptionSelected){this.value=(o=this.childOptionSelected.previousSibling)===null||o===void 0?void 0:o.value;return}this.value=(n=this.el.lastElementChild)===null||n===void 0?void 0:n.value;break}};e.prototype.setTimeoutFilter=function(){var e=this;setTimeout((function(){e.resetFilterOptions()}),500)};e.prototype.filterOptions=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,o,n,s;return __generator(this,(function(r){switch(r.label){case 0:if(!!e)return[3,2];return[4,this.resetFilterOptions()];case 1:r.sent();r.label=2;case 2:for(t=0,i=this.childOptions;t<i.length;t++){o=i[t];n=this.searchOnlyTitle?this.getTextFromOption(o).toLowerCase():o.textContent.toLowerCase();s=e.toLowerCase();n.includes(s)?o.removeAttribute("invisible"):o.setAttribute("invisible","invisible")}return[2]}}))}))};e.prototype.resetFilterOptions=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,o;return __generator(this,(function(n){e=this.childOptions;for(t=0,i=e;t<i.length;t++){o=i[t];o.removeAttribute("invisible")}return[2]}))}))};e.prototype.getSelectedValue=function(){var e;return(e=this.childOptionSelected)===null||e===void 0?void 0:e.value};e.prototype.renderIcon=function(){return this.icon&&o("div",{class:{input__icon:true,"input__icon--large":!!this.label}},o("bds-icon",{size:this.label?"medium":"small",name:this.icon,color:"inherit"}))};e.prototype.renderLabel=function(){return this.label&&o("label",{class:{input__container__label:true,"input__container__label--pressed":this.isPressed&&!this.disabled}},o("bds-typo",{variant:"fs-12",bold:"bold"},this.label))};e.prototype.renderMessage=function(){var e=this.danger?"error":this.success?"checkball":"info";var t=this.danger?this.errorMessage:this.success?this.successMessage:this.helperMessage;if(!t&&this.validationDanger)t=this.validationMesage;var i=this.danger||this.validationDanger?"input__message input__message--danger":this.success?"input__message input__message--success":"input__message";if(t){return o("div",{class:i,part:"input__message"},o("div",{class:"input__message__icon"},o("bds-icon",{size:"x-small",name:e,theme:"outline",color:"inherit"})),o("bds-typo",{class:"input__message__text",variant:"fs-12"},t))}return undefined};e.prototype.render=function(){var e=this;var t,i;return o(n,{"aria-disabled":this.disabled?"true":null},o("div",{class:{input:true,select:true,"input--state-primary":!this.danger,"input--state-danger":this.danger||this.validationDanger,"input--state-success":this.success,"input--state-disabled":this.disabled,"input--label":!!this.label,"input--pressed":this.isPressed},onClick:this.onClickWrapper},this.renderIcon(),o("div",{class:"input__container",tabindex:"0",onFocusout:this.onFocusout},this.renderLabel(),o("div",{class:{input__container__wrapper:true}},((t=this.textMultiselect)===null||t===void 0?void 0:t.length)>0&&o("bds-typo",{variant:"fs-14",class:"inside-input-left"},this.textMultiselect),o("input",{class:{input__container__text:true},ref:function(t){return e.nativeInput=t},disabled:this.disabled,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.changedInputValue,placeholder:this.placeholderState,type:"text",value:this.text,"data-test":this.dataTest,onKeyDown:this.keyPressWrapper.bind(this)}))),o("div",{class:"select__icon"},o("bds-icon",{size:"small",name:"error",theme:"solid",onClick:this.cleanInputSelection,class:{"icon-hidden":this.clearIconOnFocus&&(!this.isFocused||!this.isOpen)||!this.value}}),o("bds-icon",{ref:function(t){return e.refIconDrop(t)},size:"small",color:"inherit"}))),this.renderMessage(),this.loading?o("div",{ref:function(t){return e.refDropdown(t)},class:{select__options:true,"select__options--open":this.isOpen}},o("bds-loading-spinner",{class:"load-spinner",size:"small"})):o("div",{ref:function(t){return e.refDropdown(t)},class:{select__options:true,"select__options--open":this.isOpen}},this.selectionTitle&&this.selectionType=="multiple"&&o("bds-typo",{class:"selection-title",variant:"fs-10",bold:"bold"},this.selectionTitle),this.selectionType=="multiple"&&this.value==null&&o("bds-checkbox",{ref:this.refCheckAllInput,refer:"refer-multiselect",label:"Selecionar Todos",name:"chack-all",class:"select-all",onBdsChange:function(t){return e.handleCheckAll(t)}}),((i=this.checkedOptions)===null||i===void 0?void 0:i.length)>0&&o("span",{class:"content-divisor"},o("span",{class:"divisor"})),this.internalOptions?this.internalOptions.map((function(t,i){return o("bds-select-option",{onOptionSelected:e.handler,onOptionChecked:e.handlerMultiselect,selected:e.value===t.value,value:t.value,key:i,bulkOption:t.bulkOption,status:t.status,"type-option":e.selectionType=="multiple"?"checkbox":"default"},t.label)})):o("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{isOpen:["isOpenChanged"],selected:["itemSelectedChanged"],value:["valueChanged"],checkedOptions:["changeCheckedOptions"],options:["parseOptions"],selectionType:["changeSelectionType"]}},enumerable:false,configurable:true});return e}());c.style=a}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,i,o){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function r(e){try{a(o.next(e))}catch(t){s(t)}}function l(e){try{a(o["throw"](e))}catch(t){s(t)}}function a(e){e.done?i(e.value):n(e.value).then(r,l)}a((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,n,s,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(e){return function(t){return a([e,t])}}function a(l){if(o)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(i=0)),i)try{if(o=1,n&&(s=l[0]&2?n["return"]:l[0]?n["throw"]||((s=n["return"])&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;if(n=0,s)l=[l[0]&2,s.value];switch(l[0]){case 0:case 1:s=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;n=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){i.label=l[1];break}if(l[0]===6&&i.label<s[1]){i.label=s[1];s=l;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(l);break}if(s[2])i.ops.pop();i.trys.pop();continue}l=t.call(e,i)}catch(a){l=[6,a];n=0}finally{o=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./index-0425c4de.system.js","./position-element-9f3c6406.system.js"],(function(e){"use strict";var t,i,o,n,s,r,l;return{setters:[function(e){t=e.r;i=e.e;o=e.h;n=e.f;s=e.g},function(e){r=e.g;l=e.p}],execute:function(){var a=':host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;width:100%;max-width:100%;max-height:100%}:host input,:host textarea{-webkit-box-shadow:inherit;box-shadow:inherit}:host input::-webkit-input-placeholder,:host textarea::-webkit-input-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input::-moz-placeholder,:host textarea::-moz-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input:-ms-input-placeholder,:host textarea:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input::-ms-input-placeholder,:host textarea::-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input::placeholder,:host textarea::placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}:host input::-webkit-input-placeholder,:host textarea::-webkit-input-placeholder{color:var(--color-content-ghost, #8c8c8c);opacity:1}.input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:8px 4px 9px 12px;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%}.input .bds-icon{position:relative;z-index:1}.input--state-primary{border:1px solid var(--color-border-1, #c9c9c9);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary .input__icon{position:relative}.input--state-primary .input__icon::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-hover, rgba(0, 0, 0, 0.08));z-index:0;border-radius:8px}.input--state-primary:hover{border:1px solid var(--color-primary, #1e6bf1);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-primary.input--pressed{border:1px solid var(--color-primary, #1e6bf1);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px var(--color-info, #80e3eb);box-shadow:0 0 0 2px var(--color-info, #80e3eb)}.input--state-primary.input--pressed .input__icon .bds-icon{color:var(--color-primary, #1e6bf1)}.input--state-primary .input__container__label{color:var(--color-content-default, #454545)}.input--state-primary .input__container__label--pressed bds-typo{color:var(--color-primary, #1e6bf1)}.input--state-primary .input__container__text{caret-color:var(--color-primary, #1e6bf1);color:var(--color-content-default, #454545)}.input--state-primary .input__container__text:-moz-placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-primary .input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input--state-primary .input__container__text:placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-danger{border:1px solid var(--color-delete, #e60f0f);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger .input__icon{position:relative}.input--state-danger .input__icon::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-surface-negative, #ffd6d6);z-index:0;opacity:50%;border-radius:8px}.input--state-danger:hover{border:1px solid var(--color-negative, #e60f0f);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-danger.input--pressed{border:1px solid var(--color-negative, #e60f0f);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px var(--color-error, #f99f9f);box-shadow:0 0 0 2px var(--color-error, #f99f9f)}.input--state-danger.input--pressed .input__icon .bds-icon{color:var(--color-negative, #e60f0f)}.input--state-danger .input__container__label{color:var(--color-delete, #e60f0f)}.input--state-danger .input__container__label--pressed bds-typo{color:var(--color-negative, #e60f0f)}.input--state-danger .input__container__text{caret-color:var(--color-negative, #e60f0f);color:var(--color-content-default, #454545)}.input--state-danger .input__container__text:-moz-placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-danger .input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input--state-danger .input__container__text:placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-success{border:1px solid var(--color-border-1, #c9c9c9);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-success .input__icon{position:relative}.input--state-success .input__icon::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-surface-positive, #d3f4e5);z-index:0;border-radius:8px}.input--state-success:hover{border:1px solid var(--color-positive, #10603b);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px}.input--state-success.input--pressed{border:1px solid var(--color-positive, #10603b);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:8px;-webkit-box-shadow:0 0 0 2px var(--color-success, #84ebbc);box-shadow:0 0 0 2px var(--color-success, #84ebbc)}.input--state-success.input--pressed .input__icon .bds-icon{color:var(--color-positive, #10603b)}.input--state-success .input__container__label{color:var(--color-content-default, #454545)}.input--state-success .input__container__label--pressed bds-typo{color:var(--color-positive, #10603b)}.input--state-success .input__container__text{caret-color:var(--color-positive, #10603b);color:var(--color-content-default, #454545)}.input--state-success .input__container__text:-moz-placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-success .input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input--state-success .input__container__text:placeholder-shown{color:var(--color-content-ghost, #8c8c8c)}.input--state-disabled{opacity:50%;pointer-events:none;cursor:not-allowed}.input--state-disabled .input__icon{position:relative}.input--state-disabled .input__icon::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-hover, rgba(0, 0, 0, 0.08));z-index:0;opacity:50%;border-radius:8px}.input .icon-success{color:var(--color-positive, #10603b);margin-left:4px}.input--label{padding:7px 4px 8px 12px}.input__icon{cursor:inherit;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:8px;margin-right:8px;padding:2.5px}.input__icon--large{padding:4px}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.input__container__wrapper__chips{display:inline;max-height:100px;overflow:auto}.input__container__wrapper__chips::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__wrapper__chips::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:"Nunito Sans", "Carbona", "Tahoma", "Helvetica", "Arial", sans-serif;font-size:0.875rem;line-height:150%;resize:none;cursor:inherit}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text::-webkit-scrollbar{width:16px;background-color:transparent}.input__container__text::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.input__container__text::-webkit-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::-moz-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__message{display:-ms-flexbox;display:flex;-ms-flex-align:baseline;align-items:baseline;height:20px;margin:3.7px 2.5px;-webkit-transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);transition:0.3s cubic-bezier(0.4, 0, 0.2, 1);color:var(--color-content-disable, #636363);word-break:break-word;height:auto;min-height:20px}.input__message bds-typo{margin-top:0px;-ms-flex-item-align:self-start;align-self:self-start}.input__message__icon{display:-ms-flexbox;display:flex;padding-right:4px;margin-top:0px;padding-top:2px}.input__message--danger .bds-icon{color:var(--color-negative, #e60f0f)}.input__message--danger .input__message__text{color:var(--color-negative, #e60f0f)}.input__message--success .input__message__icon .bds-icon{color:var(--color-positive, #10603b)}.input__message--success .input__message__text{color:var(--color-content-default, #454545)}.input__container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.input__container__label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.input__container__text::-webkit-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::-moz-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text:-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::-ms-input-placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__text::placeholder{color:var(--color-content-ghost, #8c8c8c)}.input__container__wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;gap:8px}.input__container__wrapper .inside-input-left{display:inline}.input__container__text{display:inline-block;margin:0;border:0;padding:0;width:auto;vertical-align:middle;white-space:normal;line-height:inherit;background:none;color:inherit;font-size:inherit;font-family:inherit;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-family:"Nunito Sans", "Carbona", "Tahoma", "Helvetica", "Arial", sans-serif;font-size:0.875rem;line-height:150%;width:100%;resize:none;cursor:inherit;-ms-flex-negative:99999;flex-shrink:99999}.input__container__text:focus{outline:0}.input__container__text::-webkit-file-upload-button{padding:0;border:0;background:none}.input__container__text:focus{outline:0}.input__container__text[type=checkbox],.input__container__text[type=radio]{width:13px;height:13px}.input__container__text[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box}::-webkit-search-decoration{display:none}.input__container__text[type=reset],.input__container__text[type=button],.input__container__text[type=submit]{overflow:visible}.input__container__text__chips{width:auto;min-width:216px;max-width:216px}:host{display:block}.select{position:relative;outline:none;overflow:hidden}.select__icon{color:var(--color-content-ghost, #8c8c8c);display:-ms-flexbox;display:flex}.select__icon bds-icon{margin-left:10px}.select .icon-hidden{visibility:hidden}.select__options{display:grid;background:var(--color-surface-0, #ffffff);width:100%;max-height:200px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:absolute;left:0;border-radius:8px;-webkit-box-shadow:0px 8px 4px -4px var(--color-shadow-0, rgba(0, 0, 0, 0.04)), 0px 12px 12px -4px var(--color-shadow-1, rgba(0, 0, 0, 0.16));box-shadow:0px 8px 4px -4px var(--color-shadow-0, rgba(0, 0, 0, 0.04)), 0px 12px 12px -4px var(--color-shadow-1, rgba(0, 0, 0, 0.16));overflow-y:auto;z-index:2;pointer-events:none;opacity:0}.select__options::-webkit-scrollbar{width:16px;background-color:transparent}.select__options::-webkit-scrollbar-thumb{border-radius:10px;border:4px solid transparent;border-radius:10px;background-clip:content-box;background-color:#b9cbd3}.select__options ::slotted(*){display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column}.select__options .selection-title{-ms-flex-order:-2;order:-2;width:100%;padding:8px 16px;-webkit-box-sizing:border-box;box-sizing:border-box}.select__options .select-all{-ms-flex-order:-3;order:-3;padding:8px 8px 8px 12px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;gap:8px;-ms-flex-align:center;align-items:center;outline:none;-ms-flex-direction:row;flex-direction:row}.select__options .content-divisor{display:block;width:100%;height:1px;background-color:var(--color-surface-1, #f6f6f6)}.select__options .content-divisor .divisor{display:block;margin:0 16px;height:1px;background-color:var(--color-border-2, #e0e0e0)}.select__options .load-spinner{background-color:var(--color-surface-1, #f6f6f6);height:200px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.select__options--open{opacity:1;pointer-events:auto}.select__options--position-top{bottom:calc(100% + 4px)}.select__options--position-bottom{top:calc(100% + 4px)}.select__options .options-checked{-ms-flex-order:-1;order:-1}';var c=e("bds_autocomplete",function(){function e(e){var o=this;t(this,e);this.bdsChange=i(this,"bdsChange",7);this.bdsSelectedChange=i(this,"bdsSelectedChange",7);this.bdsMultiselectedChange=i(this,"bdsMultiselectedChange",7);this.bdsInput=i(this,"bdsInput",7);this.bdsCancel=i(this,"bdsCancel",7);this.bdsFocus=i(this,"bdsFocus",7);this.bdsBlur=i(this,"bdsBlur",7);this.refDropdown=function(e){o.dropElement=e};this.refIconDrop=function(e){o.iconDropElement=e};this.refCheckAllInput=function(e){o.checkAllInput=e};this.onFocus=function(){o.isFocused=true;o.isPressed=true;o.bdsFocus.emit()};this.onFocusout=function(){if(!o.isOpen){o.nativeInput.value=o.getText()}};this.onBlur=function(){var e;o.bdsBlur.emit();o.isPressed=false;if(!o.isOpen){o.isFocused=false;o.nativeInput.value=o.getText();o.cleanInputSelection()}if(o.selectionType=="multiple"&&((e=o.checkedOptions)===null||e===void 0?void 0:e.length)>0)o.getTextMultiselect(o.checkedOptions)};this.onClickWrapper=function(){o.onFocus();o.toggle();if(o.nativeInput){o.nativeInput.focus()}};this.toggle=function(){if(!o.disabled){o.isOpen=!o.isOpen}};this.getTextFromOption=function(e){var t,i;if((e===null||e===void 0?void 0:e.status)||(e===null||e===void 0?void 0:e.bulkOption)){if(o.internalOptions){var n=o.internalOptions.find((function(t){return t.value==e.value}));if(n){return n.label}}return e.querySelector("#bds-typo-label-".concat(o.value)).textContent}return(e===null||e===void 0?void 0:e.titleText)?e.titleText:(i=(t=e===null||e===void 0?void 0:e.textContent)===null||t===void 0?void 0:t.trim())!==null&&i!==void 0?i:""};this.getText=function(){var e=o.childOptions.find((function(e){return e.value==o.value}));return o.getTextFromOption(e)};this.getTextMultiselect=function(e){var t=(e===null||e===void 0?void 0:e.length)>0&&"".concat(e===null||e===void 0?void 0:e.length," selecionados");o.textMultiselect=t};this.handlerMultiselect=function(){o.updateListChecked(o.childOptions);o.nativeInput.value="";o.value=undefined;o.resetFilterOptions();if(o.childOptions.length!=o.checkedOptions.length){setTimeout((function(){o.checkAllInput.checked=false}),10)}};this.handleCheckAll=function(e){var t=e.detail.checked;for(var i=0,n=o.childOptions;i<n.length;i++){var s=n[i];if(t){s.toMark()}else{s.markOff()}}setTimeout((function(){o.updateListChecked(o.childOptions)}),10)};this.updateListChecked=function(e){for(var t=0,i=e;t<i.length;t++){var n=i[t];n.checked?n.classList.add("option-checked"):n.classList.remove("option-checked")}var s=Array.from(e).filter((function(e){return e.checked==true}));var r=s.map((function(e){return{value:e.value,label:e.textContent,checked:e.checked}}));o.checkedOptions=r};this.handler=function(e){var t=e.detail.value;o.value=t;o.toggle()};this.cleanInputSelection=function(){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!!this.disabled)return[3,2];this.value="";this.nativeInput.value="";this.isOpen=false;this.bdsCancel.emit({value:""});return[4,this.resetFilterOptions()];case 1:e.sent();e.label=2;case 2:return[2]}}))}))};this.changedInputValue=function(e){return __awaiter(o,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:t=e.target;if(t){this.value=t.value||""}this.bdsInput.emit(e);if(!this.nativeInput.value)return[3,2];return[4,this.filterOptions(this.nativeInput.value)];case 1:i.sent();return[3,5];case 2:this.value="";if(!this.isOpen)return[3,4];return[4,this.resetFilterOptions()];case 3:i.sent();return[3,5];case 4:this.setTimeoutFilter();i.label=5;case 5:if(this.isOpen===false){this.value=this.getSelectedValue();this.setTimeoutFilter()}return[2]}}))}))};this.intoView=null;this.isPressed=false;this.isOpen=false;this.text="";this.textMultiselect="";this.placeholderState=this.placeholder;this.internalOptions=undefined;this.cloneOptions=undefined;this.checkedOptions=undefined;this.isFocused=false;this.validationDanger=false;this.validationMesage="";this.options=undefined;this.value=undefined;this.selected=undefined;this.danger=false;this.success=false;this.disabled=false;this.searchOnlyTitle=true;this.label="";this.icon="";this.placeholder="";this.helperMessage="";this.errorMessage="";this.successMessage="";this.optionsPosition="auto";this.clearIconOnFocus=false;this.dataTest=null;this.loading=false;this.selectionType="single";this.selectionTitle=""}e.prototype.isOpenChanged=function(e){if(this.positionHeightDrop=="bottom"){this.iconDropElement.name=this.isOpen?"arrow-up":"arrow-down"}else{this.iconDropElement.name=this.isOpen?"arrow-down":"arrow-up"}if(e)if(this.optionsPosition!="auto"){this.setDefaultPlacement(this.optionsPosition)}else{this.validatePositionDrop()}};e.prototype.itemSelectedChanged=function(){this.bdsSelectedChange.emit(this.selected)};e.prototype.valueChanged=function(){this.bdsChange.emit({value:this.value==null?this.value:this.value.toString()});for(var e=0,t=this.childOptions;e<t.length;e++){var i=t[e];i.selected=this.value===i.value}this.selected=this.childOptionSelected;this.text=this.getText()};e.prototype.handleWindow=function(e){if(!this.el.contains(e.target)){this.isOpen=false}};e.prototype.changeCheckedOptions=function(){var e;this.placeholderState=this.selectionType==="multiple"?((e=this.checkedOptions)===null||e===void 0?void 0:e.length)===0||this.checkedOptions===null?this.placeholder:"":this.placeholder;this.getTextMultiselect(this.checkedOptions);this.bdsMultiselectedChange.emit({value:this.checkedOptions})};e.prototype.parseOptions=function(){if(this.options){this.resetFilterOptions();try{this.internalOptions=typeof this.options==="string"?JSON.parse(this.options):this.options}catch(e){this.internalOptions=[]}}};e.prototype.changeSelectionType=function(){if(!this.options){for(var e=0,t=this.childOptions;e<t.length;e++){var i=t[e];if(this.selectionType==="multiple"){i.typeOption="checkbox";i.addEventListener("optionChecked",this.handlerMultiselect)}else{i.typeOption="default";i.selected=this.value===i.value;i.addEventListener("optionSelected",this.handler)}}}};e.prototype.componentWillLoad=function(){this.intoView=r(this.el);this.options&&this.parseOptions()};e.prototype.componentDidLoad=function(){if(!this.options){for(var e=0,t=this.childOptions;e<t.length;e++){var i=t[e];if(this.selectionType==="multiple"){i.typeOption="checkbox";i.addEventListener("optionChecked",this.handlerMultiselect)}else{i.typeOption="default";i.selected=this.value===i.value;i.addEventListener("optionSelected",this.handler)}}}this.text=this.getText();if(this.optionsPosition!="auto"){this.setDefaultPlacement(this.optionsPosition)}else{this.validatePositionDrop()}};e.prototype.setDefaultPlacement=function(e){if(e=="bottom"){this.dropElement.classList.add("select__options--position-bottom");this.iconDropElement.name="arrow-down"}else{this.dropElement.classList.add("select__options--position-top");this.iconDropElement.name="arrow-up"}};e.prototype.validatePositionDrop=function(){var e=l({actionElement:this.el,changedElement:this.dropElement,intoView:this.intoView});this.positionHeightDrop=e.y;if(e.y=="bottom"){this.dropElement.classList.add("select__options--position-bottom");this.iconDropElement.name="arrow-down"}else{this.dropElement.classList.add("select__options--position-top");this.iconDropElement.name="arrow-up"}};Object.defineProperty(e.prototype,"childOptions",{get:function(){return this.options?Array.from(this.el.shadowRoot.querySelectorAll("bds-select-option")):Array.from(this.el.querySelectorAll("bds-select-option"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"childOptionSelected",{get:function(){return this.options?Array.from(this.el.shadowRoot.querySelectorAll("bds-select-option")).find((function(e){return e.selected})):Array.from(this.el.querySelectorAll("bds-select-option")).find((function(e){return e.selected}))},enumerable:false,configurable:true});e.prototype.keyPressWrapper=function(e){var t,i,o,n;switch(e.key){case"Enter":this.toggle();break;case"ArrowDown":if(!this.disabled){this.isOpen=true}if(this.childOptionSelected){this.value=(t=this.childOptionSelected.nextSibling)===null||t===void 0?void 0:t.value;return}this.value=(i=this.el.firstElementChild)===null||i===void 0?void 0:i.value;break;case"ArrowUp":if(this.childOptionSelected){this.value=(o=this.childOptionSelected.previousSibling)===null||o===void 0?void 0:o.value;return}this.value=(n=this.el.lastElementChild)===null||n===void 0?void 0:n.value;break}};e.prototype.setTimeoutFilter=function(){var e=this;setTimeout((function(){e.resetFilterOptions()}),500)};e.prototype.filterOptions=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,o,n,s;return __generator(this,(function(r){switch(r.label){case 0:if(!!e)return[3,2];return[4,this.resetFilterOptions()];case 1:r.sent();r.label=2;case 2:for(t=0,i=this.childOptions;t<i.length;t++){o=i[t];n=this.searchOnlyTitle?this.getTextFromOption(o).toLowerCase():o.textContent.toLowerCase();s=e.toLowerCase();n.includes(s)?o.removeAttribute("invisible"):o.setAttribute("invisible","invisible")}return[2]}}))}))};e.prototype.resetFilterOptions=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,o;return __generator(this,(function(n){e=this.childOptions;for(t=0,i=e;t<i.length;t++){o=i[t];o.removeAttribute("invisible")}return[2]}))}))};e.prototype.getSelectedValue=function(){var e;return(e=this.childOptionSelected)===null||e===void 0?void 0:e.value};e.prototype.renderIcon=function(){return this.icon&&o("div",{class:{input__icon:true,"input__icon--large":!!this.label}},o("bds-icon",{size:this.label?"medium":"small",name:this.icon,color:"inherit"}))};e.prototype.renderLabel=function(){return this.label&&o("label",{class:{input__container__label:true,"input__container__label--pressed":this.isPressed&&!this.disabled}},o("bds-typo",{variant:"fs-12",bold:"bold"},this.label))};e.prototype.renderMessage=function(){var e=this.danger?"error":this.success?"checkball":"info";var t=this.danger?this.errorMessage:this.success?this.successMessage:this.helperMessage;if(!t&&this.validationDanger)t=this.validationMesage;var i=this.danger||this.validationDanger?"input__message input__message--danger":this.success?"input__message input__message--success":"input__message";if(t){return o("div",{class:i,part:"input__message"},o("div",{class:"input__message__icon"},o("bds-icon",{size:"x-small",name:e,theme:"outline",color:"inherit"})),o("bds-typo",{class:"input__message__text",variant:"fs-12"},t))}return undefined};e.prototype.render=function(){var e=this;var t,i;return o(n,{"aria-disabled":this.disabled?"true":null},o("div",{class:{input:true,select:true,"input--state-primary":!this.danger,"input--state-danger":this.danger||this.validationDanger,"input--state-success":this.success,"input--state-disabled":this.disabled,"input--label":!!this.label,"input--pressed":this.isPressed},onClick:this.onClickWrapper},this.renderIcon(),o("div",{class:"input__container",tabindex:"0",onFocusout:this.onFocusout},this.renderLabel(),o("div",{class:{input__container__wrapper:true}},((t=this.textMultiselect)===null||t===void 0?void 0:t.length)>0&&o("bds-typo",{variant:"fs-14",class:"inside-input-left"},this.textMultiselect),o("input",{class:{input__container__text:true},ref:function(t){return e.nativeInput=t},disabled:this.disabled,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.changedInputValue,placeholder:this.placeholderState,type:"text",value:this.text,"data-test":this.dataTest,onKeyDown:this.keyPressWrapper.bind(this)}))),o("div",{class:"select__icon"},o("bds-icon",{size:"small",name:"error",theme:"solid",onClick:this.cleanInputSelection,class:{"icon-hidden":this.clearIconOnFocus&&(!this.isFocused||!this.isOpen)||!this.value}}),o("bds-icon",{ref:function(t){return e.refIconDrop(t)},size:"small",color:"inherit"}))),this.renderMessage(),this.loading?o("div",{ref:function(t){return e.refDropdown(t)},class:{select__options:true,"select__options--open":this.isOpen}},o("bds-loading-spinner",{class:"load-spinner",size:"small"})):o("div",{ref:function(t){return e.refDropdown(t)},class:{select__options:true,"select__options--open":this.isOpen}},this.selectionTitle&&this.selectionType=="multiple"&&o("bds-typo",{class:"selection-title",variant:"fs-10",bold:"bold"},this.selectionTitle),this.selectionType=="multiple"&&this.value==null&&o("bds-checkbox",{ref:this.refCheckAllInput,refer:"refer-multiselect",label:"Selecionar Todos",name:"chack-all",class:"select-all",onBdsChange:function(t){return e.handleCheckAll(t)}}),((i=this.checkedOptions)===null||i===void 0?void 0:i.length)>0&&o("span",{class:"content-divisor"},o("span",{class:"divisor"})),this.internalOptions?this.internalOptions.map((function(t,i){return o("bds-select-option",{onOptionSelected:e.handler,onOptionChecked:e.handlerMultiselect,selected:e.value===t.value,value:t.value,key:i,bulkOption:t.bulkOption,status:t.status,"type-option":e.selectionType=="multiple"?"checkbox":"default"},t.label)})):o("slot",null)))};Object.defineProperty(e.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{isOpen:["isOpenChanged"],selected:["itemSelectedChanged"],value:["valueChanged"],checkedOptions:["changeCheckedOptions"],options:["parseOptions"],selectionType:["changeSelectionType"]}},enumerable:false,configurable:true});return e}());c.style=a}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, f as Host } from './index-06929dd0.js';
|
|
2
2
|
|
|
3
|
-
const carouselCss = "
|
|
3
|
+
const carouselCss = ".sc-bds-carousel-item-h{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;max-width:1920px;position:relative}.carousel_slide.sc-bds-carousel-item{width:100%;position:relative;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 56px}.carousel_slide_fullwidth.sc-bds-carousel-item{padding:0}.carousel_slide_frame.sc-bds-carousel-item{width:100%;display:-ms-flexbox;display:flex;overflow:hidden;-webkit-transition:height ease-in-out 0.5s;-moz-transition:height ease-in-out 0.5s;transition:height ease-in-out 0.5s}.carousel_slide_frame_loading.sc-bds-carousel-item{display:none}.carousel_slide_frame_repeater.sc-bds-carousel-item{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;right:0;-webkit-transition:right ease-in-out 0.75s;-moz-transition:right ease-in-out 0.75s;transition:right ease-in-out 0.75s}.carousel_slide_loading.sc-bds-carousel-item{position:relative}.carousel_loading_bar.sc-bds-carousel-item{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 60px;margin-top:8px}.carousel_loading_bar_fullwidth.sc-bds-carousel-item{padding:0 4px}.carousel_buttons.sc-bds-carousel-item{position:absolute;width:100%;height:0px;top:calc(50% - 20px);left:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-sizing:border-box;box-sizing:border-box}.carousel_buttons_fullwidth.sc-bds-carousel-item{padding:0 16px}.carousel_bullets.sc-bds-carousel-item{margin-top:16px;margin-bottom:16px}";
|
|
4
4
|
|
|
5
5
|
const BdsCarouselItem = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./index-0425c4de.system.js"],(function(
|
|
1
|
+
System.register(["./index-0425c4de.system.js"],(function(e){"use strict";var i,s,t;return{setters:[function(e){i=e.r;s=e.h;t=e.f}],execute:function(){var o=".sc-bds-carousel-item-h{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;max-width:1920px;position:relative}.carousel_slide.sc-bds-carousel-item{width:100%;position:relative;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 56px}.carousel_slide_fullwidth.sc-bds-carousel-item{padding:0}.carousel_slide_frame.sc-bds-carousel-item{width:100%;display:-ms-flexbox;display:flex;overflow:hidden;-webkit-transition:height ease-in-out 0.5s;-moz-transition:height ease-in-out 0.5s;transition:height ease-in-out 0.5s}.carousel_slide_frame_loading.sc-bds-carousel-item{display:none}.carousel_slide_frame_repeater.sc-bds-carousel-item{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;right:0;-webkit-transition:right ease-in-out 0.75s;-moz-transition:right ease-in-out 0.75s;transition:right ease-in-out 0.75s}.carousel_slide_loading.sc-bds-carousel-item{position:relative}.carousel_loading_bar.sc-bds-carousel-item{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 60px;margin-top:8px}.carousel_loading_bar_fullwidth.sc-bds-carousel-item{padding:0 4px}.carousel_buttons.sc-bds-carousel-item{position:absolute;width:100%;height:0px;top:calc(50% - 20px);left:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-sizing:border-box;box-sizing:border-box}.carousel_buttons_fullwidth.sc-bds-carousel-item{padding:0 16px}.carousel_bullets.sc-bds-carousel-item{margin-top:16px;margin-bottom:16px}";var r=e("bds_carousel_item",function(){function e(e){i(this,e)}e.prototype.render=function(){return s(t,{class:{item:true}},s("slot",null))};return e}());r.style=o}}}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-06929dd0.js';
|
|
2
|
-
import { a as getItems, b as gapChanged } from './position-element-
|
|
2
|
+
import { a as getItems, b as getHighestItem, c as gapChanged } from './position-element-c161d4f3.js';
|
|
3
3
|
|
|
4
|
-
const carouselCss = "
|
|
4
|
+
const carouselCss = ".sc-bds-carousel-h{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;max-width:1920px;position:relative}.carousel_slide.sc-bds-carousel{width:100%;position:relative;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 56px}.carousel_slide_fullwidth.sc-bds-carousel{padding:0}.carousel_slide_frame.sc-bds-carousel{width:100%;display:-ms-flexbox;display:flex;overflow:hidden;-webkit-transition:height ease-in-out 0.5s;-moz-transition:height ease-in-out 0.5s;transition:height ease-in-out 0.5s}.carousel_slide_frame_loading.sc-bds-carousel{display:none}.carousel_slide_frame_repeater.sc-bds-carousel{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;right:0;-webkit-transition:right ease-in-out 0.75s;-moz-transition:right ease-in-out 0.75s;transition:right ease-in-out 0.75s}.carousel_slide_loading.sc-bds-carousel{position:relative}.carousel_loading_bar.sc-bds-carousel{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 60px;margin-top:8px}.carousel_loading_bar_fullwidth.sc-bds-carousel{padding:0 4px}.carousel_buttons.sc-bds-carousel{position:absolute;width:100%;height:0px;top:calc(50% - 20px);left:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-sizing:border-box;box-sizing:border-box}.carousel_buttons_fullwidth.sc-bds-carousel{padding:0 16px}.carousel_bullets.sc-bds-carousel{margin-top:16px;margin-bottom:16px}";
|
|
5
5
|
|
|
6
6
|
const BdsCarousel = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -22,6 +22,21 @@ const BdsCarousel = class {
|
|
|
22
22
|
}, 100);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
+
this.updateHeight = (itemsElement) => {
|
|
26
|
+
const elementActive = itemsElement[this.itemActivated * this.slidePerPage - this.slidePerPage];
|
|
27
|
+
let heightFrame = 240;
|
|
28
|
+
if (this.slidePerPage > 1) {
|
|
29
|
+
const getVisibleItens = this.isWhole > 0 && this.itemActivated == this.internalItens.length
|
|
30
|
+
? itemsElement.slice(this.internalItens.length - this.internalItens.length - this.slidePerPage, this.itemActivated * this.slidePerPage)
|
|
31
|
+
: itemsElement.slice(this.itemActivated * this.slidePerPage - this.slidePerPage, this.itemActivated * this.slidePerPage);
|
|
32
|
+
heightFrame = getHighestItem(getVisibleItens)[0];
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
heightFrame = elementActive.offsetHeight;
|
|
36
|
+
}
|
|
37
|
+
this.frame.style.height = `${heightFrame}px`;
|
|
38
|
+
this.heightCarousel = this.frame.offsetHeight;
|
|
39
|
+
};
|
|
25
40
|
this.refFrame = (el) => {
|
|
26
41
|
this.frame = el;
|
|
27
42
|
};
|
|
@@ -40,14 +55,17 @@ const BdsCarousel = class {
|
|
|
40
55
|
this.seconds = 0;
|
|
41
56
|
this.internalItens = undefined;
|
|
42
57
|
this.isWhole = 0;
|
|
58
|
+
this.heightCarousel = 240;
|
|
43
59
|
this.autoplay = false;
|
|
44
60
|
this.autoplayTimeout = 5000;
|
|
45
61
|
this.autoplayHoverPause = false;
|
|
62
|
+
this.autoHeight = false;
|
|
46
63
|
this.bullets = true;
|
|
47
64
|
this.infiniteLoop = false;
|
|
48
65
|
this.arrows = 'outside';
|
|
49
66
|
this.slidePerPage = 1;
|
|
50
67
|
this.gap = 'none';
|
|
68
|
+
this.loading = false;
|
|
51
69
|
this.secondsLimit = this.autoplayTimeout / 1000;
|
|
52
70
|
}
|
|
53
71
|
componentWillLoad() {
|
|
@@ -55,28 +73,37 @@ const BdsCarousel = class {
|
|
|
55
73
|
this.setInternalItens(Array.from(this.itemsElement));
|
|
56
74
|
}
|
|
57
75
|
componentDidRender() {
|
|
58
|
-
if (this.
|
|
59
|
-
this.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
76
|
+
if (!this.loading) {
|
|
77
|
+
if (this.gap != 'none') {
|
|
78
|
+
this.frame.style.width = `calc(100% + ${gapChanged(this.gap)}px)`;
|
|
79
|
+
this.frame.style.marginLeft = `-${gapChanged(this.gap) / 2}px`;
|
|
80
|
+
}
|
|
81
|
+
for (let i = 0; i < this.itemsElement.length; i++) {
|
|
82
|
+
const widthFrame = this.frame.offsetWidth >= 1920 ? 1920 : this.frame.offsetWidth;
|
|
83
|
+
this.itemsElement[i].style.width = `${widthFrame / this.slidePerPage}px`;
|
|
84
|
+
this.itemsElement[i].style.padding = `0 ${gapChanged(this.gap) / 2}px`;
|
|
85
|
+
}
|
|
86
|
+
if (this.autoHeight)
|
|
87
|
+
this.updateHeight(Array.from(this.itemsElement));
|
|
66
88
|
}
|
|
67
89
|
}
|
|
68
90
|
componentDidLoad() {
|
|
69
91
|
this.startCountSeconds();
|
|
92
|
+
this.heightCarousel = this.frame.offsetHeight;
|
|
70
93
|
}
|
|
71
94
|
itemActivatedChanged() {
|
|
72
95
|
const currentItemSelected = this.internalItens.find((item) => item.id === this.itemActivated);
|
|
73
|
-
const slideFrame = this.frame.offsetWidth * (this.itemActivated - 1);
|
|
96
|
+
const slideFrame = !this.frame ? 0 : this.frame.offsetWidth * (this.itemActivated - 1);
|
|
74
97
|
if (currentItemSelected.isWhole) {
|
|
75
98
|
const isWholeWidth = this.itemsElement[1].offsetWidth * (this.slidePerPage - this.isWhole);
|
|
76
|
-
this.frameRepeater
|
|
99
|
+
if (this.frameRepeater) {
|
|
100
|
+
this.frameRepeater.style.right = `${slideFrame - isWholeWidth}px`;
|
|
101
|
+
}
|
|
77
102
|
}
|
|
78
103
|
else {
|
|
79
|
-
this.frameRepeater
|
|
104
|
+
if (this.frameRepeater) {
|
|
105
|
+
this.frameRepeater.style.right = `${slideFrame}px`;
|
|
106
|
+
}
|
|
80
107
|
}
|
|
81
108
|
this.bdsChangeCarousel.emit({ value: currentItemSelected });
|
|
82
109
|
}
|
|
@@ -102,6 +129,11 @@ const BdsCarousel = class {
|
|
|
102
129
|
}
|
|
103
130
|
}
|
|
104
131
|
}
|
|
132
|
+
async buildCarousel() {
|
|
133
|
+
this.itemsElement = this.element.getElementsByTagName('bds-carousel-item');
|
|
134
|
+
this.loading = true;
|
|
135
|
+
setTimeout(() => (this.setInternalItens(Array.from(this.itemsElement)), (this.loading = false), this.setActivated(1)), 1000);
|
|
136
|
+
}
|
|
105
137
|
async nextSlide() {
|
|
106
138
|
if (this.itemActivated == this.internalItens.length) {
|
|
107
139
|
this.itemActivated = 1;
|
|
@@ -137,7 +169,7 @@ const BdsCarousel = class {
|
|
|
137
169
|
this.startCountSeconds();
|
|
138
170
|
}
|
|
139
171
|
render() {
|
|
140
|
-
return (h(Host, { class: { carousel: true } }, h("div", { class: { carousel_slide: true, carousel_slide_fullwidth: this.arrows != 'outside' } }, h("div", { ref: (el) => this.refFrame(el), class: { carousel_slide_frame: true }, onMouseOver: () => this.onMouseOver(), onMouseOut: () => this.onMouseOut(), tabindex: "0" }, h("div", { ref: (el) => this.refFrameRepeater(el), class: { carousel_slide_frame_repeater: true } }, h("slot", null))), this.arrows != 'none' && (h("div", { class: { carousel_buttons: true, carousel_buttons_fullwidth: this.arrows == 'inside' } }, h("bds-button-icon", { variant: "tertiary", icon: "arrow-left", size: "short", onBdsClick: () => this.prevSlide(), disabled: !this.infiniteLoop && this.itemActivated <= 1 }), h("bds-button-icon", { variant: "tertiary", icon: "arrow-right", size: "short", onBdsClick: () => this.nextSlide(), disabled: !this.infiniteLoop && this.itemActivated >= this.internalItens.length })))), this.autoplay && (h("bds-loading-bar", { class: {
|
|
172
|
+
return (h(Host, { class: { carousel: true } }, h("div", { class: { carousel_slide: true, carousel_slide_fullwidth: this.arrows != 'outside' } }, h("div", { ref: (el) => this.refFrame(el), class: { carousel_slide_frame: true, carousel_slide_frame_loading: this.loading }, onMouseOver: () => this.onMouseOver(), onMouseOut: () => this.onMouseOut(), tabindex: "0" }, h("div", { ref: (el) => this.refFrameRepeater(el), class: { carousel_slide_frame_repeater: true } }, h("slot", null))), this.loading && (h("bds-grid", { class: { carousel_slide_loading: true } }, h("bds-skeleton", { height: `${this.heightCarousel}px`, shape: "square", width: "100%" }))), this.arrows != 'none' && (h("div", { class: { carousel_buttons: true, carousel_buttons_fullwidth: this.arrows == 'inside' } }, h("bds-button-icon", { variant: "tertiary", icon: "arrow-left", size: "short", onBdsClick: () => this.prevSlide(), disabled: !this.infiniteLoop && this.itemActivated <= 1 }), h("bds-button-icon", { variant: "tertiary", icon: "arrow-right", size: "short", onBdsClick: () => this.nextSlide(), disabled: !this.infiniteLoop && this.itemActivated >= this.internalItens.length })))), this.autoplay && this.loading ? (h("bds-skeleton", { class: { carousel_loading_bar: true, carousel_loading_bar_fullwidth: this.arrows != 'outside' }, height: "8px", width: "100%", shape: "square" })) : (h("bds-loading-bar", { class: { carousel_loading_bar: true, carousel_loading_bar_fullwidth: this.arrows != 'outside' }, percent: (this.seconds * 100) / this.secondsLimit, size: "small" })), this.bullets && (h("div", { class: { carousel_bullets: true } }, this.loading ? (h("bds-grid", { gap: "2", "justify-content": "center" }, h("bds-skeleton", { height: "24px", width: "24px", shape: "circle" }), h("bds-skeleton", { height: "24px", width: "24px", shape: "circle" }), h("bds-skeleton", { height: "24px", width: "24px", shape: "circle" }))) : (this.internalItens && (h("bds-radio-group", null, h("bds-grid", { gap: "2", "justify-content": "center" }, this.internalItens.map((item, index) => (h("bds-radio", { key: index, checked: item.id == this.itemActivated, value: item.id.toString(), onBdsClickChange: () => this.setActivated(item.id) })))))))))));
|
|
141
173
|
}
|
|
142
174
|
get element() { return getElement(this); }
|
|
143
175
|
static get watchers() { return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function o(t){try{l(n.next(t))}catch(e){r(e)}}function a(t){try{l(n["throw"](t))}catch(e){r(e)}}function l(t){t.done?i(t.value):s(t.value).then(o,a)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return l([t,e])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(i=0)),i)try{if(n=1,s&&(r=a[0]&2?s["return"]:a[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,a[1])).done)return r;if(s=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;s=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(l){a=[6,l];s=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,s=e.length,r;n<s;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./index-0425c4de.system.js","./position-element-fb34981f.system.js"],(function(t){"use strict";var e,i,n,s,r,o,a;return{setters:[function(t){e=t.r;i=t.e;n=t.h;s=t.f;r=t.g},function(t){o=t.a;a=t.b}],execute:function(){var l=":host{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;max-width:1920px;position:relative}.carousel_slide{width:100%;position:relative;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 56px}.carousel_slide_fullwidth{padding:0}.carousel_slide_frame{width:100%;display:-ms-flexbox;display:flex;overflow:hidden}.carousel_slide_frame_repeater{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;right:0;-webkit-transition:right ease-in-out 0.75s;-moz-transition:right ease-in-out 0.75s;transition:right ease-in-out 0.75s}.carousel_loading{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 60px;margin-top:8px}.carousel_loading_fullwidth{padding:0 4px}.carousel_buttons{position:absolute;width:100%;height:0px;top:calc(50% - 20px);left:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-sizing:border-box;box-sizing:border-box}.carousel_buttons_fullwidth{padding:0 16px}.carousel_bullets{margin-top:16px;margin-bottom:16px}";var u=t("bds_carousel",function(){function t(t){var n=this;e(this,t);this.bdsChangeCarousel=i(this,"bdsChangeCarousel",7);this.itemsElement=null;this.setInternalItens=function(t){var e=Math.floor(t.length/n.slidePerPage);var i=t.length/n.slidePerPage;var s=o(i);n.internalItens=s;n.isWhole=t.length-n.slidePerPage*e};this.startCountSeconds=function(){if(n.autoplay){n.incrementSeconds=setInterval((function(){n.seconds+=.1}),100)}};this.refFrame=function(t){n.frame=t};this.refFrameRepeater=function(t){n.frameRepeater=t};this.onMouseOver=function(){if(n.autoplayHoverPause)n.pauseAutoplay()};this.onMouseOut=function(){if(n.autoplayHoverPause)n.runAutoplay()};this.itemActivated=1;this.seconds=0;this.internalItens=undefined;this.isWhole=0;this.autoplay=false;this.autoplayTimeout=5e3;this.autoplayHoverPause=false;this.bullets=true;this.infiniteLoop=false;this.arrows="outside";this.slidePerPage=1;this.gap="none";this.secondsLimit=this.autoplayTimeout/1e3}t.prototype.componentWillLoad=function(){this.itemsElement=this.element.getElementsByTagName("bds-carousel-item");this.setInternalItens(Array.from(this.itemsElement))};t.prototype.componentDidRender=function(){if(this.gap!="none"){this.frame.style.width="calc(100% + ".concat(a(this.gap),"px)");this.frame.style.marginLeft="-".concat(a(this.gap)/2,"px")}for(var t=0;t<this.itemsElement.length;t++){var e=this.frame.offsetWidth>=1920?1920:this.frame.offsetWidth;this.itemsElement[t].style.width="".concat(e/this.slidePerPage,"px");this.itemsElement[t].style.padding="0 ".concat(a(this.gap)/2,"px")}};t.prototype.componentDidLoad=function(){this.startCountSeconds()};t.prototype.itemActivatedChanged=function(){var t=this;var e=this.internalItens.find((function(e){return e.id===t.itemActivated}));var i=this.frame.offsetWidth*(this.itemActivated-1);if(e.isWhole){var n=this.itemsElement[1].offsetWidth*(this.slidePerPage-this.isWhole);this.frameRepeater.style.right="".concat(i-n,"px")}else{this.frameRepeater.style.right="".concat(i,"px")}this.bdsChangeCarousel.emit({value:e})};t.prototype.autoplayTimeoutChanged=function(){this.secondsLimit=this.autoplayTimeout/1e3};t.prototype.secondsChanged=function(){if(this.seconds>=this.secondsLimit){this.nextSlide();this.seconds=0}};t.prototype.isWholeChanged=function(){var t,e;if(this.internalItens!=undefined){if(this.isWhole>0){var i={id:((t=this.internalItens)===null||t===void 0?void 0:t.length)+1,label:"Frame - ".concat(((e=this.internalItens)===null||e===void 0?void 0:e.length)+1),isWhole:true};this.internalItens=__spreadArray(__spreadArray([],this.internalItens,true),[i],false)}}};t.prototype.nextSlide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.itemActivated==this.internalItens.length){this.itemActivated=1}else{this.itemActivated=this.itemActivated+1}clearInterval(this.incrementSeconds);this.seconds=0;this.startCountSeconds();return[2]}))}))};t.prototype.prevSlide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.itemActivated==1){this.itemActivated=this.internalItens.length}else{this.itemActivated=this.itemActivated-1}clearInterval(this.incrementSeconds);this.seconds=0;this.startCountSeconds();return[2]}))}))};t.prototype.setActivated=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.itemActivated=t;clearInterval(this.incrementSeconds);this.seconds=0;this.startCountSeconds();return[2]}))}))};t.prototype.pauseAutoplay=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){clearInterval(this.incrementSeconds);return[2]}))}))};t.prototype.runAutoplay=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.startCountSeconds();return[2]}))}))};t.prototype.render=function(){var t=this;return n(s,{class:{carousel:true}},n("div",{class:{carousel_slide:true,carousel_slide_fullwidth:this.arrows!="outside"}},n("div",{ref:function(e){return t.refFrame(e)},class:{carousel_slide_frame:true},onMouseOver:function(){return t.onMouseOver()},onMouseOut:function(){return t.onMouseOut()},tabindex:"0"},n("div",{ref:function(e){return t.refFrameRepeater(e)},class:{carousel_slide_frame_repeater:true}},n("slot",null))),this.arrows!="none"&&n("div",{class:{carousel_buttons:true,carousel_buttons_fullwidth:this.arrows=="inside"}},n("bds-button-icon",{variant:"tertiary",icon:"arrow-left",size:"short",onBdsClick:function(){return t.prevSlide()},disabled:!this.infiniteLoop&&this.itemActivated<=1}),n("bds-button-icon",{variant:"tertiary",icon:"arrow-right",size:"short",onBdsClick:function(){return t.nextSlide()},disabled:!this.infiniteLoop&&this.itemActivated>=this.internalItens.length}))),this.autoplay&&n("bds-loading-bar",{class:{carousel_loading:true,carousel_loading_fullwidth:this.arrows!="outside"},percent:this.seconds*100/this.secondsLimit,size:"small"}),this.bullets&&n("div",{class:{carousel_bullets:true}},this.internalItens&&n("bds-radio-group",null,n("bds-grid",{gap:"2","justify-content":"center"},this.internalItens.map((function(e,i){return n("bds-radio",{key:i,checked:e.id==t.itemActivated,value:e.id.toString(),onBdsClickChange:function(){return t.setActivated(e.id)}})}))))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{itemActivated:["itemActivatedChanged"],autoplayTimeout:["autoplayTimeoutChanged"],seconds:["secondsChanged"],isWhole:["isWholeChanged"]}},enumerable:false,configurable:true});return t}());u.style=l}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,i,s){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function o(e){try{l(s.next(e))}catch(t){r(t)}}function a(e){try{l(s["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):n(e.value).then(o,a)}l((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,n,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(a){if(s)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(i=0)),i)try{if(s=1,n&&(r=a[0]&2?n["return"]:a[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;if(n=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;n=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(l){a=[6,l];n=0}finally{s=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var s=0,n=t.length,r;s<n;s++){if(r||!(s in t)){if(!r)r=Array.prototype.slice.call(t,0,s);r[s]=t[s]}}return e.concat(r||Array.prototype.slice.call(t))};System.register(["./index-0425c4de.system.js","./position-element-9f3c6406.system.js"],(function(e){"use strict";var t,i,s,n,r,o,a,l;return{setters:[function(e){t=e.r;i=e.e;s=e.h;n=e.f;r=e.g},function(e){o=e.a;a=e.b;l=e.c}],execute:function(){var u=".sc-bds-carousel-h{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;max-width:1920px;position:relative}.carousel_slide.sc-bds-carousel{width:100%;position:relative;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 56px}.carousel_slide_fullwidth.sc-bds-carousel{padding:0}.carousel_slide_frame.sc-bds-carousel{width:100%;display:-ms-flexbox;display:flex;overflow:hidden;-webkit-transition:height ease-in-out 0.5s;-moz-transition:height ease-in-out 0.5s;transition:height ease-in-out 0.5s}.carousel_slide_frame_loading.sc-bds-carousel{display:none}.carousel_slide_frame_repeater.sc-bds-carousel{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;right:0;-webkit-transition:right ease-in-out 0.75s;-moz-transition:right ease-in-out 0.75s;transition:right ease-in-out 0.75s}.carousel_slide_loading.sc-bds-carousel{position:relative}.carousel_loading_bar.sc-bds-carousel{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 60px;margin-top:8px}.carousel_loading_bar_fullwidth.sc-bds-carousel{padding:0 4px}.carousel_buttons.sc-bds-carousel{position:absolute;width:100%;height:0px;top:calc(50% - 20px);left:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-sizing:border-box;box-sizing:border-box}.carousel_buttons_fullwidth.sc-bds-carousel{padding:0 16px}.carousel_bullets.sc-bds-carousel{margin-top:16px;margin-bottom:16px}";var c=e("bds_carousel",function(){function e(e){var s=this;t(this,e);this.bdsChangeCarousel=i(this,"bdsChangeCarousel",7);this.itemsElement=null;this.setInternalItens=function(e){var t=Math.floor(e.length/s.slidePerPage);var i=e.length/s.slidePerPage;var n=o(i);s.internalItens=n;s.isWhole=e.length-s.slidePerPage*t};this.startCountSeconds=function(){if(s.autoplay){s.incrementSeconds=setInterval((function(){s.seconds+=.1}),100)}};this.updateHeight=function(e){var t=e[s.itemActivated*s.slidePerPage-s.slidePerPage];var i=240;if(s.slidePerPage>1){var n=s.isWhole>0&&s.itemActivated==s.internalItens.length?e.slice(s.internalItens.length-s.internalItens.length-s.slidePerPage,s.itemActivated*s.slidePerPage):e.slice(s.itemActivated*s.slidePerPage-s.slidePerPage,s.itemActivated*s.slidePerPage);i=a(n)[0]}else{i=t.offsetHeight}s.frame.style.height="".concat(i,"px");s.heightCarousel=s.frame.offsetHeight};this.refFrame=function(e){s.frame=e};this.refFrameRepeater=function(e){s.frameRepeater=e};this.onMouseOver=function(){if(s.autoplayHoverPause)s.pauseAutoplay()};this.onMouseOut=function(){if(s.autoplayHoverPause)s.runAutoplay()};this.itemActivated=1;this.seconds=0;this.internalItens=undefined;this.isWhole=0;this.heightCarousel=240;this.autoplay=false;this.autoplayTimeout=5e3;this.autoplayHoverPause=false;this.autoHeight=false;this.bullets=true;this.infiniteLoop=false;this.arrows="outside";this.slidePerPage=1;this.gap="none";this.loading=false;this.secondsLimit=this.autoplayTimeout/1e3}e.prototype.componentWillLoad=function(){this.itemsElement=this.element.getElementsByTagName("bds-carousel-item");this.setInternalItens(Array.from(this.itemsElement))};e.prototype.componentDidRender=function(){if(!this.loading){if(this.gap!="none"){this.frame.style.width="calc(100% + ".concat(l(this.gap),"px)");this.frame.style.marginLeft="-".concat(l(this.gap)/2,"px")}for(var e=0;e<this.itemsElement.length;e++){var t=this.frame.offsetWidth>=1920?1920:this.frame.offsetWidth;this.itemsElement[e].style.width="".concat(t/this.slidePerPage,"px");this.itemsElement[e].style.padding="0 ".concat(l(this.gap)/2,"px")}if(this.autoHeight)this.updateHeight(Array.from(this.itemsElement))}};e.prototype.componentDidLoad=function(){this.startCountSeconds();this.heightCarousel=this.frame.offsetHeight};e.prototype.itemActivatedChanged=function(){var e=this;var t=this.internalItens.find((function(t){return t.id===e.itemActivated}));var i=!this.frame?0:this.frame.offsetWidth*(this.itemActivated-1);if(t.isWhole){var s=this.itemsElement[1].offsetWidth*(this.slidePerPage-this.isWhole);if(this.frameRepeater){this.frameRepeater.style.right="".concat(i-s,"px")}}else{if(this.frameRepeater){this.frameRepeater.style.right="".concat(i,"px")}}this.bdsChangeCarousel.emit({value:t})};e.prototype.autoplayTimeoutChanged=function(){this.secondsLimit=this.autoplayTimeout/1e3};e.prototype.secondsChanged=function(){if(this.seconds>=this.secondsLimit){this.nextSlide();this.seconds=0}};e.prototype.isWholeChanged=function(){var e,t;if(this.internalItens!=undefined){if(this.isWhole>0){var i={id:((e=this.internalItens)===null||e===void 0?void 0:e.length)+1,label:"Frame - ".concat(((t=this.internalItens)===null||t===void 0?void 0:t.length)+1),isWhole:true};this.internalItens=__spreadArray(__spreadArray([],this.internalItens,true),[i],false)}}};e.prototype.buildCarousel=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.itemsElement=this.element.getElementsByTagName("bds-carousel-item");this.loading=true;setTimeout((function(){return e.setInternalItens(Array.from(e.itemsElement)),e.loading=false,e.setActivated(1)}),1e3);return[2]}))}))};e.prototype.nextSlide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.itemActivated==this.internalItens.length){this.itemActivated=1}else{this.itemActivated=this.itemActivated+1}clearInterval(this.incrementSeconds);this.seconds=0;this.startCountSeconds();return[2]}))}))};e.prototype.prevSlide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.itemActivated==1){this.itemActivated=this.internalItens.length}else{this.itemActivated=this.itemActivated-1}clearInterval(this.incrementSeconds);this.seconds=0;this.startCountSeconds();return[2]}))}))};e.prototype.setActivated=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.itemActivated=e;clearInterval(this.incrementSeconds);this.seconds=0;this.startCountSeconds();return[2]}))}))};e.prototype.pauseAutoplay=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){clearInterval(this.incrementSeconds);return[2]}))}))};e.prototype.runAutoplay=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.startCountSeconds();return[2]}))}))};e.prototype.render=function(){var e=this;return s(n,{class:{carousel:true}},s("div",{class:{carousel_slide:true,carousel_slide_fullwidth:this.arrows!="outside"}},s("div",{ref:function(t){return e.refFrame(t)},class:{carousel_slide_frame:true,carousel_slide_frame_loading:this.loading},onMouseOver:function(){return e.onMouseOver()},onMouseOut:function(){return e.onMouseOut()},tabindex:"0"},s("div",{ref:function(t){return e.refFrameRepeater(t)},class:{carousel_slide_frame_repeater:true}},s("slot",null))),this.loading&&s("bds-grid",{class:{carousel_slide_loading:true}},s("bds-skeleton",{height:"".concat(this.heightCarousel,"px"),shape:"square",width:"100%"})),this.arrows!="none"&&s("div",{class:{carousel_buttons:true,carousel_buttons_fullwidth:this.arrows=="inside"}},s("bds-button-icon",{variant:"tertiary",icon:"arrow-left",size:"short",onBdsClick:function(){return e.prevSlide()},disabled:!this.infiniteLoop&&this.itemActivated<=1}),s("bds-button-icon",{variant:"tertiary",icon:"arrow-right",size:"short",onBdsClick:function(){return e.nextSlide()},disabled:!this.infiniteLoop&&this.itemActivated>=this.internalItens.length}))),this.autoplay&&this.loading?s("bds-skeleton",{class:{carousel_loading_bar:true,carousel_loading_bar_fullwidth:this.arrows!="outside"},height:"8px",width:"100%",shape:"square"}):s("bds-loading-bar",{class:{carousel_loading_bar:true,carousel_loading_bar_fullwidth:this.arrows!="outside"},percent:this.seconds*100/this.secondsLimit,size:"small"}),this.bullets&&s("div",{class:{carousel_bullets:true}},this.loading?s("bds-grid",{gap:"2","justify-content":"center"},s("bds-skeleton",{height:"24px",width:"24px",shape:"circle"}),s("bds-skeleton",{height:"24px",width:"24px",shape:"circle"}),s("bds-skeleton",{height:"24px",width:"24px",shape:"circle"})):this.internalItens&&s("bds-radio-group",null,s("bds-grid",{gap:"2","justify-content":"center"},this.internalItens.map((function(t,i){return s("bds-radio",{key:i,checked:t.id==e.itemActivated,value:t.id.toString(),onBdsClickChange:function(){return e.setActivated(t.id)}})}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{itemActivated:["itemActivatedChanged"],autoplayTimeout:["autoplayTimeoutChanged"],seconds:["secondsChanged"],isWhole:["isWholeChanged"]}},enumerable:false,configurable:true});return e}());c.style=u}}}));
|