angular2-credit-card-draw 1.0.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.ts +12 -0
- package/.storybook/preview.ts +15 -0
- package/.storybook/tsconfig.json +7 -0
- package/.travis.yml +6 -4
- package/README.MD +132 -87
- package/dist/angular2-credit-card-draw/README.MD +132 -0
- package/dist/angular2-credit-card-draw/fesm2022/angular2-credit-card-draw.mjs +60 -0
- package/dist/angular2-credit-card-draw/fesm2022/angular2-credit-card-draw.mjs.map +1 -0
- package/dist/angular2-credit-card-draw/types/angular2-credit-card-draw.d.ts +24 -0
- package/ng-package.json +10 -0
- package/package.json +54 -47
- package/src/card.component.stories.ts +36 -0
- package/src/card.component.ts +16 -21
- package/src/card.html +388 -388
- package/src/card.module.ts +14 -0
- package/src/public-api.ts +2 -0
- package/storybook-static/assets/Color-6AOWCN3U-BHKwsHJb.js +1 -0
- package/storybook-static/assets/DocsRenderer-JROSPFPF-CPN4diXU.js +290 -0
- package/storybook-static/assets/WithTooltip-CDUNV5IS-CxkNVblN.js +9 -0
- package/storybook-static/assets/angular-platform-BykChHPp.js +7 -0
- package/storybook-static/assets/card.component.stories-Cbn8dXwJ.js +393 -0
- package/storybook-static/assets/chunk-242VQQM5-Jx3JgJO8.js +1 -0
- package/storybook-static/assets/chunk-DRQKCCAG-DvhnS67P.js +1 -0
- package/storybook-static/assets/chunk-QQBDHPVZ-wyKC71kO.js +1 -0
- package/storybook-static/assets/chunk-W22LQPXL-I4qw3Lnf.js +18 -0
- package/storybook-static/assets/components-fboz0Wwr.js +1 -0
- package/storybook-static/assets/formatter-L2YTDE3Q-Bcc5sJgv.js +1 -0
- package/storybook-static/assets/iframe-C2YkrQlr.js +1 -0
- package/storybook-static/assets/iframe-D-RwILkF.js +1099 -0
- package/storybook-static/assets/preload-helper-C313MjYS.js +1 -0
- package/storybook-static/assets/react-BxCz-S_c.js +1 -0
- package/storybook-static/assets/react-DL9pMoMl.js +1 -0
- package/storybook-static/assets/rolldown-runtime-vtgMY1y5.js +1 -0
- package/storybook-static/assets/syntaxhighlighter-4REYKNEV-Donq5IPh.js +6 -0
- package/storybook-static/assets/theming-CXmlqL_e.js +39 -0
- package/storybook-static/favicon-wrapper.svg +46 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +680 -0
- package/storybook-static/index.html +149 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/docs-1/manager-bundle.js +18 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +632 -0
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-runtime.js +79237 -0
- package/storybook-static/sb-manager/globals.js +24 -0
- package/storybook-static/sb-manager/manager-stores.js +23 -0
- package/storybook-static/sb-manager/runtime.js +29276 -0
- package/storybook-static/services/core/docgen/components-carddraw.json +151 -0
- package/storybook-static/services/core/story-docs/components-carddraw.json +21 -0
- package/storybook-static/vite-inject-mocker-entry.js +2 -0
- package/tsconfig.json +15 -20
- package/tsconfig.lib.json +15 -0
- package/.npmignore +0 -24
- package/dist/card.component.ts +0 -22
- package/dist/dist/card.component.d.ts +0 -11
- package/dist/dist/card.component.js +0 -57
- package/dist/dist/card.component.js.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -40
- package/dist/index.js.map +0 -1
- package/gulpfile.js +0 -8
- package/index.ts +0 -24
- package/tslint.json +0 -110
- package/typings/globals/angular-protractor/index.d.ts +0 -1844
- package/typings/globals/angular-protractor/typings.json +0 -8
- package/typings/globals/es6-shim/index.d.ts +0 -665
- package/typings/globals/es6-shim/typings.json +0 -8
- package/typings/globals/jasmine/index.d.ts +0 -499
- package/typings/globals/jasmine/typings.json +0 -8
- package/typings/globals/selenium-webdriver/index.d.ts +0 -5390
- package/typings/globals/selenium-webdriver/typings.json +0 -8
- package/typings/index.d.ts +0 -4
- package/typings.json +0 -10
package/package.json
CHANGED
|
@@ -1,47 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "angular2-credit-card-draw",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"@angular/
|
|
35
|
-
"@angular/
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "angular2-credit-card-draw",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "A customizable credit card component for Angular",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/dennisdoc/angular2-credit-card-draw.git"
|
|
8
|
+
},
|
|
9
|
+
"author": {
|
|
10
|
+
"name": "Dennis Oliveira Cremasco",
|
|
11
|
+
"email": "dennisdoc@hotmail.com"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"angular",
|
|
15
|
+
"angular2"
|
|
16
|
+
],
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/dennisdoc/angular2-credit-card-draw/issues"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "ng-packagr -p ng-package.json",
|
|
23
|
+
"pack": "npm run build && npm pack ./dist/angular2-credit-card-draw",
|
|
24
|
+
"storybook": "storybook dev -p 6006",
|
|
25
|
+
"build-storybook": "storybook build"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@angular/common": "^21.0.0",
|
|
29
|
+
"@angular/core": "^21.0.0",
|
|
30
|
+
"rxjs": "^7.4.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@angular/common": "^21.0.0",
|
|
34
|
+
"@angular/animations": "^21.0.0",
|
|
35
|
+
"@angular/build": "^21.0.0",
|
|
36
|
+
"@angular/cli": "^21.0.0",
|
|
37
|
+
"@angular/compiler": "^21.0.0",
|
|
38
|
+
"@angular/compiler-cli": "^21.0.0",
|
|
39
|
+
"@angular/core": "^21.0.0",
|
|
40
|
+
"@angular/platform-browser": "^21.0.0",
|
|
41
|
+
"@analogjs/vite-plugin-angular": "^2.9.1",
|
|
42
|
+
"@storybook/addon-docs": "^10.6.3",
|
|
43
|
+
"@storybook/angular-vite": "^10.6.3",
|
|
44
|
+
"storybook": "^10.6.3",
|
|
45
|
+
"vite": "^8.0.0",
|
|
46
|
+
"ng-packagr": "^21.0.0",
|
|
47
|
+
"rxjs": "^7.4.0",
|
|
48
|
+
"tslib": "^2.3.0",
|
|
49
|
+
"typescript": "~5.9.2"
|
|
50
|
+
},
|
|
51
|
+
"engines": {
|
|
52
|
+
"node": "^20.19.0 || ^22.12.0 || >=24.0.0"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
};
|
package/src/card.component.ts
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'card-draw',
|
|
5
|
-
templateUrl:'./card.html'
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@Input()
|
|
10
|
-
@Input()
|
|
11
|
-
@Input()
|
|
12
|
-
@Input()
|
|
13
|
-
@Input()
|
|
14
|
-
@Input()
|
|
15
|
-
@Input()
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
constructor() {
|
|
20
|
-
|
|
21
|
-
}
|
|
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;
|
|
22
17
|
}
|