diff --git a/CHANGELOG.md b/CHANGELOG.md index e28ac76ee4d93e2026a20383b7f35f45243526dd..e65ecd5d48d59af0a1fd1547960ea78c06a5a4f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog - +## 2024-06-22 +- new options to define the markers that are used for the label template [#203](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/203) ## [3.69.2] - 2024-06-24 diff --git a/development/issues/open/212.html b/development/issues/open/212.html new file mode 100644 index 0000000000000000000000000000000000000000..6cfe30284a0ebee8e6272f1ab703e388030313e9 --- /dev/null +++ b/development/issues/open/212.html @@ -0,0 +1,26 @@ + <!DOCTYPE html> + <html lang="en"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>select label is not translated when the value is transferred #212</title> + <script src="./212.mjs" type="module"></script> + </head> + <body> + <h1>select label is not translated when the value is transferred #212</h1> + <p>select label is not translated when the value is transferred</p> + <ul> + <li><a href="https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/212">Issue #212</a></li> + <li><a href="/">Back to overview</a></li> + </ul> + <main> + + <monster-select value="1000" + data-monster-option-url="/issue-212.json" + data-monster-option-mapping-labeltemplate="name" + data-monster-option-mapping-valuetemplate="id" + ></monster-select> + + </main> + </body> + </html> diff --git a/development/issues/open/212.mjs b/development/issues/open/212.mjs new file mode 100644 index 0000000000000000000000000000000000000000..4795cda052e7568903b3e365583c1cc542d097ef --- /dev/null +++ b/development/issues/open/212.mjs @@ -0,0 +1,13 @@ + /** + * @file development/issues/open/212.mjs + * @url https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/212 + * @description select label is not translated when the value is transferred + * @issue 212 + */ + + import "../../../source/components/style/property.pcss"; + import "../../../source/components/style/normalize.pcss"; + import "../../../source/components/style/typography.pcss"; + import "../../../source/components/style/link.pcss"; + import "../../../source/components/style/color.pcss"; + import "../../../source/components/form/select.mjs"; diff --git a/development/mock/issue-212.js b/development/mock/issue-212.js new file mode 100644 index 0000000000000000000000000000000000000000..8533662586adc183f07a44429a34879c79b4b419 --- /dev/null +++ b/development/mock/issue-212.js @@ -0,0 +1,40 @@ +const json1 = + `[ + { + "id": "1000", + "name": "order 1", + "fieldA": "value A1", + "fieldB": "value B1" + }, + { + "id": "1001", + "name": "order 2", + "fieldA": "value A2", + "fieldB": "value B2" + } + + ]`; + +// check if json is valid +JSON.parse(json1) + +const requestDelay = 1000 + +export default [ + { + url: '/issue-212.json', + method: 'get', + rawResponse: async (req, res) => { + res.setHeader('Content-Type', 'application/json') + res.statusCode = 200 + + setTimeout(function() { + res.end(json1) + }, requestDelay); + + + }, + + } + +]; \ No newline at end of file diff --git a/source/components/datatable/filter.mjs b/source/components/datatable/filter.mjs index b125a85ff9d2d7a6df26341e43070652bb8334e5..2247a316a2f64019697773b7b85634caf2f7e41f 100644 --- a/source/components/datatable/filter.mjs +++ b/source/components/datatable/filter.mjs @@ -238,6 +238,7 @@ class Filter extends CustomElement { }, }, labels: { + search: "Search", reset: "Reset", save: "Save",