@cdek-it/angular-ui-kit 0.0.2 → 0.2.4-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.
Files changed (92) hide show
  1. package/components/avatar/index.d.ts +22 -0
  2. package/components/badge/index.d.ts +19 -0
  3. package/components/breadcrumb/index.d.ts +11 -0
  4. package/components/button/index.d.ts +38 -0
  5. package/components/card/index.d.ts +20 -0
  6. package/components/checkbox/index.d.ts +43 -0
  7. package/components/chip/index.d.ts +14 -0
  8. package/components/dialog/index.d.ts +40 -0
  9. package/components/divider/index.d.ts +15 -0
  10. package/components/inputtext/index.d.ts +34 -0
  11. package/components/megamenu/index.d.ts +26 -0
  12. package/components/metergroup/index.d.ts +20 -0
  13. package/components/progressbar/index.d.ts +13 -0
  14. package/components/progressspinner/index.d.ts +17 -0
  15. package/components/radiobutton/index.d.ts +38 -0
  16. package/components/rating/index.d.ts +27 -0
  17. package/components/skeleton/index.d.ts +17 -0
  18. package/components/slider/index.d.ts +32 -0
  19. package/components/tag/index.d.ts +15 -0
  20. package/components/tieredmenu/index.d.ts +19 -0
  21. package/components/timeline/index.d.ts +23 -0
  22. package/components/tooltip/index.d.ts +18 -0
  23. package/fesm2022/cdek-it-angular-ui-kit-components-avatar.mjs +91 -0
  24. package/fesm2022/cdek-it-angular-ui-kit-components-avatar.mjs.map +1 -0
  25. package/fesm2022/cdek-it-angular-ui-kit-components-badge.mjs +57 -0
  26. package/fesm2022/cdek-it-angular-ui-kit-components-badge.mjs.map +1 -0
  27. package/fesm2022/cdek-it-angular-ui-kit-components-breadcrumb.mjs +40 -0
  28. package/fesm2022/cdek-it-angular-ui-kit-components-breadcrumb.mjs.map +1 -0
  29. package/fesm2022/cdek-it-angular-ui-kit-components-button.mjs +142 -0
  30. package/fesm2022/cdek-it-angular-ui-kit-components-button.mjs.map +1 -0
  31. package/fesm2022/cdek-it-angular-ui-kit-components-card.mjs +124 -0
  32. package/fesm2022/cdek-it-angular-ui-kit-components-card.mjs.map +1 -0
  33. package/fesm2022/cdek-it-angular-ui-kit-components-checkbox.mjs +178 -0
  34. package/fesm2022/cdek-it-angular-ui-kit-components-checkbox.mjs.map +1 -0
  35. package/fesm2022/cdek-it-angular-ui-kit-components-chip.mjs +55 -0
  36. package/fesm2022/cdek-it-angular-ui-kit-components-chip.mjs.map +1 -0
  37. package/fesm2022/cdek-it-angular-ui-kit-components-dialog.mjs +161 -0
  38. package/fesm2022/cdek-it-angular-ui-kit-components-dialog.mjs.map +1 -0
  39. package/fesm2022/cdek-it-angular-ui-kit-components-divider.mjs +49 -0
  40. package/fesm2022/cdek-it-angular-ui-kit-components-divider.mjs.map +1 -0
  41. package/fesm2022/cdek-it-angular-ui-kit-components-inputtext.mjs +185 -0
  42. package/fesm2022/cdek-it-angular-ui-kit-components-inputtext.mjs.map +1 -0
  43. package/fesm2022/cdek-it-angular-ui-kit-components-megamenu.mjs +147 -0
  44. package/fesm2022/cdek-it-angular-ui-kit-components-megamenu.mjs.map +1 -0
  45. package/fesm2022/cdek-it-angular-ui-kit-components-metergroup.mjs +68 -0
  46. package/fesm2022/cdek-it-angular-ui-kit-components-metergroup.mjs.map +1 -0
  47. package/fesm2022/cdek-it-angular-ui-kit-components-progressbar.mjs +45 -0
  48. package/fesm2022/cdek-it-angular-ui-kit-components-progressbar.mjs.map +1 -0
  49. package/fesm2022/cdek-it-angular-ui-kit-components-progressspinner.mjs +63 -0
  50. package/fesm2022/cdek-it-angular-ui-kit-components-progressspinner.mjs.map +1 -0
  51. package/fesm2022/cdek-it-angular-ui-kit-components-radiobutton.mjs +147 -0
  52. package/fesm2022/cdek-it-angular-ui-kit-components-radiobutton.mjs.map +1 -0
  53. package/fesm2022/cdek-it-angular-ui-kit-components-rating.mjs +104 -0
  54. package/fesm2022/cdek-it-angular-ui-kit-components-rating.mjs.map +1 -0
  55. package/fesm2022/cdek-it-angular-ui-kit-components-skeleton.mjs +61 -0
  56. package/fesm2022/cdek-it-angular-ui-kit-components-skeleton.mjs.map +1 -0
  57. package/fesm2022/cdek-it-angular-ui-kit-components-slider.mjs +124 -0
  58. package/fesm2022/cdek-it-angular-ui-kit-components-slider.mjs.map +1 -0
  59. package/fesm2022/cdek-it-angular-ui-kit-components-tag.mjs +55 -0
  60. package/fesm2022/cdek-it-angular-ui-kit-components-tag.mjs.map +1 -0
  61. package/fesm2022/cdek-it-angular-ui-kit-components-tieredmenu.mjs +81 -0
  62. package/fesm2022/cdek-it-angular-ui-kit-components-tieredmenu.mjs.map +1 -0
  63. package/fesm2022/cdek-it-angular-ui-kit-components-timeline.mjs +140 -0
  64. package/fesm2022/cdek-it-angular-ui-kit-components-timeline.mjs.map +1 -0
  65. package/fesm2022/cdek-it-angular-ui-kit-components-tooltip.mjs +60 -0
  66. package/fesm2022/cdek-it-angular-ui-kit-components-tooltip.mjs.map +1 -0
  67. package/fesm2022/cdek-it-angular-ui-kit-providers.mjs +5656 -0
  68. package/fesm2022/cdek-it-angular-ui-kit-providers.mjs.map +1 -0
  69. package/fesm2022/cdek-it-angular-ui-kit.mjs +6 -0
  70. package/fesm2022/cdek-it-angular-ui-kit.mjs.map +1 -0
  71. package/index.d.ts +2 -0
  72. package/package.json +119 -112
  73. package/providers/index.d.ts +5 -0
  74. package/LICENSE.md +0 -75
  75. package/README.md +0 -70
  76. package/dist-css/css/brand-dark-primary-theme.css/theme.css +0 -9924
  77. package/dist-css/css/brand-dark-primary-theme.min.css/theme.min.css +0 -2852
  78. package/dist-css/css/brand-dark-secondary-theme.css/theme.css +0 -9924
  79. package/dist-css/css/brand-dark-secondary-theme.min.css/theme.min.css +0 -2852
  80. package/dist-css/css/brand-light-primary-theme.css/theme.css +0 -10007
  81. package/dist-css/css/brand-light-primary-theme.min.css/theme.min.css +0 -2868
  82. package/dist-css/css/brand-light-secondary-theme.css/theme.css +0 -9924
  83. package/dist-css/css/brand-light-secondary-theme.min.css/theme.min.css +0 -2852
  84. package/dist-css/css/dark-primary-theme.css/theme.css +0 -9924
  85. package/dist-css/css/dark-primary-theme.min.css/theme.min.css +0 -2852
  86. package/dist-css/css/dark-secondary-theme.css/theme.css +0 -9924
  87. package/dist-css/css/dark-secondary-theme.min.css/theme.min.css +0 -2852
  88. package/dist-css/css/light-primary-theme.css/theme.css +0 -10007
  89. package/dist-css/css/light-primary-theme.min.css/theme.min.css +0 -2868
  90. package/dist-css/css/light-secondary-theme.css/theme.css +0 -9924
  91. package/dist-css/css/light-secondary-theme.min.css/theme.min.css +0 -2852
  92. package/dist-css/package.json +0 -15
@@ -0,0 +1,185 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, Injector, EventEmitter, forwardRef, Output, Input, Component } from '@angular/core';
3
+ import { NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
4
+ import { NgClass } from '@angular/common';
5
+ import { InputText } from 'primeng/inputtext';
6
+ import { IconField } from 'primeng/iconfield';
7
+ import { InputIcon } from 'primeng/inputicon';
8
+
9
+ class ExtraInputTextComponent {
10
+ _injector = inject(Injector);
11
+ _ngControl = null;
12
+ ngOnInit() {
13
+ this._ngControl = this._injector.get(NgControl, null, { self: true, optional: true });
14
+ }
15
+ placeholder = '';
16
+ size = 'base';
17
+ readonly = false;
18
+ showClear = false;
19
+ fluid = false;
20
+ disabled = false;
21
+ get invalid() {
22
+ return this._ngControl?.invalid ?? false;
23
+ }
24
+ onClear = new EventEmitter();
25
+ modelValue = '';
26
+ _onChange = () => { };
27
+ get primeSize() {
28
+ if (this.size === 'small')
29
+ return 'small';
30
+ if (this.size === 'large' || this.size === 'xlarge')
31
+ return 'large';
32
+ return undefined;
33
+ }
34
+ get sizeClass() {
35
+ return { 'p-inputtext-xlg': this.size === 'xlarge' };
36
+ }
37
+ onInput(event) {
38
+ const value = event.target.value;
39
+ this.modelValue = value;
40
+ this._onChange(value);
41
+ }
42
+ onTouched = () => { };
43
+ clearValue() {
44
+ this.modelValue = '';
45
+ this._onChange('');
46
+ this.onClear.emit();
47
+ }
48
+ writeValue(value) {
49
+ this.modelValue = value ?? '';
50
+ }
51
+ registerOnChange(fn) {
52
+ this._onChange = fn;
53
+ }
54
+ registerOnTouched(fn) {
55
+ this.onTouched = fn;
56
+ }
57
+ setDisabledState(isDisabled) {
58
+ this.disabled = isDisabled;
59
+ }
60
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraInputTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
61
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ExtraInputTextComponent, isStandalone: true, selector: "extra-input-text", inputs: { placeholder: "placeholder", size: "size", readonly: "readonly", showClear: "showClear", fluid: "fluid" }, outputs: { onClear: "onClear" }, providers: [
62
+ {
63
+ provide: NG_VALUE_ACCESSOR,
64
+ useExisting: forwardRef(() => ExtraInputTextComponent),
65
+ multi: true
66
+ }
67
+ ], ngImport: i0, template: `
68
+ @if (showClear) {
69
+ <p-iconfield [ngClass]="{ '!w-full': fluid }">
70
+ <input
71
+ pInputText
72
+ [ngClass]="sizeClass"
73
+ [pSize]="primeSize"
74
+ [disabled]="disabled"
75
+ [readOnly]="readonly"
76
+ [invalid]="invalid"
77
+ [placeholder]="placeholder"
78
+ [fluid]="fluid"
79
+ [value]="modelValue"
80
+ (input)="onInput($event)"
81
+ (blur)="onTouched()"
82
+ />
83
+ <p-inputicon
84
+ class="ti ti-x"
85
+ tabindex="0"
86
+ [style.visibility]="modelValue ? 'visible' : 'hidden'"
87
+ [style.pointerEvents]="modelValue ? 'auto' : 'none'"
88
+ (click)="clearValue()"
89
+ (keydown.enter)="clearValue()"
90
+ (keydown.space)="clearValue()"
91
+ ></p-inputicon>
92
+ </p-iconfield>
93
+ } @else {
94
+ <input
95
+ pInputText
96
+ [ngClass]="sizeClass"
97
+ [pSize]="primeSize"
98
+ [disabled]="disabled"
99
+ [readOnly]="readonly"
100
+ [invalid]="invalid"
101
+ [placeholder]="placeholder"
102
+ [fluid]="fluid"
103
+ [value]="modelValue"
104
+ (input)="onInput($event)"
105
+ (blur)="onTouched()"
106
+ />
107
+ }
108
+ `, isInline: true, dependencies: [{ kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition", "styleClass"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName", "styleClass"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
109
+ }
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraInputTextComponent, decorators: [{
111
+ type: Component,
112
+ args: [{
113
+ selector: 'extra-input-text',
114
+ standalone: true,
115
+ imports: [InputText, IconField, InputIcon, NgClass],
116
+ providers: [
117
+ {
118
+ provide: NG_VALUE_ACCESSOR,
119
+ useExisting: forwardRef(() => ExtraInputTextComponent),
120
+ multi: true
121
+ }
122
+ ],
123
+ template: `
124
+ @if (showClear) {
125
+ <p-iconfield [ngClass]="{ '!w-full': fluid }">
126
+ <input
127
+ pInputText
128
+ [ngClass]="sizeClass"
129
+ [pSize]="primeSize"
130
+ [disabled]="disabled"
131
+ [readOnly]="readonly"
132
+ [invalid]="invalid"
133
+ [placeholder]="placeholder"
134
+ [fluid]="fluid"
135
+ [value]="modelValue"
136
+ (input)="onInput($event)"
137
+ (blur)="onTouched()"
138
+ />
139
+ <p-inputicon
140
+ class="ti ti-x"
141
+ tabindex="0"
142
+ [style.visibility]="modelValue ? 'visible' : 'hidden'"
143
+ [style.pointerEvents]="modelValue ? 'auto' : 'none'"
144
+ (click)="clearValue()"
145
+ (keydown.enter)="clearValue()"
146
+ (keydown.space)="clearValue()"
147
+ ></p-inputicon>
148
+ </p-iconfield>
149
+ } @else {
150
+ <input
151
+ pInputText
152
+ [ngClass]="sizeClass"
153
+ [pSize]="primeSize"
154
+ [disabled]="disabled"
155
+ [readOnly]="readonly"
156
+ [invalid]="invalid"
157
+ [placeholder]="placeholder"
158
+ [fluid]="fluid"
159
+ [value]="modelValue"
160
+ (input)="onInput($event)"
161
+ (blur)="onTouched()"
162
+ />
163
+ }
164
+ `
165
+ }]
166
+ }], propDecorators: { placeholder: [{
167
+ type: Input
168
+ }], size: [{
169
+ type: Input
170
+ }], readonly: [{
171
+ type: Input
172
+ }], showClear: [{
173
+ type: Input
174
+ }], fluid: [{
175
+ type: Input
176
+ }], onClear: [{
177
+ type: Output
178
+ }] } });
179
+
180
+ /**
181
+ * Generated bundle index. Do not edit.
182
+ */
183
+
184
+ export { ExtraInputTextComponent };
185
+ //# sourceMappingURL=cdek-it-angular-ui-kit-components-inputtext.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cdek-it-angular-ui-kit-components-inputtext.mjs","sources":["../../src/lib/components/inputtext/inputtext.component.ts","../../src/lib/components/inputtext/cdek-it-angular-ui-kit-components-inputtext.ts"],"sourcesContent":["import { Component, Input, Output, EventEmitter, forwardRef, inject, Injector, OnInit } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';\nimport { NgClass } from '@angular/common';\nimport { InputText } from 'primeng/inputtext';\nimport { IconField } from 'primeng/iconfield';\nimport { InputIcon } from 'primeng/inputicon';\n\nexport type InputTextSize = 'small' | 'base' | 'large' | 'xlarge';\n\n\n@Component({\n selector: 'extra-input-text',\n standalone: true,\n imports: [InputText, IconField, InputIcon, NgClass],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => ExtraInputTextComponent),\n multi: true\n }\n ],\n template: `\n @if (showClear) {\n <p-iconfield [ngClass]=\"{ '!w-full': fluid }\">\n <input\n pInputText\n [ngClass]=\"sizeClass\"\n [pSize]=\"primeSize\"\n [disabled]=\"disabled\"\n [readOnly]=\"readonly\"\n [invalid]=\"invalid\"\n [placeholder]=\"placeholder\"\n [fluid]=\"fluid\"\n [value]=\"modelValue\"\n (input)=\"onInput($event)\"\n (blur)=\"onTouched()\"\n />\n <p-inputicon\n class=\"ti ti-x\"\n tabindex=\"0\"\n [style.visibility]=\"modelValue ? 'visible' : 'hidden'\"\n [style.pointerEvents]=\"modelValue ? 'auto' : 'none'\"\n (click)=\"clearValue()\"\n (keydown.enter)=\"clearValue()\"\n (keydown.space)=\"clearValue()\"\n ></p-inputicon>\n </p-iconfield>\n } @else {\n <input\n pInputText\n [ngClass]=\"sizeClass\"\n [pSize]=\"primeSize\"\n [disabled]=\"disabled\"\n [readOnly]=\"readonly\"\n [invalid]=\"invalid\"\n [placeholder]=\"placeholder\"\n [fluid]=\"fluid\"\n [value]=\"modelValue\"\n (input)=\"onInput($event)\"\n (blur)=\"onTouched()\"\n />\n }\n `\n})\nexport class ExtraInputTextComponent implements ControlValueAccessor, OnInit {\n private readonly _injector = inject(Injector);\n private _ngControl: NgControl | null = null;\n\n ngOnInit(): void {\n this._ngControl = this._injector.get(NgControl, null, { self: true, optional: true });\n }\n\n @Input() placeholder = '';\n @Input() size: InputTextSize = 'base';\n @Input() readonly = false;\n @Input() showClear = false;\n @Input() fluid = false;\n\n disabled = false;\n\n get invalid(): boolean {\n return this._ngControl?.invalid ?? false;\n }\n\n @Output() onClear = new EventEmitter<void>();\n\n modelValue = '';\n\n private _onChange: (value: string) => void = () => {};\n\n get primeSize(): 'small' | 'large' | undefined {\n if (this.size === 'small') return 'small';\n if (this.size === 'large' || this.size === 'xlarge') return 'large';\n return undefined;\n }\n\n get sizeClass(): Record<string, boolean> {\n return { 'p-inputtext-xlg': this.size === 'xlarge' };\n }\n\n onInput(event: Event): void {\n const value = (event.target as HTMLInputElement).value;\n this.modelValue = value;\n this._onChange(value);\n }\n\n onTouched: () => void = () => {};\n\n clearValue(): void {\n this.modelValue = '';\n this._onChange('');\n this.onClear.emit();\n }\n\n writeValue(value: string): void {\n this.modelValue = value ?? '';\n }\n\n registerOnChange(fn: (value: string) => 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":";;;;;;;;MAgEa,uBAAuB,CAAA;AACjB,IAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;IACrC,UAAU,GAAqB,IAAI;IAE3C,QAAQ,GAAA;QACN,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvF;IAES,WAAW,GAAG,EAAE;IAChB,IAAI,GAAkB,MAAM;IAC5B,QAAQ,GAAG,KAAK;IAChB,SAAS,GAAG,KAAK;IACjB,KAAK,GAAG,KAAK;IAEtB,QAAQ,GAAG,KAAK;AAEhB,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,UAAU,EAAE,OAAO,IAAI,KAAK;IAC1C;AAEU,IAAA,OAAO,GAAG,IAAI,YAAY,EAAQ;IAE5C,UAAU,GAAG,EAAE;AAEP,IAAA,SAAS,GAA4B,MAAK,EAAE,CAAC;AAErD,IAAA,IAAI,SAAS,GAAA;AACX,QAAA,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO;AAAE,YAAA,OAAO,OAAO;QACzC,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ;AAAE,YAAA,OAAO,OAAO;AACnE,QAAA,OAAO,SAAS;IAClB;AAEA,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,EAAE,iBAAiB,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;IACtD;AAEA,IAAA,OAAO,CAAC,KAAY,EAAA;AAClB,QAAA,MAAM,KAAK,GAAI,KAAK,CAA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A;;sBACA;;sBACA;;sBACA;;sBAQA;;;ACpFH;;AAEG;;;;"}
@@ -0,0 +1,147 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Input, Component } from '@angular/core';
3
+ import { NgTemplateOutlet } from '@angular/common';
4
+ import { MegaMenu } from 'primeng/megamenu';
5
+ import { PrimeTemplate } from 'primeng/api';
6
+ import { Badge } from 'primeng/badge';
7
+
8
+ class ExtraMegaMenuComponent {
9
+ model = [];
10
+ orientation = 'horizontal';
11
+ breakpoint = '960px';
12
+ scrollHeight = '';
13
+ disabled = false;
14
+ ariaLabel = undefined;
15
+ ariaLabelledBy = undefined;
16
+ tabindex = 0;
17
+ itemTemplate = null;
18
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraMegaMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ExtraMegaMenuComponent, isStandalone: true, selector: "extra-megamenu", inputs: { model: "model", orientation: "orientation", breakpoint: "breakpoint", scrollHeight: "scrollHeight", disabled: "disabled", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", tabindex: "tabindex", itemTemplate: "itemTemplate" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: `
20
+ <p-megamenu
21
+ [model]="model"
22
+ [orientation]="orientation"
23
+ [breakpoint]="breakpoint"
24
+ [scrollHeight]="scrollHeight"
25
+ [disabled]="disabled"
26
+ [ariaLabel]="ariaLabel"
27
+ [ariaLabelledBy]="ariaLabelledBy"
28
+ [tabindex]="tabindex"
29
+ >
30
+ <ng-template pTemplate="item" let-item let-hasSubmenu="hasSubmenu">
31
+ @if (itemTemplate) {
32
+ <ng-container [ngTemplateOutlet]="itemTemplate"
33
+ [ngTemplateOutletContext]="{ $implicit: item, hasSubmenu: hasSubmenu }">
34
+ </ng-container>
35
+ } @else {
36
+ <a
37
+ class="p-megamenu-item-link"
38
+ role="menuitem"
39
+ tabindex="0"
40
+ [class.p-disabled]="item.disabled"
41
+ [attr.href]="item.url || null"
42
+ [attr.target]="item.target || null"
43
+ >
44
+ @if (item.icon) {
45
+ <span [class]="item.icon + ' p-megamenu-item-icon'"></span>
46
+ }
47
+ @if ($any(item).description) {
48
+ <div class="megamenu-item-label">
49
+ <span class="p-megamenu-item-label">{{ item.label }}</span>
50
+ <small class="megamenu-item-caption">{{ $any(item).description }}</small>
51
+ </div>
52
+ } @else {
53
+ <span class="p-megamenu-item-label">{{ item.label }}</span>
54
+ }
55
+ @if ($any(item).badge) {
56
+ <p-badge [value]="$any(item).badge"></p-badge>
57
+ }
58
+ @if (hasSubmenu) {
59
+ <span class="p-megamenu-submenu-icon ti ti-chevron-down"></span>
60
+ }
61
+ </a>
62
+ }
63
+ </ng-template>
64
+ </p-megamenu>
65
+ `, isInline: true, dependencies: [{ kind: "component", type: MegaMenu, selector: "p-megaMenu, p-megamenu, p-mega-menu", inputs: ["model", "styleClass", "orientation", "id", "ariaLabel", "ariaLabelledBy", "breakpoint", "scrollHeight", "disabled", "tabindex"] }, { kind: "directive", type: PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Badge, selector: "p-badge", inputs: ["styleClass", "badgeSize", "size", "severity", "value", "badgeDisabled"] }] });
66
+ }
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraMegaMenuComponent, decorators: [{
68
+ type: Component,
69
+ args: [{
70
+ selector: 'extra-megamenu',
71
+ host: { style: 'display: contents' },
72
+ standalone: true,
73
+ imports: [MegaMenu, PrimeTemplate, NgTemplateOutlet, Badge],
74
+ template: `
75
+ <p-megamenu
76
+ [model]="model"
77
+ [orientation]="orientation"
78
+ [breakpoint]="breakpoint"
79
+ [scrollHeight]="scrollHeight"
80
+ [disabled]="disabled"
81
+ [ariaLabel]="ariaLabel"
82
+ [ariaLabelledBy]="ariaLabelledBy"
83
+ [tabindex]="tabindex"
84
+ >
85
+ <ng-template pTemplate="item" let-item let-hasSubmenu="hasSubmenu">
86
+ @if (itemTemplate) {
87
+ <ng-container [ngTemplateOutlet]="itemTemplate"
88
+ [ngTemplateOutletContext]="{ $implicit: item, hasSubmenu: hasSubmenu }">
89
+ </ng-container>
90
+ } @else {
91
+ <a
92
+ class="p-megamenu-item-link"
93
+ role="menuitem"
94
+ tabindex="0"
95
+ [class.p-disabled]="item.disabled"
96
+ [attr.href]="item.url || null"
97
+ [attr.target]="item.target || null"
98
+ >
99
+ @if (item.icon) {
100
+ <span [class]="item.icon + ' p-megamenu-item-icon'"></span>
101
+ }
102
+ @if ($any(item).description) {
103
+ <div class="megamenu-item-label">
104
+ <span class="p-megamenu-item-label">{{ item.label }}</span>
105
+ <small class="megamenu-item-caption">{{ $any(item).description }}</small>
106
+ </div>
107
+ } @else {
108
+ <span class="p-megamenu-item-label">{{ item.label }}</span>
109
+ }
110
+ @if ($any(item).badge) {
111
+ <p-badge [value]="$any(item).badge"></p-badge>
112
+ }
113
+ @if (hasSubmenu) {
114
+ <span class="p-megamenu-submenu-icon ti ti-chevron-down"></span>
115
+ }
116
+ </a>
117
+ }
118
+ </ng-template>
119
+ </p-megamenu>
120
+ `,
121
+ }]
122
+ }], propDecorators: { model: [{
123
+ type: Input
124
+ }], orientation: [{
125
+ type: Input
126
+ }], breakpoint: [{
127
+ type: Input
128
+ }], scrollHeight: [{
129
+ type: Input
130
+ }], disabled: [{
131
+ type: Input
132
+ }], ariaLabel: [{
133
+ type: Input
134
+ }], ariaLabelledBy: [{
135
+ type: Input
136
+ }], tabindex: [{
137
+ type: Input
138
+ }], itemTemplate: [{
139
+ type: Input
140
+ }] } });
141
+
142
+ /**
143
+ * Generated bundle index. Do not edit.
144
+ */
145
+
146
+ export { ExtraMegaMenuComponent };
147
+ //# sourceMappingURL=cdek-it-angular-ui-kit-components-megamenu.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cdek-it-angular-ui-kit-components-megamenu.mjs","sources":["../../src/lib/components/megamenu/megamenu.component.ts","../../src/lib/components/megamenu/cdek-it-angular-ui-kit-components-megamenu.ts"],"sourcesContent":["import { Component, Input, TemplateRef } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MegaMenu } from 'primeng/megamenu';\nimport { MegaMenuItem, PrimeTemplate } from 'primeng/api';\nimport { Badge } from 'primeng/badge';\n\nexport type MegaMenuOrientation = 'horizontal' | 'vertical';\n\nexport interface MegaMenuModel extends Omit<MegaMenuItem, 'items'> {\n description?: string;\n badge?: string;\n items?: MegaMenuModel[][] | MegaMenuModel[];\n}\n\n@Component({\n selector: 'extra-megamenu',\n host: { style: 'display: contents' },\n standalone: true,\n imports: [MegaMenu, PrimeTemplate, NgTemplateOutlet, Badge],\n template: `\n <p-megamenu\n [model]=\"model\"\n [orientation]=\"orientation\"\n [breakpoint]=\"breakpoint\"\n [scrollHeight]=\"scrollHeight\"\n [disabled]=\"disabled\"\n [ariaLabel]=\"ariaLabel\"\n [ariaLabelledBy]=\"ariaLabelledBy\"\n [tabindex]=\"tabindex\"\n >\n <ng-template pTemplate=\"item\" let-item let-hasSubmenu=\"hasSubmenu\">\n @if (itemTemplate) {\n <ng-container [ngTemplateOutlet]=\"itemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item, hasSubmenu: hasSubmenu }\">\n </ng-container>\n } @else {\n <a\n class=\"p-megamenu-item-link\"\n role=\"menuitem\"\n tabindex=\"0\"\n [class.p-disabled]=\"item.disabled\"\n [attr.href]=\"item.url || null\"\n [attr.target]=\"item.target || null\"\n >\n @if (item.icon) {\n <span [class]=\"item.icon + ' p-megamenu-item-icon'\"></span>\n }\n @if ($any(item).description) {\n <div class=\"megamenu-item-label\">\n <span class=\"p-megamenu-item-label\">{{ item.label }}</span>\n <small class=\"megamenu-item-caption\">{{ $any(item).description }}</small>\n </div>\n } @else {\n <span class=\"p-megamenu-item-label\">{{ item.label }}</span>\n }\n @if ($any(item).badge) {\n <p-badge [value]=\"$any(item).badge\"></p-badge>\n }\n @if (hasSubmenu) {\n <span class=\"p-megamenu-submenu-icon ti ti-chevron-down\"></span>\n }\n </a>\n }\n </ng-template>\n </p-megamenu>\n `,\n})\nexport class ExtraMegaMenuComponent {\n @Input() model: MegaMenuModel[] = [];\n @Input() orientation: MegaMenuOrientation = 'horizontal';\n @Input() breakpoint: string = '960px';\n @Input() scrollHeight: string = '';\n @Input() disabled: boolean = false;\n @Input() ariaLabel: string | undefined = undefined;\n @Input() ariaLabelledBy: string | undefined = undefined;\n @Input() tabindex: number = 0;\n @Input() itemTemplate: TemplateRef<any> | null = null;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MAmEa,sBAAsB,CAAA;IACxB,KAAK,GAAoB,EAAE;IAC3B,WAAW,GAAwB,YAAY;IAC/C,UAAU,GAAW,OAAO;IAC5B,YAAY,GAAW,EAAE;IACzB,QAAQ,GAAY,KAAK;IACzB,SAAS,GAAuB,SAAS;IACzC,cAAc,GAAuB,SAAS;IAC9C,QAAQ,GAAW,CAAC;IACpB,YAAY,GAA4B,IAAI;wGAT1C,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,WAAA,EAAA,aAAA,EAAA,UAAA,EAAA,YAAA,EAAA,YAAA,EAAA,cAAA,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CT,EAAA,CAAA;AACF,iBAAA;;sBAEE;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;;AC5EH;;AAEG;;;;"}
@@ -0,0 +1,68 @@
1
+ import * as i0 from '@angular/core';
2
+ import { HostBinding, Input, Component } from '@angular/core';
3
+ import { MeterGroup } from 'primeng/metergroup';
4
+
5
+ class ExtraMeterGroupComponent {
6
+ value = [];
7
+ orientation = 'horizontal';
8
+ labelPosition = 'end';
9
+ labelOrientation = 'horizontal';
10
+ get hostDisplay() {
11
+ return this.orientation === 'vertical' ? 'flex' : null;
12
+ }
13
+ get hostHeight() {
14
+ return this.orientation === 'vertical' ? '100%' : null;
15
+ }
16
+ get hostFlex() {
17
+ return this.orientation === 'vertical' ? '1 1 0%' : null;
18
+ }
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraMeterGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
20
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: ExtraMeterGroupComponent, isStandalone: true, selector: "extra-metergroup", inputs: { value: "value", orientation: "orientation", labelPosition: "labelPosition", labelOrientation: "labelOrientation" }, host: { properties: { "style.display": "this.hostDisplay", "style.height": "this.hostHeight", "style.flex": "this.hostFlex" } }, ngImport: i0, template: `
21
+ <p-metergroup
22
+ [value]="value"
23
+ [orientation]="orientation"
24
+ [labelPosition]="labelPosition"
25
+ [labelOrientation]="labelOrientation"
26
+ ></p-metergroup>
27
+ `, isInline: true, dependencies: [{ kind: "component", type: MeterGroup, selector: "p-meterGroup, p-metergroup, p-meter-group", inputs: ["value", "min", "max", "orientation", "labelPosition", "labelOrientation", "styleClass"] }] });
28
+ }
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraMeterGroupComponent, decorators: [{
30
+ type: Component,
31
+ args: [{
32
+ selector: 'extra-metergroup',
33
+ standalone: true,
34
+ imports: [MeterGroup],
35
+ template: `
36
+ <p-metergroup
37
+ [value]="value"
38
+ [orientation]="orientation"
39
+ [labelPosition]="labelPosition"
40
+ [labelOrientation]="labelOrientation"
41
+ ></p-metergroup>
42
+ `,
43
+ }]
44
+ }], propDecorators: { value: [{
45
+ type: Input
46
+ }], orientation: [{
47
+ type: Input
48
+ }], labelPosition: [{
49
+ type: Input
50
+ }], labelOrientation: [{
51
+ type: Input
52
+ }], hostDisplay: [{
53
+ type: HostBinding,
54
+ args: ['style.display']
55
+ }], hostHeight: [{
56
+ type: HostBinding,
57
+ args: ['style.height']
58
+ }], hostFlex: [{
59
+ type: HostBinding,
60
+ args: ['style.flex']
61
+ }] } });
62
+
63
+ /**
64
+ * Generated bundle index. Do not edit.
65
+ */
66
+
67
+ export { ExtraMeterGroupComponent };
68
+ //# sourceMappingURL=cdek-it-angular-ui-kit-components-metergroup.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cdek-it-angular-ui-kit-components-metergroup.mjs","sources":["../../src/lib/components/metergroup/metergroup.component.ts","../../src/lib/components/metergroup/cdek-it-angular-ui-kit-components-metergroup.ts"],"sourcesContent":["import { Component, HostBinding, Input } from '@angular/core';\nimport { MeterGroup, MeterItem } from 'primeng/metergroup';\n\nexport type MeterGroupOrientation = 'horizontal' | 'vertical';\nexport type MeterGroupLabelPosition = 'start' | 'end';\nexport type MeterGroupLabelOrientation = 'horizontal' | 'vertical';\n\n@Component({\n selector: 'extra-metergroup',\n standalone: true,\n imports: [MeterGroup],\n template: `\n <p-metergroup\n [value]=\"value\"\n [orientation]=\"orientation\"\n [labelPosition]=\"labelPosition\"\n [labelOrientation]=\"labelOrientation\"\n ></p-metergroup>\n `,\n})\nexport class ExtraMeterGroupComponent {\n @Input() value: MeterItem[] = [];\n @Input() orientation: MeterGroupOrientation = 'horizontal';\n @Input() labelPosition: MeterGroupLabelPosition = 'end';\n @Input() labelOrientation: MeterGroupLabelOrientation = 'horizontal';\n\n @HostBinding('style.display') get hostDisplay() {\n return this.orientation === 'vertical' ? 'flex' : null;\n }\n\n @HostBinding('style.height') get hostHeight() {\n return this.orientation === 'vertical' ? '100%' : null;\n }\n\n @HostBinding('style.flex') get hostFlex() {\n return this.orientation === 'vertical' ? '1 1 0%' : null;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;MAoBa,wBAAwB,CAAA;IAC1B,KAAK,GAAgB,EAAE;IACvB,WAAW,GAA0B,YAAY;IACjD,aAAa,GAA4B,KAAK;IAC9C,gBAAgB,GAA+B,YAAY;AAEpE,IAAA,IAAkC,WAAW,GAAA;AAC3C,QAAA,OAAO,IAAI,CAAC,WAAW,KAAK,UAAU,GAAG,MAAM,GAAG,IAAI;IACxD;AAEA,IAAA,IAAiC,UAAU,GAAA;AACzC,QAAA,OAAO,IAAI,CAAC,WAAW,KAAK,UAAU,GAAG,MAAM,GAAG,IAAI;IACxD;AAEA,IAAA,IAA+B,QAAQ,GAAA;AACrC,QAAA,OAAO,IAAI,CAAC,WAAW,KAAK,UAAU,GAAG,QAAQ,GAAG,IAAI;IAC1D;wGAhBW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAxB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,WAAA,EAAA,aAAA,EAAA,aAAA,EAAA,eAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,kBAAA,EAAA,cAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,eAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EATzB;;;;;;;AAOT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EARS,UAAU,EAAA,QAAA,EAAA,2CAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,KAAA,EAAA,KAAA,EAAA,aAAA,EAAA,eAAA,EAAA,kBAAA,EAAA,YAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAUT,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAbpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,UAAU,CAAC;AACrB,oBAAA,QAAQ,EAAE;;;;;;;AAOT,EAAA,CAAA;AACF,iBAAA;;sBAEE;;sBACA;;sBACA;;sBACA;;sBAEA,WAAW;uBAAC,eAAe;;sBAI3B,WAAW;uBAAC,cAAc;;sBAI1B,WAAW;uBAAC,YAAY;;;AClC3B;;AAEG;;;;"}
@@ -0,0 +1,45 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Input, Component } from '@angular/core';
3
+ import { ProgressBar } from 'primeng/progressbar';
4
+
5
+ class ExtraProgressBarComponent {
6
+ value = 0;
7
+ mode = 'determinate';
8
+ showValue = true;
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: ExtraProgressBarComponent, isStandalone: true, selector: "extra-progressbar", inputs: { value: "value", mode: "mode", showValue: "showValue" }, ngImport: i0, template: `
11
+ <p-progressbar
12
+ [value]="value"
13
+ [mode]="mode"
14
+ [showValue]="showValue"
15
+ ></p-progressbar>
16
+ `, isInline: true, dependencies: [{ kind: "component", type: ProgressBar, selector: "p-progressBar, p-progressbar, p-progress-bar", inputs: ["value", "showValue", "styleClass", "valueStyleClass", "unit", "mode", "color"] }] });
17
+ }
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraProgressBarComponent, decorators: [{
19
+ type: Component,
20
+ args: [{
21
+ selector: 'extra-progressbar',
22
+ standalone: true,
23
+ imports: [ProgressBar],
24
+ template: `
25
+ <p-progressbar
26
+ [value]="value"
27
+ [mode]="mode"
28
+ [showValue]="showValue"
29
+ ></p-progressbar>
30
+ `,
31
+ }]
32
+ }], propDecorators: { value: [{
33
+ type: Input
34
+ }], mode: [{
35
+ type: Input
36
+ }], showValue: [{
37
+ type: Input
38
+ }] } });
39
+
40
+ /**
41
+ * Generated bundle index. Do not edit.
42
+ */
43
+
44
+ export { ExtraProgressBarComponent };
45
+ //# sourceMappingURL=cdek-it-angular-ui-kit-components-progressbar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cdek-it-angular-ui-kit-components-progressbar.mjs","sources":["../../src/lib/components/progressbar/progressbar.component.ts","../../src/lib/components/progressbar/cdek-it-angular-ui-kit-components-progressbar.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { ProgressBar } from 'primeng/progressbar';\n\nexport type ProgressBarMode = 'determinate' | 'indeterminate';\n\n@Component({\n selector: 'extra-progressbar',\n standalone: true,\n imports: [ProgressBar],\n template: `\n <p-progressbar\n [value]=\"value\"\n [mode]=\"mode\"\n [showValue]=\"showValue\"\n ></p-progressbar>\n `,\n})\nexport class ExtraProgressBarComponent {\n @Input() value = 0;\n @Input() mode: ProgressBarMode = 'determinate';\n @Input() showValue = true;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;MAiBa,yBAAyB,CAAA;IAC3B,KAAK,GAAG,CAAC;IACT,IAAI,GAAoB,aAAa;IACrC,SAAS,GAAG,IAAI;wGAHd,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAzB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,IAAA,EAAA,MAAA,EAAA,SAAA,EAAA,WAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAR1B;;;;;;AAMT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAPS,WAAW,EAAA,QAAA,EAAA,8CAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,WAAA,EAAA,YAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FASV,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAZrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,WAAW,CAAC;AACtB,oBAAA,QAAQ,EAAE;;;;;;AAMT,EAAA,CAAA;AACF,iBAAA;;sBAEE;;sBACA;;sBACA;;;ACpBH;;AAEG;;;;"}
@@ -0,0 +1,63 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Input, Component } from '@angular/core';
3
+ import { ProgressSpinner } from 'primeng/progressspinner';
4
+
5
+ class ExtraProgressSpinnerComponent {
6
+ size = 'medium';
7
+ multicolor = true;
8
+ strokeWidth = '2';
9
+ fill = 'none';
10
+ animationDuration = '2s';
11
+ ariaLabel = undefined;
12
+ get primeStyleClass() {
13
+ const sizeClass = `p-progressspinner-${this.size}`;
14
+ const colorClass = this.multicolor ? '' : 'p-progressspinner-monochrome';
15
+ return `${sizeClass} ${colorClass}`.trim();
16
+ }
17
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraProgressSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
18
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: ExtraProgressSpinnerComponent, isStandalone: true, selector: "extra-progressspinner", inputs: { size: "size", multicolor: "multicolor", strokeWidth: "strokeWidth", fill: "fill", animationDuration: "animationDuration", ariaLabel: "ariaLabel" }, ngImport: i0, template: `
19
+ <p-progressSpinner
20
+ [styleClass]="primeStyleClass"
21
+ [strokeWidth]="strokeWidth"
22
+ [fill]="fill"
23
+ [animationDuration]="animationDuration"
24
+ [ariaLabel]="ariaLabel"
25
+ ></p-progressSpinner>
26
+ `, isInline: true, dependencies: [{ kind: "component", type: ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }] });
27
+ }
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraProgressSpinnerComponent, decorators: [{
29
+ type: Component,
30
+ args: [{
31
+ selector: 'extra-progressspinner',
32
+ standalone: true,
33
+ imports: [ProgressSpinner],
34
+ template: `
35
+ <p-progressSpinner
36
+ [styleClass]="primeStyleClass"
37
+ [strokeWidth]="strokeWidth"
38
+ [fill]="fill"
39
+ [animationDuration]="animationDuration"
40
+ [ariaLabel]="ariaLabel"
41
+ ></p-progressSpinner>
42
+ `
43
+ }]
44
+ }], propDecorators: { size: [{
45
+ type: Input
46
+ }], multicolor: [{
47
+ type: Input
48
+ }], strokeWidth: [{
49
+ type: Input
50
+ }], fill: [{
51
+ type: Input
52
+ }], animationDuration: [{
53
+ type: Input
54
+ }], ariaLabel: [{
55
+ type: Input
56
+ }] } });
57
+
58
+ /**
59
+ * Generated bundle index. Do not edit.
60
+ */
61
+
62
+ export { ExtraProgressSpinnerComponent };
63
+ //# sourceMappingURL=cdek-it-angular-ui-kit-components-progressspinner.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cdek-it-angular-ui-kit-components-progressspinner.mjs","sources":["../../src/lib/components/progressspinner/progressspinner.component.ts","../../src/lib/components/progressspinner/cdek-it-angular-ui-kit-components-progressspinner.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { ProgressSpinnerModule } from 'primeng/progressspinner'; // We use Module since PrimeNG 17/18 might export it this way. Wait, earlier we saw ProgressSpinner is standalone? Actually ProgressSpinner in v18 is standalone, but importing it as ProgressSpinner works.\n// Let's import the component directly. Wait, index.d.ts exports { ProgressSpinner, ProgressSpinnerModule }. Either is fine. Let's use ProgressSpinner.\nimport { ProgressSpinner } from 'primeng/progressspinner';\n\nexport type ProgressSpinnerSize = 'small' | 'medium' | 'large' | 'xlarge';\n\n@Component({\n selector: 'extra-progressspinner',\n standalone: true,\n imports: [ProgressSpinner],\n template: `\n <p-progressSpinner\n [styleClass]=\"primeStyleClass\"\n [strokeWidth]=\"strokeWidth\"\n [fill]=\"fill\"\n [animationDuration]=\"animationDuration\"\n [ariaLabel]=\"ariaLabel\"\n ></p-progressSpinner>\n `\n})\nexport class ExtraProgressSpinnerComponent {\n @Input() size: ProgressSpinnerSize = 'medium';\n @Input() multicolor = true;\n @Input() strokeWidth = '2';\n @Input() fill = 'none';\n @Input() animationDuration = '2s';\n @Input() ariaLabel: string | undefined = undefined;\n\n get primeStyleClass(): string {\n const sizeClass = `p-progressspinner-${this.size}`;\n const colorClass = this.multicolor ? '' : 'p-progressspinner-monochrome';\n return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