@spaziodati/atoka-design-system 2.1.6 → 2.1.7

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.
Files changed (109) hide show
  1. package/AddableItems/index.js +1 -1050
  2. package/Alert/index.js +1 -321
  3. package/Badge/index.js +1 -285
  4. package/Bs4V3Wrapper/index.js +1 -253
  5. package/BubbleChart/index.js +2 -3424
  6. package/BubbleChart/index.js.LICENSE.txt +1 -0
  7. package/Button/index.js +1 -325
  8. package/ButtonDropdown/index.js +1 -601
  9. package/CardsPage/index.js +1 -2505
  10. package/CursorPagination/index.js +1 -948
  11. package/DatePicker/index.js +1 -449
  12. package/DetailPage/index.js +1 -1990
  13. package/Dropdown/index.js +1 -723
  14. package/EditableString/index.js +1 -3238
  15. package/EllipsableContent/index.js +1 -786
  16. package/EmptyState/index.js +1 -280
  17. package/Facet/index.js +1 -919
  18. package/FacetSection/index.js +1 -447
  19. package/FadeAnimation/index.js +1 -1157
  20. package/FeedbackButton/index.js +1 -400
  21. package/Form/index.js +1 -450
  22. package/Funnel/index.js +2 -3624
  23. package/Funnel/index.js.LICENSE.txt +1 -0
  24. package/GridCard/index.js +1 -1626
  25. package/HighlightableText/index.js +1 -625
  26. package/Histogram/index.js +1 -2346
  27. package/InlineStringEditor/index.js +1 -1862
  28. package/InputGroup/index.js +1 -279
  29. package/Jumbotron/index.js +1 -272
  30. package/Map/index.js +2 -5187
  31. package/Map/index.js.LICENSE.txt +10 -0
  32. package/Modal/index.js +1 -745
  33. package/Navbar/index.js +1 -3430
  34. package/Pagination/index.js +1 -990
  35. package/PieChart/index.js +1 -1971
  36. package/PublicFooter/index.js +1 -458
  37. package/PublicNavbar/index.js +1 -257
  38. package/RecordBit/index.js +1 -486
  39. package/ResultItemCard/index.js +1 -1073
  40. package/SelectDropdown/index.js +1 -1506
  41. package/Spinner/index.js +1 -327
  42. package/StatisticsItemCard/index.js +1 -1796
  43. package/StatisticsItemNumeric/index.js +1 -285
  44. package/StatisticsLegend/index.js +1 -1555
  45. package/StatisticsTooltip/index.js +1 -796
  46. package/Suggester/index.js +1 -1126
  47. package/SunBurst/index.js +1 -1166
  48. package/TabSwitcher/index.js +1 -1135
  49. package/Title/index.js +1 -304
  50. package/Toasts/index.js +1 -2285
  51. package/ToggleButtonGroup/index.js +1 -607
  52. package/Tooltip/index.js +1 -291
  53. package/Utils/index.js +2 -3002
  54. package/Utils/index.js.LICENSE.txt +1 -0
  55. package/{atoka-design-system-2.1.6.min.css → atoka-design-system-2.1.7.min.css} +0 -0
  56. package/index.js +2 -16819
  57. package/index.js.LICENSE.txt +10 -0
  58. package/package.json +1 -1
  59. package/AddableItems/index.js.map +0 -1
  60. package/Alert/index.js.map +0 -1
  61. package/Badge/index.js.map +0 -1
  62. package/Bs4V3Wrapper/index.js.map +0 -1
  63. package/BubbleChart/index.js.map +0 -1
  64. package/Button/index.js.map +0 -1
  65. package/ButtonDropdown/index.js.map +0 -1
  66. package/CardsPage/index.js.map +0 -1
  67. package/CursorPagination/index.js.map +0 -1
  68. package/DatePicker/index.js.map +0 -1
  69. package/DetailPage/index.js.map +0 -1
  70. package/Dropdown/index.js.map +0 -1
  71. package/EditableString/index.js.map +0 -1
  72. package/EllipsableContent/index.js.map +0 -1
  73. package/EmptyState/index.js.map +0 -1
  74. package/Facet/index.js.map +0 -1
  75. package/FacetSection/index.js.map +0 -1
  76. package/FadeAnimation/index.js.map +0 -1
  77. package/FeedbackButton/index.js.map +0 -1
  78. package/Form/index.js.map +0 -1
  79. package/Funnel/index.js.map +0 -1
  80. package/GridCard/index.js.map +0 -1
  81. package/HighlightableText/index.js.map +0 -1
  82. package/Histogram/index.js.map +0 -1
  83. package/InlineStringEditor/index.js.map +0 -1
  84. package/InputGroup/index.js.map +0 -1
  85. package/Jumbotron/index.js.map +0 -1
  86. package/Map/index.js.map +0 -1
  87. package/Modal/index.js.map +0 -1
  88. package/Navbar/index.js.map +0 -1
  89. package/Pagination/index.js.map +0 -1
  90. package/PieChart/index.js.map +0 -1
  91. package/PublicFooter/index.js.map +0 -1
  92. package/PublicNavbar/index.js.map +0 -1
  93. package/RecordBit/index.js.map +0 -1
  94. package/ResultItemCard/index.js.map +0 -1
  95. package/SelectDropdown/index.js.map +0 -1
  96. package/Spinner/index.js.map +0 -1
  97. package/StatisticsItemCard/index.js.map +0 -1
  98. package/StatisticsItemNumeric/index.js.map +0 -1
  99. package/StatisticsLegend/index.js.map +0 -1
  100. package/StatisticsTooltip/index.js.map +0 -1
  101. package/Suggester/index.js.map +0 -1
  102. package/SunBurst/index.js.map +0 -1
  103. package/TabSwitcher/index.js.map +0 -1
  104. package/Title/index.js.map +0 -1
  105. package/Toasts/index.js.map +0 -1
  106. package/ToggleButtonGroup/index.js.map +0 -1
  107. package/Tooltip/index.js.map +0 -1
  108. package/Utils/index.js.map +0 -1
  109. package/index.js.map +0 -1
@@ -1,948 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("@fortawesome/pro-light-svg-icons/faChevronLeft"), require("@fortawesome/pro-light-svg-icons/faChevronRight"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/Pagination"));
4
- else if(typeof define === 'function' && define.amd)
5
- define("atoka-design-system", ["@fortawesome/pro-light-svg-icons/faChevronLeft", "@fortawesome/pro-light-svg-icons/faChevronRight", "@fortawesome/react-fontawesome", "classnames", "react", "react-bootstrap/Form", "react-bootstrap/FormControl", "react-bootstrap/FormText", "react-bootstrap/Pagination"], factory);
6
- else if(typeof exports === 'object')
7
- exports["atoka-design-system"] = factory(require("@fortawesome/pro-light-svg-icons/faChevronLeft"), require("@fortawesome/pro-light-svg-icons/faChevronRight"), require("@fortawesome/react-fontawesome"), require("classnames"), require("react"), require("react-bootstrap/Form"), require("react-bootstrap/FormControl"), require("react-bootstrap/FormText"), require("react-bootstrap/Pagination"));
8
- else
9
- root["atoka-design-system"] = factory(root["@fortawesome/pro-light-svg-icons/faChevronLeft"], root["@fortawesome/pro-light-svg-icons/faChevronRight"], root["@fortawesome/react-fontawesome"], root["classnames"], root["react"], root["react-bootstrap/Form"], root["react-bootstrap/FormControl"], root["react-bootstrap/FormText"], root["react-bootstrap/Pagination"]);
10
- })(self, function(__WEBPACK_EXTERNAL_MODULE__2705__, __WEBPACK_EXTERNAL_MODULE__3987__, __WEBPACK_EXTERNAL_MODULE__5692__, __WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__8721__, __WEBPACK_EXTERNAL_MODULE__1082__, __WEBPACK_EXTERNAL_MODULE__8763__, __WEBPACK_EXTERNAL_MODULE__9924__) {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ 6627:
16
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
-
18
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
- /* harmony export */ "ZP": () => (/* binding */ autobind)
20
- /* harmony export */ });
21
- /* unused harmony exports boundMethod, boundClass */
22
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4329);
23
-
24
-
25
- function _typeof(obj) {
26
- if (typeof Symbol === "function" && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Symbol.iterator) === "symbol") {
27
- _typeof = function _typeof(obj) {
28
- return (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
29
- };
30
- } else {
31
- _typeof = function _typeof(obj) {
32
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(obj);
33
- };
34
- }
35
-
36
- return _typeof(obj);
37
- }
38
- /**
39
- * Return a descriptor removing the value and returning a getter
40
- * The getter will return a .bind version of the function
41
- * and memoize the result against a symbol on the instance
42
- */
43
-
44
-
45
- function boundMethod(target, key, descriptor) {
46
- var fn = descriptor.value;
47
-
48
- if (typeof fn !== 'function') {
49
- throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
50
- } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
51
- // getter for the property which is being replaced. This causes infinite
52
- // recursion and an "Out of stack space" error.
53
-
54
-
55
- var definingProperty = false;
56
- return {
57
- configurable: true,
58
- get: function get() {
59
- // eslint-disable-next-line no-prototype-builtins
60
- if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
61
- return fn;
62
- }
63
-
64
- var boundFn = fn.bind(this);
65
- definingProperty = true;
66
- Object.defineProperty(this, key, {
67
- configurable: true,
68
- get: function get() {
69
- return boundFn;
70
- },
71
- set: function set(value) {
72
- fn = value;
73
- delete this[key];
74
- }
75
- });
76
- definingProperty = false;
77
- return boundFn;
78
- },
79
- set: function set(value) {
80
- fn = value;
81
- }
82
- };
83
- }
84
- /**
85
- * Use boundMethod to bind all methods on the target.prototype
86
- */
87
-
88
- function boundClass(target) {
89
- // (Using reflect to get all keys including symbols)
90
- var keys; // Use Reflect if exists
91
-
92
- if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
93
- keys = Reflect.ownKeys(target.prototype);
94
- } else {
95
- keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
96
-
97
- if (typeof Object.getOwnPropertySymbols === 'function') {
98
- keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
99
- }
100
- }
101
-
102
- keys.forEach(function (key) {
103
- // Ignore special case target method
104
- if (key === 'constructor') {
105
- return;
106
- }
107
-
108
- var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
109
-
110
- if (typeof descriptor.value === 'function') {
111
- Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
112
- }
113
- });
114
- return target;
115
- }
116
- function autobind() {
117
- if (arguments.length === 1) {
118
- return boundClass.apply(void 0, arguments);
119
- }
120
-
121
- return boundMethod.apply(void 0, arguments);
122
- }
123
-
124
- /***/ }),
125
-
126
- /***/ 3871:
127
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
128
-
129
- // ESM COMPAT FLAG
130
- __webpack_require__.r(__webpack_exports__);
131
-
132
- // EXPORTS
133
- __webpack_require__.d(__webpack_exports__, {
134
- "CursorPagination": () => (/* reexport */ CursorPagination)
135
- });
136
-
137
- // EXTERNAL MODULE: ./node_modules/autobind-decorator/lib/esm/index.js
138
- var esm = __webpack_require__(6627);
139
- // EXTERNAL MODULE: external "classnames"
140
- var external_classnames_ = __webpack_require__(8310);
141
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
142
- // EXTERNAL MODULE: external "react"
143
- var external_react_ = __webpack_require__(8156);
144
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
145
- // EXTERNAL MODULE: external "react-bootstrap/Pagination"
146
- var Pagination_ = __webpack_require__(9924);
147
- var Pagination_default = /*#__PURE__*/__webpack_require__.n(Pagination_);
148
- // EXTERNAL MODULE: ./src/components/Utils/Utils.tsx
149
- var Utils = __webpack_require__(4915);
150
- // EXTERNAL MODULE: ./src/components/Pagination/PaginationPrev.tsx
151
- var PaginationPrev = __webpack_require__(9255);
152
- // EXTERNAL MODULE: ./src/components/Pagination/PaginationNext.tsx
153
- var PaginationNext = __webpack_require__(8385);
154
- ;// CONCATENATED MODULE: ./src/components/CursorPagination/CursorPagination.tsx
155
- var __extends = (undefined && undefined.__extends) || (function () {
156
- var extendStatics = function (d, b) {
157
- extendStatics = Object.setPrototypeOf ||
158
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
159
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
160
- return extendStatics(d, b);
161
- };
162
- return function (d, b) {
163
- if (typeof b !== "function" && b !== null)
164
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
165
- extendStatics(d, b);
166
- function __() { this.constructor = d; }
167
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
168
- };
169
- })();
170
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
171
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
172
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
173
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
174
- return c > 3 && r && Object.defineProperty(target, key, r), r;
175
- };
176
- var __metadata = (undefined && undefined.__metadata) || function (k, v) {
177
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
178
- };
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
- /**
188
- * ### Overview
189
- *
190
- * Pagination to use when the total page number is unknown.
191
- */
192
- var CursorPagination = /** @class */ (function (_super) {
193
- __extends(CursorPagination, _super);
194
- function CursorPagination() {
195
- return _super !== null && _super.apply(this, arguments) || this;
196
- }
197
- CursorPagination.prototype.handlePreviousPage = function () {
198
- if (this.props.previousPage == null) {
199
- return;
200
- }
201
- this.props.onSetPage(this.props.previousPage);
202
- (0,Utils/* scrollToTop */.k3)();
203
- };
204
- CursorPagination.prototype.handleNextPage = function () {
205
- if (this.props.nextPage == null) {
206
- return;
207
- }
208
- this.props.onSetPage(this.props.nextPage);
209
- (0,Utils/* scrollToTop */.k3)();
210
- };
211
- CursorPagination.prototype.renderPrev = function () {
212
- if (this.props.previousPage == null) {
213
- return null;
214
- }
215
- return external_react_default().createElement(PaginationPrev/* PaginationPrev */.K, { handlePrevPage: this.handlePreviousPage });
216
- };
217
- CursorPagination.prototype.renderNext = function () {
218
- if (this.props.nextPage == null) {
219
- return null;
220
- }
221
- return external_react_default().createElement(PaginationNext/* PaginationNext */.$, { handleNextPage: this.handleNextPage });
222
- };
223
- CursorPagination.prototype.render = function () {
224
- if (this.props.previousPage == null && this.props.nextPage == null) {
225
- return null;
226
- }
227
- var className = external_classnames_default()(this.props.className, 'atoka-pagination', 'justify-content-center align-items-center');
228
- return (external_react_default().createElement((Pagination_default()), { className: className },
229
- this.renderPrev(),
230
- this.renderNext()));
231
- };
232
- CursorPagination.displayName = 'CursorPagination';
233
- __decorate([
234
- esm/* default */.ZP,
235
- __metadata("design:type", Function),
236
- __metadata("design:paramtypes", []),
237
- __metadata("design:returntype", void 0)
238
- ], CursorPagination.prototype, "handlePreviousPage", null);
239
- __decorate([
240
- esm/* default */.ZP,
241
- __metadata("design:type", Function),
242
- __metadata("design:paramtypes", []),
243
- __metadata("design:returntype", void 0)
244
- ], CursorPagination.prototype, "handleNextPage", null);
245
- return CursorPagination;
246
- }((external_react_default()).PureComponent));
247
-
248
-
249
- ;// CONCATENATED MODULE: ./src/components/CursorPagination/index.ts
250
-
251
-
252
-
253
- /***/ }),
254
-
255
- /***/ 8352:
256
- /***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
257
-
258
-
259
- // UNUSED EXPORTS: Form
260
-
261
- // EXTERNAL MODULE: external "react"
262
- var external_react_ = __webpack_require__(8156);
263
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
264
- // EXTERNAL MODULE: external "classnames"
265
- var external_classnames_ = __webpack_require__(8310);
266
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
267
- // EXTERNAL MODULE: external "react-bootstrap/Form"
268
- var Form_ = __webpack_require__(8721);
269
- var Form_default = /*#__PURE__*/__webpack_require__.n(Form_);
270
- ;// CONCATENATED MODULE: ./src/components/Form/FormLabel.tsx
271
-
272
-
273
-
274
-
275
- var FormLabel = external_react_default().memo(function (props) {
276
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-label');
277
- return external_react_default().createElement((Form_default()).Label, { className: className }, props.children);
278
- });
279
- FormLabel.displayName = 'FormLabel';
280
-
281
- // EXTERNAL MODULE: ./src/components/Form/FormControl.tsx + 1 modules
282
- var FormControl = __webpack_require__(2048);
283
- ;// CONCATENATED MODULE: ./src/components/Form/FormCheckbox.tsx
284
- var __assign = (undefined && undefined.__assign) || function () {
285
- __assign = Object.assign || function(t) {
286
- for (var s, i = 1, n = arguments.length; i < n; i++) {
287
- s = arguments[i];
288
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
289
- t[p] = s[p];
290
- }
291
- return t;
292
- };
293
- return __assign.apply(this, arguments);
294
- };
295
-
296
-
297
-
298
-
299
- var FormCheckbox = function (props) {
300
- var _a;
301
- var className = external_classnames_default()('atoka-form-checkbox', props === null || props === void 0 ? void 0 : props.className);
302
- return external_react_default().createElement((Form_default()).Check, __assign({ type: 'checkbox' }, props, { custom: true, className: className, label: (_a = props.label) !== null && _a !== void 0 ? _a : '' }));
303
- };
304
- FormCheckbox.displayName = 'FormCheckbox';
305
-
306
- ;// CONCATENATED MODULE: ./src/components/Form/FormRadio.tsx
307
- var FormRadio_assign = (undefined && undefined.__assign) || function () {
308
- FormRadio_assign = Object.assign || function(t) {
309
- for (var s, i = 1, n = arguments.length; i < n; i++) {
310
- s = arguments[i];
311
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
312
- t[p] = s[p];
313
- }
314
- return t;
315
- };
316
- return FormRadio_assign.apply(this, arguments);
317
- };
318
-
319
-
320
-
321
-
322
- var FormRadio = function (props) {
323
- var _a;
324
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-radio');
325
- return external_react_default().createElement((Form_default()).Check, FormRadio_assign({ type: 'radio' }, props, { custom: true, className: className, label: (_a = props.label) !== null && _a !== void 0 ? _a : '' }));
326
- };
327
- FormRadio.displayName = 'FormRadio';
328
-
329
- // EXTERNAL MODULE: external "react-bootstrap/FormText"
330
- var FormText_ = __webpack_require__(8763);
331
- var FormText_default = /*#__PURE__*/__webpack_require__.n(FormText_);
332
- ;// CONCATENATED MODULE: ./src/components/Form/FormHelp.tsx
333
- var __rest = (undefined && undefined.__rest) || function (s, e) {
334
- var t = {};
335
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
336
- t[p] = s[p];
337
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
338
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
339
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
340
- t[p[i]] = s[p[i]];
341
- }
342
- return t;
343
- };
344
-
345
-
346
-
347
-
348
- var FormHelp = external_react_default().memo(function (_a) {
349
- var children = _a.children, props = __rest(_a, ["children"]);
350
- var className = external_classnames_default()('d-block', props === null || props === void 0 ? void 0 : props.className);
351
- return (external_react_default().createElement((FormText_default()), { bsPrefix: 'atoka-form-help', className: className }, children));
352
- });
353
- FormHelp.displayName = 'FormHelp';
354
-
355
- ;// CONCATENATED MODULE: ./src/components/Form/Form.tsx
356
- var Form_assign = (undefined && undefined.__assign) || function () {
357
- Form_assign = Object.assign || function(t) {
358
- for (var s, i = 1, n = arguments.length; i < n; i++) {
359
- s = arguments[i];
360
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
361
- t[p] = s[p];
362
- }
363
- return t;
364
- };
365
- return Form_assign.apply(this, arguments);
366
- };
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
-
376
- var Form = function (props) {
377
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form');
378
- return (external_react_default().createElement((Form_default()), Form_assign({}, props, { className: className }), props.children));
379
- };
380
- Form.displayName = 'Form';
381
- Form.Control = FormControl/* FormControl */.N;
382
- Form.Label = FormLabel;
383
- Form.Checkbox = FormCheckbox;
384
- Form.Radio = FormRadio;
385
- Form.File = (Form_default()).File;
386
- Form.Switch = (Form_default()).Switch;
387
- Form.Help = FormHelp;
388
- Form.Group = (Form_default()).Group;
389
-
390
-
391
-
392
- /***/ }),
393
-
394
- /***/ 2048:
395
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
396
-
397
-
398
- // EXPORTS
399
- __webpack_require__.d(__webpack_exports__, {
400
- "N": () => (/* binding */ FormControl)
401
- });
402
-
403
- // EXTERNAL MODULE: external "react"
404
- var external_react_ = __webpack_require__(8156);
405
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
406
- // EXTERNAL MODULE: external "classnames"
407
- var external_classnames_ = __webpack_require__(8310);
408
- var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
409
- // EXTERNAL MODULE: external "react-bootstrap/FormControl"
410
- var FormControl_ = __webpack_require__(1082);
411
- var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
412
- ;// CONCATENATED MODULE: ./src/components/Form/FormControlFeedBack.tsx
413
- var __rest = (undefined && undefined.__rest) || function (s, e) {
414
- var t = {};
415
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
416
- t[p] = s[p];
417
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
418
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
419
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
420
- t[p[i]] = s[p[i]];
421
- }
422
- return t;
423
- };
424
-
425
-
426
-
427
- var FormControlFeedBack = external_react_default().memo(function (_a) {
428
- var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
429
- var className = external_classnames_default()(props === null || props === void 0 ? void 0 : props.className, 'atoka-form-control-feedback', {
430
- 'd-block': show,
431
- });
432
- return (external_react_default().createElement((FormControl_default()).Feedback, { type: props.type, className: className }, props.children));
433
- });
434
- FormControlFeedBack.displayName = ' FormControlFeedBack';
435
-
436
- ;// CONCATENATED MODULE: ./src/components/Form/FormControl.tsx
437
- var FormControl_rest = (undefined && undefined.__rest) || function (s, e) {
438
- var t = {};
439
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
440
- t[p] = s[p];
441
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
442
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
443
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
444
- t[p[i]] = s[p[i]];
445
- }
446
- return t;
447
- };
448
-
449
-
450
-
451
-
452
-
453
- var FormControlComponent = external_react_default().forwardRef(function (_a, ref) {
454
- var _b = _a.size, size = _b === void 0 ? 'md' : _b, props = FormControl_rest(_a, ["size"]);
455
- var className = external_classnames_default()('atoka-form-control', props === null || props === void 0 ? void 0 : props.className, {
456
- 'atoka-shadow': props.withShadow,
457
- 'disabled': props.disabled,
458
- });
459
- return (external_react_default().createElement((FormControl_default()), { as: props.as, rows: props.rows, cols: props.cols, placeholder: props.placeholder, className: className, disabled: props.disabled, readOnly: props.readOnly, value: props.value, onChange: props.onChange, onKeyPress: props.onKeyPress, onKeyDown: props.onKeyDown, defaultValue: props.defaultValue, size: size === 'md' ? undefined : size, type: props.type, id: props.id, isValid: props.isValid, isInvalid: props.isInvalid, ref: ref, autoComplete: 'off' }, props.children));
460
- });
461
- FormControlComponent.displayName = 'FormControlComponent';
462
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
463
- var FormControl = FormControlComponent;
464
- FormControl.FeedBack = FormControlFeedBack;
465
- FormControl.displayName = 'FormControl';
466
-
467
-
468
-
469
- /***/ }),
470
-
471
- /***/ 8385:
472
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
473
-
474
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
475
- /* harmony export */ "$": () => (/* binding */ PaginationNext)
476
- /* harmony export */ });
477
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
478
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
479
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8310);
480
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
481
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5692);
482
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__);
483
- /* harmony import */ var _fortawesome_pro_light_svg_icons_faChevronRight__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3987);
484
- /* harmony import */ var _fortawesome_pro_light_svg_icons_faChevronRight__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_pro_light_svg_icons_faChevronRight__WEBPACK_IMPORTED_MODULE_3__);
485
- var __rest = (undefined && undefined.__rest) || function (s, e) {
486
- var t = {};
487
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
488
- t[p] = s[p];
489
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
490
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
491
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
492
- t[p[i]] = s[p[i]];
493
- }
494
- return t;
495
- };
496
-
497
-
498
-
499
-
500
- var PaginationNext = function (_a) {
501
- var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
502
- var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
503
- 'pagination-button next': true,
504
- 'invisible': !show,
505
- });
506
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { className: className, onClick: props.handleNextPage },
507
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__.FontAwesomeIcon, { icon: _fortawesome_pro_light_svg_icons_faChevronRight__WEBPACK_IMPORTED_MODULE_3__.faChevronRight })));
508
- };
509
- PaginationNext.displayName = 'PaginationNext';
510
-
511
-
512
- /***/ }),
513
-
514
- /***/ 9255:
515
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
516
-
517
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
518
- /* harmony export */ "K": () => (/* binding */ PaginationPrev)
519
- /* harmony export */ });
520
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8156);
521
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
522
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8310);
523
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
524
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5692);
525
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__);
526
- /* harmony import */ var _fortawesome_pro_light_svg_icons_faChevronLeft__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2705);
527
- /* harmony import */ var _fortawesome_pro_light_svg_icons_faChevronLeft__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_pro_light_svg_icons_faChevronLeft__WEBPACK_IMPORTED_MODULE_3__);
528
- var __rest = (undefined && undefined.__rest) || function (s, e) {
529
- var t = {};
530
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
531
- t[p] = s[p];
532
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
533
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
534
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
535
- t[p[i]] = s[p[i]];
536
- }
537
- return t;
538
- };
539
-
540
-
541
-
542
-
543
- var PaginationPrev = function (_a) {
544
- var _b = _a.show, show = _b === void 0 ? true : _b, props = __rest(_a, ["show"]);
545
- var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
546
- 'pagination-button prev': true,
547
- 'invisible': !show,
548
- });
549
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { className: className, onClick: props.handlePrevPage },
550
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__.FontAwesomeIcon, { icon: _fortawesome_pro_light_svg_icons_faChevronLeft__WEBPACK_IMPORTED_MODULE_3__.faChevronLeft })));
551
- };
552
- PaginationPrev.displayName = 'PaginationPrev';
553
-
554
-
555
- /***/ }),
556
-
557
- /***/ 4915:
558
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
559
-
560
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
561
- /* harmony export */ "k3": () => (/* binding */ scrollToTop)
562
- /* harmony export */ });
563
- /* unused harmony exports findChildrenByComponent, findChildByComponent, hasChildIconOrCheckboxComponent, zip, sortObjDesc, clone, getDebouncer, deepEqual, rgbToHex */
564
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5692);
565
- /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_0__);
566
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8156);
567
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
568
- /* harmony import */ var _Form_Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8352);
569
- var __read = (undefined && undefined.__read) || function (o, n) {
570
- var m = typeof Symbol === "function" && o[Symbol.iterator];
571
- if (!m) return o;
572
- var i = m.call(o), r, ar = [], e;
573
- try {
574
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
575
- }
576
- catch (error) { e = { error: error }; }
577
- finally {
578
- try {
579
- if (r && !r.done && (m = i["return"])) m.call(i);
580
- }
581
- finally { if (e) throw e.error; }
582
- }
583
- return ar;
584
- };
585
-
586
-
587
-
588
- function findChildrenByComponent(children,
589
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
590
- component) {
591
- var ret = [];
592
- React.Children.forEach(children, function (element) {
593
- if ((element === null || element === void 0 ? void 0 : element.type) === component) {
594
- ret.push(element);
595
- }
596
- });
597
- return ret;
598
- }
599
- function findChildByComponent(children,
600
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
601
- component) {
602
- var _a, _b;
603
- return (_b = (_a = findChildrenByComponent(children, component)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
604
- }
605
- function hasChildIconOrCheckboxComponent(children) {
606
- var ret = false;
607
- React.Children.forEach(children, function (element) {
608
- if ((element === null || element === void 0 ? void 0 : element.type) != null &&
609
- ((element === null || element === void 0 ? void 0 : element.type) === FontAwesomeIcon || (element === null || element === void 0 ? void 0 : element.type) === 'i' || (element === null || element === void 0 ? void 0 : element.type) === Form.Checkbox)) {
610
- ret = true;
611
- return;
612
- }
613
- });
614
- return ret;
615
- }
616
- function scrollToTop() {
617
- window.scrollTo(0, 0);
618
- }
619
- function zip(arr1, arr2) {
620
- var ret = [];
621
- var i = 0;
622
- while (arr1[i]) {
623
- ret.push(arr1[i]);
624
- ret.push(arr2[i++]);
625
- }
626
- return ret;
627
- }
628
- // eslint-disable-next-line @typescript-eslint/ban-types
629
- function sortObjDesc(accessor) {
630
- return function (a, b) {
631
- var leftVal = 0, rightVal = 0;
632
- if ((a === null || a === void 0 ? void 0 : a[accessor]) != null) {
633
- leftVal = a === null || a === void 0 ? void 0 : a[accessor];
634
- }
635
- if ((b === null || b === void 0 ? void 0 : b[accessor]) != null) {
636
- rightVal = b === null || b === void 0 ? void 0 : b[accessor];
637
- }
638
- return leftVal > rightVal ? -1 : 1;
639
- };
640
- }
641
- function clone(ob) {
642
- return JSON.parse(JSON.stringify(ob));
643
- }
644
- function getDebouncer(delay) {
645
- if (delay === void 0) { delay = 1; }
646
- var debounceTimeout = null;
647
- return function debounce(f) {
648
- if (debounceTimeout !== null) {
649
- clearTimeout(debounceTimeout);
650
- }
651
- debounceTimeout = window.setTimeout(f, delay);
652
- };
653
- }
654
- function isObject(obj) {
655
- return typeof obj === 'object' && obj != null;
656
- }
657
- function deepEqual(obj1, obj2) {
658
- if (obj1 === obj2) {
659
- return true;
660
- }
661
- if (isObject(obj1) && isObject(obj2)) {
662
- if (Object.keys(obj1).length !== Object.keys(obj2).length) {
663
- return false;
664
- }
665
- for (var prop in obj1) {
666
- if (!deepEqual(obj1[prop], obj2[prop])) {
667
- return false;
668
- }
669
- }
670
- return true;
671
- }
672
- return false;
673
- }
674
- function componentToHex(c) {
675
- if (isNaN(c)) {
676
- throw Error('The color has not been written correctly');
677
- }
678
- var hex = c.toString(16).toUpperCase();
679
- return hex.length === 1 ? '0' + hex : hex;
680
- }
681
- function cleanSingleColor(c) {
682
- return c.replace(/"|'/g, '').trim();
683
- }
684
- function rgbToHex(rgb) {
685
- if (rgb.includes('rgba')) {
686
- throw Error('not implemented');
687
- }
688
- var _a = __read(rgb
689
- .replace('rgb', '')
690
- .replace(/\(|\)/gi, '')
691
- .split(',')
692
- .map(function (c) { return parseInt(cleanSingleColor(c), 10); }), 3), _b = _a[0], r = _b === void 0 ? 0 : _b, _c = _a[1], g = _c === void 0 ? 0 : _c, _d = _a[2], b = _d === void 0 ? 0 : _d;
693
- return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
694
- }
695
-
696
-
697
- /***/ }),
698
-
699
- /***/ 2705:
700
- /***/ ((module) => {
701
-
702
- module.exports = __WEBPACK_EXTERNAL_MODULE__2705__;
703
-
704
- /***/ }),
705
-
706
- /***/ 3987:
707
- /***/ ((module) => {
708
-
709
- module.exports = __WEBPACK_EXTERNAL_MODULE__3987__;
710
-
711
- /***/ }),
712
-
713
- /***/ 5692:
714
- /***/ ((module) => {
715
-
716
- module.exports = __WEBPACK_EXTERNAL_MODULE__5692__;
717
-
718
- /***/ }),
719
-
720
- /***/ 8310:
721
- /***/ ((module) => {
722
-
723
- module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
724
-
725
- /***/ }),
726
-
727
- /***/ 8156:
728
- /***/ ((module) => {
729
-
730
- module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
731
-
732
- /***/ }),
733
-
734
- /***/ 8721:
735
- /***/ ((module) => {
736
-
737
- module.exports = __WEBPACK_EXTERNAL_MODULE__8721__;
738
-
739
- /***/ }),
740
-
741
- /***/ 1082:
742
- /***/ ((module) => {
743
-
744
- module.exports = __WEBPACK_EXTERNAL_MODULE__1082__;
745
-
746
- /***/ }),
747
-
748
- /***/ 8763:
749
- /***/ ((module) => {
750
-
751
- module.exports = __WEBPACK_EXTERNAL_MODULE__8763__;
752
-
753
- /***/ }),
754
-
755
- /***/ 9924:
756
- /***/ ((module) => {
757
-
758
- module.exports = __WEBPACK_EXTERNAL_MODULE__9924__;
759
-
760
- /***/ }),
761
-
762
- /***/ 4329:
763
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
764
-
765
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
766
- /* harmony export */ "Z": () => (/* binding */ _typeof)
767
- /* harmony export */ });
768
- function _typeof(obj) {
769
- "@babel/helpers - typeof";
770
-
771
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
772
- return typeof obj;
773
- } : function (obj) {
774
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
775
- }, _typeof(obj);
776
- }
777
-
778
- /***/ })
779
-
780
- /******/ });
781
- /************************************************************************/
782
- /******/ // The module cache
783
- /******/ var __webpack_module_cache__ = {};
784
- /******/
785
- /******/ // The require function
786
- /******/ function __webpack_require__(moduleId) {
787
- /******/ // Check if module is in cache
788
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
789
- /******/ if (cachedModule !== undefined) {
790
- /******/ return cachedModule.exports;
791
- /******/ }
792
- /******/ // Create a new module (and put it into the cache)
793
- /******/ var module = __webpack_module_cache__[moduleId] = {
794
- /******/ // no module.id needed
795
- /******/ // no module.loaded needed
796
- /******/ exports: {}
797
- /******/ };
798
- /******/
799
- /******/ // Execute the module function
800
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
801
- /******/
802
- /******/ // Return the exports of the module
803
- /******/ return module.exports;
804
- /******/ }
805
- /******/
806
- /******/ // expose the modules object (__webpack_modules__)
807
- /******/ __webpack_require__.m = __webpack_modules__;
808
- /******/
809
- /************************************************************************/
810
- /******/ /* webpack/runtime/chunk loaded */
811
- /******/ (() => {
812
- /******/ var deferred = [];
813
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
814
- /******/ if(chunkIds) {
815
- /******/ priority = priority || 0;
816
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
817
- /******/ deferred[i] = [chunkIds, fn, priority];
818
- /******/ return;
819
- /******/ }
820
- /******/ var notFulfilled = Infinity;
821
- /******/ for (var i = 0; i < deferred.length; i++) {
822
- /******/ var [chunkIds, fn, priority] = deferred[i];
823
- /******/ var fulfilled = true;
824
- /******/ for (var j = 0; j < chunkIds.length; j++) {
825
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
826
- /******/ chunkIds.splice(j--, 1);
827
- /******/ } else {
828
- /******/ fulfilled = false;
829
- /******/ if(priority < notFulfilled) notFulfilled = priority;
830
- /******/ }
831
- /******/ }
832
- /******/ if(fulfilled) {
833
- /******/ deferred.splice(i--, 1)
834
- /******/ var r = fn();
835
- /******/ if (r !== undefined) result = r;
836
- /******/ }
837
- /******/ }
838
- /******/ return result;
839
- /******/ };
840
- /******/ })();
841
- /******/
842
- /******/ /* webpack/runtime/compat get default export */
843
- /******/ (() => {
844
- /******/ // getDefaultExport function for compatibility with non-harmony modules
845
- /******/ __webpack_require__.n = (module) => {
846
- /******/ var getter = module && module.__esModule ?
847
- /******/ () => (module['default']) :
848
- /******/ () => (module);
849
- /******/ __webpack_require__.d(getter, { a: getter });
850
- /******/ return getter;
851
- /******/ };
852
- /******/ })();
853
- /******/
854
- /******/ /* webpack/runtime/define property getters */
855
- /******/ (() => {
856
- /******/ // define getter functions for harmony exports
857
- /******/ __webpack_require__.d = (exports, definition) => {
858
- /******/ for(var key in definition) {
859
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
860
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
861
- /******/ }
862
- /******/ }
863
- /******/ };
864
- /******/ })();
865
- /******/
866
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
867
- /******/ (() => {
868
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
869
- /******/ })();
870
- /******/
871
- /******/ /* webpack/runtime/make namespace object */
872
- /******/ (() => {
873
- /******/ // define __esModule on exports
874
- /******/ __webpack_require__.r = (exports) => {
875
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
876
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
877
- /******/ }
878
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
879
- /******/ };
880
- /******/ })();
881
- /******/
882
- /******/ /* webpack/runtime/jsonp chunk loading */
883
- /******/ (() => {
884
- /******/ // no baseURI
885
- /******/
886
- /******/ // object to store loaded and loading chunks
887
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
888
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
889
- /******/ var installedChunks = {
890
- /******/ 1787: 0,
891
- /******/ 5785: 0
892
- /******/ };
893
- /******/
894
- /******/ // no chunk on demand loading
895
- /******/
896
- /******/ // no prefetching
897
- /******/
898
- /******/ // no preloaded
899
- /******/
900
- /******/ // no HMR
901
- /******/
902
- /******/ // no HMR manifest
903
- /******/
904
- /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
905
- /******/
906
- /******/ // install a JSONP callback for chunk loading
907
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
908
- /******/ var [chunkIds, moreModules, runtime] = data;
909
- /******/ // add "moreModules" to the modules object,
910
- /******/ // then flag all "chunkIds" as loaded and fire callback
911
- /******/ var moduleId, chunkId, i = 0;
912
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
913
- /******/ for(moduleId in moreModules) {
914
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
915
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
916
- /******/ }
917
- /******/ }
918
- /******/ if(runtime) var result = runtime(__webpack_require__);
919
- /******/ }
920
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
921
- /******/ for(;i < chunkIds.length; i++) {
922
- /******/ chunkId = chunkIds[i];
923
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
924
- /******/ installedChunks[chunkId][0]();
925
- /******/ }
926
- /******/ installedChunks[chunkIds[i]] = 0;
927
- /******/ }
928
- /******/ return __webpack_require__.O(result);
929
- /******/ }
930
- /******/
931
- /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
932
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
933
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
934
- /******/ })();
935
- /******/
936
- /************************************************************************/
937
- /******/
938
- /******/ // startup
939
- /******/ // Load entry module and return exports
940
- /******/ // This entry module depends on other loaded chunks and execution need to be delayed
941
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [5785], () => (__webpack_require__(3871)))
942
- /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
943
- /******/
944
- /******/ return __webpack_exports__;
945
- /******/ })()
946
- ;
947
- });
948
- //# sourceMappingURL=index.js.map
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@fortawesome/pro-light-svg-icons/faChevronLeft"),require("@fortawesome/pro-light-svg-icons/faChevronRight"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/Pagination")):"function"==typeof define&&define.amd?define("atoka-design-system",["@fortawesome/pro-light-svg-icons/faChevronLeft","@fortawesome/pro-light-svg-icons/faChevronRight","@fortawesome/react-fontawesome","classnames","react","react-bootstrap/Form","react-bootstrap/FormControl","react-bootstrap/FormText","react-bootstrap/Pagination"],t):"object"==typeof exports?exports["atoka-design-system"]=t(require("@fortawesome/pro-light-svg-icons/faChevronLeft"),require("@fortawesome/pro-light-svg-icons/faChevronRight"),require("@fortawesome/react-fontawesome"),require("classnames"),require("react"),require("react-bootstrap/Form"),require("react-bootstrap/FormControl"),require("react-bootstrap/FormText"),require("react-bootstrap/Pagination")):e["atoka-design-system"]=t(e["@fortawesome/pro-light-svg-icons/faChevronLeft"],e["@fortawesome/pro-light-svg-icons/faChevronRight"],e["@fortawesome/react-fontawesome"],e.classnames,e.react,e["react-bootstrap/Form"],e["react-bootstrap/FormControl"],e["react-bootstrap/FormText"],e["react-bootstrap/Pagination"])}(self,(function(e,t,o,r,n,a,i,l,s){return(()=>{"use strict";var c,p={6627:(e,t,o)=>{o.d(t,{ZP:()=>l});var r=o(4329);function n(e){return n="function"==typeof Symbol&&"symbol"===(0,r.Z)(Symbol.iterator)?function(e){return(0,r.Z)(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,r.Z)(e)},n(e)}function a(e,t,o){var r=o.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(n(r)));var a=!1;return{configurable:!0,get:function(){if(a||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof r)return r;var o=r.bind(this);return a=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return o},set:function(e){r=e,delete this[t]}}),a=!1,o},set:function(e){r=e}}}function i(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var o=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof o.value&&Object.defineProperty(e.prototype,t,a(e,t,o))}})),e}function l(){return 1===arguments.length?i.apply(void 0,arguments):a.apply(void 0,arguments)}},3871:(e,t,o)=>{o.r(t),o.d(t,{CursorPagination:()=>v});var r,n=o(6627),a=o(8310),i=o.n(a),l=o(8156),s=o.n(l),c=o(9924),p=o.n(c),u=o(4915),f=o(9255),y=o(8385),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),d=function(e,t,o,r){var n,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(i=(a<3?n(i):a>3?n(t,o,i):n(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},b=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.handlePreviousPage=function(){null!=this.props.previousPage&&(this.props.onSetPage(this.props.previousPage),(0,u.k3)())},t.prototype.handleNextPage=function(){null!=this.props.nextPage&&(this.props.onSetPage(this.props.nextPage),(0,u.k3)())},t.prototype.renderPrev=function(){return null==this.props.previousPage?null:s().createElement(f.K,{handlePrevPage:this.handlePreviousPage})},t.prototype.renderNext=function(){return null==this.props.nextPage?null:s().createElement(y.$,{handleNextPage:this.handleNextPage})},t.prototype.render=function(){if(null==this.props.previousPage&&null==this.props.nextPage)return null;var e=i()(this.props.className,"atoka-pagination","justify-content-center align-items-center");return s().createElement(p(),{className:e},this.renderPrev(),this.renderNext())},t.displayName="CursorPagination",d([n.ZP,b("design:type",Function),b("design:paramtypes",[]),b("design:returntype",void 0)],t.prototype,"handlePreviousPage",null),d([n.ZP,b("design:type",Function),b("design:paramtypes",[]),b("design:returntype",void 0)],t.prototype,"handleNextPage",null),t}(s().PureComponent)},8352:(e,t,o)=>{var r=o(8156),n=o.n(r),a=o(8310),i=o.n(a),l=o(8721),s=o.n(l),c=n().memo((function(e){var t=i()(null==e?void 0:e.className,"atoka-form-label");return n().createElement(s().Label,{className:t},e.children)}));c.displayName="FormLabel";var p=o(2048),u=function(){return u=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},u.apply(this,arguments)},f=function(e){var t,o=i()("atoka-form-checkbox",null==e?void 0:e.className);return n().createElement(s().Check,u({type:"checkbox"},e,{custom:!0,className:o,label:null!==(t=e.label)&&void 0!==t?t:""}))};f.displayName="FormCheckbox";var y=function(){return y=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},y.apply(this,arguments)},m=function(e){var t,o=i()(null==e?void 0:e.className,"atoka-form-radio");return n().createElement(s().Check,y({type:"radio"},e,{custom:!0,className:o,label:null!==(t=e.label)&&void 0!==t?t:""}))};m.displayName="FormRadio";var d=o(8763),b=o.n(d),v=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]])}return o},h=n().memo((function(e){var t=e.children,o=v(e,["children"]),r=i()("d-block",null==o?void 0:o.className);return n().createElement(b(),{bsPrefix:"atoka-form-help",className:r},t)}));h.displayName="FormHelp";var g=function(){return g=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},g.apply(this,arguments)},O=function(e){var t=i()(null==e?void 0:e.className,"atoka-form");return n().createElement(s(),g({},e,{className:t}),e.children)};O.displayName="Form",O.Control=p.N,O.Label=c,O.Checkbox=f,O.Radio=m,O.File=s().File,O.Switch=s().Switch,O.Help=h,O.Group=s().Group},2048:(e,t,o)=>{o.d(t,{N:()=>y});var r=o(8156),n=o.n(r),a=o(8310),i=o.n(a),l=o(1082),s=o.n(l),c=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]])}return o},p=n().memo((function(e){var t=e.show,o=void 0===t||t,r=c(e,["show"]),a=i()(null==r?void 0:r.className,"atoka-form-control-feedback",{"d-block":o});return n().createElement(s().Feedback,{type:r.type,className:a},r.children)}));p.displayName=" FormControlFeedBack";var u=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]])}return o},f=n().forwardRef((function(e,t){var o=e.size,r=void 0===o?"md":o,a=u(e,["size"]),l=i()("atoka-form-control",null==a?void 0:a.className,{"atoka-shadow":a.withShadow,disabled:a.disabled});return n().createElement(s(),{as:a.as,rows:a.rows,cols:a.cols,placeholder:a.placeholder,className:l,disabled:a.disabled,readOnly:a.readOnly,value:a.value,onChange:a.onChange,onKeyPress:a.onKeyPress,onKeyDown:a.onKeyDown,defaultValue:a.defaultValue,size:"md"===r?void 0:r,type:a.type,id:a.id,isValid:a.isValid,isInvalid:a.isInvalid,ref:t,autoComplete:"off"},a.children)}));f.displayName="FormControlComponent";var y=f;y.FeedBack=p,y.displayName="FormControl"},8385:(e,t,o)=>{o.d(t,{$:()=>p});var r=o(8156),n=o.n(r),a=o(8310),i=o.n(a),l=o(5692),s=o(3987),c=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]])}return o},p=function(e){var t=e.show,o=void 0===t||t,r=c(e,["show"]),a=i()({"pagination-button next":!0,invisible:!o});return n().createElement("span",{className:a,onClick:r.handleNextPage},n().createElement(l.FontAwesomeIcon,{icon:s.faChevronRight}))};p.displayName="PaginationNext"},9255:(e,t,o)=>{o.d(t,{K:()=>p});var r=o(8156),n=o.n(r),a=o(8310),i=o.n(a),l=o(5692),s=o(2705),c=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]])}return o},p=function(e){var t=e.show,o=void 0===t||t,r=c(e,["show"]),a=i()({"pagination-button prev":!0,invisible:!o});return n().createElement("span",{className:a,onClick:r.handlePrevPage},n().createElement(l.FontAwesomeIcon,{icon:s.faChevronLeft}))};p.displayName="PaginationPrev"},4915:(e,t,o)=>{o.d(t,{k3:()=>r});o(5692),o(8156),o(8352);function r(){window.scrollTo(0,0)}},2705:t=>{t.exports=e},3987:e=>{e.exports=t},5692:e=>{e.exports=o},8310:e=>{e.exports=r},8156:e=>{e.exports=n},8721:e=>{e.exports=a},1082:e=>{e.exports=i},8763:e=>{e.exports=l},9924:e=>{e.exports=s},4329:(e,t,o)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}o.d(t,{Z:()=>r})}},u={};function f(e){var t=u[e];if(void 0!==t)return t.exports;var o=u[e]={exports:{}};return p[e](o,o.exports,f),o.exports}f.m=p,c=[],f.O=(e,t,o,r)=>{if(!t){var n=1/0;for(s=0;s<c.length;s++){for(var[t,o,r]=c[s],a=!0,i=0;i<t.length;i++)(!1&r||n>=r)&&Object.keys(f.O).every((e=>f.O[e](t[i])))?t.splice(i--,1):(a=!1,r<n&&(n=r));if(a){c.splice(s--,1);var l=o();void 0!==l&&(e=l)}}return e}r=r||0;for(var s=c.length;s>0&&c[s-1][2]>r;s--)c[s]=c[s-1];c[s]=[t,o,r]},f.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return f.d(t,{a:t}),t},f.d=(e,t)=>{for(var o in t)f.o(t,o)&&!f.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={1787:0,8699:0};f.O.j=t=>0===e[t];var t=(t,o)=>{var r,n,[a,i,l]=o,s=0;if(a.some((t=>0!==e[t]))){for(r in i)f.o(i,r)&&(f.m[r]=i[r]);if(l)var c=l(f)}for(t&&t(o);s<a.length;s++)n=a[s],f.o(e,n)&&e[n]&&e[n][0](),e[a[s]]=0;return f.O(c)},o=self.webpackChunkatoka_design_system=self.webpackChunkatoka_design_system||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var y=f.O(void 0,[8699],(()=>f(3871)));return y=f.O(y)})()}));