@sumaris-net/ngx-components 18.23.67 → 18.23.69

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 CHANGED
@@ -2193,4 +2193,12 @@ enh: Environment: add useHash property to configure Angular router to use hash U
2193
2193
  - enh(shared): Add new pipe `changeCaseToUnderscore` to convert camelCase to underscore_case in templates
2194
2194
 
2195
2195
  ## 18.23.65
2196
- - enh(date-time-field): Fix datetime value emission on invalid datetime
2196
+ - enh(date-time-field): Fix datetime value emission on invalid datetime (closes sumaris-app#1863)
2197
+
2198
+ ## 18.23.68
2199
+ - enh(theme): add responsive `min-width` utility classes for select panel - Allow to use panelClass with :
2200
+ * mobile/desktop: `min-width-fit-content`, `min-width-medium`, `min-width-large`, `min-width-xlarge` , `min-width-80vw` :
2201
+ * mobile only: `mat-select-panel-fit-content`|`mat-select-panel-medium-size`|`mat-select-panel-large-size`|`mat-select-panel-xlarge-size`|`mat-select-panel-80vw-size`
2202
+
2203
+ ## 18.23.69
2204
+ - enh(theme): MatAutocompleteField: add panelClass style `full-width`, as an alias of `full-size`
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": "18.23.67",
4
+ "version": "18.23.69",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -18,7 +18,7 @@ export interface InputElement extends FocusableElement {
18
18
  }
19
19
  export declare function isInputElement(object: any): object is InputElement;
20
20
  export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
21
- export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | 0 | -1;
21
+ export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
22
22
  export interface CanGainFocusOptions {
23
23
  minTabindex?: number;
24
24
  maxTabindex?: number;
@@ -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.23.67",
5
+ "version": "18.23.69",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -208,10 +208,31 @@ mat-option:not(:last-of-type) {
208
208
  max-width: var(--max-width) !important;
209
209
 
210
210
  // FIXME : This is a workaround find at : https://github.com/angular/components/issues/26000#issuecomment-1563107933
211
+ &:has(.min-width-fit-content),
211
212
  &:has(.mat-select-panel-fit-content) {
212
213
  --min-width: fit-content !important;
213
214
  }
214
215
 
216
+ &:has(.min-width-medium),
217
+ &:has(.mat-select-panel-panel-medium-size) {
218
+ --min-width: 300px;
219
+ }
220
+
221
+ &:has(.min-width-large),
222
+ &:has(.mat-select-panel-large-size) {
223
+ --min-width: 400px;
224
+ }
225
+
226
+ &:has(.min-width-xlarge),
227
+ &:has(.mat-select-panel-xlarge-size) {
228
+ --min-width: 450px;
229
+ }
230
+
231
+ &:has(.min-width-80vw),
232
+ &:has(.mat-select-panel-80vw-size) {
233
+ --min-width: 80vw;
234
+ }
235
+
215
236
  .mat-mdc-select-panel {
216
237
  --mat-switch-visible-track-transition: transform 75ms 50ms cubic-bezier(0, 0, 0.2, 1);
217
238
  transition: --mat-switch-visible-track-transition;
@@ -232,13 +253,14 @@ mat-option:not(:last-of-type) {
232
253
  }
233
254
 
234
255
 
235
- .cdk-overlay-pane:has(.mat-mdc-autocomplete-panel) {
256
+ .cdk-overlay-pane:has(.mat-mdc-autocomplete-panel){
236
257
  --min-width: 200px;
237
258
  --max-width: calc(min(100%, 100vw - 64px));
238
259
  min-width: var(--min-width) !important;
239
260
  max-width: var(--max-width) !important;
240
261
 
241
262
  // FIXME : This is a workaround find at : https://github.com/angular/components/issues/26000#issuecomment-1563107933
263
+ &:has(.min-width-fit-content),
242
264
  &:has(.mat-select-panel-fit-content) {
243
265
  --min-width: fit-content !important;
244
266
  }
@@ -258,12 +280,15 @@ mat-option:not(:last-of-type) {
258
280
  --min-width: 450px;
259
281
  }
260
282
 
261
- &:has(.min-width-80vw) {
283
+ &:has(.min-width-80vw),
284
+ &:has(.mat-mdc-autocomplete-panel-80vw-size){
262
285
  --min-width: 80vw;
263
286
  }
264
287
 
265
- &:has(.mat-mdc-autocomplete-panel-full-size),
266
- &:has(.full-size) {
288
+ &:has(.full-size),
289
+ &:has(.full-width),
290
+ &:has(.mat-mdc-autocomplete-panel-full-size)
291
+ {
267
292
  --margin-left: 32px;
268
293
  --margin-right: 32px;
269
294
  --min-width: calc(100vw - var(--margin-left) - var(--margin-right));