@gravitee/ui-components 3.25.3-typescript-5a46c7d → 3.25.3-typescript-bfd8f67

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/ui-components",
3
- "version": "3.25.3-typescript-5a46c7d",
3
+ "version": "3.25.3-typescript-bfd8f67",
4
4
  "description": "Gravitee.io UI Components library, based on Web Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -72,6 +72,7 @@
72
72
  "@babel/core": "7.16.5",
73
73
  "@babel/plugin-syntax-dynamic-import": "7.8.3",
74
74
  "@babel/preset-env": "7.16.5",
75
+ "@babel/preset-typescript": "^7.16.5",
75
76
  "@commitlint/cli": "15.0.0",
76
77
  "@commitlint/config-conventional": "15.0.0",
77
78
  "@highcharts/map-collection": "1.1.4",
@@ -1 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.GvMessage=void 0;const e=require("lit/directives/class-map"),t=require("lit"),s=require("../lib/events");require("../atoms/gv-icon");class i extends t.LitElement{static get properties(){return{type:{type:String},closable:{type:Boolean},_close:{type:Boolean,attribute:!1}}}static get styles(){return[t.css`:host{display:block;vertical-align:middle}.box{display:flex;align-items:center;font-style:normal;font-weight:400;line-height:normal;padding:12px 0;text-align:center;width:100%}.info{background-color:var(--gv-theme-color-info-light,#64b5f6)}.success{background-color:var(--gv-theme-color-success-light,#81c784)}.warning{background-color:var(--gv-theme-color-warning-light,#ffb74d)}.error{background-color:var(--gv-theme-color-error-light,#e57373)}.close{transition:opacity 250ms ease-in-out;opacity:0}gv-icon{--gv-icon--s:24px;margin-right:12px}gv-icon:hover{cursor:pointer}.content{flex:1 1 auto;margin-left:12px}`]}_onClick(){this._close=!0,setTimeout((()=>{(0,s.dispatchCustomEvent)(this,"close")}),250)}render(){const s={box:!0,simple:!this.type||"info"!==this.type&&"success"!==this.type&&"error"!==this.type&&"warning"!==this.type,info:"info"===this.type,warning:"warning"===this.type,success:"success"===this.type,error:"error"===this.type,close:this._close};return t.html`<div class="${(0,e.classMap)(s)}"><div class="content"><slot></slot></div>${this.closable?t.html`<gv-icon shape="general:close" @click="${this._onClick}"></gv-icon>`:""}</div>`}}exports.GvMessage=i,window.customElements.define("gv-message",i);
1
+ var e=function(e,t,o,r){var s,i=arguments.length,c=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(c=(i<3?s(c):i>3?s(t,o,c):s(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c};Object.defineProperty(exports,"__esModule",{value:!0}),exports.GvMessage=void 0;const t=require("lit/directives/class-map"),o=require("lit"),r=require("lit/decorators.js"),s=require("../lib/events");require("./gv-icon");let i=class extends o.LitElement{constructor(){super(...arguments),this._close=!1,this.closable=!1,this.type=""}_onClick(){this._close=!0,setTimeout((()=>{(0,s.dispatchCustomEvent)(this,"close")}),250)}render(){const e={box:!0,simple:!this.type||"info"!==this.type&&"success"!==this.type&&"error"!==this.type&&"warning"!==this.type,info:"info"===this.type,warning:"warning"===this.type,success:"success"===this.type,error:"error"===this.type,close:this._close};return o.html`<div class="${(0,t.classMap)(e)}"><div class="content"><slot></slot></div>${this.closable?o.html`<gv-icon shape="general:close" @click="${this._onClick}"></gv-icon>`:""}</div>`}};i.styles=o.css`:host{display:block;vertical-align:middle}.box{display:flex;align-items:center;font-style:normal;font-weight:400;line-height:normal;padding:12px 0;text-align:center;width:100%}.info{background-color:var(--gv-theme-color-info-light,#64b5f6)}.success{background-color:var(--gv-theme-color-success-light,#81c784)}.warning{background-color:var(--gv-theme-color-warning-light,#ffb74d)}.error{background-color:var(--gv-theme-color-error-light,#e57373)}.close{transition:opacity 250ms ease-in-out;opacity:0}gv-icon{--gv-icon--s:24px;margin-right:12px}gv-icon:hover{cursor:pointer}.content{flex:1 1 auto;margin-left:12px}`,e([(0,r.property)()],i.prototype,"closable",void 0),e([(0,r.property)()],i.prototype,"type",void 0),i=e([(0,r.customElement)("gv-message")],i),exports.GvMessage=i;