@likable-hair/svelte 3.1.36 → 3.1.38

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.
@@ -1,6 +1,5 @@
1
1
  <script>import IMask, { InputMask } from "imask";
2
2
  import SimpleTextField from "../../simple/forms/SimpleTextField.svelte";
3
- import DatePicker from "../../simple/dates/DatePicker.svelte";
4
3
  import Menu from "../../simple/common/Menu.svelte";
5
4
  import Icon from "../../simple/media/Icon.svelte";
6
5
  import { onMount } from "svelte";
@@ -49,11 +48,14 @@ onMount(() => {
49
48
  function handleInputChange(event) {
50
49
  setTimeout(() => {
51
50
  const typedValue = mask.value;
51
+ console.log(typedValue);
52
52
  if (typedValue !== void 0 && typedValue !== null) {
53
53
  const yearIndex = pattern.indexOf("yyyy");
54
54
  const year = typedValue.substring(yearIndex, yearIndex + 4);
55
55
  if (year.length == 4) {
56
56
  selectedYear = Number(year);
57
+ } else if (year.length == 0) {
58
+ selectedYear = void 0;
57
59
  }
58
60
  dispatch("input", {
59
61
  year: selectedYear
@@ -120,6 +120,7 @@ function handleOverlayClick() {
120
120
  class:fade-out={transition == 'fade' && !localOpen && hasBeenOpened}
121
121
 
122
122
  class:hidden={!localOpen && !hasBeenOpened}
123
+ class:hidden-far-behind={!localOpen}
123
124
  >
124
125
  <slot name="top-right" />
125
126
  </div>
@@ -146,6 +147,7 @@ function handleOverlayClick() {
146
147
  class:fade-out={transition == 'fade' && !localOpen && hasBeenOpened}
147
148
 
148
149
  class:hidden={!localOpen && !hasBeenOpened}
150
+ class:hidden-far-behind={!localOpen}
149
151
  >
150
152
  <slot name="center-left" />
151
153
  </div>
@@ -172,7 +174,7 @@ function handleOverlayClick() {
172
174
  class:fade-out={transition == 'fade' && !localOpen && hasBeenOpened}
173
175
 
174
176
  class:hidden={!localOpen}
175
- class:hidden-behind={!localOpen}
177
+ class:hidden-far-behind={!localOpen}
176
178
  >
177
179
  <slot />
178
180
  </div>
@@ -199,6 +201,7 @@ function handleOverlayClick() {
199
201
  class:fade-out={transition == 'fade' && !localOpen && hasBeenOpened}
200
202
 
201
203
  class:hidden={!localOpen && !hasBeenOpened}
204
+ class:hidden-far-behind={!localOpen}
202
205
  >
203
206
  <slot name="center-right" />
204
207
  </div>
@@ -272,6 +275,10 @@ function handleOverlayClick() {
272
275
  z-index: -200 !important;
273
276
  }
274
277
 
278
+ .hidden-far-behind {
279
+ z-index: -250 !important;
280
+ }
281
+
275
282
  /* Fly down animation */
276
283
 
277
284
  .fly-down-in {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair and others",
4
- "version": "3.1.36",
4
+ "version": "3.1.38",
5
5
  "scripts": {
6
6
  "host": "vite --host",
7
7
  "dev": "vite dev",