ontimize-web-ngx 15.0.3 → 15.1.0
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/menu-item/o-app-sidenav-menu-item.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 +43 -16
- package/esm2020/lib/components/grid/o-grid.component.mjs +7 -12
- 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-range/o-daterange-picker.component.mjs +6 -5
- package/esm2020/lib/components/list/o-list.component.mjs +8 -13
- 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 +12 -6
- 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/header/table-column-resizer/o-table-column-resizer.component.mjs +18 -10
- 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 +28 -11
- package/esm2020/lib/components/tree/o-tree.component.mjs +22 -13
- 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/card-menu-layout/o-card-menu-layout.component.mjs +32 -16
- 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/ontimize-export-data-base-provider.service.mjs +34 -2
- 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 +1835 -1522
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +1834 -1522
- 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 +5 -4
- 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-range/o-daterange-picker.component.d.ts +1 -0
- package/lib/components/list/o-list.component.d.ts +5 -4
- 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/header/table-column-resizer/o-table-column-resizer.component.d.ts +3 -3
- 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 +6 -0
- package/lib/interfaces/app-menu.interface.d.ts +2 -0
- package/lib/interfaces/service-data-component.interface.d.ts +1 -0
- package/lib/layouts/card-menu-layout/o-card-menu-layout.component.d.ts +10 -2
- 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/ontimize-export-data-base-provider.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/ontimize.scss +35 -34
- package/package.json +1 -1
- package/theme.scss +106 -73
- package/theming/ontimize-style.scss +19 -37
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type OFormPermissions =
|
|
3
|
-
attr: string;
|
|
4
|
-
selector: string;
|
|
5
|
-
components?: OPermissions[];
|
|
6
|
-
actions?: OPermissions[];
|
|
7
|
-
};
|
|
1
|
+
import { OServiceBasePermissions } from './o-service-base-permissions.type';
|
|
2
|
+
export type OFormPermissions = OServiceBasePermissions;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import { ORowHeight, OTableDetailMode, OTableEditionMode } from './../../util/codes';
|
|
1
2
|
export type OTableGlobalConfig = {
|
|
2
3
|
autoAdjust: boolean;
|
|
3
4
|
autoAlignTitles: boolean;
|
|
5
|
+
filterColumnActiveByDefault: boolean;
|
|
6
|
+
editionMode: OTableEditionMode;
|
|
7
|
+
detailMode: OTableDetailMode;
|
|
8
|
+
rowHeight: ORowHeight;
|
|
4
9
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { OPermissions } from '../o-permissions.type';
|
|
2
|
+
import { OServiceBasePermissions } from '../o-service-base-permissions.type';
|
|
2
3
|
import { OTableMenuPermissions } from './o-table-menu-permissions.type';
|
|
3
|
-
export type OTablePermissions = {
|
|
4
|
-
attr: string;
|
|
5
|
-
selector: string;
|
|
4
|
+
export type OTablePermissions = OServiceBasePermissions & {
|
|
6
5
|
menu?: OTableMenuPermissions;
|
|
7
6
|
columns?: OPermissions[];
|
|
8
|
-
actions?: OPermissions[];
|
|
9
7
|
contextMenu?: OPermissions[];
|
|
10
8
|
};
|
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/ontimize.scss
CHANGED
|
@@ -21,7 +21,7 @@ $layout-gutter-width: ($baseline-grid * 2) !default;
|
|
|
21
21
|
|
|
22
22
|
[layout-padding]>[flex-sm],
|
|
23
23
|
[layout-padding]>[flex-lt-md] {
|
|
24
|
-
padding:
|
|
24
|
+
padding: calc($layout-gutter-width / 4);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
[layout-padding],
|
|
@@ -29,17 +29,17 @@ $layout-gutter-width: ($baseline-grid * 2) !default;
|
|
|
29
29
|
[layout-padding]>[flex-gt-sm],
|
|
30
30
|
[layout-padding]>[flex-md],
|
|
31
31
|
[layout-padding]>[flex-lt-lg] {
|
|
32
|
-
padding:
|
|
32
|
+
padding: calc($layout-gutter-width / 2);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
[layout-padding]>[flex-gt-md],
|
|
36
36
|
[layout-padding]>[flex-lg] {
|
|
37
|
-
padding:
|
|
37
|
+
padding: $layout-gutter-width
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
[layout-margin]>[flex-sm],
|
|
41
41
|
[layout-margin]>[flex-lt-md] {
|
|
42
|
-
margin:
|
|
42
|
+
margin: calc($layout-gutter-width / 4);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
[layout-margin],
|
|
@@ -47,13 +47,13 @@ $layout-gutter-width: ($baseline-grid * 2) !default;
|
|
|
47
47
|
[layout-margin]>[flex-gt-sm],
|
|
48
48
|
[layout-margin]>[flex-md],
|
|
49
49
|
[layout-margin]>[flex-lt-lg] {
|
|
50
|
-
margin:
|
|
50
|
+
margin: calc($layout-gutter-width / 2);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
[layout-margin]>[flex-gt-md],
|
|
54
54
|
[layout-margin]>[flex-lg] {
|
|
55
|
-
margin:
|
|
56
|
-
|
|
55
|
+
margin: $layout-gutter-width;
|
|
56
|
+
}
|
|
57
57
|
|
|
58
58
|
[layout-wrap] {
|
|
59
59
|
flex-wrap: wrap;
|
|
@@ -65,17 +65,17 @@ $layout-gutter-width: ($baseline-grid * 2) !default;
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
@include layout-padding-margin();
|
|
68
|
-
$display-1-font-size-base:
|
|
69
|
-
$display-4-font-size-base:
|
|
70
|
-
$display-3-font-size-base:
|
|
71
|
-
$display-2-font-size-base:
|
|
68
|
+
$display-1-font-size-base: 3.400rem !default;
|
|
69
|
+
$display-4-font-size-base: 11.20rem !default;
|
|
70
|
+
$display-3-font-size-base: 5.600rem !default;
|
|
71
|
+
$display-2-font-size-base: 4.500rem !default;
|
|
72
72
|
|
|
73
|
-
$headline-font-size-base:
|
|
74
|
-
$title-font-size-base:
|
|
75
|
-
$subhead-font-size-base:
|
|
73
|
+
$headline-font-size-base: 2.400rem !default;
|
|
74
|
+
$title-font-size-base: 2.000rem !default;
|
|
75
|
+
$subhead-font-size-base: 1.600rem !default;
|
|
76
76
|
|
|
77
77
|
// $body-font-size-base: rem(1.400) !default;
|
|
78
|
-
$caption-font-size-base:
|
|
78
|
+
$caption-font-size-base: 1.200rem !default;
|
|
79
79
|
|
|
80
80
|
// Layout
|
|
81
81
|
// $baseline-grid: 8px !default;
|
|
@@ -258,17 +258,17 @@ input {
|
|
|
258
258
|
// [3] Prevent iOS text size adjust after orientation change, without disabling user zoom
|
|
259
259
|
// [4] Fonts on OSX will look more consistent with other systems that do not
|
|
260
260
|
// render text using sub-pixel anti-aliasing.
|
|
261
|
-
$display-1-font-size-base:
|
|
262
|
-
$display-4-font-size-base:
|
|
263
|
-
$display-3-font-size-base:
|
|
264
|
-
$display-2-font-size-base:
|
|
261
|
+
$display-1-font-size-base: 3.400rem !default;
|
|
262
|
+
$display-4-font-size-base: 11.20rem !default;
|
|
263
|
+
$display-3-font-size-base: 5.600rem !default;
|
|
264
|
+
$display-2-font-size-base: 4.500rem !default;
|
|
265
265
|
|
|
266
|
-
$headline-font-size-base:
|
|
267
|
-
$title-font-size-base:
|
|
268
|
-
$subhead-font-size-base:
|
|
266
|
+
$headline-font-size-base: 2.400rem !default;
|
|
267
|
+
$title-font-size-base: 2.000rem !default;
|
|
268
|
+
$subhead-font-size-base: 1.600rem !default;
|
|
269
269
|
|
|
270
270
|
// $body-font-size-base: rem(1.400) !default;
|
|
271
|
-
$caption-font-size-base:
|
|
271
|
+
$caption-font-size-base: 1.200rem !default;
|
|
272
272
|
|
|
273
273
|
// Layout
|
|
274
274
|
// $baseline-grid: 8px !default;
|
|
@@ -337,19 +337,19 @@ html, body {
|
|
|
337
337
|
.mat-headline-3 {
|
|
338
338
|
font-size: $display-2-font-size-base;
|
|
339
339
|
font-weight: 400;
|
|
340
|
-
line-height:
|
|
340
|
+
line-height: 6.4rem;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
.mat-headline-4 {
|
|
344
344
|
font-size: $display-1-font-size-base;
|
|
345
345
|
font-weight: 400;
|
|
346
|
-
line-height:
|
|
346
|
+
line-height: 4rem;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
.mat-headline-5 {
|
|
350
350
|
font-size: $headline-font-size-base;
|
|
351
351
|
font-weight: 400;
|
|
352
|
-
line-height:
|
|
352
|
+
line-height: 3.2rem;
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
|
|
@@ -380,17 +380,18 @@ input {
|
|
|
380
380
|
.material-icons{
|
|
381
381
|
font-feature-settings:"liga"
|
|
382
382
|
}
|
|
383
|
-
$display-1-font-size-base: rem(3.400) !default;
|
|
384
|
-
$display-4-font-size-base: rem(11.20) !default;
|
|
385
|
-
$display-3-font-size-base: rem(5.600) !default;
|
|
386
|
-
$display-2-font-size-base: rem(4.500) !default;
|
|
387
383
|
|
|
388
|
-
$
|
|
389
|
-
$
|
|
390
|
-
$
|
|
384
|
+
$display-1-font-size-base: 3.400rem !default;
|
|
385
|
+
$display-4-font-size-base: 11.20rem !default;
|
|
386
|
+
$display-3-font-size-base: 5.600rem !default;
|
|
387
|
+
$display-2-font-size-base: 4.500rem !default;
|
|
388
|
+
|
|
389
|
+
$headline-font-size-base: 2.400rem !default;
|
|
390
|
+
$title-font-size-base: 2.000rem !default;
|
|
391
|
+
$subhead-font-size-base: 1.600rem !default;
|
|
391
392
|
|
|
392
393
|
// $body-font-size-base: rem(1.400) !default;
|
|
393
|
-
$caption-font-size-base:
|
|
394
|
+
$caption-font-size-base: 1.200rem !default;
|
|
394
395
|
|
|
395
396
|
// Layout
|
|
396
397
|
// $baseline-grid: 8px !default;
|
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
|
|
4
|
+
"version": "15.1.0",
|
|
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);
|
|
@@ -1077,7 +1077,7 @@ $layout-gutter-width-horizontal: 14px !default;
|
|
|
1077
1077
|
$warn: map.get($theme, warn);
|
|
1078
1078
|
$background: map.get($theme, background);
|
|
1079
1079
|
$foreground: map.get($theme, foreground);
|
|
1080
|
-
|
|
1080
|
+
$is-dark-theme: map-get($theme, is-dark);
|
|
1081
1081
|
$color-inactive: #999999;
|
|
1082
1082
|
|
|
1083
1083
|
/*
|
|
@@ -1095,6 +1095,27 @@ $layout-gutter-width-horizontal: 14px !default;
|
|
|
1095
1095
|
* styles
|
|
1096
1096
|
*/
|
|
1097
1097
|
.md-drppicker {
|
|
1098
|
+
.calendar {
|
|
1099
|
+
|
|
1100
|
+
td,
|
|
1101
|
+
th {
|
|
1102
|
+
color: mat.get-color-from-palette($foreground, text);
|
|
1103
|
+
|
|
1104
|
+
&.in-range {
|
|
1105
|
+
color: if($is-dark-theme, #000000, #fff);
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
&.available {
|
|
1109
|
+
&.prev {
|
|
1110
|
+
background-image: if($is-dark-theme, url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCiAgPGc+DQogICAgPHBhdGggZD0iTTMuNywwLjdMMS40LDNsMi4zLDIuM0wzLDZMMCwzbDMtM0wzLjcsMC43eiIgZmlsbD0iI0ZGRkZGRiIvPg0KICA8L2c+DQo8L3N2Zz4="), url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K"));
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
&.next {
|
|
1114
|
+
background-image: if($is-dark-theme, url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiIGZpbGw9IiNGRkZGRkYiIC8+DQo8L2c+DQo8L3N2Zz4NCg=="), url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K"));
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1098
1119
|
|
|
1099
1120
|
background-color: mat.get-color-from-palette($background, card);
|
|
1100
1121
|
|
|
@@ -1250,6 +1271,8 @@ $layout-gutter-width-horizontal: 14px !default;
|
|
|
1250
1271
|
}@mixin o-hour-input-theme($theme-or-color-config) {
|
|
1251
1272
|
$theme: map.get($theme-or-color-config, color);
|
|
1252
1273
|
$primary: map.get($theme, primary);
|
|
1274
|
+
$background: map.get($theme, background);
|
|
1275
|
+
$is-dark-theme: map.get($theme, is-dark);
|
|
1253
1276
|
|
|
1254
1277
|
ngx-material-timepicker-container ngx-material-timepicker-content {
|
|
1255
1278
|
.timepicker__header {
|
|
@@ -1257,10 +1280,11 @@ $layout-gutter-width-horizontal: 14px !default;
|
|
|
1257
1280
|
}
|
|
1258
1281
|
|
|
1259
1282
|
.clock-face {
|
|
1283
|
+
background-color: mat.get-color-from-palette($background, level-1);
|
|
1284
|
+
|
|
1260
1285
|
.clock-face__container {
|
|
1261
1286
|
.clock-face__number>span.active {
|
|
1262
1287
|
background-color: mat.get-color-from-palette($primary);
|
|
1263
|
-
color: #fff;
|
|
1264
1288
|
}
|
|
1265
1289
|
}
|
|
1266
1290
|
|
|
@@ -1281,6 +1305,14 @@ $layout-gutter-width-horizontal: 14px !default;
|
|
|
1281
1305
|
color: mat.get-color-from-palette($primary);
|
|
1282
1306
|
}
|
|
1283
1307
|
|
|
1308
|
+
.timepicker__actions {
|
|
1309
|
+
background-color: if($is-dark-theme, mat.get-color-from-palette($background, background), mat.get-color-from-palette($background, level-1)) !important;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.timepicker__body {
|
|
1313
|
+
background-color: if($is-dark-theme, mat.get-color-from-palette($background, background), mat.get-color-from-palette($background, level-1)) !important;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1284
1316
|
.timepicker-dial__control {
|
|
1285
1317
|
outline: none;
|
|
1286
1318
|
}
|
|
@@ -1371,7 +1403,7 @@ $layout-gutter-width-horizontal: 14px !default;
|
|
|
1371
1403
|
}
|
|
1372
1404
|
|
|
1373
1405
|
&.selected {
|
|
1374
|
-
background: mat.get-color-from-palette($
|
|
1406
|
+
background: mat.get-color-from-palette($background, hover, 0.12);
|
|
1375
1407
|
}
|
|
1376
1408
|
|
|
1377
1409
|
.mat-mdc-cell {
|
|
@@ -1453,7 +1485,8 @@ $layout-gutter-width-horizontal: 14px !default;
|
|
|
1453
1485
|
.o-table-quickfilter .quickFilter .mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-prefix div {
|
|
1454
1486
|
border-right: 1px solid mat.get-color-from-palette($foreground, divider);
|
|
1455
1487
|
}
|
|
1456
|
-
}
|
|
1488
|
+
}
|
|
1489
|
+
@mixin o-dialog-theme($theme-or-color-config) {
|
|
1457
1490
|
$theme: map.get($theme-or-color-config, color);
|
|
1458
1491
|
$background: map.get($theme, background);
|
|
1459
1492
|
$foreground: map.get($theme, foreground);
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
@use "sass:map";
|
|
3
3
|
@use 'fonts/poppins.scss';
|
|
4
4
|
@use 'styles/ontimize/variables.scss';
|
|
5
|
-
@use '@angular/material'as mat;
|
|
5
|
+
@use '@angular/material' as mat;
|
|
6
6
|
@use '@angular/cdk';
|
|
7
7
|
@use 'styles/ontimize/typography-ontimize.scss';
|
|
8
|
-
@use 'typography/ontimize.scss'as ontimize;
|
|
9
|
-
@use 'ontimize-style-v8.scss'as ontimize-style;
|
|
8
|
+
@use 'typography/ontimize.scss' as ontimize;
|
|
9
|
+
@use 'ontimize-style-v8.scss' as ontimize-style;
|
|
10
10
|
|
|
11
11
|
/*Sidenav background-color*/
|
|
12
12
|
$sidenav-background-color: #f5f5f5;
|
|
@@ -42,7 +42,8 @@ $sidenav-background-color: #f5f5f5;
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// Foreground palette for light themes.
|
|
45
|
-
$ontimize-light-theme-foreground: (
|
|
45
|
+
$ontimize-light-theme-foreground: (
|
|
46
|
+
base: rgba(black, 0.6),
|
|
46
47
|
divider: rgba(black, 0.12),
|
|
47
48
|
dividers: rgba(black, 0.12),
|
|
48
49
|
disabled: rgba(black, 0.38),
|
|
@@ -58,10 +59,12 @@ $ontimize-light-theme-foreground: (base: rgba(black, 0.6),
|
|
|
58
59
|
slider-min: rgba(black, 0.38),
|
|
59
60
|
slider-off: rgba(black, 0.38),
|
|
60
61
|
slider-off-active: rgba(black, 0.38),
|
|
61
|
-
button: rgba(black, 0.74)
|
|
62
|
+
button: rgba(black, 0.74)
|
|
63
|
+
);
|
|
62
64
|
|
|
63
65
|
// Foreground palette for dark themes.
|
|
64
|
-
$ontimize-dark-theme-foreground: (
|
|
66
|
+
$ontimize-dark-theme-foreground: (
|
|
67
|
+
base: rgba(white, 0.6),
|
|
65
68
|
divider: rgba(white, 0.12),
|
|
66
69
|
dividers: rgba(white, 0.12),
|
|
67
70
|
disabled: rgba(white, 0.38),
|
|
@@ -77,7 +80,8 @@ $ontimize-dark-theme-foreground: (base: rgba(white, 0.6),
|
|
|
77
80
|
slider-min: rgba(white, 0.38),
|
|
78
81
|
slider-off: rgba(white, 0.38),
|
|
79
82
|
slider-off-active: rgba(white, 0.38),
|
|
80
|
-
button: rgba(white, 0.74)
|
|
83
|
+
button: rgba(white, 0.74)
|
|
84
|
+
);
|
|
81
85
|
|
|
82
86
|
|
|
83
87
|
// Creates a container object for a light theme to be given to individual component theme mixins.
|
|
@@ -332,8 +336,6 @@ $ontimize-dark-theme-foreground: (base: rgba(white, 0.6),
|
|
|
332
336
|
$background-accent-button: if($is-dark-theme, transparent, #ffffff);
|
|
333
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));
|
|
334
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));
|
|
335
|
-
$table-row-over-background: if($is-dark-theme, #ffffff1f, #f5f5f5);
|
|
336
|
-
$table-row-selected-background: if($is-dark-theme, #f1f6fa80, #eaeaea);
|
|
337
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));
|
|
338
340
|
|
|
339
341
|
.o-app-header {
|
|
@@ -524,6 +526,13 @@ $ontimize-dark-theme-foreground: (base: rgba(white, 0.6),
|
|
|
524
526
|
|
|
525
527
|
}
|
|
526
528
|
|
|
529
|
+
.o-tree {
|
|
530
|
+
.selected-node {
|
|
531
|
+
color: mat.get-color-from-palette($primary, 500);
|
|
532
|
+
font-weight: 800;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
527
536
|
.o-table {
|
|
528
537
|
.o-table-quickfilter .quickFilter .mat-form-field .mat-mdc-text-field-wrapper .mat-form-field-flex .mat-form-field-prefix div {
|
|
529
538
|
border-color: mat.get-color-from-palette($foreground, text, 0.32);
|
|
@@ -535,34 +544,7 @@ $ontimize-dark-theme-foreground: (base: rgba(white, 0.6),
|
|
|
535
544
|
|
|
536
545
|
.mat-mdc-table {
|
|
537
546
|
.mat-mdc-row {
|
|
538
|
-
//TO BE DEFINED
|
|
539
|
-
// &.o-table-group-row-level-1 {
|
|
540
|
-
// font-weight: 900;
|
|
541
|
-
// background-color: if($is-dark-theme, #464646, #b2b2b2);
|
|
542
|
-
// }
|
|
543
|
-
|
|
544
|
-
// &.o-table-group-row-level-2 {
|
|
545
|
-
// font-weight: 800;
|
|
546
|
-
// background-color: if($is-dark-theme, #575757, #cccccc);
|
|
547
|
-
// }
|
|
548
|
-
|
|
549
|
-
// &.o-table-group-row-level-3 {
|
|
550
|
-
// font-weight: 700;
|
|
551
|
-
// background-color: if($is-dark-theme,#686868, #e8e8e8);
|
|
552
|
-
// }
|
|
553
|
-
|
|
554
|
-
// &.o-table-group-row-level-4 {
|
|
555
|
-
// font-weight: 600;
|
|
556
|
-
// background-color: if($is-dark-theme, #7a7a7a, #f9f9f9);
|
|
557
|
-
// }
|
|
558
|
-
&:hover:not(.o-table-group-row) {
|
|
559
|
-
cursor: pointer;
|
|
560
|
-
background-color: $table-row-over-background;
|
|
561
|
-
}
|
|
562
547
|
|
|
563
|
-
&.selected {
|
|
564
|
-
background-color: $table-row-selected-background;
|
|
565
|
-
}
|
|
566
548
|
|
|
567
549
|
.mat-mdc-cell {
|
|
568
550
|
color: mat.get-color-from-palette($foreground, base);
|
|
@@ -773,4 +755,4 @@ $ontimize-dark-theme-foreground: (base: rgba(white, 0.6),
|
|
|
773
755
|
border-radius: variables.$border-radius;
|
|
774
756
|
}
|
|
775
757
|
|
|
776
|
-
}
|
|
758
|
+
}
|