Skip to content

Commit d639d21

Browse files
Merge pull request #99 from GSA/ng15-uswds
Ng15 uswds
2 parents 474aa1c + 38e2f77 commit d639d21

File tree

11 files changed

+1777
-954
lines changed

11 files changed

+1777
-954
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
build:
88
working_directory: ~/project/ngx-uswds
99
docker:
10-
- image: circleci/node:14.18.2-bullseye-browsers
10+
- image: circleci/node:16.13-browsers
1111
steps:
1212
- checkout
1313
- run: npm install

angular.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@
172172
"test": {
173173
"builder": "@angular-devkit/build-angular:karma",
174174
"options": {
175-
"main": "projects/uswds-components/src/test.ts",
175+
"polyfills": [
176+
"zone.js",
177+
"zone.js/testing"
178+
],
176179
"tsConfig": "projects/uswds-components/tsconfig.spec.json",
177180
"karmaConfig": "projects/uswds-components/karma.conf.js"
178181
}

documentation.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37605,7 +37605,7 @@
3760537605
"assetsDirs": [],
3760637606
"styleUrlsData": [
3760737607
{
37608-
"data": "$theme-step-indicator-segment-color-pending: #dfe1e2;\n$theme-step-indicator-segment-color-current: #005ea2;\n\n@for $i from 1 through 8 {\n $scale-percentage: calc(($i * 100) / 2);\n .usa-step-indicator__segment.scale-percent-#{$scale-percentage} {\n max-width: 15rem * calc($scale-percentage / 100);\n flex-grow: calc($scale-percentage / 100);\n }\n}\n\n/** Mixin to allow partial step completion */\n@mixin gradient($color, $fill-percentage, $color-remaining) {\n background: linear-gradient(to right, $color $fill-percentage, $color-remaining $fill-percentage);\n}\n\n/** Define styles for partial step completion in multiples of 10 */\n@for $i from 0 through 10 {\n .fill-#{$i * 10}.usa-step-indicator__segment--current:after {\n @include gradient($theme-step-indicator-segment-color-current, $i * 10%, $theme-step-indicator-segment-color-pending);\n }\n}\n\n/** Define styles for partial step completion in multiples of 33 */\n@for $i from 1 through 3 {\n .fill-#{$i * 33}.usa-step-indicator__segment--current:after {\n @include gradient($theme-step-indicator-segment-color-current, $i * 33%, $theme-step-indicator-segment-color-pending);\n }\n}\n\n/** Manually add partial step completion for 25% and 75% */\n.fill-25.usa-step-indicator__segment--current:after {\n @include gradient($theme-step-indicator-segment-color-current, 25%, $theme-step-indicator-segment-color-pending);\n}\n\n.fill-75.usa-step-indicator__segment--current:after {\n @include gradient($theme-step-indicator-segment-color-current, 75%, $theme-step-indicator-segment-color-pending);\n}\n\n/** \n Add css to hide counter if step label is not defined. Normally used to indicate last step in\n step indicator with counter variation\n*/\n.usa-step-indicator__segment--no-counter:before {\n content: '';\n box-shadow: inset 0 0 0 0.25rem #f5f5f0, 0 0 0 0.25rem #fff !important;\n}\n\n.usa-step-indicator__segment:before {\n box-shadow: inset 0 0 0 0.25rem #f5f5f0, 0 0 0 0.25rem #fff !important;\n}\n",
37608+
"data": "$theme-step-indicator-segment-color-pending: #dfe1e2;\n$theme-step-indicator-segment-color-current: #005ea2;\n\n@for $i from 1 through 8 {\n $scale-percentage: calc(($i * 100) / 2);\n\n .usa-step-indicator__segment.scale-percent-#{$scale-percentage} {\n max-width: 15rem * calc($scale-percentage / 100);\n flex-grow: calc($scale-percentage / 100);\n }\n}\n\n/** Mixin to allow partial step completion */\n@mixin gradient($color, $fill-percentage, $color-remaining) {\n background: linear-gradient(to right, $color $fill-percentage, $color-remaining $fill-percentage);\n}\n\n/** Define styles for partial step completion in multiples of 10 */\n@for $i from 0 through 10 {\n .fill-#{$i * 10}.usa-step-indicator__segment--current:after {\n @include gradient($theme-step-indicator-segment-color-current, $i * 10%, $theme-step-indicator-segment-color-pending);\n }\n}\n\n/** Define styles for partial step completion in multiples of 33 */\n@for $i from 1 through 3 {\n .fill-#{$i * 33}.usa-step-indicator__segment--current:after {\n @include gradient($theme-step-indicator-segment-color-current, $i * 33%, $theme-step-indicator-segment-color-pending);\n }\n}\n\n/** Manually add partial step completion for 25% and 75% */\n.fill-25.usa-step-indicator__segment--current:after {\n @include gradient($theme-step-indicator-segment-color-current, 25%, $theme-step-indicator-segment-color-pending);\n}\n\n.fill-75.usa-step-indicator__segment--current:after {\n @include gradient($theme-step-indicator-segment-color-current, 75%, $theme-step-indicator-segment-color-pending);\n}\n\n/** \n Add css to hide counter if step label is not defined. Normally used to indicate last step in\n step indicator with counter variation\n*/\n.usa-step-indicator__segment--no-counter:before {\n content: '';\n box-shadow: inset 0 0 0 0.25rem #f5f5f0, 0 0 0 0.25rem #ffff !important;\n}\n\n.usa-step-indicator__segment:before {\n box-shadow: inset 0 0 0 0.25rem #f5f5f0, 0 0 0 0.25rem #ffff !important;\n}\n\n.usa-step-indicator__segment--current:before {\n box-shadow: inset 0 0 0 0.25rem #2672de, 0 0 0 0.25rem #ffff !important;\n}\n\n.usa-step-indicator__segment--complete:before {\n box-shadow: inset 0 0 0 0.25rem #1a4480, 0 0 0 0.25rem #ffff !important;\n}\n",
3760937609
"styleUrl": "./step-indicator.component.scss"
3761037610
}
3761137611
],
@@ -41423,13 +41423,13 @@
4142341423
},
4142441424
{
4142541425
"name": "AppRoutingModule",
41426-
"id": "module-AppRoutingModule-2fb4c3b3b2486bc9a26ac1cdc09fcd82e2611e9a999341d44cf6640c86098e22458205a723d07da9da5125b46fb2fb0d0edbc61921cdf0270484c546089b5eca",
41426+
"id": "module-AppRoutingModule-b60b6ae6b4029dfc32b75081436803722daf56db22fb5bec55025c913ead2d3f5d0317dfd7e5443fc1209a31e10d83934b8e3c370b997467aee5b6a71dfcb9cb",
4142741427
"description": "",
4142841428
"deprecationMessage": "",
4142941429
"deprecated": false,
4143041430
"file": "src/app/app.routing.module.ts",
4143141431
"methods": [],
41432-
"sourceCode": "import { CommonModule } from \"@angular/common\";\nimport { NgModule } from \"@angular/core\";\nimport { RouterModule, Routes } from \"@angular/router\";\nimport { HomeComponent } from \"./home/home.component\";\nimport { HomeModule } from \"./home/home.module\";\n\nconst routes: Routes = [\n {\n path: '',\n redirectTo: 'home',\n pathMatch: 'full'\n },\n {\n path: 'home',\n component: HomeComponent,\n },\n]\n\n\n@NgModule({\n imports: [\n CommonModule,\n HomeModule,\n RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' }),\n ],\n exports: [\n RouterModule,\n ]\n})\nexport class AppRoutingModule { }\n",
41432+
"sourceCode": "import { CommonModule } from \"@angular/common\";\nimport { NgModule } from \"@angular/core\";\nimport { RouterModule, Routes } from \"@angular/router\";\nimport { HomeComponent } from \"./home/home.component\";\nimport { HomeModule } from \"./home/home.module\";\n\nconst routes: Routes = [\n {\n path: '',\n redirectTo: 'home',\n pathMatch: 'full'\n },\n {\n path: 'home',\n component: HomeComponent,\n },\n]\n\n\n@NgModule({\n imports: [\n CommonModule,\n HomeModule,\n RouterModule.forRoot(routes, {}),\n ],\n exports: [\n RouterModule,\n ]\n})\nexport class AppRoutingModule { }\n",
4143341433
"children": [
4143441434
{
4143541435
"type": "providers",

0 commit comments

Comments
 (0)