@sankhyalabs/sankhyablocks 3.1.0 → 3.2.1
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/{index-2cd6f753.js → index-21bd01e1.js} +111 -2
- package/dist/cjs/{index-696b5c3b.js → index-fc7ca86c.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/sankhyablocks.cjs.js +6 -2
- package/dist/cjs/snk-application.cjs.entry.js +3 -1
- package/dist/cjs/snk-config-options.cjs.entry.js +4 -4
- package/dist/cjs/snk-configurator_3.cjs.entry.js +14 -14
- package/dist/cjs/snk-crud.cjs.entry.js +10 -9
- package/dist/cjs/snk-data-exporter_8.cjs.entry.js +41 -16
- package/dist/cjs/snk-data-unit.cjs.entry.js +19 -14
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -1
- 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 +3 -1
- package/dist/cjs/snk-filter-personalized.cjs.entry.js +5 -1
- package/dist/cjs/snk-filter-search.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-text.cjs.entry.js +3 -1
- package/dist/cjs/snk-form-config.cjs.entry.js +7 -4
- package/dist/cjs/snk-form.cjs.entry.js +7 -4
- package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -1
- package/dist/cjs/snk-tab-config.cjs.entry.js +7 -1
- package/dist/cjs/{taskbar-elements-81ad590c.js → taskbar-elements-8d38f43a.js} +2 -2
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/snk-application/snk-application.js +2 -0
- package/dist/collection/components/snk-configurator/snk-configurator.js +2 -3
- package/dist/collection/components/snk-crud/snk-crud.js +7 -6
- package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +2 -0
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +0 -3
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +18 -13
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +6 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +3 -0
- package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +9 -0
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +12 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +4 -0
- package/dist/collection/components/snk-form/snk-form.js +6 -3
- package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js +3 -3
- package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.js +2 -6
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +6 -3
- package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +6 -0
- package/dist/collection/components/snk-grid/snk-grid.js +8 -3
- package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +3 -3
- package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.js +0 -3
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +4 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +9 -4
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +1 -1
- package/dist/components/snk-application2.js +2 -0
- package/dist/components/snk-config-options2.js +3 -3
- package/dist/components/snk-configurator2.js +2 -3
- package/dist/components/snk-crud.js +7 -6
- package/dist/components/snk-data-exporter2.js +0 -3
- package/dist/components/snk-data-unit.js +18 -13
- package/dist/components/snk-exporter-email-sender2.js +2 -0
- package/dist/components/snk-field-config2.js +2 -6
- package/dist/components/snk-filter-bar2.js +4 -0
- package/dist/components/snk-filter-binary-select.js +2 -0
- package/dist/components/snk-filter-detail2.js +2 -0
- package/dist/components/snk-filter-item2.js +3 -0
- package/dist/components/snk-filter-list2.js +9 -0
- package/dist/components/snk-filter-modal2.js +10 -0
- package/dist/components/snk-filter-multi-select.js +2 -0
- package/dist/components/snk-filter-number.js +2 -0
- package/dist/components/snk-filter-period.js +2 -0
- package/dist/components/snk-filter-personalized.js +4 -0
- package/dist/components/snk-filter-search.js +2 -0
- package/dist/components/snk-filter-text.js +2 -0
- package/dist/components/snk-form-config2.js +6 -3
- package/dist/components/snk-form2.js +6 -3
- package/dist/components/snk-grid-config2.js +3 -3
- package/dist/components/snk-grid2.js +8 -3
- package/dist/components/snk-pesquisa2.js +4 -0
- package/dist/components/snk-select-box2.js +0 -3
- package/dist/components/snk-tab-config2.js +6 -0
- package/dist/components/snk-taskbar2.js +9 -4
- package/dist/esm/{index-a77b6f35.js → index-cfd4bb13.js} +111 -3
- package/dist/esm/{index-d89e384f.js → index-e467ade5.js} +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/sankhyablocks.js +3 -2
- package/dist/esm/snk-application.entry.js +3 -1
- package/dist/esm/snk-config-options.entry.js +4 -4
- package/dist/esm/snk-configurator_3.entry.js +14 -14
- package/dist/esm/snk-crud.entry.js +10 -9
- package/dist/esm/snk-data-exporter_8.entry.js +41 -16
- package/dist/esm/snk-data-unit.entry.js +19 -14
- package/dist/esm/snk-exporter-email-sender.entry.js +3 -1
- package/dist/esm/snk-filter-binary-select.entry.js +3 -1
- package/dist/esm/snk-filter-detail.entry.js +3 -1
- package/dist/esm/snk-filter-multi-select.entry.js +3 -1
- package/dist/esm/snk-filter-number.entry.js +3 -1
- package/dist/esm/snk-filter-period.entry.js +3 -1
- package/dist/esm/snk-filter-personalized.entry.js +5 -1
- package/dist/esm/snk-filter-search.entry.js +3 -1
- package/dist/esm/snk-filter-text.entry.js +3 -1
- package/dist/esm/snk-form-config.entry.js +7 -4
- package/dist/esm/snk-form.entry.js +7 -4
- package/dist/esm/snk-pesquisa.entry.js +5 -1
- package/dist/esm/snk-tab-config.entry.js +7 -1
- package/dist/esm/{taskbar-elements-9b0a87f1.js → taskbar-elements-24655695.js} +2 -2
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/p-01fdcc77.entry.js +1 -0
- package/dist/sankhyablocks/p-0b86c7f0.entry.js +1 -0
- package/dist/sankhyablocks/p-123732eb.entry.js +1 -0
- package/dist/sankhyablocks/p-125c2d01.entry.js +1 -0
- package/dist/sankhyablocks/p-2cd74aa1.entry.js +1 -0
- package/dist/sankhyablocks/{p-4cec3835.entry.js → p-31e36df4.entry.js} +4 -4
- package/dist/sankhyablocks/p-4133f9e5.entry.js +1 -0
- package/dist/sankhyablocks/p-5360f8fa.entry.js +1 -0
- package/dist/sankhyablocks/p-5e62a17b.entry.js +1 -0
- package/dist/sankhyablocks/p-5fc55684.entry.js +1 -0
- package/dist/sankhyablocks/p-6b992e43.js +1 -0
- package/dist/sankhyablocks/p-86d29b6f.entry.js +1 -0
- package/dist/sankhyablocks/p-93c92b97.entry.js +1 -0
- package/dist/sankhyablocks/p-93d8ea09.js +2 -2
- package/dist/sankhyablocks/{p-112bb324.js → p-98f7f796.js} +1 -1
- package/dist/sankhyablocks/p-9fab987d.entry.js +1 -0
- package/dist/sankhyablocks/p-ad51bf1c.entry.js +1 -0
- package/dist/sankhyablocks/p-afba9bbe.entry.js +1 -0
- package/dist/sankhyablocks/p-b9667fbe.js +2 -0
- package/dist/sankhyablocks/p-c336170d.entry.js +1 -0
- package/dist/sankhyablocks/p-d5c9c1f8.entry.js +1 -0
- package/dist/sankhyablocks/{p-57895452.entry.js → p-e551b19a.entry.js} +1 -1
- package/dist/sankhyablocks/p-e701646c.entry.js +1 -0
- package/dist/sankhyablocks/p-ee82c157.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +64 -3
- package/loader/index.d.ts +9 -0
- package/package.json +5 -5
- package/dist/sankhyablocks/p-048e126b.entry.js +0 -1
- package/dist/sankhyablocks/p-12ebe36a.entry.js +0 -1
- package/dist/sankhyablocks/p-187b0d06.entry.js +0 -1
- package/dist/sankhyablocks/p-1ccaea51.entry.js +0 -1
- package/dist/sankhyablocks/p-1dbe9dd8.entry.js +0 -1
- package/dist/sankhyablocks/p-3c7ec56e.entry.js +0 -1
- package/dist/sankhyablocks/p-3f6c05c7.entry.js +0 -1
- package/dist/sankhyablocks/p-6cd41239.entry.js +0 -1
- package/dist/sankhyablocks/p-7dad1d5e.js +0 -1
- package/dist/sankhyablocks/p-91c23d20.entry.js +0 -1
- package/dist/sankhyablocks/p-a77dd79a.js +0 -2
- package/dist/sankhyablocks/p-ab4ff312.entry.js +0 -1
- package/dist/sankhyablocks/p-bcb2fb03.entry.js +0 -1
- package/dist/sankhyablocks/p-c15108d5.entry.js +0 -1
- package/dist/sankhyablocks/p-d3e402d3.entry.js +0 -1
- package/dist/sankhyablocks/p-d7ae56ce.entry.js +0 -1
- package/dist/sankhyablocks/p-df5d94c6.entry.js +0 -1
- package/dist/sankhyablocks/p-e075dba7.entry.js +0 -1
- package/dist/sankhyablocks/p-f6f71be7.entry.js +0 -1
- package/dist/sankhyablocks/p-f9829109.entry.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
|
|
8
8
|
const core = require('@sankhyalabs/core');
|
|
@@ -11,6 +11,8 @@ const SnkFilterDetail = class {
|
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.filterChange = index.createEvent(this, "filterChange", 7);
|
|
14
|
+
this.config = undefined;
|
|
15
|
+
this.getMessage = undefined;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* Exibe o componente snk-filter-detail.
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
|
|
8
8
|
|
|
9
9
|
const SnkFilterMultiSelect = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
|
+
this.value = undefined;
|
|
13
|
+
this.config = undefined;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* Emitido quando acontece a alteração de valor do componente snk-filter-multi-select
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
|
|
8
8
|
|
|
9
9
|
const SnkFilterPeriod = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
|
+
this.config = undefined;
|
|
13
|
+
this.value = undefined;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* Emitido quando acontece a alteração de valor do componente snk-filter-number
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
|
|
8
8
|
|
|
9
9
|
const SnkFilterPeriod = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
|
+
this.config = undefined;
|
|
13
|
+
this.value = undefined;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* Emitido quando acontece a alteração de valor do componente snk-filter-period
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
@@ -11,6 +11,10 @@ const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
|
|
|
11
11
|
const SnkFilterPersonalized = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
|
+
this.config = undefined;
|
|
15
|
+
this.value = undefined;
|
|
16
|
+
this.fix = undefined;
|
|
17
|
+
this.unfix = undefined;
|
|
14
18
|
}
|
|
15
19
|
componentDidLoad() {
|
|
16
20
|
if (this._element) {
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
|
|
8
8
|
|
|
9
9
|
const SnkFilterSearch = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
|
+
this.config = undefined;
|
|
13
|
+
this.value = undefined;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* Emitido quando acontece a alteração de valor do componente snk-filter-search
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const SnkFilterText = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
index.registerInstance(this, hostRef);
|
|
11
|
+
this.config = undefined;
|
|
12
|
+
this.value = undefined;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* Emitido quando acontece a alteração de valor do componente snk-filter-text.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const draggable_bundle = require('./draggable.bundle-82a25c06.js');
|
|
7
7
|
const core = require('@sankhyalabs/core');
|
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
@@ -37,14 +37,17 @@ const SnkFormConfig = class {
|
|
|
37
37
|
this._fieldsAvailableStyle = "ez-col ez-col--sd-12 ez-col--tb-12 ez-margin-bottom--medium ez-margin-right--medium sc-snk-form-config";
|
|
38
38
|
this._fieldFloatingStyle = "form-config__field-config--dragged";
|
|
39
39
|
this._formConfigOptions = [];
|
|
40
|
+
this._fieldConfigSelected = undefined;
|
|
41
|
+
this._layoutFormConfig = undefined;
|
|
42
|
+
this._fieldsAvailable = undefined;
|
|
40
43
|
this._formConfig = {};
|
|
41
44
|
this._formConfigChanged = false;
|
|
45
|
+
this._optionFormConfigSelected = undefined;
|
|
42
46
|
this._optionFormConfigChanged = false;
|
|
43
47
|
this._tempGroups = [];
|
|
44
|
-
|
|
45
|
-
* Campos de configuração de formulário.
|
|
46
|
-
*/
|
|
48
|
+
this.dataUnit = undefined;
|
|
47
49
|
this.formConfig = {};
|
|
50
|
+
this.configName = undefined;
|
|
48
51
|
}
|
|
49
52
|
observeFormConfig() {
|
|
50
53
|
this.loadConfig(this._sortableTimer);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const ConfigStorage = require('./ConfigStorage-8b5e3261.js');
|
|
8
8
|
const index$1 = require('./index-0e663819.js');
|
|
@@ -17,12 +17,15 @@ const SnkForm = class {
|
|
|
17
17
|
this.exit = index.createEvent(this, "exit", 7);
|
|
18
18
|
this.actionClick = index.createEvent(this, "actionClick", 7);
|
|
19
19
|
this._renderTimer = 500;
|
|
20
|
+
this._dataUnit = undefined;
|
|
21
|
+
this._dataState = undefined;
|
|
20
22
|
this._editionFormConfig = {};
|
|
21
23
|
this._insertionFormConfig = {};
|
|
22
24
|
this._showFormConfig = false;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
this.configName = undefined;
|
|
26
|
+
this.recordsValidator = undefined;
|
|
27
|
+
this.actionsList = undefined;
|
|
28
|
+
this.taskbarManager = undefined;
|
|
26
29
|
this.presentationMode = index$1.PresentationMode.PRIMARY;
|
|
27
30
|
}
|
|
28
31
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
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__btn--color:var(--title--primary, #2B3A54);--snk-pesquisa__btn-disabled--color:var(--text--disable, #AFB6C0);--snk-pesquisa__btn-hover--color:var(--color--primary, #4e4e4e);--snk-pesquisa__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-pesquisa__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-pesquisa__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-pesquisa__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-pesquisa__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-pesquisa__scrollbar--width:var(--space--medium, 12px);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__scrollbar--color-clicked) var(--snk-pesquisa__scrollbar--color-background);padding-right:var(--snk-pesquisa__content--padding-right)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar{background-color:var(--snk-pesquisa__scrollbar--color-background);width:var(--snk-pesquisa__scrollbar--width);max-width:var(--snk-pesquisa__scrollbar--width);min-width:var(--snk-pesquisa__scrollbar--width)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-track{background-color:var(--snk-pesquisa__scrollbar--color-background);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb{background-color:var(--snk-pesquisa__scrollbar--color-default);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:hover,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-pesquisa__scrollbar--color-hover)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:active,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-pesquisa__scrollbar--color-clicked)}.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)}";
|
|
@@ -19,7 +19,11 @@ const SnkPesquisa = class {
|
|
|
19
19
|
this._changeDeboucingTimeout = null;
|
|
20
20
|
this._limitCharsToSearch = 3;
|
|
21
21
|
this._deboucingTime = 450;
|
|
22
|
+
this._itemList = undefined;
|
|
22
23
|
this._startLoading = false;
|
|
24
|
+
this.searchLoader = undefined;
|
|
25
|
+
this.selectItem = undefined;
|
|
26
|
+
this.argument = undefined;
|
|
23
27
|
}
|
|
24
28
|
observeArgument() {
|
|
25
29
|
if (this._textInput) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const draggable_bundle = require('./draggable.bundle-82a25c06.js');
|
|
7
7
|
const core = require('@sankhyalabs/core');
|
|
8
8
|
const constants = require('./constants-8f3504ec.js');
|
|
@@ -20,8 +20,14 @@ const SnkTabConfig = class {
|
|
|
20
20
|
this.ezOrderChange = index.createEvent(this, "ezOrderChange", 7);
|
|
21
21
|
this.canStartDrag = index.createEvent(this, "canStartDrag", 7);
|
|
22
22
|
this._refTabActions = [];
|
|
23
|
+
this._processedTabs = undefined;
|
|
24
|
+
this._activeEditText = undefined;
|
|
25
|
+
this._activeEditTextIndex = undefined;
|
|
23
26
|
this._actionsHide = [];
|
|
24
27
|
this._actionsShow = [];
|
|
28
|
+
this.selectedIndex = undefined;
|
|
29
|
+
this.selectedTab = undefined;
|
|
30
|
+
this.tabs = undefined;
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
27
33
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-21bd01e1.js');
|
|
4
4
|
const index$2 = require('./index-0e663819.js');
|
|
5
|
-
const index$1 = require('./index-
|
|
5
|
+
const index$1 = require('./index-fc7ca86c.js');
|
|
6
6
|
|
|
7
7
|
exports.TaskbarElement = void 0;
|
|
8
8
|
(function (TaskbarElement) {
|
|
@@ -30,6 +30,8 @@ export class SnkApplication {
|
|
|
30
30
|
this._duCache = new Map();
|
|
31
31
|
this._duPromises = new Map();
|
|
32
32
|
this._requestListener = new RequestListenerLoadingBar();
|
|
33
|
+
this.messagesBuilder = undefined;
|
|
34
|
+
this.configName = undefined;
|
|
33
35
|
}
|
|
34
36
|
get parameters() {
|
|
35
37
|
if (!this._parameters) {
|
|
@@ -7,9 +7,8 @@ const FORM_MODE = VIEW_MODE.form;
|
|
|
7
7
|
export class SnkConfigurator {
|
|
8
8
|
constructor() {
|
|
9
9
|
this._opened = false;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
10
|
+
this._permissions = undefined;
|
|
11
|
+
this.configName = undefined;
|
|
13
12
|
this.viewMode = GRID_MODE.name;
|
|
14
13
|
}
|
|
15
14
|
/**
|
|
@@ -12,14 +12,15 @@ const FORM_MODE = VIEW_MODE.form;
|
|
|
12
12
|
*/
|
|
13
13
|
export class SnkCrud {
|
|
14
14
|
constructor() {
|
|
15
|
+
this._dataUnit = undefined;
|
|
16
|
+
this._dataState = undefined;
|
|
15
17
|
this._viewMode = GRID_MODE.name;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
this.configName = undefined;
|
|
19
|
+
this.actionsList = undefined;
|
|
20
|
+
this.taskbarManager = undefined;
|
|
21
|
+
this.recordsValidator = undefined;
|
|
22
|
+
this.statusResolver = undefined;
|
|
19
23
|
this.multipleSelection = true;
|
|
20
|
-
/**
|
|
21
|
-
* Altera o modo de apresentação dos botões do snk-taskbar.
|
|
22
|
-
*/
|
|
23
24
|
this.presentationMode = PresentationMode.PRIMARY;
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
@@ -5,10 +5,6 @@ import { OperationMap } from '../../lib/message/SnkMessageBuilder';
|
|
|
5
5
|
export class SnkDataUnit {
|
|
6
6
|
constructor() {
|
|
7
7
|
this._onDataUnitResolve = [];
|
|
8
|
-
/**
|
|
9
|
-
* Determina quantas linhas são retornadas por página.
|
|
10
|
-
*/
|
|
11
|
-
this.pageSize = 150;
|
|
12
8
|
this._dataUnitObserver = (action) => {
|
|
13
9
|
const duState = {
|
|
14
10
|
insertionMode: false,
|
|
@@ -47,6 +43,13 @@ export class SnkDataUnit {
|
|
|
47
43
|
}
|
|
48
44
|
this._application.messagesBuilder.currentOperation = this.getMessageOperation();
|
|
49
45
|
};
|
|
46
|
+
this.dataState = undefined;
|
|
47
|
+
this.dataUnitName = undefined;
|
|
48
|
+
this.entityName = undefined;
|
|
49
|
+
this.pageSize = 150;
|
|
50
|
+
this.dataUnit = undefined;
|
|
51
|
+
this.beforeSave = undefined;
|
|
52
|
+
this.afterSave = undefined;
|
|
50
53
|
}
|
|
51
54
|
observePageSize() {
|
|
52
55
|
if (this.dataUnit) {
|
|
@@ -99,15 +102,17 @@ export class SnkDataUnit {
|
|
|
99
102
|
const selectedRecords = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectedRecords();
|
|
100
103
|
if ((selectedRecords === null || selectedRecords === void 0 ? void 0 : selectedRecords.length) > 0) {
|
|
101
104
|
selectedRecords.forEach(({ __record__id__ }) => {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
if (!this.dataUnit.isNewRecord(__record__id__)) {
|
|
106
|
+
const revertBase64ToObject = JSON.parse(window.atob(__record__id__));
|
|
107
|
+
Object.entries(revertBase64ToObject).forEach(([name, value]) => {
|
|
108
|
+
var _a;
|
|
109
|
+
const metadataField = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(name);
|
|
110
|
+
if (metadataField == undefined) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
selectedRecordsIDsInfo.push(Object.assign({ name, type: metadataField.dataType }, value));
|
|
114
|
+
});
|
|
115
|
+
}
|
|
111
116
|
});
|
|
112
117
|
}
|
|
113
118
|
return selectedRecordsIDsInfo;
|
package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js
CHANGED
|
@@ -2,6 +2,10 @@ import { ElementIDUtils } from '@sankhyalabs/core';
|
|
|
2
2
|
import { h, Host } from '@stencil/core';
|
|
3
3
|
import FilterItemType from '../filter-item-type.enum';
|
|
4
4
|
export class SnkFilterBinarySelect {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.value = undefined;
|
|
7
|
+
this.config = undefined;
|
|
8
|
+
}
|
|
5
9
|
isSelected(option) {
|
|
6
10
|
return this.value == undefined || this.value === option;
|
|
7
11
|
}
|
package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js
CHANGED
|
@@ -2,6 +2,10 @@ import { ElementIDUtils } from '@sankhyalabs/core';
|
|
|
2
2
|
import { h } from '@stencil/core';
|
|
3
3
|
import FilterItemType from '../filter-item-type.enum';
|
|
4
4
|
export class SnkFilterMultiSelect {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.value = undefined;
|
|
7
|
+
this.config = undefined;
|
|
8
|
+
}
|
|
5
9
|
/**
|
|
6
10
|
* Emitido quando acontece a alteração de valor do componente snk-filter-multi-select
|
|
7
11
|
*/
|
|
@@ -2,6 +2,10 @@ import { ElementIDUtils } from '@sankhyalabs/core';
|
|
|
2
2
|
import { h } from '@stencil/core';
|
|
3
3
|
import FilterItemType from '../filter-item-type.enum';
|
|
4
4
|
export class SnkFilterPeriod {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.config = undefined;
|
|
7
|
+
this.value = undefined;
|
|
8
|
+
}
|
|
5
9
|
/**
|
|
6
10
|
* Emitido quando acontece a alteração de valor do componente snk-filter-number
|
|
7
11
|
*/
|
|
@@ -2,6 +2,10 @@ import { ElementIDUtils } from '@sankhyalabs/core';
|
|
|
2
2
|
import { h } from '@stencil/core';
|
|
3
3
|
import FilterItemType from '../filter-item-type.enum';
|
|
4
4
|
export class SnkFilterPeriod {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.config = undefined;
|
|
7
|
+
this.value = undefined;
|
|
8
|
+
}
|
|
5
9
|
/**
|
|
6
10
|
* Emitido quando acontece a alteração de valor do componente snk-filter-period
|
|
7
11
|
*/
|
package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js
CHANGED
|
@@ -4,6 +4,12 @@ import { h, Host } from '@stencil/core';
|
|
|
4
4
|
import { CheckMode } from "@sankhyalabs/ezui/dist/collection/utils";
|
|
5
5
|
import FilterItemType from '../filter-item-type.enum';
|
|
6
6
|
export class SnkFilterPersonalized {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.config = undefined;
|
|
9
|
+
this.value = undefined;
|
|
10
|
+
this.fix = undefined;
|
|
11
|
+
this.unfix = undefined;
|
|
12
|
+
}
|
|
7
13
|
componentDidLoad() {
|
|
8
14
|
if (this._element) {
|
|
9
15
|
ElementIDUtils.addIDInfo(this._element, 'filterContentEditor');
|
|
@@ -2,6 +2,10 @@ import { ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
|
|
|
2
2
|
import { h } from '@stencil/core';
|
|
3
3
|
import FilterItemType from '../filter-item-type.enum';
|
|
4
4
|
export class SnkFilterSearch {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.config = undefined;
|
|
7
|
+
this.value = undefined;
|
|
8
|
+
}
|
|
5
9
|
/**
|
|
6
10
|
* Emitido quando acontece a alteração de valor do componente snk-filter-search
|
|
7
11
|
*/
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
2
2
|
import { h } from '@stencil/core';
|
|
3
3
|
export class SnkFilterText {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.config = undefined;
|
|
6
|
+
this.value = undefined;
|
|
7
|
+
}
|
|
4
8
|
/**
|
|
5
9
|
* Emitido quando acontece a alteração de valor do componente snk-filter-text.
|
|
6
10
|
*/
|
|
@@ -3,6 +3,10 @@ import { ApplicationUtils } from "@sankhyalabs/ezui/dist/collection/utils";
|
|
|
3
3
|
import FilterItemType from './filter-item-type.enum';
|
|
4
4
|
import { ElementIDUtils, DataType } from '@sankhyalabs/core';
|
|
5
5
|
export class SnkFilterDetail {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.config = undefined;
|
|
8
|
+
this.getMessage = undefined;
|
|
9
|
+
}
|
|
6
10
|
/**
|
|
7
11
|
* Exibe o componente snk-filter-detail.
|
|
8
12
|
*/
|
|
@@ -12,6 +12,15 @@ export class SnkFilterList {
|
|
|
12
12
|
this._detailIsVisible = false;
|
|
13
13
|
return false;
|
|
14
14
|
};
|
|
15
|
+
this._filterArgument = undefined;
|
|
16
|
+
this._showAll = undefined;
|
|
17
|
+
this.label = undefined;
|
|
18
|
+
this.iconName = undefined;
|
|
19
|
+
this.items = undefined;
|
|
20
|
+
this.getMessage = undefined;
|
|
21
|
+
this.emptyText = undefined;
|
|
22
|
+
this.findFilterText = undefined;
|
|
23
|
+
this.buttonClass = undefined;
|
|
15
24
|
}
|
|
16
25
|
showDetail() {
|
|
17
26
|
this._preselection = -1;
|
|
@@ -3,6 +3,18 @@ import { ModalAction, ModalButtonStatus } from "@sankhyalabs/ezui/dist/collectio
|
|
|
3
3
|
import { ArrayUtils } from '@sankhyalabs/core';
|
|
4
4
|
import { CheckMode } from "@sankhyalabs/ezui/dist/collection/utils";
|
|
5
5
|
export class SnkFilterModal {
|
|
6
|
+
constructor() {
|
|
7
|
+
this._filterArgument = undefined;
|
|
8
|
+
this.getMessage = undefined;
|
|
9
|
+
this.items = undefined;
|
|
10
|
+
this.modalTitle = undefined;
|
|
11
|
+
this.modalSubTitle = undefined;
|
|
12
|
+
this.cancelButtonLabel = undefined;
|
|
13
|
+
this.okButtonLabel = undefined;
|
|
14
|
+
this.infoText = undefined;
|
|
15
|
+
this.useSearch = undefined;
|
|
16
|
+
this.processModalAction = undefined;
|
|
17
|
+
}
|
|
6
18
|
updateValue(id, value = undefined) {
|
|
7
19
|
this.items = this.items.map(item => {
|
|
8
20
|
if (item.id === id && item.enabled) {
|
|
@@ -27,6 +27,10 @@ export class SnkFilterBar {
|
|
|
27
27
|
this._filtersComparator = (a, b) => {
|
|
28
28
|
return this._calculateSortIndex(b) - this._calculateSortIndex(a);
|
|
29
29
|
};
|
|
30
|
+
this.dataUnit = undefined;
|
|
31
|
+
this.configName = undefined;
|
|
32
|
+
this.filterConfig = undefined;
|
|
33
|
+
this.allowDefault = undefined;
|
|
30
34
|
this.scrollerLocked = false;
|
|
31
35
|
}
|
|
32
36
|
observeFilterConfig(newValue, oldValue) {
|
|
@@ -6,12 +6,15 @@ import TaskbarProcessor from '../snk-taskbar/processor/taskbar-processor';
|
|
|
6
6
|
export class SnkForm {
|
|
7
7
|
constructor() {
|
|
8
8
|
this._renderTimer = 500;
|
|
9
|
+
this._dataUnit = undefined;
|
|
10
|
+
this._dataState = undefined;
|
|
9
11
|
this._editionFormConfig = {};
|
|
10
12
|
this._insertionFormConfig = {};
|
|
11
13
|
this._showFormConfig = false;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
this.configName = undefined;
|
|
15
|
+
this.recordsValidator = undefined;
|
|
16
|
+
this.actionsList = undefined;
|
|
17
|
+
this.taskbarManager = undefined;
|
|
15
18
|
this.presentationMode = PresentationMode.PRIMARY;
|
|
16
19
|
}
|
|
17
20
|
/**
|
package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js
CHANGED
|
@@ -5,10 +5,10 @@ import { CheckMode } from "@sankhyalabs/ezui/dist/collection/utils";
|
|
|
5
5
|
import { DEFAULT_TYPE, TAGS_BY_TYPE, VARS_BY_TYPE } from "../../../../lib/utils/constants";
|
|
6
6
|
export class SnkConfigOptions {
|
|
7
7
|
constructor() {
|
|
8
|
-
|
|
9
|
-
* Armazena as propriedades do campo.
|
|
10
|
-
*/
|
|
8
|
+
this._defaultType = undefined;
|
|
11
9
|
this.fieldConfig = {};
|
|
10
|
+
this.idConfig = undefined;
|
|
11
|
+
this.dataUnit = undefined;
|
|
12
12
|
}
|
|
13
13
|
onConfigDefault(optionSelected) {
|
|
14
14
|
if (optionSelected != undefined) {
|
package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.js
CHANGED
|
@@ -3,14 +3,10 @@ import { h, Host } from "@stencil/core";
|
|
|
3
3
|
import { ACTION_CONFIG } from "../../../../lib/utils/constants";
|
|
4
4
|
export class SnkFieldConfig {
|
|
5
5
|
constructor() {
|
|
6
|
-
/**
|
|
7
|
-
* Define se o popover de configuração está ativo.
|
|
8
|
-
*/
|
|
9
6
|
this.isConfigActive = false;
|
|
10
|
-
|
|
11
|
-
* Define se o componente está em modo de inserção.
|
|
12
|
-
*/
|
|
7
|
+
this.fieldConfig = undefined;
|
|
13
8
|
this.modeInsertion = true;
|
|
9
|
+
this.dataUnit = undefined;
|
|
14
10
|
}
|
|
15
11
|
handleAction(evt, type) {
|
|
16
12
|
evt.preventDefault();
|
package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js
CHANGED
|
@@ -27,14 +27,17 @@ export class SnkFormConfig {
|
|
|
27
27
|
this._fieldsAvailableStyle = "ez-col ez-col--sd-12 ez-col--tb-12 ez-margin-bottom--medium ez-margin-right--medium sc-snk-form-config";
|
|
28
28
|
this._fieldFloatingStyle = "form-config__field-config--dragged";
|
|
29
29
|
this._formConfigOptions = [];
|
|
30
|
+
this._fieldConfigSelected = undefined;
|
|
31
|
+
this._layoutFormConfig = undefined;
|
|
32
|
+
this._fieldsAvailable = undefined;
|
|
30
33
|
this._formConfig = {};
|
|
31
34
|
this._formConfigChanged = false;
|
|
35
|
+
this._optionFormConfigSelected = undefined;
|
|
32
36
|
this._optionFormConfigChanged = false;
|
|
33
37
|
this._tempGroups = [];
|
|
34
|
-
|
|
35
|
-
* Campos de configuração de formulário.
|
|
36
|
-
*/
|
|
38
|
+
this.dataUnit = undefined;
|
|
37
39
|
this.formConfig = {};
|
|
40
|
+
this.configName = undefined;
|
|
38
41
|
}
|
|
39
42
|
observeFormConfig() {
|
|
40
43
|
this.loadConfig(this._sortableTimer);
|
|
@@ -5,8 +5,14 @@ import { CONFIG_EVENTS, KEY_EVENTS, TAB_NAMES, TYPE_ACTIONS } from "../../../../
|
|
|
5
5
|
export class SnkTabConfig {
|
|
6
6
|
constructor() {
|
|
7
7
|
this._refTabActions = [];
|
|
8
|
+
this._processedTabs = undefined;
|
|
9
|
+
this._activeEditText = undefined;
|
|
10
|
+
this._activeEditTextIndex = undefined;
|
|
8
11
|
this._actionsHide = [];
|
|
9
12
|
this._actionsShow = [];
|
|
13
|
+
this.selectedIndex = undefined;
|
|
14
|
+
this.selectedTab = undefined;
|
|
15
|
+
this.tabs = undefined;
|
|
10
16
|
}
|
|
11
17
|
/**
|
|
12
18
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|