@apexara/ng-components 1.0.0
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/README.md +1867 -0
- package/fesm2022/apexara-ng-components-button.mjs +66 -0
- package/fesm2022/apexara-ng-components-button.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-carousel.mjs +161 -0
- package/fesm2022/apexara-ng-components-carousel.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-checkbox.mjs +64 -0
- package/fesm2022/apexara-ng-components-checkbox.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-chip.mjs +26 -0
- package/fesm2022/apexara-ng-components-chip.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-datepicker.mjs +2175 -0
- package/fesm2022/apexara-ng-components-datepicker.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-dialog.mjs +65 -0
- package/fesm2022/apexara-ng-components-dialog.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-drawer.mjs +69 -0
- package/fesm2022/apexara-ng-components-drawer.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-expander.mjs +41 -0
- package/fesm2022/apexara-ng-components-expander.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-image.mjs +201 -0
- package/fesm2022/apexara-ng-components-image.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-input.mjs +129 -0
- package/fesm2022/apexara-ng-components-input.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-listbox.mjs +308 -0
- package/fesm2022/apexara-ng-components-listbox.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-radiobutton.mjs +40 -0
- package/fesm2022/apexara-ng-components-radiobutton.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-select.mjs +620 -0
- package/fesm2022/apexara-ng-components-select.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-services.mjs +290 -0
- package/fesm2022/apexara-ng-components-services.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-snackbar.mjs +279 -0
- package/fesm2022/apexara-ng-components-snackbar.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-table.mjs +686 -0
- package/fesm2022/apexara-ng-components-table.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-textarea.mjs +82 -0
- package/fesm2022/apexara-ng-components-textarea.mjs.map +1 -0
- package/fesm2022/apexara-ng-components-tooltip.mjs +319 -0
- package/fesm2022/apexara-ng-components-tooltip.mjs.map +1 -0
- package/fesm2022/apexara-ng-components.mjs +8 -0
- package/fesm2022/apexara-ng-components.mjs.map +1 -0
- package/package.json +146 -0
- package/types/apexara-ng-components-button.d.ts +27 -0
- package/types/apexara-ng-components-carousel.d.ts +31 -0
- package/types/apexara-ng-components-checkbox.d.ts +29 -0
- package/types/apexara-ng-components-chip.d.ts +11 -0
- package/types/apexara-ng-components-datepicker.d.ts +172 -0
- package/types/apexara-ng-components-dialog.d.ts +24 -0
- package/types/apexara-ng-components-drawer.d.ts +22 -0
- package/types/apexara-ng-components-expander.d.ts +10 -0
- package/types/apexara-ng-components-image.d.ts +46 -0
- package/types/apexara-ng-components-input.d.ts +51 -0
- package/types/apexara-ng-components-listbox.d.ts +70 -0
- package/types/apexara-ng-components-radiobutton.d.ts +30 -0
- package/types/apexara-ng-components-select.d.ts +111 -0
- package/types/apexara-ng-components-services.d.ts +96 -0
- package/types/apexara-ng-components-snackbar.d.ts +73 -0
- package/types/apexara-ng-components-table.d.ts +157 -0
- package/types/apexara-ng-components-textarea.d.ts +34 -0
- package/types/apexara-ng-components-tooltip.d.ts +54 -0
- package/types/apexara-ng-components.d.ts +3 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apexara-ng-components-tooltip.mjs","sources":["../../../../projects/apexara/ng-components/tooltip/src/tooltip.directive.ts","../../../../projects/apexara/ng-components/tooltip/apexara-ng-components-tooltip.ts"],"sourcesContent":["\n\nimport { Directive, Input, ElementRef, Inject, HostListener } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\n\nimport { OSService, MobileOS, OverlayService } from '@apexara/ng-components/services';\n\nexport enum TooltipPosition {\n Before,\n After,\n Above,\n Below\n}\n\n@Directive({\n standalone: true,\n selector: '[ipiTooltip]'\n})\n\nexport class IpiTooltipDirective {\n\n constructor(\n private osService: OSService,\n private elementRef: ElementRef,\n private overlayService: OverlayService,\n @Inject(DOCUMENT) private document: Document) {\n this.platform = this.osService.mobileOS;\n }\n\n @Input() ipiTooltip = '';\n @Input() tooltipPosition = TooltipPosition.Before;\n\n private platform;\n\n private tooltip!: HTMLElement;\n private triangle!: HTMLElement;\n private tooltipWrapper!: HTMLElement;\n\n private isActivated = false;\n\n private longPressTimeout: ReturnType<typeof setTimeout> | null = null;\n private longPressDelay = 300; // ms before tooltip opens on mobile\n\n private triangleWidth = 8;\n private tooltipWidth!: number;\n private parentElementPos!: DOMRect;\n\n private errorMargin = 2;\n\n public ngOnDestroy(): void {\n if (this.longPressTimeout) {\n clearTimeout(this.longPressTimeout);\n\n this.longPressTimeout = null;\n }\n\n this.onMouseLeave();\n }\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n (this.elementRef.nativeElement as HTMLElement).style.touchAction = 'manipulation';\n this.parentElementPos = this.getParentElementPosition();\n this.openToolTip();\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n (this.elementRef.nativeElement as HTMLElement).style.touchAction = 'auto';\n this.closeToolTip();\n }\n\n @HostListener('window:resize')\n onResize() {\n this.closeToolTip();\n }\n\n @HostListener('touchstart', ['$event'])\n onTouchStart(event: TouchEvent): void {\n this.longPressTimeout = setTimeout(() => {\n if (this.isActivated) {\n return;\n }\n\n if (event && event.cancelable) {\n event.preventDefault();\n }\n\n (this.elementRef.nativeElement as HTMLElement).style.userSelect = 'none';\n this.parentElementPos = this.getParentElementPosition();\n this.openToolTip();\n }, this.longPressDelay);\n }\n\n @HostListener('touchend')\n onTouchEnd(): void {\n if (this.longPressTimeout) {\n clearTimeout(this.longPressTimeout);\n\n this.longPressTimeout = null;\n }\n\n if (this.isActivated) {\n this.closeToolTip();\n }\n }\n\n @HostListener('touchcancel')\n onTouchCancel(): void {\n if (this.longPressTimeout) {\n clearTimeout(this.longPressTimeout);\n\n this.longPressTimeout = null;\n }\n\n this.closeToolTip();\n }\n\n @HostListener('window:scroll')\n onScroll(): void {\n if (this.isActivated) {\n this.parentElementPos = this.getParentElementPosition();\n\n let parentPosTop = this.parentElementPos.top;\n\n const tooltipElement = document.querySelector('.tooltip-wrapper') as HTMLElement;\n\n if (this.platform === MobileOS.iOS) {\n parentPosTop += window.visualViewport!.offsetTop;\n }\n\n tooltipElement.style.top = `${parentPosTop}px`;\n }\n }\n\n private getParentElementPosition(): DOMRect {\n return this.elementRef.nativeElement.getBoundingClientRect();\n }\n\n private openToolTip(): void {\n this.createTooltip();\n this.createTriangle();\n this.createTooltipWrapper();\n\n this.tooltipWrapper.appendChild(this.tooltip);\n this.tooltipWrapper.appendChild(this.triangle);\n\n this.overlayService.appendToOverlay(this.tooltipWrapper);\n\n this.positionTooltip();\n\n this.isActivated = true;\n }\n\n private closeToolTip(): void {\n if (this.tooltipWrapper) {\n this.overlayService.removeFromOverlay(this.tooltipWrapper);\n\n this.isActivated = false;\n }\n }\n\n private createTooltip(): void {\n this.tooltip = this.document.createElement('div');\n this.tooltip.classList.add('tooltip');\n\n this.tooltip.innerHTML = this.ipiTooltip;\n\n this.tooltip.style.gap = '10px';\n this.tooltip.style.color = 'white';\n this.tooltip.style.minWidth = '50px';\n this.tooltip.style.minHeight = '10px';\n this.tooltip.style.fontSize = '12px';\n this.tooltip.style.fontWeight = '400';\n this.tooltip.style.maxWidth = '200px';\n this.tooltip.style.lineHeight = '16px';\n this.tooltip.style.padding = '4px 8px';\n this.tooltip.style.textAlign = 'center';\n this.tooltip.style.borderRadius = '4px';\n this.tooltip.style.whiteSpace = 'pre-wrap';\n this.tooltip.style.wordBreak = 'break-word';\n this.tooltip.style.backgroundColor = '#0B1222';\n }\n\n private createTriangle(): void {\n this.triangle = this.document.createElement('div');\n this.triangle.classList.add('triangle');\n\n this.triangle.style.width = '0';\n this.triangle.style.height = '0';\n this.triangle.style.content = '';\n this.triangle.style.borderRight = '8px solid #0B1222';\n this.triangle.style.borderTop = '5px solid transparent';\n this.triangle.style.borderBottom = '5px solid transparent';\n }\n\n private createTooltipWrapper(): void {\n this.tooltipWrapper = this.document.createElement('div');\n this.tooltipWrapper.classList.add('tooltip-wrapper');\n\n this.tooltipWrapper.style.display = 'flex';\n this.tooltipWrapper.style.position = 'absolute';\n this.tooltipWrapper.style.alignItems = 'center';\n\n const keyframes = [\n { opacity: 0 },\n { opacity: 1 }\n ];\n\n this.tooltipWrapper.animate(keyframes, {\n duration: 400,\n easing: 'ease'\n });\n }\n\n private positionTooltip(): void {\n if (this.overlayService.overlay) {\n this.tooltipWidth = this.overlayService.overlay.querySelector('.tooltip-wrapper')?.firstElementChild?.clientWidth || 0;\n }\n\n switch (this.tooltipPosition) {\n case TooltipPosition.Before:\n this.positionBefore();\n break;\n case TooltipPosition.After:\n this.positionAfter();\n break;\n case TooltipPosition.Above:\n this.positionAbove();\n break;\n case TooltipPosition.Below:\n this.positionBelow();\n break;\n }\n\n this.repositionTooltip();\n }\n\n private positionBefore(): void {\n let parentPosTop = this.parentElementPos.top;\n let parentPosLeft = this.parentElementPos.left;\n\n this.tooltipWrapper.style.flexDirection = 'row';\n this.triangle.style.transform = 'rotate(180deg)';\n this.tooltipWrapper.style.transform = `translateY(${this.parentElementPos.height / 2}px) translateY(-50%)`;\n\n if (this.platform === MobileOS.iOS) {\n parentPosTop += window.visualViewport!.offsetTop;\n parentPosLeft += window.visualViewport!.offsetLeft;\n }\n\n this.tooltipWrapper.style.left = `${parentPosLeft - this.tooltipWidth - this.triangleWidth}px`;\n this.tooltipWrapper.style.top = `${parentPosTop}px`;\n }\n\n private positionAfter(): void {\n let parentPosTop = this.parentElementPos.top;\n let parentPosRight = this.parentElementPos.right;\n\n this.triangle.style.transform = 'rotate(0deg)';\n this.tooltipWrapper.style.flexDirection = 'row-reverse';\n this.tooltipWrapper.style.transform = `translateY(${this.parentElementPos.height / 2}px) translateY(-50%)`;\n\n if (this.platform === MobileOS.iOS) {\n parentPosTop += window.visualViewport!.offsetTop;\n parentPosRight += window.visualViewport!.offsetLeft;\n }\n\n this.tooltipWrapper.style.top = `${parentPosTop}px`;\n this.tooltipWrapper.style.left = `${parentPosRight}px`;\n }\n\n private positionAbove(): void {\n let parentPosTop = this.parentElementPos.top;\n let parentPosLeft = this.parentElementPos.left;\n\n this.tooltipWrapper.style.flexDirection = 'column';\n this.tooltipWrapper.style.transform = 'translateY(-100%)';\n this.tooltipWrapper.style.transform = 'translateY(-100%)';\n\n if (this.platform === MobileOS.iOS) { \n parentPosTop += window.visualViewport!.offsetTop;\n parentPosLeft += window.visualViewport!.offsetLeft;\n }\n\n this.tooltipWrapper.style.top = `${parentPosTop}px`;\n this.tooltipWrapper.style.left = ` ${ (parentPosLeft + this.parentElementPos.width / 2) - this.tooltipWidth / 2 }px`;\n\n\n this.triangle.style.transform = 'rotate(-90deg) translateX(1px)';\n }\n\n private positionBelow(): void {\n let parentPosTop = this.parentElementPos.top;\n let parentPosLeft = this.parentElementPos.left;\n\n this.tooltipWrapper.style.flexDirection = 'column-reverse';\n this.triangle.style.transform = 'rotate(90deg) translateX(1px)';\n this.tooltipWrapper.style.transform = `translateY(${this.parentElementPos.height}px)`;\n\n if (this.platform === MobileOS.iOS) { \n parentPosTop += window.visualViewport!.offsetTop;\n parentPosLeft += window.visualViewport!.offsetLeft;\n }\n\n this.tooltipWrapper.style.top = ` ${parentPosTop}px`;\n this.tooltipWrapper.style.left = ` ${ (parentPosLeft + this.parentElementPos.width / 2) - this.tooltipWidth / 2 }px`; \n }\n\n private repositionTooltip(): void {\n const tooltipPosition = this.tooltipWrapper.getBoundingClientRect();\n\n let tooltipX = tooltipPosition.x;\n\n if (this.platform === MobileOS.iOS) {\n tooltipX += window.visualViewport!.offsetLeft;\n }\n\n switch (this.tooltipPosition) {\n case TooltipPosition.Before:\n if (tooltipPosition.x < 0) {\n this.positionAfter();\n }\n\n if (window.innerWidth - tooltipPosition.right <= tooltipPosition.width) {\n this.positionAbove();\n }\n\n break;\n case TooltipPosition.After:\n \n if (window.innerWidth < tooltipX + tooltipPosition.width) {\n this.positionBefore();\n }\n\n if (tooltipPosition.width > this.parentElementPos.left) {\n this.positionAbove();\n }\n\n break;\n case TooltipPosition.Above:\n if (tooltipX < 0) {\n this.positionAfter();\n\n break;\n }\n\n if (tooltipPosition.left > window.innerWidth / 2 && (tooltipPosition.left + tooltipPosition.width / 2) + this.errorMargin < this.parentElementPos.left + this.parentElementPos.width / 2) {\n this.positionBefore();\n\n break;\n }\n\n if (this.parentElementPos.top < tooltipPosition.height) {\n this.positionBelow();\n }\n\n break;\n case TooltipPosition.Below:\n if (tooltipX < 0) {\n this.positionAfter();\n\n break;\n }\n\n if (tooltipPosition.left > window.innerWidth / 2 && (tooltipPosition.left + tooltipPosition.width / 2) + this.errorMargin < this.parentElementPos.left + this.parentElementPos.width / 2) {\n this.positionBefore();\n\n break;\n }\n\n if (window.innerHeight - this.parentElementPos.bottom < tooltipPosition.height) {\n this.positionAbove();\n }\n\n break;\n }\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IAOY;AAAZ,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,eAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAM;AACN,IAAA,eAAA,CAAA,eAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAK;AACL,IAAA,eAAA,CAAA,eAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAK;AACL,IAAA,eAAA,CAAA,eAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAK;AACP,CAAC,EALW,eAAe,KAAf,eAAe,GAAA,EAAA,CAAA,CAAA;MAYd,mBAAmB,CAAA;AAE9B,IAAA,WAA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ACtH/B;;AAEG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apexara-ng-components.mjs","sources":["../../../../projects/apexara/ng-components/public-api.ts","../../../../projects/apexara/ng-components/apexara-ng-components.ts"],"sourcesContent":["export const NG_COMPONENTS = \"@apexara/ng-components\";\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAO,MAAM,aAAa,GAAG;;ACA7B;;AAEG;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@apexara/ng-components",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@angular/animations": ">=20 <22",
|
|
7
|
+
"@angular/cdk": ">=20 <22",
|
|
8
|
+
"@angular/common": ">=20 <22",
|
|
9
|
+
"@angular/core": ">=20 <22",
|
|
10
|
+
"@angular/forms": ">=20 <22",
|
|
11
|
+
"@angular/material": ">=20 <22",
|
|
12
|
+
"@angular/platform-browser": ">=20 <22",
|
|
13
|
+
"rxjs": "^7.8.0"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"tslib": "^2.8.0"
|
|
17
|
+
},
|
|
18
|
+
"author": "apexara",
|
|
19
|
+
"license": "ISC",
|
|
20
|
+
"description": "Custom Angular Components",
|
|
21
|
+
"keywords": [
|
|
22
|
+
"Angular 20",
|
|
23
|
+
"Angular 21",
|
|
24
|
+
"Angular Components",
|
|
25
|
+
"Angular UI Components",
|
|
26
|
+
"Angular Material Components",
|
|
27
|
+
"Angular Material UI",
|
|
28
|
+
"UI Components",
|
|
29
|
+
"Angular Library",
|
|
30
|
+
"Angular Table",
|
|
31
|
+
"Angular Select",
|
|
32
|
+
"Angular Expander",
|
|
33
|
+
"Angular Dialog",
|
|
34
|
+
"Angular Input",
|
|
35
|
+
"Angular Chip",
|
|
36
|
+
"Angular Checkbox",
|
|
37
|
+
"Angular Textarea",
|
|
38
|
+
"Angular Snackbar",
|
|
39
|
+
"Angular Dialog",
|
|
40
|
+
"Angular Button",
|
|
41
|
+
"Angular Radiobutton",
|
|
42
|
+
"Angular Services",
|
|
43
|
+
"Angular Tooltip",
|
|
44
|
+
"Angular Loader",
|
|
45
|
+
"Angular Image",
|
|
46
|
+
"ng table",
|
|
47
|
+
"ng input",
|
|
48
|
+
"ng checkbox",
|
|
49
|
+
"ng button",
|
|
50
|
+
"ng expander",
|
|
51
|
+
"ng dialog",
|
|
52
|
+
"ng image",
|
|
53
|
+
"ng listbox",
|
|
54
|
+
"ng radiobutton",
|
|
55
|
+
"ng select",
|
|
56
|
+
"ng services",
|
|
57
|
+
"ng loader",
|
|
58
|
+
"ng scrollblock",
|
|
59
|
+
"ng tooltip",
|
|
60
|
+
"ng textarea"
|
|
61
|
+
],
|
|
62
|
+
"module": "fesm2022/apexara-ng-components.mjs",
|
|
63
|
+
"typings": "types/apexara-ng-components.d.ts",
|
|
64
|
+
"sideEffects": false,
|
|
65
|
+
"exports": {
|
|
66
|
+
"./package.json": {
|
|
67
|
+
"default": "./package.json"
|
|
68
|
+
},
|
|
69
|
+
".": {
|
|
70
|
+
"types": "./types/apexara-ng-components.d.ts",
|
|
71
|
+
"default": "./fesm2022/apexara-ng-components.mjs"
|
|
72
|
+
},
|
|
73
|
+
"./button": {
|
|
74
|
+
"types": "./types/apexara-ng-components-button.d.ts",
|
|
75
|
+
"default": "./fesm2022/apexara-ng-components-button.mjs"
|
|
76
|
+
},
|
|
77
|
+
"./carousel": {
|
|
78
|
+
"types": "./types/apexara-ng-components-carousel.d.ts",
|
|
79
|
+
"default": "./fesm2022/apexara-ng-components-carousel.mjs"
|
|
80
|
+
},
|
|
81
|
+
"./checkbox": {
|
|
82
|
+
"types": "./types/apexara-ng-components-checkbox.d.ts",
|
|
83
|
+
"default": "./fesm2022/apexara-ng-components-checkbox.mjs"
|
|
84
|
+
},
|
|
85
|
+
"./chip": {
|
|
86
|
+
"types": "./types/apexara-ng-components-chip.d.ts",
|
|
87
|
+
"default": "./fesm2022/apexara-ng-components-chip.mjs"
|
|
88
|
+
},
|
|
89
|
+
"./datepicker": {
|
|
90
|
+
"types": "./types/apexara-ng-components-datepicker.d.ts",
|
|
91
|
+
"default": "./fesm2022/apexara-ng-components-datepicker.mjs"
|
|
92
|
+
},
|
|
93
|
+
"./dialog": {
|
|
94
|
+
"types": "./types/apexara-ng-components-dialog.d.ts",
|
|
95
|
+
"default": "./fesm2022/apexara-ng-components-dialog.mjs"
|
|
96
|
+
},
|
|
97
|
+
"./drawer": {
|
|
98
|
+
"types": "./types/apexara-ng-components-drawer.d.ts",
|
|
99
|
+
"default": "./fesm2022/apexara-ng-components-drawer.mjs"
|
|
100
|
+
},
|
|
101
|
+
"./expander": {
|
|
102
|
+
"types": "./types/apexara-ng-components-expander.d.ts",
|
|
103
|
+
"default": "./fesm2022/apexara-ng-components-expander.mjs"
|
|
104
|
+
},
|
|
105
|
+
"./image": {
|
|
106
|
+
"types": "./types/apexara-ng-components-image.d.ts",
|
|
107
|
+
"default": "./fesm2022/apexara-ng-components-image.mjs"
|
|
108
|
+
},
|
|
109
|
+
"./input": {
|
|
110
|
+
"types": "./types/apexara-ng-components-input.d.ts",
|
|
111
|
+
"default": "./fesm2022/apexara-ng-components-input.mjs"
|
|
112
|
+
},
|
|
113
|
+
"./listbox": {
|
|
114
|
+
"types": "./types/apexara-ng-components-listbox.d.ts",
|
|
115
|
+
"default": "./fesm2022/apexara-ng-components-listbox.mjs"
|
|
116
|
+
},
|
|
117
|
+
"./radiobutton": {
|
|
118
|
+
"types": "./types/apexara-ng-components-radiobutton.d.ts",
|
|
119
|
+
"default": "./fesm2022/apexara-ng-components-radiobutton.mjs"
|
|
120
|
+
},
|
|
121
|
+
"./select": {
|
|
122
|
+
"types": "./types/apexara-ng-components-select.d.ts",
|
|
123
|
+
"default": "./fesm2022/apexara-ng-components-select.mjs"
|
|
124
|
+
},
|
|
125
|
+
"./services": {
|
|
126
|
+
"types": "./types/apexara-ng-components-services.d.ts",
|
|
127
|
+
"default": "./fesm2022/apexara-ng-components-services.mjs"
|
|
128
|
+
},
|
|
129
|
+
"./snackbar": {
|
|
130
|
+
"types": "./types/apexara-ng-components-snackbar.d.ts",
|
|
131
|
+
"default": "./fesm2022/apexara-ng-components-snackbar.mjs"
|
|
132
|
+
},
|
|
133
|
+
"./table": {
|
|
134
|
+
"types": "./types/apexara-ng-components-table.d.ts",
|
|
135
|
+
"default": "./fesm2022/apexara-ng-components-table.mjs"
|
|
136
|
+
},
|
|
137
|
+
"./textarea": {
|
|
138
|
+
"types": "./types/apexara-ng-components-textarea.d.ts",
|
|
139
|
+
"default": "./fesm2022/apexara-ng-components-textarea.mjs"
|
|
140
|
+
},
|
|
141
|
+
"./tooltip": {
|
|
142
|
+
"types": "./types/apexara-ng-components-tooltip.d.ts",
|
|
143
|
+
"default": "./fesm2022/apexara-ng-components-tooltip.mjs"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
interface IpiButtonOptions {
|
|
5
|
+
iconLeft?: string;
|
|
6
|
+
iconRight?: string;
|
|
7
|
+
throttleTimeMs?: number;
|
|
8
|
+
}
|
|
9
|
+
declare class IpiButtonComponent {
|
|
10
|
+
link: string | null;
|
|
11
|
+
state: any | null;
|
|
12
|
+
options: IpiButtonOptions;
|
|
13
|
+
ariaLabel: string;
|
|
14
|
+
focusChange: EventEmitter<FocusEvent>;
|
|
15
|
+
clickChange: EventEmitter<KeyboardEvent | PointerEvent | MouseEvent>;
|
|
16
|
+
private clickSubject;
|
|
17
|
+
constructor();
|
|
18
|
+
ngAfterViewInit(): void;
|
|
19
|
+
onClick(event: KeyboardEvent | PointerEvent | MouseEvent): void;
|
|
20
|
+
onFocusChange(event: FocusEvent): void;
|
|
21
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IpiButtonComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IpiButtonComponent, "ipi-button", never, { "link": { "alias": "link"; "required": false; }; "state": { "alias": "state"; "required": false; }; "options": { "alias": "options"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "focusChange": "focusChange"; "clickChange": "clickChange"; }, never, ["*"], true, never>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { IpiButtonComponent };
|
|
27
|
+
export type { IpiButtonOptions };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
|
|
5
|
+
declare class IpiCarouselComponent {
|
|
6
|
+
constructor();
|
|
7
|
+
carousel: ElementRef<HTMLDivElement>;
|
|
8
|
+
prevButton: ElementRef;
|
|
9
|
+
nextButton: ElementRef;
|
|
10
|
+
scrollProgress: number;
|
|
11
|
+
scrollAnimationDuration: number;
|
|
12
|
+
scrollSubject: Subject<"next" | "prev">;
|
|
13
|
+
private currentCenteredElemIndex;
|
|
14
|
+
private isProgrammaticScroll;
|
|
15
|
+
private scrollSubscription;
|
|
16
|
+
private platformId;
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
scroll(direction: 'prev' | 'next'): void;
|
|
20
|
+
onResize(): void;
|
|
21
|
+
onNavigationKeydown(event: KeyboardEvent, direction: 'prev' | 'next'): void;
|
|
22
|
+
onScroll(event: Event): void;
|
|
23
|
+
private updateProgressBar;
|
|
24
|
+
private updateCurrentCenterdElemIndex;
|
|
25
|
+
private applyScrollSnapAlign;
|
|
26
|
+
private adjustCarouselSpacing;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IpiCarouselComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IpiCarouselComponent, "ipi-carousel", never, {}, {}, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { IpiCarouselComponent };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { TooltipPosition } from '@apexara/ng-components/tooltip';
|
|
5
|
+
|
|
6
|
+
interface IpiCheckboxOptions {
|
|
7
|
+
formGroup?: FormGroup;
|
|
8
|
+
formControlName?: string;
|
|
9
|
+
}
|
|
10
|
+
declare class IpiCheckboxComponent {
|
|
11
|
+
private changeDetectorRef;
|
|
12
|
+
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
13
|
+
checked: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
tooltip: string | null;
|
|
16
|
+
options: IpiCheckboxOptions | null;
|
|
17
|
+
clickChange: EventEmitter<boolean>;
|
|
18
|
+
tooltipPosition: typeof TooltipPosition;
|
|
19
|
+
private controlSubscription;
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
onChange(): void;
|
|
23
|
+
private checkIfControlDisabled;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IpiCheckboxComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IpiCheckboxComponent, "ipi-checkbox", never, { "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "clickChange": "clickChange"; }, never, ["*"], true, never>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { IpiCheckboxComponent };
|
|
29
|
+
export type { IpiCheckboxOptions };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class IpiChipComponent {
|
|
5
|
+
closeIcon: boolean;
|
|
6
|
+
closeChange: EventEmitter<void>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IpiChipComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IpiChipComponent, "ipi-chip", never, { "closeIcon": { "alias": "closeIcon"; "required": false; }; }, { "closeChange": "closeChange"; }, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { IpiChipComponent };
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { NgZone, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
import { ValidatorFn, FormGroup } from '@angular/forms';
|
|
4
|
+
import { ControlErrors } from '@apexara/ng-components/select';
|
|
5
|
+
import { OSService, OverlayService } from '@apexara/ng-components/services';
|
|
6
|
+
|
|
7
|
+
declare class IpiDatepickerService {
|
|
8
|
+
DAYS_PER_WEEK: number;
|
|
9
|
+
yearsPerRow: number;
|
|
10
|
+
yearsPerPage: number;
|
|
11
|
+
private dateLocale;
|
|
12
|
+
formatter: Intl.DateTimeFormat;
|
|
13
|
+
dateFormats: {
|
|
14
|
+
display: {
|
|
15
|
+
dateInput: {
|
|
16
|
+
year: string;
|
|
17
|
+
month: string;
|
|
18
|
+
day: string;
|
|
19
|
+
};
|
|
20
|
+
monthLabel: {
|
|
21
|
+
month: string;
|
|
22
|
+
};
|
|
23
|
+
monthYearLabel: {
|
|
24
|
+
year: string;
|
|
25
|
+
month: string;
|
|
26
|
+
};
|
|
27
|
+
dateA11yLabel: {
|
|
28
|
+
year: string;
|
|
29
|
+
month: string;
|
|
30
|
+
day: string;
|
|
31
|
+
};
|
|
32
|
+
monthYearA11yLabel: {
|
|
33
|
+
year: string;
|
|
34
|
+
month: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
today(): Date;
|
|
39
|
+
getDate(date: Date): number;
|
|
40
|
+
getMonth(date: Date): number;
|
|
41
|
+
getYear(date: Date): number;
|
|
42
|
+
getDayOfWeek(date: Date): number;
|
|
43
|
+
getDateLocale(): string;
|
|
44
|
+
setDateLocale(value: string): void;
|
|
45
|
+
getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
46
|
+
getFirstDayOfWeek(): number;
|
|
47
|
+
getValidDateOrNull(obj: unknown): Date | null;
|
|
48
|
+
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
49
|
+
getDateNames(): string[];
|
|
50
|
+
getYearName(date: Date): string;
|
|
51
|
+
getNumDaysInMonth(date: Date): number;
|
|
52
|
+
createDate(year: number, month: number, date: number): Date;
|
|
53
|
+
addCalendarDays(date: Date, days: number): Date;
|
|
54
|
+
addCalendarMonths(date: Date, months: number): Date;
|
|
55
|
+
addCalendarYears(date: Date, years: number): Date;
|
|
56
|
+
setTime(date: Date, hours: number, minutes: number): Date;
|
|
57
|
+
sameDate(first: Date | null, second: Date | null): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Compares two dates.
|
|
60
|
+
* @param first The first date to compare.
|
|
61
|
+
* @param second The second date to compare.
|
|
62
|
+
* @returns 0 if the dates are equal, a number less than 0 if the first date is earlier,
|
|
63
|
+
* a number greater than 0 if the first date is later.
|
|
64
|
+
*/
|
|
65
|
+
compareDate(first: Date, second: Date): number;
|
|
66
|
+
deserialize(value: any): Date | null;
|
|
67
|
+
clampDate(date: Date, min?: Date | null, max?: Date | null): Date;
|
|
68
|
+
formatDate(date: Date, displayFormat: Object): string;
|
|
69
|
+
minValidator(minDate: Date): ValidatorFn;
|
|
70
|
+
maxValidator(maxDate: Date): ValidatorFn;
|
|
71
|
+
/** Creates a date but allows the month and date to overflow. */
|
|
72
|
+
private createDateWithOverflow;
|
|
73
|
+
private format;
|
|
74
|
+
private isDateInstance;
|
|
75
|
+
private isValid;
|
|
76
|
+
private invalid;
|
|
77
|
+
getActiveOffset<D>(activeDate: Date, minDate: Date | null, maxDate: Date | null): number;
|
|
78
|
+
private getStartingYear;
|
|
79
|
+
positiveModulo(a: number, b: number): number;
|
|
80
|
+
isSameMultiYearView<D>(date1: Date, date2: Date, minDate: Date | null, maxDate: Date | null): boolean;
|
|
81
|
+
private range;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IpiDatepickerService, never>;
|
|
83
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IpiDatepickerService>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare class DefaultCalendarRangeStrategy {
|
|
87
|
+
private datepickerService;
|
|
88
|
+
constructor(datepickerService: IpiDatepickerService);
|
|
89
|
+
selectionFinished(date: Date, currentRange: DateRange): DateRange;
|
|
90
|
+
createPreview(activeDate: Date | null, currentRange: DateRange): DateRange;
|
|
91
|
+
createDrag(dragOrigin: Date, originalRange: DateRange, newDate: Date): DateRange | null;
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultCalendarRangeStrategy, never>;
|
|
93
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DefaultCalendarRangeStrategy>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface DateSelectionEvent<D> {
|
|
97
|
+
value: D;
|
|
98
|
+
event: Event;
|
|
99
|
+
}
|
|
100
|
+
/** A class representing a range of dates. */
|
|
101
|
+
declare class DateRange {
|
|
102
|
+
readonly start: Date | null;
|
|
103
|
+
readonly end: Date | null;
|
|
104
|
+
constructor(start: Date | null, end: Date | null);
|
|
105
|
+
}
|
|
106
|
+
declare class DateRangeFormControls {
|
|
107
|
+
readonly start: string;
|
|
108
|
+
readonly end: string;
|
|
109
|
+
constructor(start: string, end: string);
|
|
110
|
+
}
|
|
111
|
+
interface IpiDatepickerOptions {
|
|
112
|
+
label: string;
|
|
113
|
+
formGroup: FormGroup;
|
|
114
|
+
formControlName: string | DateRangeFormControls;
|
|
115
|
+
min?: Date;
|
|
116
|
+
max?: Date;
|
|
117
|
+
errors?: ControlErrors;
|
|
118
|
+
}
|
|
119
|
+
declare class IpiDatepickerComponent {
|
|
120
|
+
private ngZone;
|
|
121
|
+
private osService;
|
|
122
|
+
private elementRef;
|
|
123
|
+
private overlayService;
|
|
124
|
+
private changeDetectorRef;
|
|
125
|
+
private datepickerService;
|
|
126
|
+
private rangeSelectionStrategy;
|
|
127
|
+
constructor(ngZone: NgZone, osService: OSService, elementRef: ElementRef, overlayService: OverlayService, changeDetectorRef: ChangeDetectorRef, datepickerService: IpiDatepickerService, rangeSelectionStrategy: DefaultCalendarRangeStrategy);
|
|
128
|
+
datepicker: ElementRef<HTMLElement> | null;
|
|
129
|
+
calendar: ElementRef<HTMLElement> | null;
|
|
130
|
+
options: IpiDatepickerOptions;
|
|
131
|
+
get activeDate(): Date | null;
|
|
132
|
+
set activeDate(value: Date);
|
|
133
|
+
get minDate(): Date | null;
|
|
134
|
+
set minDate(value: Date | null);
|
|
135
|
+
get maxDate(): Date | null;
|
|
136
|
+
set maxDate(value: Date | null);
|
|
137
|
+
get selectedDate(): DateRange | Date | null;
|
|
138
|
+
set selectedDate(value: DateRange | Date | null);
|
|
139
|
+
shouldShowCalendar: boolean;
|
|
140
|
+
closeButtonFocused: boolean;
|
|
141
|
+
formErrorMessage: string | null;
|
|
142
|
+
private errors;
|
|
143
|
+
private _activeDate;
|
|
144
|
+
private _selected;
|
|
145
|
+
private _minDate;
|
|
146
|
+
private _maxDate;
|
|
147
|
+
private formControlSubscriptions;
|
|
148
|
+
ngOnInit(): void;
|
|
149
|
+
ngAfterViewInit(): void;
|
|
150
|
+
ngOnDestroy(): void;
|
|
151
|
+
activateControl(): void;
|
|
152
|
+
onClick(event: PointerEvent): void;
|
|
153
|
+
getDisplayValue(): string;
|
|
154
|
+
getformErrorMessage(): string | null;
|
|
155
|
+
onCloseClick(): void;
|
|
156
|
+
onCloseKeyDown(event: KeyboardEvent): void;
|
|
157
|
+
handleDragAndDropEnd(event: any): void;
|
|
158
|
+
handleUserSelection(event: DateSelectionEvent<Date | null>): void;
|
|
159
|
+
private closeCalendar;
|
|
160
|
+
private generateCalendarPosition;
|
|
161
|
+
private setFormSubscriptions;
|
|
162
|
+
private checkPosition;
|
|
163
|
+
private initDefaultErrors;
|
|
164
|
+
private getErrorIfControlInvalid;
|
|
165
|
+
private setMinValidator;
|
|
166
|
+
private setMaxValidator;
|
|
167
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IpiDatepickerComponent, never>;
|
|
168
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IpiDatepickerComponent, "ipi-datepicker", never, { "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export { DateRange, DateRangeFormControls, IpiDatepickerComponent, IpiDatepickerService };
|
|
172
|
+
export type { DateSelectionEvent, IpiDatepickerOptions };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy, ElementRef, TemplateRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import { OverlayService } from '@apexara/ng-components/services';
|
|
4
|
+
|
|
5
|
+
declare class IpiDialogComponent implements OnDestroy {
|
|
6
|
+
private elementRef;
|
|
7
|
+
private overlayService;
|
|
8
|
+
constructor(elementRef: ElementRef, overlayService: OverlayService);
|
|
9
|
+
title?: TemplateRef<any>;
|
|
10
|
+
description?: TemplateRef<any>;
|
|
11
|
+
content?: TemplateRef<any>;
|
|
12
|
+
actions?: TemplateRef<any>;
|
|
13
|
+
closeIconTemplate?: ElementRef;
|
|
14
|
+
closeIcon: boolean;
|
|
15
|
+
closeIconClick: EventEmitter<void>;
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
onCloseIconClick(): void;
|
|
19
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IpiDialogComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IpiDialogComponent, "ipi-dialog", never, { "closeIcon": { "alias": "closeIcon"; "required": false; }; }, { "closeIconClick": "closeIconClick"; }, ["title", "description", "content", "actions"], never, true, never>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { IpiDialogComponent };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { AfterViewInit, OnDestroy, ChangeDetectorRef, EventEmitter, TemplateRef } from '@angular/core';
|
|
3
|
+
import { ScrollBlockService } from '@apexara/ng-components/services';
|
|
4
|
+
|
|
5
|
+
declare class IpiDrawerComponent implements AfterViewInit, OnDestroy {
|
|
6
|
+
private scrollBlockService;
|
|
7
|
+
private changeDetector;
|
|
8
|
+
constructor(scrollBlockService: ScrollBlockService, changeDetector: ChangeDetectorRef);
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
closeChange: EventEmitter<void>;
|
|
11
|
+
title?: TemplateRef<any>;
|
|
12
|
+
description?: TemplateRef<any>;
|
|
13
|
+
content?: TemplateRef<any>;
|
|
14
|
+
actions?: TemplateRef<any>;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
close(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IpiDrawerComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IpiDrawerComponent, "ipi-drawer", never, {}, { "closeChange": "closeChange"; }, ["title", "description", "content", "actions"], never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { IpiDrawerComponent };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class IpiExpanderComponent {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
maxHeight: number | null;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IpiExpanderComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IpiExpanderComponent, "ipi-expander", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; }, {}, never, ["[title]", "[content]"], true, never>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { IpiExpanderComponent };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ElementRef, Renderer2, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
|
|
6
|
+
declare class IpiImgService {
|
|
7
|
+
private http;
|
|
8
|
+
private document;
|
|
9
|
+
constructor(http: HttpClient, document: Document);
|
|
10
|
+
private svgs;
|
|
11
|
+
private svgsLoading;
|
|
12
|
+
defaultSvg: string;
|
|
13
|
+
loadImg(url: string): Observable<SVGElement> | string;
|
|
14
|
+
private getSvg;
|
|
15
|
+
private createSVG;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IpiImgService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IpiImgService>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare class IpiImageComponent {
|
|
21
|
+
private element;
|
|
22
|
+
private renderer;
|
|
23
|
+
private imgService;
|
|
24
|
+
private document;
|
|
25
|
+
private changeDetectorRef;
|
|
26
|
+
constructor(element: ElementRef, renderer: Renderer2, imgService: IpiImgService, document: Document, changeDetectorRef: ChangeDetectorRef);
|
|
27
|
+
src: string;
|
|
28
|
+
ariaLabel: string;
|
|
29
|
+
private helper;
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
ngOnChanges(changeRecord: SimpleChanges): void;
|
|
33
|
+
private init;
|
|
34
|
+
private destroy;
|
|
35
|
+
private initImage;
|
|
36
|
+
private initSvg;
|
|
37
|
+
private setAriaLabel;
|
|
38
|
+
private setStyling;
|
|
39
|
+
private onImgError;
|
|
40
|
+
private copyNgContentAttribute;
|
|
41
|
+
private setNgContentAttribute;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IpiImageComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IpiImageComponent, "ipi-img", never, { "src": { "alias": "src"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { IpiImageComponent, IpiImgService };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { TooltipPosition } from '@apexara/ng-components/tooltip';
|
|
5
|
+
|
|
6
|
+
interface IpiInputOptions {
|
|
7
|
+
label: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
helperText?: string;
|
|
13
|
+
helperRoute?: string;
|
|
14
|
+
prefixImg?: string;
|
|
15
|
+
suffixImg?: string;
|
|
16
|
+
formGroup?: FormGroup;
|
|
17
|
+
formControlName?: string;
|
|
18
|
+
errors?: IpiControlErrors;
|
|
19
|
+
}
|
|
20
|
+
interface IpiControlErrors {
|
|
21
|
+
[x: string]: string;
|
|
22
|
+
}
|
|
23
|
+
declare class IpiInputComponent {
|
|
24
|
+
private changeDetectorRef;
|
|
25
|
+
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
26
|
+
options: IpiInputOptions;
|
|
27
|
+
inputChange: EventEmitter<string>;
|
|
28
|
+
suffixImgChange: EventEmitter<void>;
|
|
29
|
+
helperTextChange: EventEmitter<void>;
|
|
30
|
+
label: string;
|
|
31
|
+
controlInvalid: boolean;
|
|
32
|
+
tooltipPosition: typeof TooltipPosition;
|
|
33
|
+
private controlSubscription;
|
|
34
|
+
private control;
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
onInput(event: Event): void;
|
|
38
|
+
onSuffixImage(): void;
|
|
39
|
+
onHelperText(): void;
|
|
40
|
+
onFocusOut(): void;
|
|
41
|
+
private setControl;
|
|
42
|
+
private initChange;
|
|
43
|
+
private checkIfControlInvalid;
|
|
44
|
+
private checkIfControlDisabled;
|
|
45
|
+
private getLabel;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IpiInputComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IpiInputComponent, "ipi-input", never, { "options": { "alias": "options"; "required": false; }; }, { "inputChange": "inputChange"; "suffixImgChange": "suffixImgChange"; "helperTextChange": "helperTextChange"; }, never, never, true, never>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { IpiInputComponent };
|
|
51
|
+
export type { IpiControlErrors, IpiInputOptions };
|