@sankhyalabs/sankhyablocks 5.6.0 → 5.8.0
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-e64dce7f.js → SnkMessageBuilder-1760d2c9.js} +16 -1
- package/dist/cjs/{filter-item-type.enum-3daf58d3.js → filter-item-type.enum-aa823a00.js} +1 -0
- package/dist/cjs/filter-type.enum-b14ce507.js +11 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/presentationMode-52ec3bdd.js +7 -0
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +1 -1
- package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -2
- package/dist/cjs/{snk-data-unit-85d6565e.js → snk-data-unit-f27603c9.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-bar.cjs.entry.js +52 -140
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +26 -15
- package/dist/cjs/snk-filter-detail.cjs.entry.js +5 -10
- package/dist/cjs/snk-filter-item.cjs.entry.js +36 -8
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +67 -0
- package/dist/cjs/snk-filter-modal.cjs.entry.js +72 -49
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-period.cjs.entry.js +18 -2
- package/dist/cjs/snk-filter-personalized.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-search.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-text.cjs.entry.js +2 -0
- package/dist/cjs/snk-grid.cjs.entry.js +8 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/presentationMode.js +5 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +60 -29
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +19 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +19 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +72 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +19 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +19 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +19 -0
- package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +1 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +5 -10
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +36 -8
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +32 -2
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +116 -156
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.css +8 -0
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +116 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +19 -142
- package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js +7 -0
- package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +36 -0
- package/dist/collection/components/snk-filter-bar/utils/filters-mock.js +315 -0
- package/dist/collection/components/snk-grid/snk-grid.js +8 -1
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +16 -1
- package/dist/components/SnkMessageBuilder.js +16 -1
- package/dist/components/filter-item-type.enum.js +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/presentationMode.js +7 -0
- package/dist/components/snk-crud.js +22 -34
- package/dist/components/snk-detail-view2.js +24 -46
- package/dist/components/snk-filter-bar2.js +57 -157
- package/dist/components/snk-filter-binary-select.js +27 -16
- package/dist/components/snk-filter-detail2.js +5 -10
- package/dist/components/snk-filter-item2.js +36 -8
- package/dist/components/snk-filter-list.js +171 -1
- package/dist/components/snk-filter-modal-item.d.ts +11 -0
- package/dist/components/snk-filter-modal-item.js +6 -0
- package/dist/components/snk-filter-modal-item2.js +86 -0
- package/dist/components/snk-filter-modal.js +118 -1
- package/dist/components/snk-filter-multi-select.js +3 -1
- package/dist/components/snk-filter-number.js +3 -1
- package/dist/components/snk-filter-period.js +20 -2
- package/dist/components/snk-filter-personalized.js +3 -1
- package/dist/components/snk-filter-search.js +3 -1
- package/dist/components/snk-filter-text.js +3 -1
- package/dist/components/snk-grid2.js +18 -23
- package/dist/esm/{SnkMessageBuilder-f3590f65.js → SnkMessageBuilder-4caf8b4f.js} +16 -1
- package/dist/esm/{filter-item-type.enum-a79b2fa8.js → filter-item-type.enum-5028ed3f.js} +1 -0
- package/dist/esm/filter-type.enum-a80c1b6b.js +9 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/presentationMode-783bbf9d.js +7 -0
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-application.entry.js +1 -1
- package/dist/esm/snk-data-exporter.entry.js +2 -2
- package/dist/esm/{snk-data-unit-50b1660c.js → snk-data-unit-640399b3.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +1 -1
- package/dist/esm/snk-filter-bar.entry.js +53 -141
- package/dist/esm/snk-filter-binary-select.entry.js +27 -16
- package/dist/esm/snk-filter-detail.entry.js +6 -11
- package/dist/esm/snk-filter-item.entry.js +37 -9
- package/dist/esm/snk-filter-modal-item.entry.js +63 -0
- package/dist/esm/snk-filter-modal.entry.js +73 -50
- package/dist/esm/snk-filter-multi-select.entry.js +4 -2
- package/dist/esm/snk-filter-number.entry.js +4 -2
- package/dist/esm/snk-filter-period.entry.js +19 -3
- package/dist/esm/snk-filter-personalized.entry.js +4 -2
- package/dist/esm/snk-filter-search.entry.js +4 -2
- package/dist/esm/snk-filter-text.entry.js +3 -1
- package/dist/esm/snk-grid.entry.js +8 -1
- package/dist/sankhyablocks/p-08779202.entry.js +1 -0
- package/dist/sankhyablocks/p-1465f132.entry.js +1 -0
- package/dist/sankhyablocks/p-1a68fb59.js +1 -0
- package/dist/sankhyablocks/{p-f344b811.entry.js → p-21c2b733.entry.js} +1 -1
- package/dist/sankhyablocks/p-29c1889f.js +1 -0
- package/dist/sankhyablocks/p-355e7ab0.entry.js +1 -0
- package/dist/sankhyablocks/p-3794686e.entry.js +1 -0
- package/dist/sankhyablocks/{p-c4417efb.entry.js → p-4181c36d.entry.js} +1 -1
- package/dist/sankhyablocks/p-4ce96831.entry.js +1 -0
- package/dist/sankhyablocks/{p-3fbe2d69.entry.js → p-57b74971.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9dd2b8cb.js → p-584d7212.js} +1 -1
- package/dist/sankhyablocks/p-59705471.entry.js +1 -0
- package/dist/sankhyablocks/{p-3d3263b4.js → p-6981c03e.js} +1 -1
- package/dist/sankhyablocks/p-786ae316.entry.js +1 -0
- package/dist/sankhyablocks/p-80e52e85.entry.js +1 -0
- package/dist/sankhyablocks/p-8efb0f47.entry.js +1 -0
- package/dist/sankhyablocks/p-9af04fc7.entry.js +1 -0
- package/dist/sankhyablocks/{p-df8f13b4.entry.js → p-9c3f0caf.entry.js} +1 -1
- package/dist/sankhyablocks/p-9cbc3925.entry.js +1 -0
- package/dist/sankhyablocks/p-b9fb86fe.entry.js +1 -0
- package/dist/sankhyablocks/p-d9804798.js +1 -0
- package/dist/sankhyablocks/p-e2bb9c9a.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-filter-bar/filter-item/editors/enum/presentationMode.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.d.ts +5 -0
- package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +2 -1
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +11 -1
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +37 -0
- package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.d.ts +17 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +2 -11
- package/dist/types/components/snk-filter-bar/types/filter-type.enum.d.ts +6 -0
- package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +20 -0
- package/dist/types/components/snk-filter-bar/utils/filters-mock.d.ts +186 -0
- package/dist/types/components.d.ts +119 -56
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/components/snk-filter-list2.js +0 -173
- package/dist/components/snk-filter-modal2.js +0 -97
- package/dist/sankhyablocks/p-1dcfd32a.entry.js +0 -1
- package/dist/sankhyablocks/p-3a2ce158.entry.js +0 -1
- package/dist/sankhyablocks/p-5e62a17b.entry.js +0 -1
- package/dist/sankhyablocks/p-5fc55684.entry.js +0 -1
- package/dist/sankhyablocks/p-73e830cf.entry.js +0 -1
- package/dist/sankhyablocks/p-86d29b6f.entry.js +0 -1
- package/dist/sankhyablocks/p-ad51bf1c.entry.js +0 -1
- package/dist/sankhyablocks/p-afba9bbe.entry.js +0 -1
- package/dist/sankhyablocks/p-c336170d.entry.js +0 -1
- package/dist/sankhyablocks/p-c9477950.js +0 -1
- package/dist/sankhyablocks/p-d5c9c1f8.entry.js +0 -1
- package/dist/sankhyablocks/p-ee82c157.entry.js +0 -1
- package/dist/sankhyablocks/p-fac37198.entry.js +0 -1
@@ -0,0 +1,36 @@
|
|
1
|
+
import { ApplicationUtils } from "@sankhyalabs/ezui/dist/collection/utils";
|
2
|
+
class SnkFilterModalFactory {
|
3
|
+
constructor({ filterConfig, onComplete, getMessage }) {
|
4
|
+
this._filterConfig = filterConfig;
|
5
|
+
this._onComplete = onComplete;
|
6
|
+
this._getMessage = getMessage;
|
7
|
+
}
|
8
|
+
applyFilters(newFilterConfig) {
|
9
|
+
this._onComplete(newFilterConfig);
|
10
|
+
this._closeModal();
|
11
|
+
}
|
12
|
+
clearAll(filterConfigSnapshot) {
|
13
|
+
return filterConfigSnapshot.map(filterItem => (Object.assign(Object.assign({}, filterItem), { value: undefined })));
|
14
|
+
}
|
15
|
+
buildFilterModal() {
|
16
|
+
const filterModal = document.createElement("snk-filter-modal");
|
17
|
+
filterModal.filters = this._filterConfig;
|
18
|
+
filterModal.getMessage = this._getMessage.bind(this);
|
19
|
+
filterModal.applyFilters = this.applyFilters.bind(this);
|
20
|
+
filterModal.clearAll = this.clearAll.bind(this);
|
21
|
+
filterModal.closeModal = () => this._closeModal();
|
22
|
+
return filterModal;
|
23
|
+
}
|
24
|
+
async showModal() {
|
25
|
+
const filterModal = this.buildFilterModal();
|
26
|
+
const modalProps = {
|
27
|
+
content: filterModal,
|
28
|
+
position: 'left',
|
29
|
+
heightMode: 'full',
|
30
|
+
closeOutsideClick: false,
|
31
|
+
useScrimLight: true
|
32
|
+
};
|
33
|
+
this._closeModal = await ApplicationUtils.showModal(modalProps);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
export default SnkFilterModalFactory;
|
@@ -0,0 +1,315 @@
|
|
1
|
+
export const filtersMock = [
|
2
|
+
{
|
3
|
+
"id": "RECDESP",
|
4
|
+
"label": "Receitas + Despesas",
|
5
|
+
"detailTitle": "Selecione o que deseja ver",
|
6
|
+
"type": "BINARY_SELECT",
|
7
|
+
"props": {
|
8
|
+
"options": [
|
9
|
+
{
|
10
|
+
"name": "RECEITA",
|
11
|
+
"expression": "this.RECDESP = 1",
|
12
|
+
"label": "Receitas"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"name": "DESPESA",
|
16
|
+
"expression": "this.RECDESP = -1",
|
17
|
+
"label": "Despesas"
|
18
|
+
}
|
19
|
+
]
|
20
|
+
},
|
21
|
+
"value": "DESPESA",
|
22
|
+
"hardFixed": true,
|
23
|
+
"visible": true,
|
24
|
+
"filterType": "QUICK_FILTERS",
|
25
|
+
"detailModal": "Movimento"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"id": "PROVISAO",
|
29
|
+
"label": "Real + Provisão",
|
30
|
+
"detailTitle": "Selecione o que deseja ver",
|
31
|
+
"type": "BINARY_SELECT",
|
32
|
+
"props": {
|
33
|
+
"options": [
|
34
|
+
{
|
35
|
+
"name": "REAL",
|
36
|
+
"expression": "nullvalue(this.PROVISAO, 'N') = 'N'",
|
37
|
+
"label": "Real"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"name": "PROVISAO",
|
41
|
+
"expression": "nullvalue(this.PROVISAO, 'N') = 'S'",
|
42
|
+
"label": "Provisão"
|
43
|
+
}
|
44
|
+
]
|
45
|
+
},
|
46
|
+
"value": "REAL",
|
47
|
+
"hardFixed": true,
|
48
|
+
"visible": true,
|
49
|
+
"filterType": "QUICK_FILTERS",
|
50
|
+
"detailModal": "Lançamento"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"id": "BAIXADO",
|
54
|
+
"label": "Pendentes + Baixados",
|
55
|
+
"detailTitle": "Selecione o que deseja ver",
|
56
|
+
"type": "BINARY_SELECT",
|
57
|
+
"props": {
|
58
|
+
"options": [
|
59
|
+
{
|
60
|
+
"name": "PENDENTE",
|
61
|
+
"expression": "this.DHBAIXA IS NULL",
|
62
|
+
"label": "Pendentes"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"name": "BAIXADO",
|
66
|
+
"expression": "this.DHBAIXA IS NOT NULL AND NOT nullvalue(this.PROVISAO, 'N') = 'S'",
|
67
|
+
"label": "Baixados"
|
68
|
+
}
|
69
|
+
]
|
70
|
+
},
|
71
|
+
"value": "PENDENTE",
|
72
|
+
"hardFixed": true,
|
73
|
+
"visible": true,
|
74
|
+
"filterType": "QUICK_FILTERS",
|
75
|
+
"detailModal": "Status"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"id": "NUMNOTA",
|
79
|
+
"label": "Nr. Nota",
|
80
|
+
"detailTitle": "Informe o número da nota",
|
81
|
+
"type": "NUMBER",
|
82
|
+
"props": {
|
83
|
+
"expression": "this.NUMNOTA = :NUMNOTA"
|
84
|
+
},
|
85
|
+
"visible": true,
|
86
|
+
"filterType": "QUICK_FILTERS"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"id": "NUFIN",
|
90
|
+
"label": "Nr. único",
|
91
|
+
"detailTitle": "Informe o número único",
|
92
|
+
"type": "NUMBER",
|
93
|
+
"props": {
|
94
|
+
"expression": "this.NUFIN = :NUFIN AND NOT (this.PROVISAO = 'S' AND this.DHBAIXA IS NOT NULL AND this.ORIGEM = 'E')"
|
95
|
+
},
|
96
|
+
"visible": true,
|
97
|
+
"filterType": "QUICK_FILTERS"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"id": "DTVENC",
|
101
|
+
"label": "Dt. Vencimento",
|
102
|
+
"detailTitle": "Informe a data ou período",
|
103
|
+
"type": "PERIOD",
|
104
|
+
"props": {
|
105
|
+
"expression": {
|
106
|
+
"fullfill": "onlydate(this.DTVENC) >= :DTVENC.START AND onlydate(this.DTVENC) <= :DTVENC.END",
|
107
|
+
"onlystart": "onlydate(this.DTVENC) >= :DTVENC",
|
108
|
+
"onlyend": "onlydate(this.DTVENC) <= :DTVENC"
|
109
|
+
}
|
110
|
+
},
|
111
|
+
"visible": true,
|
112
|
+
"filterType": "QUICK_FILTERS"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"id": "0",
|
116
|
+
"label": "cartao",
|
117
|
+
"detailTitle": "cartao",
|
118
|
+
"type": "PERSONALIZED",
|
119
|
+
"props": {
|
120
|
+
"expression": "Financeiro.CODTIPTIT = 17",
|
121
|
+
"personalizedFilter": {
|
122
|
+
"parameters": []
|
123
|
+
}
|
124
|
+
},
|
125
|
+
"filterType": "OTHER_FILTERS"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"id": "1",
|
129
|
+
"label": "Origem Estoque",
|
130
|
+
"detailTitle": "Origem Estoque",
|
131
|
+
"type": "PERSONALIZED",
|
132
|
+
"props": {
|
133
|
+
"expression": "Financeiro.ORIGEM = 'E'",
|
134
|
+
"personalizedFilter": {
|
135
|
+
"parameters": []
|
136
|
+
}
|
137
|
+
},
|
138
|
+
"filterType": "CUSTOM_FILTERS"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"id": "CODPARC",
|
142
|
+
"label": "Parceiro",
|
143
|
+
"detailTitle": "Informe o parceiro",
|
144
|
+
"type": "SEARCH",
|
145
|
+
"props": {
|
146
|
+
"expression": "this.CODPARC = :CODPARC",
|
147
|
+
"searchContext": {
|
148
|
+
"entity": "Parceiro",
|
149
|
+
"entityDescription": "Parceiro",
|
150
|
+
"searchOptions": {
|
151
|
+
"rootEntity": "Financeiro",
|
152
|
+
"descriptionFieldName": "NOMEPARC",
|
153
|
+
"codeFieldName": "CODPARC",
|
154
|
+
"showInactives": false
|
155
|
+
}
|
156
|
+
}
|
157
|
+
},
|
158
|
+
"visible": true,
|
159
|
+
"filterType": "QUICK_FILTERS",
|
160
|
+
"detailModal": "Título"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"id": "DHBAIXA",
|
164
|
+
"label": "Data da Baixa",
|
165
|
+
"detailTitle": "Informe a data ou período",
|
166
|
+
"type": "PERIOD",
|
167
|
+
"props": {
|
168
|
+
"expression": {
|
169
|
+
"fullfill": "onlydate(this.DHBAIXA) >= :DHBAIXA.START AND onlydate(this.DHBAIXA) <= :DHBAIXA.END",
|
170
|
+
"onlystart": "onlydate(this.DHBAIXA) >= :DHBAIXA",
|
171
|
+
"onlyend": "onlydate(this.DHBAIXA) <= :DHBAIXA"
|
172
|
+
}
|
173
|
+
},
|
174
|
+
"visible": true,
|
175
|
+
"filterType": "OTHER_FILTERS"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"id": "CODEMP",
|
179
|
+
"label": "Empresa",
|
180
|
+
"detailTitle": "Informe a empresa",
|
181
|
+
"type": "SEARCH",
|
182
|
+
"props": {
|
183
|
+
"expression": "this.CODEMP = :CODEMP",
|
184
|
+
"searchContext": {
|
185
|
+
"entity": "Empresa",
|
186
|
+
"entityDescription": "Empresa",
|
187
|
+
"searchOptions": {
|
188
|
+
"rootEntity": "Financeiro",
|
189
|
+
"descriptionFieldName": "NOMEFANTASIA",
|
190
|
+
"codeFieldName": "CODEMP",
|
191
|
+
"showInactives": false
|
192
|
+
}
|
193
|
+
}
|
194
|
+
},
|
195
|
+
"filterType": "OTHER_FILTERS"
|
196
|
+
},
|
197
|
+
{
|
198
|
+
"id": "CODNAT",
|
199
|
+
"label": "Natureza",
|
200
|
+
"detailTitle": "Informe a natureza",
|
201
|
+
"type": "SEARCH",
|
202
|
+
"props": {
|
203
|
+
"expression": "this.CODNAT = :CODNAT",
|
204
|
+
"searchContext": {
|
205
|
+
"entity": "Natureza",
|
206
|
+
"entityDescription": "Natureza",
|
207
|
+
"searchOptions": {
|
208
|
+
"rootEntity": "Financeiro",
|
209
|
+
"descriptionFieldName": "DESCRNAT",
|
210
|
+
"codeFieldName": "CODNAT",
|
211
|
+
"showInactives": false
|
212
|
+
}
|
213
|
+
}
|
214
|
+
},
|
215
|
+
"filterType": "OTHER_FILTERS"
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"id": "DTNEG",
|
219
|
+
"label": "Dt. Negociação",
|
220
|
+
"detailTitle": "Informe a data ou período",
|
221
|
+
"type": "PERIOD",
|
222
|
+
"props": {
|
223
|
+
"expression": {
|
224
|
+
"fullfill": "onlydate(this.DTNEG) >= :DTNEG.START AND onlydate(this.DTNEG) <= :DTNEG.END",
|
225
|
+
"onlystart": "onlydate(this.DTNEG) >= :DTNEG",
|
226
|
+
"onlyend": "onlydate(this.DTNEG) <= :DTNEG"
|
227
|
+
}
|
228
|
+
}
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"id": "NUNOTA",
|
232
|
+
"label": "Nro Único do Pedido",
|
233
|
+
"detailTitle": "Informe o número único do pedido",
|
234
|
+
"type": "NUMBER",
|
235
|
+
"props": {
|
236
|
+
"expression": "(this.NUPED = :NUNOTA OR EXISTS(SELECT 1 FROM TGFVAR V INNER JOIN TGFCAB C ON(C.NUNOTA = V.NUNOTAORIG) WHERE V.NUNOTA = this.NUNOTA AND C.NUNOTA = :NUNOTA))"
|
237
|
+
}
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"id": "CODCENCUS",
|
241
|
+
"label": "Centro de resultado",
|
242
|
+
"detailTitle": "Informe o centro de resultado",
|
243
|
+
"type": "SEARCH",
|
244
|
+
"props": {
|
245
|
+
"expression": "this.CODCENCUS = :CODCENCUS",
|
246
|
+
"searchContext": {
|
247
|
+
"entity": "CentroResultado",
|
248
|
+
"entityDescription": "Centro de resultado",
|
249
|
+
"searchOptions": {
|
250
|
+
"rootEntity": "Financeiro",
|
251
|
+
"descriptionFieldName": "DESCRCENCUS",
|
252
|
+
"codeFieldName": "CODCENCUS",
|
253
|
+
"showInactives": false
|
254
|
+
}
|
255
|
+
}
|
256
|
+
}
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"id": "CODCTABCOINT",
|
260
|
+
"label": "Conta bancária",
|
261
|
+
"detailTitle": "Informe a conta bancária",
|
262
|
+
"type": "SEARCH",
|
263
|
+
"props": {
|
264
|
+
"expression": "this.CODCTABCOINT = :CODCTABCOINT",
|
265
|
+
"searchContext": {
|
266
|
+
"entity": "ContaBancaria",
|
267
|
+
"entityDescription": "Conta bancária",
|
268
|
+
"searchOptions": {
|
269
|
+
"rootEntity": "Financeiro",
|
270
|
+
"descriptionFieldName": "DESCRICAO",
|
271
|
+
"codeFieldName": "CODCTABCOINT",
|
272
|
+
"showInactives": false
|
273
|
+
}
|
274
|
+
}
|
275
|
+
}
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"id": "CODBCO",
|
279
|
+
"label": "Banco",
|
280
|
+
"detailTitle": "Informe o banco",
|
281
|
+
"type": "SEARCH",
|
282
|
+
"props": {
|
283
|
+
"expression": "this.CODBCO = :CODBCO",
|
284
|
+
"searchContext": {
|
285
|
+
"entity": "Banco",
|
286
|
+
"entityDescription": "Banco",
|
287
|
+
"searchOptions": {
|
288
|
+
"rootEntity": "Financeiro",
|
289
|
+
"descriptionFieldName": "NOMEBCO",
|
290
|
+
"codeFieldName": "CODBCO",
|
291
|
+
"showInactives": false
|
292
|
+
}
|
293
|
+
}
|
294
|
+
}
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"id": "CODPROJ",
|
298
|
+
"label": "Projeto",
|
299
|
+
"detailTitle": "Informe o projeto",
|
300
|
+
"type": "SEARCH",
|
301
|
+
"props": {
|
302
|
+
"expression": "this.CODPROJ = :CODPROJ",
|
303
|
+
"searchContext": {
|
304
|
+
"entity": "Projeto",
|
305
|
+
"entityDescription": "Projeto",
|
306
|
+
"searchOptions": {
|
307
|
+
"rootEntity": "Financeiro",
|
308
|
+
"descriptionFieldName": "IDENTIFICACAO",
|
309
|
+
"codeFieldName": "CODPROJ",
|
310
|
+
"showInactives": false
|
311
|
+
}
|
312
|
+
}
|
313
|
+
}
|
314
|
+
}
|
315
|
+
];
|
@@ -213,10 +213,12 @@ export class SnkGrid {
|
|
213
213
|
if (!this._dataUnit) {
|
214
214
|
this._snkDataUnit.addEventListener("dataUnitReady", (evt) => {
|
215
215
|
this._dataUnit = evt.detail;
|
216
|
+
this._dataUnitLoadLockerResolver = this._dataUnit.addLoadingLocker();
|
216
217
|
this.addElementID();
|
217
218
|
});
|
218
219
|
}
|
219
220
|
else {
|
221
|
+
this._dataUnitLoadLockerResolver = this._dataUnit.addLoadingLocker();
|
220
222
|
this.addElementID();
|
221
223
|
}
|
222
224
|
this._snkDataUnit.addEventListener("dataStateChange", (evt) => {
|
@@ -266,13 +268,18 @@ export class SnkGrid {
|
|
266
268
|
getPrimaryButton() {
|
267
269
|
return this.presentationMode === PresentationMode.PRIMARY ? "INSERT" : "";
|
268
270
|
}
|
271
|
+
onEzGridReady() {
|
272
|
+
var _a;
|
273
|
+
(_a = this._dataUnitLoadLockerResolver) === null || _a === void 0 ? void 0 : _a.call(this);
|
274
|
+
this._dataUnitLoadLockerResolver = undefined;
|
275
|
+
}
|
269
276
|
render() {
|
270
277
|
var _a, _b;
|
271
278
|
if (!this._dataUnit) {
|
272
279
|
return undefined;
|
273
280
|
}
|
274
281
|
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-margin-bottom--medium" }, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder }), ((_b = (_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.filterConfig) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
|
275
|
-
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", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton() })), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: () => this.gridDoubleClick.emit(), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection }, h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", 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" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig() }))));
|
282
|
+
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", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton() })), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: () => this.gridDoubleClick.emit(), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, onComponentReady: () => this.onEzGridReady() }, h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", 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" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig() }))));
|
276
283
|
}
|
277
284
|
static get is() { return "snk-grid"; }
|
278
285
|
static get encapsulation() { return "scoped"; }
|
@@ -25,6 +25,21 @@ const snkFilterBarMessages = {
|
|
25
25
|
"modalPersonalizedFilterSubTitle": "Gerencie seus filtros",
|
26
26
|
"modalInfoTextCreateEditPersonalized": "Use o layout antigo para criar ou editar filtros, em breve traremos uma nova experiência",
|
27
27
|
"modalOkButtonLabel": "Aplicar",
|
28
|
-
"modalCancelButtonLabel": "Limpar"
|
28
|
+
"modalCancelButtonLabel": "Limpar",
|
29
|
+
"binarySelectTooltip": "Exibindo registros",
|
30
|
+
"multiListToltip": "selecionado(a)s",
|
31
|
+
"onlyStartPeriodToltip": "A partir de",
|
32
|
+
"onlyEndPeriodToltip": "Até",
|
33
|
+
"fullPeriodTooltip": "Data de {{LABEL}}: {{START_LABEL}} até {{END_LABEL}}",
|
34
|
+
"labelStartDatePeriod": "Inicial",
|
35
|
+
"labelEndDatePeriod": "Final",
|
36
|
+
"filters": "Filtros",
|
37
|
+
"filterModal": {
|
38
|
+
"title": "Filtros",
|
39
|
+
"okButtonLabel": "Aplicar",
|
40
|
+
"cancelButtonLabel": "Limpar tudo",
|
41
|
+
"customFilters": "Filtros personalizados",
|
42
|
+
"quickFilters": "Filtros rápidos"
|
43
|
+
}
|
29
44
|
};
|
30
45
|
export default snkFilterBarMessages;
|
@@ -56,7 +56,22 @@ const snkFilterBarMessages = {
|
|
56
56
|
"modalPersonalizedFilterSubTitle": "Gerencie seus filtros",
|
57
57
|
"modalInfoTextCreateEditPersonalized": "Use o layout antigo para criar ou editar filtros, em breve traremos uma nova experiência",
|
58
58
|
"modalOkButtonLabel": "Aplicar",
|
59
|
-
"modalCancelButtonLabel": "Limpar"
|
59
|
+
"modalCancelButtonLabel": "Limpar",
|
60
|
+
"binarySelectTooltip": "Exibindo registros",
|
61
|
+
"multiListToltip": "selecionado(a)s",
|
62
|
+
"onlyStartPeriodToltip": "A partir de",
|
63
|
+
"onlyEndPeriodToltip": "Até",
|
64
|
+
"fullPeriodTooltip": "Data de {{LABEL}}: {{START_LABEL}} até {{END_LABEL}}",
|
65
|
+
"labelStartDatePeriod": "Inicial",
|
66
|
+
"labelEndDatePeriod": "Final",
|
67
|
+
"filters": "Filtros",
|
68
|
+
"filterModal": {
|
69
|
+
"title": "Filtros",
|
70
|
+
"okButtonLabel": "Aplicar",
|
71
|
+
"cancelButtonLabel": "Limpar tudo",
|
72
|
+
"customFilters": "Filtros personalizados",
|
73
|
+
"quickFilters": "Filtros rápidos"
|
74
|
+
}
|
60
75
|
};
|
61
76
|
|
62
77
|
const snkTaskbarMessages = {
|
@@ -8,6 +8,7 @@ var FilterItemType;
|
|
8
8
|
FilterItemType["NUMBER"] = "NUMBER";
|
9
9
|
FilterItemType["DEFAULT_FILTER"] = "DEFAULT_FILTER";
|
10
10
|
FilterItemType["PERSONALIZED"] = "PERSONALIZED";
|
11
|
+
FilterItemType["MULTI_LIST"] = "MULTI_LIST";
|
11
12
|
})(FilterItemType || (FilterItemType = {}));
|
12
13
|
const FilterItemType$1 = FilterItemType;
|
13
14
|
|
@@ -17,6 +17,7 @@ export { SnkFilterFieldSearch as SnkFilterFieldSearch } from '../types/component
|
|
17
17
|
export { SnkFilterItem as SnkFilterItem } from '../types/components/snk-filter-bar/filter-item/snk-filter-item';
|
18
18
|
export { SnkFilterList as SnkFilterList } from '../types/components/snk-filter-bar/filter-list/snk-filter-list';
|
19
19
|
export { SnkFilterModal as SnkFilterModal } from '../types/components/snk-filter-bar/filter-modal/snk-filter-modal';
|
20
|
+
export { SnkFilterModalItem as SnkFilterModalItem } from '../types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item';
|
20
21
|
export { SnkFilterMultiSelect as SnkFilterMultiSelect } from '../types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select';
|
21
22
|
export { SnkFilterPeriod as SnkFilterNumber } from '../types/components/snk-filter-bar/filter-item/editors/snk-filter-number';
|
22
23
|
export { SnkFilterParamConfig as SnkFilterParamConfig } from '../types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config';
|
package/dist/components/index.js
CHANGED
@@ -17,6 +17,7 @@ export { SnkFilterFieldSearch, defineCustomElement as defineCustomElementSnkFilt
|
|
17
17
|
export { SnkFilterItem, defineCustomElement as defineCustomElementSnkFilterItem } from './snk-filter-item.js';
|
18
18
|
export { SnkFilterList, defineCustomElement as defineCustomElementSnkFilterList } from './snk-filter-list.js';
|
19
19
|
export { SnkFilterModal, defineCustomElement as defineCustomElementSnkFilterModal } from './snk-filter-modal.js';
|
20
|
+
export { SnkFilterModalItem, defineCustomElement as defineCustomElementSnkFilterModalItem } from './snk-filter-modal-item.js';
|
20
21
|
export { SnkFilterMultiSelect, defineCustomElement as defineCustomElementSnkFilterMultiSelect } from './snk-filter-multi-select.js';
|
21
22
|
export { SnkFilterNumber, defineCustomElement as defineCustomElementSnkFilterNumber } from './snk-filter-number.js';
|
22
23
|
export { SnkFilterParamConfig, defineCustomElement as defineCustomElementSnkFilterParamConfig } from './snk-filter-param-config.js';
|
@@ -0,0 +1,7 @@
|
|
1
|
+
var EPresentationMode;
|
2
|
+
(function (EPresentationMode) {
|
3
|
+
EPresentationMode[EPresentationMode["CHIP"] = 0] = "CHIP";
|
4
|
+
EPresentationMode[EPresentationMode["MODAL"] = 1] = "MODAL";
|
5
|
+
})(EPresentationMode || (EPresentationMode = {}));
|
6
|
+
|
7
|
+
export { EPresentationMode as E };
|
@@ -5,19 +5,17 @@ import './DataFetcher.js';
|
|
5
5
|
import './pesquisa-fetcher.js';
|
6
6
|
import { P as PresentationMode } from './index2.js';
|
7
7
|
import { V as VIEW_MODE } from './constants.js';
|
8
|
-
import { d as defineCustomElement$
|
9
|
-
import { d as defineCustomElement$
|
10
|
-
import { d as defineCustomElement$
|
11
|
-
import { d as defineCustomElement$
|
12
|
-
import { d as defineCustomElement$
|
13
|
-
import { d as defineCustomElement$7, a as defineCustomElement$
|
14
|
-
import { d as defineCustomElement$
|
15
|
-
import { d as defineCustomElement$
|
16
|
-
import { d as defineCustomElement$
|
17
|
-
import { d as defineCustomElement$
|
18
|
-
import { d as defineCustomElement$
|
19
|
-
import { d as defineCustomElement$e } from './snk-filter-list2.js';
|
20
|
-
import { d as defineCustomElement$d } from './snk-filter-modal2.js';
|
8
|
+
import { d as defineCustomElement$n } from './snk-attach2.js';
|
9
|
+
import { d as defineCustomElement$m } from './snk-config-options2.js';
|
10
|
+
import { d as defineCustomElement$l } from './snk-configurator2.js';
|
11
|
+
import { d as defineCustomElement$k } from './snk-data-exporter2.js';
|
12
|
+
import { d as defineCustomElement$j } from './snk-data-unit2.js';
|
13
|
+
import { d as defineCustomElement$7, a as defineCustomElement$i } from './snk-detail-view2.js';
|
14
|
+
import { d as defineCustomElement$h } from './snk-exporter-email-sender2.js';
|
15
|
+
import { d as defineCustomElement$g } from './snk-field-config2.js';
|
16
|
+
import { d as defineCustomElement$f } from './snk-filter-bar2.js';
|
17
|
+
import { d as defineCustomElement$e } from './snk-filter-detail2.js';
|
18
|
+
import { d as defineCustomElement$d } from './snk-filter-item2.js';
|
21
19
|
import { d as defineCustomElement$c } from './snk-form-config2.js';
|
22
20
|
import { d as defineCustomElement$b } from './snk-form-summary2.js';
|
23
21
|
import { d as defineCustomElement$a } from './snk-form-view2.js';
|
@@ -163,7 +161,7 @@ function defineCustomElement$1() {
|
|
163
161
|
if (typeof customElements === "undefined") {
|
164
162
|
return;
|
165
163
|
}
|
166
|
-
const components = ["snk-crud", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-field-config", "snk-filter-bar", "snk-filter-detail", "snk-filter-item", "snk-
|
164
|
+
const components = ["snk-crud", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-field-config", "snk-filter-bar", "snk-filter-detail", "snk-filter-item", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-guides-viewer", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-tab-config", "snk-taskbar"];
|
167
165
|
components.forEach(tagName => { switch (tagName) {
|
168
166
|
case "snk-crud":
|
169
167
|
if (!customElements.get(tagName)) {
|
@@ -171,66 +169,56 @@ function defineCustomElement$1() {
|
|
171
169
|
}
|
172
170
|
break;
|
173
171
|
case "snk-attach":
|
174
|
-
if (!customElements.get(tagName)) {
|
175
|
-
defineCustomElement$p();
|
176
|
-
}
|
177
|
-
break;
|
178
|
-
case "snk-config-options":
|
179
|
-
if (!customElements.get(tagName)) {
|
180
|
-
defineCustomElement$o();
|
181
|
-
}
|
182
|
-
break;
|
183
|
-
case "snk-configurator":
|
184
172
|
if (!customElements.get(tagName)) {
|
185
173
|
defineCustomElement$n();
|
186
174
|
}
|
187
175
|
break;
|
188
|
-
case "snk-
|
176
|
+
case "snk-config-options":
|
189
177
|
if (!customElements.get(tagName)) {
|
190
178
|
defineCustomElement$m();
|
191
179
|
}
|
192
180
|
break;
|
193
|
-
case "snk-
|
181
|
+
case "snk-configurator":
|
194
182
|
if (!customElements.get(tagName)) {
|
195
183
|
defineCustomElement$l();
|
196
184
|
}
|
197
185
|
break;
|
198
|
-
case "snk-
|
186
|
+
case "snk-data-exporter":
|
199
187
|
if (!customElements.get(tagName)) {
|
200
188
|
defineCustomElement$k();
|
201
189
|
}
|
202
190
|
break;
|
203
|
-
case "snk-
|
191
|
+
case "snk-data-unit":
|
204
192
|
if (!customElements.get(tagName)) {
|
205
193
|
defineCustomElement$j();
|
206
194
|
}
|
207
195
|
break;
|
208
|
-
case "snk-
|
196
|
+
case "snk-detail-view":
|
209
197
|
if (!customElements.get(tagName)) {
|
210
198
|
defineCustomElement$i();
|
211
199
|
}
|
212
200
|
break;
|
213
|
-
case "snk-
|
201
|
+
case "snk-exporter-email-sender":
|
214
202
|
if (!customElements.get(tagName)) {
|
215
203
|
defineCustomElement$h();
|
216
204
|
}
|
217
205
|
break;
|
218
|
-
case "snk-
|
206
|
+
case "snk-field-config":
|
219
207
|
if (!customElements.get(tagName)) {
|
220
208
|
defineCustomElement$g();
|
221
209
|
}
|
222
210
|
break;
|
223
|
-
case "snk-filter-
|
211
|
+
case "snk-filter-bar":
|
224
212
|
if (!customElements.get(tagName)) {
|
225
213
|
defineCustomElement$f();
|
226
214
|
}
|
227
215
|
break;
|
228
|
-
case "snk-filter-
|
216
|
+
case "snk-filter-detail":
|
229
217
|
if (!customElements.get(tagName)) {
|
230
218
|
defineCustomElement$e();
|
231
219
|
}
|
232
220
|
break;
|
233
|
-
case "snk-filter-
|
221
|
+
case "snk-filter-item":
|
234
222
|
if (!customElements.get(tagName)) {
|
235
223
|
defineCustomElement$d();
|
236
224
|
}
|