@digital-realty/ix-drawer 1.0.4 → 1.0.6
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/IxDrawer.js
CHANGED
package/dist/IxDrawer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IxDrawer.js","sourceRoot":"","sources":["../src/IxDrawer.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,4BAA4B,CAAC;AAEpC,MAAM,OAAO,QAAS,SAAQ,UAAU;IAAxC;;QAK+B,cAAS,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"IxDrawer.js","sourceRoot":"","sources":["../src/IxDrawer.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,4BAA4B,CAAC;AAEpC,MAAM,OAAO,QAAS,SAAQ,UAAU;IAAxC;;QAK+B,cAAS,GAAG,KAAK,CAAC;IAyCjD,CAAC;IA7CC,MAAM,KAAK,MAAM;QACf,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1B,CAAC;IAMD,kDAAkD;IAClD,gBAAgB;QACd,OAAO,OAAO,CAAC;QAEf,mDAAmD;QACnD,0FAA0F;QAC1F,6EAA6E;QAC7E,mDAAmD;QACnD,SAAS;QACT,iBAAiB;IACnB,CAAC;IAED,MAAM;QACJ,IAAI,IAAI,CAAC,SAAS;YAChB,OAAO,IAAI,CAAA;;;;;;kBAMC,IAAI,CAAC,gBAAgB,EAAE;;;;oCAIL,IAAI,CAAC,QAAQ;;;;;;;;;OAS1C,CAAC;QAEJ,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAzC8B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;2CAAmB;AAEjB;IAA7B,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;0CAAe","sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { IxDrawerStyles } from './styles/ix-drawer-styles.js';\nimport '@material/web/icon/icon.js';\n\nexport class IxDrawer extends LitElement {\n static get styles() {\n return [IxDrawerStyles];\n }\n\n @property({ type: Boolean }) isVisible = false;\n\n @property({ type: Function }) onClosed: any;\n\n // eslint-disable-next-line class-methods-use-this\n renderHideButton() {\n return nothing;\n\n // import '@digital-realty/ix-button/ix-button.js';\n // TO DO: this part will be completed with https://telxapp.atlassian.net/browse/IXUAT-8818\n // return html`<ix-button appearance=\"text\" has-icon @click=${this.onClosed}>\n // <md-icon slot=\"icon\">fullscreen_exit</md-icon>\n // Hide\n // </ix-button>`;\n }\n\n render() {\n if (this.isVisible)\n return html`\n <div class=\"drawer-container\">\n <aside class=\"drawer\">\n <div class=\"drawer-header\">\n <slot name=\"header\"></slot>\n <div class=\"drawer-header__hide-btn\">\n ${this.renderHideButton()}\n </div>\n <div class=\"drawer-header__close-btn\">\n <div class=\"drawer-header__close-btn-hover-layer\">\n <md-icon @click=${this.onClosed}>Close</md-icon>\n </div>\n </div>\n </div>\n <div class=\"drawer-body\">\n <slot name=\"content\"></slot>\n </div>\n </aside>\n </div>\n `;\n\n return nothing;\n }\n}\n"]}
|
|
@@ -22,7 +22,7 @@ export const IxDrawerStyles = css `
|
|
|
22
22
|
border-radius: 20px 0px 0px 20px;
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
}
|
|
25
|
-
@media screen and (min-width:
|
|
25
|
+
@media screen and (min-width: 1024px) {
|
|
26
26
|
.drawer {
|
|
27
27
|
width: 45%;
|
|
28
28
|
}
|
|
@@ -50,7 +50,7 @@ export const IxDrawerStyles = css `
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.drawer-body {
|
|
53
|
-
height:
|
|
53
|
+
height: 95%;
|
|
54
54
|
overflow: auto;
|
|
55
55
|
}
|
|
56
56
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ix-drawer-styles.js","sourceRoot":"","sources":["../../src/styles/ix-drawer-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDhC,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const IxDrawerStyles = css`\n .drawer-container {\n z-index: 1;\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background-color: rgba(0, 0, 0, 0.2);\n scroll-behavior: auto;\n overflow: auto;\n }\n\n .drawer {\n width: 90%;\n height: 100%;\n float: right;\n padding: 32px 40px 40px;\n background-color: white;\n border-radius: 20px 0px 0px 20px;\n box-sizing: border-box;\n }\n @media screen and (min-width:
|
|
1
|
+
{"version":3,"file":"ix-drawer-styles.js","sourceRoot":"","sources":["../../src/styles/ix-drawer-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDhC,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const IxDrawerStyles = css`\n .drawer-container {\n z-index: 1;\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background-color: rgba(0, 0, 0, 0.2);\n scroll-behavior: auto;\n overflow: auto;\n }\n\n .drawer {\n width: 90%;\n height: 100%;\n float: right;\n padding: 32px 40px 40px;\n background-color: white;\n border-radius: 20px 0px 0px 20px;\n box-sizing: border-box;\n }\n @media screen and (min-width: 1024px) {\n .drawer {\n width: 45%;\n }\n }\n .drawer-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n .drawer-header__hide-btn {\n flex: 0;\n }\n .drawer-header__close-btn {\n flex: 1;\n }\n .drawer-header__close-btn-hover-layer {\n width: 24px;\n height: 24px;\n border-radius: 9999px;\n float: right;\n }\n .drawer-header__close-btn-hover-layer:hover {\n transition: 0.15s;\n background-color: lightgrey;\n }\n\n .drawer-body {\n height: 95%;\n overflow: auto;\n }\n`;\n"]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent ix-drawer following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "interxion",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.6",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"prepublish": "tsc && npm run analyze -- --exclude dist",
|
|
23
23
|
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
|
|
24
24
|
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
|
|
25
|
-
"
|
|
25
|
+
"test": "tsc && wtr --coverage",
|
|
26
26
|
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
|
|
27
27
|
"storybook": "tsc && npm run analyze -- --exclude dist && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds -c .storybook/server.mjs\"",
|
|
28
28
|
"storybook:build": "tsc && npm run analyze -- --exclude dist && build-storybook"
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"README.md",
|
|
102
102
|
"LICENSE"
|
|
103
103
|
],
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "7885e9b97728dcce05cb20be90ef5338f6c76f19"
|
|
105
105
|
}
|