angular2-credit-card-draw 2.0.0 → 2.0.1

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 (64) hide show
  1. package/README.MD +134 -132
  2. package/fesm2022/angular2-credit-card-draw.mjs +63 -0
  3. package/fesm2022/angular2-credit-card-draw.mjs.map +1 -0
  4. package/package.json +45 -54
  5. package/{dist/angular2-credit-card-draw/types → types}/angular2-credit-card-draw.d.ts +2 -1
  6. package/.storybook/main.ts +0 -12
  7. package/.storybook/preview.ts +0 -15
  8. package/.storybook/tsconfig.json +0 -7
  9. package/.travis.yml +0 -6
  10. package/dist/angular2-credit-card-draw/README.MD +0 -132
  11. package/dist/angular2-credit-card-draw/fesm2022/angular2-credit-card-draw.mjs +0 -60
  12. package/dist/angular2-credit-card-draw/fesm2022/angular2-credit-card-draw.mjs.map +0 -1
  13. package/ng-package.json +0 -10
  14. package/src/card.component.stories.ts +0 -36
  15. package/src/card.component.ts +0 -17
  16. package/src/card.html +0 -389
  17. package/src/card.module.ts +0 -14
  18. package/src/public-api.ts +0 -2
  19. package/storybook-static/assets/Color-6AOWCN3U-BHKwsHJb.js +0 -1
  20. package/storybook-static/assets/DocsRenderer-JROSPFPF-CPN4diXU.js +0 -290
  21. package/storybook-static/assets/WithTooltip-CDUNV5IS-CxkNVblN.js +0 -9
  22. package/storybook-static/assets/angular-platform-BykChHPp.js +0 -7
  23. package/storybook-static/assets/card.component.stories-Cbn8dXwJ.js +0 -393
  24. package/storybook-static/assets/chunk-242VQQM5-Jx3JgJO8.js +0 -1
  25. package/storybook-static/assets/chunk-DRQKCCAG-DvhnS67P.js +0 -1
  26. package/storybook-static/assets/chunk-QQBDHPVZ-wyKC71kO.js +0 -1
  27. package/storybook-static/assets/chunk-W22LQPXL-I4qw3Lnf.js +0 -18
  28. package/storybook-static/assets/components-fboz0Wwr.js +0 -1
  29. package/storybook-static/assets/formatter-L2YTDE3Q-Bcc5sJgv.js +0 -1
  30. package/storybook-static/assets/iframe-C2YkrQlr.js +0 -1
  31. package/storybook-static/assets/iframe-D-RwILkF.js +0 -1099
  32. package/storybook-static/assets/preload-helper-C313MjYS.js +0 -1
  33. package/storybook-static/assets/react-BxCz-S_c.js +0 -1
  34. package/storybook-static/assets/react-DL9pMoMl.js +0 -1
  35. package/storybook-static/assets/rolldown-runtime-vtgMY1y5.js +0 -1
  36. package/storybook-static/assets/syntaxhighlighter-4REYKNEV-Donq5IPh.js +0 -6
  37. package/storybook-static/assets/theming-CXmlqL_e.js +0 -39
  38. package/storybook-static/favicon-wrapper.svg +0 -46
  39. package/storybook-static/favicon.svg +0 -1
  40. package/storybook-static/iframe.html +0 -680
  41. package/storybook-static/index.html +0 -149
  42. package/storybook-static/index.json +0 -1
  43. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  44. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  45. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  46. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  47. package/storybook-static/project.json +0 -1
  48. package/storybook-static/sb-addons/docs-1/manager-bundle.js +0 -18
  49. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -632
  50. package/storybook-static/sb-common-assets/favicon-wrapper.svg +0 -46
  51. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  52. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  53. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  54. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  55. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  56. package/storybook-static/sb-manager/globals-runtime.js +0 -79237
  57. package/storybook-static/sb-manager/globals.js +0 -24
  58. package/storybook-static/sb-manager/manager-stores.js +0 -23
  59. package/storybook-static/sb-manager/runtime.js +0 -29276
  60. package/storybook-static/services/core/docgen/components-carddraw.json +0 -151
  61. package/storybook-static/services/core/story-docs/components-carddraw.json +0 -21
  62. package/storybook-static/vite-inject-mocker-entry.js +0 -2
  63. package/tsconfig.json +0 -15
  64. package/tsconfig.lib.json +0 -15
@@ -1,132 +0,0 @@
1
- # angular2-credit-card-draw
2
-
3
- A customizable, animated credit card preview component for Angular.
4
-
5
- ## Angular version and upgrade notes
6
-
7
- This release uses Angular 21 and is distributed as a compiled Angular library.
8
- It requires Angular `^21.0.0` (`@angular/core` and `@angular/common`) and RxJS
9
- `^7.4.0`. Use a Node.js version supported by Angular 21 when developing or
10
- building the library.
11
-
12
- The Angular 2-era Gulp, Typings, and TSLint build has been replaced with
13
- `ng-packagr` and the Angular Package Format. The `CardDraw` selector and its
14
- existing input names are retained. `CardDraw` is now standalone and can be
15
- imported directly; `CardModule` is still exported for applications that use
16
- NgModules.
17
-
18
- Install the package in an Angular 21 application:
19
-
20
- ```bash
21
- npm install angular2-credit-card-draw
22
- ```
23
-
24
- ## Features
25
-
26
- - Renders the front and back of a credit card, including cardholder name,
27
- number, expiry date, and security code.
28
- - Flips between sides on hover or when controlled with the `toggle` input.
29
- - Accepts card face dimensions and a custom CSS background.
30
- - Provides a standalone component and an NgModule-compatible wrapper.
31
- - Includes Storybook stories with interactive controls for local development.
32
-
33
- This component only displays the values supplied to it; it does not validate,
34
- store, or process payment details.
35
-
36
- ## Component inputs
37
-
38
- | Input | Type | Default | Description |
39
- | --- | --- | --- | --- |
40
- | `name` | `string` | `''` | Cardholder name shown on the front. |
41
- | `number` | `string` | `''` | Card number shown on the front. |
42
- | `expiration` | `string` | `''` | Expiration text shown on the front, for example `12/29`. |
43
- | `ccv` | `string` | `''` | Security code shown on the back. |
44
- | `background` | `string` | `''` | CSS background value for both card faces. When empty, the built-in gradient is used. |
45
- | `width` | `string` | `''` | CSS width for the card faces, for example `400px`. |
46
- | `height` | `string` | `''` | CSS height for the card faces, for example `250px`. |
47
- | `toggle` | `boolean` | `false` | Set to `true` to show the back; the card also flips when hovered. |
48
-
49
- ## Standalone component usage
50
-
51
- Import `CardDraw` into a standalone component's `imports`:
52
-
53
- ```typescript
54
- import {Component} from '@angular/core';
55
- import {CardDraw} from 'angular2-credit-card-draw';
56
-
57
- @Component({
58
- selector: 'app-root',
59
- standalone: true,
60
- imports: [CardDraw],
61
- template: `
62
- <card-draw
63
- [width]="'400px'"
64
- [height]="'250px'"
65
- [background]="'#1a1f71'"
66
- [name]="cardholder"
67
- [number]="cardNumber"
68
- [expiration]="expiration"
69
- [ccv]="securityCode"
70
- [toggle]="showBack">
71
- </card-draw>
72
- `
73
- })
74
- export class AppComponent {
75
- cardholder = 'Emma Watson';
76
- cardNumber = '1234 1234 1234 1234';
77
- expiration = '12/29';
78
- securityCode = '999';
79
- showBack = false;
80
- }
81
- ```
82
-
83
- Set `showBack` to `true` to display the back of the card. Hovering the card
84
- also flips it.
85
-
86
- ## NgModule usage
87
-
88
- For an NgModule-based application, import `CardModule` in the module that uses
89
- the `<card-draw>` element:
90
-
91
- ```typescript
92
- import {NgModule} from '@angular/core';
93
- import {CardModule} from 'angular2-credit-card-draw';
94
-
95
- @NgModule({
96
- imports: [CardModule]
97
- })
98
- export class AppModule {}
99
- ```
100
-
101
- ## Development and Storybook
102
-
103
- Install the development dependencies and start Storybook:
104
-
105
- ```bash
106
- npm install
107
- npm run storybook
108
- ```
109
-
110
- Open `http://localhost:6006` to preview the **Front** and **Back** stories.
111
- Use the Controls panel to edit the component inputs. Build a static Storybook
112
- site with:
113
-
114
- ```bash
115
- npm run build-storybook
116
- ```
117
-
118
- Build the distributable Angular package with:
119
-
120
- ```bash
121
- npm run build
122
- ```
123
-
124
- The package output is written to `dist/angular2-credit-card-draw`.
125
-
126
- ## Live demo
127
-
128
- https://plnkr.co/edit/8kiEx9ZXOZsDJB2CAtcp?p=preview
129
-
130
- ## License
131
-
132
- MIT © [Dennis Oliveira Cremasco](dennisdoc@hotmail.com)
@@ -1,60 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Input, Component, NgModule } from '@angular/core';
3
-
4
- class CardDraw {
5
- number = '';
6
- name = '';
7
- expiration = '';
8
- ccv = '';
9
- background = '';
10
- height = '';
11
- width = '';
12
- toggle = false;
13
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CardDraw, deps: [], target: i0.ɵɵFactoryTarget.Component });
14
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: CardDraw, isStandalone: true, selector: "card-draw", inputs: { number: "number", name: "name", expiration: "expiration", ccv: "ccv", background: "background", height: "height", width: "width", toggle: "toggle" }, ngImport: i0, template: "<div>\r\n\t<div class=\"checkout\">\r\n\t <div class=\"credit-card-box {{toggle ? 'hover':''}}\">\r\n\t <div class=\"flip\">\r\n\t <div [style.width]=\"width\" [style.height]=\"height\" [style.background]=\"background\" class=\"front\">\r\n\t <div class=\"chip\"></div>\r\n\t <div class=\"logo\">\r\n\t <svg version=\"1.1\" id=\"visa\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\r\n\t width=\"47.834px\" height=\"47.834px\" viewBox=\"0 0 47.834 47.834\" style=\"enable-background:new 0 0 47.834 47.834;\">\r\n\t <g>\r\n\t <g>\r\n\t <path d=\"M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143\r\n\t c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01\r\n\t c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z\r\n\t M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228\r\n\t c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77\r\n\t c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092\r\n\t l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77\r\n\t C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304\r\n\t C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161\r\n\t c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066\r\n\t h-3.888L19.153,16.8z\">\r\n\t </path>\r\n\t </g>\r\n\t </g>\r\n\t </svg>\r\n\t </div>\r\n\t <div class=\"number\">{{number}}</div>\r\n\t <div class=\"card-holder\">\r\n\t <label>Card holder</label>\r\n\t <div>{{name}}</div>\r\n\t </div>\r\n\t <div class=\"card-expiration-date\">\r\n\t <label>Expires</label>\r\n\t <div>{{expiration}}</div>\r\n\t </div>\r\n\t </div>\r\n\t <div [style.width]=\"width\" [style.height]=\"height\" [style.background]=\"background\" class=\"back\">\r\n\t <div class=\"strip\"></div>\r\n\t <div class=\"logo\">\r\n\t <svg version=\"1.1\" id=\"visa\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\r\n\t width=\"47.834px\" height=\"47.834px\" viewBox=\"0 0 47.834 47.834\" style=\"enable-background:new 0 0 47.834 47.834;\">\r\n\t <g>\r\n\t <g>\r\n\t <path d=\"M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143\r\n\t c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01\r\n\t c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z\r\n\t M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228\r\n\t c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77\r\n\t c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092\r\n\t l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77\r\n\t C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304\r\n\t C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161\r\n\t c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066\r\n\t h-3.888L19.153,16.8z\">\r\n\t \t</path>\r\n\t </g>\r\n\t </g>\r\n\t </svg>\r\n\r\n\t </div>\r\n\t <div class=\"ccv\">\r\n\t <label>CCV</label>\r\n\t <div>{{ccv}}</div>\r\n\t </div>\r\n\t </div>\r\n\t </div>\r\n\t </div>\r\n\t</div>\r\n\t<style>\r\n\t\t*,\r\n\t\t*::before,\r\n\t\t*::after {\r\n\t\t box-sizing: border-box;\r\n\t\t}\r\n\r\n\t\thtml,\r\n\t\tbody {\r\n\t\t min-height: 100%;\r\n\t\t font-family: 'Open sans', sans-serif;\r\n\t\t}\r\n\r\n\t\tbody {\r\n\t\t background: -webkit-linear-gradient(40deg, #f3c680, #a1e3e2);\r\n\t\t background: linear-gradient(50deg, #f3c680, #a1e3e2);\r\n\t\t}\r\n\r\n\t\t/*--------------------\r\n\t\tButtons\r\n\t\t--------------------*/\r\n\t\t.btn {\r\n\t\t display: block;\r\n\t\t background: #bded7d;\r\n\t\t color: white;\r\n\t\t text-decoration: none;\r\n\t\t margin: 20px 0;\r\n\t\t padding: 15px 15px;\r\n\t\t border-radius: 5px;\r\n\t\t position: relative;\r\n\t\t}\r\n\t\t.btn::after {\r\n\t\t content: '';\r\n\t\t position: absolute;\r\n\t\t z-index: 1;\r\n\t\t top: 0;\r\n\t\t left: 0;\r\n\t\t width: 100%;\r\n\t\t height: 100%;\r\n\t\t -webkit-transition: all .2s ease-in-out;\r\n\t\t transition: all .2s ease-in-out;\r\n\t\t box-shadow: inset 0 3px 0 transparent, 0 3px 3px rgba(0, 0, 0, 0.2);\r\n\t\t border-radius: 5px;\r\n\t\t}\r\n\t\t.btn:hover::after {\r\n\t\t background: rgba(0, 0, 0, 0.1);\r\n\t\t box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.2);\r\n\t\t}\r\n\r\n\t\t/*--------------------\r\n\t\tForm\r\n\t\t--------------------*/\r\n\t\t.form fieldset {\r\n\t\t border: none;\r\n\t\t padding: 0;\r\n\t\t padding: 10px 0;\r\n\t\t position: relative;\r\n\t\t clear: both;\r\n\t\t}\r\n\t\t.form fieldset.fieldset-expiration {\r\n\t\t float: left;\r\n\t\t width: 60%;\r\n\t\t}\r\n\t\t.form fieldset.fieldset-expiration .select {\r\n\t\t width: 84px;\r\n\t\t margin-right: 12px;\r\n\t\t float: left;\r\n\t\t}\r\n\t\t.form fieldset.fieldset-ccv {\r\n\t\t clear: none;\r\n\t\t float: right;\r\n\t\t width: 86px;\r\n\t\t}\r\n\t\t.form fieldset label {\r\n\t\t display: block;\r\n\t\t text-transform: uppercase;\r\n\t\t font-size: 11px;\r\n\t\t color: rgba(0, 0, 0, 0.6);\r\n\t\t margin-bottom: 5px;\r\n\t\t font-weight: bold;\r\n\t\t font-family: Inconsolata;\r\n\t\t}\r\n\t\t.form fieldset input,\r\n\t\t.form fieldset .select {\r\n\t\t width: 100%;\r\n\t\t height: 38px;\r\n\t\t color: #333333;\r\n\t\t padding: 10px;\r\n\t\t border-radius: 5px;\r\n\t\t font-size: 15px;\r\n\t\t outline: none !important;\r\n\t\t border: 1px solid rgba(0, 0, 0, 0.3);\r\n\t\t box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);\r\n\t\t}\r\n\t\t.form fieldset input.input-cart-number,\r\n\t\t.form fieldset .select.input-cart-number {\r\n\t\t width: 82px;\r\n\t\t display: inline-block;\r\n\t\t margin-right: 8px;\r\n\t\t}\r\n\t\t.form fieldset input.input-cart-number:last-child,\r\n\t\t.form fieldset .select.input-cart-number:last-child {\r\n\t\t margin-right: 0;\r\n\t\t}\r\n\t\t.form fieldset .select {\r\n\t\t position: relative;\r\n\t\t}\r\n\t\t.form fieldset .select::after {\r\n\t\t content: '';\r\n\t\t border-top: 8px solid #222;\r\n\t\t border-left: 4px solid transparent;\r\n\t\t border-right: 4px solid transparent;\r\n\t\t position: absolute;\r\n\t\t z-index: 2;\r\n\t\t top: 14px;\r\n\t\t right: 10px;\r\n\t\t pointer-events: none;\r\n\t\t}\r\n\t\t.form fieldset .select select {\r\n\t\t -webkit-appearance: none;\r\n\t\t -moz-appearance: none;\r\n\t\t appearance: none;\r\n\t\t position: absolute;\r\n\t\t padding: 0;\r\n\t\t border: none;\r\n\t\t width: 100%;\r\n\t\t outline: none !important;\r\n\t\t top: 6px;\r\n\t\t left: 6px;\r\n\t\t background: none;\r\n\t\t}\r\n\t\t.form fieldset .select select :-moz-focusring {\r\n\t\t color: transparent;\r\n\t\t text-shadow: 0 0 0 #000;\r\n\t\t}\r\n\t\t.form button {\r\n\t\t width: 100%;\r\n\t\t outline: none !important;\r\n\t\t background: -webkit-linear-gradient(top, #49a09b, #3d8291);\r\n\t\t background: linear-gradient(180deg, #49a09b, #3d8291);\r\n\t\t text-transform: uppercase;\r\n\t\t font-weight: bold;\r\n\t\t border: none;\r\n\t\t box-shadow: none;\r\n\t\t text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\r\n\t\t margin-top: 90px;\r\n\t\t}\r\n\t\t.form button .fa {\r\n\t\t margin-right: 6px;\r\n\t\t}\r\n\r\n\t\t/*--------------------\r\n\t\tCheckout\r\n\t\t--------------------*/\r\n\t\t.checkout {\r\n\t\t\tmargin: 20px auto 0px;\r\n\t \t\tposition: relative;\r\n\t \t\tmax-width: 460px;\r\n\t \t\tborder-radius: 15px;\r\n\t\t}\r\n\r\n\t\t/*--------------------\r\n\t\tCredit Card\r\n\t\t--------------------*/\r\n\t\t.credit-card-box {\r\n\t\t -webkit-perspective: 1000;\r\n\t\t perspective: 1000;\r\n\t\t width: 400px;\r\n\t\t height: 280px;\r\n\t\t position: relative;\r\n\t\t left: 50%;\r\n\t\t -webkit-transform: translateX(-50%);\r\n\t\t transform: translateX(-50%);\r\n\t\t}\r\n\t\t.credit-card-box:hover .flip, .credit-card-box.hover .flip {\r\n\t\t -webkit-transform: rotateY(180deg);\r\n\t\t transform: rotateY(180deg);\r\n\t\t}\r\n\t\t.credit-card-box .front,\r\n\t\t.credit-card-box .back {\r\n\t\t width: 400px;\r\n\t\t height: 250px;\r\n\t\t border-radius: 15px;\r\n\t\t -webkit-backface-visibility: hidden;\r\n\t\t backface-visibility: hidden;\r\n\t\t background: linear-gradient(135deg, #bd6772, #53223f);\r\n\t\t position: absolute;\r\n\t\t color: #fff;\r\n\t\t font-family: Inconsolata;\r\n\t\t top: 0;\r\n\t\t left: 0;\r\n\t\t text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);\r\n\t\t box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);\r\n\t\t}\r\n\t\t.credit-card-box .front::before,\r\n\t\t.credit-card-box .back::before {\r\n\t\t content: '';\r\n\t\t position: absolute;\r\n\t\t width: 100%;\r\n\t\t height: 100%;\r\n\t\t top: 0;\r\n\t\t left: 0;\r\n\t\t background: url(\"http://cdn.flaticon.com/svg/44/44386.svg\") no-repeat center;\r\n\t\t background-size: cover;\r\n\t\t opacity: .05;\r\n\t\t}\r\n\t\t.credit-card-box .flip {\r\n\t\t -webkit-transition: 0.6s;\r\n\t\t transition: 0.6s;\r\n\t\t -webkit-transform-style: preserve-3d;\r\n\t\t transform-style: preserve-3d;\r\n\t\t position: relative;\r\n\t\t}\r\n\t\t.credit-card-box .logo {\r\n\t\t position: absolute;\r\n\t\t top: 9px;\r\n\t\t right: 20px;\r\n\t\t width: 60px;\r\n\t\t}\r\n\t\t.credit-card-box .logo svg {\r\n\t\t width: 100%;\r\n\t\t height: auto;\r\n\t\t fill: #fff;\r\n\t\t}\r\n\t\t.credit-card-box .front {\r\n\t\t z-index: 2;\r\n\t\t -webkit-transform: rotateY(0deg);\r\n\t\t transform: rotateY(0deg);\r\n\t\t}\r\n\t\t.credit-card-box .back {\r\n\t\t -webkit-transform: rotateY(180deg);\r\n\t\t transform: rotateY(180deg);\r\n\t\t}\r\n\t\t.credit-card-box .back .logo {\r\n\t\t top: 185px;\r\n\t\t}\r\n\t\t.credit-card-box .chip {\r\n\t\t position: absolute;\r\n\t\t width: 60px;\r\n\t\t height: 45px;\r\n\t\t top: 20px;\r\n\t\t left: 20px;\r\n\t\t background: -webkit-linear-gradient(315deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\r\n\t\t background: linear-gradient(135deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\r\n\t\t border-radius: 8px;\r\n\t\t}\r\n\t\t.credit-card-box .chip::before {\r\n\t\t content: '';\r\n\t\t position: absolute;\r\n\t\t top: 0;\r\n\t\t bottom: 0;\r\n\t\t left: 0;\r\n\t\t right: 0;\r\n\t\t margin: auto;\r\n\t\t border: 4px solid rgba(128, 128, 128, 0.1);\r\n\t\t width: 80%;\r\n\t\t height: 70%;\r\n\t\t border-radius: 5px;\r\n\t\t}\r\n\t\t.credit-card-box .strip {\r\n\t\t background: -webkit-linear-gradient(315deg, #404040, #1a1a1a);\r\n\t\t background: linear-gradient(135deg, #404040, #1a1a1a);\r\n\t\t position: absolute;\r\n\t\t width: 100%;\r\n\t\t height: 50px;\r\n\t\t top: 30px;\r\n\t\t left: 0;\r\n\t\t}\r\n\t\t.credit-card-box .number {\r\n\t\t position: absolute;\r\n\t\t margin: 0 auto;\r\n\t\t top: 103px;\r\n\t\t left: 19px;\r\n\t\t font-size: 30px;\r\n\t\t}\r\n\t\t.credit-card-box label {\r\n\t\t font-size: 10px;\r\n\t\t letter-spacing: 1px;\r\n\t\t text-shadow: none;\r\n\t\t text-transform: uppercase;\r\n\t\t font-weight: normal;\r\n\t\t opacity: 0.5;\r\n\t\t display: block;\r\n\t\t margin-bottom: 3px;\r\n\t\t}\r\n\t\t.credit-card-box .card-holder,\r\n\t\t.credit-card-box .card-expiration-date {\r\n\t\t position: absolute;\r\n\t\t margin: 0 auto;\r\n\t\t top: 180px;\r\n\t\t left: 19px;\r\n\t\t font-size: 22px;\r\n\t\t text-transform: capitalize;\r\n\t\t}\r\n\t\t.credit-card-box .card-expiration-date {\r\n\t\t text-align: right;\r\n\t\t left: auto;\r\n\t\t right: 20px;\r\n\t\t}\r\n\t\t.credit-card-box .ccv {\r\n\t\t height: 36px;\r\n\t\t background: #fff;\r\n\t\t width: 91%;\r\n\t\t border-radius: 5px;\r\n\t\t top: 110px;\r\n\t\t left: 0;\r\n\t\t right: 0;\r\n\t\t position: absolute;\r\n\t\t margin: 0 auto;\r\n\t\t color: #000;\r\n\t\t text-align: right;\r\n\t\t padding: 10px;\r\n\t\t}\r\n\t\t.credit-card-box .ccv label {\r\n\t\t margin: -25px 0 14px;\r\n\t\t color: #fff;\r\n\t\t}\r\n\r\n\t</style>\r\n</div>", styles: ["*,*:before,*:after{box-sizing:border-box}html,body{min-height:100%;font-family:Open sans,sans-serif}body{background:-webkit-linear-gradient(40deg,#f3c680,#a1e3e2);background:linear-gradient(50deg,#f3c680,#a1e3e2)}.btn{display:block;background:#bded7d;color:#fff;text-decoration:none;margin:20px 0;padding:15px;border-radius:5px;position:relative}.btn:after{content:\"\";position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;box-shadow:inset 0 3px 0 transparent,0 3px 3px #0003;border-radius:5px}.btn:hover:after{background:#0000001a;box-shadow:inset 0 3px #0003}.form fieldset{border:none;padding:10px 0;position:relative;clear:both}.form fieldset.fieldset-expiration{float:left;width:60%}.form fieldset.fieldset-expiration .select{width:84px;margin-right:12px;float:left}.form fieldset.fieldset-ccv{clear:none;float:right;width:86px}.form fieldset label{display:block;text-transform:uppercase;font-size:11px;color:#0009;margin-bottom:5px;font-weight:700;font-family:Inconsolata}.form fieldset input,.form fieldset .select{width:100%;height:38px;color:#333;padding:10px;border-radius:5px;font-size:15px;outline:none!important;border:1px solid rgba(0,0,0,.3);box-shadow:inset 0 1px 4px #0003}.form fieldset input.input-cart-number,.form fieldset .select.input-cart-number{width:82px;display:inline-block;margin-right:8px}.form fieldset input.input-cart-number:last-child,.form fieldset .select.input-cart-number:last-child{margin-right:0}.form fieldset .select{position:relative}.form fieldset .select:after{content:\"\";border-top:8px solid #222;border-left:4px solid transparent;border-right:4px solid transparent;position:absolute;z-index:2;top:14px;right:10px;pointer-events:none}.form fieldset .select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;padding:0;border:none;width:100%;outline:none!important;top:6px;left:6px;background:none}.form fieldset .select select :-moz-focusring{color:transparent;text-shadow:0 0 0 #000}.form button{width:100%;outline:none!important;background:-webkit-linear-gradient(top,#49a09b,#3d8291);background:linear-gradient(180deg,#49a09b,#3d8291);text-transform:uppercase;font-weight:700;border:none;box-shadow:none;text-shadow:0 1px 2px rgba(0,0,0,.2);margin-top:90px}.form button .fa{margin-right:6px}.checkout{margin:20px auto 0;position:relative;max-width:460px;border-radius:15px}.credit-card-box{-webkit-perspective:1000;perspective:1000;width:400px;height:280px;position:relative;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.credit-card-box:hover .flip,.credit-card-box.hover .flip{-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}.credit-card-box .front,.credit-card-box .back{width:400px;height:250px;border-radius:15px;-webkit-backface-visibility:hidden;backface-visibility:hidden;background:linear-gradient(135deg,#bd6772,#53223f);position:absolute;color:#fff;font-family:Inconsolata;top:0;left:0;text-shadow:0 1px 1px rgba(0,0,0,.3);box-shadow:0 1px 6px #0000004d}.credit-card-box .front:before,.credit-card-box .back:before{content:\"\";position:absolute;width:100%;height:100%;top:0;left:0;background:url(http://cdn.flaticon.com/svg/44/44386.svg) no-repeat center;background-size:cover;opacity:.05}.credit-card-box .flip{-webkit-transition:.6s;transition:.6s;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;position:relative}.credit-card-box .logo{position:absolute;top:9px;right:20px;width:60px}.credit-card-box .logo svg{width:100%;height:auto;fill:#fff}.credit-card-box .front{z-index:2;-webkit-transform:rotateY(0deg);transform:rotateY(0)}.credit-card-box .back{-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}.credit-card-box .back .logo{top:185px}.credit-card-box .chip{position:absolute;width:60px;height:45px;top:20px;left:20px;background:-webkit-linear-gradient(315deg,#ddccf0 0%,#d1e9f5 44%,#f8ece7 100%);background:linear-gradient(135deg,#ddccf0,#d1e9f5 44%,#f8ece7);border-radius:8px}.credit-card-box .chip:before{content:\"\";position:absolute;inset:0;margin:auto;border:4px solid rgba(128,128,128,.1);width:80%;height:70%;border-radius:5px}.credit-card-box .strip{background:-webkit-linear-gradient(315deg,#404040,#1a1a1a);background:linear-gradient(135deg,#404040,#1a1a1a);position:absolute;width:100%;height:50px;top:30px;left:0}.credit-card-box .number{position:absolute;margin:0 auto;top:103px;left:19px;font-size:30px}.credit-card-box label{font-size:10px;letter-spacing:1px;text-shadow:none;text-transform:uppercase;font-weight:400;opacity:.5;display:block;margin-bottom:3px}.credit-card-box .card-holder,.credit-card-box .card-expiration-date{position:absolute;margin:0 auto;top:180px;left:19px;font-size:22px;text-transform:capitalize}.credit-card-box .card-expiration-date{text-align:right;left:auto;right:20px}.credit-card-box .ccv{height:36px;background:#fff;width:91%;border-radius:5px;top:110px;left:0;right:0;position:absolute;margin:0 auto;color:#000;text-align:right;padding:10px}.credit-card-box .ccv label{margin:-25px 0 14px;color:#fff}\n"] });
15
- }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CardDraw, decorators: [{
17
- type: Component,
18
- args: [{ selector: 'card-draw', standalone: true, template: "<div>\r\n\t<div class=\"checkout\">\r\n\t <div class=\"credit-card-box {{toggle ? 'hover':''}}\">\r\n\t <div class=\"flip\">\r\n\t <div [style.width]=\"width\" [style.height]=\"height\" [style.background]=\"background\" class=\"front\">\r\n\t <div class=\"chip\"></div>\r\n\t <div class=\"logo\">\r\n\t <svg version=\"1.1\" id=\"visa\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\r\n\t width=\"47.834px\" height=\"47.834px\" viewBox=\"0 0 47.834 47.834\" style=\"enable-background:new 0 0 47.834 47.834;\">\r\n\t <g>\r\n\t <g>\r\n\t <path d=\"M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143\r\n\t c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01\r\n\t c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z\r\n\t M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228\r\n\t c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77\r\n\t c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092\r\n\t l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77\r\n\t C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304\r\n\t C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161\r\n\t c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066\r\n\t h-3.888L19.153,16.8z\">\r\n\t </path>\r\n\t </g>\r\n\t </g>\r\n\t </svg>\r\n\t </div>\r\n\t <div class=\"number\">{{number}}</div>\r\n\t <div class=\"card-holder\">\r\n\t <label>Card holder</label>\r\n\t <div>{{name}}</div>\r\n\t </div>\r\n\t <div class=\"card-expiration-date\">\r\n\t <label>Expires</label>\r\n\t <div>{{expiration}}</div>\r\n\t </div>\r\n\t </div>\r\n\t <div [style.width]=\"width\" [style.height]=\"height\" [style.background]=\"background\" class=\"back\">\r\n\t <div class=\"strip\"></div>\r\n\t <div class=\"logo\">\r\n\t <svg version=\"1.1\" id=\"visa\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\r\n\t width=\"47.834px\" height=\"47.834px\" viewBox=\"0 0 47.834 47.834\" style=\"enable-background:new 0 0 47.834 47.834;\">\r\n\t <g>\r\n\t <g>\r\n\t <path d=\"M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143\r\n\t c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01\r\n\t c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z\r\n\t M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228\r\n\t c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77\r\n\t c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092\r\n\t l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77\r\n\t C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304\r\n\t C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161\r\n\t c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066\r\n\t h-3.888L19.153,16.8z\">\r\n\t \t</path>\r\n\t </g>\r\n\t </g>\r\n\t </svg>\r\n\r\n\t </div>\r\n\t <div class=\"ccv\">\r\n\t <label>CCV</label>\r\n\t <div>{{ccv}}</div>\r\n\t </div>\r\n\t </div>\r\n\t </div>\r\n\t </div>\r\n\t</div>\r\n\t<style>\r\n\t\t*,\r\n\t\t*::before,\r\n\t\t*::after {\r\n\t\t box-sizing: border-box;\r\n\t\t}\r\n\r\n\t\thtml,\r\n\t\tbody {\r\n\t\t min-height: 100%;\r\n\t\t font-family: 'Open sans', sans-serif;\r\n\t\t}\r\n\r\n\t\tbody {\r\n\t\t background: -webkit-linear-gradient(40deg, #f3c680, #a1e3e2);\r\n\t\t background: linear-gradient(50deg, #f3c680, #a1e3e2);\r\n\t\t}\r\n\r\n\t\t/*--------------------\r\n\t\tButtons\r\n\t\t--------------------*/\r\n\t\t.btn {\r\n\t\t display: block;\r\n\t\t background: #bded7d;\r\n\t\t color: white;\r\n\t\t text-decoration: none;\r\n\t\t margin: 20px 0;\r\n\t\t padding: 15px 15px;\r\n\t\t border-radius: 5px;\r\n\t\t position: relative;\r\n\t\t}\r\n\t\t.btn::after {\r\n\t\t content: '';\r\n\t\t position: absolute;\r\n\t\t z-index: 1;\r\n\t\t top: 0;\r\n\t\t left: 0;\r\n\t\t width: 100%;\r\n\t\t height: 100%;\r\n\t\t -webkit-transition: all .2s ease-in-out;\r\n\t\t transition: all .2s ease-in-out;\r\n\t\t box-shadow: inset 0 3px 0 transparent, 0 3px 3px rgba(0, 0, 0, 0.2);\r\n\t\t border-radius: 5px;\r\n\t\t}\r\n\t\t.btn:hover::after {\r\n\t\t background: rgba(0, 0, 0, 0.1);\r\n\t\t box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.2);\r\n\t\t}\r\n\r\n\t\t/*--------------------\r\n\t\tForm\r\n\t\t--------------------*/\r\n\t\t.form fieldset {\r\n\t\t border: none;\r\n\t\t padding: 0;\r\n\t\t padding: 10px 0;\r\n\t\t position: relative;\r\n\t\t clear: both;\r\n\t\t}\r\n\t\t.form fieldset.fieldset-expiration {\r\n\t\t float: left;\r\n\t\t width: 60%;\r\n\t\t}\r\n\t\t.form fieldset.fieldset-expiration .select {\r\n\t\t width: 84px;\r\n\t\t margin-right: 12px;\r\n\t\t float: left;\r\n\t\t}\r\n\t\t.form fieldset.fieldset-ccv {\r\n\t\t clear: none;\r\n\t\t float: right;\r\n\t\t width: 86px;\r\n\t\t}\r\n\t\t.form fieldset label {\r\n\t\t display: block;\r\n\t\t text-transform: uppercase;\r\n\t\t font-size: 11px;\r\n\t\t color: rgba(0, 0, 0, 0.6);\r\n\t\t margin-bottom: 5px;\r\n\t\t font-weight: bold;\r\n\t\t font-family: Inconsolata;\r\n\t\t}\r\n\t\t.form fieldset input,\r\n\t\t.form fieldset .select {\r\n\t\t width: 100%;\r\n\t\t height: 38px;\r\n\t\t color: #333333;\r\n\t\t padding: 10px;\r\n\t\t border-radius: 5px;\r\n\t\t font-size: 15px;\r\n\t\t outline: none !important;\r\n\t\t border: 1px solid rgba(0, 0, 0, 0.3);\r\n\t\t box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);\r\n\t\t}\r\n\t\t.form fieldset input.input-cart-number,\r\n\t\t.form fieldset .select.input-cart-number {\r\n\t\t width: 82px;\r\n\t\t display: inline-block;\r\n\t\t margin-right: 8px;\r\n\t\t}\r\n\t\t.form fieldset input.input-cart-number:last-child,\r\n\t\t.form fieldset .select.input-cart-number:last-child {\r\n\t\t margin-right: 0;\r\n\t\t}\r\n\t\t.form fieldset .select {\r\n\t\t position: relative;\r\n\t\t}\r\n\t\t.form fieldset .select::after {\r\n\t\t content: '';\r\n\t\t border-top: 8px solid #222;\r\n\t\t border-left: 4px solid transparent;\r\n\t\t border-right: 4px solid transparent;\r\n\t\t position: absolute;\r\n\t\t z-index: 2;\r\n\t\t top: 14px;\r\n\t\t right: 10px;\r\n\t\t pointer-events: none;\r\n\t\t}\r\n\t\t.form fieldset .select select {\r\n\t\t -webkit-appearance: none;\r\n\t\t -moz-appearance: none;\r\n\t\t appearance: none;\r\n\t\t position: absolute;\r\n\t\t padding: 0;\r\n\t\t border: none;\r\n\t\t width: 100%;\r\n\t\t outline: none !important;\r\n\t\t top: 6px;\r\n\t\t left: 6px;\r\n\t\t background: none;\r\n\t\t}\r\n\t\t.form fieldset .select select :-moz-focusring {\r\n\t\t color: transparent;\r\n\t\t text-shadow: 0 0 0 #000;\r\n\t\t}\r\n\t\t.form button {\r\n\t\t width: 100%;\r\n\t\t outline: none !important;\r\n\t\t background: -webkit-linear-gradient(top, #49a09b, #3d8291);\r\n\t\t background: linear-gradient(180deg, #49a09b, #3d8291);\r\n\t\t text-transform: uppercase;\r\n\t\t font-weight: bold;\r\n\t\t border: none;\r\n\t\t box-shadow: none;\r\n\t\t text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\r\n\t\t margin-top: 90px;\r\n\t\t}\r\n\t\t.form button .fa {\r\n\t\t margin-right: 6px;\r\n\t\t}\r\n\r\n\t\t/*--------------------\r\n\t\tCheckout\r\n\t\t--------------------*/\r\n\t\t.checkout {\r\n\t\t\tmargin: 20px auto 0px;\r\n\t \t\tposition: relative;\r\n\t \t\tmax-width: 460px;\r\n\t \t\tborder-radius: 15px;\r\n\t\t}\r\n\r\n\t\t/*--------------------\r\n\t\tCredit Card\r\n\t\t--------------------*/\r\n\t\t.credit-card-box {\r\n\t\t -webkit-perspective: 1000;\r\n\t\t perspective: 1000;\r\n\t\t width: 400px;\r\n\t\t height: 280px;\r\n\t\t position: relative;\r\n\t\t left: 50%;\r\n\t\t -webkit-transform: translateX(-50%);\r\n\t\t transform: translateX(-50%);\r\n\t\t}\r\n\t\t.credit-card-box:hover .flip, .credit-card-box.hover .flip {\r\n\t\t -webkit-transform: rotateY(180deg);\r\n\t\t transform: rotateY(180deg);\r\n\t\t}\r\n\t\t.credit-card-box .front,\r\n\t\t.credit-card-box .back {\r\n\t\t width: 400px;\r\n\t\t height: 250px;\r\n\t\t border-radius: 15px;\r\n\t\t -webkit-backface-visibility: hidden;\r\n\t\t backface-visibility: hidden;\r\n\t\t background: linear-gradient(135deg, #bd6772, #53223f);\r\n\t\t position: absolute;\r\n\t\t color: #fff;\r\n\t\t font-family: Inconsolata;\r\n\t\t top: 0;\r\n\t\t left: 0;\r\n\t\t text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);\r\n\t\t box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);\r\n\t\t}\r\n\t\t.credit-card-box .front::before,\r\n\t\t.credit-card-box .back::before {\r\n\t\t content: '';\r\n\t\t position: absolute;\r\n\t\t width: 100%;\r\n\t\t height: 100%;\r\n\t\t top: 0;\r\n\t\t left: 0;\r\n\t\t background: url(\"http://cdn.flaticon.com/svg/44/44386.svg\") no-repeat center;\r\n\t\t background-size: cover;\r\n\t\t opacity: .05;\r\n\t\t}\r\n\t\t.credit-card-box .flip {\r\n\t\t -webkit-transition: 0.6s;\r\n\t\t transition: 0.6s;\r\n\t\t -webkit-transform-style: preserve-3d;\r\n\t\t transform-style: preserve-3d;\r\n\t\t position: relative;\r\n\t\t}\r\n\t\t.credit-card-box .logo {\r\n\t\t position: absolute;\r\n\t\t top: 9px;\r\n\t\t right: 20px;\r\n\t\t width: 60px;\r\n\t\t}\r\n\t\t.credit-card-box .logo svg {\r\n\t\t width: 100%;\r\n\t\t height: auto;\r\n\t\t fill: #fff;\r\n\t\t}\r\n\t\t.credit-card-box .front {\r\n\t\t z-index: 2;\r\n\t\t -webkit-transform: rotateY(0deg);\r\n\t\t transform: rotateY(0deg);\r\n\t\t}\r\n\t\t.credit-card-box .back {\r\n\t\t -webkit-transform: rotateY(180deg);\r\n\t\t transform: rotateY(180deg);\r\n\t\t}\r\n\t\t.credit-card-box .back .logo {\r\n\t\t top: 185px;\r\n\t\t}\r\n\t\t.credit-card-box .chip {\r\n\t\t position: absolute;\r\n\t\t width: 60px;\r\n\t\t height: 45px;\r\n\t\t top: 20px;\r\n\t\t left: 20px;\r\n\t\t background: -webkit-linear-gradient(315deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\r\n\t\t background: linear-gradient(135deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\r\n\t\t border-radius: 8px;\r\n\t\t}\r\n\t\t.credit-card-box .chip::before {\r\n\t\t content: '';\r\n\t\t position: absolute;\r\n\t\t top: 0;\r\n\t\t bottom: 0;\r\n\t\t left: 0;\r\n\t\t right: 0;\r\n\t\t margin: auto;\r\n\t\t border: 4px solid rgba(128, 128, 128, 0.1);\r\n\t\t width: 80%;\r\n\t\t height: 70%;\r\n\t\t border-radius: 5px;\r\n\t\t}\r\n\t\t.credit-card-box .strip {\r\n\t\t background: -webkit-linear-gradient(315deg, #404040, #1a1a1a);\r\n\t\t background: linear-gradient(135deg, #404040, #1a1a1a);\r\n\t\t position: absolute;\r\n\t\t width: 100%;\r\n\t\t height: 50px;\r\n\t\t top: 30px;\r\n\t\t left: 0;\r\n\t\t}\r\n\t\t.credit-card-box .number {\r\n\t\t position: absolute;\r\n\t\t margin: 0 auto;\r\n\t\t top: 103px;\r\n\t\t left: 19px;\r\n\t\t font-size: 30px;\r\n\t\t}\r\n\t\t.credit-card-box label {\r\n\t\t font-size: 10px;\r\n\t\t letter-spacing: 1px;\r\n\t\t text-shadow: none;\r\n\t\t text-transform: uppercase;\r\n\t\t font-weight: normal;\r\n\t\t opacity: 0.5;\r\n\t\t display: block;\r\n\t\t margin-bottom: 3px;\r\n\t\t}\r\n\t\t.credit-card-box .card-holder,\r\n\t\t.credit-card-box .card-expiration-date {\r\n\t\t position: absolute;\r\n\t\t margin: 0 auto;\r\n\t\t top: 180px;\r\n\t\t left: 19px;\r\n\t\t font-size: 22px;\r\n\t\t text-transform: capitalize;\r\n\t\t}\r\n\t\t.credit-card-box .card-expiration-date {\r\n\t\t text-align: right;\r\n\t\t left: auto;\r\n\t\t right: 20px;\r\n\t\t}\r\n\t\t.credit-card-box .ccv {\r\n\t\t height: 36px;\r\n\t\t background: #fff;\r\n\t\t width: 91%;\r\n\t\t border-radius: 5px;\r\n\t\t top: 110px;\r\n\t\t left: 0;\r\n\t\t right: 0;\r\n\t\t position: absolute;\r\n\t\t margin: 0 auto;\r\n\t\t color: #000;\r\n\t\t text-align: right;\r\n\t\t padding: 10px;\r\n\t\t}\r\n\t\t.credit-card-box .ccv label {\r\n\t\t margin: -25px 0 14px;\r\n\t\t color: #fff;\r\n\t\t}\r\n\r\n\t</style>\r\n</div>" }]
19
- }], propDecorators: { number: [{
20
- type: Input
21
- }], name: [{
22
- type: Input
23
- }], expiration: [{
24
- type: Input
25
- }], ccv: [{
26
- type: Input
27
- }], background: [{
28
- type: Input
29
- }], height: [{
30
- type: Input
31
- }], width: [{
32
- type: Input
33
- }], toggle: [{
34
- type: Input
35
- }] } });
36
-
37
- class CardModule {
38
- static forRoot() {
39
- return {
40
- ngModule: CardModule
41
- };
42
- }
43
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
44
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: CardModule, imports: [CardDraw], exports: [CardDraw] });
45
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CardModule });
46
- }
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: CardModule, decorators: [{
48
- type: NgModule,
49
- args: [{
50
- imports: [CardDraw],
51
- exports: [CardDraw]
52
- }]
53
- }] });
54
-
55
- /**
56
- * Generated bundle index. Do not edit.
57
- */
58
-
59
- export { CardDraw, CardModule };
60
- //# sourceMappingURL=angular2-credit-card-draw.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"angular2-credit-card-draw.mjs","sources":["../../../src/card.component.ts","../../../src/card.html","../../../src/card.module.ts","../../../src/angular2-credit-card-draw.ts"],"sourcesContent":["import {Component, Input} from '@angular/core';\r\n\r\n@Component({\r\n\tselector: 'card-draw',\r\n\ttemplateUrl: './card.html',\r\n\tstandalone: true\r\n})\r\nexport class CardDraw {\r\n\t@Input() number = '';\r\n\t@Input() name = '';\r\n\t@Input() expiration = '';\r\n\t@Input() ccv = '';\r\n\t@Input() background = '';\r\n\t@Input() height = '';\r\n\t@Input() width = '';\r\n\t@Input() toggle = false;\r\n}","<div>\r\n\t<div class=\"checkout\">\r\n\t <div class=\"credit-card-box {{toggle ? 'hover':''}}\">\r\n\t <div class=\"flip\">\r\n\t <div [style.width]=\"width\" [style.height]=\"height\" [style.background]=\"background\" class=\"front\">\r\n\t <div class=\"chip\"></div>\r\n\t <div class=\"logo\">\r\n\t <svg version=\"1.1\" id=\"visa\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\r\n\t width=\"47.834px\" height=\"47.834px\" viewBox=\"0 0 47.834 47.834\" style=\"enable-background:new 0 0 47.834 47.834;\">\r\n\t <g>\r\n\t <g>\r\n\t <path d=\"M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143\r\n\t c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01\r\n\t c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z\r\n\t M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228\r\n\t c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77\r\n\t c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092\r\n\t l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77\r\n\t C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304\r\n\t C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161\r\n\t c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066\r\n\t h-3.888L19.153,16.8z\">\r\n\t </path>\r\n\t </g>\r\n\t </g>\r\n\t </svg>\r\n\t </div>\r\n\t <div class=\"number\">{{number}}</div>\r\n\t <div class=\"card-holder\">\r\n\t <label>Card holder</label>\r\n\t <div>{{name}}</div>\r\n\t </div>\r\n\t <div class=\"card-expiration-date\">\r\n\t <label>Expires</label>\r\n\t <div>{{expiration}}</div>\r\n\t </div>\r\n\t </div>\r\n\t <div [style.width]=\"width\" [style.height]=\"height\" [style.background]=\"background\" class=\"back\">\r\n\t <div class=\"strip\"></div>\r\n\t <div class=\"logo\">\r\n\t <svg version=\"1.1\" id=\"visa\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\r\n\t width=\"47.834px\" height=\"47.834px\" viewBox=\"0 0 47.834 47.834\" style=\"enable-background:new 0 0 47.834 47.834;\">\r\n\t <g>\r\n\t <g>\r\n\t <path d=\"M44.688,16.814h-3.004c-0.933,0-1.627,0.254-2.037,1.184l-5.773,13.074h4.083c0,0,0.666-1.758,0.817-2.143\r\n\t c0.447,0,4.414,0.006,4.979,0.006c0.116,0.498,0.474,2.137,0.474,2.137h3.607L44.688,16.814z M39.893,26.01\r\n\t c0.32-0.819,1.549-3.987,1.549-3.987c-0.021,0.039,0.317-0.825,0.518-1.362l0.262,1.23c0,0,0.745,3.406,0.901,4.119H39.893z\r\n\t M34.146,26.404c-0.028,2.963-2.684,4.875-6.771,4.875c-1.743-0.018-3.422-0.361-4.332-0.76l0.547-3.193l0.501,0.228\r\n\t c1.277,0.532,2.104,0.747,3.661,0.747c1.117,0,2.313-0.438,2.325-1.393c0.007-0.625-0.501-1.07-2.016-1.77\r\n\t c-1.476-0.683-3.43-1.827-3.405-3.876c0.021-2.773,2.729-4.708,6.571-4.708c1.506,0,2.713,0.31,3.483,0.599l-0.526,3.092\r\n\t l-0.351-0.165c-0.716-0.288-1.638-0.566-2.91-0.546c-1.522,0-2.228,0.634-2.228,1.227c-0.008,0.668,0.824,1.108,2.184,1.77\r\n\t C33.126,23.546,34.163,24.783,34.146,26.404z M0,16.962l0.05-0.286h6.028c0.813,0.031,1.468,0.29,1.694,1.159l1.311,6.304\r\n\t C7.795,20.842,4.691,18.099,0,16.962z M17.581,16.812l-6.123,14.239l-4.114,0.007L3.862,19.161\r\n\t c2.503,1.602,4.635,4.144,5.386,5.914l0.406,1.469l3.808-9.729L17.581,16.812L17.581,16.812z M19.153,16.8h3.89L20.61,31.066\r\n\t h-3.888L19.153,16.8z\">\r\n\t \t</path>\r\n\t </g>\r\n\t </g>\r\n\t </svg>\r\n\r\n\t </div>\r\n\t <div class=\"ccv\">\r\n\t <label>CCV</label>\r\n\t <div>{{ccv}}</div>\r\n\t </div>\r\n\t </div>\r\n\t </div>\r\n\t </div>\r\n\t</div>\r\n\t<style>\r\n\t\t*,\r\n\t\t*::before,\r\n\t\t*::after {\r\n\t\t box-sizing: border-box;\r\n\t\t}\r\n\r\n\t\thtml,\r\n\t\tbody {\r\n\t\t min-height: 100%;\r\n\t\t font-family: 'Open sans', sans-serif;\r\n\t\t}\r\n\r\n\t\tbody {\r\n\t\t background: -webkit-linear-gradient(40deg, #f3c680, #a1e3e2);\r\n\t\t background: linear-gradient(50deg, #f3c680, #a1e3e2);\r\n\t\t}\r\n\r\n\t\t/*--------------------\r\n\t\tButtons\r\n\t\t--------------------*/\r\n\t\t.btn {\r\n\t\t display: block;\r\n\t\t background: #bded7d;\r\n\t\t color: white;\r\n\t\t text-decoration: none;\r\n\t\t margin: 20px 0;\r\n\t\t padding: 15px 15px;\r\n\t\t border-radius: 5px;\r\n\t\t position: relative;\r\n\t\t}\r\n\t\t.btn::after {\r\n\t\t content: '';\r\n\t\t position: absolute;\r\n\t\t z-index: 1;\r\n\t\t top: 0;\r\n\t\t left: 0;\r\n\t\t width: 100%;\r\n\t\t height: 100%;\r\n\t\t -webkit-transition: all .2s ease-in-out;\r\n\t\t transition: all .2s ease-in-out;\r\n\t\t box-shadow: inset 0 3px 0 transparent, 0 3px 3px rgba(0, 0, 0, 0.2);\r\n\t\t border-radius: 5px;\r\n\t\t}\r\n\t\t.btn:hover::after {\r\n\t\t background: rgba(0, 0, 0, 0.1);\r\n\t\t box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.2);\r\n\t\t}\r\n\r\n\t\t/*--------------------\r\n\t\tForm\r\n\t\t--------------------*/\r\n\t\t.form fieldset {\r\n\t\t border: none;\r\n\t\t padding: 0;\r\n\t\t padding: 10px 0;\r\n\t\t position: relative;\r\n\t\t clear: both;\r\n\t\t}\r\n\t\t.form fieldset.fieldset-expiration {\r\n\t\t float: left;\r\n\t\t width: 60%;\r\n\t\t}\r\n\t\t.form fieldset.fieldset-expiration .select {\r\n\t\t width: 84px;\r\n\t\t margin-right: 12px;\r\n\t\t float: left;\r\n\t\t}\r\n\t\t.form fieldset.fieldset-ccv {\r\n\t\t clear: none;\r\n\t\t float: right;\r\n\t\t width: 86px;\r\n\t\t}\r\n\t\t.form fieldset label {\r\n\t\t display: block;\r\n\t\t text-transform: uppercase;\r\n\t\t font-size: 11px;\r\n\t\t color: rgba(0, 0, 0, 0.6);\r\n\t\t margin-bottom: 5px;\r\n\t\t font-weight: bold;\r\n\t\t font-family: Inconsolata;\r\n\t\t}\r\n\t\t.form fieldset input,\r\n\t\t.form fieldset .select {\r\n\t\t width: 100%;\r\n\t\t height: 38px;\r\n\t\t color: #333333;\r\n\t\t padding: 10px;\r\n\t\t border-radius: 5px;\r\n\t\t font-size: 15px;\r\n\t\t outline: none !important;\r\n\t\t border: 1px solid rgba(0, 0, 0, 0.3);\r\n\t\t box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);\r\n\t\t}\r\n\t\t.form fieldset input.input-cart-number,\r\n\t\t.form fieldset .select.input-cart-number {\r\n\t\t width: 82px;\r\n\t\t display: inline-block;\r\n\t\t margin-right: 8px;\r\n\t\t}\r\n\t\t.form fieldset input.input-cart-number:last-child,\r\n\t\t.form fieldset .select.input-cart-number:last-child {\r\n\t\t margin-right: 0;\r\n\t\t}\r\n\t\t.form fieldset .select {\r\n\t\t position: relative;\r\n\t\t}\r\n\t\t.form fieldset .select::after {\r\n\t\t content: '';\r\n\t\t border-top: 8px solid #222;\r\n\t\t border-left: 4px solid transparent;\r\n\t\t border-right: 4px solid transparent;\r\n\t\t position: absolute;\r\n\t\t z-index: 2;\r\n\t\t top: 14px;\r\n\t\t right: 10px;\r\n\t\t pointer-events: none;\r\n\t\t}\r\n\t\t.form fieldset .select select {\r\n\t\t -webkit-appearance: none;\r\n\t\t -moz-appearance: none;\r\n\t\t appearance: none;\r\n\t\t position: absolute;\r\n\t\t padding: 0;\r\n\t\t border: none;\r\n\t\t width: 100%;\r\n\t\t outline: none !important;\r\n\t\t top: 6px;\r\n\t\t left: 6px;\r\n\t\t background: none;\r\n\t\t}\r\n\t\t.form fieldset .select select :-moz-focusring {\r\n\t\t color: transparent;\r\n\t\t text-shadow: 0 0 0 #000;\r\n\t\t}\r\n\t\t.form button {\r\n\t\t width: 100%;\r\n\t\t outline: none !important;\r\n\t\t background: -webkit-linear-gradient(top, #49a09b, #3d8291);\r\n\t\t background: linear-gradient(180deg, #49a09b, #3d8291);\r\n\t\t text-transform: uppercase;\r\n\t\t font-weight: bold;\r\n\t\t border: none;\r\n\t\t box-shadow: none;\r\n\t\t text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\r\n\t\t margin-top: 90px;\r\n\t\t}\r\n\t\t.form button .fa {\r\n\t\t margin-right: 6px;\r\n\t\t}\r\n\r\n\t\t/*--------------------\r\n\t\tCheckout\r\n\t\t--------------------*/\r\n\t\t.checkout {\r\n\t\t\tmargin: 20px auto 0px;\r\n\t \t\tposition: relative;\r\n\t \t\tmax-width: 460px;\r\n\t \t\tborder-radius: 15px;\r\n\t\t}\r\n\r\n\t\t/*--------------------\r\n\t\tCredit Card\r\n\t\t--------------------*/\r\n\t\t.credit-card-box {\r\n\t\t -webkit-perspective: 1000;\r\n\t\t perspective: 1000;\r\n\t\t width: 400px;\r\n\t\t height: 280px;\r\n\t\t position: relative;\r\n\t\t left: 50%;\r\n\t\t -webkit-transform: translateX(-50%);\r\n\t\t transform: translateX(-50%);\r\n\t\t}\r\n\t\t.credit-card-box:hover .flip, .credit-card-box.hover .flip {\r\n\t\t -webkit-transform: rotateY(180deg);\r\n\t\t transform: rotateY(180deg);\r\n\t\t}\r\n\t\t.credit-card-box .front,\r\n\t\t.credit-card-box .back {\r\n\t\t width: 400px;\r\n\t\t height: 250px;\r\n\t\t border-radius: 15px;\r\n\t\t -webkit-backface-visibility: hidden;\r\n\t\t backface-visibility: hidden;\r\n\t\t background: linear-gradient(135deg, #bd6772, #53223f);\r\n\t\t position: absolute;\r\n\t\t color: #fff;\r\n\t\t font-family: Inconsolata;\r\n\t\t top: 0;\r\n\t\t left: 0;\r\n\t\t text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);\r\n\t\t box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);\r\n\t\t}\r\n\t\t.credit-card-box .front::before,\r\n\t\t.credit-card-box .back::before {\r\n\t\t content: '';\r\n\t\t position: absolute;\r\n\t\t width: 100%;\r\n\t\t height: 100%;\r\n\t\t top: 0;\r\n\t\t left: 0;\r\n\t\t background: url(\"http://cdn.flaticon.com/svg/44/44386.svg\") no-repeat center;\r\n\t\t background-size: cover;\r\n\t\t opacity: .05;\r\n\t\t}\r\n\t\t.credit-card-box .flip {\r\n\t\t -webkit-transition: 0.6s;\r\n\t\t transition: 0.6s;\r\n\t\t -webkit-transform-style: preserve-3d;\r\n\t\t transform-style: preserve-3d;\r\n\t\t position: relative;\r\n\t\t}\r\n\t\t.credit-card-box .logo {\r\n\t\t position: absolute;\r\n\t\t top: 9px;\r\n\t\t right: 20px;\r\n\t\t width: 60px;\r\n\t\t}\r\n\t\t.credit-card-box .logo svg {\r\n\t\t width: 100%;\r\n\t\t height: auto;\r\n\t\t fill: #fff;\r\n\t\t}\r\n\t\t.credit-card-box .front {\r\n\t\t z-index: 2;\r\n\t\t -webkit-transform: rotateY(0deg);\r\n\t\t transform: rotateY(0deg);\r\n\t\t}\r\n\t\t.credit-card-box .back {\r\n\t\t -webkit-transform: rotateY(180deg);\r\n\t\t transform: rotateY(180deg);\r\n\t\t}\r\n\t\t.credit-card-box .back .logo {\r\n\t\t top: 185px;\r\n\t\t}\r\n\t\t.credit-card-box .chip {\r\n\t\t position: absolute;\r\n\t\t width: 60px;\r\n\t\t height: 45px;\r\n\t\t top: 20px;\r\n\t\t left: 20px;\r\n\t\t background: -webkit-linear-gradient(315deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\r\n\t\t background: linear-gradient(135deg, #ddccf0 0%, #d1e9f5 44%, #f8ece7 100%);\r\n\t\t border-radius: 8px;\r\n\t\t}\r\n\t\t.credit-card-box .chip::before {\r\n\t\t content: '';\r\n\t\t position: absolute;\r\n\t\t top: 0;\r\n\t\t bottom: 0;\r\n\t\t left: 0;\r\n\t\t right: 0;\r\n\t\t margin: auto;\r\n\t\t border: 4px solid rgba(128, 128, 128, 0.1);\r\n\t\t width: 80%;\r\n\t\t height: 70%;\r\n\t\t border-radius: 5px;\r\n\t\t}\r\n\t\t.credit-card-box .strip {\r\n\t\t background: -webkit-linear-gradient(315deg, #404040, #1a1a1a);\r\n\t\t background: linear-gradient(135deg, #404040, #1a1a1a);\r\n\t\t position: absolute;\r\n\t\t width: 100%;\r\n\t\t height: 50px;\r\n\t\t top: 30px;\r\n\t\t left: 0;\r\n\t\t}\r\n\t\t.credit-card-box .number {\r\n\t\t position: absolute;\r\n\t\t margin: 0 auto;\r\n\t\t top: 103px;\r\n\t\t left: 19px;\r\n\t\t font-size: 30px;\r\n\t\t}\r\n\t\t.credit-card-box label {\r\n\t\t font-size: 10px;\r\n\t\t letter-spacing: 1px;\r\n\t\t text-shadow: none;\r\n\t\t text-transform: uppercase;\r\n\t\t font-weight: normal;\r\n\t\t opacity: 0.5;\r\n\t\t display: block;\r\n\t\t margin-bottom: 3px;\r\n\t\t}\r\n\t\t.credit-card-box .card-holder,\r\n\t\t.credit-card-box .card-expiration-date {\r\n\t\t position: absolute;\r\n\t\t margin: 0 auto;\r\n\t\t top: 180px;\r\n\t\t left: 19px;\r\n\t\t font-size: 22px;\r\n\t\t text-transform: capitalize;\r\n\t\t}\r\n\t\t.credit-card-box .card-expiration-date {\r\n\t\t text-align: right;\r\n\t\t left: auto;\r\n\t\t right: 20px;\r\n\t\t}\r\n\t\t.credit-card-box .ccv {\r\n\t\t height: 36px;\r\n\t\t background: #fff;\r\n\t\t width: 91%;\r\n\t\t border-radius: 5px;\r\n\t\t top: 110px;\r\n\t\t left: 0;\r\n\t\t right: 0;\r\n\t\t position: absolute;\r\n\t\t margin: 0 auto;\r\n\t\t color: #000;\r\n\t\t text-align: right;\r\n\t\t padding: 10px;\r\n\t\t}\r\n\t\t.credit-card-box .ccv label {\r\n\t\t margin: -25px 0 14px;\r\n\t\t color: #fff;\r\n\t\t}\r\n\r\n\t</style>\r\n</div>","import {NgModule, ModuleWithProviders} from '@angular/core';\r\nimport {CardDraw} from './card.component';\r\n\r\n@NgModule({\r\n imports: [CardDraw],\r\n exports: [CardDraw]\r\n})\r\nexport class CardModule {\r\n static forRoot(): ModuleWithProviders<CardModule> {\r\n return {\r\n ngModule: CardModule\r\n };\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAOa,QAAQ,CAAA;IACX,MAAM,GAAG,EAAE;IACX,IAAI,GAAG,EAAE;IACT,UAAU,GAAG,EAAE;IACf,GAAG,GAAG,EAAE;IACR,UAAU,GAAG,EAAE;IACf,MAAM,GAAG,EAAE;IACX,KAAK,GAAG,EAAE;IACV,MAAM,GAAG,KAAK;wGARX,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAR,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,QAAQ,qOCPrB,s4aAoYM,EAAA,MAAA,EAAA,CAAA,m/JAAA,CAAA,EAAA,CAAA;;4FD7XO,QAAQ,EAAA,UAAA,EAAA,CAAA;kBALpB,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,cAET,IAAI,EAAA,QAAA,EAAA,s4aAAA,EAAA;;sBAGf;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;;MERW,UAAU,CAAA;AACrB,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO;AACL,YAAA,QAAQ,EAAE;SACX;IACH;wGALW,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAAV,UAAU,EAAA,OAAA,EAAA,CAHX,QAAQ,CAAA,EAAA,OAAA,EAAA,CACR,QAAQ,CAAA,EAAA,CAAA;yGAEP,UAAU,EAAA,CAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ;AACnB,iBAAA;;;ACND;;AAEG;;"}
package/ng-package.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "$schema": "./node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "./dist/angular2-credit-card-draw",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- },
7
- "assets": [
8
- "README.MD"
9
- ]
10
- }
@@ -1,36 +0,0 @@
1
- import type {Meta, StoryObj} from '@storybook/angular-vite';
2
- import {CardDraw} from './card.component';
3
-
4
- const meta: Meta<CardDraw> = {
5
- title: 'Components/CardDraw',
6
- component: CardDraw,
7
- tags: ['autodocs'],
8
- args: {
9
- number: '1234 5678 9012 3456',
10
- name: 'Emma Watson',
11
- expiration: '12/29',
12
- ccv: '999',
13
- background: '#1a1f71',
14
- height: '250px',
15
- width: '400px',
16
- toggle: false
17
- },
18
- argTypes: {
19
- background: {control: 'color'},
20
- height: {control: 'text'},
21
- width: {control: 'text'},
22
- toggle: {control: 'boolean'}
23
- }
24
- };
25
-
26
- export default meta;
27
-
28
- type Story = StoryObj<CardDraw>;
29
-
30
- export const Front: Story = {};
31
-
32
- export const Back: Story = {
33
- args: {
34
- toggle: true
35
- }
36
- };
@@ -1,17 +0,0 @@
1
- import {Component, Input} from '@angular/core';
2
-
3
- @Component({
4
- selector: 'card-draw',
5
- templateUrl: './card.html',
6
- standalone: true
7
- })
8
- export class CardDraw {
9
- @Input() number = '';
10
- @Input() name = '';
11
- @Input() expiration = '';
12
- @Input() ccv = '';
13
- @Input() background = '';
14
- @Input() height = '';
15
- @Input() width = '';
16
- @Input() toggle = false;
17
- }