@sumaris-net/ngx-components 2.7.3-rc2 → 2.7.3-rc21
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/esm2022/src/app/admin/users/users.mjs +2 -2
- package/esm2022/src/app/core/account/account.page.mjs +1 -1
- package/esm2022/src/app/core/form/properties/properties.form.mjs +1 -1
- package/esm2022/src/app/core/form/properties/properties.table.mjs +1 -1
- package/esm2022/src/app/core/register/register.form.mjs +1 -1
- package/esm2022/src/app/core/settings/settings.page.mjs +1 -1
- package/esm2022/src/app/core/table/testing/table.testing.mjs +3 -3
- package/esm2022/src/app/shared/form/field.component.mjs +10 -7
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +9 -6
- package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +3 -3
- package/esm2022/src/app/shared/material/chips/material.chips.mjs +4 -4
- package/esm2022/src/app/shared/material/testing/common.test.mjs +3 -3
- package/fesm2022/sumaris-net.ngx-components.mjs +32 -26
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/form/field.component.d.ts +5 -3
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +1 -0
- package/src/app/shared/material/chips/material.chips.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
- package/src/theme/_material.scss +17 -1
- package/src/theme/_mixins.scss +1 -1
- package/src/theme/_ngx-components.scss +90 -185
- package/src/theme/_ngx-components.table.scss +39 -105
- package/src/theme/_ngx-components.tabs.scss +3 -327
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@angular/forms';
|
|
3
|
-
import { DisplayFn, FormFieldDefinition, FormFieldType
|
|
3
|
+
import { AppFloatLabelType, DisplayFn, FormFieldDefinition, FormFieldType } from './field.model';
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { filterNumberInput, selectInputContent } from '../inputs';
|
|
6
6
|
import { Property } from '../types';
|
|
7
7
|
import { ThemePalette } from '@angular/material/core';
|
|
8
8
|
import { PredefinedColors } from '@ionic/core';
|
|
9
9
|
import { MatAutocompleteField } from '../material/autocomplete/material.autocomplete';
|
|
10
|
+
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
12
13
|
protected translate: TranslateService;
|
|
@@ -29,12 +30,13 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
29
30
|
placeholder: string;
|
|
30
31
|
compact: boolean;
|
|
31
32
|
floatLabel: AppFloatLabelType;
|
|
33
|
+
appearance: MatFormFieldAppearance;
|
|
32
34
|
tabindex: number;
|
|
33
35
|
autofocus: boolean;
|
|
34
36
|
clearable: boolean;
|
|
35
37
|
chipColor: ThemePalette | PredefinedColors;
|
|
36
|
-
debug: boolean;
|
|
37
38
|
classList: string;
|
|
39
|
+
debug: boolean;
|
|
38
40
|
onKeyupEnter: EventEmitter<any>;
|
|
39
41
|
get value(): any;
|
|
40
42
|
matInput: ElementRef;
|
|
@@ -67,5 +69,5 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
67
69
|
}): void;
|
|
68
70
|
protected updateTabIndex(timeout?: number): void;
|
|
69
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppFormField, [null, null, null, { optional: true; }]>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": { "alias": "definition"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": { "alias": "definition"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; }, { "onKeyupEnter": "keyup.enter"; }, never, ["[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]"], false, never>;
|
|
71
73
|
}
|
|
@@ -112,6 +112,7 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
112
112
|
filterInputTextFocusEvent(event: FocusEvent): boolean;
|
|
113
113
|
protected filterInputTextBlurEvent(event: FocusEvent): void;
|
|
114
114
|
protected ionSearchBarChanged(event: Event): void;
|
|
115
|
+
ionSearchBarChanged1(event: any): void;
|
|
115
116
|
filterMatSelectFocusEvent(event: FocusEvent): void;
|
|
116
117
|
filterMatSelectBlurEvent(event: FocusEvent): boolean;
|
|
117
118
|
clearValue(event?: Event): void;
|
|
@@ -3,7 +3,7 @@ import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@a
|
|
|
3
3
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
4
|
import { InputElement } from '../../inputs';
|
|
5
5
|
import { SuggestFn } from '../../services/entity-service.class';
|
|
6
|
-
import { DisplayFn, EqualsFn
|
|
6
|
+
import { AppFloatLabelType, DisplayFn, EqualsFn } from '../../form/field.model';
|
|
7
7
|
import { ThemePalette } from '@angular/material/core';
|
|
8
8
|
import { MatAutocompleteFieldConfig } from '../autocomplete/material.autocomplete.config';
|
|
9
9
|
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
package/src/assets/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ngx-sumaris-components",
|
|
3
3
|
"short_name": "ngx-sumaris-components",
|
|
4
4
|
"manifest_version": 1,
|
|
5
|
-
"version": "2.7.3-
|
|
5
|
+
"version": "2.7.3-rc21",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|
package/src/theme/_material.scss
CHANGED
|
@@ -50,8 +50,24 @@
|
|
|
50
50
|
--mdc-typography-button-letter-spacing: normal;
|
|
51
51
|
--mdc-text-button-label-text-tracking: normal;
|
|
52
52
|
}
|
|
53
|
+
.mat-mdc-menu-item {
|
|
54
|
+
--mat-menu-item-label-text-tracking: normal;
|
|
55
|
+
--mat-menu-item-label-text-size: 14px;
|
|
56
|
+
--mat-menu-item-icon-color: #0000008a;
|
|
57
|
+
}
|
|
58
|
+
.mat-mdc-option {
|
|
59
|
+
--mat-option-label-text-tracking: normal;
|
|
60
|
+
--mat-option-label-text-size: 16px;
|
|
61
|
+
}
|
|
62
|
+
.mat-mdc-select {
|
|
63
|
+
--mat-select-trigger-text-font: inherit;
|
|
64
|
+
--mat-select-trigger-text-tracking: normal;
|
|
65
|
+
--mat-select-trigger-text-size: inherit;
|
|
66
|
+
--mat-select-disabled-trigger-text-color: inherit;
|
|
67
|
+
--mat-select-trigger-text-line-height: inherit;
|
|
68
|
+
}
|
|
53
69
|
|
|
54
|
-
// Badge
|
|
70
|
+
// Badge
|
|
55
71
|
.mdc-tab .mat-badge-content {
|
|
56
72
|
padding-left: 2px;
|
|
57
73
|
}
|
package/src/theme/_mixins.scss
CHANGED
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
|
|
109
109
|
--app-table-header-height: #{$app-table-header-height};
|
|
110
110
|
--app-toolbar-height: #{$app-toolbar-height};
|
|
111
|
-
|
|
111
|
+
--app-paginator-height: #{$app-paginator-height};
|
|
112
112
|
--app-form-buttons-bar-height: #{$app-form-buttons-bar-height};
|
|
113
113
|
--app-footer-height: var(--app-form-buttons-bar-height);
|
|
114
114
|
--mat-tab-link-height: #{$mat-tab-link-height};
|
|
@@ -132,18 +132,29 @@ ion-menu.menu-side-left {
|
|
|
132
132
|
.form-container,
|
|
133
133
|
form.form-container {
|
|
134
134
|
color: #{$app-form-color};
|
|
135
|
+
@include font-size(16px);
|
|
136
|
+
|
|
135
137
|
--mdc-filled-text-field-container-color: #{$app-form-field-background-color};
|
|
136
138
|
--mdc-filled-text-field-disabled-container-color: #{$app-form-field-background-color};
|
|
137
139
|
--mat-form-field-state-layer-color: #{$app-form-field-focus-background-color};
|
|
138
|
-
|
|
140
|
+
--mat-form-field-container-height: 45px;
|
|
141
|
+
--mat-form-field-container-text-size: inherit;
|
|
142
|
+
--mat-form-field-filled-label-display: block;
|
|
143
|
+
--mat-form-field-container-vertical-padding: 8px;
|
|
144
|
+
--mat-form-field-filled-with-label-container-padding-top: 16px;
|
|
145
|
+
--mat-form-field-filled-with-label-container-padding-bottom: 0px;
|
|
146
|
+
--mdc-filled-text-field-label-text-tracking: normal;
|
|
147
|
+
--mat-select-trigger-text-size: var(--mat-form-field-container-text-size);
|
|
148
|
+
|
|
139
149
|
|
|
140
150
|
.mat-form-field-disabled,
|
|
141
151
|
.mat-mdc-input-element:disabled {
|
|
142
152
|
color: #{$app-form-color-disabled} !important;
|
|
143
153
|
}
|
|
144
154
|
|
|
155
|
+
// TODO BLA: voir si utile ?
|
|
145
156
|
.mat-form-field-disabled {
|
|
146
|
-
.mat-mdc-form-field-infix{
|
|
157
|
+
.mat-mdc-form-field-infix {
|
|
147
158
|
min-height: 41px;
|
|
148
159
|
}
|
|
149
160
|
}
|
|
@@ -166,15 +177,17 @@ form.form-container {
|
|
|
166
177
|
mat-icon[matPrefix],
|
|
167
178
|
.mat-mdc-form-field-icon-prefix {
|
|
168
179
|
|
|
180
|
+
--mdc-icon-button-icon-size: calculateRem(24px);
|
|
181
|
+
--mdc-icon-button-state-layer-size: calculateRem(48px);
|
|
182
|
+
--mdc-icon-button-margin-vertical: calc((var(--mdc-icon-button-state-layer-size) - var(--mdc-icon-button-state-layer-size)) / 2);
|
|
183
|
+
|
|
169
184
|
ion-icon, .mat-icon {
|
|
170
|
-
|
|
171
|
-
$margin-vertical: calculateRem(4px);
|
|
172
|
-
font-size: $font-size !important;
|
|
185
|
+
font-size: var(--mdc-icon-button-icon-size) !important;
|
|
173
186
|
line-height: 1.125;
|
|
174
|
-
height:
|
|
175
|
-
width:
|
|
176
|
-
margin-left:
|
|
177
|
-
margin-right:
|
|
187
|
+
height: var(--mdc-icon-button-icon-size);
|
|
188
|
+
width: var(--mdc-icon-button-icon-size);
|
|
189
|
+
margin-left: var(--mdc-icon-button-margin-vertical);
|
|
190
|
+
margin-right: var(--mdc-icon-button-margin-vertical);
|
|
178
191
|
position: relative;
|
|
179
192
|
}
|
|
180
193
|
}
|
|
@@ -183,15 +196,24 @@ form.form-container {
|
|
|
183
196
|
mat-icon[matSuffix],
|
|
184
197
|
.mat-mdc-form-field-icon-suffix {
|
|
185
198
|
white-space: nowrap;
|
|
199
|
+
align-self: baseline;
|
|
186
200
|
|
|
187
201
|
.mat-mdc-icon-button {
|
|
188
|
-
--mdc-icon-button-
|
|
189
|
-
--mdc-icon-button-
|
|
190
|
-
|
|
202
|
+
--mdc-icon-button-state-layer-size: 22px;
|
|
203
|
+
--mdc-icon-button-padding: 4px;
|
|
204
|
+
--mdc-icon-button-icon-size: 14px;
|
|
205
|
+
padding: var(--mdc-icon-button-padding);
|
|
191
206
|
|
|
192
|
-
|
|
207
|
+
&.large {
|
|
208
|
+
--mdc-icon-button-state-layer-size: 48px;
|
|
209
|
+
--mdc-icon-button-padding: 12px;
|
|
210
|
+
--mdc-icon-button-icon-size: 24px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
ion-icon, .mat-icon {
|
|
214
|
+
height: var(--mdc-icon-button-icon-size);
|
|
215
|
+
width: var(--mdc-icon-button-icon-size);
|
|
193
216
|
font-size: var(--mdc-icon-button-icon-size);
|
|
194
|
-
line-height: var(--mdc-icon-button-icon-size);
|
|
195
217
|
}
|
|
196
218
|
|
|
197
219
|
.mat-mdc-button-touch-target {
|
|
@@ -202,7 +224,7 @@ form.form-container {
|
|
|
202
224
|
ion-icon, .mat-icon {
|
|
203
225
|
|
|
204
226
|
&.large {
|
|
205
|
-
$font-size: calculateRem(
|
|
227
|
+
$font-size: calculateRem(14px);
|
|
206
228
|
font-size: $font-size;
|
|
207
229
|
line-height: 1.125;
|
|
208
230
|
}
|
|
@@ -253,12 +275,12 @@ form.form-container {
|
|
|
253
275
|
/* -- Computed field -- */
|
|
254
276
|
|
|
255
277
|
// Set color on computed field (if enable or disable)
|
|
256
|
-
.computed mat-mdc-form-field,
|
|
257
|
-
mat-mdc-form-field .computed,
|
|
258
|
-
mat-mdc-form-field.computed,
|
|
259
|
-
.computed mat-mdc-form-field .mat-mdc-input-element:disabled,
|
|
260
|
-
mat-mdc-form-field .computed .mat-mdc-input-element:disabled,
|
|
261
|
-
mat-mdc-form-field.computed .mat-mdc-input-element:disabled {
|
|
278
|
+
.computed .mat-mdc-form-field,
|
|
279
|
+
.mat-mdc-form-field .computed,
|
|
280
|
+
.mat-mdc-form-field.computed,
|
|
281
|
+
.computed .mat-mdc-form-field .mat-mdc-input-element:disabled,
|
|
282
|
+
.mat-mdc-form-field .computed .mat-mdc-input-element:disabled,
|
|
283
|
+
.mat-mdc-form-field.computed .mat-mdc-input-element:disabled {
|
|
262
284
|
color: var(--ion-color-primary-tint) !important;
|
|
263
285
|
font-style: italic;
|
|
264
286
|
}
|
|
@@ -300,9 +322,6 @@ ion-grid.form-container {
|
|
|
300
322
|
}
|
|
301
323
|
|
|
302
324
|
mat-form-field {
|
|
303
|
-
//mat-error {
|
|
304
|
-
// text-align: right;
|
|
305
|
-
//}
|
|
306
325
|
|
|
307
326
|
.mat-paginator-page-size-select {
|
|
308
327
|
@include font-size-important(14px);
|
|
@@ -351,12 +370,6 @@ mat-option {
|
|
|
351
370
|
flex-grow: 1;
|
|
352
371
|
}
|
|
353
372
|
.mat-option-text:not(:has(ion-row)),
|
|
354
|
-
|
|
355
|
-
// TODO : Disabled : mat-option already have padding : this is redundant
|
|
356
|
-
//.mdc-list-item__primary-text:not(:has(ion-row)) {
|
|
357
|
-
// padding: 0 16px;
|
|
358
|
-
//}
|
|
359
|
-
|
|
360
373
|
.mat-option-text:has(ion-searchbar),
|
|
361
374
|
.mdc-list-item__primary-text:has(ion-searchbar) {
|
|
362
375
|
padding: 0 !important;
|
|
@@ -384,191 +397,74 @@ mat-option:not(:last-of-type) {
|
|
|
384
397
|
min-width: var(--min-width) !important;
|
|
385
398
|
max-width: var(--max-width) !important;
|
|
386
399
|
}
|
|
387
|
-
.mat-autocomplete-panel {
|
|
388
|
-
--min-width:
|
|
400
|
+
.mat-mdc-autocomplete-panel {
|
|
401
|
+
--min-width: 200px;
|
|
389
402
|
--max-width: calc(min(100%, 100vw - 64px));
|
|
390
403
|
min-width: var(--min-width) !important;
|
|
391
404
|
max-width: var(--max-width) !important;
|
|
392
405
|
width: var(--max-width) !important;
|
|
393
406
|
}
|
|
394
407
|
|
|
395
|
-
.mat-autocomplete-panel-medium-size .mat-autocomplete-panel,
|
|
396
|
-
.mat-autocomplete-panel-medium-size.mat-autocomplete-panel,
|
|
397
|
-
.min-width-medium .mat-autocomplete-panel,
|
|
398
|
-
.min-width-medium.mat-autocomplete-panel
|
|
408
|
+
.mat-mdc-autocomplete-panel-medium-size .mat-mdc-autocomplete-panel,
|
|
409
|
+
.mat-mdc-autocomplete-panel-medium-size.mat-mdc-autocomplete-panel,
|
|
410
|
+
.min-width-medium .mat-mdc-autocomplete-panel,
|
|
411
|
+
.min-width-medium.mat-mdc-autocomplete-panel,
|
|
412
|
+
.min-width-medium.mat-mdc-select-panel {
|
|
399
413
|
--min-width: 300px;
|
|
400
414
|
}
|
|
401
|
-
.mat-autocomplete-panel-large-size .mat-autocomplete-panel,
|
|
402
|
-
.mat-autocomplete-panel.mat-autocomplete-panel-large-size,
|
|
403
|
-
.min-width-large .mat-autocomplete-panel,
|
|
404
|
-
.min-width-large.mat-autocomplete-panel
|
|
415
|
+
.mat-mdc-autocomplete-panel-large-size .mat-mdc-autocomplete-panel,
|
|
416
|
+
.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-panel-large-size,
|
|
417
|
+
.min-width-large .mat-mdc-autocomplete-panel,
|
|
418
|
+
.min-width-large.mat-mdc-autocomplete-panel,
|
|
419
|
+
.min-width-large.mat-mdc-select-panel{
|
|
405
420
|
--min-width: 400px;
|
|
406
421
|
}
|
|
407
|
-
.mat-autocomplete-panel-xlarge-size .mat-autocomplete-panel,
|
|
408
|
-
.mat-autocomplete-panel-xlarge-size.mat-autocomplete-panel
|
|
422
|
+
.mat-mdc-autocomplete-panel-xlarge-size .mat-mdc-autocomplete-panel,
|
|
423
|
+
.mat-mdc-autocomplete-panel-xlarge-size.mat-mdc-autocomplete-panel,
|
|
424
|
+
.mat-mdc-autocomplete-panel-xlarge-size.mat-mdc-select-panel {
|
|
409
425
|
--min-width: 450px;
|
|
410
426
|
}
|
|
411
427
|
.mat-select-panel.min-width-80vw,
|
|
412
428
|
.mat-mdc-select-panel.min-width-80vw,
|
|
413
|
-
.min-width-80vw .mat-autocomplete-panel,
|
|
414
|
-
.min-width-80vw.mat-autocomplete-panel {
|
|
429
|
+
.min-width-80vw .mat-mdc-autocomplete-panel,
|
|
430
|
+
.min-width-80vw.mat-mdc-autocomplete-panel {
|
|
415
431
|
--min-width: 80vw;
|
|
416
432
|
}
|
|
417
433
|
|
|
418
|
-
.mat-autocomplete-panel-center .mat-autocomplete-panel,
|
|
419
|
-
.mat-autocomplete-panel-center.mat-autocomplete-panel {
|
|
434
|
+
.mat-mdc-autocomplete-panel-center .mat-mdc-autocomplete-panel,
|
|
435
|
+
.mat-mdc-autocomplete-panel-center.mat-mdc-autocomplete-panel {
|
|
420
436
|
margin-left: calc(var(--min-width, 200px) / -2 + 50%) !important;
|
|
421
437
|
}
|
|
422
438
|
|
|
423
|
-
.mat-autocomplete-panel-full-size .mat-autocomplete-panel,
|
|
424
|
-
.mat-autocomplete-panel-full-size.mat-autocomplete-panel {
|
|
439
|
+
.mat-mdc-autocomplete-panel-full-size .mat-mdc-autocomplete-panel,
|
|
440
|
+
.mat-mdc-autocomplete-panel-full-size.mat-mdc-autocomplete-panel {
|
|
425
441
|
--min-width: calc(100vw - 64px);
|
|
426
442
|
--max-width: calc(100vw - 64px);
|
|
427
443
|
position: fixed;
|
|
428
444
|
left: 32px;
|
|
429
445
|
}
|
|
430
446
|
|
|
431
|
-
.mat-select-panel,
|
|
432
447
|
.mat-mdc-select-panel,
|
|
433
|
-
.mat-autocomplete-panel {
|
|
448
|
+
.mat-mdc-autocomplete-panel {
|
|
434
449
|
/* when multiple selection enable */
|
|
435
450
|
mat-pseudo-checkbox {
|
|
436
451
|
margin-left: 8px;
|
|
437
452
|
}
|
|
453
|
+
|
|
454
|
+
padding: 0 !important;
|
|
438
455
|
}
|
|
439
456
|
|
|
440
457
|
ion-list,
|
|
441
|
-
.mat-
|
|
442
|
-
.mat-menu-panel,
|
|
443
|
-
.mat-autocomplete-panel {
|
|
444
|
-
|
|
458
|
+
.mat-mdc-menu-panel {
|
|
445
459
|
&.ion-list-popover {
|
|
446
460
|
padding: 0 !important;
|
|
447
461
|
}
|
|
448
|
-
|
|
449
|
-
/* Avoid bad display, when opening panel for the first time */
|
|
450
|
-
&.ng-trigger-transformPanel {
|
|
451
|
-
ion-searchbar.mat-select-header,
|
|
452
|
-
ion-searchbar.mat-autocomplete-header {
|
|
453
|
-
visibility: visible;
|
|
454
|
-
display: flex;
|
|
455
|
-
opacity: 1;
|
|
456
|
-
transition: opacity 0.3s ease-in-out;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
mat-option.mat-select-searchbar,
|
|
461
|
-
mat-option.mat-autocomplete-searchbar
|
|
462
|
-
{
|
|
463
|
-
padding: 0 !important;
|
|
464
|
-
height: 58px !important;
|
|
465
|
-
background-color: var(--ion-color-secondary100) !important;
|
|
466
|
-
|
|
467
|
-
/* hide pseudo checkbox, in the searchbar*/
|
|
468
|
-
mat-pseudo-checkbox {
|
|
469
|
-
visibility: hidden;
|
|
470
|
-
display: none;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
&.mat-select-searchbar-sticky {
|
|
474
|
-
z-index: 1001;
|
|
475
|
-
/* Set header as sticky*/
|
|
476
|
-
position: -webkit-sticky;
|
|
477
|
-
position: sticky;
|
|
478
|
-
top: 0;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
ion-row.ion-list-header,
|
|
483
|
-
ion-row.mat-select-header,
|
|
484
|
-
ion-row.mat-menu-header,
|
|
485
|
-
ion-row.mat-autocomplete-header {
|
|
486
|
-
&.multiple {
|
|
487
|
-
/* Offset due to mat-pseudo-checkbox */
|
|
488
|
-
padding-left: 32px;
|
|
489
|
-
}
|
|
490
|
-
&.column {
|
|
491
|
-
/* Set header as sticky*/
|
|
492
|
-
position: -webkit-sticky;
|
|
493
|
-
position: sticky;
|
|
494
|
-
top: 0;
|
|
495
|
-
z-index: 1001;
|
|
496
|
-
background-color: var(--ion-color-secondary);
|
|
497
|
-
border-bottom: 1px solid #{$app-select-option-border-color};
|
|
498
|
-
color: var(--ion-color-secondary-contrast);
|
|
499
|
-
line-height: 20px;
|
|
500
|
-
@include font-size(12px);
|
|
501
|
-
font-weight: 500;
|
|
502
|
-
height: 20px;
|
|
503
|
-
ion-col {
|
|
504
|
-
white-space: nowrap;
|
|
505
|
-
text-overflow: ellipsis;
|
|
506
|
-
}
|
|
507
|
-
&.mat-select-searchbar-sticky {
|
|
508
|
-
/* offset because of the searchbar height */
|
|
509
|
-
top: 58px;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
ion-row.ion-list-footer,
|
|
516
|
-
ion-row.mat-select-footer,
|
|
517
|
-
ion-row.mat-menu-footer,
|
|
518
|
-
ion-row.mat-autocomplete-footer,
|
|
519
|
-
mat-option.mat-autocomplete-footer {
|
|
520
|
-
/* Set footer as sticky*/
|
|
521
|
-
position: -webkit-sticky;
|
|
522
|
-
position: sticky;
|
|
523
|
-
bottom: 0;
|
|
524
|
-
z-index: 1001;
|
|
525
|
-
border-top: 1px solid #{$app-select-option-border-color};
|
|
526
|
-
background-color: whitesmoke;
|
|
527
|
-
color: var(--ion-color-medium);
|
|
528
|
-
@include font-size(12px);
|
|
529
|
-
font-weight: 500;
|
|
530
|
-
height: 20px;
|
|
531
|
-
line-height: 20px;
|
|
532
|
-
|
|
533
|
-
ion-col {
|
|
534
|
-
white-space: nowrap;
|
|
535
|
-
text-overflow: ellipsis;
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
ion-row {
|
|
540
|
-
--ion-grid-column-padding: 0;
|
|
541
|
-
|
|
542
|
-
ion-col {
|
|
543
|
-
--ion-padding-start: 8px;
|
|
544
|
-
padding: 0 !important;
|
|
545
|
-
padding-left: var(--ion-padding-start) !important;
|
|
546
|
-
text-overflow: ellipsis;
|
|
547
|
-
overflow: hidden;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
.odd {
|
|
554
|
-
background: var(--ion-light-color-shade, $light);
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
.mat-option[no-padding],
|
|
558
|
-
mat-option[no-padding] {
|
|
559
|
-
padding: 0 !important;
|
|
560
|
-
}
|
|
561
462
|
}
|
|
562
463
|
|
|
464
|
+
ion-list,
|
|
465
|
+
.mat-mdc-menu-panel,
|
|
563
466
|
.mat-mdc-select-panel,
|
|
564
|
-
.mat-mdc-autocomplete-panel
|
|
565
|
-
//ion-list,
|
|
566
|
-
//.mat-menu-panel,
|
|
567
|
-
{
|
|
568
|
-
|
|
569
|
-
//&.ion-list-popover {
|
|
570
|
-
padding: 0 !important;
|
|
571
|
-
//}
|
|
467
|
+
.mat-mdc-autocomplete-panel {
|
|
572
468
|
|
|
573
469
|
/* Avoid bad display, when opening panel for the first time */
|
|
574
470
|
&.ng-trigger-transformPanel {
|
|
@@ -581,12 +477,19 @@ ion-list,
|
|
|
581
477
|
}
|
|
582
478
|
}
|
|
583
479
|
|
|
584
|
-
mat-
|
|
585
|
-
mat-option.mat-autocomplete-searchbar
|
|
480
|
+
.mat-mdc-optgroup.mat-select-searchbar,
|
|
481
|
+
.mat-mdc-option.mat-autocomplete-searchbar
|
|
586
482
|
{
|
|
587
483
|
padding: 0 !important;
|
|
588
484
|
height: 58px !important;
|
|
589
485
|
background-color: var(--ion-color-secondary100) !important;
|
|
486
|
+
pointer-events: inherit !important;
|
|
487
|
+
|
|
488
|
+
.mat-mdc-optgroup-label {
|
|
489
|
+
background-color: var(--ion-color-secondary100) !important;
|
|
490
|
+
padding: 0;
|
|
491
|
+
display: block;
|
|
492
|
+
}
|
|
590
493
|
|
|
591
494
|
/* hide pseudo checkbox, in the searchbar*/
|
|
592
495
|
mat-pseudo-checkbox {
|
|
@@ -671,6 +574,7 @@ ion-list,
|
|
|
671
574
|
padding-left: var(--ion-padding-start) !important;
|
|
672
575
|
text-overflow: ellipsis;
|
|
673
576
|
overflow: hidden;
|
|
577
|
+
white-space: nowrap;
|
|
674
578
|
}
|
|
675
579
|
|
|
676
580
|
|
|
@@ -680,12 +584,13 @@ ion-list,
|
|
|
680
584
|
background: var(--ion-light-color-shade, $light);
|
|
681
585
|
}
|
|
682
586
|
|
|
683
|
-
.mat-option[no-padding],
|
|
587
|
+
.mat-mdc-option[no-padding],
|
|
684
588
|
mat-option[no-padding] {
|
|
685
589
|
padding: 0 !important;
|
|
686
590
|
}
|
|
687
591
|
}
|
|
688
592
|
|
|
593
|
+
|
|
689
594
|
mat-expansion-panel {
|
|
690
595
|
|
|
691
596
|
&.filter-panel {
|
|
@@ -843,7 +748,7 @@ mat-button-toggle.mat-button-toggle-checked.mat-button-toggle-disabled {
|
|
|
843
748
|
// --------------------------------------------------
|
|
844
749
|
|
|
845
750
|
|
|
846
|
-
.mat-menu-panel {
|
|
751
|
+
.mat-mdc-menu-panel {
|
|
847
752
|
|
|
848
753
|
// Max width = 400px
|
|
849
754
|
&.mat-menu-size-400 {
|
|
@@ -860,31 +765,31 @@ mat-button-toggle.mat-button-toggle-checked.mat-button-toggle-disabled {
|
|
|
860
765
|
|
|
861
766
|
// No padding
|
|
862
767
|
&.ion-no-padding {
|
|
863
|
-
.mat-menu-content {
|
|
768
|
+
.mat-mdc-menu-content {
|
|
864
769
|
padding: 0 !important;
|
|
865
770
|
}
|
|
866
771
|
}
|
|
867
772
|
|
|
868
773
|
// Small menu item (e.g. for actions on a table row)
|
|
869
|
-
&.mat-menu-small-
|
|
870
|
-
.mat-menu-item.mat-menu-item-small-height
|
|
774
|
+
&.mat-mdc-menu-item-small-height .mat-mdc-menu-item,
|
|
775
|
+
.mat-mdc-menu-item.mat-mdc-menu-item-small-height
|
|
871
776
|
{
|
|
872
777
|
padding: 0 8px;
|
|
873
778
|
height: 35px;
|
|
874
779
|
line-height: 35px;
|
|
875
780
|
}
|
|
876
781
|
// Reduce the font size, on label just inside a mat-menu (e.g. see trips.page.html)
|
|
877
|
-
.mat-menu-content > ion-label {
|
|
782
|
+
.mat-mdc-menu-content > ion-label {
|
|
878
783
|
@include font-size(12px);
|
|
879
784
|
}
|
|
880
785
|
|
|
881
|
-
.mat-menu-content ion-item > ion-icon[slot="start"] {
|
|
786
|
+
.mat-mdc-menu-content ion-item > ion-icon[slot="start"] {
|
|
882
787
|
margin-right: 16px;
|
|
883
788
|
vertical-align: middle;
|
|
884
789
|
}
|
|
885
790
|
|
|
886
791
|
// Menu title (e.g. see extraction map)
|
|
887
|
-
.mat-menu-item.mat-menu-title {
|
|
792
|
+
.mat-mdc-menu-item.mat-mdc-menu-title {
|
|
888
793
|
padding: 0 8px;
|
|
889
794
|
height: 27px;
|
|
890
795
|
line-height: 27px;
|