@zcomponent/core 1.25.0 → 1.26.0-beta.1
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.
|
@@ -160,7 +160,12 @@ export declare class DefaultCookieConsent extends Component {
|
|
|
160
160
|
private _createEntry;
|
|
161
161
|
private _getConsentStatus;
|
|
162
162
|
private _setConsentStatus;
|
|
163
|
-
|
|
163
|
+
/**
|
|
164
|
+
* Shows the cookie consent dialog.
|
|
165
|
+
* @param isSettings - Determines if the settings screen should be shown
|
|
166
|
+
* @param force - Forces the dialog to be shown, regardless of the current consent status. Defaults to false.
|
|
167
|
+
*/
|
|
168
|
+
show(isSettings: boolean, force?: boolean): void;
|
|
164
169
|
hide(): void;
|
|
165
170
|
acceptAll(): void;
|
|
166
171
|
dispose(): never;
|
|
@@ -296,7 +296,17 @@ export class DefaultCookieConsent extends Component {
|
|
|
296
296
|
if (type === CookieType.marketing)
|
|
297
297
|
useCookieConsentMarketing(this.contextManager).value = status;
|
|
298
298
|
}
|
|
299
|
-
|
|
299
|
+
/**
|
|
300
|
+
* Shows the cookie consent dialog.
|
|
301
|
+
* @param isSettings - Determines if the settings screen should be shown
|
|
302
|
+
* @param force - Forces the dialog to be shown, regardless of the current consent status. Defaults to false.
|
|
303
|
+
*/
|
|
304
|
+
show(isSettings, force = false) {
|
|
305
|
+
if (force) {
|
|
306
|
+
this._loadDOM(isSettings);
|
|
307
|
+
document.body.appendChild(this._dom);
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
300
310
|
const designTimeOverride = isDesignTime(this.contextManager) && (this.constructorProps.preview ?? false);
|
|
301
311
|
if (isDesignTime(this.contextManager) && !designTimeOverride)
|
|
302
312
|
return;
|