@sankhyalabs/sankhyablocks 8.16.0-dev.75 → 8.16.0-dev.76

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. package/dist/cjs/{ContinuousInsertUtils-b5de47db.js → ContinuousInsertUtils-fff67c94.js} +1 -0
  2. package/dist/cjs/{SnkFormConfigManager-07f747be.js → SnkFormConfigManager-c11d8468.js} +1 -1
  3. package/dist/cjs/{constants-35ddd366.js → constants-241934b3.js} +9 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +1 -0
  6. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  7. package/dist/cjs/snk-actions-button_5.cjs.entry.js +1 -1
  8. package/dist/cjs/snk-application.cjs.entry.js +70 -25
  9. package/dist/cjs/snk-attach.cjs.entry.js +1 -1
  10. package/dist/cjs/snk-config-options_3.cjs.entry.js +2 -2
  11. package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
  12. package/dist/cjs/snk-crud.cjs.entry.js +1 -1
  13. package/dist/cjs/snk-data-exporter.cjs.entry.js +1 -1
  14. package/dist/cjs/snk-detail-view.cjs.entry.js +3 -3
  15. package/dist/cjs/snk-field-config.cjs.entry.js +1 -1
  16. package/dist/cjs/snk-grid.cjs.entry.js +2 -1
  17. package/dist/cjs/{snk-guides-viewer-a651b9b8.js → snk-guides-viewer-00f17b65.js} +2 -2
  18. package/dist/cjs/snk-guides-viewer.cjs.entry.js +3 -3
  19. package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -0
  20. package/dist/cjs/snk-simple-crud.cjs.entry.js +3 -3
  21. package/dist/cjs/snk-tab-config.cjs.entry.js +1 -1
  22. package/dist/collection/components/snk-application/snk-application.css +2 -0
  23. package/dist/collection/components/snk-application/snk-application.js +108 -28
  24. package/dist/collection/lib/index.js +1 -0
  25. package/dist/collection/lib/utils/constants.js +9 -0
  26. package/dist/components/ContinuousInsertUtils.js +1 -0
  27. package/dist/components/SnkFormConfigManager.js +1 -1
  28. package/dist/components/constants.js +10 -1
  29. package/dist/components/pesquisa-grid2.js +1 -0
  30. package/dist/components/snk-actions-button2.js +1 -0
  31. package/dist/components/snk-application2.js +73 -25
  32. package/dist/components/snk-config-options2.js +1 -1
  33. package/dist/components/snk-detail-view2.js +1 -1
  34. package/dist/components/snk-form-config2.js +1 -1
  35. package/dist/components/snk-grid2.js +1 -0
  36. package/dist/components/snk-pesquisa2.js +1 -0
  37. package/dist/components/snk-simple-form-config2.js +1 -0
  38. package/dist/components/snk-tab-config2.js +1 -1
  39. package/dist/esm/{ContinuousInsertUtils-213385f5.js → ContinuousInsertUtils-2bb81687.js} +1 -0
  40. package/dist/esm/{SnkFormConfigManager-1ff928fa.js → SnkFormConfigManager-5022f87f.js} +1 -1
  41. package/dist/esm/{constants-7302ee87.js → constants-75abb876.js} +10 -1
  42. package/dist/esm/loader.js +1 -1
  43. package/dist/esm/pesquisa-grid_2.entry.js +1 -0
  44. package/dist/esm/sankhyablocks.js +1 -1
  45. package/dist/esm/snk-actions-button_5.entry.js +1 -1
  46. package/dist/esm/snk-application.entry.js +70 -25
  47. package/dist/esm/snk-attach.entry.js +1 -1
  48. package/dist/esm/snk-config-options_3.entry.js +2 -2
  49. package/dist/esm/snk-configurator.entry.js +1 -1
  50. package/dist/esm/snk-crud.entry.js +1 -1
  51. package/dist/esm/snk-data-exporter.entry.js +1 -1
  52. package/dist/esm/snk-detail-view.entry.js +3 -3
  53. package/dist/esm/snk-field-config.entry.js +1 -1
  54. package/dist/esm/snk-grid.entry.js +2 -1
  55. package/dist/esm/{snk-guides-viewer-cbd8511f.js → snk-guides-viewer-e41d53d3.js} +2 -2
  56. package/dist/esm/snk-guides-viewer.entry.js +3 -3
  57. package/dist/esm/snk-pesquisa.entry.js +1 -0
  58. package/dist/esm/snk-simple-crud.entry.js +3 -3
  59. package/dist/esm/snk-tab-config.entry.js +1 -1
  60. package/dist/sankhyablocks/{p-76041b30.entry.js → p-0af50c95.entry.js} +1 -1
  61. package/dist/sankhyablocks/{p-7a95cbc7.entry.js → p-1190411d.entry.js} +1 -1
  62. package/dist/sankhyablocks/{p-95ce311a.js → p-1d19a5b0.js} +1 -1
  63. package/dist/sankhyablocks/{p-2d3f9482.entry.js → p-23cd6abf.entry.js} +1 -1
  64. package/dist/sankhyablocks/{p-8b4fc28f.entry.js → p-2953c481.entry.js} +1 -1
  65. package/dist/sankhyablocks/{p-bfdc08f2.entry.js → p-332b6975.entry.js} +1 -1
  66. package/dist/sankhyablocks/{p-b5ebc20a.entry.js → p-34692731.entry.js} +1 -1
  67. package/dist/sankhyablocks/{p-aaef93e8.js → p-3ba431c9.js} +1 -1
  68. package/dist/sankhyablocks/{p-3b2e5822.entry.js → p-3decf7ea.entry.js} +1 -1
  69. package/dist/sankhyablocks/{p-4ec70a7b.js → p-57cbcd43.js} +1 -1
  70. package/dist/sankhyablocks/p-63e38a9e.entry.js +1 -0
  71. package/dist/sankhyablocks/{p-b738af3a.entry.js → p-85116083.entry.js} +1 -1
  72. package/dist/sankhyablocks/p-a86cef70.entry.js +1 -0
  73. package/dist/sankhyablocks/p-adf31dc8.entry.js +1 -0
  74. package/dist/sankhyablocks/{p-0d86c004.entry.js → p-c021a3a9.entry.js} +1 -1
  75. package/dist/sankhyablocks/p-dbd60c7d.js +1 -0
  76. package/dist/sankhyablocks/p-dbf2c7ea.entry.js +11 -0
  77. package/dist/sankhyablocks/p-ee97cb65.entry.js +1 -0
  78. package/dist/sankhyablocks/{p-41793e17.entry.js → p-f4ceb72c.entry.js} +1 -1
  79. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  80. package/dist/types/components/snk-application/snk-application.d.ts +14 -4
  81. package/dist/types/components.d.ts +4 -3
  82. package/dist/types/lib/index.d.ts +1 -0
  83. package/dist/types/lib/utils/constants.d.ts +7 -0
  84. package/package.json +1 -1
  85. package/dist/sankhyablocks/p-167ac365.entry.js +0 -11
  86. package/dist/sankhyablocks/p-2098a093.entry.js +0 -1
  87. package/dist/sankhyablocks/p-70a546e9.entry.js +0 -1
  88. package/dist/sankhyablocks/p-92dd432c.entry.js +0 -1
  89. package/dist/sankhyablocks/p-9f9128d3.entry.js +0 -1
  90. package/dist/sankhyablocks/p-dd37be7e.js +0 -1
@@ -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-35ddd366.js');
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,7 +6,7 @@ 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-35ddd366.js');
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
12
  require('./pesquisa-fetcher-36d039c4.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 SnkFormConfigManager = require('./SnkFormConfigManager-07f747be.js');
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
10
  require('./pesquisa-fetcher-36d039c4.js');
@@ -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 constants = require('./constants-35ddd366.js');
20
- const snkGuidesViewer = require('./snk-guides-viewer-a651b9b8.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-35ddd366.js');
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,7 +9,7 @@ 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-b5de47db.js');
12
+ const ContinuousInsertUtils = require('./ContinuousInsertUtils-fff67c94.js');
13
13
  const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
14
14
  require('./DataFetcher-65879b2c.js');
15
15
  require('./pesquisa-fetcher-36d039c4.js');
@@ -19,6 +19,7 @@ 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,11 +2,11 @@
2
2
 
3
3
  const index = require('./index-f9e81701.js');
4
4
  const core = require('@sankhyalabs/core');
5
- const SnkFormConfigManager = require('./SnkFormConfigManager-07f747be.js');
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-35ddd366.js');
9
+ const constants = require('./constants-241934b3.js');
10
10
  require('./DataFetcher-65879b2c.js');
11
11
  require('./pesquisa-fetcher-36d039c4.js');
12
12
  const index$1 = require('./index-1dfc7a6e.js');
@@ -2,17 +2,17 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkGuidesViewer = require('./snk-guides-viewer-a651b9b8.js');
5
+ const snkGuidesViewer = require('./snk-guides-viewer-00f17b65.js');
6
6
  require('./index-f9e81701.js');
7
7
  require('@sankhyalabs/core');
8
- require('./SnkFormConfigManager-07f747be.js');
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-35ddd366.js');
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');
@@ -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-35ddd366.js');
8
+ const constants = require('./constants-241934b3.js');
9
9
  const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
10
10
  require('./DataFetcher-65879b2c.js');
11
11
  require('./pesquisa-fetcher-36d039c4.js');
12
- const ContinuousInsertUtils = require('./ContinuousInsertUtils-b5de47db.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-07f747be.js');
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-35ddd366.js');
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
 
@@ -1,4 +1,6 @@
1
1
  :host {
2
+ --scrim-z-index: var(--elevation--100, 100);
3
+
2
4
  display: flex;
3
5
  flex-direction: column;
4
6
  height: 100%;
@@ -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._maxTimeLockAppLoading = 10000;
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(className, skeletonHeight, spacingSkeleton) {
536
- let containerHeight = window.innerHeight - 350;
537
- spacingSkeleton = !spacingSkeleton ? 20 : spacingSkeleton;
538
- let skeletonCount = Math.floor(containerHeight / (skeletonHeight + spacingSkeleton));
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 markToReload() {
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._maxTimeLockAppLoading);
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
- // TODO: Etapa 2 - implementar template de loading
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
- switch (template) {
1112
- case TEMPLATES_LOADING_SKELETON.APPLICATION:
1113
- case TEMPLATES_LOADING_SKELETON.GRID:
1114
- return this.getSkeletonTemplateApplication();
1115
- default:
1116
- return this.getSkeletonTemplateApplication();
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
- getSkeletonTemplateApplication() {
1126
- return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-margin--medium ez-margin-top--extra-small" }, h("ez-skeleton", { count: 1, variant: "rect", width: "100%", height: "150px", animation: "progress" })), h("div", { class: "ez-flex ez-flex--align-items-stretch skeleton-content" }, h("div", { class: "skeleton-content-left ez-margin--medium" }, h("ez-skeleton", { count: 1, variant: "rect", width: "100%", height: "calc(100% - 15px)", animation: "progress", marginBottom: "20px" })), h("div", { class: "ez-flex-item--auto skeleton-content-right ez-margin--medium" }, h("ez-skeleton", { count: this.getCountSkeleton("skeleton-content-right", 50, 20), variant: "rect", width: "100%", height: "49px", animation: "progress", marginBottom: "20px" }))), h("div", { class: "skeleton-content-footer ez-margin--medium ez-margin-top--extra-small" }, h("ez-skeleton", { count: 1, variant: "rect", width: "100%", height: "100px", animation: "progress" }))));
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 = {}));
@@ -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
 
@@ -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 { c as TAB_NAMES } from './constants.js';
4
+ import { d as TAB_NAMES } from './constants.js';
5
5
 
6
6
  class SnkFormConfigManager {
7
7
  constructor(configName, resourceID, onConfigChange, dataUnit) {
@@ -89,5 +89,14 @@ var SIMPLE_CRUD_MODE;
89
89
  SIMPLE_CRUD_MODE[SIMPLE_CRUD_MODE["SERVER"] = 0] = "SERVER";
90
90
  SIMPLE_CRUD_MODE[SIMPLE_CRUD_MODE["IN_MEMORY"] = 1] = "IN_MEMORY";
91
91
  })(SIMPLE_CRUD_MODE || (SIMPLE_CRUD_MODE = {}));
92
+ // TODO: validar forma de compartilhar os templates com outros projetos
93
+ var TEMPLATES_SKELETON;
94
+ (function (TEMPLATES_SKELETON) {
95
+ TEMPLATES_SKELETON[TEMPLATES_SKELETON["CUSTOM_TEMPLATE"] = 0] = "CUSTOM_TEMPLATE";
96
+ TEMPLATES_SKELETON[TEMPLATES_SKELETON["GRID"] = 1] = "GRID";
97
+ TEMPLATES_SKELETON[TEMPLATES_SKELETON["GRID_WITH_SIDEBAR"] = 2] = "GRID_WITH_SIDEBAR";
98
+ TEMPLATES_SKELETON[TEMPLATES_SKELETON["GRID_WITH_PANEL"] = 3] = "GRID_WITH_PANEL";
99
+ TEMPLATES_SKELETON[TEMPLATES_SKELETON["FORM_WITH_SIDEBAR"] = 4] = "FORM_WITH_SIDEBAR";
100
+ })(TEMPLATES_SKELETON || (TEMPLATES_SKELETON = {}));
92
101
 
93
- export { ACTION_CONFIG as A, CONFIG_EVENTS as C, DEFAULT_TYPE as D, KEY_EVENTS as K, ORDER_VALUES as O, REPORT_LAUNCHER_RESOURCE_ID as R, SIMPLE_CRUD_MODE as S, TAGS_BY_TYPE as T, VIEW_MODE as V, VARS_BY_TYPE as a, CONFIG_SORTABLE_EVENTS as b, TAB_NAMES as c, TYPE_ACTIONS as d };
102
+ export { ACTION_CONFIG as A, CONFIG_EVENTS as C, DEFAULT_TYPE as D, KEY_EVENTS as K, ORDER_VALUES as O, REPORT_LAUNCHER_RESOURCE_ID as R, SIMPLE_CRUD_MODE as S, TEMPLATES_SKELETON as T, VIEW_MODE as V, VARS_BY_TYPE as a, TAGS_BY_TYPE as b, CONFIG_SORTABLE_EVENTS as c, TAB_NAMES as d, TYPE_ACTIONS as e };
@@ -7,6 +7,7 @@ import '@sankhyalabs/ezui/dist/collection/utils/constants';
7
7
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
8
8
  import './filter-item-type.enum.js';
9
9
  import './form-config-fetcher.js';
10
+ import './constants.js';
10
11
 
11
12
  const pesquisaGridCss = ".sc-pesquisa-grid-h{background:var(--background--xlight, #FFF);overflow-x:auto}ez-grid.sc-pesquisa-grid{--ez-grid__container--shadow:none;--ez-grid__header--shadow:none}";
12
13
 
@@ -8,6 +8,7 @@ import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
8
8
  import './dataunit-fetcher.js';
9
9
  import './filter-item-type.enum.js';
10
10
  import './form-config-fetcher.js';
11
+ import './constants.js';
11
12
  import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo.js';
12
13
  import { R as ResourceIDUtils } from './ResourceIDUtils.js';
13
14