@sumaris-net/ngx-components 2.7.3-rc2 → 2.7.3-rc4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "2.7.3-rc2",
4
+ "version": "2.7.3-rc4",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -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, AppFloatLabelType } from '../../form/field.model';
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';
@@ -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-rc2",
5
+ "version": "2.7.3-rc4",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -384,191 +384,74 @@ mat-option:not(:last-of-type) {
384
384
  min-width: var(--min-width) !important;
385
385
  max-width: var(--max-width) !important;
386
386
  }
387
- .mat-autocomplete-panel {
388
- --min-width: 250px;
387
+ .mat-mdc-autocomplete-panel {
388
+ --min-width: 200px;
389
389
  --max-width: calc(min(100%, 100vw - 64px));
390
390
  min-width: var(--min-width) !important;
391
391
  max-width: var(--max-width) !important;
392
392
  width: var(--max-width) !important;
393
393
  }
394
394
 
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 {
395
+ .mat-mdc-autocomplete-panel-medium-size .mat-mdc-autocomplete-panel,
396
+ .mat-mdc-autocomplete-panel-medium-size.mat-mdc-autocomplete-panel,
397
+ .min-width-medium .mat-mdc-autocomplete-panel,
398
+ .min-width-medium.mat-mdc-autocomplete-panel,
399
+ .min-width-medium.mat-mdc-select-panel {
399
400
  --min-width: 300px;
400
401
  }
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 {
402
+ .mat-mdc-autocomplete-panel-large-size .mat-mdc-autocomplete-panel,
403
+ .mat-mdc-autocomplete-panel.mat-mdc-autocomplete-panel-large-size,
404
+ .min-width-large .mat-mdc-autocomplete-panel,
405
+ .min-width-large.mat-mdc-autocomplete-panel,
406
+ .min-width-large.mat-mdc-select-panel{
405
407
  --min-width: 400px;
406
408
  }
407
- .mat-autocomplete-panel-xlarge-size .mat-autocomplete-panel,
408
- .mat-autocomplete-panel-xlarge-size.mat-autocomplete-panel {
409
+ .mat-mdc-autocomplete-panel-xlarge-size .mat-mdc-autocomplete-panel,
410
+ .mat-mdc-autocomplete-panel-xlarge-size.mat-mdc-autocomplete-panel,
411
+ .mat-mdc-autocomplete-panel-xlarge-size.mat-mdc-select-panel {
409
412
  --min-width: 450px;
410
413
  }
411
414
  .mat-select-panel.min-width-80vw,
412
415
  .mat-mdc-select-panel.min-width-80vw,
413
- .min-width-80vw .mat-autocomplete-panel,
414
- .min-width-80vw.mat-autocomplete-panel {
416
+ .min-width-80vw .mat-mdc-autocomplete-panel,
417
+ .min-width-80vw.mat-mdc-autocomplete-panel {
415
418
  --min-width: 80vw;
416
419
  }
417
420
 
418
- .mat-autocomplete-panel-center .mat-autocomplete-panel,
419
- .mat-autocomplete-panel-center.mat-autocomplete-panel {
421
+ .mat-mdc-autocomplete-panel-center .mat-mdc-autocomplete-panel,
422
+ .mat-mdc-autocomplete-panel-center.mat-mdc-autocomplete-panel {
420
423
  margin-left: calc(var(--min-width, 200px) / -2 + 50%) !important;
421
424
  }
422
425
 
423
- .mat-autocomplete-panel-full-size .mat-autocomplete-panel,
424
- .mat-autocomplete-panel-full-size.mat-autocomplete-panel {
426
+ .mat-mdc-autocomplete-panel-full-size .mat-mdc-autocomplete-panel,
427
+ .mat-mdc-autocomplete-panel-full-size.mat-mdc-autocomplete-panel {
425
428
  --min-width: calc(100vw - 64px);
426
429
  --max-width: calc(100vw - 64px);
427
430
  position: fixed;
428
431
  left: 32px;
429
432
  }
430
433
 
431
- .mat-select-panel,
432
434
  .mat-mdc-select-panel,
433
- .mat-autocomplete-panel {
435
+ .mat-mdc-autocomplete-panel {
434
436
  /* when multiple selection enable */
435
437
  mat-pseudo-checkbox {
436
438
  margin-left: 8px;
437
439
  }
440
+
441
+ padding: 0 !important;
438
442
  }
439
443
 
440
444
  ion-list,
441
- .mat-select-panel,
442
- .mat-menu-panel,
443
- .mat-autocomplete-panel {
444
-
445
+ .mat-menu-panel {
445
446
  &.ion-list-popover {
446
447
  padding: 0 !important;
447
448
  }
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
449
  }
562
450
 
451
+ ion-list,
452
+ .mat-menu-panel,
563
453
  .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
- //}
454
+ .mat-mdc-autocomplete-panel {
572
455
 
573
456
  /* Avoid bad display, when opening panel for the first time */
574
457
  &.ng-trigger-transformPanel {
@@ -581,12 +464,17 @@ ion-list,
581
464
  }
582
465
  }
583
466
 
584
- mat-option.mat-select-searchbar,
585
- mat-option.mat-autocomplete-searchbar
467
+ .mat-mdc-option.mat-select-searchbar,
468
+ .mat-mdc-option.mat-autocomplete-searchbar
586
469
  {
587
470
  padding: 0 !important;
588
471
  height: 58px !important;
589
472
  background-color: var(--ion-color-secondary100) !important;
473
+ pointer-events: inherit !important;
474
+
475
+ .mdc-list-item__primary-text {
476
+ opacity: 1 !important;
477
+ }
590
478
 
591
479
  /* hide pseudo checkbox, in the searchbar*/
592
480
  mat-pseudo-checkbox {
@@ -671,6 +559,7 @@ ion-list,
671
559
  padding-left: var(--ion-padding-start) !important;
672
560
  text-overflow: ellipsis;
673
561
  overflow: hidden;
562
+ white-space: nowrap;
674
563
  }
675
564
 
676
565
 
@@ -680,12 +569,14 @@ ion-list,
680
569
  background: var(--ion-light-color-shade, $light);
681
570
  }
682
571
 
572
+ .mat-mdc-option[no-padding],
683
573
  .mat-option[no-padding],
684
574
  mat-option[no-padding] {
685
575
  padding: 0 !important;
686
576
  }
687
577
  }
688
578
 
579
+
689
580
  mat-expansion-panel {
690
581
 
691
582
  &.filter-panel {
@@ -1,8 +1,9 @@
1
1
  // --------------------------------------------------
2
- // Material tab group
2
+ // Material tab group/link
3
3
  // --------------------------------------------------
4
+
4
5
  // -- Keep Angular 14 tab style
5
- .mat-mdc-tab-label-container {
6
+ .mat-mdc-tab-label-container, .mat-mdc-tab-link-container {
6
7
  --mat-tab-header-divider-color: rgba(0,0,0,.12) !important;
7
8
  --mat-tab-header-divider-height: 1px !important;
8
9
  }