sccoreui 6.1.3 → 6.1.4

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.
@@ -223,10 +223,8 @@ function ParentForGrid(props) {
223
223
  };
224
224
  // Update cell from front end and give a call back to products
225
225
  const wrapperToFillOpertation = (params) => {
226
- console.log('calling wrapper to fill');
227
226
  (0, helper_1.fillOperation)(params, api, initialDragRowIndex, props === null || props === void 0 ? void 0 : props.updateCell);
228
227
  };
229
- console.log('calling sccore ui');
230
228
  // Give unique id for rows to grid
231
229
  const getRowId = (prams) => prams.data.id;
232
230
  // Options that grid should have
@@ -256,7 +254,7 @@ function ParentForGrid(props) {
256
254
  blockLoadDebounceMillis: constants_1.DEBOUNCE_INTERVAL,
257
255
  noRowsOverlayComponent: props === null || props === void 0 ? void 0 : props.noRowsOverlayComponent,
258
256
  loadingOverlayComponent: loading_component_1.default,
259
- // suppressCellFocus: true, // Dont select cell on click to cell
257
+ suppressCellFocus: true,
260
258
  suppressPropertyNamesCheck: true,
261
259
  suppressServerSideFullWidthLoadingRow: true,
262
260
  enableRangeSelection: true,
@@ -11,7 +11,7 @@ const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-co
11
11
  // import { Checkbox } from "primereact/checkbox";
12
12
  const ListBoxDropdown = ({ selectAll,
13
13
  // onSelectAll,
14
- onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className, scrollElementId, buttonClassName, showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable, onDranghandle, onShow, onHide, onFocus, }) => {
14
+ onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className, scrollElementId, buttonClassName, showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable, onDranghandle, onShow, onHide, onFocus, confirmationOption, }) => {
15
15
  const [selectedItems, setSelectedItems] = (0, react_1.useState)([]);
16
16
  // const [inpValue, setInpValue] = useState<any>();
17
17
  const optionsMenuRef = (0, react_1.useRef)();
@@ -20,8 +20,12 @@ onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIc
20
20
  // setChecked(e.value.length===listItems.length)
21
21
  console.log(e.value.length);
22
22
  console.log(listItems.length);
23
- setSelectedItems(e.value);
24
- onChange(e);
23
+ if (confirmationOption === true)
24
+ onChange(e);
25
+ else {
26
+ setSelectedItems(e.value);
27
+ onChange(e);
28
+ }
25
29
  };
26
30
  (0, react_1.useEffect)(() => {
27
31
  setSelectedItems(values);
@@ -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, buttonClassName, showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable, onDranghandle, onShow, onHide, onFocus, }: 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, buttonClassName, showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable, onDranghandle, onShow, onHide, onFocus, confirmationOption, }: ListBoxDropdownTypes) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ListBoxDropdown;
@@ -236,6 +236,7 @@ export interface ListBoxDropdownTypes {
236
236
  onShow?: (payload: any) => void;
237
237
  onHide?: (payload: any) => void;
238
238
  onFocus?: (payload: any) => void;
239
+ confirmationOption?: boolean;
239
240
  }
240
241
  export interface DatePickerTypes {
241
242
  value: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.1.3",
3
+ "version": "6.1.04",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",