@hmcts/rpx-xui-common-lib 1.7.21 → 1.7.23-EUI-2065
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/bundles/hmcts-rpx-xui-common-lib.umd.js +40 -122
- package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
- package/esm2015/hmcts-rpx-xui-common-lib.js +25 -27
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +2 -2
- package/esm2015/lib/components/selected-case/selected-case.component.js +5 -2
- package/esm2015/lib/components/selected-case-list/selected-case-list.component.js +9 -3
- package/esm2015/lib/components/share-case/share-case.component.js +10 -3
- package/esm2015/lib/exui-common-lib.module.js +1 -5
- package/esm2015/lib/models/filter.model.js +2 -2
- package/esm2015/lib/models/person.model.js +3 -1
- package/esm5/hmcts-rpx-xui-common-lib.js +25 -27
- package/esm5/lib/components/generic-filter/generic-filter.component.js +2 -2
- package/esm5/lib/components/selected-case/selected-case.component.js +5 -2
- package/esm5/lib/components/selected-case-list/selected-case-list.component.js +9 -3
- package/esm5/lib/components/share-case/share-case.component.js +10 -3
- package/esm5/lib/exui-common-lib.module.js +1 -5
- package/esm5/lib/models/filter.model.js +2 -2
- package/esm5/lib/models/person.model.js +3 -1
- package/fesm2015/hmcts-rpx-xui-common-lib.js +17 -86
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +17 -97
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.d.ts +24 -26
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/selected-case/selected-case.component.d.ts +1 -0
- package/lib/components/selected-case-list/selected-case-list.component.d.ts +1 -0
- package/lib/components/share-case/share-case.component.d.ts +2 -0
- package/lib/models/filter.model.d.ts +2 -2
- package/lib/models/person.model.d.ts +2 -0
- package/package.json +1 -1
- package/esm2015/lib/components/find-service/find-service.component.js +0 -59
- package/esm2015/lib/components/search-service/search-service.component.js +0 -60
- package/esm5/lib/components/find-service/find-service.component.js +0 -64
- package/esm5/lib/components/search-service/search-service.component.js +0 -68
- package/lib/components/find-service/find-service.component.d.ts +0 -14
- package/lib/components/search-service/search-service.component.d.ts +0 -13
|
@@ -9,6 +9,7 @@ export declare class SelectedCaseComponent implements OnInit, OnChanges {
|
|
|
9
9
|
selectedUser: UserDetails;
|
|
10
10
|
opened: boolean;
|
|
11
11
|
removeUserFromCaseToggleOn: boolean;
|
|
12
|
+
caseCount: number;
|
|
12
13
|
unselect: EventEmitter<SharedCase>;
|
|
13
14
|
synchronizeStore: EventEmitter<any>;
|
|
14
15
|
shareCases: SharedCase[];
|
|
@@ -5,6 +5,7 @@ import { CaseSharingStateService } from '../../services/case-sharing-state/case-
|
|
|
5
5
|
export declare class SelectedCaseListComponent implements OnInit {
|
|
6
6
|
private readonly stateService;
|
|
7
7
|
shareCases: SharedCase[];
|
|
8
|
+
caseCount: number;
|
|
8
9
|
shareCases$: Observable<SharedCase[]>;
|
|
9
10
|
removeUserFromCaseToggleOn: boolean;
|
|
10
11
|
toConfirm: boolean;
|
|
@@ -10,6 +10,8 @@ export declare class ShareCaseComponent implements OnInit {
|
|
|
10
10
|
shareCases$: Observable<SharedCase[]>;
|
|
11
11
|
users: UserDetails[];
|
|
12
12
|
confirmLink: string;
|
|
13
|
+
addUserLabel: string;
|
|
14
|
+
showRemoveUsers: boolean;
|
|
13
15
|
unselect: EventEmitter<SharedCase>;
|
|
14
16
|
synchronizeStore: EventEmitter<any>;
|
|
15
17
|
private selectedUser;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BookingCheckType } from './location.model';
|
|
2
2
|
import { PersonRole } from './person.model';
|
|
3
|
-
export declare type FilterFieldType = 'checkbox' | 'radio' | 'select' | 'find-person' | 'find-location' | 'checkbox-large'
|
|
3
|
+
export declare type FilterFieldType = 'checkbox' | 'radio' | 'select' | 'find-person' | 'find-location' | 'checkbox-large';
|
|
4
4
|
export declare type FilterPersistence = 'local' | 'session' | 'memory';
|
|
5
5
|
export interface FilterConfig {
|
|
6
6
|
id: string;
|
|
@@ -28,7 +28,7 @@ export interface FilterFieldConfig {
|
|
|
28
28
|
lineBreakBefore?: boolean;
|
|
29
29
|
showCondition?: string;
|
|
30
30
|
enableCondition?: string;
|
|
31
|
-
|
|
31
|
+
enableAddLocationButton?: boolean;
|
|
32
32
|
changeResetFields?: string[];
|
|
33
33
|
findPersonField?: string;
|
|
34
34
|
findLocationField?: string;
|
|
@@ -33,11 +33,13 @@ export declare enum PersonRole {
|
|
|
33
33
|
JUDICIAL = "Judicial",
|
|
34
34
|
CASEWORKER = "Legal Ops",
|
|
35
35
|
ADMIN = "Admin",
|
|
36
|
+
CTSC = "CTSC User",
|
|
36
37
|
ALL = "All"
|
|
37
38
|
}
|
|
38
39
|
export declare enum RoleCategory {
|
|
39
40
|
JUDICIAL = "JUDICIAL",
|
|
40
41
|
CASEWORKER = "LEGAL_OPERATIONS",
|
|
41
42
|
ADMIN = "ADMIN",
|
|
43
|
+
CTSC = "CTSC",
|
|
42
44
|
ALL = "ALL"
|
|
43
45
|
}
|
package/package.json
CHANGED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/components/find-service/find-service.component.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { Component, Input } from '@angular/core';
|
|
7
|
-
import { FormGroup } from '@angular/forms';
|
|
8
|
-
export class FindServiceComponent {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.serviceTitle = 'Search for a service by name';
|
|
11
|
-
this.enableAddServiceButton = true;
|
|
12
|
-
this.disableInputField = false;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @return {?}
|
|
16
|
-
*/
|
|
17
|
-
addService() {
|
|
18
|
-
// Todo
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
FindServiceComponent.decorators = [
|
|
22
|
-
{ type: Component, args: [{
|
|
23
|
-
selector: 'xuilib-find-service',
|
|
24
|
-
template: "<div class=\"service-picker-custom\">\n <div class=\"search-service\">\n <div>\n <label id=\"input-selected-service-label\" *ngIf=\"serviceTitle\">{{serviceTitle}}</label>\n </div>\n <exui-search-service class=\"search-service\"\n [services]=\"services\"\n [selectedServices]=\"selectedServices\"\n [delay]=\"300\"\n [disabled]=\"disabled\"></exui-search-service>\n <a href=\"javascript:void(0)\" (click)=\"addService()\" class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\" \n data-module=\"govuk-button\" *ngIf=\"enableAddServiceButton\" id=\"add-service\">\n Add\n </a>\n </div>\n <ul class=\"hmcts-filter-tags selection-container\" *ngIf=\"field.maxSelected != 1\">\n <li class=\"service-selection\" *ngFor=\"let selection of selectedServices\">\n <a class=\"hmcts-filter__tag\" href=\"javascript:void(0)\">\n {{ selection.name }}\n </a>\n </li>\n </ul>\n </div>",
|
|
25
|
-
styles: ["#add-service{background-color:#ddd}"]
|
|
26
|
-
}] }
|
|
27
|
-
];
|
|
28
|
-
FindServiceComponent.propDecorators = {
|
|
29
|
-
field: [{ type: Input }],
|
|
30
|
-
fields: [{ type: Input }],
|
|
31
|
-
serviceTitle: [{ type: Input }],
|
|
32
|
-
form: [{ type: Input }],
|
|
33
|
-
services: [{ type: Input }],
|
|
34
|
-
selectedServices: [{ type: Input }],
|
|
35
|
-
disabled: [{ type: Input }],
|
|
36
|
-
enableAddServiceButton: [{ type: Input }],
|
|
37
|
-
disableInputField: [{ type: Input }]
|
|
38
|
-
};
|
|
39
|
-
if (false) {
|
|
40
|
-
/** @type {?} */
|
|
41
|
-
FindServiceComponent.prototype.field;
|
|
42
|
-
/** @type {?} */
|
|
43
|
-
FindServiceComponent.prototype.fields;
|
|
44
|
-
/** @type {?} */
|
|
45
|
-
FindServiceComponent.prototype.serviceTitle;
|
|
46
|
-
/** @type {?} */
|
|
47
|
-
FindServiceComponent.prototype.form;
|
|
48
|
-
/** @type {?} */
|
|
49
|
-
FindServiceComponent.prototype.services;
|
|
50
|
-
/** @type {?} */
|
|
51
|
-
FindServiceComponent.prototype.selectedServices;
|
|
52
|
-
/** @type {?} */
|
|
53
|
-
FindServiceComponent.prototype.disabled;
|
|
54
|
-
/** @type {?} */
|
|
55
|
-
FindServiceComponent.prototype.enableAddServiceButton;
|
|
56
|
-
/** @type {?} */
|
|
57
|
-
FindServiceComponent.prototype.disableInputField;
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmluZC1zZXJ2aWNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9ycHgteHVpLWNvbW1vbi1saWIvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9maW5kLXNlcnZpY2UvZmluZC1zZXJ2aWNlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQVEzQyxNQUFNLE9BQU8sb0JBQW9CO0lBTGpDO1FBUW9CLGlCQUFZLEdBQUcsOEJBQThCLENBQUM7UUFLOUMsMkJBQXNCLEdBQVksSUFBSSxDQUFDO1FBQ3ZDLHNCQUFpQixHQUFHLEtBQUssQ0FBQztJQUs5QyxDQUFDOzs7O0lBSFUsVUFBVTtRQUNmLE9BQU87SUFDVCxDQUFDOzs7WUFsQkosU0FBUyxTQUFDO2dCQUNULFFBQVEsRU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ICAgQElucHV0KCkgcHVibGljIGZvcm06IEZvcm1Hcm91cDtcbiAgICBASW5wdXQoKSBwdWJsaWMgc2VydmljZXM6IGFueTtcbiAgICBASW5wdXQoKSBwdWJsaWMgc2VsZWN0ZWRTZXJ2aWNlczogYW55O1xuICAgIEBJbnB1dCgpIHB1YmxpYyBkaXNhYmxlZDogYW55O1xuICAgIEBJbnB1dCgpIHB1YmxpYyBlbmFibGVBZGRTZXJ2aWNlQnV0dG9uOiBib29sZWFuID0gdHJ1ZTtcbiAgICBASW5wdXQoKSBwdWJsaWMgZGlzYWJsZUlucHV0RmllbGQgPSBmYWxzZTtcblxuICAgIHB1YmxpYyBhZGRTZXJ2aWNlKCkge1xuICAgICAgLy8gVG9kb1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/components/search-service/search-service.component.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { Component, Input } from '@angular/core';
|
|
7
|
-
import { FormGroup } from '@angular/forms';
|
|
8
|
-
export class SearchServiceComponent {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.showAutocomplete = false;
|
|
11
|
-
this.minSearchCharacters = 3;
|
|
12
|
-
this.term = '';
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @return {?}
|
|
16
|
-
*/
|
|
17
|
-
onInput() {
|
|
18
|
-
// Todo
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @return {?}
|
|
22
|
-
*/
|
|
23
|
-
onSelectionChange() {
|
|
24
|
-
// Todo
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
SearchServiceComponent.decorators = [
|
|
28
|
-
{ type: Component, args: [{
|
|
29
|
-
selector: 'exui-search-service',
|
|
30
|
-
template: "<div class=\"auto-complete-container\">\n <input\n id=\"inputServiceSearch\"\n (input)=\"onInput()\"\n [formControl]=\"form.controls.searchTerm\"\n [matAutocomplete]=\"autoSearchService\"\n class=\"govuk-input\"\n [attr.disabled]=\"disabled\">\n <mat-autocomplete class=\"mat-autocomplete-panel-extend\" autoActiveFirstOption #autoSearchService=\"matAutocomplete\">\n <mat-option *ngFor=\"let service of services\" (onSelectionChange)=\"onSelectionChange()\">\n {{ service.name }}\n </mat-option>\n <mat-option *ngIf=\"!services.length && showAutocomplete && term && term.length >= this.minSearchCharacters\">No results found</mat-option>\n </mat-autocomplete>\n</div>\n",
|
|
31
|
-
styles: [".autocomplete__input--show-all-values{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:rgba(0,0,0,.256863) 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.31579}}.div-action{display:inline-block}.add-location{display:inline}.remove-location-button{margin:5px}.hide-autocomplete{display:none}.auto-complete-container{min-width:250px;display:inline-block;margin-right:4px}.autocomplete__input{line-height:24px;font-size:19px}"]
|
|
32
|
-
}] }
|
|
33
|
-
];
|
|
34
|
-
SearchServiceComponent.propDecorators = {
|
|
35
|
-
services: [{ type: Input }],
|
|
36
|
-
selectedServices: [{ type: Input }],
|
|
37
|
-
disabled: [{ type: Input }],
|
|
38
|
-
delay: [{ type: Input }],
|
|
39
|
-
form: [{ type: Input }],
|
|
40
|
-
showAutocomplete: [{ type: Input }]
|
|
41
|
-
};
|
|
42
|
-
if (false) {
|
|
43
|
-
/** @type {?} */
|
|
44
|
-
SearchServiceComponent.prototype.services;
|
|
45
|
-
/** @type {?} */
|
|
46
|
-
SearchServiceComponent.prototype.selectedServices;
|
|
47
|
-
/** @type {?} */
|
|
48
|
-
SearchServiceComponent.prototype.disabled;
|
|
49
|
-
/** @type {?} */
|
|
50
|
-
SearchServiceComponent.prototype.delay;
|
|
51
|
-
/** @type {?} */
|
|
52
|
-
SearchServiceComponent.prototype.form;
|
|
53
|
-
/** @type {?} */
|
|
54
|
-
SearchServiceComponent.prototype.showAutocomplete;
|
|
55
|
-
/** @type {?} */
|
|
56
|
-
SearchServiceComponent.prototype.minSearchCharacters;
|
|
57
|
-
/** @type {?} */
|
|
58
|
-
SearchServiceComponent.prototype.term;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLXNlcnZpY2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGhtY3RzL3JweC14dWktY29tbW9uLWxpYi8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3NlYXJjaC1zZXJ2aWNlL3NlYXJjaC1zZXJ2aWNlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0F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U2VydmljZUNvbXBvbmVudCB7XG4gIEBJbnB1dCgpIHB1YmxpYyBzZXJ2aWNlczogYW55O1xuICBASW5wdXQoKSBwdWJsaWMgc2VsZWN0ZWRTZXJ2aWNlczogYW55O1xuICBASW5wdXQoKSBwdWJsaWMgZGlzYWJsZWQ6IGFueTtcbiAgQElucHV0KCkgcHVibGljIGRlbGF5OiBhbnk7XG4gIEBJbnB1dCgpIHB1YmxpYyBmb3JtOiBGb3JtR3JvdXA7XG4gIEBJbnB1dCgpIHB1YmxpYyBzaG93QXV0b2NvbXBsZXRlOiBib29sZWFuID0gZmFsc2U7XG4gIHB1YmxpYyByZWFkb25seSBtaW5TZWFyY2hDaGFyYWN0ZXJzID0gMztcbiAgcHVibGljIHRlcm06IHN0cmluZyA9ICcnO1xuXG4gIHB1YmxpYyBvbklucHV0KCk6IHZvaWQge1xuICAgIC8vIFRvZG9cbiAgfVxuXG4gIHB1YmxpYyBvblNlbGVjdGlvbkNoYW5nZSgpIHtcbiAgICAvLyBUb2RvXG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/components/find-service/find-service.component.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { Component, Input } from '@angular/core';
|
|
7
|
-
import { FormGroup } from '@angular/forms';
|
|
8
|
-
var FindServiceComponent = /** @class */ (function () {
|
|
9
|
-
function FindServiceComponent() {
|
|
10
|
-
this.serviceTitle = 'Search for a service by name';
|
|
11
|
-
this.enableAddServiceButton = true;
|
|
12
|
-
this.disableInputField = false;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @return {?}
|
|
16
|
-
*/
|
|
17
|
-
FindServiceComponent.prototype.addService = /**
|
|
18
|
-
* @return {?}
|
|
19
|
-
*/
|
|
20
|
-
function () {
|
|
21
|
-
// Todo
|
|
22
|
-
};
|
|
23
|
-
FindServiceComponent.decorators = [
|
|
24
|
-
{ type: Component, args: [{
|
|
25
|
-
selector: 'xuilib-find-service',
|
|
26
|
-
template: "<div class=\"service-picker-custom\">\n <div class=\"search-service\">\n <div>\n <label id=\"input-selected-service-label\" *ngIf=\"serviceTitle\">{{serviceTitle}}</label>\n </div>\n <exui-search-service class=\"search-service\"\n [services]=\"services\"\n [selectedServices]=\"selectedServices\"\n [delay]=\"300\"\n [disabled]=\"disabled\"></exui-search-service>\n <a href=\"javascript:void(0)\" (click)=\"addService()\" class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\" \n data-module=\"govuk-button\" *ngIf=\"enableAddServiceButton\" id=\"add-service\">\n Add\n </a>\n </div>\n <ul class=\"hmcts-filter-tags selection-container\" *ngIf=\"field.maxSelected != 1\">\n <li class=\"service-selection\" *ngFor=\"let selection of selectedServices\">\n <a class=\"hmcts-filter__tag\" href=\"javascript:void(0)\">\n {{ selection.name }}\n </a>\n </li>\n </ul>\n </div>",
|
|
27
|
-
styles: ["#add-service{background-color:#ddd}"]
|
|
28
|
-
}] }
|
|
29
|
-
];
|
|
30
|
-
FindServiceComponent.propDecorators = {
|
|
31
|
-
field: [{ type: Input }],
|
|
32
|
-
fields: [{ type: Input }],
|
|
33
|
-
serviceTitle: [{ type: Input }],
|
|
34
|
-
form: [{ type: Input }],
|
|
35
|
-
services: [{ type: Input }],
|
|
36
|
-
selectedServices: [{ type: Input }],
|
|
37
|
-
disabled: [{ type: Input }],
|
|
38
|
-
enableAddServiceButton: [{ type: Input }],
|
|
39
|
-
disableInputField: [{ type: Input }]
|
|
40
|
-
};
|
|
41
|
-
return FindServiceComponent;
|
|
42
|
-
}());
|
|
43
|
-
export { FindServiceComponent };
|
|
44
|
-
if (false) {
|
|
45
|
-
/** @type {?} */
|
|
46
|
-
FindServiceComponent.prototype.field;
|
|
47
|
-
/** @type {?} */
|
|
48
|
-
FindServiceComponent.prototype.fields;
|
|
49
|
-
/** @type {?} */
|
|
50
|
-
FindServiceComponent.prototype.serviceTitle;
|
|
51
|
-
/** @type {?} */
|
|
52
|
-
FindServiceComponent.prototype.form;
|
|
53
|
-
/** @type {?} */
|
|
54
|
-
FindServiceComponent.prototype.services;
|
|
55
|
-
/** @type {?} */
|
|
56
|
-
FindServiceComponent.prototype.selectedServices;
|
|
57
|
-
/** @type {?} */
|
|
58
|
-
FindServiceComponent.prototype.disabled;
|
|
59
|
-
/** @type {?} */
|
|
60
|
-
FindServiceComponent.prototype.enableAddServiceButton;
|
|
61
|
-
/** @type {?} */
|
|
62
|
-
FindServiceComponent.prototype.disableInputField;
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmluZC1zZXJ2aWNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9ycHgteHVpLWNvbW1vbi1saWIvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9maW5kLXNlcnZpY2UvZmluZC1zZXJ2aWNlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUczQztJQUFBO1FBUW9CLGlCQUFZLEdBQUcsOEJBQThCLENBQUM7UUFLOUMsMkJBQXNCLEdBQVksSUFBSSxDQUFDO1FBQ3ZDLHNCQUFpQixHQUFHLEtBQUssQ0FBQztJQUs5QyxDQUFDOzs7O0lBSFUseUNBQVU7OztJQUFqQjtRQUNFLE9BQU87SUFDVCxDQUFDOztnQkFsQkosU0FBUyxTQUFDO29CQUNULFFBQVEsRUFBRSxxQkFBcUI7b0JBQy9CLHlrQ0FBNEM7O2lC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UgYnkgbmFtZSc7XG4gICAgQElucHV0KCkgcHVibGljIGZvcm06IEZvcm1Hcm91cDtcbiAgICBASW5wdXQoKSBwdWJsaWMgc2VydmljZXM6IGFueTtcbiAgICBASW5wdXQoKSBwdWJsaWMgc2VsZWN0ZWRTZXJ2aWNlczogYW55O1xuICAgIEBJbnB1dCgpIHB1YmxpYyBkaXNhYmxlZDogYW55O1xuICAgIEBJbnB1dCgpIHB1YmxpYyBlbmFibGVBZGRTZXJ2aWNlQnV0dG9uOiBib29sZWFuID0gdHJ1ZTtcbiAgICBASW5wdXQoKSBwdWJsaWMgZGlzYWJsZUlucHV0RmllbGQgPSBmYWxzZTtcblxuICAgIHB1YmxpYyBhZGRTZXJ2aWNlKCkge1xuICAgICAgLy8gVG9kb1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/components/search-service/search-service.component.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import { Component, Input } from '@angular/core';
|
|
7
|
-
import { FormGroup } from '@angular/forms';
|
|
8
|
-
var SearchServiceComponent = /** @class */ (function () {
|
|
9
|
-
function SearchServiceComponent() {
|
|
10
|
-
this.showAutocomplete = false;
|
|
11
|
-
this.minSearchCharacters = 3;
|
|
12
|
-
this.term = '';
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @return {?}
|
|
16
|
-
*/
|
|
17
|
-
SearchServiceComponent.prototype.onInput = /**
|
|
18
|
-
* @return {?}
|
|
19
|
-
*/
|
|
20
|
-
function () {
|
|
21
|
-
// Todo
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @return {?}
|
|
25
|
-
*/
|
|
26
|
-
SearchServiceComponent.prototype.onSelectionChange = /**
|
|
27
|
-
* @return {?}
|
|
28
|
-
*/
|
|
29
|
-
function () {
|
|
30
|
-
// Todo
|
|
31
|
-
};
|
|
32
|
-
SearchServiceComponent.decorators = [
|
|
33
|
-
{ type: Component, args: [{
|
|
34
|
-
selector: 'exui-search-service',
|
|
35
|
-
template: "<div class=\"auto-complete-container\">\n <input\n id=\"inputServiceSearch\"\n (input)=\"onInput()\"\n [formControl]=\"form.controls.searchTerm\"\n [matAutocomplete]=\"autoSearchService\"\n class=\"govuk-input\"\n [attr.disabled]=\"disabled\">\n <mat-autocomplete class=\"mat-autocomplete-panel-extend\" autoActiveFirstOption #autoSearchService=\"matAutocomplete\">\n <mat-option *ngFor=\"let service of services\" (onSelectionChange)=\"onSelectionChange()\">\n {{ service.name }}\n </mat-option>\n <mat-option *ngIf=\"!services.length && showAutocomplete && term && term.length >= this.minSearchCharacters\">No results found</mat-option>\n </mat-autocomplete>\n</div>\n",
|
|
36
|
-
styles: [".autocomplete__input--show-all-values{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:rgba(0,0,0,.256863) 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.31579}}.div-action{display:inline-block}.add-location{display:inline}.remove-location-button{margin:5px}.hide-autocomplete{display:none}.auto-complete-container{min-width:250px;display:inline-block;margin-right:4px}.autocomplete__input{line-height:24px;font-size:19px}"]
|
|
37
|
-
}] }
|
|
38
|
-
];
|
|
39
|
-
SearchServiceComponent.propDecorators = {
|
|
40
|
-
services: [{ type: Input }],
|
|
41
|
-
selectedServices: [{ type: Input }],
|
|
42
|
-
disabled: [{ type: Input }],
|
|
43
|
-
delay: [{ type: Input }],
|
|
44
|
-
form: [{ type: Input }],
|
|
45
|
-
showAutocomplete: [{ type: Input }]
|
|
46
|
-
};
|
|
47
|
-
return SearchServiceComponent;
|
|
48
|
-
}());
|
|
49
|
-
export { SearchServiceComponent };
|
|
50
|
-
if (false) {
|
|
51
|
-
/** @type {?} */
|
|
52
|
-
SearchServiceComponent.prototype.services;
|
|
53
|
-
/** @type {?} */
|
|
54
|
-
SearchServiceComponent.prototype.selectedServices;
|
|
55
|
-
/** @type {?} */
|
|
56
|
-
SearchServiceComponent.prototype.disabled;
|
|
57
|
-
/** @type {?} */
|
|
58
|
-
SearchServiceComponent.prototype.delay;
|
|
59
|
-
/** @type {?} */
|
|
60
|
-
SearchServiceComponent.prototype.form;
|
|
61
|
-
/** @type {?} */
|
|
62
|
-
SearchServiceComponent.prototype.showAutocomplete;
|
|
63
|
-
/** @type {?} */
|
|
64
|
-
SearchServiceComponent.prototype.minSearchCharacters;
|
|
65
|
-
/** @type {?} */
|
|
66
|
-
SearchServiceComponent.prototype.term;
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLXNlcnZpY2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8v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AYW5ndWxhci9mb3Jtcyc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2V4dWktc2VhcmNoLXNlcnZpY2UnLFxuICB0ZW1wbGF0ZVVybDogJy4vc2VhcmNoLXNlcnZpY2UuY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9zZWFyY2gtc2VydmljZS5jb21wb25lbnQuc2NzcyddXG59KVxuZXhwb3J0IGNsYXNzIFNlYXJjaFNlcnZpY2VDb21wb25lbnQge1xuICBASW5wdXQoKSBwdWJsaWMgc2VydmljZXM6IGFueTtcbiAgQElucHV0KCkgcHVibGljIHNlbGVjdGVkU2VydmljZXM6IGFueTtcbiAgQElucHV0KCkgcHVibGljIGRpc2FibGVkOiBhbnk7XG4gIEBJbnB1dCgpIHB1YmxpYyBkZWxheTogYW55O1xuICBASW5wdXQoKSBwdWJsaWMgZm9ybTogRm9ybUdyb3VwO1xuICBASW5wdXQoKSBwdWJsaWMgc2hvd0F1dG9jb21wbGV0ZTogYm9vbGVhbiA9IGZhbHNlO1xuICBwdWJsaWMgcmVhZG9ubHkgbWluU2VhcmNoQ2hhcmFjdGVycyA9IDM7XG4gIHB1YmxpYyB0ZXJtOiBzdHJpbmcgPSAnJztcblxuICBwdWJsaWMgb25JbnB1dCgpOiB2b2lkIHtcbiAgICAvLyBUb2RvXG4gIH1cblxuICBwdWJsaWMgb25TZWxlY3Rpb25DaGFuZ2UoKSB7XG4gICAgLy8gVG9kb1xuICB9XG59XG4iXX0=
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FormGroup } from '@angular/forms';
|
|
2
|
-
import { FilterFieldConfig } from '../../models';
|
|
3
|
-
export declare class FindServiceComponent {
|
|
4
|
-
field: FilterFieldConfig;
|
|
5
|
-
fields: FilterFieldConfig[];
|
|
6
|
-
serviceTitle: string;
|
|
7
|
-
form: FormGroup;
|
|
8
|
-
services: any;
|
|
9
|
-
selectedServices: any;
|
|
10
|
-
disabled: any;
|
|
11
|
-
enableAddServiceButton: boolean;
|
|
12
|
-
disableInputField: boolean;
|
|
13
|
-
addService(): void;
|
|
14
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FormGroup } from '@angular/forms';
|
|
2
|
-
export declare class SearchServiceComponent {
|
|
3
|
-
services: any;
|
|
4
|
-
selectedServices: any;
|
|
5
|
-
disabled: any;
|
|
6
|
-
delay: any;
|
|
7
|
-
form: FormGroup;
|
|
8
|
-
showAutocomplete: boolean;
|
|
9
|
-
readonly minSearchCharacters = 3;
|
|
10
|
-
term: string;
|
|
11
|
-
onInput(): void;
|
|
12
|
-
onSelectionChange(): void;
|
|
13
|
-
}
|