@sankhyalabs/sankhyablocks 1.0.8 → 1.0.12

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.
@@ -3,8 +3,8 @@ export default class AppParameterProvider {
3
3
  private paramFetcher;
4
4
  constructor(resourceID: string);
5
5
  asString(name: string): Promise<string>;
6
- asInteger(name: string): Promise<Number>;
7
- asFloat(name: string): Promise<Number>;
6
+ asInteger(name: string): Promise<number>;
7
+ asFloat(name: string): Promise<number>;
8
8
  asBoolean(name: string): Promise<boolean>;
9
9
  asDate(name: string): Promise<Date>;
10
10
  }
@@ -10,6 +10,6 @@ export default class SankhyaAppProvider extends ApplicationUtils {
10
10
  static getResourceID(defaultValue?: string): string;
11
11
  static temOpcional(opcional: string): boolean;
12
12
  static getAttributeFromHTMLWrapper(attribName: string): string;
13
- static openApp(resourceId: string, pkObject: Map<string, any>): void;
13
+ static openApp(resourceId: string, pkObject: Object): void;
14
14
  static getDataunit(entityName: string, useCache?: boolean): DataUnit;
15
15
  }
@@ -4,8 +4,8 @@ export default class ParametersFetcher {
4
4
  private buldTemplates;
5
5
  getParam(name: string, resourceID: string): Promise<any>;
6
6
  asString(name: string, resourceID: string): Promise<string>;
7
- asInteger(name: string, resourceID: string): Promise<Number>;
8
- asFloat(name: string, resourceID: string): Promise<Number>;
7
+ asInteger(name: string, resourceID: string): Promise<number>;
8
+ asFloat(name: string, resourceID: string): Promise<number>;
9
9
  asBoolean(name: string, resourceID: string): Promise<boolean>;
10
10
  asDate(name: string, resourceID: string): Promise<Date>;
11
11
  getBatchParams(names: Array<string>, resourceID: string): Promise<{}>;
@@ -1,4 +1,4 @@
1
1
  export default class Workspace {
2
2
  static resourceID: any;
3
- static openAppActivity(resourceId: string, pkObject: Map<string, any>): void;
3
+ static openAppActivity(resourceId: string, pkObject: Object): void;
4
4
  }
package/package.json CHANGED
@@ -1,81 +1,81 @@
1
- {
2
- "name": "@sankhyalabs/sankhyablocks",
3
- "version": "1.0.8",
4
- "description": "Projeto para integração do design system ez-ui com as regras de negocio/framework do ERP Sankhya",
5
- "main": "dist/index.js",
6
- "types": "dist/types/index.d.ts",
7
- "scripts": {
8
- "start": "webpack serve --config webpack.config.demo.js",
9
- "build": "webpack && tsc",
10
- "dev": "set isDev=true&& tsc && webpack",
11
- "build:demo": "webpack --config webpack.config.demo.js",
12
- "test": "jest --silent",
13
- "coverage": "npm run test -- --coverage",
14
- "trypublish": "npm publish || true"
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": ""
19
- },
20
- "author": "leonardo.jorge",
21
- "license": "MIT",
22
- "keywords": [
23
- "sankhya",
24
- "blocks",
25
- "utilities",
26
- "utils"
27
- ],
28
- "devDependencies": {
29
- "@sankhyalabs/core": "^1.0.32",
30
- "@babel/cli": "^7.17.6",
31
- "@babel/core": "^7.17.9",
32
- "@babel/plugin-proposal-class-properties": "^7.16.0",
33
- "@babel/plugin-transform-typescript": "^7.16.8",
34
- "@babel/polyfill": "^7.12.1",
35
- "@babel/preset-env": "^7.16.11",
36
- "@types/jest": "^27.4.1",
37
- "@typescript-eslint/eslint-plugin": "^4.32.0",
38
- "@typescript-eslint/parser": "^4.33.0",
39
- "babel-eslint": "^10.1.0",
40
- "babel-loader": "^8.2.5",
41
- "babel-preset-minify": "^0.5.0",
42
- "css-loader": "^6.7.1",
43
- "eslint": "^7.32.0",
44
- "file-loader": "^6.2.0",
45
- "html-webpack-plugin": "^5.5.0",
46
- "jest": "^27.5.1",
47
- "mini-css-extract-plugin": "^2.6.0",
48
- "optimize-css-assets-webpack-plugin": "^6.0.1",
49
- "prettier": "^2.6.2",
50
- "prettier-webpack-plugin": "^1.2.0",
51
- "style-loader": "^3.3.1",
52
- "terser-webpack-plugin": "^5.3.1",
53
- "typescript": "^4.6.3",
54
- "url-loader": "^4.1.1",
55
- "webpack": "^5.72.0",
56
- "webpack-cli": "^4.9.2",
57
- "webpack-dev-server": "4.8.1"
58
- },
59
- "jest": {
60
- "moduleNameMapper": {
61
- "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/scripts/testMock.js",
62
- "\\.(css|less)$": "<rootDir>/scripts/testMock.js"
63
- },
64
- "moduleFileExtensions": [
65
- "web.js",
66
- "js",
67
- "web.ts",
68
- "ts",
69
- "web.tsx",
70
- "tsx",
71
- "json",
72
- "web.jsx",
73
- "jsx",
74
- "node"
75
- ]
76
- },
77
- "dependencies": {
78
- "@sankhyalabs/ezui": "^1.1.81",
79
- "graphql-request": "^4.2.0"
80
- }
81
- }
1
+ {
2
+ "name": "@sankhyalabs/sankhyablocks",
3
+ "version": "1.0.12",
4
+ "description": "Projeto para integração do design system ez-ui com as regras de negocio/framework do ERP Sankhya",
5
+ "main": "dist/index.js",
6
+ "types": "dist/types/index.d.ts",
7
+ "scripts": {
8
+ "start": "webpack serve --config webpack.config.demo.js",
9
+ "build": "webpack && tsc",
10
+ "dev": "set isDev=true&& tsc && webpack",
11
+ "build:demo": "webpack --config webpack.config.demo.js",
12
+ "test": "jest --silent",
13
+ "coverage": "npm run test -- --coverage",
14
+ "trypublish": "npm publish || true"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": ""
19
+ },
20
+ "author": "leonardo.jorge",
21
+ "license": "MIT",
22
+ "keywords": [
23
+ "sankhya",
24
+ "blocks",
25
+ "utilities",
26
+ "utils"
27
+ ],
28
+ "devDependencies": {
29
+ "@babel/cli": "^7.17.6",
30
+ "@babel/core": "^7.17.9",
31
+ "@babel/plugin-proposal-class-properties": "^7.16.0",
32
+ "@babel/plugin-transform-typescript": "^7.16.8",
33
+ "@babel/polyfill": "^7.12.1",
34
+ "@babel/preset-env": "^7.16.11",
35
+ "@sankhyalabs/core": "^1.0.34",
36
+ "@types/jest": "^27.4.1",
37
+ "@typescript-eslint/eslint-plugin": "^4.32.0",
38
+ "@typescript-eslint/parser": "^4.33.0",
39
+ "babel-eslint": "^10.1.0",
40
+ "babel-loader": "^8.2.5",
41
+ "babel-preset-minify": "^0.5.0",
42
+ "css-loader": "^6.7.1",
43
+ "eslint": "^7.32.0",
44
+ "file-loader": "^6.2.0",
45
+ "html-webpack-plugin": "^5.5.0",
46
+ "jest": "^27.5.1",
47
+ "mini-css-extract-plugin": "^2.6.0",
48
+ "optimize-css-assets-webpack-plugin": "^6.0.1",
49
+ "prettier": "^2.6.2",
50
+ "prettier-webpack-plugin": "^1.2.0",
51
+ "style-loader": "^3.3.1",
52
+ "terser-webpack-plugin": "^5.3.1",
53
+ "typescript": "^4.6.3",
54
+ "url-loader": "^4.1.1",
55
+ "webpack": "^5.72.0",
56
+ "webpack-cli": "^4.9.2",
57
+ "webpack-dev-server": "4.8.1"
58
+ },
59
+ "jest": {
60
+ "moduleNameMapper": {
61
+ "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/scripts/testMock.js",
62
+ "\\.(css|less)$": "<rootDir>/scripts/testMock.js"
63
+ },
64
+ "moduleFileExtensions": [
65
+ "web.js",
66
+ "js",
67
+ "web.ts",
68
+ "ts",
69
+ "web.tsx",
70
+ "tsx",
71
+ "json",
72
+ "web.jsx",
73
+ "jsx",
74
+ "node"
75
+ ]
76
+ },
77
+ "dependencies": {
78
+ "@sankhyalabs/ezui": "^1.1.87",
79
+ "graphql-request": "^4.2.0"
80
+ }
81
+ }