awing-library 2.1.105-beta → 2.1.106-beta

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.
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PathType } from '../enums';
3
- type ICreateOrEditComp = React.FC<{
3
+ declare const _default: React.FC<{
4
4
  type: PathType;
5
5
  }>;
6
- declare const PageCreateOrEdit: ICreateOrEditComp;
7
- export default PageCreateOrEdit;
6
+ export default _default;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -54,6 +43,7 @@ var Recoil_1 = require("./Recoil");
54
43
  var Utils_1 = require("./Utils");
55
44
  var Helpers_1 = require("../../../Utils/Helpers");
56
45
  var lodash_1 = require("lodash");
46
+ var Wrapper_1 = __importDefault(require("../../../AWING/HOC/Wrapper"));
57
47
  var CreateOrEdit = function (_a) {
58
48
  var type = _a.type;
59
49
  var t = (0, react_i18next_1.useTranslation)().t;
@@ -106,7 +96,4 @@ var CreateOrEdit = function (_a) {
106
96
  };
107
97
  return ((0, jsx_runtime_1.jsx)(ClassicDrawer_1.default, { customAction: type === enums_1.PathType.EDIT ? ((0, jsx_runtime_1.jsx)(DrawerAction_1.default, { type: type })) : undefined, title: t("Page.".concat(pageCode === enums_1.PageCode.Lgn ? 'TitleLogin' : 'TitleWelcome').concat(type)), disableButtonSubmit: Object.values(formValid).includes(false), confirmExit: Object.values(pageChangedForm).includes(true), onSubmit: handleSubmit, childrenWrapperStyle: { padding: 0 }, children: type === enums_1.PathType.EDIT ? ((0, jsx_runtime_1.jsx)(PageTabView_1.default, { loading: loading })) : ((0, jsx_runtime_1.jsx)(PageStepView_1.default, {})) }));
108
98
  };
109
- var PageCreateOrEdit = function (props) {
110
- return ((0, jsx_runtime_1.jsx)(recoil_1.RecoilRoot, { children: (0, jsx_runtime_1.jsx)(CreateOrEdit, __assign({}, props)) }));
111
- };
112
- exports.default = PageCreateOrEdit;
99
+ exports.default = (0, Wrapper_1.default)(CreateOrEdit, { component: recoil_1.RecoilRoot });
@@ -133,7 +133,7 @@ var CreateOrEdit = function () {
133
133
  },
134
134
  {
135
135
  label: t('Common.File'),
136
- compoent: ((0, jsx_runtime_1.jsx)(TabFile_1.default, { rootDirectory: ((_a = (0, lodash_1.minBy)(directories, 'level')) === null || _a === void 0 ? void 0 : _a.directoryId) || '', isCreate: Boolean(templateId), pathName: '{acmTemplatePath}', service: service, pageId: templateData.template.id, pageCode: enums_1.FileTypeCode.Template })),
136
+ compoent: ((0, jsx_runtime_1.jsx)(TabFile_1.default, { rootDirectory: ((_a = (0, lodash_1.minBy)(directories, 'level')) === null || _a === void 0 ? void 0 : _a.directoryId) || '', isCreate: !templateId, pathName: '{acmTemplatePath}', service: service, pageId: templateData.template.id, pageCode: enums_1.FileTypeCode.Template })),
137
137
  },
138
138
  ];
139
139
  },
@@ -57,7 +57,7 @@ var Preview = function (props) {
57
57
  (0, react_1.useEffect)(function () {
58
58
  var handleFormdata = function (_a) {
59
59
  var formData = _a.formData;
60
- formData.append('pagePath', pagePath);
60
+ formData.append('pagePath', pagePath.split('/').filter(Boolean).join('/'));
61
61
  templateDatas.forEach(function (templateData, index) {
62
62
  Object.keys(templateData).forEach(function (key) {
63
63
  formData.append("templateDatas[".concat(index, "][").concat(key, "]"), templateData[key]);
@@ -69,7 +69,7 @@ var BarLineComponent = function (props) {
69
69
  titleColor: '#212121',
70
70
  bodyFont: {
71
71
  size: 14,
72
- family: 'Roboto',
72
+ family: "'AW-Roboto', Helvetica, Arial, sans-serif",
73
73
  lineHeight: 1.5,
74
74
  },
75
75
  },
@@ -84,7 +84,7 @@ var BarLineComponent = function (props) {
84
84
  boxPadding: 50,
85
85
  font: {
86
86
  size: 15,
87
- family: 'Roboto',
87
+ family: "'AW-Roboto', Helvetica, Arial, sans-serif",
88
88
  lineHeight: 1.5,
89
89
  },
90
90
  },
@@ -119,7 +119,7 @@ var BarLineComponent = function (props) {
119
119
  title: {
120
120
  font: {
121
121
  size: 14,
122
- family: 'Roboto',
122
+ family: "'AW-Roboto', Helvetica, Arial, sans-serif",
123
123
  },
124
124
  },
125
125
  },
@@ -142,7 +142,7 @@ var BarLineComponent = function (props) {
142
142
  font: {
143
143
  size: 14,
144
144
  weight: 'bold',
145
- family: 'Roboto',
145
+ family: "'AW-Roboto', Helvetica, Arial, sans-serif",
146
146
  },
147
147
  },
148
148
  },
@@ -161,7 +161,7 @@ var BarLineComponent = function (props) {
161
161
  font: {
162
162
  size: 14,
163
163
  weight: 'bold',
164
- family: 'Roboto',
164
+ family: "'AW-Roboto', Helvetica, Arial, sans-serif",
165
165
  },
166
166
  },
167
167
  },
@@ -38,7 +38,7 @@ var PieComponent = function (_a) {
38
38
  pointStyle: 'circle',
39
39
  font: {
40
40
  size: 14,
41
- family: 'Roboto',
41
+ family: "'AW-Roboto', Helvetica, Arial, sans-serif",
42
42
  lineHeight: 1.5,
43
43
  },
44
44
  },
@@ -54,7 +54,7 @@ var PieComponent = function (_a) {
54
54
  bodySpacing: 8,
55
55
  bodyFont: {
56
56
  size: 14,
57
- family: 'Roboto',
57
+ family: "'AW-Roboto', Helvetica, Arial, sans-serif",
58
58
  lineHeight: 1.5,
59
59
  },
60
60
  callbacks: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.105-beta",
3
+ "version": "2.1.106-beta",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",