@blaze-cms/admin 0.147.0-rc-eagle.1 → 0.147.0-rc-eagle.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/lib/blaze.config.js +34 -0
  2. package/lib/blaze.config.js.map +1 -0
  3. package/lib/utils/get-blaze-admin.js +1 -1
  4. package/lib/utils/get-blaze-admin.js.map +1 -1
  5. package/lib-es/blaze.config.js +27 -0
  6. package/lib-es/blaze.config.js.map +1 -0
  7. package/lib-es/components/CardPrompt/CardPrompt.js +26 -0
  8. package/lib-es/components/CardPrompt/CardPrompt.js.map +1 -0
  9. package/lib-es/components/CardPrompt/index.js +3 -0
  10. package/lib-es/components/CardPrompt/index.js.map +1 -0
  11. package/lib-es/components/CopyDataFromAction/CopyDataFromAction.js +140 -0
  12. package/lib-es/components/CopyDataFromAction/CopyDataFromAction.js.map +1 -0
  13. package/lib-es/components/CopyDataFromAction/helpers.js +23 -0
  14. package/lib-es/components/CopyDataFromAction/helpers.js.map +1 -0
  15. package/lib-es/components/CopyDataFromAction/index.js +3 -0
  16. package/lib-es/components/CopyDataFromAction/index.js.map +1 -0
  17. package/lib-es/components/DeleteAction/DeleteAction.js +32 -0
  18. package/lib-es/components/DeleteAction/DeleteAction.js.map +1 -0
  19. package/lib-es/components/DeleteAction/index.js +3 -0
  20. package/lib-es/components/DeleteAction/index.js.map +1 -0
  21. package/lib-es/components/LeaveAction/LeaveAction.js +32 -0
  22. package/lib-es/components/LeaveAction/LeaveAction.js.map +1 -0
  23. package/lib-es/components/LeaveAction/index.js +3 -0
  24. package/lib-es/components/LeaveAction/index.js.map +1 -0
  25. package/lib-es/components/Loading/Loading.js +26 -0
  26. package/lib-es/components/Loading/Loading.js.map +1 -0
  27. package/lib-es/components/Loading/constants.js +10 -0
  28. package/lib-es/components/Loading/constants.js.map +1 -0
  29. package/lib-es/components/Loading/index.js +3 -0
  30. package/lib-es/components/Loading/index.js.map +1 -0
  31. package/lib-es/components/MetaTitle/MetaTitle.js +31 -0
  32. package/lib-es/components/MetaTitle/MetaTitle.js.map +1 -0
  33. package/lib-es/components/MetaTitle/index.js +3 -0
  34. package/lib-es/components/MetaTitle/index.js.map +1 -0
  35. package/lib-es/components/PageHeader/PageHeader.js +51 -0
  36. package/lib-es/components/PageHeader/PageHeader.js.map +1 -0
  37. package/lib-es/components/PageHeader/index.js +3 -0
  38. package/lib-es/components/PageHeader/index.js.map +1 -0
  39. package/lib-es/components/RevertToTemplate/RevertToTemplate.js +30 -0
  40. package/lib-es/components/RevertToTemplate/RevertToTemplate.js.map +1 -0
  41. package/lib-es/components/RevertToTemplate/index.js +3 -0
  42. package/lib-es/components/RevertToTemplate/index.js.map +1 -0
  43. package/lib-es/index.js +11 -0
  44. package/lib-es/index.js.map +1 -0
  45. package/lib-es/utils/build-interface.js +47 -0
  46. package/lib-es/utils/build-interface.js.map +1 -0
  47. package/lib-es/utils/get-blaze-admin.js +14 -0
  48. package/lib-es/utils/get-blaze-admin.js.map +1 -0
  49. package/package.json +20 -15
  50. package/src/utils/get-blaze-admin.js +1 -1
  51. package/CHANGELOG.md +0 -1938
  52. package/babel.config.js +0 -3
  53. package/jest.config.js +0 -5
  54. /package/{blaze.config.js → src/blaze.config.js} +0 -0
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _pluginAuthLocalUi = _interopRequireDefault(require("@blaze-cms/plugin-auth-local-ui"));
9
+ var _pluginAdminCoreUi = _interopRequireDefault(require("@blaze-cms/plugin-admin-core-ui"));
10
+ var _pluginAuthUi = _interopRequireDefault(require("@blaze-cms/plugin-auth-ui"));
11
+ var _pluginDataUi = _interopRequireDefault(require("@blaze-cms/plugin-data-ui"));
12
+ var _pluginPageBuilderUi = _interopRequireDefault(require("@blaze-cms/plugin-page-builder-ui"));
13
+ var _pluginMediaUi = _interopRequireDefault(require("@blaze-cms/plugin-media-ui"));
14
+ var _pluginGtmUi = _interopRequireDefault(require("@blaze-cms/plugin-gtm-ui"));
15
+ var _pluginGoogleMapsUi = _interopRequireDefault(require("@blaze-cms/plugin-google-maps-ui"));
16
+ var _pluginRenderHooksUi = _interopRequireDefault(require("@blaze-cms/plugin-render-hooks-ui"));
17
+ const plugins = new Map();
18
+ plugins.set(_pluginAuthLocalUi.default, {});
19
+ plugins.set(_pluginAdminCoreUi.default, {});
20
+ plugins.set(_pluginAuthUi.default, {});
21
+ plugins.set(_pluginDataUi.default, {});
22
+ plugins.set(_pluginPageBuilderUi.default, {});
23
+ plugins.set(_pluginMediaUi.default, {});
24
+ plugins.set(_pluginGtmUi.default, {});
25
+ plugins.set(_pluginGoogleMapsUi.default, {});
26
+ plugins.set(_pluginRenderHooksUi.default, {});
27
+ const apollo = {
28
+ addTypename: false
29
+ };
30
+ var _default = exports.default = {
31
+ plugins,
32
+ apollo
33
+ };
34
+ //# sourceMappingURL=blaze.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blaze.config.js","names":["_pluginAuthLocalUi","_interopRequireDefault","require","_pluginAdminCoreUi","_pluginAuthUi","_pluginDataUi","_pluginPageBuilderUi","_pluginMediaUi","_pluginGtmUi","_pluginGoogleMapsUi","_pluginRenderHooksUi","plugins","Map","set","authLocal","coreUI","auth","data","pageBuilder","media","gtm","googleMaps","renderHooks","apollo","addTypename","_default","exports","default"],"sources":["../src/blaze.config.js"],"sourcesContent":["import authLocal from '@blaze-cms/plugin-auth-local-ui';\nimport coreUI from '@blaze-cms/plugin-admin-core-ui';\nimport auth from '@blaze-cms/plugin-auth-ui';\nimport data from '@blaze-cms/plugin-data-ui';\nimport pageBuilder from '@blaze-cms/plugin-page-builder-ui';\nimport media from '@blaze-cms/plugin-media-ui';\nimport gtm from '@blaze-cms/plugin-gtm-ui';\nimport googleMaps from '@blaze-cms/plugin-google-maps-ui';\nimport renderHooks from '@blaze-cms/plugin-render-hooks-ui';\n\nconst plugins = new Map();\nplugins.set(authLocal, {});\nplugins.set(coreUI, {});\nplugins.set(auth, {});\nplugins.set(data, {});\nplugins.set(pageBuilder, {});\nplugins.set(media, {});\nplugins.set(gtm, {});\nplugins.set(googleMaps, {});\nplugins.set(renderHooks, {});\n\nconst apollo = { addTypename: false };\n\nexport default { plugins, apollo };\n"],"mappings":";;;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,aAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,oBAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,cAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,YAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,mBAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,oBAAA,GAAAT,sBAAA,CAAAC,OAAA;AAEA,MAAMS,OAAO,GAAG,IAAIC,GAAG,CAAC,CAAC;AACzBD,OAAO,CAACE,GAAG,CAACC,0BAAS,EAAE,CAAC,CAAC,CAAC;AAC1BH,OAAO,CAACE,GAAG,CAACE,0BAAM,EAAE,CAAC,CAAC,CAAC;AACvBJ,OAAO,CAACE,GAAG,CAACG,qBAAI,EAAE,CAAC,CAAC,CAAC;AACrBL,OAAO,CAACE,GAAG,CAACI,qBAAI,EAAE,CAAC,CAAC,CAAC;AACrBN,OAAO,CAACE,GAAG,CAACK,4BAAW,EAAE,CAAC,CAAC,CAAC;AAC5BP,OAAO,CAACE,GAAG,CAACM,sBAAK,EAAE,CAAC,CAAC,CAAC;AACtBR,OAAO,CAACE,GAAG,CAACO,oBAAG,EAAE,CAAC,CAAC,CAAC;AACpBT,OAAO,CAACE,GAAG,CAACQ,2BAAU,EAAE,CAAC,CAAC,CAAC;AAC3BV,OAAO,CAACE,GAAG,CAACS,4BAAW,EAAE,CAAC,CAAC,CAAC;AAE5B,MAAMC,MAAM,GAAG;EAAEC,WAAW,EAAE;AAAM,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEvB;EAAEhB,OAAO;EAAEY;AAAO,CAAC","ignoreList":[]}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.getBlazeAdmin = getBlazeAdmin;
8
8
  var _coreUi = _interopRequireDefault(require("@blaze-cms/core-ui"));
9
- var _blaze = _interopRequireDefault(require("../../blaze.config"));
9
+ var _blaze = _interopRequireDefault(require("../blaze.config"));
10
10
  var _buildInterface = _interopRequireDefault(require("./build-interface"));
11
11
  function getBlazeAdmin({
12
12
  buildConfig
@@ -1 +1 @@
1
- {"version":3,"file":"get-blaze-admin.js","names":["_coreUi","_interopRequireDefault","require","_blaze","_buildInterface","getBlazeAdmin","buildConfig","config","blazeConfig","app","getBlazeUi","render","buildInterface"],"sources":["../../src/utils/get-blaze-admin.js"],"sourcesContent":["import getBlazeUi from '@blaze-cms/core-ui';\nimport blazeConfig from '../../blaze.config';\nimport buildInterface from './build-interface';\n\nexport function getBlazeAdmin({ buildConfig } = {}) {\n const config = buildConfig ? buildConfig(blazeConfig) : blazeConfig;\n const app = getBlazeUi({ config });\n app.render = () => buildInterface(app);\n return app;\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,eAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEO,SAASG,aAAaA,CAAC;EAAEC;AAAY,CAAC,GAAG,CAAC,CAAC,EAAE;EAClD,MAAMC,MAAM,GAAGD,WAAW,GAAGA,WAAW,CAACE,cAAW,CAAC,GAAGA,cAAW;EACnE,MAAMC,GAAG,GAAG,IAAAC,eAAU,EAAC;IAAEH;EAAO,CAAC,CAAC;EAClCE,GAAG,CAACE,MAAM,GAAG,MAAM,IAAAC,uBAAc,EAACH,GAAG,CAAC;EACtC,OAAOA,GAAG;AACZ","ignoreList":[]}
1
+ {"version":3,"file":"get-blaze-admin.js","names":["_coreUi","_interopRequireDefault","require","_blaze","_buildInterface","getBlazeAdmin","buildConfig","config","blazeConfig","app","getBlazeUi","render","buildInterface"],"sources":["../../src/utils/get-blaze-admin.js"],"sourcesContent":["import getBlazeUi from '@blaze-cms/core-ui';\nimport blazeConfig from '../blaze.config';\nimport buildInterface from './build-interface';\n\nexport function getBlazeAdmin({ buildConfig } = {}) {\n const config = buildConfig ? buildConfig(blazeConfig) : blazeConfig;\n const app = getBlazeUi({ config });\n app.render = () => buildInterface(app);\n return app;\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,eAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEO,SAASG,aAAaA,CAAC;EAAEC;AAAY,CAAC,GAAG,CAAC,CAAC,EAAE;EAClD,MAAMC,MAAM,GAAGD,WAAW,GAAGA,WAAW,CAACE,cAAW,CAAC,GAAGA,cAAW;EACnE,MAAMC,GAAG,GAAG,IAAAC,eAAU,EAAC;IAAEH;EAAO,CAAC,CAAC;EAClCE,GAAG,CAACE,MAAM,GAAG,MAAM,IAAAC,uBAAc,EAACH,GAAG,CAAC;EACtC,OAAOA,GAAG;AACZ","ignoreList":[]}
@@ -0,0 +1,27 @@
1
+ import authLocal from '@blaze-cms/plugin-auth-local-ui';
2
+ import coreUI from '@blaze-cms/plugin-admin-core-ui';
3
+ import auth from '@blaze-cms/plugin-auth-ui';
4
+ import data from '@blaze-cms/plugin-data-ui';
5
+ import pageBuilder from '@blaze-cms/plugin-page-builder-ui';
6
+ import media from '@blaze-cms/plugin-media-ui';
7
+ import gtm from '@blaze-cms/plugin-gtm-ui';
8
+ import googleMaps from '@blaze-cms/plugin-google-maps-ui';
9
+ import renderHooks from '@blaze-cms/plugin-render-hooks-ui';
10
+ const plugins = new Map();
11
+ plugins.set(authLocal, {});
12
+ plugins.set(coreUI, {});
13
+ plugins.set(auth, {});
14
+ plugins.set(data, {});
15
+ plugins.set(pageBuilder, {});
16
+ plugins.set(media, {});
17
+ plugins.set(gtm, {});
18
+ plugins.set(googleMaps, {});
19
+ plugins.set(renderHooks, {});
20
+ const apollo = {
21
+ addTypename: false
22
+ };
23
+ export default {
24
+ plugins,
25
+ apollo
26
+ };
27
+ //# sourceMappingURL=blaze.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blaze.config.js","names":["authLocal","coreUI","auth","data","pageBuilder","media","gtm","googleMaps","renderHooks","plugins","Map","set","apollo","addTypename"],"sources":["../src/blaze.config.js"],"sourcesContent":["import authLocal from '@blaze-cms/plugin-auth-local-ui';\nimport coreUI from '@blaze-cms/plugin-admin-core-ui';\nimport auth from '@blaze-cms/plugin-auth-ui';\nimport data from '@blaze-cms/plugin-data-ui';\nimport pageBuilder from '@blaze-cms/plugin-page-builder-ui';\nimport media from '@blaze-cms/plugin-media-ui';\nimport gtm from '@blaze-cms/plugin-gtm-ui';\nimport googleMaps from '@blaze-cms/plugin-google-maps-ui';\nimport renderHooks from '@blaze-cms/plugin-render-hooks-ui';\n\nconst plugins = new Map();\nplugins.set(authLocal, {});\nplugins.set(coreUI, {});\nplugins.set(auth, {});\nplugins.set(data, {});\nplugins.set(pageBuilder, {});\nplugins.set(media, {});\nplugins.set(gtm, {});\nplugins.set(googleMaps, {});\nplugins.set(renderHooks, {});\n\nconst apollo = { addTypename: false };\n\nexport default { plugins, apollo };\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,iCAAiC;AACvD,OAAOC,MAAM,MAAM,iCAAiC;AACpD,OAAOC,IAAI,MAAM,2BAA2B;AAC5C,OAAOC,IAAI,MAAM,2BAA2B;AAC5C,OAAOC,WAAW,MAAM,mCAAmC;AAC3D,OAAOC,KAAK,MAAM,4BAA4B;AAC9C,OAAOC,GAAG,MAAM,0BAA0B;AAC1C,OAAOC,UAAU,MAAM,kCAAkC;AACzD,OAAOC,WAAW,MAAM,mCAAmC;AAE3D,MAAMC,OAAO,GAAG,IAAIC,GAAG,CAAC,CAAC;AACzBD,OAAO,CAACE,GAAG,CAACX,SAAS,EAAE,CAAC,CAAC,CAAC;AAC1BS,OAAO,CAACE,GAAG,CAACV,MAAM,EAAE,CAAC,CAAC,CAAC;AACvBQ,OAAO,CAACE,GAAG,CAACT,IAAI,EAAE,CAAC,CAAC,CAAC;AACrBO,OAAO,CAACE,GAAG,CAACR,IAAI,EAAE,CAAC,CAAC,CAAC;AACrBM,OAAO,CAACE,GAAG,CAACP,WAAW,EAAE,CAAC,CAAC,CAAC;AAC5BK,OAAO,CAACE,GAAG,CAACN,KAAK,EAAE,CAAC,CAAC,CAAC;AACtBI,OAAO,CAACE,GAAG,CAACL,GAAG,EAAE,CAAC,CAAC,CAAC;AACpBG,OAAO,CAACE,GAAG,CAACJ,UAAU,EAAE,CAAC,CAAC,CAAC;AAC3BE,OAAO,CAACE,GAAG,CAACH,WAAW,EAAE,CAAC,CAAC,CAAC;AAE5B,MAAMI,MAAM,GAAG;EAAEC,WAAW,EAAE;AAAM,CAAC;AAErC,eAAe;EAAEJ,OAAO;EAAEG;AAAO,CAAC","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ const CardPrompt = ({
4
+ children
5
+ }) => /*#__PURE__*/React.createElement("div", {
6
+ className: "card card--prompt",
7
+ "data-testid": "card-prompt"
8
+ }, /*#__PURE__*/React.createElement("div", {
9
+ className: "card__image amber"
10
+ }, /*#__PURE__*/React.createElement("img", {
11
+ src: "https://images.thisisblaze.com/empty-icon-140-140.png",
12
+ alt: "prompt"
13
+ })), /*#__PURE__*/React.createElement("div", {
14
+ className: "card__content card__content--prompt"
15
+ }, /*#__PURE__*/React.createElement("h2", {
16
+ className: "card__title"
17
+ }, "Nothing to see here!"), /*#__PURE__*/React.createElement("p", null, "How about adding some content now?"), children));
18
+ CardPrompt.displayName = 'CardPrompt';
19
+ CardPrompt.propTypes = {
20
+ children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string])
21
+ };
22
+ CardPrompt.defaultProps = {
23
+ children: ''
24
+ };
25
+ export default CardPrompt;
26
+ //# sourceMappingURL=CardPrompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardPrompt.js","names":["React","PropTypes","CardPrompt","children","createElement","className","src","alt","displayName","propTypes","oneOfType","array","object","string","defaultProps"],"sources":["../../../src/components/CardPrompt/CardPrompt.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst CardPrompt = ({ children }) => (\n <div className=\"card card--prompt\" data-testid=\"card-prompt\">\n <div className=\"card__image amber\">\n <img src=\"https://images.thisisblaze.com/empty-icon-140-140.png\" alt=\"prompt\" />\n </div>\n <div className=\"card__content card__content--prompt\">\n <h2 className=\"card__title\">Nothing to see here!</h2>\n <p>How about adding some content now?</p>\n {children}\n </div>\n </div>\n);\n\nCardPrompt.displayName = 'CardPrompt';\n\nCardPrompt.propTypes = {\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string])\n};\n\nCardPrompt.defaultProps = {\n children: ''\n};\n\nexport default CardPrompt;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,MAAMC,UAAU,GAAGA,CAAC;EAAEC;AAAS,CAAC,kBAC9BH,KAAA,CAAAI,aAAA;EAAKC,SAAS,EAAC,mBAAmB;EAAC,eAAY;AAAa,gBAC1DL,KAAA,CAAAI,aAAA;EAAKC,SAAS,EAAC;AAAmB,gBAChCL,KAAA,CAAAI,aAAA;EAAKE,GAAG,EAAC,uDAAuD;EAACC,GAAG,EAAC;AAAQ,CAAE,CAC5E,CAAC,eACNP,KAAA,CAAAI,aAAA;EAAKC,SAAS,EAAC;AAAqC,gBAClDL,KAAA,CAAAI,aAAA;EAAIC,SAAS,EAAC;AAAa,GAAC,sBAAwB,CAAC,eACrDL,KAAA,CAAAI,aAAA,YAAG,oCAAqC,CAAC,EACxCD,QACE,CACF,CACN;AAEDD,UAAU,CAACM,WAAW,GAAG,YAAY;AAErCN,UAAU,CAACO,SAAS,GAAG;EACrBN,QAAQ,EAAEF,SAAS,CAACS,SAAS,CAAC,CAACT,SAAS,CAACU,KAAK,EAAEV,SAAS,CAACW,MAAM,EAAEX,SAAS,CAACY,MAAM,CAAC;AACrF,CAAC;AAEDX,UAAU,CAACY,YAAY,GAAG;EACxBX,QAAQ,EAAE;AACZ,CAAC;AAED,eAAeD,UAAU","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import CardPrompt from './CardPrompt';
2
+ export default CardPrompt;
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["CardPrompt"],"sources":["../../../src/components/CardPrompt/index.js"],"sourcesContent":["import CardPrompt from './CardPrompt';\n\nexport default CardPrompt;\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,cAAc;AAErC,eAAeA,UAAU","ignoreList":[]}
@@ -0,0 +1,140 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ const _excluded = ["id", "displayName", "actions"];
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ import React, { useState } from 'react';
7
+ import PropTypes from 'prop-types';
8
+ import Alert from '@blaze-react/alert';
9
+ import Modal from '@blaze-react/modal';
10
+ import { useQuery, useApolloClient } from '@apollo/client';
11
+ import { formFieldTypes } from '@blaze-cms/react-form-builder';
12
+ import { getQuery, getDataProperties } from '@blaze-cms/admin-ui-utils';
13
+ import { getAction } from './helpers';
14
+ const CopyDataFromAction = ({
15
+ onClose,
16
+ copyAction,
17
+ getFormData
18
+ }) => {
19
+ const [entityRecordsOptions, setEntityRecordsOptions] = useState([]);
20
+ const [actionName, setActionName] = useState();
21
+ const [selectedEntity, setSelectedEntity] = useState();
22
+ const [autocompleteDisabledStatus, setAutocompleteDisabledStatus] = useState(true);
23
+ const client = useApolloClient();
24
+ const {
25
+ select: Select,
26
+ autocomplete: Autocomplete
27
+ } = formFieldTypes;
28
+ const entitiesAction = [];
29
+ let entityProperties = {};
30
+ const modalActions = [{
31
+ textButton: 'Cancel',
32
+ callback: onClose,
33
+ modifiers: ['cancel']
34
+ }, {
35
+ textButton: 'Copy',
36
+ callback: copyAction,
37
+ modifiers: [],
38
+ 'data-testid': 'copyDataFromAction-copy-button'
39
+ }];
40
+ const fetchEntityRecords = async action => {
41
+ const {
42
+ data = {}
43
+ } = await client.query({
44
+ query: getAction(action)
45
+ });
46
+ if (Object.keys(data).length) {
47
+ const entityRecords = data[action].map(({
48
+ id,
49
+ name
50
+ }) => ({
51
+ id,
52
+ name
53
+ }));
54
+ setEntityRecordsOptions(entityRecords);
55
+ }
56
+ };
57
+ const onEntityChange = ({
58
+ value
59
+ }) => {
60
+ const {
61
+ action
62
+ } = entitiesAction.find(entity => entity.id === value);
63
+ if (action) {
64
+ setActionName(action);
65
+ setSelectedEntity(value);
66
+ fetchEntityRecords(action);
67
+ setAutocompleteDisabledStatus(false);
68
+ }
69
+ };
70
+ const onEntityRecordChange = async event => {
71
+ const fields = entityProperties[selectedEntity];
72
+ const {
73
+ data = {}
74
+ } = await client.query({
75
+ query: getAction(actionName, event.id, fields)
76
+ });
77
+ if (Object.keys(data).length) {
78
+ getFormData(data[actionName][0]);
79
+ }
80
+ };
81
+ const {
82
+ data: {
83
+ getEntitySchemas
84
+ } = {}
85
+ } = useQuery(getQuery('GET_USER_EDITABLE_ENTITIES'));
86
+ if (getEntitySchemas) {
87
+ const entities = getEntitySchemas.map(_ref => {
88
+ let {
89
+ id,
90
+ displayName,
91
+ actions
92
+ } = _ref,
93
+ otherSchemaProps = _objectWithoutProperties(_ref, _excluded);
94
+ entitiesAction.push({
95
+ id,
96
+ action: actions.getAll
97
+ });
98
+ entityProperties = _objectSpread({
99
+ [id]: getDataProperties(otherSchemaProps).join(', ')
100
+ }, entityProperties);
101
+ return [id, displayName];
102
+ });
103
+ return /*#__PURE__*/React.createElement(Modal, {
104
+ title: "Copy data from",
105
+ actions: modalActions,
106
+ onClose: onClose
107
+ }, /*#__PURE__*/React.createElement(Alert, {
108
+ type: "info"
109
+ }, "By performing this action it will copy and overwrite any unsaved data you have."), /*#__PURE__*/React.createElement(Select, {
110
+ "data-testid": "copyDataFromAction-select",
111
+ label: "Entity",
112
+ value: "",
113
+ id: "entity",
114
+ onChange: onEntityChange,
115
+ options: entities
116
+ }), /*#__PURE__*/React.createElement(Autocomplete, {
117
+ inputProps: {
118
+ 'data-testid': 'copyDataFromAction-autocomplete'
119
+ },
120
+ disabled: autocompleteDisabledStatus,
121
+ data: {
122
+ data: entityRecordsOptions,
123
+ keyValue: 'name',
124
+ filterBy: ['name']
125
+ },
126
+ selected: onEntityRecordChange,
127
+ utils: {
128
+ uniqueId: data => data.id
129
+ }
130
+ }));
131
+ }
132
+ return null;
133
+ };
134
+ CopyDataFromAction.propTypes = {
135
+ onClose: PropTypes.func.isRequired,
136
+ copyAction: PropTypes.func.isRequired,
137
+ getFormData: PropTypes.func.isRequired
138
+ };
139
+ export default CopyDataFromAction;
140
+ //# sourceMappingURL=CopyDataFromAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CopyDataFromAction.js","names":["React","useState","PropTypes","Alert","Modal","useQuery","useApolloClient","formFieldTypes","getQuery","getDataProperties","getAction","CopyDataFromAction","onClose","copyAction","getFormData","entityRecordsOptions","setEntityRecordsOptions","actionName","setActionName","selectedEntity","setSelectedEntity","autocompleteDisabledStatus","setAutocompleteDisabledStatus","client","select","Select","autocomplete","Autocomplete","entitiesAction","entityProperties","modalActions","textButton","callback","modifiers","fetchEntityRecords","action","data","query","Object","keys","length","entityRecords","map","id","name","onEntityChange","value","find","entity","onEntityRecordChange","event","fields","getEntitySchemas","entities","_ref","displayName","actions","otherSchemaProps","_objectWithoutProperties","_excluded","push","getAll","_objectSpread","join","createElement","title","type","label","onChange","options","inputProps","disabled","keyValue","filterBy","selected","utils","uniqueId","propTypes","func","isRequired"],"sources":["../../../src/components/CopyDataFromAction/CopyDataFromAction.js"],"sourcesContent":["import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport Alert from '@blaze-react/alert';\nimport Modal from '@blaze-react/modal';\nimport { useQuery, useApolloClient } from '@apollo/client';\nimport { formFieldTypes } from '@blaze-cms/react-form-builder';\nimport { getQuery, getDataProperties } from '@blaze-cms/admin-ui-utils';\nimport { getAction } from './helpers';\n\nconst CopyDataFromAction = ({ onClose, copyAction, getFormData }) => {\n const [entityRecordsOptions, setEntityRecordsOptions] = useState([]);\n const [actionName, setActionName] = useState();\n const [selectedEntity, setSelectedEntity] = useState();\n const [autocompleteDisabledStatus, setAutocompleteDisabledStatus] = useState(true);\n\n const client = useApolloClient();\n const { select: Select, autocomplete: Autocomplete } = formFieldTypes;\n const entitiesAction = [];\n let entityProperties = {};\n\n const modalActions = [\n {\n textButton: 'Cancel',\n callback: onClose,\n modifiers: ['cancel']\n },\n {\n textButton: 'Copy',\n callback: copyAction,\n modifiers: [],\n 'data-testid': 'copyDataFromAction-copy-button'\n }\n ];\n\n const fetchEntityRecords = async action => {\n const { data = {} } = await client.query({\n query: getAction(action)\n });\n\n if (Object.keys(data).length) {\n const entityRecords = data[action].map(({ id, name }) => ({ id, name }));\n setEntityRecordsOptions(entityRecords);\n }\n };\n\n const onEntityChange = ({ value }) => {\n const { action } = entitiesAction.find(entity => entity.id === value);\n if (action) {\n setActionName(action);\n setSelectedEntity(value);\n fetchEntityRecords(action);\n setAutocompleteDisabledStatus(false);\n }\n };\n\n const onEntityRecordChange = async event => {\n const fields = entityProperties[selectedEntity];\n const { data = {} } = await client.query({\n query: getAction(actionName, event.id, fields)\n });\n\n if (Object.keys(data).length) {\n getFormData(data[actionName][0]);\n }\n };\n const { data: { getEntitySchemas } = {} } = useQuery(getQuery('GET_USER_EDITABLE_ENTITIES'));\n\n if (getEntitySchemas) {\n const entities = getEntitySchemas.map(({ id, displayName, actions, ...otherSchemaProps }) => {\n entitiesAction.push({ id, action: actions.getAll });\n entityProperties = {\n [id]: getDataProperties(otherSchemaProps).join(', '),\n ...entityProperties\n };\n return [id, displayName];\n });\n\n return (\n <Modal title=\"Copy data from\" actions={modalActions} onClose={onClose}>\n <Alert type=\"info\">\n By performing this action it will copy and overwrite any unsaved data you have.\n </Alert>\n <Select\n data-testid=\"copyDataFromAction-select\"\n label=\"Entity\"\n value=\"\"\n id=\"entity\"\n onChange={onEntityChange}\n options={entities}\n />\n <Autocomplete\n inputProps={{ 'data-testid': 'copyDataFromAction-autocomplete' }}\n disabled={autocompleteDisabledStatus}\n data={{ data: entityRecordsOptions, keyValue: 'name', filterBy: ['name'] }}\n selected={onEntityRecordChange}\n utils={{ uniqueId: data => data.id }}\n />\n </Modal>\n );\n }\n\n return null;\n};\n\nCopyDataFromAction.propTypes = {\n onClose: PropTypes.func.isRequired,\n copyAction: PropTypes.func.isRequired,\n getFormData: PropTypes.func.isRequired\n};\n\nexport default CopyDataFromAction;\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,23 @@
1
+ import { gql } from '@apollo/client';
2
+ const generateQuery = (action, id, fragment) => id ? `
3
+ query getEntityData{
4
+ ${action}(where:{ id: "${id}" }){
5
+ name
6
+ ${fragment}
7
+ }
8
+ }
9
+ ` : `query getEntityData{
10
+ ${action}{
11
+ id,
12
+ name
13
+ }
14
+ }
15
+ `;
16
+ const getAction = (action, id, fields = '') => {
17
+ const query = id ? generateQuery(action, id, fields) : generateQuery(action);
18
+ return gql`
19
+ ${query}
20
+ `;
21
+ };
22
+ export { getAction };
23
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","names":["gql","generateQuery","action","id","fragment","getAction","fields","query"],"sources":["../../../src/components/CopyDataFromAction/helpers.js"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst generateQuery = (action, id, fragment) =>\n id\n ? `\n query getEntityData{\n ${action}(where:{ id: \"${id}\" }){\n name\n ${fragment}\n }\n }\n `\n : `query getEntityData{\n ${action}{\n id,\n name\n }\n }\n `;\n\nconst getAction = (action, id, fields = '') => {\n const query = id ? generateQuery(action, id, fields) : generateQuery(action);\n return gql`\n ${query}\n `;\n};\n\nexport { getAction };\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,gBAAgB;AAEpC,MAAMC,aAAa,GAAGA,CAACC,MAAM,EAAEC,EAAE,EAAEC,QAAQ,KACzCD,EAAE,GACE;AACN;AACA,QAAQD,MAAM,iBAAiBC,EAAE;AACjC;AACA,UAAUC,QAAQ;AAClB;AACA;AACA,KAAK,GACC;AACN,UAAUF,MAAM;AAChB;AACA;AACA;AACA;AACA,KAAK;AAEL,MAAMG,SAAS,GAAGA,CAACH,MAAM,EAAEC,EAAE,EAAEG,MAAM,GAAG,EAAE,KAAK;EAC7C,MAAMC,KAAK,GAAGJ,EAAE,GAAGF,aAAa,CAACC,MAAM,EAAEC,EAAE,EAAEG,MAAM,CAAC,GAAGL,aAAa,CAACC,MAAM,CAAC;EAC5E,OAAOF,GAAG;AACZ,MAAMO,KAAK;AACX,GAAG;AACH,CAAC;AAED,SAASF,SAAS","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import CopyDataFromAction from './CopyDataFromAction';
2
+ export default CopyDataFromAction;
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["CopyDataFromAction"],"sources":["../../../src/components/CopyDataFromAction/index.js"],"sourcesContent":["import CopyDataFromAction from './CopyDataFromAction';\n\nexport default CopyDataFromAction;\n"],"mappings":"AAAA,OAAOA,kBAAkB,MAAM,sBAAsB;AAErD,eAAeA,kBAAkB","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import Modal from '@blaze-react/modal';
4
+ const DeleteAction = ({
5
+ onClose,
6
+ deleteAction,
7
+ itemName
8
+ }) => {
9
+ const alertActions = [{
10
+ callback: event => {
11
+ event.stopPropagation();
12
+ deleteAction();
13
+ },
14
+ modifiers: ['small'],
15
+ textButton: 'Delete'
16
+ }];
17
+ return /*#__PURE__*/React.createElement(Modal, {
18
+ actions: alertActions,
19
+ onClose: onClose,
20
+ isAlert: true
21
+ }, /*#__PURE__*/React.createElement("p", null, "You are about to delete: ", /*#__PURE__*/React.createElement("strong", null, itemName)));
22
+ };
23
+ DeleteAction.propTypes = {
24
+ onClose: PropTypes.func.isRequired,
25
+ deleteAction: PropTypes.func.isRequired,
26
+ itemName: PropTypes.string
27
+ };
28
+ DeleteAction.defaultProps = {
29
+ itemName: ''
30
+ };
31
+ export default DeleteAction;
32
+ //# sourceMappingURL=DeleteAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteAction.js","names":["React","PropTypes","Modal","DeleteAction","onClose","deleteAction","itemName","alertActions","callback","event","stopPropagation","modifiers","textButton","createElement","actions","isAlert","propTypes","func","isRequired","string","defaultProps"],"sources":["../../../src/components/DeleteAction/DeleteAction.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from '@blaze-react/modal';\n\nconst DeleteAction = ({ onClose, deleteAction, itemName }) => {\n const alertActions = [\n {\n callback: event => {\n event.stopPropagation();\n deleteAction();\n },\n modifiers: ['small'],\n textButton: 'Delete'\n }\n ];\n\n return (\n <Modal actions={alertActions} onClose={onClose} isAlert>\n <p>\n You are about to delete: <strong>{itemName}</strong>\n </p>\n </Modal>\n );\n};\n\nDeleteAction.propTypes = {\n onClose: PropTypes.func.isRequired,\n deleteAction: PropTypes.func.isRequired,\n itemName: PropTypes.string\n};\n\nDeleteAction.defaultProps = {\n itemName: ''\n};\n\nexport default DeleteAction;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,KAAK,MAAM,oBAAoB;AAEtC,MAAMC,YAAY,GAAGA,CAAC;EAAEC,OAAO;EAAEC,YAAY;EAAEC;AAAS,CAAC,KAAK;EAC5D,MAAMC,YAAY,GAAG,CACnB;IACEC,QAAQ,EAAEC,KAAK,IAAI;MACjBA,KAAK,CAACC,eAAe,CAAC,CAAC;MACvBL,YAAY,CAAC,CAAC;IAChB,CAAC;IACDM,SAAS,EAAE,CAAC,OAAO,CAAC;IACpBC,UAAU,EAAE;EACd,CAAC,CACF;EAED,oBACEZ,KAAA,CAAAa,aAAA,CAACX,KAAK;IAACY,OAAO,EAAEP,YAAa;IAACH,OAAO,EAAEA,OAAQ;IAACW,OAAO;EAAA,gBACrDf,KAAA,CAAAa,aAAA,YAAG,2BACwB,eAAAb,KAAA,CAAAa,aAAA,iBAASP,QAAiB,CAClD,CACE,CAAC;AAEZ,CAAC;AAEDH,YAAY,CAACa,SAAS,GAAG;EACvBZ,OAAO,EAAEH,SAAS,CAACgB,IAAI,CAACC,UAAU;EAClCb,YAAY,EAAEJ,SAAS,CAACgB,IAAI,CAACC,UAAU;EACvCZ,QAAQ,EAAEL,SAAS,CAACkB;AACtB,CAAC;AAEDhB,YAAY,CAACiB,YAAY,GAAG;EAC1Bd,QAAQ,EAAE;AACZ,CAAC;AAED,eAAeH,YAAY","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import DeleteAction from './DeleteAction';
2
+ export default DeleteAction;
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["DeleteAction"],"sources":["../../../src/components/DeleteAction/index.js"],"sourcesContent":["import DeleteAction from './DeleteAction';\n\nexport default DeleteAction;\n"],"mappings":"AAAA,OAAOA,YAAY,MAAM,gBAAgB;AAEzC,eAAeA,YAAY","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { createRoot } from 'react-dom/client';
3
+ import Modal from '@blaze-react/modal';
4
+ const LeaveAction = (message, callback) => {
5
+ let container = document.getElementById('leave-container');
6
+ if (!container) {
7
+ container = document.createElement('div');
8
+ container.setAttribute('confirmation-modal', '');
9
+ container.id = 'leave-container';
10
+ document.body.appendChild(container);
11
+ }
12
+ const root = createRoot(container);
13
+ const closeModal = callbackState => {
14
+ root.unmount();
15
+ callback(callbackState);
16
+ };
17
+ const alertActions = [{
18
+ callback: event => {
19
+ event.stopPropagation();
20
+ closeModal(true);
21
+ },
22
+ modifiers: ['small'],
23
+ textButton: 'Leave'
24
+ }];
25
+ root.render(/*#__PURE__*/React.createElement(Modal, {
26
+ actions: alertActions,
27
+ onClose: () => closeModal(false),
28
+ isAlert: true
29
+ }, /*#__PURE__*/React.createElement("p", null, message)), container);
30
+ };
31
+ export default LeaveAction;
32
+ //# sourceMappingURL=LeaveAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LeaveAction.js","names":["React","createRoot","Modal","LeaveAction","message","callback","container","document","getElementById","createElement","setAttribute","id","body","appendChild","root","closeModal","callbackState","unmount","alertActions","event","stopPropagation","modifiers","textButton","render","actions","onClose","isAlert"],"sources":["../../../src/components/LeaveAction/LeaveAction.js"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport Modal from '@blaze-react/modal';\n\nconst LeaveAction = (message, callback) => {\n let container = document.getElementById('leave-container');\n\n if (!container) {\n container = document.createElement('div');\n container.setAttribute('confirmation-modal', '');\n container.id = 'leave-container';\n document.body.appendChild(container);\n }\n\n const root = createRoot(container);\n\n const closeModal = callbackState => {\n root.unmount();\n callback(callbackState);\n };\n\n const alertActions = [\n {\n callback: event => {\n event.stopPropagation();\n closeModal(true);\n },\n modifiers: ['small'],\n textButton: 'Leave'\n }\n ];\n\n root.render(\n <Modal actions={alertActions} onClose={() => closeModal(false)} isAlert>\n <p>{message}</p>\n </Modal>,\n container\n );\n};\n\nexport default LeaveAction;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,OAAOC,KAAK,MAAM,oBAAoB;AAEtC,MAAMC,WAAW,GAAGA,CAACC,OAAO,EAAEC,QAAQ,KAAK;EACzC,IAAIC,SAAS,GAAGC,QAAQ,CAACC,cAAc,CAAC,iBAAiB,CAAC;EAE1D,IAAI,CAACF,SAAS,EAAE;IACdA,SAAS,GAAGC,QAAQ,CAACE,aAAa,CAAC,KAAK,CAAC;IACzCH,SAAS,CAACI,YAAY,CAAC,oBAAoB,EAAE,EAAE,CAAC;IAChDJ,SAAS,CAACK,EAAE,GAAG,iBAAiB;IAChCJ,QAAQ,CAACK,IAAI,CAACC,WAAW,CAACP,SAAS,CAAC;EACtC;EAEA,MAAMQ,IAAI,GAAGb,UAAU,CAACK,SAAS,CAAC;EAElC,MAAMS,UAAU,GAAGC,aAAa,IAAI;IAClCF,IAAI,CAACG,OAAO,CAAC,CAAC;IACdZ,QAAQ,CAACW,aAAa,CAAC;EACzB,CAAC;EAED,MAAME,YAAY,GAAG,CACnB;IACEb,QAAQ,EAAEc,KAAK,IAAI;MACjBA,KAAK,CAACC,eAAe,CAAC,CAAC;MACvBL,UAAU,CAAC,IAAI,CAAC;IAClB,CAAC;IACDM,SAAS,EAAE,CAAC,OAAO,CAAC;IACpBC,UAAU,EAAE;EACd,CAAC,CACF;EAEDR,IAAI,CAACS,MAAM,cACTvB,KAAA,CAAAS,aAAA,CAACP,KAAK;IAACsB,OAAO,EAAEN,YAAa;IAACO,OAAO,EAAEA,CAAA,KAAMV,UAAU,CAAC,KAAK,CAAE;IAACW,OAAO;EAAA,gBACrE1B,KAAA,CAAAS,aAAA,YAAIL,OAAW,CACV,CAAC,EACRE,SACF,CAAC;AACH,CAAC;AAED,eAAeH,WAAW","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import LeaveAction from './LeaveAction';
2
+ export default LeaveAction;
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["LeaveAction"],"sources":["../../../src/components/LeaveAction/index.js"],"sourcesContent":["import LeaveAction from './LeaveAction';\n\nexport default LeaveAction;\n"],"mappings":"AAAA,OAAOA,WAAW,MAAM,eAAe;AAEvC,eAAeA,WAAW","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { LOADING_CLASSNAME, LOADING_TYPES, DOTS_TYPE } from './constants';
4
+ const Loading = ({
5
+ type
6
+ }) => {
7
+ const loaderType = LOADING_TYPES[type] || LOADING_TYPES.default;
8
+ const CLASSNAME = `${LOADING_CLASSNAME}__${loaderType}`;
9
+ return /*#__PURE__*/React.createElement("div", {
10
+ className: CLASSNAME
11
+ }, loaderType === DOTS_TYPE && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
12
+ className: `${CLASSNAME}__dot`
13
+ }), /*#__PURE__*/React.createElement("div", {
14
+ className: `${CLASSNAME}__dot`
15
+ }), /*#__PURE__*/React.createElement("div", {
16
+ className: `${CLASSNAME}__dot`
17
+ })));
18
+ };
19
+ Loading.propTypes = {
20
+ type: PropTypes.string
21
+ };
22
+ Loading.defaultProps = {
23
+ type: LOADING_TYPES.default
24
+ };
25
+ export default Loading;
26
+ //# sourceMappingURL=Loading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loading.js","names":["React","PropTypes","LOADING_CLASSNAME","LOADING_TYPES","DOTS_TYPE","Loading","type","loaderType","default","CLASSNAME","createElement","className","Fragment","propTypes","string","defaultProps"],"sources":["../../../src/components/Loading/Loading.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { LOADING_CLASSNAME, LOADING_TYPES, DOTS_TYPE } from './constants';\n\nconst Loading = ({ type }) => {\n const loaderType = LOADING_TYPES[type] || LOADING_TYPES.default;\n const CLASSNAME = `${LOADING_CLASSNAME}__${loaderType}`;\n\n return (\n <div className={CLASSNAME}>\n {loaderType === DOTS_TYPE && (\n <>\n <div className={`${CLASSNAME}__dot`} />\n <div className={`${CLASSNAME}__dot`} />\n <div className={`${CLASSNAME}__dot`} />\n </>\n )}\n </div>\n );\n};\n\nLoading.propTypes = {\n type: PropTypes.string\n};\n\nLoading.defaultProps = {\n type: LOADING_TYPES.default\n};\n\nexport default Loading;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,iBAAiB,EAAEC,aAAa,EAAEC,SAAS,QAAQ,aAAa;AAEzE,MAAMC,OAAO,GAAGA,CAAC;EAAEC;AAAK,CAAC,KAAK;EAC5B,MAAMC,UAAU,GAAGJ,aAAa,CAACG,IAAI,CAAC,IAAIH,aAAa,CAACK,OAAO;EAC/D,MAAMC,SAAS,GAAG,GAAGP,iBAAiB,KAAKK,UAAU,EAAE;EAEvD,oBACEP,KAAA,CAAAU,aAAA;IAAKC,SAAS,EAAEF;EAAU,GACvBF,UAAU,KAAKH,SAAS,iBACvBJ,KAAA,CAAAU,aAAA,CAAAV,KAAA,CAAAY,QAAA,qBACEZ,KAAA,CAAAU,aAAA;IAAKC,SAAS,EAAE,GAAGF,SAAS;EAAQ,CAAE,CAAC,eACvCT,KAAA,CAAAU,aAAA;IAAKC,SAAS,EAAE,GAAGF,SAAS;EAAQ,CAAE,CAAC,eACvCT,KAAA,CAAAU,aAAA;IAAKC,SAAS,EAAE,GAAGF,SAAS;EAAQ,CAAE,CACtC,CAED,CAAC;AAEV,CAAC;AAEDJ,OAAO,CAACQ,SAAS,GAAG;EAClBP,IAAI,EAAEL,SAAS,CAACa;AAClB,CAAC;AAEDT,OAAO,CAACU,YAAY,GAAG;EACrBT,IAAI,EAAEH,aAAa,CAACK;AACtB,CAAC;AAED,eAAeH,OAAO","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ const LOADING_CLASSNAME = 'blaze-loading';
2
+ const SPINNER_TYPE = 'spinner';
3
+ const DOTS_TYPE = 'dots';
4
+ const LOADING_TYPES = {
5
+ default: SPINNER_TYPE,
6
+ dots: DOTS_TYPE,
7
+ spinner: SPINNER_TYPE
8
+ };
9
+ export { LOADING_CLASSNAME, DOTS_TYPE, LOADING_TYPES };
10
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","names":["LOADING_CLASSNAME","SPINNER_TYPE","DOTS_TYPE","LOADING_TYPES","default","dots","spinner"],"sources":["../../../src/components/Loading/constants.js"],"sourcesContent":["const LOADING_CLASSNAME = 'blaze-loading';\nconst SPINNER_TYPE = 'spinner';\nconst DOTS_TYPE = 'dots';\nconst LOADING_TYPES = {\n default: SPINNER_TYPE,\n dots: DOTS_TYPE,\n spinner: SPINNER_TYPE\n};\n\nexport { LOADING_CLASSNAME, DOTS_TYPE, LOADING_TYPES };\n"],"mappings":"AAAA,MAAMA,iBAAiB,GAAG,eAAe;AACzC,MAAMC,YAAY,GAAG,SAAS;AAC9B,MAAMC,SAAS,GAAG,MAAM;AACxB,MAAMC,aAAa,GAAG;EACpBC,OAAO,EAAEH,YAAY;EACrBI,IAAI,EAAEH,SAAS;EACfI,OAAO,EAAEL;AACX,CAAC;AAED,SAASD,iBAAiB,EAAEE,SAAS,EAAEC,aAAa","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import Loading from './Loading';
2
+ export default Loading;
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["Loading"],"sources":["../../../src/components/Loading/index.js"],"sourcesContent":["import Loading from './Loading';\n\nexport default Loading;\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,WAAW;AAE/B,eAAeA,OAAO","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { withRouter } from 'react-router-dom';
3
+ import { Helmet } from 'react-helmet';
4
+ import PropTypes from 'prop-types';
5
+ import capitalize from 'lodash.capitalize';
6
+ const MetaTitle = props => {
7
+ const {
8
+ pageName,
9
+ title,
10
+ match: {
11
+ params: {
12
+ entityIdentifier
13
+ } = {}
14
+ }
15
+ } = props;
16
+ const titleToDisplay = pageName || capitalize(entityIdentifier) || title;
17
+ const metaTitle = `${titleToDisplay} - Blaze`;
18
+ return /*#__PURE__*/React.createElement(Helmet, null, /*#__PURE__*/React.createElement("title", null, metaTitle));
19
+ };
20
+ MetaTitle.propTypes = {
21
+ title: PropTypes.string,
22
+ pageName: PropTypes.string,
23
+ match: PropTypes.object
24
+ };
25
+ MetaTitle.defaultProps = {
26
+ title: '',
27
+ pageName: '',
28
+ match: {}
29
+ };
30
+ export default withRouter(MetaTitle);
31
+ //# sourceMappingURL=MetaTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetaTitle.js","names":["React","withRouter","Helmet","PropTypes","capitalize","MetaTitle","props","pageName","title","match","params","entityIdentifier","titleToDisplay","metaTitle","createElement","propTypes","string","object","defaultProps"],"sources":["../../../src/components/MetaTitle/MetaTitle.js"],"sourcesContent":["import React from 'react';\nimport { withRouter } from 'react-router-dom';\nimport { Helmet } from 'react-helmet';\nimport PropTypes from 'prop-types';\nimport capitalize from 'lodash.capitalize';\n\nconst MetaTitle = props => {\n const {\n pageName,\n title,\n match: { params: { entityIdentifier } = {} }\n } = props;\n\n const titleToDisplay = pageName || capitalize(entityIdentifier) || title;\n\n const metaTitle = `${titleToDisplay} - Blaze`;\n\n return (\n <Helmet>\n <title>{metaTitle}</title>\n </Helmet>\n );\n};\n\nMetaTitle.propTypes = {\n title: PropTypes.string,\n pageName: PropTypes.string,\n match: PropTypes.object\n};\n\nMetaTitle.defaultProps = {\n title: '',\n pageName: '',\n match: {}\n};\n\nexport default withRouter(MetaTitle);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,MAAM,QAAQ,cAAc;AACrC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,mBAAmB;AAE1C,MAAMC,SAAS,GAAGC,KAAK,IAAI;EACzB,MAAM;IACJC,QAAQ;IACRC,KAAK;IACLC,KAAK,EAAE;MAAEC,MAAM,EAAE;QAAEC;MAAiB,CAAC,GAAG,CAAC;IAAE;EAC7C,CAAC,GAAGL,KAAK;EAET,MAAMM,cAAc,GAAGL,QAAQ,IAAIH,UAAU,CAACO,gBAAgB,CAAC,IAAIH,KAAK;EAExE,MAAMK,SAAS,GAAG,GAAGD,cAAc,UAAU;EAE7C,oBACEZ,KAAA,CAAAc,aAAA,CAACZ,MAAM,qBACLF,KAAA,CAAAc,aAAA,gBAAQD,SAAiB,CACnB,CAAC;AAEb,CAAC;AAEDR,SAAS,CAACU,SAAS,GAAG;EACpBP,KAAK,EAAEL,SAAS,CAACa,MAAM;EACvBT,QAAQ,EAAEJ,SAAS,CAACa,MAAM;EAC1BP,KAAK,EAAEN,SAAS,CAACc;AACnB,CAAC;AAEDZ,SAAS,CAACa,YAAY,GAAG;EACvBV,KAAK,EAAE,EAAE;EACTD,QAAQ,EAAE,EAAE;EACZE,KAAK,EAAE,CAAC;AACV,CAAC;AAED,eAAeR,UAAU,CAACI,SAAS,CAAC","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import MetaTitle from './MetaTitle';
2
+ export default MetaTitle;
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["MetaTitle"],"sources":["../../../src/components/MetaTitle/index.js"],"sourcesContent":["import MetaTitle from './MetaTitle';\n\nexport default MetaTitle;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,aAAa;AAEnC,eAAeA,SAAS","ignoreList":[]}
@@ -0,0 +1,51 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import MetaTitle from '../MetaTitle/MetaTitle';
4
+ const PageHeader = ({
5
+ title,
6
+ subtitle,
7
+ children,
8
+ pageName,
9
+ onViewUrl
10
+ }) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MetaTitle, {
11
+ title: title,
12
+ pageName: pageName
13
+ }), /*#__PURE__*/React.createElement("div", {
14
+ className: "page-header--wrapper"
15
+ }, /*#__PURE__*/React.createElement("div", {
16
+ className: "page-header page-header--sticky"
17
+ }, onViewUrl ? /*#__PURE__*/React.createElement("div", {
18
+ className: "page-header__heading page-header__heading--active",
19
+ onClick: onViewUrl,
20
+ role: "button"
21
+ }, title) : /*#__PURE__*/React.createElement("div", {
22
+ className: "page-header__heading"
23
+ }, title), /*#__PURE__*/React.createElement("div", {
24
+ className: "page-header__button"
25
+ }, children)), /*#__PURE__*/React.createElement("div", {
26
+ className: "page-header page-header--base"
27
+ }, /*#__PURE__*/React.createElement("div", {
28
+ className: "page-header__subheading"
29
+ }, subtitle))));
30
+ PageHeader.propTypes = {
31
+ title: PropTypes.string.isRequired,
32
+ subtitle: PropTypes.string,
33
+ children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string]),
34
+ pageName: PropTypes.string,
35
+ onViewUrl: PropTypes.func
36
+ };
37
+ PageHeader.defaultProps = {
38
+ subtitle: '',
39
+ children: '',
40
+ pageName: '',
41
+ onViewUrl: null
42
+ };
43
+ const PageHeaderActions = ({
44
+ children
45
+ }) => /*#__PURE__*/React.createElement(React.Fragment, null, React.Children.map(children, child => child && React.cloneElement(child)));
46
+ PageHeaderActions.propTypes = {
47
+ children: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired
48
+ };
49
+ PageHeader.Actions = PageHeaderActions;
50
+ export default PageHeader;
51
+ //# sourceMappingURL=PageHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageHeader.js","names":["React","PropTypes","MetaTitle","PageHeader","title","subtitle","children","pageName","onViewUrl","createElement","Fragment","className","onClick","role","propTypes","string","isRequired","oneOfType","array","object","func","defaultProps","PageHeaderActions","Children","map","child","cloneElement","Actions"],"sources":["../../../src/components/PageHeader/PageHeader.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport MetaTitle from '../MetaTitle/MetaTitle';\n\nconst PageHeader = ({ title, subtitle, children, pageName, onViewUrl }) => (\n <>\n <MetaTitle title={title} pageName={pageName} />\n <div className=\"page-header--wrapper\">\n <div className=\"page-header page-header--sticky\">\n {onViewUrl ? (\n <div\n className=\"page-header__heading page-header__heading--active\"\n onClick={onViewUrl}\n role=\"button\">\n {title}\n </div>\n ) : (\n <div className=\"page-header__heading\">{title}</div>\n )}\n <div className=\"page-header__button\">{children}</div>\n </div>\n <div className=\"page-header page-header--base\">\n <div className=\"page-header__subheading\">{subtitle}</div>\n </div>\n </div>\n </>\n);\n\nPageHeader.propTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string]),\n pageName: PropTypes.string,\n onViewUrl: PropTypes.func\n};\n\nPageHeader.defaultProps = {\n subtitle: '',\n children: '',\n pageName: '',\n onViewUrl: null\n};\n\nconst PageHeaderActions = ({ children }) => (\n <>{React.Children.map(children, child => child && React.cloneElement(child))}</>\n);\n\nPageHeaderActions.propTypes = {\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired\n};\n\nPageHeader.Actions = PageHeaderActions;\n\nexport default PageHeader;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,SAAS,MAAM,wBAAwB;AAE9C,MAAMC,UAAU,GAAGA,CAAC;EAAEC,KAAK;EAAEC,QAAQ;EAAEC,QAAQ;EAAEC,QAAQ;EAAEC;AAAU,CAAC,kBACpER,KAAA,CAAAS,aAAA,CAAAT,KAAA,CAAAU,QAAA,qBACEV,KAAA,CAAAS,aAAA,CAACP,SAAS;EAACE,KAAK,EAAEA,KAAM;EAACG,QAAQ,EAAEA;AAAS,CAAE,CAAC,eAC/CP,KAAA,CAAAS,aAAA;EAAKE,SAAS,EAAC;AAAsB,gBACnCX,KAAA,CAAAS,aAAA;EAAKE,SAAS,EAAC;AAAiC,GAC7CH,SAAS,gBACRR,KAAA,CAAAS,aAAA;EACEE,SAAS,EAAC,mDAAmD;EAC7DC,OAAO,EAAEJ,SAAU;EACnBK,IAAI,EAAC;AAAQ,GACZT,KACE,CAAC,gBAENJ,KAAA,CAAAS,aAAA;EAAKE,SAAS,EAAC;AAAsB,GAAEP,KAAW,CACnD,eACDJ,KAAA,CAAAS,aAAA;EAAKE,SAAS,EAAC;AAAqB,GAAEL,QAAc,CACjD,CAAC,eACNN,KAAA,CAAAS,aAAA;EAAKE,SAAS,EAAC;AAA+B,gBAC5CX,KAAA,CAAAS,aAAA;EAAKE,SAAS,EAAC;AAAyB,GAAEN,QAAc,CACrD,CACF,CACL,CACH;AAEDF,UAAU,CAACW,SAAS,GAAG;EACrBV,KAAK,EAAEH,SAAS,CAACc,MAAM,CAACC,UAAU;EAClCX,QAAQ,EAAEJ,SAAS,CAACc,MAAM;EAC1BT,QAAQ,EAAEL,SAAS,CAACgB,SAAS,CAAC,CAAChB,SAAS,CAACiB,KAAK,EAAEjB,SAAS,CAACkB,MAAM,EAAElB,SAAS,CAACc,MAAM,CAAC,CAAC;EACpFR,QAAQ,EAAEN,SAAS,CAACc,MAAM;EAC1BP,SAAS,EAAEP,SAAS,CAACmB;AACvB,CAAC;AAEDjB,UAAU,CAACkB,YAAY,GAAG;EACxBhB,QAAQ,EAAE,EAAE;EACZC,QAAQ,EAAE,EAAE;EACZC,QAAQ,EAAE,EAAE;EACZC,SAAS,EAAE;AACb,CAAC;AAED,MAAMc,iBAAiB,GAAGA,CAAC;EAAEhB;AAAS,CAAC,kBACrCN,KAAA,CAAAS,aAAA,CAAAT,KAAA,CAAAU,QAAA,QAAGV,KAAK,CAACuB,QAAQ,CAACC,GAAG,CAAClB,QAAQ,EAAEmB,KAAK,IAAIA,KAAK,IAAIzB,KAAK,CAAC0B,YAAY,CAACD,KAAK,CAAC,CAAI,CAChF;AAEDH,iBAAiB,CAACR,SAAS,GAAG;EAC5BR,QAAQ,EAAEL,SAAS,CAACgB,SAAS,CAAC,CAAChB,SAAS,CAACiB,KAAK,EAAEjB,SAAS,CAACkB,MAAM,CAAC,CAAC,CAACH;AACrE,CAAC;AAEDb,UAAU,CAACwB,OAAO,GAAGL,iBAAiB;AAEtC,eAAenB,UAAU","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import PageHeader from './PageHeader';
2
+ export default PageHeader;
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["PageHeader"],"sources":["../../../src/components/PageHeader/index.js"],"sourcesContent":["import PageHeader from './PageHeader';\n\nexport default PageHeader;\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,cAAc;AAErC,eAAeA,UAAU","ignoreList":[]}