ontimize-web-ngx 15.0.4 → 15.1.1
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/app-sidenav/menu-group/o-app-sidenav-menu-group.component.mjs +3 -3
- package/esm2020/lib/components/app-sidenav/o-app-sidenav.component.mjs +15 -13
- package/esm2020/lib/components/bar-menu/menu-nested/o-bar-menu-nested.component.mjs +3 -3
- package/esm2020/lib/components/bar-menu/o-bar-menu.component.mjs +10 -1
- package/esm2020/lib/components/button/o-button.component.mjs +27 -11
- package/esm2020/lib/components/form/index.mjs +2 -1
- package/esm2020/lib/components/form/o-form-tokens.mjs +3 -0
- package/esm2020/lib/components/form/o-form.component.mjs +42 -15
- package/esm2020/lib/components/grid/o-grid.component.mjs +7 -3
- package/esm2020/lib/components/input/combo/combo-search/o-combo-search.component.mjs +4 -1
- package/esm2020/lib/components/input/combo/o-combo.component.mjs +10 -3
- package/esm2020/lib/components/input/date-input/o-date-input.component.mjs +5 -1
- package/esm2020/lib/components/input/radio/o-radio.component.mjs +7 -5
- package/esm2020/lib/components/list/o-list.component.mjs +8 -4
- package/esm2020/lib/components/list/renderers/o-list-item-text-renderer.class.mjs +13 -4
- package/esm2020/lib/components/o-service-base-component.class.mjs +11 -5
- package/esm2020/lib/components/o-service-component.class.mjs +64 -1
- package/esm2020/lib/components/table/column/cell-editor/real/o-table-cell-editor-real.component.mjs +2 -2
- package/esm2020/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column-data-dialog.component.mjs +2 -4
- package/esm2020/lib/components/table/extensions/skeleton/o-table-skeleton.component.mjs +8 -7
- package/esm2020/lib/components/table/extensions/sort/o-mat-sort.mjs +2 -4
- package/esm2020/lib/components/table/o-table.component.mjs +30 -13
- package/esm2020/lib/components/tree/o-tree.component.mjs +7 -3
- package/esm2020/lib/interfaces/app-menu.interface.mjs +1 -1
- package/esm2020/lib/interfaces/service-data-component.interface.mjs +1 -1
- package/esm2020/lib/layouts/app-layout/o-app-layout.component.mjs +1 -1
- package/esm2020/lib/layouts/form-layout/o-form-layout-manager.component.mjs +17 -1
- package/esm2020/lib/services/app-menu.service.mjs +36 -2
- package/esm2020/lib/services/o-auth.service.mjs +7 -1
- package/esm2020/lib/services/permissions/permissions.service.mjs +40 -6
- package/esm2020/lib/types/form/index.mjs +2 -0
- package/esm2020/lib/types/form/o-form-global-config.type.mjs +2 -0
- package/esm2020/lib/types/index.mjs +3 -1
- package/esm2020/lib/types/o-component-permissions-by-route.type.mjs +2 -0
- package/esm2020/lib/types/o-form-permissions.type.mjs +1 -1
- package/esm2020/lib/types/o-global-config.type.mjs +3 -0
- package/esm2020/lib/types/o-grid-permissions.type.mjs +2 -0
- package/esm2020/lib/types/o-list-permissions.type.mjs +2 -0
- package/esm2020/lib/types/o-service-base-permissions.type.mjs +2 -0
- package/esm2020/lib/types/o-tree-permissions.type.mjs +2 -0
- package/esm2020/lib/types/table/o-table-global-config.type.mjs +1 -1
- package/esm2020/lib/types/table/o-table-permissions.type.mjs +1 -1
- package/esm2020/lib/util/codes.mjs +9 -1
- package/esm2020/lib/util/util.mjs +16 -1
- package/fesm2015/ontimize-web-ngx.mjs +1297 -1018
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +1296 -1018
- package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
- package/lib/components/app-sidenav/o-app-sidenav.component.d.ts +4 -4
- package/lib/components/bar-menu/o-bar-menu.component.d.ts +4 -0
- package/lib/components/button/o-button.component.d.ts +11 -2
- package/lib/components/form/index.d.ts +1 -0
- package/lib/components/form/o-form-tokens.d.ts +3 -0
- package/lib/components/form/o-form.component.d.ts +11 -4
- package/lib/components/grid/o-grid.component.d.ts +4 -0
- package/lib/components/input/combo/combo-search/o-combo-search.component.d.ts +1 -0
- package/lib/components/input/combo/o-combo.component.d.ts +2 -0
- package/lib/components/input/date-input/o-date-input.component.d.ts +1 -0
- package/lib/components/input/radio/o-radio.component.d.ts +2 -1
- package/lib/components/list/o-list.component.d.ts +4 -0
- package/lib/components/list/renderers/o-list-item-text-renderer.class.d.ts +4 -1
- package/lib/components/o-service-base-component.class.d.ts +2 -0
- package/lib/components/o-service-component.class.d.ts +11 -0
- package/lib/components/table/extensions/skeleton/o-table-skeleton.component.d.ts +1 -1
- package/lib/components/table/o-table.component.d.ts +3 -3
- package/lib/components/tree/o-tree.component.d.ts +4 -0
- package/lib/interfaces/app-menu.interface.d.ts +1 -0
- package/lib/interfaces/service-data-component.interface.d.ts +1 -0
- package/lib/layouts/form-layout/o-form-layout-manager.component.d.ts +1 -0
- package/lib/services/app-menu.service.d.ts +7 -1
- package/lib/services/o-auth.service.d.ts +1 -0
- package/lib/services/permissions/permissions.service.d.ts +14 -3
- package/lib/types/form/index.d.ts +1 -0
- package/lib/types/form/o-form-global-config.type.d.ts +3 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/o-component-permissions-by-route.type.d.ts +5 -0
- package/lib/types/o-form-permissions.type.d.ts +2 -7
- package/lib/types/o-global-config.type.d.ts +5 -0
- package/lib/types/o-grid-permissions.type.d.ts +2 -0
- package/lib/types/o-list-permissions.type.d.ts +2 -0
- package/lib/types/o-service-base-permissions.type.d.ts +7 -0
- package/lib/types/o-tree-permissions.type.d.ts +2 -0
- package/lib/types/table/o-table-global-config.type.d.ts +5 -0
- package/lib/types/table/o-table-permissions.type.d.ts +2 -4
- package/lib/util/codes.d.ts +8 -1
- package/lib/util/util.d.ts +2 -0
- package/package.json +1 -1
- package/theme.scss +72 -71
- package/theming/ontimize-style.scss +1 -30
package/lib/util/codes.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export type OAppLayoutMode = 'mobile' | 'desktop';
|
|
2
2
|
export type OSidenavMode = 'over' | 'push' | 'side';
|
|
3
3
|
export type CHANGE_EVENTS = 'onValueChange' | 'onChange';
|
|
4
|
+
export type ORowHeight = 'small' | 'medium' | 'large';
|
|
5
|
+
export type OTableEditionMode = 'none' | 'click' | 'dblclick' | 'doubleclick';
|
|
6
|
+
export type OTableDetailMode = 'none' | 'click' | 'dblclick' | 'doubleclick';
|
|
4
7
|
export declare class Codes {
|
|
5
8
|
static PAGINATED_QUERY_METHOD: string;
|
|
6
9
|
static DELETE_METHOD: string;
|
|
@@ -12,13 +15,15 @@ export declare class Codes {
|
|
|
12
15
|
static DETAIL_ICON: string;
|
|
13
16
|
static EDIT_ICON: string;
|
|
14
17
|
static DEFAULT_ROW_HEIGHT: string;
|
|
15
|
-
static AVAILABLE_ROW_HEIGHTS_VALUES: string[];
|
|
18
|
+
static readonly AVAILABLE_ROW_HEIGHTS_VALUES: string[];
|
|
16
19
|
static DETAIL_MODE_NONE: string;
|
|
17
20
|
static DETAIL_MODE_CLICK: string;
|
|
18
21
|
static DETAIL_MODE_DBLCLICK_VALUES: string[];
|
|
22
|
+
static readonly AVAILABLE_DETAIL_MODES: string[];
|
|
19
23
|
static EDITION_MODE_NONE: string;
|
|
20
24
|
static EDITION_MODE_CLICK: string;
|
|
21
25
|
static EDITION_MODE_DBLCLICK_VALUES: string[];
|
|
26
|
+
static readonly AVAILABLE_MODES: string[];
|
|
22
27
|
static SELECTION_MODE_NONE: string;
|
|
23
28
|
static SELECTION_MODE_SINGLE: string;
|
|
24
29
|
static SELECTION_MODE_MULTIPLE: string;
|
|
@@ -97,4 +102,6 @@ export declare class Codes {
|
|
|
97
102
|
static getIsDetailObject(): any;
|
|
98
103
|
static formatString(format: number): string;
|
|
99
104
|
static isHourInputAllowed(e: KeyboardEvent): boolean;
|
|
105
|
+
static isValidEditionMode(editionMode: OTableEditionMode): boolean;
|
|
106
|
+
static isValidDetailMode(detailMode: OTableDetailMode): any;
|
|
100
107
|
}
|
package/lib/util/util.d.ts
CHANGED
|
@@ -46,4 +46,6 @@ export declare class Util {
|
|
|
46
46
|
static configureMessageService(configureServiceArgs: OConfigureMessageServiceArgs): any;
|
|
47
47
|
static isBase64(file: string): boolean;
|
|
48
48
|
static stringify(obj: object): string;
|
|
49
|
+
static sortFunction(propertyA: string | number, propertyB: string | number, activeSortDirection: string): number;
|
|
50
|
+
static cloneArray<T>(arr: T[]): T[];
|
|
49
51
|
}
|
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.
|
|
4
|
+
"version": "15.1.1",
|
|
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,74 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
}@mixin o-
|
|
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) {
|
|
76
|
+
}@mixin o-app-sidenav-theme($theme-or-color-config) {
|
|
144
77
|
$theme: map.get($theme-or-color-config, color);
|
|
145
78
|
$primary: map.get($theme, primary);
|
|
146
79
|
$accent: map.get($theme, accent);
|
|
@@ -216,7 +149,74 @@
|
|
|
216
149
|
}
|
|
217
150
|
}
|
|
218
151
|
}
|
|
219
|
-
}@mixin o-
|
|
152
|
+
}@mixin o-bar-menu-theme($theme-or-color-config) {
|
|
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) {
|
|
220
220
|
$theme: map.get($theme-or-color-config, color);
|
|
221
221
|
$primary: map.get($theme, primary);
|
|
222
222
|
$accent: map.get($theme, accent);
|
|
@@ -1403,7 +1403,7 @@ $layout-gutter-width-horizontal: 14px !default;
|
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
1405
|
&.selected {
|
|
1406
|
-
background: mat.get-color-from-palette($
|
|
1406
|
+
background: mat.get-color-from-palette($background, hover, 0.12);
|
|
1407
1407
|
}
|
|
1408
1408
|
|
|
1409
1409
|
.mat-mdc-cell {
|
|
@@ -1485,7 +1485,8 @@ $layout-gutter-width-horizontal: 14px !default;
|
|
|
1485
1485
|
.o-table-quickfilter .quickFilter .mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-prefix div {
|
|
1486
1486
|
border-right: 1px solid mat.get-color-from-palette($foreground, divider);
|
|
1487
1487
|
}
|
|
1488
|
-
}
|
|
1488
|
+
}
|
|
1489
|
+
@mixin o-dialog-theme($theme-or-color-config) {
|
|
1489
1490
|
$theme: map.get($theme-or-color-config, color);
|
|
1490
1491
|
$background: map.get($theme, background);
|
|
1491
1492
|
$foreground: map.get($theme, foreground);
|
|
@@ -336,8 +336,6 @@ $ontimize-dark-theme-foreground: (
|
|
|
336
336
|
$background-accent-button: if($is-dark-theme, transparent, #ffffff);
|
|
337
337
|
$background-hover-accent-button: if($is-dark-theme, mat.get-color-from-palette($accent, 500, 0.04), mat.get-color-from-palette($accent, 100));
|
|
338
338
|
$background-hover-warn-button: if($is-dark-theme, mat.get-color-from-palette($warn, 500, 0.04), mat.get-color-from-palette($warn, 100));
|
|
339
|
-
$table-row-over-background: if($is-dark-theme, #ffffff1f, #f5f5f5);
|
|
340
|
-
$table-row-selected-background: if($is-dark-theme, #f1f6fa80, #eaeaea);
|
|
341
339
|
$sidenav-background-color: if($is-dark-theme, mix(#1e1e1e, mat.get-color-from-palette($primary, 500), 94%), mat.get-color-from-palette($background, status-bar));
|
|
342
340
|
|
|
343
341
|
.o-app-header {
|
|
@@ -546,34 +544,7 @@ $ontimize-dark-theme-foreground: (
|
|
|
546
544
|
|
|
547
545
|
.mat-mdc-table {
|
|
548
546
|
.mat-mdc-row {
|
|
549
|
-
//TO BE DEFINED
|
|
550
|
-
// &.o-table-group-row-level-1 {
|
|
551
|
-
// font-weight: 900;
|
|
552
|
-
// background-color: if($is-dark-theme, #464646, #b2b2b2);
|
|
553
|
-
// }
|
|
554
|
-
|
|
555
|
-
// &.o-table-group-row-level-2 {
|
|
556
|
-
// font-weight: 800;
|
|
557
|
-
// background-color: if($is-dark-theme, #575757, #cccccc);
|
|
558
|
-
// }
|
|
559
|
-
|
|
560
|
-
// &.o-table-group-row-level-3 {
|
|
561
|
-
// font-weight: 700;
|
|
562
|
-
// background-color: if($is-dark-theme,#686868, #e8e8e8);
|
|
563
|
-
// }
|
|
564
|
-
|
|
565
|
-
// &.o-table-group-row-level-4 {
|
|
566
|
-
// font-weight: 600;
|
|
567
|
-
// background-color: if($is-dark-theme, #7a7a7a, #f9f9f9);
|
|
568
|
-
// }
|
|
569
|
-
&:hover:not(.o-table-group-row) {
|
|
570
|
-
cursor: pointer;
|
|
571
|
-
background-color: $table-row-over-background;
|
|
572
|
-
}
|
|
573
547
|
|
|
574
|
-
&.selected {
|
|
575
|
-
background-color: $table-row-selected-background;
|
|
576
|
-
}
|
|
577
548
|
|
|
578
549
|
.mat-mdc-cell {
|
|
579
550
|
color: mat.get-color-from-palette($foreground, base);
|
|
@@ -784,4 +755,4 @@ $ontimize-dark-theme-foreground: (
|
|
|
784
755
|
border-radius: variables.$border-radius;
|
|
785
756
|
}
|
|
786
757
|
|
|
787
|
-
}
|
|
758
|
+
}
|