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
|
@@ -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
|
|
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
|
-
|
|
203
|
-
<
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
{#
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
</
|
|
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}
|
package/src/frame/interface.js
CHANGED
|
@@ -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
|