@sankhyalabs/ezui 6.1.0-dev.4 → 6.1.0-dev.5

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 (90) hide show
  1. package/dist/cjs/RichToolbarHelper-438916fa.js +46 -0
  2. package/dist/cjs/{ez-combo-box-list_3.cjs.entry.js → ez-combo-box-list_4.cjs.entry.js} +269 -0
  3. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  4. package/dist/cjs/ez-form-view.cjs.entry.js +6 -0
  5. package/dist/cjs/ez-grid.cjs.entry.js +3 -1348
  6. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-link-builder_6.cjs.entry.js +295 -0
  8. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +27 -0
  10. package/dist/cjs/{ez-filter-input_2.cjs.entry.js → ez-tooltip.cjs.entry.js} +1 -123
  11. package/dist/cjs/ezui.cjs.js +1 -1
  12. package/dist/cjs/index-a7b0c73d.js +20 -8
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/purify-6de957d4.js +1351 -0
  15. package/dist/collection/collection-manifest.json +8 -0
  16. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -0
  17. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +4 -0
  18. package/dist/collection/components/ez-icon/ez-icon.css +147 -140
  19. package/dist/collection/components/ez-modal-container/ez-modal-container.css +2 -0
  20. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css +22 -0
  21. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js +131 -0
  22. package/dist/collection/components/ez-rich-text/ez-rich-text.css +35 -0
  23. package/dist/collection/components/ez-rich-text/ez-rich-text.js +544 -0
  24. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js +39 -0
  25. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css +4 -0
  26. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js +19 -0
  27. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css +4 -0
  28. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js +19 -0
  29. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css +20 -0
  30. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js +122 -0
  31. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css +4 -0
  32. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js +19 -0
  33. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css +42 -0
  34. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js +183 -0
  35. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css +70 -0
  36. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js +216 -0
  37. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js +1 -0
  38. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js +14 -0
  39. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js +10 -0
  40. package/dist/collection/components/ez-tooltip/ez-tooltip.js +1 -1
  41. package/dist/custom-elements/index.d.ts +48 -0
  42. package/dist/custom-elements/index.js +641 -4
  43. package/dist/esm/RichToolbarHelper-fd6427df.js +41 -0
  44. package/dist/esm/{ez-combo-box-list_3.entry.js → ez-combo-box-list_4.entry.js} +270 -2
  45. package/dist/esm/ez-filter-input.entry.js +125 -0
  46. package/dist/esm/ez-form-view.entry.js +6 -0
  47. package/dist/esm/ez-grid.entry.js +2 -1347
  48. package/dist/esm/ez-icon.entry.js +1 -1
  49. package/dist/esm/ez-link-builder_6.entry.js +286 -0
  50. package/dist/esm/ez-modal-container.entry.js +1 -1
  51. package/dist/esm/ez-rich-toolbar-item.entry.js +23 -0
  52. package/dist/esm/{ez-filter-input_2.entry.js → ez-tooltip.entry.js} +3 -124
  53. package/dist/esm/ezui.js +1 -1
  54. package/dist/esm/index-baa5e267.js +20 -8
  55. package/dist/esm/loader.js +1 -1
  56. package/dist/esm/purify-aa3062c4.js +1349 -0
  57. package/dist/ezui/ezui.esm.js +1 -1
  58. package/dist/ezui/p-098594de.entry.js +1 -0
  59. package/dist/ezui/p-1cebdc92.js +1 -0
  60. package/dist/ezui/p-20c024f7.entry.js +1 -0
  61. package/dist/ezui/{p-26685c50.entry.js → p-454bba13.entry.js} +1 -1
  62. package/dist/ezui/p-566c809b.entry.js +1 -0
  63. package/dist/ezui/{p-38581954.entry.js → p-5f1e98da.entry.js} +45 -47
  64. package/dist/ezui/p-79044c3e.entry.js +1 -0
  65. package/dist/ezui/p-80461324.entry.js +1 -0
  66. package/dist/ezui/p-91c9d50e.entry.js +1 -0
  67. package/dist/ezui/p-bcae530a.js +3 -0
  68. package/dist/ezui/p-ec0d8122.entry.js +1 -0
  69. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -0
  70. package/dist/types/components/ez-rich-text/ez-link-builder/ez-link-builder.d.ts +17 -0
  71. package/dist/types/components/ez-rich-text/ez-rich-text.d.ts +98 -0
  72. package/dist/types/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.d.ts +43 -0
  73. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.d.ts +3 -0
  74. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.d.ts +3 -0
  75. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.d.ts +11 -0
  76. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.d.ts +3 -0
  77. package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.d.ts +33 -0
  78. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts +37 -0
  79. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.d.ts +1 -0
  80. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.d.ts +1 -0
  81. package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.d.ts +1 -0
  82. package/dist/types/components.d.ts +291 -0
  83. package/package.json +1 -1
  84. package/react/components.d.ts +8 -0
  85. package/react/components.js +8 -0
  86. package/react/components.js.map +1 -1
  87. package/dist/ezui/p-2b42abbb.entry.js +0 -1
  88. package/dist/ezui/p-63cb493e.entry.js +0 -1
  89. package/dist/ezui/p-7ab19270.entry.js +0 -1
  90. package/dist/ezui/p-9567b31a.entry.js +0 -1
@@ -32,6 +32,7 @@ import { ICustomFormatter, IGridMode, ISelection, ISelectionToastConfig } from "
32
32
  import { IMultiSelectionListDataSource } from "./components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource";
33
33
  import { ICustomRender } from "./utils/customRender/interfaces/ICustomRender";
34
34
  import { IGuideItem } from "./components/ez-guide-navigator/interfaces";
35
+ import { RichToolbarCommand } from "./components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper";
35
36
  import { ListGroup, ListItem as ListItem1, SlotBuilder as SlotBuilder1, TListMode } from "./components/ez-list/ez-list";
36
37
  import { THeightMode } from "./components/ez-modal/ez-modal";
37
38
  import { IMultiSelectionOption } from "./components/ez-multi-selection-list/interfaces/IMultiSelectionOption";
@@ -1226,6 +1227,10 @@ export namespace Components {
1226
1227
  */
1227
1228
  "size": "x-small" | "small"| "medium" | "large" | "x-large";
1228
1229
  }
1230
+ interface EzLinkBuilder {
1231
+ "hide": () => Promise<void>;
1232
+ "show": (text?: string) => Promise<void>;
1233
+ }
1229
1234
  interface EzList {
1230
1235
  /**
1231
1236
  * Limpa o histórico da lista.
@@ -1650,6 +1655,94 @@ export namespace Components {
1650
1655
  */
1651
1656
  "value": any;
1652
1657
  }
1658
+ interface EzRichText {
1659
+ /**
1660
+ * Se false o usuário não pode interagir com o campo.
1661
+ */
1662
+ "enabled": boolean;
1663
+ /**
1664
+ * Define uma mensagem de orientação ao usuário, colocando o campo em modo inválido.
1665
+ */
1666
+ "errorMessage": string;
1667
+ /**
1668
+ * Retorna se o conteúdo é inválido.
1669
+ */
1670
+ "isInvalid": () => Promise<boolean>;
1671
+ /**
1672
+ * Texto a ser apresentado como título do campo.
1673
+ */
1674
+ "label": string;
1675
+ /**
1676
+ * Define o número de linhas.
1677
+ */
1678
+ "rows": number;
1679
+ /**
1680
+ * Remove o foco do campo.
1681
+ */
1682
+ "setBlur": () => Promise<void>;
1683
+ /**
1684
+ * Aplica o foco no campo.
1685
+ */
1686
+ "setFocus": () => Promise<void>;
1687
+ /**
1688
+ * Define se deve exibir a borda externa do componente
1689
+ */
1690
+ "showBorder": boolean;
1691
+ /**
1692
+ * Informa se as opções de configurações (lista, imagem e link) devem ser apresentadas
1693
+ */
1694
+ "showConfigs": boolean;
1695
+ /**
1696
+ * Informa se as opções a opção de pré-visualização deve ser apresentada.
1697
+ */
1698
+ "showPreview": boolean;
1699
+ /**
1700
+ * Informa se as opções de formatação de texto (itálico, sublinhado e negrito) devem ser apresentadas
1701
+ */
1702
+ "showTextFormat": boolean;
1703
+ /**
1704
+ * Informa se as opções de desfazer e refazer devem ser habilitadas.
1705
+ */
1706
+ "showUndoRedo": boolean;
1707
+ /**
1708
+ * Define o valor HTML do campo.
1709
+ */
1710
+ "value": string;
1711
+ }
1712
+ interface EzRichToolbar {
1713
+ /**
1714
+ * Informa se o editor está em modo preview.
1715
+ */
1716
+ "isPreviewMode": boolean;
1717
+ /**
1718
+ * Informa se as opções de configurações (lista, imagem e link) devem ser apresentadas.
1719
+ */
1720
+ "showConfigs": boolean;
1721
+ /**
1722
+ * Informa se as opções a opção de pré-visualização deve ser apresentada.
1723
+ */
1724
+ "showPreview": boolean;
1725
+ /**
1726
+ * Informa se as opções de formatação de texto (itálico, sublinhado e negrito) devem ser apresentadas.
1727
+ */
1728
+ "showTextFormat": boolean;
1729
+ /**
1730
+ * Informa se as opções de desfazer e refazer devem ser apresentadas.
1731
+ */
1732
+ "showUndoRedo": boolean;
1733
+ }
1734
+ interface EzRichToolbarArrows {
1735
+ }
1736
+ interface EzRichToolbarConfigs {
1737
+ }
1738
+ interface EzRichToolbarItem {
1739
+ "command": string;
1740
+ "icon": string;
1741
+ "title": string;
1742
+ "value"?: string;
1743
+ }
1744
+ interface EzRichToolbarLetters {
1745
+ }
1653
1746
  interface EzScroller {
1654
1747
  /**
1655
1748
  * Define se haverá efeito de sombreado.
@@ -1943,6 +2036,20 @@ export namespace Components {
1943
2036
  */
1944
2037
  "type": TypeMenuEnum;
1945
2038
  }
2039
+ interface EzSimpleImageUploader {
2040
+ /**
2041
+ * Método responsável pelo fechamento do popup.
2042
+ */
2043
+ "hide": () => Promise<void>;
2044
+ /**
2045
+ * Tamanho máximo que a imagem poderá ter em kilobytes.
2046
+ */
2047
+ "maxSize": number;
2048
+ /**
2049
+ * Método responsável pela abertura do popup.
2050
+ */
2051
+ "show": () => Promise<void>;
2052
+ }
1946
2053
  interface EzSkeleton {
1947
2054
  /**
1948
2055
  * Animation type
@@ -2669,6 +2776,10 @@ export interface EzGuideNavigatorCustomEvent<T> extends CustomEvent<T> {
2669
2776
  detail: T;
2670
2777
  target: HTMLEzGuideNavigatorElement;
2671
2778
  }
2779
+ export interface EzLinkBuilderCustomEvent<T> extends CustomEvent<T> {
2780
+ detail: T;
2781
+ target: HTMLEzLinkBuilderElement;
2782
+ }
2672
2783
  export interface EzListCustomEvent<T> extends CustomEvent<T> {
2673
2784
  detail: T;
2674
2785
  target: HTMLEzListElement;
@@ -2709,6 +2820,18 @@ export interface EzRadioButtonCustomEvent<T> extends CustomEvent<T> {
2709
2820
  detail: T;
2710
2821
  target: HTMLEzRadioButtonElement;
2711
2822
  }
2823
+ export interface EzRichTextCustomEvent<T> extends CustomEvent<T> {
2824
+ detail: T;
2825
+ target: HTMLEzRichTextElement;
2826
+ }
2827
+ export interface EzRichToolbarCustomEvent<T> extends CustomEvent<T> {
2828
+ detail: T;
2829
+ target: HTMLEzRichToolbarElement;
2830
+ }
2831
+ export interface EzRichToolbarItemCustomEvent<T> extends CustomEvent<T> {
2832
+ detail: T;
2833
+ target: HTMLEzRichToolbarItemElement;
2834
+ }
2712
2835
  export interface EzSearchCustomEvent<T> extends CustomEvent<T> {
2713
2836
  detail: T;
2714
2837
  target: HTMLEzSearchElement;
@@ -2729,6 +2852,10 @@ export interface EzSidebarNavigatorCustomEvent<T> extends CustomEvent<T> {
2729
2852
  detail: T;
2730
2853
  target: HTMLEzSidebarNavigatorElement;
2731
2854
  }
2855
+ export interface EzSimpleImageUploaderCustomEvent<T> extends CustomEvent<T> {
2856
+ detail: T;
2857
+ target: HTMLEzSimpleImageUploaderElement;
2858
+ }
2732
2859
  export interface EzSortableListCustomEvent<T> extends CustomEvent<T> {
2733
2860
  detail: T;
2734
2861
  target: HTMLEzSortableListElement;
@@ -2952,6 +3079,12 @@ declare global {
2952
3079
  prototype: HTMLEzIconElement;
2953
3080
  new (): HTMLEzIconElement;
2954
3081
  };
3082
+ interface HTMLEzLinkBuilderElement extends Components.EzLinkBuilder, HTMLStencilElement {
3083
+ }
3084
+ var HTMLEzLinkBuilderElement: {
3085
+ prototype: HTMLEzLinkBuilderElement;
3086
+ new (): HTMLEzLinkBuilderElement;
3087
+ };
2955
3088
  interface HTMLEzListElement extends Components.EzList, HTMLStencilElement {
2956
3089
  }
2957
3090
  var HTMLEzListElement: {
@@ -3018,6 +3151,42 @@ declare global {
3018
3151
  prototype: HTMLEzRadioButtonElement;
3019
3152
  new (): HTMLEzRadioButtonElement;
3020
3153
  };
3154
+ interface HTMLEzRichTextElement extends Components.EzRichText, HTMLStencilElement {
3155
+ }
3156
+ var HTMLEzRichTextElement: {
3157
+ prototype: HTMLEzRichTextElement;
3158
+ new (): HTMLEzRichTextElement;
3159
+ };
3160
+ interface HTMLEzRichToolbarElement extends Components.EzRichToolbar, HTMLStencilElement {
3161
+ }
3162
+ var HTMLEzRichToolbarElement: {
3163
+ prototype: HTMLEzRichToolbarElement;
3164
+ new (): HTMLEzRichToolbarElement;
3165
+ };
3166
+ interface HTMLEzRichToolbarArrowsElement extends Components.EzRichToolbarArrows, HTMLStencilElement {
3167
+ }
3168
+ var HTMLEzRichToolbarArrowsElement: {
3169
+ prototype: HTMLEzRichToolbarArrowsElement;
3170
+ new (): HTMLEzRichToolbarArrowsElement;
3171
+ };
3172
+ interface HTMLEzRichToolbarConfigsElement extends Components.EzRichToolbarConfigs, HTMLStencilElement {
3173
+ }
3174
+ var HTMLEzRichToolbarConfigsElement: {
3175
+ prototype: HTMLEzRichToolbarConfigsElement;
3176
+ new (): HTMLEzRichToolbarConfigsElement;
3177
+ };
3178
+ interface HTMLEzRichToolbarItemElement extends Components.EzRichToolbarItem, HTMLStencilElement {
3179
+ }
3180
+ var HTMLEzRichToolbarItemElement: {
3181
+ prototype: HTMLEzRichToolbarItemElement;
3182
+ new (): HTMLEzRichToolbarItemElement;
3183
+ };
3184
+ interface HTMLEzRichToolbarLettersElement extends Components.EzRichToolbarLetters, HTMLStencilElement {
3185
+ }
3186
+ var HTMLEzRichToolbarLettersElement: {
3187
+ prototype: HTMLEzRichToolbarLettersElement;
3188
+ new (): HTMLEzRichToolbarLettersElement;
3189
+ };
3021
3190
  interface HTMLEzScrollerElement extends Components.EzScroller, HTMLStencilElement {
3022
3191
  }
3023
3192
  var HTMLEzScrollerElement: {
@@ -3054,6 +3223,12 @@ declare global {
3054
3223
  prototype: HTMLEzSidebarNavigatorElement;
3055
3224
  new (): HTMLEzSidebarNavigatorElement;
3056
3225
  };
3226
+ interface HTMLEzSimpleImageUploaderElement extends Components.EzSimpleImageUploader, HTMLStencilElement {
3227
+ }
3228
+ var HTMLEzSimpleImageUploaderElement: {
3229
+ prototype: HTMLEzSimpleImageUploaderElement;
3230
+ new (): HTMLEzSimpleImageUploaderElement;
3231
+ };
3057
3232
  interface HTMLEzSkeletonElement extends Components.EzSkeleton, HTMLStencilElement {
3058
3233
  }
3059
3234
  var HTMLEzSkeletonElement: {
@@ -3192,6 +3367,7 @@ declare global {
3192
3367
  "ez-grid": HTMLEzGridElement;
3193
3368
  "ez-guide-navigator": HTMLEzGuideNavigatorElement;
3194
3369
  "ez-icon": HTMLEzIconElement;
3370
+ "ez-link-builder": HTMLEzLinkBuilderElement;
3195
3371
  "ez-list": HTMLEzListElement;
3196
3372
  "ez-loading-bar": HTMLEzLoadingBarElement;
3197
3373
  "ez-modal": HTMLEzModalElement;
@@ -3203,12 +3379,19 @@ declare global {
3203
3379
  "ez-popover-plus": HTMLEzPopoverPlusElement;
3204
3380
  "ez-popup": HTMLEzPopupElement;
3205
3381
  "ez-radio-button": HTMLEzRadioButtonElement;
3382
+ "ez-rich-text": HTMLEzRichTextElement;
3383
+ "ez-rich-toolbar": HTMLEzRichToolbarElement;
3384
+ "ez-rich-toolbar-arrows": HTMLEzRichToolbarArrowsElement;
3385
+ "ez-rich-toolbar-configs": HTMLEzRichToolbarConfigsElement;
3386
+ "ez-rich-toolbar-item": HTMLEzRichToolbarItemElement;
3387
+ "ez-rich-toolbar-letters": HTMLEzRichToolbarLettersElement;
3206
3388
  "ez-scroller": HTMLEzScrollerElement;
3207
3389
  "ez-search": HTMLEzSearchElement;
3208
3390
  "ez-search-plus": HTMLEzSearchPlusElement;
3209
3391
  "ez-search-result-list": HTMLEzSearchResultListElement;
3210
3392
  "ez-sidebar-button": HTMLEzSidebarButtonElement;
3211
3393
  "ez-sidebar-navigator": HTMLEzSidebarNavigatorElement;
3394
+ "ez-simple-image-uploader": HTMLEzSimpleImageUploaderElement;
3212
3395
  "ez-skeleton": HTMLEzSkeletonElement;
3213
3396
  "ez-sortable-list": HTMLEzSortableListElement;
3214
3397
  "ez-split-button": HTMLEzSplitButtonElement;
@@ -4308,6 +4491,9 @@ declare namespace LocalJSX {
4308
4491
  */
4309
4492
  "size"?: "x-small" | "small"| "medium" | "large" | "x-large";
4310
4493
  }
4494
+ interface EzLinkBuilder {
4495
+ "onExecuteToolbarCommand"?: (event: EzLinkBuilderCustomEvent<RichToolbarCommand>) => void;
4496
+ }
4311
4497
  interface EzList {
4312
4498
  /**
4313
4499
  * Define a lista inicial do componente.
@@ -4698,6 +4884,88 @@ declare namespace LocalJSX {
4698
4884
  */
4699
4885
  "value"?: any;
4700
4886
  }
4887
+ interface EzRichText {
4888
+ /**
4889
+ * Se false o usuário não pode interagir com o campo.
4890
+ */
4891
+ "enabled"?: boolean;
4892
+ /**
4893
+ * Define uma mensagem de orientação ao usuário, colocando o campo em modo inválido.
4894
+ */
4895
+ "errorMessage"?: string;
4896
+ /**
4897
+ * Texto a ser apresentado como título do campo.
4898
+ */
4899
+ "label"?: string;
4900
+ /**
4901
+ * Emitido quando acontece a alteração de valor do campo.
4902
+ */
4903
+ "onEzChange"?: (event: EzRichTextCustomEvent<string>) => void;
4904
+ /**
4905
+ * Define o número de linhas.
4906
+ */
4907
+ "rows"?: number;
4908
+ /**
4909
+ * Define se deve exibir a borda externa do componente
4910
+ */
4911
+ "showBorder"?: boolean;
4912
+ /**
4913
+ * Informa se as opções de configurações (lista, imagem e link) devem ser apresentadas
4914
+ */
4915
+ "showConfigs"?: boolean;
4916
+ /**
4917
+ * Informa se as opções a opção de pré-visualização deve ser apresentada.
4918
+ */
4919
+ "showPreview"?: boolean;
4920
+ /**
4921
+ * Informa se as opções de formatação de texto (itálico, sublinhado e negrito) devem ser apresentadas
4922
+ */
4923
+ "showTextFormat"?: boolean;
4924
+ /**
4925
+ * Informa se as opções de desfazer e refazer devem ser habilitadas.
4926
+ */
4927
+ "showUndoRedo"?: boolean;
4928
+ /**
4929
+ * Define o valor HTML do campo.
4930
+ */
4931
+ "value"?: string;
4932
+ }
4933
+ interface EzRichToolbar {
4934
+ /**
4935
+ * Informa se o editor está em modo preview.
4936
+ */
4937
+ "isPreviewMode"?: boolean;
4938
+ "onExecuteToolbarCommand"?: (event: EzRichToolbarCustomEvent<RichToolbarCommand>) => void;
4939
+ /**
4940
+ * Informa se as opções de configurações (lista, imagem e link) devem ser apresentadas.
4941
+ */
4942
+ "showConfigs"?: boolean;
4943
+ /**
4944
+ * Informa se as opções a opção de pré-visualização deve ser apresentada.
4945
+ */
4946
+ "showPreview"?: boolean;
4947
+ /**
4948
+ * Informa se as opções de formatação de texto (itálico, sublinhado e negrito) devem ser apresentadas.
4949
+ */
4950
+ "showTextFormat"?: boolean;
4951
+ /**
4952
+ * Informa se as opções de desfazer e refazer devem ser apresentadas.
4953
+ */
4954
+ "showUndoRedo"?: boolean;
4955
+ }
4956
+ interface EzRichToolbarArrows {
4957
+ }
4958
+ interface EzRichToolbarConfigs {
4959
+ }
4960
+ interface EzRichToolbarItem {
4961
+ "command"?: string;
4962
+ "icon"?: string;
4963
+ "onActionTriggered"?: (event: EzRichToolbarItemCustomEvent<RichToolbarCommand>) => void;
4964
+ "title"?: string;
4965
+ "value"?: string;
4966
+ }
4967
+ interface EzRichToolbarLetters {
4968
+ }
4701
4969
  interface EzScroller {
4702
4970
  /**
4703
4971
  * Define se haverá efeito de sombreado.
@@ -4955,6 +5223,13 @@ declare namespace LocalJSX {
4955
5223
  */
4956
5224
  "type"?: TypeMenuEnum;
4957
5225
  }
5226
+ interface EzSimpleImageUploader {
5227
+ /**
5228
+ * Tamanho máximo que a imagem poderá ter em kilobytes.
5229
+ */
5230
+ "maxSize"?: number;
5231
+ "onExecuteToolbarCommand"?: (event: EzSimpleImageUploaderCustomEvent<RichToolbarCommand>) => void;
5232
+ }
4958
5233
  interface EzSkeleton {
4959
5234
  /**
4960
5235
  * Animation type
@@ -5570,6 +5845,7 @@ declare namespace LocalJSX {
5570
5845
  "ez-grid": EzGrid;
5571
5846
  "ez-guide-navigator": EzGuideNavigator;
5572
5847
  "ez-icon": EzIcon;
5848
+ "ez-link-builder": EzLinkBuilder;
5573
5849
  "ez-list": EzList;
5574
5850
  "ez-loading-bar": EzLoadingBar;
5575
5851
  "ez-modal": EzModal;
@@ -5581,12 +5857,19 @@ declare namespace LocalJSX {
5581
5857
  "ez-popover-plus": EzPopoverPlus;
5582
5858
  "ez-popup": EzPopup;
5583
5859
  "ez-radio-button": EzRadioButton;
5860
+ "ez-rich-text": EzRichText;
5861
+ "ez-rich-toolbar": EzRichToolbar;
5862
+ "ez-rich-toolbar-arrows": EzRichToolbarArrows;
5863
+ "ez-rich-toolbar-configs": EzRichToolbarConfigs;
5864
+ "ez-rich-toolbar-item": EzRichToolbarItem;
5865
+ "ez-rich-toolbar-letters": EzRichToolbarLetters;
5584
5866
  "ez-scroller": EzScroller;
5585
5867
  "ez-search": EzSearch;
5586
5868
  "ez-search-plus": EzSearchPlus;
5587
5869
  "ez-search-result-list": EzSearchResultList;
5588
5870
  "ez-sidebar-button": EzSidebarButton;
5589
5871
  "ez-sidebar-navigator": EzSidebarNavigator;
5872
+ "ez-simple-image-uploader": EzSimpleImageUploader;
5590
5873
  "ez-skeleton": EzSkeleton;
5591
5874
  "ez-sortable-list": EzSortableList;
5592
5875
  "ez-split-button": EzSplitButton;
@@ -5640,6 +5923,7 @@ declare module "@stencil/core" {
5640
5923
  "ez-grid": LocalJSX.EzGrid & JSXBase.HTMLAttributes<HTMLEzGridElement>;
5641
5924
  "ez-guide-navigator": LocalJSX.EzGuideNavigator & JSXBase.HTMLAttributes<HTMLEzGuideNavigatorElement>;
5642
5925
  "ez-icon": LocalJSX.EzIcon & JSXBase.HTMLAttributes<HTMLEzIconElement>;
5926
+ "ez-link-builder": LocalJSX.EzLinkBuilder & JSXBase.HTMLAttributes<HTMLEzLinkBuilderElement>;
5643
5927
  "ez-list": LocalJSX.EzList & JSXBase.HTMLAttributes<HTMLEzListElement>;
5644
5928
  "ez-loading-bar": LocalJSX.EzLoadingBar & JSXBase.HTMLAttributes<HTMLEzLoadingBarElement>;
5645
5929
  "ez-modal": LocalJSX.EzModal & JSXBase.HTMLAttributes<HTMLEzModalElement>;
@@ -5651,12 +5935,19 @@ declare module "@stencil/core" {
5651
5935
  "ez-popover-plus": LocalJSX.EzPopoverPlus & JSXBase.HTMLAttributes<HTMLEzPopoverPlusElement>;
5652
5936
  "ez-popup": LocalJSX.EzPopup & JSXBase.HTMLAttributes<HTMLEzPopupElement>;
5653
5937
  "ez-radio-button": LocalJSX.EzRadioButton & JSXBase.HTMLAttributes<HTMLEzRadioButtonElement>;
5938
+ "ez-rich-text": LocalJSX.EzRichText & JSXBase.HTMLAttributes<HTMLEzRichTextElement>;
5939
+ "ez-rich-toolbar": LocalJSX.EzRichToolbar & JSXBase.HTMLAttributes<HTMLEzRichToolbarElement>;
5940
+ "ez-rich-toolbar-arrows": LocalJSX.EzRichToolbarArrows & JSXBase.HTMLAttributes<HTMLEzRichToolbarArrowsElement>;
5941
+ "ez-rich-toolbar-configs": LocalJSX.EzRichToolbarConfigs & JSXBase.HTMLAttributes<HTMLEzRichToolbarConfigsElement>;
5942
+ "ez-rich-toolbar-item": LocalJSX.EzRichToolbarItem & JSXBase.HTMLAttributes<HTMLEzRichToolbarItemElement>;
5943
+ "ez-rich-toolbar-letters": LocalJSX.EzRichToolbarLetters & JSXBase.HTMLAttributes<HTMLEzRichToolbarLettersElement>;
5654
5944
  "ez-scroller": LocalJSX.EzScroller & JSXBase.HTMLAttributes<HTMLEzScrollerElement>;
5655
5945
  "ez-search": LocalJSX.EzSearch & JSXBase.HTMLAttributes<HTMLEzSearchElement>;
5656
5946
  "ez-search-plus": LocalJSX.EzSearchPlus & JSXBase.HTMLAttributes<HTMLEzSearchPlusElement>;
5657
5947
  "ez-search-result-list": LocalJSX.EzSearchResultList & JSXBase.HTMLAttributes<HTMLEzSearchResultListElement>;
5658
5948
  "ez-sidebar-button": LocalJSX.EzSidebarButton & JSXBase.HTMLAttributes<HTMLEzSidebarButtonElement>;
5659
5949
  "ez-sidebar-navigator": LocalJSX.EzSidebarNavigator & JSXBase.HTMLAttributes<HTMLEzSidebarNavigatorElement>;
5950
+ "ez-simple-image-uploader": LocalJSX.EzSimpleImageUploader & JSXBase.HTMLAttributes<HTMLEzSimpleImageUploaderElement>;
5660
5951
  "ez-skeleton": LocalJSX.EzSkeleton & JSXBase.HTMLAttributes<HTMLEzSkeletonElement>;
5661
5952
  "ez-sortable-list": LocalJSX.EzSortableList & JSXBase.HTMLAttributes<HTMLEzSortableListElement>;
5662
5953
  "ez-split-button": LocalJSX.EzSplitButton & JSXBase.HTMLAttributes<HTMLEzSplitButtonElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankhyalabs/ezui",
3
- "version": "6.1.0-dev.4",
3
+ "version": "6.1.0-dev.5",
4
4
  "description": "Biblioteca de componentes Sankhya.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/custom-elements/index.js",
@@ -28,6 +28,7 @@ export declare const EzFormView: import("react").ForwardRefExoticComponent<JSX.E
28
28
  export declare const EzGrid: import("react").ForwardRefExoticComponent<JSX.EzGrid & Omit<import("react").HTMLAttributes<HTMLEzGridElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzGridElement>>;
29
29
  export declare const EzGuideNavigator: import("react").ForwardRefExoticComponent<JSX.EzGuideNavigator & Omit<import("react").HTMLAttributes<HTMLEzGuideNavigatorElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzGuideNavigatorElement>>;
30
30
  export declare const EzIcon: import("react").ForwardRefExoticComponent<JSX.EzIcon & Omit<import("react").HTMLAttributes<HTMLEzIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzIconElement>>;
31
+ export declare const EzLinkBuilder: import("react").ForwardRefExoticComponent<JSX.EzLinkBuilder & Omit<import("react").HTMLAttributes<HTMLEzLinkBuilderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzLinkBuilderElement>>;
31
32
  export declare const EzList: import("react").ForwardRefExoticComponent<JSX.EzList & Omit<import("react").HTMLAttributes<HTMLEzListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzListElement>>;
32
33
  export declare const EzLoadingBar: import("react").ForwardRefExoticComponent<JSX.EzLoadingBar & Omit<import("react").HTMLAttributes<HTMLEzLoadingBarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzLoadingBarElement>>;
33
34
  export declare const EzModal: import("react").ForwardRefExoticComponent<JSX.EzModal & Omit<import("react").HTMLAttributes<HTMLEzModalElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzModalElement>>;
@@ -39,12 +40,19 @@ export declare const EzPopoverCore: import("react").ForwardRefExoticComponent<JS
39
40
  export declare const EzPopoverPlus: import("react").ForwardRefExoticComponent<JSX.EzPopoverPlus & Omit<import("react").HTMLAttributes<HTMLEzPopoverPlusElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzPopoverPlusElement>>;
40
41
  export declare const EzPopup: import("react").ForwardRefExoticComponent<JSX.EzPopup & Omit<import("react").HTMLAttributes<HTMLEzPopupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzPopupElement>>;
41
42
  export declare const EzRadioButton: import("react").ForwardRefExoticComponent<JSX.EzRadioButton & Omit<import("react").HTMLAttributes<HTMLEzRadioButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzRadioButtonElement>>;
43
+ export declare const EzRichText: import("react").ForwardRefExoticComponent<JSX.EzRichText & Omit<import("react").HTMLAttributes<HTMLEzRichTextElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzRichTextElement>>;
44
+ export declare const EzRichToolbar: import("react").ForwardRefExoticComponent<JSX.EzRichToolbar & Omit<import("react").HTMLAttributes<HTMLEzRichToolbarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzRichToolbarElement>>;
45
+ export declare const EzRichToolbarArrows: import("react").ForwardRefExoticComponent<JSX.EzRichToolbarArrows & Omit<import("react").HTMLAttributes<HTMLEzRichToolbarArrowsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzRichToolbarArrowsElement>>;
46
+ export declare const EzRichToolbarConfigs: import("react").ForwardRefExoticComponent<JSX.EzRichToolbarConfigs & Omit<import("react").HTMLAttributes<HTMLEzRichToolbarConfigsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzRichToolbarConfigsElement>>;
47
+ export declare const EzRichToolbarItem: import("react").ForwardRefExoticComponent<JSX.EzRichToolbarItem & Omit<import("react").HTMLAttributes<HTMLEzRichToolbarItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzRichToolbarItemElement>>;
48
+ export declare const EzRichToolbarLetters: import("react").ForwardRefExoticComponent<JSX.EzRichToolbarLetters & Omit<import("react").HTMLAttributes<HTMLEzRichToolbarLettersElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzRichToolbarLettersElement>>;
42
49
  export declare const EzScroller: import("react").ForwardRefExoticComponent<JSX.EzScroller & Omit<import("react").HTMLAttributes<HTMLEzScrollerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzScrollerElement>>;
43
50
  export declare const EzSearch: import("react").ForwardRefExoticComponent<JSX.EzSearch & Omit<import("react").HTMLAttributes<HTMLEzSearchElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSearchElement>>;
44
51
  export declare const EzSearchPlus: import("react").ForwardRefExoticComponent<JSX.EzSearchPlus & Omit<import("react").HTMLAttributes<HTMLEzSearchPlusElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSearchPlusElement>>;
45
52
  export declare const EzSearchResultList: import("react").ForwardRefExoticComponent<JSX.EzSearchResultList & Omit<import("react").HTMLAttributes<HTMLEzSearchResultListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSearchResultListElement>>;
46
53
  export declare const EzSidebarButton: import("react").ForwardRefExoticComponent<JSX.EzSidebarButton & Omit<import("react").HTMLAttributes<HTMLEzSidebarButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSidebarButtonElement>>;
47
54
  export declare const EzSidebarNavigator: import("react").ForwardRefExoticComponent<JSX.EzSidebarNavigator & Omit<import("react").HTMLAttributes<HTMLEzSidebarNavigatorElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSidebarNavigatorElement>>;
55
+ export declare const EzSimpleImageUploader: import("react").ForwardRefExoticComponent<JSX.EzSimpleImageUploader & Omit<import("react").HTMLAttributes<HTMLEzSimpleImageUploaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSimpleImageUploaderElement>>;
48
56
  export declare const EzSkeleton: import("react").ForwardRefExoticComponent<JSX.EzSkeleton & Omit<import("react").HTMLAttributes<HTMLEzSkeletonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSkeletonElement>>;
49
57
  export declare const EzSortableList: import("react").ForwardRefExoticComponent<JSX.EzSortableList & Omit<import("react").HTMLAttributes<HTMLEzSortableListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSortableListElement>>;
50
58
  export declare const EzSplitButton: import("react").ForwardRefExoticComponent<JSX.EzSplitButton & Omit<import("react").HTMLAttributes<HTMLEzSplitButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSplitButtonElement>>;
@@ -31,6 +31,7 @@ export const EzFormView = /*@__PURE__*/ createReactComponent('ez-form-view');
31
31
  export const EzGrid = /*@__PURE__*/ createReactComponent('ez-grid');
32
32
  export const EzGuideNavigator = /*@__PURE__*/ createReactComponent('ez-guide-navigator');
33
33
  export const EzIcon = /*@__PURE__*/ createReactComponent('ez-icon');
34
+ export const EzLinkBuilder = /*@__PURE__*/ createReactComponent('ez-link-builder');
34
35
  export const EzList = /*@__PURE__*/ createReactComponent('ez-list');
35
36
  export const EzLoadingBar = /*@__PURE__*/ createReactComponent('ez-loading-bar');
36
37
  export const EzModal = /*@__PURE__*/ createReactComponent('ez-modal');
@@ -42,12 +43,19 @@ export const EzPopoverCore = /*@__PURE__*/ createReactComponent('ez-popover-core
42
43
  export const EzPopoverPlus = /*@__PURE__*/ createReactComponent('ez-popover-plus');
43
44
  export const EzPopup = /*@__PURE__*/ createReactComponent('ez-popup');
44
45
  export const EzRadioButton = /*@__PURE__*/ createReactComponent('ez-radio-button');
46
+ export const EzRichText = /*@__PURE__*/ createReactComponent('ez-rich-text');
47
+ export const EzRichToolbar = /*@__PURE__*/ createReactComponent('ez-rich-toolbar');
48
+ export const EzRichToolbarArrows = /*@__PURE__*/ createReactComponent('ez-rich-toolbar-arrows');
49
+ export const EzRichToolbarConfigs = /*@__PURE__*/ createReactComponent('ez-rich-toolbar-configs');
50
+ export const EzRichToolbarItem = /*@__PURE__*/ createReactComponent('ez-rich-toolbar-item');
51
+ export const EzRichToolbarLetters = /*@__PURE__*/ createReactComponent('ez-rich-toolbar-letters');
45
52
  export const EzScroller = /*@__PURE__*/ createReactComponent('ez-scroller');
46
53
  export const EzSearch = /*@__PURE__*/ createReactComponent('ez-search');
47
54
  export const EzSearchPlus = /*@__PURE__*/ createReactComponent('ez-search-plus');
48
55
  export const EzSearchResultList = /*@__PURE__*/ createReactComponent('ez-search-result-list');
49
56
  export const EzSidebarButton = /*@__PURE__*/ createReactComponent('ez-sidebar-button');
50
57
  export const EzSidebarNavigator = /*@__PURE__*/ createReactComponent('ez-sidebar-navigator');
58
+ export const EzSimpleImageUploader = /*@__PURE__*/ createReactComponent('ez-simple-image-uploader');
51
59
  export const EzSkeleton = /*@__PURE__*/ createReactComponent('ez-skeleton');
52
60
  export const EzSortableList = /*@__PURE__*/ createReactComponent('ez-sortable-list');
53
61
  export const EzSplitButton = /*@__PURE__*/ createReactComponent('ez-split-button');
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAM7D,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAA,oBAAoB,CAAkD,mBAAmB,CAAC,CAAC;AACvI,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAA,oBAAoB,CAAkC,UAAU,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA,oBAAoB,CAA0C,eAAe,CAAC,CAAC;AACvH,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAA,oBAAoB,CAA8C,gBAAgB,CAAC,CAAC;AAC9H,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAA,oBAAoB,CAAoC,WAAW,CAAC,CAAC;AAC1G,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAA,oBAAoB,CAAkC,UAAU,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAA,oBAAoB,CAA4C,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from"@sankhyalabs/core";const r=class{constructor(o){e(this,o),this.size="medium",this.fontSize=void 0,this.href=void 0,this.iconName=void 0}isSprite(){return this.href&&this.href.indexOf("#")>-1}getIconClassName(){return`ez-icon-${this.iconName}`}getIconContent(){return this.isSprite()?o("svg",{class:this.size,role:"img"},o("use",{xlinkHref:this.href})):c.isEmpty(this.iconName)?o("img",{class:this.size,src:this.href}):o("span",{style:this.getStyle(),class:`icon-content ${this.getIconClassName()} ${this.size}--font`})}getStyle(){if(this.fontSize)return{fontSize:`${this.fontSize}px`}}componentDidLoad(){i.addIDInfo(this._hostElement,"icon")}render(){return o(n,null,this.getIconContent())}get _hostElement(){return t(this)}};r.style=':host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^="ez-icon-"],[class*=" ez-icon-"]{color:var(--ez-icon--color)}[class^="ez-icon-"],[class*=" ez-icon-"]{font-family:\'ez-icons\' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:"\\ea01"}.ez-icon-2chevron-up:before{content:"\\ea02"}.ez-icon-acao:before{content:"\\ea03"}.ez-icon-account-outline:before{content:"\\ea04"}.ez-icon-account:before{content:"\\ea05"}.ez-icon-add-to-cart:before{content:"\\ea06"}.ez-icon-alert-circle-inverted:before{content:"\\ea07"}.ez-icon-alert-circle:before{content:"\\ea08"}.ez-icon-alert-mail:before{content:"\\ea09"}.ez-icon-alert-popup:before{content:"\\ea0a"}.ez-icon-anexo:before{content:"\\ea0b"}.ez-icon-antecipação:before{content:"\\ea0c"}.ez-icon-apps:before{content:"\\ea0d"}.ez-icon-arrow-forward:before{content:"\\ea0e"}.ez-icon-arrow-upward:before{content:"\\ea0f"}.ez-icon-arrow_back:before{content:"\\ea10"}.ez-icon-arrow_downward:before{content:"\\ea11"}.ez-icon-baixa:before{content:"\\ea12"}.ez-icon-balance:before{content:"\\ea13"}.ez-icon-bell-inverted:before{content:"\\ea14"}.ez-icon-bell:before{content:"\\ea15"}.ez-icon-boleto:before{content:"\\ea16"}.ez-icon-boolean:before{content:"\\ea17"}.ez-icon-business-center:before{content:"\\ea18"}.ez-icon-calendar-clock:before{content:"\\ea19"}.ez-icon-calendar:before{content:"\\ea1a"}.ez-icon-cart-history:before{content:"\\ea1b"}.ez-icon-cash-remove:before{content:"\\ea1c"}.ez-icon-check-circle-inverted:before{content:"\\ea1d"}.ez-icon-check-circle:before{content:"\\ea1e"}.ez-icon-check:before{content:"\\ea1f"}.ez-icon-chevron-down:before{content:"\\ea20"}.ez-icon-chevron-left:before{content:"\\ea21"}.ez-icon-chevron-right:before{content:"\\ea22"}.ez-icon-chevron-up:before{content:"\\ea23"}.ez-icon-circle--medium:before{content:"\\ea24"}.ez-icon-circle:before{content:"\\ea25"}.ez-icon-clean-cart:before{content:"\\ea26"}.ez-icon-cleaning:before{content:"\\ea27"}.ez-icon-clipboard:before{content:"\\ea28"}.ez-icon-clock-rotate-left:before{content:"\\ea29"}.ez-icon-close:before{content:"\\ea2a"}.ez-icon-cobrar:before{content:"\\ea2b"}.ez-icon-code:before{content:"\\ea2c"}.ez-icon-configuration:before{content:"\\ea2d"}.ez-icon-content-cut:before{content:"\\ea2e"}.ez-icon-copy:before{content:"\\ea2f"}.ez-icon-credit_card:before{content:"\\ea30"}.ez-icon-crop:before{content:"\\ea31"}.ez-icon-custom:before{content:"\\ea32"}.ez-icon-delete-file:before{content:"\\ea33"}.ez-icon-delete:before{content:"\\ea34"}.ez-icon-description:before{content:"\\ea35"}.ez-icon-dividir:before{content:"\\ea36"}.ez-icon-docx:before{content:"\\ea37"}.ez-icon-dot-notification:before{content:"\\ea38"}.ez-icon-dots-horizontal:before{content:"\\ea39"}.ez-icon-dots-vertical:before{content:"\\ea3a"}.ez-icon-drag-indicator:before{content:"\\ea3b"}.ez-icon-dual-chevron-down:before{content:"\\ea3c"}.ez-icon-dual-chevron-left:before{content:"\\ea3d"}.ez-icon-dual-chevron-right:before{content:"\\ea3e"}.ez-icon-dual-chevron-up:before{content:"\\ea3f"}.ez-icon-edit-file:before{content:"\\ea40"}.ez-icon-edit-table:before{content:"\\ea41"}.ez-icon-edit-time:before{content:"\\ea42"}.ez-icon-edit-value:before{content:"\\ea43"}.ez-icon-edit:before{content:"\\ea44"}.ez-icon-email:before{content:"\\ea45"}.ez-icon-estorno:before{content:"\\ea46"}.ez-icon-exe:before{content:"\\ea47"}.ez-icon-expand:before{content:"\\ea48"}.ez-icon-expandir_card:before{content:"\\ea49"}.ez-icon-extrato:before{content:"\\ea4a"}.ez-icon-eye-off:before{content:"\\ea4b"}.ez-icon-eye:before{content:"\\ea4c"}.ez-icon-favorite:before{content:"\\ea4d"}.ez-icon-figma:before{content:"\\ea4e"}.ez-icon-file-download:before{content:"\\ea4f"}.ez-icon-file-upload:before{content:"\\ea50"}.ez-icon-filter:before{content:"\\ea51"}.ez-icon-find-file:before{content:"\\ea52"}.ez-icon-find-page:before{content:"\\ea53"}.ez-icon-format-color-fill:before{content:"\\ea54"}.ez-icon-generic:before{content:"\\ea55"}.ez-icon-gif:before{content:"\\ea56"}.ez-icon-graph_bar:before{content:"\\ea57"}.ez-icon-handshake:before{content:"\\ea58"}.ez-icon-help-inverted:before{content:"\\ea59"}.ez-icon-help:before{content:"\\ea5a"}.ez-icon-hide-list:before{content:"\\ea5b"}.ez-icon-hide_menu:before{content:"\\ea5c"}.ez-icon-hierarchical-tree:before{content:"\\ea5d"}.ez-icon-home:before{content:"\\ea5e"}.ez-icon-icons104:before{content:"\\ea5f"}.ez-icon-language:before{content:"\\ea60"}.ez-icon-launch:before{content:"\\ea61"}.ez-icon-lightbulb:before{content:"\\ea62"}.ez-icon-list:before{content:"\\ea63"}.ez-icon-location:before{content:"\\ea64"}.ez-icon-lock-outline:before{content:"\\ea65"}.ez-icon-lock:before{content:"\\ea66"}.ez-icon-menu:before{content:"\\ea67"}.ez-icon-mid:before{content:"\\ea68"}.ez-icon-minus:before{content:"\\ea69"}.ez-icon-money-off:before{content:"\\ea6a"}.ez-icon-money:before{content:"\\ea6b"}.ez-icon-more:before{content:"\\ea6c"}.ez-icon-mp3:before{content:"\\ea6d"}.ez-icon-mp4:before{content:"\\ea6e"}.ez-icon-multiple-files:before{content:"\\ea6f"}.ez-icon-north-west:before{content:"\\ea70"}.ez-icon-number:before{content:"\\ea71"}.ez-icon-ordem-ascendente:before{content:"\\ea72"}.ez-icon-ordem-descendente:before{content:"\\ea73"}.ez-icon-parcelar:before{content:"\\ea74"}.ez-icon-pause:before{content:"\\ea75"}.ez-icon-payments:before{content:"\\ea76"}.ez-icon-pdf:before{content:"\\ea77"}.ez-icon-play:before{content:"\\ea78"}.ez-icon-plus:before{content:"\\ea79"}.ez-icon-png:before{content:"\\ea7a"}.ez-icon-power:before{content:"\\ea7b"}.ez-icon-pptx:before{content:"\\ea7c"}.ez-icon-preview:before{content:"\\ea7d"}.ez-icon-print:before{content:"\\ea7e"}.ez-icon-push-pin:before{content:"\\ea7f"}.ez-icon-rateio:before{content:"\\ea80"}.ez-icon-receipt:before{content:"\\ea81"}.ez-icon-recolher_card:before{content:"\\ea82"}.ez-icon-remove-from-cart:before{content:"\\ea83"}.ez-icon-restore:before{content:"\\ea84"}.ez-icon-return:before{content:"\\ea85"}.ez-icon-sankhya-place:before{content:"\\ea86"}.ez-icon-save:before{content:"\\ea87"}.ez-icon-search:before{content:"\\ea88"}.ez-icon-settings-inverted:before{content:"\\ea89"}.ez-icon-settings:before{content:"\\ea8a"}.ez-icon-share:before{content:"\\ea8b"}.ez-icon-shield:before{content:"\\ea8c"}.ez-icon-show-list:before{content:"\\ea8d"}.ez-icon-show_menu:before{content:"\\ea8e"}.ez-icon-south-east:before{content:"\\ea8f"}.ez-icon-sync:before{content:"\\ea90"}.ez-icon-table:before{content:"\\ea91"}.ez-icon-tag_code:before{content:"\\ea92"}.ez-icon-text:before{content:"\\ea93"}.ez-icon-timeline:before{content:"\\ea94"}.ez-icon-timer-outline:before{content:"\\ea95"}.ez-icon-trending-up:before{content:"\\ea96"}.ez-icon-tune:before{content:"\\ea97"}.ez-icon-txt:before{content:"\\ea98"}.ez-icon-un-pin:before{content:"\\ea99"}.ez-icon-unfold_less:before{content:"\\ea9a"}.ez-icon-unfold_more:before{content:"\\ea9b"}.ez-icon-user-circle:before{content:"\\ea9c"}.ez-icon-warning-outline:before{content:"\\ea9d"}.ez-icon-warning_triangle:before{content:"\\ea9e"}.ez-icon-whatshot:before{content:"\\ea9f"}.ez-icon-xlsx:before{content:"\\eaa0"}.ez-icon-zip:before{content:"\\eaa1"}.x-small--font{font-size:12px}.small--font{font-size:16px}.medium--font{font-size:20px}.large--font{font-size:24px}.x-large--font{font-size:30px}';export{r as ez_icon}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i,g as e,H as o}from"./p-23a36bb6.js";import{ElementIDUtils as r}from"@sankhyalabs/core";import{C as a}from"./p-ec7db713.js";import{c as h,o as n,f as l,s as c,a as d}from"./p-e07e4671.js";const p=class{constructor(i){t(this,i),this.ezChange=s(this,"ezChange",7),this.ezSearching=s(this,"ezSearching",7),this.ezFocusIn=s(this,"ezFocusIn",7),this._searchingText="",this.handleFocus=()=>{this._textInput.value=""===this._searchingText?"":this._searchingText,this.ezFocusIn.emit()},this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.restrict=void 0,this.mode="regular",this.asyncSearch=!1,this.canShowError=!0,this.autoFocus=!1}observeLabel(){this._textInput&&(this._textInput.label=this.label)}observeErrorMessage(){this._textInput&&(this._textInput.errorMessage=this.errorMessage)}observeValue(t,s){this._textInput&&t!=s&&(this._textInput.value=t,this.ezChange.emit(t))}async setFocus(t){this._textInput.setFocus(t)}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async setValue(t){this.asyncSearch&&null!=this._textInput&&(t!==this.value?(this.value=t,this._searchingText=""):this._textInput.value=t)}async endSearch(){this.asyncSearch&&null!=this._textInput&&this._textInput.value!==this.value&&(this._textInput.value=this.value)}handleChange(t){const s=t.detail;this.errorMessage="",this.asyncSearch?(this._searchingText=s,this.ezSearching.emit(s)):s!==this.value&&(this.value=s)}componentDidLoad(){a.applyVarsTextInput(this._elem,this._textInput),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){return r.addIDInfoIfNotExists(this._elem,"input"),i("ez-text-input",{"data-element-id":r.getInternalIDInfo("textInput"),ref:t=>this._textInput=t,label:this.label,onEzChange:t=>this.handleChange(t),value:this.value,enabled:this.enabled,errorMessage:this.errorMessage,restrict:this.restrict,mode:this.mode,onFocusin:this.handleFocus,canShowError:this.canShowError},i("ez-icon",{slot:"leftIcon",iconName:"search"}))}get _elem(){return e(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"]}}};p.style=":host{display:block;width:100%}";const u=class{constructor(s){t(this,s),this._opened=!1,this.message=void 0,this.anchoringElement=void 0,this.placement="bottom",this.gapOptions={horizontalGap:0,verticalGap:0},this.type="default",this.debouncingTime=500,this.active=!0,this.maxWidth=200,this.useAnchorSize=!1}watchAnchoringElement(t,s){t&&(this.setEvents(t),this.removeEvents(s))}watchMessage(t){t?this.updatePosition():this.closeTooltip()}openTooltip(){this.message&&this.active&&(this._debouncingTimeout&&clearTimeout(this._debouncingTimeout),this._debouncingTimeout=setTimeout((()=>{this._opened=!0,this._tooltipElement.style.display="block",this.updatePosition()}),this.debouncingTime))}closeTooltip(){clearTimeout(this._debouncingTimeout),this._tooltipElement.style.display="none",this._opened=!1}async updatePosition(t=this.anchoringElement){if(t&&this._opened){if(this.useAnchorSize){const s=t.getBoundingClientRect().width;this._tooltipElement.style.width=`${s}px`}await h(t,this._tooltipElement,{placement:this.placement,middleware:[n(5),l(),c(),d({element:this._arrowElement})]}).then((({x:t,y:s,placement:i,middlewareData:e})=>{const o=i.includes("bottom")?s+this.gapOptions.verticalGap:s-this.gapOptions.verticalGap,r=i.includes("start")?t+this.gapOptions.horizontalGap:t-this.gapOptions.horizontalGap;if(Object.assign(this._tooltipElement.style,{top:`${o}px`,left:`${r}px`}),e.arrow){const{x:t}=e.arrow,s=i.includes("bottom");Object.assign(this._arrowElement.style,{left:`${t}px`,top:s?-this._arrowElement.offsetHeight/2+"px":"",bottom:s?"":-this._arrowElement.offsetHeight/2+"px"})}}))}}handleSlotChange(t){const s=t.target.assignedElements()[0];this.anchoringElement=s}setEvents(t=this.anchoringElement){t&&(t.addEventListener("mouseenter",(()=>{this.openTooltip()})),t.addEventListener("mouseleave",(()=>{this.closeTooltip()})))}removeEvents(t=this.anchoringElement){t&&(t.removeEventListener("mouseenter",(()=>{this.openTooltip()})),t.removeEventListener("mouseleave",(()=>{this.closeTooltip()})))}componentDidLoad(){this.setEvents()}render(){return i(o,null,i("div",Object.assign({ref:t=>this._tooltipElement=t},{inert:!0},{class:{tooltip:!0,[`${this.type}-tooltip`]:!0},style:{maxWidth:this.maxWidth&&!this.useAnchorSize?`${this.maxWidth}px`:void 0},role:"tooltip","data-element-id":r.getInternalIDInfo("tooltip")}),this.message,i("div",{ref:t=>this._arrowElement=t,class:"arrow"})),i("slot",{onSlotchange:t=>{this.handleSlotChange(t)}}))}get _element(){return e(this)}static get watchers(){return{anchoringElement:["watchAnchoringElement"],message:["watchMessage"]}}};u.style=":host{--triangle-size:8px;width:100%}.tooltip{position:absolute;z-index:var(--elevation--24);padding:var(--space--extra-small, 3px) var(--space--small, 6px);border-radius:var(--border--radius-small);box-sizing:border-box;font-family:var(--font-pattern\t, 'Roboto', sans-serif);font-size:var(--text--small, 12px);font-weight:var(--text-weight--medium, 400);text-align:center;width:max-content;display:none}.arrow{position:absolute;width:var(--triangle-size);height:var(--triangle-size);transform:rotate(45deg)}.default-tooltip{background:var(--title--primary, #2b3a54);color:var(--color--inverted)}.default-tooltip .arrow{background:var(--title--primary, #2b3a54)}.error-tooltip{background:var(--color-alert--error-800, #BD0025);color:var(--color--error-200, #F7E0E5)}.error-tooltip .arrow{background:var(--color-alert--error-800, #BD0025)}.success-tooltip{background:var(--color--success, #00cb94);color:var(--color--success-200, #EBFFFA)}.success-tooltip .arrow{background:var(--color--success, #00cb94)}.warning-tooltip{background:var(--color--warning, #f2d410);color:var(--color--warning-200, #FDF8D8)}.warning-tooltip .arrow{background:var(--color--warning, #f2d410)}";export{p as ez_filter_input,u as ez_tooltip}
@@ -1 +0,0 @@
1
- import{r as i,h as t,H as o,c as e,g as s}from"./p-23a36bb6.js";import{ElementIDUtils as r,ObjectUtils as a,HTMLBuilder as l,StringUtils as n}from"@sankhyalabs/core";import{C as c}from"./p-30ffb9ed.js";import{A as h}from"./p-2187f86c.js";import"./p-ab574d59.js";import"./p-b853763b.js";const d=class{constructor(t){i(this,t),this.showLoading=void 0,this.visibleOptions=void 0,this.textEmptyList="Nenhum resultado encontrado",this.showOptionValue=void 0,this.preSelection=void 0,this.maxWidth=void 0,this.width=void 0,this.onOptionSelect=void 0,this.onOptionHover=void 0}async nextOption(){var i,t;(null===(i=this.visibleOptions)||void 0===i?void 0:i.length)&&(void 0!==this.preSelection&&this.preSelection>=this.visibleOptions.length-1||(this.preSelection=void 0===this.preSelection?0:this.preSelection+1,this.scrollToOption(this.visibleOptions[this.preSelection]),null===(t=this.onOptionHover)||void 0===t||t.call(this,this.preSelection)))}async previousOption(){var i,t;(null===(i=this.visibleOptions)||void 0===i?void 0:i.length)&&(void 0!==this.preSelection&&this.preSelection<=0||(this.preSelection=void 0===this.preSelection?this.visibleOptions.length-1:this.preSelection-1,this.scrollToOption(this.visibleOptions[this.preSelection]),null===(t=this.onOptionHover)||void 0===t||t.call(this,this.preSelection)))}async selectCurrentOption(){void 0!==this.preSelection&&(this.onOptionSelect(this.visibleOptions[this.preSelection]),this.preSelection=void 0)}observeWidth(i,t){i!==t&&this._listWrapper&&(this._listWrapper.style.width=`${this.width}px`)}observeMaxWidth(i,t){i!==t&&this._listWrapper&&(this._listWrapper.style.maxWidth=this.maxWidth?`${this.maxWidth}px`:"")}handleKeyDown(i){switch(i.key){case"ArrowDown":i.preventDefault(),i.stopPropagation(),this.nextOption();break;case"ArrowUp":i.preventDefault(),i.stopPropagation(),this.previousOption();break;case"Enter":this.selectCurrentOption();break;case"Escape":this.preSelection=void 0}}buildItem(i,o){const e=this.showOptionValue&&this.maxWidth>0?`${this.maxWidth}px`:"";return i.label=i.label||i.value,t("li",{tabIndex:1,class:o===this.preSelection?"item preselected":"item",id:`item_${i.value}_${o}`,key:`item_${i.value}_${o}`,onMouseDown:()=>this.onOptionSelect(i),onMouseOver:()=>this.preSelection=o},this.showOptionValue?t("span",{class:"item__value",title:i.value,style:{width:e,minWidth:e,maxWidth:e}},i.value):void 0,t("span",{class:"item__label "+(this.showOptionValue?"item__label--bold":""),title:i.label},i.label))}scrollToOption(i){if(!(null==i?void 0:i.value)||!this._optionsList)return;const t=this.visibleOptions.indexOf(i);if(-1===t)return;const o=this._optionsList.querySelector(`li#item_${CSS.escape(i.value)}_${CSS.escape(String(t))}`);o&&o.scrollIntoView({behavior:"smooth",block:"nearest"})}componentDidLoad(){this._listWrapper.style.width=`${this.width}px`,this._listWrapper.style.maxWidth=this.maxWidth?`${this.maxWidth}px`:""}componentDidRender(){var i;null===(i=this._optionsList)||void 0===i||i.querySelectorAll(".item").forEach((i=>{r.addIDInfoIfNotExists(i,"itemComboBox")}))}render(){return t("section",{class:"list-container"},t("div",{class:"list-wrapper",ref:i=>this._listWrapper=i},t("ul",{class:"list-options",ref:i=>this._optionsList=i},!this.showLoading&&0===this.visibleOptions.length&&t("div",{class:"message"},t("span",{class:"message__no-result"},this.textEmptyList)),this.showLoading&&t("div",{class:"message"},t("div",{class:"message__loading"})),this.showOptionValue&&t("span",{class:"item__value item__value--hidden"}),!this.showLoading&&this.visibleOptions.length>0&&this.visibleOptions.map(((i,t)=>this.buildItem(i,t))))))}static get watchers(){return{width:["observeWidth"],maxWidth:["observeMaxWidth"]}}};d.style=":host{--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box--line-height:calc(var(--text--medium, 14px) + 4px);--ez-combo-box__list-title--primary:var(--title--primary, #2B3A54);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium) + 4px);--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-combo-box__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-combo-box__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-combo-box__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-combo-box__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__scrollbar--width:var(--space--medium, 12px);--ez-combo-box__list-container--padding:var(--space--extra-small, 3px)}.list-container{padding-top:var(--ez-combo-box__list-container--padding)}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small) + 9px);background-color:var(--ez-combo-box--background-color--xlight);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow--medium, 0 8px 24px 0 rgba(43, 58, 84, 0.10));padding:var(--ez-combo-box--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-combo-box__scrollbar--color-clicked) var(--ez-combo-box__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__scrollbar--color-background);width:var(--ez-combo-box__scrollbar--width);max-width:var(--ez-combo-box__scrollbar--width);min-width:var(--ez-combo-box__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__scrollbar--color-background);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__scrollbar--color-default);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-combo-box__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-combo-box__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-combo-box--border-radius-small);padding:var(--ez-combo-box--space--small);min-height:var(--ez-combo-box__list-height);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size);line-height:var(--ez-combo-box--line-height)}.item__label{font-weight:var(--ez-combo-box--font-weight--medium)}.item__label--bold{font-weight:var(--ez-combo-box--font-weight--large)}.item__value{text-align:center;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-combo-box__list-height)}.message__no-result{color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-combo-box__list-title--primary);border-top:3px solid transparent}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";const b=class{constructor(t){i(this,t),this.gui=void 0,this.customEditor=void 0,this.formViewField=void 0,this.value=void 0,this.detailContext=void 0,this.builderFallback=void 0,this.selectedRecord=void 0}async setFocus(){var i,t;null===(t=null===(i=this.gui)||void 0===i?void 0:i.setFocus)||void 0===t||t.call(i)}async setBlur(){var i,t;null===(t=null===(i=this.gui)||void 0===i?void 0:i.setBlur)||void 0===t||t.call(i)}async isInvalid(){var i,t;return(null===(t=null===(i=this.gui)||void 0===i?void 0:i.isInvalid)||void 0===t?void 0:t.call(i))||!1}watchValue(){this.handleValue(this.gui)}watchCustomEditor(){this.getContent()}watchFormViewField(i,t){a.equals(i,t)||this.getContent()}watchDetailContext(){this.getContent()}watchBuilderFallback(){this.getContent()}watchSelectedRecord(i,t){(null==i?void 0:i.__record__id__)!==(null==t?void 0:t.__record__id__)&&this.getContent()}getContent(){var i,o,e,s,r;const a=new Map;for(const i in this.formViewField.props)a.set(i,this.formViewField.props[i]);const h={value:this.value,name:this.formViewField.name,currentEditor:this.builderFallback(this.formViewField),setValue:i=>this.setValue(i),getValue:this.getValue,record:this.selectedRecord,editorMetadata:{label:this.formViewField.label,hidden:!1===(null===(i=this.formViewField.props)||void 0===i?void 0:i.visible),userInterface:this.formViewField.userInterface,options:null===(o=this.formViewField.props)||void 0===o?void 0:o.options,props:this.formViewField.props?a:void 0,optionLoader:this.formViewField.optionLoader},source:c.FORM,detailContext:this.detailContext};let d=this.customEditor.getEditorElement(h);if(!d)return d=this.builderFallback(this.formViewField),this.handleValue(d),void(this.gui=d);if(!(d instanceof HTMLElement)&&"string"!=typeof d)return this.handleValue(d),void(this.gui=d);"string"==typeof d&&(d=l.parseElement(d));const b=null!==(r=null!==(s=null===(e=this.value)||void 0===e?void 0:e.value)&&void 0!==s?s:this.value)&&void 0!==r?r:"";d.setAttribute("value",b),this.gui=t("div",{key:n.generateUUID(),ref:i=>i&&i.appendChild(d)})}setValue(i){this.value=i}getValue(){return this.value}handleValue(i){var t;null===(t=i.i)||void 0===t||t.forEach((i=>{i.t.value=this.value}))}componentWillLoad(){this.getContent()}render(){return t(o,null,this.gui)}static get watchers(){return{value:["watchValue"],customEditor:["watchCustomEditor"],formViewField:["watchFormViewField"],detailContext:["watchDetailContext"],builderFallback:["watchBuilderFallback"],selectedRecord:["watchSelectedRecord"]}}},m=class{constructor(t){i(this,t),this.saveEdition=e(this,"saveEdition",7),this.cancelEdition=e(this,"cancelEdition",7),this._newValue=void 0,this.value=void 0,this.styled=void 0}async applyFocusSelect(){this.calcSizeInput(this.value,!0)}calcSizeInput(i,t=!1){var o,e;const s=null===(e=null===(o=this._inputElement)||void 0===o?void 0:o.shadowRoot)||void 0===e?void 0:e.querySelector("input");if(null!=s){const o=this.getWidthValue(i);s.style.width=o+"px",t&&setTimeout((()=>s.select()),100)}}getWidthValue(i){if(null!=this._valueBasis){const t=this._valueBasis;if(null!=i){const o=2;return t.innerHTML=i,t.clientWidth>0?t.clientWidth+o:o}t.innerHTML=""}return 0}setStyledInput(){var i,t;let o="",e="",s="";null!=this.styled&&(o=this.styled.fontSize,e=this.styled.fontWeight,s=this.styled.fontFamily);const r=null===(t=null===(i=this._inputElement)||void 0===i?void 0:i.shadowRoot)||void 0===t?void 0:t.querySelector("input");null!=r&&(r.style.fontSize=o,r.style.fontWeight=e,r.style.fontFamily=s);const a=this._valueBasis;null!=a&&(a.style.fontSize=o,a.style.fontWeight=e,a.style.fontFamily=s)}handleSaveEdition(){this._newValue?this.saveEdition.emit({value:this.value,newValue:this._newValue}):h.alert("Aviso","Não é possível salvar um campo em branco.").then((()=>{this.setNewValue(this.value,!0)}))}handleCancelEdition(){this.cancelEdition.emit()}setNewValue(i,t=!1){this._newValue=i,this.calcSizeInput(this._newValue,t)}componentDidLoad(){this.applyFocusSelect(),this.setNewValue(this.value)}componentDidRender(){this.setStyledInput()}render(){return r.addIDInfoIfNotExists(this._element,"input"),t(o,null,t("span",{class:"text-edit__hidden-value",ref:i=>this._valueBasis=i}),t("ez-text-input",{"data-element-id":r.getInternalIDInfo("textInput"),onInput:()=>{this.calcSizeInput(this._newValue)},class:"text-edit__form-input",value:this._newValue,ref:i=>this._inputElement=i,mode:"slim",onEzChange:i=>this.setNewValue(null==i?void 0:i.detail),noBorder:!0}),t("ez-button",{class:"text-edit__icon-check",mode:"icon",iconName:"check",size:"small",onClick:()=>{this.handleSaveEdition()}}),t("ez-button",{class:"text-edit__icon-close",mode:"icon",iconName:"close",size:"small",onClick:()=>{this.handleCancelEdition()}}))}get _element(){return s(this)}};m.style=":host{display:flex;align-items:center;gap:5px}.text-edit__form-input{width:auto;--ez-text-input__input--padding:0px}.text-edit__hidden-value{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}";export{d as ez_combo_box_list,b as ez_custom_form_input,m as ez_text_edit}
@@ -1 +0,0 @@
1
- import{h as e,r as a,c as t,g as n,H as r}from"./p-23a36bb6.js";import{ObjectUtils as o,StringUtils as l,UserInterface as i,ElementIDUtils as s}from"@sankhyalabs/core";import{R as d}from"./p-5eea9886.js";import{C as c}from"./p-b853763b.js";function m(a,t,n,r,o){return e("div",{class:"ez-col ez-col--sd-12 ez-align--middle ez-padding-bottom--large"},e("ez-check",{enabled:!n,label:t,mode:o?c.SWITCH:c.REGULAR,"data-field-name":a,"data-context-name":r,key:a}))}function u(a,t,n,r,o,l,i){return e("div",{class:"ez-col ez-col--sd-12"},e("ez-number-input",{class:"ez-input__no-margin",enabled:!n,label:t,precision:r,prettyPrecision:o,"data-field-name":a,"data-context-name":l,key:a,canShowError:i}))}const h=({name:a,label:t,readOnly:n,contextName:r,canShowError:o,props:l})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-text-input",{class:"ez-input__no-margin",label:t,"data-field-name":a,"data-context-name":r,key:a,enabled:!n,canShowError:o,mask:null==l?void 0:l.mask,"clean-value-mask":null==l?void 0:l.cleanValueMask})),p=new Map;p.set(i.CHECKBOX,(e=>m(e.name,e.label,e.readOnly,e.contextName,!1))),p.set(i.SWITCH,(e=>m(e.name,e.label,e.readOnly,e.contextName,!0))),p.set(i.OPTIONSELECTOR,(({name:a,label:t,readOnly:n,required:r,props:o,contextName:l,canShowError:i})=>{const s=null==o?void 0:o.options;let d;if("string"==typeof s){const e=JSON.parse(s);d=Object.keys(e).map((a=>({value:a,label:e[a]})))}else d=s;return e("div",{class:"ez-col ez-col--sd-12"},e("ez-combo-box",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:r,label:t,"data-field-name":a,"data-context-name":l,key:a,options:d,canShowError:i}))})),p.set(i.DATE,(({name:a,label:t,readOnly:n,canShowError:r})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-date-input",{class:"ez-input__no-margin",enabled:!n,label:t,"data-field-name":a,key:a,canShowError:r})))),p.set(i.TIME,(({name:a,label:t,readOnly:n,canShowError:r,props:o})=>{var l;return e("div",{class:"ez-col ez-col--sd-12"},e("ez-time-input",{class:"ez-input__no-margin",enabled:!n,label:t,"data-field-name":a,key:a,canShowError:r,"show-seconds":null!==(l=null==o?void 0:o.showSeconds)&&void 0!==l&&l}))})),p.set(i.ELAPSEDTIME,(({name:a,label:t,readOnly:n,canShowError:r})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-time-input",{class:"ez-input__no-margin",enabled:!n,label:t,"data-field-name":a,key:a,canShowError:r,showSeconds:!0})))),p.set(i.DATETIME,(({name:a,label:t,readOnly:n,contextName:r,canShowError:o})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-date-time-input",{class:"ez-input__no-margin",enabled:!n,label:t,"data-field-name":a,"data-context-name":r,key:a,canShowError:o})))),p.set(i.FILE,(({name:a,label:t,readOnly:n,contextName:r,props:l})=>{const i=o.removeEmptyValues({subTitle:l.subTitle,requestHeaders:Object.assign(Object.assign({},l.STORAGESTRATEGY&&{STORAGESTRATEGY:l.STORAGESTRATEGY}),l.INTERNAL_FILENAME&&{INTERNAL_FILENAME:l.INTERNAL_FILENAME})});return e("div",{class:"ez-col ez-col--sd-12"},e("ez-upload",Object.assign({enabled:!n,label:t,"data-field-name":a,"data-context-name":r,key:a},i)))})),p.set(i.DECIMALNUMBER,(({name:e,label:a,readOnly:t,props:n,contextName:r,canShowError:o})=>{var l,i;const s=Number(null!==(l=null==n?void 0:n.precision)&&void 0!==l?l:2);return u(e,a,t,s,Number(null!==(i=null==n?void 0:n.prettyPrecision)&&void 0!==i?i:s),r,o)})),p.set(i.INTEGERNUMBER,(({name:e,label:a,readOnly:t,contextName:n,canShowError:r})=>u(e,a,t,0,0,n,r))),p.set(i.SEARCH,(({name:a,label:t,readOnly:n,required:r,contextName:o,canShowError:l,optionLoader:i,props:s})=>{var d;return e("div",{class:"ez-col ez-col--sd-12"},e("ez-search",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:r,label:t,"data-field-name":a,"data-context-name":o,key:a,canShowError:l,optionLoader:i,ignoreLimitCharsToSearch:null!==(d=null==s?void 0:s.ignoreLimitCharsToSearch)&&void 0!==d&&d}))})),p.set(i.SEARCHPLUS,(({name:a,label:t,readOnly:n,contextName:r,canShowError:o,optionLoader:i,props:s})=>{const d=!l.isEmpty(null==s?void 0:s.DESCRIPTIONFIELD);return e("div",{class:"ez-col ez-col--sd-12"},e("ez-search-plus",{class:"ez-input__no-margin",enabled:!n,label:t,"data-field-name":a,"data-context-name":r,key:a,canShowError:o,optionLoader:i,hideDescriptionInput:!d}))})),p.set(i.LONGTEXT,(({name:a,label:t,readOnly:n,contextName:r,rows:o,canShowError:l})=>e("div",{class:"ez-col ez-col--sd-12",key:a},e("ez-text-area",{enabled:!n,label:t,"data-field-name":a,"data-context-name":r,rows:o,canShowError:l}))));const w=e=>{const a=p.get(e.userInterface)||h,t=e.required?`${e.label}${d}`:e.label,n=a(Object.assign(Object.assign({},e),{label:t}));return n.t["data-form-item"]=e.name,n};class v{constructor(e){this.elem=e}addRightElement(e){this.removeRightElement(),e.classList.add("ez-padding-left--small"),e.setAttribute("data-custom-item","true"),this.elem.classList.add("ez-col--nowrap"),this.elem.appendChild(e)}removeRightElement(){Array.from(this.elem.querySelectorAll('[data-custom-item="true"]')).forEach((e=>e.remove()))}get fieldName(){return this.elem.getAttribute("data-form-item")}}class z{constructor(e,a){this.items=new Map,this.formId=a,e.forEach((e=>{const a=new v(e);this.items.set(a.fieldName,a)}))}getItem(e){return this.items.get(e)}get formName(){return this.formId}}const b=class{constructor(e){a(this,e),this.ezContentReady=t(this,"ezContentReady",7),this.formItemsReady=t(this,"formItemsReady",7),this._customEditors=new Map,this.fields=void 0,this.selectedRecord=void 0,this.singleColumn=!0}async showUp(){this._element.scrollIntoView({behavior:"smooth",block:"start"})}async addCustomEditor(e,a,t){const n=new Map(this._customEditors);n.set(e,{customEditor:a,detailContext:t}),this._customEditors=n}async setFieldProp(e,a,t){const n=this.fields.map((n=>(n.name!==e||!t&&0!==t||(n.props=n.props||{},n.props[a]=t),n)));this.fields=[...n]}groupFields(e){const a=new Map;return e.forEach((e=>{const t=e.group;if(t){let n=a.get(t);null==n&&(n=[],a.set(t,n)),n.push(e)}else a.set(e.name,e)})),a}componentDidRender(){this._formElements=Array.from(this._element.querySelectorAll("[data-field-name]")),this.ezContentReady.emit(this._formElements);const e=new z(Array.from(this._element.querySelectorAll("[data-form-item]")));this.formItemsReady.emit(e)}isItemFullWidth(e){return[i.FILE,i.LONGTEXT].includes(e)}buildFormItemElement(a,t=""){var n;if(this.isItemFullWidth(a.userInterface)&&(t+=" input-full_width"),this._customEditors.has(a.name)){const r=null===(n=this._formElements.map((e=>({name:e.dataset.fieldName,value:e.value}))).find((e=>e.name===a.name)))||void 0===n?void 0:n.value,o=this._customEditors.get(a.name).customEditor;return e("div",{class:t},e("ez-custom-form-input",{"data-field-name":a.name,customEditor:o,formViewField:a,builderFallback:w,value:r,selectedRecord:this.selectedRecord}))}return e("div",{class:t},w(a))}render(){if(s.addIDInfoIfNotExists(this._element,"ezFormView"),null==this.fields)return;let a=[],t=Array.from(this.groupFields(this.fields).entries()).map((([t,n])=>{if(Array.isArray(n))return e("ez-collapsible-box",{id:`group-${t}`,label:t,"header-size":"large",key:t},e("div",{class:`form-view__content ${this.singleColumn&&"form-view__content--single-column"}`},n.map((e=>this.buildFormItemElement(e)))));a.push(n)})),n=a.map((e=>this.buildFormItemElement(e))),o=e("div",{class:`form-view__content ${this.singleColumn&&"form-view__content--single-column"}`},n);return e(r,null,o,t)}get _element(){return n(this)}};b.style=".sc-ez-form-view-h{display:flex;flex-wrap:wrap;width:100%;--ez-form-view__item--min-width:220px;--ez-form-view__item--max-width:440px;--ez-form-view__item--width:var(--space--small);--ez-form-view__item--padding:var(--space--small)}.form-view__content.sc-ez-form-view{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--ez-form-view__item--min-width), 1fr));gap:var(--ez-form-view__item--width);padding-inline:var(--ez-form-view__item--padding);width:100%}.form-view__content--single-column.sc-ez-form-view{grid-template-columns:repeat(1, minmax(var(--ez-form-view__item--min-width), var(--ez-form-view__item--max-width)))}.input-full_width.sc-ez-form-view{grid-column:1 / -1;width:100%}";export{b as ez_form_view}