@sankhyalabs/sankhyablocks 5.5.0 → 5.7.0

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 (224) hide show
  1. package/dist/cjs/{SnkMessageBuilder-26da04f7.js → SnkMessageBuilder-056d1c24.js} +23 -1
  2. package/dist/cjs/{filter-item-type.enum-3daf58d3.js → filter-item-type.enum-aa823a00.js} +1 -0
  3. package/dist/cjs/filter-type.enum-b14ce507.js +11 -0
  4. package/dist/cjs/index-8d94b7e0.js +7 -0
  5. package/dist/cjs/index-de79181a.js +201 -0
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/presentationMode-52ec3bdd.js +7 -0
  8. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  9. package/dist/cjs/snk-application.cjs.entry.js +1 -1
  10. package/dist/cjs/snk-attach.cjs.entry.js +2 -1
  11. package/dist/cjs/snk-crud.cjs.entry.js +2 -1
  12. package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -2
  13. package/dist/cjs/{snk-data-unit-c43df27b.js → snk-data-unit-289081c4.js} +1 -1
  14. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
  15. package/dist/cjs/snk-detail-view.cjs.entry.js +4 -3
  16. package/dist/cjs/snk-expression-item.cjs.entry.js +213 -0
  17. package/dist/cjs/snk-filter-bar.cjs.entry.js +52 -140
  18. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +8 -1
  19. package/dist/cjs/snk-filter-detail.cjs.entry.js +1 -1
  20. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +435 -0
  21. package/dist/cjs/snk-filter-item.cjs.entry.js +1 -1
  22. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +66 -0
  23. package/dist/cjs/snk-filter-modal.cjs.entry.js +72 -49
  24. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +3 -1
  25. package/dist/cjs/snk-filter-number.cjs.entry.js +3 -1
  26. package/dist/cjs/snk-filter-period.cjs.entry.js +11 -2
  27. package/dist/cjs/snk-filter-personalized.cjs.entry.js +3 -1
  28. package/dist/cjs/snk-filter-search.cjs.entry.js +3 -1
  29. package/dist/cjs/snk-filter-text.cjs.entry.js +2 -0
  30. package/dist/cjs/snk-grid.cjs.entry.js +3 -2
  31. package/dist/cjs/{snk-guides-viewer-e6a65393.js → snk-guides-viewer-9784c527.js} +1 -1
  32. package/dist/cjs/snk-guides-viewer.cjs.entry.js +3 -2
  33. package/dist/cjs/snk-personalized-filter.cjs.entry.js +126 -0
  34. package/dist/cjs/snk-simple-bar_2.cjs.entry.js +2 -1
  35. package/dist/cjs/snk-taskbar.cjs.entry.js +2 -1
  36. package/dist/cjs/taskbar-elements-bc2598f9.js +118 -0
  37. package/dist/collection/collection-manifest.json +3 -0
  38. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/presentationMode.js +5 -0
  39. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +47 -0
  40. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +19 -0
  41. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +19 -0
  42. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +50 -1
  43. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +19 -0
  44. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +19 -0
  45. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +19 -0
  46. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +1 -0
  47. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +31 -2
  48. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +116 -156
  49. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.css +4 -0
  50. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +115 -0
  51. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +19 -142
  52. package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js +7 -0
  53. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +36 -0
  54. package/dist/collection/components/snk-filter-bar/utils/filters-mock.js +315 -0
  55. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js +62 -69
  56. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.css +4 -0
  57. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +87 -0
  58. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js +34 -0
  59. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.css +97 -0
  60. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +298 -0
  61. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js +2 -2
  62. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +63 -0
  63. package/dist/collection/lib/message/SnkMessageBuilder.js +2 -0
  64. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +9 -1
  65. package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js +12 -0
  66. package/dist/collection/lib/store/index.js +2 -1
  67. package/dist/components/SnkMessageBuilder.js +23 -1
  68. package/dist/components/filter-item-type.enum.js +1 -0
  69. package/dist/components/index.d.ts +3 -0
  70. package/dist/components/index.js +3 -0
  71. package/dist/components/index2.js +1 -1
  72. package/dist/components/index3.js +199 -0
  73. package/dist/components/presentationMode.js +7 -0
  74. package/dist/components/snk-crud.js +22 -34
  75. package/dist/components/snk-data-exporter2.js +1 -1
  76. package/dist/components/snk-detail-view2.js +24 -46
  77. package/dist/components/snk-expression-item.d.ts +11 -0
  78. package/dist/components/snk-expression-item.js +6 -0
  79. package/dist/components/snk-expression-item2.js +241 -0
  80. package/dist/components/snk-filter-bar2.js +57 -157
  81. package/dist/components/snk-filter-binary-select.js +9 -1
  82. package/dist/components/snk-filter-field-search.js +1 -200
  83. package/dist/{esm/snk-filter-field-search.entry.js → components/snk-filter-field-search2.js} +65 -38
  84. package/dist/components/snk-filter-list.js +171 -1
  85. package/dist/components/snk-filter-modal-item.d.ts +11 -0
  86. package/dist/components/snk-filter-modal-item.js +6 -0
  87. package/dist/components/snk-filter-modal-item2.js +85 -0
  88. package/dist/components/snk-filter-modal.js +118 -1
  89. package/dist/components/snk-filter-multi-select.js +3 -1
  90. package/dist/components/snk-filter-number.js +3 -1
  91. package/dist/components/snk-filter-param-config.js +1 -273
  92. package/dist/{esm/snk-filter-param-config.entry.js → components/snk-filter-param-config2.js} +35 -11
  93. package/dist/components/snk-filter-period.js +12 -2
  94. package/dist/components/snk-filter-personalized.js +3 -1
  95. package/dist/components/snk-filter-search.js +3 -1
  96. package/dist/components/snk-filter-text.js +3 -1
  97. package/dist/components/snk-grid2.js +12 -23
  98. package/dist/components/snk-personalized-filter.d.ts +11 -0
  99. package/dist/components/snk-personalized-filter.js +158 -0
  100. package/dist/components/snk-taskbar2.js +3 -197
  101. package/dist/esm/{SnkMessageBuilder-7a9392e6.js → SnkMessageBuilder-23272e07.js} +23 -1
  102. package/dist/esm/{filter-item-type.enum-a79b2fa8.js → filter-item-type.enum-5028ed3f.js} +1 -0
  103. package/dist/esm/filter-type.enum-a80c1b6b.js +9 -0
  104. package/dist/esm/{index-6519a79e.js → index-507e19ec.js} +1 -1
  105. package/dist/esm/index-620ac460.js +7 -0
  106. package/dist/esm/index-8efbf198.js +199 -0
  107. package/dist/esm/loader.js +1 -1
  108. package/dist/esm/presentationMode-783bbf9d.js +7 -0
  109. package/dist/esm/sankhyablocks.js +1 -1
  110. package/dist/esm/snk-application.entry.js +1 -1
  111. package/dist/esm/snk-attach.entry.js +3 -2
  112. package/dist/esm/snk-crud.entry.js +3 -2
  113. package/dist/esm/snk-data-exporter.entry.js +3 -3
  114. package/dist/esm/{snk-data-unit-f9e4c694.js → snk-data-unit-34dc5371.js} +1 -1
  115. package/dist/esm/snk-data-unit.entry.js +2 -2
  116. package/dist/esm/snk-detail-view.entry.js +5 -4
  117. package/dist/esm/snk-expression-item.entry.js +209 -0
  118. package/dist/esm/snk-filter-bar.entry.js +53 -141
  119. package/dist/esm/snk-filter-binary-select.entry.js +9 -2
  120. package/dist/esm/snk-filter-detail.entry.js +1 -1
  121. package/dist/esm/snk-filter-field-search_2.entry.js +430 -0
  122. package/dist/esm/snk-filter-item.entry.js +1 -1
  123. package/dist/esm/snk-filter-modal-item.entry.js +62 -0
  124. package/dist/esm/snk-filter-modal.entry.js +73 -50
  125. package/dist/esm/snk-filter-multi-select.entry.js +4 -2
  126. package/dist/esm/snk-filter-number.entry.js +4 -2
  127. package/dist/esm/snk-filter-period.entry.js +12 -3
  128. package/dist/esm/snk-filter-personalized.entry.js +4 -2
  129. package/dist/esm/snk-filter-search.entry.js +4 -2
  130. package/dist/esm/snk-filter-text.entry.js +3 -1
  131. package/dist/esm/snk-grid.entry.js +3 -2
  132. package/dist/esm/{snk-guides-viewer-62a9f74d.js → snk-guides-viewer-4d12f268.js} +2 -2
  133. package/dist/esm/snk-guides-viewer.entry.js +4 -3
  134. package/dist/esm/snk-personalized-filter.entry.js +122 -0
  135. package/dist/esm/snk-simple-bar_2.entry.js +3 -2
  136. package/dist/esm/snk-taskbar.entry.js +3 -2
  137. package/dist/esm/taskbar-elements-e6af3e93.js +115 -0
  138. package/dist/sankhyablocks/p-0110b7da.entry.js +1 -0
  139. package/dist/sankhyablocks/p-1a68fb59.js +1 -0
  140. package/dist/sankhyablocks/p-27e264d9.entry.js +1 -0
  141. package/dist/sankhyablocks/p-343699ad.entry.js +1 -0
  142. package/dist/sankhyablocks/{p-f2223502.js → p-3db1d3de.js} +1 -1
  143. package/dist/sankhyablocks/p-433dfa63.entry.js +1 -0
  144. package/dist/sankhyablocks/p-45ee8b22.entry.js +1 -0
  145. package/dist/sankhyablocks/{p-f132e371.js → p-4c2015a9.js} +1 -1
  146. package/dist/sankhyablocks/p-4ce96831.entry.js +1 -0
  147. package/dist/sankhyablocks/p-4eefe631.entry.js +1 -0
  148. package/dist/sankhyablocks/{p-9dd2b8cb.js → p-584d7212.js} +1 -1
  149. package/dist/sankhyablocks/{p-a412992c.entry.js → p-64b03506.entry.js} +1 -1
  150. package/dist/sankhyablocks/p-6a02e236.js +1 -0
  151. package/dist/sankhyablocks/p-7695c404.entry.js +1 -0
  152. package/dist/sankhyablocks/p-786ae316.entry.js +1 -0
  153. package/dist/sankhyablocks/p-82bc97da.entry.js +1 -0
  154. package/dist/sankhyablocks/p-8bdf5e57.entry.js +1 -0
  155. package/dist/sankhyablocks/p-8efb0f47.entry.js +1 -0
  156. package/dist/sankhyablocks/p-9af04fc7.entry.js +1 -0
  157. package/dist/sankhyablocks/{p-3a2ce158.entry.js → p-a1c58536.entry.js} +1 -1
  158. package/dist/sankhyablocks/{p-afba9bbe.entry.js → p-bdbb2672.entry.js} +1 -1
  159. package/dist/sankhyablocks/{p-b2523981.entry.js → p-c1ab16d0.entry.js} +2 -2
  160. package/dist/sankhyablocks/{p-aeffd219.js → p-ccd26e3a.js} +1 -1
  161. package/dist/sankhyablocks/p-d410f45a.js +1 -0
  162. package/dist/sankhyablocks/p-d9804798.js +1 -0
  163. package/dist/sankhyablocks/p-df8f13b4.entry.js +1 -0
  164. package/dist/sankhyablocks/p-e2bb9c9a.entry.js +1 -0
  165. package/dist/sankhyablocks/p-e9f42525.entry.js +1 -0
  166. package/dist/sankhyablocks/p-ed3d6ab4.entry.js +1 -0
  167. package/dist/sankhyablocks/p-ee1381f4.entry.js +1 -0
  168. package/dist/sankhyablocks/p-f4184ce7.js +1 -0
  169. package/dist/sankhyablocks/p-f5f36fbb.js +1 -0
  170. package/dist/sankhyablocks/p-fd4ed40a.entry.js +1 -0
  171. package/dist/sankhyablocks/p-ff96b509.entry.js +27 -0
  172. package/dist/sankhyablocks/p-ffac37d5.entry.js +1 -0
  173. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  174. package/dist/types/components/snk-filter-bar/filter-item/editors/enum/presentationMode.d.ts +4 -0
  175. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.d.ts +5 -0
  176. package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +2 -1
  177. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +3 -0
  178. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +37 -0
  179. package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.d.ts +17 -0
  180. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +2 -11
  181. package/dist/types/components/snk-filter-bar/types/filter-type.enum.d.ts +6 -0
  182. package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +20 -0
  183. package/dist/types/components/snk-filter-bar/utils/filters-mock.d.ts +186 -0
  184. package/dist/types/components/snk-filter-field-search/interfaces/index.d.ts +14 -4
  185. package/dist/types/components/snk-filter-field-search/snk-filter-field-search.d.ts +13 -10
  186. package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +20 -0
  187. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.d.ts +9 -0
  188. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +54 -0
  189. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IExpressionItem.d.ts +4 -2
  190. package/dist/types/components.d.ts +196 -63
  191. package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +7 -0
  192. package/dist/types/lib/message/resources/snk-personalized-filter.msg.d.ts +1 -0
  193. package/dist/types/lib/store/index.d.ts +1 -0
  194. package/package.json +1 -1
  195. package/react/components.d.ts +3 -0
  196. package/react/components.js +3 -0
  197. package/react/components.js.map +1 -1
  198. package/dist/cjs/snk-filter-field-search.cjs.entry.js +0 -185
  199. package/dist/cjs/snk-filter-param-config.cjs.entry.js +0 -256
  200. package/dist/cjs/taskbar-elements-80285601.js +0 -313
  201. package/dist/components/snk-filter-list2.js +0 -173
  202. package/dist/components/snk-filter-modal2.js +0 -97
  203. package/dist/esm/taskbar-elements-055ba1ad.js +0 -309
  204. package/dist/sankhyablocks/p-4512cc6c.entry.js +0 -1
  205. package/dist/sankhyablocks/p-5cbbe1f7.entry.js +0 -1
  206. package/dist/sankhyablocks/p-5e62a17b.entry.js +0 -1
  207. package/dist/sankhyablocks/p-5fc55684.entry.js +0 -1
  208. package/dist/sankhyablocks/p-63d01871.entry.js +0 -1
  209. package/dist/sankhyablocks/p-73e830cf.entry.js +0 -1
  210. package/dist/sankhyablocks/p-741b00ef.entry.js +0 -1
  211. package/dist/sankhyablocks/p-79d22df0.entry.js +0 -1
  212. package/dist/sankhyablocks/p-86d29b6f.entry.js +0 -1
  213. package/dist/sankhyablocks/p-92a0fca4.js +0 -1
  214. package/dist/sankhyablocks/p-93d8fe00.entry.js +0 -1
  215. package/dist/sankhyablocks/p-999d1953.entry.js +0 -1
  216. package/dist/sankhyablocks/p-ad51bf1c.entry.js +0 -1
  217. package/dist/sankhyablocks/p-c336170d.entry.js +0 -1
  218. package/dist/sankhyablocks/p-c3efd4eb.entry.js +0 -1
  219. package/dist/sankhyablocks/p-d5c9c1f8.entry.js +0 -1
  220. package/dist/sankhyablocks/p-ebe876f5.entry.js +0 -1
  221. package/dist/sankhyablocks/p-ed438690.js +0 -1
  222. package/dist/sankhyablocks/p-ee82c157.entry.js +0 -1
  223. package/dist/sankhyablocks/p-f3d0c744.entry.js +0 -1
  224. package/dist/sankhyablocks/p-fac37198.entry.js +0 -1
@@ -0,0 +1,5 @@
1
+ export var EPresentationMode;
2
+ (function (EPresentationMode) {
3
+ EPresentationMode[EPresentationMode["CHIP"] = 0] = "CHIP";
4
+ EPresentationMode[EPresentationMode["MODAL"] = 1] = "MODAL";
5
+ })(EPresentationMode || (EPresentationMode = {}));
@@ -1,10 +1,12 @@
1
1
  import { ElementIDUtils } from '@sankhyalabs/core';
2
2
  import { h, Host } from '@stencil/core';
3
3
  import FilterItemType from '../filter-item-type.enum';
4
+ import { EPresentationMode } from './enum/presentationMode';
4
5
  export class SnkFilterBinarySelect {
5
6
  constructor() {
6
7
  this.value = undefined;
7
8
  this.config = undefined;
9
+ this.presentationMode = EPresentationMode.CHIP;
8
10
  }
9
11
  isSelected(option) {
10
12
  return this.value == undefined || this.value === option;
@@ -39,6 +41,7 @@ export class SnkFilterBinarySelect {
39
41
  else {
40
42
  this.value = undefined;
41
43
  }
44
+ this.valueChanged.emit(this.value);
42
45
  }
43
46
  /**
44
47
  * Exibe o componente snk-filter-binary-select
@@ -51,6 +54,9 @@ export class SnkFilterBinarySelect {
51
54
  return undefined;
52
55
  }
53
56
  const [optOne, optTwo] = this.config.props.options;
57
+ if (this.presentationMode === EPresentationMode.MODAL) {
58
+ return (h(Host, null, h("div", { class: "ez-flex ez-flex--row ez-flex--align-items-center" }, h("label", { class: "ez-text ez-text--medium ez-text--primary", style: { flex: '1 1 0', width: '0px' } }, this.config.detailModal), h("ez-check", { compact: true, style: { flex: '1 1 0', width: '0px' }, id: `${this.config.id}_${optOne.name || "option1"}`, label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { compact: true, style: { flex: '1 1 0', width: '0px' }, id: `${this.config.id}_${optTwo.name || "option2"}`, label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) }))));
59
+ }
54
60
  return (h(Host, null, h("ez-check", { id: `${this.config.id}_${optOne.name || "option1"}`, label: optOne.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkOne = ref, value: this.isSelected(optOne.name) }), h("ez-check", { id: `${this.config.id}_${optTwo.name || "option2"}`, label: optTwo.label, class: "sc-snk-filter-bar editor__ez-check", ref: (ref) => this._checkTwo = ref, value: this.isSelected(optTwo.name) })));
55
61
  }
56
62
  static get is() { return "snk-filter-binary-select"; }
@@ -92,9 +98,50 @@ export class SnkFilterBinarySelect {
92
98
  "tags": [],
93
99
  "text": "Define as configura\u00E7\u00F5es do componente snk-filter-binary-select"
94
100
  }
101
+ },
102
+ "presentationMode": {
103
+ "type": "number",
104
+ "mutable": false,
105
+ "complexType": {
106
+ "original": "EPresentationMode",
107
+ "resolved": "EPresentationMode.CHIP | EPresentationMode.MODAL",
108
+ "references": {
109
+ "EPresentationMode": {
110
+ "location": "import",
111
+ "path": "./enum/presentationMode"
112
+ }
113
+ }
114
+ },
115
+ "required": false,
116
+ "optional": false,
117
+ "docs": {
118
+ "tags": [],
119
+ "text": "Define a varia\u00E7\u00E3o do componente"
120
+ },
121
+ "attribute": "presentation-mode",
122
+ "reflect": false,
123
+ "defaultValue": "EPresentationMode.CHIP"
95
124
  }
96
125
  };
97
126
  }
127
+ static get events() {
128
+ return [{
129
+ "method": "valueChanged",
130
+ "name": "valueChanged",
131
+ "bubbles": true,
132
+ "cancelable": true,
133
+ "composed": true,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": "Emitido quando o valor do filtro \u00E9 alterado."
137
+ },
138
+ "complexType": {
139
+ "original": "any",
140
+ "resolved": "any",
141
+ "references": {}
142
+ }
143
+ }];
144
+ }
98
145
  static get methods() {
99
146
  return {
100
147
  "show": {
@@ -11,6 +11,7 @@ export class SnkFilterMultiSelect {
11
11
  */
12
12
  ezChangeListener(evt) {
13
13
  this.value = evt.detail.value;
14
+ this.valueChanged.emit(this.value);
14
15
  }
15
16
  /**
16
17
  * Exibe o componente snk-filter-multi-select
@@ -71,6 +72,24 @@ export class SnkFilterMultiSelect {
71
72
  }
72
73
  };
73
74
  }
75
+ static get events() {
76
+ return [{
77
+ "method": "valueChanged",
78
+ "name": "valueChanged",
79
+ "bubbles": true,
80
+ "cancelable": true,
81
+ "composed": true,
82
+ "docs": {
83
+ "tags": [],
84
+ "text": "Emitido quando o valor do filtro \u00E9 alterado."
85
+ },
86
+ "complexType": {
87
+ "original": "any",
88
+ "resolved": "any",
89
+ "references": {}
90
+ }
91
+ }];
92
+ }
74
93
  static get methods() {
75
94
  return {
76
95
  "show": {
@@ -11,6 +11,7 @@ export class SnkFilterPeriod {
11
11
  */
12
12
  ezChangeListener(evt) {
13
13
  this.value = evt.detail;
14
+ this.valueChanged.emit(this.value);
14
15
  }
15
16
  /**
16
17
  * Exibe o componente snk-filter-number
@@ -72,6 +73,24 @@ export class SnkFilterPeriod {
72
73
  }
73
74
  };
74
75
  }
76
+ static get events() {
77
+ return [{
78
+ "method": "valueChanged",
79
+ "name": "valueChanged",
80
+ "bubbles": true,
81
+ "cancelable": true,
82
+ "composed": true,
83
+ "docs": {
84
+ "tags": [],
85
+ "text": "Emitido quando o valor do filtro \u00E9 alterado."
86
+ },
87
+ "complexType": {
88
+ "original": "any",
89
+ "resolved": "any",
90
+ "references": {}
91
+ }
92
+ }];
93
+ }
75
94
  static get methods() {
76
95
  return {
77
96
  "show": {
@@ -1,10 +1,12 @@
1
1
  import { ElementIDUtils } from '@sankhyalabs/core';
2
2
  import { h } from '@stencil/core';
3
3
  import FilterItemType from '../filter-item-type.enum';
4
+ import { EPresentationMode } from './enum/presentationMode';
4
5
  export class SnkFilterPeriod {
5
6
  constructor() {
6
7
  this.config = undefined;
7
8
  this.value = undefined;
9
+ this.presentationMode = EPresentationMode.CHIP;
8
10
  }
9
11
  /**
10
12
  * Emitido quando acontece a alteração de valor do componente snk-filter-period
@@ -13,6 +15,7 @@ export class SnkFilterPeriod {
13
15
  const start = this._startDate.value;
14
16
  const end = this._endDate.value;
15
17
  this.value = (start || end ? { start, end } : undefined);
18
+ this.valueChanged.emit(this.value);
16
19
  }
17
20
  componentDidLoad() {
18
21
  if (this._element) {
@@ -37,11 +40,16 @@ export class SnkFilterPeriod {
37
40
  async show() {
38
41
  this._startDate.setFocus();
39
42
  }
43
+ buildLabel() {
44
+ if (this.presentationMode === EPresentationMode.CHIP) {
45
+ return h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9");
46
+ }
47
+ }
40
48
  render() {
41
49
  if (!this.config || this.config.type !== FilterItemType.PERIOD) {
42
50
  return undefined;
43
51
  }
44
- return (h("div", { class: "ez-col ez-col--nowrap" }, h("ez-date-input", { id: `${this.config.id}_start`, label: this.config.label, ref: ref => this._startDate = ref, value: this.getDate("start") }), h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9"), h("ez-date-input", { id: `${this.config.id}_end`, label: this.config.label, ref: ref => this._endDate = ref, value: this.getDate("end") })));
52
+ return (h("div", { class: "ez-col ez-col--nowrap" }, h("ez-date-input", { id: `${this.config.id}_start`, class: this.presentationMode === EPresentationMode.MODAL ? 'ez-padding--small' : '', label: this.config.label, ref: ref => this._startDate = ref, value: this.getDate("start") }), this.buildLabel(), h("ez-date-input", { id: `${this.config.id}_end`, class: this.presentationMode === EPresentationMode.MODAL ? 'ez-padding--small' : '', label: this.config.label, ref: ref => this._endDate = ref, value: this.getDate("end") })));
45
53
  }
46
54
  static get is() { return "snk-filter-period"; }
47
55
  static get properties() {
@@ -82,9 +90,50 @@ export class SnkFilterPeriod {
82
90
  },
83
91
  "attribute": "value",
84
92
  "reflect": false
93
+ },
94
+ "presentationMode": {
95
+ "type": "number",
96
+ "mutable": false,
97
+ "complexType": {
98
+ "original": "EPresentationMode",
99
+ "resolved": "EPresentationMode.CHIP | EPresentationMode.MODAL",
100
+ "references": {
101
+ "EPresentationMode": {
102
+ "location": "import",
103
+ "path": "./enum/presentationMode"
104
+ }
105
+ }
106
+ },
107
+ "required": false,
108
+ "optional": false,
109
+ "docs": {
110
+ "tags": [],
111
+ "text": "Define a varia\u00E7\u00E3o do componente"
112
+ },
113
+ "attribute": "presentation-mode",
114
+ "reflect": false,
115
+ "defaultValue": "EPresentationMode.CHIP"
85
116
  }
86
117
  };
87
118
  }
119
+ static get events() {
120
+ return [{
121
+ "method": "valueChanged",
122
+ "name": "valueChanged",
123
+ "bubbles": true,
124
+ "cancelable": true,
125
+ "composed": true,
126
+ "docs": {
127
+ "tags": [],
128
+ "text": "Emitido quando o valor do filtro \u00E9 alterado."
129
+ },
130
+ "complexType": {
131
+ "original": "any",
132
+ "resolved": "any",
133
+ "references": {}
134
+ }
135
+ }];
136
+ }
88
137
  static get methods() {
89
138
  return {
90
139
  "show": {
@@ -36,6 +36,7 @@ export class SnkFilterPersonalized {
36
36
  if (this.value.filter(item => item != undefined).length == 0) {
37
37
  this.value = null;
38
38
  }
39
+ this.valueChanged.emit(this.value || []);
39
40
  }
40
41
  doSearch(mode, argument, param) {
41
42
  const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
@@ -171,6 +172,24 @@ export class SnkFilterPersonalized {
171
172
  }
172
173
  };
173
174
  }
175
+ static get events() {
176
+ return [{
177
+ "method": "valueChanged",
178
+ "name": "valueChanged",
179
+ "bubbles": true,
180
+ "cancelable": true,
181
+ "composed": true,
182
+ "docs": {
183
+ "tags": [],
184
+ "text": "Emitido quando o valor do filtro \u00E9 alterado."
185
+ },
186
+ "complexType": {
187
+ "original": "any",
188
+ "resolved": "any",
189
+ "references": {}
190
+ }
191
+ }];
192
+ }
174
193
  static get methods() {
175
194
  return {
176
195
  "show": {
@@ -11,6 +11,7 @@ export class SnkFilterSearch {
11
11
  */
12
12
  ezChangeListener(_evt) {
13
13
  this.value = this._searchInput.value;
14
+ this.valueChanged.emit(this.value);
14
15
  }
15
16
  componentDidLoad() {
16
17
  if (this._element) {
@@ -85,6 +86,24 @@ export class SnkFilterSearch {
85
86
  }
86
87
  };
87
88
  }
89
+ static get events() {
90
+ return [{
91
+ "method": "valueChanged",
92
+ "name": "valueChanged",
93
+ "bubbles": true,
94
+ "cancelable": true,
95
+ "composed": true,
96
+ "docs": {
97
+ "tags": [],
98
+ "text": "Emitido quando o valor do filtro \u00E9 alterado."
99
+ },
100
+ "complexType": {
101
+ "original": "any",
102
+ "resolved": "any",
103
+ "references": {}
104
+ }
105
+ }];
106
+ }
88
107
  static get methods() {
89
108
  return {
90
109
  "show": {
@@ -10,6 +10,7 @@ export class SnkFilterText {
10
10
  */
11
11
  ezChangeListener(evt) {
12
12
  this.value = evt.detail;
13
+ this.valueChanged.emit(this.value);
13
14
  }
14
15
  componentDidLoad() {
15
16
  if (this._element) {
@@ -64,6 +65,24 @@ export class SnkFilterText {
64
65
  }
65
66
  };
66
67
  }
68
+ static get events() {
69
+ return [{
70
+ "method": "valueChanged",
71
+ "name": "valueChanged",
72
+ "bubbles": true,
73
+ "cancelable": true,
74
+ "composed": true,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": "Emitido quando o valor do filtro \u00E9 alterado."
78
+ },
79
+ "complexType": {
80
+ "original": "any",
81
+ "resolved": "any",
82
+ "references": {}
83
+ }
84
+ }];
85
+ }
67
86
  static get elementRef() { return "_element"; }
68
87
  static get listeners() {
69
88
  return [{
@@ -8,5 +8,6 @@ var FilterItemType;
8
8
  FilterItemType["NUMBER"] = "NUMBER";
9
9
  FilterItemType["DEFAULT_FILTER"] = "DEFAULT_FILTER";
10
10
  FilterItemType["PERSONALIZED"] = "PERSONALIZED";
11
+ FilterItemType["MULTI_LIST"] = "MULTI_LIST";
11
12
  })(FilterItemType || (FilterItemType = {}));
12
13
  export default FilterItemType;
@@ -1,5 +1,34 @@
1
1
 
2
+ ez-modal {
3
+ --ez-modal-content-padding: 24px 12px;
4
+ }
5
+
2
6
  .snk-filter__modal-container{
3
- width: 359px;
4
- max-width: 359px;
7
+ width: 344px;
8
+ max-width: 344px;
9
+ overflow: hidden;
10
+ }
11
+
12
+ .snk-filter__modal-content{
13
+ display: flex;
14
+ flex-direction: column;
15
+ gap: 12px;
16
+ max-height: 760px;
17
+ overflow-x: clip;
18
+ overflow-y: auto;
19
+ padding-right: 4px;
20
+ }
21
+
22
+ .snk-filter__modal-content::-webkit-scrollbar {
23
+ width: var(--space--small);
24
+ min-width: var(--space--small);
25
+ max-width: var(--space--small);
5
26
  }
27
+
28
+
29
+ .snk-filter__modal-collapsible-box{
30
+ border: 1px solid #DCE0E8;
31
+ border-radius: var(--border--radius-medium);
32
+ }
33
+
34
+