UNPKG

@progress/kendo-angular-common

Version:

Kendo UI for Angular - Utility Package

23 lines (22 loc) 926 B
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { getLicenseStatus } from "@progress/kendo-licensing"; const allowed = ['telerik.com', 'progress.com', 'stackblitz.io', 'csb.app']; /** * @hidden */ export function shouldShowValidationUI(isPackageValid) { const skip = allowed.some((hostname) => globalThis.document?.location.hostname.endsWith(hostname)); return !skip && !isPackageValid; } /** * @hidden * * Returns the notification message to display, if any. */ export function getLicenseMessage(meta) { const message = getLicenseStatus(meta).message; return message?.notificationMessage; }