@gettrx/core-components-angular 1.0.1 → 1.0.2
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/esm2022/lib/atoms/badge/badge.component.mjs +3 -3
- package/esm2022/lib/atoms/badge/badge.module.mjs +5 -5
- package/esm2022/lib/atoms/button/button.component.mjs +60 -0
- package/esm2022/lib/atoms/button/button.module.mjs +9 -7
- package/esm2022/lib/atoms/button/index.mjs +3 -2
- package/esm2022/lib/atoms/button/utils/utils.mjs +2 -0
- package/esm2022/lib/atoms/{button → button-directive}/button-close.directive.mjs +1 -1
- package/esm2022/lib/atoms/button-directive/button-directive.module.mjs +17 -0
- package/esm2022/lib/atoms/button-directive/button.directive.mjs +102 -0
- package/esm2022/lib/atoms/button-directive/index.mjs +2 -0
- package/esm2022/lib/atoms/button-directive/public_api.mjs +4 -0
- package/esm2022/lib/atoms/icon/icon.component.mjs +14 -8
- package/esm2022/lib/atoms/icon/icon.module.mjs +6 -6
- package/esm2022/lib/atoms/icon/public_api.mjs +2 -2
- package/esm2022/lib/atoms/input/index.mjs +2 -0
- package/esm2022/lib/atoms/input/input.component.mjs +375 -0
- package/esm2022/lib/atoms/input/input.module.mjs +21 -0
- package/esm2022/lib/atoms/input/public_api.mjs +3 -0
- package/esm2022/lib/atoms/input/utils/input-utils.mjs +26 -0
- package/esm2022/lib/atoms/popover/popover.component.mjs +3 -3
- package/esm2022/lib/atoms/radio-button/radio-button.component.mjs +3 -5
- package/esm2022/lib/atoms/switch/index.mjs +2 -0
- package/esm2022/lib/atoms/switch/public_api.mjs +3 -0
- package/esm2022/lib/atoms/switch/switch.component.mjs +106 -0
- package/esm2022/lib/atoms/switch/switch.module.mjs +18 -0
- package/esm2022/lib/atoms/textarea/index.mjs +2 -0
- package/esm2022/lib/atoms/textarea/public_api.mjs +3 -0
- package/esm2022/lib/atoms/textarea/textarea.component.mjs +242 -0
- package/esm2022/lib/atoms/textarea/textarea.module.mjs +21 -0
- package/esm2022/lib/atoms/textarea/utils/textarea.types.mjs +9 -0
- package/esm2022/lib/atoms/tooltip/index.mjs +2 -0
- package/esm2022/lib/atoms/tooltip/public_api.mjs +3 -0
- package/esm2022/lib/atoms/tooltip/tooltip.component.mjs +111 -0
- package/esm2022/lib/atoms/tooltip/tooltip.module.mjs +18 -0
- package/esm2022/lib/atoms/tooltip/utils/utils.mjs +2 -0
- package/esm2022/lib/core-components.types.mjs +10 -0
- package/esm2022/lib/molecules/accordion/accordion.module.mjs +5 -5
- package/esm2022/lib/molecules/calendar/calendar-navigation/calendar-navigation.component.mjs +5 -5
- package/esm2022/lib/molecules/checkbox/checkbox.module.mjs +5 -5
- package/esm2022/lib/molecules/date-picker/date-picker.component.mjs +1 -1
- package/esm2022/lib/molecules/date-picker/date-picker.module.mjs +6 -6
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.mjs +4 -4
- package/esm2022/lib/molecules/date-range-picker/date-range-picker.module.mjs +8 -6
- package/esm2022/lib/molecules/file-input/file-input/file-input.component.mjs +2 -2
- package/esm2022/lib/molecules/file-input/file-input.module.mjs +5 -5
- package/esm2022/lib/molecules/form/form-control/form-control.directive.mjs +1 -1
- package/esm2022/lib/molecules/modal/index.mjs +2 -0
- package/esm2022/lib/molecules/modal/modal.component.mjs +148 -0
- package/esm2022/lib/molecules/modal/modal.module.mjs +18 -0
- package/esm2022/lib/molecules/modal/public_api.mjs +3 -0
- package/esm2022/lib/molecules/pagination/pagination.module.mjs +5 -5
- package/esm2022/lib/molecules/select/select/select.component.mjs +4 -4
- package/esm2022/lib/molecules/select/select.module.mjs +5 -5
- package/esm2022/lib/molecules/stat-card/stat-card.module.mjs +6 -5
- package/esm2022/lib/molecules/time-picker/time-picker.module.mjs +2 -2
- package/esm2022/public-api.mjs +8 -8
- package/fesm2022/gettrx-core-components-angular.mjs +162 -326
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/lib/atoms/badge/badge.component.d.ts +1 -1
- package/lib/atoms/badge/badge.module.d.ts +1 -1
- package/lib/atoms/{custom-button/custom-button.component.d.ts → button/button.component.d.ts} +3 -3
- package/lib/atoms/button/button.module.d.ts +4 -3
- package/lib/atoms/button/index.d.ts +2 -1
- package/lib/atoms/button-directive/button-directive.module.d.ts +8 -0
- package/lib/atoms/{button → button-directive}/button.directive.d.ts +1 -1
- package/lib/atoms/{button → button-directive}/public_api.d.ts +1 -1
- package/lib/atoms/icon/icon.component.d.ts +2 -1
- package/lib/atoms/icon/icon.module.d.ts +4 -4
- package/lib/atoms/icon/public_api.d.ts +1 -1
- package/lib/atoms/{custom-input/custom-input.component.d.ts → input/input.component.d.ts} +4 -5
- package/lib/atoms/input/input.module.d.ts +10 -0
- package/lib/atoms/input/public_api.d.ts +2 -0
- package/lib/atoms/popover/popover.component.d.ts +1 -1
- package/lib/atoms/radio-button/radio-button.component.d.ts +1 -5
- package/lib/atoms/switch/public_api.d.ts +2 -0
- package/lib/atoms/{custom-gtr-switch/custom-gtr-switch.component.d.ts → switch/switch.component.d.ts} +4 -5
- package/lib/atoms/switch/switch.module.d.ts +8 -0
- package/lib/atoms/textarea/public_api.d.ts +2 -0
- package/lib/atoms/{custom-textarea/custom-textarea.component.d.ts → textarea/textarea.component.d.ts} +4 -4
- package/lib/atoms/textarea/textarea.module.d.ts +10 -0
- package/lib/atoms/tooltip/public_api.d.ts +2 -0
- package/lib/atoms/tooltip/tooltip.component.d.ts +49 -0
- package/lib/atoms/tooltip/tooltip.module.d.ts +8 -0
- package/lib/molecules/accordion/accordion.module.d.ts +1 -1
- package/lib/molecules/checkbox/checkbox.module.d.ts +1 -1
- package/lib/molecules/date-picker/date-picker.module.d.ts +2 -2
- package/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.d.ts +1 -1
- package/lib/molecules/date-range-picker/date-range-picker.module.d.ts +2 -2
- package/lib/molecules/file-input/file-input.module.d.ts +2 -2
- package/lib/molecules/form/form-control/form-control.directive.d.ts +1 -1
- package/lib/molecules/{custom-gtr-modal/custom-gtr-modal.component.d.ts → modal/modal.component.d.ts} +3 -3
- package/lib/molecules/modal/modal.module.d.ts +8 -0
- package/lib/molecules/modal/public_api.d.ts +2 -0
- package/lib/molecules/pagination/pagination.module.d.ts +1 -1
- package/lib/molecules/select/select.module.d.ts +1 -1
- package/lib/molecules/stat-card/stat-card.module.d.ts +1 -1
- package/lib/molecules/time-picker/time-picker.module.d.ts +1 -1
- package/package.json +3 -2
- package/public-api.d.ts +7 -7
- package/esm2022/lib/atoms/button/button.directive.mjs +0 -102
- package/esm2022/lib/atoms/button/public_api.mjs +0 -4
- package/esm2022/lib/atoms/custom-button/custom-button.component.mjs +0 -60
- package/esm2022/lib/atoms/custom-button/custom-button.module.mjs +0 -19
- package/esm2022/lib/atoms/custom-button/index.mjs +0 -3
- package/esm2022/lib/atoms/custom-button/utils/utils.mjs +0 -2
- package/esm2022/lib/atoms/custom-gtr-switch/custom-gtr-switch.component.mjs +0 -109
- package/esm2022/lib/atoms/custom-gtr-switch/custom-gtr-switch.module.mjs +0 -18
- package/esm2022/lib/atoms/custom-gtr-switch/index.mjs +0 -2
- package/esm2022/lib/atoms/custom-gtr-switch/public_api.mjs +0 -3
- package/esm2022/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.component.mjs +0 -143
- package/esm2022/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.module.mjs +0 -18
- package/esm2022/lib/atoms/custom-gtr-tooltip/index.mjs +0 -2
- package/esm2022/lib/atoms/custom-gtr-tooltip/public_api.mjs +0 -3
- package/esm2022/lib/atoms/custom-gtr-tooltip/utils/utils.mjs +0 -2
- package/esm2022/lib/atoms/custom-input/custom-input.component.mjs +0 -364
- package/esm2022/lib/atoms/custom-input/custom-input.module.mjs +0 -21
- package/esm2022/lib/atoms/custom-input/index.mjs +0 -2
- package/esm2022/lib/atoms/custom-input/public_api.mjs +0 -3
- package/esm2022/lib/atoms/custom-input/utils/input-utils.mjs +0 -26
- package/esm2022/lib/atoms/custom-textarea/custom-textarea.component.mjs +0 -242
- package/esm2022/lib/atoms/custom-textarea/custom-textarea.module.mjs +0 -21
- package/esm2022/lib/atoms/custom-textarea/index.mjs +0 -2
- package/esm2022/lib/atoms/custom-textarea/public_api.mjs +0 -3
- package/esm2022/lib/atoms/custom-textarea/utils/gtr-textarea.types.mjs +0 -9
- package/esm2022/lib/atoms/gtr.types.mjs +0 -10
- package/esm2022/lib/molecules/button/button-close.directive.mjs +0 -39
- package/esm2022/lib/molecules/button/button.directive.mjs +0 -100
- package/esm2022/lib/molecules/button/button.module.mjs +0 -17
- package/esm2022/lib/molecules/button/index.mjs +0 -2
- package/esm2022/lib/molecules/button/public_api.mjs +0 -4
- package/esm2022/lib/molecules/core-components.types.mjs +0 -10
- package/esm2022/lib/molecules/custom-gtr-modal/custom-gtr-modal.component.mjs +0 -148
- package/esm2022/lib/molecules/custom-gtr-modal/custom-gtr-modal.module.mjs +0 -18
- package/esm2022/lib/molecules/custom-gtr-modal/index.mjs +0 -2
- package/esm2022/lib/molecules/custom-gtr-modal/public_api.mjs +0 -3
- package/lib/atoms/custom-button/custom-button.module.d.ts +0 -9
- package/lib/atoms/custom-button/index.d.ts +0 -2
- package/lib/atoms/custom-gtr-switch/custom-gtr-switch.module.d.ts +0 -8
- package/lib/atoms/custom-gtr-switch/public_api.d.ts +0 -2
- package/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.component.d.ts +0 -59
- package/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.module.d.ts +0 -8
- package/lib/atoms/custom-gtr-tooltip/public_api.d.ts +0 -2
- package/lib/atoms/custom-input/custom-input.module.d.ts +0 -10
- package/lib/atoms/custom-input/public_api.d.ts +0 -2
- package/lib/atoms/custom-textarea/custom-textarea.module.d.ts +0 -10
- package/lib/atoms/custom-textarea/public_api.d.ts +0 -2
- package/lib/atoms/gtr.types.d.ts +0 -46
- package/lib/molecules/button/button-close.directive.d.ts +0 -13
- package/lib/molecules/button/button.directive.d.ts +0 -48
- package/lib/molecules/button/button.module.d.ts +0 -8
- package/lib/molecules/button/public_api.d.ts +0 -3
- package/lib/molecules/custom-gtr-modal/custom-gtr-modal.module.d.ts +0 -8
- package/lib/molecules/custom-gtr-modal/public_api.d.ts +0 -2
- /package/lib/atoms/{custom-button → button}/utils/utils.d.ts +0 -0
- /package/lib/atoms/{button → button-directive}/button-close.directive.d.ts +0 -0
- /package/lib/atoms/{custom-gtr-switch → button-directive}/index.d.ts +0 -0
- /package/lib/atoms/{custom-gtr-tooltip → input}/index.d.ts +0 -0
- /package/lib/atoms/{custom-input → input}/utils/input-utils.d.ts +0 -0
- /package/lib/atoms/{custom-input → switch}/index.d.ts +0 -0
- /package/lib/atoms/{custom-textarea → textarea}/index.d.ts +0 -0
- /package/lib/atoms/{custom-textarea/utils/gtr-textarea.types.d.ts → textarea/utils/textarea.types.d.ts} +0 -0
- /package/lib/{molecules/button → atoms/tooltip}/index.d.ts +0 -0
- /package/lib/atoms/{custom-gtr-tooltip → tooltip}/utils/utils.d.ts +0 -0
- /package/lib/{molecules/core-components.types.d.ts → core-components.types.d.ts} +0 -0
- /package/lib/molecules/{custom-gtr-modal → modal}/index.d.ts +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export var BreakpointInfix;
|
|
2
|
-
(function (BreakpointInfix) {
|
|
3
|
-
BreakpointInfix["xs"] = "xs";
|
|
4
|
-
BreakpointInfix["sm"] = "sm";
|
|
5
|
-
BreakpointInfix["md"] = "md";
|
|
6
|
-
BreakpointInfix["lg"] = "lg";
|
|
7
|
-
BreakpointInfix["xl"] = "xl";
|
|
8
|
-
BreakpointInfix["xxl"] = "xxl";
|
|
9
|
-
})(BreakpointInfix || (BreakpointInfix = {}));
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS1jb21wb25lbnRzLnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc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ICd0ZXh0J1xuICB8ICd0aW1lJ1xuICB8ICd1cmwnXG4gIHwgJ3dlZWsnXG4gIHwgJ2NoZWNrYm94J1xuICB8ICdyYWRpbyc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgSU5hdkxpbmtQcm9wcyB7XG4gIHF1ZXJ5UGFyYW1zPzogeyBbazogc3RyaW5nXTogYW55IH07XG4gIGZyYWdtZW50Pzogc3RyaW5nO1xuICBxdWVyeVBhcmFtc0hhbmRsaW5nPzogJ21lcmdlJyB8ICdwcmVzZXJ2ZScgfCAnJyB8IG51bGw7XG4gIHByZXNlcnZlRnJhZ21lbnQ/OiBib29sZWFuO1xuICBza2lwTG9jYXRpb25DaGFuZ2U/OiBib29sZWFuO1xuICByZXBsYWNlVXJsPzogYm9vbGVhbjtcbiAgc3RhdGU/OiB7IFtrOiBzdHJpbmddOiBhbnkgfTtcbiAgcm91dGVyTGlua0FjdGl2ZU9wdGlvbnM/OiB7IGV4YWN0OiBib29sZWFuIH0gfCBJc0FjdGl2ZU1hdGNoT3B0aW9ucztcbiAgcm91dGVyTGlua0FjdGl2ZT86IHN0cmluZyB8IHN0cmluZ1tdO1xuICBhcmlhQ3VycmVudFdoZW5BY3RpdmU/OiAncGFnZScgfCAnc3RlcCcgfCAnbG9jYXRpb24nIHwgJ2RhdGUnIHwgJ3RpbWUnIHwgdHJ1ZSB8IGZhbHNlO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIElOYXZBdHRyaWJ1dGVzIHtcbiAgW3Byb3BOYW1lOiBzdHJpbmddOiBhbnk7XG59XG5cbmV4cG9ydCB0eXBlIEJ1dHRvblR5cGUgPSAnYnV0dG9uJyB8ICdzdWJtaXQnIHwgJ3Jlc2V0JztcbiJdfQ==
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, HostListener, Input, Optional, Output, Self, ViewChild, } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/forms";
|
|
4
|
-
import * as i2 from "@angular/common";
|
|
5
|
-
export class CustomGtrModalComponent {
|
|
6
|
-
/**
|
|
7
|
-
* The listen decorator used to close modal via keyboard
|
|
8
|
-
*/
|
|
9
|
-
handleKeyDown(event) {
|
|
10
|
-
if (event.key === 'Escape' && this.isOpen) {
|
|
11
|
-
this.handleCloseModal();
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
constructor(ngControl) {
|
|
15
|
-
this.ngControl = ngControl;
|
|
16
|
-
/**
|
|
17
|
-
* The modal open state
|
|
18
|
-
*/
|
|
19
|
-
this.isOpen = false;
|
|
20
|
-
/**
|
|
21
|
-
* The modal position
|
|
22
|
-
*/
|
|
23
|
-
this.modalPosition = 'center';
|
|
24
|
-
/**
|
|
25
|
-
* The modal position
|
|
26
|
-
*/
|
|
27
|
-
this.modalId = '';
|
|
28
|
-
/**
|
|
29
|
-
* The modal size
|
|
30
|
-
*/
|
|
31
|
-
this.modalSize = 'small';
|
|
32
|
-
/**
|
|
33
|
-
* The modal scroll
|
|
34
|
-
*/
|
|
35
|
-
this.scrollType = 'scroll-content';
|
|
36
|
-
/**
|
|
37
|
-
* The modal header
|
|
38
|
-
*/
|
|
39
|
-
this.header = '';
|
|
40
|
-
/**
|
|
41
|
-
* The modal header
|
|
42
|
-
*/
|
|
43
|
-
this.hasHeading = true;
|
|
44
|
-
/**
|
|
45
|
-
* The modal action eventemitter
|
|
46
|
-
*/
|
|
47
|
-
this.closeModal = new EventEmitter();
|
|
48
|
-
if (this.ngControl != null) {
|
|
49
|
-
this.ngControl.valueAccessor = this;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
ngAfterViewInit() {
|
|
53
|
-
// throw new Error('Method not implemented.');
|
|
54
|
-
if (this.isOpen) {
|
|
55
|
-
this.setFocusToModal();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
writeValue(obj) {
|
|
59
|
-
// throw new Error('Method not implemented.');
|
|
60
|
-
}
|
|
61
|
-
registerOnChange(fn) {
|
|
62
|
-
// throw new Error('Method not implemented.');
|
|
63
|
-
}
|
|
64
|
-
registerOnTouched(fn) {
|
|
65
|
-
// throw new Error('Method not implemented.');
|
|
66
|
-
}
|
|
67
|
-
setDisabledState(isDisabled) {
|
|
68
|
-
// throw new Error('Method not implemented.');
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* The connectedCallback hook
|
|
72
|
-
*/
|
|
73
|
-
// connectedCallback(): void {
|
|
74
|
-
// document.addEventListener("keydown", this.handleKeyDown);
|
|
75
|
-
// }
|
|
76
|
-
/**
|
|
77
|
-
* The disconnectedCallback hook
|
|
78
|
-
*/
|
|
79
|
-
// disconnectedCallback(): void {
|
|
80
|
-
// document.removeEventListener("keydown", this.handleKeyDown);
|
|
81
|
-
// }
|
|
82
|
-
/**
|
|
83
|
-
* The component funtion used to handle click on modal overlay
|
|
84
|
-
*/
|
|
85
|
-
handleOverlayClick(event) {
|
|
86
|
-
event.stopPropagation();
|
|
87
|
-
event.preventDefault();
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* The componentDidUpdate hook
|
|
91
|
-
*/
|
|
92
|
-
// componentDidUpdate(): void {
|
|
93
|
-
// if (this.isOpen) {
|
|
94
|
-
// this.setFocusToModal();
|
|
95
|
-
// }
|
|
96
|
-
// }
|
|
97
|
-
/**
|
|
98
|
-
* The component funtion used to set focus on modal
|
|
99
|
-
*/
|
|
100
|
-
setFocusToModal() {
|
|
101
|
-
if (this.modalElement) {
|
|
102
|
-
this.modalElement.nativeElement.focus();
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* The component funtion used to set close modal
|
|
107
|
-
*/
|
|
108
|
-
handleCloseModal() {
|
|
109
|
-
this.isOpen = false;
|
|
110
|
-
const bodyElement = document.querySelector('body');
|
|
111
|
-
if (bodyElement)
|
|
112
|
-
bodyElement.style.overflow = 'auto';
|
|
113
|
-
this.closeModal.emit();
|
|
114
|
-
}
|
|
115
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomGtrModalComponent, deps: [{ token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
116
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CustomGtrModalComponent, selector: "gtr-modal", inputs: { isOpen: "isOpen", modalPosition: "modalPosition", modalId: "modalId", modalSize: "modalSize", scrollType: "scrollType", header: "header", hasHeading: "hasHeading" }, outputs: { closeModal: "closeModal" }, host: { listeners: { "keydown": "handleKeyDown($event)" } }, viewQueries: [{ propertyName: "modalElement", first: true, predicate: ["modalElement"], descendants: true }], ngImport: i0, template: "<div [class]=\"'gtr-modal '+ modalPosition + ' ' + modalSize\" [class.open]=\"isOpen\" #modalElement tabIndex=\"-1\"\n [id]=\"modalId\" [attr.data-testid]=\"modalId\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-content\">\n <div class=\"gtr-modal-content\">\n <div class=\"gtr-modal-header\" *ngIf=\"hasHeading\">\n <span [id]=\"modalId+'-modal-title'\" [attr.data-testid]=\"modalId+'-modal-title'\" class=\"gtr-modal-title\">\n {{this.header}}\n </span>\n <button class=\"gtr-modal-close\" [id]=\"modalId+'-modal-cross-button'\" [attr.data-testid]=\"modalId+'-modal-cross-button'\" (click)=\"this.handleCloseModal()\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M15 5L5 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M15 5L5 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n </svg>\n </button>\n </div>\n <div id=\"modal-content\" [class]=\"'gtr-modal-body ' + this.scrollType\">\n <ng-content select=\"[modal-body]\"></ng-content>\n <div class=\"gtr-modal-actions\">\n <ng-content select=\"[modal-actions]\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px}.gtr-modal{display:none;position:fixed;z-index:9999;padding:20px;transform:translateZ(0);left:0;top:0;outline:0;width:100%;height:100%;overflow:auto;background-color:var(--gtr-color-base-black-20)}.gtr-modal.open{display:flex}.gtr-modal.open.top{display:block}.gtr-modal-content{background-color:#fefefe;margin:auto;padding:20px;width:90%;background-color:var(--gtr-color-base-white-100);border-radius:var(--gtr-border-radius-6);box-shadow:var(--gtr-content-box-shadow-base)}.gtr-modal.small .gtr-modal-content{max-width:90%;width:400px}.gtr-modal-body.scroll-body{max-height:400px;overflow-y:auto;overflow-x:hidden;padding:8px}.gtr-modal.medium .gtr-modal-content{max-width:90%;width:700px}.gtr-modal.large .gtr-modal-content{max-width:90%;width:1000px}.gtr-modal-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.gtr-modal-title{font-style:normal;font-weight:600;font-size:18px;line-height:24px;padding:0;margin:0;color:#000}.gtr-modal-close{border:none;background:none;font-size:.9rem;cursor:pointer;padding:0}.gtr-modal-body p{font-style:normal;font-weight:400;font-size:15px;line-height:22px}.gtr-modal-body .gtr-modal-actions{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:10px}.gtr-modal-body::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}@media screen and (max-width: 768px){.gtr-modal{padding:10px}.gtr-modal.small .gtr-modal-content,.gtr-modal.large .gtr-modal-content,.gtr-modal.medium .gtr-modal-content{max-width:100%}}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
117
|
-
}
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomGtrModalComponent, decorators: [{
|
|
119
|
-
type: Component,
|
|
120
|
-
args: [{ selector: 'gtr-modal', template: "<div [class]=\"'gtr-modal '+ modalPosition + ' ' + modalSize\" [class.open]=\"isOpen\" #modalElement tabIndex=\"-1\"\n [id]=\"modalId\" [attr.data-testid]=\"modalId\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-content\">\n <div class=\"gtr-modal-content\">\n <div class=\"gtr-modal-header\" *ngIf=\"hasHeading\">\n <span [id]=\"modalId+'-modal-title'\" [attr.data-testid]=\"modalId+'-modal-title'\" class=\"gtr-modal-title\">\n {{this.header}}\n </span>\n <button class=\"gtr-modal-close\" [id]=\"modalId+'-modal-cross-button'\" [attr.data-testid]=\"modalId+'-modal-cross-button'\" (click)=\"this.handleCloseModal()\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M15 5L5 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M15 5L5 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"#4B465C\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path d=\"M5 5L15 15\" stroke=\"white\" stroke-opacity=\"0.5\" stroke-width=\"1.75\" stroke-linecap=\"round\"\n stroke-linejoin=\"round\" />\n </svg>\n </button>\n </div>\n <div id=\"modal-content\" [class]=\"'gtr-modal-body ' + this.scrollType\">\n <ng-content select=\"[modal-body]\"></ng-content>\n <div class=\"gtr-modal-actions\">\n <ng-content select=\"[modal-actions]\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":root{display:block;box-sizing:border-box;font-family:var(--gtr-component-font-family-base);margin:0;--gtr-border-radius-6: 6px}.gtr-modal{display:none;position:fixed;z-index:9999;padding:20px;transform:translateZ(0);left:0;top:0;outline:0;width:100%;height:100%;overflow:auto;background-color:var(--gtr-color-base-black-20)}.gtr-modal.open{display:flex}.gtr-modal.open.top{display:block}.gtr-modal-content{background-color:#fefefe;margin:auto;padding:20px;width:90%;background-color:var(--gtr-color-base-white-100);border-radius:var(--gtr-border-radius-6);box-shadow:var(--gtr-content-box-shadow-base)}.gtr-modal.small .gtr-modal-content{max-width:90%;width:400px}.gtr-modal-body.scroll-body{max-height:400px;overflow-y:auto;overflow-x:hidden;padding:8px}.gtr-modal.medium .gtr-modal-content{max-width:90%;width:700px}.gtr-modal.large .gtr-modal-content{max-width:90%;width:1000px}.gtr-modal-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.gtr-modal-title{font-style:normal;font-weight:600;font-size:18px;line-height:24px;padding:0;margin:0;color:#000}.gtr-modal-close{border:none;background:none;font-size:.9rem;cursor:pointer;padding:0}.gtr-modal-body p{font-style:normal;font-weight:400;font-size:15px;line-height:22px}.gtr-modal-body .gtr-modal-actions{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:10px}.gtr-modal-body::-webkit-scrollbar{background:var(--gtr-color-base-black-10)}::-webkit-scrollbar{width:5px;background:var(--gtr-color-base-black-10)}::-webkit-scrollbar-thumb{background:var(--gtr-color-base-black-10)}@media screen and (max-width: 768px){.gtr-modal{padding:10px}.gtr-modal.small .gtr-modal-content,.gtr-modal.large .gtr-modal-content,.gtr-modal.medium .gtr-modal-content{max-width:100%}}\n"] }]
|
|
121
|
-
}], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
|
|
122
|
-
type: Optional
|
|
123
|
-
}, {
|
|
124
|
-
type: Self
|
|
125
|
-
}] }]; }, propDecorators: { modalElement: [{
|
|
126
|
-
type: ViewChild,
|
|
127
|
-
args: ['modalElement']
|
|
128
|
-
}], handleKeyDown: [{
|
|
129
|
-
type: HostListener,
|
|
130
|
-
args: ['keydown', ['$event']]
|
|
131
|
-
}], isOpen: [{
|
|
132
|
-
type: Input
|
|
133
|
-
}], modalPosition: [{
|
|
134
|
-
type: Input
|
|
135
|
-
}], modalId: [{
|
|
136
|
-
type: Input
|
|
137
|
-
}], modalSize: [{
|
|
138
|
-
type: Input
|
|
139
|
-
}], scrollType: [{
|
|
140
|
-
type: Input
|
|
141
|
-
}], header: [{
|
|
142
|
-
type: Input
|
|
143
|
-
}], hasHeading: [{
|
|
144
|
-
type: Input
|
|
145
|
-
}], closeModal: [{
|
|
146
|
-
type: Output
|
|
147
|
-
}] } });
|
|
148
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLWd0ci1tb2RhbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL21vbGVjdWxlcy9jdXN0b20tZ3RyLW1vZGFsL2N1c3RvbS1ndHItbW9kYWwuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9tb2xlY3VsZXMvY3VzdG9tLWd0ci1tb2RhbC9jdXN0b20tZ3RyLW1vZGFsLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFTCxTQUFTLEVBRVQsWUFBWSxFQUNaLFlBQVksRUFDWixLQUFLLEVBQ0wsUUFBUSxFQUNSLE1BQU0sRUFDTixJQUFJ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W5lY2FwPVwicm91bmRcIlxuICAgICAgICAgICAgc3Ryb2tlLWxpbmVqb2luPVwicm91bmRcIiAvPlxuICAgICAgICAgIDxwYXRoIGQ9XCJNNSA1TDE1IDE1XCIgc3Ryb2tlPVwiIzRCNDY1Q1wiIHN0cm9rZS13aWR0aD1cIjEuNzVcIiBzdHJva2UtbGluZWNhcD1cInJvdW5kXCIgc3Ryb2tlLWxpbmVqb2luPVwicm91bmRcIiAvPlxuICAgICAgICAgIDxwYXRoIGQ9XCJNNSA1TDE1IDE1XCIgc3Ryb2tlPVwid2hpdGVcIiBzdHJva2Utb3BhY2l0eT1cIjAuNVwiIHN0cm9rZS13aWR0aD1cIjEuNzVcIiBzdHJva2UtbGluZWNhcD1cInJvdW5kXCJcbiAgICAgICAgICAgIHN0cm9rZS1saW5lam9pbj1cInJvdW5kXCIgLz5cbiAgICAgICAgPC9zdmc+XG4gICAgICA8L2J1dHRvbj5cbiAgICA8L2Rpdj5cbiAgICA8ZGl2IGlkPVwibW9kYWwtY29udGVudFwiIFtjbGFzc109XCInZ3RyLW1vZGFsLWJvZHkgJyArIHRoaXMuc2Nyb2xsVHlwZVwiPlxuICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiW21vZGFsLWJvZHldXCI+PC9uZy1jb250ZW50PlxuICAgICAgPGRpdiBjbGFzcz1cImd0ci1tb2RhbC1hY3Rpb25zXCI+XG4gICAgICAgIDxuZy1jb250ZW50IHNlbGVjdD1cIlttb2RhbC1hY3Rpb25zXVwiPjwvbmctY29udGVudD5cbiAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { CustomGtrModalComponent } from './custom-gtr-modal.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class CustomGtrModalModule {
|
|
6
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomGtrModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CustomGtrModalModule, declarations: [CustomGtrModalComponent], imports: [CommonModule], exports: [CustomGtrModalComponent] }); }
|
|
8
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomGtrModalModule, imports: [CommonModule] }); }
|
|
9
|
-
}
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomGtrModalModule, decorators: [{
|
|
11
|
-
type: NgModule,
|
|
12
|
-
args: [{
|
|
13
|
-
imports: [CommonModule],
|
|
14
|
-
exports: [CustomGtrModalComponent],
|
|
15
|
-
declarations: [CustomGtrModalComponent],
|
|
16
|
-
}]
|
|
17
|
-
}] });
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLWd0ci1tb2RhbC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL21vbGVjdWxlcy9jdXN0b20tZ3RyLW1vZGFsL2N1c3RvbS1ndHItbW9kYWwubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLDhCQUE4QixDQUFDOztBQU12RSxNQUFNLE9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WMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { CustomGtrModalComponent } from './custom-gtr-modal.component';
|
|
2
|
-
export { CustomGtrModalModule } from './custom-gtr-modal.module';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvbW9sZWN1bGVzL2N1c3RvbS1ndHItbW9kYWwvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUN2RSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEN1c3RvbUd0ck1vZGFsQ29tcG9uZW50IH0gZnJvbSAnLi9jdXN0b20tZ3RyLW1vZGFsLmNvbXBvbmVudCc7XG5leHBvcnQgeyBDdXN0b21HdHJNb2RhbE1vZHVsZSB9IGZyb20gJy4vY3VzdG9tLWd0ci1tb2RhbC5tb2R1bGUnO1xuIl19
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./custom-button.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/forms";
|
|
5
|
-
export declare class CustomButtonModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomButtonModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomButtonModule, [typeof i1.CustomButtonComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.CustomButtonComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CustomButtonModule>;
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./custom-gtr-switch.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
export declare class CustomGtrSwitchModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrSwitchModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomGtrSwitchModule, [typeof i1.CustomGtrSwitchComponent], [typeof i2.CommonModule], [typeof i1.CustomGtrSwitchComponent]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CustomGtrSwitchModule>;
|
|
8
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
-
import { positionType } from './utils/utils';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CustomGtrTooltipComponent implements AfterViewInit, ControlValueAccessor {
|
|
6
|
-
ngControl: NgControl;
|
|
7
|
-
private tooltipElement;
|
|
8
|
-
/**
|
|
9
|
-
* The tooltip element
|
|
10
|
-
*/
|
|
11
|
-
contentEl?: ElementRef;
|
|
12
|
-
/**
|
|
13
|
-
* The keyup event for hide tooltip visibility on escape key
|
|
14
|
-
*/
|
|
15
|
-
handleKeyDown(event: KeyboardEvent): void;
|
|
16
|
-
/**
|
|
17
|
-
* The resize and scroll listeners for scroll and window resize event is fired to adjust tooltip position
|
|
18
|
-
*/
|
|
19
|
-
handleResizeScroll(): void;
|
|
20
|
-
constructor(ngControl: NgControl, tooltipElement: ElementRef);
|
|
21
|
-
writeValue(obj: any): void;
|
|
22
|
-
registerOnChange(fn: any): void;
|
|
23
|
-
registerOnTouched(fn: any): void;
|
|
24
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
25
|
-
/**
|
|
26
|
-
* The tooltip content
|
|
27
|
-
*/
|
|
28
|
-
tooltipId: string;
|
|
29
|
-
/**
|
|
30
|
-
* The tooltip content
|
|
31
|
-
*/
|
|
32
|
-
content?: string;
|
|
33
|
-
/**
|
|
34
|
-
* The tooltip position
|
|
35
|
-
*/
|
|
36
|
-
position: positionType;
|
|
37
|
-
/**
|
|
38
|
-
* The popover auto adjust position
|
|
39
|
-
*/
|
|
40
|
-
autoAdjustable: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* The tooltip adjustable position
|
|
43
|
-
*/
|
|
44
|
-
newPosition: string;
|
|
45
|
-
/**
|
|
46
|
-
* The watch decorator fires event when tooltip position changed
|
|
47
|
-
*/
|
|
48
|
-
adjustPosition(): Promise<void>;
|
|
49
|
-
/**
|
|
50
|
-
* The click event for hide tooltip visibility
|
|
51
|
-
*/
|
|
52
|
-
hideTooltip(): void;
|
|
53
|
-
/**
|
|
54
|
-
* The componentWillLoad hook
|
|
55
|
-
*/
|
|
56
|
-
ngAfterViewInit(): void;
|
|
57
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrTooltipComponent, [{ optional: true; self: true; }, null]>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomGtrTooltipComponent, "gtr-tooltip", never, { "tooltipId": { "alias": "tooltipId"; "required": false; }; "content": { "alias": "content"; "required": false; }; "position": { "alias": "position"; "required": false; }; "autoAdjustable": { "alias": "autoAdjustable"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
59
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./custom-gtr-tooltip.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
export declare class CustomGtrTooltipModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrTooltipModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomGtrTooltipModule, [typeof i1.CustomGtrTooltipComponent], [typeof i2.CommonModule], [typeof i1.CustomGtrTooltipComponent]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CustomGtrTooltipModule>;
|
|
8
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./custom-input.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "../skeleton/utils/skeleton.directive";
|
|
5
|
-
import * as i4 from "../icon/icon.module";
|
|
6
|
-
export declare class CustomInputModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomInputModule, [typeof i1.CustomInputComponent], [typeof i2.CommonModule, typeof i3.SkeletonDirective, typeof i4.GtrIconModule], [typeof i1.CustomInputComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CustomInputModule>;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./custom-textarea.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "../skeleton/utils/skeleton.directive";
|
|
5
|
-
import * as i4 from "../icon/icon.module";
|
|
6
|
-
export declare class CustomTextareaModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTextareaModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomTextareaModule, [typeof i1.CustomTextareaComponent], [typeof i2.CommonModule, typeof i3.SkeletonDirective, typeof i4.GtrIconModule], [typeof i1.CustomTextareaComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CustomTextareaModule>;
|
|
10
|
-
}
|
package/lib/atoms/gtr.types.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { IsActiveMatchOptions } from '@angular/router';
|
|
2
|
-
export declare enum BreakpointInfix {
|
|
3
|
-
xs = "xs",
|
|
4
|
-
sm = "sm",
|
|
5
|
-
md = "md",
|
|
6
|
-
lg = "lg",
|
|
7
|
-
xl = "xl",
|
|
8
|
-
xxl = "xxl"
|
|
9
|
-
}
|
|
10
|
-
export type BreakpointInfixStrings = keyof typeof BreakpointInfix;
|
|
11
|
-
export type Breakpoints = BreakpointInfixStrings | string;
|
|
12
|
-
export type Sizes = 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | string;
|
|
13
|
-
export type Colors = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string;
|
|
14
|
-
export type ColorsGradient = `${Colors}-gradient`;
|
|
15
|
-
export type BackgroundColors = Colors | 'body' | 'white' | 'transparent';
|
|
16
|
-
export type Directions = 'down' | 'up' | 'start' | 'end' | '';
|
|
17
|
-
export type TextColors = Colors | 'body' | 'white' | 'muted' | 'black-50' | 'white-50' | 'high-emphasis' | 'medium-emphasis' | 'disabled' | 'high-emphasis-inverse' | 'medium-emphasis-inverse' | 'disabled-inverse';
|
|
18
|
-
export type Alignment = 'baseline' | 'top' | 'middle' | 'bottom' | 'text-top' | 'text-bottom';
|
|
19
|
-
export type BadgePositions = 'top-start' | 'top-end' | 'bottom-end' | 'bottom-start' | string | undefined;
|
|
20
|
-
export type Placements = 'auto' | 'auto-start' | 'auto-end' | 'top-end' | 'top' | 'top-start' | 'bottom-end' | 'bottom' | 'bottom-start' | 'right-start' | 'right' | 'right-end' | 'left-start' | 'left' | 'left-end' | undefined;
|
|
21
|
-
export type Shapes = 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string;
|
|
22
|
-
export type Triggers = 'hover' | 'focus' | 'click';
|
|
23
|
-
export type Positions = 'fixed' | 'sticky';
|
|
24
|
-
export type InputType = 'button' | 'color' | 'date' | 'datetime' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | 'checkbox' | 'radio';
|
|
25
|
-
export interface INavLinkProps {
|
|
26
|
-
queryParams?: {
|
|
27
|
-
[k: string]: any;
|
|
28
|
-
};
|
|
29
|
-
fragment?: string;
|
|
30
|
-
queryParamsHandling?: 'merge' | 'preserve' | '' | null;
|
|
31
|
-
preserveFragment?: boolean;
|
|
32
|
-
skipLocationChange?: boolean;
|
|
33
|
-
replaceUrl?: boolean;
|
|
34
|
-
state?: {
|
|
35
|
-
[k: string]: any;
|
|
36
|
-
};
|
|
37
|
-
routerLinkActiveOptions?: {
|
|
38
|
-
exact: boolean;
|
|
39
|
-
} | IsActiveMatchOptions;
|
|
40
|
-
routerLinkActive?: string | string[];
|
|
41
|
-
ariaCurrentWhenActive?: 'page' | 'step' | 'location' | 'date' | 'time' | true | false;
|
|
42
|
-
}
|
|
43
|
-
export interface INavAttributes {
|
|
44
|
-
[propName: string]: any;
|
|
45
|
-
}
|
|
46
|
-
export type ButtonType = 'button' | 'submit' | 'reset';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ButtonDirective } from './button.directive';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ButtonCloseDirective extends ButtonDirective {
|
|
4
|
-
/**
|
|
5
|
-
* Change the default color to white.
|
|
6
|
-
* @type boolean
|
|
7
|
-
*/
|
|
8
|
-
white: string | boolean;
|
|
9
|
-
get hostClasses(): any;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonCloseDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonCloseDirective, "[gtrButtonClose]", never, { "white": { "alias": "white"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
-
static ngAcceptInputType_white: unknown;
|
|
13
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ButtonType, Colors, Shapes } from '../core-components.types';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ButtonDirective {
|
|
4
|
-
/**
|
|
5
|
-
* Toggle the active state for the component. [docs]
|
|
6
|
-
* @type boolean
|
|
7
|
-
*/
|
|
8
|
-
active: string | boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Sets the color context of the component to one of Gettrx Core’s themed colors. [docs]
|
|
11
|
-
* @type Colors
|
|
12
|
-
*/
|
|
13
|
-
color?: Colors;
|
|
14
|
-
/**
|
|
15
|
-
* Toggle the disabled state for the component.
|
|
16
|
-
* @type boolean
|
|
17
|
-
*/
|
|
18
|
-
disabled: string | boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Select the shape of the component.
|
|
21
|
-
* @type { 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string }
|
|
22
|
-
*/
|
|
23
|
-
shape?: Shapes;
|
|
24
|
-
/**
|
|
25
|
-
* Size the component small or large.
|
|
26
|
-
* @type {'sm' | 'lg'}
|
|
27
|
-
*/
|
|
28
|
-
size?: 'sm' | 'lg' | '';
|
|
29
|
-
/**
|
|
30
|
-
* Specifies the type of button. Always specify the type attribute for the `<button>` element.
|
|
31
|
-
* Different browsers may use different default types for the `<button>` element.
|
|
32
|
-
*/
|
|
33
|
-
type: ButtonType;
|
|
34
|
-
/**
|
|
35
|
-
* Set the button variant to an outlined button or a ghost button.
|
|
36
|
-
* @type {'ghost' | 'outline'}
|
|
37
|
-
*/
|
|
38
|
-
variant?: 'ghost' | 'outline';
|
|
39
|
-
get hostClasses(): any;
|
|
40
|
-
get ariaDisabled(): string | true | null;
|
|
41
|
-
get isActive(): boolean | null;
|
|
42
|
-
get attrDisabled(): "" | null;
|
|
43
|
-
get tabIndex(): string | null;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirective, never>;
|
|
45
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDirective, "[gtrButton]", ["gtrButton"], { "active": { "alias": "active"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, true, never>;
|
|
46
|
-
static ngAcceptInputType_active: unknown;
|
|
47
|
-
static ngAcceptInputType_disabled: unknown;
|
|
48
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./button.directive";
|
|
3
|
-
import * as i2 from "./button-close.directive";
|
|
4
|
-
export declare class ButtonModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonModule, never, [typeof i1.ButtonDirective, typeof i2.ButtonCloseDirective], [typeof i1.ButtonDirective, typeof i2.ButtonCloseDirective]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ButtonModule>;
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./custom-gtr-modal.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
export declare class CustomGtrModalModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrModalModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomGtrModalModule, [typeof i1.CustomGtrModalComponent], [typeof i2.CommonModule], [typeof i1.CustomGtrModalComponent]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CustomGtrModalModule>;
|
|
8
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|