@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,70 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { HostListener, Input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { TieredMenu } from 'primeng/tieredmenu';
|
|
4
|
+
|
|
5
|
+
class ExtraTieredMenuComponent {
|
|
6
|
+
el;
|
|
7
|
+
model = [];
|
|
8
|
+
autoDisplay = true;
|
|
9
|
+
tabindex = undefined;
|
|
10
|
+
activeItemId = null;
|
|
11
|
+
constructor(el) {
|
|
12
|
+
this.el = el;
|
|
13
|
+
}
|
|
14
|
+
onItemClick(event) {
|
|
15
|
+
const target = event.target;
|
|
16
|
+
const item = target.closest('.p-tieredmenu-item');
|
|
17
|
+
if (!item)
|
|
18
|
+
return;
|
|
19
|
+
const hasSubmenu = item.querySelector(':scope > .p-tieredmenu-submenu, :scope > [class*="content-container"]');
|
|
20
|
+
if (hasSubmenu)
|
|
21
|
+
return;
|
|
22
|
+
this.activeItemId = item.id || null;
|
|
23
|
+
this.applyActiveClass();
|
|
24
|
+
}
|
|
25
|
+
ngAfterViewChecked() {
|
|
26
|
+
if (this.activeItemId) {
|
|
27
|
+
this.applyActiveClass();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
applyActiveClass() {
|
|
31
|
+
const root = this.el.nativeElement;
|
|
32
|
+
root
|
|
33
|
+
.querySelectorAll('.p-tieredmenu-item-checked')
|
|
34
|
+
.forEach((el) => el.classList.remove('p-tieredmenu-item-checked'));
|
|
35
|
+
if (this.activeItemId) {
|
|
36
|
+
const active = root.querySelector(`#${CSS.escape(this.activeItemId)}`);
|
|
37
|
+
if (active) {
|
|
38
|
+
active.classList.add('p-tieredmenu-item-checked');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraTieredMenuComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: ExtraTieredMenuComponent, isStandalone: true, selector: "extra-tieredmenu", inputs: { model: "model", autoDisplay: "autoDisplay", tabindex: "tabindex" }, host: { listeners: { "click": "onItemClick($event)" } }, ngImport: i0, template: ` <p-tieredmenu [model]="model" [autoDisplay]="autoDisplay" [tabindex]="tabindex"></p-tieredmenu> `, isInline: true, dependencies: [{ kind: "component", type: TieredMenu, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: ["model", "popup", "style", "styleClass", "breakpoint", "autoZIndex", "baseZIndex", "autoDisplay", "showTransitionOptions", "hideTransitionOptions", "id", "ariaLabel", "ariaLabelledBy", "disabled", "tabindex", "appendTo"], outputs: ["onShow", "onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
44
|
+
}
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraTieredMenuComponent, decorators: [{
|
|
46
|
+
type: Component,
|
|
47
|
+
args: [{
|
|
48
|
+
selector: 'extra-tieredmenu',
|
|
49
|
+
standalone: true,
|
|
50
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
51
|
+
imports: [TieredMenu],
|
|
52
|
+
template: ` <p-tieredmenu [model]="model" [autoDisplay]="autoDisplay" [tabindex]="tabindex"></p-tieredmenu> `
|
|
53
|
+
}]
|
|
54
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { model: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}], autoDisplay: [{
|
|
57
|
+
type: Input
|
|
58
|
+
}], tabindex: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], onItemClick: [{
|
|
61
|
+
type: HostListener,
|
|
62
|
+
args: ['click', ['$event']]
|
|
63
|
+
}] } });
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Generated bundle index. Do not edit.
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
export { ExtraTieredMenuComponent };
|
|
70
|
+
//# sourceMappingURL=cdek-it-angular-ui-kit-components-tieredmenu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-tieredmenu.mjs","sources":["../../src/lib/components/tieredmenu/tieredmenu.component.ts","../../src/lib/components/tieredmenu/cdek-it-angular-ui-kit-components-tieredmenu.ts"],"sourcesContent":["import { AfterViewChecked, ChangeDetectionStrategy, Component, ElementRef, HostListener, Input } from '@angular/core';\nimport { TieredMenu } from 'primeng/tieredmenu';\nimport { ExtraMenuItem } from '@cdek-it/angular-ui-kit/shared';\n\n@Component({\n selector: 'extra-tieredmenu',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [TieredMenu],\n template: ` <p-tieredmenu [model]=\"model\" [autoDisplay]=\"autoDisplay\" [tabindex]=\"tabindex\"></p-tieredmenu> `\n})\nexport class ExtraTieredMenuComponent implements AfterViewChecked {\n @Input() model: ExtraMenuItem[] = [];\n @Input() autoDisplay = true;\n @Input() tabindex: number | undefined = undefined;\n\n private activeItemId: string | null = null;\n\n constructor(private readonly el: ElementRef<HTMLElement>) {}\n\n @HostListener('click', ['$event'])\n onItemClick(event: MouseEvent): void {\n const target = event.target as Element;\n const item = target.closest('.p-tieredmenu-item');\n if (!item) return;\n\n const hasSubmenu = item.querySelector(':scope > .p-tieredmenu-submenu, :scope > [class*=\"content-container\"]');\n if (hasSubmenu) return;\n\n this.activeItemId = item.id || null;\n this.applyActiveClass();\n }\n\n ngAfterViewChecked(): void {\n if (this.activeItemId) {\n this.applyActiveClass();\n }\n }\n\n private applyActiveClass(): void {\n const root = this.el.nativeElement;\n root\n .querySelectorAll<HTMLElement>('.p-tieredmenu-item-checked')\n .forEach((el) => el.classList.remove('p-tieredmenu-item-checked'));\n\n if (this.activeItemId) {\n const active = root.querySelector<HTMLElement>(`#${CSS.escape(this.activeItemId)}`);\n if (active) {\n active.classList.add('p-tieredmenu-item-checked');\n }\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;MAWa,wBAAwB,CAAA;AAON,IAAA,EAAA;IANpB,KAAK,GAAoB,EAAE;IAC3B,WAAW,GAAG,IAAI;IAClB,QAAQ,GAAuB,SAAS;IAEzC,YAAY,GAAkB,IAAI;AAE1C,IAAA,WAAA,CAA6B,EAA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import { Timeline } from 'primeng/timeline';
|
|
4
|
+
import * as i1 from 'primeng/api';
|
|
5
|
+
import { SharedModule } from 'primeng/api';
|
|
6
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
7
|
+
|
|
8
|
+
class ExtraTimelineContentDirective {
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraTimelineContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
10
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: ExtraTimelineContentDirective, isStandalone: true, selector: "[extraTimelineContent]", ngImport: i0 });
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraTimelineContentDirective, decorators: [{
|
|
13
|
+
type: Directive,
|
|
14
|
+
args: [{ selector: '[extraTimelineContent]', standalone: true }]
|
|
15
|
+
}] });
|
|
16
|
+
class ExtraTimelineOppositeDirective {
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraTimelineOppositeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
18
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: ExtraTimelineOppositeDirective, isStandalone: true, selector: "[extraTimelineOpposite]", ngImport: i0 });
|
|
19
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraTimelineOppositeDirective, decorators: [{
|
|
21
|
+
type: Directive,
|
|
22
|
+
args: [{ selector: '[extraTimelineOpposite]', standalone: true }]
|
|
23
|
+
}] });
|
|
24
|
+
class ExtraTimelineMarkerDirective {
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraTimelineMarkerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
26
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: ExtraTimelineMarkerDirective, isStandalone: true, selector: "[extraTimelineMarker]", ngImport: i0 });
|
|
27
|
+
}
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraTimelineMarkerDirective, decorators: [{
|
|
29
|
+
type: Directive,
|
|
30
|
+
args: [{ selector: '[extraTimelineMarker]', standalone: true }]
|
|
31
|
+
}] });
|
|
32
|
+
class ExtraTimelineComponent {
|
|
33
|
+
value = [];
|
|
34
|
+
align = 'left';
|
|
35
|
+
layout = 'vertical';
|
|
36
|
+
showCaption = true;
|
|
37
|
+
line = 'solid';
|
|
38
|
+
icon = '';
|
|
39
|
+
markerColor = '';
|
|
40
|
+
get dataLine() {
|
|
41
|
+
return this.line;
|
|
42
|
+
}
|
|
43
|
+
get markerColorVar() {
|
|
44
|
+
return this.markerColor || null;
|
|
45
|
+
}
|
|
46
|
+
contentTemplate;
|
|
47
|
+
oppositeTemplate;
|
|
48
|
+
markerTemplate;
|
|
49
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraTimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
50
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ExtraTimelineComponent, isStandalone: true, selector: "extra-timeline", inputs: { value: "value", align: "align", layout: "layout", showCaption: "showCaption", line: "line", icon: "icon", markerColor: "markerColor" }, host: { properties: { "attr.data-line": "this.dataLine", "style.--timeline-marker-color": "this.markerColorVar" } }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ExtraTimelineContentDirective, descendants: true, read: TemplateRef }, { propertyName: "oppositeTemplate", first: true, predicate: ExtraTimelineOppositeDirective, descendants: true, read: TemplateRef }, { propertyName: "markerTemplate", first: true, predicate: ExtraTimelineMarkerDirective, descendants: true, read: TemplateRef }], ngImport: i0, template: `
|
|
51
|
+
<p-timeline [value]="value" [align]="align" [layout]="layout">
|
|
52
|
+
<ng-template pTemplate="content" let-event>
|
|
53
|
+
<ng-container
|
|
54
|
+
*ngTemplateOutlet="contentTemplate || defaultContent; context: { $implicit: event }"
|
|
55
|
+
></ng-container>
|
|
56
|
+
</ng-template>
|
|
57
|
+
|
|
58
|
+
<ng-template pTemplate="opposite" let-event>
|
|
59
|
+
@if (showCaption) {
|
|
60
|
+
@if (oppositeTemplate) {
|
|
61
|
+
<ng-container *ngTemplateOutlet="oppositeTemplate; context: { $implicit: event }"></ng-container>
|
|
62
|
+
} @else {
|
|
63
|
+
<span> </span>
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
</ng-template>
|
|
67
|
+
|
|
68
|
+
@if (markerTemplate || icon) {
|
|
69
|
+
<ng-template pTemplate="marker" let-event>
|
|
70
|
+
@if (markerTemplate) {
|
|
71
|
+
<ng-container *ngTemplateOutlet="markerTemplate; context: { $implicit: event }"></ng-container>
|
|
72
|
+
} @else {
|
|
73
|
+
<span class="p-timeline-event-marker">
|
|
74
|
+
<i [class]="icon"></i>
|
|
75
|
+
</span>
|
|
76
|
+
}
|
|
77
|
+
</ng-template>
|
|
78
|
+
}
|
|
79
|
+
</p-timeline>
|
|
80
|
+
|
|
81
|
+
<ng-template #defaultContent let-event>
|
|
82
|
+
{{ event }}
|
|
83
|
+
</ng-template>
|
|
84
|
+
`, isInline: true, dependencies: [{ kind: "component", type: Timeline, selector: "p-timeline", inputs: ["value", "styleClass", "align", "layout"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: i1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
85
|
+
}
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraTimelineComponent, decorators: [{
|
|
87
|
+
type: Component,
|
|
88
|
+
args: [{
|
|
89
|
+
selector: 'extra-timeline',
|
|
90
|
+
standalone: true,
|
|
91
|
+
imports: [Timeline, SharedModule, NgTemplateOutlet],
|
|
92
|
+
template: `
|
|
93
|
+
<p-timeline [value]="value" [align]="align" [layout]="layout">
|
|
94
|
+
<ng-template pTemplate="content" let-event>
|
|
95
|
+
<ng-container
|
|
96
|
+
*ngTemplateOutlet="contentTemplate || defaultContent; context: { $implicit: event }"
|
|
97
|
+
></ng-container>
|
|
98
|
+
</ng-template>
|
|
99
|
+
|
|
100
|
+
<ng-template pTemplate="opposite" let-event>
|
|
101
|
+
@if (showCaption) {
|
|
102
|
+
@if (oppositeTemplate) {
|
|
103
|
+
<ng-container *ngTemplateOutlet="oppositeTemplate; context: { $implicit: event }"></ng-container>
|
|
104
|
+
} @else {
|
|
105
|
+
<span> </span>
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
</ng-template>
|
|
109
|
+
|
|
110
|
+
@if (markerTemplate || icon) {
|
|
111
|
+
<ng-template pTemplate="marker" let-event>
|
|
112
|
+
@if (markerTemplate) {
|
|
113
|
+
<ng-container *ngTemplateOutlet="markerTemplate; context: { $implicit: event }"></ng-container>
|
|
114
|
+
} @else {
|
|
115
|
+
<span class="p-timeline-event-marker">
|
|
116
|
+
<i [class]="icon"></i>
|
|
117
|
+
</span>
|
|
118
|
+
}
|
|
119
|
+
</ng-template>
|
|
120
|
+
}
|
|
121
|
+
</p-timeline>
|
|
122
|
+
|
|
123
|
+
<ng-template #defaultContent let-event>
|
|
124
|
+
{{ event }}
|
|
125
|
+
</ng-template>
|
|
126
|
+
`
|
|
127
|
+
}]
|
|
128
|
+
}], propDecorators: { value: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], align: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], layout: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], showCaption: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], line: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], icon: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], markerColor: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], dataLine: [{
|
|
143
|
+
type: HostBinding,
|
|
144
|
+
args: ['attr.data-line']
|
|
145
|
+
}], markerColorVar: [{
|
|
146
|
+
type: HostBinding,
|
|
147
|
+
args: ['style.--timeline-marker-color']
|
|
148
|
+
}], contentTemplate: [{
|
|
149
|
+
type: ContentChild,
|
|
150
|
+
args: [ExtraTimelineContentDirective, { read: TemplateRef }]
|
|
151
|
+
}], oppositeTemplate: [{
|
|
152
|
+
type: ContentChild,
|
|
153
|
+
args: [ExtraTimelineOppositeDirective, { read: TemplateRef }]
|
|
154
|
+
}], markerTemplate: [{
|
|
155
|
+
type: ContentChild,
|
|
156
|
+
args: [ExtraTimelineMarkerDirective, { read: TemplateRef }]
|
|
157
|
+
}] } });
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Generated bundle index. Do not edit.
|
|
161
|
+
*/
|
|
162
|
+
|
|
163
|
+
export { ExtraTimelineComponent, ExtraTimelineContentDirective, ExtraTimelineMarkerDirective, ExtraTimelineOppositeDirective };
|
|
164
|
+
//# sourceMappingURL=cdek-it-angular-ui-kit-components-timeline.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-timeline.mjs","sources":["../../src/lib/components/timeline/timeline.component.ts","../../src/lib/components/timeline/cdek-it-angular-ui-kit-components-timeline.ts"],"sourcesContent":["import { Component, ContentChild, Directive, HostBinding, Input, TemplateRef } from '@angular/core';\nimport { Timeline } from 'primeng/timeline';\nimport { SharedModule } from 'primeng/api';\nimport { NgTemplateOutlet } from '@angular/common';\n\nexport type ExtraTimelineLine = 'solid' | 'dashed' | 'dotted' | 'none';\n\n@Directive({ selector: '[extraTimelineContent]', standalone: true })\nexport class ExtraTimelineContentDirective {}\n\n@Directive({ selector: '[extraTimelineOpposite]', standalone: true })\nexport class ExtraTimelineOppositeDirective {}\n\n@Directive({ selector: '[extraTimelineMarker]', standalone: true })\nexport class ExtraTimelineMarkerDirective {}\n\n@Component({\n selector: 'extra-timeline',\n standalone: true,\n imports: [Timeline, SharedModule, NgTemplateOutlet],\n template: `\n <p-timeline [value]=\"value\" [align]=\"align\" [layout]=\"layout\">\n <ng-template pTemplate=\"content\" let-event>\n <ng-container\n *ngTemplateOutlet=\"contentTemplate || defaultContent; context: { $implicit: event }\"\n ></ng-container>\n </ng-template>\n\n <ng-template pTemplate=\"opposite\" let-event>\n @if (showCaption) {\n @if (oppositeTemplate) {\n <ng-container *ngTemplateOutlet=\"oppositeTemplate; context: { $implicit: event }\"></ng-container>\n } @else {\n <span> </span>\n }\n }\n </ng-template>\n\n @if (markerTemplate || icon) {\n <ng-template pTemplate=\"marker\" let-event>\n @if (markerTemplate) {\n <ng-container *ngTemplateOutlet=\"markerTemplate; context: { $implicit: event }\"></ng-container>\n } @else {\n <span class=\"p-timeline-event-marker\">\n <i [class]=\"icon\"></i>\n </span>\n }\n </ng-template>\n }\n </p-timeline>\n\n <ng-template #defaultContent let-event>\n {{ event }}\n </ng-template>\n `\n})\nexport class ExtraTimelineComponent {\n @Input() value: any[] = [];\n @Input() align: 'left' | 'right' | 'alternate' | 'top' | 'bottom' = 'left';\n @Input() layout: 'vertical' | 'horizontal' = 'vertical';\n @Input() showCaption: boolean = true;\n @Input() line: ExtraTimelineLine = 'solid';\n @Input() icon = '';\n @Input() markerColor = '';\n\n @HostBinding('attr.data-line') get dataLine() {\n return this.line;\n }\n @HostBinding('style.--timeline-marker-color') get markerColorVar() {\n return this.markerColor || null;\n }\n\n @ContentChild(ExtraTimelineContentDirective, { read: TemplateRef }) contentTemplate?: TemplateRef<any>;\n @ContentChild(ExtraTimelineOppositeDirective, { read: TemplateRef }) oppositeTemplate?: TemplateRef<any>;\n @ContentChild(ExtraTimelineMarkerDirective, { read: TemplateRef }) markerTemplate?: TemplateRef<any>;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MAQa,6BAA6B,CAAA;wGAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBADzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA,EAAE,QAAQ,EAAE,wBAAwB,EAAE,UAAU,EAAE,IAAI,EAAE;;MAItD,8BAA8B,CAAA;wGAA9B,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA9B,8BAA8B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA9B,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAD1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA,EAAE,QAAQ,EAAE,yBAAyB,EAAE,UAAU,EAAE,IAAI,EAAE;;MAIvD,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,EAAA,CAAA;;4FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBADxC,SAAS;AAAC,YAAA,IAAA,EAAA,CA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ACF,iBAAA;;sBAEE;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA,WAAW;uBAAC,gBAAgB;;sBAG5B,WAAW;uBAAC,+BAA+B;;sBAI3C,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,6BAA6B,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;;sBACjE,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,8BAA8B,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;;sBAClE,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,4BAA4B,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;;;AC1EnE;;AAEG;;;;"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Input, Component, Injectable, makeEnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { Toast } from 'primeng/toast';
|
|
4
|
+
import * as i1 from 'primeng/api';
|
|
5
|
+
import { SharedModule, MessageService } from 'primeng/api';
|
|
6
|
+
|
|
7
|
+
const SEVERITY_ICONS = {
|
|
8
|
+
info: 'ti ti-info-circle',
|
|
9
|
+
success: 'ti ti-circle-check',
|
|
10
|
+
warn: 'ti ti-alert-triangle',
|
|
11
|
+
error: 'ti ti-alert-circle'
|
|
12
|
+
};
|
|
13
|
+
class ExtraToastComponent {
|
|
14
|
+
position = 'top-right';
|
|
15
|
+
key = undefined;
|
|
16
|
+
life = 5000;
|
|
17
|
+
pt = undefined;
|
|
18
|
+
resolveIcon(message) {
|
|
19
|
+
return message.icon ?? SEVERITY_ICONS[message.severity ?? 'info'] ?? 'ti ti-info-circle';
|
|
20
|
+
}
|
|
21
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ExtraToastComponent, isStandalone: true, selector: "extra-toast", inputs: { position: "position", key: "key", life: "life", pt: "pt" }, ngImport: i0, template: `
|
|
23
|
+
<p-toast [position]="position" [key]="key" [life]="life" [pt]="pt">
|
|
24
|
+
<ng-template #message let-message>
|
|
25
|
+
<div class="p-toast-accent-line"></div>
|
|
26
|
+
<i [class]="resolveIcon(message) + ' p-toast-message-icon'"></i>
|
|
27
|
+
<div class="p-toast-message-text">
|
|
28
|
+
<span class="p-toast-summary">{{ message.summary }}</span>
|
|
29
|
+
@if (message.detail) {
|
|
30
|
+
<div class="p-toast-detail">{{ message.detail }}</div>
|
|
31
|
+
}
|
|
32
|
+
</div>
|
|
33
|
+
</ng-template>
|
|
34
|
+
</p-toast>
|
|
35
|
+
`, isInline: true, dependencies: [{ kind: "component", type: Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "ngmodule", type: SharedModule }] });
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraToastComponent, decorators: [{
|
|
38
|
+
type: Component,
|
|
39
|
+
args: [{
|
|
40
|
+
selector: 'extra-toast',
|
|
41
|
+
standalone: true,
|
|
42
|
+
imports: [Toast, SharedModule],
|
|
43
|
+
template: `
|
|
44
|
+
<p-toast [position]="position" [key]="key" [life]="life" [pt]="pt">
|
|
45
|
+
<ng-template #message let-message>
|
|
46
|
+
<div class="p-toast-accent-line"></div>
|
|
47
|
+
<i [class]="resolveIcon(message) + ' p-toast-message-icon'"></i>
|
|
48
|
+
<div class="p-toast-message-text">
|
|
49
|
+
<span class="p-toast-summary">{{ message.summary }}</span>
|
|
50
|
+
@if (message.detail) {
|
|
51
|
+
<div class="p-toast-detail">{{ message.detail }}</div>
|
|
52
|
+
}
|
|
53
|
+
</div>
|
|
54
|
+
</ng-template>
|
|
55
|
+
</p-toast>
|
|
56
|
+
`
|
|
57
|
+
}]
|
|
58
|
+
}], propDecorators: { position: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], key: [{
|
|
61
|
+
type: Input
|
|
62
|
+
}], life: [{
|
|
63
|
+
type: Input
|
|
64
|
+
}], pt: [{
|
|
65
|
+
type: Input
|
|
66
|
+
}] } });
|
|
67
|
+
|
|
68
|
+
class ExtraToastService {
|
|
69
|
+
messageService;
|
|
70
|
+
constructor(messageService) {
|
|
71
|
+
this.messageService = messageService;
|
|
72
|
+
}
|
|
73
|
+
add(message) {
|
|
74
|
+
this.messageService.add(message);
|
|
75
|
+
}
|
|
76
|
+
clear(key) {
|
|
77
|
+
this.messageService.clear(key);
|
|
78
|
+
}
|
|
79
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraToastService, deps: [{ token: i1.MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
80
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraToastService, providedIn: 'root' });
|
|
81
|
+
}
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraToastService, decorators: [{
|
|
83
|
+
type: Injectable,
|
|
84
|
+
args: [{ providedIn: 'root' }]
|
|
85
|
+
}], ctorParameters: () => [{ type: i1.MessageService }] });
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Регистрирует зависимости, необходимые для работы `ExtraToastService` и `<extra-toast>`.
|
|
89
|
+
* Вызывать один раз в `ApplicationConfig.providers` или в `bootstrapApplication`.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* // app.config.ts
|
|
93
|
+
* export const appConfig: ApplicationConfig = {
|
|
94
|
+
* providers: [provideExtraToast()],
|
|
95
|
+
* };
|
|
96
|
+
*/
|
|
97
|
+
function provideExtraToast() {
|
|
98
|
+
return makeEnvironmentProviders([MessageService]);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Generated bundle index. Do not edit.
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
export { ExtraToastComponent, ExtraToastService, provideExtraToast };
|
|
106
|
+
//# sourceMappingURL=cdek-it-angular-ui-kit-components-toast.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-toast.mjs","sources":["../../src/lib/components/toast/toast.component.ts","../../src/lib/components/toast/toast.service.ts","../../src/lib/components/toast/provide-toast.ts","../../src/lib/components/toast/cdek-it-angular-ui-kit-components-toast.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { Toast } from 'primeng/toast';\nimport { SharedModule } from 'primeng/api';\n\nexport type ExtraToastSeverity = 'success' | 'info' | 'warn' | 'error' | 'secondary' | 'contrast';\nexport type ExtraToastPosition =\n | 'top-right'\n | 'top-left'\n | 'top-center'\n | 'bottom-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'center';\n\nconst SEVERITY_ICONS: Record<string, string> = {\n info: 'ti ti-info-circle',\n success: 'ti ti-circle-check',\n warn: 'ti ti-alert-triangle',\n error: 'ti ti-alert-circle'\n};\n\n@Component({\n selector: 'extra-toast',\n standalone: true,\n imports: [Toast, SharedModule],\n template: `\n <p-toast [position]=\"position\" [key]=\"key\" [life]=\"life\" [pt]=\"pt\">\n <ng-template #message let-message>\n <div class=\"p-toast-accent-line\"></div>\n <i [class]=\"resolveIcon(message) + ' p-toast-message-icon'\"></i>\n <div class=\"p-toast-message-text\">\n <span class=\"p-toast-summary\">{{ message.summary }}</span>\n @if (message.detail) {\n <div class=\"p-toast-detail\">{{ message.detail }}</div>\n }\n </div>\n </ng-template>\n </p-toast>\n `\n})\nexport class ExtraToastComponent {\n @Input() position: ExtraToastPosition = 'top-right';\n @Input() key: string | undefined = undefined;\n @Input() life = 5000;\n @Input() pt: Record<string, any> | undefined = undefined;\n\n resolveIcon(message: { severity?: string; icon?: string }): string {\n return message.icon ?? SEVERITY_ICONS[message.severity ?? 'info'] ?? 'ti ti-info-circle';\n }\n}\n","import { Injectable } from '@angular/core';\nimport { MessageService } from 'primeng/api';\nimport { ExtraToastSeverity } from './toast.component';\n\nexport interface ExtraToastMessage {\n key?: string;\n severity?: ExtraToastSeverity;\n summary?: string;\n detail?: string;\n life?: number;\n icon?: string;\n closable?: boolean;\n data?: unknown;\n}\n\n@Injectable({ providedIn: 'root' })\nexport class ExtraToastService {\n constructor(private readonly messageService: MessageService) {}\n\n add(message: ExtraToastMessage): void {\n this.messageService.add(message);\n }\n\n clear(key?: string): void {\n this.messageService.clear(key);\n }\n}\n","import { EnvironmentProviders, makeEnvironmentProviders } from '@angular/core';\nimport { MessageService } from 'primeng/api';\n\n/**\n * Регистрирует зависимости, необходимые для работы `ExtraToastService` и `<extra-toast>`.\n * Вызывать один раз в `ApplicationConfig.providers` или в `bootstrapApplication`.\n *\n * @example\n * // app.config.ts\n * export const appConfig: ApplicationConfig = {\n * providers: [provideExtraToast()],\n * };\n */\nexport function provideExtraToast(): EnvironmentProviders {\n return makeEnvironmentProviders([MessageService]);\n}\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAcA,MAAM,cAAc,GAA2B;AAC7C,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,IAAI,EAAE,sBAAsB;AAC5B,IAAA,KAAK,EAAE;CACR;MAqBY,mBAAmB,CAAA;IACrB,QAAQ,GAAuB,WAAW;IAC1C,GAAG,GAAuB,SAAS;IACnC,IAAI,GAAG,IAAI;IACX,EAAE,GAAoC,SAAS;AAExD,IAAA,WAAW,CAAC,OAA6C,EAAA;AACvD,QAAA,OAAO,OAAO,CAAC,IAAI,IAAI,cAAc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AAChB,QAAA,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC;IAChC;wGATW,iBAAiB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,cAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,cADJ,MAAM,EAAA,CAAA;;4FACnB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACZlC;;;;;;;;;AASG;SACa,iBAAiB,GAAA;AAC/B,IAAA,OAAO,wBAAwB,CAAC,CAAC,cAAc,CAAC,CAAC;AACnD;;ACfA;;AAEG;;;;"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Output, Optional, Self, Component } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { FormsModule } from '@angular/forms';
|
|
5
|
+
import { ToggleSwitch } from 'primeng/toggleswitch';
|
|
6
|
+
|
|
7
|
+
class ExtraToggleSwitchComponent {
|
|
8
|
+
ngControl;
|
|
9
|
+
onChange = new EventEmitter();
|
|
10
|
+
onFocus = new EventEmitter();
|
|
11
|
+
onBlur = new EventEmitter();
|
|
12
|
+
modelValue = false;
|
|
13
|
+
_disabled = false;
|
|
14
|
+
_onChange = () => { };
|
|
15
|
+
_onTouched = () => { };
|
|
16
|
+
constructor(ngControl) {
|
|
17
|
+
this.ngControl = ngControl;
|
|
18
|
+
if (ngControl) {
|
|
19
|
+
ngControl.valueAccessor = this;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
get isDisabled() {
|
|
23
|
+
return this._disabled;
|
|
24
|
+
}
|
|
25
|
+
get isInvalid() {
|
|
26
|
+
return !!this.ngControl?.invalid;
|
|
27
|
+
}
|
|
28
|
+
handleChange(value) {
|
|
29
|
+
this.modelValue = value;
|
|
30
|
+
this._onChange(value);
|
|
31
|
+
this._onTouched();
|
|
32
|
+
}
|
|
33
|
+
writeValue(value) {
|
|
34
|
+
this.modelValue = value ?? false;
|
|
35
|
+
}
|
|
36
|
+
registerOnChange(fn) {
|
|
37
|
+
this._onChange = fn;
|
|
38
|
+
}
|
|
39
|
+
registerOnTouched(fn) {
|
|
40
|
+
this._onTouched = fn;
|
|
41
|
+
}
|
|
42
|
+
setDisabledState(isDisabled) {
|
|
43
|
+
this._disabled = isDisabled;
|
|
44
|
+
}
|
|
45
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraToggleSwitchComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: ExtraToggleSwitchComponent, isStandalone: true, selector: "extra-toggleswitch", outputs: { onChange: "onChange", onFocus: "onFocus", onBlur: "onBlur" }, ngImport: i0, template: `
|
|
47
|
+
<p-toggleswitch
|
|
48
|
+
[ngModel]="modelValue"
|
|
49
|
+
(ngModelChange)="handleChange($event)"
|
|
50
|
+
[invalid]="isInvalid"
|
|
51
|
+
[disabled]="isDisabled"
|
|
52
|
+
(onChange)="onChange.emit($event)"
|
|
53
|
+
(onFocus)="onFocus.emit($event)"
|
|
54
|
+
(onBlur)="onBlur.emit($event)"
|
|
55
|
+
></p-toggleswitch>
|
|
56
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ToggleSwitch, selector: "p-toggleswitch, p-toggleSwitch, p-toggle-switch", inputs: ["styleClass", "tabindex", "inputId", "readonly", "trueValue", "falseValue", "ariaLabel", "size", "ariaLabelledBy", "autofocus"], outputs: ["onChange"] }, { 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"] }] });
|
|
57
|
+
}
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraToggleSwitchComponent, decorators: [{
|
|
59
|
+
type: Component,
|
|
60
|
+
args: [{
|
|
61
|
+
selector: 'extra-toggleswitch',
|
|
62
|
+
standalone: true,
|
|
63
|
+
imports: [ToggleSwitch, FormsModule],
|
|
64
|
+
template: `
|
|
65
|
+
<p-toggleswitch
|
|
66
|
+
[ngModel]="modelValue"
|
|
67
|
+
(ngModelChange)="handleChange($event)"
|
|
68
|
+
[invalid]="isInvalid"
|
|
69
|
+
[disabled]="isDisabled"
|
|
70
|
+
(onChange)="onChange.emit($event)"
|
|
71
|
+
(onFocus)="onFocus.emit($event)"
|
|
72
|
+
(onBlur)="onBlur.emit($event)"
|
|
73
|
+
></p-toggleswitch>
|
|
74
|
+
`
|
|
75
|
+
}]
|
|
76
|
+
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
77
|
+
type: Optional
|
|
78
|
+
}, {
|
|
79
|
+
type: Self
|
|
80
|
+
}] }], propDecorators: { onChange: [{
|
|
81
|
+
type: Output
|
|
82
|
+
}], onFocus: [{
|
|
83
|
+
type: Output
|
|
84
|
+
}], onBlur: [{
|
|
85
|
+
type: Output
|
|
86
|
+
}] } });
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Generated bundle index. Do not edit.
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
export { ExtraToggleSwitchComponent };
|
|
93
|
+
//# sourceMappingURL=cdek-it-angular-ui-kit-components-toggleswitch.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-toggleswitch.mjs","sources":["../../src/lib/components/toggleswitch/toggleswitch.component.ts","../../src/lib/components/toggleswitch/cdek-it-angular-ui-kit-components-toggleswitch.ts"],"sourcesContent":["import { Component, EventEmitter, Optional, Output, Self } from '@angular/core';\nimport { ControlValueAccessor, FormsModule, NgControl } from '@angular/forms';\nimport { ToggleSwitch } from 'primeng/toggleswitch';\n\n@Component({\n selector: 'extra-toggleswitch',\n standalone: true,\n imports: [ToggleSwitch, FormsModule],\n template: `\n <p-toggleswitch\n [ngModel]=\"modelValue\"\n (ngModelChange)=\"handleChange($event)\"\n [invalid]=\"isInvalid\"\n [disabled]=\"isDisabled\"\n (onChange)=\"onChange.emit($event)\"\n (onFocus)=\"onFocus.emit($event)\"\n (onBlur)=\"onBlur.emit($event)\"\n ></p-toggleswitch>\n `\n})\nexport class ExtraToggleSwitchComponent implements ControlValueAccessor {\n @Output() onChange = new EventEmitter<unknown>();\n @Output() onFocus = new EventEmitter<Event>();\n @Output() onBlur = new EventEmitter<Event>();\n\n modelValue = false;\n\n private _disabled = false;\n\n private _onChange: (value: boolean) => void = () => {};\n private _onTouched: () => void = () => {};\n\n constructor(@Optional() @Self() private ngControl: NgControl) {\n if (ngControl) {\n ngControl.valueAccessor = this;\n }\n }\n\n get isDisabled(): boolean {\n return this._disabled;\n }\n\n get isInvalid(): boolean {\n return !!this.ngControl?.invalid;\n }\n\n handleChange(value: boolean): void {\n this.modelValue = value;\n this._onChange(value);\n this._onTouched();\n }\n\n writeValue(value: boolean): void {\n this.modelValue = value ?? false;\n }\n\n registerOnChange(fn: (value: boolean) => 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":";;;;;;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;;ACvBH;;AAEG;;;;"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Input, Directive } from '@angular/core';
|
|
3
|
+
import * as i1 from 'primeng/tooltip';
|
|
4
|
+
import { Tooltip } from 'primeng/tooltip';
|
|
5
|
+
|
|
6
|
+
class ExtraTooltipDirective {
|
|
7
|
+
tooltip;
|
|
8
|
+
position = 'right';
|
|
9
|
+
event = 'hover';
|
|
10
|
+
showDelay;
|
|
11
|
+
hideDelay;
|
|
12
|
+
disabled = false;
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: ExtraTooltipDirective, isStandalone: true, selector: "[extra-tooltip]", inputs: { tooltip: "tooltip", position: "position", event: "event", showDelay: "showDelay", hideDelay: "hideDelay", disabled: "disabled" }, hostDirectives: [{ directive: i1.Tooltip, inputs: ["pTooltip", "tooltip", "tooltipPosition", "position", "tooltipEvent", "event", "showDelay", "showDelay", "hideDelay", "hideDelay", "tooltipDisabled", "disabled", "escape", "escape", "autoHide", "autoHide", "fitContent", "fitContent", "hideOnEscape", "hideOnEscape", "positionTop", "positionTop", "positionLeft", "positionLeft"] }], ngImport: i0 });
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraTooltipDirective, decorators: [{
|
|
17
|
+
type: Directive,
|
|
18
|
+
args: [{
|
|
19
|
+
selector: '[extra-tooltip]',
|
|
20
|
+
standalone: true,
|
|
21
|
+
hostDirectives: [
|
|
22
|
+
{
|
|
23
|
+
directive: Tooltip,
|
|
24
|
+
inputs: [
|
|
25
|
+
'pTooltip: tooltip',
|
|
26
|
+
'tooltipPosition: position',
|
|
27
|
+
'tooltipEvent: event',
|
|
28
|
+
'showDelay: showDelay',
|
|
29
|
+
'hideDelay: hideDelay',
|
|
30
|
+
'tooltipDisabled: disabled',
|
|
31
|
+
'escape: escape',
|
|
32
|
+
'autoHide: autoHide',
|
|
33
|
+
'fitContent: fitContent',
|
|
34
|
+
'hideOnEscape: hideOnEscape',
|
|
35
|
+
'positionTop: positionTop',
|
|
36
|
+
'positionLeft: positionLeft'
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}]
|
|
41
|
+
}], propDecorators: { tooltip: [{
|
|
42
|
+
type: Input
|
|
43
|
+
}], position: [{
|
|
44
|
+
type: Input
|
|
45
|
+
}], event: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}], showDelay: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], hideDelay: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], disabled: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}] } });
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Generated bundle index. Do not edit.
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
export { ExtraTooltipDirective };
|
|
60
|
+
//# sourceMappingURL=cdek-it-angular-ui-kit-components-tooltip.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-tooltip.mjs","sources":["../../src/lib/components/tooltip/tooltip.directive.ts","../../src/lib/components/tooltip/cdek-it-angular-ui-kit-components-tooltip.ts"],"sourcesContent":["import { Directive, Input } from '@angular/core';\nimport { Tooltip } from 'primeng/tooltip';\n\nexport type ExtraTooltipPosition = 'right' | 'left' | 'top' | 'bottom';\nexport type ExtraTooltipEvent = 'hover' | 'focus' | 'both';\n\n@Directive({\n selector: '[extra-tooltip]',\n standalone: true,\n hostDirectives: [\n {\n directive: Tooltip,\n inputs: [\n 'pTooltip: tooltip',\n 'tooltipPosition: position',\n 'tooltipEvent: event',\n 'showDelay: showDelay',\n 'hideDelay: hideDelay',\n 'tooltipDisabled: disabled',\n 'escape: escape',\n 'autoHide: autoHide',\n 'fitContent: fitContent',\n 'hideOnEscape: hideOnEscape',\n 'positionTop: positionTop',\n 'positionLeft: positionLeft'\n ]\n }\n ]\n})\nexport class ExtraTooltipDirective {\n @Input() tooltip: string | undefined;\n @Input() position: ExtraTooltipPosition = 'right';\n @Input() event: ExtraTooltipEvent = 'hover';\n @Input() showDelay: number | undefined;\n @Input() hideDelay: number | undefined;\n @Input() disabled: boolean = false;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;MA6Ba,qBAAqB,CAAA;AACvB,IAAA,OAAO;IACP,QAAQ,GAAyB,OAAO;IACxC,KAAK,GAAsB,OAAO;AAClC,IAAA,SAAS;AACT,IAAA,SAAS;IACT,QAAQ,GAAY,KAAK;wGANvB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,UAAA,EAAA,KAAA,EAAA,OAAA,EAAA,SAAA,EAAA,WAAA,EAAA,SAAA,EAAA,WAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,SAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,cAAA,EAAA,OAAA,EAAA,WAAA,EAAA,WAAA,EAAA,WAAA,EAAA,WAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,UAAA,EAAA,UAAA,EAAA,YAAA,EAAA,YAAA,EAAA,cAAA,EAAA,cAAA,EAAA,aAAA,EAAA,aAAA,EAAA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