@enigmatry/entry-components 16.1.1-preview.3 → 16.1.1-preview.4

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 (42) hide show
  1. package/common/common.module.d.ts +3 -1
  2. package/common/date-time/entry-date-time-adapter.d.ts +12 -7
  3. package/common/date-time/entry-date-time-formats.d.ts +25 -0
  4. package/common/date-time/entry-time-adapter.d.ts +9 -0
  5. package/common/date-time/index.d.ts +4 -2
  6. package/common/date-time/native-time-adapter.d.ts +13 -0
  7. package/common/directives/index.d.ts +2 -0
  8. package/common/directives/ng-control-accessor.directive.d.ts +12 -0
  9. package/common/directives/noop-control-value-accessor.d.ts +10 -0
  10. package/date-time-picker/README.md +69 -0
  11. package/date-time-picker/date-time-picker.component.d.ts +35 -0
  12. package/date-time-picker/date-time-picker.module.d.ts +16 -0
  13. package/date-time-picker/index.d.ts +5 -0
  14. package/date-time-picker/public-api.d.ts +2 -0
  15. package/date-time-picker/time-picker.component.d.ts +26 -0
  16. package/esm2022/common/common.module.mjs +11 -3
  17. package/esm2022/common/date-time/entry-date-time-adapter.mjs +30 -12
  18. package/esm2022/common/date-time/entry-date-time-formats.mjs +14 -0
  19. package/esm2022/common/date-time/entry-time-adapter.mjs +10 -0
  20. package/esm2022/common/date-time/index.mjs +5 -3
  21. package/esm2022/common/date-time/native-time-adapter.mjs +31 -0
  22. package/esm2022/common/directives/index.mjs +3 -1
  23. package/esm2022/common/directives/ng-control-accessor.directive.mjs +46 -0
  24. package/esm2022/common/directives/noop-control-value-accessor.mjs +32 -0
  25. package/esm2022/date-time-picker/date-time-picker.component.mjs +126 -0
  26. package/esm2022/date-time-picker/date-time-picker.module.mjs +58 -0
  27. package/esm2022/date-time-picker/enigmatry-entry-components-date-time-picker.mjs +5 -0
  28. package/esm2022/date-time-picker/public-api.mjs +3 -0
  29. package/esm2022/date-time-picker/time-picker.component.mjs +80 -0
  30. package/esm2022/search-filter/date-time/date-time-search-filter.component.mjs +4 -4
  31. package/fesm2022/enigmatry-entry-components-common.mjs +158 -16
  32. package/fesm2022/enigmatry-entry-components-common.mjs.map +1 -1
  33. package/fesm2022/enigmatry-entry-components-date-time-picker.mjs +258 -0
  34. package/fesm2022/enigmatry-entry-components-date-time-picker.mjs.map +1 -0
  35. package/fesm2022/enigmatry-entry-components-search-filter.mjs +3 -3
  36. package/fesm2022/enigmatry-entry-components-search-filter.mjs.map +1 -1
  37. package/package.json +95 -89
  38. package/styles/partials/core/components/_index.scss +2 -1
  39. package/styles/partials/core/components/date-time-picker/_general.scss +65 -0
  40. package/styles/partials/core/components/forms/_general.scss +0 -4
  41. package/common/date-time/entry-date-time.d.ts +0 -7
  42. package/esm2022/common/date-time/entry-date-time.mjs +0 -3
package/package.json CHANGED
@@ -1,96 +1,102 @@
1
1
  {
2
- "name": "@enigmatry/entry-components",
3
- "version": "16.1.1-preview.3",
4
- "author": "Enigmatry",
5
- "description": "Enigmatry entry angular material components",
6
- "homepage": "https://github.com/enigmatry/entry-angular-building-blocks/tree/master/libs/entry-components#readme",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/enigmatry/entry-angular-building-blocks.git"
10
- },
11
- "license": "Apache-2.0",
12
- "peerDependencies": {
13
- "@angular/animations": "^16.0.0",
14
- "@angular/cdk": "^16.0.0",
15
- "@angular/common": "^16.0.0",
16
- "@angular/core": "^16.0.0",
17
- "@angular/material": "^16.0.0",
18
- "@angular/forms": "^16.0.0",
19
- "@angular/platform-browser": "^16.0.0",
20
- "lodash-es": "^4.17.21"
21
- },
22
- "dependencies": {
23
- "tslib": "^2.3.0"
24
- },
25
- "publishConfig": {
26
- "access": "public"
27
- },
28
- "module": "fesm2022/enigmatry-entry-components.mjs",
29
- "typings": "index.d.ts",
30
- "exports": {
31
- "./package.json": {
32
- "default": "./package.json"
2
+ "name": "@enigmatry/entry-components",
3
+ "version": "16.1.1-preview.4",
4
+ "author": "Enigmatry",
5
+ "description": "Enigmatry entry angular material components",
6
+ "homepage": "https://github.com/enigmatry/entry-angular-building-blocks/tree/master/libs/entry-components#readme",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/enigmatry/entry-angular-building-blocks.git"
33
10
  },
34
- ".": {
35
- "types": "./index.d.ts",
36
- "esm2022": "./esm2022/enigmatry-entry-components.mjs",
37
- "esm": "./esm2022/enigmatry-entry-components.mjs",
38
- "default": "./fesm2022/enigmatry-entry-components.mjs"
11
+ "license": "Apache-2.0",
12
+ "peerDependencies": {
13
+ "@angular/animations": "^16.0.0",
14
+ "@angular/cdk": "^16.0.0",
15
+ "@angular/common": "^16.0.0",
16
+ "@angular/core": "^16.0.0",
17
+ "@angular/material": "^16.0.0",
18
+ "@angular/forms": "^16.0.0",
19
+ "@angular/platform-browser": "^16.0.0",
20
+ "lodash-es": "^4.17.21"
39
21
  },
40
- "./button": {
41
- "types": "./button/index.d.ts",
42
- "esm2022": "./esm2022/button/enigmatry-entry-components-button.mjs",
43
- "esm": "./esm2022/button/enigmatry-entry-components-button.mjs",
44
- "default": "./fesm2022/enigmatry-entry-components-button.mjs"
22
+ "dependencies": {
23
+ "tslib": "^2.3.0"
45
24
  },
46
- "./common": {
47
- "types": "./common/index.d.ts",
48
- "esm2022": "./esm2022/common/enigmatry-entry-components-common.mjs",
49
- "esm": "./esm2022/common/enigmatry-entry-components-common.mjs",
50
- "default": "./fesm2022/enigmatry-entry-components-common.mjs"
25
+ "publishConfig": {
26
+ "access": "public"
51
27
  },
52
- "./dialog": {
53
- "types": "./dialog/index.d.ts",
54
- "esm2022": "./esm2022/dialog/enigmatry-entry-components-dialog.mjs",
55
- "esm": "./esm2022/dialog/enigmatry-entry-components-dialog.mjs",
56
- "default": "./fesm2022/enigmatry-entry-components-dialog.mjs"
28
+ "module": "fesm2022/enigmatry-entry-components.mjs",
29
+ "typings": "index.d.ts",
30
+ "exports": {
31
+ "./package.json": {
32
+ "default": "./package.json"
33
+ },
34
+ ".": {
35
+ "types": "./index.d.ts",
36
+ "esm2022": "./esm2022/enigmatry-entry-components.mjs",
37
+ "esm": "./esm2022/enigmatry-entry-components.mjs",
38
+ "default": "./fesm2022/enigmatry-entry-components.mjs"
39
+ },
40
+ "./button": {
41
+ "types": "./button/index.d.ts",
42
+ "esm2022": "./esm2022/button/enigmatry-entry-components-button.mjs",
43
+ "esm": "./esm2022/button/enigmatry-entry-components-button.mjs",
44
+ "default": "./fesm2022/enigmatry-entry-components-button.mjs"
45
+ },
46
+ "./common": {
47
+ "types": "./common/index.d.ts",
48
+ "esm2022": "./esm2022/common/enigmatry-entry-components-common.mjs",
49
+ "esm": "./esm2022/common/enigmatry-entry-components-common.mjs",
50
+ "default": "./fesm2022/enigmatry-entry-components-common.mjs"
51
+ },
52
+ "./date-time-picker": {
53
+ "types": "./date-time-picker/index.d.ts",
54
+ "esm2022": "./esm2022/date-time-picker/enigmatry-entry-components-date-time-picker.mjs",
55
+ "esm": "./esm2022/date-time-picker/enigmatry-entry-components-date-time-picker.mjs",
56
+ "default": "./fesm2022/enigmatry-entry-components-date-time-picker.mjs"
57
+ },
58
+ "./dialog": {
59
+ "types": "./dialog/index.d.ts",
60
+ "esm2022": "./esm2022/dialog/enigmatry-entry-components-dialog.mjs",
61
+ "esm": "./esm2022/dialog/enigmatry-entry-components-dialog.mjs",
62
+ "default": "./fesm2022/enigmatry-entry-components-dialog.mjs"
63
+ },
64
+ "./file-input": {
65
+ "types": "./file-input/index.d.ts",
66
+ "esm2022": "./esm2022/file-input/enigmatry-entry-components-file-input.mjs",
67
+ "esm": "./esm2022/file-input/enigmatry-entry-components-file-input.mjs",
68
+ "default": "./fesm2022/enigmatry-entry-components-file-input.mjs"
69
+ },
70
+ "./permissions": {
71
+ "types": "./permissions/index.d.ts",
72
+ "esm2022": "./esm2022/permissions/enigmatry-entry-components-permissions.mjs",
73
+ "esm": "./esm2022/permissions/enigmatry-entry-components-permissions.mjs",
74
+ "default": "./fesm2022/enigmatry-entry-components-permissions.mjs"
75
+ },
76
+ "./search-filter": {
77
+ "types": "./search-filter/index.d.ts",
78
+ "esm2022": "./esm2022/search-filter/enigmatry-entry-components-search-filter.mjs",
79
+ "esm": "./esm2022/search-filter/enigmatry-entry-components-search-filter.mjs",
80
+ "default": "./fesm2022/enigmatry-entry-components-search-filter.mjs"
81
+ },
82
+ "./spinner": {
83
+ "types": "./spinner/index.d.ts",
84
+ "esm2022": "./esm2022/spinner/enigmatry-entry-components-spinner.mjs",
85
+ "esm": "./esm2022/spinner/enigmatry-entry-components-spinner.mjs",
86
+ "default": "./fesm2022/enigmatry-entry-components-spinner.mjs"
87
+ },
88
+ "./table": {
89
+ "types": "./table/index.d.ts",
90
+ "esm2022": "./esm2022/table/enigmatry-entry-components-table.mjs",
91
+ "esm": "./esm2022/table/enigmatry-entry-components-table.mjs",
92
+ "default": "./fesm2022/enigmatry-entry-components-table.mjs"
93
+ },
94
+ "./validation": {
95
+ "types": "./validation/index.d.ts",
96
+ "esm2022": "./esm2022/validation/enigmatry-entry-components-validation.mjs",
97
+ "esm": "./esm2022/validation/enigmatry-entry-components-validation.mjs",
98
+ "default": "./fesm2022/enigmatry-entry-components-validation.mjs"
99
+ }
57
100
  },
58
- "./file-input": {
59
- "types": "./file-input/index.d.ts",
60
- "esm2022": "./esm2022/file-input/enigmatry-entry-components-file-input.mjs",
61
- "esm": "./esm2022/file-input/enigmatry-entry-components-file-input.mjs",
62
- "default": "./fesm2022/enigmatry-entry-components-file-input.mjs"
63
- },
64
- "./permissions": {
65
- "types": "./permissions/index.d.ts",
66
- "esm2022": "./esm2022/permissions/enigmatry-entry-components-permissions.mjs",
67
- "esm": "./esm2022/permissions/enigmatry-entry-components-permissions.mjs",
68
- "default": "./fesm2022/enigmatry-entry-components-permissions.mjs"
69
- },
70
- "./search-filter": {
71
- "types": "./search-filter/index.d.ts",
72
- "esm2022": "./esm2022/search-filter/enigmatry-entry-components-search-filter.mjs",
73
- "esm": "./esm2022/search-filter/enigmatry-entry-components-search-filter.mjs",
74
- "default": "./fesm2022/enigmatry-entry-components-search-filter.mjs"
75
- },
76
- "./spinner": {
77
- "types": "./spinner/index.d.ts",
78
- "esm2022": "./esm2022/spinner/enigmatry-entry-components-spinner.mjs",
79
- "esm": "./esm2022/spinner/enigmatry-entry-components-spinner.mjs",
80
- "default": "./fesm2022/enigmatry-entry-components-spinner.mjs"
81
- },
82
- "./table": {
83
- "types": "./table/index.d.ts",
84
- "esm2022": "./esm2022/table/enigmatry-entry-components-table.mjs",
85
- "esm": "./esm2022/table/enigmatry-entry-components-table.mjs",
86
- "default": "./fesm2022/enigmatry-entry-components-table.mjs"
87
- },
88
- "./validation": {
89
- "types": "./validation/index.d.ts",
90
- "esm2022": "./esm2022/validation/enigmatry-entry-components-validation.mjs",
91
- "esm": "./esm2022/validation/enigmatry-entry-components-validation.mjs",
92
- "default": "./fesm2022/enigmatry-entry-components-validation.mjs"
93
- }
94
- },
95
- "sideEffects": false
101
+ "sideEffects": false
96
102
  }
@@ -1,4 +1,5 @@
1
1
  @use 'dialogs/general' as dialogs;
2
2
  @use 'tables/general' as tables;
3
3
  @use 'forms/general' as forms;
4
- @use 'search-filter/general' as search-filter;
4
+ @use 'search-filter/general' as search-filter;
5
+ @use 'date-time-picker/general' as date-time-picker;
@@ -0,0 +1,65 @@
1
+ @use '@angular/material' as mat;
2
+ @use '@enigmatry/scss-foundation/src/modules/display/items';
3
+
4
+ .entry-date-time-picker {
5
+ @include items.fully-align(baseline, space-between, row, nowrap);
6
+
7
+ .hidden,
8
+ .mat-mdc-text-field-wrapper.mdc-text-field--outlined .hidden.mdc-text-field__input {
9
+ display: none;
10
+ }
11
+ }
12
+
13
+ .mat-datepicker-actions {
14
+ flex-direction: column;
15
+ border-top: 1px solid #D1D1D1;
16
+
17
+ .entry-submit-button {
18
+ min-width: 48px;
19
+ align-self: flex-end;
20
+
21
+ .icon {
22
+ margin: 0;
23
+ }
24
+ }
25
+ }
26
+
27
+ .entry-time-picker {
28
+ @include mat.form-field-density(-3);
29
+
30
+ display: flex;
31
+ flex-wrap: nowrap;
32
+ margin-top: 20px;
33
+
34
+ .mat-mdc-form-field {
35
+ flex: 1 1 calc(50% - 15px);
36
+ margin-right: 15px;
37
+ width: 50px;
38
+
39
+ &:last-of-type {
40
+ margin-right: 0;
41
+ }
42
+
43
+ .mdc-text-field {
44
+ padding-left: 12px;
45
+ padding-right: 0;
46
+ }
47
+
48
+ .mat-mdc-select-value-text {
49
+ font-size: 13px;
50
+ }
51
+
52
+ .mdc-text-field--filled:not(.mdc-text-field--disabled) {
53
+ background-color: transparent;
54
+ }
55
+
56
+ &:hover .mat-mdc-form-field-focus-overlay {
57
+ opacity: 0;
58
+ }
59
+ }
60
+
61
+ .time-separator {
62
+ @include items.align-center();
63
+ transform: translate(-7px, -10px);
64
+ }
65
+ }
@@ -21,8 +21,4 @@
21
21
  bottom: 8px;
22
22
  }
23
23
  }
24
- }
25
-
26
- .entry-date-time-picker {
27
- @include items.fully-align(baseline, space-between, row, nowrap);
28
24
  }
@@ -1,7 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { MatDateFormats } from '@angular/material/core';
3
- export declare type EntryMatDateTime<D> = {
4
- matDateFormats: MatDateFormats;
5
- compareDate(first: D, second: D): number;
6
- };
7
- export declare const ENTRY_MAT_DATE_TIME: InjectionToken<EntryMatDateTime<any>>;
@@ -1,3 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export const ENTRY_MAT_DATE_TIME = new InjectionToken('');
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50cnktZGF0ZS10aW1lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9lbnRyeS1jb21wb25lbnRzL2NvbW1vbi9kYXRlLXRpbWUvZW50cnktZGF0ZS10aW1lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFRL0MsTUFBTSxDQUFDLE1BQU0sbUJBQW1CLEdBQUcsSUFBSSxjQUFjLENBQXdCLEVBQUUsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IE1hdERhdGVGb3JtYXRzIH0gZnJvbSAnQGFuZ3VsYXIvbWF0ZXJpYWwvY29yZSc7XG5cbmV4cG9ydCBkZWNsYXJlIHR5cGUgRW50cnlNYXREYXRlVGltZTxEPiA9IHtcbiAgICBtYXREYXRlRm9ybWF0czogTWF0RGF0ZUZvcm1hdHM7XG4gICAgY29tcGFyZURhdGUoZmlyc3Q6IEQsIHNlY29uZDogRCk6IG51bWJlcjtcbn07XG5cbmV4cG9ydCBjb25zdCBFTlRSWV9NQVRfREFURV9USU1FID0gbmV3IEluamVjdGlvblRva2VuPEVudHJ5TWF0RGF0ZVRpbWU8YW55Pj4oJycpO1xuIl19