@sankhyalabs/sankhyablocks 8.16.0-dev.99 → 8.16.0-ms.10
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/{ClientSideExporterProvider-cc82b68a.js → ClientSideExporterProvider-fe52f7cf.js} +11 -4
- package/dist/cjs/{ConfigStorage-2235f35e.js → ConfigStorage-6b633b10.js} +1 -1
- package/dist/cjs/ISave-e91b70a7.js +9 -0
- package/dist/cjs/{SnkFormConfigManager-6637cd6b.js → SnkFormConfigManager-d680be08.js} +2 -2
- package/dist/cjs/{auth-fetcher-abad589f.js → auth-fetcher-24ba4135.js} +1 -1
- package/dist/cjs/{form-config-fetcher-db332748.js → form-config-fetcher-e0a512c3.js} +0 -14
- package/dist/cjs/{index-102ba62d.js → index-ab1cfb44.js} +3 -4
- package/dist/cjs/index-f9e81701.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{ISave-62fbb1dd.js → pesquisa-fetcher-30cab386.js} +0 -8
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -4
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button_7.cjs.entry.js → snk-actions-button_5.cjs.entry.js} +4 -63
- package/dist/cjs/snk-application.cjs.entry.js +5 -48
- package/dist/cjs/snk-attach.cjs.entry.js +49 -19
- package/dist/cjs/snk-config-options_3.cjs.entry.js +3 -3
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -8
- package/dist/cjs/snk-crud.cjs.entry.js +8 -7
- package/dist/cjs/snk-data-exporter.cjs.entry.js +3 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +10 -10
- package/dist/cjs/snk-expression-group_2.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +2 -2
- package/dist/cjs/snk-grid.cjs.entry.js +10 -8
- package/dist/cjs/{snk-guides-viewer-0e4f3b1a.js → snk-guides-viewer-b6002ea7.js} +6 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -7
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-pesquisa.cjs.entry.js +16 -9
- package/dist/cjs/snk-simple-crud.cjs.entry.js +11 -10
- package/dist/cjs/snk-taskbar.cjs.entry.js +6 -3
- package/dist/cjs/{taskbar-elements-7e19882d.js → taskbar-elements-ebddaef4.js} +1 -1
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/components/snk-application/snk-application.js +0 -41
- package/dist/collection/components/snk-attach/snk-attach.js +27 -1
- package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +17 -13
- package/dist/collection/components/snk-configurator/snk-configurator.js +1 -26
- package/dist/collection/components/snk-crud/snk-crud.js +10 -10
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css +1 -10
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +1 -25
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +1 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -0
- package/dist/collection/components/snk-grid/snk-grid.css +1 -0
- package/dist/collection/components/snk-grid/snk-grid.js +20 -1
- package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +1 -1
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +9 -2
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +21 -21
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +4 -1
- package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +8 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +0 -14
- package/dist/components/ContinuousInsertUtils.js +8 -2
- package/dist/components/form-config-fetcher.js +0 -14
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +0 -2
- package/dist/components/index2.js +3 -4
- package/dist/components/pesquisa-grid2.js +1 -1
- package/dist/components/snk-application2.js +0 -45
- package/dist/components/snk-attach2.js +65 -48
- package/dist/components/snk-configurator2.js +2 -22
- package/dist/components/snk-crud.js +64 -76
- package/dist/components/snk-detail-view2.js +86 -110
- package/dist/components/snk-filter-bar2.js +1 -1
- package/dist/components/snk-grid2.js +4 -2
- package/dist/components/snk-pesquisa2.js +9 -2
- package/dist/components/snk-simple-crud2.js +22 -34
- package/dist/components/snk-taskbar2.js +4 -1
- package/dist/esm/{ClientSideExporterProvider-8191676b.js → ClientSideExporterProvider-bd24a4b3.js} +11 -4
- package/dist/esm/{ConfigStorage-9bd805d6.js → ConfigStorage-e5c1f4c0.js} +1 -1
- package/dist/esm/ISave-d8c8bc59.js +9 -0
- package/dist/esm/{SnkFormConfigManager-fbc6a9a8.js → SnkFormConfigManager-1efd102b.js} +2 -2
- package/dist/esm/{auth-fetcher-07d33333.js → auth-fetcher-9987c66e.js} +1 -1
- package/dist/esm/{form-config-fetcher-ac17cff4.js → form-config-fetcher-34becd23.js} +0 -14
- package/dist/esm/index-a7d3d3f1.js +2 -2
- package/dist/esm/{index-bdf75557.js → index-c57e49af.js} +3 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{ISave-7d546dce.js → pesquisa-fetcher-e26c3295.js} +1 -9
- package/dist/esm/pesquisa-grid_2.entry.js +4 -3
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_7.entry.js → snk-actions-button_5.entry.js} +6 -63
- package/dist/esm/snk-application.entry.js +4 -47
- package/dist/esm/snk-attach.entry.js +49 -19
- package/dist/esm/snk-config-options_3.entry.js +3 -3
- package/dist/esm/snk-configurator.entry.js +1 -8
- package/dist/esm/snk-crud.entry.js +8 -7
- package/dist/esm/snk-data-exporter.entry.js +3 -2
- package/dist/esm/snk-detail-view.entry.js +10 -10
- package/dist/esm/snk-expression-group_2.entry.js +1 -1
- package/dist/esm/snk-filter-bar_4.entry.js +3 -3
- package/dist/esm/snk-filter-modal-item.entry.js +2 -2
- package/dist/esm/snk-grid.entry.js +10 -8
- package/dist/esm/{snk-guides-viewer-80a8709c.js → snk-guides-viewer-39fae8d5.js} +6 -5
- package/dist/esm/snk-guides-viewer.entry.js +8 -7
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-pesquisa.entry.js +10 -3
- package/dist/esm/snk-simple-crud.entry.js +11 -10
- package/dist/esm/snk-taskbar.entry.js +6 -3
- package/dist/esm/{taskbar-elements-d2353c64.js → taskbar-elements-ed51e143.js} +1 -1
- package/dist/sankhyablocks/p-11afea24.entry.js +1 -0
- package/dist/sankhyablocks/p-18389343.entry.js +1 -0
- package/dist/sankhyablocks/p-21749402.js +1 -0
- package/dist/sankhyablocks/p-22ddc147.js +26 -0
- package/dist/sankhyablocks/p-240ac47f.entry.js +1 -0
- package/dist/sankhyablocks/{p-cb9d725a.js → p-3ce68be5.js} +1 -1
- package/dist/sankhyablocks/{p-13f17dab.js → p-3fcb90d6.js} +1 -1
- package/dist/sankhyablocks/p-43769aa9.js +1 -0
- package/dist/sankhyablocks/p-4b01cbad.entry.js +11 -0
- package/dist/sankhyablocks/p-4c9adf1c.entry.js +1 -0
- package/dist/sankhyablocks/{p-3fc82614.js → p-517efc93.js} +1 -1
- package/dist/sankhyablocks/p-5e9fbd76.js +1 -0
- package/dist/sankhyablocks/p-6b898a51.entry.js +1 -0
- package/dist/sankhyablocks/p-77168ab4.entry.js +1 -0
- package/dist/sankhyablocks/p-91708c3d.entry.js +1 -0
- package/dist/sankhyablocks/p-9523fc40.entry.js +1 -0
- package/dist/sankhyablocks/p-9887a437.entry.js +1 -0
- package/dist/sankhyablocks/p-9ebc3f3b.entry.js +1 -0
- package/dist/sankhyablocks/p-a5bdcb3f.entry.js +1 -0
- package/dist/sankhyablocks/{p-0bcd4757.entry.js → p-a61bbe18.entry.js} +1 -1
- package/dist/sankhyablocks/{p-48729c8c.js → p-a77bdadc.js} +1 -1
- package/dist/sankhyablocks/{p-9d3a025a.entry.js → p-bfdf92e9.entry.js} +1 -1
- package/dist/sankhyablocks/p-cb1e77e0.entry.js +1 -0
- package/dist/sankhyablocks/{p-340e2447.entry.js → p-d3b9b377.entry.js} +1 -1
- package/dist/sankhyablocks/p-e289826a.js +1 -0
- package/dist/sankhyablocks/p-e51c52cf.entry.js +1 -0
- package/dist/sankhyablocks/{p-f467153c.entry.js → p-e66bcb5c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-108fee57.js → p-ef076eea.js} +2 -2
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +0 -10
- package/dist/types/components/snk-attach/snk-attach.d.ts +1 -0
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +0 -6
- package/dist/types/components/snk-crud/snk-crud.d.ts +2 -2
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +0 -5
- package/dist/types/components/snk-grid/snk-grid.d.ts +4 -0
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +1 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -4
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +1 -0
- package/dist/types/components.d.ts +25 -77
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +0 -6
- package/package.json +1 -1
- package/react/components.d.ts +0 -2
- package/react/components.js +0 -2
- package/react/components.js.map +1 -1
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.css +0 -3
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +0 -73
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.css +0 -78
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +0 -57
- package/dist/collection/lib/configs/LayoutFormConfig.js +0 -25
- package/dist/components/snk-layout-form-config.d.ts +0 -11
- package/dist/components/snk-layout-form-config.js +0 -6
- package/dist/components/snk-layout-form-config2.js +0 -73
- package/dist/components/snk-view-representation.d.ts +0 -11
- package/dist/components/snk-view-representation.js +0 -6
- package/dist/components/snk-view-representation2.js +0 -41
- package/dist/sankhyablocks/p-01512409.js +0 -26
- package/dist/sankhyablocks/p-02c6dc9f.entry.js +0 -1
- package/dist/sankhyablocks/p-35fcf37e.js +0 -1
- package/dist/sankhyablocks/p-3a36d4b3.entry.js +0 -1
- package/dist/sankhyablocks/p-513af002.entry.js +0 -1
- package/dist/sankhyablocks/p-5fea0816.entry.js +0 -1
- package/dist/sankhyablocks/p-6dc031de.js +0 -1
- package/dist/sankhyablocks/p-950e3cbe.entry.js +0 -1
- package/dist/sankhyablocks/p-9907cf67.entry.js +0 -1
- package/dist/sankhyablocks/p-a962a3e4.entry.js +0 -1
- package/dist/sankhyablocks/p-af58c9d7.entry.js +0 -1
- package/dist/sankhyablocks/p-c5acb7ba.entry.js +0 -11
- package/dist/sankhyablocks/p-c7c6eab7.entry.js +0 -1
- package/dist/sankhyablocks/p-d1f04e2c.js +0 -1
- package/dist/sankhyablocks/p-d2065bb4.entry.js +0 -1
- package/dist/sankhyablocks/p-dc617b0c.entry.js +0 -1
- package/dist/sankhyablocks/p-e5d8891d.entry.js +0 -1
- package/dist/sankhyablocks/p-f861bfcb.entry.js +0 -1
- package/dist/types/components/snk-layout-form-config/snk-layout-form-config.d.ts +0 -15
- package/dist/types/components/snk-layout-form-config/snk-view-representation/snk-view-representation.d.ts +0 -10
- package/dist/types/lib/configs/LayoutFormConfig.d.ts +0 -11
@@ -7,19 +7,17 @@ import './filter-item-type.enum.js';
|
|
7
7
|
import './form-config-fetcher.js';
|
8
8
|
import { V as VIEW_MODE } from './constants.js';
|
9
9
|
import { A as AutorizationType } from './auth-fetcher.js';
|
10
|
-
import { T as TaskbarElement, d as defineCustomElement$
|
11
|
-
import { d as defineCustomElement$
|
12
|
-
import { d as defineCustomElement$
|
13
|
-
import { d 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$
|
20
|
-
import { d as defineCustomElement$
|
21
|
-
import { d as defineCustomElement$4 } from './snk-simple-form-config2.js';
|
22
|
-
import { d as defineCustomElement$2 } from './snk-view-representation2.js';
|
10
|
+
import { T as TaskbarElement, d as defineCustomElement$2 } from './snk-taskbar2.js';
|
11
|
+
import { d as defineCustomElement$c } from './snk-actions-button2.js';
|
12
|
+
import { d as defineCustomElement$b } from './snk-configurator2.js';
|
13
|
+
import { d as defineCustomElement$a } from './snk-data-exporter2.js';
|
14
|
+
import { d as defineCustomElement$9 } from './snk-data-unit2.js';
|
15
|
+
import { d as defineCustomElement$8 } from './snk-exporter-email-sender2.js';
|
16
|
+
import { d as defineCustomElement$7 } from './snk-grid-config2.js';
|
17
|
+
import { d as defineCustomElement$6 } from './snk-select-box2.js';
|
18
|
+
import { d as defineCustomElement$5 } from './snk-simple-bar2.js';
|
19
|
+
import { d as defineCustomElement$4 } from './snk-simple-crud2.js';
|
20
|
+
import { d as defineCustomElement$3 } from './snk-simple-form-config2.js';
|
23
21
|
import { d as defineCustomElement$1 } from './taskbar-actions-button2.js';
|
24
22
|
|
25
23
|
const SERVICE$1 = {
|
@@ -510,20 +508,24 @@ class AttachFetcherDataUnitFactory {
|
|
510
508
|
}
|
511
509
|
getInterceptions(dataUnit, action, crudRef) {
|
512
510
|
return new Promise((resolve) => {
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
if (cancellationConfirmed) {
|
518
|
-
crudRef.goToView(VIEW_MODE.GRID);
|
511
|
+
var _a, _b, _c, _d, _e, _f;
|
512
|
+
switch (action.type) {
|
513
|
+
case Action.EDITION_CANCELED:
|
514
|
+
if (!dataUnit.isDirty())
|
519
515
|
return resolve(action);
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
516
|
+
return this._application.confirm(this.getMessage('snkAttach.cancelConfirmation.title'), this.getMessage('snkAttach.cancelConfirmation.message')).then((cancellationConfirmed) => {
|
517
|
+
if (cancellationConfirmed) {
|
518
|
+
crudRef.goToView(VIEW_MODE.GRID);
|
519
|
+
return resolve(action);
|
520
|
+
}
|
521
|
+
return resolve(undefined);
|
522
|
+
});
|
523
|
+
case Action.DATA_SAVED:
|
524
|
+
dataUnit.loadData(undefined, undefined, false, (_c = (_b = (_a = action === null || action === void 0 ? void 0 : action.payload) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.REGISTER_KEY);
|
525
|
+
return resolve(action);
|
526
|
+
case Action.RECORDS_REMOVED:
|
527
|
+
dataUnit.loadData(undefined, undefined, false, (_f = (_e = (_d = action === null || action === void 0 ? void 0 : action.payload) === null || _d === void 0 ? void 0 : _d.cachedRecords) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.CODATA);
|
528
|
+
return resolve(action);
|
527
529
|
}
|
528
530
|
resolve(action);
|
529
531
|
});
|
@@ -643,6 +645,9 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
643
645
|
this.handleFinish = () => {
|
644
646
|
if (!this._currentDataUnit.isDirty())
|
645
647
|
return this.back.emit();
|
648
|
+
if (!this.validateAnexoSistema()) {
|
649
|
+
return;
|
650
|
+
}
|
646
651
|
this._currentDataUnit.saveData().then(() => {
|
647
652
|
this.showFinishedToast();
|
648
653
|
this.back.emit();
|
@@ -777,6 +782,7 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
777
782
|
var _a, _b;
|
778
783
|
this._currentFetcher = new AttachFetcher();
|
779
784
|
this._currentDataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
785
|
+
this._currentDataUnit.pageSize = 150;
|
780
786
|
this.initDataUnitLoaders();
|
781
787
|
this._currentDataUnit.addInterceptor({
|
782
788
|
interceptAction: (action) => {
|
@@ -821,6 +827,27 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
821
827
|
}
|
822
828
|
});
|
823
829
|
}
|
830
|
+
validateAnexoSistema() {
|
831
|
+
var _a;
|
832
|
+
if (this._currentFetcher instanceof AnexoSistemaFetcher) {
|
833
|
+
try {
|
834
|
+
let fields = this._currentDataUnit.getSelectedRecord();
|
835
|
+
fields = Object.assign(Object.assign({}, fields), { NOMEARQUIVO: (_a = fields.NOMEARQUIVO) === null || _a === void 0 ? void 0 : _a[0] });
|
836
|
+
this._currentFetcher.validateFields(fields);
|
837
|
+
}
|
838
|
+
catch (error) {
|
839
|
+
if (error.message === SaveErrorsEnum.LINK_AND_FILE_AT_THE_SAME_TIME) {
|
840
|
+
this._application.alert(this.getMessage('snkAttach.alertValidation.fileAndLinkAtTheSameTime.title'), this.getMessage('snkAttach.alertValidation.fileAndLinkAtTheSameTime.message'));
|
841
|
+
return false;
|
842
|
+
}
|
843
|
+
if (error.message === SaveErrorsEnum.ANY_LINK_OR_FILE_FILLED) {
|
844
|
+
this._application.alert(this.getMessage('snkAttach.alertValidation.anyLinkOrFileFilled.title'), this.getMessage('snkAttach.alertValidation.anyLinkOrFileFilled.message'));
|
845
|
+
return false;
|
846
|
+
}
|
847
|
+
}
|
848
|
+
}
|
849
|
+
return true;
|
850
|
+
}
|
824
851
|
async componentWillLoad() {
|
825
852
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
826
853
|
await this.initAttach();
|
@@ -849,7 +876,7 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
849
876
|
var _a, _b;
|
850
877
|
if (!this._currentDataUnit)
|
851
878
|
return null;
|
852
|
-
return (h("main", { class: "snk-attach__main" }, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this) }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
|
879
|
+
return (h("main", { class: "snk-attach__main" }, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
|
853
880
|
}
|
854
881
|
static get watchers() { return {
|
855
882
|
"registerKey": ["registerKeyWatcher"]
|
@@ -871,7 +898,7 @@ function defineCustomElement() {
|
|
871
898
|
if (typeof customElements === "undefined") {
|
872
899
|
return;
|
873
900
|
}
|
874
|
-
const components = ["snk-attach", "snk-actions-button", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-grid-config", "snk-
|
901
|
+
const components = ["snk-attach", "snk-actions-button", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-grid-config", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-taskbar", "taskbar-actions-button"];
|
875
902
|
components.forEach(tagName => { switch (tagName) {
|
876
903
|
case "snk-attach":
|
877
904
|
if (!customElements.get(tagName)) {
|
@@ -879,66 +906,56 @@ function defineCustomElement() {
|
|
879
906
|
}
|
880
907
|
break;
|
881
908
|
case "snk-actions-button":
|
882
|
-
if (!customElements.get(tagName)) {
|
883
|
-
defineCustomElement$e();
|
884
|
-
}
|
885
|
-
break;
|
886
|
-
case "snk-configurator":
|
887
|
-
if (!customElements.get(tagName)) {
|
888
|
-
defineCustomElement$d();
|
889
|
-
}
|
890
|
-
break;
|
891
|
-
case "snk-data-exporter":
|
892
909
|
if (!customElements.get(tagName)) {
|
893
910
|
defineCustomElement$c();
|
894
911
|
}
|
895
912
|
break;
|
896
|
-
case "snk-
|
913
|
+
case "snk-configurator":
|
897
914
|
if (!customElements.get(tagName)) {
|
898
915
|
defineCustomElement$b();
|
899
916
|
}
|
900
917
|
break;
|
901
|
-
case "snk-exporter
|
918
|
+
case "snk-data-exporter":
|
902
919
|
if (!customElements.get(tagName)) {
|
903
920
|
defineCustomElement$a();
|
904
921
|
}
|
905
922
|
break;
|
906
|
-
case "snk-
|
923
|
+
case "snk-data-unit":
|
907
924
|
if (!customElements.get(tagName)) {
|
908
925
|
defineCustomElement$9();
|
909
926
|
}
|
910
927
|
break;
|
911
|
-
case "snk-
|
928
|
+
case "snk-exporter-email-sender":
|
912
929
|
if (!customElements.get(tagName)) {
|
913
930
|
defineCustomElement$8();
|
914
931
|
}
|
915
932
|
break;
|
916
|
-
case "snk-
|
933
|
+
case "snk-grid-config":
|
917
934
|
if (!customElements.get(tagName)) {
|
918
935
|
defineCustomElement$7();
|
919
936
|
}
|
920
937
|
break;
|
921
|
-
case "snk-
|
938
|
+
case "snk-select-box":
|
922
939
|
if (!customElements.get(tagName)) {
|
923
940
|
defineCustomElement$6();
|
924
941
|
}
|
925
942
|
break;
|
926
|
-
case "snk-simple-
|
943
|
+
case "snk-simple-bar":
|
927
944
|
if (!customElements.get(tagName)) {
|
928
945
|
defineCustomElement$5();
|
929
946
|
}
|
930
947
|
break;
|
931
|
-
case "snk-simple-
|
948
|
+
case "snk-simple-crud":
|
932
949
|
if (!customElements.get(tagName)) {
|
933
950
|
defineCustomElement$4();
|
934
951
|
}
|
935
952
|
break;
|
936
|
-
case "snk-
|
953
|
+
case "snk-simple-form-config":
|
937
954
|
if (!customElements.get(tagName)) {
|
938
955
|
defineCustomElement$3();
|
939
956
|
}
|
940
957
|
break;
|
941
|
-
case "snk-
|
958
|
+
case "snk-taskbar":
|
942
959
|
if (!customElements.get(tagName)) {
|
943
960
|
defineCustomElement$2();
|
944
961
|
}
|
@@ -2,8 +2,6 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
|
|
2
2
|
import { ApplicationContext } from '@sankhyalabs/core';
|
3
3
|
import { V as VIEW_MODE } from './constants.js';
|
4
4
|
import { A as AuthorizationConfig } from './AuthorizationConfig.js';
|
5
|
-
import { d as defineCustomElement$2 } from './snk-layout-form-config2.js';
|
6
|
-
import { d as defineCustomElement$1 } from './snk-view-representation2.js';
|
7
5
|
|
8
6
|
const snkConfiguratorCss = ".sc-snk-configurator-h{--snk-configurator__button-close--padding-left:var(--space--medium, 12px);--snk-configurator__title--color:var(--title--primary, #2B3A54);--snk-configurator__title--font-family:var(--font-pattern, \"Roboto\");--snk-configurator__title--font-size:var(--title--large, 20px);--snk-configurator__title--font-weight:var(--text-weight--extra-large, 700);--snk-configurator__subtitle--color:var(--title--primary, #2B3A54);--snk-configurator__subtitle--font-family:var(--font-pattern, \"Roboto\");--snk-configurator__subtitle--font-size:var(--text--medium, 14px);--snk-configurator__subtitle--font-weight:var(--text-weight--large, 600);--snk-configurator__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-configurator__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-configurator__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-configurator__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-configurator__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-configurator__scrollbar--width:var(--space--small, 6px)}.snk-configurator.sc-snk-configurator{display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}.snk-configurator__collsable-box-action.sc-snk-configurator{width:100%}.snk-configurator__action-buttons.sc-snk-configurator{display:flex;flex-direction:row;justify-content:flex-end;gap:var(--space--medium)}.snk-configurator__outline.sc-snk-configurator{display:flex;flex-direction:column;gap:var(--space--small);margin-top:var(--space--small);margin-bottom:var(--space--large)}@media screen and (min-width: 480px){.snk-configurator.sc-snk-configurator{width:359px;max-width:359px}}.snk-configurator__button-config.sc-snk-configurator{--ez-button--min-width:100%}.snk-configurator__header.sc-snk-configurator{display:flex;justify-content:space-between;align-items:center;width:100%}.snk-configurator__title.sc-snk-configurator{display:flex;margin:0;line-height:normal;letter-spacing:0em;text-align:left;color:var(--snk-configurator__title--color);font-size:var(--snk-configurator__title--font-size);font-family:var(--snk-configurator__title--font-family);font-weight:var(--snk-configurator__title--font-weight)}.snk-configurator__subtitle.sc-snk-configurator{display:flex;margin:0;padding-top:var(--space--medium);padding-bottom:var(--space--small);color:var(--snk-configurator__subtitle--color);font-size:var(--snk-configurator__subtitle--font-size);font-family:var(--snk-configurator__subtitle--font-family);font-weight:var(--snk-configurator__subtitle--font-weight)}.snk-configurator__button-close.sc-snk-configurator{padding-left:var(--snk-configurator__button-close--padding-left)}.snk-configurator__main.sc-snk-configurator{overflow-y:auto;scrollbar-width:thin;margin:var(--space--medium) 0;scrollbar-color:var(--snk-configurator__scrollbar--color-clicked) var(--snk-configurator__scrollbar--color-background)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar{background-color:var(--snk-configurator__scrollbar--color-background);width:var(--snk-configurator__scrollbar--width);max-width:var(--snk-configurator__scrollbar--width);min-width:var(--snk-configurator__scrollbar--width)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-track{background-color:var(--snk-configurator__scrollbar--color-background);border-radius:var(--snk-configurator__scrollbar--border-radius)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb{background-color:var(--snk-configurator__scrollbar--color-default);border-radius:var(--snk-configurator__scrollbar--border-radius)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:vertical:hover,.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-configurator__scrollbar--color-hover)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:vertical:active,.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-configurator__scrollbar--color-clicked)}";
|
9
7
|
|
@@ -22,7 +20,6 @@ const SnkConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
22
20
|
this.resourceID = undefined;
|
23
21
|
this.viewMode = VIEW_MODE.GRID;
|
24
22
|
this.customContainerId = undefined;
|
25
|
-
this.layoutFormConfig = false;
|
26
23
|
this.messagesBuilder = undefined;
|
27
24
|
}
|
28
25
|
/**
|
@@ -83,12 +80,6 @@ const SnkConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
83
80
|
var _a;
|
84
81
|
return (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, {});
|
85
82
|
}
|
86
|
-
handleSave() {
|
87
|
-
if (this.layoutFormConfig) {
|
88
|
-
this._snkLayoutFormConfig.save();
|
89
|
-
}
|
90
|
-
this.save.emit();
|
91
|
-
}
|
92
83
|
componentWillLoad() {
|
93
84
|
this._application = ApplicationContext.getContextValue('__SNK__APPLICATION__');
|
94
85
|
if (this._application) {
|
@@ -112,7 +103,7 @@ const SnkConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
112
103
|
insideCustomElementsContainer === null || insideCustomElementsContainer === void 0 ? void 0 : insideCustomElementsContainer.appendChild(configuratorCustomElement);
|
113
104
|
}
|
114
105
|
render() {
|
115
|
-
return (h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light" }, h("div", { class: "snk-configurator" }, h("div", { class: "snk-configurator__header" }, h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), h("div", { class: "snk-configurator__button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), h("div", { class: "snk-configurator__main" }, h("ez-collapsible-box", { boxBordered: true, label: "Modo de visualiza\u00E7\u00E3o ", headerSize: "medium", class: "snk-configurator__collapsable-box" }, h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: VIEW_MODE.GRID }), h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: VIEW_MODE.FORM })), h("div", { class: "snk-configurator__collsable-box-action" }, h("ez-button", { label: this.viewMode === VIEW_MODE.GRID ? this.getMessage('snkConfigurator.labelConfigGrid') : this.getMessage('snkConfigurator.labelConfigForm'), class: "snk-configurator__button-config ez-button--secondary", onClick: () => this.onClickOpenConfig(), id: "openConfigurator" }))),
|
106
|
+
return (h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light" }, h("div", { class: "snk-configurator" }, h("div", { class: "snk-configurator__header" }, h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), h("div", { class: "snk-configurator__button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), h("div", { class: "snk-configurator__main" }, h("ez-collapsible-box", { boxBordered: true, label: "Modo de visualiza\u00E7\u00E3o ", headerSize: "medium", class: "snk-configurator__collapsable-box" }, h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: VIEW_MODE.GRID }), h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: VIEW_MODE.FORM })), h("div", { class: "snk-configurator__collsable-box-action" }, h("ez-button", { label: this.viewMode === VIEW_MODE.GRID ? this.getMessage('snkConfigurator.labelConfigGrid') : this.getMessage('snkConfigurator.labelConfigForm'), class: "snk-configurator__button-config ez-button--secondary", onClick: () => this.onClickOpenConfig(), id: "openConfigurator" }))), h("div", { id: "slotContainer", class: "snk-configurator__outline" })), this.showActionButtons && (h("div", { class: "snk-configurator__action-buttons" }, h("ez-button", { label: "Cancelar", onClick: () => this.cancel.emit() }), h("ez-button", { label: "Salvar", onClick: () => this.save.emit(), class: "ez-button--primary" }))))));
|
116
107
|
}
|
117
108
|
get _element() { return this; }
|
118
109
|
static get style() { return snkConfiguratorCss; }
|
@@ -122,7 +113,6 @@ const SnkConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
122
113
|
"resourceID": [1, "resource-i-d"],
|
123
114
|
"viewMode": [2, "view-mode"],
|
124
115
|
"customContainerId": [1, "custom-container-id"],
|
125
|
-
"layoutFormConfig": [4, "layout-form-config"],
|
126
116
|
"messagesBuilder": [1040],
|
127
117
|
"_opened": [32],
|
128
118
|
"_permissions": [32],
|
@@ -133,23 +123,13 @@ function defineCustomElement() {
|
|
133
123
|
if (typeof customElements === "undefined") {
|
134
124
|
return;
|
135
125
|
}
|
136
|
-
const components = ["snk-configurator"
|
126
|
+
const components = ["snk-configurator"];
|
137
127
|
components.forEach(tagName => { switch (tagName) {
|
138
128
|
case "snk-configurator":
|
139
129
|
if (!customElements.get(tagName)) {
|
140
130
|
customElements.define(tagName, SnkConfigurator);
|
141
131
|
}
|
142
132
|
break;
|
143
|
-
case "snk-layout-form-config":
|
144
|
-
if (!customElements.get(tagName)) {
|
145
|
-
defineCustomElement$2();
|
146
|
-
}
|
147
|
-
break;
|
148
|
-
case "snk-view-representation":
|
149
|
-
if (!customElements.get(tagName)) {
|
150
|
-
defineCustomElement$1();
|
151
|
-
}
|
152
|
-
break;
|
153
133
|
} });
|
154
134
|
}
|
155
135
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
2
|
import { StringUtils, ElementIDUtils, ApplicationContext, JSUtils, FloatingManager } from '@sankhyalabs/core';
|
3
|
-
import { T as TaskbarElement, d as defineCustomElement$
|
3
|
+
import { T as TaskbarElement, d as defineCustomElement$3 } from './snk-taskbar2.js';
|
4
4
|
import './DataFetcher.js';
|
5
5
|
import { P as PresentationMode, E as ExporterStrategy } from './ISave.js';
|
6
6
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
@@ -10,37 +10,35 @@ import './filter-item-type.enum.js';
|
|
10
10
|
import './form-config-fetcher.js';
|
11
11
|
import { V as VIEW_MODE } from './constants.js';
|
12
12
|
import { A as AutorizationType } from './auth-fetcher.js';
|
13
|
-
import { d 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$
|
20
|
-
import { d as defineCustomElement$
|
21
|
-
import { d as defineCustomElement$
|
22
|
-
import { d as defineCustomElement$
|
23
|
-
import { d as defineCustomElement$
|
24
|
-
import { d as defineCustomElement$
|
25
|
-
import { d as defineCustomElement$
|
26
|
-
import { d as defineCustomElement$
|
27
|
-
import { d as defineCustomElement$
|
28
|
-
import { d as defineCustomElement$
|
29
|
-
import { d as defineCustomElement$
|
30
|
-
import { d as defineCustomElement$
|
31
|
-
import { d as defineCustomElement$
|
32
|
-
import { d as defineCustomElement$
|
33
|
-
import { d as defineCustomElement$
|
34
|
-
import { d as defineCustomElement$
|
35
|
-
import { d as defineCustomElement$
|
36
|
-
import { d as defineCustomElement$
|
37
|
-
import { d as defineCustomElement$
|
38
|
-
import { d as defineCustomElement$
|
39
|
-
import { d as defineCustomElement$
|
40
|
-
import { d as defineCustomElement$
|
41
|
-
import { d as defineCustomElement$
|
42
|
-
import { d as defineCustomElement$5 } from './snk-tab-config2.js';
|
43
|
-
import { d as defineCustomElement$3 } from './snk-view-representation2.js';
|
13
|
+
import { d as defineCustomElement$x } from './snk-actions-button2.js';
|
14
|
+
import { d as defineCustomElement$w } from './snk-attach2.js';
|
15
|
+
import { d as defineCustomElement$v } from './snk-config-options2.js';
|
16
|
+
import { d as defineCustomElement$u } from './snk-configurator2.js';
|
17
|
+
import { d as defineCustomElement$t } from './snk-data-exporter2.js';
|
18
|
+
import { d as defineCustomElement$s } from './snk-data-unit2.js';
|
19
|
+
import { d as defineCustomElement$a, a as defineCustomElement$r } from './snk-detail-view2.js';
|
20
|
+
import { d as defineCustomElement$q } from './snk-exporter-email-sender2.js';
|
21
|
+
import { d as defineCustomElement$p } from './snk-expression-group2.js';
|
22
|
+
import { d as defineCustomElement$o } from './snk-expression-item2.js';
|
23
|
+
import { d as defineCustomElement$n } from './snk-field-config2.js';
|
24
|
+
import { d as defineCustomElement$m } from './snk-filter-advanced-mode2.js';
|
25
|
+
import { d as defineCustomElement$l } from './snk-filter-assistent-mode2.js';
|
26
|
+
import { d as defineCustomElement$k } from './snk-filter-bar2.js';
|
27
|
+
import { d as defineCustomElement$j } from './snk-filter-detail2.js';
|
28
|
+
import { d as defineCustomElement$i } from './snk-filter-field-search2.js';
|
29
|
+
import { d as defineCustomElement$h } from './snk-filter-item2.js';
|
30
|
+
import { d as defineCustomElement$g } from './snk-filter-param-config2.js';
|
31
|
+
import { d as defineCustomElement$f } from './snk-form-config2.js';
|
32
|
+
import { d as defineCustomElement$e } from './snk-form-summary2.js';
|
33
|
+
import { d as defineCustomElement$d } from './snk-form-view2.js';
|
34
|
+
import { d as defineCustomElement$c } from './snk-grid2.js';
|
35
|
+
import { d as defineCustomElement$b } from './snk-grid-config2.js';
|
36
|
+
import { d as defineCustomElement$9 } from './snk-personalized-filter2.js';
|
37
|
+
import { d as defineCustomElement$8 } from './snk-select-box2.js';
|
38
|
+
import { d as defineCustomElement$7 } from './snk-simple-bar2.js';
|
39
|
+
import { d as defineCustomElement$6 } from './snk-simple-crud2.js';
|
40
|
+
import { d as defineCustomElement$5 } from './snk-simple-form-config2.js';
|
41
|
+
import { d as defineCustomElement$4 } from './snk-tab-config2.js';
|
44
42
|
import { d as defineCustomElement$2 } from './taskbar-actions-button2.js';
|
45
43
|
|
46
44
|
const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%}";
|
@@ -89,7 +87,7 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
89
87
|
this.ignoreReadOnlyFormFields = undefined;
|
90
88
|
this.setCustomFormTitle = undefined;
|
91
89
|
this.strategyExporter = ExporterStrategy.SERVER_SIDE;
|
92
|
-
this.
|
90
|
+
this.paginationCounterMode = 'auto';
|
93
91
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
|
94
92
|
}
|
95
93
|
/**
|
@@ -424,7 +422,7 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
424
422
|
return;
|
425
423
|
}
|
426
424
|
this._snkDataUnit.ignoreSaveMessage = (this._currentViewMode === VIEW_MODE.GRID && !this.enableGridInsert);
|
427
|
-
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", { class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full ez-padding--medium' }, h("snk-grid", { ref: (ref) => this._snkGrid = ref, class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full', filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, strategyExporter: this.strategyExporter }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId
|
425
|
+
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", { class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full ez-padding--medium' }, h("snk-grid", { ref: (ref) => this._snkGrid = ref, class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full', filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, strategyExporter: this.strategyExporter, paginationCounterMode: this.paginationCounterMode }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
428
426
|
}
|
429
427
|
get _element() { return this; }
|
430
428
|
static get watchers() { return {
|
@@ -457,7 +455,7 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
457
455
|
"ignoreReadOnlyFormFields": [4, "ignore-read-only-form-fields"],
|
458
456
|
"setCustomFormTitle": [16],
|
459
457
|
"strategyExporter": [1025, "strategy-exporter"],
|
460
|
-
"
|
458
|
+
"paginationCounterMode": [1, "pagination-counter-mode"],
|
461
459
|
"_dataUnit": [32],
|
462
460
|
"_dataState": [32],
|
463
461
|
"attachmentRegisterKey": [32],
|
@@ -480,7 +478,7 @@ function defineCustomElement$1() {
|
|
480
478
|
if (typeof customElements === "undefined") {
|
481
479
|
return;
|
482
480
|
}
|
483
|
-
const components = ["snk-crud", "snk-actions-button", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-field-config", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-guides-viewer", "snk-
|
481
|
+
const components = ["snk-crud", "snk-actions-button", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-field-config", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-guides-viewer", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-tab-config", "snk-taskbar", "taskbar-actions-button"];
|
484
482
|
components.forEach(tagName => { switch (tagName) {
|
485
483
|
case "snk-crud":
|
486
484
|
if (!customElements.get(tagName)) {
|
@@ -488,166 +486,156 @@ function defineCustomElement$1() {
|
|
488
486
|
}
|
489
487
|
break;
|
490
488
|
case "snk-actions-button":
|
491
|
-
if (!customElements.get(tagName)) {
|
492
|
-
defineCustomElement$z();
|
493
|
-
}
|
494
|
-
break;
|
495
|
-
case "snk-attach":
|
496
|
-
if (!customElements.get(tagName)) {
|
497
|
-
defineCustomElement$y();
|
498
|
-
}
|
499
|
-
break;
|
500
|
-
case "snk-config-options":
|
501
489
|
if (!customElements.get(tagName)) {
|
502
490
|
defineCustomElement$x();
|
503
491
|
}
|
504
492
|
break;
|
505
|
-
case "snk-
|
493
|
+
case "snk-attach":
|
506
494
|
if (!customElements.get(tagName)) {
|
507
495
|
defineCustomElement$w();
|
508
496
|
}
|
509
497
|
break;
|
510
|
-
case "snk-
|
498
|
+
case "snk-config-options":
|
511
499
|
if (!customElements.get(tagName)) {
|
512
500
|
defineCustomElement$v();
|
513
501
|
}
|
514
502
|
break;
|
515
|
-
case "snk-
|
503
|
+
case "snk-configurator":
|
516
504
|
if (!customElements.get(tagName)) {
|
517
505
|
defineCustomElement$u();
|
518
506
|
}
|
519
507
|
break;
|
520
|
-
case "snk-
|
508
|
+
case "snk-data-exporter":
|
521
509
|
if (!customElements.get(tagName)) {
|
522
510
|
defineCustomElement$t();
|
523
511
|
}
|
524
512
|
break;
|
525
|
-
case "snk-
|
513
|
+
case "snk-data-unit":
|
526
514
|
if (!customElements.get(tagName)) {
|
527
515
|
defineCustomElement$s();
|
528
516
|
}
|
529
517
|
break;
|
530
|
-
case "snk-
|
518
|
+
case "snk-detail-view":
|
531
519
|
if (!customElements.get(tagName)) {
|
532
520
|
defineCustomElement$r();
|
533
521
|
}
|
534
522
|
break;
|
535
|
-
case "snk-
|
523
|
+
case "snk-exporter-email-sender":
|
536
524
|
if (!customElements.get(tagName)) {
|
537
525
|
defineCustomElement$q();
|
538
526
|
}
|
539
527
|
break;
|
540
|
-
case "snk-
|
528
|
+
case "snk-expression-group":
|
541
529
|
if (!customElements.get(tagName)) {
|
542
530
|
defineCustomElement$p();
|
543
531
|
}
|
544
532
|
break;
|
545
|
-
case "snk-
|
533
|
+
case "snk-expression-item":
|
546
534
|
if (!customElements.get(tagName)) {
|
547
535
|
defineCustomElement$o();
|
548
536
|
}
|
549
537
|
break;
|
550
|
-
case "snk-
|
538
|
+
case "snk-field-config":
|
551
539
|
if (!customElements.get(tagName)) {
|
552
540
|
defineCustomElement$n();
|
553
541
|
}
|
554
542
|
break;
|
555
|
-
case "snk-filter-
|
543
|
+
case "snk-filter-advanced-mode":
|
556
544
|
if (!customElements.get(tagName)) {
|
557
545
|
defineCustomElement$m();
|
558
546
|
}
|
559
547
|
break;
|
560
|
-
case "snk-filter-
|
548
|
+
case "snk-filter-assistent-mode":
|
561
549
|
if (!customElements.get(tagName)) {
|
562
550
|
defineCustomElement$l();
|
563
551
|
}
|
564
552
|
break;
|
565
|
-
case "snk-filter-
|
553
|
+
case "snk-filter-bar":
|
566
554
|
if (!customElements.get(tagName)) {
|
567
555
|
defineCustomElement$k();
|
568
556
|
}
|
569
557
|
break;
|
570
|
-
case "snk-filter-
|
558
|
+
case "snk-filter-detail":
|
571
559
|
if (!customElements.get(tagName)) {
|
572
560
|
defineCustomElement$j();
|
573
561
|
}
|
574
562
|
break;
|
575
|
-
case "snk-filter-
|
563
|
+
case "snk-filter-field-search":
|
576
564
|
if (!customElements.get(tagName)) {
|
577
565
|
defineCustomElement$i();
|
578
566
|
}
|
579
567
|
break;
|
580
|
-
case "snk-
|
568
|
+
case "snk-filter-item":
|
581
569
|
if (!customElements.get(tagName)) {
|
582
570
|
defineCustomElement$h();
|
583
571
|
}
|
584
572
|
break;
|
585
|
-
case "snk-
|
573
|
+
case "snk-filter-param-config":
|
586
574
|
if (!customElements.get(tagName)) {
|
587
575
|
defineCustomElement$g();
|
588
576
|
}
|
589
577
|
break;
|
590
|
-
case "snk-form-
|
578
|
+
case "snk-form-config":
|
591
579
|
if (!customElements.get(tagName)) {
|
592
580
|
defineCustomElement$f();
|
593
581
|
}
|
594
582
|
break;
|
595
|
-
case "snk-
|
583
|
+
case "snk-form-summary":
|
596
584
|
if (!customElements.get(tagName)) {
|
597
585
|
defineCustomElement$e();
|
598
586
|
}
|
599
587
|
break;
|
600
|
-
case "snk-
|
588
|
+
case "snk-form-view":
|
601
589
|
if (!customElements.get(tagName)) {
|
602
590
|
defineCustomElement$d();
|
603
591
|
}
|
604
592
|
break;
|
605
|
-
case "snk-
|
593
|
+
case "snk-grid":
|
606
594
|
if (!customElements.get(tagName)) {
|
607
595
|
defineCustomElement$c();
|
608
596
|
}
|
609
597
|
break;
|
610
|
-
case "snk-
|
598
|
+
case "snk-grid-config":
|
611
599
|
if (!customElements.get(tagName)) {
|
612
600
|
defineCustomElement$b();
|
613
601
|
}
|
614
602
|
break;
|
615
|
-
case "snk-
|
603
|
+
case "snk-guides-viewer":
|
616
604
|
if (!customElements.get(tagName)) {
|
617
605
|
defineCustomElement$a();
|
618
606
|
}
|
619
607
|
break;
|
620
|
-
case "snk-
|
608
|
+
case "snk-personalized-filter":
|
621
609
|
if (!customElements.get(tagName)) {
|
622
610
|
defineCustomElement$9();
|
623
611
|
}
|
624
612
|
break;
|
625
|
-
case "snk-
|
613
|
+
case "snk-select-box":
|
626
614
|
if (!customElements.get(tagName)) {
|
627
615
|
defineCustomElement$8();
|
628
616
|
}
|
629
617
|
break;
|
630
|
-
case "snk-simple-
|
618
|
+
case "snk-simple-bar":
|
631
619
|
if (!customElements.get(tagName)) {
|
632
620
|
defineCustomElement$7();
|
633
621
|
}
|
634
622
|
break;
|
635
|
-
case "snk-simple-
|
623
|
+
case "snk-simple-crud":
|
636
624
|
if (!customElements.get(tagName)) {
|
637
625
|
defineCustomElement$6();
|
638
626
|
}
|
639
627
|
break;
|
640
|
-
case "snk-
|
628
|
+
case "snk-simple-form-config":
|
641
629
|
if (!customElements.get(tagName)) {
|
642
630
|
defineCustomElement$5();
|
643
631
|
}
|
644
632
|
break;
|
645
|
-
case "snk-
|
633
|
+
case "snk-tab-config":
|
646
634
|
if (!customElements.get(tagName)) {
|
647
635
|
defineCustomElement$4();
|
648
636
|
}
|
649
637
|
break;
|
650
|
-
case "snk-
|
638
|
+
case "snk-taskbar":
|
651
639
|
if (!customElements.get(tagName)) {
|
652
640
|
defineCustomElement$3();
|
653
641
|
}
|