@po-ui/ng-components 21.17.0 → 21.18.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 (55) hide show
  1. package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-BkH0bb8j.mjs → po-ui-ng-components-po-chart-modal-table.component-ZnSFYVDt.mjs} +4 -4
  2. package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-BkH0bb8j.mjs.map → po-ui-ng-components-po-chart-modal-table.component-ZnSFYVDt.mjs.map} +1 -1
  3. package/fesm2022/po-ui-ng-components.mjs +18094 -14914
  4. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  5. package/lib/components/po-calendar/po-calendar-base.component.d.ts +54 -44
  6. package/lib/components/po-calendar/po-calendar-mode.enum.d.ts +2 -1
  7. package/lib/components/po-calendar/po-calendar.component.d.ts +7 -2
  8. package/lib/components/po-calendar/services/po-calendar.service.d.ts +1 -0
  9. package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +28 -8
  10. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.d.ts +7 -0
  11. package/lib/components/po-field/index.d.ts +2 -0
  12. package/lib/components/po-field/po-datetimepicker/po-datetimepicker-base.component.d.ts +509 -0
  13. package/lib/components/po-field/po-datetimepicker/po-datetimepicker.component.d.ts +130 -0
  14. package/lib/components/po-field/po-datetimepicker/po-datetimepicker.literals.d.ts +42 -0
  15. package/lib/components/po-field/po-datetimepicker/po-datetimepicker.module.d.ts +7 -0
  16. package/lib/components/po-field/po-field.module.d.ts +1 -1
  17. package/lib/components/po-table/po-table.component.d.ts +35 -4
  18. package/lib/components/po-timer/po-timer.component.d.ts +2 -2
  19. package/lib/services/index.d.ts +1 -0
  20. package/lib/services/po-theme/helpers/types/po-theme-dark-defaults-AA.constant.d.ts +1 -0
  21. package/lib/services/po-theme/helpers/types/po-theme-dark-defaults.constant.d.ts +1 -0
  22. package/lib/services/po-user-guide/enums/index.d.ts +2 -0
  23. package/lib/services/po-user-guide/enums/po-user-guide-alignment.enum.d.ts +18 -0
  24. package/lib/services/po-user-guide/enums/po-user-guide-position.enum.d.ts +24 -0
  25. package/lib/services/po-user-guide/index.d.ts +6 -0
  26. package/lib/services/po-user-guide/interfaces/index.d.ts +6 -0
  27. package/lib/services/po-user-guide/interfaces/po-user-guide-end-event.interface.d.ts +46 -0
  28. package/lib/services/po-user-guide/interfaces/po-user-guide-literals.interface.d.ts +19 -0
  29. package/lib/services/po-user-guide/interfaces/po-user-guide-options.interface.d.ts +195 -0
  30. package/lib/services/po-user-guide/interfaces/po-user-guide-start-event.interface.d.ts +39 -0
  31. package/lib/services/po-user-guide/interfaces/po-user-guide-step-change-event.interface.d.ts +54 -0
  32. package/lib/services/po-user-guide/interfaces/po-user-guide-step.interface.d.ts +173 -0
  33. package/lib/services/po-user-guide/po-user-guide-base.service.d.ts +365 -0
  34. package/lib/services/po-user-guide/po-user-guide-scroll-lock.d.ts +55 -0
  35. package/lib/services/po-user-guide/po-user-guide.literals.d.ts +7 -0
  36. package/lib/services/po-user-guide/po-user-guide.module.d.ts +2 -0
  37. package/lib/services/po-user-guide/po-user-guide.service.d.ts +174 -0
  38. package/package.json +5 -4
  39. package/po-ui-ng-components-21.18.0.tgz +0 -0
  40. package/schematics/ng-add/index.js +1 -1
  41. package/schematics/ng-update/v14/index.js +1 -1
  42. package/schematics/ng-update/v15/index.js +1 -1
  43. package/schematics/ng-update/v16/index.js +1 -1
  44. package/schematics/ng-update/v17/index.js +1 -1
  45. package/schematics/ng-update/v18/index.js +2 -2
  46. package/schematics/ng-update/v19/index.js +2 -2
  47. package/schematics/ng-update/v2/index.js +1 -1
  48. package/schematics/ng-update/v20/index.js +2 -2
  49. package/schematics/ng-update/v21/index.js +1 -1
  50. package/schematics/ng-update/v3/index.js +1 -1
  51. package/schematics/ng-update/v4/index.js +1 -1
  52. package/schematics/ng-update/v5/index.js +1 -1
  53. package/schematics/ng-update/v6/index.js +1 -1
  54. package/types/po-ui-ng-components.d.ts +17342 -15504
  55. package/po-ui-ng-components-21.17.0.tgz +0 -0
@@ -1,7 +1,8 @@
1
1
  import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { PoDateService } from '../../services/po-date';
3
- import { PoLanguageService } from '../../services/po-language/po-language.service';
4
3
  import { PoCalendarMode } from './po-calendar-mode.enum';
4
+ import { PoTimerFormat } from '../po-timer/enums/po-timer-format.enum';
5
+ import { PoLanguageService } from '../../services/po-language/po-language.service';
5
6
  import { PoCalendarRangePreset } from './interfaces/po-calendar-range-preset.interface';
6
7
  /**
7
8
  * @description
@@ -95,29 +96,6 @@ import { PoCalendarRangePreset } from './interfaces/po-calendar-range-preset.int
95
96
  export declare class PoCalendarBaseComponent {
96
97
  poDate: PoDateService;
97
98
  private readonly languageService;
98
- /**
99
- * @optional
100
- *
101
- * @description
102
- *
103
- * Evento disparado ao alterar o valor do model.
104
- * Em modo padrão, retorna uma `string` no formato ISO 8601 (`yyyy-mm-dd`).
105
- * Em modo *range*, retorna um objeto contendo as datas de início (`start`) e fim (`end`).
106
- */
107
- change: EventEmitter<string | {
108
- start: any;
109
- end: any;
110
- }>;
111
- /**
112
- * @description
113
- *
114
- * Evento disparado ao alterar o mês ou o ano no cabeçalho do calendário.
115
- * Retorna um objeto contendo os valores numéricos:
116
- * - `month`: Mês selecionado (variando de 1 a 12).
117
- * - `year`: Ano selecionado.
118
- */
119
- changeMonthYear: EventEmitter<any>;
120
- close: EventEmitter<void>;
121
99
  activateDate: any;
122
100
  selectedPresetLabel: string | null;
123
101
  value: any;
@@ -129,8 +107,11 @@ export declare class PoCalendarBaseComponent {
129
107
  private _maxDate;
130
108
  private _minDate;
131
109
  private _mode;
110
+ private _rangePresets;
132
111
  private _size?;
133
112
  private _initialSize?;
113
+ format: PoTimerFormat;
114
+ headerTemplate?: TemplateRef<any>;
134
115
  /**
135
116
  * @optional
136
117
  *
@@ -169,6 +150,7 @@ export declare class PoCalendarBaseComponent {
169
150
  */
170
151
  set maxDate(maxDate: any);
171
152
  get maxDate(): any;
153
+ maxTime: string;
172
154
  /**
173
155
  * @optional
174
156
  *
@@ -195,6 +177,8 @@ export declare class PoCalendarBaseComponent {
195
177
  */
196
178
  set minDate(minDate: any);
197
179
  get minDate(): any;
180
+ minTime: string;
181
+ minuteInterval: number;
198
182
  /**
199
183
  * @optional
200
184
  *
@@ -206,11 +190,20 @@ export declare class PoCalendarBaseComponent {
206
190
  */
207
191
  set mode(value: PoCalendarMode);
208
192
  get mode(): PoCalendarMode;
209
- get isRange(): boolean;
210
- get isMonthYear(): boolean;
211
- get isYear(): boolean;
212
- yearRangeLimit?: number;
213
- headerTemplate?: TemplateRef<any>;
193
+ /**
194
+ * @optional
195
+ *
196
+ * @description
197
+ *
198
+ * Lista de presets customizados de intervalos de data exibidos no painel lateral do calendário em modo *range*.
199
+ *
200
+ * Quando informado sem `p-range-presets`, exibe apenas os presets customizados.
201
+ * Quando informado junto com `p-range-presets` habilitado, os presets customizados serão exibidos junto aos presets padrão,
202
+ * ordenados automaticamente por temporalidade com base na data início (Futuro → Presente → Passado).
203
+ *
204
+ * Para utilizar presets customizados, informe um array de objetos que implementam a interface `PoCalendarRangePreset`.
205
+ */
206
+ rangePresetOptions?: Array<PoCalendarRangePreset>;
214
207
  /**
215
208
  * @optional
216
209
  *
@@ -231,21 +224,6 @@ export declare class PoCalendarBaseComponent {
231
224
  */
232
225
  set rangePresets(value: boolean | Array<string> | string);
233
226
  get rangePresets(): boolean | Array<string>;
234
- private _rangePresets;
235
- /**
236
- * @optional
237
- *
238
- * @description
239
- *
240
- * Lista de presets customizados de intervalos de data exibidos no painel lateral do calendário em modo *range*.
241
- *
242
- * Quando informado sem `p-range-presets`, exibe apenas os presets customizados.
243
- * Quando informado junto com `p-range-presets` habilitado, os presets customizados serão exibidos junto aos presets padrão,
244
- * ordenados automaticamente por temporalidade com base na data início (Futuro → Presente → Passado).
245
- *
246
- * Para utilizar presets customizados, informe um array de objetos que implementam a interface `PoCalendarRangePreset`.
247
- */
248
- rangePresetOptions?: Array<PoCalendarRangePreset>;
249
227
  /**
250
228
  * @optional
251
229
  *
@@ -262,6 +240,8 @@ export declare class PoCalendarBaseComponent {
262
240
  * @default `asc`
263
241
  */
264
242
  rangePresetsOrder: 'asc' | 'desc';
243
+ secondInterval: number;
244
+ showSeconds: boolean;
265
245
  /**
266
246
  * @optional
267
247
  *
@@ -277,6 +257,36 @@ export declare class PoCalendarBaseComponent {
277
257
  set size(value: string);
278
258
  get size(): string;
279
259
  widthWithPresets?: boolean;
260
+ yearRangeLimit?: number;
261
+ /**
262
+ * @optional
263
+ *
264
+ * @description
265
+ *
266
+ * Evento disparado ao alterar o valor do model.
267
+ * Em modo padrão, retorna uma `string` no formato ISO 8601 (`yyyy-mm-dd`).
268
+ * Em modo *range*, retorna um objeto contendo as datas de início (`start`) e fim (`end`).
269
+ */
270
+ change: EventEmitter<string | {
271
+ start: any;
272
+ end: any;
273
+ }>;
274
+ /**
275
+ * @description
276
+ *
277
+ * Evento disparado ao alterar o mês ou o ano no cabeçalho do calendário.
278
+ * Retorna um objeto contendo os valores numéricos:
279
+ * - `month`: Mês selecionado (variando de 1 a 12).
280
+ * - `year`: Ano selecionado.
281
+ */
282
+ changeMonthYear: EventEmitter<any>;
283
+ changeTime: EventEmitter<string>;
284
+ close: EventEmitter<void>;
285
+ timerBoundaryTab: EventEmitter<any>;
286
+ get isDateTime(): boolean;
287
+ get isRange(): boolean;
288
+ get isMonthYear(): boolean;
289
+ get isYear(): boolean;
280
290
  constructor(poDate: PoDateService, languageService: PoLanguageService);
281
291
  protected onThemeChange(): void;
282
292
  protected setActivateDate(date?: Date | string): void;
@@ -9,5 +9,6 @@ export declare enum PoCalendarMode {
9
9
  /** Modo de seleção de intervalo (data inicial e final). */
10
10
  Range = "range",
11
11
  MonthYear = "month-year",
12
- Year = "year"
12
+ Year = "year",
13
+ DateTime = "date-time"
13
14
  }
@@ -1,6 +1,7 @@
1
- import { DoCheck, OnChanges, OnInit, SimpleChanges, QueryList } from '@angular/core';
1
+ import { OnInit, DoCheck, OnChanges, QueryList, SimpleChanges } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import { PoButtonComponent } from '../po-button';
4
+ import { PoTimerComponent } from '../po-timer/po-timer.component';
4
5
  import { PoCalendarBaseComponent } from './po-calendar-base.component';
5
6
  import { PoCalendarRangePreset } from './interfaces/po-calendar-range-preset.interface';
6
7
  /**
@@ -29,9 +30,11 @@ import { PoCalendarRangePreset } from './interfaces/po-calendar-range-preset.int
29
30
  * </example>
30
31
  */
31
32
  export declare class PoCalendarComponent extends PoCalendarBaseComponent implements OnInit, OnChanges, DoCheck {
32
- monthOptions: QueryList<PoButtonComponent>;
33
+ timerComponent: PoTimerComponent;
33
34
  yearOptions: QueryList<PoButtonComponent>;
35
+ monthOptions: QueryList<PoButtonComponent>;
34
36
  private readonly changeDetector;
37
+ private readonly poCalendarService;
35
38
  private readonly poCalendarLangService;
36
39
  hoverValue: Date;
37
40
  displayToClean: string;
@@ -72,6 +75,8 @@ export declare class PoCalendarComponent extends PoCalendarBaseComponent impleme
72
75
  year: any;
73
76
  }, partType: any): void;
74
77
  onCloseCalendar(): void;
78
+ onTimeChange(time: string): void;
79
+ onTimerBoundaryTab(event: any): void;
75
80
  registerOnChange(fn: any): void;
76
81
  registerOnTouched(func: any): void;
77
82
  validate(c: AbstractControl): {
@@ -7,4 +7,5 @@ export declare class PoCalendarService {
7
7
  monthDates(year: any, month: any, dayFormatter?: any, weekFormatter?: any): any[];
8
8
  monthDays(year: any, month: any): any[];
9
9
  weekStartDate(date: any): Date;
10
+ isToday(date: Date): boolean;
10
11
  }
@@ -1,15 +1,15 @@
1
+ import { Observable } from 'rxjs';
1
2
  import { TemplateRef } from '@angular/core';
2
- import { ErrorAsyncProperties, PoCheckboxGroupOption, PoComboFilter, PoComboLiterals, PoDatepickerIsoFormat, PoDatepickerRangeLiterals, PoTimepickerModelFormat, PoLookupFilter, PoLookupLiterals, PoMultiselectFilter, PoMultiselectFilterMode, PoMultiselectLiterals, PoSwitchLabelPosition, PoUploadFile, PoUploadFileRestrictions, PoUploadLiterals } from '../../../po-field';
3
- import { PoLookupAdvancedFilter } from '../../../po-field/po-lookup/interfaces/po-lookup-advanced-filter.interface';
4
- import { PoLookupColumn } from '../../../po-field/po-lookup/interfaces/po-lookup-column.interface';
5
- import { PoMultiselectOption } from '../../../po-field/po-multiselect/interfaces/po-multiselect-option.interface';
6
- import { PoSelectOption } from '../../../po-field/po-select/po-select-option.interface';
3
+ import { PoUploadFile, PoComboFilter, PoLookupFilter, PoComboLiterals, PoLookupLiterals, PoUploadLiterals, PoMultiselectFilter, ErrorAsyncProperties, PoCheckboxGroupOption, PoSwitchLabelPosition, PoDatepickerIsoFormat, PoMultiselectLiterals, PoTimepickerModelFormat, PoMultiselectFilterMode, PoUploadFileRestrictions, PoDatepickerRangeLiterals } from '../../../po-field';
4
+ import { PoHelperOptions } from '../../../po-helper';
7
5
  import { PoProgressAction } from '../../../po-progress';
8
- import { ForceBooleanComponentEnum, ForceOptionComponentEnum } from '../../enums/po-dynamic-field-force-component.enum';
9
- import { Observable } from 'rxjs';
10
6
  import { PoDynamicField } from '../../po-dynamic-field.interface';
11
- import { PoHelperOptions } from '../../../po-helper';
7
+ import { PoSelectOption } from '../../../po-field/po-select/po-select-option.interface';
8
+ import { PoLookupColumn } from '../../../po-field/po-lookup/interfaces/po-lookup-column.interface';
12
9
  import { PoCalendarRangePreset } from '../../../po-calendar/interfaces/po-calendar-range-preset.interface';
10
+ import { PoMultiselectOption } from '../../../po-field/po-multiselect/interfaces/po-multiselect-option.interface';
11
+ import { PoLookupAdvancedFilter } from '../../../po-field/po-lookup/interfaces/po-lookup-advanced-filter.interface';
12
+ import { ForceBooleanComponentEnum, ForceOptionComponentEnum } from '../../enums/po-dynamic-field-force-component.enum';
13
13
  /**
14
14
  * @usedBy PoDynamicFormComponent, PoAdvancedFilterComponent, PoPageDynamicSearchComponent
15
15
  *
@@ -947,4 +947,24 @@ export interface PoDynamicFormField extends PoDynamicField {
947
947
  * @default `'asc'`
948
948
  */
949
949
  rangePresetsOrder?: 'asc' | 'desc';
950
+ /**
951
+ * Define o horário máximo permitido para seleção no timer.
952
+ * Formato: `HH:mm` ou `HH:mm:ss`.
953
+ *
954
+ * **Componente compatível:** `po-datetimepicker`, `po-timepicker`
955
+ */
956
+ maxTime?: string;
957
+ /**
958
+ * Define o horário mínimo permitido para seleção no timer.
959
+ * Formato: `HH:mm` ou `HH:mm:ss`.
960
+ *
961
+ * **Componente compatível:** `po-datetimepicker`, `po-timepicker`
962
+ */
963
+ minTime?: string;
964
+ /**
965
+ * Define o formato de exibição do timer (`'12'` ou `'24'`).
966
+ *
967
+ * **Componente compatível:** `po-datetimepicker`, `po-timepicker`
968
+ */
969
+ formatTime?: string;
950
970
  }
@@ -32,6 +32,13 @@ export declare class PoDynamicFormFieldsBaseComponent extends PoDynamicSharedBas
32
32
  private createField;
33
33
  private existsProperty;
34
34
  private getComponentControl;
35
+ private getFieldType;
36
+ private getForcedComponent;
37
+ private getComponentByType;
38
+ private getNumericComponent;
39
+ private getSelectionComponent;
40
+ private getDateComponent;
41
+ private getTextComponent;
35
42
  private hasFocus;
36
43
  private isCheckboxGroup;
37
44
  private isCombo;
@@ -18,6 +18,8 @@ export * from './po-timepicker/po-timepicker.module';
18
18
  export * from './po-datepicker-range/interfaces/po-datepicker-range.interface';
19
19
  export * from './po-datepicker-range/interfaces/po-datepicker-range-literals.interface';
20
20
  export * from './po-datepicker-range/po-datepicker-range.component';
21
+ export * from './po-datetimepicker/po-datetimepicker.component';
22
+ export * from './po-datetimepicker/po-datetimepicker.module';
21
23
  export * from './po-decimal/po-decimal.component';
22
24
  export * from './po-email/po-email.component';
23
25
  export * from './po-input/po-input.component';