@sankhyalabs/sankhyablocks 1.0.5 → 1.0.8

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.
@@ -2,9 +2,10 @@ import { DataUnit } from "@sankhyalabs/core";
2
2
  import ApplicationUtils from "@sankhyalabs/ezui/dist/types/utils/ApplicationUtils";
3
3
  import AppParameterProvider from "./AppParameterProvider";
4
4
  export default class SankhyaAppProvider extends ApplicationUtils {
5
- private static urlParams;
6
- private static dataUnitByEntity;
5
+ private static _urlParams;
6
+ private static _dataUnitByEntity;
7
7
  private static _parameters;
8
+ private static _dataUnitFetcher;
8
9
  static get parameters(): AppParameterProvider;
9
10
  static getResourceID(defaultValue?: string): string;
10
11
  static temOpcional(opcional: string): boolean;
@@ -0,0 +1,10 @@
1
+ import { DataUnit } from "@sankhyalabs/core";
2
+ export default class DataUnitFetcher {
3
+ private templateByQuery;
4
+ constructor();
5
+ private buldTemplates;
6
+ getDataUnit(entityName: string, resourceID: string): DataUnit;
7
+ private loadMetadata;
8
+ private loadData;
9
+ private saveData;
10
+ }
@@ -2,3 +2,4 @@ import SankhyaAppProvider from "./application/SankhyaAppProvider";
2
2
  import DataUnitFetcher from "./http/fetchers/dataunit-fetcher";
3
3
  import ApplicationConfigFetcher from "./http/fetchers/application-config-fetcher";
4
4
  export { SankhyaAppProvider, DataUnitFetcher, ApplicationConfigFetcher };
5
+ export * from "@sankhyalabs/core";
File without changes
File without changes
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@sankhyalabs/sankhyablocks",
3
- "version": "1.0.5",
3
+ "version": "1.0.8",
4
4
  "description": "Projeto para integração do design system ez-ui com as regras de negocio/framework do ERP Sankhya",
5
- "main": "build/index.js",
6
- "types": "build/types/index.d.ts",
5
+ "main": "dist/index.js",
6
+ "types": "dist/types/index.d.ts",
7
7
  "scripts": {
8
8
  "start": "webpack serve --config webpack.config.demo.js",
9
9
  "build": "webpack && tsc",
10
+ "dev": "set isDev=true&& tsc && webpack",
10
11
  "build:demo": "webpack --config webpack.config.demo.js",
11
12
  "test": "jest --silent",
12
13
  "coverage": "npm run test -- --coverage",
@@ -25,6 +26,7 @@
25
26
  "utils"
26
27
  ],
27
28
  "devDependencies": {
29
+ "@sankhyalabs/core": "^1.0.32",
28
30
  "@babel/cli": "^7.17.6",
29
31
  "@babel/core": "^7.17.9",
30
32
  "@babel/plugin-proposal-class-properties": "^7.16.0",
@@ -73,8 +75,7 @@
73
75
  ]
74
76
  },
75
77
  "dependencies": {
76
- "@sankhyalabs/core": "^1.0.31",
77
- "@sankhyalabs/ezui": "^1.1.77",
78
+ "@sankhyalabs/ezui": "^1.1.81",
78
79
  "graphql-request": "^4.2.0"
79
80
  }
80
81
  }
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "noImplicitAny": true,
4
- "outDir": "build/types",
4
+ "outDir": "dist/types",
5
5
  "module": "esnext",
6
6
  "target": "es5",
7
7
  "allowJs": true,