@sankhyalabs/sankhyablocks 8.16.0-dev.74 → 8.16.0-dev.76
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{ContinuousInsertUtils-2718aaaa.js → ContinuousInsertUtils-fff67c94.js} +2 -1
- package/dist/cjs/{SnkFormConfigManager-07f747be.js → SnkFormConfigManager-c11d8468.js} +1 -1
- package/dist/cjs/{constants-35ddd366.js → constants-241934b3.js} +9 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-3b86b6c4.js → pesquisa-fetcher-36d039c4.js} +4 -0
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +2 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_5.cjs.entry.js +2 -2
- package/dist/cjs/snk-application.cjs.entry.js +71 -26
- package/dist/cjs/snk-attach.cjs.entry.js +2 -2
- package/dist/cjs/snk-config-options_3.cjs.entry.js +2 -2
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +2 -2
- package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +4 -4
- package/dist/cjs/snk-field-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-grid.cjs.entry.js +3 -2
- package/dist/cjs/{snk-guides-viewer-266339d2.js → snk-guides-viewer-00f17b65.js} +3 -3
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +4 -4
- package/dist/cjs/snk-pesquisa.cjs.entry.js +2 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +4 -4
- package/dist/cjs/snk-tab-config.cjs.entry.js +1 -1
- package/dist/collection/components/snk-application/snk-application.css +2 -0
- package/dist/collection/components/snk-application/snk-application.js +108 -28
- package/dist/collection/components/snk-pesquisa/pesquisaHelper.js +4 -0
- package/dist/collection/lib/index.js +1 -0
- package/dist/collection/lib/utils/constants.js +9 -0
- package/dist/components/ContinuousInsertUtils.js +1 -0
- package/dist/components/ISave.js +4 -0
- package/dist/components/SnkFormConfigManager.js +1 -1
- package/dist/components/constants.js +10 -1
- package/dist/components/pesquisa-grid2.js +1 -0
- package/dist/components/snk-actions-button2.js +1 -0
- package/dist/components/snk-application2.js +73 -25
- package/dist/components/snk-config-options2.js +1 -1
- package/dist/components/snk-detail-view2.js +1 -1
- package/dist/components/snk-form-config2.js +1 -1
- package/dist/components/snk-grid2.js +1 -0
- package/dist/components/snk-pesquisa2.js +1 -0
- package/dist/components/snk-simple-form-config2.js +1 -0
- package/dist/components/snk-tab-config2.js +1 -1
- package/dist/esm/{ContinuousInsertUtils-deb7767f.js → ContinuousInsertUtils-2bb81687.js} +2 -1
- package/dist/esm/{SnkFormConfigManager-1ff928fa.js → SnkFormConfigManager-5022f87f.js} +1 -1
- package/dist/esm/{constants-7302ee87.js → constants-75abb876.js} +10 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-767abffa.js → pesquisa-fetcher-aab1fe14.js} +4 -0
- package/dist/esm/pesquisa-grid_2.entry.js +2 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_5.entry.js +2 -2
- package/dist/esm/snk-application.entry.js +71 -26
- package/dist/esm/snk-attach.entry.js +2 -2
- package/dist/esm/snk-config-options_3.entry.js +2 -2
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +2 -2
- package/dist/esm/snk-data-exporter.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +4 -4
- package/dist/esm/snk-field-config.entry.js +1 -1
- package/dist/esm/snk-grid.entry.js +3 -2
- package/dist/esm/{snk-guides-viewer-9f03a9a0.js → snk-guides-viewer-e41d53d3.js} +3 -3
- package/dist/esm/snk-guides-viewer.entry.js +4 -4
- package/dist/esm/snk-pesquisa.entry.js +2 -1
- package/dist/esm/snk-simple-crud.entry.js +4 -4
- package/dist/esm/snk-tab-config.entry.js +1 -1
- package/dist/sankhyablocks/{p-d3a44f8f.entry.js → p-0af50c95.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1f17a44e.entry.js → p-1190411d.entry.js} +1 -1
- package/dist/sankhyablocks/{p-95ce311a.js → p-1d19a5b0.js} +1 -1
- package/dist/sankhyablocks/{p-2d3f9482.entry.js → p-23cd6abf.entry.js} +1 -1
- package/dist/sankhyablocks/{p-8b4fc28f.entry.js → p-2953c481.entry.js} +1 -1
- package/dist/sankhyablocks/{p-09b4a36b.entry.js → p-332b6975.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b896f0df.entry.js → p-34692731.entry.js} +1 -1
- package/dist/sankhyablocks/{p-aaef93e8.js → p-3ba431c9.js} +1 -1
- package/dist/sankhyablocks/{p-5dbed7b4.entry.js → p-3decf7ea.entry.js} +1 -1
- package/dist/sankhyablocks/{p-18f58d73.js → p-57cbcd43.js} +1 -1
- package/dist/sankhyablocks/p-63e38a9e.entry.js +1 -0
- package/dist/sankhyablocks/{p-9070bfe3.entry.js → p-85116083.entry.js} +1 -1
- package/dist/sankhyablocks/p-a86cef70.entry.js +1 -0
- package/dist/sankhyablocks/p-adf31dc8.entry.js +1 -0
- package/dist/sankhyablocks/{p-0d86c004.entry.js → p-c021a3a9.entry.js} +1 -1
- package/dist/sankhyablocks/{p-4fe8bb73.js → p-c9f22653.js} +1 -1
- package/dist/sankhyablocks/p-dbd60c7d.js +1 -0
- package/dist/sankhyablocks/p-dbf2c7ea.entry.js +11 -0
- package/dist/sankhyablocks/p-ee97cb65.entry.js +1 -0
- package/dist/sankhyablocks/{p-41793e17.entry.js → p-f4ceb72c.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +14 -4
- package/dist/types/components.d.ts +4 -3
- package/dist/types/lib/index.d.ts +1 -0
- package/dist/types/lib/utils/constants.d.ts +7 -0
- package/package.json +1 -1
- package/dist/sankhyablocks/p-07583bae.entry.js +0 -1
- package/dist/sankhyablocks/p-0d2c8bc8.entry.js +0 -1
- package/dist/sankhyablocks/p-800a8209.entry.js +0 -1
- package/dist/sankhyablocks/p-86fc5865.js +0 -1
- package/dist/sankhyablocks/p-9cec99d8.entry.js +0 -11
- package/dist/sankhyablocks/p-aa3ead06.entry.js +0 -1
@@ -5,13 +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-65879b2c.js');
|
8
|
-
require('./pesquisa-fetcher-
|
8
|
+
require('./pesquisa-fetcher-36d039c4.js');
|
9
9
|
require('./index-1dfc7a6e.js');
|
10
10
|
const ISave = require('./ISave-e91b70a7.js');
|
11
11
|
const dataunitFetcher = require('./dataunit-fetcher-c32fdff7.js');
|
12
12
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
13
13
|
require('./form-config-fetcher-90126e4c.js');
|
14
|
-
const constants = require('./constants-
|
14
|
+
const constants = require('./constants-241934b3.js');
|
15
15
|
const authFetcher = require('./auth-fetcher-8480751c.js');
|
16
16
|
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
17
17
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -6,8 +6,8 @@ const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
9
|
-
const constants = require('./constants-
|
10
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
9
|
+
const constants = require('./constants-241934b3.js');
|
10
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-c11d8468.js');
|
11
11
|
const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
|
12
12
|
const Sortable = require('./Sortable-fb1c4cbb.js');
|
13
13
|
const formConfigFetcher = require('./form-config-fetcher-90126e4c.js');
|
@@ -4,7 +4,7 @@ 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 constants = require('./constants-
|
7
|
+
const constants = require('./constants-241934b3.js');
|
8
8
|
const AuthorizationConfig = require('./AuthorizationConfig-79ffae4b.js');
|
9
9
|
|
10
10
|
const snkConfiguratorCss = ".sc-snk-configurator-h{--snk-configurator__button-close--padding-left:var(--space--medium, 12px);--snk-configurator__title--color:var(--title--primary, #2B3A54);--snk-configurator__title--font-family:var(--font-pattern, \"Roboto\");--snk-configurator__title--font-size:var(--title--large, 20px);--snk-configurator__title--font-weight:var(--text-weight--extra-large, 700);--snk-configurator__subtitle--color:var(--title--primary, #2B3A54);--snk-configurator__subtitle--font-family:var(--font-pattern, \"Roboto\");--snk-configurator__subtitle--font-size:var(--text--medium, 14px);--snk-configurator__subtitle--font-weight:var(--text-weight--large, 600);--snk-configurator__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-configurator__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-configurator__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-configurator__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-configurator__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-configurator__scrollbar--width:var(--space--medium, 12px)}.snk-configurator.sc-snk-configurator{display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}.snk-configurator__collsable-box-action.sc-snk-configurator{width:100%}.snk-configurator__action-buttons.sc-snk-configurator{display:flex;flex-direction:row;justify-content:flex-end;gap:var(--space--medium)}.snk-configurator__outline.sc-snk-configurator{display:flex;flex-direction:column;gap:var(--space--small);margin-top:var(--space--small);margin-bottom:var(--space--large)}@media screen and (min-width: 480px){.snk-configurator.sc-snk-configurator{width:359px;max-width:359px}}.snk-configurator__button-config.sc-snk-configurator{--ez-button--min-width:100%}.snk-configurator__header.sc-snk-configurator{display:flex;justify-content:space-between;align-items:center;width:100%}.snk-configurator__title.sc-snk-configurator{display:flex;margin:0;line-height:normal;letter-spacing:0em;text-align:left;color:var(--snk-configurator__title--color);font-size:var(--snk-configurator__title--font-size);font-family:var(--snk-configurator__title--font-family);font-weight:var(--snk-configurator__title--font-weight)}.snk-configurator__subtitle.sc-snk-configurator{display:flex;margin:0;padding-top:var(--space--medium);padding-bottom:var(--space--small);color:var(--snk-configurator__subtitle--color);font-size:var(--snk-configurator__subtitle--font-size);font-family:var(--snk-configurator__subtitle--font-family);font-weight:var(--snk-configurator__subtitle--font-weight)}.snk-configurator__button-close.sc-snk-configurator{padding-left:var(--snk-configurator__button-close--padding-left)}.snk-configurator__main.sc-snk-configurator{overflow-y:auto;scrollbar-width:thin;margin:var(--space--medium) 0;scrollbar-color:var(--snk-configurator__scrollbar--color-clicked) var(--snk-configurator__scrollbar--color-background)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar{background-color:var(--snk-configurator__scrollbar--color-background);width:var(--snk-configurator__scrollbar--width);max-width:var(--snk-configurator__scrollbar--width);min-width:var(--snk-configurator__scrollbar--width)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-track{background-color:var(--snk-configurator__scrollbar--color-background);border-radius:var(--snk-configurator__scrollbar--border-radius)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb{background-color:var(--snk-configurator__scrollbar--color-default);border-radius:var(--snk-configurator__scrollbar--border-radius)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:vertical:hover,.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-configurator__scrollbar--color-hover)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:vertical:active,.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-configurator__scrollbar--color-clicked)}";
|
@@ -6,7 +6,7 @@ const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
8
8
|
require('./DataFetcher-65879b2c.js');
|
9
|
-
require('./pesquisa-fetcher-
|
9
|
+
require('./pesquisa-fetcher-36d039c4.js');
|
10
10
|
const index$1 = require('./index-1dfc7a6e.js');
|
11
11
|
require('./ISave-e91b70a7.js');
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
@@ -14,7 +14,7 @@ require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
14
|
require('./dataunit-fetcher-c32fdff7.js');
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
16
16
|
require('./form-config-fetcher-90126e4c.js');
|
17
|
-
const constants = require('./constants-
|
17
|
+
const constants = require('./constants-241934b3.js');
|
18
18
|
const authFetcher = require('./auth-fetcher-8480751c.js');
|
19
19
|
require('./index-102ba62d.js');
|
20
20
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -6,10 +6,10 @@ const index$1 = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
8
8
|
const index = require('./index-1dfc7a6e.js');
|
9
|
-
const constants = require('./constants-
|
9
|
+
const constants = require('./constants-241934b3.js');
|
10
10
|
const DataFetcher = require('./DataFetcher-65879b2c.js');
|
11
11
|
const snkDataUnit = require('./snk-data-unit-2c7c1964.js');
|
12
|
-
require('./pesquisa-fetcher-
|
12
|
+
require('./pesquisa-fetcher-36d039c4.js');
|
13
13
|
require('./ISave-e91b70a7.js');
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
@@ -4,10 +4,10 @@ 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-c11d8468.js');
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
9
9
|
require('./DataFetcher-65879b2c.js');
|
10
|
-
require('./pesquisa-fetcher-
|
10
|
+
require('./pesquisa-fetcher-36d039c4.js');
|
11
11
|
const index$1 = require('./index-1dfc7a6e.js');
|
12
12
|
require('./ISave-e91b70a7.js');
|
13
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
@@ -15,9 +15,9 @@ require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
15
|
require('./dataunit-fetcher-c32fdff7.js');
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
17
17
|
require('./form-config-fetcher-90126e4c.js');
|
18
|
+
const constants = require('./constants-241934b3.js');
|
18
19
|
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
19
|
-
const
|
20
|
-
const snkGuidesViewer = require('./snk-guides-viewer-266339d2.js');
|
20
|
+
const snkGuidesViewer = require('./snk-guides-viewer-00f17b65.js');
|
21
21
|
const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
|
22
22
|
require('./ConfigStorage-d024aec8.js');
|
23
23
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -4,7 +4,7 @@ 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 constants = require('./constants-
|
7
|
+
const constants = require('./constants-241934b3.js');
|
8
8
|
|
9
9
|
const snkFieldConfigCss = ".sc-snk-field-config-h{--snk-field-config--height:42px;--snk-field-config--width:100%;--snk-field-config__icon--width:48px;--snk-field-config-slim--height:32px;--snk-field-config--border-radius:var(--border--radius-medium, 12px);--snk-field-config--font-size:var(--text--medium, 14px);--snk-field-config--font-family:var(--font-pattern, Arial);--snk-field-config--font-weight:var(--text-weight--medium, 400);--snk-field-config--color:var(--title--primary, #000);--snk-field-config--padding-left:var(--space--medium, 6px);--snk-field-config__input--background-color:var(--background--medium, #e0e0e0);--snk-field-config__input--border:var(--border--medium, 2px solid);--snk-field-config__input--border-color:var(--background--xlight, #fff);--snk-field-config__required--color:var(--color--error, #FF0000);--snk-field-config__label--gap:var(--space--extra-small, 3px);--snk-field-config__transition--visibility:var(--transition, 0.2s linear);--snk-field-config__transition--opacity:var(--transition, 0.15s linear);--snk-field-config__config-popover--z-index:var(--more-visible, 2);--snk-field-config__config-outer-arrow--background-color:var(--color--secondary-200, #D2D3DA);--snk-field-config__draggable--padding-right:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--snk-field-config--width)}.field-config.sc-snk-field-config{width:100%;box-sizing:border-box;display:flex;align-items:center;padding-left:var(--snk-field-config--padding-left);font-weight:var(--snk-field-config--font-weight);height:var(--snk-field-config--height);border-radius:var(--snk-field-config--border-radius);font-family:var(--snk-field-config--font-family);font-size:var(--snk-field-config--font-size);border:var(--snk-field-config__input--border);border-color:var(--snk-field-config__input--border-color);background-color:var(--snk-field-config__input--background-color);color:var(--snk-field-config--color)}.field-config__config-popover.sc-snk-field-config{width:40px;margin-left:auto;z-index:var(--snk-field-config__config-popover--z-index)}.field-config__label.sc-snk-field-config{display:flex;flex-direction:row-reverse;line-height:calc(var(--snk-field-config--font-size) + 2px);gap:var(--snk-field-config__label--gap)}.field-config__label-text.sc-snk-field-config{overflow:hidden;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;height:auto;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;display:-webkit-box;-o-text-overflow:ellipsis;text-overflow:ellipsis;word-break:break-word}.field-config__label-required.sc-snk-field-config{color:var(--snk-field-config__required--color)}.field-config__add.sc-snk-field-config{display:flex;margin-left:auto;visibility:hidden;opacity:0;transition:visibility var(--snk-field-config__transition--visibility), opacity var(--snk-field-config__transition--opacity)}.field-config__options.sc-snk-field-config{display:flex;margin-left:auto;visibility:hidden;opacity:0;transition:visibility var(--snk-field-config__transition--visibility), opacity var(--snk-field-config__transition--opacity)}.field-config__options--is-active.sc-snk-field-config{display:flex;visibility:visible;opacity:1}.field-config__remove-icon.sc-snk-field-config{margin-right:-15px}.field-config.sc-snk-field-config:hover .field-config__options.sc-snk-field-config{display:flex;visibility:visible;opacity:1}.field-config.sc-snk-field-config:hover .field-config__add.sc-snk-field-config{visibility:visible;opacity:1}.field-config__draggable.sc-snk-field-config{padding-right:var(--snk-field-config__draggable--padding-right)}.field-config__config-outer-arrow.sc-snk-field-config{clip-path:polygon(50% 0, 90% 100%, 10% 100%);border-radius:0.25em 0 0 0;width:30px;height:15px;padding-top:3px;border-bottom:1px solid #FFFFFF;background-color:var(--snk-field-config__config-outer-arrow--background-color)}.field-config__config-inner-arrow.sc-snk-field-config{background-color:#FFFFFF;clip-path:polygon(50% 0, 90% 100%, 10% 100%);border-radius:0.25em 0 0 0;width:30px;height:15px}.ez-box__container.sc-snk-field-config ez-collapsible-box.sc-snk-field-config{--snk-collapsible-box__header--padding-left:6px}ez-icon.sc-snk-field-config{--snk-icon--color:var(--snk-field-config--color)}ez-popover.sc-snk-field-config{--snk-popover__box--background-color:transparent;--snk-popover__box--box-shadow:none}.field-config__options.sc-snk-field-config ez-button.sc-snk-field-config{--snk-button--background-color:transparent;--snk-button--focus--border:none;--snk-button--focus--box-shadow:none}@media screen and (min-width: 1200px){.field-config__label.sc-snk-field-config{flex-direction:row}}";
|
10
10
|
|
@@ -9,16 +9,17 @@ const ConfigStorage = require('./ConfigStorage-d024aec8.js');
|
|
9
9
|
const index$1 = require('./index-1dfc7a6e.js');
|
10
10
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
12
|
-
const ContinuousInsertUtils = require('./ContinuousInsertUtils-
|
12
|
+
const ContinuousInsertUtils = require('./ContinuousInsertUtils-fff67c94.js');
|
13
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
14
14
|
require('./DataFetcher-65879b2c.js');
|
15
|
-
require('./pesquisa-fetcher-
|
15
|
+
require('./pesquisa-fetcher-36d039c4.js');
|
16
16
|
require('./ISave-e91b70a7.js');
|
17
17
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
18
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
19
19
|
require('./dataunit-fetcher-c32fdff7.js');
|
20
20
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
21
21
|
require('./form-config-fetcher-90126e4c.js');
|
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');
|
24
25
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -2,13 +2,13 @@
|
|
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-c11d8468.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-9ad1f9c0.js');
|
9
|
-
const constants = require('./constants-
|
9
|
+
const constants = require('./constants-241934b3.js');
|
10
10
|
require('./DataFetcher-65879b2c.js');
|
11
|
-
require('./pesquisa-fetcher-
|
11
|
+
require('./pesquisa-fetcher-36d039c4.js');
|
12
12
|
const index$1 = require('./index-1dfc7a6e.js');
|
13
13
|
require('./ISave-e91b70a7.js');
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
@@ -2,23 +2,23 @@
|
|
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-00f17b65.js');
|
6
6
|
require('./index-f9e81701.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
|
-
require('./SnkFormConfigManager-
|
8
|
+
require('./SnkFormConfigManager-c11d8468.js');
|
9
9
|
require('./ConfigStorage-d024aec8.js');
|
10
10
|
require('./form-config-fetcher-90126e4c.js');
|
11
11
|
require('./DataFetcher-65879b2c.js');
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
15
|
-
require('./constants-
|
15
|
+
require('./constants-241934b3.js');
|
16
16
|
require('@sankhyalabs/ezui/dist/collection/utils/form');
|
17
17
|
require('./field-search-68e34bf4.js');
|
18
18
|
require('./taskbar-elements-9ad1f9c0.js');
|
19
19
|
require('./index-1dfc7a6e.js');
|
20
20
|
require('./index-102ba62d.js');
|
21
|
-
require('./pesquisa-fetcher-
|
21
|
+
require('./pesquisa-fetcher-36d039c4.js');
|
22
22
|
require('./ISave-e91b70a7.js');
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
24
24
|
require('./dataunit-fetcher-c32fdff7.js');
|
@@ -4,7 +4,7 @@ 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 pesquisaFetcher = require('./pesquisa-fetcher-
|
7
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-36d039c4.js');
|
8
8
|
require('./DataFetcher-65879b2c.js');
|
9
9
|
require('./index-1dfc7a6e.js');
|
10
10
|
require('./ISave-e91b70a7.js');
|
@@ -13,6 +13,7 @@ require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
13
13
|
require('./dataunit-fetcher-c32fdff7.js');
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
15
15
|
require('./form-config-fetcher-90126e4c.js');
|
16
|
+
require('./constants-241934b3.js');
|
16
17
|
require('./PrintUtils-bcaeb82f.js');
|
17
18
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
18
19
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
@@ -5,11 +5,11 @@ 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 utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
8
|
-
const constants = require('./constants-
|
8
|
+
const constants = require('./constants-241934b3.js');
|
9
9
|
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
10
10
|
require('./DataFetcher-65879b2c.js');
|
11
|
-
require('./pesquisa-fetcher-
|
12
|
-
const ContinuousInsertUtils = require('./ContinuousInsertUtils-
|
11
|
+
require('./pesquisa-fetcher-36d039c4.js');
|
12
|
+
const ContinuousInsertUtils = require('./ContinuousInsertUtils-fff67c94.js');
|
13
13
|
const index = require('./index-1dfc7a6e.js');
|
14
14
|
require('./ISave-e91b70a7.js');
|
15
15
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
@@ -19,7 +19,7 @@ require('./filter-item-type.enum-a7ffdaa6.js');
|
|
19
19
|
const formConfigFetcher = require('./form-config-fetcher-90126e4c.js');
|
20
20
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
21
21
|
const ConfigStorage = require('./ConfigStorage-d024aec8.js');
|
22
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
22
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-c11d8468.js');
|
23
23
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
24
24
|
const index$2 = require('./index-102ba62d.js');
|
25
25
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const Sortable = require('./Sortable-fb1c4cbb.js');
|
7
7
|
const core = require('@sankhyalabs/core');
|
8
|
-
const constants = require('./constants-
|
8
|
+
const constants = require('./constants-241934b3.js');
|
9
9
|
|
10
10
|
const snkTabConfigCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}.sc-snk-tab-config-h{--snk-tab-config--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--snk-tab-config--forward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>');--snk-tab-config__lower-bar--background-color:var(--color--disable-primary, #e5eaf0);--snk-tab-config__lower-bar--border:2px solid var(--color--disable-primary, #e5eaf0);--snk-tab-config__tab--color:var(--text--primary, #626e82);--snk-tab-config__tab--font-family:var(--font-pattern, \"Roboto\");--snk-tab-config__tab--font-size:var(--title--small, 14px);--snk-tab-config__tab--padding:var(--space--small, 6px) var(--space--medium, 12px);--snk-tab-config__tab-is-active--color:var(--color--primary, #008561);--snk-tab-config__tab-hover--color:var(--color--secondary, #383c45);--snk-tab-config__tab-is-focused--border:1px dashed var(--color--primary, #008561);--snk-tab-config__tab-label--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--snk-tab-config__tab-label--margin-bottom:var(--space--extra-small, 3px);--snk-tab-config__new-button-icon--color:var(--color--secondary-700, #1C1D22);--snk-tab-config__forward-button--background-color:var(--text--primary, #626e82);--snk-tab-config__forward-button-hover--background-color:var(--color--primary, #008561);--snk-tab-config__left-icon--padding-right:var(--space--small, 6px);--snk-tab-config__left-icon--color:var(--text--disable, #AFB6C0);--snk-tab-config__tab-label-disabled--color:var(--text--disable, #AFB6C0);--snk-tab-config__slot--margin-left:var(--space--small, 6px);display:flex;position:relative;width:100%;overflow:hidden}.tab-config__scroll.sc-snk-tab-config{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.tab-config__lower-bar.sc-snk-tab-config{position:absolute;left:0%;right:0%;top:91%;bottom:0%;border-radius:2px;background-color:var(--snk-tab-config__lower-bar--background-color);border:var(--snk-tab-config__lower-bar--border)}.tab-config__tab.sc-snk-tab-config{display:flex;border:none;background-color:unset;cursor:pointer;align-items:center;justify-content:center;min-width:fit-content;color:var(--snk-tab-config__tab--color);font-family:var(--snk-tab-config__tab--font-family);font-size:var(--snk-tab-config__tab--font-size);padding:var(--snk-tab-config__tab--padding)}.tab-config__tab.sc-snk-tab-config:focus,.tab-config__forward-button.sc-snk-tab-config,.tab-config__backward-button.sc-snk-tab-config{outline:none}.tab-config__tab--is-active.sc-snk-tab-config{position:relative;color:var(--snk-tab-config__tab-is-active--color)}.tab-config__tab.sc-snk-tab-config:hover{color:var(--snk-tab-config__tab-hover--color)}.tab-config__tab--is-active.sc-snk-tab-config:hover{color:var(--snk-tab-config__tab-is-active--color)}.tab-config__tab--is-active.sc-snk-tab-config::after{content:\"\";position:absolute;width:100%;height:100%;clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out;background-color:var(--snk-tab-config__tab-is-active--color)}.tab-config__tab--is-focused.sc-snk-tab-config{border:var(--snk-tab-config__tab-is-focused--border)}.tab-config__tab-label.sc-snk-tab-config{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--snk-tab-config__tab-label--text-shadow);margin-bottom:var(--snk-tab-config__tab-label--margin-bottom)}.tab-config__forward-button.sc-snk-tab-config,.tab-config__backward-button.sc-snk-tab-config{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.tab-config__new-button.sc-snk-tab-config{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.tab-config__new-button.sc-snk-tab-config ez-icon.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__new-button-icon--color)}.tab-config__backward-button.sc-snk-tab-config{left:0px;box-shadow:10px 10px 5px 5px white;background:white}.tab-config__forward-button.sc-snk-tab-config{box-shadow:10px 10px 5px 20px white;background:white}.tab-config__forward-button.sc-snk-tab-config::after,.tab-config__backward-button.sc-snk-tab-config::after{content:'';display:flex;width:10px;height:16px;background-color:var(--snk-tab-config__forward-button--background-color)}.tab-config__forward-button.sc-snk-tab-config::after{-webkit-mask-image:var(--snk-tab-config--forward-icon);mask-image:var(--snk-tab-config--forward-icon)}.tab-config__backward-button.sc-snk-tab-config::after{-webkit-mask-image:var(--snk-tab-config--backward-icon);mask-image:var(--snk-tab-config--backward-icon)}.tab-config__forward-button.sc-snk-tab-config:hover::after,.tab-config__backward-button.sc-snk-tab-config:hover::after{background-color:var(--snk-tab-config__forward-button-hover--background-color)}.tab-config__new-button.sc-snk-tab-config:hover ez-icon.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__forward-button-hover--background-color)}.tab-config__hidden.sc-snk-tab-config{display:none}.tab-config__scroll.sc-snk-tab-config::-webkit-scrollbar{display:none}.tab-config__left-icon.sc-snk-tab-config{padding-right:var(--snk-tab-config__left-icon--padding-right);--ez-icon--color:var(--snk-tab-config__left-icon--color)}.tab-config__left-icon--eye-off.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__left-icon--color)}.tab-config__right-icon.sc-snk-tab-config{visibility:hidden;padding-left:var(--snk-tab-config__left-icon--padding-right)}.tab-config__tab.sc-snk-tab-config:hover .tab-config__right-icon.sc-snk-tab-config{visibility:visible}.tab-config__tab--is-active.sc-snk-tab-config .tab-config__right-icon.sc-snk-tab-config{visibility:visible;--ez-icon--color:var(--snk-tab-config__tab-is-active--color)}.tab-config__tab.sc-snk-tab-config:hover .tab-config__right-icon.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__tab-hover--color)}.tab-config__tab--is-active.sc-snk-tab-config:hover .tab-config__right-icon.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__tab-is-active--color)}.tab-config__actions-button.sc-snk-tab-config{--ez-actions-button__btn-action--min-width:100px;visibility:hidden;opacity:0;transition:visibility 1s linear, opacity 0.3s linear}.tab-config__tab.sc-snk-tab-config:hover .tab-config__actions-button.sc-snk-tab-config{visibility:visible;opacity:1;transition:visibility 0.2s linear, opacity 0.10s linear}[data-draggable-element].sc-snk-tab-config{cursor:grab}.tab-config__tab-label-disabled.sc-snk-tab-config{color:var(--snk-tab-config__tab-label-disabled--color)}.tab-config__slot.sc-snk-tab-config{margin-left:var(--snk-tab-config__slot--margin-left)}";
|
11
11
|
|
@@ -17,6 +17,7 @@ import Workspace from "../../lib/workspace/workspace";
|
|
17
17
|
import { SnkErrorHandler } from "./errorhandler/snk-error-handler";
|
18
18
|
import RequestListenerFactory from "./request-listener/RequestListenerFactory";
|
19
19
|
import PreloadManager from "../../lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager";
|
20
|
+
import { TEMPLATES_SKELETON } from "../../lib/utils/constants";
|
20
21
|
/**
|
21
22
|
* É possível customizar as mensagens dos blocos de construção através de um pequeno modulo na estrutura da aplicação:
|
22
23
|
* - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
@@ -31,12 +32,14 @@ export class SnkApplication {
|
|
31
32
|
this._duCache = new Map();
|
32
33
|
this._duPromises = new Map();
|
33
34
|
this._requestListener = RequestListenerFactory.create({ strategy: 'request_time' });
|
34
|
-
this.
|
35
|
+
this._maxTimerAppLoading = 10000;
|
35
36
|
this._isBrowserTypeElectron = false;
|
36
37
|
this._pendingActions = new Map;
|
37
38
|
this._loadPkParameter = null;
|
38
39
|
this._isLoadedByPk = false;
|
39
40
|
this._applicationReady = false;
|
41
|
+
this._templateSkeleton = TEMPLATES_SKELETON.GRID;
|
42
|
+
this._activeScrimWindow = false;
|
40
43
|
this.enableLockManagerLoadingApp = undefined;
|
41
44
|
this.messagesBuilder = undefined;
|
42
45
|
this.configName = undefined;
|
@@ -532,12 +535,20 @@ export class SnkApplication {
|
|
532
535
|
});
|
533
536
|
PreloadManager.removeRecords(dataUnit, records);
|
534
537
|
}
|
535
|
-
getCountSkeleton(
|
536
|
-
|
537
|
-
|
538
|
-
|
538
|
+
getCountSkeleton(skeletonHeight, spacingSkeleton, headerHeight) {
|
539
|
+
headerHeight = headerHeight || 160;
|
540
|
+
const containerHeight = window.innerHeight - headerHeight;
|
541
|
+
const skeletonSpacing = spacingSkeleton || 10;
|
542
|
+
const totalHeightPerSkeleton = skeletonHeight + skeletonSpacing;
|
543
|
+
const skeletonCount = Math.floor(containerHeight / totalHeightPerSkeleton) - 1;
|
539
544
|
return skeletonCount || 1;
|
540
545
|
}
|
546
|
+
getSkeletonRandomWidth() {
|
547
|
+
const min = 30;
|
548
|
+
const max = 100;
|
549
|
+
const randomWidth = Math.floor(Math.random() * (max - min + 1)) + min;
|
550
|
+
return `${randomWidth}%`;
|
551
|
+
}
|
541
552
|
async getAuthList(auth) {
|
542
553
|
return await (new MGEAuthorization()).parseFromJSON(auth);
|
543
554
|
}
|
@@ -1019,6 +1030,8 @@ export class SnkApplication {
|
|
1019
1030
|
this.removeShortcuts();
|
1020
1031
|
if (this._lockManagerTimer)
|
1021
1032
|
clearTimeout(this._lockManagerTimer);
|
1033
|
+
if (this._scrimWindowTimer)
|
1034
|
+
clearTimeout(this._scrimWindowTimer);
|
1022
1035
|
}
|
1023
1036
|
async componentDidLoad() {
|
1024
1037
|
this.applicationLoading.emit(true);
|
@@ -1038,18 +1051,39 @@ export class SnkApplication {
|
|
1038
1051
|
this._applicationReady = true;
|
1039
1052
|
}
|
1040
1053
|
}
|
1041
|
-
async
|
1054
|
+
async showScrimApp(active) {
|
1055
|
+
if (!this.enableLockManagerLoadingApp || !this._applicationReady || !active) {
|
1056
|
+
this._activeScrimWindow = false;
|
1057
|
+
if (this._scrimWindowTimer)
|
1058
|
+
clearTimeout(this._scrimWindowTimer);
|
1059
|
+
return;
|
1060
|
+
}
|
1061
|
+
this._activeScrimWindow = true;
|
1062
|
+
this._scrimWindowTimer = setTimeout(async () => {
|
1063
|
+
if (this._activeScrimWindow) {
|
1064
|
+
this._activeScrimWindow = false;
|
1065
|
+
clearTimeout(this._scrimWindowTimer);
|
1066
|
+
}
|
1067
|
+
}, this._maxTimerAppLoading);
|
1068
|
+
}
|
1069
|
+
async changeTemplateSkeleton(templateSkeletonType) {
|
1070
|
+
this._templateSkeleton = templateSkeletonType ? templateSkeletonType : this._templateSkeleton;
|
1071
|
+
}
|
1072
|
+
async markToReload(templateSkeletonType) {
|
1042
1073
|
if (!this.enableLockManagerLoadingApp)
|
1043
1074
|
return;
|
1075
|
+
await this.changeTemplateSkeleton(templateSkeletonType);
|
1044
1076
|
this._applicationReady = false;
|
1045
1077
|
await LockManager.resetLocks(this._element, LockManagerOperation.APP_LOADING);
|
1046
1078
|
this.resolveApplicationReady();
|
1047
1079
|
}
|
1048
|
-
async addLoadingLock(forceReady = false) {
|
1080
|
+
async addLoadingLock(forceReady = false, templateSkeletonType) {
|
1049
1081
|
if (!this.enableLockManagerLoadingApp)
|
1050
1082
|
return;
|
1083
|
+
await this.changeTemplateSkeleton(templateSkeletonType);
|
1051
1084
|
if (forceReady) {
|
1052
1085
|
this._applicationReady = false;
|
1086
|
+
this._activeScrimWindow = this._applicationReady ? true : false;
|
1053
1087
|
await LockManager.resetLocks(this._element, LockManagerOperation.APP_LOADING);
|
1054
1088
|
}
|
1055
1089
|
this.resolveApplicationReady();
|
@@ -1087,7 +1121,7 @@ export class SnkApplication {
|
|
1087
1121
|
this.stopTimeoutLockManager();
|
1088
1122
|
this._applicationReady = true;
|
1089
1123
|
}
|
1090
|
-
}, this.
|
1124
|
+
}, this._maxTimerAppLoading);
|
1091
1125
|
}
|
1092
1126
|
initKeyboardManager() {
|
1093
1127
|
this._keyboardManager
|
@@ -1101,19 +1135,26 @@ export class SnkApplication {
|
|
1101
1135
|
.unbind("ctrl + d")
|
1102
1136
|
.unbind("F1");
|
1103
1137
|
}
|
1104
|
-
|
1105
|
-
renderLoadingSkeleton(template) {
|
1138
|
+
renderLoadingSkeleton() {
|
1106
1139
|
if (!this.enableLockManagerLoadingApp)
|
1107
1140
|
return;
|
1108
1141
|
if (this._isBrowserTypeElectron) {
|
1109
1142
|
return this.getSpinnerLoadingDefault();
|
1110
1143
|
}
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1144
|
+
else {
|
1145
|
+
switch (this._templateSkeleton) {
|
1146
|
+
case TEMPLATES_SKELETON.CUSTOM_TEMPLATE:
|
1147
|
+
case TEMPLATES_SKELETON.GRID:
|
1148
|
+
return this.getSkeletonTemplateGrid();
|
1149
|
+
case TEMPLATES_SKELETON.GRID_WITH_SIDEBAR:
|
1150
|
+
return this.getSkeletonTemplateGridWithSidebar();
|
1151
|
+
case TEMPLATES_SKELETON.GRID_WITH_PANEL:
|
1152
|
+
return this.getSkeletonTemplateGridWithPanel();
|
1153
|
+
case TEMPLATES_SKELETON.FORM_WITH_SIDEBAR:
|
1154
|
+
return this.getSkeletonTemplateFormWithSidebar();
|
1155
|
+
default:
|
1156
|
+
return this.getSkeletonTemplateGrid();
|
1157
|
+
}
|
1117
1158
|
}
|
1118
1159
|
}
|
1119
1160
|
getLoadingVisibilityStyle() {
|
@@ -1122,8 +1163,17 @@ export class SnkApplication {
|
|
1122
1163
|
display: this._applicationReady ? "none" : "unset"
|
1123
1164
|
};
|
1124
1165
|
}
|
1125
|
-
|
1126
|
-
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-margin--
|
1166
|
+
getSkeletonTemplateGrid() {
|
1167
|
+
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-flex ez-flex--column ez-margin--large ez-margin-top--medium" }, h("div", { class: "ez-margin-bottom--medium" }, h("ez-skeleton", { count: 1, variant: "rect", width: "20%", height: "35px", animation: "progress" })), h("div", { class: "" }, h("ez-skeleton", { count: 1, variant: "rect", width: "70%", height: "25px", animation: "progress" }))), h("div", { class: "ez-flex ez-flex--justify-start skeleton-content-column ez-margin-horizontal--large", style: { height: "calc(-105px + 100vh)" } }, [1, 2, 3, 4].map((_, index) => (h("div", { class: "ez-margin-right--large", key: index, style: { width: "25%" } }, h("ez-skeleton", { count: this.getCountSkeleton(50, 10), variant: "rect", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" })))))));
|
1168
|
+
}
|
1169
|
+
getSkeletonTemplateGridWithSidebar() {
|
1170
|
+
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-flex ez-flex--column ez-margin--large ez-margin-top--medium" }, h("div", { class: "ez-margin-bottom--medium" }, h("ez-skeleton", { count: 1, variant: "rect", width: "20%", height: "35px", animation: "progress" })), h("div", { class: "" }, h("ez-skeleton", { count: 1, variant: "rect", width: "70%", height: "25px", animation: "progress" }))), h("div", { class: "ez-flex ez-flex--justify-start skeleton-content-column ez-margin-horizontal--large", style: { height: "calc(100vh - 160px)" } }, h("div", { class: "ez-flex ez-flex--column ez-margin-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(30, 6)).fill(null).map((_, index) => h("ez-skeleton", { key: index, count: 1, variant: "rect", width: this.getSkeletonRandomWidth(), height: "30px", animation: "progress", marginBottom: "10px" }))), h("div", { class: "ez-margin-right--large", style: { width: "75%" } }, h("ez-skeleton", { count: this.getCountSkeleton(50, 10), variant: "rect", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" })))));
|
1171
|
+
}
|
1172
|
+
getSkeletonTemplateGridWithPanel() {
|
1173
|
+
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-margin--medium ez-margin-top--medium ez-padding--medium" }, h("ez-skeleton", { count: 1, variant: "rect", width: "70%", height: "25px", animation: "progress" })), h("div", { class: "ez-flex ez-margin--medium ez-margin-top--medium", style: { maxHeight: "calc(-105px + 100vh)", overflow: "hidden" } }, h("div", { class: "", style: { width: "70%", overflow: "hidden" } }, h("div", { class: "ez-padding--medium", style: { height: "50%" } }, h("ez-skeleton", { count: 1, variant: "rect", width: "100%", height: "100%", animation: "progress" })), h("div", { class: "ez-padding--medium", style: {} }, h("ez-skeleton", { count: 1, variant: "rect", width: "250px", height: "25px", animation: "progress" })), h("div", { class: "ez-flex ez-padding--medium", style: { height: "45%" } }, [1, 2].map(() => (h("div", { style: { width: "50%" } }, h("ez-skeleton", { count: 1, variant: "rect", width: "100%", height: "100%", animation: "progress" })))))), h("div", { class: "ez-flex ez-flex--column ez-padding--medium", style: { width: "30%", overflow: "hidden" } }, Array(this.getCountSkeleton(30, 10)).fill(null).map((_, index) => h("ez-skeleton", { key: index, count: 1, variant: "rect", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" }))))));
|
1174
|
+
}
|
1175
|
+
getSkeletonTemplateFormWithSidebar() {
|
1176
|
+
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-margin--medium ez-margin-top--medium ez-padding--medium" }, h("ez-skeleton", { count: 1, variant: "rect", width: "70%", height: "25px", animation: "progress" })), h("div", { class: "ez-flex ez-margin--medium ez-margin-top--medium", style: { maxHeight: "calc(-105px + 100vh)", overflow: "hidden" } }, h("div", { class: "ez-flex ez-flex--column ez-margin-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(30, 6)).fill(null).map((_, index) => h("ez-skeleton", { key: index, count: 1, variant: "rect", width: this.getSkeletonRandomWidth(), height: "30px", animation: "progress", marginBottom: "10px" }))), h("div", { class: "ez-flex ez-flex--column", style: { width: "75%" } }, h("div", { class: "ez-padding--medium", style: { width: "100%" } }, h("ez-skeleton", { count: 1, variant: "rect", width: "30%", height: "25px", animation: "progress" })), h("div", { class: "ez-padding--medium", style: { height: "45%" } }, h("div", { class: "ez-flex", style: { width: "100%", height: "100%" } }, [1, 2, 3, 4].map((_, columnIndex) => (h("div", { key: columnIndex, class: "ez-padding-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(50, 20)).fill(null).map((_, index) => h("ez-skeleton", { key: index, count: 1, variant: "rect", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" }))))))), h("div", { class: "ez-padding--medium", style: { width: "100%" } }, h("ez-skeleton", { count: 1, variant: "rect", width: "30%", height: "25px", animation: "progress" })), h("div", { class: "ez-padding--medium", style: { height: "45%" } }, h("div", { class: "ez-flex", style: { width: "100%", height: "100%" } }, [1, 2, 3, 4].map((_, columnIndex) => (h("div", { key: columnIndex, class: "ez-padding-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(50, 20)).fill(null).map((_, index) => h("ez-skeleton", { key: index, count: 1, variant: "rect", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" })))))))))));
|
1127
1177
|
}
|
1128
1178
|
getSpinnerLoadingDefault() {
|
1129
1179
|
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-flex ez-size-height--full ez-size-width--full ez-flex--justify-center ez-flex--align-items-center spinner" }, h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), h("span", { class: "ez-title ez-title--secondary ez-title--extra-large" }, "Carregando..."))));
|
@@ -1132,7 +1182,7 @@ export class SnkApplication {
|
|
1132
1182
|
return (h(Host, { style: {
|
1133
1183
|
visibility: (!this.enableLockManagerLoadingApp || this._applicationReady) ? "unset" : "hidden",
|
1134
1184
|
overflow: (!this.enableLockManagerLoadingApp || this._applicationReady) ? "unset" : "hidden"
|
1135
|
-
} }, h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.ezLoadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "small", closeOutsideClick: true, closeEsc: true }), this.renderLoadingSkeleton())));
|
1185
|
+
} }, h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.ezLoadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "small", closeOutsideClick: true, closeEsc: true }), this.renderLoadingSkeleton(), this._activeScrimWindow && (h("div", { class: "ez-scrim ez-scrim--light", style: { cursor: "progress", zIndex: "var(--scrim-z-index)" } })))));
|
1136
1186
|
}
|
1137
1187
|
static get is() { return "snk-application"; }
|
1138
1188
|
static get encapsulation() { return "scoped"; }
|
@@ -1259,7 +1309,9 @@ export class SnkApplication {
|
|
1259
1309
|
}
|
1260
1310
|
static get states() {
|
1261
1311
|
return {
|
1262
|
-
"_applicationReady": {}
|
1312
|
+
"_applicationReady": {},
|
1313
|
+
"_templateSkeleton": {},
|
1314
|
+
"_activeScrimWindow": {}
|
1263
1315
|
};
|
1264
1316
|
}
|
1265
1317
|
static get events() {
|
@@ -2685,13 +2737,39 @@ export class SnkApplication {
|
|
2685
2737
|
}]
|
2686
2738
|
}
|
2687
2739
|
},
|
2740
|
+
"showScrimApp": {
|
2741
|
+
"complexType": {
|
2742
|
+
"signature": "(active: boolean) => Promise<void>",
|
2743
|
+
"parameters": [{
|
2744
|
+
"tags": [],
|
2745
|
+
"text": ""
|
2746
|
+
}],
|
2747
|
+
"references": {
|
2748
|
+
"Promise": {
|
2749
|
+
"location": "global"
|
2750
|
+
}
|
2751
|
+
},
|
2752
|
+
"return": "Promise<void>"
|
2753
|
+
},
|
2754
|
+
"docs": {
|
2755
|
+
"text": "",
|
2756
|
+
"tags": []
|
2757
|
+
}
|
2758
|
+
},
|
2688
2759
|
"markToReload": {
|
2689
2760
|
"complexType": {
|
2690
|
-
"signature": "() => Promise<void>",
|
2691
|
-
"parameters": [
|
2761
|
+
"signature": "(templateSkeletonType?: TEMPLATES_SKELETON) => Promise<void>",
|
2762
|
+
"parameters": [{
|
2763
|
+
"tags": [],
|
2764
|
+
"text": ""
|
2765
|
+
}],
|
2692
2766
|
"references": {
|
2693
2767
|
"Promise": {
|
2694
2768
|
"location": "global"
|
2769
|
+
},
|
2770
|
+
"TEMPLATES_SKELETON": {
|
2771
|
+
"location": "import",
|
2772
|
+
"path": "../../lib/utils/constants"
|
2695
2773
|
}
|
2696
2774
|
},
|
2697
2775
|
"return": "Promise<void>"
|
@@ -2703,14 +2781,21 @@ export class SnkApplication {
|
|
2703
2781
|
},
|
2704
2782
|
"addLoadingLock": {
|
2705
2783
|
"complexType": {
|
2706
|
-
"signature": "(forceReady?: boolean) => Promise<() => void>",
|
2784
|
+
"signature": "(forceReady?: boolean, templateSkeletonType?: TEMPLATES_SKELETON) => Promise<() => void>",
|
2707
2785
|
"parameters": [{
|
2708
2786
|
"tags": [],
|
2709
2787
|
"text": ""
|
2788
|
+
}, {
|
2789
|
+
"tags": [],
|
2790
|
+
"text": ""
|
2710
2791
|
}],
|
2711
2792
|
"references": {
|
2712
2793
|
"Promise": {
|
2713
2794
|
"location": "global"
|
2795
|
+
},
|
2796
|
+
"TEMPLATES_SKELETON": {
|
2797
|
+
"location": "import",
|
2798
|
+
"path": "../../lib/utils/constants"
|
2714
2799
|
}
|
2715
2800
|
},
|
2716
2801
|
"return": "Promise<() => void>"
|
@@ -2736,8 +2821,3 @@ class PendingPromise {
|
|
2736
2821
|
this.reject = reject;
|
2737
2822
|
}
|
2738
2823
|
}
|
2739
|
-
var TEMPLATES_LOADING_SKELETON;
|
2740
|
-
(function (TEMPLATES_LOADING_SKELETON) {
|
2741
|
-
TEMPLATES_LOADING_SKELETON[TEMPLATES_LOADING_SKELETON["APPLICATION"] = 1] = "APPLICATION";
|
2742
|
-
TEMPLATES_LOADING_SKELETON[TEMPLATES_LOADING_SKELETON["GRID"] = 2] = "GRID";
|
2743
|
-
})(TEMPLATES_LOADING_SKELETON || (TEMPLATES_LOADING_SKELETON = {}));
|
@@ -55,6 +55,8 @@ function buildUserInterface(field) {
|
|
55
55
|
return UserInterface.DATETIME;
|
56
56
|
if (field['type'] === 'T')
|
57
57
|
return UserInterface.TIME;
|
58
|
+
if (field['type'] === 'I')
|
59
|
+
return UserInterface.INTEGERNUMBER;
|
58
60
|
return undefined;
|
59
61
|
}
|
60
62
|
function buildDataType(rawType) {
|
@@ -66,6 +68,8 @@ function buildDataType(rawType) {
|
|
66
68
|
return DataType.DATE;
|
67
69
|
case 'B':
|
68
70
|
return DataType.OBJECT;
|
71
|
+
case 'I':
|
72
|
+
return DataType.NUMBER;
|
69
73
|
default:
|
70
74
|
return DataType.TEXT;
|
71
75
|
}
|
@@ -12,3 +12,4 @@ export { default as GridConfigFetcher } from './http/data-fetcher/fetchers/grid-
|
|
12
12
|
export { default as ParametersFetcher } from './http/data-fetcher/fetchers/parameters-fecher';
|
13
13
|
export { default as PersonalizedFilterFetcher } from './http/data-fetcher/fetchers/personalized-filter-fetcher';
|
14
14
|
export { ResourceFetcher } from './http/data-fetcher/fetchers/resource-fetcher';
|
15
|
+
export { TEMPLATES_SKELETON } from './utils/constants';
|
@@ -103,3 +103,12 @@ export var SIMPLE_CRUD_MODE;
|
|
103
103
|
SIMPLE_CRUD_MODE[SIMPLE_CRUD_MODE["SERVER"] = 0] = "SERVER";
|
104
104
|
SIMPLE_CRUD_MODE[SIMPLE_CRUD_MODE["IN_MEMORY"] = 1] = "IN_MEMORY";
|
105
105
|
})(SIMPLE_CRUD_MODE || (SIMPLE_CRUD_MODE = {}));
|
106
|
+
// TODO: validar forma de compartilhar os templates com outros projetos
|
107
|
+
export var TEMPLATES_SKELETON;
|
108
|
+
(function (TEMPLATES_SKELETON) {
|
109
|
+
TEMPLATES_SKELETON[TEMPLATES_SKELETON["CUSTOM_TEMPLATE"] = 0] = "CUSTOM_TEMPLATE";
|
110
|
+
TEMPLATES_SKELETON[TEMPLATES_SKELETON["GRID"] = 1] = "GRID";
|
111
|
+
TEMPLATES_SKELETON[TEMPLATES_SKELETON["GRID_WITH_SIDEBAR"] = 2] = "GRID_WITH_SIDEBAR";
|
112
|
+
TEMPLATES_SKELETON[TEMPLATES_SKELETON["GRID_WITH_PANEL"] = 3] = "GRID_WITH_PANEL";
|
113
|
+
TEMPLATES_SKELETON[TEMPLATES_SKELETON["FORM_WITH_SIDEBAR"] = 4] = "FORM_WITH_SIDEBAR";
|
114
|
+
})(TEMPLATES_SKELETON || (TEMPLATES_SKELETON = {}));
|
@@ -6,6 +6,7 @@ import { UserInterface as UserInterface$1 } from '@sankhyalabs/core/dist/datauni
|
|
6
6
|
import { P as PreloadManager } from './dataunit-fetcher.js';
|
7
7
|
import './filter-item-type.enum.js';
|
8
8
|
import './form-config-fetcher.js';
|
9
|
+
import './constants.js';
|
9
10
|
import InMemoryFilterColumnDataSource from '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
|
10
11
|
import { h } from '@stencil/core/internal/client';
|
11
12
|
|
package/dist/components/ISave.js
CHANGED
@@ -57,6 +57,8 @@ function buildUserInterface(field) {
|
|
57
57
|
return UserInterface.DATETIME;
|
58
58
|
if (field['type'] === 'T')
|
59
59
|
return UserInterface.TIME;
|
60
|
+
if (field['type'] === 'I')
|
61
|
+
return UserInterface.INTEGERNUMBER;
|
60
62
|
return undefined;
|
61
63
|
}
|
62
64
|
function buildDataType(rawType) {
|
@@ -68,6 +70,8 @@ function buildDataType(rawType) {
|
|
68
70
|
return DataType.DATE;
|
69
71
|
case 'B':
|
70
72
|
return DataType.OBJECT;
|
73
|
+
case 'I':
|
74
|
+
return DataType.NUMBER;
|
71
75
|
default:
|
72
76
|
return DataType.TEXT;
|
73
77
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { C as ConfigStorage } from './ConfigStorage.js';
|
2
2
|
import { ObjectUtils, StringUtils } from '@sankhyalabs/core';
|
3
3
|
import { F as FormConfigFetcher } from './form-config-fetcher.js';
|
4
|
-
import {
|
4
|
+
import { d as TAB_NAMES } from './constants.js';
|
5
5
|
|
6
6
|
class SnkFormConfigManager {
|
7
7
|
constructor(configName, resourceID, onConfigChange, dataUnit) {
|