not-bulma 1.2.60 → 1.2.62

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.60",
3
+ "version": "1.2.62",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -13,6 +13,7 @@
13
13
  export let closeButton = false;
14
14
  export let applyButton = false;
15
15
 
16
+ export let titleSize = 2;
16
17
  export let show = false;
17
18
  export let loading = false;
18
19
  export let title = "Modal window";
@@ -31,7 +32,11 @@
31
32
  classes={overlayClasses}
32
33
  >
33
34
  <UIBox {classes}>
34
- <UITitle size="2" title={$LOCALE[title]} subtitle={$LOCALE[subtitle]} />
35
+ <UITitle
36
+ size={titleSize}
37
+ title={$LOCALE[title]}
38
+ subtitle={$LOCALE[subtitle]}
39
+ />
35
40
  <UIContent>
36
41
  <div class="pageloader {loading ? 'is-active' : ''}">
37
42
  <span class="title">{$LOCALE[WAITING_TEXT]}</span>
@@ -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}
@@ -429,6 +429,15 @@ class notInterface extends notBase {
429
429
  size: pager.size || DEFAULT_PAGE_SIZE,
430
430
  page: pager.page || DEFAULT_PAGE_NUMBER,
431
431
  });
432
+ } else if (
433
+ arguments.length === 2 &&
434
+ !isNaN(arguments[0]) &&
435
+ !isNaN(arguments[1])
436
+ ) {
437
+ this.setWorking("pager", {
438
+ size: arguments[0] || DEFAULT_PAGE_SIZE,
439
+ page: arguments[1] || DEFAULT_PAGE_NUMBER,
440
+ });
432
441
  }
433
442
  return this;
434
443
  }
File without changes