easy-mat-ui 0.0.6 → 1.0.1

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.
Files changed (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +361 -63
  3. package/fesm2022/easy-mat-ui.mjs +2874 -0
  4. package/fesm2022/easy-mat-ui.mjs.map +1 -0
  5. package/index.d.ts +1136 -0
  6. package/package.json +68 -22
  7. package/page-generator/blocks.js +155 -0
  8. package/page-generator/catalog.js +132 -0
  9. package/page-generator/cli/main.js +314 -0
  10. package/page-generator/cli/project.js +252 -0
  11. package/page-generator/context.js +108 -0
  12. package/page-generator/generate.js +182 -0
  13. package/page-generator/index.js +33 -0
  14. package/page-generator/naming.js +53 -0
  15. package/page-generator/table.js +310 -0
  16. package/page-generator/types.js +6 -0
  17. package/styles/styles/_backgrounds.scss +39 -0
  18. package/{src/lib → styles}/styles/_buttons.scss +90 -90
  19. package/styles/styles/_colors.scss +197 -0
  20. package/{src/lib → styles}/styles/_effects.scss +44 -44
  21. package/{src/lib → styles}/styles/_material-overrides.scss +106 -87
  22. package/{src/lib → styles}/styles/_spacing.scss +68 -68
  23. package/styles/styles/_tables.scss +569 -0
  24. package/{src/lib → styles}/styles/_typography.scss +100 -105
  25. package/{src/lib → styles}/styles.scss +29 -30
  26. package/ng-package.json +0 -19
  27. package/src/lib/easy-mat-ui.component.spec.ts +0 -23
  28. package/src/lib/easy-mat-ui.component.ts +0 -16
  29. package/src/lib/easy-mat-ui.service.spec.ts +0 -16
  30. package/src/lib/easy-mat-ui.service.ts +0 -9
  31. package/src/lib/easy-multi-select/easy-multi-select.css +0 -102
  32. package/src/lib/easy-multi-select/easy-multi-select.html +0 -51
  33. package/src/lib/easy-multi-select/easy-multi-select.spec.ts +0 -23
  34. package/src/lib/easy-multi-select/easy-multi-select.ts +0 -181
  35. package/src/lib/easy-table/easy-table.component.css +0 -117
  36. package/src/lib/easy-table/easy-table.component.html +0 -221
  37. package/src/lib/easy-table/easy-table.component.spec.ts +0 -23
  38. package/src/lib/easy-table/easy-table.component.ts +0 -568
  39. package/src/lib/model/dictionary.model.ts +0 -4
  40. package/src/lib/model/mat-column-typed.model.ts +0 -41
  41. package/src/lib/model/mat-column.model.ts +0 -35
  42. package/src/lib/model/tuple.model.ts +0 -8
  43. package/src/lib/shared/table-toolbar/table-toolbar.css +0 -26
  44. package/src/lib/shared/table-toolbar/table-toolbar.html +0 -80
  45. package/src/lib/shared/table-toolbar/table-toolbar.ts +0 -130
  46. package/src/lib/styles/_backgrounds.scss +0 -39
  47. package/src/lib/styles/_colors.scss +0 -67
  48. package/src/lib/styles/_tables.scss +0 -71
  49. package/src/lib/utils/enums.ts +0 -49
  50. package/src/lib/utils/matTabCommon.ts +0 -59
  51. package/src/lib/utils/utils.ts +0 -68
  52. package/src/public-api.ts +0 -8
  53. package/tsconfig.lib.json +0 -18
  54. package/tsconfig.lib.prod.json +0 -11
  55. package/tsconfig.spec.json +0 -15
@@ -1,105 +1,100 @@
1
- .hover {
2
- cursor: pointer;
3
- }
4
-
5
- .no-border {
6
- border: transparent;
7
- }
8
-
9
- .uppercase {
10
- text-transform: uppercase;
11
- }
12
-
13
- .tab-space {
14
- padding: 0 0 50px 0;
15
- }
16
-
17
- .xx-large,
18
- .x-large {
19
- font-size: xx-large !important;
20
- }
21
-
22
- .xx-small {
23
- font-size: xx-small !important;
24
- }
25
-
26
- .x-small {
27
- font-size: x-small !important;
28
- }
29
-
30
- .small {
31
- font-size: small !important;
32
- }
33
-
34
- .required {
35
- color: #f44336;
36
- }
37
-
38
- .zoom_in {
39
- color: #00bcd4 !important;
40
- }
41
-
42
- .zoom_out {
43
- color: #ffb804 !important;
44
- }
45
-
46
- .zoom_out, .zoom_in {
47
- font-size: 1.6em !important;
48
- cursor: pointer;
49
- }
50
-
51
- .isReadOnly {
52
- color: #4e656f;
53
- font-weight: 100 !important;
54
- }
55
-
56
- .shadow-5 {
57
- text-shadow: 0 5px 5px #c2c0c0;
58
- }
59
-
60
- .shadow-title {
61
- text-shadow: 0 10px 10px #c2c0c0;
62
- color: #5a0023;
63
- font-weight: 500;
64
- }
65
-
66
- .shadow-lg {
67
- font-size: x-large !important;
68
- text-shadow: 0 5px 5px #c2c0c0;
69
- color: #5a0023 !important;
70
- }
71
-
72
- .card-pricing h6 {
73
- color: #5a0023;
74
- }
75
-
76
-
77
- .x-small-column {
78
- width: 2%;
79
- min-width: 25px;
80
- flex: 0 0 2%;
81
- }
82
-
83
- .small-column {
84
- width: 5%;
85
- min-width: 50px;
86
- flex: 0 0 6%;
87
- }
88
-
89
- .medium-column {
90
- width: 12%;
91
- min-width: 100px;
92
- flex: 0 0 12%;
93
- }
94
-
95
- .large-column {
96
- width: 20%;
97
- min-width: 150px;
98
- flex: 0 0 20%;
99
- }
100
-
101
- .x-large-column {
102
- width: 30%;
103
- min-width: 200px;
104
- flex: 0 0 30%;
105
- }
1
+ .hover {
2
+ cursor: pointer;
3
+ }
4
+
5
+ .no-border {
6
+ border: transparent;
7
+ }
8
+
9
+ .uppercase {
10
+ text-transform: uppercase;
11
+ }
12
+
13
+ .tab-space {
14
+ padding: 0 0 50px 0;
15
+ }
16
+
17
+ .xx-large,
18
+ .x-large {
19
+ font-size: xx-large !important;
20
+ }
21
+
22
+ .xx-small {
23
+ font-size: xx-small !important;
24
+ }
25
+
26
+ .x-small {
27
+ font-size: x-small !important;
28
+ }
29
+
30
+ .small {
31
+ font-size: small !important;
32
+ }
33
+
34
+ .required {
35
+ color: #f44336;
36
+ }
37
+
38
+ .zoom_in {
39
+ color: #00bcd4 !important;
40
+ }
41
+
42
+ .zoom_out {
43
+ color: #ffb804 !important;
44
+ }
45
+
46
+ .zoom_out, .zoom_in {
47
+ font-size: 1.6em !important;
48
+ cursor: pointer;
49
+ }
50
+
51
+ .isReadOnly {
52
+ color: #4e656f;
53
+ font-weight: 100 !important;
54
+ }
55
+
56
+ .shadow-5 {
57
+ text-shadow: 0 5px 5px #555555;
58
+ }
59
+
60
+ .shadow-title {
61
+ text-shadow: 0 10px 10px #c2c0c0;
62
+ color: #5a0023;
63
+ font-weight: 500;
64
+ }
65
+
66
+ .shadow-lg {
67
+ font-size: x-large !important;
68
+ text-shadow: 0 5px 5px #c2c0c0;
69
+ color: #5a0023 !important;
70
+ }
71
+
72
+ .card-pricing h6 {
73
+ color: #5a0023;
74
+ }
75
+
76
+ .x-small-column {
77
+ width: 32px !important;
78
+ min-width: 32px !important;
79
+ max-width: 32px !important;
80
+ flex: 0 0 32px !important;
81
+ white-space: nowrap;
82
+ overflow: hidden;
83
+ text-overflow: clip;
84
+ }
85
+
86
+ .small-column {
87
+ min-width: 56px;
88
+ }
89
+
90
+ .medium-column {
91
+ min-width: 100px;
92
+ }
93
+
94
+ .large-column {
95
+ min-width: 150px;
96
+ }
97
+
98
+ .x-large-column {
99
+ min-width: 200px;
100
+ }
@@ -1,30 +1,29 @@
1
- @use "bootstrap/scss/bootstrap";
2
-
3
- @use './styles/colors' as *;
4
- @use './styles/backgrounds' as *;
5
- @use './styles/buttons' as *;
6
- @use './styles/tables' as *;
7
- @use './styles/typography' as *;
8
- @use './styles/spacing' as *;
9
- @use './styles/effects' as *;
10
- @use './styles/material-overrides' as *;
11
-
12
-
13
- @media (max-width: 768px) {
14
- .mat-header-cell, .mat-cell {
15
- font-size: 12px;
16
- padding: 0.25rem;
17
- }
18
-
19
- .action-link button {
20
- padding: 0.25rem !important;
21
- }
22
-
23
- .btn-mini-fab mat-icon {
24
- font-size: 18px;
25
- }
26
-
27
- mat-form-field {
28
- width: 100% !important;
29
- }
30
- }
1
+ @use "bootstrap/scss/bootstrap";
2
+
3
+ @use './styles/colors' as *;
4
+ @use './styles/backgrounds' as *;
5
+ @use './styles/buttons' as *;
6
+ @use './styles/tables' as *;
7
+ @use './styles/typography' as *;
8
+ @use './styles/spacing' as *;
9
+ @use './styles/effects' as *;
10
+ @use './styles/material-overrides' as *;
11
+
12
+ @media (max-width: 768px) {
13
+ .mat-header-cell, .mat-cell {
14
+ font-size: 12px;
15
+ padding: 0.25rem;
16
+ }
17
+
18
+ .action-link button {
19
+ padding: 0.25rem !important;
20
+ }
21
+
22
+ .btn-mini-fab mat-icon {
23
+ font-size: 18px;
24
+ }
25
+
26
+ mat-form-field {
27
+ width: 100% !important;
28
+ }
29
+ }
package/ng-package.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/easy-mat-ui",
4
- "lib": {
5
- "entryFile": "src/public-api.ts",
6
- "styleIncludePaths": [
7
- "../../node_modules",
8
- "src/lib/styles"
9
- ]
10
- },
11
- "assets": [
12
- "src/lib/styles/theme.scss",
13
- "node_modules/@angular/material/prebuilt-themes/indigo-pink.css"
14
- ],
15
- "allowedNonPeerDependencies": [
16
- "bootstrap",
17
- "file-saver"
18
- ]
19
- }
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { EasyMatUiComponent } from './easy-mat-ui.component';
4
-
5
- describe('EasyMatUiComponent', () => {
6
- let component: EasyMatUiComponent;
7
- let fixture: ComponentFixture<EasyMatUiComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [EasyMatUiComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(EasyMatUiComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,16 +0,0 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'lib-easy-mat-ui',
5
- imports: [],
6
- template: `
7
- <p>
8
- easy-mat-ui works!
9
- </p>
10
- `,
11
- standalone: true,
12
- styles: ``
13
- })
14
- export class EasyMatUiComponent {
15
-
16
- }
@@ -1,16 +0,0 @@
1
- import { TestBed } from '@angular/core/testing';
2
-
3
- import { EasyMatUiService } from './easy-mat-ui.service';
4
-
5
- describe('EasyMatUiService', () => {
6
- let service: EasyMatUiService;
7
-
8
- beforeEach(() => {
9
- TestBed.configureTestingModule({});
10
- service = TestBed.inject(EasyMatUiService);
11
- });
12
-
13
- it('should be created', () => {
14
- expect(service).toBeTruthy();
15
- });
16
- });
@@ -1,9 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
-
3
- @Injectable({
4
- providedIn: 'root'
5
- })
6
- export class EasyMatUiService {
7
-
8
- constructor() { }
9
- }
@@ -1,102 +0,0 @@
1
- .full-width {
2
- width: 100%;
3
- }
4
-
5
- .select-header {
6
- display: flex;
7
- align-items: center;
8
- padding: 10px;
9
- gap: 8px;
10
- flex-wrap: nowrap;
11
- overflow: hidden;
12
- }
13
-
14
- .search-field {
15
- flex: 1;
16
- min-width: 0;
17
- }
18
-
19
- mat-form-field.search-field {
20
- margin: 0;
21
- }
22
-
23
- .options {
24
- max-height: 200px;
25
- overflow-y: auto;
26
- overflow-x: hidden;
27
- }
28
-
29
- .no-data {
30
- padding: 12px;
31
- color: gray;
32
- font-style: italic;
33
- }
34
-
35
- .select-color {
36
- white-space: nowrap;
37
- }
38
-
39
- ::ng-deep .checkbox-container{
40
- display: flex !important;
41
- align-items: center !important;
42
- }
43
-
44
- ::ng-deep div.mat-mdc-select-panel{
45
- max-height: unset !important;
46
- }
47
-
48
-
49
-
50
-
51
-
52
-
53
- .pd-l-10 {
54
- padding-left: 10px;
55
- }
56
-
57
- .pd-r-10 {
58
- padding-right: 10px;
59
- }
60
-
61
- .pd-t-10 {
62
- padding-top: 10px;
63
- }
64
-
65
- .select-color {
66
- color: #5a0023 !important;
67
- font-weight: 500;
68
- }
69
-
70
- .d-contents {
71
- display: contents;
72
- }
73
-
74
- .no-data {
75
- color: red;
76
- font-weight: bold;
77
- text-align: center;
78
- }
79
-
80
- ::ng-deep .mat-checkbox-layout {
81
- margin-top: 15px;
82
- }
83
-
84
- ::ng-deep .mat-select-panel {
85
- min-width: 100% !important;
86
- }
87
-
88
- ::ng-deep .cdk-overlay-pane {
89
- transform: none !important;
90
- }
91
-
92
- .mat-icon {
93
- color: red !important;
94
- }
95
-
96
- .hover {
97
- cursor: pointer;
98
- }
99
-
100
- ::ng-deep .mat-mdc-form-field-subscript-wrapper.mat-mdc-form-field-bottom-align {
101
- display: none !important;
102
- }
@@ -1,51 +0,0 @@
1
- <mat-form-field class="w-100 underline-style flex-grow-1" [ngClass]="padding" floatLabel="always">
2
- @if (!noPlaceholderNoHint && !hidePlaceholder) {
3
- <mat-label>
4
- {{ title | translate }}
5
- </mat-label>
6
- }
7
- <mat-select [formControl]="multiSelectControl" multiple #opts [panelClass]="uniqueId"
8
- (openedChange)="searchCtrl.setValue('')">
9
- <div class="checkbox-container container-fluid pd-l-10 pd-t-10 w-100 flex-grow-1">
10
- <mat-checkbox
11
- color="primary"
12
- [checked]="selected(opts) === 'all'"
13
- [indeterminate]="selected(opts) === 'some'"
14
- (change)="toggleSelection(opts)"
15
- matTooltip="{{getTooltips(opts) | translate }}"
16
- matTooltipPosition="above">
17
- </mat-checkbox>
18
- <mat-form-field class="w-100 flex-grow-1">
19
- <input matInput #input placeholder="Search" class="w-100 flex-grow-1"
20
- [formControl]="searchCtrl"
21
- (keydown)="onKeydown($event, input)"/>
22
- <mat-icon class="hover" matSuffix (click)="clear()" title="{{'CLEAR' | translate}}">cleaning_services</mat-icon>
23
- </mat-form-field>
24
-
25
- <mat-icon class="hover" matSuffix (click)="opts.close()"
26
- title="{{ 'CLOSE' | translate }}">close
27
- </mat-icon>
28
- </div>
29
- <mat-divider></mat-divider>
30
- <div class="options">
31
- @if (searchCtrl.value && !opts.options?.length) {
32
- <div class="no-data">
33
- {{ 'NO_RESULTS_FOUND' | translate }} "{{ searchCtrl.value }}"
34
- </div>
35
- }
36
- <mat-option class="select-color"
37
- *ngFor="let item of filteredMultiSelect | async "
38
- [value]="item[valueField]"
39
- (onSelectionChange)="onSelectionChange($event)"
40
- >{{ item[displayField] }}
41
- </mat-option
42
- >
43
- </div>
44
- </mat-select>
45
- </mat-form-field>
46
- @if (!noPlaceholderNoHint && data.length === 0) {
47
- <div>
48
- {{ 'NO_OPTIONS' | translate }}
49
- </div>
50
- }
51
-
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { EasyMultiSelect } from './easy-multi-select';
4
-
5
- describe('EasyMultiSelect', () => {
6
- let component: EasyMultiSelect;
7
- let fixture: ComponentFixture<EasyMultiSelect>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [EasyMultiSelect]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(EasyMultiSelect);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });