source: trip-planner-front/node_modules/primeng/esm2020/checkbox/checkbox.mjs@ 8d391a1

Last change on this file since 8d391a1 was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago

adding photos

  • Property mode set to 100644
File size: 21.5 KB
Line 
1import { NgModule, Component, Input, Output, EventEmitter, forwardRef, ViewChild, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
2import { CommonModule } from '@angular/common';
3import { NG_VALUE_ACCESSOR } from '@angular/forms';
4import { ObjectUtils } from 'primeng/utils';
5import * as i0 from "@angular/core";
6import * as i1 from "@angular/common";
7export const CHECKBOX_VALUE_ACCESSOR = {
8 provide: NG_VALUE_ACCESSOR,
9 useExisting: forwardRef(() => Checkbox),
10 multi: true
11};
12export class Checkbox {
13 constructor(cd) {
14 this.cd = cd;
15 this.checkboxIcon = 'pi pi-check';
16 this.trueValue = true;
17 this.falseValue = false;
18 this.onChange = new EventEmitter();
19 this.onModelChange = () => { };
20 this.onModelTouched = () => { };
21 this.focused = false;
22 }
23 onClick(event, checkbox, focus) {
24 event.preventDefault();
25 if (this.disabled || this.readonly) {
26 return;
27 }
28 this.updateModel(event);
29 if (focus) {
30 checkbox.focus();
31 }
32 }
33 updateModel(event) {
34 let newModelValue;
35 if (!this.binary) {
36 if (this.checked())
37 newModelValue = this.model.filter(val => !ObjectUtils.equals(val, this.value));
38 else
39 newModelValue = this.model ? [...this.model, this.value] : [this.value];
40 this.onModelChange(newModelValue);
41 this.model = newModelValue;
42 if (this.formControl) {
43 this.formControl.setValue(newModelValue);
44 }
45 }
46 else {
47 newModelValue = this.checked() ? this.falseValue : this.trueValue;
48 this.model = newModelValue;
49 this.onModelChange(newModelValue);
50 }
51 this.onChange.emit({ checked: newModelValue, originalEvent: event });
52 }
53 handleChange(event) {
54 if (!this.readonly) {
55 this.updateModel(event);
56 }
57 }
58 onFocus() {
59 this.focused = true;
60 }
61 onBlur() {
62 this.focused = false;
63 this.onModelTouched();
64 }
65 focus() {
66 this.inputViewChild.nativeElement.focus();
67 }
68 writeValue(model) {
69 this.model = model;
70 this.cd.markForCheck();
71 }
72 registerOnChange(fn) {
73 this.onModelChange = fn;
74 }
75 registerOnTouched(fn) {
76 this.onModelTouched = fn;
77 }
78 setDisabledState(val) {
79 this.disabled = val;
80 this.cd.markForCheck();
81 }
82 checked() {
83 return this.binary ? this.model === this.trueValue : ObjectUtils.contains(this.value, this.model);
84 }
85}
86Checkbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Checkbox, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
87Checkbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: Checkbox, selector: "p-checkbox", inputs: { value: "value", name: "name", disabled: "disabled", binary: "binary", label: "label", ariaLabelledBy: "ariaLabelledBy", ariaLabel: "ariaLabel", tabindex: "tabindex", inputId: "inputId", style: "style", styleClass: "styleClass", labelStyleClass: "labelStyleClass", formControl: "formControl", checkboxIcon: "checkboxIcon", readonly: "readonly", required: "required", trueValue: "trueValue", falseValue: "falseValue" }, outputs: { onChange: "onChange" }, host: { classAttribute: "p-element" }, providers: [CHECKBOX_VALUE_ACCESSOR], viewQueries: [{ propertyName: "inputViewChild", first: true, predicate: ["cb"], descendants: true }], ngImport: i0, template: `
88 <div [ngStyle]="style" [ngClass]="{'p-checkbox p-component': true, 'p-checkbox-checked': checked(), 'p-checkbox-disabled': disabled, 'p-checkbox-focused': focused}" [class]="styleClass">
89 <div class="p-hidden-accessible">
90 <input #cb type="checkbox" [attr.id]="inputId" [attr.name]="name" [readonly]="readonly" [value]="value" [checked]="checked()" (focus)="onFocus()" (blur)="onBlur()"
91 (change)="handleChange($event)" [disabled]="disabled" [attr.tabindex]="tabindex" [attr.aria-labelledby]="ariaLabelledBy" [attr.aria-label]="ariaLabel" [attr.aria-checked]="checked()" [attr.required]="required">
92 </div>
93 <div class="p-checkbox-box" (click)="onClick($event,cb,true)"
94 [ngClass]="{'p-highlight': checked(), 'p-disabled': disabled, 'p-focus': focused}">
95 <span class="p-checkbox-icon" [ngClass]="checked() ? checkboxIcon : null"></span>
96 </div>
97 </div>
98 <label (click)="onClick($event,cb,true)" [class]="labelStyleClass"
99 [ngClass]="{'p-checkbox-label': true, 'p-checkbox-label-active':checked(), 'p-disabled':disabled, 'p-checkbox-label-focus':focused}"
100 *ngIf="label" [attr.for]="inputId">{{label}}</label>
101 `, isInline: true, styles: [".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"], directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
102i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Checkbox, decorators: [{
103 type: Component,
104 args: [{ selector: 'p-checkbox', template: `
105 <div [ngStyle]="style" [ngClass]="{'p-checkbox p-component': true, 'p-checkbox-checked': checked(), 'p-checkbox-disabled': disabled, 'p-checkbox-focused': focused}" [class]="styleClass">
106 <div class="p-hidden-accessible">
107 <input #cb type="checkbox" [attr.id]="inputId" [attr.name]="name" [readonly]="readonly" [value]="value" [checked]="checked()" (focus)="onFocus()" (blur)="onBlur()"
108 (change)="handleChange($event)" [disabled]="disabled" [attr.tabindex]="tabindex" [attr.aria-labelledby]="ariaLabelledBy" [attr.aria-label]="ariaLabel" [attr.aria-checked]="checked()" [attr.required]="required">
109 </div>
110 <div class="p-checkbox-box" (click)="onClick($event,cb,true)"
111 [ngClass]="{'p-highlight': checked(), 'p-disabled': disabled, 'p-focus': focused}">
112 <span class="p-checkbox-icon" [ngClass]="checked() ? checkboxIcon : null"></span>
113 </div>
114 </div>
115 <label (click)="onClick($event,cb,true)" [class]="labelStyleClass"
116 [ngClass]="{'p-checkbox-label': true, 'p-checkbox-label-active':checked(), 'p-disabled':disabled, 'p-checkbox-label-focus':focused}"
117 *ngIf="label" [attr.for]="inputId">{{label}}</label>
118 `, providers: [CHECKBOX_VALUE_ACCESSOR], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
119 'class': 'p-element'
120 }, styles: [".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"] }]
121 }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { value: [{
122 type: Input
123 }], name: [{
124 type: Input
125 }], disabled: [{
126 type: Input
127 }], binary: [{
128 type: Input
129 }], label: [{
130 type: Input
131 }], ariaLabelledBy: [{
132 type: Input
133 }], ariaLabel: [{
134 type: Input
135 }], tabindex: [{
136 type: Input
137 }], inputId: [{
138 type: Input
139 }], style: [{
140 type: Input
141 }], styleClass: [{
142 type: Input
143 }], labelStyleClass: [{
144 type: Input
145 }], formControl: [{
146 type: Input
147 }], checkboxIcon: [{
148 type: Input
149 }], readonly: [{
150 type: Input
151 }], required: [{
152 type: Input
153 }], trueValue: [{
154 type: Input
155 }], falseValue: [{
156 type: Input
157 }], inputViewChild: [{
158 type: ViewChild,
159 args: ['cb']
160 }], onChange: [{
161 type: Output
162 }] } });
163export class CheckboxModule {
164}
165CheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
166CheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CheckboxModule, declarations: [Checkbox], imports: [CommonModule], exports: [Checkbox] });
167CheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CheckboxModule, imports: [[CommonModule]] });
168i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CheckboxModule, decorators: [{
169 type: NgModule,
170 args: [{
171 imports: [CommonModule],
172 exports: [Checkbox],
173 declarations: [Checkbox]
174 }]
175 }] });
176//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvY2hlY2tib3gvY2hlY2tib3gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxTQUFTLEVBQUMsS0FBSyxFQUFDLE1BQU0sRUFBQyxZQUFZLEVBQUMsVUFBVSxFQUFtQixTQUFTLEVBQVksdUJBQXVCLEVBQUUsaUJBQWlCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDeEssT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQzdDLE9BQU8sRUFBQyxpQkFBaUIsRUFBb0MsTUFBTSxnQkFBZ0IsQ0FBQztBQUNwRixPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFFNUMsTUFBTSxDQUFDLE1BQU0sdUJBQXVCLEdBQVE7SUFDMUMsT0FBTyxFQUFFLGlCQUFpQjtJQUMxQixXQUFXLEVBQUUsVUFBVSxDQUFDLEdBQUcsRUFBRSxDQUFDL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XRlY3RvclJlZikge31cblxuICAgIG9uQ2xpY2soZXZlbnQsY2hlY2tib3gsZm9jdXM6Ym9vbGVhbikge1xuICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuXG4gICAgICAgIGlmICh0aGlzLmRpc2FibGVkIHx8IHRoaXMucmVhZG9ubHkpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMudXBkYXRlTW9kZWwoZXZlbnQpO1xuXG4gICAgICAgIGlmIChmb2N1cykge1xuICAgICAgICAgICAgY2hlY2tib3guZm9jdXMoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHVwZGF0ZU1vZGVsKGV2ZW50KSB7XG4gICAgICAgIGxldCBuZXdNb2RlbFZhbHVlO1xuXG4gICAgICAgIGlmICghdGhpcy5iaW5hcnkpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLmNoZWNrZWQoKSlcbiAgICAgICAgICAgICAgICBuZXdNb2RlbFZhbHVlID0gdGhpcy5tb2RlbC5maWx0ZXIodmFsID0+ICFPYmplY3RVdGlscy5lcXVhbHModmFsLCB0aGlzLnZhbHVlKSk7XG4gICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgbmV3TW9kZWxWYWx1ZSA9IHRoaXMubW9kZWwgPyBbLi4udGhpcy5tb2RlbCwgdGhpcy52YWx1ZV0gOiBbdGhpcy52YWx1ZV07XG5cbiAgICAgICAgICAgIHRoaXMub25Nb2RlbENoYW5nZShuZXdNb2RlbFZhbHVlKTtcbiAgICAgICAgICAgIHRoaXMubW9kZWwgPSBuZXdNb2RlbFZhbHVlO1xuXG4gICAgICAgICAgICBpZiAodGhpcy5mb3JtQ29udHJvbCkge1xuICAgICAgICAgICAgICAgIHRoaXMuZm9ybUNvbnRyb2wuc2V0VmFsdWUobmV3TW9kZWxWYWx1ZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICA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5jdGlvbik6IHZvaWQge1xuICAgICAgICB0aGlzLm9uTW9kZWxUb3VjaGVkID0gZm47XG4gICAgfVxuXG4gICAgc2V0RGlzYWJsZWRTdGF0ZSh2YWw6IGJvb2xlYW4pOiB2b2lkIHtcbiAgICAgICAgdGhpcy5kaXNhYmxlZCA9IHZhbDtcbiAgICAgICAgdGhpcy5jZC5tYXJrRm9yQ2hlY2soKTtcbiAgICB9XG5cbiAgICBjaGVja2VkKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5iaW5hcnkgPyB0aGlzLm1vZGVsID09PSB0aGlzLnRydWVWYWx1ZSA6IE9iamVjdFV0aWxzLmNvbnRhaW5zKHRoaXMudmFsdWUsIHRoaXMubW9kZWwpO1xuICAgIH1cbn1cblxuQE5nTW9kdWxlKHtcbiAgICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcbiAgICBleHBvcnRzOiBbQ2hlY2tib3hdLFxuICAgIGRlY2xhcmF0aW9uczogW0NoZWNrYm94XVxufSlcbmV4cG9ydCBjbGFzcyBDaGVja2JveE1vZHVsZSB7IH1cbiJdfQ==
Note: See TracBrowser for help on using the repository browser.