@ruc-lib/widget 2.0.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.
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./ruclib-widget/ruclib-widget.component";
3
+ import * as i2 from "../pipes/safe-html.pipe";
4
+ import * as i3 from "./ruclib-widget-item/ruclib-widget-item.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/material/icon";
7
+ import * as i6 from "@angular/material/button";
8
+ import * as i7 from "@angular/cdk/drag-drop";
9
+ export declare class RuclibWidgetModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuclibWidgetModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RuclibWidgetModule, [typeof i1.RuclibWidgetComponent, typeof i2.SafeHtmlPipe, typeof i3.RuclibWidgetItemComponent], [typeof i4.CommonModule, typeof i5.MatIconModule, typeof i6.MatButtonModule, typeof i7.DragDropModule], [typeof i1.RuclibWidgetComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<RuclibWidgetModule>;
13
+ }
@@ -0,0 +1,2 @@
1
+ import { WidgetConfig } from "../interface/widget";
2
+ export declare const defaultValues: WidgetConfig;
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@ruc-lib/widget",
3
+ "version": "2.0.0",
4
+ "license": "MIT",
5
+ "peerDependencies": {
6
+ "@angular/common": "^15.0.0 || ^16.0.0 || ^17.0.0",
7
+ "@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0",
8
+ "@angular/cdk": "^15.0.0 || ^16.0.0",
9
+ "@angular/material": "^15.0.0 || ^16.0.0"
10
+ },
11
+ "dependencies": {
12
+ "tslib": "^2.3.0"
13
+ },
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "sideEffects": false,
18
+ "module": "fesm2015/ruc-lib-widget.mjs",
19
+ "es2020": "fesm2020/ruc-lib-widget.mjs",
20
+ "esm2020": "esm2020/ruc-lib-widget.mjs",
21
+ "fesm2020": "fesm2020/ruc-lib-widget.mjs",
22
+ "fesm2015": "fesm2015/ruc-lib-widget.mjs",
23
+ "typings": "index.d.ts",
24
+ "exports": {
25
+ "./package.json": {
26
+ "default": "./package.json"
27
+ },
28
+ ".": {
29
+ "types": "./index.d.ts",
30
+ "esm2020": "./esm2020/ruc-lib-widget.mjs",
31
+ "es2020": "./fesm2020/ruc-lib-widget.mjs",
32
+ "es2015": "./fesm2015/ruc-lib-widget.mjs",
33
+ "node": "./fesm2015/ruc-lib-widget.mjs",
34
+ "default": "./fesm2020/ruc-lib-widget.mjs"
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,24 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DomSanitizer } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * @Pipe SafeHtmlPipe
6
+ * @name safeHtml
7
+ * @description A pipe that bypasses Angular's built-in security and sanitizes HTML content,
8
+ * allowing it to be safely rendered in the DOM. Use with caution and only with trusted HTML sources.
9
+ */
10
+ export declare class SafeHtmlPipe implements PipeTransform {
11
+ private sanitizer;
12
+ /**
13
+ * @param sanitizer - An instance of DomSanitizer used to bypass security.
14
+ */
15
+ constructor(sanitizer: DomSanitizer);
16
+ /**
17
+ * Transforms a string containing HTML into a SafeHtml object that can be bound to [innerHTML].
18
+ * @param value - The HTML string to sanitize.
19
+ * @returns A SafeHtml object, which Angular trusts as safe HTML.
20
+ */
21
+ transform(value: any): any;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
23
+ static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml", false>;
24
+ }