@sankhyalabs/sankhyablocks 8.16.0-dev.97 → 8.16.0-dev.99
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{ClientSideExporterProvider-9bd6fa5a.js → ClientSideExporterProvider-cc82b68a.js} +2 -3
- package/dist/cjs/{ConfigStorage-6b633b10.js → ConfigStorage-2235f35e.js} +1 -1
- package/dist/cjs/{pesquisa-fetcher-30cab386.js → ISave-62fbb1dd.js} +8 -0
- package/dist/cjs/{SnkFormConfigManager-d680be08.js → SnkFormConfigManager-6637cd6b.js} +2 -2
- package/dist/cjs/{auth-fetcher-24ba4135.js → auth-fetcher-abad589f.js} +1 -1
- package/dist/cjs/{form-config-fetcher-e0a512c3.js → form-config-fetcher-db332748.js} +14 -0
- package/dist/cjs/index-f9e81701.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +3 -4
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button_5.cjs.entry.js → snk-actions-button_7.cjs.entry.js} +63 -4
- package/dist/cjs/snk-application.cjs.entry.js +48 -5
- package/dist/cjs/snk-attach.cjs.entry.js +3 -4
- package/dist/cjs/snk-config-options_3.cjs.entry.js +3 -3
- package/dist/cjs/snk-configurator.cjs.entry.js +8 -1
- package/dist/cjs/snk-crud.cjs.entry.js +5 -5
- package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -3
- package/dist/cjs/snk-detail-view.cjs.entry.js +5 -6
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +4 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +2 -2
- package/dist/cjs/snk-grid.cjs.entry.js +4 -5
- package/dist/cjs/{snk-guides-viewer-c588a295.js → snk-guides-viewer-0e4f3b1a.js} +3 -4
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +5 -6
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +2 -2
- package/dist/cjs/snk-pesquisa.cjs.entry.js +9 -10
- package/dist/cjs/snk-simple-crud.cjs.entry.js +7 -7
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/snk-application/snk-application.js +41 -0
- package/dist/collection/components/snk-configurator/snk-configurator.js +26 -1
- package/dist/collection/components/snk-crud/snk-crud.js +20 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +2 -1
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.css +3 -0
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +73 -0
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.css +78 -0
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +57 -0
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +20 -1
- package/dist/collection/lib/configs/LayoutFormConfig.js +25 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +14 -0
- package/dist/components/form-config-fetcher.js +14 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/snk-application2.js +45 -0
- package/dist/components/snk-attach2.js +34 -22
- package/dist/components/snk-configurator2.js +22 -2
- package/dist/components/snk-crud.js +76 -62
- package/dist/components/snk-detail-view2.js +105 -83
- package/dist/components/snk-filter-item2.js +2 -1
- package/dist/components/snk-layout-form-config.d.ts +11 -0
- package/dist/components/snk-layout-form-config.js +6 -0
- package/dist/components/snk-layout-form-config2.js +73 -0
- package/dist/components/snk-simple-crud2.js +33 -19
- package/dist/components/snk-view-representation.d.ts +11 -0
- package/dist/components/snk-view-representation.js +6 -0
- package/dist/components/snk-view-representation2.js +41 -0
- package/dist/esm/{ClientSideExporterProvider-e42c5a48.js → ClientSideExporterProvider-8191676b.js} +2 -3
- package/dist/esm/{ConfigStorage-e5c1f4c0.js → ConfigStorage-9bd805d6.js} +1 -1
- package/dist/esm/{pesquisa-fetcher-e26c3295.js → ISave-7d546dce.js} +9 -1
- package/dist/esm/{SnkFormConfigManager-1efd102b.js → SnkFormConfigManager-fbc6a9a8.js} +2 -2
- package/dist/esm/{auth-fetcher-9987c66e.js → auth-fetcher-07d33333.js} +1 -1
- package/dist/esm/{form-config-fetcher-34becd23.js → form-config-fetcher-ac17cff4.js} +14 -0
- package/dist/esm/index-a7d3d3f1.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +2 -3
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_5.entry.js → snk-actions-button_7.entry.js} +63 -6
- package/dist/esm/snk-application.entry.js +47 -4
- package/dist/esm/snk-attach.entry.js +3 -4
- package/dist/esm/snk-config-options_3.entry.js +3 -3
- package/dist/esm/snk-configurator.entry.js +8 -1
- package/dist/esm/snk-crud.entry.js +5 -5
- package/dist/esm/snk-data-exporter.entry.js +2 -3
- package/dist/esm/snk-detail-view.entry.js +5 -6
- package/dist/esm/snk-filter-bar_4.entry.js +4 -3
- package/dist/esm/snk-filter-modal-item.entry.js +2 -2
- package/dist/esm/snk-grid.entry.js +4 -5
- package/dist/esm/{snk-guides-viewer-c38641c5.js → snk-guides-viewer-80a8709c.js} +3 -4
- package/dist/esm/snk-guides-viewer.entry.js +5 -6
- package/dist/esm/snk-personalized-filter.entry.js +2 -2
- package/dist/esm/snk-pesquisa.entry.js +2 -3
- package/dist/esm/snk-simple-crud.entry.js +7 -7
- package/dist/sankhyablocks/p-01512409.js +26 -0
- package/dist/sankhyablocks/p-02c6dc9f.entry.js +1 -0
- package/dist/sankhyablocks/{p-6c43fcde.entry.js → p-0bcd4757.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ef076eea.js → p-108fee57.js} +2 -2
- package/dist/sankhyablocks/{p-3fcb90d6.js → p-13f17dab.js} +1 -1
- package/dist/sankhyablocks/{p-d3b9b377.entry.js → p-340e2447.entry.js} +1 -1
- package/dist/sankhyablocks/p-35fcf37e.js +1 -0
- package/dist/sankhyablocks/p-3a36d4b3.entry.js +1 -0
- package/dist/sankhyablocks/{p-a77bdadc.js → p-48729c8c.js} +1 -1
- package/dist/sankhyablocks/p-513af002.entry.js +1 -0
- package/dist/sankhyablocks/{p-e5657d22.entry.js → p-5fea0816.entry.js} +1 -1
- package/dist/sankhyablocks/p-950e3cbe.entry.js +1 -0
- package/dist/sankhyablocks/p-9907cf67.entry.js +1 -0
- package/dist/sankhyablocks/p-af58c9d7.entry.js +1 -0
- package/dist/sankhyablocks/p-c5acb7ba.entry.js +11 -0
- package/dist/sankhyablocks/p-c7c6eab7.entry.js +1 -0
- package/dist/sankhyablocks/{p-3ce68be5.js → p-cb9d725a.js} +1 -1
- package/dist/sankhyablocks/p-d1f04e2c.js +1 -0
- package/dist/sankhyablocks/p-d2065bb4.entry.js +1 -0
- package/dist/sankhyablocks/p-dc617b0c.entry.js +1 -0
- package/dist/sankhyablocks/p-e5d8891d.entry.js +1 -0
- package/dist/sankhyablocks/{p-e66bcb5c.entry.js → p-f467153c.entry.js} +1 -1
- package/dist/sankhyablocks/p-f861bfcb.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +10 -0
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +6 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +4 -0
- package/dist/types/components/snk-layout-form-config/snk-layout-form-config.d.ts +15 -0
- package/dist/types/components/snk-layout-form-config/snk-view-representation/snk-view-representation.d.ts +10 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -0
- package/dist/types/components.d.ts +69 -1
- package/dist/types/lib/configs/LayoutFormConfig.d.ts +11 -0
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +6 -0
- package/package.json +1 -1
- package/react/components.d.ts +2 -0
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/ISave-e91b70a7.js +0 -9
- package/dist/esm/ISave-d8c8bc59.js +0 -9
- package/dist/sankhyablocks/p-04acdc3a.entry.js +0 -1
- package/dist/sankhyablocks/p-04b96ffe.js +0 -1
- package/dist/sankhyablocks/p-05fda408.entry.js +0 -1
- package/dist/sankhyablocks/p-17af0b1c.entry.js +0 -1
- package/dist/sankhyablocks/p-21749402.js +0 -1
- package/dist/sankhyablocks/p-22ddc147.js +0 -26
- package/dist/sankhyablocks/p-27d12f8f.entry.js +0 -1
- package/dist/sankhyablocks/p-3bab7e9c.entry.js +0 -1
- package/dist/sankhyablocks/p-4b01cbad.entry.js +0 -11
- package/dist/sankhyablocks/p-4c9adf1c.entry.js +0 -1
- package/dist/sankhyablocks/p-6b898a51.entry.js +0 -1
- package/dist/sankhyablocks/p-9523fc40.entry.js +0 -1
- package/dist/sankhyablocks/p-99ab1e1d.entry.js +0 -1
- package/dist/sankhyablocks/p-a18de25e.js +0 -1
- package/dist/sankhyablocks/p-be2e5f36.entry.js +0 -1
- package/dist/sankhyablocks/p-d571e243.entry.js +0 -1
@@ -5,15 +5,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
8
|
+
const ConfigStorage = require('./ConfigStorage-2235f35e.js');
|
9
9
|
const DataFetcher = require('./DataFetcher-875371e9.js');
|
10
|
-
const authFetcher = require('./auth-fetcher-
|
10
|
+
const authFetcher = require('./auth-fetcher-abad589f.js');
|
11
11
|
const dataunitFetcher = require('./dataunit-fetcher-b95768e8.js');
|
12
|
-
const
|
12
|
+
const ISave = require('./ISave-62fbb1dd.js');
|
13
13
|
const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
|
14
14
|
const constants = require('./constants-241934b3.js');
|
15
|
-
require('./
|
15
|
+
require('./index-e3e39724.js');
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
17
|
+
const formConfigFetcher = require('./form-config-fetcher-db332748.js');
|
17
18
|
require('./PrintUtils-bcaeb82f.js');
|
18
19
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
19
20
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
@@ -386,6 +387,32 @@ class RequestListenerFactory {
|
|
386
387
|
}
|
387
388
|
}
|
388
389
|
|
390
|
+
class LayoutFormConfig {
|
391
|
+
constructor() {
|
392
|
+
this._config = null;
|
393
|
+
this.listeners = [];
|
394
|
+
}
|
395
|
+
static getInstance() {
|
396
|
+
if (!LayoutFormConfig.instance) {
|
397
|
+
LayoutFormConfig.instance = new LayoutFormConfig();
|
398
|
+
}
|
399
|
+
return LayoutFormConfig.instance;
|
400
|
+
}
|
401
|
+
get config() {
|
402
|
+
return this._config;
|
403
|
+
}
|
404
|
+
setConfig(newConfig) {
|
405
|
+
this._config = newConfig;
|
406
|
+
this.notifyListeners();
|
407
|
+
}
|
408
|
+
onConfigChange(listener) {
|
409
|
+
this.listeners.push(listener);
|
410
|
+
}
|
411
|
+
notifyListeners() {
|
412
|
+
this.listeners.forEach(listener => listener(this._config));
|
413
|
+
}
|
414
|
+
}
|
415
|
+
|
389
416
|
const snkApplicationCss = ".sc-snk-application-h{--scrim-z-index:var(--elevation--100, 100);display:flex;flex-direction:column;height:100%}.sc-snk-application-h>.loading-hidden.sc-snk-application{display:none;pointer-events:none}.skeleton-content-left.sc-snk-application{width:300px;padding-right:5px}.skeleton-content.sc-snk-application{height:calc(100vh - 310px)}.spinner.sc-snk-application{height:100vh;gap:10px}.spinner.sc-snk-application>.spin.sc-snk-application{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";
|
390
417
|
|
391
418
|
const SnkApplication = class {
|
@@ -405,6 +432,8 @@ const SnkApplication = class {
|
|
405
432
|
this._pendingActions = new Map;
|
406
433
|
this._loadPkParameter = null;
|
407
434
|
this._isLoadedByPk = false;
|
435
|
+
this._formConfigFetcher = new formConfigFetcher.FormConfigFetcher();
|
436
|
+
this._LayoutFormConfigSingleton = LayoutFormConfig.getInstance();
|
408
437
|
this._applicationReady = false;
|
409
438
|
this._templateSkeleton = constants.TEMPLATES_SKELETON.GRID;
|
410
439
|
this._activeScrimWindow = false;
|
@@ -479,6 +508,14 @@ const SnkApplication = class {
|
|
479
508
|
async getKeyboardManager() {
|
480
509
|
return Promise.resolve(this._keyboardManager);
|
481
510
|
}
|
511
|
+
/**
|
512
|
+
* Obtém o notificador de Layout de formulario.
|
513
|
+
*
|
514
|
+
* @return {LayoutFormConfig} the Configurador de Layout do Formulario
|
515
|
+
*/
|
516
|
+
async getLayoutFormConfig() {
|
517
|
+
return Promise.resolve(this._LayoutFormConfigSingleton);
|
518
|
+
}
|
482
519
|
/**
|
483
520
|
* Obtém `true` caso o usuário logado seja o SUP.
|
484
521
|
*/
|
@@ -951,7 +988,7 @@ const SnkApplication = class {
|
|
951
988
|
}
|
952
989
|
get pesquisaFetcher() {
|
953
990
|
if (!this._pesquisaFetcher) {
|
954
|
-
this._pesquisaFetcher = new
|
991
|
+
this._pesquisaFetcher = new ISave.PesquisaFetcher();
|
955
992
|
}
|
956
993
|
return this._pesquisaFetcher;
|
957
994
|
}
|
@@ -1392,6 +1429,12 @@ const SnkApplication = class {
|
|
1392
1429
|
ConfigStorage.ConfigStorage.preload(this.applicationResourceID, this.configName, legacyConfig);
|
1393
1430
|
document.addEventListener("click", () => Workspace.applicationClick());
|
1394
1431
|
this._waitingAppReady.forEach(resolve => resolve());
|
1432
|
+
this.setLayoutFormConfig();
|
1433
|
+
}
|
1434
|
+
async setLayoutFormConfig() {
|
1435
|
+
const response = await this._formConfigFetcher.fetchLayoutFormConfig('formColCfg.' + this.applicationResourceID);
|
1436
|
+
const config = isNaN(Number(response === null || response === void 0 ? void 0 : response.config)) ? null : Number(response === null || response === void 0 ? void 0 : response.config);
|
1437
|
+
this._LayoutFormConfigSingleton.setConfig(config);
|
1395
1438
|
}
|
1396
1439
|
connectedCallback() {
|
1397
1440
|
this._isBrowserTypeElectron = core.UserAgentUtils.isElectron();
|
@@ -5,14 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const DataFetcher = require('./DataFetcher-875371e9.js');
|
8
|
-
require('./
|
8
|
+
const ISave = require('./ISave-62fbb1dd.js');
|
9
9
|
require('./index-e3e39724.js');
|
10
|
-
const ISave = require('./ISave-e91b70a7.js');
|
11
10
|
const dataunitFetcher = require('./dataunit-fetcher-b95768e8.js');
|
12
11
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
13
|
-
require('./form-config-fetcher-
|
12
|
+
require('./form-config-fetcher-db332748.js');
|
14
13
|
const constants = require('./constants-241934b3.js');
|
15
|
-
const authFetcher = require('./auth-fetcher-
|
14
|
+
const authFetcher = require('./auth-fetcher-abad589f.js');
|
16
15
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
17
16
|
require('./PrintUtils-bcaeb82f.js');
|
18
17
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
@@ -7,12 +7,12 @@ 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');
|
9
9
|
const constants = require('./constants-241934b3.js');
|
10
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
10
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-6637cd6b.js');
|
11
11
|
const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
|
12
12
|
const Sortable = require('./Sortable-fb1c4cbb.js');
|
13
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
13
|
+
const formConfigFetcher = require('./form-config-fetcher-db332748.js');
|
14
14
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
15
|
-
require('./ConfigStorage-
|
15
|
+
require('./ConfigStorage-2235f35e.js');
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
17
17
|
require('./DataFetcher-875371e9.js');
|
18
18
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -23,6 +23,7 @@ const SnkConfigurator = class {
|
|
23
23
|
this.resourceID = undefined;
|
24
24
|
this.viewMode = constants.VIEW_MODE.GRID;
|
25
25
|
this.customContainerId = undefined;
|
26
|
+
this.layoutFormConfig = false;
|
26
27
|
this.messagesBuilder = undefined;
|
27
28
|
}
|
28
29
|
/**
|
@@ -83,6 +84,12 @@ const SnkConfigurator = class {
|
|
83
84
|
var _a;
|
84
85
|
return (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, {});
|
85
86
|
}
|
87
|
+
handleSave() {
|
88
|
+
if (this.layoutFormConfig) {
|
89
|
+
this._snkLayoutFormConfig.save();
|
90
|
+
}
|
91
|
+
this.save.emit();
|
92
|
+
}
|
86
93
|
componentWillLoad() {
|
87
94
|
this._application = core.ApplicationContext.getContextValue('__SNK__APPLICATION__');
|
88
95
|
if (this._application) {
|
@@ -106,7 +113,7 @@ const SnkConfigurator = class {
|
|
106
113
|
insideCustomElementsContainer === null || insideCustomElementsContainer === void 0 ? void 0 : insideCustomElementsContainer.appendChild(configuratorCustomElement);
|
107
114
|
}
|
108
115
|
render() {
|
109
|
-
return (index.h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light" }, index.h("div", { class: "snk-configurator" }, index.h("div", { class: "snk-configurator__header" }, index.h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), index.h("div", { class: "snk-configurator__button-close" }, index.h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), index.h("div", { class: "snk-configurator__main" }, index.h("ez-collapsible-box", { boxBordered: true, label: "Modo de visualiza\u00E7\u00E3o ", headerSize: "medium", class: "snk-configurator__collapsable-box" }, index.h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, index.h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: constants.VIEW_MODE.GRID }), index.h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: constants.VIEW_MODE.FORM })), index.h("div", { class: "snk-configurator__collsable-box-action" }, index.h("ez-button", { label: this.viewMode === constants.VIEW_MODE.GRID ? this.getMessage('snkConfigurator.labelConfigGrid') : this.getMessage('snkConfigurator.labelConfigForm'), class: "snk-configurator__button-config ez-button--secondary", onClick: () => this.onClickOpenConfig(), id: "openConfigurator" }))), index.h("div", { id: "slotContainer", class: "snk-configurator__outline" })), this.showActionButtons && (index.h("div", { class: "snk-configurator__action-buttons" }, index.h("ez-button", { label: "Cancelar", onClick: () => this.cancel.emit() }), index.h("ez-button", { label: "Salvar", onClick: () => this.
|
116
|
+
return (index.h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light" }, index.h("div", { class: "snk-configurator" }, index.h("div", { class: "snk-configurator__header" }, index.h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), index.h("div", { class: "snk-configurator__button-close" }, index.h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), index.h("div", { class: "snk-configurator__main" }, index.h("ez-collapsible-box", { boxBordered: true, label: "Modo de visualiza\u00E7\u00E3o ", headerSize: "medium", class: "snk-configurator__collapsable-box" }, index.h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, index.h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: constants.VIEW_MODE.GRID }), index.h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: constants.VIEW_MODE.FORM })), index.h("div", { class: "snk-configurator__collsable-box-action" }, index.h("ez-button", { label: this.viewMode === constants.VIEW_MODE.GRID ? this.getMessage('snkConfigurator.labelConfigGrid') : this.getMessage('snkConfigurator.labelConfigForm'), class: "snk-configurator__button-config ez-button--secondary", onClick: () => this.onClickOpenConfig(), id: "openConfigurator" }))), this.layoutFormConfig && index.h("ez-collapsible-box", { boxBordered: true, value: true, label: "Layout do formul\u00E1rio", headerSize: "medium", class: "snk-configurator__collapsable-box ez-margin-top--medium" }, index.h("div", { class: 'ez-flex ez-flex--column ez-size-width--full' }, index.h("snk-layout-form-config", { ref: (ref) => this._snkLayoutFormConfig = ref }))), index.h("div", { id: "slotContainer", class: "snk-configurator__outline" })), this.showActionButtons && (index.h("div", { class: "snk-configurator__action-buttons" }, index.h("ez-button", { label: "Cancelar", onClick: () => this.cancel.emit() }), index.h("ez-button", { label: "Salvar", onClick: () => this.handleSave(), class: "ez-button--primary" }))))));
|
110
117
|
}
|
111
118
|
get _element() { return index.getElement(this); }
|
112
119
|
};
|
@@ -6,16 +6,15 @@ const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
8
8
|
require('./DataFetcher-875371e9.js');
|
9
|
-
require('./
|
9
|
+
require('./ISave-62fbb1dd.js');
|
10
10
|
const index$1 = require('./index-e3e39724.js');
|
11
|
-
require('./ISave-e91b70a7.js');
|
12
11
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
13
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
13
|
require('./dataunit-fetcher-b95768e8.js');
|
15
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
16
|
-
require('./form-config-fetcher-
|
15
|
+
require('./form-config-fetcher-db332748.js');
|
17
16
|
const constants = require('./constants-241934b3.js');
|
18
|
-
const authFetcher = require('./auth-fetcher-
|
17
|
+
const authFetcher = require('./auth-fetcher-abad589f.js');
|
19
18
|
require('./index-102ba62d.js');
|
20
19
|
require('./PrintUtils-bcaeb82f.js');
|
21
20
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
@@ -67,6 +66,7 @@ const SnkCrud = class {
|
|
67
66
|
this.ignoreReadOnlyFormFields = undefined;
|
68
67
|
this.setCustomFormTitle = undefined;
|
69
68
|
this.strategyExporter = index$1.ExporterStrategy.SERVER_SIDE;
|
69
|
+
this.layoutFormConfig = false;
|
70
70
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${core.StringUtils.generateUUID()}`;
|
71
71
|
}
|
72
72
|
/**
|
@@ -401,7 +401,7 @@ const SnkCrud = class {
|
|
401
401
|
return;
|
402
402
|
}
|
403
403
|
this._snkDataUnit.ignoreSaveMessage = (this._currentViewMode === constants.VIEW_MODE.GRID && !this.enableGridInsert);
|
404
|
-
return (index.h(index.Host, null, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", { class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full ez-padding--medium' }, index.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 }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.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 }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkFormTaskBar" }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), index.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 })), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
404
|
+
return (index.h(index.Host, null, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", { class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full ez-padding--medium' }, index.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 }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.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 }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkFormTaskBar" }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), index.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, layoutFormConfig: this.layoutFormConfig })), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
405
405
|
}
|
406
406
|
get _element() { return index.getElement(this); }
|
407
407
|
static get watchers() { return {
|
@@ -10,13 +10,12 @@ const index = require('./index-e3e39724.js');
|
|
10
10
|
const constants = require('./constants-241934b3.js');
|
11
11
|
const DataFetcher = require('./DataFetcher-875371e9.js');
|
12
12
|
const snkDataUnit = require('./snk-data-unit-33937ffe.js');
|
13
|
-
require('./
|
14
|
-
require('./ISave-e91b70a7.js');
|
13
|
+
require('./ISave-62fbb1dd.js');
|
15
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
16
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
17
16
|
require('./dataunit-fetcher-b95768e8.js');
|
18
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
19
|
-
require('./form-config-fetcher-
|
18
|
+
require('./form-config-fetcher-db332748.js');
|
20
19
|
require('./PrintUtils-bcaeb82f.js');
|
21
20
|
require('./SnkMessageBuilder-bae64d0d.js');
|
22
21
|
require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
@@ -4,22 +4,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-6637cd6b.js');
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
9
9
|
require('./DataFetcher-875371e9.js');
|
10
|
-
require('./
|
10
|
+
require('./ISave-62fbb1dd.js');
|
11
11
|
const index$1 = require('./index-e3e39724.js');
|
12
|
-
require('./ISave-e91b70a7.js');
|
13
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
14
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
15
14
|
require('./dataunit-fetcher-b95768e8.js');
|
16
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
17
|
-
require('./form-config-fetcher-
|
16
|
+
require('./form-config-fetcher-db332748.js');
|
18
17
|
const constants = require('./constants-241934b3.js');
|
19
18
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
20
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
19
|
+
const snkGuidesViewer = require('./snk-guides-viewer-0e4f3b1a.js');
|
21
20
|
const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
|
22
|
-
require('./ConfigStorage-
|
21
|
+
require('./ConfigStorage-2235f35e.js');
|
23
22
|
require('./PrintUtils-bcaeb82f.js');
|
24
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
25
24
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index$1 = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const EzScrollDirection = require('@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
8
|
+
const ConfigStorage = require('./ConfigStorage-2235f35e.js');
|
9
9
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
10
10
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
11
11
|
const index = require('./index-c5771aba.js');
|
@@ -14,7 +14,7 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
14
14
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
15
15
|
const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
|
16
16
|
const filterType_enum = require('./filter-type.enum-b14ce507.js');
|
17
|
-
require('./form-config-fetcher-
|
17
|
+
require('./form-config-fetcher-db332748.js');
|
18
18
|
require('./DataFetcher-875371e9.js');
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
20
20
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
@@ -769,10 +769,11 @@ const SnkFilterItem = class {
|
|
769
769
|
*/
|
770
770
|
async showUp(open = false) {
|
771
771
|
return new Promise(resolve => {
|
772
|
+
var _a;
|
772
773
|
this._filterItemElement.scrollIntoView({ behavior: "auto", block: "nearest", inline: "nearest" });
|
773
774
|
if (open) {
|
774
775
|
this._closeCallback = resolve;
|
775
|
-
this._chipElement.blur();
|
776
|
+
(_a = this._chipElement) === null || _a === void 0 ? void 0 : _a.blur();
|
776
777
|
window.requestAnimationFrame(() => {
|
777
778
|
this._floatingID = core.FloatingManager.float(this._popover, this._popoverContainer, this.getFloatOptions());
|
778
779
|
this._popover.show();
|
@@ -6,9 +6,9 @@ const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
8
8
|
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
9
|
-
const ConfigStorage = require('./ConfigStorage-
|
9
|
+
const ConfigStorage = require('./ConfigStorage-2235f35e.js');
|
10
10
|
const filterType_enum = require('./filter-type.enum-b14ce507.js');
|
11
|
-
require('./form-config-fetcher-
|
11
|
+
require('./form-config-fetcher-db332748.js');
|
12
12
|
require('./DataFetcher-875371e9.js');
|
13
13
|
require('./PrintUtils-bcaeb82f.js');
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
@@ -5,20 +5,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
8
|
+
const ConfigStorage = require('./ConfigStorage-2235f35e.js');
|
9
9
|
const index$1 = require('./index-e3e39724.js');
|
10
10
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
12
|
-
const ClientSideExporterProvider = require('./ClientSideExporterProvider-
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-cc82b68a.js');
|
13
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
14
14
|
require('./DataFetcher-875371e9.js');
|
15
|
-
require('./
|
16
|
-
require('./ISave-e91b70a7.js');
|
15
|
+
require('./ISave-62fbb1dd.js');
|
17
16
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
18
17
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
19
18
|
require('./dataunit-fetcher-b95768e8.js');
|
20
19
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
21
|
-
require('./form-config-fetcher-
|
20
|
+
require('./form-config-fetcher-db332748.js');
|
22
21
|
require('./constants-241934b3.js');
|
23
22
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
24
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
@@ -2,20 +2,19 @@
|
|
2
2
|
|
3
3
|
const index = require('./index-f9e81701.js');
|
4
4
|
const core = require('@sankhyalabs/core');
|
5
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
5
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-6637cd6b.js');
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
7
7
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
8
8
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
9
9
|
const constants = require('./constants-241934b3.js');
|
10
10
|
require('./DataFetcher-875371e9.js');
|
11
|
-
require('./
|
11
|
+
require('./ISave-62fbb1dd.js');
|
12
12
|
const index$1 = require('./index-e3e39724.js');
|
13
|
-
require('./ISave-e91b70a7.js');
|
14
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
15
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
16
15
|
require('./dataunit-fetcher-b95768e8.js');
|
17
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
18
|
-
require('./form-config-fetcher-
|
17
|
+
require('./form-config-fetcher-db332748.js');
|
19
18
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
20
19
|
|
21
20
|
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:68px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-small));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-small))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
|
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
5
|
+
const snkGuidesViewer = require('./snk-guides-viewer-0e4f3b1a.js');
|
6
6
|
require('./index-f9e81701.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
|
-
require('./SnkFormConfigManager-
|
9
|
-
require('./ConfigStorage-
|
10
|
-
require('./form-config-fetcher-
|
8
|
+
require('./SnkFormConfigManager-6637cd6b.js');
|
9
|
+
require('./ConfigStorage-2235f35e.js');
|
10
|
+
require('./form-config-fetcher-db332748.js');
|
11
11
|
require('./DataFetcher-875371e9.js');
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
@@ -18,8 +18,7 @@ require('./field-search-68e34bf4.js');
|
|
18
18
|
require('./taskbar-elements-7e19882d.js');
|
19
19
|
require('./index-e3e39724.js');
|
20
20
|
require('./index-102ba62d.js');
|
21
|
-
require('./
|
22
|
-
require('./ISave-e91b70a7.js');
|
21
|
+
require('./ISave-62fbb1dd.js');
|
23
22
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
24
23
|
require('./dataunit-fetcher-b95768e8.js');
|
25
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
8
|
+
const ConfigStorage = require('./ConfigStorage-2235f35e.js');
|
9
9
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
10
10
|
const index$1 = require('./index-c5771aba.js');
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
12
12
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
13
|
-
require('./form-config-fetcher-
|
13
|
+
require('./form-config-fetcher-db332748.js');
|
14
14
|
require('./DataFetcher-875371e9.js');
|
15
15
|
require('./PrintUtils-bcaeb82f.js');
|
16
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
@@ -4,15 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
|
-
const
|
7
|
+
const ISave = require('./ISave-62fbb1dd.js');
|
8
8
|
require('./DataFetcher-875371e9.js');
|
9
9
|
require('./index-e3e39724.js');
|
10
|
-
require('./ISave-e91b70a7.js');
|
11
10
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
12
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
13
12
|
require('./dataunit-fetcher-b95768e8.js');
|
14
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
15
|
-
require('./form-config-fetcher-
|
14
|
+
require('./form-config-fetcher-db332748.js');
|
16
15
|
require('./constants-241934b3.js');
|
17
16
|
require('./PrintUtils-bcaeb82f.js');
|
18
17
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
@@ -34,7 +33,7 @@ const SnkPesquisa = class {
|
|
34
33
|
this._limitCharsToSearch = 3;
|
35
34
|
this._deboucingTime = 450;
|
36
35
|
this._gridDataSource = [];
|
37
|
-
this.pesquisaFetcher = new
|
36
|
+
this.pesquisaFetcher = new ISave.PesquisaFetcher();
|
38
37
|
this._itemList = undefined;
|
39
38
|
this._startLoading = false;
|
40
39
|
this._presentationMode = "list";
|
@@ -97,7 +96,7 @@ const SnkPesquisa = class {
|
|
97
96
|
let pkField = resp.pkField;
|
98
97
|
if (!pkField)
|
99
98
|
return;
|
100
|
-
this._gridMetadata =
|
99
|
+
this._gridMetadata = ISave.buildGridMetadata(resp);
|
101
100
|
this._gridDataSource = [...resp.data];
|
102
101
|
this._pkField = pkField;
|
103
102
|
this._descriptionField = descriptionField;
|
@@ -351,11 +350,11 @@ const SnkPesquisa = class {
|
|
351
350
|
async chooseViewMode() {
|
352
351
|
var _a, _b;
|
353
352
|
if (this._presentationMode !== 'list') {
|
354
|
-
await ((_a = this._viewStack) === null || _a === void 0 ? void 0 : _a.show(
|
355
|
-
this._currentView =
|
353
|
+
await ((_a = this._viewStack) === null || _a === void 0 ? void 0 : _a.show(ISave.PESQUISA_VIEW_MODE.GRID));
|
354
|
+
this._currentView = ISave.PESQUISA_VIEW_MODE.GRID;
|
356
355
|
return;
|
357
356
|
}
|
358
|
-
const view = this.isHierarchyEntity ?
|
357
|
+
const view = this.isHierarchyEntity ? ISave.PESQUISA_VIEW_MODE.TREE : ISave.PESQUISA_VIEW_MODE.CARDS;
|
359
358
|
await ((_b = this._viewStack) === null || _b === void 0 ? void 0 : _b.show(view));
|
360
359
|
this._currentView = view;
|
361
360
|
}
|
@@ -390,9 +389,9 @@ const SnkPesquisa = class {
|
|
390
389
|
var _a, _b;
|
391
390
|
return (index.h(index.Host, null, index.h("div", { class: "snk-pesquisa" }, index.h("div", { class: "snk-pesquisa__input" }, index.h("ez-text-input", { label: "Buscar", class: "ez-margin-right--medium", canShowError: false, ref: (ref) => this._textInput = ref, onEzChange: (event) => this.onChangeValue(event), value: this.argument, "data-element-id": "searchInput" }, index.h("ez-icon", { slot: "leftIcon", iconName: "search" }), this.argument && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value)
|
392
391
|
? index.h("button", { slot: "rightIcon", class: "snk-pesquisa__btn", onClick: () => this.clearSearch() }, index.h("ez-icon", { iconName: "close" }))
|
393
|
-
: undefined), index.h("ez-button", { class: "ez-button--primary", label: "Pesquisar", onClick: () => this.onClickSearch() }), index.h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), index.h("div", { class: `snk-pesquisa__records-label ${this._currentView ===
|
392
|
+
: undefined), index.h("ez-button", { class: "ez-button--primary", label: "Pesquisar", onClick: () => this.onClickSearch() }), index.h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), index.h("div", { class: `snk-pesquisa__records-label ${this._currentView === ISave.PESQUISA_VIEW_MODE.TREE ? 'hidden' : ''}` }, index.h("label", { class: `snk-pesquisa__records ${this.hideRecordsMessage() ? "hidden" : ""}` }, this.getMessageView()), index.h("label", { class: `snk-pesquisa__records-limit ${this.hideLimitMessage() ? "hidden" : ""}` }, "Essa pesquisa foi limitada, existem mais resultados.")), index.h("div", { class: "snk-pesquisa__content" }, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, index.h("pesquisa-grid", { metadata: this._gridMetadata, dataSource: this._gridDataSource, pkField: this._pkField, descriptionField: this._descriptionField, entityName: this.entityName, shouldLoadConfig: this._currentView === ISave.PESQUISA_VIEW_MODE.GRID, onPesquisaGridSelectItem: ({ detail }) => this.selectItem(detail) })), index.h("stack-item", null, index.h("div", { class: 'snk-pesquisa__cards-container' }, (_b = this._itemList) === null || _b === void 0 ? void 0 : _b.map((item) => {
|
394
393
|
return (index.h("ez-card-item", { onEzClick: (event) => this.createOption(event.detail), item: item }));
|
395
|
-
}))), index.h("stack-item", null, index.h("pesquisa-tree", { ref: (element) => this._pesquisaTree = element, argument: this.argument, treeLoader: this.treeLoader, allowsNonAnalytic: this.allowsNonAnalytic, shouldLoadTree: this._currentView ===
|
394
|
+
}))), index.h("stack-item", null, index.h("pesquisa-tree", { ref: (element) => this._pesquisaTree = element, argument: this.argument, treeLoader: this.treeLoader, allowsNonAnalytic: this.allowsNonAnalytic, shouldLoadTree: this._currentView === ISave.PESQUISA_VIEW_MODE.TREE, onPesquisaTreeSelectItem: ({ detail }) => this.selectItem(detail) })))))));
|
396
395
|
}
|
397
396
|
get _element() { return index.getElement(this); }
|
398
397
|
static get watchers() { return {
|
@@ -8,18 +8,17 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const constants = require('./constants-241934b3.js');
|
9
9
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
10
10
|
require('./DataFetcher-875371e9.js');
|
11
|
-
require('./
|
12
|
-
const ClientSideExporterProvider = require('./ClientSideExporterProvider-
|
11
|
+
require('./ISave-62fbb1dd.js');
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-cc82b68a.js');
|
13
13
|
const index$1 = require('./index-e3e39724.js');
|
14
|
-
require('./ISave-e91b70a7.js');
|
15
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
16
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
17
16
|
const dataunitFetcher = require('./dataunit-fetcher-b95768e8.js');
|
18
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
19
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
18
|
+
const formConfigFetcher = require('./form-config-fetcher-db332748.js');
|
20
19
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
21
|
-
const ConfigStorage = require('./ConfigStorage-
|
22
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
20
|
+
const ConfigStorage = require('./ConfigStorage-2235f35e.js');
|
21
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-6637cd6b.js');
|
23
22
|
const index$2 = require('./index-102ba62d.js');
|
24
23
|
require('./PrintUtils-bcaeb82f.js');
|
25
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
@@ -87,6 +86,7 @@ const SnkSimpleCrud = class {
|
|
87
86
|
this.ignoreReadOnlyFormFields = false;
|
88
87
|
this.autoFocus = true;
|
89
88
|
this.domainMessagesBuilder = undefined;
|
89
|
+
this.layoutFormConfig = false;
|
90
90
|
this.autoLoad = undefined;
|
91
91
|
this.outlineMode = false;
|
92
92
|
}
|
@@ -779,7 +779,7 @@ const SnkSimpleCrud = class {
|
|
779
779
|
}
|
780
780
|
return (index.h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === constants.VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, index.h("header", null, index.h("slot", { name: "snkSimpleCrudHeader" })), index.h("section", { class: `ez-box ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section` }, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, index.h("ez-grid", { class: "ez-margin-bottom--large", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(constants.VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
|
781
781
|
? undefined
|
782
|
-
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, this.renderTaskbarContent(), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
|
782
|
+
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, this.renderTaskbarContent(), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
|
783
783
|
}
|
784
784
|
get _element() { return index.getElement(this); }
|
785
785
|
static get watchers() { return {
|
@@ -41,6 +41,8 @@
|
|
41
41
|
"./components/snk-grid/snk-grid.js",
|
42
42
|
"./components/snk-grid-config/snk-grid-config.js",
|
43
43
|
"./components/snk-grid-config/snk-select-box/snk-select-box.js",
|
44
|
+
"./components/snk-layout-form-config/snk-layout-form-config.js",
|
45
|
+
"./components/snk-layout-form-config/snk-view-representation/snk-view-representation.js",
|
44
46
|
"./components/snk-personalized-filter/snk-personalized-filter.js",
|
45
47
|
"./components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js",
|
46
48
|
"./components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js",
|