@web-atoms/core 2.6.19 → 2.6.20
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-esm/web/services/NotificationPopup.global.css +12 -0
- package/dist-esm/web/services/NotificationPopup.global.css.map +1 -0
- package/dist-esm/web/services/PopupService.global.css +92 -0
- package/dist-esm/web/services/PopupService.global.css.map +1 -0
- package/dist-esm/web/services/PopupWindow.global.css +161 -0
- package/dist-esm/web/services/PopupWindow.global.css.map +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/web/services/NotificationPopup.global.css"],"names":[],"mappings":"AAAA","file":"NotificationPopup.global.css","sourcesContent":[".web-atoms-notification-popup {\n padding: 5px;\n font-size: larger;\n & .error {\n color: red;\n border-color: red;\n }\n & .warning {\n background-color: lightyellow;\n }\n}"]}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
|
|
2
|
+
[data-force-contain=none] {
|
|
3
|
+
contain: none !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
*[data-inline-popup=left] {
|
|
7
|
+
position: relative;
|
|
8
|
+
height: 0px;
|
|
9
|
+
width: 0px;
|
|
10
|
+
left: 0px;
|
|
11
|
+
|
|
12
|
+
& > * {
|
|
13
|
+
position: absolute;
|
|
14
|
+
left: 0px;
|
|
15
|
+
top: 0px;
|
|
16
|
+
padding: 5px;
|
|
17
|
+
max-height: 300px;
|
|
18
|
+
overflow: auto;
|
|
19
|
+
border-radius: 5px;
|
|
20
|
+
background-color: #ffffff;
|
|
21
|
+
z-index: 200;
|
|
22
|
+
box-shadow: rgba(50, 50, 105, 0.07) 0px 2px 5px 0px, rgba(0, 0, 0, 0.03) 0px 1px 1px 0px;;
|
|
23
|
+
border: solid 1px rgba(0, 0, 0, 0.05);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
*[data-inline-popup=right] {
|
|
28
|
+
position: absolute;
|
|
29
|
+
height: 0px;
|
|
30
|
+
width: 0px;
|
|
31
|
+
right: 0px;
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
& > * {
|
|
35
|
+
position: absolute;
|
|
36
|
+
right: 0px;
|
|
37
|
+
top: 0px;
|
|
38
|
+
padding: 5px;
|
|
39
|
+
max-height: 300px;
|
|
40
|
+
overflow: auto;
|
|
41
|
+
border-radius: 5px;
|
|
42
|
+
background-color: #ffffff;
|
|
43
|
+
z-index: 200;
|
|
44
|
+
box-shadow: rgba(50, 50, 105, 0.07) 0px 2px 5px 0px, rgba(0, 0, 0, 0.03) 0px 1px 1px 0px;;
|
|
45
|
+
border: solid 1px rgba(0, 0, 0, 0.05);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
*[data-inline-popup=inline-left] {
|
|
50
|
+
position: relative;
|
|
51
|
+
height: 0px;
|
|
52
|
+
width: 0px;
|
|
53
|
+
left: 0px;
|
|
54
|
+
|
|
55
|
+
& > * {
|
|
56
|
+
position: absolute;
|
|
57
|
+
left: 0px;
|
|
58
|
+
top: 0px;
|
|
59
|
+
padding: 5px;
|
|
60
|
+
max-height: 300px;
|
|
61
|
+
overflow: auto;
|
|
62
|
+
border-radius: 5px;
|
|
63
|
+
background-color: #ffffff;
|
|
64
|
+
z-index: 200;
|
|
65
|
+
box-shadow: rgba(50, 50, 105, 0.07) 0px 2px 5px 0px, rgba(0, 0, 0, 0.03) 0px 1px 1px 0px;;
|
|
66
|
+
border: solid 1px rgba(0, 0, 0, 0.05);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
*[data-center-popup] {
|
|
71
|
+
position: fixed;
|
|
72
|
+
left: 50%;
|
|
73
|
+
top: 50%;
|
|
74
|
+
transform: translate(-50%, -50%);
|
|
75
|
+
z-index: 10000;
|
|
76
|
+
padding: 5px;
|
|
77
|
+
background-color: #ffffff;
|
|
78
|
+
border: solid 1px lightgray;
|
|
79
|
+
border-radius: 5px;
|
|
80
|
+
box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;;
|
|
81
|
+
display: inline-block;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.web-atoms-popup-local {
|
|
85
|
+
padding: 5px;
|
|
86
|
+
background-color: #ffffff;
|
|
87
|
+
border: solid 1px lightgray;
|
|
88
|
+
border-radius: 5px;
|
|
89
|
+
box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;;
|
|
90
|
+
display: inline-block;
|
|
91
|
+
}
|
|
92
|
+
/*# sourceMappingURL=PopupService.global.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/web/services/PopupService.global.css"],"names":[],"mappings":"AAAA","file":"PopupService.global.css","sourcesContent":["\n[data-force-contain=none] {\n contain: none !important; \n}\n\n*[data-inline-popup=left] {\n position: relative;\n height: 0px;\n width: 0px;\n left: 0px; \n \n & > * {\n position: absolute;\n left: 0px;\n top: 0px;\n padding: 5px;\n max-height: 300px;\n overflow: auto;\n border-radius: 5px;\n background-color: #ffffff;\n z-index: 200;\n box-shadow: rgba(50, 50, 105, 0.07) 0px 2px 5px 0px, rgba(0, 0, 0, 0.03) 0px 1px 1px 0px;;\n border: solid 1px rgba(0, 0, 0, 0.05); \n }\n}\n\n*[data-inline-popup=right] {\n position: absolute;\n height: 0px;\n width: 0px;\n right: 0px; \n\n\n & > * {\n position: absolute;\n right: 0px;\n top: 0px;\n padding: 5px;\n max-height: 300px;\n overflow: auto;\n border-radius: 5px;\n background-color: #ffffff;\n z-index: 200;\n box-shadow: rgba(50, 50, 105, 0.07) 0px 2px 5px 0px, rgba(0, 0, 0, 0.03) 0px 1px 1px 0px;;\n border: solid 1px rgba(0, 0, 0, 0.05); \n }\n}\n\n*[data-inline-popup=inline-left] {\n position: relative;\n height: 0px;\n width: 0px;\n left: 0px; \n\n & > * {\n position: absolute;\n left: 0px;\n top: 0px;\n padding: 5px;\n max-height: 300px;\n overflow: auto;\n border-radius: 5px;\n background-color: #ffffff;\n z-index: 200;\n box-shadow: rgba(50, 50, 105, 0.07) 0px 2px 5px 0px, rgba(0, 0, 0, 0.03) 0px 1px 1px 0px;;\n border: solid 1px rgba(0, 0, 0, 0.05); \n }\n}\n\n*[data-center-popup] {\n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n z-index: 10000;\n padding: 5px;\n background-color: #ffffff;\n border: solid 1px lightgray;\n border-radius: 5px;\n box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;;\n display: inline-block; \n} \n\n.web-atoms-popup-local {\n padding: 5px;\n background-color: #ffffff;\n border: solid 1px lightgray;\n border-radius: 5px;\n box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;;\n display: inline-block;\n}"]}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
[data-popup-window=popup-window] {
|
|
2
|
+
position: absolute;
|
|
3
|
+
border: solid 1px lightgray;
|
|
4
|
+
border-radius: 5px;
|
|
5
|
+
background-color: canvas;
|
|
6
|
+
color: canvastext;
|
|
7
|
+
box-shadow: 0 0 20px 1px rgba(0 0 0 / 75%);
|
|
8
|
+
|
|
9
|
+
display: grid;
|
|
10
|
+
align-items: stretch;
|
|
11
|
+
justify-items: stretch;
|
|
12
|
+
grid-template-rows: auto auto 1fr auto;
|
|
13
|
+
grid-template-columns: auto 1fr auto;
|
|
14
|
+
opacity: 0;
|
|
15
|
+
transition: opacity 0.3s cubic-bezier(0.55, 0.09, 0.97, 0.32) ;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
|
|
18
|
+
&[not-ready] {
|
|
19
|
+
top: 50%;
|
|
20
|
+
left: 50%;
|
|
21
|
+
transform: translate(-50%, -50%);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-window-modal-background=background] {
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
bottom: 0;
|
|
29
|
+
right: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[data-no-width=true] {
|
|
33
|
+
max-width: 95%;
|
|
34
|
+
min-width: 300px;
|
|
35
|
+
}
|
|
36
|
+
&[data-no-height=true] {
|
|
37
|
+
max-height: 95%;
|
|
38
|
+
min-height: 100px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&[data-maximize=true] {
|
|
42
|
+
width: 90%;
|
|
43
|
+
height: 90%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[data-ready=true] {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
}
|
|
49
|
+
&[data-dragging=true] {
|
|
50
|
+
opacity: 0.5;
|
|
51
|
+
}
|
|
52
|
+
& > [data-window-element=icon] {
|
|
53
|
+
grid-row: 1;
|
|
54
|
+
grid-column: 1;
|
|
55
|
+
z-index: 2;
|
|
56
|
+
}
|
|
57
|
+
& > [data-window-element=title] {
|
|
58
|
+
grid-row: 1;
|
|
59
|
+
grid-column: 2;
|
|
60
|
+
font-size: medium;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
cursor: move;
|
|
65
|
+
padding: var(--spacing, 5px);
|
|
66
|
+
color: var(--accent-text-color, #424242);
|
|
67
|
+
z-index: 2;
|
|
68
|
+
}
|
|
69
|
+
& > [data-window-element=close] {
|
|
70
|
+
grid-row: 1;
|
|
71
|
+
grid-column: 3;
|
|
72
|
+
color: white;
|
|
73
|
+
background-color: red;
|
|
74
|
+
border-radius: 9999px;
|
|
75
|
+
border: none;
|
|
76
|
+
outline: none;
|
|
77
|
+
/* padding: 5px; */
|
|
78
|
+
font-family: monospace;
|
|
79
|
+
height: 20px;
|
|
80
|
+
width: 20px;
|
|
81
|
+
margin: 5px;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
text-transform: capitalize;
|
|
84
|
+
z-index: 2;
|
|
85
|
+
}
|
|
86
|
+
& > [data-window-element=action-bar] {
|
|
87
|
+
grid-row: 1;
|
|
88
|
+
grid-column: 1 / span 3;
|
|
89
|
+
align-self: stretch;
|
|
90
|
+
justify-self: stretch;
|
|
91
|
+
background-color: var(--accent-color, rgba(211, 211, 211, 0.2));
|
|
92
|
+
border-top-left-radius: 5px;
|
|
93
|
+
border-top-right-radius: 5px;
|
|
94
|
+
z-index: 1;
|
|
95
|
+
}
|
|
96
|
+
& > [data-window-element=header] {
|
|
97
|
+
margin-top: 5px;
|
|
98
|
+
grid-row: 2;
|
|
99
|
+
grid-column: 1 / span 3;
|
|
100
|
+
}
|
|
101
|
+
& > [data-window-element=content] {
|
|
102
|
+
margin-top: 5px;
|
|
103
|
+
grid-row: 3;
|
|
104
|
+
grid-column: 1 / span 3;
|
|
105
|
+
position: relative;
|
|
106
|
+
overflow: auto;
|
|
107
|
+
padding: var(--spacing-medium, 7px);
|
|
108
|
+
&[data-maximize=true] {
|
|
109
|
+
width: 90vw;
|
|
110
|
+
height: 90vh;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
& > [data-window-element=footer] {
|
|
114
|
+
margin-top: 5px;
|
|
115
|
+
grid-row: 4;
|
|
116
|
+
grid-column: 1 / span 3;
|
|
117
|
+
padding-top: 5px;
|
|
118
|
+
padding-bottom: 5px;
|
|
119
|
+
background-color: var(--command-bar-color, #80808025);
|
|
120
|
+
|
|
121
|
+
& > button, & > * > button {
|
|
122
|
+
border-radius: 9999px;
|
|
123
|
+
padding: 5px;
|
|
124
|
+
padding-left: 20px;
|
|
125
|
+
padding-right: 20px;
|
|
126
|
+
border-width: 1px;
|
|
127
|
+
border-color: transparent;
|
|
128
|
+
margin: 5px;
|
|
129
|
+
margin-left: 10px;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
body > div[data-popup-window=popup-window], body > div[data-window-modal-background] {
|
|
135
|
+
position: fixed;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[data-confirm-popup=confirm-popup] {
|
|
139
|
+
& >[data-window-element=content] > [data-element=details] {
|
|
140
|
+
margin-top: 5px;
|
|
141
|
+
overflow: auto;
|
|
142
|
+
max-width: 80vw;
|
|
143
|
+
max-height: 50vh;
|
|
144
|
+
}
|
|
145
|
+
& > [data-window-element=footer] {
|
|
146
|
+
|
|
147
|
+
& > .yes {
|
|
148
|
+
background-color: #01af01;
|
|
149
|
+
color: white;
|
|
150
|
+
}
|
|
151
|
+
& > .no {
|
|
152
|
+
background-color: red;
|
|
153
|
+
color: white;
|
|
154
|
+
}
|
|
155
|
+
& > .cancel {
|
|
156
|
+
background-color: gray;
|
|
157
|
+
color: white;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
/*# sourceMappingURL=PopupWindow.global.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/web/services/PopupWindow.global.css"],"names":[],"mappings":"AAAA","file":"PopupWindow.global.css","sourcesContent":["[data-popup-window=popup-window] {\n position: absolute;\n border: solid 1px lightgray;\n border-radius: 5px;\n background-color: canvas;\n color: canvastext;\n box-shadow: 0 0 20px 1px rgba(0 0 0 / 75%);\n\n display: grid;\n align-items: stretch;\n justify-items: stretch;\n grid-template-rows: auto auto 1fr auto;\n grid-template-columns: auto 1fr auto;\n opacity: 0;\n transition: opacity 0.3s cubic-bezier(0.55, 0.09, 0.97, 0.32) ;\n overflow: hidden;\n\n &[not-ready] {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n\n [data-window-modal-background=background] {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n }\n\n &[data-no-width=true] {\n max-width: 95%;\n min-width: 300px;\n }\n &[data-no-height=true] {\n max-height: 95%;\n min-height: 100px;\n }\n\n &[data-maximize=true] {\n width: 90%;\n height: 90%;\n }\n\n &[data-ready=true] {\n opacity: 1;\n }\n &[data-dragging=true] {\n opacity: 0.5;\n }\n & > [data-window-element=icon] {\n grid-row: 1;\n grid-column: 1;\n z-index: 2;\n }\n & > [data-window-element=title] {\n grid-row: 1;\n grid-column: 2;\n font-size: medium;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n cursor: move;\n padding: var(--spacing, 5px);\n color: var(--accent-text-color, #424242);\n z-index: 2;\n }\n & > [data-window-element=close] {\n grid-row: 1;\n grid-column: 3;\n color: white;\n background-color: red;\n border-radius: 9999px;\n border: none;\n outline: none;\n /* padding: 5px; */\n font-family: monospace;\n height: 20px;\n width: 20px;\n margin: 5px;\n cursor: pointer;\n text-transform: capitalize;\n z-index: 2;\n }\n & > [data-window-element=action-bar] {\n grid-row: 1;\n grid-column: 1 / span 3;\n align-self: stretch;\n justify-self: stretch;\n background-color: var(--accent-color, rgba(211, 211, 211, 0.2));\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n z-index: 1;\n }\n & > [data-window-element=header] {\n margin-top: 5px;\n grid-row: 2;\n grid-column: 1 / span 3;\n }\n & > [data-window-element=content] {\n margin-top: 5px;\n grid-row: 3;\n grid-column: 1 / span 3;\n position: relative;\n overflow: auto;\n padding: var(--spacing-medium, 7px);\n &[data-maximize=true] {\n width: 90vw;\n height: 90vh;\n }\n }\n & > [data-window-element=footer] {\n margin-top: 5px;\n grid-row: 4;\n grid-column: 1 / span 3;\n padding-top: 5px;\n padding-bottom: 5px;\n background-color: var(--command-bar-color, #80808025);\n\n & > button, & > * > button {\n border-radius: 9999px;\n padding: 5px;\n padding-left: 20px;\n padding-right: 20px;\n border-width: 1px;\n border-color: transparent;\n margin: 5px;\n margin-left: 10px;\n } \n } \n}\n\nbody > div[data-popup-window=popup-window], body > div[data-window-modal-background] {\n position: fixed;\n}\n\n[data-confirm-popup=confirm-popup] {\n & >[data-window-element=content] > [data-element=details] {\n margin-top: 5px;\n overflow: auto;\n max-width: 80vw;\n max-height: 50vh;\n }\n & > [data-window-element=footer] {\n\n & > .yes {\n background-color: #01af01;\n color: white;\n }\n & > .no {\n background-color: red;\n color: white;\n }\n & > .cancel {\n background-color: gray;\n color: white;\n }\n }\n}"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-atoms/core",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.20",
|
|
4
4
|
"description": "Web Atoms Core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"esm": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"test1": "node ./node_modules/@web-atoms/unit-test/index.js ./dist/tests",
|
|
11
11
|
"test": "istanbul cover ./node_modules/@web-atoms/unit-test/index.js ./dist/tests",
|
|
12
12
|
"build-css": "npx postcss \"./src/**/*.css\" --base ./src --dir ./dist --map --verbose",
|
|
13
|
+
"build-css-esm": "npx postcss \"./src/**/*.css\" --base ./src --dir ./dist-esm --map --verbose",
|
|
13
14
|
"build-css-watch": "npx postcss \"./src/**/*.css\" --base src --dir dist --map -w",
|
|
14
15
|
"build-css-jex": "npx jex ./build.jsx",
|
|
15
16
|
"build-css-watch-jex": "npx jex ./build.jsx --watch",
|