argous 1.2.134 → 1.2.135

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 (256) hide show
  1. package/dist/actions/index.d.ts +58 -0
  2. package/dist/actions/index.js +59 -0
  3. package/dist/api/WebSocket.d.ts +25 -0
  4. package/dist/api/WebSocket.js +170 -0
  5. package/dist/api/index.d.ts +63 -0
  6. package/dist/api/index.js +762 -0
  7. package/dist/api/ws.d.ts +4 -0
  8. package/dist/api/ws.js +36 -0
  9. package/dist/components/Alert/Alert.d.ts +8 -0
  10. package/dist/components/Alert/Alert.js +68 -0
  11. package/dist/components/Alert/index.d.ts +2 -0
  12. package/dist/components/Alert/index.js +8 -0
  13. package/dist/components/ArgousAction/ArgousAction.d.ts +8 -0
  14. package/dist/components/ArgousAction/ArgousAction.js +87 -0
  15. package/dist/components/ArgousAction/index.d.ts +2 -0
  16. package/dist/components/ArgousAction/index.js +8 -0
  17. package/dist/components/ArgousAvatar/ArgousAvatar.d.ts +14 -0
  18. package/dist/components/ArgousAvatar/ArgousAvatar.js +124 -0
  19. package/dist/components/ArgousAvatar/index.d.ts +2 -0
  20. package/dist/components/ArgousAvatar/index.js +8 -0
  21. package/dist/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +76 -0
  22. package/dist/components/ArgousComplexPagination/ArgousComplexPagination.js +156 -0
  23. package/dist/components/ArgousComplexPagination/index.d.ts +2 -0
  24. package/dist/components/ArgousComplexPagination/index.js +8 -0
  25. package/dist/components/ArgousComplexTable/ArgousComplexTable.d.ts +131 -0
  26. package/dist/components/ArgousComplexTable/ArgousComplexTable.js +333 -0
  27. package/dist/components/ArgousComplexTable/index.d.ts +2 -0
  28. package/dist/components/ArgousComplexTable/index.js +8 -0
  29. package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +177 -0
  30. package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.js +155 -0
  31. package/dist/components/ArgousComplexTableBody/index.d.ts +2 -0
  32. package/dist/components/ArgousComplexTableBody/index.js +8 -0
  33. package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.d.ts +73 -0
  34. package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.js +88 -0
  35. package/dist/components/ArgousComplexTableHead/index.d.ts +2 -0
  36. package/dist/components/ArgousComplexTableHead/index.js +8 -0
  37. package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.d.ts +58 -0
  38. package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +70 -0
  39. package/dist/components/ArgousComplexTableToolbar/index.d.ts +2 -0
  40. package/dist/components/ArgousComplexTableToolbar/index.js +8 -0
  41. package/dist/components/ArgousInput/ArgousInput.d.ts +8 -0
  42. package/dist/components/ArgousInput/ArgousInput.js +578 -0
  43. package/dist/components/ArgousInput/index.d.ts +2 -0
  44. package/dist/components/ArgousInput/index.js +8 -0
  45. package/dist/components/ArgousPagination/ArgousPagination.d.ts +8 -0
  46. package/dist/components/ArgousPagination/ArgousPagination.js +29 -0
  47. package/dist/components/ArgousPagination/index.d.ts +2 -0
  48. package/dist/components/ArgousPagination/index.js +8 -0
  49. package/dist/components/ArgousProgressBar/ArgousProgressBar.d.ts +22 -0
  50. package/dist/components/ArgousProgressBar/ArgousProgressBar.js +162 -0
  51. package/dist/components/ArgousProgressBar/index.d.ts +2 -0
  52. package/dist/components/ArgousProgressBar/index.js +8 -0
  53. package/dist/components/ArgousSimpleTable/ArgousSimpleTable.d.ts +8 -0
  54. package/dist/components/ArgousSimpleTable/ArgousSimpleTable.js +201 -0
  55. package/dist/components/ArgousSimpleTable/index.d.ts +2 -0
  56. package/dist/components/ArgousSimpleTable/index.js +8 -0
  57. package/dist/components/AutoComplete/AutoComplete.d.ts +8 -0
  58. package/dist/components/AutoComplete/AutoComplete.js +185 -0
  59. package/dist/components/AutoComplete/index.d.ts +2 -0
  60. package/dist/components/AutoComplete/index.js +8 -0
  61. package/dist/components/BarChart/BarChart.d.ts +8 -0
  62. package/dist/components/BarChart/BarChart.js +125 -0
  63. package/dist/components/BarChart/index.d.ts +2 -0
  64. package/dist/components/BarChart/index.js +8 -0
  65. package/dist/components/BarraFerramentas/BarraFerramentas.d.ts +21 -0
  66. package/dist/components/BarraFerramentas/BarraFerramentas.js +228 -0
  67. package/dist/components/BarraFerramentas/index.d.ts +2 -0
  68. package/dist/components/BarraFerramentas/index.js +8 -0
  69. package/dist/components/Button/Button.d.ts +8 -0
  70. package/dist/components/Button/Button.js +144 -0
  71. package/dist/components/Button/index.d.ts +2 -0
  72. package/dist/components/Button/index.js +8 -0
  73. package/dist/components/Cabecalho/Cabecalho.d.ts +8 -0
  74. package/dist/components/Cabecalho/Cabecalho.js +231 -0
  75. package/dist/components/Cabecalho/index.d.ts +2 -0
  76. package/dist/components/Cabecalho/index.js +8 -0
  77. package/dist/components/Calendar/Calendar.d.ts +8 -0
  78. package/dist/components/Calendar/Calendar.js +171 -0
  79. package/dist/components/Calendar/index.d.ts +2 -0
  80. package/dist/components/Calendar/index.js +8 -0
  81. package/dist/components/CartaoUsuario/CartaoUsuario.d.ts +9 -0
  82. package/dist/components/CartaoUsuario/CartaoUsuario.js +165 -0
  83. package/dist/components/CartaoUsuario/index.d.ts +2 -0
  84. package/dist/components/CartaoUsuario/index.js +8 -0
  85. package/dist/components/Collapse/Collapse.d.ts +60 -0
  86. package/dist/components/Collapse/Collapse.js +290 -0
  87. package/dist/components/Collapse/index.d.ts +3 -0
  88. package/dist/components/Collapse/index.js +8 -0
  89. package/dist/components/Compartilhar/Compartilhar.d.ts +7 -0
  90. package/dist/components/Compartilhar/Compartilhar.js +266 -0
  91. package/dist/components/Compartilhar/index.d.ts +2 -0
  92. package/dist/components/Compartilhar/index.js +8 -0
  93. package/dist/components/ConfirmModal/BasicModal.d.ts +38 -0
  94. package/dist/components/ConfirmModal/BasicModal.js +29 -0
  95. package/dist/components/ConfirmModal/ModalProvider.d.ts +5 -0
  96. package/dist/components/ConfirmModal/ModalProvider.js +108 -0
  97. package/dist/components/ConfirmModal/WrapperModal.d.ts +18 -0
  98. package/dist/components/ConfirmModal/WrapperModal.js +41 -0
  99. package/dist/components/ConfirmModal/index.d.ts +20 -0
  100. package/dist/components/ConfirmModal/index.js +25 -0
  101. package/dist/components/DropArea/DropArea.d.ts +21 -0
  102. package/dist/components/DropArea/DropArea.js +149 -0
  103. package/dist/components/DropArea/Html5FileSelector.d.ts +16 -0
  104. package/dist/components/DropArea/Html5FileSelector.js +229 -0
  105. package/dist/components/DropArea/index.d.ts +2 -0
  106. package/dist/components/DropArea/index.js +8 -0
  107. package/dist/components/Editor/Events.d.ts +79 -0
  108. package/dist/components/Editor/Events.js +9 -0
  109. package/dist/components/Editor/ScriptLoader.d.ts +20 -0
  110. package/dist/components/Editor/ScriptLoader.js +70 -0
  111. package/dist/components/Editor/TinyMCE.d.ts +10 -0
  112. package/dist/components/Editor/TinyMCE.js +16 -0
  113. package/dist/components/Editor/Utils.d.ts +19 -0
  114. package/dist/components/Editor/Utils.js +62 -0
  115. package/dist/components/Editor/components/Editor.d.ts +67 -0
  116. package/dist/components/Editor/components/Editor.js +351 -0
  117. package/dist/components/Editor/components/EditorPropTypes.d.ts +18 -0
  118. package/dist/components/Editor/components/EditorPropTypes.js +110 -0
  119. package/dist/components/Editor/index.d.ts +9 -0
  120. package/dist/components/Editor/index.js +12 -0
  121. package/dist/components/Editor/tinymce/tinymce.d.ts +2963 -0
  122. package/dist/components/FilePreparer/FilePreparer.d.ts +26 -0
  123. package/dist/components/FilePreparer/FilePreparer.js +279 -0
  124. package/dist/components/FilePreparer/index.d.ts +2 -0
  125. package/dist/components/FilePreparer/index.js +8 -0
  126. package/dist/components/FileUploader/FileUploader.d.ts +9 -0
  127. package/dist/components/FileUploader/FileUploader.js +445 -0
  128. package/dist/components/FileUploader/index.d.ts +2 -0
  129. package/dist/components/FileUploader/index.js +8 -0
  130. package/dist/components/FormVisualizer/FormVisualizer.d.ts +92 -0
  131. package/dist/components/FormVisualizer/FormVisualizer.js +264 -0
  132. package/dist/components/FormVisualizer/index.d.ts +2 -0
  133. package/dist/components/FormVisualizer/index.js +8 -0
  134. package/dist/components/Highlight/Highlight.d.ts +7 -0
  135. package/dist/components/Highlight/Highlight.js +75 -0
  136. package/dist/components/Highlight/index.d.ts +2 -0
  137. package/dist/components/Highlight/index.js +8 -0
  138. package/dist/components/ImageResize/ImageResize.d.ts +28 -0
  139. package/dist/components/ImageResize/ImageResize.js +472 -0
  140. package/dist/components/ImageResize/index.d.ts +2 -0
  141. package/dist/components/ImageResize/index.js +8 -0
  142. package/dist/components/ImageResizeButton/ImageResizeButton.d.ts +26 -0
  143. package/dist/components/ImageResizeButton/ImageResizeButton.js +89 -0
  144. package/dist/components/ImageResizeButton/index.d.ts +2 -0
  145. package/dist/components/ImageResizeButton/index.js +8 -0
  146. package/dist/components/Input/Input.d.ts +8 -0
  147. package/dist/components/Input/Input.js +328 -0
  148. package/dist/components/Input/index.d.ts +2 -0
  149. package/dist/components/Input/index.js +8 -0
  150. package/dist/components/InputTags/InputTags.d.ts +8 -0
  151. package/dist/components/InputTags/InputTags.js +129 -0
  152. package/dist/components/InputTags/index.d.ts +2 -0
  153. package/dist/components/InputTags/index.js +8 -0
  154. package/dist/components/ListSelect/ListSelect.d.ts +8 -0
  155. package/dist/components/ListSelect/ListSelect.js +126 -0
  156. package/dist/components/ListSelect/index.d.ts +2 -0
  157. package/dist/components/ListSelect/index.js +8 -0
  158. package/dist/components/MaterialButton/MaterialButton.d.ts +13 -0
  159. package/dist/components/MaterialButton/MaterialButton.js +192 -0
  160. package/dist/components/MaterialButton/index.d.ts +2 -0
  161. package/dist/components/MaterialButton/index.js +8 -0
  162. package/dist/components/MenuBar/MenuBar.d.ts +8 -0
  163. package/dist/components/MenuBar/MenuBar.js +157 -0
  164. package/dist/components/MenuBar/index.d.ts +2 -0
  165. package/dist/components/MenuBar/index.js +8 -0
  166. package/dist/components/MonthPicker/MonthPicker.d.ts +8 -0
  167. package/dist/components/MonthPicker/MonthPicker.js +288 -0
  168. package/dist/components/MonthPicker/index.d.ts +2 -0
  169. package/dist/components/MonthPicker/index.js +8 -0
  170. package/dist/components/MultipleSelect/MultipleSelect.d.ts +8 -0
  171. package/dist/components/MultipleSelect/MultipleSelect.js +139 -0
  172. package/dist/components/MultipleSelect/index.d.ts +2 -0
  173. package/dist/components/MultipleSelect/index.js +8 -0
  174. package/dist/components/OtpInput/OtpInput.d.ts +18 -0
  175. package/dist/components/OtpInput/OtpInput.js +207 -0
  176. package/dist/components/OtpInput/index.d.ts +2 -0
  177. package/dist/components/OtpInput/index.js +8 -0
  178. package/dist/components/OutputText/OutputText.d.ts +8 -0
  179. package/dist/components/OutputText/OutputText.js +89 -0
  180. package/dist/components/OutputText/index.d.ts +2 -0
  181. package/dist/components/OutputText/index.js +8 -0
  182. package/dist/components/Pagination/Pagination.d.ts +8 -0
  183. package/dist/components/Pagination/Pagination.js +64 -0
  184. package/dist/components/Pagination/index.d.ts +2 -0
  185. package/dist/components/Pagination/index.js +8 -0
  186. package/dist/components/Programa/Programa.d.ts +31 -0
  187. package/dist/components/Programa/Programa.js +201 -0
  188. package/dist/components/Programa/index.d.ts +2 -0
  189. package/dist/components/Programa/index.js +8 -0
  190. package/dist/components/ProgressBar/ProgressBar.d.ts +8 -0
  191. package/dist/components/ProgressBar/ProgressBar.js +98 -0
  192. package/dist/components/ProgressBar/index.d.ts +2 -0
  193. package/dist/components/ProgressBar/index.js +8 -0
  194. package/dist/components/Select/Select.d.ts +8 -0
  195. package/dist/components/Select/Select.js +142 -0
  196. package/dist/components/Select/index.d.ts +2 -0
  197. package/dist/components/Select/index.js +8 -0
  198. package/dist/components/SimpleTable/SimpleTable.d.ts +13 -0
  199. package/dist/components/SimpleTable/SimpleTable.js +390 -0
  200. package/dist/components/SimpleTable/index.d.ts +2 -0
  201. package/dist/components/SimpleTable/index.js +10 -0
  202. package/dist/components/Stepper/Stepper.d.ts +54 -0
  203. package/dist/components/Stepper/Stepper.js +157 -0
  204. package/dist/components/Stepper/index.d.ts +2 -0
  205. package/dist/components/Stepper/index.js +8 -0
  206. package/dist/components/TablePicker/TablePicker.d.ts +8 -0
  207. package/dist/components/TablePicker/TablePicker.js +222 -0
  208. package/dist/components/TablePicker/index.d.ts +2 -0
  209. package/dist/components/TablePicker/index.js +8 -0
  210. package/dist/components/Tabs/Tabs.d.ts +8 -0
  211. package/dist/components/Tabs/Tabs.js +76 -0
  212. package/dist/components/Tabs/index.d.ts +2 -0
  213. package/dist/components/Tabs/index.js +8 -0
  214. package/dist/components/TextArea/TextArea.d.ts +8 -0
  215. package/dist/components/TextArea/TextArea.js +148 -0
  216. package/dist/components/TextArea/index.d.ts +2 -0
  217. package/dist/components/TextArea/index.js +8 -0
  218. package/dist/components/ThreadLog/ThreadLog.d.ts +8 -0
  219. package/dist/components/ThreadLog/ThreadLog.js +225 -0
  220. package/dist/components/ThreadLog/index.d.ts +2 -0
  221. package/dist/components/ThreadLog/index.js +8 -0
  222. package/dist/components/UtilAutoComplete/UtilAutoComplete.d.ts +93 -0
  223. package/dist/components/UtilAutoComplete/UtilAutoComplete.js +188 -0
  224. package/dist/components/UtilAutoComplete/index.d.ts +2 -0
  225. package/dist/components/UtilAutoComplete/index.js +8 -0
  226. package/dist/components/index.d.ts +148 -0
  227. package/dist/components/index.js +162 -0
  228. package/dist/fieldsRedux/createField.d.ts +8 -0
  229. package/dist/fieldsRedux/createField.js +149 -0
  230. package/dist/fieldsRedux/fieldsRedux.d.ts +71 -0
  231. package/dist/fieldsRedux/fieldsRedux.js +436 -0
  232. package/dist/fieldsRedux/index.d.ts +4 -0
  233. package/dist/fieldsRedux/index.js +27 -0
  234. package/dist/fieldsRedux/passFields.d.ts +5 -0
  235. package/dist/fieldsRedux/passFields.js +107 -0
  236. package/dist/reducers/argous.d.ts +76 -0
  237. package/dist/reducers/argous.js +63 -0
  238. package/dist/reducers/index.d.ts +4 -0
  239. package/dist/reducers/index.js +9 -0
  240. package/dist/types.d.ts +144 -0
  241. package/dist/utils/api.d.ts +29 -0
  242. package/dist/utils/api.js +255 -0
  243. package/dist/utils/config.d.ts +3 -0
  244. package/dist/utils/config.js +13 -0
  245. package/dist/utils/date.d.ts +8 -0
  246. package/dist/utils/date.js +60 -0
  247. package/dist/utils/index.d.ts +61 -0
  248. package/dist/utils/index.js +383 -0
  249. package/dist/utils/rippleEffect.d.ts +2 -0
  250. package/dist/utils/rippleEffect.js +173 -0
  251. package/dist/utils/store.d.ts +3 -0
  252. package/dist/utils/store.js +12 -0
  253. package/dist/utils/xmlToJson.d.ts +2 -0
  254. package/dist/utils/xmlToJson.js +158 -0
  255. package/lib/api/index.js +16 -0
  256. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ export function connectArgousWS(data: any): void;
2
+ export function getArgousWS(data: any): any;
3
+ export function disconnect(): void;
4
+ export function enviaMensagem(data: any): void;
package/dist/api/ws.js ADDED
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.enviaMensagem = exports.disconnect = exports.getArgousWS = exports.connectArgousWS = void 0;
15
+ var _1 = require("./");
16
+ var config_1 = require("../utils/config");
17
+ var api = function () { return "" + (config_1.getConfig().ssl ? 'wss' : 'ws') + _1.server() + "ws"; };
18
+ var argousWS = null;
19
+ var connectArgousWS = function (data) {
20
+ argousWS = new WebSocket(api());
21
+ };
22
+ exports.connectArgousWS = connectArgousWS;
23
+ var getArgousWS = function (data) {
24
+ return argousWS;
25
+ };
26
+ exports.getArgousWS = getArgousWS;
27
+ var disconnect = function () {
28
+ if (argousWS)
29
+ argousWS.close();
30
+ };
31
+ exports.disconnect = disconnect;
32
+ var enviaMensagem = function (data) {
33
+ var argousWS = exports.getArgousWS();
34
+ argousWS.send(JSON.stringify(__assign(__assign({}, _1.headers()), data)));
35
+ };
36
+ exports.enviaMensagem = enviaMensagem;
@@ -0,0 +1,8 @@
1
+ export interface AlertProps {}
2
+ /**
3
+ * @deprecated
4
+ * @param props
5
+ */
6
+ declare function Alert(props: AlertProps): JSX.Element
7
+
8
+ export default Alert;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ var prop_types_1 = __importDefault(require("prop-types"));
41
+ var react_1 = __importStar(require("react"));
42
+ /**
43
+ * @deprecated
44
+ */
45
+ var Alert = /** @class */ (function (_super) {
46
+ __extends(Alert, _super);
47
+ function Alert() {
48
+ return _super !== null && _super.apply(this, arguments) || this;
49
+ }
50
+ Alert.prototype.render = function () {
51
+ var _a = this.props, titulo = _a.titulo, mensagem = _a.mensagem, _b = _a.type, type = _b === void 0 ? 'info' : _b, small = _a.small, onClose = _a.onClose, _c = _a.className, className = _c === void 0 ? '' : _c, style = _a.style;
52
+ return (react_1.default.createElement("div", null, ((mensagem) && (react_1.default.createElement("div", { style: style, className: "pg-alert pg-alert-dismissible reset-margin pg-alert-" + type + " " + (small && 'pg-alert-sm') + " " + className },
53
+ (onClose && (react_1.default.createElement("button", { onClick: onClose, type: 'button', className: 'close' }, "\u00D7"))),
54
+ (titulo && (react_1.default.createElement("h4", null, titulo))),
55
+ (mensagem && (react_1.default.createElement("p", null, mensagem))))))));
56
+ };
57
+ return Alert;
58
+ }(react_1.Component));
59
+ Alert.propTypes = {
60
+ titulo: prop_types_1.default.string,
61
+ mensagem: prop_types_1.default.string,
62
+ type: prop_types_1.default.oneOf(['info', 'success', 'warning', 'danger']),
63
+ small: prop_types_1.default.bool,
64
+ onClose: prop_types_1.default.func,
65
+ className: prop_types_1.default.string,
66
+ style: prop_types_1.default.object,
67
+ };
68
+ exports.default = Alert;
@@ -0,0 +1,2 @@
1
+ export { default } from './Alert';
2
+ export * from './Alert';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = void 0;
7
+ var Alert_1 = require("./Alert");
8
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Alert_1).default; } });
@@ -0,0 +1,8 @@
1
+ export interface ArgousActionProps {}
2
+ /**
3
+ * @deprecated
4
+ * @param props
5
+ */
6
+ declare function ArgousAction(props: ArgousActionProps): JSX.Element
7
+
8
+ export default ArgousAction;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ var Button_1 = __importDefault(require("../Button"));
41
+ var prop_types_1 = __importDefault(require("prop-types"));
42
+ var react_1 = __importStar(require("react"));
43
+ /**
44
+ * @deprecated
45
+ */
46
+ var ArgousAction = /** @class */ (function (_super) {
47
+ __extends(ArgousAction, _super);
48
+ function ArgousAction() {
49
+ return _super !== null && _super.apply(this, arguments) || this;
50
+ }
51
+ ArgousAction.prototype.render = function () {
52
+ var _a = this.props, glyphicon = _a.glyphicon, _b = _a.type, type = _b === void 0 ? 'default' : _b, _c = _a.className, className = _c === void 0 ? '' : _c, onClick = _a.onClick, item = _a.item, action = _a.action, dados = _a.dados, sendUpdates = _a.sendUpdates, receiveUpdates = _a.receiveUpdates, onSuccess = _a.onSuccess, onAllUpdated = _a.onAllUpdated, children = _a.children, style = _a.style, title = _a.title;
53
+ return (react_1.default.createElement(Button_1.default, { onClick: function (allFields, event) { return onClick && onClick(item, event); }, sendUpdates: sendUpdates, receiveUpdates: receiveUpdates, onSuccess: onSuccess, onAllUpdated: onAllUpdated, action: action, dados: {
54
+ dados: dados,
55
+ item: item,
56
+ }, className: (glyphicon
57
+ ? "btn btn-xs btn-round btn-action-min-size btn-" + type
58
+ : '') + " " + className, style: style, title: title },
59
+ glyphicon && react_1.default.createElement("i", { className: glyphicon }),
60
+ children && react_1.default.createElement("span", null, children)));
61
+ };
62
+ return ArgousAction;
63
+ }(react_1.Component));
64
+ ArgousAction.propTypes = {
65
+ glyphicon: prop_types_1.default.string,
66
+ children: prop_types_1.default.node,
67
+ onClick: prop_types_1.default.func,
68
+ sendUpdates: prop_types_1.default.array,
69
+ receiveUpdates: prop_types_1.default.array,
70
+ onSuccess: prop_types_1.default.func,
71
+ onAllUpdated: prop_types_1.default.func,
72
+ action: prop_types_1.default.string,
73
+ dados: prop_types_1.default.object,
74
+ type: prop_types_1.default.oneOf([
75
+ 'default',
76
+ 'primary',
77
+ 'success',
78
+ 'info',
79
+ 'warning',
80
+ 'danger',
81
+ ]),
82
+ className: prop_types_1.default.string,
83
+ style: prop_types_1.default.object,
84
+ title: prop_types_1.default.string,
85
+ item: prop_types_1.default.oneOfType([prop_types_1.default.array, prop_types_1.default.object]),
86
+ };
87
+ exports.default = ArgousAction;
@@ -0,0 +1,2 @@
1
+ export { default } from './ArgousAction';
2
+ export * from './ArgousAction';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = void 0;
7
+ var ArgousAction_1 = require("./ArgousAction");
8
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(ArgousAction_1).default; } });
@@ -0,0 +1,14 @@
1
+ import { AvatarProps } from '@material-ui/core';
2
+
3
+ export interface ArgousAvatarTypeMap extends AvatarProps{
4
+ /**
5
+ * Nome da pessoa que recebera o avatar
6
+ * Prove as iniciais no caso de nao haver foto
7
+ */
8
+ nome?: string;
9
+ idUsuario?: number
10
+ }
11
+
12
+ declare function ArgousAvatar(props: ArgousAvatarTypeMap): JSX.Element
13
+
14
+ export default ArgousAvatar;
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
25
+ var __importStar = (this && this.__importStar) || function (mod) {
26
+ if (mod && mod.__esModule) return mod;
27
+ var result = {};
28
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
+ __setModuleDefault(result, mod);
30
+ return result;
31
+ };
32
+ var __rest = (this && this.__rest) || function (s, e) {
33
+ var t = {};
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
35
+ t[p] = s[p];
36
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
37
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
38
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
39
+ t[p[i]] = s[p[i]];
40
+ }
41
+ return t;
42
+ };
43
+ var __importDefault = (this && this.__importDefault) || function (mod) {
44
+ return (mod && mod.__esModule) ? mod : { "default": mod };
45
+ };
46
+ Object.defineProperty(exports, "__esModule", { value: true });
47
+ var api_1 = require("../../api");
48
+ var utils_1 = require("../../utils");
49
+ var core_1 = require("@material-ui/core");
50
+ var prop_types_1 = __importDefault(require("prop-types"));
51
+ var react_1 = __importStar(require("react"));
52
+ var useStyles = core_1.makeStyles(function (theme) { return ({
53
+ orange: {
54
+ color: theme.palette.getContrastText(core_1.colors.deepOrange[500]),
55
+ backgroundColor: core_1.colors.deepOrange[500],
56
+ },
57
+ purple: {
58
+ color: theme.palette.getContrastText(core_1.colors.deepPurple[500]),
59
+ backgroundColor: core_1.colors.deepPurple[500],
60
+ },
61
+ blue: {
62
+ color: theme.palette.getContrastText(core_1.colors.blue[500]),
63
+ backgroundColor: core_1.colors.blue[500],
64
+ },
65
+ red: {
66
+ color: theme.palette.getContrastText(core_1.colors.red[500]),
67
+ backgroundColor: core_1.colors.red[500],
68
+ },
69
+ rosa: {
70
+ color: theme.palette.getContrastText(core_1.colors.pink[500]),
71
+ backgroundColor: core_1.colors.pink[500],
72
+ },
73
+ cinza: {
74
+ color: theme.palette.getContrastText(core_1.colors.grey[500]),
75
+ backgroundColor: core_1.colors.grey[500],
76
+ },
77
+ green: {
78
+ color: theme.palette.getContrastText(core_1.colors.green[500]),
79
+ backgroundColor: core_1.colors.green[500],
80
+ },
81
+ amarelo: {
82
+ color: theme.palette.getContrastText(core_1.colors.yellow[500]),
83
+ backgroundColor: core_1.colors.yellow[500],
84
+ },
85
+ marrom: {
86
+ color: theme.palette.getContrastText(core_1.colors.brown[500]),
87
+ backgroundColor: core_1.colors.brown[500],
88
+ },
89
+ preto: {
90
+ color: theme.palette.getContrastText(core_1.colors.grey['A400']),
91
+ backgroundColor: core_1.colors.grey['A400'],
92
+ },
93
+ img: {
94
+ border: '2px solid #FFF'
95
+ },
96
+ }); });
97
+ var ArgousAvatar = react_1.default.forwardRef(function (_a, ref) {
98
+ var nome = _a.nome, src = _a.src, className = _a.className, idUsuario = _a.idUsuario, props = __rest(_a, ["nome", "src", "className", "idUsuario"]);
99
+ var classes = useStyles();
100
+ var cores = [classes.orange, classes.purple, classes.blue, classes.rosa, classes.cinza, classes.red, classes.amarelo, classes.marrom, classes.preto, classes.green];
101
+ var _b = react_1.useState(undefined), userImage = _b[0], setUserImage = _b[1];
102
+ react_1.useEffect(function () {
103
+ setUserImage(localStorage.getItem("imgUsuario-" + idUsuario) || '');
104
+ if (!idUsuario || userImage || localStorage.getItem("imgUsuario-" + idUsuario))
105
+ return;
106
+ api_1.fetchToArgous('aguserimage', { idUsuario: idUsuario })
107
+ .then(function (_a) {
108
+ var userImage = _a.userImage;
109
+ if (userImage) {
110
+ setUserImage(userImage);
111
+ localStorage.setItem("imgUsuario-" + idUsuario, userImage);
112
+ }
113
+ else
114
+ localStorage.setItem("imgUsuario-" + idUsuario, '');
115
+ });
116
+ }, [idUsuario]);
117
+ return react_1.default.createElement(core_1.Avatar, __assign({ ref: ref, className: className + " " + (src || userImage ? classes.img : cores[utils_1.getNumeroFromInitials(utils_1.getInitials(nome), cores.length)]) }, props, { src: src || userImage }), utils_1.getInitials(nome));
118
+ });
119
+ ArgousAvatar.propTypes = {
120
+ nome: prop_types_1.default.string,
121
+ src: prop_types_1.default.string,
122
+ className: prop_types_1.default.string
123
+ };
124
+ exports.default = ArgousAvatar;
@@ -0,0 +1,2 @@
1
+ export { default } from './ArgousAvatar';
2
+ export * from './ArgousAvatar';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = void 0;
7
+ var ArgousAvatar_1 = require("./ArgousAvatar");
8
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(ArgousAvatar_1).default; } });
@@ -0,0 +1,76 @@
1
+ import { SelectProps } from '@material-ui/core';
2
+ import * as React from 'react';
3
+
4
+ export interface ArgousComplexPaginationProps {
5
+ /**
6
+ * Array de opções para as quantidades de linhas por pagina possiveis
7
+ *
8
+ * Se receber zero como opção ao invés de um array a tabela tera todas as linahs numa só página
9
+ */
10
+ rowsPerPageOptions?: Array<number> | 0,
11
+ /**
12
+ * Mostra a quantidade total de linhas da tabela
13
+ */
14
+ showCount?: boolean
15
+ }
16
+
17
+ export interface ArgousComplexPaginationPrivateProps extends ArgousComplexPaginationProps {
18
+ /**
19
+ * Componente com os botões de mudança de página
20
+ */
21
+ ActionsComponent: (props: {count: number, page: number, rowsPerPage: number, onChangePage: (evento: EventTarget, novaPagina: number) => void}) => JSX.Element,
22
+ /**
23
+ * Componente com o display das páginas
24
+ */
25
+ LabelDisplayedRows: (props: {pages: number, page: number, onChangePage: (evento: EventTarget, novaPagina: number) => void, from: number, to: number, count: number, showCount: boolean}) => JSX.Element,
26
+ /**
27
+ * Classes aplicadas á raiz do componente
28
+ */
29
+ className?: string,
30
+ /**
31
+ * Texto representando os itens da paginação (Linhas por padrão)
32
+ */
33
+ labelRowsPerPage?: string,
34
+ /**
35
+ * Props repassados ao componente de seleção
36
+ */
37
+ SelectProps?: SelectProps,
38
+ /**
39
+ * Quantidade total de linhas
40
+ */
41
+ count: number,
42
+ /**
43
+ * Função chamada ao mudar de página
44
+ *
45
+ * @param evento - Evento do click
46
+ * @param novaPagina - Número da nova página selecionada
47
+ *
48
+ * @returns {void} Sem retorno
49
+ */
50
+ onChangePage: (evento: EventTarget, novaPagina: number) => void,
51
+ /**
52
+ * Função chamada ao mudar a quantidade de itens por página
53
+ *
54
+ * @param evento - Evento do click
55
+ * @param filho - Elemento que foi selecionado
56
+ *
57
+ * @returns {void} Sem retorno
58
+ */
59
+ onChangeRowsPerPage: ((evento: React.ChangeEvent<{name?: string | undefined; value: unknown;}>, filho: React.ReactNode) => void) | undefined,
60
+ /**
61
+ * Página atual
62
+ */
63
+ page: number,
64
+ /**
65
+ * Quantidade de linhas por página
66
+ */
67
+ rowsPerPage: number,
68
+ // backIconButtonProps?,
69
+ // backIconButtonText?: string,
70
+ // nextIconButtonProps?,
71
+ // nextIconButtonText?: string,
72
+ }
73
+
74
+ declare function ArgousComplexPagination(props: ArgousComplexPaginationPrivateProps): JSX.Element
75
+
76
+ export default ArgousComplexPagination;
@@ -0,0 +1,156 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
25
+ var __importStar = (this && this.__importStar) || function (mod) {
26
+ if (mod && mod.__esModule) return mod;
27
+ var result = {};
28
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
+ __setModuleDefault(result, mod);
30
+ return result;
31
+ };
32
+ var __importDefault = (this && this.__importDefault) || function (mod) {
33
+ return (mod && mod.__esModule) ? mod : { "default": mod };
34
+ };
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ var core_1 = require("@material-ui/core");
37
+ var clsx_1 = __importDefault(require("clsx"));
38
+ var react_1 = __importStar(require("react"));
39
+ var md_1 = require("react-icons/md");
40
+ var useStyles = core_1.makeStyles(function (theme) { return ({
41
+ pagination: {
42
+ display: 'flex',
43
+ flexDirection: 'row-reverse',
44
+ color: theme.palette.text.primary,
45
+ fontSize: theme.typography.pxToRem(14),
46
+ overflow: 'auto',
47
+ '&:last-child': {
48
+ padding: 0,
49
+ },
50
+ },
51
+ toolbar: {
52
+ minHeight: 52,
53
+ paddingRight: 2,
54
+ },
55
+ spacer: {
56
+ flex: '1 1 100%',
57
+ },
58
+ caption: {
59
+ flexShrink: 0,
60
+ },
61
+ selectRoot: {
62
+ marginRight: 32,
63
+ marginLeft: 8,
64
+ },
65
+ select: {
66
+ paddingLeft: 8,
67
+ paddingRight: 24,
68
+ textAlign: 'right',
69
+ textAlignLast: 'right',
70
+ },
71
+ input: {
72
+ color: 'inherit',
73
+ fontSize: 'inherit',
74
+ flexShrink: 0,
75
+ },
76
+ actions: {
77
+ flexShrink: 0,
78
+ marginLeft: 20,
79
+ },
80
+ paginationActions: {
81
+ flexShrink: 0,
82
+ marginLeft: theme.spacing(2.5),
83
+ },
84
+ }); });
85
+ var handleChangePgAtual = function (value, pages) {
86
+ if (value < 1)
87
+ return 0;
88
+ else if (value > pages)
89
+ return pages - 1;
90
+ return value - 1;
91
+ };
92
+ var DefaultLabelDisplayedRows = function (_a) {
93
+ var pages = _a.pages, page = _a.page, onChangePage = _a.onChangePage, from = _a.from, to = _a.to, count = _a.count, showCount = _a.showCount;
94
+ return react_1.default.createElement(react_1.default.Fragment, null,
95
+ react_1.default.createElement(core_1.Box, { padding: '1px 0px', display: 'inline' },
96
+ react_1.default.createElement(core_1.InputBase, { inputProps: { type: 'number', min: 1, max: pages || 1, value: page + 1 }, onChange: function (e) { return onChangePage(e, handleChangePgAtual(e.target.value, pages)); } }), " / " + (pages || 1)),
97
+ showCount && react_1.default.createElement("div", { style: { display: 'inline', marginLeft: '10px', paddingLeft: '10px' } },
98
+ from,
99
+ " a ",
100
+ to,
101
+ " de ",
102
+ count));
103
+ };
104
+ var TablePaginationActions = react_1.memo(function (_a) {
105
+ var count = _a.count, page = _a.page, rowsPerPage = _a.rowsPerPage, onChangePage = _a.onChangePage;
106
+ var classes = useStyles();
107
+ var theme = core_1.useTheme();
108
+ var handleFirstPageButtonClick = function (e) { return onChangePage(e, 0); };
109
+ var handleBackButtonClick = function (e) { return onChangePage(e, page - 1); };
110
+ var handleNextButtonClick = function (e) { return onChangePage(e, page + 1); };
111
+ var handleLastPageButtonClick = function (e) { return onChangePage(e, Math.max(0, Math.ceil(count / rowsPerPage) - 1)); };
112
+ return (react_1.default.createElement("div", { className: classes.paginationActions },
113
+ react_1.default.createElement(core_1.IconButton, { onClick: handleFirstPageButtonClick, disabled: page === 0 }, theme.direction === 'rtl' ? react_1.default.createElement(md_1.MdLastPage, null) : react_1.default.createElement(md_1.MdFirstPage, null)),
114
+ react_1.default.createElement(core_1.IconButton, { onClick: handleBackButtonClick, disabled: page === 0 }, theme.direction === 'rtl' ? react_1.default.createElement(md_1.MdKeyboardArrowRight, null) : react_1.default.createElement(md_1.MdKeyboardArrowLeft, null)),
115
+ react_1.default.createElement(core_1.IconButton, { onClick: handleNextButtonClick, disabled: page >= Math.ceil(count / rowsPerPage) - 1 }, theme.direction === 'rtl' ? react_1.default.createElement(md_1.MdKeyboardArrowLeft, null) : react_1.default.createElement(md_1.MdKeyboardArrowRight, null)),
116
+ react_1.default.createElement(core_1.IconButton, { onClick: handleLastPageButtonClick, disabled: page >= Math.ceil(count / rowsPerPage) - 1 }, theme.direction === 'rtl' ? react_1.default.createElement(md_1.MdFirstPage, null) : react_1.default.createElement(md_1.MdLastPage, null))));
117
+ });
118
+ var ArgousComplexPagination = react_1.memo(function (_a) {
119
+ var _b = _a.ActionsComponent, ActionsComponent = _b === void 0 ? TablePaginationActions : _b,
120
+ // backIconButtonProps,
121
+ // backIconButtonText = 'Página Anterior',
122
+ className = _a.className, count = _a.count, _c = _a.LabelDisplayedRows, LabelDisplayedRows = _c === void 0 ? DefaultLabelDisplayedRows : _c, _d = _a.labelRowsPerPage, labelRowsPerPage = _d === void 0 ? 'Linhas' : _d,
123
+ // nextIconButtonProps,
124
+ // nextIconButtonText = 'Próxima Página',
125
+ onChangePage = _a.onChangePage, onChangeRowsPerPage = _a.onChangeRowsPerPage, page = _a.page, rowsPerPage = _a.rowsPerPage, _e = _a.rowsPerPageOptions, rowsPerPageOptions = _e === void 0 ? [10, 25, 50, 100] : _e, _f = _a.SelectProps, SelectProps = _f === void 0 ? {} : _f, showCount = _a.showCount;
126
+ var classes = useStyles();
127
+ var MenuItemComponent = SelectProps.native ? 'option' : core_1.MenuItem;
128
+ return (react_1.default.createElement("div", { className: clsx_1.default(classes.pagination, className) },
129
+ react_1.default.createElement(core_1.Toolbar, { className: classes.toolbar },
130
+ react_1.default.createElement("div", { className: classes.spacer }),
131
+ rowsPerPageOptions.length > 1 && (react_1.default.createElement(core_1.Typography, { color: 'inherit', variant: 'body2', className: classes.caption }, labelRowsPerPage)),
132
+ rowsPerPageOptions.length > 1 && (react_1.default.createElement(core_1.Select, __assign({ classes: {
133
+ select: classes.select,
134
+ icon: classes.selectIcon,
135
+ }, input: react_1.default.createElement(core_1.InputBase, { className: clsx_1.default(classes.input, classes.selectRoot) }), value: rowsPerPage, onChange: onChangeRowsPerPage }, SelectProps), rowsPerPageOptions.map(function (rowsPerPageOption) { return (react_1.default.createElement(MenuItemComponent, { className: classes.menuItem, key: rowsPerPageOption.value ? rowsPerPageOption.value : rowsPerPageOption, value: rowsPerPageOption.value ? rowsPerPageOption.value : rowsPerPageOption }, rowsPerPageOption.label ? rowsPerPageOption.label : rowsPerPageOption)); }))),
136
+ react_1.default.createElement(core_1.Typography, { color: 'inherit', variant: 'body2', component: 'div', className: classes.caption },
137
+ react_1.default.createElement(LabelDisplayedRows, __assign({}, {
138
+ pages: Math.ceil(count / parseInt(rowsPerPage, 10)),
139
+ from: count === 0 ? 0 : page * rowsPerPage + 1,
140
+ to: count !== -1 ? Math.min(count, (page + 1) * rowsPerPage) : (page + 1) * rowsPerPage,
141
+ count: count === -1 ? -1 : count,
142
+ page: page, onChangePage: onChangePage, showCount: showCount
143
+ }))),
144
+ react_1.default.createElement(ActionsComponent, { className: classes.actions,
145
+ // backIconButtonProps={{
146
+ // title: backIconButtonText,
147
+ // ...backIconButtonProps,
148
+ // }}
149
+ count: count,
150
+ // nextIconButtonProps={{
151
+ // title: nextIconButtonText,
152
+ // ...nextIconButtonProps,
153
+ // }}
154
+ onChangePage: onChangePage, page: page, rowsPerPage: rowsPerPage }))));
155
+ });
156
+ exports.default = ArgousComplexPagination;
@@ -0,0 +1,2 @@
1
+ export { default } from './ArgousComplexPagination';
2
+ export * from './ArgousComplexPagination';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = void 0;
7
+ var ArgousComplexPagination_1 = require("./ArgousComplexPagination");
8
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(ArgousComplexPagination_1).default; } });