@skyux/indicators 7.0.0-beta.10 → 7.0.0-beta.11
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 +25 -5
- package/package.json +5 -5
package/documentation.json
CHANGED
|
@@ -8619,7 +8619,7 @@
|
|
|
8619
8619
|
{
|
|
8620
8620
|
"fileName": "key-info-demo.component.spec.ts",
|
|
8621
8621
|
"filePath": "/projects/indicators/documentation/code-examples/key-info/basic/key-info-demo.component.spec.ts",
|
|
8622
|
-
"rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { TestBed } from '@angular/core/testing';\nimport { SkyKeyInfoHarness } from '@skyux/indicators/testing';\n\nimport { KeyInfoDemoComponent } from './key-info-demo.component';\nimport { KeyInfoDemoModule } from './key-info-demo.module';\n\ndescribe('Basic key info', () => {\n async function setupTest(options?: { value?: number }) {\n const fixture = TestBed.createComponent(KeyInfoDemoComponent);\n\n if (options?.value !== undefined) {\n fixture.componentInstance.value = options.value;\n }\n\n const loader = TestbedHarnessEnvironment.loader(fixture);\n\n const keyInfoHarness = await loader.getHarness(\n SkyKeyInfoHarness.with({ dataSkyId: 'key-info-demo' })\n );\n\n return { keyInfoHarness, fixture };\n }\n\n beforeEach(() => {\n TestBed.configureTestingModule({\n imports: [KeyInfoDemoModule],\n });\n });\n\n it('should display a vertical key info', async () => {\n const { keyInfoHarness } = await setupTest({ value: 101 });\n\n await expectAsync(keyInfoHarness.getLayout()).toBeResolvedTo('vertical');\n await expectAsync(keyInfoHarness.getValueText()).toBeResolvedTo('101');\n await expectAsync(keyInfoHarness.getLabelText()).toBeResolvedTo(\n 'New members'\n );\n });\n\n it('should display a horizontal key info', async () => {\n const { keyInfoHarness } = await setupTest({ value: 50 });\n\n await expectAsync(keyInfoHarness.getLayout()).toBeResolvedTo('horizontal');\n await expectAsync(keyInfoHarness.getValueText()).toBeResolvedTo('50');\n await expectAsync(keyInfoHarness.getLabelText()).toBeResolvedTo(\n 'New members'\n );\n });\n});\n"
|
|
8622
|
+
"rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { SkyKeyInfoHarness } from '@skyux/indicators/testing';\n\nimport { KeyInfoDemoComponent } from './key-info-demo.component';\nimport { KeyInfoDemoModule } from './key-info-demo.module';\n\ndescribe('Basic key info', () => {\n async function setupTest(options?: { value?: number }): Promise<{\n keyInfoHarness: SkyKeyInfoHarness;\n fixture: ComponentFixture<KeyInfoDemoComponent>;\n }> {\n const fixture = TestBed.createComponent(KeyInfoDemoComponent);\n\n if (options?.value !== undefined) {\n fixture.componentInstance.value = options.value;\n }\n\n const loader = TestbedHarnessEnvironment.loader(fixture);\n\n const keyInfoHarness = await loader.getHarness(\n SkyKeyInfoHarness.with({ dataSkyId: 'key-info-demo' })\n );\n\n return { keyInfoHarness, fixture };\n }\n\n beforeEach(() => {\n TestBed.configureTestingModule({\n imports: [KeyInfoDemoModule],\n });\n });\n\n it('should display a vertical key info', async () => {\n const { keyInfoHarness } = await setupTest({ value: 101 });\n\n await expectAsync(keyInfoHarness.getLayout()).toBeResolvedTo('vertical');\n await expectAsync(keyInfoHarness.getValueText()).toBeResolvedTo('101');\n await expectAsync(keyInfoHarness.getLabelText()).toBeResolvedTo(\n 'New members'\n );\n });\n\n it('should display a horizontal key info', async () => {\n const { keyInfoHarness } = await setupTest({ value: 50 });\n\n await expectAsync(keyInfoHarness.getLayout()).toBeResolvedTo('horizontal');\n await expectAsync(keyInfoHarness.getValueText()).toBeResolvedTo('50');\n await expectAsync(keyInfoHarness.getLabelText()).toBeResolvedTo(\n 'New members'\n );\n });\n});\n"
|
|
8623
8623
|
},
|
|
8624
8624
|
{
|
|
8625
8625
|
"fileName": "key-info-demo.component.ts",
|
|
@@ -8634,12 +8634,17 @@
|
|
|
8634
8634
|
{
|
|
8635
8635
|
"fileName": "key-info-demo.component.html",
|
|
8636
8636
|
"filePath": "/projects/indicators/documentation/code-examples/key-info/inline-help/key-info-demo.component.html",
|
|
8637
|
-
"rawContents": "<sky-key-info [layout]=\"layout\">\n <sky-key-info-value>
|
|
8637
|
+
"rawContents": "<sky-key-info [layout]=\"layout\" data-sky-id=\"key-info-demo\">\n <sky-key-info-value>{{ value }}</sky-key-info-value>\n <sky-key-info-label>New members</sky-key-info-label>\n <sky-help-inline\n class=\"sky-control-help\"\n (actionClick)=\"onActionClick()\"\n ></sky-help-inline>\n</sky-key-info>\n"
|
|
8638
|
+
},
|
|
8639
|
+
{
|
|
8640
|
+
"fileName": "key-info-demo.component.spec.ts",
|
|
8641
|
+
"filePath": "/projects/indicators/documentation/code-examples/key-info/inline-help/key-info-demo.component.spec.ts",
|
|
8642
|
+
"rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { SkyKeyInfoHarness } from '@skyux/indicators/testing';\n\nimport { KeyInfoDemoComponent } from './key-info-demo.component';\nimport { KeyInfoDemoModule } from './key-info-demo.module';\n\ndescribe('Basic key info', () => {\n async function setupTest(options?: { value?: number }): Promise<{\n keyInfoHarness: SkyKeyInfoHarness;\n fixture: ComponentFixture<KeyInfoDemoComponent>;\n }> {\n const fixture = TestBed.createComponent(KeyInfoDemoComponent);\n\n if (options?.value !== undefined) {\n fixture.componentInstance.value = options.value;\n }\n\n const loader = TestbedHarnessEnvironment.loader(fixture);\n\n const keyInfoHarness = await loader.getHarness(\n SkyKeyInfoHarness.with({ dataSkyId: 'key-info-demo' })\n );\n\n return { keyInfoHarness, fixture };\n }\n\n beforeEach(() => {\n TestBed.configureTestingModule({\n imports: [KeyInfoDemoModule],\n });\n });\n\n it('should display a vertical key info', async () => {\n const { keyInfoHarness } = await setupTest({ value: 101 });\n\n await expectAsync(keyInfoHarness.getLayout()).toBeResolvedTo('vertical');\n await expectAsync(keyInfoHarness.getValueText()).toBeResolvedTo('101');\n await expectAsync(keyInfoHarness.getLabelText()).toBeResolvedTo(\n 'New members'\n );\n });\n\n it('should display a horizontal key info', async () => {\n const { keyInfoHarness } = await setupTest({ value: 50 });\n\n await expectAsync(keyInfoHarness.getLayout()).toBeResolvedTo('horizontal');\n await expectAsync(keyInfoHarness.getValueText()).toBeResolvedTo('50');\n await expectAsync(keyInfoHarness.getLabelText()).toBeResolvedTo(\n 'New members'\n );\n });\n});\n"
|
|
8638
8643
|
},
|
|
8639
8644
|
{
|
|
8640
8645
|
"fileName": "key-info-demo.component.ts",
|
|
8641
8646
|
"filePath": "/projects/indicators/documentation/code-examples/key-info/inline-help/key-info-demo.component.ts",
|
|
8642
|
-
"rawContents": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-key-info-demo',\n templateUrl: './key-info-demo.component.html',\n})\nexport class KeyInfoDemoComponent {\n public layout = 'vertical';\n}\n"
|
|
8647
|
+
"rawContents": "import { Component, Input } from '@angular/core';\nimport { SkyKeyInfoLayoutType } from '@skyux/indicators';\n\n@Component({\n selector: 'app-key-info-demo',\n templateUrl: './key-info-demo.component.html',\n})\nexport class KeyInfoDemoComponent {\n @Input()\n public set value(value: number | undefined) {\n this.#_value = value;\n this.layout = this.#_value >= 100 ? 'vertical' : 'horizontal';\n }\n\n public get value(): number {\n return this.#_value;\n }\n\n public layout: SkyKeyInfoLayoutType = 'vertical';\n\n #_value: number | undefined = 575;\n\n public onActionClick(): void {\n alert('Help inline button clicked!');\n }\n}\n"
|
|
8643
8648
|
},
|
|
8644
8649
|
{
|
|
8645
8650
|
"fileName": "key-info-demo.module.ts",
|
|
@@ -8669,18 +8674,33 @@
|
|
|
8669
8674
|
{
|
|
8670
8675
|
"fileName": "status-indicator-demo.component.html",
|
|
8671
8676
|
"filePath": "/projects/indicators/documentation/code-examples/status-indicator/basic/status-indicator-demo.component.html",
|
|
8672
|
-
"rawContents": "<sky-status-indicator descriptionType=\"error\" indicatorType=\"danger\">\n Danger status indicator\n</sky-status-indicator>\n\n<sky-status-indicator descriptionType=\"important-info\" indicatorType=\"info\">\n Info status indicator\n</sky-status-indicator>\n\n<sky-status-indicator descriptionType=\"completed\" indicatorType=\"success\">\n Success status indicator\n</sky-status-indicator>\n\n<sky-status-indicator descriptionType=\"warning\" indicatorType=\"warning\">\n Warning status indicator\n</sky-status-indicator>\n\n<sky-status-indicator\n descriptionType=\"custom\"\n indicatorType=\"warning\"\n customDescription=\"Custom warning\"\n>\n Warning status indicator with custom screen reader description\n</sky-status-indicator>\n\n<sky-status-indicator descriptionType=\"error\" indicatorType=\"danger\">\n Status indicator with help\n <sky-help-inline
|
|
8677
|
+
"rawContents": "<sky-status-indicator descriptionType=\"error\" indicatorType=\"danger\">\n Danger status indicator\n</sky-status-indicator>\n\n<sky-status-indicator descriptionType=\"important-info\" indicatorType=\"info\">\n Info status indicator\n</sky-status-indicator>\n\n<sky-status-indicator descriptionType=\"completed\" indicatorType=\"success\">\n Success status indicator\n</sky-status-indicator>\n\n<sky-status-indicator descriptionType=\"warning\" indicatorType=\"warning\">\n Warning status indicator\n</sky-status-indicator>\n\n<sky-status-indicator\n descriptionType=\"custom\"\n indicatorType=\"warning\"\n customDescription=\"Custom warning\"\n>\n Warning status indicator with custom screen reader description\n</sky-status-indicator>\n\n<sky-status-indicator descriptionType=\"error\" indicatorType=\"danger\">\n Status indicator with help\n <sky-help-inline\n class=\"sky-control-help\"\n (actionClick)=\"onActionClick()\"\n ></sky-help-inline>\n</sky-status-indicator>\n"
|
|
8673
8678
|
},
|
|
8674
8679
|
{
|
|
8675
8680
|
"fileName": "status-indicator-demo.component.ts",
|
|
8676
8681
|
"filePath": "/projects/indicators/documentation/code-examples/status-indicator/basic/status-indicator-demo.component.ts",
|
|
8677
|
-
"rawContents": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-status-indicator-demo',\n templateUrl: './status-indicator-demo.component.html',\n})\nexport class StatusIndicatorDemoComponent {}\n"
|
|
8682
|
+
"rawContents": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-status-indicator-demo',\n templateUrl: './status-indicator-demo.component.html',\n})\nexport class StatusIndicatorDemoComponent {\n public onActionClick(): void {\n alert('Help inline button clicked!');\n }\n}\n"
|
|
8678
8683
|
},
|
|
8679
8684
|
{
|
|
8680
8685
|
"fileName": "status-indicator-demo.module.ts",
|
|
8681
8686
|
"filePath": "/projects/indicators/documentation/code-examples/status-indicator/basic/status-indicator-demo.module.ts",
|
|
8682
8687
|
"rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport {\n SkyHelpInlineModule,\n SkyStatusIndicatorModule,\n} from '@skyux/indicators';\n\nimport { StatusIndicatorDemoComponent } from './status-indicator-demo.component';\n\n@NgModule({\n imports: [CommonModule, SkyHelpInlineModule, SkyStatusIndicatorModule],\n declarations: [StatusIndicatorDemoComponent],\n exports: [StatusIndicatorDemoComponent],\n})\nexport class StatusIndicatorDemoModule {}\n"
|
|
8683
8688
|
},
|
|
8689
|
+
{
|
|
8690
|
+
"fileName": "status-indicator-demo.component.html",
|
|
8691
|
+
"filePath": "/projects/indicators/documentation/code-examples/status-indicator/inline-help/status-indicator-demo.component.html",
|
|
8692
|
+
"rawContents": "<sky-status-indicator descriptionType=\"error\" indicatorType=\"danger\">\n Danger status indicator\n <sky-help-inline\n class=\"sky-control-help\"\n (actionClick)=\"onActionClick()\"\n ></sky-help-inline>\n</sky-status-indicator>\n\n<sky-status-indicator descriptionType=\"important-info\" indicatorType=\"info\">\n Info status indicator\n <sky-help-inline\n class=\"sky-control-help\"\n (actionClick)=\"onActionClick()\"\n ></sky-help-inline>\n</sky-status-indicator>\n\n<sky-status-indicator descriptionType=\"completed\" indicatorType=\"success\">\n Success status indicator\n <sky-help-inline\n class=\"sky-control-help\"\n (actionClick)=\"onActionClick()\"\n ></sky-help-inline>\n</sky-status-indicator>\n\n<sky-status-indicator descriptionType=\"warning\" indicatorType=\"warning\">\n Warning status indicator\n <sky-help-inline\n class=\"sky-control-help\"\n (actionClick)=\"onActionClick()\"\n ></sky-help-inline>\n</sky-status-indicator>\n\n<sky-status-indicator\n descriptionType=\"custom\"\n indicatorType=\"warning\"\n customDescription=\"Custom warning\"\n>\n Warning status indicator with custom screen reader description\n <sky-help-inline\n class=\"sky-control-help\"\n (actionClick)=\"onActionClick()\"\n ></sky-help-inline>\n</sky-status-indicator>\n"
|
|
8693
|
+
},
|
|
8694
|
+
{
|
|
8695
|
+
"fileName": "status-indicator-demo.component.ts",
|
|
8696
|
+
"filePath": "/projects/indicators/documentation/code-examples/status-indicator/inline-help/status-indicator-demo.component.ts",
|
|
8697
|
+
"rawContents": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-status-indicator-demo',\n templateUrl: './status-indicator-demo.component.html',\n})\nexport class StatusIndicatorDemoComponent {\n public onActionClick(): void {\n alert('Help inline button clicked!');\n }\n}\n"
|
|
8698
|
+
},
|
|
8699
|
+
{
|
|
8700
|
+
"fileName": "status-indicator-demo.module.ts",
|
|
8701
|
+
"filePath": "/projects/indicators/documentation/code-examples/status-indicator/inline-help/status-indicator-demo.module.ts",
|
|
8702
|
+
"rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport {\n SkyHelpInlineModule,\n SkyStatusIndicatorModule,\n} from '@skyux/indicators';\n\nimport { StatusIndicatorDemoComponent } from './status-indicator-demo.component';\n\n@NgModule({\n imports: [CommonModule, SkyHelpInlineModule, SkyStatusIndicatorModule],\n declarations: [StatusIndicatorDemoComponent],\n exports: [StatusIndicatorDemoComponent],\n})\nexport class StatusIndicatorDemoModule {}\n"
|
|
8703
|
+
},
|
|
8684
8704
|
{
|
|
8685
8705
|
"fileName": "text-highlight-demo.component.html",
|
|
8686
8706
|
"filePath": "/projects/indicators/documentation/code-examples/text-highlight/basic/text-highlight-demo.component.html",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/indicators",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.11",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@angular/common": "^14.2.0",
|
|
46
46
|
"@angular/core": "^14.2.0",
|
|
47
47
|
"@angular/platform-browser": "^14.2.0",
|
|
48
|
-
"@skyux-sdk/testing": "7.0.0-beta.
|
|
49
|
-
"@skyux/core": "7.0.0-beta.
|
|
50
|
-
"@skyux/i18n": "7.0.0-beta.
|
|
51
|
-
"@skyux/theme": "7.0.0-beta.
|
|
48
|
+
"@skyux-sdk/testing": "7.0.0-beta.11",
|
|
49
|
+
"@skyux/core": "7.0.0-beta.11",
|
|
50
|
+
"@skyux/i18n": "7.0.0-beta.11",
|
|
51
|
+
"@skyux/theme": "7.0.0-beta.11"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"tslib": "^2.3.1"
|