@admin-layout/client 1.4.0-alpha.4 → 2.0.1-alpha.2

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 (153) hide show
  1. package/lib/colors/Color.d.ts +11 -0
  2. package/lib/colors/Color.js +2 -0
  3. package/lib/colors/Color.js.map +1 -0
  4. package/lib/colors/index.d.ts +2 -0
  5. package/lib/colors/index.js +3 -0
  6. package/lib/colors/index.js.map +1 -0
  7. package/lib/colors/presets/black.d.ts +2 -0
  8. package/lib/colors/presets/black.js +12 -0
  9. package/lib/colors/presets/black.js.map +1 -0
  10. package/lib/colors/presets/blue.d.ts +2 -0
  11. package/lib/colors/presets/blue.js +12 -0
  12. package/lib/colors/presets/blue.js.map +1 -0
  13. package/lib/colors/presets/brinkPink.d.ts +2 -0
  14. package/lib/colors/presets/brinkPink.js +12 -0
  15. package/lib/colors/presets/brinkPink.js.map +1 -0
  16. package/lib/colors/presets/cyan.d.ts +2 -0
  17. package/lib/colors/presets/cyan.js +12 -0
  18. package/lib/colors/presets/cyan.js.map +1 -0
  19. package/lib/colors/presets/green.d.ts +2 -0
  20. package/lib/colors/presets/green.js +12 -0
  21. package/lib/colors/presets/green.js.map +1 -0
  22. package/lib/colors/presets/index.d.ts +14 -0
  23. package/lib/colors/presets/index.js +15 -0
  24. package/lib/colors/presets/index.js.map +1 -0
  25. package/lib/colors/presets/lime.d.ts +2 -0
  26. package/lib/colors/presets/lime.js +12 -0
  27. package/lib/colors/presets/lime.js.map +1 -0
  28. package/lib/colors/presets/orange.d.ts +2 -0
  29. package/lib/colors/presets/orange.js +12 -0
  30. package/lib/colors/presets/orange.js.map +1 -0
  31. package/lib/colors/presets/pink.d.ts +2 -0
  32. package/lib/colors/presets/pink.js +12 -0
  33. package/lib/colors/presets/pink.js.map +1 -0
  34. package/lib/colors/presets/purple.d.ts +2 -0
  35. package/lib/colors/presets/purple.js +12 -0
  36. package/lib/colors/presets/purple.js.map +1 -0
  37. package/lib/colors/presets/red.d.ts +2 -0
  38. package/lib/colors/presets/red.js +12 -0
  39. package/lib/colors/presets/red.js.map +1 -0
  40. package/lib/colors/presets/skyBlue.d.ts +2 -0
  41. package/lib/colors/presets/skyBlue.js +12 -0
  42. package/lib/colors/presets/skyBlue.js.map +1 -0
  43. package/lib/colors/presets/turquoise.d.ts +2 -0
  44. package/lib/colors/presets/turquoise.js +12 -0
  45. package/lib/colors/presets/turquoise.js.map +1 -0
  46. package/lib/colors/presets/white.d.ts +2 -0
  47. package/lib/colors/presets/white.js +12 -0
  48. package/lib/colors/presets/white.js.map +1 -0
  49. package/lib/colors/presets/yellow.d.ts +2 -0
  50. package/lib/colors/presets/yellow.js +12 -0
  51. package/lib/colors/presets/yellow.js.map +1 -0
  52. package/lib/components/ApplicationErrorFillWrapper.d.ts +0 -1
  53. package/lib/components/ApplicationErrorFillWrapper.js +7 -0
  54. package/lib/components/ApplicationErrorFillWrapper.js.map +1 -0
  55. package/lib/components/ApplicationErrorHandlerCommon.js +31 -0
  56. package/lib/components/ApplicationErrorHandlerCommon.js.map +1 -0
  57. package/lib/components/ErrorBoundaryCommon.js +22 -0
  58. package/lib/components/ErrorBoundaryCommon.js.map +1 -0
  59. package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.d.ts +1 -0
  60. package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.js +83 -0
  61. package/lib/components/__tests__/ApplicationErrorHandlerCommon.test.js.map +1 -0
  62. package/lib/components/index.js +4 -0
  63. package/lib/components/index.js.map +1 -0
  64. package/lib/config/config.js +22 -0
  65. package/lib/config/config.js.map +1 -0
  66. package/lib/config/index.js +2 -0
  67. package/lib/config/index.js.map +1 -0
  68. package/lib/constants/constants.js +4 -0
  69. package/lib/constants/constants.js.map +1 -0
  70. package/lib/constants/error.js +6 -0
  71. package/lib/constants/error.js.map +1 -0
  72. package/lib/constants/index.js +3 -0
  73. package/lib/constants/index.js.map +1 -0
  74. package/lib/graphql/index.js +2 -0
  75. package/lib/graphql/index.js.map +1 -0
  76. package/lib/graphql/link/error-link.js +49 -0
  77. package/lib/graphql/link/error-link.js.map +1 -0
  78. package/lib/graphql/link/index.js +2 -0
  79. package/lib/graphql/link/index.js.map +1 -0
  80. package/lib/index.d.ts +1 -0
  81. package/lib/index.js +7 -1256
  82. package/lib/index.js.map +1 -1
  83. package/lib/index.native.d.ts +7 -0
  84. package/lib/index.native.js +8 -0
  85. package/lib/index.native.js.map +1 -0
  86. package/lib/interfaces/default-settings.js +2 -0
  87. package/lib/interfaces/default-settings.js.map +1 -0
  88. package/lib/interfaces/error-state.js +2 -0
  89. package/lib/interfaces/error-state.js.map +1 -0
  90. package/lib/interfaces/generated/generated-models.d.ts +13 -0
  91. package/lib/interfaces/generated/generated-models.js +51 -0
  92. package/lib/interfaces/generated/generated-models.js.map +1 -0
  93. package/lib/interfaces/generated/index.js +2 -0
  94. package/lib/interfaces/generated/index.js.map +1 -0
  95. package/lib/interfaces/index.js +6 -0
  96. package/lib/interfaces/index.js.map +1 -0
  97. package/lib/interfaces/pure-settings.d.ts +1 -0
  98. package/lib/interfaces/pure-settings.js +2 -0
  99. package/lib/interfaces/pure-settings.js.map +1 -0
  100. package/lib/interfaces/typings.js +2 -0
  101. package/lib/interfaces/typings.js.map +1 -0
  102. package/lib/redux/actions/error-actions.js +22 -0
  103. package/lib/redux/actions/error-actions.js.map +1 -0
  104. package/lib/redux/actions/index.js +3 -0
  105. package/lib/redux/actions/index.js.map +1 -0
  106. package/lib/redux/actions/settings-action.d.ts +0 -0
  107. package/lib/redux/actions/settings-action.js +2 -0
  108. package/lib/redux/actions/settings-action.js.map +1 -0
  109. package/lib/redux/index.js +4 -0
  110. package/lib/redux/index.js.map +1 -0
  111. package/lib/redux/reducers/error.d.ts +2 -2
  112. package/lib/redux/reducers/error.js +32 -0
  113. package/lib/redux/reducers/error.js.map +1 -0
  114. package/lib/redux/reducers/index.js +2 -0
  115. package/lib/redux/reducers/index.js.map +1 -0
  116. package/lib/redux/selectors/index.d.ts +1 -1
  117. package/lib/redux/selectors/index.js +4 -0
  118. package/lib/redux/selectors/index.js.map +1 -0
  119. package/lib/redux/settings.d.ts +22 -21
  120. package/lib/redux/settings.js +38 -0
  121. package/lib/redux/settings.js.map +1 -0
  122. package/lib/themes/LayoutTheme.d.ts +140 -0
  123. package/lib/themes/LayoutTheme.js +2 -0
  124. package/lib/themes/LayoutTheme.js.map +1 -0
  125. package/lib/themes/TextStyle.d.ts +6 -0
  126. package/lib/themes/TextStyle.js +2 -0
  127. package/lib/themes/TextStyle.js.map +1 -0
  128. package/lib/themes/index.d.ts +4 -0
  129. package/lib/themes/index.js +5 -0
  130. package/lib/themes/index.js.map +1 -0
  131. package/lib/themes/systemFont/index.d.ts +1 -0
  132. package/lib/themes/systemFont/index.js +2 -0
  133. package/lib/themes/systemFont/index.js.map +1 -0
  134. package/lib/themes/systemFont/index.native.d.ts +1 -0
  135. package/lib/themes/systemFont/index.native.js +2 -0
  136. package/lib/themes/systemFont/index.native.js.map +1 -0
  137. package/lib/themes/templates/createLayoutTheme.d.ts +3 -0
  138. package/lib/themes/templates/createLayoutTheme.js +10 -0
  139. package/lib/themes/templates/createLayoutTheme.js.map +1 -0
  140. package/lib/themes/templates/darkLayoutTheme.d.ts +22 -0
  141. package/lib/themes/templates/darkLayoutTheme.js +34 -0
  142. package/lib/themes/templates/darkLayoutTheme.js.map +1 -0
  143. package/lib/themes/templates/index.d.ts +3 -0
  144. package/lib/themes/templates/index.js +4 -0
  145. package/lib/themes/templates/index.js.map +1 -0
  146. package/lib/themes/templates/lightLayoutTheme.d.ts +10 -0
  147. package/lib/themes/templates/lightLayoutTheme.js +217 -0
  148. package/lib/themes/templates/lightLayoutTheme.js.map +1 -0
  149. package/lib/utils/index.js +2 -0
  150. package/lib/utils/index.js.map +1 -0
  151. package/lib/utils/seperatedMenus.js +15 -0
  152. package/lib/utils/seperatedMenus.js.map +1 -0
  153. package/package.json +4 -3
package/lib/index.js CHANGED
@@ -1,1257 +1,8 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts");
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ "./src/components/ApplicationErrorFillWrapper.tsx":
91
- /*!********************************************************!*\
92
- !*** ./src/components/ApplicationErrorFillWrapper.tsx ***!
93
- \********************************************************/
94
- /*! no static exports found */
95
- /***/ (function(module, exports, __webpack_require__) {
96
-
97
- "use strict";
98
-
99
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
100
- if (k2 === undefined) k2 = k;
101
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
102
- }) : (function(o, m, k, k2) {
103
- if (k2 === undefined) k2 = k;
104
- o[k2] = m[k];
105
- }));
106
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
107
- Object.defineProperty(o, "default", { enumerable: true, value: v });
108
- }) : function(o, v) {
109
- o["default"] = v;
110
- });
111
- var __importStar = (this && this.__importStar) || function (mod) {
112
- if (mod && mod.__esModule) return mod;
113
- var result = {};
114
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
115
- __setModuleDefault(result, mod);
116
- return result;
117
- };
118
- Object.defineProperty(exports, "__esModule", { value: true });
119
- exports.ApplicationErrorFillWrapper = void 0;
120
- const components_pro_1 = __webpack_require__(/*! @common-stack/components-pro */ "@common-stack/components-pro");
121
- const constants_1 = __webpack_require__(/*! ../constants */ "./src/constants/index.ts");
122
- const React = __importStar(__webpack_require__(/*! react */ "react"));
123
- const ApplicationErrorFillWrapper = (props) => {
124
- return React.createElement(components_pro_1.Fill, Object.assign({}, props, { name: constants_1.APPLICATION_ERROR_SLOT_FILL }));
125
- };
126
- exports.ApplicationErrorFillWrapper = ApplicationErrorFillWrapper;
127
-
128
-
129
- /***/ }),
130
-
131
- /***/ "./src/components/ApplicationErrorHandlerCommon.tsx":
132
- /*!**********************************************************!*\
133
- !*** ./src/components/ApplicationErrorHandlerCommon.tsx ***!
134
- \**********************************************************/
135
- /*! no static exports found */
136
- /***/ (function(module, exports, __webpack_require__) {
137
-
138
- "use strict";
139
-
140
- var __importDefault = (this && this.__importDefault) || function (mod) {
141
- return (mod && mod.__esModule) ? mod : { "default": mod };
142
- };
143
- Object.defineProperty(exports, "__esModule", { value: true });
144
- exports.ApplicationErrorHandlerCommon = void 0;
145
- const react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
146
- const react_redux_1 = __webpack_require__(/*! react-redux */ "react-redux");
147
- __webpack_require__(/*! reflect-metadata */ "reflect-metadata");
148
- const components_pro_1 = __webpack_require__(/*! @common-stack/components-pro */ "@common-stack/components-pro");
149
- const constants_1 = __webpack_require__(/*! ../constants */ "./src/constants/index.ts");
150
- const selectors_1 = __webpack_require__(/*! ../redux/selectors */ "./src/redux/selectors/index.ts");
151
- /**
152
- * ApplicationErrorSlot is needed for mobile. Since for mobile
153
- * we import Slot from @common-stack/react-mobile. The default
154
- * Slot under RenderApplicationErrorSlot works for browser
155
- * both ant and chakra
156
- *
157
- * @param FallbackComponent ReactNode
158
- * @param [ApplicationErrorSlot] ReactNode
159
- * @returns ReactNode
160
- */
161
- const ApplicationErrorHandlerCommon = (FallbackComponent, ApplicationErrorSlot = undefined) => ({ plugins, children }) => {
162
- const applicationErrors = react_redux_1.useSelector((state) => state === null || state === void 0 ? void 0 : state.applicationErrors);
163
- const errors = applicationErrors.filter((error) => !!plugins.find((plugin) => plugin.name === (error === null || error === void 0 ? void 0 : error.pluginName)));
164
- const backendError = react_redux_1.useSelector(selectors_1.backendErrorSelector);
165
- const RenderApplicationErrorSlot = (props) => {
166
- return !!ApplicationErrorSlot ? react_1.default.createElement(ApplicationErrorSlot, Object.assign({}, props)) : react_1.default.createElement(components_pro_1.Slot, Object.assign({}, props));
167
- };
168
- return (react_1.default.createElement(react_1.default.Fragment, null,
169
- !!backendError && react_1.default.createElement(FallbackComponent, { error: backendError }),
170
- !!(errors === null || errors === void 0 ? void 0 : errors.length)
171
- ? react_1.default.createElement(RenderApplicationErrorSlot, { name: constants_1.APPLICATION_ERROR_SLOT_FILL, fillProps: { active: true, applicationErrors: errors } })
172
- : children));
173
- };
174
- exports.ApplicationErrorHandlerCommon = ApplicationErrorHandlerCommon;
175
-
176
-
177
- /***/ }),
178
-
179
- /***/ "./src/components/ErrorBoundaryCommon.tsx":
180
- /*!************************************************!*\
181
- !*** ./src/components/ErrorBoundaryCommon.tsx ***!
182
- \************************************************/
183
- /*! no static exports found */
184
- /***/ (function(module, exports, __webpack_require__) {
185
-
186
- "use strict";
187
-
188
- var __importDefault = (this && this.__importDefault) || function (mod) {
189
- return (mod && mod.__esModule) ? mod : { "default": mod };
190
- };
191
- Object.defineProperty(exports, "__esModule", { value: true });
192
- exports.ErrorBoundaryCommon = void 0;
193
- const react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
194
- const client_1 = __webpack_require__(/*! @cdm-logger/client */ "@cdm-logger/client");
195
- class ErrorBoundaryCommon extends react_1.default.Component {
196
- constructor(props) {
197
- super(props);
198
- this.state = { hasError: false, error: null };
199
- }
200
- static getDerivedStateFromError(error) {
201
- return { hasError: true, error };
202
- }
203
- componentDidCatch(error) {
204
- client_1.logger.debug(error);
205
- }
206
- render() {
207
- if (this.state.hasError) {
208
- const FallbackComponent = this.props.fallbackComponent;
209
- return react_1.default.createElement(FallbackComponent, { error: this.state.error });
210
- }
211
- return this.props.children;
212
- }
213
- }
214
- exports.ErrorBoundaryCommon = ErrorBoundaryCommon;
215
-
216
-
217
- /***/ }),
218
-
219
- /***/ "./src/components/index.tsx":
220
- /*!**********************************!*\
221
- !*** ./src/components/index.tsx ***!
222
- \**********************************/
223
- /*! no static exports found */
224
- /***/ (function(module, exports, __webpack_require__) {
225
-
226
- "use strict";
227
-
228
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
229
- if (k2 === undefined) k2 = k;
230
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
231
- }) : (function(o, m, k, k2) {
232
- if (k2 === undefined) k2 = k;
233
- o[k2] = m[k];
234
- }));
235
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
236
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
237
- };
238
- Object.defineProperty(exports, "__esModule", { value: true });
239
- __exportStar(__webpack_require__(/*! ./ApplicationErrorHandlerCommon */ "./src/components/ApplicationErrorHandlerCommon.tsx"), exports);
240
- __exportStar(__webpack_require__(/*! ./ErrorBoundaryCommon */ "./src/components/ErrorBoundaryCommon.tsx"), exports);
241
- __exportStar(__webpack_require__(/*! ./ApplicationErrorFillWrapper */ "./src/components/ApplicationErrorFillWrapper.tsx"), exports);
242
-
243
-
244
- /***/ }),
245
-
246
- /***/ "./src/config/config.ts":
247
- /*!******************************!*\
248
- !*** ./src/config/config.ts ***!
249
- \******************************/
250
- /*! no static exports found */
251
- /***/ (function(module, exports, __webpack_require__) {
252
-
253
- "use strict";
254
-
255
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
256
- if (k2 === undefined) k2 = k;
257
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
258
- }) : (function(o, m, k, k2) {
259
- if (k2 === undefined) k2 = k;
260
- o[k2] = m[k];
261
- }));
262
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
263
- Object.defineProperty(o, "default", { enumerable: true, value: v });
264
- }) : function(o, v) {
265
- o["default"] = v;
266
- });
267
- var __importStar = (this && this.__importStar) || function (mod) {
268
- if (mod && mod.__esModule) return mod;
269
- var result = {};
270
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
271
- __setModuleDefault(result, mod);
272
- return result;
273
- };
274
- Object.defineProperty(exports, "__esModule", { value: true });
275
- exports.config = void 0;
276
- const envalid = __importStar(__webpack_require__(/*! envalid */ "envalid"));
277
- const { json } = envalid;
278
- const env = process.APP_ENV || process.env;
279
- exports.config = envalid.cleanEnv(env, {
280
- LAYOUT_SETTINGS: json({
281
- default: JSON.stringify({
282
- logo: 'https://cdmbase.s3.ca-central-1.amazonaws.com/favicon-new-128.svg',
283
- navTheme: 'light',
284
- primaryColor: '#3FA541C',
285
- layout: 'side',
286
- contentWidth: 'Fluid',
287
- fixedHeader: false,
288
- fixSiderbar: true,
289
- colorWeak: false,
290
- title: 'CDMBase LLC',
291
- iconfontUrl: '',
292
- language: 'en-US',
293
- }),
294
- }),
295
- });
296
-
297
-
298
- /***/ }),
299
-
300
- /***/ "./src/config/index.ts":
301
- /*!*****************************!*\
302
- !*** ./src/config/index.ts ***!
303
- \*****************************/
304
- /*! no static exports found */
305
- /***/ (function(module, exports, __webpack_require__) {
306
-
307
- "use strict";
308
-
309
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
310
- if (k2 === undefined) k2 = k;
311
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
312
- }) : (function(o, m, k, k2) {
313
- if (k2 === undefined) k2 = k;
314
- o[k2] = m[k];
315
- }));
316
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
317
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
318
- };
319
- Object.defineProperty(exports, "__esModule", { value: true });
320
- __exportStar(__webpack_require__(/*! ./config */ "./src/config/config.ts"), exports);
321
-
322
-
323
- /***/ }),
324
-
325
- /***/ "./src/constants/constants.ts":
326
- /*!************************************!*\
327
- !*** ./src/constants/constants.ts ***!
328
- \************************************/
329
- /*! no static exports found */
330
- /***/ (function(module, exports, __webpack_require__) {
331
-
332
- "use strict";
333
-
334
- Object.defineProperty(exports, "__esModule", { value: true });
335
- exports.APPLICATION_ERROR_SLOT_FILL = exports.CHANGE_LANGUAGE = exports.CHANGE_SETTINGS_ACTION = void 0;
336
- exports.CHANGE_SETTINGS_ACTION = 'settings/changeSetting';
337
- exports.CHANGE_LANGUAGE = 'language/changeLanguage';
338
- exports.APPLICATION_ERROR_SLOT_FILL = "APPLICATION_ERROR_SLOT_FILL";
339
-
340
-
341
- /***/ }),
342
-
343
- /***/ "./src/constants/error.ts":
344
- /*!********************************!*\
345
- !*** ./src/constants/error.ts ***!
346
- \********************************/
347
- /*! no static exports found */
348
- /***/ (function(module, exports, __webpack_require__) {
349
-
350
- "use strict";
351
-
352
- Object.defineProperty(exports, "__esModule", { value: true });
353
- exports.LOG_APPLICATION_ERROR = exports.RESTORE_APPLICATION_ERRORS = exports.CLEAR_APPLICATION_ERRORS = exports.DISMISS_APPLICATION_ERROR = exports.BACKEND_ERROR = void 0;
354
- exports.BACKEND_ERROR = '@platform/BACKEND_ERROR';
355
- exports.DISMISS_APPLICATION_ERROR = '@platform/DISMISS_APPLICATION_ERROR';
356
- exports.CLEAR_APPLICATION_ERRORS = '@platform/CLEAR_APPLICATION_ERRORS';
357
- exports.RESTORE_APPLICATION_ERRORS = '@platform/RESTORE_APPLICATION_ERRORS';
358
- exports.LOG_APPLICATION_ERROR = '@platform/LOG_APPLICATION_ERROR';
359
-
360
-
361
- /***/ }),
362
-
363
- /***/ "./src/constants/index.ts":
364
- /*!********************************!*\
365
- !*** ./src/constants/index.ts ***!
366
- \********************************/
367
- /*! no static exports found */
368
- /***/ (function(module, exports, __webpack_require__) {
369
-
370
- "use strict";
371
-
372
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
373
- if (k2 === undefined) k2 = k;
374
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
375
- }) : (function(o, m, k, k2) {
376
- if (k2 === undefined) k2 = k;
377
- o[k2] = m[k];
378
- }));
379
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
380
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
381
- };
382
- Object.defineProperty(exports, "__esModule", { value: true });
383
- __exportStar(__webpack_require__(/*! ./constants */ "./src/constants/constants.ts"), exports);
384
- __exportStar(__webpack_require__(/*! ./error */ "./src/constants/error.ts"), exports);
385
-
386
-
387
- /***/ }),
388
-
389
- /***/ "./src/graphql/index.ts":
390
- /*!******************************!*\
391
- !*** ./src/graphql/index.ts ***!
392
- \******************************/
393
- /*! no static exports found */
394
- /***/ (function(module, exports, __webpack_require__) {
395
-
396
- "use strict";
397
-
398
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
399
- if (k2 === undefined) k2 = k;
400
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
401
- }) : (function(o, m, k, k2) {
402
- if (k2 === undefined) k2 = k;
403
- o[k2] = m[k];
404
- }));
405
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
406
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
407
- };
408
- Object.defineProperty(exports, "__esModule", { value: true });
409
- __exportStar(__webpack_require__(/*! ./link */ "./src/graphql/link/index.ts"), exports);
410
-
411
-
412
- /***/ }),
413
-
414
- /***/ "./src/graphql/link/error-link.ts":
415
- /*!****************************************!*\
416
- !*** ./src/graphql/link/error-link.ts ***!
417
- \****************************************/
418
- /*! no static exports found */
419
- /***/ (function(module, exports, __webpack_require__) {
420
-
421
- "use strict";
422
-
423
- Object.defineProperty(exports, "__esModule", { value: true });
424
- exports.errorReduxLink = exports.ErrorLink = void 0;
425
- const error_1 = __webpack_require__(/*! @apollo/client/link/error */ "@apollo/client/link/error");
426
- const constants_1 = __webpack_require__(/*! ../../constants */ "./src/constants/index.ts");
427
- const serialize_error_1 = __webpack_require__(/*! serialize-error */ "serialize-error");
428
- class ErrorLink {
429
- dispatchErrorAction(container, error) {
430
- var _a, _b;
431
- const reduxStore = container.get('ReduxStore');
432
- let action = {
433
- type: (_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a.actionName,
434
- payload: (_b = error === null || error === void 0 ? void 0 : error.extensions) === null || _b === void 0 ? void 0 : _b.payload
435
- };
436
- if (!(action === null || action === void 0 ? void 0 : action.type)) {
437
- action = {
438
- type: constants_1.LOG_APPLICATION_ERROR,
439
- payload: {
440
- type: constants_1.BACKEND_ERROR,
441
- payload: serialize_error_1.serializeError(error)
442
- }
443
- };
444
- }
445
- reduxStore.dispatch(action);
446
- }
447
- getErrorLink(container) {
448
- return error_1.onError(err => {
449
- var _a, _b;
450
- const { networkError, graphQLErrors, operation, forward } = err;
451
- if (graphQLErrors === null || graphQLErrors === void 0 ? void 0 : graphQLErrors.length) {
452
- graphQLErrors.forEach((error) => {
453
- this.dispatchErrorAction(container, error);
454
- });
455
- }
456
- if (networkError) {
457
- const serverErrors = (_b = (_a = networkError) === null || _a === void 0 ? void 0 : _a.result) === null || _b === void 0 ? void 0 : _b.errors;
458
- if (serverErrors === null || serverErrors === void 0 ? void 0 : serverErrors.length) {
459
- serverErrors.map((error) => {
460
- this.dispatchErrorAction(container, error);
461
- });
462
- }
463
- else {
464
- this.dispatchErrorAction(container, networkError);
465
- }
466
- }
467
- });
468
- }
469
- }
470
- exports.ErrorLink = ErrorLink;
471
- const errorReduxLink = (container) => {
472
- return new ErrorLink().getErrorLink(container);
473
- };
474
- exports.errorReduxLink = errorReduxLink;
475
-
476
-
477
- /***/ }),
478
-
479
- /***/ "./src/graphql/link/index.ts":
480
- /*!***********************************!*\
481
- !*** ./src/graphql/link/index.ts ***!
482
- \***********************************/
483
- /*! no static exports found */
484
- /***/ (function(module, exports, __webpack_require__) {
485
-
486
- "use strict";
487
-
488
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
489
- if (k2 === undefined) k2 = k;
490
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
491
- }) : (function(o, m, k, k2) {
492
- if (k2 === undefined) k2 = k;
493
- o[k2] = m[k];
494
- }));
495
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
496
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
497
- };
498
- Object.defineProperty(exports, "__esModule", { value: true });
499
- __exportStar(__webpack_require__(/*! ./error-link */ "./src/graphql/link/error-link.ts"), exports);
500
-
501
-
502
- /***/ }),
503
-
504
- /***/ "./src/index.ts":
505
- /*!**********************!*\
506
- !*** ./src/index.ts ***!
507
- \**********************/
508
- /*! no static exports found */
509
- /***/ (function(module, exports, __webpack_require__) {
510
-
511
- "use strict";
512
-
513
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
514
- if (k2 === undefined) k2 = k;
515
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
516
- }) : (function(o, m, k, k2) {
517
- if (k2 === undefined) k2 = k;
518
- o[k2] = m[k];
519
- }));
520
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
521
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
522
- };
523
- Object.defineProperty(exports, "__esModule", { value: true });
524
- __exportStar(__webpack_require__(/*! ./interfaces */ "./src/interfaces/index.ts"), exports);
525
- __exportStar(__webpack_require__(/*! ./constants */ "./src/constants/index.ts"), exports);
526
- __exportStar(__webpack_require__(/*! ./redux */ "./src/redux/index.ts"), exports);
527
- __exportStar(__webpack_require__(/*! ./utils */ "./src/utils/index.ts"), exports);
528
- __exportStar(__webpack_require__(/*! ./components */ "./src/components/index.tsx"), exports);
529
- __exportStar(__webpack_require__(/*! ./graphql */ "./src/graphql/index.ts"), exports);
530
-
531
-
532
- /***/ }),
533
-
534
- /***/ "./src/interfaces/default-settings.ts":
535
- /*!********************************************!*\
536
- !*** ./src/interfaces/default-settings.ts ***!
537
- \********************************************/
538
- /*! no static exports found */
539
- /***/ (function(module, exports, __webpack_require__) {
540
-
541
- "use strict";
542
-
543
- Object.defineProperty(exports, "__esModule", { value: true });
544
-
545
-
546
- /***/ }),
547
-
548
- /***/ "./src/interfaces/error-state.ts":
549
- /*!***************************************!*\
550
- !*** ./src/interfaces/error-state.ts ***!
551
- \***************************************/
552
- /*! no static exports found */
553
- /***/ (function(module, exports, __webpack_require__) {
554
-
555
- "use strict";
556
-
557
- Object.defineProperty(exports, "__esModule", { value: true });
558
-
559
-
560
- /***/ }),
561
-
562
- /***/ "./src/interfaces/generated/generated-models.ts":
563
- /*!******************************************************!*\
564
- !*** ./src/interfaces/generated/generated-models.ts ***!
565
- \******************************************************/
566
- /*! no static exports found */
567
- /***/ (function(module, exports, __webpack_require__) {
568
-
569
- "use strict";
570
-
571
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
572
- if (k2 === undefined) k2 = k;
573
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
574
- }) : (function(o, m, k, k2) {
575
- if (k2 === undefined) k2 = k;
576
- o[k2] = m[k];
577
- }));
578
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
579
- Object.defineProperty(o, "default", { enumerable: true, value: v });
580
- }) : function(o, v) {
581
- o["default"] = v;
582
- });
583
- var __importStar = (this && this.__importStar) || function (mod) {
584
- if (mod && mod.__esModule) return mod;
585
- var result = {};
586
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
587
- __setModuleDefault(result, mod);
588
- return result;
589
- };
590
- Object.defineProperty(exports, "__esModule", { value: true });
591
- exports.useGetOrgNameFromContextLazyQuery = exports.useGetOrgNameFromContextQuery = exports.GetOrgNameFromContextDocument = exports.OrgNameInContextFragmentDoc = exports.ISettingValueType = exports.IPreDefinedRole = exports.IPermissionType = exports.IPermissionResource = exports.IPermissionAction = exports.IOrganizationContextPubSubEvents = exports.IEditPresentationTypes = exports.IConfigurationTarget = exports.IConfigurationScope = exports.IConfigFragmentName = exports.IConfigCollectionName = exports.IApplicationRoles = void 0;
592
- const client_1 = __webpack_require__(/*! @apollo/client */ "@apollo/client");
593
- const Apollo = __importStar(__webpack_require__(/*! @apollo/client */ "@apollo/client"));
594
- const defaultOptions = {};
595
- var IApplicationRoles;
596
- (function (IApplicationRoles) {
597
- /** User who is logged in */
598
- IApplicationRoles["USER"] = "USER";
599
- /** Owner of an Organization */
600
- IApplicationRoles["OWNER"] = "OWNER";
601
- /** Admin of an Organization */
602
- IApplicationRoles["ADMIN"] = "ADMIN";
603
- /** Project Contributors */
604
- IApplicationRoles["CONTRIBUTORS"] = "CONTRIBUTORS";
605
- /** Project Admin */
606
- IApplicationRoles["PROJECT_ADMIN"] = "PROJECT_ADMIN";
607
- /** Project Viewer */
608
- IApplicationRoles["PROJECT_VIEWER"] = "PROJECT_VIEWER";
609
- /** Guest */
610
- IApplicationRoles["GUEST"] = "GUEST";
611
- })(IApplicationRoles = exports.IApplicationRoles || (exports.IApplicationRoles = {}));
612
- ;
613
- var IConfigCollectionName;
614
- (function (IConfigCollectionName) {
615
- IConfigCollectionName["application"] = "application";
616
- IConfigCollectionName["accounts"] = "accounts";
617
- IConfigCollectionName["organizations"] = "organizations";
618
- IConfigCollectionName["machines"] = "machines";
619
- IConfigCollectionName["workspaces"] = "workspaces";
620
- IConfigCollectionName["teams"] = "teams";
621
- IConfigCollectionName["projects"] = "projects";
622
- IConfigCollectionName["clients"] = "clients";
623
- })(IConfigCollectionName = exports.IConfigCollectionName || (exports.IConfigCollectionName = {}));
624
- ;
625
- var IConfigFragmentName;
626
- (function (IConfigFragmentName) {
627
- IConfigFragmentName["resources"] = "resources";
628
- IConfigFragmentName["settings"] = "settings";
629
- IConfigFragmentName["policies"] = "policies";
630
- IConfigFragmentName["applicationPolicies"] = "applicationPolicies";
631
- IConfigFragmentName["roles"] = "roles";
632
- IConfigFragmentName["contributionRoles"] = "contributionRoles";
633
- /** Team Members Document with role value */
634
- IConfigFragmentName["teamMembers"] = "teamMembers";
635
- /** Organization Members Document with role value */
636
- IConfigFragmentName["orgMembers"] = "orgMembers";
637
- /** Billing */
638
- IConfigFragmentName["billingPlanPolicies"] = "billingPlanPolicies";
639
- })(IConfigFragmentName = exports.IConfigFragmentName || (exports.IConfigFragmentName = {}));
640
- ;
641
- /**
642
- * A configuration settings can have one of the following possible scopes.
643
- * Configuration scopes determine when a settings is available to the user through the Settings editor and
644
- * whether the setting is applicable. If no scope is declared, the default is `window`.
645
- */
646
- var IConfigurationScope;
647
- (function (IConfigurationScope) {
648
- /** Application specific configuration, which can be configured only in local user settings. */
649
- IConfigurationScope["APPLICATION"] = "APPLICATION";
650
- /** Machine specific configuration, which can be configured only in local and remote user settings. */
651
- IConfigurationScope["MACHINE"] = "MACHINE";
652
- /** Window specific configuration, which can be configured in the user or organization settings. */
653
- IConfigurationScope["WINDOW"] = "WINDOW";
654
- /** Resource specific configuration, which can be configured in the user, organization or workspace settings. */
655
- IConfigurationScope["RESOURCE"] = "RESOURCE";
656
- })(IConfigurationScope = exports.IConfigurationScope || (exports.IConfigurationScope = {}));
657
- ;
658
- var IConfigurationTarget;
659
- (function (IConfigurationTarget) {
660
- /** Targets the user configuration file for writing. */
661
- IConfigurationTarget["USER"] = "USER";
662
- IConfigurationTarget["APPLICATION"] = "APPLICATION";
663
- IConfigurationTarget["MACHINE"] = "MACHINE";
664
- /** Targets the organization configuration file for writing. This only works if a organization is opened. */
665
- IConfigurationTarget["ORGANIZATION"] = "ORGANIZATION";
666
- /** Targets the resource configuration file for writing. This only works if a organization is opened. */
667
- IConfigurationTarget["ORGANIZATION_RESOURCE"] = "ORGANIZATION_RESOURCE";
668
- IConfigurationTarget["DEFAULT"] = "DEFAULT";
669
- IConfigurationTarget["MEMORY"] = "MEMORY";
670
- })(IConfigurationTarget = exports.IConfigurationTarget || (exports.IConfigurationTarget = {}));
671
- ;
672
- var IEditPresentationTypes;
673
- (function (IEditPresentationTypes) {
674
- IEditPresentationTypes["Multiline"] = "Multiline";
675
- IEditPresentationTypes["Singleline"] = "Singleline";
676
- })(IEditPresentationTypes = exports.IEditPresentationTypes || (exports.IEditPresentationTypes = {}));
677
- ;
678
- /** Subscription event for context */
679
- var IOrganizationContextPubSubEvents;
680
- (function (IOrganizationContextPubSubEvents) {
681
- IOrganizationContextPubSubEvents["OrganizationContextUpdated"] = "OrganizationContextUpdated";
682
- IOrganizationContextPubSubEvents["OrganizationPolicyUpdated"] = "OrganizationPolicyUpdated";
683
- IOrganizationContextPubSubEvents["OrganizationConfigurationUpdated"] = "OrganizationConfigurationUpdated";
684
- IOrganizationContextPubSubEvents["OrganizationPermissionUpdated"] = "OrganizationPermissionUpdated";
685
- })(IOrganizationContextPubSubEvents = exports.IOrganizationContextPubSubEvents || (exports.IOrganizationContextPubSubEvents = {}));
686
- ;
687
- var IPermissionAction;
688
- (function (IPermissionAction) {
689
- IPermissionAction["View"] = "View";
690
- IPermissionAction["Create"] = "Create";
691
- IPermissionAction["Edit"] = "Edit";
692
- IPermissionAction["Delete"] = "Delete";
693
- IPermissionAction["Manage"] = "Manage";
694
- })(IPermissionAction = exports.IPermissionAction || (exports.IPermissionAction = {}));
695
- ;
696
- var IPermissionResource;
697
- (function (IPermissionResource) {
698
- IPermissionResource["Roles"] = "Roles";
699
- IPermissionResource["Permissions"] = "Permissions";
700
- IPermissionResource["Settings"] = "Settings";
701
- })(IPermissionResource = exports.IPermissionResource || (exports.IPermissionResource = {}));
702
- ;
703
- var IPermissionType;
704
- (function (IPermissionType) {
705
- IPermissionType["Allow"] = "Allow";
706
- IPermissionType["Deny"] = "Deny";
707
- IPermissionType["NotSet"] = "NotSet";
708
- })(IPermissionType = exports.IPermissionType || (exports.IPermissionType = {}));
709
- ;
710
- var IPreDefinedRole;
711
- (function (IPreDefinedRole) {
712
- IPreDefinedRole["OWNER"] = "OWNER";
713
- IPreDefinedRole["ADMIN"] = "ADMIN";
714
- IPreDefinedRole["MAINTAINER"] = "MAINTAINER";
715
- IPreDefinedRole["MEMBER"] = "MEMBER";
716
- IPreDefinedRole["PROJECT_ADMIN"] = "PROJECT_ADMIN";
717
- IPreDefinedRole["BILLING_LEADER"] = "BILLING_LEADER";
718
- IPreDefinedRole["DIRECT_MEMBER"] = "DIRECT_MEMBER";
719
- IPreDefinedRole["VIEWER"] = "VIEWER";
720
- IPreDefinedRole["GUEST"] = "GUEST";
721
- IPreDefinedRole["CONTRIBUTORS"] = "CONTRIBUTORS";
722
- })(IPreDefinedRole = exports.IPreDefinedRole || (exports.IPreDefinedRole = {}));
723
- ;
724
- var ISettingValueType;
725
- (function (ISettingValueType) {
726
- ISettingValueType["Null"] = "Null";
727
- ISettingValueType["Enum"] = "Enum";
728
- ISettingValueType["String"] = "String";
729
- ISettingValueType["Integer"] = "Integer";
730
- ISettingValueType["Number"] = "Number";
731
- ISettingValueType["Boolean"] = "Boolean";
732
- ISettingValueType["Exclude"] = "Exclude";
733
- ISettingValueType["Complex"] = "Complex";
734
- ISettingValueType["NullableInteger"] = "NullableInteger";
735
- ISettingValueType["NullableNumber"] = "NullableNumber";
736
- })(ISettingValueType = exports.ISettingValueType || (exports.ISettingValueType = {}));
737
- ;
738
- exports.OrgNameInContextFragmentDoc = client_1.gql `
739
- fragment OrgNameInContext on Context {
740
- orgName
741
- }
742
- `;
743
- exports.GetOrgNameFromContextDocument = client_1.gql `
744
- query GetOrgNameFromContext {
745
- getOrgNameFromContext @client {
746
- ...OrgNameInContext
747
- }
748
- }
749
- ${exports.OrgNameInContextFragmentDoc}`;
750
- /**
751
- * __useGetOrgNameFromContextQuery__
752
- *
753
- * To run a query within a React component, call `useGetOrgNameFromContextQuery` and pass it any options that fit your needs.
754
- * When your component renders, `useGetOrgNameFromContextQuery` returns an object from Apollo Client that contains loading, error, and data properties
755
- * you can use to render your UI.
756
- *
757
- * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
758
- *
759
- * @example
760
- * const { data, loading, error } = useGetOrgNameFromContextQuery({
761
- * variables: {
762
- * },
763
- * });
764
- */
765
- function useGetOrgNameFromContextQuery(baseOptions) {
766
- const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
767
- return Apollo.useQuery(exports.GetOrgNameFromContextDocument, options);
768
- }
769
- exports.useGetOrgNameFromContextQuery = useGetOrgNameFromContextQuery;
770
- function useGetOrgNameFromContextLazyQuery(baseOptions) {
771
- const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
772
- return Apollo.useLazyQuery(exports.GetOrgNameFromContextDocument, options);
773
- }
774
- exports.useGetOrgNameFromContextLazyQuery = useGetOrgNameFromContextLazyQuery;
775
-
776
-
777
- /***/ }),
778
-
779
- /***/ "./src/interfaces/generated/index.ts":
780
- /*!*******************************************!*\
781
- !*** ./src/interfaces/generated/index.ts ***!
782
- \*******************************************/
783
- /*! no static exports found */
784
- /***/ (function(module, exports, __webpack_require__) {
785
-
786
- "use strict";
787
-
788
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
789
- if (k2 === undefined) k2 = k;
790
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
791
- }) : (function(o, m, k, k2) {
792
- if (k2 === undefined) k2 = k;
793
- o[k2] = m[k];
794
- }));
795
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
796
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
797
- };
798
- Object.defineProperty(exports, "__esModule", { value: true });
799
- __exportStar(__webpack_require__(/*! ./generated-models */ "./src/interfaces/generated/generated-models.ts"), exports);
800
-
801
-
802
- /***/ }),
803
-
804
- /***/ "./src/interfaces/index.ts":
805
- /*!*********************************!*\
806
- !*** ./src/interfaces/index.ts ***!
807
- \*********************************/
808
- /*! no static exports found */
809
- /***/ (function(module, exports, __webpack_require__) {
810
-
811
- "use strict";
812
-
813
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
814
- if (k2 === undefined) k2 = k;
815
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
816
- }) : (function(o, m, k, k2) {
817
- if (k2 === undefined) k2 = k;
818
- o[k2] = m[k];
819
- }));
820
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
821
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
822
- };
823
- Object.defineProperty(exports, "__esModule", { value: true });
824
- __exportStar(__webpack_require__(/*! ./generated */ "./src/interfaces/generated/index.ts"), exports);
825
- __exportStar(__webpack_require__(/*! ./default-settings */ "./src/interfaces/default-settings.ts"), exports);
826
- __exportStar(__webpack_require__(/*! ./pure-settings */ "./src/interfaces/pure-settings.ts"), exports);
827
- __exportStar(__webpack_require__(/*! ./typings */ "./src/interfaces/typings.ts"), exports);
828
- __exportStar(__webpack_require__(/*! ./error-state */ "./src/interfaces/error-state.ts"), exports);
829
-
830
-
831
- /***/ }),
832
-
833
- /***/ "./src/interfaces/pure-settings.ts":
834
- /*!*****************************************!*\
835
- !*** ./src/interfaces/pure-settings.ts ***!
836
- \*****************************************/
837
- /*! no static exports found */
838
- /***/ (function(module, exports, __webpack_require__) {
839
-
840
- "use strict";
841
-
842
- Object.defineProperty(exports, "__esModule", { value: true });
843
-
844
-
845
- /***/ }),
846
-
847
- /***/ "./src/interfaces/typings.ts":
848
- /*!***********************************!*\
849
- !*** ./src/interfaces/typings.ts ***!
850
- \***********************************/
851
- /*! no static exports found */
852
- /***/ (function(module, exports, __webpack_require__) {
853
-
854
- "use strict";
855
-
856
- Object.defineProperty(exports, "__esModule", { value: true });
857
-
858
-
859
- /***/ }),
860
-
861
- /***/ "./src/redux/actions/error-actions.ts":
862
- /*!********************************************!*\
863
- !*** ./src/redux/actions/error-actions.ts ***!
864
- \********************************************/
865
- /*! no static exports found */
866
- /***/ (function(module, exports, __webpack_require__) {
867
-
868
- "use strict";
869
-
870
- Object.defineProperty(exports, "__esModule", { value: true });
871
- exports.restoreApplicationError = exports.dismissApplicationError = exports.setApplicationError = void 0;
872
- const constants_1 = __webpack_require__(/*! ../../constants */ "./src/constants/index.ts");
873
- const setApplicationError = (payload) => {
874
- return ({
875
- type: constants_1.LOG_APPLICATION_ERROR,
876
- payload,
877
- });
878
- };
879
- exports.setApplicationError = setApplicationError;
880
- function dismissApplicationError(dismissByType) {
881
- return {
882
- type: constants_1.DISMISS_APPLICATION_ERROR,
883
- payload: {
884
- dismissByType
885
- }
886
- };
887
- }
888
- exports.dismissApplicationError = dismissApplicationError;
889
- const restoreApplicationError = (payload) => {
890
- return ({
891
- type: constants_1.RESTORE_APPLICATION_ERRORS,
892
- payload,
893
- });
894
- };
895
- exports.restoreApplicationError = restoreApplicationError;
896
-
897
-
898
- /***/ }),
899
-
900
- /***/ "./src/redux/actions/index.ts":
901
- /*!************************************!*\
902
- !*** ./src/redux/actions/index.ts ***!
903
- \************************************/
904
- /*! no static exports found */
905
- /***/ (function(module, exports, __webpack_require__) {
906
-
907
- "use strict";
908
-
909
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
910
- if (k2 === undefined) k2 = k;
911
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
912
- }) : (function(o, m, k, k2) {
913
- if (k2 === undefined) k2 = k;
914
- o[k2] = m[k];
915
- }));
916
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
917
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
918
- };
919
- Object.defineProperty(exports, "__esModule", { value: true });
920
- // export * from './settings-action';
921
- __exportStar(__webpack_require__(/*! ./error-actions */ "./src/redux/actions/error-actions.ts"), exports);
922
-
923
-
924
- /***/ }),
925
-
926
- /***/ "./src/redux/index.ts":
927
- /*!****************************!*\
928
- !*** ./src/redux/index.ts ***!
929
- \****************************/
930
- /*! no static exports found */
931
- /***/ (function(module, exports, __webpack_require__) {
932
-
933
- "use strict";
934
-
935
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
936
- if (k2 === undefined) k2 = k;
937
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
938
- }) : (function(o, m, k, k2) {
939
- if (k2 === undefined) k2 = k;
940
- o[k2] = m[k];
941
- }));
942
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
943
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
944
- };
945
- Object.defineProperty(exports, "__esModule", { value: true });
946
- __exportStar(__webpack_require__(/*! ./actions */ "./src/redux/actions/index.ts"), exports);
947
- __exportStar(__webpack_require__(/*! ./settings */ "./src/redux/settings.ts"), exports);
948
- __exportStar(__webpack_require__(/*! ./reducers */ "./src/redux/reducers/index.ts"), exports);
949
-
950
-
951
- /***/ }),
952
-
953
- /***/ "./src/redux/reducers/error.ts":
954
- /*!*************************************!*\
955
- !*** ./src/redux/reducers/error.ts ***!
956
- \*************************************/
957
- /*! no static exports found */
958
- /***/ (function(module, exports, __webpack_require__) {
959
-
960
- "use strict";
961
-
962
- Object.defineProperty(exports, "__esModule", { value: true });
963
- exports.applicationErrors = exports.initialErrorsState = void 0;
964
- const constants_1 = __webpack_require__(/*! ../../constants */ "./src/constants/index.ts");
965
- exports.initialErrorsState = [];
966
- function applicationErrors(errorState = exports.initialErrorsState, action) {
967
- switch (action === null || action === void 0 ? void 0 : action.type) {
968
- case constants_1.LOG_APPLICATION_ERROR: {
969
- const { type: errorType, payload, pluginName, displayable = true } = (action === null || action === void 0 ? void 0 : action.payload) || {};
970
- const nextState = [...errorState];
971
- nextState.push({
972
- type: errorType,
973
- displayable,
974
- payload,
975
- pluginName,
976
- date: new Date(Date.now()).toUTCString(),
977
- });
978
- return nextState;
979
- }
980
- case constants_1.DISMISS_APPLICATION_ERROR: {
981
- const { dismissByType } = action === null || action === void 0 ? void 0 : action.payload;
982
- let nextState = [...errorState];
983
- nextState = nextState.filter(({ type }) => dismissByType !== type);
984
- return nextState;
985
- }
986
- case constants_1.CLEAR_APPLICATION_ERRORS: {
987
- return [];
988
- }
989
- case constants_1.RESTORE_APPLICATION_ERRORS:
990
- return action.payload;
991
- default:
992
- return errorState;
993
- }
994
- }
995
- exports.applicationErrors = applicationErrors;
996
-
997
-
998
- /***/ }),
999
-
1000
- /***/ "./src/redux/reducers/index.ts":
1001
- /*!*************************************!*\
1002
- !*** ./src/redux/reducers/index.ts ***!
1003
- \*************************************/
1004
- /*! no static exports found */
1005
- /***/ (function(module, exports, __webpack_require__) {
1006
-
1007
- "use strict";
1008
-
1009
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1010
- if (k2 === undefined) k2 = k;
1011
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
1012
- }) : (function(o, m, k, k2) {
1013
- if (k2 === undefined) k2 = k;
1014
- o[k2] = m[k];
1015
- }));
1016
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
1017
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1018
- };
1019
- Object.defineProperty(exports, "__esModule", { value: true });
1020
- __exportStar(__webpack_require__(/*! ./error */ "./src/redux/reducers/error.ts"), exports);
1021
-
1022
-
1023
- /***/ }),
1024
-
1025
- /***/ "./src/redux/selectors/index.ts":
1026
- /*!**************************************!*\
1027
- !*** ./src/redux/selectors/index.ts ***!
1028
- \**************************************/
1029
- /*! no static exports found */
1030
- /***/ (function(module, exports, __webpack_require__) {
1031
-
1032
- "use strict";
1033
-
1034
- Object.defineProperty(exports, "__esModule", { value: true });
1035
- exports.backendErrorSelector = void 0;
1036
- const reselect_1 = __webpack_require__(/*! reselect */ "reselect");
1037
- const constants_1 = __webpack_require__(/*! ../../constants */ "./src/constants/index.ts");
1038
- exports.backendErrorSelector = reselect_1.createSelector((state) => state.applicationErrors, (applicationErrors) => applicationErrors.find((error) => error.type === constants_1.BACKEND_ERROR));
1039
-
1040
-
1041
- /***/ }),
1042
-
1043
- /***/ "./src/redux/settings.ts":
1044
- /*!*******************************!*\
1045
- !*** ./src/redux/settings.ts ***!
1046
- \*******************************/
1047
- /*! no static exports found */
1048
- /***/ (function(module, exports, __webpack_require__) {
1049
-
1050
- "use strict";
1051
-
1052
- Object.defineProperty(exports, "__esModule", { value: true });
1053
- exports.settingsReducer = void 0;
1054
- /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
1055
- /* eslint-disable no-case-declarations */
1056
- const constants_1 = __webpack_require__(/*! ../constants */ "./src/constants/index.ts");
1057
- const config_1 = __webpack_require__(/*! ../config */ "./src/config/index.ts");
1058
- // Note: We customize reducer part as AntPro uses inbuild way.
1059
- const updateColorWeak = (colorWeak) => {
1060
- // @sri to avoid breaking during SSR, split into to checks
1061
- if (typeof window !== 'undefined') {
1062
- const root = document.getElementById('root');
1063
- if (root) {
1064
- root.className = colorWeak ? 'colorWeak' : '';
1065
- }
1066
- }
1067
- };
1068
- const settingsReducer = (state = config_1.config.LAYOUT_SETTINGS, { type, payload = {} }) => {
1069
- switch (type) {
1070
- case constants_1.CHANGE_SETTINGS_ACTION:
1071
- const { colorWeak, contentWidth } = payload;
1072
- // @sri to avoid breaking during SSR, split into to checks
1073
- if (state.contentWidth !== contentWidth) {
1074
- if (typeof window !== 'undefined') {
1075
- window.dispatchEvent(new Event('resize'));
1076
- }
1077
- }
1078
- updateColorWeak(!!colorWeak);
1079
- return Object.assign(Object.assign({}, state), payload);
1080
- case constants_1.CHANGE_LANGUAGE:
1081
- return Object.assign(Object.assign({}, state), { language: payload });
1082
- default:
1083
- return state;
1084
- }
1085
- };
1086
- exports.settingsReducer = settingsReducer;
1087
-
1088
-
1089
- /***/ }),
1090
-
1091
- /***/ "./src/utils/index.ts":
1092
- /*!****************************!*\
1093
- !*** ./src/utils/index.ts ***!
1094
- \****************************/
1095
- /*! no static exports found */
1096
- /***/ (function(module, exports, __webpack_require__) {
1097
-
1098
- "use strict";
1099
-
1100
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1101
- if (k2 === undefined) k2 = k;
1102
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
1103
- }) : (function(o, m, k, k2) {
1104
- if (k2 === undefined) k2 = k;
1105
- o[k2] = m[k];
1106
- }));
1107
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
1108
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1109
- };
1110
- Object.defineProperty(exports, "__esModule", { value: true });
1111
- __exportStar(__webpack_require__(/*! ./seperatedMenus */ "./src/utils/seperatedMenus.ts"), exports);
1112
-
1113
-
1114
- /***/ }),
1115
-
1116
- /***/ "./src/utils/seperatedMenus.ts":
1117
- /*!*************************************!*\
1118
- !*** ./src/utils/seperatedMenus.ts ***!
1119
- \*************************************/
1120
- /*! no static exports found */
1121
- /***/ (function(module, exports, __webpack_require__) {
1122
-
1123
- "use strict";
1124
-
1125
- Object.defineProperty(exports, "__esModule", { value: true });
1126
- exports.getMenuSeparation = void 0;
1127
- // @sri custom function
1128
- const getMenuSeparation = (menus) => {
1129
- const upperMenus = menus.filter((menu) => menu.position === 'UPPER');
1130
- const middleMenus = menus.filter((menu) => menu.position === 'MIDDLE' ||
1131
- (menu.position !== 'UPPER' && menu.position !== 'LOWER' && menu.position !== 'BOTTOM'));
1132
- const lowerMenus = menus.filter((menu) => menu.position === 'LOWER');
1133
- const bottomMenus = menus.filter((menu) => menu.position === 'BOTTOM');
1134
- return {
1135
- upperMenus,
1136
- middleMenus,
1137
- lowerMenus,
1138
- bottomMenus,
1139
- };
1140
- };
1141
- exports.getMenuSeparation = getMenuSeparation;
1142
-
1143
-
1144
- /***/ }),
1145
-
1146
- /***/ "@apollo/client":
1147
- /*!*********************************!*\
1148
- !*** external "@apollo/client" ***!
1149
- \*********************************/
1150
- /*! no static exports found */
1151
- /***/ (function(module, exports) {
1152
-
1153
- module.exports = require("@apollo/client");
1154
-
1155
- /***/ }),
1156
-
1157
- /***/ "@apollo/client/link/error":
1158
- /*!********************************************!*\
1159
- !*** external "@apollo/client/link/error" ***!
1160
- \********************************************/
1161
- /*! no static exports found */
1162
- /***/ (function(module, exports) {
1163
-
1164
- module.exports = require("@apollo/client/link/error");
1165
-
1166
- /***/ }),
1167
-
1168
- /***/ "@cdm-logger/client":
1169
- /*!*************************************!*\
1170
- !*** external "@cdm-logger/client" ***!
1171
- \*************************************/
1172
- /*! no static exports found */
1173
- /***/ (function(module, exports) {
1174
-
1175
- module.exports = require("@cdm-logger/client");
1176
-
1177
- /***/ }),
1178
-
1179
- /***/ "@common-stack/components-pro":
1180
- /*!***********************************************!*\
1181
- !*** external "@common-stack/components-pro" ***!
1182
- \***********************************************/
1183
- /*! no static exports found */
1184
- /***/ (function(module, exports) {
1185
-
1186
- module.exports = require("@common-stack/components-pro");
1187
-
1188
- /***/ }),
1189
-
1190
- /***/ "envalid":
1191
- /*!**************************!*\
1192
- !*** external "envalid" ***!
1193
- \**************************/
1194
- /*! no static exports found */
1195
- /***/ (function(module, exports) {
1196
-
1197
- module.exports = require("envalid");
1198
-
1199
- /***/ }),
1200
-
1201
- /***/ "react":
1202
- /*!************************!*\
1203
- !*** external "react" ***!
1204
- \************************/
1205
- /*! no static exports found */
1206
- /***/ (function(module, exports) {
1207
-
1208
- module.exports = require("react");
1209
-
1210
- /***/ }),
1211
-
1212
- /***/ "react-redux":
1213
- /*!******************************!*\
1214
- !*** external "react-redux" ***!
1215
- \******************************/
1216
- /*! no static exports found */
1217
- /***/ (function(module, exports) {
1218
-
1219
- module.exports = require("react-redux");
1220
-
1221
- /***/ }),
1222
-
1223
- /***/ "reflect-metadata":
1224
- /*!***********************************!*\
1225
- !*** external "reflect-metadata" ***!
1226
- \***********************************/
1227
- /*! no static exports found */
1228
- /***/ (function(module, exports) {
1229
-
1230
- module.exports = require("reflect-metadata");
1231
-
1232
- /***/ }),
1233
-
1234
- /***/ "reselect":
1235
- /*!***************************!*\
1236
- !*** external "reselect" ***!
1237
- \***************************/
1238
- /*! no static exports found */
1239
- /***/ (function(module, exports) {
1240
-
1241
- module.exports = require("reselect");
1242
-
1243
- /***/ }),
1244
-
1245
- /***/ "serialize-error":
1246
- /*!**********************************!*\
1247
- !*** external "serialize-error" ***!
1248
- \**********************************/
1249
- /*! no static exports found */
1250
- /***/ (function(module, exports) {
1251
-
1252
- module.exports = require("serialize-error");
1253
-
1254
- /***/ })
1255
-
1256
- /******/ });
1
+ export * from './interfaces';
2
+ export * from './constants';
3
+ export * from './redux';
4
+ export * from './utils';
5
+ export * from './components';
6
+ export * from './graphql';
7
+ export * from './themes';
1257
8
  //# sourceMappingURL=index.js.map