handsontable 0.0.0-next-0a86f7c-20221207 → 0.0.0-next-486680e-20221207

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of handsontable might be problematic. Click here for more details.

package/helpers/mixed.js CHANGED
@@ -152,7 +152,7 @@ var domMessages = {
152
152
  function _injectProductInfo(key, element) {
153
153
  var hasValidType = !isEmpty(key);
154
154
  var isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
155
- var hotVersion = "0.0.0-next-0a86f7c-20221207";
155
+ var hotVersion = "0.0.0-next-486680e-20221207";
156
156
  var keyValidityDate;
157
157
  var consoleMessageState = 'invalid';
158
158
  var domMessageState = 'invalid';
package/helpers/mixed.mjs CHANGED
@@ -142,7 +142,7 @@ var domMessages = {
142
142
  export function _injectProductInfo(key, element) {
143
143
  var hasValidType = !isEmpty(key);
144
144
  var isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
145
- var hotVersion = "0.0.0-next-0a86f7c-20221207";
145
+ var hotVersion = "0.0.0-next-486680e-20221207";
146
146
  var keyValidityDate;
147
147
  var consoleMessageState = 'invalid';
148
148
  var domMessageState = 'invalid';
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/handsontable/handsontable/issues"
11
11
  },
12
12
  "author": "Handsoncode <hello@handsontable.com>",
13
- "version": "0.0.0-next-0a86f7c-20221207",
13
+ "version": "0.0.0-next-486680e-20221207",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
package/pluginHooks.js CHANGED
@@ -1693,13 +1693,22 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
1693
1693
  */
1694
1694
  'beforeStretchingColumnWidth',
1695
1695
  /**
1696
- * Fired by {@link Filters} plugin before applying [filtering](@/guides/columns/column-filter.md).
1697
- * This hook is fired when {@link Options#filters} option is enabled.
1696
+ * Fired by the [`Filters`](@/api/filters.md) plugin,
1697
+ * before a [column filter](@/guides/columns/column-filter.md) gets applied.
1698
+ *
1699
+ * [`beforeFilter`](#beforefilter) takes one argument (`conditionsStack`), which is an array of objects.
1700
+ * Each object represents one of your [column filters](@/api/filters.md#addcondition),
1701
+ * and consists of the following properties:
1702
+ *
1703
+ * | Property | Possible values | Description |
1704
+ * | ------------ | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
1705
+ * | `column` | Number | A visual index of the column to which the filter will be applied. |
1706
+ * | `conditions` | Array of objects | Each object represents one condition. For details, see [`addCondition()`](@/api/filters.md#addcondition). |
1707
+ * | `operation` | `'conjunction'` \| `'disjunction'` \| `'disjunctionWithExtraCondition'` | An operation to perform on your set of `conditions`. For details, see [`addCondition()`](@/api/filters.md#addcondition). |
1708
+ *
1709
+ * An example of the format of the `conditionsStack` argument:
1698
1710
  *
1699
- * @event Hooks#beforeFilter
1700
- * @param {object[]} conditionsStack An array of objects with added formulas.
1701
1711
  * ```js
1702
- * // Example format of the conditionsStack argument:
1703
1712
  * [
1704
1713
  * {
1705
1714
  * column: 2,
@@ -1717,17 +1726,47 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
1717
1726
  * },
1718
1727
  * ]
1719
1728
  * ```
1720
- * @returns {boolean} If hook returns `false` value then filtering won't be applied on the UI side (server-side filtering).
1729
+ *
1730
+ * To perform server-side filtering (i.e., to not apply filtering to Handsontable's UI),
1731
+ * set [`beforeFilter`](#beforefilter) to return `false`:
1732
+ *
1733
+ * ```js
1734
+ * new Handsontable(document.getElementById('example'), {
1735
+ * beforeFilter: (conditionsStack) => {
1736
+ * return false;
1737
+ * }
1738
+ * });
1739
+ *```
1740
+ *
1741
+ * Read more:
1742
+ * - [Guides: Column filter](@/guides/columns/column-filter.md)
1743
+ * - [Hooks: `afterFilter`](#afterfilter)
1744
+ * - [Options: `filters`](@/api/options.md#filters)
1745
+ * - [Plugins: `Filters`](@/api/filters.md)
1746
+ * – [Plugin methods: `addCondition()`](@/api/filters.md#addcondition)
1747
+ *
1748
+ * @event Hooks#beforeFilter
1749
+ * @param {object[]} conditionsStack An array of objects with your [column filters](@/api/filters.md#addcondition).
1750
+ * @returns {boolean} To perform server-side filtering (i.e., to not apply filtering to Handsontable's UI), return `false`.
1721
1751
  */
1722
1752
  'beforeFilter',
1723
1753
  /**
1724
- * Fired by {@link Filters} plugin after applying [filtering](@/guides/columns/column-filter.md).
1725
- * This hook is fired when {@link Options#filters} option is enabled.
1754
+ * Fired by the [`Filters`](@/api/filters.md) plugin,
1755
+ * after a [column filter](@/guides/columns/column-filter.md) gets applied.
1756
+ *
1757
+ * [`afterFilter`](#afterfilter) takes one argument (`conditionsStack`), which is an array of objects.
1758
+ * Each object represents one of your [column filters](@/api/filters.md#addcondition),
1759
+ * and consists of the following properties:
1760
+ *
1761
+ * | Property | Possible values | Description |
1762
+ * | ------------ | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
1763
+ * | `column` | Number | A visual index of the column to which the filter was applied. |
1764
+ * | `conditions` | Array of objects | Each object represents one condition. For details, see [`addCondition()`](@/api/filters.md#addcondition). |
1765
+ * | `operation` | `'conjunction'` \| `'disjunction'` \| `'disjunctionWithExtraCondition'` | An operation to perform on your set of `conditions`. For details, see [`addCondition()`](@/api/filters.md#addcondition). |
1766
+ *
1767
+ * An example of the format of the `conditionsStack` argument:
1726
1768
  *
1727
- * @event Hooks#afterFilter
1728
- * @param {object[]} conditionsStack An array of objects with added conditions.
1729
1769
  * ```js
1730
- * // Example format of the conditionsStack argument:
1731
1770
  * [
1732
1771
  * {
1733
1772
  * column: 2,
@@ -1745,6 +1784,16 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
1745
1784
  * },
1746
1785
  * ]
1747
1786
  * ```
1787
+ *
1788
+ * Read more:
1789
+ * - [Guides: Column filter](@/guides/columns/column-filter.md)
1790
+ * - [Hooks: `beforeFilter`](#beforefilter)
1791
+ * - [Options: `filters`](@/api/options.md#filters)
1792
+ * - [Plugins: `Filters`](@/api/filters.md)
1793
+ * – [Plugin methods: `addCondition()`](@/api/filters.md#addcondition)
1794
+ *
1795
+ * @event Hooks#afterFilter
1796
+ * @param {object[]} conditionsStack An array of objects with your [column filters](@/api/filters.md#addcondition).
1748
1797
  */
1749
1798
  'afterFilter',
1750
1799
  /**
package/pluginHooks.mjs CHANGED
@@ -1688,13 +1688,22 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
1688
1688
  */
1689
1689
  'beforeStretchingColumnWidth',
1690
1690
  /**
1691
- * Fired by {@link Filters} plugin before applying [filtering](@/guides/columns/column-filter.md).
1692
- * This hook is fired when {@link Options#filters} option is enabled.
1691
+ * Fired by the [`Filters`](@/api/filters.md) plugin,
1692
+ * before a [column filter](@/guides/columns/column-filter.md) gets applied.
1693
+ *
1694
+ * [`beforeFilter`](#beforefilter) takes one argument (`conditionsStack`), which is an array of objects.
1695
+ * Each object represents one of your [column filters](@/api/filters.md#addcondition),
1696
+ * and consists of the following properties:
1697
+ *
1698
+ * | Property | Possible values | Description |
1699
+ * | ------------ | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
1700
+ * | `column` | Number | A visual index of the column to which the filter will be applied. |
1701
+ * | `conditions` | Array of objects | Each object represents one condition. For details, see [`addCondition()`](@/api/filters.md#addcondition). |
1702
+ * | `operation` | `'conjunction'` \| `'disjunction'` \| `'disjunctionWithExtraCondition'` | An operation to perform on your set of `conditions`. For details, see [`addCondition()`](@/api/filters.md#addcondition). |
1703
+ *
1704
+ * An example of the format of the `conditionsStack` argument:
1693
1705
  *
1694
- * @event Hooks#beforeFilter
1695
- * @param {object[]} conditionsStack An array of objects with added formulas.
1696
1706
  * ```js
1697
- * // Example format of the conditionsStack argument:
1698
1707
  * [
1699
1708
  * {
1700
1709
  * column: 2,
@@ -1712,17 +1721,47 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
1712
1721
  * },
1713
1722
  * ]
1714
1723
  * ```
1715
- * @returns {boolean} If hook returns `false` value then filtering won't be applied on the UI side (server-side filtering).
1724
+ *
1725
+ * To perform server-side filtering (i.e., to not apply filtering to Handsontable's UI),
1726
+ * set [`beforeFilter`](#beforefilter) to return `false`:
1727
+ *
1728
+ * ```js
1729
+ * new Handsontable(document.getElementById('example'), {
1730
+ * beforeFilter: (conditionsStack) => {
1731
+ * return false;
1732
+ * }
1733
+ * });
1734
+ *```
1735
+ *
1736
+ * Read more:
1737
+ * - [Guides: Column filter](@/guides/columns/column-filter.md)
1738
+ * - [Hooks: `afterFilter`](#afterfilter)
1739
+ * - [Options: `filters`](@/api/options.md#filters)
1740
+ * - [Plugins: `Filters`](@/api/filters.md)
1741
+ * – [Plugin methods: `addCondition()`](@/api/filters.md#addcondition)
1742
+ *
1743
+ * @event Hooks#beforeFilter
1744
+ * @param {object[]} conditionsStack An array of objects with your [column filters](@/api/filters.md#addcondition).
1745
+ * @returns {boolean} To perform server-side filtering (i.e., to not apply filtering to Handsontable's UI), return `false`.
1716
1746
  */
1717
1747
  'beforeFilter',
1718
1748
  /**
1719
- * Fired by {@link Filters} plugin after applying [filtering](@/guides/columns/column-filter.md).
1720
- * This hook is fired when {@link Options#filters} option is enabled.
1749
+ * Fired by the [`Filters`](@/api/filters.md) plugin,
1750
+ * after a [column filter](@/guides/columns/column-filter.md) gets applied.
1751
+ *
1752
+ * [`afterFilter`](#afterfilter) takes one argument (`conditionsStack`), which is an array of objects.
1753
+ * Each object represents one of your [column filters](@/api/filters.md#addcondition),
1754
+ * and consists of the following properties:
1755
+ *
1756
+ * | Property | Possible values | Description |
1757
+ * | ------------ | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
1758
+ * | `column` | Number | A visual index of the column to which the filter was applied. |
1759
+ * | `conditions` | Array of objects | Each object represents one condition. For details, see [`addCondition()`](@/api/filters.md#addcondition). |
1760
+ * | `operation` | `'conjunction'` \| `'disjunction'` \| `'disjunctionWithExtraCondition'` | An operation to perform on your set of `conditions`. For details, see [`addCondition()`](@/api/filters.md#addcondition). |
1761
+ *
1762
+ * An example of the format of the `conditionsStack` argument:
1721
1763
  *
1722
- * @event Hooks#afterFilter
1723
- * @param {object[]} conditionsStack An array of objects with added conditions.
1724
1764
  * ```js
1725
- * // Example format of the conditionsStack argument:
1726
1765
  * [
1727
1766
  * {
1728
1767
  * column: 2,
@@ -1740,6 +1779,16 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
1740
1779
  * },
1741
1780
  * ]
1742
1781
  * ```
1782
+ *
1783
+ * Read more:
1784
+ * - [Guides: Column filter](@/guides/columns/column-filter.md)
1785
+ * - [Hooks: `beforeFilter`](#beforefilter)
1786
+ * - [Options: `filters`](@/api/options.md#filters)
1787
+ * - [Plugins: `Filters`](@/api/filters.md)
1788
+ * – [Plugin methods: `addCondition()`](@/api/filters.md#addcondition)
1789
+ *
1790
+ * @event Hooks#afterFilter
1791
+ * @param {object[]} conditionsStack An array of objects with your [column filters](@/api/filters.md#addcondition).
1743
1792
  */
1744
1793
  'afterFilter',
1745
1794
  /**