@indigina/ui-kit 1.1.6 → 1.1.7
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/assets/icons/copy.svg +5 -0
- package/esm2020/lib/components/kit-copy-text/kit-copy-text.component.mjs +67 -0
- package/esm2020/lib/components/kit-copy-text/kit-copy-text.module.mjs +28 -0
- package/esm2020/lib/components/kit-cta-panel-item/kit-cta-panel-item.component.mjs +5 -8
- package/esm2020/lib/components/kit-cta-panel-item/kit-cta-panel-item.model.mjs +6 -0
- package/esm2020/lib/components/kit-cta-panel-item/kit-cta-panel-item.module.mjs +7 -3
- package/esm2020/lib/components/kit-svg-icon/kit-svg-icon.const.mjs +2 -1
- package/esm2020/lib/components/kit-svg-sprite/kit-svg-sprite.component.mjs +3 -3
- package/esm2020/public-api.mjs +6 -2
- package/fesm2015/indigina-ui-kit.mjs +101 -9
- package/fesm2015/indigina-ui-kit.mjs.map +1 -1
- package/fesm2020/indigina-ui-kit.mjs +98 -9
- package/fesm2020/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-copy-text/kit-copy-text.component.d.ts +32 -0
- package/lib/components/kit-copy-text/kit-copy-text.module.d.ts +9 -0
- package/lib/components/kit-cta-panel-item/kit-cta-panel-item.component.d.ts +1 -11
- package/lib/components/kit-cta-panel-item/kit-cta-panel-item.model.d.ts +18 -0
- package/lib/components/kit-cta-panel-item/kit-cta-panel-item.module.d.ts +2 -1
- package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare enum KitCopyTextState {
|
|
5
|
+
NOT_COPIED = "not-copied",
|
|
6
|
+
COPIED = "copied"
|
|
7
|
+
}
|
|
8
|
+
export declare class KitCopyTextComponent {
|
|
9
|
+
private document;
|
|
10
|
+
/**
|
|
11
|
+
Defines a value that is going to be the text to be copied
|
|
12
|
+
*/
|
|
13
|
+
textToCopy: string | null;
|
|
14
|
+
/**
|
|
15
|
+
Defines a value that is going to be displayed on hover as a hint before copying
|
|
16
|
+
*/
|
|
17
|
+
tooltipTextBefore: string | null;
|
|
18
|
+
/**
|
|
19
|
+
Defines a value that is going to be displayed on hover as a hint after copying
|
|
20
|
+
*/
|
|
21
|
+
tooltipTextAfter: string | null;
|
|
22
|
+
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
23
|
+
readonly CopyTextState: typeof KitCopyTextState;
|
|
24
|
+
readonly copyTextState$: BehaviorSubject<KitCopyTextState>;
|
|
25
|
+
constructor(document: Document);
|
|
26
|
+
copyText(): void;
|
|
27
|
+
private setState;
|
|
28
|
+
private handleCopyStateChange;
|
|
29
|
+
private copyTextToClipboard;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitCopyTextComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitCopyTextComponent, "kit-copy-text", never, { "textToCopy": "textToCopy"; "tooltipTextBefore": "tooltipTextBefore"; "tooltipTextAfter": "tooltipTextAfter"; }, {}, never, never, false, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./kit-copy-text.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../kit-svg-icon/kit-svg-icon.module";
|
|
5
|
+
export declare class KitCopyTextModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitCopyTextModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitCopyTextModule, [typeof i1.KitCopyTextComponent], [typeof i2.CommonModule, typeof i3.KitSvgIconModule], [typeof i1.KitCopyTextComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KitCopyTextModule>;
|
|
9
|
+
}
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
|
+
import { KitCtaPanelItem, KitCtaPanelItemType } from './kit-cta-panel-item.model';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export interface KitCtaPanelItem {
|
|
5
|
-
title: string;
|
|
6
|
-
buttonText?: string;
|
|
7
|
-
icon?: KitSvgIcon;
|
|
8
|
-
link?: string | string[];
|
|
9
|
-
action?(): void;
|
|
10
|
-
}
|
|
11
|
-
export declare enum KitCtaPanelItemType {
|
|
12
|
-
BUTTON = "button",
|
|
13
|
-
LINK = "link"
|
|
14
|
-
}
|
|
15
5
|
export declare class KitCtaPanelItemComponent {
|
|
16
6
|
item?: KitCtaPanelItem;
|
|
17
7
|
type: KitCtaPanelItemType;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
2
|
+
export interface KitCtaPanelItem {
|
|
3
|
+
title: string;
|
|
4
|
+
buttonText?: string;
|
|
5
|
+
icon?: KitSvgIcon;
|
|
6
|
+
link?: string | string[];
|
|
7
|
+
copyItem?: KitCtaPanelCopyItem;
|
|
8
|
+
action?(): void;
|
|
9
|
+
}
|
|
10
|
+
export interface KitCtaPanelCopyItem {
|
|
11
|
+
textToCopy: string;
|
|
12
|
+
tooltipTextBefore?: string;
|
|
13
|
+
tooltipTextAfter?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare enum KitCtaPanelItemType {
|
|
16
|
+
BUTTON = "button",
|
|
17
|
+
LINK = "link"
|
|
18
|
+
}
|
|
@@ -3,8 +3,9 @@ import * as i1 from "./kit-cta-panel-item.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "../kit-svg-icon/kit-svg-icon.module";
|
|
5
5
|
import * as i4 from "@angular/router";
|
|
6
|
+
import * as i5 from "../kit-copy-text/kit-copy-text.module";
|
|
6
7
|
export declare class KitCtaPanelItemModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitCtaPanelItemModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KitCtaPanelItemModule, [typeof i1.KitCtaPanelItemComponent], [typeof i2.CommonModule, typeof i3.KitSvgIconModule, typeof i4.RouterModule], [typeof i1.KitCtaPanelItemComponent]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitCtaPanelItemModule, [typeof i1.KitCtaPanelItemComponent], [typeof i2.CommonModule, typeof i3.KitSvgIconModule, typeof i4.RouterModule, typeof i5.KitCopyTextModule], [typeof i1.KitCtaPanelItemComponent]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<KitCtaPanelItemModule>;
|
|
10
11
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -47,8 +47,9 @@ export { KitToastrModule } from './lib/components/kit-toastr/kit-toastr.module';
|
|
|
47
47
|
export { KitToastrService, KitToastrConfig, KitToastrType, KitToastrPosition } from './lib/components/kit-toastr/kit-toastr.service';
|
|
48
48
|
export { KitDaterangeComponent, KitDaterangeType, KitDaterangeIconPosition, KitDaterangeValue, } from './lib/components/kit-daterange/kit-daterange.component';
|
|
49
49
|
export { KitDaterangeModule } from './lib/components/kit-daterange/kit-daterange.module';
|
|
50
|
-
export {
|
|
50
|
+
export { KitCtaPanelItemComponent } from './lib/components/kit-cta-panel-item/kit-cta-panel-item.component';
|
|
51
51
|
export { KitCtaPanelItemModule } from './lib/components/kit-cta-panel-item/kit-cta-panel-item.module';
|
|
52
|
+
export { KitCtaPanelItem, KitCtaPanelItemType, KitCtaPanelCopyItem } from './lib/components/kit-cta-panel-item/kit-cta-panel-item.model';
|
|
52
53
|
export { KitCtaPanelActionComponent } from './lib/components/kit-cta-panel-action/kit-cta-panel-action.component';
|
|
53
54
|
export { KitCtaPanelActionModule } from './lib/components/kit-cta-panel-action/kit-cta-panel-action.module';
|
|
54
55
|
export { AbstractKitCtaPanelConfirmationComponent, } from './lib/components/kit-cta-panel-confirmation/abstract-kit-cta-panel-confirmation.component';
|
|
@@ -80,3 +81,5 @@ export { KitFileUploadModule } from './lib/components/kit-file-upload/kit-file-u
|
|
|
80
81
|
export { KitFileUploadFile, KitFileUploadFileRestrictions, KitFileUploadFileRestrictionsMessages, } from './lib/components/kit-file-upload/kit-file-upload.model';
|
|
81
82
|
export { KitPermissionModule } from './lib/directives/kit-permission/kit-permission.module';
|
|
82
83
|
export { KitPermissionDirective } from './lib/directives/kit-permission/kit-permission.directive';
|
|
84
|
+
export { KitCopyTextModule } from './lib/components/kit-copy-text/kit-copy-text.module';
|
|
85
|
+
export { KitCopyTextComponent } from './lib/components/kit-copy-text/kit-copy-text.component';
|