You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hai-oil-web/.angular/cache/17.0.7/vite/deps/ng-zorro-antd_checkbox.js.map

8 lines
30 KiB

7 months ago
{
"version": 3,
"sources": ["../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-checkbox.mjs"],
"sourcesContent": ["import { __decorate } from 'tslib';\nimport * as i0 from '@angular/core';\nimport { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Output, forwardRef, Optional, ViewChild, Input, NgModule } from '@angular/core';\nimport * as i5 from '@angular/forms';\nimport { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';\nimport { Subject, fromEvent } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { InputBoolean } from 'ng-zorro-antd/core/util';\nimport * as i2 from '@angular/cdk/a11y';\nimport * as i3 from '@angular/cdk/bidi';\nimport * as i4 from 'ng-zorro-antd/core/form';\nimport { NgForOf } from '@angular/common';\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nconst _c0 = [\"*\"];\nconst _c1 = [\"inputElement\"];\nconst _c2 = [\"nz-checkbox\", \"\"];\nfunction NzCheckboxGroupComponent_label_0_Template(rf, ctx) {\n if (rf & 1) {\n const _r3 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"label\", 1);\n i0.ɵɵlistener(\"nzCheckedChange\", function NzCheckboxGroupComponent_label_0_Template_label_nzCheckedChange_0_listener($event) {\n const restoredCtx = i0.ɵɵrestoreView(_r3);\n const o_r1 = restoredCtx.$implicit;\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onCheckedChange(o_r1, $event));\n });\n i0.ɵɵelementStart(1, \"span\");\n i0.ɵɵtext(2);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const o_r1 = ctx.$implicit;\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"nzDisabled\", o_r1.disabled || ctx_r0.nzDisabled)(\"nzChecked\", o_r1.checked);\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate(o_r1.label);\n }\n}\nclass NzCheckboxWrapperComponent {\n constructor() {\n this.nzOnChange = new EventEmitter();\n this.checkboxList = [];\n }\n addCheckbox(value) {\n this.checkboxList.push(value);\n }\n removeCheckbox(value) {\n this.checkboxList.splice(this.checkboxList.indexOf(value), 1);\n }\n onChange() {\n const listOfCheckedValue = this.checkboxList.filter(item => item.nzChecked).map(item => item.nzValue);\n this.nzOnChange.emit(listOfCheckedValue);\n }\n static {\n this.ɵfac = function NzCheckboxWrapperComponent_Factory(t) {\n return new (t || NzCheckboxWrapperComponent)();\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: NzCheckboxWrapperComponent,\n selectors: [[\"nz-checkbox-wrapper\"]],\n hostAttrs: [1, \"ant-checkbox-group\"],\n outputs: {\n nzOnChange: \"nzOnChange\"\n },\n exportAs: [\"nzCheckboxWrapper\"],\n standalone: true,\n features: [i0.ɵɵStandaloneFeature],\n ngContentSelectors: _c0,\n decls: 1,\n vars: 0,\n template: function NzCheckboxWrapperComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n }\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzCheckboxWrapperComponent, [{\n type: Component,\n args: [{\n selector: 'nz-checkbox-wrapper',\n exportAs: 'nzCheckboxWrapper',\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n template: ` <ng-content></ng-content> `,\n host: {\n class: 'ant-checkbox-group'\n },\n standalone: true\n }]\n }], null, {\n nzOnChange: [{\n type: Output\n }]\n });\n})();\nclass NzCheckboxComponent {\n innerCheckedChange(checked) {\n if (!this.nzDisabled) {\n this.nzChecked = checked;\n this.onChange(this.nzChecked);\n this.nzCheckedChange.emit(this.nzChecked);\n if (this.nzCheckboxWrapperComponent) {\n this.nzCheckboxWrapperComponent.onChange();\n }\n }\n }\n writeValue(va
7 months ago
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,IAAM,MAAM,CAAC,GAAG;AAChB,IAAM,MAAM,CAAC,cAAc;AAC3B,IAAM,MAAM,CAAC,eAAe,EAAE;AAC9B,SAAS,0CAA0C,IAAI,KAAK;AAC1D,MAAI,KAAK,GAAG;AACV,UAAM,MAAS,iBAAiB;AAChC,IAAG,eAAe,GAAG,SAAS,CAAC;AAC/B,IAAG,WAAW,mBAAmB,SAAS,2EAA2E,QAAQ;AAC3H,YAAM,cAAiB,cAAc,GAAG;AACxC,YAAM,OAAO,YAAY;AACzB,YAAM,SAAY,cAAc;AAChC,aAAU,YAAY,OAAO,gBAAgB,MAAM,MAAM,CAAC;AAAA,IAC5D,CAAC;AACD,IAAG,eAAe,GAAG,MAAM;AAC3B,IAAG,OAAO,CAAC;AACX,IAAG,aAAa,EAAE;AAAA,EACpB;AACA,MAAI,KAAK,GAAG;AACV,UAAM,OAAO,IAAI;AACjB,UAAM,SAAY,cAAc;AAChC,IAAG,WAAW,cAAc,KAAK,YAAY,OAAO,UAAU,EAAE,aAAa,KAAK,OAAO;AACzF,IAAG,UAAU,CAAC;AACd,IAAG,kBAAkB,KAAK,KAAK;AAAA,EACjC;AACF;AACA,IAAM,8BAAN,MAAM,4BAA2B;AAAA,EAC/B,cAAc;AACZ,SAAK,aAAa,IAAI,aAAa;AACnC,SAAK,eAAe,CAAC;AAAA,EACvB;AAAA,EACA,YAAY,OAAO;AACjB,SAAK,aAAa,KAAK,KAAK;AAAA,EAC9B;AAAA,EACA,eAAe,OAAO;AACpB,SAAK,aAAa,OAAO,K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