procode-vs-template 1.0.1 → 1.0.3

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/dist/index.js CHANGED
@@ -4,33 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var kendoReactDialogs = require('@progress/kendo-react-dialogs');
7
- var t$1 = require('react');
7
+ var react = require('react');
8
8
  var kendoReactDropdowns = require('@progress/kendo-react-dropdowns');
9
9
  var kendoReactInputs = require('@progress/kendo-react-inputs');
10
10
  var kendoReactDateinputs = require('@progress/kendo-react-dateinputs');
11
11
  var kendoReactButtons = require('@progress/kendo-react-buttons');
12
+ var kendoReactCommon = require('@progress/kendo-react-common');
12
13
  var reactBeautifulDnd = require('react-beautiful-dnd');
13
14
  var reactRouterDom = require('react-router-dom');
14
15
 
15
- function _interopNamespaceDefault(e) {
16
- var n = Object.create(null);
17
- if (e) {
18
- Object.keys(e).forEach(function (k) {
19
- if (k !== 'default') {
20
- var d = Object.getOwnPropertyDescriptor(e, k);
21
- Object.defineProperty(n, k, d.get ? d : {
22
- enumerable: true,
23
- get: function () { return e[k]; }
24
- });
25
- }
26
- });
27
- }
28
- n.default = e;
29
- return Object.freeze(n);
30
- }
31
-
32
- var t__namespace = /*#__PURE__*/_interopNamespaceDefault(t$1);
33
-
34
16
  /******************************************************************************
35
17
  Copyright (c) Microsoft Corporation.
36
18
 
@@ -45,7 +27,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
45
27
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
46
28
  PERFORMANCE OF THIS SOFTWARE.
47
29
  ***************************************************************************** */
48
- /* global Reflect, Promise, SuppressedError, Symbol */
30
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
49
31
 
50
32
 
51
33
  function __awaiter(thisArg, _arguments, P, generator) {
@@ -162,7 +144,7 @@ const ItemRenderMultiSelect$1 = ({ li, itemProps, selectedValues }) => {
162
144
  const itemChildren = (jsxRuntime.jsxs("a", Object.assign({ className: "drLink" }, { children: [jsxRuntime.jsx("input", { className: "drLink_check", type: "checkbox", name: itemProps.dataItem.value, checked: (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length) > 0
163
145
  ? selectedValues.some((x) => x.value === itemProps.dataItem.value)
164
146
  : false }), li.props.children] })));
165
- return t$1.cloneElement(li, li.props, itemChildren);
147
+ return react.cloneElement(li, li.props, itemChildren);
166
148
  };
167
149
  const MultiSelectRenderer = ({ filter, onFilterValueChange }) => {
168
150
  var _a, _b, _c, _d, _e, _f, _g;
@@ -410,7 +392,7 @@ const Filter = (props) => {
410
392
  var _a, _b;
411
393
  props.handleFilterAllValues(result[(_b = (_a = props.filterRow.selectedFilter.propertyToFilter.dataProvider) === null || _a === void 0 ? void 0 : _a.key) !== null && _b !== void 0 ? _b : ""], props.filterRow.id);
412
394
  };
413
- t$1.useEffect(() => {
395
+ react.useEffect(() => {
414
396
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
415
397
  if (((_c = (_b = (_a = props.filterRow) === null || _a === void 0 ? void 0 : _a.selectedFilter) === null || _b === void 0 ? void 0 : _b.propertyToFilter) === null || _c === void 0 ? void 0 : _c.type) ===
416
398
  FilterTargetType.LIST) {
@@ -424,7 +406,7 @@ const Filter = (props) => {
424
406
  }
425
407
  }
426
408
  }, [(_c = (_b = (_a = props.filterRow) === null || _a === void 0 ? void 0 : _a.selectedFilter) === null || _b === void 0 ? void 0 : _b.propertyToFilter) === null || _c === void 0 ? void 0 : _c.value]);
427
- const operators = t$1.useMemo(() => {
409
+ const operators = react.useMemo(() => {
428
410
  var _a, _b, _c;
429
411
  return getTypeBasedOperators((_c = (_b = (_a = props.filterRow) === null || _a === void 0 ? void 0 : _a.selectedFilter) === null || _b === void 0 ? void 0 : _b.propertyToFilter) === null || _c === void 0 ? void 0 : _c.type);
430
412
  }, [(_f = (_e = (_d = props.filterRow) === null || _d === void 0 ? void 0 : _d.selectedFilter) === null || _e === void 0 ? void 0 : _e.propertyToFilter) === null || _f === void 0 ? void 0 : _f.type]);
@@ -17842,8 +17824,8 @@ const FilterPopup$1 = (props) => {
17842
17824
  };
17843
17825
 
17844
17826
  const AdvancedSearch = (props) => {
17845
- const [togglePopup, setTogglePopup] = t$1.useState(false);
17846
- const popupRef = t$1.useRef(null);
17827
+ const [togglePopup, setTogglePopup] = react.useState(false);
17828
+ const popupRef = react.useRef(null);
17847
17829
  const handlePopupShow = () => {
17848
17830
  setTogglePopup(!togglePopup);
17849
17831
  };
@@ -17856,7 +17838,7 @@ const AdvancedSearch = (props) => {
17856
17838
  setTogglePopup(false);
17857
17839
  }
17858
17840
  };
17859
- t$1.useEffect(() => {
17841
+ react.useEffect(() => {
17860
17842
  if (togglePopup) {
17861
17843
  document.addEventListener("mousedown", handleClickOutside);
17862
17844
  }
@@ -17882,8 +17864,8 @@ const GlobalSearchView = (props) => {
17882
17864
 
17883
17865
  const GlobalSearch = (props) => {
17884
17866
  var _a, _b;
17885
- const [searchValue, setSearchValue] = t$1.useState("");
17886
- t$1.useEffect(() => {
17867
+ const [searchValue, setSearchValue] = react.useState("");
17868
+ react.useEffect(() => {
17887
17869
  var _a, _b, _c, _d, _e, _f;
17888
17870
  if (((_b = (_a = props.uiElementGroupData) === null || _a === void 0 ? void 0 : _a.globalSearch) === null || _b === void 0 ? void 0 : _b.filterQuery) !== searchValue) {
17889
17871
  setSearchValue((_d = (_c = props.uiElementGroupData) === null || _c === void 0 ? void 0 : _c.globalSearch) === null || _d === void 0 ? void 0 : _d.filterQuery);
@@ -17926,9 +17908,9 @@ const FilterPopup = (props) => {
17926
17908
 
17927
17909
  const QuickFilter = (props) => {
17928
17910
  var _a, _b, _c, _d, _e, _f, _g;
17929
- const [togglePopup, setTogglePopup] = t$1.useState(false);
17930
- const popupRef = t$1.useRef(null);
17931
- t$1.useEffect(() => {
17911
+ const [togglePopup, setTogglePopup] = react.useState(false);
17912
+ const popupRef = react.useRef(null);
17913
+ react.useEffect(() => {
17932
17914
  var _a, _b, _c;
17933
17915
  if (((_c = (_b = (_a = props.uiElementGroupData) === null || _a === void 0 ? void 0 : _a.quickFilter) === null || _b === void 0 ? void 0 : _b.filterRows) === null || _c === void 0 ? void 0 : _c.length) > 0) {
17934
17916
  loadFilterValues();
@@ -17937,7 +17919,7 @@ const QuickFilter = (props) => {
17937
17919
  (_c = (_b = (_a = props.uiElementGroupData) === null || _a === void 0 ? void 0 : _a.quickFilter) === null || _b === void 0 ? void 0 : _b.filterRows) === null || _c === void 0 ? void 0 : _c.length,
17938
17920
  (_d = props.uiElementGroupData) === null || _d === void 0 ? void 0 : _d.reset,
17939
17921
  ]);
17940
- t$1.useEffect(() => {
17922
+ react.useEffect(() => {
17941
17923
  if (togglePopup) {
17942
17924
  document.addEventListener("mousedown", handleClickOutside);
17943
17925
  }
@@ -18037,11 +18019,11 @@ const ItemRenderMultiSelect = ({ li, itemProps, selectedGroups }) => {
18037
18019
  const itemChildren = (jsxRuntime.jsxs("a", Object.assign({ className: "drLink" }, { children: [jsxRuntime.jsx("input", { className: "drLink_check", type: "checkbox", name: itemProps.dataItem.value, checked: selectedGroups.length > 0
18038
18020
  ? selectedGroups.some((x) => x.value === itemProps.dataItem.value)
18039
18021
  : false }), li.props.children] })));
18040
- return t$1.cloneElement(li, li.props, itemChildren);
18022
+ return react.cloneElement(li, li.props, itemChildren);
18041
18023
  };
18042
18024
  const GroupByPopUp = (props) => {
18043
- const [groupFields, setGroupFields] = t$1.useState(props.selectedGroups);
18044
- t$1.useEffect(() => {
18025
+ const [groupFields, setGroupFields] = react.useState(props.selectedGroups);
18026
+ react.useEffect(() => {
18045
18027
  setGroupFields(props.selectedGroups);
18046
18028
  }, [JSON.stringify(props.selectedGroups)]);
18047
18029
  const onGroupChange = (e) => {
@@ -18064,9 +18046,9 @@ const GroupByPopUp = (props) => {
18064
18046
 
18065
18047
  const GroupBy = (props) => {
18066
18048
  var _a, _b, _c;
18067
- const [togglePopup, setTogglePopup] = t$1.useState(false);
18068
- const popupRef = t$1.useRef(null);
18069
- t$1.useEffect(() => {
18049
+ const [togglePopup, setTogglePopup] = react.useState(false);
18050
+ const popupRef = react.useRef(null);
18051
+ react.useEffect(() => {
18070
18052
  if (togglePopup) {
18071
18053
  document.addEventListener("mousedown", handleClickOutside);
18072
18054
  }
@@ -18118,1413 +18100,8 @@ const SettingView = (props) => {
18118
18100
  return (jsxRuntime.jsx(FactoryRenderer, { disabled: props.disabled, rootStyle: { className: "tmpl-setting" }, widgetStyle: { className: "tmpl-button", inline: { width: "100%" } }, onClick: props.onSettingClick, title: "Setting", name: "setting", uiElementType: "WIDGET", widgetType: "ICON" }));
18119
18101
  };
18120
18102
 
18121
- /**
18122
- * @license
18123
- *-------------------------------------------------------------------------------------------
18124
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
18125
- * Licensed under commercial license. See LICENSE.md in the package root for more information
18126
- *-------------------------------------------------------------------------------------------
18127
- */
18128
- const o = (...l) => {
18129
- const s = {}, n = (e) => typeof e == "object" ? Object.keys(e).forEach((t) => {
18130
- s[t] = e[t];
18131
- }) : s[e] = !0, c = (e) => e.filter((t) => t !== !0 && !!t).map((t) => Array.isArray(t) ? c(t) : n(t));
18132
- return c(l), Object.keys(s).map((e) => s[e] && e || null).filter((e) => e !== null).join(" ");
18133
- };
18134
-
18135
- /**
18136
- * @license
18137
- *-------------------------------------------------------------------------------------------
18138
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
18139
- * Licensed under commercial license. See LICENSE.md in the package root for more information
18140
- *-------------------------------------------------------------------------------------------
18141
- */
18142
- const h = (o, l, u = {}) => {
18143
- const c = t__namespace.useCallback(
18144
- (n) => {
18145
- u.onMouseDown && u.onMouseDown.call(void 0, n), o.onMouseDown && o.onMouseDown.call(void 0, {
18146
- target: l.current,
18147
- syntheticEvent: n
18148
- });
18149
- },
18150
- [u.onMouseDown, o.onMouseDown, l]
18151
- ), M = t__namespace.useCallback(
18152
- (n) => {
18153
- u.onMouseUp && u.onMouseUp.call(void 0, n), o.onMouseUp && o.onMouseUp.call(void 0, {
18154
- target: l.current,
18155
- syntheticEvent: n
18156
- });
18157
- },
18158
- [u.onMouseUp, o.onMouseUp, l]
18159
- ), i = t__namespace.useCallback(
18160
- (n) => {
18161
- u.onClick && u.onClick.call(void 0, n), o.onClick && o.onClick.call(void 0, {
18162
- target: l.current,
18163
- syntheticEvent: n
18164
- });
18165
- },
18166
- [u.onClick, o.onClick, l]
18167
- ), s = t__namespace.useCallback(
18168
- (n) => {
18169
- u.onDoubleClick && u.onDoubleClick.call(void 0, n), o.onDoubleClick && o.onDoubleClick.call(void 0, {
18170
- target: l.current,
18171
- syntheticEvent: n
18172
- });
18173
- },
18174
- [u.onDoubleClick, o.onDoubleClick, l]
18175
- ), a = t__namespace.useCallback(
18176
- (n) => {
18177
- u.onMouseEnter && u.onMouseEnter.call(void 0, n), o.onMouseEnter && o.onMouseEnter.call(void 0, {
18178
- target: l.current,
18179
- syntheticEvent: n
18180
- });
18181
- },
18182
- [u.onMouseEnter, o.onMouseEnter, l]
18183
- ), v = t__namespace.useCallback(
18184
- (n) => {
18185
- u.onMouseLeave && u.onMouseLeave.call(void 0, n), o.onMouseLeave && o.onMouseLeave.call(void 0, {
18186
- target: l.current,
18187
- syntheticEvent: n
18188
- });
18189
- },
18190
- [u.onMouseLeave, o.onMouseLeave, l]
18191
- ), k = t__namespace.useCallback(
18192
- (n) => {
18193
- u.onMouseMove && u.onMouseMove.call(void 0, n), o.onMouseMove && o.onMouseMove.call(void 0, {
18194
- target: l.current,
18195
- syntheticEvent: n
18196
- });
18197
- },
18198
- [u.onMouseMove, o.onMouseMove, l]
18199
- ), C = t__namespace.useCallback(
18200
- (n) => {
18201
- u.onMouseOut && u.onMouseOut.call(void 0, n), o.onMouseOut && o.onMouseOut.call(void 0, {
18202
- target: l.current,
18203
- syntheticEvent: n
18204
- });
18205
- },
18206
- [u.onMouseOut, o.onMouseOut, l]
18207
- ), f = t__namespace.useCallback(
18208
- (n) => {
18209
- u.onMouseOver && u.onMouseOver.call(void 0, n), o.onMouseOver && o.onMouseOver.call(void 0, {
18210
- target: l.current,
18211
- syntheticEvent: n
18212
- });
18213
- },
18214
- [u.onMouseOver, o.onMouseOver, l]
18215
- );
18216
- return {
18217
- onClick: i,
18218
- onMouseUp: M,
18219
- onMouseDown: c,
18220
- onDoubleClick: s,
18221
- onMouseEnter: a,
18222
- onMouseLeave: v,
18223
- onMouseMove: k,
18224
- onMouseOut: C,
18225
- onMouseOver: f
18226
- };
18227
- };
18228
-
18229
- var propTypes = {exports: {}};
18230
-
18231
- var reactIs = {exports: {}};
18232
-
18233
- var reactIs_production_min = {};
18234
-
18235
- /** @license React v16.13.1
18236
- * react-is.production.min.js
18237
- *
18238
- * Copyright (c) Facebook, Inc. and its affiliates.
18239
- *
18240
- * This source code is licensed under the MIT license found in the
18241
- * LICENSE file in the root directory of this source tree.
18242
- */
18243
-
18244
- var hasRequiredReactIs_production_min;
18245
-
18246
- function requireReactIs_production_min () {
18247
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
18248
- hasRequiredReactIs_production_min = 1;
18249
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
18250
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
18251
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
18252
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
18253
- reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
18254
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
18255
- return reactIs_production_min;
18256
- }
18257
-
18258
- var reactIs_development = {};
18259
-
18260
- /** @license React v16.13.1
18261
- * react-is.development.js
18262
- *
18263
- * Copyright (c) Facebook, Inc. and its affiliates.
18264
- *
18265
- * This source code is licensed under the MIT license found in the
18266
- * LICENSE file in the root directory of this source tree.
18267
- */
18268
-
18269
- var hasRequiredReactIs_development;
18270
-
18271
- function requireReactIs_development () {
18272
- if (hasRequiredReactIs_development) return reactIs_development;
18273
- hasRequiredReactIs_development = 1;
18274
-
18275
-
18276
-
18277
- if (process.env.NODE_ENV !== "production") {
18278
- (function() {
18279
-
18280
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
18281
- // nor polyfill, then a plain number is used for performance.
18282
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
18283
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
18284
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
18285
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
18286
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
18287
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
18288
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
18289
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
18290
- // (unstable) APIs that have been removed. Can we remove the symbols?
18291
-
18292
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
18293
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
18294
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
18295
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
18296
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
18297
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
18298
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
18299
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
18300
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
18301
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
18302
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
18303
-
18304
- function isValidElementType(type) {
18305
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
18306
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
18307
- }
18308
-
18309
- function typeOf(object) {
18310
- if (typeof object === 'object' && object !== null) {
18311
- var $$typeof = object.$$typeof;
18312
-
18313
- switch ($$typeof) {
18314
- case REACT_ELEMENT_TYPE:
18315
- var type = object.type;
18316
-
18317
- switch (type) {
18318
- case REACT_ASYNC_MODE_TYPE:
18319
- case REACT_CONCURRENT_MODE_TYPE:
18320
- case REACT_FRAGMENT_TYPE:
18321
- case REACT_PROFILER_TYPE:
18322
- case REACT_STRICT_MODE_TYPE:
18323
- case REACT_SUSPENSE_TYPE:
18324
- return type;
18325
-
18326
- default:
18327
- var $$typeofType = type && type.$$typeof;
18328
-
18329
- switch ($$typeofType) {
18330
- case REACT_CONTEXT_TYPE:
18331
- case REACT_FORWARD_REF_TYPE:
18332
- case REACT_LAZY_TYPE:
18333
- case REACT_MEMO_TYPE:
18334
- case REACT_PROVIDER_TYPE:
18335
- return $$typeofType;
18336
-
18337
- default:
18338
- return $$typeof;
18339
- }
18340
-
18341
- }
18342
-
18343
- case REACT_PORTAL_TYPE:
18344
- return $$typeof;
18345
- }
18346
- }
18347
-
18348
- return undefined;
18349
- } // AsyncMode is deprecated along with isAsyncMode
18350
-
18351
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
18352
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
18353
- var ContextConsumer = REACT_CONTEXT_TYPE;
18354
- var ContextProvider = REACT_PROVIDER_TYPE;
18355
- var Element = REACT_ELEMENT_TYPE;
18356
- var ForwardRef = REACT_FORWARD_REF_TYPE;
18357
- var Fragment = REACT_FRAGMENT_TYPE;
18358
- var Lazy = REACT_LAZY_TYPE;
18359
- var Memo = REACT_MEMO_TYPE;
18360
- var Portal = REACT_PORTAL_TYPE;
18361
- var Profiler = REACT_PROFILER_TYPE;
18362
- var StrictMode = REACT_STRICT_MODE_TYPE;
18363
- var Suspense = REACT_SUSPENSE_TYPE;
18364
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
18365
-
18366
- function isAsyncMode(object) {
18367
- {
18368
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
18369
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
18370
-
18371
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
18372
- }
18373
- }
18374
-
18375
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
18376
- }
18377
- function isConcurrentMode(object) {
18378
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
18379
- }
18380
- function isContextConsumer(object) {
18381
- return typeOf(object) === REACT_CONTEXT_TYPE;
18382
- }
18383
- function isContextProvider(object) {
18384
- return typeOf(object) === REACT_PROVIDER_TYPE;
18385
- }
18386
- function isElement(object) {
18387
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
18388
- }
18389
- function isForwardRef(object) {
18390
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
18391
- }
18392
- function isFragment(object) {
18393
- return typeOf(object) === REACT_FRAGMENT_TYPE;
18394
- }
18395
- function isLazy(object) {
18396
- return typeOf(object) === REACT_LAZY_TYPE;
18397
- }
18398
- function isMemo(object) {
18399
- return typeOf(object) === REACT_MEMO_TYPE;
18400
- }
18401
- function isPortal(object) {
18402
- return typeOf(object) === REACT_PORTAL_TYPE;
18403
- }
18404
- function isProfiler(object) {
18405
- return typeOf(object) === REACT_PROFILER_TYPE;
18406
- }
18407
- function isStrictMode(object) {
18408
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
18409
- }
18410
- function isSuspense(object) {
18411
- return typeOf(object) === REACT_SUSPENSE_TYPE;
18412
- }
18413
-
18414
- reactIs_development.AsyncMode = AsyncMode;
18415
- reactIs_development.ConcurrentMode = ConcurrentMode;
18416
- reactIs_development.ContextConsumer = ContextConsumer;
18417
- reactIs_development.ContextProvider = ContextProvider;
18418
- reactIs_development.Element = Element;
18419
- reactIs_development.ForwardRef = ForwardRef;
18420
- reactIs_development.Fragment = Fragment;
18421
- reactIs_development.Lazy = Lazy;
18422
- reactIs_development.Memo = Memo;
18423
- reactIs_development.Portal = Portal;
18424
- reactIs_development.Profiler = Profiler;
18425
- reactIs_development.StrictMode = StrictMode;
18426
- reactIs_development.Suspense = Suspense;
18427
- reactIs_development.isAsyncMode = isAsyncMode;
18428
- reactIs_development.isConcurrentMode = isConcurrentMode;
18429
- reactIs_development.isContextConsumer = isContextConsumer;
18430
- reactIs_development.isContextProvider = isContextProvider;
18431
- reactIs_development.isElement = isElement;
18432
- reactIs_development.isForwardRef = isForwardRef;
18433
- reactIs_development.isFragment = isFragment;
18434
- reactIs_development.isLazy = isLazy;
18435
- reactIs_development.isMemo = isMemo;
18436
- reactIs_development.isPortal = isPortal;
18437
- reactIs_development.isProfiler = isProfiler;
18438
- reactIs_development.isStrictMode = isStrictMode;
18439
- reactIs_development.isSuspense = isSuspense;
18440
- reactIs_development.isValidElementType = isValidElementType;
18441
- reactIs_development.typeOf = typeOf;
18442
- })();
18443
- }
18444
- return reactIs_development;
18445
- }
18446
-
18447
- var hasRequiredReactIs;
18448
-
18449
- function requireReactIs () {
18450
- if (hasRequiredReactIs) return reactIs.exports;
18451
- hasRequiredReactIs = 1;
18452
-
18453
- if (process.env.NODE_ENV === 'production') {
18454
- reactIs.exports = requireReactIs_production_min();
18455
- } else {
18456
- reactIs.exports = requireReactIs_development();
18457
- }
18458
- return reactIs.exports;
18459
- }
18460
-
18461
- /*
18462
- object-assign
18463
- (c) Sindre Sorhus
18464
- @license MIT
18465
- */
18466
-
18467
- var objectAssign;
18468
- var hasRequiredObjectAssign;
18469
-
18470
- function requireObjectAssign () {
18471
- if (hasRequiredObjectAssign) return objectAssign;
18472
- hasRequiredObjectAssign = 1;
18473
- /* eslint-disable no-unused-vars */
18474
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
18475
- var hasOwnProperty = Object.prototype.hasOwnProperty;
18476
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
18477
-
18478
- function toObject(val) {
18479
- if (val === null || val === undefined) {
18480
- throw new TypeError('Object.assign cannot be called with null or undefined');
18481
- }
18482
-
18483
- return Object(val);
18484
- }
18485
-
18486
- function shouldUseNative() {
18487
- try {
18488
- if (!Object.assign) {
18489
- return false;
18490
- }
18491
-
18492
- // Detect buggy property enumeration order in older V8 versions.
18493
-
18494
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
18495
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
18496
- test1[5] = 'de';
18497
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
18498
- return false;
18499
- }
18500
-
18501
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
18502
- var test2 = {};
18503
- for (var i = 0; i < 10; i++) {
18504
- test2['_' + String.fromCharCode(i)] = i;
18505
- }
18506
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
18507
- return test2[n];
18508
- });
18509
- if (order2.join('') !== '0123456789') {
18510
- return false;
18511
- }
18512
-
18513
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
18514
- var test3 = {};
18515
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
18516
- test3[letter] = letter;
18517
- });
18518
- if (Object.keys(Object.assign({}, test3)).join('') !==
18519
- 'abcdefghijklmnopqrst') {
18520
- return false;
18521
- }
18522
-
18523
- return true;
18524
- } catch (err) {
18525
- // We don't expect any of the above to throw, but better to be safe.
18526
- return false;
18527
- }
18528
- }
18529
-
18530
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
18531
- var from;
18532
- var to = toObject(target);
18533
- var symbols;
18534
-
18535
- for (var s = 1; s < arguments.length; s++) {
18536
- from = Object(arguments[s]);
18537
-
18538
- for (var key in from) {
18539
- if (hasOwnProperty.call(from, key)) {
18540
- to[key] = from[key];
18541
- }
18542
- }
18543
-
18544
- if (getOwnPropertySymbols) {
18545
- symbols = getOwnPropertySymbols(from);
18546
- for (var i = 0; i < symbols.length; i++) {
18547
- if (propIsEnumerable.call(from, symbols[i])) {
18548
- to[symbols[i]] = from[symbols[i]];
18549
- }
18550
- }
18551
- }
18552
- }
18553
-
18554
- return to;
18555
- };
18556
- return objectAssign;
18557
- }
18558
-
18559
- /**
18560
- * Copyright (c) 2013-present, Facebook, Inc.
18561
- *
18562
- * This source code is licensed under the MIT license found in the
18563
- * LICENSE file in the root directory of this source tree.
18564
- */
18565
-
18566
- var ReactPropTypesSecret_1;
18567
- var hasRequiredReactPropTypesSecret;
18568
-
18569
- function requireReactPropTypesSecret () {
18570
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
18571
- hasRequiredReactPropTypesSecret = 1;
18572
-
18573
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
18574
-
18575
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
18576
- return ReactPropTypesSecret_1;
18577
- }
18578
-
18579
- var has;
18580
- var hasRequiredHas;
18581
-
18582
- function requireHas () {
18583
- if (hasRequiredHas) return has;
18584
- hasRequiredHas = 1;
18585
- has = Function.call.bind(Object.prototype.hasOwnProperty);
18586
- return has;
18587
- }
18588
-
18589
- /**
18590
- * Copyright (c) 2013-present, Facebook, Inc.
18591
- *
18592
- * This source code is licensed under the MIT license found in the
18593
- * LICENSE file in the root directory of this source tree.
18594
- */
18595
-
18596
- var checkPropTypes_1;
18597
- var hasRequiredCheckPropTypes;
18598
-
18599
- function requireCheckPropTypes () {
18600
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
18601
- hasRequiredCheckPropTypes = 1;
18602
-
18603
- var printWarning = function() {};
18604
-
18605
- if (process.env.NODE_ENV !== 'production') {
18606
- var ReactPropTypesSecret = requireReactPropTypesSecret();
18607
- var loggedTypeFailures = {};
18608
- var has = requireHas();
18609
-
18610
- printWarning = function(text) {
18611
- var message = 'Warning: ' + text;
18612
- if (typeof console !== 'undefined') {
18613
- console.error(message);
18614
- }
18615
- try {
18616
- // --- Welcome to debugging React ---
18617
- // This error was thrown as a convenience so that you can use this stack
18618
- // to find the callsite that caused this warning to fire.
18619
- throw new Error(message);
18620
- } catch (x) { /**/ }
18621
- };
18622
- }
18623
-
18624
- /**
18625
- * Assert that the values match with the type specs.
18626
- * Error messages are memorized and will only be shown once.
18627
- *
18628
- * @param {object} typeSpecs Map of name to a ReactPropType
18629
- * @param {object} values Runtime values that need to be type-checked
18630
- * @param {string} location e.g. "prop", "context", "child context"
18631
- * @param {string} componentName Name of the component for error messages.
18632
- * @param {?Function} getStack Returns the component stack.
18633
- * @private
18634
- */
18635
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
18636
- if (process.env.NODE_ENV !== 'production') {
18637
- for (var typeSpecName in typeSpecs) {
18638
- if (has(typeSpecs, typeSpecName)) {
18639
- var error;
18640
- // Prop type validation may throw. In case they do, we don't want to
18641
- // fail the render phase where it didn't fail before. So we log it.
18642
- // After these have been cleaned up, we'll let them throw.
18643
- try {
18644
- // This is intentionally an invariant that gets caught. It's the same
18645
- // behavior as without this statement except with a better message.
18646
- if (typeof typeSpecs[typeSpecName] !== 'function') {
18647
- var err = Error(
18648
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
18649
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
18650
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
18651
- );
18652
- err.name = 'Invariant Violation';
18653
- throw err;
18654
- }
18655
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
18656
- } catch (ex) {
18657
- error = ex;
18658
- }
18659
- if (error && !(error instanceof Error)) {
18660
- printWarning(
18661
- (componentName || 'React class') + ': type specification of ' +
18662
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
18663
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
18664
- 'You may have forgotten to pass an argument to the type checker ' +
18665
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
18666
- 'shape all require an argument).'
18667
- );
18668
- }
18669
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
18670
- // Only monitor this failure once because there tends to be a lot of the
18671
- // same error.
18672
- loggedTypeFailures[error.message] = true;
18673
-
18674
- var stack = getStack ? getStack() : '';
18675
-
18676
- printWarning(
18677
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
18678
- );
18679
- }
18680
- }
18681
- }
18682
- }
18683
- }
18684
-
18685
- /**
18686
- * Resets warning cache when testing.
18687
- *
18688
- * @private
18689
- */
18690
- checkPropTypes.resetWarningCache = function() {
18691
- if (process.env.NODE_ENV !== 'production') {
18692
- loggedTypeFailures = {};
18693
- }
18694
- };
18695
-
18696
- checkPropTypes_1 = checkPropTypes;
18697
- return checkPropTypes_1;
18698
- }
18699
-
18700
- /**
18701
- * Copyright (c) 2013-present, Facebook, Inc.
18702
- *
18703
- * This source code is licensed under the MIT license found in the
18704
- * LICENSE file in the root directory of this source tree.
18705
- */
18706
-
18707
- var factoryWithTypeCheckers;
18708
- var hasRequiredFactoryWithTypeCheckers;
18709
-
18710
- function requireFactoryWithTypeCheckers () {
18711
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
18712
- hasRequiredFactoryWithTypeCheckers = 1;
18713
-
18714
- var ReactIs = requireReactIs();
18715
- var assign = requireObjectAssign();
18716
-
18717
- var ReactPropTypesSecret = requireReactPropTypesSecret();
18718
- var has = requireHas();
18719
- var checkPropTypes = requireCheckPropTypes();
18720
-
18721
- var printWarning = function() {};
18722
-
18723
- if (process.env.NODE_ENV !== 'production') {
18724
- printWarning = function(text) {
18725
- var message = 'Warning: ' + text;
18726
- if (typeof console !== 'undefined') {
18727
- console.error(message);
18728
- }
18729
- try {
18730
- // --- Welcome to debugging React ---
18731
- // This error was thrown as a convenience so that you can use this stack
18732
- // to find the callsite that caused this warning to fire.
18733
- throw new Error(message);
18734
- } catch (x) {}
18735
- };
18736
- }
18737
-
18738
- function emptyFunctionThatReturnsNull() {
18739
- return null;
18740
- }
18741
-
18742
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
18743
- /* global Symbol */
18744
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
18745
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
18746
-
18747
- /**
18748
- * Returns the iterator method function contained on the iterable object.
18749
- *
18750
- * Be sure to invoke the function with the iterable as context:
18751
- *
18752
- * var iteratorFn = getIteratorFn(myIterable);
18753
- * if (iteratorFn) {
18754
- * var iterator = iteratorFn.call(myIterable);
18755
- * ...
18756
- * }
18757
- *
18758
- * @param {?object} maybeIterable
18759
- * @return {?function}
18760
- */
18761
- function getIteratorFn(maybeIterable) {
18762
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
18763
- if (typeof iteratorFn === 'function') {
18764
- return iteratorFn;
18765
- }
18766
- }
18767
-
18768
- /**
18769
- * Collection of methods that allow declaration and validation of props that are
18770
- * supplied to React components. Example usage:
18771
- *
18772
- * var Props = require('ReactPropTypes');
18773
- * var MyArticle = React.createClass({
18774
- * propTypes: {
18775
- * // An optional string prop named "description".
18776
- * description: Props.string,
18777
- *
18778
- * // A required enum prop named "category".
18779
- * category: Props.oneOf(['News','Photos']).isRequired,
18780
- *
18781
- * // A prop named "dialog" that requires an instance of Dialog.
18782
- * dialog: Props.instanceOf(Dialog).isRequired
18783
- * },
18784
- * render: function() { ... }
18785
- * });
18786
- *
18787
- * A more formal specification of how these methods are used:
18788
- *
18789
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
18790
- * decl := ReactPropTypes.{type}(.isRequired)?
18791
- *
18792
- * Each and every declaration produces a function with the same signature. This
18793
- * allows the creation of custom validation functions. For example:
18794
- *
18795
- * var MyLink = React.createClass({
18796
- * propTypes: {
18797
- * // An optional string or URI prop named "href".
18798
- * href: function(props, propName, componentName) {
18799
- * var propValue = props[propName];
18800
- * if (propValue != null && typeof propValue !== 'string' &&
18801
- * !(propValue instanceof URI)) {
18802
- * return new Error(
18803
- * 'Expected a string or an URI for ' + propName + ' in ' +
18804
- * componentName
18805
- * );
18806
- * }
18807
- * }
18808
- * },
18809
- * render: function() {...}
18810
- * });
18811
- *
18812
- * @internal
18813
- */
18814
-
18815
- var ANONYMOUS = '<<anonymous>>';
18816
-
18817
- // Important!
18818
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
18819
- var ReactPropTypes = {
18820
- array: createPrimitiveTypeChecker('array'),
18821
- bigint: createPrimitiveTypeChecker('bigint'),
18822
- bool: createPrimitiveTypeChecker('boolean'),
18823
- func: createPrimitiveTypeChecker('function'),
18824
- number: createPrimitiveTypeChecker('number'),
18825
- object: createPrimitiveTypeChecker('object'),
18826
- string: createPrimitiveTypeChecker('string'),
18827
- symbol: createPrimitiveTypeChecker('symbol'),
18828
-
18829
- any: createAnyTypeChecker(),
18830
- arrayOf: createArrayOfTypeChecker,
18831
- element: createElementTypeChecker(),
18832
- elementType: createElementTypeTypeChecker(),
18833
- instanceOf: createInstanceTypeChecker,
18834
- node: createNodeChecker(),
18835
- objectOf: createObjectOfTypeChecker,
18836
- oneOf: createEnumTypeChecker,
18837
- oneOfType: createUnionTypeChecker,
18838
- shape: createShapeTypeChecker,
18839
- exact: createStrictShapeTypeChecker,
18840
- };
18841
-
18842
- /**
18843
- * inlined Object.is polyfill to avoid requiring consumers ship their own
18844
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
18845
- */
18846
- /*eslint-disable no-self-compare*/
18847
- function is(x, y) {
18848
- // SameValue algorithm
18849
- if (x === y) {
18850
- // Steps 1-5, 7-10
18851
- // Steps 6.b-6.e: +0 != -0
18852
- return x !== 0 || 1 / x === 1 / y;
18853
- } else {
18854
- // Step 6.a: NaN == NaN
18855
- return x !== x && y !== y;
18856
- }
18857
- }
18858
- /*eslint-enable no-self-compare*/
18859
-
18860
- /**
18861
- * We use an Error-like object for backward compatibility as people may call
18862
- * PropTypes directly and inspect their output. However, we don't use real
18863
- * Errors anymore. We don't inspect their stack anyway, and creating them
18864
- * is prohibitively expensive if they are created too often, such as what
18865
- * happens in oneOfType() for any type before the one that matched.
18866
- */
18867
- function PropTypeError(message, data) {
18868
- this.message = message;
18869
- this.data = data && typeof data === 'object' ? data: {};
18870
- this.stack = '';
18871
- }
18872
- // Make `instanceof Error` still work for returned errors.
18873
- PropTypeError.prototype = Error.prototype;
18874
-
18875
- function createChainableTypeChecker(validate) {
18876
- if (process.env.NODE_ENV !== 'production') {
18877
- var manualPropTypeCallCache = {};
18878
- var manualPropTypeWarningCount = 0;
18879
- }
18880
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
18881
- componentName = componentName || ANONYMOUS;
18882
- propFullName = propFullName || propName;
18883
-
18884
- if (secret !== ReactPropTypesSecret) {
18885
- if (throwOnDirectAccess) {
18886
- // New behavior only for users of `prop-types` package
18887
- var err = new Error(
18888
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
18889
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
18890
- 'Read more at http://fb.me/use-check-prop-types'
18891
- );
18892
- err.name = 'Invariant Violation';
18893
- throw err;
18894
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
18895
- // Old behavior for people using React.PropTypes
18896
- var cacheKey = componentName + ':' + propName;
18897
- if (
18898
- !manualPropTypeCallCache[cacheKey] &&
18899
- // Avoid spamming the console because they are often not actionable except for lib authors
18900
- manualPropTypeWarningCount < 3
18901
- ) {
18902
- printWarning(
18903
- 'You are manually calling a React.PropTypes validation ' +
18904
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
18905
- 'and will throw in the standalone `prop-types` package. ' +
18906
- 'You may be seeing this warning due to a third-party PropTypes ' +
18907
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
18908
- );
18909
- manualPropTypeCallCache[cacheKey] = true;
18910
- manualPropTypeWarningCount++;
18911
- }
18912
- }
18913
- }
18914
- if (props[propName] == null) {
18915
- if (isRequired) {
18916
- if (props[propName] === null) {
18917
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
18918
- }
18919
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
18920
- }
18921
- return null;
18922
- } else {
18923
- return validate(props, propName, componentName, location, propFullName);
18924
- }
18925
- }
18926
-
18927
- var chainedCheckType = checkType.bind(null, false);
18928
- chainedCheckType.isRequired = checkType.bind(null, true);
18929
-
18930
- return chainedCheckType;
18931
- }
18932
-
18933
- function createPrimitiveTypeChecker(expectedType) {
18934
- function validate(props, propName, componentName, location, propFullName, secret) {
18935
- var propValue = props[propName];
18936
- var propType = getPropType(propValue);
18937
- if (propType !== expectedType) {
18938
- // `propValue` being instance of, say, date/regexp, pass the 'object'
18939
- // check, but we can offer a more precise error message here rather than
18940
- // 'of type `object`'.
18941
- var preciseType = getPreciseType(propValue);
18942
-
18943
- return new PropTypeError(
18944
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
18945
- {expectedType: expectedType}
18946
- );
18947
- }
18948
- return null;
18949
- }
18950
- return createChainableTypeChecker(validate);
18951
- }
18952
-
18953
- function createAnyTypeChecker() {
18954
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
18955
- }
18956
-
18957
- function createArrayOfTypeChecker(typeChecker) {
18958
- function validate(props, propName, componentName, location, propFullName) {
18959
- if (typeof typeChecker !== 'function') {
18960
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
18961
- }
18962
- var propValue = props[propName];
18963
- if (!Array.isArray(propValue)) {
18964
- var propType = getPropType(propValue);
18965
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
18966
- }
18967
- for (var i = 0; i < propValue.length; i++) {
18968
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
18969
- if (error instanceof Error) {
18970
- return error;
18971
- }
18972
- }
18973
- return null;
18974
- }
18975
- return createChainableTypeChecker(validate);
18976
- }
18977
-
18978
- function createElementTypeChecker() {
18979
- function validate(props, propName, componentName, location, propFullName) {
18980
- var propValue = props[propName];
18981
- if (!isValidElement(propValue)) {
18982
- var propType = getPropType(propValue);
18983
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
18984
- }
18985
- return null;
18986
- }
18987
- return createChainableTypeChecker(validate);
18988
- }
18989
-
18990
- function createElementTypeTypeChecker() {
18991
- function validate(props, propName, componentName, location, propFullName) {
18992
- var propValue = props[propName];
18993
- if (!ReactIs.isValidElementType(propValue)) {
18994
- var propType = getPropType(propValue);
18995
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
18996
- }
18997
- return null;
18998
- }
18999
- return createChainableTypeChecker(validate);
19000
- }
19001
-
19002
- function createInstanceTypeChecker(expectedClass) {
19003
- function validate(props, propName, componentName, location, propFullName) {
19004
- if (!(props[propName] instanceof expectedClass)) {
19005
- var expectedClassName = expectedClass.name || ANONYMOUS;
19006
- var actualClassName = getClassName(props[propName]);
19007
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
19008
- }
19009
- return null;
19010
- }
19011
- return createChainableTypeChecker(validate);
19012
- }
19013
-
19014
- function createEnumTypeChecker(expectedValues) {
19015
- if (!Array.isArray(expectedValues)) {
19016
- if (process.env.NODE_ENV !== 'production') {
19017
- if (arguments.length > 1) {
19018
- printWarning(
19019
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
19020
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
19021
- );
19022
- } else {
19023
- printWarning('Invalid argument supplied to oneOf, expected an array.');
19024
- }
19025
- }
19026
- return emptyFunctionThatReturnsNull;
19027
- }
19028
-
19029
- function validate(props, propName, componentName, location, propFullName) {
19030
- var propValue = props[propName];
19031
- for (var i = 0; i < expectedValues.length; i++) {
19032
- if (is(propValue, expectedValues[i])) {
19033
- return null;
19034
- }
19035
- }
19036
-
19037
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
19038
- var type = getPreciseType(value);
19039
- if (type === 'symbol') {
19040
- return String(value);
19041
- }
19042
- return value;
19043
- });
19044
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
19045
- }
19046
- return createChainableTypeChecker(validate);
19047
- }
19048
-
19049
- function createObjectOfTypeChecker(typeChecker) {
19050
- function validate(props, propName, componentName, location, propFullName) {
19051
- if (typeof typeChecker !== 'function') {
19052
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
19053
- }
19054
- var propValue = props[propName];
19055
- var propType = getPropType(propValue);
19056
- if (propType !== 'object') {
19057
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
19058
- }
19059
- for (var key in propValue) {
19060
- if (has(propValue, key)) {
19061
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
19062
- if (error instanceof Error) {
19063
- return error;
19064
- }
19065
- }
19066
- }
19067
- return null;
19068
- }
19069
- return createChainableTypeChecker(validate);
19070
- }
19071
-
19072
- function createUnionTypeChecker(arrayOfTypeCheckers) {
19073
- if (!Array.isArray(arrayOfTypeCheckers)) {
19074
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
19075
- return emptyFunctionThatReturnsNull;
19076
- }
19077
-
19078
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
19079
- var checker = arrayOfTypeCheckers[i];
19080
- if (typeof checker !== 'function') {
19081
- printWarning(
19082
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
19083
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
19084
- );
19085
- return emptyFunctionThatReturnsNull;
19086
- }
19087
- }
19088
-
19089
- function validate(props, propName, componentName, location, propFullName) {
19090
- var expectedTypes = [];
19091
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
19092
- var checker = arrayOfTypeCheckers[i];
19093
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
19094
- if (checkerResult == null) {
19095
- return null;
19096
- }
19097
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
19098
- expectedTypes.push(checkerResult.data.expectedType);
19099
- }
19100
- }
19101
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
19102
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
19103
- }
19104
- return createChainableTypeChecker(validate);
19105
- }
19106
-
19107
- function createNodeChecker() {
19108
- function validate(props, propName, componentName, location, propFullName) {
19109
- if (!isNode(props[propName])) {
19110
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
19111
- }
19112
- return null;
19113
- }
19114
- return createChainableTypeChecker(validate);
19115
- }
19116
-
19117
- function invalidValidatorError(componentName, location, propFullName, key, type) {
19118
- return new PropTypeError(
19119
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
19120
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
19121
- );
19122
- }
19123
-
19124
- function createShapeTypeChecker(shapeTypes) {
19125
- function validate(props, propName, componentName, location, propFullName) {
19126
- var propValue = props[propName];
19127
- var propType = getPropType(propValue);
19128
- if (propType !== 'object') {
19129
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
19130
- }
19131
- for (var key in shapeTypes) {
19132
- var checker = shapeTypes[key];
19133
- if (typeof checker !== 'function') {
19134
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
19135
- }
19136
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
19137
- if (error) {
19138
- return error;
19139
- }
19140
- }
19141
- return null;
19142
- }
19143
- return createChainableTypeChecker(validate);
19144
- }
19145
-
19146
- function createStrictShapeTypeChecker(shapeTypes) {
19147
- function validate(props, propName, componentName, location, propFullName) {
19148
- var propValue = props[propName];
19149
- var propType = getPropType(propValue);
19150
- if (propType !== 'object') {
19151
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
19152
- }
19153
- // We need to check all keys in case some are required but missing from props.
19154
- var allKeys = assign({}, props[propName], shapeTypes);
19155
- for (var key in allKeys) {
19156
- var checker = shapeTypes[key];
19157
- if (has(shapeTypes, key) && typeof checker !== 'function') {
19158
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
19159
- }
19160
- if (!checker) {
19161
- return new PropTypeError(
19162
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
19163
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
19164
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
19165
- );
19166
- }
19167
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
19168
- if (error) {
19169
- return error;
19170
- }
19171
- }
19172
- return null;
19173
- }
19174
-
19175
- return createChainableTypeChecker(validate);
19176
- }
19177
-
19178
- function isNode(propValue) {
19179
- switch (typeof propValue) {
19180
- case 'number':
19181
- case 'string':
19182
- case 'undefined':
19183
- return true;
19184
- case 'boolean':
19185
- return !propValue;
19186
- case 'object':
19187
- if (Array.isArray(propValue)) {
19188
- return propValue.every(isNode);
19189
- }
19190
- if (propValue === null || isValidElement(propValue)) {
19191
- return true;
19192
- }
19193
-
19194
- var iteratorFn = getIteratorFn(propValue);
19195
- if (iteratorFn) {
19196
- var iterator = iteratorFn.call(propValue);
19197
- var step;
19198
- if (iteratorFn !== propValue.entries) {
19199
- while (!(step = iterator.next()).done) {
19200
- if (!isNode(step.value)) {
19201
- return false;
19202
- }
19203
- }
19204
- } else {
19205
- // Iterator will provide entry [k,v] tuples rather than values.
19206
- while (!(step = iterator.next()).done) {
19207
- var entry = step.value;
19208
- if (entry) {
19209
- if (!isNode(entry[1])) {
19210
- return false;
19211
- }
19212
- }
19213
- }
19214
- }
19215
- } else {
19216
- return false;
19217
- }
19218
-
19219
- return true;
19220
- default:
19221
- return false;
19222
- }
19223
- }
19224
-
19225
- function isSymbol(propType, propValue) {
19226
- // Native Symbol.
19227
- if (propType === 'symbol') {
19228
- return true;
19229
- }
19230
-
19231
- // falsy value can't be a Symbol
19232
- if (!propValue) {
19233
- return false;
19234
- }
19235
-
19236
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
19237
- if (propValue['@@toStringTag'] === 'Symbol') {
19238
- return true;
19239
- }
19240
-
19241
- // Fallback for non-spec compliant Symbols which are polyfilled.
19242
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
19243
- return true;
19244
- }
19245
-
19246
- return false;
19247
- }
19248
-
19249
- // Equivalent of `typeof` but with special handling for array and regexp.
19250
- function getPropType(propValue) {
19251
- var propType = typeof propValue;
19252
- if (Array.isArray(propValue)) {
19253
- return 'array';
19254
- }
19255
- if (propValue instanceof RegExp) {
19256
- // Old webkits (at least until Android 4.0) return 'function' rather than
19257
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
19258
- // passes PropTypes.object.
19259
- return 'object';
19260
- }
19261
- if (isSymbol(propType, propValue)) {
19262
- return 'symbol';
19263
- }
19264
- return propType;
19265
- }
19266
-
19267
- // This handles more types than `getPropType`. Only used for error messages.
19268
- // See `createPrimitiveTypeChecker`.
19269
- function getPreciseType(propValue) {
19270
- if (typeof propValue === 'undefined' || propValue === null) {
19271
- return '' + propValue;
19272
- }
19273
- var propType = getPropType(propValue);
19274
- if (propType === 'object') {
19275
- if (propValue instanceof Date) {
19276
- return 'date';
19277
- } else if (propValue instanceof RegExp) {
19278
- return 'regexp';
19279
- }
19280
- }
19281
- return propType;
19282
- }
19283
-
19284
- // Returns a string that is postfixed to a warning about an invalid type.
19285
- // For example, "undefined" or "of type array"
19286
- function getPostfixForTypeWarning(value) {
19287
- var type = getPreciseType(value);
19288
- switch (type) {
19289
- case 'array':
19290
- case 'object':
19291
- return 'an ' + type;
19292
- case 'boolean':
19293
- case 'date':
19294
- case 'regexp':
19295
- return 'a ' + type;
19296
- default:
19297
- return type;
19298
- }
19299
- }
19300
-
19301
- // Returns class name of the object, if any.
19302
- function getClassName(propValue) {
19303
- if (!propValue.constructor || !propValue.constructor.name) {
19304
- return ANONYMOUS;
19305
- }
19306
- return propValue.constructor.name;
19307
- }
19308
-
19309
- ReactPropTypes.checkPropTypes = checkPropTypes;
19310
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
19311
- ReactPropTypes.PropTypes = ReactPropTypes;
19312
-
19313
- return ReactPropTypes;
19314
- };
19315
- return factoryWithTypeCheckers;
19316
- }
19317
-
19318
- /**
19319
- * Copyright (c) 2013-present, Facebook, Inc.
19320
- *
19321
- * This source code is licensed under the MIT license found in the
19322
- * LICENSE file in the root directory of this source tree.
19323
- */
19324
-
19325
- var factoryWithThrowingShims;
19326
- var hasRequiredFactoryWithThrowingShims;
19327
-
19328
- function requireFactoryWithThrowingShims () {
19329
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
19330
- hasRequiredFactoryWithThrowingShims = 1;
19331
-
19332
- var ReactPropTypesSecret = requireReactPropTypesSecret();
19333
-
19334
- function emptyFunction() {}
19335
- function emptyFunctionWithReset() {}
19336
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
19337
-
19338
- factoryWithThrowingShims = function() {
19339
- function shim(props, propName, componentName, location, propFullName, secret) {
19340
- if (secret === ReactPropTypesSecret) {
19341
- // It is still safe when called from React.
19342
- return;
19343
- }
19344
- var err = new Error(
19345
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
19346
- 'Use PropTypes.checkPropTypes() to call them. ' +
19347
- 'Read more at http://fb.me/use-check-prop-types'
19348
- );
19349
- err.name = 'Invariant Violation';
19350
- throw err;
19351
- } shim.isRequired = shim;
19352
- function getShim() {
19353
- return shim;
19354
- } // Important!
19355
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
19356
- var ReactPropTypes = {
19357
- array: shim,
19358
- bigint: shim,
19359
- bool: shim,
19360
- func: shim,
19361
- number: shim,
19362
- object: shim,
19363
- string: shim,
19364
- symbol: shim,
19365
-
19366
- any: shim,
19367
- arrayOf: getShim,
19368
- element: shim,
19369
- elementType: shim,
19370
- instanceOf: getShim,
19371
- node: shim,
19372
- objectOf: getShim,
19373
- oneOf: getShim,
19374
- oneOfType: getShim,
19375
- shape: getShim,
19376
- exact: getShim,
19377
-
19378
- checkPropTypes: emptyFunctionWithReset,
19379
- resetWarningCache: emptyFunction
19380
- };
19381
-
19382
- ReactPropTypes.PropTypes = ReactPropTypes;
19383
-
19384
- return ReactPropTypes;
19385
- };
19386
- return factoryWithThrowingShims;
19387
- }
19388
-
19389
- /**
19390
- * Copyright (c) 2013-present, Facebook, Inc.
19391
- *
19392
- * This source code is licensed under the MIT license found in the
19393
- * LICENSE file in the root directory of this source tree.
19394
- */
19395
-
19396
- if (process.env.NODE_ENV !== 'production') {
19397
- var ReactIs = requireReactIs();
19398
-
19399
- // By explicitly using `prop-types` you are opting into new development behavior.
19400
- // http://fb.me/prop-types-in-prod
19401
- var throwOnDirectAccess = true;
19402
- propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
19403
- } else {
19404
- // By explicitly using `prop-types` you are opting into new production behavior.
19405
- // http://fb.me/prop-types-in-prod
19406
- propTypes.exports = requireFactoryWithThrowingShims()();
19407
- }
19408
-
19409
- var propTypesExports = propTypes.exports;
19410
- var t = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
19411
-
19412
- /**
19413
- * @license
19414
- *-------------------------------------------------------------------------------------------
19415
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
19416
- * Licensed under commercial license. See LICENSE.md in the package root for more information
19417
- *-------------------------------------------------------------------------------------------
19418
- */
19419
- const x = {
19420
- default: "",
19421
- xsmall: "k-icon-xs",
19422
- small: "k-icon-sm",
19423
- medium: "k-icon-md",
19424
- large: "k-icon-lg",
19425
- xlarge: "k-icon-xl",
19426
- xxlarge: "k-icon-xxl",
19427
- xxxlarge: "k-icon-xxxl"
19428
- };
19429
-
19430
- /**
19431
- * @license
19432
- *-------------------------------------------------------------------------------------------
19433
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
19434
- * Licensed under commercial license. See LICENSE.md in the package root for more information
19435
- *-------------------------------------------------------------------------------------------
19436
- */
19437
- const n = (o) => "k-i-" + o; t.shape({
19438
- name: t.string.isRequired,
19439
- content: t.string.isRequired,
19440
- viewBox: t.string.isRequired
19441
- });
19442
-
19443
- /**
19444
- * @license
19445
- *-------------------------------------------------------------------------------------------
19446
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
19447
- * Licensed under commercial license. See LICENSE.md in the package root for more information
19448
- *-------------------------------------------------------------------------------------------
19449
- */
19450
- const u = t__namespace.forwardRef((a, d) => {
19451
- const {
19452
- className: n$1,
19453
- name: s,
19454
- themeColor: t,
19455
- size: i,
19456
- flip: m,
19457
- style: h$1,
19458
- id: g,
19459
- tabIndex: x$1,
19460
- ...y
19461
- } = a, l = t__namespace.useRef(null), c = t__namespace.useRef(null);
19462
- t__namespace.useImperativeHandle(l, () => ({
19463
- element: c.current
19464
- })), t__namespace.useImperativeHandle(d, () => l.current);
19465
- const f = t__namespace.useMemo(
19466
- () => i || p.size,
19467
- [i]
19468
- ), r = t__namespace.useMemo(
19469
- () => m || p.flip,
19470
- [m]
19471
- ), z = t__namespace.useMemo(
19472
- () => o(
19473
- "k-icon",
19474
- "k-font-icon",
19475
- s && n(s),
19476
- {
19477
- [`k-color-${t}`]: t,
19478
- "k-flip-h": r === "horizontal" || r === "both",
19479
- "k-flip-v": r === "vertical" || r === "both"
19480
- },
19481
- x[f],
19482
- n$1
19483
- ),
19484
- [s, t, f, r, n$1]
19485
- ), I = h(a, l);
19486
- return /* @__PURE__ */ t__namespace.createElement(
19487
- "span",
19488
- {
19489
- ref: c,
19490
- ...y,
19491
- ...I,
19492
- className: z,
19493
- id: g,
19494
- tabIndex: x$1,
19495
- style: h$1,
19496
- role: "presentation"
19497
- }
19498
- );
19499
- });
19500
- u.propTypes = {
19501
- style: t.object,
19502
- classNames: t.string,
19503
- name: t.string,
19504
- themeColor: t.oneOf([
19505
- "inherit",
19506
- "primary",
19507
- "secondary",
19508
- "tertiary",
19509
- "info",
19510
- "success",
19511
- "error",
19512
- "warning",
19513
- "dark",
19514
- "light",
19515
- "inverse"
19516
- ]),
19517
- size: t.oneOf(["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"]),
19518
- flip: t.oneOf(["default", "horizontal", "vertical", "both"])
19519
- };
19520
- const p = {
19521
- size: "default",
19522
- flip: "default"
19523
- };
19524
- u.displayName = "KendoIcon";
19525
-
19526
18103
  const DragDropContainer = ({ column, excludeIncludeToCard, toggleFreeze, onFieldAddOrRemove, }) => {
19527
- return (jsxRuntime.jsxs("div", Object.assign({ className: "tmpl-chooser-setting-container" }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: "tmpl-chooser-setting-label" }, { children: [jsxRuntime.jsx(u, { name: "drag" }), jsxRuntime.jsx("p", { children: column.label })] })), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(kendoReactInputs.Checkbox, { className: "tmpl-include-card tmpl-checkbox", label: "Include in card", checked: column.includeInCard, onChange: () => {
18104
+ return (jsxRuntime.jsxs("div", Object.assign({ className: "tmpl-chooser-setting-container" }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: "tmpl-chooser-setting-label" }, { children: [jsxRuntime.jsx(kendoReactCommon.Icon, { name: "drag" }), jsxRuntime.jsx("p", { children: column.label })] })), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(kendoReactInputs.Checkbox, { className: "tmpl-include-card tmpl-checkbox", label: "Include in card", checked: column.includeInCard, onChange: () => {
19528
18105
  excludeIncludeToCard(column.id);
19529
18106
  } }), jsxRuntime.jsx("div", { children: jsxRuntime.jsx(kendoReactInputs.RadioButton, { label: "Freeze", className: "tmpl-radio", disabled: column.primary, checked: column.primary === true ? true : column.isFreezed, onClick: () => {
19530
18107
  if (column.primary !== true) {
@@ -19549,16 +18126,16 @@ const ColumnChooserView = (props) => {
19549
18126
 
19550
18127
  const ColumnChooser = (props) => {
19551
18128
  var _a, _b, _c, _d, _e, _f;
19552
- const [searchInput, setSearchInput] = t$1.useState("");
19553
- const popupChooserRef = t$1.useRef(null);
19554
- const searchedColumns = t$1.useMemo(() => {
18129
+ const [searchInput, setSearchInput] = react.useState("");
18130
+ const popupChooserRef = react.useRef(null);
18131
+ const searchedColumns = react.useMemo(() => {
19555
18132
  var _a, _b, _c, _d;
19556
18133
  return (_d = (_c = (_b = (_a = props.uiElementGroupData) === null || _a === void 0 ? void 0 : _a.setting) === null || _b === void 0 ? void 0 : _b.columnChooser) === null || _c === void 0 ? void 0 : _c.allColumns) === null || _d === void 0 ? void 0 : _d.filter((c) => c.label.toLowerCase().includes(searchInput === null || searchInput === void 0 ? void 0 : searchInput.toLowerCase()));
19557
18134
  }, [
19558
18135
  searchInput,
19559
18136
  JSON.stringify((_c = (_b = (_a = props.uiElementGroupData) === null || _a === void 0 ? void 0 : _a.setting) === null || _b === void 0 ? void 0 : _b.columnChooser) === null || _c === void 0 ? void 0 : _c.allColumns),
19560
18137
  ]);
19561
- const selectedColumns = t$1.useMemo(() => {
18138
+ const selectedColumns = react.useMemo(() => {
19562
18139
  var _a, _b, _c;
19563
18140
  const sColumns = _.cloneDeep((_c = (_b = (_a = props.uiElementGroupData) === null || _a === void 0 ? void 0 : _a.setting) === null || _b === void 0 ? void 0 : _b.columnChooser) === null || _c === void 0 ? void 0 : _c.selectedColumns);
19564
18141
  return sColumns === null || sColumns === void 0 ? void 0 : sColumns.sort((a, b) => {
@@ -19568,7 +18145,7 @@ const ColumnChooser = (props) => {
19568
18145
  }, [
19569
18146
  JSON.stringify((_f = (_e = (_d = props.uiElementGroupData) === null || _d === void 0 ? void 0 : _d.setting) === null || _e === void 0 ? void 0 : _e.columnChooser) === null || _f === void 0 ? void 0 : _f.selectedColumns),
19570
18147
  ]);
19571
- t$1.useEffect(() => {
18148
+ react.useEffect(() => {
19572
18149
  if (props.toggleColumnChooser) {
19573
18150
  document.addEventListener("mousedown", handleClickOutside);
19574
18151
  }
@@ -19680,10 +18257,10 @@ var DataWidgetType;
19680
18257
  })(DataWidgetType || (DataWidgetType = {}));
19681
18258
  const Setting = (props) => {
19682
18259
  var _a, _b;
19683
- const [togglePopup, setTogglePopup] = t$1.useState(false);
19684
- const [toggleColumnChooser, setToggleColumnChooser] = t$1.useState(false);
19685
- const popupRef = t$1.useRef(null);
19686
- t$1.useEffect(() => {
18260
+ const [togglePopup, setTogglePopup] = react.useState(false);
18261
+ const [toggleColumnChooser, setToggleColumnChooser] = react.useState(false);
18262
+ const popupRef = react.useRef(null);
18263
+ react.useEffect(() => {
19687
18264
  if (togglePopup) {
19688
18265
  document.addEventListener("mousedown", handleClickOutside);
19689
18266
  }
@@ -19850,16 +18427,16 @@ const defaultExport = {
19850
18427
  };
19851
18428
  const ExportPopup = (props) => {
19852
18429
  var _a, _b;
19853
- const popupRef = t$1.useRef(null);
19854
- const [tempExport, setTempExport] = t$1.useState(_.cloneDeep(defaultExport));
19855
- const [exportViewModels, setExportViewModels] = t$1.useState([]);
19856
- const [exporHistoryList, setExporHistoryList] = t$1.useState([]);
19857
- t$1.useEffect(() => {
18430
+ const popupRef = react.useRef(null);
18431
+ const [tempExport, setTempExport] = react.useState(_.cloneDeep(defaultExport));
18432
+ const [exportViewModels, setExportViewModels] = react.useState([]);
18433
+ const [exporHistoryList, setExporHistoryList] = react.useState([]);
18434
+ react.useEffect(() => {
19858
18435
  props.onExportList((list) => {
19859
18436
  setExporHistoryList(list);
19860
18437
  });
19861
18438
  }, []);
19862
- t$1.useEffect(() => {
18439
+ react.useEffect(() => {
19863
18440
  const handleClickOutside = (event) => {
19864
18441
  const target = event.target;
19865
18442
  const isInsideMyPopup = target.closest(`.tmpl-prvent-outside-click-close`);
@@ -19942,7 +18519,7 @@ const ExportPopup = (props) => {
19942
18519
  };
19943
18520
 
19944
18521
  const Export = (props) => {
19945
- const [togglePopup, setTogglePopup] = t$1.useState(false);
18522
+ const [togglePopup, setTogglePopup] = react.useState(false);
19946
18523
  const onClick = () => {
19947
18524
  setTogglePopup(!togglePopup);
19948
18525
  };
@@ -19982,16 +18559,16 @@ const ViewItem = ({ view, selectedView, onDelete, onSave, markAsSelected, setDef
19982
18559
  };
19983
18560
 
19984
18561
  const UserViewView = ({ selectedView, allViews, disabled, onViewToggle, setDefault, onDelete, onSave, markAsSelected, }) => {
19985
- return (jsxRuntime.jsx(kendoReactDropdowns.DropDownList, { disabled: disabled, data: allViews, textField: "name", dataItemKey: "id", value: selectedView, title: "Screen View", className: "tmpl-screen-view tmpl-dropdown", footer: jsxRuntime.jsx("div", Object.assign({ className: "tmpl-screen-view-footer", onClick: onViewToggle }, { children: jsxRuntime.jsx(kendoReactButtons.Button, Object.assign({ size: "small", themeColor: "primary", title: "Create View" }, { children: "+ Create View" })) })), itemRender: (li, itemProp) => t$1.cloneElement(li, li.props, jsxRuntime.jsx(ViewItem, { view: itemProp.dataItem, selectedView: selectedView, markAsSelected: markAsSelected, onDelete: onDelete, setDefault: setDefault, onSave: onSave })), fillMode: "flat", popupSettings: {
18562
+ return (jsxRuntime.jsx(kendoReactDropdowns.DropDownList, { disabled: disabled, data: allViews, textField: "name", dataItemKey: "id", value: selectedView, title: "Screen View", className: "tmpl-screen-view tmpl-dropdown", footer: jsxRuntime.jsx("div", Object.assign({ className: "tmpl-screen-view-footer", onClick: onViewToggle }, { children: jsxRuntime.jsx(kendoReactButtons.Button, Object.assign({ size: "small", themeColor: "primary", title: "Create View" }, { children: "+ Create View" })) })), itemRender: (li, itemProp) => react.cloneElement(li, li.props, jsxRuntime.jsx(ViewItem, { view: itemProp.dataItem, selectedView: selectedView, markAsSelected: markAsSelected, onDelete: onDelete, setDefault: setDefault, onSave: onSave })), fillMode: "flat", popupSettings: {
19986
18563
  popupClass: "tmpl-button-popup",
19987
18564
  } }));
19988
18565
  };
19989
18566
 
19990
18567
  const CreateScreenPopup = (props) => {
19991
- const [screenName, setScreenName] = t$1.useState("");
19992
- const [isValid, setIsValid] = t$1.useState(true);
19993
- const popupRef = t$1.useRef(null);
19994
- t$1.useEffect(() => {
18568
+ const [screenName, setScreenName] = react.useState("");
18569
+ const [isValid, setIsValid] = react.useState(true);
18570
+ const popupRef = react.useRef(null);
18571
+ react.useEffect(() => {
19995
18572
  const handleClickOutside = (event) => {
19996
18573
  if (popupRef.current &&
19997
18574
  !popupRef.current.contains(event.target)) {
@@ -23444,14 +22021,14 @@ const _defaultView = {
23444
22021
  };
23445
22022
  const UserView = (props) => {
23446
22023
  var _a, _b, _c, _d, _e, _f, _g;
23447
- const [togglePopup, setTogglePopup] = t$1.useState(false);
23448
- t$1.useEffect(() => {
22024
+ const [togglePopup, setTogglePopup] = react.useState(false);
22025
+ react.useEffect(() => {
23449
22026
  var _a;
23450
22027
  if (((_a = props.uiElementGroupData) === null || _a === void 0 ? void 0 : _a.processing) === false) {
23451
22028
  loadUserViews();
23452
22029
  }
23453
22030
  }, [(_a = props.uiElementGroupData) === null || _a === void 0 ? void 0 : _a.processing]);
23454
- t$1.useEffect(() => {
22031
+ react.useEffect(() => {
23455
22032
  var _a, _b, _c, _d, _e, _f;
23456
22033
  //call custom view service and get saved data related to default custom view
23457
22034
  if (((_a = props.uiElementGroupData) === null || _a === void 0 ? void 0 : _a.reset) > 0) {
@@ -23591,17 +22168,17 @@ const GridToolBar = ({ config, targetScreenDataField, uiElementGroupData, widget
23591
22168
  saveSystemDefaultInSession(config.uiElementGroupId, uiElementGroupData);
23592
22169
  }
23593
22170
  };
23594
- t$1.useEffect(() => {
22171
+ react.useEffect(() => {
23595
22172
  onModelUpdate(null, config.uiElementGroupId, Object.assign(Object.assign({}, uiElementGroupData), { setting: {
23596
22173
  activeDataWidgetType: toolBarOptions.setting.activeDataWidgetType,
23597
22174
  } }));
23598
22175
  }, []);
23599
- t$1.useEffect(() => {
22176
+ react.useEffect(() => {
23600
22177
  return () => {
23601
22178
  saveInSession();
23602
22179
  };
23603
22180
  }, [location.pathname]);
23604
- t$1.useEffect(() => {
22181
+ react.useEffect(() => {
23605
22182
  var _a;
23606
22183
  if (((_a = location.state) === null || _a === void 0 ? void 0 : _a.enableHotReload) &&
23607
22184
  targetUiElementGroupId &&
@@ -23615,7 +22192,7 @@ const GridToolBar = ({ config, targetScreenDataField, uiElementGroupData, widget
23615
22192
  onScreenDataLoad === null || onScreenDataLoad === void 0 ? void 0 : onScreenDataLoad(resultHandler);
23616
22193
  }
23617
22194
  }, [targetUiElementGroupId]);
23618
- t$1.useEffect(() => {
22195
+ react.useEffect(() => {
23619
22196
  if (uiElementGroupData === null || uiElementGroupData === void 0 ? void 0 : uiElementGroupData.enableDataLoading) {
23620
22197
  onScreenDataLoad === null || onScreenDataLoad === void 0 ? void 0 : onScreenDataLoad(resultHandler);
23621
22198
  }
@@ -23645,20 +22222,20 @@ const MenuSubItem = (props) => {
23645
22222
  };
23646
22223
 
23647
22224
  const MenuSubHeader = (props) => {
23648
- return (jsxRuntime.jsxs("section", Object.assign({ className: "tmpl-submenu" }, { children: [props.label && (jsxRuntime.jsx("h5", Object.assign({ onClick: () => props.onNavigate(props.path, props.navigationType) }, { children: props.label }))), jsxRuntime.jsx("div", Object.assign({ className: "tmpl-submenu__items" }, { children: props.subItems.map((item, index) => (t$1.createElement(MenuSubItem, Object.assign({}, item, { key: index, onNavigate: props.onNavigate })))) }))] })));
22225
+ return (jsxRuntime.jsxs("section", Object.assign({ className: "tmpl-submenu" }, { children: [props.label && (jsxRuntime.jsx("h5", Object.assign({ onClick: () => props.onNavigate(props.path, props.navigationType) }, { children: props.label }))), jsxRuntime.jsx("div", Object.assign({ className: "tmpl-submenu__items" }, { children: props.subItems.map((item, index) => (react.createElement(MenuSubItem, Object.assign({}, item, { key: index, onNavigate: props.onNavigate })))) }))] })));
23649
22226
  };
23650
22227
 
23651
22228
  const MenuMainHeader = (props) => {
23652
- const [isHover, setIsHover] = t$1.useState(false);
22229
+ const [isHover, setIsHover] = react.useState(false);
23653
22230
  return (jsxRuntime.jsxs("section", Object.assign({ className: "tmpl-mainmenu", onMouseEnter: () => {
23654
22231
  setIsHover(true);
23655
22232
  }, onMouseLeave: () => {
23656
22233
  setIsHover(false);
23657
- } }, { children: [jsxRuntime.jsx("h2", Object.assign({ onClick: () => props.onNavigate(props.path, props.navigationType) }, { children: props.label })), jsxRuntime.jsx("div", Object.assign({ className: `tmpl-mainmenu__items ${isHover ? "visible" : ""}` }, { children: props.subItems.map((item, index) => (t$1.createElement(MenuSubHeader, Object.assign({}, item, { key: index, onNavigate: props.onNavigate })))) }))] })));
22234
+ } }, { children: [jsxRuntime.jsx("h2", Object.assign({ onClick: () => props.onNavigate(props.path, props.navigationType) }, { children: props.label })), jsxRuntime.jsx("div", Object.assign({ className: `tmpl-mainmenu__items ${isHover ? "visible" : ""}` }, { children: props.subItems.map((item, index) => (react.createElement(MenuSubHeader, Object.assign({}, item, { key: index, onNavigate: props.onNavigate })))) }))] })));
23658
22235
  };
23659
22236
 
23660
22237
  const MenuView = ({ menuItems, onNavigate, }) => {
23661
- return (jsxRuntime.jsx("header", Object.assign({ className: "tmpl-menu" }, { children: menuItems.map((item, index) => (t$1.createElement(MenuMainHeader, Object.assign({}, item, { key: index, onNavigate: onNavigate })))) })));
22238
+ return (jsxRuntime.jsx("header", Object.assign({ className: "tmpl-menu" }, { children: menuItems.map((item, index) => (react.createElement(MenuMainHeader, Object.assign({}, item, { key: index, onNavigate: onNavigate })))) })));
23662
22239
  };
23663
22240
 
23664
22241
  var menuJson = [