@sankhyalabs/sankhyablocks 1.3.31-beta.2 → 1.3.31-beta.20
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-7717f1e4.js +326 -0
- 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 +1041 -177
- package/dist/cjs/snk-crud.cjs.entry.js +65 -0
- package/dist/cjs/snk-data-unit.cjs.entry.js +276 -0
- package/dist/cjs/snk-filter-bar.cjs.entry.js +265 -0
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +47 -0
- package/dist/cjs/snk-filter-detail.cjs.entry.js +49 -0
- package/dist/cjs/snk-filter-item.cjs.entry.js +143 -0
- package/dist/cjs/snk-filter-list.cjs.entry.js +91 -0
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +23 -0
- package/dist/cjs/snk-filter-number.cjs.entry.js +24 -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.cjs.entry.js +133 -0
- package/dist/cjs/snk-grid.cjs.entry.js +79 -0
- package/dist/cjs/snk-pesquisa.cjs.entry.js +10 -7
- package/dist/cjs/snk-taskbar.cjs.entry.js +160 -0
- package/dist/cjs/taskbar-elements-283c737e.js +93 -0
- package/dist/cjs/taskbar-processor-6bd0d35c.js +47 -0
- package/dist/cjs/teste-pesquisa.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +17 -2
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +9 -2
- package/dist/collection/components/snk-application/snk-application.js +1061 -629
- package/dist/collection/components/snk-crud/snk-crud.css +6 -0
- package/dist/collection/components/snk-crud/snk-crud.js +176 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.css +6 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +540 -0
- 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-multi-select.js +64 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +65 -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 +118 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +244 -0
- package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +233 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +114 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +323 -0
- package/dist/collection/components/snk-form/snk-form.css +34 -0
- package/dist/collection/components/snk-form/snk-form.js +258 -0
- package/dist/collection/components/snk-grid/snk-grid.css +18 -0
- package/dist/collection/components/snk-grid/snk-grid.js +183 -0
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +56 -13
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +81 -76
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +86 -0
- package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +43 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +3 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +307 -0
- package/dist/collection/components/teste-pesquisa/teste-pesquisa.js +12 -9
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +38 -13
- package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +52 -21
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +388 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +4 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +2 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/totals-fetcher.js +47 -0
- package/dist/collection/lib/index.js +1 -0
- package/dist/collection/lib/message/SnkMessageBuilder.js +121 -0
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +23 -0
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +18 -0
- package/dist/collection/lib/message/resources/snk-form.msg.js +10 -0
- package/dist/collection/lib/message/resources/snk-taskbar.msg.js +17 -0
- package/dist/components/SnkMessageBuilder.js +303 -0
- package/dist/components/filter-item-type.enum.js +12 -0
- package/dist/components/index.d.ts +18 -5
- package/dist/components/index.js +22 -0
- package/dist/components/index2.js +2384 -0
- package/dist/components/snk-application2.js +1019 -148
- package/dist/components/snk-crud.d.ts +11 -0
- package/dist/components/snk-crud.js +127 -0
- package/dist/components/snk-data-unit.d.ts +11 -0
- package/dist/components/snk-data-unit.js +299 -0
- 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 +296 -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 +63 -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 +164 -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 +111 -0
- package/dist/components/snk-filter-multi-select.d.ts +11 -0
- package/dist/components/snk-filter-multi-select.js +39 -0
- package/dist/components/snk-filter-number.d.ts +11 -0
- package/dist/components/snk-filter-number.js +40 -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-form.d.ts +11 -0
- package/dist/components/snk-form.js +6 -0
- package/dist/components/snk-form2.js +159 -0
- package/dist/components/snk-grid.d.ts +11 -0
- package/dist/components/snk-grid.js +6 -0
- package/dist/components/snk-grid2.js +126 -0
- package/dist/components/snk-pesquisa2.js +6 -3
- package/dist/components/snk-taskbar.d.ts +11 -0
- package/dist/components/snk-taskbar.js +6 -0
- package/dist/components/snk-taskbar2.js +264 -0
- package/dist/components/taskbar-processor.js +45 -0
- package/dist/components/teste-pesquisa.js +1 -1
- package/dist/esm/SnkMessageBuilder-a7da466b.js +303 -0
- 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 +1013 -149
- package/dist/esm/snk-crud.entry.js +61 -0
- package/dist/esm/snk-data-unit.entry.js +272 -0
- package/dist/esm/snk-filter-bar.entry.js +261 -0
- package/dist/esm/snk-filter-binary-select.entry.js +43 -0
- package/dist/esm/snk-filter-detail.entry.js +45 -0
- package/dist/esm/snk-filter-item.entry.js +139 -0
- package/dist/esm/snk-filter-list.entry.js +87 -0
- package/dist/esm/snk-filter-multi-select.entry.js +19 -0
- package/dist/esm/snk-filter-number.entry.js +20 -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.entry.js +129 -0
- package/dist/esm/snk-grid.entry.js +75 -0
- package/dist/esm/snk-pesquisa.entry.js +7 -4
- package/dist/esm/snk-taskbar.entry.js +156 -0
- package/dist/esm/taskbar-elements-35d64ff9.js +90 -0
- package/dist/esm/taskbar-processor-aa6772c9.js +45 -0
- package/dist/esm/teste-pesquisa.entry.js +2 -2
- package/dist/sankhyablocks/SnkMessageBuilder-a7da466b.js +303 -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 +8452 -0
- package/dist/sankhyablocks/snk-crud.entry.js +61 -0
- package/dist/sankhyablocks/snk-data-unit.entry.js +272 -0
- package/dist/sankhyablocks/snk-filter-bar.entry.js +261 -0
- package/dist/sankhyablocks/snk-filter-binary-select.entry.js +43 -0
- package/dist/sankhyablocks/snk-filter-detail.entry.js +45 -0
- package/dist/sankhyablocks/snk-filter-item.entry.js +139 -0
- package/dist/sankhyablocks/snk-filter-list.entry.js +87 -0
- package/dist/sankhyablocks/snk-filter-multi-select.entry.js +19 -0
- package/dist/sankhyablocks/snk-filter-number.entry.js +20 -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 +129 -0
- package/dist/sankhyablocks/snk-grid.entry.js +75 -0
- package/dist/sankhyablocks/snk-pesquisa.entry.js +311 -0
- package/dist/sankhyablocks/snk-taskbar.entry.js +156 -0
- package/dist/sankhyablocks/taskbar-elements-35d64ff9.js +90 -0
- package/dist/sankhyablocks/taskbar-processor-aa6772c9.js +45 -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 +141 -20
- 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-multi-select.d.ts +7 -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 +14 -0
- package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +40 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +46 -0
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +29 -0
- package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +12 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +84 -0
- package/dist/types/components.d.ts +662 -9
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +7 -6
- package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +2 -0
- package/dist/types/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.d.ts +5 -0
- package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +3 -3
- package/dist/types/lib/http/data-fetcher/fetchers/totals-fetcher.d.ts +8 -0
- package/dist/types/lib/index.d.ts +1 -0
- package/dist/types/lib/message/SnkMessageBuilder.d.ts +42 -0
- package/dist/types/lib/message/resources/snk-data-unit.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/snk-filter-bar.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/snk-form.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/snk-taskbar.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 -2
- package/react/components.js +0 -2
- package/react/components.js.map +1 -1
- package/dist/cjs/index-1133bc2a.js +0 -1235
- package/dist/esm/index-ffda6382.js +0 -1208
- package/dist/sankhyablocks/p-2a7b4cb3.entry.js +0 -1
- package/dist/sankhyablocks/p-d62412bb.entry.js +0 -1
- package/dist/sankhyablocks/p-e6e91d5f.entry.js +0 -69
- package/dist/sankhyablocks/p-edcb9d8e.js +0 -2
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { ApplicationContext } from '@sankhyalabs/core';
|
|
2
|
+
import { h } from '@stencil/core';
|
|
3
|
+
import TaskbarProcessor from '../snk-taskbar/processor/taskbar-processor';
|
|
4
|
+
export class SnkForm {
|
|
5
|
+
constructor() {
|
|
6
|
+
this._taskbarProcessor = new TaskbarProcessor({
|
|
7
|
+
"snkForm.regular": ["PREVIOUS", "NEXT", "DIVIDER", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "GRID_MODE", "INSERT"],
|
|
8
|
+
"snkForm.finish_edition": ["CANCEL", "SAVE"]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
getFormConfig() {
|
|
12
|
+
return (this._dataState && this._dataState.insertionMode ? this._insertionFormConfig : this._editionFormConfig);
|
|
13
|
+
}
|
|
14
|
+
getInsertionHiddenFields(formConfig) {
|
|
15
|
+
const hiddenFields = [];
|
|
16
|
+
formConfig === null || formConfig === void 0 ? void 0 : formConfig.forEach(cfg => {
|
|
17
|
+
const def = this._dataUnit.getField(cfg.name);
|
|
18
|
+
if (def === null || def === void 0 ? void 0 : def.readOnly) {
|
|
19
|
+
hiddenFields.push(cfg.name);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return hiddenFields;
|
|
23
|
+
}
|
|
24
|
+
exitForm() {
|
|
25
|
+
if (this._dataUnit.isDirty()) {
|
|
26
|
+
this._dataUnit.cancelEdition({ after: () => this.exit.emit() });
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
this.exit.emit();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
getDisabledButtons() {
|
|
33
|
+
const disabled = [];
|
|
34
|
+
if (!this._dataState.hasPrevious) {
|
|
35
|
+
disabled.push("PREVIOUS");
|
|
36
|
+
}
|
|
37
|
+
if (!this._dataState.hasNext) {
|
|
38
|
+
disabled.push("NEXT");
|
|
39
|
+
}
|
|
40
|
+
return disabled;
|
|
41
|
+
}
|
|
42
|
+
loadInsertionConfig() {
|
|
43
|
+
if (this._dataUnit && this._configLoaded) {
|
|
44
|
+
this._insertionFormConfig = this._editionFormConfig.filter(fieldCfg => {
|
|
45
|
+
const def = this._dataUnit.getField(fieldCfg.name);
|
|
46
|
+
if (def === null || def === void 0 ? void 0 : def.readOnly) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
return true;
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
|
55
|
+
* através de um pequeno modulo na estrutura da aplicação:
|
|
56
|
+
* - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
|
57
|
+
* Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-form.msg.ts"
|
|
58
|
+
*/
|
|
59
|
+
getMessage(key) {
|
|
60
|
+
return this._application.messagesBuilder.getMessage(key, this.getMessageParams());
|
|
61
|
+
}
|
|
62
|
+
getMessageParams() {
|
|
63
|
+
var _a;
|
|
64
|
+
return ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.selectedRecords) ? this._dataState.selectedRecords[0] : undefined;
|
|
65
|
+
}
|
|
66
|
+
componentWillLoad() {
|
|
67
|
+
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
68
|
+
if (this._application) {
|
|
69
|
+
this._application.loadFormConfig(this.configName).then(cfg => {
|
|
70
|
+
this._configLoaded = true;
|
|
71
|
+
this._editionFormConfig = cfg;
|
|
72
|
+
this.loadInsertionConfig();
|
|
73
|
+
});
|
|
74
|
+
//Forçamos a carga dos acessos pra aproveitar a request inicial.
|
|
75
|
+
this._application.getAllAccess();
|
|
76
|
+
}
|
|
77
|
+
let parent = this._element.parentElement;
|
|
78
|
+
while (parent) {
|
|
79
|
+
if (parent.tagName.toUpperCase() === "SNK-DATA-UNIT") {
|
|
80
|
+
this._snkDataUnit = parent;
|
|
81
|
+
this._dataUnit = this._snkDataUnit.dataUnit;
|
|
82
|
+
this._dataState = this._snkDataUnit.dataState;
|
|
83
|
+
if (this._dataUnit) {
|
|
84
|
+
this.loadInsertionConfig();
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
this._snkDataUnit.addEventListener("dataUnitReady", (evt) => {
|
|
88
|
+
this._dataUnit = evt.detail;
|
|
89
|
+
this.loadInsertionConfig();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
this._snkDataUnit.addEventListener("dataStateChange", (evt) => {
|
|
93
|
+
this._dataState = evt.detail;
|
|
94
|
+
});
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
parent = parent.parentElement;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
componentWillRender() {
|
|
101
|
+
var _a;
|
|
102
|
+
const taskbarId = ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "snkForm.finish_edition" : "snkForm.regular";
|
|
103
|
+
const disabledButtons = [];
|
|
104
|
+
if (!this._dataState || !this._dataState.hasPrevious) {
|
|
105
|
+
disabledButtons.push("PREVIOUS");
|
|
106
|
+
}
|
|
107
|
+
if (!this._dataState || !this._dataState.hasNext) {
|
|
108
|
+
disabledButtons.push("NEXT");
|
|
109
|
+
}
|
|
110
|
+
this._taskbarProcessor.process(taskbarId, this.taskbarManager, this._dataState, disabledButtons);
|
|
111
|
+
}
|
|
112
|
+
render() {
|
|
113
|
+
var _a;
|
|
114
|
+
if (!this._configLoaded || !this._dataUnit || !this._dataState) {
|
|
115
|
+
return undefined;
|
|
116
|
+
}
|
|
117
|
+
return (h("section", { class: "snk-form" }, h("div", { class: "snk-form__header snk-form__header--fixed ez-row" }, h("div", { class: "ez-col ez-col--sd-6 ez-col--tb-6", key: "formHeader" }, h("ez-button", { title: this.getMessage("snkForm.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small", onClick: () => this.exitForm() }), h("h1", { class: "ez-title ez-title--primary ez-title--xlarge ez-align--middle" }, this.getMessage("snkForm.title"))), h("div", { class: "ez-col ez-col--sd-6 ez-col--tb-6 ez-align--right" }, h("snk-taskbar", { key: "formTaskbar", buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, actionsList: this.actionsList, primaryButton: ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", dataUnit: this._dataUnit }))), h("section", null, h("div", { class: "ez-row" }, h("div", { class: "ez-col ez-col--sd-12" }, h("ez-form", { key: "ezForm" + this._snkDataUnit.entityName, dataUnit: this._dataUnit, config: this.getFormConfig(), recordsValidator: this.recordsValidator }))))));
|
|
118
|
+
}
|
|
119
|
+
static get is() { return "snk-form"; }
|
|
120
|
+
static get encapsulation() { return "scoped"; }
|
|
121
|
+
static get originalStyleUrls() {
|
|
122
|
+
return {
|
|
123
|
+
"$": ["snk-form.css"]
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
static get styleUrls() {
|
|
127
|
+
return {
|
|
128
|
+
"$": ["snk-form.css"]
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
static get properties() {
|
|
132
|
+
return {
|
|
133
|
+
"configName": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"mutable": false,
|
|
136
|
+
"complexType": {
|
|
137
|
+
"original": "string",
|
|
138
|
+
"resolved": "string",
|
|
139
|
+
"references": {}
|
|
140
|
+
},
|
|
141
|
+
"required": false,
|
|
142
|
+
"optional": false,
|
|
143
|
+
"docs": {
|
|
144
|
+
"tags": [],
|
|
145
|
+
"text": "Nome usado para guardar/recuperar as configura\u00E7\u00F5es do formul\u00E1rio"
|
|
146
|
+
},
|
|
147
|
+
"attribute": "config-name",
|
|
148
|
+
"reflect": false
|
|
149
|
+
},
|
|
150
|
+
"recordsValidator": {
|
|
151
|
+
"type": "unknown",
|
|
152
|
+
"mutable": false,
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "RecordValidator",
|
|
155
|
+
"resolved": "RecordValidator",
|
|
156
|
+
"references": {
|
|
157
|
+
"RecordValidator": {
|
|
158
|
+
"location": "import",
|
|
159
|
+
"path": "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"required": false,
|
|
164
|
+
"optional": false,
|
|
165
|
+
"docs": {
|
|
166
|
+
"tags": [],
|
|
167
|
+
"text": "Validador respons\u00E1vel por checar a integridade das informa\u00E7\u00F5es do registro"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"actionsList": {
|
|
171
|
+
"type": "unknown",
|
|
172
|
+
"mutable": false,
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "Array<Action>",
|
|
175
|
+
"resolved": "Action[]",
|
|
176
|
+
"references": {
|
|
177
|
+
"Array": {
|
|
178
|
+
"location": "global"
|
|
179
|
+
},
|
|
180
|
+
"Action": {
|
|
181
|
+
"location": "import",
|
|
182
|
+
"path": "../snk-taskbar/snk-taskbar"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": "Lista de a\u00E7\u00F5es que devem ser usadas no bot\u00E3o \"Mais op\u00E7\u00F5es\""
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"taskbarManager": {
|
|
194
|
+
"type": "unknown",
|
|
195
|
+
"mutable": false,
|
|
196
|
+
"complexType": {
|
|
197
|
+
"original": "TaskbarManager",
|
|
198
|
+
"resolved": "TaskbarManager",
|
|
199
|
+
"references": {
|
|
200
|
+
"TaskbarManager": {
|
|
201
|
+
"location": "import",
|
|
202
|
+
"path": "../snk-taskbar/snk-taskbar"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"required": false,
|
|
207
|
+
"optional": false,
|
|
208
|
+
"docs": {
|
|
209
|
+
"tags": [],
|
|
210
|
+
"text": "Gerenciador das barras de tarefas. \u00C9 poss\u00EDvel determinar bot\u00F5es espec\u00EDficos\nou mesmo gerenciar o estado dos bot\u00F5es."
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
static get states() {
|
|
216
|
+
return {
|
|
217
|
+
"_dataUnit": {},
|
|
218
|
+
"_configLoaded": {},
|
|
219
|
+
"_dataState": {},
|
|
220
|
+
"_editionFormConfig": {},
|
|
221
|
+
"_insertionFormConfig": {}
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
static get events() {
|
|
225
|
+
return [{
|
|
226
|
+
"method": "exit",
|
|
227
|
+
"name": "exit",
|
|
228
|
+
"bubbles": true,
|
|
229
|
+
"cancelable": true,
|
|
230
|
+
"composed": true,
|
|
231
|
+
"docs": {
|
|
232
|
+
"tags": [],
|
|
233
|
+
"text": "Emitido quando o bot\u00E3o de voltar \u00E9 acionado"
|
|
234
|
+
},
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "void",
|
|
237
|
+
"resolved": "void",
|
|
238
|
+
"references": {}
|
|
239
|
+
}
|
|
240
|
+
}, {
|
|
241
|
+
"method": "actionClick",
|
|
242
|
+
"name": "actionClick",
|
|
243
|
+
"bubbles": true,
|
|
244
|
+
"cancelable": true,
|
|
245
|
+
"composed": true,
|
|
246
|
+
"docs": {
|
|
247
|
+
"tags": [],
|
|
248
|
+
"text": "Emitido sempre que houver click de bot\u00E3o ou a\u00E7\u00E3o"
|
|
249
|
+
},
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "string",
|
|
252
|
+
"resolved": "string",
|
|
253
|
+
"references": {}
|
|
254
|
+
}
|
|
255
|
+
}];
|
|
256
|
+
}
|
|
257
|
+
static get elementRef() { return "_element"; }
|
|
258
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.snk-grid__container{
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 100%;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.snk-grid__header{
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-wrap: nowrap;
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.snk-grid__filter-bar{
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
.snk-grid__header-divider{
|
|
17
|
+
margin-bottom: var(--space--small);
|
|
18
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { ApplicationContext } from '@sankhyalabs/core';
|
|
2
|
+
import { h } from '@stencil/core';
|
|
3
|
+
import { TaskbarElement } from '../snk-taskbar/elements/taskbar-elements';
|
|
4
|
+
import TaskbarProcessor from '../snk-taskbar/processor/taskbar-processor';
|
|
5
|
+
export class SnkGrid {
|
|
6
|
+
constructor() {
|
|
7
|
+
this._topTaskbarProcessor = new TaskbarProcessor({
|
|
8
|
+
"snkGridTopTaskbar": ["FORM_MODE", "CONFIG_GRID", "INSERT"]
|
|
9
|
+
});
|
|
10
|
+
this._headerTaskbarProcessor = new TaskbarProcessor({
|
|
11
|
+
"snkGridHeaderTaskbar.unselected": ["REFRESH"],
|
|
12
|
+
"snkGridHeaderTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH"]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
actionClickHandler(evt) {
|
|
16
|
+
if (evt.detail === TaskbarElement.CONFIG_GRID && this._grid) {
|
|
17
|
+
this._grid.openGridConfig();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
saveConfig(config) {
|
|
21
|
+
const snkApplication = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
22
|
+
if (snkApplication) {
|
|
23
|
+
snkApplication.saveGridConfig(config);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
componentWillLoad() {
|
|
27
|
+
const snkApplication = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
28
|
+
if (snkApplication) {
|
|
29
|
+
snkApplication.loadGridConfig(this.configName).then(cfg => {
|
|
30
|
+
this._gridConfig = cfg;
|
|
31
|
+
this._configLoaded = true;
|
|
32
|
+
});
|
|
33
|
+
//Forçamos a carga dos acessos pra aproveitar a request inicial.
|
|
34
|
+
snkApplication.getAllAccess();
|
|
35
|
+
}
|
|
36
|
+
let parent = this._element.parentElement;
|
|
37
|
+
while (parent) {
|
|
38
|
+
if (parent.tagName.toUpperCase() === "SNK-DATA-UNIT") {
|
|
39
|
+
this._snkDataUnit = parent;
|
|
40
|
+
this._dataUnit = this._snkDataUnit.dataUnit;
|
|
41
|
+
if (!this._dataUnit) {
|
|
42
|
+
this._snkDataUnit.addEventListener("dataUnitReady", (evt) => {
|
|
43
|
+
this._dataUnit = evt.detail;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
this._snkDataUnit.addEventListener("dataStateChange", (evt) => {
|
|
47
|
+
this._dataState = evt.detail;
|
|
48
|
+
});
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
parent = parent.parentElement;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
componentWillRender() {
|
|
55
|
+
const headerTaskbarId = this._dataState && this._dataState.selectedRecords.length > 0 ? "snkGridHeaderTaskbar.selected" : "snkGridHeaderTaskbar.unselected";
|
|
56
|
+
this._headerTaskbarProcessor.process(headerTaskbarId, this.taskbarManager, this._dataState);
|
|
57
|
+
this._topTaskbarProcessor.process("snkGridTopTaskbar", this.taskbarManager, this._dataState);
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
if (!this._configLoaded || !this._dataUnit) {
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
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", { class: "snk-grid__filter-bar ez-align--top" }), 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() }, 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" }))));
|
|
64
|
+
}
|
|
65
|
+
static get is() { return "snk-grid"; }
|
|
66
|
+
static get encapsulation() { return "scoped"; }
|
|
67
|
+
static get originalStyleUrls() {
|
|
68
|
+
return {
|
|
69
|
+
"$": ["snk-grid.css"]
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
static get styleUrls() {
|
|
73
|
+
return {
|
|
74
|
+
"$": ["snk-grid.css"]
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
static get properties() {
|
|
78
|
+
return {
|
|
79
|
+
"configName": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"mutable": false,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "string",
|
|
84
|
+
"resolved": "string",
|
|
85
|
+
"references": {}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": false,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": "Nome usado para salvar/recuperar a configura\u00E7\u00E3o"
|
|
92
|
+
},
|
|
93
|
+
"attribute": "config-name",
|
|
94
|
+
"reflect": false
|
|
95
|
+
},
|
|
96
|
+
"actionsList": {
|
|
97
|
+
"type": "unknown",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "Array<Action>",
|
|
101
|
+
"resolved": "Action[]",
|
|
102
|
+
"references": {
|
|
103
|
+
"Array": {
|
|
104
|
+
"location": "global"
|
|
105
|
+
},
|
|
106
|
+
"Action": {
|
|
107
|
+
"location": "import",
|
|
108
|
+
"path": "../snk-taskbar/snk-taskbar"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": false,
|
|
113
|
+
"optional": false,
|
|
114
|
+
"docs": {
|
|
115
|
+
"tags": [],
|
|
116
|
+
"text": "Lista de a\u00E7\u00F5es que devem ser usadas no bot\u00E3o \"Mais op\u00E7\u00F5es\""
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"taskbarManager": {
|
|
120
|
+
"type": "unknown",
|
|
121
|
+
"mutable": false,
|
|
122
|
+
"complexType": {
|
|
123
|
+
"original": "TaskbarManager",
|
|
124
|
+
"resolved": "TaskbarManager",
|
|
125
|
+
"references": {
|
|
126
|
+
"TaskbarManager": {
|
|
127
|
+
"location": "import",
|
|
128
|
+
"path": "../snk-taskbar/snk-taskbar"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"required": false,
|
|
133
|
+
"optional": false,
|
|
134
|
+
"docs": {
|
|
135
|
+
"tags": [],
|
|
136
|
+
"text": "Gerenciador das barras de tarefas. \u00C9 poss\u00EDvel determinar bot\u00F5es espec\u00EDficos\nou mesmo gerenciar o estado dos bot\u00F5es."
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
static get states() {
|
|
142
|
+
return {
|
|
143
|
+
"_dataUnit": {},
|
|
144
|
+
"_configLoaded": {},
|
|
145
|
+
"_dataState": {},
|
|
146
|
+
"_gridConfig": {}
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
static get events() {
|
|
150
|
+
return [{
|
|
151
|
+
"method": "actionClick",
|
|
152
|
+
"name": "actionClick",
|
|
153
|
+
"bubbles": true,
|
|
154
|
+
"cancelable": true,
|
|
155
|
+
"composed": true,
|
|
156
|
+
"docs": {
|
|
157
|
+
"tags": [],
|
|
158
|
+
"text": "Emitido sempre que houver click de bot\u00E3o ou a\u00E7\u00E3o"
|
|
159
|
+
},
|
|
160
|
+
"complexType": {
|
|
161
|
+
"original": "string",
|
|
162
|
+
"resolved": "string",
|
|
163
|
+
"references": {}
|
|
164
|
+
}
|
|
165
|
+
}, {
|
|
166
|
+
"method": "gridDoubleClick",
|
|
167
|
+
"name": "gridDoubleClick",
|
|
168
|
+
"bubbles": true,
|
|
169
|
+
"cancelable": true,
|
|
170
|
+
"composed": true,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [],
|
|
173
|
+
"text": "Emitido sempre que houver duplo click na grade"
|
|
174
|
+
},
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "void",
|
|
177
|
+
"resolved": "void",
|
|
178
|
+
"references": {}
|
|
179
|
+
}
|
|
180
|
+
}];
|
|
181
|
+
}
|
|
182
|
+
static get elementRef() { return "_element"; }
|
|
183
|
+
}
|
|
@@ -1,30 +1,39 @@
|
|
|
1
1
|
:host {
|
|
2
|
+
/* general */
|
|
2
3
|
/*@doc Define o tamanho da fonte do componente.*/
|
|
3
4
|
--snk-pesquisa--font-size: var(--text--medium, 14px);
|
|
4
|
-
|
|
5
5
|
/*@doc Define a família da fonte do componente.*/
|
|
6
6
|
--snk-pesquisa--font-family: var(--font-pattern, Arial);
|
|
7
|
-
|
|
8
7
|
/*@doc Define o peso da fonte do componente.*/
|
|
9
8
|
--snk-pesquisa--font-weight: var(--text-weight--medium, 400);
|
|
10
9
|
|
|
10
|
+
/* records */
|
|
11
11
|
/*@doc Define a cor da fonte do indicador de registros do componente.*/
|
|
12
12
|
--snk-pesquisa__records--color: var(--text--primary, #626e82);
|
|
13
|
-
|
|
14
13
|
/*@doc Define o espaçamento vertical do indicador de registros do componente.*/
|
|
15
14
|
--snk-pesquisa__records--padding-vertical: var(--space--medium, 12px);
|
|
16
15
|
|
|
16
|
+
/* content */
|
|
17
17
|
/*@doc Define o espaçamento da direita no conteúdo do componente.*/
|
|
18
18
|
--snk-pesquisa__content--padding-right: var(--space--small, 6px);
|
|
19
19
|
|
|
20
|
+
/* scrollbar */
|
|
20
21
|
/*@doc Define a cor da barra de rolagem do componente.*/
|
|
21
|
-
--snk-pesquisa__content-scrollbar--background-color: var(--
|
|
22
|
-
|
|
22
|
+
--snk-pesquisa__content-scrollbar--background-color-primary: var(--scrollbar--primary, #2B3A54);
|
|
23
|
+
/*@doc Define a cor de fundo da barra de rolagem do componente.*/
|
|
24
|
+
--snk-pesquisa__content-scrollbar--background-color-secondary: var(--scrollbar--secondary, #E5EAF0);
|
|
23
25
|
/*@doc Define o raio da borda da barra de rolagem do componente.*/
|
|
24
|
-
--snk-pesquisa__content-scrollbar--border-radius: var(--border--radius-
|
|
25
|
-
|
|
26
|
+
--snk-pesquisa__content-scrollbar--border-radius: var(--border--radius-small, 6px);
|
|
26
27
|
/*@doc Define a largura da barra de rolagem do componente.*/
|
|
27
|
-
--snk-pesquisa__content-scrollbar--width: var(--space--medium, 12px)
|
|
28
|
+
--snk-pesquisa__content-scrollbar--width: var(--space--medium, 12px);
|
|
29
|
+
|
|
30
|
+
/* buttons */
|
|
31
|
+
/*@doc Define a cor do botão de pesquisa do componente.*/
|
|
32
|
+
--snk-pesquisa__btn--color: var(--title--primary, #2B3A54);
|
|
33
|
+
/*@doc Define a cor do botão de pesquisa do componente quando desabilitado.*/
|
|
34
|
+
--snk-pesquisa__btn-disabled--color: var(--text--disable, #AFB6C0);
|
|
35
|
+
/*@doc Define a cor do botão de pesquisa do componente quando o mouse está sobre ele.*/
|
|
36
|
+
--snk-pesquisa__btn-hover--color: var(--color--primary, #4e4e4e);
|
|
28
37
|
|
|
29
38
|
max-height: 100%;
|
|
30
39
|
height: 100%;
|
|
@@ -47,8 +56,11 @@
|
|
|
47
56
|
padding-right: 4px;
|
|
48
57
|
}
|
|
49
58
|
|
|
50
|
-
.snk-pesquisa__input-
|
|
51
|
-
|
|
59
|
+
.snk-pesquisa__input ez-icon {
|
|
60
|
+
--ez-icon--color: inherit;
|
|
61
|
+
|
|
62
|
+
/*public*/
|
|
63
|
+
font-weight: var(--text-weight--large, 600);
|
|
52
64
|
}
|
|
53
65
|
|
|
54
66
|
.snk-pesquisa__content {
|
|
@@ -56,13 +68,15 @@
|
|
|
56
68
|
flex-direction: column;
|
|
57
69
|
height: 100%;
|
|
58
70
|
overflow-y: auto;
|
|
71
|
+
scrollbar-width: thin;
|
|
59
72
|
|
|
60
73
|
/*public*/
|
|
74
|
+
scrollbar-color: var(--snk-pesquisa__content-scrollbar--background-color-primary) var(--snk-pesquisa__content-scrollbar--background-color-secondary);
|
|
61
75
|
padding-right: var(--snk-pesquisa__content--padding-right);
|
|
62
76
|
}
|
|
63
77
|
|
|
64
78
|
.snk-pesquisa__content::-webkit-scrollbar-track {
|
|
65
|
-
background-color:
|
|
79
|
+
background-color: var(--snk-pesquisa__content-scrollbar--background-color-secondary);
|
|
66
80
|
|
|
67
81
|
/*public*/
|
|
68
82
|
border-radius: var(--snk-pesquisa__content-scrollbar--border-radius);
|
|
@@ -70,12 +84,12 @@
|
|
|
70
84
|
|
|
71
85
|
.snk-pesquisa__content::-webkit-scrollbar-thumb {
|
|
72
86
|
/*public*/
|
|
73
|
-
background-color: var(--snk-pesquisa__content-scrollbar--background-color);
|
|
87
|
+
background-color: var(--snk-pesquisa__content-scrollbar--background-color-primary);
|
|
74
88
|
border-radius: var(--snk-pesquisa__content-scrollbar--border-radius);
|
|
75
89
|
}
|
|
76
90
|
|
|
77
91
|
.snk-pesquisa__content::-webkit-scrollbar {
|
|
78
|
-
background-color:
|
|
92
|
+
background-color: var(--snk-pesquisa__content-scrollbar--background-color-secondary);
|
|
79
93
|
|
|
80
94
|
/*public*/
|
|
81
95
|
width: var(--snk-pesquisa__content-scrollbar--width);
|
|
@@ -91,4 +105,33 @@
|
|
|
91
105
|
color: var(--snk-pesquisa__records--color);
|
|
92
106
|
padding-bottom: var(--snk-pesquisa__records--padding-vertical);
|
|
93
107
|
padding-top: var(--snk-pesquisa__records--padding-vertical);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.snk-pesquisa__btn {
|
|
111
|
+
outline: none;
|
|
112
|
+
border: none;
|
|
113
|
+
background: none;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
|
|
116
|
+
/*public*/
|
|
117
|
+
color: var(--snk-pesquisa__btn--color);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.snk-pesquisa__btn:disabled {
|
|
121
|
+
cursor: unset;
|
|
122
|
+
|
|
123
|
+
/*public*/
|
|
124
|
+
color: var(--snk-pesquisa__btn-disabled--color);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.snk-pesquisa__btn:disabled:hover {
|
|
128
|
+
cursor: unset;
|
|
129
|
+
|
|
130
|
+
/*public*/
|
|
131
|
+
color: var(--snk-pesquisa__btn-disabled--color);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.snk-pesquisa__btn:hover {
|
|
135
|
+
/*public*/
|
|
136
|
+
color: var(--snk-pesquisa__btn-hover--color);
|
|
94
137
|
}
|