From 1a64e707f17eddc31336b681bd4c9457ea1d290f Mon Sep 17 00:00:00 2001 From: Itallo Date: Wed, 19 Jun 2024 15:16:22 -0300 Subject: [PATCH] feat: add html styling --- index.html | 7 + package-lock.json | 44 ++++++- package.json | 2 +- src/syncfusion/navigationFields/index.ts | 155 ++++++++++++----------- src/syncfusion/toolbar/config.ts | 2 - 5 files changed, 126 insertions(+), 84 deletions(-) diff --git a/index.html b/index.html index 6beceaa..860329e 100644 --- a/index.html +++ b/index.html @@ -56,6 +56,13 @@ rel="nofollow" /> + + =24.2", + "@syncfusion/ej2-grids": ">=24.2", "@syncfusion/ej2-locale": ">=24.2", "@syncfusion/ej2-ribbon": ">=24.2", "tinymce": ">=6.5" @@ -811,6 +811,7 @@ "version": "26.1.38", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-grids/-/ej2-grids-26.1.38.tgz", "integrity": "sha512-iHcmsF/PdUKjSo1Ub/nEUcP7s/3wXnw1AILnox57g4vMP7VLP3bA47aBTEgzMJ992O5f799wl+2ZAjJnVIIu8w==", + "peer": true, "dependencies": { "@syncfusion/ej2-base": "~26.1.37", "@syncfusion/ej2-buttons": "~26.1.35", @@ -833,6 +834,7 @@ "version": "26.1.37", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-base/-/ej2-base-26.1.37.tgz", "integrity": "sha512-aDnABkOg+5Uw9SiORkCas8p+5/U+GWI0lL1czZJAwsJ1OGw3vN1zju6klwTX8prefOEh9/aQ67pmt2yepO00bg==", + "peer": true, "dependencies": { "@syncfusion/ej2-icons": "~26.1.35" }, @@ -844,6 +846,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-buttons/-/ej2-buttons-26.1.35.tgz", "integrity": "sha512-NfJHzI5GuAjyttM2QS3rdbG03miOcIZ+pgbiIptBuo0d8oe5k7iOTAGLfN+y084qo6ZvTiNlE07UbqDb6Lko2w==", + "peer": true, "dependencies": { "@syncfusion/ej2-base": "~26.1.35" } @@ -852,6 +855,7 @@ "version": "26.1.38", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-calendars/-/ej2-calendars-26.1.38.tgz", "integrity": "sha512-cRcbf1Fvrcc5d1MdTxvlO527mftmc+Oussn0e79khNwNC9LZTlHN1rThq+GOXqXkwXqb37rGUiZSAmO5QvRl3g==", + "peer": true, "dependencies": { "@syncfusion/ej2-base": "~26.1.37", "@syncfusion/ej2-buttons": "~26.1.35", @@ -864,6 +868,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-compression/-/ej2-compression-26.1.35.tgz", "integrity": "sha512-gTWqnDC3321mLaUE/T1LfdZ+Pu5NhY7Y7GlOX3Q1lqWKqE9BQDaIkZx31TqtmwwCQ35i/ZOFdg0F93Kb3PM8dA==", + "peer": true, "dependencies": { "@syncfusion/ej2-file-utils": "~26.1.35" } @@ -872,6 +877,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-data/-/ej2-data-26.1.35.tgz", "integrity": "sha512-dlg+Ag+7lvU1wrfAtSF1pHABIC7PyD5RsAI5ju1io00z3cxfuoY6ctGamHLx2IYTDdM3q5WaPB13dayTBjuU4g==", + "peer": true, "dependencies": { "@syncfusion/ej2-base": "~26.1.35" } @@ -880,6 +886,7 @@ "version": "26.1.38", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-26.1.38.tgz", "integrity": "sha512-hAFZ1tMSIgDynpdz+gMP4L5Qew5jh4EyjpmehFUPIj6DaVmfk3A+fWZjmdo355noqzFYrToEx36jVLqAD+yPyw==", + "peer": true, "dependencies": { "@syncfusion/ej2-base": "~26.1.37", "@syncfusion/ej2-data": "~26.1.35", @@ -894,6 +901,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-excel-export/-/ej2-excel-export-26.1.35.tgz", "integrity": "sha512-AlFYEBI97I0zjzGrVlqu18mux7TH6l7bSXNdWbjMf961tMSh/TkqjxkbsIWdUjqKz5M/6Vy7ElsnkjDGN1emIA==", + "peer": true, "dependencies": { "@syncfusion/ej2-base": "~26.1.35", "@syncfusion/ej2-compression": "~26.1.35" @@ -902,17 +910,20 @@ "node_modules/@syncfusion/ej2-grids/node_modules/@syncfusion/ej2-file-utils": { "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-file-utils/-/ej2-file-utils-26.1.35.tgz", - "integrity": "sha512-0aeFbfs1kL/UV/LV+jFeuY/63dN0N4z5xU7mhD+7W4wFyXH9S60rfgE/UawC+UFJAT7H+TrGdOGQ3ZfacQTEmQ==" + "integrity": "sha512-0aeFbfs1kL/UV/LV+jFeuY/63dN0N4z5xU7mhD+7W4wFyXH9S60rfgE/UawC+UFJAT7H+TrGdOGQ3ZfacQTEmQ==", + "peer": true }, "node_modules/@syncfusion/ej2-grids/node_modules/@syncfusion/ej2-icons": { "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-icons/-/ej2-icons-26.1.35.tgz", - "integrity": "sha512-rhaJDhN+vDBai+7xSw+xMnzAvLtG75vYoWvVA7wgUawA4boA4ODtkEgNYbMPJOEbtYaEQO7s3b7nzzWbXI3v+Q==" + "integrity": "sha512-rhaJDhN+vDBai+7xSw+xMnzAvLtG75vYoWvVA7wgUawA4boA4ODtkEgNYbMPJOEbtYaEQO7s3b7nzzWbXI3v+Q==", + "peer": true }, "node_modules/@syncfusion/ej2-grids/node_modules/@syncfusion/ej2-inputs": { "version": "26.1.38", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-inputs/-/ej2-inputs-26.1.38.tgz", "integrity": "sha512-sEq9deDyjwWn435xTz9MjdoYwAXPaAGLQeUdKKN9RdK0mJK8QJsr8+U1OmmBZujC0eJcSjYF1N5JTuEppOjtUg==", + "peer": true, "dependencies": { "@syncfusion/ej2-base": "~26.1.37", "@syncfusion/ej2-buttons": "~26.1.35", @@ -924,6 +935,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-lists/-/ej2-lists-26.1.35.tgz", "integrity": "sha512-XVLm+u11+63dpudZVrgrocK/DihYyAq9jTamfKQ1HkAV27gPTyilV+6ywizGmZmSystgMB+0YBKRDjqv85D1+A==", + "peer": true, "dependencies": { "@syncfusion/ej2-base": "~26.1.35", "@syncfusion/ej2-buttons": "~26.1.35", @@ -935,6 +947,7 @@ "version": "26.1.38", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-navigations/-/ej2-navigations-26.1.38.tgz", "integrity": "sha512-fuXsUaEb8fhL/qKIMRSzS16iP3XTeTjFtkdXER4oynMr+AKzllzEJhXj6ZEpL+mObRRBX2Zdd1nsgDmvqnLG7g==", + "peer": true, "dependencies": { "@syncfusion/ej2-base": "~26.1.37", "@syncfusion/ej2-buttons": "~26.1.35", @@ -948,6 +961,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-notifications/-/ej2-notifications-26.1.35.tgz", "integrity": "sha512-R8r1Wbfo2saM/jqbPmCfuZ9Y1Uq6QCjjEQkSzz8fSA/slddutl67RfVWCbjg9aTGx64sQctXHO7r3GjFqfPUjQ==", + "peer": true, "dependencies": { "@syncfusion/ej2-base": "~26.1.35", "@syncfusion/ej2-buttons": "~26.1.35", @@ -958,6 +972,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-26.1.35.tgz", "integrity": "sha512-oGUGHR0x5Z/M3w4VXqfx75rZSuqeIzqsas4YCV3r0gFFn2Vj1m9OqTTgoTZaSuF6SFqiq4Jgoivai7LE/16lsw==", + "peer": true, "dependencies": { "@syncfusion/ej2-compression": "~26.1.35" } @@ -966,6 +981,7 @@ "version": "26.1.38", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-popups/-/ej2-popups-26.1.38.tgz", "integrity": "sha512-XwXrB9EKZghX6xJNel5bDbeB6y/SdBonvLwGVxp2b+CYymdc+T03lQaDYO7FAtU2JlnaICsmx7OvoIIoYY+e3Q==", + "peer": true, "dependencies": { "@syncfusion/ej2-base": "~26.1.37", "@syncfusion/ej2-buttons": "~26.1.35" @@ -975,6 +991,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-26.1.35.tgz", "integrity": "sha512-c+iUzD+9rvbriglYzQGJRFAijZ0vRHxnsUNo5whSdDoQCjZnE8avuz/6cJpkY/HyGNIzTpDEayQXB4Z+JgMRqw==", + "peer": true, "dependencies": { "@syncfusion/ej2-base": "~26.1.35", "@syncfusion/ej2-popups": "~26.1.35" @@ -6370,6 +6387,7 @@ "version": "26.1.38", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-grids/-/ej2-grids-26.1.38.tgz", "integrity": "sha512-iHcmsF/PdUKjSo1Ub/nEUcP7s/3wXnw1AILnox57g4vMP7VLP3bA47aBTEgzMJ992O5f799wl+2ZAjJnVIIu8w==", + "peer": true, "requires": { "@syncfusion/ej2-base": "~26.1.37", "@syncfusion/ej2-buttons": "~26.1.35", @@ -6392,6 +6410,7 @@ "version": "26.1.37", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-base/-/ej2-base-26.1.37.tgz", "integrity": "sha512-aDnABkOg+5Uw9SiORkCas8p+5/U+GWI0lL1czZJAwsJ1OGw3vN1zju6klwTX8prefOEh9/aQ67pmt2yepO00bg==", + "peer": true, "requires": { "@syncfusion/ej2-icons": "~26.1.35" } @@ -6400,6 +6419,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-buttons/-/ej2-buttons-26.1.35.tgz", "integrity": "sha512-NfJHzI5GuAjyttM2QS3rdbG03miOcIZ+pgbiIptBuo0d8oe5k7iOTAGLfN+y084qo6ZvTiNlE07UbqDb6Lko2w==", + "peer": true, "requires": { "@syncfusion/ej2-base": "~26.1.35" } @@ -6408,6 +6428,7 @@ "version": "26.1.38", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-calendars/-/ej2-calendars-26.1.38.tgz", "integrity": "sha512-cRcbf1Fvrcc5d1MdTxvlO527mftmc+Oussn0e79khNwNC9LZTlHN1rThq+GOXqXkwXqb37rGUiZSAmO5QvRl3g==", + "peer": true, "requires": { "@syncfusion/ej2-base": "~26.1.37", "@syncfusion/ej2-buttons": "~26.1.35", @@ -6420,6 +6441,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-compression/-/ej2-compression-26.1.35.tgz", "integrity": "sha512-gTWqnDC3321mLaUE/T1LfdZ+Pu5NhY7Y7GlOX3Q1lqWKqE9BQDaIkZx31TqtmwwCQ35i/ZOFdg0F93Kb3PM8dA==", + "peer": true, "requires": { "@syncfusion/ej2-file-utils": "~26.1.35" } @@ -6428,6 +6450,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-data/-/ej2-data-26.1.35.tgz", "integrity": "sha512-dlg+Ag+7lvU1wrfAtSF1pHABIC7PyD5RsAI5ju1io00z3cxfuoY6ctGamHLx2IYTDdM3q5WaPB13dayTBjuU4g==", + "peer": true, "requires": { "@syncfusion/ej2-base": "~26.1.35" } @@ -6436,6 +6459,7 @@ "version": "26.1.38", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-26.1.38.tgz", "integrity": "sha512-hAFZ1tMSIgDynpdz+gMP4L5Qew5jh4EyjpmehFUPIj6DaVmfk3A+fWZjmdo355noqzFYrToEx36jVLqAD+yPyw==", + "peer": true, "requires": { "@syncfusion/ej2-base": "~26.1.37", "@syncfusion/ej2-data": "~26.1.35", @@ -6450,6 +6474,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-excel-export/-/ej2-excel-export-26.1.35.tgz", "integrity": "sha512-AlFYEBI97I0zjzGrVlqu18mux7TH6l7bSXNdWbjMf961tMSh/TkqjxkbsIWdUjqKz5M/6Vy7ElsnkjDGN1emIA==", + "peer": true, "requires": { "@syncfusion/ej2-base": "~26.1.35", "@syncfusion/ej2-compression": "~26.1.35" @@ -6458,17 +6483,20 @@ "@syncfusion/ej2-file-utils": { "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-file-utils/-/ej2-file-utils-26.1.35.tgz", - "integrity": "sha512-0aeFbfs1kL/UV/LV+jFeuY/63dN0N4z5xU7mhD+7W4wFyXH9S60rfgE/UawC+UFJAT7H+TrGdOGQ3ZfacQTEmQ==" + "integrity": "sha512-0aeFbfs1kL/UV/LV+jFeuY/63dN0N4z5xU7mhD+7W4wFyXH9S60rfgE/UawC+UFJAT7H+TrGdOGQ3ZfacQTEmQ==", + "peer": true }, "@syncfusion/ej2-icons": { "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-icons/-/ej2-icons-26.1.35.tgz", - "integrity": "sha512-rhaJDhN+vDBai+7xSw+xMnzAvLtG75vYoWvVA7wgUawA4boA4ODtkEgNYbMPJOEbtYaEQO7s3b7nzzWbXI3v+Q==" + "integrity": "sha512-rhaJDhN+vDBai+7xSw+xMnzAvLtG75vYoWvVA7wgUawA4boA4ODtkEgNYbMPJOEbtYaEQO7s3b7nzzWbXI3v+Q==", + "peer": true }, "@syncfusion/ej2-inputs": { "version": "26.1.38", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-inputs/-/ej2-inputs-26.1.38.tgz", "integrity": "sha512-sEq9deDyjwWn435xTz9MjdoYwAXPaAGLQeUdKKN9RdK0mJK8QJsr8+U1OmmBZujC0eJcSjYF1N5JTuEppOjtUg==", + "peer": true, "requires": { "@syncfusion/ej2-base": "~26.1.37", "@syncfusion/ej2-buttons": "~26.1.35", @@ -6480,6 +6508,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-lists/-/ej2-lists-26.1.35.tgz", "integrity": "sha512-XVLm+u11+63dpudZVrgrocK/DihYyAq9jTamfKQ1HkAV27gPTyilV+6ywizGmZmSystgMB+0YBKRDjqv85D1+A==", + "peer": true, "requires": { "@syncfusion/ej2-base": "~26.1.35", "@syncfusion/ej2-buttons": "~26.1.35", @@ -6491,6 +6520,7 @@ "version": "26.1.38", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-navigations/-/ej2-navigations-26.1.38.tgz", "integrity": "sha512-fuXsUaEb8fhL/qKIMRSzS16iP3XTeTjFtkdXER4oynMr+AKzllzEJhXj6ZEpL+mObRRBX2Zdd1nsgDmvqnLG7g==", + "peer": true, "requires": { "@syncfusion/ej2-base": "~26.1.37", "@syncfusion/ej2-buttons": "~26.1.35", @@ -6504,6 +6534,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-notifications/-/ej2-notifications-26.1.35.tgz", "integrity": "sha512-R8r1Wbfo2saM/jqbPmCfuZ9Y1Uq6QCjjEQkSzz8fSA/slddutl67RfVWCbjg9aTGx64sQctXHO7r3GjFqfPUjQ==", + "peer": true, "requires": { "@syncfusion/ej2-base": "~26.1.35", "@syncfusion/ej2-buttons": "~26.1.35", @@ -6514,6 +6545,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-26.1.35.tgz", "integrity": "sha512-oGUGHR0x5Z/M3w4VXqfx75rZSuqeIzqsas4YCV3r0gFFn2Vj1m9OqTTgoTZaSuF6SFqiq4Jgoivai7LE/16lsw==", + "peer": true, "requires": { "@syncfusion/ej2-compression": "~26.1.35" } @@ -6522,6 +6554,7 @@ "version": "26.1.38", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-popups/-/ej2-popups-26.1.38.tgz", "integrity": "sha512-XwXrB9EKZghX6xJNel5bDbeB6y/SdBonvLwGVxp2b+CYymdc+T03lQaDYO7FAtU2JlnaICsmx7OvoIIoYY+e3Q==", + "peer": true, "requires": { "@syncfusion/ej2-base": "~26.1.37", "@syncfusion/ej2-buttons": "~26.1.35" @@ -6531,6 +6564,7 @@ "version": "26.1.35", "resolved": "https://registry.npmjs.org/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-26.1.35.tgz", "integrity": "sha512-c+iUzD+9rvbriglYzQGJRFAijZ0vRHxnsUNo5whSdDoQCjZnE8avuz/6cJpkY/HyGNIzTpDEayQXB4Z+JgMRqw==", + "peer": true, "requires": { "@syncfusion/ej2-base": "~26.1.35", "@syncfusion/ej2-popups": "~26.1.35" diff --git a/package.json b/package.json index a10d009..c68a855 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "@syncfusion/ej2-documenteditor": ">=24.2", "@syncfusion/ej2-locale": ">=24.2", "@syncfusion/ej2-ribbon": ">=24.2", + "@syncfusion/ej2-grids": ">=24.2", "tinymce": ">=6.5" }, "peerDependenciesMeta": { @@ -62,7 +63,6 @@ } }, "dependencies": { - "@syncfusion/ej2-grids": "^26.1.38", "uuid": "^10.0.0" } } diff --git a/src/syncfusion/navigationFields/index.ts b/src/syncfusion/navigationFields/index.ts index 08deb2b..1489ba4 100644 --- a/src/syncfusion/navigationFields/index.ts +++ b/src/syncfusion/navigationFields/index.ts @@ -11,9 +11,9 @@ import { v4 as uuidv4 } from "uuid"; import { IaraBookmark } from "./bookmark"; //braun -import { ItemModel } from '@syncfusion/ej2-splitbuttons'; -import { Dialog, DialogUtility } from '@syncfusion/ej2-popups'; -import { Grid } from '@syncfusion/ej2-grids'; +import { ItemModel } from "@syncfusion/ej2-splitbuttons"; +import { Dialog, DialogUtility } from "@syncfusion/ej2-popups"; +import { Edit, Grid, RowDD, rowDragAndDrop } from "@syncfusion/ej2-grids"; export class IaraSyncfusionNavigationFieldManager extends IaraEditorNavigationFieldManager { previousBookmark: IaraBookmark = { @@ -90,8 +90,8 @@ export class IaraSyncfusionNavigationFieldManager extends IaraEditorNavigationFi //braun // if (type === "Additive") { - // console.log('ABRIR MODAL DE CAMPO ADITIVO'); - // if (!content.includes("?")) this._documentEditor.editor.insertText(`?`); + // console.log('ABRIR MODAL DE CAMPO ADITIVO'); + // if (!content.includes("?")) this._documentEditor.editor.insertText(`?`); // } this.getBookmarks(); @@ -589,96 +589,99 @@ export class IaraSyncfusionNavigationFieldManager extends IaraEditorNavigationFi return this.requiredFields(); } - - addAdditiveField() - { - + addAdditiveField() { const okClick = () => { //funcao para gravar todos os dados - console.log('Additive OK'); - } + console.log("Additive OK"); + }; const cancelClick = () => { dialogUtility.hide(); - console.log('Additive Cancel'); - } - - /* let grid: Grid = new Grid({ - dataSource: [], - rowTemplate: '#rowtemplate', - columns: [ - { headerText: 'Employee Image', width: 150, textAlign: 'Center', field: 'OrderID' }, - { headerText: 'Employee Details', width: 300, field: 'EmployeeID' } - ], - height: 315 - }); */ + console.log("Additive Cancel"); + }; - let grid: Grid = new Grid({ - dataSource: [ - { - OrderID: 10258, CustomerID: 'ERNSH', EmployeeID: 1, OrderDate: new Date(8375418e5), - ShipName: 'Ernst Handel', ShipCity: 'Graz', ShipAddress: 'Kirchgasse 6', - ShipRegion: 'CJ', ShipPostalCode: '8010', ShipCountry: 'Austria', Freight: 140.51, Verified: !0 - }, + const dataSource: { + Count: number; + Identification: string; + Phrase: string; + editType: "stringedit"; + }[] = [ { - OrderID: 10259, CustomerID: 'CENTC', EmployeeID: 4, OrderDate: new Date(8376282e5), - ShipName: 'Centro comercial Moctezuma', ShipCity: 'México D.F.', ShipAddress: 'Sierras de Granada 9993', - ShipRegion: 'CJ', ShipPostalCode: '05022', ShipCountry: 'Mexico', Freight: 3.25, Verified: !1 + Count: 1, + Identification: "", + Phrase: "", + editType: "stringedit", }, - { - OrderID: 10260, CustomerID: 'OTTIK', EmployeeID: 4, OrderDate: new Date(8377146e5), - ShipName: 'Ottilies Käseladen', ShipCity: 'Köln', ShipAddress: 'Mehrheimerstr. 369', - ShipRegion: 'CJ', ShipPostalCode: '50739', ShipCountry: 'Germany', Freight: 55.09, Verified: !0 + ]; + + Grid.Inject(RowDD); + Grid.Inject(Edit); + + const grid: Grid = new Grid({ + dataSource: dataSource, + editSettings: { + allowEditing: true, + allowAdding: true, + allowDeleting: true, }, - ], - // toolbar: ['Add', 'Edit', 'Delete', 'Update', 'Cancel'], - editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true }, + allowRowDragAndDrop: true, columns: [ - { field: 'OrderID', headerText: 'Order ID', textAlign: 'Right', isPrimaryKey: true, width: 100 }, - { field: 'CustomerID', headerText: 'Customer ID', width: 120 }, - { - field: 'Freight', headerText: 'Freight', textAlign: 'Right', editType: 'numericedit', width: 150, edit: { - params: { - validateDecimalOnType: true, - decimals: 0, - format: "N" - } - } - }, - { field: 'ShipCity', headerText: 'Ship City', editType: 'dropdownedit', width: 150 } + { field: "Count", headerText: "", width: 30 }, + { field: "Identification", headerText: "Indentificação ->" }, + { + field: "Phrase", + headerText: "Frase", + }, ], - height: 265 - }); + }); + const content = ` +
+
+
+
+
+
+ + +
+
+
+
+
+

Configurações

+
+
+ + +
+
+
+ + +
+
+
+
+
+

Textos Aditivos

+
+
+
+
+
`; const dialogUtility = DialogUtility.confirm({ title: "
Campo de Texto Aditivo
", - content: `
- - -
Configurações
- - - - - Capitalizer 1ª escolha -
Textos Aditivos
-
- - -
`, + content: content, width: "450px", showCloseIcon: true, closeOnEscape: true, - okButton: { text: 'OK', click: okClick }, - cancelButton: { text: 'Cancel', click: cancelClick }, + okButton: { text: "OK", click: okClick }, + cancelButton: { text: "Cancel", click: cancelClick }, }); - grid.appendTo('#Grid'); - // grid.appendTo('#additive-field-modal'); - - - + grid.appendTo("#grid"); } - } diff --git a/src/syncfusion/toolbar/config.ts b/src/syncfusion/toolbar/config.ts index a800a4b..ea41e1e 100644 --- a/src/syncfusion/toolbar/config.ts +++ b/src/syncfusion/toolbar/config.ts @@ -328,8 +328,6 @@ export const toolBarSettings = ( navigationFields ); } - - if (funcId === "next_field") { toolbarButtonClick("NextField", editor, undefined, navigationFields); }