@everymatrix/user-transaction-history 1.44.0 → 1.45.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/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-4699d9a2.js +1382 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/cjs/user-transaction-history.cjs.entry.js +291 -295
- package/dist/cjs/user-transaction-history.cjs.js +17 -11
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/internal/filters.js +11 -20
- package/dist/collection/components/internal/loader.js +2 -14
- package/dist/collection/components/internal/page-size.js +3 -5
- package/dist/collection/components/internal/table.js +18 -29
- package/dist/collection/components/internal/transaction.js +4 -14
- package/dist/collection/components/user-transaction-history/index.js +1 -0
- package/dist/collection/components/user-transaction-history/user-transaction-history.js +334 -343
- package/dist/collection/global/app.js +1 -1
- package/dist/collection/utils/currency.utils.js +15 -15
- package/dist/collection/utils/date.util.js +6 -6
- package/dist/collection/utils/locale.util.js +60 -60
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-b111cb50.js +1353 -0
- package/dist/esm/loader.js +7 -13
- package/dist/esm/user-transaction-history.entry.js +291 -295
- package/dist/esm/user-transaction-history.js +14 -11
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-transaction-history/.stencil/packages/stencil/user-transaction-history/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/internal/filters.d.ts +4 -4
- package/dist/types/components/internal/page-size.d.ts +4 -4
- package/dist/types/components/internal/table.d.ts +2 -2
- package/dist/types/components/user-transaction-history/index.d.ts +1 -0
- package/dist/types/components/user-transaction-history/user-transaction-history.d.ts +37 -37
- package/dist/types/contracts/translation.d.ts +2 -2
- package/dist/types/models/transactions-response.model.d.ts +17 -17
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/dist/types/utils/currency.utils.d.ts +2 -2
- package/dist/types/utils/date.util.d.ts +2 -2
- package/dist/types/utils/locale.util.d.ts +38 -38
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/user-transaction-history/p-57173b50.js +2 -0
- package/dist/user-transaction-history/p-653991ac.entry.js +1 -0
- package/dist/user-transaction-history/p-e1255160.js +1 -0
- package/dist/user-transaction-history/user-transaction-history.esm.js +1 -1
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +8 -1
- package/dist/cjs/index-206e75cb.js +0 -1416
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/user-transaction-history.d.ts +0 -11
- package/dist/components/user-transaction-history.js +0 -378
- package/dist/esm/index-32e3ae05.js +0 -1388
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/user-transaction-history/.stencil/packages/user-transaction-history/stencil.config.d.ts +0 -2
- package/dist/user-transaction-history/p-10b5b959.js +0 -1
- package/dist/user-transaction-history/p-4e4fb37e.entry.js +0 -1
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-b111cb50.js';
|
|
2
|
+
export { s as setNonce } from './index-b111cb50.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
2
4
|
|
|
3
5
|
/*
|
|
4
|
-
Stencil Client Patch Browser
|
|
6
|
+
Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
5
7
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
var patchBrowser = () => {
|
|
9
|
+
const importMeta = import.meta.url;
|
|
10
|
+
const opts = {};
|
|
11
|
+
if (importMeta !== "") {
|
|
12
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
13
|
+
}
|
|
14
|
+
return promiseResolve(opts);
|
|
13
15
|
};
|
|
14
16
|
|
|
15
|
-
patchBrowser().then(options => {
|
|
16
|
-
|
|
17
|
+
patchBrowser().then(async (options) => {
|
|
18
|
+
await globalScripts();
|
|
19
|
+
return bootstrapLazy([["user-transaction-history",[[1,"user-transaction-history",{"endpoint":[513],"session":[513],"language":[513],"userId":[513,"user-id"],"translationUrl":[513,"translation-url"],"mobile":[516],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"page":[32],"pageSize":[32],"showMobileFilter":[32],"to":[32],"from":[32],"type":[32],"transactions":[32],"showLoader":[32]},[[9,"resize","getComponentHeight"]],{"page":["watchMultiple"],"type":["watchMultiple"],"session":["watchMultiple"],"userId":["watchMultiple"],"pageSize":["watchMultiple"],"showMobileFilter":["getComponentHeight"]}]]]], options);
|
|
17
20
|
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'user-transaction-history',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: true,
|
|
6
|
+
minifyJs: false,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'www',
|
|
14
|
+
serviceWorker: null // disable service workers
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
};
|
package/dist/stencil.config.js
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { sass } from
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
2
|
export const config = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
esmLoaderPath: '../loader',
|
|
3
|
+
namespace: 'user-transaction-history',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: false,
|
|
6
|
+
minifyJs: true,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
10
9
|
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
type: 'www',
|
|
19
|
-
serviceWorker: null, // disable service workers
|
|
20
|
-
},
|
|
21
|
-
],
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'dist',
|
|
14
|
+
esmLoaderPath: '../loader'
|
|
15
|
+
}
|
|
16
|
+
]
|
|
22
17
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
2
|
export interface FiltersProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
language: string;
|
|
4
|
+
from?: string | null;
|
|
5
|
+
to?: string | null;
|
|
6
|
+
applyFilters: (from: string | null, to: string | null) => void;
|
|
7
7
|
}
|
|
8
8
|
export declare const Filters: FunctionalComponent<FiltersProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
2
|
interface PagesSizeProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
pageSizes: number[];
|
|
4
|
+
changePageSize: (s: number) => void;
|
|
5
|
+
currentPageSize: number;
|
|
6
|
+
language: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const PageSize: FunctionalComponent<PagesSizeProps>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
2
|
import { Transaction } from '../../models/transactions-response.model';
|
|
3
3
|
export interface ITableComponent {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
source: Transaction[];
|
|
5
|
+
language: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const TableComponent: FunctionalComponent<ITableComponent>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UserTransactionHistory } from './user-transaction-history';
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { Transaction } from '../../models/transactions-response.model';
|
|
2
2
|
export declare class UserTransactionHistory {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
3
|
+
private pageSizes;
|
|
4
|
+
private pagination;
|
|
5
|
+
private stylingContainer;
|
|
6
|
+
private stylingAppended;
|
|
7
|
+
el: HTMLElement;
|
|
8
|
+
endpoint: string | null;
|
|
9
|
+
session: string;
|
|
10
|
+
language: string;
|
|
11
|
+
userId: string;
|
|
12
|
+
translationUrl: string;
|
|
13
|
+
mobile: boolean;
|
|
14
|
+
clientStyling: string | null;
|
|
15
|
+
clientStylingUrl: string | null;
|
|
16
|
+
page: number;
|
|
17
|
+
pageSize: number;
|
|
18
|
+
showMobileFilter: boolean;
|
|
19
|
+
to: string;
|
|
20
|
+
from: string;
|
|
21
|
+
type: string;
|
|
22
|
+
transactions: Transaction[];
|
|
23
|
+
showLoader: boolean;
|
|
24
|
+
watchMultiple(): void;
|
|
25
|
+
componentWillLoad(): Promise<void>;
|
|
26
|
+
componentDidRender(): void;
|
|
27
|
+
getComponentHeight(): void;
|
|
28
|
+
setHeightTableProperty(): void;
|
|
29
|
+
changeTransactionsType(type: string): void;
|
|
30
|
+
changePageSize(pageSize: number): void;
|
|
31
|
+
prev(): void;
|
|
32
|
+
next(): void;
|
|
33
|
+
applyFilters(from: string | null, to: string | null): void;
|
|
34
|
+
showFilter(): void;
|
|
35
|
+
render(): any;
|
|
36
|
+
private loadTransactions;
|
|
37
|
+
private getParams;
|
|
38
|
+
private setStyles;
|
|
39
|
+
private setClientStylingByURL;
|
|
40
40
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type Translation = Record<string, string>;
|
|
2
|
+
export type Translations = Record<string, Translation>;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export interface Transaction {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
completed: string;
|
|
3
|
+
created: string;
|
|
4
|
+
creditPayItemType: string;
|
|
5
|
+
creditVendorName: string;
|
|
6
|
+
currency: string;
|
|
7
|
+
debitPayItemType: string;
|
|
8
|
+
debitVendorName: string;
|
|
9
|
+
externalReference: string;
|
|
10
|
+
productType: string;
|
|
11
|
+
realAmount: number;
|
|
12
|
+
status: string;
|
|
13
|
+
transId: number;
|
|
14
|
+
type: number;
|
|
15
15
|
}
|
|
16
16
|
export interface Pagination {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
next: string | null;
|
|
18
|
+
previous: string | null;
|
|
19
19
|
}
|
|
20
20
|
export interface TransactionResponse {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
pagination: Pagination;
|
|
22
|
+
transactions: Transaction[];
|
|
23
23
|
}
|