ontimize-web-ngx 15.0.4 → 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.
Files changed (85) hide show
  1. package/esm2020/lib/components/app-sidenav/menu-group/o-app-sidenav-menu-group.component.mjs +3 -3
  2. package/esm2020/lib/components/app-sidenav/o-app-sidenav.component.mjs +15 -13
  3. package/esm2020/lib/components/bar-menu/menu-nested/o-bar-menu-nested.component.mjs +3 -3
  4. package/esm2020/lib/components/bar-menu/o-bar-menu.component.mjs +10 -1
  5. package/esm2020/lib/components/button/o-button.component.mjs +27 -11
  6. package/esm2020/lib/components/form/index.mjs +2 -1
  7. package/esm2020/lib/components/form/o-form-tokens.mjs +3 -0
  8. package/esm2020/lib/components/form/o-form.component.mjs +42 -15
  9. package/esm2020/lib/components/grid/o-grid.component.mjs +7 -3
  10. package/esm2020/lib/components/input/combo/combo-search/o-combo-search.component.mjs +4 -1
  11. package/esm2020/lib/components/input/combo/o-combo.component.mjs +10 -3
  12. package/esm2020/lib/components/list/o-list.component.mjs +8 -4
  13. package/esm2020/lib/components/list/renderers/o-list-item-text-renderer.class.mjs +13 -4
  14. package/esm2020/lib/components/o-service-base-component.class.mjs +11 -5
  15. package/esm2020/lib/components/o-service-component.class.mjs +64 -1
  16. package/esm2020/lib/components/table/column/cell-editor/real/o-table-cell-editor-real.component.mjs +2 -2
  17. package/esm2020/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column-data-dialog.component.mjs +2 -4
  18. package/esm2020/lib/components/table/extensions/skeleton/o-table-skeleton.component.mjs +8 -7
  19. package/esm2020/lib/components/table/extensions/sort/o-mat-sort.mjs +2 -4
  20. package/esm2020/lib/components/table/o-table.component.mjs +27 -11
  21. package/esm2020/lib/components/tree/o-tree.component.mjs +7 -3
  22. package/esm2020/lib/interfaces/app-menu.interface.mjs +1 -1
  23. package/esm2020/lib/interfaces/service-data-component.interface.mjs +1 -1
  24. package/esm2020/lib/layouts/app-layout/o-app-layout.component.mjs +1 -1
  25. package/esm2020/lib/layouts/form-layout/o-form-layout-manager.component.mjs +17 -1
  26. package/esm2020/lib/services/app-menu.service.mjs +36 -2
  27. package/esm2020/lib/services/o-auth.service.mjs +7 -1
  28. package/esm2020/lib/services/permissions/permissions.service.mjs +40 -6
  29. package/esm2020/lib/types/form/index.mjs +2 -0
  30. package/esm2020/lib/types/form/o-form-global-config.type.mjs +2 -0
  31. package/esm2020/lib/types/index.mjs +3 -1
  32. package/esm2020/lib/types/o-component-permissions-by-route.type.mjs +2 -0
  33. package/esm2020/lib/types/o-form-permissions.type.mjs +1 -1
  34. package/esm2020/lib/types/o-global-config.type.mjs +3 -0
  35. package/esm2020/lib/types/o-grid-permissions.type.mjs +2 -0
  36. package/esm2020/lib/types/o-list-permissions.type.mjs +2 -0
  37. package/esm2020/lib/types/o-service-base-permissions.type.mjs +2 -0
  38. package/esm2020/lib/types/o-tree-permissions.type.mjs +2 -0
  39. package/esm2020/lib/types/table/o-table-global-config.type.mjs +1 -1
  40. package/esm2020/lib/types/table/o-table-permissions.type.mjs +1 -1
  41. package/esm2020/lib/util/codes.mjs +9 -1
  42. package/esm2020/lib/util/util.mjs +16 -1
  43. package/fesm2015/ontimize-web-ngx.mjs +1284 -1012
  44. package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
  45. package/fesm2020/ontimize-web-ngx.mjs +1283 -1012
  46. package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
  47. package/lib/components/app-sidenav/o-app-sidenav.component.d.ts +4 -4
  48. package/lib/components/bar-menu/o-bar-menu.component.d.ts +4 -0
  49. package/lib/components/button/o-button.component.d.ts +11 -2
  50. package/lib/components/form/index.d.ts +1 -0
  51. package/lib/components/form/o-form-tokens.d.ts +3 -0
  52. package/lib/components/form/o-form.component.d.ts +11 -4
  53. package/lib/components/grid/o-grid.component.d.ts +4 -0
  54. package/lib/components/input/combo/combo-search/o-combo-search.component.d.ts +1 -0
  55. package/lib/components/input/combo/o-combo.component.d.ts +2 -0
  56. package/lib/components/list/o-list.component.d.ts +4 -0
  57. package/lib/components/list/renderers/o-list-item-text-renderer.class.d.ts +4 -1
  58. package/lib/components/o-service-base-component.class.d.ts +2 -0
  59. package/lib/components/o-service-component.class.d.ts +11 -0
  60. package/lib/components/table/extensions/skeleton/o-table-skeleton.component.d.ts +1 -1
  61. package/lib/components/table/o-table.component.d.ts +3 -3
  62. package/lib/components/tree/o-tree.component.d.ts +4 -0
  63. package/lib/interfaces/app-menu.interface.d.ts +1 -0
  64. package/lib/interfaces/service-data-component.interface.d.ts +1 -0
  65. package/lib/layouts/form-layout/o-form-layout-manager.component.d.ts +1 -0
  66. package/lib/services/app-menu.service.d.ts +7 -1
  67. package/lib/services/o-auth.service.d.ts +1 -0
  68. package/lib/services/permissions/permissions.service.d.ts +14 -3
  69. package/lib/types/form/index.d.ts +1 -0
  70. package/lib/types/form/o-form-global-config.type.d.ts +3 -0
  71. package/lib/types/index.d.ts +2 -0
  72. package/lib/types/o-component-permissions-by-route.type.d.ts +5 -0
  73. package/lib/types/o-form-permissions.type.d.ts +2 -7
  74. package/lib/types/o-global-config.type.d.ts +5 -0
  75. package/lib/types/o-grid-permissions.type.d.ts +2 -0
  76. package/lib/types/o-list-permissions.type.d.ts +2 -0
  77. package/lib/types/o-service-base-permissions.type.d.ts +7 -0
  78. package/lib/types/o-tree-permissions.type.d.ts +2 -0
  79. package/lib/types/table/o-table-global-config.type.d.ts +5 -0
  80. package/lib/types/table/o-table-permissions.type.d.ts +2 -4
  81. package/lib/util/codes.d.ts +8 -1
  82. package/lib/util/util.d.ts +2 -0
  83. package/package.json +1 -1
  84. package/theme.scss +72 -71
  85. package/theming/ontimize-style.scss +1 -30
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",
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-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) {
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-breadcrumb-theme($theme-or-color-config) {
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($primary, 50, if($is-dark-theme, 0.5, 1));
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
- }@mixin o-dialog-theme($theme-or-color-config) {
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
+ }