@sumaris-net/ngx-components 18.6.62 → 18.6.64
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/doc/changelog.md +3 -0
- package/esm2022/src/app/shared/functions.mjs +1 -1
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +20 -19
- package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +4 -4
- package/esm2022/src/app/shared/services.mjs +7 -3
- package/fesm2022/sumaris-net.ngx-components.mjs +27 -22
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/functions.d.ts +1 -1
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +1 -0
- package/src/assets/manifest.json +1 -1
- package/src/theme/_ngx-components.scss +34 -42
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ export declare function arrayResize<T>(array: T[] | null | undefined, size: numb
|
|
|
14
14
|
export declare function newArray<T>(size: number, defaultValue?: T): T[];
|
|
15
15
|
export declare function isNotNilBoolean(obj: any | null | undefined): obj is boolean;
|
|
16
16
|
export declare function isNotNilString(obj: any | null | undefined): obj is string;
|
|
17
|
-
export declare function isNotNilObject(obj: any | null | undefined): obj is
|
|
17
|
+
export declare function isNotNilObject(obj: any | null | undefined): obj is object;
|
|
18
18
|
export declare function isBlankString(obj: any | null | undefined): obj is string;
|
|
19
19
|
export declare function notNilOrDefault<T>(obj: T | null | undefined, defaultValue: T): T;
|
|
20
20
|
export declare function arraySize<T>(obj: T[] | null | undefined): number;
|
|
@@ -32,6 +32,7 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
32
32
|
private _itemCount;
|
|
33
33
|
private _suggestExecutionId;
|
|
34
34
|
private _reload$;
|
|
35
|
+
private _destroy$;
|
|
35
36
|
protected _readonly: boolean;
|
|
36
37
|
protected _tabindex: number;
|
|
37
38
|
protected _$inputItems: BehaviorSubject<any[]>;
|
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": "18.6.
|
|
5
|
+
"version": "18.6.64",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|
|
@@ -178,6 +178,7 @@ mat-option {
|
|
|
178
178
|
.mdc-list-item__primary-text {
|
|
179
179
|
display: inline-block;
|
|
180
180
|
flex-grow: 1;
|
|
181
|
+
box-sizing: border-box;
|
|
181
182
|
}
|
|
182
183
|
.mat-option-text:not(:has(ion-row)),
|
|
183
184
|
.mat-option-text:has(ion-searchbar),
|
|
@@ -188,6 +189,7 @@ mat-option {
|
|
|
188
189
|
.mat-option-text:has(ion-row),
|
|
189
190
|
.mdc-list-item__primary-text:has(ion-row) {
|
|
190
191
|
padding: 0;
|
|
192
|
+
width: 100%; // Fix sumaris-app#943
|
|
191
193
|
}
|
|
192
194
|
mat-autocomplete-footer {
|
|
193
195
|
.mat-option-text,
|
|
@@ -243,56 +245,45 @@ mat-option:not(:last-of-type) {
|
|
|
243
245
|
&:has(.mat-select-panel-fit-content) {
|
|
244
246
|
--min-width: fit-content !important;
|
|
245
247
|
}
|
|
246
|
-
}
|
|
247
248
|
|
|
249
|
+
&:has(.min-width-medium),
|
|
250
|
+
&:has(.mat-mdc-autocomplete-panel-medium-size) {
|
|
251
|
+
--min-width: 300px;
|
|
252
|
+
}
|
|
248
253
|
|
|
249
|
-
.
|
|
250
|
-
.mat-mdc-autocomplete-panel-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
.min-width-medium.mat-mdc-select-panel {
|
|
254
|
-
--min-width: 300px;
|
|
255
|
-
}
|
|
256
|
-
.mat-mdc-autocomplete-panel-large-size .mat-mdc-autocomplete-panel,
|
|
257
|
-
.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-panel-large-size,
|
|
258
|
-
.min-width-large .mat-mdc-autocomplete-panel,
|
|
259
|
-
.min-width-large.mat-mdc-autocomplete-panel,
|
|
260
|
-
.min-width-large.mat-mdc-select-panel{
|
|
261
|
-
--min-width: 400px;
|
|
262
|
-
}
|
|
263
|
-
.mat-mdc-autocomplete-panel-xlarge-size .mat-mdc-autocomplete-panel,
|
|
264
|
-
.mat-mdc-autocomplete-panel-xlarge-size.mat-mdc-autocomplete-panel,
|
|
265
|
-
.mat-mdc-autocomplete-panel-xlarge-size.mat-mdc-select-panel {
|
|
266
|
-
--min-width: 450px;
|
|
267
|
-
}
|
|
268
|
-
.mat-select-panel.min-width-80vw,
|
|
269
|
-
.mat-mdc-select-panel.min-width-80vw,
|
|
270
|
-
.min-width-80vw .mat-mdc-autocomplete-panel,
|
|
271
|
-
.min-width-80vw.mat-mdc-autocomplete-panel {
|
|
272
|
-
--min-width: 80vw;
|
|
273
|
-
}
|
|
254
|
+
&:has(.min-width-large),
|
|
255
|
+
&:has(.mat-mdc-autocomplete-panel-large-size) {
|
|
256
|
+
--min-width: 400px;
|
|
257
|
+
}
|
|
274
258
|
|
|
275
|
-
.
|
|
276
|
-
.mat-mdc-autocomplete-panel-
|
|
277
|
-
|
|
278
|
-
}
|
|
259
|
+
&:has(.min-width-xlarge),
|
|
260
|
+
&:has(.mat-mdc-autocomplete-panel-xlarge-size) {
|
|
261
|
+
--min-width: 450px;
|
|
262
|
+
}
|
|
279
263
|
|
|
280
|
-
.
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
264
|
+
&:has(.min-width-80vw) {
|
|
265
|
+
--min-width: 80vw;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&:has(.mat-mdc-autocomplete-panel-full-size),
|
|
269
|
+
&:has(.full-size) {
|
|
270
|
+
--margin-left: 32px;
|
|
271
|
+
--margin-right: 32px;
|
|
272
|
+
--min-width: calc(100vw - var(--margin-left) - var(--margin-right));
|
|
273
|
+
--max-width: calc(100vw - var(--margin-left) - var(--margin-right));
|
|
274
|
+
position: fixed;
|
|
275
|
+
left: var(--margin-left) !important;
|
|
276
|
+
right: unset !important;
|
|
277
|
+
}
|
|
289
278
|
}
|
|
290
279
|
|
|
291
280
|
.mat-mdc-select-panel,
|
|
292
281
|
.mat-mdc-autocomplete-panel {
|
|
293
282
|
/* when multiple selection enable */
|
|
294
|
-
mat-pseudo-checkbox
|
|
295
|
-
|
|
283
|
+
.mat-mdc-option mat-pseudo-checkbox,
|
|
284
|
+
.mat-mdc-option .mat-pseudo-checkbox-full {
|
|
285
|
+
margin-left: 12px;
|
|
286
|
+
margin-right: 4px;
|
|
296
287
|
}
|
|
297
288
|
|
|
298
289
|
padding: 0 !important;
|
|
@@ -364,6 +355,7 @@ ion-list,
|
|
|
364
355
|
|
|
365
356
|
.searchbar-input {
|
|
366
357
|
--background: var(--app-form-field-background-color, var(--ion-background-color));
|
|
358
|
+
padding-inline-end: 34px; // Keep a place for the clear button
|
|
367
359
|
}
|
|
368
360
|
}
|
|
369
361
|
|
|
@@ -432,7 +424,7 @@ ion-list,
|
|
|
432
424
|
ion-col {
|
|
433
425
|
--padding-start: 8px;
|
|
434
426
|
padding: 0 !important;
|
|
435
|
-
padding-left: var(--padding-start) !important;
|
|
427
|
+
padding-left: var(--padding-start, 0) !important;
|
|
436
428
|
text-overflow: ellipsis;
|
|
437
429
|
overflow: hidden;
|
|
438
430
|
white-space: nowrap;
|