nexheal-lib 0.0.2 → 0.0.3

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 (62) hide show
  1. package/.editorconfig +17 -0
  2. package/.vscode/extensions.json +4 -0
  3. package/.vscode/launch.json +20 -0
  4. package/.vscode/tasks.json +42 -0
  5. package/README.md +15 -19
  6. package/angular.json +36 -0
  7. package/package.json +47 -23
  8. package/projects/nexheal-lib/README.md +63 -0
  9. package/projects/nexheal-lib/ng-package.json +9 -0
  10. package/projects/nexheal-lib/package.json +12 -0
  11. package/projects/nexheal-lib/src/directives/clickoutside.directive.ts +34 -0
  12. package/projects/nexheal-lib/src/lib/controls/autocomplete-control/autocomplete-control.component.html +52 -0
  13. package/projects/nexheal-lib/src/lib/controls/autocomplete-control/autocomplete-control.component.scss +22 -0
  14. package/projects/nexheal-lib/src/lib/controls/autocomplete-control/autocomplete-control.component.spec.ts +22 -0
  15. package/projects/nexheal-lib/src/lib/controls/autocomplete-control/autocomplete-control.component.ts +367 -0
  16. package/projects/nexheal-lib/src/lib/controls/calendar-control/calendar-control.component.html +152 -0
  17. package/projects/nexheal-lib/src/lib/controls/calendar-control/calendar-control.component.scss +194 -0
  18. package/projects/nexheal-lib/src/lib/controls/calendar-control/calendar-control.component.spec.ts +22 -0
  19. package/projects/nexheal-lib/src/lib/controls/calendar-control/calendar-control.component.ts +759 -0
  20. package/projects/nexheal-lib/src/lib/controls/checkbox-control/checkbox-control.component.html +4 -0
  21. package/projects/nexheal-lib/src/lib/controls/checkbox-control/checkbox-control.component.spec.ts +22 -0
  22. package/projects/nexheal-lib/src/lib/controls/checkbox-control/checkbox-control.component.ts +94 -0
  23. package/projects/nexheal-lib/src/lib/controls/input-control/input-control.component.html +61 -0
  24. package/projects/nexheal-lib/src/lib/controls/input-control/input-control.component.scss +132 -0
  25. package/projects/nexheal-lib/src/lib/controls/input-control/input-control.component.spec.ts +22 -0
  26. package/projects/nexheal-lib/src/lib/controls/input-control/input-control.component.ts +202 -0
  27. package/projects/nexheal-lib/src/lib/controls/multiselect-control/multiselect-control.component.html +72 -0
  28. package/projects/nexheal-lib/src/lib/controls/multiselect-control/multiselect-control.component.scss +90 -0
  29. package/projects/nexheal-lib/src/lib/controls/multiselect-control/multiselect-control.component.spec.ts +22 -0
  30. package/projects/nexheal-lib/src/lib/controls/multiselect-control/multiselect-control.component.ts +482 -0
  31. package/projects/nexheal-lib/src/lib/controls/select-control/select-control.component.html +53 -0
  32. package/projects/nexheal-lib/src/lib/controls/select-control/select-control.component.scss +19 -0
  33. package/projects/nexheal-lib/src/lib/controls/select-control/select-control.component.spec.ts +22 -0
  34. package/projects/nexheal-lib/src/lib/controls/select-control/select-control.component.ts +375 -0
  35. package/projects/nexheal-lib/src/lib/controls/switch-control/switch-control.component.html +4 -0
  36. package/projects/nexheal-lib/src/lib/controls/switch-control/switch-control.component.scss +53 -0
  37. package/projects/nexheal-lib/src/lib/controls/switch-control/switch-control.component.spec.ts +22 -0
  38. package/projects/nexheal-lib/src/lib/controls/switch-control/switch-control.component.ts +93 -0
  39. package/projects/nexheal-lib/src/lib/controls/text-editor/text-editor.component.html +88 -0
  40. package/projects/nexheal-lib/src/lib/controls/text-editor/text-editor.component.scss +122 -0
  41. package/projects/nexheal-lib/src/lib/controls/text-editor/text-editor.component.spec.ts +22 -0
  42. package/projects/nexheal-lib/src/lib/controls/text-editor/text-editor.component.ts +314 -0
  43. package/projects/nexheal-lib/src/lib/controls/textarea-control/textarea-control.component.html +19 -0
  44. package/projects/nexheal-lib/src/lib/controls/textarea-control/textarea-control.component.scss +15 -0
  45. package/projects/nexheal-lib/src/lib/controls/textarea-control/textarea-control.component.spec.ts +22 -0
  46. package/projects/nexheal-lib/src/lib/controls/textarea-control/textarea-control.component.ts +83 -0
  47. package/projects/nexheal-lib/src/public-api.ts +13 -0
  48. package/projects/nexheal-lib/src/styles/nexheal.scss +1 -0
  49. package/projects/nexheal-lib/tsconfig.lib.json +18 -0
  50. package/projects/nexheal-lib/tsconfig.lib.prod.json +11 -0
  51. package/projects/nexheal-lib/tsconfig.spec.json +14 -0
  52. package/tsconfig.json +39 -0
  53. package/fesm2022/nexheal-lib.mjs +0 -2837
  54. package/fesm2022/nexheal-lib.mjs.map +0 -1
  55. package/index.d.ts +0 -498
  56. package/src/styles/fonts/icomoon.eot +0 -0
  57. package/src/styles/fonts/icomoon.svg +0 -46
  58. package/src/styles/fonts/icomoon.ttf +0 -0
  59. package/src/styles/fonts/icomoon.woff +0 -0
  60. package/src/styles/icon.css +0 -133
  61. package/src/styles/nexheal.scss +0 -2
  62. /package/{src → projects/nexheal-lib/src}/styles/_formcontrols.scss +0 -0
@@ -0,0 +1,194 @@
1
+ .form-group {
2
+ &.calendar {
3
+ position: relative;
4
+ .clear {
5
+ top: 9px;
6
+ right: 34px;
7
+ }
8
+ .datepicker-group {
9
+ left: 0;
10
+ width: 100%;
11
+ z-index: 1000;
12
+ z-index: 1000;
13
+ padding: 0.5rem;
14
+ color: #495057;
15
+ min-width: 240px;
16
+ border-radius: 3px;
17
+ background: #ffffff;
18
+ box-shadow:
19
+ 0 2px 4px -1px #0003,
20
+ 0 4px 5px #00000024,
21
+ 0 1px 10px #0000001f;
22
+
23
+ .header {
24
+ display: flex;
25
+ font-weight: 600;
26
+ padding: 5px 5px;
27
+ align-items: center;
28
+ justify-content: space-between;
29
+ border-bottom: 1px solid #dee2e6;
30
+
31
+ .title {
32
+ gap: 8px;
33
+ display: flex;
34
+ font-size: 15px;
35
+ cursor: pointer;
36
+ font-weight: 600;
37
+ }
38
+
39
+ .calendar-arrow {
40
+ width: 28px;
41
+ height: 28px;
42
+ border: none;
43
+ line-height: 1;
44
+ cursor: pointer;
45
+ background: none;
46
+
47
+ i {
48
+ font-size: 14px;
49
+ }
50
+
51
+ &:hover {
52
+ background: #f0f0f0;
53
+ }
54
+ }
55
+ }
56
+ .week-header {
57
+ display: grid;
58
+ padding: 8px 0;
59
+ font-size: 13px;
60
+ font-weight: 700;
61
+ text-align: center;
62
+ grid-template-columns: repeat(7, 1fr);
63
+ }
64
+ .days-grid,
65
+ .month-grid,
66
+ .year-grid {
67
+ gap: 3px;
68
+ padding: 5px;
69
+ display: grid;
70
+ grid-template-columns: repeat(7, 1fr);
71
+
72
+ .day-cell,
73
+ .month-cell,
74
+ .year-cell {
75
+ display: flex;
76
+ font-size: 14px;
77
+ cursor: pointer;
78
+ align-items: center;
79
+ justify-content: center;
80
+
81
+ &.today {
82
+ color: #37c0b3;
83
+ font-weight: bold;
84
+ border: 1px solid #37c0b3;
85
+ }
86
+
87
+ &.selected,
88
+ &:hover {
89
+ color: #ffffff;
90
+ background: #37c0b3;
91
+ }
92
+
93
+ &.disabled {
94
+ color: #e0e0e0;
95
+ background: none;
96
+ user-select: none;
97
+ cursor: not-allowed;
98
+
99
+ &.today {
100
+ color: #37c0b3;
101
+
102
+ &:hover {
103
+ color: #ffffff;
104
+ background: #37c0b3;
105
+ }
106
+ }
107
+
108
+ &:hover {
109
+ color: #e0e0e0;
110
+ background: transparent;
111
+ }
112
+ }
113
+ }
114
+
115
+ .day-cell {
116
+ padding: 5px 2px;
117
+ border-radius: 50%;
118
+ }
119
+
120
+ .month-cell,
121
+ .year-cell {
122
+ padding: 8px 2px;
123
+ border-radius: 3px;
124
+ }
125
+ }
126
+ .month-grid {
127
+ grid-template-columns: repeat(3, 1fr);
128
+ }
129
+ .year-grid {
130
+ grid-template-columns: repeat(4, 1fr);
131
+ }
132
+
133
+ .time-picker {
134
+ display: flex;
135
+ user-select: none;
136
+ align-items: center;
137
+ justify-content: center;
138
+
139
+ .ampm-toggle {
140
+ gap: 6px;
141
+ display: flex;
142
+ margin-left: 1rem;
143
+ flex-direction: column;
144
+ justify-content: center;
145
+
146
+ button {
147
+ cursor: pointer;
148
+ padding: 3px 8px;
149
+ font-size: 0.75rem;
150
+ background: #ffffff;
151
+ border: 1px solid #cccccc;
152
+
153
+ &.active {
154
+ color: #ffffff;
155
+ border-color: #37c0b3;
156
+ background-color: #37c0b3;
157
+ }
158
+ }
159
+ }
160
+
161
+ .time-select {
162
+ display: flex;
163
+ margin: 0 0.75rem;
164
+ align-items: center;
165
+ flex-direction: column;
166
+
167
+ button {
168
+ border: none;
169
+ cursor: pointer;
170
+ padding: 4px 8px;
171
+ background: transparent;
172
+ i {
173
+ font-size: 1rem;
174
+ }
175
+ &:hover {
176
+ background: #f0f0f0;
177
+ }
178
+ }
179
+ .time-value {
180
+ width: 2rem;
181
+ font-size: 1rem;
182
+ text-align: center;
183
+ margin: 2px 3px 4px;
184
+ }
185
+ }
186
+
187
+ .time-separator {
188
+ line-height: 1;
189
+ font-size: 1rem;
190
+ }
191
+ }
192
+ }
193
+ }
194
+ }
@@ -0,0 +1,22 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+ import { CalendarControl } from './calendar-control.component';
3
+
4
+ describe('CalendarControl', () => {
5
+ let component: CalendarControl;
6
+ let fixture: ComponentFixture<CalendarControl>;
7
+
8
+ beforeEach(async () => {
9
+ await TestBed.configureTestingModule({
10
+ imports: [CalendarControl]
11
+ })
12
+ .compileComponents();
13
+
14
+ fixture = TestBed.createComponent(CalendarControl);
15
+ component = fixture.componentInstance;
16
+ fixture.detectChanges();
17
+ });
18
+
19
+ it('should create', () => {
20
+ expect(component).toBeTruthy();
21
+ });
22
+ });