@apipass/messages 0.2.16 → 1.0.3
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/README.md +33 -33
- package/assets/css/colors.scss +34 -34
- package/assets/css/pt_sans.scss +143 -143
- package/assets/css/spacing.scss +28 -28
- package/assets/css/texts.scss +18 -18
- package/{esm2015/apipass-messages.js → esm2020/apipass-messages.mjs} +4 -4
- package/esm2020/message-box/message-box.component.mjs +44 -0
- package/esm2020/messages.module.mjs +46 -0
- package/esm2020/messages.service.mjs +50 -0
- package/esm2020/public-api.mjs +6 -0
- package/esm2020/snack-bar/snack-bar.component.mjs +21 -0
- package/fesm2015/apipass-messages.mjs +158 -0
- package/fesm2015/apipass-messages.mjs.map +1 -0
- package/fesm2020/apipass-messages.mjs +156 -0
- package/fesm2020/apipass-messages.mjs.map +1 -0
- package/{apipass-messages.d.ts → index.d.ts} +5 -5
- package/message-box/message-box.component.d.ts +16 -16
- package/messages.module.d.ts +12 -9
- package/messages.service.d.ts +14 -12
- package/package.json +29 -19
- package/public-api.d.ts +5 -4
- package/snack-bar/snack-bar.component.d.ts +9 -0
- package/assets/css/buttons.scss +0 -118
- package/assets/css/fonts.scss +0 -24
- package/assets/css/inputs.scss +0 -197
- package/bundles/apipass-messages.umd.js +0 -280
- package/bundles/apipass-messages.umd.js.map +0 -1
- package/bundles/apipass-messages.umd.min.js +0 -2
- package/bundles/apipass-messages.umd.min.js.map +0 -1
- package/esm2015/message-box/message-box.component.js +0 -145
- package/esm2015/messages.module.js +0 -39
- package/esm2015/messages.service.js +0 -44
- package/esm2015/public-api.js +0 -5
- package/fesm2015/apipass-messages.js +0 -226
- package/fesm2015/apipass-messages.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,26 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apipass/messages",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/animations": "
|
|
6
|
-
"@angular/cdk": "
|
|
7
|
-
"@angular/common": "
|
|
8
|
-
"@angular/core": "
|
|
9
|
-
"@angular/forms": "
|
|
5
|
+
"@angular/animations": "15.0.3",
|
|
6
|
+
"@angular/cdk": "15.0.3",
|
|
7
|
+
"@angular/common": "15.0.3",
|
|
8
|
+
"@angular/core": "15.0.3",
|
|
9
|
+
"@angular/forms": "15.0.3",
|
|
10
|
+
"@angular/material": "15.0.3"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
|
-
"@ngx-translate/core": "
|
|
13
|
-
"angular2-toaster": "^8.0.0",
|
|
13
|
+
"@ngx-translate/core": "14.0.0",
|
|
14
14
|
"tslib": "2.0.0"
|
|
15
15
|
},
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"fesm2015": "fesm2015/apipass-messages.
|
|
21
|
-
"typings": "
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
"module": "fesm2015/apipass-messages.mjs",
|
|
17
|
+
"es2020": "fesm2020/apipass-messages.mjs",
|
|
18
|
+
"esm2020": "esm2020/apipass-messages.mjs",
|
|
19
|
+
"fesm2020": "fesm2020/apipass-messages.mjs",
|
|
20
|
+
"fesm2015": "fesm2015/apipass-messages.mjs",
|
|
21
|
+
"typings": "index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
"./package.json": {
|
|
24
|
+
"default": "./package.json"
|
|
25
|
+
},
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./index.d.ts",
|
|
28
|
+
"esm2020": "./esm2020/apipass-messages.mjs",
|
|
29
|
+
"es2020": "./fesm2020/apipass-messages.mjs",
|
|
30
|
+
"es2015": "./fesm2015/apipass-messages.mjs",
|
|
31
|
+
"node": "./fesm2015/apipass-messages.mjs",
|
|
32
|
+
"default": "./fesm2020/apipass-messages.mjs"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"sideEffects": false
|
|
36
|
+
}
|
package/public-api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from './messages.service';
|
|
3
|
-
export * from './messages.module';
|
|
4
|
-
export * from './message-box/message-box.component';
|
|
1
|
+
export * from '@angular/material/snack-bar';
|
|
2
|
+
export * from './messages.service';
|
|
3
|
+
export * from './messages.module';
|
|
4
|
+
export * from './message-box/message-box.component';
|
|
5
|
+
export * from './snack-bar/snack-bar.component';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SnackBarComponent {
|
|
4
|
+
data: any;
|
|
5
|
+
snackBar: MatSnackBar;
|
|
6
|
+
constructor(data: any, snackBar: MatSnackBar);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SnackBarComponent, "snack-bar", never, {}, {}, never, never, false, never>;
|
|
9
|
+
}
|
package/assets/css/buttons.scss
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
@import "colors";
|
|
2
|
-
@import "fonts";
|
|
3
|
-
@import "spacing";
|
|
4
|
-
|
|
5
|
-
/* Buttons */
|
|
6
|
-
.apipass-tab-button {
|
|
7
|
-
display: flex !important;
|
|
8
|
-
justify-content: center !important;
|
|
9
|
-
align-items: center !important;
|
|
10
|
-
padding: $spacing-tab-button-top $spacing-tab-button-right $spacing-tab-button-bottom $spacing-tab-button-left !important;
|
|
11
|
-
font-weight: bold;
|
|
12
|
-
font-size: $base-font-size - 2px;
|
|
13
|
-
border-radius: 6px 6px 0 0 !important;
|
|
14
|
-
.mat-button-wrapper, .mat-icon, .button-text {
|
|
15
|
-
display: flex;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
align-items: center;
|
|
18
|
-
}
|
|
19
|
-
.apipass-btn-icon-text {
|
|
20
|
-
padding-right: 10px;
|
|
21
|
-
}
|
|
22
|
-
.apipass-btn-icon-text-suffix {
|
|
23
|
-
padding-left: 10px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.apipass-btn-default {
|
|
28
|
-
display: flex !important;
|
|
29
|
-
justify-content: center !important;
|
|
30
|
-
align-items: center !important;
|
|
31
|
-
padding: 0 $spacing-button-right 0 $spacing-button-left !important;
|
|
32
|
-
font-weight: bold;
|
|
33
|
-
border-radius: 6px !important;
|
|
34
|
-
.mat-button-wrapper, .mat-icon, .button-text {
|
|
35
|
-
display: flex;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
align-items: center;
|
|
38
|
-
}
|
|
39
|
-
.apipass-btn-icon-text {
|
|
40
|
-
padding-right: 10px;
|
|
41
|
-
}
|
|
42
|
-
.apipass-btn-icon-text-suffix {
|
|
43
|
-
padding-left: 10px;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.apipass-btn-primary {
|
|
48
|
-
background: var(--color-primary);
|
|
49
|
-
color: #FFF;
|
|
50
|
-
&:hover, .hover {
|
|
51
|
-
background: var(--color-primary-hover);
|
|
52
|
-
}
|
|
53
|
-
&:active, .active {
|
|
54
|
-
background: var(--color-primary-active);
|
|
55
|
-
}
|
|
56
|
-
&:disabled, .disabled {
|
|
57
|
-
background: var(--color-tertiary);
|
|
58
|
-
color: var(--color-fonts-tertiary);
|
|
59
|
-
border: 1px px solid var(--color-tertiary-hover);
|
|
60
|
-
cursor: no-drop !important;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.apipass-btn-secondary {
|
|
65
|
-
background: var(--color-secondary);
|
|
66
|
-
color: var(--color-primary);
|
|
67
|
-
&:hover, .hover {
|
|
68
|
-
background: var(--color-secondary-hover);
|
|
69
|
-
}
|
|
70
|
-
&:active, .active {
|
|
71
|
-
background: var(--color-secondary-active);
|
|
72
|
-
}
|
|
73
|
-
&:disabled, .disabled {
|
|
74
|
-
background: var(--color-tertiary);
|
|
75
|
-
color: var(--color-fonts-tertiary);
|
|
76
|
-
border: 1px px solid var(--color-tertiary-hover);
|
|
77
|
-
cursor: no-drop !important;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.apipass-btn-tertiary {
|
|
82
|
-
background: var(--color-tertiary);
|
|
83
|
-
color: var(--color-primary);
|
|
84
|
-
padding: 15px !important;
|
|
85
|
-
border: 1px solid var(--color-tertiary-hover);
|
|
86
|
-
&:hover, .hover {
|
|
87
|
-
background: var(--color-tertiary-hover);
|
|
88
|
-
}
|
|
89
|
-
&:active, .active {
|
|
90
|
-
background: var(--color-tertiary-active);
|
|
91
|
-
}
|
|
92
|
-
&:disabled, .disabled {
|
|
93
|
-
background: var(--color-tertiary);
|
|
94
|
-
color: var(--color-fonts-tertiary);
|
|
95
|
-
border: 1px px solid var(--color-tertiary-hover);
|
|
96
|
-
cursor: no-drop !important;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.apipass-btn-outline {
|
|
101
|
-
color: var(--color-fonts-tertiary);
|
|
102
|
-
&.remove-button {
|
|
103
|
-
color: var(--color-red);
|
|
104
|
-
}
|
|
105
|
-
&:hover, .hover {
|
|
106
|
-
background: var(--color-tertiary-hover);
|
|
107
|
-
}
|
|
108
|
-
&:active, .active {
|
|
109
|
-
background: var(--color-tertiary-active);
|
|
110
|
-
}
|
|
111
|
-
&:disabled, .disabled {
|
|
112
|
-
background: var(--color-tertiary);
|
|
113
|
-
color: var(--color-fonts-tertiary);
|
|
114
|
-
border: 1px px solid var(--color-tertiary-hover);
|
|
115
|
-
cursor: no-drop !important;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
package/assets/css/fonts.scss
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
$base-font-size: 14px;
|
|
2
|
-
$base-input-font-size: $base-font-size;
|
|
3
|
-
|
|
4
|
-
@import "pt_sans";
|
|
5
|
-
|
|
6
|
-
.text-primary {
|
|
7
|
-
color: var(--color-primary) !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.text-secondary {
|
|
11
|
-
color: var(--color-secondary) !important;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.text-tertiary {
|
|
15
|
-
color: var(--color-fonts-tertiary) !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.text-weight-bold {
|
|
19
|
-
font-weight: bold !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.text-weight-normal {
|
|
23
|
-
font-weight: normal !important;
|
|
24
|
-
}
|
package/assets/css/inputs.scss
DELETED
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
@import "colors";
|
|
2
|
-
@import "fonts";
|
|
3
|
-
@import "spacing";
|
|
4
|
-
|
|
5
|
-
/* Default Inputs */
|
|
6
|
-
.mat-input-underline, .mat-form-field-underline {
|
|
7
|
-
display: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.mat-form-field-appearance-fill .mat-form-field-flex {
|
|
11
|
-
display: flex!important;
|
|
12
|
-
align-items: center!important;
|
|
13
|
-
border: 1px solid var(--color-inputs-border) !important;
|
|
14
|
-
background: var(--color-inputs-background) !important;
|
|
15
|
-
border-radius: 6px !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.mat-form-field-infix {
|
|
19
|
-
padding: 0 !important;
|
|
20
|
-
display: flex!important;
|
|
21
|
-
align-items: center!important;
|
|
22
|
-
border-top: none!important;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.mat-select-arrow-wrapper {
|
|
26
|
-
display: flex!important;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.mat-icon-button {
|
|
30
|
-
width: auto!important;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.no-border {
|
|
34
|
-
.mat-form-field-flex {
|
|
35
|
-
border: none !important;
|
|
36
|
-
input {
|
|
37
|
-
padding: 1px;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.mat-form-field-label-wrapper {
|
|
43
|
-
top: -10px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.mat-form-field-should-float .mat-form-field-label-wrapper {
|
|
47
|
-
font-size: $base-font-size;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.placeholder-primary {
|
|
51
|
-
.mat-form-field-label-wrapper {
|
|
52
|
-
color: var(--color-primary) !important;
|
|
53
|
-
label {
|
|
54
|
-
color: var(--color-primary) !important;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
::ng-deep .mat-form-field-placeholder, .mat-form-field-placeholder {
|
|
58
|
-
color: var(--color-primary) !important;
|
|
59
|
-
}
|
|
60
|
-
::ng-deep .mat-focused .mat-form-field-placeholder, .mat-focused .mat-form-field-placeholder {
|
|
61
|
-
color: var(--color-primary) !important;
|
|
62
|
-
}
|
|
63
|
-
input {
|
|
64
|
-
::-webkit-input-placeholder { /* Edge */
|
|
65
|
-
color: var(--color-primary) !important;
|
|
66
|
-
}
|
|
67
|
-
:-ms-input-placeholder { /* Internet Explorer 10-11 */
|
|
68
|
-
color: var(--color-primary) !important;
|
|
69
|
-
}
|
|
70
|
-
::placeholder {
|
|
71
|
-
color: var(--color-primary) !important;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.placeholder-bold {
|
|
77
|
-
.mat-form-field-label-wrapper {
|
|
78
|
-
font-weight: bold !important;
|
|
79
|
-
label {
|
|
80
|
-
font-weight: bold !important;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
::ng-deep .mat-form-field-placeholder, .mat-form-field-placeholder {
|
|
84
|
-
font-weight: bold !important;
|
|
85
|
-
}
|
|
86
|
-
::ng-deep .mat-focused .mat-form-field-placeholder, .mat-focused .mat-form-field-placeholder {
|
|
87
|
-
font-weight: bold !important;
|
|
88
|
-
}
|
|
89
|
-
input {
|
|
90
|
-
::-webkit-input-placeholder { /* Edge */
|
|
91
|
-
font-weight: bold !important;
|
|
92
|
-
}
|
|
93
|
-
:-ms-input-placeholder { /* Internet Explorer 10-11 */
|
|
94
|
-
font-weight: bold !important;
|
|
95
|
-
}
|
|
96
|
-
::placeholder {
|
|
97
|
-
font-weight: bold !important;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/* Inputs */
|
|
103
|
-
.apipass-input-text {
|
|
104
|
-
width: 100%;
|
|
105
|
-
.mat-form-field-flex {
|
|
106
|
-
padding: $spacing-input-top $spacing-input-right $spacing-input-bottom $spacing-input-left !important;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.apipass-input-text,
|
|
111
|
-
.apipass-search-input-text,
|
|
112
|
-
.custom-select-component,
|
|
113
|
-
.apipass-select,
|
|
114
|
-
.apipass-date-filter {
|
|
115
|
-
|
|
116
|
-
.mat-form-field-wrapper {
|
|
117
|
-
padding: 0 !important;
|
|
118
|
-
}
|
|
119
|
-
.mat-icon-button {
|
|
120
|
-
width: auto!important;
|
|
121
|
-
height: auto!important;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&.label-input {
|
|
125
|
-
.mat-form-field-label-wrapper {
|
|
126
|
-
padding-top: 0;
|
|
127
|
-
top: auto !important;
|
|
128
|
-
}
|
|
129
|
-
input {
|
|
130
|
-
padding-top: 10px !important;
|
|
131
|
-
padding-bottom: 5px !important;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
&.mat-form-field-should-float {
|
|
135
|
-
.mat-form-field-label-wrapper {
|
|
136
|
-
padding-top: 0 !important;
|
|
137
|
-
margin-top: -10px !important;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
.apipass-search-input-text {
|
|
145
|
-
width: 100%;
|
|
146
|
-
|
|
147
|
-
&.small-text {
|
|
148
|
-
font-size: $base-font-size - 2px;
|
|
149
|
-
}
|
|
150
|
-
.mat-form-field-flex {
|
|
151
|
-
padding: 2px 5px 2px 2px !important;
|
|
152
|
-
border-top: none !important;
|
|
153
|
-
border-left: none !important;
|
|
154
|
-
border-right: none !important;
|
|
155
|
-
border-radius: 0 !important;
|
|
156
|
-
}
|
|
157
|
-
.search-icon {
|
|
158
|
-
margin-top: -5px !important;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.custom-select-component {
|
|
164
|
-
width: 100%;
|
|
165
|
-
.mat-form-field-flex {
|
|
166
|
-
padding: 1px $spacing-input-right 1px $spacing-input-left !important;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.apipass-select {
|
|
171
|
-
width: 100%;
|
|
172
|
-
.mat-form-field-flex {
|
|
173
|
-
padding: $spacing-select-top $spacing-select-right $spacing-select-bottom $spacing-select-left !important;
|
|
174
|
-
}
|
|
175
|
-
&.label-input {
|
|
176
|
-
.mat-form-field-infix {
|
|
177
|
-
padding-top: 7px !important;
|
|
178
|
-
padding-bottom: 7px !important;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.apipass-date-filter {
|
|
184
|
-
width: 100%;
|
|
185
|
-
.mat-form-field-flex {
|
|
186
|
-
padding: $spacing-date-filter-top $spacing-date-filter-right $spacing-date-filter-bottom $spacing-date-filter-left !important;
|
|
187
|
-
}
|
|
188
|
-
.mat-form-field-suffix {
|
|
189
|
-
span {
|
|
190
|
-
cursor: pointer;
|
|
191
|
-
color: #777;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
.mat-form-field-wrapper {
|
|
195
|
-
padding-bottom: 0 !important;
|
|
196
|
-
}
|
|
197
|
-
}
|