@foxy.io/elements 1.15.0-beta.1 → 1.15.0-beta.2
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/dist/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +1 -1
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-coupon-card.js +1 -0
- package/dist/cdn/foxy-coupon-code-form.js +1 -0
- package/dist/cdn/foxy-coupon-codes-form.js +1 -0
- package/dist/cdn/foxy-coupon-form.js +1 -0
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-api.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +4 -807
- package/dist/cdn/foxy-customer-portal.js +4 -4
- package/dist/cdn/foxy-customer.js +1 -1
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-email-template-form.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-generate-codes-form.js +1 -0
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-nucleon-element.js +1 -1
- package/dist/cdn/foxy-pagination.js +1 -0
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -69
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +1 -1
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +3 -3
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-config-form.js +1 -1
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/{shared-5c8b531d.js → shared-0bda8ecb.js} +1 -1
- package/dist/cdn/{shared-07abcd7b.js → shared-0fcdd1c4.js} +1 -1
- package/dist/cdn/{shared-a46edf4b.js → shared-30131f76.js} +1 -1
- package/dist/cdn/shared-36629ded.js +131 -0
- package/dist/cdn/{shared-bc2bfe52.js → shared-4038cb18.js} +1 -1
- package/dist/cdn/{shared-44cfc617.js → shared-423a4840.js} +1 -1
- package/dist/cdn/shared-4fa5f144.js +1 -0
- package/dist/cdn/shared-51b5e223.js +1 -0
- package/dist/cdn/{shared-593f7e2c.js → shared-51e28c83.js} +1 -1
- package/dist/cdn/shared-710ed658.js +134 -0
- package/dist/cdn/shared-800a5471.js +1 -0
- package/dist/cdn/{shared-8a7bee0d.js → shared-8f7a66c4.js} +1 -1
- package/dist/cdn/{shared-91e768be.js → shared-9af7b5f0.js} +1 -1
- package/dist/cdn/{shared-7a42073a.js → shared-a11160e7.js} +5 -5
- package/dist/cdn/{shared-5f54e916.js → shared-a4e6ecb0.js} +1 -1
- package/dist/cdn/{shared-b5147166.js → shared-a8d96c23.js} +1 -1
- package/dist/cdn/{shared-322e60b1.js → shared-b03b6d72.js} +1 -1
- package/dist/cdn/shared-b2330475.js +1 -0
- package/dist/cdn/{shared-1761daef.js → shared-c1dadefe.js} +1 -1
- package/dist/cdn/shared-c6a4b2d6.js +1 -0
- package/dist/cdn/shared-ccea5a33.js +69 -0
- package/dist/cdn/shared-cd3c902e.js +1 -0
- package/dist/cdn/{shared-34b2c1e2.js → shared-d3831f99.js} +1 -1
- package/dist/cdn/shared-d9a260f0.js +1 -0
- package/dist/cdn/{shared-e5cbf291.js → shared-f875a4f8.js} +1 -1
- package/dist/cdn/{shared-e7f8ffe9.js → shared-fb403e1f.js} +1 -1
- package/dist/cdn/shared-ff149b55.js +804 -0
- package/dist/cdn/translations/shared/en.json +105 -0
- package/dist/elements/private/Checkbox/Checkbox.js +36 -22
- package/dist/elements/private/Checkbox/Checkbox.js.map +1 -1
- package/dist/elements/private/EditableList/EditableList.d.ts +20 -0
- package/dist/elements/private/EditableList/EditableList.js +123 -0
- package/dist/elements/private/EditableList/EditableList.js.map +1 -0
- package/dist/elements/public/CouponCard/CouponCard.d.ts +29 -0
- package/dist/elements/public/CouponCard/CouponCard.js +130 -0
- package/dist/elements/public/CouponCard/CouponCard.js.map +1 -0
- package/dist/elements/public/CouponCard/index.d.ts +5 -0
- package/dist/elements/public/CouponCard/index.js +7 -0
- package/dist/elements/public/CouponCard/index.js.map +1 -0
- package/dist/elements/public/CouponCard/types.d.ts +15 -0
- package/dist/elements/public/CouponCard/types.js +2 -0
- package/dist/elements/public/CouponCard/types.js.map +1 -0
- package/dist/elements/public/CouponCodeForm/CouponCodeForm.d.ts +45 -0
- package/dist/elements/public/CouponCodeForm/CouponCodeForm.js +218 -0
- package/dist/elements/public/CouponCodeForm/CouponCodeForm.js.map +1 -0
- package/dist/elements/public/CouponCodeForm/index.d.ts +8 -0
- package/dist/elements/public/CouponCodeForm/index.js +10 -0
- package/dist/elements/public/CouponCodeForm/index.js.map +1 -0
- package/dist/elements/public/CouponCodeForm/types.d.ts +15 -0
- package/dist/elements/public/CouponCodeForm/types.js +2 -0
- package/dist/elements/public/CouponCodeForm/types.js.map +1 -0
- package/dist/elements/public/CouponCodesForm/CouponCodesForm.d.ts +29 -0
- package/dist/elements/public/CouponCodesForm/CouponCodesForm.js +209 -0
- package/dist/elements/public/CouponCodesForm/CouponCodesForm.js.map +1 -0
- package/dist/elements/public/CouponCodesForm/index.d.ts +8 -0
- package/dist/elements/public/CouponCodesForm/index.js +12 -0
- package/dist/elements/public/CouponCodesForm/index.js.map +1 -0
- package/dist/elements/public/CouponCodesForm/internal/InternalCouponCodesFormListItem.d.ts +14 -0
- package/dist/elements/public/CouponCodesForm/internal/InternalCouponCodesFormListItem.js +48 -0
- package/dist/elements/public/CouponCodesForm/internal/InternalCouponCodesFormListItem.js.map +1 -0
- package/dist/elements/public/CouponCodesForm/types.d.ts +16 -0
- package/dist/elements/public/CouponCodesForm/types.js +2 -0
- package/dist/elements/public/CouponCodesForm/types.js.map +1 -0
- package/dist/elements/public/CouponForm/CouponForm.d.ts +77 -0
- package/dist/elements/public/CouponForm/CouponForm.js +1266 -0
- package/dist/elements/public/CouponForm/CouponForm.js.map +1 -0
- package/dist/elements/public/CouponForm/index.d.ts +19 -0
- package/dist/elements/public/CouponForm/index.js +21 -0
- package/dist/elements/public/CouponForm/index.js.map +1 -0
- package/dist/elements/public/CouponForm/private/CategoryRestrictionsPage.d.ts +19 -0
- package/dist/elements/public/CouponForm/private/CategoryRestrictionsPage.js +98 -0
- package/dist/elements/public/CouponForm/private/CategoryRestrictionsPage.js.map +1 -0
- package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItem.d.ts +19 -0
- package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItem.js +51 -0
- package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItem.js.map +1 -0
- package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItemContent.d.ts +19 -0
- package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItemContent.js +52 -0
- package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItemContent.js.map +1 -0
- package/dist/elements/public/CouponForm/types.d.ts +27 -0
- package/dist/elements/public/CouponForm/types.js +2 -0
- package/dist/elements/public/CouponForm/types.js.map +1 -0
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js +19 -6
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js.map +1 -1
- package/dist/elements/public/GenerateCodesForm/GenerateCodesForm.d.ts +39 -0
- package/dist/elements/public/GenerateCodesForm/GenerateCodesForm.js +197 -0
- package/dist/elements/public/GenerateCodesForm/GenerateCodesForm.js.map +1 -0
- package/dist/elements/public/GenerateCodesForm/index.d.ts +8 -0
- package/dist/elements/public/GenerateCodesForm/index.js +10 -0
- package/dist/elements/public/GenerateCodesForm/index.js.map +1 -0
- package/dist/elements/public/GenerateCodesForm/types.d.ts +24 -0
- package/dist/elements/public/GenerateCodesForm/types.js +2 -0
- package/dist/elements/public/GenerateCodesForm/types.js.map +1 -0
- package/dist/elements/public/I18n/I18n.js +1 -1
- package/dist/elements/public/I18n/I18n.js.map +1 -1
- package/dist/elements/public/I18n/format/date.js +7 -6
- package/dist/elements/public/I18n/format/date.js.map +1 -1
- package/dist/elements/public/I18n/format/discount.d.ts +6 -0
- package/dist/elements/public/I18n/format/discount.js +20 -0
- package/dist/elements/public/I18n/format/discount.js.map +1 -0
- package/dist/elements/public/I18n/format/index.js +4 -0
- package/dist/elements/public/I18n/format/index.js.map +1 -1
- package/dist/elements/public/I18n/format/ordinal.d.ts +6 -0
- package/dist/elements/public/I18n/format/ordinal.js +9 -0
- package/dist/elements/public/I18n/format/ordinal.js.map +1 -0
- package/dist/elements/public/Pagination/Pagination.d.ts +37 -0
- package/dist/elements/public/Pagination/Pagination.js +154 -0
- package/dist/elements/public/Pagination/Pagination.js.map +1 -0
- package/dist/elements/public/Pagination/index.d.ts +6 -0
- package/dist/elements/public/Pagination/index.js +8 -0
- package/dist/elements/public/Pagination/index.js.map +1 -0
- package/dist/elements/public/Table/Table.js +20 -5
- package/dist/elements/public/Table/Table.js.map +1 -1
- package/dist/elements/public/index.d.ts +6 -0
- package/dist/elements/public/index.defined.d.ts +6 -0
- package/dist/elements/public/index.defined.js +6 -0
- package/dist/elements/public/index.defined.js.map +1 -1
- package/dist/elements/public/index.js +6 -0
- package/dist/elements/public/index.js.map +1 -1
- package/dist/mixins/themeable.js +80 -4
- package/dist/mixins/themeable.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-00563cb0.js +0 -1
- package/dist/cdn/shared-35dbd2c5.js +0 -1
- package/dist/cdn/shared-9a40309d.js +0 -1
- package/dist/cdn/shared-ce1da35d.js +0 -1
- package/dist/cdn/shared-d01d809a.js +0 -1
- package/dist/cdn/shared-d8ffb279.js +0 -264
- package/dist/cdn/shared-f1dc1c6c.js +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement, PropertyDeclarations, TemplateResult } from 'lit-element';
|
|
2
|
+
declare const Base: typeof LitElement & import("lit-element").Constructor<import("../../../mixins/translatable").TranslatableMixinHost> & {
|
|
3
|
+
defaultNS: string;
|
|
4
|
+
} & {
|
|
5
|
+
styles: import("lit-element").CSSResultArray;
|
|
6
|
+
} & import("lit-element").Constructor<import("../../../mixins/configurable").ConfigurableMixinHost>;
|
|
7
|
+
/**
|
|
8
|
+
* Helper element that adds pagination controls to elements
|
|
9
|
+
* representing Hypermedia API collection pages. Works with NucleonElement instances only.
|
|
10
|
+
* Page element **MUST** be a direct descendant of `foxy-pagination`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```html
|
|
14
|
+
* <foxy-pagination first="https://demo.api/hapi/customers?limit=3">
|
|
15
|
+
* <foxy-customers-table></foxy-customers-table>
|
|
16
|
+
* </foxy-pagination>
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @element foxy-pagination
|
|
20
|
+
* @since 1.15.0
|
|
21
|
+
*/
|
|
22
|
+
export declare class Pagination extends Base {
|
|
23
|
+
static get properties(): PropertyDeclarations;
|
|
24
|
+
private __pageElement;
|
|
25
|
+
private __rerender;
|
|
26
|
+
private __first;
|
|
27
|
+
/** URL of the first page of the colletion. */
|
|
28
|
+
get first(): string;
|
|
29
|
+
set first(newValue: string);
|
|
30
|
+
connectedCallback(): void;
|
|
31
|
+
render(): TemplateResult;
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
private __goTo;
|
|
34
|
+
private __disconnectPageElement;
|
|
35
|
+
private __connectPageElement;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { LitElement, html } from 'lit-element';
|
|
2
|
+
import { ConfigurableMixin } from "../../../mixins/configurable.js";
|
|
3
|
+
import { NucleonElement } from "../NucleonElement/NucleonElement.js";
|
|
4
|
+
import { ResponsiveMixin } from "../../../mixins/responsive.js";
|
|
5
|
+
import { ThemeableMixin } from "../../../mixins/themeable.js";
|
|
6
|
+
import { TranslatableMixin } from "../../../mixins/translatable.js";
|
|
7
|
+
import { classMap } from "../../../utils/class-map.js";
|
|
8
|
+
import get from 'lodash-es/get';
|
|
9
|
+
const NS = 'pagination';
|
|
10
|
+
const Base = ResponsiveMixin(ConfigurableMixin(ThemeableMixin(TranslatableMixin(LitElement, NS))));
|
|
11
|
+
/**
|
|
12
|
+
* Helper element that adds pagination controls to elements
|
|
13
|
+
* representing Hypermedia API collection pages. Works with NucleonElement instances only.
|
|
14
|
+
* Page element **MUST** be a direct descendant of `foxy-pagination`.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```html
|
|
18
|
+
* <foxy-pagination first="https://demo.api/hapi/customers?limit=3">
|
|
19
|
+
* <foxy-customers-table></foxy-customers-table>
|
|
20
|
+
* </foxy-pagination>
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @element foxy-pagination
|
|
24
|
+
* @since 1.15.0
|
|
25
|
+
*/
|
|
26
|
+
export class Pagination extends Base {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(...arguments);
|
|
29
|
+
this.__pageElement = null;
|
|
30
|
+
this.__rerender = () => this.requestUpdate();
|
|
31
|
+
this.__first = '';
|
|
32
|
+
}
|
|
33
|
+
static get properties() {
|
|
34
|
+
return {
|
|
35
|
+
...super.properties,
|
|
36
|
+
first: { type: String },
|
|
37
|
+
__pageElement: { attribute: false },
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/** URL of the first page of the colletion. */
|
|
41
|
+
get first() {
|
|
42
|
+
return this.__first;
|
|
43
|
+
}
|
|
44
|
+
set first(newValue) {
|
|
45
|
+
this.__first = newValue;
|
|
46
|
+
if (this.__pageElement)
|
|
47
|
+
this.__pageElement.href = newValue;
|
|
48
|
+
}
|
|
49
|
+
connectedCallback() {
|
|
50
|
+
super.connectedCallback();
|
|
51
|
+
this.__connectPageElement();
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
var _a;
|
|
55
|
+
const data = (_a = this.__pageElement) === null || _a === void 0 ? void 0 : _a.data;
|
|
56
|
+
const { disabled, lang, ns } = this;
|
|
57
|
+
const returnedItemsValue = Number(get(data, 'returned_items'));
|
|
58
|
+
const returnedItems = Number.isNaN(returnedItemsValue) ? 0 : returnedItemsValue;
|
|
59
|
+
const totalItemsValue = Number(get(data, 'total_items'));
|
|
60
|
+
const totalItems = Number.isNaN(totalItemsValue) ? 0 : totalItemsValue;
|
|
61
|
+
const offsetValue = Number(get(data, 'offset'));
|
|
62
|
+
const offset = Number.isNaN(offsetValue) ? 0 : offsetValue;
|
|
63
|
+
const canGoBack = !disabled && offset > 0;
|
|
64
|
+
const canGoForth = !disabled && offset + returnedItems < totalItems;
|
|
65
|
+
const labelClass = 'sr-only sm-not-sr-only';
|
|
66
|
+
return html `
|
|
67
|
+
<slot @slotchange=${this.__connectPageElement}></slot>
|
|
68
|
+
|
|
69
|
+
<div class="grid grid-cols-3 gap-s items-center">
|
|
70
|
+
<div class="flex items-center space-x-s">
|
|
71
|
+
<vaadin-button
|
|
72
|
+
theme="contrast tertiary-inline"
|
|
73
|
+
?disabled=${!canGoBack}
|
|
74
|
+
@click=${() => this.__goTo('first')}
|
|
75
|
+
>
|
|
76
|
+
<iron-icon class="icon-inline text-s" icon="icons:first-page"></iron-icon>
|
|
77
|
+
<foxy-i18n class=${labelClass} lang=${lang} key="first" ns=${ns}></foxy-i18n>
|
|
78
|
+
</vaadin-button>
|
|
79
|
+
|
|
80
|
+
<vaadin-button
|
|
81
|
+
theme="contrast tertiary-inline"
|
|
82
|
+
?disabled=${!canGoBack}
|
|
83
|
+
@click=${() => this.__goTo('prev')}
|
|
84
|
+
>
|
|
85
|
+
<iron-icon class="icon-inline text-s" icon="icons:chevron-left"></iron-icon>
|
|
86
|
+
<foxy-i18n class=${labelClass} lang=${lang} key="previous" ns=${ns}></foxy-i18n>
|
|
87
|
+
</vaadin-button>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<foxy-i18n
|
|
91
|
+
options=${JSON.stringify({
|
|
92
|
+
total: totalItems,
|
|
93
|
+
from: offset ? offset + 1 : 0,
|
|
94
|
+
to: offset + returnedItems,
|
|
95
|
+
})}
|
|
96
|
+
class=${classMap({
|
|
97
|
+
'flex-1 text-xs text-tertiary text-center leading-xs': true,
|
|
98
|
+
'opacity-0': !data,
|
|
99
|
+
})}
|
|
100
|
+
lang=${lang}
|
|
101
|
+
key="pagination"
|
|
102
|
+
ns=${ns}
|
|
103
|
+
>
|
|
104
|
+
</foxy-i18n>
|
|
105
|
+
|
|
106
|
+
<div class="flex items-center justify-end space-x-s">
|
|
107
|
+
<vaadin-button
|
|
108
|
+
theme="contrast tertiary-inline"
|
|
109
|
+
?disabled=${!canGoForth}
|
|
110
|
+
@click=${() => this.__goTo('next')}
|
|
111
|
+
>
|
|
112
|
+
<foxy-i18n class=${labelClass} lang=${lang} key="next" ns=${ns}></foxy-i18n>
|
|
113
|
+
<iron-icon class="icon-inline text-s" icon="icons:chevron-right"></iron-icon>
|
|
114
|
+
</vaadin-button>
|
|
115
|
+
|
|
116
|
+
<vaadin-button
|
|
117
|
+
theme="contrast tertiary-inline"
|
|
118
|
+
?disabled=${!canGoForth}
|
|
119
|
+
@click=${() => this.__goTo('last')}
|
|
120
|
+
>
|
|
121
|
+
<foxy-i18n class=${labelClass} lang=${lang} key="last" ns=${ns}></foxy-i18n>
|
|
122
|
+
<iron-icon class="icon-inline text-s" icon="icons:last-page"></iron-icon>
|
|
123
|
+
</vaadin-button>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
`;
|
|
127
|
+
}
|
|
128
|
+
disconnectedCallback() {
|
|
129
|
+
super.disconnectedCallback();
|
|
130
|
+
this.__disconnectPageElement();
|
|
131
|
+
}
|
|
132
|
+
__goTo(rel) {
|
|
133
|
+
var _a;
|
|
134
|
+
this.__pageElement.href = String(get((_a = this.__pageElement) === null || _a === void 0 ? void 0 : _a.data, `_links.${rel}.href`));
|
|
135
|
+
}
|
|
136
|
+
__disconnectPageElement() {
|
|
137
|
+
var _a;
|
|
138
|
+
(_a = this.__pageElement) === null || _a === void 0 ? void 0 : _a.removeEventListener('update', this.__rerender);
|
|
139
|
+
this.__pageElement = null;
|
|
140
|
+
}
|
|
141
|
+
__connectPageElement() {
|
|
142
|
+
var _a;
|
|
143
|
+
this.__disconnectPageElement();
|
|
144
|
+
const slot = this.renderRoot.querySelector('slot');
|
|
145
|
+
const assignedElements = (_a = slot === null || slot === void 0 ? void 0 : slot.assignedElements()) !== null && _a !== void 0 ? _a : [];
|
|
146
|
+
const firstNucleonElement = assignedElements.find(el => el instanceof NucleonElement);
|
|
147
|
+
if (firstNucleonElement) {
|
|
148
|
+
this.__pageElement = firstNucleonElement;
|
|
149
|
+
this.__pageElement.addEventListener('update', this.__rerender);
|
|
150
|
+
this.__pageElement.href = this.first;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=Pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.js","sourceRoot":"","s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AAC,aAAa,CAAkB,MAAM,CAAC,CAAC;QACpE,MAAM,gBAAgB,SAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,gBAAgB,qCAAM,EAAE,CAAC;QACxD,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,cAAc,CAEvE,CAAC;QAEd,IAAI,mBAAmB,EAAE;YACvB,IAAI,CAAC,aAAa,GAAG,mBAAmB,CAAC;YACzC,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;YAC/D,IAAI,CAAC,aAAa,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC;SACtC;IACH,CAAC;CACF","sourcesContent":["import { LitElement, PropertyDeclarations, TemplateResult, html } from 'lit-element';\n\nimport { ConfigurableMixin } from '../../../mixins/configurable';\nimport { NucleonElement } from '../NucleonElement/NucleonElement';\nimport { ResponsiveMixin } from '../../../mixins/responsive';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { classMap } from '../../../utils/class-map';\nimport get from 'lodash-es/get';\n\nconst NS = 'pagination';\nconst Base = ResponsiveMixin(ConfigurableMixin(ThemeableMixin(TranslatableMixin(LitElement, NS))));\n\n/**\n * Helper element that adds pagination controls to elements\n * representing Hypermedia API collection pages. Works with NucleonElement instances only.\n * Page element **MUST** be a direct descendant of `foxy-pagination`.\n *\n * @example\n * ```html\n * <foxy-pagination first=\"https://demo.api/hapi/customers?limit=3\">\n * <foxy-customers-table></foxy-customers-table>\n * </foxy-pagination>\n * ```\n *\n * @element foxy-pagination\n * @since 1.15.0\n */\nexport class Pagination extends Base {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n first: { type: String },\n __pageElement: { attribute: false },\n };\n }\n\n private __pageElement: NucleonElement<any> | null = null;\n\n private __rerender = () => this.requestUpdate();\n\n private __first = '';\n\n /** URL of the first page of the colletion. */\n get first(): string {\n return this.__first;\n }\n\n set first(newValue: string) {\n this.__first = newValue;\n if (this.__pageElement) this.__pageElement.href = newValue;\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.__connectPageElement();\n }\n\n render(): TemplateResult {\n const data = this.__pageElement?.data;\n const { disabled, lang, ns } = this;\n\n const returnedItemsValue = Number(get(data, 'returned_items'));\n const returnedItems = Number.isNaN(returnedItemsValue) ? 0 : returnedItemsValue;\n\n const totalItemsValue = Number(get(data, 'total_items'));\n const totalItems = Number.isNaN(totalItemsValue) ? 0 : totalItemsValue;\n\n const offsetValue = Number(get(data, 'offset'));\n const offset = Number.isNaN(offsetValue) ? 0 : offsetValue;\n\n const canGoBack = !disabled && offset > 0;\n const canGoForth = !disabled && offset + returnedItems < totalItems;\n\n const labelClass = 'sr-only sm-not-sr-only';\n\n return html`\n <slot @slotchange=${this.__connectPageElement}></slot>\n\n <div class=\"grid grid-cols-3 gap-s items-center\">\n <div class=\"flex items-center space-x-s\">\n <vaadin-button\n theme=\"contrast tertiary-inline\"\n ?disabled=${!canGoBack}\n @click=${() => this.__goTo('first')}\n >\n <iron-icon class=\"icon-inline text-s\" icon=\"icons:first-page\"></iron-icon>\n <foxy-i18n class=${labelClass} lang=${lang} key=\"first\" ns=${ns}></foxy-i18n>\n </vaadin-button>\n\n <vaadin-button\n theme=\"contrast tertiary-inline\"\n ?disabled=${!canGoBack}\n @click=${() => this.__goTo('prev')}\n >\n <iron-icon class=\"icon-inline text-s\" icon=\"icons:chevron-left\"></iron-icon>\n <foxy-i18n class=${labelClass} lang=${lang} key=\"previous\" ns=${ns}></foxy-i18n>\n </vaadin-button>\n </div>\n\n <foxy-i18n\n options=${JSON.stringify({\n total: totalItems,\n from: offset ? offset + 1 : 0,\n to: offset + returnedItems,\n })}\n class=${classMap({\n 'flex-1 text-xs text-tertiary text-center leading-xs': true,\n 'opacity-0': !data,\n })}\n lang=${lang}\n key=\"pagination\"\n ns=${ns}\n >\n </foxy-i18n>\n\n <div class=\"flex items-center justify-end space-x-s\">\n <vaadin-button\n theme=\"contrast tertiary-inline\"\n ?disabled=${!canGoForth}\n @click=${() => this.__goTo('next')}\n >\n <foxy-i18n class=${labelClass} lang=${lang} key=\"next\" ns=${ns}></foxy-i18n>\n <iron-icon class=\"icon-inline text-s\" icon=\"icons:chevron-right\"></iron-icon>\n </vaadin-button>\n\n <vaadin-button\n theme=\"contrast tertiary-inline\"\n ?disabled=${!canGoForth}\n @click=${() => this.__goTo('last')}\n >\n <foxy-i18n class=${labelClass} lang=${lang} key=\"last\" ns=${ns}></foxy-i18n>\n <iron-icon class=\"icon-inline text-s\" icon=\"icons:last-page\"></iron-icon>\n </vaadin-button>\n </div>\n </div>\n `;\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.__disconnectPageElement();\n }\n\n private __goTo(rel: string): void {\n this.__pageElement!.href = String(get(this.__pageElement?.data, `_links.${rel}.href`));\n }\n\n private __disconnectPageElement() {\n this.__pageElement?.removeEventListener('update', this.__rerender);\n this.__pageElement = null;\n }\n\n private __connectPageElement() {\n this.__disconnectPageElement();\n\n const slot = this.renderRoot.querySelector<HTMLSlotElement>('slot');\n const assignedElements = slot?.assignedElements() ?? [];\n const firstNucleonElement = assignedElements.find(el => el instanceof NucleonElement) as\n | NucleonElement<any>\n | undefined;\n\n if (firstNucleonElement) {\n this.__pageElement = firstNucleonElement;\n this.__pageElement.addEventListener('update', this.__rerender);\n this.__pageElement.href = this.first;\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '@polymer/iron-icons';
|
|
2
|
+
import '@polymer/iron-icon';
|
|
3
|
+
import '@vaadin/vaadin-button';
|
|
4
|
+
import "../I18n/index.js";
|
|
5
|
+
import { Pagination } from "./Pagination.js";
|
|
6
|
+
customElements.define('foxy-pagination', Pagination);
|
|
7
|
+
export { Pagination };
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/elements/public/Pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uBAAuB,CAAC;AAC/B,0BAAuB;AAEvB,OAAO,EAAE,UAAU,EAAE,wBAAqB;AAE1C,cAAc,CAAC,MAAM,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,CAAC","sourcesContent":["import '@polymer/iron-icons';\nimport '@polymer/iron-icon';\nimport '@vaadin/vaadin-button';\nimport '../I18n/index';\n\nimport { Pagination } from './Pagination';\n\ncustomElements.define('foxy-pagination', Pagination);\n\nexport { Pagination };\n"]}
|
|
@@ -29,15 +29,30 @@ export class Table extends Base {
|
|
|
29
29
|
/** @readonly */
|
|
30
30
|
render() {
|
|
31
31
|
var _a, _b;
|
|
32
|
+
const hasHeaders = this.columns.some(column => !!column.header);
|
|
32
33
|
return html `
|
|
33
|
-
<div
|
|
34
|
+
<div
|
|
35
|
+
data-testid="wrapper"
|
|
36
|
+
aria-busy=${this.in('busy')}
|
|
37
|
+
aria-live="polite"
|
|
38
|
+
class="relative font-lumo text-m"
|
|
39
|
+
>
|
|
34
40
|
<table class="table-fixed w-full" data-testid="table">
|
|
35
|
-
<thead class
|
|
41
|
+
<thead class=${hasHeaders ? 'border-b border-contrast-10' : 'sr-only'}>
|
|
36
42
|
<tr>
|
|
37
|
-
${this.columns.map(column => {
|
|
43
|
+
${this.columns.map((column, columnIndex) => {
|
|
38
44
|
var _a;
|
|
39
45
|
return html `
|
|
40
|
-
<th
|
|
46
|
+
<th
|
|
47
|
+
class=${classMap({
|
|
48
|
+
'truncate h-l text-tertiary text-m text-left font-medium': true,
|
|
49
|
+
'text-right': columnIndex === this.columns.length - 1,
|
|
50
|
+
'hidden sm-table-cell': column.hideBelow === 'sm',
|
|
51
|
+
'hidden md-table-cell': column.hideBelow === 'md',
|
|
52
|
+
'hidden lg-table-cell': column.hideBelow === 'lg',
|
|
53
|
+
'hidden xl-table-cell': column.hideBelow === 'xl',
|
|
54
|
+
})}
|
|
55
|
+
>
|
|
41
56
|
${(_a = column.header) === null || _a === void 0 ? void 0 : _a.call(column, { html, lang: this.lang, data: this.data, ns: this.ns })}
|
|
42
57
|
</th>
|
|
43
58
|
`;
|
|
@@ -60,7 +75,7 @@ export class Table extends Base {
|
|
|
60
75
|
'hidden md-table-cell': column.hideBelow === 'md',
|
|
61
76
|
'hidden lg-table-cell': column.hideBelow === 'lg',
|
|
62
77
|
'hidden xl-table-cell': column.hideBelow === 'xl',
|
|
63
|
-
'truncate h-l
|
|
78
|
+
'truncate h-l text-body': true,
|
|
64
79
|
})}
|
|
65
80
|
>
|
|
66
81
|
${resource
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../src/elements/public/Table/Table.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,cAAc,EAAE,mCAAgC;AAEzD,OAAO,EAAE,eAAe,EAAE,sCAAmC;AAC7D,OAAO,EAAE,cAAc,EAAE,qCAAkC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AAEpD,MAAM,IAAI,GAAG,iBAAiB,CAAC,eAAe,CAAC,cAAc,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnG;;;;;GAKG;AACH,MAAM,OAAO,KAAgC,SAAQ,IAAW;IAAhE;;QASE,cAAS,GAAqB,EAAE,CAAC;QAEjC,qEAAqE;QACrE,YAAO,GAAoB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../src/elements/public/Table/Table.ts"],"names":[],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,CAAC;aACtD;YAAC,WAAM;gBACN,QAAQ,GAAG,YAAY,CAAC;aACzB;SACF;aAAM;YACL,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC;SACzB;QAED,OAAO,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,wBAAC,KAAK,CAAC,CAAC,CAAC,mCAAI,CAAC,GAAA,CAAC,CAAC;IACrE,CAAC;CACF","sourcesContent":["import { Collection, Column, Templates } from './types';\nimport { TemplateResult, html } from 'lit-html';\n\nimport { ConfigurableMixin } from '../../../mixins/configurable';\nimport { NucleonElement } from '../NucleonElement/index';\nimport { PropertyDeclarations } from 'lit-element';\nimport { ResponsiveMixin } from '../../../mixins/responsive';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { classMap } from '../../../utils/class-map';\n\nconst Base = ConfigurableMixin(ResponsiveMixin(ThemeableMixin(TranslatableMixin(NucleonElement))));\n\n/**\n * Configurable table element for HAL+JSON collections.\n *\n * @element foxy-table\n * @since 1.1.0\n */\nexport class Table<TData extends Collection> extends Base<TData> {\n /** @readonly */\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n columns: { attribute: false },\n };\n }\n\n templates: Templates<TData> = {};\n\n /** Array of column templates. See `Column` type for more details. */\n columns: Column<TData>[] = [];\n\n /** @readonly */\n render(): TemplateResult {\n const hasHeaders = this.columns.some(column => !!column.header);\n\n return html`\n <div\n data-testid=\"wrapper\"\n aria-busy=${this.in('busy')}\n aria-live=\"polite\"\n class=\"relative font-lumo text-m\"\n >\n <table class=\"table-fixed w-full\" data-testid=\"table\">\n <thead class=${hasHeaders ? 'border-b border-contrast-10' : 'sr-only'}>\n <tr>\n ${this.columns.map((column, columnIndex) => {\n return html`\n <th\n class=${classMap({\n 'truncate h-l text-tertiary text-m text-left font-medium': true,\n 'text-right': columnIndex === this.columns.length - 1,\n 'hidden sm-table-cell': column.hideBelow === 'sm',\n 'hidden md-table-cell': column.hideBelow === 'md',\n 'hidden lg-table-cell': column.hideBelow === 'lg',\n 'hidden xl-table-cell': column.hideBelow === 'xl',\n })}\n >\n ${column.header?.({ html, lang: this.lang, data: this.data, ns: this.ns })}\n </th>\n `;\n })}\n </tr>\n </thead>\n\n <tbody class=\"divide-y divide-contrast-10\">\n ${this.__rows.map(resource => {\n return html`\n <tr class=\"h-l\">\n ${this.columns?.map((column, columnIndex) => {\n return html`\n <td\n class=${classMap({\n 'text-right': columnIndex === this.columns.length - 1,\n 'hidden sm-table-cell': column.hideBelow === 'sm',\n 'hidden md-table-cell': column.hideBelow === 'md',\n 'hidden lg-table-cell': column.hideBelow === 'lg',\n 'hidden xl-table-cell': column.hideBelow === 'xl',\n 'truncate h-l text-body': true,\n })}\n >\n ${resource\n ? column.cell?.({ html, lang: this.lang, data: resource, ns: this.ns })\n : ''}\n </td>\n `;\n })}\n </tr>\n `;\n })}\n </tbody>\n </table>\n\n ${!this.in({ idle: 'snapshot' })\n ? html`\n <div class=\"absolute inset-0 flex items-center justify-center\">\n <foxy-spinner\n data-testid=\"spinner\"\n layout=\"vertical\"\n state=${this.in('busy') ? 'busy' : this.in('idle') ? 'empty' : 'error'}\n class=\"p-m bg-base shadow-xs rounded-t-l rounded-b-l\"\n lang=${this.lang}\n ns=\"${this.ns} ${customElements.get('foxy-spinner')?.defaultNS ?? ''}\"\n >\n </foxy-spinner>\n </div>\n `\n : ''}\n </div>\n\n ${this.renderTemplateOrSlot()}\n `;\n }\n\n private get __rows() {\n const defaultLimit = 20;\n const items = Object.values(this.data?._embedded ?? {}).reduce((p, c) => [...p, ...c], []);\n\n let rowCount: number;\n\n if (items.length === 0) {\n try {\n const strLimit = new URL(this.href ?? '').searchParams.get('limit');\n const intLimit = parseInt(strLimit ?? '');\n rowCount = isNaN(intLimit) ? defaultLimit : intLimit;\n } catch {\n rowCount = defaultLimit;\n }\n } else {\n rowCount = items.length;\n }\n\n return new Array(rowCount).fill(null).map((v, i) => items[i] ?? v);\n }\n}\n"]}
|
|
@@ -7,6 +7,10 @@ export { AttributeForm } from './AttributeForm/AttributeForm';
|
|
|
7
7
|
export { CancellationForm } from './CancellationForm/CancellationForm';
|
|
8
8
|
export { CollectionPage } from './CollectionPage/CollectionPage';
|
|
9
9
|
export { CollectionPages } from './CollectionPages/CollectionPages';
|
|
10
|
+
export { CouponCard } from './CouponCard/CouponCard';
|
|
11
|
+
export { CouponCodeForm } from './CouponCodeForm/CouponCodeForm';
|
|
12
|
+
export { CouponCodesForm } from './CouponCodesForm/CouponCodesForm';
|
|
13
|
+
export { CouponForm } from './CouponForm/CouponForm';
|
|
10
14
|
export { Customer } from './Customer/Customer';
|
|
11
15
|
export { CustomerApi } from './CustomerApi/CustomerApi';
|
|
12
16
|
export { CustomerCard } from './CustomerCard/CustomerCard';
|
|
@@ -21,9 +25,11 @@ export { Donation } from './Donation/Donation';
|
|
|
21
25
|
export { EmailTemplateForm } from './EmailTemplateForm/EmailTemplateForm';
|
|
22
26
|
export { ErrorEntryCard } from './ErrorEntryCard/ErrorEntryCard';
|
|
23
27
|
export { FormDialog } from './FormDialog/FormDialog';
|
|
28
|
+
export { GenerateCodesForm } from './GenerateCodesForm/GenerateCodesForm';
|
|
24
29
|
export { I18n } from './I18n/I18n';
|
|
25
30
|
export { ItemsForm, Item } from './ItemsForm/ItemsForm';
|
|
26
31
|
export { NucleonElement } from './NucleonElement/NucleonElement';
|
|
32
|
+
export { Pagination } from './Pagination/Pagination';
|
|
27
33
|
export { PaymentCard } from './PaymentCard/PaymentCard';
|
|
28
34
|
export { PaymentMethodCard } from './PaymentMethodCard/PaymentMethodCard';
|
|
29
35
|
export { QueryBuilder } from './QueryBuilder/QueryBuilder';
|
|
@@ -7,6 +7,10 @@ export { AttributeForm } from './AttributeForm/index';
|
|
|
7
7
|
export { CancellationForm } from './CancellationForm/index';
|
|
8
8
|
export { CollectionPage } from './CollectionPage/index';
|
|
9
9
|
export { CollectionPages } from './CollectionPages/index';
|
|
10
|
+
export { CouponCard } from './CouponCard/index';
|
|
11
|
+
export { CouponCodeForm } from './CouponCodeForm/index';
|
|
12
|
+
export { CouponCodesForm } from './CouponCodesForm/index';
|
|
13
|
+
export { CouponForm } from './CouponForm/index';
|
|
10
14
|
export { Customer } from './Customer/index';
|
|
11
15
|
export { CustomerApi } from './CustomerApi/index';
|
|
12
16
|
export { CustomerCard } from './CustomerCard/index';
|
|
@@ -21,9 +25,11 @@ export { Donation } from './Donation/index';
|
|
|
21
25
|
export { EmailTemplateForm } from './EmailTemplateForm/index';
|
|
22
26
|
export { ErrorEntryCard } from './ErrorEntryCard/index';
|
|
23
27
|
export { FormDialog } from './FormDialog/index';
|
|
28
|
+
export { GenerateCodesForm } from './GenerateCodesForm/index';
|
|
24
29
|
export { I18n } from './I18n/index';
|
|
25
30
|
export { ItemsForm, Item } from './ItemsForm/index';
|
|
26
31
|
export { NucleonElement } from './NucleonElement/index';
|
|
32
|
+
export { Pagination } from './Pagination/index';
|
|
27
33
|
export { PaymentCard } from './PaymentCard/index';
|
|
28
34
|
export { PaymentMethodCard } from './PaymentMethodCard/index';
|
|
29
35
|
export { QueryBuilder } from './QueryBuilder/index';
|
|
@@ -7,6 +7,10 @@ export { AttributeForm } from "./AttributeForm/index.js";
|
|
|
7
7
|
export { CancellationForm } from "./CancellationForm/index.js";
|
|
8
8
|
export { CollectionPage } from "./CollectionPage/index.js";
|
|
9
9
|
export { CollectionPages } from "./CollectionPages/index.js";
|
|
10
|
+
export { CouponCard } from "./CouponCard/index.js";
|
|
11
|
+
export { CouponCodeForm } from "./CouponCodeForm/index.js";
|
|
12
|
+
export { CouponCodesForm } from "./CouponCodesForm/index.js";
|
|
13
|
+
export { CouponForm } from "./CouponForm/index.js";
|
|
10
14
|
export { Customer } from "./Customer/index.js";
|
|
11
15
|
export { CustomerApi } from "./CustomerApi/index.js";
|
|
12
16
|
export { CustomerCard } from "./CustomerCard/index.js";
|
|
@@ -21,9 +25,11 @@ export { Donation } from "./Donation/index.js";
|
|
|
21
25
|
export { EmailTemplateForm } from "./EmailTemplateForm/index.js";
|
|
22
26
|
export { ErrorEntryCard } from "./ErrorEntryCard/index.js";
|
|
23
27
|
export { FormDialog } from "./FormDialog/index.js";
|
|
28
|
+
export { GenerateCodesForm } from "./GenerateCodesForm/index.js";
|
|
24
29
|
export { I18n } from "./I18n/index.js";
|
|
25
30
|
export { ItemsForm, Item } from "./ItemsForm/index.js";
|
|
26
31
|
export { NucleonElement } from "./NucleonElement/index.js";
|
|
32
|
+
export { Pagination } from "./Pagination/index.js";
|
|
27
33
|
export { PaymentCard } from "./PaymentCard/index.js";
|
|
28
34
|
export { PaymentMethodCard } from "./PaymentMethodCard/index.js";
|
|
29
35
|
export { QueryBuilder } from "./QueryBuilder/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.defined.js","sourceRoot":"","sources":["../../../src/elements/public/index.defined.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,sBAAsB,EAAE,0CAAuC;AACxE,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,IAAI,EAAE,wBAAqB;AACpC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,6BAA0B;AACpD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,UAAU,EAAE,8BAA2B","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/index';\nexport { AddressCard } from './AddressCard/index';\nexport { AddressForm } from './AddressForm/index';\nexport { AppliedTaxCard } from './AppliedTaxCard/index';\nexport { AttributeCard } from './AttributeCard/index';\nexport { AttributeForm } from './AttributeForm/index';\nexport { CancellationForm } from './CancellationForm/index';\nexport { CollectionPage } from './CollectionPage/index';\nexport { CollectionPages } from './CollectionPages/index';\nexport { Customer } from './Customer/index';\nexport { CustomerApi } from './CustomerApi/index';\nexport { CustomerCard } from './CustomerCard/index';\nexport { CustomerForm } from './CustomerForm/index';\nexport { CustomerPortal } from './CustomerPortal/index';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/index';\nexport { CustomersTable } from './CustomersTable/index';\nexport { CustomFieldCard } from './CustomFieldCard/index';\nexport { CustomFieldForm } from './CustomFieldForm/index';\nexport { DiscountCard } from './DiscountCard/index';\nexport { Donation } from './Donation/index';\nexport { EmailTemplateForm } from './EmailTemplateForm/index';\nexport { ErrorEntryCard } from './ErrorEntryCard/index';\nexport { FormDialog } from './FormDialog/index';\nexport { I18n } from './I18n/index';\nexport { ItemsForm, Item } from './ItemsForm/index';\nexport { NucleonElement } from './NucleonElement/index';\nexport { PaymentCard } from './PaymentCard/index';\nexport { PaymentMethodCard } from './PaymentMethodCard/index';\nexport { QueryBuilder } from './QueryBuilder/index';\nexport { SignInForm } from './SignInForm/index';\nexport { Spinner } from './Spinner/index';\nexport { SubscriptionCard } from './SubscriptionCard/index';\nexport { SubscriptionForm } from './SubscriptionForm/index';\nexport { SubscriptionsTable } from './SubscriptionsTable/index';\nexport { Table } from './Table/index';\nexport { TaxCard } from './TaxCard/index';\nexport { TaxForm } from './TaxForm/index';\nexport { TemplateConfigForm } from './TemplateConfigForm/index';\nexport { TemplateForm } from './TemplateForm/index';\nexport { TransactionCard } from './TransactionCard/index';\nexport { TransactionsTable } from './TransactionsTable/index';\nexport { UserForm } from './UserForm/index';\nexport { UsersTable } from './UsersTable/index';\n"]}
|
|
1
|
+
{"version":3,"file":"index.defined.js","sourceRoot":"","sources":["../../../src/elements/public/index.defined.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAk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AAE,8BAA2B;AAChD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,UAAU,EAAE,8BAA2B","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/index';\nexport { AddressCard } from './AddressCard/index';\nexport { AddressForm } from './AddressForm/index';\nexport { AppliedTaxCard } from './AppliedTaxCard/index';\nexport { AttributeCard } from './AttributeCard/index';\nexport { AttributeForm } from './AttributeForm/index';\nexport { CancellationForm } from './CancellationForm/index';\nexport { CollectionPage } from './CollectionPage/index';\nexport { CollectionPages } from './CollectionPages/index';\nexport { CouponCard } from './CouponCard/index';\nexport { CouponCodeForm } from './CouponCodeForm/index';\nexport { CouponCodesForm } from './CouponCodesForm/index';\nexport { CouponForm } from './CouponForm/index';\nexport { Customer } from './Customer/index';\nexport { CustomerApi } from './CustomerApi/index';\nexport { CustomerCard } from './CustomerCard/index';\nexport { CustomerForm } from './CustomerForm/index';\nexport { CustomerPortal } from './CustomerPortal/index';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/index';\nexport { CustomersTable } from './CustomersTable/index';\nexport { CustomFieldCard } from './CustomFieldCard/index';\nexport { CustomFieldForm } from './CustomFieldForm/index';\nexport { DiscountCard } from './DiscountCard/index';\nexport { Donation } from './Donation/index';\nexport { EmailTemplateForm } from './EmailTemplateForm/index';\nexport { ErrorEntryCard } from './ErrorEntryCard/index';\nexport { FormDialog } from './FormDialog/index';\nexport { GenerateCodesForm } from './GenerateCodesForm/index';\nexport { I18n } from './I18n/index';\nexport { ItemsForm, Item } from './ItemsForm/index';\nexport { NucleonElement } from './NucleonElement/index';\nexport { Pagination } from './Pagination/index';\nexport { PaymentCard } from './PaymentCard/index';\nexport { PaymentMethodCard } from './PaymentMethodCard/index';\nexport { QueryBuilder } from './QueryBuilder/index';\nexport { SignInForm } from './SignInForm/index';\nexport { Spinner } from './Spinner/index';\nexport { SubscriptionCard } from './SubscriptionCard/index';\nexport { SubscriptionForm } from './SubscriptionForm/index';\nexport { SubscriptionsTable } from './SubscriptionsTable/index';\nexport { Table } from './Table/index';\nexport { TaxCard } from './TaxCard/index';\nexport { TaxForm } from './TaxForm/index';\nexport { TemplateConfigForm } from './TemplateConfigForm/index';\nexport { TemplateForm } from './TemplateForm/index';\nexport { TransactionCard } from './TransactionCard/index';\nexport { TransactionsTable } from './TransactionsTable/index';\nexport { UserForm } from './UserForm/index';\nexport { UsersTable } from './UsersTable/index';\n"]}
|
|
@@ -7,6 +7,10 @@ export { AttributeForm } from "./AttributeForm/AttributeForm.js";
|
|
|
7
7
|
export { CancellationForm } from "./CancellationForm/CancellationForm.js";
|
|
8
8
|
export { CollectionPage } from "./CollectionPage/CollectionPage.js";
|
|
9
9
|
export { CollectionPages } from "./CollectionPages/CollectionPages.js";
|
|
10
|
+
export { CouponCard } from "./CouponCard/CouponCard.js";
|
|
11
|
+
export { CouponCodeForm } from "./CouponCodeForm/CouponCodeForm.js";
|
|
12
|
+
export { CouponCodesForm } from "./CouponCodesForm/CouponCodesForm.js";
|
|
13
|
+
export { CouponForm } from "./CouponForm/CouponForm.js";
|
|
10
14
|
export { Customer } from "./Customer/Customer.js";
|
|
11
15
|
export { CustomerApi } from "./CustomerApi/CustomerApi.js";
|
|
12
16
|
export { CustomerCard } from "./CustomerCard/CustomerCard.js";
|
|
@@ -21,9 +25,11 @@ export { Donation } from "./Donation/Donation.js";
|
|
|
21
25
|
export { EmailTemplateForm } from "./EmailTemplateForm/EmailTemplateForm.js";
|
|
22
26
|
export { ErrorEntryCard } from "./ErrorEntryCard/ErrorEntryCard.js";
|
|
23
27
|
export { FormDialog } from "./FormDialog/FormDialog.js";
|
|
28
|
+
export { GenerateCodesForm } from "./GenerateCodesForm/GenerateCodesForm.js";
|
|
24
29
|
export { I18n } from "./I18n/I18n.js";
|
|
25
30
|
export { ItemsForm, Item } from "./ItemsForm/ItemsForm.js";
|
|
26
31
|
export { NucleonElement } from "./NucleonElement/NucleonElement.js";
|
|
32
|
+
export { Pagination } from "./Pagination/Pagination.js";
|
|
27
33
|
export { PaymentCard } from "./PaymentCard/PaymentCard.js";
|
|
28
34
|
export { PaymentMethodCard } from "./PaymentMethodCard/PaymentMethodCard.js";
|
|
29
35
|
export { QueryBuilder } from "./QueryBuilder/QueryBuilder.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/elements/public/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EA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,OAAO,EAAE,iBAAiB,EAAE,iDAA8C;AAC1E,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,UAAU,EAAE,mCAAgC","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/AccessRecoveryForm';\nexport { AddressCard } from './AddressCard/AddressCard';\nexport { AddressForm } from './AddressForm/AddressForm';\nexport { AppliedTaxCard } from './AppliedTaxCard/AppliedTaxCard';\nexport { AttributeCard } from './AttributeCard/AttributeCard';\nexport { AttributeForm } from './AttributeForm/AttributeForm';\nexport { CancellationForm } from './CancellationForm/CancellationForm';\nexport { CollectionPage } from './CollectionPage/CollectionPage';\nexport { CollectionPages } from './CollectionPages/CollectionPages';\nexport { Customer } from './Customer/Customer';\nexport { CustomerApi } from './CustomerApi/CustomerApi';\nexport { CustomerCard } from './CustomerCard/CustomerCard';\nexport { CustomerForm } from './CustomerForm/CustomerForm';\nexport { CustomerPortal } from './CustomerPortal/CustomerPortal';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/CustomerPortalSettings';\nexport { CustomersTable } from './CustomersTable/CustomersTable';\nexport { CustomFieldCard } from './CustomFieldCard/CustomFieldCard';\nexport { CustomFieldForm } from './CustomFieldForm/CustomFieldForm';\nexport { DiscountCard } from './DiscountCard/DiscountCard';\nexport { Donation } from './Donation/Donation';\nexport { EmailTemplateForm } from './EmailTemplateForm/EmailTemplateForm';\nexport { ErrorEntryCard } from './ErrorEntryCard/ErrorEntryCard';\nexport { FormDialog } from './FormDialog/FormDialog';\nexport { I18n } from './I18n/I18n';\nexport { ItemsForm, Item } from './ItemsForm/ItemsForm';\nexport { NucleonElement } from './NucleonElement/NucleonElement';\nexport { PaymentCard } from './PaymentCard/PaymentCard';\nexport { PaymentMethodCard } from './PaymentMethodCard/PaymentMethodCard';\nexport { QueryBuilder } from './QueryBuilder/QueryBuilder';\nexport { SignInForm } from './SignInForm/SignInForm';\nexport { Spinner } from './Spinner/Spinner';\nexport { SubscriptionCard } from './SubscriptionCard/SubscriptionCard';\nexport { SubscriptionForm } from './SubscriptionForm/SubscriptionForm';\nexport { SubscriptionsTable } from './SubscriptionsTable/SubscriptionsTable';\nexport { Table } from './Table/Table';\nexport { TaxCard } from './TaxCard/TaxCard';\nexport { TaxForm } from './TaxForm/TaxForm';\nexport { TemplateForm } from './TemplateForm/TemplateForm';\nexport { TemplateConfigForm } from './TemplateConfigForm/TemplateConfigForm';\nexport { TransactionCard } from './TransactionCard/TransactionCard';\nexport { TransactionsTable } from './TransactionsTable/TransactionsTable';\nexport { UserForm } from './UserForm/UserForm';\nexport { UsersTable } from './UsersTable/UsersTable';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/elements/public/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,sBAAsB,EAAE,2DAAwD;AACzF,OAAO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Form/AccessRecoveryForm';\nexport { AddressCard } from './AddressCard/AddressCard';\nexport { AddressForm } from './AddressForm/AddressForm';\nexport { AppliedTaxCard } from './AppliedTaxCard/AppliedTaxCard';\nexport { AttributeCard } from './AttributeCard/AttributeCard';\nexport { AttributeForm } from './AttributeForm/AttributeForm';\nexport { CancellationForm } from './CancellationForm/CancellationForm';\nexport { CollectionPage } from './CollectionPage/CollectionPage';\nexport { CollectionPages } from './CollectionPages/CollectionPages';\nexport { CouponCard } from './CouponCard/CouponCard';\nexport { CouponCodeForm } from './CouponCodeForm/CouponCodeForm';\nexport { CouponCodesForm } from './CouponCodesForm/CouponCodesForm';\nexport { CouponForm } from './CouponForm/CouponForm';\nexport { Customer } from './Customer/Customer';\nexport { CustomerApi } from './CustomerApi/CustomerApi';\nexport { CustomerCard } from './CustomerCard/CustomerCard';\nexport { CustomerForm } from './CustomerForm/CustomerForm';\nexport { CustomerPortal } from './CustomerPortal/CustomerPortal';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/CustomerPortalSettings';\nexport { CustomersTable } from './CustomersTable/CustomersTable';\nexport { CustomFieldCard } from './CustomFieldCard/CustomFieldCard';\nexport { CustomFieldForm } from './CustomFieldForm/CustomFieldForm';\nexport { DiscountCard } from './DiscountCard/DiscountCard';\nexport { Donation } from './Donation/Donation';\nexport { EmailTemplateForm } from './EmailTemplateForm/EmailTemplateForm';\nexport { ErrorEntryCard } from './ErrorEntryCard/ErrorEntryCard';\nexport { FormDialog } from './FormDialog/FormDialog';\nexport { GenerateCodesForm } from './GenerateCodesForm/GenerateCodesForm';\nexport { I18n } from './I18n/I18n';\nexport { ItemsForm, Item } from './ItemsForm/ItemsForm';\nexport { NucleonElement } from './NucleonElement/NucleonElement';\nexport { Pagination } from './Pagination/Pagination';\nexport { PaymentCard } from './PaymentCard/PaymentCard';\nexport { PaymentMethodCard } from './PaymentMethodCard/PaymentMethodCard';\nexport { QueryBuilder } from './QueryBuilder/QueryBuilder';\nexport { SignInForm } from './SignInForm/SignInForm';\nexport { Spinner } from './Spinner/Spinner';\nexport { SubscriptionCard } from './SubscriptionCard/SubscriptionCard';\nexport { SubscriptionForm } from './SubscriptionForm/SubscriptionForm';\nexport { SubscriptionsTable } from './SubscriptionsTable/SubscriptionsTable';\nexport { Table } from './Table/Table';\nexport { TaxCard } from './TaxCard/TaxCard';\nexport { TaxForm } from './TaxForm/TaxForm';\nexport { TemplateForm } from './TemplateForm/TemplateForm';\nexport { TemplateConfigForm } from './TemplateConfigForm/TemplateConfigForm';\nexport { TransactionCard } from './TransactionCard/TransactionCard';\nexport { TransactionsTable } from './TransactionsTable/TransactionsTable';\nexport { UserForm } from './UserForm/UserForm';\nexport { UsersTable } from './UsersTable/UsersTable';\n"]}
|