[TikiWiki-commits] [Git][tikiwiki/tiki][tiki-datapicker] Fix: Load datepicker-root-css.css and include el-date-picker-panel styles to fix the data selectors

"Espoir Baraka \(@esbarakabigega\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6994e9096c99c_3b186b04230d3@gitlab-sidekiq-low-urgency-cpu-bound-v2-7d966bcdff-4p256.mail>

Espoir Baraka pushed to branch tiki-datapicker at Tiki Wiki CMS Groupware / Tiki


Commits:
b18cd6a1 by espoirbaraka at 2026-02-17T23:16:40+01:00
Fix: Load datepicker-root-css.css and include el-date-picker-panel styles to fix the data selectors

- - - - -


2 changed files:

- src/js/vue-widgets/element-plus-ui/src/components/DatePicker/datePicker.scss
- src/js/vue-widgets/element-plus-ui/src/elements/datepicker.js


Changes:

=====================================
src/js/vue-widgets/element-plus-ui/src/components/DatePicker/datePicker.scss
=====================================
@@ -1,4 +1,5 @@
 @use 'element-plus/theme-chalk/el-date-picker.css';
+@use 'element-plus/theme-chalk/el-date-picker-panel.css';
 @use 'element-plus/theme-chalk/el-select.css';
 @use 'element-plus/theme-chalk/el-input.css';
 @use 'element-plus/theme-chalk/el-icon.css';


=====================================
src/js/vue-widgets/element-plus-ui/src/elements/datepicker.js
=====================================
@@ -2,6 +2,18 @@ import { defineCustomElement, h, reactive, watch } from "vue";
 import DatePicker from "../components/DatePicker/DatePicker.vue";
 import styles from "../components/DatePicker/datePicker.scss?inline";
 
+if (typeof document !== "undefined") {
+    const rootCssId = "el-date-picker-root-css";
+    if (!document.getElementById(rootCssId)) {
+        const link = document.createElement("link");
+        link.id = rootCssId;
+        link.rel = "stylesheet";
+        const tikiroot = window.tikiroot || "";
+        link.href = tikiroot + "public/generated/js/element-plus-ui/datepicker-root-css.css";
+        document.head.appendChild(link);
+    }
+}
+
 customElements.define(
     "el-date-picker",
     defineCustomElement(



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b18cd6a1a42c725b3ecf8df5802b141f325aae06

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b18cd6a1a42c725b3ecf8df5802b141f325aae06
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.