@sankhyalabs/sankhyablocks 1.3.31-beta.14 → 1.3.31-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{SnkMessageBuilder-bb55d4c4.js → SnkMessageBuilder-cb132e6d.js} +134 -1
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/css-shim-b8158822.js +6 -0
- package/dist/cjs/dom-36862b77.js +75 -0
- package/dist/cjs/filter-item-type.enum-e2e1bc5b.js +14 -0
- package/dist/cjs/index-02201bc9.js +2397 -0
- package/dist/cjs/index-b0b676c5.js +3298 -0
- package/dist/cjs/loader.cjs.js +19 -3
- package/dist/cjs/sankhyablocks.cjs.js +117 -5
- package/dist/cjs/shadow-css-346c0795.js +389 -0
- package/dist/cjs/snk-application.cjs.entry.js +542 -66
- package/dist/cjs/snk-crud.cjs.entry.js +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +23 -24
- package/dist/cjs/snk-filter-bar.cjs.entry.js +199 -0
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +47 -0
- package/dist/cjs/snk-filter-detail.cjs.entry.js +44 -0
- package/dist/cjs/snk-filter-item.cjs.entry.js +131 -0
- package/dist/cjs/snk-filter-list.cjs.entry.js +91 -0
- package/dist/cjs/snk-filter-number.cjs.entry.js +23 -0
- package/dist/cjs/snk-filter-period.cjs.entry.js +26 -0
- package/dist/cjs/snk-filter-search.cjs.entry.js +44 -0
- package/dist/cjs/snk-filter-text.cjs.entry.js +22 -0
- package/dist/cjs/{snk-form_2.cjs.entry.js → snk-form.cjs.entry.js} +3 -65
- package/dist/cjs/snk-grid.cjs.entry.js +69 -0
- package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
- package/dist/cjs/snk-taskbar.cjs.entry.js +5 -4
- package/dist/cjs/{taskbar-elements-2888ceb6.js → taskbar-elements-efa44ff1.js} +1 -1
- package/dist/cjs/teste-pesquisa.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +11 -2
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +7 -0
- package/dist/collection/components/snk-application/snk-application.js +775 -695
- package/dist/collection/components/snk-crud/snk-crud.js +75 -73
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +262 -250
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +88 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +64 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +69 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +118 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +63 -0
- package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +10 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +113 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +209 -0
- package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +182 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +99 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +257 -0
- package/dist/collection/components/snk-form/snk-form.js +111 -111
- package/dist/collection/components/snk-grid/snk-grid.css +14 -1
- package/dist/collection/components/snk-grid/snk-grid.js +93 -92
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +80 -79
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +1 -2
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +128 -116
- package/dist/collection/components/teste-pesquisa/teste-pesquisa.js +12 -9
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +24 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +1 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +268 -0
- package/dist/collection/lib/message/SnkMessageBuilder.js +3 -1
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +1 -0
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +14 -0
- package/dist/components/SnkMessageBuilder.js +134 -2
- package/dist/components/filter-item-type.enum.js +12 -0
- package/dist/components/index.d.ts +17 -5
- package/dist/components/index.js +21 -0
- package/dist/components/index2.js +2384 -0
- package/dist/components/snk-application2.js +508 -30
- package/dist/components/snk-crud.js +25 -1
- package/dist/components/snk-data-unit.js +3 -4
- package/dist/components/snk-filter-bar.d.ts +11 -0
- package/dist/components/snk-filter-bar.js +6 -0
- package/dist/components/snk-filter-bar2.js +230 -0
- package/dist/components/snk-filter-binary-select.d.ts +11 -0
- package/dist/components/snk-filter-binary-select.js +63 -0
- package/dist/components/snk-filter-detail.d.ts +11 -0
- package/dist/components/snk-filter-detail.js +6 -0
- package/dist/components/snk-filter-detail2.js +58 -0
- package/dist/components/snk-filter-item.d.ts +11 -0
- package/dist/components/snk-filter-item.js +6 -0
- package/dist/components/snk-filter-item2.js +151 -0
- package/dist/components/snk-filter-list.d.ts +11 -0
- package/dist/components/snk-filter-list.js +6 -0
- package/dist/components/snk-filter-list2.js +108 -0
- package/dist/components/snk-filter-number.d.ts +11 -0
- package/dist/components/snk-filter-number.js +39 -0
- package/dist/components/snk-filter-period.d.ts +11 -0
- package/dist/components/snk-filter-period.js +42 -0
- package/dist/components/snk-filter-search.d.ts +11 -0
- package/dist/components/snk-filter-search.js +62 -0
- package/dist/components/snk-filter-text.d.ts +11 -0
- package/dist/components/snk-filter-text.js +38 -0
- package/dist/components/snk-form2.js +1 -1
- package/dist/components/snk-grid2.js +28 -4
- package/dist/components/snk-pesquisa2.js +1 -1
- package/dist/components/snk-taskbar2.js +2 -1
- package/dist/components/teste-pesquisa.js +1 -1
- package/dist/esm/{SnkMessageBuilder-17d91b88.js → SnkMessageBuilder-cff80920.js} +134 -2
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/css-shim-b3f2ee8d.js +4 -0
- package/dist/esm/dom-665d6011.js +73 -0
- package/dist/esm/filter-item-type.enum-61fbf80a.js +12 -0
- package/dist/esm/index-2b4d2d14.js +3262 -0
- package/dist/esm/index-e5b61043.js +2384 -0
- package/dist/esm/loader.js +19 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/sankhyablocks.js +117 -5
- package/dist/esm/shadow-css-b18e99d7.js +387 -0
- package/dist/esm/snk-application.entry.js +507 -31
- package/dist/esm/snk-crud.entry.js +1 -1
- package/dist/esm/snk-data-unit.entry.js +4 -5
- package/dist/esm/snk-filter-bar.entry.js +195 -0
- package/dist/esm/snk-filter-binary-select.entry.js +43 -0
- package/dist/esm/snk-filter-detail.entry.js +40 -0
- package/dist/esm/snk-filter-item.entry.js +127 -0
- package/dist/esm/snk-filter-list.entry.js +87 -0
- package/dist/esm/snk-filter-number.entry.js +19 -0
- package/dist/esm/snk-filter-period.entry.js +22 -0
- package/dist/esm/snk-filter-search.entry.js +40 -0
- package/dist/esm/snk-filter-text.entry.js +18 -0
- package/dist/esm/{snk-form_2.entry.js → snk-form.entry.js} +3 -64
- package/dist/esm/snk-grid.entry.js +65 -0
- package/dist/esm/snk-pesquisa.entry.js +2 -2
- package/dist/esm/snk-taskbar.entry.js +4 -3
- package/dist/esm/{taskbar-elements-5ea74223.js → taskbar-elements-c119510a.js} +1 -1
- package/dist/esm/teste-pesquisa.entry.js +2 -2
- package/dist/sankhyablocks/SnkMessageBuilder-cff80920.js +299 -0
- package/dist/sankhyablocks/app-globals-0f993ce5.js +3 -0
- package/dist/sankhyablocks/css-shim-b3f2ee8d.js +4 -0
- package/dist/sankhyablocks/dom-665d6011.js +73 -0
- package/dist/sankhyablocks/filter-item-type.enum-61fbf80a.js +12 -0
- package/dist/sankhyablocks/index-2b4d2d14.js +3262 -0
- package/dist/sankhyablocks/index-e5b61043.js +2384 -0
- package/dist/sankhyablocks/index.esm.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +129 -1
- package/dist/sankhyablocks/shadow-css-b18e99d7.js +387 -0
- package/dist/sankhyablocks/snk-application.entry.js +8306 -0
- package/dist/sankhyablocks/snk-crud.entry.js +60 -0
- package/dist/sankhyablocks/snk-data-unit.entry.js +272 -0
- package/dist/sankhyablocks/snk-filter-bar.entry.js +195 -0
- package/dist/sankhyablocks/snk-filter-binary-select.entry.js +43 -0
- package/dist/sankhyablocks/snk-filter-detail.entry.js +40 -0
- package/dist/sankhyablocks/snk-filter-item.entry.js +127 -0
- package/dist/sankhyablocks/snk-filter-list.entry.js +87 -0
- package/dist/sankhyablocks/snk-filter-number.entry.js +19 -0
- package/dist/sankhyablocks/snk-filter-period.entry.js +22 -0
- package/dist/sankhyablocks/snk-filter-search.entry.js +40 -0
- package/dist/sankhyablocks/snk-filter-text.entry.js +18 -0
- package/dist/sankhyablocks/snk-form.entry.js +111 -0
- package/dist/sankhyablocks/snk-grid.entry.js +65 -0
- package/dist/sankhyablocks/snk-pesquisa.entry.js +311 -0
- package/dist/sankhyablocks/snk-taskbar.entry.js +153 -0
- package/dist/sankhyablocks/taskbar-elements-c119510a.js +72 -0
- package/dist/sankhyablocks/teste-pesquisa.entry.js +33 -0
- package/dist/types/components/snk-application/errorhandler/snk-error-handler.d.ts +1 -0
- package/dist/types/components/snk-application/snk-application.d.ts +9 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +12 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +7 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +13 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +12 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +7 -0
- package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +9 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +13 -0
- package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +37 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +43 -0
- package/dist/types/components.d.ts +199 -0
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.d.ts +5 -0
- package/dist/types/lib/message/resources/snk-filter-bar.msg.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +15 -4
- package/loader/package.json +1 -0
- package/package.json +5 -5
- package/react/components.d.ts +0 -7
- package/react/components.js +0 -7
- package/react/components.js.map +1 -1
- package/dist/cjs/index-c6671817.js +0 -1642
- package/dist/esm/index-6a83ac96.js +0 -1614
- package/dist/sankhyablocks/p-4c7b32d6.entry.js +0 -1
- package/dist/sankhyablocks/p-56a32417.entry.js +0 -1
- package/dist/sankhyablocks/p-825d2c38.entry.js +0 -74
- package/dist/sankhyablocks/p-ab694dbc.js +0 -1
- package/dist/sankhyablocks/p-b559117b.js +0 -1
- package/dist/sankhyablocks/p-cd1dc099.js +0 -2
- package/dist/sankhyablocks/p-ce2d1214.entry.js +0 -1
- package/dist/sankhyablocks/p-d25637c9.entry.js +0 -1
- package/dist/sankhyablocks/p-d25803a1.entry.js +0 -1
- package/dist/sankhyablocks/p-edf81d2c.entry.js +0 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-b0b676c5.js');
|
|
6
|
+
const index$1 = require('./index-02201bc9.js');
|
|
7
|
+
|
|
8
|
+
const SHOW_MORE_ITEM_NAME = "__SHOWMORE__";
|
|
9
|
+
const MAX_FILTERS = 5;
|
|
10
|
+
const SnkFilterList = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.snkItemSelected = index.createEvent(this, "snkItemSelected", 7);
|
|
14
|
+
this.innerClickCheck = (floatingContainer, node) => {
|
|
15
|
+
if (node && floatingContainer) {
|
|
16
|
+
if (!node.offsetParent) {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
let current = node;
|
|
20
|
+
do {
|
|
21
|
+
if (current === floatingContainer || current === this._element) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
} while ((current = current.offsetParent) != null);
|
|
25
|
+
}
|
|
26
|
+
this._detailIsVisible = false;
|
|
27
|
+
return false;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
showList() {
|
|
31
|
+
this._floatingID = index$1.FloatingManager.float(this._popover, this._popoverContainer, { autoClose: true, innerClickTest: this.innerClickCheck });
|
|
32
|
+
this._detailIsVisible = true;
|
|
33
|
+
this._showAll = false;
|
|
34
|
+
this._filterArgument = "";
|
|
35
|
+
}
|
|
36
|
+
hideList() {
|
|
37
|
+
if (this._floatingID != undefined) {
|
|
38
|
+
index$1.FloatingManager.close(this._floatingID);
|
|
39
|
+
}
|
|
40
|
+
this._floatingID = undefined;
|
|
41
|
+
this._detailIsVisible = false;
|
|
42
|
+
}
|
|
43
|
+
buttonClick() {
|
|
44
|
+
if (this._detailIsVisible) {
|
|
45
|
+
this.hideList();
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this.showList();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
componentDidRender() {
|
|
52
|
+
if (this._floatingID == undefined) {
|
|
53
|
+
if (this._popover) {
|
|
54
|
+
this._popover.remove();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
buildItemElement(item) {
|
|
59
|
+
return (index.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 ? index.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, index.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)));
|
|
60
|
+
}
|
|
61
|
+
itemSelected(itemName) {
|
|
62
|
+
if (itemName === SHOW_MORE_ITEM_NAME) {
|
|
63
|
+
this._showAll = true;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
this.hideList();
|
|
67
|
+
this.snkItemSelected.emit(itemName);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
getFilterItems() {
|
|
71
|
+
const items = this.items ? index$1.ArrayUtils.applyStringFilter(this._filterArgument, this.items.filter(item => item.kind === "FILTER")) : [];
|
|
72
|
+
if (items.length === 0) {
|
|
73
|
+
return index.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.getMessage("snkFilterBar.emptyFilterList"));
|
|
74
|
+
}
|
|
75
|
+
const hideItems = !this._filterArgument && !this._showAll && (items.length > MAX_FILTERS + 1);
|
|
76
|
+
if (hideItems) {
|
|
77
|
+
items.splice(MAX_FILTERS);
|
|
78
|
+
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" });
|
|
79
|
+
}
|
|
80
|
+
return index.h("div", { class: "sc-snk-filter-bar snk-filter-bar__filter-list-items-container" }, items.map(item => this.buildItemElement(item)));
|
|
81
|
+
}
|
|
82
|
+
getFooterItems() {
|
|
83
|
+
return this.items.filter(item => item.kind === "FOOTER");
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
return (index.h(index.Host, { class: "ez-flex ez-flex--column" }, index.h("ez-button", { label: this.label, onClick: () => this.buttonClick(), mode: this.iconName ? "icon" : undefined, iconName: this.iconName, size: "small" }, index.h("slot", { name: "leftIcon" })), index.h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, index.h("div", { class: "sc-snk-filter-bar snk-filter__popover ez-padding--small", ref: elem => this._popover = elem }, index.h("ez-filter-input", { ref: ref => this._filterInput = ref, mode: "slim", label: this.getMessage("snkFilterBar.findFilter"), value: this._filterArgument, onEzChange: (evt) => this._filterArgument = evt.detail }), this.getFilterItems(), index.h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), this.items ? this.getFooterItems().map(item => this.buildItemElement(item)) : undefined))));
|
|
87
|
+
}
|
|
88
|
+
get _element() { return index.getElement(this); }
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
exports.snk_filter_list = SnkFilterList;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-b0b676c5.js');
|
|
6
|
+
const filterItemType_enum = require('./filter-item-type.enum-e2e1bc5b.js');
|
|
7
|
+
|
|
8
|
+
const SnkFilterPeriod = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
}
|
|
12
|
+
ezChangeListener(evt) {
|
|
13
|
+
this.value = evt.detail;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
if (!this.config || this.config.type !== filterItemType_enum.FilterItemType.NUMBER) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
return (index.h("ez-number-input", { label: this.config.label, value: this.config.value }));
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.snk_filter_number = SnkFilterPeriod;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-b0b676c5.js');
|
|
6
|
+
const filterItemType_enum = require('./filter-item-type.enum-e2e1bc5b.js');
|
|
7
|
+
|
|
8
|
+
const SnkFilterPeriod = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
}
|
|
12
|
+
ezChangeListener() {
|
|
13
|
+
const start = this._startDate.value;
|
|
14
|
+
const end = this._endDate.value;
|
|
15
|
+
this.value = (start || end ? { start, end } : undefined);
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
if (!this.config || this.config.type !== filterItemType_enum.FilterItemType.PERIOD) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
return (index.h("div", { class: "ez-col ez-col--nowrap" }, index.h("ez-date-input", { label: this.config.label, ref: ref => this._startDate = ref, value: (_a = this.config.value) === null || _a === void 0 ? void 0 : _a.start }), index.h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9"), index.h("ez-date-input", { label: this.config.label, ref: ref => this._endDate = ref, value: (_b = this.config.value) === null || _b === void 0 ? void 0 : _b.end })));
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
exports.snk_filter_period = SnkFilterPeriod;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-b0b676c5.js');
|
|
6
|
+
const index$1 = require('./index-02201bc9.js');
|
|
7
|
+
const filterItemType_enum = require('./filter-item-type.enum-e2e1bc5b.js');
|
|
8
|
+
|
|
9
|
+
const SnkFilterSearch = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
}
|
|
13
|
+
ezChangeListener(_evt) {
|
|
14
|
+
this.value = this._searchInput.value;
|
|
15
|
+
}
|
|
16
|
+
doSearch(mode, argument) {
|
|
17
|
+
const application = index$1.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
18
|
+
if (this.fix) {
|
|
19
|
+
this.fix();
|
|
20
|
+
}
|
|
21
|
+
return new Promise((resolve, reject) => {
|
|
22
|
+
application.executePreparedSearch(mode, argument, this.config.props.searchContext)
|
|
23
|
+
.then(result => {
|
|
24
|
+
resolve(result);
|
|
25
|
+
if (this.unfix) {
|
|
26
|
+
this.unfix();
|
|
27
|
+
}
|
|
28
|
+
}).catch(reason => {
|
|
29
|
+
reject(reason);
|
|
30
|
+
if (this.unfix) {
|
|
31
|
+
this.unfix();
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
if (!this.config || this.config.type !== filterItemType_enum.FilterItemType.SEARCH) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
return (index.h("ez-search", { value: this.config.value, label: this.config.label, ref: ref => this._searchInput = ref, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument) }));
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
exports.snk_filter_search = SnkFilterSearch;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-b0b676c5.js');
|
|
6
|
+
|
|
7
|
+
const SnkFilterText = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
ezChangeListener(evt) {
|
|
12
|
+
this.value = evt.detail;
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
if (!this.config) {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
return (index.h("ez-text-input", { label: this.config.label, value: this.config.value }));
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
exports.snk_filter_text = SnkFilterText;
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
7
|
-
const taskbarElements = require('./taskbar-elements-2888ceb6.js');
|
|
5
|
+
const index = require('./index-b0b676c5.js');
|
|
6
|
+
const index$1 = require('./index-02201bc9.js');
|
|
8
7
|
|
|
9
8
|
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))}";
|
|
10
9
|
|
|
@@ -70,7 +69,7 @@ const SnkForm = class {
|
|
|
70
69
|
return ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.selectedRecords) ? this._dataState.selectedRecords[0] : undefined;
|
|
71
70
|
}
|
|
72
71
|
componentWillLoad() {
|
|
73
|
-
this._application =
|
|
72
|
+
this._application = index$1.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
74
73
|
if (this._application) {
|
|
75
74
|
this._application.loadFormConfig(this.configName).then(cfg => {
|
|
76
75
|
this._configLoaded = true;
|
|
@@ -113,65 +112,4 @@ const SnkForm = class {
|
|
|
113
112
|
};
|
|
114
113
|
SnkForm.style = snkFormCss;
|
|
115
114
|
|
|
116
|
-
const snkGridCss = ".sc-snk-grid-h{display:flex;height:100%;width:100%}";
|
|
117
|
-
|
|
118
|
-
const SnkGrid = class {
|
|
119
|
-
constructor(hostRef) {
|
|
120
|
-
index.registerInstance(this, hostRef);
|
|
121
|
-
this.actionClick = index.createEvent(this, "actionClick", 7);
|
|
122
|
-
this.gridDoubleClick = index.createEvent(this, "gridDoubleClick", 7);
|
|
123
|
-
}
|
|
124
|
-
getHeaderButtons() {
|
|
125
|
-
return this._dataState && this._dataState.selectedRecords.length > 0 ? "UPDATE,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,REFRESH" : "REFRESH";
|
|
126
|
-
}
|
|
127
|
-
actionClickHandler(evt) {
|
|
128
|
-
if (evt.detail === taskbarElements.TaskbarElement.CONFIG_GRID && this._grid) {
|
|
129
|
-
this._grid.openGridConfig();
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
saveConfig(config) {
|
|
133
|
-
const snkApplication = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
134
|
-
if (snkApplication) {
|
|
135
|
-
snkApplication.saveGridConfig(config);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
componentWillLoad() {
|
|
139
|
-
const snkApplication = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
140
|
-
if (snkApplication) {
|
|
141
|
-
snkApplication.loadGridConfig(this.configName).then(cfg => {
|
|
142
|
-
this._gridConfig = cfg;
|
|
143
|
-
this._configLoaded = true;
|
|
144
|
-
});
|
|
145
|
-
//Forçamos a carga dos acessos pra aproveitar a request inicial.
|
|
146
|
-
snkApplication.getAllAccess();
|
|
147
|
-
}
|
|
148
|
-
let parent = this._element.parentElement;
|
|
149
|
-
while (parent) {
|
|
150
|
-
if (parent.tagName.toUpperCase() === "SNK-DATA-UNIT") {
|
|
151
|
-
this._snkDataUnit = parent;
|
|
152
|
-
this._dataUnit = this._snkDataUnit.dataUnit;
|
|
153
|
-
if (!this._dataUnit) {
|
|
154
|
-
this._snkDataUnit.addEventListener("dataUnitReady", (evt) => {
|
|
155
|
-
this._dataUnit = evt.detail;
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
this._snkDataUnit.addEventListener("dataStateChange", (evt) => {
|
|
159
|
-
this._dataState = evt.detail;
|
|
160
|
-
});
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
parent = parent.parentElement;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
render() {
|
|
167
|
-
if (!this._configLoaded || !this._dataUnit) {
|
|
168
|
-
return undefined;
|
|
169
|
-
}
|
|
170
|
-
return (index.h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, index.h("div", { class: "ez-row ez-padding-bottom--medium ez-margin-bottom--medium" }, index.h("div", { class: "ez-col ez-col--sd-9 ez-col--tb-9 ez-align--bottom" }, index.h("slot", { name: "SnkGridHeader" })), index.h("div", { class: "ez-col ez-col--sd-3 ez-col--tb-3 ez-align--right" }, index.h("snk-taskbar", { onActionClick: evt => this.actionClickHandler(evt), key: "topTaskbar", dataUnit: this._dataUnit, buttons: "FORM_MODE,CONFIG_GRID,INSERT", primaryButton: "INSERT" }))), index.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() }, index.h("snk-taskbar", { dataUnit: this._dataUnit, buttons: this.getHeaderButtons(), slot: "leftButtons", actionsList: this.actionsList })), index.h("div", { class: "ez-col ez-col--sd-12" }, index.h("slot", { name: "SnkGridFooter" }))));
|
|
171
|
-
}
|
|
172
|
-
get _element() { return index.getElement(this); }
|
|
173
|
-
};
|
|
174
|
-
SnkGrid.style = snkGridCss;
|
|
175
|
-
|
|
176
115
|
exports.snk_form = SnkForm;
|
|
177
|
-
exports.snk_grid = SnkGrid;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-b0b676c5.js');
|
|
6
|
+
const index$1 = require('./index-02201bc9.js');
|
|
7
|
+
const taskbarElements = require('./taskbar-elements-efa44ff1.js');
|
|
8
|
+
|
|
9
|
+
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)}";
|
|
10
|
+
|
|
11
|
+
const SnkGrid = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.actionClick = index.createEvent(this, "actionClick", 7);
|
|
15
|
+
this.gridDoubleClick = index.createEvent(this, "gridDoubleClick", 7);
|
|
16
|
+
}
|
|
17
|
+
getHeaderButtons() {
|
|
18
|
+
return this._dataState && this._dataState.selectedRecords.length > 0 ? "UPDATE,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,REFRESH" : "REFRESH";
|
|
19
|
+
}
|
|
20
|
+
actionClickHandler(evt) {
|
|
21
|
+
if (evt.detail === taskbarElements.TaskbarElement.CONFIG_GRID && this._grid) {
|
|
22
|
+
this._grid.openGridConfig();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
saveConfig(config) {
|
|
26
|
+
const snkApplication = index$1.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
27
|
+
if (snkApplication) {
|
|
28
|
+
snkApplication.saveGridConfig(config);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
componentWillLoad() {
|
|
32
|
+
const snkApplication = index$1.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
33
|
+
if (snkApplication) {
|
|
34
|
+
snkApplication.loadGridConfig(this.configName).then(cfg => {
|
|
35
|
+
this._gridConfig = cfg;
|
|
36
|
+
this._configLoaded = true;
|
|
37
|
+
});
|
|
38
|
+
//Forçamos a carga dos acessos pra aproveitar a request inicial.
|
|
39
|
+
snkApplication.getAllAccess();
|
|
40
|
+
}
|
|
41
|
+
let parent = this._element.parentElement;
|
|
42
|
+
while (parent) {
|
|
43
|
+
if (parent.tagName.toUpperCase() === "SNK-DATA-UNIT") {
|
|
44
|
+
this._snkDataUnit = parent;
|
|
45
|
+
this._dataUnit = this._snkDataUnit.dataUnit;
|
|
46
|
+
if (!this._dataUnit) {
|
|
47
|
+
this._snkDataUnit.addEventListener("dataUnitReady", (evt) => {
|
|
48
|
+
this._dataUnit = evt.detail;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
this._snkDataUnit.addEventListener("dataStateChange", (evt) => {
|
|
52
|
+
this._dataState = evt.detail;
|
|
53
|
+
});
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
parent = parent.parentElement;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
if (!this._configLoaded || !this._dataUnit) {
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
return (index.h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, index.h("div", { class: "snk-grid__header ez-padding-bottom--medium ez-margin-bottom--medium" }, index.h("snk-filter-bar", { class: "snk-grid__filter-bar ez-align--top" }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" }), index.h("snk-taskbar", { class: "ez-padding-left--medium", onActionClick: evt => this.actionClickHandler(evt), key: "topTaskbar", dataUnit: this._dataUnit, buttons: "FORM_MODE,CONFIG_GRID,INSERT", primaryButton: "INSERT" })), index.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() }, index.h("snk-taskbar", { dataUnit: this._dataUnit, buttons: this.getHeaderButtons(), slot: "leftButtons", actionsList: this.actionsList })), index.h("div", { class: "ez-col ez-col--sd-12" }, index.h("slot", { name: "SnkGridFooter" }))));
|
|
64
|
+
}
|
|
65
|
+
get _element() { return index.getElement(this); }
|
|
66
|
+
};
|
|
67
|
+
SnkGrid.style = snkGridCss;
|
|
68
|
+
|
|
69
|
+
exports.snk_grid = SnkGrid;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
5
|
+
const index = require('./index-b0b676c5.js');
|
|
6
|
+
const index$1 = require('./index-02201bc9.js');
|
|
7
7
|
|
|
8
8
|
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)}";
|
|
9
9
|
|
|
@@ -59,7 +59,7 @@ const SnkPesquisa = class {
|
|
|
59
59
|
.then((resp) => {
|
|
60
60
|
this._startLoading = false;
|
|
61
61
|
if (resp) {
|
|
62
|
-
resp =
|
|
62
|
+
resp = index$1.ObjectUtils.stringToObject(resp.json.$);
|
|
63
63
|
let descriptionField = resp.descriptionField;
|
|
64
64
|
let pkField = resp.pkField;
|
|
65
65
|
if (descriptionField && pkField) {
|
|
@@ -87,7 +87,7 @@ const SnkPesquisa = class {
|
|
|
87
87
|
}
|
|
88
88
|
filterFieldsMetadata(resp, item) {
|
|
89
89
|
let fieldsMetadata = resp.fieldsMetadata.filter((field) => {
|
|
90
|
-
let accept = !
|
|
90
|
+
let accept = !index$1.StringUtils.isEmpty(item[field.fieldName]) &&
|
|
91
91
|
field.visible !== false &&
|
|
92
92
|
field.type !== 'B' &&
|
|
93
93
|
resp.pkField !== field.fieldName &&
|
|
@@ -125,7 +125,7 @@ const SnkPesquisa = class {
|
|
|
125
125
|
return index;
|
|
126
126
|
}
|
|
127
127
|
equals(obj1, obj2) {
|
|
128
|
-
return
|
|
128
|
+
return index$1.ObjectUtils.objectToString(obj1) === index$1.ObjectUtils.objectToString(obj2);
|
|
129
129
|
}
|
|
130
130
|
find(arr, checkerFn) {
|
|
131
131
|
if (arr) {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
7
|
-
const taskbarElements = require('./taskbar-elements-
|
|
5
|
+
const index = require('./index-b0b676c5.js');
|
|
6
|
+
const index$1 = require('./index-02201bc9.js');
|
|
7
|
+
const taskbarElements = require('./taskbar-elements-efa44ff1.js');
|
|
8
8
|
|
|
9
9
|
const snkTaskbarCss = ".sc-snk-taskbar-h{display:flex}";
|
|
10
10
|
|
|
@@ -114,7 +114,7 @@ const SnkTaskbar = class {
|
|
|
114
114
|
}
|
|
115
115
|
// Lifecycle
|
|
116
116
|
componentWillLoad() {
|
|
117
|
-
this._application =
|
|
117
|
+
this._application = index$1.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
118
118
|
if (this._application) {
|
|
119
119
|
this._application.getAllAccess().then(access => this._permissions = access);
|
|
120
120
|
}
|
|
@@ -143,6 +143,7 @@ const SnkTaskbar = class {
|
|
|
143
143
|
return this.getElement(index$1, taskbarElements.TaskbarElement[btn]);
|
|
144
144
|
}
|
|
145
145
|
else {
|
|
146
|
+
index$1;
|
|
146
147
|
return index.h("slot", { name: btn });
|
|
147
148
|
}
|
|
148
149
|
})));
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
5
|
+
const index = require('./index-b0b676c5.js');
|
|
6
|
+
const index$1 = require('./index-02201bc9.js');
|
|
7
7
|
|
|
8
8
|
const testePesquisaCss = ":host{display:block}";
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ const TestePesquisa = class {
|
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
}
|
|
14
14
|
componentWillLoad() {
|
|
15
|
-
this.dataUnit = new
|
|
15
|
+
this.dataUnit = new index$1.DataUnit("testes_com_formulario");
|
|
16
16
|
this.dataUnit.metadata = {
|
|
17
17
|
name: "dd://br.com.sankhya.fin.cad.movimentacaoFinanceira/Financeiro",
|
|
18
18
|
label: "Parceiro",
|
|
@@ -20,8 +20,8 @@ const TestePesquisa = class {
|
|
|
20
20
|
{
|
|
21
21
|
name: "CODPARC",
|
|
22
22
|
label: "Parceiro",
|
|
23
|
-
dataType:
|
|
24
|
-
userInterface:
|
|
23
|
+
dataType: index$1.DataType.NUMBER,
|
|
24
|
+
userInterface: index$1.UserInterface.SEARCH,
|
|
25
25
|
required: true,
|
|
26
26
|
properties: { ENTITYNAME: "Parceiro" }
|
|
27
27
|
}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
+
"./components/snk-filter-bar/filter-item/editors/snk-filter-period.js",
|
|
4
|
+
"./components/snk-filter-bar/filter-item/snk-filter-item.js",
|
|
3
5
|
"./components/snk-application/snk-application.js",
|
|
4
6
|
"./components/snk-data-unit/snk-data-unit.js",
|
|
5
7
|
"./components/snk-taskbar/snk-taskbar.js",
|
|
6
8
|
"./components/snk-crud/snk-crud.js",
|
|
9
|
+
"./components/snk-filter-bar/filter-list/snk-filter-list.js",
|
|
10
|
+
"./components/snk-filter-bar/snk-filter-bar.js",
|
|
11
|
+
"./components/snk-filter-bar/filter-item/snk-filter-detail.js",
|
|
12
|
+
"./components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js",
|
|
13
|
+
"./components/snk-filter-bar/filter-item/editors/snk-filter-number.js",
|
|
14
|
+
"./components/snk-filter-bar/filter-item/editors/snk-filter-search.js",
|
|
15
|
+
"./components/snk-filter-bar/filter-item/editors/snk-filter-text.js",
|
|
7
16
|
"./components/snk-form/snk-form.js",
|
|
8
17
|
"./components/snk-grid/snk-grid.js",
|
|
9
18
|
"./components/snk-pesquisa/snk-pesquisa.js",
|
|
@@ -11,8 +20,8 @@
|
|
|
11
20
|
],
|
|
12
21
|
"compiler": {
|
|
13
22
|
"name": "@stencil/core",
|
|
14
|
-
"version": "2.
|
|
15
|
-
"typescriptVersion": "4.
|
|
23
|
+
"version": "2.18.1",
|
|
24
|
+
"typescriptVersion": "4.7.4"
|
|
16
25
|
},
|
|
17
26
|
"collections": [],
|
|
18
27
|
"bundles": [
|
|
@@ -25,7 +25,14 @@ export class SnkErrorHandler {
|
|
|
25
25
|
errorHandler(evt) {
|
|
26
26
|
this.processException(evt.error);
|
|
27
27
|
}
|
|
28
|
+
buildErrorCodeHTML(exception) {
|
|
29
|
+
const onclick = 'try{window.workspace.openHelp(\'_tbcode:' + exception.errorCode + '\')} catch(e){alert(\'Não é possível abrir a ajuda fora do workspace Sankhya\');}';
|
|
30
|
+
return '<br><a href="#" onclick="' + onclick + '">Código: ' + exception.errorCode + '</a>';
|
|
31
|
+
}
|
|
28
32
|
processException(exception) {
|
|
33
|
+
if (exception.errorCode != "") {
|
|
34
|
+
exception.message += this.buildErrorCodeHTML(exception);
|
|
35
|
+
}
|
|
29
36
|
if (exception instanceof WaitingChangeException) {
|
|
30
37
|
this._app.alert(exception.title, exception.message);
|
|
31
38
|
}
|