@sankhyalabs/sankhyablocks 1.3.1 → 1.3.4

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 (47) hide show
  1. package/dist/cjs/{index-4720dab8.js → index-8272993f.js} +439 -7
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/sankhyablocks.cjs.js +2 -2
  4. package/dist/cjs/snk-application.cjs.entry.js +237 -60
  5. package/dist/cjs/snk-pesquisa.cjs.entry.js +19 -0
  6. package/dist/cjs/teste-pesquisa.cjs.entry.js +37 -0
  7. package/dist/collection/collection-manifest.json +3 -1
  8. package/dist/collection/components/snk-application/snk-application.js +104 -3
  9. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +3 -0
  10. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +74 -0
  11. package/dist/collection/components/teste-pesquisa/teste-pesquisa.css +3 -0
  12. package/dist/collection/components/teste-pesquisa/teste-pesquisa.js +33 -0
  13. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +47 -0
  14. package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +27 -19
  15. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +82 -0
  16. package/dist/collection/lib/workspace/workspace.js +2 -1
  17. package/dist/components/snk-application.js +1 -7089
  18. package/dist/components/snk-application2.js +7276 -0
  19. package/dist/components/snk-pesquisa.d.ts +11 -0
  20. package/dist/components/snk-pesquisa.js +6 -0
  21. package/dist/components/snk-pesquisa2.js +34 -0
  22. package/dist/components/teste-pesquisa.d.ts +11 -0
  23. package/dist/components/teste-pesquisa.js +63 -0
  24. package/dist/esm/{index-72d4e2e0.js → index-427447f8.js} +439 -8
  25. package/dist/esm/loader.js +2 -2
  26. package/dist/esm/sankhyablocks.js +2 -2
  27. package/dist/esm/snk-application.entry.js +238 -61
  28. package/dist/esm/snk-pesquisa.entry.js +15 -0
  29. package/dist/esm/teste-pesquisa.entry.js +33 -0
  30. package/dist/sankhyablocks/p-62f86dd6.entry.js +63 -0
  31. package/dist/sankhyablocks/p-91ca1a98.entry.js +1 -0
  32. package/dist/sankhyablocks/p-e6ba985e.entry.js +1 -0
  33. package/dist/sankhyablocks/p-ee5a384b.js +2 -0
  34. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  35. package/dist/types/components/snk-application/snk-application.d.ts +8 -0
  36. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +7 -0
  37. package/dist/types/components/teste-pesquisa/teste-pesquisa.d.ts +6 -0
  38. package/dist/types/components.d.ts +34 -0
  39. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +3 -0
  40. package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +1 -1
  41. package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +17 -0
  42. package/package.json +8 -4
  43. package/react/components.d.ts +2 -0
  44. package/react/components.js +2 -0
  45. package/react/components.js.map +1 -1
  46. package/dist/sankhyablocks/p-5d8ddbda.entry.js +0 -57
  47. package/dist/sankhyablocks/p-a33afc3b.js +0 -2
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface SnkPesquisa extends Components.SnkPesquisa, HTMLElement {}
4
+ export const SnkPesquisa: {
5
+ prototype: SnkPesquisa;
6
+ new (): SnkPesquisa;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { S as SnkPesquisa$1, d as defineCustomElement$1 } from './snk-pesquisa2.js';
2
+
3
+ const SnkPesquisa = SnkPesquisa$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { SnkPesquisa, defineCustomElement };
@@ -0,0 +1,34 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const snkPesquisaCss = ":host{display:block}";
4
+
5
+ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ }
11
+ render() {
12
+ return (h(Host, null, h("ez-text-input", { ref: ref => this._textInput = ref, value: this.argument }), h("button", { onClick: () => this.searchLoader(this._textInput["value"]) }, "pesquisar"), h("button", { onClick: () => this.onSelectItem({ value: "10", label: "Zé das couves" }) }, "selecionar")));
13
+ }
14
+ static get style() { return snkPesquisaCss; }
15
+ }, [1, "snk-pesquisa", {
16
+ "searchLoader": [16],
17
+ "onSelectItem": [16],
18
+ "argument": [1025]
19
+ }]);
20
+ function defineCustomElement() {
21
+ if (typeof customElements === "undefined") {
22
+ return;
23
+ }
24
+ const components = ["snk-pesquisa"];
25
+ components.forEach(tagName => { switch (tagName) {
26
+ case "snk-pesquisa":
27
+ if (!customElements.get(tagName)) {
28
+ customElements.define(tagName, SnkPesquisa);
29
+ }
30
+ break;
31
+ } });
32
+ }
33
+
34
+ export { SnkPesquisa as S, defineCustomElement as d };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TestePesquisa extends Components.TestePesquisa, HTMLElement {}
4
+ export const TestePesquisa: {
5
+ prototype: TestePesquisa;
6
+ new (): TestePesquisa;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,63 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { DataUnit, DataType, UserInterface } from '@sankhyalabs/core';
3
+ import { d as defineCustomElement$3 } from './snk-application2.js';
4
+ import { d as defineCustomElement$2 } from './snk-pesquisa2.js';
5
+
6
+ const testePesquisaCss = ":host{display:block}";
7
+
8
+ const TestePesquisa$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
9
+ constructor() {
10
+ super();
11
+ this.__registerHost();
12
+ this.__attachShadow();
13
+ }
14
+ componentWillLoad() {
15
+ this.dataUnit = new DataUnit("testes_com_formulario");
16
+ this.dataUnit.metadata = {
17
+ name: "dd://br.com.sankhya.fin.cad.movimentacaoFinanceira/Financeiro",
18
+ label: "Parceiro",
19
+ fields: [
20
+ {
21
+ name: "CODPARC",
22
+ label: "Parceiro",
23
+ dataType: DataType.NUMBER,
24
+ userInterface: UserInterface.SEARCH,
25
+ required: true,
26
+ properties: { ENTITYNAME: "Parceiro" }
27
+ }
28
+ ]
29
+ };
30
+ }
31
+ render() {
32
+ return (h("snk-application", null, h("ez-form", { dataUnit: this.dataUnit })));
33
+ }
34
+ static get style() { return testePesquisaCss; }
35
+ }, [1, "teste-pesquisa"]);
36
+ function defineCustomElement$1() {
37
+ if (typeof customElements === "undefined") {
38
+ return;
39
+ }
40
+ const components = ["teste-pesquisa", "snk-application", "snk-pesquisa"];
41
+ components.forEach(tagName => { switch (tagName) {
42
+ case "teste-pesquisa":
43
+ if (!customElements.get(tagName)) {
44
+ customElements.define(tagName, TestePesquisa$1);
45
+ }
46
+ break;
47
+ case "snk-application":
48
+ if (!customElements.get(tagName)) {
49
+ defineCustomElement$3();
50
+ }
51
+ break;
52
+ case "snk-pesquisa":
53
+ if (!customElements.get(tagName)) {
54
+ defineCustomElement$2();
55
+ }
56
+ break;
57
+ } });
58
+ }
59
+
60
+ const TestePesquisa = TestePesquisa$1;
61
+ const defineCustomElement = defineCustomElement$1;
62
+
63
+ export { TestePesquisa, defineCustomElement };