@@ -31,6 +31,7 @@ const attributeNames = {
3131 buyNow : 'buy-now' ,
3232 licensingDoc : 'licensing-doc' ,
3333 version : 'version' ,
34+ subscriptions : 'subscriptions' ,
3435} ;
3536const commonStyles = {
3637 opacity : '1' ,
@@ -185,13 +186,21 @@ class DxLicense extends SafeHTMLElement {
185186 private _createContentContainer ( ) : HTMLElement {
186187 const contentContainer = document . createElement ( 'div' ) ;
187188 contentContainer . style . cssText = this . _contentStyles ;
189+ const subscriptions = this . getAttribute ( attributeNames . subscriptions ) ;
188190 contentContainer . append (
189191 this . _createSpan ( 'For evaluation purposes only. Redistribution prohibited. Please ' ) ,
190192 this . _createLink ( 'register' , this . getAttribute ( attributeNames . licensingDoc ) as string ) ,
191193 this . _createSpan ( ' an existing license or ' ) ,
192194 this . _createLink ( 'purchase a new license' , this . getAttribute ( attributeNames . buyNow ) as string ) ,
193195 this . _createSpan ( ` to continue use of DevExpress product libraries (v${ this . getAttribute ( attributeNames . version ) } ).` ) ,
194196 ) ;
197+
198+ if ( subscriptions ) {
199+ contentContainer . append (
200+ this . _createSpan ( ` Included in Subscriptions: ${ subscriptions } .` ) ,
201+ ) ;
202+ }
203+
195204 return contentContainer ;
196205 }
197206
@@ -255,20 +264,12 @@ class DxLicenseTrigger extends SafeHTMLElement {
255264 if ( ! licensePanel . length && ! DxLicense . closed ) {
256265 const license = document . createElement ( componentNames . panel ) ;
257266
258- license . setAttribute (
259- attributeNames . version ,
260- this . getAttribute ( attributeNames . version ) as string ,
261- ) ;
262-
263- license . setAttribute (
264- attributeNames . buyNow ,
265- this . getAttribute ( attributeNames . buyNow ) as string ,
266- ) ;
267-
268- license . setAttribute (
269- attributeNames . licensingDoc ,
270- this . getAttribute ( attributeNames . licensingDoc ) as string ,
271- ) ;
267+ Object . values ( attributeNames ) . forEach ( ( attrName ) => {
268+ license . setAttribute (
269+ attrName ,
270+ this . getAttribute ( attrName ) as string ,
271+ ) ;
272+ } ) ;
272273
273274 license . setAttribute ( DATA_PERMANENT_ATTRIBUTE , '' ) ;
274275
@@ -295,6 +296,7 @@ export function renderTrialPanel(
295296 buyNowUrl : string ,
296297 licensingDocUrl : string ,
297298 version : string ,
299+ subscriptions = '' ,
298300 customStyles ?: CustomTrialPanelStyles ,
299301) : void {
300302 registerCustomComponents ( customStyles ) ;
@@ -304,6 +306,7 @@ export function renderTrialPanel(
304306 trialPanelTrigger . setAttribute ( attributeNames . buyNow , buyNowUrl ) ;
305307 trialPanelTrigger . setAttribute ( attributeNames . licensingDoc , licensingDocUrl ) ;
306308 trialPanelTrigger . setAttribute ( attributeNames . version , version ) ;
309+ trialPanelTrigger . setAttribute ( attributeNames . subscriptions , subscriptions ) ;
307310
308311 document . body . appendChild ( trialPanelTrigger ) ;
309312}
0 commit comments