@fluig-kit/ecm 1.0.9 → 1.0.10

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.
package/dist/node.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("chalk");function f(t){var e;return((e=t._def)==null?void 0:e.schema)??t}function m(t){var o,i,a;let e=(o=t._def)==null?void 0:o.fluig;if(e!=null&&e.values)return e.values;const l=f(t);if(l!==t&&(e=(i=l._def)==null?void 0:i.fluig,e!=null&&e.values))return e.values;const r=l._def,n=(r==null?void 0:r.meta)??(r==null?void 0:r.metadata);return((a=n==null?void 0:n.fluig)==null?void 0:a.values)??null}function p(t){var e;return((e=t==null?void 0:t._def)==null?void 0:e.typeName)!=="ZodObject"?[]:Object.entries(t.shape)}function g(t){const e=new Set;return(Array.isArray(t)?t:Object.values(t).map(r=>r.schema).filter(Boolean)).forEach(r=>{var o,i;let n=r;for(;(o=n._def)!=null&&o.schema;)n=n._def.schema;((i=n._def)==null?void 0:i.typeName)==="ZodObject"&&p(n).forEach(([a,u])=>{e.add(a);const s=m(u);s!=null&&s.length&&s.forEach(d=>e.add(d))})}),Array.from(e)}function h(t){const e=g(t),l=e.map(r=>`<input type="hidden" name="${r}" />`).join(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("chalk");function f(t){var e;return((e=t._def)==null?void 0:e.schema)??t}function p(t){var o,i,s;let e=(o=t._def)==null?void 0:o.fluig;if(e!=null&&e.values)return e.values;const l=f(t);if(l!==t&&(e=(i=l._def)==null?void 0:i.fluig,e!=null&&e.values))return e.values;const r=l._def,n=(r==null?void 0:r.meta)??(r==null?void 0:r.metadata);return((s=n==null?void 0:n.fluig)==null?void 0:s.values)??null}function m(t){var e;return((e=t==null?void 0:t._def)==null?void 0:e.typeName)!=="ZodObject"?[]:Object.entries(t.shape)}function g(t){const e=new Set;return(Array.isArray(t)?t:Object.values(t).map(r=>r.schema).filter(Boolean)).forEach(r=>{var o,i;let n=r;for(;(o=n._def)!=null&&o.schema;)n=n._def.schema;((i=n._def)==null?void 0:i.typeName)==="ZodObject"&&m(n).forEach(([s,d])=>{e.add(s);const a=p(d);a!=null&&a.length&&a.forEach(u=>e.add(u))})}),Array.from(e)}function h(t){const e=g(t),l=e.map(r=>`<input type="hidden" name="${r}" />`).join(`
2
2
  `);return console.log(c.blue.bold(`
3
3
  === Inputs gerados (Build Script) ===
4
4
  `)),e.forEach((r,n)=>{console.log(`${c.yellow(n+1+".")} ${c.green(r)}`)}),console.log(c.blue.bold(`
@@ -11,7 +11,7 @@
11
11
  <title>Workflow Fluig</title>
12
12
 
13
13
  <link rel="stylesheet" href="/portal/style-guide/css/fluig-style-guide.min.css">
14
- <link rel="stylesheet" crossorigin href="./main.css">
14
+ <link rel="stylesheet" crossorigin href="./bundle.css">
15
15
  </head>
16
16
  <body>
17
17
  <form id="form" name="form">
@@ -20,6 +20,7 @@
20
20
  </div>
21
21
  </form>
22
22
 
23
+ <script src="./bridge.js"><\/script>
23
24
  <script src="./bundle.js"><\/script>
24
25
  </body>
25
26
  </html>`}exports.generateHtmlTemplate=h;
package/dist/node.js CHANGED
@@ -3,17 +3,17 @@ function f(t) {
3
3
  var e;
4
4
  return ((e = t._def) == null ? void 0 : e.schema) ?? t;
5
5
  }
6
- function m(t) {
7
- var l, i, a;
6
+ function p(t) {
7
+ var l, i, s;
8
8
  let e = (l = t._def) == null ? void 0 : l.fluig;
9
9
  if (e != null && e.values) return e.values;
10
10
  const o = f(t);
11
11
  if (o !== t && (e = (i = o._def) == null ? void 0 : i.fluig, e != null && e.values))
12
12
  return e.values;
13
13
  const r = o._def, n = (r == null ? void 0 : r.meta) ?? (r == null ? void 0 : r.metadata);
14
- return ((a = n == null ? void 0 : n.fluig) == null ? void 0 : a.values) ?? null;
14
+ return ((s = n == null ? void 0 : n.fluig) == null ? void 0 : s.values) ?? null;
15
15
  }
16
- function p(t) {
16
+ function m(t) {
17
17
  var e;
18
18
  return ((e = t == null ? void 0 : t._def) == null ? void 0 : e.typeName) !== "ZodObject" ? [] : Object.entries(t.shape);
19
19
  }
@@ -24,14 +24,14 @@ function h(t) {
24
24
  let n = r;
25
25
  for (; (l = n._def) != null && l.schema; )
26
26
  n = n._def.schema;
27
- ((i = n._def) == null ? void 0 : i.typeName) === "ZodObject" && p(n).forEach(([a, d]) => {
28
- e.add(a);
29
- const s = m(d);
30
- s != null && s.length && s.forEach((u) => e.add(u));
27
+ ((i = n._def) == null ? void 0 : i.typeName) === "ZodObject" && m(n).forEach(([s, d]) => {
28
+ e.add(s);
29
+ const a = p(d);
30
+ a != null && a.length && a.forEach((u) => e.add(u));
31
31
  });
32
32
  }), Array.from(e);
33
33
  }
34
- function y(t) {
34
+ function b(t) {
35
35
  const e = h(t), o = e.map(
36
36
  (r) => `<input type="hidden" name="${r}" />`
37
37
  ).join(`
@@ -50,7 +50,7 @@ function y(t) {
50
50
  <title>Workflow Fluig</title>
51
51
 
52
52
  <link rel="stylesheet" href="/portal/style-guide/css/fluig-style-guide.min.css">
53
- <link rel="stylesheet" crossorigin href="./main.css">
53
+ <link rel="stylesheet" crossorigin href="./bundle.css">
54
54
  </head>
55
55
  <body>
56
56
  <form id="form" name="form">
@@ -59,10 +59,11 @@ function y(t) {
59
59
  </div>
60
60
  </form>
61
61
 
62
+ <script src="./bridge.js"><\/script>
62
63
  <script src="./bundle.js"><\/script>
63
64
  </body>
64
65
  </html>`;
65
66
  }
66
67
  export {
67
- y as generateHtmlTemplate
68
+ b as generateHtmlTemplate
68
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluig-kit/ecm",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",