jb-grid 0.3.1 → 0.3.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/package.json +3 -1
- package/web-component/dist/cell/cell.d.ts +9 -0
- package/web-component/dist/cell/cell.d.ts.map +1 -0
- package/web-component/dist/cell/render.d.ts +2 -0
- package/web-component/dist/cell/render.d.ts.map +1 -0
- package/web-component/dist/cell/types.d.ts +2 -0
- package/web-component/dist/cell/types.d.ts.map +1 -0
- package/web-component/dist/index.cjs.js +2 -0
- package/web-component/dist/index.cjs.js.br +0 -0
- package/web-component/dist/index.cjs.js.gz +0 -0
- package/web-component/dist/index.cjs.js.map +1 -0
- package/web-component/dist/index.d.ts +5 -0
- package/web-component/dist/index.d.ts.map +1 -0
- package/web-component/dist/index.js +2 -0
- package/web-component/dist/index.js.br +0 -0
- package/web-component/dist/index.js.gz +0 -0
- package/web-component/dist/index.js.map +1 -0
- package/web-component/dist/index.umd.js +2 -0
- package/web-component/dist/index.umd.js.br +0 -0
- package/web-component/dist/index.umd.js.gz +0 -0
- package/web-component/dist/index.umd.js.map +1 -0
- package/web-component/dist/pagination/pagination.d.ts +13 -0
- package/web-component/dist/pagination/pagination.d.ts.map +1 -0
- package/web-component/dist/pagination/render.d.ts +2 -0
- package/web-component/dist/pagination/render.d.ts.map +1 -0
- package/web-component/dist/pagination/types.d.ts +18 -0
- package/web-component/dist/pagination/types.d.ts.map +1 -0
- package/web-component/dist/row/render.d.ts +2 -0
- package/web-component/dist/row/render.d.ts.map +1 -0
- package/web-component/dist/row/row.d.ts +12 -0
- package/web-component/dist/row/row.d.ts.map +1 -0
- package/web-component/dist/row/types.d.ts +9 -0
- package/web-component/dist/row/types.d.ts.map +1 -0
- package/web-component/dist/row/utils.d.ts +3 -0
- package/web-component/dist/row/utils.d.ts.map +1 -0
- package/web-component/dist/toggle/expand-toggle.d.ts +7 -0
- package/web-component/dist/toggle/expand-toggle.d.ts.map +1 -0
- package/web-component/dist/toggle/render.d.ts +2 -0
- package/web-component/dist/toggle/render.d.ts.map +1 -0
- package/web-component/dist/toggle/types.d.ts +1 -0
- package/web-component/dist/toggle/types.d.ts.map +1 -0
- package/web-component/lib/cell/cell.ts +50 -0
- package/web-component/lib/cell/render.ts +5 -0
- package/web-component/lib/cell/style.css +16 -0
- package/web-component/lib/cell/types.ts +3 -0
- package/web-component/lib/global.d.ts +15 -0
- package/web-component/lib/index.ts +4 -0
- package/web-component/lib/pagination/pagination.ts +211 -0
- package/web-component/lib/pagination/render.ts +22 -0
- package/web-component/lib/pagination/style.css +86 -0
- package/web-component/lib/pagination/types.ts +15 -0
- package/web-component/lib/row/render.ts +12 -0
- package/web-component/lib/row/row.ts +61 -0
- package/web-component/lib/row/style.css +55 -0
- package/web-component/lib/row/types.ts +8 -0
- package/web-component/lib/row/utils.ts +40 -0
- package/web-component/lib/toggle/expand-toggle.ts +53 -0
- package/web-component/lib/toggle/render.ts +13 -0
- package/web-component/lib/toggle/style.css +25 -0
- package/web-component/tsconfig.json +17 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function renderHTML(): string {
|
|
2
|
+
return /* html */ `
|
|
3
|
+
<slot>
|
|
4
|
+
<svg class="arrow-icon" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path d="M35,10 L15,25 L35,40 Z"
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
stroke="currentColor"
|
|
8
|
+
stroke-width="6"
|
|
9
|
+
stroke-linejoin="round" />
|
|
10
|
+
</svg>
|
|
11
|
+
</slot>
|
|
12
|
+
`;
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
width: 1.5rem;
|
|
3
|
+
height: 1.5rem;
|
|
4
|
+
display: block;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host([open]) {
|
|
9
|
+
.arrow-icon {
|
|
10
|
+
rotate: -90deg;
|
|
11
|
+
&:dir(ltr) {
|
|
12
|
+
rotate: 90deg;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.arrow-icon {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
transition: all 0.3s 0s ease;
|
|
21
|
+
|
|
22
|
+
&:dir(ltr) {
|
|
23
|
+
transform: rotateY(180deg)
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
|
|
4
|
+
"rootDir": "./lib",
|
|
5
|
+
"declarationDir": "./dist",
|
|
6
|
+
},
|
|
7
|
+
"include": [
|
|
8
|
+
"lib/global.d.ts",
|
|
9
|
+
"lib/**/*.ts",
|
|
10
|
+
],
|
|
11
|
+
"exclude": [
|
|
12
|
+
"node_modules",
|
|
13
|
+
"**/*.spec.ts",
|
|
14
|
+
"dist",
|
|
15
|
+
],
|
|
16
|
+
"extends":"jb-core/configs/tsconfig-web-component.json"
|
|
17
|
+
}
|