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