@skyux/indicators 7.21.3 → 7.22.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/documentation.json +3 -3
- package/package.json +5 -5
package/documentation.json
CHANGED
|
@@ -10284,7 +10284,7 @@
|
|
|
10284
10284
|
{
|
|
10285
10285
|
"fileName": "help-inline-demo.component.spec.ts",
|
|
10286
10286
|
"filePath": "/projects/indicators/documentation/code-examples/help-inline/basic/help-inline-demo.component.spec.ts",
|
|
10287
|
-
"rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { SkyHelpInlineHarness } from '@skyux/indicators/testing';\n\nimport { HelpInlineDemoComponent } from './help-inline-demo.component';\nimport { HelpInlineDemoModule } from './help-inline-demo.module';\n\ndescribe('Basic help inline',
|
|
10287
|
+
"rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { SkyHelpInlineHarness } from '@skyux/indicators/testing';\n\nimport { HelpInlineDemoComponent } from './help-inline-demo.component';\nimport { HelpInlineDemoModule } from './help-inline-demo.module';\n\ndescribe('Basic help inline', () => {\n async function setupTest(): Promise<{\n helpInlineHarness: SkyHelpInlineHarness;\n fixture: ComponentFixture<HelpInlineDemoComponent>;\n }> {\n const fixture = TestBed.createComponent(HelpInlineDemoComponent);\n const loader = TestbedHarnessEnvironment.loader(fixture);\n const helpInlineHarness = await loader.getHarness(\n SkyHelpInlineHarness.with({\n dataSkyId: 'help-inline-demo',\n })\n );\n\n return { helpInlineHarness, fixture };\n }\n\n beforeEach(() => {\n TestBed.configureTestingModule({\n imports: [HelpInlineDemoModule],\n });\n });\n\n it('should click the help inline button', async () => {\n const { helpInlineHarness, fixture } = await setupTest();\n fixture.detectChanges();\n\n const clickSpy = spyOn(fixture.componentInstance, 'onActionClick');\n await helpInlineHarness.click();\n expect(clickSpy).toHaveBeenCalled();\n });\n});\n"
|
|
10288
10288
|
},
|
|
10289
10289
|
{
|
|
10290
10290
|
"fileName": "help-inline-demo.component.ts",
|
|
@@ -10304,7 +10304,7 @@
|
|
|
10304
10304
|
{
|
|
10305
10305
|
"fileName": "icon-demo.component.spec.ts",
|
|
10306
10306
|
"filePath": "/projects/indicators/documentation/code-examples/icon/basic/icon-demo.component.spec.ts",
|
|
10307
|
-
"rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { SkyIconHarness } from '@skyux/indicators/testing';\n\nimport { IconDemoComponent } from './icon-demo.component';\nimport { IconDemoModule } from './icon-demo.module';\n\ndescribe('Basic icon',
|
|
10307
|
+
"rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { SkyIconHarness } from '@skyux/indicators/testing';\n\nimport { IconDemoComponent } from './icon-demo.component';\nimport { IconDemoModule } from './icon-demo.module';\n\ndescribe('Basic icon', () => {\n async function setupTest(): Promise<{\n iconHarness: SkyIconHarness;\n fixture: ComponentFixture<IconDemoComponent>;\n }> {\n const fixture = TestBed.createComponent(IconDemoComponent);\n const loader = TestbedHarnessEnvironment.loader(fixture);\n const iconHarness = await loader.getHarness(\n SkyIconHarness.with({\n dataSkyId: 'icon-demo',\n })\n );\n\n return { iconHarness, fixture };\n }\n\n beforeEach(() => {\n TestBed.configureTestingModule({\n imports: [IconDemoModule],\n });\n });\n\n it('should display the correct icon', async () => {\n const { iconHarness, fixture } = await setupTest();\n\n fixture.detectChanges();\n\n await expectAsync(iconHarness.getIconName()).toBeResolvedTo('calendar');\n await expectAsync(iconHarness.getIconType()).toBeResolvedTo('skyux');\n await expectAsync(iconHarness.getVariant()).toBeResolvedTo('solid');\n await expectAsync(iconHarness.getIconSize()).toBeResolvedTo('4x');\n await expectAsync(iconHarness.isFixedWidth()).toBeResolvedTo(true);\n });\n});\n"
|
|
10308
10308
|
},
|
|
10309
10309
|
{
|
|
10310
10310
|
"fileName": "icon-demo.component.ts",
|
|
@@ -10324,7 +10324,7 @@
|
|
|
10324
10324
|
{
|
|
10325
10325
|
"fileName": "icon-button-demo.component.spec.ts",
|
|
10326
10326
|
"filePath": "/projects/indicators/documentation/code-examples/icon/icon-button/icon-button-demo.component.spec.ts",
|
|
10327
|
-
"rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { SkyIconHarness } from '@skyux/indicators/testing';\n\nimport { IconDemoComponent } from './icon-button-demo.component';\nimport { IconDemoModule } from './icon-button-demo.module';\n\ndescribe('Icon button',
|
|
10327
|
+
"rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { SkyIconHarness } from '@skyux/indicators/testing';\n\nimport { IconDemoComponent } from './icon-button-demo.component';\nimport { IconDemoModule } from './icon-button-demo.module';\n\ndescribe('Icon button', () => {\n async function setupTest(options: { dataSkyId?: string }): Promise<{\n iconHarness: SkyIconHarness;\n fixture: ComponentFixture<IconDemoComponent>;\n }> {\n const fixture = TestBed.createComponent(IconDemoComponent);\n const loader = TestbedHarnessEnvironment.loader(fixture);\n const iconHarness = await loader.getHarness(\n SkyIconHarness.with({\n dataSkyId: options?.dataSkyId,\n })\n );\n\n return { iconHarness, fixture };\n }\n\n beforeEach(() => {\n TestBed.configureTestingModule({\n imports: [IconDemoModule],\n });\n });\n\n it('should display the icon in the text icon button', async () => {\n const { iconHarness, fixture } = await setupTest({\n dataSkyId: 'text-button-icon',\n });\n\n fixture.detectChanges();\n\n await expectAsync(iconHarness.getIconName()).toBeResolvedTo('save');\n });\n\n it('should display the icon in the icon only button', async () => {\n const { iconHarness, fixture } = await setupTest({\n dataSkyId: 'button-icon',\n });\n\n fixture.detectChanges();\n\n await expectAsync(iconHarness.getIconName()).toBeResolvedTo('edit');\n });\n});\n"
|
|
10328
10328
|
},
|
|
10329
10329
|
{
|
|
10330
10330
|
"fileName": "icon-button-demo.component.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/indicators",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.22.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@angular/common": "^14.2.11",
|
|
46
46
|
"@angular/core": "^14.2.11",
|
|
47
47
|
"@angular/platform-browser": "^14.2.11",
|
|
48
|
-
"@skyux-sdk/testing": "7.
|
|
49
|
-
"@skyux/core": "7.
|
|
50
|
-
"@skyux/i18n": "7.
|
|
51
|
-
"@skyux/theme": "7.
|
|
48
|
+
"@skyux-sdk/testing": "7.22.0",
|
|
49
|
+
"@skyux/core": "7.22.0",
|
|
50
|
+
"@skyux/i18n": "7.22.0",
|
|
51
|
+
"@skyux/theme": "7.22.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"tslib": "^2.3.1"
|