@brickclay-org/ui 0.0.26 → 0.0.28

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/index.d.ts CHANGED
@@ -42,9 +42,9 @@ interface CalendarRange {
42
42
  end: Date;
43
43
  }
44
44
  interface CalendarSelection {
45
- startDate: Date | null;
46
- endDate: Date | null;
47
- selectedDates?: Date[];
45
+ startDate: string | null;
46
+ endDate: string | null;
47
+ selectedDates?: string[];
48
48
  }
49
49
  declare class BkCustomCalendar implements OnInit, OnDestroy, OnChanges {
50
50
  private calendarManager;
@@ -210,8 +210,9 @@ declare class BkCustomCalendar implements OnInit, OnDestroy, OnChanges {
210
210
  applyTimeToDate(date: Date, isStart: boolean): void;
211
211
  onTimeInputFocus(event: any): void;
212
212
  formatAllMinuteInputs(): void;
213
+ formatDateToString(date: Date): string;
213
214
  static ɵfac: i0.ɵɵFactoryDeclaration<BkCustomCalendar, never>;
214
- static ɵcmp: i0.ɵɵComponentDeclaration<BkCustomCalendar, "bk-custom-calendar", never, { "enableTimepicker": { "alias": "enableTimepicker"; "required": false; }; "autoApply": { "alias": "autoApply"; "required": false; }; "closeOnAutoApply": { "alias": "closeOnAutoApply"; "required": false; }; "showCancel": { "alias": "showCancel"; "required": false; }; "linkedCalendars": { "alias": "linkedCalendars"; "required": false; }; "singleDatePicker": { "alias": "singleDatePicker"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "showISOWeekNumbers": { "alias": "showISOWeekNumbers"; "required": false; }; "customRangeDirection": { "alias": "customRangeDirection"; "required": false; }; "lockStartDate": { "alias": "lockStartDate"; "required": false; }; "position": { "alias": "position"; "required": false; }; "drop": { "alias": "drop"; "required": false; }; "dualCalendar": { "alias": "dualCalendar"; "required": false; }; "showRanges": { "alias": "showRanges"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; "enableSeconds": { "alias": "enableSeconds"; "required": false; }; "customRanges": { "alias": "customRanges"; "required": false; }; "multiDateSelection": { "alias": "multiDateSelection"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "opens": { "alias": "opens"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "isDisplayCrossIcon": { "alias": "isDisplayCrossIcon"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "displayFormat": { "alias": "displayFormat"; "required": false; }; }, { "selected": "selected"; "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
215
+ static ɵcmp: i0.ɵɵComponentDeclaration<BkCustomCalendar, "bk-custom-calendar", never, { "enableTimepicker": { "alias": "enableTimepicker"; "required": false; }; "autoApply": { "alias": "autoApply"; "required": false; }; "closeOnAutoApply": { "alias": "closeOnAutoApply"; "required": false; }; "showCancel": { "alias": "showCancel"; "required": false; }; "linkedCalendars": { "alias": "linkedCalendars"; "required": false; }; "singleDatePicker": { "alias": "singleDatePicker"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "showISOWeekNumbers": { "alias": "showISOWeekNumbers"; "required": false; }; "customRangeDirection": { "alias": "customRangeDirection"; "required": false; }; "lockStartDate": { "alias": "lockStartDate"; "required": false; }; "position": { "alias": "position"; "required": false; }; "drop": { "alias": "drop"; "required": false; }; "dualCalendar": { "alias": "dualCalendar"; "required": false; }; "showRanges": { "alias": "showRanges"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; "enableSeconds": { "alias": "enableSeconds"; "required": false; }; "customRanges": { "alias": "customRanges"; "required": false; }; "multiDateSelection": { "alias": "multiDateSelection"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "opens": { "alias": "opens"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "isDisplayCrossIcon": { "alias": "isDisplayCrossIcon"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "displayFormat": { "alias": "displayFormat"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; }, { "selected": "selected"; "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
215
216
  }
216
217
 
217
218
  interface TimeConfiguration {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brickclay-org/ui",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0 <=21.0.0",
6
6
  "@angular/core": ">=17.0.0 <=21.0.0",
@@ -1,128 +0,0 @@
1
- /* Container */
2
- .ng-select-container {
3
- @apply relative w-full box-border;
4
- }
5
-
6
- /* Control */
7
- .ng-select-control {
8
- @apply flex items-center justify-between gap-2 w-full bg-white border border-[#E3E3E7] rounded transition-all duration-200 px-3 py-[9.2px] cursor-pointer;
9
-
10
- &.focused { @apply border-[#6B7080] shadow-none z-10; }
11
- &.disabled { @apply bg-[#F4F4F6] cursor-not-allowed opacity-60; }
12
- }
13
-
14
- /* Value Container */
15
- .ng-value-container {
16
- @apply flex flex-1 items-center flex-wrap gap-1 relative overflow-hidden h-full;
17
- }
18
-
19
- .ng-placeholder {
20
- @apply text-[#6B7080] font-normal text-sm truncate w-full pointer-events-none;
21
- }
22
- .ng-value-label-single{
23
- @apply font-normal text-sm text-[#141414] truncate w-full;
24
- }
25
-
26
- /* --- NEW: Single Value --- */
27
- .ng-value-label-single {
28
- @apply font-normal text-sm text-[#141414] truncate w-full;
29
- }
30
- /* --- NEW: Multi Select Chips --- */
31
- .ng-value-chips {
32
- @apply flex flex-wrap gap-1 w-full;
33
- }
34
-
35
- .ng-value-chip {
36
- @apply flex items-center bg-gray-100 border border-gray-200 rounded px-2 py-0.5 max-w-full;
37
- }
38
-
39
- .ng-value-chip .ng-value-label {
40
- @apply text-[#15191E] truncate max-w-[150px];
41
- }
42
-
43
- .ng-value-chip .ng-value-icon {
44
- @apply ml-1 text-gray-500 hover:text-red-500 cursor-pointer text-base font-bold leading-none px-1;
45
- }
46
-
47
- /* Actions */
48
- .ng-actions {
49
- @apply flex items-center gap-0.5 flex-shrink-0;
50
- }
51
- .ng-clear-wrapper { @apply text-gray-400 hover:text-red-500 cursor-pointer; }
52
- .ng-arrow-wrapper { @apply text-gray-400 transition-transform duration-200; &.open { @apply rotate-180; }}
53
-
54
- /* Dropdown */
55
- .custom-ng-dropdown-panel {
56
- @apply absolute left-0 w-full bg-white border border-[#E3E3E7] rounded-xl shadow-lg z-[99] overflow-hidden cursor-default;
57
- }
58
-
59
- .ng-dropdown-search { @apply px-2 pt-2;}
60
- .ng-search-wrapper { @apply flex items-center border border-[#E3E3E7] rounded-md px-3 py-[7px] bg-white transition-colors focus-within:border-[#E3E3E7]; }
61
- .ng-search-input { @apply w-full outline-none font-normal text-sm text-[#141414] placeholder-[#A1A3AE] bg-transparent;}
62
-
63
- .ng-options-list { @apply max-h-60 overflow-auto relative p-2.5 mb-3.5; }
64
-
65
- /* Options */
66
- .ng-option {
67
- @apply flex items-center p-2.5 cursor-pointer transition-colors font-normal text-sm text-[#141414];
68
- &:hover, &.marked { @apply bg-[#F8F8F8] rounded-md;}
69
- &.selected { @apply bg-[#F8F8F8] rounded-md; }
70
- }
71
-
72
- .ng-option-disabled { @apply px-3 py-2 text-gray-400 cursor-default; }
73
-
74
-
75
-
76
- /* ... Previous styles ... */
77
-
78
- .ng-value-chip.remaining-count {
79
- @apply bg-gray-200 text-gray-600 font-semibold cursor-default;
80
- }
81
-
82
- /* Select All Row (Sticky Top) */
83
- .select-all-option {
84
- @apply sticky top-0 z-20 flex items-center px-3 py-2 cursor-pointer border-b border-[#E3E6EE] bg-gray-50 text-[#15191E];
85
-
86
- &:hover {
87
- @apply bg-gray-100;
88
- }
89
- }
90
-
91
- .custom-ng-dropdown-panel[data-position="top"] {
92
- margin-top: 0;
93
- margin-bottom: 4px;
94
- }
95
-
96
- .input-label {
97
- @apply text-sm font-medium text-[#141414] tracking-[-0.28px] mb-1.5 inline-block;
98
- }
99
-
100
- .input-label-required {
101
- @apply text-[#E7000B];
102
- }
103
-
104
-
105
- /* width */
106
- ::-webkit-scrollbar {
107
- width: 10px;
108
- }
109
-
110
- /* Track */
111
- ::-webkit-scrollbar-track {
112
- background: transparent;
113
- border-radius: 8px;
114
- width: 8px;
115
- }
116
-
117
- /* Handle */
118
- ::-webkit-scrollbar-thumb {
119
- background: #D6D7DC;
120
- border-radius: 8px;
121
- transition: 0.3s ease-in-out;
122
-
123
- }
124
-
125
- /* Handle on hover */
126
- ::-webkit-scrollbar-thumb:hover {
127
- background: #909090;
128
- }