@sankhyalabs/sankhyablocks 1.4.0-beta.8 → 1.4.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/cjs/{constants-aebcc2f5.js → constants-9056ca9e.js} +15 -0
  2. package/dist/cjs/{index-188190ee.js → index-20e8b68a.js} +48 -2
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  5. package/dist/cjs/snk-application.cjs.entry.js +1 -1
  6. package/dist/cjs/snk-config-modal.cjs.entry.js +2 -2
  7. package/dist/cjs/snk-config-options.cjs.entry.js +139 -72
  8. package/dist/cjs/snk-configurator_6.cjs.entry.js +4 -4
  9. package/dist/cjs/snk-crud.cjs.entry.js +3 -3
  10. package/dist/cjs/snk-data-unit.cjs.entry.js +1 -1
  11. package/dist/cjs/snk-field-config_2.cjs.entry.js +2 -2
  12. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  13. package/dist/cjs/snk-filter-detail.cjs.entry.js +1 -1
  14. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
  15. package/dist/cjs/snk-filter-number.cjs.entry.js +1 -1
  16. package/dist/cjs/snk-filter-period.cjs.entry.js +1 -1
  17. package/dist/cjs/snk-filter-personalized.cjs.entry.js +3 -2
  18. package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
  19. package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
  20. package/dist/cjs/snk-form-config.cjs.entry.js +2 -2
  21. package/dist/cjs/snk-form.cjs.entry.js +1 -1
  22. package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
  23. package/dist/cjs/snk-tab-config.cjs.entry.js +2 -2
  24. package/dist/cjs/{taskbar-elements-4c2c6704.js → taskbar-elements-9a4b1e19.js} +1 -1
  25. package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
  26. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +2 -1
  27. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +2 -1
  28. package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js +139 -72
  29. package/dist/collection/lib/utils/constants.js +14 -0
  30. package/dist/components/constants.js +15 -1
  31. package/dist/components/snk-config-options2.js +139 -72
  32. package/dist/components/snk-filter-modal2.js +2 -1
  33. package/dist/components/snk-filter-personalized.js +2 -1
  34. package/dist/components/snk-form-config2.js +1 -1
  35. package/dist/components/snk-tab-config2.js +1 -1
  36. package/dist/esm/{constants-c4e3341e.js → constants-c6039d3d.js} +15 -1
  37. package/dist/esm/{index-bafb2cef.js → index-e4121713.js} +48 -2
  38. package/dist/esm/loader.js +1 -1
  39. package/dist/esm/sankhyablocks.js +1 -1
  40. package/dist/esm/snk-application.entry.js +1 -1
  41. package/dist/esm/snk-config-modal.entry.js +2 -2
  42. package/dist/esm/snk-config-options.entry.js +140 -73
  43. package/dist/esm/snk-configurator_6.entry.js +5 -5
  44. package/dist/esm/snk-crud.entry.js +3 -3
  45. package/dist/esm/snk-data-unit.entry.js +1 -1
  46. package/dist/esm/snk-field-config_2.entry.js +2 -2
  47. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  48. package/dist/esm/snk-filter-detail.entry.js +1 -1
  49. package/dist/esm/snk-filter-multi-select.entry.js +1 -1
  50. package/dist/esm/snk-filter-number.entry.js +1 -1
  51. package/dist/esm/snk-filter-period.entry.js +1 -1
  52. package/dist/esm/snk-filter-personalized.entry.js +3 -2
  53. package/dist/esm/snk-filter-search.entry.js +1 -1
  54. package/dist/esm/snk-filter-text.entry.js +1 -1
  55. package/dist/esm/snk-form-config.entry.js +2 -2
  56. package/dist/esm/snk-form.entry.js +1 -1
  57. package/dist/esm/snk-pesquisa.entry.js +1 -1
  58. package/dist/esm/snk-tab-config.entry.js +2 -2
  59. package/dist/esm/{taskbar-elements-2035b1c7.js → taskbar-elements-e2ed0536.js} +1 -1
  60. package/dist/esm/teste-pesquisa.entry.js +1 -1
  61. package/dist/sankhyablocks/{p-8cd8977c.entry.js → p-029ae4e4.entry.js} +1 -1
  62. package/dist/sankhyablocks/p-12ad2a19.entry.js +1 -0
  63. package/dist/sankhyablocks/{p-ce789145.entry.js → p-1feabfc7.entry.js} +1 -1
  64. package/dist/sankhyablocks/p-2284c850.entry.js +1 -0
  65. package/dist/sankhyablocks/{p-1963b46f.entry.js → p-2b891c4a.entry.js} +1 -1
  66. package/dist/sankhyablocks/{p-d1ae76ec.entry.js → p-2dc76d79.entry.js} +1 -1
  67. package/dist/sankhyablocks/p-366aa0f5.entry.js +1 -0
  68. package/dist/sankhyablocks/{p-ae302037.entry.js → p-36d2d9cf.entry.js} +1 -1
  69. package/dist/sankhyablocks/{p-916068ff.entry.js → p-3a276f3d.entry.js} +1 -1
  70. package/dist/sankhyablocks/{p-ccdf59eb.entry.js → p-44ce5b90.entry.js} +1 -1
  71. package/dist/sankhyablocks/{p-6c61416a.entry.js → p-6988f4a6.entry.js} +1 -1
  72. package/dist/sankhyablocks/{p-af306302.entry.js → p-776ff4d1.entry.js} +1 -1
  73. package/dist/sankhyablocks/{p-cf81e313.entry.js → p-7b4a4a50.entry.js} +1 -1
  74. package/dist/sankhyablocks/p-9ba3df4c.js +2 -0
  75. package/dist/sankhyablocks/{p-cc85ba53.entry.js → p-9dc4426d.entry.js} +1 -1
  76. package/dist/sankhyablocks/{p-ee906940.entry.js → p-a17a4fca.entry.js} +1 -1
  77. package/dist/sankhyablocks/p-a5b26df2.js +1 -0
  78. package/dist/sankhyablocks/{p-f9084ecb.entry.js → p-cc4bef9f.entry.js} +1 -1
  79. package/dist/sankhyablocks/{p-31631fb6.entry.js → p-d1ac09c9.entry.js} +1 -1
  80. package/dist/sankhyablocks/{p-ad658f44.js → p-d9fbb26f.js} +1 -1
  81. package/dist/sankhyablocks/{p-857c4735.entry.js → p-deb1f523.entry.js} +1 -1
  82. package/dist/sankhyablocks/p-e871aa92.entry.js +1 -0
  83. package/dist/sankhyablocks/{p-04ad681a.entry.js → p-e9beab79.entry.js} +1 -1
  84. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  85. package/dist/types/components/snk-form/subcomponents/snk-config-options/snk-config-options.d.ts +17 -7
  86. package/dist/types/lib/utils/constants.d.ts +14 -0
  87. package/package.json +2 -2
  88. package/dist/sankhyablocks/p-26c503a6.entry.js +0 -1
  89. package/dist/sankhyablocks/p-434e0dcf.entry.js +0 -1
  90. package/dist/sankhyablocks/p-9f2c5fac.entry.js +0 -1
  91. package/dist/sankhyablocks/p-af11b0e7.js +0 -1
  92. package/dist/sankhyablocks/p-ddb03141.js +0 -2
  93. package/dist/sankhyablocks/p-fa75fba5.entry.js +0 -1
@@ -58,12 +58,27 @@ const TYPE_ACTIONS = {
58
58
  const TAB_NAMES = {
59
59
  main: "__main"
60
60
  };
61
+ const TAGS_BY_TYPE = {
62
+ LONGTEXT: "ez-text-area",
63
+ FILE: "ez-upload",
64
+ DATE: "ez-date-input",
65
+ TIME: "ez-time",
66
+ DATETIME: "ez-date-time-input",
67
+ DEFAULT: "ez-text-input",
68
+ SWITCH: "ez-check",
69
+ CHECKBOX: "ez-check",
70
+ OPTIONSELECTOR: "ez-combo-box",
71
+ SEARCH: "ez-search",
72
+ INTEGERNUMBER: "ez-number-input",
73
+ DECIMALNUMBER: "ez-number-input"
74
+ };
61
75
 
62
76
  exports.ACTION_CONFIG = ACTION_CONFIG;
63
77
  exports.CONFIG_EVENTS = CONFIG_EVENTS;
64
78
  exports.DEFAULT_TYPE = DEFAULT_TYPE;
65
79
  exports.KEY_EVENTS = KEY_EVENTS;
66
80
  exports.TAB_NAMES = TAB_NAMES;
81
+ exports.TAGS_BY_TYPE = TAGS_BY_TYPE;
67
82
  exports.TYPE_ACTIONS = TYPE_ACTIONS;
68
83
  exports.VARS_BY_TYPE = VARS_BY_TYPE;
69
84
  exports.VIEW_MODE = VIEW_MODE;
@@ -53,6 +53,7 @@ const uniqueTime = (key, measureText) => {
53
53
  }
54
54
  };
55
55
  const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
56
+ const XLINK_NS = 'http://www.w3.org/1999/xlink';
56
57
  /**
57
58
  * Default style mode id
58
59
  */
@@ -361,6 +362,31 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
361
362
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
362
363
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
363
364
  }
365
+ else if (memberName === 'style') {
366
+ // update style attribute, css properties and values
367
+ {
368
+ for (const prop in oldValue) {
369
+ if (!newValue || newValue[prop] == null) {
370
+ if (prop.includes('-')) {
371
+ elm.style.removeProperty(prop);
372
+ }
373
+ else {
374
+ elm.style[prop] = '';
375
+ }
376
+ }
377
+ }
378
+ }
379
+ for (const prop in newValue) {
380
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
381
+ if (prop.includes('-')) {
382
+ elm.style.setProperty(prop, newValue[prop]);
383
+ }
384
+ else {
385
+ elm.style[prop] = newValue[prop];
386
+ }
387
+ }
388
+ }
389
+ }
364
390
  else if (memberName === 'key')
365
391
  ;
366
392
  else if (memberName === 'ref') {
@@ -429,16 +455,36 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
429
455
  }
430
456
  catch (e) { }
431
457
  }
458
+ /**
459
+ * Need to manually update attribute if:
460
+ * - memberName is not an attribute
461
+ * - if we are rendering the host element in order to reflect attribute
462
+ * - if it's a SVG, since properties might not work in <svg>
463
+ * - if the newValue is null/undefined or 'false'.
464
+ */
465
+ let xlink = false;
466
+ {
467
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
468
+ memberName = ln;
469
+ xlink = true;
470
+ }
471
+ }
432
472
  if (newValue == null || newValue === false) {
433
473
  if (newValue !== false || elm.getAttribute(memberName) === '') {
434
- {
474
+ if (xlink) {
475
+ elm.removeAttributeNS(XLINK_NS, memberName);
476
+ }
477
+ else {
435
478
  elm.removeAttribute(memberName);
436
479
  }
437
480
  }
438
481
  }
439
482
  else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
440
483
  newValue = newValue === true ? '' : newValue;
441
- {
484
+ if (xlink) {
485
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
486
+ }
487
+ else {
442
488
  elm.setAttribute(memberName, newValue);
443
489
  }
444
490
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-188190ee.js');
3
+ const index = require('./index-20e8b68a.js');
4
4
 
5
5
  /*
6
6
  Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const formConfigFetcher = require('./form-config-fetcher-2de7c16a.js');
8
8
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const constants = require('./constants-aebcc2f5.js');
7
+ const constants = require('./constants-9056ca9e.js');
8
8
  const configurableElementsStorage = require('./configurableElementsStorage-93459c72.js');
9
9
 
10
10
  const snkConfigModalCss = ".sc-snk-config-modal-h{--snk-config-modal__button-close--padding-left:var(--space--medium, 12px);--snk-config-modal__title--color:var(--title--primary, #2B3A54);--snk-config-modal__title--font-family:var(--font-pattern, \"Sora\");--snk-config-modal__title--font-size:var(--title--large, 20px);--snk-config-modal__title--font-weight:var(--text-weight--extra-large, 700);--snk-config-modal__subtitle--color:var(--title--primary, #2B3A54);--snk-config-modal__subtitle--font-family:var(--font-pattern, \"Sora\");--snk-config-modal__subtitle--font-size:var(--text--medium, 14px);--snk-config-modal__subtitle--font-weight:var(--text-weight--large, 600);--snk-config-modal__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-config-modal__scrollbar--width:var(--space--medium, 12px);--snk-config-modal__scrollbar--background-color-primary:var(--scrollbar--primary, #2B3A54);--snk-config-modal__scrollbar--background-color-secondary:var(--scrollbar--secondary, #E5EAF0);display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}@media screen and (min-width: 480px){.sc-snk-config-modal-h{width:359px;max-width:359px}}.snk-config-modal__button-config.sc-snk-config-modal{--ez-button--min-width:100%}.snk-config-modal__header.sc-snk-config-modal{display:flex;justify-content:space-between;align-items:center;width:100%}.snk-config-modal__title.sc-snk-config-modal{display:flex;margin:0;line-height:normal;letter-spacing:0em;text-align:left;color:var(--snk-config-modal__title--color);font-size:var(--snk-config-modal__title--font-size);font-family:var(--snk-config-modal__title--font-family);font-weight:var(--snk-config-modal__title--font-weight)}.snk-config-modal__subtitle.sc-snk-config-modal{display:flex;margin:0;padding-top:var(--space--medium);padding-bottom:var(--space--small);color:var(--snk-config-modal__subtitle--color);font-size:var(--snk-config-modal__subtitle--font-size);font-family:var(--snk-config-modal__subtitle--font-family);font-weight:var(--snk-config-modal__subtitle--font-weight)}.snk-config-modal__button-close.sc-snk-config-modal{padding-left:var(--snk-config-modal__button-close--padding-left)}.snk-config-modal__main.sc-snk-config-modal{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--snk-config-modal__scrollbar--background-color-primary) var(--snk-config-modal__scrollbar--background-color-secondary)}.snk-config-modal__main.sc-snk-config-modal::-webkit-scrollbar-track{background-color:var(--snk-config-modal__scrollbar--background-color-secondary)}.snk-config-modal__main.sc-snk-config-modal::-webkit-scrollbar-thumb{background-color:var(--snk-config-modal__scrollbar--background-color-primary);border-radius:var(--snk-config-modal__scrollbar--border-radius)}.snk-config-modal__main.sc-snk-config-modal::-webkit-scrollbar{background-color:var(--snk-config-modal__scrollbar--background-color-secondary);width:var(--snk-config-modal__scrollbar--width);max-width:var(--snk-config-modal__scrollbar--width);min-width:var(--snk-config-modal__scrollbar--width)}";
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
7
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
9
- const constants = require('./constants-aebcc2f5.js');
8
+ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
9
+ const constants = require('./constants-9056ca9e.js');
10
10
 
11
11
  const snkConfigOptionsCss = ".sc-snk-config-options-h{width:100%;border:2px solid var(--color--secondary-200);border-radius:15px}.config-options__switch-row.sc-snk-config-options{margin-top:-30px}";
12
12
 
@@ -36,71 +36,20 @@ const SnkConfigOptions = class {
36
36
  enabledValueDefault() {
37
37
  var _a, _b, _c;
38
38
  const field = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField((_b = this.fieldConfig) === null || _b === void 0 ? void 0 : _b.name);
39
- if (((_c = field === null || field === void 0 ? void 0 : field.properties) === null || _c === void 0 ? void 0 : _c.allowDefault) === "true" && constants.VARS_BY_TYPE.UserInterface.hasOwnProperty(field === null || field === void 0 ? void 0 : field.userInterface)) {
39
+ const allowDefault = (_c = field === null || field === void 0 ? void 0 : field.properties) === null || _c === void 0 ? void 0 : _c.allowDefault;
40
+ const hasVariableVar = constants.VARS_BY_TYPE.UserInterface.hasOwnProperty(field === null || field === void 0 ? void 0 : field.userInterface);
41
+ if ((allowDefault == undefined || allowDefault === "true") && hasVariableVar) {
40
42
  return true;
41
43
  }
42
44
  return false;
43
45
  }
44
- getFieldProperties(field) {
45
- var _a;
46
- if (field != undefined) {
47
- return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(field);
48
- }
49
- }
50
- getMessage(key, params) {
51
- return this._application.messagesBuilder.getMessage(key, params);
52
- }
53
- getDefaultType() {
54
- var _a;
55
- return (_a = this.fieldConfig.defaultValue.type) !== null && _a !== void 0 ? _a : constants.DEFAULT_TYPE.fixed;
56
- }
57
- getValidatedValue(fieldValue) {
46
+ isAllowDefault() {
58
47
  var _a, _b;
59
- if (fieldValue == undefined) {
60
- return;
61
- }
62
- const field = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField((_b = this.fieldConfig) === null || _b === void 0 ? void 0 : _b.name);
63
- const dataType = field === null || field === void 0 ? void 0 : field.dataType;
64
- if (dataType == undefined) {
65
- return;
66
- }
67
- const value = dataType !== DataType.DataType.OBJECT && dataType !== DataType.DataType.DATE
68
- && typeof fieldValue === "object" && "value" in fieldValue
69
- ? fieldValue.value
70
- : fieldValue;
71
- return dataType === DataType.DataType.OBJECT ? JSON.stringify(value) : value;
72
- }
73
- onChange(evt) {
74
- this.fieldConfig.defaultValue.value = this.getValidatedValue(evt === null || evt === void 0 ? void 0 : evt.detail);
75
- this.configOptionsChanged.emit(this.fieldConfig);
76
- }
77
- onSearch(searchArgument) {
78
- if (this._application != undefined && this.fieldConfig != undefined) {
79
- return this._application.executeSearch(searchArgument, this.fieldConfig.name, this.dataUnit);
48
+ const allowDefault = (_b = (_a = this._fieldProperties) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.allowDefault;
49
+ if (allowDefault == undefined) {
50
+ return true;
80
51
  }
81
- }
82
- loadDataField() {
83
- this._element.querySelectorAll("[data-field-name]")
84
- .forEach((field) => {
85
- var _a, _b, _c, _d;
86
- field.enabled = ((_b = (_a = this._fieldProperties) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.allowDefault) === "true";
87
- if (field.enabled) {
88
- const value = this.fieldConfig.defaultValue.value;
89
- if (value != undefined) {
90
- const fieldName = field.dataset.fieldName;
91
- const dataType = (_d = (_c = this.dataUnit) === null || _c === void 0 ? void 0 : _c.getField(fieldName)) === null || _d === void 0 ? void 0 : _d.dataType;
92
- field.value = DataType.getConvertedValue(dataType, value);
93
- }
94
- field.addEventListener(constants.CONFIG_EVENTS.fieldChanged, (evt) => {
95
- return this.onChange(evt);
96
- });
97
- if (field.tagName === "EZ-SEARCH") {
98
- field.optionLoader = (searchArgument) => {
99
- return this.onSearch(searchArgument);
100
- };
101
- }
102
- }
103
- });
52
+ return allowDefault === "true";
104
53
  }
105
54
  loadDefaultValue() {
106
55
  var _a;
@@ -122,6 +71,19 @@ const SnkConfigOptions = class {
122
71
  this._defaultType = this.fieldConfig.defaultValue.type;
123
72
  }
124
73
  }
74
+ getFieldProperties(field) {
75
+ var _a;
76
+ if (field != undefined) {
77
+ return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(field);
78
+ }
79
+ }
80
+ getMessage(key, params) {
81
+ return this._application.messagesBuilder.getMessage(key, params);
82
+ }
83
+ getDefaultType() {
84
+ var _a;
85
+ return (_a = this.fieldConfig.defaultValue.type) !== null && _a !== void 0 ? _a : constants.DEFAULT_TYPE.fixed;
86
+ }
125
87
  getEnabledByProperty(property) {
126
88
  const properties = this._fieldProperties;
127
89
  if (properties != undefined && properties[property] === true) {
@@ -136,25 +98,130 @@ const SnkConfigOptions = class {
136
98
  }
137
99
  return this.fieldConfig[property];
138
100
  }
101
+ getValidatedValue(fieldValue) {
102
+ var _a, _b;
103
+ if (fieldValue == undefined) {
104
+ return;
105
+ }
106
+ const field = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField((_b = this.fieldConfig) === null || _b === void 0 ? void 0 : _b.name);
107
+ const dataType = field === null || field === void 0 ? void 0 : field.dataType;
108
+ if (dataType == undefined) {
109
+ return;
110
+ }
111
+ const value = (fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.waitmessage) != undefined ? undefined :
112
+ dataType !== DataType.DataType.OBJECT && dataType !== DataType.DataType.DATE
113
+ && typeof fieldValue === "object"
114
+ ? fieldValue.value
115
+ : fieldValue;
116
+ return dataType === DataType.DataType.OBJECT ? JSON.stringify(value) : value;
117
+ }
118
+ buildInputDefault({ value, enabled, label, name, required, userInterface }, properties = undefined, mode = undefined) {
119
+ let options;
120
+ let precision = 0;
121
+ let prettyPrecision = 0;
122
+ const TagName = userInterface == undefined || constants.TAGS_BY_TYPE[userInterface] == undefined
123
+ ? constants.TAGS_BY_TYPE.DEFAULT
124
+ : constants.TAGS_BY_TYPE[userInterface];
125
+ if (userInterface === core.UserInterface.OPTIONSELECTOR) {
126
+ const prop = properties === null || properties === void 0 ? void 0 : properties.options;
127
+ if (typeof prop === "string") {
128
+ const parsed = core.ObjectUtils.stringToObject(prop);
129
+ options = Object.keys(parsed).map(key => { return { value: key, label: parsed[key] }; });
130
+ }
131
+ else {
132
+ options = prop;
133
+ }
134
+ }
135
+ else if (userInterface === core.UserInterface.DECIMALNUMBER) {
136
+ precision = Number((properties === null || properties === void 0 ? void 0 : properties.precision) || 2);
137
+ prettyPrecision = Number((properties === null || properties === void 0 ? void 0 : properties.prettyPrecision) || precision);
138
+ }
139
+ return index.h(TagName, Object.assign({ value: value, enabled: enabled, label: label, "data-field-name": name, key: name, onEzChange: (evt) => this.onChange(evt === null || evt === void 0 ? void 0 : evt.detail) }, (this.getConditionalAttributes(userInterface, required, options, precision, prettyPrecision, mode))));
140
+ }
141
+ getConditionalAttributes(userInterface, required, options, precision, prettyPrecision, mode) {
142
+ switch (userInterface) {
143
+ case core.UserInterface.SEARCH:
144
+ return {
145
+ suppressEmptyOption: required,
146
+ optionLoader: (searchArgument) => this.onSearch(searchArgument)
147
+ };
148
+ case core.UserInterface.OPTIONSELECTOR:
149
+ return {
150
+ suppressEmptyOption: required,
151
+ options
152
+ };
153
+ case core.UserInterface.CHECKBOX:
154
+ case core.UserInterface.SWITCH:
155
+ return {
156
+ mode
157
+ };
158
+ case core.UserInterface.INTEGERNUMBER:
159
+ case core.UserInterface.DECIMALNUMBER:
160
+ return {
161
+ precision,
162
+ prettyPrecision,
163
+ onEzStartChange: (evt) => this.onChange(evt === null || evt === void 0 ? void 0 : evt.detail)
164
+ };
165
+ case core.UserInterface.DATE:
166
+ case core.UserInterface.DATETIME:
167
+ case core.UserInterface.TIME:
168
+ return {
169
+ onEzStartChange: (evt) => this.onChange(evt === null || evt === void 0 ? void 0 : evt.detail)
170
+ };
171
+ default:
172
+ return {};
173
+ }
174
+ }
175
+ onChange(fieldValue) {
176
+ this.fieldConfig.defaultValue.value = this.getValidatedValue(fieldValue);
177
+ this.configOptionsChanged.emit(this.fieldConfig);
178
+ }
179
+ onSearch(searchArgument) {
180
+ if (this._application != undefined && this.fieldConfig != undefined) {
181
+ return this._application.executeSearch(searchArgument, this.fieldConfig.name, this.dataUnit);
182
+ }
183
+ }
184
+ buildField(field) {
185
+ const { config, descriptor } = field;
186
+ const { name, label, readOnly, required, defaultValue } = config;
187
+ const { userInterface, properties } = descriptor;
188
+ const enabled = (properties === null || properties === void 0 ? void 0 : properties.allowDefault) != undefined ? properties.allowDefault === "true" : !readOnly;
189
+ let value;
190
+ if (enabled) {
191
+ value = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value;
192
+ if (value != undefined) {
193
+ value = DataType.getConvertedValue(descriptor === null || descriptor === void 0 ? void 0 : descriptor.dataType, value);
194
+ }
195
+ }
196
+ const configField = { value, enabled, label, name, required, userInterface };
197
+ switch (userInterface) {
198
+ case core.UserInterface.SWITCH:
199
+ return this.buildInputDefault(configField, undefined, utils.CheckMode.SWITCH);
200
+ case core.UserInterface.CHECKBOX:
201
+ return this.buildInputDefault(configField, undefined, utils.CheckMode.REGULAR);
202
+ case core.UserInterface.OPTIONSELECTOR:
203
+ case core.UserInterface.DECIMALNUMBER:
204
+ return this.buildInputDefault(configField, properties);
205
+ default:
206
+ return this.buildInputDefault(configField);
207
+ }
208
+ }
139
209
  componentWillLoad() {
140
210
  var _a;
141
- this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
142
211
  this.loadDefaultValue();
212
+ this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
143
213
  this._fieldProperties = this.getFieldProperties((_a = this.fieldConfig) === null || _a === void 0 ? void 0 : _a.name);
144
214
  }
145
- componentDidRender() {
146
- this.loadDataField();
147
- }
148
215
  render() {
149
- var _a, _b, _c, _d;
150
- return (index.h(index.Host, null, index.h("div", { id: this.idConfig }, index.h("div", { class: "ez-row ez-padding--medium" }, index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, index.h("ez-text-input", { label: this.getMessage("snkConfigOptions.label.nameField"), value: (_a = this.fieldConfig) === null || _a === void 0 ? void 0 : _a.label, onEzChange: (evt) => { this.fieldConfig.label = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } })), index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, index.h("ez-combo-box", { label: this.getMessage("snkConfigOptions.label.typeValueDefault"), suppressEmptyOption: true, enabled: ((_c = (_b = this._fieldProperties) === null || _b === void 0 ? void 0 : _b.properties) === null || _c === void 0 ? void 0 : _c.allowDefault) === "true", onEzChange: (evt) => { var _a; return this.onConfigDefault((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); }, value: this.getDefaultType() }, index.h("option", { value: constants.DEFAULT_TYPE.fixed }, this.getMessage("snkConfigOptions.options.valueFixed")), index.h("option", { value: constants.DEFAULT_TYPE.variable }, this.getMessage("snkConfigOptions.options.variable")))), index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, this._defaultType === constants.DEFAULT_TYPE.variable ?
151
- index.h("ez-combo-box", { label: this.getMessage("snkConfigOptions.label.valueDefault"), enabled: this.enabledValueDefault(), onEzChange: (evt) => { var _a; this.fieldConfig.defaultValue.value = (_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value; this.configOptionsChanged.emit(this.fieldConfig); }, value: this.fieldConfig.defaultValue.value, options: this.buildOptions() })
216
+ var _a, _b;
217
+ return (index.h(index.Host, null, index.h("div", { id: this.idConfig }, index.h("div", { class: "ez-row ez-padding--medium" }, index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, index.h("ez-text-input", { label: this.getMessage("snkConfigOptions.label.nameField"), value: (_a = this.fieldConfig) === null || _a === void 0 ? void 0 : _a.label, onEzChange: (evt) => { this.fieldConfig.label = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } })), index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, index.h("ez-combo-box", { label: this.getMessage("snkConfigOptions.label.typeValueDefault"), suppressEmptyOption: true, enabled: this.enabledValueDefault(), onEzChange: (evt) => { var _a; return this.onConfigDefault((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); }, value: this.getDefaultType() }, index.h("option", { value: constants.DEFAULT_TYPE.fixed }, this.getMessage("snkConfigOptions.options.valueFixed")), index.h("option", { value: constants.DEFAULT_TYPE.variable }, this.getMessage("snkConfigOptions.options.variable")))), index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, this._defaultType === constants.DEFAULT_TYPE.variable ?
218
+ index.h("ez-combo-box", { label: this.getMessage("snkConfigOptions.label.valueDefault"), enabled: this.isAllowDefault(), onEzChange: (evt) => { var _a; this.fieldConfig.defaultValue.value = (_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value; this.configOptionsChanged.emit(this.fieldConfig); }, value: this.fieldConfig.defaultValue.value, options: this.buildOptions() })
152
219
  :
153
- ((_d = this._fieldProperties) === null || _d === void 0 ? void 0 : _d.userInterface) &&
154
- utils.formFieldBuilder({
220
+ ((_b = this._fieldProperties) === null || _b === void 0 ? void 0 : _b.userInterface) &&
221
+ this.buildField({
155
222
  descriptor: this._fieldProperties,
156
223
  config: this.fieldConfig
157
- }).$children$)), index.h("div", { class: "ez-row ez-padding--medium config-options__switch-row" }, index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, index.h("ez-check", { mode: "switch", label: this.getMessage("snkConfigOptions.label.clearDuplicate"), value: this.fieldConfig.cleanOnCopy, onEzChange: (evt) => { this.fieldConfig.cleanOnCopy = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } })), index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, index.h("ez-check", { mode: "switch", label: this.getMessage("snkConfigOptions.label.requiredField"), enabled: this.getEnabledByProperty("required"), value: this.getValueByProperty("required"), onEzChange: (evt) => { this.fieldConfig.required = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } })), index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, index.h("ez-check", { mode: "switch", label: this.getMessage("snkConfigOptions.label.protectedField"), enabled: this.getEnabledByProperty("readOnly"), value: this.getValueByProperty("readOnly"), onEzChange: (evt) => { this.fieldConfig.readOnly = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } }))))));
224
+ }))), index.h("div", { class: "ez-row ez-padding--medium config-options__switch-row" }, index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, index.h("ez-check", { mode: utils.CheckMode.SWITCH, label: this.getMessage("snkConfigOptions.label.clearDuplicate"), value: this.fieldConfig.cleanOnCopy, onEzChange: (evt) => { this.fieldConfig.cleanOnCopy = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } })), index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, index.h("ez-check", { mode: utils.CheckMode.SWITCH, label: this.getMessage("snkConfigOptions.label.requiredField"), enabled: this.getEnabledByProperty("required"), value: this.getValueByProperty("required"), onEzChange: (evt) => { this.fieldConfig.required = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } })), index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, index.h("ez-check", { mode: utils.CheckMode.SWITCH, label: this.getMessage("snkConfigOptions.label.protectedField"), enabled: this.getEnabledByProperty("readOnly"), value: this.getValueByProperty("readOnly"), onEzChange: (evt) => { this.fieldConfig.readOnly = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } }))))));
158
225
  }
159
226
  get _element() { return index.getElement(this); }
160
227
  };
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
- const constants = require('./constants-aebcc2f5.js');
8
+ const constants = require('./constants-9056ca9e.js');
9
9
  const configurableElementsStorage = require('./configurableElementsStorage-93459c72.js');
10
10
  const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
11
11
  const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
12
12
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
13
- const taskbarElements = require('./taskbar-elements-4c2c6704.js');
13
+ const taskbarElements = require('./taskbar-elements-9a4b1e19.js');
14
14
 
15
15
  const GRID_MODE = constants.VIEW_MODE.grid;
16
16
  const FORM_MODE = constants.VIEW_MODE.form;
@@ -967,7 +967,7 @@ const SnkFilterModal = class {
967
967
  }
968
968
  buildItems(list) {
969
969
  return list.map(item => {
970
- return (index.h("button", { onClick: () => this.updateValue(item.id), class: "ez-padding--medium sc-snk-filter-bar snk-filter-bar__filter-modal-item ez-align--middle ez-margin-bottom--small" }, index.h("ez-check", { id: `checkbox_${item.id}`, tabIndex: "-1", class: "sc-snk-filter-bar snk-filter-bar__filter-modal-item__check", onEzChange: evt => this.updateValue(item.id, evt.detail), enabled: item.enabled, value: item.active, mode: "switch" }), index.h("div", { class: "ez-text ez-title--primary ez-text--medium ez-margin-left--medium sc-snk-filter-bar snk-filter-bar__filter-modal-item__label" }, item.label)));
970
+ return (index.h("button", { onClick: () => this.updateValue(item.id), class: "ez-padding--medium sc-snk-filter-bar snk-filter-bar__filter-modal-item ez-align--middle ez-margin-bottom--small" }, index.h("ez-check", { id: `checkbox_${item.id}`, tabIndex: "-1", class: "sc-snk-filter-bar snk-filter-bar__filter-modal-item__check", onEzChange: evt => this.updateValue(item.id, evt.detail), enabled: item.enabled, value: item.active, mode: utils.CheckMode.SWITCH }), index.h("div", { class: "ez-text ez-title--primary ez-text--medium ez-margin-left--medium sc-snk-filter-bar snk-filter-bar__filter-modal-item__label" }, item.label)));
971
971
  });
972
972
  }
973
973
  itemKeyBoardSelect(event, item) {
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const constants = require('./constants-aebcc2f5.js');
8
- const taskbarElements = require('./taskbar-elements-4c2c6704.js');
7
+ const constants = require('./constants-9056ca9e.js');
8
+ const taskbarElements = require('./taskbar-elements-9a4b1e19.js');
9
9
 
10
10
  const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%}";
11
11
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const SnkMessageBuilder = require('./SnkMessageBuilder-6c2f7bcd.js');
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const constants = require('./constants-aebcc2f5.js');
7
+ const constants = require('./constants-9056ca9e.js');
8
8
  const taskbarProcessor = require('./taskbar-processor-6bd0d35c.js');
9
9
  const configurableElementsStorage = require('./configurableElementsStorage-93459c72.js');
10
10
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
7
7
 
8
8
  const SnkFilterBinarySelect = class {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
7
7
  const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
7
7
 
8
8
  const SnkFilterMultiSelect = class {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
7
7
 
8
8
  const SnkFilterPeriod = class {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
7
7
 
8
8
  const SnkFilterPeriod = class {
@@ -2,9 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
8
+ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
9
  const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
9
10
 
10
11
  const SnkFilterPersonalized = class {
@@ -55,7 +56,7 @@ const SnkFilterPersonalized = class {
55
56
  return index.h("ez-search", { id: elemId, suppressEmptyOption: true, value: this.getValue(param, index$1), onEzChange: evt => this.setValue(index$1, evt.detail), label: param.label, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument, param) });
56
57
  case core.UserInterface.SWITCH:
57
58
  case core.UserInterface.CHECKBOX:
58
- const mode = core.UserInterface.SWITCH === param.type ? "switch" : "regular";
59
+ const mode = core.UserInterface.SWITCH === param.type ? utils.CheckMode.SWITCH : utils.CheckMode.REGULAR;
59
60
  return index.h("ez-check", { id: elemId, class: "ez-padding-bottom--medium", mode: mode, value: this.getValue(param, index$1), label: param.label, onEzChange: evt => this.setValue(index$1, evt.detail) });
60
61
  case core.UserInterface.DECIMALNUMBER:
61
62
  case core.UserInterface.INTEGERNUMBER:
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
 
7
7
  const SnkFilterText = class {
8
8
  constructor(hostRef) {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const draggable_bundle = require('./draggable.bundle-82a25c06.js');
7
7
  const core = require('@sankhyalabs/core');
8
8
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
9
- const constants = require('./constants-aebcc2f5.js');
9
+ const constants = require('./constants-9056ca9e.js');
10
10
  const formConfigFetcher = require('./form-config-fetcher-2de7c16a.js');
11
11
  require('./_commonjsHelpers-537d719a.js');
12
12
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const configurableElementsStorage = require('./configurableElementsStorage-93459c72.js');
8
8
  const taskbarProcessor = require('./taskbar-processor-6bd0d35c.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-188190ee.js');
5
+ const index = require('./index-20e8b68a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  const snkPesquisaCss = ".sc-snk-pesquisa-h{--snk-pesquisa--font-size:var(--text--medium, 14px);--snk-pesquisa--font-family:var(--font-pattern, Arial);--snk-pesquisa--font-weight:var(--text-weight--medium, 400);--snk-pesquisa__records--color:var(--text--primary, #626e82);--snk-pesquisa__records--padding-vertical:var(--space--medium, 12px);--snk-pesquisa__content--padding-right:var(--space--small, 6px);--snk-pesquisa__content-scrollbar--background-color-primary:var(--scrollbar--primary, #2B3A54);--snk-pesquisa__content-scrollbar--background-color-secondary:var(--scrollbar--secondary, #E5EAF0);--snk-pesquisa__content-scrollbar--border-radius:var(--border--radius-small, 6px);--snk-pesquisa__content-scrollbar--width:var(--space--medium, 12px);--snk-pesquisa__btn--color:var(--title--primary, #2B3A54);--snk-pesquisa__btn-disabled--color:var(--text--disable, #AFB6C0);--snk-pesquisa__btn-hover--color:var(--color--primary, #4e4e4e);max-height:100%;height:100%;display:flex;flex-direction:column;overflow-y:auto}.snk-pesquisa.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%}.snk-pesquisa__input.sc-snk-pesquisa{display:flex;width:100%;box-sizing:border-box;padding-top:4px;padding-right:4px}.snk-pesquisa__input.sc-snk-pesquisa ez-icon.sc-snk-pesquisa{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.snk-pesquisa__content.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--snk-pesquisa__content-scrollbar--background-color-primary) var(--snk-pesquisa__content-scrollbar--background-color-secondary);padding-right:var(--snk-pesquisa__content--padding-right)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-track{background-color:var(--snk-pesquisa__content-scrollbar--background-color-secondary);border-radius:var(--snk-pesquisa__content-scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb{background-color:var(--snk-pesquisa__content-scrollbar--background-color-primary);border-radius:var(--snk-pesquisa__content-scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar{background-color:var(--snk-pesquisa__content-scrollbar--background-color-secondary);width:var(--snk-pesquisa__content-scrollbar--width);max-width:var(--snk-pesquisa__content-scrollbar--width);min-width:var(--snk-pesquisa__content-scrollbar--width)}.snk-pesquisa__records.sc-snk-pesquisa{font-family:var(--snk-pesquisa--font-family);font-weight:var(--snk-pesquisa--font-weight);font-size:var(--snk-pesquisa--font-size);color:var(--snk-pesquisa__records--color);padding-bottom:var(--snk-pesquisa__records--padding-vertical);padding-top:var(--snk-pesquisa__records--padding-vertical)}.snk-pesquisa__btn.sc-snk-pesquisa{outline:none;border:none;background:none;cursor:pointer;color:var(--snk-pesquisa__btn--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled:hover{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:hover{color:var(--snk-pesquisa__btn-hover--color)}";