primereact 10.0.3 → 10.0.5
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/calendar/calendar.cjs.js +8 -6
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +8 -6
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +8 -6
- package/calendar/calendar.min.js +1 -1
- package/core/core.js +224 -4
- package/core/core.min.js +2 -2
- package/fieldset/fieldset.cjs.js +2 -2
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +2 -2
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +3 -3
- package/fieldset/fieldset.min.js +1 -1
- package/hooks/hooks.d.ts +1 -1
- package/icons/arrowdown/index.cjs.js +7 -0
- package/icons/arrowdown/index.esm.js +7 -0
- package/icons/arrowdown/index.js +7 -0
- package/icons/arrowup/index.cjs.js +7 -0
- package/icons/arrowup/index.esm.js +7 -0
- package/icons/arrowup/index.js +7 -0
- package/icons/ban/index.cjs.js +7 -0
- package/icons/ban/index.esm.js +7 -0
- package/icons/ban/index.js +7 -0
- package/icons/download/index.cjs.js +7 -0
- package/icons/download/index.esm.js +7 -0
- package/icons/download/index.js +7 -0
- package/icons/exclamationtriangle/index.cjs.js +7 -0
- package/icons/exclamationtriangle/index.esm.js +7 -0
- package/icons/exclamationtriangle/index.js +7 -0
- package/icons/eyeslash/index.cjs.js +7 -0
- package/icons/eyeslash/index.esm.js +7 -0
- package/icons/eyeslash/index.js +7 -0
- package/icons/filter/index.cjs.js +7 -0
- package/icons/filter/index.esm.js +7 -0
- package/icons/filter/index.js +7 -0
- package/icons/filterslash/index.cjs.js +7 -0
- package/icons/filterslash/index.esm.js +7 -0
- package/icons/filterslash/index.js +7 -0
- package/icons/infocircle/index.cjs.js +7 -0
- package/icons/infocircle/index.esm.js +7 -0
- package/icons/infocircle/index.js +7 -0
- package/icons/pencil/index.cjs.js +7 -0
- package/icons/pencil/index.esm.js +7 -0
- package/icons/pencil/index.js +7 -0
- package/icons/plus/index.cjs.js +7 -0
- package/icons/plus/index.esm.js +7 -0
- package/icons/plus/index.js +7 -0
- package/icons/refresh/index.cjs.js +7 -0
- package/icons/refresh/index.esm.js +7 -0
- package/icons/refresh/index.js +7 -0
- package/icons/search/index.cjs.js +7 -0
- package/icons/search/index.esm.js +7 -0
- package/icons/search/index.js +7 -0
- package/icons/searchminus/index.cjs.js +7 -0
- package/icons/searchminus/index.esm.js +7 -0
- package/icons/searchminus/index.js +7 -0
- package/icons/searchplus/index.cjs.js +7 -0
- package/icons/searchplus/index.esm.js +7 -0
- package/icons/searchplus/index.js +7 -0
- package/icons/sortalt/index.cjs.js +7 -0
- package/icons/sortalt/index.esm.js +7 -0
- package/icons/sortalt/index.js +7 -0
- package/icons/sortamountdown/index.cjs.js +7 -0
- package/icons/sortamountdown/index.esm.js +7 -0
- package/icons/sortamountdown/index.js +7 -0
- package/icons/sortamountupalt/index.cjs.js +7 -0
- package/icons/sortamountupalt/index.esm.js +7 -0
- package/icons/sortamountupalt/index.js +7 -0
- package/icons/spinner/index.cjs.js +7 -0
- package/icons/spinner/index.esm.js +7 -0
- package/icons/spinner/index.js +7 -0
- package/icons/star/index.cjs.js +7 -0
- package/icons/star/index.esm.js +7 -0
- package/icons/star/index.js +7 -0
- package/icons/starfill/index.cjs.js +7 -0
- package/icons/starfill/index.esm.js +7 -0
- package/icons/starfill/index.js +7 -0
- package/icons/thlarge/index.cjs.js +7 -0
- package/icons/thlarge/index.esm.js +7 -0
- package/icons/thlarge/index.js +7 -0
- package/icons/timescircle/index.cjs.js +7 -0
- package/icons/timescircle/index.esm.js +7 -0
- package/icons/timescircle/index.js +7 -0
- package/icons/trash/index.cjs.js +7 -0
- package/icons/trash/index.esm.js +7 -0
- package/icons/trash/index.js +7 -0
- package/icons/undo/index.cjs.js +7 -0
- package/icons/undo/index.esm.js +7 -0
- package/icons/undo/index.js +7 -0
- package/icons/upload/index.cjs.js +7 -0
- package/icons/upload/index.esm.js +7 -0
- package/icons/upload/index.js +7 -0
- package/icons/windowmaximize/index.cjs.js +7 -0
- package/icons/windowmaximize/index.esm.js +7 -0
- package/icons/windowmaximize/index.js +7 -0
- package/icons/windowminimize/index.cjs.js +7 -0
- package/icons/windowminimize/index.esm.js +7 -0
- package/icons/windowminimize/index.js +7 -0
- package/image/image.cjs.js +7 -0
- package/image/image.esm.js +7 -0
- package/image/image.js +7 -0
- package/message/message.cjs.js +1 -1
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +1 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.js +1 -1
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +4 -2
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +5 -3
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +4 -2
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +1 -1
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +1 -1
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +1 -1
- package/multiselect/multiselect.min.js +1 -1
- package/package.json +1 -1
- package/panel/panel.cjs.js +2 -2
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +2 -2
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +3 -3
- package/panel/panel.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +440 -376
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +440 -376
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +440 -376
- package/passthrough/tailwind/index.min.js +1 -1
- package/primereact.all.cjs.js +57 -22
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +57 -22
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +57 -22
- package/primereact.all.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +7 -0
- package/resources/themes/arya-green/theme.css +7 -0
- package/resources/themes/arya-orange/theme.css +7 -0
- package/resources/themes/arya-purple/theme.css +7 -0
- package/resources/themes/bootstrap4-dark-blue/theme.css +7 -0
- package/resources/themes/bootstrap4-dark-purple/theme.css +7 -0
- package/resources/themes/bootstrap4-light-blue/theme.css +7 -0
- package/resources/themes/bootstrap4-light-purple/theme.css +7 -0
- package/resources/themes/fluent-light/theme.css +7 -0
- package/resources/themes/lara-dark-blue/theme.css +7 -0
- package/resources/themes/lara-dark-indigo/theme.css +7 -0
- package/resources/themes/lara-dark-purple/theme.css +7 -0
- package/resources/themes/lara-dark-teal/theme.css +7 -0
- package/resources/themes/lara-light-blue/theme.css +7 -0
- package/resources/themes/lara-light-indigo/theme.css +7 -0
- package/resources/themes/lara-light-purple/theme.css +7 -0
- package/resources/themes/lara-light-teal/theme.css +7 -0
- package/resources/themes/luna-amber/theme.css +7 -0
- package/resources/themes/luna-blue/theme.css +7 -0
- package/resources/themes/luna-green/theme.css +7 -0
- package/resources/themes/luna-pink/theme.css +7 -0
- package/resources/themes/md-dark-deeppurple/theme.css +7 -0
- package/resources/themes/md-dark-indigo/theme.css +7 -0
- package/resources/themes/md-light-deeppurple/theme.css +7 -0
- package/resources/themes/md-light-indigo/theme.css +7 -0
- package/resources/themes/mdc-dark-deeppurple/theme.css +7 -0
- package/resources/themes/mdc-dark-indigo/theme.css +7 -0
- package/resources/themes/mdc-light-deeppurple/theme.css +7 -0
- package/resources/themes/mdc-light-indigo/theme.css +7 -0
- package/resources/themes/mira/theme.css +7 -0
- package/resources/themes/nano/theme.css +7 -0
- package/resources/themes/nova/theme.css +7 -0
- package/resources/themes/nova-accent/theme.css +7 -0
- package/resources/themes/nova-alt/theme.css +7 -0
- package/resources/themes/rhea/theme.css +7 -0
- package/resources/themes/saga-blue/theme.css +7 -0
- package/resources/themes/saga-green/theme.css +7 -0
- package/resources/themes/saga-orange/theme.css +7 -0
- package/resources/themes/saga-purple/theme.css +7 -0
- package/resources/themes/soho-dark/theme.css +7 -0
- package/resources/themes/soho-light/theme.css +7 -0
- package/resources/themes/vela-blue/theme.css +7 -0
- package/resources/themes/vela-green/theme.css +7 -0
- package/resources/themes/vela-orange/theme.css +7 -0
- package/resources/themes/vela-purple/theme.css +7 -0
- package/resources/themes/viva-dark/theme.css +7 -0
- package/resources/themes/viva-light/theme.css +7 -0
- package/selectbutton/selectbutton.cjs.js +1 -1
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +1 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +1 -1
- package/selectbutton/selectbutton.min.js +1 -1
- package/slider/slider.cjs.js +3 -3
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +3 -3
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +3 -3
- package/slider/slider.min.js +1 -1
- package/toast/toast.cjs.js +7 -5
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +7 -5
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +8 -6
- package/toast/toast.min.js +1 -1
- package/tree/tree.cjs.js +24 -2
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +24 -2
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +24 -2
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.d.ts +54 -4
- package/utils/utils.cjs.js +7 -0
- package/utils/utils.esm.js +7 -0
- package/utils/utils.js +7 -0
- package/web-types.json +2 -2
package/core/core.js
CHANGED
|
@@ -1417,6 +1417,13 @@ this.primereact.utils = (function (exports, React) {
|
|
|
1417
1417
|
value: function equals(obj1, obj2, field) {
|
|
1418
1418
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
1419
1419
|
}
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
1423
|
+
* @param {*} a the first JSON object
|
|
1424
|
+
* @param {*} b the second JSON object
|
|
1425
|
+
* @returns true if equals, false it not
|
|
1426
|
+
*/
|
|
1420
1427
|
}, {
|
|
1421
1428
|
key: "deepEquals",
|
|
1422
1429
|
value: function deepEquals(a, b) {
|
|
@@ -6115,6 +6122,13 @@ this.primereact.icons.arrowdown = (function (exports, React, iconbase) {
|
|
|
6115
6122
|
value: function equals(obj1, obj2, field) {
|
|
6116
6123
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
6117
6124
|
}
|
|
6125
|
+
|
|
6126
|
+
/**
|
|
6127
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
6128
|
+
* @param {*} a the first JSON object
|
|
6129
|
+
* @param {*} b the second JSON object
|
|
6130
|
+
* @returns true if equals, false it not
|
|
6131
|
+
*/
|
|
6118
6132
|
}, {
|
|
6119
6133
|
key: "deepEquals",
|
|
6120
6134
|
value: function deepEquals(a, b) {
|
|
@@ -6803,6 +6817,13 @@ this.primereact.icons.arrowup = (function (exports, React, iconbase) {
|
|
|
6803
6817
|
value: function equals(obj1, obj2, field) {
|
|
6804
6818
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
6805
6819
|
}
|
|
6820
|
+
|
|
6821
|
+
/**
|
|
6822
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
6823
|
+
* @param {*} a the first JSON object
|
|
6824
|
+
* @param {*} b the second JSON object
|
|
6825
|
+
* @returns true if equals, false it not
|
|
6826
|
+
*/
|
|
6806
6827
|
}, {
|
|
6807
6828
|
key: "deepEquals",
|
|
6808
6829
|
value: function deepEquals(a, b) {
|
|
@@ -7491,6 +7512,13 @@ this.primereact.icons.ban = (function (exports, React, iconbase) {
|
|
|
7491
7512
|
value: function equals(obj1, obj2, field) {
|
|
7492
7513
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
7493
7514
|
}
|
|
7515
|
+
|
|
7516
|
+
/**
|
|
7517
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
7518
|
+
* @param {*} a the first JSON object
|
|
7519
|
+
* @param {*} b the second JSON object
|
|
7520
|
+
* @returns true if equals, false it not
|
|
7521
|
+
*/
|
|
7494
7522
|
}, {
|
|
7495
7523
|
key: "deepEquals",
|
|
7496
7524
|
value: function deepEquals(a, b) {
|
|
@@ -8627,6 +8655,13 @@ this.primereact.icons.exclamationtriangle = (function (exports, React, iconbase)
|
|
|
8627
8655
|
value: function equals(obj1, obj2, field) {
|
|
8628
8656
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
8629
8657
|
}
|
|
8658
|
+
|
|
8659
|
+
/**
|
|
8660
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
8661
|
+
* @param {*} a the first JSON object
|
|
8662
|
+
* @param {*} b the second JSON object
|
|
8663
|
+
* @returns true if equals, false it not
|
|
8664
|
+
*/
|
|
8630
8665
|
}, {
|
|
8631
8666
|
key: "deepEquals",
|
|
8632
8667
|
value: function deepEquals(a, b) {
|
|
@@ -9385,6 +9420,13 @@ this.primereact.icons.eyeslash = (function (exports, React, iconbase) {
|
|
|
9385
9420
|
value: function equals(obj1, obj2, field) {
|
|
9386
9421
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
9387
9422
|
}
|
|
9423
|
+
|
|
9424
|
+
/**
|
|
9425
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
9426
|
+
* @param {*} a the first JSON object
|
|
9427
|
+
* @param {*} b the second JSON object
|
|
9428
|
+
* @returns true if equals, false it not
|
|
9429
|
+
*/
|
|
9388
9430
|
}, {
|
|
9389
9431
|
key: "deepEquals",
|
|
9390
9432
|
value: function deepEquals(a, b) {
|
|
@@ -10073,6 +10115,13 @@ this.primereact.icons.filter = (function (exports, React, iconbase) {
|
|
|
10073
10115
|
value: function equals(obj1, obj2, field) {
|
|
10074
10116
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
10075
10117
|
}
|
|
10118
|
+
|
|
10119
|
+
/**
|
|
10120
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
10121
|
+
* @param {*} a the first JSON object
|
|
10122
|
+
* @param {*} b the second JSON object
|
|
10123
|
+
* @returns true if equals, false it not
|
|
10124
|
+
*/
|
|
10076
10125
|
}, {
|
|
10077
10126
|
key: "deepEquals",
|
|
10078
10127
|
value: function deepEquals(a, b) {
|
|
@@ -10759,6 +10808,13 @@ this.primereact.icons.filterslash = (function (exports, React, iconbase) {
|
|
|
10759
10808
|
value: function equals(obj1, obj2, field) {
|
|
10760
10809
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
10761
10810
|
}
|
|
10811
|
+
|
|
10812
|
+
/**
|
|
10813
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
10814
|
+
* @param {*} a the first JSON object
|
|
10815
|
+
* @param {*} b the second JSON object
|
|
10816
|
+
* @returns true if equals, false it not
|
|
10817
|
+
*/
|
|
10762
10818
|
}, {
|
|
10763
10819
|
key: "deepEquals",
|
|
10764
10820
|
value: function deepEquals(a, b) {
|
|
@@ -11447,6 +11503,13 @@ this.primereact.icons.infocircle = (function (exports, React, iconbase) {
|
|
|
11447
11503
|
value: function equals(obj1, obj2, field) {
|
|
11448
11504
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
11449
11505
|
}
|
|
11506
|
+
|
|
11507
|
+
/**
|
|
11508
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
11509
|
+
* @param {*} a the first JSON object
|
|
11510
|
+
* @param {*} b the second JSON object
|
|
11511
|
+
* @returns true if equals, false it not
|
|
11512
|
+
*/
|
|
11450
11513
|
}, {
|
|
11451
11514
|
key: "deepEquals",
|
|
11452
11515
|
value: function deepEquals(a, b) {
|
|
@@ -12199,6 +12262,13 @@ this.primereact.icons.pencil = (function (exports, React, iconbase) {
|
|
|
12199
12262
|
value: function equals(obj1, obj2, field) {
|
|
12200
12263
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
12201
12264
|
}
|
|
12265
|
+
|
|
12266
|
+
/**
|
|
12267
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
12268
|
+
* @param {*} a the first JSON object
|
|
12269
|
+
* @param {*} b the second JSON object
|
|
12270
|
+
* @returns true if equals, false it not
|
|
12271
|
+
*/
|
|
12202
12272
|
}, {
|
|
12203
12273
|
key: "deepEquals",
|
|
12204
12274
|
value: function deepEquals(a, b) {
|
|
@@ -12885,6 +12955,13 @@ this.primereact.icons.plus = (function (exports, React, iconbase) {
|
|
|
12885
12955
|
value: function equals(obj1, obj2, field) {
|
|
12886
12956
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
12887
12957
|
}
|
|
12958
|
+
|
|
12959
|
+
/**
|
|
12960
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
12961
|
+
* @param {*} a the first JSON object
|
|
12962
|
+
* @param {*} b the second JSON object
|
|
12963
|
+
* @returns true if equals, false it not
|
|
12964
|
+
*/
|
|
12888
12965
|
}, {
|
|
12889
12966
|
key: "deepEquals",
|
|
12890
12967
|
value: function deepEquals(a, b) {
|
|
@@ -13571,6 +13648,13 @@ this.primereact.icons.refresh = (function (exports, React, iconbase) {
|
|
|
13571
13648
|
value: function equals(obj1, obj2, field) {
|
|
13572
13649
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
13573
13650
|
}
|
|
13651
|
+
|
|
13652
|
+
/**
|
|
13653
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
13654
|
+
* @param {*} a the first JSON object
|
|
13655
|
+
* @param {*} b the second JSON object
|
|
13656
|
+
* @returns true if equals, false it not
|
|
13657
|
+
*/
|
|
13574
13658
|
}, {
|
|
13575
13659
|
key: "deepEquals",
|
|
13576
13660
|
value: function deepEquals(a, b) {
|
|
@@ -14259,6 +14343,13 @@ this.primereact.icons.search = (function (exports, React, iconbase) {
|
|
|
14259
14343
|
value: function equals(obj1, obj2, field) {
|
|
14260
14344
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
14261
14345
|
}
|
|
14346
|
+
|
|
14347
|
+
/**
|
|
14348
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
14349
|
+
* @param {*} a the first JSON object
|
|
14350
|
+
* @param {*} b the second JSON object
|
|
14351
|
+
* @returns true if equals, false it not
|
|
14352
|
+
*/
|
|
14262
14353
|
}, {
|
|
14263
14354
|
key: "deepEquals",
|
|
14264
14355
|
value: function deepEquals(a, b) {
|
|
@@ -14947,6 +15038,13 @@ this.primereact.icons.searchminus = (function (exports, React, iconbase) {
|
|
|
14947
15038
|
value: function equals(obj1, obj2, field) {
|
|
14948
15039
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
14949
15040
|
}
|
|
15041
|
+
|
|
15042
|
+
/**
|
|
15043
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
15044
|
+
* @param {*} a the first JSON object
|
|
15045
|
+
* @param {*} b the second JSON object
|
|
15046
|
+
* @returns true if equals, false it not
|
|
15047
|
+
*/
|
|
14950
15048
|
}, {
|
|
14951
15049
|
key: "deepEquals",
|
|
14952
15050
|
value: function deepEquals(a, b) {
|
|
@@ -15635,6 +15733,13 @@ this.primereact.icons.searchplus = (function (exports, React, iconbase) {
|
|
|
15635
15733
|
value: function equals(obj1, obj2, field) {
|
|
15636
15734
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
15637
15735
|
}
|
|
15736
|
+
|
|
15737
|
+
/**
|
|
15738
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
15739
|
+
* @param {*} a the first JSON object
|
|
15740
|
+
* @param {*} b the second JSON object
|
|
15741
|
+
* @returns true if equals, false it not
|
|
15742
|
+
*/
|
|
15638
15743
|
}, {
|
|
15639
15744
|
key: "deepEquals",
|
|
15640
15745
|
value: function deepEquals(a, b) {
|
|
@@ -16323,6 +16428,13 @@ this.primereact.icons.sortalt = (function (exports, React, iconbase) {
|
|
|
16323
16428
|
value: function equals(obj1, obj2, field) {
|
|
16324
16429
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
16325
16430
|
}
|
|
16431
|
+
|
|
16432
|
+
/**
|
|
16433
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
16434
|
+
* @param {*} a the first JSON object
|
|
16435
|
+
* @param {*} b the second JSON object
|
|
16436
|
+
* @returns true if equals, false it not
|
|
16437
|
+
*/
|
|
16326
16438
|
}, {
|
|
16327
16439
|
key: "deepEquals",
|
|
16328
16440
|
value: function deepEquals(a, b) {
|
|
@@ -17018,6 +17130,13 @@ this.primereact.icons.sortamountdown = (function (exports, React, iconbase) {
|
|
|
17018
17130
|
value: function equals(obj1, obj2, field) {
|
|
17019
17131
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
17020
17132
|
}
|
|
17133
|
+
|
|
17134
|
+
/**
|
|
17135
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
17136
|
+
* @param {*} a the first JSON object
|
|
17137
|
+
* @param {*} b the second JSON object
|
|
17138
|
+
* @returns true if equals, false it not
|
|
17139
|
+
*/
|
|
17021
17140
|
}, {
|
|
17022
17141
|
key: "deepEquals",
|
|
17023
17142
|
value: function deepEquals(a, b) {
|
|
@@ -17719,6 +17838,13 @@ this.primereact.icons.sortamountupalt = (function (exports, React, iconbase) {
|
|
|
17719
17838
|
value: function equals(obj1, obj2, field) {
|
|
17720
17839
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
17721
17840
|
}
|
|
17841
|
+
|
|
17842
|
+
/**
|
|
17843
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
17844
|
+
* @param {*} a the first JSON object
|
|
17845
|
+
* @param {*} b the second JSON object
|
|
17846
|
+
* @returns true if equals, false it not
|
|
17847
|
+
*/
|
|
17722
17848
|
}, {
|
|
17723
17849
|
key: "deepEquals",
|
|
17724
17850
|
value: function deepEquals(a, b) {
|
|
@@ -18420,6 +18546,13 @@ this.primereact.icons.spinner = (function (exports, React, iconbase) {
|
|
|
18420
18546
|
value: function equals(obj1, obj2, field) {
|
|
18421
18547
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
18422
18548
|
}
|
|
18549
|
+
|
|
18550
|
+
/**
|
|
18551
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
18552
|
+
* @param {*} a the first JSON object
|
|
18553
|
+
* @param {*} b the second JSON object
|
|
18554
|
+
* @returns true if equals, false it not
|
|
18555
|
+
*/
|
|
18423
18556
|
}, {
|
|
18424
18557
|
key: "deepEquals",
|
|
18425
18558
|
value: function deepEquals(a, b) {
|
|
@@ -19106,6 +19239,13 @@ this.primereact.icons.star = (function (exports, React, iconbase) {
|
|
|
19106
19239
|
value: function equals(obj1, obj2, field) {
|
|
19107
19240
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
19108
19241
|
}
|
|
19242
|
+
|
|
19243
|
+
/**
|
|
19244
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
19245
|
+
* @param {*} a the first JSON object
|
|
19246
|
+
* @param {*} b the second JSON object
|
|
19247
|
+
* @returns true if equals, false it not
|
|
19248
|
+
*/
|
|
19109
19249
|
}, {
|
|
19110
19250
|
key: "deepEquals",
|
|
19111
19251
|
value: function deepEquals(a, b) {
|
|
@@ -19792,6 +19932,13 @@ this.primereact.icons.starfill = (function (exports, React, iconbase) {
|
|
|
19792
19932
|
value: function equals(obj1, obj2, field) {
|
|
19793
19933
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
19794
19934
|
}
|
|
19935
|
+
|
|
19936
|
+
/**
|
|
19937
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
19938
|
+
* @param {*} a the first JSON object
|
|
19939
|
+
* @param {*} b the second JSON object
|
|
19940
|
+
* @returns true if equals, false it not
|
|
19941
|
+
*/
|
|
19795
19942
|
}, {
|
|
19796
19943
|
key: "deepEquals",
|
|
19797
19944
|
value: function deepEquals(a, b) {
|
|
@@ -20478,6 +20625,13 @@ this.primereact.icons.thlarge = (function (exports, React, iconbase) {
|
|
|
20478
20625
|
value: function equals(obj1, obj2, field) {
|
|
20479
20626
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
20480
20627
|
}
|
|
20628
|
+
|
|
20629
|
+
/**
|
|
20630
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
20631
|
+
* @param {*} a the first JSON object
|
|
20632
|
+
* @param {*} b the second JSON object
|
|
20633
|
+
* @returns true if equals, false it not
|
|
20634
|
+
*/
|
|
20481
20635
|
}, {
|
|
20482
20636
|
key: "deepEquals",
|
|
20483
20637
|
value: function deepEquals(a, b) {
|
|
@@ -21230,6 +21384,13 @@ this.primereact.icons.timescircle = (function (exports, React, iconbase) {
|
|
|
21230
21384
|
value: function equals(obj1, obj2, field) {
|
|
21231
21385
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
21232
21386
|
}
|
|
21387
|
+
|
|
21388
|
+
/**
|
|
21389
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
21390
|
+
* @param {*} a the first JSON object
|
|
21391
|
+
* @param {*} b the second JSON object
|
|
21392
|
+
* @returns true if equals, false it not
|
|
21393
|
+
*/
|
|
21233
21394
|
}, {
|
|
21234
21395
|
key: "deepEquals",
|
|
21235
21396
|
value: function deepEquals(a, b) {
|
|
@@ -21918,6 +22079,13 @@ this.primereact.icons.trash = (function (exports, React, iconbase) {
|
|
|
21918
22079
|
value: function equals(obj1, obj2, field) {
|
|
21919
22080
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
21920
22081
|
}
|
|
22082
|
+
|
|
22083
|
+
/**
|
|
22084
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
22085
|
+
* @param {*} a the first JSON object
|
|
22086
|
+
* @param {*} b the second JSON object
|
|
22087
|
+
* @returns true if equals, false it not
|
|
22088
|
+
*/
|
|
21921
22089
|
}, {
|
|
21922
22090
|
key: "deepEquals",
|
|
21923
22091
|
value: function deepEquals(a, b) {
|
|
@@ -22606,6 +22774,13 @@ this.primereact.icons.undo = (function (exports, React, iconbase) {
|
|
|
22606
22774
|
value: function equals(obj1, obj2, field) {
|
|
22607
22775
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
22608
22776
|
}
|
|
22777
|
+
|
|
22778
|
+
/**
|
|
22779
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
22780
|
+
* @param {*} a the first JSON object
|
|
22781
|
+
* @param {*} b the second JSON object
|
|
22782
|
+
* @returns true if equals, false it not
|
|
22783
|
+
*/
|
|
22609
22784
|
}, {
|
|
22610
22785
|
key: "deepEquals",
|
|
22611
22786
|
value: function deepEquals(a, b) {
|
|
@@ -23294,6 +23469,13 @@ this.primereact.icons.upload = (function (exports, React, iconbase) {
|
|
|
23294
23469
|
value: function equals(obj1, obj2, field) {
|
|
23295
23470
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
23296
23471
|
}
|
|
23472
|
+
|
|
23473
|
+
/**
|
|
23474
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
23475
|
+
* @param {*} a the first JSON object
|
|
23476
|
+
* @param {*} b the second JSON object
|
|
23477
|
+
* @returns true if equals, false it not
|
|
23478
|
+
*/
|
|
23297
23479
|
}, {
|
|
23298
23480
|
key: "deepEquals",
|
|
23299
23481
|
value: function deepEquals(a, b) {
|
|
@@ -23982,6 +24164,13 @@ this.primereact.icons.windowmaximize = (function (exports, React, iconbase) {
|
|
|
23982
24164
|
value: function equals(obj1, obj2, field) {
|
|
23983
24165
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
23984
24166
|
}
|
|
24167
|
+
|
|
24168
|
+
/**
|
|
24169
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
24170
|
+
* @param {*} a the first JSON object
|
|
24171
|
+
* @param {*} b the second JSON object
|
|
24172
|
+
* @returns true if equals, false it not
|
|
24173
|
+
*/
|
|
23985
24174
|
}, {
|
|
23986
24175
|
key: "deepEquals",
|
|
23987
24176
|
value: function deepEquals(a, b) {
|
|
@@ -24670,6 +24859,13 @@ this.primereact.icons.windowminimize = (function (exports, React, iconbase) {
|
|
|
24670
24859
|
value: function equals(obj1, obj2, field) {
|
|
24671
24860
|
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
24672
24861
|
}
|
|
24862
|
+
|
|
24863
|
+
/**
|
|
24864
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
24865
|
+
* @param {*} a the first JSON object
|
|
24866
|
+
* @param {*} b the second JSON object
|
|
24867
|
+
* @returns true if equals, false it not
|
|
24868
|
+
*/
|
|
24673
24869
|
}, {
|
|
24674
24870
|
key: "deepEquals",
|
|
24675
24871
|
value: function deepEquals(a, b) {
|
|
@@ -29437,12 +29633,14 @@ this.primereact.messages = (function (exports, React, reactTransitionGroup, api,
|
|
|
29437
29633
|
});
|
|
29438
29634
|
};
|
|
29439
29635
|
var remove = function remove(messageInfo) {
|
|
29636
|
+
// allow removal by ID or by message equality
|
|
29637
|
+
var removeMessage = messageInfo._pId ? messageInfo.message : messageInfo;
|
|
29440
29638
|
setMessagesState(function (prev) {
|
|
29441
29639
|
return prev.filter(function (msg) {
|
|
29442
|
-
return msg._pId !== messageInfo._pId;
|
|
29640
|
+
return msg._pId !== messageInfo._pId && !utils.ObjectUtils.deepEquals(msg.message, removeMessage);
|
|
29443
29641
|
});
|
|
29444
29642
|
});
|
|
29445
|
-
props.onRemove && props.onRemove(
|
|
29643
|
+
props.onRemove && props.onRemove(removeMessage);
|
|
29446
29644
|
};
|
|
29447
29645
|
var onClose = function onClose(messageInfo) {
|
|
29448
29646
|
remove(messageInfo);
|
|
@@ -34081,9 +34279,31 @@ this.primereact.tree = (function (exports, React, api, componentbase, search, sp
|
|
|
34081
34279
|
var onDragEnd = function onDragEnd() {
|
|
34082
34280
|
dragState.current = null;
|
|
34083
34281
|
};
|
|
34282
|
+
|
|
34283
|
+
/**
|
|
34284
|
+
* Deep copy a value. If the value has a data property, it will be shallow copied.
|
|
34285
|
+
* Values that are not plain objects or arrays are returned as-is.
|
|
34286
|
+
*/
|
|
34287
|
+
var cloneValue = function cloneValue(value) {
|
|
34288
|
+
if (Array.isArray(value)) {
|
|
34289
|
+
return value.map(cloneValue);
|
|
34290
|
+
} else if (!!value && Object.getPrototypeOf(value) === Object.prototype) {
|
|
34291
|
+
var result = {};
|
|
34292
|
+
|
|
34293
|
+
// Leave data property alone and clone children
|
|
34294
|
+
for (var key in value) {
|
|
34295
|
+
if (key !== 'data') {
|
|
34296
|
+
result[key] = cloneValue(value[key]);
|
|
34297
|
+
} else {
|
|
34298
|
+
result[key] = value[key];
|
|
34299
|
+
}
|
|
34300
|
+
}
|
|
34301
|
+
return result;
|
|
34302
|
+
} else return value;
|
|
34303
|
+
};
|
|
34084
34304
|
var onDrop = function onDrop(event) {
|
|
34085
34305
|
if (validateDropNode(dragState.current.path, event.path)) {
|
|
34086
|
-
var value =
|
|
34306
|
+
var value = cloneValue(props.value);
|
|
34087
34307
|
var dragPaths = dragState.current.path.split('-');
|
|
34088
34308
|
dragPaths.pop();
|
|
34089
34309
|
var dragNodeParent = findNode(value, dragPaths);
|
|
@@ -34104,7 +34324,7 @@ this.primereact.tree = (function (exports, React, api, componentbase, search, sp
|
|
|
34104
34324
|
};
|
|
34105
34325
|
var onDropPoint = function onDropPoint(event) {
|
|
34106
34326
|
if (validateDropPoint(event)) {
|
|
34107
|
-
var value =
|
|
34327
|
+
var value = cloneValue(props.value);
|
|
34108
34328
|
var dragPaths = dragState.current.path.split('-');
|
|
34109
34329
|
dragPaths.pop();
|
|
34110
34330
|
var dropPaths = event.path.split('-');
|