@luftborn/custom-elements 2.8.5 → 2.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo/index.js +4 -6
- package/demo/index.min.js +3 -5
- package/demo/index.min.js.map +1 -1
- package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepicker.js +2 -2
- package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepicker.js.map +1 -1
- package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerStyles.d.ts +1 -1
- package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerStyles.js +1 -1
- package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerStyles.js.map +1 -1
- package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerUtils.js +0 -2
- package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerUtils.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepicker.ts +2 -2
- package/src/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerStyles.ts +23 -22
- package/src/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerUtils.ts +0 -2
package/demo/index.min.js
CHANGED
|
@@ -3007,9 +3007,9 @@ var CustomDatepicker = /** @class */ (function () {
|
|
|
3007
3007
|
var _this = this;
|
|
3008
3008
|
this.datepicker = document.createElement('div');
|
|
3009
3009
|
this.datepicker.id = this.input.id + '-datepicker';
|
|
3010
|
-
this.datepicker.classList.add('datepicker');
|
|
3010
|
+
this.datepicker.classList.add('custom-datepicker');
|
|
3011
3011
|
this.header = document.createElement('div');
|
|
3012
|
-
this.header.classList.add('header');
|
|
3012
|
+
this.header.classList.add('custom-datepicer-header');
|
|
3013
3013
|
this.monthYear = document.createElement('span');
|
|
3014
3014
|
this.monthYear.classList.add('month-year');
|
|
3015
3015
|
this.monthYear.onclick = function () { return _this.toggleSelectMonthYear(); };
|
|
@@ -3362,7 +3362,7 @@ exports.default = CustomDatepicker;
|
|
|
3362
3362
|
"use strict";
|
|
3363
3363
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3364
3364
|
exports.CustomDatepickerStyles = void 0;
|
|
3365
|
-
exports.CustomDatepickerStyles = "\n .datepicker {\n position: fixed;\n background-color: #fff;\n display: none;\n width: 200px;\n border: 1px solid #ccc;\n border-radius: 5px;\n padding:
|
|
3365
|
+
exports.CustomDatepickerStyles = "\n .custom-datepicker {\n position: fixed;\n background-color: #fff;\n display: none;\n width: 200px;\n border: 1px solid #ccc;\n border-radius: 5px;\n padding: 20px;\n margin: 0 auto;\n box-shadow: 0 0 10px 0 #ccc;\n font: 12px Arial, sans-serif;\n }\n\n .custom-datepicker .custom-datepicer-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 10px;\n }\n .custom-datepicker .weekdays {\n display: flex;\n justify-content: space-between;\n margin-top: 20px;\n }\n .custom-datepicker .weekdays span {\n width: 14.28%;\n text-align: center;\n padding: 5px 0;\n }\n .custom-datepicker .days {\n display: flex;\n flex-wrap: wrap;\n }\n .custom-datepicker .days span {\n width: 14.28%;\n text-align: center;\n padding: 5px 0;\n }\n .custom-datepicker .days span:hover {\n background-color: #B2d5ff;\n cursor: pointer;\n }\n .custom-datepicker .days span.today {\n border: 1px solid #000;\n }\n .custom-datepicker .days span.selected-day {\n background-color: #0075ff;\n color: #fff;\n }\n .custom-datepicker .prev-month, .next-month {\n cursor: pointer;\n }\n .custom-datepicker .month-year {\n font-weight: bold;\n }\n .custom-datepicker .month-year:hover {\n cursor: pointer;\n }\n .custom-datepicker .select-month-year {\n display: none;\n width: 100%;\n overflow-y: auto;\n }\n .custom-datepicker .select-month-year .year {\n text-align: center;\n background-color: #f0f0f0;\n border-bottom: 1px solid #3f3d3d;\n padding: 5px 0;\n cursor: pointer;\n }\n .custom-datepicker .select-month-year .year .months {\n display: flex;\n flex-wrap: wrap;\n }\n .custom-datepicker .select-month-year .year .months span {\n width: 25%;\n text-align: center;\n padding: 10px 0;\n background-color: #fff;\n }\n .custom-datepicker .select-month-year .year .months span:hover {\n background-color: #B2d5ff;\n cursor: pointer;\n }\n .custom-datepicker .actions {\n display: flex;\n justify-content: space-between;\n margin-top: 30px;\n }\n .custom-datepicker .actions input {\n color: #0075ff;\n border: none;\n background-color: transparent;\n padding: 5px;\n border: 1px solid transparent;\n }\n .custom-datepicker .actions input:hover {\n background-color: #B2d5ff;\n border-color: #000;\n }\n";
|
|
3366
3366
|
|
|
3367
3367
|
},{}],17:[function(require,module,exports){
|
|
3368
3368
|
"use strict";
|
|
@@ -3387,7 +3387,6 @@ exports.supportedDateFormats = [
|
|
|
3387
3387
|
];
|
|
3388
3388
|
function formatDate(date, dateFormat, language) {
|
|
3389
3389
|
if (language === void 0) { language = 'en'; }
|
|
3390
|
-
debugger;
|
|
3391
3390
|
var year = date.getFullYear();
|
|
3392
3391
|
var month = (date.getMonth() + 1).toString().padStart(2, '0');
|
|
3393
3392
|
var day = date.getDate().toString().padStart(2, '0');
|
|
@@ -3411,7 +3410,6 @@ exports.isMobileDevice = isMobileDevice;
|
|
|
3411
3410
|
function convertStringToDate(dateString, dateFormat, language) {
|
|
3412
3411
|
var _a, _b, _c;
|
|
3413
3412
|
if (language === void 0) { language = 'en'; }
|
|
3414
|
-
debugger;
|
|
3415
3413
|
var year, month, day;
|
|
3416
3414
|
if (!validateDateString(dateString, dateFormat, language)) {
|
|
3417
3415
|
return null;
|