@ecodev/natural 58.0.0 → 58.0.2

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.
@@ -15,14 +15,14 @@ export declare class NaturalFileComponent implements OnInit, OnChanges {
15
15
  action: 'upload' | 'download' | null;
16
16
  backgroundSize: string;
17
17
  /**
18
- * Comma-separated list of unique file type specifiers. Like the native element
18
+ * Comma-separated list of unique file type specifiers. Like the native element,
19
19
  * it can be a mix of mime-type and file extensions.
20
20
  *
21
21
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
22
22
  */
23
23
  accept: string;
24
24
  /**
25
- * If given it will be called when a new file is selected. The callback should typically upload the file
25
+ * If given, it will be called when a new file is selected. The callback should typically upload the file
26
26
  * to the server and link the newly uploaded file to the existing related object.
27
27
  *
28
28
  * The callback **must** be able to run even if the calling component has been destroyed. That means in most
@@ -37,7 +37,7 @@ export declare abstract class NaturalAbstractModelService<Tone, Vone extends {
37
37
  private readonly creatingCache;
38
38
  protected readonly apollo: Apollo;
39
39
  protected readonly naturalDebounceService: NaturalDebounceService;
40
- constructor(name: string, oneQuery: DocumentNode | null, allQuery: DocumentNode | null, createMutation: DocumentNode | null, updateMutation: DocumentNode | null, deleteMutation: DocumentNode | null);
40
+ constructor(name: string, oneQuery: DocumentNode | null, allQuery: DocumentNode | null, createMutation: DocumentNode | null, updateMutation: DocumentNode | null, deleteMutation: DocumentNode | null, plural?: string | null);
41
41
  /**
42
42
  * List of individual fields validators
43
43
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural",
3
- "version": "58.0.0",
3
+ "version": "58.0.2",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,
@@ -1,23 +1,23 @@
1
1
  .cdk-overlay-container {
2
2
  .panel {
3
- max-width: calc(100vw - 84px);
4
3
  margin: 10px;
4
+ max-width: calc(100vw - 84px);
5
5
 
6
6
  @media (max-width: 960px) {
7
7
  max-width: calc(100vw - 20px);
8
8
  }
9
9
 
10
10
  .mat-dialog-container {
11
- border-radius: 0 !important;
12
11
  display: flex;
13
12
  flex-direction: column;
14
- max-width: none;
13
+ border-radius: 0 !important;
15
14
  padding: 0;
15
+ max-width: none;
16
16
 
17
17
  & > * {
18
18
  display: flex;
19
- flex-direction: column;
20
19
  flex: 1;
20
+ flex-direction: column;
21
21
  }
22
22
  }
23
23
 
@@ -33,8 +33,8 @@
33
33
  // Align header with content (padding 20px)
34
34
  &.isFrontPanel > div > div > div.mat-headline-5.no-margin,
35
35
  &.isFrontPanel natural-detail-header > div {
36
- padding-left: 20px;
37
36
  padding-right: 20px;
37
+ padding-left: 20px;
38
38
  }
39
39
 
40
40
  .panelBody {
@@ -42,22 +42,22 @@
42
42
  }
43
43
 
44
44
  &:not(.isFrontPanel) {
45
+ position: relative;
46
+
47
+ cursor: pointer;
45
48
  .panelBody {
46
49
  display: none !important;
47
50
  }
48
51
 
49
- cursor: pointer;
50
- position: relative;
51
-
52
52
  &:hover::before {
53
- content: '';
54
53
  display: block;
55
54
  position: absolute;
56
55
  top: 0;
57
- left: 0;
58
56
  right: 0;
59
57
  bottom: 0;
58
+ left: 0;
60
59
  background: rgba(0, 0, 0, 0.2);
60
+ content: '';
61
61
  }
62
62
  }
63
63
  }
@@ -5,15 +5,15 @@
5
5
  @mixin natural-input($theme) {
6
6
  natural-input {
7
7
  .mat-mdc-form-field-infix {
8
- margin-left: 10px;
9
8
  margin-right: 10px;
9
+ margin-left: 10px;
10
10
  width: auto;
11
11
  }
12
12
 
13
13
  .mat-form-field-flex {
14
- padding-left: 0;
15
- padding-right: 0;
16
14
  align-items: flex-start; // Fix firefox misalignment with baseline and mat-icon-button that seems not accepted by @a/material
15
+ padding-right: 0;
16
+ padding-left: 0;
17
17
  }
18
18
 
19
19
  .mat-mdc-form-field {
@@ -17,8 +17,8 @@
17
17
  }
18
18
 
19
19
  natural-sidenav {
20
- flex: 1;
21
20
  display: flex;
21
+ flex: 1;
22
22
  min-height: 0;
23
23
  }
24
24
  }
@@ -31,8 +31,8 @@
31
31
  }
32
32
 
33
33
  &:not(:first-child):not(:last-child) {
34
- padding-left: 5px;
35
34
  padding-right: 5px;
35
+ padding-left: 5px;
36
36
  }
37
37
 
38
38
  &[natural-align-right] {