@po-ui/ng-components 21.26.0 → 21.28.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 (30) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +167 -219
  2. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  3. package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +1 -0
  4. package/lib/components/po-calendar/po-calendar.component.d.ts +2 -0
  5. package/lib/components/po-field/po-datetimepicker/po-datetimepicker-base.component.d.ts +0 -3
  6. package/lib/components/po-field/po-datetimepicker/po-datetimepicker.component.d.ts +8 -2
  7. package/lib/components/po-field/po-field.module.d.ts +1 -1
  8. package/lib/components/po-field/po-input/po-input.component.d.ts +6 -0
  9. package/lib/components/po-field/po-timepicker/po-timepicker.component.d.ts +1 -0
  10. package/lib/components/po-header/interfaces/po-header-action-tool.interface.d.ts +32 -0
  11. package/lib/components/po-header/interfaces/po-header-user.interface.d.ts +28 -0
  12. package/lib/components/po-popup/po-popup-base.component.d.ts +1 -0
  13. package/package.json +4 -4
  14. package/po-ui-ng-components-21.28.0.tgz +0 -0
  15. package/schematics/ng-add/index.js +1 -1
  16. package/schematics/ng-update/v14/index.js +1 -1
  17. package/schematics/ng-update/v15/index.js +1 -1
  18. package/schematics/ng-update/v16/index.js +1 -1
  19. package/schematics/ng-update/v17/index.js +1 -1
  20. package/schematics/ng-update/v18/index.js +2 -2
  21. package/schematics/ng-update/v19/index.js +2 -2
  22. package/schematics/ng-update/v2/index.js +1 -1
  23. package/schematics/ng-update/v20/index.js +2 -2
  24. package/schematics/ng-update/v21/index.js +1 -1
  25. package/schematics/ng-update/v3/index.js +1 -1
  26. package/schematics/ng-update/v4/index.js +1 -1
  27. package/schematics/ng-update/v5/index.js +1 -1
  28. package/schematics/ng-update/v6/index.js +1 -1
  29. package/types/po-ui-ng-components.d.ts +82 -8
  30. package/po-ui-ng-components-21.26.0.tgz +0 -0
@@ -25,6 +25,7 @@ export declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
25
25
  get locale(): string;
26
26
  headerChange: EventEmitter<any>;
27
27
  selectDate: EventEmitter<any>;
28
+ selectTodayEvent: EventEmitter<void>;
28
29
  readonly hoverDateSource: Subject<Date>;
29
30
  hoverDate: import("rxjs").Observable<Date>;
30
31
  closeCalendar: EventEmitter<void>;
@@ -45,6 +45,7 @@ export declare class PoCalendarComponent extends PoCalendarBaseComponent impleme
45
45
  selectedIndexYear: number | null;
46
46
  selectedMonth: number | null;
47
47
  selectedYear: number | null;
48
+ private isTodayPresetSelection;
48
49
  private readonly _isRange;
49
50
  private readonly _rangePresetsValue;
50
51
  private readonly _rangePresetOptionsValue;
@@ -70,6 +71,7 @@ export declare class PoCalendarComponent extends PoCalendarBaseComponent impleme
70
71
  getValue(partType: any): any;
71
72
  onSelectDate(selectedDate: any, partType?: any): void;
72
73
  onHoverDate(date: any): void;
74
+ onSelectTodayPreset(): void;
73
75
  onHeaderChange({ month, year }: {
74
76
  month: any;
75
77
  year: any;
@@ -91,12 +91,9 @@ export declare abstract class PoDatetimepickerBaseComponent implements ControlVa
91
91
  private _size?;
92
92
  private _date;
93
93
  private _timeValue;
94
- private previousValue;
95
94
  private _resolvedMinDate;
96
95
  private _resolvedMaxDate;
97
96
  protected hasValidatorRequired: boolean;
98
- protected hour: string;
99
- protected isExtendedISO: boolean;
100
97
  protected objMask: any;
101
98
  protected onChangeModel: any;
102
99
  protected onTouchedModel: any;
@@ -32,13 +32,11 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
32
32
  iconDatepicker: PoButtonComponent;
33
33
  calendarComponent: PoCalendarComponent;
34
34
  inputEl: ElementRef;
35
- iconClean: ElementRef<HTMLElement>;
36
35
  dialogPicker: ElementRef;
37
36
  helperEl?: PoHelperComponent;
38
37
  datetimepickerField: ElementRef;
39
38
  private readonly renderer;
40
39
  private readonly cd;
41
- private readonly poCalendarService;
42
40
  private readonly controlPosition;
43
41
  id: string;
44
42
  displayAdditionalHelp: boolean;
@@ -50,6 +48,8 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
50
48
  private clickListener;
51
49
  private eventResizeListener;
52
50
  private valueBeforeChange;
51
+ private hadValueOnOpen;
52
+ private isTodayPresetInProgress;
53
53
  constructor();
54
54
  ngAfterViewInit(): void;
55
55
  ngOnDestroy(): void;
@@ -61,6 +61,9 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
61
61
  hasInvalidClass(): boolean;
62
62
  getErrorPattern(): string;
63
63
  onKeyup($event: any): void;
64
+ private processKeyupWithMask;
65
+ private tryParseCompleteInput;
66
+ private clearDateTimeState;
64
67
  onKeydown($event: any): void;
65
68
  onInputFocus(): void;
66
69
  onPeriodBlur(): void;
@@ -75,6 +78,7 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
75
78
  event: KeyboardEvent;
76
79
  column: string;
77
80
  }): void;
81
+ onCalendarClose(): void;
78
82
  writeValue(value: any): void;
79
83
  refreshValue(value: Date): void;
80
84
  onTimeChange(time: string): void;
@@ -124,6 +128,8 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
124
128
  private buildFormattedTime;
125
129
  private isValidSeconds;
126
130
  private padTime;
131
+ private normalizeTimeWithSeconds;
132
+ private syncDateFromInput;
127
133
  private syncCalendarAndTimer;
128
134
  private getExpectedInputLength;
129
135
  private setCalendarPosition;
@@ -2,7 +2,7 @@
2
2
  * @description
3
3
  *
4
4
  * Módulo dos componentes: po-checkbox, po-checkbox-group, po-combo, po-datepicker, po-datetimepicker, po-datepicker-range, po-email, po-input,
5
- * po-lookup, po-number, po-multiselect, po-password, po-radio-group, po-select, po-switch, po-textarea, po-upload, po-url e po-search-ai.
5
+ * po-lookup, po-number, po-multiselect, po-password, po-radio-group, po-select, po-switch, po-textarea, po-timepicker, po-upload, po-url e po-search-ai.
6
6
  *
7
7
  * > Não esqueça de importar o módulo `FormsModule` para usar os componentes de formulários e caso esteja trabalhando com
8
8
  * > formulários reativos, importe o módulo `ReactiveFormsModule`, ambos nativos do Angular.
@@ -20,6 +20,12 @@ import { PoInputGeneric } from '../po-input-generic/po-input-generic';
20
20
  * <file name="sample-po-input-reactive-form/sample-po-input-reactive-form.component.html"> </file>
21
21
  * <file name="sample-po-input-reactive-form/sample-po-input-reactive-form.component.ts"> </file>
22
22
  * </example>
23
+ *
24
+ * <example name="po-input-mask-dynamic" title="PO Input - Dynamic Mask (CPF/CNPJ)">
25
+ * <file name="sample-po-input-mask-dynamic/sample-po-input-mask-dynamic.component.html"> </file>
26
+ * <file name="sample-po-input-mask-dynamic/sample-po-input-mask-dynamic.component.ts"> </file>
27
+ * <file name="sample-po-input-mask-dynamic/document-mask.ts"> </file>
28
+ * </example>
23
29
  */
24
30
  export declare class PoInputComponent extends PoInputGeneric implements OnChanges {
25
31
  inp: ElementRef;
@@ -72,6 +72,7 @@ export declare class PoTimepickerComponent extends PoTimepickerBaseComponent imp
72
72
  get minutePlaceholder(): string;
73
73
  get secondPlaceholder(): string;
74
74
  get isPlaceholder(): boolean;
75
+ get showSeparator(): boolean;
75
76
  private get customPlaceholderSegments();
76
77
  private getCustomPlaceholderSegment;
77
78
  onHostFocusOut(event: FocusEvent): void;
@@ -91,6 +91,38 @@ export interface PoHeaderActionTool {
91
91
  *
92
92
  */
93
93
  link?: string;
94
+ /**
95
+ *
96
+ * @optional
97
+ *
98
+ * @description
99
+ *
100
+ * Função executada quando o popup ou popover da ação é aberto.
101
+ *
102
+ * Esse evento é disparado toda vez que o usuário clica no botão da ação e o popup (quando há `items`)
103
+ * ou o popover (quando há `popover`) é exibido.
104
+ *
105
+ * O callback recebe como parâmetro o `label` da ação que disparou o evento.
106
+ *
107
+ * Exemplo: `onOpen: (label) => console.log('Aberto:', label)`
108
+ */
109
+ onOpen?: (label?: string) => void;
110
+ /**
111
+ *
112
+ * @optional
113
+ *
114
+ * @description
115
+ *
116
+ * Função executada quando o popup ou popover da ação é fechado.
117
+ *
118
+ * Esse evento é disparado toda vez que o popup (quando há `items`) ou o popover (quando há `popover`)
119
+ * é ocultado, seja por clique fora do elemento ou por ação programática.
120
+ *
121
+ * O callback recebe como parâmetro o `label` da ação que disparou o evento.
122
+ *
123
+ * Exemplo: `onClose: (label) => console.log('Fechado:', label)`
124
+ */
125
+ onClose?: (label?: string) => void;
94
126
  $selected?: any;
95
127
  }
96
128
  /**
@@ -71,4 +71,32 @@ export interface PoHeaderUser {
71
71
  *
72
72
  */
73
73
  items?: Array<PoHeaderActionToolItem>;
74
+ /**
75
+ *
76
+ * @optional
77
+ *
78
+ * @description
79
+ *
80
+ * Função executada quando o popup ou popover da seção de Customer é aberto.
81
+ *
82
+ * Esse evento é disparado toda vez que o usuário clica no botão da seção de Customer e o popup
83
+ * (quando há `items`) ou o popover (quando há `popover`) é exibido.
84
+ *
85
+ * Exemplo: `onOpen: this.onOpenNotifications.bind(this)`
86
+ */
87
+ onOpen?: Function;
88
+ /**
89
+ *
90
+ * @optional
91
+ *
92
+ * @description
93
+ *
94
+ * Função executada quando o popup ou popover da seção de Customer é fechado.
95
+ *
96
+ * Esse evento é disparado toda vez que o popup (quando há `items`) ou o popover (quando há `popover`)
97
+ * é ocultado, seja por clique fora do elemento ou por ação programática.
98
+ *
99
+ * Exemplo: `onClose: this.onCloseNotifications.bind(this)`
100
+ */
101
+ onClose?: Function;
74
102
  }
@@ -210,4 +210,5 @@ export declare class PoPopupBaseComponent {
210
210
  get target(): any;
211
211
  closeEvent: EventEmitter<any>;
212
212
  clickItem: EventEmitter<any>;
213
+ openEvent: EventEmitter<any>;
213
214
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@po-ui/ng-components",
3
- "version": "21.26.0",
3
+ "version": "21.28.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": "~21.2.14",
25
- "@po-ui/style": "21.26.0",
26
- "@po-ui/ng-schematics": "21.26.0",
25
+ "@po-ui/style": "21.28.0",
26
+ "@po-ui/ng-schematics": "21.28.0",
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.26.0",
42
+ "@po-ui/style": "21.28.0",
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.26.0');
21
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '21.28.0');
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.26.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.28.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)('21.26.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
14
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.28.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)('21.26.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.28.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)('21.26.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.28.0', 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.26.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.28.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
44
44
  }
45
45
  else {
46
46
  return (0, schematics_1.chain)([
47
- (0, package_config_1.updatePackageJson)('21.26.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('21.28.0', 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.26.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.28.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
44
44
  }
45
45
  else {
46
46
  return (0, schematics_1.chain)([
47
- (0, package_config_1.updatePackageJson)('21.26.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('21.28.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('21.26.0', changes_1.dependeciesChanges),
13
+ updatePackageJson('21.28.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(),
@@ -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.26.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.28.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
44
44
  }
45
45
  else {
46
46
  return (0, schematics_1.chain)([
47
- (0, package_config_1.updatePackageJson)('21.26.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('21.28.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)('21.26.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
12
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.28.0', 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.26.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.28.0', 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.26.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.28.0', 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.26.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.28.0', 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.26.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.28.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {
@@ -4282,8 +4282,9 @@ declare class PoPopupBaseComponent {
4282
4282
  get target(): any;
4283
4283
  closeEvent: EventEmitter<any>;
4284
4284
  clickItem: EventEmitter<any>;
4285
+ openEvent: EventEmitter<any>;
4285
4286
  static ɵfac: i0.ɵɵFactoryDeclaration<PoPopupBaseComponent, never>;
4286
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoPopupBaseComponent, never, never, { "templateIcon": { "alias": "p-template-icon"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "hideArrow": { "alias": "p-hide-arrow"; "required": false; }; "isCornerAlign": { "alias": "p-is-corner-align"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; "customPositions": { "alias": "p-custom-positions"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; }, { "closeEvent": "p-close"; "clickItem": "p-click-item"; }, never, never, true, never>;
4287
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoPopupBaseComponent, never, never, { "templateIcon": { "alias": "p-template-icon"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "hideArrow": { "alias": "p-hide-arrow"; "required": false; }; "isCornerAlign": { "alias": "p-is-corner-align"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; "customPositions": { "alias": "p-custom-positions"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; }, { "closeEvent": "p-close"; "clickItem": "p-click-item"; "openEvent": "p-open"; }, never, never, true, never>;
4287
4288
  }
4288
4289
 
4289
4290
  /**
@@ -5652,6 +5653,7 @@ declare class PoCalendarComponent extends PoCalendarBaseComponent implements OnI
5652
5653
  selectedIndexYear: number | null;
5653
5654
  selectedMonth: number | null;
5654
5655
  selectedYear: number | null;
5656
+ private isTodayPresetSelection;
5655
5657
  private readonly _isRange;
5656
5658
  private readonly _rangePresetsValue;
5657
5659
  private readonly _rangePresetOptionsValue;
@@ -5677,6 +5679,7 @@ declare class PoCalendarComponent extends PoCalendarBaseComponent implements OnI
5677
5679
  getValue(partType: any): any;
5678
5680
  onSelectDate(selectedDate: any, partType?: any): void;
5679
5681
  onHoverDate(date: any): void;
5682
+ onSelectTodayPreset(): void;
5680
5683
  onHeaderChange({ month, year }: {
5681
5684
  month: any;
5682
5685
  year: any;
@@ -5839,6 +5842,7 @@ declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
5839
5842
  get locale(): string;
5840
5843
  headerChange: EventEmitter<any>;
5841
5844
  selectDate: EventEmitter<any>;
5845
+ selectTodayEvent: EventEmitter<void>;
5842
5846
  readonly hoverDateSource: Subject<Date>;
5843
5847
  hoverDate: rxjs.Observable<Date>;
5844
5848
  closeCalendar: EventEmitter<void>;
@@ -5951,7 +5955,7 @@ declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
5951
5955
  trackByDay(index: number, day: Date): string;
5952
5956
  trackByWeekDay(index: number, weekDay: string): string;
5953
5957
  static ɵfac: i0.ɵɵFactoryDeclaration<PoCalendarWrapperComponent, never>;
5954
- static ɵcmp: i0.ɵɵComponentDeclaration<PoCalendarWrapperComponent, "po-calendar-wrapper", never, { "value": { "alias": "p-value"; "required": false; }; "mode": { "alias": "p-mode"; "required": false; }; "responsive": { "alias": "p-responsive"; "required": false; }; "partType": { "alias": "p-part-type"; "required": false; }; "range": { "alias": "p-range"; "required": false; }; "activateDate": { "alias": "p-activate-date"; "required": false; }; "selectedValue": { "alias": "p-selected-value"; "required": false; }; "minDate": { "alias": "p-min-date"; "required": false; }; "maxDate": { "alias": "p-max-date"; "required": false; }; "hoverValue": { "alias": "p-hover-value"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "hideTodayButton": { "alias": "p-hide-today-button"; "required": false; }; "hasPresets": { "alias": "p-presets"; "required": false; }; "headerTemplate": { "alias": "p-header-template"; "required": false; }; "locale": { "alias": "p-locale"; "required": false; }; }, { "headerChange": "p-header-change"; "selectDate": "p-select-date"; "hoverDate": "p-hover-date"; "closeCalendar": "p-close-calendar"; }, never, never, false, never>;
5958
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoCalendarWrapperComponent, "po-calendar-wrapper", never, { "value": { "alias": "p-value"; "required": false; }; "mode": { "alias": "p-mode"; "required": false; }; "responsive": { "alias": "p-responsive"; "required": false; }; "partType": { "alias": "p-part-type"; "required": false; }; "range": { "alias": "p-range"; "required": false; }; "activateDate": { "alias": "p-activate-date"; "required": false; }; "selectedValue": { "alias": "p-selected-value"; "required": false; }; "minDate": { "alias": "p-min-date"; "required": false; }; "maxDate": { "alias": "p-max-date"; "required": false; }; "hoverValue": { "alias": "p-hover-value"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "hideTodayButton": { "alias": "p-hide-today-button"; "required": false; }; "hasPresets": { "alias": "p-presets"; "required": false; }; "headerTemplate": { "alias": "p-header-template"; "required": false; }; "locale": { "alias": "p-locale"; "required": false; }; }, { "headerChange": "p-header-change"; "selectDate": "p-select-date"; "selectTodayEvent": "p-select-today"; "hoverDate": "p-hover-date"; "closeCalendar": "p-close-calendar"; }, never, never, false, never>;
5955
5959
  }
5956
5960
 
5957
5961
  declare class PoCalendarPresetListComponent {
@@ -17365,6 +17369,7 @@ declare class PoTimepickerComponent extends PoTimepickerBaseComponent implements
17365
17369
  get minutePlaceholder(): string;
17366
17370
  get secondPlaceholder(): string;
17367
17371
  get isPlaceholder(): boolean;
17372
+ get showSeparator(): boolean;
17368
17373
  private get customPlaceholderSegments();
17369
17374
  private getCustomPlaceholderSegment;
17370
17375
  onHostFocusOut(event: FocusEvent): void;
@@ -21950,12 +21955,9 @@ declare abstract class PoDatetimepickerBaseComponent implements ControlValueAcce
21950
21955
  private _size?;
21951
21956
  private _date;
21952
21957
  private _timeValue;
21953
- private previousValue;
21954
21958
  private _resolvedMinDate;
21955
21959
  private _resolvedMaxDate;
21956
21960
  protected hasValidatorRequired: boolean;
21957
- protected hour: string;
21958
- protected isExtendedISO: boolean;
21959
21961
  protected objMask: any;
21960
21962
  protected onChangeModel: any;
21961
21963
  protected onTouchedModel: any;
@@ -22397,13 +22399,11 @@ declare class PoDatetimepickerComponent extends PoDatetimepickerBaseComponent im
22397
22399
  iconDatepicker: PoButtonComponent;
22398
22400
  calendarComponent: PoCalendarComponent;
22399
22401
  inputEl: ElementRef;
22400
- iconClean: ElementRef<HTMLElement>;
22401
22402
  dialogPicker: ElementRef;
22402
22403
  helperEl?: PoHelperComponent;
22403
22404
  datetimepickerField: ElementRef;
22404
22405
  private readonly renderer;
22405
22406
  private readonly cd;
22406
- private readonly poCalendarService;
22407
22407
  private readonly controlPosition;
22408
22408
  id: string;
22409
22409
  displayAdditionalHelp: boolean;
@@ -22415,6 +22415,8 @@ declare class PoDatetimepickerComponent extends PoDatetimepickerBaseComponent im
22415
22415
  private clickListener;
22416
22416
  private eventResizeListener;
22417
22417
  private valueBeforeChange;
22418
+ private hadValueOnOpen;
22419
+ private isTodayPresetInProgress;
22418
22420
  constructor();
22419
22421
  ngAfterViewInit(): void;
22420
22422
  ngOnDestroy(): void;
@@ -22426,6 +22428,9 @@ declare class PoDatetimepickerComponent extends PoDatetimepickerBaseComponent im
22426
22428
  hasInvalidClass(): boolean;
22427
22429
  getErrorPattern(): string;
22428
22430
  onKeyup($event: any): void;
22431
+ private processKeyupWithMask;
22432
+ private tryParseCompleteInput;
22433
+ private clearDateTimeState;
22429
22434
  onKeydown($event: any): void;
22430
22435
  onInputFocus(): void;
22431
22436
  onPeriodBlur(): void;
@@ -22440,6 +22445,7 @@ declare class PoDatetimepickerComponent extends PoDatetimepickerBaseComponent im
22440
22445
  event: KeyboardEvent;
22441
22446
  column: string;
22442
22447
  }): void;
22448
+ onCalendarClose(): void;
22443
22449
  writeValue(value: any): void;
22444
22450
  refreshValue(value: Date): void;
22445
22451
  onTimeChange(time: string): void;
@@ -22489,6 +22495,8 @@ declare class PoDatetimepickerComponent extends PoDatetimepickerBaseComponent im
22489
22495
  private buildFormattedTime;
22490
22496
  private isValidSeconds;
22491
22497
  private padTime;
22498
+ private normalizeTimeWithSeconds;
22499
+ private syncDateFromInput;
22492
22500
  private syncCalendarAndTimer;
22493
22501
  private getExpectedInputLength;
22494
22502
  private setCalendarPosition;
@@ -22767,6 +22775,12 @@ declare class PoEmailComponent extends PoInputGeneric implements AfterViewInit,
22767
22775
  * <file name="sample-po-input-reactive-form/sample-po-input-reactive-form.component.html"> </file>
22768
22776
  * <file name="sample-po-input-reactive-form/sample-po-input-reactive-form.component.ts"> </file>
22769
22777
  * </example>
22778
+ *
22779
+ * <example name="po-input-mask-dynamic" title="PO Input - Dynamic Mask (CPF/CNPJ)">
22780
+ * <file name="sample-po-input-mask-dynamic/sample-po-input-mask-dynamic.component.html"> </file>
22781
+ * <file name="sample-po-input-mask-dynamic/sample-po-input-mask-dynamic.component.ts"> </file>
22782
+ * <file name="sample-po-input-mask-dynamic/document-mask.ts"> </file>
22783
+ * </example>
22770
22784
  */
22771
22785
  declare class PoInputComponent extends PoInputGeneric implements OnChanges {
22772
22786
  inp: ElementRef;
@@ -29313,7 +29327,7 @@ declare class PoUploadFileRestrictionsComponent implements OnInit {
29313
29327
  * @description
29314
29328
  *
29315
29329
  * Módulo dos componentes: po-checkbox, po-checkbox-group, po-combo, po-datepicker, po-datetimepicker, po-datepicker-range, po-email, po-input,
29316
- * po-lookup, po-number, po-multiselect, po-password, po-radio-group, po-select, po-switch, po-textarea, po-upload, po-url e po-search-ai.
29330
+ * po-lookup, po-number, po-multiselect, po-password, po-radio-group, po-select, po-switch, po-textarea, po-timepicker, po-upload, po-url e po-search-ai.
29317
29331
  *
29318
29332
  * > Não esqueça de importar o módulo `FormsModule` para usar os componentes de formulários e caso esteja trabalhando com
29319
29333
  * > formulários reativos, importe o módulo `ReactiveFormsModule`, ambos nativos do Angular.
@@ -38977,6 +38991,38 @@ interface PoHeaderActionTool {
38977
38991
  *
38978
38992
  */
38979
38993
  link?: string;
38994
+ /**
38995
+ *
38996
+ * @optional
38997
+ *
38998
+ * @description
38999
+ *
39000
+ * Função executada quando o popup ou popover da ação é aberto.
39001
+ *
39002
+ * Esse evento é disparado toda vez que o usuário clica no botão da ação e o popup (quando há `items`)
39003
+ * ou o popover (quando há `popover`) é exibido.
39004
+ *
39005
+ * O callback recebe como parâmetro o `label` da ação que disparou o evento.
39006
+ *
39007
+ * Exemplo: `onOpen: (label) => console.log('Aberto:', label)`
39008
+ */
39009
+ onOpen?: (label?: string) => void;
39010
+ /**
39011
+ *
39012
+ * @optional
39013
+ *
39014
+ * @description
39015
+ *
39016
+ * Função executada quando o popup ou popover da ação é fechado.
39017
+ *
39018
+ * Esse evento é disparado toda vez que o popup (quando há `items`) ou o popover (quando há `popover`)
39019
+ * é ocultado, seja por clique fora do elemento ou por ação programática.
39020
+ *
39021
+ * O callback recebe como parâmetro o `label` da ação que disparou o evento.
39022
+ *
39023
+ * Exemplo: `onClose: (label) => console.log('Fechado:', label)`
39024
+ */
39025
+ onClose?: (label?: string) => void;
38980
39026
  $selected?: any;
38981
39027
  }
38982
39028
  /**
@@ -39177,6 +39223,34 @@ interface PoHeaderUser {
39177
39223
  *
39178
39224
  */
39179
39225
  items?: Array<PoHeaderActionToolItem>;
39226
+ /**
39227
+ *
39228
+ * @optional
39229
+ *
39230
+ * @description
39231
+ *
39232
+ * Função executada quando o popup ou popover da seção de Customer é aberto.
39233
+ *
39234
+ * Esse evento é disparado toda vez que o usuário clica no botão da seção de Customer e o popup
39235
+ * (quando há `items`) ou o popover (quando há `popover`) é exibido.
39236
+ *
39237
+ * Exemplo: `onOpen: this.onOpenNotifications.bind(this)`
39238
+ */
39239
+ onOpen?: Function;
39240
+ /**
39241
+ *
39242
+ * @optional
39243
+ *
39244
+ * @description
39245
+ *
39246
+ * Função executada quando o popup ou popover da seção de Customer é fechado.
39247
+ *
39248
+ * Esse evento é disparado toda vez que o popup (quando há `items`) ou o popover (quando há `popover`)
39249
+ * é ocultado, seja por clique fora do elemento ou por ação programática.
39250
+ *
39251
+ * Exemplo: `onClose: this.onCloseNotifications.bind(this)`
39252
+ */
39253
+ onClose?: Function;
39180
39254
  }
39181
39255
 
39182
39256
  /**
Binary file