sccoreui 3.6.1 → 3.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/App.scss CHANGED
@@ -161,6 +161,8 @@ h3 {
161
161
  border-left: 2px solid #132067;
162
162
  border-bottom: 2px solid #132067;
163
163
  transform: rotate(-45deg);
164
+ position: absolute;
165
+ right: 10px;
164
166
  }
165
167
  }
166
168
  }
@@ -313,7 +315,7 @@ h3 {
313
315
  position: absolute;
314
316
  transform: translateY(-50%);
315
317
  top: 50%;
316
- left: 0px;
318
+ left: 10px;
317
319
  border-radius: 50px;
318
320
  }
319
321
 
@@ -333,16 +335,17 @@ h3 {
333
335
  .custom_date_picker_sec {
334
336
 
335
337
  .custom_date_picker {
338
+
336
339
  // padding-left: 134px;
337
- .p-inputtext{
340
+ .p-inputtext {
338
341
  padding-right: 16px;
339
342
  width: 130px;
340
343
  // max-width: max-content;
341
344
  }
342
345
  }
343
-
346
+
344
347
  .custom_date_picker.multiple {
345
- .p-inputtext{
348
+ .p-inputtext {
346
349
  width: 236px;
347
350
  // max-width: max-content;
348
351
  }
@@ -361,9 +364,11 @@ h3 {
361
364
  background: #fff;
362
365
  height: 100%;
363
366
  padding: 4px 16px;
367
+
364
368
  li {
365
369
  height: 40px;
366
- &:hover{
370
+
371
+ &:hover {
367
372
  background: #F9FAFB;
368
373
  }
369
374
  }
@@ -372,7 +377,7 @@ h3 {
372
377
  background: #F9FAFB;
373
378
  }
374
379
 
375
-
380
+
376
381
  }
377
382
 
378
383
  div:has(ul.date_filter) .p-datepicker-group-container {
@@ -402,7 +407,7 @@ div:has(ul.date_filter) .p-datepicker-group-container .p-datepicker-group {
402
407
  border-top: 0;
403
408
  }
404
409
 
405
- div:has(ul.date_filter) .p-datepicker-group-container div:nth-child(2){
410
+ div:has(ul.date_filter) .p-datepicker-group-container div:nth-child(2) {
406
411
  border-right: 0;
407
412
  }
408
413
 
@@ -415,6 +420,33 @@ div:has(ul.date_filter) .p-datepicker-footer {
415
420
  margin: -8px;
416
421
  }
417
422
 
423
+ .panel_status {
424
+ .p-multiselect-filter-container {
425
+ display: none;
426
+ }
427
+
428
+ .p-multiselect-header {
429
+ padding: 0 !important;
430
+ border-bottom: 0;
431
+ }
432
+ }
433
+
434
+ .p-multiselect-panel {
435
+ .p-multiselect-items {
436
+ padding: 6px;
437
+ min-width: 140px !important;
438
+
439
+ }
440
+ }
441
+
442
+ .panel_withIcon.p-multiselect-panel {
443
+ .p-multiselect-items {
444
+ .p-multiselect-item {
445
+ padding: 0 10px;
446
+ }
447
+ }
448
+ }
449
+
418
450
  // div:has(ul.date_filter) .p-datepicker-group-container {
419
451
  // padding: 0;
420
452
  // }
@@ -116,19 +116,21 @@ const DatePicker = (props) => {
116
116
  setPropsState(datePickerProps);
117
117
  }, []);
118
118
  (0, react_1.useEffect)(() => {
119
- if (props.value === null) {
120
- setFromDate(null);
121
- return;
122
- }
123
- setFromDate(props.value);
124
- const frmD = props.value[0].toLocaleDateString('en-US', options);
125
- setFromDateFormate(frmD);
126
- if (props.value[1]) {
127
- const toD = props.value[1].toLocaleDateString('en-US', options);
128
- setToDateFormate(toD);
129
- }
130
- else {
131
- setToDateFormate('-');
119
+ if (props.value !== undefined) {
120
+ if (props.value === null) {
121
+ setFromDate(null);
122
+ return;
123
+ }
124
+ setFromDate(props.value);
125
+ const frmD = props.value[0].toLocaleDateString('en-US', options);
126
+ setFromDateFormate(frmD);
127
+ if (props.value[1]) {
128
+ const toD = props.value[1].toLocaleDateString('en-US', options);
129
+ setToDateFormate(toD);
130
+ }
131
+ else {
132
+ setToDateFormate('-');
133
+ }
132
134
  }
133
135
  }, [props.value]);
134
136
  const clearIcon = () => {
@@ -39,10 +39,11 @@ const MultiSelectDropDown = (props) => {
39
39
  setIsMoreThenOne(false);
40
40
  }, [items]);
41
41
  (0, react_1.useEffect)(() => {
42
- setItems(props.value);
42
+ if (props.value !== undefined)
43
+ setItems(props.value);
43
44
  }, [props.value]);
44
45
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [props.dropdownType !== '' &&
45
- (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `sc_custom_multiselect flex align-items-center relative ${(props.dropdownType !== undefined && props.dropdownType === "status") ? 'status_dropdown' : ''} ${isMoreThanOne ? `selected_multile ${`selected_num_` + items.length}` : ''}` }, { children: [(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", itemTemplate: props.dropdownType === 'status' ? (option) => { return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `status_dropdown_item pl-3 ${option.name}` }, { children: option.name })) })); } : '', filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem` }), items.length > 0 &&
46
+ (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `sc_custom_multiselect flex align-items-center relative ${(props.dropdownType !== undefined && props.dropdownType === "status") ? 'status_dropdown' : ''} ${isMoreThanOne ? `selected_multile ${`selected_num_` + items.length}` : ''}` }, { children: [(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { panelClassName: `panel_${props.dropdownType}`, value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", itemTemplate: props.dropdownType === 'status' ? (option) => { return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `status_dropdown_item pl-6 ${option.name}` }, { children: option.name })) })); } : '', filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem` }), items.length > 0 &&
46
47
  (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [isMoreThanOne && (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "selected_moreThan_one absolute z-5" }, { children: [" +", items.length - props.maxSelectedLabels] })), props.clear &&
47
48
  clearIcon()] }))] })), props.dropdownType === '' &&
48
49
  (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem` })] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",