@baloise/ds-core 19.10.2 → 19.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/index.js +1 -1
- package/components/tokens.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
- package/dist/baloise-design-system/index.esm.js +1 -1
- package/dist/baloise-design-system/p--_h4j4q-.js +1 -1
- package/dist/baloise-design-system/{p-c43b1c8d79.entry.js → p-0120070289.entry.js} +1 -1
- package/dist/baloise-design-system/{p-51ffce6828.entry.js → p-0b8cfefae2.entry.js} +1 -1
- package/dist/baloise-design-system/{p-439a747dbc.system.entry.js → p-0fe9b54a8c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a69926ae24.system.entry.js → p-279a626422.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a1986ec146.entry.js → p-303ae1eca7.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ad90a47246.entry.js → p-32edd60ad3.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0fdcf43759.system.entry.js → p-42082df27c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-812beff46b.system.entry.js → p-532eb156ef.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bbbf893871.entry.js → p-562a461303.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1b9b250abe.system.entry.js → p-5df614a3b8.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1061949134.entry.js → p-617988c3e3.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a6060ef45f.entry.js → p-7138289199.entry.js} +1 -1
- package/dist/baloise-design-system/{p-947d26a7ea.entry.js → p-7c8bb95b65.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e2e1459178.system.entry.js → p-9136f723ba.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-CtZAtGLn.system.js → p-9lB9MS3H.system.js} +1 -1
- package/dist/baloise-design-system/{p-B5Jihls7.js → p-B1wmTxRB.js} +1 -1
- package/dist/baloise-design-system/{p-DZ7Qp0Bj.system.js → p-B4Td46rC.system.js} +1 -1
- package/dist/baloise-design-system/{p-CnehxnWc.system.js → p-BnV3yqRD.system.js} +1 -1
- package/dist/baloise-design-system/{p-BybeZtzi.js → p-CZq8R02Z.js} +1 -1
- package/dist/baloise-design-system/{p-CyEbVSiU.system.js → p-CpS7XTQA.system.js} +1 -1
- package/dist/baloise-design-system/p-CrCMAe2F.system.js +1 -1
- package/dist/baloise-design-system/{p-Bzcv4lnZ.js → p-DRgTaUFu.js} +1 -1
- package/dist/baloise-design-system/p-DeyNn-78.system.js +1 -1
- package/dist/baloise-design-system/{p-697057074c.system.entry.js → p-a18183cbcf.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-95391ee568.system.entry.js → p-a5c4867d7f.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a10e424b02.system.entry.js → p-a624d133f8.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a586b2e5a2.system.entry.js → p-b488ff5dbf.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9ca42e82e1.entry.js → p-bef0daae44.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6b05f50f0c.entry.js → p-bfcdf150e2.entry.js} +1 -1
- package/dist/baloise-design-system/{p-250da53738.system.entry.js → p-ca10660fe5.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-088be30165.entry.js → p-dd2bcefe11.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9a44db559b.system.entry.js → p-ddb1059850.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7a0b334011.entry.js → p-e0578a7d31.entry.js} +1 -1
- package/dist/baloise-design-system/{p-76189d3df1.system.entry.js → p-ebb826e2fd.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dc47105283.entry.js → p-ec288c62b7.entry.js} +1 -1
- package/dist/cjs/bal-carousel_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
- package/dist/cjs/bal-logo.cjs.entry.js +3 -3
- package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
- package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
- package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
- package/dist/cjs/bal-segment_2.cjs.entry.js +4 -4
- package/dist/cjs/bal-shape.cjs.entry.js +1 -1
- package/dist/cjs/bal-steps.cjs.entry.js +3 -3
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +3 -3
- package/dist/cjs/{breakpoints.decorator-vrWWx5vM.js → breakpoints.decorator-vK9DY8DG.js} +1 -1
- package/dist/cjs/{breakpoints.subject-yTLSPGg0.js → breakpoints.subject-06UnlIwi.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/initialize-7J6n8lOv.js +1 -1
- package/dist/cjs/{tokens.esm-tJGgv2vT.js → tokens.esm-CI7Ryd4a.js} +1 -1
- package/dist/cjs/{window-resize.decorator-B-RdpYiW.js → window-resize.decorator-C3L73THh.js} +1 -1
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/esm/bal-carousel_2.entry.js +3 -3
- package/dist/esm/bal-field_5.entry.js +3 -3
- package/dist/esm/bal-hint_5.entry.js +3 -3
- package/dist/esm/bal-list_8.entry.js +3 -3
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-nav_8.entry.js +3 -3
- package/dist/esm/bal-navbar_5.entry.js +3 -3
- package/dist/esm/bal-pagination.entry.js +3 -3
- package/dist/esm/bal-progress-bar.entry.js +4 -4
- package/dist/esm/bal-segment_2.entry.js +4 -4
- package/dist/esm/bal-shape.entry.js +1 -1
- package/dist/esm/bal-steps.entry.js +3 -3
- package/dist/esm/bal-tab-item_2.entry.js +3 -3
- package/dist/esm/{breakpoints.decorator-C5dKgDzT.js → breakpoints.decorator-JqfaSA0e.js} +1 -1
- package/dist/esm/{breakpoints.subject-DtLDSFIh.js → breakpoints.subject-D49k_nST.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/initialize-BS5FhjDS.js +1 -1
- package/dist/esm/{tokens.esm-CE9kosiw.js → tokens.esm-fPhmdkLe.js} +1 -1
- package/dist/esm/{window-resize.decorator-D7MEnsOw.js → window-resize.decorator-Qo0q2fuO.js} +1 -1
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-field_5.entry.js +1 -1
- package/dist/esm-es5/bal-hint_5.entry.js +1 -1
- package/dist/esm-es5/bal-list_8.entry.js +1 -1
- package/dist/esm-es5/bal-logo.entry.js +1 -1
- package/dist/esm-es5/bal-nav_8.entry.js +1 -1
- package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
- package/dist/esm-es5/bal-pagination.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
- package/dist/esm-es5/bal-segment_2.entry.js +1 -1
- package/dist/esm-es5/bal-shape.entry.js +1 -1
- package/dist/esm-es5/bal-steps.entry.js +1 -1
- package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
- package/dist/esm-es5/{breakpoints.decorator-C5dKgDzT.js → breakpoints.decorator-JqfaSA0e.js} +1 -1
- package/dist/esm-es5/{breakpoints.subject-DtLDSFIh.js → breakpoints.subject-D49k_nST.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-BS5FhjDS.js +1 -1
- package/dist/esm-es5/{window-resize.decorator-D7MEnsOw.js → window-resize.decorator-Qo0q2fuO.js} +1 -1
- package/package.json +6 -6
- /package/dist/baloise-design-system/{p-DyJyhRov.system.js → p-Bx_Hh-zr.system.js} +0 -0
- /package/dist/baloise-design-system/{p-CE9kosiw.js → p-fPhmdkLe.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-CE9kosiw.js → tokens.esm-fPhmdkLe.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter,__extends,__generator}from"tslib";import{a as setPlatformHelpers}from"./index-BdVwMG9u.js";import{b as balBrowser}from"./browser-B1u-Mq75.js";import{f as waitForComponent}from"./helpers-BNj87EbG.js";import{d as defaultConfig}from"./config.default-RE8-gLMQ.js";var BALOISE_ANIMATION_KEY="baloise-animated";var Config=function(){function t(){this._componentObservers=[];this._observers=[];this._config=defaultConfig}Object.defineProperty(t.prototype,"brand",{get:function(){return this._config.brand},set:function(t){if(t!==this._config.brand){this._config.brand=t;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"locale",{get:function(){return"".concat(this._config.language,"-").concat(this._config.region)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"region",{get:function(){return this._config.region},set:function(t){if(t!==this._config.region){this._config.region=t;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"language",{get:function(){return this._config.language},set:function(t){if(t!==this._config.language){if(this._config.allowedLanguages.includes(t)){this._config.language=t}else{this._config.language=this._config.fallbackLanguage}this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"allowedLanguages",{get:function(){return this._config.allowedLanguages},set:function(t){if(t!==this._config.allowedLanguages){this._config.allowedLanguages=t;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"icons",{get:function(){return this._config.icons},set:function(t){this._config.icons=Object.assign(Object.assign({},this._config.icons),t);this._notify()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"logger",{get:function(){return this._config.logger},set:function(t){this._config.logger=Object.assign({},t);this._notify()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"animated",{get:function(){return this._config.animated},set:function(t){this._config.animated=t;this._notify()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"httpFormSubmit",{get:function(){return this._config.httpFormSubmit},set:function(t){this._config.httpFormSubmit=t;this._notify()},enumerable:false,configurable:true});t.prototype.attach=function(t){var e=this._observers.includes(t);if(e){return console.log("Subject: Observer has been attached already.")}this._observers.push(t);t.configChanged(this._config)};t.prototype.detach=function(t){var e=this._observers.indexOf(t);if(e===-1){return console.log("Subject: Nonexistent observer.")}this._observers.splice(e,1)};t.prototype.attachComponent=function(t){var e=this._componentObservers.includes(t);if(e){return console.log("Subject: Observer has been attached already.")}this._componentObservers.push(t);t.configChanged(this._config)};t.prototype.detachComponent=function(t){var e=this._componentObservers.indexOf(t);if(e===-1){return console.log("Subject: Nonexistent observer.")}this._componentObservers.splice(e,1)};t.prototype.toString=function(){return JSON.stringify(this._config)};t.prototype.reset=function(t){this._config=Object.assign(Object.assign(Object.assign({},this._config),t),{icons:Object.assign(Object.assign({},this._config.icons),t.icons)});this._notify(false)};t.prototype._notify=function(t){if(t===void 0){t=true}for(var e=0,a=this._componentObservers;e<a.length;e++){var i=a[e];i.configChanged(this._config)}if(t){for(var n=0,r=this._observers;n<r.length;n++){var i=r[n];i.configChanged(this._config)}}};return t}();var config=new Config;var configFromLocalStorage=function(t){try{var e=t.localStorage.getItem(BALOISE_ANIMATION_KEY)||"true";var a=JSON.parse(e);if(a!==null){return{animated:a}}return{}}catch(t){return{}}};var setupConfig=function(t,e){if(t===void 0){t={}}if(e===void 0){e={}}if(Object.keys(e).length===0&&balBrowser.hasWindow){e=window}e.BaloiseDesignSystem=e.BaloiseDesignSystem||{};config.reset(Object.assign(Object.assign(Object.assign({},configFromLocalStorage(e)),t),{icons:Object.assign({},t.icons)}));e.BaloiseDesignSystem.config=config};var BalNoticeController=function(){function t(t){this.options=t;this.container=null;this.queue=[];this.preQueue=[];this.queueLimit=5}t.prototype.create=function(t){var e=this;if(balBrowser.hasDocument){this.setupContainer(t);var a=this.findClone(t);if(a===undefined){var i=document.createElement(this.options.tag);Object.assign(i,t);i.addEventListener("balClose",(function(t){e.removeFromQueue(t.detail)}));this.preQueue.push(i);this.updateQueue();return i}return a}};t.prototype.setQueue=function(t){this.queueLimit=t};t.prototype.dismissAll=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,a,i,n;return __generator(this,(function(r){switch(r.label){case 0:e=(t=this.container)===null||t===void 0?void 0:t.querySelectorAll(this.options.tag);if(!e)return[3,2];a=[];for(i=0;i<e.length;i++){n=e[i];if(n.close){a.push(n.close())}}return[4,Promise.all(a)];case 1:r.sent();r.label=2;case 2:return[2]}}))}))};t.prototype.clearAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){console.warn("[DEPRECATED] - use dismissAll() instead");return[2,this.dismissAll()]}))}))};t.prototype.findClone=function(t){for(var e=0;e<this.queue.length;e++){var a=this.queue[e];if(a.message===t.message&&a.color===t.color){return a}}return undefined};t.prototype.setupContainer=function(t){if(balBrowser.hasDocument){var e="".concat(this.options.tag,"-container");this.container=document.getElementById(e);if(this.container)return;if(!this.container){this.container=document.createElement("bal-notices");this.container.setAttribute("interface",this.options.tag.replace("bal-",""));this.container.setAttribute("animated",t.animated?"true":"false");if(t.container!==undefined){this.container.setAttribute("container",t.container===true?"":t.container)}this.container.id=e}document.body.appendChild(this.container)}};t.prototype.updateQueue=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,a;return __generator(this,(function(i){switch(i.label){case 0:if(!(this.queue.length<this.queueLimit))return[3,2];e=this.preQueue.shift();if(!(e&&this.container))return[3,2];return[4,waitForComponent(this.container)];case 1:i.sent();a=this.container.querySelector(".bal-notices__inner");if(a){this.queue.push(e);a.insertAdjacentElement("beforeend",e)}i.label=2;case 2:if(this.queue.length===0){(t=this.container)===null||t===void 0?void 0:t.remove()}return[2]}}))}))};t.prototype.removeFromQueue=function(t){var e=this;this.queue=this.queue.filter((function(e){return e.id!==t}));setTimeout((function(){return e.updateQueue()}),0)};return t}();var BalSnackbarController=function(t){__extends(e,t);function e(){return t.call(this,{tag:"bal-snackbar"})||this}e.prototype.create=function(e){return t.prototype.create.call(this,e)};return e}(BalNoticeController);var balSnackbarController=new BalSnackbarController;var BalToastController=function(t){__extends(e,t);function e(){return t.call(this,{tag:"bal-toast"})||this}e.prototype.create=function(e){return t.prototype.create.call(this,e)};return e}(BalNoticeController);var balToastController=new BalToastController;var tags=["bal-accordion","bal-accordion-details","bal-accordion-summary","bal-accordion-trigger","bal-app","bal-badge","bal-button","bal-button-group","bal-card","bal-card-actions","bal-card-button","bal-card-content","bal-card-subtitle","bal-card-title","bal-carousel","bal-carousel-item","bal-check","bal-checkbox","bal-checkbox-group","bal-close","bal-content","bal-data","bal-data-item","bal-data-label","bal-data-value","bal-date","bal-date-calendar","bal-date-calendar-cell","bal-divider","bal-dropdown","bal-field","bal-field-control","bal-field-hint","bal-field-label","bal-field-message","bal-file-upload","bal-footer","bal-form","bal-form-col","bal-form-grid","bal-heading","bal-hint","bal-hint-text","bal-hint-title","bal-icon","bal-input","bal-input-date","bal-input-group","bal-input-slider","bal-input-stepper","bal-label","bal-list","bal-list-item","bal-list-item-accordion-body","bal-list-item-accordion-head","bal-list-item-content","bal-list-item-icon","bal-list-item-subtitle","bal-list-item-title","bal-logo","bal-modal","bal-modal-body","bal-modal-header","bal-nav","bal-nav-link","bal-nav-link-grid","bal-nav-link-grid-col","bal-nav-link-group","bal-nav-menu-bar","bal-nav-menu-flyout","bal-nav-meta-bar","bal-navbar","bal-navbar-brand","bal-navbar-menu","bal-navbar-menu-end","bal-navbar-menu-start","bal-notices","bal-notification","bal-number-input","bal-option","bal-option-list","bal-pagination","bal-popover","bal-popover-content","bal-popup","bal-progress-bar","bal-radio","bal-radio-group","bal-radio-icon","bal-segment","bal-segment-item","bal-select","bal-select-option","bal-shape","bal-sheet","bal-snackbar","bal-spinner","bal-stack","bal-stage","bal-stage-back-link","bal-stage-body","bal-stage-foot","bal-stage-head","bal-stage-image","bal-step-item","bal-steps","bal-switch","bal-tab-item","bal-table","bal-tabs","bal-tag","bal-tag-group","bal-text","bal-textarea","bal-time-input","bal-toast","bal-tooltip"];var VERSION="19.10.2";var initializeBaloiseDesignSystem=function(t,e,a){if(t===void 0){t={}}if(e===void 0){e=undefined}if(a===void 0){a={}}if(Object.keys(a).length===0&&balBrowser.hasWindow){a=window}a.BaloiseDesignSystem=a.BaloiseDesignSystem||{};if(e){setPlatformHelpers(e)}setupConfig(Object.assign(Object.assign({},t),e),a);a.BaloiseDesignSystem.toastController=balToastController;a.BaloiseDesignSystem.snackbarController=balSnackbarController;a.BaloiseDesignSystem.initialize=function(){return setupConfig(a.BaloiseDesignSystem.config,a)};a.BaloiseDesignSystem.version=VERSION;if(t._generateHydrateForCustomElementsOutput){generateHydrateForCustomElementsOutput(tags)}};var generateHydrateForCustomElementsOutput=function(t){if(t===void 0){t=[]}var e="slot-fb{display:contents}slot-fb[hidden]{display:none}";var a="{visibility:hidden}.hydrated{visibility:inherit}";var i=typeof window!=="undefined"?window:{};if(!i.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var n=i.document.head;var r=n.querySelector("meta[charset]");var o=i.document.createElement("style");if(t.length>0){o.textContent+=e;o.textContent+=t.sort()+a;if(o.innerHTML.length){o.setAttribute("data-styles","");n.insertBefore(o,r?r.nextSibling:n.firstChild)}}};export{BalSnackbarController as B,BalToastController as a,balSnackbarController as b,balToastController as c,initializeBaloiseDesignSystem as i,setupConfig as s};
|
|
1
|
+
import{__awaiter,__extends,__generator}from"tslib";import{a as setPlatformHelpers}from"./index-BdVwMG9u.js";import{b as balBrowser}from"./browser-B1u-Mq75.js";import{f as waitForComponent}from"./helpers-BNj87EbG.js";import{d as defaultConfig}from"./config.default-RE8-gLMQ.js";var BALOISE_ANIMATION_KEY="baloise-animated";var Config=function(){function t(){this._componentObservers=[];this._observers=[];this._config=defaultConfig}Object.defineProperty(t.prototype,"brand",{get:function(){return this._config.brand},set:function(t){if(t!==this._config.brand){this._config.brand=t;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"locale",{get:function(){return"".concat(this._config.language,"-").concat(this._config.region)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"region",{get:function(){return this._config.region},set:function(t){if(t!==this._config.region){this._config.region=t;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"language",{get:function(){return this._config.language},set:function(t){if(t!==this._config.language){if(this._config.allowedLanguages.includes(t)){this._config.language=t}else{this._config.language=this._config.fallbackLanguage}this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"allowedLanguages",{get:function(){return this._config.allowedLanguages},set:function(t){if(t!==this._config.allowedLanguages){this._config.allowedLanguages=t;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"icons",{get:function(){return this._config.icons},set:function(t){this._config.icons=Object.assign(Object.assign({},this._config.icons),t);this._notify()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"logger",{get:function(){return this._config.logger},set:function(t){this._config.logger=Object.assign({},t);this._notify()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"animated",{get:function(){return this._config.animated},set:function(t){this._config.animated=t;this._notify()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"httpFormSubmit",{get:function(){return this._config.httpFormSubmit},set:function(t){this._config.httpFormSubmit=t;this._notify()},enumerable:false,configurable:true});t.prototype.attach=function(t){var e=this._observers.includes(t);if(e){return console.log("Subject: Observer has been attached already.")}this._observers.push(t);t.configChanged(this._config)};t.prototype.detach=function(t){var e=this._observers.indexOf(t);if(e===-1){return console.log("Subject: Nonexistent observer.")}this._observers.splice(e,1)};t.prototype.attachComponent=function(t){var e=this._componentObservers.includes(t);if(e){return console.log("Subject: Observer has been attached already.")}this._componentObservers.push(t);t.configChanged(this._config)};t.prototype.detachComponent=function(t){var e=this._componentObservers.indexOf(t);if(e===-1){return console.log("Subject: Nonexistent observer.")}this._componentObservers.splice(e,1)};t.prototype.toString=function(){return JSON.stringify(this._config)};t.prototype.reset=function(t){this._config=Object.assign(Object.assign(Object.assign({},this._config),t),{icons:Object.assign(Object.assign({},this._config.icons),t.icons)});this._notify(false)};t.prototype._notify=function(t){if(t===void 0){t=true}for(var e=0,a=this._componentObservers;e<a.length;e++){var i=a[e];i.configChanged(this._config)}if(t){for(var n=0,r=this._observers;n<r.length;n++){var i=r[n];i.configChanged(this._config)}}};return t}();var config=new Config;var configFromLocalStorage=function(t){try{var e=t.localStorage.getItem(BALOISE_ANIMATION_KEY)||"true";var a=JSON.parse(e);if(a!==null){return{animated:a}}return{}}catch(t){return{}}};var setupConfig=function(t,e){if(t===void 0){t={}}if(e===void 0){e={}}if(Object.keys(e).length===0&&balBrowser.hasWindow){e=window}e.BaloiseDesignSystem=e.BaloiseDesignSystem||{};config.reset(Object.assign(Object.assign(Object.assign({},configFromLocalStorage(e)),t),{icons:Object.assign({},t.icons)}));e.BaloiseDesignSystem.config=config};var BalNoticeController=function(){function t(t){this.options=t;this.container=null;this.queue=[];this.preQueue=[];this.queueLimit=5}t.prototype.create=function(t){var e=this;if(balBrowser.hasDocument){this.setupContainer(t);var a=this.findClone(t);if(a===undefined){var i=document.createElement(this.options.tag);Object.assign(i,t);i.addEventListener("balClose",(function(t){e.removeFromQueue(t.detail)}));this.preQueue.push(i);this.updateQueue();return i}return a}};t.prototype.setQueue=function(t){this.queueLimit=t};t.prototype.dismissAll=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,a,i,n;return __generator(this,(function(r){switch(r.label){case 0:e=(t=this.container)===null||t===void 0?void 0:t.querySelectorAll(this.options.tag);if(!e)return[3,2];a=[];for(i=0;i<e.length;i++){n=e[i];if(n.close){a.push(n.close())}}return[4,Promise.all(a)];case 1:r.sent();r.label=2;case 2:return[2]}}))}))};t.prototype.clearAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){console.warn("[DEPRECATED] - use dismissAll() instead");return[2,this.dismissAll()]}))}))};t.prototype.findClone=function(t){for(var e=0;e<this.queue.length;e++){var a=this.queue[e];if(a.message===t.message&&a.color===t.color){return a}}return undefined};t.prototype.setupContainer=function(t){if(balBrowser.hasDocument){var e="".concat(this.options.tag,"-container");this.container=document.getElementById(e);if(this.container)return;if(!this.container){this.container=document.createElement("bal-notices");this.container.setAttribute("interface",this.options.tag.replace("bal-",""));this.container.setAttribute("animated",t.animated?"true":"false");if(t.container!==undefined){this.container.setAttribute("container",t.container===true?"":t.container)}this.container.id=e}document.body.appendChild(this.container)}};t.prototype.updateQueue=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,a;return __generator(this,(function(i){switch(i.label){case 0:if(!(this.queue.length<this.queueLimit))return[3,2];e=this.preQueue.shift();if(!(e&&this.container))return[3,2];return[4,waitForComponent(this.container)];case 1:i.sent();a=this.container.querySelector(".bal-notices__inner");if(a){this.queue.push(e);a.insertAdjacentElement("beforeend",e)}i.label=2;case 2:if(this.queue.length===0){(t=this.container)===null||t===void 0?void 0:t.remove()}return[2]}}))}))};t.prototype.removeFromQueue=function(t){var e=this;this.queue=this.queue.filter((function(e){return e.id!==t}));setTimeout((function(){return e.updateQueue()}),0)};return t}();var BalSnackbarController=function(t){__extends(e,t);function e(){return t.call(this,{tag:"bal-snackbar"})||this}e.prototype.create=function(e){return t.prototype.create.call(this,e)};return e}(BalNoticeController);var balSnackbarController=new BalSnackbarController;var BalToastController=function(t){__extends(e,t);function e(){return t.call(this,{tag:"bal-toast"})||this}e.prototype.create=function(e){return t.prototype.create.call(this,e)};return e}(BalNoticeController);var balToastController=new BalToastController;var tags=["bal-accordion","bal-accordion-details","bal-accordion-summary","bal-accordion-trigger","bal-app","bal-badge","bal-button","bal-button-group","bal-card","bal-card-actions","bal-card-button","bal-card-content","bal-card-subtitle","bal-card-title","bal-carousel","bal-carousel-item","bal-check","bal-checkbox","bal-checkbox-group","bal-close","bal-content","bal-data","bal-data-item","bal-data-label","bal-data-value","bal-date","bal-date-calendar","bal-date-calendar-cell","bal-divider","bal-dropdown","bal-field","bal-field-control","bal-field-hint","bal-field-label","bal-field-message","bal-file-upload","bal-footer","bal-form","bal-form-col","bal-form-grid","bal-heading","bal-hint","bal-hint-text","bal-hint-title","bal-icon","bal-input","bal-input-date","bal-input-group","bal-input-slider","bal-input-stepper","bal-label","bal-list","bal-list-item","bal-list-item-accordion-body","bal-list-item-accordion-head","bal-list-item-content","bal-list-item-icon","bal-list-item-subtitle","bal-list-item-title","bal-logo","bal-modal","bal-modal-body","bal-modal-header","bal-nav","bal-nav-link","bal-nav-link-grid","bal-nav-link-grid-col","bal-nav-link-group","bal-nav-menu-bar","bal-nav-menu-flyout","bal-nav-meta-bar","bal-navbar","bal-navbar-brand","bal-navbar-menu","bal-navbar-menu-end","bal-navbar-menu-start","bal-notices","bal-notification","bal-number-input","bal-option","bal-option-list","bal-pagination","bal-popover","bal-popover-content","bal-popup","bal-progress-bar","bal-radio","bal-radio-group","bal-radio-icon","bal-segment","bal-segment-item","bal-select","bal-select-option","bal-shape","bal-sheet","bal-snackbar","bal-spinner","bal-stack","bal-stage","bal-stage-back-link","bal-stage-body","bal-stage-foot","bal-stage-head","bal-stage-image","bal-step-item","bal-steps","bal-switch","bal-tab-item","bal-table","bal-tabs","bal-tag","bal-tag-group","bal-text","bal-textarea","bal-time-input","bal-toast","bal-tooltip"];var VERSION="19.11.0";var initializeBaloiseDesignSystem=function(t,e,a){if(t===void 0){t={}}if(e===void 0){e=undefined}if(a===void 0){a={}}if(Object.keys(a).length===0&&balBrowser.hasWindow){a=window}a.BaloiseDesignSystem=a.BaloiseDesignSystem||{};if(e){setPlatformHelpers(e)}setupConfig(Object.assign(Object.assign({},t),e),a);a.BaloiseDesignSystem.toastController=balToastController;a.BaloiseDesignSystem.snackbarController=balSnackbarController;a.BaloiseDesignSystem.initialize=function(){return setupConfig(a.BaloiseDesignSystem.config,a)};a.BaloiseDesignSystem.version=VERSION;if(t._generateHydrateForCustomElementsOutput){generateHydrateForCustomElementsOutput(tags)}};var generateHydrateForCustomElementsOutput=function(t){if(t===void 0){t=[]}var e="slot-fb{display:contents}slot-fb[hidden]{display:none}";var a="{visibility:hidden}.hydrated{visibility:inherit}";var i=typeof window!=="undefined"?window:{};if(!i.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var n=i.document.head;var r=n.querySelector("meta[charset]");var o=i.document.createElement("style");if(t.length>0){o.textContent+=e;o.textContent+=t.sort()+a;if(o.innerHTML.length){o.setAttribute("data-styles","");n.insertBefore(o,r?r.nextSibling:n.firstChild)}}};export{BalSnackbarController as B,BalToastController as a,balSnackbarController as b,balToastController as c,initializeBaloiseDesignSystem as i,setupConfig as s};
|
package/dist/esm-es5/{window-resize.decorator-D7MEnsOw.js → window-resize.decorator-Qo0q2fuO.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends}from"tslib";import{B as BalWindowResizeListener}from"./breakpoints.subject-
|
|
1
|
+
import{__extends}from"tslib";import{B as BalWindowResizeListener}from"./breakpoints.subject-D49k_nST.js";import{a as SingleSubject}from"./listener-CClDIhvK.js";import{b as balBrowser}from"./browser-B1u-Mq75.js";var BalWindowResizeSubject=function(i){__extends(t,i);function t(){var t=i.call(this,(function(i,t){i.windowResizeListener()}))||this;t.listener=new BalWindowResizeListener;return t}t.prototype.attach=function(t){var e=this;i.prototype.attach.call(this,t);if(balBrowser.hasWindow){this.listener.connect(window);this.listener.add((function(){return i.prototype.notify.call(e)}))}};t.prototype.detach=function(){i.prototype.detach.call(this);this.listener.disconnect()};return t}(SingleSubject);new BalWindowResizeSubject;function ListenToWindowResize(){return function(i,t,e){var n=i.connectedCallback,s=i.disconnectedCallback;i.connectedCallback=function(){if(!this._balWindowResizeSubject){this._balWindowResizeSubject=new BalWindowResizeSubject;this._balWindowResizeSubject.attach(this)}return n&&n.call(this)};i.disconnectedCallback=function(){if(this._balWindowResizeSubject){this._balWindowResizeSubject.detach();this._balWindowResizeSubject=undefined}return s&&s.call(this)}}}export{ListenToWindowResize as L};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baloise/ds-core",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.11.0",
|
|
4
4
|
"description": "The Baloise Design-System is an open source project for styling awesome web applications that follow the Baloise corporate styling guidelines.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"loader/"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@baloise/ds-styles": "19.
|
|
29
|
-
"@baloise/ds-icons": "19.
|
|
28
|
+
"@baloise/ds-styles": "19.11.0",
|
|
29
|
+
"@baloise/ds-icons": "19.11.0",
|
|
30
30
|
"@baloise/web-app-utils": "3.15.0",
|
|
31
31
|
"@floating-ui/dom": "~1.6.3",
|
|
32
32
|
"@popperjs/core": "~2.11.4",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@baloise/output-target-angular": "0.0.0",
|
|
52
52
|
"@baloise/output-target-web": "0.0.0",
|
|
53
|
-
"@baloise/ds-maps": "19.
|
|
54
|
-
"@baloise/ds-brand-icons": "19.
|
|
55
|
-
"@baloise/ds-favicons": "19.
|
|
53
|
+
"@baloise/ds-maps": "19.11.0",
|
|
54
|
+
"@baloise/ds-brand-icons": "19.11.0",
|
|
55
|
+
"@baloise/ds-favicons": "19.11.0",
|
|
56
56
|
"compression": "~1.8.1",
|
|
57
57
|
"express": "~4.22.1",
|
|
58
58
|
"serve-index": "~1.9.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|