@michalrakus/x-react-web-lib 1.32.0 → 1.32.1

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.
@@ -1,8 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { XInput, XInputProps } from "./XInput";
3
3
  import { CheckboxChangeEvent } from "primereact/checkbox";
4
- export declare class XCheckbox extends XInput<boolean, XInputProps<boolean>> {
5
- constructor(props: XInputProps<boolean>);
4
+ export interface XCheckboxProps extends XInputProps<boolean> {
5
+ isNotNull?: boolean;
6
+ }
7
+ export declare class XCheckbox extends XInput<boolean, XCheckboxProps> {
8
+ constructor(props: XCheckboxProps);
9
+ isNotNull(): boolean;
6
10
  getValue(): boolean | null;
7
11
  checkboxOnValueChange(e: CheckboxChangeEvent): void;
8
12
  triStateCheckboxOnValueChange(e: any): void;
@@ -31,6 +31,9 @@ var XCheckbox = /** @class */ (function (_super) {
31
31
  _this.triStateCheckboxOnValueChange = _this.triStateCheckboxOnValueChange.bind(_this);
32
32
  return _this;
33
33
  }
34
+ XCheckbox.prototype.isNotNull = function () {
35
+ return this.props.isNotNull || _super.prototype.isNotNull.call(this);
36
+ };
34
37
  XCheckbox.prototype.getValue = function () {
35
38
  // konvertovat null hodnotu na "" (vo funkcii stringAsUI) je dolezite aby sa prejavila zmena na null v modeli
36
39
  var value = this.getValueFromObject();
@@ -1,7 +1,6 @@
1
1
  import React, { Component } from "react";
2
2
  import { XQuery } from "./XUtils";
3
3
  import { DataTableSortMeta } from "primereact/datatable";
4
- import { XDropdownForEntityProps } from "./XDropdownForEntity";
5
4
  export interface XMultiSelectBaseProps {
6
5
  value: any[];
7
6
  onChange: (value: any[]) => void;
@@ -19,7 +18,7 @@ export declare class XMultiSelectBase extends Component<XMultiSelectBaseProps> {
19
18
  state: {
20
19
  options: any[];
21
20
  };
22
- constructor(props: XDropdownForEntityProps);
21
+ constructor(props: XMultiSelectBaseProps);
23
22
  componentDidMount(): void;
24
23
  loadOptions(): Promise<void>;
25
24
  getSortField(): string | DataTableSortMeta[] | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michalrakus/x-react-web-lib",
3
- "version": "1.32.0",
3
+ "version": "1.32.1",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "clean": "rimraf lib",