@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
|
@@ -1 +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
|
|
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 { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { ProgressBar } from 'primeng/progressbar';\n\nexport type ExtraProgressBarMode = 'determinate' | 'indeterminate';\n\n@Component({\n selector: 'extra-progressbar',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ProgressBar],\n template: ` <p-progressbar [value]=\"value\" [mode]=\"mode\" [showValue]=\"showValue\"></p-progressbar> `\n})\nexport class ExtraProgressBarComponent {\n @Input() value = 0;\n @Input() mode: ExtraProgressBarMode = 'determinate';\n @Input() showValue = true;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;MAYa,yBAAyB,CAAA;IAC3B,KAAK,GAAG,CAAC;IACT,IAAI,GAAyB,aAAa;IAC1C,SAAS,GAAG,IAAI;wGAHd,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAzB,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,EAF1B,CAAA,uFAAA,CAAyF,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EADzF,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,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAGV,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAPrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,WAAW,CAAC;AACtB,oBAAA,QAAQ,EAAE,CAAA,uFAAA;AACX,iBAAA;;sBAEE;;sBACA;;sBACA;;;ACfH;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Input, Component } from '@angular/core';
|
|
2
|
+
import { Input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
import { ProgressSpinner } from 'primeng/progressspinner';
|
|
4
4
|
|
|
5
5
|
class ExtraProgressSpinnerComponent {
|
|
@@ -23,13 +23,14 @@ class ExtraProgressSpinnerComponent {
|
|
|
23
23
|
[animationDuration]="animationDuration"
|
|
24
24
|
[ariaLabel]="ariaLabel"
|
|
25
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"] }] });
|
|
26
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
27
27
|
}
|
|
28
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraProgressSpinnerComponent, decorators: [{
|
|
29
29
|
type: Component,
|
|
30
30
|
args: [{
|
|
31
31
|
selector: 'extra-progressspinner',
|
|
32
32
|
standalone: true,
|
|
33
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
33
34
|
imports: [ProgressSpinner],
|
|
34
35
|
template: `
|
|
35
36
|
<p-progressSpinner
|
|
@@ -1 +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';\
|
|
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 { ChangeDetectionStrategy, Component, Input } from '@angular/core';\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 ExtraProgressSpinnerSize = 'small' | 'medium' | 'large' | 'xlarge';\n\n@Component({\n selector: 'extra-progressspinner',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\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: ExtraProgressSpinnerSize = '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 `${sizeClass} ${colorClass}`.trim();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;MAqBa,6BAA6B,CAAA;IAC/B,IAAI,GAA6B,QAAQ;IACzC,UAAU,GAAG,IAAI;IACjB,WAAW,GAAG,GAAG;IACjB,IAAI,GAAG,MAAM;IACb,iBAAiB,GAAG,IAAI;IACxB,SAAS,GAAuB,SAAS;AAElD,IAAA,IAAI,eAAe,GAAA;AACjB,QAAA,MAAM,SAAS,GAAG,CAAA,kBAAA,EAAqB,IAAI,CAAC,IAAI,EAAE;AAClD,QAAA,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,GAAG,EAAE,GAAG,8BAA8B;QACxE,OAAO,CAAA,EAAG,SAAS,CAAA,CAAA,EAAI,UAAU,EAAE,CAAC,IAAI,EAAE;IAC5C;wGAZW,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA7B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,UAAA,EAAA,YAAA,EAAA,WAAA,EAAA,aAAA,EAAA,IAAA,EAAA,MAAA,EAAA,iBAAA,EAAA,mBAAA,EAAA,SAAA,EAAA,WAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAV9B;;;;;;;;AAQT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EATS,eAAe,EAAA,QAAA,EAAA,0DAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,aAAA,EAAA,MAAA,EAAA,mBAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAWd,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAfzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,eAAe,CAAC;AAC1B,oBAAA,QAAQ,EAAE;;;;;;;;AAQT,EAAA;AACF,iBAAA;;sBAEE;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;;AC3BH;;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 { RadioButton } from 'primeng/radiobutton';
|
|
@@ -54,8 +54,8 @@ class ExtraRadiobuttonComponent {
|
|
|
54
54
|
{
|
|
55
55
|
provide: NG_VALUE_ACCESSOR,
|
|
56
56
|
useExisting: forwardRef(() => ExtraRadiobuttonComponent),
|
|
57
|
-
multi: true
|
|
58
|
-
}
|
|
57
|
+
multi: true
|
|
58
|
+
}
|
|
59
59
|
], ngImport: i0, template: `
|
|
60
60
|
<p-radiobutton
|
|
61
61
|
[value]="value"
|
|
@@ -74,20 +74,21 @@ class ExtraRadiobuttonComponent {
|
|
|
74
74
|
(onFocus)="onFocus.emit($event)"
|
|
75
75
|
(onBlur)="onBlur.emit($event)"
|
|
76
76
|
></p-radiobutton>
|
|
77
|
-
`, isInline: true, dependencies: [{ kind: "component", type: RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "styleClass", "autofocus", "binary", "variant", "size"], outputs: ["onClick", "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"] }] });
|
|
77
|
+
`, isInline: true, dependencies: [{ kind: "component", type: RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "styleClass", "autofocus", "binary", "variant", "size"], outputs: ["onClick", "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 });
|
|
78
78
|
}
|
|
79
79
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraRadiobuttonComponent, decorators: [{
|
|
80
80
|
type: Component,
|
|
81
81
|
args: [{
|
|
82
82
|
selector: 'extra-radiobutton',
|
|
83
83
|
standalone: true,
|
|
84
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
84
85
|
imports: [RadioButton, FormsModule],
|
|
85
86
|
providers: [
|
|
86
87
|
{
|
|
87
88
|
provide: NG_VALUE_ACCESSOR,
|
|
88
89
|
useExisting: forwardRef(() => ExtraRadiobuttonComponent),
|
|
89
|
-
multi: true
|
|
90
|
-
}
|
|
90
|
+
multi: true
|
|
91
|
+
}
|
|
91
92
|
],
|
|
92
93
|
template: `
|
|
93
94
|
<p-radiobutton
|
|
@@ -107,7 +108,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
107
108
|
(onFocus)="onFocus.emit($event)"
|
|
108
109
|
(onBlur)="onBlur.emit($event)"
|
|
109
110
|
></p-radiobutton>
|
|
110
|
-
|
|
111
|
+
`
|
|
111
112
|
}]
|
|
112
113
|
}], propDecorators: { value: [{
|
|
113
114
|
type: Input
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdek-it-angular-ui-kit-components-radiobutton.mjs","sources":["../../src/lib/components/radiobutton/radiobutton.component.ts","../../src/lib/components/radiobutton/cdek-it-angular-ui-kit-components-radiobutton.ts"],"sourcesContent":["import { Component,
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-radiobutton.mjs","sources":["../../src/lib/components/radiobutton/radiobutton.component.ts","../../src/lib/components/radiobutton/cdek-it-angular-ui-kit-components-radiobutton.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, forwardRef, Input, Output } from '@angular/core';\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { RadioButton, RadioButtonClickEvent } from 'primeng/radiobutton';\n\nexport type ExtraRadiobuttonVariant = 'outlined' | 'filled';\nexport type ExtraRadiobuttonSize = 'small' | 'base' | 'large';\nexport type ExtraRadioButtonClickEvent = RadioButtonClickEvent;\n\n@Component({\n selector: 'extra-radiobutton',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [RadioButton, FormsModule],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => ExtraRadiobuttonComponent),\n multi: true\n }\n ],\n template: `\n <p-radiobutton\n [value]=\"value\"\n [name]=\"name ?? ''\"\n [disabled]=\"disabled\"\n [invalid]=\"invalid\"\n [(ngModel)]=\"modelValue\"\n [variant]=\"primeVariant\"\n [size]=\"primeSize\"\n [inputId]=\"inputId\"\n [tabindex]=\"tabindex\"\n [ariaLabel]=\"ariaLabel\"\n [ariaLabelledBy]=\"ariaLabelledBy\"\n [autofocus]=\"autofocus\"\n (onClick)=\"onClickHandler($event)\"\n (onFocus)=\"onFocus.emit($event)\"\n (onBlur)=\"onBlur.emit($event)\"\n ></p-radiobutton>\n `\n})\nexport class ExtraRadiobuttonComponent implements ControlValueAccessor {\n @Input() value: any = null;\n @Input() name: string | undefined = undefined;\n @Input() disabled = false;\n @Input() invalid = false;\n @Input() variant: ExtraRadiobuttonVariant = 'outlined';\n @Input() size: ExtraRadiobuttonSize = 'base';\n @Input() inputId: string | undefined = undefined;\n @Input() tabindex: number | undefined = undefined;\n @Input() ariaLabel: string | undefined = undefined;\n @Input() ariaLabelledBy: string | undefined = undefined;\n @Input() autofocus = false;\n\n @Output() onClick = new EventEmitter<ExtraRadioButtonClickEvent>();\n @Output() onFocus = new EventEmitter<Event>();\n @Output() onBlur = new EventEmitter<Event>();\n\n modelValue: any = null;\n\n private _onChange: (value: any) => void = () => {};\n private _onTouched: () => void = () => {};\n\n get primeSize(): 'small' | 'large' | undefined {\n if (this.size === 'small') return 'small';\n if (this.size === 'large') return 'large';\n return undefined;\n }\n\n get primeVariant(): 'filled' | undefined {\n return this.variant === 'filled' ? 'filled' : undefined;\n }\n\n onClickHandler(event: ExtraRadioButtonClickEvent): void {\n this._onChange(event.value);\n this._onTouched();\n this.onClick.emit(event);\n }\n\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: bool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AA,EAAA,IAAA,EA1BS,WAAW,oQAAE,WAAW,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FA4BvB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAhCrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;AACnC,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,+BAA+B,CAAC;AACxD,4BAAA,KAAK,EAAE;AACR;AACF,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;AAkBT,EAAA;AACF,iBAAA;;sBAEE;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBACA;;;ACvDH;;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 { Rating } from 'primeng/rating';
|
|
@@ -37,8 +37,8 @@ class ExtraRatingComponent {
|
|
|
37
37
|
{
|
|
38
38
|
provide: NG_VALUE_ACCESSOR,
|
|
39
39
|
useExisting: forwardRef(() => ExtraRatingComponent),
|
|
40
|
-
multi: true
|
|
41
|
-
}
|
|
40
|
+
multi: true
|
|
41
|
+
}
|
|
42
42
|
], ngImport: i0, template: `
|
|
43
43
|
<p-rating
|
|
44
44
|
[ngModel]="modelValue"
|
|
@@ -51,20 +51,21 @@ class ExtraRatingComponent {
|
|
|
51
51
|
(onFocus)="onFocus.emit($event)"
|
|
52
52
|
(onBlur)="onBlur.emit($event)"
|
|
53
53
|
></p-rating>
|
|
54
|
-
`, isInline: true, dependencies: [{ kind: "component", type: Rating, selector: "p-rating", inputs: ["readonly", "stars", "iconOnClass", "iconOnStyle", "iconOffClass", "iconOffStyle", "autofocus"], outputs: ["onRate", "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"] }] });
|
|
54
|
+
`, isInline: true, dependencies: [{ kind: "component", type: Rating, selector: "p-rating", inputs: ["readonly", "stars", "iconOnClass", "iconOnStyle", "iconOffClass", "iconOffStyle", "autofocus"], outputs: ["onRate", "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 });
|
|
55
55
|
}
|
|
56
56
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraRatingComponent, decorators: [{
|
|
57
57
|
type: Component,
|
|
58
58
|
args: [{
|
|
59
59
|
selector: 'extra-rating',
|
|
60
60
|
standalone: true,
|
|
61
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
61
62
|
imports: [Rating, FormsModule],
|
|
62
63
|
providers: [
|
|
63
64
|
{
|
|
64
65
|
provide: NG_VALUE_ACCESSOR,
|
|
65
66
|
useExisting: forwardRef(() => ExtraRatingComponent),
|
|
66
|
-
multi: true
|
|
67
|
-
}
|
|
67
|
+
multi: true
|
|
68
|
+
}
|
|
68
69
|
],
|
|
69
70
|
template: `
|
|
70
71
|
<p-rating
|
|
@@ -78,7 +79,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
78
79
|
(onFocus)="onFocus.emit($event)"
|
|
79
80
|
(onBlur)="onBlur.emit($event)"
|
|
80
81
|
></p-rating>
|
|
81
|
-
|
|
82
|
+
`
|
|
82
83
|
}]
|
|
83
84
|
}], propDecorators: { stars: [{
|
|
84
85
|
type: Input
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdek-it-angular-ui-kit-components-rating.mjs","sources":["../../src/lib/components/rating/rating.component.ts","../../src/lib/components/rating/cdek-it-angular-ui-kit-components-rating.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-rating.mjs","sources":["../../src/lib/components/rating/rating.component.ts","../../src/lib/components/rating/cdek-it-angular-ui-kit-components-rating.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, forwardRef, Input, Output } from '@angular/core';\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Rating } from 'primeng/rating';\n\nexport type ExtraRatingValue = number | null;\n\n@Component({\n selector: 'extra-rating',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [Rating, FormsModule],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => ExtraRatingComponent),\n multi: true\n }\n ],\n template: `\n <p-rating\n [ngModel]=\"modelValue\"\n (ngModelChange)=\"handleChange($event)\"\n [stars]=\"stars\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [autofocus]=\"autofocus\"\n (onRate)=\"onRate.emit($event)\"\n (onFocus)=\"onFocus.emit($event)\"\n (onBlur)=\"onBlur.emit($event)\"\n ></p-rating>\n `\n})\nexport class ExtraRatingComponent implements ControlValueAccessor {\n @Input() stars = 5;\n @Input() readonly = false;\n @Input() disabled = false;\n @Input() autofocus = false;\n\n @Output() onRate = new EventEmitter<any>();\n @Output() onFocus = new EventEmitter<FocusEvent>();\n @Output() onBlur = new EventEmitter<FocusEvent>();\n\n modelValue: ExtraRatingValue = null;\n\n private onChange: (value: ExtraRatingValue) => void = () => {};\n private onTouched: () => void = () => {};\n\n handleChange(value: ExtraRatingValue): void {\n this.modelValue = value;\n this.onChange(value);\n this.onTouched();\n }\n\n writeValue(value: ExtraRatingValue): void {\n this.modelValue = value;\n }\n\n registerOnChange(fn: (value: ExtraRatingValue) => 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":";;;;;;MAgCa,oBAAoB,CAAA;IACtB,KAAK,GAAG,CAAC;IACT,QAAQ,GAAG,KAAK;IAChB,QAAQ,GAAG,KAAK;IAChB,SAAS,GAAG,KAAK;AAEhB,IAAA,MAAM,GAAG,IAAI,YAAY,EAAO;AAChC,IAAA,OAAO,GAAG,I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;;AAEG;;;;"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Input, Component } from '@angular/core';
|
|
3
|
+
import { ScrollPanel } from 'primeng/scrollpanel';
|
|
4
|
+
|
|
5
|
+
class ExtraScrollPanelComponent {
|
|
6
|
+
step = 10;
|
|
7
|
+
height = '100px';
|
|
8
|
+
width = '100%';
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraScrollPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: ExtraScrollPanelComponent, isStandalone: true, selector: "extra-scroll-panel", inputs: { step: "step", height: "height", width: "width" }, host: { styleAttribute: "display: block" }, ngImport: i0, template: `
|
|
11
|
+
<p-scrollpanel [step]="step" [style]="{ width: width, height: height }">
|
|
12
|
+
<ng-content></ng-content>
|
|
13
|
+
</p-scrollpanel>
|
|
14
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ScrollPanel, selector: "p-scroll-panel, p-scrollPanel, p-scrollpanel", inputs: ["styleClass", "step"] }] });
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraScrollPanelComponent, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{
|
|
19
|
+
selector: 'extra-scroll-panel',
|
|
20
|
+
host: { style: 'display: block' },
|
|
21
|
+
standalone: true,
|
|
22
|
+
imports: [ScrollPanel],
|
|
23
|
+
template: `
|
|
24
|
+
<p-scrollpanel [step]="step" [style]="{ width: width, height: height }">
|
|
25
|
+
<ng-content></ng-content>
|
|
26
|
+
</p-scrollpanel>
|
|
27
|
+
`
|
|
28
|
+
}]
|
|
29
|
+
}], propDecorators: { step: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}], height: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], width: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}] } });
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Generated bundle index. Do not edit.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
export { ExtraScrollPanelComponent };
|
|
42
|
+
//# sourceMappingURL=cdek-it-angular-ui-kit-components-scroll-panel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdek-it-angular-ui-kit-components-scroll-panel.mjs","sources":["../../src/lib/components/scroll-panel/scroll-panel.component.ts","../../src/lib/components/scroll-panel/cdek-it-angular-ui-kit-components-scroll-panel.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { ScrollPanel } from 'primeng/scrollpanel';\n\n@Component({\n selector: 'extra-scroll-panel',\n host: { style: 'display: block' },\n standalone: true,\n imports: [ScrollPanel],\n template: `\n <p-scrollpanel [step]=\"step\" [style]=\"{ width: width, height: height }\">\n <ng-content></ng-content>\n </p-scrollpanel>\n `\n})\nexport class ExtraScrollPanelComponent {\n @Input() step = 10;\n @Input() height = '100px';\n @Input() width = '100%';\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;MAca,yBAAyB,CAAA;IAC3B,IAAI,GAAG,EAAE;IACT,MAAM,GAAG,OAAO;IAChB,KAAK,GAAG,MAAM;wGAHZ,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,oBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAN1B;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EALS,WAAW,EAAA,QAAA,EAAA,8CAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAOV,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAXrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE;AACjC,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,WAAW,CAAC;AACtB,oBAAA,QAAQ,EAAE;;;;AAIT,EAAA;AACF,iBAAA;;sBAEE;;sBACA;;sBACA;;;ACjBH;;AAEG;;;;"}
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, inject, Injector, EventEmitter, TemplateRef, forwardRef, Output, ContentChild, Input, Component } from '@angular/core';
|
|
3
|
+
import { NgClass, NgTemplateOutlet } from '@angular/common';
|
|
4
|
+
import * as i1 from '@angular/forms';
|
|
5
|
+
import { NgControl, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
6
|
+
import { Select } from 'primeng/select';
|
|
7
|
+
import { FloatLabel } from 'primeng/floatlabel';
|
|
8
|
+
import { PrimeTemplate } from 'primeng/api';
|
|
9
|
+
|
|
10
|
+
// export class ExtraAnimationEvent
|
|
11
|
+
class ExtraSelectOptionDirective {
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraSelectOptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
13
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: ExtraSelectOptionDirective, isStandalone: true, selector: "[extraSelectOption]", ngImport: i0 });
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraSelectOptionDirective, decorators: [{
|
|
16
|
+
type: Directive,
|
|
17
|
+
args: [{ selector: '[extraSelectOption]', standalone: true }]
|
|
18
|
+
}] });
|
|
19
|
+
class ExtraSelectSelectedItemDirective {
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraSelectSelectedItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: ExtraSelectSelectedItemDirective, isStandalone: true, selector: "[extraSelectSelectedItem]", ngImport: i0 });
|
|
22
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraSelectSelectedItemDirective, decorators: [{
|
|
24
|
+
type: Directive,
|
|
25
|
+
args: [{ selector: '[extraSelectSelectedItem]', standalone: true }]
|
|
26
|
+
}] });
|
|
27
|
+
class ExtraSelectOptionGroupDirective {
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraSelectOptionGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: ExtraSelectOptionGroupDirective, isStandalone: true, selector: "[extraSelectOptionGroup]", ngImport: i0 });
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraSelectOptionGroupDirective, decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{ selector: '[extraSelectOptionGroup]', standalone: true }]
|
|
34
|
+
}] });
|
|
35
|
+
class ExtraSelectComponent {
|
|
36
|
+
_injector = inject(Injector);
|
|
37
|
+
_ngControl = null;
|
|
38
|
+
ngOnInit() {
|
|
39
|
+
this._ngControl = this._injector.get(NgControl, null, { self: true, optional: true });
|
|
40
|
+
}
|
|
41
|
+
options;
|
|
42
|
+
optionLabel;
|
|
43
|
+
optionValue;
|
|
44
|
+
optionDisabled;
|
|
45
|
+
optionGroupLabel;
|
|
46
|
+
optionGroupChildren = 'items';
|
|
47
|
+
group = false;
|
|
48
|
+
placeholder = '';
|
|
49
|
+
size = 'base';
|
|
50
|
+
filter = false;
|
|
51
|
+
showClear = false;
|
|
52
|
+
editable = false;
|
|
53
|
+
readonly = false;
|
|
54
|
+
loading = false;
|
|
55
|
+
inputId;
|
|
56
|
+
appendTo = 'body';
|
|
57
|
+
floatLabel = false;
|
|
58
|
+
label = '';
|
|
59
|
+
checkmark = true;
|
|
60
|
+
checkmarkIcon = 'ea5e';
|
|
61
|
+
emptyMessage = 'Нет данных';
|
|
62
|
+
emptyFilterMessage = 'Результаты не найдены';
|
|
63
|
+
optionTemplate = null;
|
|
64
|
+
selectedItemTemplate = null;
|
|
65
|
+
optionGroupTemplate = null;
|
|
66
|
+
disabled = false;
|
|
67
|
+
modelValue = null;
|
|
68
|
+
onClear = new EventEmitter();
|
|
69
|
+
onFilter = new EventEmitter();
|
|
70
|
+
onShow = new EventEmitter();
|
|
71
|
+
onHide = new EventEmitter();
|
|
72
|
+
onFocus = new EventEmitter();
|
|
73
|
+
onBlur = new EventEmitter();
|
|
74
|
+
get invalid() {
|
|
75
|
+
return !!(this._ngControl?.invalid && this._ngControl?.touched);
|
|
76
|
+
}
|
|
77
|
+
get primeSize() {
|
|
78
|
+
if (this.size === 'small')
|
|
79
|
+
return 'small';
|
|
80
|
+
if (this.size === 'large')
|
|
81
|
+
return 'large';
|
|
82
|
+
return undefined;
|
|
83
|
+
}
|
|
84
|
+
get panelStyle() {
|
|
85
|
+
const char = String.fromCodePoint(parseInt(this.checkmarkIcon, 16));
|
|
86
|
+
return { '--p-select-checkmark-content': `"${char}"` };
|
|
87
|
+
}
|
|
88
|
+
get selectClasses() {
|
|
89
|
+
return {
|
|
90
|
+
'p-select-xlg': this.size === 'xlarge',
|
|
91
|
+
'p-invalid': this.invalid
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
_onChange = () => { };
|
|
95
|
+
_onTouched = () => { };
|
|
96
|
+
onSelectChange(event) {
|
|
97
|
+
this.modelValue = event.value;
|
|
98
|
+
this._onChange(event.value);
|
|
99
|
+
}
|
|
100
|
+
handleBlur(event) {
|
|
101
|
+
this._onTouched();
|
|
102
|
+
this.onBlur.emit(event);
|
|
103
|
+
}
|
|
104
|
+
writeValue(value) {
|
|
105
|
+
this.modelValue = value ?? null;
|
|
106
|
+
}
|
|
107
|
+
registerOnChange(fn) {
|
|
108
|
+
this._onChange = fn;
|
|
109
|
+
}
|
|
110
|
+
registerOnTouched(fn) {
|
|
111
|
+
this._onTouched = fn;
|
|
112
|
+
}
|
|
113
|
+
setDisabledState(isDisabled) {
|
|
114
|
+
this.disabled = isDisabled;
|
|
115
|
+
}
|
|
116
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
117
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ExtraSelectComponent, isStandalone: true, selector: "extra-select", inputs: { options: "options", optionLabel: "optionLabel", optionValue: "optionValue", optionDisabled: "optionDisabled", optionGroupLabel: "optionGroupLabel", optionGroupChildren: "optionGroupChildren", group: "group", placeholder: "placeholder", size: "size", filter: "filter", showClear: "showClear", editable: "editable", readonly: "readonly", loading: "loading", inputId: "inputId", appendTo: "appendTo", floatLabel: "floatLabel", label: "label", checkmark: "checkmark", checkmarkIcon: "checkmarkIcon", emptyMessage: "emptyMessage", emptyFilterMessage: "emptyFilterMessage" }, outputs: { onClear: "onClear", onFilter: "onFilter", onShow: "onShow", onHide: "onHide", onFocus: "onFocus", onBlur: "onBlur" }, providers: [
|
|
118
|
+
{
|
|
119
|
+
provide: NG_VALUE_ACCESSOR,
|
|
120
|
+
useExisting: forwardRef(() => ExtraSelectComponent),
|
|
121
|
+
multi: true
|
|
122
|
+
}
|
|
123
|
+
], queries: [{ propertyName: "optionTemplate", first: true, predicate: ExtraSelectOptionDirective, descendants: true, read: TemplateRef }, { propertyName: "selectedItemTemplate", first: true, predicate: ExtraSelectSelectedItemDirective, descendants: true, read: TemplateRef }, { propertyName: "optionGroupTemplate", first: true, predicate: ExtraSelectOptionGroupDirective, descendants: true, read: TemplateRef }], ngImport: i0, template: `
|
|
124
|
+
@if (floatLabel) {
|
|
125
|
+
<p-floatlabel variant="in">
|
|
126
|
+
<ng-container *ngTemplateOutlet="selectTpl"></ng-container>
|
|
127
|
+
<label [attr.for]="inputId">{{ label }}</label>
|
|
128
|
+
</p-floatlabel>
|
|
129
|
+
} @else {
|
|
130
|
+
<ng-container *ngTemplateOutlet="selectTpl"></ng-container>
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
<ng-template #selectTpl>
|
|
134
|
+
<p-select
|
|
135
|
+
[ngClass]="selectClasses"
|
|
136
|
+
[ngModel]="modelValue"
|
|
137
|
+
[disabled]="disabled"
|
|
138
|
+
[options]="options"
|
|
139
|
+
[optionLabel]="optionLabel"
|
|
140
|
+
[optionValue]="optionValue"
|
|
141
|
+
[optionDisabled]="optionDisabled"
|
|
142
|
+
[optionGroupLabel]="optionGroupLabel"
|
|
143
|
+
[optionGroupChildren]="optionGroupChildren"
|
|
144
|
+
[group]="group"
|
|
145
|
+
[placeholder]="placeholder"
|
|
146
|
+
[filter]="filter"
|
|
147
|
+
[showClear]="showClear"
|
|
148
|
+
[editable]="editable"
|
|
149
|
+
[readonly]="readonly"
|
|
150
|
+
[loading]="loading"
|
|
151
|
+
[inputId]="inputId"
|
|
152
|
+
[appendTo]="appendTo"
|
|
153
|
+
[size]="primeSize"
|
|
154
|
+
[checkmark]="checkmark"
|
|
155
|
+
[panelStyle]="panelStyle"
|
|
156
|
+
[emptyMessage]="emptyMessage"
|
|
157
|
+
[emptyFilterMessage]="emptyFilterMessage"
|
|
158
|
+
(onChange)="onSelectChange($event)"
|
|
159
|
+
(onClear)="onClear.emit($event)"
|
|
160
|
+
(onFilter)="onFilter.emit($event)"
|
|
161
|
+
(onShow)="onShow.emit($event)"
|
|
162
|
+
(onHide)="onHide.emit($event)"
|
|
163
|
+
(onFocus)="onFocus.emit($event)"
|
|
164
|
+
(onBlur)="handleBlur($event)"
|
|
165
|
+
>
|
|
166
|
+
@if (optionTemplate) {
|
|
167
|
+
<ng-template pTemplate="item" let-option>
|
|
168
|
+
<ng-container
|
|
169
|
+
[ngTemplateOutlet]="optionTemplate"
|
|
170
|
+
[ngTemplateOutletContext]="{ $implicit: option }"
|
|
171
|
+
></ng-container>
|
|
172
|
+
</ng-template>
|
|
173
|
+
}
|
|
174
|
+
@if (selectedItemTemplate) {
|
|
175
|
+
<ng-template pTemplate="selectedItem" let-option>
|
|
176
|
+
<ng-container
|
|
177
|
+
[ngTemplateOutlet]="selectedItemTemplate"
|
|
178
|
+
[ngTemplateOutletContext]="{ $implicit: option }"
|
|
179
|
+
></ng-container>
|
|
180
|
+
</ng-template>
|
|
181
|
+
}
|
|
182
|
+
@if (optionGroupTemplate) {
|
|
183
|
+
<ng-template pTemplate="group" let-group>
|
|
184
|
+
<ng-container
|
|
185
|
+
[ngTemplateOutlet]="optionGroupTemplate"
|
|
186
|
+
[ngTemplateOutletContext]="{ $implicit: group }"
|
|
187
|
+
></ng-container>
|
|
188
|
+
</ng-template>
|
|
189
|
+
}
|
|
190
|
+
</p-select>
|
|
191
|
+
</ng-template>
|
|
192
|
+
`, isInline: true, dependencies: [{ kind: "component", type: Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { 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"] }, { kind: "component", type: FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }] });
|
|
193
|
+
}
|
|
194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ExtraSelectComponent, decorators: [{
|
|
195
|
+
type: Component,
|
|
196
|
+
args: [{
|
|
197
|
+
selector: 'extra-select',
|
|
198
|
+
standalone: true,
|
|
199
|
+
imports: [Select, NgClass, NgTemplateOutlet, PrimeTemplate, FormsModule, FloatLabel],
|
|
200
|
+
providers: [
|
|
201
|
+
{
|
|
202
|
+
provide: NG_VALUE_ACCESSOR,
|
|
203
|
+
useExisting: forwardRef(() => ExtraSelectComponent),
|
|
204
|
+
multi: true
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
template: `
|
|
208
|
+
@if (floatLabel) {
|
|
209
|
+
<p-floatlabel variant="in">
|
|
210
|
+
<ng-container *ngTemplateOutlet="selectTpl"></ng-container>
|
|
211
|
+
<label [attr.for]="inputId">{{ label }}</label>
|
|
212
|
+
</p-floatlabel>
|
|
213
|
+
} @else {
|
|
214
|
+
<ng-container *ngTemplateOutlet="selectTpl"></ng-container>
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
<ng-template #selectTpl>
|
|
218
|
+
<p-select
|
|
219
|
+
[ngClass]="selectClasses"
|
|
220
|
+
[ngModel]="modelValue"
|
|
221
|
+
[disabled]="disabled"
|
|
222
|
+
[options]="options"
|
|
223
|
+
[optionLabel]="optionLabel"
|
|
224
|
+
[optionValue]="optionValue"
|
|
225
|
+
[optionDisabled]="optionDisabled"
|
|
226
|
+
[optionGroupLabel]="optionGroupLabel"
|
|
227
|
+
[optionGroupChildren]="optionGroupChildren"
|
|
228
|
+
[group]="group"
|
|
229
|
+
[placeholder]="placeholder"
|
|
230
|
+
[filter]="filter"
|
|
231
|
+
[showClear]="showClear"
|
|
232
|
+
[editable]="editable"
|
|
233
|
+
[readonly]="readonly"
|
|
234
|
+
[loading]="loading"
|
|
235
|
+
[inputId]="inputId"
|
|
236
|
+
[appendTo]="appendTo"
|
|
237
|
+
[size]="primeSize"
|
|
238
|
+
[checkmark]="checkmark"
|
|
239
|
+
[panelStyle]="panelStyle"
|
|
240
|
+
[emptyMessage]="emptyMessage"
|
|
241
|
+
[emptyFilterMessage]="emptyFilterMessage"
|
|
242
|
+
(onChange)="onSelectChange($event)"
|
|
243
|
+
(onClear)="onClear.emit($event)"
|
|
244
|
+
(onFilter)="onFilter.emit($event)"
|
|
245
|
+
(onShow)="onShow.emit($event)"
|
|
246
|
+
(onHide)="onHide.emit($event)"
|
|
247
|
+
(onFocus)="onFocus.emit($event)"
|
|
248
|
+
(onBlur)="handleBlur($event)"
|
|
249
|
+
>
|
|
250
|
+
@if (optionTemplate) {
|
|
251
|
+
<ng-template pTemplate="item" let-option>
|
|
252
|
+
<ng-container
|
|
253
|
+
[ngTemplateOutlet]="optionTemplate"
|
|
254
|
+
[ngTemplateOutletContext]="{ $implicit: option }"
|
|
255
|
+
></ng-container>
|
|
256
|
+
</ng-template>
|
|
257
|
+
}
|
|
258
|
+
@if (selectedItemTemplate) {
|
|
259
|
+
<ng-template pTemplate="selectedItem" let-option>
|
|
260
|
+
<ng-container
|
|
261
|
+
[ngTemplateOutlet]="selectedItemTemplate"
|
|
262
|
+
[ngTemplateOutletContext]="{ $implicit: option }"
|
|
263
|
+
></ng-container>
|
|
264
|
+
</ng-template>
|
|
265
|
+
}
|
|
266
|
+
@if (optionGroupTemplate) {
|
|
267
|
+
<ng-template pTemplate="group" let-group>
|
|
268
|
+
<ng-container
|
|
269
|
+
[ngTemplateOutlet]="optionGroupTemplate"
|
|
270
|
+
[ngTemplateOutletContext]="{ $implicit: group }"
|
|
271
|
+
></ng-container>
|
|
272
|
+
</ng-template>
|
|
273
|
+
}
|
|
274
|
+
</p-select>
|
|
275
|
+
</ng-template>
|
|
276
|
+
`
|
|
277
|
+
}]
|
|
278
|
+
}], propDecorators: { options: [{
|
|
279
|
+
type: Input
|
|
280
|
+
}], optionLabel: [{
|
|
281
|
+
type: Input
|
|
282
|
+
}], optionValue: [{
|
|
283
|
+
type: Input
|
|
284
|
+
}], optionDisabled: [{
|
|
285
|
+
type: Input
|
|
286
|
+
}], optionGroupLabel: [{
|
|
287
|
+
type: Input
|
|
288
|
+
}], optionGroupChildren: [{
|
|
289
|
+
type: Input
|
|
290
|
+
}], group: [{
|
|
291
|
+
type: Input
|
|
292
|
+
}], placeholder: [{
|
|
293
|
+
type: Input
|
|
294
|
+
}], size: [{
|
|
295
|
+
type: Input
|
|
296
|
+
}], filter: [{
|
|
297
|
+
type: Input
|
|
298
|
+
}], showClear: [{
|
|
299
|
+
type: Input
|
|
300
|
+
}], editable: [{
|
|
301
|
+
type: Input
|
|
302
|
+
}], readonly: [{
|
|
303
|
+
type: Input
|
|
304
|
+
}], loading: [{
|
|
305
|
+
type: Input
|
|
306
|
+
}], inputId: [{
|
|
307
|
+
type: Input
|
|
308
|
+
}], appendTo: [{
|
|
309
|
+
type: Input
|
|
310
|
+
}], floatLabel: [{
|
|
311
|
+
type: Input
|
|
312
|
+
}], label: [{
|
|
313
|
+
type: Input
|
|
314
|
+
}], checkmark: [{
|
|
315
|
+
type: Input
|
|
316
|
+
}], checkmarkIcon: [{
|
|
317
|
+
type: Input
|
|
318
|
+
}], emptyMessage: [{
|
|
319
|
+
type: Input
|
|
320
|
+
}], emptyFilterMessage: [{
|
|
321
|
+
type: Input
|
|
322
|
+
}], optionTemplate: [{
|
|
323
|
+
type: ContentChild,
|
|
324
|
+
args: [ExtraSelectOptionDirective, { read: TemplateRef }]
|
|
325
|
+
}], selectedItemTemplate: [{
|
|
326
|
+
type: ContentChild,
|
|
327
|
+
args: [ExtraSelectSelectedItemDirective, { read: TemplateRef }]
|
|
328
|
+
}], optionGroupTemplate: [{
|
|
329
|
+
type: ContentChild,
|
|
330
|
+
args: [ExtraSelectOptionGroupDirective, { read: TemplateRef }]
|
|
331
|
+
}], onClear: [{
|
|
332
|
+
type: Output
|
|
333
|
+
}], onFilter: [{
|
|
334
|
+
type: Output
|
|
335
|
+
}], onShow: [{
|
|
336
|
+
type: Output
|
|
337
|
+
}], onHide: [{
|
|
338
|
+
type: Output
|
|
339
|
+
}], onFocus: [{
|
|
340
|
+
type: Output
|
|
341
|
+
}], onBlur: [{
|
|
342
|
+
type: Output
|
|
343
|
+
}] } });
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Generated bundle index. Do not edit.
|
|
347
|
+
*/
|
|
348
|
+
|
|
349
|
+
export { ExtraSelectComponent, ExtraSelectOptionDirective, ExtraSelectOptionGroupDirective, ExtraSelectSelectedItemDirective };
|
|
350
|
+
//# sourceMappingURL=cdek-it-angular-ui-kit-components-select.mjs.map
|