@cdek-it/angular-ui-kit 0.2.4-test → 0.2.7-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 +5 -5
- package/components/badge/index.d.ts +5 -5
- package/components/breadcrumb/index.d.ts +3 -3
- package/components/button/index.d.ts +16 -14
- package/components/carousel/index.d.ts +41 -0
- package/components/checkbox/index.d.ts +7 -6
- package/components/confirm-dialog/index.d.ts +37 -0
- package/components/date-picker/index.d.ts +89 -0
- package/components/dialog/index.d.ts +16 -9
- package/components/divider/index.d.ts +7 -7
- 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 +5 -4
- package/components/listbox/index.d.ts +43 -0
- package/components/megamenu/index.d.ts +10 -10
- 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 +9 -8
- 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 +3 -3
- package/components/progressspinner/index.d.ts +3 -3
- package/components/radiobutton/index.d.ts +7 -6
- package/components/rating/index.d.ts +6 -6
- package/components/scroll-panel/index.d.ts +11 -0
- package/components/select/index.d.ts +78 -0
- package/components/skeleton/index.d.ts +5 -5
- package/components/slider/index.d.ts +4 -3
- package/components/stepper/index.d.ts +25 -0
- package/components/tabs/index.d.ts +22 -0
- package/components/tag/index.d.ts +3 -3
- package/components/textarea/index.d.ts +40 -0
- package/components/tieredmenu/index.d.ts +2 -2
- package/components/timeline/index.d.ts +17 -5
- package/components/toast/index.d.ts +52 -0
- package/components/toggleswitch/index.d.ts +26 -0
- package/components/tooltip/index.d.ts +5 -5
- 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 +7 -5
- package/fesm2022/cdek-it-angular-ui-kit-components-avatar.mjs.map +1 -1
- package/fesm2022/cdek-it-angular-ui-kit-components-badge.mjs +4 -15
- package/fesm2022/cdek-it-angular-ui-kit-components-badge.mjs.map +1 -1
- package/fesm2022/cdek-it-angular-ui-kit-components-breadcrumb.mjs +4 -13
- package/fesm2022/cdek-it-angular-ui-kit-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/cdek-it-angular-ui-kit-components-button.mjs +3 -2
- package/fesm2022/cdek-it-angular-ui-kit-components-button.mjs.map +1 -1
- package/fesm2022/cdek-it-angular-ui-kit-components-card.mjs +2 -2
- package/fesm2022/cdek-it-angular-ui-kit-components-card.mjs.map +1 -1
- 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 +3 -2
- package/fesm2022/cdek-it-angular-ui-kit-components-checkbox.mjs.map +1 -1
- package/fesm2022/cdek-it-angular-ui-kit-components-chip.mjs +4 -3
- package/fesm2022/cdek-it-angular-ui-kit-components-chip.mjs.map +1 -1
- 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 +28 -10
- package/fesm2022/cdek-it-angular-ui-kit-components-dialog.mjs.map +1 -1
- package/fesm2022/cdek-it-angular-ui-kit-components-divider.mjs +6 -13
- package/fesm2022/cdek-it-angular-ui-kit-components-divider.mjs.map +1 -1
- 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 +13 -11
- package/fesm2022/cdek-it-angular-ui-kit-components-inputtext.mjs.map +1 -1
- 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 +22 -9
- package/fesm2022/cdek-it-angular-ui-kit-components-megamenu.mjs.map +1 -1
- 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 +4 -3
- package/fesm2022/cdek-it-angular-ui-kit-components-metergroup.mjs.map +1 -1
- 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 +4 -15
- package/fesm2022/cdek-it-angular-ui-kit-components-progressbar.mjs.map +1 -1
- package/fesm2022/cdek-it-angular-ui-kit-components-progressspinner.mjs +3 -2
- package/fesm2022/cdek-it-angular-ui-kit-components-progressspinner.mjs.map +1 -1
- package/fesm2022/cdek-it-angular-ui-kit-components-radiobutton.mjs +8 -7
- package/fesm2022/cdek-it-angular-ui-kit-components-radiobutton.mjs.map +1 -1
- package/fesm2022/cdek-it-angular-ui-kit-components-rating.mjs +8 -7
- package/fesm2022/cdek-it-angular-ui-kit-components-rating.mjs.map +1 -1
- 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 +4 -3
- package/fesm2022/cdek-it-angular-ui-kit-components-skeleton.mjs.map +1 -1
- package/fesm2022/cdek-it-angular-ui-kit-components-slider.mjs +6 -6
- package/fesm2022/cdek-it-angular-ui-kit-components-slider.mjs.map +1 -1
- 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 +6 -15
- package/fesm2022/cdek-it-angular-ui-kit-components-tag.mjs.map +1 -1
- 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 +5 -16
- package/fesm2022/cdek-it-angular-ui-kit-components-tieredmenu.mjs.map +1 -1
- package/fesm2022/cdek-it-angular-ui-kit-components-timeline.mjs +74 -50
- package/fesm2022/cdek-it-angular-ui-kit-components-timeline.mjs.map +1 -1
- 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.map +1 -1
- package/fesm2022/cdek-it-angular-ui-kit-providers.mjs +2497 -125
- package/fesm2022/cdek-it-angular-ui-kit-providers.mjs.map +1 -1
- package/fesm2022/cdek-it-angular-ui-kit-shared.mjs +4 -0
- package/fesm2022/cdek-it-angular-ui-kit-shared.mjs.map +1 -0
- package/package.json +118 -2
- package/shared/index.d.ts +49 -0
- package/tailwind/theme.css +461 -0
|
@@ -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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;;sBAChE;;;AC1EH;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, forwardRef, Output, Input, Component } from '@angular/core';
|
|
2
|
+
import { EventEmitter, forwardRef, Output, Input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/forms';
|
|
4
4
|
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
5
|
import { Checkbox } from 'primeng/checkbox';
|
|
@@ -89,7 +89,7 @@ class ExtraCheckboxComponent {
|
|
|
89
89
|
(onFocus)="onFocus.emit($event)"
|
|
90
90
|
(onBlur)="onBlur.emit($event)"
|
|
91
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"] }] });
|
|
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
93
|
}
|
|
94
94
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraCheckboxComponent, decorators: [{
|
|
95
95
|
type: Component,
|
|
@@ -97,6 +97,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
97
97
|
selector: 'extra-checkbox',
|
|
98
98
|
standalone: true,
|
|
99
99
|
imports: [Checkbox, FormsModule],
|
|
100
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
100
101
|
providers: [
|
|
101
102
|
{
|
|
102
103
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -1 +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 { Component,
|
|
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: boolean): void {\n this.disabled = isDisabled;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;MA8Ca,sBAAsB,CAAA;IACxB,KAAK,GAAQ,IAAI;IACjB,MAAM,GAAG,KAAK;IACd,QAAQ,GAAG,KAAK;IAChB,QAAQ,GAAG,KAAK;IAChB,aAAa,GAAG,KAAK;IACrB,OAAO,GAAG,KAAK;IACf,IAAI,GAAsB,MAAM;IAChC,OAAO,GAAyB,UAAU;IAC1C,YAAY,GAAuB,SAAS;IAC5C,SAAS,GAAuB,SAAS;IACzC,cAAc,GAAuB,SAAS;IAC9C,QAAQ,GAAuB,SAAS;IACxC,OAAO,GAAuB,SAAS;IACvC,SAAS,GAAQ,IAAI;IACrB,UAAU,GAAQ,KAAK;IACvB,SAAS,GAAG,KAAK;AAEhB,IAAA,QAAQ,GAAG,IAAI,YAAY,EAA4B;AACvD,IAAA,OAAO,GAAG,IAAI,YAAY,EAAS;AACnC,IAAA,MAAM,GAAG,IAAI,YAAY,EAAS;IAE5C,UAAU,GAAQ,KAAK;AAEf,IAAA,SAAS,GAAyB,MAAK,EAAE,CAAC;AAC1C,IAAA,UAAU,GAAe,MAAK,EAAE,CAAC;;AAGzC,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO;AAAE,YAAA,OAAO,OAAO;A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AAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC;oBAChC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,4BAA4B,CAAC;AACrD,4BAAA,KAAK,EAAE;AACR;AACF,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;AAwBT,EAAA;AACF,iBAAA;;sBAEE;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBACA;;;AClEH;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Output, Input, Component } from '@angular/core';
|
|
2
|
+
import { EventEmitter, Output, Input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
import { Chip } from 'primeng/chip';
|
|
4
4
|
|
|
5
5
|
class ExtraChipComponent {
|
|
@@ -17,13 +17,14 @@ class ExtraChipComponent {
|
|
|
17
17
|
[disabled]="disabled"
|
|
18
18
|
(onRemove)="onRemove.emit($event)"
|
|
19
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"] }] });
|
|
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
21
|
}
|
|
22
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraChipComponent, decorators: [{
|
|
23
23
|
type: Component,
|
|
24
24
|
args: [{
|
|
25
25
|
selector: 'extra-chip',
|
|
26
26
|
standalone: true,
|
|
27
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
27
28
|
imports: [Chip],
|
|
28
29
|
template: `
|
|
29
30
|
<p-chip
|
|
@@ -33,7 +34,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
33
34
|
[disabled]="disabled"
|
|
34
35
|
(onRemove)="onRemove.emit($event)"
|
|
35
36
|
></p-chip>
|
|
36
|
-
|
|
37
|
+
`
|
|
37
38
|
}]
|
|
38
39
|
}], propDecorators: { label: [{
|
|
39
40
|
type: Input
|
|
@@ -1 +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 { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { Chip } from 'primeng/chip';\n\n@Component({\n selector: 'extra-chip',\n standalone: true,\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
|
|
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,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,IAAI,CAAC;AACf,oBAAA,QAAQ,EAAE;;;;;;;;AAQT,EAAA;AACF,iBAAA;;sBAEE;;sBACA;;sBACA;;sBACA;;sBACA;;;ACvBH;;AAEG;;;;"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, TemplateRef, ContentChild, Input, Component, Injectable } from '@angular/core';
|
|
3
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
+
import { ConfirmDialog } from 'primeng/confirmdialog';
|
|
5
|
+
import * as i1 from 'primeng/api';
|
|
6
|
+
import { PrimeTemplate, ConfirmationService } from 'primeng/api';
|
|
7
|
+
import { ExtraButtonComponent } from '@cdek-it/angular-ui-kit/components/button';
|
|
8
|
+
|
|
9
|
+
class ExtraConfirmDialogHeaderDirective {
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraConfirmDialogHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: ExtraConfirmDialogHeaderDirective, isStandalone: true, selector: "[extraConfirmDialogHeader]", ngImport: i0 });
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraConfirmDialogHeaderDirective, decorators: [{
|
|
14
|
+
type: Directive,
|
|
15
|
+
args: [{ selector: '[extraConfirmDialogHeader]', standalone: true }]
|
|
16
|
+
}] });
|
|
17
|
+
class ExtraConfirmDialogFooterDirective {
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraConfirmDialogFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
19
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: ExtraConfirmDialogFooterDirective, isStandalone: true, selector: "[extraConfirmDialogFooter]", ngImport: i0 });
|
|
20
|
+
}
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraConfirmDialogFooterDirective, decorators: [{
|
|
22
|
+
type: Directive,
|
|
23
|
+
args: [{ selector: '[extraConfirmDialogFooter]', standalone: true }]
|
|
24
|
+
}] });
|
|
25
|
+
class ExtraConfirmDialogComponent {
|
|
26
|
+
key = '';
|
|
27
|
+
size = 'default';
|
|
28
|
+
severity = 'default';
|
|
29
|
+
headerTemplate = null;
|
|
30
|
+
footerTemplate = null;
|
|
31
|
+
get computedClass() {
|
|
32
|
+
const classes = [];
|
|
33
|
+
if (this.size === 'sm')
|
|
34
|
+
classes.push('p-confirmdialog-sm');
|
|
35
|
+
else if (this.size === 'lg')
|
|
36
|
+
classes.push('p-confirmdialog-lg');
|
|
37
|
+
else if (this.size === 'xlg')
|
|
38
|
+
classes.push('p-confirmdialog-xlg');
|
|
39
|
+
const severityMap = {
|
|
40
|
+
success: 'p-confirm-dialog-accept',
|
|
41
|
+
info: 'p-confirm-dialog-info',
|
|
42
|
+
warn: 'p-confirm-dialog-warn',
|
|
43
|
+
help: 'p-confirm-dialog-help',
|
|
44
|
+
danger: 'p-confirm-dialog-error',
|
|
45
|
+
default: ''
|
|
46
|
+
};
|
|
47
|
+
if (severityMap[this.severity])
|
|
48
|
+
classes.push(severityMap[this.severity]);
|
|
49
|
+
return classes.join(' ');
|
|
50
|
+
}
|
|
51
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraConfirmDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
52
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ExtraConfirmDialogComponent, isStandalone: true, selector: "extra-confirm-dialog", inputs: { key: "key", size: "size", severity: "severity" }, host: { styleAttribute: "display: contents" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ExtraConfirmDialogHeaderDirective, descendants: true, read: TemplateRef }, { propertyName: "footerTemplate", first: true, predicate: ExtraConfirmDialogFooterDirective, descendants: true, read: TemplateRef }], ngImport: i0, template: `
|
|
53
|
+
<p-confirmDialog [key]="key" [styleClass]="computedClass" appendTo="body">
|
|
54
|
+
<ng-template pTemplate="headless" let-message let-onAccept="onAccept" let-onReject="onReject">
|
|
55
|
+
@if (headerTemplate) {
|
|
56
|
+
<ng-container
|
|
57
|
+
[ngTemplateOutlet]="headerTemplate"
|
|
58
|
+
[ngTemplateOutletContext]="{ $implicit: message, onAccept, onReject }"
|
|
59
|
+
>
|
|
60
|
+
</ng-container>
|
|
61
|
+
} @else {
|
|
62
|
+
<div class="p-dialog-header">
|
|
63
|
+
<div class="p-dialog-title">
|
|
64
|
+
<i [class]="message.icon"></i>
|
|
65
|
+
<span>{{ message.header }}</span>
|
|
66
|
+
</div>
|
|
67
|
+
<extra-button
|
|
68
|
+
styleClass="p-dialog-close-button"
|
|
69
|
+
variant="text"
|
|
70
|
+
icon="ti ti-x"
|
|
71
|
+
[rounded]="true"
|
|
72
|
+
[iconOnly]="true"
|
|
73
|
+
(click)="onReject()"
|
|
74
|
+
></extra-button>
|
|
75
|
+
</div>
|
|
76
|
+
}
|
|
77
|
+
<div class="p-dialog-content">
|
|
78
|
+
<p>{{ message.message }}</p>
|
|
79
|
+
</div>
|
|
80
|
+
@if (footerTemplate) {
|
|
81
|
+
<ng-container
|
|
82
|
+
[ngTemplateOutlet]="footerTemplate"
|
|
83
|
+
[ngTemplateOutletContext]="{ $implicit: message, onAccept, onReject }"
|
|
84
|
+
>
|
|
85
|
+
</ng-container>
|
|
86
|
+
} @else {
|
|
87
|
+
<div class="p-dialog-footer">
|
|
88
|
+
<extra-button [label]="message.rejectLabel" variant="text" (click)="onReject()"></extra-button>
|
|
89
|
+
<extra-button
|
|
90
|
+
[label]="message.acceptLabel"
|
|
91
|
+
[severity]="message.acceptButtonProps?.severity"
|
|
92
|
+
(click)="onAccept()"
|
|
93
|
+
></extra-button>
|
|
94
|
+
</div>
|
|
95
|
+
}
|
|
96
|
+
</ng-template>
|
|
97
|
+
</p-confirmDialog>
|
|
98
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ConfirmDialog, selector: "p-confirmDialog, p-confirmdialog, p-confirm-dialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "modal", "visible", "position", "draggable"], outputs: ["onHide"] }, { kind: "component", type: ExtraButtonComponent, selector: "extra-button", inputs: ["label", "variant", "severity", "size", "rounded", "iconPos", "iconOnly", "icon", "disabled", "loading", "badge", "badgeSeverity", "showBadge", "fluid", "ariaLabel", "autofocus", "tabindex", "text"] }, { kind: "directive", type: PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
99
|
+
}
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraConfirmDialogComponent, decorators: [{
|
|
101
|
+
type: Component,
|
|
102
|
+
args: [{
|
|
103
|
+
selector: 'extra-confirm-dialog',
|
|
104
|
+
host: { style: 'display: contents' },
|
|
105
|
+
standalone: true,
|
|
106
|
+
imports: [ConfirmDialog, ExtraButtonComponent, PrimeTemplate, NgTemplateOutlet],
|
|
107
|
+
template: `
|
|
108
|
+
<p-confirmDialog [key]="key" [styleClass]="computedClass" appendTo="body">
|
|
109
|
+
<ng-template pTemplate="headless" let-message let-onAccept="onAccept" let-onReject="onReject">
|
|
110
|
+
@if (headerTemplate) {
|
|
111
|
+
<ng-container
|
|
112
|
+
[ngTemplateOutlet]="headerTemplate"
|
|
113
|
+
[ngTemplateOutletContext]="{ $implicit: message, onAccept, onReject }"
|
|
114
|
+
>
|
|
115
|
+
</ng-container>
|
|
116
|
+
} @else {
|
|
117
|
+
<div class="p-dialog-header">
|
|
118
|
+
<div class="p-dialog-title">
|
|
119
|
+
<i [class]="message.icon"></i>
|
|
120
|
+
<span>{{ message.header }}</span>
|
|
121
|
+
</div>
|
|
122
|
+
<extra-button
|
|
123
|
+
styleClass="p-dialog-close-button"
|
|
124
|
+
variant="text"
|
|
125
|
+
icon="ti ti-x"
|
|
126
|
+
[rounded]="true"
|
|
127
|
+
[iconOnly]="true"
|
|
128
|
+
(click)="onReject()"
|
|
129
|
+
></extra-button>
|
|
130
|
+
</div>
|
|
131
|
+
}
|
|
132
|
+
<div class="p-dialog-content">
|
|
133
|
+
<p>{{ message.message }}</p>
|
|
134
|
+
</div>
|
|
135
|
+
@if (footerTemplate) {
|
|
136
|
+
<ng-container
|
|
137
|
+
[ngTemplateOutlet]="footerTemplate"
|
|
138
|
+
[ngTemplateOutletContext]="{ $implicit: message, onAccept, onReject }"
|
|
139
|
+
>
|
|
140
|
+
</ng-container>
|
|
141
|
+
} @else {
|
|
142
|
+
<div class="p-dialog-footer">
|
|
143
|
+
<extra-button [label]="message.rejectLabel" variant="text" (click)="onReject()"></extra-button>
|
|
144
|
+
<extra-button
|
|
145
|
+
[label]="message.acceptLabel"
|
|
146
|
+
[severity]="message.acceptButtonProps?.severity"
|
|
147
|
+
(click)="onAccept()"
|
|
148
|
+
></extra-button>
|
|
149
|
+
</div>
|
|
150
|
+
}
|
|
151
|
+
</ng-template>
|
|
152
|
+
</p-confirmDialog>
|
|
153
|
+
`
|
|
154
|
+
}]
|
|
155
|
+
}], propDecorators: { key: [{
|
|
156
|
+
type: Input
|
|
157
|
+
}], size: [{
|
|
158
|
+
type: Input
|
|
159
|
+
}], severity: [{
|
|
160
|
+
type: Input
|
|
161
|
+
}], headerTemplate: [{
|
|
162
|
+
type: ContentChild,
|
|
163
|
+
args: [ExtraConfirmDialogHeaderDirective, { read: TemplateRef }]
|
|
164
|
+
}], footerTemplate: [{
|
|
165
|
+
type: ContentChild,
|
|
166
|
+
args: [ExtraConfirmDialogFooterDirective, { read: TemplateRef }]
|
|
167
|
+
}] } });
|
|
168
|
+
|
|
169
|
+
function provideExtraConfirmDialog() {
|
|
170
|
+
return [ConfirmationService, ExtraConfirmDialogService];
|
|
171
|
+
}
|
|
172
|
+
class ExtraConfirmDialogService {
|
|
173
|
+
confirmationService;
|
|
174
|
+
constructor(confirmationService) {
|
|
175
|
+
this.confirmationService = confirmationService;
|
|
176
|
+
}
|
|
177
|
+
confirm(options) {
|
|
178
|
+
this.confirmationService.confirm(options);
|
|
179
|
+
}
|
|
180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraConfirmDialogService, deps: [{ token: i1.ConfirmationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
181
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraConfirmDialogService });
|
|
182
|
+
}
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraConfirmDialogService, decorators: [{
|
|
184
|
+
type: Injectable
|
|
185
|
+
}], ctorParameters: () => [{ type: i1.ConfirmationService }] });
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Generated bundle index. Do not edit.
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
export { ExtraConfirmDialogComponent, ExtraConfirmDialogFooterDirective, ExtraConfirmDialogHeaderDirective, ExtraConfirmDialogService, provideExtraConfirmDialog };
|
|
192
|
+
//# sourceMappingURL=cdek-it-angular-ui-kit-components-confirm-dialog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-confirm-dialog.mjs","sources":["../../src/lib/components/confirm-dialog/confirm-dialog.component.ts","../../src/lib/components/confirm-dialog/confirm-dialog.service.ts","../../src/lib/components/confirm-dialog/cdek-it-angular-ui-kit-components-confirm-dialog.ts"],"sourcesContent":["import { Component, ContentChild, Directive, Input, TemplateRef } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ConfirmDialog } from 'primeng/confirmdialog';\nimport { PrimeTemplate } from 'primeng/api';\nimport { ExtraButtonComponent } from '@cdek-it/angular-ui-kit/components/button';\n\nexport type ExtraConfirmDialogSize = 'sm' | 'default' | 'lg' | 'xlg';\nexport type ExtraConfirmDialogSeverity = 'success' | 'info' | 'warn' | 'help' | 'danger' | 'default';\n\n@Directive({ selector: '[extraConfirmDialogHeader]', standalone: true })\nexport class ExtraConfirmDialogHeaderDirective {}\n\n@Directive({ selector: '[extraConfirmDialogFooter]', standalone: true })\nexport class ExtraConfirmDialogFooterDirective {}\n\n@Component({\n selector: 'extra-confirm-dialog',\n host: { style: 'display: contents' },\n standalone: true,\n imports: [ConfirmDialog, ExtraButtonComponent, PrimeTemplate, NgTemplateOutlet],\n template: `\n <p-confirmDialog [key]=\"key\" [styleClass]=\"computedClass\" appendTo=\"body\">\n <ng-template pTemplate=\"headless\" let-message let-onAccept=\"onAccept\" let-onReject=\"onReject\">\n @if (headerTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"headerTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: message, onAccept, onReject }\"\n >\n </ng-container>\n } @else {\n <div class=\"p-dialog-header\">\n <div class=\"p-dialog-title\">\n <i [class]=\"message.icon\"></i>\n <span>{{ message.header }}</span>\n </div>\n <extra-button\n styleClass=\"p-dialog-close-button\"\n variant=\"text\"\n icon=\"ti ti-x\"\n [rounded]=\"true\"\n [iconOnly]=\"true\"\n (click)=\"onReject()\"\n ></extra-button>\n </div>\n }\n <div class=\"p-dialog-content\">\n <p>{{ message.message }}</p>\n </div>\n @if (footerTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"footerTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: message, onAccept, onReject }\"\n >\n </ng-container>\n } @else {\n <div class=\"p-dialog-footer\">\n <extra-button [label]=\"message.rejectLabel\" variant=\"text\" (click)=\"onReject()\"></extra-button>\n <extra-button\n [label]=\"message.acceptLabel\"\n [severity]=\"message.acceptButtonProps?.severity\"\n (click)=\"onAccept()\"\n ></extra-button>\n </div>\n }\n </ng-template>\n </p-confirmDialog>\n `\n})\nexport class ExtraConfirmDialogComponent {\n @Input() key = '';\n @Input() size: ExtraConfirmDialogSize = 'default';\n @Input() severity: ExtraConfirmDialogSeverity = 'default';\n @ContentChild(ExtraConfirmDialogHeaderDirective, { read: TemplateRef }) headerTemplate: TemplateRef<any> | null =\n null;\n @ContentChild(ExtraConfirmDialogFooterDirective, { read: TemplateRef }) footerTemplate: TemplateRef<any> | null =\n null;\n\n get computedClass(): string {\n const classes: string[] = [];\n if (this.size === 'sm') classes.push('p-confirmdialog-sm');\n else if (this.size === 'lg') classes.push('p-confirmdialog-lg');\n else if (this.size === 'xlg') classes.push('p-confirmdialog-xlg');\n\n const severityMap: Record<ExtraConfirmDialogSeverity, string> = {\n success: 'p-confirm-dialog-accept',\n info: 'p-confirm-dialog-info',\n warn: 'p-confirm-dialog-warn',\n help: 'p-confirm-dialog-help',\n danger: 'p-confirm-dialog-error',\n default: ''\n };\n if (severityMap[this.severity]) classes.push(severityMap[this.severity]);\n\n return classes.join(' ');\n }\n}\n","import { Injectable, Provider } from '@angular/core';\nimport { Confirmation, ConfirmationService } from 'primeng/api';\n\nexport type ExtraConfirmDialogOptions = Pick<\n Confirmation,\n 'key' | 'message' | 'header' | 'icon' | 'acceptLabel' | 'rejectLabel' | 'accept' | 'reject' | 'acceptButtonProps'\n>;\n\nexport function provideExtraConfirmDialog(): Provider[] {\n return [ConfirmationService, ExtraConfirmDialogService];\n}\n\n@Injectable()\nexport class ExtraConfirmDialogService {\n constructor(private readonly confirmationService: ConfirmationService) {}\n\n confirm(options: ExtraConfirmDialogOptions): void {\n this.confirmationService.confirm(options);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;MAUa,iCAAiC,CAAA;wGAAjC,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAjC,iCAAiC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAD7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA,EAAE,QAAQ,EAAE,4BAA4B,EAAE,UAAU,EAAE,IAAI,EAAE;;MAI1D,iCAAiC,CAAA;wGAAjC,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAjC,iCAAiC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAD7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA,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