sccoreui 6.5.31 → 6.5.33

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/dist/App.scss CHANGED
@@ -89,23 +89,28 @@
89
89
  display: var(--_d-grid);
90
90
  grid-template-columns: repeat(auto-fill, min($minWidth, $maxWidth));
91
91
  width: 100%;
92
- & > div {
92
+
93
+ &>div {
93
94
  width: 100%;
94
95
  }
95
96
  }
96
97
 
97
98
  .p-button {
98
99
  border: 0 !important;
100
+
99
101
  &.btn-primary {
100
102
  background-color: var(--primary-500);
101
103
  color: var(--_base-white);
102
104
  padding: 8px 14px;
105
+
103
106
  &:hover {
104
107
  background-color: var(--primary-700);
105
108
  }
109
+
106
110
  &:focus {
107
111
  background-color: var(--primary-700);
108
112
  }
113
+
109
114
  &:disabled {
110
115
  background-color: var(--primary-200);
111
116
  color: var(--_base-white);
@@ -117,30 +122,36 @@
117
122
  color: var(--gray-700);
118
123
  padding: 8px 14px;
119
124
  border: 1px solid var(--gray-300) !important;
125
+
120
126
  svg {
121
127
  path {
122
128
  stroke: var(--gray-700);
123
129
  }
124
130
  }
131
+
125
132
  &:has(svg) {
126
133
  display: flex;
127
134
  align-items: center;
128
135
  gap: 8px;
129
136
  }
137
+
130
138
  &:hover {
131
139
  background-color: var(--primary-25) !important;
132
140
  border: 1px solid var(--primary-100) !important;
133
141
  color: var(--primary-400) !important;
142
+
134
143
  svg {
135
144
  path {
136
145
  stroke: var(--primary-400);
137
146
  }
138
147
  }
139
148
  }
149
+
140
150
  &:focus {
141
151
  background-color: var(--primary-25) !important;
142
152
  color: var(--primary-600) !important;
143
153
  }
154
+
144
155
  &:disabled {
145
156
  color: var(--gray-300);
146
157
  }
@@ -150,13 +161,16 @@
150
161
  background-color: var(--primary-50);
151
162
  color: var(--primary-500);
152
163
  padding: 8px 14px;
164
+
153
165
  &:hover {
154
166
  background-color: var(--primary-100) !important;
155
167
  color: var(--primary-800) !important;
156
168
  }
169
+
157
170
  &:focus {
158
171
  background-color: var(--primary-100);
159
172
  }
173
+
160
174
  &:disabled {
161
175
  background-color: var(--primary-50);
162
176
  color: var(--gray-300);
@@ -169,20 +183,24 @@
169
183
  padding: 8px 14px;
170
184
  border: 0 !important;
171
185
  font-weight: 600;
186
+
172
187
  &:hover {
173
188
  background-color: var(--gray-50) !important;
174
189
  color: var(--gray-700) !important;
175
190
  }
191
+
176
192
  &:focus {
177
193
  background-color: var(--gray-50);
178
194
  color: var(--gray-700);
179
195
  border: 0px !important;
180
196
  }
197
+
181
198
  &:disabled {
182
199
  background-color: var(--primary-50) !important;
183
200
  color: var(--gray-300);
184
201
  }
185
202
  }
203
+
186
204
  &.btn-text-primary {
187
205
  background-color: var(--_base-white);
188
206
  color: var(--primary-400);
@@ -191,19 +209,23 @@
191
209
  display: flex;
192
210
  gap: 4px;
193
211
  align-items: center;
212
+
194
213
  &:hover {
195
214
  background-color: var(--primary-25) !important;
196
215
  color: var(--primary-600) !important;
216
+
197
217
  svg {
198
218
  path {
199
219
  stroke: var(--primary-600);
200
220
  }
201
221
  }
202
222
  }
223
+
203
224
  &:focus {
204
225
  background-color: var(--primary-25) !important;
205
226
  color: var(--primary-600) !important;
206
227
  }
228
+
207
229
  // &:disabled {
208
230
  // color: var(--gray-300);
209
231
  // }
@@ -258,6 +280,7 @@ code {
258
280
  &:hover {
259
281
  transition: all 0.4 ease-in-out;
260
282
  transform: scale(1.2);
283
+
261
284
  svg {
262
285
  path {
263
286
  stroke: var(--red-400);
@@ -376,7 +399,8 @@ code {
376
399
 
377
400
  .col-gr-icon-active {
378
401
  width: 20px;
379
- transition: width 0.4s ease; /* Ensure transition applies both ways */
402
+ transition: width 0.4s ease;
403
+ /* Ensure transition applies both ways */
380
404
  }
381
405
 
382
406
  .no-content {
@@ -588,6 +612,7 @@ code {
588
612
  }
589
613
  }
590
614
  }
615
+
591
616
  .table_filters_1 {
592
617
  height: auto;
593
618
  display: flex;
@@ -599,6 +624,7 @@ code {
599
624
  height: 44px !important;
600
625
  border: 1px solid var(--gray-300);
601
626
  overflow-y: auto;
627
+
602
628
  .p-inputtext {
603
629
  padding: 6px 20px 7px 20px;
604
630
  height: 44px !important;
@@ -615,6 +641,7 @@ code {
615
641
  border-bottom-left-radius: 0 !important;
616
642
  overflow: auto;
617
643
  height: 44px;
644
+
618
645
  .p-chips-token {
619
646
  .p-chips-token-label {
620
647
  white-space: nowrap;
@@ -653,6 +680,7 @@ code {
653
680
  padding-right: 18px;
654
681
  height: 100%;
655
682
  }
683
+
656
684
  .p-multiselect-label {
657
685
  height: 100%;
658
686
  }
@@ -791,7 +819,7 @@ code {
791
819
  }
792
820
 
793
821
  .p-datepicker .p-dropdown-panel,
794
- .date_nav_dropdown ~ .p-dropdown-panel {
822
+ .date_nav_dropdown~.p-dropdown-panel {
795
823
  min-width: 6rem;
796
824
 
797
825
  .p-dropdown-items .p-dropdown-item {
@@ -835,12 +863,7 @@ div:has(ul.date_filter) .p-datepicker-group-container {
835
863
  border-left: 1px solid #dee2e6;
836
864
  }
837
865
 
838
- div:has(ul.date_filter)
839
- .p-datepicker-group-container
840
- .p-datepicker
841
- table
842
- td
843
- > span {
866
+ div:has(ul.date_filter) .p-datepicker-group-container .p-datepicker table td>span {
844
867
  width: 40px;
845
868
  height: 40px;
846
869
  }
@@ -911,6 +934,7 @@ div:has(ul.date_filter) .p-datepicker-footer {
911
934
  .form_field {
912
935
  // width: 18.063rem;
913
936
  width: 100%;
937
+
914
938
  &:has(.p-multiselect-token) {
915
939
  .p-multiselect-label {
916
940
  padding-left: 6px;
@@ -1040,13 +1064,7 @@ button#formatOLOptions-1.fr-active::before {
1040
1064
  padding: 12px !important;
1041
1065
  }
1042
1066
 
1043
- .fr-command.fr-btn
1044
- + .fr-dropdown-menu
1045
- .fr-dropdown-wrapper
1046
- .fr-dropdown-content
1047
- ul.fr-dropdown-list
1048
- li
1049
- a.fr-active {
1067
+ .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active {
1050
1068
  background: #f9fafb !important;
1051
1069
  }
1052
1070
 
@@ -1183,6 +1201,7 @@ button[aria-expanded="true"] {
1183
1201
  display: flex;
1184
1202
  justify-content: center;
1185
1203
  align-items: center;
1204
+
1186
1205
  &.feature-hover {
1187
1206
  &:hover {
1188
1207
  svg {
@@ -1200,16 +1219,19 @@ button[aria-expanded="true"] {
1200
1219
  border-radius: var(--border-radius);
1201
1220
  color: var(--primary-400);
1202
1221
  background-color: transparent;
1222
+
1203
1223
  svg {
1204
1224
  path {
1205
1225
  stroke: var(--primary-400);
1206
1226
  }
1207
1227
  }
1228
+
1208
1229
  &:enabled {
1209
1230
  &:hover {
1210
1231
  background-color: var(--primary-25);
1211
1232
  border-radius: var(--border-radius);
1212
1233
  color: var(--primary-400);
1234
+
1213
1235
  svg {
1214
1236
  path {
1215
1237
  stroke: var(--primary-400);
@@ -1234,23 +1256,28 @@ button[aria-expanded="true"] {
1234
1256
  &:not(.section_btn) {
1235
1257
  height: 28px;
1236
1258
  }
1259
+
1237
1260
  &.section_btn {
1238
1261
  padding: 6px 10px 6px 6px;
1239
1262
  }
1263
+
1240
1264
  &:hover {
1241
1265
  background-color: var(--primary-25);
1242
1266
  color: var(--primary-700);
1267
+
1243
1268
  svg {
1244
1269
  path {
1245
1270
  stroke: var(--primary-700);
1246
1271
  }
1247
1272
  }
1248
1273
  }
1274
+
1249
1275
  &:has(svg) {
1250
1276
  display: flex;
1251
1277
  align-items: center;
1252
1278
  gap: 4px;
1253
1279
  }
1280
+
1254
1281
  svg {
1255
1282
  path {
1256
1283
  stroke: var(--primary-400);
@@ -1263,6 +1290,7 @@ button[aria-expanded="true"] {
1263
1290
  background-color: transparent;
1264
1291
  display: flex;
1265
1292
  gap: 4px;
1293
+
1266
1294
  svg {
1267
1295
  path {
1268
1296
  stroke: var(--gray-700);
@@ -1293,19 +1321,24 @@ button[aria-expanded="true"] {
1293
1321
  align-items: center;
1294
1322
  font-size: 14px;
1295
1323
  gap: 4px;
1324
+
1296
1325
  svg {
1297
1326
  width: 15px;
1298
1327
  height: 15px;
1328
+
1299
1329
  path {
1300
1330
  stroke: var(--gray-400);
1301
1331
  }
1302
1332
  }
1333
+
1303
1334
  &:hover {
1335
+
1304
1336
  // border: 1px solid var(--gray-300);
1305
1337
  // background-color: var(--primary-25);
1306
1338
  svg {
1307
1339
  transform: scale(1.1);
1308
1340
  cursor: pointer;
1341
+
1309
1342
  path {
1310
1343
  stroke: var(--gray-700);
1311
1344
  }
@@ -1830,18 +1863,22 @@ code {
1830
1863
  display: flex;
1831
1864
  border: 1px solid var(--gray-300);
1832
1865
  border-radius: 6px;
1866
+
1833
1867
  input {
1834
1868
  border: 0px !important;
1835
1869
  padding-inline: 0;
1870
+
1836
1871
  &:focus {
1837
1872
  outline: none !important;
1838
1873
  border: none !important;
1839
1874
  box-shadow: none !important;
1840
1875
  }
1841
1876
  }
1877
+
1842
1878
  .p-inputnumber .p-inputnumber-input {
1843
1879
  padding-inline: 0;
1844
1880
  }
1881
+
1845
1882
  &:focus-within {
1846
1883
  border: 1px solid var(--primary-300);
1847
1884
  outline: 2px solid var(--primary-50);
@@ -2035,7 +2072,7 @@ code {
2035
2072
  }
2036
2073
 
2037
2074
  .p-datepicker .p-dropdown-panel,
2038
- .date_nav_dropdown ~ .p-dropdown-panel {
2075
+ .date_nav_dropdown~.p-dropdown-panel {
2039
2076
  min-width: 6rem;
2040
2077
 
2041
2078
  .p-dropdown-items .p-dropdown-item {
@@ -2079,12 +2116,7 @@ div:has(ul.date_filter) .p-datepicker-group-container {
2079
2116
  border-left: 1px solid #dee2e6;
2080
2117
  }
2081
2118
 
2082
- div:has(ul.date_filter)
2083
- .p-datepicker-group-container
2084
- .p-datepicker
2085
- table
2086
- td
2087
- > span {
2119
+ div:has(ul.date_filter) .p-datepicker-group-container .p-datepicker table td>span {
2088
2120
  width: 40px;
2089
2121
  height: 40px;
2090
2122
  }
@@ -2133,17 +2165,21 @@ div:has(ul.date_filter) .p-datepicker-footer {
2133
2165
  display: none !important;
2134
2166
  }
2135
2167
  }
2168
+
2136
2169
  .p-multiselect-items {
2137
2170
  .p-multiselect-item {
2138
2171
  border-radius: 4px !important;
2139
2172
  }
2140
2173
  }
2141
2174
  }
2175
+
2142
2176
  .grid-global-search {
2143
2177
  width: 21rem;
2178
+
2144
2179
  .p-input-icon-left {
2145
2180
  width: 100%;
2146
2181
  }
2182
+
2147
2183
  .p-inputtext {
2148
2184
  width: 100%;
2149
2185
  }
@@ -2299,13 +2335,7 @@ button#formatOLOptions-1.fr-active::before {
2299
2335
  padding: 12px !important;
2300
2336
  }
2301
2337
 
2302
- .fr-command.fr-btn
2303
- + .fr-dropdown-menu
2304
- .fr-dropdown-wrapper
2305
- .fr-dropdown-content
2306
- ul.fr-dropdown-list
2307
- li
2308
- a.fr-active {
2338
+ .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active {
2309
2339
  background: #f9fafb !important;
2310
2340
  }
2311
2341
 
@@ -2424,7 +2454,7 @@ button[aria-expanded="true"] {
2424
2454
  /////// Custom list_box_dropdown ///////////
2425
2455
  .list_box_dropdown {
2426
2456
  .p-listbox-header {
2427
- padding: 12px !important;
2457
+ padding: 6px !important;
2428
2458
  border-top: 1px solid var(--gray-200);
2429
2459
  }
2430
2460
 
@@ -2592,6 +2622,7 @@ button[aria-expanded="true"] {
2592
2622
  background: #fff !important;
2593
2623
  box-shadow: 0px 0px 1px var(--gray-300) !important;
2594
2624
  overflow: hidden;
2625
+
2595
2626
  .ag-root-wrapper {
2596
2627
  &.ag-layout-normal {
2597
2628
  border: 0;
@@ -2665,6 +2696,7 @@ button[aria-expanded="true"] {
2665
2696
  height: auto;
2666
2697
  border-radius: 6px !important;
2667
2698
  cursor: pointer;
2699
+
2668
2700
  &:hover {
2669
2701
  background: var(--primary-25);
2670
2702
  }
@@ -2683,6 +2715,7 @@ button[aria-expanded="true"] {
2683
2715
  &.p-button-secondary {
2684
2716
  padding: 8px 12px;
2685
2717
  }
2718
+
2686
2719
  &.p-button-outline {
2687
2720
  padding: 8px 12px;
2688
2721
  }
@@ -2718,8 +2751,10 @@ button[aria-expanded="true"] {
2718
2751
 
2719
2752
  .column-group {
2720
2753
  padding: 0 !important;
2754
+
2721
2755
  .p-overlaypanel-content {
2722
2756
  padding: 0 !important;
2757
+
2723
2758
  .column-header,
2724
2759
  .column-footer {
2725
2760
  padding: 16px;
@@ -2750,6 +2785,7 @@ button[aria-expanded="true"] {
2750
2785
  height: 40px;
2751
2786
  }
2752
2787
  }
2788
+
2753
2789
  .filter-dropdowns {
2754
2790
  padding: 2px;
2755
2791
 
@@ -2821,6 +2857,7 @@ button[aria-expanded="true"] {
2821
2857
  border-top-left-radius: 0 !important;
2822
2858
  border-bottom-left-radius: 0 !important;
2823
2859
  }
2860
+
2824
2861
  .p-inputwrapper-filled {
2825
2862
  background: #ffffff !important;
2826
2863
  }
@@ -2849,11 +2886,13 @@ button[aria-expanded="true"] {
2849
2886
  }
2850
2887
  }
2851
2888
  }
2889
+
2852
2890
  .p-multiselect-header {
2853
2891
  .p-checkbox {
2854
2892
  display: none !important;
2855
2893
  }
2856
2894
  }
2895
+
2857
2896
  .overlay_list_options {
2858
2897
  .p-overlaypanel-content {
2859
2898
  padding: 0;
@@ -2868,9 +2907,11 @@ button[aria-expanded="true"] {
2868
2907
  .modal_filter {
2869
2908
  width: 840px;
2870
2909
  overflow-x: auto;
2910
+
2871
2911
  @media (max-width: 760px) {
2872
2912
  width: 100%;
2873
2913
  }
2914
+
2874
2915
  @media (max-width: 1024px) {
2875
2916
  width: 840px;
2876
2917
  }
@@ -2878,6 +2919,7 @@ button[aria-expanded="true"] {
2878
2919
  .p-dialog-header {
2879
2920
  display: none;
2880
2921
  }
2922
+
2881
2923
  .p-dialog-content {
2882
2924
  padding: 0px;
2883
2925
  border-radius: 6px;
@@ -2944,14 +2986,11 @@ button[aria-expanded="true"] {
2944
2986
  aspect-ratio: 1;
2945
2987
  border-radius: 50%;
2946
2988
  background:
2947
- radial-gradient(farthest-side, var(--primary-500) 94%, #0000) top/5px 5px
2948
- no-repeat,
2989
+ radial-gradient(farthest-side, var(--primary-500) 94%, #0000) top/5px 5px no-repeat,
2949
2990
  conic-gradient(#0000 5%, var(--primary-500));
2950
- -webkit-mask: radial-gradient(
2951
- farthest-side,
2952
- #0000 calc(100% - 5px),
2953
- #000 0
2954
- );
2991
+ -webkit-mask: radial-gradient(farthest-side,
2992
+ #0000 calc(100% - 5px),
2993
+ #000 0);
2955
2994
  animation: l13 1s infinite linear;
2956
2995
  }
2957
2996
 
@@ -2982,12 +3021,15 @@ button[aria-expanded="true"] {
2982
3021
  border-radius: 50%;
2983
3022
  position: relative;
2984
3023
  animation: rotate 1s linear infinite;
3024
+
2985
3025
  &:nth-child(2) {
2986
3026
  width: 90%;
2987
3027
  }
3028
+
2988
3029
  &:nth-child(3) {
2989
3030
  width: 80%;
2990
3031
  }
3032
+
2991
3033
  &:nth-child(4) {
2992
3034
  width: 70%;
2993
3035
  }
@@ -3056,6 +3098,7 @@ button[aria-expanded="true"] {
3056
3098
  }
3057
3099
  }
3058
3100
  }
3101
+
3059
3102
  position: relative;
3060
3103
  margin-right: 5px;
3061
3104
 
@@ -3126,6 +3169,7 @@ button[aria-expanded="true"] {
3126
3169
  opacity: 0;
3127
3170
  transform: scale3d(0.3, 0.3, 0.3);
3128
3171
  }
3172
+
3129
3173
  100% {
3130
3174
  opacity: 1;
3131
3175
  }
@@ -3158,6 +3202,7 @@ button[aria-expanded="true"] {
3158
3202
  .ag-grid-container:has(.custom_class_name) {
3159
3203
  .ag-cell-wrapper {
3160
3204
  width: 100% !important;
3205
+
3161
3206
  .ag-group-value {
3162
3207
  width: 100% !important;
3163
3208
  }
@@ -3195,18 +3240,22 @@ button[aria-expanded="true"] {
3195
3240
  .edited-record {
3196
3241
  background-color: var(--primary-50);
3197
3242
  }
3243
+
3198
3244
  .non-editable {
3199
3245
  background-color: var(--gray-100);
3200
3246
  }
3201
3247
 
3202
3248
  .tagify {
3203
3249
  height: 200px;
3250
+
3204
3251
  .tagify__input {
3205
3252
  color: #000;
3206
3253
  overflow: auto;
3254
+
3207
3255
  tag[type="math"] {
3208
3256
  * {
3209
3257
  padding: 0 !important;
3258
+
3210
3259
  &::before {
3211
3260
  box-shadow: none !important;
3212
3261
  }
@@ -3235,10 +3284,12 @@ button[aria-expanded="true"] {
3235
3284
  white-space: normal;
3236
3285
  word-break: break-all;
3237
3286
  overflow: hidden;
3287
+
3238
3288
  &.line_clamp_1 {
3239
3289
  -webkit-line-clamp: 1;
3240
3290
  line-clamp: 1;
3241
3291
  }
3292
+
3242
3293
  &.line_clamp_2 {
3243
3294
  -webkit-line-clamp: 2 !important;
3244
3295
  line-clamp: 2 !important;
@@ -3410,4 +3461,4 @@ button[aria-expanded="true"] {
3410
3461
 
3411
3462
  .max-height {
3412
3463
  height: 340px;
3413
- }
3464
+ }
@@ -202,9 +202,13 @@ const ColumnGroup = (props) => {
202
202
  // disabled={isDisabled}
203
203
  color: (columnsSelectedForGroup === null || columnsSelectedForGroup === void 0 ? void 0 : columnsSelectedForGroup.length) > 0
204
204
  ? "text-primary-400"
205
- : "text-gray-500" }), !isDisabled && (columnsSelectedForGroup === null || columnsSelectedForGroup === void 0 ? void 0 : columnsSelectedForGroup.length) > 0 && ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center justify-content-center" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-primary-400 font-semibold ml-1" }, { children: columnsSelectedForGroup === null || columnsSelectedForGroup === void 0 ? void 0 : columnsSelectedForGroup.length })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center gap-2 text-primary-400 font-semibold" }, { children: [(0, jsx_runtime_1.jsx)("p", Object.assign({ className: "ml-2 text-primary-400" }, { children: "Selected" })), (0, jsx_runtime_1.jsx)(button_1.Button, { onClick: (e) => clearListItems(e), className: "h-auto p-0 pad_0 sc_icon_hover", text: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "x-close", color: "text-primary-400", size: 18 }) })] }))] })))] })), (0, jsx_runtime_1.jsxs)(overlaypanel_1.OverlayPanel, Object.assign({ ref: columnGroupRef, className: "column-group p-1", onHide: handleHide }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "column-header" }, { children: [(0, jsx_runtime_1.jsx)("h3", Object.assign({ className: "my-0" }, { children: "Grouping" })), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "my-0 mb-4" }, { children: "Select one or two columns for sorting" }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "column-body" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-input-icon-right w-full p-2 bg-gray-50" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "p-input-suffix top-0", style: { right: "20px" } }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "search-md" }) })), (0, jsx_runtime_1.jsx)(inputtext_1.InputText, { onChange: (e) => setSearchedText(e.target.value), value: searchText, disabled: false, placeholder: "Enter any column name", className: "text-lg font-normal text-gray-500 hover:text-gray-900 w-full" })] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex flex-column gap-1 m-1 max-h-15rem max-w-30rem overflow-y-auto" }, { children: renderColumns.length > 0 ? (renderColumns === null || renderColumns === void 0 ? void 0 : renderColumns.map((column, index) => ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center pl-2" }, { children: [checkedColumns.has(column === null || column === void 0 ? void 0 : column.id) && ((0, jsx_runtime_1.jsx)("img", { onDragStart: (e) => onDragStart(e, index), onDragOver: onDragOver, onDrop: (e) => onDrop(e, index), src: drag_and_drop_icon_png_1.default, width: 20, height: 20, className: checkedColumns.has(column === null || column === void 0 ? void 0 : column.id)
206
- ? "col-gr-icon-active mr-2"
207
- : "col-gr-icon" })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex gap-2 ${checkedColumns.has(column === null || column === void 0 ? void 0 : column.id) && "bg-primary-25"} hover:bg-primary-25 border-round-sm p-3 w-full` }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: checkedColumns.has(column === null || column === void 0 ? void 0 : column.id), onChange: (e) => onSelectedCheckbox(column, e), disabled: checkedColumns.size === 2 &&
208
- !checkedColumns.has(column === null || column === void 0 ? void 0 : column.id) }), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "max-w-18rem line-clamp line-clamp-1 inline-block text-truncate", title: column.headerName }, { children: column.headerName }))] }))] }), column === null || column === void 0 ? void 0 : column.id)))) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "max-w-20rem p-6 text-center" }, { children: "No results found on the search criteria" }))) }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "column-footer gap-2 border-top-1 border-gray-200 flex align-items-center justify-content-between" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { className: "btn-text", label: "Remove Grouping", onClick: (e) => clearListItems(e) }), (0, jsx_runtime_1.jsx)(button_1.Button, { className: "cursor-pointer", label: "Save Grouping", onClick: (e) => clearSearchAndSaveGrouping(e), disabled: (checkedColumns === null || checkedColumns === void 0 ? void 0 : checkedColumns.size) === 0 })] }))] }))] }));
205
+ : "text-gray-500" }), !isDisabled && (columnsSelectedForGroup === null || columnsSelectedForGroup === void 0 ? void 0 : columnsSelectedForGroup.length) > 0 && ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center justify-content-center" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-primary-400 font-semibold ml-1" }, { children: columnsSelectedForGroup === null || columnsSelectedForGroup === void 0 ? void 0 : columnsSelectedForGroup.length })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center gap-2 text-primary-400 font-semibold" }, { children: [(0, jsx_runtime_1.jsx)("p", Object.assign({ className: "ml-2 text-primary-400" }, { children: "Selected" })), (0, jsx_runtime_1.jsx)(button_1.Button, { onClick: (e) => clearListItems(e), className: "h-auto p-0 pad_0 sc_icon_hover", text: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "x-close", color: "text-primary-400", size: 18 }) })] }))] })))] })), (0, jsx_runtime_1.jsxs)(overlaypanel_1.OverlayPanel, Object.assign({ ref: columnGroupRef, className: "column-group p-1", onHide: handleHide }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "column-header" }, { children: [(0, jsx_runtime_1.jsx)("h3", Object.assign({ className: "my-0" }, { children: "Grouping" })), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "my-0 mb-4" }, { children: "Select one or two columns for sorting" }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "column-body" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-input-icon-right w-full p-2 bg-gray-50" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "p-input-suffix top-0", style: { right: "20px" } }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "search-md" }) })), (0, jsx_runtime_1.jsx)(inputtext_1.InputText, { onChange: (e) => setSearchedText(e.target.value), value: searchText, disabled: false, placeholder: "Enter any column name", className: "text-lg font-normal text-gray-500 hover:text-gray-900 w-full" })] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex flex-column gap-1 m-1 max-h-15rem max-w-30rem overflow-y-auto" }, { children: renderColumns.length > 0 ? (renderColumns === null || renderColumns === void 0 ? void 0 : renderColumns.map((column, index) => {
206
+ var _a;
207
+ const checkboxId = `column-group-${(_a = column === null || column === void 0 ? void 0 : column.id) !== null && _a !== void 0 ? _a : index}`;
208
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center pl-2" }, { children: [checkedColumns.has(column === null || column === void 0 ? void 0 : column.id) && ((0, jsx_runtime_1.jsx)("img", { onDragStart: (e) => onDragStart(e, index), onDragOver: onDragOver, onDrop: (e) => onDrop(e, index), src: drag_and_drop_icon_png_1.default, width: 20, height: 20, className: checkedColumns.has(column === null || column === void 0 ? void 0 : column.id)
209
+ ? "col-gr-icon-active mr-2"
210
+ : "col-gr-icon" })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex gap-2 ${checkedColumns.has(column === null || column === void 0 ? void 0 : column.id) && "bg-primary-25"} hover:bg-primary-25 border-round-sm p-3 w-full` }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { inputId: checkboxId, checked: checkedColumns.has(column === null || column === void 0 ? void 0 : column.id), onChange: (e) => onSelectedCheckbox(column, e), disabled: checkedColumns.size === 2 &&
211
+ !checkedColumns.has(column === null || column === void 0 ? void 0 : column.id) }), (0, jsx_runtime_1.jsx)("label", Object.assign({ htmlFor: checkboxId, className: "max-w-18rem line-clamp line-clamp-1 inline-block text-truncate", title: column.headerName }, { children: column.headerName }))] }))] }), column === null || column === void 0 ? void 0 : column.id));
212
+ })) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "max-w-20rem p-6 text-center" }, { children: "No results found on the search criteria" }))) }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "column-footer gap-2 border-top-1 border-gray-200 flex align-items-center justify-content-between" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { className: "btn-text", label: "Remove Grouping", onClick: (e) => clearListItems(e) }), (0, jsx_runtime_1.jsx)(button_1.Button, { className: "cursor-pointer", label: "Save Grouping", onClick: (e) => clearSearchAndSaveGrouping(e), disabled: (checkedColumns === null || checkedColumns === void 0 ? void 0 : checkedColumns.size) === 0 })] }))] }))] }));
209
213
  };
210
214
  exports.default = ColumnGroup;
@@ -120,7 +120,8 @@ function Sort() {
120
120
  : "text-gray-500" }) })) })), (0, jsx_runtime_1.jsxs)(overlaypanel_1.OverlayPanel, Object.assign({ ref: showShort, onShow: () => setIsOverlayOpened(true), onHide: () => setIsOverlayOpened(false), className: "w-18rem mt-2 overlay_list_options overflow-hidden", id: "sorting_columns" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "p-4 text-lg font-semibold line-height-3 text-gray-900 border-bottom-1 border-gray-200" }, { children: (sortModelText === null || sortModelText === void 0 ? void 0 : sortModelText.header) ? sortModelText.header : "Column Sorting" })), (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: "pl-0 m-1 max-h-10rem overflow-auto" }, { children: columnData === null || columnData === void 0 ? void 0 : columnData.map((eachColumn, index) => {
121
121
  if (eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.isSortable) {
122
122
  const isSelected = eachColumn.field === (sortValue === null || sortValue === void 0 ? void 0 : sortValue.field);
123
- return ((0, jsx_runtime_1.jsxs)("li", Object.assign({ title: eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.headerName, className: `${isSelected && "bg-primary-25"} cursor-pointer br-6 flex align-items-center gap-2 px-3 py-2 text-base line-height-2 text-gray-700 hover:bg-primary-25 mb-1`, style: { listStyleType: "none" }, onClick: () => onSelectSortValue(eachColumn) }, { children: [(0, jsx_runtime_1.jsx)(radiobutton_1.RadioButton, { id: "tableSort", checked: isSelected, type: "circle", value: sortValue }), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: `cursor-pointer line-clamp line-clamp-1 block w-15rem ${isSelected && "text-primary-400 font-semibold"}` }, { children: eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.headerName }))] }), index));
123
+ const sortInputId = `tableSort-${index}`;
124
+ return ((0, jsx_runtime_1.jsxs)("li", Object.assign({ title: eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.headerName, className: `${isSelected && "bg-primary-25"} cursor-pointer br-6 flex align-items-center gap-2 px-3 py-2 text-base line-height-2 text-gray-700 hover:bg-primary-25 mb-1`, style: { listStyleType: "none" }, onClick: () => onSelectSortValue(eachColumn) }, { children: [(0, jsx_runtime_1.jsx)(radiobutton_1.RadioButton, { inputId: sortInputId, checked: isSelected, type: "circle", value: sortValue }), (0, jsx_runtime_1.jsx)("label", Object.assign({ htmlFor: sortInputId, className: `cursor-pointer line-clamp line-clamp-1 block w-15rem ${isSelected && "text-primary-400 font-semibold"}` }, { children: eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.headerName }))] }), index));
124
125
  }
125
126
  else {
126
127
  return null;
@@ -35,10 +35,10 @@ function Search({ searchPlaceHolder }) {
35
35
  }
36
36
  }, [deboucedValue]);
37
37
  return (0, utilComponents_1.skeletonLoding)() ? ((0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "40px", width: "336px" })) : ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `p-input-icon-left ${inputValue.length > 0 ? "p-input-icon-right" : ""}` }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "p-input-prefix zoom_animate" }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { color: "#667085", icon: "search-lg", size: 18, disabled: isDisabled }) })), inputValue.length > 0 && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: "p-input-suffix cursor-pointer zoom_animate", onClick: () => {
38
- var _a, _b;
39
- (_a = gridApi === null || gridApi === void 0 ? void 0 : gridApi.current.api) === null || _a === void 0 ? void 0 : _a.hideOverlay();
38
+ var _a, _b, _c;
39
+ (_b = (_a = gridApi === null || gridApi === void 0 ? void 0 : gridApi.current) === null || _a === void 0 ? void 0 : _a.api) === null || _b === void 0 ? void 0 : _b.hideOverlay();
40
40
  if (rowModelType === constants_1.ROWMODELTYPE.CLIENT_SIDE && quickSearch) {
41
- (_b = gridApi === null || gridApi === void 0 ? void 0 : gridApi.current.api) === null || _b === void 0 ? void 0 : _b.setGridOption("quickFilterText", "");
41
+ (_c = gridApi === null || gridApi === void 0 ? void 0 : gridApi.current.api) === null || _c === void 0 ? void 0 : _c.setGridOption("quickFilterText", "");
42
42
  }
43
43
  else {
44
44
  setFeatureDetails(Object.assign(Object.assign({}, featureDetails), { searchedText: "" }));
@@ -229,7 +229,7 @@ const conditionsList = [
229
229
  fieldOperators: [
230
230
  Types_1.FilterDataType.STRING,
231
231
  Types_1.FilterDataType.SELECT,
232
- Types_1.FilterDataType.BOOLEAN,
232
+ // FilterDataType.BOOLEAN,
233
233
  Types_1.FilterDataType.INTEGER,
234
234
  Types_1.FilterDataType.DECIMAL,
235
235
  Types_1.FilterDataType.CURRENCY,
@@ -247,7 +247,7 @@ const conditionsList = [
247
247
  fieldOperators: [
248
248
  Types_1.FilterDataType.STRING,
249
249
  Types_1.FilterDataType.SELECT,
250
- Types_1.FilterDataType.BOOLEAN,
250
+ // FilterDataType.BOOLEAN,
251
251
  Types_1.FilterDataType.INTEGER,
252
252
  Types_1.FilterDataType.DECIMAL,
253
253
  Types_1.FilterDataType.CURRENCY,
@@ -185,6 +185,7 @@ const TableFilter = () => {
185
185
  options: eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.options,
186
186
  fieldKey: eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.fieldKey,
187
187
  attributeType: eachColumn.attributeType ? eachColumn.attributeType : 1,
188
+ isSystemAttribute: eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.isSystemAttribute
188
189
  }));
189
190
  /**
190
191
  * Default empty condition template
@@ -4,6 +4,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const svg_1 = require("../../../assets/svg/svg");
5
5
  const FieldLabel = (props) => {
6
6
  return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center", style: { gap: "2px" } }, { children: [(props === null || props === void 0 ? void 0 : props.isRequired) && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (!(props === null || props === void 0 ? void 0 : props.error) && (props === null || props === void 0 ? void 0 : props.touched)) ||
7
- ((props === null || props === void 0 ? void 0 : props.value) && !(props === null || props === void 0 ? void 0 : props.touched)) ? ((0, jsx_runtime_1.jsx)(svg_1.LightningGreen, {})) : (props === null || props === void 0 ? void 0 : props.error) && (props === null || props === void 0 ? void 0 : props.touched) ? ((0, jsx_runtime_1.jsx)(svg_1.LightningRed, {})) : ((0, jsx_runtime_1.jsx)(svg_1.Lightning, {})) })), (0, jsx_runtime_1.jsx)("label", Object.assign({ htmlFor: props === null || props === void 0 ? void 0 : props.label, className: "mb-1 text_ellipsis" }, { children: props === null || props === void 0 ? void 0 : props.label }))] })) }));
7
+ ((props === null || props === void 0 ? void 0 : props.value) && !(props === null || props === void 0 ? void 0 : props.touched)) ? ((0, jsx_runtime_1.jsx)(svg_1.LightningGreen, {})) : (props === null || props === void 0 ? void 0 : props.error) && (props === null || props === void 0 ? void 0 : props.touched) ? ((0, jsx_runtime_1.jsx)(svg_1.LightningRed, {})) : ((0, jsx_runtime_1.jsx)(svg_1.Lightning, {})) })), (0, jsx_runtime_1.jsx)("label", Object.assign({ htmlFor: props === null || props === void 0 ? void 0 : props.htmlFor, className: "mb-1 text_ellipsis" }, { children: props === null || props === void 0 ? void 0 : props.label }))] })) }));
8
8
  };
9
9
  exports.default = FieldLabel;
@@ -19,7 +19,7 @@ const InputTextField = (props) => {
19
19
  // <label className="font-medium text-base mb-1" htmlFor={name}>
20
20
  // {label}
21
21
  // </label>
22
- (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, error: errors === null || errors === void 0 ? void 0 : errors[name], touched: touched === null || touched === void 0 ? void 0 : touched[name], isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ type: "text", name: name, validate: validate }, { children: ({ field }) => ((0, jsx_runtime_1.jsx)(inputtext_1.InputText, Object.assign({ maxLength: maxLength, autoComplete: "off", disabled: disabled, placeholder: placeholder }, field, { className: ` ${errors[name] && touched[name] ? "p-invalid" : ""} ${length === "full" ? "full_form_field" : "form_field"} ${className}`, id: name }))) }))] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "16px", className: "mb-1 w-5rem" }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `${className ? className : "form_field"} ` }, { children: (0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "40px" }) }))] })), (errors === null || errors === void 0 ? void 0 : errors[name]) && (touched === null || touched === void 0 ? void 0 : touched[name]) ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors === null || errors === void 0 ? void 0 : errors[name] }) }))) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) })))] })));
22
+ (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, htmlFor: name, error: errors === null || errors === void 0 ? void 0 : errors[name], touched: touched === null || touched === void 0 ? void 0 : touched[name], isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ type: "text", name: name, validate: validate }, { children: ({ field }) => ((0, jsx_runtime_1.jsx)(inputtext_1.InputText, Object.assign({ maxLength: maxLength, autoComplete: "off", disabled: disabled, placeholder: placeholder }, field, { className: ` ${errors[name] && touched[name] ? "p-invalid" : ""} ${length === "full" ? "full_form_field" : "form_field"} ${className}`, id: name }))) }))] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "16px", className: "mb-1 w-5rem" }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `${className ? className : "form_field"} ` }, { children: (0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "40px" }) }))] })), (errors === null || errors === void 0 ? void 0 : errors[name]) && (touched === null || touched === void 0 ? void 0 : touched[name]) ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors === null || errors === void 0 ? void 0 : errors[name] }) }))) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) })))] })));
23
23
  };
24
24
  const InputNumberField = (props) => {
25
25
  const { errors, touched, name, length, label, placeholder, useGrouping = false, optional, setFieldValue, min, max, maxLength, className, validate, disabled, isLoading, inputClassName, icon, iconPos, maxFractionDigits, minFractionDigits, inputNumberProps = {}, isRequired = false, value, } = props;
@@ -27,7 +27,7 @@ const InputNumberField = (props) => {
27
27
  // <label className="font-medium text-base mb-1" htmlFor={name}>
28
28
  // {label}
29
29
  // </label>
30
- (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, error: errors === null || errors === void 0 ? void 0 : errors[name], touched: touched === null || touched === void 0 ? void 0 : touched[name], isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ name: name, errors: errors, touched: touched, validate: validate }, { children: ({ field }) => {
30
+ (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, htmlFor: name, error: errors === null || errors === void 0 ? void 0 : errors[name], touched: touched === null || touched === void 0 ? void 0 : touched[name], isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ name: name, errors: errors, touched: touched, validate: validate }, { children: ({ field }) => {
31
31
  const { value, name } = field;
32
32
  return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: icon ? ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: `p-input-icon-${iconPos}` }, { children: [(0, jsx_runtime_1.jsx)("i", { className: `pi pi-${icon} text-base` }), (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ value: value, name: name, useGrouping: useGrouping, maxFractionDigits: maxFractionDigits ? maxFractionDigits : null, minFractionDigits: minFractionDigits ? minFractionDigits : null, inputClassName: inputClassName ? inputClassName : "", min: min, max: max, disabled: disabled, maxLength: maxLength, placeholder: placeholder, onValueChange: (e) => setFieldValue(name, e.value !== null ? e.value : min), className: ` ${errors[name] && touched[name] ? "p-invalid" : ""} ${length === "full" ? "full_form_field" : "form_field"} ${className}`, id: name }, inputNumberProps))] }))) : ((0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ value: value, name: name, useGrouping: useGrouping, maxFractionDigits: maxFractionDigits ? maxFractionDigits : 0, minFractionDigits: minFractionDigits ? minFractionDigits : 0, inputClassName: inputClassName ? inputClassName : "", min: min, max: max, disabled: disabled, maxLength: maxLength, placeholder: placeholder, onValueChange: (e) => setFieldValue(name, e.value !== null ? e.value : min), className: ` ${errors[name] && touched[name] ? "p-invalid" : ""} ${length === "full" ? "full_form_field" : "form_field"} ${className}`, id: name }, inputNumberProps))) }));
33
33
  } })), (errors === null || errors === void 0 ? void 0 : errors[name]) && (touched === null || touched === void 0 ? void 0 : touched[name]) ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors === null || errors === void 0 ? void 0 : errors[name] }) }))) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) })))] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "16px", className: "mb-1 w-5rem" }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `${className ? className : "form_field"} ` }, { children: (0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "40px" }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) }))] })) })));
@@ -40,7 +40,7 @@ const InputCurrencyField = (props) => {
40
40
  // <label className="font-medium text-base mb-1" htmlFor={name}>
41
41
  // {label}
42
42
  // </label>
43
- (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, error: errorData, touched: touchedData, isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ name: name, errors: errors, touched: touched, validate: validate }, { children: ({ field }) => {
43
+ (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, htmlFor: name, error: errorData, touched: touchedData, isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ name: name, errors: errors, touched: touched, validate: validate }, { children: ({ field }) => {
44
44
  const { value, name } = field;
45
45
  return ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: `${spanClassName} currency_with_input` }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center gap-2 w-full" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-lg text-gray-600 font-normal px-2" }, { children: currenyIcon ? currenyIcon : "$" })), (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ name: name, value: value, "aria-autocomplete": "none", minFractionDigits: 2, disabled: disabled, min: min, max: max, maxLength: maxLength, onValueChange: (e) => setFieldValue(name, e.value !== null ? e.value : min), maxFractionDigits: 2, placeholder: placeholder, className: ` customNumberField ${errors[name] && touched[name] ? "p-invalid" : ""} ${length === "full" ? "" : ""} ${className}`, id: name, useGrouping: useGrouping }, inputNumberProps))] })), Boolean(value) && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center px-2", onClick: () => setFieldValue(name, null) }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "x-close", size: 15, color: "text-gray-600" }) })))] })));
46
46
  } })), errorData && touchedData ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: errorData }) }))) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) })))] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "16px", className: "mb-1 w-5rem" }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `${className ? className : "form_field"} ` }, { children: (0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "40px" }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) }))] })) })));
@@ -56,7 +56,7 @@ const InputTextAreaField = (props) => {
56
56
  // <label className="font-medium text-base mb-1" htmlFor={name}>
57
57
  // {label}
58
58
  // </label>
59
- (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, error: errors === null || errors === void 0 ? void 0 : errors[name], touched: touched === null || touched === void 0 ? void 0 : touched[name], isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ name: name, type: "textarea", validate: validate }, { children: ({ field }) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(inputtextarea_1.InputTextarea, Object.assign({ autoComplete: "off", placeholder: placeholder, style: {
59
+ (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, htmlFor: name, error: errors === null || errors === void 0 ? void 0 : errors[name], touched: touched === null || touched === void 0 ? void 0 : touched[name], isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ name: name, type: "textarea", validate: validate }, { children: ({ field }) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(inputtextarea_1.InputTextarea, Object.assign({ autoComplete: "off", placeholder: placeholder, style: {
60
60
  height: "154px",
61
61
  resize: "none",
62
62
  overflowY: "scroll",
@@ -65,14 +65,14 @@ const InputTextAreaField = (props) => {
65
65
  const DropDownField = (props) => {
66
66
  const { errors, touched, name, length, label, onFocus,
67
67
  // onChange,
68
- placeholder, panelClassName, showClear, options, optional, customSelectedTemplate, customFieldsTemplate, optionLabel, optionDisabled, className, validate, disabled, filter, panelStyle, isLoading, isRequired = false, value, filterPlaceholder, emptyMessage, emptyFilterMessage, unselect = false } = props;
68
+ placeholder, panelClassName, showClear, options, optional, customSelectedTemplate, customFieldsTemplate, optionLabel, optionDisabled, className, validate, disabled, filter, panelStyle, isLoading, isRequired = false, value, filterPlaceholder, emptyMessage, emptyFilterMessage, unselect = false, } = props;
69
69
  const errorData = (0, formik_1.getIn)(errors, name);
70
70
  const touchedData = (0, formik_1.getIn)(touched, name);
71
71
  return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex flex-column" }, { children: !isLoading ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [optional && ((0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "font-medium text-base mb-1 w-full flex justify-content-between text_ellipsis", htmlFor: name }, { children: [label, (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-base font-medium font-italic text-gray-600" }, { children: "Optional" }))] }))), !optional && (
72
72
  // <label className="font-medium text-base mb-1" htmlFor={name}>
73
73
  // {label}
74
74
  // </label>
75
- (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, error: errorData, touched: touchedData, isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ type: "text", name: name, validate: validate }, { children: ({ field }) => ((0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, Object.assign({ onFocus: () => {
75
+ (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, htmlFor: name, error: errorData, touched: touchedData, isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ type: "text", name: name, validate: validate }, { children: ({ field }) => ((0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, Object.assign({ onFocus: () => {
76
76
  onFocus && onFocus();
77
77
  }, panelClassName: panelClassName, showClear: showClear, panelStyle: panelStyle || "", filter: filter || false, disabled: disabled, placeholder: placeholder }, field, { onChange: (e) => {
78
78
  !unselect && field.onChange(e);
@@ -86,7 +86,7 @@ const MultiSelectField = (props) => {
86
86
  // <label className="font-medium text-base mb-1" htmlFor={name}>
87
87
  // {label}
88
88
  // </label>
89
- (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, error: errors === null || errors === void 0 ? void 0 : errors[name], touched: touched === null || touched === void 0 ? void 0 : touched[name], isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ type: "text", name: name, validate: validate }, { children: ({ field }) => ((0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, Object.assign({ filter: filter ? filter : false, disabled: disabled, placeholder: placeholder }, field, { options: options, itemTemplate: customFieldsTemplate, optionDisabled: optionDisabled, optionLabel: optionLabel, className: ` ${errors[name] && touched[name] ? "p-invalid" : ""} ${length === "full" ? "full_form_field" : "form_field"} ${className}`, id: name }))) })), (errors === null || errors === void 0 ? void 0 : errors[name]) && (touched === null || touched === void 0 ? void 0 : touched[name]) ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors === null || errors === void 0 ? void 0 : errors[name] }) }))) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) })))] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "16px", className: "mb-1 w-5rem" }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `${className ? className : "form_field"} ` }, { children: (0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "40px" }) }))] })) })));
89
+ (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, htmlFor: name, error: errors === null || errors === void 0 ? void 0 : errors[name], touched: touched === null || touched === void 0 ? void 0 : touched[name], isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ type: "text", name: name, validate: validate }, { children: ({ field }) => ((0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, Object.assign({ filter: filter ? filter : false, disabled: disabled, placeholder: placeholder }, field, { options: options, itemTemplate: customFieldsTemplate, optionDisabled: optionDisabled, optionLabel: optionLabel, className: ` ${errors[name] && touched[name] ? "p-invalid" : ""} ${length === "full" ? "full_form_field" : "form_field"} ${className}`, id: name }))) })), (errors === null || errors === void 0 ? void 0 : errors[name]) && (touched === null || touched === void 0 ? void 0 : touched[name]) ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors === null || errors === void 0 ? void 0 : errors[name] }) }))) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) })))] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "16px", className: "mb-1 w-5rem" }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `${className ? className : "form_field"} ` }, { children: (0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "40px" }) }))] })) })));
90
90
  };
91
91
  const PhoneNumberField = (props) => {
92
92
  const { errors, touched, name, length, values, label, placeholder, optional, position, setFieldValue, isLoading, isRequired = false, value, } = props;
@@ -109,7 +109,7 @@ const PhoneNumberField = (props) => {
109
109
  // <label className="font-medium text-base mb-1" htmlFor={name}>
110
110
  // {label}
111
111
  // </label>
112
- (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, error: errors === null || errors === void 0 ? void 0 : errors[name], touched: touched === null || touched === void 0 ? void 0 : touched[name], isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ type: "text", name: name }, { children: ({ field }) => ((0, jsx_runtime_1.jsx)(max_1.default, Object.assign({ international: true, countryCallingCodeEditable: false, withCountryCallingCode: false, countrySelectComponent: customCountry, usenationalformatfordefaultcountryvalue: "true", defaultCountry: values[name], limitMaxLength: true, className: ` flex align-items-center ${errors[name] ? "p-invalid" : ""} ${length === "full" ? "full_form_field" : "form_field"}` }, field, { onChange: (e) => setFieldValue(name, e) }))) })), errors[name] && touched[name] ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors[name] }) }))) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) })))] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "16px", className: "mb-1 w-5rem" }), (0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "40px", className: `full_form_field` })] })) })));
112
+ (0, jsx_runtime_1.jsx)(FieldLabel_1.default, { value: value, label: label, htmlFor: name, error: errors === null || errors === void 0 ? void 0 : errors[name], touched: touched === null || touched === void 0 ? void 0 : touched[name], isRequired: isRequired })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ type: "text", name: name }, { children: ({ field }) => ((0, jsx_runtime_1.jsx)(max_1.default, Object.assign({ international: true, countryCallingCodeEditable: false, withCountryCallingCode: false, countrySelectComponent: customCountry, usenationalformatfordefaultcountryvalue: "true", defaultCountry: values[name], limitMaxLength: true, className: ` flex align-items-center ${errors[name] ? "p-invalid" : ""} ${length === "full" ? "full_form_field" : "form_field"}` }, field, { onChange: (e) => setFieldValue(name, e) }))) })), errors[name] && touched[name] ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors[name] }) }))) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "errorField flex align-items-center text-sm" }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) })))] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "16px", className: "mb-1 w-5rem" }), (0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "40px", className: `full_form_field` })] })) })));
113
113
  };
114
114
  // const InputGroupField = (props: any) => {
115
115
  // value const { errors, touched, name, length, label, placeholder, optional, position, setFieldValue, validate
@@ -6,7 +6,7 @@ const react_1 = require("react");
6
6
  const dropdown_1 = require("primereact/dropdown");
7
7
  const inputnumber_1 = require("primereact/inputnumber");
8
8
  const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-component"));
9
- const menu_1 = require("primereact/menu");
9
+ const menu_1 = tslib_1.__importDefault(require("../menu/menu"));
10
10
  // import { InputText } from "primereact/inputtext";
11
11
  const Tagify_1 = tslib_1.__importDefault(require("./Tagify"));
12
12
  const ExpressionRender_1 = tslib_1.__importDefault(require("./ExpressionRender"));
@@ -81,6 +81,6 @@ const FormulaComponent = (props) => {
81
81
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
82
82
  }
83
83
  }
84
- })() }), (0, jsx_runtime_1.jsx)(menu_1.Menu, { onShow: () => setIsMenuVisible(true), onHide: () => setIsMenuVisible(false), popup: true, popupAlignment: "left", className: `w-28rem p-0 ${props === null || props === void 0 ? void 0 : props.menuClassName}`, model: menuContent, ref: priceConditioRef, id: "condition_menu_popup" })] }), "asadssadsasdsdadasd"));
84
+ })() }), (0, jsx_runtime_1.jsx)(menu_1.default, { onShow: () => setIsMenuVisible(true), onHide: () => setIsMenuVisible(false), popup: true, popupAlignment: "left", className: `w-28rem p-0 ${props === null || props === void 0 ? void 0 : props.menuClassName}`, model: menuContent, ref: priceConditioRef, id: "condition_menu_popup" })] }), "asadssadsasdsdadasd"));
85
85
  };
86
86
  exports.default = FormulaComponent;
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const listbox_1 = require("primereact/listbox");
6
- const menu_1 = require("primereact/menu");
7
6
  const react_1 = require("react");
8
7
  const button_1 = require("primereact/button");
9
8
  const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-component"));
10
9
  const virtualization_component_1 = tslib_1.__importDefault(require("./virtualization-component"));
10
+ const menu_1 = tslib_1.__importDefault(require("../menu/menu"));
11
11
  // import { InputText } from "primereact/inputtext";
12
12
  // import { Checkbox } from "primereact/checkbox";
13
13
  const ListBoxDropdown = (props) => {
@@ -119,7 +119,7 @@ const ListBoxDropdown = (props) => {
119
119
  window.removeEventListener("scroll", handleScroll);
120
120
  };
121
121
  }, [buttonPosition]);
122
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `${className}` }, { children: [(0, jsx_runtime_1.jsx)(menu_1.Menu, { onShow: (e) => onShow && onShow(e), onHide: (e) => onHide && onHide(e), onFocus: (e) => onFocus && onFocus(e), popup: true, ref: optionsMenuRef,
122
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `${className}` }, { children: [(0, jsx_runtime_1.jsx)(menu_1.default, { onShow: (e) => onShow && onShow(e), onHide: (e) => onHide && onHide(e), onFocus: (e) => onFocus && onFocus(e), popup: true, ref: optionsMenuRef,
123
123
  // onMouseLeave={onMouseLeaveMenu}
124
124
  id: "popup_menu_bottom", className: menuClassName ? menuClassName : "", model: [
125
125
  {
@@ -1,4 +1,49 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ const react_1 = require("react");
3
5
  const menu_1 = require("primereact/menu");
4
- exports.default = menu_1.Menu;
6
+ const Menu = (0, react_1.forwardRef)((props, ref) => {
7
+ const menuRef = (0, react_1.useRef)(null);
8
+ const visibleRef = (0, react_1.useRef)(false);
9
+ (0, react_1.useImperativeHandle)(ref, () => menuRef === null || menuRef === void 0 ? void 0 : menuRef.current);
10
+ (0, react_1.useEffect)(() => {
11
+ if (!props.popup)
12
+ return undefined;
13
+ const hideMenu = (event) => {
14
+ var _a;
15
+ if (!(visibleRef === null || visibleRef === void 0 ? void 0 : visibleRef.current))
16
+ return;
17
+ (_a = menuRef === null || menuRef === void 0 ? void 0 : menuRef.current) === null || _a === void 0 ? void 0 : _a.hide(event);
18
+ };
19
+ const handleScroll = (event) => {
20
+ var _a, _b;
21
+ const target = event.target;
22
+ if (!(target instanceof HTMLElement)) {
23
+ hideMenu(event);
24
+ return;
25
+ }
26
+ const menuElement = (_b = (_a = menuRef === null || menuRef === void 0 ? void 0 : menuRef.current) === null || _a === void 0 ? void 0 : _a.getElement) === null || _b === void 0 ? void 0 : _b.call(_a);
27
+ if (!(menuElement === null || menuElement === void 0 ? void 0 : menuElement.contains(target))) {
28
+ hideMenu(event);
29
+ }
30
+ };
31
+ window.addEventListener("scroll", handleScroll, true);
32
+ return () => {
33
+ window.removeEventListener("scroll", handleScroll, true);
34
+ };
35
+ }, [props.popup]);
36
+ const handleShow = (event) => {
37
+ var _a;
38
+ visibleRef.current = true;
39
+ (_a = props.onShow) === null || _a === void 0 ? void 0 : _a.call(props, event);
40
+ };
41
+ const handleHide = (event) => {
42
+ var _a;
43
+ visibleRef.current = false;
44
+ (_a = props.onHide) === null || _a === void 0 ? void 0 : _a.call(props, event);
45
+ };
46
+ return ((0, jsx_runtime_1.jsx)(menu_1.Menu, Object.assign({ ref: menuRef }, props, { onShow: handleShow, onHide: handleHide })));
47
+ });
48
+ Menu.displayName = "Menu";
49
+ exports.default = Menu;
@@ -5,19 +5,19 @@ const react_1 = require("react");
5
5
  const overlaypanel_1 = require("primereact/overlaypanel");
6
6
  const OverlayPanel = (0, react_1.forwardRef)((props, ref) => {
7
7
  const overlayRef = (0, react_1.useRef)(null);
8
- (0, react_1.useImperativeHandle)(ref, () => overlayRef.current);
8
+ (0, react_1.useImperativeHandle)(ref, () => overlayRef === null || overlayRef === void 0 ? void 0 : overlayRef.current);
9
9
  (0, react_1.useEffect)(() => {
10
10
  const handleScroll = (event) => {
11
11
  var _a, _b;
12
12
  const target = event.target;
13
13
  // Check if target is an HTMLElement
14
14
  if (!(target instanceof HTMLElement)) {
15
- (_a = overlayRef.current) === null || _a === void 0 ? void 0 : _a.hide();
15
+ (_a = overlayRef === null || overlayRef === void 0 ? void 0 : overlayRef.current) === null || _a === void 0 ? void 0 : _a.hide();
16
16
  return;
17
17
  }
18
18
  // Hide only when scrolling outside overlay
19
19
  if (!target.closest(".p-overlaypanel")) {
20
- (_b = overlayRef.current) === null || _b === void 0 ? void 0 : _b.hide();
20
+ (_b = overlayRef === null || overlayRef === void 0 ? void 0 : overlayRef.current) === null || _b === void 0 ? void 0 : _b.hide();
21
21
  }
22
22
  };
23
23
  window.addEventListener("scroll", handleScroll, true);
@@ -1,5 +1,6 @@
1
1
  interface FieldLabel {
2
2
  label: string;
3
+ htmlFor?: string;
3
4
  error: string;
4
5
  touched: boolean;
5
6
  isRequired: boolean;
@@ -1,2 +1,3 @@
1
- import { Menu } from 'primereact/menu';
1
+ import { Menu as PrimeMenu, MenuProps } from "primereact/menu";
2
+ declare const Menu: import("react").ForwardRefExoticComponent<MenuProps & import("react").RefAttributes<PrimeMenu>>;
2
3
  export default Menu;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.5.31",
3
+ "version": "6.5.33",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",