primereact 7.2.0 → 7.2.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.
- package/calendar/calendar.cjs.js +1 -1
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +1 -1
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +1 -1
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +212 -5
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +212 -5
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +212 -5
- package/carousel/carousel.min.js +1 -1
- package/core/core.js +34 -3
- package/core/core.min.js +4 -4
- package/datatable/datatable.cjs.js +21 -16
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +1 -0
- package/datatable/datatable.esm.js +21 -16
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +21 -16
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +1 -5
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +1 -5
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +1 -5
- package/dataview/dataview.min.js +1 -1
- package/dropdown/dropdown.cjs.js +1 -1
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +1 -1
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +1 -1
- package/dropdown/dropdown.min.js +1 -1
- package/galleria/galleria.cjs.js +212 -5
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +212 -5
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +212 -5
- package/galleria/galleria.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +5 -1
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +5 -1
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +5 -1
- package/inputnumber/inputnumber.min.js +1 -1
- package/knob/knob.cjs.js +1 -1
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +1 -1
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +1 -1
- package/knob/knob.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/primereact.all.cjs.js +142 -122
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +142 -122
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +142 -122
- package/primereact.all.min.js +1 -1
- package/resources/primereact.css +7 -2
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +254 -2
- package/resources/themes/arya-green/theme.css +254 -2
- package/resources/themes/arya-orange/theme.css +254 -2
- package/resources/themes/arya-purple/theme.css +254 -2
- package/resources/themes/bootstrap4-dark-blue/theme.css +254 -2
- package/resources/themes/bootstrap4-dark-purple/theme.css +254 -2
- package/resources/themes/bootstrap4-light-blue/theme.css +252 -0
- package/resources/themes/bootstrap4-light-purple/theme.css +252 -0
- package/resources/themes/fluent-light/theme.css +252 -0
- package/resources/themes/lara-dark-blue/theme.css +261 -44
- package/resources/themes/lara-dark-indigo/theme.css +261 -44
- package/resources/themes/lara-dark-purple/theme.css +261 -44
- package/resources/themes/lara-dark-teal/theme.css +261 -44
- package/resources/themes/lara-light-blue/theme.css +259 -42
- package/resources/themes/lara-light-indigo/theme.css +259 -42
- package/resources/themes/lara-light-purple/theme.css +259 -42
- package/resources/themes/lara-light-teal/theme.css +259 -42
- package/resources/themes/luna-amber/theme.css +252 -0
- package/resources/themes/luna-blue/theme.css +252 -0
- package/resources/themes/luna-green/theme.css +252 -0
- package/resources/themes/luna-pink/theme.css +252 -0
- package/resources/themes/md-dark-deeppurple/theme.css +328 -2
- package/resources/themes/md-dark-indigo/theme.css +328 -2
- package/resources/themes/md-light-deeppurple/theme.css +326 -0
- package/resources/themes/md-light-indigo/theme.css +326 -0
- package/resources/themes/mdc-dark-deeppurple/theme.css +328 -2
- package/resources/themes/mdc-dark-indigo/theme.css +328 -2
- package/resources/themes/mdc-light-deeppurple/theme.css +326 -0
- package/resources/themes/mdc-light-indigo/theme.css +326 -0
- package/resources/themes/nova/theme.css +252 -0
- package/resources/themes/nova-accent/theme.css +252 -0
- package/resources/themes/nova-alt/theme.css +252 -0
- package/resources/themes/rhea/theme.css +252 -0
- package/resources/themes/saga-blue/theme.css +252 -0
- package/resources/themes/saga-green/theme.css +252 -0
- package/resources/themes/saga-orange/theme.css +252 -0
- package/resources/themes/saga-purple/theme.css +252 -0
- package/resources/themes/tailwind-light/theme.css +252 -0
- package/resources/themes/vela-blue/theme.css +254 -2
- package/resources/themes/vela-green/theme.css +254 -2
- package/resources/themes/vela-orange/theme.css +254 -2
- package/resources/themes/vela-purple/theme.css +254 -2
- package/splitbutton/splitbutton.d.ts +4 -1
- package/splitbutton/splitbutton.min.css +1 -1
- package/tabmenu/tabmenu.cjs.js +1 -1
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +1 -1
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +1 -1
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +1 -1
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +1 -1
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +1 -1
- package/tabview/tabview.min.js +1 -1
- package/toolbar/toolbar.min.css +1 -1
- package/tree/tree.cjs.js +2 -1
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +2 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +2 -1
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +3 -3
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +3 -3
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +3 -3
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +12 -10
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +8 -7
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +12 -10
- package/treetable/treetable.min.js +1 -1
- package/utils/utils.cjs.js +26 -0
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -0
- package/utils/utils.esm.js +26 -0
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +26 -0
- package/utils/utils.min.js +1 -1
- package/web-types.json +15 -3
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
package/primereact.all.esm.js
CHANGED
|
@@ -253,6 +253,11 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
253
253
|
|
|
254
254
|
return 0;
|
|
255
255
|
}
|
|
256
|
+
}, {
|
|
257
|
+
key: "getBrowserLanguage",
|
|
258
|
+
value: function getBrowserLanguage() {
|
|
259
|
+
return navigator.userLanguage || navigator.languages && navigator.languages.length && navigator.languages[0] || navigator.language || navigator.browserLanguage || navigator.systemLanguage || 'en';
|
|
260
|
+
}
|
|
256
261
|
}, {
|
|
257
262
|
key: "getWindowScrollTop",
|
|
258
263
|
value: function getWindowScrollTop() {
|
|
@@ -1948,6 +1953,27 @@ var ObjectUtils = /*#__PURE__*/function () {
|
|
|
1948
1953
|
value: function isNotEmpty(value) {
|
|
1949
1954
|
return !this.isEmpty(value);
|
|
1950
1955
|
}
|
|
1956
|
+
/**
|
|
1957
|
+
* Compare value1 and value2 ascending by default (1) or pass in order as -1 for descending.
|
|
1958
|
+
*
|
|
1959
|
+
* @param {any} value1 the first value
|
|
1960
|
+
* @param {any} value2 the second value
|
|
1961
|
+
* @param {number | undefined} order by default ascending (1) set to descending (-1)
|
|
1962
|
+
* @param {string | undefined} locale the locale to use (default to browser locale if null)
|
|
1963
|
+
* @returns either 0, 1 or -1 for comparing the two values
|
|
1964
|
+
*/
|
|
1965
|
+
|
|
1966
|
+
}, {
|
|
1967
|
+
key: "sort",
|
|
1968
|
+
value: function sort(value1, value2) {
|
|
1969
|
+
var order = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
1970
|
+
var locale = arguments.length > 3 ? arguments[3] : undefined;
|
|
1971
|
+
var result = null;
|
|
1972
|
+
if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, locale, {
|
|
1973
|
+
numeric: true
|
|
1974
|
+
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
1975
|
+
return order * result;
|
|
1976
|
+
}
|
|
1951
1977
|
}]);
|
|
1952
1978
|
|
|
1953
1979
|
return ObjectUtils;
|
|
@@ -2096,25 +2122,25 @@ var FilterMatchMode = Object.freeze({
|
|
|
2096
2122
|
CUSTOM: 'custom'
|
|
2097
2123
|
});
|
|
2098
2124
|
|
|
2099
|
-
var PrimeReact = /*#__PURE__*/_createClass(function PrimeReact() {
|
|
2125
|
+
var PrimeReact$1 = /*#__PURE__*/_createClass(function PrimeReact() {
|
|
2100
2126
|
_classCallCheck(this, PrimeReact);
|
|
2101
2127
|
});
|
|
2102
2128
|
|
|
2103
|
-
_defineProperty(PrimeReact, "ripple", false);
|
|
2129
|
+
_defineProperty(PrimeReact$1, "ripple", false);
|
|
2104
2130
|
|
|
2105
|
-
_defineProperty(PrimeReact, "inputStyle", 'outlined');
|
|
2131
|
+
_defineProperty(PrimeReact$1, "inputStyle", 'outlined');
|
|
2106
2132
|
|
|
2107
|
-
_defineProperty(PrimeReact, "locale", 'en');
|
|
2133
|
+
_defineProperty(PrimeReact$1, "locale", 'en');
|
|
2108
2134
|
|
|
2109
|
-
_defineProperty(PrimeReact, "appendTo", null);
|
|
2135
|
+
_defineProperty(PrimeReact$1, "appendTo", null);
|
|
2110
2136
|
|
|
2111
|
-
_defineProperty(PrimeReact, "cssTransition", true);
|
|
2137
|
+
_defineProperty(PrimeReact$1, "cssTransition", true);
|
|
2112
2138
|
|
|
2113
|
-
_defineProperty(PrimeReact, "autoZIndex", true);
|
|
2139
|
+
_defineProperty(PrimeReact$1, "autoZIndex", true);
|
|
2114
2140
|
|
|
2115
|
-
_defineProperty(PrimeReact, "nonce", null);
|
|
2141
|
+
_defineProperty(PrimeReact$1, "nonce", null);
|
|
2116
2142
|
|
|
2117
|
-
_defineProperty(PrimeReact, "zIndex", {
|
|
2143
|
+
_defineProperty(PrimeReact$1, "zIndex", {
|
|
2118
2144
|
modal: 1100,
|
|
2119
2145
|
overlay: 1000,
|
|
2120
2146
|
menu: 1000,
|
|
@@ -2122,7 +2148,7 @@ _defineProperty(PrimeReact, "zIndex", {
|
|
|
2122
2148
|
toast: 1200
|
|
2123
2149
|
});
|
|
2124
2150
|
|
|
2125
|
-
_defineProperty(PrimeReact, "filterMatchModeOptions", {
|
|
2151
|
+
_defineProperty(PrimeReact$1, "filterMatchModeOptions", {
|
|
2126
2152
|
text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],
|
|
2127
2153
|
numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],
|
|
2128
2154
|
date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]
|
|
@@ -2179,10 +2205,10 @@ var locales = {
|
|
|
2179
2205
|
};
|
|
2180
2206
|
|
|
2181
2207
|
function locale(locale) {
|
|
2182
|
-
locale && (PrimeReact.locale = locale);
|
|
2208
|
+
locale && (PrimeReact$1.locale = locale);
|
|
2183
2209
|
return {
|
|
2184
|
-
locale: PrimeReact.locale,
|
|
2185
|
-
options: locales[PrimeReact.locale]
|
|
2210
|
+
locale: PrimeReact$1.locale,
|
|
2211
|
+
options: locales[PrimeReact$1.locale]
|
|
2186
2212
|
};
|
|
2187
2213
|
}
|
|
2188
2214
|
|
|
@@ -2195,13 +2221,13 @@ function updateLocaleOption(key, value, locale) {
|
|
|
2195
2221
|
}
|
|
2196
2222
|
|
|
2197
2223
|
function updateLocaleOptions(options, locale) {
|
|
2198
|
-
var _locale = locale || PrimeReact.locale;
|
|
2224
|
+
var _locale = locale || PrimeReact$1.locale;
|
|
2199
2225
|
|
|
2200
2226
|
locales[_locale] = _objectSpread$T(_objectSpread$T({}, locales[_locale]), options);
|
|
2201
2227
|
}
|
|
2202
2228
|
|
|
2203
2229
|
function localeOption(key, locale) {
|
|
2204
|
-
var _locale = locale || PrimeReact.locale;
|
|
2230
|
+
var _locale = locale || PrimeReact$1.locale;
|
|
2205
2231
|
|
|
2206
2232
|
try {
|
|
2207
2233
|
return localeOptions(_locale)[key];
|
|
@@ -2211,7 +2237,7 @@ function localeOption(key, locale) {
|
|
|
2211
2237
|
}
|
|
2212
2238
|
|
|
2213
2239
|
function localeOptions(locale) {
|
|
2214
|
-
var _locale = locale || PrimeReact.locale;
|
|
2240
|
+
var _locale = locale || PrimeReact$1.locale;
|
|
2215
2241
|
|
|
2216
2242
|
return locales[_locale];
|
|
2217
2243
|
}
|
|
@@ -2735,7 +2761,7 @@ var CSSTransition = /*#__PURE__*/function (_Component) {
|
|
|
2735
2761
|
_createClass(CSSTransition, [{
|
|
2736
2762
|
key: "disabled",
|
|
2737
2763
|
get: function get() {
|
|
2738
|
-
return this.props.disabled || this.props.options && this.props.options.disabled || !PrimeReact.cssTransition;
|
|
2764
|
+
return this.props.disabled || this.props.options && this.props.options.disabled || !PrimeReact$1.cssTransition;
|
|
2739
2765
|
}
|
|
2740
2766
|
}, {
|
|
2741
2767
|
key: "onEnter",
|
|
@@ -3238,7 +3264,7 @@ var Portal = /*#__PURE__*/function (_Component) {
|
|
|
3238
3264
|
var element = this.props.element || this.props.children;
|
|
3239
3265
|
|
|
3240
3266
|
if (element && this.state.mounted) {
|
|
3241
|
-
var appendTo = this.props.appendTo || PrimeReact.appendTo || document.body;
|
|
3267
|
+
var appendTo = this.props.appendTo || PrimeReact$1.appendTo || document.body;
|
|
3242
3268
|
return appendTo === 'self' ? element : /*#__PURE__*/ReactDOM.createPortal(element, appendTo);
|
|
3243
3269
|
}
|
|
3244
3270
|
|
|
@@ -3428,7 +3454,7 @@ var Tooltip = /*#__PURE__*/function (_Component) {
|
|
|
3428
3454
|
var updateTooltipState = function updateTooltipState() {
|
|
3429
3455
|
_this2.updateText(_this2.currentTarget, function () {
|
|
3430
3456
|
if (_this2.props.autoZIndex && !ZIndexUtils.get(_this2.containerEl)) {
|
|
3431
|
-
ZIndexUtils.set('tooltip', _this2.containerEl, PrimeReact.autoZIndex, _this2.props.baseZIndex || PrimeReact.zIndex['tooltip']);
|
|
3457
|
+
ZIndexUtils.set('tooltip', _this2.containerEl, PrimeReact$1.autoZIndex, _this2.props.baseZIndex || PrimeReact$1.zIndex['tooltip']);
|
|
3432
3458
|
}
|
|
3433
3459
|
|
|
3434
3460
|
_this2.containerEl.style.left = '';
|
|
@@ -4136,7 +4162,7 @@ var Ripple = /*#__PURE__*/function (_Component) {
|
|
|
4136
4162
|
value: function render() {
|
|
4137
4163
|
var _this2 = this;
|
|
4138
4164
|
|
|
4139
|
-
return PrimeReact.ripple ? /*#__PURE__*/React.createElement("span", {
|
|
4165
|
+
return PrimeReact$1.ripple ? /*#__PURE__*/React.createElement("span", {
|
|
4140
4166
|
ref: function ref(el) {
|
|
4141
4167
|
return _this2.ink = el;
|
|
4142
4168
|
},
|
|
@@ -5573,7 +5599,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
|
5573
5599
|
}, {
|
|
5574
5600
|
key: "onOverlayEnter",
|
|
5575
5601
|
value: function onOverlayEnter() {
|
|
5576
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
5602
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
5577
5603
|
this.alignOverlay();
|
|
5578
5604
|
}
|
|
5579
5605
|
}, {
|
|
@@ -5608,7 +5634,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
|
5608
5634
|
key: "alignOverlay",
|
|
5609
5635
|
value: function alignOverlay() {
|
|
5610
5636
|
var target = this.props.multiple ? this.multiContainer : this.inputRef.current;
|
|
5611
|
-
DomHandler.alignOverlay(this.overlayRef.current, target, this.props.appendTo || PrimeReact.appendTo);
|
|
5637
|
+
DomHandler.alignOverlay(this.overlayRef.current, target, this.props.appendTo || PrimeReact$1.appendTo);
|
|
5612
5638
|
}
|
|
5613
5639
|
}, {
|
|
5614
5640
|
key: "onPanelClick",
|
|
@@ -7276,7 +7302,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
7276
7302
|
value: function onClearButtonClick(event) {
|
|
7277
7303
|
this.updateModel(event, null);
|
|
7278
7304
|
this.updateInputfield(null);
|
|
7279
|
-
this.hideOverlay(
|
|
7305
|
+
this.hideOverlay();
|
|
7280
7306
|
|
|
7281
7307
|
if (this.props.onClearButtonClick) {
|
|
7282
7308
|
this.props.onClearButtonClick(event);
|
|
@@ -8260,7 +8286,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
8260
8286
|
value: function onOverlayEnter() {
|
|
8261
8287
|
if (this.props.autoZIndex) {
|
|
8262
8288
|
var key = this.props.touchUI ? 'modal' : 'overlay';
|
|
8263
|
-
ZIndexUtils.set(key, this.overlayRef.current, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex[key]);
|
|
8289
|
+
ZIndexUtils.set(key, this.overlayRef.current, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex[key]);
|
|
8264
8290
|
}
|
|
8265
8291
|
|
|
8266
8292
|
this.alignOverlay();
|
|
@@ -8372,7 +8398,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
8372
8398
|
if (this.props.touchUI) {
|
|
8373
8399
|
this.enableModality();
|
|
8374
8400
|
} else {
|
|
8375
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
8401
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
8376
8402
|
}
|
|
8377
8403
|
}
|
|
8378
8404
|
}, {
|
|
@@ -10711,7 +10737,7 @@ var Carousel = /*#__PURE__*/function (_Component2) {
|
|
|
10711
10737
|
key: "createStyle",
|
|
10712
10738
|
value: function createStyle() {
|
|
10713
10739
|
if (!this.carouselStyle) {
|
|
10714
|
-
this.carouselStyle = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
10740
|
+
this.carouselStyle = DomHandler.createInlineStyle(PrimeReact$1.nonce);
|
|
10715
10741
|
}
|
|
10716
10742
|
|
|
10717
10743
|
var innerHTML = "\n .p-carousel[".concat(this.attributeSelector, "] .p-carousel-item {\n flex: 1 0 ").concat(100 / this.state.numVisible, "%\n }\n ");
|
|
@@ -10721,11 +10747,7 @@ var Carousel = /*#__PURE__*/function (_Component2) {
|
|
|
10721
10747
|
this.responsiveOptions.sort(function (data1, data2) {
|
|
10722
10748
|
var value1 = data1.breakpoint;
|
|
10723
10749
|
var value2 = data2.breakpoint;
|
|
10724
|
-
|
|
10725
|
-
if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {
|
|
10726
|
-
numeric: true
|
|
10727
|
-
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
10728
|
-
return -1 * result;
|
|
10750
|
+
return ObjectUtils.sort(value1, value2, -1, PrimeReact$1.locale);
|
|
10729
10751
|
});
|
|
10730
10752
|
|
|
10731
10753
|
for (var i = 0; i < this.responsiveOptions.length; i++) {
|
|
@@ -11667,7 +11689,7 @@ var CascadeSelect = /*#__PURE__*/function (_Component) {
|
|
|
11667
11689
|
}, {
|
|
11668
11690
|
key: "onOverlayEnter",
|
|
11669
11691
|
value: function onOverlayEnter() {
|
|
11670
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
11692
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
11671
11693
|
this.alignOverlay();
|
|
11672
11694
|
}
|
|
11673
11695
|
}, {
|
|
@@ -11695,7 +11717,7 @@ var CascadeSelect = /*#__PURE__*/function (_Component) {
|
|
|
11695
11717
|
}, {
|
|
11696
11718
|
key: "alignOverlay",
|
|
11697
11719
|
value: function alignOverlay() {
|
|
11698
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.label.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
11720
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.label.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
11699
11721
|
}
|
|
11700
11722
|
}, {
|
|
11701
11723
|
key: "bindOutsideClickListener",
|
|
@@ -13194,7 +13216,7 @@ var ColorPicker = /*#__PURE__*/function (_Component) {
|
|
|
13194
13216
|
}, {
|
|
13195
13217
|
key: "onOverlayEnter",
|
|
13196
13218
|
value: function onOverlayEnter() {
|
|
13197
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
13219
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
13198
13220
|
this.alignOverlay();
|
|
13199
13221
|
}
|
|
13200
13222
|
}, {
|
|
@@ -13607,7 +13629,7 @@ var ColorPicker = /*#__PURE__*/function (_Component) {
|
|
|
13607
13629
|
key: "alignOverlay",
|
|
13608
13630
|
value: function alignOverlay() {
|
|
13609
13631
|
if (this.inputRef && this.inputRef.current) {
|
|
13610
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
13632
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
13611
13633
|
}
|
|
13612
13634
|
}
|
|
13613
13635
|
}, {
|
|
@@ -14300,7 +14322,7 @@ var Dialog = /*#__PURE__*/function (_Component) {
|
|
|
14300
14322
|
key: "createStyle",
|
|
14301
14323
|
value: function createStyle() {
|
|
14302
14324
|
if (!this.styleElement) {
|
|
14303
|
-
this.styleElement = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
14325
|
+
this.styleElement = DomHandler.createInlineStyle(PrimeReact$1.nonce);
|
|
14304
14326
|
var innerHTML = '';
|
|
14305
14327
|
|
|
14306
14328
|
for (var breakpoint in this.props.breakpoints) {
|
|
@@ -14325,7 +14347,7 @@ var Dialog = /*#__PURE__*/function (_Component) {
|
|
|
14325
14347
|
this.setState({
|
|
14326
14348
|
maskVisible: true
|
|
14327
14349
|
}, function () {
|
|
14328
|
-
ZIndexUtils.set('modal', _this5.mask, PrimeReact.autoZIndex, _this5.props.baseZIndex || PrimeReact.zIndex['modal']);
|
|
14350
|
+
ZIndexUtils.set('modal', _this5.mask, PrimeReact$1.autoZIndex, _this5.props.baseZIndex || PrimeReact$1.zIndex['modal']);
|
|
14329
14351
|
|
|
14330
14352
|
_this5.setState({
|
|
14331
14353
|
visible: true
|
|
@@ -14346,7 +14368,7 @@ var Dialog = /*#__PURE__*/function (_Component) {
|
|
|
14346
14368
|
this.setState({
|
|
14347
14369
|
maskVisible: true
|
|
14348
14370
|
}, function () {
|
|
14349
|
-
ZIndexUtils.set('modal', _this6.mask, PrimeReact.autoZIndex, _this6.props.baseZIndex || PrimeReact.zIndex['modal']);
|
|
14371
|
+
ZIndexUtils.set('modal', _this6.mask, PrimeReact$1.autoZIndex, _this6.props.baseZIndex || PrimeReact$1.zIndex['modal']);
|
|
14350
14372
|
});
|
|
14351
14373
|
}
|
|
14352
14374
|
|
|
@@ -15045,7 +15067,7 @@ var ConfirmPopup = /*#__PURE__*/function (_Component) {
|
|
|
15045
15067
|
}, {
|
|
15046
15068
|
key: "onEnter",
|
|
15047
15069
|
value: function onEnter() {
|
|
15048
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
15070
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
15049
15071
|
this.align();
|
|
15050
15072
|
}
|
|
15051
15073
|
}, {
|
|
@@ -15579,7 +15601,7 @@ var ContextMenu = /*#__PURE__*/function (_Component2) {
|
|
|
15579
15601
|
key: "onEnter",
|
|
15580
15602
|
value: function onEnter() {
|
|
15581
15603
|
if (this.props.autoZIndex) {
|
|
15582
|
-
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['menu']);
|
|
15604
|
+
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex['menu']);
|
|
15583
15605
|
}
|
|
15584
15606
|
|
|
15585
15607
|
this.position(this.currentEvent);
|
|
@@ -17313,7 +17335,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
17313
17335
|
}, {
|
|
17314
17336
|
key: "onOverlayEnter",
|
|
17315
17337
|
value: function onOverlayEnter(callback) {
|
|
17316
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
17338
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
17317
17339
|
this.alignOverlay();
|
|
17318
17340
|
callback && callback();
|
|
17319
17341
|
}
|
|
@@ -17346,14 +17368,14 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
17346
17368
|
}, {
|
|
17347
17369
|
key: "alignOverlay",
|
|
17348
17370
|
value: function alignOverlay() {
|
|
17349
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.input.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
17371
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.input.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
17350
17372
|
}
|
|
17351
17373
|
}, {
|
|
17352
17374
|
key: "scrollInView",
|
|
17353
17375
|
value: function scrollInView() {
|
|
17354
17376
|
var highlightItem = DomHandler.findSingle(this.overlayRef.current, 'li.p-highlight');
|
|
17355
17377
|
|
|
17356
|
-
if (highlightItem) {
|
|
17378
|
+
if (highlightItem && highlightItem.scrollIntoView) {
|
|
17357
17379
|
highlightItem.scrollIntoView({
|
|
17358
17380
|
block: 'nearest',
|
|
17359
17381
|
inline: 'start'
|
|
@@ -17773,7 +17795,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
17773
17795
|
});
|
|
17774
17796
|
var visibleOptions = this.getVisibleOptions();
|
|
17775
17797
|
var selectedOption = this.getSelectedOption();
|
|
17776
|
-
var appendTo = this.props.appendTo || PrimeReact.appendTo;
|
|
17798
|
+
var appendTo = this.props.appendTo || PrimeReact$1.appendTo;
|
|
17777
17799
|
var hiddenSelect = this.renderHiddenSelect(selectedOption);
|
|
17778
17800
|
var keyboardHelper = this.renderKeyboardHelper();
|
|
17779
17801
|
var labelElement = this.renderLabel(selectedOption);
|
|
@@ -18491,6 +18513,11 @@ var InputNumber = /*#__PURE__*/function (_Component) {
|
|
|
18491
18513
|
|
|
18492
18514
|
var code = event.which || event.keyCode;
|
|
18493
18515
|
|
|
18516
|
+
if (code !== 13) {
|
|
18517
|
+
// to submit a form
|
|
18518
|
+
event.preventDefault();
|
|
18519
|
+
}
|
|
18520
|
+
|
|
18494
18521
|
var _char = String.fromCharCode(code);
|
|
18495
18522
|
|
|
18496
18523
|
var isDecimalSign = this.isDecimalSign(_char);
|
|
@@ -18501,7 +18528,6 @@ var InputNumber = /*#__PURE__*/function (_Component) {
|
|
|
18501
18528
|
isDecimalSign: isDecimalSign,
|
|
18502
18529
|
isMinusSign: isMinusSign
|
|
18503
18530
|
});
|
|
18504
|
-
event.preventDefault();
|
|
18505
18531
|
}
|
|
18506
18532
|
}
|
|
18507
18533
|
}, {
|
|
@@ -21677,12 +21703,6 @@ var TableBody = /*#__PURE__*/function (_Component) {
|
|
|
21677
21703
|
key: "selectRange",
|
|
21678
21704
|
value: function selectRange(event) {
|
|
21679
21705
|
var rangeStart, rangeEnd;
|
|
21680
|
-
var isLazyAndPaginator = this.props.lazy && this.props.paginator;
|
|
21681
|
-
|
|
21682
|
-
if (isLazyAndPaginator) {
|
|
21683
|
-
this.anchorRowIndex += this.anchorRowFirst;
|
|
21684
|
-
this.rangeRowIndex += this.props.first;
|
|
21685
|
-
}
|
|
21686
21706
|
|
|
21687
21707
|
if (this.rangeRowIndex > this.anchorRowIndex) {
|
|
21688
21708
|
rangeStart = this.anchorRowIndex;
|
|
@@ -21694,7 +21714,7 @@ var TableBody = /*#__PURE__*/function (_Component) {
|
|
|
21694
21714
|
rangeStart = rangeEnd = this.rangeRowIndex;
|
|
21695
21715
|
}
|
|
21696
21716
|
|
|
21697
|
-
if (
|
|
21717
|
+
if (this.props.paginator) {
|
|
21698
21718
|
rangeStart = Math.max(rangeStart - this.props.first, 0);
|
|
21699
21719
|
rangeEnd -= this.props.first;
|
|
21700
21720
|
}
|
|
@@ -22248,6 +22268,10 @@ var TableBody = /*#__PURE__*/function (_Component) {
|
|
|
22248
22268
|
if (!this.props.isVirtualScrollerDisabled && this.getVirtualScrollerOption('vertical') && this.getVirtualScrollerOption('itemSize', prevProps.virtualScrollerOptions) !== this.getVirtualScrollerOption('itemSize')) {
|
|
22249
22269
|
this.updateVirtualScrollerPosition();
|
|
22250
22270
|
}
|
|
22271
|
+
|
|
22272
|
+
if (this.props.paginator && this.isMultipleSelection() && this.props.first !== prevProps.first) {
|
|
22273
|
+
this.anchorRowIndex = null;
|
|
22274
|
+
}
|
|
22251
22275
|
}
|
|
22252
22276
|
}, {
|
|
22253
22277
|
key: "componentWillUnmount",
|
|
@@ -22832,7 +22856,7 @@ var ColumnFilter = /*#__PURE__*/function (_Component) {
|
|
|
22832
22856
|
}, {
|
|
22833
22857
|
key: "matchModes",
|
|
22834
22858
|
value: function matchModes() {
|
|
22835
|
-
return this.getColumnProp('filterMatchModeOptions') || PrimeReact.filterMatchModeOptions[this.findDataType()].map(function (key) {
|
|
22859
|
+
return this.getColumnProp('filterMatchModeOptions') || PrimeReact$1.filterMatchModeOptions[this.findDataType()].map(function (key) {
|
|
22836
22860
|
return {
|
|
22837
22861
|
label: localeOption(key),
|
|
22838
22862
|
value: key
|
|
@@ -22897,16 +22921,16 @@ var ColumnFilter = /*#__PURE__*/function (_Component) {
|
|
|
22897
22921
|
var matchMode = this.getColumnProp('filterMatchMode');
|
|
22898
22922
|
|
|
22899
22923
|
var hasMatchMode = function hasMatchMode(key) {
|
|
22900
|
-
return PrimeReact.filterMatchModeOptions[key].some(function (mode) {
|
|
22924
|
+
return PrimeReact$1.filterMatchModeOptions[key].some(function (mode) {
|
|
22901
22925
|
return mode === matchMode;
|
|
22902
22926
|
});
|
|
22903
22927
|
};
|
|
22904
22928
|
|
|
22905
22929
|
if (matchMode === 'custom' && !hasMatchMode(dataType)) {
|
|
22906
|
-
PrimeReact.filterMatchModeOptions[dataType].push(FilterMatchMode.CUSTOM);
|
|
22930
|
+
PrimeReact$1.filterMatchModeOptions[dataType].push(FilterMatchMode.CUSTOM);
|
|
22907
22931
|
return dataType;
|
|
22908
22932
|
} else if (matchMode) {
|
|
22909
|
-
return Object.keys(PrimeReact.filterMatchModeOptions).find(function (key) {
|
|
22933
|
+
return Object.keys(PrimeReact$1.filterMatchModeOptions).find(function (key) {
|
|
22910
22934
|
return hasMatchMode(key);
|
|
22911
22935
|
}) || dataType;
|
|
22912
22936
|
}
|
|
@@ -23179,8 +23203,8 @@ var ColumnFilter = /*#__PURE__*/function (_Component) {
|
|
|
23179
23203
|
value: function onOverlayEnter() {
|
|
23180
23204
|
var _this2 = this;
|
|
23181
23205
|
|
|
23182
|
-
ZIndexUtils.set('overlay', this.overlay, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
23183
|
-
DomHandler.alignOverlay(this.overlay, this.icon, PrimeReact.appendTo, false);
|
|
23206
|
+
ZIndexUtils.set('overlay', this.overlay, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
23207
|
+
DomHandler.alignOverlay(this.overlay, this.icon, PrimeReact$1.appendTo, false);
|
|
23184
23208
|
this.bindOutsideClickListener();
|
|
23185
23209
|
this.bindScrollListener();
|
|
23186
23210
|
this.bindResizeListener();
|
|
@@ -23354,7 +23378,7 @@ var ColumnFilter = /*#__PURE__*/function (_Component) {
|
|
|
23354
23378
|
key: "componentDidUpdate",
|
|
23355
23379
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
23356
23380
|
if (this.props.display === 'menu' && this.state.overlayVisible) {
|
|
23357
|
-
DomHandler.alignOverlay(this.overlay, this.icon, PrimeReact.appendTo, false);
|
|
23381
|
+
DomHandler.alignOverlay(this.overlay, this.icon, PrimeReact$1.appendTo, false);
|
|
23358
23382
|
}
|
|
23359
23383
|
}
|
|
23360
23384
|
}, {
|
|
@@ -23667,8 +23691,8 @@ var ColumnFilter = /*#__PURE__*/function (_Component) {
|
|
|
23667
23691
|
var style = this.getColumnProp('filterMenuStyle');
|
|
23668
23692
|
var className = classNames('p-column-filter-overlay p-component p-fluid', this.getColumnProp('filterMenuClassName'), {
|
|
23669
23693
|
'p-column-filter-overlay-menu': this.props.display === 'menu',
|
|
23670
|
-
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
23671
|
-
'p-ripple-disabled': PrimeReact.ripple === false
|
|
23694
|
+
'p-input-filled': PrimeReact$1.inputStyle === 'filled',
|
|
23695
|
+
'p-ripple-disabled': PrimeReact$1.ripple === false
|
|
23672
23696
|
});
|
|
23673
23697
|
var filterHeader = ObjectUtils.getJSXElement(this.getColumnProp('filterHeader'), {
|
|
23674
23698
|
field: this.field,
|
|
@@ -25211,13 +25235,13 @@ var DataTable = /*#__PURE__*/function (_Component) {
|
|
|
25211
25235
|
}, {
|
|
25212
25236
|
key: "createStyleElement",
|
|
25213
25237
|
value: function createStyleElement() {
|
|
25214
|
-
this.styleElement = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
25238
|
+
this.styleElement = DomHandler.createInlineStyle(PrimeReact$1.nonce);
|
|
25215
25239
|
}
|
|
25216
25240
|
}, {
|
|
25217
25241
|
key: "createResponsiveStyle",
|
|
25218
25242
|
value: function createResponsiveStyle() {
|
|
25219
25243
|
if (!this.responsiveStyleElement) {
|
|
25220
|
-
this.responsiveStyleElement = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
25244
|
+
this.responsiveStyleElement = DomHandler.createInlineStyle(PrimeReact$1.nonce);
|
|
25221
25245
|
var innerHTML = "\n@media screen and (max-width: ".concat(this.props.breakpoint, ") {\n .p-datatable[").concat(this.state.attributeSelector, "] .p-datatable-thead > tr > th,\n .p-datatable[").concat(this.state.attributeSelector, "] .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n .p-datatable[").concat(this.state.attributeSelector, "] .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n .p-datatable[").concat(this.state.attributeSelector, "] .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n .p-datatable[").concat(this.state.attributeSelector, "].p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n .p-datatable[").concat(this.state.attributeSelector, "] .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n}\n");
|
|
25222
25246
|
this.responsiveStyleElement.innerHTML = innerHTML;
|
|
25223
25247
|
}
|
|
@@ -25322,11 +25346,7 @@ var DataTable = /*#__PURE__*/function (_Component) {
|
|
|
25322
25346
|
}, {
|
|
25323
25347
|
key: "compareValuesOnSort",
|
|
25324
25348
|
value: function compareValuesOnSort(value1, value2) {
|
|
25325
|
-
|
|
25326
|
-
if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {
|
|
25327
|
-
numeric: true
|
|
25328
|
-
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
25329
|
-
return result;
|
|
25349
|
+
return ObjectUtils.sort(value1, value2, 1, PrimeReact$1.locale);
|
|
25330
25350
|
}
|
|
25331
25351
|
}, {
|
|
25332
25352
|
key: "addSortMeta",
|
|
@@ -25586,7 +25606,7 @@ var DataTable = /*#__PURE__*/function (_Component) {
|
|
|
25586
25606
|
var field = col.props.filterField || col.props.field;
|
|
25587
25607
|
var filterFunction = col.props.filterFunction;
|
|
25588
25608
|
var dataType = col.props.dataType;
|
|
25589
|
-
var matchMode = col.props.filterMatchMode || (PrimeReact.filterMatchModeOptions[dataType] ? PrimeReact.filterMatchModeOptions[dataType][0] : FilterMatchMode.STARTS_WITH);
|
|
25609
|
+
var matchMode = col.props.filterMatchMode || (PrimeReact$1.filterMatchModeOptions[dataType] ? PrimeReact$1.filterMatchModeOptions[dataType][0] : FilterMatchMode.STARTS_WITH);
|
|
25590
25610
|
var constraint = {
|
|
25591
25611
|
value: null,
|
|
25592
25612
|
matchMode: matchMode
|
|
@@ -25663,6 +25683,14 @@ var DataTable = /*#__PURE__*/function (_Component) {
|
|
|
25663
25683
|
this.resetColumnOrder();
|
|
25664
25684
|
this.setState(state);
|
|
25665
25685
|
}
|
|
25686
|
+
}, {
|
|
25687
|
+
key: "resetScroll",
|
|
25688
|
+
value: function resetScroll() {
|
|
25689
|
+
if (this.wrapper) {
|
|
25690
|
+
var scrollableContainer = !this.isVirtualScrollerDisabled() ? DomHandler.findSingle(this.wrapper, '.p-virtualscroller') : this.wrapper;
|
|
25691
|
+
scrollableContainer.scrollTo(0, 0);
|
|
25692
|
+
}
|
|
25693
|
+
}
|
|
25666
25694
|
}, {
|
|
25667
25695
|
key: "resetColumnOrder",
|
|
25668
25696
|
value: function resetColumnOrder() {
|
|
@@ -25804,11 +25832,11 @@ var DataTable = /*#__PURE__*/function (_Component) {
|
|
|
25804
25832
|
attributeSelector: UniqueComponentId()
|
|
25805
25833
|
}, function () {
|
|
25806
25834
|
_this16.el.setAttribute(_this16.state.attributeSelector, '');
|
|
25807
|
-
});
|
|
25808
25835
|
|
|
25809
|
-
|
|
25810
|
-
|
|
25811
|
-
|
|
25836
|
+
if (_this16.props.responsiveLayout === 'stack' && !_this16.props.scrollable) {
|
|
25837
|
+
_this16.createResponsiveStyle();
|
|
25838
|
+
}
|
|
25839
|
+
});
|
|
25812
25840
|
|
|
25813
25841
|
if (this.isStateful()) {
|
|
25814
25842
|
this.setState(this.restoreState(this.state));
|
|
@@ -26093,6 +26121,9 @@ var DataTable = /*#__PURE__*/function (_Component) {
|
|
|
26093
26121
|
var isVirtualScrollerDisabled = this.isVirtualScrollerDisabled();
|
|
26094
26122
|
var virtualScrollerOptions = this.props.virtualScrollerOptions || {};
|
|
26095
26123
|
return /*#__PURE__*/React.createElement("div", {
|
|
26124
|
+
ref: function ref(el) {
|
|
26125
|
+
return _this17.wrapper = el;
|
|
26126
|
+
},
|
|
26096
26127
|
className: "p-datatable-wrapper",
|
|
26097
26128
|
style: {
|
|
26098
26129
|
maxHeight: isVirtualScrollerDisabled ? this.props.scrollHeight : null
|
|
@@ -26607,11 +26638,7 @@ var DataView = /*#__PURE__*/function (_Component3) {
|
|
|
26607
26638
|
value.sort(function (data1, data2) {
|
|
26608
26639
|
var value1 = ObjectUtils.resolveFieldData(data1, _this4.props.sortField);
|
|
26609
26640
|
var value2 = ObjectUtils.resolveFieldData(data2, _this4.props.sortField);
|
|
26610
|
-
|
|
26611
|
-
if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {
|
|
26612
|
-
numeric: true
|
|
26613
|
-
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
26614
|
-
return _this4.props.sortOrder * result;
|
|
26641
|
+
return ObjectUtils.sort(value1, value2, _this4.props.sortOrder, PrimeReact.locale);
|
|
26615
26642
|
});
|
|
26616
26643
|
return value;
|
|
26617
26644
|
} else {
|
|
@@ -29101,7 +29128,7 @@ var GalleriaThumbnails = /*#__PURE__*/function (_Component2) {
|
|
|
29101
29128
|
key: "createStyle",
|
|
29102
29129
|
value: function createStyle() {
|
|
29103
29130
|
if (!this.thumbnailsStyle) {
|
|
29104
|
-
this.thumbnailsStyle = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
29131
|
+
this.thumbnailsStyle = DomHandler.createInlineStyle(PrimeReact$1.nonce);
|
|
29105
29132
|
}
|
|
29106
29133
|
|
|
29107
29134
|
var innerHTML = "\n .p-galleria-thumbnail-items[".concat(this.attributeSelector, "] .p-galleria-thumbnail-item {\n flex: 1 0 ").concat(100 / this.state.numVisible, "%\n }\n ");
|
|
@@ -29111,11 +29138,7 @@ var GalleriaThumbnails = /*#__PURE__*/function (_Component2) {
|
|
|
29111
29138
|
this.responsiveOptions.sort(function (data1, data2) {
|
|
29112
29139
|
var value1 = data1.breakpoint;
|
|
29113
29140
|
var value2 = data2.breakpoint;
|
|
29114
|
-
|
|
29115
|
-
if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {
|
|
29116
|
-
numeric: true
|
|
29117
|
-
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
29118
|
-
return -1 * result;
|
|
29141
|
+
return ObjectUtils.sort(value1, value2, -1, PrimeReact$1.locale);
|
|
29119
29142
|
});
|
|
29120
29143
|
|
|
29121
29144
|
for (var i = 0; i < this.responsiveOptions.length; i++) {
|
|
@@ -29415,7 +29438,7 @@ var Galleria = /*#__PURE__*/function (_Component) {
|
|
|
29415
29438
|
}, {
|
|
29416
29439
|
key: "onEntering",
|
|
29417
29440
|
value: function onEntering() {
|
|
29418
|
-
ZIndexUtils.set('modal', this.mask, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['modal']);
|
|
29441
|
+
ZIndexUtils.set('modal', this.mask, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex['modal']);
|
|
29419
29442
|
DomHandler.addMultipleClasses(this.mask, 'p-component-overlay p-component-overlay-enter');
|
|
29420
29443
|
}
|
|
29421
29444
|
}, {
|
|
@@ -31413,7 +31436,7 @@ _defineProperty(Knob, "defaultProps", {
|
|
|
31413
31436
|
strokeWidth: 14,
|
|
31414
31437
|
name: null,
|
|
31415
31438
|
valueColor: 'var(--primary-color, Black)',
|
|
31416
|
-
rangeColor: 'var(--surface-
|
|
31439
|
+
rangeColor: 'var(--surface-border, LightGray)',
|
|
31417
31440
|
textColor: 'var(--text-color-secondary, Black)',
|
|
31418
31441
|
valueTemplate: '{value}',
|
|
31419
31442
|
onChange: null
|
|
@@ -32736,7 +32759,7 @@ var Menu = /*#__PURE__*/function (_Component) {
|
|
|
32736
32759
|
}, {
|
|
32737
32760
|
key: "onEnter",
|
|
32738
32761
|
value: function onEnter() {
|
|
32739
|
-
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['menu']);
|
|
32762
|
+
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex['menu']);
|
|
32740
32763
|
DomHandler.absolutePosition(this.menuRef.current, this.target);
|
|
32741
32764
|
}
|
|
32742
32765
|
}, {
|
|
@@ -33440,7 +33463,7 @@ var Menubar = /*#__PURE__*/function (_Component) {
|
|
|
33440
33463
|
};
|
|
33441
33464
|
}, function () {
|
|
33442
33465
|
if (_this2.state.mobileActive) {
|
|
33443
|
-
ZIndexUtils.set('menu', _this2.rootmenu, PrimeReact.autoZIndex, PrimeReact.zIndex['menu']);
|
|
33466
|
+
ZIndexUtils.set('menu', _this2.rootmenu, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['menu']);
|
|
33444
33467
|
|
|
33445
33468
|
_this2.bindDocumentClickListener();
|
|
33446
33469
|
} else {
|
|
@@ -34429,7 +34452,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
34429
34452
|
}, {
|
|
34430
34453
|
key: "onOverlayEnter",
|
|
34431
34454
|
value: function onOverlayEnter(callback) {
|
|
34432
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
34455
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
34433
34456
|
this.alignOverlay();
|
|
34434
34457
|
this.scrollInView();
|
|
34435
34458
|
callback && callback();
|
|
@@ -34462,14 +34485,14 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
34462
34485
|
}, {
|
|
34463
34486
|
key: "alignOverlay",
|
|
34464
34487
|
value: function alignOverlay() {
|
|
34465
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.label.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
34488
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.label.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
34466
34489
|
}
|
|
34467
34490
|
}, {
|
|
34468
34491
|
key: "scrollInView",
|
|
34469
34492
|
value: function scrollInView() {
|
|
34470
34493
|
var highlightItem = DomHandler.findSingle(this.overlayRef.current, 'li.p-highlight');
|
|
34471
34494
|
|
|
34472
|
-
if (highlightItem) {
|
|
34495
|
+
if (highlightItem && highlightItem.scrollIntoView) {
|
|
34473
34496
|
highlightItem.scrollIntoView({
|
|
34474
34497
|
block: 'nearest',
|
|
34475
34498
|
inline: 'start'
|
|
@@ -36517,7 +36540,7 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
|
|
|
36517
36540
|
}, {
|
|
36518
36541
|
key: "onEnter",
|
|
36519
36542
|
value: function onEnter() {
|
|
36520
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
36543
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
36521
36544
|
this.overlayRef.current.setAttribute(this.attributeSelector, '');
|
|
36522
36545
|
this.align();
|
|
36523
36546
|
}
|
|
@@ -36566,7 +36589,7 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
|
|
|
36566
36589
|
key: "createStyle",
|
|
36567
36590
|
value: function createStyle() {
|
|
36568
36591
|
if (!this.styleElement) {
|
|
36569
|
-
this.styleElement = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
36592
|
+
this.styleElement = DomHandler.createInlineStyle(PrimeReact$1.nonce);
|
|
36570
36593
|
var innerHTML = '';
|
|
36571
36594
|
|
|
36572
36595
|
for (var breakpoint in this.props.breakpoints) {
|
|
@@ -37479,13 +37502,13 @@ var Password = /*#__PURE__*/function (_Component) {
|
|
|
37479
37502
|
key: "alignOverlay",
|
|
37480
37503
|
value: function alignOverlay() {
|
|
37481
37504
|
if (this.inputRef && this.inputRef.current) {
|
|
37482
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
37505
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
37483
37506
|
}
|
|
37484
37507
|
}
|
|
37485
37508
|
}, {
|
|
37486
37509
|
key: "onOverlayEnter",
|
|
37487
37510
|
value: function onOverlayEnter() {
|
|
37488
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
37511
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
37489
37512
|
this.alignOverlay();
|
|
37490
37513
|
}
|
|
37491
37514
|
}, {
|
|
@@ -39492,7 +39515,7 @@ var ScrollTop = /*#__PURE__*/function (_Component) {
|
|
|
39492
39515
|
}, {
|
|
39493
39516
|
key: "onEnter",
|
|
39494
39517
|
value: function onEnter() {
|
|
39495
|
-
ZIndexUtils.set('overlay', this.scrollElementRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
39518
|
+
ZIndexUtils.set('overlay', this.scrollElementRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
39496
39519
|
}
|
|
39497
39520
|
}, {
|
|
39498
39521
|
key: "onEntered",
|
|
@@ -40029,7 +40052,7 @@ var Sidebar = /*#__PURE__*/function (_Component) {
|
|
|
40029
40052
|
|
|
40030
40053
|
this.documentEscapeListener = function (event) {
|
|
40031
40054
|
if (event.which === 27) {
|
|
40032
|
-
if (ZIndexUtils.get(_this3.mask) === ZIndexUtils.getCurrent('modal', PrimeReact.autoZIndex)) {
|
|
40055
|
+
if (ZIndexUtils.get(_this3.mask) === ZIndexUtils.getCurrent('modal', PrimeReact$1.autoZIndex)) {
|
|
40033
40056
|
_this3.onClose(event);
|
|
40034
40057
|
}
|
|
40035
40058
|
}
|
|
@@ -40055,7 +40078,7 @@ var Sidebar = /*#__PURE__*/function (_Component) {
|
|
|
40055
40078
|
maskVisible: true,
|
|
40056
40079
|
visible: true
|
|
40057
40080
|
}, function () {
|
|
40058
|
-
ZIndexUtils.set('modal', _this4.mask, PrimeReact.autoZIndex, _this4.props.baseZIndex || PrimeReact.zIndex['modal']);
|
|
40081
|
+
ZIndexUtils.set('modal', _this4.mask, PrimeReact$1.autoZIndex, _this4.props.baseZIndex || PrimeReact$1.zIndex['modal']);
|
|
40059
40082
|
});
|
|
40060
40083
|
}
|
|
40061
40084
|
}
|
|
@@ -40068,7 +40091,7 @@ var Sidebar = /*#__PURE__*/function (_Component) {
|
|
|
40068
40091
|
this.setState({
|
|
40069
40092
|
maskVisible: true
|
|
40070
40093
|
}, function () {
|
|
40071
|
-
ZIndexUtils.set('modal', _this5.mask, PrimeReact.autoZIndex, _this5.props.baseZIndex || PrimeReact.zIndex['modal']);
|
|
40094
|
+
ZIndexUtils.set('modal', _this5.mask, PrimeReact$1.autoZIndex, _this5.props.baseZIndex || PrimeReact$1.zIndex['modal']);
|
|
40072
40095
|
});
|
|
40073
40096
|
}
|
|
40074
40097
|
|
|
@@ -40545,7 +40568,7 @@ var SlideMenu = /*#__PURE__*/function (_Component2) {
|
|
|
40545
40568
|
key: "onEnter",
|
|
40546
40569
|
value: function onEnter() {
|
|
40547
40570
|
if (this.props.autoZIndex) {
|
|
40548
|
-
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['menu']);
|
|
40571
|
+
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex['menu']);
|
|
40549
40572
|
}
|
|
40550
40573
|
|
|
40551
40574
|
DomHandler.absolutePosition(this.menuRef.current, this.target);
|
|
@@ -41363,7 +41386,7 @@ var SplitButton = /*#__PURE__*/function (_Component) {
|
|
|
41363
41386
|
}, {
|
|
41364
41387
|
key: "onOverlayEnter",
|
|
41365
41388
|
value: function onOverlayEnter() {
|
|
41366
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
41389
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
41367
41390
|
this.alignOverlay();
|
|
41368
41391
|
}
|
|
41369
41392
|
}, {
|
|
@@ -41390,7 +41413,7 @@ var SplitButton = /*#__PURE__*/function (_Component) {
|
|
|
41390
41413
|
}, {
|
|
41391
41414
|
key: "alignOverlay",
|
|
41392
41415
|
value: function alignOverlay() {
|
|
41393
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.defaultButton.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
41416
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.defaultButton.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
41394
41417
|
}
|
|
41395
41418
|
}, {
|
|
41396
41419
|
key: "bindDocumentClickListener",
|
|
@@ -42213,7 +42236,7 @@ var TabMenu = /*#__PURE__*/function (_Component) {
|
|
|
42213
42236
|
if (item.template) {
|
|
42214
42237
|
var defaultContentOptions = {
|
|
42215
42238
|
onClick: function onClick(event) {
|
|
42216
|
-
return _this2.itemClick(event, item);
|
|
42239
|
+
return _this2.itemClick(event, item, index);
|
|
42217
42240
|
},
|
|
42218
42241
|
className: 'p-menuitem-link',
|
|
42219
42242
|
labelClassName: 'p-menuitem-text',
|
|
@@ -42459,7 +42482,7 @@ var TabView = /*#__PURE__*/function (_Component2) {
|
|
|
42459
42482
|
value: function updateScrollBar(index) {
|
|
42460
42483
|
var tabHeader = this["tab_".concat(index)];
|
|
42461
42484
|
|
|
42462
|
-
if (tabHeader) {
|
|
42485
|
+
if (tabHeader && tabHeader.scrollIntoView) {
|
|
42463
42486
|
tabHeader.scrollIntoView({
|
|
42464
42487
|
block: 'nearest'
|
|
42465
42488
|
});
|
|
@@ -43259,7 +43282,7 @@ var TieredMenu = /*#__PURE__*/function (_Component) {
|
|
|
43259
43282
|
key: "onEnter",
|
|
43260
43283
|
value: function onEnter() {
|
|
43261
43284
|
if (this.props.autoZIndex) {
|
|
43262
|
-
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['menu']);
|
|
43285
|
+
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex['menu']);
|
|
43263
43286
|
}
|
|
43264
43287
|
|
|
43265
43288
|
DomHandler.absolutePosition(this.menuRef.current, this.target);
|
|
@@ -43702,7 +43725,7 @@ var Toast = /*#__PURE__*/function (_Component) {
|
|
|
43702
43725
|
newMessages = this.state.messages ? [].concat(_toConsumableArray(this.state.messages), [value]) : [value];
|
|
43703
43726
|
}
|
|
43704
43727
|
|
|
43705
|
-
this.state.messages.length === 0 && ZIndexUtils.set('toast', this.container, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['toast']);
|
|
43728
|
+
this.state.messages.length === 0 && ZIndexUtils.set('toast', this.container, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex['toast']);
|
|
43706
43729
|
this.setState({
|
|
43707
43730
|
messages: newMessages
|
|
43708
43731
|
});
|
|
@@ -44516,10 +44539,11 @@ var UITreeNode = /*#__PURE__*/function (_Component) {
|
|
|
44516
44539
|
DomHandler.removeClass(event.target, 'p-treenode-droppoint-active');
|
|
44517
44540
|
|
|
44518
44541
|
if (this.props.onDropPoint) {
|
|
44542
|
+
var dropIndex = position === -1 ? this.props.index : this.props.index + 1;
|
|
44519
44543
|
this.props.onDropPoint({
|
|
44520
44544
|
originalEvent: event,
|
|
44521
44545
|
path: this.props.path,
|
|
44522
|
-
index:
|
|
44546
|
+
index: dropIndex,
|
|
44523
44547
|
position: position
|
|
44524
44548
|
});
|
|
44525
44549
|
}
|
|
@@ -45790,7 +45814,7 @@ var TreeSelect = /*#__PURE__*/function (_Component) {
|
|
|
45790
45814
|
}, {
|
|
45791
45815
|
key: "onOverlayEnter",
|
|
45792
45816
|
value: function onOverlayEnter() {
|
|
45793
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
45817
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
45794
45818
|
this.alignOverlay();
|
|
45795
45819
|
this.scrollInView();
|
|
45796
45820
|
}
|
|
@@ -45827,14 +45851,14 @@ var TreeSelect = /*#__PURE__*/function (_Component) {
|
|
|
45827
45851
|
}, {
|
|
45828
45852
|
key: "alignOverlay",
|
|
45829
45853
|
value: function alignOverlay() {
|
|
45830
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.trigger.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
45854
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.trigger.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
45831
45855
|
}
|
|
45832
45856
|
}, {
|
|
45833
45857
|
key: "scrollInView",
|
|
45834
45858
|
value: function scrollInView() {
|
|
45835
45859
|
var highlightItem = DomHandler.findSingle(this.overlayRef.current, '.p-treenode-content.p-highlight');
|
|
45836
45860
|
|
|
45837
|
-
if (highlightItem) {
|
|
45861
|
+
if (highlightItem && highlightItem.scrollIntoView) {
|
|
45838
45862
|
highlightItem.scrollIntoView({
|
|
45839
45863
|
block: 'nearest',
|
|
45840
45864
|
inline: 'start'
|
|
@@ -46228,7 +46252,7 @@ var TreeSelect = /*#__PURE__*/function (_Component) {
|
|
|
46228
46252
|
className: "p-treeselect-header"
|
|
46229
46253
|
}, filterElement, closeElement);
|
|
46230
46254
|
|
|
46231
|
-
if (this.props.
|
|
46255
|
+
if (this.props.panelHeaderTemplate) {
|
|
46232
46256
|
var defaultOptions = {
|
|
46233
46257
|
className: 'p-treeselect-header',
|
|
46234
46258
|
filterElement: filterElement,
|
|
@@ -46239,7 +46263,7 @@ var TreeSelect = /*#__PURE__*/function (_Component) {
|
|
|
46239
46263
|
element: content,
|
|
46240
46264
|
props: this.props
|
|
46241
46265
|
};
|
|
46242
|
-
return ObjectUtils.getJSXElement(this.props.
|
|
46266
|
+
return ObjectUtils.getJSXElement(this.props.panelHeaderTemplate, defaultOptions);
|
|
46243
46267
|
}
|
|
46244
46268
|
|
|
46245
46269
|
return content;
|
|
@@ -48256,11 +48280,7 @@ var TreeTable = /*#__PURE__*/function (_Component) {
|
|
|
48256
48280
|
|
|
48257
48281
|
var value1 = ObjectUtils.resolveFieldData(node1.data, sortField);
|
|
48258
48282
|
var value2 = ObjectUtils.resolveFieldData(node2.data, sortField);
|
|
48259
|
-
|
|
48260
|
-
if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {
|
|
48261
|
-
numeric: true
|
|
48262
|
-
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
48263
|
-
return _this2.getSortOrder() * result;
|
|
48283
|
+
return ObjectUtils.sort(value1, value2, _this2.getSortOrder(), PrimeReact$1.locale);
|
|
48264
48284
|
});
|
|
48265
48285
|
|
|
48266
48286
|
for (var i = 0; i < value.length; i++) {
|
|
@@ -48307,7 +48327,7 @@ var TreeTable = /*#__PURE__*/function (_Component) {
|
|
|
48307
48327
|
if (value1 === value2) {
|
|
48308
48328
|
return multiSortMeta.length - 1 > index ? this.multisortField(node1, node2, multiSortMeta, index + 1) : 0;
|
|
48309
48329
|
} else {
|
|
48310
|
-
if ((typeof value1 === 'string' || value1 instanceof String) && (typeof value2 === 'string' || value2 instanceof String)) return multiSortMeta[index].order * value1.localeCompare(value2,
|
|
48330
|
+
if ((typeof value1 === 'string' || value1 instanceof String) && (typeof value2 === 'string' || value2 instanceof String)) return multiSortMeta[index].order * value1.localeCompare(value2, PrimeReact$1.locale, {
|
|
48311
48331
|
numeric: true
|
|
48312
48332
|
});else result = value1 < value2 ? -1 : 1;
|
|
48313
48333
|
}
|
|
@@ -49973,7 +49993,7 @@ var BlockUI = /*#__PURE__*/function (_Component) {
|
|
|
49973
49993
|
|
|
49974
49994
|
if (this.props.autoZIndex) {
|
|
49975
49995
|
var key = this.props.fullScreen ? 'modal' : 'overlay';
|
|
49976
|
-
ZIndexUtils.set(key, this.mask, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex[key]);
|
|
49996
|
+
ZIndexUtils.set(key, this.mask, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex[key]);
|
|
49977
49997
|
}
|
|
49978
49998
|
|
|
49979
49999
|
this.props.onBlocked && this.props.onBlocked();
|
|
@@ -50524,7 +50544,7 @@ var Mention = /*#__PURE__*/function (_Component) {
|
|
|
50524
50544
|
}, {
|
|
50525
50545
|
key: "onOverlayEnter",
|
|
50526
50546
|
value: function onOverlayEnter() {
|
|
50527
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
50547
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
50528
50548
|
this.alignOverlay();
|
|
50529
50549
|
}
|
|
50530
50550
|
}, {
|
|
@@ -51241,7 +51261,7 @@ var Image = /*#__PURE__*/function (_Component) {
|
|
|
51241
51261
|
}, {
|
|
51242
51262
|
key: "onEntering",
|
|
51243
51263
|
value: function onEntering() {
|
|
51244
|
-
ZIndexUtils.set('modal', this.mask, PrimeReact.autoZIndex, PrimeReact.zIndex['modal']);
|
|
51264
|
+
ZIndexUtils.set('modal', this.mask, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['modal']);
|
|
51245
51265
|
}
|
|
51246
51266
|
}, {
|
|
51247
51267
|
key: "onEntered",
|
|
@@ -51415,4 +51435,4 @@ _defineProperty(Image, "defaultProps", {
|
|
|
51415
51435
|
height: null
|
|
51416
51436
|
});
|
|
51417
51437
|
|
|
51418
|
-
export { Accordion, AccordionTab, AutoComplete, Avatar, AvatarGroup, Badge, BlockUI, BreadCrumb, Button, ButtonComponent, CSSTransition, Calendar, Captcha, Card, Carousel, CascadeSelect, Chart, Checkbox, Chip, Chips, ColorPicker, Column, ColumnGroup, ConfirmDialog, ConfirmPopup, ConnectedOverlayScrollHandler, ContextMenu, DataScroller, DataTable, DataView, DataViewLayoutOptions, DeferredContent, Dialog, Divider, Dock, DomHandler, Dropdown, Editor, EventBus, Fieldset, FileUpload, FilterMatchMode, FilterOperator, FilterService, FullCalendar, GMap, Galleria, IconUtils, Image, Inplace, InplaceContent, InplaceDisplay, InputMask, InputNumber, InputSwitch, InputText, InputTextarea, KeyFilter, Knob, ListBox, MegaMenu, Mention, Menu, Menubar, Message, MessageSeverity, Messages, MultiSelect, MultiStateCheckbox, ObjectUtils, OrderList, OrganizationChart, OrganizationChartNode, OverlayPanel, OverlayService, Paginator, Panel, PanelMenu, Password, PickList, Portal, PrimeIcons, ProgressBar, ProgressSpinner, RadioButton, Rating, Ripple, Row, ScrollPanel, ScrollTop, SelectButton, Sidebar, Skeleton, SlideMenu, SlideMenuSub, Slider, SpeedDial, SplitButton, Splitter, SplitterPanel, Steps, TabMenu, TabPanel, TabView, Tag, Terminal, TerminalService, TieredMenu, Timeline, Toast, ToggleButton, Toolbar, Tooltip, Tree, TreeSelect, TreeTable, TriStateCheckbox, UniqueComponentId, VirtualScroller, ZIndexUtils, addLocale, classNames, confirmDialog, confirmPopup, PrimeReact as default, locale, localeOption, localeOptions, mask, tip, updateLocaleOption, updateLocaleOptions };
|
|
51438
|
+
export { Accordion, AccordionTab, AutoComplete, Avatar, AvatarGroup, Badge, BlockUI, BreadCrumb, Button, ButtonComponent, CSSTransition, Calendar, Captcha, Card, Carousel, CascadeSelect, Chart, Checkbox, Chip, Chips, ColorPicker, Column, ColumnGroup, ConfirmDialog, ConfirmPopup, ConnectedOverlayScrollHandler, ContextMenu, DataScroller, DataTable, DataView, DataViewLayoutOptions, DeferredContent, Dialog, Divider, Dock, DomHandler, Dropdown, Editor, EventBus, Fieldset, FileUpload, FilterMatchMode, FilterOperator, FilterService, FullCalendar, GMap, Galleria, IconUtils, Image, Inplace, InplaceContent, InplaceDisplay, InputMask, InputNumber, InputSwitch, InputText, InputTextarea, KeyFilter, Knob, ListBox, MegaMenu, Mention, Menu, Menubar, Message, MessageSeverity, Messages, MultiSelect, MultiStateCheckbox, ObjectUtils, OrderList, OrganizationChart, OrganizationChartNode, OverlayPanel, OverlayService, Paginator, Panel, PanelMenu, Password, PickList, Portal, PrimeIcons, ProgressBar, ProgressSpinner, RadioButton, Rating, Ripple, Row, ScrollPanel, ScrollTop, SelectButton, Sidebar, Skeleton, SlideMenu, SlideMenuSub, Slider, SpeedDial, SplitButton, Splitter, SplitterPanel, Steps, TabMenu, TabPanel, TabView, Tag, Terminal, TerminalService, TieredMenu, Timeline, Toast, ToggleButton, Toolbar, Tooltip, Tree, TreeSelect, TreeTable, TriStateCheckbox, UniqueComponentId, VirtualScroller, ZIndexUtils, addLocale, classNames, confirmDialog, confirmPopup, PrimeReact$1 as default, locale, localeOption, localeOptions, mask, tip, updateLocaleOption, updateLocaleOptions };
|