wj-elements 0.1.73 → 0.1.74
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/light.css +14 -0
- package/dist/wje-orgchart-group.js +1 -1
- package/dist/wje-orgchart-item.js +0 -3
- package/dist/wje-orgchart.js +1 -50
- package/package.json +1 -1
package/dist/light.css
CHANGED
|
@@ -387,6 +387,20 @@
|
|
|
387
387
|
--wje-option-padding-bottom: var(--wje-spacing-x-small);
|
|
388
388
|
--wje-option-highlighted: var(--wje-color-contrast-3);
|
|
389
389
|
|
|
390
|
+
/* Orgchart */
|
|
391
|
+
--wje-orgchart-height-line: 10px;
|
|
392
|
+
--wje-orgchart-border-radius: var(--wje-border-radius-large);
|
|
393
|
+
|
|
394
|
+
/* Orgchart - Item */
|
|
395
|
+
--wje-orgchart-item-width: 75px;
|
|
396
|
+
--wje-orgchart-item-border-radius: var(--wje-border-radius-large);
|
|
397
|
+
--wje-orgchart-item-height-line: 10px;
|
|
398
|
+
|
|
399
|
+
/* Orgchart - Group */
|
|
400
|
+
--wje-orgchart-group-width: auto;
|
|
401
|
+
--wje-orgchart-group-border-radius: var(--wje-border-radius-large);
|
|
402
|
+
--wje-orgchart-group-height-line: 10px;
|
|
403
|
+
|
|
390
404
|
/* Rate */
|
|
391
405
|
--wje-rate-gap: .25rem;
|
|
392
406
|
|
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import WJElement from "./wje-element.js";
|
|
8
|
-
const styles = ":host {\n
|
|
8
|
+
const styles = ":host {\n text-align: center;\n list-style-type: none;\n position: relative;\n padding: var(--wje-orgchart-group-height-line) 0 0 0;\n transition: all 0.5s;\n\n &::before, &::after {\n content: '';\n position: absolute;\n top: 0;\n right: 50%;\n border-top: 1px solid var(--wje-border-color);\n width: 50%;\n height: var(--wje-orgchart-group-height-line);\n }\n\n &::after {\n right: auto;\n left: 50%;\n border-left: 1px solid var(--wje-border-color);\n }\n\n wje-card::part(native) {\n box-sizing: border-box;\n padding: .25rem 0;\n }\n\n wje-card h4 {\n margin: 0;\n }\n wje-card .items {\n display: flex;\n }\n\n .orgchart-group {\n display: flex;\n flex-direction: column;\n wje-card {\n margin: 0 auto;\n width: var(--wje-orgchart-group-width);\n }\n }\n}\n\n:host(:only-child)::after, :host(:only-child)::before {\n display: none;\n}\n\n:host(:only-child) {\n padding-top: 0;\n}\n\n:host(:first-child)::before,\n:host(:last-child)::after {\n border: 0 none;\n}\n\n:host(:last-child)::before {\n border-right: 1px solid var(--wje-border-color);\n border-radius: 0 var(--wje-orgchart-group-border-radius) 0 0;\n}\n\n:host(:first-child)::after {\n border-radius: var(--wje-orgchart-group-border-radius) 0 0 0;\n}";
|
|
9
9
|
class OrgchartGroup extends WJElement {
|
|
10
10
|
/**
|
|
11
11
|
* Creates an instance of OrgchartGroup.
|
|
@@ -6,9 +6,6 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
import WJElement from "./wje-element.js";
|
|
8
8
|
const styles = `:host {
|
|
9
|
-
--wje-orgchart-item-width: 75px;
|
|
10
|
-
--wje-orgchart-item-border-radius: var(--wje-border-radius-large);
|
|
11
|
-
--wje-orgchart-item-height-line: 10px;
|
|
12
9
|
width: var(--wje-orgchart-item-width);
|
|
13
10
|
box-sizing: border-box;
|
|
14
11
|
|
package/dist/wje-orgchart.js
CHANGED
|
@@ -5,56 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import WJElement from "./wje-element.js";
|
|
8
|
-
const styles =
|
|
9
|
-
|
|
10
|
-
* {margin: 0; padding: 0;}
|
|
11
|
-
|
|
12
|
-
:host {
|
|
13
|
-
--wje-orgchart-height-line: 10px;
|
|
14
|
-
--wje-orgchart-border-radius: var(--wje-border-radius-large);
|
|
15
|
-
|
|
16
|
-
position: relative;
|
|
17
|
-
.native-orgchart {
|
|
18
|
-
padding-top: var(--wje-orgchart-height-line);
|
|
19
|
-
display: flex;
|
|
20
|
-
/*column-gap: .5rem;*/
|
|
21
|
-
}
|
|
22
|
-
&::before {
|
|
23
|
-
content: '';
|
|
24
|
-
position: absolute;
|
|
25
|
-
top: 0;
|
|
26
|
-
left: 50%;
|
|
27
|
-
border-left: 1px solid var(--wje-border-color);
|
|
28
|
-
width: 0;
|
|
29
|
-
height: var(--wje-orgchart-height-line);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/*.expander {*/
|
|
33
|
-
/* content: "+";*/
|
|
34
|
-
/* position: absolute;*/
|
|
35
|
-
/* top: -.5px;*/
|
|
36
|
-
/* left: calc(50% + 1px / 2);*/
|
|
37
|
-
/* border: 1px solid var(--wje-border-color);*/
|
|
38
|
-
/* border-radius: 50%;*/
|
|
39
|
-
/* width: 12px;*/
|
|
40
|
-
/* height: 12px;*/
|
|
41
|
-
/* display: flex;*/
|
|
42
|
-
/* align-items: center;*/
|
|
43
|
-
/* justify-content: center;*/
|
|
44
|
-
/* background: var(--wje-color-contrast-0);*/
|
|
45
|
-
/* font-size: 8px;*/
|
|
46
|
-
/* line-height: 1; !* Nastavenie line-height na 1 *!*/
|
|
47
|
-
/* box-sizing: border-box;*/
|
|
48
|
-
/* transform: translate(-50%, -50%);*/
|
|
49
|
-
/* padding-bottom: 1px;*/
|
|
50
|
-
/* cursor: pointer;*/
|
|
51
|
-
/* &:hover {*/
|
|
52
|
-
/* background: red;*/
|
|
53
|
-
/* }*/
|
|
54
|
-
/*}*/
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
`;
|
|
8
|
+
const styles = "\n\n* {margin: 0; padding: 0;}\n\n:host {\n position: relative;\n .native-orgchart {\n padding-top: var(--wje-orgchart-height-line);\n display: flex;\n }\n\n &::before {\n content: '';\n position: absolute;\n top: 0;\n left: 50%;\n border-left: 1px solid var(--wje-border-color);\n width: 0;\n height: var(--wje-orgchart-height-line);\n }\n}\n\n";
|
|
58
9
|
class Orgchart extends WJElement {
|
|
59
10
|
/**
|
|
60
11
|
* Creates an instance of Orgchart.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wj-elements",
|
|
3
3
|
"description": "WebJET Elements is a modern set of user interface tools harnessing the power of web components designed to simplify web application development.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.74",
|
|
5
5
|
"homepage": "https://github.com/lencys/wj-elements",
|
|
6
6
|
"author": "Lukáš Ondrejček <lukas.ondrejcek@gmail.com>",
|
|
7
7
|
"license": "MIT",
|