@sankhyalabs/sankhyablocks 1.0.9 → 1.1.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.
Files changed (73) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -26
  3. package/dist/cjs/index-d3250310.js +728 -0
  4. package/dist/cjs/index.cjs.js +2 -0
  5. package/dist/cjs/loader.cjs.js +21 -0
  6. package/dist/cjs/sankhyablocks.cjs.js +19 -0
  7. package/dist/cjs/snk-application.cjs.entry.js +7872 -0
  8. package/dist/collection/collection-manifest.json +12 -0
  9. package/dist/collection/components/snk-application/snk-application.css +5 -0
  10. package/dist/collection/components/snk-application/snk-application.js +450 -0
  11. package/dist/collection/index.js +1 -0
  12. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +158 -0
  13. package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js +23 -0
  14. package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +157 -0
  15. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +2 -0
  16. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +2 -0
  17. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +59 -0
  18. package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js +66 -0
  19. package/dist/collection/lib/utils/urlutils.js +23 -0
  20. package/dist/collection/lib/workspace/workspace.js +7 -0
  21. package/dist/collection/temp/ApplicationUtils.js +31 -0
  22. package/dist/components/index.d.ts +26 -0
  23. package/dist/components/index.js +1 -0
  24. package/dist/components/snk-application.d.ts +11 -0
  25. package/dist/components/snk-application.js +7900 -0
  26. package/dist/esm/index-781079ed.js +702 -0
  27. package/dist/esm/index.js +1 -0
  28. package/dist/esm/loader.js +17 -0
  29. package/dist/esm/polyfills/core-js.js +11 -0
  30. package/dist/esm/polyfills/css-shim.js +1 -0
  31. package/dist/esm/polyfills/dom.js +79 -0
  32. package/dist/esm/polyfills/es5-html-element.js +1 -0
  33. package/dist/esm/polyfills/index.js +34 -0
  34. package/dist/esm/polyfills/system.js +6 -0
  35. package/dist/esm/sankhyablocks.js +17 -0
  36. package/dist/esm/snk-application.entry.js +7868 -0
  37. package/dist/index.cjs.js +1 -0
  38. package/dist/index.js +1 -17138
  39. package/dist/sankhyablocks/index.esm.js +0 -0
  40. package/dist/sankhyablocks/p-080303d6.entry.js +53 -0
  41. package/dist/sankhyablocks/p-83177bdc.js +1 -0
  42. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -0
  43. package/dist/types/components/snk-application/snk-application.d.ts +38 -0
  44. package/dist/types/components.d.ts +60 -0
  45. package/dist/types/index.d.ts +1 -5
  46. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +15 -0
  47. package/dist/types/lib/http/data-fetcher/fetchers/application-config-fetcher.d.ts +6 -0
  48. package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +10 -0
  49. package/dist/types/{http → lib/http/data-fetcher}/fetchers/form-config-fetcher.d.ts +0 -0
  50. package/dist/types/{http → lib/http/data-fetcher}/fetchers/grid-config-fetcher.d.ts +0 -0
  51. package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +13 -0
  52. package/dist/types/lib/http/data-fetcher/state/LoadStateManager.d.ts +23 -0
  53. package/dist/types/lib/utils/urlutils.d.ts +4 -0
  54. package/dist/types/lib/workspace/workspace.d.ts +4 -0
  55. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  56. package/dist/types/temp/ApplicationUtils.d.ts +7 -0
  57. package/loader/cdn.js +3 -0
  58. package/loader/index.cjs.js +3 -0
  59. package/loader/index.d.ts +12 -0
  60. package/loader/index.es2017.js +3 -0
  61. package/loader/index.js +4 -0
  62. package/loader/package.json +10 -0
  63. package/package.json +43 -81
  64. package/dist/index.js.map +0 -1
  65. package/dist/types/application/AppParameterProvider.d.ts +0 -10
  66. package/dist/types/application/SankhyaAppProvider.d.ts +0 -15
  67. package/dist/types/http/fetchers/application-config-fetcher.d.ts +0 -6
  68. package/dist/types/http/fetchers/dataunit-fetcher.d.ts +0 -10
  69. package/dist/types/http/fetchers/parameters-fecher.d.ts +0 -13
  70. package/dist/types/utils/urlutils.d.ts +0 -4
  71. package/dist/types/workspace/workspace.d.ts +0 -4
  72. package/tsconfig.json +0 -17
  73. package/webpack.config.demo.js +0 -47
@@ -0,0 +1,7 @@
1
+ export default class ApplicationUtils {
2
+ private static showDialog;
3
+ static alert(title: string, message: string, icon?: string): Promise<boolean>;
4
+ static error(title: string, message: string, icon?: string): Promise<boolean>;
5
+ static confirm(title: string, message: string, icon?: string, critical?: boolean): Promise<boolean>;
6
+ static info(message: string): Promise<void>;
7
+ }
package/loader/cdn.js ADDED
@@ -0,0 +1,3 @@
1
+
2
+ module.exports = require('../dist/cjs/loader.cjs.js');
3
+ module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -0,0 +1,3 @@
1
+
2
+ module.exports = require('../dist/cjs/loader.cjs.js');
3
+ module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -0,0 +1,12 @@
1
+ export * from '../dist/types/components';
2
+ export interface CustomElementsDefineOptions {
3
+ exclude?: string[];
4
+ resourcesUrl?: string;
5
+ syncQueue?: boolean;
6
+ jmp?: (c: Function) => any;
7
+ raf?: (c: FrameRequestCallback) => number;
8
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
9
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
10
+ }
11
+ export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
12
+ export declare function applyPolyfills(): Promise<void>;
@@ -0,0 +1,3 @@
1
+
2
+ export * from '../dist/esm/polyfills/index.js';
3
+ export * from '../dist/esm/loader.js';
@@ -0,0 +1,4 @@
1
+
2
+ (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
3
+ export * from '../dist/esm/polyfills/index.js';
4
+ export * from '../dist/esm/loader.js';
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "sankhyablocks-loader",
3
+ "typings": "./index.d.ts",
4
+ "module": "./index.js",
5
+ "main": "./index.cjs.js",
6
+ "jsnext:main": "./index.es2017.js",
7
+ "es2015": "./index.es2017.js",
8
+ "es2017": "./index.es2017.js",
9
+ "unpkg": "./cdn.js"
10
+ }
package/package.json CHANGED
@@ -1,81 +1,43 @@
1
- {
2
- "name": "@sankhyalabs/sankhyablocks",
3
- "version": "1.0.9",
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.1.12",
4
+ "description": "Stencil Component Starter",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.js",
7
+ "es2015": "dist/esm/index.mjs",
8
+ "es2017": "dist/esm/index.mjs",
9
+ "types": "dist/types/index.d.ts",
10
+ "collection": "dist/collection/collection-manifest.json",
11
+ "collection:main": "dist/collection/index.js",
12
+ "unpkg": "dist/sankhyablocks/sankhyablocks.esm.js",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/ionic-team/stencil-component-starter.git"
16
+ },
17
+ "files": [
18
+ "dist/",
19
+ "loader/"
20
+ ],
21
+ "scripts": {
22
+ "build": "stencil build --docs",
23
+ "start": "stencil build --dev --watch --serve",
24
+ "test": "stencil test --spec --e2e",
25
+ "test.watch": "stencil test --spec --e2e --watchAll",
26
+ "generate": "stencil generate",
27
+ "link": "node link.js"
28
+ },
29
+ "dependencies": {
30
+ "@sankhyalabs/core": "^1.0.34",
31
+ "@sankhyalabs/ezui": "^1.1.86",
32
+ "@stencil/core": "^2.13.0",
33
+ "@stencil/react-output-target": "^0.3.1",
34
+ "graphql-request": "^4.2.0"
35
+ },
36
+ "devDependencies": {
37
+ "@types/jest": "^27.0.3",
38
+ "jest": "^27.4.5",
39
+ "jest-cli": "^27.4.5",
40
+ "puppeteer": "^10.0.0"
41
+ },
42
+ "license": "MIT"
43
+ }