@iamproperty/components 5.6.1-beta15 → 5.6.1-beta17
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/assets/css/components/pagination.css +1 -1
- package/assets/css/components/pagination.css.map +1 -1
- package/assets/css/core.min.css +1 -1
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/style.min.css +1 -1
- package/assets/css/style.min.css.map +1 -1
- package/assets/js/components/accordion/accordion.component.min.js +1 -1
- package/assets/js/components/actionbar/actionbar.component.min.js +1 -1
- package/assets/js/components/address-lookup/address-lookup.component.min.js +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
- package/assets/js/components/card/card.component.min.js +1 -1
- package/assets/js/components/carousel/carousel.component.min.js +1 -1
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
- package/assets/js/components/fileupload/fileupload.component.min.js +1 -1
- package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
- package/assets/js/components/header/header.component.min.js +1 -1
- package/assets/js/components/inline-edit/inline-edit.component.min.js +1 -1
- package/assets/js/components/marketing/marketing.component.min.js +1 -1
- package/assets/js/components/multiselect/multiselect.component.min.js +1 -1
- package/assets/js/components/nav/nav.component.min.js +1 -1
- package/assets/js/components/notification/notification.component.min.js +1 -1
- package/assets/js/components/pagination/pagination.component.min.js +3 -3
- package/assets/js/components/search/search.component.min.js +1 -1
- package/assets/js/components/slider/slider.component.min.js +1 -1
- package/assets/js/components/table/table.component.js +16 -1
- package/assets/js/components/table/table.component.min.js +4 -4
- package/assets/js/components/table/table.component.min.js.map +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +1 -1
- package/assets/js/dynamic.min.js +1 -1
- package/assets/js/modules/table.js +6 -1
- package/assets/js/scripts.bundle.js +6 -6
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +2 -2
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/sass/_components.scss +4 -0
- package/assets/sass/components/pagination.scss +11 -16
- package/assets/sass/elements/forms.scss +2 -1
- package/assets/ts/components/table/table.component.ts +24 -1
- package/assets/ts/modules/table.ts +8 -2
- package/dist/components.es.js +38 -38
- package/dist/components.umd.js +12 -12
- package/package.json +1 -1
|
@@ -35,15 +35,18 @@
|
|
|
35
35
|
padding-inline: 1rem;
|
|
36
36
|
|
|
37
37
|
.select--minimal {
|
|
38
|
-
|
|
39
|
-
height:
|
|
40
|
-
line-height: rem(52);
|
|
38
|
+
height: calc(3.25rem - 1em);
|
|
39
|
+
line-height: calc(3.25rem - 1em);
|
|
41
40
|
margin-left: rem(-16);
|
|
42
41
|
font-weight: bold;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
div:has(> select){
|
|
46
45
|
margin-bottom: 0;
|
|
46
|
+
|
|
47
|
+
&:after {
|
|
48
|
+
top: 50%;
|
|
49
|
+
}
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
52
|
|
|
@@ -118,7 +121,7 @@
|
|
|
118
121
|
display: none;
|
|
119
122
|
background: none;
|
|
120
123
|
padding-inline: 1rem;
|
|
121
|
-
|
|
124
|
+
color: var(--colour-body);
|
|
122
125
|
|
|
123
126
|
@include container-up(sm) {
|
|
124
127
|
|
|
@@ -134,21 +137,13 @@
|
|
|
134
137
|
}
|
|
135
138
|
|
|
136
139
|
&:is(:hover,:focus):not(:disabled){
|
|
137
|
-
background-color: var(--
|
|
140
|
+
background-color: var(--pagination-link-color);
|
|
141
|
+
color: var(--colour-hover);
|
|
138
142
|
}
|
|
139
143
|
|
|
140
144
|
&:is(:active):not(:disabled){
|
|
141
|
-
background-color:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
@include dark-mode(){
|
|
145
|
-
&:is(:hover,:focus):not(:disabled){
|
|
146
|
-
background-color: var(--colour-canvas);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
&:is(:active):not(:disabled){
|
|
150
|
-
background-color: var(--colour-canvas);
|
|
151
|
-
}
|
|
145
|
+
background-color: var(--pagination-link-color);
|
|
146
|
+
color: var(--colour-active);
|
|
152
147
|
}
|
|
153
148
|
|
|
154
149
|
&:disabled {
|
|
@@ -83,7 +83,8 @@ $icon-tick: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' view
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
textarea {
|
|
86
|
-
|
|
86
|
+
--textarea-height-scale: 3;
|
|
87
|
+
min-height: calc(var(--input-padding-block, #{rem(12)}) + var(--input-padding-block, #{rem(12)}) + (var(--input-lh, #{rem(20)}) * var(--textarea-height-scale)) + 4px)!important;
|
|
87
88
|
}
|
|
88
89
|
// #endregion
|
|
89
90
|
|
|
@@ -242,7 +242,10 @@ class iamTable extends HTMLElement {
|
|
|
242
242
|
|
|
243
243
|
|
|
244
244
|
tableModule.makeTableFunctional(this.table, this.form, this.pagination, this);
|
|
245
|
-
|
|
245
|
+
|
|
246
|
+
if(!this.hasAttribute('data-no-submit'))
|
|
247
|
+
tableModule.filterTable(this.table, this.form,this);
|
|
248
|
+
|
|
246
249
|
tableModule.populateDataQueries(this.table, this.form);
|
|
247
250
|
}
|
|
248
251
|
|
|
@@ -256,6 +259,22 @@ class iamTable extends HTMLElement {
|
|
|
256
259
|
|
|
257
260
|
});
|
|
258
261
|
|
|
262
|
+
// Push up the pagination events
|
|
263
|
+
this.pagination.addEventListener('update-show', (event) => {
|
|
264
|
+
|
|
265
|
+
let show = event.detail.show;
|
|
266
|
+
|
|
267
|
+
const updateEvent = new CustomEvent("update-show", { detail: { show: show } });
|
|
268
|
+
this.dispatchEvent(updateEvent);
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
this.pagination.addEventListener('update-page', (event) => {
|
|
272
|
+
|
|
273
|
+
let page = event.detail.page;
|
|
274
|
+
|
|
275
|
+
const updateEvent = new CustomEvent("update-page", { detail: { page: page } });
|
|
276
|
+
this.dispatchEvent(updateEvent);
|
|
277
|
+
});
|
|
259
278
|
}
|
|
260
279
|
|
|
261
280
|
|
|
@@ -265,6 +284,10 @@ class iamTable extends HTMLElement {
|
|
|
265
284
|
|
|
266
285
|
attributeChangedCallback(attrName, oldVal, newVal) {
|
|
267
286
|
|
|
287
|
+
if(this.hasAttribute('data-no-submit')){
|
|
288
|
+
return false;
|
|
289
|
+
}
|
|
290
|
+
|
|
268
291
|
this.pagination = this.shadowRoot.querySelector('iam-pagination');
|
|
269
292
|
|
|
270
293
|
switch (attrName) {
|
|
@@ -149,7 +149,9 @@ export const addFilterEventListeners = (table, form, pagination, wrapper, savedT
|
|
|
149
149
|
// Check what conditions are set on the table to see what the form actions are
|
|
150
150
|
let formSubmit = function(event, paginate = false){
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
if(wrapper.hasAttribute('data-no-submit')){
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
153
155
|
|
|
154
156
|
if(form.classList.contains('processing'))
|
|
155
157
|
return false;
|
|
@@ -848,6 +850,10 @@ export const populateDataQueries = (table,form,wrapper) => {
|
|
|
848
850
|
// Pagination
|
|
849
851
|
export const addPaginationEventListeners = function(table, form, pagination, wrapper){
|
|
850
852
|
|
|
853
|
+
if(wrapper.hasAttribute('data-no-submit')){
|
|
854
|
+
return false;
|
|
855
|
+
}
|
|
856
|
+
|
|
851
857
|
pagination.addEventListener('update-page', (event) => {
|
|
852
858
|
|
|
853
859
|
let paginationInput = form.querySelector('[data-pagination]');
|
|
@@ -1007,7 +1013,7 @@ const filterFilters = function(form){
|
|
|
1007
1013
|
}
|
|
1008
1014
|
|
|
1009
1015
|
export const loadAjaxTable = async function (table, form, pagination, wrapper){
|
|
1010
|
-
|
|
1016
|
+
|
|
1011
1017
|
let formData = new FormData(form);
|
|
1012
1018
|
let queryString = new URLSearchParams(formData).toString();
|
|
1013
1019
|
let columns = table.querySelectorAll('thead tr th:not(.expand-button-heading)');
|
package/dist/components.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as l, normalizeClass as b, createElementVNode as d, toDisplayString as y, createCommentVNode as p, renderSlot as u, Fragment as $, renderList as k, withDirectives as
|
|
1
|
+
import { openBlock as o, createElementBlock as l, normalizeClass as b, createElementVNode as d, toDisplayString as y, createCommentVNode as p, renderSlot as u, Fragment as $, renderList as k, withDirectives as L, mergeProps as w, vModelDynamic as x, vModelText as D, vModelSelect as V, ref as F, onMounted as z, createTextVNode as B, resolveComponent as q, createVNode as v, withModifiers as O } from "vue";
|
|
2
2
|
const m = (t, a) => {
|
|
3
3
|
const e = t.__vccOpts || t;
|
|
4
4
|
for (const [i, r] of a)
|
|
@@ -67,11 +67,11 @@ const Pa = /* @__PURE__ */ m(U, [["render", G]]), Q = (t) => t.charAt(0).toUpper
|
|
|
67
67
|
},
|
|
68
68
|
created() {
|
|
69
69
|
this.$nextTick(function() {
|
|
70
|
-
import("./table.component-
|
|
70
|
+
import("./table.component-f20ca683.mjs").then((t) => {
|
|
71
71
|
window.customElements.get("iam-table") || window.customElements.define("iam-table", t.default);
|
|
72
72
|
}).catch((t) => {
|
|
73
73
|
console.log(t.message);
|
|
74
|
-
}), Promise.resolve().then(() =>
|
|
74
|
+
}), Promise.resolve().then(() => Sa).then((t) => {
|
|
75
75
|
window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", t.default);
|
|
76
76
|
}).catch((t) => {
|
|
77
77
|
console.log(t.message);
|
|
@@ -300,8 +300,8 @@ const C = /* @__PURE__ */ m(Z, [["render", ie]]), ne = {
|
|
|
300
300
|
}, me = ["type", "name", "id", "pattern", "list"], pe = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, he = {
|
|
301
301
|
key: 6,
|
|
302
302
|
class: "input-group"
|
|
303
|
-
}, fe = ["type", "name", "id", "pattern", "list"], be = { class: "input-group-text flex-fill" }, ye = ["type", "name", "id", "pattern"], _e = ["value"], ge = ["type", "name", "id"], ve = ["for", "innerHTML"], we = ["type", "name", "id"], $e = ["for", "innerHTML"], ke = ["innerHTML"], Ae = ["id"],
|
|
304
|
-
function
|
|
303
|
+
}, fe = ["type", "name", "id", "pattern", "list"], be = { class: "input-group-text flex-fill" }, ye = ["type", "name", "id", "pattern"], _e = ["value"], ge = ["type", "name", "id"], ve = ["for", "innerHTML"], we = ["type", "name", "id"], $e = ["for", "innerHTML"], ke = ["innerHTML"], Ae = ["id"], Le = ["value"];
|
|
304
|
+
function Se(t, a, e, i, r, s) {
|
|
305
305
|
return o(), l("div", {
|
|
306
306
|
class: b(s.wrapperClass()),
|
|
307
307
|
ref: "wrapper"
|
|
@@ -325,7 +325,7 @@ function Le(t, a, e, i, r, s) {
|
|
|
325
325
|
innerHTML: e.suffix,
|
|
326
326
|
role: "presentation"
|
|
327
327
|
}, null, 10, re)) : p("", !0),
|
|
328
|
-
s.isInput() ?
|
|
328
|
+
s.isInput() ? L((o(), l("input", w({
|
|
329
329
|
key: 3,
|
|
330
330
|
"onUpdate:modelValue": a[0] || (a[0] = (n) => s.inputVal = n),
|
|
331
331
|
class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
@@ -337,9 +337,9 @@ function Le(t, a, e, i, r, s) {
|
|
|
337
337
|
}, t.$attrs, {
|
|
338
338
|
onKeyup: a[1] || (a[1] = (...n) => s.inputKeyup && s.inputKeyup(...n))
|
|
339
339
|
}), null, 16, de)), [
|
|
340
|
-
[
|
|
340
|
+
[x, s.inputVal]
|
|
341
341
|
]) : p("", !0),
|
|
342
|
-
e.type == "textarea" ?
|
|
342
|
+
e.type == "textarea" ? L((o(), l("textarea", w({
|
|
343
343
|
key: 4,
|
|
344
344
|
"onUpdate:modelValue": a[2] || (a[2] = (n) => s.inputVal = n),
|
|
345
345
|
class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
@@ -351,7 +351,7 @@ function Le(t, a, e, i, r, s) {
|
|
|
351
351
|
[D, s.inputVal]
|
|
352
352
|
]) : p("", !0),
|
|
353
353
|
e.type == "range" ? (o(), l("div", ue, [
|
|
354
|
-
|
|
354
|
+
L(d("input", w({
|
|
355
355
|
"onUpdate:modelValue": a[3] || (a[3] = (n) => s.inputVal = n),
|
|
356
356
|
class: `form-range${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
357
357
|
type: e.type,
|
|
@@ -360,12 +360,12 @@ function Le(t, a, e, i, r, s) {
|
|
|
360
360
|
pattern: s.needPattern(),
|
|
361
361
|
list: s.hasOptions()
|
|
362
362
|
}, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, me), [
|
|
363
|
-
[
|
|
363
|
+
[x, s.inputVal]
|
|
364
364
|
]),
|
|
365
365
|
d("output", pe, y(e.value), 1)
|
|
366
366
|
])) : p("", !0),
|
|
367
367
|
e.type == "color" ? (o(), l("div", he, [
|
|
368
|
-
|
|
368
|
+
L(d("input", w({
|
|
369
369
|
"onUpdate:modelValue": a[4] || (a[4] = (n) => s.inputVal = n),
|
|
370
370
|
class: `form-control form-control-color${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
371
371
|
type: e.type,
|
|
@@ -374,11 +374,11 @@ function Le(t, a, e, i, r, s) {
|
|
|
374
374
|
pattern: s.needPattern(),
|
|
375
375
|
list: s.hasOptions()
|
|
376
376
|
}, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, fe), [
|
|
377
|
-
[
|
|
377
|
+
[x, s.inputVal]
|
|
378
378
|
]),
|
|
379
379
|
d("output", be, y(e.value ? t.vale : "#000000"), 1)
|
|
380
380
|
])) : p("", !0),
|
|
381
|
-
e.type == "select" ?
|
|
381
|
+
e.type == "select" ? L((o(), l("select", w({
|
|
382
382
|
key: 7,
|
|
383
383
|
"onUpdate:modelValue": a[5] || (a[5] = (n) => s.inputVal = n),
|
|
384
384
|
class: `form-select${e.size ? ` form-select-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
@@ -435,11 +435,11 @@ function Le(t, a, e, i, r, s) {
|
|
|
435
435
|
(o(!0), l($, null, k(e.options, (n, c) => (o(), l("option", {
|
|
436
436
|
key: c,
|
|
437
437
|
value: n.value
|
|
438
|
-
}, y(n.value), 9,
|
|
438
|
+
}, y(n.value), 9, Le))), 128))
|
|
439
439
|
], 8, Ae)) : p("", !0)
|
|
440
440
|
], 2);
|
|
441
441
|
}
|
|
442
|
-
const N = /* @__PURE__ */ m(ne, [["render",
|
|
442
|
+
const N = /* @__PURE__ */ m(ne, [["render", Se]]), xe = {
|
|
443
443
|
name: "FileUpload",
|
|
444
444
|
props: {
|
|
445
445
|
maxfilesize: {
|
|
@@ -453,14 +453,14 @@ const N = /* @__PURE__ */ m(ne, [["render", Le]]), Se = {
|
|
|
453
453
|
},
|
|
454
454
|
created() {
|
|
455
455
|
this.$nextTick(function() {
|
|
456
|
-
import("./fileupload.component.min-
|
|
456
|
+
import("./fileupload.component.min-a2a3f28f.mjs").then((t) => {
|
|
457
457
|
window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload", t.default);
|
|
458
458
|
}).catch((t) => {
|
|
459
459
|
console.log(t.message);
|
|
460
460
|
});
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
|
-
}, Ra = /* @__PURE__ */ Object.assign(
|
|
463
|
+
}, Ra = /* @__PURE__ */ Object.assign(xe, {
|
|
464
464
|
emits: ["elementChange", "empty"],
|
|
465
465
|
setup(t, { emit: a }) {
|
|
466
466
|
const e = F(null);
|
|
@@ -483,7 +483,7 @@ const qe = {
|
|
|
483
483
|
props: {},
|
|
484
484
|
mounted() {
|
|
485
485
|
this.$nextTick(function() {
|
|
486
|
-
import("./accordion.component.min-
|
|
486
|
+
import("./accordion.component.min-1aed45c0.mjs").then((t) => {
|
|
487
487
|
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", t.default);
|
|
488
488
|
}).catch((t) => {
|
|
489
489
|
console.log(t.message);
|
|
@@ -619,7 +619,7 @@ const Va = /* @__PURE__ */ m(ze, [["render", Be]]), Oe = {
|
|
|
619
619
|
},
|
|
620
620
|
mounted() {
|
|
621
621
|
this.$nextTick(function() {
|
|
622
|
-
import("./carousel.component.min-
|
|
622
|
+
import("./carousel.component.min-7fad5c93.mjs").then((t) => {
|
|
623
623
|
window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel", t.default);
|
|
624
624
|
}).catch((t) => {
|
|
625
625
|
console.log(t.message);
|
|
@@ -646,7 +646,7 @@ const Fa = /* @__PURE__ */ m(Oe, [["render", Ue]]), We = {
|
|
|
646
646
|
},
|
|
647
647
|
mounted() {
|
|
648
648
|
this.$nextTick(function() {
|
|
649
|
-
import("./header.component.min-
|
|
649
|
+
import("./header.component.min-d119b840.mjs").then((t) => {
|
|
650
650
|
window.customElements.get("iam-header") || window.customElements.define("iam-header", t.default);
|
|
651
651
|
}).catch((t) => {
|
|
652
652
|
console.log(t.message);
|
|
@@ -940,7 +940,7 @@ const yt = {
|
|
|
940
940
|
}, gt = { class: "property-searchbar" }, vt = ["action", "method"], wt = { class: "col-12 col-md-3" }, $t = { class: "col-12 col-md" }, kt = /* @__PURE__ */ d("span", { class: "form-label d-none d-md-block" }, "Price range", -1), At = {
|
|
941
941
|
class: "row",
|
|
942
942
|
"data-input-range": ""
|
|
943
|
-
},
|
|
943
|
+
}, Lt = { class: "col-12 col-md" }, St = /* @__PURE__ */ d("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), xt = {
|
|
944
944
|
class: "row",
|
|
945
945
|
"data-input-range": ""
|
|
946
946
|
}, qt = { class: "col-12 col-md-2" }, Tt = /* @__PURE__ */ d("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
|
|
@@ -1002,9 +1002,9 @@ function Et(t, a, e, i, r, s) {
|
|
|
1002
1002
|
}, null, 8, ["options"])
|
|
1003
1003
|
])
|
|
1004
1004
|
]),
|
|
1005
|
-
d("fieldset",
|
|
1006
|
-
|
|
1007
|
-
d("div",
|
|
1005
|
+
d("fieldset", Lt, [
|
|
1006
|
+
St,
|
|
1007
|
+
d("div", xt, [
|
|
1008
1008
|
v(n, {
|
|
1009
1009
|
class: "col-6",
|
|
1010
1010
|
label: "Minimum beds",
|
|
@@ -1042,7 +1042,7 @@ const Ua = /* @__PURE__ */ m(yt, [["render", Et]]), Ht = {
|
|
|
1042
1042
|
name: "Nav",
|
|
1043
1043
|
mounted() {
|
|
1044
1044
|
this.$nextTick(function() {
|
|
1045
|
-
import("./nav.component.min-
|
|
1045
|
+
import("./nav.component.min-344b2012.mjs").then((t) => {
|
|
1046
1046
|
window.customElements.get("iam-nav") || window.customElements.define("iam-nav", t.default);
|
|
1047
1047
|
}).catch((t) => {
|
|
1048
1048
|
console.log(t.message);
|
|
@@ -1162,7 +1162,7 @@ const Xt = {
|
|
|
1162
1162
|
name: "Tabs",
|
|
1163
1163
|
created() {
|
|
1164
1164
|
this.$nextTick(function() {
|
|
1165
|
-
import("./tabs.component.min-
|
|
1165
|
+
import("./tabs.component.min-ad34f019.mjs").then((t) => {
|
|
1166
1166
|
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", t.default);
|
|
1167
1167
|
}).catch((t) => {
|
|
1168
1168
|
console.log(t.message);
|
|
@@ -1309,7 +1309,7 @@ function pa(t, a, e, i, r, s) {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
const Za = /* @__PURE__ */ m(ma, [["render", pa]]);
|
|
1311
1311
|
/*!
|
|
1312
|
-
* iamKey v5.6.1-
|
|
1312
|
+
* iamKey v5.6.1-beta17
|
|
1313
1313
|
* Copyright 2022-2024 iamproperty
|
|
1314
1314
|
*/
|
|
1315
1315
|
function ha(t, a) {
|
|
@@ -1479,7 +1479,7 @@ const ts = /* @__PURE__ */ m($a, [["render", ka]]), Aa = {
|
|
|
1479
1479
|
props: {},
|
|
1480
1480
|
mounted() {
|
|
1481
1481
|
this.$nextTick(function() {
|
|
1482
|
-
import("./actionbar.component.min-
|
|
1482
|
+
import("./actionbar.component.min-b891e3a0.mjs").then((t) => {
|
|
1483
1483
|
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", t.default);
|
|
1484
1484
|
}).catch((t) => {
|
|
1485
1485
|
console.log(t.message);
|
|
@@ -1487,14 +1487,14 @@ const ts = /* @__PURE__ */ m($a, [["render", ka]]), Aa = {
|
|
|
1487
1487
|
});
|
|
1488
1488
|
}
|
|
1489
1489
|
};
|
|
1490
|
-
function
|
|
1490
|
+
function La(t, a, e, i, r, s) {
|
|
1491
1491
|
return o(), l("iam-actionbar", null, [
|
|
1492
1492
|
u(t.$slots, "default")
|
|
1493
1493
|
]);
|
|
1494
1494
|
}
|
|
1495
|
-
const as = /* @__PURE__ */ m(Aa, [["render",
|
|
1495
|
+
const as = /* @__PURE__ */ m(Aa, [["render", La]]);
|
|
1496
1496
|
/*!
|
|
1497
|
-
* iamKey v5.6.1-
|
|
1497
|
+
* iamKey v5.6.1-beta17
|
|
1498
1498
|
* Copyright 2022-2024 iamproperty
|
|
1499
1499
|
*/
|
|
1500
1500
|
class R extends HTMLElement {
|
|
@@ -1504,7 +1504,7 @@ class R extends HTMLElement {
|
|
|
1504
1504
|
i.innerHTML = `
|
|
1505
1505
|
<style>
|
|
1506
1506
|
@import "${e}";
|
|
1507
|
-
:host{container-type:inline-size;display:block}.pagination{display:block}@container (width > 23.4375em){.pagination{display:flex;align-items:center;justify-content:space-between !important;padding-top:2rem}}.pagination>div{display:flex;align-items:center}.pagination div:is(.page-jump,.per-page){border:1px solid var(--colour-light);height:3.25rem;display:none;align-items:center;padding-inline:1rem}.pagination div:is(.page-jump,.per-page) .select--minimal{
|
|
1507
|
+
:host{container-type:inline-size;display:block}.pagination{display:block}@container (width > 23.4375em){.pagination{display:flex;align-items:center;justify-content:space-between !important;padding-top:2rem}}.pagination>div{display:flex;align-items:center}.pagination div:is(.page-jump,.per-page){border:1px solid var(--colour-light);height:3.25rem;display:none;align-items:center;padding-inline:1rem}.pagination div:is(.page-jump,.per-page) .select--minimal{height:calc(3.25rem - 1em);line-height:calc(3.25rem - 1em);margin-left:-1rem;font-weight:bold}.pagination div:is(.page-jump,.per-page) div:has(>select){margin-bottom:0}.pagination div:is(.page-jump,.per-page) div:has(>select):after{top:50%}.page-jump{border-right:none !important}.total-pages{white-space:nowrap}:host([data-page-jump][data-minimal]) .page-jump{display:flex !important}@container (width > 23.4375em){:host([data-page-jump]) .page-jump{display:flex !important}}@container (width > 23.4375em){:host([data-per-page]:not([data-page-jump][data-item-count])) .per-page{display:flex !important}}@container (width > 48em){:host([data-per-page][data-page-jump][data-item-count]) .per-page{display:flex !important}}.pagination>.item-count{display:block;text-align:center;margin-bottom:1rem;margin-inline:auto}@container (width > 23.4375em){.pagination>.item-count{display:none}:host([data-item-count]) .pagination>.item-count{display:flex !important;margin:0}}*:where(.prev,.next){border:1px solid var(--colour-light);line-height:3.25rem;height:3.25rem;margin:0;display:none;background:none;padding-inline:1rem;color:var(--colour-body)}@container (width > 23.4375em){*:where(.prev,.next){display:inline-block}}*:where(.prev,.next):after{margin-left:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--pagination-link-color);color:var(--colour-hover)}*:where(.prev,.next):is(:active):not(:disabled){background-color:var(--pagination-link-color);color:var(--colour-active)}*:where(.prev,.next):disabled:after,*:where(.prev,.next):disabled:before{color:inherit !important}:host([data-minimal]) .pagination{justify-content:flex-end}@container (width > 23.4375em){:host([data-minimal]) .pagination{justify-content:space-between}}:host([data-minimal]) *:where(.prev,.next){display:inline-block !important}.prev{border-right:none}.prev:after{display:none}.prev:before{margin-right:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}.mobile-controls{display:block}:host([data-minimal]) .pagination{padding-top:1.5rem;display:flex;align-items:center;justify-content:flex-end}:host([data-minimal]) *:is(.mobile-controls,.item-count){display:none}@container (width > 23.4375em){.mobile-controls{display:none !important}:host([data-item-count]) .item-count{display:flex !important}}.fa-spin{display:none !important;font-size:3rem;color:var(--colour-info)}:host([data-loading]) .mobile-controls{padding-top:2rem}:host([data-loading]) .item-count,:host([data-loading]) .mobile-controls>*:not(.fa-spin){display:none !important}:host([data-loading]) .fa-spin{display:block !important;margin:auto}/*# sourceMappingURL=assets/css/components/pagination.css.map */
|
|
1508
1508
|
|
|
1509
1509
|
|
|
1510
1510
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
@@ -1559,12 +1559,12 @@ class R extends HTMLElement {
|
|
|
1559
1559
|
});
|
|
1560
1560
|
}
|
|
1561
1561
|
setup() {
|
|
1562
|
-
const a = this.shadowRoot.querySelector(".pagination"), e = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), r = this.shadowRoot.querySelector(".next"), s = this.shadowRoot.querySelector(".item-count"), n = this.shadowRoot.querySelector(".per-page select"), c = this.shadowRoot.querySelector(".total-pages"), h = parseInt(this.getAttribute("data-page")), _ = parseInt(this.getAttribute("data-total")), g = parseInt(this.getAttribute("data-show")), f = parseInt(this.getAttribute("data-increment")),
|
|
1562
|
+
const a = this.shadowRoot.querySelector(".pagination"), e = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), r = this.shadowRoot.querySelector(".next"), s = this.shadowRoot.querySelector(".item-count"), n = this.shadowRoot.querySelector(".per-page select"), c = this.shadowRoot.querySelector(".total-pages"), h = parseInt(this.getAttribute("data-page")), _ = parseInt(this.getAttribute("data-total")), g = parseInt(this.getAttribute("data-show")), f = parseInt(this.getAttribute("data-increment")), S = Math.ceil(_ / f);
|
|
1563
1563
|
_ > g && a.classList.remove("d-none");
|
|
1564
1564
|
let E = "";
|
|
1565
|
-
for (let A = 1; A <=
|
|
1565
|
+
for (let A = 1; A <= S; A++)
|
|
1566
1566
|
E += `<option value="${A}" ${A == h ? "selected" : ""}>${A}</option>`;
|
|
1567
|
-
e.innerHTML = E, c.innerHTML = `of ${
|
|
1567
|
+
e.innerHTML = E, c.innerHTML = `of ${S}`, h == S ? r.setAttribute("disabled", "disabled") : r.removeAttribute("disabled"), h == 1 ? i.setAttribute("disabled", "disabled") : i.removeAttribute("disabled");
|
|
1568
1568
|
let j = h == 1 ? 1 : (h - 1) * g + 1, H = h == 1 ? g : h * g;
|
|
1569
1569
|
s.innerHTML = `${j} - ${H > _ ? _ : H} of ${_} items`;
|
|
1570
1570
|
const I = [15, 25, 40, 50];
|
|
@@ -1597,10 +1597,10 @@ class R extends HTMLElement {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
1599
|
}
|
|
1600
|
-
const
|
|
1600
|
+
const Sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1601
1601
|
__proto__: null,
|
|
1602
1602
|
default: R
|
|
1603
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1603
|
+
}, Symbol.toStringTag, { value: "Module" })), xa = {
|
|
1604
1604
|
name: "Pagination",
|
|
1605
1605
|
props: {},
|
|
1606
1606
|
computed: {},
|
|
@@ -1615,7 +1615,7 @@ const La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1615
1615
|
function qa(t, a, e, i, r, s) {
|
|
1616
1616
|
return o(), l("iam-pagination");
|
|
1617
1617
|
}
|
|
1618
|
-
const ss = /* @__PURE__ */ m(
|
|
1618
|
+
const ss = /* @__PURE__ */ m(xa, [["render", qa]]), Ta = {
|
|
1619
1619
|
name: "Address Lookup",
|
|
1620
1620
|
mounted() {
|
|
1621
1621
|
this.$nextTick(function() {
|