@sankhyalabs/sankhyablocks 1.0.12 → 1.1.0

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.
@@ -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,6 +0,0 @@
1
- export default class ApplicationConfigFetcher {
2
- private templateByQuery;
3
- constructor();
4
- private buldTemplates;
5
- getResource(name: string, resourceID: string): Promise<any>;
6
- }
@@ -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,2 +0,0 @@
1
- export declare class FormConfigFetcher {
2
- }
@@ -1,2 +0,0 @@
1
- export declare class GridConfigFetcher {
2
- }
@@ -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
- }
@@ -1,5 +0,0 @@
1
- import SankhyaAppProvider from "./application/SankhyaAppProvider";
2
- import DataUnitFetcher from "./http/fetchers/dataunit-fetcher";
3
- import ApplicationConfigFetcher from "./http/fetchers/application-config-fetcher";
4
- export { SankhyaAppProvider, DataUnitFetcher, ApplicationConfigFetcher };
5
- export * from "@sankhyalabs/core";
@@ -1,4 +0,0 @@
1
- export default class UrlUtils {
2
- static getQueryParams(queryString: string): Map<string, any>;
3
- static getUrlBase(): string;
4
- }
@@ -1,4 +0,0 @@
1
- export default class Workspace {
2
- static resourceID: any;
3
- static openAppActivity(resourceId: string, pkObject: Object): void;
4
- }
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
- }
@@ -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
- };