@skyux/lists 5.1.0 → 5.5.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/README.md +6 -4
- package/bundles/skyux-lists-testing.umd.js +16 -16
- package/bundles/skyux-lists.umd.js +127 -88
- package/documentation.json +259 -20
- package/esm2015/index.js +22 -0
- package/esm2015/index.js.map +1 -0
- package/esm2015/{modules → lib/modules}/filter/filter-button.component.js +4 -4
- package/esm2015/lib/modules/filter/filter-button.component.js.map +1 -0
- package/esm2015/lib/modules/filter/filter-inline-item.component.js +18 -0
- package/esm2015/lib/modules/filter/filter-inline-item.component.js.map +1 -0
- package/esm2015/lib/modules/filter/filter-inline.component.js +18 -0
- package/esm2015/lib/modules/filter/filter-inline.component.js.map +1 -0
- package/esm2015/lib/modules/filter/filter-summary-item.component.js +50 -0
- package/esm2015/lib/modules/filter/filter-summary-item.component.js.map +1 -0
- package/esm2015/lib/modules/filter/filter-summary.component.js +20 -0
- package/esm2015/lib/modules/filter/filter-summary.component.js.map +1 -0
- package/esm2015/lib/modules/filter/filter.module.js +61 -0
- package/esm2015/lib/modules/filter/filter.module.js.map +1 -0
- package/esm2015/lib/modules/infinite-scroll/infinite-scroll-dom-adapter.service.js +93 -0
- package/esm2015/lib/modules/infinite-scroll/infinite-scroll-dom-adapter.service.js.map +1 -0
- package/esm2015/lib/modules/infinite-scroll/infinite-scroll.component.js +115 -0
- package/esm2015/lib/modules/infinite-scroll/infinite-scroll.component.js.map +1 -0
- package/esm2015/lib/modules/infinite-scroll/infinite-scroll.module.js +20 -0
- package/esm2015/lib/modules/infinite-scroll/infinite-scroll.module.js.map +1 -0
- package/esm2015/lib/modules/paging/paging.component.js +127 -0
- package/esm2015/lib/modules/paging/paging.component.js.map +1 -0
- package/esm2015/lib/modules/paging/paging.module.js +34 -0
- package/esm2015/lib/modules/paging/paging.module.js.map +1 -0
- package/esm2015/lib/modules/repeater/repeater-adapter.service.js +69 -0
- package/esm2015/lib/modules/repeater/repeater-adapter.service.js.map +1 -0
- package/esm2015/lib/modules/repeater/repeater-item-content.component.js +17 -0
- package/esm2015/lib/modules/repeater/repeater-item-content.component.js.map +1 -0
- package/esm2015/lib/modules/repeater/repeater-item-context-menu.component.js +20 -0
- package/esm2015/lib/modules/repeater/repeater-item-context-menu.component.js.map +1 -0
- package/esm2015/lib/modules/repeater/repeater-item-title.component.js +17 -0
- package/esm2015/lib/modules/repeater/repeater-item-title.component.js.map +1 -0
- package/esm2015/lib/modules/repeater/repeater-item.component.js +389 -0
- package/esm2015/lib/modules/repeater/repeater-item.component.js.map +1 -0
- package/esm2015/lib/modules/repeater/repeater.component.js +262 -0
- package/esm2015/lib/modules/repeater/repeater.component.js.map +1 -0
- package/esm2015/lib/modules/repeater/repeater.module.js +69 -0
- package/esm2015/lib/modules/repeater/repeater.module.js.map +1 -0
- package/esm2015/lib/modules/repeater/repeater.service.js +72 -0
- package/esm2015/lib/modules/repeater/repeater.service.js.map +1 -0
- package/esm2015/lib/modules/shared/sky-lists-resources.module.js +80 -0
- package/esm2015/lib/modules/shared/sky-lists-resources.module.js.map +1 -0
- package/esm2015/{modules → lib/modules}/sort/sort-item.component.js +6 -5
- package/esm2015/lib/modules/sort/sort-item.component.js.map +1 -0
- package/esm2015/{modules → lib/modules}/sort/sort-menu-heading.component.js +4 -4
- package/esm2015/lib/modules/sort/sort-menu-heading.component.js.map +1 -0
- package/esm2015/{modules → lib/modules}/sort/sort.component.js +4 -4
- package/esm2015/lib/modules/sort/sort.component.js.map +1 -0
- package/esm2015/lib/modules/sort/sort.module.js +50 -0
- package/esm2015/lib/modules/sort/sort.module.js.map +1 -0
- package/esm2015/lib/modules/sort/sort.service.js +20 -0
- package/esm2015/lib/modules/sort/sort.service.js.map +1 -0
- package/esm2015/skyux-lists.js +2 -2
- package/esm2015/skyux-lists.js.map +1 -0
- package/esm2015/testing/filter/filter-fixture-button.js +1 -1
- package/esm2015/testing/filter/filter-fixture-button.js.map +1 -0
- package/esm2015/testing/filter/filter-fixture-summary.js +1 -1
- package/esm2015/testing/filter/filter-fixture-summary.js.map +1 -0
- package/esm2015/testing/filter/filter-testing.module.js +5 -5
- package/esm2015/testing/filter/filter-testing.module.js.map +1 -0
- package/esm2015/testing/filter/lists-filter-fixture-button.js +1 -1
- package/esm2015/testing/filter/lists-filter-fixture-button.js.map +1 -0
- package/esm2015/testing/infinite-scroll/infinite-scroll-fixture.js +1 -1
- package/esm2015/testing/infinite-scroll/infinite-scroll-fixture.js.map +1 -0
- package/esm2015/testing/infinite-scroll/infinite-scroll-testing.module.js +5 -5
- package/esm2015/testing/infinite-scroll/infinite-scroll-testing.module.js.map +1 -0
- package/esm2015/testing/paging/paging-fixture-button.js +1 -1
- package/esm2015/testing/paging/paging-fixture-button.js.map +1 -0
- package/esm2015/testing/paging/paging-fixture.js +1 -1
- package/esm2015/testing/paging/paging-fixture.js.map +1 -0
- package/esm2015/testing/paging/paging-testing.module.js +5 -5
- package/esm2015/testing/paging/paging-testing.module.js.map +1 -0
- package/esm2015/testing/public-api.js +1 -1
- package/esm2015/testing/public-api.js.map +1 -0
- package/esm2015/testing/skyux-lists-testing.js +1 -1
- package/esm2015/testing/skyux-lists-testing.js.map +1 -0
- package/esm2015/testing/sort/sort-fixture-menu-item.js +1 -1
- package/esm2015/testing/sort/sort-fixture-menu-item.js.map +1 -0
- package/esm2015/testing/sort/sort-fixture-menu.js +1 -1
- package/esm2015/testing/sort/sort-fixture-menu.js.map +1 -0
- package/esm2015/testing/sort/sort-fixture.js +1 -1
- package/esm2015/testing/sort/sort-fixture.js.map +1 -0
- package/esm2015/testing/sort/sort-testing.module.js +5 -5
- package/esm2015/testing/sort/sort-testing.module.js.map +1 -0
- package/fesm2015/skyux-lists-testing.js +16 -16
- package/fesm2015/skyux-lists-testing.js.map +1 -1
- package/fesm2015/skyux-lists.js +154 -115
- package/fesm2015/skyux-lists.js.map +1 -1
- package/index.d.ts +19 -0
- package/{modules → lib/modules}/filter/filter-button.component.d.ts +0 -0
- package/{modules → lib/modules}/filter/filter-inline-item.component.d.ts +0 -0
- package/{modules → lib/modules}/filter/filter-inline.component.d.ts +0 -0
- package/{modules → lib/modules}/filter/filter-summary-item.component.d.ts +0 -0
- package/{modules → lib/modules}/filter/filter-summary.component.d.ts +0 -0
- package/{modules → lib/modules}/filter/filter.module.d.ts +0 -0
- package/{modules → lib/modules}/infinite-scroll/infinite-scroll-dom-adapter.service.d.ts +0 -0
- package/{modules → lib/modules}/infinite-scroll/infinite-scroll.component.d.ts +0 -0
- package/{modules → lib/modules}/infinite-scroll/infinite-scroll.module.d.ts +0 -0
- package/{modules → lib/modules}/paging/paging.component.d.ts +1 -1
- package/{modules → lib/modules}/paging/paging.module.d.ts +0 -0
- package/{modules → lib/modules}/repeater/repeater-adapter.service.d.ts +0 -0
- package/{modules → lib/modules}/repeater/repeater-item-content.component.d.ts +0 -0
- package/{modules → lib/modules}/repeater/repeater-item-context-menu.component.d.ts +0 -0
- package/{modules → lib/modules}/repeater/repeater-item-title.component.d.ts +0 -0
- package/{modules → lib/modules}/repeater/repeater-item.component.d.ts +0 -0
- package/{modules → lib/modules}/repeater/repeater.component.d.ts +2 -2
- package/{modules → lib/modules}/repeater/repeater.module.d.ts +0 -0
- package/{modules → lib/modules}/repeater/repeater.service.d.ts +0 -0
- package/{modules → lib/modules}/shared/sky-lists-resources.module.d.ts +0 -0
- package/{modules → lib/modules}/sort/sort-item.component.d.ts +0 -0
- package/{modules → lib/modules}/sort/sort-menu-heading.component.d.ts +0 -0
- package/{modules → lib/modules}/sort/sort.component.d.ts +0 -0
- package/{modules → lib/modules}/sort/sort.module.d.ts +0 -0
- package/{modules → lib/modules}/sort/sort.service.d.ts +0 -0
- package/package.json +26 -12
- package/skyux-lists.d.ts +1 -1
- package/LICENSE +0 -21
- package/esm2015/modules/filter/filter-inline-item.component.js +0 -18
- package/esm2015/modules/filter/filter-inline.component.js +0 -18
- package/esm2015/modules/filter/filter-summary-item.component.js +0 -50
- package/esm2015/modules/filter/filter-summary.component.js +0 -20
- package/esm2015/modules/filter/filter.module.js +0 -61
- package/esm2015/modules/infinite-scroll/infinite-scroll-dom-adapter.service.js +0 -92
- package/esm2015/modules/infinite-scroll/infinite-scroll.component.js +0 -115
- package/esm2015/modules/infinite-scroll/infinite-scroll.module.js +0 -20
- package/esm2015/modules/paging/paging.component.js +0 -127
- package/esm2015/modules/paging/paging.module.js +0 -34
- package/esm2015/modules/repeater/repeater-adapter.service.js +0 -68
- package/esm2015/modules/repeater/repeater-item-content.component.js +0 -17
- package/esm2015/modules/repeater/repeater-item-context-menu.component.js +0 -20
- package/esm2015/modules/repeater/repeater-item-title.component.js +0 -17
- package/esm2015/modules/repeater/repeater-item.component.js +0 -386
- package/esm2015/modules/repeater/repeater.component.js +0 -261
- package/esm2015/modules/repeater/repeater.module.js +0 -69
- package/esm2015/modules/repeater/repeater.service.js +0 -72
- package/esm2015/modules/shared/sky-lists-resources.module.js +0 -41
- package/esm2015/modules/sort/sort.module.js +0 -50
- package/esm2015/modules/sort/sort.service.js +0 -20
- package/esm2015/public-api.js +0 -22
- package/public-api.d.ts +0 -19
|
@@ -4,9 +4,9 @@ import * as i1 from "@skyux/theme";
|
|
|
4
4
|
import * as i2 from "@skyux/i18n";
|
|
5
5
|
export class SkySortMenuHeadingComponent {
|
|
6
6
|
}
|
|
7
|
-
SkySortMenuHeadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
8
|
-
SkySortMenuHeadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
7
|
+
SkySortMenuHeadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortMenuHeadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8
|
+
SkySortMenuHeadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySortMenuHeadingComponent, selector: "sky-sort-menu-heading", ngImport: i0, template: "<div\n class=\"sky-sort-menu-heading\"\n [skyThemeClass]=\"{\n 'sky-subsection-heading': 'default',\n 'sky-font-heading-4': 'modern'\n }\"\n>\n {{ 'skyux_sort_menu_heading' | skyLibResources }}\n</div>\n", styles: [".sky-sort-menu-heading{background-color:transparent;border:none;display:block;margin:4px;min-width:160px;transition:background-color .15s;padding:3px 20px;text-align:left;width:100%}:host-context(.sky-theme-modern) .sky-sort-menu-heading{margin:10px 0 0;padding:10px 20px}.sky-theme-modern .sky-sort-menu-heading{margin:10px 0 0;padding:10px 20px}\n"], directives: [{ type: i1.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }], pipes: { "skyLibResources": i2.SkyLibResourcesPipe } });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortMenuHeadingComponent, decorators: [{
|
|
10
10
|
type: Component,
|
|
11
11
|
args: [{
|
|
12
12
|
selector: 'sky-sort-menu-heading',
|
|
@@ -14,4 +14,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
14
14
|
styleUrls: ['./sort-menu-heading.component.scss'],
|
|
15
15
|
}]
|
|
16
16
|
}] });
|
|
17
|
-
//# sourceMappingURL=
|
|
17
|
+
//# sourceMappingURL=sort-menu-heading.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-menu-heading.component.js","sourceRoot":"","sources":["../../../../../../../../libs/components/lists/src/lib/modules/sort/sort-menu-heading.component.ts","../../../../../../../../libs/components/lists/src/lib/modules/sort/sort-menu-heading.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;;;AAO1C,MAAM,OAAO,2BAA2B;;yHAA3B,2BAA2B;6GAA3B,2BAA2B,6DCPxC,uNASA;4FDFa,2BAA2B;kBALvC,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,WAAW,EAAE,oCAAoC;oBACjD,SAAS,EAAE,CAAC,oCAAoC,CAAC;iBAClD","sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'sky-sort-menu-heading',\n templateUrl: './sort-menu-heading.component.html',\n styleUrls: ['./sort-menu-heading.component.scss'],\n})\nexport class SkySortMenuHeadingComponent {}\n","<div\n class=\"sky-sort-menu-heading\"\n [skyThemeClass]=\"{\n 'sky-subsection-heading': 'default',\n 'sky-font-heading-4': 'modern'\n }\"\n>\n {{ 'skyux_sort_menu_heading' | skyLibResources }}\n</div>\n"]}
|
|
@@ -24,9 +24,9 @@ export class SkySortComponent {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
SkySortComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
28
|
-
SkySortComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
27
|
+
SkySortComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
SkySortComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySortComponent, selector: "sky-sort", inputs: { showButtonText: "showButtonText" }, providers: [SkySortService], ngImport: i0, template: "<div class=\"sky-sort\">\n <sky-dropdown\n buttonType=\"select\"\n [label]=\"'skyux_sort_button_label' | skyLibResources\"\n [messageStream]=\"dropdownController\"\n [title]=\"'skyux_sort_button_label' | skyLibResources\"\n >\n <sky-dropdown-button>\n <sky-icon *skyThemeIf=\"'default'\" icon=\"sort\"></sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\" icon=\"sort\" iconType=\"skyux\"></sky-icon>\n <span *ngIf=\"showButtonText\" class=\"sky-sort-btn-text\">\n {{ 'skyux_sort_button_label' | skyLibResources }}\n </span>\n </sky-dropdown-button>\n <sky-dropdown-menu\n ariaRole=\"menu\"\n [ariaLabelledBy]=\"sortMenuHeading.id\"\n (click)=\"dropdownClicked()\"\n >\n <sky-sort-menu-heading\n skyId\n #sortMenuHeading=\"skyId\"\n ></sky-sort-menu-heading>\n <div *skyThemeIf=\"'default'\" class=\"sky-sort-heading-divider\"></div>\n <ng-content></ng-content>\n </sky-dropdown-menu>\n </sky-dropdown>\n</div>\n", styles: [".sky-sort-heading-divider{margin:0;height:1px;overflow:hidden;background-color:#eeeeef}:host .sky-sort-btn-text{display:none}:host .sky-sort ::ng-deep .sky-dropdown-caret{display:none}:host-context(.sky-responsive-container-xs) .sky-sort-btn-text,:host-context(.sky-responsive-container-sm) .sky-sort-btn-text,:host-context(.sky-responsive-container-md) .sky-sort-btn-text,:host-context(.sky-responsive-container-lg) .sky-sort-btn-text{display:none}:host-context(.sky-responsive-container-xs) .sky-sort ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-sm) .sky-sort ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-md) .sky-sort ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-lg) .sky-sort ::ng-deep .sky-dropdown-caret{display:none}@media (min-width: 768px){:host .sky-sort-btn-text{display:inline}:host .sky-sort ::ng-deep .sky-dropdown-caret{display:inline-block}}:host-context(.sky-responsive-container-sm) .sky-sort-btn-text,:host-context(.sky-responsive-container-md) .sky-sort-btn-text,:host-context(.sky-responsive-container-lg) .sky-sort-btn-text{display:inline}:host-context(.sky-responsive-container-sm) .sky-sort ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-md) .sky-sort ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-lg) .sky-sort ::ng-deep .sky-dropdown-caret{display:inline-block}\n"], components: [{ type: i1.λ3, selector: "sky-dropdown", inputs: ["buttonStyle", "buttonType", "disabled", "dismissOnBlur", "label", "horizontalAlignment", "messageStream", "title", "trigger"] }, { type: i1.λ2, selector: "sky-dropdown-button" }, { type: i2.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }, { type: i1.λ4, selector: "sky-dropdown-menu", inputs: ["ariaLabelledBy", "ariaRole", "useNativeFocus"], outputs: ["menuChanges"] }, { type: i3.SkySortMenuHeadingComponent, selector: "sky-sort-menu-heading" }], directives: [{ type: i4.λ3, selector: "[skyThemeIf]", inputs: ["skyThemeIf"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.λ2, selector: "[skyId]", exportAs: ["skyId"] }], pipes: { "skyLibResources": i7.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortComponent, decorators: [{
|
|
30
30
|
type: Component,
|
|
31
31
|
args: [{
|
|
32
32
|
selector: 'sky-sort',
|
|
@@ -38,4 +38,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
38
38
|
}], propDecorators: { showButtonText: [{
|
|
39
39
|
type: Input
|
|
40
40
|
}] } });
|
|
41
|
-
//# sourceMappingURL=
|
|
41
|
+
//# sourceMappingURL=sort.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort.component.js","sourceRoot":"","sources":["../../../../../../../../libs/components/lists/src/lib/modules/sort/sort.component.ts","../../../../../../../../libs/components/lists/src/lib/modules/sort/sort.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,KAAK,GAEN,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAsB,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAE7E,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;AAQhD,MAAM,OAAO,gBAAgB;IAP7B;QAQE;;WAEG;QAEI,mBAAc,GAAG,KAAK,CAAC;QAEvB,uBAAkB,GAAG,IAAI,OAAO,EAAsB,CAAC;KAO/D;IALQ,eAAe;QACpB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;YAC3B,IAAI,EAAE,sBAAsB,CAAC,KAAK;SACnC,CAAC,CAAC;IACL,CAAC;;8GAbU,gBAAgB;kGAAhB,gBAAgB,iFAHhB,CAAC,cAAc,CAAC,0BChB7B,u/BA4BA;4FDTa,gBAAgB;kBAP5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,UAAU;oBACpB,SAAS,EAAE,CAAC,uBAAuB,CAAC;oBACpC,WAAW,EAAE,uBAAuB;oBACpC,SAAS,EAAE,CAAC,cAAc,CAAC;oBAC3B,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;8BAMQ,cAAc;sBADpB,KAAK","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Input,\n OnInit,\n} from '@angular/core';\n\nimport { Subject } from 'rxjs';\n\nimport { SkyDropdownMessage, SkyDropdownMessageType } from '@skyux/popovers';\n\nimport { SkySortService } from './sort.service';\n@Component({\n selector: 'sky-sort',\n styleUrls: ['./sort.component.scss'],\n templateUrl: './sort.component.html',\n providers: [SkySortService],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkySortComponent {\n /**\n * Indicates whether to display a \"Sort\" label beside the icon on the sort button.\n */\n @Input()\n public showButtonText = false;\n\n public dropdownController = new Subject<SkyDropdownMessage>();\n\n public dropdownClicked(): void {\n this.dropdownController.next({\n type: SkyDropdownMessageType.Close,\n });\n }\n}\n","<div class=\"sky-sort\">\n <sky-dropdown\n buttonType=\"select\"\n [label]=\"'skyux_sort_button_label' | skyLibResources\"\n [messageStream]=\"dropdownController\"\n [title]=\"'skyux_sort_button_label' | skyLibResources\"\n >\n <sky-dropdown-button>\n <sky-icon *skyThemeIf=\"'default'\" icon=\"sort\"></sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\" icon=\"sort\" iconType=\"skyux\"></sky-icon>\n <span *ngIf=\"showButtonText\" class=\"sky-sort-btn-text\">\n {{ 'skyux_sort_button_label' | skyLibResources }}\n </span>\n </sky-dropdown-button>\n <sky-dropdown-menu\n ariaRole=\"menu\"\n [ariaLabelledBy]=\"sortMenuHeading.id\"\n (click)=\"dropdownClicked()\"\n >\n <sky-sort-menu-heading\n skyId\n #sortMenuHeading=\"skyId\"\n ></sky-sort-menu-heading>\n <div *skyThemeIf=\"'default'\" class=\"sky-sort-heading-divider\"></div>\n <ng-content></ng-content>\n </sky-dropdown-menu>\n </sky-dropdown>\n</div>\n"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { SkyIdModule } from '@skyux/core';
|
|
4
|
+
import { SkyIconModule } from '@skyux/indicators';
|
|
5
|
+
import { SkyDropdownModule } from '@skyux/popovers';
|
|
6
|
+
import { SkyThemeModule } from '@skyux/theme';
|
|
7
|
+
import { SkyListsResourcesModule } from '../shared/sky-lists-resources.module';
|
|
8
|
+
import { SkySortItemComponent } from './sort-item.component';
|
|
9
|
+
import { SkySortMenuHeadingComponent } from './sort-menu-heading.component';
|
|
10
|
+
import { SkySortComponent } from './sort.component';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export class SkySortModule {
|
|
13
|
+
}
|
|
14
|
+
SkySortModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
15
|
+
SkySortModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortModule, declarations: [SkySortComponent,
|
|
16
|
+
SkySortItemComponent,
|
|
17
|
+
SkySortMenuHeadingComponent], imports: [CommonModule,
|
|
18
|
+
SkyDropdownModule,
|
|
19
|
+
SkyIconModule,
|
|
20
|
+
SkyIdModule,
|
|
21
|
+
SkyListsResourcesModule,
|
|
22
|
+
SkyThemeModule], exports: [SkySortComponent, SkySortItemComponent] });
|
|
23
|
+
SkySortModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortModule, imports: [[
|
|
24
|
+
CommonModule,
|
|
25
|
+
SkyDropdownModule,
|
|
26
|
+
SkyIconModule,
|
|
27
|
+
SkyIdModule,
|
|
28
|
+
SkyListsResourcesModule,
|
|
29
|
+
SkyThemeModule,
|
|
30
|
+
]] });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortModule, decorators: [{
|
|
32
|
+
type: NgModule,
|
|
33
|
+
args: [{
|
|
34
|
+
declarations: [
|
|
35
|
+
SkySortComponent,
|
|
36
|
+
SkySortItemComponent,
|
|
37
|
+
SkySortMenuHeadingComponent,
|
|
38
|
+
],
|
|
39
|
+
imports: [
|
|
40
|
+
CommonModule,
|
|
41
|
+
SkyDropdownModule,
|
|
42
|
+
SkyIconModule,
|
|
43
|
+
SkyIdModule,
|
|
44
|
+
SkyListsResourcesModule,
|
|
45
|
+
SkyThemeModule,
|
|
46
|
+
],
|
|
47
|
+
exports: [SkySortComponent, SkySortItemComponent],
|
|
48
|
+
}]
|
|
49
|
+
}] });
|
|
50
|
+
//# sourceMappingURL=sort.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort.module.js","sourceRoot":"","sources":["../../../../../../../../libs/components/lists/src/lib/modules/sort/sort.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;;AAkBpD,MAAM,OAAO,aAAa;;2GAAb,aAAa;4GAAb,aAAa,iBAdtB,gBAAgB;QAChB,oBAAoB;QACpB,2BAA2B,aAG3B,YAAY;QACZ,iBAAiB;QACjB,aAAa;QACb,WAAW;QACX,uBAAuB;QACvB,cAAc,aAEN,gBAAgB,EAAE,oBAAoB;4GAErC,aAAa,YAVf;YACP,YAAY;YACZ,iBAAiB;YACjB,aAAa;YACb,WAAW;YACX,uBAAuB;YACvB,cAAc;SACf;4FAGU,aAAa;kBAhBzB,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,gBAAgB;wBAChB,oBAAoB;wBACpB,2BAA2B;qBAC5B;oBACD,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;wBACjB,aAAa;wBACb,WAAW;wBACX,uBAAuB;wBACvB,cAAc;qBACf;oBACD,OAAO,EAAE,CAAC,gBAAgB,EAAE,oBAAoB,CAAC;iBAClD","sourcesContent":["import { CommonModule } from '@angular/common';\n\nimport { NgModule } from '@angular/core';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyIconModule } from '@skyux/indicators';\n\nimport { SkyDropdownModule } from '@skyux/popovers';\n\nimport { SkyThemeModule } from '@skyux/theme';\n\nimport { SkyListsResourcesModule } from '../shared/sky-lists-resources.module';\n\nimport { SkySortItemComponent } from './sort-item.component';\n\nimport { SkySortMenuHeadingComponent } from './sort-menu-heading.component';\n\nimport { SkySortComponent } from './sort.component';\n\n@NgModule({\n declarations: [\n SkySortComponent,\n SkySortItemComponent,\n SkySortMenuHeadingComponent,\n ],\n imports: [\n CommonModule,\n SkyDropdownModule,\n SkyIconModule,\n SkyIdModule,\n SkyListsResourcesModule,\n SkyThemeModule,\n ],\n exports: [SkySortComponent, SkySortItemComponent],\n})\nexport class SkySortModule {}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export class SkySortService {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.selectedItem = new BehaviorSubject('');
|
|
10
|
+
}
|
|
11
|
+
selectItem(sortItem) {
|
|
12
|
+
this.selectedItem.next(sortItem);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
SkySortService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
+
SkySortService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortService });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortService, decorators: [{
|
|
18
|
+
type: Injectable
|
|
19
|
+
}] });
|
|
20
|
+
//# sourceMappingURL=sort.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort.service.js","sourceRoot":"","sources":["../../../../../../../../libs/components/lists/src/lib/modules/sort/sort.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;;AAEvC;;GAEG;AAEH,MAAM,OAAO,cAAc;IAD3B;QAES,iBAAY,GAA4B,IAAI,eAAe,CAAC,EAAE,CAAC,CAAC;KAKxE;IAHQ,UAAU,CAAC,QAAgB;QAChC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;;4GALU,cAAc;gHAAd,cAAc;4FAAd,cAAc;kBAD1B,UAAU","sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { BehaviorSubject } from 'rxjs';\n\n/**\n * @internal\n */\n@Injectable()\nexport class SkySortService {\n public selectedItem: BehaviorSubject<string> = new BehaviorSubject('');\n\n public selectItem(sortItem: string) {\n this.selectedItem.next(sortItem);\n }\n}\n"]}
|
package/esm2015/skyux-lists.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
|
-
export * from './
|
|
5
|
-
//# sourceMappingURL=
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=skyux-lists.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skyux-lists.js","sourceRoot":"","sources":["../../../../../libs/components/lists/src/skyux-lists.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|
|
@@ -47,4 +47,4 @@ export class SkyFilterFixtureButton {
|
|
|
47
47
|
return text.trim().replace(/\s+/g, ' ');
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
//# sourceMappingURL=
|
|
50
|
+
//# sourceMappingURL=filter-fixture-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-fixture-button.js","sourceRoot":"","sources":["../../../../../../../libs/components/lists/testing/src/filter/filter-fixture-button.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAIvD;;;;GAIG;AACH,MAAM,OAAO,sBAAsB;IAGjC,YAAoB,OAA8B,EAAE,SAAiB;QAAjD,YAAO,GAAP,OAAO,CAAuB;QAChD,IAAI,CAAC,YAAY,GAAG,iBAAiB,CAAC,uBAAuB,CAC3D,IAAI,CAAC,OAAO,EACZ,SAAS,EACT,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;OAEG;IACU,iBAAiB;;YAC5B,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACvC,IAAI,MAAM,YAAY,iBAAiB,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;gBAC3D,MAAM,CAAC,KAAK,EAAE,CAAC;aAChB;YACD,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACnC,CAAC;KAAA;IAED,IAAW,MAAM;QACf,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAC9C,OAAO;YACL,YAAY,EAAE,aAAa,CAAC,YAAY,CAAC,eAAe,CAAC;YACzD,YAAY,EAAE,aAAa,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,MAAM;YACpE,QAAQ,EAAE,aAAa,CAAC,QAAQ;YAChC,EAAE,EAAE,aAAa,CAAC,EAAE;SACrB,CAAC;IACJ,CAAC;IACD;;OAEG;IACH,IAAW,UAAU;;QACnB,MAAM,IAAI,GAAG,MAAA,IAAI,CAAC,gBAAgB,EAAE,0CAAE,SAAS,CAAC;QAChD,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAEO,gBAAgB;QACtB,OAAO,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC1E,CAAC;IAEO,aAAa,CAAC,IAAY;QAChC,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1C,CAAC;CACF","sourcesContent":["import { DebugElement } from '@angular/core';\n\nimport { ComponentFixture } from '@angular/core/testing';\n\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\nimport { SkyListsFilterFixtureButton } from './lists-filter-fixture-button';\n\n/**\n * Provides information for and interaction with a SKY UX filter button component.\n * By using the fixture API, a test insulates itself against updates to the internals\n * of a component, such as changing its DOM structure.\n */\nexport class SkyFilterFixtureButton {\n private debugElement: DebugElement;\n\n constructor(private fixture: ComponentFixture<any>, skyTestId: string) {\n this.debugElement = SkyAppTestUtility.getDebugElementByTestId(\n this.fixture,\n skyTestId,\n 'sky-filter-button'\n );\n }\n\n /**\n * Click the button to apply the filter.\n */\n public async clickFilterButton(): Promise<any> {\n const button = this.getButtonElement();\n if (button instanceof HTMLButtonElement && !button.disabled) {\n button.click();\n }\n this.fixture.detectChanges();\n return this.fixture.whenStable();\n }\n\n public get button(): SkyListsFilterFixtureButton {\n const buttonElement = this.getButtonElement();\n return {\n ariaControls: buttonElement.getAttribute('aria-controls'),\n ariaExpanded: buttonElement.getAttribute('aria-expanded') === 'true',\n disabled: buttonElement.disabled,\n id: buttonElement.id,\n };\n }\n /**\n * Get the button text.\n */\n public get buttonText(): string {\n const text = this.getButtonElement()?.innerText;\n return this.normalizeText(text);\n }\n\n private getButtonElement(): HTMLButtonElement | null {\n return this.debugElement.nativeElement.querySelector('.sky-filter-btn');\n }\n\n private normalizeText(text: string): string {\n return text.trim().replace(/\\s+/g, ' ');\n }\n}\n"]}
|
|
@@ -28,4 +28,4 @@ export class SkyFilterFixtureSummary {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
//# sourceMappingURL=
|
|
31
|
+
//# sourceMappingURL=filter-fixture-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-fixture-summary.js","sourceRoot":"","sources":["../../../../../../../libs/components/lists/testing/src/filter/filter-fixture-summary.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,OAAO,uBAAuB;IAGlC,YAAoB,OAA8B,EAAE,SAAiB;QAAjD,YAAO,GAAP,OAAO,CAAuB;QAChD,IAAI,CAAC,YAAY,GAAG,iBAAiB,CAAC,uBAAuB,CAC3D,IAAI,CAAC,OAAO,EACZ,SAAS,EACT,oBAAoB,CACrB,CAAC;IACJ,CAAC;IAEY,gBAAgB,CAAC,KAAa;;YACzC,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,gBAAgB,CACnE,yBAAyB,CAC1B,CAAC;YACF,IAAI,YAAY,CAAC,MAAM,GAAG,KAAK,EAAE;gBAC/B,MAAM,WAAW,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;gBACxC,IAAI,WAAW,YAAY,WAAW,EAAE;oBACtC,MAAM,WAAW,GAAG,WAAW,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;oBACtE,IAAI,WAAW,YAAY,WAAW,EAAE;wBACtC,WAAW,CAAC,KAAK,EAAE,CAAC;wBACpB,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;wBAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;qBAClC;iBACF;aACF;YACD,MAAM,IAAI,KAAK,CAAC,4CAA4C,KAAK,EAAE,CAAC,CAAC;QACvE,CAAC;KAAA;CACF","sourcesContent":["import { DebugElement } from '@angular/core';\n\nimport { ComponentFixture } from '@angular/core/testing';\n\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Provides information for and interaction with a SKY UX filter summary component.\n * By using the fixture API, a test insulates itself against updates to the internals\n * of a component, such as changing its DOM structure.\n */\nexport class SkyFilterFixtureSummary {\n private debugElement: DebugElement;\n\n constructor(private fixture: ComponentFixture<any>, skyTestId: string) {\n this.debugElement = SkyAppTestUtility.getDebugElementByTestId(\n this.fixture,\n skyTestId,\n 'sky-filter-summary'\n );\n }\n\n public async filterCloseClick(index: number): Promise<any> {\n const summaryItems = this.debugElement.nativeElement.querySelectorAll(\n 'sky-filter-summary-item'\n );\n if (summaryItems.length > index) {\n const summaryItem = summaryItems[index];\n if (summaryItem instanceof HTMLElement) {\n const closeButton = summaryItem.querySelector('.sky-token-btn-close');\n if (closeButton instanceof HTMLElement) {\n closeButton.click();\n this.fixture.detectChanges();\n return this.fixture.whenStable();\n }\n }\n }\n throw new Error(`Unable to click close for a filter index ${index}`);\n }\n}\n"]}
|
|
@@ -3,13 +3,13 @@ import { SkyFilterModule } from '@skyux/lists';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class SkyFilterTestingModule {
|
|
5
5
|
}
|
|
6
|
-
SkyFilterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
7
|
-
SkyFilterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
8
|
-
SkyFilterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
6
|
+
SkyFilterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFilterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
+
SkyFilterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFilterTestingModule, exports: [SkyFilterModule] });
|
|
8
|
+
SkyFilterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFilterTestingModule, imports: [SkyFilterModule] });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyFilterTestingModule, decorators: [{
|
|
10
10
|
type: NgModule,
|
|
11
11
|
args: [{
|
|
12
12
|
exports: [SkyFilterModule],
|
|
13
13
|
}]
|
|
14
14
|
}] });
|
|
15
|
-
//# sourceMappingURL=
|
|
15
|
+
//# sourceMappingURL=filter-testing.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-testing.module.js","sourceRoot":"","sources":["../../../../../../../libs/components/lists/testing/src/filter/filter-testing.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;;AAK/C,MAAM,OAAO,sBAAsB;;oHAAtB,sBAAsB;qHAAtB,sBAAsB,YAFvB,eAAe;qHAEd,sBAAsB,YAFvB,eAAe;4FAEd,sBAAsB;kBAHlC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,eAAe,CAAC;iBAC3B","sourcesContent":["import { NgModule } from '@angular/core';\n\nimport { SkyFilterModule } from '@skyux/lists';\n\n@NgModule({\n exports: [SkyFilterModule],\n})\nexport class SkyFilterTestingModule {}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=lists-filter-fixture-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lists-filter-fixture-button.js","sourceRoot":"","sources":["../../../../../../../libs/components/lists/testing/src/filter/lists-filter-fixture-button.ts"],"names":[],"mappings":"","sourcesContent":["export type SkyListsFilterFixtureButton = {\n ariaControls: string;\n ariaExpanded: boolean;\n disabled: boolean;\n id: string;\n};\n"]}
|
|
@@ -27,4 +27,4 @@ export class SkyInfiniteScrollFixture {
|
|
|
27
27
|
return this.debugElement.nativeElement.querySelector('.sky-infinite-scroll .sky-btn');
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
//# sourceMappingURL=
|
|
30
|
+
//# sourceMappingURL=infinite-scroll-fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infinite-scroll-fixture.js","sourceRoot":"","sources":["../../../../../../../libs/components/lists/testing/src/infinite-scroll/infinite-scroll-fixture.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,OAAO,wBAAwB;IAGnC,YAAoB,OAA8B,EAAE,SAAiB;QAAjD,YAAO,GAAP,OAAO,CAAuB;QAChD,IAAI,CAAC,YAAY,GAAG,iBAAiB,CAAC,uBAAuB,CAC3D,OAAO,EACP,SAAS,EACT,qBAAqB,CACtB,CAAC;IACJ,CAAC;IAED,IAAW,uBAAuB;QAChC,OAAO,IAAI,CAAC,SAAS,EAAE,YAAY,iBAAiB,CAAC;IACvD,CAAC;IAEY,mBAAmB;;YAC9B,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YAChC,IAAI,MAAM,YAAY,iBAAiB,EAAE;gBACvC,MAAM,CAAC,KAAK,EAAE,CAAC;aAChB;YACD,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACnC,CAAC;KAAA;IAEO,SAAS;QACf,OAAO,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,aAAa,CAClD,+BAA+B,CAChC,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { DebugElement } from '@angular/core';\n\nimport { ComponentFixture } from '@angular/core/testing';\n\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Provides information for and interaction with a SKY UX infinite scroll component.\n * By using the fixture API, a test insulates itself against updates to the internals\n * of a component, such as changing its DOM structure.\n */\nexport class SkyInfiniteScrollFixture {\n private debugElement: DebugElement;\n\n constructor(private fixture: ComponentFixture<any>, skyTestId: string) {\n this.debugElement = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-infinite-scroll'\n );\n }\n\n public get loadMoreButtonIsVisible(): boolean {\n return this.getButton() instanceof HTMLButtonElement;\n }\n\n public async clickLoadMoreButton(): Promise<any> {\n const button = this.getButton();\n if (button instanceof HTMLButtonElement) {\n button.click();\n }\n this.fixture.detectChanges();\n return this.fixture.whenStable();\n }\n\n private getButton() {\n return this.debugElement.nativeElement.querySelector(\n '.sky-infinite-scroll .sky-btn'\n );\n }\n}\n"]}
|
|
@@ -3,13 +3,13 @@ import { SkyInfiniteScrollModule } from '@skyux/lists';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class SkyInfiniteScrollTestingModule {
|
|
5
5
|
}
|
|
6
|
-
SkyInfiniteScrollTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
7
|
-
SkyInfiniteScrollTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
8
|
-
SkyInfiniteScrollTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
6
|
+
SkyInfiniteScrollTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyInfiniteScrollTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
+
SkyInfiniteScrollTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyInfiniteScrollTestingModule, exports: [SkyInfiniteScrollModule] });
|
|
8
|
+
SkyInfiniteScrollTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyInfiniteScrollTestingModule, imports: [SkyInfiniteScrollModule] });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyInfiniteScrollTestingModule, decorators: [{
|
|
10
10
|
type: NgModule,
|
|
11
11
|
args: [{
|
|
12
12
|
exports: [SkyInfiniteScrollModule],
|
|
13
13
|
}]
|
|
14
14
|
}] });
|
|
15
|
-
//# sourceMappingURL=
|
|
15
|
+
//# sourceMappingURL=infinite-scroll-testing.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infinite-scroll-testing.module.js","sourceRoot":"","sources":["../../../../../../../libs/components/lists/testing/src/infinite-scroll/infinite-scroll-testing.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;;AAKvD,MAAM,OAAO,8BAA8B;;4HAA9B,8BAA8B;6HAA9B,8BAA8B,YAF/B,uBAAuB;6HAEtB,8BAA8B,YAF/B,uBAAuB;4FAEtB,8BAA8B;kBAH1C,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,uBAAuB,CAAC;iBACnC","sourcesContent":["import { NgModule } from '@angular/core';\n\nimport { SkyInfiniteScrollModule } from '@skyux/lists';\n\n@NgModule({\n exports: [SkyInfiniteScrollModule],\n})\nexport class SkyInfiniteScrollTestingModule {}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=paging-fixture-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paging-fixture-button.js","sourceRoot":"","sources":["../../../../../../../libs/components/lists/testing/src/paging/paging-fixture-button.ts"],"names":[],"mappings":"","sourcesContent":["export interface SkyPagingFixtureButton {\n id: string;\n isActive: boolean;\n isEnabled: boolean;\n}\n"]}
|
|
@@ -101,4 +101,4 @@ export class SkyPagingFixture {
|
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
//# sourceMappingURL=
|
|
104
|
+
//# sourceMappingURL=paging-fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paging-fixture.js","sourceRoot":"","sources":["../../../../../../../libs/components/lists/testing/src/paging/paging-fixture.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,EAAE,EAAE,MAAM,2BAA2B,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAIvD;;;;GAIG;AACH,MAAM,OAAO,gBAAgB;IAuB3B,YAAoB,OAA8B,EAAE,SAAiB;QAAjD,YAAO,GAAP,OAAO,CAAuB;QAChD,IAAI,CAAC,QAAQ,GAAG,iBAAiB,CAAC,uBAAuB,CACvD,OAAO,EACP,SAAS,EACT,YAAY,CACb,CAAC;QAEF,IAAI,CAAC,8BAA8B,EAAE,CAAC;IACxC,CAAC;IA5BD;;OAEG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,IAAkB,EAAE,EAAE;YACjD,OAAO;gBACL,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC;gBACtC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CAAC;gBACrE,SAAS,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ;aACxC,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAY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C,GAAG,CAAC,oCAAoC,CAAC,CAAC,0CACpE,aAAkC,CAAC;IACzC,CAAC;IAED,IAAY,kBAAkB;;QAC5B,OAAO,MAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC,0CACxE,aAAkC,CAAC;IACzC,CAAC;IAED,IAAY,WAAW;QACrB,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC,CAAC;IACxE,CAAC;IAEO,WAAW,CAAC,EAAU;;QAC5B,OAAO,MAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,CACxB,EAAE,CAAC,GAAG,CAAC,4CAA4C,EAAE,IAAI,CAAC,CAC3D,0CAAE,aAAkC,CAAC;IACxC,CAAC;IAEO,SAAS,CAAC,IAAuB;QACvC,OAAO,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IAC1C,CAAC;IAEa,8BAA8B;;YAC1C,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;YAC7B,MAAM,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;YAEhC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACnC,CAAC;KAAA;CAGF","sourcesContent":["import { DebugElement } from '@angular/core';\n\nimport { ComponentFixture } from '@angular/core/testing';\n\nimport { By } from '@angular/platform-browser';\n\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\nimport { SkyPagingFixtureButton } from './paging-fixture-button';\n\n/**\n * Provides information for and interaction with a SKY UX paging component.\n * By using the fixture API, a test insulates itself against updates to the internals\n * of a component, such as changing its DOM structure.\n */\nexport class SkyPagingFixture {\n private _debugEl: DebugElement;\n\n /**\n * The id of the active page, if available.\n */\n public get activePageId(): string {\n return this.getPageId(this.activePageButton);\n }\n\n /**\n * Properties of the page links displayed in the paging component.\n */\n public get pageLinks(): SkyPagingFixtureButton[] {\n return this.pagingLinks.map((page: DebugElement) => {\n return {\n id: this.getPageId(page.nativeElement),\n isActive: page.nativeElement.classList.contains('sky-paging-current'),\n isEnabled: !page.nativeElement.disabled,\n };\n });\n }\n\n constructor(private fixture: ComponentFixture<any>, skyTestId: string) {\n this._debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-paging'\n );\n\n this.waitForComponentInitialization();\n }\n\n /**\n * Selects the specified page by id, if it is enabled.\n */\n public async selectPage(id: string | number): Promise<void> {\n const pageButton = this.getPageLink(id.toString());\n\n if (pageButton !== undefined && !pageButton.disabled) {\n pageButton.click();\n\n this.fixture.detectChanges();\n return this.fixture.whenStable();\n }\n }\n\n /**\n * Clicks the next page button, if it is enabled.\n */\n public async selectNextPage(): Promise<void> {\n const nextButton = this.nextPageButton;\n\n if (nextButton !== undefined && !nextButton.disabled) {\n nextButton.click();\n\n this.fixture.detectChanges();\n return this.fixture.whenStable();\n }\n }\n\n /**\n * Clicks the previous page button, if it is enabled.\n */\n public async selectPreviousPage(): Promise<void> {\n const previousButton = this.previousPageButton;\n\n if (previousButton !== undefined && !previousButton.disabled) {\n previousButton.click();\n\n this.fixture.detectChanges();\n return this.fixture.whenStable();\n }\n }\n\n //#region helpers\n\n private get activePageButton(): HTMLButtonElement {\n return this._debugEl.query(\n By.css('.sky-list-paging-link .sky-paging-current')\n )?.nativeElement as HTMLButtonElement;\n }\n\n private get nextPageButton(): HTMLButtonElement {\n return this._debugEl.query(By.css('.sky-paging-btn[sky-cmp-id=\"next\"]'))\n ?.nativeElement as HTMLButtonElement;\n }\n\n private get previousPageButton(): HTMLButtonElement {\n return this._debugEl.query(By.css('.sky-paging-btn[sky-cmp-id=\"previous\"]'))\n ?.nativeElement as HTMLButtonElement;\n }\n\n private get pagingLinks(): DebugElement[] {\n return this._debugEl.queryAll(By.css('.sky-list-paging-link button'));\n }\n\n private getPageLink(id: string): HTMLButtonElement {\n return this._debugEl.query(\n By.css(`.sky-list-paging-link button[sky-cmp-id=\"${id}\"]`)\n )?.nativeElement as HTMLButtonElement;\n }\n\n private getPageId(page: HTMLButtonElement): string {\n return page?.getAttribute('sky-cmp-id');\n }\n\n private async waitForComponentInitialization(): Promise<void> {\n this.fixture.detectChanges();\n await this.fixture.whenStable();\n\n this.fixture.detectChanges();\n return this.fixture.whenStable();\n }\n\n //#endregion\n}\n"]}
|
|
@@ -3,13 +3,13 @@ import { SkyPagingModule } from '@skyux/lists';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class SkyPagingTestingModule {
|
|
5
5
|
}
|
|
6
|
-
SkyPagingTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
7
|
-
SkyPagingTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
8
|
-
SkyPagingTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
6
|
+
SkyPagingTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyPagingTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
+
SkyPagingTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyPagingTestingModule, exports: [SkyPagingModule] });
|
|
8
|
+
SkyPagingTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyPagingTestingModule, imports: [SkyPagingModule] });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyPagingTestingModule, decorators: [{
|
|
10
10
|
type: NgModule,
|
|
11
11
|
args: [{
|
|
12
12
|
exports: [SkyPagingModule],
|
|
13
13
|
}]
|
|
14
14
|
}] });
|
|
15
|
-
//# sourceMappingURL=
|
|
15
|
+
//# sourceMappingURL=paging-testing.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paging-testing.module.js","sourceRoot":"","sources":["../../../../../../../libs/components/lists/testing/src/paging/paging-testing.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;;AAK/C,MAAM,OAAO,sBAAsB;;oHAAtB,sBAAsB;qHAAtB,sBAAsB,YAFvB,eAAe;qHAEd,sBAAsB,YAFvB,eAAe;4FAEd,sBAAsB;kBAHlC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,eAAe,CAAC;iBAC3B","sourcesContent":["import { NgModule } from '@angular/core';\n\nimport { SkyPagingModule } from '@skyux/lists';\n\n@NgModule({\n exports: [SkyPagingModule],\n})\nexport class SkyPagingTestingModule {}\n"]}
|
|
@@ -10,4 +10,4 @@ export * from './sort/sort-fixture-menu';
|
|
|
10
10
|
export * from './sort/sort-fixture-menu-item';
|
|
11
11
|
export * from './infinite-scroll/infinite-scroll-testing.module';
|
|
12
12
|
export * from './infinite-scroll/infinite-scroll-fixture';
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=public-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../../../libs/components/lists/testing/src/public-api.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAE/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAE/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAE9C,cAAc,kDAAkD,CAAC;AACjE,cAAc,2CAA2C,CAAC","sourcesContent":["export * from './filter/filter-testing.module';\nexport * from './filter/filter-fixture-summary';\nexport * from './filter/filter-fixture-button';\n\nexport * from './paging/paging-testing.module';\nexport * from './paging/paging-fixture';\nexport * from './paging/paging-fixture-button';\n\nexport * from './sort/sort-testing.module';\nexport * from './sort/sort-fixture';\nexport * from './sort/sort-fixture-menu';\nexport * from './sort/sort-fixture-menu-item';\n\nexport * from './infinite-scroll/infinite-scroll-testing.module';\nexport * from './infinite-scroll/infinite-scroll-fixture';\n"]}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=
|
|
5
|
+
//# sourceMappingURL=skyux-lists-testing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skyux-lists-testing.js","sourceRoot":"","sources":["../../../../../../libs/components/lists/testing/src/skyux-lists-testing.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,cAAc,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=sort-fixture-menu-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-fixture-menu-item.js","sourceRoot":"","sources":["../../../../../../../libs/components/lists/testing/src/sort/sort-fixture-menu-item.ts"],"names":[],"mappings":"","sourcesContent":["export interface SkySortFixtureMenuItem {\n index: number;\n isActive: boolean;\n text: string;\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=sort-fixture-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-fixture-menu.js","sourceRoot":"","sources":["../../../../../../../libs/components/lists/testing/src/sort/sort-fixture-menu.ts"],"names":[],"mappings":"","sourcesContent":["export interface SkySortFixtureMenu {\n buttonText: string;\n isOpen: boolean;\n}\n"]}
|
|
@@ -149,4 +149,4 @@ export class SkySortFixture {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ydC1maXh0dXJlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbGlzdHMvdGVzdGluZy9zcmMvc29ydC9zb3J0LWZpeHR1cmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUlBLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUUvQyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQU12RDs7OztHQUlHO0FBQ0gsTUFBTSxPQUFPLGNBQWM7SUEyQ3pCLFlBQW9CLE9BQThCLEVBQUUsU0FBaUI7UUFBakQsWUFBTyxHQUFQLE9BQU8sQ0FBdUI7UUFDaEQsSUFBSSxDQUFDLFFBQVEsR0FBRyxpQkFBaUIsQ0FBQyx1QkFBdUIsQ0FDdkQsT0FBTyxFQUNQLFNBQVMsRUFDVCxVQUFVLENBQ1gsQ0FBQztJQUNKLENBQUM7SUFoREQ7OztPQUdHO0lBQ0gsSUFBVyxjQUFjOztRQUN2QixPQUFPLE1BQUEsSUFBSSxDQUFDLFNBQVMsMENBQUUsSUFBSSxDQUFDLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsUUFB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ZWQgbWVudSBpdGVtIHVzaW5nIHRoZSBzZWxlY3Rpb25QcmVkaWNhdGUgcGFyYW1ldGVyXG4gICAgY29uc3QgaXRlbXMgPSB0aGlzLmdldFNvcnRJdGVtcygpO1xuICAgIGNvbnN0IHRhcmdldEl0ZW0gPSBpdGVtcy5maW5kKChpdGVtOiBIVE1MRWxlbWVudCwgaW5kZXg6IG51bWJlcikgPT5cbiAgICAgIHNlbGVjdGlvblByZWRpY2F0ZShpdGVtLCBpbmRleClcbiAgICApO1xuXG4gICAgLy8gaWYgd2UgZm91bmQgdGhlIGl0ZW0sIHNlbGVjdCBpdFxuICAgIGlmICh0YXJnZXRJdGVtKSB7XG4gICAgICAvLyB3ZSd2ZSBnb3QgdGhlICcuc2t5LXNvcnQtaXRlbScgZGl2LCBidXQgd2Ugd2FudCB0byBjbGljayBpdCdzIGNoaWxkIGJ1dHRvbiBlbGVtZW50XG4gICAgICBjb25zdCB0YXJnZXRCdXR0b24gPSB0YXJnZXRJdGVtLnF1ZXJ5U2VsZWN0b3IoJ2J1dHRvbicpO1xuICAgICAgdGFyZ2V0QnV0dG9uLmNsaWNrKCk7XG5cbiAgICAgIHRoaXMuZml4dHVyZS5kZXRlY3RDaGFuZ2VzKCk7XG4gICAgICByZXR1cm4gdGhpcy5maXh0dXJlLndoZW5TdGFibGUoKTtcbiAgICB9XG4gIH1cblxuICAvLyNlbmRyZWdpb25cbn1cbiJdfQ==
|
|
152
|
+
//# sourceMappingURL=sort-fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-fixture.js","sourceRoot":"","sources":["../../../../../../../libs/components/lists/testing/src/sort/sort-fixture.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,EAAE,EAAE,MAAM,2BAA2B,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAMvD;;;;GAIG;AACH,MAAM,OAAO,cAAc;IA2CzB,YAAoB,OAA8B,EAAE,SAAi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\nimport { ComponentFixture } from '@angular/core/testing';\n\nimport { By } from '@angular/platform-browser';\n\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\nimport { SkySortFixtureMenu } from './sort-fixture-menu';\n\nimport { SkySortFixtureMenuItem } from './sort-fixture-menu-item';\n\n/**\n * Provides information for and interaction with a SKY UX sort component.\n * By using the fixture API, a test insulates itself against updates to the internals\n * of a component, such as changing its DOM structure.\n */\nexport class SkySortFixture {\n /**\n * The active sort menu item, if one exists. Menu items are only available when the menu dropdown\n * is open. If the menu dropdown is closed, this property will be undefined.\n */\n public get activeMenuItem(): SkySortFixtureMenuItem {\n return this.menuItems?.find((x) => x.isActive);\n }\n\n /**\n * The sort menu's properties.\n */\n public get menu(): SkySortFixtureMenu {\n return {\n buttonText: SkyAppTestUtility.getText(this.getSortButtonTextEl()),\n isOpen: this.getDropdownMenuEl() !== null,\n };\n }\n\n /**\n * The properties of each sort menu item. Menu items are only available when the menu dropdown\n * is open. If the menu dropdown is closed, this property will be undefined.\n */\n public get menuItems(): SkySortFixtureMenuItem[] {\n // Return undefined when we can't determine what the options are.\n // We do this to avoid any confusion with an empty set of options.\n if (!this.menu.isOpen) {\n return;\n }\n\n return this.getSortItems().map((item: HTMLElement, i: number) => {\n const itemButton = item.querySelector('button');\n\n return {\n index: i,\n isActive: item.classList.contains('sky-sort-item-selected'),\n text: SkyAppTestUtility.getText(itemButton),\n };\n });\n }\n\n private _debugEl: DebugElement;\n\n constructor(private fixture: ComponentFixture<any>, skyTestId: string) {\n this._debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-sort'\n );\n }\n\n /**\n * Closes the sort dropdown menu if it isn't closed already.\n */\n public async closeMenu(): Promise<void> {\n // if the menu is already closed, do nothing\n if (!this.menu.isOpen) {\n return;\n }\n\n const menu = this.getDropdownButtonEl();\n if (menu !== undefined && !menu.disabled) {\n menu.click();\n\n this.fixture.detectChanges();\n await this.fixture.whenStable();\n\n this.fixture.detectChanges();\n return this.fixture.whenStable();\n }\n }\n\n /**\n * Opens the sort dropdown menu if it isn't open already.\n */\n public async openMenu(): Promise<void> {\n // if the menu is already open, do nothing\n if (this.menu.isOpen) {\n return;\n }\n\n const menu = this.getDropdownButtonEl();\n\n if (menu !== undefined && !menu.disabled) {\n menu.click();\n\n this.fixture.detectChanges();\n await this.fixture.whenStable();\n\n this.fixture.detectChanges();\n return this.fixture.whenStable();\n }\n }\n\n /**\n * Ensures the sort menu is open and selects the menu item with the specified index, if it exists.\n * @param menuItemIndex The index of the menu item to select.\n */\n public async selectMenuItemByIndex(menuItemIndex: number): Promise<void> {\n return this.selectMenuItem((_item: HTMLElement, index: number) => {\n return index === menuItemIndex;\n });\n }\n\n /**\n * Ensures the sort menu is open and selects the menu item with the specified text,\n * if a matching item is available.\n * @param menuItemText The text of the menu item to select.\n */\n public async selectMenuItemByText(menuItemText: string): Promise<void> {\n return this.selectMenuItem((item: HTMLElement) => {\n return SkyAppTestUtility.getText(item) === menuItemText;\n });\n }\n\n //#region helpers\n\n private getDropdownButtonEl(): HTMLButtonElement {\n return this._debugEl.query(By.css('.sky-dropdown-button'))\n ?.nativeElement as HTMLButtonElement;\n }\n\n private getDropdownMenuEl(): HTMLElement {\n return document.querySelector('sky-overlay .sky-dropdown-menu');\n }\n\n private getSortButtonTextEl(): HTMLElement {\n return this._debugEl.query(By.css('.sky-sort-btn-text'))\n ?.nativeElement as HTMLElement;\n }\n\n private getSortItems(): HTMLElement[] {\n const resultNodes = document.querySelectorAll('sky-overlay .sky-sort-item');\n return Array.prototype.slice.call(resultNodes);\n }\n\n /**\n * Ensures the sort menu is open and selects the menu item via a selection predicate,\n * if a matching item is available.\n * @param selectionPredicate The menu item selector method to use.\n */\n private async selectMenuItem(\n selectionPredicate: (item: HTMLElement, index: number) => boolean\n ): Promise<void> {\n // make sure the sort menu is open\n if (!this.menu.isOpen) {\n await this.openMenu();\n }\n\n // find the requested menu item using the selectionPredicate parameter\n const items = this.getSortItems();\n const targetItem = items.find((item: HTMLElement, index: number) =>\n selectionPredicate(item, index)\n );\n\n // if we found the item, select it\n if (targetItem) {\n // we've got the '.sky-sort-item' div, but we want to click it's child button element\n const targetButton = targetItem.querySelector('button');\n targetButton.click();\n\n this.fixture.detectChanges();\n return this.fixture.whenStable();\n }\n }\n\n //#endregion\n}\n"]}
|
|
@@ -4,14 +4,14 @@ import { SkySortModule } from '@skyux/lists';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export class SkySortTestingModule {
|
|
6
6
|
}
|
|
7
|
-
SkySortTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
8
|
-
SkySortTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
9
|
-
SkySortTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
7
|
+
SkySortTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
+
SkySortTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortTestingModule, imports: [NoopAnimationsModule], exports: [SkySortModule] });
|
|
9
|
+
SkySortTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortTestingModule, imports: [[NoopAnimationsModule], SkySortModule] });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkySortTestingModule, decorators: [{
|
|
11
11
|
type: NgModule,
|
|
12
12
|
args: [{
|
|
13
13
|
imports: [NoopAnimationsModule],
|
|
14
14
|
exports: [SkySortModule],
|
|
15
15
|
}]
|
|
16
16
|
}] });
|
|
17
|
-
//# sourceMappingURL=
|
|
17
|
+
//# sourceMappingURL=sort-testing.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-testing.module.js","sourceRoot":"","sources":["../../../../../../../libs/components/lists/testing/src/sort/sort-testing.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;;AAM7C,MAAM,OAAO,oBAAoB;;kHAApB,oBAAoB;mHAApB,oBAAoB,YAHrB,oBAAoB,aACpB,aAAa;mHAEZ,oBAAoB,YAHtB,CAAC,oBAAoB,CAAC,EACrB,aAAa;4FAEZ,oBAAoB;kBAJhC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,oBAAoB,CAAC;oBAC/B,OAAO,EAAE,CAAC,aAAa,CAAC;iBACzB","sourcesContent":["import { NgModule } from '@angular/core';\n\nimport { NoopAnimationsModule } from '@angular/platform-browser/animations';\n\nimport { SkySortModule } from '@skyux/lists';\n\n@NgModule({\n imports: [NoopAnimationsModule],\n exports: [SkySortModule],\n})\nexport class SkySortTestingModule {}\n"]}
|