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.cjs.js
CHANGED
|
@@ -280,6 +280,11 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
280
280
|
|
|
281
281
|
return 0;
|
|
282
282
|
}
|
|
283
|
+
}, {
|
|
284
|
+
key: "getBrowserLanguage",
|
|
285
|
+
value: function getBrowserLanguage() {
|
|
286
|
+
return navigator.userLanguage || navigator.languages && navigator.languages.length && navigator.languages[0] || navigator.language || navigator.browserLanguage || navigator.systemLanguage || 'en';
|
|
287
|
+
}
|
|
283
288
|
}, {
|
|
284
289
|
key: "getWindowScrollTop",
|
|
285
290
|
value: function getWindowScrollTop() {
|
|
@@ -1975,6 +1980,27 @@ var ObjectUtils = /*#__PURE__*/function () {
|
|
|
1975
1980
|
value: function isNotEmpty(value) {
|
|
1976
1981
|
return !this.isEmpty(value);
|
|
1977
1982
|
}
|
|
1983
|
+
/**
|
|
1984
|
+
* Compare value1 and value2 ascending by default (1) or pass in order as -1 for descending.
|
|
1985
|
+
*
|
|
1986
|
+
* @param {any} value1 the first value
|
|
1987
|
+
* @param {any} value2 the second value
|
|
1988
|
+
* @param {number | undefined} order by default ascending (1) set to descending (-1)
|
|
1989
|
+
* @param {string | undefined} locale the locale to use (default to browser locale if null)
|
|
1990
|
+
* @returns either 0, 1 or -1 for comparing the two values
|
|
1991
|
+
*/
|
|
1992
|
+
|
|
1993
|
+
}, {
|
|
1994
|
+
key: "sort",
|
|
1995
|
+
value: function sort(value1, value2) {
|
|
1996
|
+
var order = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
1997
|
+
var locale = arguments.length > 3 ? arguments[3] : undefined;
|
|
1998
|
+
var result = null;
|
|
1999
|
+
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, {
|
|
2000
|
+
numeric: true
|
|
2001
|
+
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
2002
|
+
return order * result;
|
|
2003
|
+
}
|
|
1978
2004
|
}]);
|
|
1979
2005
|
|
|
1980
2006
|
return ObjectUtils;
|
|
@@ -2123,25 +2149,25 @@ var FilterMatchMode = Object.freeze({
|
|
|
2123
2149
|
CUSTOM: 'custom'
|
|
2124
2150
|
});
|
|
2125
2151
|
|
|
2126
|
-
var PrimeReact = /*#__PURE__*/_createClass(function PrimeReact() {
|
|
2152
|
+
var PrimeReact$1 = /*#__PURE__*/_createClass(function PrimeReact() {
|
|
2127
2153
|
_classCallCheck(this, PrimeReact);
|
|
2128
2154
|
});
|
|
2129
2155
|
|
|
2130
|
-
_defineProperty(PrimeReact, "ripple", false);
|
|
2156
|
+
_defineProperty(PrimeReact$1, "ripple", false);
|
|
2131
2157
|
|
|
2132
|
-
_defineProperty(PrimeReact, "inputStyle", 'outlined');
|
|
2158
|
+
_defineProperty(PrimeReact$1, "inputStyle", 'outlined');
|
|
2133
2159
|
|
|
2134
|
-
_defineProperty(PrimeReact, "locale", 'en');
|
|
2160
|
+
_defineProperty(PrimeReact$1, "locale", 'en');
|
|
2135
2161
|
|
|
2136
|
-
_defineProperty(PrimeReact, "appendTo", null);
|
|
2162
|
+
_defineProperty(PrimeReact$1, "appendTo", null);
|
|
2137
2163
|
|
|
2138
|
-
_defineProperty(PrimeReact, "cssTransition", true);
|
|
2164
|
+
_defineProperty(PrimeReact$1, "cssTransition", true);
|
|
2139
2165
|
|
|
2140
|
-
_defineProperty(PrimeReact, "autoZIndex", true);
|
|
2166
|
+
_defineProperty(PrimeReact$1, "autoZIndex", true);
|
|
2141
2167
|
|
|
2142
|
-
_defineProperty(PrimeReact, "nonce", null);
|
|
2168
|
+
_defineProperty(PrimeReact$1, "nonce", null);
|
|
2143
2169
|
|
|
2144
|
-
_defineProperty(PrimeReact, "zIndex", {
|
|
2170
|
+
_defineProperty(PrimeReact$1, "zIndex", {
|
|
2145
2171
|
modal: 1100,
|
|
2146
2172
|
overlay: 1000,
|
|
2147
2173
|
menu: 1000,
|
|
@@ -2149,7 +2175,7 @@ _defineProperty(PrimeReact, "zIndex", {
|
|
|
2149
2175
|
toast: 1200
|
|
2150
2176
|
});
|
|
2151
2177
|
|
|
2152
|
-
_defineProperty(PrimeReact, "filterMatchModeOptions", {
|
|
2178
|
+
_defineProperty(PrimeReact$1, "filterMatchModeOptions", {
|
|
2153
2179
|
text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],
|
|
2154
2180
|
numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],
|
|
2155
2181
|
date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]
|
|
@@ -2206,10 +2232,10 @@ var locales = {
|
|
|
2206
2232
|
};
|
|
2207
2233
|
|
|
2208
2234
|
function locale(locale) {
|
|
2209
|
-
locale && (PrimeReact.locale = locale);
|
|
2235
|
+
locale && (PrimeReact$1.locale = locale);
|
|
2210
2236
|
return {
|
|
2211
|
-
locale: PrimeReact.locale,
|
|
2212
|
-
options: locales[PrimeReact.locale]
|
|
2237
|
+
locale: PrimeReact$1.locale,
|
|
2238
|
+
options: locales[PrimeReact$1.locale]
|
|
2213
2239
|
};
|
|
2214
2240
|
}
|
|
2215
2241
|
|
|
@@ -2222,13 +2248,13 @@ function updateLocaleOption(key, value, locale) {
|
|
|
2222
2248
|
}
|
|
2223
2249
|
|
|
2224
2250
|
function updateLocaleOptions(options, locale) {
|
|
2225
|
-
var _locale = locale || PrimeReact.locale;
|
|
2251
|
+
var _locale = locale || PrimeReact$1.locale;
|
|
2226
2252
|
|
|
2227
2253
|
locales[_locale] = _objectSpread$T(_objectSpread$T({}, locales[_locale]), options);
|
|
2228
2254
|
}
|
|
2229
2255
|
|
|
2230
2256
|
function localeOption(key, locale) {
|
|
2231
|
-
var _locale = locale || PrimeReact.locale;
|
|
2257
|
+
var _locale = locale || PrimeReact$1.locale;
|
|
2232
2258
|
|
|
2233
2259
|
try {
|
|
2234
2260
|
return localeOptions(_locale)[key];
|
|
@@ -2238,7 +2264,7 @@ function localeOption(key, locale) {
|
|
|
2238
2264
|
}
|
|
2239
2265
|
|
|
2240
2266
|
function localeOptions(locale) {
|
|
2241
|
-
var _locale = locale || PrimeReact.locale;
|
|
2267
|
+
var _locale = locale || PrimeReact$1.locale;
|
|
2242
2268
|
|
|
2243
2269
|
return locales[_locale];
|
|
2244
2270
|
}
|
|
@@ -2762,7 +2788,7 @@ var CSSTransition = /*#__PURE__*/function (_Component) {
|
|
|
2762
2788
|
_createClass(CSSTransition, [{
|
|
2763
2789
|
key: "disabled",
|
|
2764
2790
|
get: function get() {
|
|
2765
|
-
return this.props.disabled || this.props.options && this.props.options.disabled || !PrimeReact.cssTransition;
|
|
2791
|
+
return this.props.disabled || this.props.options && this.props.options.disabled || !PrimeReact$1.cssTransition;
|
|
2766
2792
|
}
|
|
2767
2793
|
}, {
|
|
2768
2794
|
key: "onEnter",
|
|
@@ -3265,7 +3291,7 @@ var Portal = /*#__PURE__*/function (_Component) {
|
|
|
3265
3291
|
var element = this.props.element || this.props.children;
|
|
3266
3292
|
|
|
3267
3293
|
if (element && this.state.mounted) {
|
|
3268
|
-
var appendTo = this.props.appendTo || PrimeReact.appendTo || document.body;
|
|
3294
|
+
var appendTo = this.props.appendTo || PrimeReact$1.appendTo || document.body;
|
|
3269
3295
|
return appendTo === 'self' ? element : /*#__PURE__*/ReactDOM__default["default"].createPortal(element, appendTo);
|
|
3270
3296
|
}
|
|
3271
3297
|
|
|
@@ -3455,7 +3481,7 @@ var Tooltip = /*#__PURE__*/function (_Component) {
|
|
|
3455
3481
|
var updateTooltipState = function updateTooltipState() {
|
|
3456
3482
|
_this2.updateText(_this2.currentTarget, function () {
|
|
3457
3483
|
if (_this2.props.autoZIndex && !ZIndexUtils.get(_this2.containerEl)) {
|
|
3458
|
-
ZIndexUtils.set('tooltip', _this2.containerEl, PrimeReact.autoZIndex, _this2.props.baseZIndex || PrimeReact.zIndex['tooltip']);
|
|
3484
|
+
ZIndexUtils.set('tooltip', _this2.containerEl, PrimeReact$1.autoZIndex, _this2.props.baseZIndex || PrimeReact$1.zIndex['tooltip']);
|
|
3459
3485
|
}
|
|
3460
3486
|
|
|
3461
3487
|
_this2.containerEl.style.left = '';
|
|
@@ -4163,7 +4189,7 @@ var Ripple = /*#__PURE__*/function (_Component) {
|
|
|
4163
4189
|
value: function render() {
|
|
4164
4190
|
var _this2 = this;
|
|
4165
4191
|
|
|
4166
|
-
return PrimeReact.ripple ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4192
|
+
return PrimeReact$1.ripple ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4167
4193
|
ref: function ref(el) {
|
|
4168
4194
|
return _this2.ink = el;
|
|
4169
4195
|
},
|
|
@@ -5600,7 +5626,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
|
5600
5626
|
}, {
|
|
5601
5627
|
key: "onOverlayEnter",
|
|
5602
5628
|
value: function onOverlayEnter() {
|
|
5603
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
5629
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
5604
5630
|
this.alignOverlay();
|
|
5605
5631
|
}
|
|
5606
5632
|
}, {
|
|
@@ -5635,7 +5661,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
|
5635
5661
|
key: "alignOverlay",
|
|
5636
5662
|
value: function alignOverlay() {
|
|
5637
5663
|
var target = this.props.multiple ? this.multiContainer : this.inputRef.current;
|
|
5638
|
-
DomHandler.alignOverlay(this.overlayRef.current, target, this.props.appendTo || PrimeReact.appendTo);
|
|
5664
|
+
DomHandler.alignOverlay(this.overlayRef.current, target, this.props.appendTo || PrimeReact$1.appendTo);
|
|
5639
5665
|
}
|
|
5640
5666
|
}, {
|
|
5641
5667
|
key: "onPanelClick",
|
|
@@ -7303,7 +7329,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
7303
7329
|
value: function onClearButtonClick(event) {
|
|
7304
7330
|
this.updateModel(event, null);
|
|
7305
7331
|
this.updateInputfield(null);
|
|
7306
|
-
this.hideOverlay(
|
|
7332
|
+
this.hideOverlay();
|
|
7307
7333
|
|
|
7308
7334
|
if (this.props.onClearButtonClick) {
|
|
7309
7335
|
this.props.onClearButtonClick(event);
|
|
@@ -8287,7 +8313,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
8287
8313
|
value: function onOverlayEnter() {
|
|
8288
8314
|
if (this.props.autoZIndex) {
|
|
8289
8315
|
var key = this.props.touchUI ? 'modal' : 'overlay';
|
|
8290
|
-
ZIndexUtils.set(key, this.overlayRef.current, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex[key]);
|
|
8316
|
+
ZIndexUtils.set(key, this.overlayRef.current, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex[key]);
|
|
8291
8317
|
}
|
|
8292
8318
|
|
|
8293
8319
|
this.alignOverlay();
|
|
@@ -8399,7 +8425,7 @@ var Calendar = /*#__PURE__*/function (_Component) {
|
|
|
8399
8425
|
if (this.props.touchUI) {
|
|
8400
8426
|
this.enableModality();
|
|
8401
8427
|
} else {
|
|
8402
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
8428
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
8403
8429
|
}
|
|
8404
8430
|
}
|
|
8405
8431
|
}, {
|
|
@@ -10738,7 +10764,7 @@ var Carousel = /*#__PURE__*/function (_Component2) {
|
|
|
10738
10764
|
key: "createStyle",
|
|
10739
10765
|
value: function createStyle() {
|
|
10740
10766
|
if (!this.carouselStyle) {
|
|
10741
|
-
this.carouselStyle = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
10767
|
+
this.carouselStyle = DomHandler.createInlineStyle(PrimeReact$1.nonce);
|
|
10742
10768
|
}
|
|
10743
10769
|
|
|
10744
10770
|
var innerHTML = "\n .p-carousel[".concat(this.attributeSelector, "] .p-carousel-item {\n flex: 1 0 ").concat(100 / this.state.numVisible, "%\n }\n ");
|
|
@@ -10748,11 +10774,7 @@ var Carousel = /*#__PURE__*/function (_Component2) {
|
|
|
10748
10774
|
this.responsiveOptions.sort(function (data1, data2) {
|
|
10749
10775
|
var value1 = data1.breakpoint;
|
|
10750
10776
|
var value2 = data2.breakpoint;
|
|
10751
|
-
|
|
10752
|
-
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, {
|
|
10753
|
-
numeric: true
|
|
10754
|
-
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
10755
|
-
return -1 * result;
|
|
10777
|
+
return ObjectUtils.sort(value1, value2, -1, PrimeReact$1.locale);
|
|
10756
10778
|
});
|
|
10757
10779
|
|
|
10758
10780
|
for (var i = 0; i < this.responsiveOptions.length; i++) {
|
|
@@ -11694,7 +11716,7 @@ var CascadeSelect = /*#__PURE__*/function (_Component) {
|
|
|
11694
11716
|
}, {
|
|
11695
11717
|
key: "onOverlayEnter",
|
|
11696
11718
|
value: function onOverlayEnter() {
|
|
11697
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
11719
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
11698
11720
|
this.alignOverlay();
|
|
11699
11721
|
}
|
|
11700
11722
|
}, {
|
|
@@ -11722,7 +11744,7 @@ var CascadeSelect = /*#__PURE__*/function (_Component) {
|
|
|
11722
11744
|
}, {
|
|
11723
11745
|
key: "alignOverlay",
|
|
11724
11746
|
value: function alignOverlay() {
|
|
11725
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.label.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
11747
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.label.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
11726
11748
|
}
|
|
11727
11749
|
}, {
|
|
11728
11750
|
key: "bindOutsideClickListener",
|
|
@@ -13221,7 +13243,7 @@ var ColorPicker = /*#__PURE__*/function (_Component) {
|
|
|
13221
13243
|
}, {
|
|
13222
13244
|
key: "onOverlayEnter",
|
|
13223
13245
|
value: function onOverlayEnter() {
|
|
13224
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
13246
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
13225
13247
|
this.alignOverlay();
|
|
13226
13248
|
}
|
|
13227
13249
|
}, {
|
|
@@ -13634,7 +13656,7 @@ var ColorPicker = /*#__PURE__*/function (_Component) {
|
|
|
13634
13656
|
key: "alignOverlay",
|
|
13635
13657
|
value: function alignOverlay() {
|
|
13636
13658
|
if (this.inputRef && this.inputRef.current) {
|
|
13637
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
13659
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
13638
13660
|
}
|
|
13639
13661
|
}
|
|
13640
13662
|
}, {
|
|
@@ -14327,7 +14349,7 @@ var Dialog = /*#__PURE__*/function (_Component) {
|
|
|
14327
14349
|
key: "createStyle",
|
|
14328
14350
|
value: function createStyle() {
|
|
14329
14351
|
if (!this.styleElement) {
|
|
14330
|
-
this.styleElement = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
14352
|
+
this.styleElement = DomHandler.createInlineStyle(PrimeReact$1.nonce);
|
|
14331
14353
|
var innerHTML = '';
|
|
14332
14354
|
|
|
14333
14355
|
for (var breakpoint in this.props.breakpoints) {
|
|
@@ -14352,7 +14374,7 @@ var Dialog = /*#__PURE__*/function (_Component) {
|
|
|
14352
14374
|
this.setState({
|
|
14353
14375
|
maskVisible: true
|
|
14354
14376
|
}, function () {
|
|
14355
|
-
ZIndexUtils.set('modal', _this5.mask, PrimeReact.autoZIndex, _this5.props.baseZIndex || PrimeReact.zIndex['modal']);
|
|
14377
|
+
ZIndexUtils.set('modal', _this5.mask, PrimeReact$1.autoZIndex, _this5.props.baseZIndex || PrimeReact$1.zIndex['modal']);
|
|
14356
14378
|
|
|
14357
14379
|
_this5.setState({
|
|
14358
14380
|
visible: true
|
|
@@ -14373,7 +14395,7 @@ var Dialog = /*#__PURE__*/function (_Component) {
|
|
|
14373
14395
|
this.setState({
|
|
14374
14396
|
maskVisible: true
|
|
14375
14397
|
}, function () {
|
|
14376
|
-
ZIndexUtils.set('modal', _this6.mask, PrimeReact.autoZIndex, _this6.props.baseZIndex || PrimeReact.zIndex['modal']);
|
|
14398
|
+
ZIndexUtils.set('modal', _this6.mask, PrimeReact$1.autoZIndex, _this6.props.baseZIndex || PrimeReact$1.zIndex['modal']);
|
|
14377
14399
|
});
|
|
14378
14400
|
}
|
|
14379
14401
|
|
|
@@ -15072,7 +15094,7 @@ var ConfirmPopup = /*#__PURE__*/function (_Component) {
|
|
|
15072
15094
|
}, {
|
|
15073
15095
|
key: "onEnter",
|
|
15074
15096
|
value: function onEnter() {
|
|
15075
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
15097
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
15076
15098
|
this.align();
|
|
15077
15099
|
}
|
|
15078
15100
|
}, {
|
|
@@ -15606,7 +15628,7 @@ var ContextMenu = /*#__PURE__*/function (_Component2) {
|
|
|
15606
15628
|
key: "onEnter",
|
|
15607
15629
|
value: function onEnter() {
|
|
15608
15630
|
if (this.props.autoZIndex) {
|
|
15609
|
-
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['menu']);
|
|
15631
|
+
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex['menu']);
|
|
15610
15632
|
}
|
|
15611
15633
|
|
|
15612
15634
|
this.position(this.currentEvent);
|
|
@@ -17340,7 +17362,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
17340
17362
|
}, {
|
|
17341
17363
|
key: "onOverlayEnter",
|
|
17342
17364
|
value: function onOverlayEnter(callback) {
|
|
17343
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
17365
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
17344
17366
|
this.alignOverlay();
|
|
17345
17367
|
callback && callback();
|
|
17346
17368
|
}
|
|
@@ -17373,14 +17395,14 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
17373
17395
|
}, {
|
|
17374
17396
|
key: "alignOverlay",
|
|
17375
17397
|
value: function alignOverlay() {
|
|
17376
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.input.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
17398
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.input.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
17377
17399
|
}
|
|
17378
17400
|
}, {
|
|
17379
17401
|
key: "scrollInView",
|
|
17380
17402
|
value: function scrollInView() {
|
|
17381
17403
|
var highlightItem = DomHandler.findSingle(this.overlayRef.current, 'li.p-highlight');
|
|
17382
17404
|
|
|
17383
|
-
if (highlightItem) {
|
|
17405
|
+
if (highlightItem && highlightItem.scrollIntoView) {
|
|
17384
17406
|
highlightItem.scrollIntoView({
|
|
17385
17407
|
block: 'nearest',
|
|
17386
17408
|
inline: 'start'
|
|
@@ -17800,7 +17822,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
17800
17822
|
});
|
|
17801
17823
|
var visibleOptions = this.getVisibleOptions();
|
|
17802
17824
|
var selectedOption = this.getSelectedOption();
|
|
17803
|
-
var appendTo = this.props.appendTo || PrimeReact.appendTo;
|
|
17825
|
+
var appendTo = this.props.appendTo || PrimeReact$1.appendTo;
|
|
17804
17826
|
var hiddenSelect = this.renderHiddenSelect(selectedOption);
|
|
17805
17827
|
var keyboardHelper = this.renderKeyboardHelper();
|
|
17806
17828
|
var labelElement = this.renderLabel(selectedOption);
|
|
@@ -18518,6 +18540,11 @@ var InputNumber = /*#__PURE__*/function (_Component) {
|
|
|
18518
18540
|
|
|
18519
18541
|
var code = event.which || event.keyCode;
|
|
18520
18542
|
|
|
18543
|
+
if (code !== 13) {
|
|
18544
|
+
// to submit a form
|
|
18545
|
+
event.preventDefault();
|
|
18546
|
+
}
|
|
18547
|
+
|
|
18521
18548
|
var _char = String.fromCharCode(code);
|
|
18522
18549
|
|
|
18523
18550
|
var isDecimalSign = this.isDecimalSign(_char);
|
|
@@ -18528,7 +18555,6 @@ var InputNumber = /*#__PURE__*/function (_Component) {
|
|
|
18528
18555
|
isDecimalSign: isDecimalSign,
|
|
18529
18556
|
isMinusSign: isMinusSign
|
|
18530
18557
|
});
|
|
18531
|
-
event.preventDefault();
|
|
18532
18558
|
}
|
|
18533
18559
|
}
|
|
18534
18560
|
}, {
|
|
@@ -21704,12 +21730,6 @@ var TableBody = /*#__PURE__*/function (_Component) {
|
|
|
21704
21730
|
key: "selectRange",
|
|
21705
21731
|
value: function selectRange(event) {
|
|
21706
21732
|
var rangeStart, rangeEnd;
|
|
21707
|
-
var isLazyAndPaginator = this.props.lazy && this.props.paginator;
|
|
21708
|
-
|
|
21709
|
-
if (isLazyAndPaginator) {
|
|
21710
|
-
this.anchorRowIndex += this.anchorRowFirst;
|
|
21711
|
-
this.rangeRowIndex += this.props.first;
|
|
21712
|
-
}
|
|
21713
21733
|
|
|
21714
21734
|
if (this.rangeRowIndex > this.anchorRowIndex) {
|
|
21715
21735
|
rangeStart = this.anchorRowIndex;
|
|
@@ -21721,7 +21741,7 @@ var TableBody = /*#__PURE__*/function (_Component) {
|
|
|
21721
21741
|
rangeStart = rangeEnd = this.rangeRowIndex;
|
|
21722
21742
|
}
|
|
21723
21743
|
|
|
21724
|
-
if (
|
|
21744
|
+
if (this.props.paginator) {
|
|
21725
21745
|
rangeStart = Math.max(rangeStart - this.props.first, 0);
|
|
21726
21746
|
rangeEnd -= this.props.first;
|
|
21727
21747
|
}
|
|
@@ -22275,6 +22295,10 @@ var TableBody = /*#__PURE__*/function (_Component) {
|
|
|
22275
22295
|
if (!this.props.isVirtualScrollerDisabled && this.getVirtualScrollerOption('vertical') && this.getVirtualScrollerOption('itemSize', prevProps.virtualScrollerOptions) !== this.getVirtualScrollerOption('itemSize')) {
|
|
22276
22296
|
this.updateVirtualScrollerPosition();
|
|
22277
22297
|
}
|
|
22298
|
+
|
|
22299
|
+
if (this.props.paginator && this.isMultipleSelection() && this.props.first !== prevProps.first) {
|
|
22300
|
+
this.anchorRowIndex = null;
|
|
22301
|
+
}
|
|
22278
22302
|
}
|
|
22279
22303
|
}, {
|
|
22280
22304
|
key: "componentWillUnmount",
|
|
@@ -22859,7 +22883,7 @@ var ColumnFilter = /*#__PURE__*/function (_Component) {
|
|
|
22859
22883
|
}, {
|
|
22860
22884
|
key: "matchModes",
|
|
22861
22885
|
value: function matchModes() {
|
|
22862
|
-
return this.getColumnProp('filterMatchModeOptions') || PrimeReact.filterMatchModeOptions[this.findDataType()].map(function (key) {
|
|
22886
|
+
return this.getColumnProp('filterMatchModeOptions') || PrimeReact$1.filterMatchModeOptions[this.findDataType()].map(function (key) {
|
|
22863
22887
|
return {
|
|
22864
22888
|
label: localeOption(key),
|
|
22865
22889
|
value: key
|
|
@@ -22924,16 +22948,16 @@ var ColumnFilter = /*#__PURE__*/function (_Component) {
|
|
|
22924
22948
|
var matchMode = this.getColumnProp('filterMatchMode');
|
|
22925
22949
|
|
|
22926
22950
|
var hasMatchMode = function hasMatchMode(key) {
|
|
22927
|
-
return PrimeReact.filterMatchModeOptions[key].some(function (mode) {
|
|
22951
|
+
return PrimeReact$1.filterMatchModeOptions[key].some(function (mode) {
|
|
22928
22952
|
return mode === matchMode;
|
|
22929
22953
|
});
|
|
22930
22954
|
};
|
|
22931
22955
|
|
|
22932
22956
|
if (matchMode === 'custom' && !hasMatchMode(dataType)) {
|
|
22933
|
-
PrimeReact.filterMatchModeOptions[dataType].push(FilterMatchMode.CUSTOM);
|
|
22957
|
+
PrimeReact$1.filterMatchModeOptions[dataType].push(FilterMatchMode.CUSTOM);
|
|
22934
22958
|
return dataType;
|
|
22935
22959
|
} else if (matchMode) {
|
|
22936
|
-
return Object.keys(PrimeReact.filterMatchModeOptions).find(function (key) {
|
|
22960
|
+
return Object.keys(PrimeReact$1.filterMatchModeOptions).find(function (key) {
|
|
22937
22961
|
return hasMatchMode(key);
|
|
22938
22962
|
}) || dataType;
|
|
22939
22963
|
}
|
|
@@ -23206,8 +23230,8 @@ var ColumnFilter = /*#__PURE__*/function (_Component) {
|
|
|
23206
23230
|
value: function onOverlayEnter() {
|
|
23207
23231
|
var _this2 = this;
|
|
23208
23232
|
|
|
23209
|
-
ZIndexUtils.set('overlay', this.overlay, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
23210
|
-
DomHandler.alignOverlay(this.overlay, this.icon, PrimeReact.appendTo, false);
|
|
23233
|
+
ZIndexUtils.set('overlay', this.overlay, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
23234
|
+
DomHandler.alignOverlay(this.overlay, this.icon, PrimeReact$1.appendTo, false);
|
|
23211
23235
|
this.bindOutsideClickListener();
|
|
23212
23236
|
this.bindScrollListener();
|
|
23213
23237
|
this.bindResizeListener();
|
|
@@ -23381,7 +23405,7 @@ var ColumnFilter = /*#__PURE__*/function (_Component) {
|
|
|
23381
23405
|
key: "componentDidUpdate",
|
|
23382
23406
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
23383
23407
|
if (this.props.display === 'menu' && this.state.overlayVisible) {
|
|
23384
|
-
DomHandler.alignOverlay(this.overlay, this.icon, PrimeReact.appendTo, false);
|
|
23408
|
+
DomHandler.alignOverlay(this.overlay, this.icon, PrimeReact$1.appendTo, false);
|
|
23385
23409
|
}
|
|
23386
23410
|
}
|
|
23387
23411
|
}, {
|
|
@@ -23694,8 +23718,8 @@ var ColumnFilter = /*#__PURE__*/function (_Component) {
|
|
|
23694
23718
|
var style = this.getColumnProp('filterMenuStyle');
|
|
23695
23719
|
var className = classNames('p-column-filter-overlay p-component p-fluid', this.getColumnProp('filterMenuClassName'), {
|
|
23696
23720
|
'p-column-filter-overlay-menu': this.props.display === 'menu',
|
|
23697
|
-
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
23698
|
-
'p-ripple-disabled': PrimeReact.ripple === false
|
|
23721
|
+
'p-input-filled': PrimeReact$1.inputStyle === 'filled',
|
|
23722
|
+
'p-ripple-disabled': PrimeReact$1.ripple === false
|
|
23699
23723
|
});
|
|
23700
23724
|
var filterHeader = ObjectUtils.getJSXElement(this.getColumnProp('filterHeader'), {
|
|
23701
23725
|
field: this.field,
|
|
@@ -25238,13 +25262,13 @@ var DataTable = /*#__PURE__*/function (_Component) {
|
|
|
25238
25262
|
}, {
|
|
25239
25263
|
key: "createStyleElement",
|
|
25240
25264
|
value: function createStyleElement() {
|
|
25241
|
-
this.styleElement = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
25265
|
+
this.styleElement = DomHandler.createInlineStyle(PrimeReact$1.nonce);
|
|
25242
25266
|
}
|
|
25243
25267
|
}, {
|
|
25244
25268
|
key: "createResponsiveStyle",
|
|
25245
25269
|
value: function createResponsiveStyle() {
|
|
25246
25270
|
if (!this.responsiveStyleElement) {
|
|
25247
|
-
this.responsiveStyleElement = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
25271
|
+
this.responsiveStyleElement = DomHandler.createInlineStyle(PrimeReact$1.nonce);
|
|
25248
25272
|
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");
|
|
25249
25273
|
this.responsiveStyleElement.innerHTML = innerHTML;
|
|
25250
25274
|
}
|
|
@@ -25349,11 +25373,7 @@ var DataTable = /*#__PURE__*/function (_Component) {
|
|
|
25349
25373
|
}, {
|
|
25350
25374
|
key: "compareValuesOnSort",
|
|
25351
25375
|
value: function compareValuesOnSort(value1, value2) {
|
|
25352
|
-
|
|
25353
|
-
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, {
|
|
25354
|
-
numeric: true
|
|
25355
|
-
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
25356
|
-
return result;
|
|
25376
|
+
return ObjectUtils.sort(value1, value2, 1, PrimeReact$1.locale);
|
|
25357
25377
|
}
|
|
25358
25378
|
}, {
|
|
25359
25379
|
key: "addSortMeta",
|
|
@@ -25613,7 +25633,7 @@ var DataTable = /*#__PURE__*/function (_Component) {
|
|
|
25613
25633
|
var field = col.props.filterField || col.props.field;
|
|
25614
25634
|
var filterFunction = col.props.filterFunction;
|
|
25615
25635
|
var dataType = col.props.dataType;
|
|
25616
|
-
var matchMode = col.props.filterMatchMode || (PrimeReact.filterMatchModeOptions[dataType] ? PrimeReact.filterMatchModeOptions[dataType][0] : FilterMatchMode.STARTS_WITH);
|
|
25636
|
+
var matchMode = col.props.filterMatchMode || (PrimeReact$1.filterMatchModeOptions[dataType] ? PrimeReact$1.filterMatchModeOptions[dataType][0] : FilterMatchMode.STARTS_WITH);
|
|
25617
25637
|
var constraint = {
|
|
25618
25638
|
value: null,
|
|
25619
25639
|
matchMode: matchMode
|
|
@@ -25690,6 +25710,14 @@ var DataTable = /*#__PURE__*/function (_Component) {
|
|
|
25690
25710
|
this.resetColumnOrder();
|
|
25691
25711
|
this.setState(state);
|
|
25692
25712
|
}
|
|
25713
|
+
}, {
|
|
25714
|
+
key: "resetScroll",
|
|
25715
|
+
value: function resetScroll() {
|
|
25716
|
+
if (this.wrapper) {
|
|
25717
|
+
var scrollableContainer = !this.isVirtualScrollerDisabled() ? DomHandler.findSingle(this.wrapper, '.p-virtualscroller') : this.wrapper;
|
|
25718
|
+
scrollableContainer.scrollTo(0, 0);
|
|
25719
|
+
}
|
|
25720
|
+
}
|
|
25693
25721
|
}, {
|
|
25694
25722
|
key: "resetColumnOrder",
|
|
25695
25723
|
value: function resetColumnOrder() {
|
|
@@ -25831,11 +25859,11 @@ var DataTable = /*#__PURE__*/function (_Component) {
|
|
|
25831
25859
|
attributeSelector: UniqueComponentId()
|
|
25832
25860
|
}, function () {
|
|
25833
25861
|
_this16.el.setAttribute(_this16.state.attributeSelector, '');
|
|
25834
|
-
});
|
|
25835
25862
|
|
|
25836
|
-
|
|
25837
|
-
|
|
25838
|
-
|
|
25863
|
+
if (_this16.props.responsiveLayout === 'stack' && !_this16.props.scrollable) {
|
|
25864
|
+
_this16.createResponsiveStyle();
|
|
25865
|
+
}
|
|
25866
|
+
});
|
|
25839
25867
|
|
|
25840
25868
|
if (this.isStateful()) {
|
|
25841
25869
|
this.setState(this.restoreState(this.state));
|
|
@@ -26120,6 +26148,9 @@ var DataTable = /*#__PURE__*/function (_Component) {
|
|
|
26120
26148
|
var isVirtualScrollerDisabled = this.isVirtualScrollerDisabled();
|
|
26121
26149
|
var virtualScrollerOptions = this.props.virtualScrollerOptions || {};
|
|
26122
26150
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26151
|
+
ref: function ref(el) {
|
|
26152
|
+
return _this17.wrapper = el;
|
|
26153
|
+
},
|
|
26123
26154
|
className: "p-datatable-wrapper",
|
|
26124
26155
|
style: {
|
|
26125
26156
|
maxHeight: isVirtualScrollerDisabled ? this.props.scrollHeight : null
|
|
@@ -26634,11 +26665,7 @@ var DataView = /*#__PURE__*/function (_Component3) {
|
|
|
26634
26665
|
value.sort(function (data1, data2) {
|
|
26635
26666
|
var value1 = ObjectUtils.resolveFieldData(data1, _this4.props.sortField);
|
|
26636
26667
|
var value2 = ObjectUtils.resolveFieldData(data2, _this4.props.sortField);
|
|
26637
|
-
|
|
26638
|
-
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, {
|
|
26639
|
-
numeric: true
|
|
26640
|
-
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
26641
|
-
return _this4.props.sortOrder * result;
|
|
26668
|
+
return ObjectUtils.sort(value1, value2, _this4.props.sortOrder, PrimeReact.locale);
|
|
26642
26669
|
});
|
|
26643
26670
|
return value;
|
|
26644
26671
|
} else {
|
|
@@ -29128,7 +29155,7 @@ var GalleriaThumbnails = /*#__PURE__*/function (_Component2) {
|
|
|
29128
29155
|
key: "createStyle",
|
|
29129
29156
|
value: function createStyle() {
|
|
29130
29157
|
if (!this.thumbnailsStyle) {
|
|
29131
|
-
this.thumbnailsStyle = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
29158
|
+
this.thumbnailsStyle = DomHandler.createInlineStyle(PrimeReact$1.nonce);
|
|
29132
29159
|
}
|
|
29133
29160
|
|
|
29134
29161
|
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 ");
|
|
@@ -29138,11 +29165,7 @@ var GalleriaThumbnails = /*#__PURE__*/function (_Component2) {
|
|
|
29138
29165
|
this.responsiveOptions.sort(function (data1, data2) {
|
|
29139
29166
|
var value1 = data1.breakpoint;
|
|
29140
29167
|
var value2 = data2.breakpoint;
|
|
29141
|
-
|
|
29142
|
-
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, {
|
|
29143
|
-
numeric: true
|
|
29144
|
-
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
29145
|
-
return -1 * result;
|
|
29168
|
+
return ObjectUtils.sort(value1, value2, -1, PrimeReact$1.locale);
|
|
29146
29169
|
});
|
|
29147
29170
|
|
|
29148
29171
|
for (var i = 0; i < this.responsiveOptions.length; i++) {
|
|
@@ -29442,7 +29465,7 @@ var Galleria = /*#__PURE__*/function (_Component) {
|
|
|
29442
29465
|
}, {
|
|
29443
29466
|
key: "onEntering",
|
|
29444
29467
|
value: function onEntering() {
|
|
29445
|
-
ZIndexUtils.set('modal', this.mask, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['modal']);
|
|
29468
|
+
ZIndexUtils.set('modal', this.mask, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex['modal']);
|
|
29446
29469
|
DomHandler.addMultipleClasses(this.mask, 'p-component-overlay p-component-overlay-enter');
|
|
29447
29470
|
}
|
|
29448
29471
|
}, {
|
|
@@ -31440,7 +31463,7 @@ _defineProperty(Knob, "defaultProps", {
|
|
|
31440
31463
|
strokeWidth: 14,
|
|
31441
31464
|
name: null,
|
|
31442
31465
|
valueColor: 'var(--primary-color, Black)',
|
|
31443
|
-
rangeColor: 'var(--surface-
|
|
31466
|
+
rangeColor: 'var(--surface-border, LightGray)',
|
|
31444
31467
|
textColor: 'var(--text-color-secondary, Black)',
|
|
31445
31468
|
valueTemplate: '{value}',
|
|
31446
31469
|
onChange: null
|
|
@@ -32763,7 +32786,7 @@ var Menu = /*#__PURE__*/function (_Component) {
|
|
|
32763
32786
|
}, {
|
|
32764
32787
|
key: "onEnter",
|
|
32765
32788
|
value: function onEnter() {
|
|
32766
|
-
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['menu']);
|
|
32789
|
+
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex['menu']);
|
|
32767
32790
|
DomHandler.absolutePosition(this.menuRef.current, this.target);
|
|
32768
32791
|
}
|
|
32769
32792
|
}, {
|
|
@@ -33467,7 +33490,7 @@ var Menubar = /*#__PURE__*/function (_Component) {
|
|
|
33467
33490
|
};
|
|
33468
33491
|
}, function () {
|
|
33469
33492
|
if (_this2.state.mobileActive) {
|
|
33470
|
-
ZIndexUtils.set('menu', _this2.rootmenu, PrimeReact.autoZIndex, PrimeReact.zIndex['menu']);
|
|
33493
|
+
ZIndexUtils.set('menu', _this2.rootmenu, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['menu']);
|
|
33471
33494
|
|
|
33472
33495
|
_this2.bindDocumentClickListener();
|
|
33473
33496
|
} else {
|
|
@@ -34456,7 +34479,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
34456
34479
|
}, {
|
|
34457
34480
|
key: "onOverlayEnter",
|
|
34458
34481
|
value: function onOverlayEnter(callback) {
|
|
34459
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
34482
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
34460
34483
|
this.alignOverlay();
|
|
34461
34484
|
this.scrollInView();
|
|
34462
34485
|
callback && callback();
|
|
@@ -34489,14 +34512,14 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
34489
34512
|
}, {
|
|
34490
34513
|
key: "alignOverlay",
|
|
34491
34514
|
value: function alignOverlay() {
|
|
34492
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.label.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
34515
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.label.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
34493
34516
|
}
|
|
34494
34517
|
}, {
|
|
34495
34518
|
key: "scrollInView",
|
|
34496
34519
|
value: function scrollInView() {
|
|
34497
34520
|
var highlightItem = DomHandler.findSingle(this.overlayRef.current, 'li.p-highlight');
|
|
34498
34521
|
|
|
34499
|
-
if (highlightItem) {
|
|
34522
|
+
if (highlightItem && highlightItem.scrollIntoView) {
|
|
34500
34523
|
highlightItem.scrollIntoView({
|
|
34501
34524
|
block: 'nearest',
|
|
34502
34525
|
inline: 'start'
|
|
@@ -36544,7 +36567,7 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
|
|
|
36544
36567
|
}, {
|
|
36545
36568
|
key: "onEnter",
|
|
36546
36569
|
value: function onEnter() {
|
|
36547
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
36570
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
36548
36571
|
this.overlayRef.current.setAttribute(this.attributeSelector, '');
|
|
36549
36572
|
this.align();
|
|
36550
36573
|
}
|
|
@@ -36593,7 +36616,7 @@ var OverlayPanel = /*#__PURE__*/function (_Component) {
|
|
|
36593
36616
|
key: "createStyle",
|
|
36594
36617
|
value: function createStyle() {
|
|
36595
36618
|
if (!this.styleElement) {
|
|
36596
|
-
this.styleElement = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
36619
|
+
this.styleElement = DomHandler.createInlineStyle(PrimeReact$1.nonce);
|
|
36597
36620
|
var innerHTML = '';
|
|
36598
36621
|
|
|
36599
36622
|
for (var breakpoint in this.props.breakpoints) {
|
|
@@ -37506,13 +37529,13 @@ var Password = /*#__PURE__*/function (_Component) {
|
|
|
37506
37529
|
key: "alignOverlay",
|
|
37507
37530
|
value: function alignOverlay() {
|
|
37508
37531
|
if (this.inputRef && this.inputRef.current) {
|
|
37509
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
37532
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
37510
37533
|
}
|
|
37511
37534
|
}
|
|
37512
37535
|
}, {
|
|
37513
37536
|
key: "onOverlayEnter",
|
|
37514
37537
|
value: function onOverlayEnter() {
|
|
37515
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
37538
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
37516
37539
|
this.alignOverlay();
|
|
37517
37540
|
}
|
|
37518
37541
|
}, {
|
|
@@ -39519,7 +39542,7 @@ var ScrollTop = /*#__PURE__*/function (_Component) {
|
|
|
39519
39542
|
}, {
|
|
39520
39543
|
key: "onEnter",
|
|
39521
39544
|
value: function onEnter() {
|
|
39522
|
-
ZIndexUtils.set('overlay', this.scrollElementRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
39545
|
+
ZIndexUtils.set('overlay', this.scrollElementRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
39523
39546
|
}
|
|
39524
39547
|
}, {
|
|
39525
39548
|
key: "onEntered",
|
|
@@ -40056,7 +40079,7 @@ var Sidebar = /*#__PURE__*/function (_Component) {
|
|
|
40056
40079
|
|
|
40057
40080
|
this.documentEscapeListener = function (event) {
|
|
40058
40081
|
if (event.which === 27) {
|
|
40059
|
-
if (ZIndexUtils.get(_this3.mask) === ZIndexUtils.getCurrent('modal', PrimeReact.autoZIndex)) {
|
|
40082
|
+
if (ZIndexUtils.get(_this3.mask) === ZIndexUtils.getCurrent('modal', PrimeReact$1.autoZIndex)) {
|
|
40060
40083
|
_this3.onClose(event);
|
|
40061
40084
|
}
|
|
40062
40085
|
}
|
|
@@ -40082,7 +40105,7 @@ var Sidebar = /*#__PURE__*/function (_Component) {
|
|
|
40082
40105
|
maskVisible: true,
|
|
40083
40106
|
visible: true
|
|
40084
40107
|
}, function () {
|
|
40085
|
-
ZIndexUtils.set('modal', _this4.mask, PrimeReact.autoZIndex, _this4.props.baseZIndex || PrimeReact.zIndex['modal']);
|
|
40108
|
+
ZIndexUtils.set('modal', _this4.mask, PrimeReact$1.autoZIndex, _this4.props.baseZIndex || PrimeReact$1.zIndex['modal']);
|
|
40086
40109
|
});
|
|
40087
40110
|
}
|
|
40088
40111
|
}
|
|
@@ -40095,7 +40118,7 @@ var Sidebar = /*#__PURE__*/function (_Component) {
|
|
|
40095
40118
|
this.setState({
|
|
40096
40119
|
maskVisible: true
|
|
40097
40120
|
}, function () {
|
|
40098
|
-
ZIndexUtils.set('modal', _this5.mask, PrimeReact.autoZIndex, _this5.props.baseZIndex || PrimeReact.zIndex['modal']);
|
|
40121
|
+
ZIndexUtils.set('modal', _this5.mask, PrimeReact$1.autoZIndex, _this5.props.baseZIndex || PrimeReact$1.zIndex['modal']);
|
|
40099
40122
|
});
|
|
40100
40123
|
}
|
|
40101
40124
|
|
|
@@ -40572,7 +40595,7 @@ var SlideMenu = /*#__PURE__*/function (_Component2) {
|
|
|
40572
40595
|
key: "onEnter",
|
|
40573
40596
|
value: function onEnter() {
|
|
40574
40597
|
if (this.props.autoZIndex) {
|
|
40575
|
-
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['menu']);
|
|
40598
|
+
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex['menu']);
|
|
40576
40599
|
}
|
|
40577
40600
|
|
|
40578
40601
|
DomHandler.absolutePosition(this.menuRef.current, this.target);
|
|
@@ -41390,7 +41413,7 @@ var SplitButton = /*#__PURE__*/function (_Component) {
|
|
|
41390
41413
|
}, {
|
|
41391
41414
|
key: "onOverlayEnter",
|
|
41392
41415
|
value: function onOverlayEnter() {
|
|
41393
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
41416
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
41394
41417
|
this.alignOverlay();
|
|
41395
41418
|
}
|
|
41396
41419
|
}, {
|
|
@@ -41417,7 +41440,7 @@ var SplitButton = /*#__PURE__*/function (_Component) {
|
|
|
41417
41440
|
}, {
|
|
41418
41441
|
key: "alignOverlay",
|
|
41419
41442
|
value: function alignOverlay() {
|
|
41420
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.defaultButton.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
41443
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.defaultButton.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
41421
41444
|
}
|
|
41422
41445
|
}, {
|
|
41423
41446
|
key: "bindDocumentClickListener",
|
|
@@ -42240,7 +42263,7 @@ var TabMenu = /*#__PURE__*/function (_Component) {
|
|
|
42240
42263
|
if (item.template) {
|
|
42241
42264
|
var defaultContentOptions = {
|
|
42242
42265
|
onClick: function onClick(event) {
|
|
42243
|
-
return _this2.itemClick(event, item);
|
|
42266
|
+
return _this2.itemClick(event, item, index);
|
|
42244
42267
|
},
|
|
42245
42268
|
className: 'p-menuitem-link',
|
|
42246
42269
|
labelClassName: 'p-menuitem-text',
|
|
@@ -42486,7 +42509,7 @@ var TabView = /*#__PURE__*/function (_Component2) {
|
|
|
42486
42509
|
value: function updateScrollBar(index) {
|
|
42487
42510
|
var tabHeader = this["tab_".concat(index)];
|
|
42488
42511
|
|
|
42489
|
-
if (tabHeader) {
|
|
42512
|
+
if (tabHeader && tabHeader.scrollIntoView) {
|
|
42490
42513
|
tabHeader.scrollIntoView({
|
|
42491
42514
|
block: 'nearest'
|
|
42492
42515
|
});
|
|
@@ -43286,7 +43309,7 @@ var TieredMenu = /*#__PURE__*/function (_Component) {
|
|
|
43286
43309
|
key: "onEnter",
|
|
43287
43310
|
value: function onEnter() {
|
|
43288
43311
|
if (this.props.autoZIndex) {
|
|
43289
|
-
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['menu']);
|
|
43312
|
+
ZIndexUtils.set('menu', this.menuRef.current, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex['menu']);
|
|
43290
43313
|
}
|
|
43291
43314
|
|
|
43292
43315
|
DomHandler.absolutePosition(this.menuRef.current, this.target);
|
|
@@ -43729,7 +43752,7 @@ var Toast = /*#__PURE__*/function (_Component) {
|
|
|
43729
43752
|
newMessages = this.state.messages ? [].concat(_toConsumableArray(this.state.messages), [value]) : [value];
|
|
43730
43753
|
}
|
|
43731
43754
|
|
|
43732
|
-
this.state.messages.length === 0 && ZIndexUtils.set('toast', this.container, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex['toast']);
|
|
43755
|
+
this.state.messages.length === 0 && ZIndexUtils.set('toast', this.container, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex['toast']);
|
|
43733
43756
|
this.setState({
|
|
43734
43757
|
messages: newMessages
|
|
43735
43758
|
});
|
|
@@ -44543,10 +44566,11 @@ var UITreeNode = /*#__PURE__*/function (_Component) {
|
|
|
44543
44566
|
DomHandler.removeClass(event.target, 'p-treenode-droppoint-active');
|
|
44544
44567
|
|
|
44545
44568
|
if (this.props.onDropPoint) {
|
|
44569
|
+
var dropIndex = position === -1 ? this.props.index : this.props.index + 1;
|
|
44546
44570
|
this.props.onDropPoint({
|
|
44547
44571
|
originalEvent: event,
|
|
44548
44572
|
path: this.props.path,
|
|
44549
|
-
index:
|
|
44573
|
+
index: dropIndex,
|
|
44550
44574
|
position: position
|
|
44551
44575
|
});
|
|
44552
44576
|
}
|
|
@@ -45817,7 +45841,7 @@ var TreeSelect = /*#__PURE__*/function (_Component) {
|
|
|
45817
45841
|
}, {
|
|
45818
45842
|
key: "onOverlayEnter",
|
|
45819
45843
|
value: function onOverlayEnter() {
|
|
45820
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
45844
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
45821
45845
|
this.alignOverlay();
|
|
45822
45846
|
this.scrollInView();
|
|
45823
45847
|
}
|
|
@@ -45854,14 +45878,14 @@ var TreeSelect = /*#__PURE__*/function (_Component) {
|
|
|
45854
45878
|
}, {
|
|
45855
45879
|
key: "alignOverlay",
|
|
45856
45880
|
value: function alignOverlay() {
|
|
45857
|
-
DomHandler.alignOverlay(this.overlayRef.current, this.trigger.parentElement, this.props.appendTo || PrimeReact.appendTo);
|
|
45881
|
+
DomHandler.alignOverlay(this.overlayRef.current, this.trigger.parentElement, this.props.appendTo || PrimeReact$1.appendTo);
|
|
45858
45882
|
}
|
|
45859
45883
|
}, {
|
|
45860
45884
|
key: "scrollInView",
|
|
45861
45885
|
value: function scrollInView() {
|
|
45862
45886
|
var highlightItem = DomHandler.findSingle(this.overlayRef.current, '.p-treenode-content.p-highlight');
|
|
45863
45887
|
|
|
45864
|
-
if (highlightItem) {
|
|
45888
|
+
if (highlightItem && highlightItem.scrollIntoView) {
|
|
45865
45889
|
highlightItem.scrollIntoView({
|
|
45866
45890
|
block: 'nearest',
|
|
45867
45891
|
inline: 'start'
|
|
@@ -46255,7 +46279,7 @@ var TreeSelect = /*#__PURE__*/function (_Component) {
|
|
|
46255
46279
|
className: "p-treeselect-header"
|
|
46256
46280
|
}, filterElement, closeElement);
|
|
46257
46281
|
|
|
46258
|
-
if (this.props.
|
|
46282
|
+
if (this.props.panelHeaderTemplate) {
|
|
46259
46283
|
var defaultOptions = {
|
|
46260
46284
|
className: 'p-treeselect-header',
|
|
46261
46285
|
filterElement: filterElement,
|
|
@@ -46266,7 +46290,7 @@ var TreeSelect = /*#__PURE__*/function (_Component) {
|
|
|
46266
46290
|
element: content,
|
|
46267
46291
|
props: this.props
|
|
46268
46292
|
};
|
|
46269
|
-
return ObjectUtils.getJSXElement(this.props.
|
|
46293
|
+
return ObjectUtils.getJSXElement(this.props.panelHeaderTemplate, defaultOptions);
|
|
46270
46294
|
}
|
|
46271
46295
|
|
|
46272
46296
|
return content;
|
|
@@ -48283,11 +48307,7 @@ var TreeTable = /*#__PURE__*/function (_Component) {
|
|
|
48283
48307
|
|
|
48284
48308
|
var value1 = ObjectUtils.resolveFieldData(node1.data, sortField);
|
|
48285
48309
|
var value2 = ObjectUtils.resolveFieldData(node2.data, sortField);
|
|
48286
|
-
|
|
48287
|
-
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, {
|
|
48288
|
-
numeric: true
|
|
48289
|
-
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
48290
|
-
return _this2.getSortOrder() * result;
|
|
48310
|
+
return ObjectUtils.sort(value1, value2, _this2.getSortOrder(), PrimeReact$1.locale);
|
|
48291
48311
|
});
|
|
48292
48312
|
|
|
48293
48313
|
for (var i = 0; i < value.length; i++) {
|
|
@@ -48334,7 +48354,7 @@ var TreeTable = /*#__PURE__*/function (_Component) {
|
|
|
48334
48354
|
if (value1 === value2) {
|
|
48335
48355
|
return multiSortMeta.length - 1 > index ? this.multisortField(node1, node2, multiSortMeta, index + 1) : 0;
|
|
48336
48356
|
} else {
|
|
48337
|
-
if ((typeof value1 === 'string' || value1 instanceof String) && (typeof value2 === 'string' || value2 instanceof String)) return multiSortMeta[index].order * value1.localeCompare(value2,
|
|
48357
|
+
if ((typeof value1 === 'string' || value1 instanceof String) && (typeof value2 === 'string' || value2 instanceof String)) return multiSortMeta[index].order * value1.localeCompare(value2, PrimeReact$1.locale, {
|
|
48338
48358
|
numeric: true
|
|
48339
48359
|
});else result = value1 < value2 ? -1 : 1;
|
|
48340
48360
|
}
|
|
@@ -50000,7 +50020,7 @@ var BlockUI = /*#__PURE__*/function (_Component) {
|
|
|
50000
50020
|
|
|
50001
50021
|
if (this.props.autoZIndex) {
|
|
50002
50022
|
var key = this.props.fullScreen ? 'modal' : 'overlay';
|
|
50003
|
-
ZIndexUtils.set(key, this.mask, PrimeReact.autoZIndex, this.props.baseZIndex || PrimeReact.zIndex[key]);
|
|
50023
|
+
ZIndexUtils.set(key, this.mask, PrimeReact$1.autoZIndex, this.props.baseZIndex || PrimeReact$1.zIndex[key]);
|
|
50004
50024
|
}
|
|
50005
50025
|
|
|
50006
50026
|
this.props.onBlocked && this.props.onBlocked();
|
|
@@ -50551,7 +50571,7 @@ var Mention = /*#__PURE__*/function (_Component) {
|
|
|
50551
50571
|
}, {
|
|
50552
50572
|
key: "onOverlayEnter",
|
|
50553
50573
|
value: function onOverlayEnter() {
|
|
50554
|
-
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
50574
|
+
ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['overlay']);
|
|
50555
50575
|
this.alignOverlay();
|
|
50556
50576
|
}
|
|
50557
50577
|
}, {
|
|
@@ -51268,7 +51288,7 @@ var Image = /*#__PURE__*/function (_Component) {
|
|
|
51268
51288
|
}, {
|
|
51269
51289
|
key: "onEntering",
|
|
51270
51290
|
value: function onEntering() {
|
|
51271
|
-
ZIndexUtils.set('modal', this.mask, PrimeReact.autoZIndex, PrimeReact.zIndex['modal']);
|
|
51291
|
+
ZIndexUtils.set('modal', this.mask, PrimeReact$1.autoZIndex, PrimeReact$1.zIndex['modal']);
|
|
51272
51292
|
}
|
|
51273
51293
|
}, {
|
|
51274
51294
|
key: "onEntered",
|
|
@@ -51566,7 +51586,7 @@ exports.addLocale = addLocale;
|
|
|
51566
51586
|
exports.classNames = classNames;
|
|
51567
51587
|
exports.confirmDialog = confirmDialog;
|
|
51568
51588
|
exports.confirmPopup = confirmPopup;
|
|
51569
|
-
exports["default"] = PrimeReact;
|
|
51589
|
+
exports["default"] = PrimeReact$1;
|
|
51570
51590
|
exports.locale = locale;
|
|
51571
51591
|
exports.localeOption = localeOption;
|
|
51572
51592
|
exports.localeOptions = localeOptions;
|