@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
@@ -5,16 +5,15 @@ 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-6b633b10.js');
|
9
9
|
const DataFetcher = require('./DataFetcher-875371e9.js');
|
10
|
-
const authFetcher = require('./auth-fetcher-
|
10
|
+
const authFetcher = require('./auth-fetcher-24ba4135.js');
|
11
11
|
const dataunitFetcher = require('./dataunit-fetcher-b95768e8.js');
|
12
|
-
const
|
12
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-30cab386.js');
|
13
13
|
const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
|
14
14
|
const constants = require('./constants-241934b3.js');
|
15
|
-
require('./
|
15
|
+
require('./form-config-fetcher-e0a512c3.js');
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
17
|
-
const formConfigFetcher = require('./form-config-fetcher-db332748.js');
|
18
17
|
require('./PrintUtils-bcaeb82f.js');
|
19
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
20
19
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
@@ -387,32 +386,6 @@ class RequestListenerFactory {
|
|
387
386
|
}
|
388
387
|
}
|
389
388
|
|
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
|
-
|
416
389
|
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)}}";
|
417
390
|
|
418
391
|
const SnkApplication = class {
|
@@ -432,8 +405,6 @@ const SnkApplication = class {
|
|
432
405
|
this._pendingActions = new Map;
|
433
406
|
this._loadPkParameter = null;
|
434
407
|
this._isLoadedByPk = false;
|
435
|
-
this._formConfigFetcher = new formConfigFetcher.FormConfigFetcher();
|
436
|
-
this._LayoutFormConfigSingleton = LayoutFormConfig.getInstance();
|
437
408
|
this._applicationReady = false;
|
438
409
|
this._templateSkeleton = constants.TEMPLATES_SKELETON.GRID;
|
439
410
|
this._activeScrimWindow = false;
|
@@ -508,14 +479,6 @@ const SnkApplication = class {
|
|
508
479
|
async getKeyboardManager() {
|
509
480
|
return Promise.resolve(this._keyboardManager);
|
510
481
|
}
|
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
|
-
}
|
519
482
|
/**
|
520
483
|
* Obtém `true` caso o usuário logado seja o SUP.
|
521
484
|
*/
|
@@ -988,7 +951,7 @@ const SnkApplication = class {
|
|
988
951
|
}
|
989
952
|
get pesquisaFetcher() {
|
990
953
|
if (!this._pesquisaFetcher) {
|
991
|
-
this._pesquisaFetcher = new
|
954
|
+
this._pesquisaFetcher = new pesquisaFetcher.PesquisaFetcher();
|
992
955
|
}
|
993
956
|
return this._pesquisaFetcher;
|
994
957
|
}
|
@@ -1429,12 +1392,6 @@ const SnkApplication = class {
|
|
1429
1392
|
ConfigStorage.ConfigStorage.preload(this.applicationResourceID, this.configName, legacyConfig);
|
1430
1393
|
document.addEventListener("click", () => Workspace.applicationClick());
|
1431
1394
|
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);
|
1438
1395
|
}
|
1439
1396
|
connectedCallback() {
|
1440
1397
|
this._isBrowserTypeElectron = core.UserAgentUtils.isElectron();
|
@@ -5,21 +5,22 @@ 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
|
-
|
8
|
+
require('./pesquisa-fetcher-30cab386.js');
|
9
9
|
require('./index-e3e39724.js');
|
10
|
+
const ISave = require('./ISave-e91b70a7.js');
|
10
11
|
const dataunitFetcher = require('./dataunit-fetcher-b95768e8.js');
|
11
12
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
12
|
-
require('./form-config-fetcher-
|
13
|
+
require('./form-config-fetcher-e0a512c3.js');
|
13
14
|
const constants = require('./constants-241934b3.js');
|
14
|
-
const authFetcher = require('./auth-fetcher-
|
15
|
-
const taskbarElements = require('./taskbar-elements-
|
15
|
+
const authFetcher = require('./auth-fetcher-24ba4135.js');
|
16
|
+
const taskbarElements = require('./taskbar-elements-ebddaef4.js');
|
16
17
|
require('./PrintUtils-bcaeb82f.js');
|
17
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
18
19
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
19
20
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
20
21
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
21
22
|
require('./ResourceIDUtils-5ff86aa7.js');
|
22
|
-
require('./index-
|
23
|
+
require('./index-ab1cfb44.js');
|
23
24
|
|
24
25
|
const SERVICE$1 = {
|
25
26
|
save: "Attach.save",
|
@@ -509,20 +510,24 @@ class AttachFetcherDataUnitFactory {
|
|
509
510
|
}
|
510
511
|
getInterceptions(dataUnit, action, crudRef) {
|
511
512
|
return new Promise((resolve) => {
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
if (cancellationConfirmed) {
|
517
|
-
crudRef.goToView(constants.VIEW_MODE.GRID);
|
513
|
+
var _a, _b, _c, _d, _e, _f;
|
514
|
+
switch (action.type) {
|
515
|
+
case core.Action.EDITION_CANCELED:
|
516
|
+
if (!dataUnit.isDirty())
|
518
517
|
return resolve(action);
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
518
|
+
return this._application.confirm(this.getMessage('snkAttach.cancelConfirmation.title'), this.getMessage('snkAttach.cancelConfirmation.message')).then((cancellationConfirmed) => {
|
519
|
+
if (cancellationConfirmed) {
|
520
|
+
crudRef.goToView(constants.VIEW_MODE.GRID);
|
521
|
+
return resolve(action);
|
522
|
+
}
|
523
|
+
return resolve(undefined);
|
524
|
+
});
|
525
|
+
case core.Action.DATA_SAVED:
|
526
|
+
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);
|
527
|
+
return resolve(action);
|
528
|
+
case core.Action.RECORDS_REMOVED:
|
529
|
+
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);
|
530
|
+
return resolve(action);
|
526
531
|
}
|
527
532
|
resolve(action);
|
528
533
|
});
|
@@ -641,6 +646,9 @@ const SnkAttach = class {
|
|
641
646
|
this.handleFinish = () => {
|
642
647
|
if (!this._currentDataUnit.isDirty())
|
643
648
|
return this.back.emit();
|
649
|
+
if (!this.validateAnexoSistema()) {
|
650
|
+
return;
|
651
|
+
}
|
644
652
|
this._currentDataUnit.saveData().then(() => {
|
645
653
|
this.showFinishedToast();
|
646
654
|
this.back.emit();
|
@@ -775,6 +783,7 @@ const SnkAttach = class {
|
|
775
783
|
var _a, _b;
|
776
784
|
this._currentFetcher = new AttachFetcher();
|
777
785
|
this._currentDataUnit = new core.DataUnit(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
786
|
+
this._currentDataUnit.pageSize = 150;
|
778
787
|
this.initDataUnitLoaders();
|
779
788
|
this._currentDataUnit.addInterceptor({
|
780
789
|
interceptAction: (action) => {
|
@@ -819,6 +828,27 @@ const SnkAttach = class {
|
|
819
828
|
}
|
820
829
|
});
|
821
830
|
}
|
831
|
+
validateAnexoSistema() {
|
832
|
+
var _a;
|
833
|
+
if (this._currentFetcher instanceof AnexoSistemaFetcher) {
|
834
|
+
try {
|
835
|
+
let fields = this._currentDataUnit.getSelectedRecord();
|
836
|
+
fields = Object.assign(Object.assign({}, fields), { NOMEARQUIVO: (_a = fields.NOMEARQUIVO) === null || _a === void 0 ? void 0 : _a[0] });
|
837
|
+
this._currentFetcher.validateFields(fields);
|
838
|
+
}
|
839
|
+
catch (error) {
|
840
|
+
if (error.message === ISave.SaveErrorsEnum.LINK_AND_FILE_AT_THE_SAME_TIME) {
|
841
|
+
this._application.alert(this.getMessage('snkAttach.alertValidation.fileAndLinkAtTheSameTime.title'), this.getMessage('snkAttach.alertValidation.fileAndLinkAtTheSameTime.message'));
|
842
|
+
return false;
|
843
|
+
}
|
844
|
+
if (error.message === ISave.SaveErrorsEnum.ANY_LINK_OR_FILE_FILLED) {
|
845
|
+
this._application.alert(this.getMessage('snkAttach.alertValidation.anyLinkOrFileFilled.title'), this.getMessage('snkAttach.alertValidation.anyLinkOrFileFilled.message'));
|
846
|
+
return false;
|
847
|
+
}
|
848
|
+
}
|
849
|
+
}
|
850
|
+
return true;
|
851
|
+
}
|
822
852
|
async componentWillLoad() {
|
823
853
|
this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
824
854
|
await this.initAttach();
|
@@ -847,7 +877,7 @@ const SnkAttach = class {
|
|
847
877
|
var _a, _b;
|
848
878
|
if (!this._currentDataUnit)
|
849
879
|
return null;
|
850
|
-
return (index.h("main", { class: "snk-attach__main" }, index.h("header", { class: "snk-attach__header" }, index.h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, index.h("div", { slot: "rightSlot" }, index.h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), index.h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, index.h("div", { class: "ez-box__container" }, index.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) }, index.h("div", { slot: "snkSimpleCrudHeader" }, index.h("div", { class: "ez-flex ez-flex--column" }, index.h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), index.h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
|
880
|
+
return (index.h("main", { class: "snk-attach__main" }, index.h("header", { class: "snk-attach__header" }, index.h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, index.h("div", { slot: "rightSlot" }, index.h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), index.h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, index.h("div", { class: "ez-box__container" }, index.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 }, index.h("div", { slot: "snkSimpleCrudHeader" }, index.h("div", { class: "ez-flex ez-flex--column" }, index.h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), index.h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
|
851
881
|
}
|
852
882
|
static get watchers() { return {
|
853
883
|
"registerKey": ["registerKeyWatcher"]
|
@@ -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-d680be08.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-e0a512c3.js');
|
14
14
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
15
|
-
require('./ConfigStorage-
|
15
|
+
require('./ConfigStorage-6b633b10.js');
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
17
17
|
require('./DataFetcher-875371e9.js');
|
18
18
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -23,7 +23,6 @@ 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;
|
27
26
|
this.messagesBuilder = undefined;
|
28
27
|
}
|
29
28
|
/**
|
@@ -84,12 +83,6 @@ const SnkConfigurator = class {
|
|
84
83
|
var _a;
|
85
84
|
return (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, {});
|
86
85
|
}
|
87
|
-
handleSave() {
|
88
|
-
if (this.layoutFormConfig) {
|
89
|
-
this._snkLayoutFormConfig.save();
|
90
|
-
}
|
91
|
-
this.save.emit();
|
92
|
-
}
|
93
86
|
componentWillLoad() {
|
94
87
|
this._application = core.ApplicationContext.getContextValue('__SNK__APPLICATION__');
|
95
88
|
if (this._application) {
|
@@ -113,7 +106,7 @@ const SnkConfigurator = class {
|
|
113
106
|
insideCustomElementsContainer === null || insideCustomElementsContainer === void 0 ? void 0 : insideCustomElementsContainer.appendChild(configuratorCustomElement);
|
114
107
|
}
|
115
108
|
render() {
|
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" }))),
|
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.save.emit(), class: "ez-button--primary" }))))));
|
117
110
|
}
|
118
111
|
get _element() { return index.getElement(this); }
|
119
112
|
};
|
@@ -4,18 +4,19 @@ 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 taskbarElements = require('./taskbar-elements-
|
7
|
+
const taskbarElements = require('./taskbar-elements-ebddaef4.js');
|
8
8
|
require('./DataFetcher-875371e9.js');
|
9
|
-
require('./
|
9
|
+
require('./pesquisa-fetcher-30cab386.js');
|
10
10
|
const index$1 = require('./index-e3e39724.js');
|
11
|
+
require('./ISave-e91b70a7.js');
|
11
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
12
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
13
14
|
require('./dataunit-fetcher-b95768e8.js');
|
14
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
15
|
-
require('./form-config-fetcher-
|
16
|
+
require('./form-config-fetcher-e0a512c3.js');
|
16
17
|
const constants = require('./constants-241934b3.js');
|
17
|
-
const authFetcher = require('./auth-fetcher-
|
18
|
-
require('./index-
|
18
|
+
const authFetcher = require('./auth-fetcher-24ba4135.js');
|
19
|
+
require('./index-ab1cfb44.js');
|
19
20
|
require('./PrintUtils-bcaeb82f.js');
|
20
21
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
21
22
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
@@ -66,7 +67,7 @@ const SnkCrud = class {
|
|
66
67
|
this.ignoreReadOnlyFormFields = undefined;
|
67
68
|
this.setCustomFormTitle = undefined;
|
68
69
|
this.strategyExporter = index$1.ExporterStrategy.SERVER_SIDE;
|
69
|
-
this.
|
70
|
+
this.paginationCounterMode = 'auto';
|
70
71
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${core.StringUtils.generateUUID()}`;
|
71
72
|
}
|
72
73
|
/**
|
@@ -401,7 +402,7 @@ const SnkCrud = class {
|
|
401
402
|
return;
|
402
403
|
}
|
403
404
|
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
|
405
|
+
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, paginationCounterMode: this.paginationCounterMode }, 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" }))));
|
405
406
|
}
|
406
407
|
get _element() { return index.getElement(this); }
|
407
408
|
static get watchers() { return {
|
@@ -10,12 +10,13 @@ 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('./
|
13
|
+
require('./pesquisa-fetcher-30cab386.js');
|
14
|
+
require('./ISave-e91b70a7.js');
|
14
15
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
15
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
16
17
|
require('./dataunit-fetcher-b95768e8.js');
|
17
18
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
18
|
-
require('./form-config-fetcher-
|
19
|
+
require('./form-config-fetcher-e0a512c3.js');
|
19
20
|
require('./PrintUtils-bcaeb82f.js');
|
20
21
|
require('./SnkMessageBuilder-bae64d0d.js');
|
21
22
|
require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
@@ -4,26 +4,27 @@ 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-d680be08.js');
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
9
9
|
require('./DataFetcher-875371e9.js');
|
10
|
-
require('./
|
10
|
+
require('./pesquisa-fetcher-30cab386.js');
|
11
11
|
const index$1 = require('./index-e3e39724.js');
|
12
|
+
require('./ISave-e91b70a7.js');
|
12
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
13
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
15
|
require('./dataunit-fetcher-b95768e8.js');
|
15
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
16
|
-
require('./form-config-fetcher-
|
17
|
+
require('./form-config-fetcher-e0a512c3.js');
|
17
18
|
const constants = require('./constants-241934b3.js');
|
18
|
-
const taskbarElements = require('./taskbar-elements-
|
19
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
19
|
+
const taskbarElements = require('./taskbar-elements-ebddaef4.js');
|
20
|
+
const snkGuidesViewer = require('./snk-guides-viewer-b6002ea7.js');
|
20
21
|
const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
|
21
|
-
require('./ConfigStorage-
|
22
|
+
require('./ConfigStorage-6b633b10.js');
|
22
23
|
require('./PrintUtils-bcaeb82f.js');
|
23
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
24
25
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
25
26
|
require('./ResourceIDUtils-5ff86aa7.js');
|
26
|
-
require('./index-
|
27
|
+
require('./index-ab1cfb44.js');
|
27
28
|
require('./field-search-68e34bf4.js');
|
28
29
|
require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
29
30
|
|
@@ -70,7 +71,7 @@ class GuideBuilder {
|
|
70
71
|
}
|
71
72
|
}
|
72
73
|
|
73
|
-
const snkDetailViewCss = ".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.level-path.sc-snk-detail-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px
|
74
|
+
const snkDetailViewCss = ".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.level-path.sc-snk-detail-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px}.detail-header.sc-snk-detail-view{padding-bottom:0}";
|
74
75
|
|
75
76
|
const SnkDetailView = class {
|
76
77
|
constructor(hostRef) {
|
@@ -96,7 +97,6 @@ const SnkDetailView = class {
|
|
96
97
|
this.taskbarCustomContainerId = undefined;
|
97
98
|
this.customEditors = undefined;
|
98
99
|
this.customRenders = undefined;
|
99
|
-
this.presentationMode = index$1.PresentationMode.SECONDARY;
|
100
100
|
}
|
101
101
|
observeDataUnit(newDataUnit, oldDataUnit) {
|
102
102
|
newDataUnit === null || newDataUnit === void 0 ? void 0 : newDataUnit.subscribe(this.dataUnitActionHandler.bind(this));
|
@@ -316,7 +316,7 @@ const SnkDetailView = class {
|
|
316
316
|
render() {
|
317
317
|
this.updateLabel();
|
318
318
|
//const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
|
319
|
-
return (index.h(index.Host, null, index.h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === constants.VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, index.h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, index.h("stack-item", null, index.h("div", { class: "ez-box ez-box--shadow grid-container" }, index.h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, index.h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? index.h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), index.h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(constants.VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode:
|
319
|
+
return (index.h(index.Host, null, index.h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === constants.VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, index.h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, index.h("stack-item", null, index.h("div", { class: "ez-box ez-box--shadow grid-container" }, index.h("div", { class: "ez-flex ez-title--primary ez-size-width--full ez-padding--large detail-header" }, index.h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? index.h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), index.h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(constants.VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: index$1.PresentationMode.SECONDARY, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false }))), index.h("stack-item", null, index.h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems) }, index.h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: index$1.PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }, index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
|
320
320
|
}
|
321
321
|
static get watchers() { return {
|
322
322
|
"dataUnit": ["observeDataUnit"],
|
@@ -8,7 +8,7 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const core = require('@sankhyalabs/core');
|
9
9
|
const index$3 = require('./index-8d94b7e0.js');
|
10
10
|
const FieldBuilder = require('@sankhyalabs/ezui/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder');
|
11
|
-
const index$2 = require('./index-
|
11
|
+
const index$2 = require('./index-ab1cfb44.js');
|
12
12
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
13
13
|
|
14
14
|
const snkExpressionGroupCss = ".sc-snk-expression-group-h{display:block;--snk-expression-group--container-condition--width:184px;--snk-expression-group--container-condition--height:38px;--snk-expression-group--container-condition--border-radius:var(--border--radius-medium, 12px);--snk-expression-group--container-option--width:85px;--snk-expression-group__container-condition--background-and:#66B6A0;--snk-expression-group__container-condition--background-or:#EBC65E;--snk-expression-group__container-expression--padding-left:26px;--snk-expression-group__background-color-dashed:var(--background--body, #fafcff)}.snk-expression-group__container-condition.sc-snk-expression-group{width:var(--snk-expression-group--container-condition--width);height:var(--snk-expression-group--container-condition--height);border-radius:var(--snk-expression-group--container-condition--border-radius);z-index:var(--more-visible--2x, 3)}.snk-expression-group__container-option.sc-snk-expression-group{width:var(--snk-expression-group--container-option--width)}.snk-expression-group__container-condition[data-condition=\"AND\"].sc-snk-expression-group{background-color:var(--snk-expression-group__container-condition--background-and)}.snk-expression-group__container-condition[data-condition=\"OR\"].sc-snk-expression-group{background-color:var(--snk-expression-group__container-condition--background-or)}.snk-expression-group__container-expression.sc-snk-expression-group{padding-left:var(--snk-expression-group__container-expression--padding-left)}.dashes.sc-snk-expression-group{z-index:var(--visible, 1);background:var(--snk-expression-group__background-color-dashed);border-left:2px dashed var(--text-secondary, #A2ABB9);position:absolute;width:15px;height:58px;margin-left:-15px;margin-top:-36.5px}.horizontal-dashes.sc-snk-expression-group{z-index:var(--more-visible, 2);border-bottom:2px dashed var(--text-secondary, #A2ABB9);position:absolute;width:15px;height:54px;margin-left:-15px;margin-top:-33.5px}.hidden.sc-snk-expression-group{display:none}";
|
@@ -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-6b633b10.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-e0a512c3.js');
|
18
18
|
require('./DataFetcher-875371e9.js');
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
20
20
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
@@ -254,7 +254,7 @@ class SnkFilterModalFactory {
|
|
254
254
|
}
|
255
255
|
}
|
256
256
|
|
257
|
-
const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:1fr minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--elevation--20, 20);--snk-personalized-filter--background-color:var(--background--xlight, #fff)}.snk-filter-bar__title.sc-snk-filter-bar{max-width:260px;display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:16px;font-family:var(--font-pattern, Arial);font-weight:var(--text-weight--large, 600);color:var(--color--title-primary, #2B3A54);margin-top:12px}[data-mode=\"hidden\"].sc-snk-filter-bar-h{width:0px;height:0px}[data-mode=\"button\"].sc-snk-filter-bar-h{grid-template-columns:1fr;width:fit-content}.snk-filter__popover-container.sc-snk-filter-bar{display:flex;cursor:auto}.filter-bar__personalized-filter.sc-snk-filter-bar{display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:var(--snk-personalized-filter--z-index);background-color:var(--snk-personalized-filter--background-color)}.snk-filter__popover.sc-snk-filter-bar{display:flex;flex-direction:column;position:absolute;width:fit-content;height:fit-content;min-width:265px;background-color:var(--background--xlight, #fff);border-radius:var(--border--radius-medium, 12px);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.snk-filter-item__editor-header.sc-snk-filter-bar{flex-grow:1;font-weight:var(--text-weight--medium, 400);color:var(--color--title-primary, #2B3A54)}.snk-filter__popover-rule.sc-snk-filter-bar{border-style:solid;border-color:var(--color--disable-secondary, #F2F5F8);border-radius:1px;border-width:1px;width:100%}.editor__ez-check.sc-snk-filter-bar{--ez-check__label--padding-left:0}.snk-filter-item__editor-header-button.sc-snk-filter-bar{cursor:pointer;background-color:transparent;border:none;padding:3px;outline-color:var(--color--primary)}.snk-filter-bar__divider.sc-snk-filter-bar{margin-bottom:var(--space--small)}.snk-filter-bar__filter-item-container.sc-snk-filter-bar{display:flex;align-items:start}.snk-filter-bar__scroller.sc-snk-filter-bar .sc-snk-filter-bar:first-child{margin-left:var(--space-extra-small, 3px)}.snk-filter-bar__filter-list-items-container.sc-snk-filter-bar{overflow-y:auto;max-height:360px;margin-top:var(--space--small, 6px)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar{cursor:pointer;border-radius:var(--border--radius-small, 6px);border:none;background-color:transparent}.snk-filter-bar__filter-list-item__label.sc-snk-filter-bar{color:var(--title--primary)}.snk-filter-bar__filter-list-item__label--secondary.sc-snk-filter-bar{color:var(--text--primary)}.snk-filter-bar__filter-list-item__icon.sc-snk-filter-bar{--ez-icon--color:var(--title--primary)}.snk-filter-bar__filter-list-item__icon--secondary.sc-snk-filter-bar{--ez-icon--color:var(--text--secondary)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:focus-visible{outline:none;background-color:var(--background--medium)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:hover{background-color:var(--background--medium)}.snk-filter-bar__filter-list-items-container--empty.sc-snk-filter-bar{width:100%;height:100px;display:flex;justify-content:center;align-self:center;align-items:center}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar{position:relative}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar::after{display:flex;position:absolute;content:\"\";width:8px;height:8px;top:7px;left:17px;background-color:var(--icon--alert--color, #008561);border-radius:50%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar{--modal-item-border-width:2px;display:flex;flex-direction:row;margin-left:var(--modal-item-border-width);border-radius:var(--border--radius-medium, 12px);background-color:var(--background--medium, #f0f3f7);border:none;width:100%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar:focus-visible{outline:var(--color--primary) solid var(--modal-item-border-width)}.snk-filter-bar__filter-modal-item__check.sc-snk-filter-bar{width:auto}.snk-filter-bar__filter-modal-item__label.sc-snk-filter-bar{font-weight:var(--text-weight--medium)}.snk-filter-bar__filter-modal-content.sc-snk-filter-bar{display:grid;grid-template-rows:auto auto 1fr auto;width:99%;height:100%}";
|
257
|
+
const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:1fr minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--elevation--20, 20);--snk-personalized-filter--background-color:var(--background--xlight, #fff)}.snk-filter-bar__title.sc-snk-filter-bar{max-width:260px;display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:16px;font-family:var(--font-pattern, Arial);font-weight:var(--text-weight--large, 600);color:var(--color--title-primary, #2B3A54);margin-top:12px}[data-mode=\"hidden\"].sc-snk-filter-bar-h{width:0px;height:0px}[data-mode=\"button\"].sc-snk-filter-bar-h{grid-template-columns:1fr;width:fit-content}.snk-filter__popover-container.sc-snk-filter-bar{display:flex;cursor:auto}.filter-bar__personalized-filter.sc-snk-filter-bar{display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:var(--snk-personalized-filter--z-index);background-color:var(--snk-personalized-filter--background-color)}.snk-filter__popover.sc-snk-filter-bar{display:flex;flex-direction:column;position:absolute;width:fit-content;height:fit-content;min-width:265px;background-color:var(--background--xlight, #fff);border-radius:var(--border--radius-medium, 12px);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.snk-filter-item__editor-header.sc-snk-filter-bar{flex-grow:1;font-weight:var(--text-weight--medium, 400);color:var(--color--title-primary, #2B3A54)}.snk-filter__popover-rule.sc-snk-filter-bar{border-style:solid;border-color:var(--color--disable-secondary, #F2F5F8);border-radius:1px;border-width:1px;width:100%}.editor__ez-check.sc-snk-filter-bar{--ez-check__label--padding-left:0}.snk-filter-item__editor-header-button.sc-snk-filter-bar{cursor:pointer;background-color:transparent;border:none;padding:3px;outline-color:var(--color--primary)}.snk-filter-bar__divider.sc-snk-filter-bar{margin-bottom:var(--space--small);height:80%}.snk-filter-bar__filter-item-container.sc-snk-filter-bar{display:flex;align-items:start}.snk-filter-bar__scroller.sc-snk-filter-bar .sc-snk-filter-bar:first-child{margin-left:var(--space-extra-small, 3px)}.snk-filter-bar__filter-list-items-container.sc-snk-filter-bar{overflow-y:auto;max-height:360px;margin-top:var(--space--small, 6px)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar{cursor:pointer;border-radius:var(--border--radius-small, 6px);border:none;background-color:transparent}.snk-filter-bar__filter-list-item__label.sc-snk-filter-bar{color:var(--title--primary)}.snk-filter-bar__filter-list-item__label--secondary.sc-snk-filter-bar{color:var(--text--primary)}.snk-filter-bar__filter-list-item__icon.sc-snk-filter-bar{--ez-icon--color:var(--title--primary)}.snk-filter-bar__filter-list-item__icon--secondary.sc-snk-filter-bar{--ez-icon--color:var(--text--secondary)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:focus-visible{outline:none;background-color:var(--background--medium)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:hover{background-color:var(--background--medium)}.snk-filter-bar__filter-list-items-container--empty.sc-snk-filter-bar{width:100%;height:100px;display:flex;justify-content:center;align-self:center;align-items:center}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar{position:relative}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar::after{display:flex;position:absolute;content:\"\";width:8px;height:8px;top:7px;left:17px;background-color:var(--icon--alert--color, #008561);border-radius:50%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar{--modal-item-border-width:2px;display:flex;flex-direction:row;margin-left:var(--modal-item-border-width);border-radius:var(--border--radius-medium, 12px);background-color:var(--background--medium, #f0f3f7);border:none;width:100%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar:focus-visible{outline:var(--color--primary) solid var(--modal-item-border-width)}.snk-filter-bar__filter-modal-item__check.sc-snk-filter-bar{width:auto}.snk-filter-bar__filter-modal-item__label.sc-snk-filter-bar{font-weight:var(--text-weight--medium)}.snk-filter-bar__filter-modal-content.sc-snk-filter-bar{display:grid;grid-template-rows:auto auto 1fr auto;width:99%;height:100%}";
|
258
258
|
|
259
259
|
const SnkFilterBar = class {
|
260
260
|
constructor(hostRef) {
|
@@ -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-6b633b10.js');
|
10
10
|
const filterType_enum = require('./filter-type.enum-b14ce507.js');
|
11
|
-
require('./form-config-fetcher-
|
11
|
+
require('./form-config-fetcher-e0a512c3.js');
|
12
12
|
require('./DataFetcher-875371e9.js');
|
13
13
|
require('./PrintUtils-bcaeb82f.js');
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
@@ -4,20 +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 taskbarElements = require('./taskbar-elements-
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
7
|
+
const taskbarElements = require('./taskbar-elements-ebddaef4.js');
|
8
|
+
const ConfigStorage = require('./ConfigStorage-6b633b10.js');
|
9
9
|
const index$1 = require('./index-e3e39724.js');
|
10
10
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
11
|
-
const index$2 = require('./index-
|
12
|
-
const ClientSideExporterProvider = require('./ClientSideExporterProvider-
|
11
|
+
const index$2 = require('./index-ab1cfb44.js');
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-fe52f7cf.js');
|
13
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
14
14
|
require('./DataFetcher-875371e9.js');
|
15
|
-
require('./
|
15
|
+
require('./pesquisa-fetcher-30cab386.js');
|
16
|
+
require('./ISave-e91b70a7.js');
|
16
17
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
17
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
18
19
|
require('./dataunit-fetcher-b95768e8.js');
|
19
20
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
20
|
-
require('./form-config-fetcher-
|
21
|
+
require('./form-config-fetcher-e0a512c3.js');
|
21
22
|
require('./constants-241934b3.js');
|
22
23
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
23
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
@@ -81,7 +82,7 @@ class ServerSideExporterProvider extends ClientSideExporterProvider.CommonsExpor
|
|
81
82
|
}
|
82
83
|
}
|
83
84
|
|
84
|
-
const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px;--snk-grid-padding:var(--space--small)}.snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100%;padding:var(--snk-grid-padding)}.snk-grid__header.sc-snk-grid{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-end}.snk-grid__filter-bar.sc-snk-grid{width:100%}.snk-grid__header-divider.sc-snk-grid{margin-bottom:var(--space--medium)}.snk-grid__table.sc-snk-grid{min-height:var(--snk-grid-min-height)}.snk-grid-container__without-shadow.sc-snk-grid{--ezgrid__container--shadow:unset}.snk-grid-container__footer.sc-snk-grid{background-color:var(--background--xlight, #FFF);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium);box-shadow:var(--shadow--small)}";
|
85
|
+
const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px;--snk-grid-padding:var(--space--small)}.snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100%;padding:var(--snk-grid-padding);outline:none}.snk-grid__header.sc-snk-grid{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-end}.snk-grid__filter-bar.sc-snk-grid{width:100%}.snk-grid__header-divider.sc-snk-grid{margin-bottom:var(--space--medium)}.snk-grid__table.sc-snk-grid{min-height:var(--snk-grid-min-height)}.snk-grid-container__without-shadow.sc-snk-grid{--ezgrid__container--shadow:unset}.snk-grid-container__footer.sc-snk-grid{background-color:var(--background--xlight, #FFF);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium);box-shadow:var(--shadow--small)}";
|
85
86
|
|
86
87
|
const SnkGrid = class {
|
87
88
|
constructor(hostRef) {
|
@@ -151,6 +152,7 @@ const SnkGrid = class {
|
|
151
152
|
this.enableGridInsert = false;
|
152
153
|
this.outlineMode = false;
|
153
154
|
this.strategyExporter = index$1.ExporterStrategy.SERVER_SIDE;
|
155
|
+
this.paginationCounterMode = 'auto';
|
154
156
|
}
|
155
157
|
reloadConfig() {
|
156
158
|
this.loadConfig();
|
@@ -558,7 +560,7 @@ const SnkGrid = class {
|
|
558
560
|
return undefined;
|
559
561
|
}
|
560
562
|
return (index.h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, index.h("div", { class: "snk-grid__header ez-margin-bottom--extra-small" }, this._showSnkFilterBar &&
|
561
|
-
index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), index.h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none' }, index.h("slot", { name: this.topTaskbarCustomSlotId }))), index.h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === index$1.PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, index.h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, index.h("slot", { name: this.gridHeaderCustomSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, 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.resourceID }))));
|
563
|
+
index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), index.h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none' }, index.h("slot", { name: this.topTaskbarCustomSlotId }))), index.h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === index$1.PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, paginationCounterMode: this.paginationCounterMode }, index.h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, index.h("slot", { name: this.gridHeaderCustomSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, 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.resourceID }))));
|
562
564
|
}
|
563
565
|
get _element() { return index.getElement(this); }
|
564
566
|
static get watchers() { return {
|
@@ -2,19 +2,20 @@
|
|
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-d680be08.js');
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
7
7
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
8
|
-
const taskbarElements = require('./taskbar-elements-
|
8
|
+
const taskbarElements = require('./taskbar-elements-ebddaef4.js');
|
9
9
|
const constants = require('./constants-241934b3.js');
|
10
10
|
require('./DataFetcher-875371e9.js');
|
11
|
-
require('./
|
11
|
+
require('./pesquisa-fetcher-30cab386.js');
|
12
12
|
const index$1 = require('./index-e3e39724.js');
|
13
|
+
require('./ISave-e91b70a7.js');
|
13
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
14
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
15
16
|
require('./dataunit-fetcher-b95768e8.js');
|
16
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
17
|
-
require('./form-config-fetcher-
|
18
|
+
require('./form-config-fetcher-e0a512c3.js');
|
18
19
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
19
20
|
|
20
21
|
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}";
|
@@ -299,7 +300,7 @@ const SnkGuidesViewer = class {
|
|
299
300
|
else {
|
300
301
|
detailBranch = this.selectedGuide;
|
301
302
|
}
|
302
|
-
content = this.wrapDetail(levels, index.h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders
|
303
|
+
content = this.wrapDetail(levels, index.h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders }));
|
303
304
|
}
|
304
305
|
else {
|
305
306
|
const cardId = this.selectedGuide.id;
|