@sankhyalabs/sankhyablocks 1.2.0 → 1.3.2

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 (90) hide show
  1. package/dist/cjs/index-4720dab8.js +735 -0
  2. package/dist/cjs/index.cjs.js +2 -0
  3. package/dist/cjs/loader.cjs.js +21 -0
  4. package/dist/cjs/sankhyablocks.cjs.js +19 -0
  5. package/dist/cjs/snk-application.cjs.entry.js +7065 -0
  6. package/dist/collection/collection-manifest.json +18 -0
  7. package/dist/collection/components/snk-application/snk-application.css +5 -0
  8. package/dist/collection/components/snk-application/snk-application.js +492 -0
  9. package/dist/collection/index.js +1 -0
  10. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +158 -0
  11. package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js +23 -0
  12. package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +188 -0
  13. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +25 -0
  14. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +2 -0
  15. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +59 -0
  16. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +30 -0
  17. package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js +66 -0
  18. package/dist/collection/lib/utils/pesquisa.js +16 -0
  19. package/dist/collection/lib/utils/urlutils.js +23 -0
  20. package/dist/collection/lib/workspace/workspace.js +7 -0
  21. package/dist/components/index.d.ts +26 -0
  22. package/dist/components/index.js +1 -0
  23. package/dist/components/snk-application.d.ts +11 -0
  24. package/dist/components/snk-application.js +7094 -0
  25. package/dist/esm/index-72d4e2e0.js +709 -0
  26. package/dist/esm/index.js +1 -0
  27. package/dist/esm/loader.js +17 -0
  28. package/dist/esm/polyfills/core-js.js +11 -0
  29. package/dist/esm/polyfills/css-shim.js +1 -0
  30. package/dist/esm/polyfills/dom.js +79 -0
  31. package/dist/esm/polyfills/es5-html-element.js +1 -0
  32. package/dist/esm/polyfills/index.js +34 -0
  33. package/dist/esm/polyfills/system.js +6 -0
  34. package/dist/esm/sankhyablocks.js +17 -0
  35. package/dist/esm/snk-application.entry.js +7061 -0
  36. package/dist/index.cjs.js +1 -0
  37. package/dist/index.js +1 -0
  38. package/dist/sankhyablocks/index.esm.js +0 -0
  39. package/dist/sankhyablocks/p-76b95007.entry.js +57 -0
  40. package/dist/sankhyablocks/p-a33afc3b.js +2 -0
  41. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -0
  42. package/dist/types/components/snk-application/snk-application.d.ts +44 -0
  43. package/dist/types/components.d.ts +66 -0
  44. package/dist/types/index.d.ts +1 -0
  45. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +15 -0
  46. package/dist/types/lib/http/data-fetcher/fetchers/application-config-fetcher.d.ts +6 -0
  47. package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +12 -0
  48. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +5 -0
  49. package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +2 -0
  50. package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +13 -0
  51. package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +6 -0
  52. package/dist/types/lib/http/data-fetcher/state/LoadStateManager.d.ts +23 -0
  53. package/dist/types/lib/utils/pesquisa.d.ts +2 -0
  54. package/dist/types/lib/utils/urlutils.d.ts +4 -0
  55. package/dist/types/lib/workspace/workspace.d.ts +4 -0
  56. package/dist/types/stencil-public-runtime.d.ts +1565 -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 +9 -36
  64. package/react/components.d.ts +3 -0
  65. package/react/components.js +6 -0
  66. package/react/components.js.map +1 -0
  67. package/react/react-component-lib/createComponent.d.ts +10 -0
  68. package/react/react-component-lib/createComponent.js +59 -0
  69. package/react/react-component-lib/createComponent.js.map +1 -0
  70. package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
  71. package/react/react-component-lib/createOverlayComponent.js +89 -0
  72. package/react/react-component-lib/createOverlayComponent.js.map +1 -0
  73. package/react/react-component-lib/index.d.ts +2 -0
  74. package/react/react-component-lib/index.js +3 -0
  75. package/react/react-component-lib/index.js.map +1 -0
  76. package/react/react-component-lib/interfaces.d.ts +29 -0
  77. package/react/react-component-lib/interfaces.js +1 -0
  78. package/react/react-component-lib/interfaces.js.map +1 -0
  79. package/react/react-component-lib/utils/attachProps.d.ts +12 -0
  80. package/react/react-component-lib/utils/attachProps.js +96 -0
  81. package/react/react-component-lib/utils/attachProps.js.map +1 -0
  82. package/react/react-component-lib/utils/case.d.ts +2 -0
  83. package/react/react-component-lib/utils/case.js +7 -0
  84. package/react/react-component-lib/utils/case.js.map +1 -0
  85. package/react/react-component-lib/utils/dev.d.ts +2 -0
  86. package/react/react-component-lib/utils/dev.js +13 -0
  87. package/react/react-component-lib/utils/dev.js.map +1 -0
  88. package/react/react-component-lib/utils/index.d.ts +7 -0
  89. package/react/react-component-lib/utils/index.js +21 -0
  90. package/react/react-component-lib/utils/index.js.map +1 -0
@@ -0,0 +1,188 @@
1
+ import { DataUnit, ChangeOperation, } 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
+ dataUnit.removeLoader = (dataUnit, recordIds) => this.removeRecords(dataUnit, recordIds);
67
+ return dataUnit;
68
+ }
69
+ loadMetadata(dataUnit) {
70
+ return new Promise((resolve, reject) => {
71
+ HttpFetcher.get()
72
+ .callGraphQL({
73
+ values: { name: dataUnit.name },
74
+ query: this.templateByQuery.get("fetchDataUnit"),
75
+ })
76
+ .then((resp) => {
77
+ var _a;
78
+ const metadata = {
79
+ name: resp.name,
80
+ label: resp.name,
81
+ fields: [],
82
+ };
83
+ (_a = resp.fields) === null || _a === void 0 ? void 0 : _a.forEach((source) => {
84
+ let properties = undefined;
85
+ if (Array.isArray(source.properties)) {
86
+ properties = {};
87
+ source.properties.forEach((prop) => (properties[prop.name] = prop.value));
88
+ }
89
+ metadata.fields.push(Object.assign(Object.assign({}, source), { properties }));
90
+ });
91
+ resolve(metadata);
92
+ })
93
+ .catch((error) => {
94
+ reject(error);
95
+ });
96
+ });
97
+ }
98
+ loadData(dataUnit, sort, filters) {
99
+ return new Promise((resolve, reject) => {
100
+ HttpFetcher.get()
101
+ .callGraphQL({
102
+ values: { dataunit: dataUnit.name, sort, filters },
103
+ query: this.templateByQuery.get("fetchData"),
104
+ })
105
+ .then((resp) => {
106
+ const result = resp.data;
107
+ const dataUnitRecords = [];
108
+ result.records.forEach((responseRecord) => {
109
+ const duRecord = { __record__id__: responseRecord.id };
110
+ responseRecord.fields.forEach(({ name, value }) => {
111
+ duRecord[name] = dataUnit.valueFromString(name, value);
112
+ });
113
+ dataUnitRecords.push(duRecord);
114
+ });
115
+ resolve(dataUnitRecords);
116
+ })
117
+ .catch((error) => {
118
+ reject(error);
119
+ });
120
+ });
121
+ }
122
+ saveData(dataUnit, duChanges) {
123
+ const changes = duChanges.map((change) => {
124
+ const { dataUnit: changeDU, record, updatingFields, operation } = change;
125
+ const parsedUpdatingFields = Object.entries(updatingFields).map(([fieldName, value]) => {
126
+ return { fieldName, value: this.formatValueToServer(value) };
127
+ });
128
+ return { dataUnit: changeDU, updatingFields: parsedUpdatingFields, operation, recordId: record.__record__id__ };
129
+ });
130
+ return new Promise((resolve, reject) => {
131
+ HttpFetcher.get()
132
+ .callGraphQL({
133
+ values: { changes: changes },
134
+ query: this.templateByQuery.get("saveData"),
135
+ })
136
+ .then((resp) => {
137
+ const dataUnitRecords = [];
138
+ resp === null || resp === void 0 ? void 0 : resp.forEach((responseRecord) => {
139
+ const duRecord = { __record__id__: responseRecord.id };
140
+ if (responseRecord.oldId) {
141
+ duRecord.__old__id__ = responseRecord.oldId;
142
+ }
143
+ responseRecord.fields.forEach(({ name, value }) => {
144
+ duRecord[name] = dataUnit.valueFromString(name, value);
145
+ });
146
+ dataUnitRecords.push(duRecord);
147
+ });
148
+ resolve(dataUnitRecords);
149
+ })
150
+ .catch((error) => {
151
+ reject(error);
152
+ });
153
+ });
154
+ }
155
+ formatValueToServer(value) {
156
+ if (value === undefined)
157
+ return value;
158
+ try {
159
+ if (value instanceof Date || typeof value === 'string') {
160
+ return value.toString();
161
+ }
162
+ //Any others objects
163
+ value = JSON.stringify(value);
164
+ }
165
+ catch (_a) {
166
+ value = value.toString();
167
+ }
168
+ return value;
169
+ }
170
+ removeRecords(dataUnit, recordIds) {
171
+ const changes = recordIds.map((recordId) => {
172
+ return { dataUnit: dataUnit.name, operation: ChangeOperation.DELETE, recordId };
173
+ });
174
+ return new Promise((resolve, reject) => {
175
+ HttpFetcher.get()
176
+ .callGraphQL({
177
+ values: { changes: changes },
178
+ query: this.templateByQuery.get("saveData"),
179
+ })
180
+ .then((_resp) => {
181
+ resolve(recordIds);
182
+ })
183
+ .catch((error) => {
184
+ reject(error);
185
+ });
186
+ });
187
+ }
188
+ }
@@ -0,0 +1,25 @@
1
+ import { ResourceFetcher } from "./resource-fetcher";
2
+ export class FormConfigFetcher extends ResourceFetcher {
3
+ loadFormConfig(formName, resourceID) {
4
+ return new Promise((accept, reject) => {
5
+ this.loadResource(`cfg://form/${resourceID}/${formName}`)
6
+ .then((configAsString) => {
7
+ if (configAsString) {
8
+ const config = JSON.parse(configAsString);
9
+ const { tabs, fields } = config;
10
+ if (tabs) {
11
+ const allTabs = new Map(tabs.map(t => [t.label, t]));
12
+ fields.forEach(f => f.tab = allTabs.get(f.tab));
13
+ }
14
+ accept(fields);
15
+ }
16
+ else {
17
+ reject(`Sem configuração pro formulário "${formName}".`);
18
+ }
19
+ })
20
+ .catch((error) => {
21
+ reject(error);
22
+ });
23
+ });
24
+ }
25
+ }
@@ -0,0 +1,2 @@
1
+ export class GridConfigFetcher {
2
+ }
@@ -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,30 @@
1
+ import { gql } from "graphql-request";
2
+ import { HttpFetcher } from "../DataFetcher";
3
+ export class ResourceFetcher {
4
+ constructor() {
5
+ this.templateByQuery = new Map();
6
+ this.buldTemplates();
7
+ }
8
+ buldTemplates() {
9
+ this.templateByQuery.set("fetchResource", gql `query($name: String!) {
10
+ $queryAlias$: fetchResource(name: $name){
11
+ resource
12
+ }
13
+ }`);
14
+ }
15
+ loadResource(name) {
16
+ return new Promise((resolve, reject) => {
17
+ HttpFetcher.get()
18
+ .callGraphQL({
19
+ values: { name },
20
+ query: this.templateByQuery.get("fetchResource"),
21
+ })
22
+ .then((result) => {
23
+ resolve(result === null || result === void 0 ? void 0 : result.resource);
24
+ })
25
+ .catch((error) => {
26
+ reject(error);
27
+ });
28
+ });
29
+ }
30
+ }
@@ -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,16 @@
1
+ const mockByEntity = {
2
+ "ImplantacaoSaldoConta": [{ "value": 6, "label": "Conta Financeiro" }, { "value": 7, "label": "Conta Banco do Brasil" }],
3
+ "HistoricoBancario": [{ "value": 9, "label": "Lanç. Origem" }, { "value": 8, "label": "Lanç. Origem 2" }],
4
+ "ContaDestino": [{ "value": 10, "label": "Conta BB" }, { "value": 7, "label": "Conta Santander" }],
5
+ "HistoricoBancarioDestino": [{ "value": 11, "label": "Contra Bradesco" }, { "value": 13, "label": "Contra Destino" }],
6
+ "Usuario": [{ "value": 0, "label": "SUP" }],
7
+ "ContaBancaria": [{ "value": 10, "label": "Conta 10" }, { "value": 17, "label": "Conta 17" }],
8
+ "TipoOperacao": [{ "value": 4, "label": "Entrada NFse" }, { "value": 5, "label": "Outra top" }, { "value": 6, "label": "Top 6" }]
9
+ };
10
+ export const pesquisaLoadOptions = (searchArgument, fieldName, dataUnit) => {
11
+ var _a;
12
+ console.log(searchArgument);
13
+ const field = dataUnit.getField(fieldName);
14
+ const entityName = (_a = field.properties) === null || _a === void 0 ? void 0 : _a.ENTITYNAME;
15
+ return (mockByEntity[entityName] || []);
16
+ };
@@ -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,7 @@
1
+ export default class Workspace {
2
+ static openAppActivity(resourceId, pkObject) {
3
+ var _a;
4
+ (_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.openAppActivity(resourceId, pkObject);
5
+ }
6
+ }
7
+ Workspace.resourceID = window["workspace"].resourceID;
@@ -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;