You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2021/01/06 13:04:32 UTC

[myfaces-tobago] branch master updated: TOBAGO-2036: Replace date-picker implementation with vanillajs-datepicker

This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new 291127b  TOBAGO-2036: Replace date-picker implementation with vanillajs-datepicker
291127b is described below

commit 291127bffbecb01cceda935ae3a05121c9a2c9b2
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Wed Jan 6 13:32:59 2021 +0100

    TOBAGO-2036: Replace date-picker implementation with vanillajs-datepicker
    
    * fix month title
---
 tobago-theme/tobago-theme-standard/npm/dist/js/tobago-date.js     | 3 +--
 tobago-theme/tobago-theme-standard/npm/dist/js/tobago-date.js.map | 2 +-
 tobago-theme/tobago-theme-standard/npm/dist/js/tobago.js          | 3 +--
 tobago-theme/tobago-theme-standard/npm/dist/js/tobago.js.map      | 2 +-
 tobago-theme/tobago-theme-standard/npm/ts/tobago-date.ts          | 5 +----
 5 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/tobago-theme/tobago-theme-standard/npm/dist/js/tobago-date.js b/tobago-theme/tobago-theme-standard/npm/dist/js/tobago-date.js
index 5c99fd4..72c5911 100644
--- a/tobago-theme/tobago-theme-standard/npm/dist/js/tobago-date.js
+++ b/tobago-theme/tobago-theme-standard/npm/dist/js/tobago-date.js
@@ -24,10 +24,9 @@ class DatePicker extends HTMLElement {
     connectedCallback() {
         var _a;
         const field = this.field;
-        console.info("field --------------->", field);
         const locale = Page.page(this).locale;
         const i18n = this.i18n;
-        // i18n.titleFormat = "MM y"; // todo i18n (this is the default of the Datepicker lib)
+        i18n.titleFormat = "MM y"; // todo i18n
         i18n.format = this.pattern;
         Datepicker.locales[locale] = i18n;
         const options = {
diff --git a/tobago-theme/tobago-theme-standard/npm/dist/js/tobago-date.js.map b/tobago-theme/tobago-theme-standard/npm/dist/js/tobago-date.js.map
index 58bd6a5..33554c3 100644
--- a/tobago-theme/tobago-theme-standard/npm/dist/js/tobago-date.js.map
+++ b/tobago-theme/tobago-theme-standard/npm/dist/js/tobago-date.js.map
@@ -1 +1 @@
-{"version":3,"file":"tobago-date.js","sourceRoot":"","sources":["../../ts/tobago-date.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,UAAU,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAyBnC,MAAM,UAAW,SAAQ,WAAW;IAIlC;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,iBAAiB;;QACf,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAEzB,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC;QAE9C,MAAM,MAAM,GAAW,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;QAE [...]
\ No newline at end of file
+{"version":3,"file":"tobago-date.js","sourceRoot":"","sources":["../../ts/tobago-date.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,UAAU,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAyBnC,MAAM,UAAW,SAAQ,WAAW;IAIlC;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,iBAAiB;;QACf,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,MAAM,MAAM,GAAW,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;QAE9C,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC [...]
\ No newline at end of file
diff --git a/tobago-theme/tobago-theme-standard/npm/dist/js/tobago.js b/tobago-theme/tobago-theme-standard/npm/dist/js/tobago.js
index e49220c..3a60ad2 100644
--- a/tobago-theme/tobago-theme-standard/npm/dist/js/tobago.js
+++ b/tobago-theme/tobago-theme-standard/npm/dist/js/tobago.js
@@ -6878,10 +6878,9 @@
         connectedCallback() {
             var _a;
             const field = this.field;
-            console.info("field --------------->", field);
             const locale = Page.page(this).locale;
             const i18n = this.i18n;
-            // i18n.titleFormat = "MM y"; // todo i18n (this is the default of the Datepicker lib)
+            i18n.titleFormat = "MM y"; // todo i18n
             i18n.format = this.pattern;
             Datepicker.locales[locale] = i18n;
             const options = {
diff --git a/tobago-theme/tobago-theme-standard/npm/dist/js/tobago.js.map b/tobago-theme/tobago-theme-standard/npm/dist/js/tobago.js.map
index ae99955..e3b2d5f 100644
--- a/tobago-theme/tobago-theme-standard/npm/dist/js/tobago.js.map
+++ b/tobago-theme/tobago-theme-standard/npm/dist/js/tobago.js.map
@@ -1 +1 @@
-{"version":3,"file":"tobago.js","sources":["tobago-listener.js","tobago-utils.js","tobago-bar.js","../../node_modules/popper.js/dist/esm/popper.js","tobago-dropdown.js","../../node_modules/vanillajs-datepicker/js/lib/utils.js","../../node_modules/vanillajs-datepicker/js/lib/date.js","../../node_modules/vanillajs-datepicker/js/lib/date-format.js","../../node_modules/vanillajs-datepicker/js/lib/event.js","../../node_modules/vanillajs-datepicker/js/i18n/base-locales.js","../../node_modules/ [...]
\ No newline at end of file
+{"version":3,"file":"tobago.js","sources":["tobago-listener.js","tobago-utils.js","tobago-bar.js","../../node_modules/popper.js/dist/esm/popper.js","tobago-dropdown.js","../../node_modules/vanillajs-datepicker/js/lib/utils.js","../../node_modules/vanillajs-datepicker/js/lib/date.js","../../node_modules/vanillajs-datepicker/js/lib/date-format.js","../../node_modules/vanillajs-datepicker/js/lib/event.js","../../node_modules/vanillajs-datepicker/js/i18n/base-locales.js","../../node_modules/ [...]
\ No newline at end of file
diff --git a/tobago-theme/tobago-theme-standard/npm/ts/tobago-date.ts b/tobago-theme/tobago-theme-standard/npm/ts/tobago-date.ts
index a464271..cbff64d 100644
--- a/tobago-theme/tobago-theme-standard/npm/ts/tobago-date.ts
+++ b/tobago-theme/tobago-theme-standard/npm/ts/tobago-date.ts
@@ -52,13 +52,10 @@ class DatePicker extends HTMLElement {
 
   connectedCallback(): void {
     const field = this.field;
-
-    console.info("field --------------->", field);
-
     const locale: string = Page.page(this).locale;
 
     const i18n = this.i18n;
-    // i18n.titleFormat = "MM y"; // todo i18n (this is the default of the Datepicker lib)
+    i18n.titleFormat = "MM y"; // todo i18n
     i18n.format = this.pattern;
     Datepicker.locales[locale] = i18n;