@gettrx/core-components-angular 1.0.0 → 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/gettrx-core-components-angular.mjs +2 -2
- package/esm2022/index.mjs +2 -0
- package/esm2022/lib/atoms/badge/badge.component.mjs +3 -3
- package/esm2022/lib/atoms/badge/badge.module.mjs +6 -6
- 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/index.mjs +2 -0
- package/esm2022/lib/atoms/popover/popover.component.mjs +147 -0
- package/esm2022/lib/atoms/popover/popover.module.mjs +18 -0
- package/esm2022/lib/atoms/popover/public_api.mjs +3 -0
- package/esm2022/lib/atoms/radio-button/index.mjs +2 -0
- package/esm2022/lib/atoms/radio-button/public_api.mjs +3 -0
- package/esm2022/lib/atoms/radio-button/radio-button.component.mjs +184 -0
- package/esm2022/lib/atoms/radio-button/radio-button.module.mjs +19 -0
- package/esm2022/lib/atoms/skeleton/index.mjs +2 -0
- package/esm2022/lib/atoms/skeleton/public_api.mjs +4 -0
- package/esm2022/lib/atoms/skeleton/skeleton.module.mjs +20 -0
- 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/accordion.component.mjs +108 -0
- package/esm2022/lib/molecules/accordion/accordion-wrapper/accordion-wrapper.component.mjs +92 -0
- package/esm2022/lib/molecules/accordion/accordion.module.mjs +21 -0
- package/esm2022/lib/molecules/accordion/index.mjs +2 -0
- package/esm2022/lib/molecules/accordion/public_api.mjs +4 -0
- 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/index.mjs +2 -0
- package/esm2022/lib/molecules/stat-card/public_api.mjs +3 -0
- package/esm2022/lib/molecules/stat-card/stat-card.component.mjs +135 -0
- package/esm2022/lib/molecules/stat-card/stat-card.module.mjs +22 -0
- package/esm2022/lib/molecules/time-picker/time-picker.module.mjs +2 -2
- package/esm2022/public-api.mjs +25 -5
- package/fesm2022/gettrx-core-components-angular.mjs +7370 -5726
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/index.d.ts +0 -4
- 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/input/index.d.ts +1 -0
- package/lib/atoms/input/input.component.d.ts +160 -0
- package/lib/atoms/input/input.module.d.ts +10 -0
- package/lib/atoms/input/public_api.d.ts +2 -0
- package/lib/atoms/input/utils/input-utils.d.ts +30 -0
- package/lib/atoms/popover/index.d.ts +1 -0
- package/lib/atoms/popover/popover.component.d.ts +35 -0
- package/lib/atoms/popover/popover.module.d.ts +8 -0
- package/lib/atoms/popover/public_api.d.ts +2 -0
- package/lib/atoms/radio-button/index.d.ts +1 -0
- package/lib/atoms/radio-button/public_api.d.ts +2 -0
- package/lib/atoms/radio-button/radio-button.component.d.ts +85 -0
- package/lib/atoms/radio-button/radio-button.module.d.ts +9 -0
- package/lib/atoms/skeleton/index.d.ts +1 -0
- package/lib/atoms/skeleton/public_api.d.ts +3 -0
- package/lib/atoms/skeleton/skeleton.module.d.ts +9 -0
- package/lib/atoms/switch/index.d.ts +1 -0
- package/lib/atoms/switch/public_api.d.ts +2 -0
- package/lib/atoms/switch/switch.component.d.ts +55 -0
- package/lib/atoms/switch/switch.module.d.ts +8 -0
- package/lib/atoms/textarea/index.d.ts +1 -0
- package/lib/atoms/textarea/public_api.d.ts +2 -0
- package/lib/atoms/textarea/textarea.component.d.ts +112 -0
- package/lib/atoms/textarea/textarea.module.d.ts +10 -0
- package/lib/atoms/textarea/utils/textarea.types.d.ts +12 -0
- package/lib/atoms/tooltip/index.d.ts +1 -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/atoms/tooltip/utils/utils.d.ts +1 -0
- package/lib/molecules/accordion/accordion/accordion.component.d.ts +59 -0
- package/lib/molecules/accordion/accordion-wrapper/accordion-wrapper.component.d.ts +37 -0
- package/lib/molecules/accordion/accordion.module.d.ts +11 -0
- package/lib/molecules/accordion/index.d.ts +1 -0
- package/lib/molecules/accordion/public_api.d.ts +3 -0
- 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/modal/index.d.ts +1 -0
- package/lib/molecules/modal/modal.component.d.ts +75 -0
- 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/index.d.ts +1 -0
- package/lib/molecules/stat-card/public_api.d.ts +2 -0
- package/lib/molecules/stat-card/stat-card.component.d.ts +56 -0
- package/lib/molecules/stat-card/stat-card.module.d.ts +11 -0
- package/lib/molecules/time-picker/time-picker.module.d.ts +1 -1
- package/package.json +3 -2
- package/public-api.d.ts +21 -4
- 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/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/lib/atoms/custom-button/custom-button.module.d.ts +0 -9
- package/lib/atoms/custom-button/index.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/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/{molecules/button → atoms/button-directive}/index.d.ts +0 -0
- /package/lib/{molecules/core-components.types.d.ts → core-components.types.d.ts} +0 -0
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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|