@spicainternational/ngx-sds-components 2.35.1 → 2.36.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.
@@ -6,6 +6,7 @@ export * from '@spicainternational/ngx-sds-components/src/lib/avatar';
6
6
  export * from '@spicainternational/ngx-sds-components/src/lib/badge';
7
7
  export * from '@spicainternational/ngx-sds-components/src/lib/callout';
8
8
  export * from '@spicainternational/ngx-sds-components/src/lib/color-picker';
9
+ export * from '@spicainternational/ngx-sds-components/src/lib/ellipsis';
9
10
  export * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';
10
11
  export * from '@spicainternational/ngx-sds-components/src/lib/date-picker';
11
12
  export * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';
@@ -22,4 +23,4 @@ export * from '@spicainternational/ngx-sds-components/src/lib/quick-info';
22
23
  export * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';
23
24
  export * from '@spicainternational/ngx-sds-components/src/lib/side-bar';
24
25
  export * from '@spicainternational/ngx-sds-components/src/lib/tooltip';
25
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1zZHMtY29tcG9uZW50cy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsNkRBQTZELENBQUM7QUFDNUUsY0FBYyx1REFBdUQsQ0FBQztBQUN0RSxjQUFjLHNEQUFzRCxDQUFDO0FBQ3JFLGNBQWMsd0RBQXdELENBQUM7QUFDdkUsY0FBYyw2REFBNkQsQ0FBQztBQUM1RSxjQUFjLGdFQUFnRSxDQUFDO0FBQy9FLGNBQWMsNERBQTRELENBQUM7QUFDM0UsY0FBYywyREFBMkQsQ0FBQztBQUMxRSxjQUFjLDhEQUE4R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b3J0ICogZnJvbSAnQHNwaWNhaW50ZXJuYXRpb25hbC9uZ3gtc2RzLWNvbXBvbmVudHMvc3JjL2xpYi9wYW5lJztcclxuZXhwb3J0ICogZnJvbSAnQHNwaWNhaW50ZXJuYXRpb25hbC9uZ3gtc2RzLWNvbXBvbmVudHMvc3JjL2xpYi9xdWljay1pbmZvJztcclxuZXhwb3J0ICogZnJvbSAnQHNwaWNhaW50ZXJuYXRpb25hbC9uZ3gtc2RzLWNvbXBvbmVudHMvc3JjL2xpYi9zZWdtZW50ZWQtY29udHJvbCc7XHJcbmV4cG9ydCAqIGZyb20gJ0BzcGljYWludGVybmF0aW9uYWwvbmd4LXNkcy1jb21wb25lbnRzL3NyYy9saWIvc2lkZS1iYXInO1xyXG5leHBvcnQgKiBmcm9tICdAc3BpY2FpbnRlcm5hdGlvbmFsL25neC1zZHMtY29tcG9uZW50cy9zcmMvbGliL3Rvb2x0aXAnO1xyXG4iXX0=
@@ -0,0 +1,51 @@
1
+ import { Directive, HostListener, Input } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /*
4
+ * Parent must have a fixed width for this directive to work properly.
5
+ * Ellipsis will not appear without a parent width.
6
+ *
7
+ * tooltipText: @Input overrides the element's innerHtml with the provided
8
+ * string variable in the title, used to prevent HTML tags from appearing
9
+ * in the mouseover title. This will override text from an Input node.
10
+ */
11
+ export class SdsEllipsisDirective {
12
+ constructor(elementRef, renderer) {
13
+ this.elementRef = elementRef;
14
+ this.renderer = renderer;
15
+ }
16
+ ngAfterViewInit() {
17
+ this.element = this.elementRef.nativeElement;
18
+ this.renderer.setStyle(this.element, 'display', 'block');
19
+ this.renderer.setStyle(this.element, 'overflow', 'hidden');
20
+ this.renderer.setStyle(this.element, 'textOverflow', 'ellipsis');
21
+ this.renderer.setStyle(this.element, 'whiteSpace', 'nowrap');
22
+ }
23
+ enter() {
24
+ if (this.element && this.element.offsetWidth < this.element.scrollWidth) {
25
+ // this.renderer.setStyle(this.element, 'cursor', 'pointer');
26
+ if (this.tooltipText !== undefined && this.tooltipText.length > 0) {
27
+ this.element.title = this.tooltipText;
28
+ return;
29
+ }
30
+ else if (this.element.nodeName === 'INPUT') {
31
+ this.element.title = this.elementRef?.nativeElement?.value;
32
+ return;
33
+ }
34
+ this.element.title = this.element.innerHTML;
35
+ }
36
+ }
37
+ }
38
+ SdsEllipsisDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
39
+ SdsEllipsisDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.1", type: SdsEllipsisDirective, selector: "[sdsEllipsis]", inputs: { tooltipText: "tooltipText" }, host: { listeners: { "mouseenter": "enter()" } }, ngImport: i0 });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisDirective, decorators: [{
41
+ type: Directive,
42
+ args: [{
43
+ selector: '[sdsEllipsis]',
44
+ }]
45
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { tooltipText: [{
46
+ type: Input
47
+ }], enter: [{
48
+ type: HostListener,
49
+ args: ['mouseenter']
50
+ }] } });
51
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxsaXBzaXMuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXNkcy1jb21wb25lbnRzL3NyYy9saWIvZWxsaXBzaXMvZGlyZWN0aXZlcy9lbGxpcHNpcy5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFpQixTQUFTLEVBQWMsWUFBWSxFQUFFLEtBQ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1lbnQsICd3aGl0ZVNwYWNlJywgJ25vd3JhcCcpO1xyXG4gICAgfVxyXG5cclxuICAgIEBIb3N0TGlzdGVuZXIoJ21vdXNlZW50ZXInKSBwdWJsaWMgZW50ZXIoKTogdm9pZCB7XHJcbiAgICAgICAgaWYgKHRoaXMuZWxlbWVudCAmJiB0aGlzLmVsZW1lbnQub2Zmc2V0V2lkdGggPCB0aGlzLmVsZW1lbnQuc2Nyb2xsV2lkdGgpIHtcclxuICAgICAgICAgICAgLy8gdGhpcy5yZW5kZXJlci5zZXRTdHlsZSh0aGlzLmVsZW1lbnQsICdjdXJzb3InLCAncG9pbnRlcicpO1xyXG5cclxuICAgICAgICAgICAgaWYgKHRoaXMudG9vbHRpcFRleHQgIT09IHVuZGVmaW5lZCAmJiB0aGlzLnRvb2x0aXBUZXh0Lmxlbmd0aCA+IDApIHtcclxuICAgICAgICAgICAgICAgIHRoaXMuZWxlbWVudC50aXRsZSA9IHRoaXMudG9vbHRpcFRleHQ7XHJcbiAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5lbGVtZW50Lm5vZGVOYW1lID09PSAnSU5QVVQnKSB7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmVsZW1lbnQudGl0bGUgPSB0aGlzLmVsZW1lbnRSZWY/Lm5hdGl2ZUVsZW1lbnQ/LnZhbHVlO1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIHRoaXMuZWxlbWVudC50aXRsZSA9IHRoaXMuZWxlbWVudC5pbm5lckhUTUw7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG59XHJcbiJdfQ==
@@ -0,0 +1,26 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { SdsEllipsisDirective } from './directives/ellipsis.directive';
4
+ import * as i0 from "@angular/core";
5
+ export class SdsEllipsisModule {
6
+ }
7
+ SdsEllipsisModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ SdsEllipsisModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisModule, declarations: [SdsEllipsisDirective], imports: [CommonModule], exports: [SdsEllipsisDirective] });
9
+ SdsEllipsisModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisModule, imports: [[
10
+ CommonModule
11
+ ]] });
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisModule, decorators: [{
13
+ type: NgModule,
14
+ args: [{
15
+ declarations: [
16
+ SdsEllipsisDirective
17
+ ],
18
+ imports: [
19
+ CommonModule
20
+ ],
21
+ exports: [
22
+ SdsEllipsisDirective
23
+ ]
24
+ }]
25
+ }] });
26
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxsaXBzaXMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXNkcy1jb21wb25lbnRzL3NyYy9saWIvZWxsaXBzaXMvZWxsaXBzaXMubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGlDQUFpQyxDQUFDOztBQWV2RSxNQUFNLE9BQU8saUJBQWlCOzs4R0FBakIsaUJBQWlCOytHQUFqQixpQkFBaUIsaUJBVDFCLG9CQUFvQixhQUdwQixZQUFZLGFBR1osb0JBQW9COytHQUdYLGlCQUFpQixZQVBuQjtZQUNQLFlBQVk7U0FDYjsyRkFLVSxpQkFBaUI7a0JBWDdCLFFBQVE7bUJBQUM7b0JBQ1IsWUFBWSxFQUFFO3dCQUNaLG9CQUFvQjtxQkFDckI7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLFlBQVk7cUJBQ2I7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLG9CQUFvQjtxQkFDckI7aUJBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xyXG5pbXBvcnQgeyBTZHNFbGxpcHNpc0RpcmVjdGl2ZSB9IGZyb20gJy4vZGlyZWN0aXZlcy9lbGxpcHNpcy5kaXJlY3RpdmUnO1xyXG5cclxuXHJcblxyXG5ATmdNb2R1bGUoe1xyXG4gIGRlY2xhcmF0aW9uczogW1xyXG4gICAgU2RzRWxsaXBzaXNEaXJlY3RpdmVcclxuICBdLFxyXG4gIGltcG9ydHM6IFtcclxuICAgIENvbW1vbk1vZHVsZVxyXG4gIF0sXHJcbiAgZXhwb3J0czogW1xyXG4gICAgU2RzRWxsaXBzaXNEaXJlY3RpdmVcclxuICBdIFxyXG59KVxyXG5leHBvcnQgY2xhc3MgU2RzRWxsaXBzaXNNb2R1bGUgeyB9XHJcbiJdfQ==
@@ -0,0 +1,3 @@
1
+ export * from './ellipsis.module';
2
+ export * from './directives/ellipsis.directive';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zZHMtY29tcG9uZW50cy9zcmMvbGliL2VsbGlwc2lzL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLGlDQUFpQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9lbGxpcHNpcy5tb2R1bGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2RpcmVjdGl2ZXMvZWxsaXBzaXMuZGlyZWN0aXZlJzsiXX0=
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BpY2FpbnRlcm5hdGlvbmFsLW5neC1zZHMtY29tcG9uZW50cy1zcmMtbGliLWVsbGlwc2lzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXNkcy1jb21wb25lbnRzL3NyYy9saWIvZWxsaXBzaXMvc3BpY2FpbnRlcm5hdGlvbmFsLW5neC1zZHMtY29tcG9uZW50cy1zcmMtbGliLWVsbGlwc2lzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
@@ -0,0 +1,82 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive, Input, HostListener, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+
5
+ /*
6
+ * Parent must have a fixed width for this directive to work properly.
7
+ * Ellipsis will not appear without a parent width.
8
+ *
9
+ * tooltipText: @Input overrides the element's innerHtml with the provided
10
+ * string variable in the title, used to prevent HTML tags from appearing
11
+ * in the mouseover title. This will override text from an Input node.
12
+ */
13
+ class SdsEllipsisDirective {
14
+ constructor(elementRef, renderer) {
15
+ this.elementRef = elementRef;
16
+ this.renderer = renderer;
17
+ }
18
+ ngAfterViewInit() {
19
+ this.element = this.elementRef.nativeElement;
20
+ this.renderer.setStyle(this.element, 'display', 'block');
21
+ this.renderer.setStyle(this.element, 'overflow', 'hidden');
22
+ this.renderer.setStyle(this.element, 'textOverflow', 'ellipsis');
23
+ this.renderer.setStyle(this.element, 'whiteSpace', 'nowrap');
24
+ }
25
+ enter() {
26
+ var _a, _b;
27
+ if (this.element && this.element.offsetWidth < this.element.scrollWidth) {
28
+ // this.renderer.setStyle(this.element, 'cursor', 'pointer');
29
+ if (this.tooltipText !== undefined && this.tooltipText.length > 0) {
30
+ this.element.title = this.tooltipText;
31
+ return;
32
+ }
33
+ else if (this.element.nodeName === 'INPUT') {
34
+ this.element.title = (_b = (_a = this.elementRef) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.value;
35
+ return;
36
+ }
37
+ this.element.title = this.element.innerHTML;
38
+ }
39
+ }
40
+ }
41
+ SdsEllipsisDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
42
+ SdsEllipsisDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.1", type: SdsEllipsisDirective, selector: "[sdsEllipsis]", inputs: { tooltipText: "tooltipText" }, host: { listeners: { "mouseenter": "enter()" } }, ngImport: i0 });
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisDirective, decorators: [{
44
+ type: Directive,
45
+ args: [{
46
+ selector: '[sdsEllipsis]',
47
+ }]
48
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { tooltipText: [{
49
+ type: Input
50
+ }], enter: [{
51
+ type: HostListener,
52
+ args: ['mouseenter']
53
+ }] } });
54
+
55
+ class SdsEllipsisModule {
56
+ }
57
+ SdsEllipsisModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
58
+ SdsEllipsisModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisModule, declarations: [SdsEllipsisDirective], imports: [CommonModule], exports: [SdsEllipsisDirective] });
59
+ SdsEllipsisModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisModule, imports: [[
60
+ CommonModule
61
+ ]] });
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisModule, decorators: [{
63
+ type: NgModule,
64
+ args: [{
65
+ declarations: [
66
+ SdsEllipsisDirective
67
+ ],
68
+ imports: [
69
+ CommonModule
70
+ ],
71
+ exports: [
72
+ SdsEllipsisDirective
73
+ ]
74
+ }]
75
+ }] });
76
+
77
+ /**
78
+ * Generated bundle index. Do not edit.
79
+ */
80
+
81
+ export { SdsEllipsisDirective, SdsEllipsisModule };
82
+ //# sourceMappingURL=spicainternational-ngx-sds-components-src-lib-ellipsis.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spicainternational-ngx-sds-components-src-lib-ellipsis.mjs","sources":["../../../projects/ngx-sds-components/src/lib/ellipsis/directives/ellipsis.directive.ts","../../../projects/ngx-sds-components/src/lib/ellipsis/ellipsis.module.ts","../../../projects/ngx-sds-components/src/lib/ellipsis/spicainternational-ngx-sds-components-src-lib-ellipsis.ts"],"sourcesContent":["import { AfterViewInit, Directive, ElementRef, HostListener, Input, Renderer2 } from '@angular/core';\r\n\r\n/*\r\n * Parent must have a fixed width for this directive to work properly.\r\n * Ellipsis will not appear without a parent width.\r\n *\r\n * tooltipText: @Input overrides the element's innerHtml with the provided\r\n * string variable in the title, used to prevent HTML tags from appearing\r\n * in the mouseover title. This will override text from an Input node.\r\n */\r\n@Directive({\r\n selector: '[sdsEllipsis]',\r\n})\r\nexport class SdsEllipsisDirective implements AfterViewInit {\r\n @Input() public tooltipText?: string;\r\n\r\n private element?: HTMLElement;\r\n\r\n public constructor(\r\n private elementRef: ElementRef,\r\n private renderer: Renderer2\r\n ) {}\r\n\r\n public ngAfterViewInit(): void {\r\n this.element = this.elementRef.nativeElement;\r\n this.renderer.setStyle(this.element, 'display', 'block');\r\n this.renderer.setStyle(this.element, 'overflow', 'hidden');\r\n this.renderer.setStyle(this.element, 'textOverflow', 'ellipsis');\r\n this.renderer.setStyle(this.element, 'whiteSpace', 'nowrap');\r\n }\r\n\r\n @HostListener('mouseenter') public enter(): void {\r\n if (this.element && this.element.offsetWidth < this.element.scrollWidth) {\r\n // this.renderer.setStyle(this.element, 'cursor', 'pointer');\r\n\r\n if (this.tooltipText !== undefined && this.tooltipText.length > 0) {\r\n this.element.title = this.tooltipText;\r\n return;\r\n } else if (this.element.nodeName === 'INPUT') {\r\n this.element.title = this.elementRef?.nativeElement?.value;\r\n return;\r\n }\r\n this.element.title = this.element.innerHTML;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SdsEllipsisDirective } from './directives/ellipsis.directive';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n SdsEllipsisDirective\r\n ],\r\n imports: [\r\n CommonModule\r\n ],\r\n exports: [\r\n SdsEllipsisDirective\r\n ] \r\n})\r\nexport class SdsEllipsisModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;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AAoB,CAGpB,EAAA,OAAA,EAAA,CAAA,YAAY,aAGZ,oBAAoB,CAAA,EAAA,CAAA,CAAA;AAGX,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAPnB,OAAA,EAAA,CAAA;YACP,YAAY;SACb,CAAA,EAAA,CAAA,CAAA;2FAKU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAX7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;AACrB,qBAAA;iBACF,CAAA;;;AChBD;;AAEG;;;;"}
@@ -3,6 +3,7 @@ export * from '@spicainternational/ngx-sds-components/src/lib/avatar';
3
3
  export * from '@spicainternational/ngx-sds-components/src/lib/badge';
4
4
  export * from '@spicainternational/ngx-sds-components/src/lib/callout';
5
5
  export * from '@spicainternational/ngx-sds-components/src/lib/color-picker';
6
+ export * from '@spicainternational/ngx-sds-components/src/lib/ellipsis';
6
7
  export * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';
7
8
  export * from '@spicainternational/ngx-sds-components/src/lib/date-picker';
8
9
  export * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';
@@ -1 +1 @@
1
- {"version":3,"file":"spicainternational-ngx-sds-components.mjs","sources":["../../../projects/ngx-sds-components/src/public-api.ts","../../../projects/ngx-sds-components/src/spicainternational-ngx-sds-components.ts"],"sourcesContent":["/*\r\n * Public API Surface of ngx-sds-components\r\n */\r\n\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/app-switcher';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/avatar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/badge';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/callout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/color-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-pipe';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-box';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/highlight-text';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/layout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/message';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/modal';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/navigation';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/page-header';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/pane';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/quick-info';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/side-bar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/tooltip';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG;;ACFH;;AAEG"}
1
+ {"version":3,"file":"spicainternational-ngx-sds-components.mjs","sources":["../../../projects/ngx-sds-components/src/public-api.ts","../../../projects/ngx-sds-components/src/spicainternational-ngx-sds-components.ts"],"sourcesContent":["/*\r\n * Public API Surface of ngx-sds-components\r\n */\r\n\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/app-switcher';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/avatar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/badge';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/callout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/color-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/ellipsis';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-pipe';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-box';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/highlight-text';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/layout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/message';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/modal';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/navigation';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/page-header';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/pane';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/quick-info';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/side-bar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/tooltip';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG;;ACFH;;AAEG"}
@@ -0,0 +1,81 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive, Input, HostListener, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+
5
+ /*
6
+ * Parent must have a fixed width for this directive to work properly.
7
+ * Ellipsis will not appear without a parent width.
8
+ *
9
+ * tooltipText: @Input overrides the element's innerHtml with the provided
10
+ * string variable in the title, used to prevent HTML tags from appearing
11
+ * in the mouseover title. This will override text from an Input node.
12
+ */
13
+ class SdsEllipsisDirective {
14
+ constructor(elementRef, renderer) {
15
+ this.elementRef = elementRef;
16
+ this.renderer = renderer;
17
+ }
18
+ ngAfterViewInit() {
19
+ this.element = this.elementRef.nativeElement;
20
+ this.renderer.setStyle(this.element, 'display', 'block');
21
+ this.renderer.setStyle(this.element, 'overflow', 'hidden');
22
+ this.renderer.setStyle(this.element, 'textOverflow', 'ellipsis');
23
+ this.renderer.setStyle(this.element, 'whiteSpace', 'nowrap');
24
+ }
25
+ enter() {
26
+ if (this.element && this.element.offsetWidth < this.element.scrollWidth) {
27
+ // this.renderer.setStyle(this.element, 'cursor', 'pointer');
28
+ if (this.tooltipText !== undefined && this.tooltipText.length > 0) {
29
+ this.element.title = this.tooltipText;
30
+ return;
31
+ }
32
+ else if (this.element.nodeName === 'INPUT') {
33
+ this.element.title = this.elementRef?.nativeElement?.value;
34
+ return;
35
+ }
36
+ this.element.title = this.element.innerHTML;
37
+ }
38
+ }
39
+ }
40
+ SdsEllipsisDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
41
+ SdsEllipsisDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.1", type: SdsEllipsisDirective, selector: "[sdsEllipsis]", inputs: { tooltipText: "tooltipText" }, host: { listeners: { "mouseenter": "enter()" } }, ngImport: i0 });
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisDirective, decorators: [{
43
+ type: Directive,
44
+ args: [{
45
+ selector: '[sdsEllipsis]',
46
+ }]
47
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { tooltipText: [{
48
+ type: Input
49
+ }], enter: [{
50
+ type: HostListener,
51
+ args: ['mouseenter']
52
+ }] } });
53
+
54
+ class SdsEllipsisModule {
55
+ }
56
+ SdsEllipsisModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
57
+ SdsEllipsisModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisModule, declarations: [SdsEllipsisDirective], imports: [CommonModule], exports: [SdsEllipsisDirective] });
58
+ SdsEllipsisModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisModule, imports: [[
59
+ CommonModule
60
+ ]] });
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: SdsEllipsisModule, decorators: [{
62
+ type: NgModule,
63
+ args: [{
64
+ declarations: [
65
+ SdsEllipsisDirective
66
+ ],
67
+ imports: [
68
+ CommonModule
69
+ ],
70
+ exports: [
71
+ SdsEllipsisDirective
72
+ ]
73
+ }]
74
+ }] });
75
+
76
+ /**
77
+ * Generated bundle index. Do not edit.
78
+ */
79
+
80
+ export { SdsEllipsisDirective, SdsEllipsisModule };
81
+ //# sourceMappingURL=spicainternational-ngx-sds-components-src-lib-ellipsis.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spicainternational-ngx-sds-components-src-lib-ellipsis.mjs","sources":["../../../projects/ngx-sds-components/src/lib/ellipsis/directives/ellipsis.directive.ts","../../../projects/ngx-sds-components/src/lib/ellipsis/ellipsis.module.ts","../../../projects/ngx-sds-components/src/lib/ellipsis/spicainternational-ngx-sds-components-src-lib-ellipsis.ts"],"sourcesContent":["import { AfterViewInit, Directive, ElementRef, HostListener, Input, Renderer2 } from '@angular/core';\r\n\r\n/*\r\n * Parent must have a fixed width for this directive to work properly.\r\n * Ellipsis will not appear without a parent width.\r\n *\r\n * tooltipText: @Input overrides the element's innerHtml with the provided\r\n * string variable in the title, used to prevent HTML tags from appearing\r\n * in the mouseover title. This will override text from an Input node.\r\n */\r\n@Directive({\r\n selector: '[sdsEllipsis]',\r\n})\r\nexport class SdsEllipsisDirective implements AfterViewInit {\r\n @Input() public tooltipText?: string;\r\n\r\n private element?: HTMLElement;\r\n\r\n public constructor(\r\n private elementRef: ElementRef,\r\n private renderer: Renderer2\r\n ) {}\r\n\r\n public ngAfterViewInit(): void {\r\n this.element = this.elementRef.nativeElement;\r\n this.renderer.setStyle(this.element, 'display', 'block');\r\n this.renderer.setStyle(this.element, 'overflow', 'hidden');\r\n this.renderer.setStyle(this.element, 'textOverflow', 'ellipsis');\r\n this.renderer.setStyle(this.element, 'whiteSpace', 'nowrap');\r\n }\r\n\r\n @HostListener('mouseenter') public enter(): void {\r\n if (this.element && this.element.offsetWidth < this.element.scrollWidth) {\r\n // this.renderer.setStyle(this.element, 'cursor', 'pointer');\r\n\r\n if (this.tooltipText !== undefined && this.tooltipText.length > 0) {\r\n this.element.title = this.tooltipText;\r\n return;\r\n } else if (this.element.nodeName === 'INPUT') {\r\n this.element.title = this.elementRef?.nativeElement?.value;\r\n return;\r\n }\r\n this.element.title = this.element.innerHTML;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SdsEllipsisDirective } from './directives/ellipsis.directive';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n SdsEllipsisDirective\r\n ],\r\n imports: [\r\n CommonModule\r\n ],\r\n exports: [\r\n SdsEllipsisDirective\r\n ] \r\n})\r\nexport class SdsEllipsisModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAEA;;;;;;;AAOG;MAIU,oBAAoB,CAAA;IAK7B,WACY,CAAA,UAAsB,EACtB,QAAmB,EAAA;QADnB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAY;QACtB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAW;KAC3B;IAEG,eAAe,GAAA;QAClB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa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A;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;AACrB,qBAAA;AACF,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
@@ -3,6 +3,7 @@ export * from '@spicainternational/ngx-sds-components/src/lib/avatar';
3
3
  export * from '@spicainternational/ngx-sds-components/src/lib/badge';
4
4
  export * from '@spicainternational/ngx-sds-components/src/lib/callout';
5
5
  export * from '@spicainternational/ngx-sds-components/src/lib/color-picker';
6
+ export * from '@spicainternational/ngx-sds-components/src/lib/ellipsis';
6
7
  export * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';
7
8
  export * from '@spicainternational/ngx-sds-components/src/lib/date-picker';
8
9
  export * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';
@@ -1 +1 @@
1
- {"version":3,"file":"spicainternational-ngx-sds-components.mjs","sources":["../../../projects/ngx-sds-components/src/public-api.ts","../../../projects/ngx-sds-components/src/spicainternational-ngx-sds-components.ts"],"sourcesContent":["/*\r\n * Public API Surface of ngx-sds-components\r\n */\r\n\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/app-switcher';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/avatar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/badge';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/callout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/color-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-pipe';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-box';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/highlight-text';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/layout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/message';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/modal';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/navigation';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/page-header';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/pane';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/quick-info';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/side-bar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/tooltip';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG;;ACFH;;AAEG"}
1
+ {"version":3,"file":"spicainternational-ngx-sds-components.mjs","sources":["../../../projects/ngx-sds-components/src/public-api.ts","../../../projects/ngx-sds-components/src/spicainternational-ngx-sds-components.ts"],"sourcesContent":["/*\r\n * Public API Surface of ngx-sds-components\r\n */\r\n\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/app-switcher';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/avatar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/badge';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/callout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/color-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/ellipsis';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-picker';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-pipe';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/duration-box';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/highlight-text';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/layout';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/message';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/modal';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/navigation';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/page-header';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/pane';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/quick-info';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/side-bar';\r\nexport * from '@spicainternational/ngx-sds-components/src/lib/tooltip';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG;;ACFH;;AAEG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spicainternational/ngx-sds-components",
3
- "version": "2.35.1",
3
+ "version": "2.36.0",
4
4
  "description": "Spica design system angular components.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=13.3.0",
@@ -110,6 +110,14 @@
110
110
  "node": "./fesm2015/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs",
111
111
  "default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-duration-pipe.mjs"
112
112
  },
113
+ "./src/lib/ellipsis": {
114
+ "types": "./src/lib/ellipsis/spicainternational-ngx-sds-components-src-lib-ellipsis.d.ts",
115
+ "esm2020": "./esm2020/src/lib/ellipsis/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
116
+ "es2020": "./fesm2020/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
117
+ "es2015": "./fesm2015/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
118
+ "node": "./fesm2015/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
119
+ "default": "./fesm2020/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs"
120
+ },
113
121
  "./src/lib/expansion-panel": {
114
122
  "types": "./src/lib/expansion-panel/spicainternational-ngx-sds-components-src-lib-expansion-panel.d.ts",
115
123
  "esm2020": "./esm2020/src/lib/expansion-panel/spicainternational-ngx-sds-components-src-lib-expansion-panel.mjs",
package/public-api.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from '@spicainternational/ngx-sds-components/src/lib/avatar';
3
3
  export * from '@spicainternational/ngx-sds-components/src/lib/badge';
4
4
  export * from '@spicainternational/ngx-sds-components/src/lib/callout';
5
5
  export * from '@spicainternational/ngx-sds-components/src/lib/color-picker';
6
+ export * from '@spicainternational/ngx-sds-components/src/lib/ellipsis';
6
7
  export * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';
7
8
  export * from '@spicainternational/ngx-sds-components/src/lib/date-picker';
8
9
  export * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';
@@ -0,0 +1,13 @@
1
+ import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SdsEllipsisDirective implements AfterViewInit {
4
+ private elementRef;
5
+ private renderer;
6
+ tooltipText?: string;
7
+ private element?;
8
+ constructor(elementRef: ElementRef, renderer: Renderer2);
9
+ ngAfterViewInit(): void;
10
+ enter(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SdsEllipsisDirective, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SdsEllipsisDirective, "[sdsEllipsis]", never, { "tooltipText": "tooltipText"; }, {}, never>;
13
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./directives/ellipsis.directive";
3
+ import * as i2 from "@angular/common";
4
+ export declare class SdsEllipsisModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<SdsEllipsisModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SdsEllipsisModule, [typeof i1.SdsEllipsisDirective], [typeof i2.CommonModule], [typeof i1.SdsEllipsisDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<SdsEllipsisModule>;
8
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "module": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
3
+ "es2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
4
+ "esm2020": "../../../esm2020/src/lib/ellipsis/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
5
+ "fesm2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
6
+ "fesm2015": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
7
+ "typings": "spicainternational-ngx-sds-components-src-lib-ellipsis.d.ts",
8
+ "sideEffects": false,
9
+ "name": "@spicainternational/ngx-sds-components/src/lib/ellipsis"
10
+ }
@@ -0,0 +1,2 @@
1
+ export * from './ellipsis.module';
2
+ export * from './directives/ellipsis.directive';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@spicainternational/ngx-sds-components/src/lib/ellipsis" />
5
+ export * from './public-api';