sccoreui 6.3.75 → 6.3.78

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.
@@ -1152,12 +1152,25 @@ a {
1152
1152
  }
1153
1153
 
1154
1154
  .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight::after {
1155
- content: url("./svg/check.svg");
1155
+ /* content: url("./svg/check.svg");
1156
1156
  width: 20px;
1157
1157
  height: 20px;
1158
1158
  position: absolute;
1159
1159
  top: 6px;
1160
- right: 5px;
1160
+ right: 5px; */
1161
+ content: "";
1162
+ display: inline-block;
1163
+ background-image: url("../assets/png/checkmark_icon.png");
1164
+ background-size: 12px;
1165
+ background-repeat: no-repeat;
1166
+ width: 14px !important;
1167
+ height: 14px !important;
1168
+ margin-left: 8px;
1169
+ vertical-align: middle;
1170
+ position: absolute;
1171
+ top: 55% !important;
1172
+ transform: translateY(-55%);
1173
+ right: 8px;
1161
1174
  }
1162
1175
  .p-dropdown-panel
1163
1176
  .p-dropdown-items
@@ -62,7 +62,7 @@ const InputTextAreaField = (props) => {
62
62
  const DropDownField = (props) => {
63
63
  const { errors, touched, name, length, label, onFocus,
64
64
  // onChange,
65
- placeholder, panelClassName, showClear, options, optional, customSelectedTemplate, customFieldsTemplate, optionLabel, optionDisabled, className, validate, disabled, filter, panelStyle, isLoading, isRequired = false, value, } = props;
65
+ placeholder, panelClassName, showClear, options, optional, customSelectedTemplate, customFieldsTemplate, optionLabel, optionDisabled, className, validate, disabled, filter, panelStyle, isLoading, isRequired = false, value, filterPlaceholder, emptyMessage, emptyFilterMessage, } = props;
66
66
  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", 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 && (
67
67
  // <label className="font-medium text-base mb-1" htmlFor={name}>
68
68
  // {label}
@@ -71,7 +71,7 @@ const DropDownField = (props) => {
71
71
  onFocus && onFocus();
72
72
  }, panelClassName: panelClassName, showClear: showClear, panelStyle: panelStyle || "", filter: filter || false, disabled: disabled, placeholder: placeholder }, field, {
73
73
  // onChange={(e: any) => onChange && onChange(e)}
74
- options: options, itemTemplate: customFieldsTemplate, valueTemplate: customSelectedTemplate, optionDisabled: optionDisabled, optionLabel: optionLabel, className: ` ${errors[name] && touched[name] ? "p-invalid" : ""} ${length === "full" ? "full_form_field" : "form_field"} ${className}`, id: name }))) })), 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.jsxs)("div", Object.assign({ className: "flex flex-column gap-1" }, { children: [(0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "16px", className: "w-5rem" }), (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" }) }))] })) })));
74
+ options: options, itemTemplate: customFieldsTemplate, valueTemplate: customSelectedTemplate, optionDisabled: optionDisabled, optionLabel: optionLabel, className: ` ${errors[name] && touched[name] ? "p-invalid" : ""} ${length === "full" ? "full_form_field" : "form_field"} ${className}`, id: name, filterPlaceholder: filterPlaceholder, emptyMessage: emptyMessage, emptyFilterMessage: emptyFilterMessage }))) })), 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.jsxs)("div", Object.assign({ className: "flex flex-column gap-1" }, { children: [(0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "16px", className: "w-5rem" }), (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" }) }))] })) })));
75
75
  };
76
76
  const MultiSelectField = (props) => {
77
77
  const { errors, touched, name, length, label, placeholder, options, optional, customFieldsTemplate, optionLabel, optionDisabled, className, validate, disabled, isLoading, filter, isRequired = false, value, } = props;
@@ -167,6 +167,8 @@ export interface DropDownFieldProps {
167
167
  onFocus?: () => void;
168
168
  isRequired?: boolean;
169
169
  value?: any;
170
+ emptyFilterMessage?: any;
171
+ filterPlaceholder?: string;
170
172
  }
171
173
  export interface MultiSelectProps {
172
174
  errors: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.3.75",
3
+ "version": "6.3.78",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",