@rlucan/ui 19.0.1 → 19.0.3

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.
@@ -16,12 +16,12 @@ export declare class SelectComponent extends UiSimpleComponent implements OnInit
16
16
  optionFormatter: ((arg: any) => string | undefined) | undefined;
17
17
  optionTemplateRef?: TemplateRef<any>;
18
18
  triggerTemplateRef?: TemplateRef<any>;
19
- panelClass: any;
19
+ panelClass: string;
20
20
  allowEmptySelection: boolean;
21
21
  trackBy: any;
22
- select: MatSelect;
22
+ select?: MatSelect;
23
23
  lastCount: number;
24
- overoption: boolean;
24
+ overoption: any;
25
25
  constructor(ngControl: NgControl, translateService: IUiTranslateService);
26
26
  ngOnInit(): void;
27
27
  ngOnChanges(changes: SimpleChanges): void;
@@ -30,7 +30,7 @@ export declare class SelectComponent extends UiSimpleComponent implements OnInit
30
30
  selectOption(o: any, select: MatSelect): void;
31
31
  selectAll(): void;
32
32
  clearAll(): void;
33
- setDisabledState(isDisabled: boolean): void;
33
+ setDisabledState(): void;
34
34
  writeValue(obj: any): void;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, [{ optional: true; self: true; }, null]>;
36
36
  static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "ui-select", never, { "multiple": { "alias": "multiple"; "required": false; }; "triggerFormatter": { "alias": "triggerFormatter"; "required": false; }; "valueAttribute": { "alias": "valueAttribute"; "required": false; }; "resetText": { "alias": "resetText"; "required": false; }; "displayAttribute": { "alias": "displayAttribute"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionFormatter": { "alias": "optionFormatter"; "required": false; }; "optionTemplateRef": { "alias": "optionTemplateRef"; "required": false; }; "triggerTemplateRef": { "alias": "triggerTemplateRef"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "allowEmptySelection": { "alias": "allowEmptySelection"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; }, {}, never, never, false, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rlucan/ui",
3
- "version": "19.0.1",
3
+ "version": "19.0.3",
4
4
  "description": "My UI Components",
5
5
  "author": "rlucan@gmail.com",
6
6
  "peerDependencies": {
@@ -254,7 +254,8 @@
254
254
  ),
255
255
  disabled: (
256
256
  background-color: $baseBackgroundColor,
257
- color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, disabled-text)
257
+ color: rgba($baseTextColor, 0.65),
258
+ xxxx: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, disabled-text)
258
259
  ),
259
260
  focus: (
260
261
  border-color: $primaryColor
@@ -274,7 +275,7 @@
274
275
  border-color: $warnColor
275
276
  ),
276
277
  placeholder: (
277
- color: rgba($baseTextColor, 0.60)
278
+ color: rgba($baseTextColor, 0.50)
278
279
  ),
279
280
  clear-icon: (
280
281
  color: yellow,
package/ui.scss CHANGED
@@ -1,7 +1,7 @@
1
1
  @use 'sass:math';
2
2
  @use '@angular/material' as mat;
3
3
 
4
- @import "scss/ui-defaults";
4
+ @use "scss/ui-defaults" as uiDefaults;
5
5
 
6
6
  @function str-split($string, $separator) {
7
7
  $split-arr: ();
@@ -40,11 +40,11 @@
40
40
  }
41
41
 
42
42
  @mixin ui-dark($matTheme, $uiColors: (), $uiGeometry: ()) {
43
- @include ui(deep-map-merge(uiDefaultDarkColors($matTheme), $uiColors), map-merge($uiDefaultGeometry, $uiGeometry)/*, map-merge($uiDefaultTypography, $uiTypography)*/);
43
+ @include ui(deep-map-merge(uiDefaults.uiDefaultDarkColors($matTheme), $uiColors), map-merge(uiDefaults.$uiDefaultGeometry, $uiGeometry)/*, map-merge($uiDefaultTypography, $uiTypography)*/);
44
44
  }
45
45
 
46
46
  @mixin ui-light($matTheme, $uiColors: (), $uiGeometry: ()) {
47
- @include ui(deep-map-merge(uiDefaultLightColors($matTheme), $uiColors), map-merge($uiDefaultGeometry, $uiGeometry)/*, map-merge($uiDefaultTypography, $uiTypography)*/);
47
+ @include ui(deep-map-merge(uiDefaults.uiDefaultLightColors($matTheme), $uiColors), map-merge(uiDefaults.$uiDefaultGeometry, $uiGeometry)/*, map-merge($uiDefaultTypography, $uiTypography)*/);
48
48
  }
49
49
 
50
50
  @mixin ui($colors, $geometry/*, $typography*/) {
@@ -70,20 +70,28 @@
70
70
  }
71
71
  }
72
72
 
73
- ui-select .mat-mdc-select-placeholder, ui-select .mat-mdc-select-arrow, ui-select .mat-mdc-select-value {
73
+ ui-select .mat-mdc-select-placeholder {
74
+ color: uiGetColor($colors, "input.placeholder.color");
75
+ }
76
+
77
+ ui-select .mat-mdc-select-arrow, ui-select .mat-mdc-select-value {
74
78
  color: uiGetColor($colors, "input.color");
75
79
  //&:disabled {
76
80
  // color: uiGetColor($colors, "input.disabled.color");
77
81
  //}
78
- &::placeholder {
79
- color: uiGetColor($colors, "input.placeholder.color");
80
- }
82
+ //&::placeholder {
83
+ // color: uiGetColor($colors, "input.placeholder.color");
84
+ //}
81
85
  }
82
86
 
83
87
  ui-select .mat-mdc-select-disabled {
84
88
  .mat-mdc-select-value, .mat-mdc-select-arrow {
85
89
  color: uiGetColor($colors, "input.disabled.color");
86
90
  }
91
+ .mat-mdc-select-trigger {
92
+ background-color: uiGetColor($colors, "input.disabled.background-color") !important;
93
+ color: uiGetColor($colors, "input.disabled.color");
94
+ }
87
95
  }
88
96
 
89
97
  ui-date input, ui-input input, ui-input-autocomplete input, ui-text-area textarea, ui-select .mat-mdc-select-trigger, ui-file-uploader .files-container, ui-editor .editor-wrapper {