@capillarytech/blaze-ui 6.4.0 → 6.5.0

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 (109) hide show
  1. package/CapDateRangePicker/index.d.ts.map +1 -1
  2. package/CapDateRangePicker/index.js +5 -1
  3. package/CapDateRangePicker/styles.css +28 -0
  4. package/CapDateRangePicker/styles.module.scss.js +2 -1
  5. package/CapDateRangePicker/styles.scss +37 -0
  6. package/CapDateRangePicker/types.d.ts +5 -0
  7. package/CapDateRangePicker/types.d.ts.map +1 -1
  8. package/CapDragAndDrop/index.d.ts +19 -3
  9. package/CapDragAndDrop/index.d.ts.map +1 -1
  10. package/CapDragAndDrop/index.js +29 -24
  11. package/CapDragAndDrop/styles.css +15 -17
  12. package/CapDragAndDrop/styles.scss +16 -18
  13. package/CapMobileDateRangePicker/DateRangeInputSelectors.d.ts +7 -0
  14. package/CapMobileDateRangePicker/DateRangeInputSelectors.d.ts.map +1 -0
  15. package/CapMobileDateRangePicker/DateRangeInputSelectors.js +68 -0
  16. package/CapMobileDateRangePicker/ReactMobileDatePickerModule.d.ts.map +1 -1
  17. package/CapMobileDateRangePicker/ReactMobileDatePickerModule.js +2 -1
  18. package/CapMobileDateRangePicker/index.d.ts +5 -21
  19. package/CapMobileDateRangePicker/index.d.ts.map +1 -1
  20. package/CapMobileDateRangePicker/index.js +256 -309
  21. package/CapMobileDateRangePicker/messages.d.ts +17 -0
  22. package/CapMobileDateRangePicker/messages.d.ts.map +1 -0
  23. package/CapMobileDateRangePicker/messages.js +20 -0
  24. package/CapMobileDateRangePicker/styles.css +107 -144
  25. package/CapMobileDateRangePicker/styles.module.scss.js +21 -0
  26. package/CapMobileDateRangePicker/styles.scss +188 -192
  27. package/CapMobileDateRangePicker/tests/CapMobileDateRangePicker.mockData.d.ts +18 -0
  28. package/CapMobileDateRangePicker/tests/CapMobileDateRangePicker.mockData.d.ts.map +1 -0
  29. package/CapMobileDateRangePicker/types.d.ts +95 -0
  30. package/CapMobileDateRangePicker/types.d.ts.map +1 -0
  31. package/CapMobileDateRangePicker/utils.d.ts +3 -0
  32. package/CapMobileDateRangePicker/utils.d.ts.map +1 -0
  33. package/CapMobileDateRangePicker/utils.js +5 -0
  34. package/CapPopoverTree/index.d.ts +3 -40
  35. package/CapPopoverTree/index.d.ts.map +1 -1
  36. package/CapPopoverTree/index.js +72 -82
  37. package/CapPopoverTree/style.d.ts +5 -1
  38. package/CapPopoverTree/style.d.ts.map +1 -1
  39. package/CapPopoverTree/styles.css +119 -18
  40. package/CapPopoverTree/styles.module.scss.js +26 -0
  41. package/CapPopoverTree/styles.scss +179 -31
  42. package/CapPopoverTree/tests/CapPopoverTree.mockData.d.ts +22 -0
  43. package/CapPopoverTree/tests/CapPopoverTree.mockData.d.ts.map +1 -0
  44. package/CapPopoverTree/types.d.ts +62 -0
  45. package/CapPopoverTree/types.d.ts.map +1 -0
  46. package/CapTimeline/CapTimelineCard.d.ts +27 -4
  47. package/CapTimeline/CapTimelineCard.d.ts.map +1 -1
  48. package/CapTimeline/CapTimelineCard.js +157 -40
  49. package/CapTimeline/CapTimelinePanesWrapper.d.ts +25 -4
  50. package/CapTimeline/CapTimelinePanesWrapper.d.ts.map +1 -1
  51. package/CapTimeline/CapTimelinePanesWrapper.js +20 -24
  52. package/CapTimeline/index.d.ts +17 -2
  53. package/CapTimeline/index.d.ts.map +1 -1
  54. package/CapTimeline/index.js +23 -62
  55. package/CapTimeline/styles.css +40 -40
  56. package/CapTimeline/styles.scss +57 -76
  57. package/CapVirtualSelect/actions.d.ts +16 -0
  58. package/CapVirtualSelect/actions.d.ts.map +1 -0
  59. package/CapVirtualSelect/actions.js +21 -0
  60. package/CapVirtualSelect/constants.d.ts +13 -0
  61. package/CapVirtualSelect/constants.d.ts.map +1 -0
  62. package/CapVirtualSelect/constants.js +26 -0
  63. package/CapVirtualSelect/index.d.ts +169 -0
  64. package/CapVirtualSelect/index.d.ts.map +1 -0
  65. package/CapVirtualSelect/index.js +409 -0
  66. package/CapVirtualSelect/messages.d.ts +9 -0
  67. package/CapVirtualSelect/messages.d.ts.map +1 -0
  68. package/CapVirtualSelect/messages.js +12 -0
  69. package/CapVirtualSelect/reducer.d.ts +4 -0
  70. package/CapVirtualSelect/reducer.d.ts.map +1 -0
  71. package/CapVirtualSelect/reducer.js +63 -0
  72. package/CapVirtualSelect/saga.d.ts +40 -0
  73. package/CapVirtualSelect/saga.d.ts.map +1 -0
  74. package/CapVirtualSelect/saga.js +91 -0
  75. package/CapVirtualSelect/selectors.d.ts +28 -0
  76. package/CapVirtualSelect/selectors.d.ts.map +1 -0
  77. package/CapVirtualSelect/selectors.js +30 -0
  78. package/CapVirtualSelect/styles.css +110 -0
  79. package/CapVirtualSelect/styles.scss +106 -0
  80. package/CapVirtualSelect/tests/mockData.d.ts +7 -0
  81. package/CapVirtualSelect/tests/mockData.d.ts.map +1 -0
  82. package/CapVirtualSelect/utils.d.ts +2 -0
  83. package/CapVirtualSelect/utils.d.ts.map +1 -0
  84. package/CapVirtualSelect/utils.js +12 -0
  85. package/index.d.ts +2 -4
  86. package/index.d.ts.map +1 -1
  87. package/index.js +97 -99
  88. package/package.json +1 -1
  89. package/utils/dayjs.d.ts +29 -0
  90. package/utils/dayjs.d.ts.map +1 -1
  91. package/utils/dayjs.js +30 -0
  92. package/utils/getCapThemeConfig.d.ts.map +1 -1
  93. package/utils/getCapThemeConfig.js +1 -9
  94. package/CapDragAndDrop/messages.d.ts +0 -25
  95. package/CapDragAndDrop/messages.d.ts.map +0 -1
  96. package/CapDragAndDrop/messages.js +0 -28
  97. package/CapDragAndDrop/styles.module.scss.js +0 -21
  98. package/CapDragAndDrop/types.d.ts +0 -17
  99. package/CapDragAndDrop/types.d.ts.map +0 -1
  100. package/CapTimeline/messages.d.ts +0 -21
  101. package/CapTimeline/messages.d.ts.map +0 -1
  102. package/CapTimeline/messages.js +0 -24
  103. package/CapTimeline/styles.module.scss.js +0 -30
  104. package/CapTimeline/tests/CapTimeline.mockData.d.ts +0 -14
  105. package/CapTimeline/tests/CapTimeline.mockData.d.ts.map +0 -1
  106. package/CapTimeline/types.d.ts +0 -60
  107. package/CapTimeline/types.d.ts.map +0 -1
  108. /package/{CapDragAndDrop → CapMobileDateRangePicker}/types.js +0 -0
  109. /package/{CapTimeline → CapPopoverTree}/types.js +0 -0
@@ -6,8 +6,11 @@
6
6
  /* Border Width */
7
7
  /* Transition */
8
8
  /* Timezones Footer */
9
- .cap-timeline-v1-body .ant-timeline-item-rail {
10
- top: 2.1rem !important;
9
+ .cap-timeline-v1-body .ant-timeline-item-head-custom {
10
+ top: 1.428rem;
11
+ }
12
+ .cap-timeline-v1-body .ant-timeline-item-tail {
13
+ top: 1.857rem;
11
14
  }
12
15
  .cap-timeline-card-v1-pane-selected {
13
16
  background-color: #e9f0fe;
@@ -31,7 +34,6 @@
31
34
  .cap-timeline-panes-wrapper-v1-right-pane-col {
32
35
  height: 74vh;
33
36
  overflow: auto;
34
- color: rgba(0, 0, 0, 0.65);
35
37
  }
36
38
  .cap-timeline-panes-wrapper-v1-left-pane-col {
37
39
  width: 39%;
@@ -44,19 +46,17 @@
44
46
  margin-left: 1.428rem;
45
47
  margin-right: 1.714rem;
46
48
  }
47
- .cap-timeline-panes-wrapper-v1-divider-col .cap-timeline-panes-wrapper-v1-timelinePane-divider {
49
+ .cap-timeline-panes-wrapper-v1-divider-col .cap-timeline-panes-wrapper-v1-timelinePane-divider,
50
+ .cap-timeline-panes-wrapper-v1-divider-col .ant-divider ant-divider-vertical {
48
51
  margin: 0;
49
52
  }
50
- .ant-timeline-item.cap-timeline-card-v1-division .ant-timeline-item-icon {
51
- border: 0.071rem solid #dfe2e7 !important;
52
- border-radius: 50% !important;
53
- padding: 0.214rem 0.214rem !important;
54
- width: 1.714rem !important;
55
- height: 1.714rem !important;
53
+ .cap-timeline-card-v1-division {
54
+ margin-bottom: 0.857rem;
56
55
  }
57
- .ant-timeline-item.cap-timeline-card-v1-warning-division .ant-timeline-item-icon {
58
- border: 0.071rem solid #ea213a !important;
59
- border-radius: 50% !important;
56
+ .cap-timeline-card-v1-division .ant-timeline-item-head {
57
+ border: 0.143rem solid #dfe2e7;
58
+ border-width: 0.071rem;
59
+ border-radius: 50%;
60
60
  padding: 0.214rem 0.214rem !important;
61
61
  width: 1.714rem !important;
62
62
  height: 1.714rem !important;
@@ -73,7 +73,6 @@
73
73
  }
74
74
  .cap-timeline-panes-wrapper-v1-pane-wrapper {
75
75
  display: flex;
76
- flex-wrap: nowrap;
77
76
  }
78
77
  .cap-timeline-card-v1-disabled-timeline-item {
79
78
  cursor: not-allowed;
@@ -84,55 +83,56 @@
84
83
  .cap-timeline-card-v1-enabled-card:hover {
85
84
  background-color: #faf9f4;
86
85
  }
86
+ .cap-timeline-card-v1-warning-card {
87
+ border-color: #ea213a;
88
+ }
87
89
  .cap-timeline-card-v1-icon-parent {
88
90
  border-radius: 2.857rem;
89
91
  border-color: beige;
90
92
  }
91
- .cap-timeline-card-v1-card-body .ant-card-body,
92
- .cap-timeline-card-v1-card-body .cap-card-wrapper .ant-card .ant-card-body {
93
- padding: 0.571rem 1.142rem !important;
94
- color: rgba(0, 0, 0, 0.65);
93
+ .cap-timeline-card-v1-card-body .ant-card-body {
94
+ padding: 0.571rem 1.142rem;
95
95
  }
96
- .cap-timeline-card-v1-last-pane .ant-timeline-item-rail {
96
+ .cap-timeline-card-v1-last-pane .ant-timeline-item-tail {
97
97
  display: none;
98
98
  }
99
- .cap-timeline-card-v1-completed-tail .ant-timeline-item-rail {
100
- border-inline-start: 0.143rem solid #42b040;
99
+ .cap-timeline-card-v1-completed-tail .ant-timeline-item-tail {
101
100
  border-left: 0.143rem solid #42b040;
102
101
  }
103
- .cap-timeline-card-v1-warning-tail .ant-timeline-item-rail {
104
- border-inline-start: 0.143rem solid #e8e8e8;
102
+ .cap-timeline-card-v1-warning-tail .ant-timeline-item-tail {
105
103
  border-left: 0.143rem solid #e8e8e8;
106
104
  }
107
- .ant-timeline-item.cap-timeline-card-v1-complete-head .ant-timeline-item-icon {
108
- border: 0.143rem solid #42b040 !important;
109
- border-radius: 50% !important;
110
- width: 1.714rem !important;
111
- height: 1.714rem !important;
112
- overflow: hidden;
105
+ .cap-timeline-card-v1-complete-head .ant-timeline-item-head {
106
+ border: 0.143rem solid #42b040;
107
+ border-width: 0.143rem;
113
108
  }
114
109
  .cap-timeline-panes-wrapper-v1-timelinePane-divider.cap-divider-v2 {
115
110
  height: 32.857rem;
116
111
  }
112
+ .cap-timeline-card-v1-warning-division {
113
+ margin-bottom: 0.857rem;
114
+ }
115
+ .cap-timeline-card-v1-warning-division .ant-timeline-item-head {
116
+ border: 0.143rem solid #ea213a;
117
+ border-width: 0.071rem;
118
+ border-radius: 50%;
119
+ padding: 0.214rem 0.214rem !important;
120
+ width: 1.714rem !important;
121
+ height: 1.714rem !important;
122
+ }
117
123
  .ant-timeline-item {
118
124
  padding: 0;
119
125
  }
120
126
  .ant-timeline-item .ant-timeline-item-content {
121
127
  top: 0;
128
+ margin-left: 2.286rem;
122
129
  }
123
- .ant-timeline-item .ant-timeline-item-rail {
124
- inset-inline-start: 0.857rem !important;
130
+ .ant-timeline-item .ant-timeline-item-tail {
131
+ left: 0.857rem;
125
132
  }
126
- .ant-timeline-item .ant-timeline-item-icon {
133
+ .ant-timeline-item .ant-timeline-item-head {
134
+ left: 0.857rem;
127
135
  display: flex;
128
136
  justify-content: center;
129
137
  align-items: center;
130
- background-color: #ffffff;
131
- z-index: 1;
132
- }
133
- .ant-timeline-item .ant-timeline-item-icon.ant-wave-target {
134
- pointer-events: none;
135
- }
136
- .ant-timeline-item .ant-timeline-item-icon.ant-wave-target > * {
137
- pointer-events: auto;
138
138
  }
@@ -1,11 +1,13 @@
1
- @import '../styles/_variables.scss';
1
+ @import "../styles/_variables.scss";
2
2
 
3
3
  .cap-timeline-v1-body {
4
- :global(.ant-timeline-item-rail) {
5
- top: 2.1rem !important;
4
+ .ant-timeline-item-head-custom {
5
+ top: $CAP_SPACE_20;
6
+ }
7
+ .ant-timeline-item-tail {
8
+ top: 1.857rem;
6
9
  }
7
10
  }
8
-
9
11
  .cap-timeline-card-v1-pane-selected {
10
12
  background-color: $CAP_PALE_GREY;
11
13
  border-left: solid $CAP_SPACE_04 map-get($CAP_SECONDARY, base);
@@ -33,7 +35,6 @@
33
35
  .cap-timeline-panes-wrapper-v1-right-pane-col {
34
36
  height: 74vh;
35
37
  overflow: auto;
36
- color: rgba(0, 0, 0, 0.65);
37
38
  }
38
39
 
39
40
  .cap-timeline-panes-wrapper-v1-left-pane-col {
@@ -49,27 +50,19 @@
49
50
  margin-left: $CAP_SPACE_20;
50
51
  margin-right: $CAP_SPACE_24;
51
52
 
52
- .cap-timeline-panes-wrapper-v1-timelinePane-divider {
53
+ .cap-timeline-panes-wrapper-v1-timelinePane-divider,
54
+ .ant-divider ant-divider-vertical {
53
55
  margin: 0;
54
56
  }
55
57
  }
56
58
 
57
- // Need specificity >= (0,0,3,0) to override antd v5's
58
- // `.ant-steps .ant-steps-item-custom .ant-steps-item-icon { border: 0px }` rule (0,0,3,0)
59
- :global(.ant-timeline-item).cap-timeline-card-v1-division {
60
- :global(.ant-timeline-item-icon) {
61
- border: 0.071rem solid $CAP_G07 !important;
62
- border-radius: 50% !important;
63
- padding: 0.214rem 0.214rem !important;
64
- width: $CAP_SPACE_24 !important;
65
- height: $CAP_SPACE_24 !important;
66
- }
67
- }
59
+ .cap-timeline-card-v1-division {
60
+ margin-bottom: $CAP_SPACE_12;
68
61
 
69
- :global(.ant-timeline-item).cap-timeline-card-v1-warning-division {
70
- :global(.ant-timeline-item-icon) {
71
- border: 0.071rem solid $CAP_RED !important;
72
- border-radius: 50% !important;
62
+ .ant-timeline-item-head {
63
+ border: 0.143rem solid $CAP_G07;
64
+ border-width: 0.071rem;
65
+ border-radius: 50%;
73
66
  padding: 0.214rem 0.214rem !important;
74
67
  width: $CAP_SPACE_24 !important;
75
68
  height: $CAP_SPACE_24 !important;
@@ -91,102 +84,90 @@
91
84
 
92
85
  .cap-timeline-panes-wrapper-v1-pane-wrapper {
93
86
  display: flex;
94
- flex-wrap: nowrap;
95
87
  }
96
88
 
97
89
  .cap-timeline-card-v1-disabled-timeline-item {
98
90
  cursor: not-allowed;
99
91
  }
100
-
101
92
  .cap-timeline-card-v1-enabled-timeline-item {
102
93
  cursor: pointer;
103
94
  }
104
-
105
95
  .cap-timeline-card-v1-enabled-card:hover {
106
96
  background-color: $CAP_COLOR_08;
107
97
  }
108
98
 
99
+ .cap-timeline-card-v1-warning-card {
100
+ border-color: $CAP_RED;
101
+ }
102
+
109
103
  .cap-timeline-card-v1-icon-parent {
110
104
  border-radius: 2.857rem;
111
105
  border-color: beige;
112
106
  }
113
107
 
114
- // Override the default antd v5 card body padding (1.714rem) to match cap-ui-library
115
- // Also override colorText token (#091e42) back to cap-ui-library's default rgba(0,0,0,0.65)
116
108
  .cap-timeline-card-v1-card-body {
117
- :global {
118
- .ant-card-body,
119
- .cap-card-wrapper .ant-card .ant-card-body {
120
- padding: $CAP_SPACE_08 $CAP_SPACE_16 !important;
121
- color: rgba(0, 0, 0, 0.65);
122
- }
109
+ .ant-card-body {
110
+ padding: $CAP_SPACE_08 $CAP_SPACE_16;
123
111
  }
124
112
  }
125
113
 
126
114
  .cap-timeline-card-v1-last-pane {
127
- :global(.ant-timeline-item-rail) {
115
+ .ant-timeline-item-tail {
128
116
  display: none;
129
117
  }
130
118
  }
131
119
 
132
120
  .cap-timeline-card-v1-completed-tail {
133
- :global(.ant-timeline-item-rail) {
134
- border-inline-start: 0.143rem solid $CAP_COLOR_06;
121
+ .ant-timeline-item-tail {
135
122
  border-left: 0.143rem solid $CAP_COLOR_06;
136
123
  }
137
124
  }
138
125
 
139
126
  .cap-timeline-card-v1-warning-tail {
140
- :global(.ant-timeline-item-rail) {
141
- border-inline-start: 0.143rem solid $CAP_G12;
127
+ .ant-timeline-item-tail {
142
128
  border-left: 0.143rem solid $CAP_G12;
143
129
  }
144
130
  }
131
+ .cap-timeline-card-v1-complete-head {
132
+ .ant-timeline-item-head {
133
+ border: 0.143rem solid $CAP_COLOR_06;
134
+ border-width: 0.143rem;
135
+ }
136
+ }
145
137
 
146
- :global(.ant-timeline-item).cap-timeline-card-v1-complete-head {
147
- :global(.ant-timeline-item-icon) {
148
- border: 0.143rem solid $CAP_COLOR_06 !important;
149
- border-radius: 50% !important;
138
+ .cap-timeline-panes-wrapper-v1-timelinePane-divider.cap-divider-v2 {
139
+ height: 32.857rem;
140
+ }
141
+
142
+ .cap-timeline-card-v1-warning-division {
143
+ margin-bottom: $CAP_SPACE_12;
144
+
145
+ .ant-timeline-item-head {
146
+ border: 0.143rem solid $CAP_RED;
147
+ border-width: 0.071rem;
148
+ border-radius: 50%;
149
+ padding: 0.214rem 0.214rem !important;
150
150
  width: $CAP_SPACE_24 !important;
151
151
  height: $CAP_SPACE_24 !important;
152
- overflow: hidden;
153
152
  }
154
153
  }
155
154
 
156
- .cap-timeline-panes-wrapper-v1-timelinePane-divider:global(.cap-divider-v2) {
157
- height: 32.857rem;
158
- }
155
+ .ant-timeline-item {
156
+ padding: 0;
157
+
158
+ .ant-timeline-item-content {
159
+ top: 0;
160
+ margin-left: 2.286rem;
161
+ }
162
+
163
+ .ant-timeline-item-tail {
164
+ left: $CAP_SPACE_12;
165
+ }
159
166
 
160
- // antd v5 Timeline item positioning
161
- // antd v5 uses inset-inline-start (logical property) for absolute-positioned elements
162
- :global {
163
- .ant-timeline-item {
164
- padding: 0;
165
-
166
- .ant-timeline-item-content {
167
- top: 0;
168
- }
169
-
170
- // antd v5 .ant-steps-vertical rule has specificity (0,0,3,0) — need !important
171
- .ant-timeline-item-rail {
172
- inset-inline-start: $CAP_SPACE_12 !important;
173
- }
174
-
175
- .ant-timeline-item-icon {
176
- display: flex;
177
- justify-content: center;
178
- align-items: center;
179
- background-color: $CAP_WHITE;
180
- z-index: 1;
181
- // ant-wave-target intercepts pointer events, blocking inner tooltip hover.
182
- // Pass pointer events through to children so tooltips trigger on hover.
183
- &.ant-wave-target {
184
- pointer-events: none;
185
-
186
- > * {
187
- pointer-events: auto;
188
- }
189
- }
190
- }
167
+ .ant-timeline-item-head {
168
+ left: $CAP_SPACE_12;
169
+ display: flex;
170
+ justify-content: center;
171
+ align-items: center;
191
172
  }
192
173
  }
@@ -0,0 +1,16 @@
1
+ export declare const getPaginatedOptions: (listingApiConfig: any, queryParams: any, transformOptions: any) => {
2
+ type: string;
3
+ listingApiConfig: any;
4
+ queryParams: any;
5
+ transformOptions: any;
6
+ };
7
+ export declare const getOptionById: (id: any, getByIdApiConfig: any, queryParams: any) => {
8
+ type: string;
9
+ id: any;
10
+ getByIdApiConfig: any;
11
+ queryParams: any;
12
+ };
13
+ export declare const clearDataOnUnmount: () => {
14
+ type: string;
15
+ };
16
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../components/CapVirtualSelect/actions.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,GAAI,qBAAgB,EAAE,gBAAW,EAAE,qBAAgB;;;;;CAKjF,CAAC;AAGH,eAAO,MAAM,aAAa,GAAI,OAAE,EAAE,qBAAgB,EAAE,gBAAW;;;;;CAK7D,CAAC;AAGH,eAAO,MAAM,kBAAkB;;CAE7B,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { CLEAR_DATA_ON_UNMOUNT, GET_OPTION_BY_ID_REQUEST, GET_PAGINATED_OPTIONS_REQUEST } from "./constants.js";
2
+ const getPaginatedOptions = (listingApiConfig, queryParams, transformOptions) => ({
3
+ type: GET_PAGINATED_OPTIONS_REQUEST,
4
+ listingApiConfig,
5
+ queryParams,
6
+ transformOptions
7
+ });
8
+ const getOptionById = (id, getByIdApiConfig, queryParams) => ({
9
+ type: GET_OPTION_BY_ID_REQUEST,
10
+ id,
11
+ getByIdApiConfig,
12
+ queryParams
13
+ });
14
+ const clearDataOnUnmount = () => ({
15
+ type: CLEAR_DATA_ON_UNMOUNT
16
+ });
17
+ export {
18
+ clearDataOnUnmount,
19
+ getOptionById,
20
+ getPaginatedOptions
21
+ };
@@ -0,0 +1,13 @@
1
+ export declare const GET_PAGINATED_OPTIONS_REQUEST = "CapVirtualSelect/GET_PAGINATED_OPTIONS_REQUEST";
2
+ export declare const GET_PAGINATED_OPTIONS_SUCCESS = "CapVirtualSelect/GET_PAGINATED_OPTIONS_SUCCESS";
3
+ export declare const GET_PAGINATED_OPTIONS_FAILURE = "CapVirtualSelect/GET_PAGINATED_OPTIONS_FAILURE";
4
+ export declare const GET_OPTION_BY_ID_REQUEST = "CapVirtualSelect/GET_OPTION_BY_ID_REQUEST";
5
+ export declare const GET_OPTION_BY_ID_SUCCESS = "CapVirtualSelect/GET_OPTION_BY_ID_SUCCESS";
6
+ export declare const GET_OPTION_BY_ID_FAILURE = "CapVirtualSelect/GET_OPTION_BY_ID_FAILURE";
7
+ export declare const CLEAR_DATA_ON_UNMOUNT = "CapVirtualSelect/CLEAR_DATA_ON_UNMOUNT";
8
+ export declare const REQUEST = "REQUEST";
9
+ export declare const SUCCESS = "SUCCESS";
10
+ export declare const FAILURE = "FAILURE";
11
+ export declare const dataTestIdPrefix = "cap-virtual-select";
12
+ export declare const defaultNamespace = "capVirtualSelect";
13
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../components/CapVirtualSelect/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,mDAAmD,CAAC;AAC9F,eAAO,MAAM,6BAA6B,mDAAmD,CAAC;AAC9F,eAAO,MAAM,6BAA6B,mDAAmD,CAAC;AAE9F,eAAO,MAAM,wBAAwB,8CAA8C,CAAC;AACpF,eAAO,MAAM,wBAAwB,8CAA8C,CAAC;AACpF,eAAO,MAAM,wBAAwB,8CAA8C,CAAC;AAEpF,eAAO,MAAM,qBAAqB,2CAA2C,CAAC;AAE9E,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC;AAEjC,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC"}
@@ -0,0 +1,26 @@
1
+ const GET_PAGINATED_OPTIONS_REQUEST = "CapVirtualSelect/GET_PAGINATED_OPTIONS_REQUEST";
2
+ const GET_PAGINATED_OPTIONS_SUCCESS = "CapVirtualSelect/GET_PAGINATED_OPTIONS_SUCCESS";
3
+ const GET_PAGINATED_OPTIONS_FAILURE = "CapVirtualSelect/GET_PAGINATED_OPTIONS_FAILURE";
4
+ const GET_OPTION_BY_ID_REQUEST = "CapVirtualSelect/GET_OPTION_BY_ID_REQUEST";
5
+ const GET_OPTION_BY_ID_SUCCESS = "CapVirtualSelect/GET_OPTION_BY_ID_SUCCESS";
6
+ const GET_OPTION_BY_ID_FAILURE = "CapVirtualSelect/GET_OPTION_BY_ID_FAILURE";
7
+ const CLEAR_DATA_ON_UNMOUNT = "CapVirtualSelect/CLEAR_DATA_ON_UNMOUNT";
8
+ const REQUEST = "REQUEST";
9
+ const SUCCESS = "SUCCESS";
10
+ const FAILURE = "FAILURE";
11
+ const dataTestIdPrefix = "cap-virtual-select";
12
+ const defaultNamespace = "capVirtualSelect";
13
+ export {
14
+ CLEAR_DATA_ON_UNMOUNT,
15
+ FAILURE,
16
+ GET_OPTION_BY_ID_FAILURE,
17
+ GET_OPTION_BY_ID_REQUEST,
18
+ GET_OPTION_BY_ID_SUCCESS,
19
+ GET_PAGINATED_OPTIONS_FAILURE,
20
+ GET_PAGINATED_OPTIONS_REQUEST,
21
+ GET_PAGINATED_OPTIONS_SUCCESS,
22
+ REQUEST,
23
+ SUCCESS,
24
+ dataTestIdPrefix,
25
+ defaultNamespace
26
+ };
@@ -0,0 +1,169 @@
1
+ /**
2
+ *
3
+ * CapVirtualSelect
4
+ *
5
+ */
6
+ import PropTypes from 'prop-types';
7
+ import React from 'react';
8
+ import './styles.scss';
9
+ export declare function CapVirtualSelect({ intl: { formatMessage: _formatMessage }, namespace: _namespace, listingApiConfig, getByIdApiConfig, selectedOption, isSearchable, searchDebounceTime, disabled, selectedOptionPlaceholderLabel, searchPlaceholderLabel, loadingOptionsPlaceholder, EmptyPlaceholder, EmptySearchPlaceholder, width, height, buttonProps, searchbarProps, virtuosoProps, onOptionClick, renderOptionRow, renderSelectedOptionRow, transformOptions, actions, paginatedOptions: { getPaginatedOptionsStatus, getPaginatedOptions, getUnTransformedPaginatedOptions, getPaginatedOptionsTotalCount, }, optionById: { getOptionByIdStatus, getOptionById }, }: {
10
+ intl: {
11
+ formatMessage: any;
12
+ };
13
+ namespace: any;
14
+ listingApiConfig: any;
15
+ getByIdApiConfig: any;
16
+ selectedOption: any;
17
+ isSearchable: any;
18
+ searchDebounceTime: any;
19
+ disabled: any;
20
+ selectedOptionPlaceholderLabel: any;
21
+ searchPlaceholderLabel: any;
22
+ loadingOptionsPlaceholder: any;
23
+ EmptyPlaceholder: any;
24
+ EmptySearchPlaceholder: any;
25
+ width: any;
26
+ height: any;
27
+ buttonProps: any;
28
+ searchbarProps: any;
29
+ virtuosoProps: any;
30
+ onOptionClick: any;
31
+ renderOptionRow: any;
32
+ renderSelectedOptionRow: any;
33
+ transformOptions: any;
34
+ actions: any;
35
+ paginatedOptions: {
36
+ getPaginatedOptionsStatus: any;
37
+ getPaginatedOptions: any;
38
+ getUnTransformedPaginatedOptions: any;
39
+ getPaginatedOptionsTotalCount: any;
40
+ };
41
+ optionById: {
42
+ getOptionByIdStatus: any;
43
+ getOptionById: any;
44
+ };
45
+ }): import("react/jsx-runtime").JSX.Element;
46
+ export declare namespace CapVirtualSelect {
47
+ var propTypes: {
48
+ intl: any;
49
+ namespace: PropTypes.Requireable<string>;
50
+ listingApiConfig: PropTypes.Requireable<{
51
+ [x: string]: PropTypes.InferProps<{
52
+ method: PropTypes.Requireable<(...args: any[]) => any>;
53
+ rpmLimit: PropTypes.Requireable<number>;
54
+ payloadPath: PropTypes.Requireable<{
55
+ [x: string]: PropTypes.InferProps<{
56
+ successStatus: PropTypes.Requireable<string>;
57
+ success: PropTypes.Requireable<string>;
58
+ error: PropTypes.Requireable<string>;
59
+ label: PropTypes.Requireable<string>;
60
+ value: PropTypes.Requireable<string>;
61
+ totalCount: PropTypes.Requireable<string>;
62
+ }>;
63
+ }>;
64
+ apiParamsMapper: PropTypes.Requireable<{
65
+ [x: string]: PropTypes.InferProps<PropTypes.ValidationMap<any>>;
66
+ }>;
67
+ }>;
68
+ }>;
69
+ getByIdApiConfig: PropTypes.Requireable<{
70
+ [x: string]: PropTypes.InferProps<{
71
+ method: PropTypes.Requireable<(...args: any[]) => any>;
72
+ rpmLimit: PropTypes.Requireable<number>;
73
+ payloadPath: PropTypes.Requireable<{
74
+ [x: string]: PropTypes.InferProps<{
75
+ successStatus: PropTypes.Requireable<string>;
76
+ success: PropTypes.Requireable<string>;
77
+ error: PropTypes.Requireable<string>;
78
+ value: PropTypes.Requireable<string>;
79
+ }>;
80
+ }>;
81
+ apiParamsMapper: PropTypes.Requireable<{
82
+ [x: string]: PropTypes.InferProps<PropTypes.ValidationMap<any>>;
83
+ }>;
84
+ }>;
85
+ }>;
86
+ selectedOption: PropTypes.Requireable<NonNullable<string | number | boolean>>;
87
+ isSearchable: PropTypes.Requireable<boolean>;
88
+ searchDebounceTime: PropTypes.Requireable<number>;
89
+ disabled: PropTypes.Requireable<boolean>;
90
+ selectedOptionPlaceholderLabel: PropTypes.Requireable<string>;
91
+ searchPlaceholderLabel: PropTypes.Requireable<string>;
92
+ loadingOptionsPlaceholder: PropTypes.Requireable<string>;
93
+ width: PropTypes.Requireable<number>;
94
+ height: PropTypes.Requireable<number>;
95
+ buttonProps: PropTypes.Requireable<object>;
96
+ searchbarProps: PropTypes.Requireable<object>;
97
+ virtuosoProps: PropTypes.Requireable<object>;
98
+ transformOptions: PropTypes.Requireable<(...args: any[]) => any>;
99
+ renderOptionRow: PropTypes.Requireable<(...args: any[]) => any>;
100
+ renderSelectedOptionRow: PropTypes.Requireable<(...args: any[]) => any>;
101
+ onOptionClick: PropTypes.Requireable<(...args: any[]) => any>;
102
+ EmptyPlaceholder: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactNodeLike>>;
103
+ EmptySearchPlaceholder: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.ReactNodeLike>>;
104
+ };
105
+ var defaultProps: {
106
+ intl: any;
107
+ namespace: string;
108
+ listingApiConfig: {
109
+ method: () => Promise<any[]>;
110
+ rpmLimit: number;
111
+ payloadPath: {
112
+ successStatus: string;
113
+ success: string;
114
+ error: string;
115
+ label: string;
116
+ value: string;
117
+ totalCount: string;
118
+ };
119
+ apiParamsMapper: {
120
+ page: {
121
+ key: string;
122
+ value: number;
123
+ };
124
+ limit: {
125
+ key: string;
126
+ value: number;
127
+ };
128
+ search: {
129
+ key: string;
130
+ value: string;
131
+ };
132
+ };
133
+ };
134
+ getByIdApiConfig: {
135
+ method: () => Promise<any>;
136
+ rpmLimit: number;
137
+ payloadPath: {
138
+ successStatus: string;
139
+ success: string;
140
+ error: string;
141
+ value: string;
142
+ };
143
+ apiParamsMapper: {};
144
+ };
145
+ selectedOption: any;
146
+ isSearchable: boolean;
147
+ searchDebounceTime: number;
148
+ disabled: boolean;
149
+ selectedOptionPlaceholderLabel: string;
150
+ searchPlaceholderLabel: string;
151
+ loadingOptionsPlaceholder: string;
152
+ width: number;
153
+ height: number;
154
+ buttonProps: {};
155
+ searchbarProps: {};
156
+ virtuosoProps: {};
157
+ transformOptions: (options: any) => any;
158
+ onOptionClick: (option: any) => any;
159
+ renderOptionRow: (option: any) => import("react/jsx-runtime").JSX.Element;
160
+ renderSelectedOptionRow: (selectedOption: any, selectedOptionValue: any) => import("react/jsx-runtime").JSX.Element;
161
+ EmptyPlaceholder: () => import("react/jsx-runtime").JSX.Element;
162
+ EmptySearchPlaceholder: () => import("react/jsx-runtime").JSX.Element;
163
+ };
164
+ }
165
+ export declare const CapVirtualSelectInjected: (namespace?: string) => import("react-redux").ConnectedComponent<React.ComponentType<Omit<any, "intl">>, {
166
+ [x: string]: any;
167
+ }>;
168
+ export default CapVirtualSelectInjected;
169
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapVirtualSelect/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAmD,MAAM,OAAO,CAAC;AAiBxE,OAAO,eAAe,CAAC;AAmBvB,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,EACvC,SAAS,EAAE,UAAU,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,QAAQ,EACR,8BAA8B,EAC9B,sBAAsB,EACtB,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACtB,KAAK,EACL,MAAM,EACN,WAAW,EACX,cAAc,EACd,aAAa,EACb,aAAa,EACb,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,OAAO,EACP,gBAAgB,EAAE,EAChB,yBAAyB,EACzB,mBAAmB,EACnB,gCAAgC,EAChC,6BAA6B,GAC9B,EACD,UAAU,EAAE,EAAE,mBAAmB,EAAE,aAAa,EAAE,GACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA,2CAsNA;yBArPe,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgXhC,eAAO,MAAM,wBAAwB,GAAI,kBAA4B;;EA4BpE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}