@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.
Files changed (65) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-4699d9a2.js +1382 -0
  3. package/dist/cjs/loader.cjs.js +7 -13
  4. package/dist/cjs/user-transaction-history.cjs.entry.js +291 -295
  5. package/dist/cjs/user-transaction-history.cjs.js +17 -11
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/internal/filters.js +11 -20
  8. package/dist/collection/components/internal/loader.js +2 -14
  9. package/dist/collection/components/internal/page-size.js +3 -5
  10. package/dist/collection/components/internal/table.js +18 -29
  11. package/dist/collection/components/internal/transaction.js +4 -14
  12. package/dist/collection/components/user-transaction-history/index.js +1 -0
  13. package/dist/collection/components/user-transaction-history/user-transaction-history.js +334 -343
  14. package/dist/collection/global/app.js +1 -1
  15. package/dist/collection/utils/currency.utils.js +15 -15
  16. package/dist/collection/utils/date.util.js +6 -6
  17. package/dist/collection/utils/locale.util.js +60 -60
  18. package/dist/collection/utils/utils.js +3 -0
  19. package/dist/esm/app-globals-0f993ce5.js +3 -0
  20. package/dist/esm/index-b111cb50.js +1353 -0
  21. package/dist/esm/loader.js +7 -13
  22. package/dist/esm/user-transaction-history.entry.js +291 -295
  23. package/dist/esm/user-transaction-history.js +14 -11
  24. package/dist/stencil.config.dev.js +17 -0
  25. package/dist/stencil.config.js +14 -19
  26. 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
  27. 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
  28. package/dist/types/components/internal/filters.d.ts +4 -4
  29. package/dist/types/components/internal/page-size.d.ts +4 -4
  30. package/dist/types/components/internal/table.d.ts +2 -2
  31. package/dist/types/components/user-transaction-history/index.d.ts +1 -0
  32. package/dist/types/components/user-transaction-history/user-transaction-history.d.ts +37 -37
  33. package/dist/types/contracts/translation.d.ts +2 -2
  34. package/dist/types/models/transactions-response.model.d.ts +17 -17
  35. package/dist/types/stencil-public-runtime.d.ts +142 -33
  36. package/dist/types/utils/currency.utils.d.ts +2 -2
  37. package/dist/types/utils/date.util.d.ts +2 -2
  38. package/dist/types/utils/locale.util.d.ts +38 -38
  39. package/dist/types/utils/utils.d.ts +1 -0
  40. package/dist/user-transaction-history/p-57173b50.js +2 -0
  41. package/dist/user-transaction-history/p-653991ac.entry.js +1 -0
  42. package/dist/user-transaction-history/p-e1255160.js +1 -0
  43. package/dist/user-transaction-history/user-transaction-history.esm.js +1 -1
  44. package/loader/cdn.js +1 -3
  45. package/loader/index.cjs.js +1 -3
  46. package/loader/index.d.ts +13 -1
  47. package/loader/index.es2017.js +1 -3
  48. package/loader/index.js +1 -3
  49. package/loader/package.json +1 -0
  50. package/package.json +8 -1
  51. package/dist/cjs/index-206e75cb.js +0 -1416
  52. package/dist/components/index.d.ts +0 -26
  53. package/dist/components/index.js +0 -1
  54. package/dist/components/user-transaction-history.d.ts +0 -11
  55. package/dist/components/user-transaction-history.js +0 -378
  56. package/dist/esm/index-32e3ae05.js +0 -1388
  57. package/dist/esm/polyfills/core-js.js +0 -11
  58. package/dist/esm/polyfills/css-shim.js +0 -1
  59. package/dist/esm/polyfills/dom.js +0 -79
  60. package/dist/esm/polyfills/es5-html-element.js +0 -1
  61. package/dist/esm/polyfills/index.js +0 -34
  62. package/dist/esm/polyfills/system.js +0 -6
  63. 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
  64. package/dist/user-transaction-history/p-10b5b959.js +0 -1
  65. 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-32e3ae05.js';
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 v2.15.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
5
7
  */
6
- const patchBrowser = () => {
7
- const importMeta = import.meta.url;
8
- const opts = {};
9
- if (importMeta !== '') {
10
- opts.resourcesUrl = new URL('.', importMeta).href;
11
- }
12
- return promiseResolve(opts);
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
- 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"]]]]]], options);
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
+ };
@@ -1,22 +1,17 @@
1
- import { sass } from '@stencil/sass';
1
+ import { sass } from "@stencil/sass";
2
2
  export const config = {
3
- namespace: 'user-transaction-history',
4
- taskQueue: 'async',
5
- plugins: [sass()],
6
- outputTargets: [
7
- {
8
- type: 'dist',
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
- type: 'dist-custom-elements',
13
- },
14
- {
15
- type: 'docs-readme',
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
  };
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -1,8 +1,8 @@
1
1
  import { FunctionalComponent } from '../../stencil-public-runtime';
2
2
  export interface FiltersProps {
3
- language: string;
4
- from?: string | null;
5
- to?: string | null;
6
- applyFilters: (from: string | null, to: string | null) => void;
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
- pageSizes: number[];
4
- changePageSize: (s: number) => void;
5
- currentPageSize: number;
6
- language: string;
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
- source: Transaction[];
5
- language: string;
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
- 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;
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 declare type Translation = Record<string, string>;
2
- export declare type Translations = Record<string, Translation>;
1
+ export type Translation = Record<string, string>;
2
+ export type Translations = Record<string, Translation>;
@@ -1,23 +1,23 @@
1
1
  export interface Transaction {
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;
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
- next: string | null;
18
- previous: string | null;
17
+ next: string | null;
18
+ previous: string | null;
19
19
  }
20
20
  export interface TransactionResponse {
21
- pagination: Pagination;
22
- transactions: Transaction[];
21
+ pagination: Pagination;
22
+ transactions: Transaction[];
23
23
  }