@sankhyalabs/sankhyablocks 1.4.0-beta.2 → 1.4.0-beta.3

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 (140) hide show
  1. package/dist/cjs/{index-b0b676c5.js → index-6fcf07f3.js} +159 -1515
  2. package/dist/cjs/loader.cjs.js +2 -18
  3. package/dist/cjs/sankhyablocks.cjs.js +4 -116
  4. package/dist/cjs/snk-application.cjs.entry.js +50 -214
  5. package/dist/cjs/snk-crud.cjs.entry.js +3 -3
  6. package/dist/cjs/snk-data-unit.cjs.entry.js +23 -23
  7. package/dist/cjs/snk-filter-bar_5.cjs.entry.js +902 -0
  8. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  9. package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -3
  10. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
  11. package/dist/cjs/snk-filter-number.cjs.entry.js +1 -1
  12. package/dist/cjs/snk-filter-period.cjs.entry.js +1 -1
  13. package/dist/cjs/snk-filter-personalized.cjs.entry.js +23 -22
  14. package/dist/cjs/snk-filter-search.cjs.entry.js +3 -3
  15. package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
  16. package/dist/cjs/{snk-form.cjs.entry.js → snk-form_2.cjs.entry.js} +119 -5
  17. package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
  18. package/dist/cjs/{taskbar-elements-283c737e.js → taskbar-elements-aedfeae6.js} +1 -1
  19. package/dist/cjs/teste-pesquisa.cjs.entry.js +5 -5
  20. package/dist/components/index.js +0 -4
  21. package/dist/components/snk-application2.js +10 -174
  22. package/dist/components/snk-crud.js +1 -1
  23. package/dist/components/snk-data-unit.js +2 -2
  24. package/dist/components/snk-filter-bar2.js +4 -2
  25. package/dist/components/snk-filter-detail2.js +1 -1
  26. package/dist/components/snk-filter-item2.js +1 -1
  27. package/dist/components/snk-filter-list2.js +1 -1
  28. package/dist/components/snk-filter-modal2.js +4 -19
  29. package/dist/components/snk-filter-personalized.js +2 -1
  30. package/dist/components/snk-filter-search.js +1 -1
  31. package/dist/components/snk-form2.js +1 -1
  32. package/dist/components/snk-grid2.js +1 -1
  33. package/dist/components/snk-pesquisa2.js +1 -1
  34. package/dist/components/snk-taskbar2.js +1 -1
  35. package/dist/components/teste-pesquisa.js +1 -1
  36. package/dist/{sankhyablocks/index-2b4d2d14.js → esm/index-81dda3cf.js} +160 -1508
  37. package/dist/esm/loader.js +2 -18
  38. package/dist/esm/sankhyablocks.js +4 -116
  39. package/dist/esm/snk-application.entry.js +11 -175
  40. package/dist/esm/snk-crud.entry.js +2 -2
  41. package/dist/esm/snk-data-unit.entry.js +3 -3
  42. package/dist/esm/{snk-filter-bar.entry.js → snk-filter-bar_5.entry.js} +436 -4
  43. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  44. package/dist/esm/snk-filter-detail.entry.js +2 -2
  45. package/dist/esm/snk-filter-multi-select.entry.js +1 -1
  46. package/dist/esm/snk-filter-number.entry.js +1 -1
  47. package/dist/esm/snk-filter-period.entry.js +1 -1
  48. package/dist/esm/snk-filter-personalized.entry.js +3 -2
  49. package/dist/esm/snk-filter-search.entry.js +2 -2
  50. package/dist/esm/snk-filter-text.entry.js +1 -1
  51. package/dist/{sankhyablocks/snk-form.entry.js → esm/snk-form_2.entry.js} +117 -4
  52. package/dist/esm/snk-pesquisa.entry.js +2 -2
  53. package/dist/esm/{taskbar-elements-35d64ff9.js → taskbar-elements-38eb5d51.js} +1 -1
  54. package/dist/esm/teste-pesquisa.entry.js +2 -2
  55. package/dist/sankhyablocks/index.esm.js +0 -1
  56. package/dist/sankhyablocks/p-0352c0e2.entry.js +1 -0
  57. package/dist/sankhyablocks/p-07ebda01.entry.js +1 -0
  58. package/dist/sankhyablocks/p-322c0df2.entry.js +1 -0
  59. package/dist/sankhyablocks/p-46caa101.entry.js +1 -0
  60. package/dist/sankhyablocks/p-473cedf9.entry.js +1 -0
  61. package/dist/sankhyablocks/p-586e2522.js +1 -0
  62. package/dist/sankhyablocks/p-86f15ffe.js +1 -0
  63. package/dist/sankhyablocks/p-8f3c5709.entry.js +1 -0
  64. package/dist/sankhyablocks/p-97009a2c.entry.js +1 -0
  65. package/dist/sankhyablocks/p-9be74b46.entry.js +74 -0
  66. package/dist/sankhyablocks/p-9dd2b8cb.js +1 -0
  67. package/dist/sankhyablocks/p-a8b59c61.entry.js +1 -0
  68. package/dist/sankhyablocks/p-aecf3e0a.entry.js +1 -0
  69. package/dist/sankhyablocks/p-c1c3b5d8.entry.js +1 -0
  70. package/dist/sankhyablocks/p-c78cb79a.entry.js +1 -0
  71. package/dist/sankhyablocks/p-c9eec639.entry.js +1 -0
  72. package/dist/sankhyablocks/p-dc482a42.entry.js +1 -0
  73. package/dist/sankhyablocks/p-fac2b6a9.js +2 -0
  74. package/dist/sankhyablocks/p-fb705f81.entry.js +1 -0
  75. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -129
  76. package/package.json +1 -1
  77. package/react/components.d.ts +19 -0
  78. package/react/components.js +19 -0
  79. package/react/components.js.map +1 -1
  80. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  81. package/dist/cjs/css-shim-b8158822.js +0 -6
  82. package/dist/cjs/dom-36862b77.js +0 -75
  83. package/dist/cjs/index-84fe3b86.js +0 -20
  84. package/dist/cjs/index-93965c41.js +0 -141
  85. package/dist/cjs/index-e90ae303.js +0 -2408
  86. package/dist/cjs/shadow-css-346c0795.js +0 -389
  87. package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -466
  88. package/dist/cjs/snk-filter-item.cjs.entry.js +0 -177
  89. package/dist/cjs/snk-filter-list.cjs.entry.js +0 -91
  90. package/dist/cjs/snk-filter-modal.cjs.entry.js +0 -37
  91. package/dist/cjs/snk-grid.cjs.entry.js +0 -79
  92. package/dist/cjs/snk-taskbar.cjs.entry.js +0 -160
  93. package/dist/cjs/taskbar-processor-6bd0d35c.js +0 -47
  94. package/dist/components/index2.js +0 -2394
  95. package/dist/components/index3.js +0 -139
  96. package/dist/esm/app-globals-0f993ce5.js +0 -3
  97. package/dist/esm/css-shim-b3f2ee8d.js +0 -4
  98. package/dist/esm/dom-665d6011.js +0 -73
  99. package/dist/esm/index-2b4d2d14.js +0 -3262
  100. package/dist/esm/index-5992b7e6.js +0 -139
  101. package/dist/esm/index-c683b2b0.js +0 -2394
  102. package/dist/esm/index-c71285cb.js +0 -17
  103. package/dist/esm/shadow-css-b18e99d7.js +0 -387
  104. package/dist/esm/snk-filter-item.entry.js +0 -173
  105. package/dist/esm/snk-filter-list.entry.js +0 -87
  106. package/dist/esm/snk-filter-modal.entry.js +0 -33
  107. package/dist/esm/snk-form.entry.js +0 -129
  108. package/dist/esm/snk-grid.entry.js +0 -75
  109. package/dist/esm/snk-taskbar.entry.js +0 -156
  110. package/dist/esm/taskbar-processor-aa6772c9.js +0 -45
  111. package/dist/sankhyablocks/SnkMessageBuilder-35a20271.js +0 -199
  112. package/dist/sankhyablocks/app-globals-0f993ce5.js +0 -3
  113. package/dist/sankhyablocks/css-shim-b3f2ee8d.js +0 -4
  114. package/dist/sankhyablocks/dom-665d6011.js +0 -73
  115. package/dist/sankhyablocks/filter-item-type.enum-a79b2fa8.js +0 -14
  116. package/dist/sankhyablocks/index-5992b7e6.js +0 -139
  117. package/dist/sankhyablocks/index-c683b2b0.js +0 -2394
  118. package/dist/sankhyablocks/index-c71285cb.js +0 -17
  119. package/dist/sankhyablocks/shadow-css-b18e99d7.js +0 -387
  120. package/dist/sankhyablocks/snk-application.entry.js +0 -8166
  121. package/dist/sankhyablocks/snk-crud.entry.js +0 -66
  122. package/dist/sankhyablocks/snk-data-unit.entry.js +0 -268
  123. package/dist/sankhyablocks/snk-filter-bar.entry.js +0 -462
  124. package/dist/sankhyablocks/snk-filter-binary-select.entry.js +0 -43
  125. package/dist/sankhyablocks/snk-filter-detail.entry.js +0 -80
  126. package/dist/sankhyablocks/snk-filter-item.entry.js +0 -173
  127. package/dist/sankhyablocks/snk-filter-list.entry.js +0 -87
  128. package/dist/sankhyablocks/snk-filter-modal.entry.js +0 -33
  129. package/dist/sankhyablocks/snk-filter-multi-select.entry.js +0 -19
  130. package/dist/sankhyablocks/snk-filter-number.entry.js +0 -20
  131. package/dist/sankhyablocks/snk-filter-period.entry.js +0 -33
  132. package/dist/sankhyablocks/snk-filter-personalized.entry.js +0 -85
  133. package/dist/sankhyablocks/snk-filter-search.entry.js +0 -40
  134. package/dist/sankhyablocks/snk-filter-text.entry.js +0 -18
  135. package/dist/sankhyablocks/snk-grid.entry.js +0 -75
  136. package/dist/sankhyablocks/snk-pesquisa.entry.js +0 -311
  137. package/dist/sankhyablocks/snk-taskbar.entry.js +0 -156
  138. package/dist/sankhyablocks/taskbar-elements-35d64ff9.js +0 -90
  139. package/dist/sankhyablocks/taskbar-processor-aa6772c9.js +0 -45
  140. package/dist/sankhyablocks/teste-pesquisa.entry.js +0 -33
@@ -1,7 +1,9 @@
1
- import { r as registerInstance, h, f as Host, g as getElement } from './index-2b4d2d14.js';
2
- import { t as toString, b as DataType, O as ObjectUtils, S as StringUtils, E as ErrorException, A as ApplicationContext } from './index-c683b2b0.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-81dda3cf.js';
2
+ import { DataType, ObjectUtils, StringUtils, ErrorException, ApplicationContext, FloatingManager, ArrayUtils } from '@sankhyalabs/core';
3
3
  import { F as FilterItemType } from './filter-item-type.enum-a79b2fa8.js';
4
- import { M as ModalAction } from './index-c71285cb.js';
4
+ import { ModalAction, ModalButtonStatus } from '@sankhyalabs/ezui/dist/collection/components/ez-modal-container';
5
+ import { toString } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
6
+ import { T as TaskbarElement, V as VisibleWhenForbidden, A as AuthorizationElements, b as buildElem, a as buildCustomButton } from './taskbar-elements-38eb5d51.js';
5
7
 
6
8
  const buildFilter = (item) => {
7
9
  switch (item.type) {
@@ -459,4 +461,434 @@ const SnkFilterBar = class {
459
461
  };
460
462
  SnkFilterBar.style = snkFilterBarCss;
461
463
 
462
- export { SnkFilterBar as snk_filter_bar };
464
+ const SnkFilterItem = class {
465
+ constructor(hostRef) {
466
+ registerInstance(this, hostRef);
467
+ this.filterChange = createEvent(this, "filterChange", 7);
468
+ this.innerClickCheck = (floatingContainer, node) => {
469
+ if (this._popover.keepOpened) {
470
+ return true;
471
+ }
472
+ if (node && floatingContainer) {
473
+ if (!node.offsetParent) {
474
+ return true;
475
+ }
476
+ let current = node;
477
+ do {
478
+ if (current === floatingContainer) {
479
+ return true;
480
+ }
481
+ } while ((current = current.offsetParent) != null);
482
+ }
483
+ this.detailIsVisible = false;
484
+ this.executeCloseCallback();
485
+ return false;
486
+ };
487
+ }
488
+ async showUp(open = false) {
489
+ return new Promise(resolve => {
490
+ this._filterItemElement.scrollIntoView({ behavior: "auto", block: "nearest", inline: "nearest" });
491
+ if (open) {
492
+ window.requestAnimationFrame(() => {
493
+ this._closeCallback = resolve;
494
+ this.showDetail();
495
+ });
496
+ }
497
+ });
498
+ }
499
+ showDetail() {
500
+ this._floatingID = FloatingManager.float(this._popover, this._popoverContainer, { autoClose: true, innerClickTest: this.innerClickCheck, left: this.getScrollOffset() });
501
+ this.detailIsVisible = true;
502
+ }
503
+ getScrollOffset() {
504
+ return `${this._filterItemElement.getBoundingClientRect().left + 12}px`;
505
+ }
506
+ hideDetail() {
507
+ if (this._floatingID != undefined) {
508
+ FloatingManager.close(this._floatingID);
509
+ }
510
+ this._floatingID = undefined;
511
+ this.detailIsVisible = false;
512
+ this.executeCloseCallback();
513
+ }
514
+ executeCloseCallback() {
515
+ if (this._closeCallback) {
516
+ this._closeCallback();
517
+ this._closeCallback = undefined;
518
+ }
519
+ }
520
+ //---------------------------------------------
521
+ // Event handlers
522
+ //---------------------------------------------
523
+ clickListener(evt) {
524
+ if ([this._chipElement, this._leftIconElement, this._rightIconElement].includes(evt.target)) {
525
+ if (evt.target === this._rightIconElement && this.config.value != undefined) {
526
+ this.filterChange.emit(Object.assign(Object.assign({}, this.config), { value: undefined }));
527
+ }
528
+ else {
529
+ if (this.detailIsVisible) {
530
+ this.hideDetail();
531
+ }
532
+ else {
533
+ this.showDetail();
534
+ }
535
+ }
536
+ evt.preventDefault();
537
+ evt.stopImmediatePropagation();
538
+ evt.stopPropagation();
539
+ }
540
+ }
541
+ mouseDownListener(evt) {
542
+ if (this.detailIsVisible && [this._chipElement, this._leftIconElement, this._rightIconElement].includes(evt.target)) {
543
+ evt.preventDefault();
544
+ evt.stopImmediatePropagation();
545
+ evt.stopPropagation();
546
+ }
547
+ }
548
+ getLabel() {
549
+ const { type, value, label, props } = this.config;
550
+ if (value) {
551
+ if (type === FilterItemType.BINARY_SELECT) {
552
+ const [optOne, optTwo] = props.options;
553
+ if (optOne.name === value) {
554
+ return optOne.label;
555
+ }
556
+ if (optTwo.name === value) {
557
+ return optTwo.label;
558
+ }
559
+ }
560
+ if (type === FilterItemType.MULTI_SELECT) {
561
+ const opt = props.options.find(opt => opt.value === value);
562
+ return `${label}: ${opt.label}`;
563
+ }
564
+ if (type === FilterItemType.PERIOD) {
565
+ let { end, start } = value;
566
+ if (typeof end === "string") {
567
+ end = new Date(end);
568
+ end.setMinutes(end.getMinutes() + end.getTimezoneOffset());
569
+ }
570
+ if (typeof start === "string") {
571
+ start = new Date(start);
572
+ start.setMinutes(start.getMinutes() + start.getTimezoneOffset());
573
+ }
574
+ const dateFormater = new Intl.DateTimeFormat("pt-BR");
575
+ if (end && start) {
576
+ return `${label}: ${dateFormater.format(start)} a ${dateFormater.format(end)}`;
577
+ }
578
+ else {
579
+ if (start) {
580
+ return `${label}: A partir de ${dateFormater.format(start)}`;
581
+ }
582
+ else if (end) {
583
+ return `${label}: Até ${dateFormater.format(end)}`;
584
+ }
585
+ else {
586
+ return label;
587
+ }
588
+ }
589
+ }
590
+ if (type === FilterItemType.SEARCH) {
591
+ return `${label}: ${value.value} - ${value.label}`;
592
+ }
593
+ if (type === FilterItemType.PERSONALIZED) {
594
+ return label;
595
+ }
596
+ return `${label}: ${value}`;
597
+ }
598
+ return label;
599
+ }
600
+ componentDidRender() {
601
+ if (this._floatingID == undefined) {
602
+ if (this._popover) {
603
+ this._popover.remove();
604
+ }
605
+ }
606
+ }
607
+ filterChangeListener() {
608
+ this.hideDetail();
609
+ }
610
+ getRightIconName() {
611
+ if (this.config.value != undefined) {
612
+ return "close";
613
+ }
614
+ return this.detailIsVisible ? "chevron-up" : "chevron-down";
615
+ }
616
+ getLeftIconName() {
617
+ switch (this.config.type) {
618
+ case FilterItemType.PERIOD:
619
+ return "calendar";
620
+ case FilterItemType.PERSONALIZED:
621
+ return "tune";
622
+ }
623
+ return undefined;
624
+ }
625
+ render() {
626
+ const leftIcon = this.getLeftIconName();
627
+ return (h(Host, null, h("ez-chip", { ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.config.value != undefined }, leftIcon ? h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" }) : undefined, h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon" })), h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, h("snk-filter-detail", { config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small", ref: elem => this._popover = elem, key: this.config.id }))));
628
+ }
629
+ get _filterItemElement() { return getElement(this); }
630
+ };
631
+
632
+ const SHOW_MORE_ITEM_NAME = "__SHOWMORE__";
633
+ const MAX_FILTERS = 5;
634
+ const SnkFilterList = class {
635
+ constructor(hostRef) {
636
+ registerInstance(this, hostRef);
637
+ this.snkItemSelected = createEvent(this, "snkItemSelected", 7);
638
+ this.innerClickCheck = (floatingContainer, node) => {
639
+ if (node && floatingContainer) {
640
+ if (!node.offsetParent) {
641
+ return true;
642
+ }
643
+ let current = node;
644
+ do {
645
+ if (current === floatingContainer || current === this._element) {
646
+ return true;
647
+ }
648
+ } while ((current = current.offsetParent) != null);
649
+ }
650
+ this._detailIsVisible = false;
651
+ return false;
652
+ };
653
+ }
654
+ showList() {
655
+ this._floatingID = FloatingManager.float(this._popover, this._popoverContainer, { autoClose: true, innerClickTest: this.innerClickCheck });
656
+ this._detailIsVisible = true;
657
+ this._showAll = false;
658
+ this._filterArgument = "";
659
+ }
660
+ hideList() {
661
+ if (this._floatingID != undefined) {
662
+ FloatingManager.close(this._floatingID);
663
+ }
664
+ this._floatingID = undefined;
665
+ this._detailIsVisible = false;
666
+ }
667
+ buttonClick() {
668
+ if (this._detailIsVisible) {
669
+ this.hideList();
670
+ }
671
+ else {
672
+ this.showList();
673
+ }
674
+ }
675
+ componentDidRender() {
676
+ if (this._floatingID == undefined) {
677
+ if (this._popover) {
678
+ this._popover.remove();
679
+ }
680
+ }
681
+ }
682
+ buildItemElement(item) {
683
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-align--middle ez-padding--small sc-snk-filter-bar snk-filter-bar__filter-list-item", onClick: () => this.itemSelected(item.name) }, item.iconName ? h("ez-icon", { iconName: item.iconName, size: "small", class: `ez-padding-right--extra-small sc-snk-filter-bar snk-filter-bar__filter-list-item__icon ${item.iconClass || ""}` }) : undefined, h("div", { class: `ez-text ez-text--medium ez-text--primary ez-padding--extra-small sc-snk-filter-bar snk-filter-bar__filter-list-item__label ${item.labelClass || ""}` }, item.label)));
684
+ }
685
+ itemSelected(itemName) {
686
+ if (itemName === SHOW_MORE_ITEM_NAME) {
687
+ this._showAll = true;
688
+ }
689
+ else {
690
+ this.hideList();
691
+ this.snkItemSelected.emit(itemName);
692
+ }
693
+ }
694
+ getFilterItems() {
695
+ const items = this.items ? ArrayUtils.applyStringFilter(this._filterArgument, this.items.filter(item => item.kind === "FILTER")) : [];
696
+ if (items.length === 0) {
697
+ return h("div", { class: "ez-text ez-text--medium ez-text--primary ez-padding--extra-small sc-snk-filter-bar snk-filter-bar__filter-list-items-container--empty" }, this.emptyText);
698
+ }
699
+ const hideItems = !this._filterArgument && !this._showAll && (items.length > MAX_FILTERS + 1);
700
+ if (hideItems) {
701
+ items.splice(MAX_FILTERS);
702
+ items.push({ kind: "INTERNAL", label: "Mostrar mais", iconName: "dots-horizontal", name: SHOW_MORE_ITEM_NAME, iconClass: "snk-filter-bar__filter-list-item__icon--secondary", labelClass: "snk-filter-bar__filter-list-item__label--secondary" });
703
+ }
704
+ return h("div", { class: "sc-snk-filter-bar snk-filter-bar__filter-list-items-container" }, items.map(item => this.buildItemElement(item)));
705
+ }
706
+ getFooterItems() {
707
+ return this.items.filter(item => item.kind === "FOOTER");
708
+ }
709
+ render() {
710
+ return (h(Host, { class: "ez-flex ez-flex--column" }, h("ez-button", { class: this.buttonClass, label: this.label, onClick: () => this.buttonClick(), mode: this.iconName ? "icon" : undefined, iconName: this.iconName, size: "small" }, h("slot", { name: "leftIcon" })), h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, h("div", { class: "sc-snk-filter-bar snk-filter__popover ez-padding--small", ref: elem => this._popover = elem }, h("ez-filter-input", { ref: ref => this._filterInput = ref, mode: "slim", label: this.findFilterText, value: this._filterArgument, onEzChange: (evt) => this._filterArgument = evt.detail }), this.getFilterItems(), h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), this.items ? this.getFooterItems().map(item => this.buildItemElement(item)) : undefined))));
711
+ }
712
+ get _element() { return getElement(this); }
713
+ };
714
+
715
+ const SnkFilterModal = class {
716
+ constructor(hostRef) {
717
+ registerInstance(this, hostRef);
718
+ }
719
+ updateValue(id, value) {
720
+ this.items = this.items.map(item => {
721
+ if (item.id === id) {
722
+ return Object.assign(Object.assign({}, item), { active: value });
723
+ }
724
+ return item;
725
+ });
726
+ }
727
+ getActiveFiltersMsg() {
728
+ const activeFilters = this.items.filter(item => item.active).length;
729
+ if (activeFilters === 0) {
730
+ return this.getMessage("snkFilterBar.noActiveFilters");
731
+ }
732
+ return this.getMessage(activeFilters > 1 ? "snkFilterBar.activeFilters" : "snkFilterBar.activeFilter", { ACTIVE_FILTERS: activeFilters });
733
+ }
734
+ getFilteredItems() {
735
+ return this.items ? ArrayUtils.applyStringFilter(this._filterArgument, this.items) : [];
736
+ }
737
+ render() {
738
+ const allowCancel = this.items.filter(item => item.active).length > 0;
739
+ return (h("ez-modal-container", { modalTitle: this.modalTitle, modalSubTitle: this.modalSubTitle, cancelButtonLabel: this.cancelButtonLabel, okButtonLabel: this.okButtonLabel, onEzModalAction: evt => this.processModalAction(evt.detail), cancelButtonStatus: allowCancel ? ModalButtonStatus.ENABLED : ModalButtonStatus.DISABLED }, h("div", { class: "sc-snk-filter-bar snk-filter-bar__filter-modal-content" }, h("div", null, this.useSearch ? h("ez-filter-input", { label: this.getMessage("snkFilterBar.modalFindFilter"), onEzChange: (evt) => this._filterArgument = evt.detail }) : undefined), this.getFilteredItems().length > 0 ? h("div", { class: "ez-text ez-text--medium ez-text--primary ez-padding-bottom--small" }, this.getActiveFiltersMsg()) : undefined, h("div", null, this.getFilteredItems().map(item => h("div", { class: "ez-padding--medium sc-snk-filter-bar snk-filter-bar__filter-modal-item ez-align--middle ez-margin-bottom--small" }, h("ez-check", { class: "sc-snk-filter-bar snk-filter-bar__filter-modal-item__check", onEzChange: evt => this.updateValue(item.id, evt.detail), enabled: item.enabled, value: item.active, mode: "switch" }), h("div", { class: "ez-text ez-title--primary ez-text--medium ez-margin-left--medium sc-snk-filter-bar snk-filter-bar__filter-modal-item__label" }, item.label)))), h("div", { class: "ez-text ez-text--large ez-align--middle ez-text--secondary ez-text--center ez-padding-bottom--large" }, this.infoText))));
740
+ }
741
+ };
742
+
743
+ const snkTaskbarCss = ".sc-snk-taskbar-h{display:flex}";
744
+
745
+ const SnkTaskbar = class {
746
+ constructor(hostRef) {
747
+ registerInstance(this, hostRef);
748
+ this.actionClick = createEvent(this, "actionClick", 7);
749
+ this._titleKeyByElement = {
750
+ [TaskbarElement.UPDATE]: "snkTaskbar.titleUpdate",
751
+ [TaskbarElement.PREVIOUS]: "snkTaskbar.titlePrevious",
752
+ [TaskbarElement.NEXT]: "snkTaskbar.titleNext",
753
+ [TaskbarElement.REFRESH]: "snkTaskbar.titleRefresh",
754
+ [TaskbarElement.CLONE]: "snkTaskbar.titleClone",
755
+ [TaskbarElement.REMOVE]: "snkTaskbar.titleRemove",
756
+ [TaskbarElement.MORE_OPTIONS]: "snkTaskbar.titleMoreOptions",
757
+ [TaskbarElement.INSERT]: "snkTaskbar.titleInsert",
758
+ [TaskbarElement.CANCEL]: "snkTaskbar.titleCancel",
759
+ [TaskbarElement.SAVE]: "snkTaskbar.titleSave",
760
+ [TaskbarElement.GRID_MODE]: "snkTaskbar.titleGridMode",
761
+ [TaskbarElement.CONFIG_GRID]: "snkTaskbar.titleConfigGrid",
762
+ [TaskbarElement.FORM_MODE]: "snkTaskbar.titleFormMode"
763
+ };
764
+ }
765
+ observeButtons() {
766
+ this._definitions = undefined;
767
+ }
768
+ // Internal methods
769
+ elementsFromString(strButtons) {
770
+ const elements = [];
771
+ if (strButtons) {
772
+ strButtons.split(",").forEach(buttonName => {
773
+ buttonName = buttonName.trim();
774
+ if (VisibleWhenForbidden[buttonName] || this.isAllowed(buttonName)) {
775
+ elements.push(buttonName.trim());
776
+ }
777
+ });
778
+ }
779
+ return elements;
780
+ }
781
+ isAllowed(buttonName) {
782
+ if (AuthorizationElements[buttonName]) {
783
+ return this._permissions ? this._permissions.isSup || this._permissions[buttonName] : false;
784
+ }
785
+ return true;
786
+ }
787
+ /**
788
+ * Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
789
+ * através de um pequeno modulo na estrutura da aplicação:
790
+ * - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
791
+ * Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-taskbar.msg.ts"
792
+ */
793
+ getTitle(element) {
794
+ let key;
795
+ if (this.isAllowed(element)) {
796
+ key = this._titleKeyByElement[element];
797
+ }
798
+ else {
799
+ key = "snkTaskbar.forbidden";
800
+ }
801
+ return key ? this._application.messagesBuilder.getMessage(key, {}) : "";
802
+ }
803
+ elementClick(elem) {
804
+ if (this.dataUnit) {
805
+ switch (elem) {
806
+ case TaskbarElement.PREVIOUS:
807
+ this.dataUnit.previousRecord();
808
+ break;
809
+ case TaskbarElement.NEXT:
810
+ this.dataUnit.nextRecord();
811
+ break;
812
+ case TaskbarElement.REFRESH:
813
+ this.dataUnit.loadData();
814
+ break;
815
+ case TaskbarElement.CLONE:
816
+ this.dataUnit.copySelected();
817
+ break;
818
+ case TaskbarElement.REMOVE:
819
+ this.dataUnit.removeSelectedRecords();
820
+ break;
821
+ case TaskbarElement.INSERT:
822
+ this.dataUnit.addRecord();
823
+ break;
824
+ case TaskbarElement.CANCEL:
825
+ this.dataUnit.cancelEdition();
826
+ break;
827
+ case TaskbarElement.SAVE:
828
+ this.dataUnit.saveData();
829
+ break;
830
+ }
831
+ }
832
+ this.actionClick.emit(elem);
833
+ }
834
+ isEnabled(elem) {
835
+ if (!this.isAllowed(elem)) {
836
+ return false;
837
+ }
838
+ return !(this.disabledButtons && this.disabledButtons.includes(elem));
839
+ }
840
+ getElement(index, def) {
841
+ let className = def === this.primaryButton ? "ez-button--primary " : "";
842
+ if (index > 1) {
843
+ className += "ez-padding-left--medium";
844
+ }
845
+ if (TaskbarElement[def.toString()]) {
846
+ return buildElem(def, className, elem => this.getTitle(elem), elem => this.elementClick(elem), elem => this.isEnabled(elem), this.actionsList);
847
+ }
848
+ else {
849
+ return buildCustomButton(def, className, elem => this.elementClick(elem), elem => this.isEnabled(elem));
850
+ }
851
+ }
852
+ // Lifecycle
853
+ componentWillLoad() {
854
+ this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
855
+ if (this._application) {
856
+ this._application.getAllAccess().then(access => this._permissions = access);
857
+ }
858
+ else {
859
+ this._permissions = {};
860
+ }
861
+ }
862
+ componentWillRender() {
863
+ if (this._definitions == undefined && this._permissions) {
864
+ this._definitions = this.elementsFromString(this.buttons);
865
+ }
866
+ }
867
+ render() {
868
+ if (this._definitions === undefined) {
869
+ return undefined;
870
+ }
871
+ let index = 0;
872
+ return (h(Host, null, this._definitions.map((elem) => {
873
+ if (elem === TaskbarElement.DIVIDER) {
874
+ index = 0;
875
+ }
876
+ else {
877
+ index++;
878
+ }
879
+ if (TaskbarElement[elem]) {
880
+ return this.getElement(index, TaskbarElement[elem]);
881
+ }
882
+ if (this.customButtons.has(elem)) {
883
+ return this.getElement(index, this.customButtons.get(elem));
884
+ }
885
+ return h("slot", { name: elem });
886
+ })));
887
+ }
888
+ static get watchers() { return {
889
+ "buttons": ["observeButtons"]
890
+ }; }
891
+ };
892
+ SnkTaskbar.style = snkTaskbarCss;
893
+
894
+ export { SnkFilterBar as snk_filter_bar, SnkFilterItem as snk_filter_item, SnkFilterList as snk_filter_list, SnkFilterModal as snk_filter_modal, SnkTaskbar as snk_taskbar };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, f as Host } from './index-2b4d2d14.js';
1
+ import { r as registerInstance, h, H as Host } from './index-81dda3cf.js';
2
2
  import { F as FilterItemType } from './filter-item-type.enum-a79b2fa8.js';
3
3
 
4
4
  const SnkFilterBinarySelect = class {
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, e as createEvent, h, f as Host } from './index-2b4d2d14.js';
2
- import { A as ApplicationUtils } from './index-5992b7e6.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-81dda3cf.js';
2
+ import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
3
3
  import { F as FilterItemType } from './filter-item-type.enum-a79b2fa8.js';
4
4
 
5
5
  const SnkFilterDetail = class {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-2b4d2d14.js';
1
+ import { r as registerInstance, h } from './index-81dda3cf.js';
2
2
  import { F as FilterItemType } from './filter-item-type.enum-a79b2fa8.js';
3
3
 
4
4
  const SnkFilterMultiSelect = class {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-2b4d2d14.js';
1
+ import { r as registerInstance, h } from './index-81dda3cf.js';
2
2
  import { F as FilterItemType } from './filter-item-type.enum-a79b2fa8.js';
3
3
 
4
4
  const SnkFilterPeriod = class {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-2b4d2d14.js';
1
+ import { r as registerInstance, h } from './index-81dda3cf.js';
2
2
  import { F as FilterItemType } from './filter-item-type.enum-a79b2fa8.js';
3
3
 
4
4
  const SnkFilterPeriod = class {
@@ -1,5 +1,6 @@
1
- import { r as registerInstance, h, f as Host } from './index-2b4d2d14.js';
2
- import { U as UserInterface, c as convertType, A as ApplicationContext } from './index-c683b2b0.js';
1
+ import { r as registerInstance, h, H as Host } from './index-81dda3cf.js';
2
+ import { UserInterface, ApplicationContext } from '@sankhyalabs/core';
3
+ import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
3
4
  import { F as FilterItemType } from './filter-item-type.enum-a79b2fa8.js';
4
5
 
5
6
  const SnkFilterPersonalized = class {
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-2b4d2d14.js';
2
- import { A as ApplicationContext } from './index-c683b2b0.js';
1
+ import { r as registerInstance, h } from './index-81dda3cf.js';
2
+ import { ApplicationContext } from '@sankhyalabs/core';
3
3
  import { F as FilterItemType } from './filter-item-type.enum-a79b2fa8.js';
4
4
 
5
5
  const SnkFilterSearch = class {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-2b4d2d14.js';
1
+ import { r as registerInstance, h } from './index-81dda3cf.js';
2
2
 
3
3
  const SnkFilterText = class {
4
4
  constructor(hostRef) {
@@ -1,6 +1,50 @@
1
- import { r as registerInstance, e as createEvent, h, g as getElement } from './index-2b4d2d14.js';
2
- import { A as ApplicationContext } from './index-c683b2b0.js';
3
- import { T as TaskbarProcessor } from './taskbar-processor-aa6772c9.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-81dda3cf.js';
2
+ import { ApplicationContext } from '@sankhyalabs/core';
3
+ import { T as TaskbarElement } from './taskbar-elements-38eb5d51.js';
4
+
5
+ class TaskbarProcessor {
6
+ constructor(defaultButtons) {
7
+ this._defaultButtons = defaultButtons;
8
+ }
9
+ process(taskbarId, taskbarManager, dataState, disabledButtons = []) {
10
+ var _a;
11
+ this.customButtons = new Map();
12
+ this.buttons = "";
13
+ this.disabledButtons = [];
14
+ (_a = this.getButtonsArray(taskbarId, taskbarManager, dataState)) === null || _a === void 0 ? void 0 : _a.forEach(btnDef => {
15
+ let buttonName;
16
+ if (typeof btnDef === "string") {
17
+ buttonName = btnDef;
18
+ }
19
+ else {
20
+ const customBtn = btnDef;
21
+ this.customButtons.set(customBtn.name, customBtn);
22
+ buttonName = customBtn.name;
23
+ }
24
+ if (!this.isEnabled(taskbarId, taskbarManager, buttonName, dataState, disabledButtons)) {
25
+ this.disabledButtons.push(buttonName);
26
+ }
27
+ if (this.buttons.length > 0) {
28
+ this.buttons += ",";
29
+ }
30
+ this.buttons += buttonName;
31
+ });
32
+ }
33
+ getButtonsArray(taskbarId, taskbarManager, dataState) {
34
+ const defaults = this._defaultButtons[taskbarId];
35
+ if (taskbarManager) {
36
+ return taskbarManager.getButtons(taskbarId, dataState, [...defaults]);
37
+ }
38
+ return defaults;
39
+ }
40
+ isEnabled(taskbarId, taskbarManager, buttonName, dataState, disabled) {
41
+ const originalValue = disabled.includes(buttonName) ? false : true;
42
+ if (taskbarManager && taskbarManager.isEnabled) {
43
+ return taskbarManager.isEnabled(taskbarId, dataState, buttonName, originalValue);
44
+ }
45
+ return originalValue;
46
+ }
47
+ }
4
48
 
5
49
  const snkFormCss = ".sc-snk-form-h{display:block}.snk-form.sc-snk-form{position:relative;padding:var(--space--large);padding-top:var(--space--medium)}.snk-form__header.sc-snk-form{position:relative;padding-top:var(--space--medium);padding-bottom:var(--space--medium);margin-bottom:var(--space--medium)}.snk-form__header--fixed.sc-snk-form{position:sticky;top:0;background:var(--background--body);z-index:var(--more-visible, 2);padding-left:var(--space--large);padding-right:var(--space--large);margin-left:calc(var(--space--large) * -1);margin-right:calc(var(--space--large) * -1);width:calc(100% + (var(--space--large) * 2))}";
6
50
 
@@ -126,4 +170,73 @@ const SnkForm = class {
126
170
  };
127
171
  SnkForm.style = snkFormCss;
128
172
 
129
- export { SnkForm as snk_form };
173
+ const snkGridCss = ".snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100%}.snk-grid__header.sc-snk-grid{display:flex;flex-wrap:nowrap;width:100%}.snk-grid__filter-bar.sc-snk-grid{width:100%}.snk-grid__header-divider.sc-snk-grid{margin-bottom:var(--space--small)}";
174
+
175
+ const SnkGrid = class {
176
+ constructor(hostRef) {
177
+ registerInstance(this, hostRef);
178
+ this.actionClick = createEvent(this, "actionClick", 7);
179
+ this.gridDoubleClick = createEvent(this, "gridDoubleClick", 7);
180
+ this._topTaskbarProcessor = new TaskbarProcessor({
181
+ "snkGridTopTaskbar": ["FORM_MODE", "CONFIG_GRID", "INSERT"]
182
+ });
183
+ this._headerTaskbarProcessor = new TaskbarProcessor({
184
+ "snkGridHeaderTaskbar.unselected": ["REFRESH"],
185
+ "snkGridHeaderTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH"]
186
+ });
187
+ }
188
+ actionClickHandler(evt) {
189
+ if (evt.detail === TaskbarElement.CONFIG_GRID && this._grid) {
190
+ this._grid.openGridConfig();
191
+ }
192
+ }
193
+ saveConfig(config) {
194
+ const snkApplication = ApplicationContext.getContextValue("__SNK__APPLICATION__");
195
+ if (snkApplication) {
196
+ snkApplication.saveGridConfig(config);
197
+ }
198
+ }
199
+ componentWillLoad() {
200
+ const snkApplication = ApplicationContext.getContextValue("__SNK__APPLICATION__");
201
+ if (snkApplication) {
202
+ snkApplication.loadGridConfig(this.configName).then(cfg => {
203
+ this._gridConfig = cfg;
204
+ this._configLoaded = true;
205
+ });
206
+ //Forçamos a carga dos acessos pra aproveitar a request inicial.
207
+ snkApplication.getAllAccess();
208
+ }
209
+ let parent = this._element.parentElement;
210
+ while (parent) {
211
+ if (parent.tagName.toUpperCase() === "SNK-DATA-UNIT") {
212
+ this._snkDataUnit = parent;
213
+ this._dataUnit = this._snkDataUnit.dataUnit;
214
+ if (!this._dataUnit) {
215
+ this._snkDataUnit.addEventListener("dataUnitReady", (evt) => {
216
+ this._dataUnit = evt.detail;
217
+ });
218
+ }
219
+ this._snkDataUnit.addEventListener("dataStateChange", (evt) => {
220
+ this._dataState = evt.detail;
221
+ });
222
+ break;
223
+ }
224
+ parent = parent.parentElement;
225
+ }
226
+ }
227
+ componentWillRender() {
228
+ const headerTaskbarId = this._dataState && this._dataState.selectedRecords.length > 0 ? "snkGridHeaderTaskbar.selected" : "snkGridHeaderTaskbar.unselected";
229
+ this._headerTaskbarProcessor.process(headerTaskbarId, this.taskbarManager, this._dataState);
230
+ this._topTaskbarProcessor.process("snkGridTopTaskbar", this.taskbarManager, this._dataState);
231
+ }
232
+ render() {
233
+ if (!this._configLoaded || !this._dataUnit) {
234
+ return undefined;
235
+ }
236
+ return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, h("div", { class: "snk-grid__header ez-padding-bottom--medium ez-margin-bottom--medium" }, h("snk-filter-bar", { dataUnit: this._dataUnit, class: "snk-grid__filter-bar ez-align--top", configName: this.configName }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" }), h("snk-taskbar", { class: "ez-padding-left--medium", onActionClick: evt => this.actionClickHandler(evt), key: "topTaskbar", dataUnit: this._dataUnit, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: "INSERT" })), h("ez-grid", { ref: ref => this._grid = ref, dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: evt => { this.saveConfig(evt.detail); }, onEzDoubleClick: () => this.gridDoubleClick.emit(), statusResolver: this.statusResolver }, h("snk-taskbar", { dataUnit: this._dataUnit, buttons: this._headerTaskbarProcessor.buttons, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.actionsList })), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" }))));
237
+ }
238
+ get _element() { return getElement(this); }
239
+ };
240
+ SnkGrid.style = snkGridCss;
241
+
242
+ export { SnkForm as snk_form, SnkGrid as snk_grid };
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, f as Host } from './index-2b4d2d14.js';
2
- import { O as ObjectUtils, S as StringUtils } from './index-c683b2b0.js';
1
+ import { r as registerInstance, h, H as Host } from './index-81dda3cf.js';
2
+ import { ObjectUtils, StringUtils } from '@sankhyalabs/core';
3
3
 
4
4
  const snkPesquisaCss = ".sc-snk-pesquisa-h{--snk-pesquisa--font-size:var(--text--medium, 14px);--snk-pesquisa--font-family:var(--font-pattern, Arial);--snk-pesquisa--font-weight:var(--text-weight--medium, 400);--snk-pesquisa__records--color:var(--text--primary, #626e82);--snk-pesquisa__records--padding-vertical:var(--space--medium, 12px);--snk-pesquisa__content--padding-right:var(--space--small, 6px);--snk-pesquisa__content-scrollbar--background-color-primary:var(--scrollbar--primary, #2B3A54);--snk-pesquisa__content-scrollbar--background-color-secondary:var(--scrollbar--secondary, #E5EAF0);--snk-pesquisa__content-scrollbar--border-radius:var(--border--radius-small, 6px);--snk-pesquisa__content-scrollbar--width:var(--space--medium, 12px);--snk-pesquisa__btn--color:var(--title--primary, #2B3A54);--snk-pesquisa__btn-disabled--color:var(--text--disable, #AFB6C0);--snk-pesquisa__btn-hover--color:var(--color--primary, #4e4e4e);max-height:100%;height:100%;display:flex;flex-direction:column;overflow-y:auto}.snk-pesquisa.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%}.snk-pesquisa__input.sc-snk-pesquisa{display:flex;width:100%;box-sizing:border-box;padding-top:4px;padding-right:4px}.snk-pesquisa__input.sc-snk-pesquisa ez-icon.sc-snk-pesquisa{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.snk-pesquisa__content.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--snk-pesquisa__content-scrollbar--background-color-primary) var(--snk-pesquisa__content-scrollbar--background-color-secondary);padding-right:var(--snk-pesquisa__content--padding-right)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-track{background-color:var(--snk-pesquisa__content-scrollbar--background-color-secondary);border-radius:var(--snk-pesquisa__content-scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb{background-color:var(--snk-pesquisa__content-scrollbar--background-color-primary);border-radius:var(--snk-pesquisa__content-scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar{background-color:var(--snk-pesquisa__content-scrollbar--background-color-secondary);width:var(--snk-pesquisa__content-scrollbar--width);max-width:var(--snk-pesquisa__content-scrollbar--width);min-width:var(--snk-pesquisa__content-scrollbar--width)}.snk-pesquisa__records.sc-snk-pesquisa{font-family:var(--snk-pesquisa--font-family);font-weight:var(--snk-pesquisa--font-weight);font-size:var(--snk-pesquisa--font-size);color:var(--snk-pesquisa__records--color);padding-bottom:var(--snk-pesquisa__records--padding-vertical);padding-top:var(--snk-pesquisa__records--padding-vertical)}.snk-pesquisa__btn.sc-snk-pesquisa{outline:none;border:none;background:none;cursor:pointer;color:var(--snk-pesquisa__btn--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled:hover{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:hover{color:var(--snk-pesquisa__btn-hover--color)}";
5
5
 
@@ -1,4 +1,4 @@
1
- import { h } from './index-2b4d2d14.js';
1
+ import { h } from './index-81dda3cf.js';
2
2
 
3
3
  var TaskbarElement;
4
4
  (function (TaskbarElement) {
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-2b4d2d14.js';
2
- import { D as DataUnit, b as DataType, U as UserInterface } from './index-c683b2b0.js';
1
+ import { r as registerInstance, h } from './index-81dda3cf.js';
2
+ import { DataUnit, DataType, UserInterface } from '@sankhyalabs/core';
3
3
 
4
4
  const testePesquisaCss = ":host{display:block}";
5
5