diff --git a/integrations/src/build/integrations/src/segal.js b/integrations/src/build/integrations/src/segal.js index 1c98932..db987ae 100644 --- a/integrations/src/build/integrations/src/segal.js +++ b/integrations/src/build/integrations/src/segal.js @@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { @@ -43,52 +43,52 @@ var initialise = function () { return __awaiter(void 0, void 0, void 0, function case 0: _a.trys.push([0, 2, , 3]); converter = new FreeDatas2HTML("CSV"); - converter.parser.setRemoteSource({ url: "https://www.segal.bzh/data/medias/partenaires/partenaires.csv" }); + converter.parser.setRemoteSource({ url: "http://localhost:8080/datas/partenaires.csv" }); return [4, converter.run()]; case 1: _a.sent(); renderSettings = { allBegining: "", - datasLinesDisplaying: "
  • ##0##

  • " + datasLinesDisplaying: "
  • ##0##

  • " }; rendName2HTML = function (values) { if (values["Fiche partenaire"] !== undefined && values["Fiche partenaire"].trim() !== "") - return "" + values["Nom commercial"].trim() + ""; + return "").concat(values["Nom commercial"].trim(), ""); else return values["Nom commercial"].trim(); }; rendSSDomaine2HTML = function (values) { if (values["Sous activités"] !== undefined && values["Sous activités"].trim() !== "") - return "
  • " + values["Sous activités"].trim() + "
  • "; + return "
  • ".concat(values["Sous activités"].trim(), "
  • "); else return ""; }; rendLieuxVente2HTML = function (values) { if (values["Ville (si adresse pertinente)"] !== undefined && values["Ville (si adresse pertinente)"].trim() !== "") - return values["Adresse (si pertinente)"].trim() + ", " + values["Ville (si adresse pertinente)"].trim(); + return "".concat(values["Adresse (si pertinente)"].trim(), ", ").concat(values["Ville (si adresse pertinente)"].trim(), ". "); else return ""; }; rendTel2HTML = function (values) { if (values["Téléphone"].trim() !== "") - return "
  • " + values['Téléphone'].trim() + "
  • "; + return "
  • ").concat(values['Téléphone'].trim(), "
  • "); else return ""; }; rendEmail2HTML = function (values) { if (values["Courriel"].trim() !== "") - return "
  • 📧 Courriel
  • "; + return "
  • 📧 Courriel
  • "); else return ""; }; rendSite2HTML = function (values) { if (values["www"].trim() !== "") - return "
  • Sa page internet
  • "; + return "
  • Sa page internet
  • "); else if (values["FB"].trim() !== "") - return "
  • Sa page facebook
  • "; + return "
  • Sa page facebook
  • "); else if (values["IG"].trim() !== "") - return "
  • Sa page instagram
  • "; + return "
  • Sa page instagram
  • "); else return ""; }; diff --git a/integrations/src/build/src/FreeDatas2HTML.js b/integrations/src/build/src/FreeDatas2HTML.js index dc396c6..0bd8497 100644 --- a/integrations/src/build/src/FreeDatas2HTML.js +++ b/integrations/src/build/src/FreeDatas2HTML.js @@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { @@ -84,28 +84,28 @@ var FreeDatas2HTML = (function () { set: function (elt) { this._datasViewElt = FreeDatas2HTML.checkInDOMById(elt); }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(FreeDatas2HTML.prototype, "datas", { get: function () { return this._datas; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(FreeDatas2HTML.prototype, "fields", { get: function () { return this._fields; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(FreeDatas2HTML.prototype, "nbDatasValid", { get: function () { return this._nbDatasValid; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(FreeDatas2HTML.prototype, "fields2Rend", { @@ -126,14 +126,14 @@ var FreeDatas2HTML = (function () { } } }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(FreeDatas2HTML.prototype, "datas2Rend", { get: function () { return this._datas2Rend; }, - enumerable: true, + enumerable: false, configurable: true }); FreeDatas2HTML.prototype.getSortingFunctionForField = function (datasFieldNb) { @@ -216,7 +216,7 @@ var FreeDatas2HTML = (function () { this._datasSortingFunctions.push(checkedFunction); } }, - enumerable: true, + enumerable: false, configurable: true }); FreeDatas2HTML.prototype.refreshView = function (paginationSelected) { diff --git a/integrations/src/build/src/Pagination.js b/integrations/src/build/src/Pagination.js index fd83039..11ca7a2 100644 --- a/integrations/src/build/src/Pagination.js +++ b/integrations/src/build/src/Pagination.js @@ -26,7 +26,7 @@ var Pagination = (function () { } this._selectedValue = value; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(Pagination.prototype, "options", { @@ -55,14 +55,14 @@ var Pagination = (function () { } this._options = options; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(Pagination.prototype, "pages", { get: function () { return this._pages; }, - enumerable: true, + enumerable: false, configurable: true }); Pagination.prototype.options2HTML = function () { diff --git a/integrations/src/build/src/ParserForCSV.js b/integrations/src/build/src/ParserForCSV.js index 3d72232..971351f 100644 --- a/integrations/src/build/src/ParserForCSV.js +++ b/integrations/src/build/src/ParserForCSV.js @@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { @@ -71,7 +71,7 @@ var ParserForCSV = (function () { get: function () { return this._datasRemoteSource; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(ParserForCSV.prototype, "datas2Parse", { @@ -84,21 +84,21 @@ var ParserForCSV = (function () { else this._datas2Parse = datas.trim(); }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(ParserForCSV.prototype, "parseResults", { get: function () { return this._parseResults; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(ParserForCSV.prototype, "privateOptions", { get: function () { return this._privateOptions; }, - enumerable: true, + enumerable: false, configurable: true }); ParserForCSV.prototype.parse = function () { diff --git a/integrations/src/build/src/ParserForHTML.js b/integrations/src/build/src/ParserForHTML.js index 8979435..0903d2e 100644 --- a/integrations/src/build/src/ParserForHTML.js +++ b/integrations/src/build/src/ParserForHTML.js @@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { @@ -55,14 +55,14 @@ var ParserForHTML = (function () { get: function () { return this._datasRemoteSource; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(ParserForHTML.prototype, "document2Parse", { get: function () { return this._document2Parse; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(ParserForHTML.prototype, "fieldsSelector", { @@ -75,7 +75,7 @@ var ParserForHTML = (function () { else this._fieldsSelector = selector.trim(); }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(ParserForHTML.prototype, "rowsSelector", { @@ -88,7 +88,7 @@ var ParserForHTML = (function () { else this._rowsSelector = selector.trim(); }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(ParserForHTML.prototype, "datasSelector", { @@ -101,14 +101,14 @@ var ParserForHTML = (function () { else this._datasSelector = selector.trim(); }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(ParserForHTML.prototype, "parseResults", { get: function () { return this._parseResults; }, - enumerable: true, + enumerable: false, configurable: true }); ParserForHTML.prototype.parse = function () { diff --git a/integrations/src/build/src/ParserForJSON.js b/integrations/src/build/src/ParserForJSON.js index bb0085e..4b22327 100644 --- a/integrations/src/build/src/ParserForJSON.js +++ b/integrations/src/build/src/ParserForJSON.js @@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); - while (_) try { + while (g && (g = 0, op[0] && (_ = 0)), _) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { @@ -52,7 +52,7 @@ var ParserForJSON = (function () { get: function () { return this._datasRemoteSource; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(ParserForJSON.prototype, "datas2Parse", { @@ -65,14 +65,14 @@ var ParserForJSON = (function () { else this._datas2Parse = datas.trim(); }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(ParserForJSON.prototype, "parseResults", { get: function () { return this._parseResults; }, - enumerable: true, + enumerable: false, configurable: true }); ParserForJSON.prototype.parse = function () { diff --git a/integrations/src/build/src/RemoteSource.js b/integrations/src/build/src/RemoteSource.js index 626d48c..c4cd6f9 100644 --- a/integrations/src/build/src/RemoteSource.js +++ b/integrations/src/build/src/RemoteSource.js @@ -32,7 +32,7 @@ var RemoteSource = (function () { this._url = url.trim(); } }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(RemoteSource.prototype, "headers", { @@ -50,7 +50,7 @@ var RemoteSource = (function () { this._headers.push({ key: header.key, value: header.value.trim() }); } }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(RemoteSource.prototype, "withCredentials", { @@ -60,7 +60,7 @@ var RemoteSource = (function () { set: function (credentials) { this._withCredentials = credentials; }, - enumerable: true, + enumerable: false, configurable: true }); RemoteSource.prototype.getFetchSettings = function () { diff --git a/integrations/src/build/src/Render.js b/integrations/src/build/src/Render.js index 15afb9c..77adb5e 100644 --- a/integrations/src/build/src/Render.js +++ b/integrations/src/build/src/Render.js @@ -16,7 +16,7 @@ var Render = (function () { else this._fields = fields; }, - enumerable: true, + enumerable: false, configurable: true }); Render.prototype.rend2HTML = function () { diff --git a/integrations/src/build/src/SearchEngine.js b/integrations/src/build/src/SearchEngine.js index eb0173d..e52f838 100644 --- a/integrations/src/build/src/SearchEngine.js +++ b/integrations/src/build/src/SearchEngine.js @@ -39,14 +39,14 @@ var SearchEngine = (function () { get: function () { return this._converter; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(SearchEngine.prototype, "datasViewElt", { get: function () { return this._datasViewElt; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(SearchEngine.prototype, "btnTxt", { @@ -59,21 +59,21 @@ var SearchEngine = (function () { else console.error(errors.searchBtnTxtFail); }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(SearchEngine.prototype, "inputValue", { get: function () { return this._inputValue; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(SearchEngine.prototype, "fields2Search", { get: function () { return this._fields2Search; }, - enumerable: true, + enumerable: false, configurable: true }); SearchEngine.prototype.filter2HTML = function () { @@ -81,13 +81,13 @@ var SearchEngine = (function () { this.placeholder = "Please enter at least NB characters."; var html = "
    "; if (this.label !== "") - html += ""; + html += ""); html += " 0) - html += " placeholder=\"" + this.placeholder.replace("NB", "" + this.nbCharsForSearch) + "\""; + html += " placeholder=\"".concat(this.placeholder.replace("NB", "" + this.nbCharsForSearch), "\""); else if (this.placeholder !== "") - html += " placeholder=\"" + this.placeholder + "\""; - html += "> 
    "; + html += " placeholder=\"".concat(this.placeholder, "\""); + html += "> "); this._datasViewElt.eltDOM.innerHTML = html; var searchInput = document.getElementById("freeDatas2HTMLSearchTxt"), mySearch = this; searchInput.addEventListener("input", function (e) { diff --git a/integrations/src/build/src/Selector.js b/integrations/src/build/src/Selector.js index 52509c9..4aac0b4 100644 --- a/integrations/src/build/src/Selector.js +++ b/integrations/src/build/src/Selector.js @@ -26,49 +26,49 @@ var Selector = (function () { get: function () { return this._converter; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(Selector.prototype, "datasViewElt", { get: function () { return this._datasViewElt; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(Selector.prototype, "datasFieldNb", { get: function () { return this._datasFieldNb; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(Selector.prototype, "name", { get: function () { return this._name; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(Selector.prototype, "selectedValues", { get: function () { return this._selectedValues; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(Selector.prototype, "separator", { get: function () { return this._separator; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(Selector.prototype, "values", { get: function () { return this._values; }, - enumerable: true, + enumerable: false, configurable: true }); Selector.prototype.setValues = function () { diff --git a/integrations/src/build/src/SortingField.js b/integrations/src/build/src/SortingField.js index ff92884..7f381c0 100644 --- a/integrations/src/build/src/SortingField.js +++ b/integrations/src/build/src/SortingField.js @@ -17,21 +17,21 @@ var SortingField = (function () { get: function () { return this._converter; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(SortingField.prototype, "datasFieldNb", { get: function () { return this._datasFieldNb; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(SortingField.prototype, "fieldsDOMSelector", { get: function () { return this._fieldsDOMSelector; }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(SortingField.prototype, "order", { @@ -41,7 +41,7 @@ var SortingField = (function () { set: function (setting) { this._order = setting; }, - enumerable: true, + enumerable: false, configurable: true }); SortingField.prototype.field2HTML = function () { diff --git a/integrations/src/build/src/extensions/MixedFieldsRender.js b/integrations/src/build/src/extensions/MixedFieldsRender.js index 072b9dd..2679a1b 100644 --- a/integrations/src/build/src/extensions/MixedFieldsRender.js +++ b/integrations/src/build/src/extensions/MixedFieldsRender.js @@ -16,7 +16,7 @@ var MixedFieldsRender = (function () { else this._fields = fields; }, - enumerable: true, + enumerable: false, configurable: true }); MixedFieldsRender.prototype.rend2HTML = function () { diff --git a/integrations/src/build/src/interfaces.js b/integrations/src/build/src/interfaces.js index 092bc2b..95da36c 100644 --- a/integrations/src/build/src/interfaces.js +++ b/integrations/src/build/src/interfaces.js @@ -1 +1,2 @@ ; +export {}; diff --git a/integrations/src/build/src/interfacesPapaParse.js b/integrations/src/build/src/interfacesPapaParse.js index e69de29..cb0ff5c 100644 --- a/integrations/src/build/src/interfacesPapaParse.js +++ b/integrations/src/build/src/interfacesPapaParse.js @@ -0,0 +1 @@ +export {}; diff --git a/integrations/src/segal.ts b/integrations/src/segal.ts index ad905e8..31982aa 100644 --- a/integrations/src/segal.ts +++ b/integrations/src/segal.ts @@ -7,6 +7,7 @@ const initialise=async () => { // Création d'un convertisseur parsant des données transmises en JSON : const converter=new FreeDatas2HTML("CSV"); + //converter.parser.setRemoteSource({ url: "http://localhost:8080/datas/partenaires.csv"}); converter.parser.setRemoteSource({ url: "https://www.segal.bzh/data/medias/partenaires/partenaires.csv"}); // Parsage des données, qui ne sont pas encore affichées : await converter.run(); @@ -15,8 +16,9 @@ const initialise=async () => { allBegining: "", - datasLinesDisplaying: `
  • ##0##

  • ` + datasLinesDisplaying: `
  • ##0##

  • ` }; + // Fonctions spécifiques pour créer les liens hypertextes : const rendName2HTML=(values: {[index: string]:string} ) : string => { @@ -37,10 +39,10 @@ const initialise=async () => const rendLieuxVente2HTML=(values: {[index: string]:string} ) : string => { if(values["Ville (si adresse pertinente)"] !== undefined && values["Ville (si adresse pertinente)"].trim() !== "") - return `${values["Adresse (si pertinente)"].trim()}, ${values["Ville (si adresse pertinente)"].trim()}`; + return `${values["Adresse (si pertinente)"].trim()}, ${values["Ville (si adresse pertinente)"].trim()}. `; else return ""; - }; + }; const rendTel2HTML=(values: {[index: string]:string} ) : string => {