@sankhyalabs/sankhyablocks 1.3.31-beta.14 → 1.3.31-beta.16

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 (57) hide show
  1. package/dist/cjs/{SnkMessageBuilder-bb55d4c4.js → SnkMessageBuilder-79cf15c5.js} +1 -0
  2. package/dist/cjs/{index-c6671817.js → index-5575fe3d.js} +434 -231
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/sankhyablocks.cjs.js +2 -2
  5. package/dist/cjs/snk-application.cjs.entry.js +2 -2
  6. package/dist/cjs/snk-crud.cjs.entry.js +1 -1
  7. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
  8. package/dist/cjs/snk-form_2.cjs.entry.js +2 -2
  9. package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
  10. package/dist/cjs/snk-taskbar.cjs.entry.js +2 -2
  11. package/dist/cjs/{taskbar-elements-2888ceb6.js → taskbar-elements-2ae0d005.js} +1 -1
  12. package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
  13. package/dist/collection/collection-manifest.json +2 -2
  14. package/dist/collection/components/snk-application/snk-application.js +688 -680
  15. package/dist/collection/components/snk-crud/snk-crud.js +75 -73
  16. package/dist/collection/components/snk-data-unit/snk-data-unit.js +262 -250
  17. package/dist/collection/components/snk-form/snk-form.js +111 -111
  18. package/dist/collection/components/snk-grid/snk-grid.js +93 -92
  19. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +80 -79
  20. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +1 -2
  21. package/dist/collection/components/snk-taskbar/snk-taskbar.js +128 -116
  22. package/dist/collection/components/teste-pesquisa/teste-pesquisa.js +12 -9
  23. package/dist/collection/lib/message/resources/snk-data-unit.msg.js +1 -0
  24. package/dist/components/SnkMessageBuilder.js +1 -0
  25. package/dist/components/index.d.ts +8 -5
  26. package/dist/components/index.js +8 -0
  27. package/dist/components/snk-data-unit.js +1 -1
  28. package/dist/esm/{SnkMessageBuilder-17d91b88.js → SnkMessageBuilder-3cdde541.js} +1 -0
  29. package/dist/esm/{index-6a83ac96.js → index-cf91f542.js} +434 -231
  30. package/dist/esm/loader.js +2 -2
  31. package/dist/esm/polyfills/css-shim.js +1 -1
  32. package/dist/esm/sankhyablocks.js +2 -2
  33. package/dist/esm/snk-application.entry.js +2 -2
  34. package/dist/esm/snk-crud.entry.js +1 -1
  35. package/dist/esm/snk-data-unit.entry.js +3 -3
  36. package/dist/esm/snk-form_2.entry.js +2 -2
  37. package/dist/esm/snk-pesquisa.entry.js +1 -1
  38. package/dist/esm/snk-taskbar.entry.js +2 -2
  39. package/dist/esm/{taskbar-elements-5ea74223.js → taskbar-elements-bcccc0ff.js} +1 -1
  40. package/dist/esm/teste-pesquisa.entry.js +1 -1
  41. package/dist/sankhyablocks/{p-825d2c38.entry.js → p-1ba29824.entry.js} +3 -3
  42. package/dist/sankhyablocks/{p-4c7b32d6.entry.js → p-2266555e.entry.js} +1 -1
  43. package/dist/sankhyablocks/p-23c4c94f.js +2 -0
  44. package/dist/sankhyablocks/{p-b559117b.js → p-2454be94.js} +1 -1
  45. package/dist/sankhyablocks/p-49743bc5.js +1 -0
  46. package/dist/sankhyablocks/{p-ce2d1214.entry.js → p-4fa389bd.entry.js} +1 -1
  47. package/dist/sankhyablocks/{p-56a32417.entry.js → p-5327ba05.entry.js} +1 -1
  48. package/dist/sankhyablocks/{p-d25803a1.entry.js → p-7a922fb4.entry.js} +1 -1
  49. package/dist/sankhyablocks/p-92d6f826.entry.js +1 -0
  50. package/dist/sankhyablocks/{p-d25637c9.entry.js → p-bdeef7f2.entry.js} +1 -1
  51. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  52. package/dist/types/stencil-public-runtime.d.ts +15 -4
  53. package/loader/package.json +1 -0
  54. package/package.json +5 -5
  55. package/dist/sankhyablocks/p-ab694dbc.js +0 -1
  56. package/dist/sankhyablocks/p-cd1dc099.js +0 -2
  57. package/dist/sankhyablocks/p-edf81d2c.entry.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { ApplicationContext } from '@sankhyalabs/core';
2
- import { Component, Event, h, Host, Prop, State, Watch } from '@stencil/core';
2
+ import { h, Host } from '@stencil/core';
3
3
  import { TaskbarElement, buildElem, AuthorizationElements, VisibleWhenForbidden } from './elements/taskbar-elements';
4
4
  export class SnkTaskbar {
5
5
  constructor() {
@@ -141,130 +141,142 @@ export class SnkTaskbar {
141
141
  }
142
142
  static get is() { return "snk-taskbar"; }
143
143
  static get encapsulation() { return "scoped"; }
144
- static get originalStyleUrls() { return {
145
- "$": ["snk-taskbar.css"]
146
- }; }
147
- static get styleUrls() { return {
148
- "$": ["snk-taskbar.css"]
149
- }; }
150
- static get properties() { return {
151
- "buttons": {
152
- "type": "string",
153
- "mutable": false,
154
- "complexType": {
155
- "original": "string",
156
- "resolved": "string",
157
- "references": {}
158
- },
159
- "required": false,
160
- "optional": false,
161
- "docs": {
162
- "tags": [],
163
- "text": "Lista separada por virgula, contendo todos os elementos a serem criados"
144
+ static get originalStyleUrls() {
145
+ return {
146
+ "$": ["snk-taskbar.css"]
147
+ };
148
+ }
149
+ static get styleUrls() {
150
+ return {
151
+ "$": ["snk-taskbar.css"]
152
+ };
153
+ }
154
+ static get properties() {
155
+ return {
156
+ "buttons": {
157
+ "type": "string",
158
+ "mutable": false,
159
+ "complexType": {
160
+ "original": "string",
161
+ "resolved": "string",
162
+ "references": {}
163
+ },
164
+ "required": false,
165
+ "optional": false,
166
+ "docs": {
167
+ "tags": [],
168
+ "text": "Lista separada por virgula, contendo todos os elementos a serem criados"
169
+ },
170
+ "attribute": "buttons",
171
+ "reflect": false
164
172
  },
165
- "attribute": "buttons",
166
- "reflect": false
167
- },
168
- "actionsList": {
169
- "type": "unknown",
170
- "mutable": false,
171
- "complexType": {
172
- "original": "Array<Action>",
173
- "resolved": "Action[]",
174
- "references": {
175
- "Array": {
176
- "location": "global"
177
- },
178
- "Action": {
179
- "location": "local"
173
+ "actionsList": {
174
+ "type": "unknown",
175
+ "mutable": false,
176
+ "complexType": {
177
+ "original": "Array<Action>",
178
+ "resolved": "Action[]",
179
+ "references": {
180
+ "Array": {
181
+ "location": "global"
182
+ },
183
+ "Action": {
184
+ "location": "local"
185
+ }
180
186
  }
187
+ },
188
+ "required": false,
189
+ "optional": false,
190
+ "docs": {
191
+ "tags": [],
192
+ "text": "Lista de a\u00E7\u00F5es que devem ser usadas no bot\u00E3o \"Mais op\u00E7\u00F5es\""
181
193
  }
182
194
  },
183
- "required": false,
184
- "optional": false,
185
- "docs": {
186
- "tags": [],
187
- "text": "Lista de a\u00E7\u00F5es que devem ser usadas no bot\u00E3o \"Mais op\u00E7\u00F5es\""
188
- }
189
- },
190
- "primaryButton": {
191
- "type": "string",
192
- "mutable": false,
193
- "complexType": {
194
- "original": "string",
195
- "resolved": "string",
196
- "references": {}
197
- },
198
- "required": false,
199
- "optional": false,
200
- "docs": {
201
- "tags": [],
202
- "text": "Qual bot\u00E3o deve ter apar\u00EAncia prim\u00E1ria"
195
+ "primaryButton": {
196
+ "type": "string",
197
+ "mutable": false,
198
+ "complexType": {
199
+ "original": "string",
200
+ "resolved": "string",
201
+ "references": {}
202
+ },
203
+ "required": false,
204
+ "optional": false,
205
+ "docs": {
206
+ "tags": [],
207
+ "text": "Qual bot\u00E3o deve ter apar\u00EAncia prim\u00E1ria"
208
+ },
209
+ "attribute": "primary-button",
210
+ "reflect": false
203
211
  },
204
- "attribute": "primary-button",
205
- "reflect": false
206
- },
207
- "disabledButtons": {
208
- "type": "unknown",
209
- "mutable": false,
210
- "complexType": {
211
- "original": "Array<string>",
212
- "resolved": "string[]",
213
- "references": {
214
- "Array": {
215
- "location": "global"
212
+ "disabledButtons": {
213
+ "type": "unknown",
214
+ "mutable": false,
215
+ "complexType": {
216
+ "original": "Array<string>",
217
+ "resolved": "string[]",
218
+ "references": {
219
+ "Array": {
220
+ "location": "global"
221
+ }
216
222
  }
223
+ },
224
+ "required": false,
225
+ "optional": false,
226
+ "docs": {
227
+ "tags": [],
228
+ "text": "Array contendo todos os bot\u00F5es a serem desabilitados"
217
229
  }
218
230
  },
219
- "required": false,
220
- "optional": false,
221
- "docs": {
222
- "tags": [],
223
- "text": "Array contendo todos os bot\u00F5es a serem desabilitados"
224
- }
225
- },
226
- "dataUnit": {
227
- "type": "unknown",
228
- "mutable": false,
229
- "complexType": {
230
- "original": "DataUnit",
231
- "resolved": "DataUnit",
232
- "references": {
233
- "DataUnit": {
234
- "location": "import",
235
- "path": "@sankhyalabs/core"
231
+ "dataUnit": {
232
+ "type": "unknown",
233
+ "mutable": false,
234
+ "complexType": {
235
+ "original": "DataUnit",
236
+ "resolved": "DataUnit",
237
+ "references": {
238
+ "DataUnit": {
239
+ "location": "import",
240
+ "path": "@sankhyalabs/core"
241
+ }
236
242
  }
243
+ },
244
+ "required": false,
245
+ "optional": false,
246
+ "docs": {
247
+ "tags": [],
248
+ "text": "Inst\u00E2ncia do DataUnit"
237
249
  }
238
- },
239
- "required": false,
240
- "optional": false,
241
- "docs": {
242
- "tags": [],
243
- "text": "Inst\u00E2ncia do DataUnit"
244
250
  }
245
- }
246
- }; }
247
- static get states() { return {
248
- "_permissions": {}
249
- }; }
250
- static get events() { return [{
251
- "method": "actionClick",
252
- "name": "actionClick",
253
- "bubbles": true,
254
- "cancelable": true,
255
- "composed": true,
256
- "docs": {
257
- "tags": [],
258
- "text": "Emitido sempre que houver click de bot\u00E3o ou a\u00E7\u00E3o"
259
- },
260
- "complexType": {
261
- "original": "string",
262
- "resolved": "string",
263
- "references": {}
264
- }
265
- }]; }
266
- static get watchers() { return [{
267
- "propName": "buttons",
268
- "methodName": "observeButtons"
269
- }]; }
251
+ };
252
+ }
253
+ static get states() {
254
+ return {
255
+ "_permissions": {}
256
+ };
257
+ }
258
+ static get events() {
259
+ return [{
260
+ "method": "actionClick",
261
+ "name": "actionClick",
262
+ "bubbles": true,
263
+ "cancelable": true,
264
+ "composed": true,
265
+ "docs": {
266
+ "tags": [],
267
+ "text": "Emitido sempre que houver click de bot\u00E3o ou a\u00E7\u00E3o"
268
+ },
269
+ "complexType": {
270
+ "original": "string",
271
+ "resolved": "string",
272
+ "references": {}
273
+ }
274
+ }];
275
+ }
276
+ static get watchers() {
277
+ return [{
278
+ "propName": "buttons",
279
+ "methodName": "observeButtons"
280
+ }];
281
+ }
270
282
  }
@@ -1,5 +1,5 @@
1
1
  import { DataType, DataUnit, UserInterface } from '@sankhyalabs/core';
2
- import { Component, h } from '@stencil/core';
2
+ import { h } from '@stencil/core';
3
3
  export class TestePesquisa {
4
4
  componentWillLoad() {
5
5
  this.dataUnit = new DataUnit("testes_com_formulario");
@@ -19,15 +19,18 @@ export class TestePesquisa {
19
19
  };
20
20
  }
21
21
  render() {
22
- return (h("snk-application", null,
23
- h("ez-form", { dataUnit: this.dataUnit })));
22
+ return (h("snk-application", null, h("ez-form", { dataUnit: this.dataUnit })));
24
23
  }
25
24
  static get is() { return "teste-pesquisa"; }
26
25
  static get encapsulation() { return "shadow"; }
27
- static get originalStyleUrls() { return {
28
- "$": ["teste-pesquisa.css"]
29
- }; }
30
- static get styleUrls() { return {
31
- "$": ["teste-pesquisa.css"]
32
- }; }
26
+ static get originalStyleUrls() {
27
+ return {
28
+ "$": ["teste-pesquisa.css"]
29
+ };
30
+ }
31
+ static get styleUrls() {
32
+ return {
33
+ "$": ["teste-pesquisa.css"]
34
+ };
35
+ }
33
36
  }
@@ -14,6 +14,7 @@ const snkDataUnitMessages = {
14
14
  cancelConfirmation: "As alterações realizadas serão descartadas<br/><br/><b>Você realmente gostaria de cancelar?",
15
15
  removeConfirmationTitle: "Excluir",
16
16
  removeConfirmation: "Deseja realmente excluir o registro atual?",
17
+ forbidden: "Sem permissão",
17
18
  forbiddenUpdate: "Não é possível fazer alterações. Verifique as permissões de acesso.",
18
19
  forbiddenInsert: "Não é possível incluir. Verifique as permissões de acesso.",
19
20
  forbiddenClone: "Não é possível duplicar. Verifique as permissões de acesso.",
@@ -14,6 +14,7 @@ const snkDataUnitMessages = {
14
14
  cancelConfirmation: "As alterações realizadas serão descartadas<br/><br/><b>Você realmente gostaria de cancelar?",
15
15
  removeConfirmationTitle: "Excluir",
16
16
  removeConfirmation: "Deseja realmente excluir o registro atual?",
17
+ forbidden: "Sem permissão",
17
18
  forbiddenUpdate: "Não é possível fazer alterações. Verifique as permissões de acesso.",
18
19
  forbiddenInsert: "Não é possível incluir. Verifique as permissões de acesso.",
19
20
  forbiddenClone: "Não é possível duplicar. Verifique as permissões de acesso.",
@@ -1,6 +1,12 @@
1
1
  /* sankhyablocks custom elements */
2
-
3
- import type { Components, JSX } from "../types/components";
2
+ export { SnkApplication as SnkApplication } from '../types/components/snk-application/snk-application';
3
+ export { SnkCrud as SnkCrud } from '../types/components/snk-crud/snk-crud';
4
+ export { SnkDataUnit as SnkDataUnit } from '../types/components/snk-data-unit/snk-data-unit';
5
+ export { SnkForm as SnkForm } from '../types/components/snk-form/snk-form';
6
+ export { SnkGrid as SnkGrid } from '../types/components/snk-grid/snk-grid';
7
+ export { SnkPesquisa as SnkPesquisa } from '../types/components/snk-pesquisa/snk-pesquisa';
8
+ export { SnkTaskbar as SnkTaskbar } from '../types/components/snk-taskbar/snk-taskbar';
9
+ export { TestePesquisa as TestePesquisa } from '../types/components/teste-pesquisa/teste-pesquisa';
4
10
 
5
11
  /**
6
12
  * Used to manually set the base path where assets can be found.
@@ -20,7 +26,4 @@ export interface SetPlatformOptions {
20
26
  rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
21
27
  }
22
28
  export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
23
-
24
- export type { Components, JSX };
25
-
26
29
  export * from '../types';
@@ -1 +1,9 @@
1
1
  export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
2
+ export { SnkApplication, defineCustomElement as defineCustomElementSnkApplication } from './snk-application.js';
3
+ export { SnkCrud, defineCustomElement as defineCustomElementSnkCrud } from './snk-crud.js';
4
+ export { SnkDataUnit, defineCustomElement as defineCustomElementSnkDataUnit } from './snk-data-unit.js';
5
+ export { SnkForm, defineCustomElement as defineCustomElementSnkForm } from './snk-form.js';
6
+ export { SnkGrid, defineCustomElement as defineCustomElementSnkGrid } from './snk-grid.js';
7
+ export { SnkPesquisa, defineCustomElement as defineCustomElementSnkPesquisa } from './snk-pesquisa.js';
8
+ export { SnkTaskbar, defineCustomElement as defineCustomElementSnkTaskbar } from './snk-taskbar.js';
9
+ export { TestePesquisa, defineCustomElement as defineCustomElementTestePesquisa } from './teste-pesquisa.js';
@@ -132,7 +132,7 @@ const SnkDataUnit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
132
132
  }
133
133
  else {
134
134
  this.dataUnit.cancelEdition();
135
- ApplicationUtils.info(this.getMessage("snkDataUnit.forbiddenUpdate"));
135
+ ApplicationUtils.alert(this.getMessage("snkDataUnit.forbidden"), this.getMessage("snkDataUnit.forbiddenUpdate"));
136
136
  }
137
137
  break;
138
138
  case Action.SAVING_DATA:
@@ -14,6 +14,7 @@ const snkDataUnitMessages = {
14
14
  cancelConfirmation: "As alterações realizadas serão descartadas<br/><br/><b>Você realmente gostaria de cancelar?",
15
15
  removeConfirmationTitle: "Excluir",
16
16
  removeConfirmation: "Deseja realmente excluir o registro atual?",
17
+ forbidden: "Sem permissão",
17
18
  forbiddenUpdate: "Não é possível fazer alterações. Verifique as permissões de acesso.",
18
19
  forbiddenInsert: "Não é possível incluir. Verifique as permissões de acesso.",
19
20
  forbiddenClone: "Não é possível duplicar. Verifique as permissões de acesso.",