ontimize-web-ngx 15.0.0-beta.3 → 15.0.0-beta.4
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/esm2020/lib/components/contextmenu/context-menu/o-wrapper-content-menu/o-wrapper-content-menu.component.mjs +3 -3
- package/esm2020/lib/components/input/currency-input/o-currency-input.component.mjs +3 -11
- package/esm2020/lib/components/table/extensions/header/table-menu/o-table-menu.component.mjs +3 -3
- package/esm2020/lib/components/table/extensions/header/table-quickfilter/o-table-quickfilter.component.mjs +3 -3
- package/esm2020/lib/i18n/i18n.mjs +2 -2
- package/esm2020/lib/services/local-storage.service.mjs +5 -2
- package/esm2020/lib/util/currencyUtil.mjs +53 -0
- package/esm2020/lib/util/index.mjs +2 -1
- package/fesm2015/ontimize-web-ngx.mjs +67 -19
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +66 -19
- package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
- package/lib/components/input/currency-input/o-currency-input.component.d.ts +7 -0
- package/lib/util/currencyUtil.d.ts +41 -0
- package/lib/util/index.d.ts +1 -0
- package/package.json +1 -1
- package/theme.scss +69 -74
- package/theming/ontimize-style-v8.scss +2 -1
- package/theming/styles/density.scss +15 -0
|
@@ -5,6 +5,13 @@ export declare const DEFAULT_INPUTS_O_CURRENCY_INPUT: string[];
|
|
|
5
5
|
export declare class OCurrencyInputComponent extends ORealInputComponent implements OnInit {
|
|
6
6
|
static currency_icons: string[];
|
|
7
7
|
currency_symbols: {
|
|
8
|
+
EUR: string;
|
|
9
|
+
USD: string;
|
|
10
|
+
BRL: string;
|
|
11
|
+
JPY: string;
|
|
12
|
+
CNY: string;
|
|
13
|
+
RUB: string;
|
|
14
|
+
AED: string;
|
|
8
15
|
CRC: string;
|
|
9
16
|
NGN: string;
|
|
10
17
|
PHP: string;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare class CurrencyUtil {
|
|
2
|
+
static languageToCurrencyCode: {
|
|
3
|
+
es: string;
|
|
4
|
+
en: string;
|
|
5
|
+
pt: string;
|
|
6
|
+
fr: string;
|
|
7
|
+
de: string;
|
|
8
|
+
it: string;
|
|
9
|
+
ja: string;
|
|
10
|
+
zh: string;
|
|
11
|
+
ru: string;
|
|
12
|
+
ar: string;
|
|
13
|
+
cr: string;
|
|
14
|
+
ng: string;
|
|
15
|
+
ph: string;
|
|
16
|
+
pl: string;
|
|
17
|
+
py: string;
|
|
18
|
+
th: string;
|
|
19
|
+
ua: string;
|
|
20
|
+
vn: string;
|
|
21
|
+
};
|
|
22
|
+
static currencyCodeToSymbol: {
|
|
23
|
+
EUR: string;
|
|
24
|
+
USD: string;
|
|
25
|
+
BRL: string;
|
|
26
|
+
JPY: string;
|
|
27
|
+
CNY: string;
|
|
28
|
+
RUB: string;
|
|
29
|
+
AED: string;
|
|
30
|
+
CRC: string;
|
|
31
|
+
NGN: string;
|
|
32
|
+
PHP: string;
|
|
33
|
+
PLN: string;
|
|
34
|
+
PYG: string;
|
|
35
|
+
THB: string;
|
|
36
|
+
UAH: string;
|
|
37
|
+
VND: string;
|
|
38
|
+
};
|
|
39
|
+
static getCurrencyCode(language: string): string;
|
|
40
|
+
static getCurrencyCodeFromSymbol(symbol: string): string | undefined;
|
|
41
|
+
}
|
package/lib/util/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ontimize-web-ngx",
|
|
3
3
|
"homepage": "https://github.com/OntimizeWeb/ontimize-web-ngx#readme",
|
|
4
|
-
"version": "15.0.0-beta.
|
|
4
|
+
"version": "15.0.0-beta.4",
|
|
5
5
|
"description": "Ontimize Web framework using Angular 15",
|
|
6
6
|
"bugs": "https://github.com/OntimizeWeb/ontimize-web-ngx/issues",
|
|
7
7
|
"author": "Imatia S.L.",
|
package/theme.scss
CHANGED
|
@@ -73,7 +73,74 @@
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
}@mixin o-
|
|
76
|
+
}@mixin o-bar-menu-theme($theme-or-color-config) {
|
|
77
|
+
$theme: map.get($theme-or-color-config, color);
|
|
78
|
+
$primary: map.get($theme, primary);
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
$bg-color: #FFF;
|
|
82
|
+
$fg-color: rgba(0, 0, 0, 0.7);
|
|
83
|
+
|
|
84
|
+
$item-bg-color-hover-dark: rgba(0, 0, 0, 0.16);
|
|
85
|
+
$item-bg-color-hover-light: rgba(255, 255, 255, 0.16);
|
|
86
|
+
|
|
87
|
+
.o-bar-menu {
|
|
88
|
+
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
|
|
89
|
+
|
|
90
|
+
nav {
|
|
91
|
+
.fake-ul {
|
|
92
|
+
.fake-ul {
|
|
93
|
+
background-color: $bg-color;
|
|
94
|
+
|
|
95
|
+
.mat-icon,
|
|
96
|
+
.o-bar-menu-group-title,
|
|
97
|
+
.o-bar-menu-item-title,
|
|
98
|
+
label.toggle {
|
|
99
|
+
color: $fg-color;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.fake-li {
|
|
103
|
+
background-color: $bg-color;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
a {
|
|
109
|
+
color: $bg-color;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@media all and (min-width : 768px) {
|
|
114
|
+
nav .fake-ul {
|
|
115
|
+
.fake-li .fake-ul .fake-li-hover {
|
|
116
|
+
background: $item-bg-color-hover-dark;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.fake-li-hover {
|
|
120
|
+
background-color: $item-bg-color-hover-light;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@media all and (max-width : 767px) {
|
|
126
|
+
nav {
|
|
127
|
+
a:hover {
|
|
128
|
+
background-color: rgba(255, 255, 255, 0.15);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.fake-ul {
|
|
132
|
+
border-top: 1px solid rgba(255, 255, 255, 0.5);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.toggle {
|
|
137
|
+
&:hover {
|
|
138
|
+
background-color: rgba(255, 255, 255, 0.15);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}@mixin o-app-sidenav-theme($theme-or-color-config) {
|
|
77
144
|
$theme: map.get($theme-or-color-config, color);
|
|
78
145
|
$primary: map.get($theme, primary);
|
|
79
146
|
$accent: map.get($theme, accent);
|
|
@@ -149,74 +216,7 @@
|
|
|
149
216
|
}
|
|
150
217
|
}
|
|
151
218
|
}
|
|
152
|
-
}@mixin o-
|
|
153
|
-
$theme: map.get($theme-or-color-config, color);
|
|
154
|
-
$primary: map.get($theme, primary);
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
$bg-color: #FFF;
|
|
158
|
-
$fg-color: rgba(0, 0, 0, 0.7);
|
|
159
|
-
|
|
160
|
-
$item-bg-color-hover-dark: rgba(0, 0, 0, 0.16);
|
|
161
|
-
$item-bg-color-hover-light: rgba(255, 255, 255, 0.16);
|
|
162
|
-
|
|
163
|
-
.o-bar-menu {
|
|
164
|
-
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
|
|
165
|
-
|
|
166
|
-
nav {
|
|
167
|
-
.fake-ul {
|
|
168
|
-
.fake-ul {
|
|
169
|
-
background-color: $bg-color;
|
|
170
|
-
|
|
171
|
-
.mat-icon,
|
|
172
|
-
.o-bar-menu-group-title,
|
|
173
|
-
.o-bar-menu-item-title,
|
|
174
|
-
label.toggle {
|
|
175
|
-
color: $fg-color;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.fake-li {
|
|
179
|
-
background-color: $bg-color;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
a {
|
|
185
|
-
color: $bg-color;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
@media all and (min-width : 768px) {
|
|
190
|
-
nav .fake-ul {
|
|
191
|
-
.fake-li .fake-ul .fake-li-hover {
|
|
192
|
-
background: $item-bg-color-hover-dark;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.fake-li-hover {
|
|
196
|
-
background-color: $item-bg-color-hover-light;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
@media all and (max-width : 767px) {
|
|
202
|
-
nav {
|
|
203
|
-
a:hover {
|
|
204
|
-
background-color: rgba(255, 255, 255, 0.15);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.fake-ul {
|
|
208
|
-
border-top: 1px solid rgba(255, 255, 255, 0.5);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.toggle {
|
|
213
|
-
&:hover {
|
|
214
|
-
background-color: rgba(255, 255, 255, 0.15);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}@mixin o-breadcrumb-theme($theme-or-color-config) {
|
|
219
|
+
}@mixin o-breadcrumb-theme($theme-or-color-config) {
|
|
220
220
|
$theme: map.get($theme-or-color-config, color);
|
|
221
221
|
$primary: map.get($theme, primary);
|
|
222
222
|
$accent: map.get($theme, accent);
|
|
@@ -981,11 +981,6 @@
|
|
|
981
981
|
}
|
|
982
982
|
|
|
983
983
|
}
|
|
984
|
-
|
|
985
|
-
/*MAT MENU*/
|
|
986
|
-
.o-mat-menu.mat-mdc-menu-panel {
|
|
987
|
-
min-height: auto;
|
|
988
|
-
}
|
|
989
984
|
}// Layout-padding-xxx & Layout-margin-xxxx
|
|
990
985
|
// ------------------------------
|
|
991
986
|
$baseline-grid: 8px !default;
|
|
@@ -68,7 +68,7 @@ $app-background-color: #eaeaea;
|
|
|
68
68
|
@mixin ontimize-theme-styles($theme-or-color-config) {
|
|
69
69
|
|
|
70
70
|
$theme: map.get($theme-or-color-config, color);
|
|
71
|
-
|
|
71
|
+
$typography: mat.get-typography-config($theme-or-color-config);
|
|
72
72
|
$primary: map.get($theme, primary);
|
|
73
73
|
$accent: map.get($theme, accent);
|
|
74
74
|
$background: map.get($theme, background);
|
|
@@ -89,6 +89,7 @@ $app-background-color: #eaeaea;
|
|
|
89
89
|
@include o-density.checkbox();
|
|
90
90
|
@include o-density.list();
|
|
91
91
|
@include o-density.radio();
|
|
92
|
+
@include o-density.menu($typography);
|
|
92
93
|
@include o-table-style.o-table-style($theme-or-color-config);
|
|
93
94
|
@include report-on-demand.report-on-demand($theme-or-color-config);
|
|
94
95
|
@include charts-on-demand.o-chart-on-demand($theme-or-color-config);
|
|
@@ -72,4 +72,19 @@
|
|
|
72
72
|
|
|
73
73
|
@mixin o-form-field() {
|
|
74
74
|
@include mat.form-field-density(-2);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@mixin menu($typography) {
|
|
78
|
+
|
|
79
|
+
/*MAT MENU*/
|
|
80
|
+
.o-mat-menu.mat-mdc-menu-panel {
|
|
81
|
+
min-height: auto;
|
|
82
|
+
|
|
83
|
+
@if($typography) {
|
|
84
|
+
.mdc-list-item__primary-text{
|
|
85
|
+
font-size: mat.font-size($typography, body-2);
|
|
86
|
+
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
75
90
|
}
|