@progress/kendo-angular-common 19.3.0-develop.19 → 19.3.0-develop.20
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/watermark/index.mjs +1 -1
- package/esm2022/watermark/validation.mjs +10 -0
- package/esm2022/watermark/watermark.component.mjs +9 -4
- package/fesm2022/progress-kendo-angular-common.mjs +19 -4
- package/package.json +2 -2
- package/watermark/index.d.ts +1 -1
- package/watermark/validation.d.ts +7 -0
- package/watermark/watermark.component.d.ts +2 -1
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
export { WatermarkOverlayComponent } from './watermark.component';
|
|
6
|
-
export { shouldShowValidationUI } from './validation';
|
|
6
|
+
export { shouldShowValidationUI, getLicenseMessage } from './validation';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { getLicenseStatus } from "@progress/kendo-licensing";
|
|
5
6
|
const allowed = ['telerik.com', 'progress.com', 'stackblitz.io', 'csb.app'];
|
|
6
7
|
/**
|
|
7
8
|
* @hidden
|
|
@@ -10,3 +11,12 @@ export function shouldShowValidationUI(isPackageValid) {
|
|
|
10
11
|
const skip = allowed.some((hostname) => globalThis.document?.location.hostname.endsWith(hostname));
|
|
11
12
|
return !skip && !isPackageValid;
|
|
12
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*
|
|
17
|
+
* Returns the notification message to display, if any.
|
|
18
|
+
*/
|
|
19
|
+
export function getLicenseMessage(meta) {
|
|
20
|
+
const message = getLicenseStatus(meta).message;
|
|
21
|
+
return message?.notificationMessage;
|
|
22
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, ElementRef, HostBinding, ViewChild } from '@angular/core';
|
|
5
|
+
import { Component, ElementRef, HostBinding, Input, ViewChild } from '@angular/core';
|
|
6
6
|
import { watermarkStyles, bannerStyles, licenseKeyUrl, buttonStyles } from './utils';
|
|
7
7
|
import { isDocumentAvailable } from '../utils';
|
|
8
8
|
import { NgIf, NgStyle } from '@angular/common';
|
|
@@ -13,6 +13,7 @@ let bannerPresentOnPage = false;
|
|
|
13
13
|
*/
|
|
14
14
|
export class WatermarkOverlayComponent {
|
|
15
15
|
watermarkStyle = watermarkStyles;
|
|
16
|
+
licenseMessage;
|
|
16
17
|
banner;
|
|
17
18
|
isOpen = true;
|
|
18
19
|
bannerMounted = false;
|
|
@@ -42,7 +43,7 @@ export class WatermarkOverlayComponent {
|
|
|
42
43
|
return isDocumentAvailable() && this.banner && this.banner.nativeElement;
|
|
43
44
|
}
|
|
44
45
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WatermarkOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
45
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: WatermarkOverlayComponent, isStandalone: true, selector: "div[kendoWatermarkOverlay]", host: { properties: { "style": "this.watermarkStyle" } }, viewQueries: [{ propertyName: "banner", first: true, predicate: ["banner"], descendants: true }], ngImport: i0, template: `
|
|
46
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: WatermarkOverlayComponent, isStandalone: true, selector: "div[kendoWatermarkOverlay]", inputs: { licenseMessage: "licenseMessage" }, host: { properties: { "style": "this.watermarkStyle" } }, viewQueries: [{ propertyName: "banner", first: true, predicate: ["banner"], descendants: true }], ngImport: i0, template: `
|
|
46
47
|
<div #banner *ngIf="isOpen && bannerMounted" [ngStyle]="bannerStyles">
|
|
47
48
|
<span [ngStyle]="{ display: 'flex', alignSelf: 'center', marginRight: '8px' }">
|
|
48
49
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
@@ -50,7 +51,8 @@ export class WatermarkOverlayComponent {
|
|
|
50
51
|
</svg>
|
|
51
52
|
</span>
|
|
52
53
|
|
|
53
|
-
<span>
|
|
54
|
+
<span *ngIf="licenseMessage" [innerHtml]="licenseMessage"></span>
|
|
55
|
+
<span *ngIf="!licenseMessage">
|
|
54
56
|
We couldn't verify your <a [href]="licenseKeyUrl">license key</a> for Kendo UI for Angular. Please see the browser
|
|
55
57
|
console for details and resolution steps.
|
|
56
58
|
</span>
|
|
@@ -77,7 +79,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
77
79
|
</svg>
|
|
78
80
|
</span>
|
|
79
81
|
|
|
80
|
-
<span>
|
|
82
|
+
<span *ngIf="licenseMessage" [innerHtml]="licenseMessage"></span>
|
|
83
|
+
<span *ngIf="!licenseMessage">
|
|
81
84
|
We couldn't verify your <a [href]="licenseKeyUrl">license key</a> for Kendo UI for Angular. Please see the browser
|
|
82
85
|
console for details and resolution steps.
|
|
83
86
|
</span>
|
|
@@ -97,6 +100,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
97
100
|
}], propDecorators: { watermarkStyle: [{
|
|
98
101
|
type: HostBinding,
|
|
99
102
|
args: ['style']
|
|
103
|
+
}], licenseMessage: [{
|
|
104
|
+
type: Input
|
|
100
105
|
}], banner: [{
|
|
101
106
|
type: ViewChild,
|
|
102
107
|
args: ['banner']
|
|
@@ -9,6 +9,7 @@ import { take, auditTime } from 'rxjs/operators';
|
|
|
9
9
|
import { Draggable } from '@progress/kendo-draggable';
|
|
10
10
|
import { merge, fromEvent, from, Subscription } from 'rxjs';
|
|
11
11
|
import { NgIf, NgStyle } from '@angular/common';
|
|
12
|
+
import { getLicenseStatus } from '@progress/kendo-licensing';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* @hidden
|
|
@@ -932,6 +933,7 @@ let bannerPresentOnPage = false;
|
|
|
932
933
|
*/
|
|
933
934
|
class WatermarkOverlayComponent {
|
|
934
935
|
watermarkStyle = watermarkStyles;
|
|
936
|
+
licenseMessage;
|
|
935
937
|
banner;
|
|
936
938
|
isOpen = true;
|
|
937
939
|
bannerMounted = false;
|
|
@@ -961,7 +963,7 @@ class WatermarkOverlayComponent {
|
|
|
961
963
|
return isDocumentAvailable() && this.banner && this.banner.nativeElement;
|
|
962
964
|
}
|
|
963
965
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WatermarkOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
964
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: WatermarkOverlayComponent, isStandalone: true, selector: "div[kendoWatermarkOverlay]", host: { properties: { "style": "this.watermarkStyle" } }, viewQueries: [{ propertyName: "banner", first: true, predicate: ["banner"], descendants: true }], ngImport: i0, template: `
|
|
966
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: WatermarkOverlayComponent, isStandalone: true, selector: "div[kendoWatermarkOverlay]", inputs: { licenseMessage: "licenseMessage" }, host: { properties: { "style": "this.watermarkStyle" } }, viewQueries: [{ propertyName: "banner", first: true, predicate: ["banner"], descendants: true }], ngImport: i0, template: `
|
|
965
967
|
<div #banner *ngIf="isOpen && bannerMounted" [ngStyle]="bannerStyles">
|
|
966
968
|
<span [ngStyle]="{ display: 'flex', alignSelf: 'center', marginRight: '8px' }">
|
|
967
969
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
@@ -969,7 +971,8 @@ class WatermarkOverlayComponent {
|
|
|
969
971
|
</svg>
|
|
970
972
|
</span>
|
|
971
973
|
|
|
972
|
-
<span>
|
|
974
|
+
<span *ngIf="licenseMessage" [innerHtml]="licenseMessage"></span>
|
|
975
|
+
<span *ngIf="!licenseMessage">
|
|
973
976
|
We couldn't verify your <a [href]="licenseKeyUrl">license key</a> for Kendo UI for Angular. Please see the browser
|
|
974
977
|
console for details and resolution steps.
|
|
975
978
|
</span>
|
|
@@ -996,7 +999,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
996
999
|
</svg>
|
|
997
1000
|
</span>
|
|
998
1001
|
|
|
999
|
-
<span>
|
|
1002
|
+
<span *ngIf="licenseMessage" [innerHtml]="licenseMessage"></span>
|
|
1003
|
+
<span *ngIf="!licenseMessage">
|
|
1000
1004
|
We couldn't verify your <a [href]="licenseKeyUrl">license key</a> for Kendo UI for Angular. Please see the browser
|
|
1001
1005
|
console for details and resolution steps.
|
|
1002
1006
|
</span>
|
|
@@ -1016,6 +1020,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1016
1020
|
}], propDecorators: { watermarkStyle: [{
|
|
1017
1021
|
type: HostBinding,
|
|
1018
1022
|
args: ['style']
|
|
1023
|
+
}], licenseMessage: [{
|
|
1024
|
+
type: Input
|
|
1019
1025
|
}], banner: [{
|
|
1020
1026
|
type: ViewChild,
|
|
1021
1027
|
args: ['banner']
|
|
@@ -1029,6 +1035,15 @@ function shouldShowValidationUI(isPackageValid) {
|
|
|
1029
1035
|
const skip = allowed.some((hostname) => globalThis.document?.location.hostname.endsWith(hostname));
|
|
1030
1036
|
return !skip && !isPackageValid;
|
|
1031
1037
|
}
|
|
1038
|
+
/**
|
|
1039
|
+
* @hidden
|
|
1040
|
+
*
|
|
1041
|
+
* Returns the notification message to display, if any.
|
|
1042
|
+
*/
|
|
1043
|
+
function getLicenseMessage(meta) {
|
|
1044
|
+
const message = getLicenseStatus(meta).message;
|
|
1045
|
+
return message?.notificationMessage;
|
|
1046
|
+
}
|
|
1032
1047
|
|
|
1033
1048
|
/**
|
|
1034
1049
|
* Specifies the adornments in the prefix container of the [Inputs](slug:adornments_textbox#toc-prefix-adornments) and [DropDowns](slug:adornments_multiselect#toc-prefix-adornments).
|
|
@@ -1575,5 +1590,5 @@ const replaceMessagePlaceholder = (message, name, value) => (message ?? '').repl
|
|
|
1575
1590
|
* Generated bundle index. Do not edit.
|
|
1576
1591
|
*/
|
|
1577
1592
|
|
|
1578
|
-
export { DraggableDirective, EventsOutsideAngularDirective, KENDO_ADORNMENTS, KENDO_COMMON, KENDO_DRAGGABLE, KENDO_EVENTS, KENDO_RESIZESENSOR, KENDO_TEMPLATE_CONTEXT, KENDO_TOGGLEBUTTONTABSTOP, KENDO_WATERMARK, KendoInput, Keys, MultiTabStop, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, TemplateContextDirective, ToggleButtonTabStopDirective, WatermarkOverlayComponent, anyChanged, applyAttributes, areObjectsEqual, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isControlRequired, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isObjectPresent, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseAttributes, parseCSSClassNames, processCssValue, removeHTMLAttributes, replaceMessagePlaceholder, rtlScrollPosition, scrollbarWidth, setHTMLAttributes, shouldShowValidationUI, splitStringToArray };
|
|
1593
|
+
export { DraggableDirective, EventsOutsideAngularDirective, KENDO_ADORNMENTS, KENDO_COMMON, KENDO_DRAGGABLE, KENDO_EVENTS, KENDO_RESIZESENSOR, KENDO_TEMPLATE_CONTEXT, KENDO_TOGGLEBUTTONTABSTOP, KENDO_WATERMARK, KendoInput, Keys, MultiTabStop, PrefixTemplateDirective, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ScrollbarWidthService, SeparatorComponent, SuffixTemplateDirective, TemplateContextDirective, ToggleButtonTabStopDirective, WatermarkOverlayComponent, anyChanged, applyAttributes, areObjectsEqual, closest, closestBySelector, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, getLicenseMessage, guid, hasClasses, hasObservers, isChanged, isControlRequired, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isObjectPresent, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseAttributes, parseCSSClassNames, processCssValue, removeHTMLAttributes, replaceMessagePlaceholder, rtlScrollPosition, scrollbarWidth, setHTMLAttributes, shouldShowValidationUI, splitStringToArray };
|
|
1579
1594
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-common",
|
|
3
|
-
"version": "19.3.0-develop.
|
|
3
|
+
"version": "19.3.0-develop.20",
|
|
4
4
|
"description": "Kendo UI for Angular - Utility Package",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@progress/kendo-common": "^1.0.1",
|
|
24
24
|
"@progress/kendo-draggable": "^3.0.2",
|
|
25
25
|
"tslib": "^2.3.1",
|
|
26
|
-
"@progress/kendo-angular-schematics": "19.3.0-develop.
|
|
26
|
+
"@progress/kendo-angular-schematics": "19.3.0-develop.20"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
package/watermark/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
export { WatermarkOverlayComponent } from './watermark.component';
|
|
6
|
-
export { shouldShowValidationUI } from './validation';
|
|
6
|
+
export { shouldShowValidationUI, getLicenseMessage } from './validation';
|
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { PackageMetadata } from "@progress/kendo-licensing";
|
|
5
6
|
/**
|
|
6
7
|
* @hidden
|
|
7
8
|
*/
|
|
8
9
|
export declare function shouldShowValidationUI(isPackageValid: boolean): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*
|
|
13
|
+
* Returns the notification message to display, if any.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getLicenseMessage(meta: PackageMetadata): string | undefined;
|
|
@@ -9,6 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class WatermarkOverlayComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
11
11
|
watermarkStyle: string;
|
|
12
|
+
licenseMessage?: string;
|
|
12
13
|
banner: ElementRef;
|
|
13
14
|
isOpen: boolean;
|
|
14
15
|
bannerMounted: boolean;
|
|
@@ -47,5 +48,5 @@ export declare class WatermarkOverlayComponent implements OnInit, AfterViewInit,
|
|
|
47
48
|
closeBanner(): void;
|
|
48
49
|
get isBannerRendered(): boolean;
|
|
49
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<WatermarkOverlayComponent, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WatermarkOverlayComponent, "div[kendoWatermarkOverlay]", never, {}, {}, never, never, true, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WatermarkOverlayComponent, "div[kendoWatermarkOverlay]", never, { "licenseMessage": { "alias": "licenseMessage"; "required": false; }; }, {}, never, never, true, never>;
|
|
51
52
|
}
|