sccoreui 6.3.71 → 6.3.73
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/assets/sccoreui.css +2 -0
- package/dist/components/ag-grid/advancedFeature/global-search.js +1 -1
- package/dist/components/ag-grid/parent-for-grid.js +1 -1
- package/dist/components/list-box-dropdown/list-box-dropdown.js +4 -2
- package/dist/directives/svg-icons.js +19 -0
- package/dist/types/components/list-box-dropdown/list-box-dropdown.d.ts +1 -1
- package/package.json +1 -1
package/dist/assets/sccoreui.css
CHANGED
|
@@ -48,7 +48,7 @@ function Search({ searchPlaceHolder }) {
|
|
|
48
48
|
setInputValue("");
|
|
49
49
|
}, title: "Clear" }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "x-close", size: 18 }) }))), (0, jsx_runtime_1.jsx)(inputtext_1.InputText, { id: "ag-grid-main-search", value: inputValue, onChange: (e) => {
|
|
50
50
|
var _a;
|
|
51
|
-
(_a = gridApi === null || gridApi === void 0 ? void 0 : gridApi.current.api) === null || _a === void 0 ? void 0 : _a.hideOverlay();
|
|
51
|
+
(gridApi === null || gridApi === void 0 ? void 0 : gridApi.current) && ((_a = gridApi === null || gridApi === void 0 ? void 0 : gridApi.current.api) === null || _a === void 0 ? void 0 : _a.hideOverlay());
|
|
52
52
|
!isDisabled && setInputValue(e.target.value);
|
|
53
53
|
}, className: "w-21rem", placeholder: searchPlaceHolder || "Search by name or code", disabled: isDisabled })] })));
|
|
54
54
|
}
|
|
@@ -407,7 +407,7 @@ function ParentForGrid(props) {
|
|
|
407
407
|
}, [props.updateRowData]);
|
|
408
408
|
(0, react_1.useEffect)(() => {
|
|
409
409
|
var _a, _b;
|
|
410
|
-
const existingColumns = (_a = gridRef === null || gridRef === void 0 ? void 0 : gridRef.current.api) === null || _a === void 0 ? void 0 : _a.getColumnDefs();
|
|
410
|
+
const existingColumns = (gridRef === null || gridRef === void 0 ? void 0 : gridRef.current) && ((_a = gridRef === null || gridRef === void 0 ? void 0 : gridRef.current.api) === null || _a === void 0 ? void 0 : _a.getColumnDefs());
|
|
411
411
|
if (!(props === null || props === void 0 ? void 0 : props.columnData) || !existingColumns)
|
|
412
412
|
return;
|
|
413
413
|
const columnFromProps = (0, helper_1.sortColumns)(props === null || props === void 0 ? void 0 : props.columnData);
|
|
@@ -13,7 +13,7 @@ const ListBoxDropdown = ({ selectAll,
|
|
|
13
13
|
// onSelectAll,
|
|
14
14
|
onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className, scrollElementId,
|
|
15
15
|
// buttonClassName,
|
|
16
|
-
showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable, onDranghandle, onShow, onHide, onFocus, confirmationOption, selectedOptionNone, type, }) => {
|
|
16
|
+
showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable, onDranghandle, onShow, onHide, onFocus, confirmationOption, selectedOptionNone, type, emptyFilterMessage, emptyMessage, }) => {
|
|
17
17
|
const [selectedItems, setSelectedItems] = (0, react_1.useState)([]);
|
|
18
18
|
// const [inpValue, setInpValue] = useState<any>();
|
|
19
19
|
const optionsMenuRef = (0, react_1.useRef)();
|
|
@@ -111,7 +111,9 @@ showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, re
|
|
|
111
111
|
: listItems
|
|
112
112
|
: listItems, optionLabel: optionLabel, className: `${listBoxclassName
|
|
113
113
|
? listBoxclassName
|
|
114
|
-
: "w-16rem border-none "} `, filterPlaceholder: filterPlaceholder ? filterPlaceholder : ""
|
|
114
|
+
: "w-16rem border-none "} `, filterPlaceholder: filterPlaceholder ? filterPlaceholder : "Search ", emptyFilterMessage: emptyFilterMessage
|
|
115
|
+
? emptyFilterMessage
|
|
116
|
+
: "No Result Found", emptyMessage: emptyMessage ? emptyMessage : "No Data Found" }), footeTemplate && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: footeTemplate() })] }))),
|
|
115
117
|
},
|
|
116
118
|
] }), !showChips ? ((0, jsx_runtime_1.jsx)(button_1.Button, { type: "button", className: `list_box_btn ${type === "sectionHeader" ? "section_btn" : ""}`, link: link ? true : false, icon: labelIcon ? labelIcon : "", size: labelIconSize ? labelIconSize : "", iconPos: labelIconPos ? labelIconPos : "", label: label, onClick: (event) => optionsMenuRef.current.toggle(event) })) : ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-wrap gap-2" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { type: "button",
|
|
117
119
|
// className={`list_box_button focus:shadow-none p-0 h-max h-auto mx-2`}
|
|
@@ -11105,6 +11105,25 @@ exports.iconList = [
|
|
|
11105
11105
|
svg: `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11106
11106
|
<path d="M1.5 16.5H16.5M4 14V7.33333M7.33333 14V7.33333M10.6667 14V7.33333M14 14V7.33333M15.6667 4.83333L9.35333 0.887495C9.22515 0.807381 9.16106 0.767325 9.09233 0.751706C9.03155 0.737896 8.96845 0.737896 8.90767 0.751706C8.83894 0.767325 8.77485 0.807381 8.64667 0.887494L2.33333 4.83333H15.6667Z" stroke="#8190E8" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
11107
11107
|
</svg>
|
|
11108
|
+
`,
|
|
11109
|
+
},
|
|
11110
|
+
{
|
|
11111
|
+
name: "no-data-found",
|
|
11112
|
+
svg: `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11113
|
+
<g clip-path="url(#clip0_14228_5182)">
|
|
11114
|
+
<path d="M12.9453 10.2802C15.7453 8.94688 19.8107 2.54688 19.8107 2.54688L25.532 14.6362C25.532 14.6362 18.0093 13.7255 15.2067 15.0522L13.7733 15.7335C13.1398 16.0341 12.4128 16.0707 11.7523 15.8353C11.0918 15.5999 10.5519 15.1117 10.2513 14.4782C9.95074 13.8447 9.91414 13.1177 10.1496 12.4572C10.385 11.7967 10.8731 11.2568 11.5067 10.9562L12.9453 10.2802Z" stroke="#667085" stroke-width="1.24" stroke-linecap="round" stroke-linejoin="round"/>
|
|
11115
|
+
<path d="M1.33398 19.3231C1.33398 20.2071 1.68517 21.055 2.3103 21.6801C2.93542 22.3052 3.78326 22.6564 4.66732 22.6564C5.55137 22.6564 6.39922 22.3052 7.02434 21.6801C7.64946 21.055 8.00065 20.2071 8.00065 19.3231C8.00065 18.439 7.64946 17.5912 7.02434 16.9661C6.39922 16.3409 5.55137 15.9897 4.66732 15.9897C3.78326 15.9897 2.93542 16.3409 2.3103 16.9661C1.68517 17.5912 1.33398 18.439 1.33398 19.3231Z" stroke="#667085" stroke-width="1.24" stroke-linecap="round" stroke-linejoin="round"/>
|
|
11116
|
+
<path d="M9.33268 31.3231V28.9711C13.258 27.1884 15.9993 24.5711 15.9993 19.9897C15.9993 19.4593 15.7886 18.9506 15.4136 18.5755C15.0385 18.2005 14.5298 17.9897 13.9993 17.9897C13.4689 17.9897 12.9602 18.2005 12.5851 18.5755C12.2101 18.9506 11.9993 19.4593 11.9993 19.9897C11.9993 22.5577 10.666 23.4884 8.66602 24.7991L3.51802 26.2337C2.69765 26.4624 1.97471 26.9534 1.45969 27.6316C0.944676 28.3099 0.665915 29.1381 0.666016 29.9897V31.3231" stroke="#667085" stroke-width="1.24" stroke-linecap="round" stroke-linejoin="round"/>
|
|
11117
|
+
<path d="M26 6.67725L29.3333 4.67725" stroke="#667085" stroke-width="1.24" stroke-linecap="round" stroke-linejoin="round"/>
|
|
11118
|
+
<path d="M24 3.34391L26.6667 0.677246" stroke="#667085" stroke-width="1.24" stroke-linecap="round" stroke-linejoin="round"/>
|
|
11119
|
+
<path d="M27.334 10.0104L31.334 9.34375" stroke="#667085" stroke-width="1.24" stroke-linecap="round" stroke-linejoin="round"/>
|
|
11120
|
+
</g>
|
|
11121
|
+
<defs>
|
|
11122
|
+
<clipPath id="clip0_14228_5182">
|
|
11123
|
+
<rect width="32" height="32" fill="white"/>
|
|
11124
|
+
</clipPath>
|
|
11125
|
+
</defs>
|
|
11126
|
+
</svg>
|
|
11108
11127
|
`,
|
|
11109
11128
|
},
|
|
11110
11129
|
];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ListBoxDropdownTypes } from "../types/type";
|
|
2
|
-
declare const ListBoxDropdown: ({ selectAll, onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className, scrollElementId, showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable, onDranghandle, onShow, onHide, onFocus, confirmationOption, selectedOptionNone, type, }: ListBoxDropdownTypes) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ListBoxDropdown: ({ selectAll, onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className, scrollElementId, showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable, onDranghandle, onShow, onHide, onFocus, confirmationOption, selectedOptionNone, type, emptyFilterMessage, emptyMessage, }: ListBoxDropdownTypes) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ListBoxDropdown;
|