@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,4 +1,4 @@
1
- import { Component, Host, h, Event, Element, Prop, Watch, Method } from '@stencil/core';
1
+ import { Host, h } from '@stencil/core';
2
2
  import { Action, ApplicationContext } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { OperationMap } from '../../lib/message/SnkMessageBuilder';
@@ -123,7 +123,7 @@ export class SnkDataUnit {
123
123
  }
124
124
  else {
125
125
  this.dataUnit.cancelEdition();
126
- ApplicationUtils.info(this.getMessage("snkDataUnit.forbiddenUpdate"));
126
+ ApplicationUtils.alert(this.getMessage("snkDataUnit.forbidden"), this.getMessage("snkDataUnit.forbiddenUpdate"));
127
127
  }
128
128
  break;
129
129
  case Action.SAVING_DATA:
@@ -253,276 +253,288 @@ export class SnkDataUnit {
253
253
  }
254
254
  static get is() { return "snk-data-unit"; }
255
255
  static get encapsulation() { return "scoped"; }
256
- static get originalStyleUrls() { return {
257
- "$": ["snk-data-unit.css"]
258
- }; }
259
- static get styleUrls() { return {
260
- "$": ["snk-data-unit.css"]
261
- }; }
262
- static get properties() { return {
263
- "dataState": {
264
- "type": "unknown",
265
- "mutable": true,
266
- "complexType": {
267
- "original": "DataState",
268
- "resolved": "DataState",
269
- "references": {
270
- "DataState": {
271
- "location": "local"
256
+ static get originalStyleUrls() {
257
+ return {
258
+ "$": ["snk-data-unit.css"]
259
+ };
260
+ }
261
+ static get styleUrls() {
262
+ return {
263
+ "$": ["snk-data-unit.css"]
264
+ };
265
+ }
266
+ static get properties() {
267
+ return {
268
+ "dataState": {
269
+ "type": "unknown",
270
+ "mutable": true,
271
+ "complexType": {
272
+ "original": "DataState",
273
+ "resolved": "DataState",
274
+ "references": {
275
+ "DataState": {
276
+ "location": "local"
277
+ }
272
278
  }
279
+ },
280
+ "required": false,
281
+ "optional": false,
282
+ "docs": {
283
+ "tags": [],
284
+ "text": "O estato atual dos dados, isto \u00E9 se h\u00E1 altera\u00E7\u00E3o, insers\u00E3o, as linhas selecionadas, etc."
273
285
  }
274
286
  },
275
- "required": false,
276
- "optional": false,
277
- "docs": {
278
- "tags": [],
279
- "text": "O estato atual dos dados, isto \u00E9 se h\u00E1 altera\u00E7\u00E3o, insers\u00E3o, as linhas selecionadas, etc."
280
- }
281
- },
282
- "dataUnitName": {
283
- "type": "string",
284
- "mutable": false,
285
- "complexType": {
286
- "original": "string",
287
- "resolved": "string",
288
- "references": {}
289
- },
290
- "required": false,
291
- "optional": false,
292
- "docs": {
293
- "tags": [],
294
- "text": "Este atributo \u00E9 usado para criar o dataUnit uma \u00FAnica vez. Se omitido ser\u00E1 usado o pr\u00F3prio nome\nda entidade."
295
- },
296
- "attribute": "data-unit-name",
297
- "reflect": false
298
- },
299
- "entityName": {
300
- "type": "string",
301
- "mutable": false,
302
- "complexType": {
303
- "original": "string",
304
- "resolved": "string",
305
- "references": {}
306
- },
307
- "required": false,
308
- "optional": false,
309
- "docs": {
310
- "tags": [],
311
- "text": "Determina qual a entidade representa os dados em quest\u00E3o."
287
+ "dataUnitName": {
288
+ "type": "string",
289
+ "mutable": false,
290
+ "complexType": {
291
+ "original": "string",
292
+ "resolved": "string",
293
+ "references": {}
294
+ },
295
+ "required": false,
296
+ "optional": false,
297
+ "docs": {
298
+ "tags": [],
299
+ "text": "Este atributo \u00E9 usado para criar o dataUnit uma \u00FAnica vez. Se omitido ser\u00E1 usado o pr\u00F3prio nome\nda entidade."
300
+ },
301
+ "attribute": "data-unit-name",
302
+ "reflect": false
312
303
  },
313
- "attribute": "entity-name",
314
- "reflect": false
315
- },
316
- "pageSize": {
317
- "type": "number",
318
- "mutable": false,
319
- "complexType": {
320
- "original": "number",
321
- "resolved": "number",
322
- "references": {}
304
+ "entityName": {
305
+ "type": "string",
306
+ "mutable": false,
307
+ "complexType": {
308
+ "original": "string",
309
+ "resolved": "string",
310
+ "references": {}
311
+ },
312
+ "required": false,
313
+ "optional": false,
314
+ "docs": {
315
+ "tags": [],
316
+ "text": "Determina qual a entidade representa os dados em quest\u00E3o."
317
+ },
318
+ "attribute": "entity-name",
319
+ "reflect": false
323
320
  },
324
- "required": false,
325
- "optional": false,
326
- "docs": {
327
- "tags": [],
328
- "text": "Determina quantas linhas s\u00E3o retornadas por p\u00E1gina"
321
+ "pageSize": {
322
+ "type": "number",
323
+ "mutable": false,
324
+ "complexType": {
325
+ "original": "number",
326
+ "resolved": "number",
327
+ "references": {}
328
+ },
329
+ "required": false,
330
+ "optional": false,
331
+ "docs": {
332
+ "tags": [],
333
+ "text": "Determina quantas linhas s\u00E3o retornadas por p\u00E1gina"
334
+ },
335
+ "attribute": "page-size",
336
+ "reflect": false,
337
+ "defaultValue": "150"
329
338
  },
330
- "attribute": "page-size",
331
- "reflect": false,
332
- "defaultValue": "150"
333
- },
334
- "dataUnit": {
335
- "type": "unknown",
336
- "mutable": true,
337
- "complexType": {
338
- "original": "DataUnit",
339
- "resolved": "DataUnit",
340
- "references": {
341
- "DataUnit": {
342
- "location": "import",
343
- "path": "@sankhyalabs/core"
339
+ "dataUnit": {
340
+ "type": "unknown",
341
+ "mutable": true,
342
+ "complexType": {
343
+ "original": "DataUnit",
344
+ "resolved": "DataUnit",
345
+ "references": {
346
+ "DataUnit": {
347
+ "location": "import",
348
+ "path": "@sankhyalabs/core"
349
+ }
344
350
  }
351
+ },
352
+ "required": false,
353
+ "optional": false,
354
+ "docs": {
355
+ "tags": [],
356
+ "text": "Uma vez instanciado, pode-se obter o dataUnit por esta propriedade"
345
357
  }
346
358
  },
347
- "required": false,
348
- "optional": false,
349
- "docs": {
350
- "tags": [],
351
- "text": "Uma vez instanciado, pode-se obter o dataUnit por esta propriedade"
352
- }
353
- },
354
- "beforeSave": {
355
- "type": "unknown",
356
- "mutable": false,
357
- "complexType": {
358
- "original": "(dataUnit: DataUnit) => boolean | Promise<boolean>",
359
- "resolved": "(dataUnit: DataUnit) => boolean | Promise<boolean>",
360
- "references": {
361
- "DataUnit": {
362
- "location": "import",
363
- "path": "@sankhyalabs/core"
364
- },
365
- "Promise": {
366
- "location": "global"
359
+ "beforeSave": {
360
+ "type": "unknown",
361
+ "mutable": false,
362
+ "complexType": {
363
+ "original": "(dataUnit: DataUnit) => boolean | Promise<boolean>",
364
+ "resolved": "(dataUnit: DataUnit) => boolean | Promise<boolean>",
365
+ "references": {
366
+ "DataUnit": {
367
+ "location": "import",
368
+ "path": "@sankhyalabs/core"
369
+ },
370
+ "Promise": {
371
+ "location": "global"
372
+ }
367
373
  }
374
+ },
375
+ "required": false,
376
+ "optional": false,
377
+ "docs": {
378
+ "tags": [],
379
+ "text": "Executado imediatamente antes da a\u00E7\u00E3o de salvar as altera\u00E7\u00F5es. \u00DAtil no caso de valida\u00E7\u00F5es por exemplo.\nCaso retorne \"false\" (ou a promessa se resolva como false), cancela a a\u00E7\u00E3o."
368
380
  }
369
381
  },
370
- "required": false,
371
- "optional": false,
372
- "docs": {
373
- "tags": [],
374
- "text": "Executado imediatamente antes da a\u00E7\u00E3o de salvar as altera\u00E7\u00F5es. \u00DAtil no caso de valida\u00E7\u00F5es por exemplo.\nCaso retorne \"false\" (ou a promessa se resolva como false), cancela a a\u00E7\u00E3o."
375
- }
376
- },
377
- "afterSave": {
378
- "type": "unknown",
379
- "mutable": false,
380
- "complexType": {
381
- "original": "(dataUnit: DataUnit) => void",
382
- "resolved": "(dataUnit: DataUnit) => void",
383
- "references": {
384
- "DataUnit": {
385
- "location": "import",
386
- "path": "@sankhyalabs/core"
382
+ "afterSave": {
383
+ "type": "unknown",
384
+ "mutable": false,
385
+ "complexType": {
386
+ "original": "(dataUnit: DataUnit) => void",
387
+ "resolved": "(dataUnit: DataUnit) => void",
388
+ "references": {
389
+ "DataUnit": {
390
+ "location": "import",
391
+ "path": "@sankhyalabs/core"
392
+ }
387
393
  }
394
+ },
395
+ "required": false,
396
+ "optional": false,
397
+ "docs": {
398
+ "tags": [],
399
+ "text": "Executado ap\u00F3s a a\u00E7\u00E3o de salvar"
388
400
  }
389
401
  },
390
- "required": false,
391
- "optional": false,
392
- "docs": {
393
- "tags": [],
394
- "text": "Executado ap\u00F3s a a\u00E7\u00E3o de salvar"
402
+ "autoLoad": {
403
+ "type": "boolean",
404
+ "mutable": false,
405
+ "complexType": {
406
+ "original": "boolean",
407
+ "resolved": "boolean",
408
+ "references": {}
409
+ },
410
+ "required": false,
411
+ "optional": false,
412
+ "docs": {
413
+ "tags": [],
414
+ "text": "Quando ativada essa propriedade faz com que haja uma carga imediata no DataUnit"
415
+ },
416
+ "attribute": "auto-load",
417
+ "reflect": false,
418
+ "defaultValue": "true"
395
419
  }
396
- },
397
- "autoLoad": {
398
- "type": "boolean",
399
- "mutable": false,
400
- "complexType": {
401
- "original": "boolean",
402
- "resolved": "boolean",
403
- "references": {}
404
- },
405
- "required": false,
406
- "optional": false,
407
- "docs": {
408
- "tags": [],
409
- "text": "Quando ativada essa propriedade faz com que haja uma carga imediata no DataUnit"
410
- },
411
- "attribute": "auto-load",
412
- "reflect": false,
413
- "defaultValue": "true"
414
- }
415
- }; }
416
- static get events() { return [{
417
- "method": "dataStateChange",
418
- "name": "dataStateChange",
419
- "bubbles": true,
420
- "cancelable": true,
421
- "composed": true,
422
- "docs": {
423
- "tags": [],
424
- "text": "Disparado quando o h\u00E1 qualquer mudan\u00E7a de estado no DataUnit"
425
- },
426
- "complexType": {
427
- "original": "DataState",
428
- "resolved": "DataState",
429
- "references": {
430
- "DataState": {
431
- "location": "local"
420
+ };
421
+ }
422
+ static get events() {
423
+ return [{
424
+ "method": "dataStateChange",
425
+ "name": "dataStateChange",
426
+ "bubbles": true,
427
+ "cancelable": true,
428
+ "composed": true,
429
+ "docs": {
430
+ "tags": [],
431
+ "text": "Disparado quando o h\u00E1 qualquer mudan\u00E7a de estado no DataUnit"
432
+ },
433
+ "complexType": {
434
+ "original": "DataState",
435
+ "resolved": "DataState",
436
+ "references": {
437
+ "DataState": {
438
+ "location": "local"
439
+ }
432
440
  }
433
441
  }
434
- }
435
- }, {
436
- "method": "dataUnitReady",
437
- "name": "dataUnitReady",
438
- "bubbles": true,
439
- "cancelable": true,
440
- "composed": true,
441
- "docs": {
442
- "tags": [],
443
- "text": "Disparado quando o DataUnit est\u00E1 pronto"
444
- },
445
- "complexType": {
446
- "original": "DataUnit",
447
- "resolved": "DataUnit",
448
- "references": {
449
- "DataUnit": {
450
- "location": "import",
451
- "path": "@sankhyalabs/core"
442
+ }, {
443
+ "method": "dataUnitReady",
444
+ "name": "dataUnitReady",
445
+ "bubbles": true,
446
+ "cancelable": true,
447
+ "composed": true,
448
+ "docs": {
449
+ "tags": [],
450
+ "text": "Disparado quando o DataUnit est\u00E1 pronto"
451
+ },
452
+ "complexType": {
453
+ "original": "DataUnit",
454
+ "resolved": "DataUnit",
455
+ "references": {
456
+ "DataUnit": {
457
+ "location": "import",
458
+ "path": "@sankhyalabs/core"
459
+ }
452
460
  }
453
461
  }
454
- }
455
- }, {
456
- "method": "insertionMode",
457
- "name": "insertionMode",
458
- "bubbles": true,
459
- "cancelable": true,
460
- "composed": true,
461
- "docs": {
462
- "tags": [],
463
- "text": "Disparado quando um registro \u00E9 adicionado ou copiado"
464
- },
465
- "complexType": {
466
- "original": "void",
467
- "resolved": "void",
468
- "references": {}
469
- }
470
- }, {
471
- "method": "cancelEdition",
472
- "name": "cancelEdition",
473
- "bubbles": true,
474
- "cancelable": true,
475
- "composed": true,
476
- "docs": {
477
- "tags": [],
478
- "text": "Disparado quando se cancela uma insers\u00E3o/c\u00F3pia"
479
- },
480
- "complexType": {
481
- "original": "void",
482
- "resolved": "void",
483
- "references": {}
484
- }
485
- }]; }
486
- static get methods() { return {
487
- "getDataUnit": {
488
- "complexType": {
489
- "signature": "() => Promise<DataUnit>",
490
- "parameters": [],
491
- "references": {
492
- "Promise": {
493
- "location": "global"
462
+ }, {
463
+ "method": "insertionMode",
464
+ "name": "insertionMode",
465
+ "bubbles": true,
466
+ "cancelable": true,
467
+ "composed": true,
468
+ "docs": {
469
+ "tags": [],
470
+ "text": "Disparado quando um registro \u00E9 adicionado ou copiado"
471
+ },
472
+ "complexType": {
473
+ "original": "void",
474
+ "resolved": "void",
475
+ "references": {}
476
+ }
477
+ }, {
478
+ "method": "cancelEdition",
479
+ "name": "cancelEdition",
480
+ "bubbles": true,
481
+ "cancelable": true,
482
+ "composed": true,
483
+ "docs": {
484
+ "tags": [],
485
+ "text": "Disparado quando se cancela uma insers\u00E3o/c\u00F3pia"
486
+ },
487
+ "complexType": {
488
+ "original": "void",
489
+ "resolved": "void",
490
+ "references": {}
491
+ }
492
+ }];
493
+ }
494
+ static get methods() {
495
+ return {
496
+ "getDataUnit": {
497
+ "complexType": {
498
+ "signature": "() => Promise<DataUnit>",
499
+ "parameters": [],
500
+ "references": {
501
+ "Promise": {
502
+ "location": "global"
503
+ },
504
+ "DataUnit": {
505
+ "location": "import",
506
+ "path": "@sankhyalabs/core"
507
+ }
494
508
  },
495
- "DataUnit": {
496
- "location": "import",
497
- "path": "@sankhyalabs/core"
498
- }
509
+ "return": "Promise<DataUnit>"
499
510
  },
500
- "return": "Promise<DataUnit>"
501
- },
502
- "docs": {
503
- "text": "Pode-se obter o dataUnit atrav\u00E9s desse m\u00E9todo. Outra forma, \u00E9 ouvir o evento de",
504
- "tags": [{
505
- "name": "returns",
506
- "text": "dataUnit"
507
- }]
511
+ "docs": {
512
+ "text": "Pode-se obter o dataUnit atrav\u00E9s desse m\u00E9todo. Outra forma, \u00E9 ouvir o evento de",
513
+ "tags": [{
514
+ "name": "returns",
515
+ "text": "dataUnit"
516
+ }]
517
+ }
508
518
  }
509
- }
510
- }; }
519
+ };
520
+ }
511
521
  static get elementRef() { return "element"; }
512
- static get watchers() { return [{
513
- "propName": "pageSize",
514
- "methodName": "observePageSize"
515
- }, {
516
- "propName": "dataUnitName",
517
- "methodName": "observeDataUnitName"
518
- }, {
519
- "propName": "entityName",
520
- "methodName": "observeEntityName"
521
- }, {
522
- "propName": "dataState",
523
- "methodName": "observeDataState"
524
- }, {
525
- "propName": "dataUnit",
526
- "methodName": "observeDataUnit"
527
- }]; }
522
+ static get watchers() {
523
+ return [{
524
+ "propName": "pageSize",
525
+ "methodName": "observePageSize"
526
+ }, {
527
+ "propName": "dataUnitName",
528
+ "methodName": "observeDataUnitName"
529
+ }, {
530
+ "propName": "entityName",
531
+ "methodName": "observeEntityName"
532
+ }, {
533
+ "propName": "dataState",
534
+ "methodName": "observeDataState"
535
+ }, {
536
+ "propName": "dataUnit",
537
+ "methodName": "observeDataUnit"
538
+ }];
539
+ }
528
540
  }