@sankhyalabs/sankhyablocks 1.0.12 → 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 -9425
- 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 +32 -70
- 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
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { DataUnit, } from "@sankhyalabs/core";
|
|
2
|
+
import { HttpFetcher } from "../DataFetcher";
|
|
3
|
+
import { gql } from "graphql-request";
|
|
4
|
+
export default class DataUnitFetcher {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.templateByQuery = new Map();
|
|
7
|
+
this.buldTemplates();
|
|
8
|
+
}
|
|
9
|
+
buldTemplates() {
|
|
10
|
+
this.templateByQuery.set("fetchDataUnit", gql `query($name: String!) {
|
|
11
|
+
$queryAlias$: fetchDataUnit(name: $name){
|
|
12
|
+
name
|
|
13
|
+
fields{
|
|
14
|
+
name
|
|
15
|
+
defaultValue
|
|
16
|
+
label
|
|
17
|
+
readOnly
|
|
18
|
+
required
|
|
19
|
+
dataType
|
|
20
|
+
userInterface
|
|
21
|
+
properties{
|
|
22
|
+
name
|
|
23
|
+
value
|
|
24
|
+
}
|
|
25
|
+
dependencies{
|
|
26
|
+
masterFields
|
|
27
|
+
type
|
|
28
|
+
expression
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}`);
|
|
33
|
+
this.templateByQuery.set("fetchData", gql `query($dataunit: String! $first: Int $offset:Int $filter: [Filter!] $sort: [Sort!]) {
|
|
34
|
+
$queryAlias$: fetchDataUnit(name: $dataunit){
|
|
35
|
+
data(first: $first offset: $offset filters: $filter sort: $sort){
|
|
36
|
+
first
|
|
37
|
+
offset
|
|
38
|
+
total
|
|
39
|
+
hasMore
|
|
40
|
+
records{
|
|
41
|
+
id
|
|
42
|
+
fields {
|
|
43
|
+
name
|
|
44
|
+
value
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}`);
|
|
50
|
+
this.templateByQuery.set("saveData", gql `mutation($changes: [Change!]!) {
|
|
51
|
+
$queryAlias$: saveDataUnitChanges(changes: $changes){
|
|
52
|
+
oldId
|
|
53
|
+
id
|
|
54
|
+
fields {
|
|
55
|
+
name
|
|
56
|
+
value
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}`);
|
|
60
|
+
}
|
|
61
|
+
getDataUnit(entityName, resourceID) {
|
|
62
|
+
const dataUnit = new DataUnit(`dd://${entityName}/${resourceID}`);
|
|
63
|
+
dataUnit.metadataLoader = (dataUnit) => this.loadMetadata(dataUnit);
|
|
64
|
+
dataUnit.dataLoader = (dataUnit, sort, filters) => this.loadData(dataUnit, sort, filters);
|
|
65
|
+
dataUnit.saveLoader = (dataUnit, changes) => this.saveData(dataUnit, changes);
|
|
66
|
+
return dataUnit;
|
|
67
|
+
}
|
|
68
|
+
loadMetadata(dataUnit) {
|
|
69
|
+
return new Promise((resolve, reject) => {
|
|
70
|
+
HttpFetcher.get()
|
|
71
|
+
.callGraphQL({
|
|
72
|
+
values: { name: dataUnit.name },
|
|
73
|
+
query: this.templateByQuery.get("fetchDataUnit"),
|
|
74
|
+
})
|
|
75
|
+
.then((resp) => {
|
|
76
|
+
var _a;
|
|
77
|
+
const metadata = {
|
|
78
|
+
name: resp.name,
|
|
79
|
+
label: resp.name,
|
|
80
|
+
fields: [],
|
|
81
|
+
};
|
|
82
|
+
(_a = resp.fields) === null || _a === void 0 ? void 0 : _a.forEach((source) => {
|
|
83
|
+
let properties = undefined;
|
|
84
|
+
if (Array.isArray(source.properties)) {
|
|
85
|
+
properties = {};
|
|
86
|
+
source.properties.forEach((prop) => (properties[prop.name] = prop.value));
|
|
87
|
+
}
|
|
88
|
+
metadata.fields.push(Object.assign(Object.assign({}, source), { properties }));
|
|
89
|
+
});
|
|
90
|
+
resolve(metadata);
|
|
91
|
+
})
|
|
92
|
+
.catch((error) => {
|
|
93
|
+
reject(error);
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
loadData(dataUnit, sort, filters) {
|
|
98
|
+
return new Promise((resolve, reject) => {
|
|
99
|
+
HttpFetcher.get()
|
|
100
|
+
.callGraphQL({
|
|
101
|
+
values: { dataunit: dataUnit.name, sort, filters },
|
|
102
|
+
query: this.templateByQuery.get("fetchData"),
|
|
103
|
+
})
|
|
104
|
+
.then((resp) => {
|
|
105
|
+
const result = resp.data;
|
|
106
|
+
const dataUnitRecords = [];
|
|
107
|
+
result.records.forEach((responseRecord) => {
|
|
108
|
+
const duRecord = { __record__id__: responseRecord.id };
|
|
109
|
+
responseRecord.fields.forEach(({ name, value }) => {
|
|
110
|
+
duRecord[name] = dataUnit.valueFromString(name, value);
|
|
111
|
+
});
|
|
112
|
+
dataUnitRecords.push(duRecord);
|
|
113
|
+
});
|
|
114
|
+
resolve(dataUnitRecords);
|
|
115
|
+
})
|
|
116
|
+
.catch((error) => {
|
|
117
|
+
reject(error);
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
saveData(dataUnit, duChanges) {
|
|
122
|
+
const changes = duChanges.map((change) => {
|
|
123
|
+
const { dataUnit: changeDU, record, updatingFields, operation } = change;
|
|
124
|
+
const parsedUpdatingFields = Object.entries(updatingFields).map(([fieldName, value]) => {
|
|
125
|
+
if (value) {
|
|
126
|
+
value = value.toString();
|
|
127
|
+
}
|
|
128
|
+
return { fieldName, value };
|
|
129
|
+
});
|
|
130
|
+
return { dataUnit: changeDU, updatingFields: parsedUpdatingFields, operation, recordId: record.__record__id__ };
|
|
131
|
+
});
|
|
132
|
+
return new Promise((resolve, reject) => {
|
|
133
|
+
HttpFetcher.get()
|
|
134
|
+
.callGraphQL({
|
|
135
|
+
values: { changes: changes },
|
|
136
|
+
query: this.templateByQuery.get("saveData"),
|
|
137
|
+
})
|
|
138
|
+
.then((resp) => {
|
|
139
|
+
const dataUnitRecords = [];
|
|
140
|
+
resp === null || resp === void 0 ? void 0 : resp.forEach((responseRecord) => {
|
|
141
|
+
const duRecord = { __record__id__: responseRecord.id };
|
|
142
|
+
if (responseRecord.oldId) {
|
|
143
|
+
duRecord.__old__id__ = responseRecord.oldId;
|
|
144
|
+
}
|
|
145
|
+
responseRecord.fields.forEach(({ name, value }) => {
|
|
146
|
+
duRecord[name] = dataUnit.valueFromString(name, value);
|
|
147
|
+
});
|
|
148
|
+
dataUnitRecords.push(duRecord);
|
|
149
|
+
});
|
|
150
|
+
resolve(dataUnitRecords);
|
|
151
|
+
})
|
|
152
|
+
.catch((error) => {
|
|
153
|
+
reject(error);
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { gql } from "graphql-request";
|
|
2
|
+
import { DateUtils, StringUtils } from "@sankhyalabs/core";
|
|
3
|
+
import { HttpFetcher } from "../DataFetcher";
|
|
4
|
+
export default class ParametersFetcher {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.templateByQuery = new Map();
|
|
7
|
+
this.buldTemplates();
|
|
8
|
+
}
|
|
9
|
+
buldTemplates() {
|
|
10
|
+
this.templateByQuery.set("fetchParam", gql `query($name: String!) {
|
|
11
|
+
$queryAlias$: fetchResource(name: $name){
|
|
12
|
+
name
|
|
13
|
+
resource
|
|
14
|
+
}
|
|
15
|
+
}`);
|
|
16
|
+
}
|
|
17
|
+
async getParam(name, resourceID) {
|
|
18
|
+
const completPath = `param://${resourceID}?params=${window.btoa(name)}`;
|
|
19
|
+
return HttpFetcher.get().callGraphQL({
|
|
20
|
+
values: { name: completPath },
|
|
21
|
+
query: this.templateByQuery.get("fetchParam"),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async asString(name, resourceID) {
|
|
25
|
+
const paramArr = await this.getParam(name, resourceID);
|
|
26
|
+
return this.getValue(paramArr);
|
|
27
|
+
}
|
|
28
|
+
async asInteger(name, resourceID) {
|
|
29
|
+
const paramArr = await this.getParam(name, resourceID);
|
|
30
|
+
return parseInt(this.getValue(paramArr));
|
|
31
|
+
}
|
|
32
|
+
async asFloat(name, resourceID) {
|
|
33
|
+
const paramArr = await this.getParam(name, resourceID);
|
|
34
|
+
return parseFloat(this.getValue(paramArr));
|
|
35
|
+
}
|
|
36
|
+
async asBoolean(name, resourceID) {
|
|
37
|
+
const paramArr = await this.getParam(name, resourceID);
|
|
38
|
+
return this.getValue(paramArr) == "S";
|
|
39
|
+
}
|
|
40
|
+
async asDate(name, resourceID) {
|
|
41
|
+
const paramArr = await this.getParam(name, resourceID);
|
|
42
|
+
return DateUtils.strToDate(this.getValue(paramArr));
|
|
43
|
+
}
|
|
44
|
+
async getBatchParams(names, resourceID) {
|
|
45
|
+
const paramArr = await this.getParam(names.join(","), resourceID);
|
|
46
|
+
//TODO: try to typed params val?
|
|
47
|
+
const response = {};
|
|
48
|
+
paramArr.forEach((param) => (response[param.name] = param.resource));
|
|
49
|
+
return response;
|
|
50
|
+
}
|
|
51
|
+
getValue(obj = {}) {
|
|
52
|
+
if (Array.isArray(obj) && obj.length > 0) {
|
|
53
|
+
obj = obj[0];
|
|
54
|
+
}
|
|
55
|
+
if (StringUtils.isEmpty(obj.resource))
|
|
56
|
+
return "";
|
|
57
|
+
return obj.resource;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export class LoadStateManager {
|
|
2
|
+
constructor(appName = 'snk-application') {
|
|
3
|
+
this._state = LoadStatus.DOM_LOADED;
|
|
4
|
+
this._application = document.querySelector(appName);
|
|
5
|
+
if (this._application === null) {
|
|
6
|
+
console.warn(`application ${appName} not found, then state is loadded`);
|
|
7
|
+
this.onStatusChange(LoadStatus.LOADED);
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
this._application.addEventListener('applicationLoaded', () => this.onStatusChange(LoadStatus.LOADED));
|
|
11
|
+
this._application.addEventListener('applicationLoading', () => this.onStatusChange(LoadStatus.PRE_INITIALIZE));
|
|
12
|
+
this.onStatusChange(LoadStatus.PRE_INITIALIZE);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
async onStatusChange(newStatus) {
|
|
16
|
+
this._state = newStatus;
|
|
17
|
+
(LoadStateManager.listenersByType.get(newStatus) || []).forEach((listener) => {
|
|
18
|
+
listener();
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
addListener(status, listener) {
|
|
22
|
+
var _a;
|
|
23
|
+
if (!LoadStateManager.listenersByType.has(status)) {
|
|
24
|
+
LoadStateManager.listenersByType.set(status, []);
|
|
25
|
+
}
|
|
26
|
+
(_a = LoadStateManager.listenersByType.get(status)) === null || _a === void 0 ? void 0 : _a.push(listener);
|
|
27
|
+
if (status === this._state) {
|
|
28
|
+
listener();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
onPreInitialize(listener) {
|
|
32
|
+
this.addListener(LoadStatus.PRE_INITIALIZE, listener);
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
onLoaded(listener) {
|
|
36
|
+
this.addListener(LoadStatus.LOADED, listener);
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
getStatus() {
|
|
40
|
+
return this._state;
|
|
41
|
+
}
|
|
42
|
+
isPreInitialize() {
|
|
43
|
+
return this._state === LoadStatus.PRE_INITIALIZE;
|
|
44
|
+
}
|
|
45
|
+
isLoaded() {
|
|
46
|
+
return this._state === LoadStatus.LOADED;
|
|
47
|
+
}
|
|
48
|
+
static get(type = LoadType.APP_LOAD) {
|
|
49
|
+
if (!LoadStateManager.instanceByStatus.has(type)) {
|
|
50
|
+
LoadStateManager.instanceByStatus.set(type, new LoadStateManager());
|
|
51
|
+
}
|
|
52
|
+
return LoadStateManager.instanceByStatus.get(type) || new LoadStateManager();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
LoadStateManager.instanceByStatus = new Map();
|
|
56
|
+
LoadStateManager.listenersByType = new Map();
|
|
57
|
+
export var LoadStatus;
|
|
58
|
+
(function (LoadStatus) {
|
|
59
|
+
LoadStatus["DOM_LOADED"] = "DOM_LOADED";
|
|
60
|
+
LoadStatus["PRE_INITIALIZE"] = "PRE_INITIALIZE";
|
|
61
|
+
LoadStatus["LOADED"] = "LOADED";
|
|
62
|
+
})(LoadStatus || (LoadStatus = {}));
|
|
63
|
+
export var LoadType;
|
|
64
|
+
(function (LoadType) {
|
|
65
|
+
LoadType["APP_LOAD"] = "APP_LOAD";
|
|
66
|
+
})(LoadType || (LoadType = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default class UrlUtils {
|
|
2
|
+
static getQueryParams(queryString) {
|
|
3
|
+
const params = new Map();
|
|
4
|
+
const re = /[?&]?([^=]+)=([^&]*)/g;
|
|
5
|
+
let tokens;
|
|
6
|
+
//Necessário por causa da tela Histórico Padrão que possui resourceID com acento
|
|
7
|
+
queryString = window.unescape(queryString);
|
|
8
|
+
queryString = queryString.split("+").join(" ");
|
|
9
|
+
while ((tokens = re.exec(queryString))) {
|
|
10
|
+
params.set(window.decodeURIComponent(tokens[1]), tokens[2]);
|
|
11
|
+
}
|
|
12
|
+
//Inserimos a urlBase no params.
|
|
13
|
+
params.set("urlBase", this.getUrlBase());
|
|
14
|
+
if (window["moduleID"] && window["URIServiceBroker"]) {
|
|
15
|
+
params.set("moduleID", window["moduleID"]);
|
|
16
|
+
params.set("URIServiceBroker", window["URIServiceBroker"]);
|
|
17
|
+
}
|
|
18
|
+
return params;
|
|
19
|
+
}
|
|
20
|
+
static getUrlBase() {
|
|
21
|
+
return `${location.protocol}"//"${location.hostname}${location.port ? ":" + location.port : ""}`;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default class ApplicationUtils {
|
|
2
|
+
static async showDialog(title, message, icon = null, confirm, critical = false) {
|
|
3
|
+
return new Promise(resolve => {
|
|
4
|
+
let dialog = document.querySelector("ez-dialog");
|
|
5
|
+
if (!dialog) {
|
|
6
|
+
dialog = document.createElement("ez-dialog");
|
|
7
|
+
window.document.body.appendChild(dialog);
|
|
8
|
+
}
|
|
9
|
+
dialog.show(title, message, critical, confirm, icon).then(ok => resolve(ok));
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
static async alert(title, message, icon = null) {
|
|
13
|
+
return ApplicationUtils.showDialog(title, message, icon, false, false);
|
|
14
|
+
}
|
|
15
|
+
static async error(title, message, icon = null) {
|
|
16
|
+
return ApplicationUtils.showDialog(title, message, icon, false, true);
|
|
17
|
+
}
|
|
18
|
+
static async confirm(title, message, icon = null, critical = false) {
|
|
19
|
+
return ApplicationUtils.showDialog(title, message, icon, true, critical);
|
|
20
|
+
}
|
|
21
|
+
static async info(message) {
|
|
22
|
+
let toast = document.querySelector("ez-toast");
|
|
23
|
+
if (!toast) {
|
|
24
|
+
toast = document.createElement("ez-toast");
|
|
25
|
+
window.document.body.appendChild(toast);
|
|
26
|
+
}
|
|
27
|
+
toast.message = message;
|
|
28
|
+
toast.fadeTime = 4000;
|
|
29
|
+
toast.show();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* sankhyablocks custom elements */
|
|
2
|
+
|
|
3
|
+
import type { Components, JSX } from "../types/components";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Used to manually set the base path where assets can be found.
|
|
7
|
+
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
8
|
+
* such as "setAssetPath(import.meta.url)". Other options include
|
|
9
|
+
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
10
|
+
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
11
|
+
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
12
|
+
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
13
|
+
* will have to ensure the static assets are copied to its build directory.
|
|
14
|
+
*/
|
|
15
|
+
export declare const setAssetPath: (path: string) => void;
|
|
16
|
+
|
|
17
|
+
export interface SetPlatformOptions {
|
|
18
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
19
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
20
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
23
|
+
|
|
24
|
+
export type { Components, JSX };
|
|
25
|
+
|
|
26
|
+
export * from '../types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SnkApplication extends Components.SnkApplication, HTMLElement {}
|
|
4
|
+
export const SnkApplication: {
|
|
5
|
+
prototype: SnkApplication;
|
|
6
|
+
new (): SnkApplication;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|