typecomposer 0.0.84 → 0.0.85
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/cjs/core/components/containment/DialogPanel.d.ts +20 -8
- package/dist/cjs/core/components/containment/DialogPanel.js +75 -23
- package/dist/cjs/core/components/containment/DialogPanel.js.map +1 -1
- package/dist/cjs/core/components/index.d.ts +1 -1
- package/dist/cjs/core/components/index.js +2 -2
- package/dist/cjs/core/components/index.js.map +1 -1
- package/dist/cjs/core/element/action/AlertPane.d.ts +22 -14
- package/dist/cjs/core/element/action/AlertPane.js +61 -27
- package/dist/cjs/core/element/action/AlertPane.js.map +1 -1
- package/dist/cjs/core/element/action/TabPane.d.ts +1 -1
- package/dist/cjs/core/element/action/TabPane.js.map +1 -1
- package/dist/cjs/core/element/base/App.d.ts +0 -1
- package/dist/cjs/core/element/base/App.js.map +1 -1
- package/dist/cjs/core/element/base/Elements.d.ts +2 -24
- package/dist/cjs/core/element/base/Elements.js +23 -1
- package/dist/cjs/core/element/base/Elements.js.map +1 -1
- package/dist/cjs/core/element/base/Event.d.ts +0 -1
- package/dist/cjs/core/element/base/Event.js.map +1 -1
- package/dist/cjs/core/element/index.d.ts +2 -2
- package/dist/cjs/core/element/index.js +2 -2
- package/dist/cjs/core/element/index.js.map +1 -1
- package/dist/cjs/core/element/layers/BorderPaneElement.js.map +1 -1
- package/dist/cjs/core/element/text/TextFieldElement.d.ts +1 -1
- package/dist/cjs/core/element/text/TextFieldElement.js.map +1 -1
- package/dist/cjs/core/index.d.ts +1 -1
- package/dist/cjs/core/index.js +1 -1
- package/dist/cjs/core/router/RouteView.d.ts +1 -1
- package/dist/cjs/core/router/RouteView.js.map +1 -1
- package/dist/cjs/core/router/Router.d.ts +1 -1
- package/dist/cjs/styles/index.d.ts +1 -1
- package/dist/cjs/styles/index.js.map +1 -1
- package/dist/esm/core/components/containment/DialogPanel.d.ts +20 -8
- package/dist/esm/core/components/containment/DialogPanel.js +76 -24
- package/dist/esm/core/components/containment/DialogPanel.js.map +1 -1
- package/dist/esm/core/components/index.d.ts +1 -1
- package/dist/esm/core/components/index.js +1 -1
- package/dist/esm/core/components/index.js.map +1 -1
- package/dist/esm/core/element/action/AlertPane.d.ts +22 -14
- package/dist/esm/core/element/action/AlertPane.js +59 -25
- package/dist/esm/core/element/action/AlertPane.js.map +1 -1
- package/dist/esm/core/element/action/TabPane.d.ts +1 -1
- package/dist/esm/core/element/action/TabPane.js.map +1 -1
- package/dist/esm/core/element/base/App.d.ts +0 -1
- package/dist/esm/core/element/base/App.js.map +1 -1
- package/dist/esm/core/element/base/Elements.d.ts +2 -24
- package/dist/esm/core/element/base/Elements.js +23 -1
- package/dist/esm/core/element/base/Elements.js.map +1 -1
- package/dist/esm/core/element/base/Event.d.ts +0 -1
- package/dist/esm/core/element/base/Event.js.map +1 -1
- package/dist/esm/core/element/index.d.ts +2 -2
- package/dist/esm/core/element/index.js +2 -2
- package/dist/esm/core/element/index.js.map +1 -1
- package/dist/esm/core/element/layers/BorderPaneElement.js.map +1 -1
- package/dist/esm/core/element/text/TextFieldElement.d.ts +1 -1
- package/dist/esm/core/element/text/TextFieldElement.js +1 -1
- package/dist/esm/core/element/text/TextFieldElement.js.map +1 -1
- package/dist/esm/core/index.d.ts +1 -1
- package/dist/esm/core/index.js +1 -1
- package/dist/esm/core/router/RouteView.d.ts +1 -1
- package/dist/esm/core/router/RouteView.js.map +1 -1
- package/dist/esm/core/router/Router.d.ts +1 -1
- package/dist/esm/styles/index.d.ts +1 -1
- package/dist/esm/styles/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components/AlertPane.scss +128 -0
- package/styles/components/DialogPanel.scss +51 -0
- package/styles/style.scss +2 -2
- package/typings/index.d.ts +36 -6
- package/styles/style-alert-pane.scss +0 -103
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
#alert-system {
|
|
2
|
+
display: flex;
|
|
3
|
+
position: fixed;
|
|
4
|
+
z-index: 1300;
|
|
5
|
+
inset: 0px;
|
|
6
|
+
background-color: transparent;
|
|
7
|
+
justify-content: flex-end;
|
|
8
|
+
align-items: flex-end;
|
|
9
|
+
gap: 10px;
|
|
10
|
+
padding: 10px;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
.alert {
|
|
15
|
+
display: flex;
|
|
16
|
+
padding: 6px 16px;
|
|
17
|
+
font-size: 0.875rem;
|
|
18
|
+
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
line-height: 1.43;
|
|
21
|
+
border-radius: 4px;
|
|
22
|
+
letter-spacing: 0.01071em;
|
|
23
|
+
background-color: transparent;
|
|
24
|
+
pointer-events: all;
|
|
25
|
+
color: #fff;
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.outlined-error {
|
|
30
|
+
color: rgb(250, 179, 174);
|
|
31
|
+
border: 1px solid #f44336;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.outlined-warning {
|
|
35
|
+
color: rgb(255, 213, 153);
|
|
36
|
+
border: 1px solid #ff9800;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.outlined-info {
|
|
40
|
+
color: rgb(166, 213, 250);
|
|
41
|
+
border: 1px solid #2196f3;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.outlined-success {
|
|
45
|
+
color: rgb(183, 223, 185);
|
|
46
|
+
border: 1px solid #4caf50;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.icon-outlined-error {
|
|
50
|
+
color: #f44336;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.icon-outlined-warning {
|
|
54
|
+
color: #ff9800;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.icon-outlined-info {
|
|
58
|
+
color: #2196f3;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.icon-outlined-success {
|
|
62
|
+
color: #4caf50;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.icon-filled-error {
|
|
66
|
+
color: #fff;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.icon-filled-warning {
|
|
70
|
+
color: #fff;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.icon-filled-info {
|
|
74
|
+
color: #fff;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.icon-filled-success {
|
|
78
|
+
color: #fff;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.icon {
|
|
82
|
+
display: flex;
|
|
83
|
+
opacity: 0.9;
|
|
84
|
+
padding: 7px 0;
|
|
85
|
+
font-size: 22px;
|
|
86
|
+
margin-right: 12px;
|
|
87
|
+
svg {
|
|
88
|
+
font-size: inherit;
|
|
89
|
+
fill: currentColor;
|
|
90
|
+
width: 1em;
|
|
91
|
+
height: 1em;
|
|
92
|
+
display: inline-block;
|
|
93
|
+
font-size: 1.5rem;
|
|
94
|
+
transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
95
|
+
flex-shrink: 0;
|
|
96
|
+
user-select: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.filled-info {
|
|
101
|
+
background-color: #2196f3;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.filled-error {
|
|
105
|
+
background-color: #f44336;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.filled-success {
|
|
109
|
+
background-color: #4caf50;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.filled-warning {
|
|
113
|
+
background-color: #ff9800;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.close-btn {
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
margin-left: 10px;
|
|
121
|
+
span {
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
}
|
|
124
|
+
span:hover {
|
|
125
|
+
transform: scale(1.1);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
dialog {
|
|
2
|
+
border: none;
|
|
3
|
+
.dialog-content {
|
|
4
|
+
width: auto;
|
|
5
|
+
border: none;
|
|
6
|
+
margin: 0;
|
|
7
|
+
|
|
8
|
+
.confirm,
|
|
9
|
+
.info {
|
|
10
|
+
padding: 16px 24px;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
|
|
13
|
+
.title {
|
|
14
|
+
font-family: Roboto, Helvetica, Arial, sans-serif;
|
|
15
|
+
font-weight: 500;
|
|
16
|
+
font-size: 1.25rem;
|
|
17
|
+
line-height: 1.6;
|
|
18
|
+
letter-spacing: 0.0075em;
|
|
19
|
+
color: var(--primary-text-color);
|
|
20
|
+
display: block;
|
|
21
|
+
width: auto;
|
|
22
|
+
margin: 10px 0px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.content {
|
|
26
|
+
margin: 10px 0px;
|
|
27
|
+
max-width: 70vw;
|
|
28
|
+
font-family: Roboto, Helvetica, Arial, sans-serif;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
font-size: 1rem;
|
|
31
|
+
line-height: 1.5;
|
|
32
|
+
letter-spacing: 0.00938em;
|
|
33
|
+
color: var(--primary-text-color);
|
|
34
|
+
display: block;
|
|
35
|
+
width: auto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.action-confirm {
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
gap: 10px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.action-info {
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
gap: 10px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
package/styles/style.scss
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
|
|
15
15
|
// components
|
|
16
16
|
@import url("components/TablePane.scss");
|
|
17
|
+
@import url("components/AlertPane.scss");
|
|
18
|
+
@import url("components/DialogPanel.scss");
|
|
17
19
|
@import url("components/TextFieldElement.scss");
|
|
18
20
|
@import url("components/PopUpButton.scss");
|
|
19
21
|
|
|
20
|
-
@import url("style-alert-pane.scss");
|
|
21
|
-
|
|
22
22
|
html,
|
|
23
23
|
body {
|
|
24
24
|
min-height: 100%;
|
package/typings/index.d.ts
CHANGED
|
@@ -30,10 +30,10 @@ interface StylePropertiesMethods {
|
|
|
30
30
|
hasOwnProperty(key: string): boolean;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
declare module '*.html' {
|
|
34
|
-
const content: string;
|
|
35
|
-
export default content;
|
|
36
|
-
}
|
|
33
|
+
//declare module '*.html' {
|
|
34
|
+
// const content: string | ref<string> | number | ref<number> | IComponent;
|
|
35
|
+
// export default content;
|
|
36
|
+
//}
|
|
37
37
|
|
|
38
38
|
declare global {
|
|
39
39
|
|
|
@@ -60,6 +60,8 @@ declare global {
|
|
|
60
60
|
setTheme(theme: string): void;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
|
|
64
|
+
|
|
63
65
|
interface Element {
|
|
64
66
|
innerHTML: string | ref<string> | number | ref<number> | IComponent;
|
|
65
67
|
style: CSSStyleDeclarationRef;
|
|
@@ -94,13 +96,41 @@ declare global {
|
|
|
94
96
|
unsubscribe(propertName: string | symbol, newValue?: any): void;
|
|
95
97
|
}
|
|
96
98
|
|
|
97
|
-
interface
|
|
99
|
+
interface IComponent extends HTMLElement {
|
|
100
|
+
innerHTML: string | ref<string> | number | ref<number> | IComponent;
|
|
101
|
+
style: CSSStyleDeclarationRef;
|
|
102
|
+
disabled: boolean | ref<boolean>;
|
|
103
|
+
hidden: boolean | ref<boolean>;
|
|
104
|
+
onInit(): void;
|
|
105
|
+
unmount(): void;
|
|
106
|
+
addClassName(...names: string[]): void;
|
|
107
|
+
setStyle(styles: ComponentProps): void;
|
|
108
|
+
onConnected(): void;
|
|
109
|
+
onDisconnected(): void;
|
|
110
|
+
onChangeRoute(url: string): void;
|
|
111
|
+
subscribe<T>(propertName: string | symbol, ref: ref<T>, onUnsubscribe?: (propdertyName: string) => boolean): ref<T> | undefined;
|
|
112
|
+
unsubscribe(propertName: string | symbol, newValue?: any): void;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
interface HTMLButtonElement extends HTMLElement {
|
|
98
116
|
// @ts-ignore
|
|
99
117
|
type: "submit" | "reset" | "button" | "file";
|
|
100
118
|
accept: string;
|
|
101
119
|
multiple: boolean | ref<boolean>;
|
|
102
|
-
disabled: boolean | ref<boolean>;
|
|
103
120
|
onfile: (file: FileList) => void;
|
|
121
|
+
innerHTML: string | ref<string> | number | ref<number> | IComponent;
|
|
122
|
+
style: CSSStyleDeclarationRef;
|
|
123
|
+
disabled: boolean | ref<boolean>;
|
|
124
|
+
hidden: boolean | ref<boolean>;
|
|
125
|
+
onInit(): void;
|
|
126
|
+
unmount(): void;
|
|
127
|
+
addClassName(...names: string[]): void;
|
|
128
|
+
setStyle(styles: ComponentProps): void;
|
|
129
|
+
onConnected(): void;
|
|
130
|
+
onDisconnected(): void;
|
|
131
|
+
onChangeRoute(url: string): void;
|
|
132
|
+
subscribe<T>(propertName: string | symbol, ref: ref<T>, onUnsubscribe?: (propdertyName: string) => boolean): ref<T> | undefined;
|
|
133
|
+
unsubscribe(propertName: string | symbol, newValue?: any): void;
|
|
104
134
|
}
|
|
105
135
|
interface WeakRef<T> {
|
|
106
136
|
equals<K extends WeakKey>(value: WeakRef<K>): boolean;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
#alert-system {
|
|
2
|
-
display: flex;
|
|
3
|
-
background-color: transparent;
|
|
4
|
-
position: fixed;
|
|
5
|
-
top: 0px;
|
|
6
|
-
left: 0px;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
justify-content: flex-end;
|
|
10
|
-
align-items: flex-end;
|
|
11
|
-
z-index: 1000;
|
|
12
|
-
gap: 10px;
|
|
13
|
-
padding: 10px;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
pointer-events: none;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
}
|
|
18
|
-
.alert {
|
|
19
|
-
background: #ffdb9b;
|
|
20
|
-
// right: 0;
|
|
21
|
-
border-radius: 4px;
|
|
22
|
-
border-left: 8px solid #ffa502;
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
opacity: 1;
|
|
25
|
-
pointer-events: none;
|
|
26
|
-
}
|
|
27
|
-
.alert.showAlert {
|
|
28
|
-
opacity: 1;
|
|
29
|
-
pointer-events: auto;
|
|
30
|
-
}
|
|
31
|
-
.alert.show {
|
|
32
|
-
animation: show_slide 1s ease forwards;
|
|
33
|
-
}
|
|
34
|
-
@keyframes show_slide {
|
|
35
|
-
0% {
|
|
36
|
-
transform: translateX(100%);
|
|
37
|
-
}
|
|
38
|
-
40% {
|
|
39
|
-
transform: translateX(-10%);
|
|
40
|
-
}
|
|
41
|
-
80% {
|
|
42
|
-
transform: translateX(0%);
|
|
43
|
-
}
|
|
44
|
-
100% {
|
|
45
|
-
transform: translateX(-10px);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
.alert.hide {
|
|
49
|
-
animation: hide_slide 1s ease forwards;
|
|
50
|
-
}
|
|
51
|
-
@keyframes hide_slide {
|
|
52
|
-
0% {
|
|
53
|
-
transform: translateX(-10px);
|
|
54
|
-
}
|
|
55
|
-
40% {
|
|
56
|
-
transform: translateX(0%);
|
|
57
|
-
}
|
|
58
|
-
80% {
|
|
59
|
-
transform: translateX(-10%);
|
|
60
|
-
}
|
|
61
|
-
100% {
|
|
62
|
-
transform: translateX(100%);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
.alert .fa-exclamation-circle {
|
|
66
|
-
padding: 0 20px;
|
|
67
|
-
font-size: 18px;
|
|
68
|
-
}
|
|
69
|
-
.alert .msg {
|
|
70
|
-
padding: 0 20px;
|
|
71
|
-
font-size: 18px;
|
|
72
|
-
padding-bottom: 20px;
|
|
73
|
-
}
|
|
74
|
-
.alert .close-btn {
|
|
75
|
-
display: flex;
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
justify-content: flex-end;
|
|
78
|
-
align-items: center;
|
|
79
|
-
height: auto;
|
|
80
|
-
padding: 5px;
|
|
81
|
-
}
|
|
82
|
-
.alert .info {
|
|
83
|
-
color: #ce8500;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.alert .error {
|
|
87
|
-
color: #ff0000;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.alert .success {
|
|
91
|
-
color: #00ff00;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.alert .warning {
|
|
95
|
-
color: #ff0000;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// .alert .close-btn:hover {
|
|
99
|
-
// background: #ffc766;
|
|
100
|
-
// }
|
|
101
|
-
// .alert .close-btn .fas {
|
|
102
|
-
// color: #ce8500;
|
|
103
|
-
// }
|