@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.
- package/LICENSE +21 -0
- package/README.md +61 -26
- package/dist/cjs/index-d3250310.js +728 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/sankhyablocks.cjs.js +19 -0
- package/dist/cjs/snk-application.cjs.entry.js +7872 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/snk-application/snk-application.css +5 -0
- package/dist/collection/components/snk-application/snk-application.js +450 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +158 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js +23 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +157 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +2 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +2 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +59 -0
- package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js +66 -0
- package/dist/collection/lib/utils/urlutils.js +23 -0
- package/dist/collection/lib/workspace/workspace.js +7 -0
- package/dist/collection/temp/ApplicationUtils.js +31 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/components/snk-application.d.ts +11 -0
- package/dist/components/snk-application.js +7900 -0
- package/dist/esm/index-781079ed.js +702 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/sankhyablocks.js +17 -0
- package/dist/esm/snk-application.entry.js +7868 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -17138
- package/dist/sankhyablocks/index.esm.js +0 -0
- package/dist/sankhyablocks/p-080303d6.entry.js +53 -0
- package/dist/sankhyablocks/p-83177bdc.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -0
- package/dist/types/components/snk-application/snk-application.d.ts +38 -0
- package/dist/types/components.d.ts +60 -0
- package/dist/types/index.d.ts +1 -5
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +15 -0
- package/dist/types/lib/http/data-fetcher/fetchers/application-config-fetcher.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +10 -0
- package/dist/types/{http → lib/http/data-fetcher}/fetchers/form-config-fetcher.d.ts +0 -0
- package/dist/types/{http → lib/http/data-fetcher}/fetchers/grid-config-fetcher.d.ts +0 -0
- package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +13 -0
- package/dist/types/lib/http/data-fetcher/state/LoadStateManager.d.ts +23 -0
- package/dist/types/lib/utils/urlutils.d.ts +4 -0
- package/dist/types/lib/workspace/workspace.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/temp/ApplicationUtils.d.ts +7 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +43 -81
- package/dist/index.js.map +0 -1
- package/dist/types/application/AppParameterProvider.d.ts +0 -10
- package/dist/types/application/SankhyaAppProvider.d.ts +0 -15
- package/dist/types/http/fetchers/application-config-fetcher.d.ts +0 -6
- package/dist/types/http/fetchers/dataunit-fetcher.d.ts +0 -10
- package/dist/types/http/fetchers/parameters-fecher.d.ts +0 -13
- package/dist/types/utils/urlutils.d.ts +0 -4
- package/dist/types/workspace/workspace.d.ts +0 -4
- package/tsconfig.json +0 -17
- package/webpack.config.demo.js +0 -47
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export default class AppParameterProvider {
|
|
2
|
-
private resourceID;
|
|
3
|
-
private paramFetcher;
|
|
4
|
-
constructor(resourceID: string);
|
|
5
|
-
asString(name: string): Promise<string>;
|
|
6
|
-
asInteger(name: string): Promise<number>;
|
|
7
|
-
asFloat(name: string): Promise<number>;
|
|
8
|
-
asBoolean(name: string): Promise<boolean>;
|
|
9
|
-
asDate(name: string): Promise<Date>;
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DataUnit } from "@sankhyalabs/core";
|
|
2
|
-
import ApplicationUtils from "@sankhyalabs/ezui/dist/types/utils/ApplicationUtils";
|
|
3
|
-
import AppParameterProvider from "./AppParameterProvider";
|
|
4
|
-
export default class SankhyaAppProvider extends ApplicationUtils {
|
|
5
|
-
private static _urlParams;
|
|
6
|
-
private static _dataUnitByEntity;
|
|
7
|
-
private static _parameters;
|
|
8
|
-
private static _dataUnitFetcher;
|
|
9
|
-
static get parameters(): AppParameterProvider;
|
|
10
|
-
static getResourceID(defaultValue?: string): string;
|
|
11
|
-
static temOpcional(opcional: string): boolean;
|
|
12
|
-
static getAttributeFromHTMLWrapper(attribName: string): string;
|
|
13
|
-
static openApp(resourceId: string, pkObject: Object): void;
|
|
14
|
-
static getDataunit(entityName: string, useCache?: boolean): DataUnit;
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default class ParametersFetcher {
|
|
2
|
-
private templateByQuery;
|
|
3
|
-
constructor();
|
|
4
|
-
private buldTemplates;
|
|
5
|
-
getParam(name: string, resourceID: string): Promise<any>;
|
|
6
|
-
asString(name: string, resourceID: string): Promise<string>;
|
|
7
|
-
asInteger(name: string, resourceID: string): Promise<number>;
|
|
8
|
-
asFloat(name: string, resourceID: string): Promise<number>;
|
|
9
|
-
asBoolean(name: string, resourceID: string): Promise<boolean>;
|
|
10
|
-
asDate(name: string, resourceID: string): Promise<Date>;
|
|
11
|
-
getBatchParams(names: Array<string>, resourceID: string): Promise<{}>;
|
|
12
|
-
private getValue;
|
|
13
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"noImplicitAny": true,
|
|
4
|
-
"outDir": "dist/types",
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"target": "es5",
|
|
7
|
-
"allowJs": true,
|
|
8
|
-
"sourceMap": true,
|
|
9
|
-
"declaration": true,
|
|
10
|
-
"emitDeclarationOnly": true,
|
|
11
|
-
"suppressImplicitAnyIndexErrors": true,
|
|
12
|
-
"lib": ["es2018", "dom"],
|
|
13
|
-
"moduleResolution": "node",
|
|
14
|
-
},
|
|
15
|
-
"include": ["src/lib"],
|
|
16
|
-
"exclude": ["node_modules/@types/webpack", "src/lib/**/tests"],
|
|
17
|
-
}
|
package/webpack.config.demo.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
2
|
-
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
mode: "development",
|
|
6
|
-
devtool: 'cheap-module-source-map',
|
|
7
|
-
entry: './src/demo/index.ts',
|
|
8
|
-
output: {
|
|
9
|
-
filename: 'index.js'
|
|
10
|
-
},
|
|
11
|
-
optimization: {
|
|
12
|
-
minimize: false,
|
|
13
|
-
},
|
|
14
|
-
devServer: {
|
|
15
|
-
open: true,
|
|
16
|
-
hot: true,
|
|
17
|
-
host: "localhost",
|
|
18
|
-
port: 9000
|
|
19
|
-
},
|
|
20
|
-
module: {
|
|
21
|
-
rules: [
|
|
22
|
-
{
|
|
23
|
-
test: /\.(m|j|t)s$/,
|
|
24
|
-
exclude: /(node_modules|bower_components)/,
|
|
25
|
-
use: {
|
|
26
|
-
loader: 'babel-loader'
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
test: /\.(sa|sc|c)ss$/,
|
|
31
|
-
use: [
|
|
32
|
-
MiniCssExtractPlugin.loader,
|
|
33
|
-
{ loader: "css-loader", options: { sourceMap: true } },
|
|
34
|
-
],
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
plugins: [
|
|
39
|
-
new MiniCssExtractPlugin({
|
|
40
|
-
filename: 'css/index.css'
|
|
41
|
-
}),
|
|
42
|
-
new HtmlWebpackPlugin(),
|
|
43
|
-
],
|
|
44
|
-
resolve: {
|
|
45
|
-
extensions: ['.ts', '.js', '.json']
|
|
46
|
-
}
|
|
47
|
-
};
|