@ptcwebops/ptcw-design 0.6.0 → 0.6.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 (82) hide show
  1. package/dist/cjs/list-item.cjs.entry.js +1 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/my-component.cjs.entry.js +2 -5
  4. package/dist/cjs/ptc-card_6.cjs.entry.js +479 -0
  5. package/dist/cjs/ptc-checkbox.cjs.entry.js +1 -1
  6. package/dist/cjs/ptc-collapse-list.cjs.entry.js +202 -0
  7. package/dist/cjs/ptc-list.cjs.entry.js +30 -3
  8. package/dist/cjs/ptc-overlay.cjs.entry.js +31 -0
  9. package/dist/cjs/ptc-picture.cjs.entry.js +1 -1
  10. package/dist/cjs/ptc-title.cjs.entry.js +1 -1
  11. package/dist/cjs/ptcw-design.cjs.js +1 -1
  12. package/dist/cjs/utils-dc2c222f.js +71 -0
  13. package/dist/collection/collection-manifest.json +1 -0
  14. package/dist/collection/components/icon-asset/media/designer.svg +28 -18
  15. package/dist/collection/components/list-item/list-item.js +1 -0
  16. package/dist/collection/components/ptc-card/ptc-card.css +144 -6
  17. package/dist/collection/components/ptc-card/ptc-card.js +4 -4
  18. package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +1 -1
  19. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.css +121 -0
  20. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +288 -0
  21. package/dist/collection/components/ptc-list/ptc-list.js +31 -4
  22. package/dist/collection/components/ptc-picture/ptc-picture.css +3 -0
  23. package/dist/collection/components/ptc-title/ptc-title.css +1 -1
  24. package/dist/collection/utils/utils.js +62 -0
  25. package/dist/custom-elements/index.d.ts +6 -0
  26. package/dist/custom-elements/index.js +300 -12
  27. package/dist/esm/{interfaces-c1c73092.js → interfaces-3cb94654.js} +1 -1
  28. package/dist/esm/list-item.entry.js +1 -0
  29. package/dist/esm/loader.js +1 -1
  30. package/dist/esm/my-component.entry.js +1 -4
  31. package/dist/esm/ptc-card_6.entry.js +470 -0
  32. package/dist/esm/ptc-checkbox.entry.js +1 -1
  33. package/dist/esm/ptc-collapse-list.entry.js +198 -0
  34. package/dist/esm/ptc-list.entry.js +31 -4
  35. package/dist/esm/ptc-overlay.entry.js +27 -0
  36. package/dist/esm/ptc-picture.entry.js +2 -2
  37. package/dist/esm/ptc-title.entry.js +1 -1
  38. package/dist/esm/ptcw-design.js +1 -1
  39. package/dist/esm/utils-334d53bc.js +67 -0
  40. package/dist/ptcw-design/media/designer.svg +28 -18
  41. package/dist/ptcw-design/p-07c07cf9.entry.js +1 -0
  42. package/dist/ptcw-design/{p-50e52c88.js → p-240733ce.js} +1 -1
  43. package/dist/ptcw-design/p-2e496d31.js +1 -0
  44. package/dist/ptcw-design/p-3a972520.entry.js +1 -0
  45. package/dist/ptcw-design/p-3d3c73b1.entry.js +1 -0
  46. package/dist/ptcw-design/{p-3a41081a.entry.js → p-44cb62a9.entry.js} +1 -1
  47. package/dist/ptcw-design/p-46cf7f48.entry.js +1 -0
  48. package/dist/ptcw-design/{p-9b442487.entry.js → p-818df883.entry.js} +1 -1
  49. package/dist/ptcw-design/p-b146377a.entry.js +1 -0
  50. package/dist/ptcw-design/p-d8b48946.entry.js +1 -0
  51. package/dist/ptcw-design/p-e5bfbb91.entry.js +1 -0
  52. package/dist/ptcw-design/ptcw-design.css +1 -1
  53. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  54. package/dist/types/components/ptc-card/ptc-card.d.ts +1 -1
  55. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +39 -0
  56. package/dist/types/components/ptc-list/ptc-list.d.ts +2 -0
  57. package/dist/types/components.d.ts +21 -2
  58. package/dist/types/utils/utils.d.ts +2 -0
  59. package/package.json +1 -1
  60. package/readme.md +1 -1
  61. package/dist/cjs/ptc-card.cjs.entry.js +0 -79
  62. package/dist/cjs/ptc-date.cjs.entry.js +0 -59
  63. package/dist/cjs/ptc-img_2.cjs.entry.js +0 -185
  64. package/dist/cjs/ptc-pagenation.cjs.entry.js +0 -115
  65. package/dist/cjs/ptc-para.cjs.entry.js +0 -50
  66. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -46
  67. package/dist/esm/ptc-card.entry.js +0 -75
  68. package/dist/esm/ptc-date.entry.js +0 -55
  69. package/dist/esm/ptc-img_2.entry.js +0 -180
  70. package/dist/esm/ptc-pagenation.entry.js +0 -111
  71. package/dist/esm/ptc-para.entry.js +0 -46
  72. package/dist/esm/ptc-spacer.entry.js +0 -42
  73. package/dist/ptcw-design/p-1cfc77eb.entry.js +0 -1
  74. package/dist/ptcw-design/p-42df89de.entry.js +0 -1
  75. package/dist/ptcw-design/p-51c39418.entry.js +0 -1
  76. package/dist/ptcw-design/p-679b99ad.entry.js +0 -1
  77. package/dist/ptcw-design/p-7bcc42e1.entry.js +0 -1
  78. package/dist/ptcw-design/p-8e27bb6d.entry.js +0 -1
  79. package/dist/ptcw-design/p-969c178b.entry.js +0 -1
  80. package/dist/ptcw-design/p-df80470b.entry.js +0 -1
  81. package/dist/ptcw-design/p-ec10f846.entry.js +0 -1
  82. package/dist/ptcw-design/p-fa53e5e5.entry.js +0 -1
@@ -3,7 +3,7 @@ export declare class PtcCard {
3
3
  * Card Type
4
4
  * Specify Card Type, default to simple card
5
5
  */
6
- cardType: 'simple-card' | 'lottie-card' | 'custom-card' | 'clip-edge-card' | 'hightlight-card' | 'listing-card';
6
+ cardType: 'simple-card' | 'lottie-card' | 'custom-card' | 'clip-edge-card' | 'hightlight-card' | 'listing-card' | 'horizontal-card' | 'listing-card-horizontal';
7
7
  /**
8
8
  * Card Link URL (Optional)
9
9
  */
@@ -0,0 +1,39 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ declare class CollapseListItem {
3
+ id: string;
4
+ name: string;
5
+ text: string;
6
+ value: string;
7
+ category: string;
8
+ href: string;
9
+ target: string;
10
+ title: string;
11
+ allowMultiSelect: boolean;
12
+ isExternalLink: boolean;
13
+ children: CollapseListItem[];
14
+ }
15
+ export declare class PtcCollapseList {
16
+ data: CollapseListItem[];
17
+ selectedItems: any;
18
+ hashMap: any;
19
+ listItems?: Object;
20
+ el: HTMLElement;
21
+ itemSelected: EventEmitter<any>;
22
+ itemExpanded: EventEmitter<any>;
23
+ ready: EventEmitter<any>;
24
+ updated: EventEmitter<any>;
25
+ componentWillLoad(): void;
26
+ componentDidLoad(): void;
27
+ componentDidUpdate(): void;
28
+ onItemSelectedHandler(event: MouseEvent): void;
29
+ onItemExpandeddHandler(event: MouseEvent): void;
30
+ loadListItems(): void;
31
+ setUpCategory(name: string, allowMultiSelect: boolean): void;
32
+ collapseAllFirstLevelItems(exclude: HTMLElement): void;
33
+ updateExpandedItems(): void;
34
+ updateSelectedItemStatus(uuid: string): void;
35
+ onItemLinkClick(event: MouseEvent, uuid: string): void;
36
+ onExpandClick(event: MouseEvent, collapseParents: boolean): void;
37
+ render(): any;
38
+ }
39
+ export {};
@@ -1,6 +1,8 @@
1
1
  export declare class PtcList {
2
2
  listType: 'list-primary';
3
3
  listItems?: string[];
4
+ el: HTMLElement;
4
5
  render(): any;
6
+ private getListItems;
5
7
  private getCssClassMap;
6
8
  }
@@ -190,7 +190,7 @@ export namespace Components {
190
190
  /**
191
191
  * Card Type Specify Card Type, default to simple card
192
192
  */
193
- "cardType": 'simple-card' | 'lottie-card' | 'custom-card' | 'clip-edge-card' | 'hightlight-card' | 'listing-card';
193
+ "cardType": 'simple-card' | 'lottie-card' | 'custom-card' | 'clip-edge-card' | 'hightlight-card' | 'listing-card' | 'horizontal-card' | 'listing-card-horizontal';
194
194
  /**
195
195
  * If this card has Image
196
196
  */
@@ -253,6 +253,9 @@ export namespace Components {
253
253
  "inputName": string;
254
254
  "value": string;
255
255
  }
256
+ interface PtcCollapseList {
257
+ "listItems"?: Object;
258
+ }
256
259
  interface PtcContainer {
257
260
  /**
258
261
  * Theme
@@ -902,6 +905,12 @@ declare global {
902
905
  prototype: HTMLPtcCheckboxElement;
903
906
  new (): HTMLPtcCheckboxElement;
904
907
  };
908
+ interface HTMLPtcCollapseListElement extends Components.PtcCollapseList, HTMLStencilElement {
909
+ }
910
+ var HTMLPtcCollapseListElement: {
911
+ prototype: HTMLPtcCollapseListElement;
912
+ new (): HTMLPtcCollapseListElement;
913
+ };
905
914
  interface HTMLPtcContainerElement extends Components.PtcContainer, HTMLStencilElement {
906
915
  }
907
916
  var HTMLPtcContainerElement: {
@@ -1139,6 +1148,7 @@ declare global {
1139
1148
  "ptc-card-content": HTMLPtcCardContentElement;
1140
1149
  "ptc-card-plm": HTMLPtcCardPlmElement;
1141
1150
  "ptc-checkbox": HTMLPtcCheckboxElement;
1151
+ "ptc-collapse-list": HTMLPtcCollapseListElement;
1142
1152
  "ptc-container": HTMLPtcContainerElement;
1143
1153
  "ptc-date": HTMLPtcDateElement;
1144
1154
  "ptc-dropdown": HTMLPtcDropdownElement;
@@ -1375,7 +1385,7 @@ declare namespace LocalJSX {
1375
1385
  /**
1376
1386
  * Card Type Specify Card Type, default to simple card
1377
1387
  */
1378
- "cardType"?: 'simple-card' | 'lottie-card' | 'custom-card' | 'clip-edge-card' | 'hightlight-card' | 'listing-card';
1388
+ "cardType"?: 'simple-card' | 'lottie-card' | 'custom-card' | 'clip-edge-card' | 'hightlight-card' | 'listing-card' | 'horizontal-card' | 'listing-card-horizontal';
1379
1389
  /**
1380
1390
  * If this card has Image
1381
1391
  */
@@ -1443,6 +1453,13 @@ declare namespace LocalJSX {
1443
1453
  "onCheckedChanged"?: (event: CustomEvent<any>) => void;
1444
1454
  "value"?: string;
1445
1455
  }
1456
+ interface PtcCollapseList {
1457
+ "listItems"?: Object;
1458
+ "onItemExpanded"?: (event: CustomEvent<any>) => void;
1459
+ "onItemSelected"?: (event: CustomEvent<any>) => void;
1460
+ "onReady"?: (event: CustomEvent<any>) => void;
1461
+ "onUpdated"?: (event: CustomEvent<any>) => void;
1462
+ }
1446
1463
  interface PtcContainer {
1447
1464
  /**
1448
1465
  * Theme
@@ -2036,6 +2053,7 @@ declare namespace LocalJSX {
2036
2053
  "ptc-card-content": PtcCardContent;
2037
2054
  "ptc-card-plm": PtcCardPlm;
2038
2055
  "ptc-checkbox": PtcCheckbox;
2056
+ "ptc-collapse-list": PtcCollapseList;
2039
2057
  "ptc-container": PtcContainer;
2040
2058
  "ptc-date": PtcDate;
2041
2059
  "ptc-dropdown": PtcDropdown;
@@ -2093,6 +2111,7 @@ declare module "@stencil/core" {
2093
2111
  "ptc-card-content": LocalJSX.PtcCardContent & JSXBase.HTMLAttributes<HTMLPtcCardContentElement>;
2094
2112
  "ptc-card-plm": LocalJSX.PtcCardPlm & JSXBase.HTMLAttributes<HTMLPtcCardPlmElement>;
2095
2113
  "ptc-checkbox": LocalJSX.PtcCheckbox & JSXBase.HTMLAttributes<HTMLPtcCheckboxElement>;
2114
+ "ptc-collapse-list": LocalJSX.PtcCollapseList & JSXBase.HTMLAttributes<HTMLPtcCollapseListElement>;
2096
2115
  "ptc-container": LocalJSX.PtcContainer & JSXBase.HTMLAttributes<HTMLPtcContainerElement>;
2097
2116
  "ptc-date": LocalJSX.PtcDate & JSXBase.HTMLAttributes<HTMLPtcDateElement>;
2098
2117
  "ptc-dropdown": LocalJSX.PtcDropdown & JSXBase.HTMLAttributes<HTMLPtcDropdownElement>;
@@ -1 +1,3 @@
1
1
  export declare function format(first: string, middle: string, last: string): string;
2
+ export declare function MapDOM(domElement: HTMLElement, selector?: string, toString?: boolean): any;
3
+ export declare function generateUUID(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptcwebops/ptcw-design",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/custom-elements/index.js",
package/readme.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)
2
2
 
3
- # PTC Design 0.6.0
3
+ # PTC Design 0.6.2
4
4
 
5
5
  The site is the place for documentation on PTC Design System
6
6
 
@@ -1,79 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-3adcf9f4.js');
6
-
7
- const ptcCardCss = ":host{display:block}:host(.lottie-card) .card-border{box-shadow:var(--ptc-shadow-small);border:1px solid var(--color-gray-03);border-radius:10px;position:relative;overflow:hidden}:host(.lottie-card) .card-border::after{content:\"\";height:40%;width:4px;position:absolute;top:30%;right:-2px;background-color:var(--color-green-06);z-index:2;display:block}:host(.lottie-card) .card-border:hover{box-shadow:var(--ptc-shadow-x-large)}:host(.lottie-card) .card-border:hover .card-body h3{border-bottom:2px solid var(--color-green-07)}:host(.lottie-card) .card-layout{display:block}@media only screen and (min-width: 768px){:host(.lottie-card) .card-layout{display:flex;flex-flow:nowrap row;justify-content:center}}:host(.lottie-card) .link-wrapper{outline:none;text-decoration:none}:host(.lottie-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.lottie-card) .card-media{flex-basis:40%;border-right:1px solid var(--color-gray-03);display:flex}:host(.lottie-card) .card-body{flex-basis:60%;align-self:center;padding:0 30px 10px}:host(.lottie-card) .card-body h3{display:inline-block;line-height:var(--ptc-line-height-densest);color:var(--color-gray-10);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);border-bottom:2px solid transparent;margin-bottom:var(--ptc-element-spacing-02)}:host(.simple-card) .card-layout{display:block}:host(.simple-card) .link-wrapper{outline:none;text-decoration:none}:host(.simple-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.simple-card) .link-wrapper:hover .card-body h3::before{width:100%}:host(.simple-card) .link-wrapper:hover ::slotted([slot=slot-after-heading]){margin-left:var(--ptc-element-spacing-04)}:host(.simple-card) .card-body h3{color:var(--color-gray-10);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-black);line-height:var(--ptc-line-height-dense);position:relative;margin-bottom:var(--ptc-element-spacing-02);display:inline-block}:host(.simple-card) .card-body h3::before{display:block;position:absolute;content:\"\";width:var(--ptc-element-spacing-07);border-bottom:2px solid var(--color-green-06);bottom:1px;transition:width var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.simple-card) ::slotted([slot=slot-after-heading]){margin-left:var(--ptc-element-spacing-01);transition:margin-left var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) .card-border{overflow:hidden;filter:drop-shadow(rgba(0, 0, 0, 0.32) 0px 3px 6px);width:100%}:host(.clip-edge-card) .card-border:hover{filter:drop-shadow(rgba(0, 0, 0, 0.32) 0px 6px 12px)}:host(.clip-edge-card) .card-layout{display:block}:host(.clip-edge-card) .link-wrapper{outline:none;text-decoration:none}:host(.clip-edge-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.clip-edge-card) .card-media{position:relative;width:100%;height:124px;overflow:hidden;border-radius:var(--ptc-border-radius-standard)}:host(.clip-edge-card) .card-body{transform:translateY(calc((-1) * var(--ptc-element-spacing-04)));overflow:hidden;width:calc(95% - var(--ptc-element-spacing-04) - var(--ptc-element-spacing-04));font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10);clip-path:var(--ptc-clip-path-bottom-right);background-color:var(--color-white);border-radius:var(--ptc-border-radius-standard);padding:var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-03) var(--ptc-element-spacing-04)}:host(.clip-edge-card) .card-body h3{display:inline-block;margin:0px;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10);text-decoration:none;border-bottom:2px solid transparent;transition:border-bottom var(--ptc-transition-medium) var(--ptc-ease-inout), margin var(--ptc-transition-medium) var(--ptc-ease-inout);margin:var(--ptc-element-spacing-03) 0 var(--ptc-element-spacing-03) 0}:host(.clip-edge-card) ::slotted([slot=slot-description]){height:0;opacity:0;transition:height var(--ptc-transition-medium) var(--ptc-ease-inout), opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) ::slotted([slot=slot-image]){display:block;width:100%;height:100%;transform:scale(1);transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);transform-origin:top center}:host(.clip-edge-card) ::slotted([slot=slot-after-heading]){position:absolute;top:var(--ptc-element-spacing-03);left:var(--ptc-element-spacing-04);opacity:1;transform:scale(1);height:44px;transform-origin:bottom center;transition:opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) ::slotted([slot=slot-before-heading]){display:block;opacity:0;height:24px;transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) .link-wrapper:hover .card-body h3{border-bottom:2px solid var(--color-green-06)}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:60px;opacity:1}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-image]){transform:scale(1.1)}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-after-heading]){opacity:0;transform:scale(0);height:0}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-before-heading]){opacity:1}:host(.hightlight-card) .card-border{width:100%;border-radius:var(--ptc-border-radius-standard);overflow:hidden}:host(.hightlight-card) .card-border:hover .card-media{transform:scale(1.1)}:host(.hightlight-card) .card-layout{display:block;position:relative}:host(.hightlight-card) .link-wrapper{outline:none;text-decoration:none}:host(.hightlight-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:var(--ptc-layout-spacing-05);opacity:1}:host(.hightlight-card) .card-media{width:100%;height:auto;min-height:450px;position:relative;transform:scale(1);transform-origin:center bottom;transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);transition-delay:var(--ptc-delay-5)}:host(.hightlight-card) .card-body{position:absolute;bottom:0;top:auto;left:0;right:auto;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-07);background-color:var(--color-white);box-sizing:border-box}:host(.hightlight-card) .card-body h3{font-size:var(--ptc-font-size-x-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-bold);color:var(--color-gray-10);margin:var(--ptc-element-spacing-04) 0}:host(.hightlight-card) ::slotted([slot=slot-description]){height:0;opacity:0;transition:height var(--ptc-transition-medium) var(--ptc-ease-inout), opacity var(--ptc-transition-fast) var(--ptc-ease-inout);transition-delay:var(--ptc-delay-5)}:host(.listing-card) .card-border{width:100%;overflow:hidden;background:var(--color-white);box-shadow:var(--ptc-shadow-small);border-radius:3px;height:449px;display:flex;flex-direction:row}:host(.listing-card) .card-border:hover{background:var(--color-gray-02);box-shadow:var(--ptc-shadow-large)}:host(.listing-card) .card-layout{display:block;position:relative}:host(.listing-card) .card-layout .ribbon-text{position:absolute;top:0;left:0;margin-right:100px;margin-top:22px;background-color:var(--color-white);padding:4px 22px 5px 23px;font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-loose);color:var(--color-gray-11)}:host(.listing-card) .link-wrapper{outline:none;text-decoration:none}:host(.listing-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.listing-card) .card-media{width:100%;height:224.5px;transform:scale(1);transform-origin:center bottom;transition:transform var(--ptc-transition-medium) var(--ptc-standard-ease);transition-delay:var(--ptc-delay-medium)}:host(.listing-card) .card-body{padding:24px 20px}:host(.listing-card) .card-body .small{font-size:var(--ptc-font-size-x-small)}:host(.listing-card) .card-body h3{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-loose);line-height:21px;color:var(--color-gray-11);margin-bottom:12px;margin-top:0rem}:host(.listing-card) ::slotted([slot=slot-description]){font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-dense);color:var(--color-gray-11);margin-bottom:39px}.ptc-h3.uppercase{text-transform:uppercase}.ptc-h3.capitalize{text-transform:capitalize}.ptc-h3.lowercase{text-transform:lowercase}.ptc-h3.none{text-transform:none}";
8
-
9
- let PtcCard = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- /**
13
- * Card Type
14
- * Specify Card Type, default to simple card
15
- */
16
- this.cardType = 'custom-card';
17
- /**
18
- * Card Link URL (Optional)
19
- */
20
- this.cardHref = undefined;
21
- /**
22
- * (optional) Link card target
23
- * */
24
- this.target = '_self';
25
- /**
26
- * (optional) Link card rel
27
- * */
28
- this.rel = undefined;
29
- /**
30
- * If this card has Image
31
- */
32
- this.hasImage = false;
33
- /**
34
- * If this card has Video
35
- */
36
- this.hasVideo = false;
37
- /**
38
- * If this card has Lottie Image
39
- */
40
- this.hasLottie = false;
41
- /**
42
- * Card heading text transform
43
- */
44
- this.headingTransform = 'none';
45
- }
46
- render() {
47
- const Tag = !!this.cardHref ? 'a' : 'div';
48
- const classMap = this.getCssClassMap();
49
- return (index.h(index.Host, Object.assign({}, (!!this.cardType ? { class: this.cardType } : {})), this.styles && index.h("style", null, this.styles), index.h("div", { class: "card-border", part: "border-wrapper" }, index.h(Tag, Object.assign({ class: classMap, part: "card-layout" }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {}), (!!this.ribbonText ? { rel: this.ribbonText } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (index.h("div", { class: "card-media", part: "media-wrapper" }, this.getMediaSlot ? index.h("slot", { name: this.getMediaSlot() }) : null)) : null, !!this.ribbonText && this.cardType == 'listing-card' ? index.h("div", { class: "ribbon-text" }, `${this.ribbonText}`) : null, index.h("div", { class: "card-body", part: "body-wrapper" }, !!this.cardDate && this.cardType == 'listing-card' ? index.h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "span{font-weight: 400;font-size: 16px;line-height: 19px;color: #282F35;margin-bottom:24px;display:inline-block;}" }) : null, index.h("slot", { name: "slot-before-heading" }), !!this.heading
50
- ? [
51
- index.h("h3", { class: `ptc-h3 ${this.headingTransform}`, part: "card-heading" }, this.heading),
52
- index.h("slot", { name: "slot-after-heading" }),
53
- ]
54
- : null, index.h("slot", { name: "slot-description" }), !!this.cardDate && this.cardType != 'listing-card' ? index.h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "span{color:#40434a;font-size:var(--ptc-font-size-x-small);margin-top:var(--ptc-element-spacing-06);display:inline-block;}" }) : null)))));
55
- }
56
- getCssClassMap() {
57
- return {
58
- ['card-layout']: true,
59
- ['link-wrapper']: !!this.cardType ? true : false,
60
- };
61
- }
62
- getMediaSlot() {
63
- if (this.hasLottie) {
64
- return 'slot-lottie';
65
- }
66
- else if (this.hasVideo) {
67
- return 'slot-video';
68
- }
69
- else if (this.hasImage) {
70
- return 'slot-image';
71
- }
72
- else {
73
- return null;
74
- }
75
- }
76
- };
77
- PtcCard.style = ptcCardCss;
78
-
79
- exports.ptc_card = PtcCard;
@@ -1,59 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-3adcf9f4.js');
6
-
7
- const ptcDateCss = ":host{display:block}:host(.small) span{font-size:var(--ptc-font-size-xx-small)}:host(.medium) span{font-size:var(--ptc-font-size-x-small)}:host(.primary-grey){color:var(--color-primary-gray-new)}:host(.white) span{color:var(--color-white)}:host(.date-m-top){margin-top:var(--ptc-element-spacing-01)}";
8
-
9
- let PtcDate = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- /**
13
- * Year
14
- */
15
- this.year = 1900;
16
- /**
17
- * Month
18
- * An integer between 1 (January) and 12 (December) representing the month.If omitted, defaults to 0.
19
- */
20
- this.month = 0;
21
- /**
22
- * Day
23
- * An integer between 1 and 31 representing the day of the month. If omitted, defaults to 1.
24
- */
25
- this.day = 1;
26
- /**
27
- * Country
28
- * examples: en-US, zh-CN, zh-TW, fr-FR, ja-JP, ru-RU, de-DE, ko-KR, it-IT, es-ES
29
- */
30
- this.country = 'en-US';
31
- /**
32
- * Date Font Size
33
- */
34
- this.dataSize = 'small';
35
- }
36
- render() {
37
- // const newDate = new Date(this.year, this.month, this.day);
38
- const classMap = this.getCssClassMap();
39
- return (index.h(index.Host, { class: classMap }, this.dateStyles && index.h("style", null, this.dateStyles), index.h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
40
- }
41
- getCssClassMap() {
42
- return {
43
- [this.dateColor]: !!this.dateColor ? true : false,
44
- [this.dataSize]: !!this.dataSize ? true : false,
45
- };
46
- }
47
- getDate() {
48
- if (this.dateString) {
49
- let newDate = new Date(this.dateString.replace(/-/g, '/'));
50
- return newDate;
51
- }
52
- else {
53
- return new Date(this.year, this.month - 1, this.day);
54
- }
55
- }
56
- };
57
- PtcDate.style = ptcDateCss;
58
-
59
- exports.ptc_date = PtcDate;
@@ -1,185 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-3adcf9f4.js');
6
- const interfaces = require('./interfaces-0ecd8027.js');
7
-
8
- const ptcImgCss = ".smart-bg{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.smart-img{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.lazy-bg{background-image:none !important;background-color:var(--color-gray-03)}@media only screen and (min-width: 768px){.hidden-xs{display:none !important}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media only screen and (min-width: 768px){.hidden-lg{display:none !important}}";
9
-
10
- let PtcImg = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- /**
14
- * Image size for smallest screen
15
- * <=767px
16
- */
17
- this.sizeXs = '510x340';
18
- /**
19
- * Image size for small screen
20
- * >=768px and <=991px
21
- */
22
- this.sizeSm = '1240x496';
23
- /**
24
- * Image size for medium screen
25
- * >=992px and <=1199px
26
- */
27
- this.sizeMd = '1366x500';
28
- /**
29
- * Image solution for large screen
30
- * >=1200px
31
- */
32
- this.sizeLg = '1920x1080';
33
- /**
34
- * Image type
35
- */
36
- this.imageType = 'smart-bg';
37
- /**
38
- * Image border shape
39
- */
40
- this.borderRadius = '';
41
- /**
42
- * Lazy loading option
43
- */
44
- this.loadMode = 'lazy-bg';
45
- }
46
- /**
47
- * Image Z Index
48
- */
49
- // @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
50
- WindowResize() {
51
- this.setResponsiveBg();
52
- }
53
- render() {
54
- const classMap = this.getCssClassMap();
55
- return (index.h(index.Host, null, index.h("div", { class: classMap, "data-xs": `${this.imgUrl}:${this.sizeXs}`, "data-sm": `${this.imgUrl}:${this.sizeSm}`, "data-md": `${this.imgUrl}:${this.sizeMd}`, "data-lg": `${this.imgUrl}:${this.sizeLg}` }, this.imageType == 'smart-bg' ? index.h("slot", null) : null)));
56
- }
57
- componentDidLoad() {
58
- this.addIntersectionObserver();
59
- this.setResponsiveBg();
60
- }
61
- componentWillUpdate() {
62
- // console.log('componentWillUpdate!');
63
- this.addIntersectionObserver();
64
- this.setResponsiveBg();
65
- }
66
- //responsive image
67
- setResponsiveBg() {
68
- // Define local variables
69
- let backgrounds = (this.el || document).querySelectorAll(interfaces.ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
70
- // console.log('current breakpoint: ' + currentBreakpoint);
71
- // Loop through all target elements
72
- for (var i = 0, len = backgrounds.length; i < len; i++) {
73
- // Set current variables
74
- el = backgrounds[i];
75
- elData = el.getAttribute('data-' + currentBreakpoint);
76
- // If the data attribute exists, set the background
77
- if (elData !== null) {
78
- el.style.backgroundImage = "url('" + elData + "')";
79
- }
80
- else {
81
- if (typeof console == 'object') {
82
- console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
83
- }
84
- }
85
- }
86
- }
87
- //lazy loading
88
- addIntersectionObserver() {
89
- if (!this.imgUrl) {
90
- console.log('no image!');
91
- return;
92
- }
93
- if ('IntersectionObserver' in window) {
94
- let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
95
- let bgObserver = new IntersectionObserver(entries => {
96
- entries.forEach(entry => {
97
- if (entry.isIntersecting) {
98
- const image = entry.target;
99
- image.classList.remove('lazy-bg');
100
- // console.log('loaded');
101
- bgObserver.unobserve(image);
102
- }
103
- });
104
- });
105
- lazyLoadBgs.forEach(image => {
106
- bgObserver.observe(image);
107
- });
108
- }
109
- }
110
- getCssClassMap() {
111
- return {
112
- [this.imageType]: true,
113
- 'ptc-img': true,
114
- [this.borderRadius]: true,
115
- [this.loadMode]: true,
116
- // [this.imageZIndex] : true
117
- };
118
- }
119
- getCurrentBreakPoints() {
120
- // Define local variables
121
- let doc = window.document, temp = doc.createElement('div'), env;
122
- // Append test node
123
- doc.body.appendChild(temp);
124
- // Loop through breakpoints
125
- for (let i = interfaces.ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
126
- env = interfaces.ResponsiveBgVariables.envs[i];
127
- // Add classes
128
- temp.className = 'hidden-' + env;
129
- // Found breakpoint
130
- if (temp.offsetParent === null) {
131
- // Remove our test node
132
- doc.body.removeChild(temp);
133
- console.log('remove test node');
134
- // Return current breakpoint
135
- return env;
136
- }
137
- }
138
- // Breakpoint not found, try fallback
139
- doc.body.removeChild(temp);
140
- return this.getFallbackBreakpoint();
141
- }
142
- getFallbackBreakpoint() {
143
- if (window.matchMedia('(min-width: 992px)').matches) {
144
- return 'lg';
145
- }
146
- else if (window.matchMedia('(min-width: 768px)').matches) {
147
- return 'md';
148
- }
149
- else if (window.matchMedia('(min-width: 576px)').matches) {
150
- return 'sm';
151
- }
152
- else {
153
- return 'xs';
154
- }
155
- }
156
- get el() { return index.getElement(this); }
157
- };
158
- PtcImg.style = ptcImgCss;
159
-
160
- const ptcOverlayCss = ":host{display:block;position:absolute;top:0;left:0;width:100%;height:100%}:host(.blue){background:linear-gradient(180deg, rgba(25, 123, 192, 0.2) 0%, var(--color-blue-07) 100%)}:host(.red){background:linear-gradient(180deg, rgba(209, 44, 58, 0.2) 0%, var(--color-red-07) 100%)}:host(.orange){background:linear-gradient(180deg, rgba(195, 119, 41, 0.2) 0%, var(--color-orange-07) 100%)}:host(.green){background:linear-gradient(180deg, rgba(0, 137, 11, 0.2) 0%, var(--color-green-07) 100%)}:host(.black-1){background:linear-gradient(270deg, rgba(32, 38, 42, 0.32) 33.33%, var(--color-gray-12) 100%)}:host(.black-2){background:linear-gradient(180deg, rgba(32, 38, 42, 0) 0%, var(--color-gray-12) 100%)}@media only screen and (min-width: 768px){:host(.black-1){background:linear-gradient(270deg, rgba(32, 38, 42, 0) 33.33%, var(--color-gray-12) 100%)}:host(.black-2){background:linear-gradient(180deg, rgba(32, 38, 42, 0) 0%, var(--color-gray-12) 100%)}}:host(.black-3){background:linear-gradient(180deg, var(--color-gray-12) 0%, rgba(32, 38, 42, 0.55) 100%)}:host(.slate-grey){background:linear-gradient(180deg, rgba(97, 116, 128, 0.2) 0%, var(--color-gray-07) 100%)}:host(.radius-standard){border-radius:var(--ptc-border-radius-standard)}:host(.radius-large){border-radius:var(--ptc-border-radius-large)}:host(.z-index-auto){z-index:auto}:host(.z-index-n-1){z-index:-1}:host(.z-index-n-2){z-index:-2}:host(.z-index-p-1){z-index:1}:host(.z-index-p-2){z-index:2}";
161
-
162
- let PtcOverlay = class {
163
- constructor(hostRef) {
164
- index.registerInstance(this, hostRef);
165
- /**
166
- * Overlay z-index
167
- */
168
- this.overlayZIndex = 'z-index-auto';
169
- }
170
- render() {
171
- const classMap = this.getCssClassMap();
172
- return index.h(index.Host, { class: classMap });
173
- }
174
- getCssClassMap() {
175
- return {
176
- [this.filterColor]: !!this.filterColor ? true : false,
177
- [this.borderRadius]: !!this.borderRadius ? true : false,
178
- [this.overlayZIndex]: true
179
- };
180
- }
181
- };
182
- PtcOverlay.style = ptcOverlayCss;
183
-
184
- exports.ptc_img = PtcImg;
185
- exports.ptc_overlay = PtcOverlay;
@@ -1,115 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-3adcf9f4.js');
6
-
7
- const ptcPagenationCss = ":host{display:block}.events-filter{padding:20px 32px 20px 0;text-align:center}@media (min-width: 992px){.events-filter{padding:10px 40px 10px 0px}}.events-filter .pagenation-arrow{width:40px;height:40px;margin:0 15px;vertical-align:middle}.show-page{display:inline}.hide-page{display:none}.prev-text{display:none}.last-text{display:none}@media (min-width: 992px){.prev-text{display:inline;cursor:pointer}.last-text{display:inline;cursor:pointer}}.events-filter-item{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-semibold);font-stretch:normal;font-style:var(--ptc-font-style-normal);line-height:var(--ptc-line-height-denser);letter-spacing:var(--ptc-letter-spacing-normal);text-align:left;padding:6px;color:var(--color-gray-13);text-decoration:none}.events-filter .active{font-family:var(--ptc-font-latin);border-bottom:2px solid var(--color-green-13);font-weight:var(--ptc-font-weight-semibold)}.events-filter-item:hover,.events-filter-item:focus{text-decoration:none;outline:0;color:var(--color-green-14)}.events-filter .disabled{color:var(--color-white-01)}.events-filter-dots{padding:0rem;font-weight:var(--ptc-font-weight-extrabold);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-xx-small);font-stretch:normal;font-style:var(--ptc-font-style-normal);line-height:var(--ptc-line-height-denser);letter-spacing:var(--ptc-letter-spacing-normal);text-align:left;color:var(--color-gray-13);text-decoration:none}.events-disable-arrows{opacity:0.35}.events-enable-arrows{opacity:1}.events-small-dots{height:60px;margin-top:-25px}@media (min-width: 992px){.events-small-dots{height:80px;margin-top:-40px}}.last-page{transform:rotate(180deg)}";
8
-
9
- let PtcPagenation = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.pageClicked = index.createEvent(this, "pageClicked", 7);
13
- this.numberOfItems = 9; //page size
14
- this.previousValue = "Previous";
15
- this.lastValue = "Next";
16
- this.pageNumbers = [];
17
- this.minPageNumber = 1;
18
- this.maxPageNumber = 4;
19
- this.clickedPageNumber = 1;
20
- this.appendArray = true;
21
- this.prevArrowImg = "/dist/ptc/images/sidescroll-left-curved.svg";
22
- this.nextArrowImg = "/dist/ptc/images/sidescroll-right-curved.svg";
23
- this.handleClick = () => {
24
- if (this.clickedPageNumber < this.getPageCount()) {
25
- if (this.clickedPageNumber + 1 <= this.maxPageNumber) {
26
- this.handleClickPage(this.clickedPageNumber + 1);
27
- }
28
- else {
29
- this.minPageNumber = this.minPageNumber + 4;
30
- this.clickedPageNumber = this.clickedPageNumber + 1;
31
- this.appendArray = true;
32
- this.pageNumbers = [...this.pageNumbers];
33
- this.pageClicked.emit(this.clickedPageNumber);
34
- }
35
- }
36
- };
37
- this.handleClickPrev = () => {
38
- if (this.clickedPageNumber > 1) {
39
- if (this.clickedPageNumber - 1 >= this.minPageNumber) {
40
- this.handleClickPage(this.clickedPageNumber - 1);
41
- }
42
- else {
43
- this.minPageNumber = this.minPageNumber - 4;
44
- this.clickedPageNumber = this.clickedPageNumber - 1;
45
- this.appendArray = true;
46
- this.pageNumbers = [...this.pageNumbers];
47
- this.pageClicked.emit(this.clickedPageNumber);
48
- }
49
- }
50
- };
51
- this.getPageCount = () => {
52
- let pageCount = 0;
53
- if (this.totalCount != 0) {
54
- if (this.totalCount % this.numberOfItems == 0) {
55
- pageCount = this.totalCount / this.numberOfItems;
56
- }
57
- else {
58
- pageCount = this.totalCount / this.numberOfItems + 1;
59
- }
60
- }
61
- return Math.floor(pageCount);
62
- };
63
- this.getIndex = (appendarr) => {
64
- //var games : string[] = [];
65
- //let games : HTMLElement[] = [];
66
- //let items: pageItem[] = [];
67
- if (appendarr) {
68
- let pageCountVal = this.getPageCount();
69
- this.maxPageNumber = pageCountVal >= this.minPageNumber + 3 ? this.minPageNumber + 3 : pageCountVal;
70
- this.pageNumbers = [];
71
- for (let i = this.minPageNumber; i <= this.maxPageNumber; i++) {
72
- let id = i + "Id";
73
- let isItemActive = false;
74
- if (i == this.clickedPageNumber) {
75
- isItemActive = true;
76
- }
77
- // if (i > 4)
78
- // {
79
- // hideShowPageClass = " hide-page";
80
- // }
81
- const newPageItem = {
82
- id: id,
83
- isActive: isItemActive,
84
- dataPage: i
85
- };
86
- this.pageNumbers = [...this.pageNumbers, newPageItem];
87
- //games.push(<a href="#" data-url={id} data-page={i} class={classValue}>i</a>);
88
- }
89
- }
90
- return this.pageNumbers;
91
- };
92
- }
93
- render() {
94
- let pageCountValue = this.getPageCount();
95
- this.pageNumbers = [...this.getIndex(this.appendArray)];
96
- return (index.h("div", { class: "events-filter" }, index.h("span", { class: this.clickedPageNumber == 1 ? "events-filter-item disabled prev-text" : "events-filter-item prev-text" }, this.previousValue), index.h("img", { src: this.prevArrowImg, onClick: this.handleClickPrev, class: this.clickedPageNumber == 1 ? "pagenation-arrow prev-page events-disable-arrows" : "pagenation-arrow prev-page" }), this.pageNumbers.map(anchoritem => {
97
- return (index.h("a", { href: "#", "data-url": anchoritem.id, "data-page": anchoritem.dataPage, class: anchoritem.isActive ? "events-filter-item active" : "events-filter-item", onClick: () => this.handleClickPage(anchoritem.dataPage) }, anchoritem.dataPage));
98
- }), pageCountValue > this.maxPageNumber ? (index.h("span", { class: "events-filter-dots" }, ". . .")) : null, index.h("img", { src: this.nextArrowImg, onClick: this.handleClick, class: this.clickedPageNumber == pageCountValue ? "pagenation-arrow last-page events-disable-arrows" : "pagenation-arrow last-page" }), index.h("span", { class: this.clickedPageNumber == pageCountValue ? "events-filter-item disabled last-text" : "events-filter-item last-text" }, this.lastValue)));
99
- }
100
- handleClickPage(clickedPage) {
101
- this.clickedPageNumber = clickedPage;
102
- let newArray = [];
103
- this.appendArray = false;
104
- newArray = [...this.pageNumbers];
105
- newArray.map(item => {
106
- item.dataPage == clickedPage ? item.isActive = true : item.isActive = false;
107
- });
108
- this.pageNumbers = null;
109
- this.pageNumbers = [...newArray];
110
- this.pageClicked.emit(clickedPage);
111
- }
112
- };
113
- PtcPagenation.style = ptcPagenationCss;
114
-
115
- exports.ptc_pagenation = PtcPagenation;