@po-ui/ng-components 22.0.0-rc.0 → 22.0.0-rc.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.
- package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-B6drxxln.mjs → po-ui-ng-components-po-chart-modal-table.component-DREfx0T_.mjs} +4 -4
- package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-B6drxxln.mjs.map → po-ui-ng-components-po-chart-modal-table.component-DREfx0T_.mjs.map} +1 -1
- package/fesm2022/po-ui-ng-components.mjs +2895 -1477
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-button/enums/po-button-kind.enum.d.ts +7 -1
- package/lib/components/po-button/po-button-base.component.d.ts +27 -3
- package/lib/components/po-button/po-button.component.d.ts +2 -0
- package/lib/components/po-calendar/po-calendar-base.component.d.ts +5 -0
- package/lib/components/po-calendar/po-calendar-header/po-calendar-header.component.d.ts +2 -0
- package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +12 -0
- package/lib/components/po-calendar/po-calendar.component.d.ts +11 -0
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +15 -4
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +5 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +3 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +2 -0
- package/lib/components/po-field/po-datetimepicker/po-datetimepicker-base.component.d.ts +5 -0
- package/lib/components/po-field/po-datetimepicker/po-datetimepicker.component.d.ts +5 -0
- package/lib/components/po-listbox/po-item-list/po-item-list.component.d.ts +1 -0
- package/lib/components/po-listbox/po-listbox.component.d.ts +1 -0
- package/lib/po.module.d.ts +2 -0
- package/lib/services/po-theme/helpers/accessibilities/po-theme-default-aaa.constant.d.ts +1 -8
- package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-default-aa.constant.d.ts +20 -0
- package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-default-aaa.constant.d.ts +18 -0
- package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-density.constant.d.ts +12 -0
- package/lib/services/po-theme/helpers/deprecated/po-theme-poui.constant.d.ts +27 -0
- package/lib/services/po-theme/helpers/deprecated/types/po-theme-dark-defaults-AA.constant.d.ts +129 -0
- package/lib/services/po-theme/helpers/deprecated/types/po-theme-dark-defaults.constant.d.ts +167 -0
- package/lib/services/po-theme/helpers/deprecated/types/po-theme-light-defaults-AA.constant.d.ts +49 -0
- package/lib/services/po-theme/helpers/deprecated/types/po-theme-light-defaults.constant.d.ts +81 -0
- package/lib/services/po-theme/helpers/shared/base.constant.d.ts +137 -0
- package/lib/services/po-theme/helpers/types/po-theme-dark-defaults-AA.constant.d.ts +3 -4
- package/lib/services/po-theme/helpers/types/po-theme-dark-defaults.constant.d.ts +4 -4
- package/lib/services/po-theme/index.d.ts +8 -0
- package/lib/services/po-theme/interfaces/po-theme.interface.d.ts +15 -0
- package/lib/services/po-theme/po-theme.service.d.ts +57 -0
- package/lib/utils/po-picker-mouse-down-guard.d.ts +27 -0
- package/lib/utils/util.d.ts +16 -0
- package/package.json +4 -4
- package/po-ui-ng-components-22.0.0-rc.1.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/v22/index.d.ts +20 -4
- package/schematics/ng-update/v22/index.js +37 -11
- package/schematics/ng-update/v22/index.js.map +1 -1
- package/schematics/ng-update/v22/migration-report.d.ts +36 -10
- package/schematics/ng-update/v22/migration-report.js +25 -11
- package/schematics/ng-update/v22/migration-report.js.map +1 -1
- package/schematics/ng-update/v22/theme-deprecated/changes.d.ts +24 -0
- package/schematics/ng-update/v22/theme-deprecated/changes.js +58 -0
- package/schematics/ng-update/v22/theme-deprecated/changes.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/index.d.ts +14 -0
- package/schematics/ng-update/v22/theme-deprecated/index.js +291 -0
- package/schematics/ng-update/v22/theme-deprecated/index.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/prompt.d.ts +49 -0
- package/schematics/ng-update/v22/theme-deprecated/prompt.js +59 -0
- package/schematics/ng-update/v22/theme-deprecated/prompt.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-bootstrap-migration.d.ts +25 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-bootstrap-migration.js +198 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-bootstrap-migration.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-style-migration.d.ts +23 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-style-migration.js +64 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-style-migration.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-ts-migration.d.ts +29 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-ts-migration.js +325 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-ts-migration.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/ts-utils.d.ts +58 -0
- package/schematics/ng-update/v22/theme-deprecated/ts-utils.js +112 -0
- package/schematics/ng-update/v22/theme-deprecated/ts-utils.js.map +1 -0
- 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 +17922 -17137
- package/po-ui-ng-components-22.0.0-rc.0.tgz +0 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { PoThemeColorAction, poThemeColorBrand, PoThemeColorCategorical, PoThemeColorFeedback, PoThemeColorNeutral } from '../../../interfaces/po-theme-color.interface';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated v24.x.x use `poThemeDefaultActionsDark`
|
|
4
|
+
*
|
|
5
|
+
* Define as cores de ação padrão para temas escuros.
|
|
6
|
+
*
|
|
7
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultActionsDark`, do novo tema padrão.
|
|
8
|
+
*/
|
|
9
|
+
declare const poThemeDefaultActionsDark: PoThemeColorAction;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated v24.x.x use `poThemeDefaultNeutralsDark`
|
|
12
|
+
*
|
|
13
|
+
* Define as cores neutras padrão para temas escuros.
|
|
14
|
+
*
|
|
15
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultNeutralsDark`, do novo tema padrão.
|
|
16
|
+
*/
|
|
17
|
+
declare const poThemeDefaultNeutralsDark: PoThemeColorNeutral;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated v24.x.x use `poThemeDefaultFeedbackDark`
|
|
20
|
+
*
|
|
21
|
+
* Define as cores de feedback padrão para temas escuros.
|
|
22
|
+
*
|
|
23
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultFeedbackDark`, do novo tema padrão.
|
|
24
|
+
*/
|
|
25
|
+
declare const poThemeDefaultFeedbackDark: PoThemeColorFeedback;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated v24.x.x use `poThemeDefaultBrandsDark`
|
|
28
|
+
*
|
|
29
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultBrandsDark`, do novo tema padrão.
|
|
30
|
+
*/
|
|
31
|
+
declare const poThemeDefaultBrandsDark: poThemeColorBrand;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated v24.x.x use `poThemeDefaultCategoricalsDark`
|
|
34
|
+
*
|
|
35
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultCategoricalsDark`, do novo tema padrão.
|
|
36
|
+
*/
|
|
37
|
+
declare const poThemeDefaultCategoricalsDark: PoThemeColorCategorical;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated v24.x.x use `poThemeDefaultCategoricalsOverlayDark`
|
|
40
|
+
*
|
|
41
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultCategoricalsOverlayDark`, do novo tema padrão.
|
|
42
|
+
*/
|
|
43
|
+
declare const poThemeDefaultCategoricalsOverlayDark: PoThemeColorCategorical;
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated v24.x.x use `poThemeDefaultDarkValues`
|
|
46
|
+
*
|
|
47
|
+
* Define estilos específicos por componente e onRoot para temas escuros.
|
|
48
|
+
*
|
|
49
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultDarkValues`, do novo tema padrão.
|
|
50
|
+
*/
|
|
51
|
+
declare const poThemeDefaultDarkValues: {
|
|
52
|
+
perComponent: {
|
|
53
|
+
/** TAB */
|
|
54
|
+
'.po-tab-border-active': {
|
|
55
|
+
'background-color': string;
|
|
56
|
+
};
|
|
57
|
+
/** OVERLAY */
|
|
58
|
+
'po-overlay': {
|
|
59
|
+
'--color-overlay': string;
|
|
60
|
+
};
|
|
61
|
+
/** MODAL */
|
|
62
|
+
'po-modal': {
|
|
63
|
+
'--color-overlay': string;
|
|
64
|
+
};
|
|
65
|
+
/** TOASTER */
|
|
66
|
+
'po-toaster': {
|
|
67
|
+
'--color-icon': string;
|
|
68
|
+
'--color-icon-warning': string;
|
|
69
|
+
};
|
|
70
|
+
/** BADGE */
|
|
71
|
+
'po-badge': {
|
|
72
|
+
'--color': string;
|
|
73
|
+
};
|
|
74
|
+
'po-badge[p-status=warning]': {
|
|
75
|
+
'--color': string;
|
|
76
|
+
};
|
|
77
|
+
/** BUTTON: brilho do estilo glow permanece claro no tema escuro */
|
|
78
|
+
'po-button': {
|
|
79
|
+
'--color-glow-ring': string;
|
|
80
|
+
};
|
|
81
|
+
'po-link': {
|
|
82
|
+
'--text-color-visited': string;
|
|
83
|
+
};
|
|
84
|
+
'po-rich-text-body .po-rich-text-body:focus-visible, po-info .po-info-link:focus-visible, po-list-view a.po-list-view-title-link:focus-visible, po-stepper-circle .po-stepper-circle:focus-visible': {
|
|
85
|
+
'border-color': string;
|
|
86
|
+
'outline-color': string;
|
|
87
|
+
'outline-width': string;
|
|
88
|
+
'outline-style': string;
|
|
89
|
+
'outline-offset': string;
|
|
90
|
+
};
|
|
91
|
+
'po-container': {
|
|
92
|
+
'--background': string;
|
|
93
|
+
};
|
|
94
|
+
'div.po-lookup-filter-content input.po-input, input.po-input, po-datepicker, po-datepicker-range, po-decimal, po-email, po-input, po-login, po-lookup, po-number, po-password, po-url, po-combo, po-search, po-select, po-multiselect, po-timepicker': {
|
|
95
|
+
'--background-disabled': string;
|
|
96
|
+
};
|
|
97
|
+
'po-input input:-webkit-autofill, po-datepicker input:-webkit-autofill, po-datepicker-range input:-webkit-autofill, po-decimal input:-webkit-autofill, po-email input:-webkit-autofill, po-input input:-webkit-autofill, po-login input:-webkit-autofill, po-lookup input:-webkit-autofill, po-number input:-webkit-autofill, po-password input:-webkit-autofill, po-url input:-webkit-autofill, po-combo input:-webkit-autofill': {
|
|
98
|
+
'-webkit-background-clip': string;
|
|
99
|
+
'-webkit-text-fill-color': string;
|
|
100
|
+
transition: string;
|
|
101
|
+
'box-shadow': string;
|
|
102
|
+
};
|
|
103
|
+
'po-overlay, po-page-slide': {
|
|
104
|
+
'--color-overlay': string;
|
|
105
|
+
};
|
|
106
|
+
/** SELECT */
|
|
107
|
+
'po-select': {
|
|
108
|
+
'--color-hover': string;
|
|
109
|
+
};
|
|
110
|
+
/** DROPDOWN */
|
|
111
|
+
'.po-listbox-group-header .po-tag': {
|
|
112
|
+
color: string;
|
|
113
|
+
'background-color': string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
onRoot: {
|
|
117
|
+
'--font-family': string;
|
|
118
|
+
'--font-family-theme': string;
|
|
119
|
+
'--font-family-theme-bold': string;
|
|
120
|
+
'--font-family-theme-extra-light': string;
|
|
121
|
+
'--font-family-heading': string;
|
|
122
|
+
'--font-family-code': string;
|
|
123
|
+
'--color-neutral': string;
|
|
124
|
+
'--color-secondary': string;
|
|
125
|
+
'--color-secondary-light-20': string;
|
|
126
|
+
'--color-secondary-light-40': string;
|
|
127
|
+
'--color-secondary-dark-20': string;
|
|
128
|
+
'--color-secondary-dark-40': string;
|
|
129
|
+
'--color-secondary-dark-80': string;
|
|
130
|
+
'--color-black-alpha-10': string;
|
|
131
|
+
'--color-black-alpha-15': string;
|
|
132
|
+
'--color-black-alpha-30': string;
|
|
133
|
+
'--color-po-user-guide-overlay': string;
|
|
134
|
+
'--color-primary-light-80': string;
|
|
135
|
+
'--color-primary-light-95': string;
|
|
136
|
+
'--color-primary-alpha-50': string;
|
|
137
|
+
'--color-primary-dark-20': string;
|
|
138
|
+
'--color-primary-dark-40': string;
|
|
139
|
+
'--color-secondary-dark-60-alpha-70': string;
|
|
140
|
+
'--color-tertiary-light-90': string;
|
|
141
|
+
'--color-tertiary-dark-5': string;
|
|
142
|
+
'--color-page-background-color-page': string;
|
|
143
|
+
'--color-toolbar-color-badge-text': string;
|
|
144
|
+
'--shadow-popover-box-shadow': string;
|
|
145
|
+
'--shadow-popover-box-shadow-arrow': string;
|
|
146
|
+
'--color-calendar-background-color-box-background-range': string;
|
|
147
|
+
'--color-stepper-circle-disabled': string;
|
|
148
|
+
'--color-stepper-bar-disabled': string;
|
|
149
|
+
'--color-caption-categorical-01': string;
|
|
150
|
+
'--color-caption-categorical-02': string;
|
|
151
|
+
'--color-caption-categorical-03': string;
|
|
152
|
+
'--color-caption-categorical-04': string;
|
|
153
|
+
'--color-caption-categorical-05': string;
|
|
154
|
+
'--color-caption-categorical-06': string;
|
|
155
|
+
'--color-caption-categorical-07': string;
|
|
156
|
+
'--color-caption-categorical-08': string;
|
|
157
|
+
'--color-caption-categorical-overlay-01': string;
|
|
158
|
+
'--color-caption-categorical-overlay-02': string;
|
|
159
|
+
'--color-caption-categorical-overlay-03': string;
|
|
160
|
+
'--color-caption-categorical-overlay-04': string;
|
|
161
|
+
'--color-caption-categorical-overlay-05': string;
|
|
162
|
+
'--color-caption-categorical-overlay-06': string;
|
|
163
|
+
'--color-caption-categorical-overlay-07': string;
|
|
164
|
+
'--color-caption-categorical-overlay-08': string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
export { poThemeDefaultBrandsDark, poThemeDefaultActionsDark, poThemeDefaultFeedbackDark, poThemeDefaultNeutralsDark, poThemeDefaultDarkValues, poThemeDefaultCategoricalsDark, poThemeDefaultCategoricalsOverlayDark };
|
package/lib/services/po-theme/helpers/deprecated/types/po-theme-light-defaults-AA.constant.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { PoThemeColorCategorical } from '../../../interfaces/po-theme-color.interface';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated v24.x.x use `poThemeDefaultCategoricalsAA`
|
|
4
|
+
*
|
|
5
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultCategoricalsAA`, do novo tema padrão.
|
|
6
|
+
*/
|
|
7
|
+
declare const poThemeDefaultCategoricalsAA: PoThemeColorCategorical;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated v24.x.x use `poThemeDefaultOverlayCategoricalsAA`
|
|
10
|
+
*
|
|
11
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultOverlayCategoricalsAA`, do novo tema padrão.
|
|
12
|
+
*/
|
|
13
|
+
declare const poThemeDefaultOverlayCategoricalsAA: PoThemeColorCategorical;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated v24.x.x use `poThemeDefaultLightValuesAA`
|
|
16
|
+
*
|
|
17
|
+
* Define estilos específicos por componente e onRoot para temas claros para AA.
|
|
18
|
+
*
|
|
19
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultLightValuesAA`, do novo tema padrão.
|
|
20
|
+
*/
|
|
21
|
+
declare const poThemeDefaultLightValuesAA: {
|
|
22
|
+
perComponent: {};
|
|
23
|
+
onRoot: {
|
|
24
|
+
'--color-caption-categorical-01': string;
|
|
25
|
+
'--color-caption-categorical-02': string;
|
|
26
|
+
'--color-caption-categorical-03': string;
|
|
27
|
+
'--color-caption-categorical-04': string;
|
|
28
|
+
'--color-caption-categorical-05': string;
|
|
29
|
+
'--color-caption-categorical-06': string;
|
|
30
|
+
'--color-caption-categorical-07': string;
|
|
31
|
+
'--color-caption-categorical-08': string;
|
|
32
|
+
'--color-caption-categorical-overlay-01': string;
|
|
33
|
+
'--color-caption-categorical-overlay-02': string;
|
|
34
|
+
'--color-caption-categorical-overlay-03': string;
|
|
35
|
+
'--color-caption-categorical-overlay-04': string;
|
|
36
|
+
'--color-caption-categorical-overlay-05': string;
|
|
37
|
+
'--color-caption-categorical-overlay-06': string;
|
|
38
|
+
'--color-caption-categorical-overlay-07': string;
|
|
39
|
+
'--color-caption-categorical-overlay-08': string;
|
|
40
|
+
'--font-family': string;
|
|
41
|
+
'--font-family-theme': string;
|
|
42
|
+
'--font-family-theme-bold': string;
|
|
43
|
+
'--font-family-theme-extra-light': string;
|
|
44
|
+
'--font-family-heading': string;
|
|
45
|
+
'--font-family-code': string;
|
|
46
|
+
'--color-page-background-color-page': string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export { poThemeDefaultCategoricalsAA, poThemeDefaultOverlayCategoricalsAA, poThemeDefaultLightValuesAA };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { PoThemeColorAction, PoThemeColorCategorical, PoThemeColorFeedback, PoThemeColorNeutral, poThemeColorBrand } from '../../../interfaces/po-theme-color.interface';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated v24.x.x use `poThemeDefaultActions`
|
|
4
|
+
*
|
|
5
|
+
* Define as cores de ação padrão para temas claros.
|
|
6
|
+
*
|
|
7
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultActions`, do novo tema padrão.
|
|
8
|
+
*/
|
|
9
|
+
declare const poThemeDefaultActions: PoThemeColorAction;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated v24.x.x use `poThemeDefaultNeutrals`
|
|
12
|
+
*
|
|
13
|
+
* Define as cores neutras padrão para temas claros.
|
|
14
|
+
*
|
|
15
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultNeutrals`, do novo tema padrão.
|
|
16
|
+
*/
|
|
17
|
+
declare const poThemeDefaultNeutrals: PoThemeColorNeutral;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated v24.x.x use `poThemeDefaultFeedback`
|
|
20
|
+
*
|
|
21
|
+
* Define as cores de feedback padrão para temas claros.
|
|
22
|
+
*
|
|
23
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultFeedback`, do novo tema padrão.
|
|
24
|
+
*/
|
|
25
|
+
declare const poThemeDefaultFeedback: PoThemeColorFeedback;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated v24.x.x use `poThemeDefaultBrands`
|
|
28
|
+
*
|
|
29
|
+
* Define as cores da Brand padrão para temas claros.
|
|
30
|
+
*
|
|
31
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultBrands`, do novo tema padrão.
|
|
32
|
+
*/
|
|
33
|
+
declare const poThemeDefaultBrands: poThemeColorBrand;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated v24.x.x use `poThemeDefaultCategoricals`
|
|
36
|
+
*
|
|
37
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultCategoricals`, do novo tema padrão.
|
|
38
|
+
*/
|
|
39
|
+
declare const poThemeDefaultCategoricals: PoThemeColorCategorical;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated v24.x.x use `poThemeDefaultOverlayCategoricals`
|
|
42
|
+
*
|
|
43
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultOverlayCategoricals`, do novo tema padrão.
|
|
44
|
+
*/
|
|
45
|
+
declare const poThemeDefaultOverlayCategoricals: PoThemeColorCategorical;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated v24.x.x use `poThemeDefaultLightValues`
|
|
48
|
+
*
|
|
49
|
+
* Define estilos específicos por componente e onRoot para temas claros para AAA.
|
|
50
|
+
*
|
|
51
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultLightValues`, do novo tema padrão.
|
|
52
|
+
*/
|
|
53
|
+
declare const poThemeDefaultLightValues: {
|
|
54
|
+
perComponent: {};
|
|
55
|
+
onRoot: {
|
|
56
|
+
'--font-family': string;
|
|
57
|
+
'--font-family-theme': string;
|
|
58
|
+
'--font-family-theme-bold': string;
|
|
59
|
+
'--font-family-theme-extra-light': string;
|
|
60
|
+
'--font-family-heading': string;
|
|
61
|
+
'--font-family-code': string;
|
|
62
|
+
'--color-page-background-color-page': string;
|
|
63
|
+
'--color-caption-categorical-01': string;
|
|
64
|
+
'--color-caption-categorical-02': string;
|
|
65
|
+
'--color-caption-categorical-03': string;
|
|
66
|
+
'--color-caption-categorical-04': string;
|
|
67
|
+
'--color-caption-categorical-05': string;
|
|
68
|
+
'--color-caption-categorical-06': string;
|
|
69
|
+
'--color-caption-categorical-07': string;
|
|
70
|
+
'--color-caption-categorical-08': string;
|
|
71
|
+
'--color-caption-categorical-overlay-01': string;
|
|
72
|
+
'--color-caption-categorical-overlay-02': string;
|
|
73
|
+
'--color-caption-categorical-overlay-03': string;
|
|
74
|
+
'--color-caption-categorical-overlay-04': string;
|
|
75
|
+
'--color-caption-categorical-overlay-05': string;
|
|
76
|
+
'--color-caption-categorical-overlay-06': string;
|
|
77
|
+
'--color-caption-categorical-overlay-07': string;
|
|
78
|
+
'--color-caption-categorical-overlay-08': string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export { poThemeDefaultBrands, poThemeDefaultActions, poThemeDefaultFeedback, poThemeDefaultNeutrals, poThemeDefaultLightValues, poThemeDefaultCategoricals, poThemeDefaultOverlayCategoricals };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estilos `perComponent` compartilhados (base) do tema do PO-UI.
|
|
3
|
+
*
|
|
4
|
+
* Espelha o papel do `poThemeTotvsBase` do THF, porém definido dentro do próprio
|
|
5
|
+
* po-angular. É espalhado ANTES dos overrides de cada nível de acessibilidade
|
|
6
|
+
* (ex.: AAA) no `PoThemeService`, permitindo que os níveis sobrescrevam a base.
|
|
7
|
+
*/
|
|
8
|
+
export declare const poThemeSharedBase: {
|
|
9
|
+
perComponent: {
|
|
10
|
+
'.po-header-nav-submenu-more:focus, .po-header-nav-customer-container:focus, .po-header-nav-submenu:focus, .po-header-nav-submenu-button-more:hover .po-header-nav-submenu-more-icon, .po-header-nav-submenu-button-more:hover, .po-header-nav-submenu-button:hover, .po-header-nav-submenu-button, .po-header-nav-submenu-button-more': {
|
|
11
|
+
'--border-radius': string;
|
|
12
|
+
};
|
|
13
|
+
'po-button-group .po-button': {
|
|
14
|
+
'--border-radius': string;
|
|
15
|
+
};
|
|
16
|
+
'.po-input, .po-combo-input, .po-select, .po-search .po-search-input, .po-dropdown-button': {
|
|
17
|
+
'border-radius': string;
|
|
18
|
+
};
|
|
19
|
+
'po-combo, po-dropdown, po-search': {
|
|
20
|
+
'--border-radius': string;
|
|
21
|
+
};
|
|
22
|
+
'.po-button-default.po-rich-text-toolbar-color-picker-button, po-datepicker po-clean.po-icon-input, po-datepicker-range po-clean.po-icon-input, po-datetimepicker po-clean.po-icon-input, po-timepicker po-clean.po-icon-input': {
|
|
23
|
+
'border-radius': string;
|
|
24
|
+
};
|
|
25
|
+
'.po-header-selected-tool, .po-header-nav-customer-container': {
|
|
26
|
+
'border-radius': string;
|
|
27
|
+
};
|
|
28
|
+
'po-menu-filter': {
|
|
29
|
+
'--border-radius': string;
|
|
30
|
+
};
|
|
31
|
+
'po-multiselect .po-multiselect-input': {
|
|
32
|
+
'border-radius': string;
|
|
33
|
+
};
|
|
34
|
+
'po-multiselect[p-size="small"] .po-multiselect-input': {
|
|
35
|
+
'border-radius': string;
|
|
36
|
+
};
|
|
37
|
+
'po-lookup .po-lookup .po-lookup-input': {
|
|
38
|
+
'border-radius': string;
|
|
39
|
+
};
|
|
40
|
+
'po-lookup[p-size="small"] .po-lookup .po-lookup-input': {
|
|
41
|
+
'border-radius': string;
|
|
42
|
+
};
|
|
43
|
+
'po-lookup': {
|
|
44
|
+
'--border-radius': string;
|
|
45
|
+
};
|
|
46
|
+
'po-lookup[p-size="small"]': {
|
|
47
|
+
'--border-radius': string;
|
|
48
|
+
};
|
|
49
|
+
'po-button': {
|
|
50
|
+
'--border-radius': string;
|
|
51
|
+
};
|
|
52
|
+
'po-button[p-size="small"]': {
|
|
53
|
+
'--border-radius': string;
|
|
54
|
+
};
|
|
55
|
+
'po-button[p-kind="glow"]': {
|
|
56
|
+
'--border-radius': string;
|
|
57
|
+
};
|
|
58
|
+
'po-textarea .po-textarea': {
|
|
59
|
+
'border-radius': string;
|
|
60
|
+
};
|
|
61
|
+
'po-textarea[p-size="small"] .po-textarea': {
|
|
62
|
+
'border-radius': string;
|
|
63
|
+
};
|
|
64
|
+
'po-toaster': {
|
|
65
|
+
'--border-radius': string;
|
|
66
|
+
};
|
|
67
|
+
'po-toaster[p-size-actions="small"]': {
|
|
68
|
+
'--border-radius': string;
|
|
69
|
+
};
|
|
70
|
+
'.po-tooltip': {
|
|
71
|
+
'border-radius': string;
|
|
72
|
+
};
|
|
73
|
+
'po-upload': {
|
|
74
|
+
'--border-radius-content': string;
|
|
75
|
+
};
|
|
76
|
+
'po-list-view': {
|
|
77
|
+
'--list-item-border-radius': string;
|
|
78
|
+
};
|
|
79
|
+
'.po-list-view-main-header': {
|
|
80
|
+
'border-radius': string;
|
|
81
|
+
};
|
|
82
|
+
'po-tree-view .po-tree-view-item-content': {
|
|
83
|
+
'--border-radius': string;
|
|
84
|
+
};
|
|
85
|
+
'.po-rich-text-body': {
|
|
86
|
+
'border-radius': string;
|
|
87
|
+
};
|
|
88
|
+
'.po-rich-text-toolbar': {
|
|
89
|
+
'border-radius': string;
|
|
90
|
+
};
|
|
91
|
+
'.po-combo-clean:focus, .po-search:not([p-search-type=locate]) .po-search-button.po-search-button-clean:focus': {
|
|
92
|
+
'border-radius': string;
|
|
93
|
+
};
|
|
94
|
+
'.po-checkbox-outline:is(:focus), .po-checkbox-outline:is(:focus-visible), .po-radio-focus > label, .po-switch-container:focus-visible, .po-accordion-manager-button:focus, .po-accordion-manager-button:focus-visible, .po-accordion-item-header-button:focus, .po-accordion-item-header-button:focus-visible, .po-stepper-step:not(.po-stepper-step-disabled):focus-visible': {
|
|
95
|
+
'border-radius': string;
|
|
96
|
+
};
|
|
97
|
+
'.po-listbox': {
|
|
98
|
+
'border-radius': string;
|
|
99
|
+
};
|
|
100
|
+
'.po-item-list, .po-listbox-dropdown .po-item-list, .cdk-option:focus-visible.po-listbox-group-header,.po-listbox-dropdown :active:is(.po-item-list__action, .po-item-list__option).po-item-list__dangers': {
|
|
101
|
+
'border-radius': string;
|
|
102
|
+
};
|
|
103
|
+
'.po-popover:has(po-listbox), .po-popup:has(po-listbox)': {
|
|
104
|
+
'border-radius': string;
|
|
105
|
+
};
|
|
106
|
+
'po-header .po-popover': {
|
|
107
|
+
'border-radius': string;
|
|
108
|
+
};
|
|
109
|
+
'.po-chart-container-gauge': {
|
|
110
|
+
'border-radius': string;
|
|
111
|
+
};
|
|
112
|
+
'po-container, po-modal, po-widget': {
|
|
113
|
+
'--border-radius': string;
|
|
114
|
+
'border-radius': string;
|
|
115
|
+
};
|
|
116
|
+
'.po-disclaimer-group': {
|
|
117
|
+
'border-radius': string;
|
|
118
|
+
};
|
|
119
|
+
'.po-breadcrumb-items po-link .po-link:focus-visible, .po-breadcrumb-items po-link .po-link:focus, .po-breadcrumb-item.po-clickable po-link .po-link:focus, .po-breadcrumb-item.po-clickable po-link .po-link:active, .po-breadcrumb-item.po-clickable po-link .po-link:focus-visible, .po-breadcrumb-favorite:focus, .po-breadcrumb-item-activate:focus, .po-breadcrumb-icon-more:focus, .po-breadcrumb-item-activate:focus-visible, .po-breadcrumb-icon-more:focus-visible': {
|
|
120
|
+
'border-radius': string;
|
|
121
|
+
};
|
|
122
|
+
'po-skeleton': {
|
|
123
|
+
'--border-radius': string;
|
|
124
|
+
'--border-radius-text': string;
|
|
125
|
+
'--border-radius-primary': string;
|
|
126
|
+
};
|
|
127
|
+
'.po-user-guide-popover': {
|
|
128
|
+
'--button-border-radius': string;
|
|
129
|
+
};
|
|
130
|
+
'po-container': {
|
|
131
|
+
'--background': string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
onRoot: {
|
|
135
|
+
'--color-page-background-color-page': string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
@@ -25,6 +25,9 @@ declare const poThemeDefaultDarkValuesAA: {
|
|
|
25
25
|
'po-badge[p-status=warning]': {
|
|
26
26
|
'--color': string;
|
|
27
27
|
};
|
|
28
|
+
'po-button': {
|
|
29
|
+
'--color-glow-ring': string;
|
|
30
|
+
};
|
|
28
31
|
'po-link': {
|
|
29
32
|
'--text-color-visited': string;
|
|
30
33
|
};
|
|
@@ -35,9 +38,6 @@ declare const poThemeDefaultDarkValuesAA: {
|
|
|
35
38
|
'outline-style': string;
|
|
36
39
|
'outline-offset': string;
|
|
37
40
|
};
|
|
38
|
-
'po-container': {
|
|
39
|
-
'--background': string;
|
|
40
|
-
};
|
|
41
41
|
'div.po-lookup-filter-content input.po-input, input.po-input, po-datepicker, po-datepicker-range, po-decimal, po-email, po-input, po-login, po-lookup, po-number, po-password, po-url, po-combo, po-search, po-select, po-multiselect, po-timepicker': {
|
|
42
42
|
'--background-disabled': string;
|
|
43
43
|
};
|
|
@@ -94,7 +94,6 @@ declare const poThemeDefaultDarkValuesAA: {
|
|
|
94
94
|
'--color-secondary-dark-60-alpha-70': string;
|
|
95
95
|
'--color-tertiary-light-90': string;
|
|
96
96
|
'--color-tertiary-dark-5': string;
|
|
97
|
-
'--color-page-background-color-page': string;
|
|
98
97
|
'--color-toolbar-color-badge-text': string;
|
|
99
98
|
'--shadow-popover-box-shadow': string;
|
|
100
99
|
'--shadow-popover-box-shadow-arrow': string;
|
|
@@ -43,6 +43,10 @@ declare const poThemeDefaultDarkValues: {
|
|
|
43
43
|
'po-badge[p-status=warning]': {
|
|
44
44
|
'--color': string;
|
|
45
45
|
};
|
|
46
|
+
/** BUTTON: brilho do estilo glow permanece claro no tema escuro */
|
|
47
|
+
'po-button': {
|
|
48
|
+
'--color-glow-ring': string;
|
|
49
|
+
};
|
|
46
50
|
'po-link': {
|
|
47
51
|
'--text-color-visited': string;
|
|
48
52
|
};
|
|
@@ -53,9 +57,6 @@ declare const poThemeDefaultDarkValues: {
|
|
|
53
57
|
'outline-style': string;
|
|
54
58
|
'outline-offset': string;
|
|
55
59
|
};
|
|
56
|
-
'po-container': {
|
|
57
|
-
'--background': string;
|
|
58
|
-
};
|
|
59
60
|
'div.po-lookup-filter-content input.po-input, input.po-input, po-datepicker, po-datepicker-range, po-decimal, po-email, po-input, po-login, po-lookup, po-number, po-password, po-url, po-combo, po-search, po-select, po-multiselect, po-timepicker': {
|
|
60
61
|
'--background-disabled': string;
|
|
61
62
|
};
|
|
@@ -98,7 +99,6 @@ declare const poThemeDefaultDarkValues: {
|
|
|
98
99
|
'--color-secondary-dark-60-alpha-70': string;
|
|
99
100
|
'--color-tertiary-light-90': string;
|
|
100
101
|
'--color-tertiary-dark-5': string;
|
|
101
|
-
'--color-page-background-color-page': string;
|
|
102
102
|
'--color-toolbar-color-badge-text': string;
|
|
103
103
|
'--shadow-popover-box-shadow': string;
|
|
104
104
|
'--shadow-popover-box-shadow-arrow': string;
|
|
@@ -9,6 +9,14 @@ export * from './helpers/types/po-theme-dark-defaults.constant';
|
|
|
9
9
|
export * from './helpers/types/po-theme-dark-defaults-AA.constant';
|
|
10
10
|
export * from './helpers/accessibilities/po-theme-default-aaa.constant';
|
|
11
11
|
export * from './helpers/accessibilities/po-theme-default-aa.constant';
|
|
12
|
+
export * from './helpers/shared/base.constant';
|
|
12
13
|
export * from './helpers/po-theme-poui.constant';
|
|
14
|
+
export { poThemeDefault as poThemeDefaultDeprecated, poThemeDefaultDark as poThemeDefaultDarkDeprecated, poThemeDefaultLight as poThemeDefaultLightDeprecated } from './helpers/deprecated/po-theme-poui.constant';
|
|
15
|
+
export { poThemeDefaultBrands as poThemeDefaultBrandsDeprecated, poThemeDefaultActions as poThemeDefaultActionsDeprecated, poThemeDefaultFeedback as poThemeDefaultFeedbackDeprecated, poThemeDefaultNeutrals as poThemeDefaultNeutralsDeprecated, poThemeDefaultLightValues as poThemeDefaultLightValuesDeprecated, poThemeDefaultCategoricals as poThemeDefaultCategoricalsDeprecated, poThemeDefaultOverlayCategoricals as poThemeDefaultOverlayCategoricalsDeprecated } from './helpers/deprecated/types/po-theme-light-defaults.constant';
|
|
16
|
+
export { poThemeDefaultCategoricalsAA as poThemeDefaultCategoricalsAADeprecated, poThemeDefaultOverlayCategoricalsAA as poThemeDefaultOverlayCategoricalsAADeprecated, poThemeDefaultLightValuesAA as poThemeDefaultLightValuesAADeprecated } from './helpers/deprecated/types/po-theme-light-defaults-AA.constant';
|
|
17
|
+
export { poThemeDefaultBrandsDark as poThemeDefaultBrandsDarkDeprecated, poThemeDefaultActionsDark as poThemeDefaultActionsDarkDeprecated, poThemeDefaultFeedbackDark as poThemeDefaultFeedbackDarkDeprecated, poThemeDefaultNeutralsDark as poThemeDefaultNeutralsDarkDeprecated, poThemeDefaultDarkValues as poThemeDefaultDarkValuesDeprecated, poThemeDefaultCategoricalsDark as poThemeDefaultCategoricalsDarkDeprecated, poThemeDefaultCategoricalsOverlayDark as poThemeDefaultCategoricalsOverlayDarkDeprecated } from './helpers/deprecated/types/po-theme-dark-defaults.constant';
|
|
18
|
+
export { poThemeDefaultCategoricalsDarkAA as poThemeDefaultCategoricalsDarkAADeprecated, poThemeDefaultCategoricalsOverlayDarkAA as poThemeDefaultCategoricalsOverlayDarkAADeprecated, poThemeDefaultDarkValuesAA as poThemeDefaultDarkValuesAADeprecated } from './helpers/deprecated/types/po-theme-dark-defaults-AA.constant';
|
|
19
|
+
export { poThemeDefaultAA as poThemeDefaultAADeprecated } from './helpers/deprecated/accessibilities/po-theme-default-aa.constant';
|
|
20
|
+
export { poThemeDefaultAAA as poThemeDefaultAAADeprecated } from './helpers/deprecated/accessibilities/po-theme-default-aaa.constant';
|
|
13
21
|
export * from './po-theme.service';
|
|
14
22
|
export * from './po-theme.module';
|
|
@@ -17,6 +17,21 @@ export interface PoTheme {
|
|
|
17
17
|
type: PoThemeType | Array<PoThemeType>;
|
|
18
18
|
/** Tipo e nível de acessibilidade de tema ativo */
|
|
19
19
|
active?: PoThemeTypeEnum | PoThemeActive;
|
|
20
|
+
/**
|
|
21
|
+
* Define se o tema herda a identidade visual do tema padrão do PO UI.
|
|
22
|
+
*
|
|
23
|
+
* A identidade visual corresponde aos arredondamentos dos componentes e à cor de fundo da página definidos
|
|
24
|
+
* pelo tema padrão. Os estilos estruturais (ex.: espessura de outline, adensamento e ajustes de light/dark)
|
|
25
|
+
* são aplicados em qualquer caso.
|
|
26
|
+
*
|
|
27
|
+
* As famílias de fonte do tema padrão não são controladas por esta propriedade: elas são definidas pelo CSS
|
|
28
|
+
* do `@po-ui/style`. Um tema com fontes próprias deve declará-las nos seus tokens.
|
|
29
|
+
*
|
|
30
|
+
* Utilize `false` quando o tema define a própria identidade visual e não deve receber a do tema padrão.
|
|
31
|
+
*
|
|
32
|
+
* @default `true`
|
|
33
|
+
*/
|
|
34
|
+
inheritDefaultStyle?: boolean;
|
|
20
35
|
}
|
|
21
36
|
/**
|
|
22
37
|
* @docsPrivate
|
|
@@ -27,6 +27,7 @@ import { PoTheme, PoThemeActive } from './interfaces/po-theme.interface';
|
|
|
27
27
|
* <example name="po-theme-labs" title="PO Theme Labs">
|
|
28
28
|
* <file name="sample-po-theme-labs/sample-po-theme-labs.component.html"> </file>
|
|
29
29
|
* <file name="sample-po-theme-labs/sample-po-theme-labs.component.ts"> </file>
|
|
30
|
+
* <file name="sample-po-theme-labs/sample-po-theme-labs.constant.ts"> </file>
|
|
30
31
|
* </example>
|
|
31
32
|
*
|
|
32
33
|
*/
|
|
@@ -34,6 +35,12 @@ export declare class PoThemeService {
|
|
|
34
35
|
private readonly document;
|
|
35
36
|
private readonly renderer;
|
|
36
37
|
private theme;
|
|
38
|
+
/**
|
|
39
|
+
* Temas embutidos conhecidos pelo serviço. Ao reidratar a preferência salva no
|
|
40
|
+
* `localStorage`, as cores são sempre resolvidas a partir destas constantes (código atual),
|
|
41
|
+
* evitando que valores de cor antigos persistidos sejam reaplicados.
|
|
42
|
+
*/
|
|
43
|
+
private readonly builtInThemes;
|
|
37
44
|
constructor(document: Document, rendererFactory: RendererFactory2);
|
|
38
45
|
/**
|
|
39
46
|
* Aplica um tema ao componente de acordo com o tipo de tema e o nível de acessibilidade especificados.
|
|
@@ -185,6 +192,14 @@ export declare class PoThemeService {
|
|
|
185
192
|
*/
|
|
186
193
|
persistThemeActive(): PoTheme;
|
|
187
194
|
private formatTheme;
|
|
195
|
+
/**
|
|
196
|
+
* @docsPrivate
|
|
197
|
+
*
|
|
198
|
+
* Normaliza o nome do tema para a forma utilizada na classe/seletor aplicado ao `<html>`:
|
|
199
|
+
* minúsculas, sem caracteres não alfabéticos e com espaços trocados por hífen.
|
|
200
|
+
* Ex.: `'po-theme'` -> `'potheme'`.
|
|
201
|
+
*/
|
|
202
|
+
private normalizeThemeName;
|
|
188
203
|
applyTheme(theme?: any): any;
|
|
189
204
|
/**
|
|
190
205
|
* Altera o tipo do tema armazenado e aplica os novos estilos ao documento.
|
|
@@ -217,6 +232,18 @@ export declare class PoThemeService {
|
|
|
217
232
|
* @returns {PoTheme} Tema ativo.
|
|
218
233
|
*/
|
|
219
234
|
getThemeActive(): PoTheme;
|
|
235
|
+
/**
|
|
236
|
+
* @docsPrivate
|
|
237
|
+
*
|
|
238
|
+
* Dado o tema persistido no `localStorage`, retorna a constante de tema embutida
|
|
239
|
+
* correspondente (pelo `name`) com os valores de cor atuais do código, preservando o
|
|
240
|
+
* estado ativo (`type`/`a11y`) salvo. Caso não seja um tema embutido conhecido (ex.: tema
|
|
241
|
+
* customizado do consumidor), retorna o próprio objeto persistido inalterado.
|
|
242
|
+
*
|
|
243
|
+
* @param persistedTheme Tema lido do `localStorage`.
|
|
244
|
+
* @returns {PoTheme} Tema resolvido para aplicação.
|
|
245
|
+
*/
|
|
246
|
+
private resolveBuiltInTheme;
|
|
220
247
|
/**
|
|
221
248
|
* @docsPrivate
|
|
222
249
|
*
|
|
@@ -296,5 +323,35 @@ export declare class PoThemeService {
|
|
|
296
323
|
*/
|
|
297
324
|
setCurrentThemeA11y(a11y?: PoThemeA11yEnum): void;
|
|
298
325
|
resetBaseTheme(): void;
|
|
326
|
+
private setDefaultBaseStyleForCurrentTheme;
|
|
327
|
+
/**
|
|
328
|
+
* @docsPrivate
|
|
329
|
+
*
|
|
330
|
+
* Retorna o nome do tema declarado pelo CSS estático carregado na aplicação, lido do token `--po-theme-name`.
|
|
331
|
+
* É usado quando não há tema ativo (nenhuma chamada a `setTheme` e nada salvo no `localStorage`), para que a
|
|
332
|
+
* base de estilos corresponda ao CSS que a aplicação carrega.
|
|
333
|
+
*
|
|
334
|
+
* Retorna string vazia quando o token não está disponível (ex.: CSS sem o token ou ambiente sem `window`).
|
|
335
|
+
*/
|
|
336
|
+
private getStaticThemeName;
|
|
337
|
+
/**
|
|
338
|
+
* @docsPrivate
|
|
339
|
+
*
|
|
340
|
+
* Indica se o tema herda a identidade visual do tema padrão. Temas sem a propriedade
|
|
341
|
+
* `inheritDefaultStyle` herdam (comportamento padrão).
|
|
342
|
+
*/
|
|
343
|
+
private inheritsDefaultStyle;
|
|
344
|
+
/**
|
|
345
|
+
* @docsPrivate
|
|
346
|
+
*
|
|
347
|
+
* Aplica a base de estilos do tema padrão.
|
|
348
|
+
*
|
|
349
|
+
* A identidade visual (`poThemeSharedBase`) fica apenas no seletor `:root`, que tem a menor especificidade da
|
|
350
|
+
* base. Assim, qualquer personalização aplicada com `setPerComponentAndOnRoot`, em qualquer nível, prevalece
|
|
351
|
+
* sobre ela. As fontes do tema padrão não são aplicadas aqui: elas vêm do CSS do `@po-ui/style`.
|
|
352
|
+
*
|
|
353
|
+
* @param inheritIdentity Quando `false`, aplica apenas os estilos estruturais, sem a identidade visual.
|
|
354
|
+
*/
|
|
299
355
|
private setDefaultBaseStyle;
|
|
356
|
+
private setDefaultBaseStyleDeprecated;
|
|
300
357
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Renderer2 } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* @docsPrivate
|
|
4
|
+
*
|
|
5
|
+
* @description
|
|
6
|
+
*
|
|
7
|
+
* Registra se o último `mousedown` do documento ocorreu dentro do picker (calendário).
|
|
8
|
+
*
|
|
9
|
+
* Ao pressionar o mouse dentro do calendário e soltar fora dele, o navegador dispara o `click` fora do calendário.
|
|
10
|
+
* Esse `click` não deve fechar o calendário, por isso o componente deve consultar `consume` antes de fechá-lo.
|
|
11
|
+
*/
|
|
12
|
+
export declare class PoPickerMouseDownGuard {
|
|
13
|
+
private readonly isInsidePicker;
|
|
14
|
+
private isMouseDownOnPicker;
|
|
15
|
+
private removeListener;
|
|
16
|
+
/**
|
|
17
|
+
* @param isInsidePicker Função que indica se o alvo do `mousedown` pertence ao picker.
|
|
18
|
+
*/
|
|
19
|
+
constructor(isInsidePicker: (target: EventTarget) => boolean);
|
|
20
|
+
listen(renderer: Renderer2): void;
|
|
21
|
+
register(target: EventTarget): void;
|
|
22
|
+
/**
|
|
23
|
+
* Retorna se o último `mousedown` ocorreu no picker e reinicia o estado, valendo apenas para o `click` seguinte.
|
|
24
|
+
*/
|
|
25
|
+
consume(): boolean;
|
|
26
|
+
destroy(): void;
|
|
27
|
+
}
|