@likable-hair/svelte 3.3.31 → 3.3.32

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.
@@ -79,7 +79,7 @@
79
79
  { label: rowsPerPage.toString(), value: rowsPerPage }
80
80
  ]
81
81
 
82
- $: if(totalElements !== undefined) maxPage = Math.max(Math.round(totalElements/rowsPerPage), 1)
82
+ $: if(totalElements !== undefined) maxPage = Math.max(Math.ceil(totalElements/rowsPerPage), 1)
83
83
 
84
84
  function handleRowsPerPageChange(e: CustomEvent<{ selection: ComponentProps<Dropdown>['items']}>) {
85
85
  rowsPerPage = Number(e.detail.selection?.[0].value)
@@ -5,6 +5,7 @@
5
5
  import Keyboarder, { type CallbackFunction } from '../../../utils/keyboarder';
6
6
 
7
7
  export let open = false,
8
+ persistent: boolean = false,
8
9
  transition: 'fly-down' | 'fly-up' | 'fly-horizontal' | 'scale' | 'fade' = 'fly-up'
9
10
 
10
11
  export let _overlayOpacity: string = "30%",
@@ -16,6 +17,7 @@
16
17
 
17
18
  let zIndex = 50,
18
19
  localOpen: boolean = open,
20
+ localPersistent: boolean = persistent,
19
21
  dialogElement: HTMLElement,
20
22
  teleportedUid: string | undefined = undefined,
21
23
  hasBeenOpened: boolean = false;
@@ -93,6 +95,7 @@
93
95
  }
94
96
 
95
97
  function handleOverlayClick() {
98
+ if (localPersistent) return;
96
99
  closeDialog();
97
100
  }
98
101
  </script>
@@ -18,6 +18,7 @@ type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
18
18
  } : {});
19
19
  declare const Dialog: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
20
20
  open?: boolean;
21
+ persistent?: boolean;
21
22
  transition?: "fly-down" | "fly-up" | "fly-horizontal" | "scale" | "fade";
22
23
  _overlayOpacity?: string;
23
24
  _overlayColor?: string;
@@ -28,7 +28,7 @@
28
28
  style:--simple-time-line-body-width={singleSided
29
29
  ? `calc(100% - var(--simple-time-line-divider-width))`
30
30
  : `calc(50% - var(--simple-time-line-divider-width) / 2)`}
31
- class="container"
31
+ class="simple-timeline-container"
32
32
  >
33
33
  {#each items as item, index}
34
34
  <div
@@ -57,9 +57,9 @@
57
57
  >
58
58
  <slot name="times" {item} {dateToString}>
59
59
  <div
60
- class:vertical-centered-container={circleAlignment ==
60
+ class:vertical-centered-simple-timeline-container={circleAlignment ==
61
61
  "center"}
62
- class:vertical-bottom-container={circleAlignment == "bottom"}
62
+ class:vertical-bottom-simple-timeline-container={circleAlignment == "bottom"}
63
63
  >
64
64
  {#if !!item.from}
65
65
  <div
@@ -123,7 +123,7 @@
123
123
  </div>
124
124
 
125
125
  <style>
126
- .container {
126
+ .simple-timeline-container {
127
127
  position: relative;
128
128
  height: var(
129
129
  --simple-time-line-height,
@@ -135,7 +135,7 @@
135
135
  gap: var(--simple-time-line-gap, var(--simple-time-line-default-gap));
136
136
  }
137
137
 
138
- .container::before {
138
+ .simple-timeline-container::before {
139
139
  position: absolute;
140
140
  left: var(--simple-time-line-central-line-left);
141
141
  right: auto;
@@ -202,14 +202,14 @@
202
202
  justify-content: center;
203
203
  }
204
204
 
205
- .vertical-centered-container {
205
+ .vertical-centered-simple-timeline-container {
206
206
  display: flex;
207
207
  flex-direction: column;
208
208
  justify-content: center;
209
209
  height: 100%;
210
210
  }
211
211
 
212
- .vertical-bottom-container {
212
+ .vertical-bottom-simple-timeline-container {
213
213
  display: flex;
214
214
  flex-direction: column;
215
215
  justify-content: flex-end;
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.3.31",
4
+ "version": "3.3.32",
5
5
  "scripts": {
6
6
  "host": "vite --host",
7
7
  "dev": "vite dev",