infinity-forge 2.0.7 → 2.0.9

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 (88) hide show
  1. package/dist/fonts.css +1 -1
  2. package/dist/infinity-forge.css +1 -1
  3. package/dist/sites/public/fonts/fonts.css +5 -1
  4. package/dist/system/domain/use-cases/files/file-system.d.ts +1 -1
  5. package/dist/test/index.js +5 -1
  6. package/dist/test/index.js.map +1 -1
  7. package/dist/ui/components/form/handler/form-handler/index.js +38 -23
  8. package/dist/ui/components/form/handler/form-handler/index.js.map +1 -1
  9. package/dist/ui/components/form/input-control/index.d.ts +1 -1
  10. package/dist/ui/components/form/input-control/index.js +4 -1
  11. package/dist/ui/components/form/input-control/index.js.map +1 -1
  12. package/dist/ui/components/form/input-control/label/index.js +1 -1
  13. package/dist/ui/components/form/input-control/label/index.js.map +1 -1
  14. package/dist/ui/components/form/input-file/component.d.ts +1 -1
  15. package/dist/ui/components/form/input-file/component.js +3 -6
  16. package/dist/ui/components/form/input-file/component.js.map +1 -1
  17. package/dist/ui/components/form/input-file/hooks/index.d.ts +4 -0
  18. package/dist/ui/components/form/input-file/hooks/index.js +21 -0
  19. package/dist/ui/components/form/input-file/hooks/index.js.map +1 -0
  20. package/dist/ui/components/form/input-file/hooks/use-components-file.d.ts +10 -0
  21. package/dist/ui/components/form/input-file/hooks/use-components-file.js +63 -0
  22. package/dist/ui/components/form/input-file/hooks/use-components-file.js.map +1 -0
  23. package/dist/ui/components/form/input-file/{use-file-elements.d.ts → hooks/use-file-elements.d.ts} +4 -5
  24. package/dist/ui/components/form/input-file/{use-file-elements.js → hooks/use-file-elements.js} +8 -7
  25. package/dist/ui/components/form/input-file/hooks/use-file-elements.js.map +1 -0
  26. package/dist/ui/components/form/input-file/{use-file.d.ts → hooks/use-file.d.ts} +5 -7
  27. package/dist/ui/components/form/input-file/{use-file.js → hooks/use-file.js} +6 -14
  28. package/dist/ui/components/form/input-file/hooks/use-file.js.map +1 -0
  29. package/dist/ui/components/form/input-file/hooks/use-rendered-file.d.ts +9 -0
  30. package/dist/ui/components/form/input-file/hooks/use-rendered-file.js +71 -0
  31. package/dist/ui/components/form/input-file/hooks/use-rendered-file.js.map +1 -0
  32. package/dist/ui/components/form/input-file/index.d.ts +2 -5
  33. package/dist/ui/components/form/input-file/index.js +2 -5
  34. package/dist/ui/components/form/input-file/index.js.map +1 -1
  35. package/dist/ui/components/form/input-file/render-files/component.d.ts +2 -0
  36. package/dist/ui/components/form/input-file/render-files/component.js +55 -0
  37. package/dist/ui/components/form/input-file/render-files/component.js.map +1 -0
  38. package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.d.ts +13 -0
  39. package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js +18 -0
  40. package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js.map +1 -0
  41. package/dist/ui/components/form/input-file/render-files/file-item/index.d.ts +3 -0
  42. package/dist/ui/components/form/input-file/render-files/file-item/index.js +49 -0
  43. package/dist/ui/components/form/input-file/render-files/file-item/index.js.map +1 -0
  44. package/dist/ui/components/form/input-file/render-files/file-item/styles.d.ts +4 -0
  45. package/dist/ui/components/form/input-file/render-files/file-item/styles.js +14 -0
  46. package/dist/ui/components/form/input-file/render-files/file-item/styles.js.map +1 -0
  47. package/dist/ui/components/form/input-file/render-files/index.d.ts +3 -0
  48. package/dist/ui/components/form/input-file/render-files/index.js +20 -0
  49. package/dist/ui/components/form/input-file/render-files/index.js.map +1 -0
  50. package/dist/ui/components/form/input-file/render-files/interfaces.d.ts +7 -0
  51. package/dist/ui/components/form/input-file/render-files/interfaces.js +3 -0
  52. package/dist/ui/components/form/input-file/render-files/interfaces.js.map +1 -0
  53. package/dist/ui/components/form/input-file/render-files/styles.js +14 -0
  54. package/dist/ui/components/form/input-file/render-files/styles.js.map +1 -0
  55. package/dist/ui/components/form/input-file/styles.js +1 -1
  56. package/dist/ui/components/form/input-file/styles.js.map +1 -1
  57. package/dist/ui/components/form/input-seo/input-meta-image/index.js +5 -5
  58. package/dist/ui/components/form/input-seo/input-meta-image/index.js.map +1 -1
  59. package/dist/ui/components/form/interfaces.d.ts +4 -0
  60. package/dist/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.d.ts +3 -1
  61. package/dist/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.js +17 -4
  62. package/dist/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.js.map +1 -1
  63. package/dist/ui/contexts/dynamic-sections/use-dynamic-section/index.d.ts +9 -2
  64. package/dist/ui/contexts/dynamic-sections/use-dynamic-section/index.js +8 -3
  65. package/dist/ui/contexts/dynamic-sections/use-dynamic-section/index.js.map +1 -1
  66. package/dist/ui/icons/index.d.ts +1 -0
  67. package/dist/ui/icons/index.js +1 -0
  68. package/dist/ui/icons/index.js.map +1 -1
  69. package/dist/ui/icons/render/mobile.d.ts +2 -0
  70. package/dist/ui/icons/render/mobile.js +10 -0
  71. package/dist/ui/icons/render/mobile.js.map +1 -0
  72. package/dist/ui/icons/render/pet.js +1 -1
  73. package/dist/ui/icons/render/pet.js.map +1 -1
  74. package/package.json +1 -1
  75. package/dist/ui/components/form/input-file/file-card/index.d.ts +0 -8
  76. package/dist/ui/components/form/input-file/file-card/index.js +0 -53
  77. package/dist/ui/components/form/input-file/file-card/index.js.map +0 -1
  78. package/dist/ui/components/form/input-file/file-card/styles.js +0 -14
  79. package/dist/ui/components/form/input-file/file-card/styles.js.map +0 -1
  80. package/dist/ui/components/form/input-file/file-card/use-file-card.d.ts +0 -11
  81. package/dist/ui/components/form/input-file/file-card/use-file-card.js +0 -71
  82. package/dist/ui/components/form/input-file/file-card/use-file-card.js.map +0 -1
  83. package/dist/ui/components/form/input-file/use-components-file.d.ts +0 -13
  84. package/dist/ui/components/form/input-file/use-components-file.js +0 -24
  85. package/dist/ui/components/form/input-file/use-components-file.js.map +0 -1
  86. package/dist/ui/components/form/input-file/use-file-elements.js.map +0 -1
  87. package/dist/ui/components/form/input-file/use-file.js.map +0 -1
  88. /package/dist/ui/components/form/input-file/{file-card → render-files}/styles.d.ts +0 -0
@@ -1,29 +1,27 @@
1
1
  /// <reference types="react" />
2
2
  import { FieldHelperProps, FieldInputProps } from 'formik';
3
- import { FileSystemType } from '../../../../system/index.js';
4
- import { InputProps } from '../../../../ui/index.js';
3
+ import { FileSystemType } from '../../../../../system/index.js';
4
+ import { InputProps } from '../../../../../ui/index.js';
5
5
  export type FileState = {
6
6
  idFile: string;
7
7
  loading: boolean;
8
8
  field: FieldInputProps<FileSystemType[]>;
9
9
  handlers: FieldHelperProps<FileSystemType[]>;
10
10
  setLoading: React.SetStateAction<React.Dispatch<boolean>>;
11
- deleteFile: (file: FileSystemType) => Promise<void>;
12
11
  onChangeInputFile: (event: any) => Promise<void>;
13
12
  };
14
13
  export declare function useFile(props: InputProps): {
15
- FileArea: ({ children }: {
16
- children: any;
17
- }) => import("react/jsx-runtime").JSX.Element;
18
14
  InputFile: ({ visible }: {
19
15
  visible?: boolean;
20
16
  }) => import("react/jsx-runtime").JSX.Element;
21
17
  UploadCamera: () => import("react/jsx-runtime").JSX.Element;
18
+ LabelFileArea: ({ children }: {
19
+ children: any;
20
+ }) => import("react/jsx-runtime").JSX.Element;
22
21
  idFile: string;
23
22
  field: FieldInputProps<FileSystemType[]>;
24
23
  handlers: FieldHelperProps<FileSystemType[]>;
25
24
  loading: boolean;
26
25
  setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
27
- deleteFile: (file: FileSystemType) => Promise<void>;
28
26
  onChangeInputFile: (event: any) => Promise<void>;
29
27
  };
@@ -59,11 +59,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
59
59
  exports.useFile = void 0;
60
60
  var react_1 = require("react");
61
61
  var formik_1 = require("formik");
62
- var ui_1 = require("../../../../ui/index.js");
62
+ var ui_1 = require("../../../../../ui/index.js");
63
63
  var use_file_elements_1 = require("./use-file-elements.js");
64
64
  function useFile(props) {
65
65
  var _a = (0, react_1.useState)(false), loading = _a[0], setLoading = _a[1];
66
- var _b = (0, formik_1.useField)({ name: props.name }), field = _b[0], _ = _b[1], handlers = _b[2];
66
+ var _b = (0, formik_1.useField)({ name: (props === null || props === void 0 ? void 0 : props.name) || "" }), field = _b[0], _ = _b[1], handlers = _b[2];
67
67
  function convertToFileSystemType(file) {
68
68
  return {
69
69
  id: Date.now(),
@@ -82,11 +82,14 @@ function useFile(props) {
82
82
  case 0:
83
83
  files = event.currentTarget.files;
84
84
  if (!props.isLocalFile) return [3 /*break*/, 1];
85
+ console.log("files", files);
85
86
  fileSystemTypes = Array.from(files).map(convertToFileSystemType);
87
+ console.log(props.isAccumalativeFile, field.value);
86
88
  if (props.isAccumalativeFile && field.value) {
87
89
  handlers.setValue(__spreadArray(__spreadArray([], field.value, true), fileSystemTypes, true));
88
90
  }
89
91
  else {
92
+ console.log(fileSystemTypes, "fileSystem");
90
93
  handlers.setValue(fileSystemTypes);
91
94
  }
92
95
  return [3 /*break*/, 3];
@@ -104,18 +107,7 @@ function useFile(props) {
104
107
  });
105
108
  }
106
109
  var idFile = (0, ui_1.uid)(10);
107
- function deleteFile(file) {
108
- return __awaiter(this, void 0, void 0, function () {
109
- var newValue;
110
- var _a;
111
- return __generator(this, function (_b) {
112
- newValue = (_a = field.value) === null || _a === void 0 ? void 0 : _a.filter(function (item) { return item.url !== file.url; });
113
- handlers.setValue(newValue.length > 0 ? newValue : undefined);
114
- return [2 /*return*/];
115
- });
116
- });
117
- }
118
- var fileState = { idFile: idFile, field: field, handlers: handlers, loading: loading, setLoading: setLoading, deleteFile: deleteFile, onChangeInputFile: onChangeInputFile };
110
+ var fileState = { idFile: idFile, field: field, handlers: handlers, loading: loading, setLoading: setLoading, onChangeInputFile: onChangeInputFile };
119
111
  var fileElements = (0, use_file_elements_1.useFileElements)({ fileProps: props, fileState: fileState });
120
112
  return __assign(__assign({}, fileState), fileElements);
121
113
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-file.js","s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CAAC,kBAAkB,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;4BAC3C,QAAQ,CAAC,QAAQ,iCAAK,KAAK,CAAC,KAAK,SAAK,eAAe,QAAE,CAAA;wBACzD,CAAC;6BAAK,CAAC;4BACL,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,YAAY,CAAC,CAAA;4BAC1C,QAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAA;wBACpC,CAAC;;;wBAGD,UAAU,CAAC,IAAI,CAAC,CAAA;wBAEH,qBAAM,IAAA,eAAU,EAAC,EAAE,KAAK,OAAA,EAAE,CAAC,EAAA;;wBAAlC,IAAI,GAAG,SAA2B;wBAExC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;wBAEvB,UAAU,CAAC,KAAK,CAAC,CAAA;;;;;;KAEpB;IAED,IAAM,MAAM,GAAG,IAAA,QAAG,EAAC,EAAE,CAAW,CAAA;IAEhC,IAAM,SAAS,GAAG,EAAE,MAAM,QAAA,EAAE,KAAK,OAAA,EAAE,QAAQ,UAAA,EAAE,OAAO,SAAA,EAAE,UAAU,YAAA,EAAE,iBAAiB,mBAAA,EAAE,CAAA;IAErF,IAAM,YAAY,GAAG,IAAA,mCAAe,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,WAAA,EAAE,CAAC,CAAA;IAErE,6BAAY,SAAS,GAAK,YAAY,EAAE;AAC1C,CAAC;AAnDD,0BAmDC"}
@@ -0,0 +1,9 @@
1
+ import { RenderFileProps } from '../../../../../ui/index.js';
2
+ export declare function useRenderedFile(props: RenderFileProps): {
3
+ DownloadButton: () => import("react/jsx-runtime").JSX.Element;
4
+ DeleteFileButton: () => import("react/jsx-runtime").JSX.Element;
5
+ ShowDetailFileButton: () => import("react/jsx-runtime").JSX.Element;
6
+ Image: () => import("react/jsx-runtime").JSX.Element;
7
+ fileName: string;
8
+ downloadUrl: string;
9
+ };
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.useRenderedFile = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var react_1 = require("react");
17
+ var ui_1 = require("../../../../../ui/index.js");
18
+ function useRenderedFile(props) {
19
+ var _a, _b, _c;
20
+ var _d = (0, react_1.useState)(null), downloadUrl = _d[0], setDownloadUrl = _d[1];
21
+ var components = (0, ui_1.useComponentsFile)(props);
22
+ function format(name) {
23
+ var fileNameLimit = 10;
24
+ var splited = name === null || name === void 0 ? void 0 : name.split('.');
25
+ var hasExtension = Array.isArray(splited) ? splited.length > 1 : 0;
26
+ var fileName = hasExtension
27
+ ? splited.slice(0, -1).join('.').substring(0, fileNameLimit)
28
+ : name === null || name === void 0 ? void 0 : name.substring(0, fileNameLimit);
29
+ return {
30
+ extension: hasExtension ? splited.pop() : '',
31
+ name: hasExtension ? "".concat(fileName, ".").concat(splited.pop()) : fileName,
32
+ };
33
+ }
34
+ var fileName = format((_a = props === null || props === void 0 ? void 0 : props.file) === null || _a === void 0 ? void 0 : _a.url);
35
+ var Image = function () {
36
+ var _a, _b, _c;
37
+ switch (fileName.extension || ((_a = props.file) === null || _a === void 0 ? void 0 : _a.fileType)) {
38
+ case 'application/pdf':
39
+ return (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconPdf', fill: '#f52421' });
40
+ case 'pdf':
41
+ return (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconPdf', fill: '#f52421' });
42
+ case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':
43
+ return (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconExcel' });
44
+ case 'xlsx':
45
+ return (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconExcel' });
46
+ case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document':
47
+ return (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconWord' });
48
+ case 'doc':
49
+ return (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconWord' });
50
+ case 'docx':
51
+ return (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconWord' });
52
+ default:
53
+ return (0, jsx_runtime_1.jsx)("img", { style: { height: '100%', width: '100%' }, src: ((_b = props === null || props === void 0 ? void 0 : props.file) === null || _b === void 0 ? void 0 : _b.url) || ((_c = props === null || props === void 0 ? void 0 : props.file) === null || _c === void 0 ? void 0 : _c.defaultImage) });
54
+ }
55
+ };
56
+ (0, react_1.useEffect)(function () {
57
+ var _a;
58
+ if (props.isLocalFile) {
59
+ fetch((_a = props === null || props === void 0 ? void 0 : props.file) === null || _a === void 0 ? void 0 : _a.url)
60
+ .then(function (response) { return response.blob(); })
61
+ .then(function (blob) {
62
+ var url = window.URL.createObjectURL(blob);
63
+ setDownloadUrl(url);
64
+ })
65
+ .catch(function (error) { return console.error('Error fetching file:', error); });
66
+ }
67
+ }, [(_b = props === null || props === void 0 ? void 0 : props.file) === null || _b === void 0 ? void 0 : _b.url, props.isLocalFile]);
68
+ return __assign({ Image: Image, fileName: ((_c = props.file) === null || _c === void 0 ? void 0 : _c.title) || (fileName === null || fileName === void 0 ? void 0 : fileName.name), downloadUrl: downloadUrl }, components);
69
+ }
70
+ exports.useRenderedFile = useRenderedFile;
71
+ //# sourceMappingURL=use-rendered-file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-rendered-file.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-file/hooks/use-rendered-file.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+BAA2C;AAE3C,2BAA+D;AAE/D,SAAgB,eAAe,CAAC,KAAsB;;IAC9C,IAAA,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;gBAE5C,cAAc,CAAC,GAAG,CAAC,CAAA;YACrB,CAAC,CAAC;iBACD,KAAK,CAAC,UAAC,KAAK,IAAK,OAAA,OAAO,CAAC,KAAK,CAAC,sBAAsB,EAAE,KAAK,CAAC,EAA5C,CAA4C,CAAC,CAAA;QACnE,CAAC;IACH,CAAC,EAAE,CAAC,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,0CAAE,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAA;IAEzC,kBAAS,KAAK,OAAA,EAAE,QAAQ,EAAE,CAAA,MAAA,KAAK,CAAC,IAAI,0CAAE,KAAK,MAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAA,EAAE,WAAW,aAAA,IAAK,UAAU,EAAE;AAC7F,CAAC;AAzDD,0CAyDC"}
@@ -1,6 +1,3 @@
1
- export * from "./use-file.js";
1
+ export * from "./hooks/index.js";
2
2
  export * from "./component.js";
3
- export * from "./file-card/index.js";
4
- export * from "./use-file-elements.js";
5
- export * from "./use-components-file.js";
6
- export * from "./file-card/use-file-card.js";
3
+ export * from "./render-files/index.js";
@@ -14,10 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./use-file.js"), exports);
17
+ __exportStar(require("./hooks/index.js"), exports);
18
18
  __exportStar(require("./component.js"), exports);
19
- __exportStar(require("./file-card/index.js"), exports);
20
- __exportStar(require("./use-file-elements.js"), exports);
21
- __exportStar(require("./use-components-file.js"), exports);
22
- __exportStar(require("./file-card/use-file-card.js"), exports);
19
+ __exportStar(require("./render-files/index.js"), exports);
23
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-file/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,8CAA2B;AAC3B,8CAA2B;AAC3B,sDAAmC;AACnC,wDAAqC;AACrC,4DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-file/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,8CAA2B;AAC3B,iDAA8B"}
@@ -0,0 +1,2 @@
1
+ import { RenderFileProps } from './interfaces.js';
2
+ export declare function RenderFiles(props: RenderFileProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.RenderFiles = void 0;
38
+ var jsx_runtime_1 = require("react/jsx-runtime");
39
+ var formik_1 = require("formik");
40
+ var file_item_1 = require("./file-item/index.js");
41
+ var S = __importStar(require("./styles.js"));
42
+ function RenderFiles(props) {
43
+ var _a, _b;
44
+ var values = (0, formik_1.useFormikContext)().values;
45
+ var fileReferenceList = "".concat(props.name, "[").concat(props.index, "].mobile");
46
+ var nameMobile = fileReferenceList + "[0]";
47
+ var mobileFiles = (_b = (_a = values[props.name]) === null || _a === void 0 ? void 0 : _a[props.index]) === null || _b === void 0 ? void 0 : _b['mobile'];
48
+ var mobileProps = __assign(__assign({}, props), { id: nameMobile, name: fileReferenceList, fileReferenceList: fileReferenceList, multiple: false, isAccumalativeFile: false, nameFileMobile: nameMobile, isLocalFile: props.isLocalFile, enableMobileImage: props.enableMobileImage, mobileFilesAlredyExist: mobileFiles && mobileFiles.length > 0 });
49
+ return ((0, jsx_runtime_1.jsxs)(S.FileCard, { children: [(0, jsx_runtime_1.jsx)(file_item_1.FileItem, __assign({}, props, { mobile: __assign({}, mobileProps) })), mobileFiles &&
50
+ mobileFiles.map(function (fileSystem, index) {
51
+ return (0, jsx_runtime_1.jsx)(file_item_1.FileItem, __assign({}, mobileProps, { name: nameMobile, file: fileSystem, isMobile: true, index: index }), nameMobile);
52
+ })] }));
53
+ }
54
+ exports.RenderFiles = RenderFiles;
55
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-file/render-files/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAyC;AAEzC,yCAAsC;AAKtC,0CAA6B;AAE7B,SAAgB,WAAW,CAAC,KAAsB;;IACxC,IAAA,MAAM,GAAK,IAAA,yBAAgB,GAAE,OAAvB,CAAuB;IAErC,IAAM,iBAAiB,GAAG,UAAG,KAAK,CAAC,IAAI,cAAI,KAAK,CAAC,KAAK,aAAU,CAAA;IAChE,IAAM,UAAU,GAAG,iBAAiB,GAAG,KAAK,CAAA;IAC5C,IAAM,WAAW,GAAG,MAAA,MAAA,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,0CAAG,KAAK,CAAC,KAAK,CAAC,0CAAG,QAAQ,CAAqB,CAAA;IAErF,IAAM,WAAW,yBACZ,KAAK,KACR,EAAE,EAAE,UAAU,EACd,IAAI,EAAE,iBAAiB,EACvB,iBAAiB,mBAAA,EACjB,QAAQ,EAAE,KAAK,EACf,kBAAkB,EAAE,KAAK,EACzB,cAAc,EAAE,UAAU,EAC1B,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,EAC1C,sBAAsB,EAAE,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,GAC9D,CAAA;IAED,OAAO,CACL,wBAAC,CAAC,CAAC,QAAQ,eACT,uBAAC,oBAAQ,eAAK,KAAK,IAAE,MAAM,eAAM,WAAW,KAAK,EAEhD,WAAW;gBACV,WAAW,CAAC,GAAG,CAAC,UAAC,UAAU,EAAE,KAAK;oBAChC,OAAO,uBAAC,oBAAQ,eAAsB,WAAW,IAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,QAAE,KAAK,EAAE,KAAK,KAAvF,UAAU,CAAiF,CAAA;gBACnH,CAAC,CAAC,IACO,CACd,CAAA;AACH,CAAC;AA9BD,kCA8BC"}
@@ -0,0 +1,13 @@
1
+ import { RenderFileProps } from '../../../../../../../ui/index.js';
2
+ export type ButtonUploadImageMobileProps = {
3
+ mobile?: {
4
+ id: string;
5
+ name: string;
6
+ multiple: boolean;
7
+ isAccumalativeFile: boolean;
8
+ nameFileMobile: string;
9
+ mobileFilesAlredyExist: boolean;
10
+ };
11
+ isMobile?: boolean;
12
+ };
13
+ export declare function ButtonUploadImageMobile(props: RenderFileProps & ButtonUploadImageMobileProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ButtonUploadImageMobile = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var ui_1 = require("../../../../../../../ui/index.js");
6
+ function ButtonUploadImageMobile(props) {
7
+ var _a, _b;
8
+ var _c = (0, ui_1.useFile)(props.mobile), InputFile = _c.InputFile, LabelFileArea = _c.LabelFileArea;
9
+ if ((props === null || props === void 0 ? void 0 : props.isMobile) ||
10
+ !(props === null || props === void 0 ? void 0 : props.enableMobileImage) ||
11
+ ((_a = props === null || props === void 0 ? void 0 : props.mobile) === null || _a === void 0 ? void 0 : _a.mobileFilesAlredyExist) ||
12
+ !((_b = props.mobile) === null || _b === void 0 ? void 0 : _b.nameFileMobile)) {
13
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
14
+ }
15
+ return ((0, jsx_runtime_1.jsx)(ui_1.Tooltip, { idTooltip: 'MobileFile', bgColor: '#fff', enableHover: true, enableArrow: true, content: 'Arquivo Mobile', trigger: (0, jsx_runtime_1.jsx)(LabelFileArea, { children: (0, jsx_runtime_1.jsxs)("div", { className: 'action-button', children: [(0, jsx_runtime_1.jsx)("div", { style: { display: 'none' }, children: (0, jsx_runtime_1.jsx)(InputFile, {}) }), (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconMobile' })] }) }) }));
16
+ }
17
+ exports.ButtonUploadImageMobile = ButtonUploadImageMobile;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.tsx"],"names":[],"mappings":";;;;AAAA,2BAA8D;AAc9D,SAAgB,uBAAuB,CAAC,KAAqD;;IACrF,IAAA,KAA+B,IAAA,YAAO,EAAC,KAAK,CAAC,MAAM,CAAC,EAAlD,SAAS,eAAA,EAAE,aAAa,mBAA0B,CAAA;IAE1D,IACE,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ;QACf,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,iBAAiB,CAAA;SACzB,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,sBAAsB,CAAA;QACrC,CAAC,CAAA,MAAA,KAAK,CAAC,MAAM,0CAAE,cAAc,CAAA,EAC7B,CAAC;QACD,OAAO,kDAAK,CAAA;IACd,CAAC;IAED,OAAO,CACL,uBAAC,YAAO,IACN,SAAS,EAAC,YAAY,EACtB,OAAO,EAAC,MAAM,EACd,WAAW,QACX,WAAW,QACX,OAAO,EAAC,gBAAgB,EACxB,OAAO,EACL,uBAAC,aAAa,cACZ,iCAAK,SAAS,EAAC,eAAe,aAC5B,gCAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,YAC7B,uBAAC,SAAS,KAAG,GACT,EAEN,uBAAC,SAAI,IAAC,IAAI,EAAC,YAAY,GAAG,IACtB,GACQ,GAElB,CACH,CAAA;AACH,CAAC;AAhCD,0DAgCC"}
@@ -0,0 +1,3 @@
1
+ import { ButtonUploadImageMobileProps } from './button-upload-image-mobile/index.js';
2
+ import { RenderFileProps } from '../interfaces.js';
3
+ export declare function FileItem(props: RenderFileProps & ButtonUploadImageMobileProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.FileItem = void 0;
38
+ var jsx_runtime_1 = require("react/jsx-runtime");
39
+ var ui_1 = require("../../../../../../ui/index.js");
40
+ var button_upload_image_mobile_1 = require("./button-upload-image-mobile/index.js");
41
+ var S = __importStar(require("./styles.js"));
42
+ function FileItem(props) {
43
+ var _a;
44
+ var _b = (0, ui_1.useFile)(props), loading = _b.loading, InputFile = _b.InputFile;
45
+ var _c = (0, ui_1.useRenderedFile)(props), Image = _c.Image, fileName = _c.fileName, ShowDetailFileButton = _c.ShowDetailFileButton, DeleteFileButton = _c.DeleteFileButton, DownloadButton = _c.DownloadButton;
46
+ return ((0, jsx_runtime_1.jsxs)(S.FileItem, { children: [(0, jsx_runtime_1.jsx)("div", { style: { display: 'none' }, children: (0, jsx_runtime_1.jsx)(InputFile, {}) }), (0, jsx_runtime_1.jsx)("div", { className: 'image', children: loading ? (0, jsx_runtime_1.jsx)(ui_1.LoaderCircle, { size: 30, color: '#000' }) : (0, jsx_runtime_1.jsx)(Image, {}) }), (0, jsx_runtime_1.jsxs)("div", { className: 'text', children: [(0, jsx_runtime_1.jsxs)("h3", { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'left', children: [props.enableMobileImage && ((0, jsx_runtime_1.jsx)("span", { className: 'font-13-regular type_size_file', children: props.isMobile ? 'Mobile' : 'Desktop' })), fileName && (0, jsx_runtime_1.jsx)("span", { className: 'font-13-regular file-name', children: fileName })] }), (props.sizeImageFile || props.sizeImageFileMobile) && ((0, jsx_runtime_1.jsxs)("span", { className: 'font-13-regular size', children: [!props.isMobile && ((0, jsx_runtime_1.jsxs)("span", { children: [(0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconComputer' }), " ", props.sizeImageFile] })), !((_a = props === null || props === void 0 ? void 0 : props.mobile) === null || _a === void 0 ? void 0 : _a.mobileFilesAlredyExist) && props.enableMobileImage && ((0, jsx_runtime_1.jsxs)("span", { children: [(0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconMobile' }), props.sizeImageFileMobile] }))] }))] }), (0, jsx_runtime_1.jsxs)("div", { className: 'actions', children: [(0, jsx_runtime_1.jsx)(ShowDetailFileButton, {}), (0, jsx_runtime_1.jsx)(DeleteFileButton, {}), (0, jsx_runtime_1.jsx)(DownloadButton, {}), (0, jsx_runtime_1.jsx)(button_upload_image_mobile_1.ButtonUploadImageMobile, __assign({}, props))] })] })] }));
47
+ }
48
+ exports.FileItem = FileItem;
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/form/input-file/render-files/file-item/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAmE;AACnE,2EAAoG;AAIpG,0CAA6B;AAE7B,SAAgB,QAAQ,CAAC,KAAqD;;IACtE,IAAA,KAAyB,IAAA,YAAO,EAAC,KAAK,CAAC,EAArC,OAAO,aAAA,EAAE,SAAS,eAAmB,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CAAK,SAAS,EAAC,SAAS,aACtB,uBAAC,oBAAoB,KAAG,EAExB,uBAAC,gBAAgB,KAAG,EAEpB,uBAAC,cAAc,KAAG,EAElB,uBAAC,oDAAuB,eAAK,KAAK,EAAI,IAClC,IACF,IACK,CACd,CAAA;AACH,CAAC;AAnDD,4BAmDC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const FileItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: import("react").Ref<HTMLDivElement>;
4
+ }, never>> & string;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.FileItem = void 0;
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ exports.FileItem = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n gap: 15px;\n margin-bottom: 15px;\n\n .image {\n height: 90px;\n width: 90px;\n border-radius: 5px;\n border: 1px solid #aaa;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n\n img {\n object-fit: contain;\n height: 100%;\n width: 100%;\n }\n }\n\n .text {\n width: calc(100% - 105px);\n\n h3 {\n display: flex;\n justify-content: space-between;\n padding-top: 5px;\n\n .left {\n display: flex;\n flex-direction: column;\n\n .file-nam {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n }\n }\n\n .size {\n display: flex;\n flex-direction: column;\n gap: 3px;\n\n span {\n display: flex;\n gap: 3px;\n\n svg {\n width: 14px;\n height: auto;\n fill: #000;\n }\n }\n }\n }\n\n .actions {\n display: flex;\n gap: 10px;\n margin-top: 15px;\n\n > div > label {\n border: 0;\n padding: 0;\n height: unset;\n margin: 0;\n display: inline-block;\n\n &:hover {\n background-color: transparent;\n }\n }\n\n .action-button {\n padding: 0;\n border: 0;\n width: 30px;\n height: 30px;\n border-radius: 5px;\n background: #e1e1e1;\n color: #828282;\n cursor: pointer;\n padding: 8px;\n display: flex;\n transition: 0.3s;\n\n &:hover {\n background-color: #cbcaca;\n }\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"], ["\n display: flex;\n gap: 15px;\n margin-bottom: 15px;\n\n .image {\n height: 90px;\n width: 90px;\n border-radius: 5px;\n border: 1px solid #aaa;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n\n img {\n object-fit: contain;\n height: 100%;\n width: 100%;\n }\n }\n\n .text {\n width: calc(100% - 105px);\n\n h3 {\n display: flex;\n justify-content: space-between;\n padding-top: 5px;\n\n .left {\n display: flex;\n flex-direction: column;\n\n .file-nam {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n }\n }\n\n .size {\n display: flex;\n flex-direction: column;\n gap: 3px;\n\n span {\n display: flex;\n gap: 3px;\n\n svg {\n width: 14px;\n height: auto;\n fill: #000;\n }\n }\n }\n }\n\n .actions {\n display: flex;\n gap: 10px;\n margin-top: 15px;\n\n > div > label {\n border: 0;\n padding: 0;\n height: unset;\n margin: 0;\n display: inline-block;\n\n &:hover {\n background-color: transparent;\n }\n }\n\n .action-button {\n padding: 0;\n border: 0;\n width: 30px;\n height: 30px;\n border-radius: 5px;\n background: #e1e1e1;\n color: #828282;\n cursor: pointer;\n padding: 8px;\n display: flex;\n transition: 0.3s;\n\n &:hover {\n background-color: #cbcaca;\n }\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"])));
13
+ var templateObject_1;
14
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/form/input-file/render-files/file-item/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,QAAQ,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,m8DAAA,g4DA2GpC,KAAA"}
@@ -0,0 +1,3 @@
1
+ export * from "./component.js";
2
+ export * from "./file-item/index.js";
3
+ export * from "./interfaces.js";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./component.js"), exports);
18
+ __exportStar(require("./file-item/index.js"), exports);
19
+ __exportStar(require("./interfaces.js"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-file/render-files/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,8CAA2B;AAC3B,+CAA4B"}
@@ -0,0 +1,7 @@
1
+ import { InputProps } from "../../../../../ui/index.js";
2
+ import { FileSystemType } from "../../../../../system/index.js";
3
+ export type RenderFileProps = {
4
+ index?: number;
5
+ file: FileSystemType;
6
+ fileReferenceList?: string;
7
+ } & InputProps;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-file/render-files/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.FileCard = void 0;
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ exports.FileCard = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n padding: 15px;\n border-radius: 10px;\n border: 1px solid #aaa;\n"], ["\n width: 100%;\n padding: 15px;\n border-radius: 10px;\n border: 1px solid #aaa;\n"])));
13
+ var templateObject_1;
14
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-file/render-files/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,QAAQ,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,4JAAA,yFAKpC,KAAA"}
@@ -9,7 +9,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.FileButton = exports.InputFile = void 0;
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
- exports.InputFile = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n\n input {\n display: none;\n }\n\n label {\n width: 100%;\n border: 1px solid #ccc;\n border-radius: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 54px;\n gap: 10px;\n cursor: pointer;\n color: #828282;\n\n svg {\n width: 15px;\n height: auto;\n fill: currentColor;\n }\n\n span {\n font-size: 16px;\n font-weight: 400;\n }\n\n &:hover {\n background-color: #f1f1f1;\n }\n }\n\n .initial_value_input_file {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n justify-content: space-between;\n gap: 20px;\n width: 100%;\n }\n"], ["\n width: 100%;\n\n input {\n display: none;\n }\n\n label {\n width: 100%;\n border: 1px solid #ccc;\n border-radius: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 54px;\n gap: 10px;\n cursor: pointer;\n color: #828282;\n\n svg {\n width: 15px;\n height: auto;\n fill: currentColor;\n }\n\n span {\n font-size: 16px;\n font-weight: 400;\n }\n\n &:hover {\n background-color: #f1f1f1;\n }\n }\n\n .initial_value_input_file {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n justify-content: space-between;\n gap: 20px;\n width: 100%;\n }\n"])));
12
+ exports.InputFile = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n\n input {\n display: none;\n }\n\n label {\n width: 100%;\n border: 1px solid #ccc;\n border-radius: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 54px;\n gap: 10px;\n cursor: pointer;\n color: #828282;\n margin-top: 15px;\n\n svg {\n width: 15px;\n height: auto;\n fill: currentColor;\n }\n\n span {\n font-size: 16px;\n font-weight: 400;\n }\n\n &:hover {\n background-color: #f1f1f1;\n }\n }\n\n .initial_value_input_file {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n justify-content: flex-start;\n align-items: flex-start;\n gap: 20px;\n width: 100%;\n }\n"], ["\n width: 100%;\n\n input {\n display: none;\n }\n\n label {\n width: 100%;\n border: 1px solid #ccc;\n border-radius: 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 54px;\n gap: 10px;\n cursor: pointer;\n color: #828282;\n margin-top: 15px;\n\n svg {\n width: 15px;\n height: auto;\n fill: currentColor;\n }\n\n span {\n font-size: 16px;\n font-weight: 400;\n }\n\n &:hover {\n background-color: #f1f1f1;\n }\n }\n\n .initial_value_input_file {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n justify-content: flex-start;\n align-items: flex-start;\n gap: 20px;\n width: 100%;\n }\n"])));
13
13
  exports.FileButton = (0, styled_components_1.default)('div')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: none;\n border: 1px solid rgba(0, 0, 0, 0.2);\n padding: 8px;\n border-radius: 4px;\n overflow: hidden;\n width: 40px;\n cursor: pointer;\n height: 40px;\n\n svg {\n width: 100%;\n height: auto;\n }\n"], ["\n background: none;\n border: 1px solid rgba(0, 0, 0, 0.2);\n padding: 8px;\n border-radius: 4px;\n overflow: hidden;\n width: 40px;\n cursor: pointer;\n height: 40px;\n\n svg {\n width: 100%;\n height: auto;\n }\n"])));
14
14
  var templateObject_1, templateObject_2;
15
15
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-file/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,SAAS,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,svBAAA,mrBA0CrC,KAAA;AACY,QAAA,UAAU,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,4SAAA,yOActC,KAAA"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-file/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,SAAS,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,wyBAAA,quBA4CrC,KAAA;AACY,QAAA,UAAU,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,4SAAA,yOActC,KAAA"}
@@ -39,13 +39,13 @@ var jsx_runtime_1 = require("react/jsx-runtime");
39
39
  var ui_1 = require("../../../../../ui/index.js");
40
40
  var S = __importStar(require("./styles.js"));
41
41
  function InputMetaImage(props) {
42
- var _a = (0, ui_1.useFile)(__assign(__assign({}, props), { accept: 'image/*', isLocalFile: true })), FileArea = _a.FileArea, InputFile = _a.InputFile, field = _a.field, deleteFile = _a.deleteFile;
43
- return ((0, jsx_runtime_1.jsx)(S.InputMetaImage, { children: (0, jsx_runtime_1.jsxs)(ui_1.InputControl, __assign({}, props, { children: [(0, jsx_runtime_1.jsx)(InputFile, { visible: false }), (0, jsx_runtime_1.jsx)("div", { className: 'meta-image', children: !field.value || (Array.isArray(field.value) && field.value.length === 0) ? ((0, jsx_runtime_1.jsx)(FileArea, { children: (0, jsx_runtime_1.jsxs)("div", { className: 'meta_image_no_file_selected', children: [(0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconUpload', fill: '#000' }), (0, jsx_runtime_1.jsx)("p", { children: "Selecionar arquivo" })] }) })) : (field.value.map(function (file) { return (0, jsx_runtime_1.jsx)(ResultFile, { file: file, inputProps: props, deleteFile: deleteFile }); })) })] })) }));
42
+ var _a = (0, ui_1.useFile)(__assign(__assign({}, props), { accept: 'image/*', isLocalFile: true })), LabelFileArea = _a.LabelFileArea, InputFile = _a.InputFile, field = _a.field;
43
+ return ((0, jsx_runtime_1.jsx)(S.InputMetaImage, { children: (0, jsx_runtime_1.jsxs)(ui_1.InputControl, __assign({}, props, { children: [(0, jsx_runtime_1.jsx)(InputFile, { visible: false }), (0, jsx_runtime_1.jsx)("div", { className: 'meta-image', children: !field.value || (Array.isArray(field.value) && field.value.length === 0) ? ((0, jsx_runtime_1.jsx)(LabelFileArea, { children: (0, jsx_runtime_1.jsxs)("div", { className: 'meta_image_no_file_selected', children: [(0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconUpload', fill: '#000' }), (0, jsx_runtime_1.jsx)("p", { children: "Selecionar arquivo" })] }) })) : (field.value.map(function (file) { return (0, jsx_runtime_1.jsx)(ResultFile, { file: file, inputProps: props }); })) })] })) }));
44
44
  }
45
45
  exports.InputMetaImage = InputMetaImage;
46
46
  function ResultFile(_a) {
47
- var inputProps = _a.inputProps, file = _a.file, deleteFile = _a.deleteFile;
48
- var _b = (0, ui_1.useFileCard)(__assign(__assign({}, inputProps), { file: file })), Image = _b.Image, fileName = _b.fileName, DeleteFileButton = _b.DeleteFileButton;
49
- return ((0, jsx_runtime_1.jsxs)("div", { className: 'result_meta_image', children: [(0, jsx_runtime_1.jsx)(Image, {}), (0, jsx_runtime_1.jsx)("p", { children: fileName }), (0, jsx_runtime_1.jsx)(DeleteFileButton, { onDelete: deleteFile })] }));
47
+ var inputProps = _a.inputProps, file = _a.file;
48
+ var _b = (0, ui_1.useRenderedFile)(__assign(__assign({}, inputProps), { file: file })), Image = _b.Image, fileName = _b.fileName, DeleteFileButton = _b.DeleteFileButton;
49
+ return ((0, jsx_runtime_1.jsxs)("div", { className: 'result_meta_image', children: [(0, jsx_runtime_1.jsx)(Image, {}), (0, jsx_runtime_1.jsx)("p", { children: fileName }), (0, jsx_runtime_1.jsx)(DeleteFileButton, {})] }));
50
50
  }
51
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-seo/input-meta-image/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2BAA2E;AAE3E,0CAA6B;AAE7B,SAAgB,cAAc,CAAC,KAAiB;IACxC,IAAA,KAA6C,IAAA,YAAO,wBAAM,KAAK,KAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,IAAG,EAAtG,QAAQ,cAAA,EAAE,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EF,OAAO,CACL,iCAAK,SAAS,EAAC,mBAAmB,aAChC,uBAAC,KAAK,KAAG,EAET,wCAAI,QAAQ,GAAK,EAEjB,uBAAC,gBAAgB,KAAI,IACjB,CACP,CAAA;AACH,CAAC"}
@@ -6,11 +6,15 @@ type InputFormikState = {
6
6
  state: FieldMetaProps<any>;
7
7
  };
8
8
  interface Props {
9
+ disable?: boolean;
9
10
  debug?: boolean;
10
11
  name: string;
11
12
  label?: string;
12
13
  loading?: boolean;
13
14
  isLocalFile?: boolean;
15
+ sizeImageFile?: string;
16
+ sizeImageFileMobile?: string;
17
+ enableMobileImage?: boolean;
14
18
  icon?: {
15
19
  name?: IconsNames;
16
20
  element?: React.ReactNode;
@@ -1,5 +1,7 @@
1
+ import { DynamicFieldsSection } from '../../../../ui/index.js';
1
2
  import { DynamicSection } from '../../../../system/index.js';
2
- export declare function EditSectionComponent({ refSection, section, }: {
3
+ export declare function EditSectionComponent({ fields, refSection, section, }: {
4
+ fields?: DynamicFieldsSection;
3
5
  refSection: DynamicSection['ref'];
4
6
  section?: Partial<DynamicSection>;
5
7
  }): import("react/jsx-runtime").JSX.Element;