@gravitee/ui-components 3.25.3-typescript-fdacf14 → 3.25.3-yarn-784d7a8
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-
|
|
3
|
+
"version": "3.25.3-yarn-784d7a8",
|
|
4
4
|
"description": "Gravitee.io UI Components library, based on Web Components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"wc"
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "
|
|
22
|
+
"build": "yarn docs && yarn check:i18n && yarn generate:theme && yarn generate:dist && build-storybook -s assets --modern --quiet",
|
|
23
23
|
"check:i18n": "node tasks/check-i18n.js",
|
|
24
24
|
"danger": "danger ci",
|
|
25
25
|
"docs": "wca analyze src/** --outFile .docs/custom-elements.json && node tasks/generate-docs.js",
|
|
26
|
-
"generate:dist": "
|
|
27
|
-
"generate:icons": "node tasks/generate-icons.js &&
|
|
28
|
-
"generate:theme": "node tasks/generate-theme.js &&
|
|
29
|
-
"lint": "eslint src stories tasks &&
|
|
26
|
+
"generate:dist": "yarn tsc && yarn rollup",
|
|
27
|
+
"generate:icons": "node tasks/generate-icons.js && yarn lint:fix",
|
|
28
|
+
"generate:theme": "node tasks/generate-theme.js && yarn lint:fix",
|
|
29
|
+
"lint": "eslint src stories tasks && yarn prettier",
|
|
30
30
|
"lint:commit": "commitlint --from $(git describe --tags --abbrev=0) --to HEAD --verbose",
|
|
31
|
-
"lint:fix": "eslint --fix src stories tasks &&
|
|
31
|
+
"lint:fix": "eslint --fix src stories tasks && yarn prettier:fix",
|
|
32
32
|
"lint:license": "license-check-and-add check -f license-check-config.json",
|
|
33
33
|
"lint:license:fix": "license-check-and-add add -f license-check-config.json -r $(date +%Y)",
|
|
34
34
|
"lint:package": "sort-package-json",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"prettier:fix": "prettier --write \"**/*.{js,html,css,json}\"",
|
|
38
38
|
"release": "semantic-release",
|
|
39
39
|
"rollup": "rollup -c ",
|
|
40
|
-
"serve": "
|
|
41
|
-
"serve:prod": "
|
|
40
|
+
"serve": "yarn docs && start-storybook -p 6006 --ci -s assets --modern",
|
|
41
|
+
"serve:prod": "yarn build && static -a 0.0.0.0 -p 8080 storybook-static --modern",
|
|
42
42
|
"size": "node tasks/size.js",
|
|
43
|
-
"size:dev": "nodemon -w src -x '
|
|
43
|
+
"size:dev": "nodemon -w src -x 'yarn generate:dist && yarn size'",
|
|
44
44
|
"test": "jest",
|
|
45
|
-
"test:coverage": "
|
|
46
|
-
"test:watch": "
|
|
45
|
+
"test:coverage": "yarn test -- --collect-coverage",
|
|
46
|
+
"test:watch": "yarn test -- --watchAll",
|
|
47
47
|
"tsc": "tsc "
|
|
48
48
|
},
|
|
49
49
|
"lint-staged": {
|
|
50
|
-
"*": "
|
|
50
|
+
"*": "yarn lint:license:fix",
|
|
51
51
|
"*.{js,html,css,json}": "prettier --write",
|
|
52
|
-
"package.json": "
|
|
52
|
+
"package.json": "yarn lint:package"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@codemirror/basic-setup": "^0.19.1",
|
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
"@babel/core": "7.16.5",
|
|
74
74
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
75
75
|
"@babel/preset-env": "7.16.5",
|
|
76
|
-
"@babel/preset-typescript": "^7.16.5",
|
|
77
76
|
"@commitlint/cli": "15.0.0",
|
|
78
77
|
"@commitlint/config-conventional": "15.0.0",
|
|
79
78
|
"@highcharts/map-collection": "1.1.4",
|
|
@@ -153,7 +153,7 @@ export class GvDatePicker extends LitElement {
|
|
|
153
153
|
value: any;
|
|
154
154
|
hasFrom(): boolean;
|
|
155
155
|
hasTo(): boolean;
|
|
156
|
-
_distanceTimer: NodeJS.
|
|
156
|
+
_distanceTimer: NodeJS.Timer | undefined;
|
|
157
157
|
monthChanged(month: any, year: any): void;
|
|
158
158
|
_monthPlus: string | undefined;
|
|
159
159
|
_yearPlus: number | undefined;
|
|
@@ -40,6 +40,6 @@ export class GvRelativeTime extends LitElement {
|
|
|
40
40
|
_datetime: any;
|
|
41
41
|
_formatDateInThePast(date: any): any;
|
|
42
42
|
_format(dateStr: any, lang: any): Promise<string | undefined>;
|
|
43
|
-
updateIntervalId: NodeJS.
|
|
43
|
+
updateIntervalId: NodeJS.Timer | null | undefined;
|
|
44
44
|
}
|
|
45
45
|
import { LitElement } from "lit-element/lit-element";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.GvIdentityPicture=void 0;const
|
|
1
|
+
var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.GvIdentityPicture=void 0;const t=require("lit"),i=e(require("jdenticon")),r=require("../styles/skeleton"),o=require("lit/directives/style-map");require("../atoms/gv-image");class n extends t.LitElement{static get properties(){return{picture:{type:String},display_name:{type:String},_error:{type:Boolean,attribute:!1},notification:{type:Boolean},rounded:{type:Boolean,reflect:!0},skeleton:{type:Boolean}}}static get styles(){return[r.skeleton,t.css`:host{display:block;position:relative}div{text-align:center}.skeleton,svg{width:auto;height:auto;max-width:100%;max-height:100%}gv-image{width:100%;height:100%;--gv-image--of:contain}:host([rounded]) gv-image,:host([rounded]) svg{border:2px solid var(--gv-theme-neutral-color-lighter,#fafafa);border-radius:50%;box-sizing:border-box;--gv-image--of:cover}.notification{position:absolute;width:8px;height:8px;background-clip:padding-box;border-radius:50%;background-color:var(--gv-identity-picture-notification--bgc,var(--gv-theme-color-light,#86c3d0))}`]}_onError(){this._error=!0}_toNumber(e){return parseInt(e.replace("px",""),10)}_onLoaded(){this._error=!1}_getMaxSize(e,t){return Math.min(this._toNumber(e),this._toNumber(t))}updated(e){e.has("picture")&&(this._error=!1)}render(){const{width:e,height:r}=window.getComputedStyle(this);if((!this.picture||this._error)&&e&&r){const o=this._getMaxSize(e,r),n=document.createElement("div");if(this.skeleton&&n.classList.add("skeleton"),n.title=this.display_name,n.innerHTML=i.default.toSvg(this.display_name,o,{backColor:"#FFF"}),this.notification){const t=document.createElement("span");t.className="notification",t.style.left=e,n.appendChild(t)}return t.html`${n}`}return t.html`<gv-image src="${this.picture}" alt="${this.display_name}" title="${this.display_name}" @error="${this._onError}" @gv-image:loaded="${this._onLoaded}"></gv-image>${this.notification?t.html`<span class="notification" style="${(0,o.styleMap)({left:e})}"></span>`:""}`}}exports.GvIdentityPicture=n,window.customElements.define("gv-identity-picture",n);
|
package/src/theme/gv-theme.d.ts
CHANGED