@cdek-it/angular-ui-kit 0.0.2 → 0.2.6-test
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/components/accordion/index.d.ts +21 -0
- package/components/autocomplete/index.d.ts +65 -0
- package/components/avatar/index.d.ts +22 -0
- package/components/badge/index.d.ts +19 -0
- package/components/breadcrumb/index.d.ts +11 -0
- package/components/button/index.d.ts +40 -0
- package/components/card/index.d.ts +20 -0
- package/components/carousel/index.d.ts +41 -0
- package/components/checkbox/index.d.ts +44 -0
- package/components/chip/index.d.ts +14 -0
- package/components/confirm-dialog/index.d.ts +37 -0
- package/components/date-picker/index.d.ts +89 -0
- package/components/dialog/index.d.ts +47 -0
- package/components/divider/index.d.ts +15 -0
- package/components/drawer/index.d.ts +33 -0
- package/components/galleria/index.d.ts +65 -0
- package/components/inputgroup/index.d.ts +17 -0
- package/components/inputmask/index.d.ts +43 -0
- package/components/inputnumber/index.d.ts +50 -0
- package/components/inputotp/index.d.ts +40 -0
- package/components/inputtext/index.d.ts +35 -0
- package/components/listbox/index.d.ts +43 -0
- package/components/megamenu/index.d.ts +26 -0
- package/components/menu/index.d.ts +24 -0
- package/components/menubar/index.d.ts +16 -0
- package/components/message/index.d.ts +19 -0
- package/components/metergroup/index.d.ts +21 -0
- package/components/paginator/index.d.ts +25 -0
- package/components/panelmenu/index.d.ts +19 -0
- package/components/password/index.d.ts +54 -0
- package/components/popover/index.d.ts +12 -0
- package/components/progressbar/index.d.ts +13 -0
- package/components/progressspinner/index.d.ts +17 -0
- package/components/radiobutton/index.d.ts +39 -0
- package/components/rating/index.d.ts +27 -0
- package/components/scroll-panel/index.d.ts +11 -0
- package/components/select/index.d.ts +78 -0
- package/components/skeleton/index.d.ts +17 -0
- package/components/slider/index.d.ts +33 -0
- package/components/stepper/index.d.ts +25 -0
- package/components/tabs/index.d.ts +22 -0
- package/components/tag/index.d.ts +15 -0
- package/components/textarea/index.d.ts +40 -0
- package/components/tieredmenu/index.d.ts +19 -0
- package/components/timeline/index.d.ts +35 -0
- package/components/toast/index.d.ts +52 -0
- package/components/toggleswitch/index.d.ts +26 -0
- package/components/tooltip/index.d.ts +18 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-accordion.mjs +69 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-accordion.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-autocomplete.mjs +269 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-autocomplete.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-avatar.mjs +93 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-avatar.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-badge.mjs +46 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-badge.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-breadcrumb.mjs +31 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-breadcrumb.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-button.mjs +143 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-button.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-card.mjs +124 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-card.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-carousel.mjs +166 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-carousel.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-checkbox.mjs +179 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-checkbox.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-chip.mjs +56 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-chip.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-confirm-dialog.mjs +192 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-confirm-dialog.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-date-picker.mjs +640 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-date-picker.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-dialog.mjs +179 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-dialog.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-divider.mjs +42 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-divider.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-drawer.mjs +153 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-drawer.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-galleria.mjs +284 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-galleria.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-inputgroup.mjs +64 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-inputgroup.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-inputmask.mjs +164 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-inputmask.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-inputnumber.mjs +267 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-inputnumber.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-inputotp.mjs +148 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-inputotp.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-inputtext.mjs +187 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-inputtext.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-listbox.mjs +172 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-listbox.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-megamenu.mjs +160 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-megamenu.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-menu.mjs +114 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-menu.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-menubar.mjs +88 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-menubar.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-message.mjs +105 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-message.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-metergroup.mjs +69 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-metergroup.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-paginator.mjs +95 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-paginator.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-panelmenu.mjs +69 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-panelmenu.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-password.mjs +258 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-password.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-popover.mjs +48 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-popover.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-progressbar.mjs +34 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-progressbar.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-progressspinner.mjs +64 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-progressspinner.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-radiobutton.mjs +148 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-radiobutton.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-rating.mjs +105 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-rating.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-scroll-panel.mjs +42 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-scroll-panel.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-select.mjs +350 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-select.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-skeleton.mjs +62 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-skeleton.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-slider.mjs +124 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-slider.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-stepper.mjs +227 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-stepper.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-tabs.mjs +83 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-tabs.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-tag.mjs +46 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-tag.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-textarea.mjs +214 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-textarea.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-tieredmenu.mjs +70 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-tieredmenu.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-timeline.mjs +164 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-timeline.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-toast.mjs +106 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-toast.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-toggleswitch.mjs +93 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-toggleswitch.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-tooltip.mjs +60 -0
- package/fesm2022/cdek-it-angular-ui-kit-components-tooltip.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-providers.mjs +8028 -0
- package/fesm2022/cdek-it-angular-ui-kit-providers.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit-shared.mjs +4 -0
- package/fesm2022/cdek-it-angular-ui-kit-shared.mjs.map +1 -0
- package/fesm2022/cdek-it-angular-ui-kit.mjs +6 -0
- package/fesm2022/cdek-it-angular-ui-kit.mjs.map +1 -0
- package/index.d.ts +2 -0
- package/package.json +227 -112
- package/providers/index.d.ts +5 -0
- package/shared/index.d.ts +49 -0
- package/LICENSE.md +0 -75
- package/README.md +0 -70
- package/dist-css/css/brand-dark-primary-theme.css/theme.css +0 -9924
- package/dist-css/css/brand-dark-primary-theme.min.css/theme.min.css +0 -2852
- package/dist-css/css/brand-dark-secondary-theme.css/theme.css +0 -9924
- package/dist-css/css/brand-dark-secondary-theme.min.css/theme.min.css +0 -2852
- package/dist-css/css/brand-light-primary-theme.css/theme.css +0 -10007
- package/dist-css/css/brand-light-primary-theme.min.css/theme.min.css +0 -2868
- package/dist-css/css/brand-light-secondary-theme.css/theme.css +0 -9924
- package/dist-css/css/brand-light-secondary-theme.min.css/theme.min.css +0 -2852
- package/dist-css/css/dark-primary-theme.css/theme.css +0 -9924
- package/dist-css/css/dark-primary-theme.min.css/theme.min.css +0 -2852
- package/dist-css/css/dark-secondary-theme.css/theme.css +0 -9924
- package/dist-css/css/dark-secondary-theme.min.css/theme.min.css +0 -2852
- package/dist-css/css/light-primary-theme.css/theme.css +0 -10007
- package/dist-css/css/light-primary-theme.min.css/theme.min.css +0 -2868
- package/dist-css/css/light-secondary-theme.css/theme.css +0 -9924
- package/dist-css/css/light-secondary-theme.min.css/theme.min.css +0 -2852
- package/dist-css/package.json +0 -15
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-button.mjs","sources":["../../src/lib/components/button/button.component.ts","../../src/lib/components/button/cdek-it-angular-ui-kit-components-button.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { Button, ButtonSeverity as PrimeButtonSeverity } from 'primeng/button';\n\nexport type ExtraButtonVariant = 'primary' | 'secondary' | 'outlined' | 'text' | 'link';\nexport type ExtraButtonSeverity = 'success' | 'warning' | 'danger' | 'info' | null;\nexport type ExtraButtonSize = 'small' | 'base' | 'large' | 'xlarge';\nexport type ExtraButtonIconPos = 'prefix' | 'postfix' | null;\nexport type ExtraBadgeSeverity = 'success' | 'info' | 'warning' | 'danger' | 'secondary' | 'contrast' | null;\ntype PrimeBadgeSeverity = Extract<Button['badgeSeverity'], string | null>;\ntype ExtraButtonSeverityValue = PrimeButtonSeverity;\ntype ExtraBadgeSeverityValue = PrimeBadgeSeverity;\n\n@Component({\n selector: 'extra-button',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [Button],\n template: `\n <p-button\n [label]=\"iconOnly ? '' : label\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [size]=\"primeSize\"\n [styleClass]=\"size === 'xlarge' ? 'p-button-xlg' : ''\"\n [rounded]=\"rounded\"\n [outlined]=\"variant === 'outlined'\"\n [text]=\"variant === 'text' || text\"\n [link]=\"variant === 'link'\"\n [icon]=\"icon\"\n [iconPos]=\"primeIconPos\"\n [severity]=\"primeSeverity\"\n [badge]=\"showBadge ? badge || ' ' : undefined\"\n [badgeSeverity]=\"primeBadgeSeverity\"\n [fluid]=\"fluid\"\n [ariaLabel]=\"ariaLabel\"\n [autofocus]=\"autofocus\"\n [tabindex]=\"tabindex\"\n ></p-button>\n `\n})\nexport class ExtraButtonComponent {\n @Input() label = 'Button';\n @Input() variant: ExtraButtonVariant = 'primary';\n @Input() severity: ExtraButtonSeverity = null;\n @Input() size: ExtraButtonSize = 'base';\n @Input() rounded = false;\n @Input() iconPos: ExtraButtonIconPos = null;\n @Input() iconOnly = false;\n @Input() icon = '';\n @Input() disabled = false;\n @Input() loading = false;\n @Input() badge = '';\n @Input() badgeSeverity: ExtraBadgeSeverity = null;\n @Input() showBadge = false;\n @Input() fluid = false;\n @Input() ariaLabel: string | undefined = undefined;\n @Input() autofocus = false;\n @Input() tabindex: number | undefined = undefined;\n @Input() text = false;\n\n get primeSize(): 'small' | 'large' | undefined {\n if (this.size === 'small') return 'small';\n if (this.size === 'large') return 'large';\n return undefined;\n }\n\n get primeIconPos(): 'left' | 'right' {\n return this.iconPos === 'postfix' ? 'right' : 'left';\n }\n\n get primeSeverity(): ExtraButtonSeverityValue | null {\n if (this.variant === 'secondary') return 'secondary';\n if (this.severity === 'warning') return 'warn';\n return this.severity;\n }\n\n get primeBadgeSeverity(): ExtraBadgeSeverityValue {\n if (this.badgeSeverity === 'warning') return 'warn';\n return this.badgeSeverity;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;MAwCa,oBAAoB,CAAA;IACtB,KAAK,GAAG,QAAQ;IAChB,OAAO,GAAuB,SAAS;IACvC,QAAQ,GAAwB,IAAI;IACpC,IAAI,GAAoB,MAAM;IAC9B,OAAO,GAAG,KAAK;IACf,OAAO,GAAuB,IAAI;IAClC,QAAQ,GAAG,KAAK;IAChB,IAAI,GAAG,EAAE;IACT,QAAQ,GAAG,KAAK;IAChB,OAAO,GAAG,KAAK;IACf,KAAK,GAAG,EAAE;IACV,aAAa,GAAuB,IAAI;IACxC,SAAS,GAAG,KAAK;IACjB,KAAK,GAAG,KAAK;IACb,SAAS,GAAuB,SAAS;IACzC,SAAS,GAAG,KAAK;IACjB,QAAQ,GAAuB,SAAS;IACxC,IAAI,GAAG,KAAK;AAErB,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO;AAAE,YAAA,OAAO,OAAO;AACzC,QAAA,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO;AAAE,YAAA,OAAO,OAAO;AACzC,QAAA,OAAO,SAAS;IAClB;AAEA,IAAA,IAAI,YAAY,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,OAAO,KAAK,SAAS,GAAG,OAAO,GAAG,MAAM;IACtD;AAEA,IAAA,IAAI,aAAa,GAAA;AACf,QAAA,IAAI,IAAI,CAAC,OAAO,KAA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EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,MAAA,EAAA,OAAA,EAAA,UAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,OAAA,EAAA,UAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,SAAA,EAAA,OAAA,EAAA,YAAA,EAAA,YAAA,EAAA,eAAA,EAAA,WAAA,EAAA,WAAA,EAAA,SAAA,EAAA,MAAA,EAAA,OAAA,EAAA,SAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,OAAA,CAAA,EAAA,OAAA,EAAA,CAAA,SAAA,EAAA,SAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAwBL,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBA5BhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,MAAM,CAAC;AACjB,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;AAqBT,EAAA;AACF,iBAAA;;sBAEE;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;;AC1DH;;AAEG;;;;"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ContentChildren, Input, Component } from '@angular/core';
|
|
3
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
+
import { Card } from 'primeng/card';
|
|
5
|
+
import * as i1 from 'primeng/api';
|
|
6
|
+
import { SharedModule, PrimeTemplate } from 'primeng/api';
|
|
7
|
+
|
|
8
|
+
class ExtraCardComponent {
|
|
9
|
+
cdr;
|
|
10
|
+
title = '';
|
|
11
|
+
subtitle = '';
|
|
12
|
+
overlay = false;
|
|
13
|
+
templates;
|
|
14
|
+
headerTpl;
|
|
15
|
+
contentTpl;
|
|
16
|
+
footerTpl;
|
|
17
|
+
constructor(cdr) {
|
|
18
|
+
this.cdr = cdr;
|
|
19
|
+
}
|
|
20
|
+
ngAfterContentInit() {
|
|
21
|
+
this.templates.forEach((tpl) => {
|
|
22
|
+
switch (tpl.getType()) {
|
|
23
|
+
case 'header':
|
|
24
|
+
this.headerTpl = tpl;
|
|
25
|
+
break;
|
|
26
|
+
case 'content':
|
|
27
|
+
this.contentTpl = tpl;
|
|
28
|
+
break;
|
|
29
|
+
case 'footer':
|
|
30
|
+
this.footerTpl = tpl;
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
this.cdr.detectChanges();
|
|
35
|
+
}
|
|
36
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraCardComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ExtraCardComponent, isStandalone: true, selector: "extra-card", inputs: { title: "title", subtitle: "subtitle", overlay: "overlay" }, host: { styleAttribute: "display: block" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: `
|
|
38
|
+
<p-card [styleClass]="overlay ? 'shadow-md' : ''">
|
|
39
|
+
@if (headerTpl) {
|
|
40
|
+
<ng-template pTemplate="header">
|
|
41
|
+
<ng-container [ngTemplateOutlet]="headerTpl.template"></ng-container>
|
|
42
|
+
</ng-template>
|
|
43
|
+
}
|
|
44
|
+
@if (title || subtitle) {
|
|
45
|
+
<ng-template pTemplate="title">
|
|
46
|
+
<div class="p-card-caption">
|
|
47
|
+
@if (title) {
|
|
48
|
+
<div class="p-card-title m-0" data-pc-section="title">{{ title }}</div>
|
|
49
|
+
}
|
|
50
|
+
@if (subtitle) {
|
|
51
|
+
<div class="p-card-subtitle m-0" data-pc-section="subtitle">{{ subtitle }}</div>
|
|
52
|
+
}
|
|
53
|
+
</div>
|
|
54
|
+
</ng-template>
|
|
55
|
+
}
|
|
56
|
+
@if (contentTpl) {
|
|
57
|
+
<ng-template pTemplate="content">
|
|
58
|
+
<ng-container [ngTemplateOutlet]="contentTpl.template"></ng-container>
|
|
59
|
+
</ng-template>
|
|
60
|
+
}
|
|
61
|
+
@if (footerTpl) {
|
|
62
|
+
<ng-template pTemplate="footer">
|
|
63
|
+
<ng-container [ngTemplateOutlet]="footerTpl.template"></ng-container>
|
|
64
|
+
</ng-template>
|
|
65
|
+
}
|
|
66
|
+
</p-card>
|
|
67
|
+
`, isInline: true, dependencies: [{ kind: "component", type: Card, selector: "p-card", inputs: ["header", "subheader", "style", "styleClass"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: i1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
68
|
+
}
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraCardComponent, decorators: [{
|
|
70
|
+
type: Component,
|
|
71
|
+
args: [{
|
|
72
|
+
selector: 'extra-card',
|
|
73
|
+
host: { style: 'display: block' },
|
|
74
|
+
standalone: true,
|
|
75
|
+
imports: [Card, SharedModule, NgTemplateOutlet],
|
|
76
|
+
template: `
|
|
77
|
+
<p-card [styleClass]="overlay ? 'shadow-md' : ''">
|
|
78
|
+
@if (headerTpl) {
|
|
79
|
+
<ng-template pTemplate="header">
|
|
80
|
+
<ng-container [ngTemplateOutlet]="headerTpl.template"></ng-container>
|
|
81
|
+
</ng-template>
|
|
82
|
+
}
|
|
83
|
+
@if (title || subtitle) {
|
|
84
|
+
<ng-template pTemplate="title">
|
|
85
|
+
<div class="p-card-caption">
|
|
86
|
+
@if (title) {
|
|
87
|
+
<div class="p-card-title m-0" data-pc-section="title">{{ title }}</div>
|
|
88
|
+
}
|
|
89
|
+
@if (subtitle) {
|
|
90
|
+
<div class="p-card-subtitle m-0" data-pc-section="subtitle">{{ subtitle }}</div>
|
|
91
|
+
}
|
|
92
|
+
</div>
|
|
93
|
+
</ng-template>
|
|
94
|
+
}
|
|
95
|
+
@if (contentTpl) {
|
|
96
|
+
<ng-template pTemplate="content">
|
|
97
|
+
<ng-container [ngTemplateOutlet]="contentTpl.template"></ng-container>
|
|
98
|
+
</ng-template>
|
|
99
|
+
}
|
|
100
|
+
@if (footerTpl) {
|
|
101
|
+
<ng-template pTemplate="footer">
|
|
102
|
+
<ng-container [ngTemplateOutlet]="footerTpl.template"></ng-container>
|
|
103
|
+
</ng-template>
|
|
104
|
+
}
|
|
105
|
+
</p-card>
|
|
106
|
+
`
|
|
107
|
+
}]
|
|
108
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { title: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], subtitle: [{
|
|
111
|
+
type: Input
|
|
112
|
+
}], overlay: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], templates: [{
|
|
115
|
+
type: ContentChildren,
|
|
116
|
+
args: [PrimeTemplate]
|
|
117
|
+
}] } });
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Generated bundle index. Do not edit.
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
export { ExtraCardComponent };
|
|
124
|
+
//# sourceMappingURL=cdek-it-angular-ui-kit-components-card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-card.mjs","sources":["../../src/lib/components/card/card.component.ts","../../src/lib/components/card/cdek-it-angular-ui-kit-components-card.ts"],"sourcesContent":["import { AfterContentInit, ChangeDetectorRef, Component, ContentChildren, Input, QueryList } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { Card } from 'primeng/card';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\n\n@Component({\n selector: 'extra-card',\n host: { style: 'display: block' },\n standalone: true,\n imports: [Card, SharedModule, NgTemplateOutlet],\n template: `\n <p-card [styleClass]=\"overlay ? 'shadow-md' : ''\">\n @if (headerTpl) {\n <ng-template pTemplate=\"header\">\n <ng-container [ngTemplateOutlet]=\"headerTpl.template\"></ng-container>\n </ng-template>\n }\n @if (title || subtitle) {\n <ng-template pTemplate=\"title\">\n <div class=\"p-card-caption\">\n @if (title) {\n <div class=\"p-card-title m-0\" data-pc-section=\"title\">{{ title }}</div>\n }\n @if (subtitle) {\n <div class=\"p-card-subtitle m-0\" data-pc-section=\"subtitle\">{{ subtitle }}</div>\n }\n </div>\n </ng-template>\n }\n @if (contentTpl) {\n <ng-template pTemplate=\"content\">\n <ng-container [ngTemplateOutlet]=\"contentTpl.template\"></ng-container>\n </ng-template>\n }\n @if (footerTpl) {\n <ng-template pTemplate=\"footer\">\n <ng-container [ngTemplateOutlet]=\"footerTpl.template\"></ng-container>\n </ng-template>\n }\n </p-card>\n `\n})\nexport class ExtraCardComponent implements AfterContentInit {\n @Input() title = '';\n @Input() subtitle = '';\n @Input() overlay = false;\n\n @ContentChildren(PrimeTemplate) templates!: QueryList<PrimeTemplate>;\n\n headerTpl?: PrimeTemplate;\n contentTpl?: PrimeTemplate;\n footerTpl?: PrimeTemplate;\n\n constructor(private cdr: ChangeDetectorRef) {}\n\n ngAfterContentInit(): void {\n this.templates.forEach((tpl) => {\n switch (tpl.getType()) {\n case 'header':\n this.headerTpl = tpl;\n break;\n case 'content':\n this.contentTpl = tpl;\n break;\n case 'footer':\n this.footerTpl = tpl;\n break;\n }\n });\n this.cdr.detectChanges();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"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;;AA8BT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EA/BS,IAAI,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,WAAA,EAAA,OAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,aAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAiCnC,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBArC9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,gBAAgB,CAAC;AAC/C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BT,EAAA;AACF,iBAAA;;sBAEE;;sBACA;;sBACA;;sBAEA,eAAe;uBAAC,aAAa;;;AC/ChC;;AAEG;;;;"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, EventEmitter, TemplateRef, Output, ContentChild, Input, Component } from '@angular/core';
|
|
3
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
+
import { Carousel } from 'primeng/carousel';
|
|
5
|
+
import { PrimeTemplate } from 'primeng/api';
|
|
6
|
+
|
|
7
|
+
class ExtraCarouselItemDirective {
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraCarouselItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
9
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: ExtraCarouselItemDirective, isStandalone: true, selector: "[extraCarouselItem]", ngImport: i0 });
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraCarouselItemDirective, decorators: [{
|
|
12
|
+
type: Directive,
|
|
13
|
+
args: [{ selector: '[extraCarouselItem]', standalone: true }]
|
|
14
|
+
}] });
|
|
15
|
+
class ExtraCarouselHeaderDirective {
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraCarouselHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
17
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: ExtraCarouselHeaderDirective, isStandalone: true, selector: "[extraCarouselHeader]", ngImport: i0 });
|
|
18
|
+
}
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraCarouselHeaderDirective, decorators: [{
|
|
20
|
+
type: Directive,
|
|
21
|
+
args: [{ selector: '[extraCarouselHeader]', standalone: true }]
|
|
22
|
+
}] });
|
|
23
|
+
class ExtraCarouselFooterDirective {
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraCarouselFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: ExtraCarouselFooterDirective, isStandalone: true, selector: "[extraCarouselFooter]", ngImport: i0 });
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraCarouselFooterDirective, decorators: [{
|
|
28
|
+
type: Directive,
|
|
29
|
+
args: [{ selector: '[extraCarouselFooter]', standalone: true }]
|
|
30
|
+
}] });
|
|
31
|
+
class ExtraCarouselComponent {
|
|
32
|
+
value = [];
|
|
33
|
+
numVisible = 1;
|
|
34
|
+
numScroll = 1;
|
|
35
|
+
circular = false;
|
|
36
|
+
orientation = 'horizontal';
|
|
37
|
+
autoplayInterval = 0;
|
|
38
|
+
showIndicators = true;
|
|
39
|
+
showNavigators = true;
|
|
40
|
+
page = 0;
|
|
41
|
+
responsiveOptions;
|
|
42
|
+
verticalViewPortHeight = '300px';
|
|
43
|
+
itemTemplate = null;
|
|
44
|
+
headerTemplate = null;
|
|
45
|
+
footerTemplate = null;
|
|
46
|
+
onPage = new EventEmitter();
|
|
47
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
48
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ExtraCarouselComponent, isStandalone: true, selector: "extra-carousel", inputs: { value: "value", numVisible: "numVisible", numScroll: "numScroll", circular: "circular", orientation: "orientation", autoplayInterval: "autoplayInterval", showIndicators: "showIndicators", showNavigators: "showNavigators", page: "page", responsiveOptions: "responsiveOptions", verticalViewPortHeight: "verticalViewPortHeight" }, outputs: { onPage: "onPage" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: ExtraCarouselItemDirective, descendants: true, read: TemplateRef }, { propertyName: "headerTemplate", first: true, predicate: ExtraCarouselHeaderDirective, descendants: true, read: TemplateRef }, { propertyName: "footerTemplate", first: true, predicate: ExtraCarouselFooterDirective, descendants: true, read: TemplateRef }], ngImport: i0, template: `
|
|
49
|
+
<p-carousel
|
|
50
|
+
[value]="value"
|
|
51
|
+
[numVisible]="numVisible"
|
|
52
|
+
[numScroll]="numScroll"
|
|
53
|
+
[circular]="circular"
|
|
54
|
+
[orientation]="orientation"
|
|
55
|
+
[autoplayInterval]="autoplayInterval"
|
|
56
|
+
[showIndicators]="showIndicators"
|
|
57
|
+
[showNavigators]="showNavigators"
|
|
58
|
+
[page]="page"
|
|
59
|
+
[responsiveOptions]="responsiveOptions"
|
|
60
|
+
[verticalViewPortHeight]="verticalViewPortHeight"
|
|
61
|
+
(onPage)="onPage.emit($event)"
|
|
62
|
+
>
|
|
63
|
+
@if (itemTemplate) {
|
|
64
|
+
<ng-template pTemplate="item" let-data>
|
|
65
|
+
<ng-container
|
|
66
|
+
[ngTemplateOutlet]="itemTemplate"
|
|
67
|
+
[ngTemplateOutletContext]="{ $implicit: data }"
|
|
68
|
+
></ng-container>
|
|
69
|
+
</ng-template>
|
|
70
|
+
}
|
|
71
|
+
@if (headerTemplate) {
|
|
72
|
+
<ng-template pTemplate="header">
|
|
73
|
+
<ng-container [ngTemplateOutlet]="headerTemplate"></ng-container>
|
|
74
|
+
</ng-template>
|
|
75
|
+
}
|
|
76
|
+
@if (footerTemplate) {
|
|
77
|
+
<ng-template pTemplate="footer">
|
|
78
|
+
<ng-container [ngTemplateOutlet]="footerTemplate"></ng-container>
|
|
79
|
+
</ng-template>
|
|
80
|
+
}
|
|
81
|
+
</p-carousel>
|
|
82
|
+
`, isInline: true, dependencies: [{ kind: "component", type: Carousel, selector: "p-carousel", inputs: ["page", "numVisible", "numScroll", "responsiveOptions", "orientation", "verticalViewPortHeight", "contentClass", "indicatorsContentClass", "indicatorsContentStyle", "indicatorStyleClass", "indicatorStyle", "value", "circular", "showIndicators", "showNavigators", "autoplayInterval", "styleClass", "prevButtonProps", "nextButtonProps"], outputs: ["onPage"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }] });
|
|
83
|
+
}
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraCarouselComponent, decorators: [{
|
|
85
|
+
type: Component,
|
|
86
|
+
args: [{
|
|
87
|
+
selector: 'extra-carousel',
|
|
88
|
+
standalone: true,
|
|
89
|
+
imports: [Carousel, NgTemplateOutlet, PrimeTemplate],
|
|
90
|
+
template: `
|
|
91
|
+
<p-carousel
|
|
92
|
+
[value]="value"
|
|
93
|
+
[numVisible]="numVisible"
|
|
94
|
+
[numScroll]="numScroll"
|
|
95
|
+
[circular]="circular"
|
|
96
|
+
[orientation]="orientation"
|
|
97
|
+
[autoplayInterval]="autoplayInterval"
|
|
98
|
+
[showIndicators]="showIndicators"
|
|
99
|
+
[showNavigators]="showNavigators"
|
|
100
|
+
[page]="page"
|
|
101
|
+
[responsiveOptions]="responsiveOptions"
|
|
102
|
+
[verticalViewPortHeight]="verticalViewPortHeight"
|
|
103
|
+
(onPage)="onPage.emit($event)"
|
|
104
|
+
>
|
|
105
|
+
@if (itemTemplate) {
|
|
106
|
+
<ng-template pTemplate="item" let-data>
|
|
107
|
+
<ng-container
|
|
108
|
+
[ngTemplateOutlet]="itemTemplate"
|
|
109
|
+
[ngTemplateOutletContext]="{ $implicit: data }"
|
|
110
|
+
></ng-container>
|
|
111
|
+
</ng-template>
|
|
112
|
+
}
|
|
113
|
+
@if (headerTemplate) {
|
|
114
|
+
<ng-template pTemplate="header">
|
|
115
|
+
<ng-container [ngTemplateOutlet]="headerTemplate"></ng-container>
|
|
116
|
+
</ng-template>
|
|
117
|
+
}
|
|
118
|
+
@if (footerTemplate) {
|
|
119
|
+
<ng-template pTemplate="footer">
|
|
120
|
+
<ng-container [ngTemplateOutlet]="footerTemplate"></ng-container>
|
|
121
|
+
</ng-template>
|
|
122
|
+
}
|
|
123
|
+
</p-carousel>
|
|
124
|
+
`
|
|
125
|
+
}]
|
|
126
|
+
}], propDecorators: { value: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], numVisible: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], numScroll: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], circular: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], orientation: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], autoplayInterval: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], showIndicators: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], showNavigators: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], page: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], responsiveOptions: [{
|
|
145
|
+
type: Input
|
|
146
|
+
}], verticalViewPortHeight: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], itemTemplate: [{
|
|
149
|
+
type: ContentChild,
|
|
150
|
+
args: [ExtraCarouselItemDirective, { read: TemplateRef }]
|
|
151
|
+
}], headerTemplate: [{
|
|
152
|
+
type: ContentChild,
|
|
153
|
+
args: [ExtraCarouselHeaderDirective, { read: TemplateRef }]
|
|
154
|
+
}], footerTemplate: [{
|
|
155
|
+
type: ContentChild,
|
|
156
|
+
args: [ExtraCarouselFooterDirective, { read: TemplateRef }]
|
|
157
|
+
}], onPage: [{
|
|
158
|
+
type: Output
|
|
159
|
+
}] } });
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Generated bundle index. Do not edit.
|
|
163
|
+
*/
|
|
164
|
+
|
|
165
|
+
export { ExtraCarouselComponent, ExtraCarouselFooterDirective, ExtraCarouselHeaderDirective, ExtraCarouselItemDirective };
|
|
166
|
+
//# sourceMappingURL=cdek-it-angular-ui-kit-components-carousel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-carousel.mjs","sources":["../../src/lib/components/carousel/carousel.component.ts","../../src/lib/components/carousel/cdek-it-angular-ui-kit-components-carousel.ts"],"sourcesContent":["import { Component, ContentChild, Directive, EventEmitter, Input, Output, TemplateRef } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { Carousel } from 'primeng/carousel';\nimport { PrimeTemplate } from 'primeng/api';\nimport type { CarouselPageEvent, CarouselResponsiveOptions } from 'primeng/types/carousel';\n\nexport type ExtraCarouselOrientation = 'horizontal' | 'vertical';\nexport type ExtraCarouselPageEvent = CarouselPageEvent;\nexport type ExtraCarouselResponsiveOptions = CarouselResponsiveOptions;\n\n@Directive({ selector: '[extraCarouselItem]', standalone: true })\nexport class ExtraCarouselItemDirective {}\n\n@Directive({ selector: '[extraCarouselHeader]', standalone: true })\nexport class ExtraCarouselHeaderDirective {}\n\n@Directive({ selector: '[extraCarouselFooter]', standalone: true })\nexport class ExtraCarouselFooterDirective {}\n\n@Component({\n selector: 'extra-carousel',\n standalone: true,\n imports: [Carousel, NgTemplateOutlet, PrimeTemplate],\n template: `\n <p-carousel\n [value]=\"value\"\n [numVisible]=\"numVisible\"\n [numScroll]=\"numScroll\"\n [circular]=\"circular\"\n [orientation]=\"orientation\"\n [autoplayInterval]=\"autoplayInterval\"\n [showIndicators]=\"showIndicators\"\n [showNavigators]=\"showNavigators\"\n [page]=\"page\"\n [responsiveOptions]=\"responsiveOptions\"\n [verticalViewPortHeight]=\"verticalViewPortHeight\"\n (onPage)=\"onPage.emit($event)\"\n >\n @if (itemTemplate) {\n <ng-template pTemplate=\"item\" let-data>\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: data }\"\n ></ng-container>\n </ng-template>\n }\n @if (headerTemplate) {\n <ng-template pTemplate=\"header\">\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container>\n </ng-template>\n }\n @if (footerTemplate) {\n <ng-template pTemplate=\"footer\">\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n </ng-template>\n }\n </p-carousel>\n `\n})\nexport class ExtraCarouselComponent {\n @Input() value: any[] = [];\n @Input() numVisible = 1;\n @Input() numScroll = 1;\n @Input() circular = false;\n @Input() orientation: ExtraCarouselOrientation = 'horizontal';\n @Input() autoplayInterval = 0;\n @Input() showIndicators = true;\n @Input() showNavigators = true;\n @Input() page = 0;\n @Input() responsiveOptions: ExtraCarouselResponsiveOptions[] | undefined;\n @Input() verticalViewPortHeight = '300px';\n @ContentChild(ExtraCarouselItemDirective, { read: TemplateRef }) itemTemplate: TemplateRef<any> | null = null;\n @ContentChild(ExtraCarouselHeaderDirective, { read: TemplateRef }) headerTemplate: TemplateRef<any> | null = null;\n @ContentChild(ExtraCarouselFooterDirective, { read: TemplateRef }) footerTemplate: TemplateRef<any> | null = null;\n @Output() onPage = new EventEmitter<ExtraCarouselPageEvent>();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;MAWa,0BAA0B,CAAA;wGAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA,EAAE,QAAQ,EAAE,qBAAqB,EAAE,UAAU,EAAE,IAAI,EAAE;;MAInD,4BAA4B,CAAA;wGAA5B,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,EAAA,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AA,EAAA,iBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,aAAa,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAqCxC,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAxClC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,CAAC,QAAQ,EAAE,gBAAgB,EAAE,aAAa,CAAC;AACpD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCT,EAAA;AACF,iBAAA;;sBAEE;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,0BAA0B,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;;sBAC9D,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,4BAA4B,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;;sBAChE,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,4BAA4B,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;;sBAChE;;;AC1EH;;AAEG;;;;"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, forwardRef, Output, Input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
|
+
import { Checkbox } from 'primeng/checkbox';
|
|
6
|
+
|
|
7
|
+
class ExtraCheckboxComponent {
|
|
8
|
+
value = null;
|
|
9
|
+
binary = false;
|
|
10
|
+
disabled = false;
|
|
11
|
+
readonly = false;
|
|
12
|
+
indeterminate = false;
|
|
13
|
+
invalid = false;
|
|
14
|
+
size = 'base';
|
|
15
|
+
variant = 'outlined';
|
|
16
|
+
checkboxIcon = undefined;
|
|
17
|
+
ariaLabel = undefined;
|
|
18
|
+
ariaLabelledBy = undefined;
|
|
19
|
+
tabindex = undefined;
|
|
20
|
+
inputId = undefined;
|
|
21
|
+
trueValue = true;
|
|
22
|
+
falseValue = false;
|
|
23
|
+
autofocus = false;
|
|
24
|
+
onChange = new EventEmitter();
|
|
25
|
+
onFocus = new EventEmitter();
|
|
26
|
+
onBlur = new EventEmitter();
|
|
27
|
+
modelValue = false;
|
|
28
|
+
_onChange = () => { };
|
|
29
|
+
_onTouched = () => { };
|
|
30
|
+
// Геттеры — маппинг в PrimeNG API
|
|
31
|
+
get primeSize() {
|
|
32
|
+
if (this.size === 'small')
|
|
33
|
+
return 'small';
|
|
34
|
+
if (this.size === 'large')
|
|
35
|
+
return 'large';
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
get primeVariant() {
|
|
39
|
+
if (this.variant === 'filled')
|
|
40
|
+
return 'filled';
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
onChangeHandler(event) {
|
|
44
|
+
this._onChange(event.checked);
|
|
45
|
+
this._onTouched();
|
|
46
|
+
this.onChange.emit(event);
|
|
47
|
+
}
|
|
48
|
+
// ControlValueAccessor
|
|
49
|
+
writeValue(value) {
|
|
50
|
+
this.modelValue = value;
|
|
51
|
+
}
|
|
52
|
+
registerOnChange(fn) {
|
|
53
|
+
this._onChange = fn;
|
|
54
|
+
}
|
|
55
|
+
registerOnTouched(fn) {
|
|
56
|
+
this._onTouched = fn;
|
|
57
|
+
}
|
|
58
|
+
setDisabledState(isDisabled) {
|
|
59
|
+
this.disabled = isDisabled;
|
|
60
|
+
}
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: ExtraCheckboxComponent, isStandalone: true, selector: "extra-checkbox", inputs: { value: "value", binary: "binary", disabled: "disabled", readonly: "readonly", indeterminate: "indeterminate", invalid: "invalid", size: "size", variant: "variant", checkboxIcon: "checkboxIcon", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", tabindex: "tabindex", inputId: "inputId", trueValue: "trueValue", falseValue: "falseValue", autofocus: "autofocus" }, outputs: { onChange: "onChange", onFocus: "onFocus", onBlur: "onBlur" }, providers: [
|
|
63
|
+
{
|
|
64
|
+
provide: NG_VALUE_ACCESSOR,
|
|
65
|
+
useExisting: forwardRef(() => ExtraCheckboxComponent),
|
|
66
|
+
multi: true
|
|
67
|
+
}
|
|
68
|
+
], ngImport: i0, template: `
|
|
69
|
+
<p-checkbox
|
|
70
|
+
[value]="value"
|
|
71
|
+
[binary]="binary"
|
|
72
|
+
[(ngModel)]="modelValue"
|
|
73
|
+
[disabled]="disabled"
|
|
74
|
+
[readonly]="readonly"
|
|
75
|
+
[indeterminate]="indeterminate"
|
|
76
|
+
[styleClass]="indeterminate ? 'p-checkbox-indeterminate' : ''"
|
|
77
|
+
[invalid]="invalid"
|
|
78
|
+
[size]="primeSize"
|
|
79
|
+
[variant]="primeVariant"
|
|
80
|
+
[checkboxIcon]="checkboxIcon"
|
|
81
|
+
[ariaLabel]="ariaLabel"
|
|
82
|
+
[ariaLabelledBy]="ariaLabelledBy"
|
|
83
|
+
[tabindex]="tabindex"
|
|
84
|
+
[inputId]="inputId"
|
|
85
|
+
[trueValue]="trueValue"
|
|
86
|
+
[falseValue]="falseValue"
|
|
87
|
+
[autofocus]="autofocus"
|
|
88
|
+
(onChange)="onChangeHandler($event)"
|
|
89
|
+
(onFocus)="onFocus.emit($event)"
|
|
90
|
+
(onBlur)="onBlur.emit($event)"
|
|
91
|
+
></p-checkbox>
|
|
92
|
+
`, isInline: true, dependencies: [{ kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
93
|
+
}
|
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraCheckboxComponent, decorators: [{
|
|
95
|
+
type: Component,
|
|
96
|
+
args: [{
|
|
97
|
+
selector: 'extra-checkbox',
|
|
98
|
+
standalone: true,
|
|
99
|
+
imports: [Checkbox, FormsModule],
|
|
100
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
101
|
+
providers: [
|
|
102
|
+
{
|
|
103
|
+
provide: NG_VALUE_ACCESSOR,
|
|
104
|
+
useExisting: forwardRef(() => ExtraCheckboxComponent),
|
|
105
|
+
multi: true
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
template: `
|
|
109
|
+
<p-checkbox
|
|
110
|
+
[value]="value"
|
|
111
|
+
[binary]="binary"
|
|
112
|
+
[(ngModel)]="modelValue"
|
|
113
|
+
[disabled]="disabled"
|
|
114
|
+
[readonly]="readonly"
|
|
115
|
+
[indeterminate]="indeterminate"
|
|
116
|
+
[styleClass]="indeterminate ? 'p-checkbox-indeterminate' : ''"
|
|
117
|
+
[invalid]="invalid"
|
|
118
|
+
[size]="primeSize"
|
|
119
|
+
[variant]="primeVariant"
|
|
120
|
+
[checkboxIcon]="checkboxIcon"
|
|
121
|
+
[ariaLabel]="ariaLabel"
|
|
122
|
+
[ariaLabelledBy]="ariaLabelledBy"
|
|
123
|
+
[tabindex]="tabindex"
|
|
124
|
+
[inputId]="inputId"
|
|
125
|
+
[trueValue]="trueValue"
|
|
126
|
+
[falseValue]="falseValue"
|
|
127
|
+
[autofocus]="autofocus"
|
|
128
|
+
(onChange)="onChangeHandler($event)"
|
|
129
|
+
(onFocus)="onFocus.emit($event)"
|
|
130
|
+
(onBlur)="onBlur.emit($event)"
|
|
131
|
+
></p-checkbox>
|
|
132
|
+
`
|
|
133
|
+
}]
|
|
134
|
+
}], propDecorators: { value: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], binary: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], disabled: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], readonly: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], indeterminate: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], invalid: [{
|
|
145
|
+
type: Input
|
|
146
|
+
}], size: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], variant: [{
|
|
149
|
+
type: Input
|
|
150
|
+
}], checkboxIcon: [{
|
|
151
|
+
type: Input
|
|
152
|
+
}], ariaLabel: [{
|
|
153
|
+
type: Input
|
|
154
|
+
}], ariaLabelledBy: [{
|
|
155
|
+
type: Input
|
|
156
|
+
}], tabindex: [{
|
|
157
|
+
type: Input
|
|
158
|
+
}], inputId: [{
|
|
159
|
+
type: Input
|
|
160
|
+
}], trueValue: [{
|
|
161
|
+
type: Input
|
|
162
|
+
}], falseValue: [{
|
|
163
|
+
type: Input
|
|
164
|
+
}], autofocus: [{
|
|
165
|
+
type: Input
|
|
166
|
+
}], onChange: [{
|
|
167
|
+
type: Output
|
|
168
|
+
}], onFocus: [{
|
|
169
|
+
type: Output
|
|
170
|
+
}], onBlur: [{
|
|
171
|
+
type: Output
|
|
172
|
+
}] } });
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Generated bundle index. Do not edit.
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
export { ExtraCheckboxComponent };
|
|
179
|
+
//# sourceMappingURL=cdek-it-angular-ui-kit-components-checkbox.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-checkbox.mjs","sources":["../../src/lib/components/checkbox/checkbox.component.ts","../../src/lib/components/checkbox/cdek-it-angular-ui-kit-components-checkbox.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, forwardRef, Input, Output } from '@angular/core';\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Checkbox, CheckboxChangeEvent } from 'primeng/checkbox';\n\nexport type ExtraCheckboxSize = 'small' | 'base' | 'large';\nexport type ExtraCheckboxVariant = 'outlined' | 'filled';\nexport type ExtraCheckboxChangeEvent = CheckboxChangeEvent;\n\n@Component({\n selector: 'extra-checkbox',\n standalone: true,\n imports: [Checkbox, FormsModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => ExtraCheckboxComponent),\n multi: true\n }\n ],\n template: `\n <p-checkbox\n [value]=\"value\"\n [binary]=\"binary\"\n [(ngModel)]=\"modelValue\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [indeterminate]=\"indeterminate\"\n [styleClass]=\"indeterminate ? 'p-checkbox-indeterminate' : ''\"\n [invalid]=\"invalid\"\n [size]=\"primeSize\"\n [variant]=\"primeVariant\"\n [checkboxIcon]=\"checkboxIcon\"\n [ariaLabel]=\"ariaLabel\"\n [ariaLabelledBy]=\"ariaLabelledBy\"\n [tabindex]=\"tabindex\"\n [inputId]=\"inputId\"\n [trueValue]=\"trueValue\"\n [falseValue]=\"falseValue\"\n [autofocus]=\"autofocus\"\n (onChange)=\"onChangeHandler($event)\"\n (onFocus)=\"onFocus.emit($event)\"\n (onBlur)=\"onBlur.emit($event)\"\n ></p-checkbox>\n `\n})\nexport class ExtraCheckboxComponent implements ControlValueAccessor {\n @Input() value: any = null;\n @Input() binary = false;\n @Input() disabled = false;\n @Input() readonly = false;\n @Input() indeterminate = false;\n @Input() invalid = false;\n @Input() size: ExtraCheckboxSize = 'base';\n @Input() variant: ExtraCheckboxVariant = 'outlined';\n @Input() checkboxIcon: string | undefined = undefined;\n @Input() ariaLabel: string | undefined = undefined;\n @Input() ariaLabelledBy: string | undefined = undefined;\n @Input() tabindex: number | undefined = undefined;\n @Input() inputId: string | undefined = undefined;\n @Input() trueValue: any = true;\n @Input() falseValue: any = false;\n @Input() autofocus = false;\n\n @Output() onChange = new EventEmitter<ExtraCheckboxChangeEvent>();\n @Output() onFocus = new EventEmitter<Event>();\n @Output() onBlur = new EventEmitter<Event>();\n\n modelValue: any = false;\n\n private _onChange: (value: any) => void = () => {};\n private _onTouched: () => void = () => {};\n\n // Геттеры — маппинг в PrimeNG API\n get primeSize(): 'small' | 'large' | undefined {\n if (this.size === 'small') return 'small';\n if (this.size === 'large') return 'large';\n return undefined;\n }\n\n get primeVariant(): 'filled' | 'outlined' | undefined {\n if (this.variant === 'filled') return 'filled';\n return undefined;\n }\n\n onChangeHandler(event: ExtraCheckboxChangeEvent): void {\n this._onChange(event.checked);\n this._onTouched();\n this.onChange.emit(event);\n }\n\n // ControlValueAccessor\n writeValue(value: any): void {\n this.modelValue = value;\n }\n\n registerOnChange(fn: (value: any) => void): void {\n this._onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this._onTouched = fn;\n }\n\n setDisabledState(isDisabled: bo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AA;;sBAEE;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBACA;;;AClEH;;AAEG;;;;"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Output, Input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { Chip } from 'primeng/chip';
|
|
4
|
+
|
|
5
|
+
class ExtraChipComponent {
|
|
6
|
+
label = '';
|
|
7
|
+
icon = '';
|
|
8
|
+
removable = false;
|
|
9
|
+
disabled = false;
|
|
10
|
+
onRemove = new EventEmitter();
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraChipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: ExtraChipComponent, isStandalone: true, selector: "extra-chip", inputs: { label: "label", icon: "icon", removable: "removable", disabled: "disabled" }, outputs: { onRemove: "onRemove" }, ngImport: i0, template: `
|
|
13
|
+
<p-chip
|
|
14
|
+
[label]="label"
|
|
15
|
+
[icon]="icon"
|
|
16
|
+
[removable]="removable"
|
|
17
|
+
[disabled]="disabled"
|
|
18
|
+
(onRemove)="onRemove.emit($event)"
|
|
19
|
+
></p-chip>
|
|
20
|
+
`, isInline: true, dependencies: [{ kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraChipComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{
|
|
25
|
+
selector: 'extra-chip',
|
|
26
|
+
standalone: true,
|
|
27
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
28
|
+
imports: [Chip],
|
|
29
|
+
template: `
|
|
30
|
+
<p-chip
|
|
31
|
+
[label]="label"
|
|
32
|
+
[icon]="icon"
|
|
33
|
+
[removable]="removable"
|
|
34
|
+
[disabled]="disabled"
|
|
35
|
+
(onRemove)="onRemove.emit($event)"
|
|
36
|
+
></p-chip>
|
|
37
|
+
`
|
|
38
|
+
}]
|
|
39
|
+
}], propDecorators: { label: [{
|
|
40
|
+
type: Input
|
|
41
|
+
}], icon: [{
|
|
42
|
+
type: Input
|
|
43
|
+
}], removable: [{
|
|
44
|
+
type: Input
|
|
45
|
+
}], disabled: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}], onRemove: [{
|
|
48
|
+
type: Output
|
|
49
|
+
}] } });
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Generated bundle index. Do not edit.
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
export { ExtraChipComponent };
|
|
56
|
+
//# sourceMappingURL=cdek-it-angular-ui-kit-components-chip.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-chip.mjs","sources":["../../src/lib/components/chip/chip.component.ts","../../src/lib/components/chip/cdek-it-angular-ui-kit-components-chip.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { Chip } from 'primeng/chip';\n\n@Component({\n selector: 'extra-chip',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [Chip],\n template: `\n <p-chip\n [label]=\"label\"\n [icon]=\"icon\"\n [removable]=\"removable\"\n [disabled]=\"disabled\"\n (onRemove)=\"onRemove.emit($event)\"\n ></p-chip>\n `\n})\nexport class ExtraChipComponent {\n @Input() label = '';\n @Input() icon = '';\n @Input() removable = false;\n @Input() disabled = false;\n @Output() onRemove = new EventEmitter<MouseEvent>();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;MAkBa,kBAAkB,CAAA;IACpB,KAAK,GAAG,EAAE;IACV,IAAI,GAAG,EAAE;IACT,SAAS,GAAG,KAAK;IACjB,QAAQ,GAAG,KAAK;AACf,IAAA,QAAQ,GAAG,IAAI,YAAY,EAAc;wGALxC,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,IAAA,EAAA,MAAA,EAAA,SAAA,EAAA,WAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAVnB;;;;;;;;AAQT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EATS,IAAI,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,OAAA,EAAA,KAAA,EAAA,YAAA,EAAA,UAAA,EAAA,WAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,EAAA,cAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAWH,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAf9B,SAAS;AAAC,YAAA,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