@sankhyalabs/ezui 6.1.0-dev.1 → 6.1.0-dev.10
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.
- package/dist/cjs/RichToolbarHelper-438916fa.js +46 -0
- package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/ez-card-item_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-chart.cjs.entry.js +3 -18
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +2 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/{ez-combo-box-list_3.cjs.entry.js → ez-combo-box-list_4.cjs.entry.js} +270 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +17 -5
- package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +8 -1
- package/dist/cjs/ez-grid.cjs.entry.js +29 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +295 -0
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +27 -0
- package/dist/cjs/ez-search-plus.cjs.entry.js +4 -1
- package/dist/cjs/{ez-filter-input_2.cjs.entry.js → ez-tooltip.cjs.entry.js} +1 -123
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/index-a7b0c73d.js +20 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/purify-a7dc3a08.js +1354 -0
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/ez-check/ez-check.css +1 -1
- package/dist/collection/components/ez-chip/ez-chip.js +20 -1
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +1 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +53 -5
- package/dist/collection/components/ez-form-view/ez-form-view.js +2 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +4 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +25 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +4 -1
- package/dist/collection/components/ez-icon/ez-icon.css +147 -140
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +2 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +3 -2
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css +22 -0
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js +131 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.css +35 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.js +544 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js +39 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js +19 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js +19 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css +20 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js +122 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js +19 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css +42 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js +183 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css +70 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js +216 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js +1 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js +14 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js +10 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.css +1 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +3 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +1 -1
- package/dist/custom-elements/index.d.ts +48 -0
- package/dist/custom-elements/index.js +2048 -19
- package/dist/esm/RichToolbarHelper-fd6427df.js +41 -0
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/ez-card-item_2.entry.js +1 -1
- package/dist/esm/ez-chart.entry.js +1 -16
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +2 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/{ez-combo-box-list_3.entry.js → ez-combo-box-list_4.entry.js} +271 -3
- package/dist/esm/ez-combo-box.entry.js +17 -5
- package/dist/esm/ez-filter-input.entry.js +125 -0
- package/dist/esm/ez-form-view.entry.js +8 -1
- package/dist/esm/ez-grid.entry.js +29 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-link-builder_6.entry.js +286 -0
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-rich-toolbar-item.entry.js +23 -0
- package/dist/esm/ez-search-plus.entry.js +4 -1
- package/dist/esm/{ez-filter-input_2.entry.js → ez-tooltip.entry.js} +3 -124
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/index-baa5e267.js +20 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/purify-da6317bb.js +1352 -0
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-112455b1.js +1 -0
- package/dist/ezui/{p-5dde9df3.entry.js → p-1276ef79.entry.js} +1 -1
- package/dist/ezui/p-1c55dda0.js +3 -0
- package/dist/ezui/p-1cebdc92.js +1 -0
- package/dist/ezui/p-20c024f7.entry.js +1 -0
- package/dist/ezui/{p-b38411b4.entry.js → p-31f0d5f8.entry.js} +46 -46
- package/dist/ezui/{p-26685c50.entry.js → p-454bba13.entry.js} +1 -1
- package/dist/ezui/p-5cda9526.entry.js +1 -0
- package/dist/ezui/p-6369a0cd.entry.js +1 -0
- package/dist/ezui/p-71c2ec1f.entry.js +1 -0
- package/dist/ezui/p-79044c3e.entry.js +1 -0
- package/dist/ezui/{p-b81881ac.entry.js → p-7f792043.entry.js} +1 -1
- package/dist/ezui/p-80461324.entry.js +1 -0
- package/dist/ezui/{p-69937816.entry.js → p-8afb6e8a.entry.js} +1 -1
- package/dist/ezui/p-91c9d50e.entry.js +1 -0
- package/dist/ezui/{p-9567b31a.entry.js → p-a3782637.entry.js} +1 -1
- package/dist/ezui/p-beb42de1.entry.js +1 -0
- package/dist/ezui/p-dfd9c473.entry.js +1 -0
- package/dist/ezui/p-ec0d8122.entry.js +1 -0
- package/dist/types/components/ez-chip/ez-chip.d.ts +4 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +10 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +1 -0
- package/dist/types/components/ez-rich-text/ez-link-builder/ez-link-builder.d.ts +17 -0
- package/dist/types/components/ez-rich-text/ez-rich-text.d.ts +98 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.d.ts +43 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.d.ts +3 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.d.ts +3 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.d.ts +11 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.d.ts +3 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.d.ts +33 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts +37 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.d.ts +1 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.d.ts +1 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.d.ts +1 -0
- package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +1 -0
- package/dist/types/components.d.ts +315 -0
- package/package.json +2 -1
- package/react/components.d.ts +8 -0
- package/react/components.js +8 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-2b42abbb.entry.js +0 -1
- package/dist/ezui/p-341da682.entry.js +0 -1
- package/dist/ezui/p-35115d5d.entry.js +0 -1
- package/dist/ezui/p-63cb493e.entry.js +0 -1
- package/dist/ezui/p-97c7cf51.entry.js +0 -1
- package/dist/ezui/p-d47dabdf.entry.js +0 -1
- package/dist/ezui/p-e06a9886.entry.js +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.link-builder-container {
|
|
2
|
+
font-family: 'Roboto';
|
|
3
|
+
color: #2b3a54;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 10px;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.header {
|
|
11
|
+
display: flex;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
font-size: 16px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.actions {
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: flex-end;
|
|
19
|
+
gap: 12px;
|
|
20
|
+
margin-top: 12px;
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
import { RICH_TOOLBAR_COMMANDS } from '../ez-rich-toolbar/RichToolbarHelper';
|
|
3
|
+
export class EzLinkBuilder {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.textToShow = undefined;
|
|
6
|
+
this.link = undefined;
|
|
7
|
+
this.openInNewGuide = false;
|
|
8
|
+
}
|
|
9
|
+
async show(text) {
|
|
10
|
+
this._popupElement.opened = true;
|
|
11
|
+
if (text) {
|
|
12
|
+
this.textToShow = text;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
async hide() {
|
|
16
|
+
this._popupElement.opened = false;
|
|
17
|
+
}
|
|
18
|
+
async handleCancel() {
|
|
19
|
+
this.clearValues();
|
|
20
|
+
this.executeToolbarCommand.emit({ command: RICH_TOOLBAR_COMMANDS.FOCUS });
|
|
21
|
+
await this.hide();
|
|
22
|
+
}
|
|
23
|
+
clearValues() {
|
|
24
|
+
this.link = '';
|
|
25
|
+
this.textToShow = '';
|
|
26
|
+
this.openInNewGuide = false;
|
|
27
|
+
}
|
|
28
|
+
async handleCreateLink() {
|
|
29
|
+
const tag = `<a href="${this.link}" ${this.openInNewGuide ? 'target="_blank" rel="noopener noreferrer"' : ''}>${this.textToShow ? this.textToShow : this.link}</a>`;
|
|
30
|
+
this.executeToolbarCommand.emit({ command: RICH_TOOLBAR_COMMANDS.FORMAT, value: tag });
|
|
31
|
+
this.clearValues();
|
|
32
|
+
await this.hide();
|
|
33
|
+
}
|
|
34
|
+
async handleActionPopup(event) {
|
|
35
|
+
if (event.detail === 'OK') {
|
|
36
|
+
await this.handleCreateLink();
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (event.detail === 'CANCEL' || event.detail === 'CLOSE') {
|
|
40
|
+
await this.handleCancel();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
getOkButtonStatus() {
|
|
44
|
+
var _a;
|
|
45
|
+
return ((_a = this.link) === null || _a === void 0 ? void 0 : _a.trim()) ? 'ENABLED' : 'DISABLED';
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
return (h("ez-popup", { heightMode: 'auto', size: 'small', useHeader: false, ref: ref => this._popupElement = ref, onEzClosePopup: () => this.clearValues() }, h("div", null, h("ez-modal-container", { modalTitle: "Adicionar link", modalSubTitle: "Insira um link no texto para abrir novas p\u00E1ginas.", okButtonLabel: "Enviar", cancelButtonLabel: "Cancelar", onEzModalAction: this.handleActionPopup.bind(this), okButtonStatus: this.getOkButtonStatus() }, h("div", { class: 'link-builder-container' }, h("ez-text-input", { id: 'link_url_input', label: 'Insira a URL destino', value: this.link, onEzChange: (e) => this.link = e.detail }), h("ez-text-input", { id: 'link_text_input', label: 'Insira o texto a ser exibido', value: this.textToShow, onEzChange: (e) => this.textToShow = e.detail }), h("ez-check", { label: 'Abrir em uma nova página.', value: this.openInNewGuide, onEzChange: (e) => this.openInNewGuide = e.detail }))))));
|
|
49
|
+
}
|
|
50
|
+
static get is() { return "ez-link-builder"; }
|
|
51
|
+
static get encapsulation() { return "scoped"; }
|
|
52
|
+
static get originalStyleUrls() {
|
|
53
|
+
return {
|
|
54
|
+
"$": ["ez-link-builder.css"]
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
static get styleUrls() {
|
|
58
|
+
return {
|
|
59
|
+
"$": ["ez-link-builder.css"]
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
static get states() {
|
|
63
|
+
return {
|
|
64
|
+
"textToShow": {},
|
|
65
|
+
"link": {},
|
|
66
|
+
"openInNewGuide": {}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
static get events() {
|
|
70
|
+
return [{
|
|
71
|
+
"method": "executeToolbarCommand",
|
|
72
|
+
"name": "executeToolbarCommand",
|
|
73
|
+
"bubbles": true,
|
|
74
|
+
"cancelable": true,
|
|
75
|
+
"composed": true,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [],
|
|
78
|
+
"text": ""
|
|
79
|
+
},
|
|
80
|
+
"complexType": {
|
|
81
|
+
"original": "RichToolbarCommand",
|
|
82
|
+
"resolved": "RichToolbarCommand",
|
|
83
|
+
"references": {
|
|
84
|
+
"RichToolbarCommand": {
|
|
85
|
+
"location": "import",
|
|
86
|
+
"path": "../ez-rich-toolbar/RichToolbarHelper"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}];
|
|
91
|
+
}
|
|
92
|
+
static get methods() {
|
|
93
|
+
return {
|
|
94
|
+
"show": {
|
|
95
|
+
"complexType": {
|
|
96
|
+
"signature": "(text?: string) => Promise<void>",
|
|
97
|
+
"parameters": [{
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": ""
|
|
100
|
+
}],
|
|
101
|
+
"references": {
|
|
102
|
+
"Promise": {
|
|
103
|
+
"location": "global"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"return": "Promise<void>"
|
|
107
|
+
},
|
|
108
|
+
"docs": {
|
|
109
|
+
"text": "",
|
|
110
|
+
"tags": []
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"hide": {
|
|
114
|
+
"complexType": {
|
|
115
|
+
"signature": "() => Promise<void>",
|
|
116
|
+
"parameters": [],
|
|
117
|
+
"references": {
|
|
118
|
+
"Promise": {
|
|
119
|
+
"location": "global"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"return": "Promise<void>"
|
|
123
|
+
},
|
|
124
|
+
"docs": {
|
|
125
|
+
"text": "",
|
|
126
|
+
"tags": []
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
font-family: Roboto;
|
|
5
|
+
|
|
6
|
+
/*@doc Define a sombra do header.*/
|
|
7
|
+
--ez-rich-text--box-shadow: 0 0 3px 0 #DCE0E8;
|
|
8
|
+
/*@doc Define o outline usado como borda do header.*/
|
|
9
|
+
--ez-rich-text--shadow--outline: var(--shadow--outline) var(--color--strokes);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.editor-container.bordered {
|
|
13
|
+
border-radius: 12px;
|
|
14
|
+
border: 1px solid #DCE0E8;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
.editor-container {
|
|
19
|
+
width: 100%;
|
|
20
|
+
border-radius: 12px;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
ez-text-area{
|
|
26
|
+
--text-area__input--border: 1px solid;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.preview{
|
|
30
|
+
min-height: 20px;
|
|
31
|
+
padding: 12px;
|
|
32
|
+
resize: both;
|
|
33
|
+
overflow: auto;
|
|
34
|
+
max-width: 100%;
|
|
35
|
+
}
|