@po-ui/ng-components 22.0.0-rc.0 → 22.0.0

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.
Files changed (179) hide show
  1. package/README.md +1 -1
  2. package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-B6drxxln.mjs → po-ui-ng-components-po-chart-modal-table.component-Cozxgj7w.mjs} +4 -4
  3. package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-B6drxxln.mjs.map → po-ui-ng-components-po-chart-modal-table.component-Cozxgj7w.mjs.map} +1 -1
  4. package/fesm2022/po-ui-ng-components.mjs +3072 -1450
  5. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  6. package/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.d.ts +2 -0
  7. package/lib/components/po-accordion/po-accordion.component.d.ts +2 -0
  8. package/lib/components/po-avatar/po-avatar.component.d.ts +2 -0
  9. package/lib/components/po-badge/po-badge.component.d.ts +2 -0
  10. package/lib/components/po-breadcrumb/po-breadcrumb.component.d.ts +2 -0
  11. package/lib/components/po-button/enums/po-button-kind.enum.d.ts +7 -1
  12. package/lib/components/po-button/po-button-base.component.d.ts +27 -3
  13. package/lib/components/po-button/po-button.component.d.ts +4 -0
  14. package/lib/components/po-button-group/po-button-group.component.d.ts +2 -0
  15. package/lib/components/po-calendar/po-calendar-base.component.d.ts +5 -0
  16. package/lib/components/po-calendar/po-calendar-header/po-calendar-header.component.d.ts +2 -0
  17. package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +12 -0
  18. package/lib/components/po-calendar/po-calendar.component.d.ts +13 -0
  19. package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +29 -2
  20. package/lib/components/po-chart/po-chart.component.d.ts +2 -0
  21. package/lib/components/po-container/po-container.component.d.ts +2 -0
  22. package/lib/components/po-context-menu/po-context-menu.component.d.ts +2 -0
  23. package/lib/components/po-context-tabs/po-context-tabs.component.d.ts +2 -0
  24. package/lib/components/po-disclaimer-group/po-disclaimer-group.component.d.ts +1 -0
  25. package/lib/components/po-divider/po-divider.component.d.ts +2 -0
  26. package/lib/components/po-dropdown/po-dropdown.component.d.ts +2 -0
  27. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +1 -0
  28. package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.d.ts +2 -0
  29. package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +2 -0
  30. package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +2 -0
  31. package/lib/components/po-field/po-combo/po-combo-option-template/po-combo-option-template.directive.d.ts +2 -0
  32. package/lib/components/po-field/po-combo/po-combo.component.d.ts +2 -0
  33. package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +15 -4
  34. package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +7 -0
  35. package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +3 -0
  36. package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +4 -0
  37. package/lib/components/po-field/po-datetimepicker/po-datetimepicker-base.component.d.ts +5 -0
  38. package/lib/components/po-field/po-datetimepicker/po-datetimepicker.component.d.ts +7 -0
  39. package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +2 -0
  40. package/lib/components/po-field/po-email/po-email.component.d.ts +2 -0
  41. package/lib/components/po-field/po-field-validate.model.d.ts +2 -0
  42. package/lib/components/po-field/po-input/po-input.component.d.ts +2 -0
  43. package/lib/components/po-field/po-login/po-login.component.d.ts +1 -0
  44. package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +2 -0
  45. package/lib/components/po-field/po-multiselect/po-multiselect-option-template/po-multiselect-option-template.directive.d.ts +1 -0
  46. package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +1 -0
  47. package/lib/components/po-field/po-number/po-number.component.d.ts +2 -0
  48. package/lib/components/po-field/po-password/po-password.component.d.ts +2 -0
  49. package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +1 -0
  50. package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +2 -0
  51. package/lib/components/po-field/po-search-ai/po-search-ai.component.d.ts +2 -0
  52. package/lib/components/po-field/po-select/po-select.component.d.ts +1 -0
  53. package/lib/components/po-field/po-switch/po-switch.component.d.ts +2 -0
  54. package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +1 -0
  55. package/lib/components/po-field/po-timepicker/po-timepicker.component.d.ts +2 -0
  56. package/lib/components/po-field/po-upload/po-upload.component.d.ts +2 -0
  57. package/lib/components/po-field/po-url/po-url.component.d.ts +1 -0
  58. package/lib/components/po-filter-chip/po-filter-chip.component.d.ts +2 -0
  59. package/lib/components/po-grid/po-grid.component.d.ts +2 -0
  60. package/lib/components/po-header/po-header.component.d.ts +1 -0
  61. package/lib/components/po-helper/po-helper.component.d.ts +1 -0
  62. package/lib/components/po-image/po-image.component.d.ts +1 -0
  63. package/lib/components/po-info/po-info.component.d.ts +2 -0
  64. package/lib/components/po-link/po-link.component.d.ts +2 -0
  65. package/lib/components/po-list-view/po-list-view-content-template/po-list-view-content-template.directive.d.ts +2 -0
  66. package/lib/components/po-list-view/po-list-view-detail-template/po-list-view-detail-template.directive.d.ts +2 -0
  67. package/lib/components/po-list-view/po-list-view.component.d.ts +2 -0
  68. package/lib/components/po-listbox/po-item-list/po-item-list.component.d.ts +1 -0
  69. package/lib/components/po-listbox/po-listbox.component.d.ts +1 -0
  70. package/lib/components/po-loading/po-loading-overlay/po-loading-overlay.component.d.ts +2 -0
  71. package/lib/components/po-menu/po-menu-header-template/po-menu-header-template.directive.d.ts +2 -0
  72. package/lib/components/po-menu/po-menu.component.d.ts +2 -0
  73. package/lib/components/po-menu-panel/po-menu-panel.component.d.ts +2 -0
  74. package/lib/components/po-modal/po-modal-footer/po-modal-footer.component.d.ts +2 -0
  75. package/lib/components/po-modal/po-modal.component.d.ts +2 -0
  76. package/lib/components/po-navbar/po-navbar.component.d.ts +2 -0
  77. package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +2 -0
  78. package/lib/components/po-page/po-page-detail/po-page-detail.component.d.ts +2 -0
  79. package/lib/components/po-page/po-page-edit/po-page-edit.component.d.ts +2 -0
  80. package/lib/components/po-page/po-page-list/po-page-list.component.d.ts +2 -0
  81. package/lib/components/po-page/po-page-slide/po-page-slide-footer/po-page-slide-footer.component.d.ts +2 -0
  82. package/lib/components/po-page/po-page-slide/po-page-slide.component.d.ts +2 -0
  83. package/lib/components/po-popover/po-popover.component.d.ts +2 -0
  84. package/lib/components/po-popup/po-popup.component.d.ts +1 -0
  85. package/lib/components/po-progress/po-progress.component.d.ts +1 -0
  86. package/lib/components/po-search/po-search.component.d.ts +1 -0
  87. package/lib/components/po-skeleton/po-skeleton.component.d.ts +2 -0
  88. package/lib/components/po-slide/directives/po-slide-content-template.directive.d.ts +2 -0
  89. package/lib/components/po-slide/po-slide.component.d.ts +2 -0
  90. package/lib/components/po-stepper/po-step/po-step.component.d.ts +2 -0
  91. package/lib/components/po-stepper/po-stepper.component.d.ts +2 -0
  92. package/lib/components/po-table/po-table-cell-template/po-table-cell-template.directive.d.ts +2 -0
  93. package/lib/components/po-table/po-table-column-template/po-table-column-template.directive.d.ts +2 -0
  94. package/lib/components/po-table/po-table-row-template/po-table-row-template.directive.d.ts +2 -0
  95. package/lib/components/po-table/po-table.component.d.ts +2 -0
  96. package/lib/components/po-tabs/po-tab/po-tab.component.d.ts +2 -0
  97. package/lib/components/po-tabs/po-tabs.component.d.ts +3 -0
  98. package/lib/components/po-tag/po-tag.component.d.ts +2 -0
  99. package/lib/components/po-toaster/po-toaster.component.d.ts +2 -0
  100. package/lib/components/po-toolbar/po-toolbar.component.d.ts +2 -0
  101. package/lib/components/po-tree-view/po-tree-view.component.d.ts +2 -0
  102. package/lib/components/po-widget/po-widget.component.d.ts +1 -0
  103. package/lib/directives/po-drag-drop/po-drag.directive.d.ts +2 -0
  104. package/lib/directives/po-drag-drop/po-drop-list.directive.d.ts +3 -0
  105. package/lib/directives/po-tooltip/po-tooltip.directive.d.ts +2 -0
  106. package/lib/interceptors/po-http-interceptor/po-http-interceptor.service.d.ts +2 -0
  107. package/lib/interceptors/po-http-request/po-http-request-interceptor.service.d.ts +2 -0
  108. package/lib/po.module.d.ts +2 -0
  109. package/lib/services/po-dialog/po-dialog.service.d.ts +4 -0
  110. package/lib/services/po-i18n/po-i18n.service.d.ts +2 -0
  111. package/lib/services/po-media-query/po-media-query.service.d.ts +1 -0
  112. package/lib/services/po-notification/po-notification.service.d.ts +3 -0
  113. package/lib/services/po-theme/helpers/accessibilities/po-theme-default-aaa.constant.d.ts +1 -8
  114. package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-default-aa.constant.d.ts +20 -0
  115. package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-default-aaa.constant.d.ts +18 -0
  116. package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-density.constant.d.ts +12 -0
  117. package/lib/services/po-theme/helpers/deprecated/po-theme-poui.constant.d.ts +27 -0
  118. package/lib/services/po-theme/helpers/deprecated/types/po-theme-dark-defaults-AA.constant.d.ts +129 -0
  119. package/lib/services/po-theme/helpers/deprecated/types/po-theme-dark-defaults.constant.d.ts +167 -0
  120. package/lib/services/po-theme/helpers/deprecated/types/po-theme-light-defaults-AA.constant.d.ts +49 -0
  121. package/lib/services/po-theme/helpers/deprecated/types/po-theme-light-defaults.constant.d.ts +81 -0
  122. package/lib/services/po-theme/helpers/shared/base.constant.d.ts +146 -0
  123. package/lib/services/po-theme/helpers/types/po-theme-dark-defaults-AA.constant.d.ts +3 -4
  124. package/lib/services/po-theme/helpers/types/po-theme-dark-defaults.constant.d.ts +4 -4
  125. package/lib/services/po-theme/index.d.ts +8 -0
  126. package/lib/services/po-theme/interfaces/po-theme.interface.d.ts +15 -0
  127. package/lib/services/po-theme/po-theme.service.d.ts +64 -0
  128. package/lib/services/po-user-guide/po-user-guide.service.d.ts +2 -0
  129. package/lib/utils/po-picker-mouse-down-guard.d.ts +27 -0
  130. package/lib/utils/util.d.ts +16 -0
  131. package/package.json +4 -4
  132. package/po-ui-ng-components-22.0.0.tgz +0 -0
  133. package/schematics/ng-add/index.js +1 -1
  134. package/schematics/ng-add/setup-project.d.ts +2 -2
  135. package/schematics/ng-update/v14/index.js +1 -1
  136. package/schematics/ng-update/v15/index.js +1 -1
  137. package/schematics/ng-update/v16/index.js +1 -1
  138. package/schematics/ng-update/v17/index.js +1 -1
  139. package/schematics/ng-update/v18/index.d.ts +2 -2
  140. package/schematics/ng-update/v18/index.js +2 -2
  141. package/schematics/ng-update/v19/index.d.ts +2 -2
  142. package/schematics/ng-update/v19/index.js +2 -2
  143. package/schematics/ng-update/v2/index.js +1 -1
  144. package/schematics/ng-update/v20/index.d.ts +2 -2
  145. package/schematics/ng-update/v20/index.js +2 -2
  146. package/schematics/ng-update/v21/index.js +1 -1
  147. package/schematics/ng-update/v22/index.d.ts +20 -4
  148. package/schematics/ng-update/v22/index.js +37 -11
  149. package/schematics/ng-update/v22/index.js.map +1 -1
  150. package/schematics/ng-update/v22/migration-report.d.ts +36 -10
  151. package/schematics/ng-update/v22/migration-report.js +25 -11
  152. package/schematics/ng-update/v22/migration-report.js.map +1 -1
  153. package/schematics/ng-update/v22/theme-deprecated/changes.d.ts +24 -0
  154. package/schematics/ng-update/v22/theme-deprecated/changes.js +58 -0
  155. package/schematics/ng-update/v22/theme-deprecated/changes.js.map +1 -0
  156. package/schematics/ng-update/v22/theme-deprecated/index.d.ts +14 -0
  157. package/schematics/ng-update/v22/theme-deprecated/index.js +291 -0
  158. package/schematics/ng-update/v22/theme-deprecated/index.js.map +1 -0
  159. package/schematics/ng-update/v22/theme-deprecated/prompt.d.ts +49 -0
  160. package/schematics/ng-update/v22/theme-deprecated/prompt.js +59 -0
  161. package/schematics/ng-update/v22/theme-deprecated/prompt.js.map +1 -0
  162. package/schematics/ng-update/v22/theme-deprecated/theme-bootstrap-migration.d.ts +25 -0
  163. package/schematics/ng-update/v22/theme-deprecated/theme-bootstrap-migration.js +198 -0
  164. package/schematics/ng-update/v22/theme-deprecated/theme-bootstrap-migration.js.map +1 -0
  165. package/schematics/ng-update/v22/theme-deprecated/theme-style-migration.d.ts +23 -0
  166. package/schematics/ng-update/v22/theme-deprecated/theme-style-migration.js +64 -0
  167. package/schematics/ng-update/v22/theme-deprecated/theme-style-migration.js.map +1 -0
  168. package/schematics/ng-update/v22/theme-deprecated/theme-ts-migration.d.ts +29 -0
  169. package/schematics/ng-update/v22/theme-deprecated/theme-ts-migration.js +325 -0
  170. package/schematics/ng-update/v22/theme-deprecated/theme-ts-migration.js.map +1 -0
  171. package/schematics/ng-update/v22/theme-deprecated/ts-utils.d.ts +58 -0
  172. package/schematics/ng-update/v22/theme-deprecated/ts-utils.js +112 -0
  173. package/schematics/ng-update/v22/theme-deprecated/ts-utils.js.map +1 -0
  174. package/schematics/ng-update/v3/index.js +1 -1
  175. package/schematics/ng-update/v4/index.js +1 -1
  176. package/schematics/ng-update/v5/index.js +1 -1
  177. package/schematics/ng-update/v6/index.js +1 -1
  178. package/types/po-ui-ng-components.d.ts +18115 -17107
  179. package/po-ui-ng-components-22.0.0-rc.0.tgz +0 -0
@@ -0,0 +1,146 @@
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-rich-text[p-size="small"] .po-rich-text-body': {
92
+ 'border-radius': string;
93
+ };
94
+ 'po-rich-text[p-size="small"] .po-rich-text-toolbar': {
95
+ 'border-radius': string;
96
+ };
97
+ '.po-combo-clean:focus, .po-search:not([p-search-type=locate]) .po-search-button.po-search-button-clean:focus': {
98
+ 'border-radius': string;
99
+ };
100
+ '.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': {
101
+ 'border-radius': string;
102
+ };
103
+ '.po-listbox': {
104
+ 'border-radius': string;
105
+ };
106
+ '.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': {
107
+ 'border-radius': string;
108
+ };
109
+ '.po-popover:has(po-listbox), .po-popup:has(po-listbox)': {
110
+ 'border-radius': string;
111
+ };
112
+ 'po-header .po-popover': {
113
+ 'border-radius': string;
114
+ };
115
+ '.po-chart-container-gauge': {
116
+ 'border-radius': string;
117
+ };
118
+ 'po-container, po-modal, po-widget': {
119
+ '--border-radius': string;
120
+ 'border-radius': string;
121
+ };
122
+ '.po-disclaimer-group': {
123
+ 'border-radius': string;
124
+ };
125
+ '.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': {
126
+ 'border-radius': string;
127
+ };
128
+ 'po-skeleton': {
129
+ '--border-radius': string;
130
+ '--border-radius-text': string;
131
+ '--border-radius-primary': string;
132
+ };
133
+ '.po-user-guide-popover': {
134
+ '--button-border-radius': string;
135
+ };
136
+ 'po-container': {
137
+ '--background': string;
138
+ };
139
+ '.po-link': {
140
+ 'text-decoration-thickness': string;
141
+ };
142
+ };
143
+ onRoot: {
144
+ '--color-page-background-color-page': string;
145
+ };
146
+ };
@@ -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
@@ -16,6 +16,13 @@ import { PoTheme, PoThemeActive } from './interfaces/po-theme.interface';
16
16
  * O serviço também possibilita configurar a **densidade de espaçamentos**, permitindo ajustar o espaço entre e dentro dos
17
17
  * componentes. Essa configuração pode ser utilizada com qualquer nível de acessibilidade.
18
18
  *
19
+ * > **Importante:** o novo tema padrão do PO UI (EVO, `poThemeDefault`) tem duas partes: as **cores**, que vêm do CSS
20
+ * `po-theme-default.min.css` do `@po-ui/style`, e os **ajustes de cada componente** (raios de borda, botão `glow`,
21
+ * campos e outros), que são aplicados por este serviço. Para ter o tema EVO completo, basta importar o `PoModule` e
22
+ * carregar o CSS `po-theme-default.min.css`: o `PoModule` já inicia o `PoThemeService`, que aplica os ajustes sozinho.
23
+ * Use o `setTheme` para escolher o modo claro ou escuro, o nível de acessibilidade ou o tema depreciado. Se a aplicação
24
+ * importar só módulos de componentes, sem o `PoModule` e sem injetar este serviço, ela recebe apenas as cores do EVO.
25
+ *
19
26
  * > Observação: a customização das cores de `feedback` não é recomendada por motivos de acessibilidade e usabilidade.
20
27
  *
21
28
  * > Para saber mais sobre como customizar o tema padrão, consulte o item
@@ -29,11 +36,18 @@ import { PoTheme, PoThemeActive } from './interfaces/po-theme.interface';
29
36
  * <file name="sample-po-theme-labs/sample-po-theme-labs.component.ts"> </file>
30
37
  * </example>
31
38
  *
39
+ * @docsCategory services
32
40
  */
33
41
  export declare class PoThemeService {
34
42
  private readonly document;
35
43
  private readonly renderer;
36
44
  private theme;
45
+ /**
46
+ * Temas embutidos conhecidos pelo serviço. Ao reidratar a preferência salva no
47
+ * `localStorage`, as cores são sempre resolvidas a partir destas constantes (código atual),
48
+ * evitando que valores de cor antigos persistidos sejam reaplicados.
49
+ */
50
+ private readonly builtInThemes;
37
51
  constructor(document: Document, rendererFactory: RendererFactory2);
38
52
  /**
39
53
  * Aplica um tema ao componente de acordo com o tipo de tema e o nível de acessibilidade especificados.
@@ -185,6 +199,14 @@ export declare class PoThemeService {
185
199
  */
186
200
  persistThemeActive(): PoTheme;
187
201
  private formatTheme;
202
+ /**
203
+ * @docsPrivate
204
+ *
205
+ * Normaliza o nome do tema para a forma utilizada na classe/seletor aplicado ao `<html>`:
206
+ * minúsculas, sem caracteres não alfabéticos e com espaços trocados por hífen.
207
+ * Ex.: `'po-theme'` -> `'potheme'`.
208
+ */
209
+ private normalizeThemeName;
188
210
  applyTheme(theme?: any): any;
189
211
  /**
190
212
  * Altera o tipo do tema armazenado e aplica os novos estilos ao documento.
@@ -217,6 +239,18 @@ export declare class PoThemeService {
217
239
  * @returns {PoTheme} Tema ativo.
218
240
  */
219
241
  getThemeActive(): PoTheme;
242
+ /**
243
+ * @docsPrivate
244
+ *
245
+ * Dado o tema persistido no `localStorage`, retorna a constante de tema embutida
246
+ * correspondente (pelo `name`) com os valores de cor atuais do código, preservando o
247
+ * estado ativo (`type`/`a11y`) salvo. Caso não seja um tema embutido conhecido (ex.: tema
248
+ * customizado do consumidor), retorna o próprio objeto persistido inalterado.
249
+ *
250
+ * @param persistedTheme Tema lido do `localStorage`.
251
+ * @returns {PoTheme} Tema resolvido para aplicação.
252
+ */
253
+ private resolveBuiltInTheme;
220
254
  /**
221
255
  * @docsPrivate
222
256
  *
@@ -296,5 +330,35 @@ export declare class PoThemeService {
296
330
  */
297
331
  setCurrentThemeA11y(a11y?: PoThemeA11yEnum): void;
298
332
  resetBaseTheme(): void;
333
+ private setDefaultBaseStyleForCurrentTheme;
334
+ /**
335
+ * @docsPrivate
336
+ *
337
+ * Retorna o nome do tema declarado pelo CSS estático carregado na aplicação, lido do token `--po-theme-name`.
338
+ * É usado quando não há tema ativo (nenhuma chamada a `setTheme` e nada salvo no `localStorage`), para que a
339
+ * base de estilos corresponda ao CSS que a aplicação carrega.
340
+ *
341
+ * Retorna string vazia quando o token não está disponível (ex.: CSS sem o token ou ambiente sem `window`).
342
+ */
343
+ private getStaticThemeName;
344
+ /**
345
+ * @docsPrivate
346
+ *
347
+ * Indica se o tema herda a identidade visual do tema padrão. Temas sem a propriedade
348
+ * `inheritDefaultStyle` herdam (comportamento padrão).
349
+ */
350
+ private inheritsDefaultStyle;
351
+ /**
352
+ * @docsPrivate
353
+ *
354
+ * Aplica a base de estilos do tema padrão.
355
+ *
356
+ * A identidade visual (`poThemeSharedBase`) fica apenas no seletor `:root`, que tem a menor especificidade da
357
+ * base. Assim, qualquer personalização aplicada com `setPerComponentAndOnRoot`, em qualquer nível, prevalece
358
+ * sobre ela. As fontes do tema padrão não são aplicadas aqui: elas vêm do CSS do `@po-ui/style`.
359
+ *
360
+ * @param inheritIdentity Quando `false`, aplica apenas os estilos estruturais, sem a identidade visual.
361
+ */
299
362
  private setDefaultBaseStyle;
363
+ private setDefaultBaseStyleDeprecated;
300
364
  }
@@ -21,6 +21,8 @@ import { PoUserGuideOptions, PoUserGuideStep } from './interfaces';
21
21
  * <file name="sample-po-user-guide-onboarding/sample-po-user-guide-onboarding.component.html"> </file>
22
22
  * <file name="sample-po-user-guide-onboarding/sample-po-user-guide-onboarding.component.ts"> </file>
23
23
  * </example>
24
+ *
25
+ * @docsCategory services
24
26
  */
25
27
  export declare class PoUserGuideService extends PoUserGuideBaseService {
26
28
  private readonly sanitizer;
@@ -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
+ }
@@ -54,6 +54,21 @@ export declare function isTypeof(object: any, type: any): boolean;
54
54
  */
55
55
  export declare function callFunction(fn: any, context: any, param?: any): void;
56
56
  export declare function convertIsoToDate(value: string, start: boolean, end: boolean): Date;
57
+ /**
58
+ * Cria uma data local considerando os anos entre 0 e 99, pois o `new Date` do javascript
59
+ * transforma esses anos para 19XX.
60
+ *
61
+ * @param year Ano
62
+ * @param month Mês (0 a 11)
63
+ * @param day Dia
64
+ */
65
+ export declare function createDate(year: number, month: number, day: number): Date;
66
+ /**
67
+ * Verifica se o ano é um número inteiro entre 0 e 9999, intervalo suportado pelo formato `yyyy`.
68
+ *
69
+ * @param year Ano
70
+ */
71
+ export declare function isValidYear(year: number): boolean;
57
72
  export declare function convertDateToISODate(date: Date): string;
58
73
  export declare function convertDateToISOExtended(date: Date, time?: string): string;
59
74
  /**
@@ -318,6 +333,7 @@ export declare const PoUtils: {
318
333
  convertImageToBase64: typeof convertImageToBase64;
319
334
  convertToBoolean: typeof convertToBoolean;
320
335
  convertToInt: typeof convertToInt;
336
+ createDate: typeof createDate;
321
337
  formatYear: typeof formatYear;
322
338
  getA11yLevel: typeof getA11yLevel;
323
339
  getBrowserLanguage: typeof getBrowserLanguage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@po-ui/ng-components",
3
- "version": "22.0.0-rc.0",
3
+ "version": "22.0.0",
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": "~22.2.1",
25
- "@po-ui/style": "22.0.0-rc.0",
26
- "@po-ui/ng-schematics": "22.0.0-rc.0",
25
+ "@po-ui/style": "22.0.0",
26
+ "@po-ui/ng-schematics": "22.0.0",
27
27
  "driver.js": "~1.4.0",
28
28
  "echarts": "^6.1.0",
29
29
  "tslib": "^2.6.2"
@@ -37,7 +37,7 @@
37
37
  "@angular/platform-browser": "^22",
38
38
  "@angular/router": "^22",
39
39
  "@angular-devkit/schematics": "^22",
40
- "@po-ui/style": "22.0.0-rc.0",
40
+ "@po-ui/style": "22.0.0",
41
41
  "rxjs": "~7.8.1",
42
42
  "zone.js": "~0.15.0"
43
43
  },
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', '22.0.0-rc.0');
21
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '22.0.0');
22
22
  // install packages
23
23
  context.addTask(new tasks_1.NodePackageInstallTask());
24
24
  };
@@ -7,11 +7,11 @@ import { Rule, Tree } from '@angular-devkit/schematics';
7
7
  * - Add provideZoneChangeDetection: standalone via app.config.ts, module-based via main.ts
8
8
  */
9
9
  export default function (options: any): Rule;
10
- export declare function addImportOnly(options: any, moduleNames: string | Array<string>, importPath: string): (host: Tree) => import("@angular-devkit/schematics/src/tree/interface").Tree;
10
+ export declare function addImportOnly(options: any, moduleNames: string | Array<string>, importPath: string): Rule;
11
11
  export declare function addProviderToAppModule(options: any, provider: {
12
12
  provide: string;
13
13
  useValue: string;
14
- } | string): (host: Tree) => import("@angular-devkit/schematics/src/tree/interface").Tree;
14
+ } | string): Rule;
15
15
  export declare function addProviderToModuleProvider(tree: Tree, modulePath: string, provider: {
16
16
  provide: string;
17
17
  useValue: string;
@@ -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)('22.0.0-rc.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('22.0.0', 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)('22.0.0-rc.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
14
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('22.0.0', 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)('22.0.0-rc.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('22.0.0', 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)('22.0.0-rc.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('22.0.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {
@@ -1,10 +1,10 @@
1
1
  import { Rule, Tree } from '@angular-devkit/schematics';
2
2
  export default function (options: any): Rule;
3
- export declare function addImportOnly(_: any, moduleNames: string | Array<string>, importPath: string): (host: Tree) => import("@angular-devkit/schematics/src/tree/interface").Tree;
3
+ export declare function addImportOnly(_: any, moduleNames: string | Array<string>, importPath: string): Rule;
4
4
  export declare function addProviderToAppModule(_: any, provider: {
5
5
  provide: string;
6
6
  useValue: string;
7
- } | string): (host: Tree) => import("@angular-devkit/schematics/src/tree/interface").Tree;
7
+ } | string): Rule;
8
8
  export declare function addProviderToModuleProvider(tree: Tree, modulePath: string, provider: {
9
9
  provide: string;
10
10
  useValue: string;
@@ -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)('22.0.0-rc.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('22.0.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
44
44
  }
45
45
  else {
46
46
  return (0, schematics_1.chain)([
47
- (0, package_config_1.updatePackageJson)('22.0.0-rc.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('22.0.0', changes_1.updateDepedenciesVersion),
48
48
  addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
49
49
  addProviderToAppModule(options, newProviderDictionary),
50
50
  updateAppConfigFileRule(),
@@ -1,10 +1,10 @@
1
1
  import { Rule, Tree } from '@angular-devkit/schematics';
2
2
  export default function (options: any): Rule;
3
- export declare function addImportOnly(_: any, moduleNames: string | Array<string>, importPath: string): (host: Tree) => import("@angular-devkit/schematics/src/tree/interface").Tree;
3
+ export declare function addImportOnly(_: any, moduleNames: string | Array<string>, importPath: string): Rule;
4
4
  export declare function addProviderToAppModule(_: any, provider: {
5
5
  provide: string;
6
6
  useValue: string;
7
- } | string): (host: Tree) => import("@angular-devkit/schematics/src/tree/interface").Tree;
7
+ } | string): Rule;
8
8
  export declare function addProviderToModuleProvider(tree: Tree, modulePath: string, provider: {
9
9
  provide: string;
10
10
  useValue: string;
@@ -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)('22.0.0-rc.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('22.0.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
44
44
  }
45
45
  else {
46
46
  return (0, schematics_1.chain)([
47
- (0, package_config_1.updatePackageJson)('22.0.0-rc.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('22.0.0', 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('22.0.0-rc.0', changes_1.dependeciesChanges),
13
+ updatePackageJson('22.0.0', 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(),
@@ -1,10 +1,10 @@
1
1
  import { Rule, Tree } from '@angular-devkit/schematics';
2
2
  export default function (options: any): Rule;
3
- export declare function addImportOnly(_: any, moduleNames: string | Array<string>, importPath: string): (host: Tree) => import("@angular-devkit/schematics/src/tree/interface").Tree;
3
+ export declare function addImportOnly(_: any, moduleNames: string | Array<string>, importPath: string): Rule;
4
4
  export declare function addProviderToAppModule(_: any, provider: {
5
5
  provide: string;
6
6
  useValue: string;
7
- } | string): (host: Tree) => import("@angular-devkit/schematics/src/tree/interface").Tree;
7
+ } | string): Rule;
8
8
  export declare function addProviderToModuleProvider(tree: Tree, modulePath: string, provider: {
9
9
  provide: string;
10
10
  useValue: string;
@@ -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)('22.0.0-rc.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('22.0.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
44
44
  }
45
45
  else {
46
46
  return (0, schematics_1.chain)([
47
- (0, package_config_1.updatePackageJson)('22.0.0-rc.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('22.0.0', 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)('22.0.0-rc.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
12
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('22.0.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
13
13
  });
14
14
  }
15
15
  function default_1() {