@dso-design-system/ui 0.1.0 → 0.1.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/badge/badge.directive.mjs +68 -0
- package/esm2022/public-api.mjs +4 -2
- package/fesm2022/dso-design-system-ui.mjs +68 -71
- package/fesm2022/dso-design-system-ui.mjs.map +1 -1
- package/lib/assets/icons/sprite.svg +48 -48
- package/lib/badge/badge.directive.d.ts +15 -0
- package/lib/styles/_styles.scss +124 -0
- package/lib/styles/_variables.scss +571 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -1
- package/esm2022/lib/directives/truncate.directive.mjs +0 -71
- package/lib/directives/truncate.directive.d.ts +0 -23
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ElementRef, AfterViewInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DsoTruncateDirective implements AfterViewInit {
|
|
4
|
-
private el;
|
|
5
|
-
/**
|
|
6
|
-
* Enable or disable truncation.
|
|
7
|
-
* Can be used as `<div dsoTruncate>` (enabled by default) or `[dsoTruncate]="false"`.
|
|
8
|
-
*/
|
|
9
|
-
enableTruncate: boolean | '';
|
|
10
|
-
/** Optional: override tooltip text when text is truncated */
|
|
11
|
-
truncateTooltipText?: string;
|
|
12
|
-
constructor(el: ElementRef<HTMLElement>);
|
|
13
|
-
/** Initialize truncation after the view is loaded */
|
|
14
|
-
ngAfterViewInit(): void;
|
|
15
|
-
/** Re-check overflow and update tooltip on window resize */
|
|
16
|
-
onResize(): void;
|
|
17
|
-
/** Apply CSS styles necessary for truncation */
|
|
18
|
-
private applyTruncationStyles;
|
|
19
|
-
/** Update tooltip based on overflow state */
|
|
20
|
-
private updateTooltip;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DsoTruncateDirective, never>;
|
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DsoTruncateDirective, "[dsoTruncate]", never, { "enableTruncate": { "alias": "dsoTruncate"; "required": false; }; "truncateTooltipText": { "alias": "truncateTooltipText"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
-
}
|