@foxeltech/angular-ui 0.0.13 → 0.0.14
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/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnDestroy, Injector, ApplicationRef, OnInit, AfterViewInit, ChangeDetectorRef, Type, EventEmitter, ModuleWithProviders, TemplateRef, ViewContainerRef, ElementRef, RendererFactory2, AfterContentInit, QueryList, Renderer2,
|
|
2
|
+
import { OnDestroy, Injector, ApplicationRef, OnInit, AfterViewInit, ChangeDetectorRef, Type, EventEmitter, ModuleWithProviders, TemplateRef, ViewContainerRef, ElementRef, RendererFactory2, OnChanges, SimpleChanges, AfterContentInit, QueryList, Renderer2, NgZone } from '@angular/core';
|
|
3
3
|
import * as _foxeltech_angular_ui from '@foxeltech/angular-ui';
|
|
4
4
|
import * as i43 from '@angular/material/paginator';
|
|
5
5
|
import { MatPaginator } from '@angular/material/paginator';
|
|
@@ -544,7 +544,7 @@ declare class InputComponent extends FxComponent<string> implements AfterViewIni
|
|
|
544
544
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "fx-ui-input", never, { "label": { "alias": "label"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; }; "class": { "alias": "class"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "validateFn": { "alias": "validateFn"; "required": false; }; }, { "blurred": "blurred"; "focused": "focused"; "suffixClick": "suffixClick"; }, never, never, false, never>;
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
declare class SelectComponent extends FxComponent<string | string[]> implements AfterViewInit, OnInit {
|
|
547
|
+
declare class SelectComponent extends FxComponent<string | string[]> implements AfterViewInit, OnInit, OnChanges {
|
|
548
548
|
private ref;
|
|
549
549
|
label: string;
|
|
550
550
|
tooltip: string;
|
|
@@ -575,6 +575,7 @@ declare class SelectComponent extends FxComponent<string | string[]> implements
|
|
|
575
575
|
private search$;
|
|
576
576
|
constructor(ngControl: NgControl, ref: ChangeDetectorRef);
|
|
577
577
|
ngOnInit(): void;
|
|
578
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
578
579
|
ngAfterViewInit(): void;
|
|
579
580
|
onOpened(open: boolean): void;
|
|
580
581
|
onSearchChange(value: string): void;
|
package/package.json
CHANGED
|
@@ -62,8 +62,19 @@
|
|
|
62
62
|
margin-right: 0 !important;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
/* Unified chevron-down arrow (replaces Material's default triangle) */
|
|
66
|
+
::ng-deep .fx-select-field .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow svg {
|
|
67
|
+
display: none !important;
|
|
68
|
+
}
|
|
69
|
+
::ng-deep .fx-select-field .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow {
|
|
70
|
+
width: 8px !important;
|
|
71
|
+
height: 8px !important;
|
|
72
|
+
border-style: solid;
|
|
73
|
+
border-color: currentColor;
|
|
74
|
+
border-width: 0 1.5px 1.5px 0;
|
|
75
|
+
transform: rotate(45deg);
|
|
76
|
+
margin-top: -3px;
|
|
77
|
+
color: rgb(var(--text-secondary)) !important;
|
|
67
78
|
}
|
|
68
79
|
|
|
69
80
|
::ng-deep .mat-mdc-select-panel {
|
|
@@ -102,6 +113,30 @@
|
|
|
102
113
|
padding: 8px 16px; /* Add visual padding back to the input */
|
|
103
114
|
border: none;
|
|
104
115
|
/* Optional: Add a subtle border to separate it from the options */
|
|
105
|
-
border-bottom: 1px solid #ddd;
|
|
116
|
+
border-bottom: 1px solid #ddd;
|
|
106
117
|
box-sizing: border-box; /* Include padding in the element's total width */
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Disabled state */
|
|
121
|
+
::ng-deep .fx-select-field.mat-form-field-disabled .mat-mdc-form-field-flex,
|
|
122
|
+
::ng-deep .fx-select-field:has(.mat-mdc-select-disabled) .mat-mdc-form-field-flex {
|
|
123
|
+
background-color: rgb(var(--bg-primary-hover)) !important;
|
|
124
|
+
border-color: rgb(var(--border-default)) !important;
|
|
125
|
+
cursor: not-allowed !important;
|
|
126
|
+
opacity: 0.6;
|
|
127
|
+
box-shadow: none !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
::ng-deep .fx-select-field.mat-form-field-disabled .mat-mdc-select-value,
|
|
131
|
+
::ng-deep .fx-select-field.mat-form-field-disabled .mat-mdc-select-placeholder,
|
|
132
|
+
::ng-deep .fx-select-field.mat-form-field-disabled .mat-mdc-select-arrow,
|
|
133
|
+
::ng-deep .fx-select-field:has(.mat-mdc-select-disabled) .mat-mdc-select-value,
|
|
134
|
+
::ng-deep .fx-select-field:has(.mat-mdc-select-disabled) .mat-mdc-select-placeholder,
|
|
135
|
+
::ng-deep .fx-select-field:has(.mat-mdc-select-disabled) .mat-mdc-select-arrow {
|
|
136
|
+
color: rgb(var(--text-placeholder)) !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
::ng-deep .fx-select-field.mat-form-field-disabled .mat-mdc-select,
|
|
140
|
+
::ng-deep .fx-select-field:has(.mat-mdc-select-disabled) .mat-mdc-select {
|
|
141
|
+
cursor: not-allowed !important;
|
|
107
142
|
}
|