jb-date-input
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -7,3 +7,3 @@ import 'jb-calendar'; | ||
var css_248z = ".jb-date-input-web-component {\n width: 100%;\n margin: var(--jb-date-input-margin, 12px 0);\n position: relative;\n direction: rtl; }\n .jb-date-input-web-component label {\n width: 100%;\n margin: 4px 0px;\n display: block;\n font-size: 0.8em;\n color: #1f1735; }\n .jb-date-input-web-component label.--hide {\n display: none; }\n .jb-date-input-web-component .input-box {\n width: 100%;\n box-sizing: border-box;\n height: 40px;\n border: solid 1px var(--jb-date-input-border-color, #f7f6f6);\n background-color: var(--jb-date-input-bgcolor, #f7f6f6);\n border-bottom: solid 3px var(--jb-date-input-border-color, #f7f6f6);\n border-radius: var(--jb-date-input-border-radius, 16px);\n margin: 4px 0px;\n display: block;\n transition: ease 0.3s all;\n overflow: hidden;\n display: flex;\n justify-content: space-between; }\n .jb-date-input-web-component .input-box:focus-within {\n border-color: var(--jb-date-input-border-color-focus, #1e2832); }\n .jb-date-input-web-component .input-box input {\n border: none;\n width: calc(100% - 36px);\n box-sizing: border-box;\n height: 100%;\n background-color: transparent;\n padding: 2px 12px 0 12px;\n display: block;\n font-family: inherit;\n font-size: 1.1em;\n color: #1f1735;\n margin: 0;\n border-radius: 0;\n text-align: right;\n direction: ltr; }\n .jb-date-input-web-component .input-box input:focus {\n outline: none; }\n .jb-date-input-web-component .input-box .calendar-trigger {\n display: block;\n height: 28px;\n width: 28px;\n margin: 4px 0 4px 8px;\n cursor: pointer; }\n .jb-date-input-web-component .input-box .calendar-trigger.--active svg .cls-1 {\n fill: #1f1735; }\n .jb-date-input-web-component .input-box .calendar-trigger svg {\n width: 100%;\n height: 100%; }\n .jb-date-input-web-component .input-box .calendar-trigger svg .cls-1 {\n fill: #bbb; }\n .jb-date-input-web-component .message-box {\n font-size: 0.7em;\n padding: 2px 8px;\n color: #929292;\n display: var(--jb-date-input-message-box-display, block); }\n .jb-date-input-web-component .message-box:empty {\n padding: 0; }\n .jb-date-input-web-component .message-box.error {\n color: red; }\n .jb-date-input-web-component .calendar-wrapper {\n position: absolute;\n display: none;\n top: 64px;\n right: 0;\n background-color: #fff;\n border-radius: 24px;\n padding: 16px;\n box-shadow: 12px 12px 16px 0 rgba(0, 0, 0, 0.25), -8px -8px 12px 0 rgba(255, 255, 255, 0.3);\n z-index: 10; }\n .jb-date-input-web-component .calendar-wrapper jb-calendar:focus {\n outline: none; }\n .jb-date-input-web-component .calendar-wrapper.--show {\n display: block; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkpCRGF0ZUlucHV0LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxXQUFXO0VBQ1gsMkNBQTJDO0VBQzNDLGtCQUFrQjtFQUNsQixjQUFjLEVBQUU7RUFDaEI7SUFDRSxXQUFXO0lBQ1gsZUFBZTtJQUNmLGNBQWM7SUFDZCxnQkFBZ0I7SUFDaEIsY0FBYyxFQUFFO0lBQ2hCO01BQ0UsYUFBYSxFQUFFO0VBQ25CO0lBQ0UsV0FBVztJQUNYLHNCQUFzQjtJQUN0QixZQUFZO0lBQ1osNERBQTREO0lBQzVELHVEQUF1RDtJQUN2RCxtRUFBbUU7SUFDbkUsdURBQXVEO0lBQ3ZELGVBQWU7SUFDZixjQUFjO0lBQ2QseUJBQXlCO0lBQ3pCLGdCQUFnQjtJQUNoQixhQUFhO0lBQ2IsOEJBQThCLEVBQUU7SUFDaEM7TUFDRSw4REFBOEQsRUFBRTtJQUNsRTtNQUNFLFlBQVk7TUFDWix3QkFBd0I7TUFDeEIsc0JBQXNCO01BQ3RCLFlBQVk7TUFDWiw2QkFBNkI7TUFDN0Isd0JBQXdCO01BQ3hCLGNBQWM7TUFDZCxvQkFBb0I7TUFDcEIsZ0JBQWdCO01BQ2hCLGNBQWM7TUFDZCxTQUFTO01BQ1QsZ0JBQWdCO01BQ2hCLGlCQUFpQjtNQUNqQixjQUFjLEVB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5wdXQtd2ViLWNvbXBvbmVudCAuY2FsZW5kYXItd3JhcHBlci4tLXNob3cge1xuICAgICAgZGlzcGxheTogYmxvY2s7IH1cbiJdfQ== */"; | ||
var css_248z = ".jb-date-input-web-component {\n width: 100%;\n margin: var(--jb-date-input-margin, 12px 0);\n position: relative; }\n .jb-date-input-web-component label {\n width: 100%;\n margin: 4px 0px;\n display: block;\n font-size: 0.8em;\n color: #1f1735; }\n .jb-date-input-web-component label.--hide {\n display: none; }\n .jb-date-input-web-component .input-box {\n width: 100%;\n box-sizing: border-box;\n height: 40px;\n border: solid 1px var(--jb-date-input-border-color, #f7f6f6);\n background-color: var(--jb-date-input-bgcolor, #f7f6f6);\n border-bottom: solid 3px var(--jb-date-input-border-color, #f7f6f6);\n border-radius: var(--jb-date-input-border-radius, 16px);\n margin: 4px 0px;\n display: block;\n transition: ease 0.3s all;\n overflow: hidden;\n display: flex;\n justify-content: space-between; }\n .jb-date-input-web-component .input-box:focus-within {\n border-color: var(--jb-date-input-border-color-focus, #1e2832); }\n .jb-date-input-web-component .input-box input {\n border: none;\n width: calc(100% - 36px);\n box-sizing: border-box;\n height: 100%;\n background-color: transparent;\n padding: 2px 12px 0 12px;\n display: block;\n font-family: inherit;\n font-size: 1.1em;\n color: #1f1735;\n margin: 0;\n border-radius: 0;\n direction: ltr;\n text-align: right;\n text-align: -webkit-match-parent;\n text-align: -moz-match-parent;\n text-align: match-parent; }\n .jb-date-input-web-component .input-box input:focus {\n outline: none; }\n .jb-date-input-web-component .input-box .calendar-trigger {\n display: block;\n height: 28px;\n width: 28px;\n margin: 4px 0;\n margin-inline-end: 8px;\n cursor: pointer; }\n .jb-date-input-web-component .input-box .calendar-trigger.--active svg .cls-1 {\n fill: #1f1735; }\n .jb-date-input-web-component .input-box .calendar-trigger svg {\n width: 100%;\n height: 100%; }\n .jb-date-input-web-component .input-box .calendar-trigger svg .cls-1 {\n fill: #bbb; }\n .jb-date-input-web-component .message-box {\n font-size: 0.7em;\n padding: 2px 8px;\n color: #929292;\n display: var(--jb-date-input-message-box-display, block); }\n .jb-date-input-web-component .message-box:empty {\n padding: 0; }\n .jb-date-input-web-component .message-box.error {\n color: red; }\n .jb-date-input-web-component .calendar-wrapper {\n position: absolute;\n display: none;\n inset-block-start: 64px;\n inset-inline-start: 0;\n background-color: #fff;\n border-radius: 24px;\n padding: 16px;\n box-shadow: 12px 12px 16px 0 rgba(0, 0, 0, 0.25), -8px -8px 12px 0 rgba(255, 255, 255, 0.3);\n z-index: 10; }\n .jb-date-input-web-component .calendar-wrapper jb-calendar:focus {\n outline: none; }\n .jb-date-input-web-component .calendar-wrapper.--show {\n display: block; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkpCRGF0ZUlucHV0LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxXQUFXO0VBQ1gsMkNBQTJDO0VBQzNDLGtCQUFrQixFQUFFO0VBQ3BCO0lBQ0UsV0FBVztJQUNYLGVBQWU7SUFDZixjQUFjO0lBQ2QsZ0JBQWdCO0lBQ2hCLGNBQWMsRUFBRTtJQUNoQjtNQUNFLGFBQWEsRUFBRTtFQUNuQjtJQUNFLFdBQVc7SUFDWCxzQkFBc0I7SUFDdEIsWUFBWTtJQUNaLDREQUE0RDtJQUM1RCx1REFBdUQ7SUFDdkQsbUVBQW1FO0lBQ25FLHVEQUF1RDtJQUN2RCxlQUFlO0lBQ2YsY0FBYztJQUNkLHlCQUF5QjtJQUN6QixnQkFBZ0I7SUFDaEIsYUFBYTtJQUNiLDhCQUE4QixFQUFFO0lBQ2hDO01BQ0UsOERBQThELEVBQUU7SUFDbEU7TUFDRSxZQUFZO01BQ1osd0JBQXdCO01BQ3hCLHNCQUFzQjtNQUN0QixZQUFZO01BQ1osNkJBQTZCO01BQzdCLHdCQUF3QjtNQUN4QixjQUFjO01BQ2Qsb0JBQW9CO01BQ3BCLGdCQUFnQjtNQUNoQixj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IDI0cHg7XG4gICAgcGFkZGluZzogMTZweDtcbiAgICBib3gtc2hhZG93OiAxMnB4IDEycHggMTZweCAwIHJnYmEoMCwgMCwgMCwgMC4yNSksIC04cHggLThweCAxMnB4IDAgcmdiYSgyNTUsIDI1NSwgMjU1LCAwLjMpO1xuICAgIHotaW5kZXg6IDEwOyB9XG4gICAgLmpiLWRhdGUtaW5wdXQtd2ViLWNvbXBvbmVudCAuY2FsZW5kYXItd3JhcHBlciBqYi1jYWxlbmRhcjpmb2N1cyB7XG4gICAgICBvdXRsaW5lOiBub25lOyB9XG4gICAgLmpiLWRhdGUtaW5wdXQtd2ViLWNvbXBvbmVudCAuY2FsZW5kYXItd3JhcHBlci4tLXNob3cge1xuICAgICAgZGlzcGxheTogYmxvY2s7IH1cbiJdfQ== */"; | ||
@@ -150,3 +150,3 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; | ||
static get observedAttributes() { | ||
return ['label', 'value-type', 'message', 'value', 'name', 'format', 'min', 'max', 'required', 'input-type']; | ||
return ['label', 'value-type', 'message', 'value', 'name', 'format', 'min', 'max', 'required', 'input-type', 'direction']; | ||
} | ||
@@ -198,2 +198,5 @@ attributeChangedCallback(name, oldValue, newValue) { | ||
break; | ||
case 'direction': | ||
this.calendarElement.setAttribute('direction',value); | ||
break; | ||
} | ||
@@ -625,19 +628,18 @@ | ||
if (year < 1000 && year !=null) { | ||
if (!isNaN(year) && year < 1000 && year !=null) { | ||
year = "0" + year; | ||
} | ||
if (month < 10 && month != null) { | ||
if (!isNaN(month) && month < 10 && month != null) { | ||
month = "0" + month; | ||
} | ||
if (day < 10 && day != null) { | ||
if (!isNaN(day) && day < 10 && day != null) { | ||
day = "0" + day; | ||
} | ||
if(year == null){ | ||
if(year == null || isNaN(year)){ | ||
year = ' '; | ||
} | ||
if(month == null){ | ||
if(month == null || isNaN(month)){ | ||
month = ' '; | ||
} | ||
if(day == null){ | ||
if(day == null || isNaN(day)){ | ||
day = ' '; | ||
@@ -644,0 +646,0 @@ } |
@@ -127,3 +127,3 @@ /* eslint-disable no-redeclare */ | ||
static get observedAttributes() { | ||
return ['label', 'value-type', 'message', 'value', 'name', 'format', 'min', 'max', 'required', 'input-type']; | ||
return ['label', 'value-type', 'message', 'value', 'name', 'format', 'min', 'max', 'required', 'input-type', 'direction']; | ||
} | ||
@@ -175,2 +175,5 @@ attributeChangedCallback(name, oldValue, newValue) { | ||
break; | ||
case 'direction': | ||
this.calendarElement.setAttribute('direction',value); | ||
break; | ||
} | ||
@@ -602,19 +605,18 @@ | ||
if (year < 1000 && year !=null) { | ||
if (!isNaN(year) && year < 1000 && year !=null) { | ||
year = "0" + year; | ||
} | ||
if (month < 10 && month != null) { | ||
if (!isNaN(month) && month < 10 && month != null) { | ||
month = "0" + month; | ||
} | ||
if (day < 10 && day != null) { | ||
if (!isNaN(day) && day < 10 && day != null) { | ||
day = "0" + day; | ||
} | ||
if(year == null){ | ||
if(year == null || isNaN(year)){ | ||
year = ' '; | ||
} | ||
if(month == null){ | ||
if(month == null || isNaN(month)){ | ||
month = ' '; | ||
} | ||
if(day == null){ | ||
if(day == null || isNaN(day)){ | ||
day = ' '; | ||
@@ -621,0 +623,0 @@ } |
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"bugs": "https://github.com/javadbat/jb-date-input/issues", | ||
@@ -36,4 +36,4 @@ "license": "MIT", | ||
"jalaliday": "^2.3.0", | ||
"jb-calendar": "^1.0.6" | ||
"jb-calendar": "^1.0.7" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
160573
1688
Updatedjb-calendar@^1.0.7