@ng-nest/ui 19.0.5 → 19.0.6
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/core/components/inner-html.component.d.ts +9 -0
- package/core/components/public-api.d.ts +1 -0
- package/core/public-api.d.ts +1 -0
- package/fesm2022/ng-nest-ui-core.mjs +23 -2
- package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table.mjs +5 -4
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/package.json +49 -49
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class XInnerHTMLComponent {
|
|
3
|
+
html: import("@angular/core").InputSignal<string>;
|
|
4
|
+
style: import("@angular/core").InputSignal<unknown>;
|
|
5
|
+
innerHtml: import("@angular/core").Signal<import("@angular/platform-browser").SafeHtml>;
|
|
6
|
+
private domSanitizer;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XInnerHTMLComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XInnerHTMLComponent, "[x-inner-html], x-inner-html", never, { "html": { "alias": "html"; "required": true; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './inner-html.component';
|
package/core/public-api.d.ts
CHANGED
|
@@ -3,10 +3,11 @@ import { isObservable, Observable, BehaviorSubject, Subject, of, throwError } fr
|
|
|
3
3
|
import { coerceCssPixelValue } from '@angular/cdk/coercion';
|
|
4
4
|
import { map, takeUntil, filter } from 'rxjs/operators';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { booleanAttribute, numberAttribute, InjectionToken, inject, Injectable } from '@angular/core';
|
|
6
|
+
import { booleanAttribute, numberAttribute, InjectionToken, inject, Injectable, input, computed, Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';
|
|
7
7
|
import { DOCUMENT } from '@angular/common';
|
|
8
8
|
import * as i1 from '@angular/common/http';
|
|
9
9
|
import * as i1$1 from '@angular/cdk/platform';
|
|
10
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* @zh_CN 填充默认值
|
|
@@ -2019,9 +2020,29 @@ class XRepositoryService extends XRepositoryAbstract {
|
|
|
2019
2020
|
}
|
|
2020
2021
|
}
|
|
2021
2022
|
|
|
2023
|
+
class XInnerHTMLComponent {
|
|
2024
|
+
constructor() {
|
|
2025
|
+
this.html = input.required();
|
|
2026
|
+
this.style = input();
|
|
2027
|
+
this.innerHtml = computed(() => this.domSanitizer.bypassSecurityTrustHtml(this.html()));
|
|
2028
|
+
this.domSanitizer = inject(DomSanitizer);
|
|
2029
|
+
}
|
|
2030
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: XInnerHTMLComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2031
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.1", type: XInnerHTMLComponent, isStandalone: true, selector: "[x-inner-html], x-inner-html", inputs: { html: { classPropertyName: "html", publicName: "html", isSignal: true, isRequired: true, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: '<div class="x-inner-html" [innerHTML]="innerHtml()" [style]="style()"></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
2032
|
+
}
|
|
2033
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: XInnerHTMLComponent, decorators: [{
|
|
2034
|
+
type: Component,
|
|
2035
|
+
args: [{
|
|
2036
|
+
selector: `[x-inner-html], x-inner-html`,
|
|
2037
|
+
template: '<div class="x-inner-html" [innerHTML]="innerHtml()" [style]="style()"></div>',
|
|
2038
|
+
encapsulation: ViewEncapsulation.None,
|
|
2039
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2040
|
+
}]
|
|
2041
|
+
}] });
|
|
2042
|
+
|
|
2022
2043
|
/**
|
|
2023
2044
|
* Generated bundle index. Do not edit.
|
|
2024
2045
|
*/
|
|
2025
2046
|
|
|
2026
|
-
export { XAddDays, XAddHours, XAddMilliseconds, XAddMinutes, XAddMonths, XAddSeconds, XAddYears, XBadgeAnimation, XBadgeStandaloneAnimation, XBaseAnimation, XCamelToKebab, XChunk, XClamp, XClearClass, XClearClassSignal, XCloneDeep, XComputed, XComputedStyle, XConfigService, XConnectBaseAnimation, XDataConvert, XDateQuarter, XDateWeek, XDateWeekYear, XDateYearQuarter, XDateYearWeek, XDrop, XDropAnimation, XDuration, XFadeAnimation, XFillDefault, XGetChildren, XGroupBy, XGuid, XHasChildren, XHasIn, XHttpService, XIdentity, XInputBoolean, XInputCssPixelValue, XInputNumber, XInvertKeyValues, XIsArray, XIsBoolean, XIsChange, XIsDate, XIsEmpty, XIsFunction, XIsInputSignal, XIsNil, XIsNotNil, XIsNull, XIsNumber, XIsObject, XIsObjectArray, XIsObservable, XIsRegExp, XIsString, XIsTemplateRef, XIsType, XIsUndefined, XIsValue, XIsValueArray, XIsXTemplate, XKebabToCamel, XMixColors, XMoveAnimation, XMoveBoxAnimation, XOpacityAnimation, XOrderBy, XParentPath, XParents, XPreloadingStrategyService, XProperty, XPropertyFunction, XRemove, XRemoveNgTag, XRepositoryAbstract, XRepositoryService, XRequestAnimationFrame, XResize, XReuseStrategyService, XSetData, XSetFlex, XSleep, XSlideAnimation, XStorageService, XStripTags, XThemeService, XToBoolean, XToCssPixelValue, XToCssPx, XToDataArray, XToDataConvert, XToDate, XToHex, XToNumber, XToRgb, XToString, XWarnIconTypeNotFound, XWarnSVGTagNotFound, X_CONFIG, X_THEME, X_THEME_AMOUNTS, X_THEME_BACKGROUNDS, X_THEME_BLACK_MERGE, X_THEME_BORDERS, X_THEME_COLORS, X_THEME_COLOR_KEYS, X_THEME_DARK_COLORS, X_THEME_EXCHANGES, X_THEME_LIGHT_COLORS, X_THEME_MERGE, X_THEME_PREFIX, X_THEME_TEXTS, X_THEME_VARS, X_THEME_VARS_KEYS };
|
|
2047
|
+
export { XAddDays, XAddHours, XAddMilliseconds, XAddMinutes, XAddMonths, XAddSeconds, XAddYears, XBadgeAnimation, XBadgeStandaloneAnimation, XBaseAnimation, XCamelToKebab, XChunk, XClamp, XClearClass, XClearClassSignal, XCloneDeep, XComputed, XComputedStyle, XConfigService, XConnectBaseAnimation, XDataConvert, XDateQuarter, XDateWeek, XDateWeekYear, XDateYearQuarter, XDateYearWeek, XDrop, XDropAnimation, XDuration, XFadeAnimation, XFillDefault, XGetChildren, XGroupBy, XGuid, XHasChildren, XHasIn, XHttpService, XIdentity, XInnerHTMLComponent, XInputBoolean, XInputCssPixelValue, XInputNumber, XInvertKeyValues, XIsArray, XIsBoolean, XIsChange, XIsDate, XIsEmpty, XIsFunction, XIsInputSignal, XIsNil, XIsNotNil, XIsNull, XIsNumber, XIsObject, XIsObjectArray, XIsObservable, XIsRegExp, XIsString, XIsTemplateRef, XIsType, XIsUndefined, XIsValue, XIsValueArray, XIsXTemplate, XKebabToCamel, XMixColors, XMoveAnimation, XMoveBoxAnimation, XOpacityAnimation, XOrderBy, XParentPath, XParents, XPreloadingStrategyService, XProperty, XPropertyFunction, XRemove, XRemoveNgTag, XRepositoryAbstract, XRepositoryService, XRequestAnimationFrame, XResize, XReuseStrategyService, XSetData, XSetFlex, XSleep, XSlideAnimation, XStorageService, XStripTags, XThemeService, XToBoolean, XToCssPixelValue, XToCssPx, XToDataArray, XToDataConvert, XToDate, XToHex, XToNumber, XToRgb, XToString, XWarnIconTypeNotFound, XWarnSVGTagNotFound, X_CONFIG, X_THEME, X_THEME_AMOUNTS, X_THEME_BACKGROUNDS, X_THEME_BLACK_MERGE, X_THEME_BORDERS, X_THEME_COLORS, X_THEME_COLOR_KEYS, X_THEME_DARK_COLORS, X_THEME_EXCHANGES, X_THEME_LIGHT_COLORS, X_THEME_MERGE, X_THEME_PREFIX, X_THEME_TEXTS, X_THEME_VARS, X_THEME_VARS_KEYS };
|
|
2027
2048
|
//# sourceMappingURL=ng-nest-ui-core.mjs.map
|