@aaamb/ngx-design-system 1.4.1 → 1.4.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 (108) hide show
  1. package/fesm2022/aaamb-ngx-design-system.mjs +4118 -0
  2. package/fesm2022/aaamb-ngx-design-system.mjs.map +1 -0
  3. package/package.json +14 -58
  4. package/styles/compiled.css +2 -0
  5. package/types/aaamb-ngx-design-system.d.ts +1149 -0
  6. package/.editorconfig +0 -17
  7. package/.nvmrc +0 -1
  8. package/.postcssrc.json +0 -5
  9. package/.storybook/main.ts +0 -20
  10. package/.storybook/preview.ts +0 -23
  11. package/.storybook/storybook.css +0 -1
  12. package/.storybook/tsconfig.json +0 -19
  13. package/.vscode/extensions.json +0 -4
  14. package/.vscode/launch.json +0 -20
  15. package/.vscode/tasks.json +0 -42
  16. package/CHANGELOG.md +0 -10
  17. package/LOCAL_DEVELOPMENT.md +0 -129
  18. package/angular.json +0 -74
  19. package/bitbucket-pipelines.yml +0 -41
  20. package/iac/bin/app.ts +0 -42
  21. package/iac/cdk.json +0 -82
  22. package/iac/lib/config/environments.ts +0 -19
  23. package/iac/lib/config/types.ts +0 -13
  24. package/iac/lib/stacks/certificate-stack.ts +0 -34
  25. package/iac/lib/stacks/frontend-stack.ts +0 -120
  26. package/iac/lib/stacks/index.ts +0 -2
  27. package/iac/package-lock.json +0 -726
  28. package/iac/package.json +0 -25
  29. package/iac/tsconfig.json +0 -24
  30. package/ng-package.json +0 -8
  31. package/src/components/button/button-green.stories.ts +0 -101
  32. package/src/components/button/button-text.stories.ts +0 -105
  33. package/src/components/button/button-white.stories.ts +0 -105
  34. package/src/components/button/button.component.stories.ts +0 -91
  35. package/src/components/button/button.component.ts +0 -93
  36. package/src/components/checkbox/checkbox.component.html +0 -30
  37. package/src/components/checkbox/checkbox.component.stories.ts +0 -183
  38. package/src/components/checkbox/checkbox.component.ts +0 -211
  39. package/src/components/datepicker-selector/datepicker-selector.component.html +0 -103
  40. package/src/components/datepicker-selector/datepicker-selector.component.stories.ts +0 -123
  41. package/src/components/datepicker-selector/datepicker-selector.component.ts +0 -337
  42. package/src/components/error-message/error-message.component.html +0 -3
  43. package/src/components/error-message/error-message.component.ts +0 -13
  44. package/src/components/filter-button/filter-button.component.html +0 -286
  45. package/src/components/filter-button/filter-button.component.stories.ts +0 -123
  46. package/src/components/filter-button/filter-button.component.ts +0 -582
  47. package/src/components/icon/icon.component.ts +0 -20
  48. package/src/components/icon/icon.html +0 -1424
  49. package/src/components/icon/icon.stories.ts +0 -49
  50. package/src/components/icon/icons-list.stories.ts +0 -42
  51. package/src/components/input/input.component.stories.ts +0 -101
  52. package/src/components/input/input.component.ts +0 -317
  53. package/src/components/input/input.html +0 -160
  54. package/src/components/input-datepicker/input-datepicker.component.ts +0 -356
  55. package/src/components/input-datepicker/input-datepicker.html +0 -69
  56. package/src/components/input-datepicker/input-datepicker.stories.ts +0 -99
  57. package/src/components/input-rangepicker/input-rangepicker.component.ts +0 -365
  58. package/src/components/input-rangepicker/input-rangepicker.html +0 -54
  59. package/src/components/input-rangepicker/input-rangepicker.stories.ts +0 -88
  60. package/src/components/input-weekpicker/input-weekpicker.component.ts +0 -417
  61. package/src/components/input-weekpicker/input-weekpicker.html +0 -54
  62. package/src/components/input-weekpicker/input-weekpicker.stories.ts +0 -103
  63. package/src/components/label/label.component.html +0 -20
  64. package/src/components/label/label.component.ts +0 -22
  65. package/src/components/modals/delicate-confirmation-modal/delicate-confirmation-modal.component.html +0 -32
  66. package/src/components/modals/delicate-confirmation-modal/delicate-confirmation-modal.component.stories.ts +0 -57
  67. package/src/components/modals/delicate-confirmation-modal/delicate-confirmation-modal.component.ts +0 -48
  68. package/src/components/modals/feedback-modal/feedback-modal.component.html +0 -118
  69. package/src/components/modals/feedback-modal/feedback-modal.component.stories.ts +0 -93
  70. package/src/components/modals/feedback-modal/feedback-modal.component.ts +0 -187
  71. package/src/components/modals/help-modal/help-modal.component.html +0 -32
  72. package/src/components/modals/help-modal/help-modal.component.stories.ts +0 -76
  73. package/src/components/modals/help-modal/help-modal.component.ts +0 -54
  74. package/src/components/modals/information-modal/information-modal.component.html +0 -24
  75. package/src/components/modals/information-modal/information-modal.component.stories.ts +0 -62
  76. package/src/components/modals/information-modal/information-modal.component.ts +0 -35
  77. package/src/components/modals/main-modal/main-modal.component.html +0 -85
  78. package/src/components/modals/main-modal/main-modal.component.stories.ts +0 -127
  79. package/src/components/modals/main-modal/main-modal.component.ts +0 -85
  80. package/src/components/modals/notification-modal/notification-modal.component.html +0 -22
  81. package/src/components/modals/notification-modal/notification-modal.component.stories.ts +0 -59
  82. package/src/components/modals/notification-modal/notification-modal.component.ts +0 -37
  83. package/src/components/selectors/multiple-selector/multiple-selector.component.html +0 -51
  84. package/src/components/selectors/multiple-selector/multiple-selector.component.stories.ts +0 -306
  85. package/src/components/selectors/multiple-selector/multiple-selector.component.ts +0 -308
  86. package/src/components/selectors/single-selector/single-selector.component.html +0 -46
  87. package/src/components/selectors/single-selector/single-selector.component.stories.ts +0 -294
  88. package/src/components/selectors/single-selector/single-selector.component.ts +0 -239
  89. package/src/components/side-nav/side-nav.component.stories.ts +0 -176
  90. package/src/components/side-nav/side-nav.component.ts +0 -325
  91. package/src/components/snackbar/snackbar.component.ts +0 -150
  92. package/src/components/snackbar/snackbar.html +0 -21
  93. package/src/components/snackbar/snackbar.stories.ts +0 -51
  94. package/src/components/state/state.component.ts +0 -30
  95. package/src/components/state/state.html +0 -13
  96. package/src/components/state/state.stories.ts +0 -74
  97. package/src/components/table/table.component.html +0 -466
  98. package/src/components/table/table.component.scss +0 -28
  99. package/src/components/table/table.component.stories.ts +0 -655
  100. package/src/components/table/table.component.ts +0 -475
  101. package/src/components/tabs/tabs.component.stories.ts +0 -114
  102. package/src/components/tabs/tabs.component.ts +0 -69
  103. package/src/core/types.ts +0 -494
  104. package/src/public-api.ts +0 -23
  105. package/tsconfig.json +0 -37
  106. package/tsconfig.lib.json +0 -17
  107. package/tsconfig.lib.prod.json +0 -9
  108. package/tsconfig.spec.json +0 -13
@@ -1,120 +0,0 @@
1
- import * as cdk from 'aws-cdk-lib';
2
- import * as acm from 'aws-cdk-lib/aws-certificatemanager';
3
- import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
4
- import * as origins from 'aws-cdk-lib/aws-cloudfront-origins';
5
- import * as iam from 'aws-cdk-lib/aws-iam';
6
- import * as route53 from 'aws-cdk-lib/aws-route53';
7
- import * as route53Targets from 'aws-cdk-lib/aws-route53-targets';
8
- import * as s3 from 'aws-cdk-lib/aws-s3';
9
- import { Construct } from 'constructs';
10
- import { EnvironmentConfig } from '../config/types';
11
-
12
- interface FrontendStackProps extends cdk.StackProps {
13
- envConfig: EnvironmentConfig;
14
- cloudFrontCertificateArn: string;
15
- }
16
-
17
- export class FrontendStack extends cdk.Stack {
18
- public readonly bucketName: string;
19
- public readonly distributionId: string;
20
- public readonly cicdUserName: string;
21
-
22
- constructor(scope: Construct, id: string, props: FrontendStackProps) {
23
- super(scope, id, props);
24
-
25
- const { envConfig, cloudFrontCertificateArn } = props;
26
-
27
- const hostedZone = route53.HostedZone.fromHostedZoneAttributes(this, 'HostedZone', {
28
- hostedZoneId: envConfig.hostedZoneId,
29
- zoneName: envConfig.hostedZoneName,
30
- });
31
-
32
- const certificate = acm.Certificate.fromCertificateArn(
33
- this,
34
- 'CloudFrontCertificate',
35
- cloudFrontCertificateArn
36
- );
37
-
38
- const bucket = new s3.Bucket(this, 'Bucket', {
39
- bucketName: envConfig.frontend.bucketName,
40
- blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
41
- versioned: true,
42
- encryption: s3.BucketEncryption.S3_MANAGED,
43
- removalPolicy: cdk.RemovalPolicy.DESTROY,
44
- autoDeleteObjects: true,
45
- });
46
-
47
- const oac = new cloudfront.S3OriginAccessControl(this, 'Oac', {
48
- originAccessControlName: 'design-system-oac',
49
- signing: cloudfront.Signing.SIGV4_ALWAYS,
50
- });
51
-
52
- const distribution = new cloudfront.Distribution(this, 'Distribution', {
53
- domainNames: [`${envConfig.frontend.recordName}.${envConfig.baseDomain}`],
54
- certificate,
55
- defaultBehavior: {
56
- origin: origins.S3BucketOrigin.withOriginAccessControl(bucket, {
57
- originAccessControl: oac,
58
- }),
59
- viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,
60
- allowedMethods: cloudfront.AllowedMethods.ALLOW_GET_HEAD_OPTIONS,
61
- cachedMethods: cloudfront.CachedMethods.CACHE_GET_HEAD_OPTIONS,
62
- compress: true,
63
- cachePolicy: cloudfront.CachePolicy.CACHING_OPTIMIZED,
64
- },
65
- defaultRootObject: 'index.html',
66
- enableIpv6: true,
67
- minimumProtocolVersion: cloudfront.SecurityPolicyProtocol.TLS_V1_2_2021,
68
- httpVersion: cloudfront.HttpVersion.HTTP2_AND_3,
69
- priceClass: cloudfront.PriceClass.PRICE_CLASS_100,
70
- });
71
-
72
- new route53.ARecord(this, 'AppRecord', {
73
- zone: hostedZone,
74
- recordName: envConfig.frontend.recordName,
75
- target: route53.RecordTarget.fromAlias(new route53Targets.CloudFrontTarget(distribution)),
76
- });
77
-
78
- const cicdUser = new iam.User(this, 'CicdUser', {
79
- userName: 'design-system-cicd',
80
- });
81
-
82
- cicdUser.addToPolicy(
83
- new iam.PolicyStatement({
84
- actions: ['s3:PutObject', 's3:GetObject', 's3:DeleteObject', 's3:ListBucket', 's3:GetBucketLocation'],
85
- resources: [bucket.bucketArn, `${bucket.bucketArn}/*`],
86
- })
87
- );
88
-
89
- cicdUser.addToPolicy(
90
- new iam.PolicyStatement({
91
- actions: ['cloudfront:CreateInvalidation', 'cloudfront:GetInvalidation', 'cloudfront:ListInvalidations'],
92
- resources: [`arn:aws:cloudfront::${this.account}:distribution/${distribution.distributionId}`],
93
- })
94
- );
95
-
96
- this.bucketName = bucket.bucketName;
97
- this.distributionId = distribution.distributionId;
98
- this.cicdUserName = cicdUser.userName;
99
-
100
- new cdk.CfnOutput(this, 'AppUrl', {
101
- value: `https://${envConfig.frontend.recordName}.${envConfig.baseDomain}`,
102
- exportName: 'design-system-app-url',
103
- });
104
-
105
- new cdk.CfnOutput(this, 'FrontendBucketName', {
106
- value: this.bucketName,
107
- exportName: 'design-system-frontend-bucket',
108
- });
109
-
110
- new cdk.CfnOutput(this, 'FrontendDistributionId', {
111
- value: this.distributionId,
112
- exportName: 'design-system-frontend-distribution-id',
113
- });
114
-
115
- new cdk.CfnOutput(this, 'FrontendCicdUserName', {
116
- value: this.cicdUserName,
117
- exportName: 'design-system-frontend-cicd-user',
118
- });
119
- }
120
- }
@@ -1,2 +0,0 @@
1
- export { CertificateStack } from './certificate-stack';
2
- export { FrontendStack } from './frontend-stack';