not-bulma 1.2.59 → 1.2.61

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-bulma",
3
- "version": "1.2.59",
3
+ "version": "1.2.61",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -19,6 +19,7 @@
19
19
  export let subtitle = "";
20
20
  export let classes = "";
21
21
  export let overlayClasses = "";
22
+ export let buttonsClasses = "";
22
23
 
23
24
  export let WAITING_TEXT = "Обработка";
24
25
  </script>
@@ -38,6 +39,7 @@
38
39
 
39
40
  {#if buttonsPosition === "top"}
40
41
  <UIButtonsRow
42
+ classes={buttonsClasses}
41
43
  left={closeButton ? [closeButton] : []}
42
44
  right={applyButton ? [applyButton] : []}
43
45
  ></UIButtonsRow>
@@ -47,6 +49,7 @@
47
49
 
48
50
  {#if buttonsPosition === "bottom"}
49
51
  <UIButtonsRow
52
+ classes={buttonsClasses || "is-footer"}
50
53
  left={closeButton ? [closeButton] : []}
51
54
  right={applyButton ? [applyButton] : []}
52
55
  ></UIButtonsRow>
@@ -199,31 +199,33 @@
199
199
  {/each}
200
200
  </tbody>
201
201
  </table>
202
- <nav class="pagination is-centered" aria-label="pagination">
203
- <a href class="pagination-previous" on:click={goPrev}>Назад</a>
204
- <a href class="pagination-next" on:click={goNext}>Вперед</a>
205
- <ul class="pagination-list">
206
- {#if state.pagination && state.pagination.pages && state.pagination.pages.list}
207
- {#each state.pagination.pages.list as page}
208
- <li>
209
- {#if page.active}
210
- <a
211
- href
212
- class="pagination-link is-current"
213
- aria-label="Страница {page.index}"
214
- aria-current="page">{page.index + 1}</a
215
- >
216
- {:else}
217
- <a
218
- href
219
- class="pagination-link"
220
- aria-label="Страница {page.index}"
221
- data-page={page.index}
222
- on:click={goTo}>{page.index + 1}</a
223
- >
224
- {/if}
225
- </li>
226
- {/each}
227
- {/if}
228
- </ul>
229
- </nav>
202
+ {#if state?.pagination?.pages?.list.length > 1}
203
+ <nav class="pagination is-centered" aria-label="pagination">
204
+ <a href class="pagination-previous" on:click={goPrev}>Назад</a>
205
+ <a href class="pagination-next" on:click={goNext}>Вперед</a>
206
+ <ul class="pagination-list">
207
+ {#if state.pagination && state.pagination.pages && state.pagination.pages.list}
208
+ {#each state.pagination.pages.list as page}
209
+ <li>
210
+ {#if page.active}
211
+ <a
212
+ href
213
+ class="pagination-link is-current"
214
+ aria-label="Страница {page.index}"
215
+ aria-current="page">{page.index + 1}</a
216
+ >
217
+ {:else}
218
+ <a
219
+ href
220
+ class="pagination-link"
221
+ aria-label="Страница {page.index}"
222
+ data-page={page.index}
223
+ on:click={goTo}>{page.index + 1}</a
224
+ >
225
+ {/if}
226
+ </li>
227
+ {/each}
228
+ {/if}
229
+ </ul>
230
+ </nav>
231
+ {/if}
File without changes
@@ -19,3 +19,17 @@
19
19
  .is-no-flex-wrap {
20
20
  flex-wrap: nowrap !important;
21
21
  }
22
+
23
+ .is-footer {
24
+ position: absolute;
25
+ bottom: 0px;
26
+ transform: translateY(-50%);
27
+ width: 100%;
28
+ }
29
+
30
+ .is-fullscreen {
31
+ height: 100%;
32
+ width: 100%;
33
+ margin: 0px;
34
+ border: none;
35
+ }
@@ -1,17 +1,16 @@
1
1
  .not-overlay {
2
- position: fixed!important;
3
- top: 0px;
4
- left: 0px;
5
- width: 100vw;
6
- height: 100vh;
7
- margin: 0px;
8
- display: block;
9
- opacity: 1;
10
- overflow: hidden;
2
+ position: fixed !important;
3
+ top: 0px;
4
+ left: 0px;
5
+ width: 100vw;
6
+ height: 100vh;
7
+ margin: 0px;
8
+ display: block;
9
+ opacity: 1;
10
+ overflow: hidden;
11
11
  }
12
12
 
13
-
14
13
  .stop-scrolling {
15
- height: 100%;
16
- overflow: hidden;
14
+ height: 100%;
15
+ overflow: hidden;
17
16
  }