@po-ui/ng-components 21.32.5 → 21.32.7
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/fesm2022/po-ui-ng-components.mjs +60 -10
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/services/po-media-query/po-media-query.service.d.ts +2 -1
- package/lib/services/po-theme/po-theme.service.d.ts +2 -1
- package/lib/services/po-user-guide/po-user-guide.service.d.ts +2 -1
- package/lib/utils/csp-nonce.d.ts +14 -0
- package/package.json +4 -4
- package/po-ui-ng-components-21.32.7.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/index.js +1 -1
- package/schematics/ng-update/v18/index.js +2 -2
- package/schematics/ng-update/v19/index.js +2 -2
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v20/index.js +2 -2
- package/schematics/ng-update/v21/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/types/po-ui-ng-components.d.ts +9 -6
- package/po-ui-ng-components-21.32.5.tgz +0 -0
|
@@ -52,8 +52,9 @@ import { PoMediaQueryTokens } from './po-media-query.interface';
|
|
|
52
52
|
*
|
|
53
53
|
*/
|
|
54
54
|
export declare class PoMediaQueryService {
|
|
55
|
+
private readonly cspNonce?;
|
|
55
56
|
private readonly renderer;
|
|
56
|
-
constructor(rendererFactory: RendererFactory2);
|
|
57
|
+
constructor(rendererFactory: RendererFactory2, cspNonce?: string | null);
|
|
57
58
|
/**
|
|
58
59
|
* Método que replica as regras baseando-se pelos tokens de media query dentro das folhas de estilo do documento, permitindo a modificação dinâmica
|
|
59
60
|
* dos valores CSS correspondentes aos tokens fornecidos.
|
|
@@ -32,9 +32,10 @@ import { PoTheme, PoThemeActive } from './interfaces/po-theme.interface';
|
|
|
32
32
|
*/
|
|
33
33
|
export declare class PoThemeService {
|
|
34
34
|
private readonly document;
|
|
35
|
+
private readonly cspNonce?;
|
|
35
36
|
private readonly renderer;
|
|
36
37
|
private theme;
|
|
37
|
-
constructor(document: Document, rendererFactory: RendererFactory2);
|
|
38
|
+
constructor(document: Document, rendererFactory: RendererFactory2, cspNonce?: string | null);
|
|
38
39
|
/**
|
|
39
40
|
* Aplica um tema ao componente de acordo com o tipo de tema e o nível de acessibilidade especificados.
|
|
40
41
|
*
|
|
@@ -24,13 +24,14 @@ import { PoUserGuideOptions, PoUserGuideStep } from './interfaces';
|
|
|
24
24
|
*/
|
|
25
25
|
export declare class PoUserGuideService extends PoUserGuideBaseService {
|
|
26
26
|
private readonly sanitizer;
|
|
27
|
+
private readonly cspNonce?;
|
|
27
28
|
private driverFactoryCache;
|
|
28
29
|
private driverInstance;
|
|
29
30
|
private pendingEndReason;
|
|
30
31
|
private readonly scrollLock;
|
|
31
32
|
private activeScrollLockEnabled;
|
|
32
33
|
private static stylesInjected;
|
|
33
|
-
constructor(languageService: PoLanguageService, sanitizer: DomSanitizer);
|
|
34
|
+
constructor(languageService: PoLanguageService, sanitizer: DomSanitizer, cspNonce?: string | null);
|
|
34
35
|
private isBrowser;
|
|
35
36
|
protected importDriver(): Promise<any>;
|
|
36
37
|
private loadDriverFactory;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Renderer2 } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* @docsPrivate
|
|
4
|
+
*
|
|
5
|
+
* Aplica o nonce da Content-Security-Policy (token `CSP_NONCE` do Angular) a um elemento criado em tempo de execução
|
|
6
|
+
* (ex.: `<style>`), para que ele seja aceito por políticas sem `'unsafe-inline'`.
|
|
7
|
+
*
|
|
8
|
+
* Deve ser chamado antes de o elemento ser inserido no DOM. Sem nonce configurado, o elemento permanece inalterado.
|
|
9
|
+
*
|
|
10
|
+
* @param element Elemento que receberá o nonce.
|
|
11
|
+
* @param nonce Valor do `CSP_NONCE`. `null`, `undefined` ou vazio não alteram o elemento.
|
|
12
|
+
* @param renderer (Opcional) Renderer usado para definir o atributo. Sem ele, é usado `element.setAttribute`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function applyCspNonce(element: Element, nonce: string | null | undefined, renderer?: Renderer2): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "21.32.
|
|
3
|
+
"version": "21.32.7",
|
|
4
4
|
"description": "PO UI - Components",
|
|
5
5
|
"author": "PO UI",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@angular/cdk": "~21.2.14",
|
|
25
|
-
"@po-ui/style": "21.32.
|
|
26
|
-
"@po-ui/ng-schematics": "21.32.
|
|
25
|
+
"@po-ui/style": "21.32.7",
|
|
26
|
+
"@po-ui/ng-schematics": "21.32.7",
|
|
27
27
|
"driver.js": "~1.4.0",
|
|
28
28
|
"echarts": "^6.1.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@angular/platform-browser-dynamic": "^21",
|
|
40
40
|
"@angular/router": "^21",
|
|
41
41
|
"@angular-devkit/schematics": "^21",
|
|
42
|
-
"@po-ui/style": "21.32.
|
|
42
|
+
"@po-ui/style": "21.32.7",
|
|
43
43
|
"rxjs": "~7.8.1",
|
|
44
44
|
"zone.js": "~0.15.0"
|
|
45
45
|
},
|
|
Binary file
|
|
@@ -18,7 +18,7 @@ function default_1(options) {
|
|
|
18
18
|
}
|
|
19
19
|
function addPoPackageAndInstall() {
|
|
20
20
|
return (tree, context) => {
|
|
21
|
-
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '21.32.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '21.32.7');
|
|
22
22
|
// install packages
|
|
23
23
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
24
24
|
};
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -11,7 +11,7 @@ const changes_1 = require("./changes");
|
|
|
11
11
|
const httpClientModuleName = 'HttpClientModule';
|
|
12
12
|
const httpClientModuleSourcePath = '@angular/common/http';
|
|
13
13
|
function default_1() {
|
|
14
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.
|
|
14
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
15
15
|
}
|
|
16
16
|
function postUpdate() {
|
|
17
17
|
return (_, context) => {
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -40,11 +40,11 @@ function main(options) {
|
|
|
40
40
|
configureNewIcon.toLowerCase() === 'y' ||
|
|
41
41
|
configureNewIcon.toLowerCase() === 'sim' ||
|
|
42
42
|
configureNewIcon.toLowerCase() === '') {
|
|
43
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('21.32.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion),
|
|
48
48
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
49
49
|
addProviderToAppModule(options, newProviderDictionary),
|
|
50
50
|
updateAppConfigFileRule(),
|
|
@@ -40,11 +40,11 @@ function main(options) {
|
|
|
40
40
|
configureNewIcon.toLowerCase() === 'y' ||
|
|
41
41
|
configureNewIcon.toLowerCase() === 'sim' ||
|
|
42
42
|
configureNewIcon.toLowerCase() === '') {
|
|
43
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('21.32.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion),
|
|
48
48
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
49
49
|
addProviderToAppModule(options, newProviderDictionary),
|
|
50
50
|
updateAppConfigFileRule(),
|
|
@@ -10,7 +10,7 @@ const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
|
10
10
|
const changes_1 = require("./changes");
|
|
11
11
|
function updateToV2() {
|
|
12
12
|
return (0, schematics_1.chain)([
|
|
13
|
-
updatePackageJson('21.32.
|
|
13
|
+
updatePackageJson('21.32.7', changes_1.dependeciesChanges),
|
|
14
14
|
(0, replace_1.replaceInFile)('tslint.json', changes_1.tsLintReplaces),
|
|
15
15
|
(0, replace_1.replaceInFile)('angular.json', changes_1.angularJsonReplaces),
|
|
16
16
|
createUpgradeRule(),
|
|
@@ -40,11 +40,11 @@ function main(options) {
|
|
|
40
40
|
configureNewIcon.toLowerCase() === 'y' ||
|
|
41
41
|
configureNewIcon.toLowerCase() === 'sim' ||
|
|
42
42
|
configureNewIcon.toLowerCase() === '') {
|
|
43
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('21.32.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion),
|
|
48
48
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
49
49
|
addProviderToAppModule(options, newProviderDictionary),
|
|
50
50
|
updateAppConfigFileRule(),
|
|
@@ -9,7 +9,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
9
9
|
const changes_1 = require("./changes");
|
|
10
10
|
function main() {
|
|
11
11
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.
|
|
12
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
function default_1() {
|
|
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
7
7
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
8
8
|
const changes_1 = require("./changes");
|
|
9
9
|
function updateToV3() {
|
|
10
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
function postUpdate() {
|
|
13
13
|
return (_, context) => {
|
|
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
7
7
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
8
8
|
const changes_1 = require("./changes");
|
|
9
9
|
function default_1() {
|
|
10
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
function postUpdate() {
|
|
13
13
|
return (_, context) => {
|
|
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
7
7
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
8
8
|
const changes_1 = require("./changes");
|
|
9
9
|
function default_1() {
|
|
10
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
function postUpdate() {
|
|
13
13
|
return (_, context) => {
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.32.7', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -20039,8 +20039,9 @@ interface PoMediaQueryTokens {
|
|
|
20039
20039
|
*
|
|
20040
20040
|
*/
|
|
20041
20041
|
declare class PoMediaQueryService {
|
|
20042
|
+
private readonly cspNonce?;
|
|
20042
20043
|
private readonly renderer;
|
|
20043
|
-
constructor(rendererFactory: RendererFactory2);
|
|
20044
|
+
constructor(rendererFactory: RendererFactory2, cspNonce?: string | null);
|
|
20044
20045
|
/**
|
|
20045
20046
|
* Método que replica as regras baseando-se pelos tokens de media query dentro das folhas de estilo do documento, permitindo a modificação dinâmica
|
|
20046
20047
|
* dos valores CSS correspondentes aos tokens fornecidos.
|
|
@@ -20054,7 +20055,7 @@ declare class PoMediaQueryService {
|
|
|
20054
20055
|
private processStyleSheet;
|
|
20055
20056
|
private updateTokensMediaRule;
|
|
20056
20057
|
private buildMediaQuery;
|
|
20057
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoMediaQueryService,
|
|
20058
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoMediaQueryService, [null, { optional: true; }]>;
|
|
20058
20059
|
static ɵprov: i0.ɵɵInjectableDeclaration<PoMediaQueryService>;
|
|
20059
20060
|
}
|
|
20060
20061
|
|
|
@@ -21018,9 +21019,10 @@ declare enum PoDensityMode {
|
|
|
21018
21019
|
*/
|
|
21019
21020
|
declare class PoThemeService {
|
|
21020
21021
|
private readonly document;
|
|
21022
|
+
private readonly cspNonce?;
|
|
21021
21023
|
private readonly renderer;
|
|
21022
21024
|
private theme;
|
|
21023
|
-
constructor(document: Document, rendererFactory: RendererFactory2);
|
|
21025
|
+
constructor(document: Document, rendererFactory: RendererFactory2, cspNonce?: string | null);
|
|
21024
21026
|
/**
|
|
21025
21027
|
* Aplica um tema ao componente de acordo com o tipo de tema e o nível de acessibilidade especificados.
|
|
21026
21028
|
*
|
|
@@ -21283,7 +21285,7 @@ declare class PoThemeService {
|
|
|
21283
21285
|
setCurrentThemeA11y(a11y?: PoThemeA11yEnum): void;
|
|
21284
21286
|
resetBaseTheme(): void;
|
|
21285
21287
|
private setDefaultBaseStyle;
|
|
21286
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoThemeService,
|
|
21288
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoThemeService, [null, null, { optional: true; }]>;
|
|
21287
21289
|
static ɵprov: i0.ɵɵInjectableDeclaration<PoThemeService>;
|
|
21288
21290
|
}
|
|
21289
21291
|
|
|
@@ -22249,13 +22251,14 @@ declare const poUserGuideLiteralsDefault: {
|
|
|
22249
22251
|
*/
|
|
22250
22252
|
declare class PoUserGuideService extends PoUserGuideBaseService {
|
|
22251
22253
|
private readonly sanitizer;
|
|
22254
|
+
private readonly cspNonce?;
|
|
22252
22255
|
private driverFactoryCache;
|
|
22253
22256
|
private driverInstance;
|
|
22254
22257
|
private pendingEndReason;
|
|
22255
22258
|
private readonly scrollLock;
|
|
22256
22259
|
private activeScrollLockEnabled;
|
|
22257
22260
|
private static stylesInjected;
|
|
22258
|
-
constructor(languageService: PoLanguageService, sanitizer: DomSanitizer);
|
|
22261
|
+
constructor(languageService: PoLanguageService, sanitizer: DomSanitizer, cspNonce?: string | null);
|
|
22259
22262
|
private isBrowser;
|
|
22260
22263
|
protected importDriver(): Promise<any>;
|
|
22261
22264
|
private loadDriverFactory;
|
|
@@ -22396,7 +22399,7 @@ declare class PoUserGuideService extends PoUserGuideBaseService {
|
|
|
22396
22399
|
* quando há um tour em execução; `-1` em qualquer outro caso.
|
|
22397
22400
|
*/
|
|
22398
22401
|
getCurrentIndex(): number;
|
|
22399
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoUserGuideService,
|
|
22402
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoUserGuideService, [null, null, { optional: true; }]>;
|
|
22400
22403
|
static ɵprov: i0.ɵɵInjectableDeclaration<PoUserGuideService>;
|
|
22401
22404
|
}
|
|
22402
22405
|
|
|
Binary file
|